.profile-main {
    background-color: #1a1a18;
    padding: 20px clamp(30px, 4vw, 80px);
}


/* =========================
   office PROFILE HEADER
========================= */

.profile-office {
    display: flex;
    align-items: stretch;
    gap: 35px;

    width: 100%;
    box-sizing: border-box;

    background-color: #242421;
    border: 1px solid #555;
    border-radius: 6px;

    padding: 30px;
    margin-bottom: 20px;
}


/* =========================
   office PHOTO
========================= */

.profile-office-photo {
    width: 160px;
    height: 160px;
    flex: 0 0 160px;
    align-self: flex-start;
}

.profile-office-photo img {
    width: 100%;
    height: 100%;
    
    border-radius: 6px;
    display: block;
}

/* =========================
   office INFORMATION
========================= */

.profile-office-info {
    flex: 1;

    display: flex;
    flex-direction: column;
}

.profile-casefile-name {
    color: white;
    font-family: Arial, sans-serif;
    font-size: 20px;

    margin: 0 0 8px 0;
}

/* Individual office/university/salary rows */

.profile-info-item {
    display: flex;
    align-items: center;

    gap: 12px;
    margin-bottom: 22px;
}

.profile-info-icon {
    width: 25px;
    flex-shrink: 0;
}

.profile-money-info-icon {
    width: 15px;
    flex-shrink:0;
}

.profile-info-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.profile-info-label {
    color: #bdbdbd;
    font-family: Arial, sans-serif;
    font-size: 16px;
    font-weight:600;
}

.profile-info-value {
    color: white;
    font-family: Arial, sans-serif;
    font-size: 15px;
}




/* =========================
   RECORD METADATA
========================= */

.profile-record-meta {
    flex: 1.5;

    display: flex;
    flex-direction: column;
   
    gap: 20px;
}


/* Four metadata cards */

.profile-meta-cards {
    display: flex;
    
    gap: 15px;
}

.profile-meta-card {
    flex: 1;

    min-height: 140px;
 background-color: #1a1a18;
    border: 1px solid #555;
    border-radius: 6px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    font-family: Arial, sans-serif;
}

.profile-meta-icon {
    margin-bottom: 15px;
    height: 25px;
    width: 25px;
}

.profile-meta-icon-money {
    margin-bottom: 15px;
    height: 25px;
    width: 14px;
}

.profile-record-meta-icon {
    margin-bottom: 15px;
    height: 20px;
    width: 20px;
}

.column-white {
    width: 23px;
    height:23px;
}

.profile-meta-number {
    color: #f15a24;

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

    margin-bottom: 8px;
}

.profile-meta-label {
    color: white;
    font-size: 15px;
 
}


/* =========================
   LAST RECORD
========================= */

.profile-last-record {
    flex: 1;

    border: 1px solid #555;
    border-radius: 6px;
 background-color: #1a1a18;
    display: flex;
    align-items: center;

    gap: 15px;
    padding: 15px 20px;
}

.profile-last-record-icon {
    width: 35px;
    flex-shrink: 0;
}

.profile-last-record-text {
    display: flex;
    flex-direction: column;
    gap: 5px;
   
}

.profile-info-value {
    font-size: 15px;
}

.profile-latest-uploader {
    flex: 1;

    border: 1px solid #555;
    border-radius: 6px;
    background-color: #1a1a18;

    display: flex;
    align-items: center;

    gap: 15px;
    padding: 15px 20px;
}


.profile-bottom-meta {
    display: flex;
    gap: 15px;
    flex: 1;
}


.profile-last-record,
.profile-latest-uploader {
    flex: 1;
}

.profile-filter-search {
    grid-column: span 2;
}


/* =========================
   PROFILE FILTERS
========================= */

.profile-filters {
    width: 100%;
    box-sizing: border-box;

    background-color: #242421;
    border: 1px solid #555;
    border-radius: 6px;

    padding: 25px 30px;
    margin-bottom: 20px;

    font-family: Arial, sans-serif;
    /* display: none; */

    display: none;
}


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

.profile-filters-header {
    display: flex;
    align-items: center;
    gap: 12px;

    margin-bottom: 22px;
}

.profile-filters-header h2 {
    margin: 0;

    color: #f2f2f2;
    font-size: 16px;
    font-weight: 700;
}

.profile-filters-icon {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
}


/* =========================
   FILTER GRID
========================= */

.profile-filters-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);

    column-gap: 30px;
    row-gap: 20px;
}


/* =========================
   FILTER FIELDS
========================= */

.profile-filter-field {
    display: flex;
    flex-direction: column;
    gap: 8px;

    min-width: 0;
}

.profile-filter-field label {
    color: #f2f2f2;

    font-size: 15px;
    font-weight: 500;
}


/* =========================
   INPUTS + SELECTS
========================= */

.profile-filter-field input,
.profile-filter-field select {
    width: 100%;
    height: 42px;

    box-sizing: border-box;

    background-color: #1a1a18;
    border: 1px solid #555;
    border-radius: 6px;

    color: #f2f2f2;

    font-family: Arial, sans-serif;
    font-size: 14px;

    padding: 0 12px;

    outline: none;
}

.profile-filter-field input:focus,
.profile-filter-field select:focus {
    border-color: #777;
}

.profile-filter-field input::placeholder {
    color: #888;
}


/* =========================
   SEARCH INPUT
========================= */

.profile-search-input {
    position: relative;
}

.profile-search-input input {
    padding-right: 40px;
}

.profile-search-icon {
    position: absolute;

    right: 12px;
    top: 50%;
    transform: translateY(-50%);

    width: 18px;
    height: 18px;

    pointer-events: none;
}


/* =========================
   DATE RANGE
========================= */

.profile-date-range {
    display: flex;
    align-items: center;

    height: 42px;

    box-sizing: border-box;

    background-color: #1a1a18;
    border: 1px solid #555;
    border-radius: 6px;

    padding: 0 10px;
}

.profile-date-range input {
    flex: 1;

    min-width: 0;
    height: 40px;

    padding: 0 6px;

    border: none;
    background-color: transparent;
}

.profile-date-arrow {
    color: #bdbdbd;

    padding: 0 6px;

    font-size: 14px;
    flex-shrink: 0;
}


/* =========================
   BUTTONS
========================= */

.profile-filter-buttons {
    display: flex;
    justify-content: center;
    align-items: center;

    gap: 12px;

    margin-top: 22px;
}

.profile-apply-filters,
.profile-clear-filters {
    height: 42px;

    padding: 0 20px;

    border-radius: 6px;

    font-family: Arial, sans-serif;
    font-size: 14px;
    font-weight: 600;

    cursor: pointer;
}

.profile-apply-filters {
    background-color: #f15a24;
    border: 1px solid #f15a24;

    color: white;
}

.profile-clear-filters {
    background-color: #1a1a18;
    border: 1px solid #555;

    color: #f2f2f2;
}

.profile-apply-filters:hover {
    background-color: #ff6a32;
}

.profile-clear-filters:hover {
    border-color: #777;
}

.profile-apply-filters:active,
.profile-clear-filters:active {
    transform: translateY(1px);
}


.profile-date-range input::-webkit-calendar-picker-indicator {
    filter: invert(42%) sepia(98%) saturate(2470%) hue-rotate(351deg) brightness(101%) contrast(90%);
    cursor: pointer;
}

/* =========================
   CASE FILE HEADER DETAILS
========================= */

.casefile-header-details {
    margin-top: 25px;

    display: flex;
    flex-direction: column;
    gap: 18px;

    width: 100%;
}


/* Individual rows */

.casefile-header-details-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));

    width: 100%;
}


/* Individual metadata item */

.casefile-header-detail {
    display: flex;
    align-items: center;
    gap: 12px;

    min-width: 0;

    padding: 4px 18px;

    border-right: 1px solid #3a3a36;
}


/* Don't put divider after final item */

.casefile-header-detail:last-child {
    border-right: none;
}


/* First item doesn't need left padding */

.casefile-header-detail:first-child {
    padding-left: 0;
}


/* Icons */

.casefile-header-detail-icon {
    width: 25px;
    height: 25px;

    flex-shrink: 0;

    object-fit: contain;
}


/* Text stack */

.casefile-header-detail-text {
    display: flex;
    flex-direction: column;

    gap: 5px;

    min-width: 0;
}


/* Gray label */

.casefile-header-detail-label {
    color: #bdbdbd;

    font-family: Arial, sans-serif;
    font-size: 14px;
    font-weight: 500;

    white-space: nowrap;
}


/* White value */

.casefile-header-detail-value {
    color: #f2f2f2;

    font-family: Arial, sans-serif;
    font-size: 14px;
    font-weight: 500;

    white-space: nowrap;
}


/* Active status */

.casefile-header-status {
    display: inline-block;

    width: fit-content;

    padding: 3px 8px;

    color: #93e39b;
    background-color: rgba(45, 170, 65, 0.15);

    border: 1px solid rgba(45, 170, 65, 0.35);
    border-radius: 4px;

    font-family: Arial, sans-serif;
    font-size: 11px;
    font-weight: 600;

    white-space: nowrap;
}

/* =========================================================
   CASE FILE INFORMATION
   DESCRIPTION + INVOLVED EMPLOYEES
========================================================= */

.casefile-information {
    display: grid;
    grid-template-columns: 1.65fr 1fr;
    gap: 20px;

    width: 100%;
    margin-bottom: 20px;

    box-sizing: border-box;

    font-family: Arial, sans-serif;
}


/* =========================================================
   OUTER SECTION CARDS
========================================================= */

.casefile-description-section,
.casefile-employees-section {
    min-width: 0;

    padding: 18px;

    background-color: #242421;

    border: 1px solid #555;
    border-radius: 6px;

    box-sizing: border-box;
}


/* =========================================================
   SECTION TITLES
========================================================= */

.casefile-description-header,
.casefile-employees-header {
    margin-bottom: 12px;

    color: #f2f2f2;

    font-size: 15px;
    font-weight: 600;
    line-height: 1.2;
}


/* =========================================================
   INNER INSET CONTAINERS
========================================================= */

.casefile-description-container,
.casefile-employees-container {
    height: 285px;

    background-color: #1a1a18;

    border: 1px solid #555;
    border-radius: 5px;

    box-sizing: border-box;

    overflow: hidden;
}


/* =========================================================
   DESCRIPTION CONTAINER
========================================================= */

.casefile-description-container {
    display: flex;
    flex-direction: column;
}



/* =========================================================
   DESCRIPTION SCROLLING BODY
========================================================= */

.casefile-description-body {
    flex: 1;
    min-height: 0;

    padding: 2px 15px 12px;

    overflow-y: auto;

    box-sizing: border-box;

    color: #d5d5d5;

    font-size: 14px;
    line-height: 1.5;
    white-space: pre-line;
}


.casefile-description-body p {
    margin: 13px 0;
}


.casefile-description-body p:first-child {
    margin-top: 12px;
}


.casefile-description-body p:last-child {
    margin-bottom: 12px;
}


/* =========================================================
   DESCRIPTION WORD COUNT
========================================================= */

.casefile-description-footer {
    flex: 0 0 30px;

    display: flex;
    align-items: center;
    justify-content: flex-end;

    padding: 0 12px;

    background-color: #1a1a18;

    border-top: 1px solid #444;

    box-sizing: border-box;
}


.casefile-description-word-count {
    color: #999;

    font-size: 13px;
    font-weight: 400;
}


/* =========================================================
   EMPLOYEE INSET CONTAINER
========================================================= */

.casefile-employees-container {
    padding: 10px;
}


/* =========================================================
   EMPLOYEE SCROLLING GRID
========================================================= */

.casefile-employees-body {
    width: 100%;
    height: 100%;

    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-auto-rows: max-content;

    align-content: start;

    gap: 10px;

    padding-right: 5px;

    overflow-y: auto;

    box-sizing: border-box;
}


/* =========================================================
   EMPLOYEE DOMINO CARD

   CARD = RECTANGLE / DOMINO
   IMAGE = SQUARE
========================================================= */

.casefile-employee-card {
    width: 100%;
    min-width: 0;

    display: flex;
    flex-direction: column;

    padding: 5px;

    background-color: #242421;

    border: 1px solid #555;
    border-radius: 5px;

    box-sizing: border-box;

    cursor: pointer;
    text-decoration: none;
    color: inherit;

    transition:
        border-color 0.15s ease,
        background-color 0.15s ease;
}


/* =========================================================
   EMPLOYEE SQUARE IMAGE
========================================================= */
.casefile-employee-image {
    width: 100%;
    aspect-ratio: 1 / 1;

    overflow: hidden;

    border: 1px solid #555;
    border-radius: 3px;

    box-sizing: border-box;
}

.casefile-employee-image img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;
    object-position: center;

    max-width: none;
    max-height: none;
}

/* =========================================================
   EMPLOYEE TEXT AREA

   THIS MAKES THE CARD TALLER THAN THE IMAGE.
========================================================= */

.casefile-employee-info {
    height: 88px;

    display: flex;
    flex-direction: column;

    align-items: center;

    padding: 8px 5px 5px;

    box-sizing: border-box;

    text-align: center;
}


/* =========================================================
   EMPLOYEE NAME
========================================================= */

.casefile-employee-name {
    width: 100%;

    margin-bottom: 10px;

    color: #f2f2f2;

    font-size: 11px;
    font-weight: 600;
    line-height: 1.2;

    text-align: center;

    white-space: normal;
}


/* =========================================================
   EMPLOYEE TITLE

   TITLE GETS THE REST OF THE DOMINO'S BOTTOM SPACE.
   LONG TITLES CAN WRAP TO 2–3 LINES.
========================================================= */

.casefile-employee-title {
    width: 100%;
    flex: 1;

    display: flex;

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

    color: #aaa;

    font-size: 9px;
    font-weight: 400;
    line-height: 1.25;

    text-align: center;

    white-space: normal;
    overflow-wrap: break-word;
}


/* =========================================================
   EMPLOYEE CARD INTERACTION
========================================================= */

.casefile-employee-card:hover {
    background-color: #2a2a27;
    border-color: #f15a24;
}


.casefile-employee-card:active {
    transform: translateY(1px);
    border-color: #777;
}


/* =========================================================
   SCROLLBARS
========================================================= */

.record-viewer-document-container,
.record-viewer-description,
.record-viewer-file-text,
.record-viewer-information {
    scrollbar-width: thin;
    scrollbar-color: #555 #1a1a18;
}


.record-viewer-document-container::-webkit-scrollbar,
.record-viewer-description::-webkit-scrollbar,
.record-viewer-file-text::-webkit-scrollbar,
.record-viewer-information::-webkit-scrollbar {
    width: 7px;
    height: 7px;
}


.record-viewer-document-container::-webkit-scrollbar-track,
.record-viewer-description::-webkit-scrollbar-track,
.record-viewer-file-text::-webkit-scrollbar-track,
.record-viewer-information::-webkit-scrollbar-track {
    background: #1a1a18;
}


.record-viewer-document-container::-webkit-scrollbar-thumb,
.record-viewer-description::-webkit-scrollbar-thumb,
.record-viewer-file-text::-webkit-scrollbar-thumb,
.record-viewer-information::-webkit-scrollbar-thumb {
    background: #555;
    border-radius: 10px;
}


.record-viewer-document-container::-webkit-scrollbar-thumb:hover,
.record-viewer-description::-webkit-scrollbar-thumb:hover,
.record-viewer-file-text::-webkit-scrollbar-thumb:hover,
.record-viewer-information::-webkit-scrollbar-thumb:hover {
    background: #666;
}


/* =========================================================
   SCROLLBARS
========================================================= */

.casefile-description-body::-webkit-scrollbar,
.casefile-employees-body::-webkit-scrollbar {
    width: 7px;
}


.casefile-description-body::-webkit-scrollbar-track,
.casefile-employees-body::-webkit-scrollbar-track {
    background-color: #1a1a18;
}


