/*COMMON STYLES*/
:root {
    --preview_img_width: 0;
    --preview_img_height: 100%;
    --green: #43A047;
    --red: #E53935;
    --grey: #E0E0E0;
    --black: #252525;
    --white: #fafafa;
    --blue_grey: #78909C;
    --blue_grey_light: #CFD8DC;
}

html, body {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    background: var(--white);
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

* {
    font-size: 14px;
    font-family: 'Open Sans', sans-serif;
}

label {
    cursor: pointer;
}

hr {
    border: 1px solid var(--blue_grey_light);
}

.hidden {
    display: none;
}

.left {
    float: left;
}

.right {
    float: right;
}

.clear {
    clear: both;
}

/*END COMMON STYLES*/

/*LOADER*/
#loader, #loader:after {
    position: absolute;
    left: 50%;
    top: 50%;
    border-radius: 50%;
}

#loader:after {
    content: '';
    width: 8px;
    height: 8px;
    margin: -4px -4px;
    box-shadow: 
        18.38478px 18.38478px currentColor, 
        0 26px currentColor, 
        -18.38478px 18.38478px currentColor,
        -26px 0 currentColor,
        -18.38478px -18.38478px currentColor,
        0 -26px currentColor,
        18.38478px -18.38478px currentColor,
        26px 0 currentColor;
}

#loader {
    color: var(--black);
    -webkit-animation: spin 2s infinite linear;
    -moz-animation: spin 2s infinite linear;
    -o-animation: spin 2s infinite linear;
    animation: spin 2s infinite linear;
}

@-webkit-keyframes spin {
    to {
        -webkit-transform: rotate(1turn);
        -ms-transform: rotate(1turn);
        transform: rotate(1turn);
    }
}

@-moz-keyframes spin {
    to {
        -webkit-transform: rotate(1turn);
        -ms-transform: rotate(1turn);
        transform: rotate(1turn);
    }
}

@-o-keyframes spin {
    to {
        -webkit-transform: rotate(1turn);
        -ms-transform: rotate(1turn);
        transform: rotate(1turn);
    }
}

@keyframes spin {
    to {
        -webkit-transform: rotate(1turn);
        -ms-transform: rotate(1turn);
        transform: rotate(1turn);
    }
}
/*END LOADER*/

/*MODAL DIALOG CUSTOM STYLES*/
.ui-dialog {
    padding: 0;
}

.ui-widget-header {
    background: rgb(219, 219, 219);
}

.ui-widget-overlay {
    background: #000;
    opacity: .6;
}

.ui-dialog .ui-dialog-titlebar-close {
    display: none;
}

.ui-dialog .ui-dialog-buttonpane {
    padding: 0;
}

.ui-button {
    outline: none;
}

.ui-button:hover {
    background: #ddd;
}

.ui-button:active {
    background: #ddd;
    color: #000;
    border: none;
    border: 1px solid #c5c5c5;
}
/*END MODAL DIALOG CUSTOM STYLES*/

/*MAIN STYLES*/
.tabContent table,
.tabContent2 table,
.tabContentRes table{
    border-collapse: collapse;
    border: none;
}

.tabContent table th, 
.tabContent table td,
.tabContent2 table th, 
.tabContent2 table td,
.tabContentRes table th, 
.tabContentRes table td{
    transition: .2s;
    padding: 4px;
    outline: none;
    text-align: center;
    border: 1px solid var(--grey);
    word-wrap: break-word;
    word-break: break-all;
    white-space: normal;
}

    .tabContent table td:hover:not(.nothover),
    .tabContent2 table td:hover:not(.nothover),
    .tabContentRes table td:hover:not(.nothover) {
        background: var(--blue_grey_light);
    }

    .tabContent table td:not(.nothover).db-val:hover,
    .tabContent2 table td:not(.nothover).db-val:hover,
    .tabContentRes table td:not(.nothover).db-val:hover {
        background: inherit;
    }

#mainContainer {
    width: 100%;
    height: 100%;
    padding: 10px;
    box-sizing: border-box;
}

#getDocForIndexBtn {
    position: absolute;
    top: 44px;
    left: 20px;
}

#previewContainer,
#infoContainer {

    box-sizing: border-box;
    margin-bottom: 10px;
}

#previewContainer {
    width: 600px;
}

#loginBox {
    margin-bottom: 6px;
}

