/* ============================================================
   נגב — מערכת לו״ז מגדלי · עיצוב מחודש (Claude Design)
   Glass · פלטה מעומעמת · מצב כהה · Mobile-first · RTL · הדפסה
   ============================================================ */
:root {
  --bg: #f1f2f5;
  --surface: #ffffff;          /* משטח אטום (כפתורים, תאים) */
  --surface-2: #f6f7f9;        /* Sheet מודאלים/אשף */
  --fill: rgba(30, 40, 70, .05);
  --fill-2: rgba(30, 40, 70, .02);
  --ink: #24293a;
  --ink-2: #616b82;
  --ink-3: #8a92a6;
  --line: rgba(30, 40, 70, .10);
  --input-bd: rgba(30, 40, 70, .16);
  --brand: #3f5a86;            /* מבטא יחיד ומאופק */
  --brand-deep: #33496d;
  --brand-ink: #ffffff;
  --brand-soft: rgba(63, 90, 134, .10);
  --brand-line: rgba(63, 90, 134, .20);
  --ok: #3f855f;
  --ok-soft: rgba(79, 154, 118, .11);
  --ok-line: rgba(79, 154, 118, .22);
  --warn: #946633;
  --warn-soft: rgba(176, 125, 63, .12);
  --warn-line: rgba(176, 125, 63, .26);
  --danger: #a8455f;
  --danger-soft: rgba(192, 90, 108, .09);
  --danger-line: rgba(192, 90, 108, .22);
  --night: #2a3145;
  --now: #c0556a;
  --glass-bg: rgba(255, 255, 255, .72);
  --glass-bd: rgba(255, 255, 255, .9);
  --glass-shadow: 0 1px 2px rgba(30, 40, 70, .05), 0 10px 24px -18px rgba(30, 40, 70, .4);
  --bar-bg: rgba(255, 255, 255, .8);
  --stripe-a: rgba(30, 40, 70, .06);
  --stripe-b: rgba(30, 40, 70, .03);
  --radius: 16px;
  --radius-s: 11px;
  --shadow-lg: 0 24px 60px -26px rgba(0, 0, 0, .5);
  --nav-h: 64px;
  --font: 'Heebo', -apple-system, 'Segoe UI', sans-serif;
  --font-display: 'Rubik', 'Heebo', sans-serif;
}
:root[data-theme="dark"] {
  --bg: #0f1320;
  --surface: #1a2030;
  --surface-2: #232a3d;
  --fill: rgba(255, 255, 255, .05);
  --fill-2: rgba(255, 255, 255, .03);
  --ink: #e8ecf5;
  --ink-2: #9ba5be;
  --ink-3: #6c7791;
  --line: rgba(255, 255, 255, .10);
  --input-bd: rgba(255, 255, 255, .16);
  --brand: #6f92cf;
  --brand-deep: #0c1120;
  --brand-soft: rgba(111, 146, 207, .16);
  --brand-line: rgba(111, 146, 207, .30);
  --ok: #7fc9a0;
  --ok-soft: rgba(79, 154, 118, .18);
  --warn: #e6bd7e;
  --warn-soft: rgba(176, 125, 63, .20);
  --danger: #e88ba0;
  --danger-soft: rgba(192, 90, 108, .16);
  --night: #161c2a;
  --glass-bg: rgba(30, 37, 54, .66);
  --glass-bd: rgba(255, 255, 255, .09);
  --glass-shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 12px 26px -18px rgba(0, 0, 0, .6);
  --bar-bg: rgba(20, 25, 38, .85);
  --stripe-a: rgba(255, 255, 255, .09);
  --stripe-b: rgba(255, 255, 255, .04);
}
/* דפדפנים בלי blur — משטח אטום במקום זכוכית */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  :root { --glass-bg: var(--surface); --bar-bg: var(--surface); }
}

* { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }

/* ---------- אייקוני SVG ---------- */
.ic-svg {
  width: 1.05em; height: 1.05em; vertical-align: -0.17em;
  flex-shrink: 0; display: inline-block;
}
.btn .ic-svg, .pill .ic-svg, .chip .ic-svg { width: 15px; height: 15px; }
.mini-tag .ic-svg { width: 11px; height: 11px; vertical-align: -0.12em; }
.g-bar .ic-svg { width: 12px; height: 12px; margin-left: 3px; }
.warn-row .w-ic .ic-svg { width: 14px; height: 14px; color: var(--warn); }
.warn-row.gap .w-ic .ic-svg { color: var(--danger); }
h2 .ic-svg, h3 .ic-svg { width: 18px; height: 18px; color: var(--brand); }
.night-card h3 .ic-svg { color: #e2c489; }
.tag .ic-svg { width: 13px; height: 13px; }
button, .chip, .pill, .nav-btn, .type-cell { touch-action: manipulation; }
html { -webkit-text-size-adjust: 100%; overscroll-behavior-y: none; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  font-size: 15px;
  line-height: 1.45;
  min-height: 100dvh;
  -webkit-font-smoothing: antialiased;
  transition: background .25s ease, color .25s ease;
  padding-bottom: calc(var(--nav-h) + env(safe-area-inset-bottom, 0px) + 12px);
  overflow-x: clip; /* בלי גלישה אופקית ובלי לשבור sticky */
  overscroll-behavior-y: none; /* בלי גלישת-יתר/באונס שמוסיפה תחושת "קפיצה" */
}
button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; font-size: 15px; color: var(--ink); }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; letter-spacing: -.01em; }
.a-time, .date-display .wd, .gantt-scale .tick, .time-cell, .flight-slot input,
.flight-slot .fs-time, .att-range input, input[type=time] {
  font-family: var(--font-display); font-variant-numeric: tabular-nums;
}
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
::-webkit-scrollbar { height: 7px; width: 7px; }
::-webkit-scrollbar-thumb { background: rgba(30, 40, 70, .16); border-radius: 8px; }
:root[data-theme="dark"] ::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, .16); }
@keyframes negFade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes negRise { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- כפתורים ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  border: 1px solid var(--line); background: var(--surface); color: var(--ink);
  border-radius: var(--radius-s); padding: 9px 15px; font-size: 14px; font-weight: 600;
  transition: filter .15s, transform .05s;
  min-height: 40px; white-space: nowrap;
}
.btn:hover { filter: brightness(.985); }
:root[data-theme="dark"] .btn:hover { filter: brightness(1.12); }
.btn:active { transform: scale(.98); }
.btn.primary {
  background: var(--brand); border-color: var(--brand); color: var(--brand-ink); font-weight: 700;
  box-shadow: 0 6px 14px -10px rgba(63, 90, 134, .9);
}
.btn.ghost { background: transparent; border-color: transparent; color: var(--ink-2); }
.btn.danger { background: var(--danger-soft); border-color: var(--danger-line); color: var(--danger); }
.btn.sm { padding: 7px 13px; min-height: 32px; font-size: 13px; border-radius: 9px; }
.btn.block { width: 100%; }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  border: none; background: transparent; font-size: 18px; line-height: 1;
  padding: 7px; border-radius: 9px; color: var(--ink-2); min-width: 34px; min-height: 34px;
}
.icon-btn:hover { background: var(--fill); }
.icon-btn.glass {
  width: 40px; height: 40px; border-radius: var(--radius-s);
  background: var(--surface); border: 1px solid var(--line);
}

