:root {
  --brown: #3b2314; --orange: #b5541a; --cream: #f8f4ea; --sand: #efe6d4;
  --ink: #2a1c12; --muted: #6b5a4c; --line: rgba(59, 35, 20, .15); --white: #fff;
  --danger: #b3261e;
  --f-head: "Rubik", "Heebo", system-ui, sans-serif;
  --f-body: "Heebo", system-ui, sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; font-family: var(--f-body); color: var(--ink); background: var(--cream); font-size: 15px; }
h1, h2 { font-family: var(--f-head); color: var(--brown); margin: 0; }
h2 { font-size: 1.15rem; }
[hidden] { display: none !important; }
.muted { color: var(--muted); }
.small { font-size: .85rem; margin: 2px 0 10px; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }

.btn {
  font: inherit; font-weight: 600; border: 1.5px solid var(--line); background: var(--white); color: var(--brown);
  border-radius: 999px; padding: 9px 18px; cursor: pointer;
}
.btn:hover { border-color: var(--brown); }
.btn-primary { background: var(--orange); border-color: var(--orange); color: #fff; }
.btn-primary:hover { background: #974512; }
.btn-sm { padding: 6px 12px; font-size: .9rem; }

/* התחברות */
.login { min-height: 100vh; display: grid; place-items: center; padding: 16px; }
.login-card {
  background: var(--white); border-radius: 20px; padding: 28px; width: min(380px, 100%);
  box-shadow: 0 10px 30px rgba(59, 35, 20, .12); display: flex; flex-direction: column; gap: 6px; text-align: center;
}
.login-card img { margin: 0 auto 6px; }
.login-card label { text-align: start; font-weight: 600; margin-top: 8px; }
.login-card input { font: inherit; padding: 10px 12px; border: 1.5px solid var(--line); border-radius: 10px; }
.login-card .btn { margin-top: 14px; }
.form-error { color: var(--danger); min-height: 1.2em; margin: 6px 0 0; font-size: .9rem; }

/* מסך ראשי */
.topbar { display: flex; justify-content: space-between; align-items: center; padding: 10px 20px; background: var(--white); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 5; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--f-head); color: var(--brown); font-size: 1.1rem; }
.user { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: .9rem; }
.wrap { max-width: 1400px; margin: 0 auto; padding: 18px 20px 40px; }

.daybar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 14px; }
.daybar input { font: inherit; padding: 6px 10px; border: 1.5px solid var(--line); border-radius: 10px; background: var(--white); }
.day-label { font-family: var(--f-head); font-weight: 700; color: var(--brown); margin-inline-start: 8px; }

.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 16px; }
.card { background: var(--white); border-radius: 14px; padding: 12px 16px; box-shadow: 0 0 0 1px var(--line); }
.card span { color: var(--muted); font-size: .85rem; display: block; }
.card strong { font-family: var(--f-head); font-size: 1.6rem; color: var(--brown); }

.cols { display: grid; grid-template-columns: 1fr 300px; gap: 16px; align-items: start; }
.panel { background: var(--white); border-radius: 14px; padding: 14px 16px; box-shadow: 0 0 0 1px var(--line); }
.side { display: flex; flex-direction: column; gap: 16px; }
.panel-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 10px; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filters input, .filters select, td select { font: inherit; font-size: .9rem; padding: 5px 8px; border: 1.5px solid var(--line); border-radius: 8px; background: var(--white); }

