/* Hallmark · shape: app screen · genre: editorial · theme: brand · redesign: full
 * paper: oklch(96.8% 0.012 85) · accent: oklch(54.5% 0.165 33) · display: Secular One · body: Heebo
 * nav: kept top bar on deep sea · signature: the order sentence, what you get in plain Hebrew · states: loading, empty, error, full
 * axes: light/grotesk-heavy/warm · posture: restrained · contrast: pass · v2.0.0 */
/* Hallmark · pre-emit critique: P4 H5 E4 S5 R4 V4 · weakest: P, the shop tablet stays calm rather than argued; the coral is kept for the single action on each screen */
/* Hallmark · waive 39b · tablet buttons stay at 56px as the shop app requires · staff use the shop tablet standing at the counter and the project sets --tap for touch */
@import url("./tokens.css");
@import url("./base.css");

@font-face { font-family: 'Secular One'; font-weight: 400; font-display: swap; src: url('/fonts/secular-one-hebrew-400-normal.woff2') format('woff2'); unicode-range: U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F; }
@font-face { font-family: 'Secular One'; font-weight: 400; font-display: swap; src: url('/fonts/secular-one-latin-400-normal.woff2') format('woff2'); unicode-range: U+0000-00FF, U+2000-206F, U+2190-2193; }
@font-face { font-family: 'Heebo'; font-weight: 400; font-display: swap; src: url('/fonts/heebo-hebrew-400-normal.woff2') format('woff2'); unicode-range: U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F; }
@font-face { font-family: 'Heebo'; font-weight: 700; font-display: swap; src: url('/fonts/heebo-hebrew-700-normal.woff2') format('woff2'); unicode-range: U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F; }
@font-face { font-family: 'Heebo'; font-weight: 400; font-display: swap; src: url('/fonts/heebo-latin-400-normal.woff2') format('woff2'); unicode-range: U+0000-00FF, U+2000-206F, U+2190-2193; }
@font-face { font-family: 'Heebo'; font-weight: 700; font-display: swap; src: url('/fonts/heebo-latin-700-normal.woff2') format('woff2'); unicode-range: U+0000-00FF, U+2000-206F, U+2190-2193; }

* { -webkit-tap-highlight-color: transparent; }
html { scroll-padding-top: var(--space-2xl); }
body { font-size: 1.0625rem; font-variant-numeric: tabular-nums; }
button, input, select, textarea { color: inherit; }
a { color: var(--color-sea-2); }
.hidden { display: none !important; }
.muted { color: var(--color-muted); }
.ltr { direction: ltr; unicode-bidi: isolate; display: inline-block; }
.ico { display: inline-flex; flex: none; }
.ico svg { width: 1.2em; height: 1.2em; }
.link-on-sea { color: var(--color-on-sea); font-weight: 700; text-decoration: none; white-space: nowrap; }
.link-on-sea:hover { text-decoration: underline; }
.link-on-sea:focus-visible { outline-color: var(--color-focus-on-sea); }

/* ---------- כפתורים ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-xs);
  min-height: var(--tap); padding: 0 var(--space-lg);
  border-radius: var(--radius-input); border: 1px solid var(--color-sea);
  background: var(--color-sea); color: var(--color-on-sea);
  font-weight: 700; font-size: var(--text-lg); line-height: 1.1; text-decoration: none; white-space: nowrap;
  cursor: pointer; user-select: none;
  transition: background-color var(--dur-micro) var(--ease-out), transform var(--dur-micro) var(--ease-out);
}
.btn:hover { background: var(--color-sea-2); }
.btn:active { transform: scale(.985); }
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none; }
.btn.block { width: 100%; }
.btn.lg { min-height: var(--tap-lg); font-size: var(--text-xl); }
.btn.sm { min-height: var(--tap-sm); padding: 0 var(--space-md); font-size: var(--text-md); }
.btn.ghost { background: transparent; color: var(--color-sea); border-color: var(--color-muted); }
.btn.ghost:hover { background: var(--color-sea-soft); }
.btn.coral { background: var(--color-accent); border-color: var(--color-accent); color: var(--color-accent-ink); }
.btn.coral:hover { background: var(--color-accent-2); }
.btn.ok { background: var(--color-ok); border-color: var(--color-ok); color: var(--color-accent-ink); }
.btn.ok:hover { background: var(--color-ok-2); }
.btn.danger { background: transparent; color: var(--color-late); border-color: var(--color-late); }
.btn.danger:hover { background: var(--color-late-soft); }
.btn.wa { background: var(--color-wa-soft); color: var(--color-wa); border-color: var(--color-wa); }
.btn.wa:hover { background: var(--color-ok-soft); }

/* כפתורי בחירה */
.chips { display: flex; flex-wrap: wrap; gap: var(--space-xs); }
.chip {
  min-height: var(--tap); padding: var(--space-2xs) var(--space-md);
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2xs);
  border-radius: var(--radius-input); border: 1px solid var(--color-muted);
  background: var(--color-surface); color: var(--color-ink); font-weight: 400; cursor: pointer;
  transition: background-color var(--dur-micro) var(--ease-out);
}
.chip:hover { background: var(--color-sea-soft); }
.chip:active { transform: scale(.985); }
.chip.on { border-color: var(--color-sea); background: var(--color-sea); color: var(--color-on-sea); font-weight: 700; }
.chip.on:hover { background: var(--color-sea); }
.chip:disabled { opacity: .55; cursor: not-allowed; }
.chips.grow .chip { flex: 1 1 0; white-space: nowrap; }