/* ---------- שדות ----------
 * גובה אחיד 44px וביטול מראה מובנה (appearance) לשדות תאריך/שעה/מספר —
 * לכל דפדפן נייד גודל פנימי משלו לשדות האלה, וזה מה שגרם לחפיפות בין שדות. */
.field { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.field label { font-size: 12.5px; font-weight: 600; color: var(--ink-2); }
.field input, .field select, .field textarea {
  border: 1px solid var(--input-bd); border-radius: 10px;
  padding: 0 13px; background: var(--surface); color: var(--ink);
  height: 44px; width: 100%; min-width: 0; max-width: 100%;
}
.field textarea { height: auto; min-height: 44px; padding: 10px 13px; }
input[type="date"], input[type="time"], input[type="number"], input[type="search"] {
  -webkit-appearance: none; appearance: none;
}
input[type="time"]::-webkit-calendar-picker-indicator,
input[type="date"]::-webkit-calendar-picker-indicator { opacity: .55; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: 2px solid var(--brand); outline-offset: -1px; border-color: var(--brand);
}
/* יישור תחתיות השדות גם כשתווית נשברת לשתי שורות */
.form-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: flex-end; }
.form-row .field { flex: 1 1 130px; }
.form-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.hint { font-size: 12.5px; color: var(--ink-2); }
.check { display: inline-flex; align-items: center; gap: 7px; font-size: 14px; cursor: pointer; }
.check input { width: 17px; height: 17px; accent-color: var(--brand); }

