:root {
    --bg: #f6f7f9;
    --bg-soft: #eef1f5;
    --panel: #ffffff;
    --panel-muted: #f9fafb;
    --text: #101828;
    --muted: #667085;
    --subtle: #98a2b3;
    --border: #e4e7ec;
    --border-strong: #d0d5dd;
    --primary: #4f46e5;
    --primary-strong: #4338ca;
    --primary-soft: #eef2ff;
    --hero-gradient: linear-gradient(135deg, #4f46e5 0%, #6d28d9 52%, #7c3aed 100%);
    --pending-glow: rgba(245, 158, 11, 0.35);
    --success: #067647;
    --success-soft: #ecfdf3;
    --warning: #b54708;
    --warning-soft: #fffaeb;
    --danger: #d92d20;
    --danger-soft: #fef3f2;
    --info: #175cd3;
    --info-soft: #eff8ff;
    --shadow: 0 4px 16px rgba(16, 24, 40, 0.08);
    --shadow-sm: 0 1px 3px rgba(16, 24, 40, 0.06), 0 1px 2px rgba(16, 24, 40, 0.04);
    --shadow-lg: 0 12px 32px rgba(16, 24, 40, 0.12);
    --radius: 14px;
    --radius-sm: 10px;
    --container: 1440px;
}

@media screen {
    html.hr-theme-dark-pending body.body--hr-shell,
    body.body--hr-shell.hr-theme-dark {
        color-scheme: dark;
        --bg: #0b0e14;
        --bg-soft: #10141d;
        --panel: #161b26;
        --panel-muted: #1e2430;
        --text: #f0f3f9;
        --muted: #aab2c5;
        --subtle: #7e879b;
        --border: #2a313f;
        --border-strong: #3d4659;
        --primary: #818cf8;
        --primary-strong: #a5b4fc;
        --primary-soft: rgba(129, 140, 248, 0.16);
        --success: #4ade80;
        --success-soft: rgba(74, 222, 128, 0.14);
        --warning: #fbbf24;
        --warning-soft: rgba(251, 191, 36, 0.15);
        --danger: #fb7185;
        --danger-soft: rgba(251, 113, 133, 0.14);
        --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
        --shadow: 0 8px 24px rgba(0, 0, 0, 0.36);
        --shadow-lg: 0 20px 48px rgba(0, 0, 0, 0.44);
        background:
            radial-gradient(circle at top left, rgba(129, 140, 248, 0.13), transparent 32rem),
            linear-gradient(180deg, #0d1413 0%, #111917 42%, #0d1413 100%);
        color: var(--text);
    }

    html.hr-theme-dark-pending body.body--hr-shell::before,
    body.body--hr-shell.hr-theme-dark::before {
        background:
            radial-gradient(circle at 18% 12%, rgba(129, 140, 248, 0.18), transparent 24rem),
            radial-gradient(circle at 82% 0%, rgba(248, 201, 107, 0.10), transparent 22rem);
        opacity: 0.82;
    }

    html.hr-theme-dark-pending body.body--hr-shell::after,
    body.body--hr-shell.hr-theme-dark::after {
        background-image: radial-gradient(rgba(238, 247, 244, 0.055) 1px, transparent 1px);
        opacity: 0.38;
    }

    html.hr-theme-dark-pending body.body--hr-shell .topbar,
    body.body--hr-shell.hr-theme-dark .topbar {
        border-bottom-color: rgba(238, 247, 244, 0.08);
        background: linear-gradient(180deg, rgba(13, 20, 19, 0.94), rgba(13, 20, 19, 0.80));
    }

    html.hr-theme-dark-pending body.body--hr-shell .topbar__inner--hr .brand,
    html.hr-theme-dark-pending body.body--hr-shell .nav--hr,
    html.hr-theme-dark-pending body.body--hr-shell .topbar__actions,
    html.hr-theme-dark-pending body.body--hr-shell .user-chip,
    html.hr-theme-dark-pending body.body--hr-shell .user-menu__panel,
    body.body--hr-shell.hr-theme-dark .topbar__inner--hr .brand,
    body.body--hr-shell.hr-theme-dark .nav--hr,
    body.body--hr-shell.hr-theme-dark .topbar__actions,
    body.body--hr-shell.hr-theme-dark .user-chip,
    body.body--hr-shell.hr-theme-dark .user-menu__panel {
        border-color: var(--border);
        background: rgba(24, 35, 33, 0.92);
        box-shadow: var(--shadow-sm);
    }

    html.hr-theme-dark-pending body.body--hr-shell .brand--logo img,
    body.body--hr-shell.hr-theme-dark .brand--logo img {
        filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.32));
    }

    html.hr-theme-dark-pending body.body--hr-shell .nav--hr__section,
    body.body--hr-shell.hr-theme-dark .nav--hr__section {
        border-bottom-color: rgba(238, 247, 244, 0.08);
    }

    html.hr-theme-dark-pending body.body--hr-shell .nav--hr__section-label,
    body.body--hr-shell.hr-theme-dark .nav--hr__section-label {
        color: #8da8a1;
    }

    html.hr-theme-dark-pending body.body--hr-shell .nav--hr__release,
    body.body--hr-shell.hr-theme-dark .nav--hr__release {
        border-top-color: rgba(238, 247, 244, 0.08);
        color: #b8cbc5;
    }

    html.hr-theme-dark-pending body.body--hr-shell .nav--hr__release small,
    body.body--hr-shell.hr-theme-dark .nav--hr__release small {
        color: #8da8a1;
    }

    html.hr-theme-dark-pending body.body--hr-shell .nav--hr__icon,
    body.body--hr-shell.hr-theme-dark .nav--hr__icon {
        color: #9ab0aa;
    }

    html.hr-theme-dark-pending body.body--hr-shell .nav--hr a:hover,
    html.hr-theme-dark-pending body.body--hr-shell .nav--hr a:focus-visible,
    body.body--hr-shell.hr-theme-dark .nav--hr a:hover,
    body.body--hr-shell.hr-theme-dark .nav--hr a:focus-visible {
        border-color: rgba(129, 140, 248, 0.28);
        background: rgba(129, 140, 248, 0.10);
    }

    html.hr-theme-dark-pending body.body--hr-shell .nav--hr a.active,
    body.body--hr-shell.hr-theme-dark .nav--hr a.active {
        border-color: rgba(129, 140, 248, 0.34);
        background: rgba(129, 140, 248, 0.16);
        color: var(--primary-strong);
        box-shadow: inset 0 0 0 1px rgba(129, 140, 248, 0.08);
    }

    html.hr-theme-dark-pending body.body--hr-shell .nav--hr a.active::before,
    body.body--hr-shell.hr-theme-dark .nav--hr a.active::before {
        background: linear-gradient(180deg, var(--primary-strong), var(--primary));
    }

    html.hr-theme-dark-pending body.body--hr-shell :is(.panel, .card, .stat-card, .metric-card, .modal-card, .form-card, .settings-card, .settings-accordion__item, .table-wrap, .records-table-wrap, .report-table-wrap, .special-travel-table-wrap, .timeout-repeat-panel, .user-accounts-card, .approval-card),
    body.body--hr-shell.hr-theme-dark :is(.panel, .card, .stat-card, .metric-card, .modal-card, .form-card, .settings-card, .settings-accordion__item, .table-wrap, .records-table-wrap, .report-table-wrap, .special-travel-table-wrap, .timeout-repeat-panel, .user-accounts-card, .approval-card) {
        border-color: var(--border);
        background: rgba(24, 35, 33, 0.94);
        box-shadow: var(--shadow-sm);
    }

    html.hr-theme-dark-pending body.body--hr-shell :is(table, .table),
    body.body--hr-shell.hr-theme-dark :is(table, .table) {
        color: var(--text);
    }

    html.hr-theme-dark-pending body.body--hr-shell :is(th, .table th, .records-table th, .report-table th),
    body.body--hr-shell.hr-theme-dark :is(th, .table th, .records-table th, .report-table th) {
        color: #b8cbc5;
        background: rgba(32, 45, 42, 0.88);
        border-color: var(--border);
    }

    html.hr-theme-dark-pending body.body--hr-shell :is(td, .table td, .records-table td, .report-table td),
    body.body--hr-shell.hr-theme-dark :is(td, .table td, .records-table td, .report-table td) {
        border-color: var(--border);
    }

    html.hr-theme-dark-pending body.body--hr-shell :is(input, select, textarea, .report-combobox__control),
    body.body--hr-shell.hr-theme-dark :is(input, select, textarea, .report-combobox__control) {
        color: var(--text);
        border-color: var(--border);
        background: #101917;
    }

    html.hr-theme-dark-pending body.body--hr-shell :is(input, textarea)::placeholder,
    body.body--hr-shell.hr-theme-dark :is(input, textarea)::placeholder {
        color: #78918a;
    }

    html.hr-theme-dark-pending body.body--hr-shell :is(.button--ghost, .btn--ghost),
    body.body--hr-shell.hr-theme-dark :is(.button--ghost, .btn--ghost) {
        color: var(--text);
        border-color: var(--border);
        background: rgba(16, 25, 23, 0.92);
    }

    html.hr-theme-dark-pending body.body--hr-shell :is(.button--ghost, .btn--ghost):hover,
    body.body--hr-shell.hr-theme-dark :is(.button--ghost, .btn--ghost):hover {
        border-color: var(--border-strong);
        background: rgba(32, 45, 42, 0.92);
    }

    html.hr-theme-dark-pending body.body--hr-shell .hr-theme-toggle,
    body.body--hr-shell.hr-theme-dark .hr-theme-toggle {
        justify-content: center;
    }

    html.hr-theme-dark-pending body.body--hr-shell .hr-browser-alert-button,
    body.body--hr-shell.hr-theme-dark .hr-browser-alert-button {
        border-color: rgba(129, 140, 248, 0.28);
        background: rgba(129, 140, 248, 0.10);
        color: var(--primary-strong);
    }

    html.hr-theme-dark-pending body.body--hr-shell .modal-backdrop,
    body.body--hr-shell.hr-theme-dark .modal-backdrop {
        background: rgba(4, 8, 7, 0.72);
    }

    html.hr-theme-dark-pending body.body--hr-shell :is(.muted, .subtle, small, .help-text),
    body.body--hr-shell.hr-theme-dark :is(.muted, .subtle, small, .help-text) {
        color: var(--muted);
    }
}

* {
    box-sizing: border-box;
}

[hidden] {
    display: none !important;
}

html {
    min-height: 100%;
    background: var(--bg);
}

body {
    position: relative;
    min-height: 100vh;
    margin: 0;
    color: var(--text);
    background:
        linear-gradient(180deg, rgba(232, 244, 241, 0.65) 0%, rgba(246, 248, 247, 0) 280px),
        var(--bg);
    font-family: Aptos, "Segoe UI Variable", "Segoe UI", sans-serif;
    font-size: 16px;
    line-height: 1.5;
    isolation: isolate;
}

body::before,
body::after {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    content: "";
}

body::before {
    inset: 0;
    width: auto;
    height: auto;
    border-radius: 0;
    background:
        radial-gradient(circle at 86% -8%, rgba(79, 70, 229, 0.12), transparent 28rem),
        radial-gradient(circle at 0% 4%, rgba(39, 92, 143, 0.08), transparent 24rem);
    opacity: 0.95;
}

body::after {
    background-image:
        linear-gradient(rgba(16, 24, 40, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(16, 24, 40, 0.035) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.38), transparent 68%);
    opacity: 0.28;
}

html.modal-open,
body.modal-open {
    overflow: hidden;
}

a {
    color: inherit;
}

button,
input,
select,
textarea {
    font: inherit;
}

svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    flex: 0 0 auto;
}

.container {
    width: min(var(--container), calc(100% - 32px));
    margin: 0 auto;
}

.page {
    padding: 26px 0 56px;
}

.mobile-required-page {
    min-height: min(680px, calc(100vh - 120px));
    display: grid;
    place-items: center;
    padding: 32px 16px;
}

.mobile-required-page--client {
    min-height: 100vh;
}

.mobile-required-card {
    width: min(440px, 100%);
    padding: 28px;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: var(--panel);
    box-shadow: var(--shadow);
    text-align: center;
}

.mobile-required-card h1 {
    margin: 8px 0 10px;
    font-size: clamp(2rem, 8vw, 3rem);
    line-height: 1;
    letter-spacing: -0.04em;
}

.mobile-required-card p {
    margin: 0;
    color: var(--muted);
}

.mobile-required-card__hint {
    margin-top: 14px !important;
    padding-top: 14px;
    border-top: 1px solid var(--border);
    font-size: 0.92rem;
}

.privacy-notice-page {
    min-height: min(760px, calc(100vh - 128px));
    display: grid;
    place-items: center;
}

.privacy-notice-card {
    width: min(1040px, 100%);
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: var(--shadow);
}

.privacy-notice-card__header {
    display: grid;
    gap: 8px;
    padding: 28px;
    border-bottom: 1px solid var(--border);
    background:
        radial-gradient(circle at 86% 0%, rgba(79, 70, 229, 0.14), transparent 18rem),
        linear-gradient(135deg, rgba(228, 244, 241, 0.92), #ffffff);
}

.privacy-notice-card__header h1,
.privacy-notice-card__header p {
    margin: 0;
}

.privacy-notice-card__header h1 {
    font-size: clamp(1.85rem, 4vw, 3rem);
    line-height: 1.05;
}

.privacy-notice-card__header p {
    max-width: 760px;
    color: var(--muted);
}

.privacy-version {
    width: max-content;
    padding: 6px 10px;
    border: 1px solid rgba(79, 70, 229, 0.18);
    border-radius: 999px;
    color: var(--primary);
    background: var(--primary-soft);
    font-size: 0.82rem;
    font-weight: 900;
}

.privacy-notice-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    padding: 22px 28px 8px;
}

.privacy-notice-body {
    margin: 22px 28px 0;
    padding: 18px;
    border: 1px solid var(--border);
    border-radius: 18px;
    color: var(--muted);
    background: var(--panel-muted);
    line-height: 1.65;
    white-space: normal;
}

.privacy-notice-item,
.privacy-notice-warning {
    padding: 16px;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: var(--panel-muted);
}

.privacy-notice-item strong,
.privacy-notice-warning strong {
    display: block;
    margin-bottom: 6px;
}

.privacy-notice-item p,
.privacy-notice-warning p {
    margin: 0;
    color: var(--muted);
}

.privacy-notice-warning {
    margin: 14px 28px 0;
    border-color: rgba(154, 91, 0, 0.22);
    background: var(--warning-soft);
}

.privacy-notice-actions {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
    padding: 22px 28px 28px;
}

.privacy-notice-form {
    display: grid;
    gap: 12px;
    flex: 1 1 auto;
}

.privacy-acknowledgement {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 10px;
    align-items: start;
    color: var(--muted);
    font-weight: 700;
}

.privacy-acknowledgement input {
    width: 18px;
    height: 18px;
    margin-top: 3px;
    accent-color: var(--primary);
}

.privacy-logout-form {
    flex: 0 0 auto;
}

.form-error {
    margin: 0;
    color: var(--danger);
    font-size: 0.86rem;
    font-weight: 800;
}

@media (max-width: 720px) {
    .privacy-notice-page {
        place-items: stretch;
        min-height: auto;
        padding-bottom: calc(18px + env(safe-area-inset-bottom));
    }

    .privacy-notice-card {
        border-radius: 18px;
    }

    .privacy-notice-card__header,
    .privacy-notice-grid,
    .privacy-notice-actions {
        padding-inline: 18px;
    }

    .privacy-notice-grid {
        grid-template-columns: 1fr;
    }

    .privacy-notice-body {
        margin-inline: 18px;
    }

    .privacy-notice-warning {
        margin-inline: 18px;
    }

    .privacy-notice-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .privacy-notice-actions .button {
        width: 100%;
    }

    .notification-modal {
        position: fixed;
        inset: 0;
        width: 100vw;
        min-height: 100svh;
        display: flex;
        align-items: flex-start;
        justify-content: center;
        overflow-y: auto;
        padding: calc(86px + env(safe-area-inset-top)) 14px calc(96px + env(safe-area-inset-bottom));
        z-index: 10000;
    }

    .notification-modal .modal-card--notification {
        width: min(430px, calc(100vw - 28px));
        max-height: calc(100svh - 182px - env(safe-area-inset-top) - env(safe-area-inset-bottom));
        margin: 0;
        overflow: auto;
        border-radius: 22px;
    }

    .notification-modal #flash-notification-title {
        font-size: clamp(2.35rem, 11vw, 3.1rem);
        line-height: 0.95;
    }

    .notification-modal .modal-card__actions {
        position: sticky;
        bottom: -16px;
        margin: 14px -16px -16px;
        padding: 12px 16px max(16px, env(safe-area-inset-bottom));
        border-top: 1px solid var(--border);
        background: #ffffff;
    }

    .notification-modal .modal-card__actions .button {
        width: 100%;
    }
}

.body--login {
    background:
        radial-gradient(circle at 88% 8%, rgba(79, 70, 229, 0.12), transparent 32rem),
        linear-gradient(180deg, #f7faf8, #eef3ef);
}

.page--login {
    width: 100%;
    min-height: 100vh;
    padding: 0;
}

.muted,
.empty-copy {
    color: var(--muted);
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    color: var(--muted);
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 20;
    border-bottom: 1px solid rgba(220, 228, 223, 0.86);
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(18px);
}

.topbar__inner {
    min-height: 68px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.brand {
    color: var(--text);
    text-decoration: none;
    font-weight: 800;
    font-size: 1.05rem;
}

.nav {
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav a {
    padding: 9px 12px;
    border-radius: var(--radius-sm);
    color: var(--muted);
    text-decoration: none;
    font-size: 0.92rem;
    font-weight: 700;
}

.nav a:hover,
.nav a.active {
    color: var(--primary-strong);
    background: var(--primary-soft);
}

.nav a.nav-link--alert {
    color: var(--warning);
    background: var(--warning-soft);
}

.nav-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    min-height: 20px;
    margin-left: 6px;
    padding: 2px 6px;
    border-radius: 999px;
    color: #ffffff;
    background: var(--danger);
    font-size: 0.72rem;
    font-weight: 900;
}

.hr-live-toast {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 80;
    display: grid;
    gap: 4px;
    width: min(320px, calc(100vw - 28px));
    padding: 14px;
    border: 1px solid rgba(79, 70, 229, 0.28);
    border-radius: var(--radius);
    color: var(--text);
    background: #ffffff;
    box-shadow: var(--shadow-lg);
}

.hr-live-toast[hidden] {
    display: none;
}

.hr-live-toast strong {
    color: var(--primary);
}

.hr-live-toast span {
    color: var(--muted);
    font-size: 0.86rem;
}

.hr-live-toast a {
    width: fit-content;
    color: var(--primary);
    font-size: 0.84rem;
    font-weight: 900;
}

.topbar__actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-chip {
    display: grid;
    gap: 1px;
    text-align: right;
}

.user-chip strong,
.agent-topbar strong {
    font-size: 0.92rem;
}

.user-chip small,
.agent-topbar small {
    color: var(--muted);
    font-size: 0.78rem;
}

.agent-topbar {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.agent-topbar__greeting {
    display: grid;
    gap: 2px;
}

.icon-button {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid transparent;
    border-radius: var(--radius);
    color: var(--text);
    background: transparent;
    cursor: pointer;
}

.icon-button:hover {
    border-color: var(--border);
    background: var(--panel-muted);
}

.button,
.btn {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 16px;
    border: 1px solid transparent;
    border-radius: var(--radius);
    color: var(--text);
    background: var(--panel);
    cursor: pointer;
    font-weight: 800;
    text-decoration: none;
    transition: background 0.16s ease, border-color 0.16s ease, color 0.16s ease, transform 0.12s ease;
}

.button--camera {
    width: 48px;
    min-width: 48px;
    padding-inline: 12px;
}

.button--camera svg {
    width: 22px;
    height: 22px;
    display: block;
}

.button:disabled,
.btn:disabled,
.button.is-disabled,
.btn.is-disabled {
    cursor: not-allowed;
    opacity: 0.58;
    pointer-events: none;
}

.button:active,
.btn:active,
.punch-btn:active {
    transform: translateY(1px);
}

.punch-btn:disabled {
    cursor: not-allowed;
    opacity: 0.5;
    transform: none;
}

.button--primary,
.btn--primary {
    color: #ffffff;
    background: var(--primary);
    border-color: var(--primary);
}

.button--primary:hover,
.btn--primary:hover {
    background: var(--primary-strong);
    border-color: var(--primary-strong);
}

.button--ghost,
.btn--ghost {
    color: var(--text);
    background: var(--panel);
    border-color: var(--border);
}

.button--ghost:hover,
.btn--ghost:hover {
    border-color: var(--border-strong);
    background: var(--panel-muted);
}

.button--danger {
    color: #ffffff;
    background: var(--danger);
    border-color: var(--danger);
}

.button--warning {
    color: #7c2d12;
    background: var(--warning-soft);
    border-color: rgba(249, 115, 22, 0.36);
}

.button--warning:hover {
    background: #ffedd5;
    border-color: rgba(249, 115, 22, 0.58);
}

.btn--sm {
    min-height: 38px;
    padding: 8px 12px;
    font-size: 0.88rem;
}

.button--sm {
    min-height: 36px;
    padding: 8px 12px;
    font-size: 0.88rem;
}

.btn--block {
    width: 100%;
}

.icon-help {
    width: 30px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    border: 1px solid var(--border);
    border-radius: 999px;
    color: var(--primary-strong);
    background: var(--primary-soft);
    cursor: pointer;
    font-size: 0.82rem;
    font-weight: 900;
}

.icon-help:hover {
    border-color: rgba(79, 70, 229, 0.32);
    background: #d9efeb;
}

.alert {
    margin: 0 0 16px;
    padding: 13px 15px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background: var(--panel);
    color: var(--text);
}

.alert--success {
    color: var(--success);
    border-color: rgba(21, 115, 71, 0.22);
    background: var(--success-soft);
}

.alert--danger {
    color: var(--danger);
    border-color: rgba(180, 35, 24, 0.22);
    background: var(--danger-soft);
}

.error-list {
    margin: 8px 0 0;
    padding-left: 18px;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.form-grid--simple {
    max-width: 560px;
    grid-template-columns: 1fr;
}

.form-grid--simple .checkbox--inline {
    align-self: start;
}

.form-grid--simple + .form-actions {
    max-width: 560px;
}

.field,
.checkbox {
    display: grid;
    gap: 7px;
}

.field--full {
    grid-column: 1 / -1;
}

.field span,
.field-label {
    color: var(--text);
    font-size: 0.88rem;
    font-weight: 800;
}

.field input,
.field select,
.field textarea,
.select-wrapper select {
    width: 100%;
    min-height: 44px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 10px 12px;
    color: var(--text);
    background: #ffffff;
    outline: none;
}

.field textarea {
    resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus,
.select-wrapper select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.12);
}

.field__hint {
    color: var(--muted);
    font-size: 0.82rem;
}

.field__error {
    color: var(--danger);
    font-size: 0.82rem;
    font-weight: 800;
}

.field__static {
    min-height: 44px;
    display: flex;
    align-items: center;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--muted);
    background: var(--panel-muted);
}

.checkbox {
    grid-auto-flow: column;
    grid-template-columns: auto 1fr;
    align-items: center;
    color: var(--text);
    font-weight: 700;
}

.checkbox input {
    width: 18px;
    height: 18px;
}

.checkbox--inline {
    align-self: end;
    min-height: 44px;
}

.checkbox__hint {
    display: block;
    margin-top: 3px;
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 600;
    line-height: 1.35;
}

.field input[readonly] {
    color: var(--primary-strong);
    background: var(--primary-soft);
    font-weight: 900;
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 18px;
}

.assignment-setup-card {
    display: grid;
    gap: 14px;
    padding: 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--panel-muted);
}

.assignment-setup-card__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.assignment-setup-card__header h2 {
    margin: 4px 0 4px;
    font-size: 1.05rem;
}

.assignment-setup-card__header p:last-child {
    margin: 0;
    color: var(--muted);
    font-size: 0.88rem;
}

.assignment-setup-card__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    align-items: end;
}

.form-grid--modal {
    gap: 12px;
}

.staff-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 0 4px 6px 0;
    padding: 5px 8px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: var(--panel-muted);
    font-size: 0.82rem;
    white-space: nowrap;
}

.staff-pill span {
    color: var(--primary-strong);
    font-size: 0.7rem;
    font-weight: 900;
    text-transform: uppercase;
}

.filters {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    align-items: center;
    gap: 10px;
    margin: 16px 0 18px;
}

.filters--wide {
    grid-template-columns: repeat(5, minmax(140px, 1fr)) auto;
}

.filters input,
.filters select {
    width: 100%;
    min-height: 40px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 9px 12px;
    color: var(--text);
    background: #ffffff;
    outline: none;
}

.filters input:focus,
.filters select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.12);
}

.filters .button {
    justify-self: start;
}

.store-summary {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.store-summary__item {
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--panel-muted);
}

.store-summary__item span {
    display: block;
    color: var(--muted);
    font-size: 0.8rem;
}

.store-summary__item strong {
    display: block;
    margin-top: 2px;
}

.hero {
    position: relative;
    overflow: hidden;
    margin-bottom: 20px;
    padding: 32px;
    border: 1px solid transparent;
    border-radius: var(--radius);
    background: var(--hero-gradient);
    box-shadow: 0 18px 44px rgba(79, 70, 229, 0.32);
    color: #ffffff;
}

.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 88% -20%, rgba(255, 255, 255, 0.28), transparent 42%),
        radial-gradient(circle at 4% 120%, rgba(255, 255, 255, 0.16), transparent 40%);
    pointer-events: none;
}

.hero > * {
    position: relative;
    z-index: 1;
}

body.body--hr-shell .hero .eyebrow {
    color: rgba(255, 255, 255, 0.85);
}

body.body--hr-shell .hero h1 {
    color: #ffffff;
}

body.body--hr-shell .hero p {
    color: rgba(255, 255, 255, 0.95);
}

.hero h1,
.login-brand h1,
.login-panel h2,
.panel__header h2,
.panel-card h2,
.agent-hero h1 {
    margin: 0;
    line-height: 1.12;
    letter-spacing: 0;
}

.hero h1 {
    margin-top: 8px;
    font-size: clamp(1.8rem, 4vw, 2.6rem);
}

.hero p {
    max-width: 660px;
    margin: 10px 0 0;
    color: rgba(255, 255, 255, 0.92);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 18px;
}

.stat-card,
.panel,
.panel-card {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--panel);
    box-shadow: var(--shadow-sm);
}