.casefile-description-body::-webkit-scrollbar-thumb,
.casefile-employees-body::-webkit-scrollbar-thumb {
    background-color: #555;

    border-radius: 4px;
}


.casefile-description-body::-webkit-scrollbar-thumb:hover,
.casefile-employees-body::-webkit-scrollbar-thumb:hover {
    background-color: #777;
}


.casefile-contents-header {
    width: 100%;

    display: flex;
    align-items: center;
    gap: 10px;

    padding: 16px 24px;
    margin-bottom: 10px;

    box-sizing: border-box;

    background-color: #242421;

    border: 1px solid #555;
    border-radius: 6px;

    color: #f2f2f2;

    font-family: Arial, sans-serif;
    font-size: 16px;
    font-weight: 600;
}

.casefile-contents-icon {
    width: 24px;
    height: 24px;

    flex-shrink: 0;

    object-fit: contain;
}



/* ============================================================
   CASEFILE CONTENTS
============================================================ */

.office-search-box {
    width: 100%;

    background: #1a1a18;

    border: 1px solid #444440;
    border-radius: 6px;

    overflow-x: auto;
    overflow-y: hidden;

    box-sizing: border-box;

    font-family: Arial, sans-serif;
}


.casefile-tree-table {
    width: 100%;
    min-width: 1050px;

    background: #1a1a18;

    color: #e8e8e6;

    font-family: Arial, sans-serif;
    font-size: 14px;
}


/* ============================================================
   GRID
============================================================ */

.casefile-tree-header,
.tree-row {
    display: grid;

    grid-template-columns:
        minmax(400px, 3.2fr)
        minmax(130px, 1fr)
        minmax(130px, 1fr)
        minmax(130px, 1fr)
        80px
        130px;

    align-items: center;

    box-sizing: border-box;
}


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

   Inputs above are 44px.
   Header is deliberately slightly taller.
============================================================ */

.casefile-tree-header {
    height: 48px;

    padding: 0 20px;

    background: #1f1f1d;

    border-bottom: 1px solid #555550;

    color: #f2f2f0;

    font-family: Arial, sans-serif;
    font-size: 13px;
    font-weight: 600;
}


/* ============================================================
   LIST RESET
============================================================ */

.casefile-tree-root,
.casefile-child-list {
    list-style: none;

    margin: 0;
    padding: 0;
}


.casefile-tree-item {
    position: relative;

    margin: 0;
    padding: 0;
}


/* ============================================================
   ROWS

   52px gives the tree enough physical weight compared with
   the 44px filter controls above it.
============================================================ */

.tree-row {
    height: 52px;

    padding: 0 20px;

    background: #242421;

    border-bottom: 1px solid #3d3d39;

    font-family: Arial, sans-serif;
    font-size: 14px;

    transition: background-color 0.12s ease;
}


.tree-row:hover {
    background: #2b2b28;
}


/* ============================================================
   COLUMNS
============================================================ */

.tree-name-column,
.tree-type-column,
.tree-original-date-column,
.tree-upload-date-column,
.tree-items-column,
.tree-actions-column {
    min-width: 0;

    font-family: Arial, sans-serif;
}


.tree-name-column {
    display: flex;
    align-items: center;

    gap: 9px;

    height: 100%;

    white-space: nowrap;
    overflow: hidden;
}


.tree-type-column,
.tree-original-date-column,
.tree-upload-date-column,
.tree-items-column {
    color: #dededb;

    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}


/* ============================================================
   FOLDER ROW
============================================================ */

.folder-row {
    font-weight: 500;
}


.folder-row .tree-name {
    color: #f3f3f1;
}


/* ============================================================
   FOLDER ICON

   Increased substantially from the old miniature icon.
============================================================ */

.folder-icon {
    width: 26px;
    height: 26px;

    flex: 0 0 26px;

    display: block;

    object-fit: contain;
}


/* ============================================================
   FOLDER ARROW
============================================================ */

.tree-arrow-button {
    width: 24px;
    height: 24px;

    flex: 0 0 24px;

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

    padding: 0;
    margin: 0;

    background: #292927;

    border: 1px solid #4e4e49;
    border-radius: 3px;

    color: #eeeeec;

    font-family: Arial, sans-serif;

    cursor: pointer;
}


.tree-arrow-button:hover {
    background: #363633;
    border-color: #666660;
}


.tree-arrow {
    display: block;

    font-family: Arial, sans-serif;
    font-size: 11px;
    line-height: 1;

    transition: transform 0.15s ease;
}


/* ============================================================
   RECORD FILE ICON
============================================================ */

.record-file-icon {
    width: 34px;
    height: 24px;

    flex: 0 0 34px;

    display: block;

    object-fit: contain;
}


/* ============================================================
   RECORD TITLE
============================================================ */

.record-link {
    display: block;

    min-width: 0;

    color: #eeeeec;

    font-family: Arial, sans-serif;
    font-size: 14px;
    font-weight: 400;

    text-decoration: none;

    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;

       cursor: pointer;
}


.record-link:hover {
    color: #ffffff;

    text-decoration: underline;
}


.record-link:visited {
    color: #eeeeec;
}


/* ============================================================
   ACTIONS
============================================================ */

.tree-actions-column {
    display: flex;
    align-items: center;

    gap: 9px;

    height: 100%;
}


.record-action-button {
    width: 28px;
    height: 28px;
    min-width: 28px;

    padding: 0;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    box-sizing: border-box;

    background: #292927;

    border: 1px solid #4b4b47;
    border-radius: 4px;

    cursor: pointer;
}

.record-action-button:hover {
    background: #353532;
    border-color: #62625d;
}

.record-action-button:active {
    background-color: #242421;
    border-color: #f2f2f2;
    transform: translateY(1px);
}

.record-action-icon {
    width: 16px;
    height: 16px;

    display: block;

    object-fit: contain;

    pointer-events: none;
}


/* ============================================================
   TREE INDENTATION

   Folder nesting determines indentation.
============================================================ */


/* LEVEL 0 */

.casefile-tree-root
> li
> .tree-row
.tree-name-column {
    padding-left: 0;
}


/* LEVEL 1 */

.casefile-tree-root
> li
> .casefile-child-list
> li
> .tree-row
.tree-name-column {
    padding-left: 34px;
}


/* LEVEL 2 */

.casefile-tree-root
> li
> .casefile-child-list
> li
> .casefile-child-list
> li
> .tree-row
.tree-name-column {
    padding-left: 68px;
}


/* LEVEL 3 */

.casefile-tree-root
> li
> .casefile-child-list
> li
> .casefile-child-list
> li
> .casefile-child-list
> li
> .tree-row
.tree-name-column {
    padding-left: 102px;
}


/* LEVEL 4 */

.casefile-tree-root
> li
> .casefile-child-list
> li
> .casefile-child-list
> li
> .casefile-child-list
> li
> .casefile-child-list
> li
> .tree-row
.tree-name-column {
    padding-left: 136px;
}


/* ============================================================
   RECORD ALIGNMENT

   Records don't have an arrow button, so they receive an
   additional offset to sit underneath their parent folder.
============================================================ */

.casefile-tree-root
> li
> .casefile-child-list
> li
> .casefile-child-list
> .record-tree-item
> .record-row
> .tree-name-column {
    padding-left: 102px;
}


.casefile-tree-root
> li
> .casefile-child-list
> li
> .casefile-child-list
> li
> .casefile-child-list
> .record-tree-item
> .record-row
> .tree-name-column {
    padding-left: 136px;
}


/* ============================================================
   OPEN / CLOSED FOLDERS
============================================================ */

.casefile-child-list {
    display: block;
}


.folder-tree-item.collapsed
> .casefile-child-list {
    display: none;
}


.casefile-child-list {
    overflow: hidden;
    transition: max-height 0.25s ease;
}


.tree-arrow {
    display: inline-block;
    color: #bdbdbd;
    transition: transform 0.18s ease;
}

.tree-arrow.expanded {
    transform: rotate(90deg);
}


/* ============================================================
   SCROLLBAR
============================================================ */

.office-search-box {
    scrollbar-width: thin;
    scrollbar-color: #555550 #1a1a18;
}


.office-search-box::-webkit-scrollbar {
    width: 7px;
    height: 7px;
}


.office-search-box::-webkit-scrollbar-track {
    background: #1a1a18;
}


.office-search-box::-webkit-scrollbar-thumb {
    background: #555550;

    border-radius: 10px;
}


.office-search-box::-webkit-scrollbar-thumb:hover {
    background: #686862;
}





/* ============================================================
   CASE FILE CONTENTS — READABLE VIEW
   Completely separate from compact casefile view
============================================================ */

#casefileReadableView {
    width: 100%;
    box-sizing: border-box;

    font-family: Arial, sans-serif;
    color: #f2f2f2;
}

#casefileReadableView[hidden] {
    display: none;
}


/* ============================================================
   TABLE CONTAINER
============================================================ */

#casefileReadableTable {
    width: 100%;
    box-sizing: border-box;

    background-color: #242421;

    border: 1px solid #555;
    border-radius: 6px;

    overflow-x: auto;
    overflow-y: hidden;

    font-family: Arial, sans-serif;
}


/* ============================================================
   COLUMN GRID

   1  Title
   2  Record Type
   3  Presentation Type
   4  Assessment Type
   5  Document Date
   6  Upload Date
   7  Office
   8  View Count
   9  Actions
============================================================ */

.readable-casefile-header,
.readable-tree-row {
    display: grid;

     grid-template-columns:
        minmax(360px, 1fr)  /* Title */
        150px               /* Record Category */
        135px               /* Presentation */
        135px               /* Assessment */
        125px               /* Document Date */
        115px               /* Upload Date */
        150px               /* Office */
        90px                /* View Count */
        120px;              /* Actions */
    align-items: center;

    column-gap: 18px;

    width: 100%;
    min-width: 1450px;

    box-sizing: border-box;
}


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

.readable-casefile-header {
    min-height: 46px;

    padding: 0 18px;

    background-color: #242421;

    border-bottom: 1px solid #555;

    color: #f2f2f2;

    font-family: Arial, sans-serif;
    font-size: 13px;
    font-weight: 600;
}


/* ============================================================
   TREE LIST RESET
============================================================ */

.readable-casefile-tree-root,
.readable-child-list {
    list-style: none;

    margin: 0;
    padding: 0;

    width: 100%;
}

.readable-tree-item {
    list-style: none;

    margin: 0;
    padding: 0;

    width: 100%;
}


/* ============================================================
   ALL TREE ROWS

   Intentionally taller than the ~42–44px inputs elsewhere
   so this section does not look visually compressed.
============================================================ */

.readable-tree-row {
    min-height: 58px;

    padding: 7px 18px;

    margin: 0;

    border: none;
    border-bottom: 1px solid #3a3a36;

    border-radius: 0;

    box-sizing: border-box;

    font-family: Arial, sans-serif;
    font-size: 14px;

    color: #f2f2f2;
}


/* ============================================================
   FOLDER ROWS
============================================================ */

.readable-folder-row {
    min-height: 58px;

    background-color: #242421;

    font-weight: 500;
}

.readable-folder-row:hover {
    background-color: #292926;
}


/* ============================================================
   RECORD ROWS

   Darker than folder rows so records are visually distinct.
============================================================ */

.readable-record-row {
    min-height: 58px;

    background-color: #242421;

    transition: background-color 0.15s ease;
}

.readable-record-row:hover {
    background-color: #30302a;
}


/* ============================================================
   NAME / TITLE COLUMN
============================================================ */

.readable-name-column {
    display: flex;
    align-items: center;

    gap: 9px;

    min-width: 0;
}

/* ============================================================
   TREE INDENTATION
============================================================ */

.readable-child-list {
    --readable-tree-depth: 1;
}

.readable-child-list .readable-child-list {
    --readable-tree-depth: 2;
}

.readable-child-list .readable-child-list .readable-child-list {
    --readable-tree-depth: 3;
}

.readable-child-list
.readable-name-column {
    padding-left:
        calc(
            var(--readable-tree-depth, 0) * 32px
        );
}

/* ============================================================
   FOLDER ARROW BUTTON
============================================================ */

.readable-tree-arrow-button {
    width: 26px;
    height: 26px;

    flex: 0 0 26px;

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

    padding: 0;

    background-color: #2a2a24;

    border: 1px solid #555;
    border-radius: 3px;

    color: #f2f2f2;

    font-family: Arial, sans-serif;

    cursor: pointer;
}

.readable-tree-arrow-button:hover {
    background-color: #30302c;
    border-color: #777;
}

.readable-tree-arrow-button:active {
    transform: translateY(1px);
}

.readable-tree-arrow {
    display: block;

    font-size: 13px;
    line-height: 1;
}


/* ============================================================
   FOLDER ICON
============================================================ */

.readable-folder-icon {
    width: 30px;
    height: 30px;

    flex: 0 0 30px;

    display: block;

    object-fit: contain;
}


/* ============================================================
   FOLDER NAME
============================================================ */

.readable-tree-name {
    min-width: 0;

    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;

    color: #f2f2f2;

    font-family: Arial, sans-serif;
    font-size: 14px;
    font-weight: 600;
}


/* ============================================================
   RECORD FILE ICON
============================================================ */

.readable-record-file-icon {
    width: 30px;
    height: 30px;

    flex: 0 0 30px;

    display: block;

    object-fit: contain;
}


/* ============================================================
   RECORD TITLE LINK
============================================================ */

.readable-record-link {
    min-width: 0;

    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;

    color: #f2f2f2;

    font-family: Arial, sans-serif;
    font-size: 14px;
    font-weight: 500;

    text-decoration: none;
}

.readable-record-link:hover {
    color: #ffffff;
    text-decoration: underline;
}

.readable-record-link:visited {
    color: #f2f2f2;
}


/* ============================================================
   STANDARD DATA COLUMNS
============================================================ */

.readable-record-type-column,
.readable-presentation-column,
.readable-assessment-column,
.readable-document-date-column,
.readable-upload-date-column,
.readable-office-column,
.readable-view-count-column,
.readable-actions-column {
    min-width: 0;

    font-family: Arial, sans-serif;
    font-size: 13px;

    color: #f2f2f2;
}


/* ============================================================
   CENTER SELECTED COLUMNS
============================================================ */

.readable-presentation-column,
.readable-assessment-column,
.readable-document-date-column,
.readable-upload-date-column,
.readable-view-count-column,
.readable-actions-column {
    text-align: center;
    justify-self: center;
}


/* ============================================================
   RECORD TYPE
============================================================ */

.readable-record-type-column {
    color: #f2f2f2;
}


/* ============================================================
   OFFICE
============================================================ */

.readable-office-column {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}


/* ============================================================
   VIEW COUNT
============================================================ */

.readable-view-count-column {
    font-variant-numeric: tabular-nums;
}


/* ============================================================
   TAG BASE

   Same visual sizing/style as your existing profile record
   tags, adjusted slightly for the taller readable rows.
============================================================ */

.readable-record-tag {
    display: inline-block;

    padding: 4px 9px;

    border: 1px solid;
    border-radius: 4px;

    font-family: Arial, sans-serif;
    font-size: 12px;
    font-weight: 600;

    line-height: 1.1;

    white-space: nowrap;
}


/* ============================================================
   PRESENTATION TYPE — RAW

   Same palette as .record-presentation.raw
============================================================ */

.readable-presentation-raw {
    color: #d6d6d6;

    background: rgba(255, 255, 255, 0.08);

    border-color: rgba(255, 255, 255, 0.10);
}


/* ============================================================
   PRESENTATION TYPE — EVIDENCE

   Same palette as .record-presentation.evidence
============================================================ */

.readable-presentation-evidence {
    color: #d4c2ff;

    background: rgba(130, 90, 255, 0.15);

    border-color: rgba(130, 90, 255, 0.25);
}


