/* Color palette: near-identical shades consolidated into shared tokens. Name suffix is OKLab lightness (0-100). */
:root{
  --amber-80:#edb436;
  --blue-68:#9299a6;
  --gray-100:#fff;
  --gray-99:#fafafa;
  --gray-97:#f6f6f6;
  --gray-96:#f1f1f1;
  --gray-95:#ededed;
  --gray-90:#ddd;
  --gray-50:#626262;
  --gray-27:#272727;
  --gray-24:#202020;
  --gray-21:#181818;
  --green-65:#35a578;
  --green-55:#198754;
  --green-50:#21734c;
  --green-48:#1c6c57;
  --leaf-73:#a7a7a7;
  --leaf-50:#646464;
  --leaf-44:#525252;
  --olive-97:#f6f6f6;
  --olive-94:#ebebeb;
  --olive-92:#e6e6e6;
  --olive-90:#e0e0e0;
  --olive-86:#d1d1d1;
  --olive-82:#c5c5c5;
  --olive-76:#b1b1b1;
  --olive-74:#aaaaaa;
  --olive-71:#a3a3a3;
  --olive-68:#9a9a9a;
  --olive-67:#979797;
  --olive-65:#919191;
  --olive-64:#8c8c8c;
  --olive-63:#858b80;
  --olive-61:#838383;
  --olive-60:#7c8278;
  --olive-58:#7c7c7c;
  --olive-57:#73786f;
  --olive-55:#717171;
  --olive-52:#666c63;
  --olive-52b:#686868;
  --olive-50:#656565;
  --olive-47:#5c5c5c;
  --olive-40:#484848;
  --olive-36:#3f3f3f;
  --olive-34:#393939;
  --olive-31:#313131;
  --olive-30:#2f2f2f;
  --olive-28:#282828;
  --red-97:#fff0eb;
  --red-95:#fcebea;
  --red-53:#b13e48;
  --red-52:#b23b37;
  --red-50:#b42318;
  --yellow-99:#fffbee;
  --yellow-99b:#fffbe5;
  --yellow-97:#fff6d7;
  --yellow-88:#ead889;
  --yellow-87:#fece07;
  --yellow-77:#d2b324;
  --yellow-69:#b59b30;
  --yellow-67:#b09318;
  --yellow-55:#8a7000;
  --yellow-51:#7a6216;
  --yellow-47:#6e5910;
  /* Secondary text: at least 4.5:1 on white, paper and tinted surfaces. */
  --text-muted:#5d5d5d;
}

/* Semantic roles. Components reference these; the palette above stays the single source of raw values. */
:root{
  --surface:#fcfcfb;
  --surface-tint:#ffffff8c;
  --text:#121212;
  --text-muted:#4f4f4c;
  --border:#11111117;
  --accent:var(--yellow-87);
  --accent-ink:#121212;
  --success:#22735c;
  --warning:#85580a;
  --danger:#b1412a;
  --focus:#121212;
  --radius-s:10px;
  --radius-m:14px;
  --radius-l:22px;
  --control-font-size:13px;
}

/* Glass workspace scale, taken from the reference "mono" palette: black ink, white glass, grays for every
   series and tile. The brand yellow (--accent) is the only chromatic value, used for primary actions and the lead tile. */
:root{
  --fs-2xs:11px;--fs-xs:12px;--fs-sm:12.5px;--fs-md:13.5px;--fs-base:14px;--fs-lg:15px;--fs-xl:17px;--fs-2xl:20px;--fs-3xl:22px;--fs-4xl:26px;--fs-display:34px;
  --bg:#efefed;
  --glass:#ffffffa3;--glass-2:#ffffffc7;--glass-3:#fffffff0;--rim:#ffffffeb;
  --float:#fcfcfb;--surface-2:#ffffff8c;
  --well:#1111110f;--line:#11111117;--line-2:#1111112b;
  --shadow:0 1px 0 #fffc inset,0 22px 44px -30px #00000038;
  --shadow-lift:0 1px 2px #1111110d,0 14px 30px -16px #00000038;
  --shadow-pop:0 24px 60px -18px #00000057,0 2px 6px #00000014;
  --muted:#4f4f4c;--faint:#636360;
  --primary:#121212;--primary-2:#a3a39e;--primary-ink:#121212;--primary-soft:#e4e4e1;--on-primary:#fff;
  --pill:#121212;--on-pill:#f6f6f4;--ink-btn:#121212;--on-ink-btn:#f6f6f4;--dock:#121212;--on-dock:#f6f6f4;
  --sky:#121212;--mint:#fff;--coral:#d2d2cd;--lemon:var(--accent);--ocean:#121212;--on-ocean:#f6f6f4;--on-tile:#121212;
  --oc-1:#fff;--oc-2:#8e8e89;--oc-3:var(--accent);
  --c1:#121212;--c2:#b4b4af;--c3:#6a6a66;--c4:#8e8e89;--c5:#c8c8c3;
  --hatch:#00000029;--hatch-bg:#00000009;
  --heat-0:#e8e8e5;--heat-1:#d0d0cc;--heat-2:#a6a6a1;--heat-3:#696965;--heat-4:#121212;
  --up:#22735c;--up-soft:#d5eee4;--down:#b1412a;--down-soft:#f8e1da;--warn:#85580a;--warn-soft:#f5ead2;--sea:#1b6e78;--sea-soft:#d3ecee;
  --r-xs:8px;--r-sm:14px;--r:22px;--r-lg:28px;
  --ease:cubic-bezier(.2,.8,.2,1);--ease-out:cubic-bezier(.16,1,.3,1);
  --dock-x:20px;--dock-w:60px;--side-w:calc(var(--dock-x) + var(--dock-w));--gut:clamp(16px,1.6vw,28px);--app-max:2560px;--tabbar-h:0px;
}

/* Colour palettes from the reference (light). Mono is the default; the brand yellow stays the accent in every palette. */
:root[data-palette=pastel]{--bg:#e6ecef;--glass:#ffffff80;--glass-2:#ffffffa8;--glass-3:#ffffffdb;--rim:#ffffffd1;--float:#fbfcfd;--surface:#fbfcfd;--well:#14202a0f;--line:#14202a17;--line-2:#14202a29;--text:#14202a;--muted:#4c5a65;--faint:#5f6d78;--text-muted:#4c5a65;--primary:#2a6f9a;--primary-2:#8ec3ea;--primary-ink:#1d5578;--primary-soft:#d6e8f5;--pill:#14202a;--on-pill:#f3f7f8;--ink-btn:#14202a;--on-ink-btn:#f3f7f8;--dock:#14202a;--on-dock:#f3f7f8;--sky:#a9d2f1;--mint:#a7e1ca;--coral:#f6b4a3;--ocean:#1f4d6a;--oc-1:#a9d2f1;--oc-2:#a7e1ca;--oc-3:var(--accent);--c1:#2a6f9a;--c2:#8ec3ea;--c3:#2f9a7e;--c4:#df7659;--c5:#cf9426;--hatch:#2a6f9a38;--hatch-bg:#2a6f9a0d;--heat-0:#e3ebef;--heat-1:#cbe1f0;--heat-2:#98c5e5;--heat-3:#5a9bc8;--heat-4:#2a6f9a}
:root[data-palette=ocean]{--bg:#e4ebf0;--glass:#ffffff80;--glass-2:#ffffffa8;--glass-3:#ffffffdb;--rim:#ffffffd1;--float:#fbfcfd;--surface:#fbfcfd;--well:#14202a0f;--line:#14202a17;--line-2:#14202a29;--text:#14202a;--muted:#4c5a65;--faint:#5f6d78;--text-muted:#4c5a65;--primary:#2a6f9a;--primary-2:#8ec3ea;--primary-ink:#1d5578;--primary-soft:#d6e8f5;--pill:#14202a;--on-pill:#f3f7f8;--ink-btn:#14202a;--on-ink-btn:#f3f7f8;--dock:#14202a;--on-dock:#f3f7f8;--sky:#9fcbef;--mint:#9fdce0;--coral:#8fc6d6;--ocean:#173f5f;--oc-1:#9fcbef;--oc-2:#9fdce0;--oc-3:#fff;--c1:#2a6f9a;--c2:#8ec3ea;--c3:#2f9a7e;--c4:#df7659;--c5:#cf9426;--hatch:#2a6f9a38;--hatch-bg:#2a6f9a0d;--heat-0:#e3ebef;--heat-1:#cbe1f0;--heat-2:#98c5e5;--heat-3:#5a9bc8;--heat-4:#2a6f9a}
:root[data-palette=sage]{--bg:#e9ebe4;--glass:#ffffff80;--glass-2:#ffffffa8;--glass-3:#ffffffdb;--rim:#ffffffd1;--float:#fbfcfd;--surface:#fbfcfd;--well:#14202a0f;--line:#14202a17;--line-2:#14202a29;--text:#14202a;--muted:#4c5a65;--faint:#5f6d78;--text-muted:#4c5a65;--primary:#2f6b4f;--primary-2:#9ccdb2;--primary-ink:#245640;--primary-soft:#dcede3;--pill:#14202a;--on-pill:#f3f7f8;--ink-btn:#14202a;--on-ink-btn:#f3f7f8;--dock:#14202a;--on-dock:#f3f7f8;--sky:#bfe0c4;--mint:#a9dcc6;--coral:#e9c9a7;--ocean:#234a3a;--oc-1:#bfe0c4;--oc-2:#ece2a8;--oc-3:#fff;--c1:#2f6b4f;--c2:#9ccdb2;--c3:#5c9a3e;--c4:#d0864f;--c5:#c79a2a;--hatch:#2f6b4f38;--hatch-bg:#2f6b4f0d;--heat-0:#e5ebe3;--heat-1:#cfe5d6;--heat-2:#9fcbb0;--heat-3:#5f9e7c;--heat-4:#2f6b4f}

/* Dark theme (reference mono dark). The legacy palette is remapped so feature screens keep their contrast. */
:root[data-theme=dark]{color-scheme:dark;
  --bg:#0b0b0b;--glass:#ffffff0b;--glass-2:#ffffff14;--glass-3:#202020;--rim:#ffffff13;--float:#1a1a1a;--surface:#161616;--surface-2:#ffffff0f;--surface-tint:#ffffff14;
  --well:#ffffff11;--line:#ffffff16;--line-2:#ffffff29;--border:#ffffff16;
  --shadow:0 1px 0 #ffffff0d inset,0 24px 48px -30px #000c;--shadow-lift:0 1px 2px #0000004d,0 14px 32px -16px #000000bf;--shadow-pop:0 24px 60px -18px #000000b3,0 0 0 1px #ffffff14;
  --text:#ededeb;--muted:#a9a9a5;--faint:#8e8e8a;--text-muted:#a9a9a5;--focus:#ededeb;--accent-ink:#121212;
  --primary:#ededeb;--primary-2:#6c6c68;--primary-ink:#fff;--primary-soft:#ffffff1a;--on-primary:#111;
  --pill:#ededeb;--on-pill:#111;--ink-btn:#ededeb;--on-ink-btn:#111;--dock:#ffffff14;--on-dock:#ededeb;
  --sky:#f0f0ee;--mint:#d6d6d2;--coral:#ababa6;--ocean:#222;--on-ocean:#ededeb;--oc-1:#fff;--oc-2:#8e8e89;--oc-3:var(--accent);
  --c1:#ededeb;--c2:#6c6c68;--c3:#a9a9a5;--c4:#8e8e8a;--c5:#c4c4bf;--hatch:#fff3;--hatch-bg:#ffffff0a;--heat-0:#1a1a1a;--heat-1:#2e2e2e;--heat-2:#4c4c4a;--heat-3:#8a8a86;--heat-4:#ededeb;
  --up:#6fd3b0;--up-soft:#6fd3b021;--down:#f2937c;--down-soft:#f2937c21;--warn:#e8bd62;--warn-soft:#e8bd6221;--sea:#c4c4bf;--sea-soft:#ffffff1a;--success:#6fd3b0;--warning:#e8bd62;--danger:#f2937c;
  --gray-100:#161616;--gray-99:#1a1a1a;--gray-97:#1e1e1e;--gray-96:#222;--gray-95:#262626;--gray-90:#333;--gray-50:#9c9c9c;--gray-27:#d9d9d9;--gray-24:#dedede;--gray-21:#e6e6e6;
  --green-65:#6fd3b0;--green-55:#6fd3b0;--green-50:#8fe3c4;--green-48:#8fe3c4;--leaf-73:#6e6e6e;--leaf-50:#bdbdbd;--leaf-44:#cfcfcf;
  --olive-97:#1c1c1c;--olive-94:#242424;--olive-92:#2a2a2a;--olive-90:#303030;--olive-86:#3a3a3a;--olive-82:#444;--olive-76:#555;--olive-74:#5a5a5a;--olive-71:#606060;--olive-68:#666;--olive-67:#6a6a6a;--olive-65:#707070;--olive-64:#747474;--olive-63:#777;--olive-61:#7c7c7c;--olive-60:#808080;--olive-58:#878787;--olive-57:#8a8a8a;--olive-55:#909090;--olive-52:#9a9a9a;--olive-52b:#9c9c9c;--olive-50:#a0a0a0;--olive-47:#a8a8a8;--olive-40:#b8b8b8;--olive-36:#c2c2c2;--olive-34:#c8c8c8;--olive-31:#cfcfcf;--olive-30:#d2d2d2;--olive-28:#d8d8d8;
  --red-97:#2b1f1c;--red-95:#30211f;--red-53:#f2937c;--red-52:#f2937c;--red-50:#f6a58f;--yellow-99:#262214;--yellow-99b:#28230f;--yellow-97:#332b12;--yellow-88:#6b5a1a;--yellow-77:#e0c23a;--yellow-69:#e8bd62;--yellow-67:#e8bd62;--yellow-55:#f1cf7a;--yellow-51:#f1cf7a;--yellow-47:#f5d98f;--blue-68:#8e8e89;--amber-80:#e8bd62}
:root[data-theme=dark][data-palette=pastel]{--bg:#0c1216;--glass:#ffffff0d;--glass-2:#ffffff16;--glass-3:#1d272e;--float:#1a242b;--surface:#172129;--text:#e8eef1;--muted:#a7b3bb;--faint:#8d9aa3;--text-muted:#a7b3bb;--primary:#79b6e3;--primary-2:#a9d2f1;--primary-ink:#a9d2f1;--primary-soft:#79b6e326;--on-primary:#0c1216;--pill:#e8eef1;--on-pill:#0f171c;--ink-btn:#e8eef1;--on-ink-btn:#0f171c;--sky:#a9d2f1;--mint:#a7e1ca;--coral:#f6b4a3;--ocean:#24597a;--oc-1:#a9d2f1;--oc-2:#a7e1ca;--c1:#79b6e3;--c2:#b8daf3;--c3:#5fcaa8;--c4:#f09a82;--c5:#e7b552;--hatch:#8cc3eb42;--hatch-bg:#8cc3eb0f;--heat-0:#172128;--heat-1:#1d3a50;--heat-2:#27597b;--heat-3:#3e83b4;--heat-4:#8ec3ea}
:root[data-theme=dark][data-palette=ocean]{--bg:#0a1118;--glass:#ffffff0d;--glass-2:#ffffff16;--glass-3:#1d272e;--float:#1a242b;--surface:#172129;--text:#e8eef1;--muted:#a7b3bb;--faint:#8d9aa3;--text-muted:#a7b3bb;--primary:#79b6e3;--primary-2:#a9d2f1;--primary-ink:#a9d2f1;--primary-soft:#79b6e326;--on-primary:#0c1216;--pill:#e8eef1;--on-pill:#0f171c;--ink-btn:#e8eef1;--on-ink-btn:#0f171c;--sky:#9fcbef;--mint:#9fdce0;--coral:#8fc6d6;--ocean:#1e4c70;--oc-1:#9fcbef;--oc-2:#9fdce0;--c1:#79b6e3;--c2:#b8daf3;--c3:#5fcaa8;--c4:#f09a82;--c5:#e7b552;--hatch:#8cc3eb42;--hatch-bg:#8cc3eb0f;--heat-0:#172128;--heat-1:#1d3a50;--heat-2:#27597b;--heat-3:#3e83b4;--heat-4:#8ec3ea}
:root[data-theme=dark][data-palette=sage]{--bg:#0c120f;--glass:#ffffff0d;--glass-2:#ffffff16;--glass-3:#1d2a22;--float:#1a241e;--surface:#17211b;--text:#e8eee9;--muted:#a7b3aa;--faint:#8d9a90;--text-muted:#a7b3aa;--primary:#8fd1ad;--primary-2:#b9e3c8;--primary-ink:#b9e3c8;--primary-soft:#8fd1ad26;--on-primary:#0c120f;--pill:#e8eee9;--on-pill:#0f1712;--ink-btn:#e8eee9;--on-ink-btn:#0f1712;--sky:#bfe0c4;--mint:#a9dcc6;--coral:#e9c9a7;--ocean:#2a5845;--oc-1:#bfe0c4;--oc-2:#ece2a8;--c1:#8fd1ad;--c2:#c9e8d3;--c3:#a6d36f;--c4:#f0a576;--c5:#e7c159;--hatch:#96d7af42;--hatch-bg:#96d7af0f;--heat-0:#151d18;--heat-1:#1d3a2b;--heat-2:#295c43;--heat-3:#3f8d64;--heat-4:#8fd1ad}

@charset "UTF-8";
:root{--yellow:var(--accent);--ink:var(--text);--muted:var(--text-muted);--line:var(--border);--paper:#f7f7f7;--white:var(--surface);--green:var(--success);--amber:var(--warning);--red:var(--danger);--sidebar:236px;--radius:var(--radius-l);--shadow:0 12px 38px #24242409;font-family:'Avenir Next',Avenir,Inter,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;color:var(--ink);font-synthesis:none}*{box-sizing:border-box}body{margin:0;background:var(--paper);font-size:13px}button,input,select,textarea{font:inherit}button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}button,a{touch-action:manipulation}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.5}button:focus-visible,a:focus-visible{outline:2px solid var(--focus);outline-offset:2px}input:focus,select:focus,textarea:focus{outline:2px solid var(--focus);outline-offset:1px}a{color:inherit;text-decoration:none}h1,h2,h3,p{margin:0}svg{flex-shrink:0}.icon{width:18px;height:18px;stroke-width:1.65;vertical-align:middle}.boot{display:grid;place-content:center;gap:30px;height:100vh;text-align:center}.boot img{width:180px;margin:auto}.muted{color:var(--muted)}.mono{font-variant-numeric:tabular-nums}.sidebar{width:var(--sidebar);height:100dvh;position:fixed;inset:0 auto 0 0;background:var(--gray-21);color:#afb4af;display:flex;flex-direction:column;padding:28px 18px 20px;z-index:30}.brand{display:flex;align-items:center;padding:0 15px 25px;gap:8px}.brand img{width:142px;max-height:51px;filter:none}.brand small{font-size:11px;letter-spacing:2.6px;display:block;color:#858e84;margin-top:6px}.sidebar .brand{display:block}.brand-stamp{height:3px;background:var(--yellow);width:27px;border-radius:3px;margin:10px 0 0}.nav-label{font-size:11px;text-transform:uppercase;letter-spacing:1.8px;color:#949494;padding:18px 15px 8px;font-weight:650}.nav-item{display:flex;align-items:center;gap:12px;padding:11px 14px;border-radius:9px;color:#b3b3b3;margin:3px 0;font-size:12px;font-weight:550;transition:.16s}.nav-item:hover{background:var(--gray-27);color:white}.nav-item.active{background:var(--yellow);color:var(--gray-21);box-shadow:0 4px 16px #0001}.nav-item .nav-count{margin-left:auto;border:1px solid var(--olive-40);padding:2px 6px;border-radius:5px;font-size:11px}.nav-item.active .nav-count{border-color:var(--yellow-67)}.sidebar nav{overflow:auto;scrollbar-width:thin;flex:1}.sidebar-bottom{padding:16px 7px 0;border-top:1px solid var(--olive-31);margin-top:16px}.local-badge{display:flex;align-items:center;gap:8px;font-size:11px;color:#b0b0b0}.dot{width:6px;height:6px;display:inline-block;background:#9a9a9a;border-radius:50%;flex-shrink:0}.sidebar-note{font-size:11px;line-height:1.7;color:#767676;margin:9px 0 0 14px}.workspace{margin-left:var(--sidebar);min-height:100vh}.topbar{height:78px;background:#fffffff5;border-bottom:1px solid var(--line);padding:0 38px;display:flex;align-items:center;justify-content:space-between;gap:20px;position:sticky;top:0;z-index:20;backdrop-filter:blur(15px)}.breadcrumb{display:flex;gap:9px;align-items:center;font-size:11px;color:var(--olive-50)}.breadcrumb strong{color:var(--olive-36);font-weight:600}.top-actions{display:flex;align-items:center;gap:16px}.search-trigger{display:flex;align-items:center;gap:9px;border:0;background:none;color:var(--text-muted);padding:8px;font-size:11px}.kbd{font-family:inherit;border:1px solid var(--olive-92);background:var(--gray-97);font-size:11px;padding:1px 5px;border-radius:4px;color:var(--olive-50)}.icon-btn{display:inline-flex;align-items:center;justify-content:center;width:34px;height:34px;border:1px solid transparent;border-radius:9px;background:transparent;color:var(--olive-52);position:relative}.icon-btn:hover{background:var(--gray-96);border-color:var(--olive-92)}.avatar{width:32px;height:32px;background:var(--gray-96);border:1px solid var(--olive-90);color:var(--olive-47);display:grid;place-items:center;border-radius:50%;font-size:11px;font-weight:650}.notification-dot{position:absolute;top:7px;right:8px;background:var(--yellow);width:5px;height:5px;border-radius:50%;outline:2px solid var(--gray-100)}.store-picker{display:flex;gap:9px;align-items:center;border:1px solid var(--line);padding:8px 10px;border-radius:var(--radius-s)}.store-picker select{border:0;background:transparent;font-size:11px;color:#454545;outline:0;max-width:150px}.main{max-width:1680px;margin:auto;padding:33px 38px 46px}.eyebrow{font-size:11px;letter-spacing:1.8px;font-weight:700;color:var(--olive-50);text-transform:uppercase;display:flex;align-items:center;gap:7px;margin-bottom:7px}.page-title{font-size:29px;font-weight:650;letter-spacing:-1.15px;line-height:1.3}.page-subtitle{color:var(--text-muted);font-size:12px;margin-top:7px;line-height:1.6}.page-heading{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:27px}.page-heading .actions{display:flex;gap:10px;align-items:center}.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;border:1px solid var(--olive-92);background:var(--gray-100);color:var(--olive-40);border-radius:var(--radius-s);padding:10px 14px;font-size:var(--control-font-size);font-weight:600;white-space:nowrap;min-height:37px;transition:transform .12s,background .12s}.btn:hover{background:var(--gray-97);transform:translateY(-1px)}.btn.primary{background:var(--yellow);border-color:var(--yellow);color:#27240c}.btn.primary:hover{background:#f2c200}.btn.dark{background:var(--gray-27);color:var(--gray-100);border-color:var(--gray-27)}.btn.ghost{background:transparent;border-color:transparent}.btn.sm{min-height:30px;padding:6px 9px;font-size:var(--control-font-size)}.btn .icon{width:15px;height:15px}.date-control{font-size:11px;display:flex;gap:8px;align-items:center;padding:10px 12px;background:white;border:1px solid var(--olive-92);border-radius:var(--radius-s);white-space:nowrap}.date-control select{border:0;background:none;max-width:165px;color:var(--olive-50);font-size:11px}.validation-tag{display:inline-flex;align-items:center;gap:6px;border:1px solid var(--olive-92);background:var(--gray-99);border-radius:20px;padding:5px 9px;font-size:11px;color:var(--text-muted)}.stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin-bottom:22px}.stat-card{background:var(--gray-100);padding:19px 21px 17px;border:1px solid var(--line);border-radius:var(--radius);position:relative;overflow:hidden;box-shadow:0 3px 10px #20201002}.stat-top{display:flex;align-items:center;justify-content:space-between;color:var(--olive-50);font-size:11px;margin-bottom:17px}.stat-icon{display:grid;place-items:center;background:var(--gray-97);color:var(--text-muted);width:28px;height:28px;border-radius:var(--radius-s)}.stat-value{font-size:27px;letter-spacing:-1.4px;font-weight:650;line-height:1.3;white-space:nowrap}.stat-bottom{font-size:11px;color:var(--text-muted);display:flex;align-items:center;gap:6px;margin-top:10px;flex-wrap:wrap}.trend{display:inline-flex;align-items:center;gap:3px;color:var(--green);font-weight:650;font-size:11px;background:var(--gray-97);padding:2px 5px;border-radius:4px}.trend .icon{width:10px;height:10px}.trend.negative{color:var(--red);background:var(--red-97)}.stat-spark{position:absolute;bottom:21px;right:19px;width:68px;height:22px;opacity:.8}.dashboard-grid{display:grid;grid-template-columns:minmax(0,1.8fr) minmax(280px,1fr);gap:20px;margin-bottom:22px}.panel{background:var(--gray-100);border:1px solid var(--line);border-radius:var(--radius);overflow:hidden;box-shadow:var(--shadow)}.panel-head{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:21px 23px 17px}.panel-head h2{font-size:14px;font-weight:650;letter-spacing:-.35px}.panel-head p{color:var(--text-muted);font-size:12px;margin-top:4px;line-height:1.5}.panel-head a{font-size:11px;color:var(--text-muted)}.chart-panel{background:var(--gray-27);color:#f9f9f9;position:relative;border:1px solid #353535;box-shadow:0 7px 20px #1d1d1d0d}.chart-panel:after{content:'';position:absolute;pointer-events:none;top:-140px;right:-70px;width:330px;height:330px;border-radius:50%;background:radial-gradient(circle,#9c9c9c12,transparent 70%)}.chart-panel .panel-head h2{font-size:14px}.chart-panel .chart-period{border:1px solid var(--olive-40);background:var(--olive-31);color:var(--olive-86);padding:6px 9px;border-radius:6px;font-size:11px}.legend{display:flex;gap:16px;font-size:11px;color:#a2a2a2;padding:0 23px 4px}.legend span{display:flex;align-items:center;gap:6px}.legend b{height:6px;width:6px;display:inline-block;border-radius:50%;background:var(--yellow)}.legend b.mall{background:var(--olive-68)}.sales-chart{width:100%;height:223px;display:block;padding:0 10px}.chart-bar{cursor:pointer;transition:opacity .2s;outline:none}.chart-bar:hover,.chart-bar:focus{opacity:.7}.chart-tooltip{font-size:11px;background:var(--gray-99);color:#2c2c2c;position:fixed;pointer-events:none;padding:10px 12px;border:1px solid var(--gray-90);border-radius:var(--radius-s);z-index:100;box-shadow:var(--shadow)}.chart-bottom{padding:10px 23px 19px;display:flex;align-items:center;justify-content:space-between;border-top:1px solid var(--olive-34);color:#989898;font-size:11px}.chart-bottom strong{font-weight:600;color:var(--olive-90)}.attention-panel .panel-head{padding-bottom:12px}.attention-total{display:flex;align-items:center;gap:8px;padding:0 23px 12px;font-size:11px;color:var(--olive-50)}.attention-total strong{font-size:29px;letter-spacing:-1px;color:var(--olive-28);line-height:1}.attention-item{display:flex;gap:12px;align-items:center;padding:12px 22px;border-top:1px solid var(--gray-96);cursor:pointer;transition:background .15s}.attention-item:hover{background:var(--gray-99)}.attention-icon{height:32px;width:32px;border-radius:9px;display:grid;place-items:center;background:var(--yellow-97);color:#a58b33}.attention-icon.green{background:var(--gray-96);color:var(--text-muted)}.attention-icon.red{background:var(--red-97);color:#838383}.attention-item strong{font-size:11px;font-weight:600;display:block}.attention-item p{font-size:11px;color:var(--olive-50);margin-top:4px}.attention-item>.icon{margin-left:auto;width:14px;color:var(--text-muted)}.attention-foot{display:flex;align-items:center;justify-content:center;gap:6px;font-size:11px;color:var(--olive-50);padding:13px;border-top:1px solid var(--line);background:var(--gray-99)}.operations-grid{display:grid;grid-template-columns:minmax(0,1.8fr) minmax(280px,1fr);gap:20px}.tabs{display:flex;gap:23px;border-bottom:1px solid var(--line);padding:0 23px;margin-bottom:0}.tab{border:0;border-bottom:2px solid transparent;background:none;color:var(--text-muted);font-size:var(--control-font-size);font-weight:550;padding:13px 0;white-space:nowrap}.tab.active{border-bottom-color:var(--yellow);color:var(--olive-34)}.table-wrap{overflow:auto}table{border-collapse:collapse;width:100%;font-size:11px;text-align:left}th{font-size:11px;font-weight:550;color:var(--olive-50);padding:13px 18px;background:var(--gray-99);border-bottom:1px solid var(--line);white-space:nowrap}td{padding:16px 18px;border-bottom:1px solid var(--gray-96);vertical-align:middle;color:var(--olive-47)}tbody tr:last-child td{border-bottom:0}tbody tr{transition:background .15s}tbody tr:hover{background:var(--gray-99)}td strong{font-size:11px;font-weight:600;color:var(--olive-34);display:block}td small{color:var(--text-muted);font-size:11px;display:block;margin-top:4px}.supplier-logo{height:28px;width:28px;border:1px solid var(--olive-92);background:var(--gray-99);border-radius:7px;display:inline-grid;place-items:center;font-size:11px;font-weight:750;margin-right:9px;color:var(--olive-52b);flex-shrink:0}.name-cell{display:flex;align-items:center;min-width:165px}.status{display:inline-flex;align-items:center;gap:5px;font-size:11px;padding:5px 7px;border-radius:5px;background:var(--gray-96);color:var(--text-muted);white-space:nowrap;font-weight:550}.status .dot{width:4px;height:4px;background:currentColor}.status.green{color:#696969;background:var(--gray-96)}.status.amber{color:var(--yellow-51);background:var(--yellow-97)}.status.red{color:var(--red-52);background:var(--red-97)}.status.blue{color:#616161;background:var(--gray-97)}.route-card{padding:20px 23px 16px}.route-vis{display:flex;align-items:center;gap:10px;margin-bottom:17px}.store-node{width:48px;height:48px;border:1px solid var(--olive-92);border-radius:var(--radius-m);display:grid;place-items:center;background:var(--gray-97);color:#787878}.route-line{height:1px;background:var(--olive-90);flex:1;position:relative}.route-line:after{content:'›';position:absolute;right:0;top:-10px;color:var(--text-muted);font-size:19px}.route-line span{position:absolute;top:-10px;left:50%;transform:translateX(-50%);background:var(--gray-100);padding:2px 7px;font-size:10px;color:var(--olive-52b);white-space:nowrap}.route-labels{display:flex;justify-content:space-between;font-size:11px;font-weight:600}.route-labels small{display:block;color:var(--olive-50);font-size:11px;font-weight:400;margin-top:3px}.route-stats{display:flex;gap:0;margin-top:20px;background:var(--gray-97);border:1px solid var(--gray-96);border-radius:10px}.route-stats>div{flex:1;padding:14px}.route-stats>div+div{border-left:1px solid var(--olive-94)}.route-stats strong{font-size:20px;display:block;color:#505050;letter-spacing:-.6px}.route-stats span{display:block;color:var(--olive-52b);font-size:11px;margin-top:3px}.route-note{font-size:11px;line-height:1.7;color:var(--olive-50);margin-top:16px}.route-note strong{color:var(--olive-47);font-weight:500}.route-card .btn{width:100%;margin-top:18px}.footer-note{display:flex;align-items:center;justify-content:space-between;margin-top:23px;color:var(--text-muted);font-size:11px;gap:20px}.footer-note span{display:flex;gap:5px;align-items:center}.footer-note .icon{width:12px;height:12px}.toolbar{display:flex;align-items:center;gap:10px;flex-wrap:wrap;padding:16px 20px;border-bottom:1px solid var(--line)}.input-wrap{display:flex;align-items:center;gap:8px;background:var(--gray-100);border:1px solid var(--olive-92);border-radius:var(--radius-s);padding:0 11px;min-height:37px}.input-wrap .icon{color:var(--text-muted);width:15px}.input-wrap input{border:0;outline:none;background:transparent;min-width:190px;padding:10px 0;font-size:13px;color:#585858}.filter-select{border:1px solid var(--olive-92);border-radius:var(--radius-s);padding:10px;background:var(--gray-100);font-size:var(--control-font-size);color:var(--text-muted);min-height:37px}.toolbar .spacer{flex:1}.table-count{font-size:11px;color:var(--text-muted)}.view-toggle{display:flex;border:1px solid var(--olive-92);border-radius:7px;padding:2px}.view-toggle button{border:0;background:none;padding:5px;color:var(--text-muted);border-radius:4px}.view-toggle button.active{background:var(--gray-96);color:#6b6b6b}.view-toggle .icon{width:15px;height:15px}.inventory-table td{font-size:11px}.inventory-table .item-name{max-width:340px;line-height:1.6}.item-sku{font-size:11px;color:var(--text-muted);white-space:nowrap}.row-action{border:1px solid var(--olive-92);background:white;border-radius:6px;padding:5px;color:var(--text-muted);display:grid;place-items:center}.row-action .icon{width:14px;height:14px}.empty{padding:55px 30px;text-align:center;color:var(--text-muted)}.empty>.icon{width:36px;height:36px;margin-bottom:15px;color:var(--olive-82)}.empty h3{font-size:15px;color:var(--olive-52b);margin-bottom:8px}.empty p{font-size:12px;line-height:1.7;max-width:430px;margin:auto}.empty .btn{margin-top:17px}.notice{padding:14px 17px;background:var(--yellow-99b);border:1px solid #eee5b9;border-radius:10px;display:flex;align-items:flex-start;gap:11px;font-size:12px;color:var(--yellow-47);line-height:1.6;margin-bottom:20px}.notice .icon{width:17px;margin-top:1px}.notice.neutral{background:var(--gray-96);border-color:var(--olive-92);color:var(--text-muted)}.notice strong{font-weight:600}.supplier-grid,.recipe-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.supplier-card,.recipe-card{padding:22px;border:1px solid var(--line);border-radius:14px;background:var(--gray-100);cursor:pointer;transition:transform .2s,box-shadow .2s}.supplier-card:hover,.recipe-card:hover{transform:translateY(-3px);box-shadow:0 12px 26px #3a3a3a0a}.supplier-card-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:20px}.supplier-card .supplier-logo{width:44px;height:44px;font-size:14px;margin:0}.supplier-card h3,.recipe-card h3{font-size:15px;letter-spacing:-.3px;margin-bottom:7px}.supplier-card p,.recipe-card p{font-size:11px;color:var(--text-muted);line-height:1.7}.supplier-card-footer{display:flex;justify-content:space-between;align-items:center;border-top:1px solid var(--line);margin-top:20px;padding-top:14px;color:var(--text-muted);font-size:11px}.recipe-card .recipe-type{font-size:11px;text-transform:uppercase;letter-spacing:1px;color:var(--text-muted);margin-bottom:14px;display:flex;align-items:center;gap:7px}.recipe-card-bottom{margin-top:20px;display:flex;align-items:center;justify-content:space-between}.board{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:20px}.board-column{background:var(--gray-96);border:1px solid var(--olive-94);border-radius:14px;padding:14px;min-height:340px}.column-title{font-size:11px;color:var(--text-muted);display:flex;justify-content:space-between;margin:3px 2px 17px}.column-title b{font-weight:500;background:var(--olive-90);border-radius:4px;padding:2px 6px;font-size:11px}.task-card{background:white;padding:17px;border:1px solid var(--olive-92);border-radius:10px;margin-bottom:12px;cursor:pointer}.task-card small{color:var(--text-muted);font-size:11px}.task-card h3{font-size:13px;margin:8px 0}.task-card p{font-size:11px;color:var(--text-muted);line-height:1.7}.task-card footer{margin-top:16px;display:flex;justify-content:space-between;align-items:center}.task-card .avatar{height:23px;width:23px;font-size:9px}.progress-track{height:5px;border-radius:4px;background:var(--olive-94);margin-top:14px}.progress-track span{height:100%;display:block;background:#c7c7c7;border-radius:4px}.stats.compact .stat-card{padding:17px 20px}.stats.compact .stat-value{font-size:24px}.data-warning{font-size:11px;color:var(--text-muted)}.pagination{display:flex;justify-content:space-between;align-items:center;padding:15px 20px;border-top:1px solid var(--line);font-size:11px;color:var(--text-muted)}.pagination .btn{min-height:28px;padding:5px 8px;font-size:11px}.pagination .pages{display:flex;gap:6px}.pagination .btn.current{background:var(--yellow);border-color:var(--yellow);color:#3e3909}.detail-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:15px}.detail-pair{padding:14px;background:var(--gray-99);border:1px solid var(--olive-94);border-radius:var(--radius-s)}.detail-pair small{display:block;font-size:11px;text-transform:uppercase;letter-spacing:.7px;color:var(--text-muted);margin-bottom:8px}.detail-pair strong{font-size:12px;color:var(--leaf-44);font-weight:550;line-height:1.7;word-break:break-word}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:17px}.field{display:flex;flex-direction:column;gap:8px}.field label{font-size:12px;color:var(--text-muted);font-weight:550}.field input,.field select,.field textarea{border:1px solid var(--olive-92);background:var(--gray-100);border-radius:var(--radius-s);padding:11px;color:#4f4f4f;min-width:0;width:100%;font-size:13px}.field textarea{resize:vertical;min-height:80px}.field.full{grid-column:1/-1}.field small{font-size:11px;color:var(--text-muted);line-height:1.6}.overlay{position:fixed;inset:0;background:#15151555;backdrop-filter:blur(3px);z-index:70;display:flex;align-items:center;justify-content:center;padding:24px;animation:fadein .18s}.modal{background:var(--gray-100);border-radius:18px;box-shadow:0 25px 90px #17171738;width:650px;max-width:100%;max-height:90dvh;display:flex;flex-direction:column;overflow:hidden;animation:slidein .2s}.modal.wide{width:850px}.modal-head{padding:23px 26px;border-bottom:1px solid var(--line);display:flex;justify-content:space-between;align-items:center;gap:20px}.modal-head h2{font-size:20px;letter-spacing:-.7px;font-weight:600}.modal-head p{font-size:11px;color:var(--text-muted);margin-top:6px}.modal-body{padding:24px 26px;overflow:auto}.modal-foot{border-top:1px solid var(--line);padding:17px 26px;display:flex;align-items:center;justify-content:flex-end;gap:10px;background:var(--gray-100)}.modal-foot .meta{margin-right:auto;font-size:11px;color:var(--text-muted);line-height:1.5}.drawer.overlay{padding:0;justify-content:flex-end}.drawer .modal{height:100dvh;max-height:100dvh;width:510px;border-radius:18px 0 0 18px}.drawer .modal-body{flex:1}.section-title{font-size:12px;font-weight:600;color:var(--text-muted);display:flex;justify-content:space-between;align-items:center;margin:24px 0 13px}.line-item{display:grid;grid-template-columns:1fr 70px 85px 30px;gap:8px;margin-bottom:10px;align-items:center}.line-item select,.line-item input{border:1px solid var(--olive-92);padding:9px;border-radius:7px;min-width:0;width:100%;font-size:11px;color:#666666;background:white}.line-item .uom{font-size:11px;color:var(--text-muted)}.item-detail-title{font-size:22px;font-weight:600;letter-spacing:-.5px;line-height:1.35;margin-bottom:10px}.item-detail-desc{color:var(--text-muted);font-size:11px;line-height:1.7;margin-bottom:22px}.conversion{padding:12px 15px;background:var(--yellow-99b);border:1px solid #efe6ad;border-radius:var(--radius-s);margin-top:12px;display:flex;align-items:center;gap:8px;font-size:12px;color:#8a7828}.timeline{border-left:1px solid var(--olive-92);margin:8px 0 0 6px;padding-left:18px}.timeline-item{position:relative;padding-bottom:20px}.timeline-item:before{content:'';position:absolute;width:7px;height:7px;border-radius:50%;background:#bababa;left:-22px;top:5px;outline:4px solid white}.timeline-item strong{font-size:11px;font-weight:550;display:block}.timeline-item span{font-size:11px;color:var(--text-muted);display:block;margin-top:5px}#toast-root{position:fixed;bottom:25px;right:30px;z-index:100;display:flex;flex-direction:column;align-items:flex-end;gap:8px;pointer-events:none}.toast{pointer-events:auto;background:var(--olive-30);color:var(--olive-97);border:1px solid var(--olive-47);box-shadow:0 12px 40px #2a2a2a26;padding:14px 18px;border-radius:11px;display:flex;gap:10px;align-items:center;max-width:420px;font-size:13px;line-height:1.5;animation:slidein .2s}.toast.error{background:#282828;border-color:#4b4b4b;color:#ececec}.toast.error .icon{color:#c0c0c0}.toast.neutral .icon{color:var(--olive-82)}.toast .icon{color:var(--yellow)}.search-modal{width:640px}.global-search{border:0;width:100%;padding:0;font-size:18px;background:none;color:var(--olive-34);outline:none!important}.search-result{padding:12px;border-radius:var(--radius-s);display:flex;align-items:center;gap:12px;cursor:pointer}.search-result:hover{background:var(--olive-97)}.search-result strong{font-size:12px;display:block;font-weight:550}.search-result small{font-size:11px;color:var(--text-muted);margin-top:4px;display:block}.search-result>.icon{color:var(--text-muted)}.search-hint{font-size:11px;color:var(--text-muted);text-transform:uppercase;letter-spacing:1px;margin:6px 10px 13px}.upload-zone{border:1.5px dashed var(--olive-86);background:var(--gray-99);min-height:160px;border-radius:var(--radius-m);display:grid;place-content:center;text-align:center;cursor:pointer;padding:23px}.upload-zone:hover{border-color:var(--yellow-69);background:var(--yellow-99b)}.upload-zone .icon{width:27px;height:27px;color:var(--text-muted);margin:auto auto 12px}.upload-zone strong{font-size:13px;color:var(--text-muted)}.upload-zone small{font-size:11px;color:var(--text-muted);display:block;margin-top:7px}.hidden{display:none!important}.local-record{font-size:10px;text-transform:uppercase;letter-spacing:.6px;color:var(--text-muted);background:var(--olive-97);padding:2px 4px;border-radius:3px;margin-left:6px}.settings-list{padding:0 23px 14px}.settings-row{padding:18px 0;display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid var(--line);gap:25px}.settings-row h3{font-size:12px;margin-bottom:6px}.settings-row p{font-size:11px;color:var(--text-muted);line-height:1.7}.integration-icon{width:42px;height:42px;border:1px solid var(--olive-92);border-radius:10px;display:grid;place-items:center;flex-shrink:0;background:var(--gray-99);color:#919191;font-size:20px;font-weight:700}.integration{display:flex;align-items:center;gap:13px}.store-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px}.store-summary{padding:24px;border-radius:14px;border:1px solid var(--line);background:white}.store-summary header{display:flex;justify-content:space-between;margin-bottom:20px}.store-summary h3{font-size:17px}.store-summary p{color:var(--text-muted);font-size:11px;line-height:1.7}.mobile-menu{display:none}.table-check{accent-color:var(--yellow-67)}.pill-count{background:var(--gray-97);color:var(--text-muted);border-radius:4px;font-size:11px;padding:3px 6px;margin-left:5px}.filter-chips{display:flex;gap:7px;margin-bottom:20px;flex-wrap:wrap}.chip{border:1px solid var(--olive-92);color:var(--text-muted);background:var(--gray-100);border-radius:20px;padding:7px 12px;font-size:11px}.chip.active{color:#423b0b;background:#fff7cb;border-color:#e9d263}.print-heading{display:none}.report-bars{padding:3px 23px 25px}.report-bar-row{display:grid;grid-template-columns:120px 1fr 95px;gap:14px;align-items:center;margin:19px 0;font-size:11px;color:var(--text-muted)}.report-bar-track{height:9px;background:var(--olive-97);border-radius:var(--radius-s);overflow:hidden}.report-bar-track span{height:100%;background:var(--yellow);display:block;border-radius:var(--radius-s)}.report-bar-row strong{text-align:right;font-size:11px;color:#777777}.modal .table-wrap{margin-top:15px}.modal table th,.modal table td{padding:12px 10px}.count-input{width:75px;border:1px solid var(--olive-90);background:white;padding:8px;border-radius:6px}.error-text{color:var(--red);font-size:12px;margin-top:12px}.checkbox-row{display:flex;align-items:flex-start;gap:10px;line-height:1.7;color:var(--text-muted);font-size:11px}.checkbox-row input{accent-color:var(--yellow-67);margin-top:4px}.insight-card{padding:20px 23px;background:var(--olive-97);border:1px solid var(--olive-92);border-radius:var(--radius-m);font-size:11px;color:var(--text-muted);line-height:1.8}.insight-card h3{color:var(--leaf-50);font-size:13px;margin-bottom:8px}.metric-inline{display:flex;justify-content:space-between;gap:15px;padding:13px 0;border-bottom:1px solid var(--line);font-size:11px;color:var(--text-muted)}.metric-inline strong{color:#5d5d5d}.breadcrumbs-link{cursor:pointer}.breadcrumbs-link:hover{color:var(--leaf-44)}@keyframes fadein{from{opacity:0}to{opacity:1}}@keyframes slidein{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}@media(min-width:1600px){.main{padding-top:40px}.stats{gap:22px}.sales-chart{height:265px}.panel-head{padding-top:24px}}@media(max-width:1200px){:root{--sidebar:206px}.main{padding:25px 24px}.topbar{padding:0 24px}.stat-card{padding:16px}.stat-value{font-size:24px}.stat-spark{display:none}.dashboard-grid,.operations-grid{grid-template-columns:minmax(0,1.6fr) minmax(250px,1fr)}.search-trigger span{display:none}.supplier-grid,.recipe-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.brand{padding-left:8px}.brand img{width:133px}.nav-item{padding:10px;font-size:11px}.table-wrap td,.table-wrap th{padding:12px}.stat-top{font-size:11px}.page-heading .actions{gap:6px}}@media(max-width:1000px){.dashboard-grid,.operations-grid{grid-template-columns:1fr}.attention-panel{display:none}.route-card{display:grid;grid-template-columns:1fr 1fr;gap:14px}.route-vis{grid-column:1/-1}.route-stats{margin:0}.route-note{margin:0}.route-labels{grid-column:1/-1}.route-card .btn{margin:0}.stats{grid-template-columns:repeat(2,1fr)}.page-heading{align-items:flex-start}.page-heading .actions{flex-wrap:wrap;justify-content:flex-end}.board{grid-template-columns:1fr 1fr}.top-actions{gap:8px}.breadcrumb{display:none}}@media(max-width:700px){:root{--sidebar:0px}.sidebar{transform:translateX(-100%);width:236px;transition:transform .2s}.sidebar.open{transform:translateX(0);box-shadow:20px 0 90px #1c1c1c55}.mobile-menu{display:inline-flex}.topbar{height:65px;padding:0 17px}.top-actions{gap:5px}.topbar .search-trigger{display:none}.store-picker{padding:7px}.store-picker select{max-width:128px}.main{padding:23px 16px}.page-heading{display:block;margin-bottom:20px}.page-heading .actions{margin-top:17px;justify-content:flex-start}.page-title{font-size:26px}.stats{gap:10px}.stat-value{font-size:23px}.stat-top{font-size:11px;gap:8px}.stat-bottom{font-size:10px}.stat-card{padding:14px}.stat-icon{width:24px;height:24px}.supplier-grid,.recipe-grid,.store-grid,.board{grid-template-columns:1fr}.dashboard-grid,.operations-grid{gap:15px}.footer-note{align-items:flex-start}.footer-note span:last-child{display:none}.form-grid,.detail-grid{grid-template-columns:1fr}.overlay{padding:12px}.modal-head,.modal-body{padding:20px}.modal-foot{padding:15px}.drawer .modal{border-radius:0;width:100%}.modal-head h2{font-size:18px}.route-card{padding:20px}.sales-chart{height:205px}.panel-head{padding:18px}.toolbar{padding:13px;gap:8px}.toolbar .input-wrap{width:100%}.toolbar .input-wrap input{width:100%;min-width:0}.board-column{min-height:190px}.line-item{grid-template-columns:1fr 60px 48px 25px}.line-item select{font-size:11px}.validation-tag{font-size:10px}.search-modal .modal-head{gap:12px}.global-search{font-size:15px}#toast-root{left:15px;right:15px;bottom:calc(90px + env(safe-area-inset-bottom));align-items:stretch}.toast{max-width:none}.report-bar-row{grid-template-columns:90px 1fr 85px;gap:10px}.page-subtitle{max-width:320px}.settings-row{align-items:flex-start}.tabs{gap:18px;overflow:auto;padding:0 15px}.tab{font-size:var(--control-font-size)}.notice{font-size:12px}}@media print{.sidebar,.topbar,.page-heading .actions,.toolbar,.row-action,.footer-note,.btn{display:none!important}.workspace{margin:0}.main{padding:0}.panel{box-shadow:none}.table-wrap{overflow:visible}.print-heading{display:block;margin-bottom:20px}.pagination{display:none}body{background:white}}

/* Legibility and reduced motion across the operational interface. */
.page-subtitle,.stat-bottom,.panel-head p,td small,.table-count,.footer-note{color:var(--olive-50)}.item-detail-desc,.field small,.supplier-card p,.recipe-card p{color:var(--text-muted)}.chart-panel .panel-head p,.chart-bottom{color:#aeaeae}.brand img{height:auto}@media(prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important;scroll-behavior:auto!important}}

/* Recipe composition: display, local editing, and catalog selection. */
.drawer .recipe-drawer{width:760px}.recipe-drawer .item-detail-title{font-size:25px}.recipe-metadata{grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}.recipe-metadata .detail-pair{padding:12px}.recipe-metadata .detail-pair small{font-size:10px}.recipe-metadata .detail-pair strong{font-size:11px}.recipe-section-title{margin-top:29px;font-size:14px}.recipe-section-title p{font-size:11px;font-weight:400;color:var(--text-muted);margin-top:6px}.recipe-components{border:1px solid var(--line);border-radius:10px}.recipe-components td:first-child{width:65%;max-width:400px}.recipe-components td strong{line-height:1.6;font-size:12px}.recipe-components td{padding:15px 12px!important}.recipe-components th{padding:13px 12px!important}.recipe-components .recipe-quantity{text-align:right;font-size:13px;font-weight:650;color:#4b4b4b}.component-note{font-size:11px;line-height:1.6;color:var(--text-muted);margin-top:6px;white-space:pre-wrap}.recipe-empty{background:var(--gray-99);border:1px dashed var(--olive-90);border-radius:var(--radius-m);padding:30px 25px;text-align:center;margin:15px 0}.recipe-empty>.icon{color:var(--text-muted);width:28px;height:28px;margin-bottom:12px}.recipe-empty h3{font-size:13px;margin-bottom:8px;color:var(--leaf-50)}.recipe-empty p{font-size:11px;color:var(--text-muted);line-height:1.7}.recipe-local-note{margin-top:20px;display:flex;gap:9px;color:var(--text-muted);font-size:11px;line-height:1.7;padding:13px;background:var(--gray-97);border-radius:9px}.recipe-local-note .icon{width:15px;height:15px;margin-top:2px}.recipe-edit-summary{display:flex;gap:20px;justify-content:space-between;align-items:center;padding:14px 0 20px;border-bottom:1px solid var(--line);font-size:11px;color:var(--text-muted)}.recipe-edit-summary strong{display:block;font-size:17px;color:var(--leaf-44);margin-top:5px}.recipe-edit-row{border:1px solid var(--olive-92);border-radius:var(--radius-m);padding:16px;margin-bottom:12px;background:var(--gray-100)}.recipe-edit-item{display:flex;gap:11px;align-items:flex-start;margin-bottom:15px}.recipe-edit-item>div{flex:1;min-width:0}.recipe-edit-item strong{font-size:12px;line-height:1.6;display:block;color:#424242}.recipe-edit-item small{font-size:11px;color:var(--text-muted);display:block;line-height:1.6;margin-top:3px}.recipe-item-icon{width:31px;height:31px;display:grid;place-items:center;background:var(--olive-97);border:1px solid var(--olive-94);border-radius:var(--radius-s);color:#8f8f8f;flex-shrink:0}.recipe-item-icon .icon{width:16px;height:16px}.recipe-remove{color:var(--text-muted);flex-shrink:0}.recipe-remove:hover{background:var(--red-97);border-color:#d9d9d9;color:#646464}.recipe-edit-controls{display:grid;grid-template-columns:.8fr 1fr 1fr;gap:12px}.recipe-edit-controls .field{gap:5px}.recipe-edit-controls .field label{font-size:11px;text-transform:uppercase;letter-spacing:.5px}.recipe-edit-controls input,.recipe-edit-controls select{padding:9px;font-size:11px}.recipe-add-bar{padding:4px 0 12px}.recipe-add-bar .btn{width:100%;border-style:dashed}.recipe-picker{border:1px solid var(--olive-92);background:var(--gray-99);border-radius:var(--radius-m);padding:15px}.recipe-picker .section-title{margin-top:0}.recipe-picker .input-wrap input{width:100%;min-width:0}.recipe-result-count{font-size:11px;color:var(--text-muted);margin:12px 0}.recipe-pick-item{display:flex;gap:10px;align-items:center;text-align:left;width:100%;background:none;border:0;border-bottom:1px solid var(--gray-95);padding:12px 3px;color:var(--text-muted)}.recipe-pick-item>span:nth-child(2){flex:1}.recipe-pick-item:hover{background:var(--olive-97)}.recipe-pick-item strong{font-size:11px;display:block;color:var(--leaf-44);line-height:1.6}.recipe-pick-item small{font-size:11px;display:block;margin-top:3px;color:var(--text-muted)}.recipe-discard-guard{flex-basis:100%;display:flex;align-items:center;gap:8px;justify-content:flex-end;padding-bottom:12px;margin-bottom:5px;border-bottom:1px solid #e7dfbd}.recipe-discard-guard span{margin-right:auto;font-size:11px;color:#937922}.recipe-edit-drawer .modal-foot{flex-wrap:wrap}
@media(max-width:700px){.drawer .recipe-drawer{width:100%}.recipe-metadata{grid-template-columns:1fr 1fr}.recipe-drawer .item-detail-title{font-size:22px}.recipe-edit-row{padding:12px}.recipe-edit-controls{grid-template-columns:.8fr 1.2fr;gap:9px}.recipe-edit-controls .field:last-child{grid-column:1/-1}.recipe-edit-controls .field:last-child select{max-width:100%}.recipe-discard-guard{flex-wrap:wrap}.recipe-discard-guard span{flex-basis:100%;margin-bottom:3px}.recipe-components td:first-child{width:57%}.recipe-components td,.recipe-components th{padding:12px 8px!important}.recipe-components td strong{font-size:11px}.recipe-edit-summary{gap:9px}}
.component-observation{margin-top:7px;font-size:11px;color:var(--text-muted)}.component-observation summary{cursor:pointer;list-style-position:inside}.component-observation summary:hover{color:var(--leaf-44)}.recipe-drawer .modal-foot{flex-wrap:wrap}
/* Supplier catalog and full item registration */
.supplier-back{margin:0 0 16px -8px}.supplier-back .btn{font-size:12px}.supplier-items-table{table-layout:fixed;width:100%;min-width:850px}.supplier-items-table th:nth-child(1){width:76px}.supplier-items-table th:nth-child(3){width:18%}.supplier-items-table th:nth-child(4){width:12%}.supplier-items-table td{vertical-align:middle;padding-top:16px;padding-bottom:16px;overflow-wrap:anywhere}.supplier-items-table th{font-size:11px;text-transform:none;letter-spacing:0}.catalog-sort{display:flex;align-items:center;gap:9px;text-align:left;color:inherit;font:inherit;font-weight:600;cursor:pointer;border:0;background:none;padding:0}.catalog-sort .icon{width:16px;height:16px;color:var(--text-muted)}.catalog-sort:hover{color:var(--olive-28)}.catalog-sort:focus-visible,.product-description:focus-visible{outline:2px solid var(--yellow-55);outline-offset:5px;border-radius:3px}.product-description{display:flex;align-items:center;gap:12px;width:100%;background:none;border:0;padding:0;color:#272727;font:inherit;font-weight:600;line-height:1.6;text-align:left;cursor:pointer}.product-description .icon{width:15px;height:15px;flex-shrink:0;color:var(--text-muted);opacity:0;transition:opacity .15s}.product-description:hover{color:#655009}.product-description:hover .icon,.product-description:focus-visible .icon{opacity:1}.supplier-items-table td small{line-height:1.5;font-size:11px;margin-top:5px}.price-missing{color:var(--text-muted);font-size:12px}.sku-cell{font-size:11px}.modal.catalog-item-modal{width:min(1200px,calc(100vw - 48px));max-width:1200px}.catalog-item-modal .modal-body{background:var(--gray-99);padding:28px}.catalog-edit-heading{display:flex;align-items:center;gap:15px;margin-bottom:26px}.catalog-edit-heading>.supplier-logo{width:54px;height:54px;border-radius:var(--radius-l);background:#fff3b8;color:var(--yellow-47);flex-shrink:0}.catalog-edit-heading>div:not(.inventory-photo){flex:1;min-width:0}.catalog-edit-heading .eyebrow{font-size:11px;margin-bottom:6px}.catalog-edit-heading h3{margin:0;font-size:19px;letter-spacing:-.4px;line-height:1.4}.catalog-edit-heading p{font-size:11px;color:var(--text-muted);margin:6px 0 0}.catalog-editor-grid{display:grid;grid-template-columns:1.1fr 1fr;gap:22px}.catalog-editor-column{display:flex;flex-direction:column;gap:20px;min-width:0}.catalog-section{padding:23px;background:var(--gray-100);border:1px solid var(--olive-92);border-radius:14px;min-width:0}.catalog-section>h3{margin:0 0 20px;display:flex;align-items:center;gap:10px;font-size:14px}.catalog-section>h3 .icon{width:18px;height:18px;color:var(--text-muted)}.catalog-section .form-grid{gap:19px 16px}.catalog-section .field label{font-size:11px;line-height:1.4}.catalog-section input,.catalog-section select,.catalog-section textarea{font-size:12px;background:var(--gray-100);padding:11px 12px;min-width:0;max-width:100%;box-sizing:border-box}.catalog-section input[readonly]{background:var(--gray-99);color:var(--text-muted)}.catalog-help{font-size:11px;line-height:1.65;color:var(--text-muted);margin:12px 0}.catalog-section>h3+.catalog-help{margin-top:-10px}.catalog-conversion-row{display:grid;grid-template-columns:minmax(55px,1fr) 12px minmax(65px,92px) minmax(38px,1fr) 26px;align-items:center;gap:10px;margin:10px 0;font-size:12px}.catalog-conversion-row input{width:100%;text-align:center}.catalog-conversion-row>.icon-btn{width:26px;height:30px}.catalog-conversion-row .icon{width:15px;height:15px}.catalog-conversion-row .icon-btn:disabled{opacity:.2;cursor:default}.catalog-add-conversion{display:flex;gap:8px;margin-top:20px;padding-top:18px;border-top:1px dashed var(--olive-92)}.catalog-add-conversion select{flex:1;min-width:0}.catalog-locations>div+div{border-top:1px solid var(--gray-96);padding-top:13px;margin-top:13px}.catalog-locations strong{font-size:12px}.catalog-locations p{margin:6px 0 0;font-size:11px;color:var(--text-muted);line-height:1.6}.catalog-price-history{margin-top:17px;border-top:1px solid var(--olive-92);padding-top:14px}.catalog-price-history summary{font-size:11px;font-weight:600;cursor:pointer;color:var(--text-muted)}.catalog-price-history .metric-inline{font-size:11px}.catalog-price-history small{display:block;color:var(--text-muted);margin-top:3px}.catalog-save-note{margin-right:auto}.catalog-item-modal .modal-foot{flex-wrap:wrap}.catalog-item-modal .error-text:empty{display:none}.catalog-item-modal .error-text{margin:20px 0 0}.supplier-catalog-panel
@media(max-width:1000px){.catalog-editor-grid{grid-template-columns:1fr}.modal.catalog-item-modal{width:min(740px,calc(100vw - 32px))}.catalog-item-modal .modal-body{padding:22px}.catalog-edit-heading>.validation-tag{display:none}.catalog-save-note{width:100%;margin-bottom:5px}.catalog-section{padding:20px}}
@media(max-width:600px){.modal.catalog-item-modal{width:100vw;max-width:100vw;border-radius:0;height:100dvh;max-height:100dvh}.catalog-item-modal .modal-body{padding:15px}.catalog-edit-heading{gap:10px;margin-bottom:20px}.catalog-edit-heading h3{font-size:16px}.catalog-edit-heading>.supplier-logo{display:none}.catalog-section{padding:16px}.catalog-section .form-grid{grid-template-columns:1fr 1fr;gap:16px 10px}.catalog-section .field.full{grid-column:1/-1}.catalog-section input,.catalog-section select,.catalog-section textarea{font-size:16px;padding:10px 9px}.catalog-conversion-row{gap:7px;grid-template-columns:60px 10px 80px 1fr 24px}.catalog-item-modal .modal-foot{gap:8px;padding:14px}.catalog-item-modal .modal-foot .btn{font-size:var(--control-font-size)}.catalog-save-note{font-size:11px}}

.catalog-conversion-row input,.catalog-add-conversion select{border:1px solid var(--olive-90);border-radius:var(--radius-s);color:var(--olive-30);background-color:var(--gray-100)}.catalog-add-conversion select{width:100%}.catalog-item-modal .modal-foot .meta .icon{margin-right:6px}

/* Calendar windows and inventory count provenance. */
.calendar-trigger{color:#4c4c4c;max-width:390px;text-align:left;min-height:40px;font-size:11px;line-height:1.5}.calendar-trigger:hover{border-color:#cbb55a;background:var(--gray-99)}.calendar-trigger>span{white-space:normal}.calendar-trigger .icon{width:16px;height:16px}.period-modal{width:620px}.period-presets{display:flex;gap:8px;flex-wrap:wrap;margin:20px 0}.period-help{color:var(--text-muted);font-size:11px;line-height:1.7;margin-top:18px}.period-modal input{min-width:0;width:100%;color:#3d3d3d}.selected-period{display:flex;align-items:center;gap:10px;margin:-7px 0 20px;color:var(--text-muted);font-size:11px}.selected-period>.icon{width:15px;height:15px}.selected-period .btn{margin-left:auto}.table-name-button{border:0;background:none;color:var(--olive-34);font-size:11px;font-weight:600;text-align:left;padding:2px 0;line-height:1.6;display:inline-block}.table-name-button:hover{text-decoration:underline;text-underline-offset:3px;color:#74601b}.last-count{padding:18px;background:var(--gray-99);border:1px solid var(--olive-92);border-radius:var(--radius-m);margin-top:24px}.last-count>.section-title{margin:0 0 16px}.last-count .detail-grid{gap:10px}.last-count .detail-pair{background:var(--gray-100)}.last-count .detail-pair strong{line-height:1.6}.count-source{color:var(--text-muted);font-size:11px;line-height:1.7;margin:14px 0 0}.last-count .notice{margin-top:14px;font-size:12px}.last-count table{font-size:11px}.last-count td,.last-count th{padding:10px 7px!important}.inventory-table td:nth-child(5){min-width:143px}.inventory-table td:nth-child(5) small{line-height:1.5}.modal.operation-modal{width:min(1180px,calc(100vw - 48px));max-width:1180px}.operation-modal .modal-body{background:var(--gray-99)}.operation-modal .detail-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.operation-modal .detail-pair strong{overflow-wrap:anywhere;line-height:1.6}.operation-modal .item-detail-title{font-size:24px}.operation-modal .table-wrap{border:1px solid var(--olive-92);border-radius:10px;background:var(--gray-100)}.operation-modal table{min-width:650px}.operation-modal td:first-child{min-width:190px;max-width:440px}.operation-modal td small{line-height:1.6}.operation-modal th{font-size:11px}.operation-modal .section-title{margin-top:27px;font-size:13px}.operation-modal .item-detail-desc{white-space:pre-wrap;overflow-wrap:anywhere}.operation-modal details{margin:16px 0;padding:14px;border:1px solid var(--olive-92);border-radius:10px;background:var(--gray-100);color:#6c6c6c;font-size:11px;line-height:1.7}.operation-modal summary{cursor:pointer;font-weight:600}.operation-modal .timeline{margin-top:15px}.operation-modal .notice{line-height:1.7}.operation-modal .modal-foot{flex-wrap:wrap}.operation-modal pre{overflow:auto;max-height:340px;white-space:pre-wrap;font-size:11px;overflow-wrap:anywhere}.operation-modal .document-card{padding:16px;border:1px solid var(--olive-92);border-radius:10px;margin-top:12px;background:var(--gray-100)}.operation-modal .document-card strong{display:block}.operation-modal .document-card small{display:block;line-height:1.7;margin-top:6px;color:var(--text-muted)}
@media(max-width:700px){.calendar-trigger{max-width:100%;font-size:11px}.selected-period{flex-wrap:wrap;line-height:1.7}.selected-period .btn{margin-left:0}.modal.operation-modal{width:100%;max-width:100%;height:100dvh;max-height:100dvh;border-radius:0}.operation-modal .detail-grid{grid-template-columns:1fr 1fr}.operation-modal .item-detail-title{font-size:20px}.operation-modal .modal-body{padding:20px 16px}.last-count{padding:13px}.last-count .detail-grid{grid-template-columns:1fr}.period-modal .form-grid{gap:17px}.period-modal input{font-size:16px}}
.operation-modal .operation-detail-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.operation-intro{margin-bottom:20px}.operation-section{margin-top:28px}.operation-section>h3{font-size:14px;margin:0 0 14px;letter-spacing:-.2px}.operation-record{border:1px solid var(--olive-92);border-radius:var(--radius-m);padding:18px;background:white;margin-top:16px}.operation-record-head{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-bottom:16px;font-size:12px}.operation-help{font-size:11px;color:var(--text-muted);line-height:1.75;margin:14px 0}.operation-notes{font-size:12px;color:var(--text-muted);line-height:1.8;white-space:pre-wrap;overflow-wrap:anywhere}.operation-line-note{max-width:460px}.operation-linked-record{display:flex;gap:16px;align-items:center;padding:16px;border:1px solid var(--olive-92);border-radius:var(--radius-m);background:var(--gray-100)}.operation-linked-record>div{flex:1}.operation-linked-record small{display:block;font-size:11px;color:var(--text-muted);margin-top:5px}.operation-document{padding:18px;border:1px solid var(--olive-92);border-radius:var(--radius-m);margin:16px 0;background:white}.operation-document-head{display:flex;align-items:center;gap:12px;margin-bottom:18px}.operation-document-head>div{min-width:0;flex:1}.operation-document-head strong{overflow-wrap:anywhere;line-height:1.6;font-size:12px}.operation-document-head small{display:block;color:var(--text-muted);font-size:11px;margin-top:5px}.operation-document-head>.icon{color:var(--text-muted)}.operation-timeline{padding:0;margin:20px 0 0;list-style:none}.operation-timeline li{display:grid;grid-template-columns:185px 1fr;gap:18px;position:relative;padding:4px 0 18px 18px;border-left:1px solid var(--olive-90);font-size:11px;margin-left:4px}.operation-timeline li:before{content:'';width:7px;height:7px;border-radius:50%;background:#c4a53c;position:absolute;top:7px;left:-4px}.operation-timeline time{color:var(--text-muted);line-height:1.6}.operation-timeline strong{display:block;font-weight:600;line-height:1.6}.operation-timeline small{display:block;margin-top:5px;font-size:11px;color:var(--text-muted);overflow-wrap:anywhere}.operation-transfer-route{display:flex;gap:15px;align-items:center;padding:5px 0 25px;font-size:21px;letter-spacing:-.5px}.operation-transfer-route>.icon{color:#a88d29}.operation-receipt{margin-top:22px;padding-top:18px;border-top:1px solid var(--gray-95)}.operation-receipt h4{font-size:12px;margin:0}.operation-tags{display:flex;gap:8px;flex-wrap:wrap}.operation-tags .tag{background:#fff4c7;border:1px solid var(--yellow-88);padding:5px 9px;border-radius:6px;font-size:11px}
@media(max-width:900px){.operation-modal .operation-detail-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.operation-transfer-route{font-size:18px;gap:10px}.operation-document-head{flex-wrap:wrap}.operation-document-head>.status{margin-left:28px}.operation-timeline li{grid-template-columns:1fr;gap:4px}}
@media(max-width:500px){.operation-record{padding:13px}.operation-linked-record{flex-wrap:wrap}.operation-transfer-route{align-items:flex-start;font-size:16px;line-height:1.6}.operation-transfer-route>.icon{margin-top:4px}.operation-document{padding:13px}.operation-modal .detail-pair{padding:13px}.operation-modal .detail-pair strong{font-size:11px}}

.recipe-cost-info{margin-top:32px;padding-top:24px;border-top:1px solid var(--olive-92)}.cost-section-heading,.cost-location-heading{display:flex;align-items:center;justify-content:space-between;gap:12px}.cost-section-heading h4{margin:0;font-size:18px;letter-spacing:-.4px}.cost-section-heading>span{font-size:11px;font-weight:600;color:var(--text-muted)}.cost-location{margin-top:18px;padding:18px;border:1px solid var(--olive-92);border-radius:14px;background:var(--gray-99)}.cost-location-heading{margin-bottom:15px;font-size:12px}.cost-location-heading>span{font-size:11px;padding:4px 8px;background:var(--olive-94);border-radius:5px;color:var(--text-muted)}.cost-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:0}.cost-metric{background:white;border:1px solid var(--olive-92);border-radius:9px;padding:13px 12px;min-width:0}.cost-metric dt{font-size:11px;color:var(--text-muted);margin-bottom:8px}.cost-metric dd{margin:0;font-size:18px;font-weight:650;letter-spacing:-.4px;font-variant-numeric:tabular-nums}.cost-metric.cost-featured{background:#f4f0d7;border-color:var(--yellow-88)}.cost-metric .cost-missing{font-size:11px;font-weight:500;color:var(--text-muted);letter-spacing:0}.cost-caption{font-size:11px;line-height:1.7;color:var(--text-muted);margin:13px 0 0}.cost-prep{grid-template-columns:1fr}.cost-prep .cost-metric{display:flex;align-items:center;justify-content:space-between}.cost-prep dt{margin:0}.cost-prep dd{font-size:23px}.cost-formulas,.cost-issues{margin-top:12px;font-size:11px;line-height:1.7;color:var(--text-muted)}.cost-formulas summary,.cost-issues summary{cursor:pointer;font-weight:600}.cost-issues{color:#686868}.cost-issues ul{padding-left:18px}.cost-source{margin-top:16px}.cost-formulas p{margin-bottom:0}@media(max-width:520px){.cost-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.cost-prep{grid-template-columns:1fr}.cost-location{padding:13px}.cost-metric{padding:12px 10px}}

.inventory-history{margin-top:28px;border-top:1px solid var(--olive-92);padding-top:24px}.history-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:18px}.history-heading h3{margin:0;font-size:18px;letter-spacing:-.4px}.history-heading>span{font-size:11px;color:var(--text-muted)}.history-tabs{display:flex;gap:5px;background:var(--gray-97);border:1px solid var(--olive-92);border-radius:10px;padding:5px}.history-tab{flex:1;border:0;background:transparent;padding:11px 6px;border-radius:7px;font:inherit;font-size:11px;color:var(--text-muted);cursor:pointer;white-space:nowrap}.history-tab.active{background:var(--gray-100);box-shadow:0 1px 4px #2d2d2d12;color:var(--olive-28);font-weight:650}.history-tab>span{display:inline-block;margin-left:6px;background:var(--olive-94);border-radius:5px;padding:2px 5px;font-size:11px}.history-tab.active>span{background:#f4e9a7}.history-help{font-size:11px;line-height:1.7;color:var(--text-muted);margin:13px 0 16px}.history-record{border:1px solid var(--olive-92);border-radius:var(--radius-m);padding:16px;margin-bottom:10px;background:var(--gray-100)}.history-record header{display:flex;justify-content:space-between;gap:12px;align-items:start}.history-record time{font-size:12px;font-weight:600}.history-record header small{display:block;font-size:11px;color:var(--text-muted);margin-top:5px}.history-quantity{font-size:16px;font-variant-numeric:tabular-nums;text-align:right;line-height:1.4;color:#626262}.history-quantity.outgoing{color:#6c6c6c}.history-reference{font-size:12px;font-weight:550;margin-top:17px;overflow-wrap:anywhere;display:flex;gap:8px;flex-wrap:wrap}.history-description{font-size:11px;color:var(--text-muted);margin-top:9px;line-height:1.7}.history-badge{font-size:11px;letter-spacing:.1px;border-radius:5px;background:var(--gray-96);padding:4px 6px;color:var(--text-muted)}.history-badge.entry{background:var(--gray-96);color:#686868}.history-badge.sale{background:var(--red-97);color:#6e6e6e}.history-record p{font-size:11px;line-height:1.7;color:var(--text-muted);margin-bottom:0;white-space:pre-wrap;overflow-wrap:anywhere}.history-record details{font-size:11px;color:var(--text-muted);margin-top:10px}.history-record summary{cursor:pointer}.history-pagination{display:flex;align-items:center;justify-content:space-between;margin:18px 0;font-size:11px;color:var(--text-muted)}.history-empty{font-size:12px;padding:22px;background:var(--gray-99);border-radius:10px;color:var(--text-muted)}.history-tabs button:focus-visible{outline:2px solid var(--focus);outline-offset:2px}@media(max-width:480px){.history-heading{align-items:start;flex-direction:column;gap:6px}.history-tab{font-size:11px;padding:10px 3px}.history-tab>span{margin-left:3px}.history-record{padding:13px}.history-quantity{font-size:14px}}

.prep-navigation{display:flex;gap:6px;border-bottom:1px solid var(--olive-92);margin-bottom:20px}.prep-navigation button{font:inherit;font-size:13px;background:none;border:0;border-bottom:3px solid transparent;padding:15px 18px;color:var(--text-muted);cursor:pointer}.prep-navigation button.active{color:#333333;font-weight:650;border-color:var(--yellow-77)}.prep-environment{display:flex;align-items:center;gap:9px;font-size:11px;color:var(--text-muted);margin:15px 0 24px;line-height:1.7}.prep-environment .icon{width:15px;height:15px}.prep-filters,.prep-route{display:flex;align-items:end;gap:16px;flex-wrap:wrap;background:var(--gray-100);border:1px solid var(--olive-92);padding:20px;border-radius:13px;margin-bottom:14px}.prep-filters label,.prep-route label{display:flex;flex-direction:column;gap:8px;font-size:11px;color:var(--text-muted)}.prep-select{flex:1;min-width:220px}.prep-filters input,.prep-filters select,.prep-route input,.prep-route select,.prep-plan-table input{font:inherit;font-size:12px;border:1px solid var(--olive-90);background:var(--gray-100);border-radius:7px;padding:11px 12px;color:var(--olive-34);min-width:0}.prep-filters input{width:160px}.prep-help{font-size:11px;line-height:1.8;color:var(--text-muted);margin:12px 0 22px}.prep-panel-help{padding:0 24px 15px}.prep-stat-word{font-size:22px!important;letter-spacing:-.6px}.prep-consumption td:first-child{min-width:240px}.prep-consumption td{padding-top:19px;padding-bottom:19px}.prep-consumption small{max-width:300px}.prep-variation{font-size:11px;color:var(--olive-52);background:var(--gray-96);padding:5px 8px;border-radius:6px;white-space:nowrap}.prep-variation.up{background:var(--gray-96);color:var(--green-50)}.prep-variation.down{background:var(--red-95);color:#4e4e4e}.prep-bars{width:145px;display:flex;flex-direction:column;gap:6px}.prep-bars>div{height:7px;border-radius:6px;background:var(--gray-96);overflow:hidden}.prep-bars i{display:block;height:100%;background:#e0bf37;border-radius:6px}.prep-bars>div+div i{background:var(--leaf-73)}.prep-warning{color:#6f5f22!important}.prep-route{margin:0 24px 20px;background:var(--gray-99);align-items:center}.prep-route label{flex:1;min-width:155px}.prep-route>span{padding-top:20px;color:var(--yellow-69)}.prep-plan-table{min-width:1120px}.prep-plan-table th{white-space:normal;line-height:1.6}.prep-plan-table td{vertical-align:top}.prep-plan-table td:first-child{min-width:200px}.prep-plan-table td small{line-height:1.5;max-width:170px}.prep-plan-table input{width:110px}.prep-percent{display:flex;align-items:center;gap:8px}.prep-percent input{width:90px}.prep-plan-footer{padding:22px 24px;display:flex;justify-content:space-between;align-items:center;gap:20px;border-top:1px solid var(--olive-92);background:var(--gray-99);border-radius:0 0 14px 14px}.prep-plan-footer>span{font-size:11px;color:var(--text-muted);max-width:320px;line-height:1.7}.prep-planning .panel-head p{max-width:600px}#prep-batch-form .field output,#count-form .field output{display:block;padding:12px;border-radius:var(--radius-s);background:var(--gray-97);font-size:13px;color:var(--text-muted)}@media(max-width:700px){.prep-navigation{overflow-x:auto;gap:0}.prep-navigation button{white-space:nowrap;font-size:11px;padding:13px}.prep-filters{padding:14px;gap:10px}.prep-filters input{width:140px}.prep-filters .prep-select{min-width:100%}.prep-filters .btn{width:100%}.prep-route{margin:0 14px 16px;padding:15px}.prep-route>span{display:none}.prep-plan-footer{flex-direction:column;align-items:stretch}}

.period-date-grid{display:grid;grid-template-columns:minmax(0,1fr) 130px;gap:18px 16px}.period-date-grid input[readonly]{background:var(--gray-99);color:var(--text-muted);cursor:default}.period-date-grid .field{min-width:0}@media(max-width:480px){.period-date-grid{grid-template-columns:minmax(0,1fr) 105px;gap:16px 10px}}

.prep-sort{display:inline-flex;align-items:center;gap:12px;padding:5px 0;border:0;background:transparent;color:inherit;font:inherit;font-weight:inherit;cursor:pointer}.prep-sort span{font-size:11px;color:var(--olive-52b)}.prep-sort:hover{color:var(--olive-34)}.prep-sort:focus-visible{outline:2px solid var(--yellow-77);outline-offset:4px;border-radius:3px}

@page{size:letter;margin:0.5in}
#count-rows select{max-width:180px;padding:8px;border:1px solid var(--olive-90);border-radius:7px;background-color:var(--gray-100);color:var(--olive-34);font:inherit}

.purchasing-search{margin:14px 0;max-width:500px}.purchasing-history-controls{display:flex;justify-content:space-between;align-items:end;gap:16px;padding:20px 24px;flex-wrap:wrap}.purchasing-history-controls .input-wrap{flex:1;min-width:200px}.purchasing-page-size{display:flex;align-items:center;gap:12px;font-size:12px;color:var(--text-muted)}.purchasing-page-size select{padding:10px;border:1px solid var(--olive-90);border-radius:7px;background:white;font:inherit}

@media(max-width:700px){.panel-head:has(.purchasing-page-size){flex-wrap:wrap;gap:16px}}


 .invoice-filters{align-items:center;gap:12px}.invoice-multi-popover footer{display:flex;justify-content:flex-end;padding-top:10px;border-top:1px solid var(--gray-96)}.invoice-multi-popover .location-option>span{overflow-wrap:anywhere}
@media(max-width:700px){.invoice-filters .hd-date-trigger{max-width:100%;flex:0 1 auto}.invoice-filters .hd-date-value{min-width:0}.invoice-multi-popover footer .btn{min-height:44px}}
.invoice-multi-popover .location-list{padding-right:14px;scrollbar-gutter:stable}

.status.orange{background:#f2f2f2;color:#5b5b5b}.status.red{background:var(--red-95);color:var(--red-50)}

.btn.invoice-paid-button{background:var(--green-55);border-color:var(--green-55);color:var(--gray-100)}.btn.invoice-paid-button:hover{background:#515151;border-color:#515151}.btn.invoice-paid-button:disabled{opacity:.65}

.invoice-summary-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;margin-bottom:22px}.invoice-summary{padding:22px}.invoice-summary h2{font-size:14px;margin:0 0 18px}.invoice-summary>div{display:grid;grid-template-columns:1fr 1fr;gap:16px}.invoice-summary section{min-width:0;display:flex;flex-direction:column;gap:10px}.invoice-summary section>span{font-size:11px;color:var(--text-muted)}.invoice-summary strong{font-size:25px;overflow-wrap:anywhere}.invoice-search{flex:1 1 230px;min-width:0}.invoice-search input{width:100%}.invoice-sort{display:inline-flex;align-items:center;gap:6px;padding:0;border:0;background:transparent;color:inherit;font:inherit;text-align:left}.invoice-sort .icon{width:13px;height:13px}@media(max-width:600px){.invoice-summary-grid{grid-template-columns:1fr}.invoice-summary{padding:18px}.invoice-summary strong{font-size:22px}.invoice-search{flex-basis:100%}}
.invoice-search input{border:0;background:transparent;box-shadow:none;min-width:0}.invoice-search:focus-within{outline:2px solid var(--yellow-69);outline-offset:2px}.invoice-search input:focus{outline:0}

.invoice-summary-grid{grid-template-columns:repeat(3,minmax(0,1fr))}@media(max-width:1000px){.invoice-summary-grid{grid-template-columns:1fr}}
/* Keep invoice counts and currency intact, with more room for the total. */
.invoice-summary>div{grid-template-columns:minmax(0,1fr) max-content;column-gap:24px}.invoice-summary strong{white-space:nowrap;overflow-wrap:normal}.invoice-summary section:last-child{text-align:right}
@media(min-width:1001px) and (max-width:1350px){.invoice-summary-grid{gap:12px}.invoice-summary{padding:16px}.invoice-summary>div{column-gap:16px}.invoice-summary strong{font-size:20px}}
@media(max-width:380px){.invoice-summary>div{column-gap:16px}.invoice-summary strong{font-size:20px}}

.btn.invoice-delete-button{background:var(--red-50);border-color:var(--red-50);color:var(--gray-100)}.btn.invoice-delete-button:hover{background:#373737;border-color:#373737}.btn.invoice-delete-button:disabled{opacity:.65}

.invoice-summary-filter{font:inherit;font-weight:inherit;color:inherit;background:none;border:0;padding:6px 0;cursor:pointer;text-align:left}.invoice-summary-filter:hover{text-decoration:underline}.invoice-summary-filter[aria-pressed="true"]{color:var(--yellow-51);text-decoration:underline;text-underline-offset:5px}.invoice-summary-filter:focus-visible{outline:2px solid var(--yellow-69);outline-offset:4px;border-radius:3px}

.invoice-detail-modal #dialog-title{display:flex;align-items:center;flex-wrap:wrap;gap:12px}.invoice-detail-modal .invoice-title-number{overflow-wrap:anywhere;min-width:0}.invoice-detail-modal #dialog-title .status{flex-shrink:0;font-size:11px;line-height:1.4;font-weight:600;letter-spacing:normal}

.prep-usage-filters{align-items:center}.prep-usage-filters [data-action="prep-items-filter"],.prep-usage-filters .hd-date-trigger{min-height:42px;box-sizing:border-box}

.prep-route select,.prep-route .hd-date-trigger{height:42px;min-height:42px;width:100%;box-sizing:border-box}.prep-route .hd-date-field{width:100%}

.prep-pdf-columns{display:grid;gap:12px;margin:20px 0}.prep-pdf-columns label{display:flex;align-items:center;gap:10px;font-size:13px}.prep-pdf-columns input{width:18px;height:18px;accent-color:var(--yellow-77)}

.prep-plan-notes{margin:20px 24px}.prep-plan-notes textarea{width:100%;box-sizing:border-box;min-height:100px;resize:vertical}@media(max-width:700px){.prep-plan-notes{margin:16px 14px}}

.transfer-detail-modal #dialog-title{display:flex;align-items:center;flex-wrap:wrap;gap:12px}.transfer-detail-modal .transfer-title-number{overflow-wrap:anywhere;min-width:0}.transfer-detail-modal #dialog-title .status{flex-shrink:0;font-size:11px;line-height:1.4;font-weight:600;letter-spacing:normal}

.catalog-link-group p{overflow-wrap:anywhere;font-size:12px;line-height:1.6}.supplier-location-create{display:flex;align-items:center;flex-wrap:wrap;gap:12px;margin:10px 0}.supplier-location-create input{width:18px;height:18px}.supplier-location-create select{flex:1;min-width:160px}

.supplier-items-table th:first-child,.supplier-items-table td:first-child{padding-right:8px}

/* Expandable workspace modules keep navigation compact as the app grows. */
.sidebar .brand{padding-bottom:18px}.sidebar .brand-stamp{margin-top:14px}
.sidebar nav{min-height:0;overflow-x:hidden}.sidebar .nav-label{padding-top:16px;padding-bottom:10px}
.nav-module{margin:4px 0}.nav-module summary{list-style:none;display:flex;align-items:center;gap:10px;min-height:44px;padding:10px 12px;border-radius:9px;color:#b1b1b1;font-size:12px;font-weight:600;cursor:pointer}
.nav-module summary::-webkit-details-marker{display:none}.nav-module summary>.icon:first-child{width:18px;height:18px;flex-shrink:0}.nav-module summary>span{flex:1;min-width:0}.nav-module summary>.icon:last-child{width:14px;height:14px;transition:transform .15s}.nav-module[open] summary>.icon:last-child{transform:rotate(180deg)}
.nav-module summary:hover,.nav-module.has-active summary{background:var(--gray-27);color:var(--gray-100)}.nav-module summary:focus-visible{outline:2px solid var(--yellow);outline-offset:2px}
.nav-children{margin:4px 0 9px 20px;padding-left:9px;border-left:1px solid var(--olive-36)}.sidebar .nav-child{gap:8px;padding:10px 9px;font-size:11px;min-height:40px;line-height:1.45}.nav-child>.icon{width:16px;height:16px;flex-shrink:0}.nav-child>span{min-width:0;overflow-wrap:anywhere}
.sidebar .sidebar-bottom{padding-top:12px;margin-top:10px;flex-shrink:0}.sidebar .local-badge{font-size:11px}
@media(max-width:700px){.nav-module summary{min-height:46px}.sidebar .nav-child{min-height:44px}}

.sidebar .sidebar-bottom{display:flex;align-items:center;justify-content:space-between;gap:6px}
.sidebar-settings{display:flex;align-items:center;justify-content:center;width:36px;height:40px;flex-shrink:0;border-radius:var(--radius-s);color:#b1b1b1}
.sidebar-settings:hover{background:var(--gray-27);color:var(--gray-100)}.sidebar-settings.active{background:transparent;color:#b1b1b1}.sidebar-settings:hover,.sidebar-settings.active:hover{background:var(--gray-27);color:var(--gray-100)}.sidebar-settings:focus-visible{outline:2px solid var(--yellow);outline-offset:2px}.sidebar-settings .icon{width:18px;height:18px}

/* Keep Purchasing controls aligned across Usage, Planning, and History. */
.purchasing-filters{align-items:center}.purchasing-filters .hd-date-filter .hd-date-trigger,.purchasing-filters>.hd-date-trigger,.purchasing-filters>.btn{min-height:44px;box-sizing:border-box;display:inline-flex;align-items:center}

.prep-usage-filters .hd-date-filter .hd-date-trigger,.prep-usage-filters>[data-action="prep-items-filter"]{min-height:44px;box-sizing:border-box}

.purchasing-filters .purchasing-search{margin:0;flex:1 1 240px;min-width:0;max-width:360px}.purchasing-filters .purchasing-search input{width:100%;min-height:44px;box-sizing:border-box}.purchasing-history-controls{justify-content:flex-end}@media(max-width:600px){.purchasing-filters .purchasing-search{flex-basis:100%;max-width:none}}

/* Count filters align with the labeled location and employee fields. */
#count-form .count-filter-grid{margin-top:20px}
#count-form .count-supplier-presets{grid-column:1/-1;display:flex;flex-wrap:wrap;gap:8px}
#count-form .count-filter-grid[hidden]{display:none}
#count-form .hd-date-trigger{width:100%;min-height:42px;justify-content:space-between;border-radius:var(--radius-s)}
#count-form .hd-date-caption{display:none}
#count-form .hd-date-value{font-weight:400;font-size:13px}

#count-entry{margin-top:20px}.count-area-section{border:1px solid var(--olive-90);border-radius:10px;margin-top:14px;overflow:hidden}.count-area-section summary{padding:15px;cursor:pointer;background:var(--gray-99);font-size:12px}.count-area-section summary>span{margin-left:14px;color:var(--text-muted)}.count-area-section .table-wrap{max-height:350px}.count-section-foot{display:flex;justify-content:flex-end;padding:12px 15px;border-top:1px solid var(--olive-90)}#count-employee-help{display:block;margin-top:6px;font-size:11px}

.btn.count-confirm{background:var(--green);border-color:var(--green);color:var(--gray-100)}.btn.count-cancel{background:transparent;border-color:transparent;color:var(--text-muted)}.count-cancel:hover{background:var(--gray-96)}.count-page-overlay{padding:0;background:var(--gray-100);backdrop-filter:none}.modal.count-page{width:100%;max-width:none;height:100dvh;max-height:100dvh;border-radius:0;box-shadow:none}.count-page .modal-body{flex:1;overflow:auto}.count-page .count-area-section .table-wrap{max-height:none}.count-page .modal-foot{flex-shrink:0}.count-page #count-location:disabled{appearance:none;-webkit-appearance:none;background-image:none}

#count-form .form-grid input:not([type=hidden]),#count-form .form-grid .hd-date-trigger,#count-form .form-grid select{height:42px;font-size:13px;width:100%;box-sizing:border-box}#count-rows select[data-count-unit]{width:140px;height:38px;font-size:13px;max-width:100%}#count-rows .count-input{height:38px;font-size:13px;box-sizing:border-box}.count-notes{margin-top:24px}.count-subdialog{border:1px solid var(--line);border-radius:var(--radius-l);padding:24px;width:min(480px,calc(100vw - 32px));color:inherit;background:white}.count-subdialog::backdrop{background:#1f1f1f66}.count-subdialog h2{font-size:18px;margin:0 0 20px}.count-subdialog footer{display:flex;justify-content:flex-end;gap:10px;margin-top:20px}.count-subdialog textarea,#count-notes{width:100%;box-sizing:border-box;font:inherit;padding:12px;border:1px solid var(--olive-90);border-radius:var(--radius-s)}

@media (min-width:761px){
 #count-rows table{table-layout:fixed;width:100%}
 #count-rows th:nth-child(1){width:88px}
 #count-rows th:nth-child(3){width:96px}
 #count-rows th:nth-child(4){width:132px}
 #count-rows th:nth-child(5){width:76px}
 #count-rows td:nth-child(2){overflow-wrap:anywhere}
 #count-rows :is(th,td):is(:nth-child(3),:nth-child(4)){text-align:center;padding-inline:8px}
 #count-rows .count-input{width:75px;text-align:center}
 #count-rows select[data-count-unit]{width:112px;padding-inline:26px;text-align:center;text-align-last:center}
}
#count-save-status:empty{margin:0}
#count-rows .count-issue-icon{width:44px;height:44px;padding:0;justify-content:center}

#count-rows .inventory-photo{cursor:default}

.count-detail-toolbar{display:flex;align-items:stretch;gap:12px;margin:16px 0}.count-detail-toolbar .input-wrap{flex:1;min-width:0}.count-detail-toolbar .input-wrap input{width:100%;min-width:0;height:42px;box-sizing:border-box;font-size:12px}.count-detail-toolbar .hd-date-trigger{height:42px;min-height:42px;box-sizing:border-box;font-size:12px}.count-detail-toolbar #count-detail-area-filter{flex:0 1 auto;min-width:0}.count-detail-toolbar .hd-date-value{max-width:180px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}@media(max-width:500px){.count-detail-toolbar{gap:8px}.count-detail-toolbar .hd-date-trigger{max-width:170px}.count-detail-toolbar .hd-date-value{max-width:85px}}

.count-history-detail .modal-head h2{display:flex;align-items:center;gap:14px;flex-wrap:wrap}.count-history-detail .modal-head h2 .status{flex-shrink:0}.count-detail-notes{margin-top:24px;padding-top:20px;border-top:1px solid var(--line)}.count-detail-notes h3{font-size:13px;margin:0 0 10px}.count-detail-notes p{white-space:pre-wrap;overflow-wrap:anywhere;margin:0 0 20px}.count-detail-issue{padding:12px 0;border-bottom:1px solid var(--line)}.count-detail-issue p{margin:6px 0}



 .count-inline-qty{width:90px;max-width:100%}
.count-inline-editing>td{vertical-align:middle}
.count-inline-editor{display:grid;grid-template-columns:minmax(90px,1fr) auto;align-items:center;gap:8px;min-width:180px}
.count-inline-qty,.count-inline-editing select{display:block;height:40px;min-height:40px;margin:0;padding:9px 10px;border:1px solid var(--olive-90);border-radius:7px;background-color:var(--gray-100);color:var(--olive-34);font:inherit;box-sizing:border-box}
.count-inline-editor select{width:100%;min-width:0}
.count-inline-actions{display:flex;align-items:center;gap:4px}
.count-inline-actions .icon-btn{padding:0;width:32px;height:32px;flex-shrink:0}
.count-inline-actions .count-inline-save{color:var(--green)}
.count-inline-actions .count-inline-save:hover{background:var(--gray-96);border-color:#d4d4d4}
.count-inline-editor .error-text{grid-column:1/-1;white-space:normal;margin:0}
.count-inline-editor .error-text:empty{display:none}

.coverage-heading{display:inline-flex;align-items:center;gap:5px}.coverage-info{width:26px;height:26px}.coverage-info .icon{width:15px;height:15px}.coverage-explanation{max-width:380px;width:calc(100vw - 32px);padding:20px;border:1px solid var(--line);border-radius:var(--radius-m);background:var(--gray-100);color:var(--ink);box-shadow:0 12px 38px #24242426;font-size:13px;font-weight:400;text-transform:none;letter-spacing:normal;line-height:1.6;text-align:left}.coverage-explanation p{margin:12px 0}.coverage-explanation::backdrop{background:transparent}

.invoice-payment-fields{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.invoice-payment-fields .field{margin:0}.invoice-payment-fields .hd-date-trigger,.invoice-payment-fields .filter-select{height:44px;min-height:44px;box-sizing:border-box}.invoice-payment-fields .filter-select{font-size:12px;border-radius:9px}

.invoice-payment-fields .hd-date-trigger,.invoice-payment-fields .filter-select{font-family:inherit;font-size:12px;font-weight:400;line-height:1.5;color:var(--gray-27)}

.invoice-analysis-upload{position:relative;justify-items:center;text-align:center}.invoice-analysis-upload input[type="file"]{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer}.invoice-analysis-upload:focus-within{outline:2px solid var(--yellow-77);outline-offset:2px}.invoice-analysis-upload span,.invoice-analysis-upload small{max-width:100%;overflow-wrap:anywhere;text-align:center}

.invoice-analysis-confirmation{text-align:center;padding:24px 12px;display:grid;justify-items:center;gap:12px}.invoice-analysis-check{display:grid;place-items:center;width:64px;height:64px;border-radius:50%;background:var(--yellow);color:var(--ink)}.invoice-analysis-check svg{width:32px;height:32px}.invoice-analysis-confirmation p{color:var(--muted)}

.workday-report-upload{position:relative;justify-items:center;text-align:center}.workday-report-upload input[type="file"]{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer}.workday-report-upload:focus-within{outline:2px solid var(--yellow-77);outline-offset:2px}.workday-report-upload span,.workday-report-upload small{max-width:100%;overflow-wrap:anywhere;text-align:center}

.modal.invoice-review-modal{width:min(1500px,calc(100vw - 48px))}.invoice-review-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.1fr);gap:28px;align-items:start}.invoice-review-preview{position:sticky;top:0;display:grid;gap:12px;min-width:0}.invoice-review-preview iframe{width:100%;height:65dvh;border:1px solid var(--line);border-radius:10px;background:var(--gray-97)}.invoice-review-preview img{width:100%;max-height:65dvh;object-fit:contain;border:1px solid var(--line);border-radius:10px}.invoice-review-preview .btn{justify-self:start}.invoice-review-editor{display:grid;gap:20px;min-width:0}.invoice-review-editor .form-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.invoice-review-editor label{font-size:12px}.invoice-review-editor input,.invoice-review-editor select,.invoice-review-editor textarea{font-family:inherit;box-sizing:border-box}.invoice-review-editor h3,.invoice-review-preview h3{font-size:15px}.invoice-review-warnings{font-size:12px;color:var(--muted);line-height:1.6}.invoice-review-warnings ul{padding-left:20px;margin-top:8px}.invoice-review-line{padding:16px 0;border-bottom:1px solid var(--line);display:grid;grid-template-columns:minmax(0,2fr) minmax(0,1fr);gap:12px}.invoice-review-description{display:grid;gap:6px}.invoice-review-numbers{grid-column:1/-1;display:grid;grid-template-columns:repeat(4,minmax(0,1fr)) auto;gap:8px;align-items:end}.invoice-review-numbers .btn{padding:10px 8px}.invoice-review-editor>.btn{justify-self:start}.invoice-review-editor .checkbox-row input{flex-shrink:0}.invoice-review-editor textarea{min-height:85px}
@media(max-width:900px){.invoice-review-layout{grid-template-columns:1fr}.invoice-review-preview{position:static}.invoice-review-preview iframe,.invoice-review-preview img{height:45dvh}.invoice-review-numbers{grid-template-columns:repeat(2,minmax(0,1fr))}.invoice-review-numbers>.btn{grid-column:1/-1;justify-self:end}}
.invoice-price-label{display:flex;align-items:center;gap:6px;flex-wrap:wrap;min-height:20px}.invoice-price-label .status{font-size:11px;white-space:nowrap}.invoice-review-line input[readonly]{background:var(--gray-97);color:var(--text-muted);cursor:default}
.invoice-pdf-preview{max-height:65dvh;overflow:auto;border:1px solid var(--line);border-radius:10px;background:var(--gray-97);padding:8px}.invoice-pdf-preview canvas{display:block;width:100%;height:auto;background:white}.invoice-pdf-controls{position:sticky;top:0;display:flex;align-items:center;justify-content:space-between;gap:8px;padding:8px;background:var(--gray-97);z-index:1}.invoice-pdf-preview [role=status]:empty{display:none}.invoice-pdf-preview [role=status]{padding:12px;font-size:12px}

/* Shared single-line controls across forms, tables and filters.
   Metrics intentionally override legacy per-screen sizes; native checkboxes,
   uploads, hidden date sources and multiline fields retain their own layout. */
:root{--control-height:44px;--control-font-size:13px;--control-line-height:20px;--control-radius:8px}
input:where(:not([type=checkbox]):not([type=radio]):not([type=file]):not([type=hidden]):not([type=range]):not([type=color]):not(.hd-date-source)),select:not([multiple]):not([size]),.hd-date-trigger{
  height:var(--control-height)!important;min-height:var(--control-height)!important;
  box-sizing:border-box;border-radius:var(--control-radius)!important;
  font-family:inherit!important;font-size:var(--control-font-size)!important;
  font-weight:400!important;line-height:var(--control-line-height)!important;letter-spacing:normal!important;
  padding:0 12px!important;
}
select:not([multiple]):not([size]){
  appearance:none;-webkit-appearance:none;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2356624c' stroke-width='1.7'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat:no-repeat;background-position:right 12px center;background-size:16px;
  padding-right:36px!important;
}
textarea{font-family:inherit!important;font-size:var(--control-font-size)!important;font-weight:400!important;line-height:1.5!important;letter-spacing:normal!important;border-radius:var(--control-radius)!important}
.hd-date-trigger .hd-date-value,.hd-date-trigger .hd-date-caption{font-family:inherit!important;font-size:var(--control-font-size)!important;font-weight:400!important;line-height:var(--control-line-height)!important}
/* Selected values are bold everywhere (selects, date and location triggers); empty placeholders stay regular.
   Match the shared control selectors so this also overrides legacy screen typography. */
select,select:not([multiple]):not([size]),.hd-date-trigger .hd-date-value,.location-trigger strong{font-weight:700!important}
.hd-date-trigger.empty .hd-date-value{font-weight:400!important}
select option{font-weight:400}
select option:checked{font-weight:400}
.location-option>span,.location-option>.location-name{font-weight:700}
.hd-date-trigger .hd-date-caption{font-weight:400!important}
.field{font-size:12px;font-weight:400;line-height:1.5;min-width:0}
.field label{font-size:12px!important;font-weight:400!important;letter-spacing:normal!important;text-transform:none!important}
.input-wrap{height:var(--control-height);min-height:var(--control-height)}
.input-wrap input:not([type=hidden]){height:calc(var(--control-height) - 2px)!important;min-height:0!important;padding:0!important}
.store-picker,.date-control{padding-top:0;padding-bottom:0;min-height:var(--control-height)}
.store-picker select,.date-control select{height:calc(var(--control-height) - 2px)!important;min-height:0!important}
@media(max-width:1024px),(pointer:coarse){:root{--control-font-size:16px}}

.invoice-review-section{border:1px solid var(--line);border-radius:10px;padding:14px 16px;min-width:0}.invoice-review-section>summary{font-size:15px;font-weight:600;cursor:pointer}.invoice-review-section[open]>summary{margin-bottom:16px}.invoice-review-section>summary:focus-visible{outline:2px solid var(--yellow-77);outline-offset:4px}

.invoice-review-editor .invoice-review-header-fields{grid-template-columns:repeat(4,minmax(0,1fr))}.invoice-summary .form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.invoice-summary .invoice-summary-amounts{grid-template-columns:repeat(5,minmax(0,1fr));margin-top:16px}.invoice-summary label{font-size:12px;min-width:0}.invoice-summary input,.invoice-summary select{width:100%;min-width:0}@media(max-width:600px){.invoice-review-editor .invoice-review-header-fields,.invoice-summary .invoice-summary-amounts{grid-template-columns:repeat(2,minmax(0,1fr))}}

.invoice-review-editor .invoice-review-three-fields{grid-template-columns:repeat(3,minmax(0,1fr))}.invoice-review-numbers .invoice-remove-item{width:44px;height:44px;padding:0}.invoice-summary .invoice-review-warnings{margin-top:20px}.invoice-payment-details{margin-top:16px}@media(max-width:600px){.invoice-review-editor .invoice-review-three-fields{grid-template-columns:1fr}}

.food-cost-alert{background:var(--gray-99)}.food-cost-alert td:first-child{box-shadow:inset 3px 0 var(--red)}

.food-cost-sort{border:0;background:none;color:inherit;font:inherit;text-align:left;padding:0;display:inline-flex;align-items:center;gap:6px}.food-cost-sort span{font-size:13px}

:is(.catalog-sort,.invoice-sort,.prep-sort,.food-cost-sort){display:inline-flex;align-items:center;gap:6px}:is(.catalog-sort,.invoice-sort,.prep-sort,.food-cost-sort) .icon{width:14px;height:14px;flex-shrink:0}

[data-action="food-clear-filters"]{height:var(--control-height,44px);min-height:var(--control-height,44px);box-sizing:border-box}

.catalog-delete-button{background:var(--red-50);color:var(--gray-100);border-color:var(--red-50)}.catalog-toggle-button{background:var(--gray-95);color:var(--olive-40);border-color:var(--gray-90)}

.recipe-layout-switch{display:flex;gap:6px}.recipe-list{grid-template-columns:1fr}.recipe-list .recipe-card{display:grid;grid-template-columns:120px 2fr 2fr 1fr;align-items:center;gap:18px}.recipe-list .recipe-card h3,.recipe-list .recipe-card p,.recipe-list .recipe-card-bottom{margin:0}@media(max-width:700px){.recipe-list .recipe-card{grid-template-columns:1fr 1fr}.recipe-layout-switch .btn{padding:8px}}




.insight-intro{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:24px;margin-bottom:22px}.insight-intro h2{font-size:18px;margin:0 0 8px}.insight-intro p{color:var(--muted);line-height:1.6;margin:0}.insight-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}.insight-card{padding:24px;background:var(--white);border-color:var(--line);color:var(--ink)}.insight-card h2{font-size:20px;margin:16px 0 10px}.insight-card p{line-height:1.65;white-space:pre-wrap;color:var(--gray-50)}.insight-action{border-left:3px solid var(--yellow-87);padding:12px 16px;background:var(--yellow-99);margin:18px 0}.insight-action p{margin:6px 0 0}.insight-empty{padding:48px;text-align:center}.insight-empty h2{font-size:21px}.insight-empty p{max-width:660px;margin:14px auto;line-height:1.7;color:var(--muted)}.insight-meta{font-size:13px;color:var(--muted);line-height:1.6;margin:18px 0}@media(max-width:800px){.insight-grid{grid-template-columns:1fr}.insight-intro{align-items:flex-start;flex-direction:column}.insight-empty{padding:26px}}

/* Compact navigation rail for tablet and desktop. */
@media screen and (min-width:701px){
 body:not(.sidebar-expanded){--sidebar:76px}
 body:not(.sidebar-expanded) .sidebar{width:var(--sidebar);padding:24px 12px 16px}
 body:not(.sidebar-expanded) .sidebar .brand{padding:0 0 18px;text-align:center}
 body:not(.sidebar-expanded) .sidebar .brand img{width:50px;max-width:100%;height:auto}
 body:not(.sidebar-expanded) .sidebar .brand small,body:not(.sidebar-expanded) .sidebar .brand-stamp,body:not(.sidebar-expanded) .sidebar .nav-label,body:not(.sidebar-expanded) .sidebar .local-badge{display:none}
 body:not(.sidebar-expanded) .sidebar .nav-item,body:not(.sidebar-expanded) .sidebar .nav-module summary{justify-content:center;gap:0;padding:12px 0;min-height:46px}
 body:not(.sidebar-expanded) .sidebar .nav-item>span,body:not(.sidebar-expanded) .sidebar .nav-module summary>span,body:not(.sidebar-expanded) .sidebar .nav-module summary>.icon:last-child{display:none}
 body:not(.sidebar-expanded) .sidebar .nav-item>.icon,body:not(.sidebar-expanded) .sidebar .nav-module summary>.icon:first-child{width:20px;height:20px}
 body:not(.sidebar-expanded) .sidebar .nav-children{margin:4px 0 8px;padding:0;border-left:0;border-top:1px solid var(--olive-36);border-bottom:1px solid var(--olive-36)}
 body:not(.sidebar-expanded) .sidebar .nav-child{margin:3px 4px;min-height:40px}
 body:not(.sidebar-expanded) .sidebar .nav-child>.icon{width:17px;height:17px}
 body:not(.sidebar-expanded) .sidebar .sidebar-bottom{justify-content:center;padding:12px 0 0}
}

@media screen and (min-width:701px){body.sidebar-expanded{--sidebar:236px}body.sidebar-expanded .sidebar{width:236px}body.sidebar-expanded .navigation-close{display:flex;position:absolute;right:8px;top:8px;color:#afb4af}}

.hr-permission-grid,.hr-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin:20px 0}.hr-permission{padding:24px}.hr-permission>div{display:flex;gap:10px;align-items:center;margin-bottom:14px}.hr-permission h2{font-size:17px}.hr-permission p{color:var(--gray-50);line-height:1.6;margin-bottom:16px}.hr-permission small{color:var(--muted)}.hr-table td{vertical-align:middle}.hr-toolbar{flex-wrap:wrap}.hr-toolbar label{display:flex;align-items:center;gap:8px}.hr-toolbar input,.hr-toolbar select{padding:10px;border:1px solid var(--line);border-radius:var(--radius-s);background:var(--gray-100)}.hr-form h3{margin:20px 0 14px}.hr-form p{line-height:1.6;margin:14px 0}.hr-locations{border:1px solid var(--line);border-radius:10px;padding:16px;margin:16px 0;display:flex;gap:20px;flex-wrap:wrap}.hr-locations label,.hr-confirm{display:flex;align-items:center;gap:8px}.hr-locations input,.hr-confirm input{width:auto}.hr-form #hr-form-error{color:var(--red-52)}.hr-form .form-grid label{display:flex;flex-direction:column;gap:8px}.hr-form input,.hr-form select{max-width:100%}@media(max-width:1100px){.hr-permission-grid,.hr-stats{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:700px){.hr-permission-grid,.hr-stats{grid-template-columns:1fr}}

.hr-form input:not([type=checkbox]),.hr-form select{padding:12px;border:1px solid var(--line);border-radius:var(--radius-s);background-color:var(--gray-100);color:var(--ink)}.hr-form>label:not(.hr-confirm){display:flex;flex-direction:column;gap:8px}.hr-stats{grid-template-columns:repeat(3,minmax(0,1fr))}@media(max-width:700px){.hr-stats{grid-template-columns:1fr}}

.hr-table strong+small{display:block;margin-top:4px}

/* Keep shared search inputs borderless inside their icon container. */
.hr-toolbar .input-wrap input{border:0;background:transparent}
.input-wrap .icon{flex-shrink:0}

.hr-stats{grid-template-columns:repeat(2,minmax(0,1fr))}@media(max-width:700px){.hr-stats{grid-template-columns:1fr}}

.hr-stats{grid-template-columns:repeat(3,minmax(0,1fr))}.hr-profile-table{width:100%;margin:16px 0}.hr-profile-table th,.hr-profile-table td{padding:10px;text-align:left}.hr-profile-member{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 0;border-bottom:1px solid var(--line)}#hr-profile-error{color:var(--red-52)}@media(max-width:700px){.hr-stats{grid-template-columns:1fr}}
.hr-phone-field{display:grid;gap:8px;min-width:0}.hr-phone-controls{display:grid;grid-template-columns:145px minmax(0,1fr);gap:8px}.hr-phone-controls select,.hr-phone-controls input{width:100%;min-width:0;border:1px solid var(--line);background-color:var(--gray-100);border-radius:var(--radius-s);padding:10px;color:var(--ink)}.hr-form h3>small{font-size:11px;font-weight:400;margin-left:6px}.hr-deactivate-confirm{border:1px solid #dbdbdb;border-radius:10px;background:var(--gray-99);padding:16px;margin-top:20px}.hr-deactivate-confirm[hidden]{display:none}.hr-deactivate-confirm h3{margin:0}.hr-deactivate-confirm>div{display:flex;gap:8px;flex-wrap:wrap}@media(max-width:600px){.hr-phone-controls{grid-template-columns:125px minmax(0,1fr)}}

.operation-modal .operation-detail-grid + .notice { margin-top: 20px; }

.hours-import-row { padding: 16px 0; border-bottom: 1px solid var(--line, var(--olive-92)); }

.hr-phone-controls{grid-template-columns:105px minmax(0,1fr)}.hr-country-select{position:relative;min-width:0}.hr-country-value{position:absolute;left:10px;top:50%;transform:translateY(-50%);pointer-events:none;color:var(--ink);font-size:13px}.hr-phone-controls .hr-country-select select{color:transparent;cursor:pointer;padding-right:22px}.hr-phone-controls .hr-country-select option{color:var(--ink)}

.hr-sort{border:0;background:transparent;color:inherit;font:inherit;text-align:left;padding:0;cursor:pointer;display:inline-flex;align-items:center;gap:8px}.hr-sort:focus-visible{outline:2px solid #e5bd00;outline-offset:4px}

.btn.receipt-confirm-button{background:var(--green-55);border-color:var(--green-55);color:var(--gray-100)}.btn.receipt-confirm-button:hover{background:#575757;border-color:#575757}

.purchasing-filters .purchasing-search input{border:0!important;background:transparent;box-shadow:none;outline:none}.purchasing-filters .purchasing-search:focus-within{outline:2px solid var(--yellow-77);outline-offset:1px}

.purchase-history-filters .purchasing-page-size{margin-left:auto}

.purchasing-filters .purchasing-page-size,.invoice-filters .purchasing-page-size{margin-left:auto;display:flex!important;flex-direction:row!important;align-items:center;gap:10px;white-space:nowrap}.purchasing-filters .purchasing-page-size select,.invoice-filters .purchasing-page-size select{width:76px;flex-shrink:0}.invoice-filters .invoice-search{min-width:200px;flex:1 1 260px}


#count-form .count-prep-option{grid-column:1/-1;display:flex;flex-direction:row;align-items:center;gap:10px;font-size:13px;cursor:pointer}#count-form .form-grid .count-prep-option input[type=checkbox]{width:15px;height:15px;min-height:0;flex:0 0 15px;padding:0;margin:0;accent-color:var(--pill);cursor:pointer}

.order-items-table{overflow-x:auto}.order-items-table table{width:100%;min-width:720px}.order-items-table th,.order-items-table td{padding:12px!important;vertical-align:middle}.order-items-table td:first-child{width:45%;min-width:260px}.order-items-table .table-sort{border:0;background:none;color:inherit;font:inherit;font-weight:600;padding:0;cursor:pointer;text-align:left}.order-items-table input{width:105px;min-height:38px}.order-edit-modal .field{max-width:360px;margin-bottom:22px}
.order-items-table td:first-child{width:34%;min-width:240px}.order-edit-modal input{box-sizing:border-box;border:1px solid var(--line);border-radius:var(--radius-s);background:var(--gray-100);color:var(--text,var(--olive-34));font:inherit;font-size:12px;padding:10px 12px;outline:none;transition:border-color .15s,box-shadow .15s}.order-edit-modal input:focus{border-color:#c4a91d;box-shadow:0 0 0 3px #fece0726}.order-edit-modal input:disabled{background:var(--gray-97);color:var(--text-muted)}



.order-edit-modal .order-add-products{display:flex;gap:12px;align-items:end;margin:20px 0;flex-wrap:wrap}.order-edit-modal .order-add-products .field{flex:1;min-width:180px;max-width:none;margin:0}.order-add-products select{width:100%;max-width:100%;padding:10px 12px;border:1px solid var(--line);border-radius:var(--radius-s);background:white;color:inherit;font:inherit}.order-edit-modal .order-remove-cell{width:42px!important;min-width:42px!important;max-width:42px!important}.order-edit-modal .order-items-table td:first-child{min-width:240px;width:40%}
.operation-table-rows{overflow:hidden;max-width:100%}.operation-table-rows table{display:table;width:100%;min-width:0;table-layout:auto}.operation-table-rows th,.operation-table-rows td{overflow-wrap:normal;word-break:normal}.operation-table-rows .th-short,.operation-table-rows .operation-unit-inline{display:none}
@container (max-width:640px){.operation-table-rows table{table-layout:fixed}.operation-table-rows th,.operation-table-rows td{padding:10px 4px!important;font-size:11px;text-align:center;white-space:normal}.operation-table-rows th:first-child,.operation-table-rows td:first-child{width:34%;padding-left:10px!important;text-align:left;overflow-wrap:anywhere}.operation-table-rows th:nth-child(2),.operation-table-rows td:nth-child(2){display:none}.operation-table-rows th{font-size:10px;line-height:1.25}.operation-table-rows td:first-child strong{font-size:12px;line-height:1.35}.operation-table-rows .operation-unit-inline{display:block;margin-top:2px;color:var(--muted);font-size:10px}.operation-table-rows .th-full{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}.operation-table-rows .th-short{display:inline}}
.operation-table .table-sort{border:0;background:none;color:inherit;font:inherit;font-weight:inherit;padding:0;cursor:pointer;text-align:left;white-space:nowrap}.operation-table .table-sort:focus-visible{outline:2px solid var(--yellow);outline-offset:2px;border-radius:3px}
.transfer-detail-modal .operation-detail-grid small{font-weight:700}
.operation-total{display:flex;justify-content:flex-end;gap:8px;margin:12px 4px 0;font-size:12px;color:var(--muted)}.operation-total strong{color:var(--ink)}
.transfer-detail-modal .modal-foot .transfer-cancel-button{margin-right:auto}.btn.transfer-cancel-button{color:var(--red);border-color:#cbcbcb}.btn.transfer-cancel-button:hover{background:#f1f1f1}.btn.transfer-cancel-button.solid{background:var(--red);border-color:var(--red);color:var(--gray-100)}.btn.transfer-cancel-button.solid:hover{background:#454545}
.transfer-actions-head{width:116px}.transfer-line-actions{display:inline-flex;gap:6px}.transfer-line-actions .icon-btn{width:44px;height:44px;border:1px solid var(--line);border-radius:var(--radius-s);background:var(--white);color:var(--muted)}.transfer-line-actions .icon-btn svg{width:16px;height:16px}.transfer-line-check:hover{border-color:var(--green-55);color:var(--green-55)}.transfer-line-check[aria-pressed=true]{background:var(--green-55);border-color:var(--green-55);color:var(--gray-100)}.transfer-line-issue:hover{border-color:var(--amber);color:var(--amber)}.operation-table-rows tr.transfer-line-selected td{background:#f4f4f4}
.transfer-line-badge{display:inline-flex;align-items:center;gap:4px;padding:3px 8px;border-radius:999px;font-size:11px;font-weight:600;white-space:nowrap}.transfer-line-badge svg{width:12px;height:12px}.transfer-line-badge.shipped{background:#f0f0f0;color:var(--green-55)}.transfer-line-badge.not-sent{background:#f1f1f1;color:var(--red);cursor:help}.transfer-line-progress{display:block;margin-top:3px;font-size:10px;color:var(--muted)}
@container (max-width:640px){.operation-table-rows .transfer-actions-head{width:100px}.transfer-line-actions{gap:4px}.transfer-line-badge{padding:2px 6px;font-size:10px;gap:3px}.operation-table-rows td:last-child{text-align:right}}
.transfer-line-progress.not-sent{color:var(--red)}.transfer-line-progress.is-partial{color:var(--amber)}
/* Transfer progress: summary under the steps, the Items list split by stage (pending, in transit, received, not sent) with its action right-aligned below each group table, and the board card line. */
.transfer-progress-summary{margin:-6px 4px 14px;font-size:12px;font-weight:600;color:var(--ink)}
.transfer-action-hints{margin:0 4px 10px}
.transfer-shipment-groups{display:grid;gap:20px}.transfer-shipment-group-head{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin:0 4px 8px}.transfer-shipment-group h4{display:flex;align-items:center;gap:8px;margin:0;font-size:11px;font-weight:600;letter-spacing:.04em;text-transform:uppercase;color:var(--muted)}.transfer-shipment-group h4 b{font-size:13px;color:var(--ink)}.transfer-shipment-group-actions{display:flex;justify-content:flex-end;margin:10px 4px 0}.transfer-shipment-group .operation-help{margin:0 4px 10px}
/* Transfers board card: the status badge never shrinks or wraps (responsive.css lets .status wrap elsewhere); the date/items/progress summary may wrap and the footer stacks when the column is narrow. */
.task-card .transfer-card-progress{display:block;margin-top:2px;color:var(--muted)}
.board .task-card[data-action="transfer"] footer{flex-wrap:wrap;gap:6px 10px}.board .task-card[data-action="transfer"] footer>small{flex:1 1 140px;min-width:0;overflow-wrap:anywhere}.board .task-card[data-action="transfer"] footer .status{flex-shrink:0;white-space:nowrap;overflow-wrap:normal;margin-left:auto}
.transfer-issue-form .field{margin-top:14px}.transfer-issue-form .form-grid{margin-top:4px}
.btn.board-more{width:100%;justify-content:center;margin-top:10px}
.recipe-editor-modal.transfer-lines .recipe-edit-controls{grid-template-columns:minmax(85px,.7fr) minmax(100px,1fr)}.transfer-lines .recipe-add-bar{margin-top:12px}
.count-resume-actions{display:flex;gap:8px;margin-top:10px;flex-wrap:wrap}
@media(pointer:coarse){.kbd{display:none}}
.prep-batch-area-note{grid-column:1/-1;margin:0}
.waste-full{grid-column:1/-1;margin:0}
#waste-form .field output{display:block;padding:12px;border-radius:var(--radius-s);background:var(--gray-97);font-size:13px;color:var(--text-muted)}
.waste-total{color:var(--red-50)}
.count-detail-table{overflow-x:auto}.count-detail-table table{width:100%;min-width:560px}.count-detail-table th,.count-detail-table td{padding:12px!important;vertical-align:middle}.count-detail-table td:first-child{width:45%;min-width:220px}

.purchase-summary>div{grid-template-columns:1fr}.purchase-summary section:last-child{text-align:left}

.prep-history-filters{margin-bottom:0;border:0;border-bottom:1px solid var(--line);border-radius:0}

.prep-forecast-setup{padding:22px;margin-bottom:18px}.prep-forecast-title{margin-bottom:18px}.prep-forecast-title h2{font-size:16px;margin-bottom:6px}.prep-forecast-title p,.prep-forecast-basis span{font-size:12px;color:var(--text-muted);line-height:1.6}.prep-forecast-route{display:grid;grid-template-columns:minmax(240px,1.5fr) repeat(3,minmax(0,1fr));gap:16px}.prep-forecast-setup .field{margin:0;min-width:0}.prep-forecast-setup .field>label{display:block;font-size:12px;color:var(--text-muted);margin-bottom:8px}.prep-forecast-setup select,.prep-forecast-setup input[type=date]{width:100%;min-width:0;min-height:44px;border:1px solid var(--line);border-radius:8px;padding:10px 12px;background:var(--white);color:var(--ink);font:inherit}.prep-forecast-setup .hd-date-trigger{width:100%;min-height:44px}.prep-forecast-reference{display:grid;grid-template-columns:minmax(260px,1fr) minmax(240px,1fr);align-items:end;gap:20px;padding-top:20px;margin-top:20px;border-top:1px solid var(--line)}.prep-forecast-basis{display:flex;flex-direction:column;gap:5px;padding:4px 0}.prep-forecast-setup>.prep-help{margin:14px 0 0}.prep-forecast-table .panel-head>.actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap;justify-content:flex-end;flex:0 0 auto}.prep-forecast-table .prep-plan-table{min-width:930px}.prep-forecast-table .prep-plan-table th:first-child{min-width:190px}.prep-forecast-table .prep-plan-table input[data-prep-qty]{width:104px;font-weight:650}.prep-forecast-table .prep-plan-notes{padding-top:8px}
@media(max-width:1100px){.prep-forecast-route{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:700px){.prep-forecast-setup{padding:18px}.prep-forecast-route,.prep-forecast-reference{grid-template-columns:1fr}.prep-forecast-table .panel-head{align-items:flex-start;flex-direction:column;gap:16px}.prep-forecast-table .panel-head>.actions{justify-content:flex-start}.prep-forecast-setup .hd-date-trigger{max-width:100%}}


.prep-planning-filters{position:relative;flex-wrap:wrap;align-items:center}.prep-planning-filters .prep-destination{display:flex;flex-direction:row;position:relative;align-items:center;gap:8px;margin:0;cursor:pointer;min-height:44px}.prep-destination>svg{width:14px;height:14px}.prep-planning-filters .prep-destination select{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer}.prep-destination:focus-within{outline:2px solid var(--ink);outline-offset:2px}.prep-comparison{position:relative}.prep-comparison summary{list-style:none;cursor:pointer}.prep-comparison summary::-webkit-details-marker{display:none}.prep-comparison summary svg{width:14px;height:14px}.prep-comparison-options{position:absolute;z-index:30;top:calc(100% + 8px);left:0;width:390px;max-width:calc(100vw - 48px);background:var(--white);border:1px solid var(--line);border-radius:14px;padding:8px;box-shadow:0 12px 32px #0002}.prep-comparison-options button{display:flex;align-items:center;justify-content:space-between;gap:18px;width:100%;padding:15px 12px;background:transparent;border:0;border-radius:8px;color:var(--ink);font:inherit;text-align:left;cursor:pointer}.prep-comparison-options button[aria-pressed=true],.prep-comparison-options button:hover{background:var(--bg)}.prep-comparison-options button:disabled{opacity:.45;cursor:default}.prep-comparison-options span{font-size:12px;color:var(--text-muted)}@media(max-width:700px){.prep-comparison-options{left:auto;right:0;width:min(350px,calc(100vw - 48px))}.prep-planning-filters{gap:10px}}

.prep-plan-review{list-style:none;padding:0;margin:16px 0;max-height:220px;overflow:auto}.prep-plan-review li{display:flex;justify-content:space-between;gap:16px;padding:10px 0;border-bottom:1px solid var(--line);font-size:13px}.prep-plan-review strong{white-space:nowrap}

.prep-history-availability{padding:16px 20px;margin-bottom:16px;border:1px solid var(--line);border-radius:12px;background:var(--yellow-99b);font-size:13px;line-height:1.6}.prep-history-availability p{margin:0 0 10px}.prep-history-availability .btn{white-space:normal;text-align:left;height:auto;min-height:44px}

/* Filter bars use a separate surface, matching the Invoices layout. */
.standalone-filter-bar{border:1px solid var(--line)!important;border-radius:var(--radius,14px)!important;background:var(--white);box-shadow:none}
@media screen{.standalone-filter-bar,.prep-filters,.report-filter-panel,.handover-controls{margin-bottom:16px!important}}

/* Save and delete actions share the same color and icon semantics everywhere. */
button.action-save{background:var(--green-55)!important;border-color:var(--green-55)!important;color:var(--gray-100)!important}
button.action-save:hover:not(:disabled){background:#575757!important;border-color:#575757!important}
button.action-delete{background:var(--red-50)!important;border-color:var(--red-50)!important;color:var(--gray-100)!important}
button.action-delete:hover:not(:disabled){background:#373737!important;border-color:#373737!important}
.page-heading .eyebrow{display:none}

/* Emphasize selected values only in filter bars; forms and dialogs stay regular. */
:is(.toolbar,.prep-filters,.report-filters,.handover-filters,.count-detail-toolbar) select:not([multiple]):not([size]),:is(.toolbar,.prep-filters,.report-filters,.handover-filters,.count-detail-toolbar) .hd-date-trigger .hd-date-value{font-weight:700!important}
.summary-filter{border:0;background:none;color:inherit;font:inherit;text-align:left;padding:0;cursor:pointer;text-decoration:underline;text-decoration-color:transparent;text-underline-offset:3px}.summary-filter:hover,.summary-filter[aria-pressed=true]{text-decoration-color:currentColor}
.topbar .top-actions{margin-left:auto}

.transfer-inline-issue{margin-top:12px;max-width:440px;white-space:normal;text-align:left}.transfer-inline-issue .field{margin-top:10px}.transfer-inline-issue input,.transfer-inline-issue textarea{width:100%;min-width:0}.transfer-inline-issue-actions{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:8px;margin-top:12px}

.transfer-inline-issue .btn{white-space:nowrap}


@media(max-width:640px){.order-items-table .transfer-inline-issue{max-width:calc(100vw - 80px)}}

.count-inline-editing select{width:100%;min-width:110px}.count-history-detail .modal-foot .error-text{margin-right:auto;max-width:60%}

.count-detail-table th:nth-child(3),.count-detail-table td:nth-child(3){width:90px}.count-detail-table th:nth-child(4),.count-detail-table td:nth-child(4){width:1%;white-space:nowrap}.count-detail-table:has(.count-inline-editing) th:nth-child(4),.count-detail-table:has(.count-inline-editing) td:nth-child(4){width:160px}
.count-history-detail .count-detail-meta{grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
@media(max-width:900px){.count-history-detail .count-detail-meta{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:560px){.count-history-detail .count-detail-meta{grid-template-columns:minmax(0,1fr)}}
.count-history-detail .count-detail-table th:nth-child(3),.count-history-detail .count-detail-table td:nth-child(3){text-align:center}
.count-detail-table :is(th,td):nth-child(5){width:1%;white-space:nowrap;text-align:right;font-variant-numeric:tabular-nums}
.count-history-detail .count-detail-table .count-inline-qty{margin-inline:auto;text-align:center}

.catalog-edit-heading>.inventory-photo{width:100px;height:100px;flex:0 0 100px;aspect-ratio:1;overflow:hidden;border-radius:10px;cursor:pointer}
.catalog-edit-heading>.inventory-photo img{width:100%;height:100%;object-fit:cover}
.catalog-location-prices{margin-top:16px;border-top:1px solid var(--olive-92)}
.catalog-location-prices>div{display:grid;grid-template-columns:1fr auto;gap:4px 16px;padding:12px 0;font-size:12px}
.catalog-location-prices>div+div{border-top:1px solid var(--olive-92)}
.catalog-location-prices small{grid-column:2;color:var(--text-muted)}

.catalog-section .catalog-conversion-row{width:min(100%,320px);margin:8px auto;grid-template-columns:minmax(0,1fr) 12px 80px minmax(0,1fr) 40px;gap:8px;text-align:center}
.catalog-conversion-row>span{min-width:0;overflow-wrap:anywhere}
.catalog-conversion-row>span:first-child{text-align:center}
.catalog-section .catalog-conversion-row>.icon-btn{width:40px;height:40px;min-width:40px;min-height:40px;padding:0;border-radius:50%;display:grid;place-items:center}

@media(max-width:600px){.catalog-edit-heading>.inventory-photo{width:78px;height:78px;flex-basis:78px}}

/* One restrained, indeterminate read signal. Never suggests a measured percentage. */
.loading-notice{position:relative;display:flex;align-items:center;min-height:38px;padding:12px 0 10px;margin-bottom:18px;overflow:hidden;color:var(--text-muted);font-size:12px;line-height:1.5}
.loading-notice small{font-size:inherit;margin-left:6px}
.loading-track{position:absolute;inset:0 0 auto;height:2px;background:var(--olive-92);overflow:hidden}
.loading-track:after{content:'';position:absolute;inset:0;background:var(--yellow-87);transform:translateX(-100%);animation:loading-read 1.7s cubic-bezier(.16,1,.3,1) infinite}
.loading-placeholder{display:block;height:12px;width:65%;max-width:100%;border-radius:4px}
/* Shimmer: one band of light sweeps left to right across every placeholder at once. The gradient is fixed to the
   window, so neighbouring placeholders share the same band instead of each flashing on its own. */
:root{--loading-base:var(--well);--loading-shine:#ffffffb8}
:root[data-theme=dark]{--loading-shine:#ffffff26}
@keyframes loading-shimmer{from{background-position:100% 0}to{background-position:0 0}}
/* The placeholder's fill and the moving band are set in theme.css, which loads after this file. */
.loading-short{width:34%;height:10px}.loading-medium{width:62%}.loading-long{width:85%}.loading-value{width:44%;height:32px}.loading-title{width:230px;height:30px}
/* Filter bar controls take the real controls' size: 40px pills and the round Clear filters button. */
.loading-search{width:200px;height:40px;border-radius:999px}.loading-filter{width:120px;height:40px;border-radius:999px}.loading-date{width:158px;height:40px;border-radius:999px}
.loading-placeholder.loading-circle{flex:none;width:40px;height:40px;border-radius:50%}
.loading-stats .stat-card{display:grid;gap:20px;min-height:152px}
.loading-toolbar{gap:10px;flex-wrap:wrap;align-items:center}
.loading-row td{height:67px}.loading-row td>.loading-placeholder+.loading-placeholder{margin-top:10px}
.loading-table{min-width:640px;width:100%}.loading-table th{white-space:nowrap}
.loading-chart,.loading-attention,.loading-card{padding:24px}
.loading-chart-area{height:240px;display:flex;align-items:flex-end;border-bottom:1px solid var(--olive-92);margin-top:24px;background:repeating-linear-gradient(to top,transparent 0,transparent 59px,var(--gray-95) 59px,var(--gray-95) 60px)}
.loading-chart{min-height:326px}
.loading-attention{display:grid;align-content:start;gap:22px}
.loading-card{display:grid;gap:24px;min-height:220px}
.loading-board .day-card{display:grid;gap:20px}.loading-board .day-column{min-width:0}
@keyframes loading-read{0%{transform:translateX(-100%)}100%{transform:translateX(100%)}}
@media(max-width:700px){.loading-notice small{display:block;margin-left:0}.loading-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.loading-stats .stat-card{min-height:130px;padding:18px}.loading-chart-area{height:190px}.loading-toolbar .loading-search{flex:1 1 100%}.loading-toolbar .loading-filter{flex:1 1 100px}.loading-board{grid-template-columns:1fr}}
@media(prefers-reduced-motion:reduce){.loading-track:after{animation:none;transform:none;background:var(--olive-67)}.loading-placeholder{animation:none}}
/* Boot shell: the workspace's own dock and page heading, so nothing moves when the page arrives. */
.loading-dock{display:block;width:100%;height:100%}
@media(max-width:1080px){.workspace-booting .loading-dock{width:min(300px,78vw);height:48px}}
.loading-page-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;min-height:46px;margin-bottom:24px}
.loading-page-heading>div:first-child{display:grid;gap:12px;flex:1 1 auto;min-width:0}
.loading-page-heading .loading-long{width:min(420px,70%)}
.loading-page-actions{display:flex;gap:10px;flex:none}
.loading-pill{width:136px;height:46px;border-radius:999px}
@media(max-width:700px){.loading-page-actions .loading-pill:first-child{display:none}.loading-pill{width:110px}}
/* Page-shaped placeholders: they take the sizes of the real tiles, panels, cards and board columns. */
.loading-db .loading-kpi{display:grid;align-content:space-between;gap:10px;min-height:115px}
.loading-db .loading-kpi{--loading-base:color-mix(in srgb,currentColor 12%,transparent)}
.loading-db .loading-panel .panel-head{min-height:73px;align-items:center}
.loading-db .db-an{min-height:355px}.loading-db .db-an .loading-chart-area{margin:0 20px 20px;height:240px}
.loading-db :is(.db-heatc,.db-vis){min-height:261px}.loading-db :is(.db-orders,.db-route){min-height:304px}
.loading-fill{display:grid;gap:18px;padding:8px 20px 20px}
/* Page tabs: underlined labels, as on the page. */
.loading-tab{display:flex;align-items:center;height:40px;padding:0 12px}
.loading-placeholder.loading-tab{width:64px;height:12px;padding:0}
.loading-grid-card{display:grid;align-content:start;gap:16px}
.supplier-grid>.loading-grid-card{min-height:135px}.recipe-grid>.loading-grid-card{min-height:119px}
.loading-grid-card .loading-short:first-child{width:40px;height:40px;border-radius:10px}
.loading-kanban .loading-task{display:grid;gap:18px;min-height:160px}
.invoice-summary.loading-panel{display:grid;gap:12px;min-height:66px}
/* The read signal takes no layout space: its track runs along the top edge of the placeholders and its text is
   announced to assistive technology, so the placeholders sit exactly where the page's content will. */
.loading-surface{position:relative}
.loading-surface>.loading-notice{position:absolute;top:-10px;left:0;right:0;height:2px;min-height:0;margin:0;padding:0;overflow:hidden}
.loading-surface>.loading-notice>span:not(.loading-track){position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
/* The shimmer shows that the page is loading; no progress line runs under the title. */
.loading-surface>.loading-notice>.loading-track{display:none}
/* First appearance of the dock after loading: a circle grows from the logo until the whole rail shows. */
@keyframes dock-reveal{from{clip-path:circle(0 at 50% 34px)}to{clip-path:circle(160% at 50% 34px)}}
@keyframes dock-reveal-bar{from{clip-path:circle(0 at 50% 50%)}to{clip-path:circle(120% at 50% 50%)}}
.dock-col.dock-reveal{animation:dock-reveal .9s cubic-bezier(.65,0,.35,1) both}
@media(max-width:1080px){.dock-col.dock-reveal{animation-name:dock-reveal-bar}}
@media(prefers-reduced-motion:reduce){.dock-col.dock-reveal{animation:none}}

/* Doogy AI loading: the page's own layout with neutral shapes in place of the avatar, text and controls. */
.loading-assistant .assistant-hello,.loading-assistant .assistant-question{display:flex;justify-content:center}
.loading-assistant .assistant-hello{height:1.1em;align-items:center}
.loading-placeholder.loading-assistant__avatar{display:block;width:100%;height:100%;border-radius:40%}
.loading-assistant .loading-assistant-hello{width:min(480px,80vw);height:.9em;border-radius:14px}
.loading-assistant .loading-assistant-question{width:220px;height:16px}
.loading-assistant__compose{display:grid;gap:22px;min-height:102px;padding:18px 16px 12px}
.loading-assistant__compose>.loading-placeholder{width:34%}
.loading-assistant__bar{display:flex;align-items:center;justify-content:space-between}
.loading-assistant__bar .loading-placeholder{width:180px}
.loading-placeholder.loading-assistant__send{flex:none;width:40px;height:40px;border-radius:50%}
.loading-pill-sm{width:150px;height:36px;border-radius:999px}
.loading-assistant .assistant-agent{cursor:default}
.loading-placeholder.loading-agent__face{display:block;width:100%;height:100%;border-radius:40%}
.loading-agent .assistant-agent__text{display:grid;grid-column:1/3;grid-row:2/4;gap:10px}
.loading-still{animation:none!important}
/* Reports, Food Cost and Settings loading reuse each page's own grids. */
/* Food Cost: four short figures, a wide chart, then two panels side by side (5 and 7 of 12 columns). */
/* Compact figures (Food Cost, Sales): one row per card. */
.loading-stats--compact .stat-card{min-height:70px;display:flex;align-items:center;gap:16px}
/* My Day: one-line tiles, the label on the left and the count on the right. */
.loading-stats.loading-stats--slim .stat-card{min-height:52px;display:flex;flex-direction:row;align-items:center;justify-content:space-between;gap:16px;padding-top:0;padding-bottom:0}
.loading-stats--slim .stat-card .loading-medium{flex:none;width:72px}.loading-stats--slim .stat-card .loading-value{flex:none;width:24px;height:22px}
.loading-stats--compact .stat-card .loading-short{display:none}
.loading-fc>.fc-panel{grid-column:span 12;min-height:390px}
.loading-fc>.fc-panel:first-child{min-height:600px}
@media(min-width:1200px){.loading-fc>.fc-panel:nth-child(2){grid-column:span 5}.loading-fc>.fc-panel:nth-child(3){grid-column:span 7}}
.loading-fc .loading-chart-area{margin:0 20px 20px;height:500px}
.loading-report-filters{display:flex;flex-wrap:wrap;gap:10px}
.loading-report-summary .stat-card{flex:1 1 220px;display:grid;gap:12px;min-height:96px}
/* A page's own row of controls (date range, export) under its heading, on the right. */
.loading-page-row{display:flex;justify-content:flex-end;gap:8px;height:40px;margin-bottom:16px}
/* Summary strip: label, figure and note, as tall as the real items. */
.loading-strip .summary-strip__item{display:grid;align-content:center;gap:10px;min-height:91px}
.loading-strip .summary-strip__item .loading-value{height:24px}
/* Lists: the pagination inside the table card (range, page size, Previous, page, Next). */
.loading-pagination{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:60px;padding:0 20px;border-top:1px solid var(--line)}
.loading-pagination__info,.loading-pagination__pages{display:flex;align-items:center;gap:12px}
.loading-range{width:56px;height:12px}.loading-size{width:51px;height:40px;border-radius:999px}.loading-page-btn{width:88px;height:40px;border-radius:999px}
/* A panel's own title row above its table, with a button or a view switch on the right. */
.loading-panel-head{display:flex;align-items:center;justify-content:space-between;gap:16px;min-height:73px;padding:0 20px;border-bottom:1px solid var(--line)}
.loading-panel-head>div{display:grid;gap:10px;width:min(360px,45%)}
.loading-segmented{width:267px;height:40px;border-radius:999px}
/* My Day view bar, Recipes folder row and Shift Handover's labelled filters. */
.loading-view-bar{display:flex;align-items:center;justify-content:space-between;min-height:69px;padding:0 20px;margin-bottom:16px}
.loading-view-bar>.loading-placeholder{width:120px}.loading-view-bar>span{display:flex;gap:6px}
.loading-folders .loading-pill-sm{width:110px;height:40px}
.handover-tabs .loading-pill-sm{width:116px;height:40px}
.loading-labelled{display:grid;gap:12px;width:130px}.loading-labelled.is-wide{width:236px}.loading-labelled.is-date{width:73px}
.loading-caption{width:60%;height:10px}.loading-field{width:100%;height:40px;border-radius:999px}
/* Report pages: the Reports link above the title. */
.loading-back{width:72px;height:12px;margin-bottom:6px}
.loading-report-chart{margin:0 20px 20px;height:600px}
.loading-form{min-height:150px}
@media (max-height:860px){.loading-agent .assistant-agent__text{grid-column:2/4;grid-row:1/3;gap:8px}}

/* Login: two-step sign in (email, then password) on the left; an ink stage with a capability reel and a live-looking tile on the right. */
.login-page{min-height:100dvh;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);background:var(--bg);color:var(--text)}
.login-content{min-width:0;display:flex;flex-direction:column;padding:28px clamp(24px,7vw,96px) 22px;min-height:100dvh}
.login-brand{display:flex;align-items:center;gap:12px}.login-brand img{display:block;width:auto;height:46px}.login-brand span{font-size:var(--fs-xs);font-weight:700;letter-spacing:.14em;text-transform:uppercase;color:var(--faint)}
.login-form-wrap{width:100%;max-width:392px;margin:auto 0;padding:48px 0 40px;animation:login-in .6s var(--ease-out) both}
@keyframes login-in{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:none}}
.login-form-wrap h1{font-size:28px;font-weight:650;letter-spacing:-.02em;line-height:1.15}
.login-sub{margin-top:8px;font-size:var(--fs-sm);color:var(--muted);display:flex;flex-wrap:wrap;align-items:center;gap:0 8px}
.login-sub strong{color:var(--text);font-weight:600;overflow-wrap:anywhere}
.login-text-button{padding:0;border:0;background:none;color:var(--text);font:inherit;font-size:var(--fs-sm);font-weight:600;text-decoration:underline;text-underline-offset:3px;text-decoration-color:var(--line-2);cursor:pointer}
.login-text-button:hover{text-decoration-color:currentColor}
.login-subtitle{margin-top:8px;font-size:var(--fs-sm);line-height:1.6;color:var(--muted)}
/* floating-label field */
.lf{position:relative;display:flex;align-items:center;height:58px;margin-top:22px;border-radius:14px;background:var(--surface);box-shadow:inset 0 0 0 1px var(--line-2);transition:box-shadow .2s}
.lf:focus-within{box-shadow:inset 0 0 0 1.5px var(--text)}
.lf__label{position:absolute;left:16px;top:50%;transform:translateY(-50%);font-size:var(--fs-md);color:var(--faint);pointer-events:none;transition:transform .18s var(--ease-out),font-size .18s,color .18s;transform-origin:left center}
.lf:focus-within .lf__label,.lf:has(input:not(:placeholder-shown)) .lf__label{transform:translateY(-19px);font-size:11px;font-weight:600;color:var(--muted)}
.lf input{flex:1;min-width:0;height:100%;padding:18px 16px 0;border:0;background:none;outline:none;font-size:var(--fs-md);color:var(--text)}
.lf input::placeholder{color:transparent}
.lf input:-webkit-autofill{-webkit-box-shadow:0 0 0 1000px var(--surface) inset;-webkit-text-fill-color:var(--text)}
.login-eye{flex:none;margin-right:6px;width:40px;height:40px;border:0;border-radius:50%;background:none;display:grid;place-items:center;color:var(--muted);cursor:pointer}
.login-eye:hover{background:var(--well);color:var(--text)}.login-eye .icon{width:18px;height:18px}
.login-forgot{margin-top:12px;font-size:var(--fs-sm)}
.login-feedback{margin-top:14px;padding:11px 14px;border-radius:12px;background:var(--warn-soft);color:var(--warn);font-size:var(--fs-sm);line-height:1.5}.login-feedback[hidden]{display:none}
.login-submit{position:relative;margin-top:22px;width:100%;height:52px;border:0;border-radius:999px;background:var(--pill);color:var(--on-pill);font:inherit;font-size:var(--fs-md);font-weight:650;display:flex;align-items:center;justify-content:center;gap:10px;cursor:pointer;transition:transform .2s var(--ease-out),opacity .2s,background-color .2s}
.login-submit:hover{transform:translateY(-1px)}.login-submit:active{transform:none}
.login-submit:disabled{cursor:progress;opacity:.9}
.login-submit:disabled::before{content:"";width:16px;height:16px;border-radius:50%;border:2px solid #ffffff55;border-top-color:currentColor;animation:login-spin .8s linear infinite}
@keyframes login-spin{to{transform:rotate(360deg)}}
.login-submit .icon{width:18px;height:18px}
/* steps */
#login-form[data-step=email] .lf--password,#login-form[data-step=email] .login-forgot,#login-form[data-step=email] .login-sub--password{display:none}
#login-form[data-step=password] .lf--email,#login-form[data-step=password] .login-sub--email{display:none}
.login-help{display:grid;gap:14px;margin-top:18px;font-size:var(--fs-sm);line-height:1.7;color:var(--muted)}
.login-back{display:inline-flex;align-items:center;gap:6px;margin-top:22px;padding:0;border:0;background:none;color:var(--text);font:inherit;font-size:var(--fs-sm);font-weight:600;cursor:pointer}.login-back .icon{width:16px;height:16px}
.login-footer{display:flex;justify-content:center;text-align:center;color:var(--faint);font-size:var(--fs-xs)}
/* right: stage */
.login-visual{display:flex;flex-direction:column;gap:22px;padding:20px 20px 28px 0}
.login-stage{position:relative;flex:1 1 auto;min-height:520px;overflow:hidden;border-radius:var(--r);background:#121212;color:#ededeb;isolation:isolate}
.login-reel-wrap{position:absolute;inset:0;padding:0 44px;mask-image:linear-gradient(180deg,#0000 0,#000 18%,#000 82%,#0000 100%)}
.login-reel{position:absolute;left:44px;top:50%;margin:0;padding:0;list-style:none;animation:login-reel 26s linear infinite}
.login-reel li{height:52px;display:flex;align-items:center;font-size:clamp(16px,1.45vw,22px);font-weight:500;letter-spacing:-.01em;white-space:nowrap}
.login-reel--dim{color:#5a5a57}
.login-band{position:absolute;left:0;right:0;top:50%;height:52px;transform:translateY(-50%);pointer-events:none;overflow:hidden}
.login-band .login-reel{top:26px;left:44px;color:#fff}
@keyframes login-reel{from{transform:translateY(0)}to{transform:translateY(-50%)}}
.login-pitch{padding:0 4px}
.login-pitch h2{font-size:22px;font-weight:650;letter-spacing:-.02em;line-height:1.2}
.login-pitch p{margin-top:8px;font-size:var(--fs-sm);line-height:1.6;color:var(--muted);max-width:60ch}
@media (max-width:1100px){.login-page{grid-template-columns:minmax(0,1fr) minmax(0,.9fr)}.login-reel li{font-size:18px;height:46px}}
@media (max-width:900px){.login-page{display:block}.login-content{min-height:100dvh;padding:22px 20px 18px}.login-brand img{height:40px}.login-form-wrap{max-width:420px;margin:auto;padding:40px 0 32px}.login-visual{display:none}.login-footer{max-width:420px;width:100%;margin:0 auto}}
@media (prefers-reduced-motion:reduce){.login-form-wrap,.login-reel,.login-preview,.lp-bars i{animation:none}}
@media (pointer:coarse){.login-text-button,.login-back{min-height:44px;display:inline-flex;align-items:center}}

#mfa-form>label{display:block;font-size:12px;font-weight:600;margin:16px 0 9px;color:var(--olive-40)}
.mfa-intro,.mfa-help,.mfa-enrollment,.mfa-recovery{font-size:12px;line-height:1.65;color:#59644f}.mfa-intro{padding:12px 14px;background:var(--gray-99);border-radius:10px;margin-bottom:16px}.mfa-help{margin:10px 0}.mfa-enrollment p{margin:14px 0}.mfa-qr{display:block;width:196px;height:196px;max-width:100%;margin:16px auto;background:white;border:8px solid white}.mfa-secret{display:block;overflow-wrap:anywhere;padding:10px;background:var(--gray-99);user-select:all}.mfa-enrollment summary,.mfa-recovery summary{cursor:pointer;color:var(--olive-47);font-weight:600}.mfa-recovery{margin:24px 0 16px}.mfa-recovery p{margin-top:8px}.mfa-factor{width:100%;height:44px;border:1px solid var(--olive-90);border-radius:8px;padding:0 10px;background:var(--gray-100)}#mfa-code{font-size:21px;letter-spacing:6px;font-variant-numeric:tabular-nums}
@media(pointer:coarse){.login-text-button,.login-back{min-height:44px;display:inline-flex;align-items:center}}

/* Shared entry shell mirrors the workspace without exposing navigation before auth. */
.workspace-loading{display:grid;grid-template-columns:236px minmax(0,1fr);min-height:100vh;min-height:100dvh;background:var(--gray-99);color:var(--gray-24)}
.workspace-loading-sidebar{background:var(--gray-21);padding:32px}
.workspace-loading-sidebar img{width:144px;max-width:100%}
.workspace-loading-nav{display:grid;gap:30px;margin-top:64px}
.workspace-loading-sidebar .loading-placeholder{background:var(--olive-36)}
.workspace-loading-main{min-width:0}
.workspace-loading-topbar{height:78px;background:var(--gray-100);border-bottom:1px solid var(--gray-95);display:flex;align-items:center;justify-content:flex-end;gap:24px;padding:0 32px}
.workspace-loading-content{padding:36px;max-width:1600px;margin:auto}
.workspace-loading-heading{display:grid;gap:16px;margin-bottom:32px}
.workspace-loading-error{max-width:480px;margin:80px auto;text-align:center;overflow-wrap:anywhere}
.workspace-loading-error h1{font-size:20px;font-weight:600;line-height:1.4}
.workspace-loading-error p{margin-top:12px;line-height:1.6;color:var(--text-muted)}
.workspace-loading-actions{display:flex;flex-wrap:wrap;gap:12px;justify-content:center;margin-top:24px}
@media(max-width:900px){.workspace-loading{grid-template-columns:minmax(0,1fr)}.workspace-loading-sidebar{display:none}.workspace-loading-content{padding:24px 18px}.workspace-loading-topbar{height:68px;padding:0 18px}}

.recipe-photo{display:flex;gap:18px;align-items:center;border:1px solid var(--line,var(--olive-92));padding:16px;border-radius:14px;margin:24px 0;background:var(--gray-99)}
.recipe-photo-preview{width:100px;height:100px;flex-shrink:0;display:grid;place-items:center;border-radius:10px;background:var(--gray-96);color:var(--text-muted);overflow:hidden}
.recipe-photo-preview img{width:100%;height:100%;object-fit:cover}
.recipe-photo-preview>.icon{width:30px;height:30px}
.recipe-photo p{font-size:12px;line-height:1.6;margin:5px 0 9px;color:var(--text-muted)}
.recipe-photo .error-text{color:var(--red-52);margin-bottom:0}
.recipe-photo-actions{display:flex;gap:8px;flex-wrap:wrap}
.recipe-detail-tabs{display:flex;gap:6px;border-bottom:1px solid var(--olive-92);margin-top:24px;overflow-x:auto}
.recipe-detail-tabs button{background:transparent;border:0;border-bottom:3px solid transparent;padding:15px 16px;white-space:nowrap;font:inherit;font-size:14px;font-weight:650;color:var(--text-muted);cursor:pointer}
.recipe-detail-tabs button[aria-selected="true"]{color:#303030;border-color:var(--yellow-87);background:var(--yellow-99)}
.recipe-detail-panel{padding-top:4px;min-height:200px}
.recipe-detail-panel[hidden]{display:none!important}
.recipe-steps{list-style:none;padding:0;display:grid;gap:14px}
.recipe-steps li{display:flex;gap:15px;padding:18px;border:1px solid var(--olive-92);border-radius:12px}
.recipe-step-number{display:grid;place-items:center;flex:0 0 30px;height:30px;background:#fff4b6;border-radius:50%;color:#464646;font-weight:700}
.recipe-steps h3{font-size:15px;margin:3px 0 8px}
.recipe-steps p,.recipe-step-notes{white-space:pre-wrap;line-height:1.7;color:var(--text-muted);margin:0}
@media(max-width:520px){.recipe-detail-tabs button{padding:14px 10px;font-size:12px}.recipe-photo{gap:12px;padding:12px}.recipe-photo-preview{width:78px;height:90px}}

.inventory-table .inventory-photo-column,.prep-history-table .inventory-photo-column{width:76px;min-width:76px;padding-right:8px}
.inventory-photo{width:52px;height:52px;display:grid;place-items:center;border:1px solid var(--olive-92);border-radius:10px;overflow:hidden;background:var(--gray-97);color:var(--text-muted);cursor:pointer;padding:0}
.inventory-photo:hover{border-color:var(--yellow-77);background:var(--yellow-99b)}
.inventory-photo img{width:100%;height:100%;object-fit:cover}
.inventory-photo .icon{width:22px;height:22px}

/* Recipe detail and editing share the standard centered dialog. */
.modal.recipe-centered{width:min(1120px,calc(100vw - 40px));max-width:1120px}
.recipe-centered .recipe-detail-tabs{flex-wrap:nowrap;overflow-x:auto;overflow-y:hidden;gap:6px}
.recipe-centered .recipe-detail-tabs button{flex:0 0 auto;white-space:nowrap;overflow-wrap:normal}
.recipe-editor-modal .recipe-edit-row{display:grid;grid-template-columns:minmax(240px,1.5fr) minmax(360px,1.6fr);align-items:center;gap:20px;border:0;border-bottom:1px solid var(--line);border-radius:0;margin:0;padding:16px 0}
.recipe-editor-modal .recipe-edit-item{margin:0;align-items:center}
.recipe-editor-modal .recipe-edit-controls{grid-template-columns:minmax(85px,.7fr) minmax(100px,1fr) minmax(110px,1fr)}
.recipe-editor-modal .component-observation{grid-column:1/-1}
.recipe-centered .recipe-components table{display:table;min-width:560px!important;table-layout:fixed}
.recipe-centered .recipe-components table>thead{display:table-header-group;position:static;width:auto;height:auto;overflow:visible;clip-path:none}
.recipe-centered .recipe-components table>thead>tr,.recipe-centered .recipe-components table>tbody>tr{display:table-row}
.recipe-centered .recipe-components table>tbody{display:table-row-group;padding:0}
.recipe-centered .recipe-components table th,.recipe-centered .recipe-components table td{display:table-cell;position:static;width:auto;border-radius:0}
.recipe-centered .recipe-components table td[data-column-label]::before{display:none}
.recipe-centered .recipe-components table th:first-child{width:60%}
.recipe-centered .recipe-components{overflow-x:auto}
.recipe-editor-modal .modal-foot{flex-wrap:wrap}
@media(max-width:760px){.recipe-editor-modal .recipe-edit-row{grid-template-columns:1fr;gap:12px}.recipe-editor-modal .recipe-edit-controls .field:last-child{grid-column:auto}.modal.recipe-centered{width:calc(100vw - 24px)}.recipe-centered .recipe-detail-tabs button{padding:12px 10px;font-size:12px}}

/* Per-component notes sit under quantity, unit and type and span the full controls width at every size. */
.recipe-editor-modal .recipe-edit-controls .field.recipe-edit-notes{grid-column:1/-1}
.recipe-editor-modal .recipe-edit-notes textarea{width:100%;box-sizing:border-box;min-height:38px;padding:9px;font-size:11px;resize:vertical}
.recipe-editor-modal .recipe-add-bar[hidden]{display:none}
.recipe-editor-modal [data-action="save-recipe"]{background:var(--green);border-color:var(--green);color:var(--gray-100)}
.recipe-editor-modal [data-action="save-recipe"]:hover{background:var(--green-48);border-color:var(--green-48)}
.recipe-centered .cost-metrics:not(.cost-prep){grid-template-columns:repeat(auto-fit,minmax(min(140px,100%),1fr));grid-auto-flow:row;overflow:visible;padding-bottom:4px}

.recipe-editor-modal .recipe-edit-row{grid-template-columns:minmax(220px,1.3fr) minmax(360px,1.6fr) 36px;gap:16px}
.recipe-editor-modal .recipe-edit-row>.recipe-remove{align-self:center;justify-self:end}
@media(max-width:760px){.recipe-editor-modal .recipe-edit-row{grid-template-columns:minmax(0,1fr) 36px}.recipe-editor-modal .recipe-edit-item{grid-column:1}.recipe-editor-modal .recipe-edit-controls{grid-column:1;grid-row:2;min-width:0}.recipe-editor-modal .recipe-edit-row>.recipe-remove{grid-column:2;grid-row:1/3}}

.recipe-centered .recipe-components table th:nth-child(2),.recipe-centered .recipe-components table td:nth-child(2){text-align:center}

.cost-metric.cost-good{background:var(--gray-96);border-color:#dcdcdc}.cost-metric.cost-good dd{color:var(--green-50)}
.cost-metric.cost-warning{background:var(--yellow-99b);border-color:var(--yellow-88)}.cost-metric.cost-warning dd{color:#8b6800}
.cost-metric.cost-high{background:var(--red-97);border-color:#cbcbcb}.cost-metric.cost-high dd{color:var(--red-52)}

.cost-total-line{display:grid;grid-template-columns:minmax(0,1fr) 20px minmax(0,1fr) 20px minmax(0,1fr);align-items:stretch;gap:8px;margin:0 0 14px;overflow:visible;padding-bottom:4px}
.cost-total-line .cost-operator{display:flex;align-items:center;justify-content:center;font-size:22px;color:var(--muted)}

/* Reflow recipe costs according to the actual space inside the dialog. */
.recipe-centered .cost-location{container-type:inline-size;min-width:0}
.recipe-centered .cost-metric dt,.recipe-centered .cost-metric dd{overflow-wrap:anywhere}
@container(max-width:420px){
 .cost-total-line{grid-template-columns:minmax(0,1fr) 18px minmax(0,1fr);gap:6px}
 .cost-total-line>.cost-operator:nth-child(4),.cost-total-line>.cost-metric:last-child{grid-column:1/-1}
 .recipe-centered .cost-metrics:not(.cost-prep){grid-template-columns:repeat(2,minmax(0,1fr))}
 .recipe-centered .cost-metric{padding:12px 10px}
 .recipe-centered .cost-metric dd{font-size:17px}
}
@media(max-width:600px){
 .recipe-centered .recipe-detail-tabs{flex-wrap:wrap;overflow:visible}
 .recipe-centered .recipe-detail-tabs button{flex:1 1 auto;white-space:normal}
 .recipe-centered .recipe-components table{min-width:0!important;table-layout:fixed;width:100%}
 .recipe-centered .recipe-components table th:first-child{width:55%}
 .recipe-centered .recipe-components table th,.recipe-centered .recipe-components table td{overflow-wrap:anywhere;padding:10px 6px!important}
 .recipe-centered .recipe-components table:has(.recipe-photo-column) :is(th,td):nth-child(3){width:78px!important}
 .recipe-centered .recipe-components table:has(.recipe-photo-column) :is(th,td):nth-child(4){width:84px!important}
 .recipe-centered .recipe-components td.recipe-line-cost{white-space:normal}
 .recipe-editor-modal .recipe-edit-controls{grid-template-columns:minmax(0,1fr)}
}

.inline-item-search{position:relative;min-width:0;width:100%}.inline-item-search .input-wrap{margin:0;width:100%}.inline-item-search input{width:100%;min-width:0}.item-search-options{margin-top:6px;border:1px solid var(--line);border-radius:9px;background:var(--gray-100);max-height:300px;overflow-y:auto;overflow-x:hidden}.item-search-options[hidden]{display:none}.item-search-options button{display:block;width:100%;text-align:left;border:0;border-bottom:1px solid var(--line);background:var(--gray-100);padding:12px 14px;color:var(--ink)}.item-search-options button:hover,.item-search-options button[aria-selected=true]{background:var(--yellow-99b)}.item-search-options strong,.item-search-options small{display:block;overflow-wrap:anywhere}.item-search-options small{color:var(--muted);font-size:11px;margin-top:5px}.item-search-options p{padding:14px;color:var(--muted);margin:0}.recipe-picker{border:0;background:transparent;padding:0;margin:10px 0}.recipe-picker .input-wrap{margin:0}.line-item>.inline-item-host{min-width:0}.order-add-products>.inline-item-host{grid-column:1/-1;width:100%}

#recipe-edit-form .item-search-options,#record-form .order-add-products .item-search-options{max-height:min(300px,35dvh)}

#form-lines .line-item{align-items:start}.inline-item-host .input-wrap input{font-size:13px}

.inline-item-search .input-wrap input{border:0!important;background:transparent;box-shadow:none;outline:none}.inline-item-search .input-wrap:focus-within{outline:2px solid var(--yellow-77);outline-offset:1px}
@media(min-width:701px){.recipe-metadata.recipe-metadata-prep{grid-template-columns:repeat(4,minmax(0,1fr))}}
.recipe-manage-form{margin-bottom:8px}

.recipe-photo.recipe-detail-heading{border:0;padding:0;margin:0 0 24px;background:none;gap:15px}
.recipe-detail-heading>.inventory-photo{width:100px;height:100px;flex:0 0 100px;overflow:hidden;border-radius:10px}
.recipe-detail-heading>.inventory-photo img{width:100%;height:100%;object-fit:cover}
.recipe-heading-text{flex:1;min-width:0}
.recipe-heading-text .item-detail-title{margin:6px 0;overflow-wrap:anywhere}
.recipe-heading-text .item-detail-desc{margin:0}
.recipe-heading-text .error-text:empty{display:none}
@media(max-width:600px){.recipe-detail-heading>.inventory-photo{width:78px;height:78px;flex-basis:78px}}

@media(min-width:701px){
 #recipe-panel-history .recipe-history-table{table-layout:fixed;width:100%}
 #recipe-panel-history .recipe-history-table :is(th,td):nth-child(1){width:132px;white-space:nowrap}
 #recipe-panel-history .recipe-history-table :is(th,td):nth-child(2){width:112px;white-space:nowrap}
 #recipe-panel-history .recipe-history-table :is(th,td):nth-child(3){width:130px;white-space:nowrap}
 #recipe-panel-history .recipe-history-table :is(th,td):nth-child(4){overflow-wrap:anywhere}
}

.recipe-modal-title{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.recipe-version-notes{margin-top:8px}
.recipe-version-notes summary{cursor:pointer;color:var(--text-muted)}
.recipe-version-notes p{margin-top:8px;white-space:pre-wrap}

#recipe-panel-cost>.recipe-cost-info{border-top:0;margin-top:0;padding-top:0}
#recipe-panel-manage,#recipe-panel-cost{padding-top:24px}

#recipe-panel-ingredients,#recipe-panel-packaging,#recipe-panel-steps{padding-top:24px}
#recipe-panel-cost .cost-location:first-child{margin-top:0}
#recipe-panel-steps>.recipe-steps{margin-top:0}

.recipe-main-layout .catalog-conversion-row{grid-template-columns:minmax(0,1fr) 12px 80px minmax(0,1fr)}
.recipe-main-layout .catalog-section input[readonly]{background:var(--gray-100);color:var(--text)}
.recipe-main-layout .field-hint{display:block;margin-top:6px;line-height:1.5;color:var(--text-muted)}

.recipe-location-row{display:grid;grid-template-columns:1fr 1fr;gap:16px;padding:16px 0;align-items:center}
.recipe-location-row+ .recipe-location-row{border-top:1px solid var(--border)}
.recipe-location-row small{display:block;margin-top:4px}

.recipe-steps-editor{display:grid;gap:16px}
.recipe-steps-editor .field{margin-bottom:16px}
.recipe-step-actions{display:flex;gap:8px;flex-wrap:wrap}

.recipe-editor-modal .recipe-edit-row{padding:16px 20px;grid-template-columns:minmax(220px,1.6fr) minmax(240px,1fr) 36px}
.recipe-editor-modal .recipe-edit-controls{grid-template-columns:minmax(85px,.7fr) minmax(120px,1fr)}
.recipe-editor-modal .recipe-edit-item{display:grid;grid-template-columns:minmax(0,1fr);row-gap:8px}
.recipe-item-label{grid-column:1/-1;color:var(--muted);font-size:12px;font-weight:400}
@media(max-width:760px){.recipe-editor-modal .recipe-edit-row{grid-template-columns:minmax(0,1fr) 36px;padding:16px}.recipe-editor-modal .recipe-edit-controls{grid-template-columns:minmax(0,.7fr) minmax(0,1fr)}}

.recipe-field-title{display:flex;align-items:center;gap:7px;margin-bottom:0}
.recipe-field-title label{margin:0}
.recipe-help{display:inline-flex;position:relative;align-items:center;vertical-align:middle;font-size:12px;font-weight:400}
.recipe-help-text{display:none;position:absolute;top:calc(100% + 6px);left:-16px;width:240px;max-width:65vw;z-index:30;padding:12px;border:1px solid var(--line);border-radius:8px;background:var(--gray-100);color:var(--text);box-shadow:0 4px 16px #0002;line-height:1.5;text-align:left;white-space:normal}
.recipe-help:hover .recipe-help-text,.recipe-help:focus-within .recipe-help-text{display:block}
.recipe-help:after{content:'';position:absolute;top:100%;height:8px;left:0;width:100%}

/* The Add item field sits centered in its bar: the same space above and below. */
#recipe-edit-form:has(:is(#recipe-panel-ingredients,#recipe-panel-packaging):not([hidden]))>.recipe-add-bar{padding-top:10px;padding-bottom:10px}

#recipe-edit-ingredients,#recipe-edit-packaging{display:grid;gap:12px}
.recipe-editor-modal :is(#recipe-edit-ingredients,#recipe-edit-packaging)>.recipe-edit-row{border:1px solid var(--line);border-radius:12px}

.recipe-editor-modal .recipe-edit-controls input,.recipe-editor-modal .recipe-edit-controls select{border:1px solid var(--line)!important;border-radius:var(--radius-s);background-color:var(--gray-100)}
.recipe-step-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:20px}
.recipe-steps-editor .recipe-step-heading h3{margin:0}
.recipe-step-heading .recipe-step-actions{flex-wrap:nowrap;flex-shrink:0}

#recipe-edit-form .recipe-edit-controls input,#recipe-edit-form .recipe-edit-controls select{border:1px solid var(--line)!important;box-shadow:none!important}
#recipe-edit-form .recipe-edit-controls select:focus{border-color:transparent!important}
/* Qty. and UOM. share one compact, centered width in Ingredients and Packaging rows. */
#recipe-edit-form .recipe-edit-controls .field:has([data-recipe-field=quantity]),#recipe-edit-form .recipe-edit-controls .field:has([data-recipe-field=unit]){width:100%;margin-inline:auto;align-self:center;text-align:center}
#recipe-edit-form .recipe-edit-controls .field:has([data-recipe-field=quantity]){max-inline-size:76px}
#recipe-edit-form .recipe-edit-controls .field:has([data-recipe-field=unit]){max-inline-size:140px}
#recipe-edit-form .recipe-edit-controls .field:has([data-recipe-field=quantity]) :is(label,input,select),#recipe-edit-form .recipe-edit-controls .field:has([data-recipe-field=unit]) :is(label,input,select){text-align:center}
#recipe-edit-form .recipe-edit-controls .field:has([data-recipe-field=unit]) select{text-align-last:center}
.recipe-main-layout .recipe-field-title{min-height:26px;margin-bottom:0}
.recipe-main-layout .recipe-field-title label{margin:0!important}

.recipe-card .recipe-type>.status{margin-left:auto;flex-shrink:0}
.recipe-card .recipe-card-bottom{justify-content:flex-start;margin-top:8px}
.recipe-list .recipe-type{flex-wrap:wrap}

/* Use one gap between the recipe heading and its tab navigation. */
.recipe-editor-modal .recipe-detail-heading{margin-bottom:20px}
.recipe-editor-modal .recipe-detail-tabs{margin-top:0}

.recipe-list .recipe-card{grid-template-columns:120px minmax(0,2fr) minmax(0,2fr) auto;grid-template-areas:"type name locations status" "type version locations status";column-gap:18px;row-gap:6px}
.recipe-list .recipe-card>.recipe-type{grid-area:type;margin:0}
.recipe-list .recipe-card>h3{grid-area:name;align-self:end}
.recipe-list .recipe-card>p{grid-area:locations}
.recipe-list .recipe-card>.recipe-card-bottom{grid-area:version;margin:0;align-self:start}
.recipe-list .recipe-card>.status{grid-area:status;justify-self:end}
@media(max-width:760px){.recipe-list .recipe-card{grid-template-columns:minmax(0,1fr) auto;grid-template-areas:"type status" "name name" "version version" "locations locations"}}

.recipe-folder-heading{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin-bottom:20px}
.recipe-folder-heading>strong{display:flex;align-items:center;gap:8px;margin-right:auto}
.recipe-card .recipe-card-bottom .btn{min-height:32px}

.recipe-folder-destinations{display:flex;gap:10px;flex-wrap:wrap;margin-bottom:20px}
.recipe-folder-destinations .btn{max-width:100%;white-space:normal;overflow-wrap:anywhere}
.recipe-folder-destinations .recipe-drop-active{background:var(--yellow,#fece07);color:#121212;outline:2px solid currentColor;outline-offset:3px}
.recipe-card[draggable="true"]{cursor:grab}
.recipe-card.recipe-dragging{opacity:.45;cursor:grabbing}

/* Ingredient rows: compact read-only total cost aligned with Qty. and UOM. */
.recipe-editor-modal .recipe-edit-row:has(.recipe-line-cost-field){grid-template-columns:minmax(200px,1.4fr) minmax(340px,1.4fr) 36px}
.recipe-editor-modal .recipe-edit-controls:has(.recipe-line-cost-field){grid-template-columns:minmax(85px,.7fr) minmax(120px,1fr) minmax(90px,.8fr)}
.recipe-line-cost-field output{display:flex;align-items:center;min-height:36px;font-weight:600;overflow-wrap:anywhere}
.recipe-line-cost-field output.cost-missing{font-weight:500;color:var(--text-muted)}
@media(max-width:760px){.recipe-editor-modal .recipe-edit-row:has(.recipe-line-cost-field){grid-template-columns:minmax(0,1fr) 36px}.recipe-editor-modal .recipe-edit-controls:has(.recipe-line-cost-field){grid-template-columns:minmax(0,.7fr) minmax(0,1fr)}.recipe-line-cost-field{grid-column:1/-1}}
/* Dish recipe header: the photo and name on the left, the locations dropdown on the right. */
.recipe-detail-top{display:flex;align-items:flex-start;gap:24px}
.recipe-detail-top>.recipe-photo{flex:1 1 auto;min-width:0}
/* Category is as wide as its longest option; Locations keeps a steady width beside it. */
.recipe-heading-fields{flex:none;max-width:60%;display:flex;gap:12px;align-items:flex-start}
.recipe-heading-category{flex:none}
.recipe-heading-locations{flex:0 1 240px;width:240px}
.recipe-heading-fields>.field{display:flex;flex-direction:column;gap:6px;min-width:0;font-size:12px;color:var(--muted)}
.recipe-heading-fields select{width:auto;max-width:100%}
.recipe-heading-fields>.field>:first-child{display:block;height:17px;min-height:0;margin:0;padding:0;font-size:12px;font-weight:400;line-height:17px;color:var(--muted)}
.recipe-heading-fields>.field>select,.recipe-heading-fields .ms-trigger{min-height:40px;height:40px;margin:0}
.recipe-heading-locations .ms-trigger{font-size:13px;color:var(--text);cursor:pointer}
@media(max-width:700px){.recipe-detail-top{flex-direction:column;gap:0}.recipe-heading-fields{max-width:none;width:100%;margin-bottom:20px;flex-wrap:wrap}.recipe-heading-fields>.field{flex:1 1 160px;width:auto}.recipe-heading-fields select{width:100%}}
/* Recipe window: the heading and the tabs stay at the top while the selected tab's content scrolls under them. */
.recipe-detail-sticky{position:sticky;top:-16px;z-index:6;margin:-16px -22px 16px;padding:16px 22px 14px;background:var(--float);border-bottom:1px solid var(--line)}
.recipe-detail-sticky .recipe-photo.recipe-detail-heading{margin-bottom:0}
.recipe-detail-sticky>.recipe-detail-tabs{margin-top:18px}
@media(max-width:700px),(max-height:640px){.recipe-detail-sticky{position:static;border-bottom:0;padding-bottom:0;margin-bottom:16px}}
.recipe-heading-fields .ms-trigger{border-radius:999px}
/* Ingredient and packaging quantities: the same rounded shape as the selects beside them, with the number centered. */
#overlay-root .modal .recipe-edit-controls input[type=number]{border-radius:999px!important;text-align:center}
/* Ingredient and packaging units: text at the left; the select fills its column like every form field. */
#overlay-root .modal #recipe-edit-form .recipe-edit-controls .field>select{text-align:left!important;text-align-last:left!important}
/* Recipe item rows show the name alone (no SKU line), so the name is a size larger. */
.recipe-edit-item strong,.recipe-components td>strong{font-size:14px;line-height:1.35}
/* Dish recipe title: larger, with a pencil beside it that turns the name into a field to rename it. */
.recipe-detail-top .item-detail-title.recipe-name-title{display:flex;align-items:center;gap:8px;min-height:40px;margin:0 0 4px;font-size:28px;line-height:1.2}
.recipe-rename-button{flex:none;width:34px;height:34px}
.recipe-rename-button .icon{width:17px;height:17px}
#overlay-root .modal .recipe-rename-input{width:min(100%,460px);height:40px;padding:0 14px;font:inherit;font-size:20px;font-weight:600}
/* Line cost in recipe item rows. */
#overlay-root .modal .recipe-edit-controls output[data-line-cost]{font-size:13px;min-height:40px}
/* Recipe item rows without the SKU line: less vertical padding, so the row is as tall as its controls need. */
@media(min-width:761px){.recipe-editor-modal :is(#recipe-edit-ingredients,#recipe-edit-packaging)>.recipe-edit-row{padding-top:10px;padding-bottom:10px}}
#overlay-root .modal #recipe-edit-form .recipe-edit-controls .field{gap:6px;row-gap:6px}
#overlay-root .modal #recipe-edit-form .recipe-edit-controls .field>label{display:block;height:17px;min-height:0;margin:0;padding:0;line-height:17px;text-align:left}
/* The space between the fixed heading and a tab's content equals the window's side margin (22px). */
.recipe-detail-sticky{margin-bottom:22px}
#overlay-root .modal-body:has(>.recipe-detail-sticky) .recipe-detail-panel{padding-top:0!important}
/* Recipe item rows: the item's label lines up with the control labels, and its name with the controls. */
@media(min-width:761px){
 #overlay-root .modal #recipe-edit-form .recipe-edit-row>.recipe-edit-item{align-self:start;row-gap:6px}
 #overlay-root .modal #recipe-edit-form .recipe-edit-item>.recipe-item-label{display:block;height:17px;line-height:17px;margin:0}
 #overlay-root .modal #recipe-edit-form .recipe-edit-item>div{display:flex;align-items:center;min-height:40px}
 #overlay-root .modal #recipe-edit-form .recipe-edit-row>.recipe-edit-controls{align-self:start}
}
/* The dish name sits on the same line as the Category and Locations controls (below their 17px label and 6px gap). */
.recipe-detail-top .recipe-detail-heading:has(.recipe-name-title){align-items:flex-start}
.recipe-detail-top .item-detail-title.recipe-name-title{margin-top:23px}
/* Recipe window: the heading and tabs do not scroll at all; only the area under them does, so the scrollbar starts
   below the heading and runs along the window's edge. */
@media(min-width:701px) and (min-height:641px){
 #overlay-root .modal-body:has(>.recipe-detail-sticky){display:flex;flex-direction:column;overflow:hidden}
 #overlay-root .modal-body>.recipe-detail-sticky{position:static;flex:none;margin-bottom:0}
 #overlay-root .modal-body:has(>.recipe-detail-sticky)>:not(.recipe-detail-sticky){flex:none}
 #overlay-root .modal-body:has(>.recipe-detail-sticky)>#recipe-error:empty{display:none}
 #overlay-root .modal-body:has(>.recipe-detail-sticky)>#recipe-error{margin:16px 0 0}
 #overlay-root .modal-body:has(>.recipe-detail-sticky)>:is(#recipe-edit-form,.recipe-detail-panel:not([hidden])){flex:1 1 auto;min-height:0;overflow-y:auto;margin:0 -22px -16px;padding:22px 22px 16px}
}
/* Recipe photo box: add/change and remove buttons sit inside it, at the bottom right. */
.recipe-photo-frame{position:relative;display:grid;place-items:center}
.recipe-photo-frame>.recipe-photo-placeholder{width:26px;height:26px;opacity:.45}
.recipe-photo-controls{position:absolute;right:6px;bottom:6px;display:flex;gap:4px}
.recipe-photo-control{display:grid;place-items:center;width:28px;height:28px;padding:0;border:0;border-radius:999px;background:var(--float);color:var(--text);box-shadow:0 1px 3px #0000002e,inset 0 0 0 1px var(--line);cursor:pointer}
.recipe-photo-control:hover{background:var(--pill);color:var(--on-pill)}
.recipe-photo-control:focus-visible{outline:2px solid var(--focus);outline-offset:2px}
.recipe-photo-control .icon{width:14px;height:14px}
.recipe-photo-control[data-action=recipe-photo-remove]:hover{background:var(--danger);color:#fff}
/* Dish cost: plate cost summary with the food cost bar against its target, then one row per location. */
.cost-summary .cost-metrics{grid-template-columns:repeat(4,minmax(0,1fr))}
.cost-metric dd.cost-metric-sub{margin-top:4px;font-size:11px;font-weight:400;letter-spacing:0;color:var(--text-muted);min-height:16px}
.cost-metric.cost-good dd.cost-metric-sub,.cost-metric.cost-warning dd.cost-metric-sub,.cost-metric.cost-high dd.cost-metric-sub{color:inherit;opacity:.85}
.cost-target{margin-top:16px}
.cost-target-bar{position:relative;height:8px;border-radius:999px;background:var(--well)}
.cost-target-fill{position:absolute;inset:0 auto 0 0;border-radius:999px;background:var(--up)}
.cost-target-fill.cost-warning{background:var(--warn)}.cost-target-fill.cost-high{background:var(--down)}
.cost-target-mark{position:absolute;left:50%;top:-4px;width:2px;height:16px;margin-left:-1px;border-radius:1px;background:var(--text)}
.cost-target-scale{display:flex;justify-content:space-between;margin-top:8px;font-size:11px;color:var(--text-muted)}
.cost-by-location .cost-location-heading{margin-bottom:10px}
.cost-locations-table :is(th,td):not(:first-child){text-align:center}
.cost-locations-table td{font-variant-numeric:tabular-nums}
.cost-locations-table .cost-missing{font-size:11px;color:var(--text-muted)}
.cost-pill{display:inline-block;padding:3px 10px;border-radius:999px;font-weight:600;background:var(--up-soft);color:var(--up)}
.cost-pill.cost-warning{background:var(--warn-soft);color:var(--warn)}.cost-pill.cost-high{background:var(--down-soft);color:var(--down)}
@media(max-width:760px){.cost-summary .cost-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}}
/* Price what-if: one line with the price field, its slider and Reset. */
.cost-what-if-row{display:flex;align-items:center;gap:14px;flex-wrap:wrap}
.cost-what-if-row>strong{font-size:12px}
.cost-what-if-row>label{font-size:12px;color:var(--text-muted)}
.cost-what-if-row>input[type=number]{width:120px;flex:none;text-align:center}
.cost-what-if-row>input[type=range]{flex:1 1 180px;min-width:120px;width:auto;height:auto;min-height:0;padding:0;border:0;background:none;box-shadow:none;accent-color:var(--text)}
/* The slider shows no frame when selected: its thumb already marks the position. */
.cost-what-if-row>input[type=range]:is(:focus,:focus-visible){outline:none!important;box-shadow:none!important;border:0!important}

/* Shared calendar for filters and date fields. */
.hd-date-field{display:block;position:relative;min-width:0}.hd-date-source{position:absolute!important;width:1px!important;height:1px!important;opacity:0;pointer-events:none;padding:0!important;border:0!important;bottom:0;left:0}.hd-date-trigger{display:flex;align-items:center;justify-content:space-between;gap:14px;width:100%;min-width:150px;min-height:42px;padding:10px 12px;border:1px solid var(--olive-90);border-radius:7px;background:var(--gray-100);color:var(--olive-34);text-align:left;font-size:12px}.hd-date-trigger.empty{color:var(--text-muted)}.hd-date-trigger svg{width:16px;height:16px;flex-shrink:0}.hd-date-trigger:hover{border-color:var(--olive-74)}.hd-calendar{position:fixed;z-index:2000;display:grid;grid-template-columns:122px minmax(0,290px);width:414px;max-width:calc(100vw - 24px);max-height:calc(100dvh - 24px);overflow:auto;background:white;border:1px solid var(--gray-95);border-radius:14px;box-shadow:0 12px 40px #20202024;color:var(--gray-27);font-size:12px}.hd-calendar button{border:0;background:none;color:inherit;font:inherit;min-height:34px;border-radius:7px;padding:6px 8px}.hd-calendar button:hover{background:var(--gray-97)}.hd-calendar button:focus-visible{outline:2px solid var(--yellow-67);outline-offset:-2px}.hd-calendar-presets{display:flex;flex-direction:column;gap:4px;padding:14px 8px;border-right:1px solid var(--gray-96)}.hd-calendar-presets button{text-align:left;font-weight:550;font-size:11px;min-height:36px}.hd-calendar-presets button.active{background:var(--gray-95);color:#111;font-weight:700}.hd-calendar-main{min-width:0;padding:14px 12px 12px}.hd-calendar-header{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:12px}.hd-calendar-header .hd-calendar-title{font-size:17px;font-weight:750;flex:1;white-space:nowrap}.hd-calendar-title span{font-size:14px;color:var(--text-muted);margin-left:3px}.hd-calendar-header .hd-calendar-arrow{width:30px;min-height:30px;height:30px;border-radius:50%;background:var(--gray-97);padding:6px}.hd-calendar button svg{width:18px;height:18px;display:block;margin:auto}.hd-calendar-modes{display:flex;background:var(--gray-97);padding:3px;border-radius:8px;gap:3px;margin-bottom:13px}.hd-calendar-modes button{flex:1;font-size:11px;min-height:29px}.hd-calendar-modes button[aria-pressed=true]{background:var(--gray-100);box-shadow:0 1px 4px #00000012;font-weight:650}.hd-calendar-weekdays,.hd-calendar-days{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));text-align:center}.hd-calendar-weekdays{font-size:11px;color:var(--text-muted);margin-bottom:5px}.hd-calendar-weekdays span{padding:5px 0}.hd-calendar-days button{height:34px;min-height:34px;padding:0;border-radius:50%;font-size:12px;margin:2px 0}.hd-calendar-days button.outside{color:var(--text-muted)}.hd-calendar-days button.in-range{background:var(--gray-95);border-radius:0}.hd-calendar-days button.selected{background:var(--gray-21);color:white;font-weight:650;position:relative}.hd-calendar-days button.today{box-shadow:inset 0 0 0 1px #bbbbbb}.hd-calendar-days button.selected.today{box-shadow:inset 0 0 0 2px white,0 0 0 1px var(--gray-27)}.hd-calendar-years{display:flex;align-items:center;justify-content:space-between;gap:1px;border-bottom:1px solid var(--gray-96);padding-bottom:12px}.hd-calendar-years button{font-size:12px;padding:4px 6px}.hd-calendar-years button[aria-pressed=true],.hd-calendar-months button[aria-pressed=true]{background:var(--gray-95);font-weight:700}.hd-calendar-months{display:grid;grid-template-columns:repeat(4,1fr);gap:12px 3px;padding:20px 0 33px;min-height:219px;align-items:center}.hd-calendar-months button{border-radius:20px}.hd-calendar-selection{display:flex;gap:6px;margin-top:12px;padding-top:12px;border-top:1px solid var(--gray-95)}.hd-calendar-selection>button,.hd-calendar-selection>span{flex:1;font-size:12px;min-width:0;text-align:left;padding:7px 8px;border-radius:7px;font-variant-numeric:tabular-nums}.hd-calendar-selection button[aria-pressed=true]{background:var(--gray-97);box-shadow:inset 0 0 0 1px #d5d5d5}.hd-calendar-selection small{display:block;font-size:11px;color:var(--text-muted);margin-bottom:5px}.hd-calendar-hint{font-size:11px;color:var(--text-muted);line-height:1.5;margin:10px 0}.hd-calendar-error{font-size:11px;color:var(--red-52)}.hd-calendar footer{display:flex;justify-content:flex-end;gap:5px;margin-top:10px}.hd-calendar footer button{font-size:11px;padding:7px 13px}.hd-calendar footer .hd-calendar-apply{background:var(--yellow-87);font-weight:650;border-radius:999px}.hd-calendar footer .hd-calendar-clear{margin-right:auto;color:var(--text-muted)}.hd-calendar-time{display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:11px;margin-top:10px}.hd-calendar-time input{max-width:124px;border:1px solid var(--olive-90);border-radius:6px;padding:5px;font:inherit;color:inherit;background:var(--gray-100)}@media(max-width:480px){.hd-calendar{grid-template-columns:101px minmax(0,1fr)}.hd-calendar-main{padding:12px 9px}.hd-calendar-presets{padding:12px 5px;gap:5px}.hd-calendar-presets button{font-size:11px;padding:6px}.hd-calendar-header{gap:3px}.hd-calendar-header .hd-calendar-title{font-size:15px}.hd-calendar-days button{height:32px;min-height:32px}.hd-calendar footer button{padding:7px 9px}.hd-calendar-selection>button{padding:6px 4px;font-size:11px}.hd-calendar-selection small{font-size:10px}.hd-date-trigger{font-size:12px}}
/* One compact Date control represents either a day or a complete period. */
.hd-date-filter{position:relative;max-width:100%}.hd-date-field{max-width:100%}.hd-date-trigger{width:auto;max-width:100%;min-width:0;min-height:36px;justify-content:flex-start;gap:7px;padding:8px 10px;border-color:var(--olive-92);border-radius:9px;color:var(--gray-27);font-size:12px;line-height:1.5;background:var(--gray-100)}.hd-date-caption{font-size:11px;font-weight:400;color:var(--text-muted);flex-shrink:0}.hd-date-value{font-weight:600;overflow-wrap:anywhere}.hd-date-trigger.empty .hd-date-value{font-weight:400;color:var(--text-muted)}.hd-date-trigger .hd-date-chevron{width:12px;height:12px;margin-left:2px;color:var(--text-muted)}.calendar-trigger>span{white-space:normal}.hd-date-filter .hd-date-trigger{min-height:42px}.field .hd-date-trigger,.prep-route .hd-date-trigger{min-height:42px} 

.location-trigger{display:inline-flex;align-items:center;gap:7px;min-height:38px;padding:6px 3px;border:0;background:transparent;color:var(--gray-27);font-size:13px;max-width:285px;text-align:left}.location-trigger>span{font-weight:550;flex-shrink:0}.location-trigger strong{font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.location-trigger svg{width:16px;height:16px;flex-shrink:0;color:var(--text-muted)}.location-trigger:hover{color:#000}.location-popover{position:fixed;z-index:2000;width:264px;max-width:calc(100vw - 24px);max-height:calc(100dvh - 24px);overflow:auto;background:var(--gray-100);border:1px solid var(--gray-96);border-radius:12px;box-shadow:0 8px 28px #1e1e1e26;padding:12px;color:var(--gray-27);font-size:12px}.location-search{display:flex;align-items:center;gap:8px;border:1px solid var(--olive-52);border-radius:22px;padding:8px 11px;margin-bottom:14px}.location-search:focus-within{outline:2px solid var(--yellow-69);outline-offset:2px}.location-search svg{width:16px;height:16px;flex-shrink:0}.location-search input{min-width:0;width:100%;padding:0;border:0;outline:0;background:transparent;font-size:12px;color:var(--gray-27)}.location-option{display:flex;align-items:center;gap:8px;min-height:42px;padding:9px 2px;cursor:pointer;font-weight:550}.location-option>span{flex:1}.location-option input{width:15px;height:15px;margin:0;accent-color:var(--gray-24);flex-shrink:0;cursor:pointer}.location-option small{color:var(--text-muted);font-size:12px;font-weight:500}.location-option:hover{background:var(--gray-97);border-radius:5px}.location-no-results{padding:14px 2px;color:var(--text-muted);font-size:12px}.location-all{margin-bottom:1px}.location-list{max-height:240px;overflow-y:auto}@media(max-width:700px){.location-trigger{font-size:11px;max-width:215px;gap:5px}.location-trigger svg{width:13px;height:13px}}@media(max-width:380px){.location-trigger{max-width:175px}}

.location-name{flex:1;min-width:0;overflow-wrap:anywhere;cursor:pointer}.location-only{border:0;background:transparent;padding:8px 3px;color:var(--olive-50);font:inherit;text-decoration:underline;flex-shrink:0;min-height:36px}.location-only:hover{color:var(--gray-21)}.location-only:focus-visible{outline:2px solid var(--yellow-69);outline-offset:1px;border-radius:4px}

/* Layout follows available space; information stays visible at every width. */
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
.workspace, .main, .panel, .modal, .modal-body, .field, .top-actions,
.page-heading > *, .panel-head > *, .form-grid > *, .detail-grid > * { min-width: 0; }
img { max-width: 100%; }
.page-title, .item-detail-title, .page-subtitle, .notice, .detail-pair,
.stat-value, .supplier-card, .recipe-card, .store-summary, .modal,
.settings-row, .footer-note { overflow-wrap: anywhere; }
.stat-value { white-space: normal; }
.page-heading .actions, .panel-head, .modal-foot, .pagination,
.history-pagination, .settings-row, .footer-note, .chart-bottom,
.cost-section-heading, .cost-location-heading { flex-wrap: wrap; }
.btn { max-width: 100%; white-space: normal; text-align: center; }
.tabs, .prep-navigation, .recipe-detail-tabs, .history-tabs {
  flex-wrap: wrap; overflow: visible; min-width: 0;
}
.tab, .prep-navigation button, .recipe-detail-tabs button, .history-tab {
  white-space: normal; overflow-wrap: anywhere;
}
.input-wrap { min-width: 0; max-width: 100%; }
.input-wrap input { min-width: 0; width: 100%; }
select, input, textarea { max-width: 100%; }
.prep-filters > *, .prep-route > *, .purchasing-history-controls > * { min-width: 0; max-width: 100%; }
.status, .item-sku, .prep-variation { white-space: normal; overflow-wrap: anywhere; }
.name-cell { min-width: 0; }
.modal-head, .modal-foot { flex-shrink: 0; }
.modal-body { overscroll-behavior: contain; }
.modal-head h2 { overflow-wrap: anywhere; }
.modal-head .icon-btn { flex-shrink: 0; }
.navigation-close, .navigation-backdrop { display: none; }
.responsive-table-container { container-type: inline-size; min-width: 0; max-width: 100%; }
.responsive-table { width: 100%; min-width: 0 !important; }
.responsive-table th, .responsive-table td { overflow-wrap: anywhere; white-space: normal; }
.responsive-table td[data-column-label]::before { display: none; }

/* 16px editable controls prevent iOS focus zoom without disabling pinch zoom. */
@media (max-width: 1024px), (pointer: coarse) {
  input:not([type="checkbox"]):not([type="radio"]), select, textarea,
  .location-search input, .hd-calendar-time input {
    font-size: 16px !important;
  }
  .btn, .btn.sm, .pagination .btn, .icon-btn, .row-action, .avatar,
  .tab, .history-tab, .chip, .location-trigger, .hd-date-trigger,
  .login-eye, .search-trigger { min-height: 44px; }
  .icon-btn, .row-action, .avatar, .login-eye { min-width: 44px; }
  .nav-item { min-height: 44px; font-size: 14px; }
  .location-option { min-height: 48px; }
  .field input, .field select, .filter-select, .line-item input,
  .line-item select, .count-input, #count-rows select { min-height: 44px; }
}

@media (max-width: 1024px) {
  :root { --sidebar: 0px; }
  .sidebar {
    width: min(310px, calc(100vw - 32px)); transform: translateX(-100%);
    visibility: hidden; transition: transform .2s, visibility .2s;
    z-index: 61; padding-top: max(24px, env(safe-area-inset-top));
    padding-bottom: max(20px, env(safe-area-inset-bottom));
  }
  .sidebar.open { transform: none; visibility: visible; box-shadow: 10px 0 35px #15151533; }
  .navigation-close { display: inline-flex; position: absolute; right: 8px; top: 10px; color: white; }
  .sidebar .brand { padding-top: 26px; }
  .navigation-backdrop:not([hidden]) { display: block; position: fixed; inset: 0; z-index: 60; background: #15151566; border: 0; width: 100%; height: 100%; }
  .mobile-menu { display: inline-flex; flex-shrink: 0; }
  .topbar { min-height: 68px; height: auto; padding: 8px 16px; gap: 10px; }
  .top-actions { flex: 1; justify-content: flex-end; gap: 6px; }
  .topbar .breadcrumb { display: none; }
  .location-trigger { font-size: 14px; min-width: 0; max-width: 100%; }
  .location-trigger strong { overflow: visible; white-space: normal; overflow-wrap: anywhere; }
  .main { padding: 24px; }
  .attention-panel { display: block; }
  .dashboard-grid, .operations-grid { grid-template-columns: minmax(0, 1fr); }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .page-heading { align-items: flex-start; }
  .page-heading .actions { justify-content: flex-start; }
  .table-wrap { overscroll-behavior-x: none; }
  .prep-navigation button, .recipe-detail-tabs button { min-height: 44px; }
}

@media (max-width: 700px) {
  .main { padding: 22px 16px max(28px, env(safe-area-inset-bottom)); }
  .topbar { padding-left: max(10px, env(safe-area-inset-left)); padding-right: max(10px, env(safe-area-inset-right)); }
  .topbar .search-trigger { display: inline-flex; padding: 8px; }
  .topbar .search-trigger span, .topbar .search-trigger kbd { display: none; }
  .top-actions { gap: 2px; }
  .location-trigger { gap: 3px; font-size: 13px; flex: 1; justify-content: center; }
  .location-trigger svg { width: 12px; }
  .page-subtitle { max-width: none; font-size: 13px; }
  .page-heading .actions { gap: 8px; }
  .page-heading .actions > .btn { flex: 1 1 auto; }
  .btn, .btn.sm, .pagination .btn { font-size: 12px; }
  .stats { gap: 10px; }
  .stat-card, .stats.compact .stat-card { padding: 14px; }
  .stat-value, .stats.compact .stat-value { font-size: 24px; letter-spacing: -.8px; }
  .stat-top { font-size: 11px; line-height: 1.5; align-items: flex-start; }
  .stat-bottom { font-size: 11px; line-height: 1.5; }
  .stat-icon { flex-shrink: 0; }
  .panel-head { padding: 16px; gap: 12px; }
  .panel-head p, .prep-help, .prep-environment, .table-count { font-size: 12px; }
  .panel-head h2 { font-size: 16px; }
  .tabs, .prep-navigation, .recipe-detail-tabs { gap: 4px; padding-left: 0; padding-right: 0; }
  .tab, .prep-navigation button, .recipe-detail-tabs button { flex: 1 1 auto; padding: 12px 10px; font-size: 12px; }
  .history-tab { flex: 1 1 90px; font-size: 12px; }
  .prep-filters, .prep-route, .purchasing-history-controls { gap: 12px; padding: 14px; }
  .prep-filters label, .prep-route label { font-size: 12px; width: 100%; }
  .prep-filters .prep-select { min-width: 0; }
  .prep-filters input, .prep-route input, .prep-filters select { width: 100%; }
  .purchasing-history-controls .input-wrap { min-width: 0; width: 100%; flex-basis: 100%; }
  .purchasing-page-size { flex-wrap: wrap; max-width: 100%; }
  .pagination { padding: 14px; gap: 12px; }
  .pagination .pages { flex-wrap: wrap; align-items: center; }
  .history-pagination { gap: 12px; }
  .overlay { padding: 0; top: var(--visible-top, 0px); bottom: auto; height: var(--visible-height, 100dvh); }
  .modal, .modal.wide, .modal.catalog-item-modal, .modal.operation-modal, .drawer .modal {
    width: 100%; max-width: 100%; height: 100%; max-height: 100%; border-radius: 0;
  }
  .modal-head { padding: max(16px, env(safe-area-inset-top)) 16px 16px; gap: 12px; }
  #count-rows .table-wrap { max-height: none !important; }
  .modal-body, .catalog-item-modal .modal-body { padding: 16px; flex: 1; }
  .modal-foot { padding: 12px 16px max(12px, env(safe-area-inset-bottom)); gap: 8px; }
  .modal-foot .meta, .catalog-save-note { flex-basis: 100%; margin: 0; }
  .modal-foot .btn { flex: 1 1 auto; }
  .form-grid, .catalog-section .form-grid, .operation-modal .operation-detail-grid,
  .operation-modal .detail-grid, .recipe-metadata { grid-template-columns: minmax(0, 1fr); }
  .line-item { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 44px; padding: 12px; border: 1px solid var(--line); border-radius: 10px; }
  .line-item > select:first-child { grid-column: 1 / -1; }
  .line-item .icon-btn { width: 44px; }
  .recipe-photo { flex-wrap: wrap; }
  .recipe-photo > div { min-width: 0; }
  .recipe-steps li { padding: 12px; gap: 10px; }
  .recipe-steps li > div { min-width: 0; }
  .catalog-section { padding: 14px; }
  .catalog-conversion-row { grid-template-columns: minmax(0,1fr) 10px minmax(65px,1fr) minmax(0,1fr) 44px; gap: 5px; }
  .catalog-conversion-row > .icon-btn { width: 44px; height: 44px; }
  .catalog-add-conversion { flex-wrap: wrap; }
  .catalog-add-conversion select { flex-basis: 100%; }
  .route-card { display: block; padding: 16px; }
  .route-stats { margin-top: 16px; }
  .route-note { margin-top: 12px; }
  .route-card .btn { margin-top: 16px; }
  .report-bars { padding: 4px 16px 20px; }
  .report-bar-row { grid-template-columns: minmax(0,1fr) auto; gap: 8px; }
  .report-bar-track { grid-row: 2; grid-column: 1/-1; }
  .footer-note { gap: 12px; line-height: 1.6; }
  .footer-note span:last-child { display: flex; }
  .login-content { padding: 24px 20px; }
  .login-brand, .login-footer, .login-demo { flex-wrap: wrap; }
  .boot { padding: 24px; height: auto; min-height: 100dvh; overflow-wrap: anywhere; }
}

/* On phones, presets wrap above the calendar instead of squeezing seven days. */
@media (max-width: 600px) {
  .hd-calendar { grid-template-columns: minmax(0,1fr); width: 390px; }
  .hd-calendar-presets { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 3px; border-right: 0; border-bottom: 1px solid var(--line); padding: 8px; }
  .hd-calendar-presets button { min-height: 40px; font-size: 11px; text-align: center; }
  .hd-calendar-main { padding: 10px; }
  .hd-calendar-header .hd-calendar-title { font-size: 17px; }
  .hd-calendar-days button { min-height: 40px; height: 40px; font-size: 13px; }
  .hd-calendar-header .hd-calendar-arrow, .hd-calendar-modes button, .hd-calendar footer button { min-height: 40px; height: auto; }
  .hd-calendar footer { gap: 8px; }
  .hd-calendar footer button { font-size: 12px; }
  .hd-calendar-selection small { font-size: 10px; }
  .hd-calendar-selection > button { font-size: 12px; }
}
@media (max-width: 360px) {
  .main { padding-left: 12px; padding-right: 12px; }
  .stats { grid-template-columns: minmax(0,1fr); }
  .topbar { gap: 2px; padding-left: 6px; padding-right: 6px; }
  .top-actions { gap: 0; }
  .catalog-section .catalog-conversion-row { grid-template-columns: minmax(0,1fr) 10px 68px minmax(0,1fr) 40px; gap: 4px; }
}

/* Switch each table according to its own available width, including drawers. */
@container (max-width: 720px) {

.responsive-table { display: block; table-layout: auto; }
.responsive-table > thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.responsive-table > thead.has-table-controls { position: static; width: auto; height: auto; overflow: visible; clip-path: none; display: block; padding: 10px; border-bottom: 1px solid var(--line); }
.responsive-table > thead.has-table-controls > tr { display: flex; flex-wrap: wrap; gap: 8px; }
.responsive-table > thead.has-table-controls th:not(.has-table-control) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); padding: 0; }
.responsive-table > thead .has-table-control { display: block; border: 0; padding: 0; }
.responsive-table > thead button { min-height: 44px; padding: 8px; border: 1px solid var(--line); border-radius: 7px; }
.responsive-table > tbody { display: grid; gap: 12px; padding: 12px; }
.responsive-table > tbody > tr { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px 16px; padding: 16px; border: 1px solid var(--line); border-radius: 12px; background: white; }
.responsive-table > tbody > tr > td { display: block; min-width: 0 !important; width: auto !important; max-width: none !important; padding: 0 !important; border: 0; text-align: left !important; font-size: 13px; line-height: 1.6; }
.responsive-table > tbody > tr > td:first-child, .responsive-table .responsive-cell-wide { grid-column: 1/-1; }
.responsive-table td[data-column-label]:not([data-column-label=""])::before { content: attr(data-column-label); display: block; font-size: 10px; font-weight: 600; color: var(--olive-50); letter-spacing: .3px; margin-bottom: 5px; }
.responsive-table td strong, .responsive-table .table-name-button { font-size: 13px; }
.responsive-table td small { font-size: 11px; max-width: none; }
.responsive-table td input:not([type=checkbox]), .responsive-table td select { width: 100%; min-width: 0; max-width: 100%; }
.responsive-table td .name-cell { min-width: 0; }
}
@container (max-width: 1100px) {

.responsive-table-wide { display: block; table-layout: auto; }
.responsive-table-wide > thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.responsive-table-wide > thead.has-table-controls { position: static; width: auto; height: auto; overflow: visible; clip-path: none; display: block; padding: 10px; border-bottom: 1px solid var(--line); }
.responsive-table-wide > thead.has-table-controls > tr { display: flex; flex-wrap: wrap; gap: 8px; }
.responsive-table-wide > thead.has-table-controls th:not(.has-table-control) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); padding: 0; }
.responsive-table-wide > thead .has-table-control { display: block; border: 0; padding: 0; }
.responsive-table-wide > thead button { min-height: 44px; padding: 8px; border: 1px solid var(--line); border-radius: 7px; }
.responsive-table-wide > tbody { display: grid; gap: 12px; padding: 12px; }
.responsive-table-wide > tbody > tr { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px 16px; padding: 16px; border: 1px solid var(--line); border-radius: 12px; background: white; }
.responsive-table-wide > tbody > tr > td { display: block; min-width: 0 !important; width: auto !important; max-width: none !important; padding: 0 !important; border: 0; text-align: left !important; font-size: 13px; line-height: 1.6; }
.responsive-table-wide > tbody > tr > td:first-child, .responsive-table-wide .responsive-cell-wide { grid-column: 1/-1; }
.responsive-table-wide td[data-column-label]:not([data-column-label=""])::before { content: attr(data-column-label); display: block; font-size: 10px; font-weight: 600; color: var(--olive-50); letter-spacing: .3px; margin-bottom: 5px; }
.responsive-table-wide td strong, .responsive-table-wide .table-name-button { font-size: 13px; }
.responsive-table-wide td small { font-size: 11px; max-width: none; }
.responsive-table-wide td input:not([type=checkbox]), .responsive-table-wide td select { width: 100%; min-width: 0; max-width: 100%; }
.responsive-table-wide td .name-cell { min-width: 0; }
}
@container (max-width: 1350px) {

.responsive-table-extra-wide { display: block; table-layout: auto; }
.responsive-table-extra-wide > thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.responsive-table-extra-wide > thead.has-table-controls { position: static; width: auto; height: auto; overflow: visible; clip-path: none; display: block; padding: 10px; border-bottom: 1px solid var(--line); }
.responsive-table-extra-wide > thead.has-table-controls > tr { display: flex; flex-wrap: wrap; gap: 8px; }
.responsive-table-extra-wide > thead.has-table-controls th:not(.has-table-control) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); padding: 0; }
.responsive-table-extra-wide > thead .has-table-control { display: block; border: 0; padding: 0; }
.responsive-table-extra-wide > thead button { min-height: 44px; padding: 8px; border: 1px solid var(--line); border-radius: 7px; }
.responsive-table-extra-wide > tbody { display: grid; gap: 12px; padding: 12px; }
.responsive-table-extra-wide > tbody > tr { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px 16px; padding: 16px; border: 1px solid var(--line); border-radius: 12px; background: white; }
.responsive-table-extra-wide > tbody > tr > td { display: block; min-width: 0 !important; width: auto !important; max-width: none !important; padding: 0 !important; border: 0; text-align: left !important; font-size: 13px; line-height: 1.6; }
.responsive-table-extra-wide > tbody > tr > td:first-child, .responsive-table-extra-wide .responsive-cell-wide { grid-column: 1/-1; }
.responsive-table-extra-wide td[data-column-label]:not([data-column-label=""])::before { content: attr(data-column-label); display: block; font-size: 10px; font-weight: 600; color: var(--olive-50); letter-spacing: .3px; margin-bottom: 5px; }
.responsive-table-extra-wide td strong, .responsive-table-extra-wide .table-name-button { font-size: 13px; }
.responsive-table-extra-wide td small { font-size: 11px; max-width: none; }
.responsive-table-extra-wide td input:not([type=checkbox]), .responsive-table-extra-wide td select { width: 100%; min-width: 0; max-width: 100%; }
.responsive-table-extra-wide td .name-cell { min-width: 0; }
}
@container (max-width: 340px) { .responsive-table > tbody > tr { grid-template-columns: minmax(0,1fr); padding: 12px; } }
@media print { .navigation-backdrop, .navigation-close { display: none !important; } }

@media (max-width: 1024px) and (max-height: 500px) {
  .overlay { padding: 0; top: var(--visible-top, 0px); bottom: auto; height: var(--visible-height, 100dvh); }
  .modal, .modal.wide, .modal.catalog-item-modal, .modal.operation-modal, .drawer .modal { width: 100%; max-width: 100%; height: 100%; max-height: 100%; border-radius: 0; }
  .modal-head { padding: 10px 16px; }
  .modal-body { padding: 16px; flex: 1; }
  .modal-foot { padding: 8px 16px; }
  .login-page { grid-template-columns: minmax(0,1fr); }
  .login-visual { display: none; }
}

/* One type scale for every navigation module, matching Overview. */
.sidebar nav .nav-item,
.sidebar nav .nav-module summary {
  font-family: inherit;
  font-size: 12px;
  font-weight: 550;
  line-height: 1.5;
  letter-spacing: normal;
  text-transform: none;
}
@media (max-width: 1200px) {
  .sidebar nav .nav-item,
  .sidebar nav .nav-module summary { font-size: 11px; }
}
@media (max-width: 1024px), (pointer: coarse) {
  .sidebar nav .nav-item,
  .sidebar nav .nav-module summary { font-size: 14px; }
}

/* Count cards keep the photo separate from the item and entry controls. */
@container (max-width: 720px) {
  #count-rows .responsive-table > tbody > tr {
    position: relative;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 12px 14px;
    align-items: start;
  }
  #count-rows .responsive-table > tbody > tr > td:nth-child(1) { grid-column: 1; grid-row: 1; align-self: center; }
  #count-rows .responsive-table > tbody > tr > td:nth-child(2) { grid-column: 2; grid-row: 1; align-self: center; padding: 38px 0 !important; }
  #count-rows .responsive-table > tbody > tr > td:nth-child(3) { grid-column: 1; grid-row: 2; text-align: left !important; }
  #count-rows .responsive-table > tbody > tr > td:nth-child(4) { grid-column: 2; grid-row: 2; }
  #count-rows .responsive-table > tbody > tr > td:nth-child(5) { position: absolute; top: 10px; right: 10px; }
  #count-rows .responsive-table > tbody > tr > td:nth-child(1)::before,
  #count-rows .responsive-table > tbody > tr > td:nth-child(5)::before { display: none; }
  #count-rows .inventory-photo { width: 100%; height: auto; aspect-ratio: 1; }
  #count-rows .inventory-photo img { width: 100%; height: 100%; object-fit: contain; }
  #count-rows .count-issue-icon { width: 36px; height: 36px; min-height: 36px; }
  #count-rows select[data-count-unit], #count-rows .count-input { width: 100%; }
}

@container (max-width: 720px) { #count-rows .count-input { text-align: center; } }

.reports-catalog{display:grid;gap:30px}.report-group>.section-title{display:flex;justify-content:flex-start;align-items:center;gap:9px;margin-bottom:14px;font-size:14px}.report-cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.report-card{display:flex;flex-direction:column;padding:22px;border:1px solid var(--border,#e7e7e7);border-radius:14px;background:var(--gray-100);color:inherit;text-decoration:none;transition:border-color .15s,box-shadow .15s}.report-card:hover,.report-card:focus-visible{border-color:var(--yellow-69);box-shadow:0 3px 15px #0000000a}.report-card-title{display:flex;justify-content:space-between;gap:14px}.report-card h2{font-size:16px;line-height:1.4;margin:0}.report-card p{font-size:13px;color:var(--gray-50);line-height:1.6;flex:1;margin:12px 0 18px}.report-tag{font-size:11px;color:#656047;background:var(--olive-97);border-radius:6px;padding:5px 8px;align-self:flex-start}.report-filter-panel{padding:20px;margin-bottom:20px}.report-filters{display:flex;flex-wrap:wrap;gap:14px;align-items:end}.report-filters>select{font-size:13px;min-width:145px;flex:0 1 220px;max-width:280px}.report-filters>.hd-date-trigger{height:40px;flex-shrink:0}.report-filters select,.report-results select{height:40px;padding:8px 10px;border:1px solid var(--gray-90);border-radius:7px;background:var(--gray-100);color:var(--gray-27);max-width:100%;min-width:0;font:inherit}.report-filter-buttons{display:flex;gap:8px;align-items:end;flex-wrap:wrap}.report-summary{display:flex;flex-wrap:wrap;gap:16px;margin:20px 0}.report-summary .stat-card{min-width:190px;flex:1}.report-notes{background:var(--yellow-99);border:1px solid #eee7c9;padding:12px 18px;border-radius:10px;margin:16px 0 22px;font-size:12px;color:#645b34}.report-notes p{display:flex;align-items:flex-start;gap:9px;line-height:1.6;margin:6px 0}.report-notes .icon{flex-shrink:0;margin-top:2px;width:15px;height:15px}.report-sort{border:0;background:none;color:inherit;font:inherit;text-align:left;padding:0;cursor:pointer;white-space:nowrap}.report-numeric{font-variant-numeric:tabular-nums;text-align:right}.report-results td{max-width:340px;white-space:normal}.report-results .panel-head p{font-size:12px}.report-results .panel-head label{font-size:12px;white-space:nowrap}.report-results .pagination .pages{align-items:center;gap:10px}
@media(max-width:1100px){.report-cards{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:640px){.report-cards{grid-template-columns:1fr}.report-filters>select{max-width:100%;min-width:120px;flex:1 1 145px}.report-filters>.hd-date-trigger{max-width:100%}.report-summary .stat-card{min-width:140px}.report-results .panel-head{align-items:flex-start;flex-direction:column;gap:12px}.report-card{padding:18px}.report-filter-panel{padding:15px}}
@media print{.report-filter-buttons,.report-results .pagination,.report-results .panel-head select{display:none}.report-results .table-wrap{overflow:visible}.report-results td{font-size:11px}.report-notes{break-inside:avoid}.report-summary{break-inside:avoid}}
.report-chart{margin-bottom:22px;overflow:hidden}.report-chart .panel-head{border-bottom:0;padding-bottom:8px}.report-chart .panel-head h2{font-size:17px}.report-chart .panel-head p{font-size:12px;color:var(--text-muted);margin-top:6px}.report-chart-badge{font-size:11px;background:var(--gray-97);border:1px solid var(--olive-92);border-radius:20px;padding:6px 12px;color:#595959;white-space:nowrap}.report-chart-plot{padding:8px 22px 0;overflow-x:auto}.report-chart-svg{display:block;width:100%;min-width:650px;height:auto;max-height:none}.chart-axis{stroke:var(--olive-86);stroke-width:1}.chart-grid{stroke:var(--gray-95);stroke-width:1}.chart-target{stroke:#b38922;stroke-width:1.5;stroke-dasharray:5 4}.chart-label,.chart-value{font:12px system-ui,sans-serif;fill:var(--olive-36)}.chart-tick{font:11px system-ui,sans-serif;fill:var(--olive-58)}.chart-value{font-weight:600}.chart-total{font:bold 32px system-ui,sans-serif;fill:#444444}.report-chart-svg [tabindex]:focus{outline:2px solid #d49a19;outline-offset:2px}.report-chart-legend{display:flex;gap:20px;flex-wrap:wrap;font-size:12px;color:var(--text-muted);padding:4px 0 12px}.report-chart-legend span{display:inline-flex;align-items:center;gap:7px}.report-chart-legend i{width:10px;height:10px;border-radius:3px}.report-chart-notes{padding:0 24px 12px;font-size:12px;color:var(--text-muted);line-height:1.5}.report-chart-notes p{margin:5px 0}.report-chart-empty{min-height:205px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;color:var(--text-muted);text-align:center;padding:20px}.report-chart-empty span{font-size:12px}.report-chart-values{border-top:1px solid var(--gray-96);padding:12px 24px;font-size:12px}.report-chart-values summary{cursor:pointer;color:var(--olive-47)}.report-chart-values ul{list-style:none;max-height:230px;overflow:auto;padding:0}.report-chart-values li{display:flex;justify-content:space-between;gap:20px;border-bottom:1px solid var(--gray-96);padding:8px 0}.report-chart-values strong{white-space:nowrap;font-variant-numeric:tabular-nums}
@media(max-width:640px){.report-chart .panel-head{gap:10px;align-items:flex-start}.report-chart .panel-head h2{font-size:15px}.report-chart-plot{padding:8px 12px 0}.report-chart-notes{padding:0 16px 12px}.report-chart .panel-head p{max-width:220px}}
@media print{.report-chart{break-inside:avoid}.report-chart-plot{overflow:visible}.report-chart-svg{min-width:0}.report-chart-values{display:none}}

.chart-line .report-chart-svg{max-height:none}.chart-heatmap .report-chart-svg{max-height:none}.chart-donut .report-chart-svg{max-height:none}

.report-filter-buttons{margin-left:auto}.report-metric-toggle{display:flex;gap:6px}.report-metric-toggle [aria-pressed="true"]{background:var(--yellow);border-color:var(--yellow)}.chart-tooltip{visibility:hidden;pointer-events:none}.chart-tooltip rect{fill:var(--olive-28)}.chart-tooltip text{fill:white;font:11px system-ui,sans-serif}.chart-point:hover .chart-tooltip,.chart-point:focus .chart-tooltip{visibility:visible}.chart-point{cursor:crosshair}

.report-chart-controls{display:flex;justify-content:flex-end;gap:8px;flex-wrap:wrap;padding:8px 24px 14px}.report-chart-controls:empty{display:none}.report-chart-controls select{border:1px solid var(--olive-90);border-radius:8px;padding:8px 30px 8px 12px;background:var(--gray-100);color:var(--olive-36);font:inherit}.report-analysis{border-top:1px solid var(--gray-95);padding:22px 0 12px;margin-top:10px;background:linear-gradient(var(--gray-99),var(--gray-100))}.report-analysis-heading{padding:0 24px 8px}.report-analysis-heading h3{font-size:15px;margin:0 0 6px}.report-analysis-heading p{font-size:12px;line-height:1.5;color:var(--text-muted)}.report-analysis .analytics-svg{max-height:none}.report-chart .panel-head{flex-wrap:wrap;gap:12px}.report-chart .panel-head>div:first-child{flex:1}.report-filters>.hd-date-trigger:not(:first-child){max-width:280px}.chart-bars .report-chart-svg{max-height:none}.chart-tooltip{filter:drop-shadow(0 3px 4px #0002)}@media(max-width:640px){.report-chart-controls{justify-content:flex-start;padding:8px 16px}.report-chart-controls select{max-width:100%}.report-analysis-heading{padding:0 16px 8px}}@media print{.report-chart-controls,.report-metric-toggle{display:none}.report-analysis .analytics-svg{max-height:none}}

.report-summary:empty{display:none}

.report-comparison-summary{display:flex;flex-wrap:wrap;gap:32px;margin:0 24px 18px;padding:16px 20px;background:var(--gray-97);border-radius:10px}.report-comparison-summary>div{display:grid;gap:6px;min-width:150px}.report-comparison-summary span{font-size:11px;color:var(--text-muted)}.report-comparison-summary strong{font-size:21px;font-variant-numeric:tabular-nums}

.report-results .table-wrap{overflow-x:auto;max-width:100%;-webkit-overflow-scrolling:touch}.report-results table[data-table-layout="rows"]{display:table;width:100%;min-width:760px;border-collapse:collapse;table-layout:auto}.report-results table[data-table-layout="rows"] th,.report-results table[data-table-layout="rows"] td{white-space:nowrap}.report-results table[data-table-layout="rows"] td:last-child{max-width:360px}.report-results .table-wrap:focus-visible{outline:2px solid #d49a19;outline-offset:-2px}@media print{.report-results table[data-table-layout="rows"]{min-width:0}.report-results table[data-table-layout="rows"] th,.report-results table[data-table-layout="rows"] td{white-space:normal}}

.report-chart-pair{display:grid;grid-template-columns:minmax(0,1fr);gap:20px;margin-bottom:22px}.report-chart-pair>.panel{min-width:0;margin-bottom:0}.report-chart-secondary{overflow:hidden}.report-chart-secondary .report-analysis{border:0;margin:0;background:none;padding-top:24px}.report-chart-secondary .report-analysis-heading h3{font-size:17px}.report-chart-secondary .report-chart-legend{padding-top:10px}.report-chart-pair .chart-tooltip text{font-size:16px}
@media(min-width:1200px){.report-chart-pair{grid-template-columns:repeat(2,minmax(0,1fr));align-items:stretch}.report-chart-pair .report-chart-svg{min-width:0;max-height:none}.report-chart-pair .chart-label,.report-chart-pair .chart-value{font-size:18px}.report-chart-pair .chart-tick{font-size:16px}.report-chart-pair .report-chart-plot{padding-left:14px;padding-right:14px}.report-chart-pair .report-chart-badge{display:none}.report-chart-pair .report-metric-toggle{flex-wrap:wrap}.report-chart-pair .report-analysis .report-chart-plot{padding-top:24px}}
@media print{.report-chart-pair{display:block}.report-chart-pair>.panel{margin-bottom:16px;break-inside:avoid}}

.chart-expandable{position:relative}.chart-expand-button{position:absolute;right:18px;top:18px;z-index:2;background:var(--gray-100);border:1px solid var(--olive-92);border-radius:8px;width:34px;height:34px;display:grid;place-items:center;cursor:pointer}.chart-expand-button:hover{background:var(--gray-97)}.chart-expand-button:focus-visible{outline:2px solid #b8860b;outline-offset:3px}.chart-expandable>.panel-head,.chart-expandable>.report-analysis-heading{padding-right:68px}.chart-expanded-dialog{border:1px solid var(--olive-92);border-radius:18px;padding:0;width:min(1440px,96vw);max-width:96vw;max-height:92dvh;background:var(--gray-100);color:var(--gray-24);box-shadow:0 24px 80px #0004}.chart-expanded-dialog::backdrop{background:#16161699}.chart-expanded-header{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:20px 24px;border-bottom:1px solid var(--gray-95)}.chart-expanded-header h2{margin:0;font-size:20px}.chart-expanded-body{overflow:auto;max-height:calc(92dvh - 80px);padding:16px}.chart-expanded-body>.panel,.chart-expanded-body>.report-analysis{margin:0;border:0;box-shadow:none;background:var(--gray-100)}.chart-expanded-body .report-chart-svg,.chart-expanded-body .sales-chart{width:100%;height:auto;max-height:none}.chart-expanded-body .report-chart-plot{overflow-x:auto}.chart-expanded-body .chart-label,.chart-expanded-body .chart-value{font-size:12px}.chart-expanded-body .chart-tick{font-size:11px}@media(max-width:640px){.chart-expanded-header{padding:16px}.chart-expanded-header h2{font-size:17px}.chart-expanded-body{padding:4px}.chart-expanded-body .report-chart-plot{padding:8px}}@media print{.chart-expand-button,.chart-expanded-dialog{display:none}}

.report-card{position:relative}.report-card-link{color:inherit;text-decoration:none;display:block;flex:1;min-width:0}.report-card-link:after{content:"";position:absolute;inset:0;border-radius:inherit}.report-card-title{padding-right:36px}.report-card:has(.report-card-link:focus-visible){outline:2px solid var(--focus);outline-offset:2px}.report-favorite{position:absolute;top:12px;right:12px;z-index:1;display:grid;place-items:center;width:40px;height:40px;border:1px solid transparent;border-radius:8px;background:transparent;color:var(--text-muted);cursor:pointer}.report-favorite svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.7}.report-favorite:hover:not(:disabled){background:var(--yellow-97);color:var(--olive-34)}.report-favorite.is-favorite svg{fill:var(--yellow);stroke:none}.report-favorite:disabled{cursor:wait;opacity:.45}.report-favorites-error{font-size:13px;line-height:1.6;margin-bottom:20px;color:var(--red-50)}

.day-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin-bottom:20px}.day-toolbar{flex-wrap:wrap}.day-view-bar{display:flex;align-items:center;justify-content:space-between;padding:14px 20px;border-top:1px solid var(--gray-95);color:var(--text-muted)}.day-view-bar>div{display:flex;gap:6px}.day-board{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px;margin-top:20px}.day-column{background:var(--gray-95);border:1px solid var(--olive-92);border-radius:16px;overflow:hidden;min-width:0}.day-column>header{padding:18px 20px;display:flex;align-items:center;justify-content:space-between;border-top:4px solid var(--blue-68)}.day-column-doing>header{border-color:var(--amber-80)}.day-column-done>header{border-color:var(--green-65)}.day-column h2{font-size:16px;margin:0}.day-column>header>span{background:white;border-radius:20px;padding:3px 10px;font-size:12px}.day-column-body{padding:0 12px 12px;min-height:220px}.day-card{background:var(--gray-100);border:1px solid var(--olive-92);border-radius:12px;padding:18px;margin-bottom:12px;box-shadow:0 3px 9px #26262604}.day-title{display:block;border:0;background:none;padding:0;color:var(--gray-24);font:inherit;font-weight:700;text-align:left;cursor:pointer;overflow-wrap:anywhere}.day-title:hover{text-decoration:underline}.day-card .day-title{margin:14px 0 18px;line-height:1.45}.day-card-person,.day-card-date{display:flex;gap:8px;align-items:center;font-size:12px;margin:10px 0;color:var(--olive-52)}.day-card svg{width:15px;height:15px;flex-shrink:0}.day-card footer,.day-procedure-card footer{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:18px}.day-card footer small{color:var(--text-muted)}.day-label{display:inline-block;padding:5px 10px;border-radius:5px;font-size:11px;font-weight:700;white-space:nowrap}.day-todo,.day-draft,.day-normal{background:#f0f0f0;color:#6a6a6a}.day-doing,.day-high{background:var(--yellow-97);color:#986600}.day-done,.day-published{background:var(--gray-96);color:var(--green-50)}.day-urgent{background:var(--red-95);color:#525252}.day-low{background:#efefef;color:#626262}.day-overdue{color:var(--red-53)}.day-column-empty{text-align:center;padding:60px 12px;color:var(--text-muted);font-size:13px}.day-table th{font-size:11px}.day-procedures{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px;margin-top:20px}.day-procedure-card{padding:24px;display:flex;flex-direction:column;gap:14px}.day-procedure-card>div{display:flex;justify-content:space-between;align-items:center}.day-procedure-card>div>svg{width:24px;color:#8b7430}.day-procedure-card h2{margin:0;font-size:18px;overflow-wrap:anywhere}.day-procedure-card p{margin:0;color:var(--text-muted);line-height:1.6;white-space:pre-line}.day-procedure-card small{color:var(--text-muted)}.day-procedure-card footer{margin-top:auto;padding-top:12px}.day-form{display:grid;gap:18px}.day-form label,.day-detail label{display:grid;gap:8px}.day-form input,.day-form select,.day-form textarea,.day-detail select{width:100%;box-sizing:border-box}.day-form textarea{resize:vertical;min-height:100px}.day-prewrap{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.7}.day-detail-labels{display:flex;gap:8px}.day-detail dl{display:grid;grid-template-columns:100px 1fr;gap:16px;margin:25px 0}.day-detail dt{color:var(--text-muted)}.day-detail dd{margin:0}.day-detail form{margin-top:24px}.day-steps{padding-left:24px}.day-steps li{padding:8px 0 8px 8px;line-height:1.7;overflow-wrap:anywhere}.day-steps li::marker{font-weight:700;color:#a48314}#day-form-error,#day-status-error{color:var(--red-53)}@media(max-width:1000px){.day-procedures{grid-template-columns:repeat(2,minmax(0,1fr))}.day-board{gap:12px}.day-card{padding:12px}}@media(max-width:700px){.day-board,.day-procedures{grid-template-columns:1fr}.day-stats{gap:8px}.day-stats .stat-card{padding:14px}.day-stats .stat-value{font-size:24px}.day-view-bar{gap:12px;flex-wrap:wrap}.day-column-body{min-height:100px}}
/* Match the shared control border instead of browser-default black outlines. */
.day-toolbar>select,.day-form input,.day-form select,.day-form textarea,.day-detail select{border:1px solid var(--line);border-radius:var(--control-radius,8px);background-color:var(--white);color:var(--ink);padding:11px 12px;min-width:0;box-shadow:none}.day-form input:focus,.day-form select:focus,.day-form textarea:focus,.day-toolbar>select:focus,.day-detail select:focus{border-color:var(--yellow-77);outline:2px solid var(--yellow-77);outline-offset:1px}.day-form label{min-width:0}.day-recurrence{padding:18px;border:1px solid var(--line);border-radius:12px;background:var(--gray-99)}.day-recurrence h3{font-size:14px;margin-bottom:14px}.day-recurrence p,.day-recurrence-note{font-size:12px;line-height:1.6;margin-top:12px}.day-recurrence [hidden]{display:none}.day-recurring-icon{color:var(--muted);font-weight:400}.day-calendar{margin-top:20px}.day-calendar-head{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:20px 24px;border-bottom:1px solid var(--line)}.day-calendar-head h2{font-size:18px}.day-calendar-head>div{display:flex;gap:8px}.day-calendar-scroll{overflow-x:auto}.day-calendar-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));min-width:650px}.day-weekday{text-align:center;background:var(--gray-99);color:var(--muted);font-size:11px;font-weight:600;padding:12px;border-bottom:1px solid var(--line)}.day-calendar-cell{min-height:130px;padding:10px 8px;border-right:1px solid var(--line);border-bottom:1px solid var(--line);background:var(--gray-100);min-width:0}.day-calendar-cell:nth-child(7n){border-right:0}.day-calendar-cell>header{display:flex;align-items:center;justify-content:space-between;margin-bottom:8px;padding:0 2px;color:#555d57;font-size:12px}.day-calendar-cell>header>span{display:grid;place-items:center;width:26px;height:26px;border-radius:50%}.day-calendar-cell>header>small{color:var(--muted)}.day-calendar-cell.outside-month{background:var(--gray-99)}.day-calendar-cell.outside-month>header{color:var(--text-muted)}.day-calendar-cell.is-today>header>span{background:var(--yellow);color:var(--ink);font-weight:700}.day-calendar-task{display:block;text-align:left;width:100%;padding:8px;margin:5px 0;border:1px solid var(--line);border-left:3px solid var(--blue-68);border-radius:5px;background:var(--gray-97);color:#505050;font-size:11px;line-height:1.45}.day-calendar-task strong{display:block;overflow-wrap:anywhere;font-weight:600}.day-calendar-task small{display:block;color:inherit;opacity:.8;margin-top:3px;overflow-wrap:anywhere}.day-calendar-task:hover{filter:brightness(.97)}.day-calendar-doing{background:var(--yellow-99b);color:#8c650f;border-left-color:var(--amber-80)}.day-calendar-done{background:var(--gray-96);color:var(--green-50);border-left-color:var(--green-65)}.day-calendar>footer{display:flex;gap:20px;flex-wrap:wrap;align-items:center;padding:16px 24px;color:var(--muted);font-size:11px}.day-calendar-legend{display:flex;gap:6px;align-items:center}.day-calendar-legend:before{content:'';width:7px;height:7px;border-radius:50%;background:var(--blue-68)}.day-calendar-legend.doing:before{background:var(--amber-80)}.day-calendar-legend.done:before{background:var(--green-65)}@media(max-width:700px){.day-calendar-head{padding:16px}.day-calendar-cell{min-height:110px}.day-calendar>footer{padding:14px;gap:12px}.day-view-bar>div{flex-wrap:wrap}}

.day-calendar-head { flex-wrap:wrap; gap:12px; }
.day-calendar-head [aria-pressed="true"] { background:var(--yellow,var(--yellow-87)); color:var(--gray-21); border-color:var(--yellow,var(--yellow-87)); }
.day-calendar-date { border:0; background:transparent; color:inherit; font:inherit; cursor:pointer; padding:2px; }
.day-calendar-view-day { grid-template-columns:1fr; min-width:0; }
.day-calendar-view-day .day-calendar-cell { min-height:300px; }
.day-calendar-view-week .day-calendar-cell { min-height:300px; }
.day-calendar-task small { display:block; }
.day-year-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:24px; padding:24px; }
.day-mini-grid { display:grid; grid-template-columns:repeat(7,minmax(0,1fr)); gap:3px; margin-top:12px; text-align:center; }
.day-mini-grid>span { font-size:11px; color:var(--muted); }
.day-mini-grid button { position:relative; border:0; background:transparent; border-radius:7px; min-height:32px; padding:5px; cursor:pointer; color:inherit; }
.day-mini-grid .outside-month { opacity:.3; }
.day-mini-grid .is-today { background:var(--yellow,var(--yellow-87)); font-weight:700; }
.day-mini-grid .has-events { font-weight:700; background:var(--gray-96); }
.day-mini-grid i { position:absolute; width:4px; height:4px; border-radius:50%; background:var(--green-55); bottom:2px; left:calc(50% - 2px); }
.day-card[draggable="true"] { cursor:grab; }
.day-card.day-dragging { opacity:.55; }
.day-column.day-drop-target { outline:2px dashed var(--green-55); outline-offset:3px; background:var(--gray-96); }
.day-card:focus-visible,.day-mini-grid button:focus-visible { outline:2px solid var(--green-55); outline-offset:2px; }
@media(max-width:1000px){.day-year-grid{grid-template-columns:repeat(3,minmax(0,1fr));}}
@media(max-width:650px){.day-year-grid{grid-template-columns:repeat(2,minmax(0,1fr));padding:12px;gap:16px;}.day-calendar-head>div{flex-wrap:wrap;}}
@media(max-width:380px){.day-year-grid{grid-template-columns:1fr;}}

.handover-controls{margin-bottom:24px}.handover-tabs{display:flex;gap:8px;flex-wrap:wrap;padding:16px 20px;border-bottom:1px solid var(--line)}.handover-filters{display:flex;align-items:end;gap:12px;flex-wrap:wrap;padding:20px}.handover-filters label{display:grid;gap:7px;font-size:12px;color:var(--text-muted);min-width:130px;flex:1}.handover-filters .handover-search{flex:2;min-width:200px}.handover-filters input,.handover-filters select,.handover-form input,.handover-form select,.handover-form textarea{width:100%;min-width:0;border:1px solid var(--line);border-radius:var(--control-radius,8px);padding:11px 12px;background:var(--white);color:var(--ink);font:inherit;box-sizing:border-box}.handover-form input[type=checkbox]{width:18px;height:18px;accent-color:var(--ink);flex:none}.handover-form .handover-check{display:flex;align-items:center;gap:10px;line-height:1.5}.handover-form :focus-visible,.handover-filters :focus-visible{outline:2px solid var(--yellow-77);outline-offset:2px}.handover-layout{display:grid;grid-template-columns:minmax(260px,1fr) minmax(0,2.7fr);gap:24px;align-items:start}.handover-shift{padding:20px;border-top:1px solid var(--line)}.handover-shift h3{font-size:15px;margin:0 0 10px}.handover-shift p{font-size:12px;color:var(--text-muted);line-height:1.6;margin:6px 0}.handover-row-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:16px}.handover-row-actions .btn{font-size:12px}.handover-layout td small{display:block;margin-top:8px;color:var(--text-muted)}.handover-layout td:first-child{min-width:190px}.handover-layout td{vertical-align:top}.handover-pad{padding:24px}.handover-pad h2{font-size:18px;margin:0 0 22px}.handover-note{line-height:1.6;color:var(--text-muted);margin:0 0 24px}.handover-board{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:16px;align-items:start}.handover-column>header{padding:18px;display:flex;justify-content:space-between;gap:12px;border-bottom:1px solid var(--line)}.handover-column h2{font-size:13px;margin:0}.handover-column>article{padding:18px;border-bottom:1px solid var(--line)}.handover-column>article:last-child{border-bottom:0}.handover-column p,.handover-column small{font-size:12px;line-height:1.6;margin:10px 0 0;color:var(--text-muted)}.handover-column .day-overdue{color:var(--red-50)}.handover-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin-bottom:24px}.handover-dashboard{display:grid;grid-template-columns:1fr 1fr;gap:24px;margin-bottom:24px}.handover-details{display:grid;grid-template-columns:minmax(90px,140px) minmax(0,1fr);gap:12px 18px;margin:20px 0;font-size:13px}.handover-details dt{color:var(--text-muted)}.handover-details dd{margin:0;overflow-wrap:anywhere}.handover-detail>section{border-top:1px solid var(--line);padding-top:24px;margin-top:28px}.handover-section-head{display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap}.handover-action-detail{padding:20px 0;border-bottom:1px solid var(--line)}.handover-action-detail:last-child{border-bottom:0}.handover-detail h3{font-size:17px;margin:0 0 18px}.handover-detail h4{font-size:14px;margin:0}.handover-badges{display:flex;gap:8px;flex-wrap:wrap}.handover-media{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin-bottom:24px}.handover-media figure{margin:0}.handover-media img,.handover-media video{width:100%;max-height:250px;object-fit:contain;background:var(--gray-97);border-radius:8px}.handover-media figcaption{font-size:12px;margin-top:7px;overflow-wrap:anywhere;color:var(--text-muted)}.handover-comment,.handover-history{padding:14px 0;border-bottom:1px solid var(--line);font-size:13px;line-height:1.6}.handover-comment small{color:var(--text-muted)}.handover-urgent,.handover-blocked{background:var(--red-95);color:var(--red-50)}.handover-high,.handover-review{background:var(--yellow-97);color:var(--olive-34)}.handover-done,.handover-closed{background:var(--gray-96);color:var(--green-50)}.handover-todo,.handover-registered,.handover-normal,.handover-information{background:var(--gray-96);color:var(--gray-27)}.handover-doing,.handover-triage,.handover-treatment,.handover-low,.handover-problem,.handover-complaint,.handover-improvement{background:var(--olive-94);color:var(--olive-34)}#handover-error,#handover-upload-error,#handover-comment-error{color:var(--red-50)}.handover-details dd,.handover-dashboard td{font-variant-numeric:tabular-nums}.handover-form p{line-height:1.6}.handover-form textarea{resize:vertical}.handover-shifts{max-height:850px;overflow:auto}@media(max-width:1200px){.handover-board{grid-template-columns:repeat(3,minmax(0,1fr))}.handover-layout{grid-template-columns:1fr}.handover-shifts{max-height:400px}}@media(max-width:700px){.handover-board,.handover-dashboard{grid-template-columns:1fr}.handover-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.handover-filters{padding:16px;gap:12px}.handover-tabs{padding:14px}.handover-media{grid-template-columns:1fr}.handover-details{grid-template-columns:100px minmax(0,1fr)}.handover-stats .stat-card{padding:16px}.handover-layout{gap:16px}.handover-shifts{max-height:350px}}

.handover-category-table{width:100%;min-width:0;table-layout:fixed;border-collapse:collapse}.handover-category-table th,.handover-category-table td{padding:11px 8px;overflow-wrap:anywhere;white-space:normal;font-size:12px}.handover-category-table th:first-child{width:52%}.handover-category-table th:not(:first-child),.handover-category-table td:not(:first-child){text-align:right}.handover-dashboard{align-items:start}.day-blocked{background:var(--red-95);color:var(--red-50)}.day-review{background:var(--yellow-97);color:var(--olive-34)}.day-card .day-detail-labels{flex-wrap:wrap;gap:6px}

/* Careers (Team → Careers): applications from the careers site. */
.careers-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin:20px 0}
.careers-candidate strong{display:block}.careers-candidate small{display:block;margin-top:3px;color:var(--text-muted);font-size:11px}
.careers-days{display:inline-flex;flex-wrap:wrap;gap:3px;margin-top:4px}.careers-days span{font-size:10px;font-weight:600;letter-spacing:.3px;padding:2px 5px;border-radius:4px;background:var(--gray-96);color:var(--text-muted)}
.careers-stars{display:inline-flex;gap:1px;color:var(--gray-90);font-size:13px;letter-spacing:1px;line-height:1}.careers-stars i{font-style:normal}.careers-stars i.on{color:var(--yellow-77)}
.careers-detail{display:grid;gap:20px}
.careers-head{display:flex;flex-wrap:wrap;align-items:center;gap:8px 10px;font-size:12px;color:var(--text-muted)}.careers-head .status{font-size:11px}
.careers-contact{display:flex;flex-wrap:wrap;gap:8px}.careers-contact a{display:inline-flex;align-items:center;gap:6px;padding:7px 10px;border:1px solid var(--line);border-radius:var(--radius-s);font-size:12px;color:var(--ink);text-decoration:none;background:var(--gray-100)}.careers-contact a:hover{background:var(--gray-97)}.careers-contact .icon{width:14px;height:14px;color:var(--text-muted)}
.careers-section h3{font-size:11px;text-transform:uppercase;letter-spacing:.7px;color:var(--text-muted);margin:0 0 10px;font-weight:650}
.careers-section .detail-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
.careers-pitch{margin:12px 0 0;padding:14px;background:var(--yellow-99,#fffbee);border:1px solid var(--yellow-88);border-radius:var(--radius-s);font-size:12px;line-height:1.7;color:var(--olive-30)}
.careers-files{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.careers-file{display:flex;align-items:center;gap:12px;padding:12px;border:1px solid var(--olive-94);border-radius:var(--radius-s);background:var(--gray-99)}
.careers-file img{width:64px;height:64px;object-fit:cover;border-radius:8px;background:var(--gray-96);flex:0 0 auto}
.careers-file .careers-file-icon{width:44px;height:44px;border-radius:8px;background:var(--gray-96);display:grid;place-items:center;color:var(--text-muted);flex:0 0 auto}
.careers-file div{min-width:0;flex:1}.careers-file strong{display:block;font-size:12px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.careers-file small{display:block;color:var(--text-muted);font-size:11px;margin-top:2px}
.careers-file.empty-file{color:var(--text-muted);font-size:12px;justify-content:center;border-style:dashed;background:transparent;padding:18px}
.careers-review{padding:16px;border:1px solid var(--olive-94);border-radius:var(--radius-m);background:var(--gray-99);display:grid;gap:14px}
.careers-review .form-grid{gap:14px}
.careers-review label{display:flex;flex-direction:column;gap:8px;font-size:12px;font-weight:600;color:var(--olive-40)}
.careers-review select,.careers-review textarea{padding:11px 12px;border:1px solid var(--line);border-radius:var(--radius-s);background-color:var(--gray-100);color:var(--ink);font-weight:400;font-size:var(--control-font-size)}
.careers-review textarea{min-height:76px;resize:vertical}
.careers-rating{display:flex;align-items:center;gap:4px}
.careers-rating button{border:1px solid var(--line);background:var(--gray-100);border-radius:6px;width:34px;height:34px;font-size:15px;color:var(--gray-90);display:grid;place-items:center;transition:color .15s,border-color .15s}
.careers-rating button[aria-pressed=true],.careers-rating button:hover{color:var(--yellow-77);border-color:var(--yellow-88)}
.careers-rating .careers-rating-clear{width:auto;padding:0 10px;font-size:11px;color:var(--text-muted)}
.careers-review-foot{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap}
.careers-error{margin:0;color:var(--red-52);font-size:12px;min-height:1em}
.careers-notes{display:grid;gap:10px}.careers-note{padding:12px 14px;border-left:3px solid var(--yellow-87);background:var(--gray-99);border-radius:0 var(--radius-s) var(--radius-s) 0;font-size:12px;line-height:1.6;white-space:pre-wrap}.careers-note small{display:block;color:var(--text-muted);margin-top:6px;font-size:11px}
.careers-timeline{list-style:none;margin:0;padding:0;display:grid;gap:8px;font-size:12px}.careers-timeline li{display:grid;grid-template-columns:150px 1fr;gap:12px;color:var(--olive-36)}.careers-timeline li small{color:var(--text-muted);font-variant-numeric:tabular-nums}
@media(max-width:1100px){.careers-stats{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:760px){.careers-stats{grid-template-columns:1fr}.careers-section .detail-grid,.careers-files{grid-template-columns:1fr}.careers-timeline li{grid-template-columns:1fr}}

 .careers-profile{display:flex;align-items:center;gap:16px}.careers-profile-photo{width:128px;height:128px;flex-shrink:0;object-fit:cover;border-radius:var(--radius-m);border:1px solid var(--line)}.careers-profile-info{flex:1;min-width:0;display:grid;gap:12px}.careers-profile>.btn{flex-shrink:0;align-self:flex-start}.careers-profile .careers-head .spacer{display:none}.careers-profile .careers-contact a{overflow-wrap:anywhere;min-width:0}
@media(max-width:760px){.careers-profile{flex-wrap:wrap;align-items:flex-start}.careers-profile-photo{width:88px;height:88px}.careers-profile-info{flex-basis:calc(100% - 104px)}.careers-profile>.btn{margin-left:auto}.careers-profile .careers-contact{gap:6px}}

.careers-modal .modal-head .careers-profile-identity h2{margin:0;font-size:26px;line-height:1.3;color:var(--ink)}.careers-profile-identity p{margin:5px 0 0;font-size:12px;line-height:1.5;color:var(--text-muted)}

.careers-modal .modal-head{align-items:flex-start}.careers-modal .modal-head>.careers-profile{flex:1;min-width:0}.careers-modal .modal-head .careers-profile-info{gap:10px}.careers-modal .modal-head .careers-profile-identity p{margin:5px 0 0}.careers-files-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px}.careers-files-heading h3{margin:0}

@media(max-width:760px){.careers-modal .modal-head .careers-profile-identity h2{font-size:22px}}

/* Visible keyboard focus for inputs whose native outline is removed elsewhere. */
.login-input:focus-within{border-color:var(--yellow-55);box-shadow:0 0 0 3px #fece0780}
:has(>.global-search:focus-visible){box-shadow:0 0 0 3px #fece0780}
:where(button,a,[role="button"],select,summary,[tabindex]):focus-visible{outline:2px solid var(--focus);outline-offset:2px}

/* Glass workspace theme. Loaded last: it restyles the shared shell and components by their existing class names,
   so feature modules keep their markup. Motion is CSS-only (shell-motion.js only positions pills and splits titles). */

/* ---------- Base ---------- */
:root{--control-height:40px;--control-font-size:13px;--control-line-height:20px;--control-radius:12px;--sidebar:0px;--radius:var(--r);--paper:var(--bg);--shadow:0 1px 0 #ffffffb3 inset,0 24px 48px -30px #3737374d;
  font-family:'Avenir Next',Avenir,'SF Pro Rounded',Inter,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;font-variant-numeric:tabular-nums;-webkit-font-smoothing:antialiased}
body{background:var(--bg);color:var(--text);font-size:var(--fs-base);font-weight:500;line-height:1.45;overflow-x:hidden}
::selection{background:var(--lemon);color:var(--on-tile)}
.icon{stroke-width:1.8}
.mono{letter-spacing:.01em}

/* ---------- Shell: workspace, topbar, dock ---------- */
.sidebar,.navigation-backdrop,.mobile-menu,.sidebar-bottom{display:none!important}
.workspace{margin:0 auto;max-width:var(--app-max);min-height:100dvh;padding:22px var(--gut) 40px calc(var(--side-w) + var(--gut));overflow-x:clip}
.topbar{position:static;height:auto;background:none;border:0;backdrop-filter:none;padding:0;display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:20px;margin-bottom:24px;z-index:auto}
.brand{display:inline-flex;align-items:center;gap:10px;padding:0;min-width:0}
.brand__mark{display:block;flex:none;height:48px}
.brand__mark img{display:block;width:auto;height:48px;filter:none}
.brand__txt{display:grid;line-height:1.2;min-width:0}
.brand__txt b{font-size:17px;font-weight:700;letter-spacing:-.02em;white-space:nowrap}
.brand__txt small{display:block;margin:0;font-size:var(--fs-xs);letter-spacing:0;color:var(--muted);white-space:nowrap}
.nav-tabs{justify-self:center;min-width:0;max-width:100%;background:var(--glass);box-shadow:inset 0 0 0 1px var(--rim);border-radius:999px;overflow-x:auto;scrollbar-width:none}
.nav-tabs::-webkit-scrollbar{display:none}
.nav-tabs__track{position:relative;display:flex;gap:2px;padding:4px;width:max-content}
.nav-tab{position:relative;z-index:1;display:inline-flex;align-items:center;gap:6px;padding:10px 16px;border-radius:999px;font-size:var(--fs-md);font-weight:600;color:var(--text);white-space:nowrap;transition:background-color .2s,color .25s}
.nav-tab:hover{background:var(--well)}
.nav-tab.active,.nav-tab.active:hover{background:none;color:var(--on-pill)}
.nav-tabs__pill,.subtabs__pill,.seg__pill{position:absolute;top:0;left:0;z-index:0;border-radius:999px;opacity:0;pointer-events:none;transform:translateX(0)}
.nav-tabs__pill{background:var(--pill)}
.nav-tabs__pill.is-live,.subtabs__pill.is-live,.seg__pill.is-live{transition:transform .55s var(--ease-out),width .55s var(--ease-out),opacity .2s}
.top-actions{justify-self:end;display:flex;align-items:center;gap:10px;margin-left:0}
.ibtn{display:inline-grid;place-items:center;width:44px;height:44px;border-radius:50%;border:0;background:var(--glass-2);box-shadow:inset 0 0 0 1px var(--rim);color:var(--text);position:relative;flex:none;transition:background-color .2s;padding:0}
.ibtn:hover{background:var(--glass-3)}
.ibtn[aria-expanded=true]{background:var(--pill);color:var(--on-pill)}
.ibtn .notification-dot{top:calc(50% - 10px);right:calc(50% - 10px);width:7px;height:7px;background:var(--accent);outline:0;box-shadow:0 0 0 2px var(--glass-3)}
.top-actions .avatar{width:44px;height:44px;border:0;background:var(--glass-2);box-shadow:inset 0 0 0 1px var(--rim);color:var(--text);font-size:var(--fs-xs);font-weight:700;letter-spacing:.02em}
.location-trigger{height:40px;min-height:40px;padding:0 14px 0 16px;border-radius:999px;background:var(--glass-2);box-shadow:inset 0 0 0 1px var(--line-2);font-size:var(--fs-md);font-weight:600;color:var(--text);gap:8px;transition:background-color .2s}
.location-trigger:hover{background:var(--glass-3);color:var(--text)}
.location-trigger strong{font-weight:600}
.location-trigger svg{color:var(--faint)}
.search-trigger{display:none}
.dock{position:fixed;z-index:30;top:0;bottom:0;left:max(var(--dock-x),calc((100vw - var(--app-max)) / 2 + var(--dock-x)));margin:auto 0;height:fit-content;display:flex;flex-direction:column;gap:4px;padding:8px;border-radius:999px;background:var(--dock);color:var(--on-dock);box-shadow:0 20px 40px -18px #13131380}
.dock__btn{position:relative;display:grid;place-items:center;width:44px;height:44px;border-radius:50%;border:0;background:none;color:inherit;opacity:.74;padding:0;transition:opacity .2s,background-color .2s}
.dock__btn:hover,.dock__btn:focus-visible,.dock__btn[aria-current=page]{opacity:1;background:#ffffff21}
.dock__btn:focus-visible{outline-color:var(--on-dock)}
.dock__btn[aria-current=page]:after{content:"";position:absolute;top:50%;right:3px;width:5px;height:5px;margin-top:-2.5px;border-radius:50%;background:var(--accent)}

.dock__sep{height:1px;margin:4px 10px;background:#ffffff24}
.dock__tip{position:absolute;top:0;bottom:0;left:calc(100% + 14px);margin:auto 0;height:fit-content;padding:6px 10px;border-radius:10px;background:var(--float);color:var(--text);box-shadow:var(--shadow-pop);font-size:var(--fs-sm);font-weight:600;white-space:nowrap;pointer-events:none;opacity:0;transition:opacity .18s var(--ease)}
.dock__tip kbd{margin-left:4px}
.dock__btn:hover .dock__tip,.dock__btn:focus-visible .dock__tip{opacity:1}
.main{max-width:none;margin:0;padding:0;outline:none;min-width:0}

/* ---------- Page head ---------- */
.page-heading{display:flex;flex-wrap:wrap;align-items:center;gap:14px clamp(20px,2.4vw,36px);min-height:48px;margin-bottom:20px}
.page-heading__main{min-width:0}
.page-heading .eyebrow{display:none}
.page-title{font-size:clamp(28px,2.6vw,38px);font-weight:600;letter-spacing:-.025em;line-height:1.04;white-space:nowrap;outline:none}
.page-title .word{display:inline-block;vertical-align:top;overflow:hidden;margin-bottom:-.08em;padding-bottom:.08em}
.page-title .ch{display:inline-block}
.main.is-entering .page-title .ch{animation:rise-ch .8s var(--ease-out) both;animation-delay:calc(var(--i,0) * 20ms)}
@keyframes rise-ch{from{transform:translateY(110%) rotate(5deg)}to{transform:none}}
.page-subtitle{font-size:var(--fs-sm);color:var(--muted);margin-top:4px;line-height:1.5;max-width:60ch}
.page-heading .actions{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin-left:auto}
.subtabs{min-width:0;max-width:100%;overflow-x:auto;scrollbar-width:none;border-radius:999px;background:var(--glass);box-shadow:inset 0 0 0 1px var(--rim),var(--shadow);backdrop-filter:blur(14px) saturate(1.3)}
.subtabs::-webkit-scrollbar{display:none}
.subtabs__track{position:relative;display:flex;gap:2px;padding:4px;width:max-content}
.subtab{position:relative;z-index:1;display:inline-flex;align-items:center;gap:6px;padding:8px 15px;border-radius:999px;font-size:var(--fs-md);font-weight:600;color:var(--muted);white-space:nowrap;transition:color .2s}
.subtab:hover,.subtab.active{color:var(--text)}
.subtabs__pill{background:var(--glass-3)}

/* ---------- Entrance ---------- */
.main.is-entering :is(.stats,.day-stats,.hr-stats,.careers-stats,.handover-stats,.invoice-summary-grid)>*,
.main.is-entering :is(.dashboard-grid,.operations-grid,.handover-dashboard)>*,
.main.is-entering .main>.panel,.main.is-entering :is(.report-cards,.supplier-grid,.recipe-grid,.board,.day-board)>*{animation:rise .9s var(--ease-out) both}
.main.is-entering :is(.stats,.day-stats,.hr-stats,.careers-stats,.handover-stats,.invoice-summary-grid,.dashboard-grid,.operations-grid,.report-cards,.supplier-grid,.recipe-grid,.board,.day-board)>:nth-child(2){animation-delay:60ms}
.main.is-entering :is(.stats,.day-stats,.hr-stats,.careers-stats,.handover-stats,.invoice-summary-grid,.dashboard-grid,.operations-grid,.report-cards,.supplier-grid,.recipe-grid,.board,.day-board)>:nth-child(3){animation-delay:120ms}
.main.is-entering :is(.stats,.day-stats,.hr-stats,.careers-stats,.handover-stats,.invoice-summary-grid,.dashboard-grid,.operations-grid,.report-cards,.supplier-grid,.recipe-grid,.board,.day-board)>:nth-child(4){animation-delay:180ms}
.main.is-entering :is(.stats,.day-stats,.hr-stats,.careers-stats,.handover-stats,.invoice-summary-grid,.dashboard-grid,.operations-grid,.report-cards,.supplier-grid,.recipe-grid,.board,.day-board)>:nth-child(n+5){animation-delay:240ms}
@keyframes rise{from{opacity:0;transform:translateY(16px) scale(.985)}to{opacity:1;transform:none}}

/* ---------- Stats (statbar) ---------- */
.stats,.day-stats,.hr-stats,.careers-stats,.handover-stats{gap:16px;margin-bottom:16px}
.stat-card{border:0;border-radius:var(--r);background:var(--glass);box-shadow:inset 0 0 0 1px var(--rim),var(--shadow);padding:18px 20px 16px;overflow:visible;transition:box-shadow .25s}
:is(.stats,.day-stats,.hr-stats,.careers-stats,.handover-stats)>.stat-card:first-child{background:var(--tile,var(--lemon));box-shadow:none}
:is(.stats,.day-stats,.hr-stats,.careers-stats,.handover-stats)>.stat-card:first-child .stat-top,:is(.stats,.day-stats,.hr-stats,.careers-stats,.handover-stats)>.stat-card:first-child .stat-bottom{color:#1e1e1ec2}
:is(.stats,.day-stats,.hr-stats,.careers-stats,.handover-stats)>.stat-card:first-child .stat-icon{background:#ffffff8c;color:var(--on-tile)}
:is(.stats,.day-stats,.hr-stats,.careers-stats,.handover-stats)>.stat-card:first-child .trend{background:#ffffff8c}
.stat-top{font-size:var(--fs-sm);font-weight:600;color:var(--muted);margin-bottom:12px}
.stat-icon{width:30px;height:30px;border-radius:50%;background:var(--well);color:var(--faint)}
.stat-value{font-size:var(--fs-4xl);font-weight:600;letter-spacing:-.025em;line-height:1.1}
.stat-bottom{font-size:var(--fs-sm);color:var(--faint);margin-top:8px}
.trend{height:20px;padding:0 7px 0 5px;border-radius:999px;background:var(--up-soft);color:var(--up);font-size:var(--fs-2xs);font-weight:700;gap:2px}
.trend .icon{width:12px;height:12px;stroke-width:2.4}
.trend.negative{background:var(--down-soft);color:var(--down)}
.stat-spark{opacity:.9}
.stats.compact .stat-value{font-size:var(--fs-3xl)}
.day-stats .stat-card,.hr-stats .stat-card{display:block}
.invoice-summary-grid{gap:16px;margin-bottom:16px}
.invoice-summary.panel{padding:18px 20px}
.invoice-summary h2{font-size:var(--fs-sm);font-weight:600;color:var(--muted);margin-bottom:12px}
.invoice-summary strong{font-size:var(--fs-4xl);font-weight:600;letter-spacing:-.025em}
.invoice-summary-grid>.invoice-summary:first-child{background:var(--lemon);box-shadow:none}
.invoice-summary-grid>.invoice-summary:first-child h2,.invoice-summary-grid>.invoice-summary:first-child section>span{color:#1e1e1ec2}

/* ---------- Panels (cards) ---------- */
.panel{border:0;border-radius:var(--r);background:var(--glass);box-shadow:inset 0 0 0 1px var(--rim),var(--shadow);overflow:visible;position:relative;min-width:0}
.panel>.table-wrap:last-child,.panel>.pagination:last-child,.panel>.attention-foot:last-child{border-radius:0 0 var(--r) var(--r)}
.panel>.table-wrap{overflow:auto}
.panel-head{padding:18px 20px 12px;gap:10px;min-height:32px}
.panel-head h2{font-size:var(--fs-lg);font-weight:600;letter-spacing:-.005em}
.panel-head p{font-size:var(--fs-sm);color:var(--muted);margin-top:2px}
.panel-head a{font-size:var(--fs-sm);color:var(--text);font-weight:600;text-decoration:underline;text-decoration-color:var(--line-2);text-underline-offset:3px}
.panel-head a:hover{color:var(--primary-ink);text-decoration-color:currentColor}
.dashboard-grid,.operations-grid{gap:16px;margin-bottom:16px}
.chart-panel{border:0;background:var(--ocean);color:var(--on-ocean);box-shadow:none;--text:var(--on-ocean);--muted:#f6f6f6c7;--line:#ffffff24}
.chart-panel:after{background:radial-gradient(circle,#bbbbbb1f,transparent 70%)}
.chart-panel .panel-head p{color:#f6f6f6b3}
.chart-panel .chart-period{border:0;background:#ffffff1f;color:#f6f6f6;border-radius:999px;padding:6px 12px;font-size:var(--fs-xs);font-weight:600}
.legend{color:#f6f6f6b3;font-size:var(--fs-xs)}
.legend b{background:var(--lemon)}
.legend b.mall{background:var(--mint)}
.chart-bottom{border-top:1px solid #ffffff1f;color:#f6f6f6b3;font-size:var(--fs-xs)}
.chart-bottom strong{color:#f6f6f6}
.chart-tooltip{background:var(--ink-btn);color:var(--on-ink-btn);border:0;border-radius:12px;box-shadow:var(--shadow-pop);font-size:var(--fs-xs);font-weight:600}
.attention-panel .panel-head{padding-bottom:8px}
.attention-total{padding:0 20px 12px;font-size:var(--fs-sm);color:var(--muted)}
.attention-total strong{font-size:var(--fs-4xl);letter-spacing:-.025em;color:var(--text);font-weight:600;line-height:1.1}
.attention-item{padding:12px 20px;border-top:1px solid var(--line);transition:background-color .2s}
.attention-item:hover{background:var(--surface-2)}
.attention-icon{width:34px;height:34px;border-radius:50%;background:var(--well);color:var(--primary)}
.attention-icon.green{background:var(--up-soft);color:var(--up)}
.attention-icon.red{background:var(--down-soft);color:var(--down)}
.attention-item strong{font-size:var(--fs-md);font-weight:600}
.attention-item p{font-size:var(--fs-xs);color:var(--faint);margin-top:2px}
.attention-foot{background:none;border-top:1px solid var(--line);color:var(--faint);font-size:var(--fs-xs);padding:12px}
.route-card{padding:18px 20px 16px}
.store-node{border:0;border-radius:var(--r-sm);background:var(--well);color:var(--primary)}
.route-line{background:var(--line-2)}
.route-line span{background:var(--float);border-radius:999px;color:var(--muted);font-weight:600}
.route-stats{background:var(--surface-2);border:0;border-radius:var(--r-sm)}
.route-stats>div+div{border-left:1px solid var(--line)}
.route-stats strong{color:var(--text);font-weight:600;letter-spacing:-.02em;font-size:var(--fs-2xl)}
.route-note{color:var(--muted)}
.footer-note{font-size:var(--fs-xs);color:var(--faint);margin-top:20px}

/* ---------- Buttons ---------- */
.btn{height:40px;min-height:40px;padding:0 16px;border:0;border-radius:999px;background-color:var(--glass-2);background-repeat:no-repeat;box-shadow:inset 0 0 0 1px var(--line-2);color:var(--text);font-size:var(--fs-md);font-weight:600;gap:7px;transition:background-color .2s,color .2s,box-shadow .2s}
.btn:hover{background-color:var(--glass-3);transform:none}
.btn .icon{width:16px;height:16px}
.btn.primary{background:var(--accent);color:var(--accent-ink);box-shadow:none}
.btn.primary:hover{background:#f3c400}
.btn.dark{background:var(--pill);color:var(--on-pill);box-shadow:none}
.btn.dark:hover{background:color-mix(in srgb,var(--pill) 84%,var(--primary))}
.btn.ghost{background:none;box-shadow:none;color:var(--muted)}
.btn.ghost:hover{background:var(--well);color:var(--text)}
.btn.sm{height:32px;min-height:32px;padding:0 12px;font-size:var(--fs-sm)}
.btn.current{background:var(--pill);color:var(--on-pill);box-shadow:none}
.btn:disabled,.btn[aria-disabled=true]{background:var(--well);color:var(--faint);box-shadow:none;opacity:1;cursor:not-allowed}
button.action-save{background:var(--accent)!important;border-color:var(--accent)!important;color:var(--accent-ink)!important;box-shadow:none}
button.action-delete{background:var(--pill)!important;border-color:var(--pill)!important;color:var(--on-pill)!important;box-shadow:none}
.icon-btn{width:36px;height:36px;border:0;border-radius:50%;color:var(--muted);transition:background-color .2s,color .2s}
.icon-btn:hover{background:var(--well);color:var(--text);border-color:transparent}
.row-action{border:0;border-radius:50%;width:32px;height:32px;background:var(--well);color:var(--muted);transition:background-color .2s,color .2s}
.row-action:hover{background:var(--pill);color:var(--on-pill)}
.view-toggle,.recipe-layout-switch{display:inline-grid;grid-auto-flow:column;padding:3px;border:0;border-radius:999px;background:var(--well);gap:2px}
.view-toggle button{border-radius:999px;padding:6px 10px}
.view-toggle button.active{background:var(--glass-3);color:var(--text);box-shadow:0 2px 8px #2525251a}
.recipe-layout-switch .btn{height:32px;min-height:32px;background:none;box-shadow:none;color:var(--muted)}
.recipe-layout-switch .btn.current{background:var(--glass-3);color:var(--text);box-shadow:0 2px 8px #2525251a}
.kbd{border:0;border-radius:7px;background:var(--glass-2);box-shadow:inset 0 0 0 1px var(--line-2);color:var(--muted);font-size:var(--fs-2xs);font-weight:600;padding:2px 7px}
kbd{font:600 var(--fs-2xs) inherit;border-radius:7px;background:var(--glass-2);box-shadow:inset 0 0 0 1px var(--line-2);color:var(--muted);padding:2px 7px}

/* ---------- Inputs and filters ---------- */
input:where(:not([type=checkbox]):not([type=radio]):not([type=file]):not([type=hidden]):not([type=range]):not([type=color]):not(.hd-date-source)),select:not([multiple]):not([size]),.hd-date-trigger,textarea{border:0!important;background-color:var(--glass-2);box-shadow:inset 0 0 0 1px var(--line-2);color:var(--text);font-weight:500!important}
input:where(:not([type=checkbox]):not([type=radio]):not([type=file]):not([type=hidden]):not([type=range]):not([type=color]):not(.hd-date-source)):focus,select:not([multiple]):not([size]):focus,textarea:focus{outline:none;box-shadow:inset 0 0 0 1.5px var(--text)}
::placeholder{color:var(--faint)}
select:not([multiple]):not([size]){background-color:var(--glass-2);background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236b7566' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 12px center;background-size:16px}
.input-wrap{border:0;border-radius:999px;background:var(--glass-2);box-shadow:inset 0 0 0 1px var(--line-2);min-height:40px;padding:0 14px;transition:box-shadow .2s}
.input-wrap .icon{color:var(--faint)}
.input-wrap input{background:none!important;box-shadow:none!important;padding-left:0!important;padding-right:0!important;font-size:var(--fs-base)!important}
:has(>.global-search:focus-visible){box-shadow:none}
.filter-select{border:0;background-color:var(--glass-2);box-shadow:inset 0 0 0 1px var(--line-2);border-radius:var(--control-radius);color:var(--text)}
.hd-date-trigger{border-radius:999px!important;background-color:var(--glass-2);color:var(--text)}
.hd-date-trigger:hover{box-shadow:inset 0 0 0 1px var(--line-2);background-color:var(--glass-3)}
.hd-date-trigger .hd-date-chevron{color:var(--faint)}
.date-control{border:0;border-radius:999px;background:var(--glass-2);box-shadow:inset 0 0 0 1px var(--line-2)}
.toolbar{border:0;padding:14px 16px;gap:10px}
.standalone-filter-bar,.prep-filters,.report-filter-panel,.handover-controls{border:0!important;border-radius:var(--r)!important;background:var(--glass);box-shadow:inset 0 0 0 1px var(--rim),var(--shadow)}
.table-count{font-size:var(--fs-sm);color:var(--faint);font-weight:600}
.pill-count{border-radius:999px;background:var(--well);font-weight:600}
.field label{font-size:var(--fs-sm);font-weight:600;color:var(--muted)}
.field input,.field select,.field textarea{border-radius:var(--control-radius)!important}
.field textarea{padding:10px 14px}
.field small{color:var(--faint)}
.count-input{border:0;background:var(--glass-2);box-shadow:inset 0 0 0 1px var(--line-2);border-radius:10px}
.table-check,.checkbox-row input,.location-option input{accent-color:var(--pill)}
.chip,.filter-chips .chip{height:32px;padding:0 13px;border:0;border-radius:999px;background:var(--glass-2);box-shadow:inset 0 0 0 1px var(--line);color:var(--muted);font-size:var(--fs-sm);font-weight:600;display:inline-flex;align-items:center;gap:6px;transition:background-color .2s,color .2s,box-shadow .2s}
.chip:hover{color:var(--text)}
.chip.active,.chip[aria-pressed=true]{background:var(--pill);color:var(--on-pill);box-shadow:none}
.validation-tag{border:0;border-radius:999px;background:var(--well);color:var(--muted);font-weight:600}
.location-popover,.hd-calendar,.item-search-options,.multi-select-popover{border:0;border-radius:var(--r);background:var(--float);box-shadow:var(--shadow-pop),inset 0 0 0 1px var(--line)}
.location-search{border:0;border-radius:999px;background:var(--glass-2);box-shadow:inset 0 0 0 1px var(--line-2)}
.location-option:hover{background:var(--well);border-radius:var(--r-xs)}
.hd-calendar-presets button.active{background:var(--pill);color:var(--on-pill)}

/* ---------- Segmented tabs (page level) ---------- */
.tabs,.prep-navigation,.recipe-detail-tabs,.history-tabs{position:relative;display:inline-grid;grid-auto-flow:column;grid-auto-columns:max-content;gap:2px;padding:3px;margin:16px 20px 0;border:0;border-radius:999px;background:var(--well);overflow:visible;max-width:calc(100% - 40px)}
.panel>.tabs:first-child{margin-top:16px}
.panel>.tabs+.toolbar{padding-top:10px}
.tab,.prep-navigation button,.recipe-detail-tabs button,.history-tab{position:relative;z-index:1;height:32px;min-height:32px;padding:0 14px;border:0;border-radius:999px;background:none;color:var(--muted);font-size:var(--fs-sm);font-weight:600;white-space:nowrap;transition:color .2s}
.tab:hover,.tab.active,.prep-navigation button:hover,.prep-navigation button.active,.recipe-detail-tabs button:hover,.recipe-detail-tabs button[aria-selected=true]{color:var(--text);border-color:transparent;background:none}
.seg__pill{background:var(--glass-3);box-shadow:0 2px 8px #2525251a}
.prep-navigation{margin:0 0 16px}
.recipe-detail-tabs{margin:24px 0 0}
.recipe-detail-tabs button{padding:0 16px;font-size:var(--fs-md)}

/* ---------- Status pills ---------- */
.status{height:24px;padding:0 10px;border-radius:999px;background:var(--well);color:var(--muted);font-size:var(--fs-xs);font-weight:600;gap:6px}
.status .dot{width:6px;height:6px}
.status.green{background:var(--up-soft);color:var(--up)}
.status.amber{background:var(--warn-soft);color:var(--warn)}
.status.orange{background:var(--warn-soft);color:var(--warn)}
.status.red{background:var(--down-soft);color:var(--down)}
.status.blue{background:var(--sea-soft);color:var(--sea)}
.local-record{border-radius:999px;background:var(--well)}
.day-label{border-radius:999px;padding:4px 10px;font-weight:600}

/* ---------- Tables ---------- */
table{font-size:var(--fs-md)}
th{background:var(--surface-2);border-top:1px solid var(--line);border-bottom:1px solid var(--line);color:var(--muted);font-size:var(--fs-xs);font-weight:600;padding:10px 14px;position:sticky;top:0;z-index:1}
td{padding:12px 14px;border-bottom:1px solid var(--line);color:var(--text)}
th:first-child,td:first-child{padding-left:20px}
th:last-child,td:last-child{padding-right:20px}
tbody tr:hover{background:var(--surface-2)}
td strong{font-size:var(--fs-md);font-weight:600;color:var(--text)}
td small{color:var(--faint);font-size:var(--fs-xs);margin-top:2px}
.supplier-logo{border:0;border-radius:10px;background:var(--well);color:var(--text);font-weight:700}
.invoice-sort,.catalog-sort,.table-sort,.report-sort{color:inherit}
th[aria-sort] .invoice-sort .icon,th[aria-sort] .catalog-sort .icon{color:var(--primary)}
.pagination,.history-pagination{border-top:1px solid var(--line);padding:12px 20px;font-size:var(--fs-sm);color:var(--faint)}
.pagination .btn{height:32px;min-height:32px;padding:0 12px;font-size:var(--fs-sm)}
.pagination .btn.current{background:var(--pill);color:var(--on-pill)}
.table-name-button{color:var(--text);font-size:var(--fs-md)}
.table-name-button:hover{color:var(--primary-ink)}

/* ---------- Cards, boards, lists ---------- */
.supplier-card,.recipe-card,.report-card,.task-card,.day-card,.hr-permission,.day-procedure-card{border:0;border-radius:var(--r);background:var(--glass-2);box-shadow:0 0 0 1px var(--line);transition:box-shadow .25s,transform .25s}
.supplier-card:hover,.recipe-card:hover,.report-card:hover,.report-card:focus-visible{transform:none;box-shadow:0 0 0 1px var(--line-2),var(--shadow-lift)}
.recipe-card h3,.supplier-card h3,.report-card h2{font-size:var(--fs-lg);font-weight:600;letter-spacing:-.005em}
.recipe-card .recipe-type{font-size:var(--fs-xs);letter-spacing:.02em;text-transform:none;color:var(--faint);font-weight:600}
.report-tag{border-radius:999px;background:var(--well);color:var(--muted);font-weight:600}
.report-favorite{border-radius:50%}
.report-favorite:hover:not(:disabled){background:var(--well)}
.board,.day-board{gap:16px}
.board-column,.day-column{border:0;border-radius:var(--r);background:var(--well);padding:8px;overflow:visible}
.day-column>header{padding:10px 8px 8px;border-top:0}
.day-column h2{font-size:var(--fs-base);font-weight:600}
.day-column>header>span{background:none;color:var(--faint);font-weight:500;font-size:var(--fs-sm);padding:0}
.day-column-body{padding:0;min-height:120px}
.day-column.day-drop-target{outline:0;background:color-mix(in srgb,var(--primary-soft) 70%,var(--well));box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--primary) 30%,transparent)}
.task-card,.day-card{border-radius:var(--r-sm);background:var(--surface);padding:14px;margin-bottom:8px}
.day-card:hover{box-shadow:0 0 0 1px var(--line-2),var(--shadow-lift)}
.column-title{color:var(--muted);font-weight:600;margin:6px 8px 12px}
.column-title b{background:none;color:var(--faint);font-weight:500}
.progress-track{height:4px;background:var(--well)}
.progress-track span{background:var(--primary)}
.empty{color:var(--muted);padding:40px 16px}
.empty h3{font-size:var(--fs-base);color:var(--text);font-weight:600}
.empty>.icon{color:var(--line-2)}
.notice{border:0;border-radius:var(--r-sm);background:var(--warn-soft);color:var(--warn);font-size:var(--fs-sm)}
.notice.neutral{background:var(--surface-2);color:var(--muted);box-shadow:inset 0 0 0 1px var(--line)}
.detail-pair,.last-count .detail-pair{border:0;border-radius:var(--r-sm);background:var(--well);box-shadow:inset 0 0 0 1px var(--line)}
.detail-pair small{text-transform:none;letter-spacing:0;font-size:var(--fs-sm);color:var(--muted)}
.detail-pair strong{color:var(--text);font-size:var(--fs-base)}
.section-title{color:var(--text);font-size:var(--fs-lg)}
.settings-row{border-bottom:1px solid var(--line)}
.settings-row h3{font-size:var(--fs-base);font-weight:600}
.settings-row p{font-size:var(--fs-sm);color:var(--muted)}
.timeline{border-left-color:var(--line-2)}
.timeline-item:before{background:var(--primary);outline-color:var(--float)}
.insight-card{border:0;border-radius:var(--r-sm);background:var(--surface-2)}
.upload-zone{border-color:var(--line-2);background:var(--surface-2);border-radius:var(--r-sm)}
.upload-zone:hover{border-color:var(--primary);background:var(--primary-soft)}
.conversion{border:0;border-radius:var(--r-sm);background:var(--warn-soft);color:var(--warn)}
.report-bar-track{background:var(--well);border-radius:999px}
.report-bar-track span{background:var(--primary);border-radius:999px}
.report-bar-row strong{color:var(--text)}
.report-chart-badge{border:0;border-radius:999px;background:var(--well);color:var(--muted);font-weight:600}
/* Loading placeholders shimmer: one band sweeps left to right, fixed to the window so all placeholders share it. */
.loading-placeholder{background-color:var(--loading-base,var(--well));background-image:linear-gradient(100deg,transparent 40%,var(--loading-shine,#ffffffb8) 50%,transparent 60%);background-size:300% 100%;background-attachment:fixed;background-repeat:no-repeat;border-radius:999px;animation:loading-shimmer 1.8s linear infinite}
@media(prefers-reduced-motion:reduce){.loading-placeholder{animation:none;background-image:none}}
.loading-track{background:var(--well)}
.loading-track:after{background:var(--pill)}
.loading-notice{color:var(--muted)}
.loading-chart-area{border-color:var(--line-2);background:repeating-linear-gradient(to top,transparent 0,transparent 59px,var(--line) 59px,var(--line) 60px)}

/* ---------- Overlays: modal, sheet, finder, toast ---------- */
.overlay{background:#16161647;backdrop-filter:blur(6px);animation:fadein .25s}
.modal{border-radius:26px;background:var(--float);box-shadow:var(--shadow-pop),inset 0 0 0 1px var(--line);animation:modal-in .5s cubic-bezier(.34,1.56,.64,1)}
@keyframes modal-in{from{opacity:0;transform:translateY(18px) scale(.96)}to{opacity:1;transform:none}}
.modal-head{padding:18px 22px;border:0;align-items:center}
.modal-head h2{font-size:var(--fs-2xl);font-weight:700;letter-spacing:-.015em}
.modal-head p{font-size:var(--fs-sm);color:var(--muted);margin-top:4px}
.modal-body{padding:16px 22px}
.modal-foot{border:0;background:none;padding:0 22px 22px;gap:8px}
.modal-foot .meta{font-size:var(--fs-xs);color:var(--faint)}
.modal .table-wrap{border:1px solid var(--line);border-radius:var(--r-sm);box-shadow:none;overflow:auto}
.modal table th,.modal table td{padding:10px 12px}
.modal .modal-head+.modal-body>.notice:first-child{margin-top:4px}
.drawer.overlay{padding:12px}
.drawer .modal{height:calc(100dvh - 24px);max-height:calc(100dvh - 24px);border-radius:28px;width:min(520px,100%);animation:sheet-in .6s var(--ease-out)}
@keyframes sheet-in{from{transform:translateX(calc(100% + 24px))}to{transform:none}}
.drawer .modal-head{padding:20px 22px;border-bottom:1px solid var(--line)}
.drawer .modal-head h2{font-size:var(--fs-3xl);letter-spacing:-.02em}
.drawer .modal-body{padding:22px}
.drawer .modal-foot{border-top:1px solid var(--line);padding:14px 22px}
.search-modal{width:min(620px,100%);margin-bottom:auto;margin-top:12vh;border-radius:24px;animation:finder-in .45s cubic-bezier(.34,1.56,.64,1)}
@keyframes finder-in{from{opacity:0;transform:translateY(-14px) scale(.97)}to{opacity:1;transform:none}}
.search-modal .modal-head{padding:0 18px;height:58px;border-bottom:1px solid var(--line);gap:12px}
.search-modal .modal-head h2{display:none}
.global-search{font-size:var(--fs-xl);font-weight:500;color:var(--text)}
.search-modal .modal-body{padding:8px}
.search-hint{font-size:var(--fs-2xs);font-weight:700;letter-spacing:.06em;color:var(--muted);margin:10px 10px 4px}
.search-result{border-radius:14px;padding:9px 10px;gap:11px}
.search-result:hover,.search-result[aria-selected=true]{background:var(--well)}
.search-result>.icon{display:grid;place-items:center;width:34px;height:34px;padding:9px;border-radius:50%;background:var(--well);color:var(--muted)}
.search-result strong{font-size:var(--fs-base);font-weight:600}
.search-result small{font-size:var(--fs-xs);color:var(--faint);margin-top:1px}
#toast-root{right:18px;bottom:calc(var(--tabbar-h) + 18px);gap:8px}
.toast{border:0;border-radius:999px;background:var(--pill);color:var(--on-pill);box-shadow:var(--shadow-pop);padding:10px 16px 10px 10px;font-size:var(--fs-md);font-weight:600;max-width:min(400px,100vw - 36px);animation:toast-in .55s cubic-bezier(.34,1.56,.64,1)}
@keyframes toast-in{from{opacity:0;transform:translateY(18px) scale(.96)}to{opacity:1;transform:none}}
.toast .icon{display:grid;place-items:center;width:26px;height:26px;padding:6px;border-radius:50%;background:var(--mint);color:var(--on-tile);stroke-width:2.4}
.toast.error{background:var(--pill);color:var(--on-pill);border:0}
.toast.error .icon{background:var(--coral);color:var(--on-tile)}
.toast.neutral .icon{background:var(--sky);color:var(--on-tile)}
.chart-expanded-dialog{border:0;border-radius:var(--r-lg);box-shadow:var(--shadow-pop)}
.chart-expanded-dialog::backdrop{background:#16161647;backdrop-filter:blur(6px)}
.chart-expand-button{border:0;border-radius:50%;background:var(--glass-2);box-shadow:inset 0 0 0 1px var(--line-2)}

/* ---------- Loading shell ---------- */
.workspace-loading{display:block;max-width:var(--app-max);margin:0 auto;padding:22px var(--gut) 40px calc(var(--side-w) + var(--gut));background:none;min-height:100dvh}
.workspace-loading-sidebar{display:none}
.workspace-loading-topbar{height:auto;background:none;border:0;display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:20px;padding:0;margin-bottom:24px}
.workspace-loading-brand{display:block;height:48px}
.workspace-loading-brand img{display:block;width:auto;height:48px}
.workspace-loading-nav{display:flex;gap:2px;padding:4px;margin:0;justify-self:center;border-radius:999px;background:var(--glass);box-shadow:inset 0 0 0 1px var(--rim)}
.workspace-loading-nav .loading-placeholder{width:84px;height:36px;border-radius:999px;background:var(--well)}
.workspace-loading .loading-avatar{width:44px;height:44px;border-radius:50%;justify-self:end}
.workspace-loading-content{padding:0;max-width:none;margin:0}
.workspace-loading-heading{gap:12px;margin-bottom:20px}
.loading-title{height:38px;width:260px;border-radius:12px}

/* ---------- Responsive ---------- */
@media (max-width:1440px){.nav-tab{padding:10px 12px;font-size:var(--fs-sm)}.topbar{gap:14px}}
@media (max-width:1360px){.location-trigger strong{max-width:120px}}
@media (max-width:1080px){
  :root{--side-w:0px;--tabbar-h:calc(80px + env(safe-area-inset-bottom))}
  .workspace,.workspace-loading{padding:max(16px,env(safe-area-inset-top)) max(var(--gut),env(safe-area-inset-right)) calc(var(--tabbar-h) + 24px) max(var(--gut),env(safe-area-inset-left))}
  .topbar,.workspace-loading-topbar{grid-template-columns:minmax(0,1fr) auto;gap:14px;margin-bottom:18px}
  .nav-tabs,.workspace-loading-nav{grid-area:2/1/auto/-1;justify-self:start}
  .top-actions{grid-area:1/2}
  .dock{top:auto;left:0;right:0;bottom:calc(12px + env(safe-area-inset-bottom));flex-direction:row;width:fit-content;height:auto;margin:0 auto;padding:6px}
  .dock__sep{width:1px;height:auto;margin:10px 4px}
  .dock__tip{display:none}
  .dock__btn[aria-current=page]:after{inset:auto auto 3px 50%;margin:0 0 0 -2.5px}
  #toast-root{bottom:calc(var(--tabbar-h) + 12px)}
}
@media (max-width:760px){
  .brand__txt b{font-size:var(--fs-lg)}
  .nav-tabs{margin:0 calc(-1 * var(--gut));padding:0 calc(var(--gut) - 4px);width:calc(100% + 2 * var(--gut));max-width:none;box-shadow:none;background:none;border-radius:0;mask-image:linear-gradient(90deg,#0000,#000 14px calc(100% - 14px),#0000)}
  .page-heading{gap:12px;margin-bottom:16px}
  .page-title{font-size:28px;white-space:normal}
  .page-heading .subtabs{order:3}
  .location-trigger{max-width:200px}
}
@media (max-width:700px){
  .page-heading{display:flex}
  .page-heading .actions{margin-top:0;margin-left:auto}
  .stats{gap:10px}
  .stat-card{padding:16px}
  .stat-value{font-size:var(--fs-3xl)}
  .modal{border-radius:26px 26px 0 0;max-height:92dvh;animation:sheet-up .55s var(--ease-out)}
  .overlay{align-items:flex-end;padding:0}
  .drawer.overlay{padding:0}
  .drawer .modal{height:100dvh;max-height:100dvh;border-radius:0;width:100%}
  .search-modal{margin:12px auto auto;border-radius:24px}
  .overlay:has(.search-modal){align-items:flex-start;padding:12px}
  .modal-foot{position:sticky;bottom:0;background:var(--float);padding-top:12px}
  .modal-foot .btn{flex:1}
  #toast-root{left:12px;right:12px}
  .toast{border-radius:18px;max-width:none}
}
@keyframes sheet-up{from{transform:translateY(100%)}to{transform:none}}
@media (max-width:560px){
  :root{--gut:14px}
  .tabs,.prep-navigation,.recipe-detail-tabs,.history-tabs{display:flex;overflow-x:auto;scrollbar-width:none;max-width:calc(100% - 28px);margin-inline:14px}
}
@media (pointer:coarse){
  .btn{height:44px;min-height:44px}
  .btn.sm{height:38px;min-height:38px}
  .icon-btn{width:44px;height:44px}
  .chip{height:38px}
  .nav-tab{padding-top:12px;padding-bottom:12px}
  .subtab{padding-top:11px;padding-bottom:11px}
  .tab,.prep-navigation button,.recipe-detail-tabs button,.history-tab{height:40px;min-height:40px}
}
@media print{.dock,.nav-tabs,.top-actions,.subtabs{display:none!important}.workspace{padding:0}.panel,.stat-card{box-shadow:none;background:#fff}}

/* ---------- Status colors: semantic states keep their hue on the monochrome workspace ---------- */
.status.green,.int-status.is-on{background:var(--up-soft);color:var(--up)}
.status.amber,.status.orange{background:var(--warn-soft);color:var(--warn)}
.status.red{background:var(--down-soft);color:var(--down)}
.status.blue{background:var(--sea-soft);color:var(--sea)}
.day-done,.day-published{background:var(--up-soft);color:var(--up)}
.day-doing,.day-high,.day-review{background:var(--warn-soft);color:var(--warn)}
.day-urgent,.day-blocked{background:var(--down-soft);color:var(--down)}
.day-low{background:var(--sea-soft);color:var(--sea)}
.day-overdue,.handover-column .day-overdue{color:var(--down)}
.day-todo,.day-draft,.day-normal{background:var(--well);color:var(--muted)}
.attention-icon.green{background:var(--up-soft);color:var(--up)}
.attention-icon.red{background:var(--down-soft);color:var(--down)}
.history-badge.entry{background:var(--up-soft);color:var(--up)}
.history-badge.sale{background:var(--down-soft);color:var(--down)}
.transfer-line-badge.shipped{background:var(--up-soft);color:var(--up)}
.transfer-line-badge.not-sent{background:var(--down-soft);color:var(--down)}
.cost-metric.cost-good{background:var(--up-soft);border-color:transparent}.cost-metric.cost-good dd{color:var(--up)}
.cost-metric.cost-warning{background:var(--warn-soft);border-color:transparent}.cost-metric.cost-warning dd{color:var(--warn)}
.cost-metric.cost-high{background:var(--down-soft);border-color:transparent}.cost-metric.cost-high dd{color:var(--down)}
.trend{background:var(--up-soft);color:var(--up)}.trend.negative{background:var(--down-soft);color:var(--down)}
.error-text,.careers-error,.hr-form #hr-form-error,.report-favorites-error,.fb-count.is-full{color:var(--down)}
.hlp-svc__dot,.dot{background:var(--up)}

/* ---------- Controls share the nav-tab surface: white glass with a white rim; open or selected = ink pill ---------- */
.btn:not(.primary):not(.dark):not(.ghost):not(.current),.ibtn,.location-trigger,.hd-date-trigger,.input-wrap,.filter-select,.date-control,.top-actions .avatar,.chip:not(.active):not([aria-pressed=true]),.view-toggle,.recipe-layout-switch{background-color:var(--glass);box-shadow:inset 0 0 0 1px var(--rim)}
input:where(:not([type=checkbox]):not([type=radio]):not([type=file]):not([type=hidden]):not([type=range]):not([type=color]):not(.hd-date-source)),select:not([multiple]):not([size]),textarea{background-color:var(--glass);box-shadow:inset 0 0 0 1px var(--line)}
.btn:not(.primary):not(.dark):not(.ghost):not(.current):hover,.ibtn:hover,.location-trigger:hover,.hd-date-trigger:hover,.chip:not(.active):not([aria-pressed=true]):hover{background-color:var(--glass-3);box-shadow:inset 0 0 0 1px var(--rim)}
input:where(:not([type=checkbox]):not([type=radio]):not([type=file]):not([type=hidden]):not([type=range]):not([type=color]):not(.hd-date-source)):focus,select:not([multiple]):not([size]):focus,textarea:focus{box-shadow:inset 0 0 0 1.5px var(--text)!important}
.location-trigger[aria-expanded=true],.hd-date-trigger[aria-expanded=true],.ibtn[aria-expanded=true],.btn:not(.primary):not(.dark)[aria-expanded=true],.btn:not(.primary):not(.dark)[aria-pressed=true]{background-color:var(--pill);color:var(--on-pill);box-shadow:none}
.location-trigger[aria-expanded=true] svg,.hd-date-trigger[aria-expanded=true] .hd-date-chevron,.hd-date-trigger[aria-expanded=true] .hd-date-caption{color:inherit;opacity:.7}
.view-toggle,.recipe-layout-switch{padding:3px;background-color:var(--glass)}
.view-toggle button.active,.recipe-layout-switch .btn.current{background:var(--pill);color:var(--on-pill);box-shadow:none}
.tabs,.prep-navigation,.recipe-detail-tabs,.history-tabs{background:var(--glass);box-shadow:inset 0 0 0 1px var(--rim)}
.seg__pill{background:var(--pill);box-shadow:none}
.tab.active,.prep-navigation button.active,.recipe-detail-tabs button[aria-selected=true],.history-tab.active,.history-tab[aria-selected=true]{color:var(--on-pill)}

/* ---------- Contact chips share one height; inputs inside search containers carry no border of their own ---------- */
.careers-contact{gap:8px;align-items:center}
.careers-contact a,.careers-contact .status{display:inline-flex;align-items:center;gap:7px;height:36px;padding:0 13px;border:0;border-radius:999px;background:var(--glass);box-shadow:inset 0 0 0 1px var(--rim);color:var(--text);font-size:var(--fs-sm);font-weight:600;line-height:1}
.careers-contact a:hover{background:var(--glass-3)}
.careers-contact .icon{width:14px;height:14px;color:var(--faint)}
:is(.input-wrap,.location-search,.purchasing-search,.inline-item-search,.hlp-search,.msg-box,.search-modal .modal-head) input,
:is(.input-wrap,.location-search,.purchasing-search,.inline-item-search,.hlp-search,.msg-box,.search-modal .modal-head) input:focus,
:is(.input-wrap,.location-search,.purchasing-search,.inline-item-search,.hlp-search,.msg-box,.search-modal .modal-head) input:focus-visible{background:none!important;box-shadow:none!important;outline:none!important;border:0!important;border-radius:0!important}

/* ---------- One height per row: 46px across the top bar, 40px across the page head ---------- */
.nav-tabs,.location-trigger,.ibtn,.top-actions .avatar,.brand__mark,.brand__mark img{height:46px}
.location-trigger{min-height:46px}
.ibtn,.top-actions .avatar{width:46px}
.nav-tab{padding-top:10px;padding-bottom:10px;height:38px}
.subtabs{height:40px}
.subtabs__track{padding:3px}
.subtab{height:34px;padding-top:0;padding-bottom:0}
.page-heading .actions .btn,.page-heading .actions .hd-date-trigger{height:40px!important;min-height:40px!important}

/* ---------- The dock carries the module navigation; the top bar keeps brand and tools ---------- */
.topbar{grid-template-columns:auto 1fr auto}
.workspace-loading-nav{display:none}
.dock{gap:2px;padding:6px;max-height:calc(100dvh - 24px);overflow:visible}
.dock__btn{width:42px;height:42px}
.dock__btn[aria-current=page]{opacity:1;background:#ffffff21}
.dock__sep{margin:3px 10px}
@media (max-height:720px){.dock__btn{width:38px;height:38px}.dock{gap:0}}
@media (max-width:1080px){.dock{max-width:calc(100vw - 24px);overflow-x:auto;scrollbar-width:none;flex-wrap:nowrap}.dock::-webkit-scrollbar{display:none}.dock__btn{flex:none}.dock__sep{margin:8px 2px}}

/* ---------- Module subtabs live in the top bar, beside the location picker, styled like the former nav tabs ---------- */
.topbar>.subtabs{grid-column:2;justify-self:end;height:46px;background:var(--glass);box-shadow:inset 0 0 0 1px var(--rim);backdrop-filter:none}
.topbar>.subtabs .subtabs__track{padding:4px}
.topbar>.subtabs .subtab{height:38px;padding:0 16px;color:var(--text)}
.topbar>.subtabs .subtab:hover{background:var(--well)}
.topbar>.subtabs .subtab.active,.topbar>.subtabs .subtab.active:hover{background:none;color:var(--on-pill)}
.topbar>.subtabs .subtabs__pill{background:var(--pill)}

@media (max-width:1080px){.topbar>.subtabs{grid-area:2/1/auto/-1;justify-self:start;max-width:100%}}
@media (max-width:760px){.topbar>.subtabs{margin:0 calc(-1 * var(--gut));padding:0 calc(var(--gut) - 4px);width:calc(100% + 2 * var(--gut));max-width:none;box-shadow:none;background:none;border-radius:0;height:auto;mask-image:linear-gradient(90deg,#0000,#000 14px calc(100% - 14px),#0000)}}
.location-trigger,.location-trigger strong{white-space:nowrap!important}
.location-trigger{flex:none}
.top-actions{flex:none;min-width:max-content}
@media (max-width:760px){.brand__txt small{display:none}.brand__mark,.brand__mark img{height:40px}.location-trigger{max-width:150px}.location-trigger strong{max-width:96px}}
@media (max-width:760px){.brand__txt{display:none}.topbar{gap:10px}.top-actions{gap:8px}}

/* ---------- Top bar: page title at left, search bar, location and alerts at right; the dock carries the logo and the account ---------- */
.topbar{grid-template-columns:minmax(0,1fr) auto;align-items:center;min-height:46px}
.top-title{grid-column:1}
.top-actions{grid-column:2}
.top-title{min-width:0;display:grid;gap:0;align-self:start;padding-top:2px}
.top-title .page-title{font-size:clamp(28px,2.6vw,38px);line-height:1.04}
.top-title .page-subtitle{margin-top:4px;font-size:var(--fs-base);max-width:52ch;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.search-bar{display:inline-flex;align-items:center;gap:9px;height:46px;min-width:240px;padding:0 14px 0 16px;border:0;border-radius:999px;background:var(--glass);box-shadow:inset 0 0 0 1px var(--rim);color:var(--faint);font:inherit;font-size:var(--fs-md);font-weight:500;cursor:text;transition:background-color .2s}
.search-bar:hover{background:var(--glass-3)}
.search-bar .icon{width:16px;height:16px}
.search-bar span{flex:1;text-align:left;white-space:nowrap}
.search-bar kbd{margin-left:6px}
.page-heading{justify-content:flex-end;min-height:0;margin-bottom:16px}
.page-heading .page-heading__main{display:none}
.page-heading:not(:has(.actions > *)):not(:has(.page-title)):not(:has(.subtabs)):not(:has(>.tabs)){display:none}
.dock__me{opacity:1;background:#ffffff21;font-size:var(--fs-2xs);font-weight:700;letter-spacing:.04em;color:var(--on-dock)}
.dock__me:hover{background:var(--accent);color:var(--accent-ink)}
.brand,.workspace-loading-brand{display:none}
@media (max-width:1280px){.search-bar{min-width:46px;width:46px;padding:0;justify-content:center}.search-bar span,.search-bar kbd{display:none}}
@media (max-width:1080px){.topbar{grid-template-columns:minmax(0,1fr) auto}.top-title{grid-area:1/1}.top-actions{grid-area:1/2}.topbar>.subtabs{grid-area:2/1/auto/-1}.dock__logo{height:42px}.dock__logo img{height:34px}}
@media (max-width:760px){.top-title .page-title{font-size:26px;white-space:normal}.top-title .page-subtitle{display:none}}


.dock__sep+.dock__sep{display:none}

/* ---------- Inputs inside a bordered container (login, search boxes, composers) never draw their own ring ---------- */
:is(.login-input,.input-wrap,.location-search,.purchasing-search,.inline-item-search,.hlp-search,.msg-box,.search-modal .modal-head,.prd-cur) input,
:is(.login-input,.input-wrap,.location-search,.purchasing-search,.inline-item-search,.hlp-search,.msg-box,.search-modal .modal-head) input:focus,
:is(.login-input,.input-wrap,.location-search,.purchasing-search,.inline-item-search,.hlp-search,.msg-box,.search-modal .modal-head) input:focus-visible{background:none!important;box-shadow:none!important;outline:none!important;border:0!important;border-radius:0!important}
.login-input{border:0;border-radius:999px;background:var(--glass);box-shadow:inset 0 0 0 1px var(--line-2)}
.login-input:focus-within{border-color:transparent;box-shadow:inset 0 0 0 1.5px var(--text)}

.search-loading{display:flex;align-items:center;gap:8px;margin:6px 10px 4px;font-size:var(--fs-xs);color:var(--faint)}
.search-loading[hidden]{display:none}
.search-loading:before{content:\"\";width:10px;height:10px;border-radius:50%;border:1.5px solid var(--line-2);border-top-color:var(--text);animation:search-spin .8s linear infinite}
@keyframes search-spin{to{transform:rotate(360deg)}}

/* ---------- Period presets sit at the left of the dashboard toolbar ---------- */
.page-heading:has(.db-period) .actions{flex:1 1 100%;width:100%}
.db-period{margin-right:auto;border-radius:999px;background:var(--glass);box-shadow:inset 0 0 0 1px var(--rim);padding:4px}
.db-period button{height:32px;padding:0 14px;border:0;border-radius:999px;background:none;color:var(--muted);font-size:var(--fs-sm);font-weight:600;transition:background-color .2s,color .2s}
.db-period button:hover{color:var(--text)}
.db-period button[aria-pressed=true]{background:var(--pill);color:var(--on-pill)}
@media (max-width:560px){.db-period{width:100%;display:grid;grid-auto-flow:column;grid-auto-columns:1fr}}

/* ---------- Module subtabs sit at the left of each page's toolbar row ---------- */
.page-heading>.subtabs{order:-1;margin-right:auto;height:40px;max-width:100%;border-radius:999px;background:var(--glass);box-shadow:inset 0 0 0 1px var(--rim);backdrop-filter:none}
.page-heading>.subtabs .subtabs__track{padding:3px}
.page-heading>.subtabs .subtab{height:34px;padding:0 15px;color:var(--text)}
.page-heading>.subtabs .subtab:hover{background:var(--well)}
.page-heading>.subtabs .subtab.active,.page-heading>.subtabs .subtab.active:hover{background:none;color:var(--on-pill)}
.page-heading>.subtabs .subtabs__pill{background:var(--pill)}
.page-heading:has(>.subtabs) .actions{flex:1 1 auto;width:auto;justify-content:flex-end}
.page-heading:has(>.subtabs) .db-period{margin-right:0}
@media (max-width:760px){.page-heading>.subtabs{flex:1 1 100%;margin-right:0}}

/* ---------- Page tabs lifted out of their panel into the toolbar row ---------- */
.page-heading>.tabs{order:-1;margin:0 auto 0 0;height:40px;max-width:100%;padding:3px;border-radius:999px;background:var(--glass);box-shadow:inset 0 0 0 1px var(--rim)}
.page-heading>.tabs .tab{height:34px;min-height:34px;padding:0 15px;color:var(--text)}
.page-heading>.tabs .tab:hover{background:var(--well)}
.page-heading>.tabs .tab.active,.page-heading>.tabs .tab.active:hover{background:none;color:var(--on-pill)}
.page-heading>.subtabs+.tabs{margin-left:8px}
.page-heading:has(>.tabs) .actions{flex:1 1 auto;width:auto;justify-content:flex-end}
.page-heading:has(>.tabs) .db-period{margin-right:0}
.panel:empty{display:none}
@media (max-width:760px){.page-heading>.tabs{flex:1 1 100%;margin-right:0;display:flex;overflow-x:auto;scrollbar-width:none}}

/* ---------- Settings: profile, store and workspace cards ---------- */
.set-panel{display:flex;flex-direction:column;gap:16px}
.set-sec{display:grid;gap:18px;padding:20px 22px}
.set-sec__head h2{font-size:var(--fs-lg);font-weight:600;letter-spacing:-.01em}
.set-sec__head .card__sub{margin-top:2px}
.set-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:start;gap:14px 16px}
.set-grid__wide{grid-column:1/-1}
.set-grid .field{margin:0}
.set-hint{color:var(--faint);font-size:var(--fs-xs);line-height:1.5}
.set-profile{display:grid;grid-template-columns:220px minmax(0,1fr);align-items:start;gap:22px}
.set-avatar{display:flex;flex-direction:column;align-items:center;gap:10px;padding:20px 14px;border-radius:14px;background:var(--surface-2);box-shadow:inset 0 0 0 1px var(--line);text-align:center}
.set-avatar .av--lg{display:inline-grid;place-items:center;width:72px;height:72px;border-radius:50%;background:var(--pill);color:var(--on-pill);font-size:var(--fs-3xl);font-weight:700;letter-spacing:.02em;box-shadow:0 0 0 4px var(--surface)}
.set-avatar__txt{display:grid;gap:1px;min-width:0;max-width:100%}
.set-avatar__txt b{font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.set-avatar__txt small{color:var(--faint);font-size:var(--fs-xs)}
.set-shops{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.set-shop{display:grid;gap:12px;min-width:0;margin:0;padding:16px;border:0;border-radius:14px;background:var(--surface-2);box-shadow:inset 0 0 0 1px var(--line)}
.set-shop legend{float:left;display:flex;align-items:center;gap:8px;margin-bottom:2px;padding:0;font-weight:600}
.set-shop legend .icon{width:16px;height:16px;color:var(--faint)}
.set-shop legend+*{clear:both}
.set-sec .settings-list{padding:0}
.set-sec .settings-row:first-child{padding-top:0}
.set-sec .settings-row:last-child{border-bottom:0;padding-bottom:0}
.field input[readonly]{background-color:var(--surface-2);color:var(--muted);cursor:default;box-shadow:inset 0 0 0 1px var(--line)}
.field input[readonly]:focus{box-shadow:inset 0 0 0 1px var(--line-2)}
@media (max-width:1180px){.set-profile{grid-template-columns:minmax(0,1fr)}.set-avatar{flex-direction:row;text-align:left;padding:14px}.set-avatar .av--lg{width:56px;height:56px;font-size:var(--fs-xl)}}
@media (max-width:760px){.set-shops{grid-template-columns:minmax(0,1fr)}}
@media (max-width:560px){.set-sec{padding:16px}.set-grid{grid-template-columns:minmax(0,1fr)}}

/* ---------- Tables clip to the panel's rounded corners ---------- */
.panel>.table-wrap,.panel>.responsive-table-container,.panel>div>.table-wrap:first-child{border-radius:0}
.panel>.table-wrap:first-child,.panel>.responsive-table-container:first-child,.panel>div:first-child>.table-wrap:first-child,.loading-surface>.table-wrap:first-child{border-top-left-radius:var(--r);border-top-right-radius:var(--r)}
.panel>.table-wrap:last-child,.panel>.responsive-table-container:last-child,.loading-surface>.table-wrap:last-child{border-bottom-left-radius:var(--r);border-bottom-right-radius:var(--r)}
.panel>.table-wrap,.loading-surface>.table-wrap{overflow:auto}
.loading-surface.panel,.panel.loading-surface{overflow:hidden}

/* Settings · Appearance and store cards */
.set-rows{display:grid}
.set-row{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:14px 0;border-top:1px solid var(--line)}
.set-row:first-child{border-top:0;padding-top:0}.set-row:last-child{padding-bottom:0}
.set-row__txt{display:grid;gap:2px;min-width:0}.set-row__txt b{font-weight:600}.set-row__txt small{color:var(--faint);font-size:var(--fs-xs);line-height:1.45}
.set-seg{display:inline-flex;flex:none;gap:2px;padding:4px;border-radius:999px;background-color:var(--glass);box-shadow:inset 0 0 0 1px var(--rim)}
.set-seg button{display:inline-flex;align-items:center;gap:7px;height:32px;padding:0 14px 0 11px;border:0;border-radius:999px;background:none;color:var(--muted);font:inherit;font-size:var(--fs-sm);font-weight:600;transition:background-color .2s,color .2s}
.set-seg button .icon{width:15px;height:15px}
.set-seg button:hover{color:var(--text)}
.set-seg button[aria-pressed=true]{background-color:var(--pill);color:var(--on-pill)}
.pal{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:8px}
.pal__opt{display:inline-flex;align-items:center;gap:9px;height:38px;padding:0 14px 0 6px;border:0;border-radius:999px;background-color:var(--glass);box-shadow:inset 0 0 0 1px var(--rim);color:var(--text);font:inherit;font-size:var(--fs-sm);font-weight:600;transition:box-shadow .2s,background-color .2s,transform .2s}
.pal__opt:hover{background-color:var(--glass-2)}
.pal__opt[aria-checked=true]{box-shadow:inset 0 0 0 2px var(--pill)}
.pal__sw{display:grid;grid-template-columns:1fr 1fr;gap:2px;width:26px;height:26px;padding:3px;border-radius:50%;background:var(--surface);box-shadow:inset 0 0 0 1px var(--line);overflow:hidden}
.pal__sw i{display:block;border-radius:3px}
.set-shop legend{flex-wrap:wrap}
.set-shop__code{padding:2px 7px;border-radius:999px;background:var(--well);box-shadow:inset 0 0 0 1px var(--line);color:var(--muted);font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:11px;font-weight:600;letter-spacing:.02em}
.set-shop__state{margin-left:auto}
.set-shop__state .status{font-size:11px}
@media (max-width:760px){.set-row{flex-direction:column;align-items:flex-start}.pal{justify-content:flex-start}}

/* Dark theme: translucent chrome instead of hard-coded light shadows/rims */
:root[data-theme=dark] body{background:var(--bg)}
:root[data-theme=dark] .dock__sep{background:#ffffff1f}
:root[data-theme=dark] .seg__pill,:root[data-theme=dark] .nav-tabs__pill,:root[data-theme=dark] .subtabs__pill{box-shadow:none}
:root[data-theme=dark] .set-avatar .av--lg{box-shadow:0 0 0 4px var(--float)}
:root[data-theme=dark] img.brand-logo,:root[data-theme=dark] .dock__logo img{filter:brightness(1.05)}
:root[data-theme=dark] ::selection{background:#fece0755}
:root[data-theme=dark] input,:root[data-theme=dark] select,:root[data-theme=dark] textarea{color:var(--text)}
:root[data-theme=dark] input::placeholder,:root[data-theme=dark] textarea::placeholder{color:var(--faint)}
:root[data-theme=dark] .table-wrap th{background:var(--surface)}
:root[data-theme=dark] .modal,:root[data-theme=dark] .drawer,:root[data-theme=dark] .search-modal{background:var(--float);box-shadow:var(--shadow-pop)}
:root[data-theme=dark] .toast{background:var(--pill);color:var(--on-pill)}
::view-transition-old(root),::view-transition-new(root){animation:none;mix-blend-mode:normal}
::view-transition-old(root){z-index:0}::view-transition-new(root){z-index:1}

/* Brand mark: top-left, in the dock column, level with the top bar */
.top-logo{grid-area:1/1;align-self:center;justify-self:start;display:grid;place-items:center;width:var(--dock-w);height:46px;margin:0 0 0 calc(var(--dock-x) - var(--side-w) - var(--gut));border-radius:14px;transition:transform .25s var(--ease-out)}
.topbar{grid-template-columns:0 minmax(0,1fr) auto;align-items:center;column-gap:0}
.top-actions{margin-left:14px}
.top-title{grid-area:1/2;align-self:center;padding-top:0}
.top-actions{grid-area:1/3}
.top-logo img{display:block;width:auto;height:46px}
.top-logo:hover{transform:translateY(-1px)}
.top-logo:focus-visible{outline:2px solid var(--focus);outline-offset:2px}
@media (max-width:1080px){.top-logo{position:static;width:auto;height:40px;margin:0;grid-area:1/1}.top-logo img{height:40px}.topbar{grid-template-columns:auto minmax(0,1fr) auto;column-gap:14px}.top-actions{margin-left:0}.top-title{grid-area:1/2}.top-actions{grid-area:1/3}.topbar>.subtabs{grid-area:2/1/auto/-1}}
@media (max-width:760px){.top-logo,.top-logo img{height:34px}}
@media print{.top-logo{display:none}}
.page-title .word{display:inline-block;white-space:nowrap}
@media (max-width:760px){.topbar{grid-template-columns:auto minmax(0,1fr);column-gap:14px;row-gap:10px}.top-logo{grid-area:1/1}.top-actions{grid-area:1/2;justify-self:end}.top-title{grid-area:2/1/auto/-1}.topbar>.subtabs{grid-area:3/1/auto/-1}.top-title .page-subtitle{display:block}}

/* Login and global search keep their dedicated focus treatment. */
.login-input:focus-within,
:has(>.global-search:focus-visible){outline:0!important;outline-offset:0!important;border-color:transparent!important;box-shadow:inset 0 0 0 1.5px var(--text)!important}

/* Notifications popover (the former "Needs your attention" panel) */
.notif-pop{position:fixed;z-index:60;width:min(380px,calc(100vw - 24px));overflow:auto;border:0;border-radius:var(--r);background:var(--float);box-shadow:var(--shadow-pop),inset 0 0 0 1px var(--line);animation:notif-in .28s var(--ease-out) both;transform-origin:top right}
.notif-pop__head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;padding:18px 20px 8px}
.notif-pop__head h2{font-size:var(--fs-lg);font-weight:600;letter-spacing:-.01em}
.notif-pop__head p{margin-top:2px;color:var(--faint);font-size:var(--fs-sm)}
.notif-pop__head>.icon{flex:none;width:18px;height:18px;color:var(--accent);margin-top:3px}
.notif-pop .attention-item{outline-offset:-2px}
.notif-pop .attention-item:focus-visible{outline:2px solid var(--focus)}
.notif-pop .attention-foot{border-radius:0 0 var(--r) var(--r)}
@keyframes notif-in{from{opacity:0;transform:translateY(-6px) scale(.98)}to{opacity:1;transform:none}}
@media (prefers-reduced-motion:reduce){.notif-pop{animation:none}}

/* Phone toolbar: controls fill the row in a predictable rhythm (period and date full width, buttons in pairs, primary full width) */
@media (max-width:560px){
 .page-heading .actions{width:100%;gap:8px}
 .page-heading .actions>*{flex:1 1 calc(50% - 4px);min-width:0}
 .page-heading .actions>.db-period,.page-heading .actions>.hd-date-filter,.page-heading .actions>.hd-date-field,.page-heading .actions>.btn.primary,.page-heading .actions>.location-trigger{flex-basis:100%}
 .page-heading .actions .hd-date-trigger{width:100%!important;justify-content:space-between}
 .page-heading .actions .btn{justify-content:center}
 .page-heading>.subtabs .subtabs__track:not(:has(> a:nth-of-type(4))){width:100%;display:grid;grid-auto-flow:column;grid-auto-columns:1fr}
 .page-heading>.subtabs .subtabs__track:not(:has(> a:nth-of-type(4))) .subtab{justify-content:center;padding-inline:8px}
 .page-heading>.subtabs{overflow-x:auto;scrollbar-width:none}
}
@media (max-width:560px){.page-heading>.subtabs:has(.subtabs__track > a:nth-of-type(4)){mask-image:linear-gradient(90deg,#000 calc(100% - 28px),#0000)}}
/* Login floating-label fields: the box carries the ring, never the input inside it */
.lf input,.lf input:focus,.lf input:focus-visible{height:100%!important;min-height:0!important;padding:18px 16px 0!important;background:none!important;box-shadow:none!important;outline:none!important;border:0!important;border-radius:0!important;font-size:var(--fs-md)!important}
.lf:focus-within{box-shadow:inset 0 0 0 1.5px var(--text)!important}

/* Dock column: the "+" (New activity) floats above the dock on desktop and sits in the middle of the phone bar */
.dock-col{position:fixed;z-index:30;top:0;bottom:0;left:max(var(--dock-x),calc((100vw - var(--app-max)) / 2 + var(--dock-x)));display:flex;flex-direction:column;justify-content:center;align-items:center;gap:14px;width:var(--dock-w);pointer-events:none}
.dock-col>*{pointer-events:auto}
.dock-col .dock{position:static;top:auto;bottom:auto;left:auto;margin:0}
.dock-fab{position:relative;display:grid;place-items:center;width:50px;height:50px;border:0;border-radius:50%;background:var(--accent);color:#121212;box-shadow:0 16px 30px -14px #000a;cursor:pointer;transition:transform .22s var(--ease-out),box-shadow .22s}
.dock-fab:hover{transform:translateY(-2px);box-shadow:0 20px 34px -14px #000b}
.dock-fab:focus-visible{outline:2px solid var(--focus);outline-offset:3px}
.dock-fab .icon{width:22px;height:22px}
.dock-fab:hover .dock__tip,.dock-fab:focus-visible .dock__tip{opacity:1}
.dock__plus{display:none}
@media (max-width:1080px){
 .dock-col{top:auto;left:0;right:0;bottom:calc(12px + env(safe-area-inset-bottom));width:auto;flex-direction:row;justify-content:center;padding:0 12px}
 .dock-col .dock{position:static;bottom:auto;margin:0}
 .dock-fab{display:none}
 .dock__plus{display:grid}
 .dock__btn[data-module=recipes],.dock__btn[data-module=food-cost],.dock__btn[data-module=reports]{display:none}
}

/* Buttons never fall back to the platform link colour (iOS blue) */
button,a:not([class]),summary{color:inherit}
.supplier-card,.supplier-card strong,.supplier-card span{color:var(--text)}

/* Phone dock: a slimmer bar; the "+" is a regular dock button */
@media (max-width:1080px){
 .dock-col .dock{padding:4px;gap:0;overflow:visible;max-width:none}
 .dock-col .dock__btn{width:40px;height:40px}
 .dock-col .dock__sep{margin:8px 3px}
 .dock-col{bottom:calc(16px + env(safe-area-inset-bottom))}
}

/* No elastic overscroll on the page: the rubber band drags fixed chrome (the dock) along with the content */
html,body{overscroll-behavior-y:none}
/* Pull to refresh (touch): indicator drops from under the top bar while dragging from the top */
.ptr{position:fixed;z-index:35;top:-48px;left:50%;width:44px;height:44px;margin-left:-22px;border-radius:50%;background:var(--float);color:var(--text);box-shadow:var(--shadow-pop),inset 0 0 0 1px var(--line);display:grid;place-items:center;opacity:0;pointer-events:none;transform:translateY(0);transition:transform .25s var(--ease-out),opacity .2s}
.ptr.is-pulling{opacity:var(--p,0);transform:translateY(var(--y,0px));transition:none}
.ptr.is-busy{opacity:1;transform:translateY(var(--y,72px))}
.ptr__ring{display:grid;place-items:center;width:22px;height:22px;transform:rotate(calc(var(--p,0) * 300deg));transition:transform .05s linear}
.ptr__ring svg{width:22px;height:22px}
.ptr.is-armed{color:var(--text);box-shadow:var(--shadow-pop),inset 0 0 0 2px var(--text)}
.ptr.is-busy .ptr__ring{animation:ptr-spin .8s linear infinite}
@keyframes ptr-spin{to{transform:rotate(360deg)}}
.hr-stats .stat-bottom{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.hr-stats .trend{display:inline-flex;align-items:center}
/* New activity sheet: grouped grid */
.quick-group+.quick-group{margin-top:18px}
.quick-group .search-hint{margin:0 2px 10px}
.quick-list{display:grid;gap:2px}
.quick-row{width:100%;border:0;background:none;color:var(--text);font:inherit;text-align:left;cursor:pointer}
.quick-row>.icon:last-child{margin-left:auto;width:16px!important;height:16px!important;padding:0!important;background:none!important;box-shadow:none!important;border-radius:0!important;color:var(--faint)}
.quick-group+.quick-group{margin-top:12px}
.db-store button{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0}
/* Wide screens: module subtabs sit centered in the top bar, level with the location picker, alerts and account */
.topbar:has(>.subtabs){grid-template-columns:0 minmax(0,1fr) auto minmax(0,1fr)}
.topbar>.subtabs{grid-area:1/3;justify-self:center;margin:0 14px}
.topbar:has(>.subtabs) .top-actions{grid-area:1/4;justify-self:end;margin-left:0}
/* Pages without module subtabs: their own tabs take the same centered top bar slot */
.topbar:has(>.tabs){grid-template-columns:0 minmax(0,1fr) auto minmax(0,1fr)}
.topbar>.tabs{grid-area:1/3;justify-self:center;height:46px;margin:0 14px;max-width:100%;padding:4px;border-radius:999px;background:#fff;box-shadow:inset 0 0 0 1px var(--rim)}
.topbar>.tabs .tab{height:38px;min-height:38px;padding:0 16px;color:var(--text)}
.topbar>.tabs .tab:hover{background:var(--well)}
.topbar>.tabs .tab.active,.topbar>.tabs .tab.active:hover{background:none;color:var(--on-pill)}
.topbar:has(>.tabs) .top-actions{grid-area:1/4;justify-self:end;margin-left:0}
:root[data-theme=dark] .topbar>.tabs{background:var(--glass)}
/* Side dock tools: location, notifications and settings; the page buttons take the top-right corner */
.dock__btn .notification-dot,.dock__tool.is-filtered:before{position:absolute;top:9px;right:9px;width:7px;height:7px;border-radius:50%;background:var(--accent);box-shadow:0 0 0 2px var(--dock)}
.dock__tool.is-filtered:before{content:""}
.top-actions>.top-page-heading{display:flex;flex-wrap:nowrap;align-items:center;min-height:0;margin:0;gap:0}
.top-actions>.top-page-heading .actions{flex:0 0 auto;flex-wrap:nowrap;width:auto;margin:0}
.top-actions>.top-page-heading .db-period{margin-right:0}
.topbar:has(.top-page-heading):is(:has(>.subtabs),:has(>.tabs)){grid-template-columns:0 minmax(0,1fr) auto minmax(max-content,1fr)}
/* Dock search: the search button expands into a field on the dock; results float below it */
.dock-search{position:fixed;z-index:2000;width:min(360px,calc(100vw - 24px));color:var(--on-dock)}
.dock-search__bar{display:flex;align-items:center;gap:10px;height:var(--dock-search-h,42px);padding:0 6px 0 13px;border-radius:999px;background:var(--dock);box-shadow:0 20px 40px -18px #13131380;animation:dock-search-in .28s var(--ease-out) both;transform-origin:left center;overflow:hidden}
.dock-search__bar>.icon{flex:none;width:18px;height:18px;opacity:.74}
.dock-search__bar input{flex:1;min-width:0;height:100%;padding:0;border:0!important;border-radius:0!important;outline:0!important;background:none!important;box-shadow:none!important;color:inherit;font:inherit;font-size:var(--fs-md);-webkit-appearance:none;appearance:none}
.dock-search__bar input::placeholder{color:inherit;opacity:.55}
.dock-search__bar input::-webkit-search-cancel-button{display:none}
.dock-search__close{flex:none;display:grid;place-items:center;width:30px;height:30px;padding:0;border:0;border-radius:50%;background:none;color:inherit;opacity:.74;cursor:pointer}
.dock-search__close:hover,.dock-search__close:focus-visible{opacity:1;background:#ffffff21}
.dock-search__close .icon{width:16px;height:16px}
.dock-search__results{margin-top:8px;padding:8px;max-height:min(60vh,520px);overflow:auto;border-radius:var(--r);background:var(--float);color:var(--text);box-shadow:var(--shadow-pop),inset 0 0 0 1px var(--line)}
.dock-search__results:empty{display:none}
/* Expanded rail: the field, the loading note and the results all stay within the rail's width */
.dock-search.is-inline .dock-search__bar{animation:none;box-shadow:none;background:color-mix(in srgb,var(--dock) 86%,#fff)}
.dock-search.is-inline :is(.dock-search__results,.dock-search__loading){width:100%;box-sizing:border-box}
.dock-search.is-inline .dock-search__loading{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.dock-search.is-inline .dock-search__results{padding:6px}
.dock-search.is-inline .search-result{padding:8px 6px;gap:8px}
.dock-search.is-inline .search-result>div{min-width:0}
.dock-search.is-inline .search-result :is(strong,small){display:block;overflow-wrap:anywhere}
.dock-search__loading{margin:8px 0 0;padding:10px 14px;border-radius:var(--r);background:var(--float);color:var(--muted);box-shadow:var(--shadow-pop),inset 0 0 0 1px var(--line)}
.dock-search .search-clear-button{display:none!important}
@keyframes dock-search-in{from{clip-path:inset(0 calc(100% - var(--dock-search-h,42px)) 0 0 round 999px)}to{clip-path:inset(0 0 0 0 round 999px)}}
/* Dock icons grow under the pointer, with a softer lift on their neighbours */
@media (hover:hover){
 .dock__btn>.icon{transition:transform .18s var(--ease-out)}
 .dock__btn:hover>.icon,.dock__btn:focus-visible>.icon{transform:scale(1.35)}
 .dock__btn:has(+ .dock__btn:hover)>.icon,.dock__btn:hover+.dock__btn>.icon{transform:scale(1.15)}
}
@media (prefers-reduced-motion:reduce){.dock-search__bar{animation:none}.dock__btn>.icon{transition:none}}
/* Filter bars share one size across modules: the Team members bar (68px tall, 14px 16px padding) is the reference */
@media (min-width:761px){
 :is(.prep-filters,.loading-toolbar).standalone-filter-bar,.prep-filters{padding:14px 16px!important;gap:10px}
 :is(.toolbar,.prep-filters,.report-filter-panel).standalone-filter-bar{min-height:68px}
 .purchasing-filters>.btn,.purchasing-filters .hd-date-filter .hd-date-trigger,.purchasing-filters>.hd-date-trigger{min-height:40px;height:40px}
 .purchasing-filters .purchasing-search input{min-height:0}
}
.location-popover{width:auto;min-width:200px}
.location-pick{width:100%;border:0;background:none;color:inherit;font:inherit;font-weight:550;text-align:left;padding:9px 12px;border-radius:var(--r-xs)}
.location-pick[aria-checked=true]{background:var(--well);font-weight:700}
.location-pick:focus-visible{outline:2px solid var(--focus);outline-offset:-2px}
/* ---------- Side rail (desktop): full-height dock that expands to labels and nested pages ---------- */
.workspace.has-rail{--dock-x:14px;--dock-w:58px;--side-w:calc(var(--dock-x) + var(--dock-w));transition:padding-left .22s var(--ease-out)}
.workspace.has-rail.rail-open{--dock-w:232px}
.workspace.has-rail .top-logo{display:none}
.dock-rail{top:14px;bottom:14px;justify-content:stretch;align-items:stretch;gap:0;transition:width .22s var(--ease-out)}
.dock-rail .dock{position:relative;display:flex;flex-direction:column;gap:2px;width:100%;height:100%;max-height:none;padding:12px 8px;border-radius:26px;box-sizing:border-box;overflow:visible}
/* The whole rail is a pane of black liquid glass: solid dock colour under a faint diagonal sheen, bright rim and soft depth */
.dock-rail .dock{background:linear-gradient(160deg,#ffffff1c 0%,#ffffff05 22%,#ffffff00 52%,#ffffff0d 100%),var(--dock);box-shadow:inset 0 1px 0 #ffffff66,inset 0 0 0 1px #ffffff24,inset 0 -1px 0 #ffffff1a,0 28px 56px -22px #131313b3,0 2px 6px #13131326;-webkit-backdrop-filter:blur(24px) saturate(180%);backdrop-filter:blur(24px) saturate(180%)}
.dock__edge{position:absolute;z-index:2;top:21px;right:-12px;display:grid;place-items:center;width:24px;height:24px;padding:0;border:0;border-radius:50%;background:var(--float);color:var(--text);box-shadow:inset 0 0 0 1px var(--line),0 6px 14px -6px #0006;cursor:pointer}
.dock__edge .icon{width:14px;height:14px;transition:transform .22s var(--ease-out)}
.workspace:not(.rail-open) .dock__edge .icon{transform:rotate(180deg)}
.dock__edge:focus-visible{outline:2px solid var(--focus);outline-offset:2px}
.dock__brand{display:flex;align-items:center;gap:10px;height:42px;margin-bottom:8px;padding:0 2px;color:inherit;text-decoration:none;white-space:nowrap;overflow:hidden;border-radius:14px}
.dock__brand img{flex:none;display:block;width:38px;height:38px;object-fit:contain}
.dock__brand:focus-visible{outline:2px solid var(--on-dock);outline-offset:2px}
.dock__text{display:none;min-width:0;line-height:1.25;text-align:left}
.dock__text strong{display:block;font-size:var(--fs-sm);font-weight:700;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.dock__text small{display:block;font-size:var(--fs-2xs);opacity:.6;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.rail-open .dock__text{display:block}
.dock-rail .dock__btn{display:flex;align-items:center;justify-content:center;gap:10px;flex:none;width:100%;height:38px;padding:0;border-radius:19px;font:inherit;font-size:var(--fs-sm);font-weight:500;color:inherit;text-decoration:none;white-space:nowrap;cursor:pointer}
.rail-open .dock-rail .dock__btn{justify-content:flex-start;padding:0 11px}
.dock-rail .dock__btn>.icon{flex:none;width:18px;height:18px}
/* Current module: liquid glass highlight (translucent sheen, bright top edge, soft depth) instead of a solid accent fill */
.dock-rail .dock__btn[aria-current=page],.dock-rail .dock__card[aria-current=page]{background:linear-gradient(135deg,#ffffff42 0%,#ffffff17 48%,#ffffff2b 100%);color:var(--on-dock);opacity:1;box-shadow:inset 0 1px 0 #ffffff73,inset 0 -1px 0 #ffffff1f,inset 0 0 0 1px #ffffff26,0 10px 20px -12px #000d;-webkit-backdrop-filter:blur(14px) saturate(170%);backdrop-filter:blur(14px) saturate(170%)}
.dock-rail .dock__btn[aria-current=page]{font-weight:600}
/* Location, search and account share a quieter resting glass when the rail is expanded */
.rail-open .dock__loc>.dock__card,.rail-open .dock-rail .dock__search,.rail-open .dock__foot .dock__card:not([aria-current=page]){background:linear-gradient(135deg,#ffffff2e 0%,#ffffff0f 48%,#ffffff1f 100%);box-shadow:inset 0 1px 0 #ffffff59,inset 0 -1px 0 #ffffff14,inset 0 0 0 1px #ffffff1f,0 10px 20px -12px #000d;-webkit-backdrop-filter:blur(14px) saturate(170%);backdrop-filter:blur(14px) saturate(170%);transition:filter .2s}
.rail-open .dock__loc>.dock__card:hover,.rail-open .dock-rail .dock__search:hover,.rail-open .dock__foot .dock__card:hover{filter:brightness(1.18)}
.dock-rail .dock__btn[aria-current=page]:after{display:none}
.dock__label{display:none;flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;text-align:left}
.rail-open .dock__label{display:block}
.dock__chevron{display:none;flex:none;opacity:.7}
.dock__chevron .icon{display:block;width:14px;height:14px;transition:transform .2s var(--ease-out)}
.rail-open .dock__chevron{display:block}
.dock__group.is-open .dock__chevron .icon{transform:rotate(180deg)}
.dock__kbd{display:none;flex:none;padding:1px 6px;border-radius:6px;background:#ffffff1f;font:inherit;font-size:var(--fs-2xs);color:inherit}
.rail-open .dock__kbd{display:block}
.dock-rail .dock__search{margin-bottom:10px}
.dock-rail .dock__new{margin-bottom:8px;background:var(--accent)!important;color:var(--accent-ink)!important;opacity:1;font-weight:600}
.rail-open .dock-rail .dock__new{justify-content:center}
.rail-open .dock-rail .dock__new .dock__label{flex:none}
.dock__nav{display:flex;flex-direction:column;gap:2px;flex:1 1 auto;min-height:0}
.rail-open .dock__nav{overflow-y:auto;scrollbar-width:thin;scrollbar-color:#ffffff40 transparent}
.dock__sec{flex:none;display:block;height:1px;margin:6px 12px;background:#ffffff24;font-size:0;overflow:hidden}
.rail-open .dock__sec{height:auto;margin:0;padding:8px 11px 3px;background:none;font-size:var(--fs-2xs);font-weight:600;opacity:.5;white-space:nowrap}
.dock__nav>.dock__sec:first-child{display:none}
.rail-open .dock__nav>.dock__sec:first-child{display:block}
.dock__group{position:relative;flex:none}
.dock__subs{display:none}
.dock__group .dock__card .dock__tip{display:none}
.dock__subs-card{display:flex;flex-direction:column;gap:1px}
.dock__subs-title{display:none}
.dock__sub{position:relative;display:flex;align-items:center;flex:none;width:100%;height:30px;padding:0 10px;border:0;border-radius:15px;background:none;font:inherit;font-size:var(--fs-xs);color:inherit;text-align:left;text-decoration:none;white-space:nowrap;cursor:pointer;opacity:.66}
.dock__sub>.icon{display:none;flex:none;width:16px;height:16px;margin-right:9px}
.workspace:not(.rail-open) .dock__subs-card .dock__sub>.icon{display:block}
.dock__sub:hover{opacity:1;background:#ffffff14}
.dock__sub:focus-visible{outline:2px solid var(--on-dock);outline-offset:-2px}
.dock__sub[aria-current=page]{opacity:1;font-weight:700}
.rail-open .dock__group.is-open .dock__subs{display:block;margin:3px 0 5px 20px;padding-left:10px;border-left:1px solid #ffffff2e}
.rail-open .dock__sub[aria-current=page]:before{content:"";position:absolute;left:-11px;top:6px;bottom:6px;width:2px;border-radius:2px;background:var(--accent)}
.workspace:not(.rail-open) .dock__subs-card{min-width:176px;padding:8px;border-radius:18px;background:var(--float);color:var(--text);box-shadow:var(--shadow-pop),inset 0 0 0 1px var(--line)}
.workspace:not(.rail-open) .dock__subs-title{display:block;padding:4px 10px 6px;font-size:var(--fs-2xs);font-weight:600;color:var(--muted)}
.workspace:not(.rail-open) .dock__sub{height:32px;font-size:var(--fs-sm);opacity:1}
.workspace:not(.rail-open) .dock__sub:hover{background:var(--well)}
.workspace:not(.rail-open) .dock__sub:focus-visible{outline-color:var(--focus)}
.workspace:not(.rail-open) .dock__sub[aria-current=page]{background:var(--pill);color:var(--on-pill)}
.dock__loc{position:relative;flex:none;margin-bottom:10px}
.dock__card .dock__text{flex:1}
.dock__card[aria-expanded=true] .dock__chevron .icon{transform:rotate(180deg)}
.dock__locs{display:none;flex:none}
.rail-open .dock__locs:not([hidden]){display:flex;flex-direction:column;gap:2px;position:absolute;z-index:6;top:calc(100% + 6px);left:0;right:0;padding:6px;border-radius:16px;background-color:color-mix(in srgb,var(--float) 88%,transparent);background-image:var(--lg-sheen);color:var(--text);box-shadow:var(--shadow-pop);-webkit-backdrop-filter:var(--lg-blur);backdrop-filter:var(--lg-blur)}
.rail-open .dock__locs .dock__sub{height:34px;padding:0 12px;border-radius:11px;font-size:var(--fs-sm);opacity:1}
.rail-open .dock__locs .dock__sub:hover{background:var(--well)}
.rail-open .dock__locs .dock__sub:focus-visible{outline-color:var(--focus)}
.rail-open .dock__locs .dock__sub[aria-current=true]{background:var(--pill);color:var(--on-pill);font-weight:600}
.rail-open .dock__locs .dock__sub[aria-current=true]:before{display:none}
.rail-open .dock__sub[aria-current=true]{opacity:1;font-weight:700}
.rail-open .dock__sub[aria-current=true]:before{content:"";position:absolute;left:-11px;top:6px;bottom:6px;width:2px;border-radius:2px;background:var(--accent)}
.dock__foot{display:flex;flex-direction:column;gap:6px;flex:none;margin-top:6px;padding-top:6px;border-top:1px solid #ffffff24}
.dock__card{position:relative;display:flex;align-items:center;justify-content:center;gap:10px;width:100%;height:38px;padding:0;border:0;border-radius:16px;background:none;color:inherit;font:inherit;text-align:left;cursor:pointer}
.rail-open .dock__card{justify-content:flex-start;height:auto;padding:8px 9px;background:#ffffff14}
.dock__card:hover,.dock__card[aria-current=page]{background:#ffffff21}
.dock__card:focus-visible{outline:2px solid var(--on-dock);outline-offset:2px}
.dock__avatar{flex:none;display:grid;place-items:center;width:30px;height:30px;border-radius:50%;background:#ffffff26;font-size:var(--fs-2xs);font-weight:700;letter-spacing:.02em}
.dock__avatar .icon{width:15px;height:15px}
/* Collapsed rail: a single selected store shows its initials; all locations keep the pin. */
.dock__initials{display:none}
.workspace:not(.rail-open) .dock__card.has-initials .dock__initials{display:block}
.workspace:not(.rail-open) .dock__card.has-initials .dock__avatar>.icon{display:none}
.dock__card:hover .dock__tip,.dock__card:focus-visible .dock__tip{opacity:1}
.rail-open .dock__tip{display:none}
.rail-open .dock-rail .dock__btn .notification-dot{position:static;flex:none;margin-right:2px;box-shadow:none}
.rail-open .dock-rail .dock__btn>.icon,.rail-open .dock-rail .dock__btn:hover>.icon{transform:none}
@media (max-height:760px){.dock-rail .dock__btn{height:34px}.dock__sub{height:27px}.dock__brand{margin-bottom:2px}.rail-open .dock__card{padding:4px 9px}.rail-open .dock__loc>.dock__card small{display:none}.rail-open .dock__sec{padding-top:5px}.dock__foot{gap:4px;margin-top:4px;padding-top:4px}}
@media (prefers-reduced-motion:reduce){.workspace.has-rail,.dock-rail,.dock__edge .icon,.dock__chevron .icon{transition:none}}
@media print{.dock-rail{display:none!important}.workspace.has-rail{padding-left:0}}

/* Report charts follow the theme: tokens for axes, grid, labels, targets, tooltips and focus */
.report-chart-svg{font-family:inherit}
.chart-axis{stroke:var(--line-2)}
.chart-grid{stroke:var(--line)}
.chart-target{stroke:var(--warn);stroke-width:1.5;stroke-dasharray:5 4}
.chart-label,.chart-value{font-family:inherit;font-size:12px;font-weight:500;fill:var(--muted)}
.chart-value{font-weight:650;fill:var(--text)}
.chart-tick{font-family:inherit;font-size:11px;font-weight:500;fill:var(--faint)}
.chart-total{font-family:inherit;font-size:32px;font-weight:650;fill:var(--text);letter-spacing:-.02em}
.report-chart-svg [tabindex]:focus,.report-chart-svg [tabindex]:focus-visible{outline:2px solid var(--focus);outline-offset:2px;border-radius:4px}
.chart-tooltip rect{fill:var(--ink-btn)}
.chart-tooltip text{fill:var(--on-ink-btn);font-family:inherit;font-size:11px;font-weight:600}
svg .chart-tooltip{background:none;border-radius:0;box-shadow:none;filter:drop-shadow(0 8px 16px #0003)}
.report-chart-legend{color:var(--muted);font-size:var(--fs-xs);font-weight:600}
.report-chart-legend i{width:10px;height:10px;border-radius:50%}
.report-chart-badge{color:var(--muted)}
.report-chart-values summary{color:var(--text)}
.report-chart-values,.report-chart-values li{border-color:var(--line)}
.report-chart-empty svg path{stroke:var(--line-2)}
.chart-expand-button:focus-visible,.report-results .table-wrap:focus-visible{outline:2px solid var(--focus)}
.chart-expanded-dialog{background:var(--float);color:var(--text)}
.chart-expanded-dialog::backdrop{background:#1616166b;backdrop-filter:blur(6px)}
.report-card{border:0}
.report-tag{color:var(--muted);background:var(--well)}
.report-notes{background:var(--warn-soft);border:0;color:var(--warn)}
/* Icon-only filter buttons (clear / apply) */
.btn.btn-icon-only{width:40px;min-width:40px;padding:0!important;gap:0;justify-content:center;flex:none}
.btn.btn-icon-only.sm{width:34px;min-width:34px}
.btn.btn-icon-only .icon{margin:0}
@media (pointer:coarse){.btn.btn-icon-only{width:44px;min-width:44px}}

/* Items per page: shared footer for every list */
.table-wrap tr[hidden]{display:none!important}
.pagination,.history-pagination{display:flex;align-items:center;justify-content:space-between;gap:10px 16px;flex-wrap:wrap}
.lp-ctrl{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin-left:auto}
.lp-label{display:inline-flex;align-items:center;gap:8px;color:var(--muted);font-size:var(--fs-xs);font-weight:600;white-space:nowrap}
.lp-size{height:32px;min-height:32px;padding:0 28px 0 12px;font-size:var(--fs-xs)}
.lp-page{font-size:var(--fs-xs);font-weight:600;color:var(--muted);font-variant-numeric:tabular-nums}
.pagination>.pages,.pagination>.lp-label{margin-left:auto}
.history-pagination>.lp-label{margin-right:auto}
@media print{.lp-foot{display:none}.table-wrap tr[hidden]{display:table-row!important}}
@media print{.pagination,.history-pagination,.lp-foot{display:none!important}}
.recipe-grid>[hidden],.supplier-grid>[hidden]{display:none!important}

/* Date picker: quick dates sit under the time-zone note as a row of chips */
.hd-calendar{grid-template-columns:minmax(0,1fr)!important;display:block}
.hd-calendar-presets{display:flex!important;flex-direction:row!important;flex-wrap:wrap;gap:6px!important;padding:12px 0 2px!important;margin-top:10px;border:0!important;border-top:1px solid var(--line)!important}
.hd-calendar-presets button{flex:0 0 auto;min-height:32px!important;padding:0 12px!important;border-radius:999px;background:var(--glass);box-shadow:inset 0 0 0 1px var(--rim);font-size:var(--fs-xs)!important;font-weight:600;text-align:center!important}
.hd-calendar-presets button:hover{background:var(--glass-2)}
.hd-calendar-presets button.active,.hd-calendar-presets button[aria-pressed=true]{background:var(--pill);color:var(--on-pill);box-shadow:none}

/* Accessibility: the active subtab paints itself until the sliding pill is live; heat cells are buttons */
.subtabs__track:not(:has(.subtabs__pill.is-live)) .subtab.active,.nav-tabs__track:not(:has(.nav-tabs__pill.is-live)) .nav-tab.active,.tabs:not(:has(.seg__pill.is-live)) .tab.active{background:var(--pill);color:var(--on-pill)}
button.db-cell{appearance:none;border:0;padding:0;font:inherit;cursor:default}
.sr-only{position:absolute!important;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}

/* ---------- Button colour standard (one rule set for every page and window) ----------
   Main action: yellow + ink text. Destructive: ink + light text. Pressed toggle: ink pill.
   Secondary: glass + text. Legacy coloured buttons map onto these so no text sits on its own colour. */
.btn.primary,.btn.invoice-paid-button,.btn.count-confirm,.btn.receipt-confirm-button,button.action-save{background:var(--accent)!important;color:var(--accent-ink)!important;border-color:transparent!important;box-shadow:none!important}
.btn.primary:hover,.btn.invoice-paid-button:hover,.btn.count-confirm:hover,.btn.receipt-confirm-button:hover{background:color-mix(in srgb,var(--accent) 88%,#000)!important}
.btn.dark,.btn.invoice-delete-button,.btn.transfer-cancel-button.solid,button.action-delete{background:var(--pill)!important;color:var(--on-pill)!important;border-color:transparent!important;box-shadow:none!important}
.btn.dark:hover,.btn.invoice-delete-button:hover,.btn.transfer-cancel-button.solid:hover,button.action-delete:hover{background:color-mix(in srgb,var(--pill) 84%,var(--primary))!important}
.btn[aria-pressed=true],.report-metric-toggle [aria-pressed=true]{background:var(--pill)!important;color:var(--on-pill)!important;border-color:transparent!important;box-shadow:none!important}
.btn.count-cancel{background:none!important;color:var(--muted)!important;box-shadow:none!important}
.pagination .btn.current{background:var(--pill)!important;color:var(--on-pill)!important}
.btn:disabled,.btn[aria-disabled=true]{background:var(--well)!important;color:var(--faint)!important;box-shadow:none!important}

/* Icon-only buttons: the label appears in a themed bubble on hover and keyboard focus */
.btn.btn-icon-only{position:relative;overflow:visible}
.btn.btn-icon-only[data-tip]::after{content:attr(data-tip);position:absolute;left:50%;bottom:calc(100% + 8px);z-index:80;transform:translate(-50%,4px);padding:6px 10px;border-radius:10px;background:var(--ink-btn);color:var(--on-ink-btn);box-shadow:var(--shadow-pop);font-size:var(--fs-xs);font-weight:600;line-height:1.2;white-space:nowrap;pointer-events:none;opacity:0;transition:opacity .16s var(--ease-out),transform .16s var(--ease-out)}
.btn.btn-icon-only[data-tip]:hover::after,.btn.btn-icon-only[data-tip]:focus-visible::after{opacity:1;transform:translate(-50%,0)}
@media (hover:none){.btn.btn-icon-only[data-tip]:hover::after{opacity:0}}
@media (prefers-reduced-motion:reduce){.btn.btn-icon-only[data-tip]::after{transition:none}}
.recipe-layout-switch .btn.btn-icon-only{width:40px;min-width:40px}

/* Create buttons: a yellow "+" that slides open sideways to reveal its label */
.btn.btn-expand{gap:0;padding:0 11px!important;min-width:40px;justify-content:flex-start;overflow:hidden;transition:padding .32s var(--ease-out),background-color .2s}
.btn.btn-expand .icon{flex:none;transition:transform .32s var(--ease-out)}
.btn.btn-expand .btn-label{display:inline-block;max-width:0;margin-left:0;opacity:0;white-space:nowrap;transform:translateX(-6px);transition:max-width .36s var(--ease-out),margin-left .36s var(--ease-out),opacity .22s,transform .36s var(--ease-out)}
.btn.btn-expand:hover,.btn.btn-expand:focus-visible{padding:0 16px 0 13px!important}
.btn.btn-expand:hover .icon,.btn.btn-expand:focus-visible .icon{transform:rotate(90deg)}
.btn.btn-expand:hover .btn-label,.btn.btn-expand:focus-visible .btn-label{max-width:220px;margin-left:8px;opacity:1;transform:none}
@media (hover:none){.btn.btn-expand:hover{padding:0 11px!important}.btn.btn-expand:hover .btn-label{max-width:0;margin-left:0;opacity:0}.btn.btn-expand:hover .icon{transform:none}}
@media (prefers-reduced-motion:reduce){.btn.btn-expand,.btn.btn-expand .icon,.btn.btn-expand .btn-label{transition:none}}
.page-heading .actions>.btn.btn-expand{flex:0 0 auto!important;width:auto!important}

/* Net sales over time (Sales & usage): light panel, smooth line over a soft area, dashed previous period */
.rc{padding:22px 24px 14px}
.rc-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;flex-wrap:wrap}
.rc-head h2{font-size:var(--fs-lg);font-weight:600}
.rc-total{display:flex;align-items:center;gap:10px;margin-top:8px}
.rc-total strong{font-size:clamp(28px,3vw,40px);font-weight:650;letter-spacing:-.03em;line-height:1;font-variant-numeric:tabular-nums}
.rc-pill{display:inline-flex;align-items:center;height:24px;padding:0 9px;border-radius:999px;background:var(--up-soft);color:var(--up);font-size:var(--fs-xs);font-weight:700}
.rc-pill.is-down{background:var(--down-soft);color:var(--down)}
.rc-head p{margin-top:8px;color:var(--muted);font-size:var(--fs-sm)}
.rc-legend{display:flex;gap:18px;color:var(--muted);font-size:var(--fs-sm);font-weight:500}
.rc-legend span,.rc-tip span{display:inline-flex;align-items:center;gap:8px}
.rc-key{display:inline-block;width:16px;height:0;border-top:2.5px solid var(--c1);border-radius:2px}
.rc-key.is-prev{border-top:2px dashed var(--muted)}
.rc-plot{position:relative;margin-top:14px;height:300px}
.rc-svg{display:block;position:absolute;inset:0;overflow:visible}
.rc-grid{stroke:var(--line);stroke-width:1;vector-effect:non-scaling-stroke}
.rc-tick{fill:var(--faint);font-size:12px;font-weight:500;font-family:inherit}
.rc-line{fill:none;stroke:var(--c1);stroke-width:2.5;stroke-linejoin:round;stroke-linecap:round;vector-effect:non-scaling-stroke}
.rc-prev{fill:none;stroke:var(--muted);stroke-width:1.6;stroke-dasharray:6 5;vector-effect:non-scaling-stroke}
.rc-cross{stroke:var(--line-2);stroke-width:1;stroke-dasharray:3 4;vector-effect:non-scaling-stroke}
.rc-dot{fill:var(--surface);stroke:var(--c1);stroke-width:3;vector-effect:non-scaling-stroke}
.rc-dot-prev{fill:var(--surface);stroke:var(--muted);stroke-width:2;vector-effect:non-scaling-stroke}
.rc-hit{position:absolute;top:0;right:12px;bottom:34px;left:56px;cursor:crosshair;border-radius:var(--r-sm)}
.rc-hit:focus-visible{outline:2px solid var(--focus);outline-offset:2px}
.rc-tip{position:absolute;z-index:5;min-width:220px;padding:14px 16px;border-radius:16px;background:var(--float);box-shadow:var(--shadow-pop);font-size:var(--fs-sm);pointer-events:none}
.rc-tip b{display:block;margin-bottom:8px;font-weight:650}
.rc-tip div{display:flex;justify-content:space-between;gap:24px;padding:3px 0;color:var(--muted)}
.rc-tip strong{color:var(--text);font-weight:650;font-variant-numeric:tabular-nums}
.rc-tip em{display:block;margin-top:6px;font-style:normal;font-weight:600;color:var(--up)}
.rc-tip em.is-down{color:var(--down)}
@media (max-width:760px){.rc{padding:18px 16px 10px}.rc-plot{height:240px}.rc-legend{width:100%}.rc-tip{min-width:180px}}

/* Sales by location: share split, rows with change, one-line read-out */
.sl{display:flex;flex-direction:column}
.sl-body{display:flex;flex-direction:column;flex:1;padding:4px 24px 22px}
.sl-shares{display:flex;justify-content:space-between;align-items:baseline;gap:12px}
.sl-shares>div{display:flex;align-items:baseline;gap:8px;min-width:0}
.sl-shares strong{font-size:clamp(24px,2.4vw,32px);font-weight:650;letter-spacing:-.03em;line-height:1;font-variant-numeric:tabular-nums}
.sl-shares span{color:var(--muted);font-size:var(--fs-sm);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.sl-bar{display:flex;gap:2px;height:14px;margin:14px 0 6px;border-radius:999px;overflow:hidden;background:var(--well)}
.sl-bar i{display:block;height:100%;min-width:2px;transition:width .6s var(--ease-out)}
.sl-list{display:grid}
.sl-row{display:grid;grid-template-columns:14px minmax(0,1fr) auto;align-items:start;gap:14px;padding:18px 0;border-bottom:1px solid var(--line)}
.sl-row:last-child{border-bottom:0}
.sl-key{width:12px;height:12px;margin-top:5px;border-radius:3px}
.sl-name b{display:block;font-weight:600;font-size:var(--fs-md)}
.sl-name small{display:block;margin-top:3px;color:var(--muted);font-size:var(--fs-sm)}
.sl-val{display:grid;justify-items:end;gap:6px}
.sl-val strong{font-size:var(--fs-xl);font-weight:650;letter-spacing:-.02em;font-variant-numeric:tabular-nums}
.sl-note{margin-top:auto;padding:16px 18px;border-radius:var(--r-sm);background:var(--surface-2);box-shadow:inset 0 0 0 1px var(--line)}
.sl-note p{font-size:var(--fs-sm);line-height:1.5}
.sl-note small{display:block;margin-top:8px;color:var(--faint);font-size:var(--fs-xs);line-height:1.5}

/* Notifications popover: header with mark-all-read, rows with round icon, title and relative time; unread rows tinted */
.notif-pop{padding:0;overflow:hidden}
.nt-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:16px 18px 12px;border-bottom:1px solid var(--line)}
.nt-head h2{font-size:var(--fs-md);font-weight:650}
.nt-mark{border:0;background:none;padding:4px 2px;color:var(--text);font:inherit;font-size:var(--fs-sm);font-weight:600;cursor:pointer;border-radius:6px}
.nt-mark:hover{text-decoration:underline;text-underline-offset:3px}
.nt-list{list-style:none;margin:0;padding:0;max-height:min(460px,70dvh);overflow:auto}
.nt-list li+li{border-top:1px solid var(--line)}
.nt-item{display:flex;align-items:center;gap:14px;width:100%;padding:14px 18px;border:0;background:none;color:var(--text);font:inherit;text-align:left;cursor:pointer;transition:background-color .2s}
.nt-item.is-unread{background:var(--well)}
.nt-item:hover{background:var(--glass-2)}
.nt-item:focus-visible{outline:2px solid var(--focus);outline-offset:-2px}
.nt-icon{display:grid;place-items:center;flex:none;width:36px;height:36px;border-radius:50%;background:var(--surface-2);box-shadow:inset 0 0 0 1px var(--line);color:var(--muted)}
.nt-icon .icon{width:16px;height:16px}
.nt-text{display:grid;gap:3px;min-width:0}
.nt-text b{font-weight:500;font-size:var(--fs-sm);line-height:1.35}
.nt-text small{color:var(--faint);font-size:var(--fs-xs)}
.nt-empty{padding:22px 18px;color:var(--muted);font-size:var(--fs-sm)}
.notification-dot[hidden]{display:none!important}
/* Secondary header buttons share the slide-open effect but keep their own icon (no quarter turn) */
.btn.btn-expand--soft:hover .icon,.btn.btn-expand--soft:focus-visible .icon{transform:none}
a.btn.btn-expand{display:inline-flex;align-items:center}

/* Calendar days: selection and today are perfect circles centred in the cell; range days keep a flat band */
.hd-calendar-days button{position:relative;isolation:isolate;border-radius:0!important;background:none!important;box-shadow:none!important;color:var(--text)}
.hd-calendar-days button::before{content:"";position:absolute;z-index:-1;top:50%;left:50%;width:34px;height:34px;margin:-17px 0 0 -17px;border-radius:50%;transition:background-color .15s}
.hd-calendar-days button:hover::before{background:var(--well)}
.hd-calendar-days button.outside{color:var(--faint)}
.hd-calendar-days button:is(.in-range,.range-start,.range-end){background-repeat:no-repeat!important;background-position:center!important;background-size:100% 34px!important}
.hd-calendar-days button.in-range{background-image:linear-gradient(var(--well),var(--well))!important}
.hd-calendar-days button.range-start{background-image:linear-gradient(90deg,transparent 50%,var(--well) 50%)!important}
.hd-calendar-days button.range-end{background-image:linear-gradient(90deg,var(--well) 50%,transparent 50%)!important}
.hd-calendar-days button.in-range:hover::before{background:var(--glass-3)}
.hd-calendar-days button.today::before{box-shadow:inset 0 0 0 1px var(--line-2)}
.hd-calendar-days button.selected{color:var(--on-pill)!important;font-weight:650}
.hd-calendar-days button.selected::before{background:var(--pill)!important;box-shadow:none}
.hd-calendar-days button.selected.today::before{box-shadow:0 0 0 2px var(--surface),0 0 0 3px var(--pill)}
.hd-calendar-days button:focus-visible{outline:0}
.hd-calendar-days button:focus-visible::before{box-shadow:0 0 0 2px var(--focus)}
@media (max-width:480px){.hd-calendar-days button::before{width:30px;height:30px;margin:-15px 0 0 -15px}}

/* No all-caps labels anywhere: headers, eyebrows, section hints, field labels and phone card labels use normal case */
thead th,.nav-label,.eyebrow,.recipe-card .recipe-type,.detail-pair small,.search-hint,.local-record,.recipe-edit-controls .field label,.careers-section h3,.login-brand span,.responsive-table td[data-column-label]::before,.stat__label,.stat-top{text-transform:none!important;letter-spacing:normal!important}
thead th{font-weight:600}
.search-hint,.nav-label,.eyebrow{font-weight:600}

/* Window footers: clear space and a hairline above the buttons */
.modal-foot{margin-top:6px;padding-top:18px!important;border-top:1px solid var(--line)!important}
.search-modal .modal-foot:empty{display:none}
/* Phone window footers: buttons never break words; they pair up in rows */
@media (max-width:700px){.modal-foot{flex-wrap:wrap}.modal-foot .btn{flex:1 1 calc(50% - 4px);min-width:0;white-space:nowrap}}

/* Items per page: one place for every list — the right end of its filter bar, no caption */
.pp-size{display:inline-flex!important;align-items:center;gap:0!important;flex:none}
.pp-in-bar{margin-left:auto!important}
.pp-size select{height:40px;min-height:40px;min-width:76px;padding:0 36px 0 14px;border-radius:12px;font-weight:700}
.lp-ctrl .pp-size{margin-left:0}
@media (max-width:760px){.pp-in-bar{margin-left:auto!important;flex:0 0 auto!important;width:auto!important;max-width:none!important}.pp-in-bar select{width:auto!important;min-width:76px!important;flex:none!important}}
.report-filter-buttons .pp-in-bar{margin-left:4px!important}
.lp-foot .lp-ctrl{margin-left:auto}

/* Pager: same look in every list — ‹ Previous · (n) · › Next */
.pg,.pagination .pages.pg{display:flex;align-items:center;gap:6px;flex-wrap:nowrap}
.pg .pg-btn{height:40px;min-height:40px;padding:0 16px 0 12px!important;gap:6px;font-size:var(--fs-sm);font-weight:600;background:var(--glass-2)!important;color:var(--text)!important;box-shadow:inset 0 0 0 1px var(--rim)!important}
.pg .pg-btn .icon{width:16px;height:16px}
.pg .pg-btn:disabled{background:var(--well)!important;color:var(--faint)!important;box-shadow:none!important}
.pg .pg-num{display:inline-grid;place-items:center;flex:none;min-width:40px;height:40px;padding:0 6px;border-radius:999px;background:var(--pill);color:var(--on-pill);font-size:var(--fs-sm);font-weight:700;font-variant-numeric:tabular-nums}
.history-pagination.pg{justify-content:flex-end}
@media (max-width:560px){.pg .pg-btn span{display:none}.pg .pg-btn{padding:0 12px!important}}

/* Phone subtabs: up to four tabs fill the bar evenly; only five or more scroll with a fade */
@media (max-width:560px){
 .page-heading>.subtabs .subtabs__track:not(:has(> a:nth-of-type(5))){width:100%;display:flex;gap:2px}
 .page-heading>.subtabs .subtabs__track:not(:has(> a:nth-of-type(5))) .subtab{flex:1 1 auto;justify-content:center;padding-inline:10px;min-width:0}
 .page-heading>.subtabs:has(.subtabs__track > a:nth-of-type(4)):not(:has(.subtabs__track > a:nth-of-type(5))){mask-image:none!important;overflow:visible}
}

/* Phone card tables: no header row (sort/filter pills) above the cards */
@media (max-width:760px){
 .responsive-table>thead.has-table-controls{display:none!important}
}

/* Stat cards without a detail line keep no empty gap under the value. */
.stat-bottom:empty{display:none}

/* Waste: Estimated loss carries the share of net sales as a ring, in the Overview cost tile format. */

/* Phone: the page's buttons sit on the title row, right of the title; the subtitle runs the full width below. */
@media (max-width:760px){
 .topbar:has(> .top-page-actions) .top-actions{grid-area:1/1/auto/-1;justify-self:end}
 .topbar>.top-page-actions{grid-area:2/1/auto/-1;justify-self:end;align-self:start;display:flex;align-items:center;gap:8px;margin-top:9px}
 .topbar>.top-page-actions>.btn{flex:0 0 auto;height:40px!important;min-height:40px!important}
 .topbar:has(> .top-page-actions) .top-title .page-title{padding-right:calc(var(--tpa-w,48px) + 10px)}
 .topbar .top-title .page-subtitle{white-space:normal;overflow:visible;text-overflow:clip;max-width:none}
 .topbar:has(> .top-page-actions) .top-title .page-subtitle{margin-top:10px}
 .page-heading:not(:has(.actions > *)) .actions{display:none}
 .topbar>.top-title{margin-top:14px}
}

/* Waste keeps a single stat card, so it spans the row. */
.stats.waste-stats:has(> .stat-card:only-child){grid-template-columns:minmax(0,1fr)}
@media (min-width:761px){.stats.waste-stats:has(> .stat-card:only-child){grid-template-columns:minmax(0,420px)}}

/* Phone cards: the row action (Print labels, edit, open) sits in the card's top-right corner as an icon button. */
@media (max-width:760px){
 .responsive-table tbody tr:has(> td.responsive-cell-action){position:relative}
 .responsive-table tbody tr:has(> td.responsive-cell-action)>td:first-child{padding-right:56px!important}
 .responsive-table td.responsive-cell-action{position:absolute!important;top:12px;right:12px;width:auto!important;min-height:0!important;padding:0!important;margin:0!important;border:0!important;background:none!important;display:flex!important;gap:6px;z-index:1}
 .responsive-table td.responsive-cell-action::before{display:none!important}
 .responsive-table td.responsive-cell-action :is(.btn,a.btn){background:var(--well)!important;box-shadow:none!important;width:40px!important;min-width:40px!important;height:40px!important;min-height:40px!important;padding:0!important;border-radius:50%!important;justify-content:center;gap:0!important}
 .responsive-table td.responsive-cell-action .cell-action-label{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
}
/* Table header layouts must not reveal closed native help popovers. */
.coverage-explanation[popover]:not(:popover-open){display:none!important}
.coverage-explanation[popover]:popover-open{display:block}


/* Multi-select dropdown in forms (supplier categories): closed it looks like a select, open it lists checkboxes. */
.ms-field{position:relative;display:flex;flex-direction:column;gap:6px}
.ms-dropdown{position:relative}
.ms-trigger{list-style:none;display:flex;align-items:center;min-height:40px;padding:0 36px 0 12px;border-radius:var(--control-radius,12px);background:var(--glass) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236b7566' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat calc(100% - 12px) 50%/16px auto;box-shadow:inset 0 0 0 1px var(--rim);font-size:13px;font-weight:500;color:var(--text);cursor:pointer}
.ms-trigger::-webkit-details-marker{display:none}
.ms-trigger:focus-visible{outline:2px solid var(--focus);outline-offset:2px}
.ms-summary{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.ms-summary.is-empty{color:var(--muted)}
.ms-panel{position:absolute;z-index:20;left:0;right:0;top:calc(100% + 6px);max-height:260px;overflow:auto;padding:6px;border-radius:14px;background:var(--surface,#fff);box-shadow:inset 0 0 0 1px var(--rim),var(--shadow)}
.ms-option{display:flex!important;flex-direction:row!important;align-items:center;gap:10px;min-height:40px;padding:0 10px;border-radius:10px;font-size:13px!important;font-weight:500;color:var(--text)!important;cursor:pointer}
.ms-option:hover{background:var(--well)}
.ms-option input{width:18px!important;height:18px;min-height:0!important;padding:0!important;margin:0;flex:none;accent-color:var(--pill)}

/* Footers with their own pager: the range sits at the left, like the shared list footer. */
.history-pagination>.lp-range{margin-right:auto;color:var(--muted);font-size:12.5px;font-weight:500}
.history-pagination:has(>.lp-range)>.lp-label{margin-right:0}


/* Catalog item: locations & storage areas editor. */
.item-location-list{display:grid;gap:10px}
.item-location{display:grid;grid-template-columns:minmax(140px,220px) minmax(0,1fr);align-items:center;gap:12px;padding:10px 0;border-top:1px solid var(--line)}
.item-location:first-child{border-top:0}
.item-location__toggle{display:flex!important;flex-direction:row!important;align-items:center;gap:10px;cursor:pointer}
.item-location__toggle input{width:18px!important;height:18px;min-height:0!important;padding:0!important;margin:0;accent-color:var(--pill)}
.item-location .ms-dropdown[data-disabled] .ms-trigger{opacity:.55;cursor:not-allowed}
.item-locations__actions{display:flex;justify-content:flex-end;margin-top:8px}
@media (max-width:560px){.item-location{grid-template-columns:1fr}}

/* Overview: Waste % gauge beside the daily sales chart. */
.db>.db-waste{grid-column:span 4}
.db:has(>.db-waste)>.db-an{grid-column:span 8}
.db-waste .db-note p{margin:0;color:inherit;opacity:.72;font-size:var(--fs-sm)}
.db-waste .delta.is-down{background:#ff6b5a33;color:#ffb3a8}
@media (max-width:1100px){.db>.db-waste,.db:has(>.db-waste)>.db-an{grid-column:span 12}}
.db-waste{color:#f6f6f4}
.db-waste :is(h2,.panel-head p,.db-gauge__c b,.db-note,.db-note p){color:#f6f6f4!important}
.db-waste .panel-head p,.db-waste .db-note p{opacity:.66}
@media (max-width:1100px){.db>.db-waste{display:flex!important;flex-direction:column}.db-waste .db-gauge{width:100%;max-width:420px;margin-inline:auto}}

/* Overview cost tiles: the ring sits in the top-right corner of the tile. */
.db-kpi__mini:has(>.db-ring){align-self:flex-start;align-items:flex-start}

/* Waste % card: the gauge fills the space under the title instead of leaving a gap below. */
.db>.db-waste{display:flex!important;flex-direction:column}
.db>.db-waste .db-gauge{flex:none;width:min(calc(100% - 64px),340px);max-width:none;margin:auto;padding-bottom:28px}
/* Waste % on medium screens: the title stays left-aligned like other panels. */
.db>.db-waste>.panel-head{align-self:stretch;text-align:left}
/* Narrow KPI tiles (phone): the line and ring charts sit in the top-right corner instead of under the text. */
.db-kpi{position:relative}
@container (max-width:260px){
 .db-kpi__mini:has(>.db-ring){position:absolute;top:16px;right:16px;width:auto;height:auto;justify-content:flex-end}
 .db-kpi__mini>.db-ring{width:40px;height:40px}
 .db-kpi__row:has(.db-kpi__mini>.db-ring) .stat__label{padding-right:48px}
}

/* Operation windows (transfers, orders): item tables use the standard window table outline. */
.modal.operation-modal .table-wrap,.operation-modal .table-wrap{border:1px solid var(--line)!important;border-radius:var(--r-sm)!important;box-shadow:none!important;background:var(--glass)!important;overflow:auto}


/* Recipe ingredients and packaging: photo column before the item, like Inventory. */
.recipe-components .recipe-photo-column{width:76px;min-width:76px;padding-right:8px}

/* Card grids (recipes, suppliers): space between the last row of cards and the list footer line. */
:is(.recipe-grid,.supplier-grid)+.lp-foot{margin-top:24px}
/* Recipe tables with a photo column: narrow photo, the item takes the space (left-aligned), quantity on the right. */
.recipe-components table:has(.recipe-photo-column) :is(th,td):first-child{width:76px!important;max-width:76px}
.recipe-components table:has(.recipe-photo-column) :is(th,td):nth-child(2){width:auto!important;text-align:left!important}
.recipe-components table:has(.recipe-photo-column) :is(th,td):nth-child(3),.recipe-components table:has(.recipe-photo-column) .recipe-quantity{width:140px!important;text-align:left!important}
.recipe-centered .recipe-components table:has(.recipe-photo-column) th:first-child{width:76px!important}
/* Recipe card: cost of the quantity used, after the quantity; unknown costs read like the Cost tab. */
.recipe-components table:has(.recipe-photo-column) :is(th,td):nth-child(4),.recipe-components table:has(.recipe-photo-column) .recipe-line-cost{width:120px!important;text-align:left!important}
.recipe-components td.recipe-line-cost{font-size:13px;font-weight:650;color:#4b4b4b;white-space:nowrap}
.recipe-components td.recipe-line-cost.cost-missing{font-weight:500;color:var(--text-muted);white-space:normal}

/* Buttons and status pills that are hidden or empty never show (e.g. "Retry saving draft", a section with no status yet). */
.btn[hidden]{display:none!important}
.status:empty{display:none!important}

/* Inventory count window follows the page pattern: grey page, content in panels (glass, rim, soft shadow),
   standard pills for search and fields, and the table field style for quantity and unit. */
.count-page .modal-body{background:var(--bg,#efefed)}
.count-page #count-form>.form-grid:first-child,.count-page .count-area-section{background:var(--glass);border-radius:var(--r);box-shadow:inset 0 0 0 1px var(--rim),var(--shadow)}
.count-page #count-form>.form-grid:first-child{padding:18px 20px}
.count-page #count-employee{background:var(--glass-2,var(--glass));color:var(--text)}
.count-page #count-entry>.input-wrap{box-shadow:inset 0 0 0 1px var(--rim),var(--shadow)}
.count-page .count-area-section{border:1px solid var(--rim);box-shadow:var(--shadow);overflow:hidden;margin-top:16px}
.count-page .count-area-section>summary{background:none;padding:16px 20px;font-size:var(--fs-md,14px);font-weight:600;color:var(--text);border-bottom:1px solid var(--line)}
.count-page .count-area-section>summary>span:not(.status){color:var(--muted);font-weight:500}
.count-page .count-area-section .table-wrap{border:0;box-shadow:none;border-radius:0;background:none}
.count-page td select{background-color:rgba(255,255,255,.78);box-shadow:inset 0 0 0 1px rgba(17,17,17,.17)}
:root[data-theme=dark] .count-page td select{background-color:var(--glass-2);box-shadow:inset 0 0 0 1px var(--line)}
.count-page .count-issue-icon{background:var(--well)!important;box-shadow:none!important}

/* Back link inside a heading without tabs; size select in a list header. */
.page-heading>.supplier-back.page-heading__back{margin:0;align-self:center}
.panel-head:has(>.pp-in-head){display:flex;align-items:center;gap:12px}
.panel-head>.pp-in-head{margin-left:auto!important}
.count-page .count-area-section>.table-wrap{margin-top:0!important}
.count-page .count-area-section>summary{border-bottom:0}
.count-page #count-entry>.input-wrap{margin-top:16px}
/* Count window: helper text and the search icon line up with the panel content (20px in). */
.count-page #count-entry>p{padding-left:20px;padding-right:20px}
.count-page #count-entry>.input-wrap{padding-left:20px!important}
.count-page>.modal-head{padding-left:42px!important;padding-right:42px!important}
.count-page>.modal-head{height:auto;padding-top:22px!important;padding-bottom:22px!important}
.count-page>.modal-body{padding-top:24px}
/* Waste % card: room under the value so it never touches the panel edge. */
.db>.db-waste{padding-bottom:24px}
/* Inventory: Live toggle (icon only); green status colours (--up) while the live columns show. */
.btn.live-toggle.is-on{background:var(--up-soft)!important;color:var(--up)!important;box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--up) 22%,transparent)}
.btn.live-toggle.is-on .icon{color:var(--up)}
/* Page tab bar (Suppliers / Orders / …): white bar with an even 4px inset around the active pill. */
.page-heading>.subtabs{background:#fff;height:44px}
.page-heading>.subtabs .subtabs__track{padding:4px}
.page-heading>.subtabs .subtab{height:36px}
@media (min-width:761px){.topbar>.subtabs{background:#fff}}
:root[data-theme=dark] :is(.page-heading,.topbar)>.subtabs{background:var(--glass)}
/* Segmented controls in the page heading (Overview location: Both / Sherwood Plaza / Natick Mall) share the white tab-bar background. */
.page-heading .seg{background:#fff}
:root[data-theme=dark] .page-heading .seg{background:var(--glass)}
/* Transfer window: order steps under the route; the current step is the dark pill, earlier steps stay filled. */
.transfer-steps{display:flex;align-items:flex-start;margin:4px 0 18px;padding:14px 18px 12px;list-style:none;border-radius:var(--r-sm,14px);background:var(--glass);box-shadow:inset 0 0 0 1px var(--rim)}
.transfer-step{position:relative;flex:1;display:grid;justify-items:center;gap:6px;min-width:0}
.transfer-step+.transfer-step::before{content:"";position:absolute;top:15px;right:calc(50% + 22px);left:calc(-50% + 22px);height:1px;background:var(--line)}
.transfer-step.is-done+.transfer-step::before,.transfer-step.is-current::before{background:var(--muted)}
.transfer-step__icon{display:grid;place-items:center;width:32px;height:32px;border-radius:10px;background:var(--well);color:var(--muted)}
.transfer-step__icon .icon{width:15px;height:15px}
.transfer-step__label{font-size:var(--fs-xs,11.5px);font-weight:500;color:var(--muted);text-align:center}
.transfer-step.is-done .transfer-step__icon{color:var(--text)}
.transfer-step.is-current .transfer-step__icon{background:var(--pill);color:var(--on-pill)}
.transfer-step.is-current .transfer-step__label{color:var(--text);font-weight:600}
/* Transfers board: each column title carries the same icon as its step in the transfer window. */
.column-title__name{display:inline-flex;align-items:center;gap:8px}
.column-title__name .icon{width:15px;height:15px}
/* Window item tables: the action buttons keep the same side gap as the first column's text. */
.operation-table td:last-child,.operation-table th:last-child{padding-right:10px!important}
/* Overview Internal transfers: the stage row reuses the transfer-window steps, with a count under each label. */
.db-route .db-transfer-steps{margin:4px 20px 16px}
.transfer-step__count{font-size:var(--fs-lg,18px);font-weight:700;color:var(--text);line-height:1}
/* KPI tiles: content starts at the top, so every title sits on the Waste % title line. */
.db-kpis>.db-kpi{align-content:start}
/* Overview: Waste is a KPI tile beside COGS Cost (five tiles), and the daily sales chart takes the full row. */
.db-kpis:has(>:nth-child(5)){grid-template-columns:repeat(5,minmax(0,1fr))}
.db:not(:has(>.db-perf))>.db-an{grid-column:span 12}
@media (max-width:1320px){.db-kpis:has(>:nth-child(5)){grid-template-columns:repeat(6,minmax(0,1fr))}.db-kpis:has(>:nth-child(5))>:nth-child(-n+2){grid-column:span 3}.db-kpis:has(>:nth-child(5))>:nth-child(n+3){grid-column:span 2}}
@media (max-width:560px){.db-kpis:has(>:nth-child(5)){grid-template-columns:repeat(2,minmax(0,1fr))}.db-kpis:has(>:nth-child(5))>*{grid-column:auto!important}.db-kpis:has(>:nth-child(5))>:nth-child(5){grid-column:1/-1!important}}
@media (max-width:400px){.db-kpis:has(>:nth-child(5)){grid-template-columns:minmax(0,1fr)}}
/* Add item: locations group follows the item-details pattern (no browser fieldset frame, rows split by the light line). */
.supplier-locations-create{border:0;padding:0;margin:0;min-width:0}
.supplier-locations-create>legend{padding:0;margin-bottom:6px}
.supplier-locations-create .supplier-location-create{display:grid;grid-template-columns:minmax(140px,220px) minmax(0,1fr);align-items:center;gap:12px;margin:0;padding:10px 0;border-top:1px solid var(--line)}
.supplier-locations-create .supplier-location-create>label{display:flex;align-items:center;gap:10px;cursor:pointer}
.supplier-locations-create .catalog-help{display:block;margin-top:4px}
@media (max-width:760px){.supplier-locations-create .supplier-location-create{grid-template-columns:1fr}}
:is(#supplier-create-form,#supplier-details-form)>.catalog-section+.catalog-section{margin-top:16px}
#supplier-create-form>.catalog-help{margin:12px 0 0}
/* Overview: Purchasing activity and Internal transfers share one row (two columns) on wide screens. */
.db>.db-orders,.db>.db-route{grid-column:span 6}
@media (max-width:1100px){.db>.db-orders,.db>.db-route{grid-column:span 12}}
/* Order items: narrow photo column first; the description keeps the wide column. */
.order-items-table th.inventory-photo-column,.order-items-table td.inventory-photo-column{width:72px!important;min-width:0!important}
.order-items-table td.inventory-photo-column+td{width:34%;min-width:240px}
/* Real borders remain outside cell backgrounds and stay fixed while tables scroll.
   Panels own page-table frames; modal wrappers own standalone table frames. */
.panel:has(table){border:1px solid var(--rim);box-shadow:var(--shadow)}
.modal .table-wrap>table>thead>tr:first-child>th,
.operation-modal .table-wrap>table>thead>tr:first-child>th,
.panel>.table-wrap:first-child>table>thead>tr:first-child>th,
.panel>div:first-child>.table-wrap:first-child>table>thead>tr:first-child>th{border-top:0}
.operation-table.order-items-table{overflow-x:auto}
/* Shared form fields use the same neutral edge as toolbar controls. */
:is(.catalog-section,.field) :is(input:not([type=checkbox]):not([type=radio]):not([type=file]):not([type=hidden]):not([type=range]):not([type=color]):not(.hd-date-source),select,textarea,.ms-trigger){background-color:rgba(255,255,255,.78)!important}
:root[data-theme=dark] :is(.catalog-section,.field) :is(input:not([type=checkbox]):not([type=radio]):not([type=file]):not([type=hidden]):not([type=range]):not([type=color]):not(.hd-date-source),select,textarea,.ms-trigger){background-color:var(--glass-2)!important}
:is(.catalog-section,.field) :is(input:not([type=checkbox]):not([type=radio]):not([type=file]):not([type=hidden]):not([type=range]):not([type=color]):not(.hd-date-source),select,textarea,.ms-trigger):not(:where(select:not([multiple]):not([size]))){box-shadow:inset 0 0 0 1px var(--line)!important}
/* Add item conversions span the section, like Item details. */
#supplier-create-form .create-conversions{grid-column:1/-1}
/* Add item: Units and Conversions side by side; each keeps its own fields in one column. */
#supplier-create-form .create-pair{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin-top:16px}
#supplier-create-form .create-pair>.catalog-section{margin:0!important}
#supplier-create-form .create-pair .form-grid{grid-template-columns:minmax(0,1fr)}
@media (max-width:760px){#supplier-create-form .create-pair{grid-template-columns:minmax(0,1fr)}}
#supplier-create-form>.create-pair+.catalog-section{margin-top:16px}
/* File drag and drop: the zone under the dragged file lights up like its hover state. */
.upload-zone.is-dragover{border-color:var(--primary);background:var(--primary-soft)}
.recipe-photo.is-dragover,label.is-dragover{outline:2px dashed var(--primary);outline-offset:4px;border-radius:var(--r-sm)}
/* Overview delta pills use the app's status colors (green good, red bad). The dashboard re-tints --up locally,
   so the root status values are captured here first. */
:root{--status-up:var(--up);--status-up-soft:var(--up-soft);--status-down:var(--down);--status-down-soft:var(--down-soft)}
.db .delta.is-good{background:var(--status-up-soft);color:var(--status-up)}
.db .delta.is-bad{background:var(--status-down-soft);color:var(--status-down)}
/* Search fields in toolbars: as wide as their placeholder (and what is typed), so the hint is never cut off
   while there is room; they still shrink on narrow screens. */
:is(.toolbar,.prep-filters,.purchasing-filters,.invoice-filters,.report-filters,.standalone-filter-bar) .input-wrap>input{field-sizing:content;width:auto!important;min-width:150px;max-width:420px;padding-right:4px}
:is(.toolbar,.prep-filters,.purchasing-filters,.invoice-filters,.report-filters,.standalone-filter-bar) .input-wrap{flex:0 1 auto;width:auto;max-width:100%}
@media (max-width:640px){:is(.toolbar,.prep-filters,.purchasing-filters,.invoice-filters,.report-filters,.standalone-filter-bar) .input-wrap>input{max-width:none}}

/* New recipe window: Add item sections, the recipe editor's ingredient rows, step list and location chips. */
#recipe-create-form .catalog-section+.catalog-section,#recipe-create-form .catalog-section+.create-pair,#recipe-create-form .create-pair+.catalog-section{margin-top:16px}
#recipe-create-form .create-pair{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,300px),1fr));gap:16px;margin-top:16px}
#recipe-create-form .create-pair>.catalog-section{margin:0!important}
#recipe-create-form [hidden]{display:none!important}
#recipe-create-form .recipe-create-locations{display:flex;flex-wrap:wrap;gap:10px}
#recipe-create-form .recipe-create-locations label{display:inline-flex!important;flex-direction:row!important;align-items:center;gap:8px;min-height:40px;padding:0 14px;border-radius:999px;background:var(--glass);box-shadow:inset 0 0 0 1px var(--rim);font-size:13px;font-weight:600;color:var(--text);cursor:pointer}
#recipe-create-form .recipe-create-locations label:has(input:checked){background:var(--pill);color:var(--on-pill);box-shadow:none}
#recipe-create-form .recipe-create-locations input{width:16px!important;height:16px;min-height:0!important;padding:0!important;margin:0;accent-color:var(--accent)}
#recipe-create-form .recipe-steps{display:grid;gap:8px}
#recipe-create-form .recipe-step{display:grid;grid-template-columns:32px minmax(0,1fr) 36px;align-items:center;gap:10px}
#recipe-create-form .recipe-step .step-no{display:grid;place-items:center;width:32px;height:32px;border-radius:50%;background:var(--pill);color:var(--on-pill);font-size:12px;font-weight:700}
#recipe-create-form .recipe-edit-row:last-child{border-bottom:0}
#recipe-create-form .recipe-picker{margin-top:4px}

/* Keep field captions and their controls on a shared rhythm, with room for help icons. */
.field{gap:8px}
.field>label:not(:has(input)),.field>.recipe-field-title{min-height:26px;margin:0!important;display:flex;align-items:center}
.field>.recipe-field-title .coverage-info{width:26px!important;height:26px!important;min-height:26px!important;padding:0!important}

/* Filter captions stay quiet; selected values share one bold treatment. */
.hd-date-trigger .hd-date-caption{font-weight:400}
.hd-date-trigger .hd-date-value,.location-trigger strong{font-weight:700!important}
:is(.toolbar,.prep-filters,.standalone-filter-bar,.report-filter-panel,.handover-controls,.count-detail-toolbar) :is(select,input:not([type=checkbox]):not([type=radio])){font-weight:700!important}
:is(.toolbar,.prep-filters,.standalone-filter-bar,.report-filter-panel,.handover-controls,.count-detail-toolbar) input::placeholder{font-weight:400}

/* Remove decorative white glass outlines while retaining focus indicators. */
:root{--rim:transparent!important;--shadow:0 24px 48px -30px #3737374d}
:root[data-theme=dark]{--shadow:0 24px 48px -30px #000c;--shadow-pop:0 24px 60px -18px #000000b3}

/* Opaque purchasing filter surface; subtle outlines belong to its controls. */
:root:not([data-theme=dark]) .prep-filters.purchasing-filters{background:#fff;box-shadow:none}
:root:not([data-theme=dark]) .purchasing-filters .btn:not(.hd-date-trigger):not(.filter-select){box-shadow:inset 0 0 0 1px var(--line)}

/* Shared neutral controls retain their white surface in the light theme. */
:root:not([data-theme=dark]) :is(.location-trigger:not([aria-expanded=true]),.hd-date-trigger:not([aria-expanded=true]),.filter-select,.date-control,.input-wrap:has(input),.location-search:has(input),.purchasing-search:has(input),.invoice-search:has(input),.hlp-search:has(input),.handover-search>input,select:not([multiple]):not([size]):not([aria-expanded=true])){
 background-color:#fff;
}
/* A single inset outline stays within the control without changing its size. */
:is(.input-wrap:has(input),.location-search:has(input),.purchasing-search:has(input),.invoice-search:has(input),.hlp-search:has(input),.handover-search>input,.location-trigger,.hd-date-trigger,.filter-select,.date-control,select:not([multiple]):not([size])):not([aria-expanded=true],.pp-size *,.purchasing-page-size *,[aria-label="Items per page"],.top-actions>.location-trigger,.overview-period-trigger,:where(.recipe-editor-modal .recipe-edit-controls select)){
 outline:1px solid var(--line);outline-offset:-1px;box-shadow:none;
}
:is(.input-wrap,.location-search,.purchasing-search,.invoice-search,.hlp-search):has(input:focus),
.handover-search>input:focus,
:is(.location-trigger,.hd-date-trigger,.filter-select,.date-control,select:not([multiple]):not([size])):not([aria-expanded=true],.pp-size *,.purchasing-page-size *,[aria-label="Items per page"]):is(:focus-visible,select:focus){
 outline:2px solid var(--focus)!important;outline-offset:-2px!important;box-shadow:none!important;
}

/* Keep the Overview date action borderless while retaining keyboard focus. */
.hd-date-trigger.overview-period-trigger:not(:focus-visible){box-shadow:none}

/* Neutral summary cards use an opaque surface; highlighted cards keep their color. */
:root:not([data-theme=dark]) .invoice-summary-grid>.invoice-summary:not(:first-child){background:#fff}

/* Search/filter bars share an opaque white surface across pages and dialogs. */
:root:not([data-theme=dark]) :is(.toolbar,.standalone-filter-bar,.prep-filters,.report-filter-panel,.handover-controls,.count-detail-toolbar){background:#fff;box-shadow:none}

/* Clear and page-size controls are borderless; keyboard focus remains visible. */
:is(button[data-action$="-clear"],button[data-action$="-clear-filter"],button[data-action$="-clear-filters"],button[data-action="report-reset"],.pp-size select,.purchasing-page-size select,select[aria-label="Items per page"]):not(:focus-visible){border:0!important;box-shadow:none!important}

/* Consistent pill-shaped action buttons and single-value selectors. */
:is(.btn,.ibtn,.icon-btn,.location-trigger,.hd-date-trigger,.filter-select,.date-control,select:not([multiple]):not([size]),button[type=submit],button[type=reset]){border-radius:999px!important}

.has-search-clear{position:relative}
.search-clear-wrapper{display:flex;align-items:center;min-width:0;flex:1}
.has-search-clear>input{padding-right:30px!important;min-width:0}
.search-clear-button{position:absolute;right:7px;top:50%;transform:translateY(-50%);display:grid;place-items:center;width:26px;height:26px;padding:4px;border:0;border-radius:50%;background:transparent;color:var(--muted);cursor:pointer}
.search-clear-button[hidden]{display:none}
.search-clear-button svg{width:16px;height:16px}
.search-clear-button:hover{background:var(--well);color:var(--text)}
.search-clear-button:focus-visible{outline:2px solid var(--text);outline-offset:2px}
.has-search-clear input::-webkit-search-cancel-button{-webkit-appearance:none}

.supplier-card{border:0;box-shadow:none}
.supplier-card:hover{box-shadow:var(--shadow-lift)}

/* Card surfaces have no decorative outline; keyboard focus stays visible. */
:is(.supplier-card,.recipe-card,.route-card,.stat-card,.task-card,.insight-card,.report-card,.day-card,.day-procedure-card,.document-card,.loading-card){border:0!important;box-shadow:none}
/* Rounded filter surfaces, including toolbars inside otherwise empty panels. */
:is(.toolbar,.standalone-filter-bar,.prep-filters,.report-filter-panel,.handover-controls,.count-detail-toolbar){border-radius:var(--r)!important}

/* The global location selector has no decorative border, including hover. */
.topbar .top-actions .location-trigger{border:0!important;box-shadow:none!important}

/* Search text remains regular weight across pages and popovers. */
:is(.has-search-clear,.toolbar,.prep-filters,.standalone-filter-bar,.report-filter-panel,.handover-controls,.count-detail-toolbar) input:not([type="checkbox"]):not([type="radio"]):is([type="search"],[placeholder*="Search" i],[placeholder*="Pesquisar" i],[placeholder*="Buscar" i]){font-weight:400!important}
.recipe-version-summary summary{cursor:pointer}
.recipe-history-table{table-layout:fixed;width:100%}
.recipe-history-table :is(th,td){vertical-align:top;white-space:normal;overflow-wrap:anywhere}
.recipe-history-table :is(th,td):first-child{width:42%}
.recipe-version-summary[open]{min-width:0;white-space:normal}
.recipe-version-summary p{white-space:normal;margin:8px 0 0;font-weight:400}

.recipe-status-filter{position:relative;cursor:pointer}
.recipe-status-filter select{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer}
.recipe-status-filter:focus-within{outline:2px solid var(--ink);outline-offset:2px}

/* Supplier rows keep the same cards and controls as the block view. */
.supplier-grid.supplier-list{grid-template-columns:1fr}
.supplier-list .supplier-card{display:grid;grid-template-columns:44px minmax(0,2fr) minmax(0,1fr) auto;align-items:center;gap:18px}
.supplier-list .supplier-card-head{display:contents}
.supplier-list .supplier-logo{grid-column:1;grid-row:1}
.supplier-list .supplier-card-head .status{grid-column:4;grid-row:1}
.supplier-list .supplier-card h3{grid-column:2;grid-row:1;margin:0;overflow-wrap:anywhere}
.supplier-list .supplier-card p{grid-column:3;grid-row:1;margin:0;overflow-wrap:anywhere}
.supplier-list .supplier-card-footer{grid-column:4;grid-row:1;margin:0;padding:0;border:0}
@media(max-width:700px){
.supplier-list .supplier-card{grid-template-columns:44px minmax(0,1fr) auto;gap:12px}
.supplier-list .supplier-card-head .status{grid-column:3}
.supplier-list .supplier-card p{grid-column:2;grid-row:2}
.supplier-list .supplier-card-footer{grid-column:2/-1;grid-row:3}
}

.invoice-filters .invoice-search{flex:0 1 auto;width:auto;min-width:0;max-width:100%}
.invoice-filters .invoice-search input{width:25ch;max-width:100%;min-width:0}

/* Invoice review fields share the outlined controls used by its selectors. */
.invoice-review-modal .field :is(input:not(.hd-date-source),textarea){box-shadow:inset 0 0 0 1px var(--line);border-radius:var(--control-radius)!important}

/* Keep the shared field focus ring visible above its resting rim. */
:is(.catalog-section,.field) :is(input:not([type=checkbox]):not([type=radio]):not([type=file]):not([type=hidden]):not([type=range]):not([type=color]):not(.hd-date-source),textarea,.ms-trigger):focus-visible{box-shadow:inset 0 0 0 1.5px var(--text)!important}

/* Inventory totals use the same cards as other operational summaries. */
.stats.inventory-summary{grid-template-columns:repeat(auto-fit,minmax(min(100%,210px),1fr))}

/* ---------- Liquid glass across the workspace: the rail's recipe (diagonal sheen, bright rim, soft depth) on every shared surface ---------- */
:root{
  --lg-sheen:linear-gradient(160deg,#ffffffe6 0%,#ffffff4d 22%,#ffffff00 52%,#ffffff80 100%);
  --lg-sheen-tint:linear-gradient(160deg,#ffffff80 0%,#ffffff24 22%,#ffffff00 52%,#ffffff3d 100%);
  --lg-sheen-dark:linear-gradient(160deg,#ffffff1c 0%,#ffffff05 22%,#ffffff00 52%,#ffffff0d 100%);
  --lg-rim:inset 0 1px 0 #fffffff2,inset 0 0 0 1px #ffffffa6,inset 0 -1px 0 #1111110d;
  --lg-rim-tint:inset 0 1px 0 #ffffff99,inset 0 0 0 1px #ffffff40,inset 0 -1px 0 #1111111a;
  --lg-rim-dark:inset 0 1px 0 #ffffff66,inset 0 0 0 1px #ffffff24,inset 0 -1px 0 #ffffff1a;
  --lg-depth:0 22px 44px -28px #13131359,0 2px 6px #1313130f;
  --lg-depth-sm:0 10px 20px -14px #13131366,0 1px 3px #1313130f;
  --lg-blur:blur(22px) saturate(170%);
}
:root[data-theme=dark]{
  --lg-sheen:linear-gradient(160deg,#ffffff1f 0%,#ffffff08 22%,#ffffff00 52%,#ffffff0f 100%);
  --lg-sheen-tint:linear-gradient(160deg,#ffffff38 0%,#ffffff12 22%,#ffffff00 52%,#ffffff1f 100%);
  --lg-rim:inset 0 1px 0 #ffffff38,inset 0 0 0 1px #ffffff17,inset 0 -1px 0 #ffffff0d;
  --lg-rim-tint:inset 0 1px 0 #ffffff59,inset 0 0 0 1px #ffffff24,inset 0 -1px 0 #0000001f;
  --lg-depth:0 24px 48px -28px #000000d9,0 2px 6px #00000059;
  --lg-depth-sm:0 10px 20px -14px #000000cc,0 1px 3px #00000059;
}
/* Light and coloured tiles own their ink. Their text re-reads the tile's local tokens instead of inheriting the page colour,
   so values stay dark on yellow or light tiles in the dark theme. */
:is(.db-kpi,.db-link,.stat-card,.panel):is(.tile--sky,.tile--mint,.tile--coral,.tile--lemon,.tile--ocean),.tile--sky,.tile--mint,.tile--coral,.tile--lemon,.tile--ocean{color:var(--text)}
:is(.stats,.day-stats,.hr-stats,.careers-stats,.handover-stats)>.stat-card:first-child,.invoice-summary-grid>.invoice-summary:first-child{--text:#1e1e1e;--muted:#1e1e1ec2;--faint:#1e1e1eb3;--line:#1e1e1e1f;color:var(--text)}
:root[data-theme=dark] .db-kpi:not(.tile--ocean) .delta.is-good{background:#d5eee4;color:#22735c}
:root[data-theme=dark] .db-kpi:not(.tile--ocean) .delta.is-bad{background:#f8e1da;color:#b1412a}
@media screen{
  /* Containers carry sheen and depth only: no rim, so no white edge shows around coloured or light surfaces. */
  /* Panes: panels, filter bars and neutral cards */
  :root :is(.panel,.standalone-filter-bar,.prep-filters,.report-filter-panel,.handover-controls,.report-card,.transfer-steps,.set-avatar,.set-shop,.day-column){background-image:var(--lg-sheen)!important;box-shadow:var(--lg-depth)!important}
  :root .panel:has(table){border-color:transparent}
  /* Coloured tiles keep their own colour under a lighter sheen */
  :root :is(.stat-card,.db-kpi,.invoice-summary){background-image:var(--lg-sheen-tint)!important;box-shadow:var(--lg-depth)!important}
  /* Dark fills use the rail's sheen */
  :root :is(.db-kpi.tile--sky,.db-kpi.tile--ocean,.chart-panel){background-image:var(--lg-sheen-dark)!important;box-shadow:var(--lg-depth)!important}
  /* Segmented groups and neutral buttons */
  :root :is(.seg,.tabs,.subtabs,.recipe-layout-switch,.set-seg,.view-toggle){background-image:var(--lg-sheen);box-shadow:var(--lg-rim),var(--lg-depth-sm)}
  :root .btn:not(.primary):not(.dark):not(.ghost):not(.current):not([aria-pressed=true]):not(.invoice-delete-button):not(.solid),:root .ibtn:not([aria-expanded=true]),:root .pal__opt{background-image:var(--lg-sheen);box-shadow:var(--lg-rim),var(--lg-depth-sm)}
  /* Accent buttons */
  :root :is(.btn.primary,.dock-fab,.dock-rail .dock__new){background-image:var(--lg-sheen-tint)!important;box-shadow:var(--lg-rim-tint),var(--lg-depth-sm)!important}
  /* Dark pills and buttons */
  :root :is(.btn.dark,.btn.current,.btn[aria-pressed=true],.seg__pill,.subtabs__pill,.nav-tabs__pill,.db-period button[aria-pressed=true],.chip.active,.chip[aria-pressed=true],.ibtn[aria-expanded=true],.set-seg button[aria-pressed=true],.pg .pg-num,.av--lg,.toast,.chart-tooltip){background-image:var(--lg-sheen-dark)!important;box-shadow:var(--lg-rim-dark),var(--lg-depth-sm)!important}
  /* Floating layers: translucent body with real blur behind */
  :root :is(.location-popover,.hd-calendar,.item-search-options,.multi-select-popover,.notif-pop,.dock-search__results,.dock-search__loading){background-color:color-mix(in srgb,var(--float) 84%,transparent);background-image:var(--lg-sheen);box-shadow:var(--shadow-pop);-webkit-backdrop-filter:var(--lg-blur);backdrop-filter:var(--lg-blur)}
  :root .workspace:not(.rail-open) .dock__subs-card{background-color:color-mix(in srgb,var(--float) 84%,transparent);background-image:var(--lg-sheen);box-shadow:var(--shadow-pop);-webkit-backdrop-filter:var(--lg-blur);backdrop-filter:var(--lg-blur)}
  :root :is(.modal,.drawer .modal){background-image:var(--lg-sheen);box-shadow:var(--shadow-pop)}
  :root .overlay{-webkit-backdrop-filter:blur(8px) saturate(140%);backdrop-filter:blur(8px) saturate(140%)}
  /* Bottom dock (narrow layouts) matches the side rail */
  :root .dock-col:not(.dock-rail) .dock{background-image:var(--lg-sheen-dark);box-shadow:var(--lg-rim-dark),0 20px 40px -18px #13131380}
}

/* ---------- Items per page sits beside the filter bar as its own tile (desktop) ----------
   The bar keeps its DOM; its surface is drawn by a pseudo-element that stops short of the size control. */
:root{--bar-bg:#fff;--pp-w:92px;--pp-gap:12px}
:root[data-theme=dark]{--bar-bg:var(--glass)}
@media screen and (min-width:1081px){
  :root :is(.toolbar,.standalone-filter-bar,.prep-filters):has(>.pp-in-bar){position:relative;isolation:isolate;padding-right:0!important;background:none!important;box-shadow:none!important;-webkit-backdrop-filter:none;backdrop-filter:none}
  :root :is(.toolbar,.standalone-filter-bar,.prep-filters):has(>.pp-in-bar)::before{content:"";position:absolute;z-index:-1;inset:0 calc(var(--pp-w) + var(--pp-gap)) 0 0;border-radius:var(--r);background-color:var(--bar-bg);background-image:var(--lg-sheen);box-shadow:var(--lg-depth)}
  :root :is(.toolbar,.standalone-filter-bar,.prep-filters)>.pp-in-bar{align-self:stretch;justify-content:center;width:var(--pp-w);margin:-14px 0 -14px auto!important;border-radius:var(--r);background-color:var(--bar-bg);background-image:var(--lg-sheen);box-shadow:var(--lg-depth)}
  :root :is(.toolbar,.standalone-filter-bar,.prep-filters):has(>.pp-in-bar)>:nth-last-child(2){margin-right:calc(var(--pp-gap) + 6px)}
}

/* Detached pagination footers follow their panel like the grid footer follows the Suppliers grid. */
.pager-out{margin-top:24px}
.panel:has(+.pager-out){margin-bottom:0!important}

/* Items per page lives in the pagination footer, right after the range text. */
.pp-in-foot{margin:0 auto 0 4px!important}
.history-pagination>.lp-range:has(+.pp-in-foot){margin-right:0}
:is(.pagination,.history-pagination)>.pp-in-foot+.pages,.lp-ctrl>.pp-in-foot+.pages{margin-left:0}
.lp-ctrl{display:flex;align-items:center;gap:6px}
/* Plain footer select: no fill, and the number sits right beside its chevron. */
:root .pp-in-foot select:not([multiple]):not([size]){width:auto!important;min-width:0!important;padding:0 22px 0 6px!important;background-color:transparent!important;background-position:calc(100% - 2px) 50%!important;box-shadow:none!important;text-align:right;text-align-last:right;font-size:var(--fs-sm)!important;font-weight:500!important}
/* Page tabs that stay in the page (not lifted to the top bar): underline tabs on a hairline, as in the reference dashboard.
   Text only; the current tab is brighter and carries a 2px underline that slides between tabs. */
:root .tabs.page-tabs{display:flex;align-items:stretch;gap:4px;width:100%;max-width:none;height:auto;margin:0 0 18px;padding:0;border-radius:0;border-bottom:1px solid var(--line);background:none;background-image:none;box-shadow:none;overflow:visible}
:root .tabs.page-tabs .tab{position:relative;z-index:1;height:40px;min-height:40px;padding:0 12px;border-radius:0;background:none!important;color:var(--muted);font-size:var(--fs-md);font-weight:500;transition:color .2s}
:root .tabs.page-tabs .tab:hover{color:var(--text)}
:root .tabs.page-tabs .tab.active,:root .tabs.page-tabs .tab.active:hover{color:var(--text);font-weight:600}
:root .tabs.page-tabs .tab:focus-visible{outline:2px solid var(--focus);outline-offset:-2px;border-radius:8px}
:root .tabs.page-tabs .seg__pill{top:auto!important;bottom:-1px;height:2px!important;border-radius:2px;background:var(--text)!important;background-image:none!important;box-shadow:none!important}
:root .tabs.page-tabs:not(:has(.seg__pill.is-live)) .tab.active{box-shadow:inset 0 -2px 0 var(--text)}
/* Inventory value tab: total on the left, grouping switch on the right, then one row per supplier or storage area. */
.inventory-value .inventory-value-head{display:flex;flex-wrap:wrap;align-items:flex-end;justify-content:space-between;gap:16px;padding:20px 20px 16px}
.inventory-value .inventory-value-head>.seg{flex:none;margin:0 0 0 auto}
.inventory-value .inventory-value-label{font-size:var(--fs-sm);font-weight:600;color:var(--muted)}
.inventory-value .inventory-value-total{margin-top:6px;font-size:var(--fs-display);font-weight:600;letter-spacing:-.025em;line-height:1.05}
.inventory-value .inventory-value-note{margin-top:8px;max-width:64ch;font-size:var(--fs-xs);color:var(--faint)}
.inventory-value-table :is(th,td).num{text-align:right;white-space:nowrap}
.inventory-value-table td.num small{display:block;font-size:var(--fs-2xs);color:var(--faint);font-weight:500}
.inventory-value-table th:last-child,.inventory-value-table td:last-child{width:34%;min-width:200px}
.inventory-value-table tfoot td{border-top:1px solid var(--line-2);background:none}
.value-share{display:flex;align-items:center;gap:12px}
.value-share .report-bar-track{flex:1;height:8px;overflow:hidden}
.value-share .report-bar-track span{display:block;height:100%}
.value-share>span{flex:none;width:52px;text-align:right;font-size:var(--fs-sm);font-weight:600;color:var(--muted)}
/* A table ends without a rule: the last visible row (also when paging hides the rows after it) and the last footer row
   drop their bottom line, so no stray line sits on the panel's edge. */
tbody>tr:not([hidden]):not(:has(~ tr:not([hidden])))>td,tfoot>tr:last-child>td{border-bottom:0}

/* Dock footer: Settings and Help rows, then the signed-in person (not a button) */
.dock__foot{gap:2px}
.dock__foot .dock__me{min-width:0;margin-top:6px;cursor:default;pointer-events:none}
.rail-open .dock__foot .dock__me:hover{filter:none}
.workspace:not(.rail-open) .dock__foot .dock__me:hover{background:none}

/* Keep the bell and account card on the title's line, whatever sits under the title */
/* The gap above the top row matches the side gutter; the title drops 3px so its line centers on the 46px controls */
.workspace.has-rail{padding-top:var(--gut)}
.has-rail .topbar>.top-actions{align-self:start}
.has-rail .topbar>.top-title{align-self:start;padding-top:3px}

/* Overview's New activity in the top bar: always labelled, same height as the bell and account card */
.top-actions .page-heading .actions .overview-period-trigger{height:46px!important;min-height:46px}
.top-actions>.top-page-heading .actions:has(>.overview-period-trigger){gap:10px}
.top-actions>.btn.top-new{height:46px!important;min-height:46px;gap:8px;padding:0 18px 0 14px;white-space:nowrap}

/* List pages scroll with the page: no list scrolls inside its own panel, and the pager follows the last row. */

/* Page create buttons ("+ Add team member") stay expanded with their label on every page, at the height of the bell */
@media (min-width:761px){
 .page-heading .actions>.btn.primary.btn-expand{padding:0 18px 0 14px!important}
 .page-heading .actions>.btn.primary.btn-expand .btn-label{max-width:260px;margin-left:8px;opacity:1;transform:none}
 .page-heading .actions>.btn.primary.btn-expand:hover .icon,.page-heading .actions>.btn.primary.btn-expand:focus-visible .icon{transform:none}
 .top-actions>.top-page-heading .actions>.btn{height:46px!important;min-height:46px}
 .top-actions>.top-page-heading .actions>.btn.btn-icon-only{width:46px;min-width:46px}
 .top-actions>.top-page-heading .actions>.btn.btn-expand:not(.primary):not(:hover):not(:focus-visible){min-width:46px;padding:0 14px!important}
}

/* Summary cards on every page: short cards with the title on the left and the figures on the right, each label above its number */
@media (min-width:761px){
 .invoice-summary.panel{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:12px 20px}
 .invoice-summary h2{margin-bottom:0}
 .invoice-summary>div{display:flex;align-items:flex-start;justify-content:flex-end;gap:28px}
 .invoice-summary section,.invoice-summary section:last-child{display:flex;flex-direction:column;align-items:flex-end;gap:2px;text-align:right}
 .invoice-summary strong{font-size:var(--fs-3xl);line-height:1.1}
 :is(.stats,.day-stats,.hr-stats,.careers-stats,.handover-stats)>.stat-card:not(.waste-loss),.day-stats .stat-card,.hr-stats .stat-card{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;column-gap:16px;row-gap:2px;padding:12px 20px}
 :is(.stats,.day-stats,.hr-stats,.careers-stats,.handover-stats)>.stat-card:not(.waste-loss)>.stat-top{grid-column:1;grid-row:1/span 3;margin-bottom:0}
 :is(.stats,.day-stats,.hr-stats,.careers-stats,.handover-stats)>.stat-card:not(.waste-loss)>:not(.stat-top){grid-column:2;justify-self:end;text-align:right;margin-top:0}
 :is(.stats,.day-stats,.hr-stats,.careers-stats,.handover-stats)>.stat-card:not(.waste-loss)>.stat-value{font-size:var(--fs-3xl)}
 .hr-stats .stat-bottom{justify-content:flex-end}
}

/* Return link above a sub-page's title; the top bar controls drop by its height to stay on the title's line */
.top-title .supplier-back{margin:0 0 2px -8px;line-height:1}
.has-rail .topbar:has(.top-title .supplier-back)>.top-actions{margin-top:32px}

/* Outside Overview the location picker leads the top bar controls */
.top-actions--loc-first>.location-trigger{order:-1}

/* Overview: New Activity leads the top bar controls */
.top-actions>.btn.top-new{order:-1}

/* Food Cost dashboard: who is over the target, by how much, and what brings each one back */
.fc-dash{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));gap:16px}
.fc-dash>*{min-width:0}
.fc-distance{grid-column:span 12}
.fc-cats{grid-column:span 5}
.fc-fix{grid-column:span 7}
.fc-panel .panel-head{align-items:flex-start}
.fc-legend{display:inline-flex;align-items:center;gap:6px;color:var(--muted);font-size:var(--fs-xs);white-space:nowrap}
.fc-dot{width:10px;height:10px;border-radius:3px;margin-left:8px}
.fc-dot.is-above,.fc-fill.is-above{background:var(--down)}
.fc-dot.is-within,.fc-fill.is-within{background:var(--up)}
.fc-bars,.fc-fix-list{display:grid;gap:8px;padding:4px 20px 18px}
.fc-bar-row{display:grid;grid-template-columns:minmax(0,220px) minmax(0,1fr) 64px;align-items:center;gap:12px}
.fc-bar-row>.status,.fc-fix-row>.status{justify-self:end;font-variant-numeric:tabular-nums}
.fc-name{display:grid;gap:1px;min-width:0;padding:0;border:0;background:none;color:inherit;font:inherit;text-align:left;cursor:pointer}
.fc-name span{font-size:var(--fs-sm);font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.fc-name small{font-size:var(--fs-2xs);color:var(--faint);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.fc-name:hover span{text-decoration:underline}
.fc-name:focus-visible{outline:2px solid var(--focus);outline-offset:2px;border-radius:6px}
.fc-track{position:relative;height:14px;background:linear-gradient(var(--line-2),var(--line-2)) center/1px 100% no-repeat}
.fc-track .fc-fill{position:absolute;top:0;bottom:0}
.fc-track .fc-fill.is-above{left:50%;border-radius:0 4px 4px 0}
.fc-track .fc-fill.is-within{right:50%;border-radius:4px 0 0 4px}
.fc-track--from-zero{background:var(--well);border-radius:4px}
.fc-track--from-zero .fc-fill.is-above,.fc-track--from-zero .fc-fill.is-within{left:0;right:auto;border-radius:4px}
.fc-mark{position:absolute;top:-3px;bottom:-3px;width:1px;background:var(--text)}
.fc-cat-row{display:grid;grid-template-columns:minmax(0,140px) minmax(0,1fr) 52px;align-items:center;gap:12px;font-size:var(--fs-sm)}
.fc-cat{font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.fc-cat-row strong{text-align:right;font-variant-numeric:tabular-nums}
.fc-cat-row small{color:var(--faint);font-size:var(--fs-2xs);white-space:nowrap}
.fc-fix-row{display:grid;grid-template-columns:minmax(0,1fr) 68px minmax(150px,auto) 72px;align-items:center;gap:12px;padding-top:8px;border-top:1px solid var(--line)}
.fc-fix-row:first-child{padding-top:0;border-top:0}
.fc-price{display:inline-flex;align-items:center;gap:8px;color:var(--muted);font-size:var(--fs-sm);font-variant-numeric:tabular-nums}
.fc-price i{font-style:normal;color:var(--faint)}
.fc-price strong{color:var(--text)}
.fc-diff{text-align:right;font-weight:600;font-size:var(--fs-sm);font-variant-numeric:tabular-nums}
.fc-none,.fc-empty p{color:var(--muted);font-size:var(--fs-sm);padding:4px 0}
.fc-empty{padding:20px}
@media (max-width:1100px){.fc-distance,.fc-fix,.fc-cats{grid-column:span 12}}
@media (max-width:560px){.fc-bar-row{grid-template-columns:minmax(0,1fr) 64px}.fc-bar-row .fc-track{display:none}.fc-cat-row{grid-template-columns:minmax(0,1fr) 52px}.fc-cat-row .fc-track,.fc-cat-row small{display:none}.fc-fix-row{grid-template-columns:minmax(0,1fr) auto}.fc-fix-row .fc-price{grid-column:1/-1}}

/* Settings profile: save row under the editable name */
.set-actions{grid-column:1/-1;display:flex;align-items:center;justify-content:flex-end;gap:12px}
.set-error{margin:0;color:var(--down);font-size:var(--fs-sm)}
.set-error:empty{display:none}

/* One vertical rhythm on every page: 16px between the title and the first block, between blocks, and between cards and rows of cards. */
@media (min-width:761px){
 .workspace.has-rail>.topbar{margin-bottom:16px}
 .workspace.has-rail>#main>*{margin-top:0!important;margin-bottom:16px!important}
 .workspace.has-rail>#main>:last-child{margin-bottom:0!important}
 .workspace.has-rail>#main :is(.supplier-grid,.recipe-grid,.report-cards){gap:16px}
}

/* Phone country picker shows only the dialing code ("+1"); the native select text stays hidden under it in both themes */
.hr-phone-controls .hr-country-select select{color:transparent!important}

/* Supplier and recipe cards: the name sits directly on its detail line */
.workspace.has-rail>#main>:is(.supplier-grid,.recipe-grid)>* h3{margin-bottom:0}

/* Table text on every page: every value, its bold figure and the line under it read at 12px. Only the row's name
   (the first, linked column) keeps 13.5px, with its detail line (SKU, category) at 11px and muted. */
.table-wrap tbody td,.table-wrap tbody td :is(strong,small){font-size:12px}
.table-wrap tbody td small{color:var(--text-muted)}
.table-wrap tbody td :is(.table-name-button,.product-description,.product-description strong),.table-wrap tbody td.item-name>strong{font-size:13.5px;font-weight:600}
.table-wrap tbody td:is(:has(>.table-name-button),:has(>.product-description),.item-name) small{font-size:11px}

/* Supplier card options: ⋮ in the card's top-right corner, opening a short menu */
.supplier-card-head{align-items:center}
.supplier-card-tools{display:flex;align-items:center;gap:8px;margin-left:auto}
.supplier-card-menu-button{display:grid;place-items:center;width:32px;height:32px;margin-right:-8px;padding:0;border:0;border-radius:10px;background:transparent;color:var(--text-muted);cursor:pointer}
.supplier-card-menu-button:hover,.supplier-card-menu-button[aria-expanded=true]{background:var(--well);color:var(--text)}
.supplier-card-menu-button:focus-visible{outline:2px solid var(--focus);outline-offset:2px}
.supplier-card-menu-button .icon{width:18px;height:18px}
.supplier-card-options{display:grid;gap:2px;padding:6px;background:var(--float);border:0;box-shadow:var(--shadow-pop),inset 0 0 0 1px var(--line)}
.supplier-card-option{display:flex;align-items:center;gap:10px;width:100%;min-height:36px;padding:0 12px;border:0;border-radius:10px;background:transparent;color:var(--text);font:inherit;font-size:13px;font-weight:600;text-align:left;white-space:nowrap;cursor:pointer}
.supplier-card-option:hover,.supplier-card-option:focus-visible{background:var(--well);outline:none}
.supplier-card-option .icon{width:16px;height:16px;color:var(--text-muted)}
.status.recipe-version{background:var(--well);color:var(--text)}

/* Transfers board: "Show all" keeps the Completed column within the window and scrolls its cards inside it */
.board-cards{display:contents}
.board-column.is-expanded{display:flex;flex-direction:column}
.board-column.is-expanded .board-cards{display:block;max-height:max(280px,calc(100dvh - 330px));overflow-y:auto;overscroll-behavior:contain;margin:0 -6px;padding:2px 6px}
.board-column.is-expanded .board-more{flex:none}

/* Tables on every page: the last column is as wide as its content, so the spare width goes to the columns before it
   instead of leaving an empty band at the right edge. Tables with planned column widths (fixed layout) keep them. */
@media (min-width:761px){
 .table-wrap>table:not(.supplier-items-table) :is(th,td):last-child:not(:first-child){width:1%;white-space:nowrap}
 .table-wrap>table:not(.supplier-items-table) :is(th,td):last-child:not(:first-child) *{white-space:nowrap}
 .table-wrap>table:not(.supplier-items-table) td:last-child:not(:first-child) :is(.status,.btn){width:max-content;flex:none}
}

/* Item cells (name over "SKU · internal name"): the two lines sit together with no gap */
.table-wrap tbody td.item-name>strong{line-height:1.35}
.table-wrap tbody td.item-name>small{margin-top:0!important;line-height:1.35}

/* Item issue form (order receiving, transfers): a row of its own under the item, which stays in view; the fields sit side by side */
tr:is(.order-issue-editing,.transfer-issue-editing)>td{border-bottom:0}
tr.order-issue-row>td{padding-top:0!important;text-align:left;white-space:normal}
.order-issue-row .transfer-inline-issue{display:grid;grid-template-columns:minmax(140px,200px) minmax(0,1fr) auto;align-items:end;gap:6px 12px;max-width:none;margin:0;padding:14px 16px;border-radius:14px;background:var(--well)}
.order-issue-row .transfer-inline-issue:has(select){grid-template-columns:minmax(140px,200px) minmax(0,1fr) minmax(140px,180px) auto}
.order-issue-row .transfer-inline-issue>strong,.order-issue-row .transfer-inline-issue>p{grid-column:1/-1;margin:0}
.order-issue-row .transfer-inline-issue>p:empty{display:none}
.order-issue-row .transfer-inline-issue .field{margin-top:0}
/* One line, like a text field: no resize grip and no growing with long text */
.order-issue-row .transfer-inline-issue textarea{min-height:40px;height:40px!important;resize:none;overflow-y:auto;white-space:nowrap;overflow-x:hidden}
.order-issue-row .transfer-inline-issue-actions{margin-top:0;flex-wrap:nowrap}
.order-issue-row .transfer-inline-issue>.transfer-inline-issue-actions{grid-column:-2/-1;grid-row:2}
@media(max-width:760px){.order-issue-row .transfer-inline-issue,.order-issue-row .transfer-inline-issue:has(select){grid-template-columns:1fr}.order-issue-row .transfer-inline-issue>.transfer-inline-issue-actions{grid-column:auto;grid-row:auto;justify-content:flex-end}}

/* Quantity stepper (− value + unit), as in the kitchen display: round buttons, bold value, unit at the end */
.qty-stepper{display:flex;align-items:center;gap:8px;min-height:40px}
.qty-stepper__btn{display:grid;place-items:center;flex:none;width:40px;height:40px;padding:0;border:0;border-radius:50%;background:var(--well);color:var(--text);font:inherit;font-size:20px;font-weight:500;line-height:1;cursor:pointer}
.qty-stepper__btn:hover:not(:disabled){background:var(--line)}
.qty-stepper__btn:disabled{opacity:.4;cursor:default}
.qty-stepper__btn:focus-visible{outline:2px solid var(--focus);outline-offset:2px}
/* Specific enough to win over the shared field input rule, so the value reads as plain bold text */
.order-issue-row .transfer-inline-issue .field .qty-stepper input[type=number][min][max][step][required]{flex:0 1 56px;width:56px;min-width:0;height:40px;padding:0 4px;border:0!important;background:transparent!important;box-shadow:none!important;text-align:center;font-weight:700;font-size:14px;appearance:textfield;-moz-appearance:textfield}
.qty-stepper input::-webkit-inner-spin-button,.qty-stepper input::-webkit-outer-spin-button{appearance:none;margin:0}
.qty-stepper__unit{margin-left:4px;color:var(--text-muted);font-size:13px;font-weight:600;white-space:nowrap}
.order-issue-row .transfer-inline-issue{grid-template-columns:auto minmax(0,1fr) auto}
.order-issue-row .transfer-inline-issue:has(select){grid-template-columns:auto minmax(0,1fr) minmax(140px,180px) auto}
/* Not sent covers the whole quantity still to ship: shown as text where the order editor has its stepper. */
.order-issue-row .transfer-inline-issue .transfer-issue-qty{display:flex;align-items:center;min-height:40px;font-weight:600;white-space:nowrap}

/* Edit order: the quantity field is just wide enough for its number, centered */
.order-items-table td input[name=quantity][type=number][step]{width:72px!important;min-width:0;padding:0 8px!important;text-align:center}
/* Edit order: the notes field spans the full width of the window */
#order-edit-form label.field:has(#order-edit-notes){display:block;width:100%;max-width:none}
#order-edit-form #order-edit-notes{width:100%!important;max-width:none;margin-top:8px}
/* Edit order: the remove button fits its 42px column, so the item table never scrolls sideways */
/* The remove icon sits centered in a compact last column, and the value columns are only as wide as their content,
   so no empty band separates them from the icon; the spare width goes to the product description. */
:is(.order-edit-modal,#record-form) .order-items-table :is(td,th).order-remove-cell{width:56px!important;min-width:56px!important;max-width:56px!important;padding-left:3px!important;padding-right:3px!important;text-align:center}
:is(.order-edit-modal,#record-form) .order-items-table :is(td,th):first-child{width:100%!important;max-width:none!important}
:is(.order-edit-modal,#record-form) .order-items-table :is(td,th):not(:first-child):not(.order-remove-cell){width:1%;white-space:nowrap;padding-left:24px!important;padding-right:24px!important}
:is(.order-edit-modal,#record-form) .order-items-table td.order-remove-cell .order-remove-product{margin:0 auto}
/* Edit order: Order ID and Expected delivery share the first row */
@media (min-width:761px){
 #order-edit-form{display:grid;grid-template-columns:minmax(0,360px) minmax(0,360px) minmax(0,1fr);column-gap:24px;align-items:start}
 #order-edit-form>*{grid-column:1/-1}
 #order-edit-form>.field:nth-child(1){grid-column:1}
 #order-edit-form>.field:nth-child(2){grid-column:2;margin-top:0}
 /* Same label height as Order ID, so both labels and both controls line up */
 #order-edit-form>.field:nth-child(2)>label{display:block;height:auto;min-height:0;line-height:18px;margin:0}
}
/* Order items: the Ordered column is centered, title and value, in the order details and in Edit order */
.order-items-table :is(th,td).order-qty-cell{text-align:center}
.order-items-table td.order-qty-cell input{margin:0 auto;display:block}

/* Edit order and New order: "Add product" is the last row of the item table. A "+" and the action's name lead the search field,
   each result offers Add, products already in the order stay listed but muted, and added rows carry an "Added" tag. */
.order-edit-items-head{display:flex;align-items:baseline;justify-content:space-between;gap:12px;margin:0 0 10px}
.order-edit-items-head h3{margin:0;font-size:15px;font-weight:700}
.order-edit-items-head span{font-size:12px}
:is(.order-edit-modal #order-edit-lines,#record-form #form-lines) .table-wrap{border-bottom:0!important;border-radius:var(--r-sm) var(--r-sm) 0 0!important}
:is(.order-edit-modal .order-add-products,#record-form .order-add-products,.item-add-row){display:block;margin:0 0 22px;padding:10px 12px;border:1px solid var(--line);border-radius:0 0 var(--r-sm) var(--r-sm);background:var(--glass)}
/* New order with no items yet: the add row stands on its own under the empty state */
#record-form #form-lines:not(:has(.table-wrap))+.order-add-products{margin-top:12px;border-radius:var(--r-sm)}
:is(.order-edit-modal .order-add-products,#record-form .order-add-products,.item-add-row) .inline-item-host{width:100%}
:is(.order-edit-modal .order-add-products,#record-form .order-add-products,.item-add-row) .input-wrap{display:flex;align-items:center;gap:10px;min-height:40px;padding:0 14px;border:0!important;border-radius:999px;background:var(--glass-2)!important;box-shadow:inset 0 0 0 1px var(--line)!important}
/* Focus keeps the same hairline: the caret and the open results already show where the person is */
:is(.order-edit-modal .order-add-products,#record-form .order-add-products,.item-add-row) .input-wrap:focus-within{box-shadow:inset 0 0 0 1px var(--line)!important;outline:none!important}
:is(.order-edit-modal .order-add-products,#record-form .order-add-products,.item-add-row) .input-wrap .icon{position:static;flex:none;width:18px;height:18px;margin:0;color:var(--text);transform:none}
:is(.order-edit-modal .order-add-products,#record-form .order-add-products,.item-add-row) .input-wrap input{flex:1;min-width:0;padding:0!important;height:38px}
.item-search-lead{flex:none;font-size:13px;font-weight:700;color:var(--text);white-space:nowrap}
.item-search-options button[role=option]{display:flex;align-items:center;gap:12px;width:100%;text-align:left}
.item-search-options .item-search-text{flex:1;min-width:0;display:block}
.item-search-options .item-search-text>*{display:block}
.item-search-action{flex:none;padding:4px 10px;border-radius:999px;box-shadow:inset 0 0 0 1px var(--line);font-size:12px;font-weight:600;color:var(--text);white-space:nowrap}
.item-search-note{flex:none;font-size:12px;color:var(--text-muted);white-space:nowrap}
.item-search-options button[aria-disabled=true]{cursor:default;color:var(--text-muted)}
.item-search-options button[aria-disabled=true] strong{color:var(--text-muted);font-weight:500}
.item-search-options button[aria-disabled=true]:hover{background:transparent}
/* Sits on the same line, right after the product's name */
.order-line-added-tag{display:inline-block;margin-left:8px;font-size:11px;font-weight:600;color:var(--up);vertical-align:1px;white-space:nowrap}

/* The same "Add item" row under the item lists of New transfer, Edit recipe and New recipe. These lists are stacked rows
   rather than a table, so the row is a card of its own with the theme's radius. */
.item-add-row{margin:12px 0 0!important;border-radius:var(--r-sm)!important;justify-content:stretch}
.recipe-add-bar.item-add-row{display:block}
.recipe-add-bar.item-add-row[hidden]{display:none}
.recipe-edit-item .order-line-added-tag{vertical-align:1px}
/* The field inside an add row never draws its own box, at rest or focused; the row's hairline is the only outline */
:is(.order-add-products,.item-add-row) .inline-item-search .input-wrap input[type=search][role=combobox][aria-autocomplete][autocomplete][placeholder][aria-controls][aria-expanded][aria-label],
:is(.order-add-products,.item-add-row) .inline-item-search .input-wrap input:is(:focus,:focus-visible)[type=search][role=combobox][aria-autocomplete][autocomplete][placeholder][aria-controls]{box-shadow:none!important;outline:none!important;background:transparent!important}

/* Section title with its action on the right (Order items + Edit order) */
.operation-section-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px}
.operation-section-head>h3{margin:0;font-size:14px;letter-spacing:-.2px}
/* The section's action is a small plain text button: no pill, no shadow, no hover effect */
/* Its right edge lines up with the row actions inside the table (the table's 11px inner edge) */
.operation-section-head>.btn{flex:none;height:28px!important;min-height:0!important;gap:6px;padding:0!important;margin:0 11px 0 0;font-size:12px;background:transparent!important;box-shadow:none!important;border:0!important;transform:none!important}
.operation-section-head>.btn:is(:hover,:active){background:transparent!important;box-shadow:none!important;transform:none!important}
.operation-section-head>.btn .icon{width:14px;height:14px}

/* Detail facts in every modal read as plain label/value pairs, with no boxes; hairlines above and below set them apart.
   Order details arrange them in explicit rows (.detail-strip); the other modals flow them four to a row (.detail-grid). */
.detail-strip{display:grid;gap:14px}
:is(.detail-strip,.modal .detail-grid){margin:14px 0 20px;padding:14px 0;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}
:is(.detail-strip-row,.modal .detail-grid){display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px 24px}
:is(.detail-strip,.modal .detail-grid) .detail-pair{padding:0!important;border:0!important;border-radius:0!important;background:none!important;box-shadow:none!important;min-width:0}
:is(.detail-strip,.modal .detail-grid) .detail-pair>small{display:block;margin-bottom:0;font-size:12px;color:var(--text-muted)}
:is(.detail-strip,.modal .detail-grid) .detail-pair>strong{display:block;margin-top:2px;font-size:13.5px;font-weight:600;line-height:1.45;overflow-wrap:anywhere}
:is(.detail-strip,.modal .detail-grid) .detail-pair>strong .muted{font-weight:500;color:var(--text-muted)}
@media (max-width:760px){:is(.detail-strip-row,.modal .detail-grid){grid-template-columns:repeat(2,minmax(0,1fr))}}

/* Foot of the order's item table: item count and estimated total, right-aligned under the row actions */
.order-items-summary{display:flex;justify-content:flex-end;align-items:baseline;gap:28px;margin:12px 11px 0 0;font-size:12px;color:var(--text-muted)}
.order-items-summary strong{margin-left:6px;font-size:13.5px;font-weight:600;color:var(--text)}
.order-items-summary strong .muted{font-weight:500}

/* Invoice items: the last column (Total) keeps a comfortable 20px from the table's edge, and the amounts under the table end on the same line */
.invoice-detail-modal .order-items-table :is(th,td):last-child{padding-right:20px!important}
.invoice-detail-modal .order-items-summary{margin-right:20px;flex-wrap:wrap;row-gap:6px}

/* Hidden footer buttons (a redundant Close) take no space */
.modal-foot [hidden]{display:none!important}
/* Several actions (an invoice with more than one document) sit side by side on the right; in invoice details they end
   on the same line as the Total column */
.operation-section-head>h3{margin-right:auto}
.operation-section-head>.btn+.btn{margin-left:16px}
.invoice-detail-modal .operation-section-head>.btn:last-child{margin-right:20px}
.invoice-detail-modal .operation-section-head>.btn:not(:last-child){margin-right:0}

/* Keep receiving issue forms within the viewport when their item table scrolls. */
@media(max-width:760px){
 .order-issue-row .transfer-inline-issue,.order-issue-row .transfer-inline-issue:has(select){grid-template-columns:minmax(0,1fr);width:calc(100vw - 56px);max-width:100%;box-sizing:border-box}
 .order-issue-row .transfer-inline-issue>.transfer-inline-issue-actions{grid-column:auto;grid-row:auto;flex-wrap:wrap}
}

/* Dispatch issues still expand inside the item cell, unlike receiving issue rows. */
.operation-table-rows tr.transfer-issue-editing:has([data-transfer-issue-editor])>td:first-child{width:auto;text-align:left}
.operation-table-rows tr.transfer-issue-editing:has([data-transfer-issue-editor])>td:not(:first-child){display:none}
/* Running release: the window's footer, aligned right. It follows #main (not inside it) so list pages that fit the window
   keep their pager last; short pages push it to the bottom of the window, long pages leave it after their content. */
.workspace:has(>.app-credit){display:flex;flex-direction:column}
.workspace:has(>.app-credit)>#main{flex:1 0 auto;min-width:0}
.app-credit{flex:none;display:grid;grid-template-columns:1fr auto 1fr;align-items:center;margin:16px 0 0;padding:0 20px;color:var(--text-muted);font-size:var(--fs-xs);line-height:1.5}
.app-credit__copy{grid-column:2}
@media print{.app-credit{display:none}}
/* The Add item row belongs to the Ingredients and Packaging tabs only; its own display rule must not undo [hidden]. */
.recipe-add-bar[hidden]{display:none!important}
/* Fields in every window share one shape: single-line inputs are pills like the selects beside them, numbers are
   centered, and select text starts at the left. Multi-line text keeps the 12px corners; inputs that live inside a
   pill of their own (search boxes, steppers) are unaffected because they draw no border or background. */
#overlay-root .modal :is(input:not([type=checkbox],[type=radio],[type=file],[type=hidden],[type=range],[type=color]),select:not([multiple]):not([size]),.ms-trigger){border-radius:999px!important}
#overlay-root .modal input[type=number]{text-align:center}
#overlay-root .modal select:not([multiple]):not([size]){text-align:left;text-align-last:left}
/* Transfer stages: a badge on each stage icon counts the items at that stage. The group title is hidden when it is
   the only group, and the marking instructions stay available to assistive technology only. */
.transfer-step__icon{position:relative}
.transfer-step__count{position:absolute;top:-7px;right:-9px;min-width:18px;height:18px;padding:0 5px;display:grid;place-items:center;border-radius:999px;background:var(--accent);color:#121212;font-size:10.5px;font-weight:700;line-height:1;box-shadow:0 0 0 2px var(--float)}
.transfer-shipment-groups>.transfer-shipment-group:only-child>.transfer-shipment-group-head{display:none}
.transfer-shipment-group>.transfer-action-hints{position:absolute;width:1px;height:1px;margin:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
/* Transfer window footer: Cancel transfer is a red button beside the stage action, at the right. */
#overlay-root .transfer-detail-modal .modal-foot .btn.transfer-cancel-button{margin-right:0;background:var(--danger)!important;color:#fff!important;border-color:transparent!important;box-shadow:none!important}
#overlay-root .transfer-detail-modal .modal-foot .btn.transfer-cancel-button:hover{background:color-mix(in srgb,var(--danger) 86%,#000)!important}
:root[data-theme=dark] #overlay-root .transfer-detail-modal .modal-foot .btn.transfer-cancel-button{color:#121212!important}
/* Transfer steps animate when the window opens: each stage pops in turn, the line between stages draws up to the
   current one, and the current stage keeps a soft pulse. Reduced motion shows the final state at once. */
@media(prefers-reduced-motion:no-preference){
 @keyframes transfer-step-in{from{opacity:0;transform:scale(.6) translateY(6px)}60%{opacity:1;transform:scale(1.08)}to{opacity:1;transform:none}}
 @keyframes transfer-line-draw{from{transform:scaleX(0)}to{transform:scaleX(1)}}
 @keyframes transfer-step-pulse{0%,100%{box-shadow:0 0 0 0 color-mix(in srgb,var(--pill) 34%,transparent)}50%{box-shadow:0 0 0 7px transparent}}
 @keyframes transfer-count-in{from{opacity:0;transform:scale(0)}70%{transform:scale(1.2)}to{opacity:1;transform:none}}
 .transfer-detail-modal .transfer-step .transfer-step__icon{animation:transfer-step-in .45s cubic-bezier(.34,1.56,.64,1) both}
 .transfer-detail-modal .transfer-step .transfer-step__label{animation:transfer-step-in .4s ease-out both}
 .transfer-detail-modal .transfer-step+.transfer-step::before{transform-origin:left center;animation:transfer-line-draw .4s ease-out both}
 .transfer-detail-modal .transfer-step:nth-child(1) :is(.transfer-step__icon,.transfer-step__label){animation-delay:.12s}
 .transfer-detail-modal .transfer-step:nth-child(2) :is(.transfer-step__icon,.transfer-step__label){animation-delay:.47s}
 .transfer-detail-modal .transfer-step:nth-child(3) :is(.transfer-step__icon,.transfer-step__label){animation-delay:.82s}
 .transfer-detail-modal .transfer-step:nth-child(4) :is(.transfer-step__icon,.transfer-step__label){animation-delay:1.17s}
 .transfer-detail-modal .transfer-step:nth-child(2)::before{animation-delay:.27s}
 .transfer-detail-modal .transfer-step:nth-child(3)::before{animation-delay:.62s}
 .transfer-detail-modal .transfer-step:nth-child(4)::before{animation-delay:.97s}
 .transfer-detail-modal .transfer-step.is-current .transfer-step__icon{animation:transfer-step-in .45s cubic-bezier(.34,1.56,.64,1) both,transfer-step-pulse 2.2s ease-in-out 1.7s infinite}
 .transfer-detail-modal .transfer-step__count{animation:transfer-count-in .35s cubic-bezier(.34,1.56,.64,1) 1.5s both}
}
/* Every window has one background: detail and item windows no longer tint their body differently from the title
   and footer. */
.operation-modal .modal-body,.catalog-item-modal .modal-body{background:transparent}
/* With its title hidden, a lone transfer group's table sits right under the Items heading. */
.transfer-shipment-groups>.transfer-shipment-group:only-child>.table-wrap{margin-top:0}
/* A detail value's secondary line (for example a storage area under its location): regular weight, muted. */
.detail-pair>.detail-pair-sub{display:block;margin-top:2px;font-size:12.5px;font-weight:400;color:var(--muted)}
/* Supplier cards: no initials badge; the name and categories lead the card, beside its options. */
.supplier-card .supplier-card-head:has(>.supplier-card-title){align-items:flex-start;gap:12px;margin-bottom:0}
.supplier-card .supplier-card-head:has(>.supplier-card-title)>.supplier-card-tools{margin-top:-6px;margin-right:-6px}
.supplier-card-title{flex:1 1 auto;min-width:0}
.supplier-card-title>h3{margin:0;overflow-wrap:anywhere}
.supplier-card-title>p{margin:4px 0 0}
.supplier-list .supplier-card-title{grid-column:1/3;grid-row:1}
/* Overview filters under the greeting, above the KPI cards: period bar (This Week / Last Week / 4 Weeks / Custom) and Locations. */
#main>.overview-filters{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:10px;margin:-8px 0 16px}
.overview-filters>.location-trigger{height:46px}
.overview-filters>.tabs.overview-period{display:flex;align-items:center;gap:2px;width:max-content;max-width:100%;height:46px;margin:0;padding:4px;border-radius:999px;background:#fff;box-shadow:inset 0 0 0 1px var(--rim);overflow-x:auto;scrollbar-width:none}
:root[data-theme=dark] .overview-filters>.tabs.overview-period{background:var(--glass)}
.tabs.overview-period .tab{height:38px;min-height:38px;padding:0 14px;border-radius:999px;font-size:13.5px;font-weight:600;white-space:nowrap}
/* Overview: New Activity closes the filter row on the right, under the notifications button. */
/* Overview: Locations and New Activity sit in the top bar, left of notifications; the period tabs are centered below. */
.top-actions>.btn.top-new{height:46px!important;min-height:46px;gap:8px;padding:0 18px 0 14px;white-space:nowrap}
/* Search field at the top of long checkbox dropdowns (storage areas). */
.ms-panel>.ms-search{position:sticky;top:-6px;z-index:1;display:block;margin:-6px -6px 6px;padding:6px;background:inherit}
.ms-panel>.ms-search>.search-clear-wrapper{width:100%}
.ms-panel>.ms-search input{width:100%;height:36px;padding:0 14px;border:0;border-radius:999px;background:var(--surface-2,#f4f4f2);box-shadow:inset 0 0 0 1px var(--rim);font:inherit;font-size:13px}
.ms-panel>.ms-option[hidden]{display:none!important}
#count-detail-items tr[hidden]{display:none!important}
/* Receive order: the selected items in the same table layout as Order items. */
#receipt-form .receipt-meta{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:0 0 14px}
#receipt-form .receipt-meta>.field{margin:0}
#overlay-root .modal #receipt-form .receipt-meta input[readonly]{color:var(--muted);pointer-events:none}
@media (max-width:640px){#receipt-form .receipt-meta{grid-template-columns:1fr}}
.receipt-items-table td{vertical-align:middle}
.receipt-items-table td.item-name strong{display:block}
.receipt-items-table td.item-name small{display:block;margin-top:2px;color:var(--muted)}
/* Storage area: as wide as its longest option. */
#overlay-root .modal .receipt-items-table select{width:auto!important;min-width:0!important;max-width:100%;text-align:left!important}
.receipt-items-table th:nth-child(2),.receipt-items-table td:nth-child(2){text-align:center}
/* Mark all received / Clear all keeps the plain header-button look in both states. */
.operation-section-head .btn.order-mark-all,.operation-section-head .btn.order-mark-all[aria-pressed=true]{color:var(--text)!important;background:transparent!important;box-shadow:none!important}
.order-items-table :is(th,td).order-total-cell,.order-items-table :is(th,td).order-receiving-cell{text-align:center}
.order-items-table td.order-receiving-cell .transfer-line-actions{justify-content:center}
/* Order items: every column after Item is centered (header and values). */
.order-items-table:not(.receipt-items-table) thead th:not(.inventory-photo-column):not(.has-table-control):not([aria-sort]):not(.item-name),.order-items-table:not(.receipt-items-table) tbody td:not(.inventory-photo-column):not(.item-name){text-align:center}
/* Units, amounts and dates keep whole words as columns narrow; the table scrolls instead of splitting them. */
.order-items-table:not(.receipt-items-table) :is(th,td):not(.inventory-photo-column):not(.item-name){overflow-wrap:normal;word-break:normal}
/* Item totals under a table: stacked, right-aligned. */
.order-items-summary{flex-direction:column!important;align-items:flex-end!important;gap:6px!important}
/* Receive order window: the items section sits right under the receipt fields. */
#receipt-window>.operation-section.receipt-items{margin-top:18px}
/* Order and invoice windows: Delete is a black icon button at the left end of the footer. */
#overlay-root .modal-foot .btn.order-delete-button{margin-right:auto;background:var(--pill)!important;color:var(--on-pill)!important;border-color:transparent!important;box-shadow:none!important}
#overlay-root .modal-foot .btn.order-delete-button:hover{background:color-mix(in srgb,var(--pill) 84%,var(--primary))!important}
/* Its tooltip opens to the right, so it is not cut by the window's left edge. */
#overlay-root .modal-foot .btn.order-delete-button[data-tip]::after{left:0;transform:translate(0,4px)}
#overlay-root .modal-foot .btn.order-delete-button[data-tip]:is(:hover,:focus-visible)::after{transform:translate(0,0)}
/* Purchase order header: supplier and ship-to on the left, order total on the right, above the dates strip. */
/* Same four columns as the dates strip below, so Supplier, Ship to and the total line up with its fields. */
.order-header{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px 24px;align-items:start;padding:2px 0 0}
.order-header-parties{display:contents}
.order-header-party>small,.order-header-total>small{display:block;font-size:12px;color:var(--text-muted)}
.order-header-party>strong{display:block;margin-top:2px;font-size:18px;font-weight:600;line-height:1.3;letter-spacing:-.2px;overflow-wrap:anywhere}
.order-header-total{text-align:left}
.order-header-parties+.order-header-total{grid-column:3}
.order-header-total>strong{display:block;margin-top:2px;font-size:22px;font-weight:700;line-height:1.2;letter-spacing:-.3px;font-variant-numeric:tabular-nums}
.order-header+.detail-strip{margin-top:16px}
@media (max-width:760px){.order-header{grid-template-columns:repeat(2,minmax(0,1fr))}.order-header-total{grid-column:auto!important;text-align:left}}
#overlay-root .modal-foot .btn.order-delete-button{flex:0 0 40px!important;width:40px!important}
/* Order header: both rows share one grid (subgrid), spread across the full width; each column is as wide as its
   longest field and all four share the spare width evenly, so the last column keeps room beside the right edge,
   without relying on justify-content over a subgrid. */
.order-summary-grid{display:grid;grid-template-columns:repeat(4,minmax(max-content,1fr));column-gap:24px}
.order-summary-grid>.order-header,.order-summary-grid>.detail-strip,.order-summary-grid>.detail-strip>.detail-strip-row{grid-column:1/-1;grid-template-columns:subgrid!important;column-gap:inherit}
.order-summary-grid>.detail-strip{display:grid}
@media (max-width:760px){.order-summary-grid{grid-template-columns:repeat(2,minmax(0,1fr));justify-content:stretch}}
/* All four header values share one size and line, so labels and values line up across the row. */
.order-header-party>strong,.order-header-total>strong{margin-top:2px;font-size:16px;font-weight:700;line-height:22px;letter-spacing:-.1px}
.order-items-table :is(th,td).inventory-photo-column{text-align:center}
.order-items-table td.inventory-photo-column>.inventory-photo{margin-inline:auto}
.detail-pair>strong>.detail-pair-sub{display:block;margin-top:2px;font-size:12.5px;font-weight:400;color:var(--muted)}
/* A status tag in the details lines up with the plain values beside it. */
.detail-strip .detail-pair>strong>.status{margin:-2px 0;position:relative;top:-1px}
/* Search bars sized to the first column of the table they filter (set by alignSearchToTables). */
.standalone-filter-bar>.input-wrap.search-matches-table{max-width:100%;min-width:0}
.standalone-filter-bar>.input-wrap.search-matches-table>input{field-sizing:fixed;flex:1 1 auto;min-width:0!important;max-width:none;width:auto!important}
/* Form standard: in form grids every input and select fills its column, so fields line up with no gaps beside them. */
:is(.form-grid,.recipe-edit-controls)>.field>:is(input:not([type=checkbox]):not([type=radio]),select){width:100%!important;max-width:100%}
/* Order and invoice windows: the summary header (supplier, totals, dates, status) stays at the top while the items scroll, like the recipe window heading. */
.operation-modal .modal-body>.order-summary-grid{position:sticky;top:-16px;z-index:6;margin:-16px -22px 0;padding:16px 22px 0;background:var(--float)}
.operation-modal .modal-body>.order-summary-grid>.detail-strip{margin-bottom:0}
.operation-modal .modal-body>.order-summary-grid+*{margin-top:20px}
@media (max-width:700px),(max-height:640px){.operation-modal .modal-body>.order-summary-grid{position:static}}
/* Order window, Linked invoices: every column after Note is centered (header and values). */
.linked-invoices-table :is(th,td):not(:first-child){text-align:center!important}
/* Receive order: Received on and Location are read-only values, shown like "Counted by" in a new count (grey fill,
   muted text, no border) and only as wide as their text. */
#receipt-form .receipt-meta{display:flex;flex-wrap:wrap;align-items:flex-end}
#receipt-form .receipt-meta>.field{flex:none}
#receipt-form .receipt-meta>.receipt-receiver{flex:0 0 320px;width:320px;max-width:100%}
#overlay-root .modal #receipt-form .receipt-meta input[readonly]{field-sizing:content;width:auto!important;min-width:0;padding:0 14px;text-align:left!important;border:0!important;border-radius:999px!important;background:var(--gray-97)!important;color:var(--text-muted)!important;box-shadow:none!important;font-weight:400}
/* Receive order: the Storage area column appears once at least one item is checked as received; until then To
   receive and Unit sit next to Receiving, and checking an item moves them left to reveal the column. */
.receipt-items-table:not(:has(tr[data-stock])) :is(th,td):nth-child(4){display:none}
/* Transfers history: the Transfer column is wide enough for the search bar that follows its width. */
.transfer-history-table th:first-child{width:24%;min-width:220px}
/* The Item column takes the spare width, so the other columns sit together on the right. */
.receipt-items-table th:first-child{width:100%}
.receipt-items-table :is(th,td):not(:first-child){white-space:nowrap}
/* Received on and Location sit together at the right edge, Received by stays on the left. */
#receipt-form .receipt-meta>.receipt-receiver+.field{margin-left:auto}
.linked-invoices-table .table-name-button{font-size:12px}

/* Receive order: a reported issue sits under the item name, and the item's issue button stays marked in yellow. */
.receipt-items-table td.item-name .transfer-line-progress{display:block;margin-top:3px;text-align:left}
.receipt-items-table td.item-name .transfer-line-progress.not-sent{color:var(--red)}
.receipt-items-table .transfer-line-issue.has-issue{background:var(--accent);color:var(--accent-ink);box-shadow:none}

/* Order window: receiving notes (issues, blocked reasons, credits) sit under the item name, left-aligned. */
.order-items-table td.item-name .transfer-line-progress{display:block;margin-top:3px;text-align:left}
.order-items-table td.item-name .transfer-line-progress.not-sent{color:var(--red)}

/* Receive order: issues already recorded on the order, muted, so they are not reported twice. */
.receipt-items-table td.item-name .receipt-issue-earlier{display:block;margin-top:3px;color:var(--muted)}
#overlay-root .modal .receipt-items-table select[hidden]{display:none!important}
/* Order window: print and duplicate sit with the delete button on the left of the footer. */
#overlay-root .modal-foot .btn.order-delete-button:has(~ .order-tool-button){margin-right:0}
#overlay-root .modal-foot .btn.order-tool-button{flex:0 0 40px!important;width:40px!important}
#overlay-root .modal-foot .btn.order-tool-button:not(:has(~ .order-tool-button)){margin-right:auto}
#overlay-root .modal-foot .btn.order-tool-button[data-tip]::after{left:0;transform:translate(0,4px)}
#overlay-root .modal-foot .btn.order-tool-button[data-tip]:is(:hover,:focus-visible)::after{transform:translate(0,0)}
/* Summary cards (orders and invoices): the whole card applies its filter; the title button stretches over it. */
.invoice-summary.panel:has(.invoice-summary-filter){position:relative;cursor:pointer}
.invoice-summary .invoice-summary-filter::after{content:"";position:absolute;inset:0;border-radius:inherit}
.invoice-summary .invoice-summary-filter:focus-visible{outline:none}
.invoice-summary.panel:has(.invoice-summary-filter:focus-visible){outline:2px solid var(--primary);outline-offset:2px}
.invoice-summary.panel:has(.invoice-summary-filter[aria-pressed="true"]){box-shadow:inset 0 0 0 2px var(--pill)}
/* Editable photo boxes follow the recipe photo box: the box is not a button, its controls sit inside it. */
.catalog-edit-heading>.inventory-photo.recipe-photo-frame{cursor:default}
.item-photo>.inventory-photo.recipe-photo-frame{width:100px;height:100px;flex:0 0 100px;overflow:hidden;border-radius:10px;background:var(--gray-96)}
.item-photo>.inventory-photo.recipe-photo-frame img{width:100%;height:100%;object-fit:cover}
/* Invoice review: the catalog match lives inside the SKU / Item field (suggestions under it, then a chip). */
.invoice-review-description{position:relative}
.invoice-review-description .invoice-catalog-options{position:absolute;left:0;right:0;top:calc(100% - 2px);z-index:30;max-height:260px;overflow:auto;padding:6px}
.invoice-review-description .invoice-catalog-options[hidden]{display:none}
.invoice-review-description .invoice-catalog-options button[role=option]{padding:8px 10px;border:0;border-radius:10px;background:none;color:inherit;font:inherit;cursor:pointer}
.invoice-review-description .invoice-catalog-options button[role=option]:is(:hover,[aria-selected=true]){background:var(--glass-3)}
.invoice-review-description .invoice-catalog-options small{color:var(--muted)}
.invoice-review-description .invoice-catalog-options p{margin:8px 10px;color:var(--muted)}
.invoice-catalog-chip{display:inline-flex;align-items:center;gap:6px;margin-top:6px;padding:3px 4px 3px 10px;border-radius:999px;background:var(--glass-3);font-size:12px;color:var(--muted)}
.invoice-catalog-chip strong{color:var(--text);font-weight:600}
.invoice-catalog-chip button{display:grid;place-items:center;width:20px;height:20px;padding:0;border:0;border-radius:999px;background:none;color:inherit;font-size:15px;line-height:1;cursor:pointer}
.invoice-catalog-chip button:hover{background:var(--pill);color:var(--on-pill)}
/* Supplier cards: four to a row on wide screens (list view and narrower screens keep their own columns). */
@media (min-width:1201px){.supplier-grid:not(.supplier-list){grid-template-columns:repeat(4,minmax(0,1fr))}}
/* Indicator strip (Orders, Invoices): one panel, figures side by side as filter buttons, a thin split bar below. */
.summary-strip.panel{padding:6px;margin-bottom:16px}
.summary-strip__items{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:4px}
.summary-strip__item{display:flex;flex-direction:column;align-items:flex-start;gap:2px;min-width:0;padding:12px 16px;border:0;border-radius:calc(var(--r) - 6px);background:none;color:var(--text);font:inherit;text-align:left;cursor:pointer;transition:background-color .2s}
button.summary-strip__item:hover{background:var(--well)}
.summary-strip__item[aria-pressed=true]{background:var(--well)}
.summary-strip__item:focus-visible{outline:2px solid var(--primary);outline-offset:-2px}
.summary-strip__label{display:flex;align-items:center;gap:8px;font-size:var(--fs-sm);font-weight:600;color:var(--muted)}
.summary-strip__dot{width:8px;height:8px;border-radius:50%;background:var(--up);flex:none}
.summary-strip__item strong{font-size:var(--fs-3xl);font-weight:600;letter-spacing:-.025em;line-height:1.2;font-variant-numeric:tabular-nums;white-space:nowrap}
.summary-strip__item small{font-size:var(--fs-sm);color:var(--text-muted)}
.summary-strip__item.is-warn .summary-strip__dot{background:var(--warn)}
.summary-strip__item.is-idle .summary-strip__dot{background:var(--text-muted)}
.summary-strip__item.is-bad .summary-strip__dot{background:var(--down)}
.summary-strip__item.is-bad :is(.summary-strip__label,strong){color:var(--down)}
.summary-strip__bar{display:flex;gap:2px;height:6px;margin:6px 16px 10px;border-radius:999px;overflow:hidden}
.summary-strip__bar>span{min-width:3px;background:var(--up)}
.summary-strip__bar>.is-idle{background:var(--text-muted)}.summary-strip__bar>.is-warn{background:var(--warn)}.summary-strip__bar>.is-bad{background:var(--down)}
.summary-strip.loading-panel .summary-strip__item{gap:10px;cursor:default}
@media (max-width:760px){.summary-strip__items{grid-template-columns:repeat(2,minmax(0,1fr))}.summary-strip__item{padding:10px 12px}.summary-strip__item strong{font-size:var(--fs-2xl,20px)}}
/* Transfer rows on the road: a neutral tag; Record receipt opens the window where they are checked. */
.transfer-line-badge:not(.shipped):not(.not-sent){background:var(--well);color:var(--muted)}
/* Price updates: Previous, New price and Change are centered, title over value. */
.price-updates-table :is(th,td):nth-child(n+4):nth-child(-n+6){text-align:center}
.price-updates-table th:nth-child(6) .catalog-sort{margin-inline:auto;justify-content:center}

/* ---- Fluid-interface pass (Apple's interface guidance, adapted to this project's own look) ---- */
/* Response: controls answer on press, not on release, and touch devices skip the tap delay. */
:is(.btn,.ibtn,.icon-btn,.dock__btn,.summary-strip__item):not(:disabled):active{transform:scale(.97);transition:transform .1s ease-out}
:is(button,a,summary,select,label,[role=button]){-webkit-tap-highlight-color:transparent;touch-action:manipulation}
/* Behaviour: windows and toasts settle without overshoot; bounce is kept for motion that follows a gesture. */
.modal{animation-duration:.4s;animation-timing-function:var(--ease-out)}
.toast{animation-duration:.4s;animation-timing-function:var(--ease-out)}
/* Spatial consistency: popovers grow out of the control that opened them. */
:is(.location-popover,.hd-calendar,.multi-select-popover){transform-origin:top left;animation:popover-in .18s var(--ease-out)}
.notif-pop{transform-origin:top right}
@keyframes popover-in{from{opacity:0;transform:scale(.96)}to{opacity:1;transform:none}}
@keyframes quiet-fade{from{opacity:0}to{opacity:1}}
/* Reduced motion: entrances become a short fade, with no slide, scale or press movement. Colour and opacity changes stay. */
@media (prefers-reduced-motion:reduce){
 :is(.modal,.drawer .modal,.toast,.notif-pop,.location-popover,.hd-calendar,.multi-select-popover,.dock-search__bar){animation:quiet-fade .2s ease both!important}
 .main.is-entering :is(.page-title .ch,.panel,.stat-card,.db-kpi,.invoice-summary,.summary-strip,.recipe-card,.supplier-card,.report-card,.day-card,.task-card){animation:quiet-fade .2s ease both!important}
 :is(.btn,.ibtn,.icon-btn,.dock__btn,.summary-strip__item):active{transform:none}
 .transfer-detail-modal .transfer-step *{animation:none!important}
 html{scroll-behavior:auto}
}
/* Reduced transparency: glass surfaces turn solid and lose their blur. */
@media (prefers-reduced-transparency:reduce){
 :root:root:root{--glass:#f6f6f5;--glass-2:#fafaf9;--glass-3:#ffffff;--surface-2:#ffffff}
 :root:root:root[data-theme=dark]{--glass:#151515;--glass-2:#1b1b1b;--glass-3:#202020;--surface-2:#1b1b1b}
 *,*::before,*::after{-webkit-backdrop-filter:none!important;backdrop-filter:none!important}
}
/* More contrast: firmer hairlines and full-strength secondary text. */
@media (prefers-contrast:more){
 :root:root:root{--line:#11111159;--line-2:#11111199;--muted:var(--text);--text-muted:var(--text);--faint:var(--text)}
 :root:root:root[data-theme=dark]{--line:#ffffff59;--line-2:#ffffff99}
}

/* ---- Calendar standard: quick dates in a left column, a compact month on the right, the chosen dates and the
   actions on one line below. On phones the quick dates become a scrolling row above the month. ---- */
.hd-calendar.hd-calendar--split{display:grid!important;grid-template-columns:150px minmax(0,1fr)!important;width:min(540px,calc(100vw - 24px));padding:0}
.hd-calendar--split>.hd-calendar-presets{display:flex!important;flex-direction:column!important;flex-wrap:nowrap;gap:2px!important;margin:0;padding:14px 10px!important;border:0!important;border-right:1px solid var(--line)!important}
.hd-calendar--split>.hd-calendar-presets button{flex:none;justify-content:flex-start;min-height:34px!important;padding:0 12px!important;border-radius:999px;background:none;box-shadow:none;text-align:left!important;font-size:var(--fs-sm)!important;font-weight:500;color:var(--muted)}
.hd-calendar--split>.hd-calendar-presets button:hover{background:var(--well)}
.hd-calendar--split>.hd-calendar-presets button:is(.active,[aria-pressed=true]){background:var(--well);color:var(--text);font-weight:600;box-shadow:none}
.hd-calendar--split>.hd-calendar-main{padding:14px 16px 12px}
.hd-calendar--split .hd-calendar-header{margin-bottom:8px}
.hd-calendar--split .hd-calendar-header .hd-calendar-title{font-size:var(--fs-lg)}
.hd-calendar--split .hd-calendar-days button{margin:1px 0}
.hd-calendar--split .hd-calendar-months{padding:12px 0;min-height:0}
.hd-calendar-blank{display:block}
.hd-calendar--split>.hd-calendar-foot{grid-column:1/-1;display:flex;align-items:center;flex-wrap:wrap;gap:8px 10px;padding:12px 16px;border-top:1px solid var(--line)}
.hd-calendar-foot>.hd-calendar-hint{flex:1 1 auto;min-width:0;margin:0;font-size:var(--fs-md);font-weight:600;color:var(--text);font-variant-numeric:tabular-nums}
.hd-calendar-foot>footer{display:flex;align-items:center;gap:6px;margin:0}
.hd-calendar-foot>footer .hd-calendar-clear{margin-right:0}
.hd-calendar-foot>.hd-calendar-error{flex-basis:100%;margin:0}
.hd-calendar-foot>.hd-calendar-error:empty{display:none}
.hd-calendar-foot>.hd-calendar-time{flex-basis:100%;margin:0}
@media (max-width:600px){
 .hd-calendar.hd-calendar--split{grid-template-columns:minmax(0,1fr)!important;width:min(390px,calc(100vw - 24px))}
 .hd-calendar--split>.hd-calendar-presets{flex-direction:row!important;overflow-x:auto;scrollbar-width:none;padding:10px 12px!important;border-right:0!important;border-bottom:1px solid var(--line)!important}
 .hd-calendar--split>.hd-calendar-presets::-webkit-scrollbar{display:none}
 .hd-calendar--split>.hd-calendar-presets button{white-space:nowrap;background:var(--glass);box-shadow:inset 0 0 0 1px var(--rim)}
 .hd-calendar--split>.hd-calendar-main{padding:12px}
}
/* Overview: the Date trigger leads the top bar, left of Locations. */
.top-actions>.overview-period-trigger{order:-2;width:auto;height:46px!important;min-height:46px;flex:none}
/* Recipe and supplier cards lift on hover without an outer ring. */
:is(.recipe-card,.supplier-card):hover{box-shadow:var(--shadow-lift);border-color:transparent;outline:0}
/* Inventory value: groups in A–Z order; a group opens to its most valuable items. */
.inventory-value .inventory-value-head{align-items:center;padding:16px 20px 12px}
.inventory-value .inventory-value-head>.inventory-value-label{font-size:var(--fs-lg);color:var(--text)}
.inventory-value>.inventory-value-note{margin:0;padding:12px 20px 16px}
.inventory-value-toggle{display:inline-flex;align-items:center;gap:8px;padding:0;border:0;background:none;color:inherit;font:inherit;text-align:left;cursor:pointer}
.inventory-value-toggle .icon{width:16px;height:16px;color:var(--faint);flex:none}
.inventory-value-toggle:disabled{cursor:default}
.inventory-value-toggle:disabled .icon{visibility:hidden}
.inventory-value-table tr.inventory-value-item td{padding-top:8px;padding-bottom:8px;border-top:0;font-size:var(--fs-sm);color:var(--muted)}
.inventory-value-table tr.inventory-value-item td:first-child{padding-left:44px}
.inventory-value-table tr.inventory-value-group.is-open td{border-bottom-color:transparent}
/* Phones: the Overview date trigger sits on its own line under the title, so the top bar keeps room for the account button. */
.overview-filters>.overview-period-trigger{height:46px!important;min-height:46px;width:auto}
/* Form pickers inside modals look like fields: opening the list keeps the field surface instead of the dark pressed pill. */
.modal .field .hd-date-trigger[aria-expanded=true],.modal .field .hd-date-trigger[aria-expanded=true]:hover{background-color:var(--glass-2);color:var(--text);box-shadow:none;outline:1px solid var(--line);outline-offset:-1px}
:root:not([data-theme=dark]) .modal .field .hd-date-trigger[aria-expanded=true]{background-color:#fff}
.modal .field .hd-date-trigger[aria-expanded=true] .hd-date-chevron{color:var(--faint);opacity:1}
.modal .field .hd-date-trigger[aria-expanded=true] .hd-date-caption{color:inherit;opacity:1}
/* Frozen page top (frozen-header.js): top bar, tabs and filter bars stay in place; table column titles stick under them.
   Everything stays under the dock (z-index 30) so the dock keeps its shadow. */
.has-frozen-header .is-frozen{position:sticky;z-index:25}
.frozen-backdrop{position:fixed;top:0;left:0;right:0;z-index:20;background:var(--bg);pointer-events:none}
.has-frozen-header #main .table-wrap.is-fit{overflow:visible}
/* Column titles stay exactly where they rest, under the filter bar and its gap; rows scroll under them. */
.has-frozen-header #main .table-wrap.is-fit>table>thead th{position:sticky;top:calc(var(--freeze-h) + var(--thead-inset,0px));z-index:21;background:linear-gradient(var(--glass),var(--glass)),var(--bg)}
/* The title row is the rounded top of the card, at rest and while rows scroll under it. */
.has-frozen-header #main .table-wrap.is-fit>table>thead th:first-child{border-top-left-radius:var(--r)!important}
.has-frozen-header #main .table-wrap.is-fit>table>thead th:last-child{border-top-right-radius:var(--r)!important}
/* While rows scroll under the titles: nothing shows above them (the page-colour backdrop grows over the card's 1px border gap; a
   box-shadow is not painted on cells of a collapsed-border table) or through their rounded corners (the corners are painted in the page colour instead of being cut out). */
.has-stuck-table .frozen-backdrop{height:calc(var(--freeze-h) + 1.5px)!important}
.has-frozen-header #main .table-wrap.is-fit>table.is-stuck>thead th:first-child{border-top-left-radius:0!important}
.has-frozen-header #main .table-wrap.is-fit>table.is-stuck>thead th:last-child{border-top-right-radius:0!important}
/* The painted corners start 1px outside the titles, over the card's own border, so the card's side edge curves too. */
.has-frozen-header #main .table-wrap.is-fit>table.is-stuck>thead th:first-child::before,.has-frozen-header #main .table-wrap.is-fit>table.is-stuck>thead th:last-child::after{content:"";position:absolute;top:-1px;width:var(--r);height:var(--r);pointer-events:none}
.has-frozen-header #main .table-wrap.is-fit>table.is-stuck>thead th:first-child::before{left:-1px;background:radial-gradient(circle at 100% 100%,transparent calc(var(--r) - 1.5px),var(--rim) calc(var(--r) - 1px),var(--rim) calc(var(--r) - .5px),var(--bg) var(--r))}
.has-frozen-header #main .table-wrap.is-fit>table.is-stuck>thead th:last-child::after{right:-1px;background:radial-gradient(circle at 0 100%,transparent calc(var(--r) - 1.5px),var(--rim) calc(var(--r) - 1px),var(--rim) calc(var(--r) - .5px),var(--bg) var(--r))}

/* The page's main list scrolls inside its card (frozen-header.js): column titles stay at the top of the card, the
   rows scroll under them and the pagination stays in view below. */
#main .table-wrap.is-inner-scroll{overflow:auto!important;overscroll-behavior:contain}
#main .table-wrap.is-inner-scroll.is-card-top{border-top-left-radius:var(--r)!important;border-top-right-radius:var(--r)!important}
/* The scrollbar belongs to the rows: its track starts under the column titles (their height is measured by
   frozen-header.js), so it never runs over them. */
#main .table-wrap.is-inner-scroll::-webkit-scrollbar{width:10px;height:10px}
#main .table-wrap.is-inner-scroll::-webkit-scrollbar-track{background:transparent;margin-top:var(--thead-h,38px)}
#main .table-wrap.is-inner-scroll::-webkit-scrollbar-thumb{background:var(--line-2);border-radius:999px;border:3px solid transparent;background-clip:content-box}
#main .table-wrap.is-inner-scroll::-webkit-scrollbar-thumb:hover{background-color:var(--faint)}
#main .table-wrap.is-inner-scroll::-webkit-scrollbar-corner{background:transparent}
/* One hairline under the titles, painted in their own background so it stays with them while rows scroll (a
   collapsed table border scrolls away with the rows). */
#main .table-wrap.is-inner-scroll>table>thead th{position:sticky;top:0;z-index:2;border-bottom-color:transparent!important;background:linear-gradient(var(--line),var(--line)) 0 100%/100% 1px no-repeat,linear-gradient(var(--glass),var(--glass)),var(--bg)}

/* List pagination is the footer of its card: the card ends with a hairline and the range, items per page and pages.
   It follows the last row, however few rows the page shows. */
#main>.panel:has(+:is(.pagination,.history-pagination,.pager-out)){margin-bottom:0!important;border-bottom-left-radius:0;border-bottom-right-radius:0;box-shadow:inset 0 0 0 1px var(--rim)}
#main>.panel:has(+:is(.pagination,.history-pagination,.pager-out))>.table-wrap:last-child{border-radius:0}
#main>.panel+:is(.pagination,.history-pagination,.pager-out){position:relative;margin-top:0!important;padding:10px 20px;border-top:0!important;border-radius:0 0 var(--r) var(--r);background:linear-gradient(var(--glass),var(--glass)),var(--bg);box-shadow:inset 0 1px 0 var(--line),inset 0 0 0 1px var(--rim),var(--shadow)}
/* Recorded loading layouts (skeleton-snapshot.js) sit inside the loading surface: the list card and its pagination join the same way. */
.loading-snapshot>.panel:has(+:is(.pagination,.history-pagination,.pager-out)){margin-bottom:0!important;border-bottom-left-radius:0;border-bottom-right-radius:0;box-shadow:inset 0 0 0 1px var(--rim)}
.loading-snapshot>.panel:has(+:is(.pagination,.history-pagination,.pager-out))>.table-wrap:last-child{border-radius:0}
.loading-snapshot>.panel+:is(.pagination,.history-pagination,.pager-out){position:relative;margin-top:0!important;padding:10px 20px;border-top:0!important;border-radius:0 0 var(--r) var(--r);background:linear-gradient(var(--glass),var(--glass)),var(--bg);box-shadow:inset 0 1px 0 var(--line),inset 0 0 0 1px var(--rim),var(--shadow)}
/* Wide screens: only the page top and the column titles are frozen; the pagination closes the card and ends level
   with the bottom of the dock. */
@media (min-width:1081px) and (min-height:640px){
 .workspace.has-rail:has(>#main>:is(.pagination,.history-pagination,.pager-out):last-child){padding-bottom:var(--dock-x)}
 /* Pages without a table (grids of cards): the pagination stays on the page background, at the bottom of the window
    and level with the bottom of the dock, under short grids and over long ones while they scroll. */
 .workspace.has-rail:has(>#main>:not(.panel)+:is(.pagination,.history-pagination,.pager-out):last-child){display:flex;flex-direction:column;min-height:100dvh}
 .workspace.has-rail>#main:has(>:not(.panel)+:is(.pagination,.history-pagination,.pager-out):last-child){flex:1 0 auto;display:flex;flex-direction:column;min-width:0}
 .workspace.has-rail>#main>:not(.panel)+:is(.pagination,.history-pagination,.pager-out):last-child{margin-top:auto!important;position:sticky;bottom:var(--dock-x);z-index:21;background:var(--bg);box-shadow:0 var(--dock-x) 0 var(--bg)}
 /* Table and pagination are one card: the card keeps its full shape and the same shadow as the other blocks, and the
    pagination sits in its bottom padding (its height is measured by frozen-header.js). */
 .has-list-foot #main>.panel:has(+:is(.pagination,.history-pagination,.pager-out)){padding-bottom:var(--foot-h);border-radius:var(--r);box-shadow:inset 0 0 0 1px var(--rim),var(--shadow)}
 .has-list-foot #main>.panel+:is(.pagination,.history-pagination,.pager-out){margin-top:calc(-1 * var(--foot-h))!important;background:none;box-shadow:inset 0 1px 0 var(--line)}
}
/* Read-only form values (Counted by, Prepared by, UOM…) are pills like the inputs and selects beside them. */
.field>output{border-radius:999px!important;min-height:40px;padding:0 14px!important;display:flex!important;align-items:center;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}

/* Item details conversions: each unit is written in terms of another unit of the item ("1 Case = 2 Bag"). */
.catalog-section #catalog-conversions .catalog-conversion-row{width:100%;grid-template-columns:minmax(120px,1fr) 12px 84px minmax(112px,1fr) 40px}
.catalog-conversion-unit{display:flex;align-items:center;gap:8px;min-width:0}
.catalog-conversion-unit>select{flex:1;min-width:0}
.catalog-section #catalog-conversions .catalog-conversion-row select{text-align:center!important;text-align-last:center!important;padding-left:30px!important;padding-right:30px!important}
.catalog-section #catalog-conversions .catalog-conversion-row>select{min-width:0;width:100%}
@media (max-width:640px){.catalog-section #catalog-conversions .catalog-conversion-row{grid-template-columns:minmax(92px,1fr) 10px 62px minmax(88px,1fr) 40px}}
/* Item details: the unit and Yes/No selectors read centred, like the numeric fields beside them. */
.catalog-item-modal :is(#catalog-active,#catalog-trackInventory,#catalog-orderingUnitId,#catalog-stocktakeUnitId,#catalog-categoryId,#catalog-taxable){text-align:center!important;text-align-last:center!important;padding-left:36px!important;padding-right:36px!important}
/* Item details: the price sits under the block title, on the left. */
.catalog-price-head{display:flex;flex-direction:column;align-items:flex-start;gap:12px}
.catalog-price-head>div:first-child{min-width:0}
.catalog-price-head h3{margin:0;display:flex;align-items:center;gap:10px;font-size:14px}
.catalog-price-head h3 .icon{width:18px;height:18px;color:var(--muted)}
.catalog-price-head .catalog-help{margin:0}
.catalog-price-head>.field{flex:none;width:200px;min-width:0;margin:0}
.catalog-price-section #catalog-price-note:empty{display:none}
@media (max-width:640px){.catalog-price-head>.field{flex:none;width:100%}}
/* Item details: storage area pickers read centred, like the other selectors of the window. */
.catalog-item-modal .item-location .ms-trigger{justify-content:center;padding-left:36px!important}
.catalog-item-modal .item-location .ms-summary{flex:1;min-width:0;text-align:center}
/* Item details: linked recipes, each removable when the item is one of its ingredients. */
.catalog-recipe-links{list-style:none;margin:6px 0 0;padding:0;display:flex;flex-direction:column}
.catalog-recipe-link{display:flex;align-items:center;gap:6px;min-height:36px;border-top:1px solid var(--line)}
.catalog-recipe-link:first-child{border-top:0}
.catalog-recipe-link>.table-name-button{flex:0 1 auto;min-width:0;text-align:left}
.catalog-recipe-role{order:3;margin-left:auto}
.catalog-recipe-role{font-size:11px;color:var(--muted)}
.catalog-recipe-link>.icon-btn{order:2;width:20px!important;height:20px!important;min-width:20px!important;min-height:20px!important;padding:0!important;border-radius:50%;display:grid;place-items:center;background:var(--well)!important;color:var(--muted)!important;box-shadow:none!important}
.catalog-recipe-link>.icon-btn:hover{background:var(--line-2)!important;color:var(--text)!important}
.catalog-recipe-link>.icon-btn .icon{width:12px;height:12px}
.catalog-linked-recipes .error-text:empty{display:none}
/* Item details: money and percent fields show their symbol inside the field. */
.catalog-affix{position:relative;display:block;min-width:0}
.catalog-affix::before,.catalog-affix::after{position:absolute;top:50%;transform:translateY(-50%);font-size:13px;color:var(--muted);pointer-events:none}
.catalog-affix[data-prefix]::before{content:attr(data-prefix);left:16px}
.catalog-affix[data-suffix]::after{content:attr(data-suffix);right:16px}
.catalog-affix[data-prefix]>input{padding-left:30px!important}
.catalog-affix[data-suffix]>input{padding-right:32px!important}
/* Item details footer: Delete stands apart on the left; Cancel and Save changes close the window on the right. */
.catalog-item-modal .modal-foot{justify-content:flex-start}
.catalog-item-modal .modal-foot>.modal-foot-spacer{flex:1}
.catalog-affix>input[type=number]{-moz-appearance:textfield;appearance:textfield}
.catalog-affix>input[type=number]::-webkit-inner-spin-button,.catalog-affix>input[type=number]::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}

/* Item details: the price field reads as "$ 79.90 / Case", with Taxable beside it. */
.catalog-price-head{flex-direction:row!important;align-items:flex-end!important;justify-content:space-between;flex-wrap:wrap}
.catalog-price-head>div:first-child{flex:1 0 100%}
.catalog-price-head>.field:has(#catalog-taxable){width:200px}
.catalog-price-input{display:flex;align-items:center;gap:10px}
/* Wide enough for $00,000.00, the largest price expected. */
.catalog-price-input>.catalog-affix{flex:0 0 132px}
.catalog-price-head>.field:has(.catalog-price-input){width:auto}
.catalog-price-per{font-size:13px;color:var(--muted);white-space:nowrap}

/* Add item uses the Item details blocks: two columns, centred selectors, the same price, tax and conversion lines. */
.catalog-create-modal #supplier-create-form .catalog-section select:not(#create-new-unit){text-align:center!important;text-align-last:center!important;padding-left:36px!important;padding-right:36px!important}
.catalog-create-modal #supplier-create-form .catalog-editor-grid{margin-top:16px}
.catalog-create-modal #create-conversions .catalog-conversion-row{width:100%;grid-template-columns:minmax(96px,1fr) 12px 84px minmax(112px,1fr) 40px}
.catalog-create-modal #create-conversions .catalog-conversion-row>span:nth-child(4){text-align:center}
.catalog-create-modal .modal-foot{justify-content:flex-end}
.catalog-create-modal .supplier-location-create .ms-trigger{justify-content:center;padding-left:36px!important}
.catalog-create-modal .supplier-location-create .ms-summary{flex:1;min-width:0;text-align:center}
/* Settings > Stores: City, State and Zip Code side by side. */
.set-shop__place{display:grid;grid-template-columns:minmax(0,2fr) minmax(0,1fr) minmax(0,1fr);gap:12px}
@media (max-width:640px){.set-shop__place{grid-template-columns:1fr 1fr}.set-shop__place>.field:first-child{grid-column:1/-1}}

/* Settings > Stores: editable store cards with their storage areas. */
.set-shop__place--two{grid-template-columns:repeat(2,minmax(0,1fr))!important}
.set-shop__state{display:flex;align-items:center;gap:8px}
.set-actions--start{justify-content:flex-start;margin-bottom:12px}
.set-areas{display:grid;gap:8px;margin-top:6px;padding-top:12px;border-top:1px solid var(--line)}
.set-areas__head{font-size:13px}
.set-areas__list{list-style:none;margin:0;padding:0;display:grid;gap:6px}
.set-area{display:flex;align-items:center;gap:8px}
.set-area>input{flex:1;min-width:0}
.set-area>span{flex:1;min-width:0;padding:8px 0;font-size:13px}
.set-area--empty{color:var(--muted);font-size:12px}
.set-area>.icon-btn{width:28px!important;height:28px!important;min-width:28px!important;min-height:28px!important;padding:0!important;border-radius:50%;display:grid;place-items:center;background:var(--well)!important;color:var(--muted)!important;box-shadow:none!important}
.set-area>.icon-btn .icon{width:13px;height:13px}
.set-area-add{display:flex;gap:8px}
.set-area-add>input{flex:1;min-width:0}
/* Store cards keep their own height: a long storage area list in one card does not spread the other card's fields. */
.set-shops{align-items:start}
.set-shop{align-content:start}

/* Settings > Stores: supplier-style cards; each store opens in a window with every field and its storage areas. */
.store-grid{margin-top:4px}
.store-modal .set-shop{background:none;box-shadow:none;padding:0}
.store-modal .set-shop>legend{float:none;width:100%;margin-bottom:6px}
.store-modal .set-shop>legend{display:flex;justify-content:flex-end}
.store-modal .set-shop>legend:not(:has(*:not(.set-shop__state:empty))){display:none}
.store-modal .catalog-affix>input{text-align:left!important}
.store-modal .modal-foot{justify-content:flex-start}
.store-modal .modal-foot>.modal-foot-spacer{flex:1}
.store-modal .modal-foot>.btn:first-child:not([data-action=store-toggle]){margin-left:auto}
/* The store window's form sits on the window itself: no glass sheen or depth from the panel style. */
:root .store-modal .set-shop{background:none!important;box-shadow:none!important}
/* Store window: storage areas as a compact three-column grid; the remove × sits inside each name. */
.store-modal .set-areas__list{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.store-modal .set-area{position:relative}
.store-modal .set-area>input{height:36px;min-height:36px;padding-right:36px;font-size:13px}
.store-modal .set-area>.icon-btn{position:absolute;right:5px;top:50%;transform:translateY(-50%);width:26px!important;height:26px!important;min-width:26px!important;min-height:26px!important}
.store-modal .set-area--empty{grid-column:1/-1}
.store-modal .set-area-add>input{height:36px;min-height:36px;font-size:13px}
@media (max-width:720px){.store-modal .set-areas__list{grid-template-columns:repeat(2,minmax(0,1fr))}}
/* Store window: fields in three rows on a six-column grid (name + street; city, state, zip, country, currency;
   time zone + purchase tax). Narrow windows fall back to the stacked form. */
@media (min-width:721px){
.store-modal .set-shop{grid-template-columns:repeat(6,minmax(0,1fr));column-gap:12px}
.store-modal .set-shop>*{grid-column:1/-1}
.store-modal .set-shop>.set-shop__place{display:contents}
.store-modal .set-shop .field:has(>label[for^="set-name-"]),.store-modal .set-shop .field:has(>label[for^="set-address_line_1-"]){grid-column:span 3}
.store-modal .set-shop .field:has(>label[for^="set-city-"]){grid-column:span 2}
.store-modal .set-shop .field:is(:has(>label[for^="set-state-"]),:has(>label[for^="set-postal_code-"]),:has(>label[for^="set-country-"]),:has(>label[for^="set-currency-"])){grid-column:span 1}
.store-modal .set-shop .field:has(>label[for^="set-tz-"]){grid-column:span 4}
.store-modal .set-shop .field:has(>label[for^="set-tax-"]){grid-column:span 2}
.store-modal .set-shop>.set-error:empty{display:none}
}
/* Store window: the new storage area field and its Add button share one height and centre line. */
.store-modal .set-areas .set-area-add{align-items:center}
.store-modal .set-areas .set-area-add>input{height:36px!important;min-height:36px!important}
.store-modal .set-areas .set-area-add>.btn{height:36px;min-height:36px}
/* Store window: the new storage area is the last cell of the grid, shaped like the others, with + inside. */
.store-modal .set-areas__list>.set-area-add{position:relative;display:block}
.store-modal .set-areas__list>.set-area-add>input{width:100%;height:36px!important;min-height:36px!important;padding-right:36px;font-size:13px}
.store-modal .set-areas__list>.set-area-add>.icon-btn{position:absolute;right:5px;top:50%;transform:translateY(-50%);width:26px!important;height:26px!important;min-width:26px!important;min-height:26px!important;padding:0!important;border-radius:50%;display:grid;place-items:center;background:var(--well)!important;color:var(--muted)!important;box-shadow:none!important}
.store-modal .set-areas__list>.set-area-add>.icon-btn .icon{width:13px;height:13px}
/* Transfers: the estimated value column is right-aligned like other amounts. */
.transfer-detail-modal th.transfer-value-head,.transfer-detail-modal td:has(>.transfer-line-value),.transfer-history-table th.num,.transfer-history-table td.num{text-align:right;white-space:nowrap}
.transfer-value-note{font-weight:500;color:var(--muted)}
.receipt-items .operation-section-head{display:flex;align-items:center;justify-content:space-between;gap:12px}
/* Transfer item rows: quantity, unit and area share one hairline border, as in the recipe editor (no second ring). */
:root #overlay-root .modal .recipe-editor-modal.transfer-lines .recipe-edit-controls :is(input,input[type=number],select){border:1px solid var(--line)!important;box-shadow:none!important}
/* Send now has no Needed by date: the hidden field leaves the layout. */
#record-form [data-request-only][hidden]{display:none!important}
/* Transfers: Send now has the same shape and behaviour as New request beside it: always open with its label, and
   nothing moves on hover or focus (no growing padding, no sliding label, no turning icon). */
:root .top-actions .page-heading .actions>.btn.btn-expand[data-action=new-transfer-send][data-action][data-action],:root .page-heading .actions>.btn.btn-expand[data-action=new-transfer-send][data-action][data-action]:is(:hover,:focus-visible,:active){gap:0!important;padding:0 18px 0 14px!important;transition:background-color .2s}
:root .page-heading .actions>.btn.btn-expand[data-action=new-transfer-send] .btn-label,:root .page-heading .actions>.btn.btn-expand[data-action=new-transfer-send]:is(:hover,:focus-visible,:active) .btn-label{max-width:260px!important;margin-left:8px!important;opacity:1!important;transform:none!important;transition:none}
:root .page-heading .actions>.btn.btn-expand[data-action=new-transfer-send] .icon,:root .page-heading .actions>.btn.btn-expand[data-action=new-transfer-send]:is(:hover,:focus-visible,:active) .icon{transform:none!important;transition:none}

/* ---- Create menu: New Activity lives in the dock and opens a panel beside it ----
   It follows the app's floating panels (notifications, search): same surface, shadow, radius,
   font and tokens, so it also follows the light and dark themes. */
.dock-rail .dock__create{opacity:1;margin-bottom:8px;gap:10px}
.dock__create-icon{flex:none;display:grid;place-items:center;width:30px;height:30px;border-radius:50%;background:var(--accent);color:var(--accent-ink);transition:transform .28s var(--ease-out)}
.dock__create-icon .icon,.dock__create-icon svg{width:17px;height:17px}
.rail-open .dock-rail .dock__create{padding:0 4px}
.dock__create:hover .dock__create-icon{transform:scale(1.07)}
/* The plus turns into an × while the menu is open. */
.dock__create.is-open .dock__create-icon{transform:rotate(45deg)}
.dock-fab>.icon,.dock-fab>svg{transition:transform .28s var(--ease-out)}
.dock-fab.is-open>.icon,.dock-fab.is-open>svg{transform:rotate(45deg)}
.dock__create.is-open .dock__tip,.dock-fab.is-open .dock__tip{display:none}
/* The dock enlarges the icon next to the hovered one; the plus has its own motion, so its neighbours stay still. */
.dock__btn.dock__btn:has(+ .dock__create:hover)>.icon,.dock__create.dock__create:hover+.dock__btn.dock__btn>.icon,.dock__create:hover+.dock__nav>.dock__btn:first-child>.icon{transform:none}

.create-menu{position:fixed;z-index:65;width:min(372px,calc(100vw - 24px));max-height:min(620px,calc(100dvh - 24px));display:flex;flex-direction:column;overflow:hidden;border-radius:var(--r);background:var(--float);color:var(--text);box-shadow:var(--shadow-pop),inset 0 0 0 1px var(--line);font-size:var(--fs-sm);animation:create-menu-in .26s var(--ease-out)}
.create-menu.is-closing{animation:create-menu-out .16s ease-in forwards}
@keyframes create-menu-in{from{opacity:0;transform:scale(.94)}}
@keyframes create-menu-out{to{opacity:0;transform:scale(.96)}}
.create-list{position:relative;flex:1;min-height:0;overflow:auto;padding:8px}
.create-menu:focus{outline:0}
.create-group:first-of-type{margin-top:8px}
.create-group{margin:10px 10px 4px;font-size:var(--fs-2xs);font-weight:700;letter-spacing:.06em;color:var(--muted)}
.create-highlight{position:absolute;left:8px;right:8px;top:0;height:0;border-radius:14px;background:var(--well);opacity:0;pointer-events:none;transition:transform .28s var(--ease-out),height .2s,opacity .15s}
.create-row{position:relative;display:flex;align-items:center;gap:12px;width:100%;padding:8px 10px;border:0;border-radius:14px;background:none;color:inherit;font:inherit;text-align:left;cursor:pointer;animation:create-row-in .3s var(--ease-out) backwards;animation-delay:calc(var(--i,1)*24ms)}
@keyframes create-row-in{from{opacity:0;transform:translateX(-8px)}}
.create-row:focus-visible{outline:2px solid var(--accent);outline-offset:-2px}
.create-row__icon{flex:none;display:grid;place-items:center;width:36px;height:36px;border-radius:50%;background:var(--surface-2);box-shadow:inset 0 0 0 1px var(--line);color:var(--muted);transition:background-color .2s,color .2s,box-shadow .2s}
.create-row__icon .icon,.create-row__icon svg{width:17px;height:17px}
.create-row.is-active .create-row__icon{color:var(--text)}
.create-row__text{flex:1;min-width:0;display:grid;line-height:1.3}
.create-row__text strong{font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.create-row__text small{color:var(--muted);font-size:var(--fs-xs);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
@media (prefers-reduced-motion:reduce){.create-menu,.create-row,.create-highlight,.dock__create-icon,.dock-fab>svg{animation:none!important;transition:none!important}}
@media print{.create-menu{display:none}}

/* Page tabs in the top bar line up with the buttons on the right (date, location, notifications). */
.topbar>.tabs{align-self:start}
/* Record shipment and Confirm receipt: each item's quantity and storage area on one row; stacked on narrow screens. */
#transfer-step-form .transfer-step-fields{display:grid;grid-template-columns:minmax(0,1fr);gap:8px 12px;align-items:center}
#transfer-step-form .transfer-step-fields:has(select){grid-template-columns:minmax(96px,1fr) minmax(0,2fr)}
@media(max-width:560px){#transfer-step-form .transfer-step-fields:has(select){grid-template-columns:minmax(0,1fr)}}

/* Settings > Store > Integrations: systems using the API */
.integration-tools{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end}
.integration-row code{font-size:.92em}
.integration-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px 16px}
.integration-form .full,.integration-fieldset{grid-column:1/-1}
.integration-fieldset{border:1px solid var(--line);border-radius:12px;padding:12px 14px;margin:0;min-width:0}
.integration-fieldset legend{font-weight:600;padding:0 6px}
.integration-levels{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:10px 14px;margin-top:8px}
.integration-stores{display:flex;flex-wrap:wrap;gap:6px 16px;margin:6px 0 0 24px}
.integration-form .check{display:flex;align-items:center;gap:8px}
.integration-secret{display:flex;gap:8px;align-items:center;margin:12px 0}
.integration-secret input{flex:1;min-width:0;font-family:ui-monospace,SFMono-Regular,Menlo,monospace}
.integration-code input{font-size:1.6rem;letter-spacing:.18em;text-align:center}
@media (max-width:760px){.integration-form{grid-template-columns:1fr}.integration-tools{justify-content:flex-start}}

/* Overview dashboard: KPI tiles with mini charts, sales-pace gauge, daily columns, weekday heatmap and location donut. */
.db{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));gap:16px}
.db>*{min-width:0}
.db-kpis{grid-column:span 12;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}
.db-perf{grid-column:span 4}
.db-an{grid-column:span 8}
.db-heatc{grid-column:span 7}
.db-vis{grid-column:span 5}
.db-orders{grid-column:span 12}
.db-route{grid-column:span 12}
.db-route .route-card{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(0,1fr) auto;align-items:center;gap:16px 28px}
.db-route .route-vis,.db-route .route-labels{grid-column:1}
.db-route .route-stats{grid-column:2;grid-row:1/3;margin:0}
.db-route .route-note{grid-column:1;margin:0}
.db-route .route-card .btn{grid-column:3;grid-row:1/4;width:auto;margin:0}
.db-info{display:inline-grid;place-items:center;color:var(--faint);cursor:help;border-radius:50%}
.db-info .icon{width:14px;height:14px}
.db-info:hover{color:var(--muted)}

/* Tiles */
.tile--sky,.tile--mint,.tile--coral,.tile--lemon{--text:#1e1e1e;--muted:#1e1e1ec2;--faint:#1e1e1eb3;--well:#1e1e1e14;--line:#1e1e1e1f;--line-2:#1e1e1e33;--surface:#ffffffb3;--surface-2:#fff6;--up:#4e4e4e;--up-soft:#ffffff8c;--down:#444444;--down-soft:#ffffff8c;--primary:#1e1e1e;--primary-ink:#1e1e1e;--c1:#1e1e1e;--c2:#1e1e1e52;--c3:#1e1e1e;color:var(--text)}
.tile--sky{background:var(--sky)}
.tile--mint{background:var(--mint)}
.tile--coral{background:var(--coral)}
.tile--lemon{background:var(--lemon)}
.tile--ocean,:root:not([data-palette]) .tile--sky,:root[data-palette=mono] .tile--sky{--text:#f6f6f6;--muted:#f6f6f6c7;--faint:#f6f6f6b3;--well:#ffffff1f;--line:#ffffff24;--line-2:#ffffff3d;--surface:var(--ocean);--surface-2:#ffffff14;--up:#cfcfcf;--up-soft:#cfcfcf29;--down:#c2c2c2;--down-soft:#c2c2c229;--primary:#f6f6f6;--primary-ink:#f6f6f6;background:var(--ocean);color:var(--text);box-shadow:none}
:root[data-theme=dark] .tile--sky{--text:#1e1e1e;--muted:#1e1e1ec2;--faint:#1e1e1eb3;--well:#1e1e1e14;--line:#1e1e1e1f;--line-2:#1e1e1e33;--surface:#ffffffb3;--surface-2:#fff6;--up:#4e4e4e;--up-soft:#ffffff8c;--down:#444444;--down-soft:#ffffff8c;--primary:#1e1e1e;--primary-ink:#1e1e1e;--c1:#1e1e1e;--c2:#1e1e1e52;--c3:#1e1e1e;background:var(--sky);color:var(--text);box-shadow:none}
.db-kpi{display:grid;gap:12px;padding:18px 20px 16px;border-radius:var(--r);box-shadow:none}
.db-kpi__row{display:flex;justify-content:space-between;align-items:flex-end;gap:12px}
.db-kpi__fig{display:grid;gap:8px;min-width:0}
.stat__label{display:flex;align-items:center;gap:6px;font-size:var(--fs-sm);font-weight:600;color:var(--muted)}
.stat__val{font-size:var(--fs-4xl);font-weight:600;letter-spacing:-.025em;line-height:1.1;white-space:nowrap}
.stat__meta{display:flex;flex-wrap:wrap;align-items:center;gap:6px;font-size:var(--fs-sm);color:var(--faint)}
.delta{display:inline-flex;align-items:center;gap:2px;height:20px;padding:0 7px 0 5px;border-radius:999px;background:var(--up-soft);color:var(--up);font-size:var(--fs-2xs);font-weight:700}
.delta .icon{width:12px;height:12px;stroke-width:2.4}
.delta.is-down{background:var(--down-soft);color:var(--down)}
.more-link{display:inline-flex;align-items:center;gap:5px;font-size:var(--fs-sm);font-weight:600;color:var(--text);text-decoration:underline;text-decoration-color:var(--line-2);text-underline-offset:3px}
.more-link:hover{color:var(--primary-ink);text-decoration-color:currentColor}
.db-kpi .more-link{width:100%;padding-top:10px;border-top:1px dashed var(--line-2);color:var(--muted);justify-self:start}
.db-kpi .more-link:hover{color:var(--text)}
.db-kpi__mini{flex:none;display:flex;justify-content:flex-end;align-items:flex-end;width:84px;height:44px}
.db-mbars,.db-eq{display:flex;align-items:stretch;height:42px}
.db-mbars{gap:5px}.db-eq{gap:3px}
.db-mt,.db-et{position:relative;overflow:hidden;background:var(--well)}
.db-mt{width:13px;border-radius:5px}.db-et{width:5px;border-radius:3px}
.db-mf,.db-ef{position:absolute;inset:0;background:var(--c2);transform-origin:bottom;transform:scaleY(var(--s,0))}
.db-mf{border-radius:5px}.db-ef{border-radius:3px}
.db-mt:last-child .db-mf,.db-et:last-child .db-ef{background:var(--primary)}
.db-spark{width:84px;height:40px;overflow:visible}
.db-spark__line{fill:none;stroke:var(--c1);stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round}
.db-spark__dot{fill:var(--surface);stroke:var(--c1);stroke-width:2.2}
.db-ring{position:relative;width:46px;height:46px}
.db-ring svg{width:100%;height:100%;transform:rotate(-90deg)}
.db-ring circle{fill:none;stroke-width:4.5}
.db-ring__track{stroke:var(--well)}
.db-ring__fill{stroke:var(--c3);stroke-linecap:round;stroke-dasharray:var(--p) 100}
.db-ring__pct{position:absolute;inset:0;display:grid;place-items:center;font-size:var(--fs-2xs);font-weight:600}

/* Gauge */
.db-perf{display:flex;flex-direction:column}
.db-perf .panel-head{padding-bottom:4px}
.db-gauge{position:relative;width:100%;max-width:290px;margin:2px auto 0}
.db-gauge svg{display:block;width:100%;height:auto;overflow:visible}
.db-ticks line{stroke:var(--primary);stroke-width:2;stroke-linecap:round;opacity:.14;transition:opacity .25s}
.db-ticks line.is-lit{opacity:.85}
.db-g-track,.db-g-arc{fill:none;stroke-width:16;stroke-linecap:round}
.db-g-track{stroke:var(--well)}
.db-g-arc{stroke:url(#db-gauge-g);stroke-dasharray:var(--p) 100}
.db-g-knob circle:first-child{fill:var(--surface);stroke:var(--primary);stroke-width:3}
.db-g-knob circle:last-child{fill:var(--primary)}
.db-gauge__c{position:absolute;left:0;right:0;bottom:0;display:grid;justify-items:center;gap:2px}
.db-gauge__c p{display:flex;align-items:center;gap:6px}
.db-gauge__c b{font-size:var(--fs-display);font-weight:600;letter-spacing:-.035em;line-height:1}
.db-gauge__c small{font-size:var(--fs-xs);color:var(--faint)}
.db-note{display:grid;gap:4px;margin-top:18px;padding:0 20px}
.db-note h3{font-size:var(--fs-base);font-weight:600}
.db-note p{font-size:var(--fs-sm);color:var(--muted);line-height:1.5}
.db-perf__more{margin:auto 20px 20px;padding-top:14px}

/* Daily columns */
.db-an{display:flex;flex-direction:column}
.db-an .panel-head{align-items:flex-start}
.db-an__sum{color:var(--faint);font-size:var(--fs-sm)}
.db-chart{position:relative;padding:8px 20px 36px}
.db-chart .empty{padding:48px 16px}
.db-plot{position:relative;height:238px}
.db-grid{position:absolute;inset:0;display:flex;flex-direction:column;justify-content:space-between}
.db-gl{position:relative;height:0;padding-left:48px}
.db-gl i{display:block;border-top:1px dashed var(--line-2)}
.db-gl span{position:absolute;top:-8px;left:0;width:40px;text-align:right;font-size:var(--fs-2xs);color:var(--faint)}
.db-avg{position:absolute;left:48px;right:0;z-index:2;height:0;border-top:1.5px dashed var(--c4);pointer-events:none}
.db-avg span{position:absolute;right:0;top:-21px;padding:1px 7px;border-radius:6px;background:var(--sea-soft);color:var(--sea);font-size:var(--fs-2xs);font-weight:600}
.db-cols{position:absolute;inset:0 0 0 48px;display:grid;grid-template-columns:repeat(var(--n,7),minmax(0,1fr))}
.db-col{position:relative;display:flex;justify-content:center;align-items:flex-end;height:100%;border:0;border-radius:10px;background:none;padding:0;color:inherit;font:inherit;cursor:default}
.db-col:focus-visible{outline-offset:-2px}
.db-col__track{position:relative;display:block;width:min(30px,66%);height:var(--h,0%);border-radius:999px;overflow:hidden;transform-origin:bottom}
.db-col__fill{position:absolute;inset:0;border-radius:999px;background:repeating-linear-gradient(-45deg,var(--hatch) 0 2px,transparent 2px 7px),var(--hatch-bg);transition:background-color .25s}
.db-col:hover .db-col__fill{background-color:color-mix(in srgb,var(--primary) 12%,transparent)}
.db-col.is-on .db-col__fill{opacity:0}
.db-col__x{position:absolute;bottom:-25px;left:0;right:0;text-align:center;font-size:var(--fs-2xs);color:var(--faint);white-space:nowrap;transition:color .2s}
.db-col__x.is-hidden{visibility:hidden}
.db-col.is-on .db-col__x{visibility:visible;color:var(--text);font-weight:600}
.db-hl{position:absolute;left:0;bottom:0;z-index:1;width:30px;border-radius:999px;overflow:hidden;pointer-events:none;opacity:0;transition:left .45s var(--ease-out),height .45s var(--ease-out),opacity .2s}
.db-hl__fill{position:absolute;inset:0;border-radius:999px;background:linear-gradient(180deg,var(--primary-2),var(--primary) 40%,var(--primary-ink));box-shadow:inset 0 1px #ffffff59}
.db-hl__cap{position:absolute;top:7px;left:50%;width:10px;height:10px;margin-left:-5px;border-radius:50%;background:#fff;box-shadow:0 0 0 4px #ffffff4d}
.db-tip{position:absolute;top:0;left:0;z-index:3;min-width:164px;padding:10px 12px;border-radius:12px;background:var(--ink-btn);color:var(--on-ink-btn);box-shadow:var(--shadow-pop);font-size:var(--fs-xs);pointer-events:none}
.db-tip[hidden]{display:none}
.db-tip__h{display:flex;justify-content:space-between;align-items:center;gap:8px;margin-bottom:7px;font-weight:600}
.db-tip__h em{font-style:normal;font-size:var(--fs-2xs);padding:1px 6px;border-radius:5px;background:#bbbbbb40}
.db-tip dl{display:grid;gap:4px;margin:0}
.db-tip dl div{display:flex;justify-content:space-between;gap:18px}
.db-tip dt{opacity:.68}
.db-tip dd{margin:0;font-weight:600}
.db-tip .up{color:#cfcfcf}
.db-tip .down{color:#c2c2c2}
.chart-period{border:0;border-radius:999px;background:var(--well);color:var(--muted);font-size:var(--fs-xs);font-weight:600;padding:6px 12px;white-space:nowrap}

/* Heatmap */
.db-heatc .panel-head{flex-wrap:wrap}
.db-scale{display:flex;align-items:center;gap:4px;font-size:var(--fs-2xs);color:var(--faint)}
.db-scale span{margin:0 3px}
.db-sw{display:block;width:14px;height:14px;border-radius:4px;background:var(--c)}
.db-heat{position:relative;display:grid;grid-template-columns:112px repeat(7,minmax(0,1fr));align-items:center;gap:7px;padding:4px 20px 20px}
.db-heat__d{text-align:center;font-size:var(--fs-2xs);color:var(--faint);font-weight:500}
.db-heat__p{font-size:var(--fs-xs);color:var(--muted);font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.db-cell{display:block;height:32px;border-radius:10px;outline-offset:2px}
.db-cell i{display:block;height:100%;border-radius:10px;background:var(--c,var(--heat-0));transition:background-color .35s,box-shadow .2s}
.db-cell:hover i,.db-cell:focus-visible i{box-shadow:0 0 0 2px var(--surface),0 0 0 3.5px var(--line-2)}
.db-cell.is-hot i{box-shadow:0 0 0 2px var(--surface),0 0 0 3.5px var(--primary)}
.db-htip{position:absolute;top:0;left:0;z-index:3;padding:7px 11px;border-radius:10px;background:var(--ink-btn);color:var(--on-ink-btn);box-shadow:var(--shadow-pop);font-size:var(--fs-xs);font-weight:600;white-space:nowrap;pointer-events:none}
.db-htip[hidden]{display:none}

/* Donut */
.db-vis__body{display:grid;grid-template-columns:minmax(0,1fr) 168px;align-items:center;gap:18px;padding:0 20px 20px}
.db-vis .stat__val{font-size:var(--fs-4xl)}
.db-legend{display:grid;gap:2px;margin-top:14px}
.db-legend button{display:flex;align-items:center;gap:9px;width:100%;margin-left:-8px;padding:6px 8px;border:0;border-radius:9px;background:none;color:inherit;font:inherit;text-align:left;transition:background-color .2s,opacity .25s}
.db-legend button:hover{background:var(--well)}
.db-legend button.is-dim{opacity:.42}
.db-legend i{flex:none;width:10px;height:10px;border-radius:3px;background:var(--c)}
.db-legend__l{flex:1;font-size:var(--fs-sm);color:var(--muted)}
.db-legend__v{font-size:var(--fs-sm);font-weight:600;white-space:nowrap}
.db-donut{position:relative;width:168px;aspect-ratio:1}
.db-donut svg{display:block;width:100%;height:100%;overflow:visible;transform:rotate(-90deg)}
.db-donut__track{fill:none;stroke:var(--well);stroke-width:12}
.db-seg{fill:none;stroke-width:12;stroke-dasharray:var(--p) 100;stroke-dashoffset:var(--o);cursor:pointer;transition:opacity .25s,stroke-width .2s}
.db-seg:hover{stroke-width:14}
.db-seg.is-dim{opacity:.18}
.db-donut__c{position:absolute;inset:0;display:grid;place-content:center;text-align:center;pointer-events:none}
.db-donut__c b{font-size:var(--fs-4xl);font-weight:600;letter-spacing:-.03em;line-height:1.1}
.db-donut__c small{font-size:var(--fs-xs);color:var(--faint)}

/* Entrance: only when the route changes, never on filter re-renders. */
.main.is-entering .db-kpis>*{animation:rise .9s var(--ease-out) both}
.main.is-entering .db-kpis>:nth-child(2){animation-delay:60ms}
.main.is-entering .db-kpis>:nth-child(3){animation-delay:120ms}
.main.is-entering .db-kpis>:nth-child(4){animation-delay:180ms}
.main.is-entering .db>.panel{animation:rise .9s var(--ease-out) both;animation-delay:200ms}
.main.is-entering .db-mf,.main.is-entering .db-ef{animation:db-grow .7s var(--ease-out) both;animation-delay:calc(400ms + var(--i,0) * 50ms)}
.main.is-entering .db-col__track{animation:db-grow .8s var(--ease-out) both;animation-delay:calc(350ms + var(--i,0) * 40ms)}
.main.is-entering .db-ring__fill,.main.is-entering .db-g-arc,.main.is-entering .db-seg{animation:db-draw 1.2s var(--ease-out) both;animation-delay:450ms}
.main.is-entering .db-spark__line{stroke-dasharray:100 100;animation:db-trace 1.1s var(--ease-out) both;animation-delay:450ms}
.main.is-entering .db-cell i{animation:db-pop .5s var(--ease-out) both;animation-delay:calc(400ms + var(--i,0) * 18ms)}
.main.is-entering .db-ticks line.is-lit{animation:db-tick .3s both;animation-delay:calc(500ms + var(--i,0) * 35ms)}
@keyframes db-grow{from{transform:scaleY(0)}to{transform:scaleY(var(--s,1))}}
@keyframes db-draw{from{stroke-dasharray:0 100}to{stroke-dasharray:var(--p) 100}}
@keyframes db-trace{from{stroke-dashoffset:100}to{stroke-dashoffset:0}}
@keyframes db-pop{from{opacity:0;transform:scale(.6)}to{opacity:1;transform:none}}
@keyframes db-tick{from{opacity:.14}to{opacity:.85}}

@media (max-width:1320px){.db-perf{grid-column:span 5}.db-an{grid-column:span 7}.db-heatc,.db-vis,.db-orders,.db-attn{grid-column:span 12}.db-vis__body{grid-template-columns:minmax(0,1fr) 180px}}
@media (max-width:1100px){.db-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}.db-perf,.db-an{grid-column:span 12}.db-perf{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);align-items:center;column-gap:24px}.db-perf .panel-head{grid-column:1/-1}.db-perf .db-note{margin-top:0}.db-perf__more{grid-column:2;margin-top:0}.db-route .route-card{grid-template-columns:1fr 1fr}.db-route .route-stats{grid-column:2;grid-row:auto}.db-route .route-card .btn{grid-column:1/-1;grid-row:auto}}
@media (max-width:700px){.db-perf{display:flex}.db-perf .db-note{margin-top:14px}.db-heat{grid-template-columns:62px repeat(7,minmax(0,1fr));gap:5px;padding-inline:14px}.db-heat__p{font-size:var(--fs-2xs)}.db-cell{height:26px}.db-cell i{border-radius:7px}.db-plot{height:210px}.db-gl{padding-left:40px}.db-gl span{width:34px}.db-avg,.db-cols{left:40px}.db-an .panel-head{flex-wrap:wrap}.db-chart{padding-inline:14px}.db-route .route-card{grid-template-columns:1fr}}
@media (max-width:560px){.db-kpis{gap:10px}.db-kpi{gap:8px;padding:14px}.db-kpi .stat__val{font-size:var(--fs-3xl)}.db-kpi .more-link{font-size:var(--fs-xs);padding-top:8px}.db-vis__body{grid-template-columns:minmax(0,1fr)}.db-donut{grid-row:1;justify-self:center;width:160px}.db-scale .db-sw:nth-child(n+4){display:none}}
/* Whole tile is the shortcut: no inline "See …" link */
.db-kpi,.db-link{color:inherit;text-decoration:none;cursor:pointer;transition:transform .25s var(--ease-out),box-shadow .25s var(--ease-out),filter .25s}
.db-kpi:hover,.db-link:hover{transform:translateY(-2px);box-shadow:var(--shadow-lift)}
.db-kpi:active,.db-link:active{transform:translateY(0)}
.db-kpi:focus-visible,.db-link:focus-visible{outline:2px solid var(--focus);outline-offset:3px}
.db-link h2,.db-link p{color:inherit}
@media (prefers-reduced-motion:reduce){.db-kpi,.db-link{transition:none}.db-kpi:hover,.db-link:hover{transform:none}}
/* Sales pace panel removed: the daily chart takes the full row */
.db-an{grid-column:span 12}
@media (max-width:1320px){.db-an{grid-column:span 12}}

/* Responsive guards: tiles size their mini chart from their own width; the route card stacks on narrow screens */
.db-kpi{container-type:inline-size}
.db-kpi__fig{flex:1 1 auto;grid-template-columns:minmax(0,1fr)}
/* Text and mini chart never overlap: the chart box is at least as wide as its chart (the seven daily bars take
   121px, more than the 84px box, so they used to spill under the comparison text), and when the figure and the
   chart cannot share the row the chart drops under the text. The comparison line wraps inside the figure column
   and does not count toward the row's intrinsic width, so a long "vs previous period" alone never forces the drop. */
.db-kpi__row{flex-wrap:wrap}
.db-kpi__mini{min-width:max-content}
.db-kpi .stat__meta{display:flex;flex-wrap:wrap;align-items:center;gap:6px 8px;min-width:0;contain:inline-size}
.db-kpi .stat__meta span{white-space:normal}
.db-kpi .stat__val{overflow-wrap:anywhere}
@container (max-width:215px){.db-kpi__row{flex-direction:column;align-items:flex-start;gap:10px}.db-kpi__fig{align-self:stretch}.db-kpi__mini{width:100%;height:40px;justify-content:flex-start}}
@container (max-width:260px){.db-kpi__mini{width:64px}}
.db-route .route-vis{min-width:0}
.db-route .store-node{flex:none}
.db-route .route-line{min-width:72px}
@media (max-width:900px){.db-route .route-card{grid-template-columns:minmax(0,1fr);gap:14px}.db-route .route-vis,.db-route .route-labels,.db-route .route-stats,.db-route .route-note,.db-route .route-card .btn{grid-column:1;grid-row:auto}.db-route .route-stats{margin:0}.db-route .route-card .btn{width:100%}}
@media (max-width:560px){.db-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:400px){.db-kpis{grid-template-columns:minmax(0,1fr)}}

/* Overview lists: the Purchasing > Orders table look (theme.css th/td spacing, name button, small supplier line, status pill) as one row per order or transfer.
   One grid per list; header and rows are subgrids, so the automatic columns align across every row. */
.db-list{container-type:inline-size;min-width:0;display:grid;grid-template-columns:minmax(0,1.4fr) auto minmax(0,1fr) minmax(max-content,.9fr)}
.db-list--transfers{grid-template-columns:minmax(0,.9fr) auto minmax(0,1.6fr) minmax(max-content,.9fr)}
.db-list>[role=rowgroup],.db-list__head,.db-list__row{display:grid;grid-column:1/-1;grid-template-columns:subgrid}
.db-list__head,.db-list__row{align-items:center}
.db-list__head{background:var(--surface);border-top:1px solid var(--line);border-bottom:1px solid var(--line);color:var(--muted);font-size:var(--fs-xs);font-weight:600}
.db-list__head>span{padding:10px 14px}
.db-list__row{border-bottom:1px solid var(--line);font-size:var(--fs-md);color:var(--text);transition:background-color .2s}
.db-list__row:hover{background:var(--surface-2)}
.db-list__row:last-child{border-bottom:0;border-radius:0 0 var(--r) var(--r)}
.db-list__cell{display:block;min-width:0;padding:12px 14px;text-align:left}
.db-list__head>span:first-child,.db-list__cell:first-child{padding-left:20px}
.db-list__head>span:last-child,.db-list__cell:last-child{padding-right:20px}
.db-list__cell .table-name-button{font-size:var(--fs-md);line-height:1.6;padding:2px 0}
.db-list__sub{display:block;margin-top:2px;color:var(--faint);font-size:var(--fs-xs);line-height:1.5}
.db-list__status .status{white-space:nowrap}
@container (max-width:560px){
 .db-list,.db-list>[role=rowgroup]{display:block}
 .db-list__head{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);padding:0;border:0}
 .db-list__row{grid-template-columns:auto minmax(0,1fr) auto;gap:0 8px;padding:10px 16px}
 .db-list__cell,.db-list__cell:first-child,.db-list__cell:last-child{padding:0}
 .db-list__id{grid-column:1/3;grid-row:1}
 .db-list__status{grid-column:3;grid-row:1;justify-self:end}
 .db-list__date,.db-list__place{grid-row:2;margin-top:4px;font-size:var(--fs-sm);color:var(--muted)}
 .db-list__date{grid-column:1}
 .db-list__place{grid-column:2/4}
 .db-list__place::before{content:"· ";color:var(--faint)}
}

/* Sales indicators: keep mini charts beside the value, above the full-width comparison. */
.db-kpi:has(.db-mbars,.db-spark) .db-kpi__row{display:grid;grid-template-columns:minmax(0,1fr) clamp(48px,24cqi,76px);gap:8px 12px;align-items:start}
.db-kpi:has(.db-mbars,.db-spark) .db-kpi__fig{display:contents}
.db-kpi:has(.db-mbars,.db-spark) :is(.stat__label,.stat__val){grid-column:1}
.db-kpi:has(.db-mbars,.db-spark) .stat__val{font-size:clamp(20px,9cqi,32px)}
.db-kpi:has(.db-mbars,.db-spark) .stat__meta{grid-column:1/-1;contain:none}
.db-kpi:has(.db-mbars,.db-spark) .db-kpi__mini{grid-column:2;grid-row:1/3;align-self:start;width:100%;min-width:0;height:36px;justify-content:flex-end}
.db-kpi:has(.db-mbars,.db-spark) .db-mbars{width:100%;height:36px;gap:3px}
.db-kpi:has(.db-mbars,.db-spark) .db-mt{width:auto;min-width:0;flex:1}

.db-kpi:has(.db-spark) .db-spark{width:100%;height:36px}

/* Labor cost: let the description use the full card width below the value and ring. */
.db-kpi[href="#hr-payroll"] .db-kpi__row{display:grid;grid-template-columns:minmax(0,1fr) 46px;gap:8px 12px;align-items:start}
.db-kpi[href="#hr-payroll"] .db-kpi__fig{display:contents}
.db-kpi[href="#hr-payroll"] :is(.stat__label,.stat__val){grid-column:1}
.db-kpi[href="#hr-payroll"] .db-kpi__mini{grid-column:2;grid-row:1/3;align-self:start;width:46px;height:46px;min-width:0}
.db-kpi[href="#hr-payroll"] .stat__meta{grid-column:1/-1;contain:none;flex-wrap:nowrap}
.db-kpi[href="#hr-payroll"] .stat__meta>span:not(.delta){min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.db-kpi[href="#hr-payroll"] .db-kpi__mini{position:static}
.db-kpi[href="#hr-payroll"] .db-kpi__row .stat__label{padding-right:0}

/* Assistant: chat with specialists. Uses the shared panel, button, status and token styles. */
.assistant{position:relative;display:flex;flex-direction:column;gap:0;height:max(560px,calc(100dvh - var(--assistant-offset,160px)));min-height:0}
/* The chat sits straight on the page, in a centred column, with no card around it. */
.assistant-chat{flex:1;min-height:0;min-width:0;display:flex;flex-direction:column;overflow:hidden;width:100%;max-width:980px;margin:0 auto}
.assistant-log{flex:1;min-height:0;overflow:auto;padding:24px clamp(16px,3vw,40px) 12px;display:flex;flex-direction:column;gap:14px;scroll-behavior:smooth}
.assistant-avatar{flex:none;display:grid;place-items:center;width:30px;height:30px}
/* The welcome avatar is sized here: large on the page, smaller in the floating window. */
.assistant-avatar.is-large{width:128px;height:128px}
.assistant-avatar.is-large>.doogy{width:100%;height:100%}
.assistant--mini .assistant-avatar.is-large{width:72px;height:72px}
/* Opening screen: greeting by name and a question, the composer in the middle and suggestion pills under it. */
.assistant-welcome{margin:auto;max-width:760px;text-align:center;display:grid;justify-items:center;gap:10px}
.assistant-hello{margin:0;font-size:clamp(30px,3.4vw,44px);font-weight:600;letter-spacing:-.02em;line-height:1.1}
.assistant-question{margin:0;color:var(--muted);font-size:var(--fs-lg)}
.assistant-suggestions{display:flex;flex-wrap:wrap;justify-content:center;gap:8px;width:min(760px,100%);margin:16px auto 0}
.assistant-suggestions:empty{display:none}
.assistant-suggestions button{display:inline-flex;align-items:center;gap:8px;padding:9px 14px;border:0;border-radius:999px;background:var(--float);box-shadow:inset 0 0 0 1px var(--line-2);color:var(--text);font:inherit;font-size:var(--fs-sm);font-weight:600;cursor:pointer}
.assistant-suggestions button .icon,.assistant-suggestions button svg{width:16px;height:16px;color:var(--muted)}
/* The hover tint is translucent, so it sits on the opaque surface and the dots stay hidden. */
.assistant-suggestions button:hover{background:linear-gradient(var(--well),var(--well)),var(--float)}
.assistant:not(.assistant--mini) .assistant-compose{margin-bottom:2px}
.assistant.is-welcome:not(.assistant--mini){justify-content:space-evenly}
.assistant.is-welcome:not(.assistant--mini) .assistant-chat{flex:none;justify-content:center;overflow:visible}
.assistant.is-welcome:not(.assistant--mini) .assistant-log{flex:none;overflow:visible;padding:0 16px 26px}
.assistant.is-welcome:not(.assistant--mini) .assistant-compose{width:min(760px,100%);margin:0 auto;box-sizing:border-box;box-shadow:inset 0 0 0 1px var(--line-2),var(--shadow)}
.assistant-msg{display:flex;gap:10px;align-items:flex-start;max-width:min(760px,100%)}
.assistant-msg.is-user{align-self:flex-end;justify-content:flex-end}
.assistant-bubble{min-width:0;line-height:1.5;overflow-wrap:anywhere}
.assistant-msg:not(.is-user) .assistant-bubble{padding-top:4px}
.assistant-msg.is-user .assistant-bubble{padding:10px 14px;border-radius:18px 18px 4px 18px;background:var(--well)}
.assistant-bubble p{margin:0 0 8px}.assistant-bubble p:last-child{margin-bottom:0}
.assistant-bubble ul,.assistant-bubble ol{margin:0 0 8px;padding-left:20px}.assistant-bubble li{margin:2px 0}
.assistant-bubble code{padding:1px 5px;border-radius:6px;background:var(--well);font-size:.92em}
.assistant-event{display:flex;align-items:center;gap:8px;align-self:center;color:var(--muted);font-size:var(--fs-xs)}
.assistant-event.is-tool{align-self:flex-start;margin-left:40px}
.assistant-event .icon{width:14px;height:14px}
.assistant-typing{display:flex;align-items:center;gap:10px;color:var(--muted);font-size:var(--fs-sm)}
@media (prefers-reduced-motion:reduce){.assistant-log{scroll-behavior:auto}}
.assistant-fail{align-items:center}
.assistant-error{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.assistant-card{margin-left:40px;padding:16px 18px;border-radius:18px;background:var(--float);box-shadow:inset 0 0 0 1px var(--line-2);display:grid;gap:12px;max-width:min(980px,calc(100% - 40px))}
.assistant-card>header{display:flex;align-items:flex-start;gap:10px}
.assistant-card>header>div{display:grid;gap:2px;flex:1;min-width:0}
.assistant-card>header span{color:var(--muted);font-size:var(--fs-xs)}
.assistant-card>header .status{flex:none}
.assistant-card>footer{display:flex;align-items:center;gap:10px;flex-wrap:wrap;justify-content:flex-end}
.assistant-card fieldset{border:0;margin:0;padding:0;min-width:0}
.assistant-choice .assistant-bubble p{margin:0}
.assistant-choice__options{display:flex;flex-wrap:wrap;gap:8px;margin-top:10px}
.assistant-choice__options button{padding:8px 14px;border:0;border-radius:999px;background:var(--float);box-shadow:inset 0 0 0 1px var(--line-2);color:var(--text);font:inherit;font-weight:600;cursor:pointer}
.assistant-choice__options button:hover:not(:disabled){box-shadow:inset 0 0 0 1px var(--line-2),var(--shadow)}
.assistant-choice__options button:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
.assistant-choice__options button:disabled{cursor:default;opacity:.55}
.assistant-choice__options button.is-chosen{opacity:1;background:var(--accent);color:var(--accent-ink);box-shadow:none}
.assistant-card__hint{margin:0;color:var(--muted);font-size:var(--fs-xs)}
.assistant-card .error-text:empty{display:none}
.assistant-spacer{flex:1}
/* Store, supplier, coverage and margin sit on one row; narrow cards fold them. */
.assistant-fields{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
.assistant-fields label{display:grid;gap:6px;min-width:0}
.assistant-fields label>span:first-child{font-size:var(--fs-xs);font-weight:600;color:var(--muted)}
.assistant-fields select,.assistant-fields input{width:100%;min-width:0}
.assistant-date{display:block}
.assistant-date .hd-date-caption{display:none}
.assistant-date .hd-date-field,.assistant-date .hd-date-trigger{width:100%}
.assistant-date .hd-date-value{white-space:nowrap}
.assistant-figures{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}
.assistant-figures div{display:grid;gap:2px;padding:10px 12px;border-radius:12px;background:var(--well)}
.assistant-figures span{color:var(--muted);font-size:var(--fs-xs)}
.assistant-figures strong{font-size:var(--fs-lg);font-variant-numeric:tabular-nums}
.assistant-warnings{margin:0;padding:0;list-style:none;display:grid;gap:4px;font-size:var(--fs-xs);color:var(--muted)}
.assistant-warnings li{display:flex;gap:6px;align-items:flex-start}
.assistant-warnings .icon{width:14px;height:14px;flex:none;margin-top:1px;color:var(--warning)}
.assistant-table{overflow:auto;max-height:420px;border-radius:12px;box-shadow:inset 0 0 0 1px var(--line)}
.assistant-table table{width:100%;border-collapse:collapse;font-size:var(--fs-sm)}
.assistant-table th{position:sticky;top:0;z-index:1;padding:8px 10px;background:var(--surface);color:var(--muted);font-size:var(--fs-xs);font-weight:600;text-align:left;white-space:nowrap;box-shadow:inset 0 -1px 0 var(--line)}
.assistant-table td{padding:8px 10px;border-top:1px solid var(--line);vertical-align:top}
.assistant-table tr:first-child td{border-top:0}
.assistant-table td small{display:block;color:var(--muted);font-size:var(--fs-xs)}
.assistant-table td .assistant-note{color:var(--warning)}
.assistant-table tr.is-zero td{color:var(--muted)}
.assistant-table .mono{font-variant-numeric:tabular-nums;white-space:nowrap}
.assistant-qty{display:flex;align-items:center;gap:6px}
.assistant-qty input{width:76px;height:32px;min-height:32px;padding:0 8px;text-align:right}
.assistant-qty small{color:var(--muted);font-size:var(--fs-xs);white-space:nowrap}
.assistant-compose{display:grid;gap:4px;margin:0 clamp(12px,2.4vw,32px) 16px;padding:10px 8px 8px 8px;border-radius:24px;background:var(--float);box-shadow:inset 0 0 0 1px var(--line-2)}
.assistant-compose textarea{min-height:40px;max-height:180px;padding:6px 10px;border:0;background:none;box-shadow:none;color:var(--text);font:inherit;line-height:1.45;resize:none;outline:none}
.assistant-compose textarea:focus,.assistant-compose textarea:focus-visible{outline:none!important;box-shadow:none!important}
.assistant-compose__bar{display:flex;align-items:center;justify-content:space-between;gap:10px;min-width:0}
.assistant-compose .btn.icon-only{width:40px;padding:0;justify-content:center;flex:none}
/* Specialist picker: a pill that unfolds into a searchable list (after rare-ui's Model Picker). */
.specialist-picker{position:relative;display:inline-flex;min-width:0}
.sp-trigger{display:flex;align-items:center;gap:8px;height:32px;padding:0 8px 0 10px;border:0;border-radius:999px;background:none;color:var(--text);font:inherit;font-size:13px;font-weight:500;cursor:pointer;outline:none;transition:background-color .15s}
.sp-trigger:hover:not(:disabled){background:var(--well)}
.sp-trigger:focus-visible{box-shadow:0 0 0 2px var(--line-2)}
.sp-trigger:disabled{opacity:.55;cursor:default}
.sp-trigger.is-open{opacity:0}
.sp-icon{display:grid;place-items:center;flex:none;width:16px;height:16px}
.sp-icon .icon,.sp-icon svg{width:16px;height:16px}
.sp-name{display:inline-flex;white-space:pre}
.sp-name.is-rolling span{animation:sp-roll .42s cubic-bezier(.2,.9,.25,1.06) both}
@keyframes sp-roll{from{opacity:0;transform:translateY(.7em);filter:blur(3px)}}
.sp-chevron{display:grid;place-items:center;opacity:.45}
.sp-chevron .icon,.sp-chevron svg{width:14px;height:14px}
.sp-layer{position:fixed;z-index:1200;width:0;height:0;font-size:13px;color:var(--text)}
.sp-surface{position:absolute;left:0;top:0;pointer-events:none;border:1px solid var(--line-2);background:var(--surface);box-shadow:0 12px 40px -12px rgba(0,0,0,.25);opacity:0;transition:height .3s cubic-bezier(.2,.9,.25,1.06)}
[data-theme="dark"] .sp-surface{box-shadow:0 12px 40px -12px rgba(0,0,0,.7)}
.sp-panel{position:absolute;left:0;top:0;display:flex;flex-direction:column}
.sp-layer.is-closing .sp-panel{pointer-events:none}
.sp-search{display:flex;align-items:center;gap:8px;height:40px;padding:0 14px;border-bottom:1px solid var(--line);color:var(--muted)}
.sp-search .icon,.sp-search svg{width:14px;height:14px;flex:none}
.sp-search input,.sp-search input:focus,.sp-search input:focus-visible{flex:1;min-width:0;height:100%;min-height:0;padding:0;border:0;border-radius:0;background:none;box-shadow:none!important;outline:none!important;color:var(--text);font:inherit;font-size:13px}
.sp-search input::placeholder{color:var(--muted);opacity:.8}
.sp-list{position:relative;max-height:320px;overflow-y:auto;padding:6px;outline:none;scrollbar-width:none}
.sp-highlight{position:absolute;top:0;left:6px;right:6px;height:36px;border-radius:10px;background:var(--well);opacity:0;pointer-events:none}
.sp-highlight.is-placed{transition:transform .18s cubic-bezier(.3,0,.2,1),height .18s,opacity .15s}
.sp-group{position:relative;padding:8px 10px 4px;font-size:11px;font-weight:500;color:var(--muted);opacity:.8}
.sp-row{position:relative;display:flex;align-items:center;gap:10px;height:36px;padding:0 10px;border-radius:10px;font-weight:500;color:var(--muted);cursor:pointer;transition:color .15s}
.sp-row.is-active,.sp-row[aria-selected="true"]{color:var(--text)}
.sp-row.is-soon{cursor:default;opacity:.6}
.sp-row__name{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.sp-check{display:grid;place-items:center;opacity:.6;transition:opacity .15s}
.sp-check .icon,.sp-check svg{width:14px;height:14px}
.sp-layer.is-closing .sp-check{opacity:0}
.sp-empty{padding:24px 10px;text-align:center;color:var(--muted)}
.sp-foot{padding:12px 14px;border-top:1px solid var(--line);font-size:12px;color:var(--muted);line-height:1.4}
.sp-desc{display:block}
@media (prefers-reduced-motion:reduce){.sp-name.is-rolling span{animation:none}.sp-highlight.is-placed,.sp-surface{transition:none}}
@media (max-width:1080px){
 /* With the dock at the bottom the page keeps its own height: top bar above, dock and footer below. */
 .assistant{height:max(460px,calc(100dvh - 218px))}
 .assistant-card{margin-left:0;max-width:100%}
 .assistant-fields{grid-template-columns:repeat(2,minmax(0,1fr))}
 .assistant-event.is-tool,.assistant-typing{margin-left:0}
 .assistant-figures{grid-template-columns:repeat(2,minmax(0,1fr))}
}

/* The Doogy AI entry in the dock keeps its icon in the brand yellow. */
.dock__btn[data-module="assistant"] .icon{color:var(--accent)}


/* Floating Doogy AI: a living button at the bottom right and the small chat window above it. */
/* Above the lists' pagination, which sits pinned at the dock's base (60px tall), so Previous/Next stay clear. */
#assistant-float-root{position:fixed;right:22px;bottom:96px;z-index:55;display:flex;flex-direction:column;align-items:flex-end;gap:14px;pointer-events:none}
#assistant-float-root>*{pointer-events:auto}
.assistant-fab{position:relative;display:grid;place-items:center;width:60px;height:60px;padding:0;border:0;border-radius:50%;background:none;cursor:pointer;filter:drop-shadow(0 12px 18px rgba(0,0,0,.22));transition:transform .22s var(--ease-out,ease-out)}
/* The floating button is the Doogy avatar alone, without a disc or rings around it. */
.assistant-fab:hover{transform:translateY(-2px) scale(1.05)}
.assistant-fab:active{transform:scale(.96)}
.assistant-fab:focus-visible{outline:2px solid var(--accent);outline-offset:4px}
.assistant-float{width:min(410px,calc(100vw - 28px));height:min(640px,calc(100dvh - 198px));display:flex;flex-direction:column;overflow:hidden;border-radius:24px;background:var(--surface);color:var(--text);box-shadow:0 30px 70px -24px #000a,inset 0 0 0 1px var(--line-2);transform-origin:bottom right;animation:assistant-float-in .24s var(--ease-out,ease-out)}
@keyframes assistant-float-in{from{opacity:0;transform:translateY(12px) scale(.94)}}
.assistant-float__head{display:flex;align-items:center;gap:8px;padding:12px 12px 12px 16px;border-bottom:1px solid var(--line)}
.assistant-float__head strong{flex:1;min-width:0;font-size:var(--fs-md,15px)}
.assistant-float__head .icon-btn{display:grid;place-items:center;background:none;cursor:pointer;color:var(--muted)}
.assistant-float__head .icon-btn:hover{background:var(--well);color:var(--text)}
.assistant-float__head .icon-btn svg{width:17px;height:17px}
.assistant--mini{display:flex;flex:1;min-height:0;height:auto;gap:0}
.assistant--mini>.assistant-chat{flex:1;min-width:0;border-radius:0;background:none;box-shadow:none;border:0;backdrop-filter:none}
.assistant--mini .assistant-log{padding:16px 14px 10px}
.assistant--mini .assistant-card{margin-left:0;max-width:100%}
.assistant--mini .assistant-hello{font-size:24px}
.assistant--mini .assistant-question{font-size:var(--fs-md,15px)}
.assistant--mini .assistant-compose{order:2}
.assistant--mini .assistant-suggestions{order:1;width:auto;margin:0 12px 4px;justify-content:center}
.assistant--mini .assistant-fields{grid-template-columns:1fr}
.assistant--mini .assistant-compose{margin:8px 12px 12px}
@media (max-width:700px){#assistant-float-root{right:14px;bottom:calc(92px + env(safe-area-inset-bottom))}.assistant-float{height:min(640px,calc(100dvh - 200px))}}
@media (prefers-reduced-motion:reduce){.assistant-float{animation:none}.assistant-fab{transition:none}}
@media print{#assistant-float-root{display:none}}
.assistant-compose__new{display:grid;place-items:center;background:none;cursor:pointer;color:var(--muted)}
.assistant-compose__new:hover{background:var(--well);color:var(--text)}
.assistant-compose__new svg{width:18px;height:18px}
.assistant-model{margin-right:auto;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:var(--fs-sm);color:var(--muted)}
.assistant-model strong{font-weight:600;color:var(--text)}
.assistant-model span{font-weight:500}
.assistant-model[hidden]{display:none}
.assistant-model[hidden]+*{margin-left:auto}
.assistant-mic{display:grid;place-items:center;background:none;cursor:pointer;color:var(--muted);position:relative}
.assistant-mic:hover{background:var(--well);color:var(--text)}
.assistant-mic svg{width:18px;height:18px}
.assistant-mic.is-listening{background:var(--danger);color:#fff}
.assistant-mic.is-listening::after{content:"";position:absolute;inset:0;border-radius:50%;box-shadow:0 0 0 0 var(--danger);animation:assistant-mic-pulse 1.4s ease-out infinite}
.assistant-mic.is-listening svg{width:13px;height:13px;fill:currentColor}
@keyframes assistant-mic-pulse{to{box-shadow:0 0 0 10px transparent}}
@media (prefers-reduced-motion:reduce){.assistant-mic.is-listening::after{animation:none}}
@media (max-width:560px){.assistant-fields{grid-template-columns:1fr}}

/* Voice mode: a live call bar above the composer. */
.assistant-mic[hidden]{display:none}
.assistant-primary svg{animation:assistant-primary-in .18s var(--ease-out,ease-out)}
@keyframes assistant-primary-in{from{opacity:0;transform:scale(.6)}}
@media (prefers-reduced-motion:reduce){.assistant-primary svg{animation:none}}
#assistant-call:empty{display:none}
/* Voice mode: Doogy floats above the composer; its switches live in the composer bar. */
.assistant-call{display:grid;place-items:center;padding:6px 0 16px;animation:assistant-float-in .24s var(--ease-out,ease-out)}
.assistant--mini .assistant-call{padding:4px 0 12px}
.assistant-voice{display:grid;place-items:center;padding:14px;border-radius:50%;background:radial-gradient(circle,color-mix(in srgb,var(--accent) 34%,transparent) 0,transparent 70%);transition:transform .35s var(--ease-out,ease-out)}
.assistant-voice .doogy{width:104px;height:104px}
.assistant--mini .assistant-voice .doogy{width:84px;height:84px}
.assistant-call.is-hearing .assistant-voice{transform:scale(1.07)}
.assistant-call-controls{display:flex;align-items:center;gap:2px}
.assistant-call-controls:empty{display:none}
.assistant-call-controls .icon-btn{display:grid;place-items:center;background:none;cursor:pointer;color:var(--muted)}
.assistant-call-controls .icon-btn:hover{background:var(--well);color:var(--text)}
.assistant-call-controls .icon-btn svg{width:18px;height:18px}
.assistant-call-controls .icon-btn.is-off{color:var(--danger)}
@media (prefers-reduced-motion:reduce){.assistant-call,.assistant-voice{animation:none!important;transition:none}}

/* Doogy, the Doogy AI avatar (doogy-avatar.js). The state changes the eyes, the body's movement and
   what sits above the head: the mustard runs while thinking, turns into audio bars while speaking
   and into a tick when done. Compact avatars (under 40px) are body and eyes only. */
.doogy{--doogy-body:var(--accent);--doogy-eye:#181818;--doogy-ring:var(--surface-2,#fff);display:inline-block;flex:none;line-height:0}
.doogy>svg{display:block;width:100%;height:100%;overflow:visible;animation:none}
.doogy__body{fill:var(--doogy-body);transition:fill .35s}
.doogy__open{fill:var(--doogy-eye)}
.doogy__happy,.doogy__flat{stroke:var(--doogy-eye);fill:none;stroke-width:5.5;stroke-linecap:round;display:none}
.doogy__top{stroke:var(--doogy-body);fill:none;stroke-width:6.5;stroke-linecap:round;stroke-linejoin:round;transition:stroke .35s}
.doogy__top.is-thin{stroke-width:5}
.doogy__seed,.doogy__bar{fill:var(--doogy-body)}
.doogy__wave,.doogy__line,.doogy__bars,.doogy__check,.doogy__badge{display:none}
.doogy__bodywrap,.doogy__char,.doogy__bar,.doogy__check{transform-box:fill-box;transform-origin:50% 100%}
.doogy__open,.doogy__badge{transform-box:fill-box;transform-origin:50% 50%}
.doogy__gaze{transform:translate(calc(var(--doogy-gx,0)*1px),calc(var(--doogy-gy,0)*1px));transition:transform .18s ease-out}
.doogy__bodywrap{animation:doogy-breathe 4s ease-in-out infinite}
.doogy__open{animation:doogy-blink 4.4s infinite}
.doogy.is-compact .doogy__topping{display:none}
.doogy.is-compact .doogy__badge{transform:scale(1.35)}
.doogy__dot{fill:var(--text);stroke:var(--doogy-ring);stroke-width:3.5}
.doogy__mark{stroke:#fff;stroke-width:3.4;stroke-linecap:round;fill:none;display:none}
.doogy[data-state=idle] .doogy__wave{display:block}
.doogy[data-state=listening] .doogy__line{display:block;animation:doogy-fade 1.6s ease-in-out infinite}
.doogy[data-state=listening] .doogy__bodywrap{animation:doogy-listen 1.6s ease-in-out infinite}
.doogy[data-state=listening] .doogy__open{animation:none;transform:scale(1.18,1.08)}
.doogy[data-state=thinking] .doogy__wave{display:block;stroke-dasharray:11 9;animation:doogy-flow 1s linear infinite}
.doogy[data-state=thinking] .doogy__eyes{animation:doogy-think 3.2s ease-in-out infinite}
.doogy[data-state=working] .doogy__wave{display:block;stroke-dasharray:11 9;animation:doogy-flow .45s linear infinite}
.doogy[data-state=working] .doogy__char{animation:doogy-bob .5s ease-in-out infinite alternate}
.doogy[data-state=working] .doogy__eyes{animation:doogy-scan 1.3s ease-in-out infinite alternate}
.doogy[data-state=working] .doogy__open{animation:none;transform:scaleY(.5)}
.doogy[data-state=waiting] .doogy__char{animation:doogy-tilt 2.6s ease-in-out infinite}
.doogy[data-state=waiting] .doogy__open{animation:none;transform:scale(1.12)}
.doogy[data-state=waiting] .doogy__badge{display:block;animation:doogy-pulse 1.3s ease-in-out infinite}
.doogy[data-state=speaking] .doogy__bodywrap{animation:doogy-speak .34s ease-in-out infinite alternate}
.doogy[data-state=speaking] .doogy__bars{display:block}
.doogy[data-state=speaking] .doogy__bar{animation:doogy-bar .5s ease-in-out infinite alternate}
.doogy[data-state=speaking] .doogy__bar:nth-child(2){animation-delay:-.2s}
.doogy[data-state=speaking] .doogy__bar:nth-child(3){animation-delay:-.35s}
.doogy[data-state=speaking] .doogy__bar:nth-child(4){animation-delay:-.1s}
.doogy[data-state=done] .doogy__open{display:none}
.doogy[data-state=done] .doogy__happy{display:block}
.doogy[data-state=done] .doogy__check{display:block;stroke-dasharray:44;animation:doogy-draw .5s ease-out both}
.doogy[data-state=done] .doogy__char{animation:doogy-hop .8s cubic-bezier(.3,.7,.3,1)}
.doogy[data-state=blocked]{--doogy-body:#c5c5c5}
.doogy[data-state=blocked] .doogy__open,.doogy[data-state=muted] .doogy__open{display:none}
.doogy[data-state=blocked] .doogy__flat,.doogy[data-state=muted] .doogy__flat{display:block}
.doogy[data-state=blocked] .doogy__badge{display:block}
.doogy[data-state=blocked] .doogy__dot{fill:var(--danger,#b42318)}
.doogy[data-state=blocked] .doogy__mark{display:block}
.doogy[data-state=blocked] .doogy__char{animation:doogy-shake 3s ease-in-out infinite}
.doogy[data-state=blocked] .doogy__bodywrap,.doogy[data-state=muted] .doogy__bodywrap{animation:none}
.doogy[data-state=muted]{--doogy-body:#c5c5c5}
.doogy[data-state=muted] .doogy__flat{opacity:.55}
.doogy.is-still *{animation:none!important}
@keyframes doogy-breathe{0%,100%{transform:scale(1)}50%{transform:scale(1.012,1.03)}}
@keyframes doogy-blink{0%,93%,100%{transform:scaleY(1)}96.5%{transform:scaleY(.08)}}
@keyframes doogy-flow{to{stroke-dashoffset:-40}}
@keyframes doogy-fade{0%,100%{opacity:.45}50%{opacity:1}}
@keyframes doogy-listen{0%,100%{transform:scale(1.03)}50%{transform:scale(1.06)}}
@keyframes doogy-think{0%,100%{transform:translate(4px,-5px)}50%{transform:translate(-3px,-5px)}}
@keyframes doogy-bob{to{transform:translateY(-2.5px)}}
@keyframes doogy-scan{from{transform:translateX(-5px)}to{transform:translateX(5px)}}
@keyframes doogy-tilt{0%,55%,100%{transform:rotate(0)}70%,85%{transform:rotate(-8deg)}}
@keyframes doogy-pulse{0%,100%{transform:scale(1)}50%{transform:scale(1.22)}}
@keyframes doogy-speak{from{transform:scale(1.035,.955)}to{transform:scale(.975,1.045)}}
@keyframes doogy-bar{from{transform:scaleY(.3)}to{transform:scaleY(1)}}
@keyframes doogy-draw{from{stroke-dashoffset:44}to{stroke-dashoffset:0}}
@keyframes doogy-hop{0%,100%{transform:translateY(0) scale(1)}25%{transform:translateY(0) scale(1.06,.9)}55%{transform:translateY(-12px) scale(.96,1.06)}85%{transform:translateY(0) scale(1.04,.95)}}
@keyframes doogy-shake{0%,82%,100%{transform:translateX(0)}86%{transform:translateX(-4px)}90%{transform:translateX(4px)}94%{transform:translateX(-2px)}}
@media (prefers-reduced-motion:reduce){.doogy *{animation:none!important;transition:none!important}}

/* ---- Scenery of the Doogy AI page: dots behind everything, the agents strip, the opening ---- */

/* The agents pass by in an endless strip; it stops under the pointer and fades at both ends. */
/* The strip clips the cards that scroll past its edges; the room below fits a hovered card's shadow (about 45px)
   and the negative margin keeps the page's spacing unchanged. */
.assistant-gallery{flex:none;position:relative;overflow:hidden;margin:0 -8px -32px;padding:12px 0 48px;-webkit-mask-image:linear-gradient(90deg,transparent,#000 9%,#000 91%,transparent);mask-image:linear-gradient(90deg,transparent,#000 9%,#000 91%,transparent)}
.assistant-gallery:empty{display:none}
.assistant-gallery__track{display:flex;width:max-content;animation:assistant-gallery-run 46s linear infinite}
.assistant-gallery:hover .assistant-gallery__track,.assistant-gallery:focus-within .assistant-gallery__track{animation-play-state:paused}
.assistant-gallery__set{display:flex;gap:16px;padding-right:16px}
@keyframes assistant-gallery-run{to{transform:translateX(calc(-100%/3))}}
.assistant-agent{flex:none;display:grid;grid-template-columns:minmax(0,1fr) auto;grid-template-rows:auto auto 1fr;align-content:start;column-gap:12px;row-gap:0;width:284px;min-height:184px;padding:22px 22px 24px;border:0;border-radius:24px;background:var(--float);box-shadow:inset 0 0 0 1px var(--line-2);color:var(--text);font:inherit;text-align:left;cursor:pointer;transition:transform .25s var(--ease-out),box-shadow .25s}
.assistant-agent:hover{transform:translateY(-3px);box-shadow:inset 0 0 0 1px var(--line-2),var(--shadow)}
.assistant-agent:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
.assistant-agent.is-soon{cursor:default}
.assistant-agent.is-soon .assistant-agent__avatar,.assistant-agent.is-soon .assistant-agent__text strong,.assistant-agent.is-soon .assistant-agent__text small{opacity:.62}
.assistant-agent__avatar{grid-column:1;grid-row:1;justify-self:start;display:grid;place-items:center;width:58px;height:58px;margin-bottom:16px}
/* Avatar and tag share the top row; the name and a description of up to two lines sit under them. */
.assistant-agent__text{display:contents}
.assistant-agent__text strong{grid-column:1/3;grid-row:2;font-size:var(--fs-md,15px);font-weight:600;line-height:1.25}
.assistant-agent__text small{grid-column:1/3;grid-row:3;align-self:start;margin-top:6px;color:var(--muted);font-size:var(--fs-sm);line-height:1.45;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.assistant-agent__tag{grid-column:2;grid-row:1;align-self:start;padding:3px 9px;border-radius:999px;background:var(--well);color:var(--muted);font-size:var(--fs-2xs);font-weight:700;white-space:nowrap}
.assistant-agent:not(.is-soon) .assistant-agent__tag{background:var(--accent);color:var(--accent-ink)}
/* Short windows keep the strip: the cards lie flat (avatar beside the text) and the greeting avatar shrinks.
   Only very short windows drop the strip. */
@media (max-height:860px){
 .assistant-agent{grid-template-columns:auto minmax(0,1fr) auto;grid-template-rows:auto auto;align-content:center;column-gap:14px;width:320px;min-height:0;padding:14px 16px}
 .assistant-agent__avatar{grid-column:1;grid-row:1/3;align-self:center;width:46px;height:46px;margin:0}
 .assistant-agent__text strong{grid-column:2;grid-row:1;align-self:end}
 .assistant-agent__text small{grid-column:2/4;grid-row:2;margin-top:2px;-webkit-line-clamp:1}
 .assistant-agent__tag{grid-column:3;grid-row:1}
 .assistant-gallery{padding:8px 0 48px;margin-bottom:-38px}
 .assistant:not(.assistant--mini) .assistant-avatar.is-large{width:96px;height:96px}
}
@media (max-height:620px){.assistant-gallery{display:none}}

/* Opening: the avatar alone with a counter, then everything arrives in turn. */
.assistant-welcome{position:relative}
.assistant-loader{position:absolute;left:50%;top:146px;transform:translateX(-50%);font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:12px;letter-spacing:.24em;color:var(--muted)}
.assistant-word{display:inline-block;white-space:nowrap}
.assistant-ch{display:inline-block}
.assistant.is-loading .assistant-hello,.assistant.is-loading .assistant-question,.assistant.is-loading .assistant-compose,.assistant.is-loading .assistant-suggestions,.assistant.is-loading .assistant-gallery{opacity:0}
.assistant.is-loading .assistant-avatar.is-large{animation:assistant-intro-wait 1.1s ease-in-out infinite}
.assistant.is-intro:not(.is-loading) .assistant-avatar.is-large{animation:assistant-intro-hop .6s var(--ease-out) both}
.assistant.is-intro:not(.is-loading) .assistant-ch{animation:assistant-intro-rise .55s var(--ease-out) both;animation-delay:calc(var(--i)*24ms)}
.assistant.is-intro:not(.is-loading) .assistant-question{animation:assistant-intro-fade .5s ease-out .55s both}
.assistant.is-intro:not(.is-loading) .assistant-compose{animation:assistant-intro-up .6s var(--ease-out) .7s both}
.assistant.is-intro:not(.is-loading) .assistant-suggestions button{animation:assistant-intro-pop .45s var(--ease-out) both}
.assistant.is-intro:not(.is-loading) .assistant-suggestions button:nth-child(1){animation-delay:.95s}
.assistant.is-intro:not(.is-loading) .assistant-suggestions button:nth-child(2){animation-delay:1.02s}
.assistant.is-intro:not(.is-loading) .assistant-suggestions button:nth-child(3){animation-delay:1.09s}
.assistant.is-intro:not(.is-loading) .assistant-suggestions button:nth-child(4){animation-delay:1.16s}
.assistant.is-intro:not(.is-loading) .assistant-gallery{animation:assistant-intro-up .8s var(--ease-out) 1.25s both}
@keyframes assistant-intro-wait{0%,100%{transform:translateY(0)}50%{transform:translateY(-5px)}}
@keyframes assistant-intro-hop{0%{transform:scale(1)}40%{transform:scale(1.16) translateY(-8px)}100%{transform:scale(1)}}
@keyframes assistant-intro-rise{from{opacity:0;transform:translateY(.55em)}}
@keyframes assistant-intro-fade{from{opacity:0}}
@keyframes assistant-intro-up{from{opacity:0;transform:translateY(18px)}}
@keyframes assistant-intro-pop{from{opacity:0;transform:scale(.9)}}
@media (prefers-reduced-motion:reduce){.assistant-gallery__track{animation:none}.assistant-agent{transition:none}}