.stat-card {
    padding: 18px;
}

.stat-card--warning {
    border-color: rgba(154, 91, 0, 0.28);
    background: var(--warning-soft);
}

.stat-card span {
    color: var(--muted);
    font-size: 0.88rem;
    font-weight: 800;
}

.stat-card strong {
    display: block;
    margin-top: 8px;
    font-size: 2rem;
    line-height: 1;
}

.stat-card a {
    display: inline-flex;
    margin-top: 10px;
    color: var(--primary-strong);
    font-size: 0.86rem;
    font-weight: 900;
}

/* Clean, minimal dashboard stat cards: neutral panel + a thin colored left border */
.stats-grid .stat-card {
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

body.body--hr-shell .stats-grid [class*="stat-card--"] {
    background: var(--panel);
    border: 1px solid var(--border);
    color: var(--text);
    box-shadow: var(--shadow-sm);
}

body.body--hr-shell .stats-grid .stat-card--indigo { border-left: 3px solid #4f46e5; }
body.body--hr-shell .stats-grid .stat-card--violet { border-left: 3px solid #7c3aed; }
body.body--hr-shell .stats-grid .stat-card--emerald { border-left: 3px solid #059669; }
body.body--hr-shell .stats-grid .stat-card--rose { border-left: 3px solid #e11d48; }
body.body--hr-shell .stats-grid .stat-card--amber { border-left: 3px solid #d97706; }
body.body--hr-shell .stats-grid .stat-card--cyan { border-left: 3px solid #0891b2; }

body.body--hr-shell .stats-grid [class*="stat-card--"] span {
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

body.body--hr-shell .stats-grid [class*="stat-card--"] strong {
    font-size: clamp(2.2rem, 3vw, 2.8rem);
    font-weight: 900;
    color: var(--text);
}

body.body--hr-shell .stats-grid [class*="stat-card--"] a {
    color: var(--primary-strong);
    text-decoration: underline;
    text-underline-offset: 3px;
}

body.body--hr-shell .stats-grid [class*="stat-card--"]:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}

body.body--hr-shell .stats-grid .stat-card--amber.is-active {
    box-shadow: 0 0 0 3px var(--pending-glow), var(--shadow);
}

/* Dark mode: same clean design, needs !important to win over the broad
   :is(.panel, .card, .stat-card, ...) dark-mode selector elsewhere. */
@media screen {
    html.hr-theme-dark-pending body.body--hr-shell .stats-grid [class*="stat-card--"],
    body.body--hr-shell.hr-theme-dark .stats-grid [class*="stat-card--"] {
        background: var(--panel) !important;
        border-color: var(--border) !important;
        box-shadow: var(--shadow) !important;
    }

    html.hr-theme-dark-pending body.body--hr-shell .stats-grid [class*="stat-card--"]:hover,
    body.body--hr-shell.hr-theme-dark .stats-grid [class*="stat-card--"]:hover {
        box-shadow: var(--shadow-lg) !important;
    }

    html.hr-theme-dark-pending body.body--hr-shell .stats-grid .stat-card--indigo,
    body.body--hr-shell.hr-theme-dark .stats-grid .stat-card--indigo {
        border-left-color: #818cf8 !important;
    }

    html.hr-theme-dark-pending body.body--hr-shell .stats-grid .stat-card--violet,
    body.body--hr-shell.hr-theme-dark .stats-grid .stat-card--violet {
        border-left-color: #c084fc !important;
    }

    html.hr-theme-dark-pending body.body--hr-shell .stats-grid .stat-card--emerald,
    body.body--hr-shell.hr-theme-dark .stats-grid .stat-card--emerald {
        border-left-color: #4ade80 !important;
    }

    html.hr-theme-dark-pending body.body--hr-shell .stats-grid .stat-card--rose,
    body.body--hr-shell.hr-theme-dark .stats-grid .stat-card--rose {
        border-left-color: #fb7185 !important;
    }

    html.hr-theme-dark-pending body.body--hr-shell .stats-grid .stat-card--amber,
    body.body--hr-shell.hr-theme-dark .stats-grid .stat-card--amber {
        border-left-color: #fbbf24 !important;
    }

    html.hr-theme-dark-pending body.body--hr-shell .stats-grid .stat-card--cyan,
    body.body--hr-shell.hr-theme-dark .stats-grid .stat-card--cyan {
        border-left-color: #22d3ee !important;
    }
}

.panel {
    padding: 20px;
}

.panel__header,
.panel-card__header {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.panel__header--between,
.panel-card__header--between {
    justify-content: space-between;
}

.panel-actions {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: wrap;
}

.panel__header h2,
.panel-card h2 {
    margin-top: 5px;
    font-size: 1.2rem;
}

.table-wrap {
    width: 100%;
    overflow-x: auto;
}

.table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.94rem;
}

.table th,
.table td {
    padding: 13px 12px;
    border-bottom: 1px solid var(--border);
    text-align: left;
    vertical-align: middle;
}

.table th {
    color: var(--muted);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0;
}

.table__empty {
    color: var(--muted);
    text-align: center;
}

.reports-page {
    display: grid;
    gap: 16px;
}

.reports-page--merged {
    gap: 10px;
}

.report-hero {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    padding: 20px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background:
        linear-gradient(135deg, rgba(228, 244, 241, 0.92), rgba(255, 255, 255, 0.96)),
        var(--panel);
    box-shadow: var(--shadow-sm);
}

.report-hero h1 {
    margin: 6px 0 4px;
    font-size: clamp(1.8rem, 4vw, 3rem);
    line-height: 1;
    letter-spacing: -0.04em;
}

.report-hero p {
    margin: 0;
    color: var(--muted);
}

.report-period-switch {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.report-filters {
    align-items: end;
    grid-template-columns: repeat(3, minmax(160px, 1fr)) auto auto;
}

.report-filters--range {
    grid-template-columns:
        repeat(2, minmax(140px, 0.7fr))
        repeat(2, minmax(220px, 1.15fr))
        minmax(250px, 1fr)
        auto
        auto;
}

.report-filters--compact {
    grid-template-columns:
        minmax(300px, 1.05fr)
        minmax(150px, 0.55fr)
        minmax(150px, 0.55fr)
        minmax(280px, 1fr)
        auto;
    gap: 12px 14px;
    margin: 0;
}

.report-filters label {
    display: grid;
    gap: 6px;
}

.report-field {
    display: grid;
    gap: 6px;
}

.report-filters label span,
.report-field > span,
.report-region-filter legend {
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
}

.report-combobox {
    position: relative;
}

.report-combobox__control {
    position: relative;
}

.report-combobox__control input {
    padding-right: 38px;
}

.report-combobox__clear {
    position: absolute;
    top: 50%;
    right: 8px;
    display: inline-grid;
    width: 24px;
    height: 24px;
    transform: translateY(-50%);
    place-items: center;
    border: 0;
    border-radius: 999px;
    color: var(--muted);
    background: transparent;
    cursor: pointer;
    font-size: 1rem;
    line-height: 1;
}

.report-combobox__clear:hover {
    color: var(--primary);
    background: var(--panel-muted);
}

.report-combobox__list {
    position: absolute;
    z-index: 30;
    top: calc(100% + 6px);
    right: 0;
    left: 0;
    max-height: 270px;
    overflow-y: auto;
    padding: 6px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: #ffffff;
    box-shadow: var(--shadow);
}

.report-combobox__option {
    display: grid;
    width: 100%;
    gap: 2px;
    padding: 10px 11px;
    border: 0;
    border-radius: 12px;
    color: var(--text);
    background: transparent;
    cursor: pointer;
    text-align: left;
}

.report-combobox__option strong {
    font-size: 0.92rem;
}

.report-combobox__option small {
    color: var(--muted);
    font-size: 0.78rem;
}

.report-combobox__option:hover,
.report-combobox__option.is-active {
    background: var(--panel-muted);
}

.report-combobox__option.is-selected {
    color: var(--primary);
    background: rgba(228, 244, 241, 0.82);
}

.report-combobox__empty {
    padding: 12px;
    color: var(--muted);
    font-size: 0.9rem;
    text-align: center;
}

.report-region-filter {
    display: grid;
    gap: 6px;
    margin: 0;
    padding: 0;
    border: 0;
}

.report-region-filter__buttons {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
    min-height: 40px;
    padding: 3px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: #ffffff;
}

.report-region-filter__button {
    border: 0;
    border-radius: 12px;
    color: var(--muted);
    background: transparent;
    cursor: pointer;
    font-size: 0.78rem;
    font-weight: 900;
}

.report-region-filter__button:hover {
    background: var(--panel-muted);
}

.report-region-filter__button.is-active {
    color: #ffffff;
    background: var(--primary);
}

.report-summary-button {
    align-self: end;
    min-height: 40px;
    padding-inline: 14px;
    white-space: nowrap;
}

.report-agent-nav {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 10px;
    margin-top: -4px;
}

.report-agent-nav .button:first-child {
    justify-self: start;
}

.report-agent-nav .button:last-child {
    justify-self: end;
}

.report-agent-nav__position {
    color: var(--muted);
    font-size: 0.86rem;
    font-weight: 900;
    white-space: nowrap;
}

.report-next-agent {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--panel);
    box-shadow: var(--shadow-sm);
}

.report-next-agent span {
    color: var(--muted);
    font-size: 0.86rem;
    font-weight: 900;
}

.report-summary-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 10px;
}

.report-metric-card {
    padding: 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--panel);
    box-shadow: var(--shadow-sm);
}

.report-metric-card span {
    display: block;
    color: var(--muted);
    font-size: 0.76rem;
    font-weight: 900;
    text-transform: uppercase;
}

.report-metric-card strong {
    display: block;
    margin-top: 7px;
    font-size: 1.45rem;
    line-height: 1;
    letter-spacing: -0.03em;
}

.report-tabs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    padding: 6px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--panel);
    box-shadow: var(--shadow-sm);
}

.report-tabs--merged {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
    padding: 5px;
    box-shadow: none;
}

.report-tab {
    display: grid;
    min-height: 42px;
    align-content: center;
    gap: 3px;
    border: 0;
    border-radius: 999px;
    color: var(--muted);
    background: transparent;
    cursor: pointer;
    font-size: 0.88rem;
    font-weight: 900;
}

.report-tab small {
    display: none;
    max-width: 52ch;
    margin: 0 auto;
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.72rem;
    font-weight: 700;
    line-height: 1.25;
    text-transform: none;
}

.report-tab.is-active {
    color: #ffffff;
    background: var(--primary);
    box-shadow: 0 10px 20px rgba(79, 70, 229, 0.2);
}

.report-tab.is-active small {
    display: block;
}

.report-panel {
    display: grid;
    gap: 14px;
}

.report-panel[hidden] {
    display: none !important;
}

.report-table-wrap {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--panel);
}

.report-table {
    min-width: 980px;
}

.report-table--compact {
    min-width: 760px;
}

.report-table--daily-breakdown {
    min-width: 980px;
}

.report-table--visit-log {
    min-width: 1040px;
}

.report-table th {
    background: var(--panel-muted);
}

.report-table tbody tr:hover {
    background: rgba(228, 244, 241, 0.38);
}

.report-table__wide {
    min-width: 220px;
}

.report-chip {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 3px 8px;
    border-radius: 999px;
    font-size: 0.76rem;
    font-weight: 900;
    white-space: nowrap;
}

.report-chip--success {
    color: var(--success);
    background: var(--success-soft);
}

.report-chip--warning {
    color: var(--warning);
    background: var(--warning-soft);
}

.report-chip--info {
    color: var(--info);
    background: var(--info-soft);
}

.report-selfie-link {
    color: var(--primary);
    font-weight: 900;
}

.report-proof-button {
    white-space: nowrap;
}

.report-proof-modal__card {
    width: min(920px, calc(100vw - 28px));
    max-height: calc(100dvh - 48px);
    overflow: auto;
}

.report-proof-modal__header,
.report-proof-viewer__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
}

.report-proof-modal__header .eyebrow,
.report-proof-viewer__header .eyebrow {
    margin: 0;
}

.report-proof-modal__header h2,
.report-proof-viewer__header h2 {
    margin: 6px 0 0;
}

.report-proof-modal__header .icon-button,
.report-proof-viewer__header .icon-button {
    flex: 0 0 auto;
}

.report-proof-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-top: 14px;
}

.report-proof-card {
    display: grid;
    gap: 7px;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: var(--panel-muted);
}

.report-proof-card img {
    width: 100%;
    max-height: 58dvh;
    object-fit: contain;
    border-radius: 14px;
    background: #0f241f;
    cursor: zoom-in;
}

.report-proof-card strong {
    color: var(--ink);
    font-weight: 900;
}

.report-proof-card span {
    width: fit-content;
    padding: 4px 9px;
    border-radius: 999px;
    color: var(--primary);
    background: var(--primary-soft);
    font-size: 0.76rem;
    font-weight: 900;
}

.report-proof-viewer {
    z-index: 5600;
}

.report-proof-viewer__card {
    width: min(560px, calc(100vw - 28px));
    max-height: calc(100dvh - 28px);
    overflow: auto;
    padding: 22px;
}

.report-proof-viewer__media {
    display: grid;
    place-items: center;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 18px;
    background:
        linear-gradient(135deg, rgba(79, 70, 229, 0.16), transparent 44%),
        #0f241f;
}

.report-proof-viewer__media img {
    width: 100%;
    max-height: min(62dvh, 560px);
    display: block;
    object-fit: contain;
    border-radius: 16px;
}

.report-proof-viewer__meta {
    width: fit-content;
    margin: 14px 0 0;
    padding: 6px 12px;
    border-radius: 999px;
    color: var(--primary);
    background: var(--primary-soft);
    font-size: 0.82rem;
    font-weight: 900;
}

.report-viewed-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: -2px;
    color: var(--muted);
    font-size: 0.8rem;
    font-weight: 800;
}

