/* ShipCenter USA — WMS design system
 *
 * Tokens follow the "Ship Center USA" design system: one brand blue carries
 * the interface (buttons, active nav, links), status colours live only on
 * badges and dots, everything else is white, light grey and hairlines.
 * No gradients, no shadows at rest, no emoji in the shell.
 */
:root{
  /* grounds */
  --bg:#f7f8fd; --surface:#fff; --surface-2:#f4f5fc; --surface-3:#e9ebf5;
  /* text */
  --ink:#14162e; --ink-2:#3b4160; --ink-3:#5c6482; --placeholder:#8a90b0;
  /* lines */
  --line:#e2e5f0; --line-2:#cdd3e8;
  /* brand */
  --brand:#2e3192; --brand-2:#242678; --brand-500:#454ac4; --brand-300:#9fa5ff;
  --brand-100:#e8e9f7; --brand-50:#f4f5fc; --brand-ink:#e8e9f7; --on-brand:#fff;
  --accent:#f5b301;
  /* status: fills (16px+) and inks (text) on soft grounds */
  --ok:#0f9d58;  --ok-ink:#0b7a44;  --ok-bg:#dff5e8;
  --warn:#e6a01c; --warn-ink:#8a5a12; --warn-bg:#fff3d6;
  --err:#d14343;  --err-ink:#b22e2e; --err-bg:#fce1e1;
  --info:#454ac4; --info-bg:#e8e9f7;
  --focus:#454ac4;
  /* overlays & surfaces that are not simply white */
  --overlay:rgba(20,22,64,.7); --scrim:rgba(20,22,64,.46);
  --toast-bg:#14162e; --toast-ink:#fff;
  --warn-line:#f1dfae; --chip-shadow:0 1px 2px rgba(20,22,64,.06);
  color-scheme:light;
  /* shape */
  --radius:16px; --radius-md:12px; --radius-sm:10px; --radius-pill:999px;
  --shadow:none;
  --shadow-md:0 8px 24px rgba(20,22,64,.07);
  --shadow-lg:0 26px 60px rgba(20,22,64,.16);
  --sidebar:248px;
  --font-sans:"Assistant","Inter",-apple-system,BlinkMacSystemFont,"Segoe UI","Heebo",Arial,sans-serif;
  --font-latin:"Inter",-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;
  --font-mono:ui-monospace,"SF Mono",Menlo,Consolas,"Liberation Mono",monospace;
}

/* ── night ──
 * Same tokens, darker grounds. Brand moves up two steps so links and the
 * active nav still clear 4.5:1 on the dark surface; a filled brand button
 * therefore carries dark text. Status fills keep their hue, their inks
 * lighten, their soft grounds turn into tints.
 */