/* סטפר כמות */
.stepper { display: flex; align-items: center; gap: var(--space-sm); }
.stepper button {
  width: var(--tap); height: var(--tap); border-radius: var(--radius-pill);
  border: 1px solid var(--color-sea); background: var(--color-surface); color: var(--color-sea);
  font-size: var(--text-2xl); font-weight: 400; cursor: pointer; line-height: 1;
  transition: background-color var(--dur-micro) var(--ease-out);
}
.stepper button:hover { background: var(--color-sea-soft); }
.stepper button:active { transform: scale(.96); }
.stepper button:disabled { opacity: .55; cursor: not-allowed; border-color: var(--color-muted); color: var(--color-muted); }
.stepper .val { min-width: 84px; text-align: center; font-size: var(--text-3xl); font-weight: 700; line-height: 1.1; }
.stepper .val small { display: block; font-size: var(--text-sm); font-weight: 400; color: var(--color-muted); }

/* שדות */
.field { display: grid; gap: var(--space-2xs); margin-bottom: var(--space-md); }
.field > span { font-size: var(--text-sm); font-weight: 700; color: var(--color-ink-2); }
.input {
  min-height: var(--tap); padding: 0 var(--space-md); width: 100%;
  border: 1px solid var(--color-muted); border-radius: var(--radius-input); background: var(--color-surface);
  font-size: var(--text-lg); outline: 2px solid transparent; outline-offset: -3px;
}
.input:focus-visible { outline-color: var(--color-focus); }
.input:disabled { opacity: .55; cursor: not-allowed; }
.input.tel { text-align: right; }
.input.narrow { max-width: 150px; }
.input.search { max-width: 420px; }
textarea.input { padding: var(--space-sm) var(--space-md); min-height: 88px; resize: vertical; }

/* משטחים */
.card { background: var(--color-surface); border: 1px solid var(--color-rule); border-radius: var(--radius-card); padding: var(--space-md); }
.panel { padding-block: var(--space-sm); border-block-start: 1px solid var(--color-rule); }
.section-title { font-size: var(--text-md); font-weight: 700; color: var(--color-ink-2); margin: var(--space-lg) 0 var(--space-xs); }
.section-title.first { margin-top: 0; }
.notice { padding: var(--space-sm) var(--space-md); border-radius: var(--radius-input); margin-bottom: var(--space-sm); }
.notice.ok { background: var(--color-ok-soft); }
.notice.warn { background: var(--color-warn-soft); }
.notice .big { display: block; font-family: var(--font-display); font-size: var(--text-xl); line-height: 1.2; }
.meta { display: flex; flex-wrap: wrap; column-gap: var(--space-sm); color: var(--color-muted); font-size: var(--text-md); }
.row-gap { display: flex; gap: var(--space-xs); flex-wrap: wrap; align-items: center; }
.top-gap { margin-top: var(--space-sm); }
.top-gap-lg { margin-top: var(--space-md); }
.form-row { display: flex; gap: var(--space-sm); flex-wrap: wrap; align-items: end; }
.form-row .field { flex: 0 1 auto; }
.form-row .btn { margin-bottom: var(--space-md); }

