*{
    border:none;
}
img {
    border: none;
}

/* Accessibility: smpApplyUiScalePercent() changes document root font-size — rem/em follow; px does not.
   Main list + profile tables used fixed px for thead/tbody; map to rem so list text scales with UI scale. */
thead {
    font-size: 0.75rem;
    line-height: 1.2;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

tbody {
    font-size: 0.875rem;
}

th,
td {
    padding: 0.875rem 0.625rem;
    white-space: nowrap;
    border-top: 1px solid #ccc;
    text-align: left;
}

/* Common <img width="…"> values (icons): attribute sizes are px — override with rem to match UI scale */
img[width] {
    height: auto;
}
img[width="12"] {
    width: 0.75rem;
}
img[width="14"] {
    width: 0.875rem;
}
img[width="20"] {
    width: 1.25rem;
}
img[width="24"] {
    width: 1.5rem;
}
img[width="28"] {
    width: 1.75rem;
}
img[width="30"] {
    width: 1.875rem;
}
img[width="32"] {
    width: 2rem;
}
img[width="40"] {
    width: 2.5rem;
}



/* Above #taskbar (z-index 10060) and Ovie dock — certificate / dynamic modals */
#dynamicModal.smp-dynamic-modal {
    z-index: 100200 !important;
    pointer-events: none;
}
#dynamicModal.smp-dynamic-modal .modal-dialog {
    pointer-events: auto;
}
body.modal-open .modal-backdrop.show {
    z-index: 100190 !important;
}

/* Ovie voice confirmation — must sit above the raised backdrop (see body.modal-open rule) */
#smpOvieConfirmModal.modal {
    z-index: 100200 !important;
}
#smpOvieConfirmModal.modal .modal-dialog {
    pointer-events: auto;
}

/* smpOpenConfirmModal / smpOpenMessageModal — same stack; default ~1050 sits under body.modal-open backdrop (100190) */
#smpConfirmModal.modal,
#smpMessageModal.modal {
    z-index: 100200 !important;
}
#smpConfirmModal.modal .modal-dialog,
#smpMessageModal.modal .modal-dialog {
    pointer-events: auto;
}

/* Training: cert status is shown via badge/dot in the row — no full-height inset stripe (avoids “green line” in first column) */
#employees-profile .lists tr.clickable-row.smp-training-has-cert .smp-training-select-cell {
    box-shadow: none;
}

/* Employees profile: two cards per row when wide enough; @media (max-width: 1200px) forces one column per row.
   Container query also uses #employees-profile ≥500px; html.smp-ui-scale-emp-profile-1col (135%+ UI scale) forces one column — see smpSyncEmpProfileLayoutClass in globals.js. */
#employees-profile {
    container-type: inline-size;
    container-name: smp-emp-profile;
}
#employees-profile .smp-employee-profile-sections > div {
    min-width: 0;
}
#employees-profile .smp-employee-profile-sections > div .lists {
    overflow-x: auto;
    max-width: 100%;
}
@container smp-emp-profile (min-width: 500px) {
    html:not(.smp-ui-scale-emp-profile-1col) #employees-profile .smp-employee-profile-sections {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.5rem 0.65rem;
        align-items: start;
    }
    html:not(.smp-ui-scale-emp-profile-1col) #employees-profile .smp-employee-profile-sections > div:last-child:nth-child(odd) {
        grid-column: 1 / -1;
    }
}
@supports not (container-type: inline-size) {
    @media (min-width: 992px) {
        html:not(.smp-ui-scale-emp-profile-1col) #employees-profile .smp-employee-profile-sections {
            display: grid;
            grid-template-columns: repeat(2, minmax(0, 1fr));
            gap: 0.5rem 0.65rem;
            align-items: start;
        }
        html:not(.smp-ui-scale-emp-profile-1col) #employees-profile .smp-employee-profile-sections > div:last-child:nth-child(odd) {
            grid-column: 1 / -1;
        }
    }
}
/* Narrow window: one card per row (container query alone can still be >500px with sidebar + main). */
@media screen and (max-width: 1200px) {
    html:not(.smp-ui-scale-emp-profile-1col) #employees-profile .smp-employee-profile-sections {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        gap: 0.5rem 0.65rem;
        align-items: start;
    }
    html:not(.smp-ui-scale-emp-profile-1col) #employees-profile .smp-employee-profile-sections > div:last-child:nth-child(odd) {
        grid-column: auto;
    }
}
/* NFC / class strip (profile row): always full width — exception to two-per-row (see profile.js) */
html:not(.smp-ui-scale-emp-profile-1col) #employees-profile .smp-employee-profile-sections > .smp-employee-profile-section-full-width {
    grid-column: 1 / -1;
}

/* Employees profile: Training section header — drop/paste certificate for Ovie intake */
#employees-training .card-header.smp-training-section-header {
    cursor: default;
    transition:
        box-shadow 0.15s ease,
        outline-color 0.15s ease,
        background-color 0.15s ease;
}
/* Dashed blue + tint: only while dragging a file over (see profile.js --drag), not on hover */
#employees-training .card-header.smp-training-section-header:focus-visible {
    outline: 2px solid rgba(13, 110, 253, 0.45);
    outline-offset: 2px;
}
#employees-training .card-header.smp-training-section-header.smp-training-section-header--drag {
    cursor: copy;
    outline: 2px dashed rgba(13, 110, 253, 0.45);
    outline-offset: 2px;
    background-color: rgba(13, 110, 253, 0.06);
    box-shadow: inset 0 0 0 1px rgba(13, 110, 253, 0.12);
}
/* Paste-from-clipboard is armed via the Paste button (not the drop bar). */
#employees-training .smp-training-paste-btn.smp-training-paste-btn--ready {
    outline: 2px solid rgba(13, 110, 253, 0.85);
    outline-offset: 2px;
    box-shadow: 0 0 0 1px rgba(13, 110, 253, 0.28);
}
#employees-training .card-header.smp-training-section-header.smp-training-header-intake-busy {
    opacity: 1;
    pointer-events: none;
    background-color: rgba(13, 110, 253, 0.06);
    box-shadow: inset 0 0 0 1px rgba(13, 110, 253, 0.15);
}
/* Spinner immediately to the right of the section title (flex-header-left), not beside Paste */
#employees-training .card-header.smp-training-section-header.smp-training-header-intake-busy .flex-header-left {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    flex-wrap: nowrap;
}
#employees-training .card-header.smp-training-section-header.smp-training-header-intake-busy .flex-header-left::after {
    content: "";
    display: inline-block;
    width: 1rem;
    height: 1rem;
    flex-shrink: 0;
    border: 2px solid rgba(13, 110, 253, 0.2);
    border-top-color: rgba(13, 110, 253, 0.92);
    border-radius: 50%;
    animation: spin 0.75s linear infinite;
}

/* Clipboard paste target: off-screen (Bootstrap .sr-only-focusable expands on focus — do not use that class). */
textarea.smp-training-paste-target {
    position: fixed !important;
    left: -9999px !important;
    top: 0 !important;
    width: 1px !important;
    height: 1px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    overflow: hidden !important;
    resize: none !important;
    clip: rect(0, 0, 0, 0) !important;
    clip-path: inset(50%) !important;
    white-space: nowrap !important;
    opacity: 0.01 !important;
    z-index: -1;
}
textarea.smp-training-paste-target:focus {
    position: fixed !important;
    left: -9999px !important;
    width: 1px !important;
    height: 1px !important;
    clip: rect(0, 0, 0, 0) !important;
    overflow: hidden !important;
    opacity: 0.01 !important;
}

/* Training cert intake error — same stacking as #dynamicModal.smp-dynamic-modal */
#smp-training-cert-intake-modal.smp-dynamic-modal {
    z-index: 100200 !important;
    pointer-events: none;
}
#smp-training-cert-intake-modal.smp-dynamic-modal .modal-dialog {
    pointer-events: auto;
}

#employees-profile .lists tr.clickable-row.smp-training-no-cert .smp-training-select-cell {
    box-shadow: none;
}
/* Checkbox only in first column (employees profile training) */
#employees-profile .lists .smp-training-select-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 1.5rem;
    padding: 2px 0;
}
/* Cert status dot + certificate name (TRAINING_ID column) */
#employees-profile .lists .smp-training-name-with-cert {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    min-height: 1.5rem;
    max-width: 100%;
}
#employees-profile .lists .smp-training-name-with-cert .smp-training-id-label {
    min-width: 0;
}
#employees-profile .lists td.smp-training-cert-name-cell {
    vertical-align: middle;
}
/*
 * Training select column — content is `<checkbox> <dot>`; let the column shrink to that.
 * The previous 5.25rem / 7rem floor was sized for the older 14px status image and left a
 * visible gap once the image was replaced by a dot.
 */
#employees-profile .lists thead .smp-training-select-cell,
#employees-profile .lists tbody .smp-training-select-cell {
    width: 1%;
    min-width: 0;
    max-width: none;
    padding-left: 0.4rem;
    padding-right: 0.4rem;
    text-align: center;
    vertical-align: middle;
    box-sizing: border-box;
}
#employees-profile .lists .smp-training-select-cell .smp-main-list-id-cell {
    gap: 0.3rem;
}
#employees-profile .lists .smp-training-select-cell .smp-main-list-note-cell {
    min-width: auto;
}
#employees-profile .lists tbody .smp-training-select-cell {
    display: table-cell;
}
#employees-profile .lists .smp-cert-badge-slot {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    min-width: 0;
}
#employees-profile .lists thead .smp-training-select-cell .smp-list-select-all,
#employees-profile .lists thead th.sticky:first-child .smp-list-select-all {
    margin: 0;
    cursor: pointer;
    vertical-align: middle;
}
/*
 * Training thead `<select-all> + <header dot>` markup uses the same `.smp-main-list-id-cell`
 * + `.smp-main-list-note-cell` + `.smp-main-list-note-dot--header` classes the rest of the
 * platform uses, so it's styled by the global rules below — no per-cell overrides here.
 * Only the gap + note-cell floor are tightened so the column shrinks to content.
 */
/* No left faux-shadow on training select column (avoids a strong vertical edge next to the checkbox) */
#employees-profile .lists .smp-training-select-cell.sticky::before {
    display: none;
}
#employees-profile .lists tr.clickable-row .smp-cert-badge {
    display: inline-block;
    vertical-align: middle;
    margin-left: 0;
    margin-right: 0;
    white-space: nowrap;
}
/*
 * Training cert badge: dot + wrap + tooltip markup is rendered by `smpSetRowCertBadge` and
 * styled by the global `.smp-main-list-note-*` rules (single method shared with hub lists,
 * profile status columns, equipment / inventory transactions, comments). Only training-specific
 * affordance left here is the click-to-upload behavior on the red dot wrap.
 */
