/* office-schedule.css — вынесено из app.css (STAFF SCHEDULE GRID) + premium holiday/week */
/* ─────────────────────────────────────────────────────────────────────────────
   STAFF SCHEDULE GRID
   ───────────────────────────────────────────────────────────────────────────── */
/* Общая шапка графика (офис + рабочие) */
.sched-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

/* Hero-панель месяца: стекло, скругления, токены темы */
.sched-hero {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  padding: var(--sp-4) var(--sp-5);
  margin-bottom: var(--sp-4);
  border: 1px solid var(--brd-gold);
  border-radius: var(--r-lg);
  background: linear-gradient(120deg, var(--bg2), var(--bg3));
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.sched-hero__ic {
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  display: grid;
  place-items: center;
  border-radius: var(--r-md);
  background: var(--gold-bg);
  border: 1px solid var(--brd-gold);
  color: var(--gold);
}

.sched-hero__ic svg {
  width: 22px;
  height: 22px;
}

.sched-hero__tx {
  flex: 1 1 auto;
  min-width: 0;
}

.sched-hero__s {
  font-size: var(--text-sm);
  color: var(--t3);
  margin-top: 3px;
}

.sched-hero__nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  flex-wrap: wrap;
}

.sched-hero__nav .btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
}

.sched-hero__nav .btn svg {
  width: 16px;
  height: 16px;
}

.sched-period {
  font-size: 20px;
  font-weight: var(--fw-extra);
  color: var(--gold);
  letter-spacing: -0.2px;
}

/* Легенда — чипы вместо мелких квадратиков */
.sched-legend-card {
  padding: var(--sp-3) var(--sp-4);
  margin-bottom: var(--sp-4);
}

.sched-legend {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
}

.sched-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 4px 11px 4px 8px;
  border-radius: var(--r-full);
  background: var(--bg3);
  border: 1px solid var(--brd);
  font-size: var(--text-sm);
  font-weight: var(--fw-med);
  color: var(--t2);
  transition: border-color var(--fast), color var(--fast);
}

.sched-legend-item:hover {
  border-color: var(--blue-l);
  color: var(--t1);
}

.sched-legend-box {
  width: 12px;
  height: 12px;
  border-radius: var(--r-xs);
  flex-shrink: 0;
  box-shadow: inset 0 0 0 1px var(--brd);
}

.sched-legend-box--hol {
  background: color-mix(in srgb, var(--err) 38%, transparent);
  box-shadow: inset 0 0 0 1px var(--err-t);
}

.sched-legend-item--hol {
  border-color: var(--brd-err);
}

.sched-legend-item--vac {
  border-color: var(--brd-gold);
}

.sched-legend-item--vac .sched-legend-box {
  box-shadow: inset 0 0 0 2px var(--gold);
}

.sched-legend-hint {
  margin-left: auto;
  font-size: var(--text-xs);
  color: var(--t3);
  font-style: italic;
}

/* Обёртка и сетка растягиваются на всю ширину контента */
.sched-wrap {
  padding: 0 !important;
  width: 100% !important;
  max-width: none !important;
  overflow: auto !important;
  -webkit-overflow-scrolling: touch;
}

.sched-grid {
  width: 100%;
  min-width: 0;
}

.sched-head {
  display: flex;
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--bg2) 92%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--brd);
}

