:root {
    --staff-green: #14532d;
    --staff-green-soft: #dcfce7;
    --staff-ink: #17211b;
    --staff-muted: #647067;
    --staff-surface: #ffffff;
    --staff-border: rgba(20, 83, 45, .13);
    --staff-nav-height: 4.75rem;
    --staff-focus: #166534;
}

body {
    background: #f1f5f2 !important;
    color: var(--staff-ink);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

html, body { max-width: 100%; overflow-x: hidden; }

[data-staff-shell="foundation"] { max-width: 34rem; margin-inline: auto; }
.staff-layout--authenticated {
    align-items: flex-start !important;
    padding-bottom: calc(var(--staff-nav-height) + 2rem + env(safe-area-inset-bottom)) !important;
}
.staff-bottom-nav {
    position: fixed;
    z-index: 1040;
    right: 0;
    bottom: 0;
    left: 0;
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    min-height: calc(var(--staff-nav-height) + env(safe-area-inset-bottom));
    padding: .35rem max(.25rem, env(safe-area-inset-right)) calc(.35rem + env(safe-area-inset-bottom)) max(.25rem, env(safe-area-inset-left));
    border-top: 1px solid var(--staff-border);
    background: rgba(255, 255, 255, .98);
    box-shadow: 0 -.4rem 1.5rem rgba(20, 83, 45, .09);
}

.staff-attendance__next { margin:.3rem 0 0; color:#5f7088; font-size:.8rem; line-height:1.45; }
.staff-attendance__primary { min-height:48px; margin-top:.85rem; border:0; border-radius:.9rem; background:#1265df; font-weight:800; box-shadow:0 .55rem 1.25rem rgba(18,101,223,.2); }
.staff-attendance[data-attendance-state="COMPLETE"] .staff-attendance-status { border-color:#b9e8d1; background:linear-gradient(145deg,#fff,#f0fff7); }
.staff-attendance[data-attendance-state="CHECK_OUT"] .staff-attendance-status { border-color:#bcd6fb; }
.staff-location-check { margin:.65rem 0; border:1px solid #dbe5f1; border-radius:.8rem; background:#f8fbff; }
.staff-location-check summary { display:flex; min-height:42px; align-items:center; gap:.45rem; padding:.65rem .75rem; color:#53657d; cursor:pointer; font-size:.76rem; font-weight:750; list-style:none; }
.staff-location-check summary::-webkit-details-marker { display:none; }
.staff-location-check[open] { padding-bottom:.65rem; }
.staff-location-check__button,.staff-location-check__result { margin-right:.75rem; margin-left:.75rem; }
.staff-late-card > summary { cursor:pointer; list-style:none; }
.staff-late-card > summary::-webkit-details-marker { display:none; }
.staff-late-card__chevron { margin-left:auto; color:#8b98aa; transition:transform .18s ease; }
.staff-late-card[open] .staff-late-card__chevron { transform:rotate(180deg); }
.staff-late-card:not([open]) .staff-late-card__intro,.staff-late-card:not([open]) .staff-mode-card__body { display:none; }
.staff-late-card.is-eligible { border-color:#f2c96f; box-shadow:0 .45rem 1.3rem rgba(185,119,16,.1); }
.staff-bottom-nav__item {
    display: flex;
    min-width: 0;
    min-height: 44px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .12rem;
    border-radius: .75rem;
    color: var(--staff-muted);
    font-size: clamp(.58rem, 2.6vw, .72rem);
    font-weight: 650;
    line-height: 1.1;
    text-align: center;
    text-decoration: none;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    transition: color .16s ease, background-color .16s ease, opacity .16s ease, transform .16s ease;
}
.staff-bottom-nav__item:active,
.staff-bottom-nav__item.is-pressed,
.staff-bottom-nav__item.is-navigating { transform: scale(.94); }
.staff-bottom-nav[aria-busy="true"]::before {
    position: absolute;
    top: -1px;
    left: 0;
    width: 34%;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg, transparent, #1265df, transparent);
    content: "";
    animation: staff-nav-progress .85s ease-in-out infinite;
}
.staff-bottom-nav[aria-busy="true"] .staff-bottom-nav__item:not(.is-navigating) { opacity: .58; }
.staff-bottom-nav__item.is-navigating { background: #eaf2ff; color: #1265df; }
.staff-bottom-nav__item.is-navigating i { animation: staff-nav-pulse .7s ease-in-out infinite alternate; }
@keyframes staff-nav-progress { from { transform: translateX(-110%); } to { transform: translateX(295%); } }
@keyframes staff-nav-pulse { to { transform: scale(1.12); } }
@media (prefers-reduced-motion: reduce) {
    .staff-bottom-nav[aria-busy="true"]::before,
    .staff-bottom-nav__item.is-navigating i { animation: none; }
    .staff-bottom-nav__item { transition: none; }
}
.staff-bottom-nav__item i { font-size: 1.3rem; }
.staff-bottom-nav__item span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.staff-bottom-nav__item.is-active {
    background: var(--staff-green-soft);
    color: var(--staff-green);
    font-weight: 800;
}
.staff-bottom-nav__item.is-active::after {
    width: 1.1rem;
    height: .16rem;
    border-radius: 999px;
    background: currentColor;
    content: "";
}
.staff-attendance { width: 100%; max-width: 34rem; padding-bottom: env(safe-area-inset-bottom); }
.staff-attendance__header { display: flex; align-items: center; gap: 1rem; margin-bottom: 1rem; }
.staff-attendance__header h1 { margin: 0; font-size: 1.65rem; font-weight: 750; }
.staff-back-link { display: grid; place-items: center; width: 2.75rem; height: 2.75rem; border-radius: 50%; background: var(--staff-surface); color: var(--staff-green); text-decoration: none; box-shadow: 0 .25rem 1rem rgba(20, 83, 45, .1); }
.staff-eyebrow { margin: 0 0 .15rem; color: var(--staff-muted); font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.staff-status-card, .staff-mode-card { border: 1px solid rgba(20, 83, 45, .09); border-radius: 1.15rem; background: var(--staff-surface); box-shadow: 0 .4rem 1.5rem rgba(20, 83, 45, .07); }
.staff-status-card { margin-bottom: 1rem; padding: 1.1rem; }
.staff-attendance__summary { margin: .2rem 0; font-size: 1rem; font-weight: 650; }
.staff-attendance__status { min-height: 1.4rem; margin: .45rem 0 0; color: var(--staff-muted); font-size: .9rem; }
.staff-mode-card { display: flex; gap: .9rem; margin-bottom: 1rem; padding: 1rem; }
.staff-mode-card__icon { display: grid; flex: 0 0 2.75rem; place-items: center; height: 2.75rem; border-radius: .9rem; background: var(--staff-green-soft); color: var(--staff-green); font-size: 1.35rem; }
.staff-mode-card__body { min-width: 0; width: 100%; }
.staff-mode-card h2 { margin: 0 0 .35rem; font-size: 1.05rem; font-weight: 750; }
.staff-mode-card p { color: var(--staff-muted); font-size: .9rem; line-height: 1.45; }
.staff-late-card form { display: grid; gap: .85rem; margin-top: .9rem; }
.staff-late-card textarea.form-control { min-height: 5.75rem; resize: vertical; }
.staff-late-card [data-late-help] { margin: 0; font-size: .78rem; }
.staff-late-card input[readonly] { background: #f6faf8; color: var(--staff-ink); }
.staff-muted { color: var(--staff-muted); }
.staff-qr-scanner {
    position: fixed;
    z-index: 1060;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: max(1rem, env(safe-area-inset-top)) 1rem max(1rem, env(safe-area-inset-bottom));
    background: rgba(4, 19, 48, .92);
    color: #fff;
    backdrop-filter: blur(.4rem);
}
.staff-qr-scanner[hidden] { display: none; }
.staff-qr-scanner__frame {
    position: relative;
    width: min(100%, 26rem);
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, .84);
    border-radius: 1.35rem;
    background: #06142b;
    box-shadow: 0 1rem 3rem rgba(0, 0, 0, .34);
    aspect-ratio: 1 / 1;
}
.staff-qr-scanner__frame video { width: 100%; height: 100%; object-fit: cover; }
.staff-qr-scanner__frame span {
    position: absolute;
    inset: 14%;
    border: .22rem solid #fff;
    border-radius: 1rem;
    box-shadow: 0 0 0 100vmax rgba(3, 16, 39, .38), inset 0 0 0 1px rgba(18, 101, 223, .5);
}
.staff-qr-scanner__frame span::after {
    position: absolute;
    right: .75rem;
    left: .75rem;
    top: 50%;
    height: 2px;
    background: #53a6ff;
    box-shadow: 0 0 .8rem #53a6ff;
    content: "";
}
.staff-qr-scanner p { margin: 0; color: rgba(255, 255, 255, .86); font-size: .85rem; text-align: center; }
.staff-camera { position: fixed; z-index: 1050; inset: 0; display: flex; flex-direction: column; justify-content: center; padding: max(1rem, env(safe-area-inset-top)) 1rem max(1rem, env(safe-area-inset-bottom)); background: #07110bcc; backdrop-filter: blur(.35rem); }
.staff-camera[hidden] { display: none; }
.staff-camera video, .staff-camera img { width: min(100%, 34rem); max-height: 70vh; margin-inline: auto; border-radius: 1rem; object-fit: cover; background: #07110b; }
.staff-camera__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .65rem; margin-top: 1rem; }
.staff-requests__status { min-height: 1.4rem; margin: 0 0 1rem; color: var(--staff-muted); font-size: .9rem; }
.staff-requests__composer { display: grid; gap: 1rem; margin-bottom: 1rem; padding: 1.1rem; }
.staff-requests__fields, .staff-requests__evidence { display: grid; gap: .85rem; }
.staff-requests__evidence img { width: 100%; max-height: 16rem; object-fit: contain; border-radius: 1rem; }
.staff-request-field { display: grid; gap: .35rem; }
.staff-request-field label { color: var(--staff-ink); font-size: .9rem; font-weight: 650; }
.staff-request-field .form-control, .staff-request-field .form-select { min-height: 2.75rem; border-color: rgba(20, 83, 45, .2); }
.staff-request-field .form-control:focus, .staff-request-field .form-select:focus, .staff-back-link:focus-visible, .staff-requests button:focus-visible { border-color: var(--staff-green); box-shadow: 0 0 0 .2rem rgba(20, 83, 45, .18); outline: 0; }
.staff-request-options { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: .7rem; }
.staff-request-options[aria-busy="true"] { opacity: .65; }
.staff-request-option { display: grid; grid-template-columns: auto minmax(0,1fr); align-items: center; gap: .7rem; min-height: 4.6rem; padding: .8rem; border: 1px solid #dce7f2; border-radius: 1rem; background: linear-gradient(145deg,#fff,#f8fbff); color: var(--staff-ink); text-align: left; cursor: pointer; transition: transform .16s ease,border-color .16s ease,box-shadow .16s ease,background .16s ease; }
.staff-request-option:hover,.staff-request-option:focus-visible { border-color: #8eb9ea; background: #f2f8ff; box-shadow: 0 .45rem 1rem rgba(18,101,223,.12); outline: 0; transform: translateY(-1px); }
.staff-request-option.is-selected { border-color: #1265df; background: linear-gradient(145deg,#eef6ff,#e7f2ff); box-shadow: 0 0 0 .16rem rgba(18,101,223,.12); }
.staff-request-option > i { display: grid; width: 2.35rem; height: 2.35rem; place-items: center; border-radius: .75rem; background: #eaf2ff; color: #1265df; font-size: 1.15rem; }
.staff-request-option:nth-child(2n) > i { background: #fff1e8; color: #d97706; }
.staff-request-option:nth-child(3n) > i { background: #ecfdf5; color: #16835b; }
.staff-request-option__copy { display: grid; min-width: 0; gap: .16rem; }
.staff-request-option__copy strong { overflow: hidden; font-size: .78rem; font-weight: 820; text-overflow: ellipsis; white-space: nowrap; }
.staff-request-option__copy small { color: var(--staff-muted); font-size: .65rem; line-height: 1.3; }
.staff-request-options__state { grid-column: 1/-1; margin: 0; padding: 1rem; border: 1px dashed #cbd9e8; border-radius: .9rem; color: var(--staff-muted); font-size: .78rem; text-align: center; }
.staff-request-options__state.is-error { display: grid; gap: .65rem; color: #b54747; }
.staff-request-type-fallback { display: none !important; }
.staff-request-confirm { position: fixed; z-index: 1080; inset: 0; display: grid; place-items: center; padding: 1rem; }
.staff-request-confirm[hidden] { display: none; }
.staff-request-confirm__backdrop { position: absolute; inset: 0; background: rgba(5, 20, 44, .52); backdrop-filter: blur(5px); }
.staff-request-confirm__dialog { position: relative; width: min(100%, 23rem); padding: 1.35rem; border: 1px solid rgba(142, 185, 234, .45); border-radius: 1.35rem; background: linear-gradient(145deg, #fff, #f4f8ff); box-shadow: 0 1.4rem 3.5rem rgba(5, 35, 86, .24); text-align: center; animation: staff-request-confirm-in .18s ease-out; }
.staff-request-confirm__icon { display: grid; width: 3rem; height: 3rem; margin: 0 auto .75rem; place-items: center; border-radius: 1rem; background: #e8f1ff; color: #1265df; font-size: 1.45rem; }
.staff-request-confirm__dialog .attendance-eyebrow, .staff-request-confirm__dialog .staff-eyebrow { margin: 0 0 .3rem; color: #1265df; font-size: .72rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.staff-request-confirm__dialog h2 { margin: 0; color: var(--staff-ink); font-size: 1.1rem; font-weight: 800; }
.staff-request-confirm__dialog p:not(.staff-eyebrow):not(.attendance-eyebrow) { margin: .5rem 0 1.1rem; color: var(--staff-muted); font-size: .86rem; line-height: 1.45; }
.staff-request-confirm__actions { display: grid; grid-template-columns: 1fr 1fr; gap: .65rem; }
.staff-request-confirm__actions .btn { min-height: 2.7rem; border-radius: .8rem; font-weight: 750; }
@keyframes staff-request-confirm-in { from { opacity: 0; transform: translateY(.45rem) scale(.98); } to { opacity: 1; transform: translateY(0) scale(1); } }
.staff-requests [aria-busy="true"] { cursor: wait; opacity: .72; }
.staff-requests__history { padding: 1.1rem; }
.staff-requests__history-heading { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: .85rem; }
.staff-requests__history-heading h2 { margin: 0; font-size: 1.05rem; font-weight: 750; }
.staff-requests__history-heading i { color: var(--staff-green); font-size: 1.35rem; }
.staff-request-history-card { border-top: 1px solid rgba(20, 83, 45, .13); padding: .85rem 0; }
.staff-request-history-card:first-child { border-top: 0; padding-top: 0; }
.staff-request-history-card h3 { margin: 0 0 .4rem; font-size: .98rem; font-weight: 750; }
.staff-request-history-card p { margin: .25rem 0; color: var(--staff-muted); font-size: .86rem; }
.staff-request-status { display: inline-block; border-radius: 999px; background: var(--staff-green-soft); color: var(--staff-green) !important; font-weight: 700; padding: .18rem .55rem; }

.staff-dashboard, .staff-dashboard-page { width: 100%; max-width: 34rem; margin-inline: auto; }
.staff-dashboard-page__header, .staff-dashboard__heading, .staff-dashboard-card__title, .staff-source-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .8rem;
}
.staff-dashboard-page__header { margin-bottom: 1rem; }
.staff-dashboard-page__header h1 { margin: 0; font-size: 1.65rem; font-weight: 750; }
.staff-dashboard__heading { margin-bottom: .65rem; }
.staff-dashboard__status { min-height: 1.5rem; margin: 0 0 1rem; color: var(--staff-muted); font-size: .9rem; }
.staff-dashboard-card, .staff-filter-card, .staff-tab-panel {
    margin-bottom: 1rem;
    padding: 1rem;
    border: 1px solid var(--staff-border);
    border-radius: 1.15rem;
    background: var(--staff-surface);
    box-shadow: 0 .4rem 1.5rem rgba(20, 83, 45, .07);
}
.staff-dashboard-card h2, .staff-source-heading h2 { margin: 0; font-size: 1.05rem; font-weight: 750; }
.staff-dashboard-card--compact { display: grid; gap: .5rem; }
.staff-dashboard__freshness { color: var(--staff-muted); font-size: .82rem; }
.staff-source-badge {
    display: inline-flex;
    min-height: 1.75rem;
    align-items: center;
    border: 1px solid rgba(20, 83, 45, .2);
    border-radius: 999px;
    background: var(--staff-green-soft);
    color: var(--staff-green);
    font-size: .72rem;
    font-weight: 750;
    padding: .2rem .55rem;
    text-align: center;
}
.staff-source-badge--legacy { border-style: dashed; background: #fff7ed; color: #9a3412; }
.staff-detail-grid, .staff-money-grid, .staff-profile-list { display: grid; gap: .75rem; margin: .9rem 0; }
.staff-detail-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.staff-detail-grid div, .staff-money-grid div, .staff-profile-list div { min-width: 0; }
.staff-detail-grid dt, .staff-money-grid dt, .staff-profile-list dt { color: var(--staff-muted); font-size: .76rem; font-weight: 650; }
.staff-detail-grid dd, .staff-money-grid dd, .staff-profile-list dd { margin: .1rem 0 0; overflow-wrap: anywhere; font-weight: 700; }
.staff-money-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.staff-money-grid dd { color: var(--staff-green); font-size: 1.05rem; }
.staff-profile-list div { display: grid; grid-template-columns: minmax(5.5rem, .75fr) minmax(0, 1.25fr); gap: .65rem; }
.staff-profile-list dd { text-align: right; }
.staff-profile-passkey-copy { margin: .7rem 0 0; color: var(--staff-muted); font-size: .82rem; line-height: 1.55; }
.staff-profile-passkey-status { min-height: 1.2rem; margin: .7rem 0 0; }
.staff-profile-passkey-status:empty { display: none; }
.staff-kpi-grid {
    display: grid;
    grid-auto-columns: minmax(5.5rem, 1fr);
    grid-auto-flow: column;
    gap: .65rem;
    margin-top: .9rem;
    padding-bottom: .35rem;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scroll-snap-type: inline proximity;
}
.staff-kpi-grid > div {
    display: grid;
    min-height: 5rem;
    place-content: center;
    border: 1px solid var(--staff-border);
    border-radius: .85rem;
    background: #f8fbf9;
    scroll-snap-align: start;
    text-align: center;
}
.staff-kpi-grid strong { color: var(--staff-green); font-size: 1.35rem; }
.staff-kpi-grid span { color: var(--staff-muted); font-size: .72rem; }
.staff-dashboard__links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .65rem; margin-bottom: 1rem; }
.staff-primary-action,
[data-staff-auth-root] button,
[data-staff-auth-root] input,
[data-staff-auth-root] summary,
.staff-back-link,
.staff-attendance button,
.staff-attendance input,
.staff-attendance select,
.staff-requests button,
.staff-requests input,
.staff-requests select,
.staff-dashboard button,
.staff-dashboard-page button,
.staff-dashboard-page input,
.staff-dashboard__links a { min-height: 44px; }
.staff-filter-card { display: grid; gap: .85rem; }
.staff-filter-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .7rem; }
.staff-filter-grid label { display: grid; min-width: 0; gap: .35rem; color: var(--staff-ink); font-size: .86rem; font-weight: 700; }
.staff-filter-grid input { min-width: 0; }
.staff-tabs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .45rem; margin-bottom: .75rem; }
.staff-tab {
    min-height: 44px;
    border: 1px solid var(--staff-border);
    border-radius: .85rem;
    background: var(--staff-surface);
    color: var(--staff-muted);
    font-size: .82rem;
    font-weight: 700;
    padding: .55rem;
}
.staff-tab.is-selected, .staff-tab[aria-selected="true"] { border-width: 2px; border-color: var(--staff-green); background: var(--staff-green-soft); color: var(--staff-green); }
.staff-tab-panel[hidden] { display: none; }
.staff-source-heading { align-items: flex-start; margin-bottom: .75rem; }
.staff-history-card { border-top: 1px solid var(--staff-border); padding: .85rem 0; }
.staff-history-card:first-child { border-top: 0; padding-top: 0; }
.staff-history-card h3 { margin: 0 0 .45rem; font-size: .98rem; font-weight: 750; }
.staff-history-card p { margin: .25rem 0; color: var(--staff-muted); font-size: .84rem; }
.staff-history-card--legacy { border-top-style: dashed; }
.staff-warning-disclosure { padding: .75rem; border-left: .25rem solid #b45309; background: #fff7ed; color: #7c2d12; font-size: .84rem; }
[data-staff-dashboard-root][aria-busy="true"] .staff-dashboard-card,
[data-staff-dashboard-root][aria-busy="true"] .staff-tab-panel { opacity: .68; }

/* Mobile home: app-like composition while retaining every existing action. */
.staff-has-navigation {
    background: #eaf3f8 !important;
}
.staff-has-navigation [data-staff-shell="foundation"] {
    position: relative;
}
.staff-layout--authenticated {
    padding-top: max(.6rem, env(safe-area-inset-top)) !important;
}
.staff-mobile-home,
.staff-mobile-home__body {
    width: 100%;
    max-width: 34rem;
    margin-inline: auto;
}
.staff-mobile-dashboard {
    overflow: hidden;
    border: 1px solid rgba(15, 73, 120, .09);
    border-radius: 1.65rem;
    background: #eef6fb;
    box-shadow: 0 1.25rem 3.25rem rgba(18, 69, 105, .16);
}
.staff-mobile-home__hero {
    min-height: 15.5rem;
    padding: 1.1rem 1.2rem 5.25rem;
    color: #fff;
    background:
        radial-gradient(circle at 92% 8%, rgba(255, 255, 255, .18), transparent 29%),
        linear-gradient(145deg, #165fa5 0%, #2386ca 100%);
}
.staff-mobile-brand {
    display: flex;
    align-items: center;
    gap: .7rem;
    padding-right: 3.2rem;
}
.staff-mobile-brand img {
    width: 2.4rem;
    height: 2.4rem;
    flex: 0 0 2.4rem;
    border-radius: .75rem;
    background: rgba(255, 255, 255, .94);
    object-fit: contain;
    padding: .25rem;
}
.staff-mobile-brand > div {
    display: flex;
    min-width: 0;
    flex: 1;
    align-items: center;
    justify-content: space-between;
    gap: .55rem;
}
.staff-mobile-brand strong {
    min-width: 0;
    overflow: hidden;
    font-size: .92rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.staff-mobile-brand span {
    display: inline-flex;
    min-height: 1.75rem;
    align-items: center;
    gap: .35rem;
    flex: 0 0 auto;
    padding: .25rem .65rem;
    border: 1px solid rgba(255, 255, 255, .36);
    border-radius: 999px;
    background: rgba(220, 252, 231, .95);
    color: #166534;
    font-size: .68rem;
    font-weight: 800;
}
.staff-mobile-brand span i {
    width: .43rem;
    height: .43rem;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 0 .2rem rgba(34, 197, 94, .18);
}
.staff-mobile-person {
    display: flex;
    align-items: center;
    gap: .85rem;
    margin-top: 2.35rem;
}
.staff-mobile-person__avatar {
    display: grid;
    width: 3.25rem;
    height: 3.25rem;
    flex: 0 0 3.25rem;
    place-items: center;
    border: 3px solid rgba(255, 255, 255, .82);
    border-radius: 50%;
    background: rgba(255, 255, 255, .18);
    font-size: 1.65rem;
}
.staff-mobile-person p,
.staff-mobile-person h1,
.staff-mobile-person small { margin: 0; }
.staff-mobile-person p { color: rgba(255, 255, 255, .75); font-size: .72rem; }
.staff-mobile-person h1 { margin-top: .05rem; font-size: 1.08rem; font-weight: 800; }
.staff-mobile-person small { color: rgba(255, 255, 255, .72); font-size: .72rem; }
.staff-mobile-home__content {
    position: relative;
    margin-top: -4.15rem;
    padding: 0 .85rem 1rem;
}
.staff-mobile-summary {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    min-height: 7.1rem;
    align-items: center;
    border: 1px solid rgba(16, 93, 143, .1);
    border-radius: 1.35rem;
    background: rgba(248, 253, 255, .97);
    box-shadow: 0 .8rem 2rem rgba(23, 91, 135, .16);
}
.staff-mobile-summary > div {
    position: relative;
    display: grid;
    min-width: 0;
    justify-items: center;
    padding: .75rem .4rem;
    text-align: center;
}
.staff-mobile-summary > div + div::before {
    position: absolute;
    top: 18%;
    bottom: 18%;
    left: 0;
    width: 1px;
    background: rgba(53, 92, 119, .18);
    content: "";
}
.staff-mobile-summary span { color: #526575; font-size: .72rem; font-weight: 700; }
.staff-mobile-summary strong { color: #102838; font-size: 1.7rem; line-height: 1.2; }
.staff-mobile-summary small { color: #7b8d99; font-size: .65rem; font-weight: 700; text-transform: uppercase; }
.staff-mobile-dashboard__heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    margin: 1rem .15rem .35rem;
}
.staff-mobile-dashboard__heading .staff-eyebrow { color: #496474; }
.staff-mobile-refresh {
    display: grid;
    width: 44px;
    min-width: 44px;
    height: 44px;
    place-items: center;
    border: 0;
    border-radius: 50%;
    background: #fff;
    color: #176bab;
    box-shadow: 0 .35rem 1.2rem rgba(23, 91, 135, .12);
    font-size: 1.15rem;
}
.staff-mobile-home__content > .staff-dashboard__status {
    min-height: 1.2rem;
    margin: 0 .15rem .65rem;
    font-size: .76rem;
}
.staff-mobile-schedule {
    padding: 1rem;
    border-radius: 1.35rem;
    background:
        radial-gradient(circle at 100% 0, rgba(255, 255, 255, .13), transparent 36%),
        linear-gradient(150deg, #1463a5 0%, #258ccb 100%);
    color: #fff;
    box-shadow: 0 .75rem 1.7rem rgba(20, 99, 165, .23);
}
.staff-mobile-schedule__title {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: .75rem;
    margin-bottom: .85rem;
}
.staff-mobile-schedule .staff-eyebrow { color: rgba(255, 255, 255, .68); }
.staff-mobile-schedule__title h2 { margin: 0; font-size: 1rem; font-weight: 800; }
.staff-mobile-schedule__title > span {
    max-width: 52%;
    padding: .3rem .55rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, .15);
    color: rgba(255, 255, 255, .9);
    font-size: .66rem;
    font-weight: 700;
    text-align: right;
}
.staff-mobile-schedule__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .7rem;
}
.staff-mobile-time-card {
    position: relative;
    display: grid;
    min-height: 6.4rem;
    align-content: center;
    overflow: hidden;
    padding: .85rem;
    border: 1px solid rgba(255, 255, 255, .3);
    border-radius: 1rem;
}
.staff-mobile-time-card::after {
    position: absolute;
    right: -.8rem;
    bottom: -1.2rem;
    width: 4.25rem;
    height: 4.25rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, .1);
    content: "";
}
.staff-mobile-time-card--in { background: linear-gradient(140deg, #16a66d, #52cc87); }
.staff-mobile-time-card--out { background: linear-gradient(140deg, #e87a26, #f6a13c); }
.staff-mobile-time-card i { position: absolute; top: .65rem; right: .7rem; font-size: 1.15rem; }
.staff-mobile-time-card span { color: rgba(255, 255, 255, .78); font-size: .7rem; font-weight: 700; }
.staff-mobile-time-card strong { margin-top: .15rem; font-size: 1.07rem; line-height: 1.25; overflow-wrap: anywhere; }
.staff-mobile-attendance-button {
    display: flex;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    margin-top: .75rem;
    border: 1px solid rgba(255, 255, 255, .45);
    border-radius: .9rem;
    background: rgba(255, 255, 255, .96);
    color: #1263a1;
    font-size: .84rem;
    font-weight: 850;
    text-decoration: none;
}
.staff-mobile-attendance-button i { font-size: 1.15rem; }
.staff-mobile-today,
.staff-mobile-notification {
    margin-top: .85rem;
    border: 1px solid rgba(15, 73, 120, .09);
    border-radius: 1.15rem;
    background: #fff;
    box-shadow: 0 .4rem 1.25rem rgba(23, 91, 135, .08);
}
.staff-mobile-today { padding: .95rem; }
.staff-mobile-today__heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: .75rem;
}
.staff-mobile-today__heading h2,
.staff-mobile-notification h2 { margin: 0; color: #173449; font-size: .95rem; font-weight: 800; }
.staff-mobile-today__heading > a { color: #1672b5; font-size: .75rem; font-weight: 800; text-decoration: none; }
.staff-mobile-today dl {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin: .8rem 0 0;
}
.staff-mobile-today dl > div { position: relative; min-width: 0; padding: .1rem .45rem; text-align: center; }
.staff-mobile-today dl > div + div::before {
    position: absolute;
    top: .15rem;
    bottom: .15rem;
    left: 0;
    width: 1px;
    background: #e2edf3;
    content: "";
}
.staff-mobile-today dt { color: #738591; font-size: .64rem; font-weight: 700; }
.staff-mobile-today dd { margin: .2rem 0 0; color: #173449; font-size: .78rem; font-weight: 800; overflow-wrap: anywhere; }
.staff-mobile-more-stats {
    display: grid;
    grid-auto-columns: minmax(4.8rem, 1fr);
    grid-auto-flow: column;
    gap: .55rem;
    margin-top: .85rem;
    padding: .05rem .05rem .4rem;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scrollbar-width: thin;
}
.staff-mobile-more-stats > div {
    display: grid;
    min-height: 4.55rem;
    place-content: center;
    border: 1px solid rgba(15, 73, 120, .09);
    border-radius: 1rem;
    background: #fff;
    box-shadow: 0 .3rem 1rem rgba(23, 91, 135, .06);
    text-align: center;
}
.staff-mobile-more-stats strong { color: #166eab; font-size: 1.05rem; }
.staff-mobile-more-stats span { color: #758691; font-size: .65rem; font-weight: 700; }
.staff-mobile-notification {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .7rem;
    padding: .9rem;
}
.staff-mobile-notification > div { min-width: 0; }
.staff-mobile-notification > a {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    flex: 0 0 auto;
    color: #1672b5;
    font-size: .72rem;
    font-weight: 800;
    text-decoration: none;
}
.staff-mobile-links { margin-top: .85rem; margin-bottom: 0; }
.staff-mobile-links .btn { border-color: rgba(20, 99, 165, .35); border-radius: .85rem; color: #1463a5; font-size: .8rem; font-weight: 750; }
.staff-mobile-logout {
    width: calc(100% - 1.7rem) !important;
    margin: .85rem .85rem 0;
    border-color: rgba(100, 116, 139, .22);
    border-radius: .9rem;
    background: rgba(255, 255, 255, .72);
    color: #64748b;
    font-size: .78rem;
}
.staff-mobile-home__body > [data-auth-status] {
    margin-right: .85rem;
    margin-left: .85rem;
}
.staff-has-navigation .staff-notification-action {
    position: absolute;
    z-index: 4;
    top: 1rem;
    right: 1rem;
    margin: 0;
    border-color: rgba(255, 255, 255, .3);
    background: rgba(9, 61, 103, .2);
    color: #fff;
    box-shadow: none;
    backdrop-filter: blur(.35rem);
}
.staff-bottom-nav__item--primary {
    transform: translateY(-.55rem);
    color: #16885a;
    font-weight: 800;
}
.staff-bottom-nav__item--primary i {
    display: grid;
    width: 3.15rem;
    height: 3.15rem;
    place-items: center;
    border: .3rem solid #fff;
    border-radius: 50%;
    background: linear-gradient(145deg, #20b974, #3bd08e);
    color: #fff;
    box-shadow: 0 .45rem 1rem rgba(22, 136, 90, .28);
    font-size: 1.4rem;
}
.staff-bottom-nav__item--primary.is-active { background: transparent; }
.staff-bottom-nav__item--primary.is-active::after { display: none; }

/* Approved SuperDesign direction: personal blue hero and compact attendance app. */
.staff-has-navigation { background: #f4f7fb !important; }
.staff-mobile-dashboard {
    border-color: rgba(15, 101, 216, .08);
    border-radius: 1.55rem;
    background: #f4f7fb;
    box-shadow: 0 1rem 2.75rem rgba(24, 80, 138, .14);
}
.staff-mobile-home__hero {
    position: relative;
    min-height: 18rem;
    overflow: hidden;
    padding: 1.15rem 1.15rem 6rem;
    background:
        repeating-linear-gradient(45deg, transparent, transparent 1.1rem, rgba(255, 255, 255, .035) 1.1rem, rgba(255, 255, 255, .035) 1.17rem),
        linear-gradient(135deg, #0f65d8 0%, #2f82f4 100%);
}
.staff-mobile-brand span.staff-mobile-date-pill {
    min-height: 1.8rem;
    border-color: rgba(255, 255, 255, .2);
    background: rgba(255, 255, 255, .15);
    color: rgba(255, 255, 255, .95);
    box-shadow: none;
    backdrop-filter: blur(.25rem);
}
.staff-mobile-brand span.staff-mobile-date-pill i {
    width: auto;
    height: auto;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    font-size: .86rem;
}
.staff-mobile-person { margin-top: 2.25rem; gap: .95rem; }
.staff-mobile-person__avatar {
    width: 3.65rem;
    height: 3.65rem;
    flex-basis: 3.65rem;
    border-width: 2px;
    background: rgba(255, 255, 255, .18);
    box-shadow: 0 .35rem 1rem rgba(5, 55, 119, .15);
}
.staff-mobile-person p { font-size: .75rem; font-weight: 650; letter-spacing: .03em; }
.staff-mobile-person h1 { font-size: 1.25rem; }
.staff-mobile-person small { display: block; margin-top: .15rem; color: rgba(255, 255, 255, .9); font-size: .78rem; }
.staff-mobile-home__content {
    margin-top: -4.75rem;
    padding: 1rem .85rem 1.1rem;
    border-radius: 1.5rem 1.5rem 0 0;
    background: #f4f7fb;
}
.staff-mobile-summary {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    min-height: 0;
    gap: .45rem;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}
.staff-mobile-summary > div,
.staff-mobile-metric-card {
    display: grid;
    min-width: 0;
    min-height: 6.25rem;
    align-content: center;
    justify-items: center;
    padding: .55rem .2rem;
    border: 1px solid #e2e8f0;
    border-radius: 1rem;
    background: #fff;
    box-shadow: 0 .25rem 1.1rem rgba(15, 23, 42, .045);
    text-align: center;
}
.staff-mobile-summary > div + div::before { display: none; }
.staff-mobile-metric-card > i {
    display: grid;
    width: 2.25rem;
    height: 2.25rem;
    margin-bottom: .3rem;
    place-items: center;
    border-radius: 50%;
    font-size: 1.05rem;
}
.staff-mobile-metric-card--present > i { background: #eff6ff; color: #0f65d8; }
.staff-mobile-metric-card--late > i { background: #fff7ed; color: #f59e0b; }
.staff-mobile-metric-card--leave > i { background: #f5f3ff; color: #7c3aed; }
.staff-mobile-metric-card--sick > i { background: #fef2f2; color: #ef4444; }
.staff-mobile-summary .staff-mobile-metric-card span {
    max-width: 100%;
    overflow: hidden;
    color: #68758a;
    font-size: .57rem;
    font-weight: 800;
    letter-spacing: .02em;
    text-overflow: ellipsis;
    text-transform: uppercase;
    white-space: nowrap;
}
.staff-mobile-summary .staff-mobile-metric-card strong { color: #17233b; font-size: 1rem; line-height: 1.2; }
.staff-mobile-dashboard__heading { margin: .95rem .2rem .25rem; }
.staff-mobile-refresh {
    width: 44px;
    height: 44px;
    border: 1px solid #e2e8f0;
    color: #0f65d8;
    box-shadow: 0 .2rem .75rem rgba(15, 23, 42, .06);
}
.staff-mobile-home__content > .staff-dashboard__status { margin-bottom: .5rem; }
.staff-mobile-attendance-card {
    padding: 1rem;
    border-radius: 1.4rem;
    background: linear-gradient(145deg, #0f65d8, #247cf0);
    color: #fff;
    box-shadow: 0 .8rem 1.8rem rgba(15, 101, 216, .24);
}
.staff-mobile-attendance-card__heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    margin-bottom: .85rem;
}
.staff-mobile-attendance-card__heading span {
    display: inline-flex;
    max-width: 12rem;
    min-height: 1.55rem;
    align-items: center;
    overflow: hidden;
    padding: .18rem .55rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, .17);
    color: rgba(255, 255, 255, .92);
    font-size: .65rem;
    font-weight: 750;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.staff-mobile-attendance-card__heading h2 { margin: .2rem 0 0; font-size: 1.05rem; font-weight: 850; }
.staff-mobile-attendance-card__heading > i {
    display: grid;
    width: 3rem;
    height: 3rem;
    flex: 0 0 3rem;
    place-items: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, .14);
    font-size: 1.35rem;
}
.staff-mobile-attendance-card__times {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1px;
    overflow: hidden;
    border-radius: .9rem;
    background: rgba(255, 255, 255, .18);
}
.staff-mobile-attendance-card__times > div { min-width: 0; padding: .7rem; background: rgba(255, 255, 255, .08); }
.staff-mobile-attendance-card__times > div:last-child { text-align: right; }
.staff-mobile-attendance-card__times span { display: block; color: rgba(255, 255, 255, .68); font-size: .65rem; font-weight: 750; text-transform: uppercase; }
.staff-mobile-attendance-card__times strong { display: block; margin-top: .15rem; overflow-wrap: anywhere; font-size: .82rem; }
.staff-mobile-attendance-card__details {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .6rem;
    margin-top: .7rem;
    color: rgba(255, 255, 255, .76);
    font-size: .66rem;
}
.staff-mobile-attendance-card__details strong { color: #fff; }
.staff-mobile-attendance-button {
    min-height: 48px;
    margin-top: .8rem;
    border: 0;
    background: #fff;
    color: #0f65d8;
    box-shadow: 0 .3rem .8rem rgba(5, 55, 119, .12);
    font-size: .88rem;
}
.staff-mobile-day-schedule {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: .7rem;
    margin-top: .85rem;
    padding: .85rem;
    border: 1px solid #e2e8f0;
    border-radius: 1rem;
    background: #fff;
    box-shadow: 0 .25rem 1.1rem rgba(15, 23, 42, .04);
}
.staff-mobile-day-schedule__icon {
    display: grid;
    width: 2.65rem;
    height: 2.65rem;
    place-items: center;
    border-radius: 50%;
    background: #eff6ff;
    color: #0f65d8;
    font-size: 1.15rem;
}
.staff-mobile-day-schedule > div:nth-child(2) { min-width: 0; }
.staff-mobile-day-schedule p { margin: 0; color: #68758a; font-size: .65rem; font-weight: 700; }
.staff-mobile-day-schedule h2 { margin: .1rem 0 0; color: #17233b; font-size: .86rem; font-weight: 800; overflow-wrap: anywhere; }
.staff-mobile-day-schedule > span {
    max-width: 5.7rem;
    overflow: hidden;
    padding: .25rem .45rem;
    border-radius: .5rem;
    background: #ecfdf5;
    color: #16885a;
    font-size: .6rem;
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.staff-mobile-recent-history {
    margin-top: .85rem;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    border-radius: 1rem;
    background: #fff;
    box-shadow: 0 .25rem 1.1rem rgba(15, 23, 42, .04);
}
.staff-mobile-section-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: .75rem;
    padding: .85rem .9rem .45rem;
}
.staff-mobile-section-heading h2 { margin: 0; color: #17233b; font-size: .95rem; font-weight: 850; }
.staff-mobile-section-heading > a { display: inline-flex; min-height: 44px; align-items: center; margin-top: -.45rem; color: #0f65d8; font-size: .7rem; font-weight: 800; text-decoration: none; }
.staff-mobile-recent-history__status {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
}
.staff-mobile-history-row {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: .7rem;
    min-height: 4.1rem;
    padding: .7rem .9rem;
    border-top: 1px solid #edf1f5;
}
.staff-mobile-history-row__icon {
    display: grid;
    width: 2rem;
    height: 2rem;
    place-items: center;
    border-radius: 50%;
    background: #f1f5f9;
    color: #64748b;
}
.staff-mobile-history-row__icon--complete { background: #ecfdf5; color: #16a66d; }
.staff-mobile-history-row__icon--progress,
.staff-mobile-history-row__icon--field { background: #eff6ff; color: #0f65d8; }
.staff-mobile-history-row__icon--late { background: #fff7ed; color: #f59e0b; }
.staff-mobile-history-row__icon--leave { background: #f5f3ff; color: #7c3aed; }
.staff-mobile-history-row__icon--sick { background: #fef2f2; color: #ef4444; }
.staff-mobile-history-row > div { display: grid; min-width: 0; }
.staff-mobile-history-row strong { color: #17233b; font-size: .75rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.staff-mobile-history-row span { color: #68758a; font-size: .65rem; font-weight: 700; }
.staff-mobile-history-row time { color: #17233b; font-size: .7rem; font-weight: 750; white-space: nowrap; }
.staff-mobile-recent-history__empty { margin: 0; padding: .9rem; border-top: 1px solid #edf1f5; color: #68758a; font-size: .74rem; }
.staff-mobile-more-stats { margin-top: .85rem; }
.staff-mobile-notification {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    margin-top: .85rem;
    padding: .8rem;
    border-color: #e2e8f0;
}
.staff-mobile-notification__icon {
    display: grid;
    width: 2.45rem;
    height: 2.45rem;
    place-items: center;
    border-radius: 50%;
    background: #eff6ff;
    color: #0f65d8;
}
.staff-mobile-notification > a { justify-content: center; width: 44px; color: #0f65d8; font-size: 1.15rem; }
.staff-mobile-links { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.staff-mobile-links .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .25rem;
    min-width: 0;
    padding: .45rem .2rem;
    border-color: #dbe5ee;
    background: #fff;
    color: #506174;
    font-size: .66rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.staff-mobile-logout { border-color: #e2e8f0; background: #fff; }
.staff-bottom-nav__item.is-active { background: #eff6ff; color: #0f65d8; }
.staff-bottom-nav__item--primary {
    transform: none;
    color: #16885a;
}
.staff-bottom-nav__item--primary i {
    display: inline;
    width: auto;
    height: auto;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: currentColor;
    box-shadow: none;
    font-size: 1.35rem;
}
.staff-bottom-nav__item--primary.is-active { background: #eff6ff; }
.staff-bottom-nav__item--primary.is-active::after { display: block; }

/* Mobile Performance: app-like report composition using the existing API contract. */
.staff-performance {
    overflow: hidden;
    padding-bottom: .9rem;
    border: 1px solid rgba(15, 73, 120, .09);
    border-radius: 1.65rem;
    background: #eef6fb;
    box-shadow: 0 1.25rem 3.25rem rgba(18, 69, 105, .16);
}
.staff-performance__hero {
    position: relative;
    min-height: 15rem;
    padding: 1.35rem 1.2rem 5.4rem;
    overflow: hidden;
    color: #fff;
    background:
        radial-gradient(circle at 88% 10%, rgba(255, 255, 255, .18), transparent 28%),
        radial-gradient(circle at 8% 92%, rgba(76, 201, 240, .22), transparent 34%),
        linear-gradient(145deg, #165fa5 0%, #2386ca 100%);
}
.staff-performance__hero::after {
    position: absolute;
    right: -3.5rem;
    bottom: -4.5rem;
    width: 11rem;
    height: 11rem;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 50%;
    content: "";
}
.staff-performance__hero-copy { position: relative; z-index: 1; max-width: 76%; }
.staff-performance__hero-copy .staff-eyebrow { color: rgba(255, 255, 255, .72); }
.staff-performance__hero-copy h1 { margin: .3rem 0 .45rem; font-size: 1.85rem; font-weight: 820; letter-spacing: -.025em; }
.staff-performance__hero-copy > p:last-child { margin: 0; color: rgba(255, 255, 255, .82); font-size: .86rem; line-height: 1.5; }
.staff-performance__hero-icon {
    position: absolute;
    z-index: 1;
    top: 5rem;
    right: 1.2rem;
    display: grid;
    width: 3.35rem;
    height: 3.35rem;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, .28);
    border-radius: 1.05rem;
    background: rgba(255, 255, 255, .15);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .2);
    font-size: 1.55rem;
    backdrop-filter: blur(.35rem);
}
.staff-performance__period {
    position: absolute;
    z-index: 2;
    right: 1.2rem;
    bottom: 2.35rem;
    left: 1.2rem;
    display: flex;
    min-width: 0;
    align-items: center;
    gap: .7rem;
    padding: .75rem .85rem;
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: 1rem;
    background: rgba(8, 65, 111, .25);
    backdrop-filter: blur(.45rem);
}
.staff-performance__period > i {
    display: grid;
    width: 2.25rem;
    height: 2.25rem;
    flex: 0 0 2.25rem;
    place-items: center;
    border-radius: .75rem;
    background: rgba(255, 255, 255, .16);
    font-size: 1.15rem;
}
.staff-performance__period span { min-width: 0; display: grid; gap: .05rem; }
.staff-performance__period small { color: rgba(255, 255, 255, .68); font-size: .65rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
.staff-performance__period strong { overflow: hidden; font-size: .82rem; font-weight: 780; text-overflow: ellipsis; white-space: nowrap; }

.staff-performance-filter {
    position: relative;
    z-index: 3;
    display: grid;
    gap: .85rem;
    margin: -1.25rem .85rem 0;
    padding: 1rem;
    border: 1px solid rgba(22, 114, 181, .1);
    border-radius: 1.15rem;
    background: #fff;
    box-shadow: 0 .8rem 2rem rgba(16, 73, 114, .12);
}
.staff-performance-filter__heading { display: flex; align-items: center; gap: .7rem; }
.staff-performance-filter__heading > span {
    display: grid;
    width: 2.35rem;
    height: 2.35rem;
    flex: 0 0 2.35rem;
    place-items: center;
    border-radius: .75rem;
    background: #e8f4ff;
    color: #1672b5;
    font-size: 1.05rem;
}
.staff-performance-filter__heading h2 { margin: 0; color: #143c5a; font-size: .96rem; font-weight: 800; }
.staff-performance-filter__heading p { margin: .12rem 0 0; color: #718598; font-size: .7rem; }
.staff-performance-filter__fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .65rem; }
.staff-performance-filter__fields label { display: grid; min-width: 0; gap: .32rem; color: #506a7e; font-size: .7rem; font-weight: 750; }
.staff-performance-filter__input {
    display: flex;
    min-width: 0;
    min-height: 44px;
    align-items: center;
    gap: .35rem;
    padding: 0 .55rem;
    border: 1px solid #d8e6ef;
    border-radius: .8rem;
    background: #f7fbfe;
    color: #2580bd;
}
.staff-performance-filter__input input {
    width: auto;
    flex: 1 1 0;
    min-width: 0;
    min-height: 42px;
    padding: 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: #183c56;
    font-size: .72rem;
    font-weight: 700;
}
.staff-performance-filter__submit {
    display: inline-flex;
    min-height: 46px;
    align-items: center;
    justify-content: center;
    gap: .45rem;
    border: 0;
    border-radius: .85rem;
    background: linear-gradient(135deg, #1573bb, #1d91d0);
    color: #fff;
    box-shadow: 0 .45rem 1rem rgba(21, 115, 187, .2);
    font-size: .8rem;
    font-weight: 800;
}
.staff-performance-filter__submit:disabled { cursor: wait; opacity: .65; }
.staff-performance__status { min-height: 1.25rem; margin: .7rem 1rem .25rem; color: #718598; font-size: .72rem; text-align: center; }
.staff-performance-loading {
    position: relative;
    z-index: 4;
    display: grid;
    max-height: 0;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: .65rem;
    margin: 0 .85rem;
    padding: 0 .75rem;
    overflow: hidden;
    border: 0 solid #cfe0fa;
    border-radius: .95rem;
    background: rgba(255, 255, 255, .96);
    box-shadow: 0 .55rem 1.4rem rgba(18, 72, 145, .12);
    opacity: 0;
    transform: translateY(-.45rem);
    transition: max-height .24s ease, margin .24s ease, padding .24s ease, border-width .24s ease, opacity .18s ease, transform .24s ease;
}
.staff-performance[aria-busy="true"] .staff-performance-loading {
    max-height: 4.5rem;
    margin-top: -.35rem;
    margin-bottom: .75rem;
    padding: .65rem .75rem;
    border-width: 1px;
    opacity: 1;
    transform: translateY(0);
}
.staff-performance-loading__spinner {
    display: grid;
    width: 2.2rem;
    height: 2.2rem;
    place-items: center;
    border-radius: .72rem;
    background: linear-gradient(145deg, #e8f2ff, #f7fbff);
    color: #1265df;
    font-size: 1rem;
}
.staff-performance-loading > span:nth-child(2) { display: grid; min-width: 0; gap: .08rem; }
.staff-performance-loading strong { color: #183b6a; font-size: .72rem; font-weight: 820; }
.staff-performance-loading small { overflow: hidden; color: #6a7f9f; font-size: .63rem; text-overflow: ellipsis; white-space: nowrap; }
.staff-performance-loading__activity { color: #1265df; font-size: 1.05rem; animation: staff-performance-spin .8s linear infinite; }
@keyframes staff-performance-spin { to { transform: rotate(360deg); } }

.staff-performance-section {
    margin: .85rem .85rem 0;
    padding: 1rem;
    border: 1px solid rgba(22, 114, 181, .09);
    border-radius: 1.15rem;
    background: #fff;
    box-shadow: 0 .45rem 1.5rem rgba(18, 69, 105, .07);
}
.staff-performance-section__heading { display: flex; align-items: center; justify-content: space-between; gap: .75rem; }
.staff-performance-section__heading h2 { margin: 0; color: #173e5a; font-size: 1rem; font-weight: 820; }
.staff-performance-section__heading > span { padding: .25rem .55rem; border-radius: 999px; background: #eaf5fc; color: #217bb6; font-size: .64rem; font-weight: 780; }
.staff-performance-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .55rem; margin-top: .9rem; }
.staff-performance-kpi {
    --performance-tone: #1672b5;
    --performance-soft: #e8f4ff;
    display: grid;
    min-width: 0;
    min-height: 6rem;
    place-items: center;
    align-content: center;
    gap: .18rem;
    padding: .55rem .2rem;
    border: 1px solid rgba(22, 114, 181, .1);
    border-radius: .9rem;
    background: var(--performance-soft);
    text-align: center;
}
.staff-performance-kpi > i { display: grid; width: 1.85rem; height: 1.85rem; place-items: center; border-radius: .62rem; background: #fff; color: var(--performance-tone); font-size: .95rem; box-shadow: 0 .2rem .65rem rgba(18, 69, 105, .08); }
.staff-performance-kpi strong { color: #183c56; font-size: 1.3rem; font-weight: 850; line-height: 1.05; }
.staff-performance-kpi span { max-width: 100%; overflow: hidden; color: #5e7586; font-size: .6rem; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.staff-performance-kpi--order { --performance-tone: #227bc0; --performance-soft: #e8f3fc; }
.staff-performance-kpi--fake-order { --performance-tone: #ed8b2c; --performance-soft: #fff3e5; }
.staff-performance-kpi--ads { --performance-tone: #8057c7; --performance-soft: #f1ebfc; }
.staff-performance-kpi--store { --performance-tone: #16a66a; --performance-soft: #e7f8ef; }

.staff-performance-profit {
    margin: .85rem .85rem 0;
    padding: 1rem;
    overflow: hidden;
    border-radius: 1.2rem;
    background:
        radial-gradient(circle at 100% 0, rgba(255, 255, 255, .18), transparent 32%),
        linear-gradient(145deg, #135d9a 0%, #1687c6 100%);
    color: #fff;
    box-shadow: 0 .75rem 1.8rem rgba(17, 95, 151, .2);
}
.staff-performance-profit__heading { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.staff-performance-profit__heading p { margin: 0 0 .1rem; color: rgba(255, 255, 255, .65); font-size: .66rem; font-weight: 750; letter-spacing: .06em; text-transform: uppercase; }
.staff-performance-profit__heading h2 { margin: 0; font-size: 1.05rem; font-weight: 820; }
.staff-performance-profit__heading > span { display: grid; width: 2.65rem; height: 2.65rem; place-items: center; border: 1px solid rgba(255, 255, 255, .2); border-radius: .85rem; background: rgba(255, 255, 255, .13); font-size: 1.25rem; }
.staff-performance-profit__value { display: block; margin: 1.05rem 0 .8rem; overflow-wrap: anywhere; font-size: clamp(1.75rem, 7vw, 2.45rem); font-weight: 880; letter-spacing: -.045em; line-height: 1.1; }
.staff-performance-profit__secondary { display: flex; min-width: 0; align-items: center; justify-content: space-between; gap: .75rem; margin-bottom: .75rem; padding: .75rem .8rem; border: 1px solid rgba(255, 255, 255, .16); border-radius: .9rem; background: rgba(7, 58, 99, .2); }
.staff-performance-profit__secondary span { color: rgba(255, 255, 255, .68); font-size: .7rem; font-weight: 700; }
.staff-performance-profit__secondary strong { min-width: 0; overflow-wrap: anywhere; font-size: .92rem; text-align: right; }
.staff-performance-meta { display: grid; gap: .45rem; padding: .75rem; border-radius: .9rem; background: rgba(255, 255, 255, .1); }
.staff-performance-meta p { display: grid; grid-template-columns: auto minmax(5.5rem, .7fr) minmax(0, 1.3fr); align-items: center; gap: .45rem; margin: 0; font-size: .65rem; }
.staff-performance-meta i { color: #9edcff; font-size: .9rem; }
.staff-performance-meta span { color: rgba(255, 255, 255, .62); }
.staff-performance-meta strong { min-width: 0; overflow-wrap: anywhere; text-align: right; }

.staff-performance-leaderboard {
    margin: .85rem .85rem 0;
    padding: 1rem;
    border: 1px solid rgba(22, 114, 181, .09);
    border-radius: 1.15rem;
    background: #fff;
    box-shadow: 0 .45rem 1.5rem rgba(18, 69, 105, .07);
}
.staff-performance-leaderboard__heading { display: flex; align-items: center; justify-content: space-between; gap: .75rem; }
.staff-performance-leaderboard__heading h2 { margin: 0; color: #173e5a; font-size: 1rem; font-weight: 820; }
.staff-performance-leaderboard__heading > span { display: grid; width: 2.45rem; height: 2.45rem; place-items: center; border-radius: .78rem; background: #fff4d9; color: #bd8413; font-size: 1.1rem; }
.staff-performance-leaderboard__caption { margin: .45rem 0 .8rem; color: #718598; font-size: .7rem; }
.staff-performance-leaderboard__list { display: grid; }
.staff-performance-leaderboard-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: .7rem; min-width: 0; padding: .72rem 0; border-top: 1px solid #e8f0f5; }
.staff-performance-leaderboard-row:first-child { border-top: 0; padding-top: .2rem; }
.staff-performance-leaderboard-row__rank { display: grid; width: 2rem; height: 2rem; place-items: center; border-radius: .68rem; background: #eaf4fb; color: #267bb6; font-size: .72rem; font-weight: 850; }
.staff-performance-leaderboard-row--rank-1 .staff-performance-leaderboard-row__rank { background: #fff2bf; color: #9b6900; }
.staff-performance-leaderboard-row--rank-2 .staff-performance-leaderboard-row__rank { background: #edf1f5; color: #526577; }
.staff-performance-leaderboard-row--rank-3 .staff-performance-leaderboard-row__rank { background: #fae6d8; color: #a95d29; }
.staff-performance-leaderboard-row__identity { display: grid; min-width: 0; gap: .08rem; }
.staff-performance-leaderboard-row__identity strong { overflow: hidden; color: #173e5a; font-size: .78rem; font-weight: 800; text-overflow: ellipsis; white-space: nowrap; }
.staff-performance-leaderboard-row__identity span { overflow: hidden; color: #718598; font-size: .65rem; text-overflow: ellipsis; white-space: nowrap; }
.staff-performance-leaderboard-row__profit { max-width: 8.5rem; overflow-wrap: anywhere; color: #1672b5; font-size: .72rem; font-weight: 850; text-align: right; }
.staff-performance-leaderboard__empty { margin: .4rem 0 0; padding: 1rem; border-radius: .85rem; background: #f3f8fb; color: #718598; font-size: .74rem; text-align: center; }
.staff-performance-warning { margin: .85rem .85rem 0; padding: .75rem; border-left: .22rem solid #e09a20; border-radius: .75rem; background: #fff8e8; color: #805915; font-size: .68rem; line-height: 1.5; }
.staff-performance-warning:empty { display: none; }
.staff-performance-empty { display: grid; min-height: 22rem; align-content: center; justify-items: center; margin: 1rem; padding: 2rem 1.25rem; border: 1px solid #dce8f7; border-radius: 1.35rem; background: #fff; box-shadow: 0 .55rem 1.8rem rgba(20,55,104,.07); text-align: center; }
.staff-performance-empty > span { display: grid; width: 4.5rem; height: 4.5rem; place-items: center; border-radius: 1.35rem; background: linear-gradient(145deg,#e7f2ff,#f7fbff); color: #1265df; font-size: 2rem; }
.staff-performance-empty p { margin: 1rem 0 .2rem; color: #1265df; font-size: .64rem; font-weight: 850; letter-spacing: .12em; }
.staff-performance-empty h2 { margin: 0; color: #14213a; font-size: 1.15rem; font-weight: 850; }
.staff-performance-empty small { max-width: 17rem; margin-top: .45rem; color: #6d7b91; font-size: .72rem; line-height: 1.55; }
.staff-admin-team-tags { display: flex; flex-wrap: wrap; gap: .38rem; margin-top: .78rem; overflow: hidden; }
.staff-admin-team-tags > span { min-width: 0; max-width: 100%; padding: .36rem .55rem; overflow: hidden; border: 1px solid rgba(255,255,255,.2); border-radius: 999px; background: rgba(255,255,255,.12); color: #eef8ff; font-size: .61rem; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.staff-performance-kpi--team { color: #1265df; }
.staff-performance-kpi--process { color: #7c3aed; }
.staff-performance-kpi--complete { color: #07875d; }
.staff-performance-kpi--refund { --performance-tone: #dc3545; --performance-soft: #fff0f2; color: #dc3545; }
.staff-admin-ranking-selected { display: grid; grid-template-columns: auto minmax(0,1fr) auto; align-items: center; gap: .65rem; margin: .7rem 0 .45rem; padding: .72rem; border: 1px solid #cde2fa; border-radius: .9rem; background: #f2f8ff; }
.staff-admin-ranking-selected__avatar,
.staff-admin-leaderboard-row__avatar { position: relative; display: grid; flex: 0 0 auto; place-items: center; overflow: hidden; border-radius: 50%; background: #dcecff; color: #1265df; font-weight: 850; }
.staff-admin-ranking-selected__avatar { width: 2.7rem; height: 2.7rem; }
.staff-admin-leaderboard-row__avatar { width: 2.3rem; height: 2.3rem; }
.staff-admin-ranking-selected__avatar img,
.staff-admin-leaderboard-row__avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.staff-admin-ranking-selected__identity { display: grid; min-width: 0; gap: .08rem; }
.staff-admin-ranking-selected__identity small,
.staff-admin-ranking-selected__identity span { overflow: hidden; color: #6b8299; font-size: .62rem; text-overflow: ellipsis; white-space: nowrap; }
.staff-admin-ranking-selected__identity strong { overflow: hidden; color: #173e5a; font-size: .78rem; text-overflow: ellipsis; white-space: nowrap; }
.staff-admin-ranking-selected__result { display: grid; justify-items: end; }
.staff-admin-ranking-selected__result strong { color: #075fca; font-size: 1.05rem; font-weight: 900; }
.staff-admin-ranking-selected__result span { color: #637b91; font-size: .61rem; white-space: nowrap; }
.staff-admin-leaderboard__list { display: grid; }
.staff-admin-leaderboard-row { display: grid; grid-template-columns: auto auto minmax(0,1fr); align-items: center; gap: .55rem; min-width: 0; padding: .72rem 0; border-top: 1px solid #e8f0f5; }
.staff-admin-leaderboard-row:first-child { border-top: 0; }
.staff-admin-leaderboard-row__rank { display: grid; width: 1.65rem; height: 1.65rem; place-items: center; border-radius: .55rem; background: #eaf4ff; color: #1265df; font-size: .65rem; font-weight: 900; }
.staff-admin-leaderboard-row--rank-1 .staff-admin-leaderboard-row__rank { background: #fff1bd; color: #926300; }
.staff-admin-leaderboard-row--rank-2 .staff-admin-leaderboard-row__rank { background: #edf1f5; color: #56697b; }
.staff-admin-leaderboard-row--rank-3 .staff-admin-leaderboard-row__rank { background: #f9e2d3; color: #a45728; }
.staff-admin-leaderboard-row__content { display: grid; min-width: 0; gap: .28rem; }
.staff-admin-leaderboard-row__content > div { display: flex; align-items: flex-start; justify-content: space-between; gap: .5rem; }
.staff-admin-leaderboard-row__content > div > span { display: grid; min-width: 0; }
.staff-admin-leaderboard-row__content > div strong { overflow: hidden; color: #173e5a; font-size: .7rem; text-overflow: ellipsis; white-space: nowrap; }
.staff-admin-leaderboard-row__content > div small,
.staff-admin-leaderboard-row__content > small { color: #718598; font-size: .58rem; line-height: 1.35; }
.staff-admin-leaderboard-row__track { display: block; height: .3rem; overflow: hidden; border-radius: 999px; background: #e8f1fa; }
.staff-admin-leaderboard-row__track i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg,#075fca,#27a1ef); }
.staff-admin-board-tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .35rem;
    margin-top: .82rem;
    padding: .25rem;
    border: 1px solid #dce8f7;
    border-radius: .82rem;
    background: #f2f6fb;
}
.staff-admin-board-tabs button {
    display: flex;
    min-width: 0;
    min-height: 2.65rem;
    align-items: center;
    justify-content: center;
    gap: .34rem;
    padding: .45rem .5rem;
    border: 0;
    border-radius: .65rem;
    background: transparent;
    color: #6c7e96;
    font: inherit;
    font-size: .64rem;
    font-weight: 820;
    cursor: pointer;
}
.staff-admin-board-tabs button i { flex: 0 0 auto; font-size: .9rem; }
.staff-admin-board-tabs button span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.staff-admin-board-tabs button strong {
    display: grid;
    min-width: 1.25rem;
    height: 1.25rem;
    padding: 0 .28rem;
    place-items: center;
    border-radius: 999px;
    background: #e3ecf8;
    color: #476482;
    font-size: .55rem;
}
.staff-admin-board-tabs button.is-active { background: #fff; color: #1265df; box-shadow: 0 .18rem .65rem rgba(22, 70, 132, .12); }
.staff-admin-board-tabs button.is-active strong { background: #e9f2ff; color: #1265df; }
.staff-admin-board-tabs button:focus-visible { outline: 2px solid #1265df; outline-offset: 2px; }
.staff-admin-managed-list { display: grid; }
.staff-admin-managed-row {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: .65rem;
    min-width: 0;
    padding: .72rem .1rem;
    border-top: 1px solid #e8f0f5;
}
.staff-admin-managed-row:first-child { border-top: 0; }
.staff-admin-managed-row__icon {
    display: grid;
    width: 2.3rem;
    height: 2.3rem;
    place-items: center;
    border-radius: .72rem;
    background: #eaf3ff;
    color: #1265df;
    font-size: 1rem;
}
.staff-admin-managed-row > div { display: grid; min-width: 0; gap: .1rem; }
.staff-admin-managed-row > div strong,
.staff-admin-managed-row > div span,
.staff-admin-managed-row > div small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.staff-admin-managed-row > div strong { color: #173e5a; font-size: .72rem; font-weight: 820; }
.staff-admin-managed-row > div span { color: #718598; font-size: .6rem; }
.staff-admin-managed-row > div small { color: #93a2b5; font-size: .56rem; }
.staff-admin-managed-row__orders { justify-items: end; gap: .06rem !important; }
.staff-admin-managed-row__orders strong { color: #1265df !important; font-size: .88rem !important; font-weight: 900 !important; }
.staff-admin-managed-row__orders span { color: #718598 !important; font-size: .53rem !important; font-weight: 750; white-space: nowrap !important; }
.staff-admin-managed-list__more { margin: .45rem 0 0; padding: .62rem; border-radius: .65rem; background: #f2f7fd; color: #52708e; font-size: .62rem; font-weight: 750; text-align: center; }
.staff-performance-section,
.staff-performance-profit,
.staff-performance-leaderboard { position: relative; }
.staff-performance[aria-busy="true"] .staff-performance-section,
.staff-performance[aria-busy="true"] .staff-performance-profit,
.staff-performance[aria-busy="true"] .staff-performance-leaderboard { cursor: progress; }
.staff-performance[aria-busy="true"] .staff-performance-section::after,
.staff-performance[aria-busy="true"] .staff-performance-profit::after,
.staff-performance[aria-busy="true"] .staff-performance-leaderboard::after {
    position: absolute;
    z-index: 3;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(105deg, transparent 28%, rgba(75, 144, 235, .1) 43%, rgba(255, 255, 255, .5) 50%, rgba(75, 144, 235, .1) 57%, transparent 72%);
    content: "";
    pointer-events: none;
    transform: translateX(-105%);
    animation: staff-performance-sheen 1.25s ease-in-out infinite;
}
.staff-performance[aria-busy="true"] .staff-performance-profit::after {
    background: linear-gradient(105deg, transparent 28%, rgba(255, 255, 255, .04) 43%, rgba(255, 255, 255, .22) 50%, rgba(255, 255, 255, .04) 57%, transparent 72%);
}
@keyframes staff-performance-sheen { to { transform: translateX(105%); } }
@media (prefers-reduced-motion: reduce) {
    .staff-performance-loading__activity,
    .staff-performance[aria-busy="true"] .staff-performance-section::after,
    .staff-performance[aria-busy="true"] .staff-performance-profit::after,
    .staff-performance[aria-busy="true"] .staff-performance-leaderboard::after { animation: none; }
}
.staff-performance-filter__input:focus-within { border-color: #2386ca; box-shadow: 0 0 0 .18rem rgba(35, 134, 202, .14); }
.staff-performance-filter__submit:focus-visible { outline-color: #0c4f82; }

.staff-notification-action {
    position: relative;
    display: grid;
    min-width: 44px;
    min-height: 44px;
    width: 44px;
    margin: 0 0 .75rem auto;
    place-items: center;
    border: 1px solid var(--staff-border);
    border-radius: 50%;
    background: var(--staff-surface);
    color: var(--staff-green);
    text-decoration: none;
    box-shadow: 0 .25rem 1rem rgba(20, 83, 45, .1);
}
.staff-notification-action i { font-size: 1.25rem; }
[data-staff-notification-badge] {
    position: absolute;
    top: -.3rem;
    right: -.35rem;
    min-width: 1.35rem;
    min-height: 1.35rem;
    padding: .12rem .3rem;
    border: 2px solid var(--staff-surface);
    border-radius: 999px;
    background: #b91c1c;
    color: #fff;
    font-size: .68rem;
    font-weight: 800;
    line-height: 1;
    text-align: center;
}
[data-staff-notification-badge][hidden] { display: none; }
.staff-notifications { width: 100%; max-width: 34rem; margin-inline: auto; }
.staff-notifications__header { margin-bottom: .7rem; }
.staff-notifications__header h1 { margin: 0; font-size: 1.65rem; font-weight: 750; }
.staff-notifications__status { min-height: 1.5rem; margin: 0 0 1rem; color: var(--staff-muted); font-size: .9rem; }
.staff-notifications__list { display: grid; gap: .75rem; margin: 0; padding: 0; list-style: none; }
.staff-notification-card {
    min-width: 0;
    padding: 1rem;
    border: 1px solid var(--staff-border);
    border-radius: 1rem;
    background: var(--staff-surface);
    box-shadow: 0 .35rem 1.25rem rgba(20, 83, 45, .06);
    transition: border-color .15s ease, box-shadow .15s ease;
}
.staff-notification-card.is-unread { border-left: .35rem solid var(--staff-green); font-weight: 600; }
.staff-notification-card article { display: grid; gap: .45rem; }
.staff-notification-card h2 { margin: 0; font-size: 1rem; font-weight: 750; }
.staff-notification-card p { margin: 0; color: var(--staff-muted); font-size: .88rem; overflow-wrap: anywhere; }
.staff-notification-card time { color: var(--staff-muted); font-size: .76rem; }
[data-notification-unread] { justify-self: start; font-size: .76rem; font-weight: 800; }
.staff-notification-route {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    justify-self: start;
    margin-top: .2rem;
    padding: .55rem .8rem;
    border-radius: .75rem;
    background: var(--staff-green-soft);
    color: var(--staff-green);
    font-size: .84rem;
    font-weight: 750;
    text-decoration: none;
}
.staff-notifications button { min-height: 44px; }
.staff-notifications__controls { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .65rem; margin-top: 1rem; }
.staff-notifications[aria-busy="true"] .staff-notifications__list { opacity: .68; }
.staff-notification-action:focus-visible,
.staff-notification-route:focus-visible,
[data-notification-retry]:focus-visible,
[data-notification-load-more]:focus-visible {
    outline: 3px solid var(--staff-focus);
    outline-offset: 3px;
}

a:focus-visible, button:focus-visible, input:focus-visible, [tabindex]:focus-visible {
    outline: 3px solid var(--staff-focus);
    outline-offset: 3px;
}

@media (min-width: 48rem) {
    .staff-status-card, .staff-mode-card, .staff-requests__composer, .staff-requests__history, .staff-dashboard-card, .staff-filter-card, .staff-tab-panel { padding: 1.25rem; }
    .staff-bottom-nav { right: 50%; left: auto; width: min(100%, 38rem); transform: translateX(50%); border-right: 1px solid var(--staff-border); border-left: 1px solid var(--staff-border); border-radius: 1rem 1rem 0 0; }
}

@media (max-width: 390px) {
    [data-staff-layout="true"] { padding-right: .6rem !important; padding-left: .6rem !important; }
    .staff-mobile-dashboard { border-radius: 1.4rem; }
    .staff-mobile-home__hero { min-height: 16.75rem; padding-right: 1rem; padding-left: 1rem; }
    .staff-mobile-brand > div { gap: .35rem; }
    .staff-mobile-brand span { min-height: 1.55rem; padding: .15rem .45rem; }
    .staff-mobile-brand strong { font-size: .82rem; }
    .staff-mobile-date-pill { font-size: .58rem !important; }
    .staff-mobile-person { margin-top: 1.75rem; }
    .staff-mobile-home__content { padding-right: .65rem; padding-left: .65rem; }
    .staff-mobile-summary { min-height: 0; gap: .3rem; }
    .staff-mobile-metric-card { min-height: 5.85rem; }
    .staff-mobile-attendance-card { padding: .85rem; }
    .staff-mobile-notification { align-items: center; }
    .staff-mobile-logout { width: calc(100% - 1.3rem) !important; margin-right: .65rem; margin-left: .65rem; }
    .staff-bottom-nav { padding-right: .15rem; padding-left: .15rem; }
    .staff-bottom-nav__item { font-size: .52rem; }
    .staff-bottom-nav__item i { font-size: 1.08rem; }
    .staff-bottom-nav__item--primary i { width: auto; height: auto; font-size: 1.2rem; }
}

@media (max-width: 360px) {
    .staff-performance { border-radius: 1.4rem; }
    .staff-performance__hero { min-height: 15.5rem; padding-right: 1rem; padding-left: 1rem; }
    .staff-performance__hero-copy { max-width: 74%; }
    .staff-performance__hero-icon { right: 1rem; }
    .staff-performance__period { right: 1rem; left: 1rem; }
    .staff-performance-filter { margin-right: .65rem; margin-left: .65rem; padding: .85rem; }
    .staff-performance-filter__fields { grid-template-columns: minmax(0, 1fr); }
    .staff-performance-section, .staff-performance-profit, .staff-performance-leaderboard { margin-right: .65rem; margin-left: .65rem; padding: .85rem; }
    .staff-performance-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .staff-performance-kpi { min-height: 5.5rem; }
    .staff-performance-leaderboard-row { gap: .5rem; }
    .staff-performance-leaderboard-row__profit { max-width: 6.5rem; font-size: .66rem; }
    .staff-performance-warning { margin-right: .65rem; margin-left: .65rem; }
}

@media (max-width: 22rem) {
    .staff-attendance__header { align-items: flex-start; gap: .7rem; }
    .staff-back-link { flex: 0 0 2.75rem; width: 2.75rem; height: 2.75rem; }
}

@media (max-width: 320px) {
    [data-staff-layout="true"] { padding-right: .65rem !important; padding-left: .65rem !important; }
    .staff-dashboard-card, .staff-filter-card, .staff-tab-panel { padding: .8rem; }
    .staff-filter-grid, .staff-detail-grid, .staff-money-grid, .staff-dashboard__links { grid-template-columns: minmax(0, 1fr); }
    .staff-mobile-links { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .staff-mobile-home__hero { min-height: 16.25rem; }
    .staff-mobile-person h1 { max-width: 11rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .staff-mobile-metric-card { min-height: 5.55rem; padding-right: .1rem; padding-left: .1rem; }
    .staff-mobile-metric-card > i { width: 1.95rem; height: 1.95rem; font-size: .92rem; }
    .staff-mobile-summary .staff-mobile-metric-card span { font-size: .49rem; }
    .staff-mobile-attendance-card__times strong { font-size: .72rem; }
    .staff-mobile-history-row { grid-template-columns: auto minmax(0, 1fr); }
    .staff-mobile-history-row time { grid-column: 2; }
    .staff-bottom-nav__item { font-size: .5rem; }
    .staff-bottom-nav__item i { font-size: 1.05rem; }
    .staff-source-heading { display: grid; }
    .staff-notifications { width: 100%; min-width: 0; max-width: 100%; }
    .staff-notification-card { min-width: 0; overflow-wrap: anywhere; padding: .8rem; }
    .staff-notifications__controls { grid-template-columns: minmax(0, 1fr); }
}

/* Payroll UI prototype: sample values only until the payroll backend is approved. */
.staff-payroll { --payroll-blue: #1265df; --payroll-ink: #14213d; --payroll-muted: #66758b; }
.staff-payroll__demo {
    display: flex;
    align-items: center;
    gap: .7rem;
    margin: .75rem .85rem 1rem;
    padding: .8rem .9rem;
    border: 1px solid #cfe0ff;
    border-radius: 1rem;
    background: linear-gradient(120deg, #f2f7ff, #fff);
    color: var(--payroll-ink);
}
.staff-payroll__demo-icon {
    display: grid;
    flex: 0 0 2.4rem;
    width: 2.4rem;
    height: 2.4rem;
    place-items: center;
    border-radius: .8rem;
    background: #e3eeff;
    color: var(--payroll-blue);
    font-size: 1.25rem;
}
.staff-payroll__demo-copy { display: grid; min-width: 0; gap: .12rem; }
.staff-payroll__demo-copy strong { font-size: .8rem; }
.staff-payroll__demo-copy small { color: var(--payroll-muted); font-size: .67rem; line-height: 1.35; }
.staff-payroll__demo-tag { flex: 0 0 auto; padding: .3rem .5rem; border-radius: 999px; background: #fff1d6; color: #975900; font-size: .58rem; font-weight: 850; letter-spacing: .04em; }
.staff-payroll__panel {
    margin: 0 .85rem .85rem;
    padding: 1rem;
    border: 1px solid #e1e9f5;
    border-radius: 1.1rem;
    background: #fff;
    box-shadow: 0 .35rem 1.25rem rgba(30, 64, 120, .055);
}
.staff-payroll__panel-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: .6rem; margin-bottom: .8rem; }
.staff-payroll__panel-heading h2 { margin: 0; color: var(--payroll-ink); font-size: 1rem; font-weight: 800; }
.staff-payroll__panel-heading p { margin: .15rem 0 0; color: var(--payroll-muted); font-size: .74rem; }
.staff-payroll__period-control { display: grid; gap: .4rem; color: #34445f; font-size: .75rem; font-weight: 700; }
.staff-payroll__period-selectors { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(5rem, .8fr); gap: .55rem; }
.staff-payroll__period-selectors label { display: grid; min-width: 0; gap: .3rem; color: var(--payroll-muted); font-size: .64rem; font-weight: 700; }
.staff-payroll__period-selectors select { width: 100%; min-height: 48px; border: 1px solid #d8e3f1; border-radius: .8rem; padding: .55rem .7rem; background-color: #fff; color: var(--payroll-ink); font: inherit; }
.staff-payroll__period-state { grid-column: 1 / -1; justify-self: start; padding: .3rem .55rem; border: 1px solid #bce8d3; border-radius: 999px; background: #effaf4; color: #16804a; font-size: .62rem; font-weight: 800; }
.staff-payroll__period-state[data-period-state="other"] { border-color: #dce5f0; background: #f5f7fa; color: #66758b; }
.staff-payroll__methods { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .55rem; margin: .85rem 0 0; padding: 0; border: 0; }
.staff-payroll__methods legend { margin-bottom: .45rem; color: #34445f; font-size: .75rem; font-weight: 750; }
.staff-payroll__method { position: relative; display: flex; min-width: 0; min-height: 76px; align-items: flex-start; gap: .5rem; padding: .7rem; border: 1px solid #dce5f0; border-radius: .85rem; background: #fff; color: #34445f; cursor: pointer; }
.staff-payroll__method:has(input:checked) { border-color: #7eabf8; background: #f2f7ff; box-shadow: inset 0 0 0 1px #7eabf8; }
.staff-payroll__method input { width: 1rem; height: 1rem; flex: 0 0 1rem; margin: .1rem 0 0; accent-color: var(--payroll-blue); }
.staff-payroll__method-copy { display: grid; gap: .22rem; }
.staff-payroll__method-copy strong { font-size: .73rem; line-height: 1.2; }
.staff-payroll__method-copy small { color: var(--payroll-muted); font-size: .62rem; line-height: 1.35; }
.staff-payroll__method-note { min-height: 2.35rem; margin: .55rem 0 .75rem; color: var(--payroll-muted); font-size: .7rem; line-height: 1.45; }
.staff-payroll__recalc-warning { display: grid; grid-template-columns: 1.1rem minmax(0, 1fr); gap: .55rem; margin: 0 0 .8rem; padding: .7rem; border: 1px solid #f1d9a9; border-radius: .8rem; background: #fff9ed; color: #78521b; font-size: .66rem; line-height: 1.45; }
.staff-payroll__recalc-warning > i { padding-top: .05rem; color: #c27a0a; font-size: .95rem; }
.staff-payroll__recalc-warning strong { display: block; margin-bottom: .16rem; color: #744809; font-size: .68rem; }
.staff-payroll__primary-action { display: flex; width: 100%; min-height: 48px; align-items: center; justify-content: center; gap: .45rem; border: 0; border-radius: .85rem; background: linear-gradient(110deg, #1769e8, #0c55c6); color: #fff; font-size: .82rem; font-weight: 800; box-shadow: 0 .45rem 1rem rgba(18, 101, 223, .2); }
.staff-payroll__status { min-height: 1.15rem; margin: .55rem 0 0; color: #49617f; font-size: .68rem; line-height: 1.4; }
.staff-payroll__status[data-status-state="success"] { color: #16804a; font-weight: 700; }
.staff-payroll__status[data-status-state="error"] { color: #b42318; font-weight: 700; }
.staff-payroll__period-label { color: #456080; font-size: .68rem; font-weight: 700; }
.staff-payroll__summary { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .55rem; }
.staff-payroll__metric { display: grid; min-width: 0; gap: .28rem; padding: .75rem; border: 1px solid #e7edf5; border-radius: .85rem; background: #fbfdff; }
.staff-payroll__metric span { color: var(--payroll-muted); font-size: .65rem; font-weight: 650; }
.staff-payroll__metric strong { overflow-wrap: anywhere; color: var(--payroll-ink); font-size: .88rem; font-weight: 850; }
.staff-payroll__metric--net { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: .7rem; border-color: #cfe0ff; background: linear-gradient(110deg, #f1f6ff, #f8fbff); }
.staff-payroll__metric--net span { max-width: 45%; }
.staff-payroll__metric--net strong { color: var(--payroll-blue); font-size: 1rem; text-align: right; }
.staff-payroll__employee-table-wrap { width: 100%; min-width: 0; }
.staff-payroll__employee-table { width: 100%; border-collapse: collapse; color: var(--payroll-ink); }
.staff-payroll__employee-table th, .staff-payroll__employee-table td { padding: .65rem .45rem; border-bottom: 1px solid #e7edf5; font-size: .67rem; text-align: left; vertical-align: middle; }
.staff-payroll__employee-table thead th { background: #f6f9fe; color: #52647e; font-size: .61rem; font-weight: 800; }
.staff-payroll__employee-table tbody th { min-width: 9rem; font-weight: 650; }
.staff-payroll__employee-table tbody th strong, .staff-payroll__employee-table tbody th small { display: block; }
.staff-payroll__employee-table tbody th strong { font-size: .72rem; }
.staff-payroll__employee-table tbody th small, .staff-payroll__employee-table td small { margin-top: .16rem; color: var(--payroll-muted); font-size: .59rem; font-weight: 500; }
.staff-payroll__employee-table td small { display: inline; }
.staff-payroll__employee-gross, .staff-payroll__employee-deduction { white-space: nowrap; }
.staff-payroll__employee-net { color: var(--payroll-blue); font-weight: 850; white-space: nowrap; }
.staff-payroll__employee-not-counted { color: #8a5b16; font-size: .63rem !important; font-weight: 750; }
.staff-payroll__eligibility { display: inline-flex; align-items: center; padding: .24rem .42rem; border-radius: 999px; font-size: .58rem; font-weight: 800; white-space: nowrap; }
.staff-payroll__eligibility--included { background: #eaf8f0; color: #16804a; }
.staff-payroll__eligibility--review { background: #fff3dc; color: #8a5b16; }
.staff-payroll__employee--review { background: #fffdf8 !important; }
.staff-payroll__table-note { margin: .65rem 0 0; color: var(--payroll-muted); font-size: .62rem; line-height: 1.4; }
@media (max-width: 600px) {
    .staff-payroll__employee-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
    .staff-payroll__employee-table, .staff-payroll__employee-table tbody { display: grid; gap: .55rem; }
    .staff-payroll__employee-table tr { display: grid; min-width: 0; padding: .7rem; border: 1px solid #e5edf7; border-radius: .85rem; background: #fff; }
    .staff-payroll__employee-table tbody th { min-width: 0; padding: 0 0 .5rem; border: 0; }
    .staff-payroll__employee-table tbody td { display: flex; min-width: 0; justify-content: space-between; gap: .65rem; padding: .38rem 0; border: 0; border-top: 1px solid #f0f3f8; }
    .staff-payroll__employee-table tbody td::before { content: attr(data-label); flex: 0 0 auto; color: var(--payroll-muted); font-size: .62rem; font-weight: 650; }
    .staff-payroll__employee-table td small { margin-left: .18rem; }
}
.staff-payroll__workflow { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .35rem; margin: 0; padding: 0; list-style: none; }
.staff-payroll__workflow li { display: grid; justify-items: center; gap: .35rem; color: var(--payroll-muted); font-size: .61rem; font-weight: 700; text-align: center; }
.staff-payroll__workflow li span { display: grid; width: 1.7rem; height: 1.7rem; place-items: center; border: 1px solid #d4dfed; border-radius: 50%; background: #f8fafc; }
.staff-payroll__workflow li.is-current { color: var(--payroll-blue); }
.staff-payroll__workflow li.is-current span { border-color: var(--payroll-blue); background: #eaf2ff; }
.staff-payroll__disclaimer { margin: .2rem .9rem 1rem; color: #718096; font-size: .64rem; line-height: 1.45; text-align: center; }
.staff-payroll-history__card,.staff-payroll-detail { margin: 0 .85rem .85rem; overflow: hidden; border: 1px solid #e1e9f5; border-radius: 1.1rem; background: #fff; box-shadow: 0 .35rem 1.25rem rgba(30,64,120,.055); }
.staff-payroll-history__heading { display: flex; align-items: center; justify-content: space-between; gap: .75rem; padding: 1rem; border-bottom: 1px solid #e8eef6; }
.staff-payroll-history__heading p,.staff-payroll-detail__heading p { margin: 0 0 .15rem; color: #1265df; font-size: .58rem; font-weight: 850; letter-spacing: .08em; }
.staff-payroll-history__heading h2,.staff-payroll-detail__heading h2 { margin: 0; color: #14213d; font-size: .94rem; font-weight: 850; }
.staff-payroll-history__heading > span { padding: .3rem .52rem; border-radius: 999px; background: #eef4ff; color: #1265df; font-size: .62rem; font-weight: 800; }
.staff-payroll-history__table { width: 100%; border-collapse: collapse; }
.staff-payroll-history__table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
.staff-payroll-history__table th,.staff-payroll-history__table td { padding: .18rem .8rem; border-bottom: 1px solid #edf1f7; vertical-align: middle; }
.staff-payroll-history__table tbody tr:last-child th,.staff-payroll-history__table tbody tr:last-child td { border-bottom: 0; }
.staff-payroll-history__table tbody tr.is-selected { background: #f2f7ff; }
.staff-payroll-history__empty { padding: 1.5rem 1rem !important; color: #74839a; font-size: .72rem; text-align: center !important; }
.staff-payroll-history__table th { width: 100%; padding-right: .25rem; }
.staff-payroll-history__trigger { display: grid; width: 100%; min-height: 4.15rem; grid-template-columns: 2.35rem minmax(0,1fr); align-items: center; gap: .65rem; padding: 0; border: 0; background: transparent; color: #14213d; text-align: left; }
.staff-payroll-history__trigger > span:last-child { display: grid; min-width: 0; gap: .16rem; }
.staff-payroll-history__trigger strong { font-size: .76rem; font-weight: 850; }
.staff-payroll-history__trigger small,.staff-payroll-history__table td small { color: #74839a; font-size: .6rem; font-weight: 600; }
.staff-payroll-history__month-icon { display: grid; width: 2.35rem; height: 2.35rem; place-items: center; border-radius: .8rem; background: #edf4ff; color: #1265df; font-size: 1.1rem; }
.staff-payroll-history__table td:nth-child(2) { min-width: 6.8rem; text-align: right; }
.staff-payroll-history__table td:nth-child(2) strong,.staff-payroll-history__table td:nth-child(2) small { display: block; white-space: nowrap; }
.staff-payroll-history__table td:nth-child(2) strong { color: #1265df; font-size: .72rem; font-weight: 900; }
.staff-payroll-history__table td:nth-child(2) small { margin-top: .15rem; color: #16804a; }
.staff-payroll-history__open { display: grid; width: 2rem; height: 2rem; place-items: center; padding: 0; border: 0; border-radius: 50%; background: transparent; color: #7a899f; font-size: 1.2rem; }
.staff-payroll-detail { position: fixed; z-index: 1050; inset: 0; display: grid; place-items: center; padding: 1rem; border: 0; border-radius: 0; background: rgba(11, 27, 54, .58); box-shadow: none; }
.staff-payroll-detail__sheet { width: min(100%, 31rem); max-height: min(90vh, 42rem); overflow-y: auto; border: 1px solid #e1e9f5; border-radius: 1.1rem; background: #fff; box-shadow: 0 .8rem 2.5rem rgba(10, 31, 70, .22); }
.staff-payroll-modal-open { overflow: hidden; }
.staff-payroll-detail[hidden] { display: none; }
.staff-payroll-detail__heading { display: flex; align-items: flex-start; justify-content: space-between; gap: .75rem; padding: 1rem; border-bottom: 1px solid #e8eef6; }
.staff-payroll-detail__heading small { display: block; margin-top: .22rem; color: #16804a; font-size: .62rem; font-weight: 700; }
.staff-payroll-detail__heading button { display: grid; width: 2rem; height: 2rem; place-items: center; border: 0; border-radius: 50%; background: #f1f4f8; color: #53657d; }
.staff-payroll-detail__components { margin: 0; padding: .35rem 1rem; }
.staff-payroll-detail__components div { display: flex; align-items: center; justify-content: space-between; gap: .75rem; padding: .72rem 0; border-bottom: 1px dashed #e1e8f1; }
.staff-payroll-detail__components dt { color: #66758b; font-size: .68rem; font-weight: 650; }
.staff-payroll-detail__components dd { margin: 0; color: #14213d; font-size: .72rem; font-weight: 850; }
.staff-payroll-detail__components .is-deduction dd { color: #c2413a; }
.staff-payroll-detail__components .is-total { margin-top: .2rem; border: 0; }
.staff-payroll-detail__components .is-total dt,.staff-payroll-detail__components .is-total dd { color: #1265df; font-size: .86rem; font-weight: 900; }
.staff-payroll-detail__note { display: flex; gap: .45rem; margin: 0; padding: .8rem 1rem; background: #f7faff; color: #66758b; font-size: .62rem; line-height: 1.45; }
@media (max-width: 390px) {
    .staff-payroll__demo, .staff-payroll__panel { margin-right: .65rem; margin-left: .65rem; }
    .staff-payroll__panel { padding: .85rem; }
    .staff-payroll__metric { padding: .65rem; }
    .staff-payroll__metric strong { font-size: .78rem; }
}
@media (max-width: 340px) {
    .staff-payroll__methods { grid-template-columns: minmax(0, 1fr); }
    .staff-payroll__method { min-height: 0; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
    .staff-kpi-grid { scroll-snap-type: none; }
    .staff-notification-card { transition: none; animation: none; }
}

/* Mobile-first staff login. Scoped to avoid changing authenticated screens. */
.staff-login-page, .staff-login-page *, .staff-login-page *::before, .staff-login-page *::after { box-sizing: border-box; }
.staff-login-page {
    position: relative;
    display: flex;
    width: 100%;
    max-width: 34rem;
    height: 100%;
    min-height: 0;
    margin: 0 auto;
    padding: 0 .15rem;
    flex-direction: column;
    justify-content: center;
    color: #142653;
    isolation: isolate;
}
[data-staff-layout="true"]:has(.staff-login-page) {
    height: 100vh;
    height: 100svh;
    height: 100dvh;
    min-height: 100vh !important;
    min-height: 100svh !important;
    min-height: 100dvh !important;
    align-items: stretch !important;
    overflow: hidden;
    padding-top: max(.55rem, env(safe-area-inset-top)) !important;
    padding-bottom: max(.55rem, env(safe-area-inset-bottom)) !important;
}
[data-staff-layout="true"]:has(.staff-login-page) [data-staff-shell="foundation"] { height: 100%; }
.staff-login__backdrop {
    position: fixed;
    z-index: -2;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(circle at 8% 8%, rgba(64, 137, 235, .18), transparent 30%),
        radial-gradient(circle at 92% 28%, rgba(125, 183, 255, .17), transparent 32%),
        linear-gradient(145deg, #fafdff 0%, #edf5ff 52%, #f8fbff 100%);
}
.staff-login__backdrop::after {
    position: absolute;
    inset: 0;
    opacity: .38;
    background-image: radial-gradient(rgba(31, 102, 214, .14) 1px, transparent 1px);
    background-size: 17px 17px;
    content: "";
    mask-image: linear-gradient(135deg, #000, transparent 42%);
}
.staff-login-brand { position: relative; z-index: 1; margin: .4rem 0 1.15rem; text-align: center; }
.staff-login-brand__logo {
    display: block;
    width: 4.5rem;
    height: 4.5rem;
    margin: 0 auto .75rem;
    border-radius: 1.25rem;
    background: #fff;
    box-shadow: 0 .6rem 1.4rem rgba(28, 92, 181, .16);
    object-fit: contain;
}
.staff-login-brand h1 { margin: 0; color: #102554; font-size: clamp(1.75rem, 8vw, 2.35rem); font-weight: 850; letter-spacing: .04em; }
.staff-login-brand__subtitle { margin: .22rem 0 0; color: #1264d9; font-size: .76rem; font-weight: 800; letter-spacing: .18em; }
.staff-login-brand__tagline { margin: .55rem 0 0; color: #647394; font-size: .8rem; line-height: 1.45; }
.staff-login-card {
    position: relative;
    z-index: 1;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    padding: 1.35rem 1rem 1.1rem;
    border: 1px solid rgba(44, 104, 188, .12);
    border-radius: 1.55rem;
    background: rgba(255, 255, 255, .96);
    box-shadow: 0 1.15rem 2.6rem rgba(31, 79, 140, .13);
}
.staff-login-card__header { margin-bottom: 1.25rem; text-align: center; }
.staff-login-card__header h2 { margin: 0; color: #102554; font-size: 1.55rem; font-weight: 850; }
.staff-login-card__header p { margin: .35rem 0 0; color: #687796; font-size: .86rem; }
.staff-login-panel { width: 100%; min-width: 0; max-width: 100%; padding: 1rem .75rem 1.05rem; border: 1px solid #e1e9f5; border-radius: 1.2rem; }
.staff-login-panel h3 { display: flex; align-items: center; gap: .5rem; margin: 0 0 1rem; color: #1164db; font-size: .94rem; font-weight: 800; }
.staff-login-panel h3 i { font-size: 1.25rem; }
.staff-login-form { display: grid; min-width: 0; gap: .85rem; }
.staff-login-field { display: grid; gap: .38rem; color: #263554; font-size: .78rem; font-weight: 750; }
.staff-login-input-wrap { position: relative; display: flex; width: 100%; min-width: 0; max-width: 100%; align-items: center; }
.staff-login-input-wrap > i { position: absolute; left: .9rem; z-index: 1; color: #7786a5; font-size: 1.15rem; pointer-events: none; }
.staff-login-input-wrap input { width: 100%; min-height: 3.05rem; padding: .7rem 2.8rem .7rem 2.7rem; border: 1px solid #dbe5f3; border-radius: .9rem; background: #fff; color: #182642; font-size: .92rem; }
.staff-login-input-wrap input::placeholder { color: #9aa7be; }
.staff-login-input-wrap input:focus { border-color: #2375df; box-shadow: 0 0 0 .2rem rgba(35, 117, 223, .14); outline: 0; }
.staff-login-password-toggle { position: absolute; right: .35rem; display: grid; width: 2.35rem; min-height: 2.35rem !important; place-items: center; border: 0; background: transparent; color: #7786a5; }
.staff-login-options { display: flex; min-width: 0; align-items: center; justify-content: space-between; gap: .6rem; color: #53627f; font-size: .76rem; }
.staff-login-remember { display: inline-flex; align-items: center; gap: .42rem; min-height: 2.4rem; }
.staff-login-remember input { width: 1.05rem; height: 1.05rem; accent-color: #1769de; }
.staff-login-options a { color: #1467dc; font-weight: 750; text-decoration: none; }
.staff-login-submit { width: 100%; min-height: 3rem !important; border: 0; border-radius: .9rem; background: linear-gradient(135deg, #1164db, #2d82ed); color: #fff; font-size: 1rem; font-weight: 800; box-shadow: 0 .55rem 1.15rem rgba(22, 100, 219, .22); }
.staff-login-submit:active { transform: translateY(1px); }
.staff-login-divider { display: flex; align-items: center; gap: .75rem; margin: 1.1rem .5rem; color: #7b88a2; font-size: .8rem; }
.staff-login-divider span { height: 1px; flex: 1 1 auto; background: #dce5f2; }
.staff-login-divider strong { font-weight: 700; }
.staff-passkey-form { margin: 0; }
.staff-passkey-button { display: flex; width: 100%; min-width: 0; max-width: 100%; min-height: 4.2rem !important; align-items: center; gap: .8rem; padding: .65rem .8rem; border: 1.5px solid #4a8df0; border-radius: .95rem; background: #f8fbff; color: #1467dc; text-align: left; }
.staff-passkey-button__icon { display: grid; width: 2.75rem; height: 2.75rem; flex: 0 0 2.75rem; place-items: center; border-radius: 50%; background: #e8f1ff; color: #1467dc; font-size: 1.65rem; }
.staff-passkey-button strong, .staff-passkey-button small { display: block; }
.staff-passkey-button strong { font-size: .96rem; font-weight: 800; }
.staff-passkey-button small { margin-top: .15rem; color: #6d7d9e; font-size: .76rem; }
.staff-login-help { margin: .8rem .25rem 0; color: #7b88a2; font-size: .68rem; line-height: 1.45; text-align: center; }
.staff-login-status { min-height: 1.2rem; margin: .7rem 0 0; color: #b45309; font-size: .78rem; text-align: center; }
.staff-login-status:empty { display: none; }
.staff-login-footer { position: relative; z-index: 1; margin-top: .8rem; color: #71809e; font-size: .68rem; text-align: center; }

@media (min-width: 48rem) {
    .staff-login-page { padding-top: 1.25rem; }
    .staff-login-card { padding: 1.7rem 1.5rem 1.3rem; }
    .staff-login-panel { padding: 1.15rem 1rem 1.2rem; }
}

@media (max-width: 360px) {
    .staff-login-page { padding-right: 0; padding-left: 0; }
    .staff-login-brand__subtitle { font-size: .68rem; letter-spacing: .13em; }
    .staff-login-brand__tagline { font-size: .73rem; }
    .staff-login-card { padding-right: .75rem; padding-left: .75rem; border-radius: 1.35rem; }
    .staff-login-panel { padding-right: .65rem; padding-left: .65rem; }
}

/* Smartphone portrait always uses the fitted one-screen composition. */
@media (max-width: 47.99rem), (max-height: 760px) {
    .staff-login-brand { margin: 0 0 .65rem; }
    .staff-login-brand__logo { width: 3.2rem; height: 3.2rem; margin-bottom: .4rem; border-radius: .95rem; }
    .staff-login-brand h1 { font-size: 1.65rem; }
    .staff-login-brand__subtitle { margin-top: .12rem; font-size: .65rem; }
    .staff-login-brand__tagline { margin-top: .28rem; font-size: .7rem; }
    .staff-login-card { padding: .85rem .75rem .75rem; border-radius: 1.25rem; }
    .staff-login-card__header { margin-bottom: .65rem; }
    .staff-login-card__header h2 { font-size: 1.25rem; }
    .staff-login-card__header p { margin-top: .18rem; font-size: .76rem; }
    .staff-login-panel { padding: .65rem; border-radius: 1rem; }
    .staff-login-panel h3 { margin-bottom: .55rem; font-size: .78rem; }
    .staff-login-panel h3 i { font-size: 1.05rem; }
    .staff-login-form { gap: .5rem; }
    .staff-login-field { gap: .2rem; font-size: .68rem; }
    .staff-login-input-wrap input { min-height: 2.75rem; font-size: .84rem; }
    .staff-login-options { font-size: .7rem; }
    .staff-login-remember { min-height: 2rem; }
    .staff-login-submit { min-height: 2.8rem !important; font-size: .9rem; }
    .staff-login-divider { margin: .65rem .5rem; }
    .staff-passkey-button { min-height: 3.55rem !important; }
    .staff-passkey-button__icon { width: 2.3rem; height: 2.3rem; flex-basis: 2.3rem; font-size: 1.35rem; }
    .staff-passkey-button strong { font-size: .86rem; }
    .staff-passkey-button small { font-size: .68rem; }
    .staff-login-help { display: none; }
    .staff-login-footer { margin-top: .4rem; font-size: .6rem; }
}

@media (max-height: 620px) {
    .staff-login-brand { margin-bottom: .45rem; }
    .staff-login-brand__logo { width: 2.55rem; height: 2.55rem; margin-bottom: .25rem; border-radius: .75rem; }
    .staff-login-brand h1 { font-size: 1.4rem; }
    .staff-login-brand__subtitle { font-size: .56rem; letter-spacing: .11em; }
    .staff-login-brand__tagline { margin-top: .15rem; font-size: .62rem; }
    .staff-login-card { padding-top: .65rem; padding-bottom: .6rem; }
    .staff-login-card__header { margin-bottom: .45rem; }
    .staff-login-card__header h2 { font-size: 1.1rem; }
    .staff-login-panel { padding-top: .5rem; padding-bottom: .5rem; }
    .staff-login-panel h3 { margin-bottom: .4rem; }
    .staff-login-field > span:first-child { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
    .staff-login-options { min-height: 1.75rem; }
    .staff-login-divider { margin-top: .45rem; margin-bottom: .45rem; }
    .staff-passkey-button { min-height: 3.25rem !important; padding-top: .4rem; padding-bottom: .4rem; }
    .staff-login-footer { margin-top: .25rem; }
}

@media (max-height: 560px) {
    [data-staff-layout="true"]:has(.staff-login-page) { overflow-y: auto; }
    .staff-login-page { height: auto; min-height: 100%; justify-content: flex-start; }
}

/* Performance v2: profit-first executive mobile dashboard. */
.staff-performance {
    --performance-blue: #1265df;
    --performance-navy: #0d2858;
    --performance-muted: #667795;
    padding-bottom: 1rem;
    border-color: rgba(18, 101, 223, .1);
    border-radius: 1.55rem;
    background: #f4f8ff;
    box-shadow: 0 1.4rem 3.6rem rgba(23, 72, 139, .15);
}
.staff-performance__hero {
    min-height: 12.25rem;
    padding: 1.15rem 1.15rem 3.65rem;
    background:
        radial-gradient(circle at 92% 12%, rgba(124, 199, 255, .38), transparent 30%),
        linear-gradient(135deg, #0878ef 0%, #145ddd 58%, #1649c7 100%);
}
.staff-performance__hero::before {
    position: absolute;
    top: 1.2rem;
    right: -2.5rem;
    width: 15rem;
    height: 6rem;
    border-top: 1px solid rgba(255, 255, 255, .14);
    border-radius: 50%;
    box-shadow: 0 -1rem 0 rgba(255, 255, 255, .04), 0 -2rem 0 rgba(255, 255, 255, .035);
    content: "";
    transform: rotate(-8deg);
}
.staff-performance__hero::after {
    right: -4rem;
    bottom: -7rem;
    width: 14rem;
    height: 14rem;
}
.staff-performance__brand {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: .65rem;
}
.staff-performance__brand img {
    width: 2.4rem;
    height: 2.4rem;
    border-radius: .72rem;
    background: #fff;
    box-shadow: 0 .45rem 1.1rem rgba(5, 48, 133, .22);
}
.staff-performance__brand strong { font-size: 1rem; font-weight: 820; letter-spacing: -.015em; }
.staff-performance__hero-row {
    position: relative;
    z-index: 2;
    display: flex;
    min-width: 0;
    align-items: flex-end;
    justify-content: space-between;
    gap: .75rem;
    margin-top: 1.25rem;
}
.staff-performance__hero-copy { max-width: none; min-width: 0; }
.staff-performance__hero-copy .staff-eyebrow { color: rgba(255, 255, 255, .72); font-size: .6rem; }
.staff-performance__hero-copy h1 { margin: .2rem 0 0; font-size: clamp(1.65rem, 7vw, 2.25rem); }
.staff-performance__period {
    position: static;
    width: min(12.5rem, 54%);
    flex: 0 1 12.5rem;
    padding: .55rem .65rem;
    border-color: rgba(255, 255, 255, .3);
    border-radius: .85rem;
    background: rgba(255, 255, 255, .15);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .14);
}
.staff-performance__period > i {
    width: 1.9rem;
    height: 1.9rem;
    flex-basis: 1.9rem;
    border-radius: .6rem;
    font-size: 1rem;
}
.staff-performance__period small { font-size: .55rem; }
.staff-performance__period strong { font-size: .67rem; }
.staff-performance-filter {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: .7rem;
    margin: -2.25rem .75rem 0;
    padding: .85rem;
    border-color: rgba(18, 101, 223, .12);
    border-radius: 1.05rem;
    box-shadow: 0 .85rem 2rem rgba(19, 70, 141, .13);
}
.staff-performance-filter__heading { grid-column: 1 / -1; }
.staff-performance-filter__heading > span {
    width: 2.05rem;
    height: 2.05rem;
    flex-basis: 2.05rem;
    border-radius: .65rem;
    color: var(--performance-blue);
}
.staff-performance-filter__heading h2 { color: var(--performance-navy); font-size: .84rem; }
.staff-performance-filter__heading p { font-size: .63rem; }
.staff-performance-filter__fields { gap: .5rem; }
.staff-performance-filter__fields label { font-size: .62rem; }
.staff-performance-filter__input { min-height: 42px; border-color: #d9e5f6; background: #f7faff; }
.staff-performance-filter__input input { min-height: 40px; font-size: .67rem; }
.staff-performance-filter__submit {
    min-width: 5.8rem;
    min-height: 42px;
    align-self: end;
    padding: 0 .7rem;
    background: linear-gradient(135deg, #0878ef, #1257d4);
    box-shadow: 0 .45rem 1rem rgba(18, 101, 223, .22);
    font-size: .7rem;
}
.staff-performance__status { min-height: 1rem; margin: .55rem .9rem .05rem; font-size: .63rem; }
.staff-performance-profit,
.staff-performance-section,
.staff-performance-leaderboard {
    margin: .7rem .75rem 0;
    padding: .95rem;
    border: 1px solid rgba(18, 101, 223, .09);
    border-radius: 1.15rem;
    background: #fff;
    box-shadow: 0 .55rem 1.6rem rgba(32, 76, 139, .08);
}
.staff-performance-profit { color: var(--performance-navy); }
.staff-performance-profit__heading p { color: #4d6a94; font-size: .61rem; }
.staff-performance-profit__heading h2 { color: var(--performance-navy); font-size: .96rem; }
.staff-performance-profit__heading > span {
    display: inline-flex;
    width: auto;
    height: auto;
    min-height: 1.8rem;
    align-items: center;
    gap: .3rem;
    padding: .25rem .55rem;
    border: 1px solid #d6e5fb;
    border-radius: 999px;
    background: #eef5ff;
    color: var(--performance-blue);
    font-size: .59rem;
    font-weight: 780;
    box-shadow: none;
}
.staff-performance-profit__body { display: grid; gap: .85rem; margin-top: .95rem; }
.staff-performance-profit__value {
    margin: 0;
    color: #115bd1;
    font-size: clamp(1.75rem, 8vw, 2.55rem);
    letter-spacing: -.055em;
}
.staff-performance-profit__secondary {
    margin: .45rem 0 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
}
.staff-performance-profit__secondary span { color: var(--performance-muted); font-size: .7rem; }
.staff-performance-profit__secondary strong { color: #405576; font-size: .86rem; }
.staff-performance-margin {
    padding: .78rem;
    border: 1px solid #dce8fa;
    border-radius: .9rem;
    background: linear-gradient(145deg, #f7faff, #eef5ff);
}
.staff-performance-margin > div:first-child { display: flex; align-items: center; justify-content: space-between; gap: .75rem; }
.staff-performance-margin span { color: #506888; font-size: .67rem; font-weight: 730; }
.staff-performance-margin strong { color: #14834f; font-size: 1.05rem; font-weight: 850; }
.staff-performance-margin__track { height: .42rem; margin: .55rem 0 .4rem; overflow: hidden; border-radius: 999px; background: #dce8f8; }
.staff-performance-margin__track span { display: block; width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #1db875, #0d9c5e); transition: width .35s ease; }
.staff-performance-margin small { display: block; color: #7a8aa3; font-size: .57rem; line-height: 1.4; }
.staff-performance-margin small + small { margin-top: .16rem; }
.staff-performance-margin small strong { color: inherit; font-size: inherit; font-weight: 820; }
.staff-performance-meta {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .45rem;
    margin-top: .8rem;
    padding: 0;
    background: transparent;
}
.staff-performance-meta p {
    grid-template-columns: auto minmax(0, 1fr);
    gap: .15rem .4rem;
    padding: .55rem;
    border-radius: .75rem;
    background: #f6f9fd;
    color: #49617f;
    font-size: .56rem;
}
.staff-performance-meta i { grid-row: 1 / 3; color: var(--performance-blue); font-size: .9rem; }
.staff-performance-meta span { color: #7a8ba3; }
.staff-performance-meta strong { overflow: hidden; color: #405573; text-align: left; text-overflow: ellipsis; white-space: nowrap; }
.staff-performance-section__heading h2,
.staff-performance-leaderboard__heading h2 { color: var(--performance-navy); font-size: 1rem; }
.staff-performance-section__heading > span { background: #edf4ff; color: var(--performance-blue); }
.staff-performance-kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .45rem; margin-top: .75rem; }
.staff-performance-kpi {
    min-height: 5.8rem;
    align-content: start;
    justify-items: start;
    gap: .22rem;
    padding: .55rem;
    border-color: color-mix(in srgb, var(--performance-tone) 14%, transparent);
    border-radius: .85rem;
    text-align: left;
}
.staff-performance-kpi > i { width: 1.75rem; height: 1.75rem; border-radius: .55rem; font-size: .9rem; }
.staff-performance-kpi span { order: 2; color: var(--performance-tone); font-size: .54rem; font-weight: 820; letter-spacing: .025em; text-transform: uppercase; }
.staff-performance-kpi strong { order: 3; max-width: 100%; color: var(--performance-navy); font-size: clamp(.9rem, 4.2vw, 1.25rem); overflow-wrap: anywhere; }
.staff-performance-kpi--fake-order { --performance-tone: #15934f; --performance-soft: #eefaf3; }
.staff-performance-kpi--store { --performance-tone: #e56d0b; --performance-soft: #fff6eb; }
.staff-performance-leaderboard { padding: .95rem .8rem .7rem; }
.staff-performance-leaderboard__heading > span {
    width: 2.3rem;
    height: 2.3rem;
    border: 1px solid #fee6a7;
    border-radius: .75rem;
    background: #fff8e7;
}
.staff-performance-leaderboard__columns {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .5rem;
    margin-top: .8rem;
    padding: 0 .2rem .45rem 4.95rem;
    border-bottom: 1px solid #e5edf7;
    color: #7889a2;
    font-size: .58rem;
    font-weight: 720;
}
.staff-performance-leaderboard-row {
    grid-template-columns: 1.7rem 2.35rem minmax(0, 1fr) auto;
    gap: .45rem;
    margin-top: .16rem;
    padding: .52rem .34rem;
    border-top: 0;
    border-radius: .8rem;
}
.staff-performance-leaderboard-row:first-child { margin-top: .3rem; padding-top: .52rem; }
.staff-performance-leaderboard-row--rank-1 { background: linear-gradient(90deg, #fff9e9, #fff); }
.staff-performance-leaderboard-row--rank-2 { background: linear-gradient(90deg, #f2f6fa, #fff); }
.staff-performance-leaderboard-row--rank-3 { background: linear-gradient(90deg, #fff3eb, #fff); }
.staff-performance-leaderboard-row__rank {
    width: 1.65rem;
    height: 1.65rem;
    border: 1px solid #c9dcfa;
    border-radius: 50%;
    background: #f6f9ff;
    color: var(--performance-blue);
    font-size: .64rem;
}
.staff-performance-leaderboard-row--rank-1 .staff-performance-leaderboard-row__rank { border-color: #f4c647; background: #ffd866; color: #765000; box-shadow: 0 .25rem .55rem rgba(202, 144, 9, .2); }
.staff-performance-leaderboard-row--rank-2 .staff-performance-leaderboard-row__rank { border-color: #b7c2d0; background: #dfe5ec; color: #445568; }
.staff-performance-leaderboard-row--rank-3 .staff-performance-leaderboard-row__rank { border-color: #dc9b6d; background: #ebb184; color: #753b18; }
.staff-performance-leaderboard-row__avatar {
    position: relative;
    display: grid;
    width: 2.35rem;
    height: 2.35rem;
    overflow: hidden;
    place-items: center;
    border: 2px solid #fff;
    border-radius: 50%;
    background: linear-gradient(135deg, #e6effd, #cbdcf8);
    color: #225aab;
    box-shadow: 0 .2rem .55rem rgba(34, 76, 137, .15);
}
.staff-performance-leaderboard-row__avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.staff-performance-leaderboard-row__initials { font-size: .62rem; font-weight: 850; letter-spacing: .015em; }
.staff-performance-leaderboard-row__identity { gap: .1rem; }
.staff-performance-leaderboard-row__identity strong { color: var(--performance-navy); font-size: .7rem; }
.staff-performance-leaderboard-row__identity span { color: #70819a; font-size: .58rem; }
.staff-performance-leaderboard-row__profit { max-width: 6.8rem; color: #102c5e; font-size: .63rem; }
.staff-performance-warning { margin: .7rem .75rem 0; }

@media (min-width: 30rem) {
    .staff-performance-profit__body { grid-template-columns: minmax(0, 1.2fr) minmax(10rem, .8fr); align-items: end; }
}

@media (max-width: 390px) {
    .staff-performance__hero { min-height: 11.8rem; padding-right: .9rem; padding-left: .9rem; }
    .staff-performance__brand img { width: 2.2rem; height: 2.2rem; }
    .staff-performance__brand strong { font-size: .9rem; }
    .staff-performance__hero-row { margin-top: 1.05rem; }
    .staff-performance__period { width: 52%; padding: .48rem .5rem; gap: .4rem; }
    .staff-performance-filter { margin-right: .58rem; margin-left: .58rem; padding: .75rem; }
    .staff-performance-filter__heading p { display: none; }
    .staff-performance-profit, .staff-performance-section, .staff-performance-leaderboard { margin-right: .58rem; margin-left: .58rem; padding: .8rem; }
    .staff-performance-kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .3rem; }
    .staff-performance-kpi { min-height: 5.35rem; padding: .45rem; }
    .staff-performance-kpi > i { width: 1.6rem; height: 1.6rem; }
    .staff-performance-leaderboard { padding-right: .55rem; padding-left: .55rem; }
    .staff-performance-leaderboard-row { grid-template-columns: 1.55rem 2.15rem minmax(0, 1fr) auto; gap: .34rem; padding-right: .2rem; padding-left: .2rem; }
    .staff-performance-leaderboard-row__rank { width: 1.5rem; height: 1.5rem; }
    .staff-performance-leaderboard-row__avatar { width: 2.15rem; height: 2.15rem; }
    .staff-performance-leaderboard-row__profit { max-width: 5.75rem; font-size: .57rem; }
    .staff-performance-leaderboard__columns { padding-left: 4.35rem; }
    .staff-performance-warning { margin-right: .58rem; margin-left: .58rem; }
}

@media (max-width: 340px) {
    .staff-performance__period small { display: none; }
    .staff-performance-filter { grid-template-columns: minmax(0, 1fr); }
    .staff-performance-filter__fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .staff-performance-filter__submit { width: 100%; }
    .staff-performance-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .staff-performance-kpi { min-height: 4.7rem; }
    .staff-performance-leaderboard-row { grid-template-columns: 1.45rem 1.95rem minmax(0, 1fr) auto; gap: .25rem; }
    .staff-performance-leaderboard-row__avatar { width: 1.95rem; height: 1.95rem; }
    .staff-performance-leaderboard-row__profit { max-width: 5rem; font-size: .53rem; }
}

/* Performance v2.1: one-tap month period directly below the page title. */
.staff-performance__hero { min-height: 13.1rem; padding-bottom: 3.8rem; }
.staff-performance__hero-row { display: block; margin-top: 1.05rem; }
.staff-performance__hero-copy { width: 100%; }
.staff-performance__period {
    position: relative;
    display: grid;
    width: min(14rem, 100%);
    min-height: 3rem;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: .58rem;
    margin-top: .75rem;
    padding: .48rem .58rem;
    cursor: pointer;
}
.staff-performance__period > i:first-child {
    width: 2rem;
    height: 2rem;
    flex-basis: auto;
}
.staff-performance__period .staff-performance__period-arrow {
    width: auto;
    height: auto;
    background: transparent;
    font-size: 1.1rem;
}
.staff-performance__period input {
    position: absolute;
    z-index: 3;
    inset: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
    opacity: 0;
}
.staff-performance__period:focus-within {
    outline: 3px solid rgba(255, 255, 255, .7);
    outline-offset: 2px;
}
.staff-performance-filter--month-only { display: none !important; }
.staff-performance-profit {
    position: relative;
    z-index: 3;
    margin-top: -2.3rem;
}
.staff-performance__status { margin: .5rem .9rem 0; }

@media (max-width: 390px) {
    .staff-performance__hero { min-height: 12.8rem; padding-right: .9rem; padding-left: .9rem; }
    .staff-performance__period { width: min(13.5rem, 100%); padding: .45rem .55rem; gap: .5rem; }
    .staff-performance__period small { display: block; }
    .staff-performance-profit { margin-top: -2.15rem; }
}

@media (max-width: 340px) {
    .staff-performance__period { min-height: 2.8rem; }
    .staff-performance__period small { display: block; }
}

/* Performance v2.2: compact period control aligned with notifications. */
.staff-page-utility {
    display: flex;
    min-height: 44px;
    align-items: center;
    justify-content: flex-end;
    gap: .55rem;
    margin-bottom: .65rem;
}
.staff-page-utility .staff-notification-action { margin: 0; }
.staff-page-utility--performance { justify-content: space-between; }
.staff-performance__period--utility {
    display: inline-grid;
    inset: auto;
    width: auto;
    max-width: calc(100% - 3.5rem);
    min-height: 2.65rem;
    grid-template-columns: auto minmax(0, 1fr) auto;
    flex: 0 1 auto;
    gap: .42rem;
    margin: 0;
    padding: .3rem .52rem .3rem .38rem;
    border: 1px solid #d8e5f7;
    border-radius: .82rem;
    background: #fff;
    color: #15305c;
    box-shadow: 0 .28rem .9rem rgba(24, 72, 137, .09);
}
.staff-performance__period--utility > i:first-child {
    width: 1.85rem;
    height: 1.85rem;
    border-radius: .58rem;
    background: #eaf2ff;
    color: #1265df;
    font-size: .9rem;
}
.staff-performance__period--utility span { gap: 0; }
.staff-performance__period--utility small { color: #7a8ba5; font-size: .48rem; letter-spacing: .04em; }
.staff-performance__period--utility strong { color: #15305c; font-size: .66rem; }
.staff-performance__period--utility .staff-performance__period-arrow { color: #1265df; font-size: .95rem; }
.staff-performance__period--utility:focus-within { outline-color: rgba(18, 101, 223, .32); }
.staff-performance__hero { min-height: 10.5rem; padding-bottom: 3.7rem; }
.staff-performance__hero-row { margin-top: 1.15rem; }

@media (max-width: 390px) {
    .staff-page-utility { margin-right: .05rem; margin-left: .05rem; }
    .staff-performance__period--utility { width: auto; max-width: calc(100% - 3.35rem); min-height: 2.55rem; }
    .staff-performance__hero { min-height: 10.25rem; }
}

@media (max-width: 340px) {
    .staff-performance__period--utility small { display: none; }
    .staff-performance__period--utility strong { font-size: .62rem; }
}

/* Mobile shell v3: one blue header and primary color across every Staff menu. */
.staff-has-navigation {
    --staff-green: #1265df;
    --staff-green-soft: #eaf2ff;
    --staff-border: rgba(18, 101, 223, .13);
    --staff-focus: #1265df;
    background: #f4f7fb !important;
}
.staff-mobile-page-header {
    position: relative;
    min-height: 11.4rem;
    margin-bottom: 1rem;
    padding: 1rem 1rem 2rem;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .13);
    border-radius: 1.4rem;
    background:
        radial-gradient(circle at 90% 8%, rgba(131, 204, 255, .32), transparent 29%),
        repeating-linear-gradient(45deg, transparent, transparent 1.15rem, rgba(255, 255, 255, .035) 1.15rem, rgba(255, 255, 255, .035) 1.21rem),
        linear-gradient(135deg, #0878ef 0%, #145ddd 58%, #1649c7 100%);
    color: #fff;
    box-shadow: 0 .8rem 2rem rgba(20, 77, 159, .18);
}
.staff-mobile-page-header::after {
    position: absolute;
    right: -4rem;
    bottom: -6rem;
    width: 12rem;
    height: 12rem;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 50%;
    content: "";
}
.staff-mobile-page-header__brand {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: .62rem;
}
.staff-mobile-page-header__brand img {
    width: 2.25rem;
    height: 2.25rem;
    padding: .18rem;
    border-radius: .68rem;
    background: #fff;
    object-fit: contain;
    box-shadow: 0 .38rem .9rem rgba(5, 47, 126, .2);
}
.staff-mobile-page-header__brand strong { font-size: .92rem; font-weight: 820; letter-spacing: -.015em; }
.staff-mobile-page-header__heading {
    position: relative;
    z-index: 2;
    display: flex;
    min-width: 0;
    align-items: center;
    gap: .8rem;
    margin-top: 1.35rem;
}
.staff-mobile-page-header__icon {
    display: grid;
    width: 3rem;
    height: 3rem;
    flex: 0 0 3rem;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, .25);
    border-radius: .95rem;
    background: rgba(255, 255, 255, .15);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .16);
    font-size: 1.35rem;
    backdrop-filter: blur(.3rem);
}
.staff-mobile-page-header__icon--photo {
    overflow: hidden;
    padding: .12rem;
    border: 2px solid rgba(255, 255, 255, .9);
    border-radius: 50%;
    background: rgba(255, 255, 255, .24);
    box-shadow: 0 .4rem 1rem rgba(5, 47, 126, .24);
}
.staff-mobile-page-header__icon--photo img {
    width: 100%;
    height: 100%;
    border-radius: inherit;
    object-fit: cover;
    object-position: center;
}
.staff-mobile-page-header__heading > div { min-width: 0; }
.staff-mobile-page-header__heading p,
.staff-mobile-page-header__heading h1,
.staff-mobile-page-header__heading small { margin: 0; }
.staff-mobile-page-header__heading p { color: rgba(255, 255, 255, .72); font-size: .59rem; font-weight: 760; letter-spacing: .075em; text-transform: uppercase; }
.staff-mobile-page-header__heading h1 { margin-top: .08rem; overflow: hidden; font-size: clamp(1.45rem, 6.2vw, 1.9rem); font-weight: 850; letter-spacing: -.03em; line-height: 1.15; text-overflow: ellipsis; white-space: nowrap; }
.staff-mobile-page-header__heading small { display: block; margin-top: .22rem; color: rgba(255, 255, 255, .82); font-size: .69rem; line-height: 1.4; }
.staff-mobile-page-header__clock {
    display: inline-flex;
    width: auto;
    min-width: 5.55rem;
    min-height: 2.45rem;
    align-items: center;
    justify-content: center;
    gap: .34rem;
    margin: 0;
    padding: .35rem .52rem;
    border: 1px solid rgba(255, 255, 255, .28);
    border-radius: .78rem;
    background: rgba(255, 255, 255, .15);
    color: #fff;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .13);
    font-size: .61rem;
    font-variant-numeric: tabular-nums;
    line-height: 1.2;
    backdrop-filter: blur(.38rem);
}
.staff-mobile-page-header__clock i { flex: 0 0 auto; font-size: .82rem; }
.staff-mobile-page-header__clock b { flex: 0 0 auto; color: #fff; font-weight: 820; white-space: nowrap; }
.staff-mobile-dashboard .staff-mobile-page-header,
.staff-performance.staff-dashboard-page .staff-mobile-page-header {
    margin-bottom: 0;
    border: 0;
    border-radius: 0;
    box-shadow: none;
}
.staff-mobile-dashboard .staff-mobile-page-header { min-height: 14.3rem; padding-bottom: 4.8rem; }
.staff-performance.staff-dashboard-page .staff-mobile-page-header { min-height: 10.75rem; padding-bottom: 3.65rem; }
.staff-performance.staff-dashboard-page .staff-performance-profit { margin-top: -2.2rem; }
.staff-page-action-row { display: flex; justify-content: flex-end; margin: -.35rem 0 .75rem; }
.staff-page-refresh {
    display: inline-flex;
    min-height: 40px;
    align-items: center;
    gap: .38rem;
    padding: .45rem .7rem;
    border: 1px solid #d6e4f8;
    border-radius: .72rem;
    background: #fff;
    color: #1265df;
    box-shadow: 0 .25rem .8rem rgba(24, 72, 137, .08);
    font-size: .7rem;
    font-weight: 780;
}
.staff-page-utility .staff-notification-action,
.staff-has-navigation .staff-page-utility .staff-notification-action {
    position: relative;
    top: auto;
    right: auto;
    margin: 0;
    border-color: #d8e5f7;
    background: #fff;
    color: #1265df;
    box-shadow: 0 .28rem .9rem rgba(24, 72, 137, .09);
    backdrop-filter: none;
}
.staff-bottom-nav__item.is-active,
.staff-bottom-nav__item--primary,
.staff-bottom-nav__item--primary.is-active { color: #1265df; }
.staff-has-navigation .btn-success {
    border-color: #1265df !important;
    background: #1265df !important;
    color: #fff !important;
    box-shadow: 0 .35rem .9rem rgba(18, 101, 223, .18);
}
.staff-has-navigation .btn-success:hover,
.staff-has-navigation .btn-success:focus { border-color: #0f55bd !important; background: #0f55bd !important; }
.staff-has-navigation .btn-outline-success {
    border-color: #b9d0f3 !important;
    background: #fff !important;
    color: #1265df !important;
}
.staff-has-navigation .btn-outline-success:hover,
.staff-has-navigation .btn-outline-success:focus { border-color: #1265df !important; background: #eaf2ff !important; color: #0f55bd !important; }
.staff-mode-card__icon,
.staff-requests__history-heading i { background: #eaf2ff; color: #1265df; }
.staff-tab.is-selected,
.staff-tab[aria-selected="true"] { border-color: #1265df; background: #eaf2ff; color: #1265df; }

@media (max-width: 390px) {
    .staff-mobile-page-header { min-height: 10.9rem; padding: .9rem .9rem 1.75rem; border-radius: 1.25rem; }
    .staff-mobile-page-header__heading { gap: .68rem; margin-top: 1.15rem; }
    .staff-mobile-page-header__icon { width: 2.75rem; height: 2.75rem; flex-basis: 2.75rem; }
    .staff-mobile-page-header__heading small { max-width: 16.5rem; }
    .staff-mobile-page-header__clock { min-width: 5.25rem; min-height: 2.35rem; padding-inline: .44rem; font-size: .58rem; }
    .staff-mobile-dashboard .staff-mobile-page-header { min-height: 13.75rem; padding-bottom: 4.6rem; }
    .staff-performance.staff-dashboard-page .staff-mobile-page-header { min-height: 10.35rem; padding-bottom: 3.45rem; }
}

/* Shared header v3.3: notification is structural on every blue header. */
.staff-mobile-page-header__controls {
    position: absolute;
    z-index: 12;
    top: .72rem;
    right: .82rem;
    min-height: 2.5rem;
    justify-content: flex-end;
    gap: .38rem;
    margin: 0;
}
.staff-page-utility--performance .staff-performance__period--utility {
    width: auto;
    max-width: 8.8rem;
    min-height: 2.45rem;
    padding: .25rem .42rem .25rem .3rem;
    border-color: rgba(255, 255, 255, .28);
    background: rgba(255, 255, 255, .15);
    color: #fff;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .13);
    backdrop-filter: blur(.38rem);
}
.staff-page-utility--performance .staff-performance__period--utility > i:first-child {
    width: 1.75rem;
    height: 1.75rem;
    border-radius: .55rem;
    background: rgba(255, 255, 255, .16);
    color: #fff;
    font-size: .82rem;
}
.staff-page-utility--performance .staff-performance__period--utility small { display: none; }
.staff-page-utility--performance .staff-performance__period--utility strong {
    max-width: 5.6rem;
    overflow: hidden;
    color: #fff;
    font-size: .61rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.staff-page-utility--performance .staff-performance__period--utility .staff-performance__period-arrow { color: #fff; font-size: .82rem; }
.staff-has-navigation .staff-mobile-page-header__controls .staff-notification-action {
    width: 2.45rem;
    min-width: 2.45rem;
    min-height: 2.45rem;
    border-color: rgba(255, 255, 255, .28);
    background: rgba(255, 255, 255, .15);
    color: #fff;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .13);
    backdrop-filter: blur(.38rem);
}
.staff-has-navigation .staff-mobile-page-header__controls .staff-notification-action i { font-size: 1.05rem; }

@media (max-width: 390px) {
    .staff-mobile-page-header__controls { top: .66rem; right: .72rem; gap: .3rem; }
    .staff-page-utility--performance .staff-performance__period--utility { max-width: 7.9rem; min-height: 2.35rem; }
    .staff-page-utility--performance .staff-performance__period--utility strong { max-width: 4.9rem; font-size: .58rem; }
    .staff-has-navigation .staff-mobile-page-header__controls .staff-notification-action { width: 2.35rem; min-width: 2.35rem; min-height: 2.35rem; }
}

@media (max-width: 340px) {
    .staff-page-utility--performance .staff-performance__period--utility > i:first-child { display: none; }
    .staff-page-utility--performance .staff-performance__period--utility { max-width: 6.3rem; padding-left: .42rem; }
    .staff-page-utility--performance .staff-performance__period--utility strong { max-width: 4.7rem; }
}

/* Navigation resilience v3.6: keep tap feedback above legacy item transforms. */
.staff-bottom-nav .staff-bottom-nav__item.is-pressed,
.staff-bottom-nav .staff-bottom-nav__item.is-navigating { transform: scale(.94); }

/* Performance ranking v3.8: selected account plus global, mitra, team, and store scopes. */
.staff-performance-ranking-tabs {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: .2rem;
    margin-top: .85rem;
    padding: .24rem;
    border: 1px solid #dce8f9;
    border-radius: .85rem;
    background: #edf4ff;
}
.staff-performance-ranking-tabs button {
    min-width: 0;
    min-height: 2.35rem;
    padding: .35rem .25rem;
    border: 0;
    border-radius: .66rem;
    background: transparent;
    color: #647895;
    font-size: .61rem;
    font-weight: 780;
    line-height: 1.15;
    touch-action: manipulation;
}
.staff-performance-ranking-tabs button.is-active {
    background: #1265df;
    color: #fff;
    box-shadow: 0 .3rem .75rem rgba(18, 101, 223, .2);
}
.staff-performance-ranking-tabs button:disabled { cursor: not-allowed; opacity: .42; }
.staff-performance-ranking-tabs button:focus-visible { outline: 2px solid #0f55bd; outline-offset: 2px; }
.staff-performance-leaderboard [data-performance-ranking-caption] { margin: .55rem .1rem .65rem; }
.staff-performance-ranking-selected {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: .62rem;
    min-width: 0;
    margin-bottom: .7rem;
    padding: .72rem;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 1rem;
    background:
        radial-gradient(circle at 100% 0, rgba(255, 255, 255, .2), transparent 38%),
        linear-gradient(135deg, #0878ef, #1457d4);
    color: #fff;
    box-shadow: 0 .55rem 1.25rem rgba(20, 87, 190, .2);
}
.staff-performance-ranking-selected > p { grid-column: 1 / -1; margin: 0; color: rgba(255, 255, 255, .8); font-size: .68rem; text-align: center; }
.staff-performance-ranking-selected__avatar {
    position: relative;
    display: grid;
    width: 3rem;
    height: 3rem;
    overflow: hidden;
    place-items: center;
    border: 2px solid rgba(255, 255, 255, .82);
    border-radius: 50%;
    background: #eaf2ff;
    color: #174f9e;
    box-shadow: 0 .3rem .8rem rgba(4, 44, 115, .25);
}
.staff-performance-ranking-selected__avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.staff-performance-ranking-selected__avatar i,
.staff-performance-leaderboard-row__avatar i { font-size: 1.05rem; }
.staff-performance-ranking-selected__identity { display: grid; min-width: 0; gap: .08rem; }
.staff-performance-ranking-selected__identity small { color: rgba(255, 255, 255, .72); font-size: .55rem; font-weight: 720; }
.staff-performance-ranking-selected__identity strong,
.staff-performance-ranking-selected__identity span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.staff-performance-ranking-selected__identity strong { font-size: .75rem; font-weight: 850; }
.staff-performance-ranking-selected__identity span { color: rgba(255, 255, 255, .75); font-size: .56rem; }
.staff-performance-ranking-selected__summary { display: grid; min-width: 4.3rem; justify-items: end; gap: .08rem; text-align: right; }
.staff-performance-ranking-selected__summary strong { font-size: 1.18rem; font-weight: 900; line-height: 1; }
.staff-performance-ranking-selected__summary span { max-width: 5.7rem; overflow: hidden; color: rgba(255, 255, 255, .78); font-size: .55rem; font-weight: 720; text-overflow: ellipsis; white-space: nowrap; }
.staff-performance-leaderboard-row.is-current { border: 1px solid #b9d4fb; background: #edf5ff; box-shadow: inset .18rem 0 #1265df; }

@media (max-width: 340px) {
    .staff-performance-ranking-tabs button { min-height: 2.2rem; font-size: .54rem; }
    .staff-performance-ranking-selected { gap: .45rem; padding: .62rem .55rem; }
    .staff-performance-ranking-selected__avatar { width: 2.55rem; height: 2.55rem; }
    .staff-performance-ranking-selected__summary { min-width: 3.65rem; }
    .staff-performance-ranking-selected__summary strong { font-size: 1.02rem; }
    .staff-performance-ranking-selected__summary span { max-width: 4.5rem; font-size: .5rem; }
}

/* Performance KPI v4.2: match the four-card summary composition on Home. */
.staff-performance-kpis.staff-mobile-summary {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    min-height: 0;
    gap: .45rem;
    margin-top: .75rem;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}
.staff-performance-kpis .staff-performance-kpi.staff-mobile-metric-card {
    display: grid;
    min-width: 0;
    min-height: 6.25rem;
    align-content: center;
    justify-items: center;
    gap: 0;
    padding: .55rem .2rem;
    border: 1px solid #e2e8f0;
    border-radius: 1rem;
    background: #fff;
    box-shadow: 0 .25rem 1.1rem rgba(15, 23, 42, .045);
    text-align: center;
}
.staff-performance-kpis .staff-performance-kpi.staff-mobile-metric-card > i {
    order: initial;
    width: 2.25rem;
    height: 2.25rem;
    margin-bottom: .3rem;
    border-radius: 50%;
    background: var(--performance-soft);
    color: var(--performance-tone);
    box-shadow: none;
    font-size: 1.05rem;
}
.staff-performance-kpis .staff-performance-kpi.staff-mobile-metric-card span {
    order: initial;
    max-width: 100%;
    overflow: hidden;
    color: #68758a;
    font-size: .57rem;
    font-weight: 800;
    letter-spacing: .02em;
    text-overflow: ellipsis;
    text-transform: uppercase;
    white-space: nowrap;
}
.staff-performance-kpis .staff-performance-kpi.staff-mobile-metric-card strong {
    order: initial;
    max-width: 100%;
    overflow: hidden;
    color: #17233b;
    font-size: 1rem;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.staff-performance-section--admin-kpi .staff-performance-kpis.staff-mobile-summary {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (max-width: 390px) {
    .staff-performance-kpis.staff-mobile-summary { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .3rem; }
    .staff-performance-kpis .staff-performance-kpi.staff-mobile-metric-card { min-height: 5.85rem; }
}

@media (max-width: 320px) {
    .staff-performance-kpis .staff-performance-kpi.staff-mobile-metric-card { min-height: 5.55rem; padding-right: .1rem; padding-left: .1rem; }
    .staff-performance-kpis .staff-performance-kpi.staff-mobile-metric-card > i { width: 1.95rem; height: 1.95rem; font-size: .92rem; }
    .staff-performance-kpis .staff-performance-kpi.staff-mobile-metric-card span { font-size: .49rem; }
}

/* Attendance v5: focused mobile flow with a premium blue enterprise treatment. */
.staff-attendance--premium {
    --attendance-blue: #1265df;
    --attendance-blue-dark: #0b4fc1;
    --attendance-blue-soft: #eaf3ff;
    --attendance-cyan: #0ea5e9;
    --attendance-ink: #13213a;
    --attendance-muted: #68758a;
}
.staff-attendance--premium .staff-mobile-page-header {
    min-height: 12rem;
    margin-bottom: 0;
    padding-bottom: 3.2rem;
}
.staff-attendance__content {
    position: relative;
    z-index: 3;
    margin-top: -2.25rem;
}
.staff-attendance--premium .staff-status-card,
.staff-attendance--premium .staff-mode-card {
    border-color: #dce7f5;
    background: #fff;
    box-shadow: 0 .55rem 1.7rem rgba(22, 64, 122, .085);
}
.staff-attendance--premium .staff-status-card {
    position: relative;
    margin-bottom: 1.15rem;
    padding: 1rem;
    overflow: hidden;
    border-radius: 1.2rem;
}
.staff-attendance--premium .staff-status-card::before {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: .22rem;
    background: linear-gradient(90deg, var(--attendance-blue), #46b8ff);
    content: "";
}
.staff-attendance-status__topline,
.staff-attendance-status__main,
.staff-attendance-section-heading,
.staff-mode-card__topline,
.staff-late-card__heading {
    display: flex;
    align-items: center;
}
.staff-attendance-status__topline { justify-content: space-between; gap: .65rem; }
.staff-attendance-status__date {
    display: inline-flex;
    min-width: 0;
    align-items: center;
    gap: .38rem;
    color: #52627a;
    font-size: .68rem;
    font-weight: 750;
    line-height: 1.25;
}
.staff-attendance-status__date i { flex: 0 0 auto; color: var(--attendance-blue); font-size: .9rem; }
.staff-attendance-status__live {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: .28rem;
    padding: .26rem .48rem;
    border-radius: 999px;
    background: #ecfdf5;
    color: #07875b;
    font-size: .58rem;
    font-weight: 850;
    letter-spacing: .045em;
    text-transform: uppercase;
}
.staff-attendance-status__live i {
    width: .4rem;
    height: .4rem;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 0 .18rem rgba(16, 185, 129, .14);
}
.staff-attendance-status__main { gap: .78rem; margin-top: .85rem; }
.staff-attendance-status__main > div { min-width: 0; }
.staff-attendance-status__visual {
    display: grid;
    width: 3.15rem;
    height: 3.15rem;
    flex: 0 0 3.15rem;
    place-items: center;
    border: 1px solid #cfe1fb;
    border-radius: 1rem;
    background: linear-gradient(145deg, #f2f7ff, #dcecff);
    color: var(--attendance-blue);
    box-shadow: inset 0 1px 0 #fff;
    font-size: 1.55rem;
}
.staff-attendance--premium .staff-eyebrow { color: #7b8ba2; font-size: .59rem; letter-spacing: .09em; }
.staff-attendance--premium .staff-attendance__summary {
    margin: .12rem 0 0;
    color: var(--attendance-ink);
    font-size: clamp(.88rem, 3.7vw, 1rem);
    font-weight: 820;
    line-height: 1.35;
}
.staff-attendance-status__checks {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .38rem;
    margin-top: .9rem;
}
.staff-attendance-status__checks span {
    display: flex;
    min-width: 0;
    min-height: 2rem;
    align-items: center;
    justify-content: center;
    gap: .25rem;
    padding: .35rem .2rem;
    border: 1px solid #e0e9f5;
    border-radius: .65rem;
    background: #f8faff;
    color: #62728a;
    font-size: .58rem;
    font-weight: 760;
    white-space: nowrap;
}
.staff-attendance-status__checks i { color: var(--attendance-blue); font-size: .78rem; }
.staff-attendance--premium .staff-attendance__status {
    min-height: 0;
    margin: .7rem 0 0;
    padding: .56rem .65rem;
    border-radius: .65rem;
    background: #f5f8fc;
    color: #596a82;
    font-size: .72rem;
    line-height: 1.4;
}
.staff-attendance--premium .staff-attendance__status:empty { display: none; }
.staff-attendance__retry { display: inline-flex; align-items: center; gap: .3rem; margin-top: .65rem; }
.staff-location-check__button {
    display: inline-flex;
    width: 100%;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    gap: .45rem;
    margin-top: .72rem;
    padding: .65rem .85rem;
    border: 1px solid #cfe0f8;
    border-radius: .85rem;
    background: #f5f9ff;
    color: var(--attendance-blue-dark);
    font-size: .84rem;
    font-weight: 800;
}
.staff-location-check__button:disabled { cursor: wait; opacity: .72; }
.staff-location-check__button i { font-size: 1.05rem; }
.staff-location-check__result {
    display: flex;
    min-height: 2.5rem;
    align-items: center;
    gap: .45rem;
    margin: .45rem 0 .75rem;
    padding: .55rem .68rem;
    border: 1px solid #e1e8f2;
    border-radius: .72rem;
    background: #f7f9fc;
    color: #637187;
    font-size: .72rem;
    font-weight: 650;
    line-height: 1.4;
}
.staff-location-check__result::before {
    width: .55rem;
    height: .55rem;
    flex: 0 0 .55rem;
    border-radius: 50%;
    background: #94a3b8;
    content: "";
}
.staff-location-check__result[data-location-state="checking"] {
    border-color: #bfdbfe;
    background: #eff6ff;
    color: #1d4ed8;
}
.staff-location-check__result[data-location-state="checking"]::before { background: #3b82f6; }
.staff-location-check__result[data-location-state="inside"] {
    border-color: #a7f3d0;
    background: #ecfdf5;
    color: #047857;
}
.staff-location-check__result[data-location-state="inside"]::before { background: #10b981; }
.staff-location-check__result[data-location-state="outside"] {
    border-color: #fecaca;
    background: #fef2f2;
    color: #b91c1c;
}
.staff-location-check__result[data-location-state="outside"]::before { background: #ef4444; }
.staff-attendance-section-heading {
    justify-content: space-between;
    gap: .75rem;
    margin: 0 .15rem .7rem;
}
.staff-attendance-section-heading h2 {
    margin: .1rem 0 0;
    color: var(--attendance-ink);
    font-size: 1rem;
    font-weight: 850;
    letter-spacing: -.015em;
}
.staff-attendance-section-heading > span {
    flex: 0 0 auto;
    padding: .3rem .55rem;
    border: 1px solid #d9e8fc;
    border-radius: 999px;
    background: var(--attendance-blue-soft);
    color: var(--attendance-blue);
    font-size: .58rem;
    font-weight: 820;
}
.staff-attendance-modes { display: grid; grid-template-columns: minmax(0, 1fr); gap: .85rem; }
.staff-attendance--premium .staff-mode-card {
    position: relative;
    display: block;
    min-width: 0;
    margin: 0;
    padding: 1rem;
    overflow: hidden;
    border-radius: 1.15rem;
}
.staff-attendance--premium .staff-mode-card::after {
    position: absolute;
    top: -3.2rem;
    right: -3.2rem;
    width: 6.7rem;
    height: 6.7rem;
    border-radius: 50%;
    background: rgba(18, 101, 223, .035);
    content: "";
    pointer-events: none;
}
.staff-mode-card__topline { position: relative; z-index: 1; justify-content: space-between; gap: .75rem; }
.staff-attendance--premium .staff-mode-card__icon {
    display: grid;
    width: 2.8rem;
    height: 2.8rem;
    flex: 0 0 2.8rem;
    place-items: center;
    border: 1px solid #d0e2fb;
    border-radius: .86rem;
    background: var(--attendance-blue-soft);
    color: var(--attendance-blue);
    box-shadow: inset 0 1px 0 #fff;
    font-size: 1.3rem;
}
.staff-mode-card--field .staff-mode-card__icon {
    border-color: #ccecf9;
    background: #eafaff;
    color: #087fae;
}
.staff-mode-card__badge {
    padding: .27rem .5rem;
    border-radius: 999px;
    background: #f0f6ff;
    color: #2368bd;
    font-size: .56rem;
    font-weight: 820;
    letter-spacing: .035em;
    text-transform: uppercase;
}
.staff-mode-card--field .staff-mode-card__badge { background: #ecfbff; color: #087fae; }
.staff-attendance--premium .staff-mode-card__body { position: relative; z-index: 1; margin-top: .78rem; }
.staff-attendance--premium .staff-mode-card h2 {
    margin: 0;
    color: var(--attendance-ink);
    font-size: 1rem;
    font-weight: 850;
    letter-spacing: -.015em;
}
.staff-attendance--premium .staff-mode-card p {
    margin: .34rem 0 0;
    color: var(--attendance-muted);
    font-size: .72rem;
    line-height: 1.5;
}
.staff-mode-card__flow {
    display: flex;
    min-width: 0;
    align-items: center;
    justify-content: space-between;
    gap: .12rem;
    margin: .75rem 0;
    padding: .52rem .55rem;
    border-radius: .68rem;
    background: #f7f9fd;
    color: #6e7d93;
}
.staff-mode-card__flow span { min-width: 0; font-size: .54rem; font-weight: 750; white-space: nowrap; }
.staff-mode-card__flow i { flex: 0 0 auto; color: #9eb0c7; font-size: .75rem; }
.staff-attendance-action {
    display: inline-flex;
    min-height: 3rem !important;
    align-items: center;
    justify-content: center;
    gap: .42rem;
    border-radius: .78rem !important;
    font-size: .76rem;
    font-weight: 820;
}
.staff-attendance-action i { font-size: 1rem; }
.staff-attendance--premium button:disabled { cursor: not-allowed; box-shadow: none !important; opacity: .48; }
.staff-attendance--premium .staff-late-card { margin-top: .85rem; padding: 1rem; }
.staff-late-card__heading { position: relative; z-index: 1; gap: .7rem; }
.staff-late-card__heading h2 { margin-top: .08rem !important; }
.staff-late-card__label { display: block; color: #8a6b25; font-size: .54rem; font-weight: 820; letter-spacing: .045em; text-transform: uppercase; }
.staff-attendance--premium .staff-late-card .staff-mode-card__icon { border-color: #f7dfae; background: #fff8e8; color: #ca8012; }
.staff-attendance--premium .staff-late-card__intro { position: relative; z-index: 1; margin-top: .7rem; }
.staff-attendance--premium .staff-late-card .staff-mode-card__body { margin-top: .8rem; }
.staff-attendance--premium .staff-late-card form { gap: .72rem; margin-top: 0; }
.staff-attendance--premium .staff-request-field { gap: .32rem; }
.staff-attendance--premium .staff-request-field label { color: #34435b; font-size: .67rem; font-weight: 780; }
.staff-attendance--premium .staff-request-field .form-control {
    min-width: 0;
    min-height: 2.85rem;
    border-color: #dbe5f2;
    border-radius: .72rem;
    background-color: #fbfcfe;
    color: #24324a;
    font-size: .74rem;
    box-shadow: none;
}
.staff-attendance--premium .staff-request-field .form-control:focus {
    border-color: #7fb0f2;
    background: #fff;
    box-shadow: 0 0 0 .2rem rgba(18, 101, 223, .1);
}
.staff-attendance--premium .staff-late-card textarea.form-control { min-height: 5rem; }
.staff-attendance--premium .staff-late-card input[readonly] { background: #f3f6fa; }
.staff-attendance-file { position: relative; }
.staff-attendance-file > i {
    position: absolute;
    z-index: 2;
    top: 50%;
    left: .72rem;
    color: var(--attendance-blue);
    font-size: 1rem;
    pointer-events: none;
    transform: translateY(-50%);
}
.staff-attendance-file input { padding-top: .62rem; padding-left: 2.25rem; }
.staff-late-card__help {
    display: flex;
    align-items: flex-start;
    gap: .38rem;
    padding: .55rem .6rem;
    border: 1px solid #e0e9f5;
    border-radius: .65rem;
    background: #f6f9fe;
    line-height: 1.4;
}
.staff-late-card__help i { flex: 0 0 auto; color: var(--attendance-blue); font-size: .85rem; }
.staff-late-card__help span { min-width: 0; }
.staff-attendance-overlay__heading {
    display: flex;
    width: min(100%, 26rem);
    align-items: center;
    gap: .7rem;
    color: #fff;
}
.staff-attendance-overlay__heading > span {
    display: grid;
    width: 2.65rem;
    height: 2.65rem;
    flex: 0 0 2.65rem;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: .82rem;
    background: rgba(255, 255, 255, .12);
    font-size: 1.22rem;
}
.staff-attendance-overlay__heading div { display: grid; gap: .08rem; }
.staff-attendance-overlay__heading strong { font-size: .95rem; }
.staff-attendance-overlay__heading small { color: rgba(255, 255, 255, .68); font-size: .67rem; }
.staff-attendance--premium .staff-qr-scanner,
.staff-attendance--premium .staff-camera {
    background: rgba(3, 16, 42, .94);
    backdrop-filter: blur(.55rem);
}
.staff-attendance--premium .staff-qr-scanner__frame {
    border-color: rgba(255, 255, 255, .65);
    border-radius: 1.5rem;
    box-shadow: 0 1.25rem 3.5rem rgba(0, 0, 0, .42);
}
.staff-attendance--premium .staff-qr-scanner__frame span { border-color: #5bacff; }
.staff-attendance--premium .staff-qr-scanner__frame span::after { animation: staff-attendance-scan 2.2s ease-in-out infinite; }
.staff-attendance-overlay__cancel { display: inline-flex; min-height: 2.75rem; align-items: center; gap: .35rem; padding-inline: 1.15rem; border-radius: .75rem; }
.staff-attendance--premium .staff-camera { align-items: center; gap: .85rem; }
.staff-attendance--premium .staff-camera video,
.staff-attendance--premium .staff-camera img {
    width: min(100%, 26rem);
    max-height: min(62vh, 34rem);
    border: 1px solid rgba(255, 255, 255, .22);
    border-radius: 1.4rem;
    box-shadow: 0 1.25rem 3.5rem rgba(0, 0, 0, .42);
    aspect-ratio: 4 / 5;
}
.staff-attendance--premium .staff-camera__actions { margin-top: 0; }
.staff-attendance--premium .staff-camera__actions .btn { display: inline-flex; min-height: 2.75rem; align-items: center; gap: .35rem; border-radius: .75rem; font-size: .73rem; font-weight: 780; }
@keyframes staff-attendance-scan {
    0%, 100% { top: 14%; opacity: .65; }
    50% { top: 84%; opacity: 1; }
}

.staff-attendance-result {
    position: fixed;
    z-index: 1080;
    inset: 0;
    display: grid;
    place-items: center;
    padding: max(1rem, env(safe-area-inset-top)) 1rem max(1rem, env(safe-area-inset-bottom));
    background: rgba(3, 16, 42, .58);
    backdrop-filter: blur(.4rem);
}
.staff-attendance-result[hidden] { display: none; }
.staff-attendance-result__card {
    width: min(100%, 21rem);
    padding: 1.35rem;
    border: 1px solid #d8e6f8;
    border-radius: 1.35rem;
    background: #fff;
    box-shadow: 0 1.5rem 4rem rgba(4, 31, 75, .3);
    text-align: center;
}
.staff-attendance-result__icon {
    display: grid;
    width: 4.25rem;
    height: 4.25rem;
    margin: 0 auto .85rem;
    place-items: center;
    border-radius: 50%;
    background: #e8f8f1;
    color: #079664;
    font-size: 2.1rem;
    box-shadow: 0 0 0 .45rem rgba(7, 150, 100, .08);
}
.staff-attendance-result__card h2 { margin: .1rem 0 .4rem; color: #13213a; font-size: 1.2rem; font-weight: 850; }
.staff-attendance-result__card > p:not(.staff-eyebrow) { margin: 0 0 1rem; color: #68758a; font-size: .82rem; line-height: 1.5; }
.staff-attendance-result__card .btn { min-height: 3rem; border: 0; border-radius: .85rem; background: linear-gradient(135deg, #1680ff, #0753da); font-size: .82rem; font-weight: 800; }
.staff-attendance-result[data-result="failed"] .staff-attendance-result__icon { background: #fff0f0; color: #df3f49; box-shadow: 0 0 0 .45rem rgba(223, 63, 73, .08); }
.staff-attendance-result[data-result="failed"] .staff-attendance-result__card .btn { background: linear-gradient(135deg, #ef535c, #cf303d); }
body.staff-attendance-result-open { overflow: hidden; overscroll-behavior: none; }
.staff-qr-scanner.is-processing .staff-qr-scanner__frame { background: radial-gradient(circle at 50% 42%, #153a72, #06142b 68%); }
.staff-qr-scanner.is-processing .staff-qr-scanner__frame video { opacity: 0; }
.staff-qr-scanner.is-processing .staff-qr-scanner__frame span { display: grid; place-items: center; border-color: rgba(91, 172, 255, .58); }
.staff-qr-scanner.is-processing .staff-qr-scanner__frame span::after { display: none; }
.staff-qr-scanner.is-processing .staff-qr-scanner__frame span::before {
    width: 3rem;
    height: 3rem;
    border: .22rem solid rgba(255, 255, 255, .24);
    border-top-color: #fff;
    border-radius: 50%;
    animation: staff-attendance-verifying .8s linear infinite;
    content: "";
}
.staff-qr-scanner.is-processing [data-office-scanner-status] { color: #fff; font-weight: 750; }
.staff-qr-scanner.is-processing [data-office-scanner-cancel] { visibility: hidden; pointer-events: none; }
@keyframes staff-attendance-verifying { to { transform: rotate(360deg); } }

@media (min-width: 480px) {
    .staff-attendance-modes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .staff-attendance--premium .staff-mode-card { padding: 1.05rem; }
}

@media (max-width: 390px) {
    .staff-attendance--premium .staff-mobile-page-header { min-height: 11.6rem; padding-bottom: 3rem; }
    .staff-attendance__content { margin-top: -2.15rem; }
    .staff-attendance--premium .staff-status-card,
    .staff-attendance--premium .staff-mode-card { border-radius: 1rem; }
}

@media (max-width: 340px) {
    .staff-attendance-status__date { font-size: .62rem; }
    .staff-attendance-status__checks { gap: .24rem; }
    .staff-attendance-status__checks span { gap: .18rem; font-size: .53rem; }
    .staff-mode-card__flow { padding-right: .38rem; padding-left: .38rem; }
    .staff-mode-card__flow span { font-size: .5rem; }
}

@media (prefers-reduced-motion: reduce) {
    .staff-attendance--premium .staff-qr-scanner__frame span::after { animation: none; }
}

.staff-business-metrics { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .65rem; margin: .8rem 0; }
.staff-business-metrics article { min-width: 0; padding: .85rem; border: 1px solid rgba(91, 139, 210, .16); border-radius: 1rem; background: linear-gradient(145deg, rgba(255,255,255,.96), rgba(233,242,255,.78)); box-shadow: 0 .45rem 1.2rem rgba(36, 91, 160, .1); }
.staff-business-metrics i { display: grid; width: 2rem; height: 2rem; margin-bottom: .45rem; place-items: center; border-radius: .7rem; background: linear-gradient(135deg, #1677ee, #65b9ff); color: #fff; }
.staff-business-metrics span { display: block; color: #71809a; font-size: .72rem; font-weight: 700; }
.staff-business-metrics strong { display: block; overflow: hidden; margin-top: .18rem; color: #13213a; font-size: .9rem; text-overflow: ellipsis; white-space: nowrap; }
.staff-business-chart { padding: 1rem; border: 1px solid rgba(91, 139, 210, .16); border-radius: 1.1rem; background: rgba(255,255,255,.9); box-shadow: 0 .55rem 1.4rem rgba(36, 91, 160, .1); }
.staff-business-section-heading { display: flex; align-items: center; justify-content: space-between; }
.staff-business-section-heading h2 { margin: .12rem 0 0; color: #17243a; font-size: 1rem; font-weight: 850; }
.staff-business-section-heading > i { color: #1677ee; font-size: 1.35rem; }
.staff-business-chart__canvas { display: flex; align-items: end; gap: .3rem; height: 9rem; margin-top: 1rem; padding: .5rem .2rem 0; border-bottom: 1px solid #dfe8f4; }
.staff-business-chart__bar { display: flex; flex: 1; align-items: end; justify-content: center; gap: .12rem; min-width: .25rem; height: 100%; }
.staff-business-chart__bar span { display: block; width: 42%; min-height: 3px; border-radius: .35rem .35rem 0 0; }
.staff-business-chart__bar-omzet { background: linear-gradient(180deg, #56b9ff, #1677ee); }
.staff-business-chart__bar-profit { background: linear-gradient(180deg, #63dfa8, #12a86d); }
.staff-business-chart__empty { margin: .8rem 0 0; color: #7b899d; font-size: .78rem; text-align: center; }
@media (min-width: 480px) { .staff-business-metrics { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.staff-business-chart__legend { display: flex; align-items: center; gap: .3rem; margin-top: .35rem; color: #7b899d; font-size: .65rem; font-weight: 700; }
.staff-business-chart__legend span { display: inline-block; width: .5rem; height: .5rem; margin-left: .35rem; border-radius: 50%; }
.staff-business-chart__legend .is-current { background: #1677ee; }
.staff-business-chart__legend .is-previous { background: #aebed3; }
.staff-business-chart__bar span { width: 20%; }
.staff-business-chart__bar-omzet-previous { background: #a9d7f5; }
.staff-business-chart__bar-profit-previous { background: #a9d9c3; }
.staff-business-chart__switch { display: flex; gap: .25rem; padding: .2rem; border: 1px solid #dce7f5; border-radius: .7rem; background: #f3f7fc; }
.staff-business-chart__switch button { border: 0; border-radius: .5rem; padding: .35rem .55rem; background: transparent; color: #75849b; font-size: .65rem; font-weight: 800; }
.staff-business-chart__switch button.is-active { background: #1677ee; color: #fff; box-shadow: 0 .2rem .5rem rgba(22,119,238,.25); }
.staff-business-chart__canvas { width: 100%; height: 10rem; overflow: visible; }
.staff-business-chart__line { fill: none; stroke-linecap: round; stroke-linejoin: round; stroke-width: 5; }
.staff-business-chart__line--current { stroke: #1677ee; }
.staff-business-chart__line--previous { stroke: #aebed3; stroke-dasharray: 10 9; }
.staff-attendance-manager { display: grid; gap: .8rem; }
.staff-attendance-manager__hero { display: flex; align-items: center; justify-content: space-between; gap: .7rem; padding: 1rem; border-radius: 1.15rem; color: #fff; background: linear-gradient(135deg, #0d5ed7, #38a5ff); box-shadow: 0 .7rem 1.5rem rgba(19, 101, 218, .22); }
.staff-attendance-manager__hero h2 { margin: .1rem 0 .2rem; font-size: 1.2rem; font-weight: 850; }
.staff-attendance-manager__hero p:last-child { margin: 0; opacity: .82; font-size: .72rem; }
.staff-attendance-manager__hero .staff-eyebrow { color: rgba(255,255,255,.75); }
.staff-attendance-manager__filter { display: inline-flex; align-items: center; gap: .3rem; padding: .5rem .65rem; border: 1px solid rgba(255,255,255,.35); border-radius: .7rem; color: #fff; font-size: .68rem; font-weight: 800; text-decoration: none; white-space: nowrap; }
.staff-attendance-manager__metrics { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: .6rem; }
.staff-attendance-manager__metrics article { display: grid; grid-template-columns: 2rem 1fr; gap: .15rem .5rem; padding: .75rem; border: 1px solid #e1eaf5; border-radius: 1rem; background: rgba(255,255,255,.9); box-shadow: 0 .35rem 1rem rgba(46,88,139,.08); }
.staff-attendance-manager__metrics i { grid-row: span 2; display: grid; width: 2rem; height: 2rem; place-items: center; border-radius: .65rem; background: #e8f2ff; color: #1677ee; }
.staff-attendance-manager__metrics span { color: #74839a; font-size: .66rem; font-weight: 700; }
.staff-attendance-manager__metrics strong { color: #17243a; font-size: 1.05rem; }
.staff-attendance-manager__metrics .is-green i { background: #e8f9f0; color: #0b9b68; }
.staff-attendance-manager__metrics .is-orange i { background: #fff4df; color: #dc8a12; }
.staff-attendance-manager__metrics .is-red i { background: #ffebed; color: #d6404c; }
.staff-attendance-manager__panel { padding: 1rem; border: 1px solid #e1eaf5; border-radius: 1.1rem; background: rgba(255,255,255,.93); box-shadow: 0 .4rem 1.1rem rgba(46,88,139,.08); }
.staff-attendance-manager__panel > header { display: flex; align-items: start; justify-content: space-between; gap: .5rem; margin-bottom: .8rem; }
.staff-attendance-manager__panel h2 { margin: .1rem 0 0; color: #17243a; font-size: .95rem; font-weight: 850; }
.staff-attendance-manager__panel header a { color: #1677ee; font-size: .68rem; font-weight: 800; text-decoration: none; white-space: nowrap; }
.staff-attendance-manager__empty { display: grid; justify-items: center; gap: .25rem; padding: 1.25rem .6rem; color: #74839a; text-align: center; }
.staff-attendance-manager__empty i { margin-bottom: .2rem; color: #9bb2cc; font-size: 1.8rem; }
.staff-attendance-manager__empty strong { color: #43536b; font-size: .78rem; }
.staff-attendance-manager__empty span { font-size: .68rem; }
.staff-attendance-manager__empty--compact { padding: .75rem .4rem .25rem; }
.staff-attendance-manager__requests { display: grid; gap: .45rem; }
.staff-attendance-manager__requests article { display: flex; align-items: center; gap: .55rem; padding: .55rem; border: 1px solid #edf2f8; border-radius: .75rem; }
.staff-attendance-manager__requests article > div { min-width: 0; flex: 1; }
.staff-attendance-manager__requests strong, .staff-attendance-manager__requests small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.staff-attendance-manager__requests strong { color: #263850; font-size: .73rem; }
.staff-attendance-manager__requests small { color: #8794a7; font-size: .63rem; }
.staff-attendance-manager__requests article > i { color: #a4b2c3; }
.staff-attendance-manager__request-icon { display: grid; width: 1.8rem; height: 1.8rem; place-items: center; border-radius: .6rem; background: #fff4df; color: #dc8a12; }
.staff-attendance-action-bundle { margin-top: 1rem; padding: 1rem; border: 1px solid rgba(18,101,223,.14); border-radius: 1.25rem; background: linear-gradient(145deg,rgba(255,255,255,.98),rgba(239,246,255,.86)); box-shadow: 0 .65rem 1.6rem rgba(15,101,216,.1); }
.staff-attendance-action-bundle > header { margin-bottom: .75rem; }
.staff-attendance-action-bundle > header h2 { margin: .15rem 0 0; color: #17233b; font-size: 1.03rem; font-weight: 850; }
.staff-attendance-action-tiles { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: .65rem; margin: 0; }
.staff-attendance-action-tile { position: relative; display: flex; min-width: 0; min-height: 6.5rem; flex-direction: column; align-items: center; justify-content: center; gap: .55rem; padding: .7rem .35rem; border: 1px solid rgba(18,101,223,.14); border-radius: 1rem; background: rgba(255,255,255,.78); color: #17233b; box-shadow: 0 .25rem .8rem rgba(15,23,42,.05); text-align: center; text-decoration: none; font: inherit; cursor: pointer; transition: transform .16s ease,box-shadow .16s ease,border-color .16s ease; }
.staff-attendance-action-tile:hover,.staff-attendance-action-tile:focus-visible { border-color: rgba(18,101,223,.4); box-shadow: 0 .45rem 1rem rgba(15,101,216,.15); color: #0f65d8; transform: translateY(-1px); }
.staff-attendance-action-tile > i,.staff-attendance-request-menu > summary > i { display: grid; width: 2.55rem; height: 2.55rem; place-items: center; border-radius: .8rem; background: #eff6ff; color: #0f65d8; font-size: 1.3rem; }
.staff-attendance-action-tile--field > i { background: #ecfbff; color: #087fae; }
.staff-attendance-action-tile > span,.staff-attendance-request-menu > summary > span { max-width: 100%; color: #263850; font-size: .68rem; font-weight: 800; line-height: 1.15; }
.staff-attendance-request-menu { display: flex; }
.staff-attendance-request-menu > i { background: #fff4df; color: #dc8a12; }
.staff-attendance-history { margin-top: 1rem; overflow: hidden; border: 1px solid rgba(18,101,223,.14); border-radius: 1.25rem; background: #fff; box-shadow: 0 .65rem 1.6rem rgba(15,101,216,.08); }
.staff-attendance-history > header { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem; }
.staff-attendance-history > header h2 { margin: .15rem 0 0; color: #17233b; font-size: 1.03rem; font-weight: 850; }
.staff-attendance-history > header button { display: grid; width: 2.35rem; height: 2.35rem; flex: 0 0 auto; place-items: center; border: 1px solid #dce8f7; border-radius: .75rem; background: #f5f9ff; color: #0f65d8; cursor: pointer; }
.staff-attendance-history > header button:disabled { cursor: wait; opacity: .7; }
.staff-attendance-history > header button[aria-busy="true"] i { animation: staff-attendance-history-spin .8s linear infinite; }
.staff-attendance-history__columns,.staff-attendance-history__row { display: grid; grid-template-columns: minmax(0,1.45fr) minmax(3.6rem,.65fr) minmax(3.6rem,.65fr); align-items: center; gap: .55rem; }
.staff-attendance-history__columns { padding: .55rem 1rem; border-top: 1px solid #edf2f7; border-bottom: 1px solid #edf2f7; background: #f8fbff; color: #8290a4; font-size: .64rem; font-weight: 800; letter-spacing: .035em; text-transform: uppercase; }
.staff-attendance-history__columns span:not(:first-child),.staff-attendance-history__row strong { text-align: center; }
.staff-attendance-history__row { min-height: 3.35rem; padding: .65rem 1rem; border-bottom: 1px solid #edf2f7; }
.staff-attendance-history__row:last-child { border-bottom: 0; }
.staff-attendance-history__row time { min-width: 0; overflow: hidden; color: #263850; font-size: .72rem; font-weight: 760; text-overflow: ellipsis; white-space: nowrap; }
.staff-attendance-history__row strong { padding: .3rem .35rem; border-radius: .55rem; background: #f1f5f9; color: #94a3b8; font-size: .72rem; font-weight: 850; }
.staff-attendance-history__row strong.is-present { background: #eaf8ff; color: #087fae; }
.staff-attendance-history__row strong.is-complete { background: #ecfdf5; color: #16835b; }
.staff-attendance-history__state { margin: 0; padding: 1rem; color: #718096; font-size: .74rem; text-align: center; }
.staff-attendance-history__state.is-error { color: #c2413a; }
@keyframes staff-attendance-history-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .staff-attendance-history > header button[aria-busy="true"] i { animation: none; } }
@media (max-width: 350px) { .staff-attendance-action-bundle { padding: .75rem; } .staff-attendance-action-tiles { gap: .4rem; } .staff-attendance-action-tile { min-height: 5.9rem; } .staff-attendance-action-tile > i,.staff-attendance-request-menu > summary > i { width: 2.2rem; height: 2.2rem; font-size: 1.1rem; } .staff-attendance-action-tile > span,.staff-attendance-request-menu > summary > span { font-size: .61rem; } }
@media (max-width: 380px) { .staff-request-options { grid-template-columns: 1fr; } }
@media (min-width: 480px) { .staff-attendance-manager__metrics { grid-template-columns: repeat(4, minmax(0,1fr)); } }