.smp-cert-upload-trigger-wrap {
    cursor: pointer;
}
.smp-cert-upload-trigger-wrap:focus-visible {
    outline: 2px solid #31649f;
    outline-offset: 2px;
    border-radius: 50%;
}

/* Checkbox + cert dot: do NOT use display:flex on sticky first column — breaks table layout and z-index vs thead */
.lists td:has(input[type="checkbox"]):has(.smp-cert-badge):not(.sticky),
.resultsTable td:has(input[type="checkbox"]):has(.smp-cert-badge):not(.sticky) {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 0.25rem;
}
#employees-profile .lists tr.clickable-row td:has(input[type="checkbox"]):has(.smp-cert-badge) .smp-cert-badge {
    margin-left: 0;
}

/* This is a more specific rule for selects inside your modal */
#dynamicModal .select2-container {
    width: 100% !important;
}

/* SMP-branded dynamic modal — certificate + overwrite (not default Bootstrap flat buttons) */
#dynamicModal.smp-dynamic-modal .modal-content.smp-modal-content--branded {
    border: none;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 18px 48px rgba(15, 23, 42, 0.18), 0 0 0 1px rgba(49, 100, 159, 0.12);
}
#dynamicModal.smp-dynamic-modal .modal-header.smp-modal-header--branded {
    border-bottom: 1px solid rgba(49, 100, 159, 0.12);
    background: linear-gradient(180deg, #fbfcfe 0%, #eef3f8 100%);
}
#dynamicModal.smp-dynamic-modal .modal-header.smp-modal-header--branded .modal-title {
    font-weight: 700;
    letter-spacing: 0.04em;
    color: #1e3a5f;
}

#dynamicModal.smp-dynamic-modal .modal-footer.smp-modal-footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 18px;
    border-top: 1px solid rgba(49, 100, 159, 0.1);
    background: linear-gradient(180deg, #fafbfd 0%, #e8eef5 100%);
}
#dynamicModal.smp-dynamic-modal .smp-modal-footer__left,
#dynamicModal.smp-dynamic-modal .smp-modal-footer__right {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}
#dynamicModal.smp-dynamic-modal .smp-modal-footer__right {
    margin-left: auto;
}

#dynamicModal.smp-dynamic-modal .smp-modal-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: 10px;
    padding: 9px 16px;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    line-height: 1.2;
    border: 1px solid transparent;
    cursor: pointer;
    transition: background 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease, transform 0.06s ease;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
}
#dynamicModal.smp-dynamic-modal .smp-modal-btn:active {
    transform: translateY(1px);
}
#dynamicModal.smp-dynamic-modal .smp-modal-btn__icon {
    flex-shrink: 0;
    vertical-align: middle;
    opacity: 0.92;
}
#dynamicModal.smp-dynamic-modal .smp-modal-btn__label {
    vertical-align: middle;
}

#dynamicModal.smp-dynamic-modal .smp-modal-btn--muted {
    background: #fff;
    border-color: #c5d0dc;
    color: #334155;
}
#dynamicModal.smp-dynamic-modal .smp-modal-btn--muted:hover {
    background: #f1f5f9;
    border-color: #94a3b8;
}

#dynamicModal.smp-dynamic-modal .smp-modal-btn--neutral {
    background: #fff;
    border-color: #b8c9db;
    color: #1e3a5f;
}
#dynamicModal.smp-dynamic-modal .smp-modal-btn--neutral:hover {
    background: #e8f0fa;
    border-color: #31649f;
}

#dynamicModal.smp-dynamic-modal .smp-modal-btn--danger {
    background: linear-gradient(180deg, #fff5f5 0%, #ffe8e8 100%);
    border-color: #f1aeb5;
    color: #842029;
}
#dynamicModal.smp-dynamic-modal .smp-modal-btn--danger:hover {
    background: #fdd;
    border-color: #dc3545;
}

#dynamicModal.smp-dynamic-modal .smp-modal-btn--primary {
    background: linear-gradient(180deg, #3d7ab8 0%, #2c5f94 100%);
    border-color: #255a8c;
    color: #fff;
    box-shadow: 0 2px 6px rgba(49, 100, 159, 0.35);
}
#dynamicModal.smp-dynamic-modal .smp-modal-btn--primary:hover {
    background: linear-gradient(180deg, #4588c9 0%, #31649f 100%);
}

#dynamicModal.smp-dynamic-modal .smp-modal-btn--accent {
    background: linear-gradient(180deg, #31649f 0%, #254a78 100%);
    border-color: #1e3d5f;
    color: #fff;
    box-shadow: 0 2px 8px rgba(49, 100, 159, 0.4);
}
#dynamicModal.smp-dynamic-modal .smp-modal-btn--accent:hover {
    background: linear-gradient(180deg, #3a73b0 0%, #2d5688 100%);
}

/* Other dynamic modals: same button look, lighter footer strip */
#dynamicModal.smp-dynamic-modal .modal-footer:not(.smp-modal-footer) {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    padding: 12px 16px;
    border-top: 1px solid rgba(49, 100, 159, 0.08);
    background: linear-gradient(180deg, #fcfdff 0%, #f0f4f8 100%);
    gap: 10px;
    justify-content: flex-end;
}



:root {
    --s-blue-color: #31649f; /* Approximate color from your logo's 'S' */
    --ring-base-color: #e0e0e0; /* Light base for the 3D ring */
    --ring-shadow-dark: rgba(0, 0, 0, 0.4);
    --ring-highlight-light: rgba(255, 255, 255, 0.6);
}

/* This is the CSS for the new 80% container and the loader overlay */
#loader-overlay {
    display: none; /* Initially hidden on page load */
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(255, 255, 255, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

/* Loader overlay only — do not target Bootstrap `.container` under #loggedInContainer (would draw a light frame around the whole app). */
#loader-overlay .container {
    width: 100vw;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Blocks interaction until /api/me/permissions reload finishes after socket smp_permissions_changed */
#smp-permissions-sync-overlay {
    position: fixed;
    inset: 0;
    z-index: 100050;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(15, 23, 42, 0.35);
    pointer-events: auto;
    cursor: wait;
}

#smp-permissions-sync-overlay.d-none {
    display: none !important;
}

.static-logo-wrapper {
    position: relative;
    width: 120px;
    height: 120px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.static-logo-wrapper img {
    width: 70%;
    height: auto;
    display: block;
    z-index: 3;
}

.static-ring {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 50%;
    border: 10px solid var(--ring-base-color);
    background-color: var(--ring-base-color);
    z-index: 1;

    box-shadow:
        0 0 0 1px rgba(255,255,255,0.7),
        0 0 0 2px rgba(0,0,0,0.1),
        inset 0 0 0 1px rgba(0,0,0,0.2),
        inset 0 0 0 2px rgba(255,255,255,0.8),
        inset 0 0 10px rgba(0,0,0,0.5);
}

.spinning-arch {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 50%;
    border: 10px solid transparent;
    border-top-color: var(--s-blue-color);
    animation: spin 1.5s linear infinite;
    z-index: 2;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.3);
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}





#map {
    /* Use a fluid width to fill the container */
    width: 100%;
    /* Set a max-width to prevent it from getting too large on desktops */
    max-width: 600px;
    /* Use a flexible height to ensure it is visible on mobile devices */
    height: 450px;
    min-height: 250px; /* A minimum height to ensure it's not too small on desktop */
    border: 1px solid #ccc;
    margin: 20px auto; /* Use auto margins to center the map */

    /* Add a media query to adjust the height for smaller screens */
    @media (max-width: 768px) {
        height: 50vh; /* Use viewport height for a better fit on mobile */
        min-height: 300px; /* A minimum height to ensure it's always visible */
    }
}

.pin-entry-container {
    width: 100%;
    margin: auto;
    font-family: Arial, sans-serif;
    text-align: center;
}

.pin-display {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.pin-digit {
    width: 25px;
    height: 25px;
    border: 1px solid #ccc;
    border-radius: 50%;
    margin: 0 5px;
    background-color: #eee;
}

.pin-digit.filled {
    background-color: #333;
}

.pin-keypad {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.pin-key {
    width: 80px;
    height: 80px;
    border: 1px solid #ccc;
    border-radius: 10px;
    font-size: 24px;
    cursor: pointer;
    background-color: #f9f9f9;
    transition: background-color 0.2s;
}

.pin-key:hover {
    background-color: #e0e0e0;
}

.pin-key:active {
    background-color: #ccc;
}

.pin-key.clear-key {
    font-size: 16px;
    color: #555;
}


.button.color{
    color: #fff;
    text-shadow: 0 1px 0 rgba(0,0,0,.2);
    background-image: linear-gradient(top, rgba(255,255,255,.3),
        rgba(255,255,255,0)),
        url(data:image/png;base64,iVBORw0KGg[...]QmCC);
}

/* Smaller buttons styles */
.button.small{
    padding: 4px 12px;
}

/* Larger buttons styles */
.button.large{
    padding: 12px 30px;
    text-transform: uppercase;
}

.button.large:active{
    top: 2px;
}

/* */

.button.green{
    background-color: #57a957;
    border-color: #57a957;
}

.button.green:hover{
    background-color: #62c462;
}

.button.green:active{
    background: #57a957;
}

/* */

.button.red{
    background-color: #c43c35;
    border-color: #c43c35;
}

.button.red:hover{
    background-color: #ee5f5b;
}

.button.red:active{
    background: #c43c35;
}

/* */

.button.blue{
    background-color: #269CE9;
    border-color: #269CE9;
}

.button.blue:hover{
    background-color: #70B9E8;
}

.button.blue:active{
    background: #269CE9;
}

/* */
/* */
/* */
/* */
/* */

html {
    height: 100%;
    margin: 0;
    padding: 0;
}

/* Fill viewport reliably (100% chain alone leaves dead space under the main shell on some layouts). */
body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
}

#loggedInContainer {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
}

/* Logged-in shell: no page-level scroll — only inner panes (lists, filters, profile) scroll. Keeps footer / Ovie dock visible. */
html.smp-logged-in-shell {
    height: 100%;
    max-height: 100dvh;
    max-height: 100vh;
    overflow: hidden;
}
body.smp-logged-in-shell {
    overflow: hidden;
    max-height: 100%;
}
body.smp-logged-in-shell #loggedInContainer {
    overflow: hidden;
    min-height: 0;
    max-height: 100%;
}
body.smp-logged-in-shell .middle-container {
    width: 100%;
    max-width: 100%;
}

/* Main app shell only — do not merge with `#loader-overlay .container` (loader needs full-viewport centering). */
#loggedInContainer > .container {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
    margin:0px 0px 0px 0px; /*( top right bottom left)  */
    padding:0px 0px 0px 0px; /*( top right bottom left)  */
    background-color: #eee;
    overflow: hidden;

}