.report-clear-viewed {
    border: 0;
    color: var(--primary);
    background: transparent;
    cursor: pointer;
    font: inherit;
    font-weight: 900;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.report-clear-viewed:hover {
    color: var(--primary-strong);
}

.report-selfie-stack {
    display: grid;
    gap: 6px;
    min-width: 140px;
}

.report-selfie-item {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    width: fit-content;
    padding: 4px 7px;
    border-radius: 999px;
    background: var(--panel-muted);
    font-size: 0.78rem;
    font-weight: 900;
}

.report-viewed-check {
    width: 15px;
    height: 15px;
    accent-color: var(--success);
    cursor: pointer;
}

.report-viewed-label {
    display: none;
    color: var(--success);
    font-size: 0.72rem;
}

.report-selfie-item.is-viewed {
    background: var(--success-soft);
}

.report-selfie-item.is-viewed .report-viewed-label {
    display: inline;
}

.report-table tbody tr.has-viewed-selfie {
    background: rgba(220, 252, 231, 0.34);
}

.report-table tbody tr.has-viewed-selfie:hover {
    background: rgba(220, 252, 231, 0.5);
}

@media (max-width: 720px) {
    .report-proof-grid {
        grid-template-columns: 1fr;
    }

    .report-proof-modal__card {
        max-height: calc(100dvh - 24px);
    }
}

.report-print-summary {
    display: none;
}

.report-print-summary--page {
    display: block;
    width: min(100%, 1140px);
    margin: 24px auto 0;
    padding: 0 18px 12px;
}

.report-summary-preview__empty {
    width: 100%;
    max-width: 1080px;
    margin: 18px auto 0;
    padding: 20px 22px;
    border: 1px solid var(--border);
    border-radius: 22px;
    background: var(--panel);
    box-shadow: var(--shadow-sm);
}

.report-print-card {
    width: 100%;
    max-width: 1080px;
    margin: 0 auto;
    color: #111827;
    background: #ffffff;
    border: 1px solid rgba(79, 70, 229, 0.16);
    border-radius: 30px;
    box-shadow: 0 24px 56px rgba(15, 23, 42, 0.1);
    overflow: hidden;
}

.report-print-header {
    display: grid;
    justify-items: center;
    gap: 6px;
    padding: 26px 28px 18px;
    border-bottom: 3px solid var(--primary);
    text-align: center;
    background:
        radial-gradient(circle at top, rgba(79, 70, 229, 0.08), transparent 52%),
        linear-gradient(180deg, #ffffff 0%, #f7fbf9 100%);
}

.report-print-header img {
    width: 84px;
    height: auto;
    object-fit: contain;
}

.report-print-header h1 {
    margin: 2px 0 0;
    color: var(--primary-strong);
    font-size: 1.7rem;
    line-height: 1.1;
}

.report-print-header p {
    margin: 0;
    color: #475569;
    font-size: 0.98rem;
    font-weight: 800;
}

.report-print-metrics {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0;
    padding: 8px 24px 4px;
}

.report-print-metrics > div {
    padding: 8px 18px;
    border-bottom: 1px solid #e5e7eb;
}

.report-print-metrics > div:nth-child(odd) {
    border-right: 1px solid #e5e7eb;
}

.report-print-metrics span {
    display: block;
    color: #475569;
    font-size: 0.7rem;
    font-weight: 900;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.report-print-metrics strong {
    display: block;
    margin-top: 2px;
    font-size: 0.98rem;
}

.report-print-table {
    width: calc(100% - 48px);
    margin: 10px 24px 54px;
    border-collapse: collapse;
    font-size: 0.88rem;
    overflow: hidden;
    border: 1px solid #e5e7eb;
    border-radius: 20px;
}

.report-print-table th,
.report-print-table td {
    padding: 11px 12px;
    border-bottom: 1px solid #e5e7eb;
    text-align: left;
    vertical-align: top;
}

.report-print-table th {
    color: #0f3d37;
    background: #eef7f4;
    font-size: 0.76rem;
    font-weight: 900;
}

.report-print-table tbody tr:nth-child(even) {
    background: #fbfdfc;
}

.report-print-table__sub {
    margin-left: 12px;
    font-size: 0.82rem;
    color: #4b5f5b;
}

.report-summary-actions {
    width: 100%;
    max-width: 1080px;
    margin: 18px auto 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 18px 22px;
    border: 1px solid rgba(79, 70, 229, 0.14);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.82);
    box-shadow: var(--shadow-sm);
}

.report-summary-actions__copy h2 {
    margin: 0;
    font-size: 1.24rem;
}

.report-summary-actions__copy p {
    margin: 6px 0 0;
    color: var(--muted);
    font-size: 0.94rem;
}

.report-summary-actions__buttons {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    flex-wrap: wrap;
}

.report-print-footer {
    display: none;
}

@media (max-width: 900px) {
    .report-print-summary--page {
        padding-inline: 0;
    }

    .report-print-card {
        border-radius: 24px;
    }

    .report-print-header {
        padding: 22px 18px 16px;
    }

    .report-print-header h1 {
        font-size: 1.45rem;
    }

    .report-print-metrics {
        padding-inline: 16px;
    }

    .report-print-metrics > div {
        padding-inline: 14px;
    }

    .report-print-table {
        width: calc(100% - 32px);
        margin-inline: 16px;
    }
}

@media (max-width: 640px) {
    .report-summary-actions {
        flex-direction: column;
        align-items: flex-start;
        padding: 16px 18px;
    }

    .report-summary-actions__buttons {
        width: 100%;
        justify-content: flex-start;
    }

    .report-print-metrics {
        grid-template-columns: 1fr;
        padding-top: 10px;
    }

    .report-print-metrics > div:nth-child(odd) {
        border-right: 0;
    }

    .report-print-table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
}

.badge {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 4px 9px;
    border-radius: 999px;
    color: var(--muted);
    background: var(--bg-soft);
    font-size: 0.78rem;
    font-weight: 800;
    white-space: nowrap;
}

.badge--accepted {
    color: var(--success);
    background: var(--success-soft);
}

.badge--pending {
    color: var(--warning);
    background: var(--warning-soft);
}

.badge--approved {
    color: var(--success);
    background: var(--success-soft);
}

.badge--rejected {
    color: var(--danger);
    background: var(--danger-soft);
}

.badge--inactive {
    color: var(--muted);
    background: #eef2f1;
}

.badge--low_accuracy,
.badge--invalid_sequence,
.badge--outside_radius,
.badge--no_active_assignment,
.badge--store_inactive,
.badge--store_location_pending {
    color: var(--warning);
    background: var(--warning-soft);
}

.login-shell {
    min-height: 100vh;
    display: grid;
    align-items: stretch;
    padding: 0;
    background:
        radial-gradient(circle at 12% 6%, rgba(79, 70, 229, 0.16), transparent 30%),
        linear-gradient(180deg, #edf4f0 0%, #f8faf8 44%, #eef3ef 100%);
}

.login-layout {
    width: 100%;
    min-height: 100vh;
    display: grid;
    grid-template-rows: auto 1fr;
}

.login-brand {
    position: relative;
    overflow: hidden;
    color: #ffffff;
    background:
        radial-gradient(circle at 82% 16%, rgba(255, 255, 255, 0.22), transparent 22%),
        linear-gradient(145deg, #312e81 0%, #4f46e5 62%, #6366f1 100%);
}

.login-brand::before,
.login-brand::after {
    content: "";
    position: absolute;
    border-radius: 999px;
    pointer-events: none;
}

.login-brand::before {
    width: 260px;
    height: 260px;
    right: -120px;
    top: -110px;
    border: 38px solid rgba(255, 255, 255, 0.1);
}

.login-brand::after {
    width: 220px;
    height: 220px;
    left: -116px;
    bottom: -132px;
    background: rgba(5, 43, 39, 0.36);
}

.login-brand__content {
    position: relative;
    z-index: 1;
    width: 100%;
    display: grid;
    gap: 16px;
    padding: 22px 20px 30px;
}

.login-brand__mark,
.login-mobile-brand img {
    display: grid;
    place-items: center;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.14);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.login-brand__mark {
    width: 70px;
    height: 70px;
    padding: 10px;
}

.login-brand__mark img,
.login-mobile-brand img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.login-brand .eyebrow,
.login-brand p {
    color: rgba(255, 255, 255, 0.82);
}

.login-brand h1 {
    max-width: 520px;
    margin-top: 8px;
    font-size: clamp(2rem, 10vw, 4.4rem);
    text-wrap: balance;
}

.login-brand__lead {
    max-width: 560px;
    margin: 10px 0 0;
    font-size: 0.98rem;
}

.login-brand__stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.login-brand__stats span,
.login-brand__points li {
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.login-brand__stats span {
    min-width: 0;
    padding: 10px;
}

.login-brand__stats strong,
.login-brand__stats small {
    display: block;
}

.login-brand__stats strong {
    color: #ffffff;
    font-size: 0.96rem;
    line-height: 1.1;
}

.login-brand__stats small {
    margin-top: 3px;
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.68rem;
    font-weight: 800;
}

.login-brand__points {
    display: grid;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.login-brand__points li {
    padding: 10px 12px;
    color: rgba(255, 255, 255, 0.92);
    font-size: 0.84rem;
    font-weight: 800;
}

.login-panel {
    display: grid;
    align-items: start;
    margin-top: -18px;
    padding: 0 12px 22px;
}

.login-panel__frame {
    width: min(460px, 100%);
    justify-self: center;
    padding: 18px;
    border: 1px solid rgba(197, 209, 203, 0.78);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 22px 54px rgba(16, 24, 40, 0.14);
    backdrop-filter: blur(18px);
}

.login-mobile-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
}

.login-mobile-brand img {
    width: 48px;
    height: 48px;
    padding: 7px;
    border-color: var(--border);
    background: var(--panel-muted);
}

.login-mobile-brand span,
.login-mobile-brand strong {
    display: block;
}

.login-mobile-brand span {
    color: var(--muted);
    font-size: 0.76rem;
    font-weight: 900;
    text-transform: uppercase;
}

.login-mobile-brand strong {
    color: var(--text);
    font-size: 1rem;
}

.login-panel__header p {
    margin: 7px 0 0;
    color: var(--muted);
}

.login-panel h2 {
    margin-top: 5px;
    font-size: clamp(1.7rem, 8vw, 2.35rem);
}

.login-form {
    margin-top: 18px;
    gap: 14px;
}

.login-form .field input {
    min-height: 50px;
    border-radius: 14px;
    padding: 12px 14px;
}

.password-field {
    position: relative;
}

.password-field input {
    padding-right: 72px;
}

.password-toggle {
    position: absolute;
    top: 50%;
    right: 7px;
    min-width: 54px;
    min-height: 36px;
    border: 1px solid var(--border);
    border-radius: 11px;
    color: var(--primary-strong);
    background: var(--primary-soft);
    cursor: pointer;
    font-size: 0.78rem;
    font-weight: 900;
    transform: translateY(-50%);
}

.login-submit {
    width: 100%;
    grid-column: 1 / -1;
    min-height: 52px;
    border-radius: 15px;
    font-size: 1rem;
    box-shadow: 0 14px 26px rgba(79, 70, 229, 0.22);
}

.login-form__meta,
.login-panel__meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.login-panel__meta {
    align-items: flex-start;
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}

.login-panel__note,
.login-panel__credit {
    margin: 0;
    color: var(--muted);
    font-size: 0.86rem;
}

.login-panel__credit a {
    color: var(--primary);
    font-weight: 800;
}

@media (min-width: 900px) {
    .login-shell {
        place-items: center;
        padding: 28px;
    }

    .login-layout {
        width: min(1080px, 100%);
        min-height: min(720px, calc(100vh - 56px));
        grid-template-columns: 1fr 0.86fr;
        grid-template-rows: none;
        overflow: hidden;
        border: 1px solid var(--border);
        border-radius: 28px;
        background: var(--panel);
        box-shadow: var(--shadow);
    }

    .login-brand {
        display: flex;
        align-items: flex-end;
    }

    .login-brand__content {
        gap: 22px;
        padding: 42px;
    }

    .login-brand__mark {
        width: 88px;
        height: 88px;
        padding: 12px;
    }

    .login-brand h1 {
        max-width: 560px;
        font-size: clamp(3rem, 5vw, 4.8rem);
    }

    .login-brand__lead {
        font-size: 1.05rem;
    }

    .login-panel {
        margin-top: 0;
        place-items: center;
        padding: 36px;
    }

    .login-panel__frame {
        padding: 0;
        border: 0;
        border-radius: 0;
        background: transparent;
        box-shadow: none;
        backdrop-filter: none;
    }

    .login-mobile-brand {
        display: none;
    }
}

.agent-dashboard {
    display: grid;
    gap: 16px;
}

.agent-hero {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    padding: 24px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background:
        linear-gradient(135deg, rgba(79, 70, 229, 0.12), rgba(255, 255, 255, 0) 58%),
        var(--panel);
    box-shadow: var(--shadow-sm);
}

.agent-hero__copy {
    min-width: 0;
}

.agent-hero h1 {
    margin-top: 8px;
    font-size: clamp(1.8rem, 6vw, 3rem);
    overflow-wrap: anywhere;
}

.agent-hero p {
    margin: 10px 0 0;
    color: var(--muted);
}

.agent-hero--smart {
    align-items: center;
    padding: 18px;
}

.agent-hero__status {
    display: grid;
    justify-items: end;
    gap: 6px;
    color: var(--muted);
    font-weight: 800;
    text-align: right;
}

.agent-hero__actions,
.empty-state__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.agent-switcher {
    padding: 16px;
}

.store-switcher-form {
    display: grid;
    gap: 8px;
}

.select-wrapper {
    position: relative;
}

.select-wrapper select {
    appearance: none;
    padding-right: 42px;
}

.select-arrow {
    position: absolute;
    top: 50%;
    right: 12px;
    width: 18px;
    height: 18px;
    color: var(--muted);
    pointer-events: none;
    transform: translateY(-50%);
}

.smart-store-strip {
    display: grid;
    grid-template-columns: 0.8fr 0.7fr 1.5fr;
    gap: 8px;
    padding: 8px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.72);
    box-shadow: var(--shadow-sm);
}

.smart-store-strip div {
    min-width: 0;
    padding: 9px 10px;
    border: 1px solid var(--border);
    border-radius: calc(var(--radius) - 6px);
    background: #ffffff;
}

.smart-store-strip span {
    display: block;
    color: var(--muted);
    font-size: 0.67rem;
    font-weight: 900;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.smart-store-strip strong {
    display: block;
    margin-top: 4px;
    overflow: hidden;
    font-size: 0.86rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.agent-section-tabs {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 8px;
    padding: 6px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.78);
    box-shadow: var(--shadow-sm);
}

.agent-section-tab {
    min-height: 38px;
    border: 0;
    border-radius: 999px;
    color: var(--muted);
    background: transparent;
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 900;
    transition: background 0.16s ease, color 0.16s ease, box-shadow 0.16s ease;
}

.agent-section-tab.is-active {
    color: #ffffff;
    background: var(--primary);
    box-shadow: 0 10px 20px rgba(79, 70, 229, 0.22);
}

.agent-section-panel[hidden] {
    display: none !important;
}

.agent-summary-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.summary-tile {
    min-width: 0;
    padding: 15px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--panel);
    box-shadow: var(--shadow-sm);
}

.summary-tile span {
    display: block;
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
}

.summary-tile strong {
    display: block;
    margin-top: 6px;
    overflow-wrap: anywhere;
}

.agent-workspace {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    align-items: start;
}

.agent-approval-notice {
    width: 100%;
    min-height: 62px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    border: 1px solid rgba(21, 115, 71, 0.22);
    border-radius: var(--radius);
    color: var(--success);
    background: var(--success-soft);
    cursor: pointer;
    text-align: left;
    box-shadow: var(--shadow-sm);
}

.agent-approval-notice--warning {
    color: var(--warning);
    border-color: rgba(154, 91, 0, 0.24);
    background: var(--warning-soft);
}

.agent-approval-notice strong,
.agent-approval-notice small {
    display: block;
}

.agent-approval-notice strong {
    font-weight: 900;
}

.agent-approval-notice small {
    margin-top: 3px;
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 800;
}

.panel-card {
    padding: 20px;
}

.panel-card__lead {
    margin: 14px 0 0;
    color: var(--muted);
}

.attendance-panel {
    display: grid;
    gap: 18px;
}

.attendance-panel--focus {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    padding: 22px;
    background:
        radial-gradient(circle at 50% 18%, rgba(79, 70, 229, 0.16), transparent 34%),
        linear-gradient(180deg, #ffffff 0%, #f7fbf9 100%);
    animation: panelRise 0.42s ease both;
}

.attendance-panel--focus::before {
    content: "";
    position: absolute;
    inset: -42% -30% auto;
    z-index: -1;
    height: 220px;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(79, 70, 229, 0.12), rgba(17, 94, 89, 0.02));
    filter: blur(4px);
    transform: rotate(-8deg);
}

.attendance-focus__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.attendance-focus__copy {
    display: grid;
    justify-items: center;
    gap: 8px;
    text-align: center;
}

.attendance-focus__copy h2 {
    margin: 0;
    color: var(--text);
    font-size: clamp(2rem, 13vw, 4.2rem);
    line-height: 0.95;
    letter-spacing: -0.05em;
}

.panel-card .attendance-focus__copy h2.attendance-focus__heading--compact {
    font-size: clamp(1.35rem, 6vw, 1.85rem);
    line-height: 1.15;
    letter-spacing: -0.02em;
}

.attendance-focus__copy p {
    max-width: 360px;
    margin: 0;
    color: var(--muted);
    font-size: 0.95rem;
}

.instruction-accent {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    margin: 3px;
    padding: 5px 9px;
    border: 1px solid transparent;
    border-radius: 999px;
    font-size: 0.84rem;
    font-weight: 900;
    white-space: nowrap;
}

.instruction-accent--teal {
    color: var(--primary-strong);
    border-color: rgba(79, 70, 229, 0.2);
    background: rgba(79, 70, 229, 0.11);
}

.instruction-accent--blue {
    color: #275c8f;
    border-color: rgba(39, 92, 143, 0.18);
    background: rgba(39, 92, 143, 0.1);
}

.instruction-accent--green {
    color: var(--success);
    border-color: rgba(21, 115, 71, 0.2);
    background: rgba(21, 115, 71, 0.11);
}

.instruction-accent--orange {
    color: #c2410c;
    border-color: rgba(194, 65, 12, 0.2);
    background: rgba(249, 115, 22, 0.13);
}

.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 28px;
    padding: 4px 9px;
    border-radius: 999px;
    color: var(--muted);
    background: var(--bg-soft);
    font-size: 0.78rem;
    font-weight: 800;
}

.status-pill--ready {
    color: var(--success);
    background: var(--success-soft);
}

.status-pill--neutral {
    color: var(--primary);
    background: rgba(79, 70, 229, 0.1);
}

.status-pill--warning {
    color: var(--warning);
    background: var(--warning-soft);
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: currentColor;
}

.status-dot--active {
    color: var(--success);
    box-shadow: 0 0 0 4px rgba(21, 115, 71, 0.12);
}

.geo-status {
    min-height: 46px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 13px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--muted);
    background: var(--panel-muted);
    font-size: 0.9rem;
}

.geo-status[hidden] {
    display: none;
}

.geo-status svg {
    width: 18px;
    height: 18px;
}

.geo-status--working svg {
    animation: punchSpin 0.8s linear infinite;
}

.geo-status--sm {
    min-height: 0;
    padding: 10px 12px;
    font-size: 0.84rem;
}

.geo-status--working {
    color: var(--info);
    border-color: rgba(39, 92, 143, 0.24);
    background: var(--info-soft);
}

.geo-status--success {
    color: var(--success);
    border-color: rgba(21, 115, 71, 0.24);
    background: var(--success-soft);
}

.geo-status--error {
    color: var(--danger);
    border-color: rgba(180, 35, 24, 0.24);
    background: var(--danger-soft);
}

.gps-accuracy-indicator {
    display: grid;
    grid-template-columns: auto auto;
    align-items: center;
    justify-content: center;
    gap: 3px 10px;
    max-width: 360px;
    justify-self: center;
    padding: 9px 12px;
    border: 1px solid var(--border);
    border-radius: 999px;
    color: var(--muted);
    background: rgba(255, 255, 255, 0.82);
    font-size: 0.82rem;
    font-weight: 900;
}

.gps-accuracy-indicator__label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.gps-accuracy-indicator__label::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: currentColor;
}

.gps-accuracy-indicator strong {
    color: var(--text);
    font-size: 0.96rem;
}

.gps-accuracy-indicator small {
    grid-column: 1 / -1;
    color: var(--muted);
    font-size: 0.72rem;
    font-weight: 800;
    text-align: center;
}

.gps-accuracy-indicator--ready {
    color: var(--success);
    border-color: rgba(21, 115, 71, 0.24);
    background: var(--success-soft);
}

.gps-accuracy-indicator--weak {
    color: var(--warning);
    border-color: rgba(154, 91, 0, 0.24);
    background: var(--warning-soft);
}

.attendance-guide {
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 0.88rem;
    font-weight: 800;
}

.attendance-guide a {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.attendance-guide--ready {
    color: var(--success);
    border-color: rgba(21, 115, 71, 0.24);
    background: var(--success-soft);
}

.attendance-guide--warning {
    color: var(--warning);
    border-color: rgba(154, 91, 0, 0.24);
    background: var(--warning-soft);
}

.punch-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.punch-actions--single {
    grid-template-columns: 1fr;
    justify-items: center;
    padding: 8px 0 4px;
}

.punch-actions--single form {
    display: grid;
    justify-items: center;
    width: 100%;
}

.punch-btn {
    width: 100%;
    min-height: 72px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: 1px solid transparent;
    border-radius: var(--radius);
    cursor: pointer;
    font-size: 1.03rem;
    font-weight: 900;
    transition: background 0.16s ease, border-color 0.16s ease, transform 0.12s ease;
}

.punch-btn svg {
    width: 22px;
    height: 22px;
}

.punch-btn--in {
    color: #ffffff;
    background: var(--primary);
}

.punch-btn--in:hover {
    background: var(--primary-strong);
}

.punch-btn--out {
    color: var(--text);
    background: #ffffff;
    border-color: var(--border);
}

.punch-btn--out:hover {
    border-color: var(--border-strong);
    background: var(--panel-muted);
}

.punch-orb {
    position: relative;
    width: min(54vw, 188px);
    height: min(54vw, 188px);
    min-width: 148px;
    min-height: 148px;
    max-width: 188px;
    max-height: 188px;
    display: inline-flex;
    flex-direction: column;
    border-radius: 50%;
    overflow: visible;
    isolation: isolate;
    box-shadow: 0 22px 42px rgba(79, 70, 229, 0.26);
    animation: punchFloat 3.6s ease-in-out infinite;
}

.punch-orb::before {
    content: "";
    position: absolute;
    inset: -14px;
    z-index: -1;
    border: 1px solid currentColor;
    border-radius: inherit;
    opacity: 0.22;
    animation: punchPulse 2.2s ease-out infinite;
}

.punch-orb::after {
    content: "";
    position: absolute;
    inset: 16px;
    border: 3px solid rgba(255, 255, 255, 0.38);
    border-top-color: #ffffff;
    border-radius: inherit;
    opacity: 0;
    transform: scale(0.92);
    transition: opacity 0.16s ease;
}

.punch-orb small {
    display: block;
    margin-top: 3px;
    color: currentColor;
    font-size: 0.72rem;
    font-weight: 800;
    opacity: 0.78;
}

.punch-orb__time {
    display: block;
    font-size: clamp(1.5rem, 8vw, 2rem);
    line-height: 1;
    letter-spacing: -0.04em;
}

.punch-orb__zone {
    display: block;
    margin: 2px 0 7px;
    font-size: 0.58rem;
    font-weight: 900;
    letter-spacing: 0.1em;
    opacity: 0.72;
    text-transform: uppercase;
}

.punch-orb__label {
    display: block;
    max-width: 118px;
    margin-top: 8px;
    font-size: 0.96rem;
    line-height: 1.1;
}

.punch-timezone {
    max-width: 360px;
    justify-self: center;
    margin: -2px 0 0;
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 800;
    line-height: 1.45;
    text-align: center;
}

.punch-orb--in {
    color: #ffffff;
    background: linear-gradient(120deg, #6366f1, #8b5cf6, #4f46e5, #3730a3, #4338ca, #6366f1);
    background-size: 300% 300%;
    animation: punchFloat 3.6s ease-in-out infinite, punchGradientShift 8s ease infinite;
}

.punch-orb--out {
    color: #ffffff;
    background: linear-gradient(120deg, #f97316, #fb923c, #ea580c, #7c2d12, #c2410c, #f97316);
    background-size: 300% 300%;
    box-shadow: 0 22px 42px rgba(194, 65, 12, 0.24);
    animation: punchFloat 3.6s ease-in-out infinite, punchGradientShift 8s ease infinite;
}

@keyframes punchGradientShift {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.punch-orb:hover {
    transform: translateY(-2px) scale(1.01);
}

.punch-orb.is-loading {
    cursor: wait;
    animation: none;
}

.punch-orb.is-loading::before {
    animation-duration: 1s;
}

.punch-orb.is-loading::after {
    opacity: 1;
    animation: punchSpin 0.78s linear infinite;
}

.punch-orb.is-loading .punch-orb__time,
.punch-orb.is-loading .punch-orb__zone,
.punch-orb.is-loading small {
    opacity: 0.34;
}

.punch-orb--gps-blocked {
    cursor: not-allowed;
    filter: grayscale(0.18);
}

.punch-orb--gps-blocked .punch-orb__label {
    color: rgba(255, 255, 255, 0.92);
}

.attendance-panel--primary {
    border-color: rgba(79, 70, 229, 0.18);
    box-shadow: 0 18px 38px rgba(15, 23, 42, 0.08);
}

@keyframes panelRise {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes punchPulse {
    0% {
        opacity: 0.3;
        transform: scale(0.92);
    }

    70% {
        opacity: 0;
        transform: scale(1.16);
    }

    100% {
        opacity: 0;
        transform: scale(1.16);
    }
}

@keyframes punchFloat {
    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-5px);
    }
}

@keyframes punchSpin {
    to {
        transform: rotate(360deg);
    }
}

.store-panel {
    display: grid;
    gap: 16px;
}

.location-notice {
    display: flex;
    gap: 10px;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--muted);
    background: var(--panel-muted);
    font-size: 0.88rem;
}

.location-notice svg {
    width: 18px;
    height: 18px;
    margin-top: 2px;
}

.location-notice--approved {
    color: var(--success);
    border-color: rgba(21, 115, 71, 0.24);
    background: var(--success-soft);
}

.location-notice--locked {
    color: var(--muted);
}

.refresh-action {
    display: grid;
    gap: 10px;
}

.store-meta-list {
    display: grid;
    gap: 0;
    margin: 0;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}

.store-meta-list div {
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr);
    gap: 12px;
    padding: 12px;
    border-bottom: 1px solid var(--border);
    background: #ffffff;
}

.store-meta-list div:last-child {
    border-bottom: 0;
}

.store-meta-list dt {
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 800;
}

.store-meta-list dd {
    min-width: 0;
    margin: 0;
    overflow-wrap: anywhere;
    font-weight: 700;
}

.activity-panel {
    display: grid;
    gap: 14px;
}

.agent-tools-panel {
    display: grid;
    gap: 14px;
}

.agent-tools-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.tool-card {
    width: 100%;
    min-height: 76px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text);
    background: #ffffff;
    cursor: pointer;
    text-align: left;
    text-decoration: none;
    box-shadow: var(--shadow-sm);
    transition: border-color 0.16s ease, transform 0.12s ease, box-shadow 0.16s ease;
}

.tool-card:hover {
    border-color: rgba(79, 70, 229, 0.28);
    box-shadow: 0 14px 26px rgba(15, 23, 42, 0.08);
    transform: translateY(-1px);
}

.tool-card--static {
    cursor: default;
}

.tool-card--static:hover {
    border-color: var(--border);
    box-shadow: var(--shadow-sm);
    transform: none;
}

.tool-card svg {
    width: 22px;
    height: 22px;
    flex: 0 0 auto;
    color: var(--primary);
}

.tool-card strong,
.tool-card small {
    display: block;
}

.tool-card strong {
    font-weight: 900;
}

.tool-card small {
    margin-top: 3px;
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 700;
}

.records-filter {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.records-filter input[type="date"] {
    min-height: 36px;
    max-width: 148px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 7px 9px;
    color: var(--text);
    background: #ffffff;
    font-size: 0.86rem;
    font-weight: 800;
}

.records-table-wrap {
    width: 100%;
    overflow-x: auto;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: #ffffff;
}

.special-travel-panel {
    display: grid;
    gap: 22px;
}

.special-travel-form {
    display: grid;
    gap: 18px;
}

.special-travel-history {
    display: grid;
    gap: 14px;
}

.special-travel-table {
    min-width: 860px;
}

.special-travel-page {
    display: grid;
    gap: 18px;
}

.special-travel-table-wrap {
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--panel);
}

.special-travel-review {
    display: grid;
    gap: 10px;
}

.special-travel-review summary {
    list-style: none;
}

.special-travel-review summary::-webkit-details-marker {
    display: none;
}

.special-travel-review__card {
    display: grid;
    gap: 14px;
    margin-top: 10px;
    padding: 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--panel-muted);
}

.special-travel-review__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.special-travel-review__grid div,
.special-travel-review__note {
    display: grid;
    gap: 4px;
}

.special-travel-review__grid span,
.special-travel-review__note span {
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.special-travel-review__grid strong,
.special-travel-review__note p {
    margin: 0;
}

.special-travel-review__grid small {
    color: var(--muted);
}

.special-travel-review__actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.special-travel-review__form {
    display: grid;
    gap: 12px;
    align-content: start;
}

@media (max-width: 900px) {
    .special-travel-review__grid,
    .special-travel-review__actions {
        grid-template-columns: 1fr;
    }
}

.records-table {
    width: 100%;
    min-width: 670px;
    border-collapse: collapse;
    font-size: 0.88rem;
}

.records-table th,
.records-table td {
    padding: 9px 10px;
    border-bottom: 1px solid var(--border);
    text-align: left;
    vertical-align: middle;
    white-space: nowrap;
}

.records-table th {
    color: var(--muted);
    background: var(--panel-muted);
    font-size: 0.72rem;
    font-weight: 900;
    text-transform: uppercase;
}

.records-table tr:last-child td {
    border-bottom: 0;
}

.selfie-link {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 4px 9px;
    border: 1px solid var(--border);
    border-radius: 999px;
    color: var(--primary-strong);
    background: var(--primary-soft);
    font-size: 0.76rem;
    font-weight: 900;
    text-decoration: none;
}

.selfie-link:hover {
    border-color: rgba(79, 70, 229, 0.3);
    background: #d9efeb;
}

.activity-list {
    display: grid;
    gap: 0;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}

.activity-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 13px;
    border-bottom: 1px solid var(--border);
    background: #ffffff;
}

.activity-item:last-child {
    border-bottom: 0;
}

.activity-item strong,
.activity-item span,
.activity-item time {
    display: block;
}

.activity-item span,
.activity-item time {
    color: var(--muted);
    font-size: 0.86rem;
}

.activity-item__meta {
    display: grid;
    justify-items: end;
    gap: 6px;
    text-align: right;
}

.setup-empty {
    padding: 34px 20px;
}

.setup-empty__form {
    width: min(360px, 100%);
}

.setup-empty__form .btn {
    width: 100%;
}

.empty-state {
    display: grid;
    justify-items: center;
    gap: 12px;
    text-align: center;
}

.empty-state__icon {
    width: 64px;
    height: 64px;
    display: grid;
    place-items: center;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--primary);
    background: var(--primary-soft);
}

.empty-state__icon svg {
    width: 34px;
    height: 34px;
}

.empty-state h2 {
    margin: 0;
}

.empty-state p {
    max-width: 440px;
    margin: 0;
    color: var(--muted);
}

.empty-state__hint {
    max-width: 360px;
    color: var(--primary-strong) !important;
    font-size: 0.86rem;
    font-weight: 800;
}

.modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 60;
    display: grid;
    place-items: center;
    padding: 18px;
    background: rgba(14, 24, 20, 0.52);
}

.modal-backdrop[hidden] {
    display: none;
}

.modal-card {
    width: min(440px, 100%);
    max-height: calc(100vh - 36px);
    overflow: auto;
    padding: 22px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--panel);
    box-shadow: var(--shadow);
}

.modal-card--wide {
    width: min(560px, 100%);
}

.modal-card--field-staff {
    width: min(680px, 100%);
    padding: 0;
    overflow: hidden;
}

.modal-card--help {
    width: min(420px, 100%);
}

.modal-card--notification {
    width: min(430px, 100%);
}

.modal-card--selfie {
    width: min(430px, 100%);
}

.modal-card--store-picker {
    width: min(460px, 100%);
}

.modal-card--map {
    width: min(920px, 100%);
}

.global-map-frame {
    width: 100%;
    height: min(68vh, 620px);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--panel-muted);
}

.modal-card__header--help {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
}

.modal-card__header h2 {
    margin: 4px 0 0;
}

.modal-card__body {
    color: var(--muted);
}

.about-app p {
    margin: 0 0 10px;
}

.about-app p:last-child {
    margin-bottom: 0;
}

.about-app strong {
    display: inline-block;
    min-width: 64px;
    color: var(--text);
}

.about-app a {
    color: var(--primary);
    font-weight: 700;
    word-break: break-all;
}

.modal-card__actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 18px;
}

.modal-card__actions--between {
    align-items: center;
    justify-content: space-between;
}

.selfie-camera {
    position: relative;
    display: grid;
    place-items: center;
    width: 100%;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background:
        linear-gradient(135deg, rgba(79, 70, 229, 0.14), rgba(10, 24, 20, 0.08)),
        #101815;
    aspect-ratio: 3 / 4;
}

.selfie-camera video,
.selfie-camera img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.selfie-actions {
    margin-top: 14px;
}

.attendance-store-picker {
    display: grid;
    gap: 12px;
}

.attendance-store-picker select {
    min-height: 210px;
    padding: 8px;
}

.attendance-store-picker option {
    padding: 9px 8px;
}

.attendance-store-summary {
    padding: 11px 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--muted);
    background: var(--panel-muted);
    font-size: 0.88rem;
    font-weight: 700;
}

.notification-list {
    display: grid;
    gap: 10px;
    margin-top: 16px;
}

.notification-item {
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--panel-muted);
}

.notification-item strong,
.notification-item p,
.notification-item__message {
    display: block;
}

.notification-item p,
.notification-item__message {
    margin: 4px 0 0;
    color: var(--muted);
    font-size: 0.92rem;
    line-height: 1.45;
}

.notification-item__emphasis {
    margin-right: 4px;
}

.notification-item__footer {
    margin-top: 6px;
    font-size: 0.84rem;
    font-style: italic;
}

.notification-item--success {
    border-color: rgba(21, 115, 71, 0.24);
    background: var(--success-soft);
}

.notification-item--success strong {
    color: var(--success);
}

.notification-item--danger {
    border-color: rgba(180, 35, 24, 0.24);
    background: var(--danger-soft);
}

.notification-item--danger strong {
    color: var(--danger);
}

.notification-item--warning {
    border-color: rgba(154, 91, 0, 0.24);
    background: var(--warning-soft);
}

.notification-item--warning strong {
    color: var(--warning);
}

.agent-store-form {
    display: grid;
    gap: 16px;
}

.approval-list {
    display: grid;
    gap: 16px;
    margin-top: 16px;
}

.approval-card {
    display: grid;
    gap: 14px;
    padding: 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: #ffffff;
    box-shadow: var(--shadow-sm);
}

.approval-card__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
}

.approval-card__header h2 {
    margin: 8px 0 4px;
}

.approval-card__header p {
    margin: 0;
    color: var(--muted);
}

.approval-metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.approval-metrics div,
.approval-details div {
    min-width: 0;
    padding: 10px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--panel-muted);
}

.approval-metrics span,
.approval-details dt {
    display: block;
    color: var(--muted);
    font-size: 0.74rem;
    font-weight: 900;
    text-transform: uppercase;
}

.approval-metrics strong,
.approval-details dd {
    display: block;
    margin: 4px 0 0;
    overflow-wrap: anywhere;
    font-weight: 900;
}

.approval-details {
    display: grid;
    grid-template-columns: minmax(140px, 0.7fr) minmax(0, 1.4fr) minmax(0, 1fr);
    gap: 10px;
    margin: 0;
}

.approval-details a {
    display: inline-flex;
    margin-left: 6px;
    color: var(--primary-strong);
    font-weight: 900;
}

.capture-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--panel-muted);
}

.capture-box strong,
.capture-box p {
    display: block;
}

.capture-box p {
    margin: 4px 0 0;
    color: var(--muted);
    font-size: 0.88rem;
}

.manual-timeout-panel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px;
    border: 1px solid rgba(154, 91, 0, 0.24);
    border-radius: var(--radius);
    background: var(--warning-soft);
}

.manual-timeout-panel strong,
.manual-timeout-panel p {
    display: block;
}

.manual-timeout-panel p {
    margin: 3px 0 0;
    color: var(--muted);
    font-size: 0.84rem;
}

.timeout-summary-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin: 16px 0;
}

.timeout-summary-grid--compact {
    gap: 8px;
}

.special-travel-date-filter {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px 18px;
    margin: 0 0 16px;
}

.special-travel-date-filter label {
    display: flex;
    align-items: center;
    gap: 8px;
}

.special-travel-date-filter label span {
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 700;
}

.special-travel-date-filter input[type="date"] {
    padding: 6px 10px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: #fff;
    color: var(--ink);
    font: inherit;
    font-size: 0.86rem;
}

.special-travel-date-clear {
    color: var(--primary);
    font-size: 0.82rem;
    font-weight: 800;
    text-decoration: underline;
}

.special-travel-summary-button.is-disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.timeout-request-header-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: wrap;
}

.timeout-summary-card {
    display: grid;
    gap: 4px;
    padding: 13px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text);
    background: var(--panel-muted);
    text-decoration: none;
}

.timeout-summary-card:hover,
.timeout-summary-card.is-active {
    border-color: rgba(79, 70, 229, 0.28);
    background: var(--primary-soft);
}

.timeout-summary-card span {
    color: var(--muted);
    font-size: 0.76rem;
    font-weight: 900;
    text-transform: uppercase;
}

.timeout-summary-card strong {
    font-size: 1.45rem;
    line-height: 1;
}

.timeout-repeat-panel {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding: 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--panel-muted);
}

.timeout-repeat-panel--compact {
    padding: 12px;
}

.timeout-repeat-panel h2 {
    margin: 4px 0 0;
    font-size: 1rem;
}

.timeout-repeat-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
}

.timeout-repeat-list span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 10px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: #ffffff;
    font-size: 0.84rem;
}

.timeout-open-panel {
    gap: 1rem;
}

.timeout-open-list {
    display: grid;
    gap: 0.875rem;
}

.timeout-open-card {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1.2fr) minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 0.75rem;
    padding: 0.95rem 1rem;
    border: 1px solid rgba(16, 117, 110, 0.14);
    border-radius: 18px;
    background: #ffffff;
}

