:root {
    --bg: #f6f8f7;
    --bg-soft: #eef3ef;
    --panel: #ffffff;
    --panel-muted: #f8faf8;
    --text: #17211d;
    --muted: #63736c;
    --subtle: #86948e;
    --border: #dce4df;
    --border-strong: #c5d1cb;
    --primary: #0f766e;
    --primary-strong: #0b5f59;
    --primary-soft: #e4f4f1;
    --success: #157347;
    --success-soft: #e8f6ee;
    --warning: #9a5b00;
    --warning-soft: #fff4dc;
    --danger: #b42318;
    --danger-soft: #fff0ee;
    --info: #275c8f;
    --info-soft: #eaf3fb;
    --shadow: 0 18px 42px rgba(32, 48, 40, 0.12);
    --shadow-sm: 0 10px 24px rgba(32, 48, 40, 0.08);
    --shadow-lg: 0 28px 70px rgba(32, 48, 40, 0.18);
    --radius: 12px;
    --radius-sm: 8px;
    --container: 1440px;
}

* {
    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(15, 118, 110, 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(32, 48, 40, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(32, 48, 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;
}

.body--login {
    background:
        radial-gradient(circle at 88% 8%, rgba(15, 118, 110, 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(15, 118, 110, 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: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(15, 118, 110, 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(15, 118, 110, 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(15, 118, 110, 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 {
    margin-bottom: 20px;
    padding: 24px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--panel);
    box-shadow: var(--shadow-sm);
}

.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: var(--muted);
}

.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;
}

.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(15, 118, 110, 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-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);
}

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

.report-print-card {
    width: 100%;
    max-width: 760px;
    margin: 0 auto;
    color: #111827;
    background: #ffffff;
}

.report-print-header {
    display: grid;
    justify-items: center;
    gap: 4px;
    padding: 18px 18px 14px;
    border-bottom: 4px solid var(--primary);
    text-align: center;
}

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

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

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

.report-print-metrics {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 26px;
    padding: 18px 20px;
}

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

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

.report-print-table {
    width: calc(100% - 40px);
    margin: 0 20px 54px;
    border-collapse: collapse;
    font-size: 0.82rem;
}

.report-print-table th,
.report-print-table td {
    padding: 8px 9px;
    border-bottom: 1px solid #e5e7eb;
    text-align: left;
}

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

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

.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(15, 118, 110, 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, #073c38 0%, #0f766e 62%, #11906f 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(32, 48, 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(15, 118, 110, 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(15, 118, 110, 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(15, 118, 110, 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(15, 118, 110, 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(15, 118, 110, 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;
}

.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(15, 118, 110, 0.2);
    background: rgba(15, 118, 110, 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(15, 118, 110, 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(15, 118, 110, 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:
        radial-gradient(circle at 35% 25%, rgba(255, 255, 255, 0.26), transparent 28%),
        linear-gradient(145deg, #14a38f 0%, #0f766e 58%, #0b4f4a 100%);
}

.punch-orb--out {
    color: #ffffff;
    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.24);
}

.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;
}

.attendance-panel--primary {
    border-color: rgba(15, 118, 110, 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;
    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(15, 118, 110, 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;
}

.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(15, 118, 110, 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);
}

.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(15, 118, 110, 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--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;
}

.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(15, 118, 110, 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-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;
    }

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

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

    .manual-timeout-panel .button,
    .timeout-request-actions .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(15, 118, 110, 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(15, 118, 110, 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) both;
}

.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(32, 48, 40, 0.08);
}

.topbar::after {
    background: linear-gradient(90deg, transparent, rgba(15, 118, 110, 0.32), transparent);
}

.brand {
    color: var(--text);
}

.brand::before {
    color: #ffffff;
    border-color: rgba(15, 118, 110, 0.18);
    background:
        radial-gradient(circle at 32% 26%, rgba(255, 255, 255, 0.22), transparent 30%),
        linear-gradient(135deg, #14a38f, #0f766e 62%, #0b5f59);
    box-shadow: 0 10px 22px rgba(15, 118, 110, 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(15, 118, 110, 0.16);
    background: var(--primary-soft);
}

.nav a.active {
    color: var(--primary-strong);
    border-color: rgba(15, 118, 110, 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(15, 118, 110, 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(15, 118, 110, 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(15, 118, 110, 0.52);
    box-shadow: 0 0 0 4px rgba(15, 118, 110, 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(15, 118, 110, 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(15, 118, 110, 0.18), transparent 24rem),
        linear-gradient(145deg, #073c38 0%, #0f766e 62%, #11906f 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(15, 118, 110, 0.12), transparent 34%),
        linear-gradient(180deg, #ffffff, #f9fcfa);
}

.attendance-panel--focus::before {
    background: linear-gradient(90deg, rgba(15, 118, 110, 0.1), rgba(15, 118, 110, 0.02));
}

.instruction-accent--teal,
.instruction-accent--blue,
.instruction-accent--green,
.instruction-accent--orange {
    color: var(--primary-strong);
    border-color: rgba(15, 118, 110, 0.16);
    background: var(--primary-soft);
}

.punch-orb {
    box-shadow: 0 22px 42px rgba(15, 118, 110, 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(132px, auto) minmax(0, 1fr) auto;
    align-items: center;
    gap: 16px;
    min-height: 72px;
}

.topbar__inner--hr .brand {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    min-width: 132px;
    font-size: 0.98rem;
    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: 10px;
    background: #ffffff;
    box-shadow: 0 10px 22px rgba(15, 118, 110, 0.18);
}

.brand--logo span {
    font-weight: 900;
}

.nav--hr {
    width: 100%;
    min-width: 0;
    justify-content: center;
    gap: 3px;
    padding: 5px;
    border-radius: 999px;
    overflow-x: auto;
    scrollbar-width: none;
}

.nav--hr::-webkit-scrollbar {
    display: none;
}

.nav--hr a {
    min-height: 38px;
    flex: 0 0 auto;
    padding: 8px 13px;
    border-radius: 999px;
    font-size: 0.84rem;
    line-height: 1;
    white-space: nowrap;
}

.nav--hr a.active {
    font-weight: 900;
}

.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;
    gap: 10px;
}

.hr-image-alert {
    position: relative;
}

.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: 150px;
    max-width: 210px;
    padding: 8px 11px;
    border-radius: 14px;
}

.topbar__inner--hr .user-chip strong {
    display: block;
    overflow: hidden;
    max-width: 178px;
    font-size: 0.86rem;
    line-height: 1.15;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.topbar__inner--hr .user-chip small {
    display: block;
    margin-top: 2px;
    font-size: 0.72rem;
}

.topbar__inner--hr .button {
    min-height: 42px;
    padding: 8px 16px;
    border-radius: 14px;
    font-size: 0.9rem;
    white-space: nowrap;
}

.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(15, 118, 110, 0.28);
    box-shadow: 0 12px 28px rgba(32, 48, 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(15, 118, 110, 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(15, 118, 110, 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;
}

.default-password-note--field-staff {
    grid-template-columns: auto 1fr;
    gap: 12px;
    align-items: start;
    padding: 14px;
    border-color: rgba(15, 118, 110, 0.22);
    background:
        linear-gradient(135deg, rgba(15, 118, 110, 0.12), rgba(15, 118, 110, 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(15, 118, 110, 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(15, 118, 110, 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;
}

.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;
}

.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(15, 118, 110, 0.18);
    border-radius: 999px;
    background: var(--primary-soft);
    color: var(--primary-strong);
}

.reward-visual-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(260px, 0.55fr);
    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);
}

.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(15, 118, 110, 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-bar-chart {
    display: flex;
    align-items: end;
    justify-content: space-around;
    gap: 10px;
    min-height: 240px;
    padding-top: 8px;
}

.reward-bar-chart__item {
    display: grid;
    grid-template-rows: auto 1fr auto;
    gap: 7px;
    align-items: end;
    justify-items: center;
    min-width: 42px;
    height: 220px;
}

.reward-bar-chart__item strong {
    color: var(--text);
    font-size: 0.9rem;
}

.reward-bar-chart__item small {
    color: var(--primary-strong);
    font-weight: 900;
}

.reward-bar-chart__code {
    position: relative;
    cursor: help;
    outline: none;
}

.reward-bar-chart__code::after {
    content: attr(data-agent-name);
    position: absolute;
    left: 50%;
    bottom: calc(100% + 8px);
    z-index: 5;
    min-width: max-content;
    max-width: 180px;
    padding: 6px 9px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--surface);
    box-shadow: var(--shadow-soft);
    color: var(--text);
    font-size: 0.72rem;
    font-weight: 800;
    line-height: 1.25;
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, 4px);
    transition: opacity 160ms ease, transform 160ms ease;
}

.reward-bar-chart__code:hover::after,
.reward-bar-chart__code:focus-visible::after {
    opacity: 1;
    transform: translate(-50%, 0);
}

.reward-bar-chart__track {
    position: relative;
    overflow: hidden;
    width: 32px;
    height: 150px;
    border-radius: 999px;
    background: var(--panel-muted);
}

.reward-bar-chart__track span {
    position: absolute;
    inset: auto 0 0;
    height: var(--reward-height);
    border-radius: inherit;
    background: linear-gradient(180deg, #f97316, var(--primary));
    transition: height 260ms ease;
}

.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: #ffffff;
    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);
}

.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: linear-gradient(135deg, #ffffff, #f7fbf9);
}

.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), #f59e0b);
    box-shadow: 0 10px 20px rgba(15, 118, 110, 0.18);
    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(15, 118, 110, 0.14);
    border-radius: 999px;
    background: #ffffff;
    color: var(--muted);
    font-size: 0.72rem;
    font-weight: 900;
    white-space: nowrap;
}

.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(15, 118, 110, 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(15, 118, 110, 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-points-panel {
    display: grid;
    gap: 14px;
}

.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(15, 118, 110, 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-policy-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 1120px) {
    .topbar__inner--hr {
        grid-template-columns: minmax(128px, auto) minmax(0, 1fr);
    }

    .topbar__inner--hr .topbar__actions {
        grid-column: 1 / -1;
        justify-self: end;
        margin-top: -8px;
    }

    .nav--hr {
        justify-content: flex-start;
    }
}

@media (max-width: 680px) {
    .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;
    }
}

.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(15, 118, 110, 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(15, 118, 110, 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-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 .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(15, 118, 110, 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(15, 118, 110, 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(15, 118, 110, 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-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]) {
    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;
    }
}

@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 print {
    @page {
        size: A4 portrait;
        margin: 12mm;
    }

    html,
    body {
        color: #111827 !important;
        background: #ffffff !important;
    }

    body * {
        visibility: hidden !important;
    }

    .report-print-summary,
    .report-print-summary * {
        visibility: visible !important;
    }

    .report-print-summary {
        position: absolute;
        top: 0;
        left: 0;
        display: block !important;
        width: 100%;
        padding-bottom: 18mm;
        background: #ffffff;
    }

    .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: 10px 22px;
        padding: 14px 8px 16px;
    }

    .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-footer,
    .report-print-footer * {
        visibility: visible !important;
    }

    .report-print-footer {
        position: fixed;
        right: 0;
        bottom: 0;
        left: 0;
        display: grid;
        grid-template-columns: 1fr 1fr 1fr;
        gap: 8px;
        padding-top: 6px;
        border-top: 1px solid #d1d5db;
        color: #475569;
        background: #ffffff;
        font-size: 9px;
        line-height: 1.25;
    }

    .report-print-footer span:nth-child(2) {
        text-align: center;
    }

    .report-print-footer span:nth-child(3) {
        text-align: right;
    }
}