.sched-head .sched-name {
  font-weight: var(--fw-bold);
  color: var(--gold);
  background: color-mix(in srgb, var(--bg4) 94%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  font-size: var(--text-xs);
}

/* Колонка ФИО — фиксированной ширины, не резиновая */
.sched-name {
  flex: 0 0 150px;
  width: 150px;
  min-width: 150px;
  padding: 10px 12px;
  font-size: var(--text-sm);
  color: var(--t1);
  background: var(--bg2);
  border-right: 1px solid var(--brd);
  position: sticky;
  left: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 6px;
  overflow: hidden;
}

.sched-name__txt {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sched-you {
  font-size: 10px;
  flex-shrink: 0;
}

.sched-row--sep {
  background: var(--bg3);
  border-top: 2px solid var(--brd);
}
.sched-name--sep {
  font-size: var(--text-xs);
  font-weight: var(--fw-bold);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--t2);
}
.sched-sep-line {
  flex: 1;
  display: flex;
  align-items: center;
  padding: 0 12px;
  font-size: var(--text-xs);
  color: var(--t3);
}
.sched-row--extra .sched-name {
  color: var(--t2);
}
.sched-extra-tag {
  flex-shrink: 0;
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--t3);
  border: 1px solid var(--brd-m);
  border-radius: 4px;
  padding: 1px 4px;
}
.sched-cell--extra {
  cursor: pointer;
  opacity: 0.92;
}
/* «Прочие»: в сетке только метка прихода — часы живут в карточке дня. */
.sched-cell--extra.has-entry {
  background: none;
}
.sched-dot {
  display: block;
  width: 7px;
  height: 7px;
  margin: auto;
  border-radius: 50%;
  background: var(--ok-t);
}
/* Смена не закрыта человеком — система оборвала через 6 ч. */
.sched-dot.is-open {
  background: var(--warn-t);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--warn-t) 25%, transparent);
}

/* Дни растягиваются: flex:1 1 0, минимум 26px */
.sched-days {
  display: flex;
  flex: 1 1 0;
  min-width: 0;
}

.sched-day {
  flex: 1 1 0;
  width: auto;
  min-width: 26px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-sm);
  font-weight: var(--fw-semi);
  color: var(--t2);
  background: var(--bg4);
  border-right: 1px solid var(--brd-m);
  border-bottom: 1px solid var(--brd);
  transition: color var(--fast), background var(--fast);
}

.sched-day.weekend {
  background: var(--bg3);
  color: var(--t3);
}

/* Перенос выходных — нейтральная подсветка с синей засечкой */
.sched-day.shift {
  background: var(--bg3);
  color: var(--t2);
  box-shadow: inset 0 -2px 0 var(--blue-l);
}

/* Праздник РФ (ст. 112 ТК) — красная подсветка с верхней засечкой.
   Отличается от простого выходного и от переноса, чтобы график читался. */
.sched-day.holiday {
  background: var(--err-bg);
  color: var(--err-t);
  font-weight: var(--fw-extra);
  box-shadow: inset 0 2px 0 var(--err-t);
}

.sched-day.today {
  background: var(--grad-blue);
  color: var(--on-color);
  font-weight: var(--fw-extra);
}

.sched-body {
  display: flex;
  flex-direction: column;
}

.sched-row {
  display: flex;
  border-bottom: 1px solid var(--brd-m);
  transition: background var(--fast);
}

.sched-row:hover .sched-name {
  background: var(--bg3);
}

.sched-cells {
  display: flex;
  flex: 1 1 0;
  min-width: 0;
}

.sched-cell {
  flex: 1 1 0;
  width: auto;
  min-width: 28px;
  height: 44px;
  border: none;
  border-right: 1px solid var(--brd-m);
  background: var(--bg2);
  cursor: pointer;
  transition: filter var(--fast), box-shadow var(--fast), background var(--fast);
  padding: 0;
  margin: 0;
  position: relative;
  color: var(--on-color);
}

/* Подсветка строки и колонки без ломки цвета статуса (inline background) */
.sched-row:hover .sched-cell {
  filter: brightness(1.18);
}

.sched-cell:hover {
  z-index: 2;
  box-shadow: inset 0 0 0 2px var(--blue-l), 0 0 12px var(--blue-glow);
  filter: brightness(1.25);
}

.sched-cell.weekend {
  background-image: repeating-linear-gradient(
    135deg,
    color-mix(in srgb, var(--t3) 12%, transparent) 0px,
    color-mix(in srgb, var(--t3) 12%, transparent) 4px,
    transparent 4px,
    transparent 8px
  );
}

