/* ═══════════════ GIAO DIỆN ĐIỆN THOẠI (29/10) ═══════════════
 * Luật CHUNG cho màn cảm ứng: áp khi <html data-tb="dt"> (điện thoại) hoặc "tb" (máy tính bảng) — thietbi.js tự nhận biết, hoặc người dùng chọn tay.
 * Máy tính bảng viết đè phần riêng ở may-tinh-bang.css (nạp SAU file này). Máy tính (pc) không đọc dòng nào trong file này. Phần JS đi kèm: giaodiendt.js.
 * Thứ tự lớp chồng: thanh đáy 140 < bảng Tất cả 146 < hộp thoại (.man) 150.
 */

/* Ngoài điện thoại: các khối riêng của điện thoại luôn ẩn. */
.tb-day, .tb-tatca, .tb-tieu-de, .tb-cong-cu { display: none; }
html:not([data-tb="dt"]) .tb-loc-nut, html:not([data-tb="dt"]) .hop-lon__dau .tb-them { display: none !important; }

/* ───────────── Khung chung ───────────── */
html:is([data-tb="dt"], [data-tb="tb"]) body:not(.chua-dang-nhap) { padding-bottom: calc(66px + env(safe-area-inset-bottom)); }
html:is([data-tb="dt"], [data-tb="tb"]) body.tb-khoa-cuon { overflow: hidden; }
/* Chữ đủ to, nút đủ to cho ngón tay (tối thiểu 40px). */
html:is([data-tb="dt"], [data-tb="tb"]) body { -webkit-text-size-adjust: 100%; }
html:is([data-tb="dt"], [data-tb="tb"]) .nut { min-height: 40px; }
html:is([data-tb="dt"], [data-tb="tb"]) .nut--nho { min-height: 36px; }
html:is([data-tb="dt"], [data-tb="tb"]) input, html:is([data-tb="dt"], [data-tb="tb"]) select, html:is([data-tb="dt"], [data-tb="tb"]) textarea { font-size: 16px; }   /* 16px: iPhone không tự phóng to khi bấm vào ô */

/* Bảng làm việc: bỏ khối giới thiệu, bỏ thanh tab cũ (đã có thanh đáy), sát lề hơn. */
html:is([data-tb="dt"], [data-tb="tb"]) #lam-viec .section__dau { display: none; }
html:is([data-tb="dt"], [data-tb="tb"]) #lam-viec { padding-top: 10px; }
html:is([data-tb="dt"], [data-tb="tb"]) #lam-viec > .boc { padding-left: 10px; padding-right: 10px; }
html:is([data-tb="dt"], [data-tb="tb"]) #lvChon, html:is([data-tb="dt"], [data-tb="tb"]) #lvHang { display: none !important; }

