/* Shoshani CAV Mobile - the phone app, rebuilt 06.12.26 (user: "rebuild the phone app from scratch: only תעודות משלוח,
   history and profile, user friendly UI"). Hebrew RTL, right aligned. Big touch targets (44px+), cards, one green
   accent ('ירוק חממה' #1F8A3B), light + dark. Font: the system stack; on Windows plain "Segoe UI" (never its
   newer edition that reverses Hebrew; so no generic system keyword either). */
:root {
  --accent: #1F8A3B; --accent-press: #17692D; --accent-soft: rgba(31,138,59,.12); --on-accent: #fff;
  --bg: #F3F4F1; --card: #FFFFFF; --card-press: #ECEEEA; --label: #14171A; --label2: #5E646B; --label3: #9AA0A6;
  --sep: rgba(20,23,26,.10); --fill: rgba(20,23,26,.06);
  --bar: rgba(255,255,255,.86); --red: #D93025; --red-soft: rgba(217,48,37,.10); --orange: #C26A00;
  --orange-soft: rgba(242,153,0,.16); --blue: #1A73E8; --blue-soft: rgba(26,115,232,.12);
  --shadow: 0 1px 2px rgba(0,0,0,.06), 0 4px 16px rgba(0,0,0,.06); --shadow-up: 0 -6px 24px rgba(0,0,0,.08);
  --radius: 16px; --radius-s: 12px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Segoe UI", Roboto,
          "Noto Sans Hebrew", Arial, sans-serif;
  --safe-b: env(safe-area-inset-bottom, 0px); --safe-t: env(safe-area-inset-top, 0px);
  --tabbar-h: 62px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --accent: #34B35A; --accent-press: #2B9A4C; --accent-soft: rgba(52,179,90,.18); --on-accent: #06210F;
    --bg: #0E1110; --card: #1A1E1C; --card-press: #252A27; --label: #F1F3F2; --label2: #A7AEAA; --label3: #6C736F;
    --sep: rgba(255,255,255,.10); --fill: rgba(255,255,255,.07);
    --bar: rgba(22,26,24,.86); --red: #FF6B60; --red-soft: rgba(255,107,96,.14); --orange: #FFB547;
    --orange-soft: rgba(255,181,71,.16); --blue: #7FB0FF; --blue-soft: rgba(127,176,255,.15);
    --shadow: 0 1px 2px rgba(0,0,0,.4); --shadow-up: 0 -6px 24px rgba(0,0,0,.4);
  }
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; background: var(--bg); color: var(--label); font-family: var(--font); font-size: 17px;
  line-height: 1.4; direction: rtl; text-align: right; -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; color: inherit; direction: rtl; text-align: right; }