.timeout-open-card strong,
.timeout-open-card small {
    display: block;
}

.timeout-open-card small {
    color: var(--muted);
}

.timeout-open-card__action {
    display: flex;
    justify-content: flex-end;
}

.timeout-request-card--pending {
    border-color: rgba(154, 91, 0, 0.26);
    box-shadow: 0 0 0 3px rgba(154, 91, 0, 0.06), var(--shadow-sm);
}

.timeout-request-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.timeout-request-details {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, 1fr);
}

.timeout-table-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    color: var(--muted);
    font-size: 0.82rem;
}

.timeout-table-toolbar span {
    color: var(--text);
    font-weight: 800;
}

.timeout-records-table-wrap {
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--panel);
}

.timeout-records-table {
    min-width: 920px;
}

.timeout-records-table td {
    vertical-align: middle;
}

.timeout-records-table tr.is-pending td {
    background: rgba(154, 91, 0, 0.035);
}

.timeout-table__agent strong,
.timeout-records-table td strong,
.timeout-records-table td small {
    display: block;
}

.timeout-records-table td small {
    margin-top: 2px;
    color: var(--muted);
    font-size: 0.73rem;
}

.timeout-table__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.timeout-detail-modal {
    width: min(760px, 100%);
}

.timeout-detail-body {
    display: grid;
    gap: 12px;
}

.timeout-detail-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.timeout-detail-grid > div {
    min-width: 0;
    padding: 10px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--panel-muted);
}

.timeout-detail-grid span,
.timeout-detail-grid small {
    display: block;
    color: var(--muted);
    font-size: 0.75rem;
}

.timeout-detail-grid strong {
    display: block;
    margin: 4px 0 2px;
    overflow-wrap: anywhere;
}

.stores-compact-filters {
    grid-template-columns: minmax(220px, 1fr) auto;
}

.stores-table-toolbar {
    margin-top: 12px;
}

.stores-records-table-wrap {
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--panel);
}

.stores-records-table {
    min-width: 780px;
}

.approval-records-table {
    min-width: 860px;
}

.approval-mini-log-table {
    min-width: 720px;
}

.stores-records-table td {
    vertical-align: middle;
}

.approval-records-table td,
.approval-mini-log-table td {
    vertical-align: middle;
}

.stores-records-table td strong,
.stores-records-table td small,
.approval-records-table td strong,
.approval-records-table td small {
    display: block;
}

.stores-records-table td small,
.approval-records-table td small {
    margin-top: 2px;
    color: var(--muted);
    font-size: 0.73rem;
}

.stores-action-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
}

.store-detail-staff {
    display: grid;
    gap: 8px;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: #ffffff;
}

.store-detail-staff > span {
    color: var(--muted);
    font-size: 0.74rem;
    font-weight: 900;
    text-transform: uppercase;
}

.store-detail-staff .staff-pill {
    width: fit-content;
}

.timeout-letter,
.timeout-review-note {
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: #ffffff;
}

.timeout-letter span {
    display: block;
    color: var(--muted);
    font-size: 0.74rem;
    font-weight: 900;
    text-transform: uppercase;
}

.timeout-letter p,
.timeout-review-note p {
    margin: 5px 0 0;
    white-space: pre-wrap;
}

.timeout-letter--muted {
    background: var(--panel-muted);
}

.timeout-review-note {
    display: grid;
    gap: 3px;
    color: var(--muted);
    background: var(--panel-muted);
}

.timeout-review-note strong {
    color: var(--text);
}

@media (max-width: 940px) {
    .nav {
        overflow-x: auto;
    }

    .stats-grid,
    .agent-summary-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

    .agent-workspace,
    .login-layout {
        grid-template-columns: 1fr;
    }

    .login-brand {
        min-height: 360px;
    }
}

@media (max-width: 680px) {
    body {
        font-size: 15px;
    }

    .container {
        width: min(100% - 24px, var(--container));
    }

    .page {
        padding-top: 10px;
        padding-bottom: 28px;
    }

    .topbar__inner {
        min-height: 62px;
    }

    .topbar__inner,
    .topbar__actions,
    .panel__header--between,
    .panel-card__header--between,
    .agent-hero,
    .activity-item,
    .assignment-setup-card__header,
    .capture-box {
        align-items: stretch;
        flex-direction: column;
    }

    .nav {
        width: 100%;
        order: 3;
    }

    .agent-hero,
    .panel-card,
    .panel,
    .hero {
        padding: 12px;
    }

    .agent-dashboard {
        gap: 10px;
    }

    .agent-hero {
        gap: 10px;
    }

    .agent-hero--smart {
        align-items: center;
        flex-direction: row;
    }

    .agent-hero h1 {
        margin-top: 4px;
        font-size: 1.32rem;
    }

    .agent-hero p {
        margin-top: 5px;
        font-size: 0.84rem;
    }

    .agent-hero__status {
        justify-items: end;
        gap: 4px;
        font-size: 0.78rem;
    }

    .agent-hero__actions {
        width: auto;
        flex-direction: row;
        align-items: center;
        gap: 6px;
    }

    .agent-hero__actions .btn {
        width: auto;
        min-height: 32px;
        padding: 6px 8px;
        font-size: 0.76rem;
    }

    .agent-hero__actions svg {
        width: 14px;
        height: 14px;
    }

    .empty-state__actions,
    .form-actions,
    .modal-card__actions {
        width: 100%;
        flex-direction: column;
    }

    .empty-state__actions .btn,
    .form-actions .button,
    .modal-card__actions .button,
    .capture-box .btn {
        width: 100%;
    }

    .modal-card--field-staff {
        width: min(100%, 520px);
    }

    .field-staff-modal__header,
    .field-staff-create-form .form-grid,
    .field-staff-modal__actions {
        padding-left: 18px;
        padding-right: 18px;
    }

    .field-staff-create-form .form-grid {
        grid-template-columns: 1fr;
    }

    .payroll-picker {
        grid-template-columns: 1fr;
    }

    .field-staff-modal__actions {
        flex-direction: column-reverse;
    }

    .field-staff-privacy-card {
        margin-inline: 18px;
    }

    .field-staff-privacy-card dl {
        grid-template-columns: 1fr;
    }

    .manual-timeout-panel,
    .timeout-repeat-panel,
    .timeout-table-toolbar,
    .timeout-request-header-actions,
    .timeout-request-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .timeout-open-card {
        grid-template-columns: 1fr;
    }

    .timeout-open-card__action {
        justify-content: stretch;
    }

    .manual-timeout-panel .button,
    .timeout-request-actions .button,
    .timeout-open-card__action .button {
        width: 100%;
    }

    .stats-grid,
    .form-grid,
    .store-summary,
    .timeout-summary-grid {
        grid-template-columns: 1fr;
    }

    .stores-compact-filters {
        grid-template-columns: 1fr;
    }

    .timeout-detail-grid {
        grid-template-columns: 1fr;
    }

    .timeout-records-table,
    .stores-records-table,
    .approval-records-table,
    .approval-mini-log-table {
        min-width: 760px;
    }

    .stores-action-row {
        align-items: stretch;
        flex-direction: column;
    }

    .stores-action-row .button,
    .stores-action-row .icon-button {
        width: 100%;
    }

    .filters,
    .filters--wide,
    .report-filters {
        grid-template-columns: 1fr;
    }

    .assignment-setup-card__grid,
    .form-grid--modal {
        grid-template-columns: 1fr;
    }

    .filters .button,
    .report-filters .button {
        width: 100%;
        justify-self: stretch;
    }

    .report-hero {
        align-items: stretch;
        flex-direction: column;
        padding: 14px;
    }

    .report-period-switch {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .report-tabs {
        gap: 4px;
        padding: 4px;
    }

    .report-tab {
        min-height: 38px;
        padding: 7px 5px;
        font-size: 0.74rem;
    }

    .report-tab small {
        max-width: 24ch;
        font-size: 0.64rem;
    }

    .report-agent-nav {
        grid-template-columns: 1fr;
    }

    .report-agent-nav .button:first-child,
    .report-agent-nav .button:last-child {
        width: 100%;
        justify-self: stretch;
    }

    .report-agent-nav__position {
        order: -1;
        text-align: center;
    }

    .report-next-agent {
        align-items: stretch;
        flex-direction: column;
    }

    .report-region-filter__buttons {
        min-height: 42px;
    }

    .report-summary-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }

    .report-metric-card {
        padding: 12px;
    }

    .report-metric-card strong {
        font-size: 1.16rem;
    }

    .report-table {
        min-width: 820px;
        font-size: 0.82rem;
    }

    .report-table th,
    .report-table td {
        padding: 9px 8px;
    }

    .agent-summary-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }

    .smart-store-strip {
        grid-template-columns: 0.75fr 0.7fr 1.55fr;
        gap: 6px;
        padding: 6px;
    }

    .smart-store-strip div {
        padding: 7px 8px;
        border-radius: 12px;
    }

    .smart-store-strip span {
        font-size: 0.62rem;
    }

    .smart-store-strip strong {
        margin-top: 2px;
        font-size: 0.76rem;
    }

    .agent-section-tabs {
        gap: 4px;
        padding: 4px;
    }

    .agent-section-tab {
        min-height: 34px;
        font-size: 0.74rem;
    }

    .summary-tile {
        padding: 9px;
    }

    .summary-tile span {
        font-size: 0.68rem;
    }

    .summary-tile strong {
        margin-top: 3px;
        font-size: 0.84rem;
    }

    .agent-workspace {
        gap: 10px;
    }

    .panel-card__header {
        gap: 8px;
    }

    .attendance-panel--focus {
        padding: 14px;
        gap: 14px;
    }

    .attendance-focus__copy h2 {
        font-size: clamp(2.35rem, 17vw, 3.45rem);
    }

    .attendance-focus__copy p {
        font-size: 0.86rem;
    }

    .instruction-accent {
        min-height: 25px;
        margin: 2px;
        padding: 4px 8px;
        font-size: 0.76rem;
    }

    .panel-card h2 {
        margin-top: 3px;
        font-size: 1rem;
    }

    .panel-card .attendance-focus__copy h2 {
        margin: 0;
        font-size: clamp(2.35rem, 17vw, 3.45rem);
    }

    .panel-card__lead,
    .location-notice,
    .geo-status {
        font-size: 0.82rem;
    }

    .geo-status {
        min-height: 38px;
        padding: 9px 10px;
    }

    .punch-actions {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }

    .punch-actions.punch-actions--single {
        grid-template-columns: 1fr;
        padding: 6px 0 2px;
    }

    .punch-btn {
        min-height: 52px;
        gap: 7px;
        font-size: 0.88rem;
    }

    .punch-orb {
        width: min(58vw, 174px);
        height: min(58vw, 174px);
        min-width: 142px;
        min-height: 142px;
        gap: 6px;
        font-size: 0.96rem;
    }

    .punch-orb svg {
        width: 30px;
        height: 30px;
        margin-bottom: 4px;
    }

    .punch-orb__label {
        max-width: 104px;
        font-size: 0.9rem;
    }

    .punch-orb__time {
        font-size: 1.58rem;
    }

    .punch-orb__zone {
        margin-bottom: 5px;
        font-size: 0.54rem;
    }

    .punch-timezone {
        font-size: 0.74rem;
    }

    .punch-btn svg {
        width: 18px;
        height: 18px;
    }

    .punch-btn.punch-orb svg {
        width: 30px;
        height: 30px;
    }

    .store-panel {
        gap: 10px;
    }

    .agent-tools-grid {
        grid-template-columns: 1fr;
    }

    .tool-card {
        min-height: 64px;
        padding: 10px;
    }

    .store-meta-list div {
        padding: 9px;
    }

    .records-filter {
        width: 100%;
        justify-content: space-between;
    }

    .records-filter input[type="date"] {
        max-width: none;
        flex: 1;
        min-height: 34px;
        font-size: 0.8rem;
    }

    .records-table {
        min-width: 600px;
        font-size: 0.8rem;
    }

    .records-table th,
    .records-table td {
        padding: 8px;
    }

    .badge {
        min-height: 23px;
        padding: 3px 7px;
        font-size: 0.72rem;
    }

    .icon-help {
        width: 28px;
        height: 28px;
        font-size: 0.78rem;
    }

    .store-meta-list div {
        grid-template-columns: 1fr;
        gap: 4px;
    }

    .activity-item__meta {
        justify-items: start;
        text-align: left;
    }

    .login-shell {
        padding: 0;
    }

    .login-layout {
        min-height: 100vh;
        border-radius: 0;
        border: 0;
    }

    .login-brand {
        min-height: auto;
    }

    .login-brand__content {
        padding: 20px 16px 36px;
    }

    .login-panel {
        padding: 0 12px 22px;
    }

    .login-panel__frame {
        padding: 16px;
        border-radius: 22px;
    }

    .login-brand__points {
        display: none;
    }

    .login-brand__stats {
        gap: 6px;
    }

    .login-brand__stats span {
        padding: 8px;
    }

    .login-panel__meta {
        flex-direction: column;
        gap: 8px;
    }

    .modal-backdrop {
        align-items: end;
        padding: 12px;
    }

    .modal-card {
        width: 100%;
        max-height: calc(100vh - 24px);
        padding: 16px;
    }

    .modal-card--help,
    .modal-card--selfie,
    .modal-card--store-picker,
    .modal-card--notification {
        border-bottom-right-radius: 0;
        border-bottom-left-radius: 0;
    }

    .notification-item {
        padding: 10px;
    }

    .notification-item p {
        font-size: 0.86rem;
    }

    .approval-card {
        padding: 12px;
    }

    .approval-card__header {
        align-items: stretch;
        flex-direction: column;
    }

    .approval-metrics,
    .approval-details,
    .timeout-request-details {
        grid-template-columns: 1fr;
    }
}

.permission-checklist {
    display: grid;
    gap: 10px;
    padding: 14px;
    border: 1px solid rgba(79, 70, 229, 0.16);
    border-radius: 18px;
    background: rgba(248, 252, 250, 0.92);
}

.permission-checklist__header {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 12px;
}

.permission-checklist__header strong,
.permission-checklist__header small {
    display: block;
}

.permission-checklist__header small,
.permission-check small {
    color: var(--muted);
    font-size: 0.82rem;
}

.permission-check {
    display: grid;
    grid-template-columns: 18px 1fr;
    align-items: start;
    gap: 10px;
    padding: 10px;
    border: 1px solid rgba(220, 228, 223, 0.9);
    border-radius: 14px;
    background: #fff;
}

.permission-check input,
.permission-pill input {
    accent-color: var(--primary);
}

.permission-check-all {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 32px;
    padding: 6px 10px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: #ffffff;
    color: var(--primary-strong);
    font-size: 0.8rem;
    font-weight: 900;
    white-space: nowrap;
}

.permission-check-all input {
    accent-color: var(--primary);
}

.permission-check strong,
.permission-check small {
    display: block;
}

.permission-checklist--compact {
    gap: 12px;
    padding: 12px;
    border-radius: 16px;
}

.permission-checklist--compact .permission-checklist__header {
    align-items: center;
}

.permission-checklist__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 8px;
}

.permission-check--compact {
    display: flex;
    align-items: center;
    min-height: 42px;
    padding: 8px 10px;
    border-radius: 12px;
}

.permission-check--compact span {
    font-size: 0.86rem;
    font-weight: 800;
}

.module-chip-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    max-width: 360px;
}

.module-chip {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 4px 8px;
    border: 1px solid rgba(79, 70, 229, 0.12);
    border-radius: 999px;
    background: rgba(240, 253, 250, 0.78);
    color: var(--primary-strong);
    font-size: 0.74rem;
    font-weight: 800;
    line-height: 1;
}

.module-chip--gold {
    border-color: rgba(245, 158, 11, 0.24);
    background: rgba(255, 251, 235, 0.92);
    color: #92400e;
}

.module-chip--muted {
    border-color: rgba(220, 228, 223, 0.9);
    background: #fff;
    color: var(--muted);
}

.activity-log-panel {
    display: grid;
    gap: 14px;
}

.activity-log-filters {
    grid-template-columns: minmax(220px, 1fr) minmax(150px, auto) minmax(140px, auto) auto auto;
    gap: 8px;
    align-items: center;
}

.activity-log-table-wrap {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--panel);
}

.activity-log-table {
    font-size: 0.86rem;
}

.activity-log-table th,
.activity-log-table td {
    padding: 9px 10px;
    vertical-align: middle;
}

.activity-log-table td strong,
.activity-log-table td small {
    display: block;
}

.activity-log-table td small {
    margin-top: 2px;
    color: var(--muted);
    font-size: 0.74rem;
}

.activity-action {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 4px 8px;
    border-radius: 999px;
    background: rgba(240, 253, 250, 0.88);
    color: var(--primary-strong);
    font-size: 0.74rem;
    font-weight: 900;
}

.activity-action--created,
.activity-action--approved,
.activity-action--reactivated {
    background: var(--success-soft);
    color: var(--success);
}

.activity-action--updated {
    background: var(--primary-soft);
    color: var(--primary-strong);
}

.activity-action--deactivated,
.activity-action--declined,
.activity-action--rejected,
.activity-action--deleted {
    background: var(--danger-soft);
    color: var(--danger);
}

.delete-confirm-note {
    color: var(--muted);
    line-height: 1.55;
}

@media (max-width: 860px) {
    .activity-log-filters {
        grid-template-columns: 1fr;
    }
}

.privilege-panel .panel__header p {
    max-width: 700px;
}

.privilege-table-wrap {
    margin-top: 14px;
}

.privilege-table td {
    vertical-align: top;
}

.privilege-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    max-width: 760px;
}

.permission-pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 10px;
    border: 1px solid rgba(220, 228, 223, 0.96);
    border-radius: 999px;
    background: #fff;
    color: var(--text);
    font-size: 0.82rem;
    font-weight: 800;
    white-space: nowrap;
}

.privilege-full-access {
    display: grid;
    gap: 3px;
    max-width: 440px;
    padding: 10px 12px;
    border: 1px solid rgba(245, 158, 11, 0.22);
    border-radius: 14px;
    background: rgba(255, 251, 235, 0.84);
    color: #854d0e;
}

.privilege-full-access small {
    color: #92400e;
}

@media (max-width: 760px) {
    .privilege-grid {
        display: grid;
        grid-template-columns: 1fr;
    }

    .permission-pill {
        justify-content: flex-start;
        white-space: normal;
    }
}

@media (max-width: 420px) {
    .smart-store-strip {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .smart-store-strip div:last-child {
        grid-column: 1 / -1;
    }

    .agent-section-tab {
        font-size: 0.7rem;
    }
}

/* Black and orange redesign layer: clean shared surfaces, navigation, forms, tables, and motion. */
.topbar {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(8, 8, 8, 0.9);
    box-shadow: 0 14px 38px rgba(0, 0, 0, 0.36);
}

.topbar::after {
    position: absolute;
    right: 0;
    bottom: -1px;
    left: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(249, 115, 22, 0.72), transparent);
    content: "";
}

.topbar__inner {
    min-height: 74px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #ffffff;
    letter-spacing: -0.02em;
}

.brand::before {
    width: 36px;
    height: 36px;
    display: inline-grid;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 14px;
    color: #ffffff;
    background:
        radial-gradient(circle at 32% 26%, rgba(255, 255, 255, 0.24), transparent 30%),
        linear-gradient(135deg, #fb923c, #f97316 58%, #c2410c);
    box-shadow: 0 10px 26px rgba(249, 115, 22, 0.25);
    content: "SQI";
    font-size: 0.64rem;
    font-weight: 900;
}

.nav {
    max-width: 100%;
    padding: 6px;
    overflow-x: auto;
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.055);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
    scrollbar-width: none;
}

.nav::-webkit-scrollbar {
    display: none;
}

.nav a {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 1px solid transparent;
    border-radius: 999px;
    color: #c8beb2;
    white-space: nowrap;
    transition: color 0.18s ease, background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.nav a:hover {
    color: #ffffff;
    border-color: rgba(249, 115, 22, 0.28);
    background: rgba(249, 115, 22, 0.08);
    transform: translateY(-1px);
}

.nav a.active {
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.16);
    background: linear-gradient(135deg, #fb923c, #f97316 58%, #c2410c);
    box-shadow: 0 10px 24px rgba(249, 115, 22, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

.nav a.nav-link--alert {
    color: #ffffff;
    border-color: rgba(251, 191, 36, 0.3);
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.24), rgba(251, 191, 36, 0.12));
    animation: navAlertGlow 1.8s ease-in-out infinite alternate;
}

.nav-badge {
    color: #111111;
    background: #fb923c;
    box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.13);
}

.topbar__actions,
.agent-topbar {
    color: var(--text);
}

.user-chip {
    padding: 8px 11px;
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.055);
}

.agent-topbar {
    padding: 8px 0;
}

.agent-topbar__greeting {
    padding-left: 2px;
}

.agent-topbar strong,
.user-chip strong {
    color: #ffffff;
}

.page {
    animation: pageEnter 0.46s cubic-bezier(0.2, 0.82, 0.2, 1);
}

.panel,
.panel-card,
.stat-card,
.summary-tile,
.report-hero,
.report-next-agent,
.report-metric-card,
.report-table-wrap,
.records-table-wrap,
.timeout-records-table-wrap,
.stores-records-table-wrap,
.compact-table-wrap,
.approval-card,
.mobile-required-card,
.login-layout,
.login-panel__frame,
.modal-card,
.notification-item,
.capture-box,
.manual-timeout-panel,
.timeout-summary-card,
.timeout-repeat-panel,
.smart-store-strip,
.agent-approval-notice,
.attendance-panel--focus,
.attendance-panel--primary,
.agent-section-tabs,
.report-tabs,
.report-region-filter__buttons,
.gps-accuracy-indicator,
.geo-status,
.attendance-guide,
.tool-card,
.store-meta-list div,
.timeout-repeat-list span,
.store-detail-staff,
.timeout-letter,
.timeout-review-note,
.records-filter input[type="date"] {
    border-color: var(--border);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.025)), var(--panel);
    box-shadow: var(--shadow-sm);
    backdrop-filter: blur(12px);
}

.panel:hover,
.panel-card:hover,
.stat-card:hover,
.summary-tile:hover,
.report-table-wrap:hover,
.records-table-wrap:hover,
.timeout-records-table-wrap:hover,
.stores-records-table-wrap:hover,
.compact-table-wrap:hover {
    border-color: rgba(249, 115, 22, 0.34);
}

.panel,
.panel-card,
.stat-card,
.summary-tile,
.report-table-wrap,
.records-table-wrap,
.timeout-records-table-wrap,
.stores-records-table-wrap,
.compact-table-wrap,
.approval-card {
    animation: surfaceLift 0.42s cubic-bezier(0.2, 0.82, 0.2, 1) both;
}

.panel-card__lead,
.report-hero p,
.hero p,
.muted,
.empty-copy,
.table__empty,
.report-agent-nav__position,
.login-panel__header p,
.login-panel__note,
.login-panel__credit,
.agent-approval-notice small,
.capture-box p,
.manual-timeout-panel p,
.punch-timezone {
    color: var(--muted);
}

.eyebrow,
.table th,
.report-table th,
.records-table th,
.timeout-records-table th,
.stores-records-table th,
.approval-records-table th,
.compact-table th,
.report-filters label span,
.report-field > span,
.report-region-filter legend,
.stat-card span,
.summary-tile span,
.report-metric-card span,
.timeout-summary-card span {
    color: #f2b17a;
    letter-spacing: 0.05em;
}