.sched-cell.today {
  box-shadow: inset 0 0 0 2px var(--blue-l);
}

.sched-cell[data-locked="1"] {
  cursor: not-allowed;
  opacity: 0.62;
}

/* Ячейка отпуска — витрина из графика отпусков, руками не ставится */
.sched-cell.vac {
  background: var(--gold-bg);
  box-shadow: inset 0 0 0 2px var(--gold);
  cursor: default;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sched-cell.vac:hover {
  filter: brightness(1.06);
  box-shadow: inset 0 0 0 2px var(--gold), 0 0 12px var(--gold-glow);
}

.sched-cell.vac-pending {
  border: 1px dashed var(--gold);
  background: color-mix(in srgb, var(--gold) 6%, transparent);
}

.sched-vtag {
  font-size: 8px;
  font-weight: var(--fw-black);
  letter-spacing: 0.04em;
  color: var(--gold);
  pointer-events: none;
}

/* ══════════════════════════════════════════════════════════════════════
   ЧАСЫ ОФИСА ПО СКУД (V453): дашборд, часы в ячейке, предупреждения
   ══════════════════════════════════════════════════════════════════════ */

/* Дашборд над сеткой: «Мои часы» + при полном доступе «Вся компания» */
.sched-dash-root { display: block; }
.sched-dash__section {
  margin-bottom: 14px;
}
.sched-dash__section:last-child {
  margin-bottom: 0;
}
.sched-dash__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 14px;
  margin-bottom: 8px;
}
.sched-dash__title {
  font-size: 14px;
  font-weight: var(--fw-bold);
  color: var(--t1);
  letter-spacing: -0.01em;
}
.sched-dash__hint {
  font-size: 12px;
  color: var(--t3);
}
.sched-dash {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
  margin-bottom: 0;
}