/* "מה תקבלו בפועל": החתימה של המוצר */
.outcome { background: var(--color-sea); color: var(--color-on-sea); border-radius: var(--radius-card); padding: var(--space-md); display: grid; gap: var(--space-2xs); }
.outcome .o-label { font-size: var(--text-sm); color: var(--color-on-sea-2); }
.outcome .o-main { font-family: var(--font-display); font-size: var(--text-2xl); line-height: 1.2; }
.outcome .o-trays { font-size: var(--text-lg); font-weight: 700; }
.outcome .o-extras { color: var(--color-on-sea-2); }
.outcome .o-price { display: flex; flex-wrap: wrap; column-gap: var(--space-sm); margin-top: var(--space-2xs); padding-top: var(--space-xs); border-top: 1px solid var(--color-sea-2); }
.outcome .o-price .fine { color: var(--color-on-sea-2); font-size: var(--text-sm); align-self: center; }

/* תגיות */
.tag { display: inline-flex; align-items: center; gap: var(--space-2xs); padding: var(--space-3xs) var(--space-xs); border-radius: var(--radius-pill); font-size: var(--text-sm); font-weight: 700; background: var(--color-sea-soft); color: var(--color-sea); white-space: nowrap; }
.tag.asap { background: var(--color-accent-soft); color: var(--color-accent-2); }
.tag.today { background: var(--color-warn-soft); color: var(--color-warn); }
.tag.flexible { background: var(--color-ok-soft); color: var(--color-ok); }
.tag.late { background: var(--color-late); color: var(--color-accent-ink); }
.tag.soon { background: var(--color-warn); color: var(--color-accent-ink); }
.tag.src { background: var(--color-paper-2); color: var(--color-ink-2); }

/* הודעה קופצת */
.toast {
  position: fixed; inset-inline: var(--space-md); bottom: var(--space-lg); z-index: var(--z-toast);
  max-width: 520px; margin: 0 auto; padding: var(--space-sm) var(--space-md);
  background: var(--color-ink); color: var(--color-on-sea); border-radius: var(--radius-input); font-weight: 700; text-align: center;
}
.toast.err { background: var(--color-late); color: var(--color-accent-ink); }

/* ===================== צד לקוח (מובייל) ===================== */
.l-app { --col: 640px; min-height: 100dvh; padding-bottom: 120px; }
.l-top {
  position: sticky; inset-block-start: 0; z-index: var(--z-sticky);
  display: flex; align-items: center; gap: var(--space-sm); min-height: 64px;
  padding-block: var(--space-xs); padding-inline: max(var(--space-md), calc((100% - var(--col)) / 2));
  background: var(--color-sea); color: var(--color-on-sea);
}
.l-top h1 { flex: 1; min-width: 0; font-size: var(--text-xl); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; line-height: 1.2; }
.l-top .back {
  width: var(--tap-sm); height: var(--tap-sm); display: grid; place-items: center; flex: none;
  border-radius: var(--radius-pill); border: 1px solid var(--color-on-sea-2); background: transparent; color: var(--color-on-sea); cursor: pointer;
}
.l-top .back:hover { background: var(--color-sea-2); }
.l-top .back:active { transform: scale(.96); }
.l-top .back:focus-visible { outline-color: var(--color-focus-on-sea); }
.l-hero { background: var(--color-sea); color: var(--color-on-sea); padding-block: var(--space-sm) var(--space-xl); padding-inline: max(var(--space-md), calc((100% - var(--col)) / 2)); }
.l-hero h2 { font-size: clamp(2.5rem, 12vw, 3.5rem); max-width: 12ch; line-height: 1.02; }
.l-hero p { margin-top: var(--space-sm); color: var(--color-on-sea-2); font-size: var(--text-lg); max-width: 32ch; line-height: 1.4; }
.l-body { max-width: var(--col); margin-inline: auto; padding: var(--space-md); }

