/* =====================================================================
   ui3.css — שכבת הרכיבים של UI 3.0, על גבי console.css
   ---------------------------------------------------------------------
   ‎console.css‎ (עיצוב 3.0, מאושר) הוא הבסיס: אסימונים, טיפוגרפיה
   Heebo, שלד, כרטיסים, טבלאות, תגיות, טפסים ומסכי הזדהות.
   הוא נכתב ב-02/08 בבוקר — **לפני** שנבנתה שכבת הרכיבים של UI 3.0,
   ולכן 82 מהמחלקות כאן אינן קיימות בו. הקובץ הזה משלים אותן, ומשתמש
   אך ורק באסימונים שלו (--acc / --surface / --sh-1 / --r / --ease).

   כל מקטע מסומן במספר הממצא בדוח הביקורת שהוא מתקן.
   סדר הטעינה חובה:  console.css  ואז  ui3.css
   ===================================================================== */

/* ---------- אסימוני תאימות ---------- */
:root{
  /* console.css לא מגדיר צבע ייעודי לטקסט-על-מילוי; נגזר מהמותג */
  --on-fill: var(--acc-ink);
  --fill: var(--acc);
  --link: var(--acc);
}

/* כלל ברירת המחדל של הדפדפן ל-[hidden] נדרס ע"י כל display מפורש בהמשך.
   בלי זה כפתור שהוסתר ב-JS ממשיך להופיע (קרה באשף: "המשך" ו"יצירה" יחד). */
[hidden]{display:none !important}

/* ============================================================
   כפתורים — console.css מעצב רק ‎.btn‎ ו-‎button[type="submit"]‎.
   ‎<button class="link">‎ ו-‎<button type="button">‎ נשארו בלי עיצוב כלל.
   ============================================================ */
button{
  display:inline-flex;align-items:center;justify-content:center;gap:8px;
  font-family:inherit;font-weight:800;font-size:14.5px;border-radius:999px;
  padding:11px 24px;cursor:pointer;border:none;white-space:nowrap;
  background:var(--grad);color:var(--acc-ink);
  box-shadow:0 8px 22px var(--acc-glow),inset 0 1px 0 rgba(255,255,255,.4);
  transition:transform .22s var(--ease),box-shadow .22s var(--ease),background .22s;
  min-height:40px;                       /* ממצא 3.37 — יעד מגע */
}
button:hover{transform:translateY(-2px);
  box-shadow:0 14px 32px var(--acc-glow),inset 0 1px 0 rgba(255,255,255,.4)}
button:active{transform:translateY(0)}
/* ‎inline-flex‎ מתרחב ל-max-content: תווית ארוכה דחפה את הכפתור מעבר לרוחב
   המסך גם עם ‎white-space:normal‎, כי לא הייתה תקרה לרוחב. */
button,.btn{max-width:100%}
form{max-width:100%}
button:disabled{opacity:.45;cursor:not-allowed;transform:none;box-shadow:none}

button.ghost,.btn.ghost{background:var(--acc-a08);color:var(--acc);
  box-shadow:inset 0 0 0 1px var(--acc-a35)}
button.ghost:hover,.btn.ghost:hover{background:var(--acc-a18);box-shadow:inset 0 0 0 1px var(--acc)}

/* כפתור-טקסט בתוך טבלה: חייב להיראות כקישור ולא כגלולה */
button.link,.btn.link{
  background:none;box-shadow:none;color:var(--acc);font-weight:700;font-size:13.5px;
  padding:8px 10px;border-radius:var(--r-xs);min-height:40px;
}
button.link:hover{background:var(--acc-a08);transform:none;box-shadow:none}
button.link.danger{color:var(--danger)}
button.link.danger:hover{background:var(--danger-bg)}

/* ---------- ממצא 3.25 · פעולה הרסנית נראית אחרת מפעולה חיובית ---------- */
button.danger-action,.btn.danger-action{
  background:var(--danger-bg);color:var(--danger);
  box-shadow:inset 0 0 0 1px var(--danger-line);font-size:13.5px;padding:9px 18px;
}
button.danger-action:hover,.btn.danger-action:hover{
  background:var(--danger-bg);box-shadow:inset 0 0 0 1px var(--danger);transform:translateY(-1px)}
button.danger-action:disabled{opacity:.45}

/* ---------- ממצא 3.26 · מצב טעינה בכפתור ---------- */
button.is-loading,.btn.is-loading{position:relative;color:transparent !important;pointer-events:none}
button.is-loading .ic-svg{visibility:hidden}
button.is-loading::after{
  content:"";position:absolute;inset:0;margin:auto;width:15px;height:15px;
  border:2px solid color-mix(in srgb,var(--acc-ink) 40%,transparent);
  border-top-color:var(--acc-ink);border-radius:50%;animation:ui3spin .62s linear infinite}
button.ghost.is-loading::after,button.link.is-loading::after,button.danger-action.is-loading::after{
  border-color:var(--acc-a35);border-top-color:var(--acc)}
@keyframes ui3spin{to{transform:rotate(360deg)}}

/* ============================================================
   ממצא 3.27 · אייקוני קו במקום אימוג'י
   ============================================================ */
.ic-svg{display:block;flex:0 0 auto}
.side-nav a .ic,.side-logout .ic,.theme-toggle .tt-ic{
  display:inline-flex;align-items:center;justify-content:center;width:20px;height:20px}
h1 .ic-svg,h2 .ic-svg,.form-title .ic-svg{display:inline-block;vertical-align:-3px}
h2 .ic-svg,.form-title .ic-svg{color:var(--acc)}
button .ic-svg,.btn .ic-svg{display:inline-block;flex:0 0 auto}
.theme-toggle .tt-sun{display:none}
:root .theme-toggle .tt-sun{display:inline-flex}
:root .theme-toggle .tt-moon{display:none}
html[data-theme="light"] .theme-toggle .tt-sun{display:none}
html[data-theme="light"] .theme-toggle .tt-moon{display:inline-flex}

/* ============================================================
   ממצא 3.9 · סרגל הצד — קיבוץ ל-4 מקטעים + תחתית מקובעת
   ============================================================ */