button { cursor: pointer; }
[hidden] { display: none !important; }
.ltr { direction: ltr; unicode-bidi: isolate; display: inline-block; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 8px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* -- top bar */
.top { position: sticky; top: 0; z-index: 20; padding: calc(var(--safe-t) + 10px) 16px 10px; background: var(--bg);
  display: flex; align-items: center; gap: 10px; transition: background .2s, box-shadow .2s; }
.top.solid { background: var(--bar); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
  box-shadow: 0 1px 0 var(--sep); }
.top h1 { margin: 0; font-size: 28px; font-weight: 700; letter-spacing: -.3px; flex: 1; }
.top .sub { display: block; font-size: 14px; font-weight: 500; color: var(--label2); letter-spacing: 0; }
.icon-btn { width: 44px; height: 44px; border-radius: 22px; border: 0; background: var(--card); color: var(--label);
  display: inline-flex; align-items: center; justify-content: center; box-shadow: var(--shadow); flex: none; }
.icon-btn svg { width: 22px; height: 22px; }
.icon-btn:active { background: var(--card-press); }
.icon-btn.spin svg { animation: spin .8s linear infinite; }

/* -- the page */
.view { padding: 4px 16px calc(var(--tabbar-h) + var(--safe-b) + 24px); max-width: 640px; margin: 0 auto; outline: none; }
.view.with-actions { padding-bottom: calc(var(--tabbar-h) + var(--safe-b) + 96px); }
.section-h { display: flex; align-items: baseline; justify-content: space-between; margin: 22px 4px 8px;
  font-size: 15px; font-weight: 700; color: var(--label2); }
.section-h .n { font-weight: 600; color: var(--label3); font-size: 14px; }
/* (user 07.12.26 "description in info icon") the ⓘ beside a section's title - a big enough touch area, a small icon */
.section-h .ttl { display: inline-flex; align-items: center; gap: 2px; }
.info-btn { border: 0; background: none; color: var(--label3); width: 32px; height: 32px; margin: -8px 0; padding: 0;
  display: inline-flex; align-items: center; justify-content: center; border-radius: 16px; }
.info-btn svg { width: 18px; height: 18px; }
.info-btn:active { background: var(--fill); color: var(--accent); }
.empty { text-align: center; color: var(--label2); padding: 28px 16px; background: var(--card); border-radius: var(--radius);
  box-shadow: var(--shadow); }
.empty svg { width: 56px; height: 56px; color: var(--label3); display: block; margin: 0 auto 8px; }
.empty b { display: block; color: var(--label); font-size: 17px; margin-bottom: 2px; }
.err { color: var(--red); }

/* -- summary tiles */
/* (06.12.26) סידור | משלוח נוכחי at the top of משלוחים (as the PC) */
.seg { display: flex; gap: 2px; padding: 3px; margin: 6px 0 10px; border-radius: 12px; background: var(--fill); }
.seg button { flex: 1; min-height: 40px; border: 0; border-radius: 10px; background: none; color: var(--label2);
  font-weight: 650; font-size: 15.5px; transition: background .2s ease, color .2s ease;
  /* (user 06.12.26 "align text to center") every segment's text centred in its button */
  display: flex; align-items: center; justify-content: center; text-align: center; }
.seg button.on { background: var(--card); color: var(--label); box-shadow: 0 1px 4px rgba(0,0,0,.12); }
.seg button .n { display: inline-block; min-width: 20px; padding: 0 6px; margin-inline-start: 4px; border-radius: 10px;
  background: var(--orange-soft); color: var(--orange); font-size: 12.5px; line-height: 20px; }
.card .s.lack { color: var(--orange); }
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 6px; }
.tiles.two { grid-template-columns: repeat(2, 1fr); }
.tile { background: var(--card); border-radius: var(--radius); padding: 12px 12px 10px; box-shadow: var(--shadow); min-width: 0; }
.tile .k { font-size: 13px; color: var(--label2); font-weight: 600; }
.tile .n { font-size: 24px; font-weight: 700; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tile.acc .n { color: var(--accent); }
.tile.warn .n { color: var(--orange); }

/* -- pallet cards */
.list { display: flex; flex-direction: column; gap: 8px; }
.card { display: flex; align-items: center; gap: 12px; width: 100%; background: var(--card); border: 0;
  border-radius: var(--radius); padding: 12px 14px; box-shadow: var(--shadow); min-height: 64px; text-align: right; }
button.card:active { background: var(--card-press); transform: scale(.99); }
.av { width: 42px; height: 42px; border-radius: 21px; flex: none; display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 18px; background: var(--accent-soft); color: var(--accent); }
.av.phone { background: var(--orange-soft); color: var(--orange); }
.av.sent { background: var(--accent); color: var(--on-accent); }
.av.bad { background: var(--red-soft); color: var(--red); }
.av.warn { background: var(--orange-soft); color: var(--orange); }   /* (06.12.26) a credit stop: orange */
.av svg { width: 22px; height: 22px; }
/* (user 07.12.26 "use product's איור") the product's drawing in the circle; its letter only if it does not load */
.av img.art { width: 74%; height: 74%; display: block; }
.av img.art + b { display: none; }
/* (user 07.12.26 "show multiple draws according to products") several products: each its own small drawing */
.av .arts { position: relative; width: 100%; height: 100%; }
.av .arts .c { position: absolute; width: 54%; height: 54%; display: flex; align-items: center; justify-content: center;
  font-size: 11px; }
.av .arts .c img.art { width: 100%; height: 100%; }
.av .arts.n2 .c:nth-child(1) { top: 8%; left: 8%; }
.av .arts.n2 .c:nth-child(2) { bottom: 8%; right: 8%; }
.av .arts.n3 .c { width: 48%; height: 48%; }
.av .arts.n3 .c:nth-child(1) { top: 5%; left: 26%; }
.av .arts.n3 .c:nth-child(2) { bottom: 8%; left: 6%; }
.av .arts.n3 .c:nth-child(3) { bottom: 8%; right: 6%; }
.av .arts.n4 .c { width: 42%; height: 42%; }
.av .arts.n4 .c:nth-child(1) { top: 8%; left: 8%; }
.av .arts.n4 .c:nth-child(2) { top: 8%; right: 8%; }
.av .arts.n4 .c:nth-child(3) { bottom: 8%; left: 8%; }
.av .arts.n4 .c:nth-child(4) { bottom: 8%; right: 8%; }
/* (06.12.26) a sent pallet's PDF icon inside its card, before the arrow (opens the delivery note) */
.pdfic { flex: none; width: 44px; height: 44px; margin: -6px -4px; border-radius: 12px; color: var(--label2);
  display: grid; place-items: center; position: relative; cursor: pointer; }
.pdfic svg { width: 28px; height: 28px; }
.pdfic:active { background: var(--fill); transform: scale(.94); }
.pdfic.wait svg { opacity: .35; }
.pdfic.wait::after { content: ""; position: absolute; width: 26px; height: 26px; border-radius: 50%;
  border: 3px solid var(--fill); border-top-color: var(--accent); animation: spin .8s linear infinite; }
.card .main { flex: 1; min-width: 0; }
.card .t { font-weight: 650; font-size: 17px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card .s { font-size: 14px; color: var(--label2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 1px; }
.card .end { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; flex: none; }
.chev { width: 8px; height: 14px; color: var(--label3); flex: none; }
.chip { display: inline-flex; align-items: center; gap: 4px; font-size: 12.5px; font-weight: 650; padding: 3px 9px;
  border-radius: 999px; background: var(--fill); color: var(--label2); white-space: nowrap; }
.chip.ok { background: var(--accent-soft); color: var(--accent); }
.chip.warn { background: var(--orange-soft); color: var(--orange); }
.chip.bad { background: var(--red-soft); color: var(--red); }
.chip.info { background: var(--blue-soft); color: var(--blue); }

/* -- the run status card */
.run { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 14px 16px; margin-top: 12px;
  border-inline-start: 5px solid var(--blue); }
.run.ok { border-inline-start-color: var(--accent); }
.run.bad { border-inline-start-color: var(--red); }
.run.warn { border-inline-start-color: var(--orange); }
.run .h { display: flex; align-items: center; gap: 8px; font-weight: 700; }
.run .h .tm { margin-inline-start: auto; font-weight: 500; color: var(--label3); font-size: 14px; }
.run .r { color: var(--label2); font-size: 14.5px; margin-top: 4px; }
.steps { display: flex; gap: 6px; margin: 12px 0 4px; }
.steps .st { flex: 1; text-align: center; font-size: 12px; color: var(--label3); font-weight: 600; }
.steps .st i { display: block; height: 5px; border-radius: 3px; background: var(--fill); margin-bottom: 5px; overflow: hidden; }
.steps .st i b { display: block; height: 100%; width: 0; background: var(--accent); border-radius: 3px; transition: width .5s ease; }
.steps .st.done { color: var(--accent); }
.steps .st.done i b { width: 100%; }
.steps .st.now { color: var(--label); }
.steps .st.now i b.busy { width: 100%; opacity: .5; animation: pulse 1.4s ease-in-out infinite; }
.run .x { margin-top: 8px; }
/* (06.12.26) the FortiToken code the PC asks for */
.run .vpn { display: flex; gap: 8px; margin-top: 10px; }
.run .vpn .code { flex: 1; min-width: 0; text-align: center; font-size: 24px; font-weight: 700; letter-spacing: 6px; }
.run .vpn .btn { flex: none; }
@keyframes pulse { 50% { opacity: .15; } }
/* (06.12.26 "live status update to match the status in PC") the PC run screen's stage list */
.lsteps { list-style: none; margin: 10px 0 2px; padding: 0; }
.lsteps li { display: flex; align-items: center; gap: 10px; min-height: 30px; color: var(--label3); font-size: 15px; }
.lsteps li i { flex: none; width: 18px; height: 18px; border-radius: 50%; border: 1.5px dashed var(--label3);
  display: grid; place-items: center; box-sizing: border-box; }
.lsteps li.done { color: var(--label); }
.lsteps li.done i { border: 0; background: var(--accent); color: var(--on-accent); }
.lsteps li.done i svg { width: 12px; height: 12px; }
.lsteps li.now { color: var(--label); font-weight: 700; }
.lsteps li.now i { border: 2px solid var(--accent-soft); border-top-color: var(--accent); animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.run .nc, #view > .nc { margin-top: 8px; padding: 8px 12px; border-radius: 12px; background: var(--orange-soft); font-size: 14px; }
.run .nc b, #view > .nc b { display: block; color: var(--orange); }
#view > .nc { margin: 12px 0 4px; padding: 10px 14px; }   /* (06.12.26 the list's own card, outside a run) */
@media (prefers-reduced-motion: reduce) { .lsteps li.now i { animation: none; } }

/* -- the bottom action bar (shipping) */
.actions { position: fixed; z-index: 25; left: 0; right: 0; bottom: calc(var(--tabbar-h) + var(--safe-b));
  padding: 10px 16px; display: flex; gap: 10px; background: var(--bar); -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px); box-shadow: 0 -1px 0 var(--sep); }
.actions > * { max-width: 640px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; padding: 0 18px;
  border: 0; border-radius: 14px; background: var(--accent); color: var(--on-accent); font-weight: 700; font-size: 17px; }
.btn:active { background: var(--accent-press); }
.btn[disabled] { opacity: .45; }
.btn.wide { width: 100%; }
/* (user 07.12.26 "weight box for every pallet") סידור לפי מוצר: a weight row per pallet (its number + customer) */
.wlist { display: flex; flex-direction: column; gap: 8px; }
.wrow { display: flex; align-items: center; gap: 10px; }
.wrow .wk { flex: 1; min-width: 0; font-weight: 650; }
.wrow .wk small { display: block; color: var(--label2); font-weight: 400; font-size: 13px; white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis; }
.wrow .unit { flex: none; width: 150px; }
/* (user 07.12.26 "slide to send") the slider: a pill track, the knob on the right, dragged to the left end */
.slide { position: relative; flex: 1; min-height: 50px; border-radius: 25px; background: var(--accent-soft);
  overflow: hidden; touch-action: pan-y; user-select: none; -webkit-user-select: none; --p: 0; }
.slide::before { content: ""; position: absolute; inset: 0; background: var(--accent); opacity: calc(var(--p) * .9); }
.slide-lbl { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding: 0 56px;
  color: var(--accent); font-weight: 700; font-size: 16px; opacity: calc(1 - var(--p) * 1.4); pointer-events: none; }
.slide-knob { position: absolute; top: 4px; right: 4px; width: 42px; height: 42px; border-radius: 21px;
  background: var(--accent); color: var(--on-accent); display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 6px rgba(0,0,0,.25); cursor: grab; touch-action: none; }
.slide-knob svg { width: 22px; height: 22px; }
.slide:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.btn.grow { flex: 1; }
.btn.soft { background: var(--accent-soft); color: var(--accent); }
.btn.plain { background: var(--card); color: var(--label); box-shadow: var(--shadow); }
.btn.danger { background: var(--red-soft); color: var(--red); }
.btn svg { width: 20px; height: 20px; }
/* (06.12.26 "attach the pdf to the pallet" + "print icon") the delivery note row + the PC picker */
.docrow { display: flex; gap: 10px; margin-top: 14px; }
.btn.sq { flex: none; width: 50px; padding: 0; }
.btn.sq svg { width: 24px; height: 24px; }
.pcpick .tick { width: 26px; height: 26px; border-radius: 13px; display: grid; place-items: center;
  border: 2px solid var(--sep); color: transparent; }
.pcpick .tick svg { width: 16px; height: 16px; }
.pcpick.on { box-shadow: 0 0 0 2px var(--accent) inset, var(--shadow); }
.pcpick.on .tick { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.link-btn { display: block; margin: 12px auto 0; border: 0; background: none; color: var(--accent); font-weight: 600;
  font-size: 16px; padding: 10px 12px; min-height: 44px; }

/* -- tab bar */
.tabbar { position: fixed; z-index: 30; left: 0; right: 0; bottom: 0; height: calc(var(--tabbar-h) + var(--safe-b));
  padding-bottom: var(--safe-b); display: flex; background: var(--bar); -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px); box-shadow: 0 -1px 0 var(--sep); }
.tab { flex: 1; border: 0; background: none; color: var(--label3); display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 3px; font-size: 12px; font-weight: 600; position: relative; }
.tab svg { width: 26px; height: 26px; }
.tab.on { color: var(--accent); }
.tab .dot { position: absolute; top: 8px; inset-inline-end: calc(50% - 20px); min-width: 18px; height: 18px; padding: 0 5px;
  border-radius: 9px; background: var(--orange); color: #fff; font-size: 11px; line-height: 18px; text-align: center; }

/* -- search + filter chips (history) */
.search { display: flex; align-items: center; gap: 8px; background: var(--card); border-radius: var(--radius-s);
  padding: 0 12px; box-shadow: var(--shadow); margin-top: 6px; }
.search svg { width: 18px; height: 18px; color: var(--label3); flex: none; }
.search input { flex: 1; border: 0; background: none; height: 46px; outline: none; min-width: 0; }
.filters { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.filters::-webkit-scrollbar { display: none; }
.fchip { border: 0; background: var(--card); color: var(--label2); border-radius: 999px; padding: 0 16px; min-height: 38px;
  font-weight: 650; font-size: 15px; box-shadow: var(--shadow); white-space: nowrap; }
.fchip.on { background: var(--accent); color: var(--on-accent); }
.day-h { display: flex; justify-content: space-between; align-items: baseline; margin: 20px 4px 8px; font-weight: 700; }
.day-h .n { color: var(--label3); font-weight: 600; font-size: 14px; }

/* -- profile */
.me { display: flex; align-items: center; gap: 14px; background: var(--card); border-radius: var(--radius); padding: 16px;
  box-shadow: var(--shadow); margin-top: 6px; }
.me .big { width: 60px; height: 60px; border-radius: 30px; background: var(--accent); color: var(--on-accent);
  display: flex; align-items: center; justify-content: center; font-size: 26px; font-weight: 700; flex: none; }
.me .big.pic { background: var(--fill, #eee); overflow: hidden; }
.me .big img { width: 100%; height: 100%; object-fit: cover; display: block; }
.me .nm { font-size: 20px; font-weight: 700; }
.me .em { font-size: 14px; color: var(--label2); word-break: break-all; }
.box { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.line { display: flex; align-items: center; gap: 12px; padding: 12px 16px; min-height: 52px; }
.line + .line { border-top: 1px solid var(--sep); }
.line .k { flex: 1; min-width: 0; }
.line .k small { display: block; color: var(--label2); font-size: 13.5px; }
.line .v { color: var(--label2); font-size: 15px; flex: none; max-width: 55%; text-align: left; }
/* (07.12.26) the app's install steps (profile > אפליקציה) */
.howto { margin: 6px 0 4px; padding: 0; padding-inline-start: 22px; padding-inline-end: 6px; text-align: start; font-size: 14.5px; color: var(--label); }
.howto li { margin: 6px 0; line-height: 1.45; }
.note { font-size: 13.5px; color: var(--label2); margin: 8px 6px 0; }

/* -- sheets (from the bottom) + alerts */
.layer { position: fixed; inset: 0; z-index: 50; background: rgba(0,0,0,0); transition: background .25s; }
.layer.open { background: rgba(0,0,0,.38); }
.sheet { position: absolute; left: 0; right: 0; bottom: 0; max-height: 92vh; display: flex; flex-direction: column;
  background: var(--bg); border-radius: 20px 20px 0 0; transform: translateY(100%); transition: transform .3s cubic-bezier(.2,.8,.2,1);
  max-width: 640px; margin: 0 auto; }
.layer.open .sheet { transform: none; }
.sheet .grab { width: 40px; height: 5px; border-radius: 3px; background: var(--label3); margin: 8px auto 2px; }
.sheet .sh { display: flex; align-items: center; gap: 8px; padding: 6px 12px 10px; }
.sheet .sh h2 { flex: 1; margin: 0; font-size: 19px; font-weight: 700; text-align: center; }
.sheet .sh .side { width: 72px; display: flex; }
.sheet .sh .side.end { justify-content: flex-end; }
/* (user 07.12.26 "description in info icon") the sheet's explanation, opened by the ⓘ in its header */
.sheet .sh .info-btn { margin: 0; }
.sheet .sh .info-btn[aria-expanded="true"] { color: var(--accent); }
.sheet-info { background: var(--fill); border-radius: 12px; padding: 10px 14px; margin: 0 0 12px; font-size: 14px;
  color: var(--label2); text-align: start; }
.sheet-info p { margin: 0 0 6px; }
.sheet-info p:last-child { margin: 0; }
.txt-btn { border: 0; background: none; color: var(--accent); font-weight: 600; font-size: 16px; min-height: 44px; padding: 0 6px; }
.sheet .sb { overflow-y: auto; padding: 4px 16px calc(var(--safe-b) + 18px); -webkit-overflow-scrolling: touch; }
.sheet .foot { padding: 10px 16px calc(var(--safe-b) + 12px); border-top: 1px solid var(--sep); background: var(--bg); }
.alert-l { position: fixed; inset: 0; z-index: 60; background: rgba(0,0,0,.38); display: flex; align-items: center; justify-content: center; padding: 24px; }
.alert { width: 100%; max-width: 320px; background: var(--card); border-radius: 18px; padding: 20px 18px 14px; text-align: center; }
.alert .at { font-weight: 700; font-size: 18px; }
.alert .am { color: var(--label2); margin-top: 6px; font-size: 15px; }
.alert .ab { display: flex; gap: 10px; margin-top: 16px; }
.alert .ab .btn { flex: 1; min-height: 46px; }

/* -- forms */
.fld { margin-top: 14px; }
.fld > label, .fld > .lb { display: block; font-weight: 650; font-size: 15px; margin: 0 4px 6px; }
.fld .hint { font-size: 13px; color: var(--label2); margin: 4px 4px 0; }
.fld > label .muted { font-weight: 400; font-size: 13px; color: var(--label2); }
.inp { width: 100%; height: 50px; border: 1.5px solid var(--sep); border-radius: var(--radius-s); background: var(--card);
  padding: 0 14px; outline: none; }
.inp:focus { border-color: var(--accent); }
.inp.big { height: 60px; font-size: 26px; font-weight: 700; text-align: center; }
select.inp { appearance: none; -webkit-appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--label3) 50%),
  linear-gradient(135deg, var(--label3) 50%, transparent 50%); background-position: 18px 22px, 24px 22px;
  background-size: 6px 6px, 6px 6px; background-repeat: no-repeat; padding-left: 36px; }
.unit { position: relative; }
.unit span { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--label2); font-weight: 600; }
.picks { display: flex; flex-wrap: wrap; gap: 8px; }
.pick { border: 1.5px solid var(--sep); background: var(--card); border-radius: 12px; min-height: 44px; padding: 0 14px;
  font-weight: 600; font-size: 15.5px; }
.pick.on { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); }
details.more { margin-top: 16px; background: var(--card); border-radius: var(--radius-s); padding: 0 14px; box-shadow: var(--shadow); }
details.more summary { min-height: 48px; display: flex; align-items: center; font-weight: 650; cursor: pointer; list-style: none; }
details.more summary::-webkit-details-marker { display: none; }
details.more summary::after { content: "+"; margin-inline-start: auto; font-size: 22px; color: var(--label3); }
details.more[open] summary::after { content: "−"; }
details.more .in { padding-bottom: 14px; }
/* (06.12.26) פרופיל > הפעלות אחרונות: the earlier runs, folded under the last one; lines edge to edge as in a .box */
details.runs-more { margin-top: 10px; padding: 0; overflow: hidden; }
details.runs-more summary { padding: 0 16px; color: var(--accent); }
details.runs-more .in { padding-bottom: 0; border-top: 1px solid var(--sep); }
/* (06.12.26) products ב, ג, ד of one pallet */
.prod { margin-top: 16px; background: var(--card); border-radius: var(--radius-s); padding: 4px 14px 14px; box-shadow: var(--shadow); }
.prod-h { display: flex; align-items: center; justify-content: space-between; min-height: 44px; }
.prod-h b { font-size: 16px; }
.txt-btn.danger { color: var(--red, #D93025); }
.kv { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; margin-top: 10px; }
.kv .line .k { color: var(--label2); }
.kv .line .v { color: var(--label); font-weight: 600; max-width: 65%; }
.hero { text-align: center; padding: 6px 0 4px; }
.hero .av { width: 64px; height: 64px; border-radius: 32px; font-size: 28px; margin: 0 auto 8px; }
.hero .t { font-size: 22px; font-weight: 700; }
.hero .s { color: var(--label2); }
.warnbox { background: var(--orange-soft); color: var(--label); border-radius: var(--radius-s); padding: 12px 14px; font-size: 14.5px; margin-top: 12px; }
.warnbox b { color: var(--orange); }

/* -- sign in */
.signin { max-width: 420px; margin: 0 auto; padding: calc(var(--safe-t) + 48px) 20px 40px; }
.signin .logo { width: 84px; height: 84px; border-radius: 22px; display: block; margin: 0 auto 14px; box-shadow: var(--shadow); }
.signin h1 { text-align: center; font-size: 28px; margin: 0; }
.signin p.c { text-align: center; color: var(--label2); margin: 6px 8px 8px; font-size: 15px; }
.signin .btn { margin-top: 18px; }
.signin .or { display: flex; align-items: center; gap: 10px; color: var(--label3); font-size: 13px; margin: 18px 0 12px; }
.signin .or::before, .signin .or::after { content: ""; flex: 1; height: 1px; background: var(--sep); }
#gbtn { display: flex; justify-content: center; min-height: 44px; }

/* -- toast, spinner */
.toast { position: fixed; z-index: 70; left: 50%; bottom: calc(var(--tabbar-h) + var(--safe-b) + 90px); transform: translate(-50%, 20px);
  background: rgba(20,23,26,.92); color: #fff; padding: 12px 18px; border-radius: 14px; font-size: 15px; font-weight: 600;
  opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; max-width: calc(100% - 32px); text-align: center; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.spinner { width: 26px; height: 26px; border: 3px solid var(--fill); border-top-color: var(--accent); border-radius: 50%;
  animation: spin .8s linear infinite; margin: 48px auto; }
.skel { height: 64px; border-radius: var(--radius); background: var(--card); margin-bottom: 8px; opacity: .7;
  animation: pulse 1.4s ease-in-out infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
@media (min-width: 680px) { .actions { justify-content: center; } .actions > * { flex: 0 1 300px; } }
/* (06.12.26) סידור's customer table: products = columns, box counts = rows, a customer per cell; it scrolls sideways
   inside its own card (never the page) */
.matwrap { overflow-x: auto; -webkit-overflow-scrolling: touch; background: var(--card); border-radius: var(--radius);
  box-shadow: var(--shadow); }
.mat { border-collapse: collapse; min-width: 100%; direction: rtl; }
.mat th, .mat td { padding: 8px; text-align: right; vertical-align: top; border-bottom: 1px solid var(--sep); }
.mat tr:last-child th, .mat tr:last-child td { border-bottom: 0; }
.mat thead th { font-size: 14.5px; font-weight: 700; white-space: nowrap; }
.mat th.corner, .mat th.amt { color: var(--label2); font-size: 13px; font-weight: 650; white-space: nowrap; }
.mat th.amt { font-size: 15px; color: var(--label); padding-top: 18px; }
.mat td { min-width: 150px; }
.mat td.none { color: var(--label3); text-align: center; padding-top: 18px; }
.mat td small { display: block; color: var(--label2); font-size: 12.5px; margin-top: 3px; }
.mat td .mv { font-weight: 600; }
.mat .inp { height: 44px; font-size: 15px; padding: 0 10px; }
.mat td.chg .inp { border-color: var(--accent); background: var(--accent-soft); }

/* (user 06.12.26 "phone app languages change: Hebrew (default), English, Thai") English / Thai = left to right
   (i18n.js sets html dir=ltr); the Hebrew rules above stay the default */
html[dir="ltr"] body, html[dir="ltr"] button, html[dir="ltr"] input, html[dir="ltr"] select, html[dir="ltr"] textarea {
  direction: ltr; text-align: left; }
html[dir="ltr"] .card, html[dir="ltr"] .mat th, html[dir="ltr"] .mat td { text-align: left; }
html[dir="ltr"] .line .v { text-align: right; }
html[dir="ltr"] .chev { transform: scaleX(-1); }
html[dir="ltr"] select.inp { background-position: calc(100% - 24px) 22px, calc(100% - 18px) 22px; padding-left: 14px;
  padding-right: 36px; }
html[dir="ltr"] .unit span { left: auto; right: 16px; }
html[lang="th"] body { font-family: "Leelawadee UI", "Noto Sans Thai", Tahoma, "Segoe UI", system-ui, sans-serif; }
/* (user 06.12.26 "align text to center") each language centred in its button */
.langseg button { font-size: 15px; display: flex; align-items: center; justify-content: center; text-align: center; }