/* מרכז עדכונים · מכון לייבעדיק */
/* Layout: sticky navy header, centered 1180px page, tile grid grouped by category */
:root {
  --bg: #f6f4ef; --surface: #ffffff; --surface-2: #faf8f4; --ink: #1f2a44; --ink-soft: #5b6478;
  --line: #e6e1d6; --brand: #1f2a44; --brand-hover: #2b3a5c; --on-brand: #ffffff;
  --accent: #c8963e; --accent-soft: #f4ead8; --accent-ink: #7a5617;
  --danger: #b0473a; --danger-soft: #fbeeec; --green-soft: #e6f1ee; --green-ink: #2c5e50;
  --pill: #eef1f6; --backdrop: rgba(31,42,68,.45);
  --shadow: 0 1px 2px rgba(31,42,68,.06), 0 6px 20px rgba(31,42,68,.06);
  --radius: 14px; --font: 'Assistant', 'Segoe UI', Arial, sans-serif;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) {
  --bg: #141a28; --surface: #1d2537; --surface-2: #232c40; --ink: #e9ecf3; --ink-soft: #a3abbd;
  --line: #313b52; --brand: #0f1522; --brand-hover: #2b3a5c; --on-brand: #ffffff;
  --accent: #d6a654; --accent-soft: #3a3020; --accent-ink: #f0d39b;
  --danger: #e2786b; --danger-soft: #3b2522; --green-soft: #1f3530; --green-ink: #9fd2c3;
  --pill: #2a3349; --backdrop: rgba(0,0,0,.6); --shadow: 0 1px 2px rgba(0,0,0,.3), 0 6px 20px rgba(0,0,0,.25);
  color-scheme: dark; } }
:root[data-theme="dark"] {
  --bg: #141a28; --surface: #1d2537; --surface-2: #232c40; --ink: #e9ecf3; --ink-soft: #a3abbd;
  --line: #313b52; --brand: #0f1522; --brand-hover: #2b3a5c; --on-brand: #ffffff;
  --accent: #d6a654; --accent-soft: #3a3020; --accent-ink: #f0d39b;
  --danger: #e2786b; --danger-soft: #3b2522; --green-soft: #1f3530; --green-ink: #9fd2c3;
  --pill: #2a3349; --backdrop: rgba(0,0,0,.6); --shadow: 0 1px 2px rgba(0,0,0,.3), 0 6px 20px rgba(0,0,0,.25);
  color-scheme: dark; }

* { box-sizing: border-box; }
body { background: var(--bg); color: var(--ink); font-family: var(--font); font-size: 16px; line-height: 1.5; margin: 0; direction: rtl; }
h1, h2 { margin: 0; line-height: 1.2; text-wrap: balance; }
h1 { font-size: 1.75rem; font-weight: 800; }
h2 { font-size: 1.1rem; font-weight: 700; }
.muted { color: var(--ink-soft); margin: .25rem 0 0; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }


.topbar { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 1rem; padding: .7rem 1.5rem; background: var(--brand); color: var(--on-brand); box-shadow: 0 2px 12px rgba(0,0,0,.12); }
.brand { display: flex; align-items: center; gap: .65rem; cursor: pointer; background: none; border: 0; color: inherit; font: inherit; padding: 0; text-align: start; }
.brand-mark { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--accent); color: #1f2a44; font-size: 1.4rem; font-weight: 800; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text small { opacity: .7; font-size: .8rem; }
.topbar-date { display: flex; flex-direction: column; align-items: center; text-align: center; }
.clock { font-size: 1.35rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.dates { font-size: .82rem; opacity: .8; }
.topbar-user { display: flex; align-items: center; gap: .9rem; }
.admin-nav { display: flex; gap: .25rem; }
.admin-nav button { background: none; border: 0; color: inherit; font: inherit; padding: .35rem .7rem; border-radius: 8px; font-weight: 600; font-size: .92rem; opacity: .85; cursor: pointer; }
.admin-nav button:hover, .admin-nav button.active { background: rgba(255,255,255,.14); opacity: 1; }
.user-chip { display: flex; align-items: center; gap: .55rem; }
.avatar { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,.16); font-weight: 700; }
.user-meta { display: flex; flex-direction: column; line-height: 1.15; }
.user-meta small { opacity: .7; font-size: .78rem; }
.topbar .btn-ghost { color: var(--on-brand); border-color: rgba(255,255,255,.3); }

.page { max-width: 1180px; margin: 0 auto; padding: 2rem 1.5rem 4rem; }
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; margin-bottom: 1.5rem; flex-wrap: wrap; }
.hero { margin-bottom: 2rem; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }

