/* ===================== Табель · новое оформление =====================
   По макету «Табель — десктоп»: широкая боковая колонка, крупная сводка, шкала смены, лента отметок.
   Тёмная тема по умолчанию (лайм-акцент), светлая включается кнопкой в колонке и запоминается.
   Подключается после style.css и переопределяет его токены, поэтому остальные страницы получают тот же вид. */
:root {
  --bg: #0c0d0f;
  --side-bg: #0e0f12;
  --side-line: #1c1f23;
  --panel: #15171a;
  --raised: #1b1e22;
  --inset: #111316;
  --line: #24272c;
  --line-soft: #1f2226;
  --line-strong: #33373e;
  --text: #f2f3f5;
  --text-2: #d5d8dd;
  --muted: #a3a7af;
  --faint: #4a4f57;
  --accent: #d7f75b;
  --accent-fg: #121405;
  --accent-hover: #e4ff7e;
  --ink: #d7f75b;
  --accent-soft: rgba(215, 247, 91, .12);
  --seg-on-bg: #f2f3f5;
  --seg-on-fg: #0c0d0f;
  --ok: #5bd48a;
  --warn: #f5b74a;
  --danger: #ff6b5e;
  --off: #8b9098;
  --ok-bg: rgba(91, 212, 138, .14);
  --warn-bg: rgba(245, 183, 74, .14);
  --danger-bg: rgba(255, 107, 94, .14);
  --alert-bg: #1a1314;
  --glow: transparent;
  --radius: 18px;
  --radius-sm: 12px;
  --font: "Onest", system-ui, "Segoe UI", sans-serif;
  --disp: "Unbounded", "Onest", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Menlo, Consolas, monospace;
  color-scheme: dark;
}
:root[data-theme="light"] {
  --bg: #f3f4f0;
  --side-bg: #ffffff;
  --side-line: #e2e5dc;
  --panel: #ffffff;
  --raised: #eff1ea;
  --inset: #f6f7f2;
  --line: #e1e4db;
  --line-soft: #e9ece3;
  --line-strong: #cdd2c5;
  --text: #14161a;
  --text-2: #2b2f36;
  --muted: #5d646e;
  --faint: #a9aeb5;
  --accent: #d7f75b;
  --accent-hover: #c9ec3c;
  --ink: #4a6200;
  --accent-soft: rgba(120, 160, 0, .12);
  --seg-on-bg: #14161a;
  --seg-on-fg: #ffffff;
  --ok: #17874a;
  --warn: #b06f00;
  --danger: #cf3b2d;
  --off: #6c727c;
  --ok-bg: rgba(23, 135, 74, .11);
  --warn-bg: rgba(176, 111, 0, .12);
  --danger-bg: rgba(207, 59, 45, .1);
  --alert-bg: #fff3f1;
  color-scheme: light;
}

html { background: var(--bg); }
body { background: var(--bg); font-family: var(--font); font-size: 14.5px; line-height: 1.45; -webkit-font-smoothing: antialiased; font-feature-settings: normal; }
a { color: var(--ink); } a:hover { color: var(--text); }
::selection { background: var(--accent); color: var(--accent-fg); }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; border-radius: 6px; }
code { color: var(--ink); background: var(--accent-soft); padding: 1px 6px; border-radius: 6px; font-family: var(--mono); }
.mono { font-family: var(--mono); letter-spacing: -.01em; }
.disp { font-family: var(--disp); }
.eyebrow { font-size: 11.5px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }

