/* ==========================================================================
   מערכת שחרורים — עיצוב בסיס
   שפה עיצובית: נייבי-אינדיגו עמוק, מבטא ירוק מנטה, כפתורי גלולה, פינות רכות.
   ========================================================================== */

:root {
  --navy:        #141c4e;
  --navy-800:    #1b2560;
  --navy-700:    #24306f;
  /* הובהר מ-#5a68a8: על רקע הנייבי של הסרגל הוא נתן יחס 3.05, מתחת
     לסף 4.5 של ת"י 5568. עכשיו 4.55. */
  --navy-400:    #7785c5;
  --mint:        #2fbc8f;
  /* הוכהה מ-#23a077: הוא צבע הקישורים, ועל רקע לבן נתן 3.30.
     עכשיו 4.53. */
  --mint-dark:   #0a875e;
  --mint-soft:   #e7f7f1;
  --mint-line:   #b8e6d4;
  --indigo:      #4a5bb8;
  --indigo-soft: #eceffb;

  --bg:          #f4f6fd;
  --card:        #ffffff;
  --line:        #e5e9f5;
  --line-strong: #ccd3e8;
  --ink:         #161d3a;
  /* הוכהה בצעד אחד מ-#626d92, שנתן 4.48 על רקע התגית הנייטרלית. */
  --ink-muted:   #616c91;
  /* הוכהה מ-#8b95b5: שימש בטקסטי "אין פריטים" ונתן 2.97 על לבן.
     עכשיו 4.50. */
  --ink-faint:   #6c7696;

  /* הוכהה מ-#1a8a63: על רקע --mint-soft נתן 3.90. עכשיו 4.52. */
  --green:       #0f7f58;
  /* גוון כהה לריחוף הכפתורים. נבחר כך שגם הוא יעבור את הסף בעצמו
     (6.8:1 עם טקסט לבן) — מצב ריחוף שנכשל הוא כשל נגישות לכל דבר. */
  --green-deep:  #0c6847;
  --green-weak:  #e7f7f1;
  --amber:       #96650a;
  --amber-weak:  #fdf4e3;
  --red:         #cf3b28;
  --red-weak:    #fdeeeb;

  --radius:      12px;
  --radius-lg:   18px;
  --pill:        999px;
  --shadow:      0 2px 4px rgba(20, 28, 78, .04), 0 8px 24px rgba(20, 28, 78, .06);
  --shadow-lg:   0 12px 48px rgba(20, 28, 78, .22);
  --font:        'Rubik', 'Segoe UI', 'Arial Hebrew', Arial, sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  min-height: 100%;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* כל אלמנט עם התכונה hidden באמת נעלם.
   בלי זה, כל כלל display בגיליון הזה — למשל display:inline-flex על .btn —
   גובר על ברירת המחדל של הדפדפן, והאלמנט ממשיך להופיע למרות שהקוד
   הסתיר אותו. זה נכשל בשקט: ה-DOM אומר hidden=true והמסך מראה אחרת. */
[hidden] { display: none !important; }

/* דילוג לתוכן — נדרש בת"י 5568 למי שמנווט במקלדת, כדי לא לעבור את כל
   תפריט הצד בכל טעינת מסך. מוסתר עד שמקבל פוקוס.

   🔴 ‏`inset-inline-start` ולא `left`: הדף הוא RTL, ו-left:-9999px היה
   מגלה את הקישור בצד הלא נכון ברגע שהוא נפתח. */
.skip-link {
  position: absolute;
  inset-inline-start: -9999px;
  top: 0;
  z-index: 100;
  background: var(--navy);
  color: #fff;
  padding: 11px 18px;
  border-radius: 0 0 10px 10px;
  font-size: 15px;
  text-decoration: none;
}
.skip-link:focus {
  inset-inline-start: 12px;
  outline: 3px solid var(--mint);
  outline-offset: 2px;
}

/* חיווי פוקוס גלוי בכל רכיב אינטראקטיבי. בלעדיו מי שמנווט במקלדת
   לא יודע איפה הוא עומד — אחת הדרישות שנבדקות ידנית בתקן. */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--mint-dark);
  outline-offset: 2px;
}

