.hidden {
    display: none;
}

#overlay {
    display: none;
}

.waiting #overlay,
.show-modal #overlay{
    width: 100%;
    height: 100%;
    display: block;
    margin: 0;
    padding: 0;
    border: 0;
    position: fixed;
    top: 0;
    left: 0;
    background-color: #00000066;
    z-index: 100;
}

.waiting #spinner {
    width: 100%;
    height: 100%;
    background-image: url("spinner.svg");
    background-repeat: no-repeat;
    background-position: 50% 50%;

    -webkit-animation:spin 4s linear infinite;
    -moz-animation:spin 4s linear infinite;
    animation:spin 4s linear infinite;
}
@-moz-keyframes spin {
    100% { -moz-transform: rotate(360deg); }
}
@-webkit-keyframes spin {
    100% { -webkit-transform: rotate(360deg); }
}
@keyframes spin {
    100% {
        -webkit-transform: rotate(360deg);
        transform:rotate(360deg);
    }
}


#status {
    display: none;
}
#status div {
    color: #fff;
    text-align: center;
    margin: auto;
}
.waiting #status {
    display: block;
    position: fixed;
    top: 50%;
    left: 50%;
    z-index: 101;
    transform: translate(-50%, -50%);
}
body {
    margin: 0;
    font-family: "Roboto", sans-serif;
    font-size: 16px;
    font-weight: 500;
    letter-spacing: 0px;
    line-height: 24px;
    color: #2E2E2E;
}

#main {
    padding: 0;
    margin: 0;
    margin-bottom: 110px;
}

body #main > div {
    margin: 42px 0;
    padding: 0 72px;
}

form > div {
    margin: 14px 0;
}
form label {
    margin-left: 8px;
}
h2 {
    font-size: 32px;
    line-height: 36px;
    font-weight: 500;
    margin: 0;
    margin-bottom: 52px;
}
#results h2 {
    margin: 0;
}
body #main > #header {
    height: 24px;
    margin-top: 0;
    padding: 42px 72px;
    background-color: #F6F7FE;
    border-bottom: 1px solid #C7C7C7;
    font-size: 24px;
    clear: both;
}
#header > a, #header > div {
    vertical-align: middle;
    display: table-cell;
    height: 24px;
    line-height: 24px;

    text-decoration: none;
    color: #2E2E2E;
    font-feature-settings: 'liga' off, 'clig' off;
    font-family: Roboto;
    font-size: 24px;
    font-style: normal;
    font-weight: 500;
}
#header > #logo {
    background-image: url("logo.svg");
    background-repeat: no-repeat;
    padding-left: 210px;
    float: left;
}
#header #app-version {
    text-align: right;
    font-size: 0.75em;
    float: right;
}
#title {
    margin: 30px 0 10px;
    display: inline-block;

    font-size: 24px;
    font-style: normal;
    font-weight: 500;
    line-height: 30px;
}
#upload {
}

.show-when-results {
    display: none;
}

html.have-results .show-when-results {
    display: block;
}

.hide-when-results {
    display: block;
}

html.have-results .hide-when-results {
    display: none;
}

html.have-results #upload {
    display: none;
}

.error-message {
    display: none;
    width: 104px;
    height: 24px;
    margin: 14px 0 12px;
    float: left;
    overflow: visible;
}

.error-message > div {
    float: left;
}

.error-message .error-label {
    width: 40px;
    line-height: 20px;
    color: #646B87;
}

.error-message .error-icon {
    width: 24px;
    height: 24px;
    margin-left: 8px;
    background-image: url("error.svg");
    background-repeat: no-repeat;
}

.error-message .close-icon {
    width: 24px;
    height: 24px;
    margin-left: 8px;
    background-image: url("close.svg");
    background-repeat: no-repeat;
}

.tooltip {
  cursor: pointer;
  overflow: visible;
}

.tooltiptext {
  visibility: hidden;
  width: 130px;
  color: #2E2E2E;
  background-color: #fff;
  text-align: center;
  border-radius: 6px;
  padding: 5px 0;
  position: absolute;
  z-index: 1;
  overflow: visible;
  border: 1px solid #2E2E2E;
}

.tooltip:hover .tooltiptext {
  visibility: visible;
}

html.have-error .file-selector .error-message {
    display: block;
}

html.have-error .file-selector .file-selector-inner {
    width: 245px;
}