.container-header {
    background-color: #eee;
    text-align: center;
    min-width: 100%;
    padding: 0.625rem;

    justify-content: center; /* Center horizontally */
    align-items: center; /* Center vertically */
    border: 1px solid #C9D1DC;
    box-shadow: 0 0 6px rgba(0,0,0,0.25);
    text-align: center;

}

.footer-container{
    position: relative;
    width: calc(100% + 15px);

    background-color: #eee;
    text-align: center;
    min-width: 100%;
    padding: 0.625rem;

    align-items: center; /* Center vertically */
    border: 1px solid #C9D1DC;
    box-shadow: 0 0 6px rgba(0,0,0,0.25);
    text-align: center;

}


.module-footer {
    position: absolute;
    height:100%;
    width: 100%;
    background-color: #eee;
}

.container-header {
    background-color: #eee;
    text-align: center;
    position: sticky; /* Use sticky positioning */
    top: 0; /* Stick to the top */
    z-index: 10; /* Ensure header is on top */
}



.middle-container {
    display: flex;
    flex: 1 1 auto;
    min-height: 0;
    align-items: stretch;
    left:0;
    width: calc(100vw - 0px);
    position: relative; /* anchor absolutely positioned .menu-container (filters sidebar) on mobile */

}

.menu-container{
    width: 280px;
    flex-shrink: 0;
    position: relative;
    min-height: 0;
    align-self: stretch;
    background-color: #fff;
    box-sizing: border-box;
    border: 1px solid #C9D1DC;
    box-shadow: 0 0 6px rgba(0,0,0,0.25);
}

/* Ovie AI Studio chat dock — resizable width on desktop (--ai-chat-sidebar-width set via drag / sessionStorage). */
.ai-chat-sidebar-container {
    width: var(--ai-chat-sidebar-width, min(480px, 34vw));
    min-width: 260px;
    flex-shrink: 0;
    position: relative;
    min-height: 0;
    align-self: stretch;
    background-color: #fff;
    box-sizing: border-box;
    border: 1px solid #C9D1DC;
    box-shadow: 0 0 6px rgba(0,0,0,0.25);
    display: flex;
    flex-direction: row;
    align-items: stretch;
}

/* Narrow hit target between main canvas and chat; drag horizontally to widen or narrow */
@media screen and (min-width: 601px) {
    .ai-chat-sidebar-resize-handle {
        flex: 0 0 8px;
        width: 8px;
        min-width: 8px;
        padding: 0;
        margin: 0;
        border: none;
        border-radius: 0;
        background: transparent;
        cursor: ew-resize;
        touch-action: none;
        align-self: stretch;
        z-index: 3;
        box-sizing: border-box;
    }

    .ai-chat-sidebar-resize-handle:hover,
    .ai-chat-sidebar-resize-handle:focus-visible {
        background-color: rgba(13, 110, 253, 0.12);
    }

    .ai-chat-sidebar-resize-handle.is-active {
        background-color: rgba(13, 110, 253, 0.2);
    }

    html[data-bs-theme="dark"] .ai-chat-sidebar-resize-handle:hover,
    html[data-bs-theme="dark"] .ai-chat-sidebar-resize-handle:focus-visible {
        background-color: rgba(110, 168, 254, 0.18);
    }

    html[data-bs-theme="dark"] .ai-chat-sidebar-resize-handle.is-active {
        background-color: rgba(110, 168, 254, 0.26);
    }
}

@media screen and (max-width: 600px) {
    /* Ovie chat: fixed overlay (like filter column) — does not consume column flow */
    .middle-container.smp-ai-active .ai-chat-sidebar-container {
        position: fixed;
        left: 0;
        right: 0;
        top: 2.8125rem;
        bottom: 2.8125rem;
        width: 100%;
        max-width: none;
        min-width: 0;
        height: auto;
        min-height: 0;
        max-height: none;
        z-index: 1001;
        flex-shrink: 0;
        box-shadow: 0 -6px 28px rgba(0, 0, 0, 0.18);
        flex-direction: column;
    }

    .ai-chat-sidebar-resize-handle {
        display: none;
    }
}


/* On screens that are 992px wide or less, the background color is blue */
@media screen and (max-width: 992px) {
    .menu-container{
        width: 280px;
        box-sizing: border-box;
        position: relative;
    }

}

/* On screens that are 600px wide or less: filter column is an overlay (toggled via #menu_toggle). */
@media screen and (max-width: 600px) {
    /*
     * Must give #menu-container an explicit height: inner .module-menu is position:absolute; height:100%.
     * Without top/bottom (or height), the parent collapses to 0px — the sidebar "does not open" on mobile.
     */
    .menu-container {
        position: absolute;
        left: 0;
        top: 0;
        bottom: 0;
        width: min(100%, 280px);
        max-width: min(92vw, 100%);
        /* Above .ai-chat-sidebar-container when smp-ai-active (1001); below #taskbar (10060). */
        z-index: 1010;
        display: none;
        box-sizing: border-box;
        min-height: 0;
    }
}



/* Drag / drop / paste target only — not plain row selection */
.drop-zone-active {
    outline: 2px dashed #007BFF;
}
.lists tr.clickable-row:focus {
    outline: none;
}
.selected-row {
    background-color: rgba(0, 123, 255, 0.07);
}
/* List shell: fill parent (submodule pane or profile section); inner `.smp-list-table-scroll` scrolls. */
.lists {
    border: 1px solid #C9D1DC;
    box-shadow: 0 0 6px rgba(0, 0, 0, 0.25);
    overflow: auto;
    width: 100%;
    flex: 1 1 auto;
    min-height: 0;
    height: 100%;
    box-sizing: border-box;
}
/* Hub/profile list: flex column; pager/footer flex-shrink 0; table area takes remainder */
.lists.smp-list-lists {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
    height: 100%;
    max-height: none;
    overflow: hidden;
    box-sizing: border-box;
}
.lists.smp-list-lists .smp-list-table-scroll {
    flex: 1 1 auto;
    min-height: 0;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
}
.lists.smp-list-lists .smp-list-table-foot-bar {
    flex: 0 0 auto;
    border-top: 1px solid #ccc;
    border-bottom: 1px solid #ccc;
    padding: 0;
    background-color: #f8f9fa;
    box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.06);
}
.lists.smp-list-lists .smp-list-foot-row {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    width: 100%;
    box-sizing: border-box;
    padding: 0.35rem 0.5rem;
}
.lists.smp-list-lists .smp-list-foot-left,
.smp-main-list-foot-bar .smp-list-foot-left {
    flex: 0 0 auto;
    text-align: left;
}
.lists.smp-list-lists .smp-list-foot-right {
    flex: 0 0 auto;
    margin-left: auto;
    text-align: right;
}
/* Employees → equipment txns: footer pill toggle + thead control row (profile lists + main app list footer) */
.lists.smp-list-lists button.smp-profile-col-toggle-wrap,
.smp-main-list-foot-bar button.smp-profile-col-toggle-wrap {
    display: inline-flex;
    flex-direction: row;
    align-items: center;
    gap: 0;
    margin: 0;
    padding: 0;
    border: none;
    background: transparent;
    font: inherit;
    cursor: pointer;
    user-select: none;
    font-size: 0.8125rem;
    -webkit-appearance: none;
    appearance: none;
}
.lists.smp-list-lists button.smp-profile-col-toggle-wrap:focus,
.lists.smp-list-lists button.smp-profile-col-toggle-wrap:focus-visible,
.smp-main-list-foot-bar button.smp-profile-col-toggle-wrap:focus,
.smp-main-list-foot-bar button.smp-profile-col-toggle-wrap:focus-visible {
    outline: none;
}
.lists.smp-list-lists .smp-profile-col-toggle-ui,
.smp-main-list-foot-bar .smp-profile-col-toggle-ui {
    display: inline-flex;
    flex-shrink: 0;
}
.lists.smp-list-lists .smp-profile-col-toggle-track,
.smp-main-list-foot-bar .smp-profile-col-toggle-track {
    position: relative;
    display: inline-block;
    width: 2.5rem;
    height: 1.35rem;
    border-radius: 999px;
    border: 1px solid #94a3b8;
    background: #cbd5e1;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.08);
    transition: background 0.2s ease, border-color 0.2s ease;
}
.lists.smp-list-lists button.smp-profile-col-toggle-wrap[aria-checked="true"] .smp-profile-col-toggle-track,
.smp-main-list-foot-bar button.smp-profile-col-toggle-wrap[aria-checked="true"] .smp-profile-col-toggle-track {
    background: #3b82f6;
    border-color: #2563eb;
}
.lists.smp-list-lists .smp-profile-col-toggle-thumb,
.smp-main-list-foot-bar .smp-profile-col-toggle-thumb {
    position: absolute;
    top: 2px;
    left: 2px;
    width: calc(1.35rem - 4px);
    height: calc(1.35rem - 4px);
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    transition: left 0.2s ease, right 0.2s ease;
}
.lists.smp-list-lists button.smp-profile-col-toggle-wrap[aria-checked="true"] .smp-profile-col-toggle-thumb,
.smp-main-list-foot-bar button.smp-profile-col-toggle-wrap[aria-checked="true"] .smp-profile-col-toggle-thumb {
    left: auto;
    right: 2px;
}

/* Thead control row: checkbox aligns with column text (match .table cell padding); nudges 5px after checkbox */
.lists.smp-list-lists table thead tr.smp-profile-col-controls-row th.smp-profile-col-ctl,
.smp-list-scroll-host table.resultsTable thead tr.smp-profile-col-controls-row th.smp-profile-col-ctl{
    padding: 0.75rem;
    vertical-align: middle;
    text-align: left;
    background-color: #eef1f4;
    border-bottom: 1px solid #ccc;
    font-weight: normal;
    white-space: nowrap;
}
/* Row-select column: no controls in this row (aligns with sticky checkbox column). */
.lists.smp-list-lists table thead tr.smp-profile-col-controls-row th.smp-profile-col-ctl-static,
.smp-list-scroll-host table.resultsTable thead tr.smp-profile-col-controls-row th.smp-profile-col-ctl-static{
    text-align: center;
}

/* First column: sticky left matches tr.sticky.header th.sticky + tbody td.sticky when toggle is on */
.lists.smp-list-lists table thead tr.smp-profile-col-controls-row th.sticky,
.smp-list-scroll-host table.resultsTable thead tr.smp-profile-col-controls-row th.sticky{
    z-index: 22;
    background-color: #eef1f4;
    background-clip: padding-box;
}