/* ───────────── Thanh đầu trang: tên màn đang mở ───────────── */
html:is([data-tb="dt"], [data-tb="tb"]) body:not(.chua-dang-nhap) .logo__chu,
html:is([data-tb="dt"], [data-tb="tb"]) body:not(.chua-dang-nhap) .logo__phu { display: none; }
html:is([data-tb="dt"], [data-tb="tb"]) body:not(.chua-dang-nhap) .tb-tieu-de {
  display: block; flex: 1 1 auto; min-width: 0; margin: 0 6px;
  font-size: 17px; font-weight: 800; color: var(--chu);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
html:is([data-tb="dt"], [data-tb="tb"]) .dongho { display: none; }

/* ───────────── 1. Thanh tab đáy ───────────── */
html:is([data-tb="dt"], [data-tb="tb"]) body:not(.chua-dang-nhap) .tb-day {
  display: grid; grid-template-columns: repeat(var(--tb-so, 5), minmax(0, 1fr));   /* --tb-so: số nút, giaodiendt.js đặt */
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 140;
  background: var(--nen-the); border-top: 1px solid var(--vien);
  box-shadow: 0 -4px 16px rgba(0, 0, 0, .07);
  padding-bottom: env(safe-area-inset-bottom);
}
.tb-day__nut {
  position: relative; min-width: 0; height: 62px; padding: 6px 2px 4px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  background: none; border: 0; font: inherit; font-size: 11px; font-weight: 600; color: var(--chu-mo);
  cursor: pointer; -webkit-tap-highlight-color: transparent;
}
.tb-day__nut:active { background: var(--nen-nhe); }
.tb-day__bieu { font-size: 22px; line-height: 1; }
.tb-day__chu { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 0 2px; }
.tb-day__nut.dang { color: var(--ngoc); font-weight: 800; }
.tb-day__nut.dang::before {
  content: ''; position: absolute; top: 0; left: 22%; right: 22%; height: 3px;
  border-radius: 0 0 3px 3px; background: var(--ngoc);
}
.tb-day__so {
  position: absolute; top: 4px; left: calc(50% + 6px);
  min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px;
  background: var(--do); color: #fff; font-size: 10.5px; font-weight: 800; line-height: 18px; text-align: center;
  box-shadow: 0 0 0 2px var(--nen-the);
}
/* Nút ❓ hướng dẫn nổi: góc PHẢI trên thanh đáy, nhỏ hơn, nằm DƯỚI hộp thoại (.man 150) — trước đây z 900 đè nút Hủy ở chân hộp. */
html:is([data-tb="dt"], [data-tb="tb"]) #hdNutHoi {
  bottom: calc(76px + env(safe-area-inset-bottom)) !important; left: auto !important; right: 10px !important;
  width: 38px !important; height: 38px !important; font-size: 18px !important; z-index: 139 !important; opacity: .92;
}