html.have-error .file-selector .file-selector-inner .drag-n-drop-icon,
html.have-error .file-selector .file-selector-inner .drag-n-drop-area {
    display: none;
}

html.have-error .file-selector .file-selector-inner .drag-n-drop-filename {
    display: block;
}

html.have-error .file-selector .upload-button {
    width: 95px;
}

#top-actions {
    margin: 0 0 10px;
    text-align: right;
}
#top-actions a {
    display: inline-block;
    height: 32px;
}
#top-actions a .icon {
    display: inline-block;
    width: 24px;
    height: 24px;
    background-repeat: no-repeat;
}
#top-actions a:active .icon {
    background-position-y: -32px;
}
#top-actions a .label {
    display: inline-block;
    height: 24px;
    color: #4A5DE2;
    text-align: center;
    font-feature-settings: 'liga' off, 'clig' off;

    /* BUTTON/Button */
    font-family: Roboto;
    font-size: 16px;
    font-style: normal;
    font-weight: 500;
    text-decoration: none;
    line-height: 24px; /* 150% */

    margin-left: 6px;
}
#action-copy .icon {
    background-position-x: 0;
    background-image: url("copy.svg");
}
.visualization {
    margin: 0 auto;
    padding: 5px;
    border: 1px solid black;
}
#contents {
    width: fit-content;
    box-shadow: 0px 0px 8px 0px #0000001A;
    padding: 16px 24px 24px;
    border-radius: 16px;
    margin: 5px 0 30px;
}
.page {
    border: 1px solid black;
    padding: 10px;
    margin: 30px 0;
}
.page:first-child {
    margin-top: 0;
}
.block {
    margin: 30px 5px;
}
.par {
    margin: 20px 5px;
}
.line {
    margin: 10px 0;
}
.word {
    padding: 0 0.25em;
    display: inline-block;
}

.file-selector {
    height: 48px;
    width: fit-content;
    padding: 8px 16px;
    border-radius: 8px;
    border: 1px dashed var(--Border-border-medium, rgba(100, 107, 135, 0.75));
    background: var(--Surface-Basic-surfacebasic-top, #FFF);
    color: #ABB0C4;
}
.file-selector .file-selector-inner {
    width: 380px;
    float: left;
    overflow: hidden;
}
.file-selector .file-selector-inner > div {
    float: left;
    overflow: hidden;
    height: 24px;
    margin: 14px 0 12px;

    line-height: 22px;
    font-size: 14px;
    font-weight: 400;
    letter-spacing: 0.15px;
}

.file-selector .drag-n-drop-icon {
    height: 24px;
    width: 24px;
    background-image: url("upload-icon.png");
    background-repeat: no-repeat;
    position: relative;
    top: -2px;
}

.file-selector .drag-n-drop-area {
    width: 342px;
    padding-left: 8px;
    overflow: hidden;
    display: block;
}

.file-selector.has_file .drag-n-drop-icon, .file-selector.has_file .drag-n-drop-area {
    display: none;
}

.file-selector .file-selector-inner .drag-n-drop-filename {
    display: none;
    color: #2E2E2E;
    width: 245px;
    overflow: hidden;
}

.file-selector.has_file .file-selector-inner .drag-n-drop-filename {
    display: block;
}

.file-selector .file-input {
    display: none;
}
.file-selector .upload-button-outer {
    border-left: 1px solid #979DB56B;
    padding: 8px 0 8px 10px;
    margin: 0 0 0 10px;
    height: 32px;
    float: left;
}

span.label-normal {
    display: inline;
}

html.have-error span.label-normal {
    display: none;
}

span.label-error {
    display: none;
}

html.have-error .file-selector span.label-error {
    display: inline;
}

.file-selector .upload-button {
    display: inline-block;
    height: 30px;
    width: 64px;
    border: 1px solid #4A5DE2;
    border-radius: 4px;
    padding: 0 8px;
    color: #FFFFFF;
    background-color: #4A5DE2;
    font-weight: 600;
    letter-spacing: 0.15px;
    text-align: center;
    line-height: 28px;
    font-size: 16px;
    cursor: pointer;
    overflow: hidden;
}
.dragging .file-selector {
    border-color: #2E2E2E;
    color: inherit;
}
.dragging .file-selector .upload-button-outer {
    border-color: #2E2E2E;
}
.dragging .file-selector .drag-n-drop-icon {
    background-position-y: -24px;
}
.dragging .file-selector .upload-button {
    border-color: #2E2E2E;
}
.non_visible {
    visibility: transparent;
}

#bottom-actions {
    margin: 42px 0 0 0;
    padding: 24px 72px;
    border-top: 1px solid #EFEFEF;
    box-shadow: 0px 0px 10px 0px #EFEFEF;
    clear: both;
    width: 100%;
    height: 27px;
    background-color: #fff;

    overflow: hidden;
    position: fixed;
    bottom: 0;
    width: 100%;

}