.sidebar{overflow:hidden}
.side-nav{flex:1 1 auto;overflow-y:auto;overscroll-behavior:contain;padding-bottom:6px}
.nav-group + .nav-group{margin-top:14px}
.nav-group-title{
  font-size:10.5px;font-weight:800;letter-spacing:.13em;text-transform:uppercase;
  color:var(--muted-2);padding:0 12px 6px;margin-top:2px}
.nav-badge{
  margin-inline-start:auto;font-size:11px;font-weight:800;line-height:1;
  padding:3px 7px;border-radius:999px;background:var(--acc-a18);color:var(--acc)}
.nav-badge.danger{background:var(--danger-bg);color:var(--danger)}
.side-foot{flex:0 0 auto;margin-top:10px;padding-top:10px;border-top:1px solid var(--line)}
.side-logout{margin-top:0;border-top:0}

/* ממצא 3.10 · חיפוש גלובלי בסרגל */
.side-search{position:relative;margin:0 0 14px}
.side-search input{
  width:100%;margin:0;padding:9px 34px 9px 30px;font-size:13.5px;
  background:var(--surface-2);border:1px solid var(--line-2);
  color:var(--ink);border-radius:var(--r-sm)}
.side-search input:focus{border-color:var(--acc);box-shadow:0 0 0 3.5px var(--acc-a18)}
.side-search-ic{position:absolute;inset-inline-start:10px;top:50%;transform:translateY(-50%);
  color:var(--muted-2);pointer-events:none;display:flex}
.side-search-kbd{position:absolute;inset-inline-end:9px;top:50%;transform:translateY(-50%);
  font:800 11px/1 ui-monospace,Menlo,monospace;color:var(--muted-2);
  border:1px solid var(--line-2);border-radius:5px;padding:3px 6px;pointer-events:none}
.side-search input:focus ~ .side-search-kbd{opacity:0}

/* ממצא 3.34 · קישור דילוג לתוכן */
.skip-link{
  position:absolute;inset-inline-start:12px;top:-100px;z-index:200;
  transition:top .15s var(--ease);
  background:var(--surface);color:var(--acc);border:2px solid var(--acc);
  border-radius:var(--r-sm);padding:11px 20px;font-weight:800;font-size:14px;text-decoration:none}
.skip-link:focus{top:10px}

/* ============================================================
   ממצא 3.11 · פירורי לחם  ·  3.12 · כותרת + תת-כותרת
   ============================================================ */
.page-head{margin-bottom:22px}
.page-head h1{margin-bottom:7px}
.page-sub{color:var(--muted);font-size:13.8px;margin:0;max-width:88ch;line-height:1.7}
.crumbs{display:flex;align-items:center;gap:7px;flex-wrap:wrap;
  font-size:12.6px;color:var(--muted);margin:0 0 12px}
.crumbs a{color:var(--muted)}
.crumbs a:hover{color:var(--acc)}
.crumbs .sep{opacity:.5}
.crumbs .cur{color:var(--ink);font-weight:700}

/* ============================================================
   ממצא 3.13 · סרגל פילטרים · מיון · דפדוף · בחירה מרובה
   ============================================================ */
.toolbar{
  display:flex;align-items:flex-end;gap:10px 14px;flex-wrap:wrap;
  background:var(--surface);border:1px solid var(--line);border-radius:var(--r);
  padding:14px 16px;margin-bottom:14px;box-shadow:var(--sh-1)}
.toolbar label{margin:0;font-size:12px;font-weight:800;color:var(--muted)}
.toolbar input,.toolbar select{margin-top:5px;padding:8px 12px;font-size:13.5px}
.toolbar .tb-field{display:flex;flex-direction:column;min-width:150px}
.toolbar .tb-field.grow{flex:1 1 200px}
.toolbar .tb-count{margin-inline-start:auto;font-size:12.6px;color:var(--muted);
  padding-bottom:9px;white-space:nowrap}
.toolbar .tb-count b{color:var(--ink);font-variant-numeric:tabular-nums}
.tb-reset{align-self:flex-end}

/* ממצא 3.24 · קיצורי טווח תאריכים */
.range-quick{display:flex;gap:6px;flex-wrap:wrap;align-items:flex-end}
.range-quick button{background:var(--surface-2);color:var(--muted);
  box-shadow:inset 0 0 0 1px var(--line-2);font-size:12.6px;font-weight:700;
  padding:8px 13px;border-radius:999px;min-height:38px}
.range-quick button:hover{background:var(--acc-a08);color:var(--acc);transform:none;
  box-shadow:inset 0 0 0 1px var(--acc-a35)}
.range-quick button[aria-pressed="true"]{background:var(--acc-a18);color:var(--acc);
  box-shadow:inset 0 0 0 1px var(--acc)}

/* מיון בכותרת (ממצא 3.13) · כותרת דביקה כבר ב-console.css (ממצא 3.18) */
.table-wrap{max-height:74vh;overflow:auto}
th.sortable{cursor:pointer;user-select:none;white-space:nowrap}
th.sortable::after{content:"↕";font-size:10px;opacity:.35;margin-inline-start:5px}
th.sortable:hover::after{opacity:.75}
th.sortable[aria-sort="ascending"]::after{content:"↑";opacity:1;color:var(--acc)}
th.sortable[aria-sort="descending"]::after{content:"↓";opacity:1;color:var(--acc)}
tr[hidden]{display:none !important}

th.selcol,td.selcol{width:42px;padding-inline:14px 6px}
td.selcol input,th.selcol input{width:17px;height:17px;margin:0;accent-color:var(--acc)}
tbody tr.row-selected td{background:var(--acc-a12) !important}

.bulkbar{
  position:fixed;bottom:22px;left:50%;transform:translateX(-50%) translateY(180%);
  display:flex;align-items:center;gap:12px;z-index:60;direction:rtl;
  background:var(--surface);border:1px solid var(--acc-a35);border-radius:999px;
  padding:10px 16px;box-shadow:var(--sh-2);
  visibility:hidden;opacity:0;
  transition:transform .22s var(--ease),opacity .18s,visibility 0s linear .22s}
.bulkbar.show{transform:translateX(-50%) translateY(0);visibility:visible;opacity:1;
  transition:transform .22s var(--ease),opacity .18s,visibility 0s}
