


/* ============================================================
   EMPLOYEE LOOKUP PAGE
============================================================ */

.employee-lookup-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-color: #1a1a18;
    border-top: 4px solid #f15a24;

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


/* ============================================================
   LEFT SIDEBAR
   Same dimensions / behavior as Office Lookup
============================================================ */

.employee-sidebar {
    width: 280px;
    min-width: 280px;

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

    box-sizing: border-box;

    position: sticky;
    top: 20px;

    align-self: start;
}


/* ============================================================
   SIDEBAR UPPER PANEL
============================================================ */

.employee-sidebar-upperlower {
    width: 100%;

    padding: 18px;

    box-sizing: border-box;

    background-color: #242421;

    border: 1px solid #555;
}


/* ============================================================
   SIDEBAR HEADINGS
============================================================ */

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

    color: #f2f2f2;

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

    line-height: 1.2;
}


/* ============================================================
   SEARCH SECTION
============================================================ */

.employee-sidebar-search {
    width: 100%;

    margin: 0;
    padding: 0;

    box-sizing: border-box;
}


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

.employee-search-box {
    position: relative;

    width: 100%;

    margin-bottom: 14px;
}


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

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

    padding: 0 42px 0 12px;

    box-sizing: border-box;

    background-color: #1a1a18;

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

    outline: none;

    color: #f2f2f2;

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

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

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

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

.employee-search-box input:focus {
    background-color: #20201e;
    border-color: #f15a24;
}


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

.employee-magnify-search {
    position: absolute;

    top: 50%;
    right: 7px;

    width: 30px;
    height: 30px;

    padding: 0;

    transform: translateY(-50%);

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

    background: transparent;

    border: none;

    cursor: pointer;
}

.employee-magnify-search img {
    width: 18px;
    height: 18px;

    display: block;

    object-fit: contain;
}


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