/* ============================================================
   PRESENTATION TYPE — COMMENTARY

   Same palette as .record-presentation.commentary
============================================================ */

.readable-presentation-commentary {
    color: #93e39b;

    background: rgba(45, 170, 65, 0.15);

    border-color: rgba(45, 170, 65, 0.25);
}


/* ============================================================
   ASSESSMENT TYPE — ROUTINE

   Same palette as .record-assessment.routine
============================================================ */

.readable-assessment-routine {
    color: #8cb8ff;

    background: rgba(70, 120, 255, 0.15);

    border-color: rgba(70, 120, 255, 0.25);
}


/* ============================================================
   ASSESSMENT TYPE — ABSURD

   Same palette as .record-assessment.absurd
============================================================ */

.readable-assessment-absurd {
    color: #ff9b73;

    background: rgba(241, 90, 36, 0.16);

    border-color: rgba(241, 90, 36, 0.28);
}


/* ============================================================
   ACTIONS
============================================================ */

.readable-actions-column {
    display: flex;
    align-items: center;
    justify-content: center;

    gap: 10px;
}

.readable-view-record-button,
.readable-download-record-button,
.readable-share-record-button {
    width: 28px;
    height: 28px;
    min-width: 28px;

    padding: 0;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    box-sizing: border-box;

    background-color: #2a2a24;

    border: 1px solid #666;
    border-radius: 4px;

    color: #f2f2f2;

    font-family: Arial, sans-serif;
    font-size: 12px;
    font-weight: 500;

    cursor: pointer;

    transition:
        background-color 0.12s ease,
        border-color 0.12s ease;
}

.readable-view-record-button:hover,
.readable-download-record-button:hover,
.readable-share-record-button:hover {
    background-color: #20201e;
    border-color: #aaa;
}

.readable-view-record-button:active,
.readable-download-record-button:active,
.readable-share-record-button:active {
    background-color: #242421;
    border-color: #f2f2f2;

    transform: translateY(1px);
}

.readable-record-action-icon {
    width: 16px;
    height: 16px;

    display: block;
    object-fit: contain;

    pointer-events: none;
}

/* ============================================================
   LAST ROW
============================================================ */



/* ============================================================
   HORIZONTAL SCROLLBAR
============================================================ */

#casefileReadableTable {
    scrollbar-width: thin;
    scrollbar-color: #555550 #1a1a18;
}

#casefileReadableTable::-webkit-scrollbar {
    height: 6px;
}

#casefileReadableTable::-webkit-scrollbar-track {
    background: #1a1a18;
}

#casefileReadableTable::-webkit-scrollbar-thumb {
    background: #555550;
    border-radius: 999px;
}

#casefileReadableTable::-webkit-scrollbar-thumb:hover {
    background: #f15a24;
}

#casefileReadableTable::-webkit-scrollbar-corner {
    background: #1a1a18;
}

.readable-record-action-icon,
.record-action-icon {
    width: 17px !important;
    height: 17px !important;
    max-width: 17px;
    max-height: 17px;
    object-fit: contain;
    display: block;
}


/* ============================================================
   CASEFILE VIEW SWITCH
============================================================ */

.casefile-view-switch {
    display: inline-flex;
    align-items: center;

    margin-left: 12px;
    padding: 3px;

    background-color: #1a1a18;

    border: 1px solid #555;
    border-radius: 999px;

    box-sizing: border-box;
}


.casefile-view-switch-button {
    height: 28px;

    padding: 0 12px;

    background: transparent;
    border: none;
    border-radius: 999px;

    color: #aaa;

    font-family: Arial, sans-serif;
    font-size: 12px;
    font-weight: 600;

    cursor: pointer;

    transition:
        background-color 0.15s ease,
        color 0.15s ease;
}


.casefile-view-switch-button:hover {
    color: #f2f2f2;
}


.casefile-view-switch-button.active {
    background-color: #f15a24;
    color: #fff;
}



.record-viewer-overlay.hidden {
    display: none;
}


/* =========================================================
   RECORD VIEWER OVERLAY
========================================================= */

.record-viewer-overlay {
    position: fixed;
    inset: 0;
    z-index: 100000;

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

    padding: 28px;

    background: rgba(13, 13, 12, 0.82);
    backdrop-filter: blur(4px);

    font-family: Arial, sans-serif;
}

.record-viewer-overlay.hidden {
    display: none;
}


/* =========================================================
   MODAL
========================================================= */

.record-viewer-modal {
    width: min(1500px, 96vw);
    height: min(850px, 92vh);

    display: flex;
    flex-direction: column;

    background: #1a1a18;
    border: 1px solid #555;
    border-radius: 6px;

    color: #fff;

    overflow: hidden;

    box-shadow: 0 18px 55px rgba(0, 0, 0, 0.45);
}


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

.record-viewer-header {
    flex: 0 0 auto;

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

    gap: 20px;

    padding: 20px 24px 14px;

    background: #1a1a18;
}

.record-viewer-title-area {
    min-width: 0;

    display: flex;
    flex-direction: column;
    gap: 7px;

    font-size: 14px;
    line-height: 1.35;

    color: #d6d6d3;
}

.record-viewer-title-area strong {
    color: #fff;
    font-weight: 700;
}

.record-viewer-casefile-title,
.record-viewer-record-title {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.record-viewer-close {
    flex: 0 0 auto;

    width: 32px;
    height: 32px;

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

    padding: 0;

    border: none;
    background: transparent;

    color: #aaa;
    font-family: Arial, sans-serif;
    font-size: 28px;
    line-height: 1;

    cursor: pointer;
}

.record-viewer-close:hover {
    color: #f15a24;
}


/* =========================================================
   MAIN BODY
========================================================= */

.record-viewer-body {
    flex: 1;
    min-height: 0;

    display: grid;
    grid-template-columns: minmax(0, 1.18fr) minmax(460px, 0.82fr);

    gap: 20px;

    padding: 0 20px 20px;
}


/* =========================================================
   LEFT DOCUMENT VIEWER
========================================================= */

.record-viewer-document {
    min-width: 0;
    min-height: 0;

    display: flex;
    flex-direction: column;

    background: #242421;
    border: 1px solid #555;
    border-radius: 5px;

    overflow: hidden;
}


/* =========================================================
   DOCUMENT TOOLBAR
========================================================= */

.record-viewer-toolbar {
    flex: 0 0 58px;

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

    padding: 0 18px;

    background: #242421;
    border-bottom: 1px solid #555;
}


/* =========================================================
   DOWNLOAD BUTTON — LEFT
========================================================= */

.record-viewer-download-button {
    width: 32px;
    height: 32px;

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

    padding: 0;

    background: #1a1a18;
    border: 1px solid #3a3a36;
    border-radius: 4px;

    cursor: pointer;
}

.record-viewer-download-button:hover {
    border-color: #f15a24;
}

.record-viewer-download-button img {
    width: 17px;
    height: 17px;

    display: block;
    object-fit: contain;
}


/* =========================================================
   ZOOM CONTROLS — RIGHT
========================================================= */

.record-viewer-zoom-controls {
    display: flex;
    align-items: center;
    gap: 12px;
}

.record-viewer-zoom-value {
    min-width: 52px;

    color: #fff;

    font-size: 13px;
    font-weight: 600;
    text-align: center;
}

.record-viewer-zoom-button {
    width: 32px;
    height: 32px;

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

    padding: 0;

    background: #1a1a18;
    border: 1px solid #3a3a36;
    border-radius: 4px;

    color: #fff;

    font-family: Arial, sans-serif;
    font-size: 20px;
    line-height: 1;

    cursor: pointer;
}

.record-viewer-zoom-button:hover {
    border-color: #f15a24;
    color: #f15a24;
}

.record-viewer-zoom-button:active {
    transform: translateY(1px);
}


/* =========================================================
   DOCUMENT DISPLAY
========================================================= */

.record-viewer-document-container {
    position: relative;

    flex: 1;
    min-height: 0;

    width: 100%;
    height: 100%;

    min-width: 0;
    min-height: 0;

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

    overflow: auto;

    background: #1a1a18;
}

.record-viewer-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    gap: 18px;

    color: #fff;
}

.record-viewer-placeholder-icon {
    width: 100px;
    height: 125px;
}

.record-viewer-placeholder-icon img {
    width: 100%;
    height: 100%;

    object-fit: contain;

    opacity: 0.65;
}

.record-viewer-placeholder-title {
    font-size: 27px;
    font-weight: 500;
    color: #fff;
}

.record-viewer-placeholder-type {
    font-size: 21px;
    color: #888;
}


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

.record-viewer-information {
    min-width: 0;
    min-height: 0;

    display: flex;
    flex-direction: column;

    background: #242421;
    border: 1px solid #555;
    border-radius: 5px;

    overflow: hidden;
}


/* =========================================================
   METADATA GRID
========================================================= */

.record-viewer-metadata {
    flex: 0 0 auto;

    display: grid;
    grid-template-columns: 1fr 1fr;

    background: #242421;

    border-bottom: 1px solid #555;
}

.record-viewer-meta-item {
    min-width: 0;
    min-height: 78px;

    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;

    gap: 8px;

    padding: 14px 20px;

    border-bottom: 1px solid #3a3a36;
}

.record-viewer-meta-item:nth-child(odd) {
    border-right: 1px solid #3a3a36;
}

.record-viewer-meta-item:nth-last-child(-n + 2) {
    border-bottom: none;
}

.record-viewer-meta-label {
    color: #aaa;

    font-size: 13px;
    font-weight: 600;
}

.record-viewer-meta-value {
    max-width: 100%;

    color: #fff;

    font-size: 14px;
    line-height: 1.3;

    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}


/* =========================================================
   PRESENTATION TAGS
========================================================= */

.record-viewer-meta-item .record-presentation {
    display: inline-flex;
    align-items: center;

    width: fit-content;

    padding: 4px 10px;

    border-radius: 4px;

    font-size: 12px;
    font-weight: 600;
    line-height: 1.2;

    white-space: nowrap;
}

.record-viewer-meta-item .record-presentation.raw {
    color: #fff;
    background: #333330;
    border: 1px solid #555;
}

.record-viewer-meta-item .record-presentation.evidence {
    color: #cdb7ff;
    background: #2b2140;
    border: 1px solid #554078;
}

.record-viewer-meta-item .record-presentation.commentary {
    color: #6cff8d;
    background: #16351d;
    border: 1px solid #286438;
}


/* =========================================================
   ASSESSMENT TAGS
========================================================= */

.record-viewer-meta-item .record-assessment {
    display: inline-flex;
    align-items: center;

    width: fit-content;

    padding: 4px 10px;

    border-radius: 4px;

    font-size: 12px;
    font-weight: 600;
    line-height: 1.2;

    white-space: nowrap;
}

.record-viewer-meta-item .record-assessment.routine {
    color: #75a7ff;
    background: #172844;
    border: 1px solid #31558d;
}

.record-viewer-meta-item .record-assessment.absurd {
    color: #ff875f;
    background: #3c1b10;
    border: 1px solid #813719;
}


/* =========================================================
   DESCRIPTION SECTION
========================================================= */

.record-viewer-description-section {
    flex: 0 0 auto;

    padding: 16px 18px 0;

    background: #242421;
}

.record-viewer-section-title {
    margin: 0 0 10px;

    color: #fff;

    font-family: Arial, sans-serif;
    font-size: 14px;
    font-weight: 700;
}

.record-viewer-description {
    height: 150px;

    padding: 14px 16px;

    overflow-y: auto;
    overflow-x: hidden;

    box-sizing: border-box;

    background: #1a1a18;

    border-top: 1px solid #555;
    border-bottom: 1px solid #555;

    color: #d6d6d3;

    font-family: Arial, sans-serif;
    font-size: 13px;
    line-height: 1.55;

    white-space: pre-wrap;
    overflow-wrap: break-word;
}


/* =========================================================
   FILE TEXT SECTION
========================================================= */

.record-viewer-file-text-section {
    flex: 1;
    min-height: 0;

    display: flex;
    flex-direction: column;

    padding: 16px 18px 16px;

    background: #242421;
}

.record-viewer-file-text {
    flex: 1;
    min-height: 120px;

    padding: 14px 16px;

    overflow-y: auto;
    overflow-x: hidden;

    box-sizing: border-box;

    background: #1a1a18;

    border-top: 1px solid #555;
    border-bottom: 1px solid #555;

    color: #d6d6d3;

    font-family: Arial, sans-serif;
    font-size: 13px;
    line-height: 1.55;

    white-space: pre-wrap;
    overflow-wrap: break-word;
}


/* =========================================================
   COPY BUTTON
========================================================= */

.record-viewer-copy-container {
    flex: 0 0 auto;

    padding-top: 12px;
}

.record-viewer-copy-button {
    height: 34px;

    padding: 0 14px;

    background: #1a1a18;

    border: 1px solid #555;
    border-radius: 4px;

    color: #fff;

    font-family: Arial, sans-serif;
    font-size: 12px;
    font-weight: 600;

    cursor: pointer;
}

.record-viewer-copy-button:hover {
    border-color: #f15a24;
    color: #f15a24;
}

.record-viewer-copy-button:active {
    transform: translateY(1px);
}


/* =========================================================
   SCROLLBARS
========================================================= */

.record-viewer-document-container,
.record-viewer-description,
.record-viewer-file-text {
    scrollbar-width: thin;
    scrollbar-color: #555 #1a1a18;
}

.record-viewer-document-container::-webkit-scrollbar,
.record-viewer-description::-webkit-scrollbar,
.record-viewer-file-text::-webkit-scrollbar {
    width: 7px;
    height: 7px;
}

.record-viewer-document-container::-webkit-scrollbar-track,
.record-viewer-description::-webkit-scrollbar-track,
.record-viewer-file-text::-webkit-scrollbar-track {
    background: #1a1a18;
}

.record-viewer-document-container::-webkit-scrollbar-thumb,
.record-viewer-description::-webkit-scrollbar-thumb,
.record-viewer-file-text::-webkit-scrollbar-thumb {
    background: #555;
    border-radius: 10px;
}

.record-viewer-document-container::-webkit-scrollbar-thumb:hover,
.record-viewer-description::-webkit-scrollbar-thumb:hover,
.record-viewer-file-text::-webkit-scrollbar-thumb:hover {
    background: #666;
}


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

@media (max-width: 1000px) {

    .record-viewer-modal {
        width: 96vw;
        height: 94vh;
    }

    .record-viewer-body {
        grid-template-columns: 1fr;
        overflow-y: auto;
    }

    .record-viewer-document {
        min-height: 600px;
    }

    .record-viewer-information {
        min-height: 650px;
    }
}


/* =========================================================
   DOCUMENT VIEWPORT
========================================================= */

.record-viewer-document-area {
    position: relative;

    width: 100%;
    height: 100%;

    overflow: auto;

    user-select: none;
    cursor: grab;
    overscroll-behavior: contain;
}

.record-viewer-document-area.is-dragging {
    cursor: grabbing;
}


/* =========================================================
   ACTUAL DOCUMENT
========================================================= */

.record-viewer-document {
    display: block;

    transform-origin: top left;
    transform: scale(1);

    user-select: none;
    -webkit-user-drag: none;
}

.record-viewer-document img,
img.record-viewer-document {
    display: block;

    max-width: none;
    max-height: none;

    user-select: none;
    -webkit-user-drag: none;
}


/* =========================================================
   RECORD TITLE LINK
========================================================= */

.casefile-record-title-link {
    display: block;
    width: 100%;
    max-width: 100%;

    padding: 0;
    margin: 0;

    border: none;
    outline: none;
    background: transparent;

    color: #ffffff;
    font-family: Arial, sans-serif;
    font-size: inherit;
    font-weight: inherit;
    text-align: left;

    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;

    cursor: pointer;
}

.casefile-record-title-link:hover {
    color: #fff;
    text-decoration: underline;
}

.casefile-record-title-link:focus {
    outline: none;
}