/* User-hidden columns: placeholder th/td stay in the column grid (attribute hidden uses display:none and breaks alignment vs control row). */
.lists.smp-list-lists table thead tr.sticky.header th.smp-profile-col-hidden,
.smp-list-scroll-host table.resultsTable thead tr.sticky.header th.smp-profile-col-hidden,
.lists.smp-list-lists table tbody td.smp-profile-col-hidden,
.smp-list-scroll-host table.resultsTable tbody td.smp-profile-col-hidden{
    box-sizing: border-box;
    padding: 0 !important;
    margin: 0;
    overflow: hidden;
    font-size: 0;
    line-height: 0;
    color: transparent;
    vertical-align: middle;
    min-width: 0;
}

/* Profile lists: `status` is the second frozen column (after row-select); equipment status reuses main-grid dot + tooltip classes */
.lists.smp-profile-lists .smp-list-table-scroll table thead tr.sticky.header th.sticky:first-child:not(.smp-training-select-cell),
.lists.smp-profile-lists .smp-list-table-scroll table tbody td.sticky:first-child:not(.smp-training-select-cell) {
    width: 3.25rem;
    min-width: 3.25rem;
    max-width: 3.25rem;
    box-sizing: border-box;
}
.lists.smp-profile-lists .smp-list-table-scroll table thead tr.smp-profile-col-controls-row th.smp-profile-status-sticky-col,
.lists.smp-profile-lists .smp-list-table-scroll table thead tr.sticky.header th.smp-profile-status-sticky-col,
.lists.smp-profile-lists .smp-list-table-scroll table tbody td.smp-profile-status-sticky-col {
    position: sticky;
    left: 3.25rem;
    z-index: 2;
    box-sizing: border-box;
    vertical-align: middle;
    background-color: var(--bs-body-bg, #fff);
    box-shadow: 1px 0 0 rgba(15, 23, 42, 0.06);
}
html[data-bs-theme="dark"] .lists.smp-profile-lists .smp-list-table-scroll table thead tr.smp-profile-col-controls-row th.smp-profile-status-sticky-col,
html[data-bs-theme="dark"] .lists.smp-profile-lists .smp-list-table-scroll table thead tr.sticky.header th.smp-profile-status-sticky-col,
html[data-bs-theme="dark"] .lists.smp-profile-lists .smp-list-table-scroll table tbody td.smp-profile-status-sticky-col {
    background-color: var(--bs-body-bg, #212529);
    box-shadow: 1px 0 0 rgba(255, 255, 255, 0.08);
}
/*
 * Status dot + tooltip on profile lists' separate `Status` column is fully covered by the
 * class-only `.smp-main-list-note-*` rules below — single method shared across hub, profile,
 * and merged-id-cell renderings. Kept comment for navigation.
 */
/*
 * Sticky select column on hub lists carries the row checkbox + status dot. Profile-card
 * lists (training, comments, equipment / inventory transactions) share the same wrapper
 * markup / classes, so the descendant rules (`.smp-main-list-note-*`) below apply to all
 * of them — one method, one place.
 */
.smp-list-scroll-host table.resultsTable tbody td.smp-main-list-id-sticky-td {
    min-width: 3.25rem;
    white-space: nowrap;
    overflow: visible;
    text-align: left;
    vertical-align: middle;
}
.smp-list-scroll-host table.resultsTable thead tr.sticky.header th.smp-main-list-id-sticky-th {
    min-width: 3.25rem;
    white-space: nowrap;
    vertical-align: middle;
}
.smp-main-list-id-cell {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
}
.smp-main-list-note-wrap {
    position: relative;
    display: inline-block;
    outline: none;
}
.smp-main-list-note-cell {
    cursor: default;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.35rem;
    min-height: 1.35rem;
    padding: 0.1rem;
    line-height: 1;
    vertical-align: middle;
}
.smp-main-list-note-dot {
    display: block;
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
    flex-shrink: 0;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.1);
    transition:
        box-shadow 0.15s ease,
        transform 0.15s ease;
}
.smp-main-list-note-dot--green {
    background: #22c55e;
}
.smp-main-list-note-dot--red {
    background: #ef4444;
}
.smp-main-list-note-dot--header {
    background: #000000;
}
/* While the note tooltip is open, paint this row above following rows (tooltip extends below the tr). */
.smp-list-scroll-host table.resultsTable tbody tr.smp-main-list-note-tr--open {
    position: relative;
    z-index: 4;
}
/*
 * Neutral / placeholder dot — used by profile-card lists that share the same first-column
 * slot (`smp-main-list-id-cell`) for visual alignment but have no row-status semantic
 * (e.g. inventory_transactions, employees_comments). Outline-only so the cell occupies the
 * same width / vertical rhythm as green/red without implying a status.
 */
.smp-main-list-note-dot--neutral,
.lists.smp-profile-lists .smp-list-scroll-host table tbody td.smp-main-list-id-sticky-td .smp-main-list-note-dot--neutral {
    background: transparent;
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.18);
}
.smp-main-list-note-wrap:hover
    .smp-main-list-note-dot,