html[data-theme="dark"]{
  --bg:#0f1117; --surface:#171a24; --surface-2:#1e2231; --surface-3:#272c3d;
  --ink:#eef0f8; --ink-2:#c4c9dd; --ink-3:#9097b4; --placeholder:#6e7593;
  --line:#2a2f41; --line-2:#3b415a;
  --brand:#8f94ff; --brand-2:#a7abff; --brand-500:#7378f0; --brand-300:#4d52b8;
  --brand-100:#272b55; --brand-50:#1c1f34; --brand-ink:#272b55; --on-brand:#0f1117;
  --accent:#f5b301;
  --ok:#2fbf74;  --ok-ink:#6fdc9f;  --ok-bg:#15351f;
  --warn:#f0b53b; --warn-ink:#f5c96a; --warn-bg:#3a2d10;
  --err:#e05a5a;  --err-ink:#ff8e8e; --err-bg:#3f1c1c;
  --info:#a7abff; --info-bg:#272b55;
  --focus:#8f94ff;
  --overlay:rgba(0,0,0,.66); --scrim:rgba(0,0,0,.5);
  --toast-bg:#2a2f41; --toast-ink:#eef0f8;
  --warn-line:#5a4414; --chip-shadow:0 1px 2px rgba(0,0,0,.4);
  --shadow-md:0 8px 24px rgba(0,0,0,.35);
  --shadow-lg:0 26px 60px rgba(0,0,0,.55);
  color-scheme:dark;
}
/* The logo is a JPEG on white; at night it sits on its own white tile. */
html[data-theme="dark"] .sidebar .brand img,
html[data-theme="dark"] .ptop .logo img,
html[data-theme="dark"] .head img{background:#fff;border-radius:12px;padding:8px 12px}
*{box-sizing:border-box}
html,body{margin:0;padding:0}
body{
  font-family:var(--font-sans);
  background:var(--bg); color:var(--ink); font-size:15px; line-height:1.5;
  -webkit-font-smoothing:antialiased;
}
a{color:var(--brand);text-decoration:none}
a:hover{color:var(--brand-2)}
h1,h2,h3,h4{margin:0;font-weight:700;letter-spacing:-.01em}
h1{font-size:28px;line-height:1.25;font-weight:800} h2{font-size:17px;line-height:1.4} h3{font-size:15px}
:focus-visible{outline:2px solid var(--focus);outline-offset:2px}

/* ── layout ── */
.shell{display:flex;min-height:100vh}
.sidebar{
  width:var(--sidebar);flex:0 0 var(--sidebar);background:var(--surface);color:var(--ink-2);
  border-inline-end:1px solid var(--line);
  display:flex;flex-direction:column;position:sticky;top:0;height:100vh;overflow-y:auto;
}
.sidebar .brand{padding:24px 24px 16px}
.sidebar .brand a{display:block}
.sidebar .brand img{display:block;width:100%;max-width:200px;height:auto}
.sidebar .brand .t{font-family:var(--font-latin);font-size:15px;font-weight:700;color:var(--ink);letter-spacing:-.01em}
.sidebar .brand .s{font-size:12px;color:var(--ink-3);margin-top:2px}
.nav{padding:4px 16px 12px;flex:1}
.nav .group{font-size:12px;letter-spacing:.04em;color:var(--ink-3);padding:18px 12px 6px;font-weight:600}
.nav .group:first-child{padding-top:4px}
.nav a{
  display:flex;align-items:center;gap:12px;min-height:44px;padding:10px 12px;border-radius:var(--radius-sm);
  color:var(--ink-2);font-size:15px;margin-bottom:2px;cursor:pointer;
}
.nav a:hover{background:var(--surface-2);color:var(--ink)}
.nav a.active{background:var(--brand-100);color:var(--brand);font-weight:700}
.nav a .ic{width:20px;height:20px;display:inline-flex;align-items:center;justify-content:center;flex:0 0 20px;font-size:14px;line-height:1}
.nav a .ic svg{width:20px;height:20px;stroke:currentColor}
.nav a .badge{margin-inline-start:auto;background:var(--brand-100);color:var(--brand);border-radius:var(--radius-pill);padding:0 8px;font-size:12px;font-weight:700;line-height:20px;font-variant-numeric:tabular-nums}
.nav a.active .badge{background:var(--brand);color:var(--on-brand)}
.sidebar .foot{padding:14px 20px;border-top:1px solid var(--line);font-size:13px;display:grid;grid-template-columns:36px 1fr;column-gap:12px;align-items:center}
.sidebar .foot:before{content:attr(data-initials);grid-row:1/3;width:36px;height:36px;border-radius:var(--radius-pill);background:var(--brand-100);color:var(--brand);display:grid;place-items:center;font-family:var(--font-latin);font-weight:700;font-size:13px}
.sidebar .foot .u{color:var(--ink);font-weight:600;font-size:14px}
.sidebar .foot .r{color:var(--ink-3);font-size:12px}
.sidebar .foot a{color:var(--brand);font-size:13px;font-weight:600;display:inline-block;grid-column:2;margin-top:4px}

.main{flex:1;min-width:0;display:flex;flex-direction:column}
.topbar{
  background:var(--bg);padding:40px 40px 0;
  display:flex;align-items:flex-end;gap:14px;flex-wrap:wrap;
}
.topbar .titles{display:flex;flex-direction:column;gap:6px;min-width:0}
.topbar h1{font-size:34px;line-height:42px;font-weight:800;letter-spacing:-.01em}
.topbar .summary{margin:0;font-size:16px;line-height:24px;color:var(--ink-3)}
.topbar .sp{flex:1}
#topActions{gap:10px;flex-wrap:wrap}
#topActions .btn{height:44px;padding:0 22px}
#topActions .btn svg{width:18px;height:18px}
.content{padding:24px 40px 64px;max-width:1200px;width:100%;margin:0}

/* ── cards & tables ── */
.card{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);box-shadow:none;margin-bottom:16px;overflow:hidden}
.card>header{padding:16px 24px;border-bottom:1px solid var(--line);display:flex;align-items:center;gap:10px;background:var(--surface)}
.card>header h2,.card>header h3{flex:1}
.card .body{padding:20px 24px}
.card .body.flush{padding:0}