.fish-grid { display: grid; grid-template-columns: minmax(0, 1fr); }
.fish-card {
  display: grid; grid-template-columns: minmax(0, 1fr) auto auto; column-gap: var(--space-md); align-items: center;
  width: 100%; min-height: 96px; padding: var(--space-sm) var(--space-2xs);
  background: transparent; border: 0; border-block-end: 1px solid var(--color-rule); color: var(--color-ink);
  cursor: pointer; text-align: start; transition: background-color var(--dur-micro) var(--ease-out);
}
.fish-card:hover { background: var(--color-paper-2); }
.fish-card:active { background: var(--color-paper-3); }
.fish-card .f-name { font-family: var(--font-display); font-size: var(--text-3xl); line-height: 1.1; }
.fish-card .f-meta { display: flex; flex-wrap: wrap; gap: var(--space-xs); align-items: center; margin-top: var(--space-2xs); font-size: var(--text-sm); color: var(--color-muted); }
.fish-card .f-price { text-align: end; font-weight: 700; font-size: var(--text-xl); line-height: 1.1; white-space: nowrap; }
.fish-card .f-price small { display: block; font-size: var(--text-sm); font-weight: 400; color: var(--color-muted); }
.fish-card .f-go { color: var(--color-muted); }

.fish-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; column-gap: var(--space-md); padding-bottom: var(--space-xs); }
.fish-head .fh-name { font-weight: 700; font-size: var(--text-2xl); line-height: 1.15; }

.cart-bar { position: fixed; bottom: 0; inset-inline: 0; z-index: var(--z-sticky); padding: var(--space-sm) var(--space-md) calc(var(--space-sm) + env(safe-area-inset-bottom)); background: var(--color-paper); border-top: 1px solid var(--color-rule); }
.cart-bar .inner { max-width: calc(var(--col, 640px) - 2 * var(--space-md)); margin: 0 auto; }

.cart-item { display: grid; gap: var(--space-2xs); padding: var(--space-sm) 0; border-bottom: 1px solid var(--color-rule); }
.cart-item:last-child { border-bottom: 0; }
.cart-item .ci-row { display: flex; gap: var(--space-xs); align-items: flex-start; }
.cart-item .ci-text { flex: 1; min-width: 0; }
.cart-item .ci-main { font-weight: 700; }
.cart-item .ci-main.gone { color: var(--color-late); }
.cart-item .ci-price { font-weight: 700; white-space: nowrap; text-align: end; }

.totals { display: flex; justify-content: space-between; font-weight: 700; font-size: var(--text-xl); margin-top: var(--space-xs); }

/* L4 מעקב */
.track-steps { list-style: none; padding: 0; margin: 0; display: grid; }
.track-steps li { display: flex; gap: var(--space-sm); align-items: flex-start; padding-bottom: var(--space-md); position: relative; }
.track-steps li::before { content: ''; position: absolute; inset-inline-start: 17px; top: 36px; bottom: 0; width: 2px; background: var(--color-rule); }
.track-steps li:last-child { padding-bottom: 0; }
.track-steps li:last-child::before { display: none; }
.track-steps .dot { width: 36px; height: 36px; border-radius: var(--radius-pill); flex: none; display: grid; place-items: center; background: var(--color-paper-3); color: var(--color-ink-2); font-weight: 700; z-index: var(--z-base); }
.track-steps li.done .dot { background: var(--color-sea); color: var(--color-on-sea); }
.track-steps li.now .dot { background: var(--color-accent); color: var(--color-accent-ink); }
.track-steps li.done::before { background: var(--color-sea); }
.track-steps .s-title { font-weight: 700; font-size: var(--text-lg); line-height: 1.3; padding-top: var(--space-2xs); }
.track-steps li:not(.done):not(.now) .s-title { color: var(--color-muted); font-weight: 400; }
.track-steps .s-time { font-size: var(--text-sm); color: var(--color-muted); }
.track-who { color: var(--color-on-sea-2); }
.big-status { font-family: var(--font-display); font-size: clamp(2rem, 9vw, 2.75rem); line-height: 1.08; margin-top: var(--space-xs); max-width: 16ch; text-wrap: balance; }
.page-note { text-align: center; color: var(--color-muted); font-size: var(--text-sm); margin-top: var(--space-sm); }