.smp-main-list-note-wrap:focus-visible
    .smp-main-list-note-dot {
    transform: scale(1.12);
    box-shadow: 0 0 0 2px rgba(13, 110, 253, 0.45);
}
/* Opens to the right of the icon (clears the filter sidebar). Themed via Bootstrap vars (html[data-bs-theme]). */
.smp-main-list-note-tooltip {
    position: absolute;
    left: 100%;
    right: auto;
    top: 50%;
    bottom: auto;
    margin-left: 0.65rem;
    transform: translateY(-50%) translateX(6px);
    z-index: 11000;
    box-sizing: border-box;
    /* min-width 0 + max-width lets long text wrap inside narrow viewports (mobile). */
    min-width: 0;
    width: min(22rem, calc(100vw - 2.5rem));
    max-width: min(22rem, calc(100vw - 2.5rem));
    padding: 0;
    overflow: hidden;
    text-align: left;
    overflow-wrap: anywhere;
    word-wrap: break-word;
    color: var(--bs-body-color, #212529);
    background-color: var(--bs-body-bg, #fff);
    border: 1px solid rgba(15, 23, 42, 0.1);
    border-radius: 6px;
    box-shadow:
        0 10px 15px -3px rgba(15, 23, 42, 0.08),
        0 4px 6px -4px rgba(15, 23, 42, 0.06),
        inset 0 1px 0 rgba(255, 255, 255, 0.85);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition:
        opacity 0.18s ease,
        visibility 0.18s ease,
        transform 0.18s ease,
        background-color var(--smp-theme-ease, 0.24s ease),
        color var(--smp-theme-ease, 0.24s ease),
        border-color var(--smp-theme-ease, 0.24s ease),
        box-shadow var(--smp-theme-ease, 0.24s ease);
}
html[data-bs-theme="dark"]
    .smp-main-list-note-tooltip {
    border-color: rgba(255, 255, 255, 0.12);
    box-shadow:
        0 12px 24px -6px rgba(0, 0, 0, 0.55),
        0 4px 8px -4px rgba(0, 0, 0, 0.45),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
/* Scrollable body keeps long compliance lists inside the panel. */
.smp-main-list-note-tooltip-inner {
    display: block;
    box-sizing: border-box;
    min-width: 0;
    width: 100%;
    max-height: min(40vh, 12.5rem);
    /* Extra right inset so wrapped lines don’t sit flush on the border (~+8px vs left). */
    padding: 0.55rem calc(0.65rem + 8px) 0.55rem 0.65rem;
    overflow-y: auto;
    overflow-x: hidden;
    overscroll-behavior: contain;
    overflow-wrap: anywhere;
    word-wrap: break-word;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: rgba(15, 23, 42, 0.28) transparent;
}
.smp-main-list-note-tooltip-inner::-webkit-scrollbar {
    width: 6px;
}
.smp-main-list-note-tooltip-inner::-webkit-scrollbar-thumb {
    background: rgba(15, 23, 42, 0.22);
    border-radius: 4px;
}
html[data-bs-theme="dark"]
    .smp-main-list-note-tooltip-inner {
    scrollbar-color: rgba(255, 255, 255, 0.28) transparent;
}
html[data-bs-theme="dark"]
    .smp-main-list-note-tooltip-inner::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.22);
}
/* Arrow on left edge, points at the icon (tooltip sits to the right). Triangle fill matches tooltip bg. */
.smp-main-list-note-tooltip::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    margin-left: -8px;
    margin-top: -6px;
    border-width: 6px 8px 6px 0;
    border-style: solid;
    border-color: transparent var(--bs-body-bg, #fff) transparent transparent;
    filter: drop-shadow(-1px 0 0 rgba(15, 23, 42, 0.12));
}
html[data-bs-theme="dark"]
    .smp-main-list-note-tooltip::before {
    filter: drop-shadow(-1px 0 0 rgba(0, 0, 0, 0.35));
}
/* Near bottom of list: flip above the row so the footer / pager does not clip the panel. */
.smp-main-list-note-tooltip--above {
    top: auto;
    bottom: calc(100% + 10px);
    transform: translateX(6px);
}
.smp-main-list-note-tooltip--above::before {
    left: 1rem;
    top: 100%;
    margin-left: 0;
    margin-top: -1px;
    border-width: 8px 7px 0 7px;
    border-color: var(--bs-body-bg, #fff) transparent transparent transparent;
    filter: drop-shadow(0 1px 0 rgba(15, 23, 42, 0.12));
}
html[data-bs-theme="dark"]
    .smp-main-list-note-tooltip--above::before {
    filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.4));
}
/* Near top of list: align to top of icon and extend downward so the sticky header does not cover the panel. */
.smp-main-list-note-tooltip--below {
    top: 0;
    bottom: auto;
    transform: translateX(6px);
}
.smp-main-list-note-tooltip--below::before {
    left: 0;
    top: 0.65rem;
    margin-left: -8px;
    margin-top: 0;
    border-width: 6px 8px 6px 0;
    border-style: solid;
    border-color: transparent var(--bs-body-bg, #fff) transparent transparent;
    filter: drop-shadow(-1px 0 0 rgba(15, 23, 42, 0.12));
}
html[data-bs-theme="dark"]
    .smp-main-list-note-tooltip--below::before {
    filter: drop-shadow(-1px 0 0 rgba(0, 0, 0, 0.35));
}
.smp-main-list-note-tooltip-inner
    .smp-main-list-note-tooltip-line {
    display: block;
    font-size: 0.8125rem;
    font-weight: 500;
    line-height: 1.45;
    letter-spacing: 0.01em;
    color: var(--bs-body-color, #212529);
    min-width: 0;
    overflow-wrap: anywhere;
    word-wrap: break-word;
    word-break: normal;
    hyphens: auto;
    padding: 0.38rem 0;
}
.smp-main-list-note-tooltip-inner
    .smp-main-list-note-tooltip-line--action {
    width: 100%;
    text-align: left;
    font-family: inherit;
    background: transparent;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    box-sizing: border-box;
    -webkit-appearance: none;
    appearance: none;
}
.smp-main-list-note-tooltip-inner
    .smp-main-list-note-tooltip-line--action:hover,
.smp-main-list-note-tooltip-inner
    .smp-main-list-note-tooltip-line--action:focus-visible {
    background: rgba(13, 110, 253, 0.08);
    outline: none;
}
.smp-main-list-note-tooltip-inner
    .smp-main-list-note-tooltip-line
    + .smp-main-list-note-tooltip-line {
    border-top: 1px solid rgba(15, 23, 42, 0.08);
    margin-top: 0;
    padding-top: 0.38rem;
}
html[data-bs-theme="dark"]
    .smp-main-list-note-tooltip-inner
    .smp-main-list-note-tooltip-line
    + .smp-main-list-note-tooltip-line {
    border-top-color: rgba(255, 255, 255, 0.1);
}
/* Mobile: do NOT anchor with right:0 — the containing block is .smp-main-list-note-wrap (dot only);
   that would grow the panel leftward and cover the checkbox + dot. Keep left:100% + width cap + overflow-wrap. */
.smp-main-list-note-wrap:hover
    .smp-main-list-note-tooltip:not(.smp-main-list-note-tooltip--above):not(
        .smp-main-list-note-tooltip--below
    ),
.smp-main-list-note-wrap:focus-within
    .smp-main-list-note-tooltip:not(.smp-main-list-note-tooltip--above):not(
        .smp-main-list-note-tooltip--below
    ) {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(-50%) translateX(0);
}
.smp-main-list-note-wrap:hover
    .smp-main-list-note-tooltip--above,
.smp-main-list-note-wrap:focus-within
    .smp-main-list-note-tooltip--above {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(0);
}
.smp-main-list-note-wrap:hover
    .smp-main-list-note-tooltip--below,
.smp-main-list-note-wrap:focus-within
    .smp-main-list-note-tooltip--below {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(0);
}

/* Profile lists: status — narrow column (content + padding only, no extra stretch) */
.lists.smp-list-lists table thead th[data-column-key="status"],
.smp-list-scroll-host table.resultsTable thead th[data-column-key="status"],
.lists.smp-list-lists table tbody td.smp-profile-col-status,
.smp-list-scroll-host table.resultsTable tbody td.smp-profile-col-status{
    width: 0.1%;
    white-space: nowrap;
    box-sizing: border-box;
}
/* Control row needs full width of checkbox + nudges — avoid squeeze/overlap vs narrow header */
.lists.smp-list-lists table thead tr.smp-profile-col-controls-row th[data-column-key="status"],
.smp-list-scroll-host table.resultsTable thead tr.smp-profile-col-controls-row th[data-column-key="status"]{
    width: auto;
    min-width: max-content;
}
.lists.smp-list-lists table thead tr.sticky.header th[data-column-key="status"],
.smp-list-scroll-host table.resultsTable thead tr.sticky.header th[data-column-key="status"]{
    text-align: left;
}
.lists.smp-list-lists table tbody td.smp-profile-col-status,
.smp-list-scroll-host table.resultsTable tbody td.smp-profile-col-status{
    text-align: center;
    vertical-align: middle;
}
.lists.smp-list-lists table tbody td.smp-profile-col-status img,
.smp-list-scroll-host table.resultsTable tbody td.smp-profile-col-status img{
    display: inline-block;
    vertical-align: middle;
}
.lists.smp-list-lists table thead tr.smp-profile-col-controls-row .smp-profile-col-ctl-inner,
.smp-list-scroll-host table.resultsTable thead tr.smp-profile-col-controls-row .smp-profile-col-ctl-inner{
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    /* After checkbox: 8px (2× gap between ‹ ›) before left nudge; keeps clear of Bootstrap form-check margins */
    gap: 8px;
    width: 100%;
    min-width: min-content;
    box-sizing: border-box;
}
.lists.smp-list-lists table thead tr.smp-profile-col-controls-row .smp-profile-col-ctl-left,
.smp-list-scroll-host table.resultsTable thead tr.smp-profile-col-controls-row .smp-profile-col-ctl-left{
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding-left: 0;
    flex-shrink: 0;
}
.lists.smp-list-lists table thead tr.smp-profile-col-controls-row .smp-profile-col-ctl-right,
.smp-list-scroll-host table.resultsTable thead tr.smp-profile-col-controls-row .smp-profile-col-ctl-right{
    flex: 0 0 auto;
    display: inline-flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 4px;
    flex-shrink: 0;
}
.lists.smp-list-lists table thead tr.smp-profile-col-controls-row .smp-profile-col-visible,
.smp-list-scroll-host table.resultsTable thead tr.smp-profile-col-controls-row .smp-profile-col-visible{
    width: 1rem;
    height: 1rem;
    margin: 0;
    flex-shrink: 0;
    margin-left: 0;
    float: none;
    position: relative;
    vertical-align: middle;
}
.lists.smp-list-lists table thead tr.smp-profile-col-controls-row .smp-profile-col-nudge,
.smp-list-scroll-host table.resultsTable thead tr.smp-profile-col-controls-row .smp-profile-col-nudge,
.lists.smp-list-lists .smp-list-pager-prev,
.lists.smp-list-lists .smp-list-pager-next {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.65rem;
    height: 1.5rem;
    padding: 0 0.3rem;
    margin: 0;
    border: 1px solid #0d6efd;
    border-radius: 6px;
    background: #fff;
    color: #0d6efd;
    line-height: 1;
    cursor: pointer;
    box-sizing: border-box;
    transition: background 0.15s ease, color 0.15s ease;
}
.lists.smp-list-lists table thead tr.smp-profile-col-controls-row .smp-profile-col-nudge:hover:not(:disabled),
.smp-list-scroll-host table.resultsTable thead tr.smp-profile-col-controls-row .smp-profile-col-nudge:hover:not(:disabled),
.lists.smp-list-lists .smp-list-pager-prev:hover:not(:disabled),
.lists.smp-list-lists .smp-list-pager-next:hover:not(:disabled) {
    background: rgba(13, 110, 253, 0.08);
}
.lists.smp-list-lists table thead tr.smp-profile-col-controls-row .smp-profile-col-nudge:disabled,
.smp-list-scroll-host table.resultsTable thead tr.smp-profile-col-controls-row .smp-profile-col-nudge:disabled,
.lists.smp-list-lists .smp-list-pager-prev:disabled,
.lists.smp-list-lists .smp-list-pager-next:disabled {
    opacity: 0.38;
    cursor: not-allowed;
}
.lists.smp-list-lists table thead tr.smp-profile-col-controls-row .smp-profile-col-nudge-icon,
.smp-list-scroll-host table.resultsTable thead tr.smp-profile-col-controls-row .smp-profile-col-nudge-icon,
.lists.smp-list-lists .smp-list-pager .smp-profile-col-nudge-icon {
    font-size: 1.05rem;
    font-weight: 600;
    line-height: 1;
    display: block;
}


/* Fills #menu-container; overflow scrolls tall filter lists downward inside the column (no in-flow min-height — avoids blank band above filters). */
.module-menu {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    box-sizing: border-box;
    padding-right:10px;
    background-color: #fff;
    padding-left:20px;
}

/* AI Studio: keep the left column from scrolling as a whole; inner chat log scrolls instead. */
#ai-menu.module-menu {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    min-height: 0;
    /* Match .module-menu horizontal inset (20px left) so the Ovie banner isn’t flush to the header line */
    padding-top: 20px;
}

#ai-menu.module-menu #ai-menu-filters {
    flex: 1 1 auto;
    min-height: 0;
    overflow: auto;
}

/* Ovie chat sidebar inner: fills remaining width beside resize handle (.ai-chat-sidebar-container is flex row on desktop). */
.ai-chat-sidebar-inner {
    flex: 1 1 auto;
    min-width: 0;
    width: auto;
    position: relative;
    height: auto;
    min-height: 0;
    align-self: stretch;
    box-sizing: border-box;
    padding-right: 10px;
    padding-left: 20px;
    padding-top: 20px;
    background-color: #fff;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

@media screen and (max-width: 600px) {
    .ai-chat-sidebar-inner {
        flex: 1 1 auto;
        min-height: 0;
    }
}
.module-body {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: #fff;
    display: flex;
    justify-content: center;
}



.body-container {
    flex: 1 1 auto;
    min-height: 0;
    position: relative;
}



/* Every sub-app pane: fill `#module-body`; scroll inside children — same contract for all modules (no per-module list CSS). */
.submodule-body {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    box-sizing: border-box;
    background-color: #fff;
    display: flex;
    flex-direction: column;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}
/* Single root (e.g. employees profile `smp-employee-profile-sections`, iframe host): fills pane and scrolls vertically */
.submodule-body > *:only-child {
    flex: 1 1 auto;
    min-height: 0;
    min-width: 0;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
}
/* Hub/profile list shell: table area scrolls; footer stays visible — no outer pane scroll */
.submodule-body.smp-list-scroll-host,
.submodule-body.lists.smp-list-lists {
    overflow: hidden;
}

/* Bookkeeper → Report: summary rows keep natural height; transaction rules fills remainder */
#bookkeeper-report.submodule-body {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
#bookkeeper-report.submodule-body > .container-fluid.smp-bookkeeper {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
#bookkeeper-report .smp-bookkeeper > .row {
    flex: 0 0 auto;
}
#bookkeeper-report .smp-bookkeeper-report-rules {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
#bookkeeper-report .smp-bookkeeper-report-rules > h6,
#bookkeeper-report .smp-bookkeeper-report-rules > p {
    flex: 0 0 auto;
}
#bookkeeper-report .smp-bookkeeper-report-rules > .smp-list-table-scroll {
    flex: 1 1 auto;
    min-height: 0;
}

.dropbtn {
    padding: 1rem;
    font-size: 1rem;
}

/*
 * Taskbar module icons: inactive = translucent; active = full opacity only.
 * No pill, ring, or border — only opacity differs. Apps menu stays full opacity.
 * `#menu_toggle` (tenant logo, left) is unchanged.
 * (see `smpRefreshTaskbarAppHighlight` in modules.js)
 */
#taskbar .module-apps:not(.smp-taskbar-apps-menu):not(.smp-taskbar-active) > .dropbtn {
    opacity: 0.42;
    filter: none;
    background: transparent !important;
    box-shadow: none !important;
    border: none !important;
    border-radius: 4px;
    transition: opacity 0.15s ease;
}
#taskbar .module-apps:not(.smp-taskbar-apps-menu):not(.smp-taskbar-active) > .dropbtn:hover {
    opacity: 0.62;
    background: transparent !important;
    box-shadow: none !important;
}
#taskbar .module-apps.smp-taskbar-active > .dropbtn {
    opacity: 1;
    background: transparent !important;
    box-shadow: none !important;
    border: none !important;
    border-radius: 4px;
    transition: opacity 0.15s ease;
}

