:root {
    /* Единая типографика таблиц и левого бокового меню OpenBox/Portal. */
    --openbox-table-font-family: "Roboto", sans-serif;
    --openbox-table-font-size: 14px;
    --openbox-table-row-height: 32px;
    --openbox-sidebar-font-family: "Roboto", sans-serif;
    --openbox-sidebar-font-size: 14px;
}

.dataTables_wrapper,
.dataTables_wrapper table.dataTable,
table[data-managed-table] {
    font-family: var(--openbox-table-font-family) !important;
    font-size: var(--openbox-table-font-size) !important;
}

.dataTables_wrapper input,
.dataTables_wrapper select,
.dataTables_wrapper button,
table[data-managed-table] input,
table[data-managed-table] select,
table[data-managed-table] button {
    font-family: var(--openbox-table-font-family) !important;
    font-size: var(--openbox-table-font-size) !important;
}

.dataTables_wrapper table.dataTable tbody > tr > th,
.dataTables_wrapper table.dataTable tbody > tr > td,
table[data-managed-table] tbody > tr > th,
table[data-managed-table] tbody > tr > td {
    height: var(--openbox-table-row-height) !important;
}

.site-menubar,
.site-menubar .site-menu,
.site-menubar .site-menu-item,
.site-menubar .site-menu-title {
    font-family: var(--openbox-sidebar-font-family) !important;
    font-size: var(--openbox-sidebar-font-size) !important;
}

.page {
    max-width: none!important;
}

.page-header {
    padding: 15px 30px!important;
}

.panel-body.table-responsive {
    padding: 15px 30px!important;
}

#viewResults {
    width: 100%!important;
    overflow-x: auto!important;
    white-space: nowrap!important;
    margin: 0 auto!important;
    clear: both!important;
    border-collapse: collapse!important;
    table-layout: fixed!important;
    word-wrap:break-word!important;
}

/* DataTables splits a scrolling table into separate header and body tables.
   Both parts must use the same left edge when their configured width is
   narrower than the available panel. */
.dataTables_scrollHeadInner table.dataTable,
.dataTables_scrollBody table#viewResults {
    margin-right: 0!important;
    margin-left: 0!important;
}

.dataTables_wrapper table.dataTable td {
    overflow: hidden!important;
    text-overflow: ellipsis!important;
    white-space: nowrap!important;
}