.round-button {
    display: inline-block;
    margin: 0 25px 0 0;
    padding: 4px 10px;
    border: 1px solid #4A5DE2;
    border-radius: 16px;
    color: #4A5DE2;
    font-size: 14px;
    line-height: 20px;
    cursor: pointer;
}

.round-button.light {
    color: #4A5DE2;
    background-color: #FFF;
}

.round-button.dark {
    color: #FFF;
    background-color: #4A5DE2;
}

#modal {
    display: none;

    /* To make the modal window center */
    position: fixed;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);

    /* To make the modal content center (additional)*/

    justify-content: center; /* horizontal */

    background-color: #fff;
    border-radius: 4px;
    flex-direction: column;
    padding: 25px 0;
    z-index: 101;
}

html.show-modal #modal {
    display: flex;
}

#modal .dialog {
    display: none;
}

#modal .dialog > .close-icon {
    width: 24px;
    height: 24px;
    background-image: url("close.svg");
    background-repeat: no-repeat;
    position: absolute;
    right: 20px;
    top: 20px;
    margin: 0;
    padding: 0;
    cursor: pointer;
}

#modal .dialog > * {
    display: block;
    padding: 0 25px;
    margin: 0;
}

#modal .dialog h1 {
    margin-bottom: 15px;
    font-family: Roboto;
    font-weight: 400;
    font-style: Regular;
    font-size: 24px;
    leading-trim: none;
    line-height: 32px;
    letter-spacing: 0px;
}

#modal .dialog h2 {
    font-size: inherit;
    font-weight: bold;
    margin: 26px 0 6px;
}

#modal .dialog .content {
    margin: 10px 0;
}

#modal .dialog .content p {
    width: 600px;
    margin: 6px 0;
}

#modal .dialog .buttons {
    padding-top: 25px;
    margin-top: 30px;
    border-top: 1px solid #979DB56B;
}

.buttons.on-right .round-button {
    float: right;
    margin: 0 0 0 25px;
}


#discard-confirm {

}





#footer {
    margin-top: 80px;
}

table {border-collapse: collapse;}
td {border: 1px solid #ddd; padding: 5px 10px;}
th {text-align: left; padding: 5px 10px;vertical-align: bottom;}
td > table {margin: -6px -11px;}

.header {font-weight: bold;}
td.blank {height: 30px}
td.blank:last-child {display: none;}

body > div {
    margin: 25px 0;
    padding: 0 30px;
}

div#visualization div {display: inline-block;}
div#visualization div.zoom {position: fixed; top: 0px; left: 0px; z-index: 100; height: 100%; width: 100%; text-align: center; background-color: #fffd;}
div#visualization div img {height: 600px; border: 1px solid black; margin-right: 30px; margin-bottom: 30px; cursor: zoom-in;}
div#visualization div.zoom img {height: 99%; cursor: zoom-out; margin: 0;}

div#versions {margin-top: 20px; margin-bottom: 20px;}
div#versions h4 {margin: 35px 0 10px 0;}
div#versions table {margin: 5px 0; font-family: monospace;}
div#versions td {padding: 5px 10px;}





#tab-nav {

}

#tab-nav a {
    display: inline-block;
    text-decoration: none;
    padding: 12px;

    font-family: Roboto;
    font-weight: 400;
    font-style: Regular;
    font-size: 16px;
    leading-trim: NONE;
    line-height: 24px;
    letter-spacing: 0.15px;
    vertical-align: middle;

    color: #707070;
    background-color: #fff;
}

#tab-nav a.chosen {
    font-weight: 600;
    font-style: SemiBold;

    color: #4A5DE2;
    background-color: #F6F7FE;
}

#tabs .tab {
    display: none;
    margin-top: 30px;
}

#tabs .tab.chosen {
    display: block;
}

#tabs #tab-report.tab {
    margin-top: 0px;
}

#report_table {
    width: fit-content;
}