/* ---------- боковая колонка ---------- */
.shell { grid-template-columns: 264px minmax(0, 1fr); }
.side { background: var(--side-bg); border-right: 1px solid var(--side-line); backdrop-filter: none; padding: 22px 16px; gap: 4px; display: flex; flex-direction: column; overflow-y: auto; }
.brand { display: flex; align-items: center; gap: 12px; padding: 0 6px 18px; margin: 0; }
.brand strong { font-family: var(--font); font-size: 15px; font-weight: 700; letter-spacing: 0; text-transform: none; color: var(--text); }
.brand small { font-size: 12px; color: var(--muted); margin: 2px 0 0; }
.logo-tile { width: 40px; height: 40px; border-radius: 12px; background: var(--accent); color: var(--accent-fg); display: flex; align-items: center; justify-content: center; font-weight: 700; flex: none; }
.side .rest-switch { margin: 0 0 8px; }
.side-rest small { font-size: 12px; text-transform: none; letter-spacing: 0; margin-bottom: 6px; }
.nav a::before { display: none !important; }
.nav a, .nav details.more > summary { display: flex; align-items: center; gap: 12px; min-height: 40px; padding: 0 12px; margin: 0 0 2px; border-radius: 10px; color: var(--text-2); font-size: 14px; font-weight: 500; transform: none !important; transition: background .15s, color .15s; }
.nav a svg, .nav summary svg { flex: none; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.nav a:hover, .nav details.more > summary:hover, .nav details.more[open] > summary { background: var(--raised); color: var(--text); }
.nav a.active { background: var(--accent); color: var(--accent-fg); font-weight: 600; box-shadow: none; }
.nav .grp { margin: 0; padding: 16px 12px 6px; font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); opacity: .85; }
.nav details.more > summary::after { margin-left: auto; }
.nav details.more a { padding-left: 36px; min-height: 36px; font-size: 13.5px; color: var(--muted); }
.nav details.more a.active { color: var(--accent-fg); }
.side-foot { margin-top: auto; padding: 14px 6px 0; border-top: 1px solid var(--line-soft); display: flex; align-items: center; gap: 10px; font-size: 13.5px; line-height: 1.3; }
.who-av { width: 36px; height: 36px; border-radius: 50%; background: var(--raised); display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 600; text-transform: uppercase; flex: none; }
.who-t { display: flex; flex-direction: column; gap: 1px; min-width: 0; flex: 1; }
.who-t b { font-weight: 500; overflow: hidden; text-overflow: ellipsis; }
.who-t .small { font-size: 12px; color: var(--muted); }
.iconbtn { width: 36px; height: 36px; min-height: 36px; padding: 0; border-radius: 10px; border: 1px solid transparent; background: transparent; color: var(--muted); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; flex: none; text-decoration: none; }
.iconbtn:hover { background: var(--raised); color: var(--text); filter: none; }
.iconbtn svg { stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.t-light { display: none; } :root[data-theme="light"] .t-light { display: inline-flex; } :root[data-theme="light"] .t-dark { display: none; }
.side-foot a { text-decoration: none; }

/* ---------- основная область ---------- */
.main { padding: 28px 36px 64px; gap: 20px; }
.top { border: 0; padding: 0; margin: 0; align-items: flex-end; flex-wrap: wrap; }
.top h1 { font-family: var(--disp); font-size: 28px; font-weight: 600; letter-spacing: -.01em; margin: 6px 0 0; line-height: 1.15; }
.top h1::before { content: none; }
.top .eyebrow + h1 { margin-top: 6px; }
h1 { font-family: var(--disp); }
.sub { color: var(--muted); font-size: 13.5px; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; transition: none; }
.card:hover { border-color: var(--line); }
.card h2 { margin: 0 0 14px; font-size: 11.5px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
button, .btn { min-height: 44px; padding: 0 18px; border-radius: 12px; border: 1px solid var(--accent); background: var(--accent); color: var(--accent-fg); font: inherit; font-size: 13.5px; font-weight: 600; display: inline-flex; align-items: center; justify-content: center; gap: 8px; cursor: pointer; text-decoration: none; transition: background .15s, border-color .15s, transform .1s; }
button:hover, .btn:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: var(--accent-fg); filter: none; }
.btn.ghost, button.ghost { background: var(--raised); border-color: var(--line-strong); color: var(--text); }
.btn.ghost:hover, button.ghost:hover { border-color: var(--faint); background: var(--raised); color: var(--text); }
.btn.danger { background: var(--danger-bg); border-color: color-mix(in srgb, var(--danger) 45%, transparent); color: var(--danger); }
.btn.pri { background: var(--accent); border-color: var(--accent); color: var(--accent-fg); }
.btn svg { stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
input, select, textarea { min-height: 44px; padding: 0 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); color: var(--text); font: inherit; font-size: 14px; }
textarea { padding: 10px 14px; }
input:focus, select:focus, textarea:focus { border-color: var(--ink); box-shadow: 0 0 0 3px var(--accent-soft); outline: none; }
input[type="checkbox"], input[type="radio"] { min-height: 16px; accent-color: var(--ink); }
select { appearance: none; -webkit-appearance: none; padding-right: 36px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23a3a7af' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; }
.side select { height: 42px; background-color: var(--panel); border-color: var(--line-strong); font-weight: 500; }
.flash { background: var(--accent-soft); border: 1px solid color-mix(in srgb, var(--ink) 35%, transparent); border-radius: 12px; }
table { font-size: 13.5px; } th { background: var(--panel); font-size: 11.5px; letter-spacing: .08em; color: var(--muted); }
tbody tr:hover { background: var(--inset); } tr:hover td { background: transparent; }
.tag { border-radius: 999px; }
.tag.in { background: var(--ok-bg); color: var(--ok); } .tag.late, .tag.early { background: var(--warn-bg); color: var(--warn); } .tag.absent { background: var(--danger-bg); color: var(--danger); } .tag.wait { background: var(--raised); color: var(--muted); } .tag.done { background: var(--raised); color: var(--text-2); }
.chip { background: var(--raised); color: var(--text); border: 1px solid var(--line); }
.chip.on { background: var(--accent); color: var(--accent-fg); }
.pill { background: var(--raised); color: var(--text-2); }
.hint, .pitem, .day { border-radius: 14px; }
.pitem { background: var(--panel); border-color: var(--line); }
.day { background: var(--inset); }
.day.sel { outline-color: var(--ink); }
.stats .card { background: var(--panel); }
.stat-value { font-family: var(--disp); font-weight: 600; letter-spacing: -.03em; }
.stat-bar { background: var(--line); }
.stat-bar > i { background: var(--accent); }
.dot { background: var(--off); }
.dot.on { background: var(--ok); } .dot.off { background: var(--danger); }
.badge { background: var(--panel); border-color: var(--line); }
.who-row:hover { background: var(--inset); }
.av { background: var(--raised); border: 1px solid var(--line-strong); color: var(--text); }

/* ---------- сводка «Сегодня на точке» ---------- */
.head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; }
.hdr-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.livechip { display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 14px; border-radius: 12px; background: var(--panel); border: 1px solid var(--line); color: var(--text-2); font-size: 13.5px; font-weight: 500; white-space: nowrap; }
.live { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); animation: pulse 2s infinite; flex: none; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--ok) 55%, transparent); } 70% { box-shadow: 0 0 0 9px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
.alert { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; padding: 14px 18px; border-radius: 14px; background: var(--alert-bg); border: 1px solid color-mix(in srgb, var(--danger) 45%, transparent); }
.alert.info { background: var(--panel); border-color: var(--line-strong); }
.alert-ic { width: 36px; height: 36px; border-radius: 10px; background: var(--danger-bg); color: var(--danger); display: flex; align-items: center; justify-content: center; flex: none; }
.alert.info .alert-ic { background: var(--raised); color: var(--muted); }
.alert-ic svg { stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.alert-t { flex: 1 1 260px; display: flex; flex-direction: column; gap: 2px; }
.alert-t b { font-size: 14.5px; font-weight: 600; } .alert-t span { font-size: 13px; color: var(--muted); }
.alert .btn { min-height: 40px; }

.kpis { display: grid; grid-template-columns: repeat(4, 1fr); padding: 0; overflow: hidden; }
.kpi { display: flex; flex-direction: column; gap: 8px; padding: 18px 20px; min-height: 104px; }
.kpi + .kpi { border-left: 1px solid var(--line); }
.kpi .v { font-family: var(--disp); font-size: 34px; font-weight: 600; letter-spacing: -.03em; line-height: 1; }
.kpi .v .of { color: var(--faint); font-size: 22px; }
.kpi .l { font-size: 13px; color: var(--muted); display: flex; align-items: center; gap: 8px; }
.kpi .h { font-size: 12.5px; color: var(--muted); }
.kpi .dot { width: 8px; height: 8px; flex: none; }

.content { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 20px; align-items: start; }
.timeline { padding: 0; overflow: hidden; }
.tl-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; padding: 18px 20px; }
.tl-head h2 { margin: 0; font-size: 16px; font-weight: 600; letter-spacing: 0; text-transform: none; color: var(--text); }
.seg { display: inline-flex; padding: 4px; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; gap: 2px; max-width: 100%; overflow-x: auto; }
.seg button { min-height: 36px; height: 36px; padding: 0 14px; border: 0; border-radius: 9px; background: transparent; color: var(--muted); font-size: 13.5px; font-weight: 500; white-space: nowrap; }
.seg button:hover { background: var(--raised); color: var(--text); }
.seg button.on { background: var(--seg-on-bg); color: var(--seg-on-fg); font-weight: 600; }
.seg .n { font-size: 11.5px; opacity: .75; }
.gr { display: grid; grid-template-columns: 260px minmax(0, 1fr) 200px; gap: 18px; align-items: center; padding: 12px 20px; border-top: 1px solid var(--line-soft); }
.gr[hidden] { display: none; }
.gr:hover { background: var(--inset); }
.gr.axis { background: var(--inset); padding-top: 10px; padding-bottom: 10px; border-top-color: var(--line); font-size: 12px; color: var(--muted); }
.gr.axis:hover { background: var(--inset); }
.gr.axis .r { text-align: right; }
.ticks { position: relative; height: 16px; }
.tk { position: absolute; top: 0; font-size: 11px; color: var(--muted); transform: translateX(-50%); }
.tk.first { transform: none; } .tk.last { transform: translateX(-100%); }
.tk.now-l { color: var(--danger); font-weight: 600; background: var(--inset); padding: 0 4px; }
.who { display: flex; align-items: center; gap: 12px; min-width: 0; }
.who .av { width: 38px; height: 38px; font-size: 12.5px; letter-spacing: 0; flex: none; }
.av.on { background: var(--accent); color: var(--accent-fg); border-color: transparent; }
.av.done { background: var(--line-strong); color: var(--text); border-color: transparent; }
.av.none { background: var(--raised); color: var(--muted); }
.nm { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.nm b { font-weight: 600; font-size: 14px; line-height: 1.25; white-space: normal; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow-wrap: anywhere; }
.nm b a { color: inherit; } .nm b a:hover { color: var(--ink); }
.nm small { font-size: 12px; color: var(--muted); }
.track { position: relative; height: 30px; border-radius: 8px; background-color: var(--inset); background-image: repeating-linear-gradient(to right, var(--line-soft) 0 1px, transparent 1px calc(100% / 6)); }
.gr.axis ~ .gr .track { border: 1px solid var(--line-soft); }
.bar { position: absolute; top: 5px; height: 20px; border-radius: 6px; display: flex; align-items: center; padding: 0 8px; font-family: var(--mono); font-size: 11px; font-weight: 500; white-space: nowrap; overflow: hidden; }
.bar.on { background: var(--accent); color: var(--accent-fg); }
.bar.done { background: color-mix(in srgb, var(--ok) 38%, var(--panel)); color: var(--text); }
.now { position: absolute; top: -4px; bottom: -4px; width: 2px; background: var(--danger); }
.empty { position: absolute; inset: 0; display: flex; align-items: center; padding-left: 12px; font-size: 12px; color: var(--muted); }
.st { display: flex; justify-content: flex-end; min-width: 0; } .st .chip { max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.mt { display: none; }
.chip { display: inline-flex; align-items: center; gap: 6px; height: 26px; min-height: 0; padding: 0 10px; border-radius: 999px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.chip.c-on { background: var(--ok-bg); color: var(--ok); border-color: transparent; }
.chip.c-done { background: var(--raised); color: var(--text-2); border-color: transparent; }
.chip.c-none { background: transparent; color: var(--muted); border: 1px dashed var(--line-strong); }
.chip.c-alert { background: var(--danger-bg); color: var(--danger); border-color: transparent; }
.chip.c-warn { background: var(--warn-bg); color: var(--warn); border-color: transparent; }
.chip .dot { width: 7px; height: 7px; }
.tl-none { padding: 20px; margin: 0; }

.aside-col { display: flex; flex-direction: column; gap: 16px; }
.feed { padding: 18px 20px; }
.feed-head { display: flex; justify-content: space-between; align-items: center; padding-bottom: 6px; }
.feed-head h2 { margin: 0; font-size: 16px; font-weight: 600; letter-spacing: 0; text-transform: none; color: var(--text); }
.feed-head a { font-size: 13px; font-weight: 500; }
.ev { display: grid; grid-template-columns: 52px 14px 1fr; gap: 12px; align-items: start; padding: 10px 0; }
.ev .t { font-size: 13px; color: var(--text); }
.ev .rail { display: flex; flex-direction: column; align-items: center; align-self: stretch; }
.ev .pt { width: 10px; height: 10px; border-radius: 50%; margin-top: 5px; background: var(--off); }
.ev .pt.in { background: var(--accent); }
.ev .ln { flex: 1; width: 2px; background: var(--line); margin-top: 4px; }
.ev .tx { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ev .tx b { font-size: 13.5px; font-weight: 500; overflow-wrap: anywhere; } .ev .tx small { font-size: 12px; color: var(--muted); }
.nosched { padding: 18px 20px; display: flex; flex-direction: column; gap: 12px; border-color: color-mix(in srgb, var(--warn) 40%, transparent); }
.nosched h2 { margin: 0; font-size: 15px; font-weight: 600; letter-spacing: 0; text-transform: none; color: var(--text); }
.nosched p { margin: 0; font-size: 13px; color: var(--text-2); line-height: 1.5; }
.nosched .btn { width: 100%; }

/* ---------- вход ---------- */
.login-wrap { background: radial-gradient(800px 420px at 50% 0%, var(--accent-soft), transparent 60%), var(--bg); }
.login-card { padding: 32px; border-radius: 22px; }
.login-card h1 { font-family: var(--disp); font-size: 24px; }

/* ---------- нижнее меню телефона ---------- */
.mnav { display: none; }
@media (max-width: 1180px) {
  .content { grid-template-columns: 1fr; }
  .aside-col { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
}
@media (max-width: 1100px) {
  .shell { display: flex; flex-direction: column; }
  .mobile-bar { background: color-mix(in srgb, var(--bg) 90%, transparent); border-bottom: 1px solid var(--line); }
  .mobile-bar-row { gap: 12px; }
  .mobile-bar .logo-tile { width: 38px; height: 38px; border-radius: 11px; font-size: 15px; }
  .side { width: min(300px, 86vw); background: var(--side-bg); }
  .main { padding: 16px 16px 96px; }
  .mnav { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; background: var(--side-bg); border-top: 1px solid var(--side-line); padding: 6px 6px calc(10px + env(safe-area-inset-bottom)); }
  .mnav a, .mnav button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-height: 52px; padding: 0; border: 0; border-radius: 10px; background: transparent; color: var(--muted); font-size: 11px; font-weight: 500; text-decoration: none; }
  .mnav a.on { color: var(--ink); font-weight: 600; }
  .mnav svg { stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
}
@media (max-width: 900px) {
  .gr { grid-template-columns: 240px minmax(0, 1fr) 190px; }
  .aside-col { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .kpis { grid-template-columns: 1fr 1fr; }
  .kpi:nth-child(3) { border-left: 0; } .kpi:nth-child(n+3) { border-top: 1px solid var(--line); }
  .kpi .v { font-size: 28px; }
  .gr { grid-template-columns: 1fr auto; gap: 10px; padding: 12px 16px; }
  .gr .track, .gr.axis { display: none !important; }
  .mt { display: block; font-size: 12.5px; color: var(--text-2); text-align: right; }
  .st { grid-column: 1 / -1; justify-content: flex-start; padding-left: 50px; }
  .top h1, .head h1 { font-size: 22px; }
  .hdr-actions { width: 100%; } .hdr-actions .btn { flex: 1; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (prefers-reduced-motion: reduce) { .live { animation: none; } }
.gr .who { flex-direction: row; align-items: center; } .gr .who .nm { align-items: flex-start; text-align: left; }
.bar.short { overflow: visible; color: transparent; } .bar.short::after { content: attr(data-l); position: absolute; left: calc(100% + 6px); color: var(--text-2); }
@media (max-width: 1100px) { .head { align-items: stretch; } }
@media (min-width: 1101px) { .top:not(.head) { flex-wrap: nowrap; align-items: flex-start; } .top:not(.head) > div:first-child { min-width: 0; flex: 1 1 auto; } }

/* «Кто на смене»: на ноутбуках лента отметок уходит под таймлайн, чтобы шкала времени была широкой */
@media (max-width: 1599px) { .content { grid-template-columns: minmax(0, 1fr); } }
@media (min-width: 1101px) and (max-width: 1599px) { .aside-col { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; } }
.st .chip { white-space: normal; text-align: center; height: auto; min-height: 26px; padding-top: 3px; padding-bottom: 3px; line-height: 1.25; }

/* «Общая статистика»: название ресторана — ссылка, а не кнопка-пилюля */
.net-table .linkbtn { background: none; border: 0; border-radius: 6px; box-shadow: none; color: var(--text); padding: 6px 0; min-height: 0; height: auto; font-size: 14px; font-weight: 600; text-align: left; justify-content: flex-start; text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 4px; }
.net-table .linkbtn:hover { background: none; border: 0; color: var(--text); text-decoration-color: currentColor; filter: none; }
@media (max-width: 700px) {
  .table-wrap table.net-table { min-width: 0; }
  .net-table thead { display: none; }
  .net-table tbody tr { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 16px; padding: 14px 0; border-top: 1px solid var(--line-soft); }
  .net-table td { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; padding: 0; border: 0; white-space: normal; font-size: 13.5px; }
  .net-table td:first-child { grid-column: 1 / -1; font-size: 15px; }
  .net-table td.num::before { content: attr(data-l); color: var(--muted); font-size: 12px; font-family: var(--font); font-weight: 400; }
  .net-table td:last-child { grid-column: 1 / -1; }
  .net-table td:empty { display: none; }
  .net-table tr.net-total td { font-weight: 600; }
  .net-table tr.net-total { border-top: 2px solid var(--line); }
  .net-table td .btn { width: 100%; }
}

/* «График»: строка импорта и столбец «Сотрудник» */
.form-row { align-items: center; }
.form-row > button, .form-row > .btn { height: 46px; min-height: 46px; padding: 0 22px; flex: none; }
input[type="file"] { height: 46px; min-height: 46px; display: flex; align-items: center; padding: 0 8px; font-size: 13.5px; color: var(--muted); }
input[type="file"]::file-selector-button { margin-right: 12px; height: 32px; padding: 0 14px; border: 0; border-radius: 8px; background: var(--raised); color: var(--text); font: inherit; font-weight: 500; cursor: pointer; }
input[type="file"]::file-selector-button:hover { background: var(--line-strong); }
.cal td:first-child, .cal th:first-child { min-width: 300px; text-align: left; position: sticky; left: 0; z-index: 2; background: var(--panel); }
.cal th:first-child { padding-left: 14px; }
.cal .emp-line { display: grid; grid-template-columns: minmax(0, 1fr) 132px; gap: 12px; align-items: center; padding: 6px 4px 6px 10px; }
.cal .who { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 3px; min-width: 0; text-align: left; }
.cal .who .pos { font-size: 10.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.cal .who a strong { font-size: 14px; font-weight: 600; line-height: 1.25; color: var(--text); }
.cal .who .muted { font-size: 12px; }
.cal .emp-line form { margin: 0; display: flex; justify-content: flex-end; }
.cal .emp-line .btn { width: 132px; min-height: 30px !important; padding: 0 10px !important; font-size: 12px !important; white-space: nowrap; }
.cal tr.sep td { text-align: left; padding: 10px 14px; position: static; background: var(--inset); color: var(--muted); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; }
.cal td.cell { vertical-align: middle; }
.cal tbody tr:hover td:first-child { background: var(--inset); }