/* ===================== צד חנות (טאבלט) ===================== */
.m-app { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 1fr; min-height: 100dvh; }
.m-nav { display: flex; align-items: center; gap: var(--space-2xs); background: var(--color-sea); color: var(--color-on-sea); padding: var(--space-xs) var(--space-md); position: sticky; top: 0; z-index: var(--z-sticky-nav); overflow-x: auto; scrollbar-width: none; }
.m-nav .brand { font-family: var(--font-display); font-size: var(--text-xl); margin-inline-end: var(--space-md); white-space: nowrap; }
.m-nav a { color: var(--color-on-sea); text-decoration: none; font-weight: 700; white-space: nowrap; min-height: 48px; padding: 0 var(--space-sm); display: inline-flex; align-items: center; gap: var(--space-2xs); border-radius: var(--radius-input); transition: background-color var(--dur-micro) var(--ease-out); }
.m-nav a:hover { background: var(--color-sea-2); }
.m-nav a:focus-visible { outline-color: var(--color-focus-on-sea); }
.m-nav a.on { background: var(--color-paper); color: var(--color-sea); }
.m-nav a .count { background: var(--color-accent); color: var(--color-accent-ink); border-radius: var(--radius-pill); min-width: 24px; padding: 0 var(--space-2xs); font-size: var(--text-sm); text-align: center; line-height: 24px; }
.m-nav .spacer { flex: 1; }
.m-main { width: 100%; max-width: 1520px; margin-inline: auto; padding: var(--space-lg) var(--space-md); }
.m-head { display: flex; align-items: center; gap: var(--space-sm); margin-bottom: var(--space-md); flex-wrap: wrap; }
.m-head h2 { font-size: var(--text-3xl); flex: 1 1 auto; max-width: none; line-height: 1.15; }

/* M1 לוח */
.board { display: grid; grid-template-columns: repeat(4, minmax(250px, 1fr)); align-items: start; overflow-x: auto; }
.col { padding-inline: var(--space-sm); min-height: 320px; border-inline-start: 1px solid var(--color-rule); }
.col:first-child { padding-inline-start: 0; border-inline-start: 0; }
.col:last-child { padding-inline-end: 0; }
.col h3 { max-width: none; font-family: var(--font-body); font-weight: 700; font-size: var(--text-lg); display: flex; justify-content: space-between; align-items: baseline; padding-bottom: var(--space-xs); margin-bottom: var(--space-sm); border-bottom: 2px solid var(--color-sea); }
.col .empty { color: var(--color-muted); padding-block: var(--space-xs); }
.o-card { background: var(--color-surface); border: 1px solid var(--color-rule); border-radius: var(--radius-card); padding: var(--space-sm); margin-bottom: var(--space-sm); cursor: pointer; transition: border-color var(--dur-micro) var(--ease-out); }
.o-card:hover { border-color: var(--color-sea); }
.o-card.f-late { background: var(--color-late-soft); border-color: var(--color-late); }
.o-card.f-soon { border-color: var(--color-warn); }
.o-card .oc-top { display: flex; align-items: baseline; gap: var(--space-xs); }
.o-card .oc-num { font-weight: 700; font-size: var(--text-xl); }
.o-card .oc-name { font-weight: 700; flex: 1; min-width: 0; }
.oc-items { margin-block: var(--space-xs); line-height: 1.4; }
.oc-items > div { padding-block: var(--space-3xs); }
.oc-tags { display: flex; gap: var(--space-2xs); flex-wrap: wrap; }
.o-card .oc-actions { display: flex; gap: var(--space-xs); margin-top: var(--space-sm); align-items: center; }
.o-card .oc-actions .btn { flex: 1; }
.o-card .oc-actions .shelf { font-weight: 700; white-space: nowrap; }

/* חלון הזמנה */
.sheet-back { position: fixed; inset: 0; background: var(--color-scrim); z-index: var(--z-modal); display: grid; place-items: center; padding: var(--space-md); }
.sheet { background: var(--color-paper); border-radius: var(--radius-card); width: min(720px, 100%); max-height: 92dvh; overflow: auto; padding: var(--space-lg); }
.sheet .s-head { display: flex; align-items: center; gap: var(--space-sm); margin-bottom: var(--space-sm); }
.sheet .s-head h2 { flex: 1; font-size: var(--text-3xl); max-width: none; line-height: 1.15; }
.sheet .s-tags { margin-bottom: var(--space-sm); }
.sheet .note-line { margin-top: var(--space-xs); }
.actions-row { display: flex; flex-wrap: wrap; gap: var(--space-xs); margin-top: var(--space-md); }
.actions-row .btn { flex: 1 1 180px; }