.casefile-record-title-link:active {
    transform: translateY(1px);
}


/* =========================================================
   PDF
========================================================= */

.record-viewer-pdf {
    display: block;

    width: 100%;
    height: 100%;

    min-width: 100%;
    min-height: 100%;

    border: 0;
    margin: 0;
    padding: 0;

    background: #1a1a18;
}


/* =========================================================
   SHARE MESSAGE
========================================================= */

.record-share-message {
    position: fixed;

    left: 50%;
    top: 120px;

    transform: translateX(-50%);

    z-index: 10000;

    padding: 12px 22px;

    background: rgba(241, 90, 36, 0.16);
    border: 1px solid rgba(241, 90, 36, 0.65);
    border-radius: 5px;

    color: #ff8a60;

    font-family: Arial, sans-serif;
    font-size: 14px;
    font-weight: 700;

    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);

    backdrop-filter: blur(6px);

    white-space: nowrap;
}


/* =========================================================
   IMAGE
========================================================= */

.record-viewer-image {
    display: block;

    width: auto;
    height: auto;

    max-width: 100%;
    max-height: none;

    margin: 0 auto;

    object-fit: contain;
}


.record-link {
    display: block;
    width: 100%;
    max-width: 100%;

    padding: 0;
    margin: 0;

    border: none;
    outline: none;
    background: transparent;

    color: #ffffff;
    font-family: Arial, sans-serif;
    font-size: inherit;
    font-weight: inherit;
    text-align: left;

    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;

    cursor: pointer;
}

.record-link:hover {
    color: #ffffff;
    text-decoration: underline;
}

.record-link:focus {
    outline: none;
}

.record-link:active {
    transform: translateY(1px);
}


/* ===========================
   LOADING OVERLAY
=========================== */

.loading-overlay {
    position: fixed;
    inset: 0;

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

    background: rgba(0,0,0,.65);
    backdrop-filter: blur(2px);

    z-index: 999999;
}

.hidden {
    display: none;
}

.loading-modal {
    width: 420px;
    max-width: 90%;

    background: #1b1b1b;

    border: 1px solid rgba(241,90,36,.30);
    border-radius: 14px;

    padding: 40px;

    text-align: center;

    box-shadow:
        0 0 24px rgba(241,90,36,.22),
        0 0 50px rgba(241,90,36,.10),
        0 20px 60px rgba(0,0,0,.55);
}

.loading-circle {
    position: relative;

    width: 120px;
    height: 120px;

    margin: 0 auto 25px;
}

.loading-spinner {
    position: absolute;
    inset: 0;

    border: 8px solid #343434;
    border-top: 8px solid #f15a24;

    border-radius: 50%;

    animation: loading-spin 1s linear infinite;
}

.loading-percentage {
    position: absolute;
    inset: 0;

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

    font-size: 25px;
    font-weight: bold;
    font-family: Arial, sans-serif;
    color: white;
}

#loading-title {
    margin: 0 0 12px;

    color: #ffffff;
    font-size: 22px;
    font-family: Arial, sans-serif;
}

#loading-message {
    margin: 0 0 25px;

    color: #bdbdbd;
    font-size: 15px;
    line-height: 1.5;
    font-family: Arial, sans-serif;
}

.loading-bar {
    width: 100%;
    height: 10px;

    overflow: hidden;

    background: #343434;

    border-radius: 999px;
}

#loading-progress {
    width: 0%;
    height: 100%;

    background: #f15a24;

    transition: width .3s ease;
}

@keyframes loading-spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}


/* ============================================================
   CASE FILE VIEW HELP TOOLTIP
============================================================ */

.casefile-view-help-tooltip {
    position: relative;
    display: inline-flex;
    align-items: center;

    margin-left: -2px;
}

.casefile-view-help-icon {
    display: flex;
    justify-content: center;
    align-items: center;

    width: 17px;
    height: 17px;

    border: 1px solid #666;
    border-radius: 50%;

    font-family: Arial, sans-serif;
    font-size: 10px;
    font-weight: bold;

    color: #9b9b9b;

    cursor: help;
    transition: .2s ease;
}

.casefile-view-help-icon:hover {
    color: #f15a24;
    border-color: #f15a24;

    background: rgba(241, 90, 36, .12);
}


.casefile-view-tooltip-text {
    position: absolute;

    left: 50%;
    bottom: 130%;

    transform: translateX(-50%);

    width: 320px;

    padding: 12px;

    background: #1a1a18;

    border: 1px solid #3a3a36;
    border-radius: 8px;

    font-family: Arial, sans-serif;
    font-size: 13px;
    line-height: 1.5;

    color: #d0d0d0;

    box-shadow: 0 10px 24px rgba(0, 0, 0, .45);

    opacity: 0;
    visibility: hidden;

    transition: .2s ease;

    pointer-events: none;

    z-index: 1000;
}


.casefile-view-help-tooltip:hover
.casefile-view-tooltip-text {
    opacity: 1;
    visibility: visible;
}

/* =========================================================
   1367px–1550px — CASE FILE PROFILE
   RELEASE OUTER + INNER HORIZONTAL PADDING
========================================================= */

@media (min-width: 1367px) and (max-width: 1550px) {

    .record-viewer-information {
    min-width: 0;
    min-height: 0;

    display: flex;
    flex-direction: column;

    background: #242421;
    border: 1px solid #555;
    border-radius: 5px;

    overflow-x: hidden;
    overflow-y: auto;
}

    .record-viewer-overlay {
        padding: 14px;
    }

    .record-viewer-modal {
        width: min(1220px, 92vw);
        height: min(700px, 88vh);
    }

    .record-viewer-header {
        padding: 12px 16px 9px;
        gap: 12px;
    }

    .record-viewer-title-area {
        gap: 3px;
        font-size: 11px;
        line-height: 1.25;
    }

    .record-viewer-close {
        width: 26px;
        height: 26px;
        font-size: 22px;
    }

    .record-viewer-body {
        grid-template-columns:
            minmax(0, 1.5fr)
            minmax(330px, 0.7fr);

        gap: 12px;
        padding: 0 14px 14px;
    }

    .record-viewer-toolbar {
        min-height: 32px;
        height: 32px;
    }

    .record-viewer-document-container,
    .record-viewer-metadata {
        min-width: 0;
        min-height: 0;
    }

    /* OUTER PAGE */
    .profile-main {
        padding-left: 18px;
        padding-right: 18px;
    }

    /* TOP CASE FILE HEADER */
    .profile-office {
        padding-left: 20px;
        padding-right: 20px;
    }

     /* =====================================================
       CASE FILE ICON
    ===================================================== */

    .profile-office-photo {
        width: 145px;
        height: 145px;
        flex: 0 0 145px;
    }


    /* =====================================================
       CASE FILE TITLE
    ===================================================== */

    .profile-casefile-name {
        font-size: 18px;
        line-height: 1.08;
        margin-bottom: 6px;
    }


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

    .casefile-header-details {
        margin-top: 20px;
        gap: 14px;
    }

    .casefile-header-detail {
        gap: 9px;
        padding: 3px 12px;
    }

    .casefile-header-detail-icon {
        width: 21px;
        height: 21px;
    }

    .casefile-header-detail-text {
        gap: 3px;
    }

    .casefile-header-detail-label {
        font-size: 12px;
    }

    .casefile-header-detail-value {
        font-size: 12px;
    }

    .casefile-header-status {
        padding: 2px 6px;
        font-size: 10px;
    }


    /* =====================================================
       RIGHT METADATA AREA
    ===================================================== */

    .profile-record-meta {
        gap: 14px;
    }

    .profile-meta-cards {
        gap: 12px;
    }

    .profile-meta-card {
        min-height: 125px;
    }


    /* =====================================================
       METADATA ICONS
    ===================================================== */

    .profile-meta-icon {
        width: 21px;
        height: 21px;
        margin-bottom: 11px;
    }

    .profile-meta-icon-money {
        width: 12px;
        height: 21px;
        margin-bottom: 11px;
    }

    .profile-record-meta-icon {
        width: 18px;
        height: 18px;
        margin-bottom: 11px;
    }

    .profile-record-meta-icon.column-white {
        width: 20px;
        height: 20px;
    }


    /* =====================================================
       METADATA NUMBERS + LABELS
    ===================================================== */

    .profile-meta-number {
        font-size: 23px;
        margin-bottom: 6px;
    }

    .profile-meta-label {
        font-size: 13px;
    }

    /* =====================================================
   READABLE VIEW
   COMPRESS COLUMNS TO FIT MIDSIZE LAPTOP
===================================================== */

#casefileReadableTable {
    overflow-x: hidden;
}


/* =====================================================
   READABLE VIEW COLUMN GRID

   1  Title
   2  Record Type
   3  Presentation Type
   4  Assessment Type
   5  Document Date
   6  Upload Date
   7  Office
   8  View Count
   9  Actions
===================================================== */

.readable-casefile-header,
.readable-tree-row {

    grid-template-columns:
        minmax(270px, 2.4fr)  /* Title */
        minmax(95px, 0.85fr)  /* Record Type */
        minmax(95px, 0.85fr)  /* Presentation */
        minmax(95px, 0.85fr)  /* Assessment */
        minmax(90px, 0.8fr)   /* Document Date */
        minmax(90px, 0.8fr)   /* Upload Date */
        minmax(95px, 0.9fr)   /* Office */
        70px                   /* View Count */
        100px;                 /* Actions */

    column-gap: 10px;

    width: 100%;
    min-width: 0;
}


/* =====================================================
   REDUCE INNER ROW PADDING SLIGHTLY
===================================================== */
.readable-casefile-header,
.readable-tree-row {
    grid-template-columns:
        minmax(340px, 3.2fr)  /* Title — MORE ROOM */
        minmax(80px, 0.65fr)  /* Record Type */
        minmax(90px, 0.8fr)   /* Presentation */
        minmax(90px, 0.8fr)   /* Assessment */
        minmax(88px, 0.75fr)  /* Document Date */
        minmax(88px, 0.75fr)  /* Upload Date */
        minmax(80px, 0.7fr)   /* Office */
        55px                   /* View Count */
        94px;                  /* Actions */

    column-gap: 9px;

    width: 100%;
    min-width: 0;
}

/* =====================================================
   ACTIONS
===================================================== */

.readable-actions-column {
    gap: 6px;
}

    

}


/* =========================================================
   1366px — CASE FILE PROFILE
   TOP HEADER COMPRESSION + 50/50 INFORMATION SECTION
========================================================= */

@media (max-width: 1366px) {

     /* =========================================
       RECORD VIEWER OVERLAY
    ========================================= */

    .record-viewer-overlay {
        padding: 20px;
    }

    .record-viewer-modal {
        width: min(900px, 86vw);
        height: min(700px, 86vh);
        max-width: 900px;
        max-height: 700px;
    }


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

    .record-viewer-header {
        padding: 10px 14px 8px;
        gap: 10px;
    }

    .record-viewer-title-area {
        gap: 3px;
        font-size: 13px;
        line-height: 1.3;
    }

    .record-viewer-close {
        width: 24px;
        height: 24px;
        font-size: 22px;
    }


    /* =========================================
       BODY
       DOCUMENT TOP / INFORMATION BELOW
    ========================================= */

    .record-viewer-body {
        display: flex;
        flex-direction: column;

        gap: 12px;

        padding: 0 12px 12px;

        min-width: 0;
        min-height: 0;

        overflow-x: hidden;
        overflow-y: auto;
    }


    /* =========================================
       DOCUMENT VIEWER
    ========================================= */

    .record-viewer-document {
        flex: 0 0 480px;

        width: 100%;
        height: 480px;

        min-width: 0;
        min-height: 480px;

        box-sizing: border-box;
    }

    .record-viewer-toolbar {
        flex: 0 0 32px;

        width: 100%;
        height: 32px;
        min-height: 32px;

        box-sizing: border-box;
    }

    .record-viewer-document-container {
        flex: 1;

        width: 100%;

        min-width: 0;
        min-height: 0;

        box-sizing: border-box;
    }


    /* =========================================
       ENTIRE INFORMATION PANEL
    ========================================= */

    .record-viewer-information {
        flex: 0 0 auto;

        width: 100%;

        min-width: 0;
        min-height: 0;

        height: auto;
        max-height: none;

        display: flex;
        flex-direction: column;

        overflow: visible;

        box-sizing: border-box;
    }


    /* =========================================
       METADATA
    ========================================= */

    .record-viewer-metadata {
        flex: 0 0 auto;

        width: 100%;
        height: auto;

        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));

        overflow: visible;

        box-sizing: border-box;
    }

    .record-viewer-meta-item {
        min-width: 0;
        min-height: 64px;

        padding: 10px 16px;
    }

    .record-viewer-meta-label {
        font-size: 13px;
    }

    .record-viewer-meta-value {
        font-size: 14px;
    }


    /* =========================================
       DESCRIPTION
    ========================================= */

    .record-viewer-description-section {
        flex: 0 0 auto;

        width: 100%;

        padding: 12px 14px 0;

        box-sizing: border-box;
    }

    .record-viewer-section-title {
        margin-bottom: 7px;
        font-size: 14px;
    }

    .record-viewer-description {
        height: 130px;
        min-height: 130px;

        padding: 10px 12px;

        font-size: 13px;
        line-height: 1.5;
    }


    /* =========================================
       FILE TEXT
    ========================================= */

    .record-viewer-file-text-section {
        flex: 0 0 auto;

        width: 100%;
        min-height: 0;

        padding: 12px 14px;

        box-sizing: border-box;
    }

    .record-viewer-file-text {
        flex: none;

        height: 150px;
        min-height: 150px;

        padding: 10px 12px;

        font-size: 13px;
        line-height: 1.5;
    }

    /* =====================================================
       PAGE
    ===================================================== */

    .profile-main {
        padding: 16px 20px;
    }


    /* =====================================================
       UPPER CASE FILE METADATA BAR
       SHRINK EVERYTHING TOGETHER
    ===================================================== */

    .profile-office {
        gap: 20px;
        padding: 18px;
        margin-bottom: 16px;
    }


    /* =====================================================
       CASE FILE FOLDER ICON
    ===================================================== */

    .profile-office-photo {
        width: 130px;
        height: 130px;
        flex: 0 0 130px;
    }


    /* =====================================================
       CASE FILE TITLE
    ===================================================== */

    .profile-casefile-name {
        font-size: 17px;
        line-height: 1.08;
        margin-bottom: 5px;
    }


    /* =====================================================
       LEFT-SIDE HEADER DETAILS
    ===================================================== */

    .casefile-header-details {
        margin-top: 16px;
        gap: 12px;
    }

    .casefile-header-detail {
        gap: 8px;
        padding: 3px 10px;
    }

    .casefile-header-detail-icon {
        width: 19px;
        height: 19px;
    }

    .casefile-header-detail-text {
        gap: 2px;
    }

    .casefile-header-detail-label {
        font-size: 11px;
    }

    .casefile-header-detail-value {
        font-size: 11px;
    }

    .casefile-header-status {
        padding: 2px 5px;
        font-size: 9px;
    }


    /* =====================================================
       RIGHT-SIDE STAT CARDS
    ===================================================== */

    .profile-record-meta {
        gap: 10px;
    }

    .profile-meta-cards {
        gap: 9px;
    }

    .profile-meta-card {
        min-height: 105px;
    }


    /* =====================================================
       STAT CARD ICONS
    ===================================================== */

    .profile-meta-icon {
        width: 18px;
        height: 18px;
        margin-bottom: 8px;
    }

    .profile-meta-icon-money {
        width: 10px;
        height: 18px;
        margin-bottom: 8px;
    }

    .profile-record-meta-icon {
        width: 16px;
        height: 16px;
        margin-bottom: 8px;
    }

    .profile-record-meta-icon.column-white {
        width: 18px;
        height: 18px;
    }


    /* =====================================================
       STAT CARD NUMBERS + LABELS
    ===================================================== */

    .profile-meta-number {
        font-size: 20px;
        margin-bottom: 5px;
    }

    .profile-meta-label {
        font-size: 11px;
    }


    /* =====================================================
       DESCRIPTION + INVOLVED EMPLOYEES
       CHANGE 2/3 : 1/3 → 50 : 50
    ===================================================== */

    .casefile-information {
        grid-template-columns:
            minmax(0, 1fr)
            minmax(0, 1fr);

        gap: 14px;
        margin-bottom: 16px;
    }


    /* =====================================================
       DESCRIPTION / EMPLOYEE OUTER CARDS
    ===================================================== */

    .casefile-description-section,
    .casefile-employees-section {
        padding: 14px;
    }

    /* =====================================================
   READABLE VIEW — 1366px
   REMOVE OFFICE + VIEW COUNT
===================================================== */