/* ---------- שער כניסה ---------- */
.login-gate {
  position: fixed; inset: 0; z-index: 120; display: flex; align-items: center; justify-content: center;
  background: rgba(28, 32, 48, .34); padding: 22px;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.login-box {
  background: var(--glass-bg); border: 1px solid var(--glass-bd);
  backdrop-filter: blur(14px) saturate(120%); -webkit-backdrop-filter: blur(14px) saturate(120%);
  border-radius: var(--radius); box-shadow: var(--glass-shadow);
  padding: 34px 28px; width: 100%; max-width: 360px; text-align: center;
  display: flex; flex-direction: column; gap: 14px; align-items: center;
  animation: negRise .35s ease;
}
.login-logo {
  width: 108px; height: 108px; object-fit: contain;
  filter: drop-shadow(0 4px 14px rgba(0,0,0,.28));
}
.login-logo .ic-svg { width: 30px; height: 30px; }
.login-box h1 { font-size: 20px; }
.login-box input {
  width: 100%; text-align: center; letter-spacing: .14em; font-size: 16px;
  border: 1px solid var(--input-bd); border-radius: 10px; padding: 10px 13px; background: var(--surface);
}
.login-err { color: var(--danger); font-size: 13.5px; font-weight: 600; }

/* ---------- Topbar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 40;
  background: var(--bar-bg);
  backdrop-filter: blur(16px) saturate(130%); -webkit-backdrop-filter: blur(16px) saturate(130%);
  border-bottom: 1px solid var(--line);
  padding: 11px 16px;
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
}
.brand { display: flex; align-items: center; gap: 11px; min-width: 0; flex: 1; }
.brand .logo {
  width: 42px; height: 42px; object-fit: contain; flex-shrink: 0;
  filter: drop-shadow(0 1px 3px rgba(0,0,0,.25));
}
.brand .logo .ic-svg { width: 22px; height: 22px; }
.brand > div { min-width: 0; }
.brand h1 { font-size: 16px; line-height: 1.15; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brand .sub { font-size: 11.5px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.date-nav { display: flex; align-items: center; gap: 7px; }
.date-display {
  text-align: center; padding: 2px 8px; min-width: 106px;
  display: flex; flex-direction: column;
}
.date-display .wd { font-weight: 700; font-size: 13.5px; }
.date-display input[type=date] {
  border: none; background: transparent; font-size: 11.5px; color: var(--ink-3);
  text-align: center; padding: 0; font-family: var(--font-display); font-variant-numeric: tabular-nums;
}
.sync-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ink-3); flex-shrink: 0; cursor: pointer; }
.sync-dot.ok { background: #4f9a76; }
.sync-dot.error { background: var(--now); }
.sync-dot.syncing { background: #b07d3f; animation: pulse 1s infinite; }
@keyframes pulse { 50% { opacity: .35; } }

/* ---------- מבנה עמוד ---------- */
main { max-width: 1180px; margin: 0 auto; padding: 14px 14px 30px; }
.panel { display: none; }
.panel.active { display: block; animation: negFade .25s ease; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 4px 0 12px; }
.panel-head h2 { font-size: 19px; }
.card {
  background: var(--glass-bg); border: 1px solid var(--glass-bd);
  backdrop-filter: blur(14px) saturate(120%); -webkit-backdrop-filter: blur(14px) saturate(120%);
  border-radius: var(--radius); box-shadow: var(--glass-shadow);
  padding: 16px; margin-bottom: 14px;
}
.card h3 { font-size: 15.5px; margin-bottom: 8px; }
.card.danger-zone { border-right: 3px solid var(--now); }
.card.danger-zone h3 { color: var(--danger); }

/* ---------- ניווט ---------- */
.bottom-nav {
  position: fixed; bottom: 0; right: 0; left: 0; z-index: 50;
  background: var(--bar-bg);
  backdrop-filter: blur(16px) saturate(130%); -webkit-backdrop-filter: blur(16px) saturate(130%);
  border-top: 1px solid var(--line);
  display: flex; gap: 6px;
  padding: 8px 14px calc(8px + env(safe-area-inset-bottom, 0px));
}
.nav-btn {
  flex: 1; border: none; background: none; color: var(--ink-3);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  padding: 5px; border-radius: var(--radius-s);
  font-size: 11px; font-weight: 600;
}
.nav-btn .ic .ic-svg { width: 20px; height: 20px; }
.nav-btn.active { color: var(--brand); }

/* ---------- פס סטטוס יום ---------- */
.day-strip { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 14px; }
.tag {
  display: inline-flex; align-items: center; gap: 5px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 999px;
  padding: 6px 13px; font-size: 12.5px; font-weight: 600; color: var(--ink-2);
}
.tag.brand { background: var(--brand-soft); border-color: var(--brand-line); color: var(--brand-deep); font-weight: 700; }
:root[data-theme="dark"] .tag.brand { color: #9db8e6; }
.tag.ok { background: var(--ok-soft); border-color: var(--ok-line); color: var(--ok); font-weight: 700; }
.tag.warn { background: var(--warn-soft); border-color: var(--warn-line); color: var(--warn); font-weight: 700; }
.tag.danger { background: var(--danger-soft); border-color: var(--danger-line); color: var(--danger); font-weight: 700; }

/* ---------- סרגל פעולות הלו״ז ---------- */
.sched-toolbar { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 14px; }
.sched-toolbar .spacer { flex: 1; }
.view-toggle {
  display: inline-flex; padding: 3px; gap: 2px;
  background: var(--fill); border: 1px solid var(--line); border-radius: var(--radius-s);
}
.view-toggle button {
  border: none; background: transparent; padding: 8px 15px; border-radius: 8px;
  font-size: 13.5px; font-weight: 600; color: var(--ink-2);
}
.view-toggle button.active {
  background: var(--surface); color: var(--brand-deep); font-weight: 700;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .15);
}
:root[data-theme="dark"] .view-toggle button.active { background: rgba(255, 255, 255, .1); color: #cfe0ff; }
.more-menu {
  position: absolute; z-index: 45; margin-top: 8px; left: 0; min-width: 250px; padding: 6px;
  background: var(--glass-bg); border: 1px solid var(--glass-bd);
  backdrop-filter: blur(14px) saturate(120%); -webkit-backdrop-filter: blur(14px) saturate(120%);
  border-radius: var(--radius); box-shadow: var(--glass-shadow);
}
.more-menu button {
  display: flex; align-items: center; gap: 11px;
  width: 100%; text-align: right; border: none; background: none; color: var(--ink);
  padding: 10px 13px; border-radius: 10px; font-size: 14px; font-weight: 500;
}
.more-menu button:hover { background: var(--fill); }
.more-menu button.danger-item { color: var(--danger); }
.more-wrap { position: relative; }

/* ---------- התראות ---------- */
.warnings { margin-bottom: 14px; }
.warnings .card { border-right: 3px solid #c99a3f; padding: 13px 15px; margin-bottom: 8px; }
.standby-tag {
  display: inline-block; font-size: 10px; font-weight: 700; margin-inline-start: 5px;
  padding: 1px 6px; border-radius: 6px; background: var(--warn-soft, #f4e6c8);
  color: var(--warn, #a06d1a); border: 1px solid var(--warn-line, #e3c98a); vertical-align: middle;
}
/* תג "כונן" בתוך תא איוש בטבלת הקומה */
.kn-tag {
  display: inline-block; font-size: 9.5px; font-weight: 800; margin-inline-start: 4px;
  padding: 0 5px; border-radius: 5px; background: var(--warn-soft, #f4e6c8);
  color: var(--warn, #a06d1a); border: 1px solid var(--warn-line, #e3c98a); vertical-align: middle;
}
/* פס כוננים מתחת לטבלת האיושים */
.standby-bar {
  margin-top: 10px; padding: 9px 13px; border-radius: 11px; font-size: 13px;
  background: var(--warn-soft, #f7edd6); border: 1px solid var(--warn-line, #e3c98a);
  color: var(--ink); line-height: 1.6;
}
.standby-bar .hint { display: block; margin-top: 2px; }
.highlights { margin-bottom: 12px; }
.highlights-card { border-right: 3px solid var(--brand, #3f5a86); padding: 13px 15px; }
.highlights-card .warnings-head { color: var(--brand, #3f5a86); }
.highlights-card ul { font-size: 13.5px; color: var(--ink-1); }
.highlights-card li { margin: 2px 0; }
.warn-row { display: flex; align-items: baseline; gap: 8px; font-size: 13px; color: var(--ink-2); padding: 3px 0; }
.warn-row .w-ic { flex-shrink: 0; }
.warn-row.gap { color: var(--danger); }
.warnings-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 4px; font-weight: 700; font-size: 14px; }

/* ---------- אירועי יום (תדריך/תחקיר) ---------- */
.events-strip { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.events-strip .tag { border-radius: 10px; border-right: 3px solid var(--ev-c, var(--brand)); color: var(--ink); padding: 8px 13px; }

/* ---------- קו "עכשיו" ---------- */
.now-line {
  position: absolute; right: 0; left: 0; height: 0;
  border-top: 2px solid var(--now); z-index: 3; pointer-events: none;
}
.now-line::before {
  content: ''; position: absolute; right: -1px; top: -4px;
  width: 8px; height: 8px; border-radius: 50%; background: var(--now);
}
.now-line-v {
  position: absolute; top: 0; bottom: 0; width: 0;
  border-right: 2px solid var(--now); z-index: 3; pointer-events: none;
}
.now-line-v::before {
  content: ''; position: absolute; top: -1px; right: -4px;
  width: 7px; height: 7px; border-radius: 50%; background: var(--now);
}

/* ---------- תצוגת לוח קומה ---------- */
.floor-grid-wrap {
  overflow-x: auto; -webkit-overflow-scrolling: touch; position: relative;
  background: var(--glass-bg); border: 1px solid var(--glass-bd);
  backdrop-filter: blur(14px) saturate(120%); -webkit-backdrop-filter: blur(14px) saturate(120%);
  border-radius: var(--radius); box-shadow: var(--glass-shadow);
}
.floor-grid { border-collapse: collapse; width: 100%; min-width: 620px; font-size: 13.5px; }
.floor-grid th, .floor-grid td { border: 1px solid var(--line); padding: 7px 6px; text-align: center; }
.floor-grid thead th {
  background: var(--brand-deep); color: #fff; font-size: 12.5px; font-weight: 600;
  padding: 11px 9px; position: sticky; top: 0; white-space: nowrap; border-color: rgba(255, 255, 255, .08);
}
.floor-grid thead th:first-child { border-top-right-radius: var(--radius); }
.floor-grid thead th:last-child { border-top-left-radius: var(--radius); }
.pos-dot { width: 7px; height: 7px; border-radius: 50%; display: inline-block; margin-left: 6px; vertical-align: 1px; }
.floor-grid .time-cell {
  background: var(--fill); font-weight: 700; white-space: nowrap; font-size: 12px; width: 96px;
}
.floor-grid .tier-chip { display: block; font-size: 10.5px; font-weight: 600; color: var(--ink-3); margin-top: 2px; }
.fg-cell { cursor: pointer; min-width: 96px; transition: background .12s; position: relative; }
.fg-cell:hover { background: var(--brand-soft); }
.fg-cell .who {
  display: inline-block; padding: 4px 9px; border-radius: 8px; font-size: 12.5px; font-weight: 700;
  background: color-mix(in srgb, var(--chip-c, var(--brand)) 12%, transparent);
  color: color-mix(in srgb, var(--chip-c, var(--brand)) 72%, var(--ink));
}
.fg-cell .who + .who { margin-top: 3px; }
.fg-cell .who .t { display: block; font-size: 10.5px; opacity: .75; font-weight: 500; }
.fg-cell .part { display: block; font-size: 10.5px; color: var(--ink-3); }
.fg-cell.missing { background: rgba(192, 90, 108, .08); color: var(--danger); font-weight: 700; }
.fg-cell.idle { background: var(--fill-2); color: var(--ink-3); cursor: default; }
.fg-cell.manual::after { content: '✎'; position: absolute; top: 2px; left: 5px; font-size: 10px; color: var(--ink-3); }

/* ---------- ציר זמן אנשים (גאנט) ---------- */
.gantt-wrap {
  overflow-x: auto; -webkit-overflow-scrolling: touch;
  background: var(--glass-bg); border: 1px solid var(--glass-bd);
  backdrop-filter: blur(14px) saturate(120%); -webkit-backdrop-filter: blur(14px) saturate(120%);
  border-radius: var(--radius); box-shadow: var(--glass-shadow);
}
.gantt { min-width: 820px; position: relative; }
.gantt-header { display: flex; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: var(--glass-bg); z-index: 2; }
.gantt-names { width: 104px; flex-shrink: 0; border-left: 1px solid var(--line); }
.gantt-scale { flex: 1; position: relative; height: 30px; }
.gantt-scale .tick { position: absolute; top: 0; bottom: 0; border-right: 1px solid var(--line); font-size: 10.5px; color: var(--ink-3); padding: 7px 4px 0; }
.gantt-row { display: flex; border-bottom: 1px solid var(--line); min-height: 44px; }
.gantt-row:last-child { border-bottom: none; }
.gantt-row .g-name {
  width: 104px; flex-shrink: 0; border-left: 1px solid var(--line);
  display: flex; flex-direction: column; justify-content: center; padding: 4px 10px;
  font-size: 13px; font-weight: 700; background: var(--fill-2);
}
.gantt-row .g-name .g-sub { font-size: 10px; color: var(--ink-3); font-weight: 500; }
.gantt-row .g-lane { flex: 1; position: relative; min-height: 44px; }
.g-bar {
  position: absolute; top: 7px; bottom: 7px; border-radius: 7px; color: #fff;
  font-size: 11px; font-weight: 600; display: flex; align-items: center; justify-content: center;
  padding: 0 5px; overflow: hidden; white-space: nowrap; cursor: pointer;
}
.g-bar.hollow {
  background: repeating-linear-gradient(45deg, var(--stripe-a), var(--stripe-a) 6px, var(--stripe-b) 6px, var(--stripe-b) 12px) !important;
  color: var(--ink-2);
}
.g-bar.absent {
  background: repeating-linear-gradient(45deg, rgba(192, 90, 108, .14), rgba(192, 90, 108, .14) 6px, rgba(192, 90, 108, .07) 6px, rgba(192, 90, 108, .07) 12px) !important;
  color: var(--danger);
}
.g-grid-line { position: absolute; top: 0; bottom: 0; border-right: 1px dashed var(--line); }
.g-free {
  position: absolute; top: 7px; bottom: 7px; border-radius: 7px;
  border: 1px dashed var(--input-bd); color: var(--ink-3);
  display: flex; align-items: center; justify-content: center; gap: 4px;
  font-size: 10.5px; font-weight: 600; cursor: pointer; overflow: hidden; white-space: nowrap;
  background: transparent;
}
.g-free:hover { border-color: var(--brand); border-style: solid; color: var(--brand); background: var(--brand-soft); }
.g-free .ic-svg { width: 12px; height: 12px; }

/* ---------- רשימת אירועים ---------- */
.act-list { display: flex; flex-direction: column; gap: 9px; }
.act-item {
  background: var(--glass-bg); border: 1px solid var(--glass-bd);
  backdrop-filter: blur(14px) saturate(120%); -webkit-backdrop-filter: blur(14px) saturate(120%);
  border-radius: var(--radius); box-shadow: var(--glass-shadow);
  padding: 12px 14px; display: flex; align-items: center; gap: 12px; cursor: pointer;
  border-right: 3px solid var(--ink-3);
}
.act-item:hover { filter: brightness(.985); }
:root[data-theme="dark"] .act-item:hover { filter: brightness(1.12); }
.act-item .a-time { font-weight: 800; font-size: 14px; white-space: nowrap; min-width: 84px; }
.act-item .a-main { flex: 1; min-width: 0; }
.act-item .a-title { font-weight: 700; font-size: 14.5px; }
.act-item .a-sub { font-size: 12.5px; color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; }
.act-item .a-badges { display: flex; gap: 4px; flex-shrink: 0; flex-wrap: wrap; justify-content: flex-end; }
.mini-tag {
  font-size: 10.5px; font-weight: 700; border-radius: 6px; padding: 2px 7px;
  background: var(--fill); color: var(--ink-2); border: 1px solid var(--line);
}

/* ---------- לילה ---------- */
.night-card {
  background: var(--night); color: #dfe4ef; border: 1px solid rgba(255, 255, 255, .06);
  box-shadow: 0 10px 26px -18px rgba(0, 0, 0, .5); border-radius: var(--radius); padding: 18px;
  backdrop-filter: none; -webkit-backdrop-filter: none;
}
.night-card h3 { color: #fff; font-size: 16px; }
.night-card .hint { color: #a7afc4; }
.night-slots { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 10px; }
.night-slot {
  flex: 1 1 150px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 12px; padding: 12px 14px; cursor: pointer;
}
.night-slot:hover { background: rgba(255, 255, 255, .1); }
.night-slot .ns-pos { font-size: 12px; color: #a7afc4; font-weight: 600; }
.night-slot .ns-who { font-size: 15px; font-weight: 700; color: #fff; }
.night-slot .ns-who.empty { color: #e6a9b3; }

/* ---------- צ׳יפים של אנשים ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 7px; }
.chip {
  display: inline-flex; align-items: center; gap: 7px;
  border: 1px solid var(--line); background: var(--surface); color: var(--ink); border-radius: 999px;
  padding: 8px 13px; font-size: 13.5px; font-weight: 600; cursor: pointer; user-select: none;
  transition: transform .05s;
}
.chip:active { transform: scale(.97); }
.chip.on { background: var(--brand); border-color: var(--brand); color: #fff; }
.chip.busy { border-style: dashed; opacity: .8; }
.chip.disabled { opacity: .38; cursor: not-allowed; }
.chip .lv { font-size: 9.5px; font-weight: 700; border-radius: 5px; padding: 1px 5px; }
.lv.instructor { background: var(--ok-soft); color: var(--ok); }
.lv.qualified { background: var(--brand-soft); color: var(--brand-deep); }
:root[data-theme="dark"] .lv.qualified { color: #9db8e6; }
.lv.trainee { background: var(--warn-soft); color: var(--warn); }
.lv.none { background: var(--danger-soft); color: var(--danger); }
.chip.on .lv { background: rgba(255, 255, 255, .24); color: #fff; }

/* ---------- רשימת פקחים ---------- */
.controller-list { display: grid; gap: 10px; grid-template-columns: 1fr; }
.controller-item {
  background: var(--glass-bg); border: 1px solid var(--glass-bd);
  backdrop-filter: blur(14px) saturate(120%); -webkit-backdrop-filter: blur(14px) saturate(120%);
  border-radius: var(--radius); box-shadow: var(--glass-shadow);
  padding: 13px 15px; display: flex; align-items: center; gap: 12px; cursor: pointer;
}
.controller-item:hover { border-color: var(--brand-line); }
.avatar {
  width: 42px; height: 42px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 15px; flex-shrink: 0;
  background: var(--brand-soft); color: var(--brand-deep);
}
/* גוני אווטאר מתחלפים */
.controller-item:nth-child(6n+2) .avatar { background: rgba(61, 128, 136, .13); color: #356a71; }
.controller-item:nth-child(6n+3) .avatar { background: rgba(168, 95, 125, .13); color: #8f4e69; }
.controller-item:nth-child(6n+4) .avatar { background: rgba(106, 95, 158, .13); color: #584f86; }
.controller-item:nth-child(6n+5) .avatar { background: rgba(176, 125, 63, .14); color: #946633; }
.controller-item:nth-child(6n) .avatar { background: rgba(79, 154, 118, .13); color: #3f855f; }
:root[data-theme="dark"] .avatar { color: #9db8e6; }
:root[data-theme="dark"] .controller-item:nth-child(6n+2) .avatar { background: rgba(90, 175, 185, .22); color: #7fcdd6; }
:root[data-theme="dark"] .controller-item:nth-child(6n+3) .avatar { background: rgba(200, 120, 158, .22); color: #e6a3c2; }
:root[data-theme="dark"] .controller-item:nth-child(6n+4) .avatar { background: rgba(140, 128, 200, .24); color: #b3a8e6; }
:root[data-theme="dark"] .controller-item:nth-child(6n+5) .avatar { background: rgba(200, 150, 80, .24); color: #e6bd7e; }
:root[data-theme="dark"] .controller-item:nth-child(6n) .avatar { background: rgba(90, 175, 130, .22); color: #7fc9a0; }
.controller-item .ci-main { flex: 1; min-width: 0; }
.controller-item .ci-name { font-weight: 700; font-size: 15px; display: flex; align-items: center; gap: 7px; }
.controller-item .ci-certs { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 5px; }
.pos-badge { font-size: 10.5px; font-weight: 700; border-radius: 6px; padding: 2px 7px; color: #fff; }
.pos-badge.tr { outline: 2px dashed rgba(0, 0, 0, .25); outline-offset: -2px; }
.search-bar { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.search-bar input {
  flex: 1; border: 1px solid var(--line); background: var(--surface); color: var(--ink);
  border-radius: 999px; padding: 10px 16px; min-height: 40px;
}
.count-pill { background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 8px 15px; font-size: 14px; font-weight: 700; color: var(--ink-2); }

/* ---------- טבלת הסמכות בטופס פקח ---------- */
.cert-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 9px; }
.cert-cell { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; background: var(--surface); }
.cert-cell .cc-pos { font-size: 12.5px; font-weight: 700; margin-bottom: 6px; }
.cert-cell select { width: 100%; border: 1px solid var(--input-bd); border-radius: 8px; padding: 6px; background: var(--surface); color: var(--ink); }

/* ---------- טיסות ---------- */
.flights-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(116px, 1fr)); gap: 9px; }
.flight-slot {
  border: 1px solid var(--line); border-radius: 12px; padding: 11px 8px; text-align: center;
  background: var(--surface);
}
.flight-slot .fs-time { font-size: 12px; font-weight: 700; color: var(--ink-3); }
.flight-slot input { width: 100%; text-align: center; border: none; font-size: 21px; font-weight: 800; padding: 2px 0; background: transparent; color: var(--ink); }
.flight-slot .fs-tier { font-size: 10.5px; font-weight: 700; border-radius: 7px; padding: 2px 9px; display: inline-block; }
.flight-slot.t-light { border-color: var(--ok-line); }
.flight-slot.t-heavy { border-color: var(--brand-line); }
.flight-slot.t-circuit { border-color: var(--warn-line); }
.flight-slot.t-light .fs-tier { background: var(--ok-soft); color: var(--ok); }
.flight-slot.t-heavy .fs-tier { background: var(--brand-soft); color: var(--brand-deep); }
:root[data-theme="dark"] .flight-slot.t-heavy .fs-tier { color: #9db8e6; }
.flight-slot.t-circuit .fs-tier { background: var(--warn-soft); color: var(--warn); }
.flight-slot.t-gradeC { border-color: #b07d3f; }
.flight-slot.t-gradeC .fs-tier { background: #b07d3f22; color: #8a5f28; }
:root[data-theme="dark"] .flight-slot.t-gradeC .fs-tier { color: #d0a15e; }
/* דרגות פיריט (נבטים) */
.flight-slot.t-pirit { border-color: var(--brand-line); }
.flight-slot.t-pirit .fs-tier { background: var(--brand-soft); color: var(--brand-deep); }
:root[data-theme="dark"] .flight-slot.t-pirit .fs-tier { color: #9db8e6; }
.flight-slot.t-piritHigh { border-color: var(--warn-line); }
.flight-slot.t-piritHigh .fs-tier { background: var(--warn-soft); color: var(--warn); }
.flight-slot .fs-cfg {
  display: block; width: 100%; margin-top: 7px; border: 1px dashed var(--line);
  background: transparent; border-radius: 8px; padding: 3px 5px; cursor: pointer;
  font-size: 10.5px; font-weight: 600; color: var(--ink-3); line-height: 1.5;
  display: flex; flex-wrap: wrap; gap: 3px; justify-content: center; align-items: center; min-height: 24px;
}
.flight-slot .fs-cfg:hover { border-color: var(--brand-line); color: var(--brand-deep); }
.fs-badge {
  background: var(--brand-soft); color: var(--brand-deep); border-radius: 5px;
  padding: 1px 5px; font-size: 10px; font-weight: 700; white-space: nowrap;
}
:root[data-theme="dark"] .fs-badge { color: #9db8e6; }
.warn-row.standby { color: #8a5f28; }
.flights-tools { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }

/* ---------- אשף ---------- */
.wizard-overlay {
  position: fixed; inset: 0; z-index: 60; background: rgba(28, 32, 48, .32);
  backdrop-filter: blur(5px); -webkit-backdrop-filter: blur(5px);
  display: flex; align-items: flex-end; justify-content: center;
}
.wizard-box {
  background: var(--surface-2); color: var(--ink); width: 100%; max-width: 820px; max-height: 94dvh;
  border: 1px solid var(--glass-bd);
  border-radius: 18px 18px 0 0; display: flex; flex-direction: column; box-shadow: var(--shadow-lg);
  animation: negRise .3s ease;
}
.wizard-head { padding: 16px 20px 0; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.wiz-steps { display: flex; gap: 6px; flex: 1; margin-left: 10px; }
.wiz-step-dot { height: 5px; flex: 1; border-radius: 3px; background: var(--fill); }
.wiz-step-dot.done { background: #4f9a76; }
.wiz-step-dot.now { background: var(--brand); }
.wizard-title { padding: 14px 22px 4px; }
.wizard-title h3 { font-size: 19px; }
.wizard-title .hint { margin-top: 2px; }
.wizard-body { padding: 12px 22px 18px; overflow-y: auto; overscroll-behavior: contain; flex: 1; }
.wizard-foot {
  display: flex; gap: 8px; padding: 14px 20px calc(14px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--line); background: var(--fill-2);
}
.wizard-foot .spacer { flex: 1; }
.wiz-banner {
  background: var(--glass-bg); border: 1px solid var(--glass-bd);
  backdrop-filter: blur(14px) saturate(120%); -webkit-backdrop-filter: blur(14px) saturate(120%);
  border-right: 3px solid var(--brand);
  border-radius: var(--radius); padding: 15px 17px; margin-bottom: 14px;
  display: flex; align-items: center; gap: 13px; cursor: pointer; box-shadow: var(--glass-shadow);
  color: var(--ink);
}
.wiz-banner .wb-main { flex: 1; min-width: 0; }
.wiz-banner .wb-title { font-weight: 700; font-size: 15px; }
.wiz-banner .wb-sub { font-size: 12.5px; color: var(--ink-2); }
.wiz-banner .wb-btn { color: var(--brand); font-weight: 700; font-size: 13.5px; white-space: nowrap; }

/* ---------- נוכחות (באשף) ---------- */
.att-row-wrap { margin-bottom: 8px; }
.att-row {
  display: flex; align-items: center; gap: 11px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 10px 13px;
}
.att-row .att-name { font-weight: 700; flex: 1; font-size: 14.5px; }
.att-opts { display: inline-flex; background: var(--fill); border-radius: 999px; padding: 3px; gap: 2px; }
.att-opts button { border: none; background: none; padding: 7px 13px; border-radius: 999px; font-size: 12.5px; font-weight: 600; color: var(--ink-2); }
.att-opts button.on-present { background: #4f9a76; color: #fff; font-weight: 700; }
.att-opts button.on-absent { background: #c05a6c; color: #fff; font-weight: 700; }
.att-opts button.on-partial { background: #b07d3f; color: #fff; font-weight: 700; }
.att-range { display: flex; align-items: center; gap: 6px; margin-top: 7px; padding: 0 4px; }
.att-range input { border: 1px solid var(--input-bd); background: var(--surface); color: var(--ink); border-radius: 8px; padding: 5px 7px; }

/* ---------- מודאל ---------- */
.modal-backdrop {
  position: fixed; inset: 0; z-index: 70; background: rgba(28, 32, 48, .32);
  backdrop-filter: blur(5px); -webkit-backdrop-filter: blur(5px);
  display: flex; align-items: flex-end; justify-content: center;
}
.modal {
  background: var(--surface-2); color: var(--ink); width: 100%; max-width: 620px; max-height: 94dvh;
  border: 1px solid var(--glass-bd);
  border-radius: 18px 18px 0 0; display: flex; flex-direction: column; box-shadow: var(--shadow-lg);
  animation: negRise .3s ease;
}
.modal-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px 8px; }
.modal-head h3 { font-size: 17.5px; }
.modal-body { padding: 6px 20px calc(22px + env(safe-area-inset-bottom, 0px)); overflow-y: auto; overscroll-behavior: contain; }
.seg-actions { display: flex; gap: 8px; margin-top: 18px; flex-wrap: wrap; }
.seg-actions .spacer { flex: 1; }

/* ---------- בחירת סוג אירוע ---------- */
.type-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(94px, 1fr)); gap: 8px; }
.type-cell {
  border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--ink-2);
  padding: 13px 6px; text-align: center; font-size: 13px; font-weight: 600; cursor: pointer;
}
.type-cell .t-ic { display: block; font-size: 20px; margin-bottom: 4px; }
.type-cell.on { border-color: var(--brand-line); background: var(--brand-soft); color: var(--brand-deep); font-weight: 700; }
:root[data-theme="dark"] .type-cell.on { color: #9db8e6; }

/* ---------- פילים ---------- */
.pills { display: flex; gap: 7px; flex-wrap: wrap; }
.pill {
  border: 1px solid var(--line); background: var(--surface); border-radius: 10px;
  padding: 8px 15px; font-size: 13.5px; font-weight: 600; cursor: pointer; color: var(--ink-2);
}
.pill.on { border-color: var(--brand); background: var(--brand); color: #fff; font-weight: 700; }

/* ---------- הודעת טוסט ---------- */
.toast {
  position: fixed; bottom: calc(var(--nav-h) + 18px); right: 50%; transform: translateX(50%);
  background: var(--night); color: #fff; border-radius: 999px; padding: 11px 20px;
  font-size: 14px; font-weight: 600; z-index: 90; box-shadow: var(--shadow-lg);
  animation: toast-in .2s ease;
  max-width: min(92vw, 480px); text-align: center;
}
@keyframes toast-in { from { opacity: 0; transform: translateX(50%) translateY(8px); } }

/* ---------- הוגנות ---------- */
.fair-row { display: flex; align-items: center; gap: 11px; padding: 5px 0; font-size: 13.5px; }
.fair-row .f-name { width: 78px; font-weight: 700; flex-shrink: 0; }
.fair-bar-wrap { flex: 1; background: var(--fill); border-radius: 7px; height: 14px; overflow: hidden; }
.fair-bar { height: 100%; background: var(--brand); border-radius: 7px; }
.fair-row .f-val { width: 88px; font-size: 11.5px; color: var(--ink-3); text-align: left; flex-shrink: 0; }

/* ---------- טעינה מהגיליון ---------- */
.imp-row {
  display: flex; gap: 11px; align-items: flex-start; padding: 10px 12px; margin-bottom: 9px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px;
}
.imp-row .imp-chk { width: 19px; height: 19px; margin-top: 8px; accent-color: var(--brand); flex-shrink: 0; }
.imp-row .imp-main { flex: 1; min-width: 0; }
.imp-row input[type=text] { border: 1px solid var(--input-bd); background: var(--surface); color: var(--ink); border-radius: 8px; padding: 7px 10px; font-size: 14px; width: 100%; }
.imp-meta { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; margin-top: 6px; }
.imp-meta select, .imp-meta input[type=time] { border: 1px solid var(--input-bd); background: var(--surface); color: var(--ink); border-radius: 7px; padding: 4px 6px; font-size: 12.5px; }
.imp-meta input[type=time] { width: 88px; }
.mini-tag.warn-tag { background: var(--warn-soft); color: var(--warn); border-color: var(--warn-line); }
.mini-tag.blue-tag { background: var(--brand-soft); color: var(--brand-deep); border-color: var(--brand-line); }
:root[data-theme="dark"] .mini-tag.blue-tag { color: #9db8e6; }
.mini-tag.ok-tag { background: var(--ok-soft); color: var(--ok); border-color: var(--ok-line); }

/* שורות ניהול (זוגות וכד׳) */
.et-row {
  display: flex; align-items: center; gap: 8px;
  border: 1px solid var(--line); border-radius: var(--radius-s);
  padding: 9px 13px; margin-bottom: 8px; background: var(--surface);
}
.et-row .et-main { flex: 1; min-width: 0; display: flex; align-items: center; gap: 7px; flex-wrap: wrap; font-size: 14px; }
.et-row .et-main .hint { width: 100%; }
.imp-num {
  width: 22px; height: 22px; border-radius: 50%; background: var(--night); color: #fff;
  font-size: 11.5px; font-weight: 800; display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; margin-top: 6px;
}
.imp-row.flash { background: var(--brand-soft); transition: background .3s; }
.imp-progress { margin-top: 10px; display: flex; align-items: center; gap: 10px; }

.modal.wide { max-width: 980px; }

/* ---------- נייד: יציבות ----------
 * כל שדה קלט/בחירה בגודל 16px ומעלה — מונע מ-iOS/Android לזום פנימה
 * במגע בשדה ("קפיצה" חזותית שאינה קשורה לגובה המקלדת עצמה). כלל אחד גורף
 * במקום רשימת מחלקות — כדי שלא יישכח שדה חדש שנוסף בעתיד. */
@media (max-width: 899px) {
  input, select, textarea { font-size: 16px; }
  .topbar { padding: 9px 10px; gap: 6px; }
  .brand { gap: 8px; }
  .brand .logo { width: 36px; height: 36px; }
  .brand h1 { font-size: 14.5px; }
  .date-nav { gap: 3px; }
  .date-display { min-width: 92px; padding: 2px 4px; }
  .icon-btn.glass { width: 34px; height: 34px; }
}
@media (max-width: 430px) {
  .brand .sub { display: none; }
}
/* מקלדת פתוחה (מיקוד בשדה): מסתירים חזותית את סרגל הניווט התחתון בלי
 * לשנות את גובה המסמך (visibility, לא display/padding) — כך שהמעבר לא
 * גורם ל"קפיצה" עצמאית של התוכן בנוסף להיפתחות המקלדת עצמה. */
@media (max-width: 899px) {
  body.kb-open .bottom-nav { visibility: hidden; }
  body.kb-open .toast { bottom: 18px; }
}

/* ---------- שולחן עבודה (≥900px) ---------- */
@media (min-width: 900px) {
  body { padding-bottom: 40px; font-size: 14.5px; }
  .bottom-nav {
    position: static; border-top: none; background: transparent;
    backdrop-filter: none; -webkit-backdrop-filter: none;
    max-width: 1180px; margin: 0 auto;
    padding: 14px 14px 0; gap: 8px; justify-content: flex-start;
  }
  .nav-btn {
    flex: 0 0 auto; flex-direction: row; gap: 8px; font-size: 14px;
    background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 9px 19px;
    color: var(--ink-2);
  }
  .nav-btn.active { background: var(--brand); color: #fff; border-color: var(--brand); }
  .controller-list { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }
  .wizard-overlay, .modal-backdrop { align-items: center; padding: 24px; }
  .wizard-box, .modal { border-radius: 18px; max-height: 88dvh; }
  .toast { bottom: 26px; }
}

/* ---------- הדפסה ---------- */
@media print {
  body { background: #fff; padding: 0; font-size: 12px; }
  .topbar, .bottom-nav, .sched-toolbar, .more-menu, .wiz-banner, .toast,
  .login-gate, .warnings, .night-slot .ns-x, .no-print { display: none !important; }
  main { max-width: none; padding: 0; }
  .card, .floor-grid-wrap, .gantt-wrap, .act-item, .controller-item {
    box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; background: #fff;
    break-inside: avoid;
  }
  .gantt-wrap, .floor-grid-wrap { overflow: visible; }
  .print-title { display: block !important; font-size: 16px; font-weight: 800; margin-bottom: 8px; }
}
.print-title { display: none; }

/* ============================================================
   ייצוא תדריך (PDF / 3 תמונות) — עמודי A4 מעוצבים
   ============================================================ */
#exportDoc { position: absolute; top: 0; right: -12000px; width: 794px; z-index: -1; }
.exp-page {
  width: 794px; min-height: 1123px; box-sizing: border-box;
  background: #fff; color: #1c2333; direction: rtl;
  font-family: 'Heebo', 'Segoe UI', sans-serif; font-size: 13px;
  padding: 30px 34px 64px; position: relative; margin: 0 0 14px;
  display: flex; flex-direction: column;
}
.exp-head {
  display: flex; align-items: center; justify-content: space-between;
  background: linear-gradient(135deg, #3f5a86, #2b3f61); color: #fff;
  border-radius: 14px; padding: 14px 18px; margin-bottom: 14px;
}
.exp-brand { display: flex; align-items: center; gap: 12px; }
.exp-logo {
  width: 44px; height: 44px; border-radius: 12px; background: rgba(255,255,255,.14);
  display: flex; align-items: center; justify-content: center; font-size: 22px; flex-shrink: 0;
}
.exp-title { font-size: 18px; font-weight: 800; letter-spacing: -.2px; }
.exp-sub { font-size: 12px; opacity: .85; margin-top: 2px; }
.exp-pagenum { font-size: 12px; font-weight: 700; opacity: .8; white-space: nowrap; }
.exp-sec {
  font-size: 13.5px; font-weight: 800; color: #2b3f61;
  margin: 14px 0 6px; padding-right: 10px; border-right: 4px solid #3f5a86;
}
.exp-table { width: 100%; border-collapse: collapse; margin-top: 4px; }
.exp-table th {
  background: #eef2f8; color: #46536b; font-size: 11px; font-weight: 700;
  padding: 7px 8px; text-align: right; border: 1px solid #dbe2ee; white-space: nowrap;
}
.exp-table td {
  border: 1px solid #e3e8f0; padding: 6px 8px; vertical-align: top; font-size: 12px;
}
.exp-table tbody tr:nth-child(even) td { background: #f8fafd; }
.exp-time { font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; color: #2b3f61; }
.exp-tier { display: block; font-size: 10px; font-weight: 700; color: #7c8494; margin-top: 2px; }
.exp-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-left: 5px; vertical-align: baseline; }
.exp-evdot { display: inline-block; width: 8px; height: 8px; border-radius: 3px; margin-left: 6px; }
.exp-who { font-weight: 700; padding-right: 8px; border-right: 3px solid var(--pc, #3f5a86); margin: 2px 0; }
.exp-part { display: block; font-size: 10.5px; font-weight: 500; color: #66708a; }
.exp-missing { color: #b3402e; font-weight: 800; font-size: 11.5px; }
.exp-idle { color: #a9b0c0; }
.exp-empty {
  border: 1.5px dashed #dbe2ee; border-radius: 12px; padding: 26px;
  text-align: center; color: #7c8494; margin-top: 10px;
}
.exp-row2 { display: flex; gap: 12px; margin-top: 12px; align-items: stretch; }
.exp-box {
  border: 1px solid #e3e8f0; border-radius: 12px; padding: 10px 14px; background: #fbfcfe;
}
.exp-row2 .exp-box { flex: 1; }
.exp-box-title { font-weight: 800; font-size: 12.5px; color: #2b3f61; margin-bottom: 6px; }
.exp-box ul { margin: 4px 0 0; padding-right: 18px; line-height: 1.7; }
.exp-mini { font-size: 12px; margin: 3px 0; }
.exp-hl { background: #fff8ea; border-color: #ecd9ad; margin-bottom: 12px; }
.exp-hl .exp-box-title { color: #8a5f28; }
.exp-foot {
  position: absolute; bottom: 22px; right: 34px; left: 34px;
  display: flex; justify-content: space-between; font-size: 10.5px; color: #a9b0c0;
  border-top: 1px solid #edf0f6; padding-top: 8px;
}
@media print {
  body.exporting main, body.exporting .print-title, body.exporting .highlights,
  body.exporting .warnings, body.exporting .events-strip { display: none !important; }
  body.exporting #exportDoc { position: static; right: 0; width: auto; z-index: auto; }
  body.exporting .exp-page {
    width: auto; min-height: auto; margin: 0; padding: 8mm 8mm 60px;
    page-break-after: always; break-after: page;
  }
  body.exporting .exp-page:last-child { page-break-after: auto; break-after: auto; }
  .exp-head { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .exp-page * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