.bulkbar .bulk-n{font-weight:800;color:var(--ink);font-variant-numeric:tabular-nums}
.bulkbar button{padding:8px 18px;font-size:13.5px;min-height:38px}

.pager{display:flex;align-items:center;justify-content:center;gap:6px;margin:16px 0 4px;flex-wrap:wrap}
.pager button{background:var(--surface);color:var(--muted);
  box-shadow:inset 0 0 0 1px var(--line-2);min-width:38px;padding:8px 12px;
  font-size:13px;border-radius:999px;min-height:38px}
.pager button:hover:not(:disabled){background:var(--acc-a08);color:var(--acc);transform:none;
  box-shadow:inset 0 0 0 1px var(--acc-a35)}
.pager button[aria-current="true"]{background:var(--acc-a18);color:var(--acc);
  box-shadow:inset 0 0 0 1px var(--acc)}
.pager button:disabled{opacity:.4}
.pager .pg-info{font-size:12.6px;color:var(--muted);margin-inline-start:8px}
.no-results td{text-align:center;color:var(--muted);padding:28px 16px}

/* ממצא 3.15 · תא ריק מקבל "—" אחיד */
.empty{color:var(--muted)}
.empty::before{content:"—"}
td:empty::after{content:"—";color:var(--muted)}

/* ממצא 3.17 · "לפני → אחרי" נשבר בגלל ערבוב כיוונים */
.ltr-iso{direction:ltr;unicode-bidi:isolate;white-space:nowrap;display:inline-block}
.delta{display:inline-flex;align-items:center;gap:6px;direction:ltr;unicode-bidi:isolate;
  white-space:nowrap;font-variant-numeric:tabular-nums}
.delta .from{color:var(--muted)}
.delta .arrow{color:var(--acc);font-weight:800}
.delta .to{font-weight:800;color:var(--ink)}
.mono,code.mono{font-family:ui-monospace,Menlo,Consolas,monospace;font-size:12.4px;
  direction:ltr;unicode-bidi:isolate}
code.mono{background:var(--surface-2);padding:2px 7px;border-radius:var(--r-xs);
  box-shadow:inset 0 0 0 1px var(--line)}
.num{font-variant-numeric:tabular-nums;direction:ltr;unicode-bidi:plaintext;white-space:nowrap}
td .sub{font-size:11.4px;color:var(--muted);margin-top:2px}

/* ממצא 3.16 · תא ארוך → תקציר + מגירה */
.cell-more{display:block}
.cell-more > summary{cursor:pointer;list-style:none;color:var(--acc);font-weight:700;font-size:13px}
.cell-more > summary::-webkit-details-marker{display:none}
.cell-more > summary::after{content:" ▾";font-size:10px}
.cell-more[open] > summary::after{content:" ▴"}
.cell-more ul{margin:8px 0 2px;padding-inline-start:18px;font-size:13px;line-height:1.75}
.cell-sum{font-weight:800;color:var(--ink)}

/* ממצא 3.2 · שורת הסיכום הייתה בניגודיות 1.44:1 במצב כהה */
tfoot td,tfoot th{background:var(--surface-2);font-weight:800;color:var(--ink);
  border-top:2px solid var(--acc-a35)}
tfoot .sub{color:var(--muted);font-weight:500}

/* ============================================================
   ממצא 3.21 · מתג דו-מצבי במקום <select>
   ============================================================ */
.switch{display:flex;align-items:center;gap:10px;margin-bottom:12px;cursor:pointer;
  font-size:13.5px;color:var(--ink);font-weight:700;min-height:40px}
.switch input{position:absolute;opacity:0;width:0;height:0;margin:0}
.switch .track{flex:0 0 auto;width:42px;height:24px;border-radius:999px;
  background:var(--line-2);position:relative;transition:background .18s var(--ease)}
.switch .track::after{content:"";position:absolute;top:3px;inset-inline-start:3px;
  width:18px;height:18px;border-radius:50%;background:var(--surface);
  box-shadow:0 1px 3px rgba(0,0,0,.35);transition:transform .18s var(--ease)}
.switch input:checked + .track{background:var(--acc)}
.switch input:checked + .track::after{transform:translateX(-18px);background:var(--acc-ink)}
.switch input:focus-visible + .track{box-shadow:0 0 0 3.5px var(--acc-a18)}
.switch .sw-label{flex:1 1 auto}
.switch .sw-tx{font-size:12.6px;color:var(--muted);font-weight:700}
.switch .sw-tx.on{display:none}
.switch input:checked ~ .sw-tx.on{display:inline;color:var(--ok)}
.switch input:checked ~ .sw-tx.off{display:none}
.switch-row{display:flex;flex-wrap:wrap;gap:6px 22px;align-items:center;margin-bottom:10px}
.switch-row .switch{margin-bottom:0}
.switch-field{display:flex;flex-direction:column;gap:2px;margin-bottom:14px}
.switch-field .sw-hint{font-size:12.4px;color:var(--muted);padding-inline-start:52px;margin:0}

/* ============================================================
   ממצא 3.25 · דיאלוג אישור  ·  3.26 · Toasts
   ============================================================ */
.dlg{border:0;padding:0;border-radius:var(--r);max-width:450px;width:calc(100% - 32px);
  background:transparent;color:var(--text)}
.dlg::backdrop{background:rgba(3,14,17,.62);backdrop-filter:blur(3px)}
.dlg-box{background:var(--surface);border:1px solid var(--line-2);border-radius:var(--r);
  padding:26px 26px 20px;box-shadow:var(--sh-2);text-align:start}
.dlg-ic{width:44px;height:44px;border-radius:var(--r-sm);display:flex;align-items:center;
  justify-content:center;background:var(--danger-bg);color:var(--danger);margin-bottom:14px;
  box-shadow:inset 0 0 0 1px var(--danger-line)}
.dlg-ic.warn{background:var(--warn-bg);color:var(--warn);box-shadow:inset 0 0 0 1px var(--warn-line)}
.dlg-ic.info{background:var(--info-bg);color:var(--info);box-shadow:inset 0 0 0 1px var(--info-line)}
.dlg h3{margin:0 0 9px;font-size:18px;color:var(--ink);font-weight:800}
.dlg p{margin:0 0 20px;font-size:14.2px;color:var(--text);line-height:1.7}
.dlg p b{color:var(--ink)}
.dlg-actions{display:flex;gap:9px;justify-content:flex-start;flex-wrap:wrap}