.button,
.btn,
.icon-button,
.report-combobox__clear,
.agent-section-tab,
.report-tab,
.report-region-filter__button {
    transition: color 0.18s ease, background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.button,
.btn,
.icon-button {
    border-color: rgba(255, 255, 255, 0.09);
    color: var(--text);
    background: rgba(255, 255, 255, 0.065);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.button:hover,
.btn:hover,
.icon-button:hover {
    border-color: rgba(249, 115, 22, 0.34);
    background: rgba(249, 115, 22, 0.1);
    transform: translateY(-1px);
}

.tool-card:hover,
.timeout-summary-card:hover,
.timeout-summary-card.is-active {
    border-color: rgba(249, 115, 22, 0.34);
    background: rgba(249, 115, 22, 0.1);
    box-shadow: var(--shadow-sm);
}

.button--primary,
.btn--primary,
.report-summary-button,
.agent-section-tab.is-active,
.report-tab.is-active,
.report-region-filter__button.is-active,
.punch-btn--in,
.punch-orb--in {
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.12);
    background:
        radial-gradient(circle at 24% 22%, rgba(255, 255, 255, 0.22), transparent 28%),
        linear-gradient(135deg, #fb923c, #f97316 56%, #c2410c);
    box-shadow: 0 14px 34px rgba(249, 115, 22, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.button--primary:hover,
.btn--primary:hover,
.punch-btn--in:hover {
    background:
        radial-gradient(circle at 24% 22%, rgba(255, 255, 255, 0.28), transparent 28%),
        linear-gradient(135deg, #fdba74, #fb923c 48%, #ea580c);
}

.button--ghost,
.btn--ghost,
.punch-btn--out {
    border-color: rgba(255, 255, 255, 0.12);
    color: var(--text);
    background: rgba(255, 255, 255, 0.06);
}

.button--danger {
    color: #fff;
    background: linear-gradient(135deg, #e11d48, #be185d);
    border-color: rgba(251, 113, 133, 0.36);
}

.icon-help,
.status-pill,
.badge,
.nav-badge,
.agent-approval-notice,
.instruction-accent,
.gps-accuracy-indicator,
.geo-status,
.attendance-guide {
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.status-pill--ready,
.geo-status--success,
.gps-accuracy-indicator--ready,
.attendance-guide--ready,
.stat-card--success,
.notification-item--success {
    color: #86efac;
    border-color: rgba(52, 211, 153, 0.26);
    background: rgba(16, 185, 129, 0.14);
}

.status-pill--warning,
.geo-status--working,
.gps-accuracy-indicator--weak,
.attendance-guide--warning,
.stat-card--warning,
.notification-item--warning,
.manual-timeout-panel {
    color: #fde68a;
    border-color: rgba(251, 191, 36, 0.28);
    background: rgba(251, 191, 36, 0.13);
}

.geo-status--error,
.notification-item--danger {
    color: #fecdd3;
    border-color: rgba(251, 113, 133, 0.3);
    background: rgba(251, 113, 133, 0.14);
}

.field input,
.field select,
.field textarea,
.form-field input,
.form-field select,
.form-field textarea,
.filters input:not([type="checkbox"]):not([type="radio"]),
.filters select,
.filters textarea,
.report-combobox__control input,
.report-field input:not([type="checkbox"]):not([type="radio"]),
.report-field select,
.select-wrapper select,
input[type="date"],
input[type="datetime-local"],
input[type="email"],
input[type="number"],
input[type="password"],
input[type="search"],
input[type="text"],
textarea,
select {
    border-color: rgba(255, 255, 255, 0.11);
    color: var(--text);
    background: rgba(12, 12, 12, 0.72);
}

.field input::placeholder,
.field textarea::placeholder,
.report-combobox__control input::placeholder,
input::placeholder,
textarea::placeholder {
    color: rgba(250, 247, 242, 0.5);
}

.field input:focus,
.field select:focus,
.field textarea:focus,
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus,
.filters input:focus,
.filters select:focus,
.report-combobox__control input:focus,
.report-field input:focus,
.select-wrapper select:focus,
input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: rgba(249, 115, 22, 0.78);
    box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.14);
}

input[type="checkbox"],
input[type="radio"] {
    accent-color: var(--primary);
}

.report-combobox__list,
.dropdown-menu,
.select-list {
    border-color: rgba(255, 255, 255, 0.12);
    background: rgba(15, 15, 15, 0.98);
    box-shadow: var(--shadow);
}

.report-combobox__option {
    color: var(--text);
}

.report-combobox__option:hover,
.report-combobox__option.is-active {
    background: rgba(249, 115, 22, 0.12);
}

.report-combobox__option.is-selected {
    color: #ffffff;
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.88), rgba(194, 65, 12, 0.72));
}

.report-region-filter__buttons,
.agent-section-tabs,
.report-tabs {
    background: rgba(255, 255, 255, 0.055);
}

.report-tab,
.agent-section-tab,
.report-region-filter__button {
    color: #c8beb2;
}

.report-tab:hover,
.agent-section-tab:hover,
.report-region-filter__button:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.085);
}

.table-wrap,
.report-table-wrap,
.records-table-wrap,
.timeout-records-table-wrap,
.stores-records-table-wrap,
.compact-table-wrap {
    border-radius: var(--radius);
}

.table,
.report-table,
.records-table,
.timeout-records-table,
.stores-records-table,
.approval-records-table,
.compact-table {
    color: var(--text);
}

.table th,
.report-table th,
.records-table th,
.timeout-records-table th,
.stores-records-table th,
.approval-records-table th,
.compact-table th {
    background: rgba(249, 115, 22, 0.1);
}

.table td,
.report-table td,
.records-table td,
.timeout-records-table td,
.stores-records-table td,
.approval-records-table td,
.compact-table td {
    border-color: rgba(255, 255, 255, 0.08);
}

.table tbody tr,
.report-table tbody tr,
.records-table tbody tr,
.timeout-records-table tbody tr,
.stores-records-table tbody tr,
.approval-records-table tbody tr,
.compact-table tbody tr {
    transition: background 0.16s ease;
}

.table tbody tr:hover,
.report-table tbody tr:hover,
.records-table tbody tr:hover,
.timeout-records-table tbody tr:hover,
.stores-records-table tbody tr:hover,
.approval-records-table tbody tr:hover,
.compact-table tbody tr:hover {
    background: rgba(249, 115, 22, 0.07);
}

.report-table tbody tr.has-viewed-selfie,
.report-table tbody tr.has-viewed-selfie:hover {
    background: rgba(52, 211, 153, 0.1);
}

.hr-live-toast {
    border-color: rgba(249, 115, 22, 0.24);
    color: var(--text);
    background: rgba(15, 15, 15, 0.96);
    box-shadow: var(--shadow-lg);
    animation: toastIn 0.32s ease both;
}

.hr-live-toast strong,
.hr-live-toast a {
    color: #fb923c;
}

.modal-backdrop {
    background: rgba(0, 0, 0, 0.76);
    backdrop-filter: blur(10px);
    animation: fadeIn 0.18s ease both;
}

.modal-card {
    border-color: rgba(255, 255, 255, 0.12);
    background: linear-gradient(180deg, rgba(24, 24, 24, 0.98), rgba(10, 10, 10, 0.98));
    box-shadow: var(--shadow-lg);
    animation: modalRise 0.28s cubic-bezier(0.2, 0.82, 0.2, 1) both;
}

.global-map-frame {
    border-color: rgba(255, 255, 255, 0.1);
    background: rgba(8, 8, 8, 0.78);
}

.login-layout {
    overflow: hidden;
    border-color: rgba(255, 255, 255, 0.11);
    background: rgba(255, 255, 255, 0.03);
    box-shadow: var(--shadow-lg);
}

.login-brand {
    background:
        radial-gradient(circle at 82% 12%, rgba(249, 115, 22, 0.26), transparent 24rem),
        linear-gradient(145deg, rgba(9, 9, 9, 0.96), rgba(34, 18, 8, 0.9));
}

.login-brand::before {
    background: radial-gradient(circle, rgba(249, 115, 22, 0.18), transparent 64%);
}

.login-brand::after {
    background: radial-gradient(circle, rgba(251, 146, 60, 0.16), transparent 62%);
}

.login-panel {
    background: rgba(7, 7, 7, 0.34);
}

.login-panel__frame {
    background: rgba(255, 255, 255, 0.07);
}

.login-brand__stats span,
.login-brand__points li {
    background: rgba(255, 255, 255, 0.08);
}

.smart-store-strip div,
.approval-metrics div,
.approval-details div {
    border-color: rgba(255, 255, 255, 0.09);
    background: rgba(255, 255, 255, 0.055);
}

.attendance-panel--focus {
    background:
        radial-gradient(circle at 50% 0%, rgba(249, 115, 22, 0.16), transparent 34%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.025)),
        var(--panel);
}

.attendance-panel--focus::before {
    background: linear-gradient(90deg, rgba(249, 115, 22, 0.16), rgba(251, 146, 60, 0.06));
}

.instruction-accent--teal,
.instruction-accent--blue,
.instruction-accent--green,
.instruction-accent--orange {
    color: #ffffff;
    border-color: rgba(249, 115, 22, 0.22);
    background: rgba(249, 115, 22, 0.13);
}

.punch-orb {
    box-shadow: 0 24px 58px rgba(249, 115, 22, 0.24);
}

.punch-orb--out {
    background:
        radial-gradient(circle at 35% 25%, rgba(255, 255, 255, 0.28), transparent 28%),
        linear-gradient(145deg, #fdba74 0%, #f97316 50%, #9a3412 100%);
    box-shadow: 0 24px 58px rgba(249, 115, 22, 0.24);
}

a {
    color: #fb923c;
}

.empty-state,
.blank-state {
    color: var(--muted);
}

@keyframes nebulaDrift {
    from {
        transform: translate3d(0, 0, 0) rotate(-18deg) scale(1);
    }

    to {
        transform: translate3d(-3vw, 2vh, 0) rotate(-10deg) scale(1.05);
    }
}

@keyframes pageEnter {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes surfaceLift {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes modalRise {
    from {
        opacity: 0;
        transform: translateY(14px) scale(0.98);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes toastIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes navAlertGlow {
    from {
        box-shadow: 0 0 0 rgba(251, 191, 36, 0);
    }

    to {
        box-shadow: 0 0 28px rgba(251, 191, 36, 0.18);
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: 0.001ms !important;
    }
}

/* White minimalist revert layer. Keep the newer layout polish, but return to bright surfaces. */
.topbar {
    border-bottom: 1px solid rgba(220, 228, 223, 0.9);
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 10px 30px rgba(16, 24, 40, 0.08);
}

.topbar::after {
    background: linear-gradient(90deg, transparent, rgba(79, 70, 229, 0.32), transparent);
}

.brand {
    color: var(--text);
}

.brand::before {
    color: #ffffff;
    border-color: rgba(79, 70, 229, 0.18);
    background:
        radial-gradient(circle at 32% 26%, rgba(255, 255, 255, 0.22), transparent 30%),
        linear-gradient(135deg, #6366f1, #4f46e5 62%, #4338ca);
    box-shadow: 0 10px 22px rgba(79, 70, 229, 0.16);
}

.nav {
    border-color: var(--border);
    background: rgba(248, 250, 248, 0.86);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.nav a {
    color: var(--muted);
}

.nav a:hover {
    color: var(--primary-strong);
    border-color: rgba(79, 70, 229, 0.16);
    background: var(--primary-soft);
}

.nav a.active {
    color: var(--primary-strong);
    border-color: rgba(79, 70, 229, 0.16);
    background: var(--primary-soft);
    box-shadow: none;
}

.nav a.nav-link--alert {
    color: var(--warning);
    border-color: rgba(154, 91, 0, 0.18);
    background: var(--warning-soft);
}

.nav-badge {
    color: #ffffff;
    background: var(--danger);
    box-shadow: 0 0 0 4px rgba(180, 35, 24, 0.08);
}

.user-chip {
    border-color: var(--border);
    background: rgba(248, 250, 248, 0.82);
}

.agent-topbar strong,
.user-chip strong {
    color: var(--text);
}

.panel,
.panel-card,
.stat-card,
.summary-tile,
.report-hero,
.report-next-agent,
.report-metric-card,
.report-table-wrap,
.records-table-wrap,
.timeout-records-table-wrap,
.stores-records-table-wrap,
.compact-table-wrap,
.approval-card,
.mobile-required-card,
.login-layout,
.login-panel__frame,
.modal-card,
.notification-item,
.capture-box,
.manual-timeout-panel,
.timeout-summary-card,
.timeout-repeat-panel,
.smart-store-strip,
.agent-approval-notice,
.attendance-panel--focus,
.attendance-panel--primary,
.agent-section-tabs,
.report-tabs,
.report-region-filter__buttons,
.gps-accuracy-indicator,
.geo-status,
.attendance-guide,
.tool-card,
.store-meta-list div,
.timeout-repeat-list span,
.store-detail-staff,
.timeout-letter,
.timeout-review-note,
.records-filter input[type="date"] {
    border-color: var(--border);
    background: var(--panel);
    box-shadow: var(--shadow-sm);
    backdrop-filter: none;
}

.panel:hover,
.panel-card:hover,
.stat-card:hover,
.summary-tile:hover,
.report-table-wrap:hover,
.records-table-wrap:hover,
.timeout-records-table-wrap:hover,
.stores-records-table-wrap:hover,
.compact-table-wrap:hover,
.tool-card:hover,
.timeout-summary-card:hover,
.timeout-summary-card.is-active {
    border-color: rgba(79, 70, 229, 0.26);
    background: var(--panel);
}

.eyebrow,
.table th,
.report-table th,
.records-table th,
.timeout-records-table th,
.stores-records-table th,
.approval-records-table th,
.compact-table th,
.report-filters label span,
.report-field > span,
.report-region-filter legend,
.stat-card span,
.summary-tile span,
.report-metric-card span,
.timeout-summary-card span {
    color: var(--muted);
}

.button,
.btn,
.icon-button {
    border-color: var(--border);
    color: var(--text);
    background: var(--panel);
    box-shadow: none;
}

.button:hover,
.btn:hover,
.icon-button:hover {
    border-color: var(--border-strong);
    background: var(--panel-muted);
}

.button--primary,
.btn--primary,
.report-summary-button,
.agent-section-tab.is-active,
.report-tab.is-active,
.report-region-filter__button.is-active,
.punch-btn--in,
.punch-orb--in {
    color: #ffffff;
    border-color: var(--primary);
    background: var(--primary);
    box-shadow: 0 12px 26px rgba(79, 70, 229, 0.16);
}

.button--primary:hover,
.btn--primary:hover,
.punch-btn--in:hover {
    background: var(--primary-strong);
}

.button--ghost,
.btn--ghost,
.punch-btn--out {
    border-color: var(--border);
    color: var(--text);
    background: var(--panel);
}

.button--danger {
    color: #ffffff;
    background: var(--danger);
    border-color: var(--danger);
}

.status-pill--ready,
.geo-status--success,
.gps-accuracy-indicator--ready,
.attendance-guide--ready,
.stat-card--success,
.notification-item--success {
    color: var(--success);
    border-color: rgba(21, 115, 71, 0.24);
    background: var(--success-soft);
}

.status-pill--warning,
.geo-status--working,
.gps-accuracy-indicator--weak,
.attendance-guide--warning,
.stat-card--warning,
.notification-item--warning,
.manual-timeout-panel {
    color: var(--warning);
    border-color: rgba(154, 91, 0, 0.24);
    background: var(--warning-soft);
}

.geo-status--error,
.notification-item--danger {
    color: var(--danger);
    border-color: rgba(180, 35, 24, 0.24);
    background: var(--danger-soft);
}

.field input,
.field select,
.field textarea,
.form-field input,
.form-field select,
.form-field textarea,
.filters input:not([type="checkbox"]):not([type="radio"]),
.filters select,
.filters textarea,
.report-combobox__control input,
.report-field input:not([type="checkbox"]):not([type="radio"]),
.report-field select,
.select-wrapper select,
input[type="date"],
input[type="datetime-local"],
input[type="email"],
input[type="number"],
input[type="password"],
input[type="search"],
input[type="text"],
textarea,
select {
    border-color: var(--border);
    color: var(--text);
    background: #ffffff;
}

.field input::placeholder,
.field textarea::placeholder,
.report-combobox__control input::placeholder,
input::placeholder,
textarea::placeholder {
    color: #9aa7a1;
}

.field input:focus,
.field select:focus,
.field textarea:focus,
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus,
.filters input:focus,
.filters select:focus,
.report-combobox__control input:focus,
.report-field input:focus,
.select-wrapper select:focus,
input:focus,
textarea:focus,
select:focus {
    border-color: rgba(79, 70, 229, 0.52);
    box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.1);
}

.report-combobox__list,
.dropdown-menu,
.select-list {
    border-color: var(--border);
    background: #ffffff;
    box-shadow: var(--shadow);
}

.report-combobox__option {
    color: var(--text);
}

.report-combobox__option:hover,
.report-combobox__option.is-active,
.report-combobox__option.is-selected {
    color: var(--primary-strong);
    background: var(--primary-soft);
}

.report-region-filter__buttons,
.agent-section-tabs,
.report-tabs {
    background: #ffffff;
}

.report-tab,
.agent-section-tab,
.report-region-filter__button {
    color: var(--muted);
}

.report-tab:hover,
.agent-section-tab:hover,
.report-region-filter__button:hover {
    color: var(--primary-strong);
    background: var(--primary-soft);
}

.table,
.report-table,
.records-table,
.timeout-records-table,
.stores-records-table,
.approval-records-table,
.compact-table {
    color: var(--text);
}

.table th,
.report-table th,
.records-table th,
.timeout-records-table th,
.stores-records-table th,
.approval-records-table th,
.compact-table th {
    background: var(--panel-muted);
}

.table td,
.report-table td,
.records-table td,
.timeout-records-table td,
.stores-records-table td,
.approval-records-table td,
.compact-table td {
    border-color: var(--border);
}

.table tbody tr:hover,
.report-table tbody tr:hover,
.records-table tbody tr:hover,
.timeout-records-table tbody tr:hover,
.stores-records-table tbody tr:hover,
.approval-records-table tbody tr:hover,
.compact-table tbody tr:hover {
    background: #fbfdfb;
}

.report-table tbody tr.has-viewed-selfie,
.report-table tbody tr.has-viewed-selfie:hover {
    background: var(--success-soft);
}

.hr-live-toast {
    border-color: rgba(79, 70, 229, 0.2);
    color: var(--text);
    background: #ffffff;
    box-shadow: var(--shadow);
}

.hr-live-toast strong,
.hr-live-toast a {
    color: var(--primary-strong);
}

.modal-backdrop {
    background: rgba(15, 23, 42, 0.38);
    backdrop-filter: blur(8px);
}

.modal-card {
    border-color: var(--border);
    background: #ffffff;
    box-shadow: var(--shadow-lg);
}

.global-map-frame {
    border-color: var(--border);
    background: var(--panel-muted);
}

.login-layout {
    border-color: var(--border);
    background: #ffffff;
    box-shadow: var(--shadow);
}

.login-brand {
    background:
        radial-gradient(circle at 84% 12%, rgba(79, 70, 229, 0.18), transparent 24rem),
        linear-gradient(145deg, #312e81 0%, #4f46e5 62%, #6366f1 100%);
}

.login-brand::before {
    background: radial-gradient(circle, rgba(255, 255, 255, 0.18), transparent 64%);
}

.login-brand::after {
    background: radial-gradient(circle, rgba(255, 255, 255, 0.12), transparent 62%);
}

.login-panel {
    background: #ffffff;
}

.login-panel__frame {
    background: #ffffff;
}

.login-brand__stats span,
.login-brand__points li {
    background: rgba(255, 255, 255, 0.1);
}

.smart-store-strip div,
.approval-metrics div,
.approval-details div {
    border-color: var(--border);
    background: var(--panel-muted);
}

.attendance-panel--focus {
    background:
        radial-gradient(circle at 50% 0%, rgba(79, 70, 229, 0.12), transparent 34%),
        linear-gradient(180deg, #ffffff, #f9fcfa);
}

.attendance-panel--focus::before {
    background: linear-gradient(90deg, rgba(79, 70, 229, 0.1), rgba(79, 70, 229, 0.02));
}

.instruction-accent--teal,
.instruction-accent--blue,
.instruction-accent--green,
.instruction-accent--orange {
    color: var(--primary-strong);
    border-color: rgba(79, 70, 229, 0.16);
    background: var(--primary-soft);
}

.punch-orb {
    box-shadow: 0 22px 42px rgba(79, 70, 229, 0.22);
}

.punch-orb--out {
    background:
        radial-gradient(circle at 35% 25%, rgba(255, 255, 255, 0.28), transparent 28%),
        linear-gradient(145deg, #f97316 0%, #c2410c 60%, #7c2d12 100%);
    box-shadow: 0 22px 42px rgba(194, 65, 12, 0.2);
}

a {
    color: var(--primary-strong);
}

/* Professional HR navigation layout. */
.topbar .container {
    width: min(var(--container), calc(100% - 32px));
}

.topbar__inner--hr {
    display: grid;
    grid-template-columns: minmax(110px, auto) minmax(0, 1fr) fit-content(216px);
    align-items: center;
    gap: 10px;
    min-height: 72px;
}

.topbar__inner--hr .brand {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-width: 118px;
    font-size: 0.92rem;
    line-height: 1.15;
    white-space: normal;
}

.topbar__inner--hr .brand::before {
    display: none;
}

.brand--logo img {
    width: 34px;
    height: 34px;
    object-fit: contain;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.brand--logo span {
    font-weight: 900;
}

.brand--dev span {
    color: #b45309;
    background: #fef3c7;
    padding: 2px 8px;
    border-radius: 6px;
    letter-spacing: 0.03em;
}

.nav--hr {
    width: 100%;
    min-width: 0;
    justify-content: flex-start;
    gap: 2px;
    padding: 4px;
    border-radius: 999px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-behavior: smooth;
    scroll-padding-inline: 8px;
    scrollbar-width: none;
}

.nav--hr::-webkit-scrollbar {
    display: none;
}

.nav--hr a {
    min-height: 38px;
    flex: 0 0 auto;
    padding: 8px 10px;
    border-radius: 999px;
    font-size: 0.79rem;
    line-height: 1;
    white-space: nowrap;
}

.nav--hr a.active {
    font-weight: 900;
}

.nav--hr__section {
    display: contents;
}

.nav--hr__section-label {
    display: none;
}

.nav--hr__item {
    display: inline-flex;
    align-items: center;
}

.nav--hr__icon {
    width: 17px;
    height: 17px;
    flex: 0 0 17px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.nav--hr__label {
    min-width: 0;
}

.nav--hr .nav-badge {
    min-width: 18px;
    min-height: 18px;
    margin-left: 4px;
    padding: 1px 5px;
    font-size: 0.68rem;
}

.topbar__inner--hr .topbar__actions {
    justify-self: end;
    flex: 0 0 auto;
    min-width: 0;
    gap: 6px;
}

.hr-image-alert {
    position: relative;
}

.hr-browser-alert-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    width: 46px;
    min-width: 46px;
    padding-inline: 0;
    color: var(--primary-strong);
    border-color: rgba(79, 70, 229, 0.22);
    background: #ffffff;
}

.hr-browser-alert-button span {
    display: none;
}

.hr-browser-alert-button[hidden] {
    display: none;
}

.hr-browser-alert-button svg {
    width: 17px;
    height: 17px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2;
}

.hr-browser-alert-button.is-blocked {
    color: var(--danger);
    border-color: rgba(220, 38, 38, 0.22);
    background: var(--danger-soft);
    cursor: not-allowed;
}

.hr-browser-alert-button.is-enabled {
    color: var(--success);
    border-color: rgba(22, 163, 74, 0.22);
    background: var(--success-soft);
}

.hr-image-alert__button {
    position: relative;
    color: var(--danger);
    border-color: rgba(220, 38, 38, 0.28);
    background: var(--danger-soft);
    animation: hrImageBellPulse 1.15s ease-in-out infinite;
}

.hr-image-alert__button svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2;
}

.hr-image-alert__dot {
    position: absolute;
    top: 8px;
    right: 9px;
    width: 10px;
    height: 10px;
    border: 2px solid #ffffff;
    border-radius: 999px;
    background: var(--danger);
    box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.45);
    animation: hrImageDotBlink 0.9s ease-in-out infinite;
}

.hr-image-alert__count {
    position: absolute;
    top: -7px;
    right: -7px;
    min-width: 20px;
    min-height: 20px;
    display: inline-grid;
    place-items: center;
    padding: 2px 6px;
    border: 2px solid #ffffff;
    border-radius: 999px;
    color: #ffffff;
    background: var(--danger);
    font-size: 0.68rem;
    font-weight: 900;
    line-height: 1;
}

.hr-image-alert__panel {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    z-index: 80;
    width: min(390px, calc(100vw - 24px));
    overflow: hidden;
    border: 1px solid rgba(220, 38, 38, 0.22);
    border-radius: 18px;
    background: #ffffff;
    box-shadow: var(--shadow-lg);
}

.hr-image-alert__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 13px 14px;
    color: var(--danger);
    background: var(--danger-soft);
}

.hr-image-alert__header small,
.hr-image-alert__item small {
    color: var(--muted);
    font-size: 0.74rem;
    font-weight: 800;
}

.hr-image-alert__note {
    margin: 0;
    padding: 12px 14px;
    border-bottom: 1px solid var(--border);
    color: var(--muted);
    font-size: 0.82rem;
    line-height: 1.45;
}

.hr-image-alert__list {
    display: grid;
    gap: 6px;
    max-height: min(360px, 60vh);
    overflow-y: auto;
    padding: 8px;
}

.hr-image-alert__item {
    display: grid;
    gap: 3px;
    padding: 11px 12px;
    border: 1px solid rgba(245, 158, 11, 0.24);
    border-radius: 14px;
    background: #fffbeb;
}

.hr-image-alert__item.is-overdue {
    border-color: rgba(220, 38, 38, 0.24);
    background: var(--danger-soft);
}

.hr-image-alert__item strong {
    color: var(--text);
}

.hr-image-alert__item span {
    color: var(--danger);
    font-size: 0.8rem;
    font-weight: 900;
}

.hr-image-alert__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 6px;
}

.hr-image-alert__actions .button {
    min-height: 34px;
    padding: 7px 10px;
    border-radius: 10px;
    font-size: 0.76rem;
}

@keyframes hrImageBellPulse {
    0%,
    100% {
        transform: translateY(0);
        box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.18);
    }

    50% {
        transform: translateY(-1px);
        box-shadow: 0 0 0 7px rgba(220, 38, 38, 0);
    }
}

@keyframes hrImageDotBlink {
    0%,
    100% {
        opacity: 1;
        box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.45);
    }

    50% {
        opacity: 0.45;
        box-shadow: 0 0 0 6px rgba(220, 38, 38, 0);
    }
}

.topbar__inner--hr .user-chip {
    min-width: 96px;
    max-width: 120px;
    padding: 7px 8px;
    border-radius: 14px;
}

.topbar__inner--hr .user-chip strong {
    display: block;
    overflow: hidden;
    max-width: 96px;
    font-size: 0.78rem;
    line-height: 1.15;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.topbar__inner--hr .user-chip small {
    display: block;
    margin-top: 2px;
    font-size: 0.64rem;
}

.topbar__inner--hr .button {
    min-height: 42px;
    padding: 8px 11px;
    border-radius: 14px;
    font-size: 0.82rem;
    white-space: nowrap;
}

.body--hr-shell .topbar {
    position: sticky;
    top: 0;
    z-index: 60;
    backdrop-filter: blur(16px);
    background: linear-gradient(180deg, rgba(246, 248, 247, 0.94), rgba(246, 248, 247, 0.82));
}

.body--hr-shell .topbar .container {
    width: auto;
    margin: 0 28px 0 306px;
}

.body--hr-shell .topbar__inner--hr {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 16px;
    min-height: 88px;
    padding: 12px 0;
}

.body--hr-shell .topbar__inner--hr .brand {
    position: fixed;
    top: 18px;
    left: 24px;
    z-index: 80;
    width: 256px;
    min-width: 256px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.body--hr-shell .brand--logo img {
    width: 54px;
    height: 54px;
}

.body--hr-shell .nav--hr {
    position: fixed;
    top: 104px;
    left: 24px;
    z-index: 70;
    width: 256px;
    height: calc(100vh - 128px);
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 14px 12px 12px;
    overflow-y: auto;
    overflow-x: hidden;
    border: 1px solid var(--border);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: var(--shadow-sm);
    scrollbar-width: thin;
    scrollbar-color: rgba(82, 107, 101, 0.24) transparent;
}

.body--hr-shell .nav--hr__release {
    display: grid;
    gap: 2px;
    width: 100%;
    flex: 0 0 auto;
    margin-top: auto;
    padding: 13px 10px 2px;
    border-top: 1px solid rgba(15, 61, 56, 0.08);
    color: #526b65;
    line-height: 1.25;
    text-align: center;
}

.body--hr-shell .nav--hr__release span {
    font-size: 0.72rem;
    font-weight: 850;
}

.body--hr-shell .nav--hr__release small {
    color: #78908b;
    font-size: 0.64rem;
    font-weight: 700;
}

.body--hr-shell .nav--hr__section {
    display: grid;
    width: 100%;
    box-sizing: border-box;
    gap: 3px;
    padding: 9px 0 10px;
    border-bottom: 1px solid rgba(15, 61, 56, 0.08);
}

.body--hr-shell .nav--hr__section:first-child {
    padding-top: 2px;
}

.body--hr-shell .nav--hr__section:last-child {
    padding-bottom: 2px;
    border-bottom: 0;
}

.body--hr-shell .nav--hr__section-label {
    display: block;
    justify-self: stretch;
    box-sizing: border-box;
    padding: 2px 11px 7px;
    color: #78908b;
    font-size: 0.66rem;
    font-weight: 900;
    letter-spacing: 0.13em;
    line-height: 1;
    text-transform: uppercase;
}

.body--hr-shell .nav--hr a {
    position: relative;
    width: 100%;
    min-height: 44px;
    justify-content: flex-start;
    gap: 10px;
    padding: 10px 11px;
    border: 1px solid transparent;
    border-radius: 13px;
    font-size: 0.84rem;
    line-height: 1.2;
    white-space: normal;
    transition: border-color 160ms ease, background-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.body--hr-shell .nav--hr__icon {
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
    color: #6c827d;
    transition: color 160ms ease, transform 160ms ease;
}

.body--hr-shell .nav--hr__label {
    flex: 1 1 auto;
    min-width: 0;
    font-weight: 760;
}

.body--hr-shell .nav--hr a:hover,
.body--hr-shell .nav--hr a:focus-visible {
    border-color: rgba(79, 70, 229, 0.16);
    background: rgba(228, 244, 241, 0.62);
}

.body--hr-shell .nav--hr a:hover .nav--hr__icon,
.body--hr-shell .nav--hr a:focus-visible .nav--hr__icon {
    color: var(--primary-strong);
    transform: translateX(1px);
}

.body--hr-shell .nav--hr a.active {
    border-color: rgba(79, 70, 229, 0.22);
    background: var(--primary-soft);
    color: var(--primary-strong);
    box-shadow: inset 0 0 0 1px rgba(79, 70, 229, 0.05);
}

.body--hr-shell .nav--hr a.active::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 5px;
    width: 3px;
    height: 20px;
    border-radius: 999px;
    background: var(--primary);
    transform: translateY(-50%);
}

.body--hr-shell .nav--hr a.active .nav--hr__icon {
    color: var(--primary-strong);
}

.body--hr-shell .nav--hr .nav-badge {
    margin-left: auto;
    flex: 0 0 auto;
}

.body--hr-shell .topbar__inner--hr .topbar__actions {
    justify-self: end;
    align-items: center;
    gap: 10px;
}

.body--hr-shell .topbar__inner--hr .user-chip {
    min-width: 142px;
    max-width: 180px;
    padding: 9px 14px;
}

.body--hr-shell .topbar__inner--hr .user-chip strong {
    max-width: 122px;
    font-size: 0.86rem;
}

.body--hr-shell .topbar__inner--hr .user-chip small {
    display: block;
    font-size: 0.7rem;
}

.body--hr-shell .page.container {
    width: auto;
    margin: 0 28px 0 306px;
    padding: 26px 0 56px;
}

@media (max-width: 1540px) {
    .topbar__inner--hr {
        grid-template-columns: minmax(102px, auto) minmax(0, 1fr) fit-content(188px);
        gap: 8px;
    }

    .topbar__inner--hr .user-chip {
        min-width: 86px;
        max-width: 102px;
    }

    .topbar__inner--hr .user-chip strong {
        max-width: 82px;
        font-size: 0.75rem;
    }

    .topbar__inner--hr .user-chip small {
        display: none;
    }
}

@media (max-width: 1240px) {
    .body--hr-shell .topbar .container,
    .body--hr-shell .page.container {
        margin-left: 290px;
        margin-right: 20px;
    }

    .body--hr-shell .topbar__inner--hr .brand,
    .body--hr-shell .nav--hr {
        left: 18px;
        width: 240px;
    }

}

.user-menu {
    position: relative;
}

.user-menu summary {
    list-style: none;
    cursor: pointer;
}

.user-menu summary::-webkit-details-marker {
    display: none;
}

.user-chip--menu {
    position: relative;
    border: 1px solid var(--border);
    background: #ffffff;
}

.user-chip--menu::after {
    content: '';
    position: absolute;
    top: 50%;
    right: 10px;
    width: 7px;
    height: 7px;
    border-right: 2px solid var(--muted);
    border-bottom: 2px solid var(--muted);
    transform: translateY(-65%) rotate(45deg);
}

.user-chip--menu strong,
.user-chip--menu small {
    padding-right: 18px;
}

.user-menu[open] .user-chip--menu {
    border-color: rgba(79, 70, 229, 0.28);
    box-shadow: 0 12px 28px rgba(16, 24, 40, 0.1);
}

.user-menu__panel {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    z-index: 90;
    display: grid;
    gap: 12px;
    width: min(280px, calc(100vw - 24px));
    padding: 14px;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: #ffffff;
    box-shadow: var(--shadow-lg);
}

.user-menu__identity {
    display: grid;
    gap: 3px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border);
}

.user-menu__identity strong {
    font-size: 0.96rem;
}

.user-menu__identity span,
.user-menu__identity small {
    color: var(--muted);
    font-size: 0.8rem;
}

.user-directory-panel {
    display: grid;
    gap: 14px;
}

.user-directory-header h1 {
    margin-top: 4px;
}

.user-compact-filters {
    grid-template-columns: minmax(240px, 1fr) auto;
    gap: 8px;
    align-items: center;
}

.user-compact-filters--field-staff {
    grid-template-columns: minmax(280px, 1fr) minmax(160px, 180px) minmax(260px, 340px);
}

.user-compact-filters select {
    min-width: 160px;
    width: 100%;
}

.user-compact-filters input[type="search"] {
    min-width: 0;
}

.user-table-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    color: var(--muted);
    font-size: 0.82rem;
}

.user-table-toolbar strong {
    color: var(--text);
}

.user-compact-table-wrap {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--panel);
}

.user-compact-table {
    font-size: 0.88rem;
}

.user-compact-table th,
.user-compact-table td {
    padding: 9px 10px;
}

.user-status-heading,
.user-status-cell {
    width: 92px;
    white-space: nowrap;
}

.user-actions-heading,
.user-actions-cell {
    width: 96px;
    min-width: 96px;
    text-align: right;
    white-space: nowrap;
}

.user-compact-table td strong,
.user-compact-table td small {
    display: block;
}

.user-compact-table td small {
    margin-top: 2px;
    color: var(--muted);
    font-size: 0.74rem;
}

.user-table-actions {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
    white-space: nowrap;
}

.user-table-actions form {
    margin: 0;
}

.icon-button--sm {
    width: 34px;
    height: 34px;
    border-radius: 10px;
}

.icon-button--sm svg {
    width: 16px;
    height: 16px;
}

.icon-button--danger {
    color: var(--danger);
    border-color: rgba(180, 35, 24, 0.18);
    background: var(--danger-soft);
}

.icon-button--danger:hover {
    color: #ffffff;
    border-color: var(--danger);
    background: var(--danger);
}

.user-modal-grid {
    margin-top: 0;
    gap: 16px;
}

.user-modal-checkbox {
    align-self: end;
    min-height: 42px;
}

.field-staff-status-card {
    align-self: stretch;
    min-height: 46px;
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: #fbfdfc;
}

.field-staff-status-card span {
    display: grid;
    gap: 3px;
}

.default-password-note {
    display: grid;
    gap: 3px;
    padding: 12px;
    border: 1px solid rgba(79, 70, 229, 0.18);
    border-radius: var(--radius-sm);
    color: var(--primary-strong);
    background: var(--primary-soft);
}

.default-password-note strong,
.default-password-note span,
.default-password-note small {
    display: block;
}

.default-password-note span {
    font-size: 1.25rem;
    font-weight: 900;
    letter-spacing: 0.02em;
}

.default-password-note small {
    color: var(--muted);
    font-size: 0.8rem;
}

.field-staff-modal__header {
    padding: 24px 26px 18px;
    border-bottom: 1px solid var(--border);
    background:
        radial-gradient(circle at 95% 0%, rgba(79, 70, 229, 0.12), transparent 34%),
        linear-gradient(135deg, #ffffff, #f7fbf9);
}

.field-staff-modal__header h2 {
    margin-top: 5px;
    font-size: clamp(1.35rem, 3vw, 1.75rem);
}

.field-staff-modal__header p:not(.eyebrow) {
    max-width: 430px;
    margin: 7px 0 0;
    color: var(--muted);
    font-size: 0.9rem;
    line-height: 1.45;
}

.field-staff-create-form {
    display: grid;
    gap: 0;
}

.field-staff-create-form .form-grid {
    padding: 22px 26px 18px;
}

.field-staff-create-form .field {
    gap: 8px;
}

.field-staff-create-form .field span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.field-staff-create-form .field span small {
    color: var(--muted);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: none;
}

.field-staff-create-form .field input {
    min-height: 46px;
    background: #fbfdfc;
}

.field-staff-privacy-card {
    display: grid;
    gap: 12px;
    margin: 0 26px 18px;
    padding: 14px;
    border: 1px solid rgba(79, 70, 229, 0.18);
    border-radius: 18px;
    background: var(--primary-soft);
}

.field-staff-privacy-card strong {
    display: block;
}

.field-staff-privacy-card dl {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin: 0;
}

.field-staff-privacy-card div {
    min-width: 0;
}

.field-staff-privacy-card dt {
    color: var(--muted);
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.field-staff-privacy-card dd {
    margin: 0;
    overflow-wrap: anywhere;
    font-weight: 800;
}

.payroll-picker {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: minmax(170px, 0.72fr) minmax(0, 1.28fr);
    gap: 12px;
}

.payroll-picker__results {
    grid-column: 1 / -1;
    display: grid;
    gap: 6px;
    max-height: 220px;
    overflow: auto;
    padding: 8px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: #ffffff;
}

.payroll-picker__option {
    display: grid;
    gap: 3px;
    width: 100%;
    padding: 10px 12px;
    border: 1px solid transparent;
    border-radius: 14px;
    color: var(--text);
    background: transparent;
    text-align: left;
    cursor: pointer;
}

.payroll-picker__option:hover,
.payroll-picker__option:focus {
    border-color: rgba(79, 70, 229, 0.22);
    outline: none;
    background: var(--primary-soft);
}

.payroll-picker__option span,
.payroll-picker__empty,
.field-help {
    color: var(--muted);
    font-size: 0.82rem;
}

.payroll-picker__empty {
    margin: 0;
    padding: 10px 12px;
}

.payroll-picker__selected {
    grid-column: 1 / -1;
    display: grid;
    gap: 3px;
    padding: 12px 14px;
    border: 1px solid rgba(79, 70, 229, 0.22);
    border-radius: var(--radius-sm);
    background: var(--primary-soft);
}

.payroll-picker__selected span {
    color: var(--muted);
    font-size: 0.84rem;
}

.field-help {
    grid-column: 1 / -1;
    margin: -2px 0 0;
}

.field-help[data-state="success"] {
    color: var(--success);
}

.field-help[data-state="error"] {
    color: var(--danger);
}

.default-password-note--field-staff {
    grid-template-columns: auto 1fr;
    gap: 12px;
    align-items: start;
    padding: 14px;
    border-color: rgba(79, 70, 229, 0.22);
    background:
        linear-gradient(135deg, rgba(79, 70, 229, 0.12), rgba(79, 70, 229, 0.04)),
        #f3fbf8;
}

.default-password-note__icon {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 14px;
    color: var(--primary);
    background: #ffffff;
    box-shadow: inset 0 0 0 1px rgba(79, 70, 229, 0.14);
}

.default-password-note__icon svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
}

.default-password-note--field-staff span {
    width: fit-content;
    margin-top: 3px;
    padding: 4px 10px;
    border-radius: 999px;
    color: var(--primary-strong);
    background: #ffffff;
    font-size: 1rem;
    line-height: 1;
    box-shadow: inset 0 0 0 1px rgba(79, 70, 229, 0.14);
}

.default-password-note--field-staff small {
    margin-top: 8px;
    line-height: 1.45;
}

.field-staff-modal__actions {
    margin-top: 0;
    padding: 18px 26px 24px;
    border-top: 1px solid var(--border);
    background: #fbfdfc;
}

.field-staff-modal__actions .button {
    min-height: 44px;
    padding-inline: 18px;
}

.button--block {
    width: 100%;
    justify-content: center;
}

.settings-form {
    display: grid;
    gap: 18px;
}

.settings-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 360px);
    gap: 24px;
    align-items: center;
    padding: 20px;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, #ffffff, #f7fbf9);
}

.settings-card--stacked {
    grid-template-columns: 1fr;
}

.settings-card h2 {
    margin: 4px 0 8px;
    font-size: 1.25rem;
}

.settings-accordion {
    gap: 12px;
}

.settings-accordion__item {
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.04);
}

.settings-accordion__item[open] {
    border-color: rgba(79, 70, 229, 0.22);
    background: linear-gradient(135deg, #ffffff, #f8fbfa);
}

.settings-accordion__summary {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 18px;
    align-items: center;
    min-height: 76px;
    padding: 18px 20px;
    cursor: pointer;
    list-style: none;
}

.settings-accordion__summary::-webkit-details-marker {
    display: none;
}

.settings-accordion__summary::after {
    content: "+";
    display: inline-grid;
    place-items: center;
    width: 32px;
    height: 32px;
    margin-left: 4px;
    border: 1px solid var(--border);
    border-radius: 999px;
    color: var(--primary-strong);
    background: #fff;
    font-size: 1.15rem;
    font-weight: 900;
    transition: transform 0.18s ease, background 0.18s ease;
}

.settings-accordion__item[open] .settings-accordion__summary::after {
    content: "-";
    background: var(--primary-soft);
}

.settings-accordion__summary > span:first-child {
    display: grid;
    gap: 4px;
}

.settings-accordion__summary strong {
    color: var(--ink);
    font-size: 1.05rem;
}

.settings-accordion__summary small {
    max-width: 760px;
    color: var(--muted);
    font-size: 0.88rem;
    line-height: 1.45;
}

.settings-accordion__meta {
    justify-self: end;
    padding: 8px 11px;
    border: 1px solid rgba(79, 70, 229, 0.18);
    border-radius: 999px;
    color: var(--primary-strong);
    background: var(--primary-soft);
    font-size: 0.78rem;
    font-weight: 900;
    white-space: nowrap;
}

.settings-accordion__body {
    padding: 0 20px 20px;
    border-top: 1px solid rgba(148, 163, 184, 0.18);
}

.settings-empty {
    display: grid;
    gap: 4px;
    padding: 14px 16px;
    border: 1px dashed rgba(79, 70, 229, 0.28);
    border-radius: var(--radius);
    color: var(--ink);
    background: rgba(240, 253, 250, 0.56);
}

.settings-empty span {
    color: var(--muted);
    font-size: 0.9rem;
}

.settings-control-list {
    display: grid;
    gap: 10px;
}

.settings-toggle--wide {
    max-width: 620px;
}

.settings-policy-grid.settings-policy-grid--balanced {
    grid-template-columns: minmax(220px, 320px) minmax(0, 1fr);
    align-items: start;
}

.settings-privacy-editor {
    display: grid;
    grid-template-columns: minmax(220px, 360px) minmax(0, 1fr);
    gap: 14px;
    padding-top: 16px;
}

.settings-privacy-editor .field--full,
.settings-privacy-editor .settings-note {
    grid-column: 1 / -1;
}

.settings-privacy-editor textarea {
    resize: vertical;
}

.settings-note {
    display: grid;
    gap: 4px;
    padding: 12px 14px;
    border: 1px solid rgba(154, 91, 0, 0.22);
    border-radius: var(--radius);
    background: var(--warning-soft);
}

.settings-note strong {
    color: var(--warning);
}

.settings-note span {
    color: var(--muted);
    font-size: 0.9rem;
    font-weight: 700;
}

.settings-radio-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.archive-download-list {
    display: grid;
    gap: 8px;
    width: 100%;
}

.archive-download-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: #fff;
}

.archive-download-row span,
.archive-download-row small {
    display: block;
}

.archive-download-row small {
    color: var(--muted);
    font-weight: 700;
}

.archive-download-row .button {
    justify-content: center;
    white-space: nowrap;
}

.archive-download-row__actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 10px;
}