#loginLink {
    width: 60px;
    text-decoration: none;
}

#curPage {
    width: 40px;
    text-align: center;
    outline: none;
}

.btn {
    border-radius: 4px;
    padding: 4px 8px;
    margin: 4px 8px;
    display: inline-block;
    text-align: center;
    cursor: pointer;
    color: var(--black);
    outline: none;
    background: var(--blue_grey_light);
    transition: background .2s, color .2s, box-shadow .2s;
    min-width: 30px;
    border: none;
    box-shadow: 0 0 1px 1px var(--black);
}

.btn[disabled],
.btn[disabled]:hover {
    background: var(--grey);
    cursor: not-allowed;
    color: var(--black);
    box-shadow: none;
    opacity: .6;
}

.btn:hover {
    color: var(--white);
    background: var(--blue_grey);
}

.btn:active {
    box-shadow: 0 0 1px 1px var(--white);
}

.btn.hidden {
    display: none;
}

#infoContainer {
    width: calc(99% - 600px);
    padding-left: 8px;
}

#infoContainer h2 {
    margin: 0 0 5px 0;
}

#batchInfo label,
#docInfo1 label,
#docInfo2 label,
#message input,
#message select {
    margin-bottom: 6px;
}

.labelText {
    display: inline-block;
    width: 130px;
    text-align: left;
}

.labelTextWide {
    display: inline-block;
    width: 250px;
    text-align: left;
}

.customerInput {
    display: inline-block;
    min-width: 50px;
    text-align: left;
}

.reportedMessage {
    display: inline-block;
    min-width: 50px;
    text-align: left;
}

#message {
    text-align: center;
}

.labelText + input,
#message input,
#message select
{
    outline: none;
    margin-right: 10px;
    padding-left: 5px;
}

#message input,
#message select
{
    margin-left: 10px;
    width: 220px;
    height: 20px;
}

.fieldsRow {
    margin-bottom: 10px;
}

#prevNextBox {
    text-align: center;
    margin-top: 10px;
}

#commetsList {
    margin: 0;
    width: calc(100% - 60px);
    max-height: 150px;
    overflow: auto;
    list-style-type: decimal;
}

#commetsList > li {
    margin-bottom: 4px;
}

.section-header {
    position: relative;
    padding: 4px;
    color: var(--white);
    background: var(--blue_grey);
    border-bottom: 1px solid var(--black);
}

.collapse {
    position: relative;
    cursor: pointer;
    padding: 4px;
    color: var(--white);
    background: var(--blue_grey);
    border-bottom: 1px solid var(--black);
}

.collapse:after,
.collapse.showMore:after {
    width: 76px;
    right: 10px;
    position: absolute;
    content: "Show Less";
    transition: color .2s;
    color: var(--blue_grey_light);
}

.collapse.showMore:after {
    content: "Show More";
}

.collapse:hover:after {
    color: var(--white);
}

.info-box {
    padding: 8px;
    border-bottom: 1px solid var(--black);
}

.info-box-twocolumns {
    width: 45%;
    display: table-cell;
}

#mainInfo {
    border: 1px solid var(--black);
    border-bottom-width: 0;
}

#staticInfo input:disabled {
    border: none;
    background: transparent;
    color: var(--black);
}

#previewDescr {
    margin: 8px 0;
    font-size: 12px;
    color: var(--blue_grey);
}

#prevNextDocBox,
#prevNextDocBoxTop{
    margin: 10px 0;
}

#prevNextBox .btn {
    margin: 4px;
}

#imgContainer {
    position: relative;
    width: 100%;
    height: 700px;
    overflow: hidden;
    border: 1px dashed var(--grey);
}

#gridContainer {
    display: grid;
}

.canvasLayer, .imageLayer {
  grid-column: 1;
  grid-row: 1;
}

.canvasLayer {
    height: 700px;
    width: 100%;
    position: relative;
    z-index: 20;
}

.imageLayer {
  /* z-index: -1; */
}

#idCanvas {
    height: 700px;
    width: 100%;
}


#docPreview {
    position: absolute;
    height: var(--preview_img_height);
    left: calc(50% - (var(--preview_img_width))/2);
    top: calc(50% - (var(--preview_img_height))/2);
}

.addRow {
    font-size: 12px;
    color: var(--green);
    cursor: pointer;
    width: 20px;
    min-width: 20px;
    display: table-cell;
}