/* Submodule footer icons: non-active translucent, active full */
#footer-container .module-footer img.smp-subtask-icon {
    opacity: 0.42;
    transition: opacity 0.15s ease;
}
#footer-container .module-footer img.smp-subtask-icon.smp-subtask-active {
    opacity: 1;
}
#taskbar .module-apps.smp-taskbar-active > .dropbtn:hover {
    opacity: 1;
    background: transparent !important;
    box-shadow: none !important;
}
/* Far-right apps grid: always full color */
#taskbar .module-apps.smp-taskbar-apps-menu > .dropbtn {
    opacity: 1;
    background: transparent !important;
    box-shadow: none !important;
    border: none !important;
    border-radius: 4px;
    transition: opacity 0.15s ease;
    padding: 4px 6px;
    box-sizing: border-box;
    max-height: 2.75rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
#taskbar .module-apps.smp-taskbar-apps-menu > .dropbtn:hover {
    opacity: 1;
    background: transparent !important;
    box-shadow: none !important;
}

.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #fff;
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 10050;
    border: 1px solid #CCC;
    border-radius: 3px;
    text-align: left;
}

#taskbar {
    position: relative;
    overflow: visible;
    z-index: 10060;
}

/*
 * App taskbar + subtaskbar: grow with scaled icons (Accessibility → Interface size).
 * HTML used fixed 45px height; rem min-height tracks root font-size with the rest of the UI.
 */
#taskbar.smp-app-taskbar {
    display: flex;
    box-sizing: border-box;
    width: 100%;
    min-height: 2.8125rem; /* 45px at 100% base */
    height: auto;
    flex-shrink: 0;
}

#footer-container.smp-app-subtaskbar {
    display: flex;
    align-items: center;
    box-sizing: border-box;
    min-height: 2.8125rem;
    height: auto;
    gap: 0.5rem;
    flex-shrink: 0;
    flex-wrap: nowrap;
    min-width: 0;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    scrollbar-width: thin;
    scroll-behavior: smooth;
}
#footer-container.smp-app-subtaskbar::-webkit-scrollbar {
    height: 4px;
}
#footer-container.smp-app-subtaskbar::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.25);
    border-radius: 2px;
}

/* Taskbar: keep tenant logo on the left in-flow so module strips don’t cover taps (mobile). */
#taskbar.container-header {
    justify-content: flex-start;
    align-items: center;
    gap: 2px;
    flex-wrap: nowrap;
}

/* Center strip: open module task icons only (global apps menu lives in #smp-taskbar-apps-slot).
   Each task icon hosts a `.dropdown-content` submodule menu (position: absolute below the
   icon), so the cluster must keep `overflow: visible` — otherwise CSS clips the menus the
   moment they extend below the icon row.  Icons wrap onto additional rows on narrow viewports
   instead of horizontally scrolling. */
#smp-taskbar-app-cluster.smp-taskbar-app-cluster {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: safe center;
    gap: 2px;
    position: relative;
    z-index: 1;
    overflow: visible;
}

#smp-taskbar-app-cluster > [id$="-task"] {
    flex: 0 0 auto;
    min-width: 0;
    position: relative;
    z-index: 1;
}

/* Far right: global apps menu only (not part of the center app-cluster). */
#smp-taskbar-apps-slot.smp-taskbar-apps-slot {
    flex: 0 0 auto;
    margin-left: auto;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    min-width: 0;
}

/* Apps + fullscreen strip: in-flow layout inside taskbar (no absolute/top hack). */
#taskbar #settings-task {
    flex: 0 0 auto;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    min-width: 0;
}

/* My profile row in apps menu: distinct from Employees app icon */
.smp-app-menu-my-profile-icon {
    vertical-align: middle;
    object-fit: contain;
}

/* Tenant logo / filter toggle: button hit target ≥44px; img does not steal pointer events */
#menu_toggle.smp-taskbar-menu-toggle {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    min-width: 2.75rem;
    min-height: 2.75rem;
    padding: 4px 8px;
    margin: 0;
    border: none;
    background: transparent;
    cursor: pointer;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    position: relative;
    z-index: 10061;
}

#menu_toggle.smp-taskbar-menu-toggle:focus-visible {
    outline: 2px solid #0d6efd;
    outline-offset: 2px;
}

.smp-taskbar-menu-toggle__img {
    display: block;
    width: 5rem;
    height: auto;
    max-height: 2rem;
    object-fit: contain;
    pointer-events: none;
}

/* Filter sidebar + Sumo: match Bootstrap form-control-sm height and border */
form[id$="-menu-filters"] .form-control,
form[id$="-menu-filters"] select.form-select,
.SumoSelect > .CaptionCont {
    min-height: calc(1.5em + 0.5rem + 2px);
    border-radius: 0.375rem;
    border-color: var(--bs-border-color, #ced4da);
}

/* Profile / module body: consistent border + radius with Bootstrap inputs */
.module-body .form-control:not(textarea),
.module-body .form-select {
    border-color: var(--bs-border-color, #ced4da);
    border-radius: 0.375rem;
}

/* Filter column + profile cards: tight label stack (override Bootstrap .form-label mb-3 / 0.5rem) */
form[id$="-menu-filters"] label.form-label,
form.profile_form label.form-label {
    padding-top: 10px;
    margin-bottom: 2px;
}

#smp-apps.dropdown-content {
    min-width: min(360px, calc(100vw - 16px));
    width: max-content;
    max-width: calc(100vw - 8px);
    box-sizing: border-box;
    overflow: visible;
}

.dropdown-content .app-menu-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    column-gap: 1rem;
    padding: 8px 10px;
    box-sizing: border-box;
}

.dropdown-content .app-menu-row .app-menu-label {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    min-width: 0;
}

.dropdown-content .app-menu-row .app-menu-shortcut {
    color: #888888;
    font-size: 0.75rem;
    font-family: system-ui, "Segoe UI", Tahoma, sans-serif;
    letter-spacing: 0.02em;
    white-space: nowrap;
    justify-self: end;
    text-align: right;
}

@media screen and (max-width: 600px) {
    .dropdown-content .app-menu-row .app-menu-shortcut {
        display: none;
    }
}

.dropdown-content > div:not(.app-menu-row) {
    padding: 10px;
}

/* Taskbar module menus (not #smp-apps rows): keep icon + label on one line */
.dropdown.module-apps > .dropdown-content > div:not(.app-menu-row) {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.4rem;
    flex-wrap: nowrap;
}

/* Only size icons that omit width="…"; otherwise global img[width="N"] rules (rem) apply and track UI scale. */
.dropdown.module-apps > .dropdown-content > div:not(.app-menu-row) img:not([width]) {
    flex-shrink: 0;
    width: 1.25rem;
    height: auto;
    vertical-align: middle;
}

.dropdown-content img:not([width]) {
    width: 1.25rem;
    height: auto;
}
.dropdown-content > div:hover,
.dropdown-content .app-menu-row:hover {
    background-color: #f0f0f0;
    cursor: pointer;
}

.dropdown-content .app-menu-theme-row:hover {
    cursor: default;
}
.dropdown-content .app-menu-theme-row .app-menu-theme-slot {
    justify-self: end;
    min-width: 0;
}
.dropdown-content .app-menu-theme-row .form-check {
    min-height: 0;
    margin-bottom: 0;
}
.dropdown-content .app-menu-theme-row .form-check-input {
    cursor: pointer;
}

/* App-wide: switch toggles — off grey, on blue (Bootstrap form-switch + CSS vars when present) */
.form-check.form-switch .form-check-input {
    --bs-form-switch-bg: #cbd5e1;
    background-color: #cbd5e1;
    border-color: #94a3b8;
}
.form-check.form-switch .form-check-input:focus {
    --bs-form-switch-bg: #cbd5e1;
    border-color: #94a3b8;
}
.form-check.form-switch .form-check-input:checked {
    --bs-form-switch-bg: #3b82f6;
    background-color: #3b82f6;
    border-color: #2563eb;
}
.form-check.form-switch .form-check-input:checked:focus {
    --bs-form-switch-bg: #3b82f6;
    border-color: #2563eb;
}
.dropdown-content .app-menu-theme-row label.app-menu-label {
    cursor: pointer;
    margin-bottom: 0;
}

/* This is the class that will be toggled by the JavaScript */
.dropdown-content.show {
    display: block;
}

.dropup {
    position: absolute;
    left: 5px;
    z-index: 10000;
    border: none !important;
    box-shadow: none !important;

}

.dropup-content {
    display: none;
    position: absolute;
    background-color: #ffffff;
    min-width: 160px;
    box-shadow: 0px -10px 20px rgba(0, 0, 0, 0.3);
    z-index: 10;
    border-radius: 5px;
    border: 1px solid #ccc;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
}

.dropup-content::before {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-width: 10px 10px 0 10px;
    border-style: solid;
    border-color: #ffffff transparent transparent transparent;
}

.dropup-content a {
    color: black;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
}

.dropup-content a:hover {
    background-color: #f0f0f0;
}

.dropup:hover .dropup-content {
    display: block;
}

.dropup:hover .dropbtn {
    /* Optional: Change button appearance on hover */
}




.table-wrapper {
    height: 100%;
    width: 33%;
    border: 1px solid #C9D1DC;
    overflow: auto;
}




table {
    border-spacing: 0;
}

tr:last-child td {
    border-bottom: none;
}

/* Global rule above removes last-row bottom border; profile `.lists` tables need it (esp. single-row). */
.lists table tbody tr:last-child td {
    border-bottom: 1px solid #ccc;
}

.resultsTable{
    width:100%;

}

/* Sticky header must paint above sticky body cells (tbody follows thead in DOM) */
.resultsTable thead {
    position: relative;
    z-index: 20;
}
.resultsTable tbody {
    position: relative;
    z-index: 0;
}

/* Scrolling cells paint after sticky cells in DOM order; keep them under the frozen column */
.resultsTable tbody td:not(.sticky) {
    position: relative;
    z-index: 0;
}
/* Filtered list: hover uses solid fills so sticky column does not show scrolling rows through it */
.resultsTable tbody tr:hover td:not(.sticky) {
    background-color: #e8f0fe !important;
}
.resultsTable tbody tr:nth-child(odd) td.sticky {
    background-color: #fff;
    z-index: 2;
}
.resultsTable tbody tr:nth-child(even) td.sticky {
    background-color: #f0efef;
    z-index: 2;
}
.resultsTable tbody tr:hover td.sticky {
    background-color: #dbe8fd !important;
    z-index: 2;
}