h1, h2, h3, h4 { margin: 0; font-weight: 600; line-height: 1.35; }
/* כותרת כרטיס היא h2 כדי שלא יהיה דילוג מ-h1 ל-h3 בסדר הכותרות,
   והגודל נשמר כדי שהמראה לא ישתנה. */
.card-head h2 { font-size: 16px; }
h1 { font-size: 23px; }
h2 { font-size: 19px; }
h3 { font-size: 16px; }
p  { margin: 0 0 12px; }
a  { color: var(--mint-dark); }

/* ------------------------------------------------------------------ סמליל */

.mark {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-weight: 600;
  letter-spacing: -.01em;
}
.mark svg { flex: none; }

/* ------------------------------------------------------------- מסכי כניסה */

.auth-page {
  display: flex;
  min-height: 100vh;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  background:
    radial-gradient(900px 420px at 88% -8%, rgba(47, 188, 143, .22) 0%, rgba(47, 188, 143, 0) 62%),
    radial-gradient(760px 420px at 6% 104%, rgba(74, 91, 184, .34) 0%, rgba(74, 91, 184, 0) 60%),
    linear-gradient(158deg, #101740 0%, #1d2765 58%, #26306f 100%);
}

.auth-card {
  width: 100%;
  max-width: 440px;
  background: var(--card);
  border-radius: 22px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.auth-card.wide { max-width: 640px; }

.auth-head {
  padding: 26px 32px 22px;
  border-bottom: 1px solid var(--line);
}

.auth-head .school {
  font-size: 12.5px;
  color: var(--ink-faint);
  margin-bottom: 8px;
}

.auth-body { padding: 26px 32px 32px; }

.auth-foot {
  padding: 15px 32px;
  background: #fafbff;
  border-top: 1px solid var(--line);
  font-size: 13.5px;
  color: var(--ink-muted);
  text-align: center;
}

/* הקיפול התחתון של דף הכניסה — קיצור לדף ההתקנה.
   כפתור מתואר ולא מלא, כדי שיבלוט בלי להתחרות בכפתור הכניסה עצמו. */
.install-foot { background: #fff; padding-top: 15px; padding-bottom: 18px; }
.install-foot .btn { font-weight: 500; text-decoration: none; }
.install-foot .hint { margin-top: 7px; }

/* -------------------------------------------------------------- שדות טופס */

.field { margin-bottom: 16px; }

.field > label,
.label {
  display: block;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ink-muted);
  margin-bottom: 6px;
}

.field .hint {
  font-size: 12.5px;
  color: var(--ink-faint);
  margin-top: 5px;
}

input[type="text"], input[type="email"], input[type="password"], input[type="tel"],
input[type="date"], input[type="time"], input[type="datetime-local"], input[type="number"],
select, textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 15px;
  color: var(--ink);
  background: #fff;
  transition: border-color .15s, box-shadow .15s;
}

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--mint);
  box-shadow: 0 0 0 3px rgba(47, 188, 143, .18);
}

input:disabled, select:disabled, textarea:disabled {
  background: #f3f5fb;
  color: var(--ink-faint);
}

textarea { min-height: 110px; resize: vertical; line-height: 1.6; }

.otp-input {
  text-align: center;
  letter-spacing: .5em;
  font-size: 25px;
  font-weight: 600;
  direction: ltr;
  padding: 13px;
}

.row { display: flex; gap: 12px; flex-wrap: wrap; }
.row > * { flex: 1 1 180px; min-width: 0; }

.check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 9px;
  cursor: pointer;
  background: #fff;
  transition: border-color .15s, background .15s;
}
.check:hover { border-color: var(--line-strong); }
.check input { margin: 4px 0 0; width: 17px; height: 17px; accent-color: var(--mint-dark); flex: none; }
.check.checked { border-color: var(--mint); background: var(--mint-soft); }
.check .req { color: var(--red); font-size: 12.5px; }