.tabContent table .addRow:hover,
.tabContent2 table .addRow:hover,
.tabContentRes table .addRow:hover{
    background: var(--green);
    color: var(--white);
}

.delRow {
    color: var(--red);
    cursor: pointer;
    width: 20px;
    min-width: 20px;
    display: table-cell;
}

.tabContent table .delRow:hover,
.tabContent2 table .delRow:hover,
.tabContentRes table .delRow:hover {
    background: var(--red);
    color: var(--white);
}

.delRow:hover ~ td:not(.nothover) {
    background: var(--red);
    color: var(--white);
}

#isrejected,
.isrejected{
    position: relative;
    top: 2px;
    left: -4px;
    margin-right: 154px;
}

.db-holder {
    display: inline-block;
    max-width: 200px;
}

tr > td.service-cell,
tr > th.service-cell {
    border: none;
    white-space: nowrap;
    width: 1%;
}

.service-cell button {
    height: 20px;
    display: block;
    margin: 0;
    overflow: hidden;
}

.service-cell button:not([Key]) {
    /*display: none;*/
    visibility: hidden;
}

td.service-cell button i.fa {
    font-size: 13px;
    display: block;
    padding: 0;
    width: max-content;
    margin: auto;
}

#message .import-checkbox {
    width: auto;
    height: auto;
    display: inline-block;
    margin-left: 10px;
    margin-right: 10px;
    margin-top: 1px;
    margin-bottom: 1px;
}

#message .import-checkbox input 
{
    width: auto;
    height: auto;
}

/*TABS STYLES*/
#tabsContainer,
#tabsContainer2,
#tabsContainer3,
#tabsContainer4,
#tabsContainerRes {
    /*padding: 10px 0;*/
    overflow: hidden;
    /*padding: 5px;*/
    /*border: 1px solid var(--grey);*/
    display: inline-block;
    width: 100%;
    vertical-align: top;
    border: 0.5px solid var(--black);
}

/*#tabsContainerRes {
    margin: 10px 0;
    overflow: hidden;
    padding: 5px;
    border: 1px solid var(--grey);
    max-width: 100%;
}*/

#docInfoResult .collapse,
.editorEditable2 .collapse,
.editorEditable1 .collapse{
    border-bottom: none;
}

#tabsContainer label,
#tabsContainer2 label,
#tabsContainer4 label,
#tabsContainerRes label{
    width: 80px;
    padding: 4px;
    float: left;
    border: 1px solid var(--grey);
    border-width: 1px 1px 0 0;
    transition: .2s;
    text-align: center;
}

#tabsContainer label:first-of-type,
#tabsContainer2 label:first-of-type,
#tabsContainer4 label:first-of-type,
#tabsContainerRes label:first-of-type{
    border-left: 1px solid var(--grey);
}

input[name="tabs"],
input[name="tabs2"],
input[name="tabs_res"]{
    display: none;
}

input[name="tabs"]:checked + label,
input[name="tabs2"]:checked + label,
input[name="tabs_res"]:checked + label{
    font-weight: bold;
    background: var(--blue_grey);
    color: var(--white);
}

input[name="tabs"]:not(:checked) + label:hover,
input[name="tabs2"]:not(:checked) + label:hover,
input[name="tabs_res"]:not(:checked) + label:hover{
    background: var(--blue_grey_light);
}

.tabContent,
.tabContent2,
.tabContentRes{
    /*display: none;*/
    max-height: 460px;
    overflow-x: auto;
    /*overflow-y: scroll;*/
}

.tabContent > table,
.tabContent2 > table,
.tabContentRes > table{
    /*border: 1px solid var(--grey);*/ /*YL*/
    min-width: 100%;
}

#legals_tab:checked ~ .Legals,
#legals_tab2:checked ~ .Legals,
#legals_tab_res:checked ~ .LegalsResult{
    display: block;
}

#parties_tab:checked ~ .Parties,
#parties_tab2:checked ~ .Parties,
#parties_tab_res:checked ~ .PartiesResult{
    display: block;
}

#comments_tab:checked ~ .Comments,
#comments_tab2:checked ~ .Comments,
#comments_tab_res:checked ~ .CommentsResult{
    display: block;
}