.employee-browse-button {
    width: 100%;
    height: 44px;

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

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

    box-sizing: border-box;

    background-color: #1a1a18;

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

    color: #f2f2f2;

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

    text-align: left;

    cursor: pointer;

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

.employee-browse-button span {
    color: #f15a24;

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

    line-height: 1;
}

.employee-browse-button:hover {
    background-color: #2a2a24;
    border-color: #777;
}

.employee-browse-button:active {
    transform: translateY(1px);
}


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

.employee-divider-line {
    width: 100%;
    height: 1px;

    margin: 18px 0;

    background-color: #555;
}


/* ============================================================
   LETTER FILTER SECTION
============================================================ */

.employee-sidebar-filter {
    width: 100%;

    margin: 0;
    padding: 0;

    box-sizing: border-box;
}


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

.employee-letter-grid {
    width: 100%;

    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 9px;

    box-sizing: border-box;
}


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

.employee-letter-grid button {
    height: 32px;
    min-width: 0;

    padding: 0;

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

    box-sizing: border-box;

    background-color: #1a1a18;

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

    color: #f2f2f2;

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

    cursor: pointer;

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

.employee-letter-grid button:hover {
    background-color: #2a2a24;
    border-color: #888;
}

.employee-letter-grid button:active {
    transform: translateY(1px);
}

.employee-letter-grid button.active {
    background-color: #1a1a18;

    border-color: #f15a24;

    color: #f2f2f2;
}


/* ============================================================
   PUBLIC RECORDS NOTICE
   Same visual treatment as Office Lookup
============================================================ */

.employee-sidebar-notice {
    width: 100%;

    padding: 24px 18px;

    box-sizing: border-box;

    background-color: #141412;

    border: 1px solid rgba(241, 90, 36, 0.7);

    text-align: center;
}


/* ============================================================
   NOTICE ICON
============================================================ */

.employee-sidebar-notice img {
    width: 64px;
    height: 64px;

    margin: 0 auto 16px;

    display: block;

    object-fit: contain;
}


/* ============================================================
   NOTICE HEADING
============================================================ */

.employee-sidebar-notice h4 {
    max-width: 190px;

    margin: 0 auto 14px;

    color: #f15a24;

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

    line-height: 1.25;
}


/* ============================================================
   NOTICE TEXT
============================================================ */

.employee-sidebar-notice p {
    margin: 0 0 12px;

    color: #d0d0d0;

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

    line-height: 1.45;
}

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


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

.employee-content {
    width: 100%;
    min-width: 0;

    margin: 0;
    padding: 0;

    box-sizing: border-box;
}


/* ============================================================
   CONTENT HEADER
   Same as Office Lookup header
============================================================ */

.employee-content-header {
    width: 100%;

    margin: 0 0 20px;
    padding: 0 0 14px;

    box-sizing: border-box;

    border-bottom: 1px solid #555;
}


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

.employee-content-header h1 {
    margin: 0 0 5px;
    padding: 0;

    color: #d7d7d7;

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

    line-height: 1.2;
}


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

.employee-content-header p {
    margin: 0;
    padding: 0;

    color: #aaa;

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

    line-height: 1.3;
}


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

   IMPORTANT:
   DOM order is rendered LEFT -> RIGHT, then next row.

   auto-fill means it will use the available screen width
   rather than forcing exactly five columns.
============================================================ */

.employee-grid {
    width: 100%;

    display: grid;

    grid-template-columns:
        repeat(auto-fill, minmax(220px, 1fr));

    grid-auto-flow: row;

    gap: 10px 12px;

    box-sizing: border-box;
}


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

   Short horizontal boxes like the mockup.
============================================================ */

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

    height: 44px;

    padding: 0 12px;

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

    box-sizing: border-box;

    background-color: #242421;

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

    color: #f2f2f2;

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

    text-decoration: none;

    cursor: pointer;

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


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

.employee-card:hover {
    background-color: #2a2a24;
    border-color: #777;
}

.employee-card:active {
    transform: translateY(1px);
}


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

.employee-name {
    min-width: 0;

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

    color: #f2f2f2;

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


/* ============================================================
   RECORD COUNT

   Always remains on the right edge of the employee box.
============================================================ */

.employee-record-count {
    flex: 0 0 auto;

    color: #f2f2f2;

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

    white-space: nowrap;
}


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

.employee-card:focus-visible,
.employee-browse-button:focus-visible,
.employee-letter-grid button:focus-visible,
.employee-magnify-search:focus-visible {
    outline: 2px solid #f15a24;
    outline-offset: 2px;
}


/* ============================================================
   SMALLER DESKTOP / LAPTOP
============================================================ */

@media (max-width: 1200px) {

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

        gap: 20px;

        padding: 24px 22px 36px;
    }

    .employee-sidebar {
        width: 250px;
        min-width: 250px;
    }

    .employee-sidebar-upperlower {
        padding: 15px;
    }

    .employee-grid {
        grid-template-columns:
            repeat(auto-fill, minmax(190px, 1fr));
    }

}


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

@media (max-width: 800px) {

    .employee-lookup-container {
        display: block;

        width: 100%;

        padding: 20px 16px 32px;
    }

    .employee-sidebar {
        position: static;

        width: 100%;
        min-width: 0;

        margin-bottom: 26px;
    }

    .employee-sidebar-upperlower {
        width: 100%;
    }

    .employee-sidebar-notice {
        display: none;
    }

    .employee-letter-grid {
        grid-template-columns: repeat(9, 1fr);
    }

    .employee-content {
        width: 100%;
    }

    .employee-grid {
        grid-template-columns:
            repeat(auto-fill, minmax(180px, 1fr));
    }

}


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

@media (max-width: 600px) {

    .employee-lookup-container {
        padding: 16px 12px 28px;
    }

    .employee-sidebar {
        gap: 14px;
    }

    .employee-sidebar-upperlower {
        padding: 14px;
    }

    .employee-content-header {
        margin-bottom: 14px;
    }

    .employee-content-header h1 {
        font-size: 15px;
    }

    .employee-content-header p {
        font-size: 11px;
    }

    .employee-letter-grid {
        grid-template-columns: repeat(7, 1fr);
        gap: 7px;
    }

    .employee-letter-grid button {
        height: 34px;
    }


    /* One employee per row on phone */

    .employee-grid {
        grid-template-columns: 1fr;

        gap: 7px;
    }

    .employee-card {
        height: 44px;

        padding: 0 12px;
    }

    .employee-name {
        font-size: 13px;
    }

    .employee-record-count {
        font-size: 12px;
    }

}


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


/* 1366 */
@media (max-width: 1366px) {
    .employee-sidebar {
        background-color: #1a1a18;
        z-index: 100;
    }
}

/* 800 */
@media (max-width: 768px) {
    .employee-sidebar {
        background-color: #1a1a18;
        z-index: 100;
    }

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

}

/* 480 */
@media (max-width: 480px) {
    .employee-sidebar {
        background-color: #1a1a18;
        z-index: 100;
    }


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


    
}


.employee-browse-button {
    text-decoration: none;
}

.employee-browse-button:visited,
.employee-browse-button:hover,
.employee-browse-button:active {
    text-decoration: none;
}