.tile-group { margin-bottom: 2rem; }
.tile-group h2 { margin-bottom: .8rem; color: var(--ink-soft); font-size: .95rem; letter-spacing: .02em; }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 1rem; }
.tile { --tile-accent: var(--accent); position: relative; display: flex; flex-direction: column; gap: .35rem; min-height: 128px; padding: 1.1rem; background: var(--surface); border: 1px solid var(--line); border-top: 4px solid var(--tile-accent); border-radius: var(--radius); box-shadow: var(--shadow); text-decoration: none; color: inherit; font: inherit; text-align: start; cursor: pointer; transition: transform .15s ease, box-shadow .15s ease; }
.tile:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(31,42,68,.14); }
.tile-icon { font-size: 1.9rem; line-height: 1; }
.tile-title { font-weight: 700; font-size: 1.05rem; margin-top: auto; }
.tile-sub { font-size: .85rem; color: var(--ink-soft); }
.tile-disabled { cursor: default; opacity: .65; border-top-color: var(--line); }
.tile-disabled:hover { transform: none; box-shadow: var(--shadow); }
.tile .badge { position: absolute; top: .75rem; left: .75rem; }
.badge { display: inline-block; padding: .1rem .55rem; border-radius: 999px; background: var(--accent-soft); color: var(--accent-ink); font-size: .75rem; font-weight: 700; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; padding: .6rem 1.1rem; border-radius: 10px; border: 1px solid transparent; font: inherit; font-weight: 700; cursor: pointer; }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn-primary { background: var(--brand); color: var(--on-brand); }
.btn-primary:hover:not(:disabled) { background: var(--brand-hover); }
.btn-ghost { background: transparent; border-color: var(--line); color: var(--ink); }
.btn-ghost:hover:not(:disabled) { background: var(--surface-2); }
.btn-danger-ghost { background: transparent; color: var(--danger); }
.btn-danger-ghost:hover { background: var(--danger-soft); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-sm { padding: .35rem .65rem; font-size: .88rem; }
.btn-block { width: 100%; }

.field { display: flex; flex-direction: column; gap: .35rem; margin-bottom: 1rem; flex: 1; min-width: 0; }
.field > span { font-weight: 600; font-size: .9rem; }
.field input, .field select { font: inherit; padding: .65rem .8rem; border-radius: 10px; border: 1px solid var(--line); background: var(--surface-2); color: var(--ink); width: 100%; }
.field-row { display: flex; gap: 1rem; }
.field-color { flex: 0 0 90px; }
.field-color input { padding: .2rem; height: 46px; }
.check { display: flex; align-items: center; gap: .5rem; margin-bottom: .6rem; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--accent); }
.alert { background: var(--danger-soft); color: var(--danger); border-radius: 10px; padding: .6rem .8rem; margin-bottom: 1rem; font-weight: 600; }
.icon-picker { display: flex; flex-wrap: wrap; gap: .35rem; }
.icon-picker button { width: 42px; height: 42px; font-size: 1.3rem; border-radius: 10px; border: 1px solid var(--line); background: var(--surface-2); cursor: pointer; }
.icon-picker button.on { border-color: var(--accent); background: var(--accent-soft); }
.chips { display: flex; flex-wrap: wrap; gap: .4rem; }
.chip { padding: .35rem .8rem; border-radius: 999px; border: 1px solid var(--line); background: var(--surface-2); cursor: pointer; font-weight: 600; font-size: .9rem; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip.on { background: var(--brand); color: var(--on-brand); border-color: var(--brand); }

.login-screen { min-height: 100vh; min-height: 100dvh; display: grid; place-items: center; padding: 1.5rem 16px; background: radial-gradient(ellipse at top, #2b3a5c 0%, #1f2a44 60%); }
.login-card { width: 100%; max-width: 400px; padding: 2.2rem 2rem; background: var(--surface); border-radius: 20px; box-shadow: 0 20px 60px rgba(0,0,0,.25); }
.login-card h1 { margin-top: .9rem; }
.login-card .muted { margin-bottom: 1.6rem; }
.login-mark { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 16px; background: var(--accent); color: #1f2a44; font-size: 1.9rem; font-weight: 800; }
.hint { font-size: .82rem; color: var(--ink-soft); margin-top: 1rem; text-align: center; }

.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; }
.table th { text-align: start; font-size: .82rem; color: var(--ink-soft); font-weight: 700; padding: .8rem 1rem; border-bottom: 1px solid var(--line); background: var(--surface-2); }
.table td { padding: .8rem 1rem; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tr:last-child td { border-bottom: none; }
.cell-ltr { direction: ltr; text-align: right; }
.actions { display: flex; gap: .25rem; justify-content: flex-end; white-space: nowrap; }
.row-muted { opacity: .55; }
.pill { padding: .15rem .6rem; border-radius: 999px; font-size: .8rem; font-weight: 700; background: var(--pill); white-space: nowrap; }
.pill-ADMIN { background: var(--brand); color: var(--on-brand); }
.pill-MORNING_SECRETARY { background: var(--accent-soft); color: var(--accent-ink); }
.pill-NOON_SECRETARY { background: var(--green-soft); color: var(--green-ink); }

.admin-group { padding: 1.2rem 1.3rem; margin-bottom: 1.2rem; }
.admin-group h2 { margin-bottom: .6rem; }
.button-list { list-style: none; margin: 0; padding: 0; }
.button-list li { display: flex; align-items: center; gap: .8rem; padding: .65rem 0; border-top: 1px solid var(--line); }
.button-list li:first-child { border-top: none; }
.swatch { flex: 0 0 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; font-size: 1.2rem; }
.bl-text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.bl-text small { color: var(--ink-soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; direction: ltr; text-align: right; }
.bl-tags { display: flex; gap: .3rem; flex-wrap: wrap; }

.modal-backdrop { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 1rem; background: var(--backdrop); }
.modal { width: 100%; max-width: 520px; max-height: calc(100vh - 2rem); overflow-y: auto; background: var(--surface); border-radius: 18px; padding: 1.6rem; box-shadow: 0 20px 60px rgba(0,0,0,.25); }
.modal h2 { margin-bottom: 1.2rem; font-size: 1.3rem; }
.modal-actions { display: flex; gap: .5rem; margin-top: 1rem; }
.toast { position: fixed; bottom: calc(1.2rem + env(safe-area-inset-bottom, 0px)); left: 50%; transform: translateX(-50%); background: var(--brand); color: var(--on-brand); padding: .6rem 1.2rem; border-radius: 10px; font-weight: 600; z-index: 60; box-shadow: var(--shadow); }

@media (max-width: 1024px) {
  .topbar { grid-template-columns: 1fr auto; padding: .6rem 1rem; }
  .topbar-date { grid-column: 1 / -1; grid-row: 2; flex-direction: row; gap: .8rem; justify-content: center; flex-wrap: wrap; }
  .clock { font-size: 1.1rem; }
  .page { padding: 1.5rem 1rem 3rem; }
}
@media (max-width: 640px) {
  .brand-text small, .user-meta, .admin-nav { display: none; }
  .dates { font-size: .75rem; }
  .field-row { flex-direction: column; gap: 0; }
  .field-color { flex: auto; }
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .7rem; }
  .tile { min-height: 110px; padding: .9rem; }
  .table thead { display: none; }
  .table tr { display: block; padding: .6rem .4rem; border-bottom: 1px solid var(--line); }
  .table td { display: flex; justify-content: space-between; gap: 1rem; border: none; padding: .3rem .6rem; }
  .table td[data-label]::before { content: attr(data-label); color: var(--ink-soft); font-size: .85rem; }
  .button-list li { flex-wrap: wrap; }
  .button-list .actions { width: 100%; justify-content: flex-start; }
}
@media (prefers-reduced-motion: reduce) { .tile { transition: none; } .tile:hover { transform: none; } }

/* ── שאלון סוף יום ── */
:root { --ok: #2e7d5b; --ok-soft: #e3f2ea; --warn: #b7791f; --warn-soft: #fbf0d9; --info: #2f5d8a; --info-soft: #e4edf6; --paper: #ffffff; --paper-ink: #1f2a44; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --ok: #6cc59a; --ok-soft: #1c3329; --warn: #e5b45f; --warn-soft: #3a2f1a; --info: #8fb4dc; --info-soft: #1e2c3f; } }
:root[data-theme="dark"] { --ok: #6cc59a; --ok-soft: #1c3329; --warn: #e5b45f; --warn-soft: #3a2f1a; --info: #8fb4dc; --info-soft: #1e2c3f; }

.rp-head { display: flex; flex-wrap: wrap; gap: 1rem 2rem; align-items: flex-end; justify-content: space-between; margin-bottom: 1.4rem; }
.rp-eyebrow { font-size: .8rem; font-weight: 700; letter-spacing: .06em; color: var(--accent-ink); background: var(--accent-soft); display: inline-block; padding: .15rem .6rem; border-radius: 999px; margin-bottom: .5rem; }
.rp-meta { display: flex; flex-wrap: wrap; gap: .6rem; }
.seg { display: inline-flex; background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px; padding: 3px; gap: 2px; }
.seg button { font: inherit; font-weight: 700; font-size: .92rem; border: 0; background: transparent; color: var(--ink-soft); padding: .45rem .9rem; border-radius: 9px; cursor: pointer; }
.seg button.on { background: var(--surface); color: var(--ink); box-shadow: var(--shadow); }
.rp-select { font: inherit; font-weight: 700; padding: .5rem .8rem; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); }

.rp-section { padding: 1.4rem 1.5rem; margin-bottom: 1.2rem; }
.rp-section-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .6rem 1rem; margin-bottom: 1rem; }
.rp-section-head h2 { display: flex; align-items: center; gap: .6rem; font-size: 1.2rem; }
.step { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--brand); color: var(--on-brand); font-size: .9rem; font-weight: 800; flex: none; }
.step.done { background: var(--ok); }
.rp-sub { color: var(--ink-soft); font-size: .9rem; margin: -.6rem 0 1rem; }

.att-tabs { display: flex; gap: .4rem; margin-bottom: 1rem; flex-wrap: wrap; }
.att-tab { font: inherit; font-weight: 700; padding: .45rem 1rem; border-radius: 999px; border: 1px solid var(--line); background: var(--surface-2); color: var(--ink); cursor: pointer; display: inline-flex; gap: .45rem; align-items: center; }
.att-tab.on { background: var(--brand); color: var(--on-brand); border-color: var(--brand); }
.att-tab .cnt { font-size: .78rem; opacity: .8; font-variant-numeric: tabular-nums; }

.t-list { display: flex; flex-direction: column; gap: .55rem; }
.t-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .6rem 1rem; align-items: center; padding: .75rem .9rem; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); border-inline-start: 4px solid var(--line); }
.t-row.s-present { border-inline-start-color: var(--ok); }
.t-row.s-late { border-inline-start-color: var(--warn); }
.t-row.s-absent { border-inline-start-color: var(--danger); }
.t-row.s-sub { border-inline-start-color: var(--info); }
.t-row.missing { border-color: var(--danger); background: var(--danger-soft); }
.t-who { display: flex; align-items: center; gap: .7rem; min-width: 0; }
.t-ava { flex: none; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-ink); font-weight: 800; }
.t-name { font-weight: 700; }
.t-info { font-size: .84rem; color: var(--ink-soft); }
.status { display: inline-flex; gap: 4px; flex-wrap: wrap; }
.status button { font: inherit; font-size: .88rem; font-weight: 700; padding: .4rem .75rem; border-radius: 9px; border: 1px solid var(--line); background: var(--surface-2); color: var(--ink-soft); cursor: pointer; min-width: 64px; }
.status button.on[data-st="present"] { background: var(--ok); border-color: var(--ok); color: #fff; }
.status button.on[data-st="late"] { background: var(--warn); border-color: var(--warn); color: #fff; }
.status button.on[data-st="absent"] { background: var(--danger); border-color: var(--danger); color: #fff; }
.status button.on[data-st="sub"] { background: var(--info); border-color: var(--info); color: #fff; }
.t-extra { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: .6rem; padding-top: .2rem; }
.t-extra .field { margin: 0; flex: 1 1 180px; }
.t-extra .field > span { font-size: .8rem; color: var(--ink-soft); }
.t-extra input, .t-extra select { padding: .45rem .65rem; }

.mini-field { display: flex; flex-direction: column; gap: .3rem; }
.mini-field > span { font-size: .8rem; font-weight: 600; color: var(--ink-soft); }
.mini-field input, .mini-field select, .mini-field textarea, .rp-textarea { font: inherit; padding: .55rem .7rem; border-radius: 10px; border: 1px solid var(--line); background: var(--surface-2); color: var(--ink); width: 100%; }
.rp-textarea { min-height: 110px; resize: vertical; }

.fault { display: grid; grid-template-columns: 1fr 1fr 2fr auto auto; gap: .6rem; align-items: end; padding: .8rem; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-2); margin-bottom: .55rem; }
.urg { display: inline-flex; gap: 3px; }
.urg button { font: inherit; font-size: .85rem; font-weight: 700; padding: .5rem .7rem; border-radius: 9px; border: 1px solid var(--line); background: var(--surface); color: var(--ink-soft); cursor: pointer; }
.urg button.on { background: var(--ink); color: var(--surface); border-color: var(--ink); }
.urg button.on.hot { background: var(--danger); border-color: var(--danger); color: #fff; }
.icon-btn { font: inherit; width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--danger); cursor: pointer; font-size: 1.1rem; }
.add-btn { font: inherit; font-weight: 700; width: 100%; padding: .7rem; border-radius: 12px; border: 2px dashed var(--line); background: transparent; color: var(--ink-soft); cursor: pointer; }
.add-btn:hover { border-color: var(--accent); color: var(--accent-ink); }
.none-note { color: var(--ink-soft); font-size: .92rem; margin: 0 0 .7rem; }

.counters { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: .7rem; margin-bottom: 1rem; }
.counter { display: flex; align-items: center; justify-content: space-between; gap: .6rem; padding: .8rem 1rem; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-2); }
.counter strong { font-size: .95rem; }
.stepper { display: inline-flex; align-items: center; gap: .5rem; }
.stepper button { width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font: inherit; font-weight: 800; font-size: 1.1rem; cursor: pointer; line-height: 1; }
.stepper span { min-width: 1.6rem; text-align: center; font-weight: 800; font-size: 1.15rem; font-variant-numeric: tabular-nums; }
.follow { display: grid; grid-template-columns: 1fr 1fr 2fr auto; gap: .6rem; align-items: end; padding: .8rem; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-2); margin-bottom: .55rem; }

.rp-bar { position: sticky; bottom: env(safe-area-inset-bottom, 0px); z-index: 15; margin: 1.5rem -.5rem 0; padding: .8rem 1rem; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .7rem 1rem; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 -4px 24px rgba(31,42,68,.12); }
.sum-chips { display: flex; flex-wrap: wrap; gap: .4rem; }
.sum-chip { font-size: .85rem; font-weight: 700; padding: .25rem .7rem; border-radius: 999px; font-variant-numeric: tabular-nums; }
.c-ok { background: var(--ok-soft); color: var(--ok); }
.c-warn { background: var(--warn-soft); color: var(--warn); }
.c-bad { background: var(--danger-soft); color: var(--danger); }
.c-mute { background: var(--surface-2); color: var(--ink-soft); }
.c-info { background: var(--info-soft); color: var(--info); }
.c-left { background: var(--pill); color: var(--ink-soft); }
.progress { flex: 1 1 160px; height: 8px; border-radius: 999px; background: var(--pill); overflow: hidden; min-width: 120px; }
.progress i { display: block; height: 100%; background: var(--ok); border-radius: 999px; transition: width .2s; }

/* ── הדוח שנשלח (תצוגת PDF) ── */
.sent { display: flex; align-items: center; gap: .8rem; padding: 1rem 1.2rem; border-radius: 14px; background: var(--ok-soft); color: var(--ok); font-weight: 700; margin-bottom: 1.4rem; flex-wrap: wrap; }
.sent .big { font-size: 1.6rem; }
.paper { background: var(--paper); color: var(--paper-ink); max-width: 780px; margin: 0 auto 1.5rem; border-radius: 6px; box-shadow: 0 2px 6px rgba(0,0,0,.08), 0 18px 50px rgba(31,42,68,.18); padding: 2.4rem 2.4rem 2rem; overflow-x: auto; }
.paper-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; padding-bottom: 1rem; border-bottom: 3px solid #1f2a44; flex-wrap: wrap; }
.paper-brand { display: flex; align-items: center; gap: .7rem; }
.paper-brand .brand-mark { width: 46px; height: 46px; }
.paper h3 { margin: 0; font-size: 1.35rem; }
.paper .pm { color: #5b6478; font-size: .88rem; }
.paper-date { text-align: left; font-size: .9rem; color: #5b6478; }
.paper-date strong { color: #1f2a44; display: block; font-size: 1rem; }
.p-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: .6rem; margin: 1.2rem 0; }
.p-stat { border: 1px solid #e6e1d6; border-radius: 10px; padding: .6rem .7rem; text-align: center; }
.p-stat b { display: block; font-size: 1.6rem; font-variant-numeric: tabular-nums; line-height: 1.1; }
.p-stat span { font-size: .8rem; color: #5b6478; }
.p-h { font-size: 1rem; margin: 1.3rem 0 .5rem; padding-bottom: .3rem; border-bottom: 1px solid #e6e1d6; color: #1f2a44; }
.p-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.p-table th { text-align: start; background: #f6f4ef; padding: .45rem .6rem; font-size: .8rem; color: #5b6478; }
.p-table td { padding: .45rem .6rem; border-bottom: 1px solid #efebe2; }
.p-tag { font-weight: 700; font-size: .8rem; padding: .1rem .5rem; border-radius: 999px; white-space: nowrap; }
.p-present { background: #e3f2ea; color: #2e7d5b; } .p-late { background: #fbf0d9; color: #8a5a12; }
.p-absent { background: #fbeeec; color: #b0473a; } .p-sub { background: #e4edf6; color: #2f5d8a; }
.p-note { background: #faf8f4; border-radius: 8px; padding: .7rem .9rem; font-size: .92rem; white-space: pre-wrap; }
.p-foot { margin-top: 1.6rem; padding-top: .7rem; border-top: 1px solid #e6e1d6; font-size: .78rem; color: #8a90a0; display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem; }

/* ── שאלות ── */
.qs { display: flex; flex-direction: column; gap: 1.3rem; }
.q { display: flex; flex-direction: column; gap: .55rem; padding: .2rem 0; scroll-margin: 120px; }
.q-label { display: flex; gap: .6rem; align-items: baseline; font-weight: 700; font-size: 1.02rem; cursor: default; }
.q-num { flex: none; font-size: .78rem; font-weight: 800; color: var(--ink-soft); background: var(--pill); border-radius: 6px; padding: .05rem .4rem; font-variant-numeric: tabular-nums; }
.req { color: var(--danger); }
.qi { font: inherit; padding: .65rem .8rem; border-radius: 10px; border: 1px solid var(--line); background: var(--surface-2); color: var(--ink); width: 100%; resize: vertical; }
.qi:focus, .money input:focus, .qrow input:focus, .qrow select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.q-hl { background: var(--accent-soft); border-radius: 14px; padding: .9rem 1rem; }
.q-hl .qi { background: var(--surface); }
.q-missing .q-label { color: var(--danger); }
.q-missing .qi, .q-missing .money, .q-missing .seg, .q-missing .checklist { box-shadow: 0 0 0 2px var(--danger); border-radius: 10px; }
.q-hint { font-size: .85rem; color: var(--ink-soft); }
.money { display: flex; align-items: center; max-width: 240px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-2); overflow: hidden; }
.money span { padding: 0 .8rem; font-weight: 800; color: var(--ink-soft); border-inline-end: 1px solid var(--line); align-self: stretch; display: grid; place-items: center; }
.money input { font: inherit; font-weight: 700; font-size: 1.1rem; border: 0; background: transparent; color: var(--ink); padding: .6rem .8rem; width: 100%; direction: ltr; text-align: right; font-variant-numeric: tabular-nums; }
.seg.yn button { min-width: 72px; }
.seg.yn button.on.yes { background: var(--ok); color: #fff; }
.seg.yn button.on.no { background: var(--danger); color: #fff; }
.stepper.big button { width: 40px; height: 40px; }
.stepper.big span { font-size: 1.4rem; min-width: 2.2rem; }
.checklist { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: .45rem; }
.ck { position: relative; display: flex; align-items: center; gap: .65rem; padding: .65rem .8rem; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-2); cursor: pointer; font-size: .95rem; }
.ck input { position: absolute; opacity: 0; pointer-events: none; }
.ck .box { flex: none; width: 22px; height: 22px; border-radius: 7px; border: 2px solid var(--line); display: grid; place-items: center; color: transparent; font-weight: 800; font-size: .8rem; }
.ck.on { border-color: var(--ok); background: var(--ok-soft); }
.ck.on .box { background: var(--ok); border-color: var(--ok); color: #fff; }
.ck:focus-within { outline: 3px solid var(--accent); outline-offset: 1px; }
.qrow { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) auto; gap: .6rem; align-items: end; padding: .7rem; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-2); }
.qrow input, .qrow select { font: inherit; padding: .5rem .65rem; border-radius: 9px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); width: 100%; }
.t-tools { display: flex; justify-content: flex-start; }
.imp-legend { display: flex; flex-wrap: wrap; gap: .35rem; }
.imp-l { font-size: .8rem; font-weight: 700; padding: .15rem .55rem; border-radius: 999px; }
.imp { display: inline-flex; gap: 4px; flex-wrap: wrap; }
.imp button { font: inherit; display: inline-flex; align-items: center; gap: .3rem; padding: .4rem .6rem; border-radius: 10px; border: 1px solid var(--line); background: var(--surface-2); color: var(--ink-soft); cursor: pointer; font-size: 1.05rem; }
.imp .imp-txt { display: none; font-size: .85rem; font-weight: 700; }
.imp button.on .imp-txt { display: inline; }
.tn-ok, .imp button.on.tn-ok { background: var(--ok-soft); color: var(--ok); border-color: var(--ok); }
.tn-info, .imp button.on.tn-info { background: var(--info-soft); color: var(--info); border-color: var(--info); }
.tn-warn, .imp button.on.tn-warn { background: var(--warn-soft); color: var(--warn); border-color: var(--warn); }
.tn-bad, .imp button.on.tn-bad { background: var(--danger-soft); color: var(--danger); border-color: var(--danger); }
.tn-neutral, .imp button.on.tn-neutral { background: var(--pill); color: var(--ink); border-color: var(--ink-soft); }
.imp button:not(.on) { background: var(--surface-2); color: var(--ink-soft); border-color: var(--line); }
.t-row .t-info { font-size: .84rem; color: var(--ink-soft); background: none; border: 0; }

/* ── כרטיס מאחראית הסניף ── */
.brief { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); padding: 1.3rem 1.4rem; margin-bottom: 1.3rem; border-top: 5px solid var(--accent); display: flex; flex-direction: column; gap: .9rem; }
.brief-empty { border-top-color: var(--line); }
.brief-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .3rem 1rem; align-items: baseline; }
.brief-kicker { font-weight: 800; font-size: 1.05rem; }
.brief-by { font-size: .85rem; color: var(--ink-soft); }
.brief-label { display: block; font-size: .75rem; font-weight: 800; letter-spacing: .04em; color: var(--ink-soft); margin-bottom: .25rem; }
.brief-hl { background: var(--accent-soft); color: var(--ink); border-radius: 12px; padding: .8rem 1rem; font-size: 1.1rem; font-weight: 700; line-height: 1.45; }
.brief-hl .brief-label { color: var(--accent-ink); }
.brief-task { border: 2px dashed var(--accent); border-radius: 12px; padding: .7rem 1rem; font-weight: 700; }
.brief-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .9rem 1.4rem; }
.brief-grid .span2 { grid-column: 1 / -1; }
.brief-list { margin: 0; padding-inline-start: 1.1rem; display: flex; flex-direction: column; gap: .2rem; }
.brief-none { margin: 0; }
.brief-num { margin: 0; font-size: 1.3rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.brief-foot { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; justify-content: space-between; padding-top: .3rem; border-top: 1px solid var(--line); }
.ltr { direction: ltr; unicode-bidi: isolate; }
.cta-row { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; margin-bottom: 1.6rem; }
.cta-row.center { justify-content: center; }
.mystatus { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.2rem 1.4rem; margin-bottom: 2rem; }
.mystatus .cta-row { margin: 0; }
.mystatus.attn { border-top: 5px solid var(--accent); }
.sec-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: .8rem; }
.sec-head h2 { margin: 0 !important; }

/* ── לוח מצב ── */
.board { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: .8rem; }
.bcard { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: .9rem 1rem; display: flex; flex-direction: column; gap: .3rem; }
.b-head { font-weight: 800; font-size: 1.05rem; margin-bottom: .2rem; }
.b-line { display: grid; grid-template-columns: auto 1fr auto; gap: .5rem; align-items: center; font: inherit; font-size: .9rem; color: var(--ink-soft); background: none; border: 0; padding: .25rem .3rem; border-radius: 8px; text-align: start; }
button.b-line { cursor: pointer; }
button.b-line:hover { background: var(--surface-2); }
.b-line .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.b-line.ok { color: var(--ink); }
.b-line.ok .dot { background: var(--ok); }
.b-val { font-variant-numeric: tabular-nums; font-size: .85rem; }

/* ── רשימת תגובות ── */
.filters { display: flex; flex-wrap: wrap; gap: .7rem; align-items: center; padding: .8rem 1rem; margin: 1.5rem 0; }
.lock { font-weight: 700; padding: .45rem .8rem; border-radius: 12px; background: var(--pill); }
.day-group { margin-bottom: 1.5rem; }
.day-h { font-size: 1rem; margin: 0 0 .6rem; }
.day-h span { color: var(--ink-soft); font-weight: 600; font-size: .9rem; }
.resp-list { display: flex; flex-direction: column; gap: .45rem; }
.resp-row { font: inherit; color: inherit; text-align: start; display: grid; grid-template-columns: 140px minmax(0, 180px) minmax(0, 1fr) auto; gap: .8rem; align-items: center; padding: .75rem 1rem; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); cursor: pointer; }
.resp-row:hover { border-color: var(--accent); }
.rtype { font-weight: 800; font-size: .85rem; padding: .2rem .6rem; border-radius: 999px; justify-self: start; }
.rtype.morning { background: var(--accent-soft); color: var(--accent-ink); }
.rtype.day { background: var(--info-soft); color: var(--info); }
.r-main { display: flex; flex-direction: column; min-width: 0; }
.r-main small { color: var(--ink-soft); }
.r-flags { display: flex; flex-wrap: wrap; gap: .3rem; }
.r-go { color: var(--ink-soft); font-size: 1.3rem; }

/* ── תגובה בתצוגת PDF ── */
.p-ack { margin: 1rem 0; padding: .55rem .8rem; border-radius: 8px; background: #fbf0d9; color: #8a5a12; font-weight: 700; font-size: .9rem; }
.p-ack.ok { background: #e3f2ea; color: #2e7d5b; }
.p-q { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); gap: .3rem 1rem; padding: .5rem 0; border-bottom: 1px solid #efebe2; font-size: .92rem; }
.p-q.wide { grid-template-columns: 1fr; }
.p-ql { color: #5b6478; font-weight: 600; }
.p-text { white-space: pre-wrap; }
.p-empty { color: #b7bccb; }
.p-check { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: .2rem .8rem; }
.p-check li.yes { color: #2e7d5b; }
.p-check li.no { color: #a8aebb; text-decoration: line-through; }
.p-ok { background: #e3f2ea; color: #2e7d5b; } .p-info { background: #e4edf6; color: #2f5d8a; }
.p-warn { background: #fbf0d9; color: #8a5a12; } .p-bad { background: #fbeeec; color: #b0473a; } .p-neutral { background: #eef1f6; color: #1f2a44; }

.t-sub { font-size: .84rem; color: var(--ink-soft); }
.late-box { background: var(--warn-soft); border-radius: 10px; padding: .7rem .8rem; margin-top: .2rem; }
.late-box .field > span { color: var(--ink); font-weight: 700; }
.late-box input { background: var(--surface) !important; }
.f-miss input { box-shadow: 0 0 0 2px var(--danger); }

/* ── מעבר בין סניפים ── */
.br-switch { display: inline-flex; align-items: center; gap: .4rem; background: rgba(255,255,255,.12); border-radius: 10px; padding: .25rem .3rem .25rem .6rem; font-size: .82rem; font-weight: 700; }
.br-switch select { font: inherit; font-weight: 700; font-size: .9rem; border: 0; border-radius: 7px; padding: .3rem .5rem; background: var(--surface); color: var(--ink); }
.multi-note { background: var(--info-soft); color: var(--info); padding: .6rem .9rem; border-radius: 12px; margin: 0 0 1rem; font-size: .92rem; }
.br-tag { display: inline-block; font-size: .8rem; font-weight: 600; padding: .1rem .5rem; border-radius: 999px; background: var(--pill); margin: .1rem 0; white-space: nowrap; }

/* ── מרכז הקישורים ── */
.search { font: inherit; flex: 1 1 260px; min-width: 0; padding: .6rem .9rem; border-radius: 12px; border: 1px solid var(--line); background: var(--surface-2); color: var(--ink); }
.search:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.filters .seg { flex-wrap: wrap; }
.link-group { margin-bottom: 1.6rem; }
.link-group h2 { color: var(--ink-soft); font-size: .95rem; margin-bottom: .6rem; }
.link-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: .5rem; }
.link-row { display: flex; align-items: center; gap: .4rem; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: .3rem .4rem .3rem .3rem; }
.link-row:hover { border-color: var(--accent); }
.link-main { flex: 1; min-width: 0; display: flex; align-items: center; gap: .7rem; padding: .35rem .4rem; text-decoration: none; color: inherit; font: inherit; background: none; border: 0; cursor: pointer; text-align: start; border-radius: 9px; }
.link-ic { flex: none; width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; font-size: 1.15rem; }
.link-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.link-txt small { color: var(--ink-soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; direction: ltr; text-align: right; }
.link-go { color: var(--ink-soft); font-size: 1.1rem; }

/* ── דשבורד ── */
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: .8rem; margin: 0 0 1.4rem; }
.kpi { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 1rem 1.1rem; display: flex; flex-direction: column; gap: .15rem; }
.kpi b { font-size: 2rem; line-height: 1.1; font-variant-numeric: tabular-nums; }
.kpi span { font-weight: 700; }
.kpi small { color: var(--ink-soft); font-size: .8rem; }
.kpi.k-ok b { color: var(--ok); } .kpi.k-warn b { color: var(--warn); } .kpi.k-bad b { color: var(--danger); }
.dash-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 1rem; margin-bottom: 1rem; }
.chart-card, .dash-table, .dash-attn { padding: 1.2rem 1.3rem; }
.chart-card h2, .dash-table h2, .dash-attn h2 { margin-bottom: 1rem; }
.dash-table, .dash-attn { margin-bottom: 1rem; }
.hbars { display: flex; flex-direction: column; gap: .7rem; }
.hbar { display: grid; grid-template-columns: 90px 1fr 2.2rem; gap: .6rem; align-items: center; font-size: .9rem; }
.hb-track { height: 14px; background: var(--surface-2); border-radius: 4px; overflow: hidden; }
.hb-track i { display: block; height: 100%; background: var(--info); border-radius: 4px; min-width: 2px; }
.hb-v { font-weight: 800; font-variant-numeric: tabular-nums; }
.cols { display: flex; align-items: flex-end; gap: .35rem; height: 170px; border-bottom: 1px solid var(--line); padding-bottom: 0; }
.col { flex: 1; min-width: 0; height: 100%; display: flex; flex-direction: column; align-items: center; gap: .25rem; }
.col-v { font-size: .78rem; font-weight: 800; height: 1rem; font-variant-numeric: tabular-nums; }
.col-track { flex: 1; width: 100%; max-width: 26px; display: flex; align-items: flex-end; }
.col-track i { display: block; width: 100%; background: var(--warn); border-radius: 4px 4px 0 0; min-height: 2px; }
.col-l { font-size: .68rem; color: var(--ink-soft); white-space: nowrap; height: 1.1rem; overflow: hidden; max-width: 100%; text-overflow: clip; }
.num-warn { color: var(--warn); font-weight: 800; }
.attn-list { display: flex; flex-direction: column; gap: .35rem; }
.attn-row { display: flex; align-items: center; gap: .7rem; text-align: start; font: inherit; color: inherit; background: var(--surface-2); border: 1px solid var(--line); border-radius: 10px; padding: .55rem .7rem; }
button.attn-row { cursor: pointer; }
button.attn-row:hover { border-color: var(--accent); }
.p-row-late td { background: #fdf8ee; }
.p-muted { color: #5b6478; }
.p-scroll { overflow-x: auto; }

@media (max-width: 760px) {
  .brief-grid { grid-template-columns: 1fr; }
  .link-list { grid-template-columns: 1fr; }
  .br-switch span { display: none; }
  .col-l { font-size: .6rem; }
  .qrow { grid-template-columns: 1fr 1fr; }
  .resp-row { grid-template-columns: auto minmax(0, 1fr) auto; }
  .resp-row .r-flags { grid-column: 1 / -1; grid-row: 2; }
  .p-q { grid-template-columns: 1fr; }
  .imp button { padding: .4rem .5rem; }
}

@media (max-width: 760px) {
  .t-row { grid-template-columns: 1fr; }
  .status button { flex: 1; min-width: 0; }
  .status { display: flex; }
  .fault, .follow { grid-template-columns: 1fr 1fr; }
  .fault .wide, .follow .wide { grid-column: 1 / -1; }
  .p-stats { grid-template-columns: repeat(2, 1fr); }
  .paper { padding: 1.4rem 1.1rem; }
  .rp-section { padding: 1.1rem 1rem; }
}

/* ── עמוד בית ממורכז עם כפתורים עגולים ── */
.home { max-width: 880px; margin: 0 auto; display: flex; flex-direction: column; gap: 2rem; }
.home-hero { text-align: center; display: flex; flex-direction: column; align-items: center; gap: .35rem; padding-top: .5rem; }
.home-hero h1 { font-size: clamp(1.8rem, 4vw, 2.5rem); letter-spacing: -.01em; }
.hero-date { font-size: .85rem; font-weight: 700; color: var(--accent-ink); background: var(--accent-soft); padding: .2rem .8rem; border-radius: 999px; }
.launch { display: flex; flex-wrap: wrap; justify-content: center; gap: 1.6rem .9rem; padding: 1.6rem 1rem; background: var(--surface); border: 1px solid var(--line); border-radius: 28px; box-shadow: var(--shadow); }
.circ { width: 104px; display: flex; flex-direction: column; align-items: center; gap: .55rem; text-decoration: none; color: inherit; font: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
.disc { position: relative; width: 78px; height: 78px; border-radius: 50%; display: grid; place-items: center; font-size: 2rem; background: color-mix(in srgb, var(--c) 13%, var(--surface)); border: 3px solid color-mix(in srgb, var(--c) 70%, var(--surface)); transition: transform .18s ease, box-shadow .18s ease, background .18s; }
.circ:hover .disc, .circ:focus-visible .disc { transform: translateY(-3px) scale(1.05); box-shadow: 0 10px 24px color-mix(in srgb, var(--c) 30%, transparent); background: color-mix(in srgb, var(--c) 22%, var(--surface)); }
.circ:focus-visible { outline: none; }
.circ:focus-visible .disc { outline: 3px solid var(--accent); outline-offset: 3px; }
.lbl { font-weight: 700; font-size: .9rem; line-height: 1.25; text-align: center; text-wrap: balance; }
.c-badge { position: absolute; top: -4px; inset-inline-end: -4px; min-width: 24px; height: 24px; padding: 0 6px; border-radius: 999px; background: var(--danger); color: #fff; font-size: .8rem; font-weight: 800; display: grid; place-items: center; border: 2px solid var(--surface); font-variant-numeric: tabular-nums; }
.c-soon { position: absolute; bottom: -8px; font-size: .62rem; font-weight: 800; background: var(--pill); color: var(--ink-soft); padding: .05rem .4rem; border-radius: 999px; }
.circ.soon { cursor: default; opacity: .55; }
.circ.soon .disc { --c: #8a90a0; }
.home-today .board { margin-top: 0; }
.home-today .mystatus { margin: 0; }
.home-today .brief { margin-bottom: .9rem; }
.btn-lg { padding: .85rem 1.6rem; font-size: 1.05rem; border-radius: 14px; }
.btn-ok { background: var(--ok); color: #fff; }
.btn-ok:hover { filter: brightness(1.08); }
.center-txt { text-align: center; }
.home-tasks { padding: 1.2rem 1.3rem; }
.home-tasks .count, .nav-badge { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: var(--danger); color: #fff; font-size: .78rem; font-weight: 800; vertical-align: middle; }
.mini-tasks { display: flex; flex-direction: column; gap: .45rem; }
.mini-task { display: flex; align-items: center; gap: .7rem; text-align: start; font: inherit; color: inherit; background: var(--surface-2); border: 1px solid var(--line); border-inline-start: 4px solid var(--warn); border-radius: 12px; padding: .6rem .8rem; cursor: pointer; }
.mini-task.old { border-inline-start-color: var(--danger); }
.mini-task:hover { border-color: var(--accent); }
.mt-ic { font-size: 1.3rem; }
.mt-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.mt-txt small { color: var(--ink-soft); }
.all-clear { text-align: center; font-weight: 700; color: var(--ok); margin: .5rem 0; }

/* ── לוח השיאים ── */
.records { background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 16%, var(--surface)) 0%, var(--surface) 55%); border: 1px solid var(--line); border-radius: 28px; padding: 1.6rem 1.4rem 1.4rem; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 1.4rem; }
.rec-head { text-align: center; }
.rec-head h2 { font-size: 1.5rem; }
.rec-podium-wrap h3 { text-align: center; font-size: 1rem; margin: 0 0 .8rem; color: var(--ink-soft); }
.podium { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .8rem; align-items: end; max-width: 520px; margin: 0 auto; }
.pod { display: flex; flex-direction: column; align-items: center; text-align: center; gap: .15rem; min-width: 0; }
.pod strong { font-size: .95rem; line-height: 1.2; }
.medal { font-size: 2rem; }
.pod-num { font-size: 1.8rem; font-weight: 800; font-variant-numeric: tabular-nums; line-height: 1.1; }
.pod-lbl { font-size: .75rem; color: var(--ink-soft); }
.pod-step { width: 100%; margin-top: .4rem; border-radius: 12px 12px 4px 4px; display: grid; place-items: center; font-weight: 800; font-size: 1.4rem; color: var(--on-brand); background: var(--brand); }
.p1 .pod-step { height: 92px; background: var(--accent); color: #1f2a44; }
.p2 .pod-step { height: 64px; }
.p3 .pod-step { height: 44px; opacity: .8; }
.you { font-size: .7rem; font-weight: 800; background: var(--ok); color: #fff; padding: .05rem .45rem; border-radius: 999px; }
.rec-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: .8rem; }
.rec { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 1rem; display: flex; flex-direction: column; align-items: center; text-align: center; gap: .2rem; }
.rec-ic { font-size: 1.7rem; }
.rec-t { font-size: .8rem; font-weight: 800; letter-spacing: .03em; color: var(--ink-soft); }
.rec-v { font-size: 1.4rem; font-weight: 800; color: var(--accent-ink); font-variant-numeric: tabular-nums; }
.rec small { color: var(--ink-soft); font-size: .78rem; }

/* ── משימות ── */
.task-tabs { margin-bottom: 1.2rem; flex-wrap: wrap; }
.task-tabs .cnt { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px; background: var(--pill); font-size: .75rem; }
.task-list { display: flex; flex-direction: column; gap: .8rem; }
.task { background: var(--surface); border: 1px solid var(--line); border-inline-start: 5px solid var(--warn); border-radius: 16px; padding: 1rem 1.1rem; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: .7rem; }
.task.old { border-inline-start-color: var(--danger); }
.task.done { border-inline-start-color: var(--ok); box-shadow: none; }
.task-top { display: flex; align-items: flex-start; gap: .8rem; }
.task-ic { font-size: 1.5rem; flex: none; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); }
.task-main { flex: 1; min-width: 0; }
.task-main h3 { margin: 0 0 .3rem; font-size: 1.02rem; line-height: 1.35; }
.task-meta { display: flex; flex-wrap: wrap; gap: .3rem .9rem; align-items: center; font-size: .85rem; color: var(--ink-soft); }
.task-meta strong { color: var(--ink); }
.age-old { color: var(--danger); font-weight: 700; }
.age-ok { color: var(--ok); font-weight: 700; }
.linkish { font: inherit; background: none; border: 0; padding: 0; color: var(--info); text-decoration: underline; cursor: pointer; }
.task-act { display: flex; gap: .4rem; flex: none; }
.t-panel { display: flex; flex-wrap: wrap; gap: .6rem; align-items: flex-end; padding: .8rem; border-radius: 12px; background: var(--ok-soft); }
.t-panel.fwd { background: var(--info-soft); }
.t-panel .mini-field { flex: 1 1 200px; }
.t-panel-act { display: flex; gap: .4rem; }
.trail { list-style: none; margin: 0; padding: 0 .3rem 0 0; display: flex; flex-direction: column; gap: .3rem; border-inline-start: 2px solid var(--line); margin-inline-start: 1.3rem; padding-inline-start: .9rem; }
.trail li { position: relative; display: flex; flex-wrap: wrap; gap: .2rem .6rem; justify-content: space-between; font-size: .85rem; color: var(--ink-soft); }
.trail li strong { color: var(--ink); }
.trail time { font-size: .78rem; white-space: nowrap; font-variant-numeric: tabular-nums; }
.tr-dot { position: absolute; inset-inline-start: calc(-.9rem - 6px); top: .45em; width: 10px; height: 10px; border-radius: 50%; background: var(--line); border: 2px solid var(--surface); }
.trail li:last-child .tr-dot { background: var(--accent); }
.task.done .trail li:last-child .tr-dot { background: var(--ok); }

@media (max-width: 640px) {
  .launch { gap: 1.2rem .3rem; padding: 1.2rem .5rem; border-radius: 22px; }
  .circ { width: 84px; }
  .disc { width: 62px; height: 62px; font-size: 1.6rem; }
  .lbl { font-size: .8rem; }
  .podium { gap: .4rem; }
  .medal { font-size: 1.6rem; } .pod-num { font-size: 1.4rem; }
  .task-top { flex-wrap: wrap; }
  .task-act { width: 100%; }
  .task-act .btn { flex: 1; }
}

/* ── תוספות לגרסה החיה ── */
.t-group { margin: .9rem 0 .5rem; font-size: .9rem; font-weight: 800; color: var(--ink-soft); display: flex; align-items: center; gap: .5rem; }
.t-group::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.p-sec td { background: #eef1f6; font-weight: 800; font-size: .82rem; color: #1f2a44; }
.sync-report { padding: 1.1rem 1.2rem; margin-bottom: 1.2rem; display: flex; flex-direction: column; gap: .5rem; }
.sync-row { padding: .55rem .8rem; border-radius: 10px; background: var(--surface-2); display: flex; flex-direction: column; gap: .4rem; }
.sync-row.ok { background: var(--ok-soft); }
.sync-row.bad { background: var(--danger-soft); }
.splash { text-align: center; padding: 0 16px; }

[hidden] { display: none !important; }

/* ── צ'אט ── */
.page-chat { max-width: 1180px; padding-bottom: 1.5rem; }
.chat { display: grid; grid-template-columns: 320px minmax(0, 1fr); height: calc(100vh - 150px); min-height: 460px; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow); overflow: hidden; }
.chat-list { border-inline-end: 1px solid var(--line); overflow-y: auto; padding: .8rem; display: flex; flex-direction: column; gap: .2rem; background: var(--surface-2); }
.chat-list .search { flex: none; margin-bottom: .4rem; background: var(--surface); }
.chat-list h3 { font-size: .75rem; font-weight: 800; letter-spacing: .05em; color: var(--ink-soft); margin: .8rem .4rem .3rem; }
.chan { display: flex; align-items: center; gap: .65rem; width: 100%; text-align: start; font: inherit; color: inherit; background: none; border: 0; border-radius: 12px; padding: .55rem .6rem; cursor: pointer; }
.chan:hover { background: var(--surface); }
.chan.on { background: var(--surface); box-shadow: var(--shadow); }
.chan-ava { flex: none; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-size: 1.15rem; background: var(--accent-soft); color: var(--accent-ink); font-weight: 800; }
.chan-ava.person { background: var(--info-soft); color: var(--info); font-size: 1rem; }
.chan-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.chan-txt small { color: var(--ink-soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chan.unread .chan-txt strong, .chan.unread .chan-txt small { color: var(--ink); font-weight: 800; }
.chan-meta { display: flex; flex-direction: column; align-items: flex-end; gap: .2rem; font-size: .72rem; color: var(--ink-soft); }
.chat-pane { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.chat-head { display: flex; align-items: center; gap: .7rem; padding: .8rem 1rem; border-bottom: 1px solid var(--line); }
.chat-head div { display: flex; flex-direction: column; line-height: 1.25; }
.chat-head small { color: var(--ink-soft); font-size: .8rem; }
.chat-back { display: none; }
.msgs { flex: 1; overflow-y: auto; padding: 1rem 1.2rem; display: flex; flex-direction: column; gap: .3rem; background: var(--bg); }
.day-sep { text-align: center; margin: .8rem 0 .4rem; }
.day-sep span { font-size: .75rem; font-weight: 700; color: var(--ink-soft); background: var(--surface); border: 1px solid var(--line); padding: .15rem .7rem; border-radius: 999px; }
.msg { display: flex; flex-direction: column; align-items: flex-start; max-width: 78%; }
.msg.mine { align-self: flex-end; align-items: flex-end; }
.msg-name { font-size: .75rem; font-weight: 700; color: var(--accent-ink); margin: .3rem .5rem .1rem; }
.bubble { background: var(--surface); border: 1px solid var(--line); border-radius: 16px 16px 16px 4px; padding: .5rem .8rem .35rem; white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.45; }
.msg.mine .bubble { background: var(--brand); color: var(--on-brand); border-color: var(--brand); border-radius: 16px 16px 4px 16px; }
.bubble time { display: block; font-size: .68rem; opacity: .65; margin-top: .15rem; text-align: end; font-variant-numeric: tabular-nums; }
.chat-first { text-align: center; color: var(--ink-soft); margin: auto; }
.composer { display: flex; gap: .5rem; align-items: flex-end; padding: .7rem .8rem; border-top: 1px solid var(--line); background: var(--surface); }
.composer textarea { flex: 1; font: inherit; resize: none; padding: .6rem .8rem; border-radius: 14px; border: 1px solid var(--line); background: var(--surface-2); color: var(--ink); max-height: 160px; }
.composer textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.chat-empty { margin: auto; text-align: center; color: var(--ink-soft); }
.chat-empty span { font-size: 3rem; }
@media (max-width: 760px) {
  .page-chat { padding: .6rem .5rem; }
  .chat { grid-template-columns: 1fr; height: calc(100vh - 140px); border-radius: 16px; }
  .chat.has-chan .chat-list { display: none; }
  .chat:not(.has-chan) .chat-pane { display: none; }
  .chat-back { display: inline-flex; }
  .msg { max-width: 88%; }
}

/* ── מרכז עדכונים ── */
.ann-banner { display: flex; flex-direction: column; gap: .7rem; }
.ann-banner .sec-head { margin-bottom: 0; }
.ann-list { display: flex; flex-direction: column; gap: .8rem; }
.ann { background: var(--surface); border: 1px solid var(--line); border-inline-start: 6px solid var(--info); border-radius: 16px; padding: 1rem 1.2rem; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: .45rem; }
.ann-important { border-inline-start-color: var(--accent); }
.ann-urgent { border-inline-start-color: var(--danger); background: color-mix(in srgb, var(--danger) 5%, var(--surface)); }
.ann.is-read { box-shadow: none; opacity: .85; }
.ann h3 { margin: 0; font-size: 1.15rem; line-height: 1.35; }
.ann-top { display: flex; flex-wrap: wrap; gap: .3rem .8rem; justify-content: space-between; align-items: center; }
.ann-lvl { font-size: .8rem; font-weight: 800; }
.ann-urgent .ann-lvl { color: var(--danger); }
.ann-meta { font-size: .8rem; color: var(--ink-soft); }
.ann-body { margin: 0; white-space: pre-wrap; line-height: 1.55; }
.ann-foot { display: flex; flex-wrap: wrap; gap: .5rem 1rem; align-items: center; }
.ann-readers { display: flex; flex-direction: column; gap: .4rem; padding: .7rem .8rem; border-radius: 10px; background: var(--surface-2); font-size: .9rem; }
.ann-readers strong { margin-inline-end: .4rem; }
.br-tag.warn { background: var(--warn-soft); color: var(--warn); }

/* ── שונות ── */
.user-chip { font: inherit; color: inherit; background: none; border: 0; padding: .2rem .4rem; border-radius: 10px; cursor: pointer; text-align: start; }
.user-chip:hover { background: rgba(255,255,255,.1); }
.load-err { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }

/* סרגל עליון במסכי מחשב נייד: התאריך עובר לשורה שנייה */
@media (max-width: 1280px) {
  .topbar { grid-template-columns: 1fr auto; padding: .6rem 1rem; }
  .topbar-date { grid-column: 1 / -1; grid-row: 2; flex-direction: row; gap: .8rem; justify-content: center; flex-wrap: wrap; }
  .clock { font-size: 1.05rem; }
}

/* ── עורך שאלונים ── */
.form-cards { display: flex; flex-direction: column; gap: .7rem; }
.form-card { display: flex; align-items: center; gap: 1rem; padding: 1rem 1.2rem; flex-wrap: wrap; }
.fc-ic { font-size: 2rem; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-soft); flex: none; }
.fc-main { flex: 1; min-width: 200px; display: flex; flex-direction: column; gap: .1rem; }
.fc-main h3 { margin: 0 0 .15rem; font-size: 1.15rem; }
.fc-main small { color: var(--ink-soft); }
.fc-act { display: flex; gap: .4rem; }
.fe-settings { padding: 1.2rem 1.3rem; margin-bottom: 1.2rem; }
.fe-sec { padding: 1rem 1.2rem; margin-bottom: 1rem; }
.fe-sec-head { display: flex; align-items: center; gap: .6rem; margin-bottom: .6rem; flex-wrap: wrap; }
.fe-sec-title { flex: 1; min-width: 180px; font: inherit; font-weight: 800; font-size: 1.1rem; padding: .4rem .6rem; border: 1px solid transparent; border-radius: 8px; background: transparent; color: var(--ink); }
.fe-sec-title:hover { border-color: var(--line); }
.fe-sec-title:focus { outline: none; border-color: var(--accent); background: var(--surface-2); }
.qe-list { list-style: none; margin: 0 0 .6rem; padding: 0; display: flex; flex-direction: column; gap: .4rem; }
.qe { display: flex; align-items: center; gap: .7rem; padding: .6rem .7rem; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-2); }
.qe-hidden { opacity: .55; }
.qe-num { flex: none; width: 26px; text-align: center; font-weight: 800; color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.qe-ic { flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--surface); border: 1px solid var(--line); }
.qe-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: .3rem; }
.qe-badges { display: flex; flex-wrap: wrap; gap: .3rem; }
.qb { font-size: .74rem; font-weight: 700; padding: .05rem .5rem; border-radius: 999px; background: var(--pill); color: var(--ink-soft); }
.qb.b-req { background: var(--danger-soft); color: var(--danger); }
.qb.b-cond { background: var(--info-soft); color: var(--info); }
.qb.b-task { background: var(--warn-soft); color: var(--warn); }
.qb.b-sys { background: var(--accent-soft); color: var(--accent-ink); }
.qb.b-hid { background: var(--surface); border: 1px dashed var(--line); }
.modal-wide { max-width: 640px; }
.qm-box { border: 1px solid var(--line); border-radius: 12px; padding: .6rem .9rem .2rem; margin: 0 0 1rem; }
.qm-box legend { font-weight: 800; font-size: .9rem; padding: 0 .4rem; }
.preview-bar { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; justify-content: space-between; background: var(--info-soft); color: var(--info); font-weight: 700; padding: .7rem 1rem; border-radius: 12px; margin-bottom: 1rem; }
.opts { display: flex; flex-wrap: wrap; gap: .4rem; }
.opt { font: inherit; font-weight: 700; padding: .5rem .9rem; border-radius: 10px; border: 1px solid var(--line); background: var(--surface-2); color: var(--ink); cursor: pointer; }
.opt.on { background: var(--brand); color: var(--on-brand); border-color: var(--brand); }
.rtype { background: var(--pill); color: var(--ink); }
@media (max-width: 640px) {
  .qe { flex-wrap: wrap; }
  .qe .actions { width: 100%; justify-content: flex-start; flex-wrap: wrap; }
}

/* עדכונים שפרסמתי – מעקב קריאה */
.ann-track { padding: 1.1rem 1.3rem; display: flex; flex-direction: column; gap: .8rem; border-top: 5px solid var(--accent); }
.ann-track .sec-head { margin-bottom: 0; }
.at-row { display: flex; flex-direction: column; gap: .4rem; padding: .7rem .8rem; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); }
.at-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .3rem 1rem; align-items: baseline; }
.at-count { font-weight: 800; color: var(--warn); font-variant-numeric: tabular-nums; white-space: nowrap; }
.at-row .progress { flex: none; width: 100%; }
.at-missing { display: flex; flex-wrap: wrap; gap: .3rem; align-items: center; }

/* ═══ שורטס מהערוץ ═══ */
.shorts { max-width: 880px; margin: -2.5rem auto 3rem; padding: 1.2rem 1.3rem; }
@media (max-width: 920px) { .shorts { margin-inline: 16px; } }
.sh-stage { display: flex; align-items: center; justify-content: center; gap: .8rem; }
.sh-frame { width: min(300px, 72vw); aspect-ratio: 9 / 16; border-radius: 18px; overflow: hidden; background: #0d1220; box-shadow: var(--shadow); }
.sh-frame iframe, .sh-frame #sh-player { width: 100%; height: 100%; border: 0; display: block; }
.sh-nav { flex: none; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: inherit; font-size: 1.5rem; line-height: 1; cursor: pointer; }
.sh-nav:hover { background: var(--surface-2); }
.sh-hint { text-align: center; font-size: .85rem; margin: .6rem 0 .4rem; }
.sh-strip { display: flex; gap: .5rem; overflow-x: auto; padding: .3rem .1rem .5rem; scrollbar-width: thin; }
.sh-thumb { flex: none; width: 64px; aspect-ratio: 9 / 16; padding: 0; border: 2px solid transparent; border-radius: 10px; overflow: hidden; background: var(--surface-2); cursor: pointer; opacity: .7; transition: opacity .15s, border-color .15s; }
.sh-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sh-thumb.on, .sh-thumb:hover { opacity: 1; border-color: var(--accent); }

/* ═══ לוגו ═══ */
.brand-logo { height: 30px; width: auto; display: block; }
.login-logo { display: flex; justify-content: center; }
.login-logo .logo-img { width: 190px; max-width: 70%; height: auto; }
.login-card .login-logo { margin-bottom: .4rem; }
.login-card h1 { text-align: center; }
.login-card > .muted { text-align: center; }
.splash .login-logo .logo-img { width: 220px; animation: logo-breathe 1.6s ease-in-out infinite; }
.splash-logo { width: 220px; max-width: 70%; }
@keyframes logo-breathe { 50% { opacity: .55; } }
.paper-logo { flex: none; } .paper-logo .logo-img { width: 92px; height: auto; }
.on-dark { display: none; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .on-light { display: none; } :root:not([data-theme="light"]) .on-dark { display: block; } }
:root[data-theme="dark"] .on-light { display: none; } :root[data-theme="dark"] .on-dark { display: block; }
@media print { .on-dark { display: none !important; } .on-light { display: block !important; } }

/* ═══ בקרה · הרשאות · ניתוב משימות · העלאת עובדים ═══ */
.pill-CONTROL { background: var(--info-soft, #e8eef6); color: var(--info, #2f5d8a); }
.perm-table th small { display: block; font-weight: 400; color: var(--ink-soft); font-size: .8rem; }
.perm-table td small, .rt-table td small { display: block; font-size: .82rem; line-height: 1.35; }
.perm-table th:not(:first-child), .perm-table .pc { text-align: center; width: 120px; }
.perm-group td { background: var(--surface-2); font-weight: 800; font-size: .9rem; color: var(--ink-soft); padding-block: .5rem; }
.perm-on { color: var(--ok, #3e7c6b); font-weight: 800; }
.perm-ck { display: inline-grid; place-items: center; cursor: pointer; }
.perm-ck input { width: 22px; height: 22px; accent-color: var(--brand); cursor: pointer; }
.rt-h { margin: 1.6rem 0 .8rem; font-size: 1.15rem; }
.rt-form { margin-bottom: 1rem; }
.rt-form h2 { font-size: 1.05rem; }
.rt-n { font-size: .85rem; font-weight: 400; }
.rt-q { margin-top: .15rem; }
.rt-table select { min-width: 160px; max-width: 100%; }
.rt-fb { color: var(--warn, #b07a1e); margin-top: .25rem; }
.bulk-modal { max-width: min(980px, calc(100vw - 32px)); }
.bulk-table td { font-size: .9rem; padding: .5rem .7rem; }
.row-bad td { background: var(--danger-soft); }
@media (max-width: 640px) {
  .perm-table th:not(:first-child), .perm-table .pc { width: auto; text-align: start; }
  .perm-table thead { display: none; }
  .perm-group td { display: block; }
  .rt-table select { min-width: 0; width: 100%; }
}

/* ═══ משמרות, נמענות, סיכום יום, מסכים ריקים ═══ */
.empty { text-align: center; padding: 2.2rem 1rem; color: var(--ink-soft); background: var(--surface); border: 1px dashed var(--line); border-radius: var(--radius); font-weight: 600; }
.duty { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; }
.brief > .duty { margin: .2rem 0 .7rem; }
.duty-p { display: inline-flex; align-items: center; gap: .35rem; font-size: .85rem; font-weight: 700; padding: .2rem .65rem; border-radius: 999px; background: var(--pill); color: var(--ink); }
.duty-p.ok { background: var(--ok-soft); color: var(--ok); }
.duty-p small { font-weight: 600; opacity: .85; font-variant-numeric: tabular-nums; }
.done-by { margin-top: .35rem; font-size: .88rem; font-weight: 700; color: var(--ok); }
.brief-task.done { border-color: var(--ok); background: var(--ok-soft); }
.day-brief { border-top-color: var(--info); margin-bottom: 1rem; }
.handled { display: flex; flex-direction: column; gap: .35rem; margin-top: .9rem; }
.handled-row { display: flex; gap: .6rem; align-items: center; font-size: .9rem; padding: .45rem .7rem; border-radius: 10px; background: var(--ok-soft); color: var(--ink); }
.sched-card { padding: 1.2rem 1.3rem; margin-top: 1.2rem; }
.sched { width: 100%; border-collapse: collapse; font-size: .92rem; }
.sched th, .sched td { padding: .55rem .7rem; border-bottom: 1px solid var(--line); text-align: start; vertical-align: top; }
.sched th { font-size: .82rem; color: var(--ink-soft); background: var(--surface-2); white-space: nowrap; }
.sched td.today, .sched th.today { background: var(--accent-soft); }
.sched .shift { display: block; white-space: nowrap; }
.sched .shift small { color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.unk, .sched .unk { color: var(--danger); font-weight: 700; }
#toast[hidden] { display: none; }
#toast { position: fixed; bottom: calc(1.2rem + env(safe-area-inset-bottom, 0px)); left: 50%; transform: translateX(-50%); z-index: 90; max-width: calc(100vw - 32px); }
@media (max-width: 640px) {
  .sched thead { display: none; }
  .sched tr { display: block; border-bottom: 1px solid var(--line); padding: .4rem 0; }
  .sched td { display: flex; justify-content: space-between; gap: 1rem; border: 0; padding: .25rem .4rem; }
  .sched td[data-label]::before { content: attr(data-label); color: var(--ink-soft); font-size: .85rem; }
}
/* ═══ נוכחות ═══════════════════════════════════════════════ */
.att-clock { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.1rem 1.4rem; margin: 0 0 1.6rem; border-top: 5px solid var(--ok); }
.att-clock.is-in { border-top-color: var(--accent); }
.att-clock h2 { margin: 0 0 .2rem; font-size: 1.15rem; }
.att-clock p { margin: 0; }
.att-clock-act { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; }
.att-btn { min-width: 9rem; font-size: 1.15rem; }
.att-out { background: var(--accent); color: #fff; border-color: transparent; }
.att-dev-note { font-size: .88rem; margin-top: .3rem !important; }
.att-month { display: flex; align-items: center; gap: .5rem; }
.att-month strong { min-width: 9rem; text-align: center; }
.att-tabs { margin-bottom: 1.2rem; flex-wrap: wrap; }
.att-sum { margin-bottom: .9rem; }
.att-warn { background: var(--warn-soft); color: var(--warn); }
.att-num { font-variant-numeric: tabular-nums; white-space: nowrap; }
.att-punches { display: flex; flex-wrap: wrap; gap: .3rem; }
.att-punch { display: inline-block; font-size: .85rem; font-variant-numeric: tabular-nums; padding: .1rem .5rem; border-radius: 8px; background: var(--surface-2); border: 1px solid var(--line); }
.att-punch.is-fix { border-style: dashed; }
.att-h2 { font-size: 1.1rem; margin: 1.6rem 0 .7rem; }
.att-req-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1rem; }
.att-req-card { padding: 1rem 1.2rem; }
.att-req-card p { margin: .3rem 0; }
.att-ctx .att-punch { margin-inline-start: .25rem; }
.att-who { max-width: 320px; }
.att-pad { padding: 1.1rem 1.3rem; }
.att-hist-filters { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 1rem; margin-bottom: 1rem; }

/* ═══ שיבוץ שיעורים (schedule.js) ═══════════════════════════ */
.sch-pick { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; }
.sch-br { background: var(--surface-2); border: 1px solid var(--line); color: var(--ink); }
.sch-tabs, .sch-days { display: flex; width: fit-content; max-width: 100%; margin-bottom: 1rem; flex-wrap: wrap; }
.sch-hint { margin: 0 0 .8rem; font-size: .9rem; }
.sch-note { background: var(--accent-soft); color: var(--accent-ink); border-radius: 10px; padding: .6rem .8rem; margin-bottom: .8rem; display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.sch-board { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 1rem; align-items: start; }
.sch-rail { padding: .9rem; position: sticky; top: 90px; max-height: calc(100vh - 110px); overflow-y: auto; display: flex; flex-direction: column; gap: .6rem; }
.sch-rail h2 { font-size: 1rem; }
.sch-rail input, .sch-bar input, .sch-bar select { font: inherit; padding: .5rem .7rem; border-radius: 10px; border: 1px solid var(--line); background: var(--surface-2); color: var(--ink); min-width: 0; }
.sch-wait { display: flex; flex-direction: column; gap: .35rem; min-height: 60px; border-radius: 10px; padding: .2rem; }
.sch-cols { display: flex; gap: .7rem; overflow-x: auto; padding-bottom: .5rem; align-items: flex-start; }
.sch-col { flex: 0 0 210px; overflow: hidden; }
.sch-colh { display: flex; flex-direction: column; padding: .6rem .7rem; background: var(--surface-2); border-bottom: 1px solid var(--line); line-height: 1.25; }
.sch-colh small { color: var(--ink-soft); font-size: .78rem; }
.sch-colh small:first-child { color: var(--accent-ink); font-weight: 700; }
.sch-slot { display: grid; grid-template-columns: 46px 1fr; border-bottom: 1px dashed var(--line); min-height: 40px; }
.sch-slot:last-child { border-bottom: 0; }
.sch-tm { font-size: .8rem; color: var(--ink-soft); padding: .45rem .2rem; text-align: center; border-inline-end: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.sch-slot.full .sch-tm { color: var(--ok); font-weight: 700; }
.sch-slot.over { background: var(--danger-soft); }
.sch-ss { padding: .25rem; display: flex; flex-direction: column; gap: .25rem; }
.sch-free { font-size: .75rem; color: var(--ink-soft); opacity: .7; padding: .15rem .3rem; }
.sch-slot.target, .sch-wait.target, .sch-rail.target { outline: 2px dashed var(--accent); outline-offset: -2px; cursor: pointer; }
.sch-slot.drop, .sch-wait.drop { background: var(--accent-soft); }
.sch-chip { display: flex; justify-content: space-between; align-items: center; gap: .3rem; background: var(--surface); border: 1px solid var(--line); border-radius: 7px; padding: .25rem .45rem; font-size: .88rem; cursor: grab; user-select: none; }
.sch-chip small { font-size: .72rem; color: var(--ink-soft); white-space: nowrap; }
.sch-chip.bad { border-color: var(--danger); box-shadow: inset -3px 0 0 var(--danger); }
.sch-chip.sel { background: var(--accent-soft); border-color: var(--accent); }
.sch-card { padding: 1.1rem; margin-bottom: 1rem; }
.sch-bar { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; margin-bottom: .8rem; }
.sch-tbl { overflow-x: auto; }
.sch-tbl .p-table th { background: var(--surface-2); color: var(--ink-soft); }
.sch-tbl .p-table td { border-bottom-color: var(--line); }
.sch-row { cursor: pointer; }
.sch-row:hover td { background: var(--surface-2); }
.sch-form { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 0 .8rem; border: 0; padding: 0; margin: 0; }
.sch-form .field { margin-bottom: .7rem; }
.sch-form textarea { font: inherit; padding: .6rem .8rem; border-radius: 10px; border: 1px solid var(--line); background: var(--surface-2); color: var(--ink); width: 100%; }
.sch-wide { grid-column: 1 / -1; }
@media (max-width: 760px) { .sch-board { grid-template-columns: 1fr; } .sch-rail { position: static; max-height: 320px; } }
.sch-small { font-size: .8rem; margin-top: .15rem; }
.sch-act, .sch-card .sec-head .btn { white-space: nowrap; }
.sch-act .btn + .btn { margin-inline-start: .3rem; }
.sch-wait-tbl td { vertical-align: top; }
.sch-pairs { display: flex; flex-direction: column; gap: .55rem; }
.sch-pair { border: 1px solid var(--line); border-radius: 10px; padding: .45rem; display: flex; flex-direction: column; gap: .3rem; background: var(--surface-2); }
.sch-pair.sel { border-color: var(--accent); background: var(--accent-soft); }
.sch-pair.warn { box-shadow: inset -3px 0 0 var(--warn); }
.sch-pair-h { display: flex; justify-content: space-between; align-items: center; gap: .4rem; font-weight: 700; font-size: .85rem; }
.sch-badtxt { color: var(--danger); }
.sch-info { background: var(--surface-2); border-radius: 10px; padding: .6rem .8rem; font-size: .9rem; display: flex; flex-direction: column; gap: .2rem; margin-top: .4rem; }
/* בלי מורים עדיין: הזוגות על כל הרוחב */
.sch-board.nocols { grid-template-columns: 1fr; }
.sch-board.nocols > .empty { order: -1; padding: 1rem; }
.sch-board.nocols .sch-rail { position: static; max-height: none; }
.sch-board.nocols .sch-pairs { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.sch-board.nocols .sch-wait { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.sch-chks { display: flex; flex-wrap: wrap; gap: .3rem 1rem; margin: .3rem 0 .5rem; }
.sch-chks .check { margin-bottom: 0; }
.att-101-note { white-space: pre-line; background: var(--surface-2); border-radius: 10px; padding: .5rem .8rem; }
.sch-sug { display: flex; justify-content: space-between; align-items: center; gap: .4rem; flex-wrap: wrap; font-size: .8rem; margin-top: .3rem; padding-top: .3rem; border-top: 1px dashed var(--line); }
.sch-alt { margin-top: .3rem; color: var(--ink-soft); }
.sch-bgsel { font-size: .8rem; padding: .15rem .3rem; border-radius: 6px; border: 1px solid var(--line); background: var(--surface); max-width: 9.5rem; }
.sch-bgsel.unk { border-color: var(--warn, #d9a400); }
.sch-warnrow td { background: color-mix(in srgb, var(--danger) 6%, transparent); }
.brief-role { border-style: solid; margin-bottom: .5rem; }
.brief-todo { list-style: none; margin: .3rem 0 0; padding: 0; display: grid; gap: .2rem; }
.brief-todo li.done { color: var(--ink-soft); text-decoration: line-through; }
.brief-todo .done-by { text-decoration: none; display: inline; font-size: .78rem; }

/* ── מערכת יומית למורים (print.js) ── */
.pr-bar { display: flex; flex-wrap: wrap; gap: .6rem 1rem; align-items: end; }
.pr-src { margin: .4rem 0 .8rem; display: flex; gap: .6rem; align-items: center; flex-wrap: wrap; }
.pr-card { margin-bottom: .8rem; }
.pr-card.pr-off { opacity: .55; }
.pr-card-h { display: flex; justify-content: space-between; align-items: center; gap: .6rem; margin-bottom: .5rem; }
.pr-card-h .check { margin: 0; }
.pr-tbl td, .pr-tbl th { padding: .25rem .5rem; }
.pr-tbl td.ltr { width: 4.5rem; }
.pr-tbl tr.pr-brk td { background: var(--accent-soft); color: var(--ink-soft); }
.pr-sn { width: 100%; min-width: 8rem; font-size: .85rem; padding: .2rem .4rem; border: 1px dashed var(--line); border-radius: 6px; background: transparent; }
.pr-sn:focus { border-style: solid; background: var(--surface); }
.pr-tpl summary { cursor: pointer; font-weight: 700; }
.pr-print-bar { position: sticky; bottom: .6rem; }
.print-cta { display: flex; justify-content: space-between; align-items: center; gap: .8rem; flex-wrap: wrap; margin: 1rem 0; }
#print-root { display: none; }
@media print {
  @page { size: A4; margin: 12mm 12mm 10mm; }
  body > *:not(#print-root) { display: none !important; }
  body { background: #fff !important; }
  #print-root { display: block; color: #000; font-family: Assistant, Arial, sans-serif; direction: rtl; }
  .pp-page { page-break-after: always; break-after: page; }
  .pp-page:last-child { page-break-after: auto; break-after: auto; }
  .pp-top { display: flex; justify-content: space-between; align-items: flex-start; font-size: 10pt; }
  .pp-logo { height: 12mm; }
  .pp-head { display: flex; justify-content: space-between; align-items: flex-end; border-bottom: 2px solid #000; padding-bottom: 2mm; margin: 1mm 0 3mm; }
  .pp-head h1 { margin: 0; font-size: 16pt; }
  .pp-sub { font-size: 10pt; }
  .pp-date { font-size: 11pt; font-weight: 700; }
  .pp-note { border: 1.5px solid #000; border-radius: 2mm; padding: 1.5mm 3mm; margin-bottom: 2mm; font-size: 11pt; }
  .pp-mine { border-style: dashed; }
  .pp-tbl { width: 100%; border-collapse: collapse; font-size: 11pt; margin-bottom: 3mm; }
  .pp-tbl th, .pp-tbl td { border: 1px solid #555; padding: .7mm 2mm; text-align: right; vertical-align: top; height: 5mm; }
  .pp-tbl th { background: #eee; }
  .pp-tbl td.t { width: 16mm; font-weight: 700; direction: ltr; text-align: center; }
  .pp-tbl td:nth-child(2) { width: 62mm; }
  .pp-tbl tr.brk td { background: #e8f0f8; }
  .pp-qs { font-size: 10.5pt; }
  .pp-q { margin-bottom: 1.5mm; break-inside: avoid; }
  .pp-q.sub { margin-top: -1mm; padding-inline-start: 5mm; }
  .pp-line { border-bottom: 1px solid #777; height: 5.5mm; }
  .pp-foot { margin-top: 2mm; font-size: 9pt; border-top: 1px solid #000; padding-top: 1.5mm; break-inside: avoid; }
  .pp-foot p { margin: 0 0 .6mm; }
}
.pt-row { border: 1px solid var(--line); border-radius: 10px; padding: .35rem .6rem; background: var(--surface); }
.pt-row summary { display: flex; align-items: center; gap: .5rem; cursor: pointer; flex-wrap: wrap; list-style: none; }
.pt-row summary::-webkit-details-marker { display: none; }
.pt-row[open] summary { margin-bottom: .4rem; }
.pt-fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: .4rem .8rem; }
.pt-fields .field { margin: 0; }
.sch-grp td { background: var(--accent-soft); font-weight: 700; padding: .3rem .6rem; }

/* ═══ חוברות (booklets.js) ═══════════════════════════════════ */
.bk-weekbar { display: flex; align-items: center; gap: .7rem; flex-wrap: wrap; margin-bottom: 1rem; }
.bk-weekbar strong { min-width: 9.5rem; text-align: center; }
.bk-list { padding: .3rem 0; }
.bk-row { display: flex; align-items: center; gap: .8rem; flex-wrap: wrap; padding: .65rem 1rem; border-bottom: 1px solid var(--line); }
.bk-row:last-child { border-bottom: 0; }
.bk-who { flex: 0 0 15rem; max-width: 100%; }
.bk-have { flex: 1 1 12rem; display: flex; flex-wrap: wrap; gap: .35rem; }
.bk-chip { font: inherit; font-size: .85rem; font-weight: 700; border: 0; cursor: pointer; }
.bk-chip:disabled { cursor: default; }
.bk-total { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; padding: 1rem 1.3rem; margin-bottom: 1rem; }
.bk-total > div { display: flex; align-items: baseline; gap: .7rem; flex-wrap: wrap; }
.bk-big { font-size: 2.4rem; font-weight: 800; color: var(--ink); line-height: 1; font-variant-numeric: tabular-nums; }
.bk-h { margin: 1.2rem 0 .5rem; font-size: 1.05rem; }
.bk-sum td { background: var(--accent-soft); font-weight: 800; }
.bk-picks { display: grid; grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr)); gap: .6rem; margin: .8rem 0; }
.bk-pick { font: inherit; font-weight: 700; display: flex; flex-direction: column; align-items: flex-start; gap: .15rem; text-align: start; padding: .8rem .9rem; border-radius: 12px; border: 1px solid var(--line); background: var(--surface-2); color: var(--ink); cursor: pointer; }
.bk-pick small { font-weight: 600; font-size: .78rem; color: var(--ink-soft); }
.bk-pick.rec { border-color: var(--accent); background: var(--accent-soft); }
.bk-pick.rec small { color: var(--accent-ink); }
.bk-pick.had { border-style: dashed; }
.bk-pick:hover:not(:disabled) { border-color: var(--brand); }
.bk-manage { display: flex; flex-direction: column; gap: .3rem; margin-bottom: .6rem; }
.bk-mrow { display: flex; justify-content: space-between; align-items: center; gap: .6rem; padding: .4rem .6rem; border-radius: 10px; background: var(--surface-2); }
.bk-mrow.off { opacity: .55; }
@media (max-width: 640px) {
  .bk-who { flex-basis: 100%; }
  .bk-row .btn { width: 100%; }
  .bk-picks { grid-template-columns: 1fr 1fr; }
}

/* חוברות – מלאי וכרטיס תלמיד */
.bk-namebtn { font: inherit; font-weight: 800; color: var(--ink); background: none; border: 0; padding: 0; cursor: pointer; text-align: start; border-bottom: 1px dashed var(--line); }
.bk-namebtn:hover { color: var(--brand); border-bottom-color: var(--brand); }
.bk-pick em { font-style: normal; font-size: .78rem; font-weight: 700; }
.bk-pick .bk-left { color: var(--ok); }
.bk-pick .bk-out { color: var(--danger); }
.bk-pickbox { background: var(--surface-2); border-radius: 12px; padding: .7rem .9rem .3rem; margin-bottom: .6rem; }
.bk-hist { display: flex; flex-direction: column; gap: .25rem; }
.bk-hrow { display: flex; justify-content: space-between; align-items: center; gap: .6rem; padding: .35rem .6rem; border-radius: 10px; background: var(--surface-2); }
.bk-info { display: grid; grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr)); gap: .5rem .9rem; margin: 0 0 .6rem; }
.bk-info > div { background: var(--surface-2); border-radius: 10px; padding: .4rem .7rem; }
.bk-info dt { font-size: .78rem; color: var(--ink-soft); }
.bk-info dd { margin: 0; font-weight: 700; overflow-wrap: anywhere; }
.bk-info a { color: var(--info); }
.bk-card { min-height: 24rem; }
.bk-ctabs { margin: .2rem 0 1rem; flex-wrap: wrap; }
.bk-contact { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; margin-bottom: .6rem; }
.bk-actions { display: flex; gap: .5rem; flex-wrap: wrap; margin-bottom: .4rem; }
.bk-lesson { display: flex; flex-direction: column; gap: .1rem; background: var(--surface-2); border-radius: 10px; padding: .55rem .8rem; margin-bottom: .4rem; }
.sch-row .linkish { font-weight: 700; }
.bk-sintro { margin-top: 0; }
.bk-stock { padding: .3rem 0; }
.bk-srow { display: flex; align-items: center; gap: .8rem; flex-wrap: wrap; padding: .6rem 1rem; border-bottom: 1px solid var(--line); }
.bk-srow:last-child { border-bottom: 0; }
.bk-srow.off { opacity: .55; }
.bk-sname { flex: 1 1 11rem; }
.bk-snum { flex: 0 0 4rem; text-align: center; font-size: 1.6rem; font-weight: 800; color: var(--ink); font-variant-numeric: tabular-nums; }
.bk-snum.out { color: var(--danger); }
.bk-schip { flex: 0 0 5rem; }
.bk-sact { display: flex; gap: .4rem; flex-wrap: wrap; }
.bk-big-sm { font-size: 1.5rem; font-weight: 800; color: var(--ink); }
@media (max-width: 640px) {
  .bk-sact { width: 100%; } .bk-sact .btn { flex: 1; }
  .bk-info { grid-template-columns: 1fr 1fr; }
}

/* שיבוץ – תיקונים אחרי בדיקת שימוש (19.11.2026) */
.sch-col { flex-basis: 232px; }
.sch-chip { flex-direction: column; align-items: stretch; gap: 0; line-height: 1.3; }
.sch-chip small { white-space: normal; }
.sch-slot.nofit { opacity: .4; outline-color: var(--line); }
.sch-dot { color: var(--ok); font-size: .7em; vertical-align: middle; }
.sch-headact { display: flex; flex-direction: column; align-items: flex-end; gap: .2rem; max-width: 22rem; }
@media (max-width: 760px) { .sch-card .sec-head { flex-direction: column; align-items: stretch; } .sch-card .sec-head .btn { white-space: normal; } .sch-headact { align-items: stretch; max-width: none; } }

/* ── עמוד 01: מעקב משימות, התפקיד הכללי, משימות קבועות, מילוי משותף ── */
.chip-sm { font-size: .75rem; padding: .1rem .55rem; white-space: nowrap; }
.role-note { display: flex; gap: .7rem; align-items: flex-start; background: var(--accent-soft); border: 1px solid var(--accent); border-inline-start: 5px solid var(--accent); border-radius: 12px; padding: .7rem .9rem; margin-bottom: .7rem; }
.role-note .rn-ic { font-size: 1.3rem; line-height: 1.2; }
.role-note p { margin: .1rem 0 .2rem; font-weight: 700; white-space: pre-line; }
.role-note small { color: var(--ink-soft); font-size: .8rem; }
.follow { margin-bottom: 1rem; border-inline-start: 5px solid var(--warn); }
.follow.f-bad { border-inline-start-color: var(--danger); }
.follow .follow-sub { margin: -.3rem 0 .7rem; font-size: .9rem; }
.task.rec-off { opacity: .6; }
.share-note { display: flex; gap: .4rem; align-items: baseline; }
.who-chip { margin-inline-start: auto; flex: none; font-size: .75rem; font-weight: 700; padding: .1rem .55rem; border-radius: 999px; background: var(--info-soft); color: var(--info); white-space: nowrap; }
.dsave { font-size: .82rem; margin-inline-start: .6rem; color: var(--ok); font-weight: 700; }

/* שיבוץ – שורה אחת לילד וצבעים לפי סטטוס העדכון (26.11.2026) */
:root { --cs-none: #e8873a; --cs-ok: #8e5fd0; --cs-senzey: #e3b80f; --cs-open: #3f7fc4; --cs-priv: #2e9b63; }
.sch-chip { flex-direction: row; align-items: baseline; justify-content: space-between; gap: .35rem; padding: .12rem .4rem; line-height: 1.35; font-size: .86rem; }
.sch-chip > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sch-chip small { white-space: nowrap; flex: 0 0 auto; }
.sch-ss { gap: .15rem; padding: .15rem .2rem; }
.sch-slot { min-height: 30px; grid-template-columns: 46px minmax(0, 1fr); }
.sch-ss { min-width: 0; }
.sch-chip { min-width: 0; }
.sch-tm { padding: .25rem .2rem; }
.sch-chip.cs-none, .sch-lg.cs-none, .sch-callbtn.cs-none.on { background: color-mix(in srgb, var(--cs-none) 24%, var(--surface)); border-color: color-mix(in srgb, var(--cs-none) 60%, var(--surface)); }
.sch-chip.cs-ok, .sch-lg.cs-ok, .sch-callbtn.cs-ok.on { background: color-mix(in srgb, var(--cs-ok) 22%, var(--surface)); border-color: color-mix(in srgb, var(--cs-ok) 55%, var(--surface)); }
.sch-chip.cs-senzey, .sch-lg.cs-senzey, .sch-callbtn.cs-senzey.on { background: color-mix(in srgb, var(--cs-senzey) 30%, var(--surface)); border-color: color-mix(in srgb, var(--cs-senzey) 70%, var(--surface)); }
.sch-chip[class*="cs-"] small { color: var(--ink); opacity: .75; }
.sch-chip.sel { outline: 2px solid var(--accent); outline-offset: 0; }
.sch-chip.bad { border-color: var(--danger); box-shadow: inset -3px 0 0 var(--danger); }
.sch-free.sch-open, .sch-free.sch-priv, .sch-lg.sch-open, .sch-lg.sch-priv { opacity: 1; border-radius: 7px; border: 1px dashed; padding: .1rem .4rem; font-size: .76rem; font-weight: 600; color: var(--ink); }
.sch-open { background: color-mix(in srgb, var(--cs-open) 18%, var(--surface)); border-color: color-mix(in srgb, var(--cs-open) 60%, var(--surface)) !important; }
.sch-priv { background: color-mix(in srgb, var(--cs-priv) 20%, var(--surface)); border-color: color-mix(in srgb, var(--cs-priv) 60%, var(--surface)) !important; }
.sch-legend { display: flex; flex-wrap: wrap; gap: .35rem .5rem; margin: 0 0 .7rem; font-size: .76rem; }
.sch-lg { border: 1px solid var(--line); border-radius: 7px; padding: .1rem .5rem; color: var(--ink); }
.sch-callset { display: inline-flex; gap: .25rem; flex-wrap: wrap; }
.sch-callbtn { font: inherit; font-size: .82rem; padding: .25rem .55rem; border-radius: 8px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; }
.sch-callbtn.on { font-weight: 700; }

/* עמוד בית מקובץ לפי נושאים */
.launch-grp { display: block; padding: 1rem 1.2rem; }
.lg { padding: .6rem 0 .9rem; border-bottom: 1px solid var(--line); }
.lg:last-child { border-bottom: 0; }
.lg h3, .lg-fold summary { font-size: .95rem; font-weight: 700; color: #7a5617; margin: 0 0 .7rem; letter-spacing: .01em; cursor: default; }
.lg-fold { padding: .6rem 0; }
.lg-fold summary { cursor: pointer; list-style: none; }
.lg-fold summary::after { content: ' ▾'; }
.lg-fold[open] summary::after { content: ' ▴'; }
.lg-row { display: flex; flex-wrap: wrap; gap: 1.2rem .9rem; }

/* קופה קטנה וסנזיי */
.pc-hero { display: flex; flex-wrap: wrap; gap: 1rem 2.2rem; align-items: flex-end; padding: 1.2rem 1.4rem; margin-bottom: 1rem; border-top: 4px solid #c8963e; }
.pc-hero div { display: flex; flex-direction: column; gap: .2rem; }
.pc-hero strong { font-size: 1.3rem; color: #1f2a44; }
.pc-big { font-size: 2.2rem !important; color: #2e7d5b !important; }
.pc-big.num-warn { color: #b0473a !important; }
.pc-sel td { background: color-mix(in srgb, #c8963e 12%, var(--surface)); }
.sz-frame { width: 100%; height: calc(100vh - 190px); min-height: 520px; border: 1px solid var(--line); border-radius: 16px; background: #fff; }

/* ── עמוד הבית החדש: כרטיסים לפי תפקיד ── */
.hm { display: flex; flex-direction: column; gap: 1.1rem; }
.hm-greet { display: flex; flex-direction: column; gap: .15rem; padding: .4rem .2rem 0; }
.hm-date { color: var(--accent-ink); font-weight: 700; }
.hm-greet h1 { margin: 0; font-size: clamp(1.7rem, 3vw, 2.4rem); font-weight: 800; }
.hm-greet p { margin: 0; color: var(--ink-soft); font-size: 1.05rem; }
.hm-sec { display: flex; align-items: center; gap: .9rem; margin-top: .6rem; }
.hm-sec h2 { margin: 0; font-size: 1.25rem; font-weight: 800; }
.hm-line { flex: 1; height: 1px; background: var(--line); }
.hm-line.gold { background: #c8963e; opacity: .45; }
.hm-grid { display: flex; flex-wrap: wrap; gap: 1.1rem; align-items: stretch; }
.hm-grid > * { flex: 1 1 340px; min-width: 0; }
.hm-hero { display: flex; flex-direction: column; gap: 1rem; text-align: right; font: inherit; border: 0; cursor: pointer; background: #1f2a44; color: #fff; border-radius: 18px; padding: 1.6rem 1.7rem; box-shadow: 0 10px 30px rgba(31,42,68,.22); }
.hm-hero-h { display: flex; align-items: center; gap: .7rem; font-size: 1.3rem; font-weight: 800; }
.hm-hero-n { display: flex; align-items: flex-end; gap: .8rem; }
.hm-hero-n b { font-size: 4.6rem; line-height: .9; font-weight: 800; color: #d6a654; }
.hm-hero-n span { color: #c9cfdd; padding-bottom: .4rem; font-size: 1.05rem; }
.hm-hero-cta { align-self: flex-start; background: #d6a654; color: #1f2a44; font-weight: 800; padding: .7rem 1.5rem; border-radius: 10px; }
.hm-hero:hover { transform: translateY(-2px); }
.hm-ic { width: 44px; height: 44px; border-radius: 12px; background: #1f2a44; display: grid; place-items: center; font-size: 1.3rem; flex: none; }
.hm-ic-gold { background: rgba(214,166,84,.16); }
.hm-card { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 1.4rem 1.5rem; box-shadow: 0 6px 24px rgba(31,42,68,.06); display: flex; flex-direction: column; gap: 1rem; }
.hm-card-h { display: flex; align-items: center; gap: .7rem; }
.hm-card-h h2 { margin: 0; font-size: 1.25rem; font-weight: 800; }
.hm-rows { display: flex; flex-direction: column; gap: .6rem; }
.hm-row { display: flex; align-items: center; gap: .8rem; padding: .85rem 1rem; background: var(--surface-2); border: 0; border-radius: 12px; font: inherit; color: inherit; text-align: right; text-decoration: none; cursor: pointer; }
.hm-row:hover { background: var(--accent-soft); }
.hm-row-t { display: flex; flex-direction: column; flex: 1; }
.hm-row-t strong { font-size: 1.05rem; }
.hm-row-t small { color: var(--ink-soft); }
.hm-go { color: var(--accent-ink); font-weight: 800; font-size: 1.3rem; }
.hm-today { gap: .8rem; }
.hm-today .card { box-shadow: none; border: 0; padding: 0; }
.hm-att > * { height: 100%; margin: 0; }
.hm-more { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 1rem; }
.hm-tile { position: relative; display: flex; flex-direction: column; gap: .3rem; align-items: flex-start; text-align: right; padding: 1.1rem 1.2rem; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; font: inherit; color: inherit; text-decoration: none; cursor: pointer; }
.hm-tile:hover { border-color: var(--accent); box-shadow: var(--shadow); }
.hm-t-ic { font-size: 1.5rem; }
.hm-tile strong { font-size: 1.05rem; font-weight: 800; }
.hm-tile small { color: var(--ink-soft); }
.hm-badge { position: absolute; top: .7rem; left: .7rem; }

/* ═══ שמחות מורים (celebrations.js) ═══ */
.cel-bar { display: flex; align-items: center; gap: .8rem; flex-wrap: wrap; margin: 0 0 1rem; justify-content: space-between; }
.cel-card { padding: 1rem 1.2rem; margin-bottom: 1rem; }
.cel-card.done { opacity: .75; }
.cel-card.focus { box-shadow: 0 0 0 2px var(--accent); }
.cel-head { display: flex; justify-content: space-between; align-items: flex-start; gap: .8rem; flex-wrap: wrap; margin-bottom: .8rem; }
.cel-head h3 { margin: 0 0 .2rem; font-size: 1.1rem; }
.cel-head-r { display: flex; align-items: center; gap: .5rem; }
.cel-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: .7rem; }
.cel-step { border: 1px solid var(--line); border-radius: 12px; padding: .7rem .85rem; background: var(--surface-2); display: flex; flex-direction: column; gap: .5rem; }
.cel-step.ok { border-color: var(--ok); }
.cel-step.late { border-color: var(--danger); }
.cel-st { display: flex; justify-content: space-between; align-items: center; gap: .5rem; font-weight: 800; }
.cel-btns { display: flex; gap: .4rem; flex-wrap: wrap; }
.cel-sg { display: flex; justify-content: space-between; align-items: center; gap: .5rem; flex-wrap: wrap; }
.cel-mailbox { border: 1px solid var(--line); border-radius: 12px; background: var(--surface-2); padding: 1rem 1.2rem; margin: .6rem 0 1rem; max-height: 55vh; overflow: auto; line-height: 1.6; }
.cel-prev { max-width: 40rem; margin: .5rem auto 1rem; }

/* השלט: כל המידות ביחידות של רוחב השלט (cqw), כדי שהתצוגה והמודפס ייראו אותו דבר */
.cel-sign { container-type: size; width: 100%; aspect-ratio: 297 / 210; position: relative; overflow: hidden; border-radius: 10px; direction: rtl; color: #000; font-family: Assistant, Arial, sans-serif;
  background: radial-gradient(circle at 8% 12%, #f6c9d3 0, transparent 38%), radial-gradient(circle at 92% 88%, #f4bfcc 0, transparent 40%), radial-gradient(circle at 85% 10%, #fbe3e8 0, transparent 35%), #fdf0f3;
  -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.cel-sign .cs-in { position: absolute; inset: 6cqw 6cqw; background: #fff; border: .55cqw solid #000; display: flex; flex-direction: column; justify-content: space-between; align-items: stretch; padding: 2.6cqw 3.5cqw 2.2cqw; text-align: center; }
.cel-sign .cs-small { font-size: 4.2cqw; font-weight: 600; font-style: italic; line-height: 1.2; }
.cel-sign .cs-big { font-size: 9.6cqw; white-space: nowrap; font-weight: 800; line-height: 1.05; }
.cel-sign .cs-mid { display: flex; flex-direction: column; gap: 1cqw; }
.cel-sign .cs-line, .cel-sign .cs-bless { font-size: 4cqw; font-weight: 600; font-style: italic; line-height: 1.25; }
.cel-sign .cs-foot { display: grid; grid-template-columns: 1fr auto 1fr; align-items: end; }
.cel-sign .cs-logo { height: 11.5cqw; width: auto; justify-self: center; }
.cel-sign .cs-sig { grid-column: 3; justify-self: start; text-align: start; font-size: 3.1cqw; font-weight: 600; font-style: italic; line-height: 1.3; white-space: nowrap; }
@media print {
  @page cel { size: A4 landscape; margin: 0; }
  #print-root .cel-sign { page: cel; width: 297mm; height: 210mm; aspect-ratio: auto; border-radius: 0; break-after: page; }
}

/* ── הודעה קופצת ── */
.ann-pop-bg { z-index: 70; }
.ann-pop { max-width: 560px; border-top: 6px solid var(--info); display: flex; flex-direction: column; gap: .6rem; }
.ann-pop-important { border-top-color: var(--accent); }
.ann-pop-urgent { border-top-color: var(--danger); }
.ann-pop h2 { margin: 0; font-size: 1.4rem; line-height: 1.35; }
.ann-pop .ann-body { margin: 0; font-size: 1.05rem; white-space: pre-wrap; }
.ann-pop .modal-actions { justify-content: flex-start; }
.ann-popup-opt { margin: .2rem 0 .6rem; }
/* ── מילוי מקום ── */
.sub-layout { display: grid; grid-template-columns: 300px 1fr; gap: 1rem; align-items: start; }
.sub-side { position: sticky; top: .8rem; max-height: calc(100vh - 2rem); overflow: auto; padding: .7rem; }
.sub-h { margin: .8rem 0 .3rem; font-size: .95rem; }
.sub-h:first-child { margin-top: 0; }
.sub-item { display: flex; flex-direction: column; gap: .15rem; width: 100%; text-align: start; font: inherit; background: var(--card, #fff); border: 1px solid var(--line); border-radius: 12px; padding: .55rem .7rem; margin-bottom: .4rem; cursor: pointer; }
.sub-item.on { border-color: var(--brand); box-shadow: 0 0 0 2px color-mix(in srgb, var(--brand) 25%, transparent); }
.sub-item.done { opacity: .65; }
.sub-main { display: flex; flex-direction: column; gap: 1rem; min-width: 0; }
.sub-card { padding: 1rem; }
.sub-cand { display: flex; gap: .6rem; align-items: flex-start; padding: .6rem 0; border-top: 1px solid var(--line); }
.sub-cand.st-yes { background: color-mix(in srgb, var(--ok, #2e7d32) 8%, transparent); }
.sub-cand.st-no { opacity: .55; }
.sub-cand-body { flex: 1; min-width: 0; }
.sub-st { display: flex; gap: .3rem; flex-wrap: wrap; margin-top: .3rem; }
.chips-row { display: flex; gap: .3rem; flex-wrap: wrap; margin: .2rem 0; }
.sub-hid { font-size: .85rem; }
@media (max-width: 800px) { .sub-layout { grid-template-columns: 1fr; } .sub-side { position: static; max-height: none; } }

.sub-tabs { margin: 0 0 1rem; }
.sub-dbar { display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; margin-bottom: 1rem; }
.sub-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: .7rem; margin-bottom: 1rem; }
.sub-kpi { display: flex; flex-direction: column; gap: .2rem; padding: .8rem 1rem; border: 1px solid var(--line); border-radius: 14px; background: var(--card, #fff); }
.sub-kpi strong { font-size: 1.6rem; line-height: 1; }
.sub-kpi span { font-size: .85rem; color: var(--muted, #6b7280); }
.sub-kpi.warn { border-color: #d97706; background: #fff7ed; }
.sub-dgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1rem; align-items: start; }
.sub-tbl-wrap { overflow-x: auto; }
.sub-tbl { width: 100%; border-collapse: collapse; font-size: .92rem; }
.sub-tbl th, .sub-tbl td { text-align: start; padding: .35rem .5rem; border-bottom: 1px solid var(--line); }
.sub-h2 { margin-top: 1.2rem; }
.sub-set { display: flex; flex-direction: column; gap: 1rem; max-width: 760px; }
.sub-trow { display: grid; grid-template-columns: 150px 1fr; gap: .3rem .8rem; align-items: center; padding: .5rem 0; border-top: 1px solid var(--line); }
.sub-trow input[type=text], .sub-trow input:not([type]) { grid-column: 1 / -1; }
