/* =========================================
   DATA BANK
========================================= */

.databank-page {
    width: 100%;
    padding: 24px;
    box-sizing: border-box;
}


/* =========================================
   HEADER
========================================= */

.databank-header {
    margin-bottom: 18px;
}

.databank-header h1 {
    margin: 0;

    font-size: 26px;
    font-weight: 700;

    color: #102a43;
}

.databank-header p {
    margin: 5px 0 0;

    font-size: 12px;

    color: #64748b;
}


/* =========================================
   MAIN LAYOUT
========================================= */

.databank-layout {
    display: grid;

    grid-template-columns:
        30% 70%;

    min-height: 620px;

    border: 1px solid #e2e8f0;
    border-radius: 16px;

    overflow: hidden;

    background: #ffffff;

    box-shadow:
        0 8px 28px rgba(15, 23, 42, 0.06);
}


/* =========================================
   LEFT PANEL
========================================= */

.databank-sidebar {
    padding: 18px;

    box-sizing: border-box;

    border-right:
        1px solid #e2e8f0;

    background: #f8fafc;
}


.databank-sidebar-title {
    margin-bottom: 12px;

    font-size: 11px;
    font-weight: 700;

    text-transform: uppercase;
    letter-spacing: 0.06em;

    color: #64748b;
}


/* =========================================
   FOLDERS
========================================= */

.databank-folder {
    margin-bottom: 4px;
}


.databank-folder-toggle {
    width: 100%;

    display: flex;
    align-items: center;

    gap: 7px;

    padding: 8px 9px;

    border: 0;
    border-radius: 8px;

    background: transparent;

    color: #1e293b;

    font-family: inherit;
    font-size: 13px;
    font-weight: 700;

    text-align: left;

    cursor: pointer;
}


.databank-folder-toggle:hover {
    background: #eef2f7;
}


.databank-folder-arrow {
    width: 12px;

    color: #64748b;

    font-size: 11px;

    text-align: center;
}


.databank-folder-icon {
    font-size: 14px;
}


.databank-folder-name {
    flex: 1;
}


/* =========================================
   FILES
========================================= */

.databank-folder-files {
    margin-left: 21px;

    padding:
        3px 0
        7px 7px;

    border-left:
        1px solid #dbe3ec;
}


.databank-folder-files[hidden] {
    display: none !important;
}


.databank-file {
    width: 100%;

    display: flex;
    align-items: center;

    gap: 8px;

    margin: 2px 0;

    padding: 7px 8px;

    box-sizing: border-box;

    border: 0;
    border-radius: 7px;

    background: transparent;

    color: #475569;

    font-family: inherit;
    font-size: 12px;

    text-align: left;

    cursor: pointer;
}


.databank-file:hover {
    background: #edf4ff;

    color: #1e4f85;
}


.databank-file.active {
    background: #e6f0ff;

    color: #1d4f91;

    font-weight: 600;
}


.databank-file-icon {
    flex: 0 0 auto;

    font-size: 14px;
}


/* =========================================
   RIGHT PANEL
========================================= */

.databank-viewer {
    min-width: 0;

    display: flex;
    flex-direction: column;

    background: #ffffff;
}


/* VIEWER HEADER */

.databank-viewer-header {
    min-height: 72px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 20px;

    padding: 14px 20px;

    box-sizing: border-box;

    border-bottom:
        1px solid #e2e8f0;
}


.databank-viewer-label {
    margin-bottom: 3px;

    font-size: 9px;
    font-weight: 700;

    text-transform: uppercase;
    letter-spacing: 0.07em;

    color: #94a3b8;
}


.databank-viewer-header h2 {
    margin: 0;

    font-size: 17px;
    font-weight: 700;

    color: #102a43;
}


/* FILE TYPE */

.databank-viewer-type {
    padding: 5px 9px;

    border-radius: 999px;

    background: #eef4ff;

    color: #2563eb;

    font-size: 10px;
    font-weight: 700;

    text-transform: uppercase;
}


.databank-viewer-type[hidden] {
    display: none !important;
}


/* =========================================
   VIEWER CONTENT
========================================= */

.databank-viewer-content {
    flex: 1;

    min-height: 520px;

    padding: 18px;

    box-sizing: border-box;

    background: #f8fafc;
}


/* EMPTY VIEW */

.databank-empty-viewer {
    width: 100%;
    height: 100%;

    min-height: 480px;

    display: flex;
    flex-direction: column;

    align-items: center;
    justify-content: center;

    box-sizing: border-box;

    border: 1px dashed #cbd5e1;
    border-radius: 12px;

    background: #ffffff;

    text-align: center;
}


.databank-empty-icon {
    margin-bottom: 8px;

    font-size: 38px;
}


.databank-empty-viewer strong {
    font-size: 13px;

    color: #334155;
}


.databank-empty-viewer span {
    margin-top: 4px;

    font-size: 11px;

    color: #94a3b8;
}


/* =========================================
   RESPONSIVE
========================================= */

@media (max-width: 850px) {

    .databank-page {
        padding: 15px;
    }

    .databank-layout {
        grid-template-columns: 1fr;
    }

    .databank-sidebar {
        border-right: 0;

        border-bottom:
            1px solid #e2e8f0;
    }
}

.databank-pdf-viewer {
    width: 100%;
    height: 100%;

    min-height: 500px;

    border: 0;
    border-radius: 10px;

    background: #fff;
}

.databank-viewer-content {
    user-select: none;
    -webkit-user-select: none;
}

.databank-pdf-viewer {
    pointer-events: auto;
}
