﻿

body {
    background: #f4f6fa;
    font-family: "Segoe UI", sans-serif;
    color: #2f3a4a;
}
.page {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 87vh;
}
/* ===== HEADER ===== */
.top-header {
    background: #fff;
    border-bottom: 1px solid #e4e8f0;
    padding: 14px 20px;
}
.container-nav {
    width: 1600px !important;
    padding-right: 15px;
    padding-left: 15px;
    margin-right: auto;
    margin-left: auto;
}
.loading-section {
    padding: 14px 20px;
}
.brand-wrap {
    display: flex;
    align-items: center;
}

.brand-logo {
    width: 42px;
    height: 42px;
    object-fit: contain;
    display: block;
}

.brand-text {
    font-size: 28px;
    color: #5c6275;
    line-height: 1;
    font-weight: 300;
    margin-left: 10px;
    letter-spacing: 1px;
}

.header-right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 18px;
}
.sso-text {
    font-size: 22px;
    color: #444;
    border-left: solid 2px #bdbdbd;
    padding: 4px 10px 4px 10px;
    display: block;
    margin-left: 0;
    white-space: normal;
}

    .sso-text:last-child {
        font-size: 1.15em;
        color: #666;
    }

.sso-container {
    max-width: 650px;
    margin-top: 150px;
    align-items: center !important;
    margin-left: auto;
    margin-right:auto;
}

.sso-btn {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 0px;
    margin-bottom: 30px;
    background-color: #f3f3f3;
    border: 1px solid #cfcfcf;
    border-radius: 4px;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: normal;
}

    .sso-btn:hover {
        background-color: #e9e9e9;
        box-shadow: 0 3px 6px rgba(0,0,0,0.1);
        text-decoration: none;
    }

.sso-h2 {
    font-size: 28px;
    font-weight: normal;
    color: #333;
    text-align: left !important;
    margin-bottom: 30px !important;
    margin-top: 0;
}

.sso-icon {
    width: 30px;
    height: 32px;
    display: block;
    background: url("sso_icons.png") no-repeat -4px -53px;
    margin: 0 0 0 11px;
    transition: all ease-in-out .3s;
}

.icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    margin-right: 15px;
}

.azure_active_directory {
    background-position: -4px -656px;
}

.okta {
    background-position: -4px -435px;
}
.logout_text {
    text-align: center;
    margin-top: 300px;
    font-size: 1.5rem;
}

.timeout-modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.timeout-box {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    width: 320px;
    text-align: center;
}

.text-container {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
    align-items: flex-start;
    text-align: left;
}
.patient-search input {
    width: 240px;
    height: 42px;
    border-radius: 10px;
    border: 1px solid #cfd7ea;
    box-shadow: 0 0 0 3px rgba(99,124,255,.10);
}
.lds-ring {
    display: inline-block;
    position: relative;
    width: 80px;
    height: 80px;
}

    .lds-ring div {
        box-sizing: border-box;
        display: block;
        position: absolute;
        width: 64px;
        height: 64px;
        margin: 8px;
        border: 8px solid #fff;
        border-radius: 50%;
        animation: lds-ring 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;
        border-color: #ccc transparent transparent transparent;
    }

        .lds-ring div:nth-child(1) {
            animation-delay: -0.45s;
        }

        .lds-ring div:nth-child(2) {
            animation-delay: -0.3s;
        }

        .lds-ring div:nth-child(3) {
            animation-delay: -0.15s;
        }