/* M2 הזנה מהירה */
.quick { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: var(--space-lg); align-items: start; }
.quick .fish-pick { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-xs); }
.quick .fish-pick .chip { min-height: 72px; flex-direction: column; gap: 0; font-weight: 700; }
.quick .fish-pick .chip small { font-weight: 400; font-size: var(--text-sm); }
.quick .fish-pick .chip.off { border-style: dashed; color: var(--color-muted); }
.quick .pick-editor { margin-top: var(--space-md); }

/* M3 שקילה */
.queue-link { display: flex; gap: var(--space-md); align-items: center; text-decoration: none; color: inherit; transition: border-color var(--dur-micro) var(--ease-out); }
.queue-link:hover { border-color: var(--color-sea); }
.queue-link .q-n { font-family: var(--font-display); font-size: var(--text-3xl); min-width: 40px; text-align: center; }
.queue-link .q-body { flex: 1; min-width: 0; }
.queue-link .q-title { font-size: var(--text-xl); font-weight: 700; line-height: 1.2; }
.weigh-row { display: grid; grid-template-columns: minmax(0, 1fr) 170px 120px; gap: var(--space-sm); align-items: center; padding-block: var(--space-sm); border-bottom: 1px solid var(--color-rule); }
.weigh-row.head { padding-top: 0; font-weight: 700; color: var(--color-muted); }
.weigh-row.head div:not(:first-child) { text-align: center; }
.weigh-row .w-main { font-size: var(--text-lg); font-weight: 700; line-height: 1.3; }
.weigh-row .input { font-size: var(--text-2xl); font-weight: 700; text-align: center; min-height: var(--tap-lg); }
.weigh-row .w-price { font-size: var(--text-xl); font-weight: 700; text-align: center; }
.weigh-total { display: flex; justify-content: space-between; align-items: baseline; font-family: var(--font-display); font-size: var(--text-3xl); padding-block: var(--space-md); }

/* M4 מטבחון */
.kitchen { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 720px)); gap: var(--space-md); }
.k-card { background: var(--color-surface); border: 1px solid var(--color-rule); border-radius: var(--radius-card); padding: var(--space-md); }
.k-card .k-head { display: flex; align-items: center; gap: var(--space-xs); margin-bottom: var(--space-2xs); }
.k-card .k-num { font-family: var(--font-display); font-size: var(--text-3xl); line-height: 1.1; }
.k-card .k-who { flex: 1; font-size: var(--text-lg); font-weight: 700; min-width: 0; }
.k-item { padding-block: var(--space-xs); border-bottom: 1px solid var(--color-rule); }
.k-item .k-main { font-size: var(--text-lg); font-weight: 700; line-height: 1.3; }
.k-item .k-trays { font-size: var(--text-lg); font-weight: 700; color: var(--color-sea-2); }
.k-since { color: var(--color-muted); margin-top: var(--space-xs); }
.shelves { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-xs); }
.shelves .chip { flex-direction: column; min-height: 72px; gap: 0; }
.shelves .chip small { font-size: var(--text-sm); font-weight: 400; }
.k-fridge { display: flex; flex-wrap: wrap; column-gap: var(--space-sm); color: var(--color-muted); }

/* M5 קופה */
.cash-list { display: grid; gap: var(--space-sm); }
.cash-row { display: grid; grid-template-columns: 96px minmax(0, 1fr) auto auto; gap: var(--space-md); align-items: center; }
.cash-row .shelf-badge { font-size: var(--text-sm); font-weight: 700; text-align: center; background: var(--color-sea); color: var(--color-on-sea); border-radius: var(--radius-input); padding: var(--space-xs) var(--space-2xs); }
.cash-row .shelf-badge b { display: block; font-family: var(--font-display); font-weight: 400; font-size: var(--text-3xl); line-height: 1.1; }
.cash-row .c-who { cursor: pointer; min-width: 0; }
.cash-row .c-title { font-size: var(--text-xl); font-weight: 700; line-height: 1.2; }
.cash-row .c-total { font-size: var(--text-3xl); font-weight: 700; }
.cash-row .c-act { display: grid; gap: var(--space-xs); }