#casefileReadableTable {
    overflow-x: hidden;
}


/* Hide Office */

.readable-casefile-header > .readable-office-column,
.readable-tree-row > .readable-office-column {
    display: none;
}


/* Hide View Count */

.readable-casefile-header > .readable-view-count-column,
.readable-tree-row > .readable-view-count-column {
    display: none;
}


/* =====================================================
   REBUILD READABLE GRID

   1  Title
   2  Record Type
   3  Presentation Type
   4  Assessment Type
   5  Document Date
   6  Upload Date
   7  Actions
===================================================== */

.readable-casefile-header,
.readable-tree-row {
    grid-template-columns:
        minmax(300px, 3fr)
        minmax(90px, 0.8fr)
        minmax(95px, 0.85fr)
        minmax(95px, 0.85fr)
        minmax(90px, 0.8fr)
        minmax(90px, 0.8fr)
        105px;

    column-gap: 10px;

    width: 100%;
    min-width: 0;
}


/* =====================================================
   ACTIONS — NOW FINAL COLUMN
===================================================== */

.readable-actions-column {
    display: flex;
    align-items: center;
    justify-content: center;
    justify-self: stretch;

    gap: 6px;

    width: 100%;
    min-width: 0;
}

}

/* =========================================================
   769px–1366px — CASEFILE TOP METADATA STACK
========================================================= */

@media (min-width: 769px) and (max-width: 1366px) {

      /* =========================================
       RECORD VIEWER OVERLAY
       SAME DESIGN — SCALED DOWN
    ========================================= */

    .record-viewer-overlay {
        padding: 16px;
    }

    .record-viewer-modal {
        width: min(800px, 84vw);
        height: min(640px, 84vh);

        max-width: 800px;
        max-height: 640px;
    }


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

    .record-viewer-header {
        padding: 9px 12px 7px;
        gap: 8px;
    }

    .record-viewer-title-area {
        gap: 3px;

        font-size: 12px;
        line-height: 1.3;
    }

    .record-viewer-close {
        width: 22px;
        height: 22px;

        font-size: 21px;
    }


    /* =========================================
       BODY
       DOCUMENT TOP / INFORMATION BELOW
    ========================================= */

    .record-viewer-body {
        display: flex;
        flex-direction: column;

        gap: 10px;

        padding: 0 10px 10px;

        min-width: 0;
        min-height: 0;

        overflow-x: hidden;
        overflow-y: auto;
    }


    /* =========================================
       DOCUMENT VIEWER
       SCALED DOWN
    ========================================= */

    .record-viewer-document {
        flex: 0 0 420px;

        width: 100%;
        height: 420px;

        min-width: 0;
        min-height: 420px;

        box-sizing: border-box;
    }

    .record-viewer-toolbar {
        flex: 0 0 30px;

        width: 100%;

        height: 30px;
        min-height: 30px;

        box-sizing: border-box;
    }

    .record-viewer-document-container {
        flex: 1;

        width: 100%;

        min-width: 0;
        min-height: 0;

        box-sizing: border-box;
    }


    /* =========================================
       ENTIRE INFORMATION PANEL
    ========================================= */

    .record-viewer-information {
        flex: 0 0 auto;

        width: 100%;

        min-width: 0;
        min-height: 0;

        height: auto;
        max-height: none;

        display: flex;
        flex-direction: column;

        overflow: visible;

        box-sizing: border-box;
    }


    /* =========================================
       METADATA
    ========================================= */

    .record-viewer-metadata {
        flex: 0 0 auto;

        width: 100%;
        height: auto;

        display: grid;
        grid-template-columns:
            repeat(2, minmax(0, 1fr));

        overflow: visible;

        box-sizing: border-box;
    }

    .record-viewer-meta-item {
        min-width: 0;
        min-height: 58px;

        padding: 9px 13px;
    }

    .record-viewer-meta-label {
        font-size: 12px;
    }

    .record-viewer-meta-value {
        font-size: 13px;
    }


    /* =========================================
       DESCRIPTION
    ========================================= */

    .record-viewer-description-section {
        flex: 0 0 auto;

        width: 100%;

        padding: 10px 12px 0;

        box-sizing: border-box;
    }

    .record-viewer-section-title {
        margin-bottom: 6px;

        font-size: 13px;
    }

    .record-viewer-description {
        height: 115px;
        min-height: 115px;

        padding: 9px 11px;

        font-size: 12px;
        line-height: 1.5;
    }


    /* =========================================
       FILE TEXT
    ========================================= */

    .record-viewer-file-text-section {
        flex: 0 0 auto;

        width: 100%;
        min-height: 0;

        padding: 10px 12px;

        box-sizing: border-box;
    }

    .record-viewer-file-text {
        flex: none;

        height: 135px;
        min-height: 135px;

        padding: 9px 11px;

        font-size: 12px;
        line-height: 1.5;
    }

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

    .profile-office {
        display: grid;

        grid-template-columns:
            145px
            minmax(0, 1fr);

        column-gap: 18px;
        row-gap: 14px;

        align-items: start;

        padding: 16px;
    }


    /* =====================================================
       FOLDER ICON — TOP LEFT
    ===================================================== */

    .profile-office-photo {
        grid-column: 1;
        grid-row: 1;

        width: 145px;
        height: 145px;
        flex: none;

        align-self: start;
    }


    /* =====================================================
       TITLE + CASEFILE DETAILS — TOP RIGHT
    ===================================================== */

    .profile-office-info {
        grid-column: 2;
        grid-row: 1;

        width: 100%;
        min-width: 0;
    }

    .profile-casefile-name {
        margin: 0 0 12px;

        font-size: 17px;
        line-height: 1.15;
    }


    /* =====================================================
       UPLOADED BY / DATE / RECORDS / UNIVERSITY / STATUS
    ===================================================== */

    .casefile-header-details {
        width: 100%;

        margin-top: 12px;

        gap: 10px;
    }

    .casefile-header-details-row {
        width: 100%;

        grid-template-columns:
            repeat(3, minmax(0, 1fr));
    }

    .casefile-header-detail {
        min-width: 0;

        gap: 7px;

        padding: 3px 10px;
    }

    .casefile-header-detail:first-child {
        padding-left: 0;
    }

    .casefile-header-detail-icon {
        width: 18px;
        height: 18px;

        flex: 0 0 18px;
    }

    .casefile-header-detail-text {
        min-width: 0;

        gap: 3px;
    }

    .casefile-header-detail-label {
        font-size: 10px;
    }

    .casefile-header-detail-value {
        font-size: 10px;
    }

    .casefile-header-status {
        padding: 2px 5px;

        font-size: 8px;
    }


    /* =====================================================
       FOUR COUNT CARDS — NEW SECOND ROW
    ===================================================== */

    .profile-record-meta {
        grid-column: 1 / -1;
        grid-row: 2;

        width: 100%;
        min-width: 0;

        margin: 0;
    }

    .profile-meta-cards {
        display: grid;

        grid-template-columns:
            repeat(4, minmax(0, 1fr));

        gap: 10px;

        width: 100%;
    }

    .profile-meta-card {
        width: 100%;
        min-width: 0;
        min-height: 82px;

        box-sizing: border-box;

        padding: 9px 5px;
    }


    /* =====================================================
       COUNT CARD CONTENT
    ===================================================== */

    .profile-meta-icon {
        width: 15px;
        height: 15px;

        margin-bottom: 6px;
    }

    .profile-meta-icon-money {
        width: 9px;
        height: 15px;

        margin-bottom: 6px;
    }

    .profile-record-meta-icon {
        width: 14px;
        height: 14px;

        margin-bottom: 6px;
    }

    .profile-record-meta-icon.column-white {
        width: 15px;
        height: 15px;
    }

    .profile-meta-number {
        margin-bottom: 4px;

        font-size: 17px;
        line-height: 1;
    }

    .profile-meta-label {
        font-size: 9px;
        line-height: 1.05;

        text-align: center;
    }

    /* =====================================================
   DESCRIPTION + INVOLVED EMPLOYEES
   STACK VERTICALLY
===================================================== */

.casefile-information {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;

    width: 100%;
    margin-bottom: 16px;
}


/* =====================================================
   BOTH SECTIONS — FULL WIDTH
===================================================== */

.casefile-description-section,
.casefile-employees-section {
    width: 100%;
    min-width: 0;
    box-sizing: border-box;

    padding: 14px;
}


/* =====================================================
   DESCRIPTION — TOP
===================================================== */

.casefile-description-section {
    grid-column: 1;
    grid-row: 1;
}

.casefile-description-container {
    width: 100%;
    height: 220px;
}


/* =====================================================
   INVOLVED EMPLOYEES — UNDER DESCRIPTION
===================================================== */

.casefile-employees-section {
    grid-column: 1;
    grid-row: 2;
}

.casefile-employees-container {
    width: 100%;
    height: 260px;
}


/* =====================================================
   EMPLOYEES — MORE COLUMNS NOW THAT WE HAVE FULL WIDTH
===================================================== */

.casefile-employees-body {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 8px;
}



/* =====================================================
   CASE FILE VIEW — NARROW TABLE
   KEEP: NAME | ORIGINAL DATE | ACTIONS
===================================================== */

/* Remove Type */
.casefile-tree-header .tree-type-column,
.tree-row .tree-type-column {
    display: none;
}

/* Remove Upload Date */
.casefile-tree-header .tree-upload-date-column,
.tree-row .tree-upload-date-column {
    display: none;
}

/* Remove Items */
.casefile-tree-header .tree-items-column,
.tree-row .tree-items-column {
    display: none;
}


/* =====================================================
   REFILL TABLE WITH REMAINING 3 COLUMNS
===================================================== */

.casefile-tree-table {
    width: 100%;
    min-width: 0;
}

.casefile-tree-header,
.tree-row {
    grid-template-columns:
        minmax(0, 1fr)
        90px
        100px;
}


/* Give the name column the remaining space */
.tree-name-column {
    min-width: 0;
}


/* Keep actions together */
.tree-actions-column {
    min-width: 100px;
    justify-content: flex-start;
}


/* =====================================================
   CASE FILE VIEW — RECORD ROWS ONLY
   REDUCE LEFT-SIDE INDENTATION
===================================================== */

.record-tree-item > .tree-row {
    padding-left: 4px;
}


/* Pull record content farther left */

.record-tree-item > .tree-row .tree-name-column {
    padding-left: 0;
    margin-left: 0;
}


/* =====================================================
   CASE FILE VIEW — NARROW RECORD ROWS
===================================================== */

/* Hide Original Date too */
.casefile-tree-header .tree-original-date-column,
.record-row .tree-original-date-column,
.folder-row .tree-original-date-column {
    display: none;
}


/* Rebuild remaining columns:
   Title | Actions
   (Type, Original Date, Upload Date, Items already removed)
*/
.casefile-tree-header,
.tree-row {
    grid-template-columns:
        minmax(0, 1fr)
        108px;
}


/* Make actual record title give up space MUCH sooner */
.record-row .tree-name-column {
    min-width: 0;
}

.record-row .record-link {
    flex: 0 1 330px;
    max-width: 330px;

    min-width: 0;

    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}


/* Keep actions firmly on the right */
.record-row .tree-actions-column {
    width: 108px;
    justify-content: flex-end;
}


/* =====================================================
   READABLE VIEW — 769px–1366px
   KEEP:
   TITLE | PRESENTATION | ASSESSMENT | ACTIONS
===================================================== */

#casefileReadableTable {
    width: 100%;
    overflow-x: hidden;
}


/* =====================================================
   HIDE RECORD TYPE
===================================================== */

.readable-casefile-header > .readable-record-type-column,
.readable-tree-row > .readable-record-type-column {
    display: none;
}


/* =====================================================
   HIDE DOCUMENT DATE
===================================================== */

.readable-casefile-header > .readable-document-date-column,
.readable-tree-row > .readable-document-date-column {
    display: none;
}


/* =====================================================
   HIDE UPLOAD DATE
===================================================== */

.readable-casefile-header > .readable-upload-date-column,
.readable-tree-row > .readable-upload-date-column {
    display: none;
}


/* =====================================================
   HIDE OFFICE
===================================================== */

.readable-casefile-header > .readable-office-column,
.readable-tree-row > .readable-office-column {
    display: none;
}


/* =====================================================
   HIDE VIEW COUNT
===================================================== */

.readable-casefile-header > .readable-view-count-column,
.readable-tree-row > .readable-view-count-column {
    display: none;
}


/* =====================================================
   REBUILD GRID

   1  Title
   2  Presentation
   3  Assessment
   4  Actions
===================================================== */

.readable-casefile-header,
.readable-tree-row {
    grid-template-columns:
        minmax(0, 1fr)
        90px
        90px
        100px;

    column-gap: 8px;

    width: 100%;
    min-width: 0;
}


/* =====================================================
   TITLE
===================================================== */

.readable-name-column {
    min-width: 0;
}

.readable-record-link,
.readable-tree-name {
    min-width: 0;

    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}


/* =====================================================
   PRESENTATION + ASSESSMENT
===================================================== */

.readable-presentation-column,
.readable-assessment-column {
    min-width: 0;

    text-align: center;
    justify-self: center;
}


/* =====================================================
   ACTIONS
===================================================== */

.readable-actions-column {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    justify-self: stretch;

    gap: 5px;

    width: 100%;
    min-width: 0;
}





}

/* =========================================================
   768px — CASE FILE PROFILE
   UPPER METADATA
========================================================= */