/* ---------------------------------------------------------------- כפתורים */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 11px 22px;
  border: 1px solid transparent;
  border-radius: var(--pill);
  font-family: inherit;
  font-size: 14.5px;
  font-weight: 500;
  cursor: pointer;
  /* 🔴 היה כאן var(--mint): לבן על #2fbc8f נותן 2.41:1, מול 4.5 שת"י
     5568 דורש — וזה הכפתור הראשי של כל המערכת. --green נותן 5.0, ולא
     --mint-dark שנותן 4.53: מרווח של 0.03 מהסף נשבר בכל כוונון עתידי.

     המנטה עצמה נשארת בכל מקום שהיא קישוט — הלוגו, המסגרות, ופס
     הניווט הפעיל שבו הטקסט כחול ונותן 6.67. לא הצבע היה הבעיה אלא
     טקסט לבן עליו. */
  background: var(--green);
  color: #fff;
  transition: background .15s, border-color .15s, opacity .15s, box-shadow .15s;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(15, 127, 88, .26);
}
/* ריחוף חייב להכהות, לא להבהיר — ולעמוד בסף בעצמו: 6.8:1. */
.btn:hover  { background: var(--green-deep); }
.btn:disabled { opacity: .5; cursor: not-allowed; box-shadow: none; }
.btn.block  { width: 100%; }