.toast-wrap{position:fixed;bottom:20px;inset-inline-end:20px;z-index:90;
  display:flex;flex-direction:column;gap:9px;max-width:min(400px,calc(100vw - 40px))}
.toast{display:flex;align-items:flex-start;gap:10px;background:var(--surface);
  border:1px solid var(--line-2);border-inline-start:4px solid var(--acc);
  border-radius:var(--r-sm);padding:13px 15px;box-shadow:var(--sh-2);
  font-size:13.5px;color:var(--text);animation:ui3toast .22s var(--ease)}
.toast.ok{border-inline-start-color:var(--ok)}
.toast.error{border-inline-start-color:var(--danger)}
.toast.warn{border-inline-start-color:var(--warn)}
.toast .t-ic{flex:0 0 auto;color:var(--acc);margin-top:1px}
.toast.ok .t-ic{color:var(--ok)}
.toast.error .t-ic{color:var(--danger)}
.toast.warn .t-ic{color:var(--warn)}
.toast .t-body{flex:1 1 auto}
.toast .t-title{font-weight:800;color:var(--ink);display:block;margin-bottom:2px}
.toast .t-undo,.toast .t-close{background:none;box-shadow:none;padding:3px 8px;min-height:0;
  font-size:13px;border-radius:var(--r-xs)}
.toast .t-undo{color:var(--acc)}
.toast .t-undo:hover{background:var(--acc-a08);transform:none;box-shadow:none}
.toast .t-close{color:var(--muted);line-height:0;padding:4px}
.toast .t-close:hover{background:var(--line);color:var(--ink);transform:none;box-shadow:none}
@keyframes ui3toast{from{opacity:0;transform:translateY(10px)}}
.toast.leaving{opacity:0;transform:translateY(8px);transition:opacity .2s,transform .2s}

/* ============================================================
   ממצא 3.20 · טופס גדול: ניווט מקטעים + סרגל שמירה דביק
   ============================================================ */
.form-layout{display:grid;grid-template-columns:212px minmax(0,1fr);gap:22px;align-items:start}
.form-layout > *{min-width:0}
.form-nav{position:sticky;top:22px;display:flex;flex-direction:column;gap:2px}
.form-nav a{display:block;padding:9px 13px;border-radius:var(--r-sm);font-size:13.5px;
  font-weight:700;color:var(--muted);border-inline-start:3px solid transparent}
.form-nav a:hover{background:var(--acc-a08);color:var(--ink);text-decoration:none}
.form-nav a.active{background:var(--acc-a18);color:var(--acc);border-inline-start-color:var(--acc)}
.savebar{position:sticky;bottom:0;z-index:40;display:flex;align-items:center;gap:12px;
  flex-wrap:wrap;background:var(--surface);border:1px solid var(--line-2);
  border-radius:var(--r);padding:13px 17px;margin-top:18px;box-shadow:var(--sh-2)}
.savebar .dirty-count{font-size:13px;color:var(--warn);font-weight:800}
.savebar .saved-note{font-size:12.6px;color:var(--muted);margin-inline-start:auto}
.sec-badge{font-size:11px;font-weight:800;padding:3px 10px;border-radius:999px;
  background:var(--info-bg);color:var(--info);box-shadow:inset 0 0 0 1px var(--info-line);
  margin-inline-start:8px;vertical-align:2px}
.formrow{display:flex;flex-wrap:wrap;gap:4px 14px;align-items:flex-end}
.formrow > *{min-width:0}
.formrow label{flex:1 1 160px;min-width:150px}
.formrow label.grow{flex:2 1 240px}
.form-actions{display:flex;gap:10px;align-items:center;flex-wrap:wrap;
  margin-top:18px;padding-top:16px;border-top:1px solid var(--line)}
.form-sep{border:0;border-top:1px solid var(--line);margin:20px 0 16px}
.grid2{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:0 20px}
.inline{display:flex;gap:10px;margin-top:12px;align-items:flex-end;flex-wrap:wrap}
.inline input,.inline select{width:auto;flex:1;margin-top:0;min-width:120px}
.inline label{margin-bottom:0}
.actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.actions form{margin:0}
details.adv{margin-top:16px;border:1px solid var(--line);border-radius:var(--r-sm);
  padding:12px 16px;background:var(--surface-2)}
details.adv summary{cursor:pointer;font-weight:800;color:var(--muted);font-size:13.5px}
details.adv summary:hover{color:var(--acc)}
details.adv[open] summary{margin-bottom:10px;color:var(--ink)}

/* ============================================================
   ממצא 3.19 · אשף יצירת לקוח
   ============================================================ */
.wiz-steps{display:flex;gap:6px;flex-wrap:wrap;margin-bottom:22px;padding:0;counter-reset:wz}
.wiz-steps li{list-style:none;display:flex;align-items:center;gap:8px;font-size:13px;
  font-weight:700;color:var(--muted);padding:8px 15px 8px 10px;border-radius:999px;
  border:1px solid var(--line);background:var(--surface)}
.wiz-steps li::before{counter-increment:wz;content:counter(wz);width:22px;height:22px;
  border-radius:50%;flex:0 0 auto;display:flex;align-items:center;justify-content:center;
  background:var(--line);color:var(--muted);font-size:12px;font-weight:800}
.wiz-steps li.done{color:var(--ok);border-color:var(--ok-line)}
.wiz-steps li.done::before{content:"✓";background:var(--ok);color:var(--acc-ink)}
.wiz-steps li.current{color:var(--acc);border-color:var(--acc-a35);box-shadow:0 0 0 3px var(--acc-a08)}
.wiz-steps li.current::before{background:var(--acc);color:var(--acc-ink)}
.wiz-actions{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin-top:22px;
  padding-top:16px;border-top:1px solid var(--line)}
.wiz-actions .spacer{flex:1}
.wiz-optional{font-size:12px;font-weight:500;color:var(--muted)}

/* ============================================================
   ממצא 3.10 · דף החיפוש  ·  3.42 · מצב ריק מעוצב
   ============================================================ */
