/* IzyShift — десктоп (≥ 1024 px), 01.10.2026. Направление B «Pass»
   (design/mockups-2026-10/b-pass) + лента дня и выручка по часам из C.

   Файл подключён с media="(min-width: 1024px)", и каждое правило — под
   body.dk (класс ставит desk.js только в браузере, не в Mini App). Телефон,
   Mini App и терминал отметки (он берёт app.css) этот файл не видят. */

@font-face { font-family: "Inter"; src: url("fonts/inter-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Inter"; src: url("fonts/inter-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Inter"; src: url("fonts/inter-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Inter"; src: url("fonts/inter-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }
/* 03.10: греческий — отдельные файлы, браузер берёт их, только когда на странице греческий (unicode-range) */
@font-face { font-family: "Inter"; src: url("fonts/inter-greek-400.woff2") format("woff2"); font-weight: 400; font-display: swap; unicode-range: U+0370-03FF, U+1F00-1FFF; }
@font-face { font-family: "Inter"; src: url("fonts/inter-greek-500.woff2") format("woff2"); font-weight: 500; font-display: swap; unicode-range: U+0370-03FF, U+1F00-1FFF; }
@font-face { font-family: "Inter"; src: url("fonts/inter-greek-600.woff2") format("woff2"); font-weight: 600; font-display: swap; unicode-range: U+0370-03FF, U+1F00-1FFF; }
@font-face { font-family: "Inter"; src: url("fonts/inter-greek-700.woff2") format("woff2"); font-weight: 700; font-display: swap; unicode-range: U+0370-03FF, U+1F00-1FFF; }

body.dk {
  --rail: #1B1E22; --rail-2: #2A2F36; --rail-ink: #B4BAC3;
  --canvas: #F1F2F4; --surface: #FFFFFF; --head: #F7F8F9;
  --ink: #15181C; --ink-2: #3E444C; --muted: #646C77; --line: #E1E4E8; --line-2: #CDD2D8;
  --primary: #1B1E22; --signal: #F0A202; --signal-soft: #FFF4D6;
  --ok: #1A7F4B; --ok-soft: #E3F2E9; --warn: #A65500; --warn-soft: #FDEBD3;
  --err: #C7302B; --err-soft: #FBE4E3; --live: #0B6FB8; --live-soft: #E1EEF8;
  --accent: #0B6FB8;
  --t-2xs: 11px; --t-xs: 12px; --t-sm: 13px; --t-md: 15px; --t-lg: 18px; --t-xl: 20px;
  --r: 4px; --r-lg: 6px;
  --side-w: 208px; --top-h: 52px; --row: 34px;
  --line-h: 1.45;
  font: 400 var(--t-sm)/var(--line-h) "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-feature-settings: "tnum" 1, "cv11" 1;
  -webkit-font-smoothing: antialiased;
  background: var(--canvas);
  color: var(--ink);
}
body.dk kbd { font: 600 10.5px/1 "Inter", sans-serif; color: var(--muted); border: 1px solid var(--line-2); border-radius: 3px;
  padding: 2px 4px; background: var(--surface); min-width: 16px; text-align: center; display: inline-block; }
body.dk :focus-visible { outline: 2px solid var(--signal); outline-offset: 1px; }

/* ── Каркас ───────────────────────────────────────────── */
body.dk #app { display: grid; grid-template-columns: var(--side-w) minmax(0, 1fr); grid-template-rows: var(--top-h) auto auto 1fr;
  min-height: 100vh; align-items: start; }
body.dk #app > .top, body.dk #app > .tabs { display: none; }
body.dk #app > #notices { grid-column: 2; grid-row: 2; padding: 12px 24px 0; }
body.dk #app > .view { grid-column: 2; grid-row: 4; margin: 0; max-width: none; width: 100%; padding: 16px 24px 48px; min-width: 0; }

body.dk #dk-side { display: flex; flex-direction: column; grid-column: 1; grid-row: 1 / -1; position: sticky; top: 0; height: 100vh;
  background: var(--rail); color: var(--rail-ink); padding: 0 8px 8px; overflow-y: auto; z-index: 30; }
.dk-brand { height: var(--top-h); display: flex; align-items: center; gap: 9px; padding: 0 6px; color: #fff; font-weight: 700; font-size: 15px; flex: none; }
.dk-mark { width: 24px; height: 24px; border-radius: 5px; background: var(--signal); color: var(--rail); display: grid; place-items: center; font-size: 12px; font-weight: 700; flex: none; }
.dk-collapse { margin-left: auto; color: var(--rail-ink); background: none; border: 0; width: 30px; height: 30px; border-radius: 4px; display: grid; place-items: center; cursor: pointer; }
.dk-collapse:hover { background: var(--rail-2); color: #fff; }
.dk-nav { display: flex; flex-direction: column; gap: 1px; }
.dk-g { margin: 14px 0 3px; padding: 0 8px; font-size: var(--t-2xs); font-weight: 500; color: #8A929D; text-transform: none; letter-spacing: 0; }
.dk-item { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 34px; padding: 0 8px; border: 0; border-radius: var(--r);
  background: none; color: var(--rail-ink); font: 500 var(--t-sm) "Inter", system-ui, sans-serif; text-align: left; cursor: pointer; position: relative; }
.dk-item .ic { color: #8E96A1; flex: none; }
.dk-item:hover { background: var(--rail-2); color: #F1F3F5; }
.dk-item.on { background: var(--rail-2); color: #fff; }
.dk-item.on::before { content: ""; position: absolute; left: -8px; top: 7px; bottom: 7px; width: 3px; border-radius: 0 2px 2px 0; background: var(--signal); }
.dk-item.on .ic { color: var(--signal); }
.dk-item .dk-lbl { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dk-badge { margin-left: auto; font-size: var(--t-2xs); font-weight: 700; color: #fff; background: #3E444C; border-radius: 3px; padding: 1px 6px; flex: none; }
.dk-badge.hot { background: var(--err); }
.dk-side-foot { margin-top: auto; border-top: 1px solid #30353C; padding-top: 6px; display: flex; flex-direction: column; gap: 1px; }
.dk-side-foot kbd { background: #2A2F36; border-color: #3E444C; color: #B4BAC3; flex: none; }
.dk-item.dk-keys { color: #9AA2AD; font-size: var(--t-xs); }
body.dk.dk-collapsed .dk-k { display: none; }
@media (max-width: 1199px) { body.dk .dk-k { display: none; } }
.dk-grid thead th.today .d { color: var(--ink); }

/* свёрнутое меню: только иконки (по «[» или кнопкой; уже 1200 px — всегда) */
body.dk.dk-collapsed { --side-w: 60px; }
body.dk.dk-collapsed .dk-lbl, body.dk.dk-collapsed .dk-g { display: none; }
body.dk.dk-collapsed .dk-brand { justify-content: center; padding: 0; flex-direction: column; gap: 4px; height: auto; padding: 12px 0 6px; }
body.dk.dk-collapsed .dk-collapse { margin: 0; }
body.dk.dk-collapsed .dk-item { justify-content: center; padding: 0; }
body.dk.dk-collapsed .dk-badge { position: absolute; top: 2px; right: 2px; padding: 0 4px; font-size: 10px; }
body.dk.dk-collapsed .dk-nav { margin-top: 10px; }
@media (max-width: 1199px) {
  body.dk { --side-w: 60px; }
  body.dk .dk-lbl, body.dk .dk-g { display: none; }
  body.dk .dk-brand { justify-content: center; padding: 12px 0 6px; flex-direction: column; gap: 4px; height: auto; }
  body.dk .dk-collapse { display: none; }
  body.dk .dk-item { justify-content: center; padding: 0; }
  body.dk .dk-badge { position: absolute; top: 2px; right: 2px; padding: 0 4px; font-size: 10px; }
  body.dk .dk-nav { margin-top: 10px; }
}

body.dk #dk-top { display: flex; align-items: center; gap: 8px; grid-column: 2; grid-row: 1; position: sticky; top: 0; z-index: 25;
  height: var(--top-h); padding: 0 16px 0 20px; background: var(--surface); border-bottom: 1px solid var(--line); min-width: 0; }
.dk-venue { display: inline-flex; align-items: center; gap: 7px; height: 34px; padding: 0 10px; border: 1px solid var(--line-2); border-radius: var(--r);
  background: var(--surface); font: 600 var(--t-sm) "Inter", system-ui, sans-serif; color: var(--ink); cursor: pointer; min-width: 0; max-width: 340px; }
.dk-venue[disabled] { cursor: default; opacity: 1; }
.dk-venue b, .dk-venue #dk-loc { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dk-venue #dk-loc { color: var(--muted); font-weight: 500; }
.dk-venue .dk-sep { color: var(--line-2); }
.dk-venue .ic { color: var(--ink-2); flex: none; }
.dk-search { flex: 0 1 360px; display: flex; align-items: center; gap: 8px; height: 34px; padding: 0 8px 0 10px; margin-left: 4px; min-width: 150px;
  border: 1px solid var(--line); border-radius: var(--r); background: var(--head); color: var(--muted); font: 400 var(--t-sm) "Inter", system-ui, sans-serif; cursor: pointer; }
.dk-search:hover { border-color: var(--line-2); color: var(--ink-2); }
.dk-search span { flex: 1; text-align: left; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dk-top-acts { margin-left: auto; display: flex; align-items: center; gap: 8px; flex: none; }
.dk-vsep { width: 1px; height: 22px; background: var(--line); }
body.dk #dk-top .lang-btn { border-radius: var(--r); border-color: var(--line-2); min-height: 30px; font-size: var(--t-2xs); }
body.dk .lang-menu button { min-height: 34px; font-size: var(--t-sm, 13px); }
.dk-me { display: inline-flex; align-items: center; gap: 7px; height: 34px; padding: 0 6px; border: 0; border-radius: var(--r); background: none;
  font: 600 var(--t-xs) "Inter", system-ui, sans-serif; color: var(--ink); cursor: pointer; max-width: 220px; }
.dk-me b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.dk-me:hover { background: var(--head); }
@media (max-width: 1279px) { .dk-me b, .dk-search span, .dk-btn#dk-pub > span:not(.dk-n) { display: none; } .dk-search { flex: 0 1 46px; min-width: 46px; } }

body.dk #dk-head { display: flex; align-items: center; gap: 12px; grid-column: 2; grid-row: 3; padding: 18px 24px 0; min-width: 0; }
#dk-head h1 { margin: 0; font-size: var(--t-xl); font-weight: 700; letter-spacing: -0.01em; }
#dk-head .dk-sub { color: var(--muted); font-weight: 500; }
#dk-head .dk-head-acts { margin-left: auto; display: flex; gap: 8px; }
.dk-status { display: inline-flex; align-items: center; gap: 6px; color: var(--warn); font-weight: 600; font-size: var(--t-xs); }
.dk-status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--signal); }

/* ── Кнопки, поля, метки (токены B) ──────────────────── */
.dk-btn { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; border-radius: var(--r); border: 1px solid var(--line-2);
  background: var(--surface); font: 600 var(--t-xs) "Inter", system-ui, sans-serif; white-space: nowrap; cursor: pointer; color: var(--ink); }
.dk-btn:hover { background: var(--head); }
.dk-btn .ic { color: var(--ink-2); }
.dk-btn.primary { background: var(--primary); border-color: var(--primary); color: #fff; }
.dk-btn.primary:hover { background: #30353C; }
.dk-btn.primary .ic { color: #fff; }
.dk-btn.primary kbd { background: #3A3F47; border-color: #4B515A; color: #D8DCE1; }
.dk-btn.xs { height: 28px; padding: 0 9px; font-size: var(--t-2xs); }
.dk-btn.ghost { border-color: transparent; background: none; color: var(--ink-2); }
.dk-btn[disabled] { opacity: .45; cursor: default; }
.dk-n { background: var(--signal); color: var(--ink); border-radius: 3px; padding: 0 5px; font-size: var(--t-2xs); line-height: 16px; font-weight: 700; }
.dk-icon { width: 30px; height: 30px; display: inline-grid; place-items: center; border: 0; border-radius: var(--r); background: none; color: var(--ink-2); cursor: pointer; }
.dk-icon:hover { background: var(--line); color: var(--ink); }
.dk-ava { width: 24px; height: 24px; border-radius: 4px; display: inline-grid; place-items: center; font-size: 10.5px; font-weight: 700; flex: none; letter-spacing: .02em; }
.dk-tag { display: inline-block; padding: 1px 7px; border-radius: 3px; font-size: var(--t-2xs); font-weight: 600; background: var(--head); color: var(--ink-2); border: 1px solid var(--line); white-space: nowrap; }
.dk-tag.ok { background: var(--ok-soft); color: var(--ok); border-color: transparent; }
.dk-tag.warn { background: var(--warn-soft); color: var(--warn); border-color: transparent; }
.dk-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #A5ACB5; margin-right: 6px; vertical-align: 1px; }
.dk-dot.ok { background: var(--ok); }
.sq { display: inline-block; width: 8px; height: 8px; border-radius: 2px; margin-right: 6px; vertical-align: 0; flex: none; }
.dk-empty { color: var(--muted); padding: 18px 16px; margin: 0; }
.dk-toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); background: var(--ink); color: #fff; padding: 10px 16px; border-radius: var(--r-lg);
  font: 500 var(--t-sm) "Inter", system-ui, sans-serif; box-shadow: 0 10px 30px rgba(0,0,0,.25); opacity: 0; pointer-events: none; transition: .18s; z-index: 200; }
.dk-toast.on { opacity: 1; transform: translate(-50%, 0); }

/* меню (пользователь, компании) */
.dk-menu { position: fixed; z-index: 120; min-width: 220px; max-width: 320px; background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--r-lg);
  box-shadow: 0 12px 32px -8px rgba(21,24,28,.25); padding: 4px; font: 400 var(--t-sm) "Inter", system-ui, sans-serif; color: #15181C; }
.dk-menu-info { padding: 8px 10px; border-bottom: 1px solid #E1E4E8; margin-bottom: 4px; display: flex; flex-direction: column; gap: 2px; }
.dk-menu-info .muted { color: #646C77; font-size: 12px; }
.dk-menu-item { display: flex; align-items: center; gap: 8px; width: 100%; min-height: 34px; padding: 0 10px; border: 0; border-radius: 4px; background: none;
  font: inherit; color: inherit; text-align: left; cursor: pointer; }
.dk-menu-item:hover, .dk-menu-item:focus-visible { background: #F7F8F9; }
.dk-menu-item.on { font-weight: 600; }
.dk-menu-item.on::after { content: "✓"; margin-left: auto; color: #1A7F4B; }

/* палитра команд */
.dk-pal-wrap { position: fixed; inset: 0; z-index: 150; background: rgba(21,24,28,.38); display: flex; justify-content: center; align-items: flex-start; padding-top: 12vh; }
.dk-pal { width: min(620px, 92vw); background: #fff; border-radius: 8px; box-shadow: 0 24px 60px -12px rgba(0,0,0,.45); overflow: hidden;
  font: 400 13px/1.4 "Inter", system-ui, sans-serif; color: #15181C; }
.dk-pal-in { display: flex; align-items: center; gap: 10px; padding: 0 14px; border-bottom: 1px solid #E1E4E8; color: #646C77; }
.dk-pal-in input { flex: 1; height: 50px; border: 0; outline: 0; font: 400 16px "Inter", system-ui, sans-serif; color: #15181C; background: none; }
.dk-pal-list { max-height: 52vh; overflow: auto; padding: 6px; }
.dk-pal-g { font-size: 11px; font-weight: 600; color: #646C77; padding: 8px 8px 4px; }
.dk-pal-item { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 36px; padding: 0 10px; border: 0; border-radius: 4px; background: none;
  font: inherit; color: inherit; text-align: left; cursor: pointer; }
.dk-pal-item .ic { color: #3E444C; }
.dk-pal-item > span:not(.dk-ava) { flex: 1; }
.dk-pal-in input:focus-visible { outline: none; }
.dk-pal-item em { font-style: normal; color: #646C77; font-size: 12px; }
.dk-pal-item.on { background: #FFF4D6; box-shadow: inset 2px 0 0 #F0A202; }
.dk-pal-empty { padding: 16px 10px; color: #646C77; margin: 0; }
.dk-pal-foot { border-top: 1px solid #E1E4E8; padding: 8px 14px; font-size: 11px; color: #646C77; background: #F7F8F9; }
.dk-pal-foot kbd { margin: 0 1px; }
body.dk .dk-help .sheet { max-width: 460px; }
.dk-keys-t { width: 100%; border-collapse: collapse; margin: 4px 0 12px; }
.dk-keys-t td { padding: 7px 4px; border-bottom: 1px solid var(--line); }
.dk-keys-t td:first-child { width: 120px; white-space: nowrap; }

/* ── Общие компоненты app.css в стиле B ───────────────── */
body.dk #app .card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 16px; margin: 0 0 16px; box-shadow: none; }
body.dk #app .card + .card { margin-top: 0; }
body.dk #app h2 { font-size: var(--t-md); font-weight: 700; text-transform: none; letter-spacing: 0; color: var(--ink); margin-bottom: 10px; }
body.dk #app h3.sub { font-size: var(--t-sm); font-weight: 700; margin: 16px 0 6px; }
body.dk #app .muted { color: var(--muted); }
body.dk #app .small { font-size: var(--t-xs); }
body.dk #app .note { font-size: var(--t-xs); margin-top: 8px; min-height: 0; }
body.dk #app .note:empty { display: none; }
body.dk .btn { width: auto; min-height: 0; height: 34px; padding: 0 14px; font: 600 var(--t-xs) "Inter", system-ui, sans-serif; border-radius: var(--r);
  border: 1px solid var(--line-2); background: var(--surface); color: var(--ink); display: inline-flex; align-items: center; justify-content: center; gap: 6px; white-space: nowrap; }
body.dk .btn:hover { background: var(--head); }
body.dk .btn:active { transform: none; }
body.dk .btn.primary { background: var(--primary); border-color: var(--primary); color: #fff; }
body.dk .btn.primary:hover { background: #30353C; }
body.dk .btn.small { height: 30px; padding: 0 11px; font-size: var(--t-xs); }
body.dk .btn.big { height: 44px; padding: 0 28px; font-size: var(--t-md); margin-top: 14px; min-width: 220px; }
body.dk .btn.out { background: var(--ink); border-color: var(--ink); color: #fff; }
body.dk .btn.danger { background: var(--err); border-color: var(--err); color: #fff; }
body.dk .btn.danger-ghost { color: var(--err); border-color: #E7B3B1; background: var(--surface); }
body.dk .btn.off-alt, body.dk .btn.small.off { background: var(--surface); border-color: var(--line-2); color: var(--ink-2); width: auto; }
body.dk .btn[disabled] { opacity: .45; }
body.dk .link { color: var(--accent); font: 500 var(--t-sm) "Inter", system-ui, sans-serif; }
body.dk .link:hover { text-decoration: underline; }
body.dk .link.small { font-size: var(--t-xs); }
body.dk .link.quiet { color: var(--muted); font-size: var(--t-xs); }
body.dk .inp { height: 34px; padding: 0 10px; font: 400 var(--t-sm) "Inter", system-ui, sans-serif; border: 1px solid var(--line-2); border-radius: var(--r); background-color: var(--surface); color: var(--ink); }
body.dk textarea.inp { height: auto; padding: 8px 10px; }
body.dk .inp:focus { outline: none; border-color: var(--signal); box-shadow: 0 0 0 2px var(--signal-soft); }
body.dk select.inp { padding-right: 28px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23646C77' stroke-width='2.2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 9px center; }
body.dk .inp.num { width: 110px; }
body.dk .lbl { font-size: var(--t-xs); color: var(--muted); font-weight: 500; }
body.dk #app .row { padding: 8px 0; font-size: var(--t-sm); }
body.dk .row-add { gap: 8px; flex-wrap: wrap; align-items: center; }
body.dk .row-add .btn { flex: 0 0 auto; }
body.dk .stack { gap: 8px; }
body.dk .stack > .btn { align-self: flex-start; }
body.dk .card > .btn, body.dk .stack > .btn, body.dk .sy-form > .btn { margin-top: 4px; }
body.dk .segmented { display: inline-flex; flex-wrap: wrap; gap: 2px; margin: 0 0 10px; padding: 2px; background: var(--head); border: 1px solid var(--line); border-radius: var(--r); }
body.dk .seg { flex: none; height: 28px; padding: 0 11px; border: 0; border-radius: 3px; background: none; font: 500 var(--t-xs) "Inter", system-ui, sans-serif; color: var(--ink-2); white-space: nowrap; }
body.dk .seg:hover { background: var(--surface); }
body.dk .seg.active { background: var(--ink); color: #fff; }
body.dk .chips { gap: 4px; margin-bottom: 8px; }
body.dk .chip { height: 28px; padding: 0 10px; border-radius: var(--r); background: var(--head); border: 1px solid var(--line); font: 500 var(--t-xs) "Inter", system-ui, sans-serif; color: var(--ink-2); }
body.dk button.chip { cursor: pointer; }
body.dk .chip.on { background: var(--ink); border-color: var(--ink); color: #fff; }
body.dk .radio { padding: 10px 12px; border-radius: var(--r); border-color: var(--line); gap: 10px; }
body.dk .radio:has(input:checked) { border-color: var(--ink); background: var(--head); box-shadow: inset 2px 0 0 var(--signal); }
body.dk .radio b { font-size: var(--t-sm); }
body.dk .radio em { font-size: var(--t-xs); }
body.dk .check, body.dk .xp-tgl { font-size: var(--t-sm); }
body.dk input[type=checkbox], body.dk input[type=radio] { width: 16px; height: 16px; accent-color: var(--ink); }
body.dk .pill { border-radius: 3px; font-size: var(--t-2xs); font-weight: 600; padding: 1px 7px; }
body.dk .pill.own-badge { background: var(--signal-soft); color: #7A5300; }
body.dk .banner, body.dk .warn-note { border-radius: var(--r-lg); font-size: var(--t-sm); }
body.dk .banner { margin: 0 0 16px; }
body.dk .stats { gap: 0; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); overflow: hidden; }
body.dk .stat { border: 0; border-right: 1px solid var(--line); border-radius: 0; text-align: left; padding: 10px 16px; }
body.dk .stat:last-child { border-right: 0; }
body.dk .stat b { font-size: var(--t-lg); }
body.dk .stat span { font-size: var(--t-2xs); }

/* окна поверх (карточка смены, отпуск, публикация, выгрузка…) */
body.dk .sheet-wrap { background: rgba(21,24,28,.42); align-items: center; }
body.dk .sheet { border-radius: 8px; max-width: 560px; padding: 0 20px 20px; box-shadow: 0 24px 60px -12px rgba(0,0,0,.4); }
body.dk .sheet.xp { max-width: 860px; }
body.dk .sheet.wide { max-width: 820px; }
body.dk .sheet-head { margin: 0 -20px 14px; padding: 14px 20px 12px; top: 0; border-bottom: 1px solid var(--line); }
body.dk .sheet-head h2 { font-size: var(--t-md); margin: 0; }
body.dk .sheet-head .link { font-size: var(--t-xs); min-height: 30px; color: var(--ink-2); }
body.dk .xp-foot { margin: 12px -20px -20px; padding: 12px 20px 16px; bottom: -20px; }
body.dk .ch-sheet .ch-opts .btn { width: 100%; }
body.dk .sh-alt .btn.off-alt { width: auto; align-self: flex-start; }
body.dk .rd { border-radius: var(--r); }
body.dk .rd.on { background: var(--ink); border-color: var(--ink); }

/* таблицы отчётов (Часы и оплата, Опоздания и переработки, журнал, отпуска) */
body.dk table.rep { font-size: var(--t-sm); border-collapse: separate; border-spacing: 0; }
body.dk table.rep th { background: var(--head); color: var(--muted); font-size: var(--t-2xs); font-weight: 600; text-transform: none; letter-spacing: 0;
  padding: 8px 10px; border-bottom: 1px solid var(--line-2); position: sticky; top: 0; z-index: 2; vertical-align: bottom; }
body.dk table.rep td { padding: 0 10px; height: var(--row); border-bottom: 1px solid var(--line); vertical-align: middle; }
body.dk table.rep tbody tr[data-id]:hover td { background: var(--head); }
body.dk table.rep tfoot td { background: var(--head); border-top: 1px solid var(--line-2); font-weight: 700; }
body.dk table.rep tr.warn td { background: #FFF8EC; }
body.dk table.sortable th:first-child, body.dk table.sortable td:first-child { background: var(--surface); z-index: 3; }
body.dk table.sortable th:first-child { background: var(--head); }
body.dk table.sortable td.sorted { background: #FFFBF0; }
body.dk table.sortable th.sorted { color: var(--ink); }
body.dk table.sortable th.sorted .arr { color: var(--warn); }
body.dk #rep-box { padding: 0; overflow: auto; max-height: calc(100vh - 210px); }
body.dk #rep-box > .warn-note, body.dk #rep-box > p, body.dk #rep-box > .rv-sec, body.dk #rep-box > .rv-kpis,
body.dk #rep-box > details, body.dk #rep-box > .col-help, body.dk #rep-box > .rv-warn, body.dk #rep-box > .rv-how { margin-left: 16px; margin-right: 16px; }
body.dk #rep-box > :first-child:not(table):not(.tbl-scroll) { margin-top: 14px; }
body.dk #rep-box:has(.rv-kpis) { max-height: none; overflow: visible; padding-bottom: 8px; }
body.dk .tbl-scroll { overflow: visible; }
body.dk #rep-box .tbl-scroll { overflow: visible; }
body.dk .rv-kpis { gap: 0; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
body.dk .rv-kpi { border: 0; border-right: 1px solid var(--line); border-radius: 0; }
body.dk .rv-kpi:last-child { border-right: 0; }
body.dk .fl { border-radius: 3px; }
body.dk .lab-pct { border-radius: 3px; }

/* полоса над отчётом: период, Excel — одной строкой, справа */
body.dk .rep-bar { margin: 0 0 12px; gap: 8px 12px; justify-content: flex-start; }
body.dk #rep-tabs { display: none; }
body.dk .rep-period { margin-left: auto; }
body.dk #rep-main-ctl { margin-left: 0; flex: 1; justify-content: space-between; }
body.dk .rep-period .inp, body.dk .per-nav .inp { height: 30px; font-size: var(--t-xs); padding: 0 8px; }
body.dk .per-ctl .segmented.period { margin: 0; }
body.dk .per-nav .wk-arr, body.dk .weekbar .wk-arr { min-width: 30px; min-height: 30px; width: 30px; height: 30px; font-size: 16px; border: 1px solid var(--line-2); border-radius: var(--r); background: var(--surface); color: var(--ink-2); }
body.dk .per-nav .per-label { font-weight: 600; font-size: var(--t-sm); }

/* ── График: полоса инструментов ─────────────────────── */
body.dk #view-schedule { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; padding-top: 12px; }
body.dk #view-schedule > * { margin: 0; }
body.dk #view-schedule > .weekbar { order: 1; padding: 0; gap: 0; border: 1px solid var(--line-2); border-radius: var(--r); background: var(--surface); height: 34px; }
body.dk #view-schedule > .weekbar .wk-arr { border: 0; border-radius: 0; height: 32px; width: 32px; min-height: 32px; }
body.dk #view-schedule > .weekbar .wk-mid { flex-direction: row; gap: 8px; padding: 0 10px; border-left: 1px solid var(--line); border-right: 1px solid var(--line); height: 32px; align-items: center; font-weight: 600; white-space: nowrap; }
body.dk #view-schedule > .weekbar .wk-now { min-height: 0; padding: 0; font-size: var(--t-xs); }
body.dk #view-schedule > .chips.filter { order: 2; margin: 0; padding: 2px; background: var(--head); border: 1px solid var(--line); border-radius: var(--r); gap: 2px; flex-wrap: wrap; }
body.dk #view-schedule > .chips.filter .chip { height: 28px; border: 0; background: none; }
body.dk #view-schedule > .chips.filter .chip:hover { background: var(--surface); }
body.dk #view-schedule > .chips.filter .chip.on { background: var(--ink); color: #fff; }
body.dk #view-schedule > .sch-actions { order: 3; margin-left: auto; display: flex; flex-direction: row-reverse; gap: 8px; align-items: center; }
body.dk .sch-sec { display: flex; flex-direction: row; gap: 2px; border: 0; background: none; padding: 0; margin: 0; }
body.dk .sch-sec .link { height: 34px; padding: 0 10px; border-radius: var(--r); color: var(--ink-2); font-size: var(--t-xs); font-weight: 600; display: inline-flex; align-items: center; }
body.dk .sch-sec .link:hover { background: var(--line); text-decoration: none; }
body.dk .sch-more-btn { display: none; }
body.dk .sch-main { gap: 8px; }
body.dk .sch-main #sch-publish { background: var(--primary); border-color: var(--primary); color: #fff; height: 34px; }
body.dk .sch-main .pub-ok { font-size: var(--t-xs); }
body.dk #view-schedule > .dk-sch-tools { order: 4; flex-basis: 100%; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
body.dk #view-schedule > .grid-tip { display: none; }
body.dk #view-schedule > #sch-note { order: 5; flex-basis: 100%; }
body.dk #view-schedule > #sch-empty { order: 6; flex-basis: 100%; }
body.dk #view-schedule > #sch-grid { order: 7; flex-basis: 100%; }
body.dk #view-schedule > #sch-list, body.dk #view-schedule > .daystrip { display: none; }
.dk-filter { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 8px; border: 1px solid var(--line-2); border-radius: var(--r); background: var(--surface); color: var(--muted); min-width: 220px; }
.dk-filter:focus-within { border-color: var(--signal); box-shadow: 0 0 0 2px var(--signal-soft); }
.dk-filter input { border: 0; outline: 0; background: none; font: 400 var(--t-xs) "Inter", system-ui, sans-serif; color: var(--ink); flex: 1; min-width: 0; height: 28px; }
.dk-check { display: inline-flex; align-items: center; gap: 6px; font-size: var(--t-xs); color: var(--ink-2); cursor: pointer; min-height: 28px; }
.dk-legend { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; font-size: var(--t-2xs); color: var(--muted); }
.dk-legend i { display: inline-block; width: 18px; height: 6px; border-radius: 2px; margin-left: 8px; }
.dk-legend .lg-ok { background: var(--ok); height: 3px; }
.dk-legend .lg-draft { background: repeating-linear-gradient(135deg, #CDD2D8 0 3px, #fff 3px 6px); box-shadow: inset 0 0 0 1px #9AA2AD; height: 10px; }

/* ── График: сетка ───────────────────────────────────── */
body.dk #sch-grid { display: block; margin: 0; overflow: auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  max-height: calc(100vh - 220px); position: relative; }
.dk-grid { border-collapse: separate; border-spacing: 0; width: 100%; min-width: 880px; table-layout: fixed; font-size: var(--t-xs); }
.dk-grid col.who { width: 200px; }
.dk-grid col.tot { width: 84px; }
.dk-grid th, .dk-grid td { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 0; font-weight: 400; vertical-align: middle; background-clip: padding-box; }
.dk-grid th:last-child, .dk-grid td:last-child { border-right: 0; }
.dk-grid thead th { position: sticky; top: 0; z-index: 6; background: var(--head); text-align: left; padding: 6px 8px 4px; vertical-align: top; border-bottom-color: var(--line-2); }
.dk-grid thead th .d { font-weight: 700; font-size: var(--t-sm); }
.dk-grid thead th small { display: block; color: var(--muted); font-size: var(--t-2xs); font-weight: 500; }
.dk-grid thead th.today { background: var(--signal-soft); box-shadow: inset 0 3px 0 var(--signal); }
.dk-grid thead th.corner { left: 0; z-index: 8; vertical-align: bottom; font-size: var(--t-2xs); color: var(--muted); font-weight: 500; }
.dk-grid thead th.corner span { display: block; }
.dk-grid thead th.corner .dk-rev-k { color: var(--live); }
.dk-grid thead th.tot { text-align: right; vertical-align: bottom; font-size: var(--t-2xs); color: var(--muted); font-weight: 600; }
.dk-dr { float: right; font-size: 10.5px; font-weight: 700; background: var(--signal); color: var(--ink); border-radius: 3px; padding: 0 5px; }
.dk-cov { position: relative; display: flex; align-items: flex-end; gap: 1px; height: 22px; margin-top: 5px; }
.dk-cov i { flex: 1; background: #C9CFD6; border-radius: 1px 1px 0 0; min-height: 1px; }
.dk-cov i.pk { background: #6B737E; }
.dk-rev { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.dk-rev polyline { fill: none; stroke: var(--live); stroke-width: 1.6; vector-effect: non-scaling-stroke; stroke-linejoin: round; stroke-linecap: round; }
.dk-axis { display: flex; justify-content: space-between; font-size: 9.5px; color: var(--muted); margin-top: 1px; }
.dk-grid .grp th, .dk-grid .grp td { background: #EEF0F2; font-size: var(--t-2xs); font-weight: 700; color: var(--ink-2); padding: 0 8px; height: 24px; }
.dk-grid .grp td { font-weight: 600; color: var(--muted); }
.dk-grid .grp th { position: sticky; left: 0; z-index: 3; text-align: left; }
.dk-grid .grp td.tot { text-align: right; }
.dk-grid tbody th.who { position: sticky; left: 0; z-index: 3; background: var(--surface); text-align: left; padding: 0; height: var(--row); }
.dk-who { display: flex; align-items: center; gap: 0; width: 100%; height: var(--row); padding: 0 8px; border: 0; background: none; cursor: pointer; text-align: left; font: inherit; color: inherit; min-width: 0; }
.dk-who:hover b { text-decoration: underline; }
.dk-who b { font-weight: 600; font-size: var(--t-xs); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.dk-who small { color: var(--muted); font-size: var(--t-2xs); margin-left: auto; padding-left: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 45%; }
.dk-grid td.tot { text-align: right; padding: 0 8px; white-space: nowrap; }
.dk-grid td.tot b { font-weight: 600; display: block; line-height: 1.2; }
.dk-grid td.tot span { color: var(--muted); font-size: var(--t-2xs); }
.dk-grid td.tot.over b { color: var(--warn); }
.dk-grid td.today { background: #FFFDF6; }
.dk-grid td.cell { cursor: pointer; }
.dk-grid td.cell.lv { background-image: repeating-linear-gradient(135deg, var(--lh, rgba(100,116,139,.12)) 0 5px, transparent 5px 10px); }
.dk-grid .trk { position: relative; height: var(--row); }
.dk-grid .trk::before { content: ""; position: absolute; left: 0; right: 0; top: 13px; border-top: 1px dotted #E3E6EA; }
.dk-now { position: absolute; top: 0; bottom: 0; width: 0; border-left: 1.5px solid var(--signal); z-index: 1; pointer-events: none; }
.dk-bar { position: absolute; top: 6px; height: 16px; border-radius: 3px; border: 0; padding: 0 4px; background: var(--rc); color: var(--rt, #fff);
  font: 600 10.5px/16px "Inter", system-ui, sans-serif; white-space: nowrap; overflow: hidden; text-overflow: clip; z-index: 2; cursor: pointer; text-align: left; }
.dk-bar.draft { background: repeating-linear-gradient(135deg, color-mix(in srgb, var(--rc) 22%, #fff) 0 4px, #fff 4px 8px); color: var(--ink); box-shadow: inset 0 0 0 1px var(--rc); }
.dk-bar:hover, .dk-bar:focus-visible { box-shadow: 0 0 0 2px var(--surface), 0 0 0 3.5px var(--ink); outline: none; }
.dk-bar.draft:hover, .dk-bar.draft:focus-visible { box-shadow: inset 0 0 0 1px var(--rc), 0 0 0 2px var(--surface), 0 0 0 3.5px var(--ink); }
.dk-bar-lbl { position: absolute; top: 6px; font-size: 10.5px; font-weight: 600; line-height: 16px; color: var(--ink-2); white-space: nowrap; z-index: 2; pointer-events: none; }
.dk-act { position: absolute; top: 25px; height: 3px; border-radius: 2px; background: var(--ok); z-index: 2; pointer-events: none; }
.dk-act.late { background: var(--warn); }
.dk-act.live { background: var(--live); }
.dk-act.live::after { content: ""; position: absolute; right: -3px; top: -2px; width: 7px; height: 7px; border-radius: 50%; background: var(--live); box-shadow: 0 0 0 2px #fff; }
.dk-miss { position: absolute; top: 22px; right: 2px; font-size: 9.5px; font-weight: 700; color: var(--err); white-space: nowrap; z-index: 2; pointer-events: none; line-height: 12px;
  overflow: hidden; text-overflow: ellipsis; }   /* 03.10: длинные uk/el подписи не налезают на соседний день */
.dk-miss.warn { color: var(--warn); }
.dk-off { position: absolute; inset: 5px 4px; border-radius: 3px; border: 1px dashed var(--lc, #9AA2AD); background: var(--lb, #F3F4F6); color: var(--lc, #3E444C);
  font: 600 10.5px/1 "Inter", system-ui, sans-serif; display: flex; align-items: center; gap: 4px; padding: 0 6px; z-index: 2; cursor: pointer; overflow: hidden; white-space: nowrap; }
.dk-off.req { background: #fff; }
.dk-add { position: absolute; inset: 4px; display: none; align-items: stretch; gap: 3px; z-index: 3; }
.dk-add button { flex: 1; border: 1px dashed var(--line-2); border-radius: 3px; background: var(--head); color: var(--ink-2); font: 600 10.5px "Inter", system-ui, sans-serif; cursor: pointer; padding: 0 4px; white-space: nowrap; overflow: hidden; }
.dk-add button:hover { border-color: var(--ink-2); background: #fff; }
.dk-add kbd { font-size: 9px; padding: 1px 3px; }
.dk-grid td.cell:hover .dk-add, .dk-grid td.cell:focus-within .dk-add { display: flex; }
.dk-plus { position: absolute; right: 2px; top: 6px; width: 16px; height: 16px; border: 1px dashed var(--line-2); border-radius: 3px; background: #fff; color: var(--ink-2);
  font: 700 11px/1 "Inter", sans-serif; display: none; place-items: center; padding: 0; cursor: pointer; z-index: 4; }
.dk-grid td.cell:hover .dk-plus, .dk-plus:focus-visible { display: grid; }
.dk-empty-row { padding: 20px; color: var(--muted); text-align: center; }
.dk-grid tfoot th, .dk-grid tfoot td { position: sticky; background: var(--head); padding: 0 8px; height: 26px; z-index: 5; border-bottom: 0; white-space: nowrap; font-weight: 600; font-size: var(--t-xs); overflow: hidden; text-overflow: ellipsis; }
.dk-grid tfoot th { left: 0; z-index: 7; text-align: left; color: var(--ink-2); }
.dk-grid tfoot th small { color: var(--muted); font-weight: 500; margin-left: 6px; font-size: var(--t-2xs); }
.dk-grid tfoot td.fc, .dk-grid tfoot .fc { color: var(--muted); font-weight: 500; }
.dk-grid tfoot td.tot { text-align: right; }
.dk-grid tfoot td.today { background: #FFF8E3; }
.dk-grid tfoot tr:first-child > * { border-top: 1px solid var(--line-2); }
.dk-grid tfoot tr:nth-last-child(1) > * { bottom: 0; }
.dk-grid tfoot tr:nth-last-child(2) > * { bottom: 26px; }
.dk-grid tfoot tr:nth-last-child(3) > * { bottom: 52px; }
.dk-grid tfoot tr:nth-last-child(4) > * { bottom: 78px; }
.dk-grid tfoot .lab-pct { font-size: var(--t-2xs); padding: 0 6px; }

/* подсказка у смены */
.dk-tip { position: fixed; z-index: 140; display: none; max-width: 280px; background: #15181C; color: #E8EBEF; border-radius: 6px; padding: 9px 11px;
  font: 400 11.5px/1.5 "Inter", system-ui, sans-serif; box-shadow: 0 10px 24px -6px rgba(0,0,0,.45); pointer-events: none; }
.dk-tip b { color: #fff; font-size: 12px; display: block; }
.dk-tip .k { color: #9AA2AD; }
.dk-tip hr { border: 0; border-top: 1px solid #343941; margin: 6px 0; }
.dk-tip .pm { font-size: 11.5px; white-space: normal; }
.dk-tip .pm.ok { color: #7BD4A0; } .dk-tip .pm.late { color: #F5B45C; } .dk-tip .pm.miss { color: #F28B85; } .dk-tip .pm.open { color: #8CC4F2; }

/* ── Сегодня ─────────────────────────────────────────── */
body.dk.dk-mgr #view-today { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 16px; align-items: start; }
body.dk.dk-mgr #view-today > * { margin: 0; }
body.dk.dk-mgr #view-today > #dk-today { display: contents; }
body.dk.dk-mgr #attention, body.dk.dk-mgr #today-team, body.dk.dk-mgr #today-timeline, body.dk.dk-mgr #today-colleagues { display: none !important; }
body.dk.dk-mgr #dk-t-stats { grid-column: 1 / -1; grid-row: 1; }
body.dk.dk-mgr #tg-link-card { grid-column: 1 / -1; grid-row: 2; }
body.dk.dk-mgr .dk-t-main { grid-column: 1; grid-row: 3 / span 3; display: flex; flex-direction: column; gap: 16px; min-width: 0; }
body.dk.dk-mgr #view-today > .card.center { grid-column: 2; grid-row: 3; }
body.dk.dk-mgr .dk-t-side { grid-column: 2; grid-row: 4; display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.dk-stats { display: flex; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.dk-stats > div { padding: 10px 18px; border-right: 1px solid var(--line); display: flex; flex-direction: column; gap: 1px; min-width: 140px; }
.dk-stats > div:last-child { border-right: 0; }
.dk-stats span { font-size: var(--t-2xs); color: var(--muted); font-weight: 500; white-space: nowrap; }
.dk-stats b { font-size: var(--t-lg); font-weight: 700; white-space: nowrap; }
.dk-stats b small { font-size: var(--t-2xs); color: var(--muted); font-weight: 500; margin-left: 3px; }
.dk-stats .warn b { color: var(--warn); } .dk-stats .err b { color: var(--err); } .dk-stats .ok b { color: var(--ok); }
.dk-panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; min-width: 0; }
.dk-panel > header { display: flex; align-items: center; gap: 8px; padding: 10px 16px; border-bottom: 1px solid var(--line); }
.dk-panel > header h2 { margin: 0 !important; font-size: var(--t-md) !important; }
.dk-cnt { background: var(--ink); color: #fff; border-radius: 3px; font-size: var(--t-2xs); font-weight: 700; padding: 1px 6px; }
.dk-wait { width: 100%; border-collapse: collapse; }
.dk-wait td { padding: 0 10px; height: 44px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.dk-wait tr:last-child td { border-bottom: 0; }
.dk-wait td.k { font-weight: 600; white-space: nowrap; box-shadow: inset 3px 0 0 var(--tone, var(--line-2)); padding-left: 14px; }
.dk-wait tr.tone-warn { --tone: var(--warn); } .dk-wait tr.tone-err { --tone: var(--err); } .dk-wait tr.tone-live { --tone: var(--live); }
.dk-wait td.n { white-space: nowrap; }
.dk-wait td.n b, .dk-mini td.n span { margin-left: 8px; font-weight: 600; vertical-align: middle; }
.dk-wait td.a { text-align: right; white-space: nowrap; }
.dk-wait td.a .dk-btn + .dk-btn { margin-left: 6px; }
.dk-mini { width: 100%; border-collapse: collapse; }
.dk-mini td { padding: 0 12px; height: 38px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.dk-mini tr:last-child td { border-bottom: 0; }
.dk-mini td.tm { font-weight: 700; width: 56px; }
.dk-mini td.r { text-align: right; }
.dk-mini td.n { max-width: 150px; overflow: hidden; text-overflow: ellipsis; }
.dk-nowpill { background: var(--ink); color: #fff; border-radius: 999px; padding: 2px 9px; font-size: var(--t-2xs); font-weight: 700; }
.dk-seg { margin-left: auto; display: inline-flex; padding: 2px; background: var(--head); border: 1px solid var(--line); border-radius: var(--r); }
.dk-seg button { height: 26px; padding: 0 10px; border: 0; border-radius: 3px; background: none; font: 500 var(--t-2xs) "Inter", system-ui, sans-serif; color: var(--ink-2); cursor: pointer; }
.dk-seg button.on { background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px rgba(0,0,0,.08); font-weight: 600; }

/* лента дня (из C) */
.dk-tl { --who: 210px; position: relative; padding: 8px 16px 14px; }
.dk-tl-scale { position: relative; height: 22px; margin-left: var(--who); border-bottom: 1px solid var(--line); margin-bottom: 4px; }
.dk-tl-scale span { position: absolute; transform: translateX(-50%); font-size: var(--t-2xs); color: var(--muted); top: 2px; }
.dk-tl-scale span:first-child { transform: none; }
.dk-tl-scale span:last-child { transform: translateX(-100%); }
.dk-tl-g { font-size: var(--t-2xs); font-weight: 700; color: var(--muted); margin: 10px 0 2px; }
.dk-tl-row { display: grid; grid-template-columns: var(--who) minmax(0, 1fr); align-items: center; height: 34px; }
.dk-tl-who { display: flex; align-items: center; gap: 8px; min-width: 0; padding-right: 10px; }
.dk-tl-who b { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dk-tl-who small { color: var(--muted); font-size: var(--t-2xs); white-space: nowrap; }
.dk-tl-trk { position: relative; height: 34px; background-image: linear-gradient(90deg, #F0F2F4 1px, transparent 1px); background-size: calc(100% / 9) 100%; }
.dk-tl-plan { position: absolute; top: 7px; height: 20px; border-radius: 10px; border: 1.5px solid color-mix(in srgb, var(--rc) 55%, #fff);
  background: color-mix(in srgb, var(--rc) 13%, #fff); color: var(--ink); font: 600 11px/17px "Inter", system-ui, sans-serif; padding: 0 9px; text-align: left;
  white-space: nowrap; overflow: hidden; cursor: pointer; }
.dk-tl-plan.draft { border-style: dashed; }
.dk-tl-fact { position: absolute; top: 7px; height: 20px; border-radius: 10px; background: var(--rc); color: var(--rt, #fff); font: 600 11px/20px "Inter", system-ui, sans-serif;
  padding: 0 9px; white-space: nowrap; overflow: hidden; pointer-events: none; color: #fff; text-shadow: 0 0 2px rgba(0,0,0,.35); }
.dk-tl-fact.live { border-radius: 10px 0 0 10px; -webkit-mask-image: linear-gradient(90deg, #000 85%, rgba(0,0,0,.35)); mask-image: linear-gradient(90deg, #000 85%, rgba(0,0,0,.35)); }
.dk-tl-note { position: absolute; top: 9px; font-size: 10.5px; font-weight: 700; white-space: nowrap; padding: 1px 7px; border-radius: 999px; pointer-events: none; }
.dk-tl-note.warn { background: var(--warn-soft); color: var(--warn); }
.dk-tl-note.err { background: var(--err-soft); color: var(--err); }
.dk-tl-now { position: absolute; top: 6px; bottom: 10px; left: calc(16px + var(--who) + (100% - 32px - var(--who)) * var(--x) / 100); width: 0; border-left: 2px solid var(--err); pointer-events: none; z-index: 3; }
.dk-tl-now span { position: absolute; top: -2px; left: 0; transform: translateX(-50%); background: var(--err); color: #fff; font-size: 10.5px; font-weight: 700; padding: 1px 6px; border-radius: 999px; }

/* «Сегодня»: карточка своей отметки компактнее */
body.dk #view-today > .card.center { padding: 18px 16px; }
body.dk #view-today .clock { font-size: 34px; }
body.dk:not(.dk-mgr) #view-today, body.dk #view-shifts, body.dk #view-hours, body.dk #view-setup { max-width: 760px; }
body.dk #view-shifts .shift { margin: 0 0 8px; border-radius: var(--r-lg); padding: 10px 14px; }
body.dk .weekbar { padding: 0 0 10px; justify-content: flex-start; gap: 10px; }
body.dk #view-shifts > .weekbar .wk-mid { flex-direction: row; gap: 10px; font-weight: 600; }
body.dk .xp-open-row { margin: 0 0 8px; justify-content: flex-start; }
body.dk .tg-banner { background: var(--live-soft); border-color: #BFD8EE; }

/* ── Сотрудники: таблица ─────────────────────────────── */
body.dk #view-staff { display: flex; flex-direction: column; }
body.dk #view-staff > .row-add.actions { display: none; }
body.dk #view-staff > .card:last-child { padding: 0; overflow: hidden; }
body.dk #view-staff .filters { display: flex; flex-wrap: wrap; gap: 8px; padding: 12px 16px 0; margin: 0; }
body.dk #view-staff .filters .inp { width: auto; min-width: 160px; height: 32px; font-size: var(--t-xs); }
body.dk #view-staff .filters #sf-q { min-width: 260px; }
body.dk #view-staff #sf-status { margin: 10px 16px 0; }
body.dk #view-staff .sf-hint { margin: 6px 16px 0; }
body.dk #staff-list { margin-top: 12px; }
.dk-table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: var(--t-sm); }
.dk-table th { background: var(--head); color: var(--muted); font-size: var(--t-2xs); font-weight: 600; text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line-2); border-top: 1px solid var(--line);
  white-space: nowrap; position: sticky; top: var(--top-h); z-index: 2; }
.dk-table td { padding: 0 10px; height: 40px; border-bottom: 1px solid var(--line); white-space: nowrap; vertical-align: middle; }
.dk-table td.num { font-variant-numeric: tabular-nums; color: var(--ink-2); }
.dk-table td.n { font-weight: 600; }
.dk-table td.n b { margin-left: 8px; font-weight: 600; vertical-align: middle; }
.dk-table th.cb, .dk-table td.cb { width: 40px; padding-left: 16px; }
.dk-table th.acts, .dk-table td.acts { width: 48px; text-align: right; }
.dk-table tbody tr { cursor: pointer; }
.dk-table tbody tr:hover td { background: var(--head); }
.dk-table tbody tr.sel td { background: #FFF8E6; }
.dk-table tbody tr.sel td:first-child { box-shadow: inset 3px 0 0 var(--signal); }
.dk-table tbody tr.off td { color: var(--muted); }
.dk-table td.acts .dk-icon { opacity: 0; }
.dk-table tbody tr:hover td.acts .dk-icon, .dk-table td.acts .dk-icon:focus-visible { opacity: 1; }
.dk-bulk { display: flex; align-items: center; gap: 8px; padding: 8px 16px; background: var(--ink); color: #fff; position: sticky; top: var(--top-h); z-index: 3; }
.dk-bulk .dk-btn { background: #2A2F36; border-color: #3E444C; color: #fff; }
.dk-bulk .dk-btn .ic { color: #D8DCE1; }
.dk-bulk .dk-btn.ghost { background: none; border-color: transparent; color: #D8DCE1; }
.dk-bulk-k { margin-left: auto; color: #9AA2AD; font-size: var(--t-2xs); }
body.dk #view-staff .tbl-scroll { overflow: visible; }

/* карточка сотрудника */
body.dk #view-card { max-width: 980px; }
body.dk .card-head { padding: 0 0 12px; }
body.dk .card-head h1 { font-size: var(--t-xl); }
body.dk #card-box { display: block; }

/* остальные экраны — ширина и сетка */
body.dk #view-settings { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 16px; align-items: start; }
body.dk #view-settings .card { margin: 0 0 16px; }
body.dk #view-settings .danger-zone { grid-column: 1 / -1; }
body.dk #view-structure { max-width: 980px; }
body.dk #view-rating { max-width: 1100px; }
body.dk .rt-tops { margin: 0; gap: 16px; }
body.dk .rt-tops .card { margin: 0 0 16px; }
body.dk #view-more { max-width: 640px; }
body.dk .mrow { padding: 12px 16px; }
body.dk .lang-float { display: none; }

/* настройки: тарифы, интеграции, правила — те же токены */
body.dk .plan, body.dk .int-item, body.dk .rq-card, body.dk .repeat, body.dk .xp-members, body.dk .term-link, body.dk .cred { border-radius: var(--r-lg); }
body.dk .rule .inp:not(.num) { width: auto; min-width: 200px; }
body.dk .rule > span { font-size: var(--t-sm); }

/* публичное демо: панель демо снизу на всю ширину — меню слева заканчивается над ней */
body.dk.has-demo-bar #dk-side { height: calc(100vh - 60px); }

/* 01.10 навигация: на компьютере — компактная панель справа внизу, не на всю ширину */
body.dk .navbar, body.dk .navbar.wide { left: auto; right: 24px; bottom: calc(20px + var(--nav-lift, 0px)); gap: 4px; padding: 4px;
  border-radius: var(--r-lg); background: var(--surface); border-color: var(--line); box-shadow: 0 6px 20px -8px rgba(16,24,40,.3); }
body.dk .nb-btn { min-height: 32px; min-width: 32px; padding: 0 12px; border-radius: var(--r); font: 600 var(--t-sm) "Inter", system-ui, sans-serif; }
body.dk .nb-pn { margin: 0; }
body.dk .nb-pn .nb-btn { font-size: 18px; padding: 0 8px; }
body.dk .nb-pos { font: 500 var(--t-xs) "Inter", system-ui, sans-serif; min-width: 48px; }
body.dk .nb-top { font-size: 15px; padding: 0; }
/* отступ под панель — у экрана, не у body: иначе под тёмным меню слева остаётся белая полоса */
body.dk.has-nav { padding-bottom: 0; }
body.dk.has-nav.has-demo-bar { padding-bottom: calc(60px + env(safe-area-inset-bottom)); }
body.dk.has-nav .view:not([hidden]) { padding-bottom: 64px; }
body.dk .nav-toast { bottom: calc(72px + var(--nav-lift, 0px)); border-radius: var(--r-lg); font: 600 var(--t-sm) "Inter", system-ui, sans-serif; }

/* ── копирование смен (03.10): клетка под курсором, скопированная смена, меню, тост с «Отменить» ── */
body.dk .dk-grid td.cell.hot { box-shadow: inset 0 0 0 1.5px var(--line-2); background-color: #FBFBFC; }
body.dk .dk-grid td.cell.today.hot { background-color: #FFF8E3; }
body.dk .dk-grid td.cell:focus { outline: none; }
body.dk .dk-grid td.cell:focus-visible { outline: none; box-shadow: inset 0 0 0 2px var(--signal); }
body.dk .dk-bar.clip { outline: 1.5px dashed var(--ink); outline-offset: 1.5px; }
body.dk .dk-ctx { min-width: 240px; }
body.dk .dk-ctx .dk-menu-item kbd { margin-left: auto; }
body.dk .dk-ctx .dk-menu-item.danger { color: var(--err); }
body.dk .dk-ctx .dk-menu-item.danger:hover, body.dk .dk-ctx .dk-menu-item.danger:focus-visible { background: var(--err-soft); }
body.dk .dk-ctx .dk-menu-item[disabled] { color: #8A929C; cursor: default; background: none; }
body.dk .dk-ctx .dk-menu-item[disabled] kbd { color: #8A929C; }
body.dk .dk-toast.act { pointer-events: auto; display: flex; align-items: center; gap: 12px; }
body.dk .dk-toast.err { box-shadow: inset 4px 0 0 var(--err), 0 10px 30px rgba(0,0,0,.25); padding-left: 18px; }
body.dk .dk-toast-btn { border: 0; background: none; color: var(--signal); font: 600 var(--t-sm) "Inter", system-ui, sans-serif; cursor: pointer; padding: 2px 4px; border-radius: 3px; }
body.dk .dk-toast-btn:hover { text-decoration: underline; }

/* 26.10.2026: явка разошлась со сменой — красная точка в правом верхнем углу смены (backend/drift.py) */
.dk-drift { position: absolute; top: 3px; width: 8px; height: 8px; border-radius: 50%; background: #DC2626;
  box-shadow: 0 0 0 1.5px #fff; z-index: 3; cursor: help; }
.dk-tip .drift-tip { color: #FCA5A5; }