#reldocs_tab:checked ~ .Reldocs,
#reldocs_tab2:checked ~ .Reldocs,
#reldocs_tab_res:checked ~ .ReldocsResult{
    display: block;
}

.CompletedParty {
    display:block;
}

.upper_preview_box {
    text-align: center;
    width: 100%;
}

.upper_search_box {
    text-align: center;
    width: 100%;
}

/*END TABS STYLES*/
/*MEDIA*/
@media screen and (max-width: 1024px) {
    #previewContainer, #infoContainer {
        width: 100%;
    }

    #infoContainer {
        padding: 0;
    }

    .upper_preview_box {
        width: 100%;
    }

}
/*END MEDIA*/

/*Verify page styles*/
.Editor1, .Editor2 {
    display: inline-block;
    width: 50%;
}

#docInfo1 {
    display: inline-block;
    width: 100%;
}

.KL .doctype {
    display: inline-block;
    width: 50%;
}

.Editor2 {
    float: right;
}

.doctype {
    width: 100%;
    margin-bottom: 9px;
}

.KL .doctype {
    width: 52%;
    margin-bottom: 9px;
}

#docInfo1 .info-box {
    border-right: 1px solid var(--black);
}

.Use-this {
    padding: 5px;
    display: inline;
    border-radius: 2px;
    background: #7F7F7F;
    color: white;
    cursor: pointer;
}

.use-this-tabs {
    display: table-cell;
    width: 145px;
    vertical-align: middle;
}

table th.signal-cell, table td.signal-cell {
    pointer-events: auto;
    cursor: default;
    padding: 0;
    box-sizing: border-box;
    width: 20px;
}

.KL .use-this-tabs {
    display: table-cell;
    width: 15%;
    vertical-align: middle;
}

.tabContent > table.table-verify, 
.tabContent2 > table.table-verify,
.tabContentRes > table.table-verify{
    border-collapse: separate;
    border-spacing: 1px;
}

.TabVerify table.dynamicTable .addRow, 
.TabVerify table.dynamicTable2 .addRow,
.TabVerify table.dynamicTable .delRow, 
.TabVerify table.dynamicTable2 .delRow{
    display: none;
}

.tabs-wrapper {
    width: 100%;
    text-align: center;
}

.tabs-title {
    padding: 3px 0;
    background-color: #78909b;
    color: white;
    margin: 3px 0;
    text-align: center;
}

.title-legals-1 {
    width: 48%;
    float: left;
}

.KL .title-legals-1 {
    width: 92%;
    float: left;
}

.title-legals-2 {
    width: 48%;
    float: right;
}

.legalsBatchAddArea, .partiesBatchAddArea {
    width: 48%;
    float: right;
    margin-top: 6px;
}

.KL .legalsBatchAddArea, 
.KL .partiesBatchAddArea {
    width: 13%;
    float: left;
    margin-top: 6px;
}

.legalsBatchAddButton, .partiesBatchAddButton {
    float: left;
    display: table-cell;
    width: 145px;
    vertical-align: middle;
    padding: 5px;
    border-radius: 2px;
    background: #398205;
    color: white;
    cursor: pointer;
}

.KL .legalsBatchAddButton, 
.KL .partiesBatchAddButton {
    float: left;
    display: table-cell;
    width: 96%;
    vertical-align: middle;
    padding: 5px;
    border-radius: 2px;
    background: #398205;
    color: white;
    cursor: pointer;
}


.PartiesDialogWait, .LegalsDialogWait {
    color: var(--red);
    font-weight: bold;
}

.firstTabContainer .tabContent table tbody tr td,
.firstTabContainer .tabContent2 table tbody tr td,
#tabsContainer2 .tabContent2 table tbody tr td,
#tabsContainer2 .disabledEditor table tbody tr td,
#tabsContainer4 .tabContent2 table tbody tr td,
#tabsContainer4 .disabledEditor table tbody tr td,
#tabsContainerRes .disabledEditor table tbody tr td{
    pointer-events:none;
    background-color: #e3e3e3;
}

.tabContentRes table .Use-this {
    display: none;
}

.different {
    background-color: #ff5151!important;
}

.differentCheckbox > .isrejected {
    margin-right: 4px;
    left: 0;
}

.differentCheckbox {
    background-color: #ff5151;
}


.differentTab  {
      background-color: #ff5151!important;
 }

