/* =====================================================================
 * BẢN 60 – GIAO DIỆN CHUYÊN NGHIỆP, ĐỒNG NHẤT (chỉ CSS, không đổi logic)
 * Gỡ bản này: bỏ dòng nạp css/ui-60.css trong index.html.
 *
 * Nguyên tắc
 *   1. MỘT màu nhấn: cam cháy #BF550A – chỉ cho nút chính, mục đang chọn, chỗ cần chú ý.
 *      Xanh lá / đỏ / vàng chỉ để báo trạng thái (đạt, lỗi, cảnh báo). Bỏ xanh dương lạc tông.
 *   2. Tiêu đề màu mực (không cam), cùng một cỡ cho cùng một cấp.
 *   3. Nhãn viết thường đầu câu (tiếng Việt viết HOA cả chữ khó đọc).
 *   4. Nút thao tác trong bảng: nền trắng, biểu tượng có màu – bảng bớt rối.
 * ===================================================================== */

:root {
    --u6-or: #BF550A;  --u6-or-d: #9A4306;  --u6-tint: #FFF4EA;  --u6-tint-line: #F3D9C0;
    --u6-ink: #1F1B16; --u6-ink2: #4A4036;  --u6-mute: #7B6F63;  --u6-line: #E8E3DC;  --u6-paper: #FAF8F5;
    --u6-ok: #1E7F4F;  --u6-ok-bg: #EAF6EF; --u6-bad: #C0392B;   --u6-bad-bg: #FDEDEB;
    --u6-ring: 0 0 0 3px rgba(191, 85, 10, .16);
}

/* ---------------------------------------------------------------------
 * A. MỘT MÀU NHẤN – bỏ xanh dương mặc định của Bootstrap
 * ------------------------------------------------------------------- */
#appScreen .form-control:focus, #appScreen .form-select:focus,
.modal .form-control:focus, .modal .form-select:focus,
#appScreen input:focus-visible:not([type=checkbox]):not([type=radio]) {
    border-color: #E0A877 !important; box-shadow: var(--u6-ring) !important; outline: 0;
}
#appScreen .form-check-input:focus, .modal .form-check-input:focus { border-color: #E0A877; box-shadow: var(--u6-ring); }
#appScreen .btn:focus-visible, .modal .btn:focus-visible { box-shadow: var(--u6-ring) !important; }