.table-wrap { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; }
.orders th, .orders td { padding: 8px 6px; border-bottom: 1px solid var(--line); text-align: start; vertical-align: top; }
.orders th { font-size: .8rem; color: var(--muted); font-weight: 600; white-space: nowrap; }
.orders td.num { font-variant-numeric: tabular-nums; white-space: nowrap; }
.orders .cust strong { display: block; }
.orders .cust small { color: var(--muted); }
.orders .items { font-size: .88rem; line-height: 1.5; }
.orders tr.cancelled td { opacity: .5; }
.orders tr.saving { background: #fff8e8; }
.mini td { padding: 5px 2px; border-bottom: 1px solid var(--line); }
.mini td:last-child { text-align: end; font-weight: 700; font-variant-numeric: tabular-nums; }
.empty { text-align: center; padding: 30px 10px; color: var(--muted); }

.status-חדשה { color: #8a3a0c; font-weight: 700; }
.status-בוטלה { color: var(--danger); }

.toast {
  position: fixed; bottom: 20px; left: 50%; transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  background: var(--brown); color: var(--cream); padding: 10px 18px; border-radius: 999px; transition: .2s; z-index: 20;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.error { background: var(--danger); }
.loading { position: fixed; top: 70px; left: 50%; transform: translateX(-50%); background: var(--white); padding: 6px 14px; border-radius: 999px; box-shadow: 0 4px 14px rgba(0,0,0,.1); z-index: 20; }

@media (max-width: 1000px) {
  .cols { grid-template-columns: 1fr; }
  .cards { grid-template-columns: repeat(2, 1fr); }
}

/* ===== גרסה 2: לשוניות, כרטיסי הזמנה, פניות, חלון לקוח ===== */
.live { font-family: var(--f-body); font-size: .75rem; font-weight: 600; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 2px 9px; }
.live::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #b9b0a6; margin-inline-end: 5px; vertical-align: middle; }
.live.on { color: #2f6b2f; border-color: #a9cfa9; }
.live.on::before { background: #3c9a3c; }

.tabs { display: flex; gap: 4px; padding: 0 20px; background: var(--white); border-bottom: 1px solid var(--line); position: sticky; top: 61px; z-index: 4; overflow-x: auto; }
.tab { font: inherit; font-weight: 600; background: none; border: none; border-bottom: 3px solid transparent; color: var(--muted); padding: 12px 14px; cursor: pointer; white-space: nowrap; }
.tab:hover { color: var(--brown); }
.tab.is-active { color: var(--brown); border-bottom-color: var(--orange); }
.badge { display: inline-block; min-width: 20px; padding: 0 6px; margin-inline-start: 4px; border-radius: 999px; background: var(--danger); color: #fff; font-size: .78rem; line-height: 20px; text-align: center; }

.card.hot strong { color: var(--orange); }
.panel-head p { margin: 4px 0 0; flex-basis: 100%; }

.cardlist { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 12px; }
.ocard { background: var(--white); border-radius: 14px; box-shadow: 0 0 0 1px var(--line); display: flex; flex-direction: column; }
.ocard header { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 12px 14px 8px; border-bottom: 1px solid var(--line); }
.ocard header strong { font-family: var(--f-head); color: var(--brown); }
.ocard header .small { margin: 0 auto 0 0; }
.ocard-body { display: flex; flex-wrap: wrap; gap: 10px 18px; padding: 10px 14px; flex: 1; font-size: .92rem; line-height: 1.55; }
.ocard-body .items { min-width: 140px; font-weight: 500; }
.ocard-body .meta { flex: 1; min-width: 160px; }
.ocard footer { display: flex; flex-wrap: wrap; gap: 8px; padding: 10px 14px 14px; }
.note { display: block; color: #8a3a0c; }
.tag { display: inline-block; font-size: .72rem; font-weight: 700; padding: 1px 8px; border-radius: 999px; background: var(--sand); color: var(--brown); margin-inline-start: 4px; vertical-align: middle; }
.tag-hot { background: #fde4d3; color: #8a3a0c; }

.btn-danger { color: var(--danger); border-color: rgba(179, 38, 30, .35); }
.btn-danger:hover { border-color: var(--danger); }
.btn-ghost { border-color: transparent; color: var(--muted); }
.btn:disabled { opacity: .55; cursor: default; }

.st[data-st="ממתינה לאישור"] { color: #8a3a0c; font-weight: 700; }
.st[data-st="בייצור"] { color: #1f5a8a; font-weight: 700; }
.st[data-st="הוכנה"] { color: #2f6b2f; font-weight: 700; }
.st[data-st="בוטלה"] { color: var(--danger); }
.orders .cust .tag { margin: 2px 0; }

.modal-wrap { position: fixed; inset: 0; background: rgba(42, 28, 18, .45); display: grid; place-items: center; padding: 16px; z-index: 30; }
.modal { background: var(--white); border-radius: 18px; padding: 22px; width: min(440px, 100%); max-height: 92vh; overflow: auto; display: flex; flex-direction: column; gap: 4px; box-shadow: 0 20px 50px rgba(0,0,0,.25); }
.modal h2 { margin-bottom: 2px; }
.modal label { font-weight: 600; margin-top: 8px; }
.modal input, .modal select { font: inherit; padding: 9px 11px; border: 1.5px solid var(--line); border-radius: 10px; background: var(--white); }
.modal input[readonly] { background: var(--cream); }
.order-box { margin-top: 10px; padding: 10px 12px; border-radius: 12px; background: var(--cream); display: flex; flex-direction: column; gap: 4px; }
.check { display: flex; align-items: center; gap: 8px; margin-top: 0 !important; }
.modal-actions { display: flex; gap: 8px; margin-top: 14px; }

@media (max-width: 700px) {
  .cardlist { grid-template-columns: 1fr; }
  .tabs { top: 0; position: static; }
}

/* ===== גרסה 3: גרפים + חשבשבת ===== */
.statbar, .hashbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 14px; }
.hashbar input[type=date] { font: inherit; padding: 6px 10px; border: 1.5px solid var(--line); border-radius: 10px; background: var(--white); }
.hashbar label { font-weight: 600; }
.hashbar .spacer { flex: 1; }
.seg { display: inline-flex; background: var(--white); border-radius: 999px; box-shadow: 0 0 0 1px var(--line); padding: 3px; }
.seg-btn { font: inherit; font-size: .9rem; font-weight: 600; border: 0; background: none; color: var(--muted); padding: 5px 14px; border-radius: 999px; cursor: pointer; }
.seg-btn.is-active { background: var(--brown); color: var(--cream); }

.charts { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 10px; }
.chart-panel.wide { grid-column: 1 / -1; }
.chart-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: 12px; }
.chart-head .small { margin: 0; }

/* עמודות אנכיות: הזמנות לפי יום. ציר הזמן רץ מימין (ישן) לשמאל (חדש), כמו קריאה בעברית */
.vbars { --h: 200px; position: relative; height: var(--h); display: flex; align-items: flex-end; gap: 2px;
  border-bottom: 1px solid rgba(59,35,20,.35);
  background: repeating-linear-gradient(to top, transparent 0 calc(var(--h) / 4 - 1px), rgba(59,35,20,.08) calc(var(--h) / 4 - 1px) calc(var(--h) / 4)); }
.vbar { flex: 1; min-width: 3px; background: var(--orange); border-radius: 4px 4px 0 0; position: relative; cursor: default; }
.vbar.zero { background: transparent; }
.vbar.wknd.zero::after { content: ""; position: absolute; bottom: 0; inset-inline: 0; height: 2px; background: rgba(59,35,20,.15); }
.vbar:hover, .vbar:focus-visible { background: #8f4013; outline: none; }
.vbar.zero:hover { background: rgba(59,35,20,.08); }
.vbar-hit { position: absolute; inset: calc(-1 * var(--h)) -1px 0; }
.vbars-max { position: absolute; top: -2px; inset-inline-end: 0; font-size: .75rem; color: var(--muted); background: var(--white); padding: 0 4px; transform: translateY(-50%); }
.vbars-x { display: flex; gap: 2px; margin-top: 4px; font-size: .72rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.vbars-x span { flex: 1; min-width: 3px; text-align: center; white-space: nowrap; overflow: visible; }

/* עמודות אופקיות */
.hbars { display: flex; flex-direction: column; gap: 7px; }
.hrow { display: grid; grid-template-columns: minmax(110px, 38%) 1fr; align-items: center; gap: 10px; font-size: .9rem; }
.hrow .lbl { text-align: start; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hrow .track { display: flex; align-items: center; gap: 6px; }
.hrow .bar { height: 16px; background: var(--orange); border-radius: 0 4px 4px 0; min-width: 2px; }
[dir=rtl] .hrow .bar { border-radius: 4px 0 0 4px; }
.hrow .val { font-variant-numeric: tabular-nums; font-weight: 600; color: var(--ink); font-size: .85rem; white-space: nowrap; }
.hrow:hover .bar { background: #8f4013; }

.chart-tip { position: fixed; z-index: 40; pointer-events: none; background: var(--brown); color: var(--cream); font-size: .85rem; padding: 6px 10px; border-radius: 8px; box-shadow: 0 6px 16px rgba(0,0,0,.18); white-space: nowrap; }
.chart-tip strong { font-family: var(--f-head); }

.exp-yes { color: #2f6b2f; font-weight: 700; }
.exp-no { color: var(--muted); }
.row-btns { display: flex; gap: 6px; flex-wrap: wrap; }
.hash-key { font-variant-numeric: tabular-nums; }
.hash-key.fallback { color: var(--muted); }

@media (max-width: 900px) {
  .charts { grid-template-columns: 1fr; }
  .vbars-x span:not(.lab) { visibility: hidden; }
}

/* ===== גרסה 4: מסך פתיחה ומודולים ===== */
.brand-home { display: flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; }
.brand-home:hover strong { color: var(--orange); }

.home { min-height: calc(100vh - 61px); padding: 40px 20px 60px;
  background:
    radial-gradient(1200px 500px at 50% -10%, rgba(181, 84, 26, .14), transparent 70%),
    radial-gradient(700px 400px at 100% 100%, rgba(59, 35, 20, .07), transparent 70%),
    var(--cream); }
.hero { text-align: center; max-width: 720px; margin: 0 auto 36px; }
.hero-logo { width: 160px; height: 160px; border-radius: 50%; background: var(--white);
  box-shadow: 0 0 0 8px rgba(255,255,255,.7), 0 18px 40px rgba(59, 35, 20, .22); animation: rise .6s ease-out both; }
.hero-kicker { margin: 22px 0 4px; color: var(--muted); font-weight: 600; letter-spacing: .02em; }
.hero-title { font-size: clamp(2.2rem, 5vw, 3.4rem); line-height: 1.1; margin: 0; animation: rise .6s .08s ease-out both; }
.hero-title bdi { color: var(--orange); }
.hero-sub { margin: 10px 0 0; font-size: 1.15rem; color: var(--muted); animation: rise .6s .16s ease-out both; }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

.tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; max-width: 1180px; margin: 0 auto; }
.tile { position: relative; display: flex; flex-direction: column; gap: 8px; padding: 26px 22px 22px; min-height: 210px;
  background: var(--white); border-radius: 22px; box-shadow: 0 0 0 1px var(--line), 0 8px 24px rgba(59, 35, 20, .07);
  color: var(--ink); text-decoration: none; transition: transform .18s, box-shadow .18s; animation: rise .5s ease-out both; }
.tile:nth-child(2) { animation-delay: .06s; } .tile:nth-child(3) { animation-delay: .12s; } .tile:nth-child(4) { animation-delay: .18s; }
a.tile:hover, a.tile:focus-visible { transform: translateY(-4px); box-shadow: 0 0 0 2px var(--orange), 0 16px 34px rgba(59, 35, 20, .14); }
.tile strong { font-family: var(--f-head); font-size: 1.4rem; color: var(--brown); }
.tile-sub { color: var(--muted); font-size: .95rem; line-height: 1.45; flex: 1; }
.tile-ic { width: 58px; height: 58px; border-radius: 16px; display: grid; place-items: center; background: #fbe9dc; margin-bottom: 6px; }
.tile-ic svg { width: 30px; height: 30px; fill: none; stroke: var(--orange); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.tile-stat { font-weight: 700; font-size: .92rem; color: var(--brown); min-height: 1.3em; }
.tile-stat .hot { display: inline-block; background: var(--danger); color: #fff; border-radius: 999px; padding: 1px 10px; margin-inline-end: 6px; }
.tile.is-soon { opacity: .62; cursor: default; box-shadow: 0 0 0 1px var(--line); }
.tile.is-soon .tile-ic { background: var(--sand); }
.tile.is-soon .tile-ic svg { stroke: var(--muted); }
.soon { position: absolute; top: 18px; inset-inline-end: 18px; font-size: .78rem; font-weight: 700; color: var(--muted);
  border: 1.5px dashed rgba(59, 35, 20, .3); border-radius: 999px; padding: 2px 10px; }

.moved { text-align: center; align-items: center; }
.moved-ic { width: 64px; height: 64px; border-radius: 50%; background: #e3f1e3; color: #2f6b2f; display: grid; place-items: center; font-size: 2rem; font-weight: 800; margin: 4px auto 8px; }
.moved .modal-actions { justify-content: center; flex-wrap: wrap; }
a.btn { text-decoration: none; display: inline-block; }

@media (max-width: 1000px) { .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .tiles { grid-template-columns: 1fr; } .tile { min-height: 0; } .hero-logo { width: 120px; height: 120px; } }
@media (prefers-reduced-motion: reduce) { .hero-logo, .hero-title, .hero-sub, .tile { animation: none; } }

@media (max-width: 560px) { #userEmail { display: none; } .topbar { padding: 8px 12px; } .brand-home strong { font-size: 1rem; } }

/* ===== גרסה 5: פס ייצור + עריכת הזמנה ===== */
.live-pill:empty { display: none; }
.live-pill { display: inline-block; min-width: 20px; padding: 0 6px; margin-inline-start: 4px; border-radius: 999px; background: #2f6b2f; color: #fff; font-size: .78rem; line-height: 20px; text-align: center; }
.prod-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 6px; }
.prod-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 10px 0 16px; align-items: start; }
.prod-cols h2 { margin-bottom: 10px; display: flex; flex-direction: column; }
.prod-list { display: flex; flex-direction: column; gap: 10px; }
.prod-card { border: 1.5px solid var(--line); border-radius: 12px; padding: 10px 12px; font-size: .9rem; }
.prod-card header { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; }
.prod-card header strong { font-family: var(--f-head); color: var(--brown); }
.prod-card .meta { color: var(--muted); font-size: .82rem; margin: 2px 0 6px; }
.prod-card ul { list-style: none; margin: 0; padding: 0; }
.prod-card li { display: flex; justify-content: space-between; padding: 2px 0; }
.prod-card li.ok { color: #2f6b2f; }
.prod-card li.ok::before { content: "✓ "; }
.prod-card li:not(.ok) { color: var(--muted); }
.prod-bar { height: 6px; background: var(--sand); border-radius: 999px; overflow: hidden; margin: 6px 0; }
.prod-bar span { display: block; height: 100%; background: #2f8a3a; }
.prod-card .acts { display: flex; gap: 6px; margin-top: 8px; }
.prod-empty { color: var(--muted); text-align: center; padding: 14px; border: 1.5px dashed var(--line); border-radius: 12px; }
.peel-table td.ok { color: #2f6b2f; font-weight: 700; }
.peel-table tr.done td { color: var(--muted); }

.modal-wide { width: min(760px, 100%); }
.order-warn { background: #fff7d6; color: #6b4a00; border-radius: 10px; padding: 8px 12px; font-weight: 600; margin: 4px 0; }
.order-grid { display: grid; grid-template-columns: 180px 1fr; gap: 12px; }
.order-grid > div { display: flex; flex-direction: column; }
.order-lines { margin-top: 12px; }
.order-lines th { font-size: .8rem; color: var(--muted); text-align: start; padding: 6px 4px; border-bottom: 1px solid var(--line); }
.order-lines td { padding: 6px 4px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.order-lines input { width: 90px; font: inherit; padding: 6px 8px; border: 1.5px solid var(--line); border-radius: 8px; }
.order-lines .num { font-variant-numeric: tabular-nums; white-space: nowrap; }
.order-lines tr.is-new td:first-child::after { content: " חדש"; font-size: .72rem; font-weight: 700; color: var(--orange); }
.order-lines .rm { border: none; background: none; color: var(--danger); font-size: 1.2rem; cursor: pointer; padding: 4px 8px; }
.order-add { display: flex; gap: 8px; margin-top: 10px; }
.order-add select { flex: 1; font: inherit; padding: 7px 10px; border: 1.5px solid var(--line); border-radius: 10px; background: var(--white); }
.order-total { text-align: end; font-weight: 700; margin: 10px 0 0; }
.btn-edit { margin-inline-start: auto; }

@media (max-width: 1000px) { .prod-cols { grid-template-columns: 1fr; } .prod-kpis { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .order-grid { grid-template-columns: 1fr; } }

/* הזמנה חדשה */
.tab-action { margin-inline-start: auto; color: var(--orange); border-bottom-color: transparent !important; }
.tab-action:hover { color: #8f4013; }
.order-new { background: var(--cream); border-radius: 12px; padding: 10px 12px; margin: 6px 0 4px; }
.order-new input, .order-new select { font: inherit; padding: 9px 11px; border: 1.5px solid var(--line); border-radius: 10px; background: var(--white); }
.order-grid input#oDate, .order-grid input#oNotes { font: inherit; padding: 9px 11px; border: 1.5px solid var(--line); border-radius: 10px; }
.order-approve { margin-top: 10px !important; font-weight: 600; }
.order-new .order-grid { grid-template-columns: 1.4fr 1fr; }
.no-new-tag tr.is-new td:first-child::after { content: none; }

/* ===== גרסה 6: מודול הזמנות מסודר ===== */
.mod-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 20px 6px; max-width: 1400px; margin: 0 auto; }
.mod-head h1 { font-size: 1.6rem; }
.mod-head p { margin: 2px 0 0; }
.tabs { padding-top: 4px; }

/* מסלול ההזמנה: 4 שלבים לחיצים */
.flow.cards { display: flex; align-items: stretch; gap: 8px; margin-bottom: 18px; grid-template-columns: none; }
.flow-step { flex: 1; font: inherit; text-align: start; cursor: pointer; background: var(--white); border: none; border-radius: 16px;
  box-shadow: 0 0 0 1px var(--line); padding: 12px 16px; display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 12px; align-items: center; transition: box-shadow .15s, transform .15s; }
.flow-step:hover { box-shadow: 0 0 0 2px var(--orange); transform: translateY(-1px); }
.flow-step strong { grid-row: span 2; font-family: var(--f-head); font-size: 2rem; color: var(--brown); min-width: 44px; text-align: center; }
.flow-k { display: none; }
.flow-l { font-weight: 700; color: var(--ink); }
.flow-h { font-size: .8rem; color: var(--muted); }
.flow-step.hot { background: #fff4ec; box-shadow: 0 0 0 2px var(--orange); }
.flow-step.hot strong { color: var(--orange); }
.flow-arrow { align-self: center; color: #c9b8a6; font-size: 1.3rem; }

/* כרטיס הזמנה לאישור */
.ocard { padding: 0; }
.ocard header { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding: 14px 16px 10px; border-bottom: 1px solid var(--line); }
.oc-who strong { display: block; font-family: var(--f-head); font-size: 1.2rem; color: var(--brown); }
.oc-who .muted { font-size: .85rem; }
.oc-due { text-align: end; background: var(--cream); border-radius: 10px; padding: 4px 10px; white-space: nowrap; }
.oc-due span { display: block; font-size: .72rem; }
.oc-due strong { color: var(--brown); }
.oc-items { list-style: none; margin: 0; padding: 10px 16px 4px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.oc-items li { display: grid; grid-template-columns: 36px 1fr; align-items: baseline; }
.oc-items b { font-family: var(--f-head); font-size: 1.15rem; color: var(--orange); }
.oc-note { margin: 6px 16px 0; padding: 6px 10px; background: #fff7d6; border-radius: 8px; color: #6b4a00; font-weight: 600; font-size: .9rem; }
.oc-meta { margin: 8px 16px 0; }
.ocard footer { padding: 12px 16px 14px; align-items: center; }
.btn-link-danger { background: none; border: none; color: var(--danger); text-decoration: underline; margin-inline-start: auto; padding: 6px 4px; }
.btn-link-danger:hover { border: none; }
.panel-head > div { flex: 1; }

/* כל ההזמנות */
.day-mode { margin-inline-start: auto; }
.dm-btn { font: inherit; font-size: .88rem; font-weight: 600; border: 0; background: none; color: var(--muted); padding: 5px 12px; border-radius: 999px; cursor: pointer; }
.dm-btn.is-active { background: var(--brown); color: var(--cream); }
.st-sub { display: block; font-size: .75rem; color: var(--muted); margin-top: 3px; }
.orders td:last-child { width: 1%; white-space: nowrap; }

/* בייצור עכשיו */
.prod-summary { background: var(--white); border-radius: 12px; padding: 10px 14px; box-shadow: 0 0 0 1px var(--line); margin: 0 0 4px; }
.prod-summary b { color: var(--brown); }

@media (max-width: 900px) {
  .flow.cards { flex-wrap: wrap; }
  .flow-step { flex: 1 1 45%; }
  .flow-arrow { display: none; }
  .mod-head { flex-wrap: wrap; }
}
.flow-step.is-current { box-shadow: 0 0 0 2px var(--brown); }
.flow-step.hot.is-current { box-shadow: 0 0 0 3px var(--orange); }

/* ===== מאושרות · ממתינות לייצור (שורות) ===== */
.approved-block { margin-top: 26px; padding-top: 18px; border-top: 2px dashed var(--line); }
.approved-head h2 { display: flex; align-items: baseline; gap: 8px; }
#releaseBtn { font-size: 1.05rem; padding: 12px 26px; }
#releaseBtn:disabled { opacity: .45; cursor: default; }
.approved-table td { vertical-align: middle; }
.approved-table .items-cell { font-size: .9rem; line-height: 1.45; max-width: 360px; }
.approved-table tr.group-row td { background: var(--sand); font-weight: 700; color: var(--brown); font-size: .88rem; padding: 6px 10px; }
.approved-table tr.later td { opacity: .62; }
.approved-table tr.is-standing td { background: #f3f7ff; }
.approved-table tr.is-standing td:first-child { box-shadow: inset -4px 0 0 #2f6fd6; }
.approved-table tr.is-standing { outline: 1.5px solid #2f6fd6; outline-offset: -1.5px; }
.tag-standing { background: #e8f0fe; color: #1f56b3; }

/* ===== הזמנה קבועה: ימים בשבוע ===== */
.order-stand { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin: 4px 0 12px; }
.stand-pick { display: flex; flex-direction: column; gap: 4px; min-width: 220px; }
.weekdays { border: 0; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.weekdays legend { font-weight: 600; margin-bottom: 4px; padding: 0; width: 100%; }
.weekdays label { cursor: pointer; }
.weekdays input { position: absolute; opacity: 0; pointer-events: none; }
.weekdays span { display: inline-grid; place-items: center; width: 42px; height: 38px; border-radius: 10px; border: 1.5px solid var(--line); background: var(--white); font-weight: 700; color: var(--brown); }
.weekdays input:checked + span { background: #2f6fd6; border-color: #2f6fd6; color: #fff; }
.weekdays input:focus-visible + span { outline: 3px solid var(--orange); outline-offset: 2px; }
.btn-standing { border-color: #2f6fd6; color: #1f56b3; }
.btn-standing.has { background: #e8f0fe; }
#custSearch { min-width: min(360px, 100%); font-size: 1rem; }
.approved-table .row-btns, #custBody .row-btns { flex-wrap: nowrap; align-items: center; }
.approved-table .row-btns .btn, #custBody .row-btns .btn { white-space: nowrap; }
.approved-table .btn-link-danger { margin: 0; }

/* ===== לימים הבאים: מופרד לגמרי ועמום ===== */
.later-block { margin-top: 34px; padding: 16px 16px 6px; border-top: 3px double var(--line); background: repeating-linear-gradient(-45deg, #f4f1ec, #f4f1ec 10px, #efebe4 10px, #efebe4 20px); border-radius: 0 0 12px 12px; filter: grayscale(1); opacity: .55; transition: opacity .2s, filter .2s; }
.later-block:hover, .later-block:focus-within { opacity: .9; filter: grayscale(.4); }
.later-head h3 { margin: 0; font-family: var(--f-head); font-size: 1rem; color: var(--muted); }
.later-head p { margin: 2px 0 10px; }
.later-table { background: transparent; }
.later-table tr.later td { opacity: 1; }

/* ===== כפתור "שלח לקילוף" ירוק ===== */
.btn-go { background: #2e7d32; border-color: #2e7d32; color: #fff; }
.btn-go:hover:not(:disabled) { background: #1f5f23; border-color: #1f5f23; }
.btn-go:disabled { background: #9bbf9d; border-color: #9bbf9d; color: #fff; }

/* ===== מחיצה גדולה בין הכרטיסים לבין המאושרות, כותרת באמצע ===== */
.approved-block { border-top: 0; margin-top: 34px; padding-top: 0; }
.approved-divider { position: relative; text-align: center; margin: 0 0 16px; padding: 18px 16px 16px; background: var(--sand); border-radius: 14px; border-top: 4px solid var(--brown); }
.approved-divider h2 { font-size: 1.45rem; margin: 0; }
.approved-divider #approvedCount { display: block; margin-top: 4px; color: var(--muted); font-weight: 600; }
.approved-head { align-items: center; }
.approved-head p { flex-basis: auto !important; flex: 1; margin: 0 !important; }
.approved-table tr.group-row td { text-align: center; }

/* ===== מספר הכרטיס לפי סדר הקבלה ===== */
.ocard { position: relative; }
.oc-num { position: absolute; top: -10px; inset-inline-start: -10px; z-index: 1; min-width: 30px; height: 30px; padding: 0 6px; border-radius: 999px; display: grid; place-items: center; background: var(--brown); color: #fff; font-weight: 800; font-size: .95rem; box-shadow: 0 2px 6px rgba(59,35,20,.25); }
.cardlist { padding-top: 10px; padding-inline-start: 10px; }

/* ===== ניווט קבוע בכותרת ===== */
.mainnav { display: flex; align-items: center; gap: 4px; margin-inline: 12px auto; overflow-x: auto; scrollbar-width: none; }
.mainnav::-webkit-scrollbar { display: none; }
.mainnav a, .mainnav .nav-back { font: inherit; font-weight: 600; color: var(--muted); text-decoration: none; padding: 7px 14px; border-radius: 8px; border: 0; background: none; cursor: pointer; white-space: nowrap; }
.mainnav a:hover, .mainnav .nav-back:hover { background: var(--sand); color: var(--brown); }
.mainnav a.is-current { background: var(--brown); color: #fff; }
.mainnav .nav-back { border: 1.5px solid var(--line); margin-inline-end: 6px; }
@media (max-width: 760px) {
  .topbar { flex-wrap: wrap; row-gap: 6px; }
  .mainnav { order: 3; width: 100%; margin: 0; }
}

/* =====================================================================
   עיצוב "פתק עבודה וחותמת" (כיוון א) · פלטת האתר
   רגילה = כתום, קבועה = כחול, מחכה לאישור = מסגרת אדמדמה, מאושרת = מסגרת ירוקה
   ===================================================================== */
:root { --stamp: "Playpen Sans Hebrew", "Heebo", cursive; --reg: #b5541a; --reg-bg: #fdf1e6; --reg-line: #ecbf98;
  --std: #1f56b3; --std-bg: #eef3fd; --std-line: #a9c1ee; --ok: #177a41; --ok-bg: #eff8ef; --ok-line: #8cc896;
  --wait: #8a2e22; --wait-bg: #fbf0ed; --wait-line: #d69a8f; }
.num, .tk-n, .tk-items b, .zone-count { font-variant-numeric: tabular-nums; }

/* לשוניות: שלבי התהליך ממוספרים, כלים בצד */
.tab-step .step-n { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--sand); color: var(--brown); font-size: .8rem; font-weight: 800; margin-inline-end: 6px; }
.tab-step.is-active .step-n { background: var(--brown); color: #fff; }
.tab-spacer { flex: 1; }
.tab-sec { font-weight: 600; font-size: .92rem; }
.badge-soft { background: var(--sand); color: var(--brown); }
.mainnav a[data-nav="reports"] { }

/* אזורים: מחכות לאישור (אדמדם) ומאושרות (ירוק) */
.zone { border-radius: 12px; padding: 18px 20px 20px; margin-bottom: 26px; }
.zone-pending { border: 2.5px solid var(--wait-line); background: var(--wait-bg); }
.zone-approved { border: 2.5px solid var(--ok-line); background: var(--ok-bg); }
.zone-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 14px; }
.zone-head h2 { font-size: 1.4rem; }
.zone-pending .zone-head h2 { color: var(--wait); }
.zone-approved .zone-head h2 { color: #14592f; }
.zone-head p { margin: 4px 0 0; }
.zone-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.chip { display: inline-block; font-weight: 700; font-size: .88rem; border-radius: 999px; padding: 2px 11px; background: var(--white); border: 1.5px solid var(--line); color: var(--muted); }
.chip-orange { background: var(--reg-bg); border-color: var(--reg-line); color: #8a3d0e; }
.chip-blue { background: var(--std-bg); border-color: var(--std-line); color: var(--std); }
.chip-green { background: var(--white); border-color: var(--ok-line); color: #14592f; }
.btn-outline-red { border-color: var(--wait-line); color: var(--wait); background: var(--white); }

/* פתקי עבודה */
.tickets { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; padding: 0; }
.ticket-card { background: var(--white); box-shadow: 0 1px 0 #e2d6c2, 0 8px 18px rgba(59,35,20,.08); display: flex; flex-direction: column; padding: 0 20px 16px; }
.ticket-card .perf { height: 12px; margin: 0 -20px 4px; background-image: radial-gradient(circle at 8px 0, var(--wait-bg) 5px, transparent 5.5px); background-size: 16px 12px; background-repeat: repeat-x; }
.tk-top { display: flex; justify-content: space-between; align-items: baseline; border-bottom: 2px dashed #e2d6c2; padding-bottom: 8px; }
.tk-n { font-family: var(--f-head); font-size: 1.9rem; font-weight: 800; color: var(--brown); }
.tk-meta { color: var(--muted); font-size: .85rem; }
.tk-who { margin: 10px 0 2px; font-size: 1.3rem; }
.tk-sub { margin: 0; color: var(--muted); font-size: .88rem; }
.tk-due { margin: 10px 0 0; align-self: flex-start; background: var(--brown); color: #fff; font-weight: 700; padding: 3px 10px; border-radius: 3px; }
.tk-items { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-direction: column; gap: 5px; }
.tk-items li { display: flex; gap: 10px; align-items: baseline; font-weight: 600; }
.tk-items b { min-width: 38px; font-family: var(--f-head); font-size: 1.25rem; color: var(--brown); }
.tk-note { margin: 12px 0 0; padding: 7px 10px; background: #fdf0d0; font-weight: 600; transform: rotate(-.5deg); }
.ticket-card footer { display: flex; gap: 8px; align-items: center; margin-top: auto; padding-top: 14px; }
.ticket-card .btn-link-danger { margin-inline-start: auto; }
.btn-stamp { font-family: var(--stamp); font-weight: 700; font-size: 1.1rem; color: var(--brown); background: var(--white); border: 3px double var(--brown); border-radius: 4px; padding: 5px 20px; cursor: pointer; transform: rotate(-2deg); }
.btn-stamp:hover { background: var(--brown); color: #fff; }
.btn-stamp:disabled { opacity: .5; }

/* "שלח לקילוף": חותמת ירוקה */
.btn-stamp-go { font-family: var(--stamp); font-weight: 700; font-size: 1.35rem; color: #fff; background: var(--ok); border: 0; outline: 3px double var(--ok); outline-offset: 4px; border-radius: 3px; padding: 11px 28px; margin: 6px; cursor: pointer; }
.btn-stamp-go:hover:not(:disabled) { background: #0f5c30; }
.btn-stamp-go:disabled { background: #9bbf9d; outline-color: #9bbf9d; cursor: default; }

/* שורות המאושרות */
.zone-approved .table-wrap { background: var(--white); border-radius: 8px; }
.approved-table tr.is-regular td { background: var(--reg-bg); }
.approved-table tr.is-standing td { background: var(--std-bg); }
.approved-table tr.is-regular td:first-child { box-shadow: inset -4px 0 0 var(--reg); }
.approved-table tr.is-standing td:first-child { box-shadow: inset -4px 0 0 var(--std); }
.approved-table tr.is-standing { outline: 0; }
.approved-table tr td { border-bottom: 2px solid var(--white); }
.tag-standing { background: var(--std-bg); color: var(--std); border: 1.5px solid var(--std-line); }
.stamp-mark { display: inline-block; font-family: var(--stamp); font-weight: 700; color: #14592f; border: 2.5px double #14592f; padding: 0 8px; transform: rotate(-5deg); white-space: nowrap; }

/* הזמנות קבועות: רשימה */
.standing-table tr.paused td { opacity: .55; }
.standing-table .days { display: inline-flex; gap: 3px; }
.standing-table .days b { display: inline-grid; place-items: center; min-width: 26px; height: 24px; border-radius: 5px; background: var(--std-bg); color: var(--std); border: 1.5px solid var(--std-line); font-size: .85rem; }

/* חלון הזמנה: רגילה / קבועה */
.order-kind { border: 0; padding: 0; margin: 4px 0 12px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.order-kind legend { font-weight: 700; margin-bottom: 6px; padding: 0; }
.kind-card { display: flex; gap: 10px; align-items: flex-start; border: 2px solid var(--reg-line); background: var(--reg-bg); border-radius: 10px; padding: 10px 12px; cursor: pointer; margin: 0 !important; }
.kind-card b { display: block; color: #8a3d0e; font-size: 1.05rem; }
.kind-card small { color: var(--muted); }
.kind-card input { margin-top: 4px; accent-color: var(--reg); }
.kind-standing { border-color: var(--std-line); background: var(--std-bg); }
.kind-standing b { color: var(--std); }
.kind-standing input { accent-color: var(--std); }
.kind-card:has(input:checked) { border-width: 3px; box-shadow: 0 0 0 2px var(--white) inset; }
.kind-card:not(:has(input:checked)) { opacity: .7; }
.weekdays input:checked + span { background: var(--std); border-color: var(--std); }

/* לקוח חדש בתוך החלון */
.newcust-btn { display: block; width: 100%; margin-top: 6px; text-align: start; font: inherit; font-weight: 800; color: var(--orange); background: #fff6ee; border: 1.5px dashed var(--reg-line); border-radius: 8px; padding: 9px 12px; cursor: pointer; }
.newcust { border: 1.5px dashed #d9c9ae; border-radius: 10px; background: #fcfaf5; padding: 12px 14px; margin: 4px 0 12px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.newcust legend { font-weight: 800; padding: 0 6px; }
.newcust label { display: flex; flex-direction: column; gap: 4px; font-weight: 600; margin: 0 !important; }
.newcust input, .newcust select { font: inherit; padding: 8px 10px; border: 1.5px solid var(--line); border-radius: 8px; background: var(--white); }
.newcust p, .newcust button { grid-column: 1 / -1; margin: 0; justify-self: start; }

/* הוספת מוצר: שם + כמות במקביל */
.order-add { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px; }
.order-add label { display: flex; flex-direction: column; gap: 4px; font-weight: 600; margin: 0 !important; }
.order-add .oa-prod { flex: 1 1 260px; }
.order-add .oa-qty { flex: 0 0 110px; }
.order-add input { font: inherit; font-size: 1rem; padding: 9px 12px; border: 1.5px solid var(--line); border-radius: 10px; background: var(--white); }
.order-add input:focus { border-color: var(--orange); outline: none; box-shadow: 0 0 0 3px rgba(181,84,26,.15); }
.order-add .btn { padding: 10px 18px; }
.oa-hint { margin: 6px 0 0 !important; }

/* חשבשבת: שונתה אחרי הייצוא */
.exp-changed { display: inline-block; font-weight: 800; color: #8a3d0e; background: #fde4d3; border-radius: 999px; padding: 2px 10px; }

@media (max-width: 640px) {
  .order-kind, .newcust { grid-template-columns: 1fr; }
  .zone { padding: 14px 12px 16px; }
}

/* ===== ניווט קבוע: כפתור חזרה עגול + בורר מודולים ===== */
.mainnav { gap: 10px; }
.mainnav svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.mainnav .nav-back { display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 14px 0 10px; margin: 0; border: 1.5px solid var(--line); border-radius: 999px; background: var(--white); color: var(--brown); font-weight: 700; transition: background .15s, border-color .15s, transform .15s; }
.mainnav .nav-back:hover { background: var(--sand); border-color: #d9c9ae; }
.mainnav .nav-back:hover svg { transform: translateX(2px); }
.mainnav .nav-back svg { transition: transform .15s; }
.nav-seg { display: inline-flex; align-items: center; gap: 2px; padding: 4px; background: var(--sand); border-radius: 12px; }
.mainnav .nav-seg a { display: inline-flex; align-items: center; gap: 7px; height: 32px; padding: 0 13px; border-radius: 9px; color: var(--muted); font-weight: 700; text-decoration: none; transition: background .15s, color .15s; }
.mainnav .nav-seg a:hover { background: rgba(255,255,255,.6); color: var(--brown); }
.mainnav .nav-seg a.is-current { background: var(--white); color: var(--brown); box-shadow: 0 1px 2px rgba(59,35,20,.12), 0 2px 8px rgba(59,35,20,.08); }
.mainnav .nav-seg a.is-current svg { color: var(--orange); }
.mainnav a:focus-visible, .mainnav button:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }
@media (max-width: 760px) {
  .mainnav .nav-seg a { padding: 0 10px; gap: 5px; font-size: .9rem; }
  .mainnav .nav-back span { display: none; }
  .mainnav .nav-back { padding: 0 10px; }
}

/* =====================================================================
   שאר המודולים באותה שפה: מסגרות, טבלאות, כפתורים
   ===================================================================== */
.panel { border-radius: 12px; padding: 18px 20px; box-shadow: none; border: 2px solid #e2d6c2; }
.panel-head h2, .zone-head h2 { font-size: 1.35rem; }
.orders th { background: var(--sand); color: var(--brown); font-weight: 800; font-size: .82rem; padding: 9px 8px; border-bottom: 2px solid #d9c9ae; }
.orders thead tr th:first-child { border-start-start-radius: 8px; }
.orders thead tr th:last-child { border-start-end-radius: 8px; }
.orders td { padding: 10px 8px; }
.orders tbody tr:hover td { background: #fcfaf5; }
.approved-table tbody tr:hover td { background: inherit; }
.filters input, .filters select, td select, .daybar input { border-radius: 10px; padding: 8px 12px; border-width: 1.5px; }
.filters input:focus, .filters select:focus, td select:focus { border-color: var(--orange); outline: none; box-shadow: 0 0 0 3px rgba(181,84,26,.15); }
.empty { border: 1.5px dashed #d9c9ae; border-radius: 10px; background: #fcfaf5; }
.zone .empty { background: rgba(255,255,255,.6); }

/* ניהול לקוחות: פניות כפתקים במסגרת אדמדמה */
#view-requests .ticket-card .tk-sub a { color: var(--orange); font-weight: 700; }
#view-requests .ticket-card .perf { background-image: radial-gradient(circle at 8px 0, var(--wait-bg) 5px, transparent 5.5px); }
#view-customers .panel-head h2 { display: flex; align-items: baseline; gap: 8px; }

/* פס ייצור */
#view-production .panel { padding: 16px 18px; }
.prod-card { border: 2px solid #e2d6c2; background: var(--white); }

/* דוחות */
.statbar { background: var(--white); border: 2px solid #e2d6c2; border-radius: 12px; padding: 10px 14px; }
.chart-panel { border: 2px solid #e2d6c2; }

/* חשבשבת: אדום = עוד לא נכנסו, ירוק = כבר נכנסו */
.hash-top { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; background: var(--white); border: 2px solid #e2d6c2; border-radius: 12px; padding: 12px 16px; margin-bottom: 8px; }
.hash-top label { font-weight: 700; color: var(--brown); }
.hash-top input[type=date] { font: inherit; padding: 8px 12px; border: 1.5px solid var(--line); border-radius: 10px; }
.hash-top .spacer { flex: 1; }
.btn-stamp-sm { font-size: 1.1rem; padding: 8px 22px; margin: 4px 6px; }
.hash-hint { margin: 0 4px 14px !important; }
.t-red { color: var(--wait); }
.t-green { color: #14592f; }
.hash-table tbody tr td { background: var(--white); }
.zone-pending .hash-table tbody tr td:first-child { box-shadow: inset -4px 0 0 #c4685a; }
.zone-approved .hash-table tbody tr td:first-child { box-shadow: inset -4px 0 0 var(--ok); }
.zone-pending .table-wrap, .zone-approved .table-wrap { background: var(--white); border-radius: 8px; }
.link-btn { font: inherit; font-weight: 700; color: var(--orange); background: none; border: 0; padding: 0; text-decoration: underline; cursor: pointer; }
.exp-yes { color: #14592f; font-weight: 700; white-space: nowrap; }

/* מסך הבית: אריחים באותה שפה */
.tile { border: 2px solid #e2d6c2; box-shadow: none; transition: border-color .15s, transform .15s; }
.tile:not(.is-soon):hover { border-color: var(--orange); transform: translateY(-2px); }

/* חשבשבת: בדיקת מוכנות */
.hash-key.missing { color: #a3261b; font-weight: 800; }
.hash-ok { display: inline-block; font-weight: 800; color: #177a41; background: #e3f3e6; border-radius: 999px; padding: 2px 10px; }
.hash-probs { display: flex; flex-direction: column; gap: 4px; align-items: flex-start; }
.hash-prob { display: inline-block; font-weight: 700; font-size: .9em; color: #8a2e22; background: #fbe1dc; border: 1.5px solid #e3a89d; border-radius: 8px; padding: 2px 8px; }
.hash-prob .link-btn { font-weight: 800; }
.hash-ready-note { margin: 0 0 10px; font-weight: 700; color: #8a2e22; background: #fbf0ed; border: 2px solid #d69a8f; border-radius: 8px; padding: 8px 12px; }

/* חשבשבת: מסגרת כתומה = חסר משהו, לא ייכנס לקובץ עד שמתקנים */
.zone-issue { border: 2.5px solid #e3a565; background: #fdf1e6; }
.zone-issue .zone-head h2 { color: #8a3d0e; }
.zone-issue .zone-sub { margin: -6px 0 12px; }
.zone-issue .table-wrap { background: var(--white); border-radius: 8px; }
.zone-issue .hash-table tbody tr td:first-child { box-shadow: inset -4px 0 0 #b5541a; }
.hash-acts { white-space: nowrap; }
.t-orange { color: #b5541a; }

/* חשבשבת: התראה על הזמנות מימים קודמים שלא יצאו */
.hash-overdue { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; background: #d62828; color: #fff; border-radius: 10px; padding: 8px 12px; font-size: .95rem; box-shadow: 0 0 0 3px #f6c9c9; animation: overduePulse 1.6s ease-in-out infinite; }
.hash-overdue b { font-weight: 800; }
.hash-overdue .overdue-day { font: inherit; font-weight: 800; color: #d62828; background: #fff; border: 0; border-radius: 999px; padding: 2px 10px; cursor: pointer; }
.hash-overdue .overdue-day:hover { background: #ffe5e5; }
@keyframes overduePulse { 50% { box-shadow: 0 0 0 6px #f6c9c9; } }
@media (prefers-reduced-motion: reduce) { .hash-overdue { animation: none; } }

/* חלון "תקן" בחשבשבת */
.hf-table { width: 100%; border-collapse: collapse; margin-top: 10px; }
.hf-table th { text-align: right; font-size: .85rem; color: var(--muted); padding: 6px 8px; border-bottom: 1.5px solid #e2d6c2; }
.hf-table td { padding: 6px 8px; border-bottom: 1px solid #efe6d4; vertical-align: middle; }
.hf-table td small { display: block; }
.hf-table input { width: 100%; font: inherit; padding: 7px 9px; border: 1.5px solid #e2d6c2; border-radius: 8px; }
.hf-table .hf-qty, .hf-table .hf-price { max-width: 110px; }
#hashFixModal input.bad { border-color: #c4685a; background: #fbf0ed; box-shadow: 0 0 0 2px #f4d3cc; }
.btn-fix { color: #8a3d0e; border-color: #e3a565; background: #fff6ee; font-weight: 800; }
