/* מסך המנהל — מערכת התקנות מקפיאי מגנום.
   הסגנון שעומר בחר ב-24.11.2026: רגוע לעין, רקע ניטרלי, מספר גדול אחד ומתחתיו מה מחכה ולמה.
   הלוגו והגופן Rubik של וואיז מוב. צבע רק למשמעות: מצב הנקודה. */
@font-face { font-family: "Rubik"; src: url("assets/Rubik-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Rubik"; src: url("assets/Rubik-Bold.ttf") format("truetype"); font-weight: 700; font-display: swap; }

:root {
  --ink: #22252a; --ink2: #3a3d44; --muted: #5d6068; --bg: #F1F2F4; --card: #ffffff; --line: #E7E8EB; --soft: #F1F2F4;
  --green: #00C875; --green-bg: #DDF7EB; --green-ink: #03603a;
  --red-bg: #FCE4E8; --red-ink: #a01f35; --amber-bg: #FFF0D9; --amber-ink: #8a5200;
  --purple-bg: #EFE3FA; --purple-ink: #5b2a8c; --blue-bg: #E1EDFF; --blue-ink: #1f4f9c;
  --gray-bg: #E9EAED; --gray-ink: #4b4e55;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  font-family: "Rubik", "Segoe UI", sans-serif; font-size: 18px; line-height: 1.55; color: var(--ink);
  background: var(--bg); direction: rtl; font-variant-numeric: tabular-nums;
}
button, input, select, textarea { font: inherit; color: inherit; }
h1 { font-size: 32px; line-height: 1.25; margin: 0 0 4px; }
h2 { font-size: 23px; margin: 0 0 12px; }
h3 { font-size: 19px; margin: 0 0 6px; }
p { margin: 0 0 12px; }
.muted { color: var(--muted); }
.hidden { display: none !important; }
.ltr { direction: ltr; unicode-bidi: isolate; display: inline-block; }

/* פס עליון */
.top { background: var(--card); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 10; }
.top .in { max-width: 1280px; margin: 0 auto; padding: 12px 28px; display: flex; align-items: center; gap: 24px; }
.top img { height: 40px; width: auto; display: block; }
.tabs { display: flex; gap: 4px; flex: 1; overflow-x: auto; }
.tabs button { border: 0; background: none; padding: 9px 16px; border-radius: 999px; cursor: pointer; color: var(--muted); white-space: nowrap; }
.tabs button:hover { background: var(--soft); }
.tabs button.on { background: var(--ink); color: #fff; }
.who { color: var(--muted); display: flex; gap: 10px; align-items: center; white-space: nowrap; }
.link { background: none; border: 0; padding: 0; cursor: pointer; color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }

.wrap { max-width: 1280px; margin: 0 auto; padding: 30px 28px 70px; }
.lead { font-size: 20px; color: var(--muted); margin: 0 0 24px; }
.sec { font-size: 23px; font-weight: 700; margin: 30px 0 12px; }
.sec-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin: 30px 0 12px; }
.sec-row .sec { margin: 0; }

/* המספר הגדול */
.hero { background: var(--card); border-radius: 26px; padding: 28px 32px; display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.hero > div { min-width: 0; max-width: 100%; }
.hero .big { font-size: 64px; font-weight: 700; line-height: 1; }
.hero .t { font-size: 22px; font-weight: 700; margin-top: 8px; }
.hero .side-note { text-align: left; }
.bar { height: 14px; border-radius: 999px; background: var(--soft); overflow: hidden; margin-top: 16px; width: 520px; max-width: 100%; }
.bar i { display: block; height: 100%; background: var(--green); border-radius: 999px; }

/* כרטיסי "מה מחכה" */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; }
.q { border-radius: 22px; padding: 20px 22px; border: 0; text-align: right; cursor: pointer; background: var(--card); display: block; width: 100%; }
.q:hover { filter: brightness(.975); }
.q .n { font-size: 38px; font-weight: 700; line-height: 1.1; }
.q .l { font-weight: 700; margin-top: 4px; }
.q .d { color: var(--ink2); font-size: 16.5px; margin-top: 2px; }
.q.red { background: var(--red-bg); } .q.amber { background: var(--amber-bg); }
.q.purple { background: var(--purple-bg); } .q.blue { background: var(--blue-bg); }
.q.small .n { font-size: 30px; }

/* כרטיס כללי וטבלאות */
.card { background: var(--card); border-radius: 22px; padding: 22px 26px; margin-bottom: 18px; }
.card.flush { padding: 6px 0; overflow: hidden; }
.card > .head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }
.card > .head h2 { margin: 0; }
table { width: 100%; border-collapse: collapse; }
th { text-align: right; font-weight: 400; color: var(--muted); font-size: 16px; padding: 10px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; }
td { padding: 13px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
tr:last-child td { border-bottom: 0; }
.card.flush th:first-child, .card.flush td:first-child { padding-right: 26px; }
.card.flush th:last-child, .card.flush td:last-child { padding-left: 26px; }
tbody tr.click { cursor: pointer; }
tbody tr.click:hover { background: #F7F8F9; }
td .nm { font-weight: 700; }
td .sb { color: var(--muted); font-size: 16.5px; }
td.num, th.num { text-align: left; white-space: nowrap; }
.table-wrap { overflow-x: auto; }

.tag { display: inline-block; border-radius: 999px; padding: 4px 13px; font-size: 16px; margin: 2px 0 2px 6px; white-space: nowrap; background: var(--gray-bg); color: var(--gray-ink); }
.tag.g { background: var(--green-bg); color: var(--green-ink); } .tag.r { background: var(--red-bg); color: var(--red-ink); }
.tag.a { background: var(--amber-bg); color: var(--amber-ink); } .tag.b { background: var(--blue-bg); color: var(--blue-ink); }
.tag.p { background: var(--purple-bg); color: var(--purple-ink); }

/* כפתורים וטפסים */
.btn { background: var(--ink); color: #fff; border: 0; border-radius: 999px; padding: 11px 22px; cursor: pointer; font-weight: 700; white-space: nowrap; }
a.btn { text-decoration: none; display: inline-block; }
.btn:hover { background: var(--ink2); }
.btn.ghost { background: transparent; color: var(--ink); border: 1.5px solid #C9CBD1; font-weight: 400; }
.btn.ghost:hover { background: var(--soft); }
.btn.small { padding: 6px 15px; font-size: 16.5px; }
.btn:disabled { opacity: .5; cursor: default; }
input[type="text"], input[type="search"], input[type="number"], input[type="date"], input[type="tel"], input[type="email"], select, textarea {
  border: 1.5px solid #C9CBD1; border-radius: 12px; padding: 9px 13px; background: #fff; min-height: 46px; max-width: 100%;
}
textarea { width: 100%; min-height: 100px; }
input:focus-visible, select:focus-visible, textarea:focus-visible, button:focus-visible { outline: 2.5px solid var(--ink); outline-offset: 2px; }
label.field { display: block; margin-bottom: 14px; }
label.field > span { display: block; color: var(--muted); font-size: 16.5px; margin-bottom: 4px; }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.filters { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 14px; }
.filters input[type="search"] { flex: 1; min-width: 240px; }
.qty { width: 120px; text-align: center; font-size: 20px; font-weight: 700; }
.note { background: var(--soft); border-radius: 14px; padding: 12px 16px; margin-bottom: 14px; }
.ok { color: var(--green-ink); font-weight: 700; } .bad { color: var(--red-ink); font-weight: 700; }
.pager { display: flex; justify-content: space-between; align-items: center; padding: 12px 26px 8px; color: var(--muted); gap: 10px; flex-wrap: wrap; }
details > summary { cursor: pointer; font-weight: 700; padding: 4px 0; }

/* פאנל צד, נפתח משמאל */
.back { position: fixed; inset: 0; background: rgba(34, 37, 42, .4); z-index: 20; }
.panel { position: fixed; inset-block: 0; left: 0; width: min(600px, 100vw); background: var(--card); z-index: 21; display: flex; flex-direction: column; box-shadow: 8px 0 40px rgba(34, 37, 42, .25); }
.panel .ph { padding: 22px 26px 14px; display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; border-bottom: 1px solid var(--line); }
.panel .ph h2 { margin: 0; }
.panel .ph .x { background: var(--soft); border: 0; border-radius: 50%; width: 42px; height: 42px; font-size: 24px; cursor: pointer; line-height: 1; flex: none; }
.panel .pb { padding: 20px 26px 30px; overflow-y: auto; }
.kv { display: grid; grid-template-columns: 140px 1fr; gap: 6px 14px; margin: 0 0 18px; }
.kv dt { color: var(--muted); } .kv dd { margin: 0; }
.steps { list-style: none; margin: 0 0 20px; padding: 0; }
.steps li { position: relative; padding: 0 30px 14px 0; }
.steps li::before { content: ""; position: absolute; right: 3px; top: 7px; width: 14px; height: 14px; border-radius: 50%; background: #C9CBD1; }
.steps li::after { content: ""; position: absolute; right: 9px; top: 24px; bottom: 0; width: 2px; background: var(--line); }
.steps li:last-child::after { display: none; }
.steps li.done::before { background: var(--green); }
.steps li.wait::before { background: #FDAB3D; box-shadow: 0 0 0 5px rgba(253, 171, 61, .28); }
.steps li small { display: block; color: var(--muted); font-size: 16.5px; }
.fz { border: 1.5px solid var(--line); border-radius: 16px; padding: 12px 16px; margin-bottom: 10px; }
.fz .nm { font-weight: 700; }

.modal { position: fixed; inset: 0; z-index: 30; display: grid; place-items: center; padding: 16px; background: rgba(34, 37, 42, .4); }
.modal .box { background: var(--card); border-radius: 22px; padding: 26px; width: min(540px, 100%); max-height: 90vh; overflow-y: auto; }
.modal .actions { display: flex; gap: 10px; justify-content: flex-start; margin-top: 16px; }
.choice { display: flex; gap: 10px; align-items: center; padding: 10px 14px; border: 1.5px solid var(--line); border-radius: 14px; margin-bottom: 8px; cursor: pointer; }
.choice input { width: 20px; height: 20px; }

.toast { position: fixed; bottom: 24px; left: 24px; background: var(--ink); color: #fff; padding: 13px 20px; border-radius: 14px; z-index: 40; max-width: 90vw; }
.toast.err { background: #c22e46; }

.login { min-height: 100vh; display: grid; place-items: center; padding: 20px; }
.login .box { background: var(--card); border-radius: 26px; padding: 36px; width: min(440px, 100%); text-align: center; }
.login img { width: 200px; margin: 0 auto 18px; display: block; }
.login .btn { width: 100%; margin-top: 12px; display: block; text-decoration: none; }
.login input { width: 100%; margin-top: 14px; }

@media (max-width: 800px) {
  body { font-size: 17px; }
  .top .in { flex-wrap: wrap; padding: 10px 14px; gap: 10px; }
  .tabs { order: 3; flex-basis: 100%; }
  .who { margin-inline-start: auto; }
  .wrap { padding: 20px 14px 60px; }
  h1 { font-size: 26px; }
  .hero { padding: 22px; border-radius: 22px; }
  .hero .big { font-size: 50px; }
  .hero .side-note { text-align: right; }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .q { padding: 16px; } .q .n { font-size: 30px; }
  .card { padding: 18px 16px; border-radius: 18px; }
  .card.flush th:first-child, .card.flush td:first-child { padding-right: 16px; }
  .card.flush th:last-child, .card.flush td:last-child { padding-left: 16px; }
  .hide-narrow { display: none !important; }
  table.stack thead { display: none; }
  table.stack, table.stack tbody, table.stack tr, table.stack td { display: block; width: 100%; }
  table.stack tr { padding: 12px 16px; border-bottom: 1px solid var(--line); }
  table.stack tr:last-child { border-bottom: 0; }
  table.stack td, .card.flush table.stack td { padding: 3px 0; border: 0; text-align: right; }
  table.stack td.num[data-l]::before { content: attr(data-l) ": "; color: var(--muted); }
  .card:not(.flush) table.stack tr { padding-inline: 0; }
  .filters > * { flex: 1 1 100%; }
  .qty { width: 110px; }
  .kv { grid-template-columns: 110px 1fr; }
}