/* công tắc chọn kiểu (Lọc theo ngày: Ngày vào làm / Ngày tính công; Phí theo công: Kỳ báo cáo / Tháng …) */
.lb-seg-o input:checked + span { background: var(--u6-or) !important; color: #fff !important; }
.lb-seg-o input:focus-visible + span { outline-color: rgba(191, 85, 10, .5) !important; }
.lb-seg-o span:hover { background: var(--u6-tint); }
.lb-seg-o input:checked + span:hover { background: var(--u6-or-d) !important; }

/* chọn nhanh kỳ tính phí (Phân tích → Phí theo công: Kỳ báo cáo / Tháng trước / Tháng này) */
.lb-feequick button.on { background: var(--u6-or) !important; color: #fff !important; }
.lb-feequick button:hover:not(.on) { background: var(--u6-tint) !important; }

/* Danh mục: mục đang chọn + nút Thêm – cam thương hiệu (trước là cam rực #ff8800 và xanh lá) */
.dm-cat.active { background: var(--u6-or) !important; box-shadow: 0 2px 8px rgba(191, 85, 10, .25) !important; }
.dm-cat:hover:not(.active) { background: var(--u6-tint) !important; }
#dmAddBtn { background: var(--u6-or) !important; border-color: var(--u6-or) !important; color: #fff !important; }
#dmAddBtn:hover { background: var(--u6-or-d) !important; border-color: var(--u6-or-d) !important; }

/* Công ty: bảng màu riêng của tab (12-cong-ty.js) → cùng tông thương hiệu */
body #tab-cty { --c1: #BF550A; --c2: #9A4306; --soft: #FFF4EA; }

/* khung Tài khoản ngân hàng (Nhập liệu) */
.bank-box { border: 1px dashed var(--u6-tint-line) !important; background: #FFFCF9 !important; }
.bank-box-title { color: var(--u6-ink2) !important; }
.bank-box-title .bi { color: var(--u6-or); }
.bank-qr-btn { border-color: var(--u6-tint-line) !important; color: var(--u6-or-d) !important; background: #fff !important; }
.bank-qr-btn:hover:not(:disabled) { background: var(--u6-or) !important; border-color: var(--u6-or) !important; color: #fff !important; }
.bank-box.qr-drop { outline-color: var(--u6-or) !important; background: var(--u6-tint) !important; }

/* công tắc "Tự chuyển ô" + khung form: cam rực → cam thương hiệu, viền nhẹ */
.vf-switch .form-check-input:checked { background-color: var(--u6-or) !important; border-color: var(--u6-or) !important; }
.vf-switch:has(.form-check-input:checked) { color: var(--u6-or-d) !important; }
#formSection {      /* trước: viền cam rực #ff8800, bo góc 2px – lệch hẳn các khung khác */
    border: 1px solid var(--u6-line) !important; border-radius: 18px !important;
    box-shadow: 0 1px 2px rgba(31, 27, 22, .05), 0 8px 24px rgba(31, 27, 22, .05) !important;
}
@media (min-width: 768px) { #formSection { padding: 10px 12px !important; } }
#tab-dm { border-radius: 18px !important; border-color: var(--u6-line) !important; box-shadow: 0 1px 2px rgba(31, 27, 22, .05), 0 8px 24px rgba(31, 27, 22, .05) !important; overflow: hidden; }
#formSection:hover, #formSection:focus-within { border-color: var(--u6-tint-line) !important; box-shadow: 0 4px 18px rgba(60, 40, 10, .07) !important; }

/* dòng đang chọn (Chọn nhiều) */
#dataTable tbody tr.bk-selected > td, #dataTable.ld-freeze tbody tr.bk-selected > td { background: #FFF1E3 !important; }

/* ---------------------------------------------------------------------
 * B. THANH TRÊN CÙNG (máy tính): 8 nút → 4 nút + menu ⋮
 *    Đổi mật khẩu, Vân tay, Giới thiệu nằm trong menu ⋮ (menu này đã có sẵn, điện thoại vẫn dùng).
 * ------------------------------------------------------------------- */
@media (min-width: 992px) {
    .lb-hdr-more { display: block !important; }
    .lb-hdr-btns > .btn[onclick^="lbOpenChangePass"],
    .lb-hdr-btns > .btn[onclick="lbOpenBio()"],
    .lb-hdr-btns > .btn[onclick="lbOpenAbout()"] { display: none !important; }
    .lb-hdr-menu li[data-for] { display: none !important; }     /* Tài khoản / Nhật ký đã có nút riêng */
    .lb-hdr-more > .btn { width: 36px; padding: 0 !important; }
    .lb-hdr-btns > .lb-hdr-more { order: 9; }            /* ⋮ đứng cuối, ngay trước Đăng xuất */
    .lb-hdr-btns > .lb-hdr-out { order: 10; }
    .lb-hdr-btns { gap: 6px; }
}

/* ---------------------------------------------------------------------
 * C. TIÊU ĐỀ – cùng một kiểu cho mọi tab (nền trắng, chữ màu mực, biểu tượng cam)
 * ------------------------------------------------------------------- */
/* Danh mục + Công ty: bỏ dải cam rực */
#tab-dm .dm-head, #tab-cty .cty-head {
    background: #fff !important; color: var(--u6-ink) !important;
    border-bottom: 1px solid var(--u6-line) !important; padding: 16px 20px !important;
}
#tab-dm .dm-head .modal-title, #tab-cty .cty-head h5 { color: var(--u6-ink) !important; font-size: 1.12rem !important; font-weight: 700 !important; }
#tab-dm .dm-head .bi, #tab-cty .cty-head h5 svg, #tab-cty .cty-head h5 .bi { color: var(--u6-or) !important; }
#tab-dm .dm-sub, #tab-cty .cty-sub { color: var(--u6-mute) !important; opacity: 1 !important; font-size: .8rem !important; }
#tab-cty .cty-hbtn { background: #fff !important; color: var(--u6-ink2) !important; border: 1px solid var(--u6-line) !important; }
#tab-cty .cty-hbtn:hover { background: var(--u6-tint) !important; border-color: var(--u6-tint-line) !important; color: var(--u6-or-d) !important; }
#tab-cty .cty-hbtn svg { color: var(--u6-or); }

/* Ứng lương */
#advanceCard > .card-header { background: #fff !important; border-bottom: 1px solid var(--u6-line) !important; }
#advanceCard > .card-header h5 { color: var(--u6-ink) !important; font-size: 1.12rem !important; font-weight: 700 !important; }
#advanceCard > .card-header h5 .bi { color: var(--u6-or) !important; }

/* Phân tích: tiêu đề khối màu mực */
#summaryCardInner > h6.text-primary, #tab-stats .card-title, #tab-stats h6.text-primary {
    color: var(--u6-ink) !important; font-weight: 700 !important;
}
#summaryCardInner > h6.text-primary { font-size: 1.12rem !important; }
#tab-stats .card-title .bi, #summaryCardInner > h6 .bi { color: var(--u6-or) !important; }

/* Bộ lọc dữ liệu (Danh sách) */
#filterSection .lb-filter-head h6 { color: var(--u6-ink) !important; font-weight: 700 !important; }

/* ---------------------------------------------------------------------
 * D. NHÃN VIẾT THƯỜNG ĐẦU CÂU (bỏ VIẾT HOA cả chữ) – dễ đọc tiếng Việt có dấu
 * ------------------------------------------------------------------- */
#dataTable thead th, .adv-lines thead th, .adv-ph-th, .an-kpi-label, .an-period-t,
.an-card table thead th, #summaryStats table thead th, .adv-tk-kv > span:nth-child(odd),
.lb-ab-sec h6, .adv-sec-t, .lbd-kicker, .a6-prog-t, .l6-og, .lb-tg-grp,
#advanceCard .a5-step-t, #advanceCard [class*="-lab"], #advanceCard .adv-stat-l, .ld-card .ld-cell .ld-lab, .ld-card .ld-row .ld-lab {
    text-transform: none !important; letter-spacing: 0 !important;
}
#dataTable thead th, .adv-lines thead th, .adv-ph-th, #summaryStats table thead th { font-size: .76rem !important; font-weight: 600 !important; color: var(--u6-mute) !important; }
.an-kpi-label { font-size: .76rem !important; font-weight: 600 !important; }
.an-period-t, .a6-prog-t, .adv-sec-t, .lb-ab-sec h6, .l6-og { font-size: .78rem !important; font-weight: 700 !important; }
.lb-tg-grp { font-size: .8rem !important; font-weight: 700 !important; color: var(--u6-ink2) !important; }
.ld-card .ld-cell .ld-lab, .ld-card .ld-row .ld-lab { font-size: .68rem !important; font-weight: 600; }

/* ---------------------------------------------------------------------
 * E. PHÂN TÍCH – thẻ số: chỉ tô màu khi màu mang nghĩa
 *    xanh lá = tốt/đang làm, đỏ = nghỉ/huỷ, cam = cần kiểm tra; còn lại trung tính
 * ------------------------------------------------------------------- */
.an-blue, .an-teal, .an-purple, .an-gray { --c: #D9CDBF !important; }
.an-kpi { box-shadow: none !important; }
.an-kpi:hover { border-color: var(--u6-tint-line) !important; }
.an-kpi-value { font-variant-numeric: tabular-nums; }

/* ---------------------------------------------------------------------
 * F. ỨNG LƯƠNG – bảng "Theo người": cột Số lần đủ chỗ cho nhãn tiền, không đè cột Gần nhất
 * ------------------------------------------------------------------- */
@media (min-width: 1200px) {
    .adv-ph-grid, .adv-ph-th { --advcols: 22px minmax(190px, 2fr) minmax(84px, .8fr) minmax(150px, 1.5fr) minmax(176px, 1.6fr) minmax(86px, .7fr) minmax(104px, .9fr) !important; }
}
@media (min-width: 769px) and (max-width: 1199px) {
    .adv-ph-grid, .adv-ph-th { --advcols: 20px minmax(118px, 1.4fr) minmax(58px, .6fr) minmax(92px, 1fr) minmax(128px, 1.3fr) minmax(92px, .8fr) minmax(78px, .7fr) !important; }
}
/* nhãn tiền theo bước: cùng màu với thanh Tiến độ chi (1 vàng cam · 2 đỏ · 3 tím) */
.badge.adv-b { font-weight: 600; border: 1px solid transparent; }
.badge.adv-b-pend { background: #FBF0DC !important; color: #8A5A0B !important; border-color: #F0D7A8 !important; }
.badge.adv-b-ck   { background: #FCEAE6 !important; color: #A8361F !important; border-color: #F3C8BE !important; }
.badge.adv-b-kt   { background: #F1EBFB !important; color: #5A35A6 !important; border-color: #D9CBF3 !important; }
#advanceCard .adv-stats.a6 .adv-stat-ktwait { --c: #6F42C1 !important; }      /* bước 3 về đúng màu tím của "Chờ KT chuyển" */
#advanceCard .adv-stat-ktwait::before { background: #6F42C1 !important; }
#advanceCard .adv-stat-l { font-size: .76rem !important; }

@media (min-width: 769px) and (max-width: 1199px) {
    .adv-person-head .adv-ph-main > .adv-av { display: none; }        /* màn trung bình: nhường chỗ cho tên */
    .adv-person-head .adv-name { line-height: 1.25; }
}
@media (min-width: 769px) {
    .adv-person-head .adv-ph-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; min-width: 0; }
    .adv-person-head .adv-ph-meta .badge { max-width: 100%; overflow: hidden; text-overflow: ellipsis; margin: 0 !important; }
    .adv-person-head .adv-ph-last { line-height: 1.3; }
    .adv-person-head .adv-total { font-variant-numeric: tabular-nums; }
}

/* ---------------------------------------------------------------------
 * G. DANH SÁCH – nút thao tác từng dòng: nền trắng, biểu tượng màu (máy tính)
 *    Sửa = mực · Đợt mới = cam · Ứng lương = xanh lá · Xoá = đỏ
 * ------------------------------------------------------------------- */
@media (min-width: 768px) {
    #dataTable td:last-child .btn[data-lb-act] {
        background: #fff !important; border: 1px solid var(--u6-line) !important; color: var(--u6-ink2) !important;
        box-shadow: none !important; transition: background .12s, border-color .12s, color .12s;
    }
    #dataTable td:last-child .btn[data-lb-act="newStint"] { color: var(--u6-or) !important; }
    #dataTable td:last-child .btn[data-lb-act="adv"] { color: var(--u6-ok) !important; }
    #dataTable td:last-child .btn[data-lb-act="del"] { color: var(--u6-bad) !important; }
    #dataTable td:last-child .btn[data-lb-act]:hover { background: var(--u6-tint) !important; border-color: var(--u6-tint-line) !important; color: var(--u6-or-d) !important; }
    #dataTable td:last-child .btn[data-lb-act="adv"]:hover { background: var(--u6-ok-bg) !important; border-color: #BFE3CD !important; color: var(--u6-ok) !important; }
    #dataTable td:last-child .btn[data-lb-act="del"]:hover { background: var(--u6-bad-bg) !important; border-color: #F2C2BC !important; color: var(--u6-bad) !important; }
}

/* ---------------------------------------------------------------------
 * H. NHẬP LIỆU – thanh "bắt buộc · Mặc định · Tự chuyển ô": nhãn trái, 2 nút gọn bên phải
 * ------------------------------------------------------------------- */
.req-note.vf-bar { justify-content: flex-end !important; gap: 14px !important; }
.req-note.vf-bar > .vf-note { margin-right: auto; }

@media (prefers-reduced-motion: reduce) {
    #dataTable td:last-child .btn[data-lb-act] { transition: none; }
}

/* =====================================================================
 * I. HỘP THOẠI – gọn, cân, không bị che (rà tự động 20 hộp ở 360px)
 * ===================================================================== */

/* I1. Bảng chọn trên điện thoại (#l6Sel) luôn nằm TRÊN hộp thoại (hộp thoại = 10050).
 *     16-mobile-51.js còn gắn bảng chọn vào ngay hộp thoại đang mở (để ô "Tìm nhanh" gõ được). */
#l6SelBack { z-index: 10090 !important; }
#l6Sel { z-index: 10100 !important; }

/* I2. Đầu hộp thoại: một kiểu cho mọi hộp – nền trắng, chữ màu mực (trước: xanh ngọc / đỏ đặc) */
.modal-header.bg-info, .modal-header.bg-primary, .modal-header.bg-success, .modal-header.bg-warning, .modal-header.bg-danger {
    background: #fff !important; color: var(--u6-ink) !important; border-bottom: 1px solid var(--u6-line) !important;
}
.modal-header.bg-info .modal-title, .modal-header.bg-primary .modal-title, .modal-header.bg-success .modal-title { color: var(--u6-ink) !important; font-weight: 700; }
.modal-header.bg-danger .modal-title { color: var(--u6-bad) !important; font-weight: 700; }
.modal-header[class*="bg-"] .btn-close { filter: none !important; opacity: .55; }
#advanceModal .modal-title { font-size: 1.05rem; line-height: 1.35; }
#advanceName { color: var(--u6-or-d); }

/* I3. Khung "Tài khoản nhận" (phiếu ứng): 2 hàng gọn
 *     hàng 1: 🏦 Tài khoản nhận ……………… [Quét QR]
 *     hàng 2: [✓ Đủ thông tin] theo hồ sơ lao động
 *     (trước: 4 thứ chen 1 hàng → chữ nguồn bị ép thành cột mỗi dòng 1 từ) */
.bank-box-title:has(> span.d-flex) {
    display: grid !important; grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "t t q" "c s s";
    align-items: center; column-gap: 8px; row-gap: 0;
}
.bank-box-title:has(> span.d-flex) > span:first-child { grid-area: t; white-space: nowrap; }
.bank-box-title > span.d-flex { display: contents !important; }
.bank-box-title > span.d-flex > .bank-qr-btn { grid-area: q; justify-self: end; white-space: nowrap; }
.bank-box-title > span.d-flex > .bank-state { grid-area: c; margin-top: 6px; white-space: nowrap; justify-self: start; }
.bank-box-title > span.d-flex > #advBankSrc { grid-area: s; margin-top: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.bank-box-title > span.d-flex > #advBankSrc:empty { display: none; }

/* I4. Ô chọn có chữ dài: cắt "…" thay vì đè lên mũi tên */
.form-select { text-overflow: ellipsis; white-space: nowrap; overflow: hidden; padding-right: 2.25rem !important; }

/* I5. Hộp thông tin xanh nhạt → nền trung tính (một màu nhấn) */
.modal .alert-info, #appScreen .alert-info { background: var(--u6-paper) !important; border-color: var(--u6-line) !important; color: var(--u6-ink2) !important; }
.lb-scope-bar.info { background: var(--u6-paper) !important; border-color: var(--u6-line) !important; color: var(--u6-ink2) !important; }
.lb-scope-bar.info > i { color: var(--u6-or) !important; }

/* I6. Điện thoại: bảng trong hộp thoại → dạng thẻ (không phải vuốt ngang, không cột nào bị đẩy ra ngoài) */
@media (max-width: 576px) {
    /* --- Dữ liệu cần kiểm tra: Mã · Họ tên · Công ty · Ngày vào · Trạng thái · Vấn đề · [Sửa] --- */
    #anIssuesModal .table-responsive, #personViewModal .table-responsive, #ccTable .table-responsive { overflow: visible !important; }
    #anIssuesModal table thead, #personViewModal table thead, #ccTable table thead { display: none; }
    #anIssuesModal table, #anIssuesModal tbody, #personViewModal table, #personViewModal tbody, #ccTable table, #ccTable tbody { display: block; width: 100%; }
    #anIssuesModal tbody tr {
        position: relative; display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 8px; row-gap: 4px;
        padding: 11px 2px; border-bottom: 1px solid var(--u6-line);
    }
    #anIssuesModal tbody td { display: block; border: 0 !important; padding: 0 !important; background: transparent !important; box-shadow: none !important; font-size: .8rem; color: var(--u6-mute); }
    #anIssuesModal tbody td:nth-child(2) { order: -1; flex: 0 0 100%; padding-right: 76px !important; font-size: .95rem; font-weight: 700; color: var(--u6-ink); }
    #anIssuesModal tbody td:nth-child(1) { font-weight: 600; color: var(--u6-ink2); }
    #anIssuesModal tbody td:nth-child(1):empty { display: none; }
    #anIssuesModal tbody td:nth-child(4)::before, #anIssuesModal tbody td:nth-child(5)::before { content: "·"; margin-right: 8px; color: #C9BEB2; }
    #anIssuesModal tbody td:nth-child(6) { flex: 0 0 100%; margin-top: 2px; }
    #anIssuesModal tbody td:nth-child(6) .badge { white-space: normal; text-align: left; line-height: 1.35; margin: 2px 4px 0 0; }
    #anIssuesModal tbody td:last-child { position: absolute; right: 2px; top: 10px; }

    /* --- Danh sách theo người: ▸ · Mã · Họ tên · Số đợt · Công ty gần nhất · Tình trạng --- */
    #personViewModal tbody tr.pv-row {
        position: relative; display: flex; flex-wrap: wrap; align-items: center; column-gap: 8px; row-gap: 5px;
        padding: 10px 4px 10px 24px; border-bottom: 1px solid var(--u6-line);
    }
    #personViewModal tbody tr.pv-row > td { display: block; border: 0 !important; padding: 0 !important; background: transparent !important; box-shadow: none !important; font-size: .8rem; }
    #personViewModal tbody tr.pv-row > td:nth-child(1) { position: absolute; left: 4px; top: 13px; color: var(--u6-mute); }
    #personViewModal tbody tr.pv-row > td:nth-child(3) { order: -2; flex: 1 1 calc(100% - 104px); min-width: 0; font-size: .95rem; font-weight: 700; color: var(--u6-ink); }
    #personViewModal tbody tr.pv-row > td:nth-child(6) { order: -1; flex: 0 0 96px; text-align: right; }
    #personViewModal tbody tr.pv-row > td:nth-child(2) { color: var(--u6-ink2); }
    #personViewModal tbody tr.pv-row > td:nth-child(2):empty, #personViewModal tbody tr.pv-row > td:nth-child(2):is(:empty) { display: none; }
    #personViewModal tbody tr.pv-row > td:nth-child(5) { color: var(--u6-mute); }
    #personViewModal tbody tr:not(.pv-row):not(.d-none) { display: block; padding: 0 4px 10px 24px; border-bottom: 1px solid var(--u6-line); }
    #personViewModal tbody tr:not(.pv-row) > td { display: block; border: 0 !important; padding: 0 !important; }
    #personViewModal tbody tr:not(.pv-row) > td:first-child { display: none; }

    /* --- Chốt công: Các ngày đã chốt --- */
    #ccTable tbody tr {
        position: relative; display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 10px; row-gap: 2px;
        padding: 10px 0; border-bottom: 1px solid var(--u6-line);
    }
    #ccTable tbody td { display: block; border: 0 !important; padding: 0 !important; background: transparent !important; font-size: .8rem; }
    #ccTable tbody td:nth-child(1) { flex: 0 0 100%; padding-right: 110px !important; }
    #ccTable tbody td:nth-child(2) { color: var(--u6-ink2); }
    #ccTable tbody td:nth-child(3) { color: var(--u6-mute); text-align: left !important; }
    #ccTable tbody td:nth-child(3)::before { content: "·"; margin-right: 8px; color: #C9BEB2; }
    #ccTable tbody td:nth-child(3):empty { display: none; }
    #ccTable tbody td:last-child { position: absolute; right: 0; top: 9px; }
    #ccTable table.table-bordered { border: 0 !important; }
}

/* I7. Nút "Sửa" trong danh sách kiểm tra + nhãn cảnh báo: cùng kiểu nút trắng / nhãn nền nhạt như Danh sách */
#anIssuesModal [data-lb-act="edit"] { background: #fff !important; border: 1px solid var(--u6-line) !important; color: var(--u6-or-d) !important; font-weight: 600; }
#anIssuesModal [data-lb-act="edit"]:hover { background: var(--u6-tint) !important; border-color: var(--u6-tint-line) !important; }
#anIssuesModal .badge.text-bg-warning { background: #FBF0DC !important; color: #8A5A0B !important; border: 1px solid #F0D7A8; font-weight: 600; }

/* I8. Nhập nhiều người / Nhập từ Excel: tiêu đề cột viết thường đầu câu (CSS của 2 hộp này nạp bằng JS → dùng "body" để thắng) */
body .lbk-tbl thead th, body .imp-tbl thead th, body .lbk-pop .lbk-pt, body .lbk-shm-g label,
body .lbk-tbl td[data-label]::before, body .lbk-ghs { text-transform: none !important; letter-spacing: 0 !important; }

/* I9. Ngày chốt lương → bảng "lịch các kỳ" (trong Cài đặt tự động tính kỳ): gọn trên điện thoại */
@media (max-width: 576px) {
    #advPaidModal details .table-responsive { overflow: visible !important; }
    #advPaidModal details .table-responsive thead { display: none; }
    #advPaidModal details .table-responsive table, #advPaidModal details .table-responsive tbody { display: block; width: 100%; border: 0 !important; }
    #advPaidModal details .table-responsive tr {
        display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 8px; row-gap: 4px;
        padding: 9px 2px; border-width: 0 0 1px 0 !important; border-style: solid !important; border-color: var(--u6-line) !important;
    }
    #advPaidModal details .table-responsive td { display: block; border: 0 !important; padding: 0 !important; background: transparent !important; font-size: .8rem; line-height: 1.35; color: var(--u6-ink2); }
    #advPaidModal details .table-responsive td:first-child { grid-column: 1 / -1; font-weight: 700; color: var(--u6-ink); }
    #advPaidModal details .table-responsive td:nth-child(n+2)::before { display: block; font-size: .7rem; color: var(--u6-mute); font-weight: 500; }
    #advPaidModal details .table-responsive td:nth-child(2)::before { content: "Chốt lương"; }
    #advPaidModal details .table-responsive td:nth-child(3)::before { content: "Ngày ứng cuối"; }
    #advPaidModal details .table-responsive td:nth-child(4)::before { content: "Ngày cần hỏi"; }
}