@keyframes lds-ring {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}
.loading-section {
    text-align: center;
    height: 80vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

    .loading-section h2 {
        color: #00b5dc;
    }

.loader-dot {
    height: 20px;
    width: 20px;
    border-radius: 50%;
    background-color: #00b5dc;
    display: inline-block;
    -webkit-animation: grow 2.1s infinite ease-in-out both;
    animation: grow 2.1s infinite ease-in-out both;
}

    .loader-dot.dot1 {
        -webkit-animation-delay: -0.96s;
        animation-delay: -0.96s;
    }

    .loader-dot.dot2 {
        -webkit-animation-delay: -0.48s;
        animation-delay: -0.48s;
    }
@-webkit-keyframes grow {
    0%, 80%, 100% {
        -webkit-transform: scale(0)
    }

    40% {
        -webkit-transform: scale(1.0)
    }
}

.btn-search {
    border: 1px solid #6c757d;
    color: #6c757d;
    background: #fff;
    border-radius: 8px;
    padding: 0 18px;
}

    .btn-search:hover {
        background: #16486D;
        color: #fff;
    }

.user-box {
    border-left: 1px solid #e6e8ee;
    padding-left: 16px;
    color: #5f6577;
    white-space: nowrap;
}

/* ===== SUB HEADER ===== */
.sub-header {
    background: #eef1f6;
    padding: 18px 24px;
    border-bottom: 1px solid #dde3ec;
}

.btn-soft-gray {
    background: #f8f9fc;
    border: 1px solid #9ea6b8;
    color: #6c7386;
    border-radius: 5px;
}

    .btn-soft-gray:hover {
        background: #eef2f8;
        color: #555c6d;
    }

.page-wrap {
    max-width: 1600px;
    padding: 20px;
    padding-right: 15px;
    padding-left: 15px;
    margin-right: auto;
    margin-left: auto;
    margin-top:20px;
}
@page {
    size: a3;
}
/* ===== CARD ===== */
.soft-card {
    background: #fff;
    border: 1px solid #e6ebf2;
    border-radius: 12px;
    box-shadow: 0 3px 10px rgba(15, 23, 42, 0.04);
    margin-bottom: 22px;
    overflow: hidden;
}

.card-topbar {
    padding: 16px 22px;
    border-bottom: 1px solid #e9edf4;
    background: #fafbfe;
}

.section-title-lg {
    font-size: 24px;
    font-weight: 700;
    color: #565d70;
    margin: 0;
}

/* ===== PATIENT ===== */
.patient-card-body {
    padding: 28px 22px 18px;
}

.patient-block {
    margin-bottom: 12px;
}

.patient-big {
    font-size: 24px;
    font-weight: 700;
    color: #767d92;
    line-height: 1.25;
}

.patient-sub {
    font-size: 16px;
    color: #7a8296;
    line-height: 1.35;
}

.patient-name {
    font-size: 22px;
    font-weight: 700;
    color: #767d92;
    margin-bottom: 6px;
}

.manage-chart-link {
    font-size: 15px;
    color: #5f6578;
    text-decoration: none;
}

    .manage-chart-link:hover {
        text-decoration: none;
        color: #3c6df0;
    }

/* ===== LIBRARY ===== */
.library-body .row {
    margin: 0;
}

.sidebar-panel {
    border-right: 1px solid #e8edf4;
    background: #fbfcff;
    min-height: 100%;
}

.sidebar-title {
    padding: 16px 18px;
    border-bottom: 1px solid #e9edf4;
    font-size: 16px;
    font-weight: 700;
    color: #3f4758;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #f7f9fd;
}

.sidebar-title-left {
    display: flex;
    align-items: center;
}

    .sidebar-title-left i {
        margin-right: 8px;
        color: #2f3747;
    }

.folder-tree {
    padding: 12px;
}

.folder-item {
    background: transparent;
    border: none;
    transition: all .18s ease;
}

    .folder-item:hover {
        /*background: #f1f5fb;
        text-decoration: none;
        color: #16486D;*/
    }

    .folder-item.active {
        background: #e8f0ff;
        color: #16486D;
        box-shadow: inset 3px 0 0 #2f5fe6;
    }

.folder-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    border-radius: 14px;
    padding: 10px 12px;
    background: transparent;
}
    .folder-row.active {
        background: #eef4ff;
        border-left: 4px solid #2563eb;
    }
.folder-item.open > .folder-row:not(.active) {
    background: transparent;
}
.folder-children {
    margin-top: 4px;
}
.folder-left {
    display: flex;
    align-items: center;
    min-width: 0;
}

    .folder-left i {
        color: #2f3747;
        margin-right: 8px;
        width: 16px;
        text-align: center;
    }

.folder-item.active .folder-left i,
.folder-item.active .folder-name {
    color: #16486D;
}

.folder-name {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-weight: 500;
}

.folder-badge {
    background: #e9eef6;
    color: #556074;
    border-radius: 999px;
    padding: 3px 10px;
    font-size: 12px;
    font-weight: 700;
    min-width: 32px;
    text-align: center;
}

