/* СУР — «Отпуска»: заявки из /m/ + график-полосы (js/vac-chart.js, 11.11). Стиль — как Таймлайн (app.css .gantt-*). */
#view-vacations [hidden] { display: none !important; } /* .btn-ic задаёт display и перебивал hidden у «Внести отпуск» для роли на чтение (записка 2026-11-11-012), как в pto.css */
#vac-chart { display: flex; flex-direction: column; gap: 12px; margin-bottom: 14px; }
#vac-chart .vc-dim { font-size: 11.5px; color: var(--dim2); }
.vc-pend { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.vc-pend.has { border-color: var(--warn-line); }
.vc-pend-h { display: flex; align-items: center; gap: 8px; padding: 8px 14px; background: var(--panel2); border-bottom: 1px solid var(--line); font-size: 13px; }
.vc-badge { min-width: 16px; padding: 0 6px; border-radius: 9px; background: var(--warn); color: #fff; font-size: 11px; line-height: 16px; text-align: center; }
.vc-badge.zero { background: var(--dim2); }
.vc-pend-empty { padding: 9px 14px; font-size: 13px; color: var(--dim); }
.vc-pend-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; padding: 8px 14px; border-bottom: 1px solid var(--line-soft); }
.vc-pend-row:last-child { border-bottom: 0; }
.vc-pend-row.sel { background: var(--accent-soft); }
.vc-pend-who { flex: 0 1 340px; display: flex; flex-direction: column; gap: 2px; align-items: flex-start; text-align: left; border: 0; background: none; padding: 0; font: inherit; color: var(--text); cursor: pointer; }
.vc-pend-who b { font-size: 13px; } .vc-pend-who span { font-size: 11.5px; color: var(--dim2); }
.vc-pend-who:hover b { color: var(--accent); }
.vc-pend-ov { flex: 1 1 260px; font-size: 12px; color: var(--ok-text); }
.vc-pend-ov.warn { color: var(--warn-text); }
.vc-pend-acts { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
#vac-chart .btn.sm { padding: 5px 12px; font-size: 12.5px; }
#vac-chart .btn.vc-ok { background: var(--ok); }
#vac-chart .btn.vc-ok:hover { filter: brightness(.95); }
#vac-chart .btn.vc-no { color: var(--crit-text); border-color: var(--crit-line); }
.vc-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.vc-nav { display: flex; align-items: center; gap: 4px; }
.vc-per { font-size: 13px; min-width: 128px; text-align: center; }
.vc-segs { display: flex; gap: 4px; }
.vc-seg, .vc-chip { font: inherit; font-size: 12.5px; font-weight: 600; padding: 5px 12px; border: 1px solid var(--line); background: var(--panel); color: var(--dim); border-radius: var(--radius-sm); cursor: pointer; }
.vc-chip { border-radius: 15px; }
.vc-seg.on { background: var(--accent-solid); border-color: var(--accent-solid); color: #fff; }
.vc-chip.on { background: var(--accent-soft); border-color: var(--accent); color: var(--accent); }
.vc-seg:focus-visible, .vc-chip:focus-visible, .vc-tick:focus-visible, .vc-barv:focus-visible, .vc-ov:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.vc-chips { display: flex; flex-wrap: wrap; gap: 4px; }
/* поле «Сотрудники» (msel.js) + выбранные чипами с «крестик» (16.11) */
.vc-empf, .vc-empsel { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.vc-empsel:empty { display: none; }
.vc-echip { display: inline-flex; align-items: center; gap: 2px; font-size: 12px; font-weight: 600; padding: 2px 4px 2px 10px; border-radius: 13px; background: var(--accent-soft); border: 1px solid var(--accent); color: var(--accent); }
.vc-echip button, .vc-eclr { font: inherit; border: 0; background: none; color: inherit; cursor: pointer; border-radius: 10px; }
.vc-echip button { display: inline-flex; padding: 3px; }
.vc-echip button:hover { background: var(--accent-solid); color: #fff; }
.vc-eclr { font-size: 12px; color: var(--dim); padding: 3px 8px; text-decoration: underline; }
.vc-echip button:focus-visible, .vc-eclr:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.vc-all { display: flex; align-items: center; gap: 6px; font-size: 12.5px; cursor: pointer; }
.vc-xls { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; }
.vc-legend { margin-left: auto; display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 11.5px; color: var(--dim); }
.vc-legend span { display: inline-flex; align-items: center; gap: 5px; }
.vc-legend i { width: 16px; height: 10px; border-radius: 3px; box-sizing: border-box; display: inline-block; }
.vc-legend i.ok { background: var(--accent-solid); } .vc-legend i.rq { background: var(--accent-soft); border: 1.5px dashed var(--accent); }
.vc-legend i.ov { background: var(--warn-line); } .vc-legend i.wk { background: var(--panel2); border: 1px solid var(--line); }
.vc-main { display: flex; gap: 12px; align-items: flex-start; }
.vc-chart { flex: 1 1 auto; min-width: 0; overflow-x: auto; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.vc-empty { padding: 18px 14px; }
.vc-grid { display: flex; min-width: 640px; }
.vc-lbls { flex: 0 0 200px; border-right: 1px solid var(--line); position: sticky; left: 0; z-index: 3; background: var(--panel); } /* фамилии не уезжают при прокрутке вбок */
.vc-trks { flex: 1 1 auto; position: relative; min-width: 0; }
.vc-hd { height: 54px; box-sizing: border-box; background: var(--head-bg); border-bottom: 1px solid var(--line); position: relative; }
.vc-lbls .vc-hd { padding: 8px 12px; display: flex; flex-direction: column; justify-content: space-between; }
.vc-lbls .vc-hd span { font-size: 11px; color: var(--dim2); text-transform: uppercase; font-weight: 600; letter-spacing: .04em; }
.vc-lbls .vc-hd b { font-size: 15px; letter-spacing: -.2px; }
.vc-mon { position: absolute; top: 4px; padding-left: 6px; border-left: 1px solid var(--line); font-size: 11.5px; font-weight: 600; white-space: nowrap; }
.vc-tick { position: absolute; bottom: 3px; height: 22px; padding: 0 2px; border: 0; border-radius: 4px; background: none; color: var(--dim2); font: inherit; font-size: 10px; font-weight: 600; font-variant-numeric: tabular-nums; cursor: pointer; }
.vc-tick.we { color: var(--crit-text); }
.vc-tick.today { box-shadow: inset 0 -2px 0 var(--accent); }
.vc-tick.on { background: var(--accent-solid); color: #fff; }
.vc-tick:hover:not(.on) { background: var(--row-hover); }
.vc-body { position: relative; }
.vc-bg { position: absolute; inset: 0; pointer-events: none; }
.vc-bg .vc-we { position: absolute; top: 0; bottom: 0; background: var(--panel2); }
.vc-bg .vc-selday { position: absolute; top: 0; bottom: 0; background: rgba(37,99,235,.08); box-shadow: inset 1px 0 rgba(37,99,235,.35), inset -1px 0 rgba(37,99,235,.35); }
.vc-bg .vc-today { position: absolute; top: 0; bottom: 0; width: 2px; margin-left: -1px; background: var(--accent); opacity: .55; }
.vc-row { position: relative; height: 40px; box-sizing: border-box; border-bottom: 1px solid var(--line); }
.vc-lbls .vc-row { padding: 0 12px; display: flex; flex-direction: column; justify-content: center; background: var(--panel); }
.vc-lbls .vc-row b { font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vc-lbls .vc-row span { font-size: 10.5px; color: var(--dim2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vc-row.grp { height: 28px; }
.vc-lbls .vc-row.grp { background: var(--head-bg); }
.vc-lbls .vc-row.grp span { font-size: 11px; font-weight: 700; color: var(--dim); text-transform: uppercase; letter-spacing: .04em; }
.vc-trks .vc-row.grp { background: color-mix(in srgb, var(--head-bg) 70%, transparent); }
.vc-row.ovr { height: 32px; }
.vc-lbls .vc-row.ovr { background: var(--warn-soft); } .vc-lbls .vc-row.ovr b { color: var(--warn-text); font-size: 12px; }
.vc-trks .vc-row.ovr { background: color-mix(in srgb, var(--warn-soft) 70%, transparent); }
.vc-barv { position: absolute; top: 8px; height: 24px; box-sizing: border-box; border-radius: 6px; padding: 0 7px; font: inherit; font-size: 11px; font-weight: 600; text-align: left; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; cursor: pointer; z-index: 1; }
.vc-barv.ok { background: var(--accent-solid); color: #fff; border: 0; }
.vc-barv.rq { background: var(--accent-soft); color: var(--accent); border: 1.5px dashed var(--accent); }
.vc-barv.sel { outline: 2px solid var(--text); outline-offset: 1px; }
.vc-ov { position: absolute; top: 6px; bottom: 6px; padding: 0; border: 0; border-radius: 4px; font: inherit; font-size: 11px; font-weight: 700; color: var(--text); background: var(--warn-line); overflow: hidden; cursor: pointer; z-index: 1; }
.vc-ov.n3 { background: var(--warn-text); color: var(--panel); } /* токены темы: в тёмной без ярких пятен (записка 2026-11-11-007) */
.vc-panel { flex: 0 0 290px; box-sizing: border-box; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 14px; display: flex; flex-direction: column; gap: 8px; position: sticky; top: 12px; }
.vc-p-k { font-size: 11px; color: var(--dim2); text-transform: uppercase; font-weight: 600; letter-spacing: .04em; }
.vc-p-k.warn { color: var(--warn-text); margin-top: 4px; }
.vc-p-t { font-size: 17px; font-weight: 700; border-radius: 4px; }
.vc-p-t:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.vc-p-d { font-size: 13px; }
.vc-panel .pill { align-self: flex-start; }
.vc-p-nums { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.vc-p-nums div { border: 1px solid var(--line); border-radius: var(--radius); padding: 8px 10px; display: flex; flex-direction: column; background: var(--accent-soft); }
.vc-p-nums div.warn { background: var(--warn-soft); border-color: var(--warn-line); }
.vc-p-nums div.ok { background: var(--ok-soft); border-color: var(--ok-line); }
.vc-p-nums b { font-size: 21px; } .vc-p-nums span { font-size: 12px; color: var(--dim); }
.vc-p-li, .vc-p-ov { display: flex; flex-direction: column; gap: 1px; align-items: flex-start; text-align: left; font: inherit; cursor: pointer; color: var(--text); }
.vc-p-li { border: 0; border-top: 1px solid var(--line-soft); background: none; padding: 8px 0; }
.vc-p-li b, .vc-p-ov b { font-size: 13px; } .vc-p-li span { font-size: 11.5px; color: var(--dim2); } .vc-p-li span.warn { color: var(--warn-text); }
.vc-p-ov { border: 1px solid var(--warn-line); background: var(--warn-soft); border-radius: var(--radius-sm); padding: 6px 9px; }
.vc-p-ov span { font-size: 11.5px; color: var(--warn-text); }
.vc-okt { font-size: 13px; color: var(--ok-text); }
.vc-p-acts { display: flex; gap: 6px; margin-top: 4px; } .vc-p-acts .btn { flex: 1; padding: 8px 10px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.vc-back { align-self: flex-start; border: 0; background: none; padding: 0; font: inherit; font-size: 12.5px; font-weight: 600; color: var(--accent); cursor: pointer; }
.vc-hint { margin-top: 4px; }
@media (max-width: 1100px) { .vc-main { flex-direction: column; } .vc-panel { position: static; flex-basis: auto; width: 100%; } .vc-chart { width: 100%; } }