.search-group{margin-bottom:26px}
.search-group h2 .cnt{font-size:12.6px;color:var(--muted);font-weight:500}
.search-empty,.empty-state{text-align:center;padding:52px 20px;color:var(--muted)}
.search-empty .ic-svg,.empty-state .ic-svg{margin:0 auto 14px;color:var(--line-2);width:46px;height:46px}
.empty-state h3{color:var(--ink);margin:0 0 6px}
.empty-state p{margin:0 auto 18px;max-width:52ch}
mark{background:var(--acc-a35);color:var(--ink);border-radius:3px;padding:0 2px}

/* ============================================================
   ממצא 3.37 · יעדי מגע — קישורי פעולה בטבלאות היו טקסט זעיר
   ============================================================ */
td a,th a,.actions a{display:inline-flex;align-items:center;min-height:36px;padding:2px 4px}
.crumbs a,.page-sub a,.form-hint a,.muted a,.flash a,.note a{min-height:0;display:inline;padding:0}

/* ============================================================
   מובייל — console.css משאיר את הסרגל כרשימת צ'יפים בגובה ~500px
   (ממצא 3.38, חומרה גבוהה). כאן: מגירה נשלפת אמיתית.
   ============================================================ */
.nav-burger{display:none}
.nav-scrim{display:none}

@media(max-width:900px){
  .form-layout{grid-template-columns:minmax(0,1fr)}
  .form-nav{position:static;flex-direction:row;overflow-x:auto;gap:6px;padding-bottom:6px}
  .form-nav a{white-space:nowrap;border-inline-start:0;border-bottom:3px solid transparent}
  .form-nav a.active{border-inline-start:0;border-bottom-color:var(--acc)}

  .table-wrap{max-height:none;overflow-x:auto}

  .layout{flex-direction:row}
  .nav-burger{display:inline-flex;align-items:center;justify-content:center;position:fixed;
    top:12px;inset-inline-end:12px;z-index:70;width:44px;height:44px;padding:0;
    background:var(--surface);color:var(--acc);border-radius:var(--r-sm);
    box-shadow:var(--sh-1),inset 0 0 0 1px var(--line-2)}
  .sidebar{position:fixed;inset-block:0;inset-inline-end:0;z-index:80;width:280px;flex:none;
    height:100vh;transform:translateX(-100%);transition:transform .24s var(--ease);
    padding:18px 14px;border-bottom:0;border-inline-end:0;
    border-inline-start:1px solid var(--line-2);overflow:hidden}
  .sidebar.open{transform:none}
  .side-nav{flex-direction:column;flex-wrap:nowrap;gap:2px}
  .side-nav a{font-size:14px;padding:9px 12px}
  .side-nav a.active::before{display:block}
  .nav-scrim{display:block;position:fixed;inset:0;z-index:75;background:rgba(3,14,17,.55)}
  .nav-scrim[hidden]{display:none}
  .content{padding:64px 16px 44px;max-width:none}
  .toolbar .tb-count{margin-inline-start:0;width:100%;padding-bottom:0}
  .bulkbar{inset-inline:12px;left:auto;transform:translateY(180%);width:auto}
  .bulkbar.show{transform:none}
  .toast-wrap{inset-inline:12px;bottom:12px;max-width:none}
  .savebar{border-radius:var(--r-sm)}
  button{min-height:44px}                /* ממצא 3.37 — יעד מגע במובייל */
  /* ‎console.css‎ נותן ‎white-space:nowrap‎ לכפתורים. תווית ארוכה
     ("שליחה למנהל שרשרת האספקה (sc@example.com)") גלשה מהמסך ב-390px. */
  button,.btn{white-space:normal;text-align:center;line-height:1.4}
  td a,th a{min-height:44px}
}
@media(max-width:640px){
  .row-between{flex-wrap:wrap}
  .wiz-steps li{font-size:12px;padding:6px 12px 6px 8px}
  .grid2{grid-template-columns:minmax(0,1fr)}
}
@media(max-width:520px){
  /* console.css מותח כל .btn לרוחב מלא — בסרגלי פעולות זה שובר את השורה */
  .bulkbar button,.pager button,.range-quick button,.toolbar button,
  .actions button,.wiz-actions button,.form-actions button{width:auto}
}

/* מחרוזות ארוכות בלי רווחים (כתובות, טוקנים) שברו את רוחב העמוד */
.mono,code.mono,.page-sub,.form-hint,td,th{overflow-wrap:anywhere}
.mono,code.mono{word-break:normal}

/* =====================================================================
   ממצא 3.29 · ניגודיות במצב בהיר — תיקון על גבי console.css
   ---------------------------------------------------------------------
   נמדד ב-Chromium על 23 המסכים: במצב הבהיר של console.css הצבע
   ‎--acc:#0c9e88‎ משמש גם כמילוי וגם כ**טקסט**, והוא בהיר מדי לטקסט:
     · לשונית תפריט פעילה   2.85:1
     · כפתור ghost / קישור  3.02:1
     · לבן על הגרדיאנט      2.80:1   ← זה בדיוק הממצא שהביקורת ציינה
     · ‎--muted-2‎ בסרגל      2.75:1
   התקן הוא 4.5:1. הערכים כאן נגזרו בהחשכה מדודה עד שהם עוברים על
   **כל ארבעת** משטחי הבהיר (#fff · #eff4f4 · #e6eeee · #f4f9f9).
   ‎console.css‎ עצמו לא שונה — הוא נשאר כפי שאושר, והתיקון בשכבה שמעליו.
   ===================================================================== */
