/* Tab "Vận hành" cho Tech team: bảng điều phối ngày, lịch theo phòng, ghi nhận đến / trễ / vắng. Dùng lại .lv-top, .seg, .lv-md của lich-live.css. */
.vh-loc { display: flex; flex-wrap: wrap; gap: 10px; padding-top: 14px; }
.vh-dd { position: relative; display: flex; align-items: center; gap: 8px; height: 42px; padding: 0 6px 0 14px; border: 2px solid var(--ink); border-radius: 999px; background: var(--card); cursor: pointer; }
.vh-dd > span { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.vh-dd .dot { flex: none; width: 10px; height: 10px; border-radius: 50%; }
.vh-dd select { width: auto; height: 36px; min-width: 0; max-width: 220px; padding: 0 6px; border: 0; border-radius: 999px; background: transparent; font-weight: 800; font-size: 15px; cursor: pointer; }
.vh-dd select:focus { box-shadow: none; }
.vh-dd:focus-within { box-shadow: 0 0 0 4px var(--butter); }
@media (max-width: 560px) { .vh-dd { flex: 1 1 140px; } .vh-dd select { flex: 1; max-width: none; } }
/* Hàng ô số: dùng .stat-luoi / .stat chung (index.html, P1u) */
.vh-truc { margin: 18px 0 0; font-size: 14px; }
.vh-cb { margin: 14px 0 0; background: var(--warn-soft); color: var(--warn); border: 1.5px solid currentColor; border-radius: 12px; padding: 10px 14px; font-size: 14px; }
.vh-cb summary { font-weight: 800; cursor: pointer; }
.vh-cb ul { margin: 8px 0 0; padding-left: 18px; color: var(--text); }
.vh-cb li { margin: 4px 0; }
.vh-lk { background: none; border: 0; padding: 0; color: var(--brand); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.vh-h { display: flex; align-items: baseline; gap: 10px; margin: 26px 0 12px; font: 700 22px/1.1 var(--f-display); text-transform: uppercase; letter-spacing: .02em; }
.vh-h span { font: 700 12px/1 var(--f-body); color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.vh-sub { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.vh-sub .vh-h { margin-bottom: 0; }
.vh-trong { padding: 44px 12px; border: 2px dashed var(--line); border-radius: var(--r); margin-top: 18px; font-size: 14px; }

/* ảnh host */
.vh-av { flex: none; width: 36px; height: 36px; border-radius: 50%; border: 1.5px solid var(--ink); background: var(--butter) center/cover no-repeat;
  display: inline-grid; place-items: center; font: 700 16px/1 var(--f-display); color: #fff; }
.vh-av.lon { width: 52px; height: 52px; font-size: 22px; border-width: 2px; }

/* đang live */
.vh-dang { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.vh-live { display: flex; align-items: center; gap: 12px; text-align: left; background: var(--card); border: 2px solid var(--ink); border-radius: 14px;
  padding: 12px; box-shadow: var(--shadow); border-left: 8px solid var(--k); }
.vh-live .grow { flex: 1; min-width: 0; }
.vh-live .grow > * { display: block; }
.vh-live b { font-size: 16px; }
.vh-live .grow span { font-size: 12.5px; color: var(--muted); }

/* theo phòng */
.vh-rooms { columns: 290px; column-gap: 14px; margin-top: 14px; }
.vh-room { background: var(--card); border: 2px solid var(--ink); border-radius: 14px; overflow: hidden; break-inside: avoid; margin-bottom: 14px; }
.vh-room.on { box-shadow: 4px 4px 0 var(--brand); }
.vh-room header { display: flex; align-items: baseline; gap: 8px; padding: 10px 12px; background: var(--bg); border-bottom: 1.5px solid var(--ink); }
.vh-room header b { font: 700 20px/1 var(--f-display); text-transform: uppercase; letter-spacing: .02em; }
.vh-room header span { font-size: 11px; font-weight: 800; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.vh-room header .vh-on { margin-left: auto; }
.vh-ph { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; background: transparent; border: 0; border-top: 1px dashed var(--line);
  padding: 9px 12px 9px 9px; border-left: 4px solid var(--k); }
.vh-room .vh-ph:first-of-type { border-top: 0; }
.vh-ph:hover { background: var(--bg); }
.vh-ph .grow { flex: 1; min-width: 0; }
.vh-ph .grow > * { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vh-ph .grow > .g { white-space: normal; overflow: visible; }
.vh-ph .g { font-size: 12px; font-weight: 800; letter-spacing: .02em; }
.vh-ph b { font-size: 14.5px; }
.vh-ph b small { font-weight: 600; color: var(--muted); font-size: 11.5px; }
.vh-ph .k { font-size: 12px; color: var(--muted); }
.vh-kt { font-size: 12px; font-weight: 700; color: var(--ink); }
.vh-kt.toi { color: var(--brand); }
.vh-kt.chua { color: var(--muted); font-weight: 600; font-style: italic; }
.vh-mini .vh-kt { font-size: 10.5px; margin-top: 1px; }
.vh-mini span.vh-kt:not(.g) { color: var(--ink); font-size: 10.5px; }
.vh-mini span.vh-kt.toi { color: var(--brand); }
.vh-mini span.vh-kt.chua { color: var(--muted); }
.vh-ph.xong { opacity: .62; }
.vh-ph.dang { background: var(--brand-soft); }
.vh-on, .vh-mega { font: 800 9.5px/1 var(--f-body); font-style: normal; letter-spacing: .06em; padding: 3px 6px; border-radius: 4px; vertical-align: 1px; }
.vh-on { background: var(--err); color: #fff; }
.vh-mega { background: var(--butter); color: var(--ink); }
.vh-free { margin-top: 16px; }

/* nhãn ghi nhận */
.vh-pill { flex: none; font-size: 10.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; padding: 4px 8px; border-radius: 999px;
  border: 1.5px solid currentColor; white-space: nowrap; }
.vh-pill.ok { background: var(--ok-soft); color: var(--ok); }
.vh-pill.tre { background: var(--err-soft); color: var(--err); }
.vh-pill.vang { background: var(--err); color: #fff; border-color: var(--err); }
.vh-pill.can { background: var(--butter); color: var(--ink); }

/* theo giờ */
.vh-time { margin-top: 14px; }
.vh-slot { display: grid; grid-template-columns: 64px 1fr; gap: 0 12px; border-top: 1.5px solid var(--ink); padding: 8px 0; }
.vh-mo { grid-row: span 99; font: 700 22px/1.2 var(--f-display); }
.vh-slot-r { display: flex; align-items: center; gap: 10px; background: var(--card); border: 1.5px solid var(--line); border-radius: 12px; margin-bottom: 6px; overflow: hidden; }
.vh-slot-r .vh-ph { border-top: 0; }
.vh-tagp { flex: none; width: 110px; padding-left: 12px; font-size: 12px; font-weight: 800; }

/* tuần theo phòng */
.vh-wscroll { overflow-x: auto; margin-top: 18px; border: 2px solid var(--ink); border-radius: 14px; background: var(--card); }
.vh-wk { width: 100%; min-width: 980px; border-collapse: collapse; font-size: 12px; table-layout: fixed; margin: 0; }
.vh-wk th, .vh-wk td { border: 1px solid var(--line); vertical-align: top; padding: 5px; }
.vh-wk thead th { background: var(--bg); position: sticky; top: 0; }
.vh-wk thead button { background: none; border: 0; font-size: 12px; padding: 4px; width: 100%; color: var(--text); }
.vh-wk thead button b { font-weight: 800; }
.vh-wk th.ph { width: 110px; text-align: left; font-size: 13px; background: var(--bg); position: sticky; left: 0; z-index: 1; }
.vh-wk th.nay, .vh-wk td.nay { background: var(--brand-soft); }
.vh-wk td.qua { background: repeating-linear-gradient(135deg, transparent 0 6px, rgba(16,32,74,.025) 6px 12px); }
.vh-wk tr.st td { background: var(--ink); color: var(--butter); font-weight: 800; text-transform: uppercase; letter-spacing: .08em; font-size: 11px; padding: 6px 10px; }
.vh-mini { display: block; width: 100%; text-align: left; background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--k); border-radius: 6px;
  padding: 4px 6px; margin-bottom: 4px; line-height: 1.3; position: relative; }
.vh-mini > * { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vh-mini .g { font-weight: 800; font-size: 11px; }
.vh-mini span:not(.g) { color: var(--muted); font-size: 11px; }
.vh-mini b { font-size: 12px; }
.vh-mini.tre::after, .vh-mini.vang::after { content: ""; position: absolute; top: 5px; right: 5px; width: 8px; height: 8px; border-radius: 50%; background: var(--err); }
.vh-mini.tre .g, .vh-mini.vang .g { color: var(--err); }

/* tháng */
.vh-mgrid { margin-top: 18px; }
.vh-md { cursor: pointer; }
.vh-md.xau .so { color: var(--err); }
.vh-md .ln { border-left-color: var(--k); }
.vh-dau { display: block; font-size: 10px; font-weight: 800; border-radius: 4px; padding: 2px 4px; margin-top: auto; }
.vh-dau.tre { background: var(--err-soft); color: var(--err); }
.vh-dau.cb { background: var(--warn-soft); color: var(--warn); }
.vh-dau + .vh-dau { margin-top: 2px; }
.vh-dau.trong { background: var(--card); color: var(--muted); border: 1px dashed var(--muted); }
/* ca đã lên lịch nhưng chưa có host: viền đứt như Lịch live */
.vh-ph-trong { cursor: default; }
.vh-ph-trong:hover { background: transparent; }
.vh-ph-trong b { color: var(--muted); font-weight: 700; }
.vh-av-trong { background: var(--card); border-style: dashed; border-color: var(--muted); }
.vh-mini.trong { background: transparent; border: 1px dashed var(--muted); border-left: 4px dashed var(--k); }
.vh-mini.trong b { color: var(--muted); font-weight: 700; }

/* đi trễ */
.vh-tre { width: 100%; min-width: 620px; border-collapse: collapse; font-size: 14px; margin: 0; }
.vh-tre th { text-align: left; font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); padding: 10px 12px; background: var(--bg); }
.vh-tre td { padding: 8px 12px; border-top: 1px solid var(--line); }
.vh-tre tr.co td { background: #fff7f5; }
.vh-hn { display: flex; align-items: center; gap: 10px; }
.vh-log { display: grid; gap: 8px; }
.vh-log button { display: flex; align-items: center; gap: 10px; text-align: left; background: var(--card); border: 1.5px solid var(--line); border-radius: 12px; padding: 8px 12px; }
.vh-log .d { flex: none; width: 64px; font-weight: 800; font-size: 12px; }
.vh-log .grow { flex: 1; min-width: 0; }
.vh-log .grow > * { display: block; }
.vh-log small { color: var(--muted); font-size: 12px; }

/* hộp ghi nhận */
.vh-sh-top { display: flex; align-items: center; gap: 14px; margin-bottom: 12px; }
.vh-sh-top h2 { margin: 0; }
.vh-dl { display: grid; grid-template-columns: 110px 1fr; gap: 8px 12px; margin: 0 0 6px; font-size: 14px; }
.vh-dl dt { color: var(--muted); }
.vh-dl dd { margin: 0; }
.vh-dl small { color: var(--muted); }
.vh-st { display: inline-block; margin-top: 4px; font-size: 12px; font-weight: 800; }
.vh-st.dang { color: var(--err); }
.vh-st.sap { color: var(--warn); }
.vh-ghi { margin: 0 0 10px; font-size: 14px; }
.vh-ghi small { color: var(--muted); }
.vh-f label { display: block; margin: 14px 0 6px; font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
.vh-f input { height: 42px; border: 2px solid var(--ink); border-radius: 12px; padding: 0 12px; background: var(--card); min-width: 0; }
.vh-f #vhNote { width: 100%; }
.vh-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.vh-row input { flex: 1 1 120px; }
.vh-q .btn { padding: 0 12px; height: 36px; box-shadow: 2px 2px 0 var(--ink); }
.vh-end { margin-top: 16px; padding-top: 12px; border-top: 1.5px dashed var(--line); }

@media (max-width: 700px) {
  .vh-dang { grid-template-columns: 1fr; }
  .vh-tagp { width: 84px; padding-left: 8px; font-size: 11px; white-space: normal; }
  .vh-slot { grid-template-columns: 52px 1fr; gap: 0 8px; }
  .vh-mo { font-size: 18px; }
  .vh-dl { grid-template-columns: 1fr; gap: 0; } .vh-dl dd { margin-bottom: 8px; }
  .vh-md .ln { font-size: 9.5px; }
  .vh-dau { font-size: 8.5px; padding: 1px 2px; }
}
.vh-live .grow .vh-pl { margin-top: 6px; }
.vh-live .grow .vh-pl .vh-pill { display: inline-block; }

/* P1s: kiểu xem Đi trễ. Ô số .stat chung, bảng dài hiện 8 dòng đầu + nút Xem tất cả / Thu gọn */
.vh-tre-sec { scroll-margin-top: 140px; }
.vh-tre-sec .vh-wscroll { border: 1px solid var(--line); border-radius: 20px; box-shadow: 0 1px 3px rgba(16,32,74,.05); }
.vh-tre-sec .vh-tre th:first-child, .vh-tre-sec .vh-tre td:first-child { padding-left: 16px; }
.vh-mo-them { display: flex; justify-content: center; padding: 10px 12px 12px; border-top: 1px solid var(--line); position: sticky; left: 0; }
.vh-log + .vh-mo-them { border-top: 0; padding-top: 12px; }
.vh-wscroll .vh-mo-them { background: var(--card); }
@media (max-width: 700px) {
  .vh-mo-them .btn { width: 100%; }
}