.archive-download-row__actions form {
    margin: 0;
}

.reward-panel {
    display: grid;
    gap: 12px;
}

.reward-filter {
    display: flex;
    flex-wrap: wrap;
    align-items: end;
    justify-content: flex-end;
    gap: 10px;
}

.reward-filter label {
    display: grid;
    gap: 5px;
    margin: 0;
}

.reward-filter label span,
.reward-range {
    color: var(--muted);
    font-size: 0.76rem;
    font-weight: 900;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.reward-filter select,
.reward-filter input {
    min-height: 42px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: #ffffff;
    padding: 0 12px;
    font: inherit;
    font-weight: 800;
}

.reward-range {
    display: inline-flex;
    width: fit-content;
    padding: 7px 10px;
    border: 1px solid rgba(79, 70, 229, 0.18);
    border-radius: 999px;
    background: var(--primary-soft);
    color: var(--primary-strong);
}

.reward-visual-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
}

.reward-visual-card {
    display: grid;
    gap: 12px;
    min-width: 0;
    padding: 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: linear-gradient(135deg, #ffffff, #f7fbf9);
}

@media screen {
    html.hr-theme-dark-pending body.body--hr-shell .reward-visual-card,
    body.body--hr-shell.hr-theme-dark .reward-visual-card {
        background: var(--panel);
    }
}

.reward-visual-card__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.reward-visual-card__header h3 {
    margin: 2px 0 0;
    font-size: 1rem;
}

.reward-axis-note {
    padding: 5px 8px;
    border-radius: 999px;
    background: var(--panel-muted);
    color: var(--muted);
    font-size: 0.7rem;
    font-weight: 900;
    white-space: nowrap;
}

.reward-line-chart-wrap {
    overflow-x: auto;
}

.reward-line-chart {
    display: block;
    min-width: 620px;
    width: 100%;
    height: auto;
}

.reward-line-chart__grid {
    stroke: rgba(79, 70, 229, 0.14);
    stroke-width: 1;
}

.reward-line-chart__axis {
    stroke: rgba(15, 23, 42, 0.45);
    stroke-width: 1.5;
}

.reward-line-chart__line {
    stroke-width: 3;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.reward-line-chart__point {
    stroke: #ffffff;
    stroke-width: 1.5;
}

.reward-line-chart__tick,
.reward-line-chart__label {
    fill: var(--muted);
    font-size: 0.68rem;
    font-weight: 900;
}

.reward-line-chart__label {
    text-anchor: middle;
}

.reward-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.reward-legend span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 6px 9px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: var(--panel);
    color: var(--text);
    font-size: 0.78rem;
    font-weight: 900;
}

.reward-legend i {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: var(--legend-color);
}

.tier-ladder {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 8px;
}

.tier-ladder span {
    display: grid;
    gap: 3px;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: var(--panel);
    color: var(--muted);
    font-size: 0.76rem;
    font-weight: 800;
}

.tier-ladder strong {
    color: var(--text);
    font-size: 0.92rem;
}

.reward-chart {
    display: grid;
    gap: 6px;
    max-height: 520px;
    overflow: auto;
    padding-right: 4px;
}

.reward-chart__row {
    display: grid;
    grid-template-columns: minmax(170px, 260px) minmax(140px, 1fr) 64px minmax(220px, 310px);
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: var(--panel);
}

.reward-chart__agent {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.reward-chart__agent strong,
.reward-chart__agent small {
    display: block;
}

.reward-chart__agent strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.reward-chart__agent small {
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 800;
}

.reward-chart__rank {
    display: grid;
    flex: 0 0 auto;
    place-items: center;
    width: 32px;
    height: 32px;
    border-radius: 999px;
    color: #ffffff;
    background: var(--primary);
    font-weight: 900;
}

.reward-chart__track {
    position: relative;
    overflow: hidden;
    height: 22px;
    border-radius: 999px;
    background: var(--panel-muted);
}

.reward-chart__bar {
    position: absolute;
    inset: 0 auto 0 0;
    width: var(--reward-width);
    border-radius: inherit;
    background: linear-gradient(90deg, var(--primary), var(--primary-strong));
    box-shadow: var(--shadow-sm);
    transition: width 260ms ease;
}

.reward-chart__score {
    text-align: right;
}

.reward-chart__score strong,
.reward-chart__score span {
    display: block;
}

.reward-chart__score strong {
    font-size: 1.2rem;
    line-height: 1;
}

.reward-chart__score span {
    color: var(--muted);
    font-size: 0.72rem;
    font-weight: 900;
    text-transform: uppercase;
}

.reward-chart__mini {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 5px;
}

.reward-chart__mini span {
    padding: 4px 7px;
    border: 1px solid rgba(79, 70, 229, 0.14);
    border-radius: 999px;
    background: var(--panel-muted);
    color: var(--muted);
    font-size: 0.72rem;
    font-weight: 900;
    white-space: nowrap;
}

.reward-pagination {
    align-items: center;
    border-top: 1px solid var(--border);
    display: flex;
    gap: 12px;
    justify-content: space-between;
    margin-top: 10px;
    padding: 12px 10px 0;
}

.reward-pagination__button {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 999px;
    color: var(--text);
    cursor: pointer;
    font: inherit;
    font-weight: 800;
    padding: 10px 16px;
}

.reward-pagination__button:not(:disabled):hover {
    border-color: var(--primary);
    color: var(--primary);
}

.reward-pagination__button:disabled {
    cursor: not-allowed;
    opacity: 0.45;
}

.reward-pagination__status {
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 800;
    text-align: center;
}

[data-ranking-row][hidden] {
    display: none !important;
}

.reward-tabs {
    display: inline-flex;
    width: fit-content;
    padding: 4px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: #ffffff;
}

.reward-tab-button {
    min-height: 34px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: var(--text);
    padding: 0 18px;
    font: inherit;
    font-weight: 900;
    cursor: pointer;
}

.reward-tab-button.active {
    background: var(--primary);
    color: #ffffff;
}

.reward-tab-panel {
    display: none;
}

.reward-tab-panel.active {
    display: block;
}

.reward-leaderboard {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 12px;
}

.reward-card {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 12px;
    padding: 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: linear-gradient(135deg, #ffffff, #f7fbf9);
    box-shadow: var(--shadow-sm);
}

.reward-card__rank {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 999px;
    color: #ffffff;
    background: var(--primary);
    font-weight: 900;
}

.reward-card__body {
    display: grid;
    gap: 10px;
    min-width: 0;
}

.reward-card__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
}

.reward-card__header strong,
.reward-card__header small {
    display: block;
}

.reward-card__header small,
.agent-reward-card small {
    color: var(--muted);
    font-size: 0.78rem;
}

.reward-badge {
    padding: 6px 9px;
    border: 1px solid rgba(79, 70, 229, 0.22);
    border-radius: 999px;
    color: var(--primary-strong);
    background: var(--primary-soft);
    font-size: 0.76rem;
    font-weight: 900;
    white-space: nowrap;
}

.reward-card__score {
    display: flex;
    align-items: baseline;
    gap: 6px;
}

.reward-card__score strong {
    font-size: 1.85rem;
    line-height: 1;
}

.reward-card__score span,
.reward-metrics span,
.agent-reward-card__meta span {
    color: var(--muted);
    font-size: 0.8rem;
    font-weight: 800;
}

.reward-metrics,
.agent-reward-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.reward-metrics span,
.agent-reward-card__meta span {
    padding: 5px 8px;
    border-radius: 999px;
    background: var(--panel-muted);
}

.agent-reward-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 12px;
    padding: 12px;
    border: 1px solid rgba(79, 70, 229, 0.18);
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(228, 244, 241, 0.9), #ffffff);
}

.agent-reward-card strong,
.agent-reward-card small {
    display: block;
}

.agent-reward-card strong {
    font-size: 1.25rem;
}

.agent-reward-card--hero {
    margin-top: 0;
}

.agent-tier-progress {
    overflow: hidden;
    height: 12px;
    border-radius: 999px;
    background: var(--panel-muted);
}

.agent-tier-progress span {
    display: block;
    width: var(--tier-progress);
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--primary), #f59e0b);
    transition: width 260ms ease;
}

.agent-points-panel {
    display: grid;
    gap: 14px;
}

.agent-points-panel--embedded {
    margin-bottom: 16px;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.72);
}

.agent-points-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 8px;
}

.agent-points-grid div {
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: var(--panel-muted);
}

.agent-points-grid span,
.agent-points-grid small {
    display: block;
}

.agent-points-grid span {
    font-size: 1.35rem;
    font-weight: 900;
}

.agent-points-grid small {
    color: var(--muted);
    font-size: 0.75rem;
    font-weight: 900;
}

@media (max-width: 680px) {
    .reward-filter {
        justify-content: stretch;
    }

    .reward-filter label,
    .reward-filter .button {
        width: 100%;
    }

    .reward-visual-grid {
        grid-template-columns: 1fr;
    }

    .reward-chart__row {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .reward-chart__score {
        text-align: left;
    }

    .reward-chart__mini {
        justify-content: flex-start;
    }

    .reward-tabs {
        width: 100%;
    }

    .reward-tab-button {
        flex: 1;
    }

    .agent-reward-card {
        align-items: flex-start;
        flex-direction: column;
    }

    .agent-points-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.modal-backdrop {
    z-index: 9000;
}

#time-out-detail-modal,
#time-out-review-modal {
    position: fixed !important;
    inset: 0 !important;
    z-index: 9100 !important;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    min-height: 100svh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 18px;
}

#time-out-detail-modal[hidden],
#time-out-review-modal[hidden] {
    display: none !important;
}

#time-out-detail-modal .timeout-detail-modal {
    display: flex;
    flex-direction: column;
    width: min(780px, calc(100vw - 36px));
    max-height: calc(100dvh - 36px);
    max-height: calc(100svh - 36px);
    margin: 0;
    overflow: hidden;
}

#time-out-review-modal .modal-card {
    width: min(480px, calc(100vw - 36px));
    max-height: calc(100dvh - 36px);
    max-height: calc(100svh - 36px);
    margin: 0;
    overflow: auto;
}

#time-out-detail-modal .modal-card__header,
#time-out-detail-modal .modal-card__actions {
    flex: 0 0 auto;
}

#time-out-detail-body {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    padding-right: 4px;
    overscroll-behavior: contain;
}

@media (max-width: 680px) {
    #time-out-detail-modal,
    #time-out-review-modal {
        align-items: flex-start;
        padding: 10px;
        overflow-y: auto;
    }

    #time-out-detail-modal .timeout-detail-modal {
        width: calc(100vw - 20px);
        max-height: calc(100dvh - 20px);
        max-height: calc(100svh - 20px);
    }
}

.settings-toggle {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: #fff;
    font-weight: 800;
}

.settings-toggle input {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    accent-color: var(--primary);
}