.folder-level-1 {
    padding-left: 26px;
}

.folder-level-2 {
    padding-left: 44px;
}

.folder-level-3 {
    padding-left: 62px;
}

.content-panel {
    background: #fff;
}

.content-toolbar {
    padding: 16px 20px;
    border-bottom: 1px solid #e9edf4;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

.folder-status-box {
    background: #f4f7fc;
    border: 1px solid #e5ebf4;
    border-radius: 10px;
    padding: 10px 14px;
    display: inline-flex;
    align-items: center;
    font-size: 14px;
    color: #5f6980;
    font-weight: 500;
}

    .folder-status-box strong {
        color: #394150;
    }

.view-switch-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #7b8296;
    font-size: 15px;
}

.switch {
    position: relative;
    display: inline-block;
    width: 56px;
    height: 30px;
    margin: 0;
}

    .switch input {
        display: none;
    }

.slider {
    position: absolute;
    cursor: pointer;
    inset: 0;
    background-color: #d6dbe5;
    transition: .2s;
    border-radius: 30px;
}

    .slider:before {
        position: absolute;
        content: "";
        height: 24px;
        width: 24px;
        left: 3px;
        top: 3px;
        background: #fff;
        transition: .2s;
        border-radius: 50%;
        box-shadow: 0 1px 4px rgba(0,0,0,.18);
    }

.switch input:checked + .slider {
    background-color: #5b8def;
}

    .switch input:checked + .slider:before {
        transform: translateX(26px);
    }

