/* Оттепель v0.33 — поверх style.css … v032.css. Отпуска частями, кабинет сотрудника, промежуточная премия, медкнижки, чек-листы.
   Правила те же: один цвет — один смысл; состояние словом и значком, не только цветом; нажимаемое от 44 px; текст не меньше 11 px. */

/* ---------- Отпуска частями ---------- */
.mark.vp-a, .mark.vp-b { display: inline-block; width: 12px; height: 12px; border-radius: 4px; margin-right: 8px; vertical-align: -1px; }
.mark.vp-a { background: var(--accent); }
.mark.vp-b { background: var(--ink-muted); }
.vp-head { display: flex; justify-content: space-between; align-items: baseline; padding: 0 4px; }
.vp-row { display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 8px 4px 8px 16px; }
.vp-row .mark { margin: 0; flex: none; }
.vp-t { flex: 1; min-width: 0; display: grid; }
.vp-t b { font-size: 16px; font-weight: 600; }
.vp-t small { font-size: 14px; color: var(--ink-muted); }
.vp-del { color: var(--danger); margin-right: 0; }
.vp-add { width: 100%; min-height: 48px; border: 0; background: var(--surface); color: var(--accent); font: inherit; font-size: 16px; font-weight: 600; text-align: left; padding: 0 16px; }
.vp-add:disabled { color: var(--ink-muted); }
.vp-rule { padding: 0 4px; font-size: 14px; font-weight: 600; }
.vp-ok { display: inline-flex; gap: 6px; align-items: center; color: var(--green); }
.vp-no { display: inline-flex; gap: 6px; align-items: center; color: var(--ink-muted); }
.vp-bad { display: inline-flex; gap: 6px; align-items: center; color: var(--danger); }
.calendar-day.vp-day { background: var(--accent); color: var(--on-accent); font-weight: 700; }
.calendar-day.vp-other { box-shadow: inset 0 0 0 2px var(--ink-muted); }
.calendar-day.vp-pick { box-shadow: inset 0 0 0 3px var(--accent); }
.field-hint.vp-error { color: var(--danger); font-weight: 600; }

/* ---------- Мой кабинет ---------- */
.gold-amt { color: var(--gold); }
.cb-head { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.cb-head .big, .cb-int .big { font: 700 30px/1.1 var(--font-rounded); font-variant-numeric: tabular-nums; }
.cb-dots { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 4px; }
.cb-d { position: relative; height: 32px; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 13px; font-variant-numeric: tabular-nums; background: var(--surface-alt); color: var(--ink-muted); }
.cb-d.on { background: var(--accent); color: var(--on-accent); font-weight: 700; }
.cb-d.half { background: var(--accent); color: var(--on-accent); font-weight: 700; box-shadow: inset 0 0 0 2px var(--gold); }
.cb-d.half i { position: absolute; top: -1px; right: 2px; font-size: 9px; font-style: normal; color: var(--on-accent); }
.cb-d.vac { background: repeating-linear-gradient(135deg, var(--hatch-a, var(--surface-alt)) 0 4px, var(--hatch-b, var(--border)) 4px 6px); color: var(--hatch-ink, var(--ink)); box-shadow: inset 0 0 0 1px var(--hatch-line, var(--border)); }
.cb-d.future { background: var(--surface); box-shadow: inset 0 0 0 1px var(--border); }
.cb-int { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.cb-if { text-align: right; font-size: 14px; color: var(--ink-muted); }
.cb-if b { font-size: 20px; }
.cb-pr { display: grid; gap: 6px; }
.cb-pr-top { display: flex; justify-content: space-between; font-size: 15px; }

/* ---------- Промежуточная премия ---------- */
.up-row { display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 8px 12px 8px 16px; }
.up-ic { width: 36px; height: 36px; flex: none; border-radius: 10px; background: var(--surface-alt); color: var(--ink-muted); display: flex; align-items: center; justify-content: center; }
.up-ic.ok { background: var(--green-bg); color: var(--green); }
.up-t { flex: 1; min-width: 0; display: grid; }
.up-t b { font-size: 16px; font-weight: 600; }
.up-t small { font-size: 13px; overflow-wrap: anywhere; }
.ip-row { display: flex; align-items: center; gap: 10px; min-height: 56px; padding: 10px 16px; }
.ip-row .rt { flex: 1; min-width: 0; display: grid; gap: 2px; }
.ip-amt { display: flex; flex-direction: column; align-items: flex-end; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ip-if { font-size: 14px; font-weight: 700; }

/* ---------- Медкнижки ---------- */
.mb-sum { display: grid; grid-template-columns: repeat(auto-fit, minmax(76px, 1fr)); gap: 8px; }
.mb-c { display: grid; gap: 2px; align-content: start; padding: 10px 8px; border-radius: 12px; background: var(--surface); box-shadow: var(--shadow); text-align: center; min-width: 0; }
.mb-c b { font: 700 22px/1.1 var(--font-rounded); font-variant-numeric: tabular-nums; }
.mb-c span { display: inline-flex; align-items: center; justify-content: center; gap: 3px; flex-wrap: wrap; font-size: 12px; line-height: 1.2; color: var(--ink-muted); }
.mb-c.bad.has { background: var(--danger-bg); }
.mb-c.bad.has b, .mb-c.bad.has span { color: var(--danger); }
.mb-c.ok.has b, .mb-c.ok.has span { color: var(--green); }
.row-main > .tpill { margin-left: auto; flex: none; }

/* ---------- Чек-лист смены и журнал температур (O6) — по макету «Чек-лист смены» ---------- */
.ck-prog { display: flex; justify-content: space-between; align-items: center; gap: 4px 12px; flex-wrap: wrap; background: var(--surface); border-radius: 14px; padding: 12px 16px; box-shadow: var(--shadow); }
.ck-prog b { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }
.ck-prog span { font-size: 13px; color: var(--ink-muted); }
.ck-prog.done b { color: var(--green); }
.ck-row { width: 100%; display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 8px 16px; border: 0; background: var(--surface); color: var(--ink); text-align: left; font: inherit; font-size: 15px; }
.ck-row:disabled { opacity: 1; cursor: default; }
.ck-dot { width: 24px; height: 24px; border-radius: 50%; flex: none; box-sizing: border-box; border: 2px solid var(--border); display: flex; align-items: center; justify-content: center; }
.ck-dot.on { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.ck-rt { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.ck-s { font-size: 13px; color: var(--ink-muted); }
.tr-row { display: flex; align-items: center; gap: 10px; min-height: 56px; padding: 8px 12px 8px 16px; flex-wrap: wrap; }
.tr-t { flex: 1; min-width: 140px; display: flex; flex-direction: column; }
.tr-t b { font-weight: 600; }
.tr-t small { font-size: 13px; color: var(--ink-muted); }
.tr-v { font-size: 20px; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tr-v.none { color: var(--ink-muted); }
.tr-btn { min-height: 44px; min-width: 44px; padding: 0 12px; border: 0; border-radius: 10px; background: var(--accent-soft); color: var(--accent); font: inherit; font-size: 15px; font-weight: 600; flex: none; }
.ck-norm { display: flex; gap: 8px; flex-wrap: wrap; }
.ck-norm-f { flex: 1; min-width: 120px; display: flex; align-items: center; gap: 8px; }
.ck-norm-f span { font-size: 15px; color: var(--ink-muted); }
.row.off .row-title { color: var(--ink-muted); }
