/* Xử lý số liệu khảo sát (/cong-cu/xu-ly-so-lieu). Tệp nạp ở mọi trang → mọi lớp có tiền tố xl-. */
.chinh:has(> .xl) { max-width: 1280px; }
.xl-an { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.xl-dau { margin-bottom: 12px; }
.xl-dau h1 { margin-bottom: 2px; }
.xl-nut-nhap { margin-top: 10px; }
.xl-mau-chon select { min-height: 44px; padding: 8px 12px; border: 1px solid var(--c-vien); border-radius: 999px; font: inherit; background: var(--the); color: var(--c-dam); font-weight: 600; max-width: 100%; }
#xl-bao:empty { display: none; }
#xl-bao { margin-top: 10px; }
.xl-tom { margin-top: 12px; }
.xl-cuon { overflow-x: auto; margin-bottom: 10px; -webkit-overflow-scrolling: touch; }
.xl-bang { border-collapse: collapse; font-size: .9375rem; min-width: 100%; }
.xl-bang th, .xl-bang td { border: 1px solid var(--vien); padding: 6px 10px; text-align: left; vertical-align: top; }
.xl-bang thead th { background: var(--c-nhat); color: var(--c-dam); white-space: nowrap; }
.xl-bang--so td { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.xl-bang--kq { min-width: 0; margin: 10px 0; }
.xl-bang--kq td { text-align: right; min-width: 110px; }
.xl-tong th, .xl-tong td { font-weight: 700; background: #fafaf7; }
.xl-pt { color: var(--phu); font-size: .8125rem; }
.xl-ynghia { font-weight: 800; color: var(--c-dam); background: var(--c-nhat); }
.xl-yeu { background: var(--nhan-nhat); color: var(--nhan-dam); font-weight: 700; }
.xl-kieu-cot { margin-top: 4px; font: inherit; font-size: .75rem; font-weight: 600; border: 1px solid var(--c-vien); background: var(--the); color: var(--c-dam);
  border-radius: 999px; padding: 2px 10px; cursor: pointer; min-height: 28px; }
.xl-tab { display: flex; gap: 6px; overflow-x: auto; margin-bottom: 14px; padding-bottom: 2px; }
.xl-tab [role="tab"] { flex: none; min-height: 44px; padding: 8px 16px; border-radius: 999px; border: 1px solid var(--vien); background: var(--the);
  color: var(--chu); font: inherit; font-weight: 700; cursor: pointer; }
.xl-tab [role="tab"][aria-selected="true"] { background: var(--c-dam); border-color: var(--c-dam); color: #fff; }
.xl-chon { border: 1px solid var(--vien); border-radius: var(--r-nho); padding: 8px 12px 10px; margin: 0 0 12px; }
.xl-chon legend { font-weight: 700; padding: 0 6px; }
.xl-chon__ds { display: flex; flex-wrap: wrap; gap: 4px 16px; }
.xl-o { display: inline-flex; gap: 8px; align-items: center; min-height: 36px; cursor: pointer; }
.xl-o input { width: 18px; height: 18px; accent-color: var(--c); }
.xl-hang { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); margin-bottom: 12px; }
.xl-bd { position: relative; height: 320px; margin-top: 12px; }
.xl-doc { background: var(--c-nhat); border-radius: var(--r-nho); padding: 10px 14px; margin: 10px 0; }
.xl-doc summary { font-weight: 700; color: var(--c-dam); cursor: pointer; }
.xl-doc p { margin: 6px 0 0; }
.xl-alpha { font-size: 1.2rem; }
.xl-xuat { margin-top: 16px; border-top: 1px solid var(--vien); padding-top: 14px; }
@media print {
  body:has(.xl) .dau, body:has(.xl) .demo-bar, body:has(.xl) .chan, body:has(.xl) .xl-tab, body:has(.xl) .xl-xuat,
  body:has(.xl) .xl-nut-nhap, body:has(.xl) .xl-chon, body:has(.xl) .xl-hang, body:has(.xl) .field { display: none !important; }
  body:has(.xl) { background: #fff; }
  .xl [role="tabpanel"][hidden] { display: block !important; }
  .xl .the { box-shadow: none; border: 0; }
  .xl-bd { break-inside: avoid; }
}