.settings-toggle span,
.settings-toggle small {
    display: block;
}

.settings-toggle small {
    margin-top: 4px;
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 600;
    line-height: 1.4;
}

.settings-policy-grid {
    display: grid;
    grid-template-columns: minmax(180px, 240px) minmax(0, 1fr);
    gap: 16px;
    align-items: end;
}

.settings-radio-group {
    display: grid;
    gap: 10px;
    margin: 0;
    padding: 0;
    border: 0;
}

.settings-radio-group legend {
    margin-bottom: 8px;
    color: var(--ink);
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.settings-radio-group label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 42px;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: #fff;
    font-weight: 800;
}

.settings-radio-group label:has(input:checked) {
    border-color: rgba(79, 70, 229, 0.38);
    color: var(--primary-strong);
    background: var(--primary-soft);
}

.settings-radio-group input {
    accent-color: var(--primary);
}

@media (max-width: 760px) {
    .settings-card {
        grid-template-columns: 1fr;
        gap: 14px;
        padding: 16px;
    }

    .settings-accordion__summary {
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 12px;
        padding: 16px;
    }

    .settings-accordion__summary::after {
        grid-column: 2;
        grid-row: 1;
    }

    .settings-accordion__meta {
        grid-column: 1 / -1;
        justify-self: start;
    }

    .settings-accordion__body {
        padding: 0 16px 16px;
    }

    .settings-policy-grid {
        grid-template-columns: 1fr;
    }

    .settings-privacy-editor {
        grid-template-columns: 1fr;
    }

    .settings-radio-row {
        display: grid;
    }
}

@media (max-width: 1120px) {
    .body--hr-shell .topbar .container,
    .body--hr-shell .page.container {
        width: min(var(--container), calc(100% - 32px));
        margin: 0 auto;
    }

    .body--hr-shell .topbar__inner--hr .brand {
        position: static;
        width: auto;
        min-width: 0;
        padding: 0;
        border: 0;
        border-radius: 0;
        background: transparent;
        box-shadow: none;
    }

    .body--hr-shell .nav--hr {
        position: static;
        width: 100%;
        height: auto;
        display: flex;
        flex-direction: row;
        gap: 2px;
        padding: 4px;
        overflow-x: auto;
        overflow-y: hidden;
        border-radius: 999px;
        background: rgba(255, 255, 255, 0.88);
        box-shadow: none;
    }

    .body--hr-shell .nav--hr__section {
        display: contents;
    }

    .body--hr-shell .nav--hr__section-label {
        display: none;
    }

    .body--hr-shell .nav--hr__release {
        display: none;
    }

    .body--hr-shell .nav--hr a {
        width: auto;
        min-height: 38px;
        padding: 8px 10px;
        border-radius: 999px;
        font-size: 0.79rem;
        line-height: 1;
        white-space: nowrap;
    }

    .body--hr-shell .nav--hr__icon {
        width: 16px;
        height: 16px;
        flex-basis: 16px;
    }

    .body--hr-shell .nav--hr a.active::before {
        display: none;
    }

    .body--hr-shell .topbar__inner--hr {
        grid-template-columns: minmax(128px, auto) minmax(0, 1fr);
    }

    .body--hr-shell .topbar__inner--hr .topbar__actions {
        grid-column: 1 / -1;
        justify-self: end;
        margin-top: -8px;
    }

    .body--hr-shell .nav--hr {
        justify-content: flex-start;
    }
}

@media (max-width: 680px) {
    .body--hr-shell .topbar .container,
    .body--hr-shell .page.container {
        width: min(100% - 24px, var(--container));
    }

    .topbar .container {
        width: min(100% - 24px, var(--container));
    }

    .topbar__inner--hr {
        display: grid;
        grid-template-columns: 1fr auto;
        gap: 10px;
        padding: 8px 0;
    }

    .topbar__inner--hr .brand {
        min-width: 0;
    }

    .topbar__inner--hr .nav--hr {
        grid-column: 1 / -1;
        order: 3;
        width: 100%;
        justify-content: flex-start;
    }

    .topbar__inner--hr .topbar__actions {
        grid-column: 2;
        grid-row: 1;
        flex-direction: row;
        align-items: center;
        justify-self: end;
        margin-top: 0;
    }

    .topbar__inner--hr .user-chip {
        display: none;
    }

    .topbar__inner--hr .user-menu .user-chip {
        display: grid;
        min-width: 44px;
        max-width: 150px;
    }

    .topbar__inner--hr .user-menu__panel {
        right: 0;
    }

    .topbar__inner--hr .button {
        min-height: 38px;
        padding: 7px 12px;
        font-size: 0.84rem;
    }

    .user-compact-filters {
        grid-template-columns: 1fr;
    }

    .user-table-toolbar {
        align-items: flex-start;
        flex-direction: column;
    }
}

/* Compact HR directory and review pages. */
.admin-compact-page {
    display: grid;
    gap: 8px;
    padding: 12px 14px;
}

.admin-compact-page .panel__header {
    align-items: flex-start;
    gap: 8px;
    margin: 0;
}

.admin-compact-page .panel__header > div:first-child {
    display: grid;
    gap: 1px;
}

.admin-compact-page .panel__header h1 {
    margin: 0;
    font-size: clamp(1.08rem, 1.55vw, 1.32rem);
    line-height: 1.15;
}

.admin-compact-page .panel__header .eyebrow {
    margin: 0 0 1px;
    font-size: 0.64rem;
}

.admin-compact-page .panel__lead,
.admin-compact-page .panel__header .muted {
    max-width: 700px;
    margin: 2px 0 0;
    font-size: 0.8rem;
    line-height: 1.32;
}

.admin-compact-page .panel__actions,
.admin-compact-page .panel-actions,
.admin-compact-page .timeout-request-header-actions {
    gap: 6px;
}

.admin-compact-page .filters {
    gap: 6px;
    margin: 0;
    align-items: center;
}

.admin-compact-page .filters input:not([type="checkbox"]):not([type="radio"]),
.admin-compact-page .filters select {
    min-height: 36px;
    padding-block: 6px;
    border-radius: 11px;
}

.admin-compact-page .button--sm {
    min-height: 34px;
    padding: 6px 10px;
}

.admin-compact-page .timeout-table-toolbar,
.admin-compact-page .user-table-toolbar {
    min-height: 22px;
    margin: 0;
    font-size: 0.74rem;
    line-height: 1.25;
}

.admin-compact-page .records-table-wrap,
.admin-compact-page .table-wrap {
    margin-top: 0;
}

.admin-compact-page--stores .stores-compact-filters {
    grid-template-columns: minmax(320px, 1fr) minmax(190px, 230px) auto;
}

.admin-compact-page--stores .stores-table-toolbar {
    margin-top: 0;
}

.admin-compact-page--stores .stores-records-table th,
.admin-compact-page--stores .stores-records-table td,
.admin-compact-page--users .user-compact-table th,
.admin-compact-page--users .user-compact-table td,
.admin-compact-page--audit .activity-log-table th,
.admin-compact-page--audit .activity-log-table td,
.admin-compact-page--travel .records-table th,
.admin-compact-page--travel .records-table td,
.admin-compact-page--requests .records-table th,
.admin-compact-page--requests .records-table td {
    padding-top: 0.8rem;
    padding-bottom: 0.8rem;
}

.admin-compact-page--users.user-directory-panel,
.admin-compact-page--audit.activity-log-panel,
.admin-compact-page--travel.special-travel-page {
    gap: 8px;
}

.admin-compact-page--users .user-directory-header h1 {
    margin-top: 0;
}

.admin-compact-page--users .user-compact-filters {
    margin-top: 0;
}

.admin-compact-page--users .user-compact-filters:not(.user-compact-filters--field-staff) {
    grid-template-columns: minmax(320px, 1fr) minmax(150px, 160px);
}

.admin-compact-page--users .user-compact-filters--field-staff {
    grid-template-columns: minmax(340px, 1fr) minmax(170px, 180px) minmax(190px, 220px);
}

.admin-compact-page .timeout-summary-grid {
    gap: 6px;
    margin: 0 0 2px;
}

.admin-compact-page .timeout-summary-card {
    gap: 2px;
    min-height: 52px;
    padding: 8px 10px;
    border-radius: 12px;
}

.admin-compact-page .timeout-summary-card span {
    font-size: 0.65rem;
}

.admin-compact-page .timeout-summary-card strong {
    font-size: 1.08rem;
}

.admin-compact-page--requests #time-out-requests-live-region {
    display: grid;
    gap: 8px;
}

.admin-compact-page--requests .timeout-repeat-panel {
    gap: 8px;
    padding: 8px 10px;
    border-radius: 12px;
}

.admin-compact-page--requests .timeout-repeat-panel h2 {
    margin-top: 1px;
    font-size: 0.84rem;
}

.admin-compact-page--requests .timeout-repeat-list {
    gap: 4px;
}

.admin-compact-page--requests .timeout-repeat-list span {
    gap: 4px;
    padding: 4px 7px;
    font-size: 0.72rem;
}

.admin-compact-page--requests .timeout-open-card {
    padding: 0.65rem 0.75rem;
    border-radius: 12px;
}

.admin-compact-page--requests .timeout-open-list {
    gap: 8px;
}

.admin-compact-page--requests .timeout-tabs {
    margin-bottom: -1px;
}

.admin-compact-page--audit .activity-log-filters {
    margin-top: 0;
    grid-template-columns: minmax(320px, 1fr) minmax(160px, 180px) minmax(150px, 170px) auto auto;
}

.admin-compact-page--travel .timeout-summary-grid,
.admin-compact-page--requests .timeout-summary-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.admin-compact-page--travel .panel__header,
.admin-compact-page--requests .panel__header,
.admin-compact-page--audit .panel__header,
.admin-compact-page--users .panel__header,
.admin-compact-page--stores .panel__header {
    padding-bottom: 2px;
}

@media (max-width: 720px) {
    .admin-compact-page {
        gap: 9px;
        padding: 14px;
    }

    .admin-compact-page .panel__header {
        align-items: flex-start;
    }

    .admin-compact-page .panel__lead,
    .admin-compact-page .panel__header .muted {
        font-size: 0.8rem;
    }

    .admin-compact-page--stores .stores-compact-filters {
        grid-template-columns: 1fr;
    }

    .admin-compact-page--users .user-compact-filters,
    .admin-compact-page--users .user-compact-filters--field-staff,
    .admin-compact-page--audit .activity-log-filters,
    .admin-compact-page--travel .timeout-summary-grid,
    .admin-compact-page--requests .timeout-summary-grid {
        grid-template-columns: 1fr;
    }

    .admin-compact-page .timeout-summary-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.google-login-block {
    display: grid;
    gap: 12px;
    margin: 18px 0 4px;
}

.google-login-button {
    display: grid;
    grid-template-columns: 42px 1fr;
    align-items: center;
    gap: 12px;
    min-height: 54px;
    padding: 10px 14px;
    border: 1px solid var(--border);
    border-radius: 16px;
    color: var(--text);
    background: #ffffff;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
    text-decoration: none;
    transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.google-login-button:hover,
.google-login-button:focus-visible {
    border-color: rgba(79, 70, 229, 0.38);
    box-shadow: 0 16px 30px rgba(15, 23, 42, 0.1);
    transform: translateY(-1px);
}

.google-login-button__mark {
    display: inline-grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border: 1px solid #e2e8f0;
    border-radius: 50%;
    color: #4285f4;
    background: #ffffff;
    font-family: Georgia, serif;
    font-weight: 900;
}

.google-login-button strong,
.google-login-button small {
    display: block;
}

.google-login-button strong {
    font-size: 0.96rem;
}

.google-login-button small {
    margin-top: 2px;
    color: var(--muted);
    font-size: 0.78rem;
}

.login-divider {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 10px;
    color: var(--muted);
    font-size: 0.78rem;
}

.login-divider::before,
.login-divider::after {
    content: "";
    height: 1px;
    background: var(--border);
}

.login-panel__logo {
    display: grid;
    place-items: center;
    margin: 0 auto 16px;
}

.login-panel__logo img {
    width: 96px;
    max-width: 32vw;
    height: auto;
    padding: 10px;
    border: 1px solid var(--border);
    border-radius: 22px;
    background: #ffffff;
    box-shadow: 0 16px 34px rgba(15, 23, 42, 0.08);
}

.google-login-button__mark svg {
    width: 22px;
    height: 22px;
    display: block;
}

.admin-login-note {
    display: grid;
    grid-template-columns: 42px 1fr;
    align-items: start;
    gap: 12px;
    padding: 14px;
    border: 1px solid rgba(79, 70, 229, 0.2);
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(224, 242, 241, 0.92), rgba(255, 255, 255, 0.96));
}

.admin-login-note__icon {
    display: grid;
    width: 36px;
    height: 36px;
    place-items: center;
    border-radius: 50%;
    color: #4285f4;
    background: #ffffff;
    box-shadow: inset 0 0 0 1px #e2e8f0;
    font-family: Georgia, serif;
    font-weight: 900;
}

.admin-login-note strong,
.admin-login-note p {
    display: block;
}

.admin-login-note p {
    margin: 3px 0 0;
    color: var(--muted);
    font-size: 0.86rem;
    line-height: 1.5;
}

.account-editor-header p {
    max-width: 620px;
    margin: 6px 0 0;
    color: var(--muted);
    font-size: 0.92rem;
    line-height: 1.5;
}

/* Store selection is a page state, not a modal, to avoid mobile viewport clipping. */
.agent-dashboard.is-choosing-store > :not(#attendance-store-modal) {
    display: none !important;
}

.agent-dashboard.is-adding-store > :not(#agent-store-modal) {
    display: none !important;
}

body.agent-store-page-open .agent-section-panel[data-agent-section-panel="add-store"],
body.agent-store-page-open .setup-empty {
    display: none !important;
}

.agent-store-page[hidden] {
    display: none !important;
}

.agent-store-page {
    display: block;
    min-height: calc(100svh - 150px);
}

.agent-store-page__card {
    display: grid;
    gap: 12px;
    width: 100%;
    padding: 16px;
    border: 1px solid var(--border);
    border-radius: 22px;
    background: #ffffff;
    box-shadow: var(--shadow-sm);
}

.agent-store-page__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.agent-store-page__header h2 {
    margin: 3px 0 0;
    font-size: 1.45rem;
    line-height: 1.05;
}

.agent-store-page__hint {
    margin: 0;
    color: var(--muted);
    font-size: 0.92rem;
}

.agent-store-page__form {
    display: grid;
    gap: 12px;
}

.agent-store-page__capture-box {
    gap: 14px;
}

.agent-store-page__capture-box .btn {
    justify-content: center;
}

.agent-store-capture--attention {
    color: var(--danger);
    border-color: rgba(217, 45, 32, 0.45);
    background: var(--danger-soft);
    animation: agentStoreCaptureBlink 1.1s ease-in-out infinite;
}

@keyframes agentStoreCaptureBlink {
    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(217, 45, 32, 0.4);
    }

    50% {
        box-shadow: 0 0 0 8px rgba(217, 45, 32, 0);
    }
}

.agent-store-page__location-review {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px;
    border: 1px solid rgba(18, 128, 116, 0.22);
    border-radius: 16px;
    background: rgba(18, 128, 116, 0.07);
}

.agent-store-page__location-review[hidden] {
    display: none !important;
}

.agent-store-page__location-review strong,
.agent-store-page__location-review p {
    margin: 0;
}

.agent-store-page__location-review p {
    color: var(--muted);
    font-size: 0.88rem;
}

.agent-store-page__signal {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-top: 6px !important;
    font-weight: 900;
}

.agent-store-page__signal-dot {
    position: relative;
    width: 10px;
    height: 10px;
    flex: 0 0 auto;
    border-radius: 999px;
    background: var(--subtle);
    box-shadow: 0 0 0 4px rgba(134, 148, 142, 0.14);
}

.agent-store-page__signal-dot::after {
    content: '';
    position: absolute;
    inset: -7px;
    border-radius: inherit;
    background: currentColor;
    opacity: 0.18;
    animation: signalPulse 1.35s ease-out infinite;
}

.agent-store-page__signal--red {
    color: var(--danger);
}

.agent-store-page__signal--red .agent-store-page__signal-dot {
    background: var(--danger);
    box-shadow: 0 0 0 4px var(--danger-soft);
}

.agent-store-page__signal--orange {
    color: #c2410c;
}

.agent-store-page__signal--orange .agent-store-page__signal-dot {
    background: #f97316;
    box-shadow: 0 0 0 4px #ffedd5;
}

.agent-store-page__signal--yellow {
    color: var(--warning);
}

.agent-store-page__signal--yellow .agent-store-page__signal-dot {
    background: #facc15;
    box-shadow: 0 0 0 4px var(--warning-soft);
}

.agent-store-page__signal--green {
    color: var(--success);
}

.agent-store-page__signal--green .agent-store-page__signal-dot {
    background: var(--success);
    box-shadow: 0 0 0 4px var(--success-soft);
}

@keyframes signalPulse {
    0% {
        transform: scale(0.65);
        opacity: 0.32;
    }

    70% {
        transform: scale(1.35);
        opacity: 0;
    }

    100% {
        transform: scale(1.35);
        opacity: 0;
    }
}

.agent-store-page__location-review .agent-store-page__location-warning {
    margin-top: 4px;
    color: var(--danger);
    font-weight: 900;
}

.agent-store-page__location-review .button {
    flex: 0 0 auto;
}

.agent-store-page__declaration {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px;
    border: 1px solid rgba(180, 35, 24, 0.24);
    border-radius: 16px;
    color: var(--danger);
    background: var(--danger-soft);
    font-size: 0.88rem;
    font-weight: 900;
    line-height: 1.35;
}

.agent-store-page__declaration input {
    width: 18px;
    height: 18px;
    flex: 0 0 auto;
    margin-top: 1px;
    accent-color: var(--danger);
}

.agent-store-page__actions {
    position: sticky;
    bottom: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin: 6px -16px -16px;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
    border-top: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(10px);
}

.agent-store-page__actions .button {
    width: 100%;
    min-height: 46px;
}

.agent-store-select-page[hidden] {
    display: none !important;
}

.agent-store-select-page {
    display: block;
    min-height: calc(100svh - 150px);
}

.agent-store-select-page__card {
    display: grid;
    gap: 12px;
    width: 100%;
    padding: 16px;
    border: 1px solid var(--border);
    border-radius: 22px;
    background: #ffffff;
    box-shadow: var(--shadow-sm);
}

.agent-store-select-page__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.agent-store-select-page__header h2 {
    margin: 3px 0 0;
    font-size: 1.45rem;
    line-height: 1.05;
}

.agent-store-select-page__hint {
    margin: 0;
    color: var(--muted);
    font-size: 0.92rem;
}

.agent-store-select-page .attendance-store-picker {
    display: grid;
    gap: 10px;
}

.agent-store-select-page .attendance-store-options {
    max-height: none !important;
    overflow: visible;
}

.agent-store-select-page__actions {
    position: sticky;
    bottom: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin: 6px -16px -16px;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
    border-top: 1px solid var(--border);
    border-radius: 0 0 22px 22px;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(10px);
}

.agent-store-select-page__actions .button {
    width: 100%;
    min-height: 46px;
}

@media (max-width: 680px) {
    .agent-dashboard.is-adding-store {
        margin-top: -8px;
    }

    .agent-store-page {
        min-height: calc(100svh - 128px);
    }

    .agent-store-page__card {
        padding: 14px;
        border-radius: 18px;
    }

    .agent-store-page__header h2 {
        font-size: 1.28rem;
    }

    .agent-store-page__hint {
        font-size: 0.86rem;
    }

    .agent-store-page__actions {
        margin: 4px -14px -14px;
        padding: 10px 14px calc(12px + env(safe-area-inset-bottom));
    }

    .agent-dashboard.is-choosing-store {
        margin-top: -8px;
    }

    .agent-store-select-page {
        min-height: calc(100svh - 128px);
    }

    .agent-store-select-page__card {
        padding: 14px;
        border-radius: 18px;
    }

    .agent-store-select-page__header h2 {
        font-size: 1.28rem;
    }

    .agent-store-select-page__hint {
        font-size: 0.86rem;
    }

    .agent-store-select-page .attendance-store-option {
        min-height: 58px;
        padding: 10px 11px;
    }

    .agent-store-select-page__actions {
        margin: 4px -14px -14px;
        padding: 10px 14px calc(12px + env(safe-area-inset-bottom));
    }
}

@media (max-height: 680px) {
    .agent-store-page__hint {
        display: none;
    }

    .agent-store-select-page__hint {
        display: none;
    }

    .agent-store-select-page .attendance-store-option {
        min-height: 52px;
    }
}

/* Store picker must behave as one safe mobile sheet: only the result list scrolls. */
#agent-store-modal.agent-store-page:not([hidden]) {
    position: static !important;
    inset: auto !important;
    z-index: auto !important;
    display: block !important;
    align-items: initial !important;
    justify-content: initial !important;
    padding: 0 !important;
    overflow: visible !important;
    background: transparent !important;
}

#agent-store-modal.agent-store-page .agent-store-page__card {
    width: 100% !important;
    max-height: none !important;
    display: grid !important;
    overflow: visible !important;
    padding: 16px !important;
    border-radius: 22px !important;
}

#agent-store-modal.agent-store-page .agent-store-page__actions {
    position: sticky !important;
    bottom: 0 !important;
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
}

#attendance-store-modal[hidden] {
    display: none !important;
}

#attendance-store-modal:not([hidden]) {
    position: fixed !important;
    inset: 0 !important;
    z-index: 5100 !important;
    display: flex !important;
    align-items: flex-end !important;
    justify-content: center !important;
    padding: max(10px, env(safe-area-inset-top)) 10px max(10px, env(safe-area-inset-bottom)) !important;
    overflow: hidden !important;
}

#attendance-store-modal .modal-card--store-picker {
    width: min(520px, calc(100vw - 20px)) !important;
    max-height: calc(100dvh - 20px) !important;
    max-height: calc(100svh - 20px) !important;
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
    padding: 0 !important;
    border-radius: 24px 24px 0 0 !important;
}

#attendance-store-modal .modal-card__header {
    flex: 0 0 auto;
    padding: 16px 16px 8px;
}

#attendance-store-modal .modal-card__header h2 {
    margin-top: 2px;
    font-size: 1.25rem;
}

#attendance-store-modal .modal-card__body {
    flex: 0 0 auto;
    margin: 0;
    padding: 0 16px 10px;
    font-size: 0.88rem;
    line-height: 1.35;
}

#attendance-store-modal .attendance-store-picker {
    min-height: 0;
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
    overflow: hidden;
    padding: 0 16px;
}

#attendance-store-modal .attendance-store-combobox {
    min-height: 0;
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

#attendance-store-modal .attendance-store-combobox > span {
    flex: 0 0 auto;
}

#attendance-store-modal #attendance-store-search {
    flex: 0 0 auto;
    min-height: 48px;
    border-radius: 16px;
    font-size: 1rem;
}

#attendance-store-modal .attendance-store-options {
    min-height: 150px;
    max-height: none !important;
    flex: 1 1 auto;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    border-radius: 16px;
}

#attendance-store-modal .attendance-store-option {
    min-height: 62px;
    padding: 10px 12px;
}

#attendance-store-modal .attendance-store-summary {
    flex: 0 0 auto;
    padding: 4px 2px 8px;
}

#attendance-store-modal .modal-card__actions {
    flex: 0 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin: 0 !important;
    padding: 12px 16px calc(14px + env(safe-area-inset-bottom));
    border-top: 1px solid var(--border);
    background: #ffffff;
}

#attendance-store-modal .modal-card__actions .button {
    width: 100%;
    min-height: 46px;
}

@media (min-width: 700px) {
    #attendance-store-modal:not([hidden]) {
        align-items: center !important;
    }

    #attendance-store-modal .modal-card--store-picker {
        max-height: min(720px, calc(100dvh - 36px)) !important;
        border-radius: 24px !important;
    }
}

@media (max-width: 380px), (max-height: 680px) {
    #attendance-store-modal .modal-card__header {
        padding: 12px 14px 6px;
    }

    #attendance-store-modal .modal-card__body {
        display: none;
    }

    #attendance-store-modal .attendance-store-picker {
        padding: 0 14px;
    }

    #attendance-store-modal #attendance-store-search {
        min-height: 44px;
        font-size: 0.94rem;
    }

    #attendance-store-modal .attendance-store-options {
        min-height: 120px;
    }

    #attendance-store-modal .attendance-store-option {
        min-height: 54px;
        padding: 9px 10px;
    }

    #attendance-store-modal .modal-card__actions {
        padding: 10px 14px calc(12px + env(safe-area-inset-bottom));
    }
}

/* Final override: this element is no longer a modal. Keep it in normal page flow. */
#attendance-store-modal.agent-store-select-page:not([hidden]) {
    position: static !important;
    inset: auto !important;
    z-index: auto !important;
    display: block !important;
    align-items: initial !important;
    justify-content: initial !important;
    padding: 0 !important;
    overflow: visible !important;
    background: transparent !important;
}

#attendance-store-modal.agent-store-select-page .agent-store-select-page__card {
    width: 100% !important;
    max-height: none !important;
    display: grid !important;
    overflow: visible !important;
    padding: 14px !important;
    border-radius: 22px !important;
}

#attendance-store-modal.agent-store-select-page .attendance-store-options {
    min-height: 0 !important;
    max-height: min(330px, 42vh) !important;
    overflow-y: auto !important;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
}

#attendance-store-modal.agent-store-select-page .attendance-store-picker {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    align-items: center !important;
    gap: 8px !important;
}

#attendance-store-modal.agent-store-select-page .attendance-store-combobox {
    min-width: 0 !important;
}

#attendance-store-modal.agent-store-select-page .attendance-store-toolbar {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 8px !important;
    min-width: max-content !important;
}

#attendance-store-modal.agent-store-select-page .attendance-store-toolbar .button {
    width: auto !important;
    min-width: 108px;
    min-height: 50px;
    padding-inline: 14px;
    white-space: nowrap;
}

#attendance-store-modal.agent-store-select-page .attendance-store-options,
#attendance-store-modal.agent-store-select-page #attendance-store-select {
    grid-column: 1 / -1;
}

#attendance-store-modal.agent-store-select-page .agent-store-select-page__actions {
    position: sticky !important;
    bottom: 0 !important;
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
}