@media (max-width: 768px) and (min-width: 481px) {


      /* =========================================
       RECORD VIEWER
       ONLY NARROW THE BOX
    ========================================= */

    .record-viewer-modal {
        width: 82vw;
        max-width: 630px;
    }
    /* =====================================================
       OUTER HEADER
    ===================================================== */

    .profile-office {
        display: grid;

        grid-template-columns:
            125px
            minmax(0, 1fr);

        column-gap: 14px;
        row-gap: 12px;

        align-items: start;

        padding: 13px;
        margin-bottom: 12px;
    }


    /* =====================================================
       FOLDER ICON
    ===================================================== */

    .profile-office-photo {
        grid-column: 1;
        grid-row: 1;

        width: 125px;
        height: 125px;
        flex: none;

        align-self: start;
    }

    .profile-office-photo img {
        width: 100%;
        height: 100%;
        object-fit: contain;
    }


    /* =====================================================
       TITLE + CASE FILE DETAILS
    ===================================================== */

    .profile-office-info {
        grid-column: 2;
        grid-row: 1;

        width: 100%;
        min-width: 0;
    }

    .profile-casefile-name {
        margin: 0 0 9px;

        font-size: 15px;
        line-height: 1.1;
    }


    /* =====================================================
       UPLOADED BY / UPLOAD DATE / TOTAL RECORDS
       UNIVERSITY / STATUS
    ===================================================== */

    .casefile-header-details {
        width: 100%;

        margin-top: 9px;

        gap: 8px;
    }

    .casefile-header-details-row {
        width: 100%;

        grid-template-columns:
            repeat(3, minmax(0, 1fr));
    }

    .casefile-header-detail {
        min-width: 0;

        gap: 7px;

        padding: 3px 7px;
    }

    .casefile-header-detail:first-child {
        padding-left: 0;
    }


    /* =====================================================
       HEADER DETAIL ICONS
    ===================================================== */

    .casefile-header-detail-icon {
        width: 18px;
        height: 18px;

        flex: 0 0 18px;
    }

    .casefile-header-detail-icon img {
        width: 100%;
        height: 100%;

        display: block;

        object-fit: contain;
    }


    /* =====================================================
       HEADER DETAIL TEXT
    ===================================================== */

    .casefile-header-detail-text {
        min-width: 0;

        gap: 3px;
    }

    .casefile-header-detail-label {
        font-size: 10px;
        line-height: 1.1;
    }

    .casefile-header-detail-value {
        font-size: 10px;
        line-height: 1.15;
    }

    .casefile-header-status {
        padding: 2px 5px;

        font-size: 8px;
        line-height: 1;
    }


    /* =====================================================
       FOUR STAT CARDS — SECOND ROW
    ===================================================== */

    .profile-record-meta {
        grid-column: 1 / -1;
        grid-row: 2;

        width: 100%;
        min-width: 0;

        margin: 0;
        gap: 0;
    }

    .profile-meta-cards {
        display: grid;

        grid-template-columns:
            repeat(4, minmax(0, 1fr));

        gap: 7px;

        width: 100%;
    }

    .profile-meta-card {
        width: 100%;
        min-width: 0;
        min-height: 70px;

        box-sizing: border-box;

        padding: 7px 3px;
    }


    /* =====================================================
       STAT CARD ICONS
    ===================================================== */

    .profile-meta-icon {
        width: 13px;
        height: 13px;

        margin-bottom: 5px;
    }

    .profile-meta-icon-money {
        width: 8px;
        height: 13px;

        margin-bottom: 5px;
    }

    .profile-record-meta-icon {
        width: 12px;
        height: 12px;

        margin-bottom: 5px;
    }

    .profile-record-meta-icon.column-white {
        width: 13px;
        height: 13px;
    }


    /* =====================================================
       STAT CARD NUMBERS + LABELS
    ===================================================== */

    .profile-meta-number {
        margin: 0 0 3px;

        font-size: 15px;
        line-height: 1;
    }

    .profile-meta-label {
        margin: 0;

        font-size: 10px;
        line-height: 1.05;

        text-align: center;
    }


    /* =========================================================
   768px — DESCRIPTION + INVOLVED EMPLOYEES
========================================================= */

@media (max-width: 768px) and (min-width: 481px) {

    /* =====================================================
       STACK SECTIONS
    ===================================================== */

    .casefile-information {
        display: grid;
        grid-template-columns: 1fr;

        gap: 12px;

        width: 100%;
        margin-bottom: 14px;
    }


    /* =====================================================
       BOTH SECTIONS — FULL WIDTH
    ===================================================== */

    .casefile-description-section,
    .casefile-employees-section {
        width: 100%;
        min-width: 0;

        box-sizing: border-box;

        padding: 12px;
    }


    /* =====================================================
       DESCRIPTION — TOP
    ===================================================== */

    .casefile-description-section {
        grid-column: 1;
        grid-row: 1;
    }

    .casefile-description-container {
        width: 100%;
        height: 190px;
    }

    .casefile-description-scroll {
        padding: 10px 12px;
    }


    /* =====================================================
       ACTUAL DESCRIPTION BODY TEXT
       SHRINK THIS
    ===================================================== */

    .casefile-description-scroll p {
        font-size: 10px;
        line-height: 1.35;

        margin-bottom: 10px;
    }


    /* =====================================================
       DESCRIPTION FOOTER
       DO NOT SHRINK WORD COUNT
    ===================================================== */

    .casefile-description-footer {
        padding-left: 10px;
        padding-right: 10px;
    }


    /* =====================================================
       INVOLVED EMPLOYEES — UNDER DESCRIPTION
    ===================================================== */

    .casefile-employees-section {
        grid-column: 1;
        grid-row: 2;
    }

    .casefile-employees-container {
        width: 100%;
        height: 250px;
    }


    /* =====================================================
       EMPLOYEE GRID
    ===================================================== */

    .casefile-employees-body {
        grid-template-columns:
            repeat(6, minmax(0, 1fr));

        gap: 7px;
    }


    /* =====================================================
       EMPLOYEE CARDS
    ===================================================== */

    .casefile-employee-card {
        min-width: 0;
    }


    /* =====================================================
       EMPLOYEE NAME — SLIGHTLY SMALLER
    ===================================================== */

    .casefile-employee-name {
        font-size: 9px;
        line-height: 1.05;
    }


   

}



 /* =====================================================
       STACK SECTIONS
    ===================================================== */

    .casefile-information {
        display: grid;
        grid-template-columns: 1fr;

        gap: 12px;

        width: 100%;
        margin-bottom: 14px;
    }


    /* =====================================================
       BOTH SECTIONS — FULL WIDTH
    ===================================================== */

    .casefile-description-section,
    .casefile-employees-section {
        width: 100%;
        min-width: 0;

        box-sizing: border-box;

        padding: 12px;
    }


    /* =====================================================
       DESCRIPTION — TOP
    ===================================================== */

    .casefile-description-section {
        grid-column: 1;
        grid-row: 1;
    }

    .casefile-description-container {
        width: 100%;
        height: 190px;
    }

    .casefile-description-scroll {
        padding: 10px 12px;
    }


    /* =====================================================
       ACTUAL DESCRIPTION BODY TEXT
       SHRINK THIS
    ===================================================== */

    .casefile-description-scroll p {
        font-size: 10px;
        line-height: 1.35;

        margin-bottom: 10px;
    }


    /* =====================================================
       DESCRIPTION FOOTER
       DO NOT SHRINK WORD COUNT
    ===================================================== */

    .casefile-description-footer {
        padding-left: 10px;
        padding-right: 10px;
    }


    /* =====================================================
       INVOLVED EMPLOYEES — UNDER DESCRIPTION
    ===================================================== */

    .casefile-employees-section {
        grid-column: 1;
        grid-row: 2;
    }

    .casefile-employees-container {
        width: 100%;
        height: 250px;
    }


    /* =====================================================
       EMPLOYEE GRID
    ===================================================== */

    .casefile-employees-body {
        grid-template-columns:
            repeat(6, minmax(0, 1fr));

        gap: 7px;
    }


    /* =====================================================
       EMPLOYEE CARDS
    ===================================================== */

    .casefile-employee-card {
        min-width: 0;
    }


    /* =====================================================
       EMPLOYEE NAME — SLIGHTLY SMALLER
    ===================================================== */

    .casefile-employee-name {
        font-size: 9px;
        line-height: 1.05;
    }


    /* ACTUAL CASEFILE DESCRIPTION TEXT */
.casefile-description-body {
    font-size: 11px !important;
    line-height: 1.4 !important;
}

.casefile-description-body p {
    font-size: 11px !important;
    line-height: 1.4 !important;
}

/* =====================================================
   CASE FILE VIEW — 768px
   TITLE + ACTIONS ONLY
===================================================== */

/* Hide Type, Original Date, Upload Date, Items */
.casefile-tree-header .tree-type-column,
.tree-row .tree-type-column,

.casefile-tree-header .tree-original-date-column,
.tree-row .tree-original-date-column,

.casefile-tree-header .tree-upload-date-column,
.tree-row .tree-upload-date-column,

.casefile-tree-header .tree-items-column,
.tree-row .tree-items-column {
    display: none;
}


/* Rebuild table as Title + Actions */
.casefile-tree-header,
.tree-row {
    grid-template-columns:
        minmax(0, 1fr)
        90px;
}


/* Let the table actually fit the available width */
.casefile-tree-table {
    width: 100%;
    min-width: 0;
}


/* Give title nearly the whole row */
.tree-name-column {
    min-width: 0;
}


/* Actions stay at the right */
.tree-actions-column {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 5px;
    min-width: 0;
}

  #casefileReadableTable {
        width: 100%;
        min-width: 0;
        overflow-x: hidden;
    }


    /* =====================================================
       HIDE ONLY THE UNWANTED COLUMNS
    ===================================================== */

    .readable-casefile-header > .readable-record-type-column,
    .readable-tree-row > .readable-record-type-column,

    .readable-casefile-header > .readable-document-date-column,
    .readable-tree-row > .readable-document-date-column,

    .readable-casefile-header > .readable-upload-date-column,
    .readable-tree-row > .readable-upload-date-column,

    .readable-casefile-header > .readable-office-column,
    .readable-tree-row > .readable-office-column,

    .readable-casefile-header > .readable-view-count-column,
    .readable-tree-row > .readable-view-count-column {
        display: none;
    }


    /* =====================================================
       REBUILD GRID

       TITLE
       PRESENTATION
       ASSESSMENT
       ACTIONS
    ===================================================== */

    .readable-casefile-header,
    .readable-tree-row {
        grid-template-columns:
            minmax(0, 1fr)
            72px
            72px
            92px;

        column-gap: 6px;

        width: 100%;
        min-width: 0;
    }


    /* =====================================================
       TITLE
    ===================================================== */

    .readable-name-column {
        min-width: 0;
    }

    .readable-record-link,
    .readable-tree-name {
        min-width: 0;

        overflow: hidden;
        white-space: nowrap;
        text-overflow: ellipsis;
    }


    /* =====================================================
       PRESENTATION + ASSESSMENT
    ===================================================== */

    .readable-presentation-column,
    .readable-assessment-column {
        min-width: 0;

        text-align: center;
        justify-self: center;
    }


    /* =====================================================
       ACTIONS
    ===================================================== */

    .readable-actions-column {
        display: flex;
        align-items: center;
        justify-content: flex-end;
        justify-self: stretch;

        width: 100%;
        min-width: 0;

        gap: 4px;
    }

       /* Remove Presentation Type */
    .readable-casefile-header > .readable-presentation-column,
    .readable-tree-row > .readable-presentation-column {
        display: none !important;
    }


    /* Refill the freed space */
    .readable-casefile-header,
    .readable-tree-row {
        grid-template-columns:
            minmax(0, 1fr)
            90px
            96px;
        column-gap: 8px;
    }

     /* =====================================================
       LOADING OVERLAY
    ===================================================== */

    .loading-overlay {
        position: fixed;
        inset: 0;

        width: 100vw;
        height: 100vh;

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

        margin: 0;
        padding: 0;

        box-sizing: border-box;

        transform: none;

        background: rgba(0, 0, 0, 0.65);
        backdrop-filter: blur(2px);

        z-index: 999999;
    }


    .loading-overlay.hidden {
        display: none;
    }


    /* =====================================================
       LOADING MODAL
    ===================================================== */

    .loading-modal {
        position: relative;

        width: calc(100% - 80px);
        max-width: 320px;

        margin: 0;
        padding: 22px 20px;

        box-sizing: border-box;

        border-radius: 8px;

        transform: none;
    }


    /* =====================================================
       LOADING CIRCLE
    ===================================================== */

    .loading-circle {
        position: relative;

        width: 76px;
        height: 76px;

        margin: 0 auto 16px;
    }


    /* =====================================================
       LOADING SPINNER
    ===================================================== */

    .loading-spinner {
        position: absolute;
        inset: 0;

        width: auto;
        height: auto;

        box-sizing: border-box;

        border: 5px solid #343434;
        border-top-color: #f15a24;

        border-radius: 50%;
    }


    /* =====================================================
       LOADING PERCENTAGE
    ===================================================== */

    .loading-percentage {
        position: absolute;
        inset: 0;

        width: auto;
        height: auto;

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

        margin: 0;
        padding: 0;

        transform: none;

        font-size: 14px;
        line-height: 1;

        font-weight: bold;
        text-align: center;
    }


    /* =====================================================
       LOADING TITLE
    ===================================================== */

    #loading-title,
    .loading-modal h2 {
        margin: 0 0 7px;

        font-size: 16px;
        line-height: 1.15;
    }


    /* =====================================================
       LOADING MESSAGE
    ===================================================== */

    #loading-message,
    .loading-modal p {
        margin: 0 0 14px;

        font-size: 11px;
        line-height: 1.3;
    }


    /* =====================================================
       LOADING PROGRESS BAR
    ===================================================== */

    .loading-bar {
        width: 100%;
        height: 6px;

        margin: 0;

        border-radius: 999px;
    }


    #loading-progress {
        height: 100%;
    }


    

    

}