.dataTables_scrollHead .form-control:not(textarea),
.dataTables_scrollBody .form-control:not(textarea) {
    height: 2.3rem!important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button,
.dataTables_wrapper .dataTables_paginate .paginate_button.disabled,
.dataTables_wrapper .dataTables_paginate .paginate_button.disabled:active,
.dataTables_wrapper .dataTables_paginate .paginate_button.disabled:hover {
    padding: 0!important;
    margin: 0!important;
    border: 0!important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button:hover {
    border: 0!important;
    background: #e4eaec!important;
}

.dataTables_info {
    position: absolute!important;
    text-align: center!important;
    width: 100%!important;
    z-index: 4!important;
}

.dataTables_length {
    position: relative!important;
    z-index: 5!important;
}

@media screen and (max-width: 1400px) {
    .dataTables_length {
        text-align: left!important;
    }
    .dataTables_info {
        white-space: unset!important;
        text-align: left!important;
        position: relative!important;
    }
    div.dataTables_wrapper div.dataTables_paginate ul.pagination {
        justify-content: flex-start!important;
    }
    .dataTables_paginate.paging_simple_numbers {
        padding-top: 0.85em!important;
    }
}

@media screen and (max-width: 546px) {
    .main-search {
        margin-top: 15px;
    }
}

.dataTables_wrapper .bottom {
    margin-top: 7px;
}

.dataTables_wrapper .dataTables_length {
    margin-top: 12px;
}

.dataTable tbody tr {
    height: 34px!important;
}

.select2-dropdown {
    min-width: 300px!important;
}

.table-left-bar .button-bar .btn {
    margin-right: 5px;
}

.paginate_button.page-item {
    z-index: 100;
}

.input-filled {
    border-color: #3e8ef7!important;
}

.checkbox-custom.checkbox-primary {
    margin-top: 5px!important;
    margin-bottom: 5px!important;
}

.dataTables_wrapper .dataTables_scroll div.dataTables_scrollBody>table>thead>tr>th,
.dataTables_wrapper .dataTables_scroll div.dataTables_scrollBody>table>thead>tr>td,
.dataTables_wrapper .dataTables_scroll div.dataTables_scrollBody>table>tbody>tr>th,
.dataTables_wrapper .dataTables_scroll div.dataTables_scrollBody>table>tbody>tr>td,
#viewResults_wrapper,
.site-menubar span {
    color: #526069!important;
}

table.dataTable thead th,
table.dataTable tfoot th {
    font-weight: 500!important;
    color: #526069!important;
}

.viewResults-head-center {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.viewResults-head-center .loader {
    width: 30px;
    height: 30px;
    border-left-color: #007bff;
    border-width: 0.099em;
}

.viewUserPermissions .loader {
    width: 20px;
    height: 20px;
    border-left-color: #007bff;
    border-width: 0.07em;
    margin-right: 12px;
}

.DTFC_LeftBodyWrapper {
    background: white;
}

.site-menu .site-menu-sub .site-menu-item.active {
    background: #3e8ef7!important;
}

.site-menu .site-menu-sub .site-menu-item.active .site-menu-title {
    color: white!important;
}

.modal-header .close span {
    font-size: 35px!important;
}

.right-side {
    display: flex;
}

.right-side .form-control {
    margin-left: 10px;
}

/* Вкладки юзербара всегда остаются в одной строке. */
.site-skintools .nav-tabs {
    flex-wrap: nowrap;
}

.site-skintools .nav-tabs > .nav-item {
    flex: 1 1 0;
    min-width: 0;
}

.site-skintools .nav-tabs .nav-link {
    min-width: 0;
    padding-right: 6px;
    padding-left: 6px;
}

.site-skintools .nav-tabs .nav-link .icon {
    margin-right: 0;
    font-size: 18px;
}

.site-menu>.site-menu-item>a .site-menu-title {
    font-size: 14px;
    font-weight: 500;
}

.site-menu-sub .site-menu-item:hover {
    background: #B8D7FF!important;
}

@media screen and (max-width: 900px) {
    .page-content {
        padding: 0 10px 20px 10px;
    }
    .panel-body.table-responsive {
        padding: 10px!important;
    }
}

@media screen and (max-width: 1000px) {
    .modal-dialog {
        max-width: 98%!important;
    }
}

.site-menu .site-menu-icon {
    color: #247cf0;
}
.site-menu .site-menu-sub .site-menu-item.active .site-menu-icon {
    color: white;
}

.site-menu .site-menu-icon {
    margin-right: 8px;
}
.site-menu .site-menu-sub .site-menu-item .animsition-link {
    padding: 0 15px 0 40px;
}

.modal-loader .loader {
    width: 25px;
    height: 25px;
    border-width: 0.09em;
    position: absolute;
    top: 50px;
    left: 48%;
    z-index: 3000;
}

.modal-loader-background {
    width: 100%;
    border-radius: 4px;
    background: #fff;
    height: 100%;
    position: absolute;
    z-index: 2000;
}

.custom-bg-2 {
    background: bisque;
}
.custom-bg-3 {
    background: #a2cfff;
}
.custom-bg-4 {
    background: #00ecd5;
}
.custom-bg-5 {
    background: #ffc8c8;
}
.custom-bg-6 {
    background: #00ca69;
}
.custom-bg-7 {
    background: #00ca69;
}
.custom-bg-8 {
    background: #ffc8c8;
}
.custom-bg-9 {
    background: #97680040;
}


.filterCrmColor .dropdown-item {
    color: white;
}
.crm-grey {
    background: #526069;
}
.crm-yellow {
    background: #ffe4c4;
}
.crm-red {
    background: #ffc8c8;
}
.crm-green {
    background: #6affb7;
}
.crm-blue {
    background: #a2cfff;
}

.note-editor {
    z-index: 10000!important;
}

#lawyerChatModal .custom-doc, #createModal .custom-document {
    color: black;
}
#lawyerChatModal .custom-doc b, #createModal .custom-document b {
    font-weight: 700;
}
.openbox-resizable-header {
    position: relative !important;
}

.openbox-column-resizer {
    position: absolute;
    top: 0;
    right: -4px;
    z-index: 8;
    width: 9px;
    height: 100%;
    cursor: col-resize;
    user-select: none;
}

.openbox-column-resizer::after {
    position: absolute;
    top: 20%;
    bottom: 20%;
    left: 4px;
    width: 1px;
    background: #ccd5db;
    content: '';
}

.openbox-column-resizer:hover::after,
.openbox-column-resizer.is-resizing::after {
    width: 2px;
    background: #3e8ef7;
}
