/* Redesign: the look of the approved mockups. App bar with role tabs,
   «Мой отпуск», the vacation request sheet, «Пульт», «Заявки» and the decision
   panel. Loaded after styles.css:
   also retunes the legacy screens (grid, modals) to the same fonts and colours.
   New classes carry the u- prefix so they never collide with the legacy ones. */
:root {
  --u-bg: #F3F4F8; --u-surface: #FFFFFF; --u-ink: #1D2027; --u-muted: #5C6270; --u-soft: #8A909C;
  --u-line: #E3E6EC; --u-line2: #EEF0F4;
  --u-primary: #1D2027; --u-jade: #0F8A6E; --u-jade-bg: #E9F6F1; --u-jade-ink: #11624F;
  --u-amber: #F0A21B; --u-amber-bg: #FFF6E3; --u-amber-bg2: #FDEFD3; --u-amber-ink: #8A5300; --u-amber-text: #5A3D00; --u-amber-icon: #B26A00;
  --u-red: #B1262C; --u-red-bg: #FDECEC; --u-blue: #2196D9; --u-blue-bg: #E3F1FB; --u-blue-ink: #0B6AA3;
  --u-font: "Onest", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --u-num: "Unbounded", "Onest", system-ui, sans-serif;
  /* legacy screens follow the new palette */
  --bg: var(--u-bg); --text: var(--u-ink); --muted: var(--u-muted);
  --accent: #1D2027; --accent-dark: #000000; --accent-soft: #EEF0F5; --border: var(--u-line);
}

/* ── Page frame: app bar on top, one view below ───────────────────────────── */
html, body { height: 100%; }
body {
  display: flex; flex-direction: column;
  font-family: var(--u-font); background: var(--u-bg); color: var(--u-ink);
}
button, input, select, textarea { font-family: inherit; }
[hidden] { display: none !important; }
button.primary { box-shadow: none; }
.u-ico { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; display: block; }

