/* SetsCheck V23.3 unified shell */
:root{--sc-shell-width:1120px;--sc-radius:18px;--sc-radius-sm:12px;--sc-gap:10px}
body{font-family:Inter,system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif!important}
.page,.app{max-width:var(--sc-shell-width)!important;margin-inline:auto!important}
.card,.category,.set-header,.complete-box,.hero,.receipt,.task,.load,.device,.pane{border-radius:var(--sc-radius)!important}
.btn,.field,.tab,.icon-btn,.logout-btn,.user-badge{border-radius:var(--sc-radius-sm)!important}
.top{align-items:center!important;min-height:54px;margin-top:2px!important}
.top h1,.brand h1{letter-spacing:-.015em}
/* Keep the persistent menu visible on every operational page. */
.sc-menu-btn{position:fixed;top:13px;left:13px;z-index:220;width:44px;height:44px;border:1px solid var(--line,var(--border,#dce3ec));border-radius:13px;background:var(--card,#fff);color:var(--text,#172033);box-shadow:var(--shadow,0 8px 30px rgba(30,55,90,.09));font-size:1.4rem;font-weight:950;display:grid;place-items:center;cursor:pointer}
html[dir="rtl"] .sc-menu-btn{left:auto;right:13px}
.sc-menu-overlay{position:fixed;inset:0;z-index:218;background:rgba(5,18,28,.48)}
.sc-menu-overlay.hidden{display:none!important}
.sc-drawer{position:fixed;top:0;bottom:0;left:0;width:min(340px,88vw);z-index:219;background:var(--card,#fff);color:var(--text,#172033);border-right:1px solid var(--line,var(--border,#dce3ec));box-shadow:18px 0 55px rgba(0,0,0,.2);padding:18px 14px 28px;overflow:auto;transform:translateX(-105%);transition:transform .18s ease}
.sc-drawer.open{transform:translateX(0)}
html[dir="rtl"] .sc-drawer{left:auto;right:0;border-right:0;border-left:1px solid var(--line,var(--border,#dce3ec));box-shadow:-18px 0 55px rgba(0,0,0,.2);transform:translateX(105%)}
html[dir="rtl"] .sc-drawer.open{transform:translateX(0)}
.sc-drawer-head{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:4px 4px 14px;border-bottom:1px solid var(--line,var(--border,#dce3ec));margin-bottom:10px}.sc-drawer-head b{font-size:1.05rem}.sc-drawer-close{border:0;background:transparent;color:inherit;font-size:1.6rem;cursor:pointer}.sc-drawer-nav{display:grid;gap:7px}.sc-drawer-nav a{display:block;text-decoration:none;border:1px solid var(--line,var(--border,#dce3ec));background:var(--card,#fff);color:inherit;border-radius:13px;padding:12px 13px;font-weight:900}.sc-drawer-nav a.active{border-color:var(--primary,#0b5cab);box-shadow:inset 3px 0 0 var(--primary,#0b5cab)}html[dir="rtl"] .sc-drawer-nav a.active{box-shadow:inset -3px 0 0 var(--primary,#0b5cab)}
.sc-account-bar{display:flex;justify-content:flex-end;align-items:center;gap:7px;min-height:44px;margin:0 0 8px;padding-inline-start:48px}.sc-account-name{font-size:.78rem;font-weight:850;max-width:190px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.sc-avatar{width:38px;height:38px;border-radius:50%;border:1px solid var(--line,var(--border,#dce3ec));background:linear-gradient(145deg,#d9f7ff,#62dfff 58%,#45a6e2);color:#071b2b;display:grid;place-items:center;overflow:hidden;font-size:.72rem;font-weight:950;cursor:pointer}.sc-avatar img{width:100%;height:100%;object-fit:cover;display:block}.sc-supervisor{display:inline-flex;align-items:center;color:#1e73d8;background:rgba(30,115,216,.10);border:1px solid rgba(30,115,216,.28);border-radius:999px;padding:4px 8px;font-size:.68rem;font-weight:950;white-space:nowrap;animation:scSupervisorPulse 1.15s ease-in-out infinite}.sc-incharge{display:inline-flex;align-items:center;color:#d00000;font-size:.68rem;font-weight:950;white-space:nowrap}@keyframes scSupervisorPulse{0%,100%{opacity:1;box-shadow:0 0 0 rgba(30,115,216,0)}50%{opacity:.35;box-shadow:0 0 14px rgba(30,115,216,.5)}}
/* Requested clean interface: remove explanatory copy below page/section headings and command helpers, but preserve operational metadata. */
.top .muted,.top .title h1 + p,.section-head .muted,.card>h1 + .muted,.card>h2 + .muted,.card>h3 + .muted,h1 + p,h2 + p,h3 + p,.drawer-nav small,.home-welcome p,.distribution>.muted,.assign-note,.schedule-lang-note{display:none!important}
/* Other sections are reached from the persistent menu; don't repeat page navigation across the top. */
.top .actions button[onclick*="location.href"],.top .toolbar button[onclick*="location.href"]{display:none!important}
/* Consistent spacing on smaller screens. */
@media(max-width:620px){.page,.app{padding-left:12px!important;padding-right:12px!important}.top{padding-inline-start:44px}.sc-account-bar{padding-inline-start:44px}.sc-account-name{max-width:130px}.sc-supervisor{font-size:.62rem;padding:4px 6px}}
@media(prefers-reduced-motion:reduce){.sc-supervisor{animation:none!important}}

.sc-user-identity{display:flex;flex-direction:column;gap:2px;justify-content:center;min-width:0}.sc-current-role{font-size:.7rem;color:var(--primary);font-weight:900}.sc-current-role.supervisor{color:#2687ed;animation:scSupervisorPulse 1.6s ease-in-out infinite}@keyframes scSupervisorPulse{50%{opacity:.55}}@media(prefers-reduced-motion:reduce){.sc-current-role.supervisor{animation:none}}

/* V24.1.2 — shared professional navigation (all modules) */
:root{--sc-nav-bg:var(--card,#fff);--sc-nav-fg:var(--text,#172033);--sc-nav-edge:var(--line,var(--border,#dce3ec));--sc-nav-muted:var(--muted,#6b7e93);--sc-nav-active:var(--primary,#1672c4)}
html[data-i18n-independent="schedule"]{--sc-nav-bg:#18212c;--sc-nav-fg:#f5f7fb;--sc-nav-edge:#374355;--sc-nav-muted:#a8b5c6;--sc-nav-active:#6aa9ff}
.sc-menu-btn,.main-menu-btn{top:14px!important;left:14px!important;right:auto!important;width:42px!important;height:42px!important;z-index:231!important;flex-shrink:0;line-height:1!important}
html[dir="rtl"] .sc-menu-btn,html[dir="rtl"] .main-menu-btn{left:auto!important;right:14px!important}
.sc-drawer,.main-drawer{z-index:230!important;background:var(--sc-nav-bg)!important;color:var(--sc-nav-fg)!important;border-color:var(--sc-nav-edge)!important;box-sizing:border-box!important;width:min(318px,88vw)!important;padding:18px 15px 22px!important}
.sc-menu-overlay,.main-menu-overlay{z-index:229!important}
.sc-drawer-head,.drawer-head{min-height:51px!important;border-bottom:1px solid var(--sc-nav-edge)!important;margin-bottom:14px!important;display:flex!important;gap:12px!important;align-items:center!important}
.sc-drawer-brand,.drawer-brand{font-size:1.14rem!important;font-weight:900!important;letter-spacing:-.015em!important;color:var(--sc-nav-fg)!important;text-decoration:none!important;min-width:0}
.sc-drawer-close,.drawer-close{min-width:36px!important;min-height:36px!important;border-radius:10px!important;background:transparent!important;color:var(--sc-nav-fg)!important}
.sc-drawer-close:hover,.drawer-close:hover{background:color-mix(in srgb,var(--sc-nav-active) 12%,transparent)!important}
.sc-drawer-nav,.drawer-nav{display:flex!important;flex-direction:column!important;gap:5px!important}
.sc-drawer-nav a,.drawer-nav button{box-sizing:border-box!important;width:100%!important;display:flex!important;align-items:center!important;min-height:44px!important;text-align:start!important;text-decoration:none!important;font:inherit!important;font-size:.9rem!important;font-weight:760!important;line-height:1.25!important;padding:11px 13px!important;background:transparent!important;color:var(--sc-nav-fg)!important;border:1px solid transparent!important;border-radius:11px!important;box-shadow:none!important;transition:background .12s ease,border-color .12s ease!important;cursor:pointer!important}
.sc-drawer-nav a:hover,.drawer-nav button:hover{background:color-mix(in srgb,var(--sc-nav-active) 11%,transparent)!important;border-color:var(--sc-nav-edge)!important}
.sc-drawer-nav a.active,.drawer-nav button.active{background:color-mix(in srgb,var(--sc-nav-active) 16%,var(--sc-nav-bg))!important;color:var(--sc-nav-fg)!important;border-color:color-mix(in srgb,var(--sc-nav-active) 40%,var(--sc-nav-edge))!important;box-shadow:inset 3px 0 0 var(--sc-nav-active)!important}
html[dir="rtl"] .sc-drawer-nav a.active,html[dir="rtl"] .drawer-nav button.active{box-shadow:inset -3px 0 0 var(--sc-nav-active)!important}
.sc-drawer-section,.drawer-section{margin:16px 11px 6px!important;color:var(--sc-nav-muted)!important;font-size:.67rem!important;font-weight:800!important;letter-spacing:.10em!important;text-transform:uppercase!important}
.sc-drawer-nav a:focus-visible,.drawer-nav button:focus-visible,.sc-menu-btn:focus-visible,.main-menu-btn:focus-visible{outline:3px solid var(--sc-nav-active)!important;outline-offset:2px!important}
/* Keep fixed menu away from the page title on narrow displays. */
.topbar{padding-inline-start:70px!important;min-width:0!important}
.topbar .brand{min-width:0!important}
.topbar .brand .brand-home,.topbar .brand h1{overflow-wrap:anywhere}
.page > .top,.app > .top,.page > header.top,.app > header.top{padding-inline-start:58px!important;min-width:0!important}
html[data-i18n-independent="schedule"] .app > .top{padding-inline-start:0!important}
@media(max-width:650px){.topbar{padding-inline-start:63px!important;gap:8px!important}.topbar .brand .brand-home{font-size:1.1rem!important}.page>.top,.app>.top,.page>header.top,.app>header.top{padding-inline-start:56px!important}}
@media(prefers-reduced-motion:reduce){.sc-drawer,.main-drawer,.sc-drawer-nav a,.drawer-nav button{transition:none!important}}
/* Drawer remains the topmost navigation surface while open, and the button adopts page theme. */
.sc-menu-btn,.main-menu-btn{background:var(--sc-nav-bg)!important;color:var(--sc-nav-fg)!important;border-color:var(--sc-nav-edge)!important}
body:has(.sc-drawer.open) .sc-menu-btn,body:has(.main-drawer.open) .main-menu-btn{visibility:hidden!important}


/* V24.1 stable mobile header patch: no horizontal overflow or wrapped brand. */
.topbar .brand{min-width:0}
.topbar .brand .brand-home{white-space:nowrap;max-width:100%;overflow:hidden;text-overflow:ellipsis;text-align:start}
.topbar .user-tools{min-width:0}
.topbar .user-tools .sc-user-identity{min-width:0;align-items:flex-start}
.topbar .user-tools .user-badge{max-width:100%;min-width:0;display:block;text-overflow:ellipsis;overflow:hidden;white-space:nowrap}
@media(max-width:680px){
 .app .topbar{display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:8px!important;padding-inline-start:54px!important;margin:4px 0 17px!important;align-items:start!important}
 .app .topbar>.brand{min-width:0}
 .app .topbar .brand-home{font-size:1.24rem;white-space:nowrap}
 .app .topbar>.user-tools{display:grid!important;grid-template-columns:38px minmax(0,1fr) auto auto!important;align-items:center!important;justify-content:stretch!important;flex-wrap:nowrap!important;gap:6px!important;width:100%}
 .app .topbar>.user-tools>.header-avatar{grid-column:1;grid-row:1}
 .app .topbar>.user-tools>.sc-user-identity{grid-column:2;grid-row:1}
 .app .topbar>.user-tools>.logout-btn{grid-column:3;grid-row:1;white-space:nowrap;padding:8px 6px}
 .app .topbar>.user-tools>.icon-btn{grid-column:4;grid-row:1;width:36px;height:38px}
 .app .topbar .user-badge{padding:5px 6px!important;font-size:.7rem!important}
 .app .topbar .supervisor-live,.app .topbar .incharge-live{font-size:.64rem;padding:3px 6px}
}
@media(max-width:360px){
 .app .topbar{padding-inline-start:50px!important}
 .app .topbar>.user-tools{gap:4px!important}
 .app .topbar>.user-tools>.logout-btn{font-size:.67rem!important}
}

/* V24.1.13 — one account control for every signed-in page. */
.sc-account-shell{position:fixed;inset-block-start:12px;inset-inline-end:12px;z-index:210;max-width:min(260px,calc(100vw - 90px));font-family:Inter,system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;direction:ltr}
html[dir="rtl"] .sc-account-shell{inset-inline-end:auto;right:70px;left:auto}
.sc-account-trigger{display:flex;flex-direction:row;align-items:center;gap:9px;min-height:46px;min-width:0;max-width:100%;padding:5px 8px 5px 12px;border:1px solid var(--sc-nav-edge,var(--border,#35445a));border-radius:15px;background:var(--sc-nav-bg,var(--card,#fff));color:var(--sc-nav-fg,var(--text,#172033));box-shadow:var(--shadow,0 8px 24px #0002);cursor:pointer;text-align:start}
.sc-account-trigger:hover,.sc-account-trigger[aria-expanded="true"]{border-color:var(--primary,#2d88df)}
.sc-account-trigger:focus-visible,.sc-account-popup button:focus-visible{outline:3px solid var(--primary,#55a7ff);outline-offset:2px}
.sc-account-copy{display:flex;flex-direction:column;justify-content:center;align-items:flex-start;min-width:0;flex:1;gap:2px}
.sc-account-display-name{display:block;max-width:168px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:.81rem;font-weight:850;line-height:1.2}
.sc-account-role{font-size:.68rem;line-height:1.3;font-weight:900;color:var(--muted,#687789);white-space:nowrap}
.sc-account-role.supervisor{color:#2f90ef}
.sc-account-role.incharge{color:#e16b4f}
.sc-account-role[hidden]{display:none!important}
.sc-account-picture{display:flex;align-items:center;justify-content:center;flex-shrink:0;width:36px;height:36px;border-radius:50%;overflow:hidden;background:linear-gradient(145deg,#d9f7ff,#62dfff 58%,#45a6e2);border:1px solid var(--sc-nav-edge,var(--border,#dce3ec));color:#092a3c;font-weight:850;font-size:.76rem}
.sc-account-picture img{width:100%;height:100%;object-fit:cover;display:block}
.sc-account-caret{width:13px;height:13px;flex-shrink:0;color:var(--sc-nav-muted,var(--muted,#8092aa))}
.sc-account-popup{position:absolute;top:calc(100% + 7px);right:0;min-width:200px;width:100%;max-width:min(275px,calc(100vw - 24px));padding:6px;border:1px solid var(--sc-nav-edge,var(--border,#334154));border-radius:15px;background:var(--sc-nav-bg,var(--card,#fff));color:var(--sc-nav-fg,var(--text,#172033));box-shadow:0 18px 50px #0004}
.sc-account-popup[hidden]{display:none!important}
.sc-account-popup button{display:flex;align-items:center;width:100%;text-align:start;min-height:44px;cursor:pointer;font-size:.84rem;font-weight:760;line-height:1.35;color:inherit;background:transparent;border:0;border-radius:10px;padding:10px 12px}
.sc-account-popup button:hover{background:color-mix(in srgb,var(--primary,#4ca6f6) 13%,transparent)}
.sc-account-popup [data-action="logout"]{border-top:1px solid var(--sc-nav-edge,var(--border,#334154));border-radius:0 0 9px 9px}
body.sc-account-enabled .app>.topbar>.user-tools{display:none!important}
body.sc-account-enabled #themeBtn{display:none!important}
/* Space for the persistent account control without blocking page actions. */
@media(min-width:681px){body.sc-account-enabled .app>.topbar{padding-right:270px!important;min-height:48px!important}body.sc-account-enabled .app>.top,body.sc-account-enabled .page>.top{margin-top:62px!important}}
@media(max-width:680px){
 .sc-account-shell{max-width:calc(100vw - 87px);inset-block-start:12px}
 .sc-account-display-name{max-width:130px}
 .sc-account-trigger{gap:6px;min-height:44px;padding:4px 7px}
 body.sc-account-enabled .app>.topbar{margin-top:75px!important;padding-right:0!important}
 body.sc-account-enabled .app>.top,body.sc-account-enabled .page>.top{margin-top:70px!important}
}
@media(max-width:340px){.sc-account-display-name{max-width:95px}.sc-account-picture{width:32px;height:32px}}
@media(prefers-reduced-motion:reduce){.sc-account-shell *{animation:none!important}}
/* Schedule defaults to a dark table but honors the shared appearance toggle. */
html[data-i18n-independent="schedule"][data-theme="light"]{--bg:#f4f7fb;--panel:#fff;--line:#ced8e5;--txt:#1c2b3f;--muted:#586c84;--sc-nav-bg:#fff;--sc-nav-fg:#1c2b3f;--sc-nav-edge:#ced8e5;--sc-nav-muted:#586c84;--sc-nav-active:#176cba}
html[data-i18n-independent="schedule"][data-theme="light"] .controls .btn,html[data-i18n-independent="schedule"][data-theme="light"] .control{background:#f3f7fd;color:#1c2b3f;border-color:#ced8e5}
html[data-i18n-independent="schedule"][data-theme="light"] .controls .btn.on{background:#2f7ef7;color:#fff}

/* V24.1.14 — Keep the mobile home brand in the same top row as the account.
   V24.1.13 reserved 75px above .topbar, unintentionally pushing SetsCheck down. */
@media (max-width:680px){
  body.sc-account-enabled .app > .topbar{
    display:flex!important;
    grid-template-columns:none!important;
    align-items:center!important;
    justify-content:flex-start!important;
    min-height:52px!important;
    margin:0 0 15px!important;
    padding:0 142px 0 54px!important;
    gap:0!important;
  }
  body.sc-account-enabled .app > .topbar > .brand{
    display:block!important;
    flex:0 1 auto!important;
    min-width:0!important;
    max-width:100%!important;
  }
  body.sc-account-enabled .app > .topbar .brand-home{
    display:block!important;
    font-size:clamp(.86rem,3.8vw,1.11rem)!important;
    line-height:1.2!important;
    letter-spacing:-.025em!important;
    white-space:nowrap!important;
    overflow:visible!important;
    text-overflow:clip!important;
  }
  body.sc-account-enabled .app > .topbar .brand p{
    font-size:.67rem!important;
    margin-top:3px!important;
  }
  .sc-account-shell{
    width:134px!important;
    max-width:calc(100vw - 87px)!important;
    inset-block-start:12px!important;
  }
  .sc-account-trigger{
    width:100%!important;
    gap:5px!important;
    padding:4px 6px!important;
  }
  .sc-account-display-name{max-width:75px!important;font-size:.72rem!important}
  .sc-account-role{font-size:.61rem!important}
  .sc-account-picture{width:30px!important;height:30px!important}
  .sc-account-caret{display:none!important}
  html[dir="rtl"] body.sc-account-enabled .app > .topbar{
    justify-content:flex-end!important;
    padding:0!important;
  }
  html[dir="rtl"] body.sc-account-enabled .app > .topbar > .brand{
    flex:0 1 auto!important;
    max-width:calc(100vw - 220px)!important;
  }
}
@media(max-width:360px){
  body.sc-account-enabled .app > .topbar{padding-right:125px!important}
  .sc-account-shell{width:117px!important}
  .sc-account-display-name{max-width:59px!important;font-size:.69rem!important}
  .sc-account-trigger{gap:3px!important;padding:4px!important}
}

/* SetsCheck PWA V24.1.15 — bilingual install, offline lock, and update UI */
.sc-pwa-install-nav{display:block;width:100%;text-align:start;border:0;background:transparent;color:inherit;padding:12px 18px;font:inherit;font-weight:750;cursor:pointer}
.sc-pwa-install-nav:focus-visible{outline:2px solid #4f9bf5;outline-offset:-2px}
.sc-pwa-sheet[hidden]{display:none!important}
.sc-pwa-sheet{position:fixed;inset:0;z-index:5000;background:rgba(9,24,43,.7);display:flex;justify-content:center;align-items:center;padding:18px}
.sc-pwa-dialog,.sc-pwa-offline-panel{position:relative;background:#fff;color:#14263b;border-radius:19px;padding:25px;max-width:400px;width:100%;box-shadow:0 18px 55px rgba(0,0,0,.28);line-height:1.7;direction:inherit}
.sc-pwa-dialog h3,.sc-pwa-offline-panel h2{margin:0 0 8px;font-size:1.14rem}
.sc-pwa-dialog p,.sc-pwa-offline-panel p{margin:0 0 16px;font-size:.9rem}
.sc-pwa-primary,.sc-pwa-update button{background:#0b5cab;color:white;border:0;border-radius:11px;padding:10px 15px;font-weight:800;font:inherit;cursor:pointer}
.sc-pwa-close{position:absolute;inset-inline-end:12px;top:8px;background:none;border:0;font-size:24px;color:#4b5e72;cursor:pointer}
.sc-pwa-update{position:fixed;z-index:4000;bottom:calc(14px + env(safe-area-inset-bottom));left:12px;right:12px;max-width:500px;margin:auto;display:flex;gap:10px;align-items:center;flex-wrap:wrap;border-radius:15px;padding:13px;background:#083456;color:#fff;box-shadow:0 10px 28px rgba(0,0,0,.27);font-size:.85rem}
.sc-pwa-update span{flex:1;min-width:160px}
.sc-pwa-update .sc-pwa-dismiss{background:transparent;font-size:22px;padding:2px 8px}
.sc-pwa-offline{position:fixed;inset:0;z-index:99999;background:rgba(8,18,31,.95);display:flex;justify-content:center;align-items:center;padding:20px}
.sc-pwa-offline-panel{text-align:center}

/* V24.1.24 — Unified visual system across operational modules.
   Shared only: no workflow forms, permissions or data processing changed. */
:root{
 --sc-shell-width:1120px;--sc-radius:17px;--sc-radius-sm:12px;
 --sc-type-scale:1rem;--sc-unified-accent:#0b5cab;
}
[data-theme="dark"]{--sc-unified-accent:#55a7ff}
:where(.page,.app){font-size:var(--sc-type-scale);}
:where(.page,.app) :is(.card,.intake-hero,.washer-workspace,.admin-section,.set-header,.supply-card,.receipt,.swap-requests,.modal-box){border-radius:17px}
:where(.page,.app) :is(.top h1,.title h1){font-size:1.32rem!important;line-height:1.25;font-weight:850;letter-spacing:-.015em}
:where(.page,.app) :is(.section-head h2,.section-title h2,.head h2,.admin-section h2){font-size:1rem;line-height:1.35}
:where(.page,.app) :is(.btn,.primary,.secondary,.field,.tab,.workspace-tab){font-family:inherit;border-radius:12px;}
:where(.page,.app) :is(.btn,.primary,.secondary,.workspace-tab){transition:filter .12s ease,background-color .12s ease}
:where(.page,.app) :is(.btn,.primary,.secondary,.workspace-tab):enabled:active{filter:brightness(.94)}
:where(.page,.app) :is(input,button,select,textarea):focus-visible{outline:3px solid color-mix(in srgb,var(--primary,#55a7ff) 50%,transparent);outline-offset:2px}
.sc-page-brand{position:relative;z-index:1;text-align:center;display:flex;justify-content:center;align-items:center;height:43px;margin:0 0 12px;padding-inline:60px}
.sc-page-brand a{display:inline-flex;align-items:center;justify-content:center;max-width:100%;min-width:0;text-decoration:none}
.sc-page-brand img{display:block;width:auto;height:38px;max-width:min(44vw,176px);object-fit:contain}
@media(max-width:620px){.sc-page-brand{height:36px;margin-bottom:12px;padding-inline:62px}.sc-page-brand img{height:32px;max-width:min(42vw,140px)}}

/* Keep the approved SC logo in the exact visual center even when account
   controls and the hamburger button occupy opposite screen edges. */
body.sc-account-enabled .app > .topbar{justify-content:center!important}
body.sc-account-enabled .app > .topbar > .brand{max-width:none!important}
html[data-theme="dark"] .brand-logo img,html[data-theme="dark"] .sc-page-brand img{filter:drop-shadow(0 1px 1px rgba(255,255,255,.28))}
@media(max-width:680px){
  body.sc-account-enabled .app > .topbar{justify-content:center!important;padding:0 54px!important;min-height:52px!important}
  html[dir="rtl"] body.sc-account-enabled .app > .topbar{justify-content:center!important;padding:0 54px!important}
  body.sc-account-enabled .app > .topbar > .brand{position:absolute!important;left:50%!important;transform:translateX(-50%)!important;flex:none!important;max-width:110px!important;min-width:0!important}
  body.sc-account-enabled .app > .topbar .brand-logo{display:flex!important;align-items:center;justify-content:center}
  body.sc-account-enabled .app > .topbar .brand-logo img{height:35px;max-width:85px}
}

/* Consistent global palette in modules; schedule retains independent shift colors. */
:root{
 --bg:#f4f7fb;--card:#fff;--text:#172033;--muted:#6c778b;
 --line:#dce3ec;--border:#dce3ec;--primary:#0b5cab;
 --shadow:0 8px 30px rgba(30,55,90,.09);
}
html[data-theme="dark"]{
 --bg:#0e1420;--card:#161f2d;--text:#edf4ff;--muted:#9eabc0;
 --line:#2d3b50;--border:#2d3b50;--primary:#55a7ff;
 --shadow:0 10px 28px rgba(0,0,0,.25);
}

/* V24.1.25: roster reuses the global saved appearance; never force daytime on navigation. */
html[data-i18n-independent="schedule"][data-theme="dark"]{--bg:#0e1420;--panel:#161f2d;--line:#2d3b50;--txt:#edf4ff;--muted:#9eabc0}
html[data-i18n-independent="schedule"][data-theme="light"]{--bg:#f4f7fb;--panel:#fff;--line:#dce3ec;--txt:#172033;--muted:#64748b}
html[data-i18n-independent="schedule"][data-theme="light"] :is(.box,.swap-requests,.note){color:var(--txt)}
html[data-i18n-independent="schedule"][data-theme="light"] .field :is(input,select,textarea){background:#fff;color:#172033;border-color:#dce3ec}
html[data-i18n-independent="schedule"][data-theme="light"] :is(.swapStatus,.info,.checkbox,.erow){background:#f4f7fb;color:#172033;border-color:#dce3ec}
html[data-i18n-independent="schedule"][data-theme="light"] .swapStatus .cell{color:#111}
html[data-i18n-independent="schedule"][data-theme="dark"] .controls .btn,html[data-i18n-independent="schedule"][data-theme="dark"] .control{background:#202a37;color:#fff}

/* V24.1.25: Receiving heading aligns with the inner cards in English and Arabic. */
body.sc-receiving-page .page > .top{padding-inline-start:0!important}
@media(max-width:650px){body.sc-receiving-page .page > .top{padding-inline-start:0!important}}


/* V24.1.26 — The same visual drawer on Home and every separate page. */
.sc-drawer-brand-logo{display:inline-flex!important;align-items:center!important;justify-content:center!important;padding:0!important;max-width:100%;min-height:32px;overflow:hidden}
.sc-drawer-brand-logo img{display:block!important;width:auto!important;height:28px!important;max-width:90px!important;object-fit:contain!important}
.sc-drawer-nav .sc-pwa-install-nav,.sc-drawer-nav .setscheck-lang-btn{
  box-sizing:border-box!important;width:100%!important;display:flex!important;align-items:center!important;
  min-height:44px!important;padding:11px 13px!important;margin:0!important;text-align:start!important;
  background:transparent!important;color:var(--sc-nav-fg)!important;border:1px solid transparent!important;
  border-radius:11px!important;box-shadow:none!important;font:inherit!important;font-size:.9rem!important;
  font-weight:760!important;line-height:1.25!important;cursor:pointer!important;
}
.sc-drawer-nav .sc-pwa-install-nav:hover,.sc-drawer-nav .setscheck-lang-btn:hover{
  background:color-mix(in srgb,var(--sc-nav-active) 11%,transparent)!important;
  border-color:var(--sc-nav-edge)!important;
}
.sc-drawer-nav .sc-pwa-install-nav:focus-visible,.sc-drawer-nav .setscheck-lang-btn:focus-visible{
  outline:3px solid var(--sc-nav-active)!important;outline-offset:2px!important;
}

/* V24.1.27 — Dispatch-consistent section headings, KPI panels and developer palette. */
:where(.page,.app) > :is(.top,header.top){
  padding-inline-start:0!important;
  min-height:38px!important;
  margin-top:0!important;
  margin-bottom:13px!important;
  align-items:center!important;
}
body.sc-account-enabled :where(.page,.app) > :is(.top,header.top){margin-top:0!important}
:where(.page,.app) > :is(.top,header.top) h1,.sc-module-title h1{
  margin:0!important;font-size:1.32rem!important;font-weight:850!important;line-height:1.25!important;
}
.sc-module-title{margin:0 0 13px;text-align:start}
.sc-page-brand{height:43px;margin:0 0 7px!important;padding-inline:60px}
.sc-page-brand img{height:38px;width:auto}
/* The home brand stays separate from section titles in every management view. */
.app.admin > .topbar{margin:0 0 7px!important}
.app.admin .sc-module-title{margin:0 0 12px}
/* Four KPIs share the Dispatch panel appearance (including My Work). */
:where(.page,.app) :is(.hero,.sc-summary-hero){
  background:linear-gradient(130deg,#09283f,#075c84)!important;
  color:#eef9ff!important;border:1px solid rgba(100,196,255,.12)!important;
  border-radius:18px!important;padding:17px!important;box-shadow:0 14px 38px #09344822!important;
}
:where(.page,.app) :is(.hero-grid,.stats,.summary-grid){
  display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px;margin-top:12px;
}
:where(.page,.app) :is(.hero-stat,.stat,.summary-card){
  min-width:0;border-radius:12px!important;background:#ffffff17!important;
  border:1px solid #ffffff24!important;padding:11px!important;color:#eef9ff!important;
}
:where(.page,.app) :is(.hero-stat b,.stat b,.stat strong,.summary-card b){
  display:block;font-size:1.45rem!important;line-height:1.3!important;font-weight:800;
}
:where(.page,.app) :is(.hero-stat span,.stat span,.stat small,.summary-card span){
  display:block;margin-top:3px;font-size:.7rem!important;color:#d4e7f1!important;
}
:where(.page,.app) :is(.hero h2,.sc-hero-label){font-size:1.05rem!important;font-weight:850;line-height:1.3;margin:0}
:where(.page,.app) .sc-summary-hero .summary-grid{margin-bottom:0}
@media(max-width:690px){
  :where(.page,.app) :is(.hero-grid,.stats,.summary-grid){grid-template-columns:repeat(2,minmax(0,1fr))}
  .sc-page-brand{height:38px;margin-bottom:9px!important}
  .sc-page-brand img{height:33px}
}
@media(max-width:360px){.sc-page-brand img{height:30px}}
/* Developer Mode uses its own permanent dark skin: shared light defaults must not
   turn its cards white while leaving labels in light text. */
html.sc-developer-page{
 --bg:#0b1020;--card:#141b2d;--card2:#1b2439;--text:#eef4ff;
 --muted:#a8b7ca;--line:#2e3a54;--border:#2e3a54;--red:#ff5a67;
 --amber:#ffbf5b;--green:#55d78c;--blue:#63b3ff;
 --shadow:0 14px 35px rgba(0,0,0,.28);--sc-nav-bg:#141b2d;
 --sc-nav-fg:#eef4ff;--sc-nav-edge:#2e3a54;--sc-nav-muted:#a8b7ca;
}
html.sc-developer-page body{background:linear-gradient(180deg,#090d18,#0f1727);color:var(--text)}
html.sc-developer-page :is(.card,.status,.field,.dialog .box){color:#eef4ff}
html.sc-developer-page .card{background:#141b2d!important;border-color:#2e3a54!important}
html.sc-developer-page .field,html.sc-developer-page .status{background:#0f1728!important;color:#eef4ff!important;border-color:#2e3a54!important}
html.sc-developer-page .btn{background:#1b2439;color:#eef4ff;border-color:#2e3a54}
html.sc-developer-page .btn.primary{background:#e73e52;border-color:#e73e52}
html.sc-developer-page .btn.good{background:#1f7a50;border-color:#1f7a50}
html.sc-developer-page .btn.warn{background:#835d18;border-color:#835d18}
html.sc-developer-page .btn.danger{background:#7c2632;border-color:#a83b48}
html.sc-developer-page .muted{color:#a8b7ca}
html.sc-developer-page .sc-page-brand img{filter:none}
/* Final specificity fix: old signed-in page rules forced a 62–70px top gap
   and a 56–58px title indent, even when the logo already has its own row. */
body .page > .top,body .app > .top,body .page > header.top,body .app > header.top,
body.sc-account-enabled .page > .top,body.sc-account-enabled .app > .top,
body.sc-account-enabled .page > header.top,body.sc-account-enabled .app > header.top{
  margin-top:0!important;padding-inline-start:0!important;
}
body .page > .top > :first-child,body .app > .top > :first-child{
  margin-inline-start:0!important;
}
body.sc-account-enabled .app.admin > .topbar{margin-top:0!important}

/* V24.1.28 — Keep the signed-in Home, Management and My Profile logos
   centered on desktop. Legacy right-side account spacing displaced the logo. */
@media (min-width:681px){
  body.sc-account-enabled .app > .topbar{padding-inline:52px!important}
}