.sched-dash__card {
  background: var(--bg4);
  border: 1px solid var(--brd);
  border-radius: var(--r-md);
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.sched-dash__cap {
  font-size: var(--text-xs);
  color: var(--t3);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sched-dash__val {
  font-size: 20px;
  font-weight: var(--fw-bold);
  line-height: 1.1;
  color: var(--t1);
  font-variant-numeric: tabular-nums;
}

.sched-dash__val small {
  font-size: 12px;
  font-weight: var(--fw-medium);
  color: var(--t3);
  margin-left: 3px;
}

.sched-dash__sub {
  font-size: 11px;
  color: var(--t3);
  font-variant-numeric: tabular-nums;
}

.sched-dash__card.ok .sched-dash__val { color: var(--ok-t); }
.sched-dash__card.bad .sched-dash__val { color: var(--err-t); }
.sched-dash__card.warn .sched-dash__val { color: var(--amber); }

/* Часы в ячейке: тонкая «стеклянная» плашка, не белый кирпич */
.sched-hours {
  position: absolute;
  left: 50%;
  bottom: 3px;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: calc(100% - 4px);
  max-width: calc(100% - 2px);
  font-size: 10px;
  line-height: 1;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  padding: 2px 3px;
  border-radius: 999px;
  background: color-mix(in srgb, #0b1220 55%, transparent);
  color: #f8fafc;
  pointer-events: none;
  letter-spacing: 0.01em;
  border: 1px solid color-mix(in srgb, #fff 18%, transparent);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.22);
}

.sched-hours.is-hybrid {
  background: color-mix(in srgb, var(--gold) 42%, #0b1220 58%);
  border-color: color-mix(in srgb, var(--gold) 45%, transparent);
  color: #fff8e7;
}

.sched-hours.is-crm {
  background: color-mix(in srgb, var(--cyan) 40%, #0b1220 60%);
  border-color: color-mix(in srgb, var(--cyan) 40%, transparent);
  color: #e8fbff;
}

.sched-hours.is-nocredit {
  background: color-mix(in srgb, var(--amber) 38%, #0b1220 62%);
  border-color: color-mix(in srgb, var(--amber) 50%, transparent);
  color: #fff4d6;
  border-style: dashed;
}

.sched-dash__empty {
  padding: 10px 12px;
  color: var(--t2);
  font-size: 13px;
  line-height: 1.35;
}

.sched-hours.is-empty {
  color: var(--err-t);
  background: color-mix(in srgb, var(--err-t) 16%, transparent);
}

.sched-hours.is-muted {
  background: color-mix(in srgb, var(--amber) 38%, #0b1220 62%);
  border-color: color-mix(in srgb, var(--amber) 50%, transparent);
  color: #fff4d6;
  text-decoration: none;
  opacity: 1;
}

/* ── Модалки дня / отчёта по человеку ── */
.oh-modal { display: flex; flex-direction: column; gap: 14px; }
.oh-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 12px; }
.oh-head__name { font-size: 16px; font-weight: var(--fw-bold); color: var(--t1); letter-spacing: -0.01em; }
.oh-head__meta { display: flex; gap: 6px; }
.oh-pill {
  display: inline-flex; align-items: center;
  padding: 3px 10px; border-radius: 999px;
  font-size: 11px; font-weight: 600;
  background: color-mix(in srgb, var(--blue-l) 18%, transparent);
  color: var(--blue-l); border: 1px solid color-mix(in srgb, var(--blue-l) 28%, transparent);
}
.oh-kpis {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 8px;
}
.oh-kpi {
  padding: 10px 12px;
  border-radius: var(--r-md);
  background: var(--bg4);
  border: 1px solid var(--brd);
  min-width: 0;
}
.oh-kpi.is-em { border-color: color-mix(in srgb, var(--gold) 40%, var(--brd)); }
.oh-kpi.is-ok .oh-kpi__v { color: var(--ok-t); }
.oh-kpi.is-bad .oh-kpi__v { color: var(--err-t); }
.oh-kpi__l {
  font-size: 10px; text-transform: uppercase; letter-spacing: 0.05em;
  color: var(--t3); margin-bottom: 4px; font-weight: 600;
}
.oh-kpi__v {
  font-size: 20px; font-weight: 800; color: var(--t1);
  font-variant-numeric: tabular-nums; line-height: 1.15;
}
.oh-kpi__v small {
  display: block; margin-top: 2px;
  font-size: 11px; font-weight: 500; color: var(--t3);
  text-transform: none; letter-spacing: 0;
}
.oh-banner {
  padding: 8px 12px; border-radius: var(--r-md);
  font-size: 13px; line-height: 1.35;
  background: var(--bg3); border: 1px solid var(--brd); color: var(--t2);
}
.oh-banner.is-ok { border-color: color-mix(in srgb, var(--ok-t) 35%, var(--brd)); color: var(--ok-t); }
.oh-banner.is-bad { border-color: color-mix(in srgb, var(--err-t) 35%, var(--brd)); color: var(--err-t); }
.oh-banner.is-warn { border-color: color-mix(in srgb, var(--amber) 40%, var(--brd)); color: var(--amber); }
.oh-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
}
.oh-card {
  border: 1px solid var(--brd);
  border-radius: var(--r-md);
  background: var(--bg4);
  padding: 10px 12px;
  min-width: 0;
}
.oh-card--wide { grid-column: 1 / -1; }
.oh-card__t {
  font-size: 12px; font-weight: 700; color: var(--t1);
  margin-bottom: 8px; display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: baseline;
}
.oh-card__hint { font-size: 11px; font-weight: 500; color: var(--t3); }
.oh-card__b { display: flex; flex-direction: column; gap: 4px; max-height: 28vh; overflow: auto; }
.oh-line, .oh-punch {
  display: flex; align-items: center; gap: 10px;
  padding: 6px 8px; border-radius: 8px;
  background: color-mix(in srgb, var(--bg1) 55%, transparent);
  font-variant-numeric: tabular-nums; font-size: 13px;
}
.oh-line__t { color: var(--t1); font-weight: 600; }
.oh-line__m { margin-left: auto; color: var(--t2); font-weight: 700; }
.oh-punch__time { width: 64px; color: var(--t1); font-weight: 700; flex-shrink: 0; }
.oh-punch__dir {
  width: 52px; text-align: center; flex-shrink: 0;
  font-size: 11px; font-weight: 700; padding: 2px 0; border-radius: 999px;
}
.oh-punch__dir.is-in { background: color-mix(in srgb, var(--ok-t) 22%, transparent); color: var(--ok-t); }
.oh-punch__dir.is-out { background: color-mix(in srgb, var(--amber) 22%, transparent); color: var(--amber); }
.oh-punch__dev { color: var(--t3); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.oh-empty { padding: 10px 4px; color: var(--t3); font-size: 13px; line-height: 1.4; }
.oh-alert {
  padding: 10px 12px; border-radius: var(--r-md);
  border: 1px solid color-mix(in srgb, var(--err-t) 40%, var(--brd));
  background: color-mix(in srgb, var(--err-t) 10%, var(--bg4));
}
.oh-alert__t { font-weight: 700; color: var(--err-t); margin-bottom: 4px; }
.oh-alert__b { font-size: 13px; color: var(--t2); line-height: 1.35; }
.oh-table { border: 1px solid var(--brd); border-radius: var(--r-md); overflow: hidden; background: var(--bg4); }
.oh-table__body { max-height: 48vh; overflow: auto; }
.oh-row {
  display: grid;
  grid-template-columns: 52px 1fr 56px 56px 56px;
  gap: 6px; padding: 7px 10px;
  border-top: 1px solid var(--brd-m);
  font-size: 12px; align-items: center;
  font-variant-numeric: tabular-nums;
}
.oh-row--head {
  border-top: none;
  background: var(--bg3);
  font-size: 10px; text-transform: uppercase; letter-spacing: 0.04em;
  color: var(--t3); font-weight: 700;
}
.oh-row__date { color: var(--t2); font-weight: 600; }
.oh-row__st { color: var(--t1); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.oh-row__n { text-align: right; color: var(--t2); }
.oh-row__n--em { color: var(--t1); font-weight: 700; }
.oh-row.warn { background: color-mix(in srgb, var(--amber) 8%, transparent); }
.oh-row.mute { opacity: 0.72; }

/* Значок предупреждения в углу ячейки */
.sched-warn {
  position: absolute;
  top: 1px;
  left: 2px;
  font-size: 8px;
  line-height: 1;
  color: var(--amber);
  pointer-events: none;
  font-weight: var(--fw-black);
}

.sched-warn.is-bad { color: var(--err-t); }

/* День, снятый как ложный «оф» */
.sched-cell.is-dispute {
  box-shadow: inset 0 0 0 2px var(--err-t);
  background-image: repeating-linear-gradient(
    45deg,
    color-mix(in srgb, var(--err-t) 22%, transparent) 0px,
    color-mix(in srgb, var(--err-t) 22%, transparent) 3px,
    transparent 3px,
    transparent 7px
  );
}

/* День без данных СКУД и без учёта СРМ — серый, недоработку не начисляем */
.sched-cell.is-nodata {
  background-image: repeating-linear-gradient(
    135deg,
    color-mix(in srgb, var(--t3) 16%, transparent) 0px,
    color-mix(in srgb, var(--t3) 16%, transparent) 3px,
    transparent 3px,
    transparent 7px
  );
}

/* Метка у сотрудника: есть неотвеченный вопрос */
.sched-flagmark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 15px;
  height: 15px;
  padding: 0 3px;
  border-radius: 8px;
  background: var(--err-t);
  color: var(--bg1);
  font-size: 9px;
  font-weight: var(--fw-black);
  flex-shrink: 0;
}

/* Кнопка дашборда-ссылки */
.sched-dash__card.is-click {
  cursor: pointer;
  transition: border-color var(--fast), filter var(--fast);
}
.sched-dash__card.is-click:hover {
  border-color: var(--gold);
  filter: brightness(1.08);
}

/* ── Модалка часа дня ── */
.sched-day-meta {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 6px 12px;
  font-size: var(--text-sm);
  margin: 10px 0;
}
.sched-day-meta dt {
  color: var(--t3);
  white-space: nowrap;
}
.sched-day-meta dd {
  color: var(--t1);
  margin: 0;
  font-variant-numeric: tabular-nums;
}

.sched-seg-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 8px 0;
  max-height: 220px;
  overflow: auto;
}

.sched-seg {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 5px 9px;
  background: var(--bg4);
  border-radius: var(--r-sm);
  font-size: var(--text-sm);
  font-variant-numeric: tabular-nums;
}

.sched-seg .sched-seg__m {
  color: var(--t3);
}

.sched-punch {
  font-family: var(--mono, ui-monospace, monospace);
  font-size: 11px;
  color: var(--t2);
  display: flex;
  gap: 8px;
  padding: 2px 0;
}
.sched-punch .sched-punch__dir { width: 44px; }
.sched-punch .sched-punch__dir.in { color: var(--ok-t); }
.sched-punch .sched-punch__dir.out { color: var(--amber); }

/* ── Баннер привязки ФИО ── */
.skud-banner {
  position: fixed;
  right: 18px;
  bottom: 18px;
  /* Гейт присутствия (.pg-scene) стоит на z-index 100000. Баннер должен быть
     выше: иначе офис-менеджер не может привязать ФИО, пока не ответит на
     свой гейт (поймано Playwright 03.11.2026). */
  z-index: 100500;
  width: min(430px, 92vw);
  background: var(--bg2);
  border: 1px solid var(--amber);
  border-radius: var(--r-lg);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
  padding: 13px 15px;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

/* Свёрнутый вид: одна строка. Баннер висит поверх графика офиса, и в полном
   виде он закрывал правый нижний угол сетки — ячейки становились недоступны
   для клика (поймано Playwright-прогоном 03.11.2026). */
.skud-banner.is-collapsed {
  width: auto;
  max-width: min(420px, 92vw);
  padding: 9px 12px;
  gap: 0;
  cursor: pointer;
}

.skud-banner.is-collapsed .skud-banner__sub,
.skud-banner.is-collapsed .skud-map-item,
.skud-banner.is-collapsed .skud-banner__more {
  display: none;
}

.skud-banner.is-collapsed .skud-banner__head {
  align-items: center;
}

.skud-banner.is-collapsed .skud-banner__title {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.skud-banner__head {
  display: flex;
  align-items: flex-start;
  gap: 9px;
}

.skud-banner__title {
  font-size: var(--text-sm);
  font-weight: var(--fw-bold);
  color: var(--t1);
  flex: 1;
}

.skud-banner__x {
  background: none;
  border: none;
  color: var(--t3);
  font-size: 17px;
  line-height: 1;
  cursor: pointer;
  padding: 0 2px;
}
.skud-banner__x:hover { color: var(--t1); }

.skud-banner__sub {
  font-size: var(--text-xs);
  color: var(--t3);
}

.skud-map-item {
  background: var(--bg4);
  border-radius: var(--r-md);
  padding: 9px 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.skud-map-item__name {
  font-size: var(--text-sm);
  font-weight: var(--fw-bold);
  color: var(--t1);
}

.skud-map-item__days {
  font-size: 11px;
  color: var(--t3);
}

.skud-map-item__opts {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.skud-opt {
  background: var(--bg2);
  border: 1px solid var(--brd);
  border-radius: 14px;
  padding: 4px 10px;
  font-size: 12px;
  color: var(--t1);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: border-color var(--fast), background var(--fast);
}

.skud-opt:hover {
  border-color: var(--gold);
  background: var(--bg4);
}

.skud-opt .skud-opt__conf {
  font-size: 10px;
  color: var(--t3);
  font-variant-numeric: tabular-nums;
}

.skud-opt.is-skip {
  color: var(--t3);
  border-style: dashed;
}

.skud-banner__more {
  font-size: 11px;
  color: var(--t3);
  text-align: center;
}

/* ── Выбор статуса в ответ на «где ты был» ── */
.sched-dispute {
  border: 1px solid var(--err-t);
  border-radius: var(--r-md);
  padding: 11px 13px;
  background: color-mix(in srgb, var(--err-t) 8%, transparent);
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin-bottom: 10px;
}

.sched-dispute__title {
  font-size: var(--text-sm);
  font-weight: var(--fw-bold);
  color: var(--err-t);
}

.sched-dispute__txt {
  font-size: var(--text-sm);
  color: var(--t2);
  line-height: 1.45;
}

.sched-dispute__note {
  font-size: 11px;
  color: var(--t3);
}
/* ── Premium: holiday labels, ribbon, week mode, cell codes (20.28.372+) ── */
.sched-day {
  flex-direction: column;
  gap: 1px;
  height: auto;
  min-height: 40px;
  padding: 4px 2px;
  line-height: 1.1;
}
.sched-day__n {
  font-size: var(--text-sm);
  font-weight: var(--fw-semi);
}
.sched-day__hol {
  font-size: 9px;
  font-weight: var(--fw-med);
  color: var(--err-t);
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  letter-spacing: -0.02em;
}
.sched-day.weekend .sched-day__n { color: var(--t3); }
.sched-day.holiday .sched-day__n { color: var(--err-t); }
.sched-day.today .sched-day__hol { color: var(--on-color); opacity: 0.9; }

.sched-holidays {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: -4px 0 var(--sp-4);
  padding: 0 2px;
}
.sched-holidays:empty { display: none; }
.sched-holidays__chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  border-radius: var(--r-full);
  border: 1px solid color-mix(in srgb, var(--err-t) 35%, var(--brd));
  background: var(--err-bg);
  color: var(--err-t);
  font-size: 12px;
  font-weight: var(--fw-med);
}
.sched-holidays__chip b { font-weight: var(--fw-extra); }

.sched-cell__code {
  position: absolute;
  left: 3px;
  top: 2px;
  font-size: 10px;
  font-weight: var(--fw-extra);
  letter-spacing: 0.02em;
  color: var(--t1);
  text-shadow: 0 1px 0 color-mix(in srgb, var(--bg1) 55%, transparent);
  opacity: 0.92;
  pointer-events: none;
  text-transform: uppercase;
}
.sched-cell.has-hours .sched-cell__code { top: 1px; }
.sched-cell.holiday-empty {
  background: color-mix(in srgb, var(--err-t) 10%, var(--bg2));
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--err-t) 28%, transparent);
}
.sched-cell.holiday-empty .sched-cell__code { color: var(--err-t); }
.sched-htag {
  font-size: 9px;
  font-weight: var(--fw-extra);
  color: var(--err-t);
  letter-spacing: 0.04em;
}

.sched-mode {
  display: inline-flex;
  gap: 4px;
  margin-right: 8px;
}
.sched-mode .btn.is-on {
  border-color: var(--gold);
  color: var(--gold);
  background: var(--gold-bg);
}

.sched-wrap.is-week .sched-day,
.sched-wrap.is-week .sched-cell {
  min-width: 44px;
}

@media (max-width: 1199px) {
  .sched-day__hol { font-size: 8px; }
  .sched-name { width: 130px; min-width: 130px; }
}
@media (max-width: 767px) {
  .sched-hero { flex-wrap: wrap; }
  .sched-hero__nav { margin-left: 0; width: 100%; }
  .sched-name { width: 110px; min-width: 110px; }
  .sched-day__hol { display: none; }
}