/* S הגדרות */
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; }
.table th { text-align: start; font-size: var(--text-sm); font-weight: 700; color: var(--color-muted); padding: var(--space-xs); white-space: nowrap; border-bottom: 2px solid var(--color-sea); }
.table th.c { text-align: center; }
.table td { padding: var(--space-xs); vertical-align: middle; border-bottom: 1px solid var(--color-rule); }
.table .input { min-height: 48px; font-size: var(--text-md); }
.w-sm { width: 110px; } .w-md { width: 150px; } .w-lg { width: 170px; }
.toggle { position: relative; width: 64px; height: 36px; display: inline-block; }
.toggle input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.toggle span { position: absolute; inset: 0; background: var(--color-muted); border-radius: var(--radius-pill); cursor: pointer; transition: background-color var(--dur-short) var(--ease-out); }
.toggle span::after { content: ''; position: absolute; top: 4px; inset-inline-start: 4px; width: 28px; height: 28px; background: var(--color-surface); border-radius: var(--radius-pill); transition: transform var(--dur-short) var(--ease-out); }
.toggle input:checked + span { background: var(--color-ok); }
.toggle input:checked + span::after { transform: translateX(-28px); }
.toggle input:focus-visible + span { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.matrix td.c { text-align: center; }
.check { width: 30px; height: 30px; accent-color: var(--color-sea); }

/* M0 PIN */
.pin-wrap { min-height: 100dvh; display: grid; place-items: center; background: var(--color-sea); padding: var(--space-md); }
.pin-box { color: var(--color-on-sea); width: min(380px, 100%); text-align: center; }
.pin-box h2 { font-size: var(--text-3xl); max-width: none; line-height: 1.15; }
.pin-box .pin-hint { color: var(--color-on-sea-2); }
.pin-dots { display: flex; justify-content: center; gap: var(--space-sm); margin-block: var(--space-md); }
.pin-dots i { width: 18px; height: 18px; border-radius: var(--radius-pill); border: 2px solid var(--color-on-sea); }
.pin-dots i.f { background: var(--color-on-sea); }
.pin-pad { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-xs); direction: ltr; }
.pin-pad button { height: 72px; border-radius: var(--radius-card); border: 1px solid var(--color-on-sea-2); background: transparent; color: var(--color-on-sea); font-size: var(--text-2xl); font-weight: 700; cursor: pointer; transition: background-color var(--dur-micro) var(--ease-out); }
.pin-pad button:hover { background: var(--color-sea-2); }
.pin-pad button:active { background: var(--color-sea-2); transform: scale(.97); }
.pin-pad button:focus-visible { outline-color: var(--color-focus-on-sea); }

@media (min-width: 60rem) {
  .k-card { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: var(--space-lg); align-content: start; }
  .k-card > * { grid-column: 1; }
  .k-card > .k-pack { grid-column: 2; grid-row: 1 / span 12; }
  .k-card .k-pack .section-title:first-child { margin-top: 0; }
}
@media (max-width: 60rem) {
  .board { grid-template-columns: repeat(4, 270px); }
  .quick { grid-template-columns: minmax(0, 1fr); }
  .weigh-row { grid-template-columns: minmax(0, 1fr) 130px; }
  .weigh-row.head { display: none; }
  .weigh-row .w-price { grid-column: 2; }
  .cash-row { grid-template-columns: 80px minmax(0, 1fr); }
  .cash-row .c-total, .cash-row .c-act { grid-column: 1 / -1; }
}
@media (max-width: 40rem) {
  .m-nav { padding-inline: var(--space-xs); }
  .m-nav .brand { display: none; }
  .m-main { padding: var(--space-md); }
  .m-head h2 { font-size: var(--text-2xl); flex-basis: 100%; }
  .board { grid-template-columns: minmax(0, 1fr); overflow-x: visible; }
  .col, .col:first-child, .col:last-child { min-height: 0; padding-inline: 0; border-inline-start: 0; margin-bottom: var(--space-lg); }
  .btn { white-space: normal; text-align: center; }
  .btn.lg { font-size: var(--text-lg); padding-inline: var(--space-md); }
  .sheet { padding: var(--space-md); }
  .sheet .s-head h2 { font-size: var(--text-2xl); }
  .sheet-back { padding: var(--space-xs); }
  .queue-link { flex-wrap: wrap; }
  .queue-link .q-body { flex-basis: 70%; }
  .queue-link .btn { width: 100%; }
  .quick .fish-pick { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .form-row .field { flex: 1 1 100%; }
  .form-row .input { width: 100%; max-width: none; }
}
@media (prefers-reduced-motion: reduce) {
  .btn:active, .chip:active, .stepper button:active, .pin-pad button:active, .l-top .back:active { transform: none; }
}