html[data-theme="light"]{
  --acc-text:#097968;          /* 4.52:1 מינימום — teal כטקסט */
  --muted-2:#5c6f6c;           /* 4.52:1 */
  --ok:#087a54;                /* 4.55:1 */
  --warn:#955f0b;              /* 4.55:1 */
  --grad:linear-gradient(120deg,#0b8572,#0e819b);   /* לבן עליו 4.55:1 */
  --link:var(--acc-text);
}
:root{ --acc-text:var(--acc); }   /* בכהה ה-acc בהיר ממילא — 8.9:1 */

/* החלת אסימון הטקסט על כל מקום שבו teal הוא טקסט ולא מילוי */
html[data-theme="light"] a:not(.btn):not(.btn-ghost):not(.btn-danger),
html[data-theme="light"] .side-nav a.active,
html[data-theme="light"] button.link,
html[data-theme="light"] .btn.link,
html[data-theme="light"] button.ghost,
html[data-theme="light"] .btn.ghost,
html[data-theme="light"] .btn-ghost,
html[data-theme="light"] .pill,
html[data-theme="light"] .badge,
html[data-theme="light"] .tabs a.active,
html[data-theme="light"] .form-nav a.active,
html[data-theme="light"] .crumbs a:hover,
html[data-theme="light"] .cell-more > summary,
html[data-theme="light"] legend,
html[data-theme="light"] .kick,
html[data-theme="light"] h2 .ic-svg,
html[data-theme="light"] .form-title .ic-svg,
html[data-theme="light"] .toast .t-ic,
html[data-theme="light"] .wiz-steps li.current,
html[data-theme="light"] .pager button[aria-current="true"],
html[data-theme="light"] .range-quick button[aria-pressed="true"],
html[data-theme="light"] .side-search-kbd{ color:var(--acc-text) }

/* כותרת מקטע בסרגל — הייתה 2.75:1 על רקע הסרגל */
.nav-group-title{ color:var(--muted-2) }

/* ============================================================
   טבלה במובייל — console.css הופך אותה ל-display:block עם גלילה.
   זה נכון לטבלה חשופה, אבל שובר טבלה שכבר יושבת ב-.table-wrap
   (כותרת דביקה + בחירה מרובה). לכן ההחזרה מוגבלת לעטופות בלבד.
   ============================================================ */
@media(max-width:900px){
  table{display:block;overflow-x:auto;white-space:nowrap}
  .table-wrap > table,
  .table-wrap table{display:table;overflow:visible;white-space:normal;width:100%}
}

/* ---------- לוגו הסרגל מתחלף עם הערכה ---------- */
.brand .logo-light{display:none}
html[data-theme="light"] .brand .logo-dark{display:none}
html[data-theme="light"] .brand .logo-light{display:block}

/* ============================================================
   סבב ב' של הביקורת — 3.30 · 3.32 · 3.41 · 3.42 · 3.43 · 3.44 · 3.45
   כל מה שכאן נשען על אסימוני console.css בלבד. console.css לא שונה.
   ============================================================ */

/* ---------- ממצא 3.30 · כותרת מקטע אחת לכל המערכת ----------
   ‏.form-title היה <div>. בבדיקת DOM סדר הכותרות ב-/customers/new היה
   H1 → H3 → H3 → H3 → H2. עכשיו הוא תמיד <h2>, ולכן צריך לאפס את
   ברירות המחדל של h2 מ-console.css כדי שהמראה לא יזוז.                    */
h2.form-title{
  font-size:15px;font-weight:800;line-height:1.35;letter-spacing:-.1px;
  margin:0 0 12px;padding:0 0 0 0;border:0;color:var(--ink);
  display:flex;align-items:center;gap:8px;flex-wrap:wrap}
h2.form-title::before{   /* פס המבטא — עד היום היה רק על חלק מהמקטעים */
  content:"";flex:0 0 auto;width:3px;height:16px;border-radius:999px;
  background:var(--grad)}   /* אותו פס בדיוק כמו h2 רגיל — משפחה אחת */
h2.form-title.form-title-sm{font-size:13.5px;margin-top:16px}
.form-sub{margin:-6px 0 13px 11px;font-size:12.8px;color:var(--muted);max-width:70ch}

/* ---------- ממצא 3.43 · הסבר בנקודת הצורך ---------- */
.hint{
  all:unset;box-sizing:border-box;display:inline-flex;align-items:center;justify-content:center;
  width:16px;height:16px;min-height:0;border-radius:50%;cursor:help;position:relative;
  font-size:10.5px;font-weight:800;line-height:1;vertical-align:1px;
  color:var(--muted);box-shadow:inset 0 0 0 1px var(--line-2);background:transparent}
.hint:hover,.hint:focus-visible{color:var(--acc);box-shadow:inset 0 0 0 1px var(--acc)}
/* ‏console.css מרים כל <button> ב-hover ב-translateY(-2px). transform הופך את
   הכפתור ל-containing block של ילד position:fixed — ואז הבועית נצמדת לכפתור
   שגלל אל מחוץ למסך במקום לחלון. נמדד ב-390px: rect.left=-110 למרות left:8px.
   ‏.hint אינו כפתור-פעולה ואינו זקוק לריחוף, ולכן פשוט אין לו transform.     */
.hint,.hint:hover,.hint:active,.hint:focus,.hint:focus-visible{transform:none}
/* ‏position:fixed ולא absolute — נמדד בכרומיום: בתוך <table> וב-.table-wrap
   (שניהם עם overflow לצורך גלילה אופקית) הבועית **נחתכה**, ובמובייל אף יצאה
   מהמסך ל-left:-45. מיקום ב-fixed + חישוב ב-ui.js פותר את שניהם.
   ‏title= נשאר על הכפתור כנפילה-לאחור אם ה-JS לא נטען.                      */
.hint-pop{
  /* ‏left/right פיזיים ולא inset-inline-start: ב-RTL ה-inline-start מתורגם
     ל-right, ואז גם right וגם ה-left שה-JS קובע היו מוגדרים — קופסה
     over-constrained שבה RTL מעדיף את right. נמדד: הבועית נצמדה ל-1440. */
  position:fixed;z-index:220;top:0;left:0;right:auto;
  min-width:180px;max-width:280px;padding:9px 12px;border-radius:var(--r-xs);
  background:var(--surface-2);color:var(--ink);border:1px solid var(--line-2);
  box-shadow:var(--sh-2);font-size:12.4px;font-weight:500;line-height:1.5;
  text-align:start;white-space:normal;
  opacity:0;visibility:hidden;pointer-events:none;transform:translateY(3px);
  transition:opacity .13s var(--ease),transform .13s var(--ease)}
.hint.is-open .hint-pop{opacity:1;visibility:visible;transform:translateY(0)}
th .hint{margin-inline-start:3px}
@media(prefers-reduced-motion:reduce){.hint-pop{transition:none}}

/* ---------- ממצא 3.42 · מצב ריק בתוך טבלה ---------- */
.empty-tr td{padding:0!important;background:transparent!important;border:0!important}
.empty-tr:hover td{background:transparent!important}
.empty-state .btn{display:inline-flex}
.empty-state + .empty-state{display:none}

/* ---------- ממצא 3.41 · תפריט המשתמש בפינה ----------
   הדוח: "אין מקום לראות מי מחובר... ו'יציאה' הוא פריט תפריט רגיל בין השאר."
   ‏<details> ולא JS: נפתח במקלדת, נסגר ב-Esc, ועובד גם אם ui.js לא נטען. */
.usermenu{position:relative}
.usermenu > summary{
  list-style:none;cursor:pointer;display:flex;align-items:center;gap:9px;
  padding:7px 9px;border-radius:var(--r-sm);min-height:40px;
  color:var(--muted);font-size:13.4px;font-weight:600;
  transition:background .15s var(--ease),color .15s var(--ease)}
.usermenu > summary::-webkit-details-marker{display:none}
.usermenu > summary:hover{background:var(--acc-a08);color:var(--ink)}
.usermenu[open] > summary{background:var(--acc-a12);color:var(--ink)}
.avatar{
  flex:0 0 auto;width:28px;height:28px;border-radius:50%;
  display:inline-flex;align-items:center;justify-content:center;
  background:var(--grad);color:var(--acc-ink);
  font-size:12px;font-weight:800;letter-spacing:0;line-height:1}
.usermenu .um-who{min-width:0;display:flex;flex-direction:column;line-height:1.25}
.usermenu .um-who b{color:var(--ink);font-size:13px;font-weight:700;
  overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:150px}
.usermenu .um-who span{font-size:11.4px;color:var(--muted-2)}
.usermenu .um-caret{margin-inline-start:auto;transition:transform .15s var(--ease)}
.usermenu[open] .um-caret{transform:rotate(180deg)}
.um-pop{
  position:absolute;z-index:130;bottom:calc(100% + 8px);inset-inline:0;
  background:var(--surface-2);border:1px solid var(--line-2);border-radius:var(--r-sm);
  box-shadow:var(--sh-2);padding:6px;display:flex;flex-direction:column;gap:2px}
.um-pop a,.um-pop button{
  all:unset;box-sizing:border-box;display:flex;align-items:center;gap:9px;
  padding:9px 10px;border-radius:var(--r-xs);min-height:40px;cursor:pointer;
  color:var(--muted);font-size:13.2px;font-weight:600;background:transparent}
.um-pop a:hover,.um-pop a:focus-visible,.um-pop button:hover,.um-pop button:focus-visible{
  background:var(--acc-a08);color:var(--ink);text-decoration:none}
.um-pop .um-out:hover,.um-pop .um-out:focus-visible{background:var(--danger-bg);color:var(--danger)}
.um-sep{height:1px;background:var(--line);margin:4px 2px}

/* ---------- ממצא 3.41 · מסך פרופיל והגדרות ---------- */
.settings-grid{display:grid;gap:14px;grid-template-columns:repeat(auto-fill,minmax(255px,1fr))}
.settings-card{
  display:flex;flex-direction:column;gap:6px;padding:17px 18px;
  background:var(--surface);border:1px solid var(--line);border-radius:var(--r);
  box-shadow:var(--sh-1);color:inherit;
  transition:border-color .15s var(--ease),transform .15s var(--ease)}
a.settings-card:hover{border-color:var(--acc-a35);transform:translateY(-2px);text-decoration:none}
.settings-card .sc-top{display:flex;align-items:center;gap:9px;color:var(--acc)}
.settings-card b{font-size:14.4px;color:var(--ink);font-weight:700}
.settings-card p{margin:0;font-size:12.7px;color:var(--muted);line-height:1.55}
.settings-card .sc-val{font-size:12.7px;color:var(--muted);margin-top:2px}
.kv{display:grid;grid-template-columns:auto 1fr;gap:9px 18px;align-items:baseline;margin:0}
.kv dt{color:var(--muted);font-size:12.7px;font-weight:600}
.kv dd{margin:0;color:var(--ink);font-size:13.6px;font-weight:600;overflow-wrap:anywhere}

/* ---------- ממצא 3.44 · מסך "מצב מערכת" תמציתי ---------- */
.sys-agents{display:grid;gap:9px;grid-template-columns:repeat(auto-fill,minmax(210px,1fr))}
.sys-agent{display:flex;align-items:center;gap:10px;padding:11px 13px;
  background:var(--surface);border:1px solid var(--line);border-radius:var(--r-sm)}
.sys-agent .dot{flex:0 0 auto;width:8px;height:8px;border-radius:50%;background:var(--ok)}
.sys-agent .dot.off{background:var(--muted-2)}
.sys-agent b{font-size:13.2px;font-weight:700;color:var(--ink)}
.sys-agent span{font-size:11.6px;color:var(--muted);display:block;line-height:1.35}

@media(max-width:900px){
  .hint{width:20px;height:20px;font-size:12px}
  .hint-pop{min-width:150px;max-width:min(70vw,260px)}
  .usermenu > summary{min-height:44px}
  .um-pop a,.um-pop button{min-height:44px}
}

/* ---------- כותרת עמוד עם פעולות (ממצא 4.1 · PageHeader) ---------- */
.page-actions{display:flex;flex-wrap:wrap;gap:9px;margin-top:13px}

/* ---------- כרטיס מדד שמסמן חריגה (ממצא 3.44 · מצב מערכת) ---------- */
.stat.is-warn .num{color:var(--warn)}
.stat.is-bad .num{color:var(--danger)}
.stat .hint{vertical-align:0}

/* ---------- באג שנחשף בסבב ב': הודעת flash רב-אלמנטית גולשת ----------
   ‏console.css מגדיר ‎.flash{display:flex}‎ בלי flex-wrap. הודעה שמכילה יותר
   מאלמנט אחד (טקסט + <b> + קישור) הופכת לכמה פריטי flex בשורה אחת שאינה
   נשברת. נמדד בכרומיום ב-390px: הכרטיס 358px, ‏scrollWidth של המסמך 542,
   והקישור ישב ב-‎left:-136‎ — מחוץ למסך לגמרי.
   ‏console.css לא שונה; התיקון כאן. */
.flash,.alert{flex-wrap:wrap}
.flash > *,.alert > *{min-width:0}
.flash-body{flex:1 1 14rem;min-width:0}

/* ---------- קודי שחזור ל-2FA (04/08/2026) ---------- */
.rec-codes{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:9px;margin:4px 0 2px}
.rec-codes code{
  display:block;text-align:center;padding:11px 8px;border-radius:var(--r-xs);
  background:var(--surface);border:1px solid var(--line-2);
  font-size:15px;font-weight:700;letter-spacing:1.6px;color:var(--ink);
  font-variant-numeric:tabular-nums;user-select:all}
.rec-status{display:flex;align-items:center;gap:8px;flex-wrap:wrap;
  font-size:13.6px;color:var(--muted);margin:14px 0 12px}
.rec-status b{color:var(--ink)}
.warn-txt{display:flex;align-items:center;gap:8px;color:var(--warn)}
.warn-txt b{color:var(--warn)}
@media print{
  .sidebar,.side-foot,.page-head,.form-actions,.flash{display:none!important}
  .rec-codes code{border:1px solid #000;color:#000;background:#fff}
}

/* ---------- באג קדם-קיים שנחשף 04/08: ghost + type="submit" ----------
   ‏console.css מגדיר ‎.btn,button[type="submit"]{background:var(--grad)}‎.
   הסלקטור ‎button[type="submit"]‎ הוא (0,1,1) — **גובר** על ‎.btn-ghost‎ (0,1,0).
   לכן כפתור ‎<button type="submit" class="btn-ghost">‎ קיבל את רקע הגרדיאנט
   ואת צבע הטקסט של ghost: נמדד בכרומיום **1.17:1** במצב בהיר — בלתי קריא.
   זה נכון לכל כפתור כזה באפליקציה, לא רק לחדש. ‏console.css לא שונה.      */
button[type="submit"].btn-ghost, button[type="submit"].ghost,
button[type="submit"].secondary, input[type="submit"].btn-ghost,
button.btn-ghost, button.ghost{
  background:var(--acc-a08);background-image:none;color:var(--acc);
  box-shadow:inset 0 0 0 1px var(--acc-a35);text-shadow:none}
button[type="submit"].btn-ghost:hover, button[type="submit"].ghost:hover,
button.btn-ghost:hover, button.ghost:hover{
  background:var(--acc-a18);background-image:none;box-shadow:inset 0 0 0 1px var(--acc)}
html[data-theme="light"] button[type="submit"].btn-ghost,
html[data-theme="light"] button[type="submit"].ghost,
html[data-theme="light"] button.btn-ghost,
html[data-theme="light"] button.ghost{ color:var(--acc-text) }
/* ‏link מוגדר ב-ui3.css על ‎button.link‎ (0,1,1) ולכן כבר גובר — נשמר לתיעוד. */


/* ─────────────── לוח מחוונים (12/08/2026) ───────────────
   ⚠️ נולד מבאג: הפס הקודם השתמש ב-.kpis, שה-grid שלו מוגדר **רק**
   ב-style.css — קובץ שאינו נטען באף תבנית. הכרטיסים קיבלו עיצוב אבל
   המכולה לא, וחמישה כרטיסים נערמו זה מתחת לזה בגובה מלא.

   העיקרון, לבקשת המנכ"ל: לוח מחוונים של מטוס. קריאה במבט חטוף, צפוף,
   **וצבע רק על חריגה** — מדד תקין נשאר ניטרלי כדי שהעין תימשך רק למה
   שדורש פעולה. לוח שכולו צבעוני הוא לוח שמפסיקים להסתכל עליו.  */
.gauges{display:grid;grid-template-columns:repeat(auto-fit,minmax(158px,1fr));
  gap:1px;background:var(--line-2);border:1px solid var(--line-2);
  border-radius:var(--r);overflow:hidden;margin:0 0 14px}
.gauge{background:var(--surface);padding:11px 14px 12px;
  display:flex;flex-direction:column;gap:1px;min-width:0}
.gauge-top{display:flex;align-items:center;gap:7px;min-width:0}
.gauge-led{width:7px;height:7px;border-radius:50%;background:var(--line-2);
  flex:0 0 auto;transition:box-shadow .2s var(--ease,ease)}
.gauge-lbl{font-size:12px;font-weight:800;color:var(--muted);
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.gauge-val{font-size:25px;font-weight:900;line-height:1.1;color:var(--ink);
  font-variant-numeric:tabular-nums;direction:ltr;unicode-bidi:plaintext;
  text-align:start;margin-top:1px}
.gauge-val .of{font-size:15px;font-weight:700;color:var(--muted-2)}
.gauge-sub{font-size:11.5px;color:var(--muted-2);line-height:1.35;margin-top:1px}
.gauge.on-ok .gauge-led{background:var(--ok);box-shadow:0 0 7px var(--ok)}
.gauge.on-warn .gauge-led{background:var(--warn);box-shadow:0 0 7px var(--warn)}
.gauge.on-warn .gauge-val{color:var(--warn)}
.gauge.on-alert .gauge-led{background:var(--danger);box-shadow:0 0 8px var(--danger)}
.gauge.on-alert .gauge-val{color:var(--danger)}

/* שורת מצב — התראה אחת, בגובה שורה, לא בלוק */
.statusline{display:flex;align-items:center;gap:9px;margin:0 0 14px;
  padding:9px 13px;border-radius:var(--r-sm,13px);font-size:13.2px;
  background:var(--warn-bg);color:var(--warn);
  box-shadow:inset 0 0 0 1px var(--warn-line)}
.statusline b{font-variant-numeric:tabular-nums}
/* וריאנט התרעה — לצירוף 'מושהה אך בגבייה' (13/08/2026). הפס הרגיל
   צהוב ומשמש להתראות שאפשר לחיות איתן; זה אדום כי כאן לקוח משלם
   ואינו מקבל שירות. */
.statusline.is-alert{background:var(--danger-bg);color:var(--danger);
  box-shadow:inset 0 0 0 1px var(--danger-line)}
.statusline .sl-ic{flex:0 0 auto;display:flex}

@media(max-width:640px){
  .gauges{grid-template-columns:1fr 1fr}
  .gauge-val{font-size:22px}
}