/* Context menu for filtered list rows */
.smp-list-context-menu {
    position: fixed;
    z-index: 100250; /* above modals/backdrops/taskbar */
    min-width: 190px;
    background: #fff;
    border: 1px solid rgba(0,0,0,0.14);
    border-radius: 10px;
    box-shadow: 0 14px 32px rgba(0,0,0,0.22);
    padding: 6px;
    display: none;
}
.smp-list-context-menu__item {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 8px 10px;
    border-radius: 8px;
    border: 0;
    background: transparent;
    cursor: pointer;
    font-size: 0.875rem;
    text-align: left;
}
.smp-list-context-menu__item:hover {
    background: rgba(13, 110, 253, 0.10);
}
.smp-list-context-menu__muted {
    opacity: 0.75;
    font-size: 0.75rem;
    padding: 6px 10px 2px;
}
.smp-list-context-menu__divider {
    height: 1px;
    margin: 6px 4px;
    background: rgba(0, 0, 0, 0.1);
    border: 0;
}
.smp-list-context-menu__sub {
    position: relative;
}
.smp-list-context-menu__sub > .smp-list-context-menu__sub-trigger {
    width: 100%;
    justify-content: space-between;
    border-radius: 8px;
}
.smp-list-context-menu__sub > .smp-list-context-menu__sub-trigger::after {
    content: "\203A";
    opacity: 0.55;
    font-size: 1.1em;
    margin-left: 6px;
}
.smp-list-context-menu__flyout {
    display: none;
    position: absolute;
    left: calc(100% - 1px);
    top: 0;
    transform: translateY(-6px);
    margin-left: 0;
    min-width: 200px;
    max-width: min(280px, calc(100vw - 16px));
    z-index: 3;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.14);
    border-left-color: rgba(0, 0, 0, 0.1);
    border-radius: 0 10px 10px 10px;
    box-shadow: 4px 4px 16px rgba(0, 0, 0, 0.12);
    padding: 4px 6px;
}
/* JS adds this when the flyout would overflow the right edge of the viewport (narrow / mobile). */
.smp-list-context-menu__flyout.smp-list-context-menu__flyout--left {
    left: auto;
    right: calc(100% - 1px);
    border-radius: 10px 0 10px 10px;
    box-shadow: -4px 4px 16px rgba(0, 0, 0, 0.12);
    border-left-color: rgba(0, 0, 0, 0.14);
    border-right-color: rgba(0, 0, 0, 0.1);
}
.smp-list-context-menu__sub:hover .smp-list-context-menu__flyout,
.smp-list-context-menu__flyout:hover {
    display: block;
}
.smp-list-context-menu__flyout-item {
    padding-left: 10px;
    padding-right: 10px;
    border-radius: 6px;
}

.smp-list-sortable {
    cursor: pointer;
    user-select: none;
}
/* Sortable but not active: one muted triangle; size ~3/4 of header label (em = th font-size). */
.smp-list-sortable:not(.smp-list-sort-active)::before {
    content: none;
}
.smp-list-sortable:not(.smp-list-sort-active)::after {
    content: "\25BC";
    font-size: 1.2em;
    line-height: 1;
    margin-left: 0.35rem;
    vertical-align: 0.08em;
    display: inline;
    opacity: 0.55;
    color: rgba(108, 117, 125, 0.9);
}
/* Active column: header label stays body text; only ::after triangle is primary blue (avoid inheriting link/primary). */
.resultsTable thead th.smp-list-sort-active,
.lists table thead th.smp-list-sort-active {
    color: var(--bs-body-color, #212529);
}
.smp-list-sort-active::before {
    content: none;
}
.smp-list-sort-active[data-sort-dir="asc"]::after {
    content: "\25B2";
    font-size: 1.2em;
    line-height: 1;
    margin-left: 0.35rem;
    vertical-align: 0.08em;
    display: inline;
    text-transform: none;
    opacity: 1;
    color: var(--bs-primary, #0d6efd);
}
.smp-list-sort-active[data-sort-dir="desc"]::after {
    content: "\25BC";
    font-size: 1.2em;
    line-height: 1;
    margin-left: 0.35rem;
    vertical-align: 0.08em;
    display: inline;
    text-transform: none;
    opacity: 1;
    color: var(--bs-primary, #0d6efd);
}
/* List sub-app: host may also have `.smp-list-scroll-host` + `.lists.smp-list-lists` — flex/overflow now live on `.submodule-body` above */
.smp-list-table-scroll {
    flex: 1 1 auto;
    min-height: 0;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
}
.smp-list-pager-host {
    flex: 0 0 auto;
    background: #fff;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    padding: 6px 10px 8px;
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.06);
    z-index: 4;
}
.smp-list-pager {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 0;
    width: 100%;
    box-sizing: border-box;
}
.smp-list-page-input {
    width: 70px;
    height: 31px;
}
.smp-list-page-size-wrap {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 0;
}
@media screen and (max-width: 576px) {
    .smp-list-pager {
        justify-content: flex-end;
        row-gap: 6px;
    }
    .smp-list-pager-range {
        width: 100%;
        text-align: right;
        font-size: 0.8125rem;
    }
    .smp-list-page-input {
        width: 56px;
    }
}
/* Sticky filter header (Submit + options) */
.smp-module-filter-header {
    position: sticky;
    top: 0;
    z-index: 6;
    background: #fff;
    padding: 10px 0 12px;
    margin: 0 0 10px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.04);
}
.smp-module-filter-actions-row {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    flex-wrap: wrap;
    width: 100%;
}
.smp-employees-filter-actions {
    justify-content: space-between;
}
/* Profile-card-style icon tiles: clear.png, folder.png, submit.png (menu filter apply) */
form[id$="-menu-filters"] .smp-profile-card-icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    padding: 0;
    margin: 0;
    border: 1px solid rgba(0, 0, 0, 0.22);
    border-radius: 4px;
    background: #fff;
    cursor: pointer;
    line-height: 0;
    box-sizing: border-box;
    vertical-align: middle;
    -webkit-appearance: none;
    appearance: none;
}
form[id$="-menu-filters"] .smp-profile-card-icon-btn:hover {
    background: #f8f9fa;
    border-color: rgba(0, 0, 0, 0.32);
}
form[id$="-menu-filters"] .smp-profile-card-icon-btn:focus-visible {
    outline: 2px solid var(--bs-primary, #0d6efd);
    outline-offset: 2px;
}
form[id$="-menu-filters"] .smp-profile-card-icon-btn img {
    display: block;
    width: 24px;
    height: 24px;
    object-fit: contain;
    pointer-events: none;
}
.smp-filter-submit-wrap .smp-filter-submit:not(.smp-profile-card-icon-btn) {
    min-width: 5.5rem;
    font-weight: 600;
}
form[id$="-menu-filters"] .smp-filter-submit-wrap .smp-filter-submit.smp-profile-card-icon-btn.smp-filter-submit--icon {
    min-width: 0;
}
form[id$="-menu-filters"] .smp-filter-submit-wrap .smp-filter-submit-icon {
    display: block;
    object-fit: contain;
    vertical-align: middle;
}
form[id$="-menu-filters"] .smp-filter-training-gap.smp-profile-card-icon-btn {
    color: var(--bs-secondary-color, #495057);
}
/* Employees: folder — missing at least one training certificate file */
form[id$="-menu-filters"] .smp-filter-training-gap.smp-profile-card-icon-btn.smp-filter-training-gap--on {
    background-color: var(--bs-primary, #0d6efd);
    border-color: var(--bs-primary, #0d6efd);
    color: #fff;
}
form[id$="-menu-filters"] .smp-filter-training-gap.smp-profile-card-icon-btn.smp-filter-training-gap--on .smp-filter-training-gap-icon {
    filter: brightness(0) invert(1);
}
form[id$="-menu-filters"] .smp-filter-training-gap.smp-filter-training-gap--busy {
    opacity: 0.55;
    pointer-events: none;
}
/* Training list filter: heading left, mode checkbox right (no .form-check-input — its float breaks flex) */
#employees-menu-filters .smp-training-filter-label-row {
    display: flex !important;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    width: 100%;
    box-sizing: border-box;
}
#employees-menu-filters .smp-training-filter-label-row .smp-training-filter-heading {
    flex: 1 1 auto;
    min-width: 0;
}
#employees-menu-filters .smp-training-filter-label-row .smp-training-filter-check-wrap {
    flex: 0 0 auto;
    margin-left: auto;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 5px;
}
#employees-menu-filters .smp-training-filter-label-row .smp-training-filter-mode-check {
    float: none !important;
    margin: 0 !important;
    width: 1.125em;
    height: 1.125em;
    cursor: pointer;
    vertical-align: middle;
    accent-color: var(--bs-primary, #0d6efd);
}
/* Inactive pill toggle (employees list filter): icon-only, no caption */
.smp-inactive-pill-wrap--solo {
    display: inline-flex;
    align-items: center;
}

/* Employees filter (inactive list): off = blue; on = platform grey track */
#employees-menu-filters .smp-inactive-pill__track {
    background: #0d6efd;
}
#employees-menu-filters .smp-inactive-pill__input:checked + .smp-inactive-pill__track {
    background: #ced4da;
}

/* Inactive pill toggle (employees) */
.smp-inactive-pill-wrap {
    display: flex;
    align-items: center;
}
.smp-inactive-pill {
    display: inline-flex;
    align-items: center;
    gap: 0;
    cursor: pointer;
    user-select: none;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    transition: none;
}
.smp-inactive-pill__input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    margin: 0;
}
.smp-inactive-pill__track {
    width: 2.25rem;
    height: 1.25rem;
    border-radius: 999px;
    background: #ced4da;
    position: relative;
    flex-shrink: 0;
    transition: background 0.2s ease;
}
.smp-inactive-pill__knob {
    position: absolute;
    top: 2px;
    left: 2px;
    width: calc(1.25rem - 4px);
    height: calc(1.25rem - 4px);
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s ease;
}
.smp-inactive-pill__input:checked + .smp-inactive-pill__track {
    background: #0d6efd;
}
.smp-inactive-pill__input:checked + .smp-inactive-pill__track .smp-inactive-pill__knob {
    transform: translateX(1rem);
}
.smp-inactive-pill__input:focus-visible + .smp-inactive-pill__track {
    outline: 2px solid rgba(13, 110, 253, 0.45);
    outline-offset: 2px;
}
/*
STICKY ROW
Normal css box-shadow works for the header as it is a single html element
*/

tr.sticky {
    position: sticky;
    top: 0;
    /* z-index on <tr> created a weak stacking context; th/td z-index handles order */
    background: #f5f5f5;
    box-shadow: 0 0 6px rgba(0,0,0,0.25);
}
/* Top-left: both sticky top + left — must sit above tbody sticky cells and other th */
.resultsTable thead tr.sticky th.sticky {
    z-index: 22;
}
.resultsTable thead th {
    position: sticky;
    top: 0;
    z-index: 21;
    background: #f5f5f5;
    /* Block sub-pixel bleed of scrolling body text along the top edge of the header */
    box-shadow: inset 0 2px 0 #f5f5f5;
}