.u-appbar {
  flex: none; height: 64px; display: flex; align-items: center; gap: 16px;
  padding: 0 24px; background: var(--u-bg); border-bottom: 1px solid var(--u-line);
}
.u-brand { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 16px; white-space: nowrap; }
.u-logo { width: 34px; height: 34px; border-radius: 11px; background: var(--u-primary); color: #fff; display: grid; place-items: center; }
.u-logo .u-ico { width: 18px; height: 18px; }
.u-tabs { display: flex; gap: 4px; margin-left: 10px; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.u-tab {
  border: 0; background: transparent; color: var(--u-muted); cursor: pointer;
  font: 500 14px var(--u-font); padding: 9px 16px; border-radius: 20px;
  display: inline-flex; align-items: center; gap: 7px; white-space: nowrap;
}
.u-tab:hover { color: var(--u-ink); }
.u-tab.on { background: #fff; color: var(--u-ink); box-shadow: 0 1px 3px rgba(20,24,34,.08); }
.u-tab .u-ico { width: 17px; height: 17px; }
.u-tab b { min-width: 19px; height: 19px; border-radius: 10px; background: var(--u-amber); color: var(--u-ink); font-size: 11.5px; display: grid; place-items: center; padding: 0 5px; }
.u-fill { flex: 1; }
.u-me { display: flex; align-items: center; gap: 10px; min-width: 0; }
.u-me b { display: block; font-size: 14px; font-weight: 600; line-height: 1.2; white-space: nowrap; }
.u-me small { font-size: 12px; color: var(--u-muted); white-space: nowrap; }

/* Until ui.js picks the start screen the legacy grid stays out of sight. */
body.u-booting #view-grid { visibility: hidden; }
body.u-booting::after { content: "Загрузка…"; position: fixed; left: 50%; top: 45%; transform: translateX(-50%); color: var(--u-muted); font-size: 14px; }
.u-view { flex: 1; min-height: 0; }
.u-view.hidden { display: none !important; }
.u-page { overflow: auto; }

/* Legacy grid as the «График» view: its own toolbar row, sidebar and board. */
.u-view.legacy {
  display: grid; grid-template-columns: 280px 1fr; grid-template-rows: 60px 1fr;
  grid-template-areas: "top top" "aside main";
}
.u-view.legacy .brand { display: none; }
.u-view.legacy .topbar { background: var(--u-bg); }
#vac-new-btn, #vac-list-btn { display: none !important; }

/* ── Shared pieces ────────────────────────────────────────────────────────── */
.u-av { display: inline-grid; place-items: center; border-radius: 50%; font-weight: 600; flex: none; letter-spacing: .01em; overflow: hidden; }
.u-av img { width: 100%; height: 100%; object-fit: cover; display: block; }
.u-card { background: #fff; border-radius: 22px; padding: 24px; box-shadow: 0 1px 2px rgba(20,24,34,.05); min-width: 0; }
.u-lbl { display: block; font-size: 13.5px; font-weight: 500; color: var(--u-muted); }
.u-btn1, .u-btn2, .u-btn-ok, .u-btn-no {
  height: 48px; padding: 0 22px; border-radius: 24px; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font: 600 15px var(--u-font); white-space: nowrap;
}
.u-btn1 { background: var(--u-primary); color: #fff; border: 0; }
.u-btn1:hover { background: #000; }
.u-btn1:disabled { background: #C3C8D1; cursor: default; }
.u-btn2 { background: #fff; color: var(--u-ink); border: 1px solid #DFE2EA; font-weight: 500; }
.u-btn2:hover { border-color: #C3C8D1; }
.u-btn-ok { background: var(--u-jade); color: #fff; border: 0; }
.u-btn-ok:hover { background: #0C735C; }
.u-btn-no { background: #fff; color: #3A3F4A; border: 1px solid #DFE2EA; }
.u-btn-sm { height: 36px; padding: 0 14px; font-size: 13.5px; border-radius: 18px; }
.u-link { border: 0; background: none; padding: 0; cursor: pointer; display: inline-flex; align-items: center; gap: 4px; font: 600 14px var(--u-font); color: var(--u-ink); }
.u-link .u-ico { width: 16px; height: 16px; }
.u-xtag { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 12px; background: var(--u-amber-bg2); color: var(--u-amber-ink); font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.u-xtag .u-ico { width: 15px; height: 15px; }
.u-pill { padding: 5px 11px; border-radius: 14px; font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.u-status { display: inline-flex; align-items: center; padding: 4px 10px; border-radius: 12px; font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.u-st-hr, .u-st-dir { background: var(--u-amber-bg2); color: var(--u-amber-ink); }
.u-st-ok { background: var(--u-jade-bg); color: var(--u-jade-ink); }
.u-st-no { background: var(--u-red-bg); color: var(--u-red); }
.u-st-off { background: #F1F2F5; color: var(--u-muted); }
.u-empty { color: var(--u-muted); font-size: 14px; }

/* ── «Мой отпуск» ─────────────────────────────────────────────────────────── */
.u-my { max-width: 1400px; margin: 0 auto; padding: 18px 40px 40px; display: flex; flex-direction: column; gap: 22px; }
.u-hello { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.u-hello h1 { margin: 0; font-family: var(--u-num); font-weight: 600; font-size: 30px; letter-spacing: -.01em; line-height: 1.15; }
.u-hello p { margin: 6px 0 0; color: var(--u-muted); }
.u-cta { display: flex; gap: 10px; flex-wrap: wrap; }
.u-grid3 { display: grid; grid-template-columns: minmax(280px, 380px) minmax(0, 1fr) minmax(300px, 430px); gap: 18px; align-items: stretch; }
@media (max-width: 1240px) { .u-grid3 { grid-template-columns: 1fr 1fr; } .u-grid3 > .u-team { grid-column: 1 / -1; } }
@media (max-width: 760px) { .u-grid3 { grid-template-columns: 1fr; } .u-my { padding: 14px 16px 32px; } }

.u-big { font-family: var(--u-num); font-weight: 700; font-size: 96px; line-height: .92; letter-spacing: -.04em; margin-top: 16px; }
.u-big-l { font-size: 17px; font-weight: 500; margin-top: 10px; }
.u-meter { display: flex; height: 12px; border-radius: 6px; overflow: hidden; gap: 3px; margin-top: 22px; }
.u-meter span { display: block; min-width: 4px; }
.u-m-used { background: var(--u-blue); }
.u-m-plan { background: #6FB4E4; }
.u-m-pend { background: repeating-linear-gradient(135deg, #8EC6EC 0 5px, #C8E3F6 5px 10px); }
.u-m-free { background: #E7EAF0; }
.u-mlegend { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 12px; font-size: 13px; color: var(--u-muted); }
.u-mlegend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.u-hint { display: flex; gap: 10px; align-items: flex-start; margin-top: 18px; padding: 12px 14px; border-radius: 14px; font-size: 13px; line-height: 1.45; }
.u-hint .u-ico { width: 17px; height: 17px; margin-top: 1px; }
.u-hint.warn { background: var(--u-amber-bg); color: var(--u-amber-text); }
.u-hint.warn .u-ico { color: var(--u-amber-icon); }
.u-hint.ok { background: var(--u-jade-bg); color: var(--u-jade-ink); }

.u-req-t { display: block; font-size: 24px; font-weight: 600; margin-top: 10px; letter-spacing: -.01em; }
.u-req-s { display: block; color: var(--u-muted); font-size: 14px; }
.u-req .u-xtag { margin-top: 10px; }
.u-req-note { margin: 12px 0 0; font-size: 13.5px; color: #3A3F4A; background: #F6F7FA; border-radius: 12px; padding: 10px 12px; }
.u-steps { list-style: none; margin: 20px 0 0; padding: 0; }
.u-steps li { display: grid; grid-template-columns: 28px 1fr; column-gap: 12px; position: relative; padding-bottom: 16px; }
.u-steps li::before { content: ""; grid-row: 1 / 3; width: 16px; height: 16px; border-radius: 50%; border: 2px solid #CBD1DB; background: #fff; margin: 2px 0 0 6px; position: relative; z-index: 1; box-sizing: border-box; }
.u-steps li::after { content: ""; position: absolute; left: 13px; top: 20px; bottom: 0; width: 2px; background: #E3E6EC; }
.u-steps li:last-child { padding-bottom: 0; }
.u-steps li:last-child::after { display: none; }
.u-steps li.done::before { background: #2E9E62; border-color: #2E9E62; }
.u-steps li.done::after { background: #2E9E62; }
.u-steps li.cur::before { background: var(--u-amber); border-color: var(--u-amber); box-shadow: 0 0 0 4px var(--u-amber-bg2); }
.u-steps li.no::before { background: var(--u-red); border-color: var(--u-red); }
.u-steps b { font-weight: 600; }
.u-steps span { grid-column: 2; font-size: 13.5px; color: var(--u-muted); }
.u-req-empty { margin-top: 14px; display: grid; gap: 14px; justify-items: start; color: var(--u-muted); font-size: 14px; }

.u-th { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.u-th b { font-size: 17px; font-weight: 600; }
.u-th span { color: var(--u-muted); font-size: 14px; }
.u-th2 { margin: 20px 0 10px; }
.u-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.u-list li { display: flex; align-items: center; gap: 12px; min-width: 0; }
.u-list .u-av { width: 40px; height: 40px; font-size: 13.5px; }
.u-list div { min-width: 0; flex: 1; }
.u-list b { display: block; font-weight: 600; font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.u-list span.u-sub { font-size: 13px; color: var(--u-muted); }
.u-list.sm .u-av { width: 32px; height: 32px; font-size: 11.5px; }
.u-list.sm b { font-size: 14px; }
.u-hol { width: 32px; height: 32px; border-radius: 10px; background: #FDE8E8; color: #B42A2F; display: grid; place-items: center; font-weight: 700; font-size: 13px; flex: none; }
.u-more { font-size: 13px; color: var(--u-muted); margin-top: 10px; }

.u-week { padding: 22px 24px; }
.u-wh { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.u-wh b { font-size: 17px; font-weight: 600; }
.u-wk { display: grid; grid-template-columns: 220px repeat(7, minmax(0, 1fr)); height: 46px; }
.u-wk.hd { height: 44px; }
.u-wn { grid-row: 1; grid-column: 1; display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 14px; min-width: 0; }
.u-wn span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.u-wn .u-av { width: 30px; height: 30px; font-size: 11px; }
.u-wc { grid-row: 1; border-left: 1px dashed #E3E6EC; }
.u-wd { display: grid; place-content: center; justify-items: center; font-size: 12px; color: var(--u-muted); }
.u-wd b { font-size: 14px; color: var(--u-ink); width: 28px; height: 28px; border-radius: 14px; display: grid; place-items: center; }
.u-wd.we b { color: #9AA0AD; }
.u-wd.hol b { color: #C2282E; }
.u-wd.td b { background: var(--u-primary); color: #fff; }
.u-wb { grid-row: 1; align-self: center; height: 32px; margin: 0 3px; border-radius: 16px; display: flex; align-items: center; gap: 8px; padding: 0 14px; font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; z-index: 1; }
.u-wb small { font-weight: 500; opacity: .8; }
.u-wb.cl { border-top-left-radius: 0; border-bottom-left-radius: 0; margin-left: 0; }
.u-wb.cr { border-top-right-radius: 0; border-bottom-right-radius: 0; margin-right: 0; }
.u-wf { margin-top: 10px; font-size: 13px; color: var(--u-muted); }
@media (max-width: 760px) { .u-wk { grid-template-columns: 120px repeat(7, minmax(0, 1fr)); } .u-wb { padding: 0 6px; font-size: 11px; } .u-wb small { display: none; } }

/* ── Request sheet ────────────────────────────────────────────────────────── */
.u-ov { position: fixed; inset: 0; z-index: 120; background: rgba(20,24,34,.35); display: flex; justify-content: flex-end; }
.u-sheet { width: min(560px, 100%); height: 100%; background: #fff; display: flex; flex-direction: column; box-shadow: -24px 0 48px -24px rgba(20,24,34,.3); }
.u-sh-h { display: flex; align-items: center; gap: 12px; padding: 20px 24px 10px; }
.u-sh-h b { font-family: var(--u-num); font-weight: 600; font-size: 20px; }
.u-x { margin-left: auto; width: 40px; height: 40px; border-radius: 20px; border: 0; background: #F3F4F8; color: var(--u-ink); display: grid; place-items: center; cursor: pointer; }
.u-sh-b { flex: 1; overflow: auto; padding: 4px 24px 16px; display: flex; flex-direction: column; gap: 14px; }
.u-sh-f { padding: 14px 24px 20px; border-top: 1px solid #F0F1F5; display: grid; gap: 10px; }
.u-sh-f .u-btn1 { width: 100%; height: 52px; border-radius: 26px; font-size: 16px; }

.u-cal { border: 1px solid #E6E8EE; border-radius: 18px; padding: 12px 14px 10px; }
.u-calh { display: flex; align-items: center; justify-content: space-between; padding: 0 4px 8px; }
.u-calh b { font-size: 16px; font-weight: 600; }
.u-calh span { display: flex; gap: 6px; }
.u-calh button { width: 32px; height: 32px; border-radius: 16px; border: 0; background: #F3F4F8; color: var(--u-ink); display: grid; place-items: center; cursor: pointer; }
.u-calh button:disabled { opacity: .35; cursor: default; }
.u-days { display: grid; grid-template-columns: repeat(7, 1fr); row-gap: 3px; }
.u-wdn { font-size: 12px; color: var(--u-soft); text-align: center; padding-bottom: 4px; }
.u-d { height: 40px; border: 0; background: none; font: 500 15px var(--u-font); color: var(--u-ink); display: grid; place-items: center; position: relative; cursor: pointer; font-variant-numeric: tabular-nums; padding: 0; }
.u-d:hover:not(:disabled) { background: #F3F4F8; border-radius: 12px; }
.u-d.out { color: #C3C8D1; cursor: default; }
.u-d.we { color: var(--u-soft); }
.u-d:disabled { color: #C3C8D1; text-decoration: line-through; cursor: default; }
.u-d.out:disabled { text-decoration: none; }
.u-d.hol { color: #C2282E; font-weight: 600; }
.u-d.hol::after { content: ""; position: absolute; bottom: 5px; width: 5px; height: 5px; border-radius: 50%; background: #E5484D; }
.u-d.mine { box-shadow: inset 0 -3px 0 #9DCDEE; }
.u-d.td { box-shadow: inset 0 0 0 1.5px #C3C8D1; border-radius: 12px; }
.u-d.in { background: var(--u-blue-bg); color: var(--u-blue-ink); border-radius: 0; }
.u-d.s, .u-d.e { background: var(--u-primary); color: #fff; font-weight: 600; }
.u-d.s { border-radius: 12px 0 0 12px; }
.u-d.e { border-radius: 0 12px 12px 0; }
.u-d.s.e { border-radius: 12px; }
.u-leg { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 12.5px; color: var(--u-muted); padding: 8px 4px 0; }
.u-leg span { display: inline-flex; align-items: center; gap: 6px; }
.u-leg i { width: 8px; height: 8px; border-radius: 50%; background: #E5484D; }
.u-leg s { color: #9AA0AD; }

.u-sum { background: #F3F4F8; border-radius: 18px; padding: 14px 18px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.u-sum b { display: block; font-family: var(--u-num); font-weight: 600; font-size: 20px; letter-spacing: -.01em; }
.u-sum span { color: var(--u-muted); font-size: 14px; }
.u-sum .u-r { text-align: right; }
.u-sum.neg .u-r b { color: var(--u-red); }
.u-warn { border-radius: 18px; background: var(--u-amber-bg); border: 1px solid #F1D69E; padding: 14px 16px; display: grid; gap: 8px; color: var(--u-amber-text); }
.u-warn-h { display: flex; align-items: center; gap: 8px; }
.u-warn-h b { font-size: 15px; }
.u-warn-h .u-ico { width: 19px; height: 19px; color: var(--u-amber-icon); }
.u-warn p { margin: 0; font-size: 13.5px; line-height: 1.45; }
.u-fix { justify-self: start; padding: 8px 14px; border-radius: 16px; background: #fff; border: 1px solid #E6CB92; font: 600 13px var(--u-font); color: var(--u-ink); cursor: pointer; }
.u-fix:hover { border-color: var(--u-amber-icon); }
.u-field { display: grid; gap: 6px; }
.u-field label { font-size: 13.5px; font-weight: 600; }
.u-field label em { font-style: normal; font-weight: 500; color: var(--u-amber-icon); margin-left: 6px; font-size: 12.5px; }
.u-field textarea { min-height: 64px; resize: vertical; border: 1.5px solid #DFE2EA; border-radius: 14px; padding: 10px 14px; font: 400 14px/1.45 var(--u-font); color: var(--u-ink); outline: none; }
.u-field textarea:focus { border-color: var(--u-ink); }
.u-field.need textarea { border-color: var(--u-amber-icon); }
.u-who { font-size: 13.5px; color: var(--u-muted); margin: 0; }
.u-who b { color: var(--u-ink); font-weight: 600; }
.u-err { color: var(--u-red); font-size: 13.5px; margin: 0; }
.u-wait { color: var(--u-muted); font-size: 13.5px; margin: 0; }

/* ── Select with a chevron ────────────────────────────────────────────────── */
.u-sel {
  height: 34px; border-radius: 17px; border: 1px solid #DFE2EA; background-color: #fff; color: var(--u-ink);
  padding: 0 32px 0 14px; font: 500 13.5px var(--u-font); cursor: pointer; appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235C6270' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m7 10 5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 10px center; background-size: 16px;
}
.u-sel:hover { border-color: #C3C8D1; }

/* ── «Пульт» ──────────────────────────────────────────────────────────────── */
.u-desk { max-width: 1680px; margin: 0 auto; padding: 16px 28px 28px; display: flex; flex-direction: column; gap: 16px; }
.u-band { display: grid; grid-template-columns: 160px minmax(0, 1.8fr) repeat(4, minmax(0, 1fr)); gap: 12px; }
.u-bdate { display: grid; align-content: center; }
.u-bdate span { color: var(--u-muted); font-size: 13.5px; }
.u-bdate b { font-size: 24px; font-weight: 600; letter-spacing: -.01em; }
.u-kpi { background: #fff; border: 0; border-radius: 18px; padding: 14px 16px; display: grid; gap: 4px; align-content: start; text-align: left; font: inherit; color: inherit; min-width: 0; }
button.u-kpi { cursor: pointer; }
button.u-kpi:hover { box-shadow: inset 0 0 0 1.5px #D5D9E1; }
.u-kpi > span { font-size: 13px; color: var(--u-muted); }
.u-kpi > b { font-size: 28px; font-weight: 600; font-variant-numeric: tabular-nums; line-height: 1.1; }
.u-kpi > small { font-size: 12.5px; color: var(--u-muted); }
.u-kv { display: flex; align-items: center; gap: 8px; min-width: 0; }
.u-kv b { font-family: var(--u-num); font-weight: 700; font-size: 30px; line-height: 1; }
.u-kv small { color: var(--u-muted); font-size: 13.5px; white-space: nowrap; }
.u-avs { margin-left: auto; display: flex; padding-left: 8px; }
.u-avs .u-av { width: 32px; height: 32px; font-size: 11px; box-shadow: 0 0 0 2px #fff; margin-left: -8px; }
.u-kpi.wait { background: var(--u-amber-bg); }
.u-kpi.wait > b { color: var(--u-amber-ink); }
.u-kpi.law { background: var(--u-red-bg); }
.u-kpi.law > b { color: var(--u-red); }

.u-dmain { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 18px; align-items: start; }
.u-gcard { padding: 0; overflow: hidden; border-radius: 20px; }
.u-tools { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-bottom: 1px solid var(--u-line2); flex-wrap: wrap; }
.u-per { display: flex; align-items: center; gap: 6px; }
.u-per b { font-size: 16px; font-weight: 600; min-width: 128px; text-align: center; }
.u-per button { width: 32px; height: 32px; border-radius: 16px; border: 0; background: #F3F4F8; color: var(--u-ink); display: grid; place-items: center; cursor: pointer; }
.u-per button:hover { background: #E8EAF0; }
.u-per .u-ico { width: 16px; height: 16px; }
.u-chipbtn { height: 32px; padding: 0 12px; border-radius: 16px; border: 0; background: #F3F4F8; font: 500 13.5px var(--u-font); color: var(--u-ink); cursor: pointer; }
.u-tools .u-link { font-size: 13.5px; }

.u-mgrid { overflow-x: auto; }
.u-mrow { display: grid; height: 43px; border-top: 1px solid #F0F1F5; min-width: 860px; }
.u-mrow.hd { height: 44px; border-top: 0; }
.u-mrow > * { grid-row: 1; }
.u-mname { grid-column: 1; display: flex; align-items: center; gap: 9px; padding: 0 10px 0 16px; min-width: 0; border-right: 1px solid var(--u-line2); }
.u-mname .u-av { width: 26px; height: 26px; font-size: 10px; }
.u-mnm { display: grid; min-width: 0; }
.u-mnm b { font-weight: 600; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.u-mnm span { font-size: 11.5px; color: var(--u-soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.u-mh { font-size: 12px; color: var(--u-soft); font-weight: 500; }
.u-mdot { width: 7px; height: 7px; border-radius: 50%; flex: none; margin-left: auto; }
.u-mcell { border-left: 1px solid #F3F4F7; }
.u-mcell.we { background: #F7F8FA; }
.u-mcell.hol { background: #FDF1F1; }
.u-mcell.td { background: #EEF0F5; }
.u-mhd { display: grid; place-content: center; justify-items: center; font-variant-numeric: tabular-nums; }
.u-mhd b { font-size: 12px; font-weight: 600; width: 22px; height: 22px; border-radius: 11px; display: grid; place-items: center; }
.u-mhd i { font-size: 10px; color: var(--u-soft); font-style: normal; }
.u-mhd.we b { color: var(--u-soft); }
.u-mhd.hol b { color: #C2282E; }
.u-mhd.td b { background: var(--u-primary); color: #fff; }
.u-mbar { align-self: center; height: 26px; margin: 0 1px; border-radius: 13px; display: block; line-height: 26px; padding: 0 8px; font-size: 11.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; z-index: 1; min-width: 0; }
.u-mbar.cl { border-top-left-radius: 0; border-bottom-left-radius: 0; margin-left: 0; }
.u-mbar.cr { border-top-right-radius: 0; border-bottom-right-radius: 0; margin-right: 0; }
.u-mtot { display: grid; place-items: center; border-left: 1px solid var(--u-line2); font-variant-numeric: tabular-nums; font-size: 13px; }
.u-mth { font-size: 11.5px; font-weight: 600; color: #3A3F4A; text-align: center; }
.u-myr { font-weight: 600; padding: 2px 6px; border-radius: 8px; white-space: nowrap; }
.u-myr small { color: var(--u-soft); font-weight: 400; }
.u-myr.low { color: var(--u-amber-ink); background: #FFF1D6; }
.u-dim { color: #C9CDD5; }
.u-mgrp { height: 30px; display: flex; align-items: center; gap: 8px; padding: 0 16px; background: #F8F9FB; border-top: 1px solid var(--u-line2); font-size: 12.5px; font-weight: 600; color: #3A3F4A; min-width: 860px; }
.u-mgrp span { color: var(--u-soft); font-weight: 500; }
.u-mfoot { display: flex; flex-wrap: wrap; gap: 8px 14px; padding: 12px 16px; border-top: 1px solid var(--u-line2); font-size: 12px; color: var(--u-muted); }
.u-mfoot > span, .u-lg { display: inline-flex; align-items: center; gap: 5px; }
.u-mfoot > span > i, .u-lg > i { width: 9px; height: 9px; border-radius: 3px; }
.u-mfoot i.u-lhol, .u-lg i.u-lhol { background: #FDF1F1; box-shadow: inset 0 0 0 1px #F4C7C7; }

.u-dside { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.u-box { background: #fff; border-radius: 20px; padding: 16px; display: grid; gap: 12px; min-width: 0; }
.u-bh { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 15px; }
.u-bh em { font-style: normal; font-size: 12px; font-weight: 600; border-radius: 10px; padding: 1px 8px; background: var(--u-amber-bg2); color: var(--u-amber-ink); }
.u-bh em.g { background: var(--u-line2); color: #3A3F4A; }
.u-box > .u-link { justify-self: start; font-size: 13.5px; }
.u-box > .u-empty { margin: 0; font-size: 13.5px; }
.u-dreq { border: 1.5px solid var(--u-ink); border-radius: 16px; padding: 14px; display: grid; gap: 10px; cursor: pointer; }
.u-dreq:hover { background: #FBFBFD; }
.u-drq, .u-mini, .u-pwho, .u-tw { display: flex; gap: 10px; align-items: center; min-width: 0; }
.u-drq > div, .u-mini > div, .u-pwho > div, .u-tw > div { min-width: 0; }
.u-drq .u-av { width: 36px; height: 36px; font-size: 12px; }
.u-drq b { display: block; font-size: 14px; font-weight: 600; }
.u-drq span { font-size: 12.5px; color: var(--u-muted); }
.u-drd { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; color: var(--u-muted); }
.u-drd b { color: var(--u-ink); text-align: right; }
.u-dexc { display: grid; gap: 4px; background: var(--u-amber-bg); border-radius: 12px; padding: 10px 12px; font-size: 12.5px; color: var(--u-amber-text); }
.u-dexc b { display: flex; align-items: center; gap: 6px; font-size: 13px; }
.u-dexc .u-ico { width: 16px; height: 16px; color: var(--u-amber-icon); }
.u-dacts { display: flex; gap: 8px; }
.u-dacts button { flex: 1; height: 38px; padding: 0 10px; }
.u-dacts .u-ico { width: 16px; height: 16px; }
.u-mini { border: 0; background: none; padding: 0; text-align: left; cursor: pointer; font: inherit; color: inherit; width: 100%; }
.u-mini:hover b { text-decoration: underline; }
.u-mini .u-av { width: 32px; height: 32px; font-size: 11px; }
.u-mini b { display: block; font-size: 13.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.u-mini span { font-size: 12.5px; color: var(--u-muted); }
.u-mini span.x { color: var(--u-amber-ink); font-weight: 600; }
.u-task { display: flex; gap: 10px; align-items: flex-start; }
.u-tk { width: 32px; height: 32px; border-radius: 10px; background: #F3F4F8; display: grid; place-items: center; flex: none; }
.u-tk .u-ico { width: 17px; height: 17px; }
.u-task b { display: block; font-size: 13.5px; font-weight: 600; }
.u-task b a { color: inherit; text-decoration: none; }
.u-task b a:hover { text-decoration: underline; }
.u-task span { font-size: 12.5px; color: var(--u-muted); }
.u-task em { font-style: normal; color: var(--u-amber-ink); font-weight: 600; }
.u-soon { list-style: none; margin: 0; padding: 0; display: grid; }
.u-soon li { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-top: 1px solid #F0F1F5; }
.u-soon li:first-child { border-top: 0; padding-top: 0; }
.u-sd { width: 62px; flex: none; display: grid; font-size: 11.5px; color: var(--u-soft); }
.u-sd b { font-size: 13px; color: var(--u-ink); font-weight: 600; }
.u-soon .u-av { width: 30px; height: 30px; font-size: 10.5px; }
.u-soon .u-hol { width: 30px; height: 30px; border-radius: 9px; }
.u-sti { display: grid; min-width: 0; font-size: 12px; color: var(--u-muted); }
.u-sti b { font-size: 13px; color: var(--u-ink); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 1180px) {
  .u-band { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .u-dmain { grid-template-columns: 1fr; }
  .u-dside { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
}
@media (max-width: 760px) {
  .u-desk { padding: 14px 16px 28px; }
  .u-band { grid-template-columns: 1fr 1fr; }
  .u-dside { grid-template-columns: 1fr; }
}

/* ── «Заявки»: table with stage chips ─────────────────────────────────────── */
.u-rq { max-width: 1240px; margin: 0 auto; padding: 18px 32px 32px; display: flex; flex-direction: column; gap: 14px; }
.u-shead { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.u-shead b { display: block; font-size: 26px; font-weight: 600; letter-spacing: -.01em; }
.u-shead span { color: var(--u-muted); }
.u-yr { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--u-muted); }
.u-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.u-chip { height: 34px; padding: 0 14px; border-radius: 17px; background: #fff; border: 0; display: inline-flex; align-items: center; gap: 7px; font: 500 13.5px var(--u-font); color: #3A3F4A; cursor: pointer; }
.u-chip:hover { box-shadow: inset 0 0 0 1px #D5D9E1; }
.u-chip em { font-style: normal; color: var(--u-soft); }
.u-chip.on { background: var(--u-primary); color: #fff; box-shadow: none; }
.u-chip.on em { color: #AEB3BD; }
.u-tcard { padding: 0; overflow: auto; border-radius: 20px; }
.u-t { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.u-t th { font-size: 12px; font-weight: 600; color: var(--u-muted); text-align: left; padding: 12px 14px; background: #F8F9FB; white-space: nowrap; }
.u-t td { padding: 10px 14px; border-top: 1px solid #F0F1F5; vertical-align: middle; font-variant-numeric: tabular-nums; }
.u-t tbody tr { cursor: pointer; }
.u-t tbody tr:hover td { background: #FAFBFC; }
.u-tw .u-av { width: 32px; height: 32px; font-size: 11px; }
.u-tw b { display: block; font-weight: 600; white-space: nowrap; }
.u-tw > div > span { font-size: 12px; color: var(--u-soft); }
.u-what b { display: block; font-weight: 600; white-space: nowrap; }
.u-what span { font-size: 12.5px; color: var(--u-muted); white-space: nowrap; }
.u-rnote { display: block; font-size: 12px; color: var(--u-muted); margin-top: 4px; max-width: 280px; }
.u-nowrap { white-space: nowrap; }
.u-tact { text-align: right; width: 1%; }
.u-act { height: 30px; padding: 0 12px; border-radius: 15px; border: 1px solid #DFE2EA; background: #fff; display: inline-flex; align-items: center; font: 600 12.5px var(--u-font); color: var(--u-ink); cursor: pointer; white-space: nowrap; }
.u-act.pri { background: var(--u-primary); color: #fff; border-color: var(--u-primary); }
.u-tempty { padding: 28px 20px; margin: 0; text-align: center; }
@media (max-width: 760px) { .u-rq { padding: 14px 16px 28px; } }

/* ── «Сотрудники» ─────────────────────────────────────────────────────────── */
.u-st { max-width: 1320px; margin: 0 auto; padding: 18px 32px 32px; display: flex; flex-direction: column; gap: 14px; }
.u-stools { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.u-search { position: relative; display: block; }
.u-search .u-ico { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; color: var(--u-soft); pointer-events: none; }
.u-search input { height: 34px; width: 220px; border-radius: 17px; border: 1px solid #DFE2EA; background: #fff; padding: 0 14px 0 34px; font: 400 13.5px var(--u-font); color: var(--u-ink); outline: none; }
.u-search input:focus { border-color: var(--u-ink); }
.u-chips .u-fill { flex: 1; }
.u-t th.num, .u-t td.num { text-align: right; }
.u-stt td { white-space: nowrap; }
.u-n small { display: block; font-size: 11.5px; color: var(--u-soft); font-weight: 400; white-space: normal; max-width: 190px; margin-left: auto; }
.u-normbtn { border: 0; background: none; padding: 0; font: 600 13.5px var(--u-font); color: var(--u-ink); cursor: pointer; border-bottom: 1px dashed #AEB3BD; font-variant-numeric: tabular-nums; }
.u-normbtn:hover { border-bottom-color: var(--u-ink); }
.u-low { color: var(--u-amber-ink); background: #FFF1D6; border-radius: 8px; padding: 2px 8px; font-weight: 600; }
.u-neg { color: var(--u-red); background: var(--u-red-bg); border-radius: 8px; padding: 2px 8px; font-weight: 600; }
.u-s125 { display: inline-flex; align-items: center; padding: 4px 10px; border-radius: 12px; font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.u-s125.ok { background: var(--u-jade-bg); color: var(--u-jade-ink); }
.u-s125.soon { background: #E6F1FA; color: var(--u-blue-ink); }
.u-s125.open { background: #F1F2F5; color: #3A3F4A; }
.u-s125.exc { background: #FFF1D6; color: var(--u-amber-ink); }
.u-s125.bad { background: var(--u-red-bg); color: var(--u-red); }
.u-s125.mat { background: #F1F2F5; color: var(--u-muted); }
.u-told { display: block; font-size: 11.5px; color: var(--u-soft); margin-top: 3px; white-space: nowrap; }
.u-sfoot { margin: 0; font-size: 12.5px; color: var(--u-muted); }
.u-stt .u-tw > div > span { display: block; max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 1240px) {
  .u-st { padding: 16px 16px 28px; }
  .u-stt th, .u-stt td { padding-left: 8px; padding-right: 8px; }
  .u-stt td:nth-child(7) { white-space: normal; }
  .u-stt .u-s125 { white-space: normal; line-height: 1.3; }
  .u-stt .u-tw > div > span { max-width: 170px; }
  .u-search input { width: 180px; }
}
@media (max-width: 760px) { .u-st { padding: 14px 16px 28px; } .u-search input { width: 100%; } }

/* Norm dialog and the reminder sheet */
.u-dlg .u-pwho .u-av { width: 40px; height: 40px; font-size: 13px; }
.u-nrow { display: flex; justify-content: space-between; align-items: baseline; background: #F3F4F8; border-radius: 12px; padding: 10px 14px; font-size: 14px; color: var(--u-muted); }
.u-nrow b { color: var(--u-ink); font-weight: 600; }
.u-field input { height: 42px; border: 1.5px solid #DFE2EA; border-radius: 12px; padding: 0 12px; font: 400 14px var(--u-font); color: var(--u-ink); outline: none; }
.u-field input:focus { border-color: var(--u-ink); }
.u-field input[type="number"] { width: 120px; }
.u-dlg p.u-nsum { margin: 0; font-weight: 600; font-size: 14px; color: var(--u-ink); }
.u-dlg p.u-err { color: var(--u-red); font-size: 13.5px; }
.u-dlg.u-rem { width: min(560px, calc(100% - 32px)); max-height: calc(100% - 48px); overflow: auto; }
.u-rem-h { display: flex; align-items: center; gap: 10px; }
.u-rem-h h3 { margin: 0; }
.u-rem-h .u-x { width: 36px; height: 36px; }
.u-rlbl { font-size: 12.5px; font-weight: 600; color: var(--u-muted); }
.u-rc { display: flex; flex-wrap: wrap; gap: 8px; }
.u-rc > span { display: inline-flex; align-items: center; gap: 8px; background: #F3F4F8; border-radius: 18px; padding: 5px 6px 5px 5px; font-weight: 600; font-size: 13.5px; }
.u-rc .u-av { width: 26px; height: 26px; font-size: 9.5px; }
.u-rc button { width: 22px; height: 22px; border-radius: 11px; border: 0; background: transparent; color: var(--u-soft); display: grid; place-items: center; cursor: pointer; padding: 0; }
.u-rc button:hover { background: #E3E6EC; color: var(--u-ink); }
.u-rc button .u-ico { width: 14px; height: 14px; }
.u-dlg p.u-rskip { margin: 0; font-size: 12.5px; color: var(--u-muted); }
.u-rmsg { display: flex; gap: 10px; align-items: flex-start; background: #F3F4F8; border-radius: 18px; padding: 14px; }
.u-rbot { width: 36px; height: 36px; border-radius: 50%; background: var(--u-primary); color: #fff; display: grid; place-items: center; flex: none; }
.u-rbub b { display: block; font-size: 13px; margin-bottom: 4px; }
.u-dlg .u-rbub p { margin: 0; color: var(--u-ink); font-size: 13.5px; line-height: 1.5; }

/* ── «График»: week, month and year in one card ───────────────────────────── */
.u-sch { max-width: 1680px; margin: 0 auto; padding: 16px 28px 28px; }
.u-schcard #u-sch-body { transition: opacity .15s; }
.u-schcard.busy #u-sch-body { opacity: .5; pointer-events: none; }
.u-schcard .u-tools { row-gap: 8px; }
.u-schcard .u-per b { min-width: 150px; }
.u-schcard .u-search input { width: 200px; }
.u-pad { padding: 24px 16px; }
.u-hnote { font-size: 13px; color: var(--u-muted); white-space: nowrap; }
.u-tacts { margin-left: auto; display: flex; gap: 8px; }
.u-iconbtn { width: 34px; height: 34px; border-radius: 17px; border: 1px solid #DFE2EA; background: #fff; color: var(--u-muted); display: grid; place-items: center; cursor: pointer; flex: none; padding: 0; }
.u-iconbtn:hover { color: var(--u-ink); border-color: #C3C8D1; }
.u-iconbtn .u-ico { width: 16px; height: 16px; }
.u-btn-sm .u-ico { width: 16px; height: 16px; }
/* Day cells open the absence form, bars open the record. */
.u-mcell.add { cursor: pointer; }
.u-mcell.add:hover { background: #EDF0F6; }
.u-mbar.ed { cursor: pointer; }
.u-mbar.ed:hover, .u-mbar.ed:focus-visible { box-shadow: inset 0 0 0 1.5px currentColor; outline: none; }
/* Own row on top for employees. */
.u-mrow.me { background: #F4F7FD; }
.u-metag { font-size: 11px; font-weight: 600; color: #fff; background: var(--u-primary); border-radius: 8px; padding: 1px 7px; flex: none; }
.u-mname .u-metag { margin-left: auto; }
.u-mname .u-metag + .u-mdot { margin-left: 6px; }
/* Week: seven roomy days, labels with «до …». */
.u-mgrid.wk .u-mrow { height: 50px; min-width: 760px; }
.u-mgrid.wk .u-mrow.hd { height: 52px; }
.u-mgrid.wk .u-mgrp { min-width: 760px; }
.u-mgrid.wk .u-mhd { gap: 2px; }
.u-mgrid.wk .u-mhd i { font-size: 11.5px; }
.u-mgrid.wk .u-mhd b { font-size: 14px; width: 28px; height: 28px; border-radius: 14px; }
.u-mbar.wk { height: 32px; line-height: 32px; border-radius: 16px; margin: 0 3px; padding: 0 12px; font-size: 13px; }
.u-mbar.wk small { font-weight: 500; opacity: .8; margin-left: 4px; }
.u-mbar.wk.cl { margin-left: 0; }
.u-mbar.wk.cr { margin-right: 0; }
/* Footer: own totals for employees, the legend that hides and shows types. */
.u-schfoot { display: grid; gap: 10px; }
.u-gmine { display: flex; align-items: flex-start; gap: 8px; font-size: 13px; color: var(--u-muted); }
.u-gmine .u-ico { width: 16px; height: 16px; margin-top: 1px; }
.u-gmine b { color: var(--u-ink); }
.u-lgs { display: flex; flex-wrap: wrap; gap: 4px 6px; }
.u-lg { display: inline-flex; align-items: center; gap: 6px; border: 0; background: none; padding: 4px 8px; border-radius: 10px; font: 500 12.5px var(--u-font); color: var(--u-muted); cursor: pointer; }
.u-lg:hover { background: #F3F4F8; color: var(--u-ink); }
.u-lg i { width: 9px; height: 9px; border-radius: 3px; }
.u-lg.off { color: #AEB3BD; text-decoration: line-through; }
.u-lg.off i { opacity: .35; }
.u-lg.static { cursor: default; }
.u-lg.static:hover { background: none; color: var(--u-muted); }
/* «Добавить» menu */
.u-menu { position: fixed; z-index: 140; background: #fff; border-radius: 16px; padding: 6px; min-width: 300px; box-shadow: 0 18px 44px -14px rgba(20,24,34,.35), 0 0 0 1px rgba(20,24,34,.06); display: grid; gap: 2px; }
.u-menu button { display: flex; align-items: flex-start; gap: 12px; border: 0; background: none; padding: 10px 12px; border-radius: 12px; text-align: left; cursor: pointer; font: inherit; color: var(--u-ink); }
.u-menu button:hover, .u-menu button:focus-visible { background: #F3F4F8; outline: none; }
.u-menu .u-ico { margin-top: 2px; }
.u-menu b { display: block; font-size: 14px; font-weight: 600; }
.u-menu small { display: block; font-size: 12.5px; color: var(--u-muted); }
/* Groups dialog */
.u-gdlg { width: min(520px, calc(100% - 32px)); }
.u-glist { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; max-height: 50vh; overflow: auto; }
.u-glist li { display: flex; align-items: center; gap: 8px; background: #F6F7FA; border-radius: 14px; padding: 8px 8px 8px 14px; }
.u-glist li > div { flex: 1; min-width: 0; }
.u-glist b { display: block; font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.u-glist span { font-size: 12.5px; color: var(--u-muted); }
@media (max-width: 760px) { .u-sch { padding: 14px 16px 28px; } .u-schcard .u-search input { width: 100%; } }

/* ── «Год» ────────────────────────────────────────────────────────────────── */
.u-seg { display: flex; background: #F3F4F8; border-radius: 12px; padding: 3px; }
.u-seg button { border: 0; background: none; padding: 6px 13px; border-radius: 9px; font: 500 13.5px var(--u-font); color: var(--u-muted); cursor: pointer; }
.u-seg button:hover { color: var(--u-ink); }
.u-seg button.on { background: #fff; color: var(--u-ink); box-shadow: 0 1px 2px rgba(20,24,34,.1); cursor: default; }
.u-chipbtn { display: inline-flex; align-items: center; gap: 6px; }
.u-chipbtn.on { background: var(--u-primary); color: #fff; }
.u-chipbtn .u-ico { width: 15px; height: 15px; }
.u-yleg { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 12.5px; color: var(--u-muted); }
.u-yleg span { display: inline-flex; align-items: center; gap: 6px; }
.u-yleg i { width: 18px; height: 10px; border-radius: 4px; }
.u-yleg i.v { background: #BFE0F5; }
.u-yleg i.p { border: 1.5px dashed #1B85C4; background: repeating-linear-gradient(135deg, #DDEEFA 0 3px, #F2F8FD 3px 6px); }
.u-yleg i.m { background: #FBDDB8; }
.u-yleg i.o { background: #E6E3F4; }
.u-yleg i.h { width: 3px; height: 10px; background: #E5484D; border-radius: 1px; }
.u-yscroll { overflow-x: auto; }
.u-yt { position: relative; min-width: 1000px; }
.u-yover { position: absolute; top: 0; bottom: 0; left: 220px; right: 376px; pointer-events: none; }
.u-yover.top { z-index: 3; }
.u-ymline { position: absolute; top: 0; bottom: 0; width: 1px; background: var(--u-line2); }
.u-ynow { position: absolute; top: 0; bottom: 0; width: 2px; margin-left: -1px; background: var(--u-primary); opacity: .45; }
.u-ynow b { position: absolute; top: 4px; left: 50%; transform: translateX(-50%); font-size: 10.5px; font-weight: 700; background: var(--u-primary); color: #fff; border-radius: 6px; padding: 1px 6px; white-space: nowrap; }
.u-yrow { display: grid; grid-template-columns: 220px minmax(0, 1fr) 76px 160px 140px; height: 41px; border-top: 1px solid #F0F1F5; position: relative; }
.u-yrow.hd { height: 46px; border-top: 0; }
.u-ygrp { height: 29px; display: flex; align-items: center; gap: 8px; padding: 0 16px; background: #F8F9FB; border-top: 1px solid var(--u-line2); font-size: 12.5px; font-weight: 600; color: #3A3F4A; position: relative; z-index: 2; }
.u-ygrp span { color: var(--u-soft); font-weight: 500; }
.u-yname { display: flex; align-items: center; gap: 9px; padding: 0 12px 0 16px; min-width: 0; border-right: 1px solid var(--u-line2); }
.u-yname .u-av { width: 24px; height: 24px; font-size: 9.5px; }
.u-yname b { font-weight: 600; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.u-ytl { position: relative; border-right: 1px solid var(--u-line2); }
.u-ybar { position: absolute; top: 11px; height: 18px; border-radius: 5px; z-index: 1; display: block; padding: 0; border: 0; min-width: 3px; }
.u-ybar.v { background: #BFE0F5; }
.u-ybar.p { border: 1.5px dashed #1B85C4; background: repeating-linear-gradient(135deg, #DDEEFA 0 3px, #F2F8FD 3px 6px); cursor: pointer; z-index: 2; }
.u-ybar.p.x { border-color: var(--u-amber-icon); background: repeating-linear-gradient(135deg, #FDEFD3 0 3px, #FFF8EA 3px 6px); }
.u-ybar.p:hover { filter: brightness(.96); }
.u-ybar.m { background: #FBDDB8; }
.u-ybar.o { top: 14px; height: 12px; opacity: .9; }
.u-yc { display: flex; align-items: center; padding: 0 12px; font-size: 13px; font-variant-numeric: tabular-nums; border-right: 1px solid #F3F4F7; white-space: nowrap; overflow: hidden; }
.u-yc small { color: var(--u-soft); font-size: 12px; }
.u-yc:last-child { border-right: 0; }
.u-yc .u-s125 { padding: 3px 9px; }
.u-yth { font-size: 11.5px; font-weight: 600; color: #3A3F4A; }
.u-yml { position: absolute; top: 16px; font-size: 12px; font-weight: 600; color: #3A3F4A; padding-left: 6px; white-space: nowrap; }
.u-ytick { position: absolute; bottom: 5px; width: 3px; height: 8px; margin-left: -1px; background: #E5484D; border-radius: 1px; }
/* Employees: the timeline only, their own row on top. */
.u-yt.emp { min-width: 760px; }
.u-yt.emp .u-yrow { grid-template-columns: 220px minmax(0, 1fr); }
.u-yt.emp .u-yover { right: 0; }
.u-yt.emp .u-ytl { border-right: 0; }
.u-yrow.me { background: #F4F7FD; }
.u-yname .u-metag { margin-left: auto; }
@media (max-width: 1240px) {
  .u-sch { padding: 16px 16px 28px; }
  .u-yrow { grid-template-columns: 180px minmax(0, 1fr) 70px 140px 144px; }
  .u-yover { left: 180px; right: 354px; }
  .u-yc { padding: 0 8px; }
  .u-yc .u-s125 { padding: 3px 8px; font-size: 12px; }
  .u-yt { min-width: 900px; }
  .u-yt.emp .u-yrow { grid-template-columns: 180px minmax(0, 1fr); }
  .u-yt.emp .u-yover { left: 180px; right: 0; }
}

/* ── «Настройки»: «Правила отпуска» ───────────────────────────────────────── */
.u-set { max-width: 1240px; margin: 0 auto; padding: 18px 32px 40px; display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 24px; }
.u-snavs { display: grid; gap: 4px; align-content: start; }
.u-snav { border: 0; background: none; text-align: left; padding: 10px 14px; border-radius: 12px; font: 500 14px var(--u-font); color: var(--u-muted); cursor: pointer; }
.u-snav:hover { color: var(--u-ink); background: #EEF0F4; }
.u-snav.on { background: #fff; color: var(--u-ink); font-weight: 600; box-shadow: 0 1px 3px rgba(20,24,34,.06); cursor: default; }
.u-smain { display: grid; gap: 16px; align-content: start; min-width: 0; }
.u-sgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
.u-scol { display: grid; gap: 16px; }
.u-scard { padding: 20px; display: grid; gap: 14px; border-radius: 20px; }
.u-sch-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.u-sch-h b { font-size: 16px; font-weight: 600; }
.u-sch-h small { display: block; font-size: 12.5px; color: var(--u-muted); margin-top: 2px; }
.u-sline { font-size: 14px; line-height: 2.6; }
.u-sline .u-num { display: inline-block; vertical-align: middle; margin: 0 4px; }
.u-sline .u-tog { vertical-align: middle; margin-right: 8px; }
.u-shint { margin: 0; font-size: 13px; color: var(--u-muted); }
.u-num { width: 64px; height: 36px; padding: 0 8px; border: 1.5px solid #DFE2EA; border-radius: 10px; font: 600 14px var(--u-font); font-variant-numeric: tabular-nums; text-align: center; color: var(--u-ink); background: #fff; }
.u-num:focus { outline: none; border-color: var(--u-ink); }
.u-num[data-rule="art125.fromYear"] { width: 78px; }
.u-tog { position: relative; display: inline-flex; flex: none; cursor: pointer; }
.u-tog input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.u-tog span { width: 42px; height: 24px; border-radius: 12px; background: #CBD1DB; position: relative; transition: background .15s; }
.u-tog span::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.2); transition: left .15s; }
.u-tog input:checked + span { background: var(--u-jade); }
.u-tog input:checked + span::after { left: 21px; }
.u-tog input:focus-visible + span { box-shadow: 0 0 0 3px #C9E8DE; }
.u-vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.u-rad { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border-radius: 12px; border: 1px solid #E6E8EE; font-size: 14px; cursor: pointer; }
.u-rad input { margin: 3px 0 0; accent-color: var(--u-ink); }
.u-rad.on { border-color: var(--u-ink); background: #FAFBFD; }
.u-rec { font-style: normal; font-size: 11.5px; font-weight: 600; color: var(--u-jade-ink); background: var(--u-jade-bg); border-radius: 8px; padding: 1px 7px; margin-left: 6px; white-space: nowrap; }
.u-sinfo { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; color: #3A3F4A; background: #F3F4F8; border-radius: 12px; padding: 10px 12px; }
.u-sinfo .u-ico { width: 16px; height: 16px; margin-top: 1px; }
.u-shols { display: flex; flex-wrap: wrap; gap: 6px; }
.u-shols span { padding: 5px 10px; border-radius: 10px; background: var(--u-red-bg); color: var(--u-red); font-size: 12.5px; font-weight: 600; }
.u-ssave { display: flex; align-items: center; gap: 14px; }
/* «Сбор графика» with the «Стоп» button */
.u-plan { display: flex; align-items: center; gap: 16px; background: #fff; border-radius: 20px; padding: 18px 20px; flex-wrap: wrap; }
.u-plan.on { background: var(--u-amber-bg); box-shadow: inset 0 0 0 1.5px #F0C46C; }
.u-plan-h { display: flex; gap: 12px; align-items: flex-start; flex: 1; min-width: 280px; }
.u-plan-h > .u-ico { width: 22px; height: 22px; margin-top: 2px; color: var(--u-muted); }
.u-plan.on .u-plan-h > .u-ico { color: var(--u-amber-icon); }
.u-plan-h b { display: block; font-size: 16px; font-weight: 600; }
.u-plan-h span { font-size: 13.5px; color: var(--u-muted); }
.u-plan.on .u-plan-h span { color: var(--u-amber-text); }
.u-plan-act { display: flex; gap: 8px; align-items: center; }
.u-stop { height: 48px; padding: 0 30px; border-radius: 24px; border: 0; background: var(--u-red); color: #fff; font: 700 16px var(--u-font); letter-spacing: .02em; cursor: pointer; }
.u-stop:hover { background: #961F24; }
/* Banner on «Мой отпуск» while the collection is open */
.u-planban { display: flex; align-items: center; gap: 14px; background: var(--u-amber-bg); border-radius: 20px; padding: 16px 20px; box-shadow: inset 0 0 0 1.5px #F0C46C; flex-wrap: wrap; }
.u-planban > .u-ico { width: 22px; height: 22px; color: var(--u-amber-icon); }
.u-planban > div { flex: 1; min-width: 260px; }
.u-planban b { display: block; font-size: 15.5px; }
.u-planban span { font-size: 13.5px; color: var(--u-amber-text); }
.u-hint:not(.warn):not(.ok) { background: #F3F4F8; color: #3A3F4A; }
.u-calnote { display: flex; gap: 8px; align-items: flex-start; margin: 0; font-size: 13px; color: var(--u-muted); }
.u-calnote .u-ico { width: 16px; height: 16px; margin-top: 1px; }
@media (max-width: 1000px) { .u-set { grid-template-columns: 1fr; } .u-snavs { grid-auto-flow: column; justify-content: start; } .u-sgrid { grid-template-columns: 1fr; } }
@media (max-width: 760px) { .u-set { padding: 14px 16px 32px; } }

/* ── Decision panel ───────────────────────────────────────────────────────── */
.u-pan .u-sh-h { padding: 20px 24px 12px; gap: 10px; }
.u-pan .u-sh-h b.u-ptitle { font-family: var(--u-font); font-size: 18px; font-weight: 600; }
.u-pwho .u-av { width: 46px; height: 46px; font-size: 15px; }
.u-pwho b { display: block; font-size: 16px; font-weight: 600; }
.u-pwho span { font-size: 13px; color: var(--u-muted); }
.u-pexc { border: 1.5px solid #F0C46C; background: #FFF8EA; border-radius: 16px; padding: 14px 16px; display: grid; gap: 10px; color: var(--u-amber-text); }
.u-pexc p { margin: 0; font-size: 13.5px; }
.u-parts { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 12.5px; }
.u-parts span { color: #7A5A1A; margin-right: 2px; }
.u-parts b { background: #fff; border: 1px solid #EFD9A8; border-radius: 10px; padding: 3px 9px; font-weight: 600; color: var(--u-ink); }
.u-parts b.cur { border-style: dashed; border-color: var(--u-amber-icon); }
.u-parts em { font-style: normal; color: #7A5A1A; }
.u-why { margin: 0; padding: 10px 12px; background: #fff; border-radius: 12px; font-size: 13.5px; color: var(--u-ink); }
.u-why span { color: #7A5A1A; font-weight: 600; margin-right: 4px; }
.u-pok { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; border-radius: 12px; padding: 10px 12px; background: var(--u-jade-bg); color: var(--u-jade-ink); }
.u-pok .u-ico { width: 16px; height: 16px; margin-top: 1px; }
.u-pdl { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.u-pdl div { background: #F3F4F8; border-radius: 14px; padding: 10px 14px; }
.u-pdl dt { font-size: 12.5px; color: var(--u-muted); }
.u-pdl dd { margin: 2px 0 0; font-size: 16px; font-weight: 600; font-variant-numeric: tabular-nums; }
.u-pdl dd.u-pdd { margin: 0; font-size: 12.5px; font-weight: 500; color: var(--u-muted); }
.u-pnote { margin: 0; font-size: 13.5px; color: #3A3F4A; background: #F6F7FA; border-radius: 12px; padding: 10px 12px; }
.u-cov { border: 1px solid #ECEEF2; border-radius: 16px; overflow: hidden; flex: none; }
.u-cov-h { display: flex; justify-content: space-between; gap: 10px; padding: 10px 14px; font-size: 12.5px; color: var(--u-muted); border-bottom: 1px solid #F0F1F5; }
.u-cov-h b { color: var(--u-ink); white-space: nowrap; }
.u-cov-h span { text-align: right; }
.u-cr { display: grid; height: 34px; border-top: 1px solid #F3F4F7; }
.u-cr.hd { height: 30px; border-top: 0; }
.u-cr > * { grid-row: 1; }
.u-cn { grid-column: 1; display: flex; align-items: center; gap: 7px; padding-left: 12px; font-size: 12px; font-weight: 600; white-space: nowrap; min-width: 0; overflow: hidden; }
.u-cn span { overflow: hidden; text-overflow: ellipsis; }
.u-cn .u-av { width: 20px; height: 20px; font-size: 8.5px; }
.u-cc { border-left: 1px solid #F3F4F7; }
.u-cc.we { background: #F7F8FA; }
.u-cc.hol { background: #FDECEC; }
.u-ch { display: grid; place-items: center; font-size: 11px; font-weight: 600; color: #3A3F4A; }
.u-ch.we { color: var(--u-soft); }
.u-ch.hol { color: #B42A2F; }
.u-cb { align-self: center; height: 22px; margin: 0 1px; border-radius: 11px; font-size: 11px; font-weight: 600; display: flex; align-items: center; padding: 0 7px; z-index: 1; white-space: nowrap; overflow: hidden; min-width: 0; }
.u-cb.req { border: 1.5px dashed #1B85C4; background: repeating-linear-gradient(135deg, #DDEEFA 0 5px, #F2F8FD 5px 10px); color: var(--u-blue-ink); z-index: 2; }
.u-cov-none { margin: 0; padding: 8px 14px 10px; font-size: 12.5px; color: var(--u-muted); border-top: 1px solid #F3F4F7; }
.u-steps.row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; margin: 0; }
.u-steps.row li { display: grid; grid-template-columns: none; gap: 2px; padding: 8px 0 0; border-top: 3px solid #E3E6EC; align-content: start; }
.u-steps.row li::before, .u-steps.row li::after { display: none; }
.u-steps.row li.done { border-top-color: var(--u-jade); }
.u-steps.row li.cur { border-top-color: var(--u-amber); }
.u-steps.row li.no { border-top-color: var(--u-red); }
.u-steps.row b { font-size: 13px; }
.u-steps.row span { grid-column: auto; font-size: 12px; }
.u-pacts { display: flex; gap: 10px; }
.u-pacts button { flex: 1; height: 46px; border-radius: 23px; }
.u-pdel { justify-self: start; color: var(--u-muted); font-size: 13px; font-weight: 500; }
.u-pdel:hover { color: var(--u-red); }

/* ── Dialog for a short text (reject reason) and the toast ────────────────── */
.u-dlg { width: min(460px, calc(100% - 32px)); background: #fff; border-radius: 22px; padding: 22px 24px; display: grid; gap: 14px; margin: auto; }
.u-dlg h3 { margin: 0; font-size: 18px; }
.u-dlg p { margin: 0; color: var(--u-muted); font-size: 14px; }
.u-dlg .u-acts { display: flex; justify-content: flex-end; gap: 10px; }
.u-ov.center { justify-content: center; align-items: center; }
.u-toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 300; background: var(--u-primary); color: #fff; border-radius: 16px; padding: 12px 18px; font-size: 14px; box-shadow: 0 16px 40px -16px rgba(0,0,0,.5); max-width: calc(100% - 32px); }

/* Basic narrow-screen support (no separate mobile design in this project). */
@media (max-width: 820px) {
  .u-appbar { padding: 0 12px; gap: 10px; }
  .u-brand span.u-bt { display: none; }
  .u-me span { display: none; }
  .u-view.legacy { grid-template-columns: 1fr; grid-template-rows: auto auto auto; grid-template-areas: "top" "main" "aside"; overflow: auto; }
}