@media (max-width: 480px) {

      /* =====================================================
       CASEFILE HEADER METADATA
    ===================================================== */


    /* Hide Total Case File Records */
    .casefile-header-details-row:first-child
    .casefile-header-detail:nth-child(3) {
        display: none;
    }


    /* =====================================================
       METADATA GRID

       ROW 1:
       Uploaded By       Upload Date

       ROW 2:
       University        Status
    ===================================================== */

    .casefile-header-details {
        display: grid;

        grid-template-columns:
            repeat(2, minmax(0, 1fr));

        width: 100%;
        min-width: 0;

        column-gap: 28px;
        row-gap: 16px;

        margin-top: 14px;
    }


    /* Flatten the two original HTML row wrappers so
       all four remaining items use the grid above */

    .casefile-header-details-row,
    .casefile-header-details-row:first-child,
    .casefile-header-details-row:nth-child(2) {
        display: contents;
    }


    /* =====================================================
       EACH INDIVIDUAL METADATA ITEM
    ===================================================== */

    .casefile-header-detail {
        display: flex;
        align-items: flex-start;

        width: 100%;
        min-width: 0;

        gap: 8px;

        margin: 0;
        padding: 0;

        border: 0;
        box-sizing: border-box;
    }


    /* =====================================================
       EXPLICIT POSITIONS
    ===================================================== */


    /* Uploaded By */
    .casefile-header-details-row:first-child
    .casefile-header-detail:nth-child(1) {
        grid-column: 1;
        grid-row: 1;
    }


    /* Upload Date */
    .casefile-header-details-row:first-child
    .casefile-header-detail:nth-child(2) {
        grid-column: 2;
        grid-row: 1;
    }


    /* University */
    .casefile-header-details-row:nth-child(2)
    .casefile-header-detail:nth-child(1) {
        grid-column: 1;
        grid-row: 2;
    }


    /* Status */
    .casefile-header-details-row:nth-child(2)
    .casefile-header-detail:nth-child(2) {
        grid-column: 2;
        grid-row: 2;
    }



    /* =========================================
       RECORD VIEWER
       ONLY NARROW THE BOX
    ========================================= */

    .record-viewer-modal {
        width: 88vw;
        max-width: 422px;
    }


      .profile-main {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        box-sizing: border-box;
        overflow-x: hidden;
    }

    .office-search-box {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        box-sizing: border-box;
        overflow-x: hidden;
    }

    .casefile-tree-table {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        box-sizing: border-box;
    }

    /* =====================================================
       PAGE
    ===================================================== */

    .profile-main {
        padding: 14px 12px;
    }


    /* =====================================================
       CASE FILE PROFILE HEADER
    ===================================================== */

    .profile-office {
        display: grid;

        grid-template-columns:
            105px
            minmax(0, 1fr);

        grid-template-rows:
            auto
            auto;

        width: 100%;
        box-sizing: border-box;

        column-gap: 12px;
        row-gap: 14px;

        padding: 14px;
        margin-bottom: 14px;

        align-items: start;
    }


    /* =====================================================
       FOLDER IMAGE
    ===================================================== */

    .profile-office-photo {
        grid-column: 1;
        grid-row: 1;

        width: 105px;
        height: 105px;

        min-width: 0;

        flex: none;
        align-self: start;
    }

    .profile-office-photo img {
        display: block;

        width: 100%;
        height: 100%;

        object-fit: contain;
    }


    /* =====================================================
       TITLE + ALL FIVE METADATA ITEMS
    ===================================================== */

    .profile-office-info {
        grid-column: 2;
        grid-row: 1;

        display: flex;
        flex-direction: column;

        width: 100%;
        min-width: 0;
    }


    /* =====================================================
       CASE FILE TITLE
    ===================================================== */

    .profile-casefile-name {
        width: 100%;
        min-width: 0;

        margin: 0 0 10px;

        font-size: 14px;
        line-height: 1.05;

        overflow-wrap: break-word;
    }




    /* =====================================================
       METADATA ICON
    ===================================================== */

    .casefile-header-detail-icon {
        display: block;

        width: 12px;
        height: 12px;

        flex: 0 0 12px;

        margin-top: 1px;

        object-fit: contain;
    }


    /* =====================================================
       METADATA TEXT WRAPPER
    ===================================================== */

    .casefile-header-detail-text {
        display: flex;
        flex-direction: column;

        flex: 1 1 auto;

        width: 0;
        min-width: 0;

        gap: 2px;
    }


    /* =====================================================
       METADATA LABELS
    ===================================================== */

    .casefile-header-detail-label {
        display: block;

        width: 100%;
        min-width: 0;

        margin: 0;

        font-size: 9px;
        line-height: 1.05;

        white-space: nowrap;

        overflow: hidden;
        text-overflow: ellipsis;
    }




    /* =====================================================
       METADATA VALUES
    ===================================================== */

    .casefile-header-detail-value {
        display: block;

        width: 100%;
        min-width: 0;

        margin: 0;

        font-size: 9px;
        line-height: 1.1;

        white-space: nowrap;

        overflow: hidden;
        text-overflow: ellipsis;
    }


    /* =====================================================
       RECORD STATISTICS
       FULL WIDTH BELOW FOLDER + HEADER
    ===================================================== */

    .profile-record-meta {
        grid-column: 1 / -1;
        grid-row: 2;

        display: flex;
        flex-direction: column;

        width: 100%;
        min-width: 0;

        gap: 8px;

        margin: 0;
    }


    /* =====================================================
       FOUR STAT CARDS — 2 × 2
    ===================================================== */

    .profile-meta-cards {
        display: grid;

        grid-template-columns:
            repeat(2, minmax(0, 1fr));

        width: 100%;
        min-width: 0;

        gap: 8px;
    }


    /* =====================================================
       INDIVIDUAL STAT CARD
    ===================================================== */

    .profile-meta-card {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;

        min-width: 0;
        min-height: 64px;

        box-sizing: border-box;

        padding: 7px 5px;
    }


    /* =====================================================
       STAT ICONS
    ===================================================== */

    .profile-meta-icon {
        width: 12px;
        height: 12px;

        margin-bottom: 3px;
    }

    .profile-record-meta-icon {
        width: 10px;
        height: 10px;

        margin-bottom: 3px;
    }

    .profile-record-meta-icon.column-white {
        width: 12px;
        height: 12px;
    }

    .profile-meta-icon-money {
        width: 8px;
        height: 12px;

        margin-bottom: 3px;
    }

    .profile-meta-icon img,
    .profile-record-meta-icon img,
    .profile-meta-icon-money img {
        display: block;

        width: 100%;
        height: 100%;

        object-fit: contain;
    }


    /* =====================================================
       STAT NUMBERS
    ===================================================== */

    .profile-meta-number {
        margin: 0 0 3px;

        font-size: 14px;
        line-height: 1;

        text-align: center;
    }

    #profile-total-salary {
        font-size: 14px;
    }


    /* =====================================================
       STAT LABELS
    ===================================================== */

    .profile-meta-label {
        margin: 0;

        font-size: 9px;
        line-height: 1.1;

        text-align: center;
    }

    /* =====================================================
   LOADING OVERLAY — PHONE
===================================================== */

.loading-overlay {
    position: fixed;
    inset: 0;

    width: 100vw;
    height: 100vh;

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

    margin: 0;
    padding: 0;

    box-sizing: border-box;

    transform: none;

    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(2px);

    z-index: 999999;
}

.loading-overlay.hidden {
    display: none;
}


/* =====================================================
   LOADING MODAL
===================================================== */

.loading-modal {
    position: relative;

    width: calc(100% - 60px);
    max-width: 260px;

    margin: 0;
    padding: 18px 16px;

    box-sizing: border-box;

    border-radius: 8px;

    transform: none;
}


/* =====================================================
   LOADING CIRCLE
===================================================== */

.loading-circle {
    position: relative;

    width: 64px;
    height: 64px;

    margin: 0 auto 14px;
}


/* =====================================================
   LOADING SPINNER
===================================================== */

.loading-spinner {
    position: absolute;

    inset: 0;

    width: auto;
    height: auto;

    box-sizing: border-box;

    border: 4px solid #343434;
    border-top-color: #f15a24;

    border-radius: 50%;
}


/* =====================================================
   LOADING PERCENTAGE
===================================================== */

.loading-percentage {
    position: absolute;

    inset: 0;

    width: auto;
    height: auto;

    display: flex;

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

    margin: 0;
    padding: 0;

    transform: none;

    font-size: 12px;
    line-height: 1;

    font-weight: bold;
    text-align: center;
}


/* =====================================================
   LOADING TITLE
===================================================== */

#loading-title,
.loading-modal h2 {
    margin: 0 0 6px;

    font-size: 14px;
    line-height: 1.1;
}


/* =====================================================
   LOADING MESSAGE
===================================================== */

#loading-message,
.loading-modal p {
    margin: 0 0 12px;

    font-size: 9px;
    line-height: 1.25;
}


/* =====================================================
   LOADING PROGRESS BAR
===================================================== */

.loading-bar {
    width: 100%;
    height: 5px;

    margin: 0;

    border-radius: 999px;
}

#loading-progress {
    height: 100%;
}

/* =====================================================
   DESCRIPTION + INVOLVED EMPLOYEES — 480px
===================================================== */

.casefile-information {
    display: grid;
    grid-template-columns: minmax(0, 1fr);

    gap: 10px;

    width: 100%;
    margin-bottom: 12px;

    box-sizing: border-box;
}


/* =====================================================
   OUTER SECTION CARDS
===================================================== */

.casefile-description-section,
.casefile-employees-section {
    width: 100%;
    min-width: 0;

    padding: 10px;

    box-sizing: border-box;
}


/* =====================================================
   SECTION TITLES
===================================================== */

.casefile-description-header,
.casefile-employees-header {
    margin-bottom: 8px;

    font-size: 11px;
    line-height: 1.2;
}


/* =====================================================
   INNER CONTAINERS
===================================================== */

.casefile-description-container,
.casefile-employees-container {
    width: 100%;
    height: 190px;

    box-sizing: border-box;
}


/* =====================================================
   DESCRIPTION
===================================================== */

.casefile-description-body {
    padding: 2px 10px 8px;

    font-size: 10px;
    line-height: 1.45;
}


.casefile-description-body p {
    margin: 9px 0;
}


.casefile-description-body p:first-child {
    margin-top: 8px;
}


.casefile-description-body p:last-child {
    margin-bottom: 8px;
}


.casefile-description-footer {
    flex: 0 0 25px;

    padding: 0 8px;
}


.casefile-description-word-count {
    font-size: 8px;
}


/* =====================================================
   INVOLVED EMPLOYEES
===================================================== */

.casefile-employees-container {
    padding: 7px;
}


.casefile-employees-body {
    grid-template-columns: repeat(4, minmax(0, 1fr));

    gap: 6px;

    padding-right: 3px;
}


/* =====================================================
   EMPLOYEE CARDS
===================================================== */

.casefile-employee-card {
    padding: 3px;
}


.casefile-employee-info {
    height: 62px;

    padding: 5px 2px 3px;
}


.casefile-employee-name {
    margin-bottom: 5px;

    font-size: 8px;
    line-height: 1.15;
}


.casefile-employee-title {
    font-size: 6px;
    line-height: 1.2;
}

/* =====================================================
   CASE FILE CONTENTS + CASE FILE VIEW TREE — 480px
===================================================== */


/* =====================================================
   CASE FILE CONTENTS HEADER
===================================================== */

.casefile-contents-header {
    width: 100%;

    display: flex;
    align-items: center;

    gap: 6px;

    padding: 9px 10px;
    margin-bottom: 8px;

    box-sizing: border-box;

    font-size: 11px;
    line-height: 1.05;
}


/* =====================================================
   CASE FILE CONTENTS FOLDER ICON
===================================================== */

.casefile-contents-icon {
    width: 17px;
    height: 17px;

    flex: 0 0 17px;

    object-fit: contain;
}


/* =====================================================
   CASE FILE CONTENTS TITLE
===================================================== */

.casefile-contents-header > span:not(.casefile-view-help-tooltip) {
    min-width: 0;

    font-size: 11px;
    line-height: 1.05;
    font-weight: 600;
}


/* =====================================================
   VIEW SWITCH
===================================================== */

.casefile-view-switch {
    min-width: 0;

    margin-left: auto;

    padding: 2px;

    box-sizing: border-box;
}


/* =====================================================
   VIEW SWITCH BUTTONS
===================================================== */

.casefile-view-switch-button {
    min-width: 0;

    padding: 4px 9px;

    font-size: 8px;
    line-height: 1.05;
}


/* =====================================================
   HELP TOOLTIP
===================================================== */

.casefile-view-help-tooltip {
    flex: 0 0 auto;
}


/* =====================================================
   HELP BUTTON
===================================================== */

.casefile-view-help-icon {
    width: 15px;
    height: 15px;

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

    box-sizing: border-box;

    font-size: 8px;
    line-height: 1;
}


/* =====================================================
   TREE OUTER CONTAINER
===================================================== */

.office-search-box {
    width: 100%;

    box-sizing: border-box;

    overflow-x: hidden;
    overflow-y: hidden;
}


/* =====================================================
   TREE TABLE
===================================================== */

.casefile-tree-table {
    width: 100%;
    min-width: 0;

    box-sizing: border-box;

    font-size: 10px;
}


/* =====================================================
   REMOVE UNUSED COLUMNS
===================================================== */

.casefile-tree-header > .tree-type-column,
.tree-row > .tree-type-column,

.casefile-tree-header > .tree-original-date-column,
.tree-row > .tree-original-date-column,

.casefile-tree-header > .tree-upload-date-column,
.tree-row > .tree-upload-date-column,

.casefile-tree-header > .tree-items-column,
.tree-row > .tree-items-column {
    display: none;
}


/* =====================================================
   TREE GRID
   NAME | ACTIONS

   Wider actions area so buttons are not jammed
   against the right edge.
===================================================== */

.casefile-tree-header,
.tree-row {
    display: grid;

    grid-template-columns:
        minmax(0, 1fr)
        100px;

    align-items: center;

    width: 100%;
    min-width: 0;

    box-sizing: border-box;
}


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

.casefile-tree-header {
    height: 34px;

    padding: 0 8px;

    font-size: 9px;
}


/* =====================================================
   TREE ROWS
===================================================== */

.tree-row {
    height: 38px;

    padding: 0 8px;

    font-size: 10px;
}


/* =====================================================
   NAME COLUMN
===================================================== */

.tree-name-column {
    display: flex;
    align-items: center;

    gap: 5px;

    width: 100%;
    min-width: 0;
    max-width: 100%;

    overflow: hidden;

    font-size: 10px;

    box-sizing: border-box;
}


/* =====================================================
   TREE INDENTATION — PHONE
===================================================== */


/* LEVEL 0 */

.casefile-tree-root
> li
> .tree-row
.tree-name-column {
    padding-left: 0;
}


/* LEVEL 1 */

.casefile-tree-root
> li
> .casefile-child-list
> li
> .tree-row
.tree-name-column {
    padding-left: 8px;
}


/* LEVEL 2 */

.casefile-tree-root
> li
> .casefile-child-list
> li
> .casefile-child-list
> li
> .tree-row
.tree-name-column {
    padding-left: 16px;
}


/* LEVEL 3 */

.casefile-tree-root
> li
> .casefile-child-list
> li
> .casefile-child-list
> li
> .casefile-child-list
> li
> .tree-row
.tree-name-column {
    padding-left: 24px;
}


/* LEVEL 4 */

.casefile-tree-root
> li
> .casefile-child-list
> li
> .casefile-child-list
> li
> .casefile-child-list
> li
> .casefile-child-list
> li
> .tree-row
.tree-name-column {
    padding-left: 32px;
}


/* =====================================================
   RECORD INDENTATION
===================================================== */


/* RECORDS AT LEVEL 2 */

.casefile-tree-root
> li
> .casefile-child-list
> li
> .casefile-child-list
> .record-tree-item
> .record-row
> .tree-name-column {
    padding-left: 16px;
}


/* RECORDS AT LEVEL 3 */

.casefile-tree-root
> li
> .casefile-child-list
> li
> .casefile-child-list
> li
> .casefile-child-list
> .record-tree-item
> .record-row
> .tree-name-column {
    padding-left: 24px;
}


/* =====================================================
   FOLDER NAME
===================================================== */

.folder-row .tree-name {
    display: block;

    min-width: 0;
    max-width: 100%;

    font-size: 10px;
    line-height: 1.1;

    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}


/* =====================================================
   FOLDER ICON
===================================================== */

.folder-icon {
    width: 18px;
    height: 18px;

    flex: 0 0 18px;
}


/* =====================================================
   FOLDER EXPAND / COLLAPSE BUTTON
===================================================== */

.tree-arrow-button {
    width: 18px;
    height: 18px;

    flex: 0 0 18px;

    padding: 0;
}


.tree-arrow {
    font-size: 8px;
    line-height: 1;
}


/* =====================================================
   RECORD NAME COLUMN
===================================================== */

.record-tree-item > .tree-row > .tree-name-column,
.record-row > .tree-name-column {
    width: 100%;
    min-width: 0;

    padding-right: 4px;

    box-sizing: border-box;

    overflow: hidden;
}


/* =====================================================
   RECORD FILE ICON
===================================================== */

.record-file-icon {
    width: 24px;
    height: 17px;

    flex: 0 0 24px;
}


/* =====================================================
   RECORD TITLE

   NO HARD 150px CAP.
   TITLE NOW USES THE AVAILABLE NAME SPACE.
===================================================== */

.record-link {
    display: block;

    flex: 1 1 auto;

    width: auto;
    max-width: 100%;
    min-width: 0;

    font-size: 10px;
    line-height: 1.1;

    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}


/* =====================================================
   ACTIONS COLUMN

   BUTTONS START AT LEFT SIDE OF RESERVED COLUMN,
   RATHER THAN BEING PUSHED AGAINST RIGHT BORDER.
===================================================== */

.tree-actions-column {
    display: flex;
    align-items: center;
    justify-content: flex-start;

    gap: 4px;

    width: 100px;
    min-width: 100px;
    max-width: 100px;
    height: 100%;

    padding-left: 6px;

    overflow: visible;

    box-sizing: border-box;
}


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

.casefile-tree-header > .tree-actions-column {
    justify-content: flex-start;

    padding-left: 6px;
}


/* =====================================================
   ACTION BUTTONS
===================================================== */

.record-action-button {
    width: 22px;
    height: 22px;

    min-width: 22px;

    flex: 0 0 22px;

    padding: 0;

    box-sizing: border-box;
}


/* =====================================================
   ACTION ICONS
===================================================== */

.record-action-icon {
    width: 11px;
    height: 11px;

    display: block;
}


/* =====================================================
   READABLE VIEW OUTER WRAPPER
===================================================== */

#casefileReadableView {
    width: 100%;
    min-width: 0;

    box-sizing: border-box;

    overflow: hidden;
}


/* =====================================================
   READABLE TABLE

   REMOVE DESKTOP HORIZONTAL SCROLL
===================================================== */

#casefileReadableTable {
    width: 100%;
    min-width: 0;

    box-sizing: border-box;

    overflow-x: hidden;
    overflow-y: hidden;
}