.file-toolbar {
    padding: 16px 20px 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

.file-toolbar-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.file-toolbar-right {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.badge-files {
    background: #eef3fc;
    color: #4462a8;
    border-radius: 20px;
    padding: 6px 10px;
    font-size: 12px;
    font-weight: 700;
}

.search-files {
    width: 220px;
    border-radius: 8px;
}

.file-table-wrap {
    padding: 0 20px 20px;
}

.table-file {
    margin-bottom: 0;
    border: 1px solid #e6ebf2;
    border-radius: 12px;
    overflow: hidden;
}

    .table-file thead th {
        background: #f7f9fc;
        color: #6b7487;
        font-size: 14px;
        font-weight: 700;
        border-bottom: 1px solid #e6ebf2;
        padding: 14px;
    }

    .table-file td {
        vertical-align: middle;
        padding: 14px;
        color: #5d6477;
    }

    .table-file tbody tr:hover {
        background: #fbfcfe;
    }

.file-name {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
}

.file-icon {
    width: 18px;
    text-align: center;
}

.file-pdf {
    color: #dc3545;
}

.file-doc {
    color: #2f6fed;
}

.file-img {
    color: #f0a500;
}

.file-xls {
    color: #2ca24f;
}

.file-type-badge {
    background: #f1f4f9;
    color: #697286;
    border-radius: 14px;
    padding: 4px 10px;
    font-size: 12px;
    font-weight: 600;
}

.delete-col-icon {
    color: #dc3545;
    font-size: 15px;
}

.small-muted {
    font-size: 13px;
    color: #8a93a7;
}

@media (max-width: 991.98px) {
    .sidebar-panel {
        border-right: 0;
        border-bottom: 1px solid #e8edf4;
    }

    .table-header-hover-off {
        font-size: 0.8rem;
    }

}

@media (max-width: 767.98px) {
    .header-right {
        flex-direction: column;
        align-items: stretch;
    }

    .patient-search {
        width: 100%;
    }

        .patient-search input {
            /*width: 100%;*/
        }

    .user-box {
        border-left: 0;
        padding-left: 0;
    }

    .content-toolbar,
    .file-toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .search-files {
        width: 100%;
    }

    
}

/* ===== BETTER PATIENT INFO ===== */
.patient-info-card {
    border-radius: 14px;
}

.patient-info-topbar {
    background: linear-gradient(180deg, #fafcff 0%, #f5f8fd 100%);
    padding: 18px 22px;
}

.patient-info-subtitle {
    font-size: 13px;
    color: #8b93a6;
    margin-top: 4px;
}

.patient-card-body {
    padding: 22px;
}

.patient-info-box {
    background: #fbfcff;
    border: 1px solid #e8edf5;
    border-radius: 14px;
    padding: 18px;
    height: 100%;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.03);
}

.patient-main-box {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.patient-avatar {
    width: 56px;
    height: 56px;
    min-width: 56px;
    border-radius: 50%;
    background: #eaf1ff;
    color: #16486D;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
}

.patient-main-content {
    flex: 1;
}

.patient-name {
    font-size: 24px;
    font-weight: 700;
    color: #51586b;
    margin-bottom: 4px;
    line-height: 1.2;
}

.patient-role {
    font-size: 13px;
    color: #8c95a8;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.patient-detail-row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.patient-detail-icon {
    width: 34px;
    height: 34px;
    min-width: 34px;
    border-radius: 10px;
    background: #f1f5fc;
    color: #5d6d8a;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 2px;
}

.patient-detail-value {
    font-size: 20px;
    font-weight: 700;
    color: #697186;
    line-height: 1.3;
}

.patient-detail-label {
    font-size: 13px;
    color: #9aa3b4;
    margin-top: 4px;
}

.info-block {
    display: flex;
    align-items: center;
    gap: 14px;
}

.info-icon {
    width: 42px;
    height: 42px;
    min-width: 42px;
    border-radius: 12px;
    background: #eef3fb;
    color: #596882;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.info-divider {
    height: 1px;
    background: #e8edf5;
    margin: 18px 0;
}

.manage-chart-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #ffffff;
    border: 1px solid #dbe3f0;
    border-radius: 10px;
    padding: 8px 14px;
    font-size: 14px;
    font-weight: 600;
    color: #5c6578;
    text-decoration: none;
    transition: all 0.18s ease;
}

    .manage-chart-link:hover {
        text-decoration: none;
        color: #2f5fe6;
        border-color: #c8d5f0;
        background: #f8fbff;
    }
.compact-patient-card {
    margin-bottom: 12px;
}

.compact-patient-topbar {
    padding: 12px 16px 8px 16px;
}

.compact-patient-title {
    font-size: 1.4rem;
    font-weight: 700;
    line-height: 1.1;
    margin: 0;
}

.compact-patient-body {
    padding: 16px 16px 6px 16px;
}

.compact-patient-grid-6 {
    display: grid;
    grid-template-columns: 1.4fr auto .7fr auto .95fr auto .95fr auto 1.15fr auto 2fr;
    align-items: center;
    gap: 12px;
}

/* Each info item */
.compact-info-item {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

/* Icons */
.info-icon {
    font-size: 0.9rem;
    color: #6b7280;
}

/* Labels */
.compact-info-label {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    color: #6b7280;
    line-height: 1;
}

/* Values */
.compact-info-value {
    font-size: 0.9rem;
    font-weight: 600;
    color: #111827;
    /*white-space: nowrap;*/
}

/* Address wrapping */
.compact-info-wrap {
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Divider */
.vertical-divider {
    width: 1px;
    height: 32px;
    background: #e5e7eb;
}

/* Responsive */
@media (max-width: 1200px) {
    .compact-patient-grid-6 {
        grid-template-columns: 1fr 1fr;
        gap: 12px 16px;
    }

    .vertical-divider {
        display: none;
    }
}

.compact-info-item {
    min-width: 0;
}

.compact-info-label {
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    color: #6b7280;
    margin-bottom: 2px;
    line-height: 1.1;
}

.compact-info-value {
    font-size: 0.95rem;
    font-weight: 600;
    color: #111827;
    line-height: 1.2;
    /*white-space: nowrap;
    overflow: hidden;*/
    text-overflow: ellipsis;
    display: inline-flex;
    gap: 4px;
}

.compact-info-wrap {
    /*white-space: nowrap;
    overflow: hidden;*/
    text-overflow: ellipsis;
}

.compact-info-muted {
    color: #6b7280;
    font-weight: 500;
}

span.compact-info-muted {
    font-size: 0.8rem;
}

.vertical-divider {
    width: 1px;
    height: 34px;
    background: #e5e7eb;
    align-self: center;
}

@media (max-width: 991.98px) {
    .compact-patient-grid {
        grid-template-columns: 1fr 1fr;
        gap: 12px 16px;
    }

    .vertical-divider {
        display: none;
    }

    .compact-patient-body {
        padding-top: 10px;
        padding-bottom: 10px;
    }
}
/* ===== FOLDER COLORS ===== */

/* root folder */
.sidebar-title-left i {
    color: #16486D;
}

/* level 1 folders (under root) */
.folder-level-1 .folder-left i {
    color: #6b7280; /* darker gray */
}

/* deeper levels (optional future) */
.folder-level-2 .folder-left i {
    color: #9aa3b2;
}

 

/* chevron icon */
.folder-chevron {
    font-size: 12px;
    margin-right: 6px;
    color: #7b8294;
    transition: transform .2s ease;
}

/* rotate when open */
.folder-item.open .folder-chevron {
    transform: rotate(90deg);
    color: #2f5fe6;
}

/* active (selected) folder */
.folder-item.active {
    background: #e8f0ff;
    color: #16486D;
    box-shadow: inset 3px 0 0 #2f5fe6;
}

    /* make selected stand out more */
    .folder-item.active .folder-name {
        font-weight: 700;
    }

/* subtle hierarchy spacing */
.folder-level-1 {
    padding-left: 28px;
}

.folder-level-1 {
    padding-left: 20px;
}

.folder-level-2 {
    padding-left: 40px;
}

.folder-level-3 {
    padding-left: 60px;
}
/* ROOT stronger */
.folder-item:first-child {
    font-weight: 700;
    /* background: #f7f9fd;*/
}

    /* root icon */
    .folder-item:first-child .folder-left i {
        /*color: #16486D;*/
    }
/* ===== PATIENT SEARCH ===== */
.patient-search-card {
    border-radius: 14px;
}

.patient-search-card-body {
    padding: 22px;
}

.patient-search-form {
    max-width: 100%;
}

.search-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #7d8698;
    margin-bottom: 8px;
}

.search-field {
    height: 44px;
    border: 1px solid #d8dfeb;
    border-radius: 10px;
    font-size: 15px;
    color: #5d6477;
    padding: 0 14px;
    box-shadow: none;
    background: #fff;
}

    .search-field:focus {
        border-color: #b8c7e6;
        box-shadow: 0 0 0 3px rgba(47, 95, 230, 0.08);
    }

    .search-field::placeholder {
        color: #a0a8b8;
    }

.date-input-wrap {
    position: relative;
}

.date-input-icon {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #7a8296;
    font-size: 16px;
    pointer-events: none;
}

.search-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

.btn-search-main,
.btn-clear-main {
    min-width: 96px;
    height: 42px;
    border-radius: 10px;
    font-weight: 600;
}

.search-checkbox-label {
    font-size: 14px;
    color: #5d6477;
}

.custom-control-label::before,
.custom-control-label::after {
    top: 0.15rem;
}

@media (max-width: 767.98px) {
    .search-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .btn-search-main,
    .btn-clear-main {
        width: 100%;
        margin-right: 0 !important;
        margin-bottom: 10px;
    }

    .custom-control {
        margin-top: 4px;
    }
}
.link {
    cursor:pointer;
}
/*Tree style*/
 

    [data-ui-css-component="treeview"] [type=checkbox] {
        display: none;
    }

[data-ui-css-component="treeview"] ul {
    padding: 0 0 0 20px;
    display: none;
    list-style-type: none!important;
}

        [data-ui-css-component="treeview"] ul:first-child {
            padding-left: 0;
        }

    [data-ui-css-component="treeview"] li {
        padding: 0;
    }

        [data-ui-css-component="treeview"] li span {
            margin: 2px 0;
            display: list-item;
            list-style: square;
        }

    [data-ui-css-component="treeview"] label {
        display: inline-block;
        transition: 0.2s;
        padding-right: 10px;
        margin: 5px 0;
        height: 5px;
        line-height: 5px;
        cursor: pointer;
    }

        [data-ui-css-component="treeview"] label::before {
            display: inline-block;
            margin-right: 5px;
            width: 20px;
            height: 20px;
            text-align: center;
            color: #eed611;
        }

    [data-ui-css-component="treeview"] ul:first-child, [data-ui-css-component="treeview"] [type=checkbox]:checked ~ ul {
        display: block;
    }

    [data-ui-css-component="treeview"] [type=checkbox]:checked ~ label::before {
        content: "\f07c";
        font-family: 'Font Awesome 5 Free';
        font-weight: bold !important;
        color: #c4b539;
    }

    [data-ui-css-component="treeview"] [type=checkbox]:not(:checked) ~ label::before {
        content: "\f07b";
        font-family: 'Font Awesome 5 Free';
        font-weight: bold !important;
    }


footer.sticky-footer {
    padding: 1rem 0;
    flex-shrink: 0;
}

    footer.sticky-footer .copyright {
        line-height: 1;
        font-size: 0.8rem;
    }

body.sidebar-toggled footer.sticky-footer {
    width: 100%;
}

.loading-section {
    text-align: center;
    height: 80vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

    .loading-section h2 {
        color: #00b5dc;
    }

.loader-dot {
    height: 20px;
    width: 20px;
    border-radius: 50%;
    background-color: #00b5dc;
    display: inline-block;
    -webkit-animation: grow 2.1s infinite ease-in-out both;
    animation: grow 2.1s infinite ease-in-out both;
}

    .loader-dot.dot1 {
        -webkit-animation-delay: -0.96s;
        animation-delay: -0.96s;
    }

    .loader-dot.dot2 {
        -webkit-animation-delay: -0.48s;
        animation-delay: -0.48s;
    }

.folder-chevron-placeholder {
    width: 14px;
    display: inline-block;
}
.folder-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.folder-left {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.folder-name {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.folder-badge {
    margin-left: auto;
    min-width: 24px;
    text-align: center;
}

.folder-chevron {
    width: 14px;
    text-align: center;
    flex: 0 0 14px;
}

.folder-chevron-placeholder {
    width: 14px;
    display: inline-block;
    flex: 0 0 14px;
}

.folder-level-1-icon {
    color: #6b7280;
}

.folder-item.folder-level-1 .folder-left,
.folder-item.folder-level-2 .folder-left,
.folder-item.folder-level-3 .folder-left,
.folder-item[class*="folder-level-"] .folder-left {
    padding-right: 8px;
}
.folder-item {
    padding: 2px 0;
    cursor: pointer;
}

.folder-row {
    min-height: 30px;
}
/* Level-based indentation */
.folder-item.folder-level-1 .folder-left {
    padding-left: 0px;
}

.folder-item.folder-level-2 .folder-left {
    padding-left: 38px;
}

.folder-item.folder-level-3 .folder-left {
    padding-left: 40px;
}

.folder-item.folder-level-4 .folder-left {
    padding-left: 60px;
}

.pdf-page {
    position: relative;
    background: #fff;
    box-shadow: 0 2px 12px rgba(0,0,0,.18);
    overflow: hidden;
    /*margin: 0 auto 24px auto;*/
}

    .pdf-page canvas {
        display: block;
        /*margin: 0 auto;*/
        /*    width: 100%;
    height: auto;*/
    }

.textLayer {
    position: absolute;
    inset: 0;
    overflow: hidden;
    line-height: 1;
    opacity: 1;
    text-align: initial;
    user-select: text;
    -webkit-user-select: text;
}

.textLayer span {
    color: transparent !important;
    position: absolute;
    white-space: pre;
    cursor: text;
    transform-origin: 0% 0%;
    line-height: 1;
    font-size: calc(var(--font-height) * var(--total-scale-factor));
    transform: scaleX(var(--scale-x, 1));
}

.textLayer br {
    color: transparent !important;
    position: absolute;
}

.textLayer ::selection {
    background: rgba(0, 0, 255, 0.25);
}

.modal-body {
    /*display: block !important;*/
    overflow-y: auto;
    overflow-x: auto;
    /*max-height: 80vh;*/
    padding: 20px;
    margin-left: 20px;
}

#pdf-canvas-container {
    width: 100%;
    display: block;
    text-align: left;
    max-width: 100%;
    overflow-x: auto;
    
}

/*#pdf-canvas-container canvas {
    display: block;
    width: 100%;
    height: auto;
}*/

.pdf-modal-body {
    overflow-y: auto;
    overflow-x: auto;
    max-height: 80vh;
    display: block !important;
    background: #f3f3f3;
}


.pdf-loader {
    position: absolute;
    inset: 0;
    width: 100%;
    min-height: 300px;
    display: none;
    align-items: start;
    justify-content: start;
    z-index: 1000;
}