.same-data-editors {
    padding: 8px;
    border-bottom: 1px solid var(--black);
    text-align: center;
    background-color: #52f46e;
    display: none;
}

.legalsFirstEditor,
.title-legals-result,
.title-parties-result,
.title-comments-result,
.partiesFirstEditor,
.commentsFirstEditor {
    width: 48%;
    float: left;
    margin-right: 5px;
    padding: 10px 0;
}

.KL .title-legals-result,
.KL .title-parties-result,
.KL .title-comments-result {
    width: 78%;
    float: left;
    margin-right: 5px;
    padding: 10px 0;
}

.KL .legalsFirstEditor,
.KL .partiesFirstEditor,
.KL .commentsFirstEditor {
    width: 92%;
    float: left;
    margin-right: 5px;
    padding: 10px 0;
}

.legalsSecondEditor,
.partiesSecondEditor,
.commentsSecondEditor{
    width: 48%;
    float: right;
    margin-left: 15px;
    padding: 10px 0;
}

.legalsResultEditor,
.partiesResultEditor,
.commentsResultEditor{
    width: 48%;
}

.KL .legalsResultEditor,
.KL .partiesResultEditor,
.KL .commentsResultEditor{
    width: 78%;
}


#tabsContainer .collapse,
#tabsContainer .info-box,
#tabsContainer2 .collapse,
#tabsContainer2 .info-box,
#tabsContainer4 .collapse,
#tabsContainer4 .info-box,
#tabsContainer3 .info-box{
    border-bottom: none;
}

.tabs-separator {
    margin: 15px 0px 15px 0px;
}

/*End verify page styles*/



.north {
    transform:rotate(0deg);
    -ms-transform:rotate(0deg); /* IE 9 */
    -webkit-transform:rotate(0deg); /* Safari and Chrome */
}
.west {
    transform:rotate(90deg);
    -ms-transform:rotate(90deg); /* IE 9 */
    -webkit-transform:rotate(90deg); /* Safari and Chrome */
}
.south {
    transform:rotate(180deg);
    -ms-transform:rotate(180deg); /* IE 9 */
    -webkit-transform:rotate(180deg); /* Safari and Chrome */
    
}
.east {
    transform:rotate(270deg);
    -ms-transform:rotate(270deg); /* IE 9 */
    -webkit-transform:rotate(270deg); /* Safari and Chrome */
}

.highlighted > .collapse {
    background-color: #5fc25e;
    color: black;
}

.highlighted.required > .collapse {
    background-color: #e2c25e;
    color: black;
}

.title-legals-result, 
.title-parties-result, 
.title-comments-result {
    background-color: #5fc25e;
}

.title-legals-result.required, 
.title-parties-result.required, 
.title-comments-result.required {
    background-color: #e2c25e;
}

.report-text {
   user-select: text;
}

.status_report {
   width: 75%;
}

.incomplete_batches {
    width: 90%;
}

select#doctype {
    width: 60%;
}

.batch_checkboxes {
    margin:15px;
}

.batch_checkboxes div span {
    padding:5px;
}


.batch-select-title {
   padding-top: 1.5em;
   padding-bottom: 1.5em;
   font-weight: bold;
}

.batch-sort-by-title {
    width: 90%;
    text-align: right;
    margin-bottom: 10px;
}

.DateLink, .UnlockLink, .RejectLink, .TakeBackLink {
    color: blue;
    text-decoration: underline;
    word-wrap: break-word;
}

.duplicate-value {
  background-color: yellow !important;
}

.report-input {
  width: 241px;
}

.report-input-title {
  display: inline-block;
  width: 120px;
  text-align: right;
  margin-right: 10px;
}

.report-input-comment {
    display: inline-block;
    text-align: left;
    margin-left: 10px;
    font-style: italic;
}

.batch_in_work {
    color: red;
    font-weight: bold;
}

.slide-control {
    background-color: lightgray;
    height: 100%;
    width: 7px;
    cursor: ew-resize;
}

div.re-order-panel {
    display: inline-block;
    width: 46px;
    margin-left: 10px;
}
th.re-order-column,
td.re-order-column {
    width: 22px;
}

th.insert-before,
td.insert-before {
    display: table-cell;
    width: 18px;
    border: none !important;
    color: var(--green);
    cursor: pointer;
}
td.insert-before {
    font-weight: bold;
}

/*END MAIN STYLES*/