/* =====================================================
   REMOVE EVERY COLUMN EXCEPT TITLE + ACTIONS
===================================================== */

.readable-casefile-header > .readable-record-type-column,
.readable-tree-row > .readable-record-type-column,

.readable-casefile-header > .readable-presentation-column,
.readable-tree-row > .readable-presentation-column,

.readable-casefile-header > .readable-assessment-column,
.readable-tree-row > .readable-assessment-column,

.readable-casefile-header > .readable-document-date-column,
.readable-tree-row > .readable-document-date-column,

.readable-casefile-header > .readable-upload-date-column,
.readable-tree-row > .readable-upload-date-column,

.readable-casefile-header > .readable-office-column,
.readable-tree-row > .readable-office-column,

.readable-casefile-header > .readable-view-count-column,
.readable-tree-row > .readable-view-count-column {
    display: none !important;
}


/* =====================================================
   READABLE GRID

   TITLE | ACTIONS
===================================================== */

.readable-casefile-header,
.readable-tree-row {
    display: grid;

    grid-template-columns:
        minmax(0, 1fr)
        100px;

    column-gap: 0;

    align-items: center;

    width: 100%;
    min-width: 0;

    box-sizing: border-box;
}


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

.readable-casefile-header {
    min-height: 34px;

    padding: 0 8px;

    font-size: 9px;
    line-height: 1.1;
}


/* =====================================================
   READABLE TREE LISTS
===================================================== */

.readable-casefile-tree-root,
.readable-child-list,
.readable-tree-item {
    width: 100%;
    min-width: 0;

    box-sizing: border-box;
}


/* =====================================================
   READABLE ROWS

   SHRINK THE ENTIRE TREE
===================================================== */

.readable-tree-row,
.readable-folder-row,
.readable-record-row {
    min-height: 38px;

    padding: 4px 8px;

    box-sizing: border-box;

    font-size: 10px;
    line-height: 1.1;
}


/* =====================================================
   TITLE / NAME COLUMN
===================================================== */

.readable-name-column {
    display: flex;
    align-items: center;

    width: 100%;
    min-width: 0;
    max-width: 100%;

    gap: 5px;

    box-sizing: border-box;

    overflow: hidden;
}


/* =====================================================
   READABLE TREE INDENTATION

   DESKTOP CURRENTLY USES:
   DEPTH × 32px

   PHONE USES:
   DEPTH × 8px
===================================================== */

.readable-child-list {
    --readable-tree-depth: 1;
}

.readable-child-list
.readable-child-list {
    --readable-tree-depth: 2;
}

.readable-child-list
.readable-child-list
.readable-child-list {
    --readable-tree-depth: 3;
}

.readable-child-list
.readable-child-list
.readable-child-list
.readable-child-list {
    --readable-tree-depth: 4;
}

.readable-child-list
.readable-name-column {
    padding-left:
        calc(
            var(--readable-tree-depth, 0) * 8px
        );
}


/* =====================================================
   ROOT LEVEL

   NO LEFT INDENT
===================================================== */

.readable-casefile-tree-root
> .readable-tree-item
> .readable-tree-row
> .readable-name-column {
    padding-left: 0;
}


/* =====================================================
   FOLDER ARROW BUTTON
===================================================== */

.readable-tree-arrow-button {
    width: 18px;
    height: 18px;

    min-width: 18px;
    flex: 0 0 18px;

    padding: 0;

    box-sizing: border-box;
}


/* =====================================================
   FOLDER ARROW
===================================================== */

.readable-tree-arrow {
    font-size: 8px;
    line-height: 1;
}


/* =====================================================
   FOLDER ICON
===================================================== */

.readable-folder-icon {
    width: 18px;
    height: 18px;

    min-width: 18px;
    flex: 0 0 18px;

    object-fit: contain;
}


/* =====================================================
   FOLDER TITLE
===================================================== */

.readable-tree-name {
    display: block;

    flex: 1 1 auto;

    width: 0;
    min-width: 0;
    max-width: 100%;

    overflow: hidden;

    white-space: nowrap;
    text-overflow: ellipsis;

    font-size: 10px;
    line-height: 1.1;
    font-weight: 500;
}


/* =====================================================
   RECORD FILE ICON
===================================================== */

.readable-record-file-icon {
    width: 24px;
    height: 17px;

    min-width: 24px;
    flex: 0 0 24px;

    object-fit: contain;
}


/* =====================================================
   RECORD TITLE

   USE ALL AVAILABLE TITLE SPACE.
   ELLIPSIS ONLY WHEN IT REACHES ACTIONS.
===================================================== */

.readable-record-link {
    display: block;

    flex: 1 1 auto;

    width: 0;
    min-width: 0;
    max-width: 100%;

    overflow: hidden;

    white-space: nowrap;
    text-overflow: ellipsis;

    font-size: 10px;
    line-height: 1.1;
    font-weight: 400;
}


/* =====================================================
   ACTIONS COLUMN

   GIVE IT A FULL 100px.
   KEEP BUTTONS AWAY FROM RIGHT WALL.
===================================================== */

.readable-actions-column {
    display: flex;
    align-items: center;
    justify-content: flex-start;

    width: 100px;
    min-width: 100px;
    max-width: 100px;
    height: 100%;

    gap: 4px;

    padding-left: 6px;

    box-sizing: border-box;

    justify-self: auto;
    text-align: left;

    overflow: visible;
}


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

.readable-casefile-header
> .readable-actions-column {
    justify-content: flex-start;

    padding-left: 6px;

    font-size: 9px;
}


/* =====================================================
   ACTION BUTTONS
===================================================== */

.readable-view-record-button,
.readable-download-record-button,
.readable-share-record-button {
    width: 22px;
    height: 22px;

    min-width: 22px;

    flex: 0 0 22px;

    padding: 0;

    box-sizing: border-box;
}


/* =====================================================
   ACTION ICONS

   OVERRIDE THE DESKTOP !IMPORTANT 17px RULE
===================================================== */

.readable-record-action-icon {
    width: 11px !important;
    height: 11px !important;

    max-width: 11px;
    max-height: 11px;

    display: block;

    object-fit: contain;
}





}

@media (min-width: 1367px) and (max-width: 1550px) {

    .record-share-message {
        position: fixed;

        left: 50%;
        top: 90px;

        transform: translateX(-50%);

        z-index: 1000000;

        max-width: calc(100vw - 32px);

        padding: 11px 20px;

        box-sizing: border-box;

        background: rgba(241, 90, 36, 0.16);
        border: 1px solid rgba(241, 90, 36, 0.65);
        border-radius: 5px;

        color: #ff8a60;

        font-family: Arial, sans-serif;
        font-size: 13px;
        font-weight: 700;

        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);

        backdrop-filter: blur(6px);

        white-space: nowrap;

        text-align: center;
    }

}

@media (min-width: 769px) and (max-width: 1366px) {

    .record-share-message {
        position: fixed;

        left: 50%;
        top: 70px;

        transform: translateX(-50%);

        z-index: 1000000;

        max-width: calc(100vw - 28px);

        padding: 10px 18px;

        box-sizing: border-box;

        background: rgba(241, 90, 36, 0.16);
        border: 1px solid rgba(241, 90, 36, 0.65);
        border-radius: 5px;

        color: #ff8a60;

        font-family: Arial, sans-serif;
        font-size: 12px;
        font-weight: 700;

        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);

        backdrop-filter: blur(6px);

        white-space: nowrap;

        text-align: center;
    }

}

@media (min-width: 481px) and (max-width: 768px) {

    .record-share-message {
        position: fixed;

        left: 50%;
        top: 55px;

        transform: translateX(-50%);

        z-index: 1000000;

        max-width: calc(100vw - 24px);

        padding: 9px 16px;

        box-sizing: border-box;

        background: rgba(241, 90, 36, 0.16);
        border: 1px solid rgba(241, 90, 36, 0.65);
        border-radius: 5px;

        color: #ff8a60;

        font-family: Arial, sans-serif;
        font-size: 11px;
        font-weight: 700;

        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);

        backdrop-filter: blur(6px);

        white-space: nowrap;

        text-align: center;
    }

}

@media (max-width: 480px) {

    .record-share-message {
        position: fixed;

        left: 50%;
        top: 45px;

        transform: translateX(-50%);

        z-index: 1000000;

        width: auto;
        max-width: calc(100vw - 20px);

        padding: 8px 14px;

        box-sizing: border-box;

        background: rgba(241, 90, 36, 0.16);
        border: 1px solid rgba(241, 90, 36, 0.65);
        border-radius: 5px;

        color: #ff8a60;

        font-family: Arial, sans-serif;
        font-size: 10px;
        font-weight: 700;

        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);

        backdrop-filter: blur(6px);

        white-space: normal;

        text-align: center;
    }

}


/* =========================================================
   INVOLVED OFFICES
========================================================= */

.casefile-offices-section {
    width: 100%;
    min-width: 0;

    margin-bottom: 20px;
    padding: 18px;

    background-color: #242421;

    border: 1px solid #555;
    border-radius: 6px;

    box-sizing: border-box;

    font-family: Arial, sans-serif;
}


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

.casefile-offices-header {
    margin-bottom: 12px;

    color: #f2f2f2;

    font-size: 15px;
    font-weight: 600;
    line-height: 1.2;
}


/* =========================================================
   INNER INSET CONTAINER
========================================================= */

.casefile-offices-container {
    width: 100%;
    height: 130px;

    padding: 10px;

    background-color: #1a1a18;

    border: 1px solid #555;
    border-radius: 5px;

    box-sizing: border-box;

    overflow: hidden;
}


/* =========================================================
   SCROLLING OFFICE GRID
========================================================= */

.casefile-offices-grid {
    width: 100%;
    height: 100%;

    display: grid;

    grid-template-columns: repeat(5, minmax(0, 1fr));
    grid-auto-rows: 50px;

    align-content: start;

    gap: 8px;

    padding-right: 5px;

    box-sizing: border-box;

    overflow-y: auto;
    overflow-x: hidden;

}


/* =========================================================
   OFFICE CARD / BUTTON
========================================================= */

.casefile-office-card {
    width: 100%;
    height: 50px;
    min-width: 0;

    display: flex;
    align-items: center;

    gap: 11px;

    padding: 0 12px;

    box-sizing: border-box;

    background-color: #171715;

    border: 1px solid #555;
    border-radius: 5px;

    color: #f2f2f2;

    text-decoration: none;

    cursor: pointer;

    transition:
        border-color 0.15s ease,
        background-color 0.15s ease,
        transform 0.08s ease;
}


/* =========================================================
   OFFICE CARD HOVER
========================================================= */

.casefile-office-card:hover {
    background-color: #171715;

    border-color: #f15a24;
}


/* =========================================================
   OFFICE CARD FOCUS
========================================================= */

.casefile-office-card:focus {
    outline: none;

    background-color: #171715;

    border-color: #f15a24;
}


.casefile-office-card:focus-visible {
    outline: none;

    background-color: #171715;

    border-color: #f15a24;
}


/* =========================================================
   OFFICE CARD ACTIVE / CLICK
========================================================= */

.casefile-office-card:active {
    background-color: #171715;

    border-color: #f15a24;

    transform: translateY(1px);
}


/* =========================================================
   OFFICE ICON
========================================================= */

.casefile-office-icon {
    width: 24px;
    height: 24px;

    flex: 0 0 24px;

    display: block;

    object-fit: contain;
}


/* =========================================================
   OFFICE NAME
========================================================= */

.casefile-office-name {
    flex: 1;

    min-width: 0;

    color: #f2f2f2;

    font-size: 13px;
    font-weight: 500;
    line-height: 1.2;

    white-space: normal;

    overflow-wrap: break-word;
}


/* =========================================================
   OFFICE ARROW
========================================================= */

.casefile-office-arrow {
    flex: 0 0 auto;

    margin-left: auto;

    color: #f2f2f2;

    font-size: 20px;
    font-weight: 600;
    line-height: 1;
}


/* =========================================================
   SCROLLBAR

   SAME SCROLLBAR AS:
   .casefile-description-body
   .casefile-employees-body
========================================================= */

.casefile-offices-grid::-webkit-scrollbar {
    width: 7px;
}


.casefile-offices-grid::-webkit-scrollbar-track {
    background-color: #1a1a18;
}


.casefile-offices-grid::-webkit-scrollbar-thumb {
    background-color: #555;

    border-radius: 4px;
}


.casefile-offices-grid::-webkit-scrollbar-thumb:hover {
    background-color: #777;
}


/* =========================================================
   RESPONSIVE — MID-RANGE DESKTOP / LAPTOP
========================================================= */

@media (max-width: 1550px) {

    .casefile-offices-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

}


/* =========================================================
   RESPONSIVE — TABLET
========================================================= */

@media (max-width: 1024px) {

    .casefile-offices-section {
        padding: 16px;
    }


    .casefile-offices-container {
        height: 130px;

        padding: 9px;
    }


    .casefile-offices-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));

        grid-auto-rows: 50px;

        gap: 8px;

        padding-right: 5px;
    }


    .casefile-office-card {
        height: 50px;

        gap: 9px;

        padding: 0 10px;
    }


    .casefile-office-icon {
        width: 22px;
        height: 22px;

        flex: 0 0 22px;
    }


    .casefile-office-name {
        font-size: 12px;
    }

}


/* =========================================================
   RESPONSIVE — TABLET PORTRAIT
========================================================= */

@media (max-width: 768px) {

    .casefile-offices-section {
        padding: 14px;
    }


    .casefile-offices-header {
        margin-bottom: 10px;
    }


    .casefile-offices-container {
        height: 130px;

        padding: 8px;
    }


    .casefile-offices-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));

        grid-auto-rows: 50px;

        gap: 8px;

        padding-right: 5px;
    }


    .casefile-office-card {
        height: 50px;

        gap: 9px;

        padding: 0 10px;
    }


    .casefile-office-icon {
        width: 22px;
        height: 22px;

        flex: 0 0 22px;
    }


    .casefile-office-name {
        font-size: 12px;
    }


    .casefile-office-arrow {
        font-size: 19px;
    }

}


/* =========================================================
   RESPONSIVE — PHONE
========================================================= */

@media (max-width: 480px) {

    .casefile-offices-section {
        padding: 12px;
    }


    .casefile-offices-header {
        margin-bottom: 10px;

        font-size: 14px;
    }


    .casefile-offices-container {
        height: 130px;

        padding: 7px;
    }


    .casefile-offices-grid {
        grid-template-columns: 1fr;

        grid-auto-rows: 50px;

        gap: 7px;

        padding-right: 5px;
    }


    .casefile-office-card {
        height: 50px;

        gap: 9px;

        padding: 0 10px;
    }


    .casefile-office-icon {
        width: 22px;
        height: 22px;

        flex: 0 0 22px;
    }


    .casefile-office-name {
        font-size: 12px;
    }


    .casefile-office-arrow {
        font-size: 18px;
    }

}
/* =========================================================
   SCROLLBARS
========================================================= */

.casefile-description-body::-webkit-scrollbar,
.casefile-employees-body::-webkit-scrollbar,
.casefile-offices-grid::-webkit-scrollbar {
    width: 7px;
}


.casefile-description-body::-webkit-scrollbar-track,
.casefile-employees-body::-webkit-scrollbar-track,
.casefile-offices-grid::-webkit-scrollbar-track {
    background-color: #1a1a18;
}


.casefile-description-body::-webkit-scrollbar-thumb,
.casefile-employees-body::-webkit-scrollbar-thumb,
.casefile-offices-grid::-webkit-scrollbar-thumb {
    background-color: #555;

    border-radius: 4px;
}


.casefile-description-body::-webkit-scrollbar-thumb:hover,
.casefile-employees-body::-webkit-scrollbar-thumb:hover,
.casefile-offices-grid::-webkit-scrollbar-thumb:hover {
    background-color: #777;
}