.grid{display:grid;gap:16px}
.grid.k2{grid-template-columns:repeat(2,1fr)}
.grid.k3{grid-template-columns:repeat(3,1fr)}
.grid.k4{grid-template-columns:repeat(4,1fr)}
.grid.k5{grid-template-columns:repeat(5,1fr)}
@media(max-width:1100px){.grid.k4,.grid.k5{grid-template-columns:repeat(2,1fr)}.grid.k3{grid-template-columns:1fr}}
@media(max-width:700px){.grid.k2,.grid.k4,.grid.k5{grid-template-columns:1fr}}

/* KPI tile: label, one big number, one helper line. No colour bar, no icon tile. */
.kpi{position:relative;background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);padding:24px;overflow:hidden;display:flex;flex-direction:column;gap:14px;color:var(--ink)}
a.kpi:hover{color:var(--ink)}
.kpi:before{content:none}
.kpi-head{display:flex;align-items:center;gap:10px}
.kpi-icon{display:none}
.kpi .l{font-size:14px;color:var(--ink-3);font-weight:600}
.kpi .v{font-family:var(--font-latin);font-size:40px;font-weight:700;letter-spacing:-.03em;line-height:44px;font-variant-numeric:tabular-nums}
.kpi .d{font-size:14px;color:var(--ink-3)}
.kpi-link{display:none}
.kpi.clickable{cursor:pointer;transition:border-color .12s,background .12s}
.kpi.clickable:hover{border-color:var(--line-2);background:var(--brand-50)}
.kpi-blue,.kpi-red,.kpi-green,.kpi-violet,.kpi-amber,.kpi-slate{--kpi-color:var(--brand)}

/* dashboard */
.dash-greet{display:flex;align-items:flex-end;justify-content:space-between;gap:24px;flex-wrap:wrap;margin:-8px 0 24px}
.dash-greet .date{font-size:15px;color:var(--ink-3)}
.dash-greet h2{font-size:34px;line-height:42px;font-weight:800;letter-spacing:-.01em;margin-top:6px}
.dash-greet p{margin:8px 0 0;font-size:17px;line-height:26px;color:var(--ink-2)}
.quick-actions{display:flex;gap:12px;flex-wrap:wrap}
.btn.quick{height:44px;padding:0 20px;font-size:15px}
.dashboard-kpis{margin-bottom:16px}
.dash-row{display:flex;gap:16px;flex-wrap:wrap;align-items:stretch;margin-bottom:16px}
.dash-row>.card{margin-bottom:0}
.dash-row>.card.wide{flex:2 1 460px;min-width:0}
.dash-row>.card.side{flex:1 1 300px;min-width:0}
.attn{list-style:none;margin:0;padding:0 24px 8px}
.attn li{border-top:1px solid var(--line)}
.attn li:first-child{border-top:none}
.attn a{display:flex;align-items:center;gap:14px;min-height:60px;padding:12px 0;color:var(--ink)}
.attn a:hover .t{color:var(--brand)}
.attn .dot{width:10px;height:10px;border-radius:var(--radius-pill);flex:0 0 10px;background:var(--brand-500)}
.attn .dot.warn{background:var(--warn)} .attn .dot.err{background:var(--err)} .attn .dot.ok{background:var(--ok)}
.attn .t{font-size:15px;font-weight:600;line-height:20px}
.attn .s{font-size:13px;line-height:18px;color:var(--ink-3)}
.attn .txt{display:flex;flex-direction:column;gap:2px;min-width:0;flex:1}
.attn .chev{flex:0 0 18px;color:var(--placeholder)}
.chart-meta{font-size:14px;color:var(--ink-3);font-variant-numeric:tabular-nums}
.chart-axis{display:flex;justify-content:space-between;font-family:var(--font-latin);font-size:12px;color:var(--ink-3);font-variant-numeric:tabular-nums;margin-top:10px}
/* legacy hero kept harmless: the dashboard no longer renders it */
.dashboard-hero{display:none}

