/* Chấm hiệu suất Marketing – Media (03/10/2026, migration 066) — tab của màn KPI (hs-*). File riêng (không gộp vào luong-kpi.css như thiết kế ghi)
   để không đè lên phần thợ menu đang sửa song song. Theo demo đã duyệt docs/demo/menu-luong-kpi-demo.html: bo ≤ 8px, ô bấm ≥ 44px, nút chính
   Apple Blue (token theme), không card lồng card, chỉ token theme cho màu chữ / nền (đổi theme sáng / tối không vỡ). */
.hs { display: grid; gap: 16px; min-width: 0; }
.hs-h { margin: 0; font-size: 20px; color: var(--text-main); }
/* Dải cảnh báo luôn hiện: số ở đây chưa phải tiền lương. */
.hs-canh { margin: 0; padding: 10px 12px; border-radius: 8px; border-left: 3px solid var(--txt-warn, #b4530a); background: color-mix(in srgb, var(--txt-warn, #b4530a) 10%, transparent); color: var(--text-main); font-size: 14px; }
.hs-loc { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px; }
.hs-loc label, .hs-f label { display: grid; gap: 4px; font-size: 13px; color: var(--text-muted); }
.hs-loc select, .hs-f input, .hs-f select, .hs-f textarea { box-sizing: border-box; min-height: 44px; padding: 0 10px; border: 1px solid var(--border-color); border-radius: 8px; background: var(--bg-input, var(--bg-card)); color: var(--text-main); font: inherit; font-size: 15px; }
.hs-f textarea { padding: 10px; resize: vertical; }
.hs-f input:focus-visible, .hs-f select:focus-visible, .hs-f textarea:focus-visible, .hs-o:focus-visible, .hs-loc select:focus-visible { outline: 2px solid var(--theme-accent-strong, #0071e3); outline-offset: 2px; }
.hs-f { display: grid; gap: 12px; }
.hs-ts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 0; padding: 0; border: 0; min-width: 0; }
.hs-ts legend { padding: 0 0 4px; font-size: 13px; font-weight: 600; color: var(--text-main); }
.hs-ts input { width: 100%; font-variant-numeric: tabular-nums; text-align: right; }
.hs-tong { margin: 0; font-size: 14px; font-weight: 600; color: var(--text-main); font-variant-numeric: tabular-nums; }
.hs-tong.is-bad { color: var(--txt-bad, #c0262d); }
.hs-tt, .hs-ch, .hs-thieu-ds { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; font-size: 14px; color: var(--text-main); }
.hs-tt li { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px; }
.hs-ch li { padding-left: 10px; border-left: 2px solid var(--border-color); }
.hs-thieu-ds li { padding: 6px 0; border-bottom: 1px solid var(--border-color); }
.hs-thieu { color: var(--txt-warn, #b4530a); }
.hs-nhan { display: inline-block; padding: 2px 8px; border-radius: 6px; font-size: 12px; font-weight: 600; background: var(--theme-accent-soft); color: var(--txt-accent, var(--theme-accent-strong)); }
.hs-nhan.is-chot { color: var(--txt-ok, #1f8f4a); }
.hs-bang { width: 100%; border-collapse: collapse; font-size: 14px; }
.hs-bang th, .hs-bang td { padding: 8px; border-bottom: 1px solid var(--border-color); text-align: left; vertical-align: middle; color: var(--text-main); }
.hs-bang th { font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--text-muted); }
.hs-bang abbr { text-decoration: none; }
.hs-bang .n { text-align: right; white-space: nowrap; }
.hs-cap { padding: 8px; text-align: left; font-size: 13px; color: var(--text-muted); }
.hs-so { font-variant-numeric: tabular-nums; }
.hs-ly { font-size: 12px; color: var(--text-muted); white-space: normal; }
/* Ô điểm: bấm được khi có quyền chấm bên đó; chỉ đọc thì là chữ thường. */
.hs-o { display: inline-flex; align-items: center; justify-content: flex-end; gap: 6px; min-height: 44px; min-width: 64px; padding: 0 10px; border: 1px solid var(--border-color); border-radius: 8px; background: var(--bg-card); color: var(--txt-accent, var(--theme-accent-strong)); font: inherit; font-weight: 600; cursor: pointer; }
.hs-o.is-chi { border-color: transparent; background: transparent; color: var(--text-main); font-weight: 400; cursor: default; }
.hs-the { display: none; gap: 8px; margin: 0; padding: 0; list-style: none; }
.hs-the > li { display: grid; gap: 8px; padding: 12px; border: 1px solid var(--border-color); border-radius: 8px; }
.hs-the-1 { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; color: var(--text-main); }
.hs-the-kq { display: grid; justify-items: end; gap: 2px; }
.hs-the-o { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.hs-the-o .hs-o { display: grid; justify-items: start; gap: 0; width: 100%; padding: 4px 8px; }
.hs-o-t { font-size: 11px; font-weight: 500; color: var(--text-muted); }
.hs-the-toi { display: grid; gap: 10px; max-width: 560px; padding: 16px; border: 1px solid var(--border-color); border-radius: 8px; }
.hs-toi-1 { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin: 0; color: var(--text-main); }
.hs-toi-1 .hs-so { font-size: 24px; }
@media (max-width: 720px) {
  .hs-bang-bao { display: none; }
  .hs-the { display: grid; }
  .hs-ts { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) { .hs *, #hs-goc * { transition: none !important; animation: none !important; } }