.btn.ghost {
  background: #fff;
  color: var(--ink);
  border-color: var(--line-strong);
  box-shadow: none;
}
.btn.ghost:hover { background: #f3f5fb; border-color: var(--navy-400); }

.btn.navy { background: var(--navy); box-shadow: 0 2px 8px rgba(20, 28, 78, .22); }
.btn.navy:hover { background: var(--navy-800); }

.btn.link {
  background: none;
  color: var(--mint-dark);
  padding: 4px 2px;
  font-weight: 500;
  box-shadow: none;
}
.btn.link:hover { background: none; text-decoration: underline; }

/* 🔴 גם כאן היה --mint. הכיתוב יורש #fff מ-.btn, ולכן הכשל זהה —
   אבל הוא לא מופיע בחיפוש אחר "color: #fff" כי הצבע לא נכתב כאן. */
.btn.ok     { background: var(--green); }
.btn.ok:hover { background: var(--green-deep); }

.btn.danger { background: var(--red); box-shadow: 0 2px 8px rgba(207, 59, 40, .24); }
.btn.danger:hover { background: #ac2f1f; }

.btn.sm     { padding: 7px 15px; font-size: 13.5px; }

/* ------------------------------------------------------------------ שלד */

.shell { display: flex; min-height: 100vh; }

.sidebar {
  width: 246px;
  flex: none;
  background: var(--navy);
  color: #c2c9e6;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
}

.sidebar .brand {
  padding: 22px 20px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, .09);
}
.sidebar .brand .name { color: #fff; font-weight: 600; font-size: 16px; }
.sidebar .brand .sub  { font-size: 12.5px; color: var(--navy-400); margin-top: 3px; }

.nav { padding: 14px 12px; flex: 1; overflow-y: auto; }

.nav a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 14px;
  border-radius: var(--pill);
  color: #c2c9e6;
  text-decoration: none;
  font-size: 14.5px;
  margin-bottom: 3px;
  transition: background .15s, color .15s;
}
.nav a:hover   { background: rgba(255, 255, 255, .07); color: #fff; }
/* טקסט נייבי ולא לבן: לבן על מנטה נתן 2.41 — הכי גרוע במערכת. נייבי
   על אותה מנטה נותן 6.67, ומשאיר את צבע המותג במקומו. */
.nav a.active  { background: var(--mint); color: var(--navy); font-weight: 600; }
.nav .count {
  background: #f3c363;
  color: #4a3300;
  font-size: 12px;
  font-weight: 600;
  border-radius: var(--pill);
  padding: 0 8px;
  min-width: 21px;
  text-align: center;
}
.nav a.active .count { background: rgba(255, 255, 255, .92); color: var(--navy); }

/* קיצור דרך לדף ההתקנה, מתחת לרשימת הדפים ומעל השם. לא פריט ניווט
   רגיל — הוא יוצא מהאפליקציה, ולכן הוא נראה אחרת. */
.install-link {
  display: block;
  margin: 0 12px 12px;
  padding: 9px 14px;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: var(--pill);
  color: #c2c9e6;
  text-decoration: none;
  font-size: 14px;
  text-align: center;
  transition: background .15s, color .15s;
}
.install-link:hover { background: rgba(255, 255, 255, .09); color: #fff; }

.sidebar .who {
  padding: 15px 20px;
  border-top: 1px solid rgba(255, 255, 255, .09);
  font-size: 13px;
}
.sidebar .who .n { color: #fff; font-weight: 500; }
.sidebar .who .r { color: var(--navy-400); }

/* הצהרת נגישות: חובה חוקית בכל עמוד, אבל לא פעולה יומיומית — ולכן
   קטנה ואחרונה, מתחת ליציאה מהמערכת.
   🔴 הצבע נשאר #9aa6cc ולא כהה יותר: על רקע הסרגל (#1b2440) זה 5.4:1,
   מעל 4.5 שהתקן דורש. "קטן" לא אומר "חיוור". */
.sidebar .who .a11y-link {
  /* block ולא inline-block: כפתור היציאה שלפניו זורם בשורה, ושניהם
     היו יושבים זה לצד זה. fit-content מחזיר את שטח הלחיצה לרוחב
     הטקסט במקום לכל רוחב הסרגל. */
  display: block;
  width: fit-content;
  margin-top: 9px;
  font-size: 12px;
  color: #9aa6cc;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.sidebar .who .a11y-link:hover { color: #fff; }

.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }

.topbar {
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 11px 14px;
  background: var(--navy);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 30;
}
.topbar .burger {
  background: none;
  border: 1px solid rgba(255, 255, 255, .28);
  color: #fff;
  border-radius: 10px;
  padding: 6px 11px;
  font-size: 17px;
  cursor: pointer;
  line-height: 1;
}

.content { padding: 28px 32px 60px; max-width: 1200px; width: 100%; }

.page-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}
.page-head .sub { color: var(--ink-muted); font-size: 14px; margin-top: 4px; }
.page-head .actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* ------------------------------------------------------------------ כרטיס */

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  margin-bottom: 18px;
  overflow: hidden;
}
.card > .card-head {
  padding: 16px 22px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.card > .card-body { padding: 22px; }
.card > .card-body.tight { padding: 0; }

.grid { display: grid; gap: 16px; }
.grid.c2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid.c3 { grid-template-columns: repeat(auto-fit, minmax(215px, 1fr)); }
.grid.c4 { grid-template-columns: repeat(auto-fit, minmax(168px, 1fr)); }

.stat {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 18px 20px;
  box-shadow: var(--shadow);
}
.stat .v { font-size: 29px; font-weight: 600; line-height: 1.15; color: var(--navy); }
.stat .k { font-size: 13.5px; color: var(--ink-muted); margin-top: 3px; }
.stat.alert { border-color: var(--mint-line); background: linear-gradient(180deg, var(--mint-soft) 0%, #fff 70%); }
.stat.alert .v { color: var(--mint-dark); }

/* ------------------------------------------------------------------ טבלה */

.table-wrap { overflow-x: auto; }

table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
thead th {
  text-align: right;
  font-weight: 500;
  font-size: 13px;
  color: var(--ink-muted);
  padding: 12px 18px;
  background: #fafbff;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
tbody td {
  padding: 13px 18px;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}
tbody tr:last-child td { border-bottom: none; }
tbody tr:hover { background: #fafbff; }
td .name { font-weight: 500; }
td .muted { color: var(--ink-muted); font-size: 13px; }
.cell-actions { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-start; }
.nowrap { white-space: nowrap; }

/* -------------------------------------------------------------------- תגית */

.badge {
  display: inline-block;
  padding: 3px 12px;
  border-radius: var(--pill);
  font-size: 12.5px;
  font-weight: 500;
  white-space: nowrap;
  border: 1px solid transparent;
}
.badge.pending   { background: var(--amber-weak); color: var(--amber); border-color: #f2ddb6; }
.badge.approved  { background: var(--mint-soft);  color: var(--green); border-color: var(--mint-line); }
.badge.released  { background: var(--indigo-soft); color: var(--indigo); border-color: #d3daf5; }
.badge.rejected  { background: var(--red-weak);   color: var(--red);   border-color: #f6cec7; }
.badge.cancelled { background: #eef0f8; color: var(--ink-muted); border-color: var(--line); }
.badge.neutral   { background: #eef0f8; color: var(--ink-muted); border-color: var(--line); }
.badge.warn      { background: var(--amber-weak); color: var(--amber); border-color: #f2ddb6; }

/* ------------------------------------------------------------------ הודעות */

.notice {
  padding: 13px 16px;
  border-radius: var(--radius);
  font-size: 14px;
  margin-bottom: 16px;
  border: 1px solid;
}
.notice.info  { background: var(--indigo-soft); border-color: #d3daf5; color: #35459c; }
.notice.ok    { background: var(--mint-soft);   border-color: var(--mint-line); color: var(--green); }
.notice.warn  { background: var(--amber-weak);  border-color: #f2ddb6; color: var(--amber); }
.notice.error { background: var(--red-weak);    border-color: #f6cec7; color: var(--red); }
.notice:empty { display: none; }

.empty {
  padding: 46px 20px;
  text-align: center;
  color: var(--ink-faint);
  font-size: 14.5px;
}

.toast-host {
  position: fixed;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 300;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
  pointer-events: none;
}
.toast {
  background: var(--navy);
  color: #fff;
  padding: 12px 22px;
  border-radius: var(--pill);
  box-shadow: var(--shadow-lg);
  font-size: 14.5px;
  max-width: 90vw;
  animation: rise .18s ease-out;
}
.toast.error { background: var(--red); }
.toast.ok    { background: var(--mint-dark); }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } }

/* ------------------------------------------------------------------- מודאל */

.modal-host {
  position: fixed;
  inset: 0;
  background: rgba(16, 23, 64, .58);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 5vh 16px 24px;
  overflow-y: auto;
  z-index: 200;
}
.modal {
  background: #fff;
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
  width: 100%;
  max-width: 570px;
  animation: rise .18s ease-out;
}
.modal.lg { max-width: 800px; }
.modal-head {
  padding: 18px 24px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.modal-head .x {
  background: none;
  border: none;
  font-size: 22px;
  line-height: 1;
  color: var(--ink-faint);
  cursor: pointer;
  padding: 2px 8px;
  border-radius: var(--pill);
}
.modal-head .x:hover { background: #eef0f8; color: var(--ink); }
.modal-body { padding: 24px; }
.modal-foot {
  padding: 15px 24px;
  border-top: 1px solid var(--line);
  display: flex;
  gap: 9px;
  justify-content: flex-start;
  background: #fafbff;
  flex-wrap: wrap;
  border-radius: 0 0 20px 20px;
}

/* ------------------------------------------------------------------ חתימה */

.sign-pad {
  border: 1.5px dashed var(--line-strong);
  border-radius: var(--radius);
  background: #fdfdff;
  position: relative;
  overflow: hidden;
}
.sign-pad canvas { display: block; width: 100%; height: 170px; touch-action: none; cursor: crosshair; }
.sign-pad .ph {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-faint);
  font-size: 14px;
  pointer-events: none;
}
.sign-pad.signed { border-style: solid; border-color: var(--mint-line); background: #fff; }
.sign-pad.signed .ph { display: none; }
.sign-bar { display: flex; justify-content: space-between; align-items: center; margin-top: 7px; }

.sign-view {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  padding: 8px;
  max-width: 320px;
}
.sign-view img { display: block; width: 100%; }

/* ---------------------------------------------------------------- שונות */

.pill-row { display: flex; gap: 7px; flex-wrap: wrap; }
.pill {
  padding: 7px 16px;
  border: 1px solid var(--line-strong);
  border-radius: var(--pill);
  background: #fff;
  font-size: 13.5px;
  cursor: pointer;
  color: var(--ink-muted);
  font-family: inherit;
  transition: background .15s, border-color .15s, color .15s;
}
.pill:hover { border-color: var(--navy-400); }
.pill.on { background: var(--navy); border-color: var(--navy); color: #fff; }

.filters { display: flex; gap: 10px; flex-wrap: wrap; align-items: flex-end; margin-bottom: 18px; }
.filters .field { margin: 0; min-width: 150px; }

.kv { display: grid; grid-template-columns: auto 1fr; gap: 9px 18px; font-size: 14.5px; }
.kv dt { color: var(--ink-muted); }
.kv dd { margin: 0; }

.copy-row { display: flex; gap: 8px; }
.copy-row input { direction: ltr; text-align: left; font-size: 13px; font-family: 'Consolas', monospace; }

/* סרגל פעולות על בחירה מרובה. נדבק לתחתית המסך כדי שהוא יישאר נגיש
   גם באמצע רשימה ארוכה, שם בדיוק נעשית בחירת "הכל". */
.bulk-bar {
  position: sticky;
  bottom: 14px;
  z-index: 20;
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  margin: 14px 0 4px;
  padding: 11px 15px;
  background: var(--navy);
  color: #fff;
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
}
.bulk-bar .bulk-count { font-weight: 500; margin-inline-end: auto; }
.bulk-bar .btn { background: rgba(255, 255, 255, .14); border-color: transparent; color: #fff; }
.bulk-bar .btn:hover:not(:disabled) { background: rgba(255, 255, 255, .24); }
.bulk-bar .btn.danger { background: #d9534f; }
.bulk-bar .btn.link { background: none; color: #c9d0ec; text-decoration: underline; }

td.pick, th.pick { width: 1%; padding-inline-end: 0; }
td.pick input, th.pick input { width: 17px; height: 17px; cursor: pointer; accent-color: var(--mint); }

.list-plain { list-style: none; margin: 0; padding: 0; }
.list-plain li {
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.list-plain li:last-child { border-bottom: none; }

.form-body-text { white-space: pre-wrap; line-height: 1.75; }
.form-image { max-width: 100%; border-radius: var(--radius); border: 1px solid var(--line); margin-top: 12px; }

/* כתובות IP ומזהים טכניים — מבודדים מכיוון הכתיבה של הדף, אחרת "::1" מוצג הפוך */
.ltr { direction: ltr; unicode-bidi: isolate; text-align: left; }

.muted { color: var(--ink-muted); }
.faint { color: var(--ink-faint); }
.sep   { height: 1px; background: var(--line); margin: 20px 0; }
.mb0   { margin-bottom: 0; }
.mt12  { margin-top: 12px; }
.center { text-align: center; }
.spinner {
  width: 24px; height: 24px;
  border: 2.5px solid var(--line-strong);
  border-top-color: var(--mint);
  border-radius: 50%;
  animation: spin .7s linear infinite;
  margin: 44px auto;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------------------------------------------------------------- מובייל */

@media (max-width: 860px) {
  .shell { flex-direction: column; }
  .topbar { display: flex; }
  .sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    right: 0;
    left: auto;
    width: 268px;
    height: 100vh;
    z-index: 100;
    transform: translateX(100%);
    transition: transform .2s ease-out;
    box-shadow: var(--shadow-lg);
  }
  .sidebar.open { transform: translateX(0); }
  .content { padding: 18px 15px 60px; }
  .page-head { margin-bottom: 16px; }
  h1 { font-size: 20px; }
}

@media (max-width: 560px) {
  .auth-head, .auth-body, .auth-foot { padding-left: 20px; padding-right: 20px; }
  .modal-body, .modal-head, .modal-foot { padding-left: 17px; padding-right: 17px; }
  thead th, tbody td { padding: 11px 13px; }
}
