/* ============================================================
   PUBLIC RECORDS PAGE
============================================================ */

.public-records-container {
    width: 100%;
    min-height: calc(100vh - 100px);

    margin: 0;
    padding: 28px 34px 40px;

    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 26px;

    box-sizing: border-box;

    background: #1a1a18;
    border-top: 4px solid #f15a24;

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


/* ============================================================
   LEFT SIDEBAR
============================================================ */

.public-records-sidebar {
    width: 280px;
    min-width: 280px;

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

    align-self: start;

    box-sizing: border-box;
}


/* ============================================================
   SIDEBAR SEARCH / FILTER PANEL
============================================================ */

.public-records-sidebar-panel {
    width: 100%;

    padding: 18px;

    box-sizing: border-box;

    background: #242421;

    border: 1px solid #555;
}


.public-records-sidebar-heading {
    margin: 0 0 12px;
    padding: 0;

    color: #f2f2f2;

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


/* ============================================================
   SEARCH BOX
============================================================ */

.public-records-search-box {
    position: relative;

    width: 100%;

    margin: 0 0 14px;
}


.public-records-search-box input {
    width: 100%;
    height: 44px;

    margin: 0;
    padding: 0 42px 0 12px;

    box-sizing: border-box;

    background: #1a1a18;

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

    outline: none;

    color: #f2f2f2;

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


.public-records-search-box input::placeholder {
    color: #999;
}


.public-records-search-box input:hover {
    border-color: #777;
}


.public-records-search-box input:focus {
    border-color: #f15a24;
}


/* ============================================================
   SEARCH BUTTON
============================================================ */

.public-records-search-button {
    position: absolute;

    top: 50%;
    right: 7px;

    width: 30px;
    height: 30px;

    margin: 0;
    padding: 0;

    transform: translateY(-50%);

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

    background: transparent;

    border: 0;

    cursor: pointer;
}


.public-records-search-button img {
    width: 18px;
    height: 18px;

    display: block;

    object-fit: contain;
}


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

.public-records-browse-button {
    width: 100%;
    height: 40px;

    margin: 0 0 8px;
    padding: 0 12px;

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

    box-sizing: border-box;

    background: #1a1a18;

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

    color: #f2f2f2;

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

    text-align: left;

    cursor: pointer;
    text-decoration: none;
}


.public-records-browse-button:hover {
    background: #2a2a27;
    border-color: #777;
}


.public-records-browse-button > span:first-child {
    min-width: 0;
}


.public-records-browse-button > span:last-child {
    flex: 0 0 auto;

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


/* ============================================================
   SIDEBAR DIVIDER
============================================================ */

.public-records-sidebar-divider {
    width: 100%;
    height: 1px;

    margin: 18px 0;

    background: #555;
}


/* ============================================================
   STATUS FILTER
============================================================ */

.public-records-status-list {
    width: 100%;

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


.public-records-status-button {
    width: 100%;
    height: 36px;

    margin: 0;
    padding: 0 9px;

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

    box-sizing: border-box;

    background: #1a1a18;

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

    color: #f2f2f2;

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

    text-align: left;

    cursor: pointer;
}


.public-records-status-button:hover {
    background: #2a2a27;
    border-color: #777;
}


.public-records-status-button.active {
    border-color: #f15a24;
}


.public-records-status-count {
    min-width: 24px;
    height: 18px;

    padding: 0 6px;

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

    box-sizing: border-box;

    background: #555;

    border-radius: 999px;

    color: #f2f2f2;

    font-size: 12px;
    font-weight: 700;
}


.public-records-status-button.active
.public-records-status-count {
    background: #7c2d12;

    color: #f15a24;
}


/* ============================================================
   PUBLIC SERVANTS / PUBLIC RECORDS NOTICE
============================================================ */

.public-records-sidebar-notice {
    width: 100%;

    padding: 26px 18px;

    box-sizing: border-box;

    background: #141412;

    border: 1px solid #f15a24;

    text-align: center;
}


.public-records-sidebar-notice > img {
    width: 64px;
    height: 64px;

    margin: 0 auto 16px;

    display: block;

    object-fit: contain;
}


.public-records-sidebar-notice h4 {
    margin: 0 auto 18px;
    padding: 0;

    color: #f2f2f2;

    font-size: 14px;
    font-weight: 700;
    line-height: 1.25;
}


.public-records-sidebar-notice p {
    margin: 0 0 10px;
    padding: 0;

    color: #d0d0d0;

    font-size: 11px;
    font-weight: 400;
    line-height: 1.55;
}


.public-records-sidebar-notice p:last-child {
    margin-bottom: 0;
}


/* ============================================================
   RIGHT CONTENT

   LAYOUT ONLY.
   NO VISUAL OUTER BOX.
============================================================ */

.public-records-content {
    width: 100%;
    min-width: 0;

    margin: 0;
    padding: 0;

    display: block;

    box-sizing: border-box;

    background: transparent;
    border: 0;
}


/* ============================================================
   TOP VIEW SWITCHER
============================================================ */

.public-records-topbar {
    width: 100%;
    height: 58px;

    margin: 0 0 26px;
    padding: 0;

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

    box-sizing: border-box;

    background: #242421;

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

    overflow: hidden;
}


.public-records-topbar-button {
    min-width: 0;
    height: 100%;

    margin: 0;
    padding: 0 20px;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;

    box-sizing: border-box;

    background: #242421;

    border: 0;
    border-right: 1px solid #555;

    color: #f2f2f2;

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

    cursor: pointer;
}


.public-records-topbar-button:last-child {
    border-right: 0;
}


.public-records-topbar-button:hover {
    background: #2a2a27;
}


.public-records-topbar-button.active {
    background: #1a1a18;

    box-shadow: inset 0 0 0 1px #f15a24;
}


.public-records-topbar-count {
    min-width: 28px;
    height: 20px;

    padding: 0 7px;

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

    box-sizing: border-box;

    background: #555;

    border-radius: 999px;

    color: #f2f2f2;

    font-size: 12px;
    font-weight: 700;
}


.public-records-topbar-count.pending {
    background: #f15a24;

    color: #fff;
}


/* ============================================================
   SWITCHABLE VIEWS
============================================================ */

.public-records-view {
    width: 100%;

    margin: 0;
    padding: 0;

    display: block;

    box-sizing: border-box;

    background: transparent;
    border: 0;
}


/* THIS IS WHAT ACTUALLY HIDES THE INACTIVE VIEW */

.public-records-view[hidden] {
    display: none !important;
}


/* ============================================================
   VIEW HEADING

   TITLE + DESCRIPTION STACK DIRECTLY.
============================================================ */

.public-records-heading {
    width: 100%;

    margin: 0 0 10px;
    padding: 0;

    display: block;

    box-sizing: border-box;

    background: transparent;
    border: 0;

    text-align: left;
}


.public-records-heading h1 {
    width: 100%;

    margin: 0 0 5px;
    padding: 0;

    display: block;

    color: #f2f2f2;

    font-family: Arial, sans-serif;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.2;

    text-align: left;
}


.public-records-heading p {
    width: 100%;
    max-width: 760px;

    margin: 0;
    padding: 0;

    display: block;

    color: #d0d0d0;

    font-family: Arial, sans-serif;
    font-size: 12px;
    font-weight: 400;
    line-height: 1.4;

    text-align: left;
}


/* ============================================================
   LISTS

   THESE ARE STRUCTURAL ONLY.
   NO PADDING.
   NO BORDER.
   NO BACKGROUND.
============================================================ */

.public-records-list {
    width: 100%;

    margin: 0;
    padding: 0;

    display: block;

    box-sizing: border-box;

    background: transparent;
    border: 0;
}


/* ============================================================
   INDIVIDUAL RECORD / AUDIT CARD
============================================================ */

.public-records-card {
    width: 100%;

    margin: 0 0 14px;
    padding: 18px;

    display: block;

    box-sizing: border-box;

    background: #242421;

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


.public-records-card:last-child {
    margin-bottom: 0;
}


/* ============================================================
   CARD TOP
============================================================ */

.public-records-card-top {
    width: 100%;

    margin: 0 0 9px;
    padding: 0;

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

    box-sizing: border-box;
}


.public-records-card-heading {
    min-width: 0;

    margin: 0;
    padding: 0;
}


.public-records-card-heading h2 {
    margin: 0 0 4px;
    padding: 0;

    color: #f2f2f2;

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


.public-records-request-date {
    margin: 0;
    padding: 0;

    color: #c2c2c2;

    font-family: Arial, sans-serif;
    font-size: 11px;
    font-weight: 400;
    line-height: 1.3;
}


/* ============================================================
   STATUS BADGE
============================================================ */

.public-records-request-status {
    flex: 0 0 auto;

    margin: 0;
    padding: 5px 8px;

    box-sizing: border-box;

    background: #352017;

    border: 1px solid #6d341d;
    border-radius: 3px;

    color: #f15a24;

    font-family: Arial, sans-serif;
    font-size: 10px;
    font-weight: 700;
    line-height: 1;
}


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

.public-records-card-description {
    max-width: 650px;

    margin: 0 0 16px;
    padding: 0;

    color: #d0d0d0;

    font-family: Arial, sans-serif;
    font-size: 12px;
    font-weight: 400;
    line-height: 18px;

    max-height: 54px;
    overflow: hidden;
}
/* ============================================================
   CARD BOTTOM
============================================================ */

.public-records-card-bottom {
    width: 100%;

    margin: 0;
    padding: 0;

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

    box-sizing: border-box;
}


.public-records-card-links {
    min-width: 0;

    margin: 0;
    padding: 0;

    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 24px;
}


/* ============================================================
   EMPLOYEE / OFFICE ASSOCIATIONS
============================================================ */

.public-records-association {
    display: inline-flex;
    align-items: center;
    gap: 8px;

    margin: 0;
    padding: 0;

    color: #d0d0d0;

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

    white-space: nowrap;
}


/* ACTUAL SVG IMAGE — NO CSS-DRAWN ICONS */

.public-records-association-icon {
    width: 18px;
    height: 18px;

    flex: 0 0 18px;

    display: block;

    object-fit: contain;
}


/* ============================================================
   VIEW DETAILS
============================================================ */

.public-records-details-button {
    flex: 0 0 auto;

    min-width: 130px;
    height: 42px;

    margin: 0;
    padding: 0 14px;

    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;

    box-sizing: border-box;

    background: #1a1a18;

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

    color: #f2f2f2;

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

    text-decoration: none;
}


.public-records-details-button:hover {
    background: #2a2a27;
    border-color: #777;
}


.public-records-details-button:active {
    transform: translateY(2px);
}


.public-records-details-button > span:last-child {
    font-size: 19px;
    line-height: 1;
}


/* ============================================================
   PAGINATION

   EACH VIEW HAS ITS OWN PAGINATION,
   BUT ONLY THE ACTIVE VIEW IS VISIBLE.
============================================================ */

.public-records-pagination {
    width: 100%;

    margin: 20px 0 0;
    padding: 0;

    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 8px;

    box-sizing: border-box;

    background: transparent;
    border: 0;
}


.public-records-page-arrow,
.public-records-page-number {
    width: 34px;
    height: 34px;

    margin: 0;
    padding: 0;

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

    box-sizing: border-box;

    background: #242421;

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

    color: #f2f2f2;

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

    cursor: pointer;
}


.public-records-page-arrow {
    font-size: 21px;
}


.public-records-page-number.active {
    background: #1a1a18;

    border-color: #f15a24;

    color: #f15a24;
}


.public-records-page-arrow:hover,
.public-records-page-number:hover {
    background: #2a2a27;
    border-color: #777;
}


.public-records-page-number.active:hover {
    border-color: #f15a24;
}





.public-records-page-ellipsis {
    min-width: 30px;

    display: inline-block;

    color: #aaa;

    font-size: 12px;

    text-align: center;
}


/* ============================================================
   FOCUS
============================================================ */

.public-records-search-button:focus-visible,
.public-records-browse-button:focus-visible,
.public-records-status-button:focus-visible,
.public-records-topbar-button:focus-visible,
.public-records-details-button:focus-visible,
.public-records-page-arrow:focus-visible,
.public-records-page-number:focus-visible {
    outline: 2px solid #f15a24;
    outline-offset: 2px;
    text-decoration: none;
}


/* ============================================================
   LAPTOP / 1366
============================================================ */

@media (max-width: 1366px) {

    .public-records-container {
        grid-template-columns: 250px minmax(0, 1fr);

        gap: 20px;

        padding: 24px 22px 36px;
    }


    .public-records-sidebar {
        width: 250px;
        min-width: 250px;
    }


    .public-records-sidebar-panel {
        padding: 15px;
    }


    .public-records-topbar {
        margin-bottom: 22px;
    }


    .public-records-card {
        padding: 16px;
    }

}


/* ============================================================
   TABLET
============================================================ */

@media (max-width: 768px) {

    .public-records-container {
        display: block;

        width: 100%;

        padding: 20px 16px 32px;
    }


    .public-records-sidebar {
        width: 100%;
        min-width: 0;

        margin-bottom: 24px;
    }


    .public-records-sidebar-notice {
        display: none;
    }


    .public-records-topbar {
        height: 54px;

        margin-bottom: 20px;
    }


    .public-records-topbar-button {
        padding: 0 10px;

        gap: 8px;

        font-size: 11px;
    }


    .public-records-heading {
        margin-bottom: 10px;
    }


    .public-records-card-description {
        max-width: none;
    }

}


/* ============================================================
   PHONE
============================================================ */

@media (max-width: 480px) {

    .public-records-container {
        padding: 16px 12px 28px;
    }


    .public-records-sidebar {
        gap: 14px;
    }


    .public-records-sidebar-panel {
        padding: 14px;
    }


    .public-records-topbar {
        height: auto;

        grid-template-columns: 1fr;

        margin-bottom: 18px;
    }


    .public-records-topbar-button {
        min-height: 48px;

        border-right: 0;
        border-bottom: 1px solid #555;
    }


    .public-records-topbar-button:last-child {
        border-bottom: 0;
    }


    .public-records-heading {
        margin-bottom: 10px;
    }


    .public-records-heading h1 {
        font-size: 15px;
    }


    .public-records-heading p {
        font-size: 11px;
    }


    .public-records-card {
        margin-bottom: 12px;

        padding: 14px;
    }


    .public-records-card-top {
        gap: 10px;
    }


    .public-records-card-heading h2 {
        font-size: 14px;
    }


    .public-records-request-date {
        font-size: 10px;
    }


    .public-records-request-status {
        padding: 4px 6px;

        font-size: 9px;
    }


    .public-records-card-description {
        max-width: none;

        margin-bottom: 14px;

        font-size: 11px;
    }


    .public-records-card-bottom {
        flex-direction: column;
        align-items: flex-start;

        gap: 14px;
    }


    .public-records-card-links {
        gap: 16px;
    }


    .public-records-details-button {
        width: 100%;
        min-width: 0;
    }


    .public-records-pagination {
        margin-top: 18px;

        gap: 5px;
    }


    .public-records-page-arrow,
    .public-records-page-number {
        width: 32px;
        height: 32px;
    }


    .public-records-page-ellipsis {
        min-width: 22px;
    }

}

/* ============================================================
   PUBLIC RECORDS / AUDIT DETAILS MODAL
============================================================ */


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

.public-records-modal-overlay {
    position: fixed;
    inset: 0;

    z-index: 10000;

    width: 100%;
    height: 100%;

    padding: 30px;

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

    box-sizing: border-box;

    background: rgba(0, 0, 0, 0.78);
}

.public-records-modal-overlay[hidden] {
    display: none !important;
}


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

.public-records-modal {
    position: relative;

    width: min(1000px, 100%);
    max-height: calc(100vh - 60px);

    margin: 0;

    /* OUTER INTERIOR PADDING */
    padding: 45px;

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

    box-sizing: border-box;

    background: #141412;

    border: 1px solid #555;
    border-top: 3px solid #f15a24;
    border-radius: 6px;

    color: #f2f2f2;

    font-family: Arial, sans-serif;

    scrollbar-width: thin;
    scrollbar-color: #666 #1a1a18;
}

.public-records-modal::-webkit-scrollbar {
    width: 8px;
}

.public-records-modal::-webkit-scrollbar-track {
    background: #1a1a18;
}

.public-records-modal::-webkit-scrollbar-thumb {
    background: #666;
    border-radius: 5px;
}

.public-records-modal::-webkit-scrollbar-thumb:hover {
    background: #888;
}


/* ============================================================
   CLOSE X
============================================================ */

.public-records-modal-close-x {
    position: absolute;

    top: 14px;
    right: 16px;

    width: 38px;
    height: 38px;

    margin: 0;
    padding: 0;

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

    background: transparent;

    border: 0;

    color: #f2f2f2;

    font-family: Arial, sans-serif;
    font-size: 30px;
    font-weight: 300;
    line-height: 1;

    cursor: pointer;
}

.public-records-modal-close-x:hover {
    color: #f15a24;
}


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

.public-records-modal-header {
    width: 100%;

    height: auto;
    min-height: 0;

    margin: 0 0 18px;
    padding: 0 55px 0 0;

    display: block;

    box-sizing: border-box;

    background: transparent;
    border: 0;
}

.public-records-modal-type {
    margin: 0 0 6px;

    color: #f15a24;

    font-size: 13px;
    font-weight: 700;
    line-height: 1.2;

    letter-spacing: 0.4px;
}

.public-records-modal-title {
    margin: 0;
    padding: 0;

    color: #f2f2f2;

    font-size: 27px;
    font-weight: 700;
    line-height: 1.2;
}


/* ============================================================
   META INFORMATION
============================================================ */

.public-records-modal-meta {
    width: 100%;

    margin: 0 0 16px;
    padding: 14px;

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

    box-sizing: border-box;

    background: #1a1a18;

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

.public-records-modal-meta-item {
    min-width: 0;

    padding: 5px 14px;

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

    box-sizing: border-box;

    border-right: 1px solid #444;
}

.public-records-modal-meta-item:first-child {
    padding-left: 5px;
}

.public-records-modal-meta-item:last-child {
    border-right: 0;
}

.public-records-modal-meta-icon {
    width: 22px;
    height: 22px;

    flex: 0 0 22px;

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

.public-records-modal-meta-icon img {
    display: block;

    width: 20px;
    height: 20px;

    object-fit: contain;
}

.public-records-modal-meta-content {
    min-width: 0;

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

.public-records-modal-meta-label {
    color: #f2f2f2;

    font-size: 13px;
    font-weight: 700;
    line-height: 1.2;
}

.public-records-modal-meta-value {
    color: #d0d0d0;

    font-size: 12px;
    font-weight: 400;
    line-height: 1.35;

    overflow-wrap: anywhere;
}


/* ============================================================
   STATUS
============================================================ */

.public-records-modal-status {
    width: fit-content;

    padding: 6px 9px;

    box-sizing: border-box;

    background: #352017;

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

    color: #f15a24;

    font-size: 10px;
    font-weight: 700;
    line-height: 1;
}


/* ============================================================
   GENERAL MODAL SECTIONS
============================================================ */

.public-records-modal-section {
    width: 100%;

    margin: 0 0 16px;
    padding: 14px;

    box-sizing: border-box;

    background: #242421;

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

.public-records-modal-section-title {
    margin: 0 0 12px;
    padding: 0;

    color: #f2f2f2;

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


/* ============================================================
   DESCRIPTION
   LARGE DOMINANT SECTION
============================================================ */

.public-records-modal-description-scroll {
    width: 100%;

    /* TALL DESCRIPTION BOX */
    height: 450px;

    margin: 0;
    padding: 15px;

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

    box-sizing: border-box;

    background: #1a1a18;

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

    color: #d5d5d5;

    font-size: 14px;
    font-weight: 400;
    line-height: 1.5;

    white-space: pre-line;

    scrollbar-width: thin;
    scrollbar-color: #555 #1a1a18;
}

.public-records-modal-description-scroll p {
    margin: 0 0 16px;
}

.public-records-modal-description-scroll p:last-child {
    margin-bottom: 0;
}

.public-records-modal-description-scroll::-webkit-scrollbar {
    width: 7px;
}

.public-records-modal-description-scroll::-webkit-scrollbar-track {
    background: #1a1a18;
}

.public-records-modal-description-scroll::-webkit-scrollbar-thumb {
    background: #555;
    border-radius: 4px;
}

.public-records-modal-description-scroll::-webkit-scrollbar-thumb:hover {
    background: #777;
}


/* ============================================================
   EMPLOYEE INNER SCROLL AREA
============================================================ */

.public-records-modal-employees-scroll {
    width: 100%;
    height: 285px;

    margin: 0;
    padding: 10px;

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

    box-sizing: border-box;

    background: #1a1a18;

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

    scrollbar-width: thin;
    scrollbar-color: #555 #1a1a18;
}

.public-records-modal-employees-scroll::-webkit-scrollbar {
    width: 7px;
}

.public-records-modal-employees-scroll::-webkit-scrollbar-track {
    background: #1a1a18;
}

.public-records-modal-employees-scroll::-webkit-scrollbar-thumb {
    background: #555;
    border-radius: 4px;
}

.public-records-modal-employees-scroll::-webkit-scrollbar-thumb:hover {
    background: #777;
}


/* ============================================================
   EMPLOYEE GRID
   FIVE SMALL CARDS ACROSS
============================================================ */

.public-records-modal-employees-grid {
    width: 100%;

    margin: 0;
    padding: 0 5px 0 0;

    display: grid;

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

    align-content: start;

    gap: 10px;

    box-sizing: border-box;
}


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

.public-records-modal-employee-card {
    width: 100%;
    min-width: 0;

    margin: 0;
    padding: 5px;

    display: flex;
    flex-direction: column;

    box-sizing: border-box;

    background: #242421;

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

    color: inherit;

    text-decoration: none;

    cursor: pointer;

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

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


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

.public-records-modal-employee-image {
    width: 100%;
    aspect-ratio: 1 / 1;

    overflow: hidden;

    box-sizing: border-box;

    background: #1a1a18;

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

.public-records-modal-employee-image img {
    display: block;

    width: 100%;
    height: 100%;

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

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


/* ============================================================
   EMPLOYEE INFORMATION
============================================================ */

.public-records-modal-employee-info {
    height: 72px;

    padding: 7px 3px 3px;

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

    box-sizing: border-box;

    text-align: center;
}

.public-records-modal-employee-name {
    width: 100%;

    margin: 0 0 7px;

    color: #f2f2f2;

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

    text-align: center;

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

.public-records-modal-employee-title {
    width: 100%;
    flex: 1;

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

    color: #aaa;

    font-size: 10px;
    font-weight: 400;
    line-height: 1.2;

    text-align: center;

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


/* ============================================================
   OFFICES / UNITS
   CONTENT-SIZED CARDS THAT WRAP
============================================================ */

.public-records-modal-offices-grid {
    width: 100%;

    margin: 0;
    padding: 0;

    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: flex-start;

    gap: 8px;

    box-sizing: border-box;
}

.public-records-modal-office-card {
    width: fit-content;
    max-width: 100%;
    min-height: 36px;

    flex: 0 0 auto;

    margin: 0;
    padding: 0 10px 0 12px;

    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    gap: 9px;

    box-sizing: border-box;

    background: #1a1a18;

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

    color: #e0e0e0;

    font-size: 13px;
    font-weight: 500;
    line-height: 1.25;

    text-decoration: none;

    white-space: nowrap;

    cursor: pointer;

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

.public-records-modal-office-card:hover {
    background: #2a2a27;
    border-color: #f15a24;
}

.public-records-modal-office-arrow {
    flex: 0 0 auto;

    color: #f15a24;

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


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

.public-records-modal-footer {
    width: 100%;

    height: auto;
    min-height: 0;

    margin: 4px 0 0;
    padding: 16px 0 0;

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

    box-sizing: border-box;

    background: transparent;

    border: 0;
    border-top: 1px solid #444;
}


/* ============================================================
   CLOSE BUTTON
============================================================ */

.public-records-modal-close-button {
    min-width: 120px;
    height: 40px;

    margin: 0;
    padding: 0 18px;

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

    box-sizing: border-box;

    background: #1a1a18;

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

    color: #f2f2f2;

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

    cursor: pointer;
}

.public-records-modal-close-button:hover {
    background: #2a2a27;
    border-color: #f15a24;
}


/* ============================================================
   FOCUS
============================================================ */

.public-records-modal-close-x:focus-visible,
.public-records-modal-close-button:focus-visible,
.public-records-modal-employee-card:focus-visible,
.public-records-modal-office-card:focus-visible {
    outline: 2px solid #f15a24;
    outline-offset: 2px;
}


/* ============================================================
   LAPTOP
============================================================ */

@media (max-width: 1366px) {

    .public-records-modal-overlay {
        padding: 22px;
    }

    .public-records-modal {
        width: min(920px, 100%);
        max-height: calc(100vh - 44px);

        /* MORE OUTER PADDING */
        padding: 38px;
    }

    .public-records-modal-title {
        font-size: 24px;
    }

    .public-records-modal-employees-grid {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }

    .public-records-modal-description-scroll {
        height: 450px;
    }
}


/* ============================================================
   TABLET
============================================================ */

@media (max-width: 768px) {

    .public-records-modal-overlay {
        padding: 12px;
    }

    .public-records-modal {
        width: 100%;
        max-height: calc(100vh - 24px);

        padding: 24px;
    }

    .public-records-modal-header {
        padding-right: 44px;
    }

    .public-records-modal-title {
        font-size: 21px;
    }


    /* META 2 X 2 */

    .public-records-modal-meta {
        grid-template-columns: repeat(2, minmax(0, 1fr));

        padding: 9px;
    }

    .public-records-modal-meta-item {
        padding: 11px;

        border-right: 0;
        border-bottom: 1px solid #444;
    }

    .public-records-modal-meta-item:nth-child(odd) {
        border-right: 1px solid #444;
    }

    .public-records-modal-meta-item:nth-last-child(-n + 2) {
        border-bottom: 0;
    }

    .public-records-modal-meta-item:first-child {
        padding-left: 11px;
    }


    /* TALL DESCRIPTION */

    .public-records-modal-description-scroll {
        height: 400px;
    }


    /* FOUR EMPLOYEE CARDS ACROSS */

    .public-records-modal-employees-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));

        gap: 8px;
    }

    .public-records-modal-employees-scroll {
        height: 285px;
    }
}


/* ============================================================
   PHONE
============================================================ */

@media (max-width: 480px) {

    .public-records-modal-overlay {
        padding: 7px;
    }

    .public-records-modal {
        width: 100%;
        max-height: calc(100vh - 14px);

        padding: 16px 12px;
    }

    .public-records-modal-close-x {
        top: 8px;
        right: 7px;

        width: 32px;
        height: 32px;

        font-size: 25px;
    }

    .public-records-modal-header {
        margin-bottom: 14px;

        padding-right: 36px;
    }

    .public-records-modal-type {
        font-size: 10px;
    }

    .public-records-modal-title {
        font-size: 18px;
    }


    /* META VERTICAL */

    .public-records-modal-meta {
        grid-template-columns: 1fr;

        padding: 7px;
    }

    .public-records-modal-meta-item,
    .public-records-modal-meta-item:first-child,
    .public-records-modal-meta-item:nth-child(odd),
    .public-records-modal-meta-item:nth-last-child(-n + 2) {
        padding: 10px 7px;

        border-right: 0;
        border-bottom: 1px solid #444;
    }

    .public-records-modal-meta-item:last-child {
        border-bottom: 0;
    }

    .public-records-modal-section {
        margin-bottom: 12px;

        padding: 9px;
    }

    .public-records-modal-section-title {
        font-size: 11px;
    }


    /* KEEP DESCRIPTION LARGE */

    .public-records-modal-description-scroll {
        height: 350px;

        padding: 10px;

        font-size: 11px;
    }


    /* THREE SMALL EMPLOYEE CARDS ACROSS */

    .public-records-modal-employees-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));

        gap: 6px;
    }

    .public-records-modal-employees-scroll {
        height: 300px;

        padding: 6px;
    }

    .public-records-modal-employee-card {
        padding: 3px;
    }

    .public-records-modal-employee-info {
        height: 65px;

        padding: 6px 2px 2px;
    }

    .public-records-modal-employee-name {
        margin-bottom: 5px;

        font-size: 9px;
    }

    .public-records-modal-employee-title {
        font-size: 7px;
    }


    /* OFFICE TAGS CONTINUE TO WRAP */

    .public-records-modal-offices-grid {
        gap: 6px;
    }

    .public-records-modal-office-card {
        max-width: 100%;
        min-height: 34px;

        padding: 0 8px;

        font-size: 10px;

        white-space: normal;
    }

    .public-records-modal-footer {
        padding-top: 13px;
    }

    .public-records-modal-close-button {
        width: 100%;
    }
}


/* ============================================================
   VERY SMALL PHONE
============================================================ */

@media (max-width: 350px) {

    .public-records-modal-employees-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}


/* ===========================
   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);
    }
}

@media (max-width: 768px) and (min-width: 481px) {

    .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 {
        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 {
        position: relative;

        width: 76px;
        height: 76px;

        margin: 0 auto 16px;
    }

    .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 {
        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-modal h2 {
        margin: 0 0 7px;

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

    #loading-message,
    .loading-modal p {
        margin: 0 0 14px;

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

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

        margin: 0;

        border-radius: 999px;
    }

    #loading-progress {
        height: 100%;
    }
}


@media (max-width: 480px) {

    .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 {
        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 {
        position: relative;

        width: 64px;
        height: 64px;

        margin: 0 auto 14px;
    }

    .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 {
        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-modal h2 {
        margin: 0 0 6px;

        font-size: 14px;
        line-height: 1.1;
    }

    #loading-message,
    .loading-modal p {
        margin: 0 0 12px;

        font-size: 9px;
        line-height: 1.25;
    }

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

        margin: 0;

        border-radius: 999px;
    }

    #loading-progress {
        height: 100%;
    }
}