/* פדגוגי - "בנייה אוטומטית": the 2026 screens of the timetable app (scheduler/flow/*). Everything is scoped
   to .tf and written with logical properties, so the same file serves right-to-left and left-to-right pages. */

.tf {
    --tf-sky: #175bb0;
    --tf-sky-ink: #114591;
    --tf-sky-soft: #e6efff;
    --tf-sky-line: #9cc2f2;
    --tf-mint: #2ec4a5;
    --tf-mint-ink: #0a6f5d;
    --tf-mint-soft: #dcf5ee;
    --tf-red: #b0202d;
    --tf-red-soft: #fde6e8;
    --tf-amber: #8a4a00;
    --tf-amber-soft: #fff1df;
    --tf-violet: #5a3bb5;
    --tf-violet-soft: #efeafe;
    --tf-green: #0b6b4a;
    --tf-green-soft: #e1f4ea;
    --tf-ink: #12233f;
    --tf-ink-2: #4a5a73;
    --tf-ink-3: #5b6b85;
    --tf-line: #dfe8f4;
    --tf-line-2: #eef2f8;
    --tf-bg: #eef3fa;
    --tf-card: #ffffff;
    --tf-hatch: repeating-linear-gradient(45deg, #f1f4f9 0 6px, #e8edf4 6px 12px);
    font-family: 'Rubik', 'Assistant', system-ui, sans-serif;
    color: var(--tf-ink);
    font-variant-numeric: tabular-nums;
    background: var(--tf-bg);
    margin: 8px -8px -8px;
    padding: 18px 20px 48px;
    min-height: calc(100vh - 120px);
    box-sizing: border-box;
    text-align: start;
}
.tf *, .tf *::before, .tf *::after { box-sizing: border-box; }
.tf a { color: var(--tf-sky-ink); text-decoration: none; cursor: pointer; }
.tf a:hover { color: #0d3f80; }
.tf button { font-family: inherit; cursor: pointer; }
.tf input, .tf select, .tf textarea { font-family: inherit; }
.tf h1, .tf h2, .tf h3 { font-family: inherit; color: var(--tf-ink); }

/* frame: the steps on the side, the page beside them (stacks on a phone) */
.tf-layout { display: flex; flex-wrap: wrap; gap: 20px; align-items: flex-start; max-width: 1480px; margin: 0 auto; }
.tf-nav { flex: 1 1 220px; max-width: 250px; background: var(--tf-card); border: 1px solid var(--tf-line); border-radius: 20px; padding: 12px 10px; position: sticky; top: 12px; }
.tf-nav-title { font-size: 12px; font-weight: 600; color: var(--tf-ink-3); margin: 10px 10px 4px; }
.tf-nav-title:first-child { margin-top: 2px; }
.tf-nav a { display: flex; align-items: center; gap: 10px; min-height: 40px; padding: 0 12px; border-radius: 12px; font-size: 14.5px; font-weight: 500; color: var(--tf-ink); }
.tf-nav a .bi { font-size: 17px; }
.tf-nav a:hover { background: #f4f7fb; color: var(--tf-ink); }
.tf-nav a.is-on { background: var(--tf-mint-soft); color: var(--tf-mint-ink); font-weight: 700; }
.tf-nav a .tf-badge { margin-inline-start: auto; }
.tf-main { flex: 999 1 640px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
@media (max-width: 900px) {
    .tf { margin: 0; padding: 12px 10px 40px; }
    .tf-nav { max-width: none; position: static; display: flex; flex-wrap: nowrap; overflow-x: auto; gap: 4px; padding: 6px; }
    .tf-nav-title { display: none; }
    .tf-nav a { flex-shrink: 0; white-space: nowrap; }
}

/* atoms */
.tf-title { display: flex; align-items: flex-end; gap: 12px; flex-wrap: wrap; }
.tf-title > div:first-child { flex: 1 1 360px; min-width: 0; }
.tf-title h1 { margin: 0; font-size: 28px; font-weight: 800; line-height: 1.15; }
.tf-title .tf-sub { font-size: 14.5px; color: var(--tf-ink-2); margin-top: 4px; }
.tf-title .tf-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.tf-crumb { font-size: 13px; color: var(--tf-ink-3); display: flex; align-items: center; gap: 6px; }
.tf-card { background: var(--tf-card); border: 1px solid var(--tf-line); border-radius: 20px; padding: 18px; }
.tf-card.is-red { border-color: #f6c6cb; }
.tf-card.is-mint { border-color: #bfe6d6; }
.tf-card h2 { margin: 0; font-size: 17px; font-weight: 800; }
.tf-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; margin-bottom: 12px; flex-wrap: wrap; }
.tf-card-head .tf-sub { font-size: 13px; color: var(--tf-ink-3); margin-top: 2px; }
.tf-row { display: flex; gap: 18px; flex-wrap: wrap; align-items: flex-start; }
.tf-row > .tf-grow { flex: 999 1 600px; min-width: 0; }
.tf-row > .tf-side { flex: 1 1 290px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.tf-row > .tf-side.is-sticky { position: sticky; top: 12px; max-height: calc(100vh - 24px); overflow-y: auto; border-radius: 20px; }
@media (max-width: 900px) { .tf-row > .tf-side.is-sticky { position: static; } }
.tf-stack { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.tf-muted { color: var(--tf-ink-3); }
.tf-small { font-size: 12.5px; }
.tf-ltr { direction: ltr; unicode-bidi: isolate; display: inline-block; }

.tf-btn { height: 42px; padding: 0 16px; border-radius: 12px; border: 0; font-size: 14px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; gap: 7px; white-space: nowrap; background: #eef5ff; color: var(--tf-sky-ink); }
.tf-btn .bi { font-size: 16px; }
.tf-btn.is-sky { background: var(--tf-sky); color: #fff; }
.tf-btn.is-mint { background: var(--tf-mint); color: #053b33; }
.tf-btn.is-line { background: #fff; color: var(--tf-ink); border: 1px solid var(--tf-line); }
.tf-btn.is-ghost { background: transparent; color: var(--tf-sky-ink); }
.tf-btn.is-red { background: var(--tf-red-soft); color: var(--tf-red); }
.tf-btn.is-sm { height: 36px; padding: 0 12px; font-size: 13px; border-radius: 11px; }
.tf-btn.is-lg { height: 52px; padding: 0 24px; font-size: 16px; border-radius: 14px; }
.tf-btn[disabled] { opacity: 0.5; cursor: not-allowed; }
.tf-btn:hover:not([disabled]) { filter: brightness(0.97); }
.tf-icon-btn { width: 36px; height: 36px; border-radius: 11px; border: 0; background: transparent; color: var(--tf-sky-ink); display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.tf-icon-btn:hover { background: #eef5ff; }
.tf-icon-btn.is-line { border: 1px solid var(--tf-line); background: #fff; }

.tf-pill { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 600; padding: 3px 9px; border-radius: 999px; white-space: nowrap; background: #f1f4f9; color: var(--tf-ink-2); }
.tf-pill.is-mint { background: var(--tf-mint-soft); color: var(--tf-mint-ink); }
.tf-pill.is-sky { background: var(--tf-sky-soft); color: var(--tf-sky-ink); }
.tf-pill.is-red { background: var(--tf-red-soft); color: var(--tf-red); }
.tf-pill.is-amber { background: var(--tf-amber-soft); color: var(--tf-amber); }
.tf-pill.is-green { background: var(--tf-green-soft); color: var(--tf-green); }
.tf-pill.is-violet { background: var(--tf-violet-soft); color: var(--tf-violet); }
.tf-badge { min-width: 22px; height: 22px; padding: 0 7px; border-radius: 999px; font-size: 11.5px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; background: var(--tf-amber-soft); color: var(--tf-amber); }
.tf-ibox { width: 38px; height: 38px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 18px; background: var(--tf-sky-soft); color: var(--tf-sky-ink); }
.tf-ibox.is-mint { background: var(--tf-mint-soft); color: var(--tf-mint-ink); }
.tf-ibox.is-red { background: var(--tf-red-soft); color: var(--tf-red); }
.tf-ibox.is-amber { background: var(--tf-amber-soft); color: var(--tf-amber); }
.tf-ibox.is-green { background: var(--tf-green-soft); color: var(--tf-green); }
.tf-ibox.is-violet { background: var(--tf-violet-soft); color: var(--tf-violet); }
.tf-ibox.is-grey { background: #f1f4f9; color: var(--tf-ink-2); }

.tf-kpis { display: flex; gap: 14px; flex-wrap: wrap; }
.tf-kpi { flex: 1 1 180px; background: var(--tf-card); border: 1px solid var(--tf-line); border-radius: 18px; padding: 14px 16px; display: flex; align-items: center; gap: 12px; }
.tf-kpi .tf-ibox { width: 44px; height: 44px; border-radius: 14px; font-size: 20px; }
.tf-kpi-v { display: block; font-size: 24px; font-weight: 800; line-height: 1.1; }
.tf-kpi-l { display: block; font-size: 13px; color: var(--tf-ink-2); font-weight: 600; }
.tf-kpi-s { display: block; font-size: 12px; color: var(--tf-ink-3); }

.tf-seg { display: inline-flex; gap: 3px; padding: 3px; border-radius: 12px; background: #eef2f8; max-width: 100%; overflow-x: auto; }
.tf-seg button { flex-shrink: 0; height: 34px; padding: 0 13px; border-radius: 9px; border: 0; background: transparent; color: var(--tf-ink-2); font-size: 13.5px; font-weight: 600; white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; }
.tf-seg button.is-on { background: #fff; color: var(--tf-sky-ink); font-weight: 700; box-shadow: 0 1px 3px rgba(16,42,92,0.12); }
.tf-seg.is-sm button { height: 28px; padding: 0 10px; font-size: 12.5px; }

.tf-chip { flex-shrink: 0; height: 36px; padding: 0 13px; border-radius: 999px; font-size: 13.5px; font-weight: 600; white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; background: #fff; color: var(--tf-ink-2); border: 1.5px solid var(--tf-line); }
.tf-chip.is-on { background: var(--tf-sky-soft); color: var(--tf-sky-ink); border-color: var(--tf-sky-line); font-weight: 700; }
.tf-chips { display: flex; gap: 6px; flex-wrap: wrap; }

.tf-bar { display: block; height: 8px; border-radius: 999px; background: #e8eef7; overflow: hidden; }
.tf-bar > span { display: block; height: 100%; border-radius: 999px; background: var(--tf-mint); }
.tf-bar.is-red > span { background: #e35d6a; }

.tf-search { flex: 1 1 220px; min-width: 0; height: 42px; border: 1px solid var(--tf-line); border-radius: 12px; background: #f7f9fc; display: flex; align-items: center; gap: 8px; padding: 0 12px; color: var(--tf-ink-3); }
.tf-search input { border: 0; background: transparent; outline: none; flex: 1; min-width: 0; font-size: 14px; color: var(--tf-ink); }
.tf .tf-input { height: 38px; border: 1px solid var(--tf-line); border-radius: 11px; padding: 0 10px; font-size: 14px; color: var(--tf-ink); background: #fff; min-width: 0; }
.tf .tf-input.is-num { width: 74px; text-align: center; }
.tf .tf-textarea { width: 100%; border: 1px solid var(--tf-line); border-radius: 12px; padding: 10px 12px; font-size: 14px; color: var(--tf-ink); resize: vertical; min-height: 64px; }
.tf .tf-select { height: 40px; border: 1px solid var(--tf-line); border-radius: 12px; padding: 0 10px; font-size: 14px; font-weight: 600; color: var(--tf-ink); background: #fff; }

.tf-switch { flex-shrink: 0; width: 44px; height: 26px; border-radius: 999px; border: 0; padding: 3px; display: inline-flex; justify-content: flex-start; background: #cfd9e6; }
.tf-switch > span { width: 20px; height: 20px; border-radius: 999px; background: #fff; box-shadow: 0 1px 3px rgba(10,25,50,0.25); }
.tf-switch.is-on { background: var(--tf-mint); justify-content: flex-end; }

.tf-stepper { display: inline-flex; align-items: center; height: 38px; border: 1px solid var(--tf-line); border-radius: 11px; background: #fff; overflow: hidden; flex-shrink: 0; }
.tf-stepper button { width: 34px; height: 100%; border: 0; background: #f7f9fc; color: var(--tf-ink-2); font-size: 16px; display: flex; align-items: center; justify-content: center; }
.tf-stepper span { min-width: 40px; padding: 0 6px; text-align: center; font-size: 14.5px; font-weight: 800; white-space: nowrap; }

.tf-list-row { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--tf-line-2); }
.tf-list-row:last-child { border-bottom: 0; }
.tf-list-row .tf-list-main { flex: 1; min-width: 0; }
.tf-list-row .tf-list-t { display: block; font-size: 14.5px; font-weight: 700; }
.tf-list-row .tf-list-s { display: block; font-size: 12.5px; color: var(--tf-ink-2); margin-top: 1px; }
.tf-list-row.is-done .tf-list-t { color: var(--tf-ink-2); text-decoration: line-through; text-decoration-color: #9fb0c6; }

.tf-table-wrap { overflow-x: auto; border: 1px solid var(--tf-line); border-radius: 16px; }
.tf-table { width: 100%; border-collapse: collapse; }
.tf-table th { padding: 10px; text-align: start; font-size: 12.5px; font-weight: 700; color: var(--tf-ink-2); border-bottom: 1px solid var(--tf-line); white-space: nowrap; background: #fbfcfe; }
.tf-table td.is-nowrap { white-space: nowrap; }
.tf-table td { padding: 9px 10px; font-size: 13.5px; border-bottom: 1px solid var(--tf-line-2); vertical-align: middle; }
.tf-table tr:last-child td { border-bottom: 0; }
.tf-table tr.is-sel td { background: #eef5ff; }
.tf-table tr.is-click { cursor: pointer; }
.tf-table tr.is-click:hover td { background: #f7faff; }

.tf-subj { display: inline-flex; align-items: center; gap: 8px; height: 30px; padding: 0 10px; border-radius: 9px; font-size: 13.5px; font-weight: 800; white-space: nowrap; }
.tf-dot { width: 7px; height: 7px; border-radius: 999px; flex-shrink: 0; }
.tf-split { display: inline-flex; gap: 4px; }
.tf-split span { min-width: 24px; height: 24px; padding: 0 6px; border-radius: 7px; background: #eef2f8; color: var(--tf-ink-2); font-size: 12.5px; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; }
.tf-split span.is-2 { background: var(--tf-mint-soft); color: var(--tf-mint-ink); }

/* the build steps as one connected timeline */
.tf-flow { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); }
.tf-flow li { position: relative; display: flex; flex-direction: column; align-items: center; gap: 7px; text-align: center; padding: 0 4px; }
.tf-flow li::after { content: ''; position: absolute; top: 16px; inset-inline-start: 50%; width: 100%; height: 3px; border-radius: 3px; background: var(--tf-line); }
.tf-flow li:last-child::after { display: none; }
.tf-flow li.is-done::after { background: var(--tf-mint); }
.tf-flow .tf-flow-dot { position: relative; z-index: 1; width: 34px; height: 34px; border-radius: 999px; background: #fff; border: 2px solid #cfd9e6; color: var(--tf-ink-3); font-size: 15px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.tf-flow li.is-done .tf-flow-dot { background: var(--tf-mint); border-color: var(--tf-mint); color: #053b33; }
.tf-flow li.is-cur .tf-flow-dot { background: var(--tf-sky); border-color: var(--tf-sky); color: #fff; box-shadow: 0 0 0 6px #d6e5fb; }
.tf-flow a { color: var(--tf-ink); font-size: 14px; font-weight: 700; }
.tf-flow li.is-cur a { color: var(--tf-sky-ink); font-weight: 800; }
.tf-flow .tf-flow-sub { font-size: 12px; font-weight: 600; color: var(--tf-ink-3); }
.tf-flow .tf-flow-sub.is-amber { color: var(--tf-amber); }
.tf-flow .tf-flow-sub.is-red { color: var(--tf-red); }
@media (max-width: 700px) {
    .tf-flow { grid-template-columns: 1fr; gap: 10px; }
    .tf-flow li { flex-direction: row; text-align: start; }
    .tf-flow li::after { display: none; }
}

.tf-hero { position: relative; overflow: hidden; border-radius: 24px; background: #fff; border: 1px solid var(--tf-line); padding: 22px 24px 24px; box-shadow: 0 14px 34px rgba(16,42,92,0.08); }
.tf-hero-head { display: flex; align-items: flex-start; gap: 16px; flex-wrap: wrap; }
.tf-hero-icon { width: 52px; height: 52px; border-radius: 16px; background: linear-gradient(135deg, #175bb0, #2ec4a5); color: #fff; display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 24px; }
.tf-hero h2 { margin: 4px 0 0; font-size: 23px; font-weight: 800; }
.tf-live { font-size: 13px; font-weight: 700; color: var(--tf-mint-ink); display: inline-flex; align-items: center; gap: 6px; }
.tf-live::before { content: ''; width: 8px; height: 8px; border-radius: 999px; background: var(--tf-mint); animation: tf-pulse 1.8s infinite; }

.tf-go { border-radius: 24px; background-color: #134d97; color: #fff; padding: 24px; display: flex; align-items: center; gap: 20px; flex-wrap: wrap; box-shadow: 0 18px 40px rgba(19,77,151,0.28); }
.tf-go h2 { color: #fff; margin: 0; font-size: 22px; font-weight: 800; }
.tf-go .tf-go-sub { font-size: 14.5px; color: rgba(255,255,255,0.92); margin-top: 4px; }
.tf-go .tf-go-icon { width: 60px; height: 60px; border-radius: 18px; background: rgba(255,255,255,0.14); border: 1px solid rgba(255,255,255,0.3); display: flex; align-items: center; justify-content: center; font-size: 28px; flex-shrink: 0; }
.tf-go .tf-go-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.tf-go .tf-go-tags span { height: 28px; padding: 0 10px; border-radius: 999px; background: rgba(255,255,255,0.14); border: 1px solid rgba(255,255,255,0.28); font-size: 12.5px; font-weight: 700; display: inline-flex; align-items: center; }
.tf-go .tf-btn.is-mint { height: 56px; padding: 0 26px; font-size: 18px; font-weight: 800; border-radius: 16px; box-shadow: 0 0 0 6px rgba(46,196,165,0.25); }
.tf-go .tf-btn.is-mint:not([disabled]) { animation: tf-pulse 2s infinite; }
.tf-go .tf-btn[disabled] { background: rgba(255,255,255,0.18); color: #fff; box-shadow: none; }

.tf-tiles { display: flex; gap: 14px; flex-wrap: wrap; }
.tf-tile { flex: 1 1 180px; border-radius: 18px; padding: 14px 16px; display: flex; align-items: center; gap: 12px; background: var(--tf-sky-soft); color: var(--tf-sky-ink); }
.tf-tile.is-green { background: var(--tf-green-soft); color: var(--tf-green); }
.tf-tile.is-red { background: var(--tf-red-soft); color: var(--tf-red); }
.tf-tile.is-amber { background: var(--tf-amber-soft); color: var(--tf-amber); }
.tf-tile .tf-tile-i { width: 42px; height: 42px; border-radius: 13px; background: rgba(255,255,255,0.7); display: flex; align-items: center; justify-content: center; font-size: 20px; }
.tf-tile b { display: block; font-size: 26px; font-weight: 800; line-height: 1.1; }
.tf-tile span { display: block; font-size: 13.5px; font-weight: 700; }

.tf-radios { display: flex; gap: 10px; flex-wrap: wrap; }
.tf-radio { flex: 1 1 150px; min-width: 0; display: flex; align-items: flex-start; gap: 10px; padding: 12px 14px; border-radius: 14px; background: #fff; border: 1.5px solid var(--tf-line); cursor: pointer; }
.tf-radio.is-on { background: #eef5ff; border-color: var(--tf-sky-line); }
.tf-radio input { margin: 3px 0 0; width: 18px; height: 18px; accent-color: var(--tf-sky); flex-shrink: 0; }
.tf-radio b { display: block; font-size: 14px; }
.tf-radio small { display: block; font-size: 12.5px; color: var(--tf-ink-2); margin-top: 2px; }

/* the build: a live stage */
.tf-stage { position: relative; overflow: hidden; border-radius: 26px; background-color: #123f7c; color: #fff; padding: 26px; box-shadow: 0 22px 50px rgba(18,63,124,0.32); }
.tf-stage::after { content: ''; position: absolute; top: 0; bottom: 0; left: -40%; width: 40%; background: linear-gradient(90deg, transparent, rgba(127,227,207,0.10), transparent); animation: tf-scan 3.2s linear infinite; pointer-events: none; }
.tf-stage.is-still::after { display: none; }
.tf-stage-head { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 700; flex-wrap: wrap; }
.tf-stage-head .tf-end { margin-inline-start: auto; font-weight: 600; opacity: 0.88; }
.tf-stage-body { display: flex; gap: 26px; flex-wrap: wrap; align-items: center; margin-top: 18px; position: relative; z-index: 1; }
.tf-ring { position: relative; width: 176px; height: 176px; flex-shrink: 0; }
.tf-ring svg { display: block; }
.tf-ring-v { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.tf-ring-v b { font-size: 42px; font-weight: 800; line-height: 1; }
.tf-ring-v span { font-size: 13px; opacity: 0.88; margin-top: 4px; }
.tf-minis { flex: 999 1 420px; min-width: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(116px, 1fr)); gap: 10px; }
.tf-mini { background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.16); border-radius: 12px; padding: 8px; }
.tf-mini-h { font-size: 12px; font-weight: 700; margin-bottom: 6px; display: flex; justify-content: space-between; gap: 6px; }
.tf-mini-g { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 2px; }
.tf-mini-g span { height: 8px; border-radius: 3px; background: rgba(255,255,255,0.08); }
.tf-mini-g span.is-on { background: rgba(127,227,207,0.75); }
.tf-mini-g span.is-wait { border: 1px dashed rgba(255,255,255,0.4); background: transparent; animation: tf-glow 1.4s infinite; }
.tf-steps { list-style: none; margin: 0; padding: 0; flex: 1 1 250px; display: flex; flex-direction: column; gap: 14px; }
.tf-steps li { display: flex; align-items: flex-start; gap: 10px; }
.tf-steps li.is-next { opacity: 0.7; }
.tf-steps b { display: block; font-size: 14.5px; }
.tf-steps small { display: block; font-size: 12.5px; color: rgba(255,255,255,0.82); }
.tf-step-dot { width: 26px; height: 26px; border-radius: 999px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; border: 2px solid rgba(255,255,255,0.35); font-size: 14px; }
.tf-step-dot.is-done { background: var(--tf-mint); border-color: var(--tf-mint); color: #053b33; }
.tf-step-dot.is-now { border: 3px solid rgba(255,255,255,0.25); border-top-color: #7fe3cf; animation: tf-spin 0.9s linear infinite; }

/* week grids: lessons, the painter, verdicts */
.tf-week-wrap { overflow-x: auto; }
.tf-week { width: 100%; min-width: 700px; border-collapse: separate; border-spacing: 0; table-layout: fixed; }
.tf-week th { padding: 4px 4px 8px; font-size: 13.5px; font-weight: 700; color: var(--tf-ink-2); text-align: center; }
.tf-week th.tf-hcol { width: 64px; text-align: start; padding-inline-start: 6px; vertical-align: middle; }
.tf-week th.tf-hcol b { display: block; font-size: 15px; font-weight: 800; color: var(--tf-ink); }
.tf-week th.tf-hcol small { display: block; font-size: 11px; font-weight: 500; color: var(--tf-ink-3); }
.tf-week td { padding: 3px; vertical-align: top; }
.tf-week.is-compact { min-width: 0; }
.tf-week.is-compact th.tf-hcol { width: 26px; padding-inline-start: 2px; }
.tf-week.is-compact th { font-size: 12px; padding: 2px 1px 6px; }
.tf-week.is-compact td { padding: 2px; }
.tf-week.is-compact .tf-cell-empty, .tf-week.is-compact .tf-cell-closed { height: 28px; border-radius: 7px; }
.tf-cell-empty { height: 64px; border-radius: 12px; border: 1.5px dashed #dbe3ee; }
.tf-cell-closed { height: 64px; border-radius: 12px; background: var(--tf-hatch); }
.tf-lesson { position: relative; height: 64px; border-radius: 12px; padding: 7px 10px; display: flex; flex-direction: column; justify-content: center; gap: 2px; overflow: hidden; }
.tf-lesson + .tf-lesson { margin-top: 3px; }
.tf-lesson .tf-lesson-s { display: flex; align-items: center; gap: 6px; font-size: 13.5px; font-weight: 800; white-space: nowrap; overflow: hidden; }
.tf-lesson .tf-lesson-t { font-size: 12px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; opacity: 0.92; }
.tf-lesson .tf-lesson-r { font-size: 11.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; opacity: 0.8; }
.tf-lesson .tf-lock { margin-inline-start: auto; font-size: 12px; opacity: 0.8; }
.tf-lesson.is-many { height: auto; min-height: 30px; padding: 4px 8px; }
.tf-lesson.is-dim { opacity: 0.42; filter: saturate(0.6); }
.tf-lesson.is-pick { box-shadow: inset 0 0 0 2px var(--tf-sky); }
.tf-lesson.is-sel { box-shadow: 0 10px 22px rgba(16,42,92,0.25), inset 0 0 0 2px #fff; transform: translateY(-1px); }
.tf-lesson.is-click, .tf-verdict.is-click { cursor: pointer; }
.tf-swap { position: absolute; bottom: 3px; inset-inline-end: 4px; height: 20px; padding: 0 7px; border-radius: 999px; background: var(--tf-sky); color: #fff; font-size: 10.5px; font-weight: 700; display: inline-flex; align-items: center; gap: 4px; }
.tf-verdict { height: 64px; border-radius: 12px; padding: 6px 8px; display: flex; align-items: center; justify-content: center; gap: 5px; text-align: center; font-size: 12px; font-weight: 700; line-height: 1.25; }
.tf-verdict.is-ok { background: #e6f8f2; color: var(--tf-mint-ink); box-shadow: inset 0 0 0 2px var(--tf-mint); }
.tf-verdict.is-warn { background: #fff7ec; color: var(--tf-amber); box-shadow: inset 0 0 0 1.5px #f2c98f; }
.tf-verdict.is-bad { background: var(--tf-red-soft); color: var(--tf-red); box-shadow: inset 0 0 0 1.5px #f1a7ae; }
.tf-verdict.is-block { background: repeating-linear-gradient(45deg, #fbe4e7 0 6px, #f6d3d8 6px 12px); color: var(--tf-red); }
.tf-verdict.is-origin { border: 2px dashed var(--tf-sky); color: var(--tf-sky-ink); background: #f5f9ff; }
.tf-legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12.5px; color: var(--tf-ink-2); font-weight: 600; }
.tf-legend span { display: inline-flex; align-items: center; gap: 6px; }
.tf-legend i.tf-sw { width: 14px; height: 14px; border-radius: 4px; display: inline-block; }

.tf-paint { width: 100%; border-collapse: separate; border-spacing: 4px; table-layout: fixed; user-select: none; }
.tf-paint th button { width: 100%; height: 32px; border-radius: 9px; border: 0; background: #f4f7fb; color: var(--tf-ink); font-size: 12.5px; font-weight: 700; }
.tf-paint th button.is-off { background: var(--tf-red-soft); color: var(--tf-red); }
.tf-paint th.tf-hcol { width: 34px; }
.tf-paint td { padding: 0; }
.tf-paint td button { width: 100%; height: 30px; border-radius: 8px; border: 1.5px solid #bfe6d6; background: #ebf9f4; color: var(--tf-mint-ink); display: flex; align-items: center; justify-content: center; font-size: 13px; }
.tf-paint td button.is-off { border: 0; background: repeating-linear-gradient(45deg, #fbe4e7 0 6px, #f6d3d8 6px 12px); color: var(--tf-red); }
.tf-paint td button.is-school { border: 0; background: var(--tf-hatch); color: var(--tf-ink-3); cursor: not-allowed; }
.tf-paint.is-school td button { background: #f6faff; border-color: #d3e3f7; color: transparent; }
.tf-paint.is-school td button.is-off { background: var(--tf-hatch); color: var(--tf-ink-3); }

.tf-pref { padding: 10px 0; border-bottom: 1px solid var(--tf-line-2); }
.tf-pref:last-child { border-bottom: 0; }
.tf-pref-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.tf-pref-h b { font-size: 13.5px; }
.tf-pref-h small { display: block; font-size: 11.5px; color: var(--tf-ink-3); font-weight: 500; }
.tf-pref-c { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-top: 8px; font-size: 12.5px; color: var(--tf-ink-2); font-weight: 600; }

.tf-quota { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.tf-quota > div { border-radius: 14px; padding: 10px 12px; }
.tf-quota b { display: block; font-size: 24px; font-weight: 800; line-height: 1.15; }
.tf-quota span { display: block; font-size: 12.5px; font-weight: 700; }
.tf-quota small { display: block; font-size: 11.5px; font-weight: 600; opacity: 0.85; }

.tf-banner { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; border-radius: 18px; padding: 14px 18px; background: var(--tf-mint-soft); color: var(--tf-mint-ink); border: 1px solid #bfe6d6; }
.tf-banner.is-sky { background: var(--tf-sky-soft); color: var(--tf-sky-ink); border-color: #c9dcf6; }
.tf-banner.is-red { background: var(--tf-red-soft); color: var(--tf-red); border-color: #f6c6cb; }
.tf-banner.is-amber { background: var(--tf-amber-soft); color: var(--tf-amber); border-color: #f2d3a4; }
.tf-banner .tf-banner-t { flex: 1 1 260px; min-width: 0; font-weight: 700; font-size: 14.5px; }
.tf-banner .tf-banner-t small { display: block; font-weight: 500; font-size: 13px; margin-top: 2px; }
.tf-done-mark { width: 56px; height: 56px; border-radius: 18px; background: var(--tf-mint); color: #053b33; display: flex; align-items: center; justify-content: center; flex-shrink: 0; box-shadow: 0 0 0 8px var(--tf-mint-soft); font-size: 28px; }

.tf-details { margin-top: 8px; font-size: 12.5px; color: var(--tf-ink-3); }
.tf-details summary { cursor: pointer; font-weight: 700; color: var(--tf-sky-ink); }
.tf-details pre { white-space: pre-wrap; direction: ltr; text-align: left; font-size: 11.5px; background: #f7f9fc; border-radius: 10px; padding: 8px; max-height: 220px; overflow: auto; }

.tf-empty { text-align: center; padding: 30px 10px; color: var(--tf-ink-3); }
.tf-empty .bi { font-size: 30px; display: block; margin-bottom: 8px; color: #9fb0c6; }

.tf-dialog-back { position: fixed; inset: 0; background: rgba(10,25,50,0.45); z-index: 1040; display: flex; align-items: flex-start; justify-content: center; padding: 70px 16px 16px; overflow: auto; }
.tf-dialog { width: 560px; max-width: 100%; background: #fff; border-radius: 24px; box-shadow: 0 30px 80px rgba(10,25,50,0.35); overflow: hidden; }
.tf-dialog-h { background-color: #175bb0; color: #fff; padding: 18px 20px; display: flex; align-items: center; gap: 12px; }
.tf-dialog-h b { display: block; font-size: 19px; font-weight: 800; }
.tf-dialog-h small { display: block; font-size: 13px; opacity: 0.92; }
.tf-dialog-h .tf-icon-btn { color: #fff; background: rgba(255,255,255,0.14); margin-inline-start: auto; }
.tf-dialog-b { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 14px; }
.tf-dialog-f { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; }
.tf-check { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; font-size: 14px; font-weight: 700; }
.tf-check input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--tf-sky); flex-shrink: 0; }
.tf-check small { display: block; font-size: 12.5px; color: var(--tf-ink-3); font-weight: 500; }
.tf-pick-list { max-height: 320px; overflow: auto; border: 1px solid var(--tf-line); border-radius: 14px; }
.tf-pick-list label { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-bottom: 1px solid var(--tf-line-2); cursor: pointer; font-size: 13.5px; }
.tf-pick-list label:last-child { border-bottom: 0; }
.tf-pick-list input { width: 18px; height: 18px; accent-color: var(--tf-sky); }

@keyframes tf-pulse { 0% { box-shadow: 0 0 0 0 rgba(46,196,165,.55) } 70% { box-shadow: 0 0 0 9px rgba(46,196,165,0) } 100% { box-shadow: 0 0 0 0 rgba(46,196,165,0) } }
@keyframes tf-scan { 0% { transform: translateX(0) } 100% { transform: translateX(350%) } }
@keyframes tf-spin { to { transform: rotate(360deg) } }
@keyframes tf-glow { 0%, 100% { opacity: .55 } 50% { opacity: 1 } }
@media (prefers-reduced-motion: reduce) { .tf *, .tf::after, .tf-stage::after { animation: none !important; } }
@media print { .tf-nav, .tf-actions, .tf-btn { display: none !important; } .tf { background: #fff; } }

/* ============================================================================
   The classic builder screens in the 2026 look: the bar, תכנון, בנייה, the side panel (מערכות כיתות / מורים /
   פעולות נוספות / אוטומט) and the class and teacher windows. Only the new design ([data-ui="new"]), and only
   selectors TimetablePlan alone draws (.schedule-nav, .top-left-tabs, #tables-views, .side-tt-panel) - the
   alternative screen and teacher attendance share table.timetable and keep their look. Sizes the code sets
   inline (the cells, the panel's 420px, the windows' margin) are left alone: the drag and drop measures them.
   ============================================================================ */

/* the bar: a hairline instead of the black divider */
:root[data-ui="new"] .schedule-nav > span:not([class]) { background: var(--u-line) !important; width: 1px !important; height: 28px !important; margin: 0 6px; }
/* its menus open above the side panel (the save panel is 600px wide and was cut by it) */
:root[data-ui="new"] .schedule-nav .info-menu-in { z-index: 1026; }

/* ---- the side panel: a white sheet under the header, not over it ---- */
:root[data-ui="new"] .top-left-tabs {
    top: 70px !important; height: calc(100vh - 70px) !important; z-index: 1025;
    background: var(--u-surface); border: 0; border-inline-start: 1px solid var(--u-line);
    box-shadow: 0 0 28px rgba(16, 42, 92, .10);
    padding: 12px 14px 28px; font-family: var(--u-font); color: var(--u-ink);
}
@media (max-width: 767px) {
    :root[data-ui="new"] .top-left-tabs { top: 64px !important; height: calc(100vh - 64px) !important; }
}
:root[data-ui="new"] .top-left-tabs > .btn-rounded {
    left: auto !important; right: auto !important; width: 36px; height: 36px; padding: 0 !important;
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: 12px !important; background: var(--u-surface2) !important; color: var(--u-soft) !important; transform: none !important;
}
/* the four tabs as one segmented control */
:root[data-ui="new"] .top-left-tabs .left-top-nav {
    display: flex !important; gap: 2px; width: 100%; margin: 10px 0 14px; padding: 4px;
    background: var(--u-bg); border-radius: 14px;
}
:root[data-ui="new"] .top-left-tabs .left-top-nav > .btn {
    flex: 1 1 auto; min-width: 0; margin: 0 !important; padding: 7px 6px !important; float: none;
    border: 0 !important; border-radius: 10px !important; background: transparent !important; box-shadow: none !important;
    color: var(--u-soft) !important; font-size: 13.5px; font-weight: 600; line-height: 1.25; white-space: normal; transform: none !important;
}
:root[data-ui="new"] .top-left-tabs .left-top-nav > .btn:hover { color: var(--u-ink) !important; background: rgba(255, 255, 255, .65) !important; }
:root[data-ui="new"] .top-left-tabs .left-top-nav > .btn.btn-info { background: var(--u-surface) !important; color: var(--u-acc-ink) !important; box-shadow: 0 1px 4px rgba(16, 42, 92, .14) !important; }

/* the class and teacher lists */
:root[data-ui="new"] .top-left-tabs .table.act-rows { overflow: visible; box-shadow: none; border-radius: 14px !important; margin-bottom: 12px; }
:root[data-ui="new"] .top-left-tabs .act-rows > thead > tr > th {
    position: sticky; top: -12px; z-index: 2;
    background: var(--u-surface2) !important; color: var(--u-soft) !important; border-color: var(--u-line-soft) !important;
    font-size: 12px !important; font-weight: 600; line-height: 1.25 !important; padding: 9px 4px !important; vertical-align: middle;
}
:root[data-ui="new"] .top-left-tabs .act-rows > thead > tr > th:first-child { border-start-start-radius: 14px; }
:root[data-ui="new"] .top-left-tabs .act-rows > thead > tr > th:last-child { border-start-end-radius: 14px; }
:root[data-ui="new"] .top-left-tabs .act-rows > tbody > tr > td,
:root[data-ui="new"] .top-left-tabs .act-rows > tr > td {
    padding: 6px 4px !important; font-size: 13px !important; line-height: 1.3 !important;
    vertical-align: middle; text-align: center; border-color: var(--u-line-soft) !important;
}
:root[data-ui="new"] .top-left-tabs .act-rows td.tname { font-weight: 700; color: var(--u-ink); text-align: start; padding-inline-start: 10px !important; }
:root[data-ui="new"] .top-left-tabs .act-rows > tbody > tr:hover > td { background: rgba(23, 91, 176, .05); }
:root[data-ui="new"] .top-left-tabs .act-rows > tr > td { background: var(--u-surface2); font-weight: 700; }
:root[data-ui="new"] .top-left-tabs .act-rows .btn-xs {
    height: 28px; padding: 0 10px !important; display: inline-flex; align-items: center; gap: 4px;
    border-radius: 999px !important; background: var(--u-surface2) !important; font-size: 12.5px; font-weight: 600; transform: none !important;
}
:root[data-ui="new"] .top-left-tabs .act-rows .btn-xs .glyphicon { font-size: 11px; color: var(--u-soft); }

/* the rest of the panel: hairlines, quiet titles, controls on one line */
:root[data-ui="new"] .top-left-tabs hr { border: 0 !important; border-top: 1px solid var(--u-line) !important; margin: 14px 0 !important; }
:root[data-ui="new"] .top-left-tabs .left-content > .small { color: var(--u-soft); font-size: 12.5px; line-height: 1.7; }
:root[data-ui="new"] .top-left-tabs .h6 { font-size: 13px; font-weight: 700; color: var(--u-ink); margin: 6px 4px 8px; line-height: 1.5; }
:root[data-ui="new"] .top-left-tabs .actions-panel .btn { margin: 4px !important; }
:root[data-ui="new"] .top-left-tabs .conf-line { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; padding: 4px; }
:root[data-ui="new"] .top-left-tabs .conf-line label { margin: 0; font-weight: 500; }
:root[data-ui="new"] .top-left-tabs .form-control.tiny { height: 34px; }
:root[data-ui="new"] .top-left-tabs label.checkit { display: inline-flex; align-items: center; gap: 6px; font-weight: 500; }

/* the button that opens the panel again: below the header, a tab on the page's edge */
:root[data-ui="new"] .btn.small-rounded {
    top: 82px !important; background: var(--u-surface) !important; color: var(--u-acc-ink) !important;
    border: 1px solid var(--u-line) !important; box-shadow: 0 4px 14px rgba(16, 42, 92, .12) !important;
    font-weight: 600; padding: 7px 12px !important; transform: none !important;
}

/* ---- תכנון ---- */
:root[data-ui="new"] #plantt { padding-top: 4px; }
:root[data-ui="new"] #plantt .table.planx > thead > tr > th,
:root[data-ui="new"] #plantt .magnets-table > thead > tr > th { font-size: 12.5px; font-weight: 600; color: var(--u-ink) !important; padding: 8px 4px !important; }
:root[data-ui="new"] #plantt .table.planx > tbody > tr > td { font-size: 12px; border-color: var(--u-line-soft) !important; }
:root[data-ui="new"] #plantt .table.planx > tbody > tr > td.tname { background: var(--u-surface2); }
:root[data-ui="new"] #plantt .table.planx > tbody > tr > td:hover { background: rgba(23, 91, 176, .08) !important; }

/* ---- בנייה: the class and teacher windows as cards ---- */
:root[data-ui="new"] #tables-views .class-timetable,
:root[data-ui="new"] .side-tt-panel .class-timetable {
    margin: 8px; padding: 12px 14px; border-radius: 18px; background: var(--u-surface);
    border: 1px solid var(--u-line); box-shadow: 0 2px 10px rgba(16, 42, 92, .06);
}
:root[data-ui="new"] #tables-views .class-timetable .table.timetable,
:root[data-ui="new"] .side-tt-panel .class-timetable .table.timetable { box-shadow: none; border-radius: 12px !important; margin-bottom: 0; }
:root[data-ui="new"] #tables-views .timetable > caption,
:root[data-ui="new"] .side-tt-panel .timetable > caption { padding: 0 2px 10px; color: var(--u-soft); font-size: 13px; font-weight: 500; text-align: start; }
:root[data-ui="new"] #tables-views .timetable > caption strong.named,
:root[data-ui="new"] .side-tt-panel .timetable > caption strong.named { font-size: 20px; font-weight: 800; color: var(--u-acc-ink); margin-inline-end: 8px; vertical-align: -2px; }
:root[data-ui="new"] #tables-views .timetable > caption .pro-data,
:root[data-ui="new"] .side-tt-panel .timetable > caption .pro-data { color: var(--u-soft); font-weight: 500; }
:root[data-ui="new"] #tables-views .timetable > caption .xbtn,
:root[data-ui="new"] .side-tt-panel .timetable > caption .xbtn {
    width: 30px; height: 30px; line-height: 30px; text-align: center; border-radius: 10px;
    font-size: 15px; font-weight: 700; color: var(--u-soft); background: var(--u-surface2);
}
:root[data-ui="new"] #tables-views .timetable > caption .xbtn:hover,
:root[data-ui="new"] .side-tt-panel .timetable > caption .xbtn:hover { background: #fde6e8; color: #b0202d; }
:root[data-ui="new"] #tables-views table.timetable > thead > tr > th,
:root[data-ui="new"] .side-tt-panel table.timetable > thead > tr > th { font-size: 13px; font-weight: 600; color: var(--u-soft) !important; padding: 9px 4px !important; }
:root[data-ui="new"] #tables-views table.timetable td.num,
:root[data-ui="new"] .side-tt-panel table.timetable td.num { color: var(--u-soft); font-size: 12px; font-weight: 600; vertical-align: middle; background: var(--u-surface2); }
:root[data-ui="new"] #tables-views table.timetable > tbody > tr > td,
:root[data-ui="new"] .side-tt-panel table.timetable > tbody > tr > td { border-color: var(--u-line-soft) !important; }
/* the lessons keep their colours (the school's palette, set under העדפות סגנון), rounded */
:root[data-ui="new"] #tables-views table.timetable .label-studygroup,
:root[data-ui="new"] .side-tt-panel table.timetable .label-studygroup { border-radius: 7px; color: #12233f; }
:root[data-ui="new"] #tables-views table.timetable .label-studygroup .subject_name,
:root[data-ui="new"] .side-tt-panel table.timetable .label-studygroup .subject_name { font-weight: 500; opacity: .85; }
/* the line of actions under a window */
:root[data-ui="new"] #tables-views .class-timetable > .xprint { margin-top: 10px; }
:root[data-ui="new"] #tables-views .class-timetable > .xprint select.form-control.tiny { height: 32px; border-radius: 10px !important; }

/* round 2: what the first look showed */
/* תכנון: a wide grid scrolls inside its own frame, never the page (as the reports' wide grids, ui3-reports.css);
   the floating header copy (#fixed-headers-tbl, scheduler/Common.js) lives inside the same frame and follows it.
   Common.js places it 64px under the top, the 2026 header is 70px tall from a tablet up */
:root[data-ui="new"] #plantt #planx { overflow-x: auto; overflow-y: hidden; }
@media (min-width: 768px) { :root[data-ui="new"] #plantt #fixed-headers-tbl { margin-top: 6px; } }
/* with the side panel open the grid starts beside it, as the build windows do (their margin is set inline) */
@media (min-width: 900px) { :root[data-ui="new"] .top-left-tabs ~ #tables-views > #plantt { margin-inline-end: 420px; } }

/* פעולות נוספות: the actions as an even two-column list */
:root[data-ui="new"] .top-left-tabs .actions-panel .btn {
    width: calc(50% - 8px); min-height: 36px; display: inline-flex; align-items: center; gap: 6px;
    justify-content: flex-start; text-align: start; white-space: normal; line-height: 1.25; vertical-align: top;
}
:root[data-ui="new"] .top-left-tabs select.form-control.tiny { width: auto !important; min-width: 120px; }
/* אוטומט: the old helper's output box stays out of sight until something is written in it */
:root[data-ui="new"] .top-left-tabs .fet-output:empty, :root[data-ui="new"] .top-left-tabs .fet-status:empty { display: none; }

/* the lessons: the school's colour as a soft tint under dark text (a white wash over the inline colour, under the
   words), so a full week reads calmly; a picked or moved lesson keeps its own marks */
:root[data-ui="new"] #tables-views table.timetable .label-studygroup,
:root[data-ui="new"] .side-tt-panel table.timetable .label-studygroup { position: relative; isolation: isolate; }
:root[data-ui="new"] #tables-views table.timetable .label-studygroup::before,
:root[data-ui="new"] .side-tt-panel table.timetable .label-studygroup::before {
    content: ''; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
    background: rgba(255, 255, 255, .38); box-shadow: inset 0 0 0 1px rgba(18, 35, 63, .08);
}
/* תכנון: its hour chips (div.tplan) take the same soft tint */
:root[data-ui="new"] #plantt .tplan { position: relative; isolation: isolate; border-radius: 6px; color: #12233f; margin: 1px 0; }
:root[data-ui="new"] #plantt .tplan::before {
    content: ''; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
    background: rgba(255, 255, 255, .38); box-shadow: inset 0 0 0 1px rgba(18, 35, 63, .08);
}
/* the bar's and the panel's menus: quiet rows, the chosen one in mint (was tan) */
:root[data-ui="new"] .schedule-nav .menu ul li a,
:root[data-ui="new"] .top-left-tabs .menu ul li a { display: flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 10px; color: var(--u-ink); font-weight: 500; }
:root[data-ui="new"] .schedule-nav .menu ul li a .glyphicon,
:root[data-ui="new"] .top-left-tabs .menu ul li a .glyphicon { padding: 0; width: 16px; text-align: center; color: var(--u-acc); }
:root[data-ui="new"] .schedule-nav .menu ul li a:hover,
:root[data-ui="new"] .top-left-tabs .menu ul li a:hover { background: var(--u-surface2); color: var(--u-ink); }
:root[data-ui="new"] .schedule-nav .menu ul li a.active,
:root[data-ui="new"] .schedule-nav .menu ul li a:focus,
:root[data-ui="new"] .top-left-tabs .menu ul li a.active,
:root[data-ui="new"] .top-left-tabs .menu ul li a:focus { background: var(--u-mint-bg); color: var(--u-mint-ink); font-weight: 700; }
/* the build board's wide layouts (פריסת מורים / כיתות / מקצועות / חדרים) scroll inside their frame too, beside an
   open side panel */
:root[data-ui="new"] #tables-views #timetable-magnets .no-auto-responive { overflow-x: auto; overflow-y: hidden; }
@media (min-width: 768px) { :root[data-ui="new"] #tables-views #timetable-magnets #fixed-headers-tbl { margin-top: 6px; } }
@media (min-width: 900px) { :root[data-ui="new"] .top-left-tabs ~ #tables-views #timetable-magnets { margin-inline-end: 420px; } }
:root[data-ui="new"] #tables-views .magnets-table > thead > tr > th { font-size: 12.5px; font-weight: 600; padding: 8px 4px !important; }
:root[data-ui="new"] #tables-views .magnets-table > tbody > tr > td { border-color: var(--u-line-soft) !important; }
:root[data-ui="new"] #tables-views .magnets-table > tbody > tr > td.tname { background: var(--u-surface2); }
:root[data-ui="new"] #tables-views .magnets-table th.seperate,
:root[data-ui="new"] #tables-views .magnets-table td.seperate { background: var(--u-line) !important; }
/* their lesson magnets take the same soft tint */
:root[data-ui="new"] #tables-views .magnet { position: relative; isolation: isolate; border-radius: 6px; color: #12233f; }
:root[data-ui="new"] #tables-views .magnet::before {
    content: ''; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
    background: rgba(255, 255, 255, .38); box-shadow: inset 0 0 0 1px rgba(18, 35, 63, .08);
}
/* a phone: the four tabs two by two, the reopen tab above the bottom bar (the wrapped bar fills the top), a window
   wider than the screen scrolls inside its card */
@media (max-width: 767px) {
    :root[data-ui="new"] .top-left-tabs .left-top-nav { flex-wrap: wrap; }
    :root[data-ui="new"] .top-left-tabs .left-top-nav > .btn { flex: 1 1 40%; }
    :root[data-ui="new"] .btn.small-rounded { top: auto !important; bottom: 86px; }
    :root[data-ui="new"] #tables-views .class-timetable { max-width: calc(100vw - 24px); overflow-x: auto; }
}