/* Agent mobile focus: notifications stay in the topbar, attendance stays first. */
.agent-topbar__actions {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.agent-notification-menu {
    position: relative;
}

.agent-notification-button {
    position: relative;
}

.agent-notification-dot {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 10px;
    height: 10px;
    border: 2px solid #ffffff;
    border-radius: 999px;
    background: var(--danger);
}

.agent-notification-count {
    position: absolute;
    top: -5px;
    right: -5px;
    min-width: 19px;
    min-height: 19px;
    display: inline-grid;
    place-items: center;
    padding: 2px 5px;
    border: 2px solid #ffffff;
    border-radius: 999px;
    color: #ffffff;
    background: var(--danger);
    font-size: 0.68rem;
    font-weight: 900;
    line-height: 1;
}

.agent-notification-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    z-index: 70;
    width: min(330px, calc(100vw - 24px));
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: #ffffff;
    box-shadow: var(--shadow-lg);
}

.agent-notification-dropdown__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 12px 14px;
    border-bottom: 1px solid var(--border);
}

.agent-notification-dropdown__header small,
.modal-card__date {
    color: var(--muted);
    font-size: 0.76rem;
    font-weight: 800;
}

.agent-notification-list {
    display: grid;
    max-height: min(360px, 62vh);
    overflow-y: auto;
    padding: 6px;
}

.agent-notification-item {
    display: grid;
    gap: 3px;
    width: 100%;
    padding: 11px 12px;
    border: 0;
    border-radius: 12px;
    color: var(--text);
    background: transparent;
    cursor: pointer;
    text-align: left;
}

.agent-notification-item:hover {
    background: var(--panel-muted);
}

.agent-notification-item strong {
    font-size: 0.88rem;
}

.agent-notification-item small {
    color: var(--muted);
    font-size: 0.76rem;
}

.agent-notification-item--success {
    border-left: 3px solid var(--success);
}

.agent-notification-item--warning {
    border-left: 3px solid var(--warning);
}

.agent-notification-item--danger {
    border-left: 3px solid var(--danger);
}

.agent-notification-empty {
    margin: 0;
    padding: 18px 12px;
    color: var(--muted);
    text-align: center;
}

.agent-notification-modal-message {
    white-space: pre-line;
}

.attendance-store-picker {
    gap: 8px;
}

.attendance-store-combobox {
    position: relative;
}

.attendance-store-combobox input {
    min-height: 50px;
    padding-right: 42px;
    border-radius: 16px;
    font-weight: 700;
}

.attendance-store-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.attendance-store-helper {
    display: none;
}

.attendance-store-options {
    display: grid;
    gap: 5px;
    max-height: min(310px, 40vh);
    overflow-y: auto;
    padding: 5px;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: #ffffff;
}

.attendance-store-option {
    display: grid;
    gap: 2px;
    width: 100%;
    padding: 11px 12px;
    border: 1px solid transparent;
    border-radius: 13px;
    color: var(--text);
    background: transparent;
    cursor: pointer;
    text-align: left;
}

.attendance-store-option:hover,
.attendance-store-option[aria-selected="true"] {
    border-color: rgba(79, 70, 229, 0.2);
    background: var(--primary-soft);
}

.attendance-store-option strong,
.attendance-store-option small {
    display: block;
}

.attendance-store-option small {
    color: var(--muted);
    font-size: 0.76rem;
    font-weight: 700;
}

.attendance-store-option__meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 3px;
}

.attendance-store-option__distance {
    color: var(--muted);
    font-size: 0.74rem;
    font-weight: 800;
}

.attendance-store-pill {
    display: inline-flex;
    align-items: center;
    min-height: 22px;
    padding: 4px 7px;
    border-radius: 999px;
    color: var(--muted);
    background: var(--panel-muted);
    font-size: 0.7rem;
    font-weight: 900;
    line-height: 1;
}

.attendance-store-pill--inside {
    color: var(--success);
    background: var(--success-soft);
}

.attendance-store-empty {
    padding: 16px 12px;
    color: var(--muted);
    text-align: center;
}

.attendance-store-section {
    display: grid;
    gap: 8px;
}

.attendance-store-section + .attendance-store-section {
    padding-top: 10px;
    border-top: 1px solid rgba(220, 228, 223, 0.82);
}

.attendance-store-section__header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
}

.attendance-store-section__header strong {
    font-size: 0.82rem;
    font-weight: 900;
    text-transform: uppercase;
}

.attendance-store-section__header small {
    color: var(--muted);
    font-size: 0.74rem;
    font-weight: 800;
    text-align: right;
}

.attendance-store-section__list {
    display: grid;
    gap: 6px;
}

.attendance-store-summary {
    display: none;
}

.attendance-panel--focus {
    gap: 14px;
    padding: 18px;
}

.attendance-focus__copy {
    gap: 3px;
}

.attendance-focus__copy h2 {
    font-size: clamp(2.4rem, 15vw, 4rem);
}

.gps-accuracy-indicator {
    max-width: 360px;
    justify-self: center;
}

.attendance-guide {
    max-width: 520px;
    justify-self: center;
}

.punch-timezone {
    margin: 2px 0 0;
}

.manual-timeout-panel {
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
}

.manual-timeout-panel > div {
    display: none;
}

.manual-timeout-panel p {
    margin: 3px 0 0;
}

.manual-timeout-help-button {
    min-height: 34px;
    padding: 7px 12px;
    border-radius: 999px;
    font-size: 0.82rem;
}

.attendance-photo-check {
    display: grid;
    gap: 14px;
    width: 100%;
    padding: 18px;
    border: 1px solid rgba(79, 70, 229, 0.18);
    border-radius: 24px;
    background: linear-gradient(135deg, rgba(236, 253, 245, 0.92), rgba(255, 255, 255, 0.98));
    box-shadow: 0 14px 34px rgba(79, 70, 229, 0.08);
    text-align: center;
}

.attendance-photo-check strong {
    display: block;
    margin-top: 2px;
    color: var(--ink);
    font-size: 1.02rem;
}

.attendance-photo-check p {
    margin: 5px auto 0;
    max-width: 34rem;
    color: var(--muted);
}

.attendance-photo-check .button {
    justify-self: center;
    width: min(100%, 280px);
}

.attendance-visit-notes {
    display: grid;
    gap: 8px;
    width: 100%;
    text-align: left;
}

.attendance-visit-notes label {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--ink);
}

.attendance-visit-notes label small {
    font-weight: 500;
    color: var(--muted);
}

.attendance-visit-notes textarea {
    width: 100%;
    min-height: 64px;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: #fff;
    color: var(--ink);
    font: inherit;
    font-size: 0.9rem;
    resize: vertical;
}

.attendance-visit-notes__actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.attendance-visit-notes__status {
    font-size: 0.82rem;
    color: var(--muted);
}

.attendance-photo-staged {
    display: grid;
    gap: 14px;
    width: 100%;
    text-align: left;
}

.attendance-photo-staged__summary {
    display: flex;
    align-items: center;
    gap: 12px;
}

.attendance-photo-staged__summary img {
    width: 64px;
    height: 64px;
    flex: 0 0 auto;
    border-radius: 12px;
    object-fit: cover;
    background: #0f241f;
}

.attendance-photo-staged__summary > div {
    display: grid;
    gap: 6px;
}

.attendance-photo-staged__summary strong {
    color: var(--ink);
    font-size: 0.95rem;
}

.attendance-photo-staged .button--primary {
    justify-self: center;
    width: min(100%, 280px);
}

.summary-mode-tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-bottom: 16px;
    padding: 6px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.78);
}

.summary-mode-tab {
    min-height: 36px;
    border: 0;
    border-radius: 999px;
    color: var(--muted);
    background: transparent;
    cursor: pointer;
    font-size: 0.82rem;
    font-weight: 900;
    transition: background 0.16s ease, color 0.16s ease;
}

.summary-mode-tab.is-active {
    color: #ffffff;
    background: var(--primary);
}

.summary-mode-panel[hidden] {
    display: none;
}

.summary-filter-form {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px 16px;
    margin-bottom: 12px;
}

.summary-date-field {
    display: flex;
    align-items: center;
    gap: 8px;
}

.summary-date-field span {
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 700;
}

.summary-date-field input[type="date"],
.summary-date-field select {
    padding: 6px 10px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: #fff;
    color: var(--ink);
    font: inherit;
    font-size: 0.86rem;
}

.summary-date-clear {
    color: var(--primary);
    font-size: 0.82rem;
    font-weight: 800;
    text-decoration: underline;
}

.summary-visit-list {
    display: grid;
    gap: 10px;
    margin-bottom: 14px;
}

.summary-visit-card {
    display: grid;
    gap: 8px;
    padding: 14px 16px;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: var(--panel);
}

.summary-visit-card__header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
}

.summary-visit-card__header strong {
    color: var(--ink);
}

.summary-visit-card__header span {
    color: var(--muted);
    font-size: 0.82rem;
    white-space: nowrap;
}

.summary-visit-card textarea {
    width: 100%;
    min-height: 56px;
    padding: 9px 11px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: #fff;
    color: var(--ink);
    font: inherit;
    font-size: 0.88rem;
    resize: vertical;
}

.summary-visit-card__actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.summary-visit-card__status {
    font-size: 0.8rem;
    color: var(--muted);
}

.summary-visit-card--accent {
    border-left: 4px solid var(--primary);
    background: linear-gradient(90deg, rgba(79, 70, 229, 0.06), var(--panel) 22%);
}

.summary-visit-card--accent .summary-visit-card__header strong {
    font-size: 1.08rem;
}

.special-attendance-actions {
    display: flex;
    justify-content: center;
    margin-top: 4px;
}

.summary-pdf-download-row {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 10px;
    margin: 0 0 16px;
    padding-bottom: 2px;
    overflow-x: auto;
}

.summary-pdf-download-row label {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.summary-pdf-download-row label span {
    color: var(--muted);
    font-size: 0.85rem;
    white-space: nowrap;
}

.summary-pdf-download-row input[type="date"] {
    width: 132px;
    flex-shrink: 0;
}

.summary-pdf-download-row button {
    flex-shrink: 0;
    white-space: nowrap;
}

.special-attendance-session > summary {
    display: flex;
    align-items: center;
    gap: 10px;
    list-style: none;
    cursor: pointer;
}

.special-attendance-session > summary::-webkit-details-marker {
    display: none;
}

.special-attendance-session__summary-main {
    display: flex;
    flex: 1;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
}

.special-attendance-session__summary::after {
    content: "\203A";
    flex-shrink: 0;
    color: var(--muted);
    font-size: 1.2rem;
    font-weight: 900;
    transition: transform 0.15s ease;
}

.special-attendance-session[open] > .special-attendance-session__summary::after {
    transform: rotate(90deg);
}

.special-attendance-session__visits {
    display: grid;
    gap: 4px;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid var(--border);
}

.special-attendance-session__locations {
    margin: 0 0 6px;
    color: var(--muted);
    font-size: 0.8rem;
    font-weight: 700;
}

.special-attendance-session__locations a {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.special-attendance-session--open {
    border-left: 4px solid var(--warning);
    background: linear-gradient(90deg, var(--warning-soft), var(--panel) 22%);
}

.special-attendance-session--closed {
    border-left: 4px solid var(--success);
    background: linear-gradient(90deg, var(--success-soft), var(--panel) 22%);
}

.visit-summary-store-note {
    padding: 8px 10px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--panel-muted, rgba(0, 0, 0, 0.02));
}

.visit-summary-store-note + .visit-summary-store-note {
    margin-top: 8px;
}

.visit-summary-store-note strong {
    color: var(--ink);
}

.visit-summary-store-note small {
    margin-left: 8px;
    color: var(--muted);
    font-size: 0.78rem;
}

.visit-summary-store-note p {
    margin: 4px 0 0;
    color: var(--ink);
}

.summary-overall-form {
    display: grid;
    gap: 10px;
    max-width: 480px;
}

.summary-overall-form label {
    font-weight: 700;
    color: var(--ink);
}

.summary-overall-form textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: #fff;
    color: var(--ink);
    font: inherit;
    font-size: 0.9rem;
    resize: vertical;
}

.summary-overall-form .button {
    justify-self: start;
}

#attendance-selfie-modal,
#attendance-check-photo-modal {
    z-index: 5000;
    padding: 0;
    background: rgba(14, 24, 20, 0.42);
}

#attendance-selfie-modal:not([hidden]),
#attendance-check-photo-modal:not([hidden]),
#attendance-check-photo-confirm-modal:not([hidden]) {
    inset: var(--selfie-modal-top, 0px) 0 auto 0 !important;
    display: block !important;
    height: var(--selfie-modal-height, calc(100dvh - var(--selfie-modal-top, 0px))) !important;
    overflow-y: auto !important;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    padding: 10px 10px calc(14px + env(safe-area-inset-bottom));
}

.modal-card--selfie {
    display: flex;
    flex-direction: column;
    width: min(440px, calc(100vw - 20px));
    max-height: none;
    margin: 0 auto 18px;
    overflow: visible;
    overscroll-behavior: contain;
}

.modal-card--selfie .modal-card__header {
    position: static;
    z-index: auto;
    margin: 0 0 12px;
    padding: 0;
    border-radius: 0;
    background: transparent;
    backdrop-filter: none;
}

.modal-card--selfie .selfie-camera {
    flex: 0 1 auto;
    height: auto;
    max-height: min(42svh, 42dvh, 480px);
    aspect-ratio: auto;
}

.modal-card--selfie .selfie-camera video,
.modal-card--selfie .selfie-camera img {
    width: 100%;
    height: auto;
    max-height: min(42svh, 42dvh, 480px);
    object-fit: contain;
}

.modal-card--selfie .modal-card__body {
    margin: 10px 0 0;
}

.modal-card--selfie .selfie-actions {
    position: static;
    z-index: 2;
    margin: 10px -4px -4px;
    padding-top: 10px;
    background: #ffffff;
}

@media (max-width: 680px) {
    .agent-topbar {
        gap: 10px;
    }

    .agent-topbar__greeting strong {
        max-width: 58vw;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .agent-notification-dropdown {
        position: fixed;
        top: 74px;
        right: 12px;
        left: 12px;
        width: auto;
    }

    .attendance-panel--focus {
        padding: 14px;
    }

    .attendance-focus__top {
        margin-bottom: -2px;
    }

    .attendance-focus__copy h2 {
        font-size: clamp(2.65rem, 16vw, 3.65rem);
    }

    .attendance-store-toolbar {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .attendance-store-toolbar .button {
        width: 100%;
    }

    .attendance-store-section__header {
        flex-direction: column;
        align-items: flex-start;
    }

    .attendance-store-section__header small {
        text-align: left;
    }

    .gps-accuracy-indicator {
        padding: 10px 14px;
    }

    .manual-timeout-panel {
        gap: 8px;
    }

    .attendance-photo-check {
        gap: 12px;
        padding: 14px;
        border-radius: 20px;
    }

    .modal-card--selfie {
        width: calc(100vw - 16px);
        max-height: none;
        margin-bottom: 14px;
        padding: 12px;
        border-radius: 20px;
    }

    .modal-card--selfie .modal-card__header {
        margin: 0 0 10px;
        padding: 0;
        border-radius: 0;
    }

    .modal-card--selfie .selfie-camera {
        max-height: min(36svh, 36dvh);
        aspect-ratio: auto;
    }

    .modal-card--selfie .selfie-camera video,
    .modal-card--selfie .selfie-camera img {
        max-height: min(36svh, 36dvh);
    }

    .modal-card--selfie .modal-card__header h2 {
        font-size: 1.35rem;
    }

    .modal-card--selfie .modal-card__body {
        font-size: 0.86rem;
        line-height: 1.3;
    }

    .modal-card--selfie .selfie-actions {
        display: grid;
        grid-template-columns: 1fr;
        gap: 8px;
        margin: 10px -14px -14px;
        padding: 10px 14px 14px;
        border-top: 1px solid var(--border);
        border-radius: 0 0 20px 20px;
    }

    .modal-card--selfie .selfie-actions .button--camera {
        justify-self: center;
    }

}

@media (max-width: 680px) and (max-height: 720px) {
    .modal-card--selfie .selfie-camera,
    .modal-card--selfie .selfie-camera video,
    .modal-card--selfie .selfie-camera img {
        max-height: min(30svh, 30dvh);
    }

    .modal-card--selfie .modal-card__body {
        margin-top: 8px;
    }
}

@media (max-width: 720px) {
    .notification-modal {
        position: fixed;
        inset: 0;
        width: 100vw;
        min-height: 100svh;
        display: flex;
        align-items: flex-start;
        justify-content: center;
        overflow-y: auto;
        padding: calc(86px + env(safe-area-inset-top)) 14px calc(96px + env(safe-area-inset-bottom));
        z-index: 10000;
    }

    .notification-modal .modal-card--notification {
        width: min(430px, calc(100vw - 28px));
        max-height: calc(100svh - 182px - env(safe-area-inset-top) - env(safe-area-inset-bottom));
        margin: 0;
        overflow: auto;
        border-radius: 22px;
    }

    .notification-modal #flash-notification-title {
        font-size: clamp(2.35rem, 11vw, 3.1rem);
        line-height: 0.95;
    }

    .notification-modal .modal-card__actions {
        position: sticky;
        bottom: -16px;
        margin: 14px -16px -16px;
        padding: 12px 16px max(16px, env(safe-area-inset-bottom));
        border-top: 1px solid var(--border);
        background: #ffffff;
    }

    .notification-modal .modal-card__actions .button {
        width: 100%;
    }
}

/* Final modal safety guard: keep non-camera dialogs fully inside mobile viewports. */
.modal-backdrop:not([hidden]):not(#attendance-selfie-modal):not(#attendance-check-photo-modal):not(#attendance-check-photo-confirm-modal) {
    position: fixed !important;
    inset: 0 !important;
    z-index: 10000 !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    padding: max(14px, env(safe-area-inset-top)) max(14px, env(safe-area-inset-right)) max(14px, env(safe-area-inset-bottom)) max(14px, env(safe-area-inset-left));
    overflow-x: hidden;
    overflow-y: auto;
    box-sizing: border-box;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
}

.modal-backdrop:not([hidden]):not(#attendance-selfie-modal):not(#attendance-check-photo-modal):not(#attendance-check-photo-confirm-modal) .modal-card {
    box-sizing: border-box;
    max-width: 100%;
    max-height: calc(100dvh - 28px);
    margin: auto;
    overflow-y: auto;
    overscroll-behavior: contain;
}

.modal-card__header--help > div {
    min-width: 0;
}

.modal-card__header--help .icon-button {
    flex: 0 0 auto;
}

.modal-card__header h2 {
    overflow-wrap: anywhere;
}

.notification-modal:not([hidden]) {
    align-items: center !important;
    padding: max(14px, env(safe-area-inset-top)) 14px max(14px, env(safe-area-inset-bottom)) !important;
}

.notification-modal .modal-card--notification {
    width: min(430px, calc(100vw - 28px)) !important;
    max-height: calc(100dvh - 28px) !important;
    border-radius: 22px !important;
}

.notification-modal #flash-notification-title {
    font-size: clamp(2rem, 8vw, 2.75rem) !important;
    line-height: 1 !important;
}

#manual-time-out-modal:not([hidden]) {
    align-items: flex-start !important;
}

#manual-time-out-modal .modal-card {
    width: min(560px, calc(100vw - 28px)) !important;
}

@media (max-width: 680px) {
    .modal-backdrop:not([hidden]):not(#attendance-selfie-modal):not(#attendance-check-photo-modal):not(#attendance-check-photo-confirm-modal) {
        align-items: flex-start !important;
        padding: max(12px, env(safe-area-inset-top)) 12px max(18px, env(safe-area-inset-bottom));
    }

    .modal-backdrop:not([hidden]):not(#attendance-selfie-modal):not(#attendance-check-photo-modal):not(#attendance-check-photo-confirm-modal) .modal-card {
        max-height: calc(100dvh - 30px);
        border-radius: 22px;
    }

    .notification-modal:not([hidden]) {
        align-items: center !important;
        padding: max(14px, env(safe-area-inset-top)) 14px max(22px, env(safe-area-inset-bottom)) !important;
    }

    .notification-modal .modal-card--notification {
        width: calc(100vw - 28px) !important;
        max-height: calc(100dvh - 36px) !important;
        margin: auto !important;
    }

    .notification-modal .modal-card__actions {
        bottom: -16px;
    }
}

@media print {
    @page {
        size: A4 portrait;
        margin: 12mm;
    }

    html,
    body {
        color: #111827 !important;
        background: #ffffff !important;
    }

    body * {
        visibility: hidden !important;
    }

    /* .page has a page-load entrance animation (transform-based, fill-mode: both) that
       never fully detaches, which makes it a CSS containing block for absolutely
       positioned descendants. That silently offsets .report-print-summary's
       "top: 0" below the (hidden but still laid-out) topbar instead of the true
       page top. Disabling it for print removes that offset. */
    .page {
        animation: none !important;
    }

    .report-print-summary,
    .report-print-summary * {
        visibility: visible !important;
    }

    .report-print-summary {
        position: absolute;
        top: 0;
        left: 0;
        margin-top: 0 !important;
        display: block !important;
        width: 100%;
        padding-bottom: 18mm;
        background: #ffffff;
    }

    .report-summary-actions,
    .report-summary-preview__empty,
    .report-print-footer {
        display: none !important;
        visibility: hidden !important;
    }

    .report-print-card {
        max-width: none;
        margin: 0;
        box-shadow: none;
    }

    .report-print-header {
        padding-top: 0;
    }

    .report-print-header img {
        width: 62px;
    }

    .report-print-header h1 {
        font-size: 20px;
    }

    .report-print-metrics {
        gap: 0 22px;
        padding: 6px 8px 4px;
    }

    .report-print-metrics > div {
        padding: 6px 10px;
    }

    .report-print-table {
        width: 100%;
        margin: 0 0 18mm;
        page-break-inside: auto;
        font-size: 11px;
    }

    .report-print-table tr {
        page-break-inside: avoid;
        page-break-after: auto;
    }

    .report-print-table {
        margin-bottom: 0;
    }
}

@media screen {
    html.hr-theme-dark-pending body.body--hr-shell .topbar,
    body.body--hr-shell.hr-theme-dark .topbar {
        border-bottom-color: rgba(238, 247, 244, 0.08);
        background: linear-gradient(180deg, rgba(13, 20, 19, 0.94), rgba(13, 20, 19, 0.80));
    }

    html.hr-theme-dark-pending body.body--hr-shell :is(.topbar__inner--hr .brand, .nav--hr, .topbar__actions, .user-chip, .user-menu__panel, .panel, .card, .stat-card, .metric-card, .modal-card, .form-card, .settings-card, .settings-accordion__item, .table-wrap, .records-table-wrap, .report-table-wrap, .special-travel-table-wrap, .timeout-repeat-panel, .user-accounts-card, .approval-card),
    body.body--hr-shell.hr-theme-dark :is(.topbar__inner--hr .brand, .nav--hr, .topbar__actions, .user-chip, .user-menu__panel, .panel, .card, .stat-card, .metric-card, .modal-card, .form-card, .settings-card, .settings-accordion__item, .table-wrap, .records-table-wrap, .report-table-wrap, .special-travel-table-wrap, .timeout-repeat-panel, .user-accounts-card, .approval-card) {
        border-color: var(--border);
        background: rgba(24, 35, 33, 0.94);
        box-shadow: var(--shadow-sm);
    }

    html.hr-theme-dark-pending body.body--hr-shell .nav--hr__section,
    body.body--hr-shell.hr-theme-dark .nav--hr__section {
        border-bottom-color: rgba(238, 247, 244, 0.08);
    }

    html.hr-theme-dark-pending body.body--hr-shell .nav--hr__section-label,
    body.body--hr-shell.hr-theme-dark .nav--hr__section-label {
        color: #8da8a1;
    }

    html.hr-theme-dark-pending body.body--hr-shell .nav--hr__icon,
    body.body--hr-shell.hr-theme-dark .nav--hr__icon {
        color: #9ab0aa;
    }

    html.hr-theme-dark-pending body.body--hr-shell .nav--hr a:hover,
    html.hr-theme-dark-pending body.body--hr-shell .nav--hr a:focus-visible,
    body.body--hr-shell.hr-theme-dark .nav--hr a:hover,
    body.body--hr-shell.hr-theme-dark .nav--hr a:focus-visible {
        border-color: rgba(129, 140, 248, 0.28);
        background: rgba(129, 140, 248, 0.10);
    }

    html.hr-theme-dark-pending body.body--hr-shell .nav--hr a.active,
    body.body--hr-shell.hr-theme-dark .nav--hr a.active {
        border-color: rgba(129, 140, 248, 0.34);
        background: rgba(129, 140, 248, 0.16);
        color: var(--primary-strong);
    }

    html.hr-theme-dark-pending body.body--hr-shell :is(th, .table th, .records-table th, .report-table th),
    body.body--hr-shell.hr-theme-dark :is(th, .table th, .records-table th, .report-table th) {
        color: #b8cbc5;
        background: rgba(32, 45, 42, 0.9);
        border-color: var(--border);
    }

    html.hr-theme-dark-pending body.body--hr-shell :is(td, .table td, .records-table td, .report-table td),
    body.body--hr-shell.hr-theme-dark :is(td, .table td, .records-table td, .report-table td) {
        border-color: var(--border);
    }

    html.hr-theme-dark-pending body.body--hr-shell :is(input, select, textarea, .report-combobox__control),
    body.body--hr-shell.hr-theme-dark :is(input, select, textarea, .report-combobox__control) {
        color: var(--text);
        border-color: var(--border);
        background: #101917;
    }

    html.hr-theme-dark-pending body.body--hr-shell :is(.button--ghost, .btn--ghost),
    body.body--hr-shell.hr-theme-dark :is(.button--ghost, .btn--ghost) {
        color: var(--text);
        border-color: var(--border);
        background: rgba(16, 25, 23, 0.92);
    }
}

/* Punch orb (Time In / Time Out) animated gradient, placed last on purpose:
   .punch-orb--in/--out are declared several times earlier in this file with
   plain static gradients, and the last declaration wins the cascade. */
.punch-orb--in {
    color: #ffffff;
    background: linear-gradient(120deg, #6366f1, #8b5cf6, #4f46e5, #3730a3, #4338ca, #6366f1);
    background-size: 300% 300%;
    animation: punchFloat 3.6s ease-in-out infinite, punchGradientShift 8s ease infinite;
}

.punch-orb--out {
    color: #ffffff;
    background: linear-gradient(120deg, #f97316, #fb923c, #ea580c, #7c2d12, #c2410c, #f97316);
    background-size: 300% 300%;
    box-shadow: 0 22px 42px rgba(194, 65, 12, 0.24);
    animation: punchFloat 3.6s ease-in-out infinite, punchGradientShift 8s ease infinite;
}