table{width:100%;border-collapse:collapse;font-size:15px}
th{
  text-align:start;font-weight:600;color:var(--ink-2);font-size:12px;letter-spacing:.04em;
  padding:12px 16px;border-bottom:1px solid var(--line);background:var(--brand-50);
  position:sticky;top:0;white-space:nowrap;
}
th:first-child,td:first-child{padding-inline-start:20px}
th:last-child,td:last-child{padding-inline-end:20px}
td{padding:14px 16px;border-bottom:1px solid var(--line);vertical-align:middle}
tbody tr:last-child td{border-bottom:none}
tbody tr:hover{background:var(--brand-50)}
tr.row-link{cursor:pointer}
.num{font-variant-numeric:tabular-nums;font-feature-settings:"tnum"}
.mono{font-family:var(--font-mono);font-size:13px;font-weight:500}
.tbl-wrap{overflow:auto;max-height:70vh}
.col-min{width:1%;white-space:nowrap}
.col-check{width:1%;padding-inline-end:0}
td.col-check input{display:block}
/* selection line on top of a table: a count, then the bulk actions */
.selbar{display:flex;align-items:center;gap:6px;padding:8px 12px 8px 20px;border-bottom:1px solid var(--line);font-size:14px;color:var(--ink-3)}
.selbar .n{font-weight:600;color:var(--ink-2);font-variant-numeric:tabular-nums}
.selbar .sp{flex:1}

