/* Dashboard lắng nghe MXH — HỆ GIAO DIỆN CHUNG (thiết kế lại 16/10/2026 theo mẫu "Dashboard
   Quản lý KOC" chủ dự án gửi). Mọi màu là token (sáng/tối tự theo hệ điều hành). Bảng màu dữ liệu
   --s1…--s8 giữ nguyên bộ đã kiểm mù màu (màu đi theo ĐỐI TƯỢNG, không theo thứ hạng). Không
   font/biểu tượng ngoài: phông hệ thống, biểu tượng là SVG nội dòng.
   13/11/2026 (chủ dự án duyệt hướng "unslop" bước 1 — màu + chữ; cách làm theo unslop by @heydamir,
   CC BY 4.0): "bàn tin buổi sáng" — bản tin in + sổ trực. Nền/bề mặt/viền/chữ là MỘT dải xám trung
   tính (graphite), chữ ba vai (chính / phụ / mờ), viền là đường kẻ mảnh; MỘT màu nhấn xanh mực
   (#24479a, chữ trắng trên nó 8,6:1). Màu đậm chỉ ở chỗ có nghĩa: biểu đồ, sắc thái, mức cảnh báo
   lừa đảo, ô loại nguồn. Họ màu hồng/tím/xanh/lá/cam/ngọc giữ TÊN + giá trị cho dữ liệu (ô loại
   nguồn, chuỗi biểu đồ theo loại) — không dùng làm trang trí khung nữa. Không gradient đổi sắc,
   không bóng màu; chữ đậm tối đa 600 (số lớn), tiêu đề 500 — thứ bậc bằng cỡ + màu.
   13/11/2026 (chủ dự án duyệt hướng "unslop" bước 2 — bo góc, số, nhịp khoảng cách; cách làm theo
   unslop by @heydamir): bo góc theo CỠ thay cho viên thuốc 999px (token --bo-* dưới :root) — nút / ô
   nhập / nhóm nút 8, nhãn / chip 6 (huy hiệu nhỏ 4), thẻ 12, ngăn kéo / hộp thoại 16; lồng nhau thì
   góc trong = góc ngoài − đệm, không dưới 4. Chỉ giữ hình TRÒN khi nó tròn theo nghĩa: chấm trạng thái,
   ảnh đại diện, nút ⓘ, núm công tắc. Khoảng cách theo lưới 4px (4/8/12/16/20/24/32…), 2px chỉ để
   chỉnh lệch trong điều khiển nhỏ; cùng loại thì cùng cỡ (hàng cùng cao, thẻ cùng đệm). Số dùng
   chữ số đều bề rộng (tabular-nums) ở mọi cột / con số. */
:root {
  color-scheme: light;
  --nen: #f5f5f4;               /* nền trang: xám trung tính, hơi ấm như giấy in (13/11: bỏ xám xanh) */
  --be-mat: #ffffff;
  --be-mat-2: #f2f2f0;          /* đầu bảng, nhóm nút, ô phụ */
  --be-mat-3: #fafaf9;          /* khung bộ lọc (13/11: bỏ tô xanh — bề mặt nâng nhẹ + đường kẻ) */
  --vien-3: #e5e5e2;            /* viền khung bộ lọc = đường kẻ mảnh */
  --chu: #1c1c1a;               /* chữ chính (mực) */
  --tieu-de: #1c1c1a;           /* tiêu đề mục = chữ chính (13/11: bỏ xanh navy — thứ bậc bằng cỡ chữ) */
  --chu-phu: #52524f;           /* chữ phụ */
  --chu-mo: #6b6b67;            /* chữ mờ: 4,8:1 trên --be-mat-2, 5,3:1 trên trắng */
  --ke: #e7e7e4;                /* đường kẻ mảnh ≈ chữ chính 9% */
  --truc: #d2d2ce;              /* viền ô nhập, trục biểu đồ */
  --vien: #e5e5e2;
  --nhan: #24479a;              /* màu nhấn xanh mực — chọn, nút chính, liên kết */
  --nhan-dam: #1b3576;
  --nhan-nen: #e9edf6;
  --tot: #137a3e;
  --tot-nen: #e8f3ec;
  --loi: #c0302b;
  --loi-nen: #fbeceb;
  --canh: #a15c00;
  --canh-nen: #fbf1dc;
  --s1: #2a78d6; --s2: #eb6834; --s3: #1baf7a; --s4: #eda100;
  --s5: #e87ba4; --s6: #008300; --s7: #4a3aa7; --s8: #e34948;
  --trung-lap: #a8a8a3;
  --chua: #e0e0dc;
  /* họ màu dữ liệu: ô loại nguồn / sắc thái (o-mau--*), chuỗi biểu đồ theo loại (chi_so.js MAU_LOAI),
     *-nhat nền ô + *-chu chữ (đạt AA trên nền nhạt). Không dùng cho khung, nút, biểu tượng trang trí. */
  --hong: #f05a83; --hong-2: #e23b68; --hong-nhat: #fde8ef; --hong-chu: #b4235a;
  --tim: #9b6cf6; --tim-2: #7c4ddf; --tim-nhat: #f1ebfe; --tim-chu: #6d28d9;
  --xanh: #4b8df8; --xanh-2: #2d6fe6; --xanh-nhat: #e8f0fe; --xanh-chu: #1d4ed8;
  --la: #34c38f; --la-2: #1ea672; --la-nhat: #e3f6ee; --la-chu: #137a52;
  --cam: #fba94c; --cam-2: #f08a1c; --cam-nhat: #fff1e6; --cam-chu: #c2410c;
  --ngoc: #2cc3c9; --ngoc-2: #129ca3; --ngoc-nhat: #e0f6f7; --ngoc-chu: #0b6f78;
  --xam-nhat: #f0f0ee; --xam-chu: #4a4a47;
  /* nền tảng: MỘT màu mỗi nền tảng cho cả dashboard (ô biểu tượng, thanh, nhãn) — thêm nền tảng =
     thêm một token ở đây + một dòng trong bảng NEN_TANG của chi_so.js. *-chu: màu glyph trên ô. */
  --nt-tiktok: #111827; --nt-tiktok-chu: #ffffff;
  --nt-facebook: #1877f2;
  --nt-instagram: #d62976;
  --nt-youtube: #e62117;
  --nt-threads: #3f3f46; --nt-threads-chu: #ffffff;
  --nt-web: #4f46e5; --nt-web-chu: #ffffff;          /* Báo & Web (16/10/2026) */
  /* bóng trung tính, nhỏ (13/11: không bóng màu) — chiều sâu chủ yếu từ bậc bề mặt + đường kẻ */
  --bong: 0 1px 2px rgba(0, 0, 0, .05);
  --bong-noi: 0 8px 24px rgba(0, 0, 0, .08), 0 1px 3px rgba(0, 0, 0, .06);
  --bo: 12px;
  --bo-nho: 8px;
  /* bo góc theo cỡ (13/11/2026, unslop bước 2 — chủ dự án duyệt). --bo / --bo-nho giữ nguyên tên + giá trị. */
  --bo-nut: 8px;                /* nút, ô nhập, ô chọn, nhóm nút chia đoạn, mục trong menu */
  --bo-chip: 6px;               /* nhãn, chip từ khoá / bộ lọc */
  --bo-chip-nho: 4px;           /* huy hiệu nhỏ (số đếm, chữ 11px), thanh dữ liệu mảnh */
  --bo-the: 12px;               /* thẻ, khung bảng, bảng nổi (menu: 12 − đệm 4 = mục 8) */
  --bo-khung: 16px;             /* ngăn kéo, hộp thoại, tấm trượt từ dưới lên */
  --phong: "Inter", "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  /* mũi tên ô chọn (data: — CSP img-src 'self' data:) */
  --mui-chon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2373736f' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
}
@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    /* dải graphite tối (13/11/2026): sâu → nền → thẻ → nâng; viền = chữ chính ~8% */
    --nen: #141415;
    --be-mat: #19191b;
    --be-mat-2: #232325;
    --be-mat-3: #1c1c1e;
    --vien-3: #2c2c2f;
    --chu: #ededed;
    --chu-phu: #a1a1a6;
    --chu-mo: #8b8b91;            /* 4,6:1 trên --be-mat-2, 5,2:1 trên thẻ */
    --ke: #2a2a2d;
    --truc: #3b3b3f;
    --vien: #2a2a2d;
    --nhan: #8fadeb;              /* xanh mực sáng cho nền tối: chữ tối trên nó 8,2:1 */
    --nhan-dam: #b3c6f2;
    --nhan-nen: #222838;
    --tot: #4cc38a;
    --tot-nen: #16281e;
    --loi: #f07272;
    --loi-nen: #321b1c;
    --canh: #e5a93b;
    --canh-nen: #2c2414;
    --s1: #3987e5; --s2: #d95926; --s3: #199e70; --s4: #c98500;
    --s5: #d55181; --s6: #008300; --s7: #9085e9; --s8: #e66767;
    --trung-lap: #707075;
    --chua: #3a3a3e;
    --hong-nhat: #3a1a28; --hong-chu: #f59ab6;
    --tim-nhat: #2a2147; --tim-chu: #c4b0ff;
    --xanh-nhat: #1b2b4f; --xanh-chu: #9cc0ff;
    --la-nhat: #12302a; --la-chu: #6fdcb0;
    --cam-nhat: #3a2614; --cam-chu: #ffb27a;
    --ngoc-nhat: #0f3036; --ngoc-chu: #6fdde3;
    --xam-nhat: #2a2a2d; --xam-chu: #b4b4b8;
    --tieu-de: #ededed;
    --nt-tiktok: #ededed; --nt-tiktok-chu: #141415;
    --nt-threads: #c4c4cc; --nt-threads-chu: #141415;
    --nt-web: #a5b4fc; --nt-web-chu: #141415;
    --bong: none;
    --bong-noi: 0 12px 32px rgba(0, 0, 0, .55), 0 2px 6px rgba(0, 0, 0, .4);
  }
}