/* ───────────── 2. Bảng "Tất cả màn hình" (trượt từ đáy lên) ───────────── */
html:is([data-tb="dt"], [data-tb="tb"]) .tb-tatca.mo {
  display: flex; align-items: flex-end;
  position: fixed; inset: 0; z-index: 146; background: rgba(12, 18, 32, .5);
  animation: manHien .18s ease-out;
}
.tb-tatca__khung {
  width: 100%; max-height: 88vh; display: flex; flex-direction: column;
  background: var(--nen-the); border-radius: 18px 18px 0 0;
  padding: 8px 14px calc(12px + env(safe-area-inset-bottom));
  animation: truotLenDay .24s cubic-bezier(.2, .8, .2, 1);
}
.tb-tatca__khung::before {
  content: ''; align-self: center; width: 40px; height: 4px; border-radius: 2px; background: var(--vien-dam); margin-bottom: 8px;
}
.tb-tatca__dau { display: flex; align-items: center; justify-content: space-between; font-size: 17px; margin-bottom: 8px; }
.tb-tatca__x {
  width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--vien); background: var(--nen-nhe);
  font-size: 22px; line-height: 1; color: var(--chu); cursor: pointer;
}
.tb-tatca__tim { width: 100%; padding: 10px 12px; border-radius: 12px; margin-bottom: 10px; }
.tb-tatca__luoi {
  flex: 1 1 auto; min-height: 0; overflow-y: auto; -webkit-overflow-scrolling: touch;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; padding-bottom: 4px;
}
.tb-tatca__o {
  position: relative; min-height: 78px; padding: 10px 4px 8px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px;
  background: var(--nen-nhe); border: 1px solid var(--vien); border-radius: 14px;
  font: inherit; font-size: 12px; font-weight: 600; color: var(--chu); cursor: pointer; line-height: 1.25; text-align: center;
}
.tb-tatca__o:active { transform: scale(.97); }
.tb-tatca__o.dang { border-color: var(--ngoc); background: var(--ngoc-mo); color: var(--ngoc); }
.tb-tatca__bieu { font-size: 26px; line-height: 1; }
.tb-tatca__ten { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tb-tatca__o .tb-day__so { top: 6px; left: auto; right: 8px; }
.tb-tatca__chan { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 10px; }
.tb-tatca__chan .nut { width: 100%; font-size: 13.5px; padding-left: 6px; padding-right: 6px; }
.tb-chon-gd { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tb-chon-gd .nut { min-height: 52px; font-size: 15px; }

/* ───────────── 3. Thanh lọc / công cụ trên bảng ───────────── */
html:is([data-tb="dt"], [data-tb="tb"]) .btm-thanh { gap: 8px; }
html:is([data-tb="dt"], [data-tb="tb"]) .btm-thanh .btm-tim { flex: 1 1 100%; max-width: none; min-height: 42px; font-size: 16px; }
html:is([data-tb="dt"], [data-tb="tb"]) .btm-thanh .btm-cot { flex: 1 1 auto; max-width: none; min-height: 40px; }
html:is([data-tb="dt"], [data-tb="tb"]) .btm-thanh .nut { min-height: 38px; }
html:is([data-tb="dt"], [data-tb="tb"]) .tb-cong-cu { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 6px 0 10px; }
html:is([data-tb="dt"], [data-tb="tb"]) .tb-cong-cu--gop { display: contents; }
html:is([data-tb="dt"], [data-tb="tb"]) .tb-cong-cu .tb-sap { flex: 1 1 150px; width: auto; min-height: 38px; padding: 6px 10px; border-radius: 10px; }

/* Thanh lọc (ô tìm + nhiều ô chọn): ô tìm cả hàng, các ô chọn xếp lưới hai cột thay vì mỗi ô một dòng. */
html:is([data-tb="dt"], [data-tb="tb"]) .thanh-loc { display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; align-items: stretch; }
html:is([data-tb="dt"], [data-tb="tb"]) .thanh-loc > input, html:is([data-tb="dt"], [data-tb="tb"]) .thanh-loc > .o-tim, html:is([data-tb="dt"], [data-tb="tb"]) .thanh-loc > label { grid-column: 1 / -1; }
html:is([data-tb="dt"], [data-tb="tb"]) .thanh-loc > * { width: 100% !important; max-width: none !important; min-width: 0 !important; margin: 0 !important; }
html:is([data-tb="dt"], [data-tb="tb"]) .thanh-loc > select { min-height: 42px; padding: 6px 8px; font-size: 14.5px; text-overflow: ellipsis; }
html:is([data-tb="dt"], [data-tb="tb"]) .thanh-loc > .nut { min-height: 40px; }

/* Hàng nút lọc nhóm: một hàng vuốt ngang (giaodiendt.js gắn lớp tb-chip-hang khi hàng chỉ toàn nút). */
html:is([data-tb="dt"], [data-tb="tb"]) .tb-chip-hang {
  flex-wrap: nowrap !important; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none;
  gap: 8px; padding-bottom: 4px; scroll-snap-type: x proximity;   /* bỏ lề âm cũ: nó đẩy cả trang lắc ngang (Nhân sự) */
}
html:is([data-tb="dt"], [data-tb="tb"]) .tb-chip-hang::-webkit-scrollbar { display: none; }
html:is([data-tb="dt"], [data-tb="tb"]) .tb-chip-hang > * { flex: none !important; white-space: nowrap; scroll-snap-align: start; }
html:is([data-tb="dt"], [data-tb="tb"]) .tb-chip-ghi { margin: 2px 0 8px; font-size: 12.5px; line-height: 1.45; }

/* ───────────── 4. Bảng thành thẻ gọn ─────────────
 * Lớp tb-the do giaodiendt.js gắn cho bảng xem (không phải bảng nhập liệu). Mỗi dòng là một thẻ lưới HAI CỘT:
 * nhãn nhỏ nằm TRÊN giá trị. Ô đầu tiên = tiêu đề thẻ (to, đậm, cả hàng). Ô tích ở góc phải trên.
 * Ô dài / có nút trải cả hàng; ô chỉ có nút xuống cuối thẻ; ô trống ẩn đi. */
/* Khung thẻ tự dựng (không dựa vào luật cũ ≤699px của style.css — máy tính bảng và điện thoại xoay ngang rộng hơn mốc đó). */
html:is([data-tb="dt"], [data-tb="tb"]) .bang-boc:has(> .bang.tb-the) { overflow-x: visible; border: none; background: none; }
html:is([data-tb="dt"], [data-tb="tb"]) .bang.tb-the,
html:is([data-tb="dt"], [data-tb="tb"]) .bang.tb-the tbody,
html:is([data-tb="dt"], [data-tb="tb"]) .bang.tb-the tfoot { display: block; width: auto; }
html:is([data-tb="dt"], [data-tb="tb"]) .bang.tb-the thead { display: none; }
html:is([data-tb="dt"], [data-tb="tb"]) .bang.tb-the tbody tr { border: 1px solid var(--vien); background: var(--nen-the); }
html:is([data-tb="dt"], [data-tb="tb"]) .bang.tb-the tfoot tr { display: block; padding: 10px 14px; border-radius: 12px; background: var(--nen-2, var(--nen-nhe)); }
html:is([data-tb="dt"], [data-tb="tb"]) .bang.tb-the tfoot td { display: inline-block; border: 0; padding: 2px 8px 2px 0; }
html:is([data-tb="dt"], [data-tb="tb"]) .bang.tb-the td.bang__rong { display: block !important; text-align: center !important; }
html:is([data-tb="dt"], [data-tb="tb"]) .bang.tb-the tbody tr:not(.dt-nut-hang):not(.hang-nut-duoi) {
  display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 14px; row-gap: 10px; position: relative; grid-auto-flow: row dense;
  padding: 12px 14px; margin-bottom: 10px; border-radius: 14px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .05);
}
html:is([data-tb="dt"], [data-tb="tb"]) .bang.tb-the tbody tr.dong-chon { border-color: var(--ngoc); background: var(--ngoc-mo); }
html:is([data-tb="dt"], [data-tb="tb"]) .bang.tb-the td {
  display: block !important; padding: 0 !important; border: 0 !important; min-width: 0;
  text-align: left !important; font-size: 14px; line-height: 1.4; overflow-wrap: anywhere;
}
html:is([data-tb="dt"], [data-tb="tb"]) .bang.tb-the td + td { border-top: 0 !important; }
html:is([data-tb="dt"], [data-tb="tb"]) .bang.tb-the td[data-nhan]::before {
  display: block; content: attr(data-nhan); margin-bottom: 2px;
  font-size: 11.5px; font-weight: 600; color: var(--chu-mo); letter-spacing: .1px;
}
html:is([data-tb="dt"], [data-tb="tb"]) .bang.tb-the td[data-nhan] > * { text-align: left !important; }
html:is([data-tb="dt"], [data-tb="tb"]) .bang.tb-the td .hang-nut,
html:is([data-tb="dt"], [data-tb="tb"]) .bang.tb-the td[data-nhan] .hang-nut { justify-content: flex-start !important; flex-wrap: wrap; gap: 6px; }
html:is([data-tb="dt"], [data-tb="tb"]) .bang.tb-the td img { max-width: 100%; height: auto; }
html:is([data-tb="dt"], [data-tb="tb"]) .bang.tb-the td.so { font-variant-numeric: tabular-nums; font-weight: 600; }

html:is([data-tb="dt"], [data-tb="tb"]) .bang.tb-the td.tb-dau {
  grid-column: 1 / -1; font-size: 16px; font-weight: 800; color: var(--chu); padding-right: 40px !important;
}
html:is([data-tb="dt"], [data-tb="tb"]) .bang.tb-the td.tb-dau::before { font-size: 11px; font-weight: 600; }
html:is([data-tb="dt"], [data-tb="tb"]) .bang.tb-the td.tb-dau .nut, html:is([data-tb="dt"], [data-tb="tb"]) .bang.tb-the td.tb-dau .lienhe,
html:is([data-tb="dt"], [data-tb="tb"]) .bang.tb-the td.tb-dau .nho, html:is([data-tb="dt"], [data-tb="tb"]) .bang.tb-the td.tb-dau small { font-size: 13px; font-weight: 500; }
html:is([data-tb="dt"], [data-tb="tb"]) .bang.tb-the td.tb-rong { grid-column: 1 / -1; }
html:is([data-tb="dt"], [data-tb="tb"]) .bang.tb-the td.tb-nut { grid-column: 1 / -1; order: 99; padding-top: 8px !important; border-top: 1px dashed var(--vien) !important; }
html:is([data-tb="dt"], [data-tb="tb"]) .bang.tb-the td.tb-nut::before { display: none !important; }
html:is([data-tb="dt"], [data-tb="tb"]) .bang.tb-the td.tb-trong { display: none !important; }
html:is([data-tb="dt"], [data-tb="tb"]) .bang.tb-the td.tb-tich {
  position: absolute; top: 10px; right: 10px; width: auto !important; z-index: 1;
}
html:is([data-tb="dt"], [data-tb="tb"]) .bang.tb-the td.tb-tich::before { display: none !important; }
html:is([data-tb="dt"], [data-tb="tb"]) .bang.tb-the td.tb-tich input[type="checkbox"] { width: 24px; height: 24px; margin: 0; }
/* Nút trong thẻ: đủ to để bấm, không tràn ra ngoài mép. */
html:is([data-tb="dt"], [data-tb="tb"]) .bang.tb-the td .nut { min-height: 38px; width: auto; max-width: 100%; white-space: normal; }
html:is([data-tb="dt"], [data-tb="tb"]) .bang.tb-the td.tb-nut .nut { min-height: 36px; padding: 6px 11px; font-size: 13px; }
/* Khối nút xếp dọc (vd .sx-giao: Giao hàng / Giao & thu đủ) → xếp ngang, xuống dòng khi chật. */
html:is([data-tb="dt"], [data-tb="tb"]) .bang.tb-the td .sx-giao { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 6px; }
/* Nút ít dùng gom sau "⋯ Thêm" (giaodiendt.js gonNut). */
html:is([data-tb="dt"], [data-tb="tb"]) .bang.tb-the td.tb-nut .tb-an-them { display: none !important; }
html:is([data-tb="dt"], [data-tb="tb"]) .bang.tb-the td.tb-nut.tb-mo-them .tb-an-them { display: inline-flex !important; }
html:is([data-tb="dt"], [data-tb="tb"]) .bang.tb-the td.tb-nut .tb-them { order: 999; }
html:is([data-tb="dt"], [data-tb="tb"]) .bang.tb-the td.tb-nut.tb-mo-them .tb-them { order: 1000; }
html:is([data-tb="dt"], [data-tb="tb"]) .bang.tb-the td select { max-width: 100%; }

/* Dòng nút nằm RIÊNG dưới dòng chính (Dự toán, Hàng sẵn kho…): dính vào đáy thẻ phía trên. */
html:is([data-tb="dt"], [data-tb="tb"]) .bang.tb-the tr.dt-co-nut,
html:is([data-tb="dt"], [data-tb="tb"]) .bang.tb-the tr.co-hang-nut { margin-bottom: 0; border-bottom-left-radius: 0; border-bottom-right-radius: 0; border-bottom: 0; box-shadow: none; }
html:is([data-tb="dt"], [data-tb="tb"]) .bang.tb-the tr.dt-nut-hang,
html:is([data-tb="dt"], [data-tb="tb"]) .bang.tb-the tr.hang-nut-duoi {
  margin-top: 0; margin-bottom: 10px; padding: 0 14px 12px; border-top: 0;
  border-top-left-radius: 0; border-top-right-radius: 0;
}
html:is([data-tb="dt"], [data-tb="tb"]) .bang.tb-the tr.dt-nut-hang td,
html:is([data-tb="dt"], [data-tb="tb"]) .bang.tb-the tr.hang-nut-duoi td { padding: 8px 0 0 !important; border-top: 1px dashed var(--vien) !important; }

/* ═══════════════ Đợt 3 (29/10): rà từng màn — CHỈ điện thoại ═══════════════ */
/* Lưới ô số (Tổng hợp, CEO, Lịch làm việc…): 2 ô một hàng thay vì mỗi ô một hàng. Lưới biểu đồ (Dashboard) giữ một cột. */
html[data-tb="dt"] .luoi:has(> .sl), html[data-tb="dt"] .luoi:has(> .llv-bon-o),
html[data-tb="dt"] .mtct-the-hang { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
html[data-tb="dt"] .luoi > .sl, html[data-tb="dt"] .mtct-the { min-width: 0; padding: 10px 12px; }
html[data-tb="dt"] .sl__so { font-size: 19px; overflow-wrap: anywhere; }
html[data-tb="dt"] .mtct-the__so { font-size: 17px; overflow-wrap: anywhere; }
html[data-tb="dt"] .sl__ten, html[data-tb="dt"] .mtct-the__ten { font-size: 12px; line-height: 1.3; }

/* Dashboard: nhãn "Báo cáo theo:" / "Nhân viên:" cùng dòng với ô chọn của nó. */
html[data-tb="dt"] .thanh-bd:has(> b.nho + select):not(.tb-loc-gon) {
  display: grid !important; grid-template-columns: auto minmax(0, 1fr); gap: 8px 10px; align-items: center;
}
html[data-tb="dt"] .thanh-bd:has(> b.nho + select):not(.tb-loc-gon) > :not(b.nho):not(select) { grid-column: 1 / -1; justify-self: start; }
html[data-tb="dt"] .thanh-bd:has(> b.nho + select):not(.tb-loc-gon) > :empty { display: none; }
html[data-tb="dt"] .thanh-bd:has(> b.nho + select):not(.tb-loc-gon) > select { width: 100%; min-width: 0; }

/* Thanh lọc gói gọn (giaodiendt.js ganGoiLoc): chỉ ô tìm + 🔍 Lọc + ➕ Thêm, bấm Lọc mới bày các ô chọn. */
html[data-tb="dt"] .tb-loc-gon { display: flex !important; flex-wrap: wrap; gap: 8px; align-items: center; }
html[data-tb="dt"] .tb-loc-gon:not(.tb-loc-mo) > :not(.tb-loc-giu) { display: none !important; }
html[data-tb="dt"] .tb-loc-gon > input.tb-loc-giu { flex: 1 1 100%; min-width: 0; width: auto !important; max-width: none !important; min-height: 42px; }
html[data-tb="dt"] .tb-loc-gon > .tb-loc-nut { flex: 1 1 auto; }
html[data-tb="dt"] .tb-loc-gon > .nut.tb-loc-giu:not(.tb-loc-nut) { flex: 1 1 auto; }
html[data-tb="dt"] .tb-loc-gon.tb-loc-mo > select { flex: 1 1 calc(50% - 4px); min-width: 0; max-width: none !important; min-height: 42px; }
html[data-tb="dt"] .tb-loc-gon.tb-loc-mo > input:not(.tb-loc-giu) { flex: 1 1 calc(50% - 4px); min-width: 0; }
html[data-tb="dt"] .tb-an-ngan { display: none !important; }

/* Đoạn hướng dẫn dài: 2 dòng + "▾ Xem thêm". */
html[data-tb="dt"] .tb-ghi-gon:not(.tb-ghi-mo) {
  display: -webkit-box !important; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
html[data-tb="dt"] .tb-ghi-gon:not(.tb-ghi-mo) br { display: none; }
.tb-ghi-nut { display: none; }
html[data-tb="dt"] .tb-ghi-nut {
  display: inline-block; margin: -2px 0 10px; padding: 4px 2px; border: 0; background: none;
  font: inherit; font-size: 13px; font-weight: 700; color: var(--ngoc); cursor: pointer;
}

/* Hàng nút đầu màn: nút ít dùng gom sau "⋯ Thêm" (gonNut, lớp tb-gon). */
html[data-tb="dt"] .hop-lon__dau .hang-nut.tb-gon:not(.tb-mo-them) .tb-an-them { display: none !important; }
html[data-tb="dt"] .hop-lon__dau .hang-nut.tb-gon .tb-them { order: 999; }

/* Lịch trực Hotline: xem từng ngày (data-tbngay = số thứ tự cột đang xem, giaodiendt.js ganNgayHotline). */
.tb-ngay-hl { display: none; }
html[data-tb="dt"] .tb-ngay-hl { display: flex; margin: 4px 0 10px; }
html[data-tb="dt"] table.th-luoi[data-tbngay] { width: 100% !important; min-width: 0 !important; }
html[data-tb="dt"] table.th-luoi[data-tbngay="2"] tr > :not(:first-child):not(:nth-child(2)),
html[data-tb="dt"] table.th-luoi[data-tbngay="3"] tr > :not(:first-child):not(:nth-child(3)),
html[data-tb="dt"] table.th-luoi[data-tbngay="4"] tr > :not(:first-child):not(:nth-child(4)),
html[data-tb="dt"] table.th-luoi[data-tbngay="5"] tr > :not(:first-child):not(:nth-child(5)),
html[data-tb="dt"] table.th-luoi[data-tbngay="6"] tr > :not(:first-child):not(:nth-child(6)),
html[data-tb="dt"] table.th-luoi[data-tbngay="7"] tr > :not(:first-child):not(:nth-child(7)),
html[data-tb="dt"] table.th-luoi[data-tbngay="8"] tr > :not(:first-child):not(:nth-child(8)) { display: none; }
html[data-tb="dt"] table.th-luoi[data-tbngay] tr > :first-child { width: 34%; }

/* ═══════════════ 30/10: tờ dự toán trên điện thoại ═══════════════ */
/* Chân hộp của tờ dự toán: nút đầu + nút cuối, các nút còn lại sau "⋯ Thêm" (giaodiendt.js ganNutChan). */
html[data-tb="dt"] .hop__chan.tb-gon:not(.tb-mo-them) .tb-an-them { display: none !important; }
html[data-tb="dt"] .hop__chan.tb-gon .tb-them { order: 999; flex: 0 0 auto; min-width: 0; }
html[data-tb="dt"] .hop__chan.tb-gon.tb-mo-them { flex-wrap: wrap; max-height: 40vh; overflow-y: auto; }
/* Thanh kết quả dính đáy gọn lại: chữ nhỏ, một khối thấp. */
html[data-tb="dt"] .dt-dinh { font-size: 12px; padding: 5px 8px; margin-top: 6px; }
html[data-tb="dt"] .dt-dinh b { font-size: 13px; }

/* 30/10: bảng nhập liệu trong hộp thoại dựng thẻ dọc (giaodiendt.js, lớp tb-nhap): ô gõ to, đủ rộng, chữ 16px để máy không tự phóng to. */
html:is([data-tb="dt"], [data-tb="tb"]) .bang.tb-the.tb-nhap td input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),
html:is([data-tb="dt"], [data-tb="tb"]) .bang.tb-the.tb-nhap td select,
html:is([data-tb="dt"], [data-tb="tb"]) .bang.tb-the.tb-nhap td textarea {
  width: 100% !important; max-width: none !important; min-width: 0 !important; min-height: 42px; box-sizing: border-box; font-size: 16px;
}
html:is([data-tb="dt"], [data-tb="tb"]) .bang.tb-the.tb-nhap td input[type="checkbox"] { width: 22px; height: 22px; }