/* ── controls ── */
.btn{
  display:inline-flex;align-items:center;gap:8px;border:1px solid var(--line);background:var(--surface);
  color:var(--ink);border-radius:var(--radius-pill);height:40px;padding:0 18px;font-size:15px;font-weight:600;
  cursor:pointer;font-family:inherit;white-space:nowrap;transition:background .12s,border-color .12s,color .12s;
}
.btn:hover{background:var(--surface-2);border-color:var(--line-2)}
.btn:disabled{opacity:.5;cursor:not-allowed}
.btn.primary{background:var(--brand);border-color:var(--brand);color:var(--on-brand);font-weight:700}
.btn.primary:hover{background:var(--brand-2);border-color:var(--brand-2)}
.btn.ok{background:var(--ok);border-color:var(--ok);color:#fff}
.btn.danger{background:var(--err);border-color:var(--err);color:#fff}
.btn.ghost{border-color:transparent;background:transparent}
.btn.sm{height:32px;padding:0 12px;font-size:14px}
.btn.lg{height:52px;padding:0 24px;font-size:16px}
.btn.block{display:flex;width:100%;justify-content:center}

input,select,textarea{
  font-family:inherit;font-size:15px;height:40px;padding:0 14px;border:1px solid var(--line);
  border-radius:var(--radius-sm);background:var(--surface);color:var(--ink);width:100%;
}
textarea{height:auto;padding:10px 14px}
input::placeholder,textarea::placeholder{color:var(--placeholder)}
input:hover,select:hover,textarea:hover{border-color:var(--line-2)}
input:focus,select:focus,textarea:focus{outline:2px solid var(--focus);outline-offset:0;border-color:var(--focus)}
input:disabled,select:disabled{background:var(--surface-3)}
input[type=checkbox],input[type=radio]{width:auto;height:auto;accent-color:var(--brand)}
label{display:block;font-size:13px;color:var(--ink-2);margin-bottom:6px;font-weight:600}
.field{margin-bottom:14px}
.row{display:flex;gap:12px;align-items:flex-end;flex-wrap:wrap}
.row>.field{flex:1;min-width:130px;margin-bottom:0}
.toolbar{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin-bottom:16px}
.toolbar input,.toolbar select{width:auto;min-width:180px;border-radius:var(--radius-pill)}
/* a labelled control inside the toolbar: "עותקים  [ 1 ]", same height as the rest */
.toolbar label.inline{display:inline-flex;align-items:center;gap:10px;margin:0;font-size:14px;font-weight:600;color:var(--ink-2)}
.toolbar label.inline select{min-width:140px}
.toolbar label.inline input[type=number]{min-width:0;width:76px;text-align:center}
.toolbar .sp{flex:1}

/* ── pills ── */
.pill{display:inline-flex;align-items:center;gap:6px;font-size:13px;font-weight:600;height:26px;padding:0 10px;border-radius:var(--radius-pill);white-space:nowrap}
.pill:before{content:"";width:6px;height:6px;border-radius:var(--radius-pill);background:currentColor;flex:0 0 6px}
.pill.mono:before{content:none}
.pill.gray{background:var(--surface-3);color:var(--ink-2)}
.pill.blue{background:var(--info-bg);color:var(--info)}
.pill.green{background:var(--ok-bg);color:var(--ok-ink)}
.pill.amber{background:var(--warn-bg);color:var(--warn-ink)}
.pill.red{background:var(--err-bg);color:var(--err-ink)}
.pill.brand{background:var(--brand-100);color:var(--brand)}

/* ── modal ── */
.modal-bg{position:fixed;inset:0;background:var(--overlay);display:flex;align-items:flex-start;justify-content:center;z-index:100;padding:36px 16px;overflow-y:auto}
.modal{background:var(--surface);border-radius:var(--radius);width:100%;max-width:720px;box-shadow:var(--shadow-lg);overflow:hidden}
.modal.wide{max-width:1000px}
.modal.narrow{max-width:460px}
.modal>header{padding:18px 24px;border-bottom:1px solid var(--line);display:flex;align-items:center;gap:10px;background:var(--surface)}
.modal>header h2{flex:1}
.modal .body{padding:24px;max-height:70vh;overflow-y:auto}
.modal>footer{padding:16px 24px;border-top:1px solid var(--line);display:flex;gap:10px;justify-content:flex-start;background:var(--surface)}
.x{background:none;border:none;font-size:22px;color:var(--ink-3);cursor:pointer;line-height:1;padding:0 4px;width:44px;height:44px;border-radius:var(--radius-pill)}
.x:hover{background:var(--surface-2);color:var(--ink)}

/* ── misc ── */
.empty{text-align:center;padding:48px 20px;color:var(--ink-3);font-size:15px}
.empty .ic{display:flex;justify-content:center;color:var(--brand-300);margin-bottom:12px}
.empty .ic svg{width:40px;height:40px}
.muted{color:var(--ink-3)}
.tiny{font-size:13px}
.right{text-align:end}
.nowrap{white-space:nowrap}
.hr{height:1px;background:var(--line);margin:16px 0}
.stack{display:flex;flex-direction:column;gap:2px}
.flexrow{display:flex;align-items:center;gap:8px}
.chip{background:var(--surface-2);border:1px solid var(--line);border-radius:var(--radius-pill);padding:4px 12px;font-size:13px;font-weight:600;color:var(--ink-2)}

#toasts{position:fixed;bottom:18px;inset-inline-start:18px;z-index:400;display:flex;flex-direction:column;gap:8px}
.toast{background:var(--toast-bg);color:var(--toast-ink);padding:12px 16px;border-radius:var(--radius-md);font-size:15px;box-shadow:var(--shadow-lg);max-width:420px;animation:tin .18s ease}
.toast.ok{background:var(--ok-ink);color:#0f1117} .toast.err{background:var(--err-ink);color:#0f1117}
html[data-theme="light"] .toast.ok,html:not([data-theme]) .toast.ok{color:#fff}
html[data-theme="light"] .toast.err,html:not([data-theme]) .toast.err{color:#fff}
@keyframes tin{from{opacity:0;transform:translateY(8px)}}

#loadbar{position:fixed;top:0;inset-inline-start:0;height:3px;background:var(--brand);width:0;z-index:500;transition:width .2s}

.sparkline{display:flex;align-items:flex-end;gap:6px;height:160px;border-bottom:1px solid var(--line)}
.sparkline i{flex:1;background:var(--brand-300);border-radius:4px 4px 0 0;min-height:3px;transition:.15s}
.sparkline i.recent{background:var(--brand)}
.sparkline i.zero{background:var(--line)}
.sparkline i:hover{filter:brightness(.92)}
@media(max-width:900px){.sidebar{width:var(--sidebar);flex-basis:var(--sidebar)}.topbar{padding:20px 20px 0}.topbar h1{font-size:28px;line-height:34px}.content{padding:16px 20px 48px}.dashboard-kpis{grid-template-columns:repeat(2,1fr)!important}.dash-greet h2{font-size:28px;line-height:34px}}
@media(max-width:620px){.content{padding:12px 16px 40px}.topbar{padding:16px 16px 0}.dashboard-kpis{grid-template-columns:1fr!important}}

/* ── navigation drawer ──
 * Below 900px the sidebar slides in over the content; the button that opens
 * it is always in the header.
 */
.menu-btn{
  display:none;align-items:center;justify-content:center;width:44px;height:44px;
  border:1px solid var(--line);border-radius:var(--radius-pill);background:var(--surface);font-size:19px;
  cursor:pointer;flex:0 0 auto;color:var(--ink);
}
.menu-btn:hover{background:var(--surface-2)}
.menu-btn:focus-visible{outline:2px solid var(--focus);outline-offset:2px}
.nav-backdrop{display:none}
@media(max-width:900px){
  .menu-btn{display:inline-flex}
  .sidebar{
    position:fixed;inset-block:0;inset-inline-start:0;z-index:60;
    width:min(86vw,290px);flex-basis:auto;height:100dvh;
    transform:translateX(100%);transition:transform .22s ease;
    box-shadow:var(--shadow-lg);
  }
  [dir=ltr] .sidebar{transform:translateX(-100%)}
  .sidebar.open{transform:none}
  .nav-backdrop[hidden]{display:none}
  .nav-backdrop{display:block;position:fixed;inset:0;z-index:55;background:var(--scrim)}
  /* The drawer is an overlay, so the page keeps the whole width underneath. */
  .main{width:100%}
}
@media(max-width:900px) and (prefers-reduced-motion:reduce){.sidebar{transition:none}}

/* Latin text inside an RTL page: let each run pick its own direction so
   "114 Main St" and tracking numbers don't get reordered. */
.mono,.ltr,.num{unicode-bidi:plaintext}
td .stack .tiny{unicode-bidi:plaintext}

/* ── employee administration ── */
.msg{font-size:14px;color:var(--err-ink);min-height:18px;margin-top:10px}
.warnLine{background:var(--warn-bg);border:1px solid var(--warn-line);color:var(--warn-ink);
  border-radius:var(--radius-md);padding:12px 14px;font-size:14px;line-height:1.6}
.btn.tiny{height:30px;padding:0 10px;font-size:13px}
/* A temporary PIN, shown once. Selectable so it can be read out, and emptied
   by the dialog when it closes. */
.pinOnce{
  font-family:var(--font-latin);font-size:30px;letter-spacing:.34em;text-align:center;padding:18px 10px;margin:14px 0;
  background:var(--brand-50);border:1px dashed var(--brand-300);border-radius:var(--radius-md);color:var(--brand);
  user-select:all;
}
table.plain{width:100%;border-collapse:collapse}
table.plain td{padding:5px 2px;font-size:14px}
table.plain td:first-child{color:var(--ink-3)}

/* ── activity log ── */
.toolbar.wrap{flex-wrap:wrap;gap:10px}
.toolbar.wrap .field{min-width:150px}
.diffTable td{vertical-align:top;padding:6px 8px;border-bottom:1px solid var(--line)}
.diffTable tr.changed td{background:var(--warn-bg)}
.diffTable tr.changed td:first-child{font-weight:650}
.detailBox{background:var(--surface-2);border:1px solid var(--line);border-radius:var(--radius-sm);
  padding:12px;font-size:13px;white-space:pre-wrap;word-break:break-word;max-height:280px;overflow:auto}

/* ── icons in controls ── */
.btn svg{width:18px;height:18px;flex:0 0 auto}
.btn.sm svg,.btn.tiny svg{width:16px;height:16px}
.btn.icon{padding:0;width:40px;justify-content:center}
.btn.sm.icon{width:32px}
.btn.tiny.icon{width:30px}
.menu-btn svg{width:20px;height:20px}
.card>header .btn{height:36px;padding:0 14px;font-size:14px}
.card>header .btn.sm{height:32px;padding:0 12px}
.card>header .btn.icon{width:36px;padding:0}

/* ── search field: a magnifier inside a pill ── */
.search{
  display:inline-flex;align-items:center;gap:10px;height:40px;padding:0 14px;margin:0;
  background:var(--surface);border:1px solid var(--line);border-radius:var(--radius-pill);
  color:var(--ink-3);min-width:260px;font-size:15px;font-weight:400;
}
.search:hover{border-color:var(--line-2)}
.search:focus-within{outline:2px solid var(--focus);outline-offset:0;border-color:var(--focus)}
.search svg{flex:0 0 18px;width:18px;height:18px}
.toolbar .search input,.search input{
  border:none;height:auto;padding:0;min-width:0;width:100%;flex:1;background:transparent;
  border-radius:0;color:var(--ink);font-size:15px;
}
.search input:focus{outline:none;border:none}

/* ── segmented filter: one pressed chip ── */
.seg{display:inline-flex;gap:4px;padding:4px;background:var(--surface-2);border-radius:var(--radius-pill);flex-wrap:wrap}
.seg button{
  height:34px;padding:0 14px;border-radius:var(--radius-pill);border:none;background:transparent;
  color:var(--ink-2);font:inherit;font-size:14px;font-weight:600;cursor:pointer;white-space:nowrap;
  display:inline-flex;align-items:center;gap:6px;
}
.seg button:hover{color:var(--ink)}
.seg button[aria-pressed=true]{background:var(--surface);color:var(--ink);font-weight:700;box-shadow:var(--chip-shadow)}
.seg button:focus-visible{outline:2px solid var(--focus);outline-offset:1px}
.seg .n{color:var(--ink-3);font-weight:600}
.toolbar .seg{margin-inline-end:4px}

/* ── product flags: words, not glyphs ── */
.flags{display:inline-flex;gap:4px;flex-wrap:wrap}
.flags .pill{height:22px;font-size:12px;padding:0 8px}

/* ── icon tile: a soft square behind a line icon ── */
.ic-tile{display:inline-flex;align-items:center;justify-content:center;width:44px;height:44px;border-radius:12px;background:var(--brand-100);color:var(--brand);flex:0 0 44px}
.ic-tile svg{width:22px;height:22px}
.ic-tile.lg{width:64px;height:64px;border-radius:18px;flex-basis:64px}
.ic-tile.lg svg{width:30px;height:30px}
@media(max-width:900px){#topActions{width:100%}#topActions .btn{height:40px;padding:0 16px}}
.ic-tile.sm{width:32px;height:32px;flex-basis:32px;border-radius:8px}
.ic-tile.sm svg{width:16px;height:16px}

/* ── platform picker in the connect-store wizard ── */
.plat{display:flex;flex-direction:column;align-items:center;gap:10px;padding:24px 16px;text-align:center}
.plat .ic-tile{margin-bottom:4px}
.plat b{font-size:16px;color:var(--ink)}
.plat .via{font-size:13px;color:var(--ink-3)}
.plat .via.warn{color:var(--warn-ink)}

/* ── preferences: language chips and the light/dark switch ── */
.prefs{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.seg.compact{padding:3px;gap:2px}
.seg.compact button{height:28px;padding:0 10px;font-size:13px;font-family:var(--font-latin)}
.seg.compact button[lang=he]{font-family:var(--font-sans)}
.seg.compact.icons button{width:32px;padding:0;justify-content:center}
.seg.compact.icons svg{width:16px;height:16px}
.sidebar .prefs{padding:12px 20px;border-top:1px solid var(--line)}
.ptop .prefs{gap:6px}
@media(max-width:700px){.ptop .prefs .seg.icons{display:none}}
/* preparation mode (public/js/preparation-mode.js): information, not an error — warm, calm, never red */
.shopify-notice{display:flex;align-items:flex-start;gap:12px;padding:12px 16px;margin:0 0 16px;border-radius:var(--radius-sm);font-size:15px;line-height:1.5;border:1px solid var(--line)}
.shopify-notice.ok{background:var(--ok-bg);color:var(--ok-ink);border-color:var(--ok)}
.shopify-notice.bad{background:var(--warn-bg);color:var(--warn-ink);border-color:var(--warn)}
.shopify-notice b{font-weight:700}.shopify-notice .sp{flex:1}
.shopify-notice button{background:none;border:0;color:inherit;font:inherit;cursor:pointer;text-decoration:underline}
.sc-steps{display:flex;gap:12px;margin:4px 0 16px;flex-wrap:wrap}
.sc-steps .st{flex:1 1 140px;display:flex;align-items:center;gap:10px;padding:10px 12px;border:1px solid var(--line);border-radius:var(--radius-sm);font-size:14px;font-weight:600}
.sc-steps .st .n{width:26px;height:26px;border-radius:50%;background:var(--brand);color:#fff;display:inline-flex;align-items:center;justify-content:center;font-size:13px;font-weight:700;flex:none}
.sc-perms{margin:6px 0 0;padding-inline-start:20px;line-height:1.8;font-size:14px}
.sc-hint{margin:6px 0 0;font-size:13px;color:var(--ink-3)}
.prep-banner{background:var(--warn-bg);border:1px solid var(--warn);border-inline-start:4px solid var(--warn);color:var(--warn-ink);padding:10px 16px;margin:0 0 12px;border-radius:var(--radius-sm);font-size:14px;line-height:1.5}

/* the ready-to-pick screen (public/js/pick-ready.js): a quiet client rail beside one table */
.pr-layout{display:flex;gap:16px;align-items:flex-start;flex-wrap:wrap}
.pr-layout>.card{flex:1 1 520px;min-width:0}
.pr-rail{flex:0 0 240px;display:flex;flex-direction:column;gap:6px;background:var(--surface);border:1px solid var(--line);border-radius:var(--radius-md);padding:10px}
.pr-rail-head{display:flex;align-items:center;justify-content:space-between;padding:2px 4px 6px;color:var(--ink)}
.pr-step{display:inline-flex;gap:4px}
.pr-client{display:flex;align-items:center;justify-content:space-between;gap:8px;width:100%;text-align:start;padding:10px 12px;border:1px solid transparent;border-radius:var(--radius-sm);background:var(--surface-2);cursor:pointer;font:inherit;color:var(--ink);min-height:44px}
.pr-client:hover{background:var(--brand-50)}
.pr-client.active{background:var(--brand-100);border-color:var(--brand);color:var(--brand);font-weight:700}
.pr-client:focus-visible{outline:2px solid var(--focus);outline-offset:1px}
@media(max-width:720px){.pr-rail{flex-basis:100%;flex-direction:row;flex-wrap:wrap}.pr-client{width:auto}}
/* allocation-state toggles, per-client orders/units, marked not-ready rows, loading / error / empty (public/js/pick-ready-view.js) */
.pr-toolbar{flex-wrap:wrap}
.pr-toggles{display:flex;gap:10px;flex-wrap:wrap;margin:0 0 16px}
.pr-toggle{display:flex;flex-direction:column;align-items:flex-start;gap:2px;min-width:168px;min-height:56px;padding:10px 16px;border:1px solid var(--line-2);border-radius:var(--radius-md);background:var(--surface);color:var(--ink);font:inherit;cursor:pointer;text-align:start}
.pr-toggle:hover{background:var(--brand-50)}
.pr-toggle:focus-visible{outline:2px solid var(--focus);outline-offset:2px}
.pr-toggle .pr-toggle-name{font-weight:700;font-size:15px}
.pr-toggle .pr-toggle-n{font-size:13px;color:var(--ink-3)}
.pr-toggle.on{background:var(--brand-100);border-color:var(--brand);box-shadow:inset 0 0 0 1px var(--brand)}
.pr-toggle.on .pr-toggle-name{color:var(--brand)}
.pr-toggle.on .pr-toggle-name::before{content:"\2713\00a0"}
.pr-client-name{flex:1;min-width:0;overflow-wrap:anywhere;line-height:1.3}
.pr-client-n{display:flex;flex-direction:column;align-items:flex-end;line-height:1.25}
.pr-client.active .pr-client-n .muted{color:inherit;opacity:.8}
.pr-note{display:flex;gap:10px;align-items:flex-start;margin:0 0 12px;padding:10px 16px;border:1px solid var(--warn-line);border-inline-start:4px solid var(--warn);border-radius:var(--radius-sm);background:var(--warn-bg);color:var(--warn-ink);font-size:14px;line-height:1.5}
.pr-note svg{flex:none;margin-top:2px}
.pr-lock{display:inline-flex;color:var(--ink-3)}
.pr-notready-text{color:var(--warn-ink);font-weight:700}
.pr-layout tr:has(.pr-lock) td{background:var(--surface-2)}
.pr-layout tr:has(.pr-lock) td:first-child{box-shadow:inset 4px 0 0 var(--warn)}
.pr-layout tr.row-link:focus-visible{outline:2px solid var(--focus);outline-offset:-2px}
.pr-loading{display:flex;align-items:center;justify-content:center;gap:12px;padding:56px 20px;color:var(--ink-3);font-size:15px}
.pr-spin{width:20px;height:20px;border-radius:50%;border:3px solid var(--line-2);border-top-color:var(--brand);animation:pr-spin .8s linear infinite}
@keyframes pr-spin{to{transform:rotate(360deg)}}
@media(prefers-reduced-motion:reduce){.pr-spin{animation:none}}
.pr-layout .card[aria-busy=true]{opacity:.7;transition:opacity .15s}
.pr-empty .btn,.pr-error .btn{margin-top:8px}
.pr-empty p,.pr-error p{margin:6px 0 0}
@media(max-width:1024px){.pr-rail{flex-basis:200px}.pr-toggle{min-width:150px}.pr-layout .tbl-wrap{overflow-x:auto}}
@media(max-width:900px){.pr-rail{flex-basis:100%;flex-direction:row;flex-wrap:wrap;align-items:stretch}.pr-rail-head{flex:0 0 100%}.pr-client{width:auto;flex:1 1 170px}}
@media(max-width:720px){.pr-toggle{flex:1 1 calc(50% - 10px);min-width:0}}

/* locations screen: search, filters, result count */
.toolbar .loc-count{font-size:14px;font-weight:600;color:var(--ink-2);white-space:nowrap}
.toolbar .btn[hidden],.loc-note[hidden]{display:none}
.loc-note{margin:-6px 0 12px}
tr.row-link:focus-visible{outline:2px solid var(--focus);outline-offset:-2px}
.empty .btn{margin-top:8px}