/*
STICKY COLUMN
Avoid undesirable overlapping shadows by creating a faux shadow on the ::after psudo-element instead of using the css box-shadow property.
*/

th.sticky,
td.sticky {
    position: sticky;
    left: 0;
    background: #f5f5f5;
    width: 20px;
    /* Base z-index; lists/resultsTable tbody td.sticky use 2; thead th 21+ */
    z-index: 2;
    background-clip: padding-box;
}

/* List results: body sticky column above scrolling cells (z 0) and note tooltip lift (z 1); under thead (z 21+) */
.resultsTable tbody td.sticky {
    z-index: 2;
}

/* Profile / upload tables (.lists): same sticky stacking as .resultsTable — was missing so body col painted over thead */
.lists table thead {
    position: relative;
    z-index: 20;
}
.lists table tbody {
    position: relative;
    z-index: 0;
}
.lists table thead tr.sticky th.sticky {
    z-index: 22;
}
.lists table thead th {
    position: sticky;
    top: 0;
    z-index: 21;
    background: #f5f5f5;
    box-shadow: inset 0 2px 0 #f5f5f5;
}
.lists table tbody td:not(.sticky) {
    position: relative;
    z-index: 0;
}
.lists table tbody td.sticky {
    z-index: 2;
}
.lists table tbody tr:nth-child(odd) td.sticky {
    background-color: #fff;
}
.lists table tbody tr:nth-child(even) td.sticky {
    background-color: #f0efef;
}
/* Match .resultsTable: full-row hover — was missing for non-sticky cells (only sticky col looked highlighted) */
.lists table tbody tr:hover td:not(.sticky) {
    background-color: #e8f0fe !important;
}
.lists table tbody tr:hover td.sticky {
    background-color: #dbe8fd !important;
    z-index: 2;
}

th.sticky::after,
td.sticky::after {
    content: "";
    position: absolute;
    right: -6px;
    top: 0;
    bottom: -1px;
    width: 5px;
    border-left: 1px solid #C9D1DC;
    background: linear-gradient(90deg, rgba(0,0,0,0.08) 0%, rgba(0,0,0,0) 100%);
}

th.sticky::before,
td.sticky::before {
    content: "";
    position: absolute;
    left: -6px;
    top: 0;
    bottom: -1px;
    width: 5px;
    border-right: 1px solid #C9D1DC;
    background: linear-gradient(90deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.08) 100%);
}

/* List striping: scope to non–Documents tables. `.smp-docs-table` lives in a dark “mega” shell with its own row contrast. */
table:not(.smp-docs-table) tr:nth-child(odd) td{

}
table:not(.smp-docs-table) tr:nth-child(even) td{
    background-color: #f0efef;
}

html[data-bs-theme="dark"] table:not(.smp-docs-table) tr:nth-child(even) td {
    background-color: rgba(255, 255, 255, 0.06);
}

/* Documents mega modal — deadly clean separation from global table primitives */
.smp-docs-mega .smp-docs-table th,
.smp-docs-mega .smp-docs-table td {
    border-top: none;
    white-space: normal;
    vertical-align: middle;
}

.smp-docs-mega .smp-docs-table tbody tr:nth-child(even) td {
    background-color: rgba(255, 255, 255, 0.04);
}

.smp-docs-mega .smp-docs-table tbody tr:nth-child(odd) td {
    background-color: transparent;
}

.smp-docs-mega .smp-docs-table tbody tr:hover td {
    background-color: rgba(217, 39, 46, 0.09) !important;
}

.smp-docs-mega .smp-docs-table tbody tr.smp-docs-row--selected td {
    background-color: rgba(217, 39, 46, 0.14) !important;
}



.red-circle-container {
    width: 150px; /* Adjust the size as needed */
    height: 150px; /* Adjust the size as needed */
    border-radius: 50%;
    background-color: red;
    display: flex; /* Enable flexbox for centering text */
    justify-content: center; /* Center text horizontally */
    align-items: center; /* Center text vertically */
}
.green-circle-container {
    width: 150px; /* Adjust the size as needed */
    height: 150px; /* Adjust the size as needed */
    border-radius: 50%;
    background-color: green;
    display: flex; /* Enable flexbox for centering text */
    justify-content: center; /* Center text horizontally */
    align-items: center; /* Center text vertically */
}
.container-div {
    width: 100%; /* Adjust the size of the container as needed */
    height: 100%; /* Adjust the size of the container as needed */
    display: flex; /* Ensure container can hold the centered circle */
    justify-content: center; /* Center the circle container horizontally */
    align-items: center; /* Center the circle container vertically */
}
.circle-text {
    color: white; /* Make the text white for better contrast */
    font-weight: bold; /* Make the text bold */
    /* You can add more text styling here if needed */
    text-align: center;

}



.card-header {
    overflow: hidden;
}

.col {
    flex: 1;
    min-width: 0;
}
.flex-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.flex-header-left {
    flex-grow: 1;
    text-align: left;
    display: inline-block;
}

.flex-header-right {
    text-align: right;
    display: inline-block;
    float:right;
}

/* Profile module cards (profile.js): icon + label share one <h5> — flex on all module section cards (employees-, inventory-, equipment-, …). */
[id^="employees-"] > .card > .card-header .flex-header-left h5,
[id^="inventory-"] > .card > .card-header .flex-header-left h5,
[id^="equipment-"] > .card > .card-header .flex-header-left h5,
[id^="ims-"] > .card > .card-header .flex-header-left h5,
[id^="finance-"] > .card > .card-header .flex-header-left h5,
[id^="fleet-"] > .card > .card-header .flex-header-left h5,
[id^="timekeeper-"] > .card > .card-header .flex-header-left h5,
[id^="email-"] > .card > .card-header .flex-header-left h5 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: nowrap;
}
[id^="employees-"] > .card > .card-header .flex-header-left h5 img,
[id^="inventory-"] > .card > .card-header .flex-header-left h5 img,
[id^="equipment-"] > .card > .card-header .flex-header-left h5 img,
[id^="ims-"] > .card > .card-header .flex-header-left h5 img,
[id^="finance-"] > .card > .card-header .flex-header-left h5 img,
[id^="fleet-"] > .card > .card-header .flex-header-left h5 img,
[id^="timekeeper-"] > .card > .card-header .flex-header-left h5 img,
[id^="email-"] > .card > .card-header .flex-header-left h5 img {
    flex-shrink: 0;
}

/* Profile module section cards: space below table footer / pager */
[id^="employees-"] > .card,
[id^="inventory-"] > .card,
[id^="equipment-"] > .card,
[id^="ims-"] > .card,
[id^="finance-"] > .card,
[id^="fleet-"] > .card,
[id^="timekeeper-"] > .card,
[id^="email-"] > .card {
    padding-bottom: 30px;
}

/* List-only profile sections: table (.lists) flush to card inner edges (no card-body / row gutter inset). */
[id$="-profile"] .card-body:has(form .row > .lists:only-child) {
    padding: 0 !important;
}
[id$="-profile"] .card-body:has(form .row > .lists:only-child) form.profile_form {
    margin-bottom: 0 !important;
}
[id$="-profile"] .card-body:has(form .row > .lists:only-child) .row.gy-4 {
    --bs-gutter-x: 0;
    --bs-gutter-y: 0;
    margin-left: 0;
    margin-right: 0;
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}
[id$="-profile"] .card-body:has(form .row > .lists:only-child) .lists {
    box-sizing: border-box;
    width: 100%;
    margin-bottom: 0 !important;
}

.smp-list-pager {
    display: inline-flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: flex-end;
    gap: 0.35rem 0.5rem;
    font-size: 0.8125rem;
    line-height: 1.3;
    max-width: 100%;
}
.smp-list-pager-range {
    color: #495057;
}
.smp-list-pager-pages {
    font-variant-numeric: tabular-nums;
    min-width: 3.25rem;
    text-align: center;
}

/* Main app list footer: match profile tables (column toggle + shared pager chrome). */
.smp-main-list-foot-bar.smp-list-table-foot-bar {
    flex: 0 0 auto;
    border-top: 1px solid #ccc;
    border-bottom: 1px solid #ccc;
    padding: 0;
    background-color: #f8f9fa;
    box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.06);
}
.smp-main-list-foot-bar .smp-list-foot-row {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    width: 100%;
    box-sizing: border-box;
    padding: 0.35rem 0.5rem;
}
.smp-main-list-foot-bar .smp-list-foot-right {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 0.35rem 0.5rem;
    margin-left: auto;
    text-align: right;
}
.smp-main-list-foot-bar .smp-list-pager-host {
    flex: 0 0 auto;
    padding: 0;
    border: none;
    box-shadow: none;
    background: transparent;
}
.smp-main-list-foot-bar .smp-list-pager-prev,
.smp-main-list-foot-bar .smp-list-pager-next {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.65rem;
    height: 1.5rem;
    padding: 0 0.3rem;
    margin: 0;
    border: 1px solid #0d6efd;
    border-radius: 6px;
    background: #fff;
    color: #0d6efd;
    line-height: 1;
    cursor: pointer;
    box-sizing: border-box;
    transition: background 0.15s ease, color 0.15s ease;
}
.smp-main-list-foot-bar .smp-list-pager-prev:hover:not(:disabled),
.smp-main-list-foot-bar .smp-list-pager-next:hover:not(:disabled) {
    background: rgba(13, 110, 253, 0.08);
}
.smp-main-list-foot-bar .smp-list-pager-prev:disabled,
.smp-main-list-foot-bar .smp-list-pager-next:disabled {
    opacity: 0.38;
    cursor: not-allowed;
}
.smp-main-list-foot-bar .smp-list-pager .smp-profile-col-nudge-icon {
    font-size: 1.05rem;
    font-weight: 600;
    line-height: 1;
    display: block;
}
.smp-main-list-foot-bar .smp-profile-list-page-size-wrap {
    margin: 0;
}

/* Optional per-section Ovie busy spinner (see smpProfileSectionOvieSetLoading in globals.js); not global “thinking”. */
.smp-profile-section-ovie-loading {
    display: inline-block;
    width: 14px;
    height: 14px;
    margin-left: 0.4em;
    vertical-align: -0.15em;
    border: 2px solid rgba(13, 110, 253, 0.25);
    border-top-color: #0d6efd;
    border-radius: 50%;
    box-sizing: border-box;
    animation: smp-profile-section-ovie-spin 0.65s linear infinite;
}
@keyframes smp-profile-section-ovie-spin {
    to {
        transform: rotate(360deg);
    }
}
/* Dark/light theme: see /css/smp-theme.css (loaded after bootstrap + feature CSS). */

/* Settings app (preferences hub): section jumped to from another module’s “Settings” */
.preferences-section.preferences-section--focused {
    outline: 2px solid #3b82f6;
    outline-offset: 3px;
    transition: outline-color 0.2s ease;
}