/* ─── nền tảng ─── */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--nen); color: var(--chu);
  font: 14px/1.5 var(--phong); -webkit-font-smoothing: antialiased;
}
a { color: var(--nhan); text-decoration: none; }
a:hover { text-decoration: underline; }
h1 { font-size: 24px; line-height: 1.25; margin: 0; font-weight: 500; color: var(--chu); }
h2 { font-size: 16px; line-height: 1.35; margin: 0 0 12px; font-weight: 500; color: var(--chu); }
/* 13/11/2026: <b>/<strong> mặc định 700 → 600 (trần chữ đậm của hệ) */
b, strong { font-weight: 500; }
h3 { font-size: 13px; margin: 0 0 8px; font-weight: 500; color: var(--chu-phu); }
small, .mo { color: var(--chu-mo); }
.phu { color: var(--chu-phu); }
code { font-size: 12.5px; padding: 1px 6px; border-radius: var(--bo-chip-nho); background: var(--be-mat-2); border: 1px solid var(--ke); }
.khung { max-width: 1600px; margin: 0 auto; padding: 0 24px; }
.so { font-variant-numeric: tabular-nums; }
[hidden] { display: none !important; }
.cach-duoi { margin-bottom: 16px; }
.chu-loi { color: var(--loi); }
.nho { font-size: 12px; }
.bt { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ─── đầu trang (thanh điều hướng) ─── */
.dau-trang { background: var(--be-mat); border-bottom: 1px solid var(--vien); position: sticky; top: 0; z-index: 10; }
.dau-trang__trong { display: flex; align-items: center; gap: 8px 24px; min-height: 60px; }
.ten-trang { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; font-size: 15px; color: var(--chu); white-space: nowrap; }
.ten-trang:hover { text-decoration: none; }
.ten-trang__dau {
  display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: var(--bo-nut);
  color: #fff; background: var(--nhan);      /* 13/11/2026: ô phẳng màu nhấn, bỏ gradient xanh→tím + quầng sáng */
}
.ten-trang__dau .bt { width: 18px; height: 18px; stroke-width: 2.2; }
/* tối: màu nhấn sáng → chữ/biểu tượng mực tối trên nó (như .nut), không trắng trên xanh nhạt */
@media (prefers-color-scheme: dark) {
  .ten-trang__dau, .trang-dang-nhap__dau,
  .tai-khoan__nut:hover .tai-khoan__av, .tai-khoan[open] .tai-khoan__av { color: #141415; }
}
.dieu-huong { display: flex; gap: 2px; flex: 1; min-width: 0; }
/* biểu tượng đứng SAU chữ trong HTML (nhãn liền thuộc tính aria-current), row-reverse đưa lên trước */
.dieu-huong a {
  display: inline-flex; flex-direction: row-reverse; justify-content: flex-end; align-items: center; gap: 8px;
  padding: 8px 12px; border-radius: var(--bo-nut); line-height: 20px;     /* hàng điều hướng cao 36 */
  color: var(--chu-phu); font-weight: 500; white-space: nowrap;
}
.dieu-huong a .bt { color: var(--chu-mo); }
.dieu-huong a:hover { background: var(--be-mat-2); color: var(--chu); text-decoration: none; }
.dieu-huong a[aria-current="page"] { color: var(--nhan-dam); background: var(--nhan-nen); font-weight: 500; }
.dieu-huong a[aria-current="page"] .bt { color: var(--nhan); }
/* menu xổ (04/11/2026): nhóm Vận hành / Quản trị + bảng tài khoản — <details>, bỏ kiểu chung của
   details > summary (mũi tên trước chữ, chữ xanh, cách dưới 12px) */
.dh-nhom, .tai-khoan { position: relative; }
.dieu-huong .dh-nhom__nut {
  gap: 8px; padding: 8px 12px; border-radius: var(--bo-nut); line-height: 20px;
  color: var(--chu-phu); font-weight: 500; white-space: nowrap;
}
.dieu-huong .dh-nhom__nut .bt { color: var(--chu-mo); }
.dieu-huong .dh-nhom__nut::before { content: none; }
.dieu-huong .dh-nhom__nut::after {
  content: ""; width: 6px; height: 6px; margin: -3px 0 0 1px; border: solid currentColor;
  border-width: 0 1.6px 1.6px 0; transform: rotate(45deg); opacity: .7;
}
.dh-nhom[open] > .dh-nhom__nut, .tai-khoan[open] > .tai-khoan__nut { margin-bottom: 0; }
.dh-nhom__nut:hover, .dh-nhom[open] > .dh-nhom__nut { background: var(--be-mat-2); color: var(--chu); }
.dieu-huong .dh-nhom__nut[data-dang] { color: var(--nhan-dam); background: var(--nhan-nen); font-weight: 500; }
.dieu-huong .dh-nhom__nut[data-dang] .bt { color: var(--nhan); }
.dh-nhom__ds, .tai-khoan__bang {
  position: absolute; top: calc(100% + 8px); z-index: 20; display: flex; flex-direction: column; gap: 2px;
  padding: 4px; background: var(--be-mat); border: 1px solid var(--vien); border-radius: var(--bo-the); box-shadow: var(--bong-noi);
}
.dh-nhom__ds { left: 0; min-width: 210px; }
.tai-khoan__nut { padding: 2px; border-radius: 50%; }
.tai-khoan__nut::before { content: none; }
.tai-khoan__nut:hover .tai-khoan__av, .tai-khoan[open] .tai-khoan__av { background: var(--nhan); color: #fff; }
.tai-khoan__bang { right: 0; min-width: 240px; max-width: min(360px, calc(100vw - 32px)); align-items: flex-start; gap: 8px; padding: 12px 16px; color: var(--chu-phu); font-size: 13px; }
.tai-khoan__bang .email { color: var(--chu); font-weight: 500; max-width: 100%; overflow-wrap: anywhere; }
.tai-khoan__bang form { margin: 4px 0 0; }
.tai-khoan__av {
  display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; flex: none;
  border-radius: 50%; background: var(--nhan-nen); color: var(--nhan-dam); font-weight: 500; font-size: 13px;
}

main.khung { padding-top: 24px; padding-bottom: 28px; }
.chan-trang { display: flex; align-items: center; gap: 8px; color: var(--chu-mo); font-size: 12px; padding-bottom: 28px; }

/* ─── đầu trang nội dung: tiêu đề lớn trái, công cụ phải (như mẫu) ─── */
.dau-muc { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px 20px; flex-wrap: wrap; margin-bottom: 16px; }
.dau-muc__chu { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.dau-muc__tieu-de { display: flex; align-items: center; gap: 8px; }
.dau-muc form { margin: 0; }

/* ─── thẻ ─── */
.the-khoi {
  background: var(--be-mat); border: 1px solid var(--vien); border-radius: var(--bo);
  box-shadow: var(--bong); padding: 20px; min-width: 0;
}
.luoi { display: grid; gap: 16px; margin-bottom: 16px; }
.luoi--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.luoi--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 900px) { .luoi--2, .luoi--3 { grid-template-columns: minmax(0, 1fr); } }

/* ─── đầu mục có số tròn (1, 2, 3…) — như mẫu; 17/10: một màu, nền nhạt (bớt màu cạnh tranh) ─── */
.muc { display: flex; align-items: center; gap: 8px 12px; flex-wrap: wrap; margin-bottom: 12px; min-width: 0; min-height: 32px; }
.muc__so {
  display: inline-flex; align-items: center; justify-content: center; flex: none; width: 24px; height: 24px;
  border-radius: 50%; background: var(--nhan-nen); color: var(--nhan-dam); font-weight: 500; font-size: 13px; line-height: 1;
}
.muc__ten { margin: 0; font-size: 16px; line-height: 1.4; font-weight: 500; color: var(--tieu-de); }
.muc__phai { margin-left: auto; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.muc__phu { font-size: 12.5px; color: var(--chu-mo); font-variant-numeric: tabular-nums; }

/* ─── thẻ KPI: nhãn + số lớn + số phụ (dòng riêng) + ▲/▼ so kỳ trước ───
   13/11/2026 (unslop bước 1): thẻ số là SỐ — ô biểu tượng màu (.kpi__icon, 6 sắc) ẩn bằng CSS, giữ
   markup để khỏi sửa mẫu; ý nghĩa nằm ở nhãn + số (số lỗi / cảnh báo tô màu ở chỗ vốn đã tô).
   17/10/2026 (chủ dự án: "lòi cả số ra ngoài"): thẻ là container — cỡ số theo bề rộng thẻ (cqi),
   số viết ĐỦ (26/10/2026: không viết tắt "tr"/"tỷ" — cỡ chữ hạ theo bề rộng cho số 11 chữ số), nhãn xuống dòng (không cắt "…"), thẻ hẹp thì chữ xuống dưới biểu tượng. */
.kpi {
  display: flex; flex-wrap: wrap; align-items: center; align-content: flex-start; gap: 8px 12px; padding: 16px;
  min-width: 0; container-type: inline-size;
}
.kpi__icon { display: none; }
.kpi__than { display: flex; flex-direction: column; flex: 1 1 110px; min-width: 0; }
.kpi__nhan { font-size: 13px; line-height: 1.3; font-weight: 500; color: var(--chu-phu); overflow-wrap: anywhere; }
.kpi__so {
  font-size: clamp(20px, 9.5cqi, 28px); font-weight: 600; line-height: 1.2;
  color: var(--chu); font-variant-numeric: tabular-nums; white-space: nowrap; margin-top: 2px;
}
.kpi__phu { font-size: 12.5px; line-height: 1.35; font-weight: 500; color: var(--chu-phu); margin-top: 1px; font-variant-numeric: tabular-nums; }
.kpi__doi { font-size: 12.5px; line-height: 1.4; font-weight: 500; color: var(--chu-mo); margin-top: 2px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.kpi__doi--tang { color: var(--tot); }
.kpi__doi--giam { color: var(--loi); }
/* 13/11/2026: bỏ ô biểu tượng màu → số đếm lỗi tô đỏ khi > 0 (mẫu tự gắn .chu-loi, ví dụ "Lỗi lần quét cuối" trang Nguồn) */
.kpi__so.chu-loi { color: var(--loi); }

/* ─── KPI hai tầng (trang Chỉ số #80 + trang Quảng cáo TikTok, 19/10/2026) ───
   Hàng chính: ba thẻ số lớn. Hàng phụ: MỘT thẻ chia ô bằng đường kẻ mảnh (bóng 1px trái + trên của
   từng ô, khung cắt phần thừa ở mép), số nhỏ hơn, không biểu tượng; số cột qua biến --so-kpi.
   Tên cs-* là của trang Chỉ số (chi_so.js dựng), tên không tiền tố cho trang khác. */
.kpi-chinh, .cs-kpi-chinh { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.the-khoi.kpi.kpi--lon, .cs-trang .the-khoi.kpi.cs-kpi--lon { padding: 20px; gap: 12px 16px; }
.kpi--lon .kpi__nhan, .cs-kpi--lon .kpi__nhan { font-size: 14px; }
.kpi--lon .kpi__so, .cs-kpi--lon .kpi__so { font-size: clamp(26px, 9.5cqi, 36px); margin-top: 4px; }
.the-khoi.kpi-phu, .cs-trang .the-khoi.cs-kpi-phu {
  display: grid; grid-template-columns: repeat(var(--so-kpi, 5), minmax(0, 1fr)); padding: 0; overflow: hidden;
}
.kpi-o, .cs-kpi-o {
  padding: 12px 16px; border: 0; border-radius: 0; background: transparent; box-shadow: -1px 0 0 var(--ke), 0 -1px 0 var(--ke);
}
.kpi-o .kpi__nhan, .cs-kpi-o .kpi__nhan { font-size: 12.5px; }
.kpi-o .kpi__so, .cs-kpi-o .kpi__so { font-size: clamp(18px, 10cqi, 22px); margin-top: 1px; }
@media (max-width: 600px) {
  /* hàng chính: số dẫn cả hàng, hai số kia chia đôi */
  .kpi-chinh, .cs-kpi-chinh { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .kpi-chinh > :first-child, .cs-kpi-chinh > :first-child { grid-column: 1 / -1; }
  .the-khoi.kpi.kpi--lon, .cs-trang .the-khoi.kpi.cs-kpi--lon { padding: 16px; }
  .kpi-o, .cs-kpi-o { padding: 12px; }
}

/* hàng thẻ KPI dùng chung các trang phụ (Nguồn, Lịch quét, BigQuery, Người xem) */
.luoi-kpi { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }

/* ─── biểu đồ ─── */
.bieu-do { width: 100%; height: 300px; }
.bieu-do--thap { height: 240px; }
.trong { color: var(--chu-mo); padding: 24px 0; text-align: center; }

/* ─── bảng: kẻ lưới nhạt, đầu bảng tô nhạt, ô loại tô màu (như mẫu) ─── */
/* 13/11/2026 (bước 2): khung bảng thường nằm TRONG thẻ → góc 8 (nhỏ hơn thẻ 12); ô 8px dọc */
.cuon-ngang { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--ke); border-radius: var(--bo-nut); background: var(--be-mat); }
table { border-collapse: separate; border-spacing: 0; width: 100%; font-size: 13px; }
th, td { text-align: left; padding: 8px 12px; border-bottom: 1px solid var(--ke); vertical-align: top; }
th + th, td + td, th + td, td + th { border-left: 1px solid var(--ke); }
thead th { background: var(--be-mat-2); color: var(--chu-phu); font-weight: 500; font-size: 12.5px; white-space: nowrap; vertical-align: middle; }
tbody th { font-weight: 500; }
td.so, th.so { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
tbody tr:last-child > * { border-bottom: 0; }
tfoot th, tfoot td { background: var(--be-mat-2); border-top: 1px solid var(--ke); border-bottom: 0; font-weight: 500; }
tbody tr:hover > td, tbody tr:hover > th { background: color-mix(in srgb, var(--be-mat-2) 70%, transparent); }
.cat-chu { max-width: 420px; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
/* ghi chú lượt dài (tới 20.000 ký tự từ 17/10/2026): ô chỉ hiện 2 dòng; "Xem đủ" mở bản đủ ở tab mới */
.gc-du { display: inline-block; margin-top: 4px; color: var(--chu-mo); font-size: 12px; }
/* ô tô màu theo loại (nguồn, sắc thái…) */
.o-mau { font-weight: 500; }
.o-mau--hong { background: var(--hong-nhat) !important; color: var(--hong-chu); }
.o-mau--tim { background: var(--tim-nhat) !important; color: var(--tim-chu); }
.o-mau--xanh { background: var(--xanh-nhat) !important; color: var(--xanh-chu); }
.o-mau--la { background: var(--la-nhat) !important; color: var(--la-chu); }
.o-mau--cam { background: var(--cam-nhat) !important; color: var(--cam-chu); }
.o-mau--ngoc { background: var(--ngoc-nhat) !important; color: var(--ngoc-chu); }
.o-mau--xam { background: var(--xam-nhat) !important; color: var(--xam-chu); }
.o-mau--do { background: var(--loi-nen) !important; color: var(--loi); }

/* ─── nhãn (13/11/2026: góc 6 thay viên thuốc; cao 24 = 20 + 2 × 2) ─── */
.the {
  display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: var(--bo-chip); font-size: 12px;
  font-weight: 500; line-height: 20px; background: var(--xam-nhat); color: var(--xam-chu); white-space: nowrap; vertical-align: middle;
  font-variant-numeric: tabular-nums;
}
.the--tot { background: var(--tot-nen); color: var(--tot); }
.the--loi { background: var(--loi-nen); color: var(--loi); }
.the--nhan { background: var(--nhan-nen); color: var(--nhan-dam); }
.the--canh { background: var(--canh-nen); color: var(--canh); }
.the--cham::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
/* nhãn nền tảng: tô nhạt theo màu thương hiệu */
.the--nt-tiktok { --nt: var(--nt-tiktok); } .the--nt-facebook { --nt: var(--nt-facebook); }
.the--nt-instagram { --nt: var(--nt-instagram); } .the--nt-youtube { --nt: var(--nt-youtube); }
.the--nt-threads { --nt: var(--nt-threads); } .the--nt-web { --nt: var(--nt-web); }
[class*="the--nt-"] {
  background: color-mix(in srgb, var(--nt) 11%, var(--be-mat)); color: color-mix(in srgb, var(--nt) 78%, var(--chu));
}

/* ─── biểu mẫu ─── */
form.hang { display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-end; }
label.o { display: flex; flex-direction: column; gap: 4px; font-size: 12.5px; font-weight: 500; color: var(--chu); }
input, select, textarea, button { font: inherit; color: inherit; }
input[type="text"], input[type="email"], input[type="number"], input[type="date"], input[type="search"],
input[type="time"], input[type="datetime-local"], select, textarea {
  background: var(--be-mat); border: 1px solid var(--truc); border-radius: var(--bo-nut); padding: 8px 12px;
  min-height: 36px; color: var(--chu); font-size: 13.5px; font-weight: 400;
}
select { -webkit-appearance: none; appearance: none; padding-right: 36px; background: var(--be-mat) var(--mui-chon) no-repeat right 12px center / 16px; cursor: pointer; }
input:hover, select:hover, textarea:hover { border-color: #b5b5b0; }
@media (prefers-color-scheme: dark) { input:hover, select:hover, textarea:hover { border-color: #55555a; } }
textarea { min-height: 72px; width: 100%; }
input::placeholder, textarea::placeholder { color: var(--chu-mo); opacity: 1; }
input[type="checkbox"], input[type="radio"] { accent-color: var(--nhan); }
input:focus-visible, select:focus-visible, textarea:focus-visible, button:focus-visible, a:focus-visible, summary:focus-visible {
  outline: 2px solid var(--nhan); outline-offset: 2px;
}
.nut {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--nhan); color: #fff; border: 1px solid transparent; border-radius: var(--bo-nut);
  padding: 8px 16px; min-height: 36px; cursor: pointer; font-weight: 500; font-size: 13.5px; line-height: 1.3;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .06); white-space: nowrap; text-decoration: none;
}
@media (prefers-color-scheme: dark) { .nut { color: #141415; box-shadow: none; } }
.nut:hover { background: var(--nhan-dam); text-decoration: none; }
@media (prefers-color-scheme: dark) { .nut:hover { background: var(--nhan-dam); } }
.nut[disabled] { opacity: .45; cursor: not-allowed; }
.nut--nhe { background: var(--be-mat); color: var(--chu); border-color: var(--truc); font-weight: 500; box-shadow: none; }
.nut--nhe:hover { background: var(--be-mat-2); border-color: #b5b5b0; }
@media (prefers-color-scheme: dark) { .nut--nhe { color: var(--chu); } .nut--nhe:hover { background: var(--be-mat-2); } }
.nut--loi { background: var(--be-mat); color: var(--loi); border-color: color-mix(in srgb, var(--loi) 45%, transparent); font-weight: 500; box-shadow: none; }
.nut--loi:hover { background: var(--loi-nen); }
@media (prefers-color-scheme: dark) { .nut--loi { color: var(--loi); } .nut--loi:hover { background: var(--loi-nen); } }
.nut--nho { padding: 4px 12px; min-height: 32px; font-size: 12.5px; }
.cum-nut { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.cum-nut form { margin: 0; }
.luoi-form { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px 16px; align-items: end; }
.luoi-form .rong { grid-column: 1 / -1; }
.luoi-form label.o input[type="checkbox"] { margin: 0 8px 0 0; vertical-align: -2px; }
details > summary { cursor: pointer; color: var(--nhan); font-weight: 500; list-style: none; display: inline-flex; align-items: center; gap: 8px; }
details > summary::-webkit-details-marker { display: none; }
details > summary::before { content: ""; width: 7px; height: 7px; border: solid currentColor; border-width: 0 2px 2px 0; transform: rotate(-45deg); transition: transform .15s; }
details[open] > summary::before { transform: rotate(45deg); }
details[open] > summary { margin-bottom: 12px; }
.ghi-chu { font-size: 12px; color: var(--chu-mo); margin: 8px 0 0; }

/* ─── nút ⓘ: chữ giải thích hiện trong bóng nổi (chung.js / chi_so.js), không chiếm chỗ trên trang ───
   13/11/2026 (bước 2): GIỮ tròn — đây là ký hiệu ⓘ khoanh tròn, không phải viên thuốc */
.goi-y {
  position: relative; display: inline-flex; align-items: center; justify-content: center; flex: none;
  width: 20px; height: 20px; padding: 0; border-radius: 50%; border: 1.5px solid var(--truc); background: var(--be-mat);
  color: var(--chu-mo); font: 500 11.5px/1 var(--phong); cursor: help; vertical-align: middle;
}
/* 20px: đạt WCAG 2.5.8 nhờ khoảng trống quanh nút (không vùng chạm giả lòi ra ngoài khung) */
.goi-y:hover, .goi-y[aria-expanded="true"] { color: var(--nhan); border-color: var(--nhan); }
.goi-y--canh, .goi-y--canh:hover, .goi-y--canh[aria-expanded="true"] { color: var(--canh); border-color: color-mix(in srgb, var(--canh) 55%, transparent); background: var(--canh-nen); }
.noi {
  position: fixed; z-index: 60; left: 0; top: 0; max-width: min(320px, calc(100vw - 24px));
  padding: 8px 12px; border-radius: var(--bo-nut); background: var(--be-mat); color: var(--chu);
  border: 1px solid var(--vien); box-shadow: var(--bong-noi); font-size: 12.5px; line-height: 1.5; pointer-events: none;
}

/* ─── thông báo ─── */
.thong-bao { padding: 12px 16px; border-radius: var(--bo-the); margin-bottom: 16px; border: 1px solid transparent; font-size: 13.5px; }
.thong-bao--ok { background: var(--tot-nen); color: var(--tot); border-color: color-mix(in srgb, var(--tot) 25%, transparent); }
.thong-bao--loi { background: var(--loi-nen); color: var(--loi); border-color: color-mix(in srgb, var(--loi) 25%, transparent); }
.thong-bao--canh { background: var(--canh-nen); color: var(--canh); border-color: color-mix(in srgb, var(--canh) 30%, transparent); }

/* ─── tab nền tảng ─── */
.tab { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.tab button {
  background: var(--be-mat); border: 1px solid var(--truc); border-radius: var(--bo-nut); padding: 4px 12px; cursor: pointer;
  color: var(--chu-phu); font-size: 12.5px; font-weight: 500; min-height: 32px;
}
.tab button:hover { border-color: var(--nhan); color: var(--nhan-dam); }
.tab button[aria-selected="true"] { background: var(--nhan-nen); color: var(--nhan-dam); border-color: color-mix(in srgb, var(--nhan) 40%, transparent); font-weight: 500; }

/* ─── trang Nguồn ─── */
.cach-tren { margin-top: 16px; }
.ng-du-an { margin-bottom: 4px; gap: 12px 24px; }
.ng-o { min-width: 0; padding: 12px 16px; border-radius: var(--bo-nut); background: var(--be-mat-2); border: 1px solid var(--ke); }
.ng-o h3 { margin-bottom: 8px; color: var(--chu-phu); font-size: 13px; }    /* 13/11/2026: chữ thường, bỏ giãn chữ */
.ng-the { display: flex; flex-wrap: wrap; gap: 8px; }
.ng-o h3 .goi-y { margin-left: 4px; vertical-align: -1px; }
/* Hashtag của dự án (18/10/2026, thay ô thị trường): nhãn #tag; trần tháng là dòng chân ô.
   13/11/2026: nhãn xám trung tính (bỏ tô ngọc — ô đã có tiêu đề Hashtag và dấu #) */
.the--tag { background: var(--xam-nhat); color: var(--xam-chu); white-space: normal; overflow-wrap: anywhere; }
.ng-o__chan { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 12px; margin-top: 12px; padding-top: 8px; border-top: 1px dashed var(--ke); font-size: 13px; color: var(--chu-phu); }
.ng-o__chan b { color: var(--chu); font-variant-numeric: tabular-nums; }
.ng-nguon { display: flex; align-items: flex-start; gap: 8px; min-width: 200px; }
.ng-nguon .the { flex: none; margin-top: 1px; }
.ng-nguon__chu { min-width: 0; overflow-wrap: anywhere; }
.ng-nguon__chu a { font-weight: 500; }
.ng-sua { margin-top: 8px; }
.ng-sua[open] { min-width: 420px; }
.ng-duyet select { min-height: 32px; padding-top: 4px; padding-bottom: 4px; font-size: 12.5px; }
.ng-bang td { vertical-align: middle; }
.ng-bang td:last-child .cum-nut { flex-wrap: nowrap; }
.ng-bang td.nho { min-width: 92px; }
/* 23/10/2026: ô biểu mẫu có nút ⓘ cạnh nhãn (giống label.o; nút đứng ngoài <label>) */
.ng-truong { display: flex; flex-direction: column; gap: 4px; min-width: 0; font-size: 12.5px; font-weight: 500; color: var(--chu); }
.ng-truong__nhan, .ng-chon { display: flex; align-items: center; gap: 8px; }
.ng-chon { font-size: 12.5px; font-weight: 500; color: var(--chu); }
.ng-chon input[type="checkbox"] { margin: 0 8px 0 0; vertical-align: -2px; }
.ng-bang .cat-chu, .dx-ly-do .cat-chu { max-width: 320px; overflow-wrap: anywhere; }
.dx-ly-do { min-width: 180px; }
/* Đề xuất chờ duyệt (18/10/2026): lọc + chọn nhiều + thanh duyệt hàng loạt dính đáy khung nhìn */
.dx-loc { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 8px 16px; margin-bottom: 12px; }
.dx-o { flex-direction: row !important; align-items: center; gap: 8px !important; font-weight: 500; white-space: nowrap; }
.dx-o select { min-height: 36px; padding-top: 4px; padding-bottom: 4px; }
.dx-o input[type="number"] { width: 72px; min-height: 36px; padding-top: 4px; padding-bottom: 4px; text-align: right; font-variant-numeric: tabular-nums; }
.dx-loc__dem { margin-left: auto; align-self: center; }
.dx-bang td, .dx-bang th { vertical-align: middle; }
.dx-bang .dx-o-chon { width: 40px; text-align: center; padding-left: 8px; padding-right: 8px; }
.dx-bang .dx-o-chon input { width: 17px; height: 17px; margin: 0; vertical-align: middle; cursor: pointer; }
.dx-bang td:nth-last-child(1) .cum-nut { flex-wrap: nowrap; }
.dx-thanh {
  position: sticky; bottom: 0; z-index: 5; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px;
  margin: 12px -8px 0; padding: 12px 16px; border-radius: var(--bo-the); border: 1px solid var(--vien);
  background: var(--be-mat); box-shadow: 0 -6px 18px -10px rgba(0, 0, 0, .2);
}
.dx-thanh--co { border-color: color-mix(in srgb, var(--nhan) 45%, transparent); }
.dx-thanh__chon { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.dx-thanh__so { font-size: 13.5px; color: var(--chu-phu); white-space: nowrap; }
.dx-thanh__so b { color: var(--chu); font-size: 16px; font-variant-numeric: tabular-nums; }
.dx-thanh__so-lieu { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; }
.dx-thanh__uoc { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 500; color: var(--chu); font-variant-numeric: tabular-nums; white-space: nowrap; }
.dx-thanh__nut { margin-left: auto; }
@media (max-width: 760px) {
  .dx-loc__dem { margin-left: 0; flex-basis: 100%; }
  .dx-thanh { margin: 12px 0 0; padding: 12px; gap: 8px 12px; }
  .dx-thanh__nut { margin-left: 0; width: 100%; }
  .dx-thanh__nut .nut { flex: 1 1 0; }
  /* điện thoại: thanh dính đáy chiếm ít chỗ khi chưa chọn gì — thông số hiện khi đã chọn */
  .dx-thanh:not(.dx-thanh--co) .dx-thanh__so-lieu { display: none; }
}
/* Đề xuất từ khoá + hashtag NGAY trong ô Từ khoá / Hashtag của mục Dự án (12/11/2026, chủ dự án "sửa tại chỗ"):
   mỗi dòng ô chọn + cụm / #tag, dòng phụ (nhóm, hạng, bằng chứng) thụt dưới; thanh duyệt chung dùng kiểu .dx-thanh. */
#du-an, #de-xuat { scroll-margin-top: 76px; }      /* quay về sau duyệt: tên mục không nằm dưới thanh trên dính */
.dg { margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--ke); }
.dg__dau { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; margin-bottom: 8px; font-size: 12.5px; }
.dg__ten { font-weight: 500; color: var(--chu); }
.dg__ten b { font-variant-numeric: tabular-nums; }
.dg__het { display: inline-flex; align-items: center; gap: 8px; min-height: 32px; color: var(--chu-phu); cursor: pointer; }
.dg__het input, .dg-dong__chon input { width: 17px; height: 17px; margin: 0; flex: none; cursor: pointer; }
.dg__het[hidden], .dg-dong[hidden], .dg__them[hidden], .dg-thanh[hidden], .dg-thanh__canh[hidden] { display: none; }
.dg__ds { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.dg-dong { display: grid; gap: 1px; padding: 4px 8px; border-radius: var(--bo-nut); }
.dg-dong:hover { background: var(--be-mat); }
.dg-dong__chon { display: flex; align-items: flex-start; gap: 8px; min-height: 24px; cursor: pointer; }
.dg-dong__chon input { margin-top: 2px; }
.dg-dong__chu { font-size: 13.5px; font-weight: 500; color: var(--chu); overflow-wrap: anywhere; }
.dg-dong__phu { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 8px; padding-left: 25px; }
.dg-dong__phu .the { font-size: 11.5px; }
.dg-dong--mo .dg-dong__chu { color: var(--chu-mo); font-weight: 500; }
.dg__them { margin-top: 8px; }
.dg__gioi-han { margin: 12px 0 0; padding: 0; list-style: none; display: grid; gap: 4px; line-height: 1.45; }
.dg__canh { color: var(--canh); }
.dg-thanh__chi-tiet { font-size: 13px; font-weight: 500; color: var(--chu); font-variant-numeric: tabular-nums; }
.dg-thanh__canh { flex-basis: 100%; margin: 0; font-size: 12.5px; line-height: 1.45; color: var(--canh); }
.dg-thanh__xac-nhan { flex-basis: 100%; display: flex; align-items: flex-start; gap: 8px; font-size: 13px; line-height: 1.45;
  color: var(--chu); cursor: pointer; }
.dg-thanh__xac-nhan[hidden] { display: none; }
.dg-thanh__xac-nhan input { width: 17px; height: 17px; margin: 2px 0 0; flex: none; }
@media (max-width: 760px) {
  .dg-dong { padding: 8px 4px; }
  .dg-dong__chon { min-height: 32px; }
  .dg__het, .dg__them { min-height: 44px; }
}

/* ─── trang Quản trị: Người dùng và quyền (21/10/2026) ───
   Danh sách nhẹ: tên đậm trước, email + phòng ban mờ dưới; quyền là chữ thường; "Sửa quyền" mở ngăn
   ngay dưới dòng (ô chọn theo bên + công tắc Quản trị viên + Lưu/Huỷ). Điện thoại: mỗi dòng là một
   thẻ, nhãn cột hiện trước giá trị, nút ≥ 44px. 18/10/2026: không hiện chức danh (chủ dự án). */
.nx-cong-cu { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-bottom: 12px; }
.nx-tim { position: relative; flex: 1 1 280px; max-width: 460px; display: flex; align-items: center; }
.nx-tim .bt { position: absolute; left: 12px; color: var(--chu-mo); pointer-events: none; }
.nx-tim input { width: 100%; padding-left: 36px; }
.nx-them { margin-bottom: 16px; padding: 16px; border: 1px solid var(--vien-3); border-radius: var(--bo-the); background: var(--be-mat-3); }
.nx-them__tieu-de { margin: 0 0 12px; font-size: 14px; color: var(--tieu-de); }
.nx-chon-nguoi { position: relative; display: flex; flex-direction: column; gap: 4px; max-width: 460px; margin-bottom: 16px; }
.nx-truong { font-size: 12.5px; font-weight: 500; color: var(--chu); padding: 0; margin-bottom: 8px; }
.nx-chon-nguoi .nx-truong { margin-bottom: 0; }
.nx-goi-y {
  position: absolute; z-index: 20; top: 64px; left: 0; right: 0; margin: 0; padding: 4px; list-style: none;
  background: var(--be-mat); border: 1px solid var(--vien); border-radius: var(--bo-the); box-shadow: var(--bong-noi);
  max-height: 320px; overflow-y: auto;
}
.nx-goi-y__dong { display: flex; flex-direction: column; gap: 1px; padding: 8px 12px; border-radius: var(--bo-nut); cursor: pointer; }
.nx-goi-y__dong:hover, .nx-goi-y__dong[aria-selected="true"] { background: var(--nhan-nen); }
.nx-goi-y__ten { font-weight: 500; color: var(--chu); }
.nx-goi-y__phu { font-size: 12px; color: var(--chu-phu); overflow-wrap: anywhere; }

/* 23/10/2026: khung viền là .cuon-ngang.nx-khung (hàng tiêu đề nằm ngoài <ul> để thanh trang chung đếm
   đúng <li>); không cuộn ngang — lưới tự co, dưới 760px thành thẻ. */
.nx-khung { overflow: visible; }
.nx-ds { list-style: none; margin: 0; padding: 0; }
.nx-dau, .nx-hang {
  display: grid; grid-template-columns: minmax(200px, 2.2fr) minmax(170px, 2fr) minmax(150px, 1.3fr) minmax(120px, 1fr) 112px;
  gap: 4px 16px; align-items: center; padding: 12px 16px;
}
.nx-dau { background: var(--be-mat-2); color: var(--chu-phu); font-weight: 500; font-size: 12.5px; border-radius: var(--bo-nut) var(--bo-nut) 0 0; border-bottom: 1px solid var(--ke); }
.nx-dong + .nx-dong { border-top: 1px solid var(--ke); }
.nx-dong { scroll-margin-top: 80px; transition: background-color .5s ease-out; }
.nx-dong--mo, .nx-dong--doi { background: color-mix(in srgb, var(--nhan-nen) 45%, transparent); }
.nx-dong--vua-luu { background: var(--tot-nen); }
.nx-nguoi { display: flex; flex-direction: column; min-width: 0; }
.nx-ten { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; font-weight: 500; color: var(--chu); overflow-wrap: anywhere; }
.nx-phu { display: block; font-size: 12px; color: var(--chu-phu); overflow-wrap: anywhere; }
.nx-pb { color: var(--chu-mo); }
.nx-quyen__chu { color: var(--chu); }
.nx-quyen__chu--qt { font-weight: 500; color: var(--nhan-dam); }
.nx-o { display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.nx-dn { font-size: 12.5px; color: var(--chu-phu); font-variant-numeric: tabular-nums; }
.nx-hd { justify-self: end; }
.nx-nhan { display: none; }

.nx-ngan { padding: 4px 16px 16px; }
.nx-form { display: flex; flex-direction: column; gap: 12px; }
.nx-ngan .nx-form { padding: 16px; border: 1px solid var(--vien); border-radius: var(--bo-nut); background: var(--be-mat); max-width: 640px; }
.nx-ben { border: 0; margin: 0; padding: 0; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.nx-o-ben { display: grid; grid-template-columns: 140px minmax(0, 220px); align-items: center; gap: 4px 12px; }
.nx-o-ben__ten { font-weight: 500; }
.nx-o-ben select { width: 100%; }
.nx-o-ben select:disabled { opacity: .6; cursor: not-allowed; }
.nx-ly-do { grid-column: 2; font-size: 12px; color: var(--chu-mo); }
.nx-ghi { margin: 0; font-size: 12.5px; color: var(--chu-mo); }
.nx-cong-tac { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; cursor: pointer; width: fit-content; min-height: 32px; }
.nx-cong-tac input {
  /* 13/11/2026: công tắc GIỮ rãnh tròn đầu + núm tròn — hình dạng chuẩn của công tắc, không phải nhãn */
  -webkit-appearance: none; appearance: none; flex: none; width: 36px; height: 20px; margin: 0; border-radius: 999px;
  background: var(--truc); position: relative; cursor: pointer; transition: background-color .15s ease-out;
}
.nx-cong-tac input::after {
  content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%;
  background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, .2); transition: transform .15s ease-out;
}
.nx-cong-tac input:checked { background: var(--nhan); }
.nx-cong-tac input:checked::after { transform: translateX(16px); }
.nx-cong-tac input:disabled { opacity: .5; cursor: not-allowed; }
.nx-cong-tac:has(input:disabled) { cursor: not-allowed; color: var(--chu-phu); }
.nx-chan { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 8px; padding-top: 4px; }
.nx-trang-thai { margin-right: auto; font-size: 12.5px; color: var(--canh); }
.nx-ngan__chan { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; max-width: 640px; margin-top: 12px; }
.nx-ngan__chan form { margin: 0; }
.nx-trong { padding: 16px 0 8px; text-align: center; color: var(--chu-mo); }
.nx-trong p { margin: 0 0 12px; }
@media (prefers-reduced-motion: reduce) { .nx-dong, .nx-cong-tac input, .nx-cong-tac input::after { transition: none; } }

@media (max-width: 760px) {
  .nx-dau { display: none; }
  .nx-khung { border: 0; background: transparent; }
  .nx-ds { display: flex; flex-direction: column; gap: 12px; }
  .nx-dong { border: 1px solid var(--ke); border-radius: var(--bo-the); background: var(--be-mat); }
  .nx-dong + .nx-dong { border-top: 1px solid var(--ke); }
  .nx-hang { grid-template-columns: minmax(0, 1fr); gap: 8px; padding: 12px 16px; }
  .nx-quyen, .nx-lark, .nx-dn { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 8px; align-items: center; }
  .nx-nhan { display: block; font-size: 12px; color: var(--chu-mo); font-weight: 500; }
  .nx-hd { justify-self: stretch; }
  .nx-hd .nut, .nx-chan .nut, .nx-cong-cu .nut, .nx-ngan__chan .nut { min-height: 44px; }
  .nx-hd .nut { width: 100%; }
  .nx-cong-cu .nut { flex: 1 1 100%; }
  .nx-tim { max-width: none; flex-basis: 100%; }
  .nx-tim input, .nx-o-ben select, .nx-chon-nguoi input { min-height: 44px; font-size: 16px; }
  .nx-ngan { padding: 0 12px 12px; }
  .nx-ngan .nx-form { padding: 12px; }
  .nx-o-ben { grid-template-columns: minmax(0, 1fr); }
  .nx-ly-do { grid-column: 1; }
  .nx-cong-tac { min-height: 44px; }
  .nx-chan .nut { flex: 1 1 0; }
  .nx-trang-thai { flex-basis: 100%; }
  .nx-them { padding: 16px 12px; }
}

/* ─── đăng nhập / lỗi ─── */
.trang-dang-nhap { max-width: 440px; margin: 9vh auto; text-align: center; }
.trang-dang-nhap .the-khoi { padding: 32px 32px 28px; }
.trang-dang-nhap h1 { font-size: 22px; margin: 16px 0 8px; }
.trang-dang-nhap p { margin: 0 0 16px; }
.trang-dang-nhap .nut { min-width: 220px; min-height: 44px; }
.trang-dang-nhap__nut { display: flex; align-items: center; justify-content: center; gap: 8px; }
.trang-dang-nhap__dau {
  display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 52px; border-radius: var(--bo-the);
  color: #fff; background: var(--nhan);      /* 13/11/2026: ô phẳng, không gradient / quầng sáng */
}
.trang-dang-nhap__dau .bt { width: 28px; height: 28px; }
.trang-dang-nhap__dau--loi { background: var(--loi); }

/* ─── khung chi tiết (dialog chung) ─── */
.bieu-do canvas { cursor: pointer; }
dialog.chi-tiet {
  width: min(860px, calc(100vw - 32px)); max-height: calc(100vh - 48px); padding: 0;
  border: 1px solid var(--vien); border-radius: var(--bo-khung); background: var(--be-mat); color: var(--chu);
  display: none; flex-direction: column;
}
dialog.chi-tiet[open] { display: flex; }
dialog.chi-tiet::backdrop { background: rgba(0, 0, 0, .45); }
.chi-tiet__dau { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 20px 0; }
.chi-tiet__dau h2 { margin: 0; font-size: 18px; }
#chi-tiet-mo-ta { padding: 0 20px; margin: 4px 0 8px; }
.chi-tiet__than { overflow-y: auto; padding: 0 20px 8px; display: flex; flex-direction: column; gap: 12px; }
/* Thẻ có overflow:hidden trong cột flex cao cố định sẽ bị co tới 0 (min-height tự động = 0) → mất
   chữ bình luận khi danh sách dài. Giữ nguyên chiều cao thẻ, để khung cuộn. */
.chi-tiet__than > * { flex-shrink: 0; }

/* ─── Kết nối TikTok Ads (trang Quản trị, chỉ quản trị viên — 19/10/2026) ───
   Ô hạn bên trái là thứ quản trị viên cần nhìn trước: còn bao nhiêu ngày trước khi phải đăng nhập lại
   (vàng < 7 ngày, đỏ < 2 ngày — màu do máy chủ quyết ở tt.muc). Bên phải: các mốc dạng danh sách. */
.tt-luoi { display: grid; grid-template-columns: minmax(220px, 300px) minmax(0, 1fr); gap: 16px 28px; align-items: start; }
.tt-han { display: flex; flex-direction: column; gap: 4px; padding: 16px; border-radius: var(--bo-nut); background: var(--be-mat-2); border: 1px solid var(--ke); }
.tt-han__nhan { font-size: 12.5px; font-weight: 500; color: var(--chu-phu); }
.tt-han__so { font-size: 28px; font-weight: 600; line-height: 1.15; color: var(--chu); font-variant-numeric: tabular-nums; }
.tt-han__ray { display: block; height: 6px; margin: 4px 0 0; border-radius: var(--bo-chip-nho); background: var(--chua); overflow: hidden; }
.tt-han__dac { display: block; height: 100%; border-radius: inherit; background: var(--tot); }
.tt-han__phu { font-size: 12.5px; color: var(--chu-phu); }
.tt-han--tot .tt-han__so { color: var(--tot); }
.tt-han--canh { background: var(--canh-nen); border-color: color-mix(in srgb, var(--canh) 35%, transparent); }
.tt-han--canh .tt-han__so { color: var(--canh); }
.tt-han--canh .tt-han__dac { background: var(--canh); }
.tt-han--loi { background: var(--loi-nen); border-color: color-mix(in srgb, var(--loi) 35%, transparent); }
.tt-han--loi .tt-han__so { color: var(--loi); }
.tt-han--loi .tt-han__dac { background: var(--loi); }
.tt-ds { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px 24px; margin: 0; }
.tt-ds > div { min-width: 0; }
.tt-ds dt { font-size: 12px; font-weight: 500; color: var(--chu-mo); }
.tt-ds dd { margin: 2px 0 0; font-size: 13.5px; font-weight: 500; overflow-wrap: anywhere; }
.tt-ds__phu { display: block; font-size: 12px; font-weight: 400; color: var(--chu-phu); }
.tt-ds__rong { grid-column: 1 / -1; }
.tt-nut { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 12px; }
.tt-nut form { margin: 0; }
.tt-token { margin: 4px 0 4px; }
/* 23/10/2026: ô token — câu giải thích vào ⓘ cạnh nhãn (không còn đoạn chữ dưới ô) */
.tt-token__form { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 8px 12px; margin-top: 12px; }
.tt-o { display: flex; flex-direction: column; gap: 4px; flex: 1 1 320px; max-width: 560px; min-width: 0; }
.tt-o__nhan { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 500; color: var(--chu); }
.tt-o input { width: 100%; }
.tt-o--hep { flex: 0 1 120px; }
.tt-h3 { font-size: 14px; color: var(--tieu-de); margin: 16px 0 4px; padding-top: 16px; border-top: 1px solid var(--ke); }
.tt-bang td { vertical-align: middle; }
.tt-bang__phu { display: block; font-size: 12px; color: var(--chu-mo); font-variant-numeric: tabular-nums; }

/* ─── Tài khoản quảng cáo → bên (23/10/2026, chủ dự án: "để cho gọn lại") ───
   ~40 dòng: hàng thấp (ô 4px dọc — 13/11/2026 lưới 4px), nền tảng là nhãn nhỏ cạnh tên, Đồng bộ / Duyệt hai cột ô tích hẹp,
   trạng thái là nhãn ngắn. Lọc tại chỗ ở trên bảng, thanh trang chung ở dưới. */
.tkqc-loc { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 12px; }
.tkqc-loc .tkqc-tim { flex: 1 1 240px; max-width: 340px; }
.tkqc-loc select, .tkqc-loc input { min-height: 36px; font-size: 13px; }
.tkqc-bang th, .tkqc-bang td { padding: 4px 12px; }
.tkqc-bang td { font-size: 13px; }
.tkqc-bang select { min-height: 32px; padding: 4px 32px 4px 8px; font-size: 13px; max-width: 170px; background-position: right 8px center; }
.tkqc-tk { min-width: 220px; max-width: 360px; }
.tkqc-tk__ten { display: flex; align-items: center; gap: 6px; min-width: 0; }
.tkqc-tk__chu { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 500; color: var(--chu); }
.tkqc-nt { flex: none; padding: 0 8px; font-size: 11px; line-height: 20px; border-radius: var(--bo-chip-nho); }
.tkqc-bang .tkqc-o-hop { width: 1%; text-align: center; white-space: nowrap; }
.tkqc-o-hop input { width: 17px; height: 17px; margin: 0; vertical-align: middle; cursor: pointer; }
.tkqc-trang { white-space: nowrap; }
.tkqc-trang .the + .the { margin-left: 4px; }
.tkqc-luu { width: 1%; text-align: right; position: relative; }   /* giữ nhãn ẩn "Lưu" trong khung cuộn */
.tkqc-luu form { margin: 0; }
.tkqc-luu .nut--nho { min-height: 28px; padding: 2px 12px; }
/* Tài khoản Apify (03/11/2026, trang Quản trị): nút Tắt / Nhãn / Gỡ cùng một hàng, nhãn sửa tại chỗ. */
.chu-canh { color: var(--canh); }
.ap-nut { white-space: nowrap; }
.ap-nut > form, .ap-nut > details { display: inline-block; margin: 0 4px 0 0; vertical-align: top; }
.ap-nhan > summary { list-style: none; cursor: pointer; }
.ap-nhan > summary::-webkit-details-marker { display: none; }
.ap-nhan[open] form { display: flex; gap: 8px; margin-top: 8px; }
.ap-nhan input[type="text"] { min-width: 12em; }
.tt-token__form textarea { width: min(100%, 42em); font-family: ui-monospace, monospace; }
.tkqc-bang tr.tkqc-doi > td { background: color-mix(in srgb, var(--nhan-nen) 45%, transparent); }
.tkqc-bang tr.tkqc-vua-luu > td { background: var(--tot-nen); }

/* ─── Nhật ký thay đổi (23/10/2026): 20 dòng / trang; Chi tiết JSON cắt 2 dòng, đủ ở title ─── */
.nk-bang td { padding-top: 4px; padding-bottom: 4px; vertical-align: middle; }
.nk-luc { white-space: nowrap; font-variant-numeric: tabular-nums; }
.nk-bang .nk-chi-tiet { min-width: 240px; }
.nk-chi-tiet .cat-chu { overflow-wrap: anywhere; word-break: break-word; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 11.5px; color: var(--chu-phu); max-width: 640px; }

@media (max-width: 760px) {
  .khung { padding: 0 16px; }
  .dau-trang__trong { flex-wrap: wrap; gap: 8px 12px; min-height: 0; padding-top: 12px; }
  .ten-trang { order: 1; }
  .tai-khoan { order: 2; margin-left: auto; }
  /* 04/11/2026: menu còn ≤ 5 mục — xuống dòng thay vì cuộn ngang (khung cuộn cắt mất menu xổ) */
  .dieu-huong { order: 3; flex: 1 1 100%; flex-wrap: wrap; padding: 2px 0 8px; }
  .dieu-huong a, .dieu-huong .dh-nhom__nut { padding: 6px 12px; }       /* 6 + 20 + 6 = hàng 32 */
  .dh-nhom__ds a { min-height: 44px; }
  .dh-nhom:last-child .dh-nhom__ds { left: auto; right: 0; }    /* nhóm cuối hàng: mở về bên trái */
  main.khung { padding-top: 16px; }
  h1 { font-size: 22px; }
  .the-khoi { padding: 16px; }
  .kpi { padding: 16px; gap: 8px 12px; }
  .luoi-kpi { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .bieu-do { height: 260px; }
  .tt-luoi { grid-template-columns: minmax(0, 1fr); }
  .tkqc-loc .tkqc-tim { flex-basis: 100%; max-width: none; }
  .tkqc-loc select { flex: 1 1 0; min-width: 0; }
  .tkqc-loc select, .tkqc-loc input, .tkqc-bang select, .tt-o input { min-height: 44px; font-size: 16px; }
  .tkqc-luu .nut--nho, .tt-token__form .nut { min-height: 44px; }
  .tkqc-o-hop input { width: 22px; height: 22px; }
  .tkqc-tk { min-width: 160px; max-width: 190px; }        /* tên cắt "…" (đủ ở title) để ô chọn bên lọt khung */
  .tt-token__form .nut { flex: 1 1 100%; }
}
@media (max-width: 480px) {
  .ten-trang__chu { display: none; }
  .ten-trang:only-child .ten-trang__chu { display: inline; }    /* trang đăng nhập: không có menu */
}
@media (prefers-reduced-motion: reduce) {
  details > summary::before { transition: none; }
}
@media (forced-colors: active) {
  .the, .nut, .goi-y, .muc__so { border: 1px solid CanvasText; }
}

/* ─── Quảng cáo: màu nền tảng + dải trạng thái đồng bộ (20/10/2026) ───
   Màu nền tảng quảng cáo đi theo token nền tảng chung (--nt-*): TikTok mực đậm (tối: sáng), Meta xanh
   Facebook — cùng màu ở chấm, thanh tỉ trọng, cột biểu đồ. Dải trạng thái: một hàng mảnh, KHÔNG số. */
:root { --qc-tiktok: var(--nt-tiktok); --qc-meta: var(--nt-facebook); }
.qc-cham { display: inline-block; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--qc-tiktok); }
.qc-cham--meta { background: var(--qc-meta); }

/* Điều khiển đồng bộ quảng cáo (trang Quảng cáo; thiết kế lại 20/10/2026): mỗi nền tảng một dòng — tên
   đầy đủ + một câu trạng thái bên trái, nút tách "Đồng bộ ngay | ▾" bên phải; chi tiết gập. Màu nền tảng chỉ ở
   chấm; chữ trạng thái lặng (chỉ lỗi mới đỏ, đang chạy / đã yêu cầu màu nhấn). */
.dai-qc { margin: 0 0 16px; padding: 12px 16px; border: 1px solid var(--vien); border-radius: var(--bo); background: var(--be-mat); font-size: 13px; color: var(--chu-phu); font-variant-numeric: tabular-nums; }
.dai-qc__dau { display: flex; align-items: center; gap: 8px; min-height: 32px; }
.dai-qc__ten { margin: 0; font-size: 13px; font-weight: 500; color: var(--tieu-de); }
.dai-qc__ca { margin: 0 0 0 auto; }
.dai-qc__ds { margin: 8px 0 0; padding: 0; list-style: none; }
.dai-qc__dong { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 8px 16px; padding: 8px 0; border-top: 1px solid var(--ke); }
.dai-qc__trai { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 12px; min-width: 0; flex: 1 1 320px; padding-top: 4px; }
.dai-qc__nen { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; color: var(--chu); min-width: 150px; }
.dai-qc__cau { color: var(--chu-phu); }
.dai-qc__cau--co_loi { color: var(--loi); font-weight: 500; }
.dai-qc__cau--dang_chay, .dai-qc__cau--da_yeu_cau { color: var(--nhan-dam); font-weight: 500; }
.dai-qc__cau--chua_ket_noi { color: var(--chu-mo); }
.dai-qc__ct { font-size: 12.5px; }
.dai-qc__ct > summary { font-weight: 500; font-size: 12.5px; }
.dai-qc__ct[open] > summary { margin-bottom: 4px; }
.dai-qc__ct dl { display: flex; flex-wrap: wrap; gap: 2px 16px; margin: 0; flex-basis: 100%; }
.dai-qc__ct[open] { flex-basis: 100%; }
.dai-qc__ct dl div { display: flex; gap: 4px; min-width: 0; }
.dai-qc__ct dt { color: var(--chu-mo); }
.dai-qc__ct dt::after { content: ":"; }
.dai-qc__ct dd { margin: 0; color: var(--chu); overflow-wrap: anywhere; }
/* 23/10/2026: lý do nút khoá vào (i) cạnh nút — một hàng thay dòng chữ dưới nút */
.dai-qc__phai { display: flex; align-items: center; gap: 8px; flex: none; max-width: 100%; }
.dai-qc__tach { display: inline-flex; position: relative; }
.dai-qc__chinh { margin: 0; }
.dai-qc__chinh .nut { gap: 8px; }
.dai-qc__chinh:not(:last-child) .nut { border-top-right-radius: 0; border-bottom-right-radius: 0; }
.dai-qc .bt { width: 15px; height: 15px; }
.dai-qc__them > summary.nut { margin: 0; padding: 4px 8px; border-left: 0; border-top-left-radius: 0; border-bottom-left-radius: 0; color: var(--chu); }
.dai-qc__them > summary.nut::before { width: 6px; height: 6px; border-width: 0 2px 2px 0; transform: rotate(45deg) translate(-1px, -1px); }
.dai-qc__them[open] > summary.nut { margin-bottom: 0; background: var(--be-mat-2); }
.dai-qc__them[open] > summary.nut::before { transform: rotate(-135deg) translate(-1px, -1px); }
.dai-qc__menu { position: absolute; right: 0; top: calc(100% + 8px); z-index: 20; width: 260px; padding: 4px; border: 1px solid var(--vien); border-radius: var(--bo-the); background: var(--be-mat); box-shadow: var(--bong-noi); }
.dai-qc__menu form { margin: 0; }
.dai-qc__muc { display: flex; flex-direction: column; gap: 2px; width: 100%; padding: 8px 12px; border: 0; border-radius: var(--bo-nut); background: none; font: inherit; text-align: left; color: var(--chu); cursor: pointer; }
.dai-qc__muc:hover:not([disabled]) { background: var(--be-mat-2); }
.dai-qc__muc b { font-weight: 500; }
.dai-qc__muc span { font-size: 12px; color: var(--chu-mo); }
.dai-qc__muc[disabled] { cursor: not-allowed; }
.dai-qc__muc[disabled] b { color: var(--chu-mo); }
.dai-qc__an { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.dai-qc__xoay { animation: dai-qc-xoay 1.4s linear infinite; }
@keyframes dai-qc-xoay { to { transform: rotate(360deg); } }
@media (max-width: 640px) {
  .dai-qc { padding: 12px; }
  .dai-qc__dong { flex-direction: column; align-items: stretch; gap: 8px; padding: 12px 0; }
  .dai-qc__trai { flex-basis: auto; flex-direction: column; gap: 2px; }
  .dai-qc__tach { display: flex; flex: 1 1 auto; }
  .dai-qc__chinh { flex: 1 1 auto; }
  .dai-qc__chinh .nut, .dai-qc__them > summary.nut { min-height: 44px; }
  .dai-qc__chinh .nut { width: 100%; justify-content: center; }
  .dai-qc__them > summary.nut { padding: 4px 16px; }
  .dai-qc__menu { width: min(280px, calc(100vw - 48px)); }
  .dai-qc__ca .nut { min-height: 36px; }
}
@media (prefers-reduced-motion: reduce) {
  .dai-qc__xoay { animation: none; }
}

/* ─── Độ thu đủ — thẻ vận hành trang Quản trị (20/10/2026; trước là ô KPI trang Chỉ số) ─── */
.dp-ds { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.dp-o { display: flex; flex-direction: column; gap: 8px; min-width: 0; padding: 12px 16px; border: 1px solid var(--ke); border-radius: var(--bo-nut); background: var(--be-mat); }
.dp-o--canh { background: color-mix(in srgb, var(--canh-nen) 70%, var(--be-mat)); }
.dp-o--canh .dp-o__so b { color: var(--canh); }
.dp-o__dau { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.dp-o__ten { font-weight: 500; color: var(--chu); overflow-wrap: anywhere; }
.dp-o__so { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; font-variant-numeric: tabular-nums; }
.dp-o__so b { font-size: 24px; line-height: 1.15; font-weight: 600; color: var(--chu); }
.dp-o__phu { margin: 0; font-size: 12.5px; color: var(--chu-mo); }
.dp-o__sot > summary { cursor: pointer; font-size: 13px; color: var(--nhan); }
.dp-sot { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; font-size: 13px; }
.dp-sot li { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 8px; min-width: 0; overflow-wrap: anywhere; }

/* ─── thanh trang dùng chung (23/10/2026, chủ dự án: mọi bảng dài một kiểu như mẫu ‹ 1 2 3 4 5 6 … ›):
   ô vuông bo 8 có viền ≥ 36px (44px điện thoại; 13/11/2026 bước 2: bỏ ô tròn — là nút, bo theo cỡ nút),
   trang đang xem tô màu nhấn, hai đầu mờ khi hết trang;
   điện thoại gọn ‹ 3/150 ›. Máy chủ: macro `_phan_trang.html`; bảng nạp sẵn / JS: `PhanTrang` (chung.js). ─── */
.phan-trang { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; margin: 16px 0 0; }
.phan-trang__ds { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0; padding: 0; list-style: none; }
.phan-trang__o {
  position: relative; /* giữ chữ ẩn (.dai-qc__an) trong ô — không nới trang khi bảng cuộn ngang */
  display: inline-grid; place-items: center; min-width: 36px; height: 36px; padding: 0 8px; border-radius: var(--bo-nut);
  font: 500 13.5px/1 var(--phong); color: var(--chu-phu); text-decoration: none; font-variant-numeric: tabular-nums;
  border: 1px solid var(--ke); background: var(--be-mat); cursor: pointer; transition: background-color .15s ease-out, color .15s ease-out;
}
a.phan-trang__o:hover, button.phan-trang__o:hover { background: var(--be-mat-2); color: var(--chu); text-decoration: none; }
.phan-trang__o:focus-visible { outline: 2px solid var(--nhan); outline-offset: 2px; }
.phan-trang__o[aria-current="page"] { background: var(--nhan); border-color: var(--nhan); color: #fff; font-weight: 500; cursor: default; }
@media (prefers-color-scheme: dark) { .phan-trang__o[aria-current="page"] { color: #141415; } }
.phan-trang__ben { font-size: 18px; }
.phan-trang__ben[aria-disabled="true"], .phan-trang__ben:disabled { opacity: .4; cursor: not-allowed; background: var(--be-mat-2); }
.phan-trang__ba { display: inline-grid; place-items: center; min-width: 24px; height: 36px; color: var(--chu-mo); }
.phan-trang__gon { display: none; }
.phan-trang__dem { margin: 0; font-size: 12.5px; color: var(--chu-mo); font-variant-numeric: tabular-nums; }
@media (max-width: 640px) {
  .phan-trang { justify-content: center; }
  .phan-trang__so { display: none; }
  .phan-trang__gon { display: inline-grid; place-items: center; min-width: 72px; height: 44px; font-size: 14px; font-weight: 500; color: var(--chu); font-variant-numeric: tabular-nums; }
  .phan-trang__o { min-width: 44px; height: 44px; }
  .phan-trang__dem { flex-basis: 100%; text-align: center; }
}
@media (prefers-reduced-motion: reduce) { .phan-trang__o { transition: none; } }
@media (forced-colors: active) { .phan-trang__o { border: 1px solid CanvasText; } .phan-trang__o[aria-current="page"] { outline: 2px solid Highlight; } }
/* nhật ký: ô lọc theo hành động (23/10/2026) */
.nk-loc { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 0 0 12px; }
.nk-loc select { min-width: 240px; max-width: 100%; }
@media (max-width: 640px) { .nk-loc select { flex: 1 1 100%; min-height: 44px; } }
