/* Giao diện phần nội bộ (Việc, Đề xuất, Bảng tin, Thông báo, Chấm công, Lương, thẻ Cài đặt nội bộ) – dùng biến, thành phần chung trong style.css.
   Màu trạng thái việc (đã kiểm mù màu, luôn kèm chữ): Mới giao #2a78d6, Đang làm #eb6834, Xong #1baf7a; quá hạn: chữ đỏ + biểu tượng cảnh báo. */

/* ================================================================ chung */
/* chữ nhạt của phần này: ≥ 4,75:1 trên mọi nền sáng dùng ở đây (trắng, #ebeff6 cột CN, #e9edf2 cột bảng…) */
:root { --nb-nhat: #5f6671; }
.nb-trang .thumbs:empty, .nb-trang .files:empty { display: none; }
.nb-tabs a .ic { width: 16px; height: 16px; opacity: .8; }
.nb-tabs .cnt { margin-left: 2px; }
.crumbs .ic { width: 14px; height: 14px; }
.crumbs a { display: inline-flex; align-items: center; gap: 5px; }
.crumbs > span:last-child { color: var(--ink); max-width: min(520px, 60vw); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mode .ic { width: 13px; height: 13px; }
.nut-tai { position: relative; }
.nut-tai.dang-tai { opacity: .75; pointer-events: none; }
.nut-tai.dang-tai .ic { animation: nbXoay 1s linear infinite; }
@keyframes nbXoay { to { transform: rotate(360deg); } }
.loi-o { display: flex; gap: 8px; align-items: flex-start; padding: 9px 12px; border-radius: 10px; background: var(--bad-soft); border: 1px solid var(--bad-line); color: var(--bad); font-size: 13px; font-weight: 600; }
.loi-o .ic { margin-top: 1px; }
.loi-o[hidden] { display: none !important; }
input.sai, textarea.sai, select.sai, .chips.sai, .kq-chon.sai, .inp.sai { border-color: var(--bad) !important; box-shadow: 0 0 0 3px rgba(198, 40, 40, .12); }
.chips.sai, .kq-chon.sai { border: 1px solid var(--bad); border-radius: 12px; padding: 6px; }
.loi-truong { display: flex; align-items: center; gap: 6px; margin-top: 5px; color: var(--bad); font-size: 12.5px; font-weight: 600; line-height: 1.4; }
.loi-truong .ic { width: 14px; height: 14px; flex: none; }
.thang-nav { display: inline-flex; align-items: center; gap: 4px; }
.thang-nav .inp { width: auto; min-height: 34px; padding: 4px 10px; font-weight: 600; }
.thang-nav .btn.small { min-height: 34px; padding: 4px 9px; }
.kpis.k5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.kpi .v small { font-size: 14px; color: var(--muted); font-weight: 600; margin-left: 2px; }
.card h2 small .ic { width: 14px; height: 14px; }
.nb-o, .bt-nut, .v-loc button, .ccn-nut, .vt-chuyen, .tick { -webkit-tap-highlight-color: transparent; }
:is(.vrow, .v-the, .dx-o, .dx-loai, .thb, .bt-tin, td.o):focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }

/* ô chọn có mũi tên (trong style.css ".inp", ".f select" đặt background: #fff nên mất mũi tên) – chỉ trong các trang của phần này */
:is(.nb-trang, .modal, #cd-noi-bo, .cd-qt) select:not([multiple]) { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23786d64' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 10px center; background-size: 16px; padding-right: 32px !important; }

/* ================================================================ VIỆC – thành phần */
.tt-pill { --m: #98a2b3; display: inline-flex; align-items: center; gap: 6px; padding: 2px 10px 2px 8px; border-radius: 999px; font-size: 12px; font-weight: 600; line-height: 1.6; white-space: nowrap;
  color: color-mix(in srgb, var(--m) 72%, #181b21); background: color-mix(in srgb, var(--m) 13%, #fff); border: 1px solid color-mix(in srgb, var(--m) 24%, #fff); }
.tt-pill i { width: 8px; height: 8px; border-radius: 50%; background: var(--m); flex: none; }
.uu { display: inline-flex; align-items: center; gap: 3px; font-size: 11.5px; font-weight: 700; padding: 0 7px 0 5px; border-radius: 6px; line-height: 20px; white-space: nowrap; flex: none; }
.uu .ic { width: 13px; height: 13px; }
.uu-gap { background: var(--bad-soft); color: var(--bad); }
.uu-cao { background: var(--warn-soft); color: var(--warn); }
.uu-thuong, .uu-thap { background: var(--grey-soft); color: var(--grey); }
.han-c { display: inline-flex; align-items: center; gap: 4px; font-size: 12.5px; color: var(--muted); white-space: nowrap; font-weight: 500; }
.han-c .ic { width: 14px; height: 14px; }
.han-c.qua { color: var(--bad); font-weight: 700; }
.han-c.nay { color: var(--warn); font-weight: 700; }
.han-c.gan { color: #a15c00; font-weight: 600; }
.han-c.xong, .han-c.khong { color: var(--nb-nhat); }
.dem-ic { display: inline-flex; align-items: center; gap: 3px; font-size: 12px; color: var(--muted); white-space: nowrap; }
.dem-ic .ic { width: 14px; height: 14px; }
.dem-ic.du { color: var(--ok); font-weight: 600; }
.ct-tag { display: inline-flex; align-items: center; gap: 4px; min-width: 0; max-width: 100%; padding: 1px 8px 1px 6px; border-radius: 7px; background: #ecf0f5; color: #485261;
  font-size: 11.5px; font-weight: 600; line-height: 20px; text-decoration: none; }
.ct-tag > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.ct-tag .ic { width: 13px; height: 13px; flex: none; opacity: .75; }
a.ct-tag:hover { background: var(--main-soft); color: var(--main-dark); }
.ct-tag.lon { font-size: 13px; padding: 3px 10px 3px 8px; line-height: 20px; }
.vr-so { color: var(--nb-nhat); font-weight: 500; font-size: 12px; white-space: nowrap; }

/* ---------------- danh sách việc */
.v-xem button .ic { width: 15px; height: 15px; }
.v-nhanh { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 10px; }
.v-nhanh .vn-o { display: flex; align-items: center; gap: 8px; min-height: 42px; padding: 0 10px 0 12px; border: 1px solid #d6dde7; border-radius: 11px; background: #fff; transition: border-color .12s, box-shadow .12s; }
.v-nhanh .vn-o:focus-within { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(0, 51, 153, .14); }
.v-nhanh .vn-o input, .v-nhanh .vn-o select { border: 0 !important; box-shadow: none !important; background-color: transparent; padding: 6px 0; min-height: 38px; min-width: 0; outline: 0; }
.v-nhanh .vn-ten { flex: 3 1 260px; }
.v-nhanh .vn-ten > .ic { color: var(--brand); }
.v-nhanh .vn-ten input { flex: 1; font-size: 14.5px; }
.v-nhanh .vn-ng { flex: 1 1 190px; }
.v-nhanh .vn-ng select { flex: 1; padding-right: 26px !important; background-position: right 0 center; }
.v-nhanh .vn-ng .av { box-shadow: none; }
.v-nhanh .vn-han { flex: 0 1 178px; color: var(--muted); }
.v-nhanh .vn-han input { width: 100%; }
.v-nhanh .btn { min-height: 42px; }
.v-thanh { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 14px; }
.v-thanh .v-tim { flex: 1 1 240px; max-width: 360px; padding-left: 36px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a69d95' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cpath d='m21 21-4.3-4.3'/%3E%3C/svg%3E") no-repeat 11px center / 16px; }
.v-thanh .v-ct { flex: 0 1 260px; width: auto; min-width: 0; max-width: 300px; }
.v-loc { display: flex; flex-wrap: wrap; gap: 6px; }
.v-loc button { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; min-height: 34px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--text);
  font-weight: 600; font-size: 12.5px; cursor: pointer; white-space: nowrap; transition: background .12s, border-color .12s; }
.v-loc button:hover { border-color: #c4cddb; background: var(--hover); }
.v-loc button b { font-variant-numeric: tabular-nums; color: var(--muted); font-weight: 700; }
.v-loc button .o { width: 9px; height: 9px; border-radius: 50%; background: var(--m); }
.v-loc button .ic { width: 14px; height: 14px; }
.v-loc button.qua { color: var(--bad); }
.v-loc button.on { background: var(--ink); border-color: var(--ink); color: #fff; }
.v-loc button.on b { color: #c8dcff; }
.v-loc button.on.qua { background: var(--bad); border-color: var(--bad); }
.v-kieu-bang .v-loc { display: none; }
.v-nhom { padding: 14px 10px 8px; }
.v-nhom > h2 { margin: 0 8px 8px; }
.v-nhom.qua > h2 > .ic { background: var(--bad-soft); color: var(--bad); }
.v-nhom.nay > h2 > .ic { background: var(--warn-soft); color: var(--warn); }
.v-nhom.tuan > h2 > .ic { background: var(--blue-soft); color: var(--blue); }
.v-nhom.sau > h2 > .ic { background: var(--grey-soft); color: var(--grey); }
.v-ds { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2px; }
.vrow { position: relative; min-width: 0; display: flex; align-items: center; gap: 12px; padding: 10px 10px; border-radius: 12px; cursor: pointer; transition: background .12s; color: inherit; text-decoration: none; }
.vrow + .vrow::before { content: ""; position: absolute; left: 52px; right: 10px; top: -1px; height: 1px; background: var(--line-soft); }
.vrow:hover { background: var(--hover); }
.vrow:hover + .vrow::before, .vrow:hover::before { opacity: 0; }
.vrow .tick { flex: none; width: 28px; height: 28px; border-radius: 50%; border: 2px solid #cbd2de; background: #fff; color: transparent; cursor: pointer; padding: 0; display: inline-flex; align-items: center; justify-content: center;
  transition: border-color .12s, background .12s, color .12s; }
.vrow .tick .ic { width: 15px; height: 15px; stroke-width: 3; }
.vrow .tick:hover:not(:disabled) { border-color: var(--ok); color: var(--ok); }
.vrow .tick.on { background: #1baf7a; border-color: #1baf7a; color: #fff; }
.vrow .tick:disabled { opacity: .4; cursor: default; }
.vrow > .o-tt { flex: none; margin: 0 9px; }
.vr-chinh { flex: 1 1 auto; min-width: 0; }
.vrow .t { display: flex; align-items: center; gap: 7px; min-width: 0; line-height: 1.4; }
.vrow .vr-ten { font-weight: 600; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.vrow.tt-xong .vr-ten, .vrow.tt-huy .vr-ten { color: var(--muted); text-decoration: line-through; text-decoration-color: #bac2cd; }
.vrow .m { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; margin-top: 4px; font-size: 12.5px; color: var(--muted); min-width: 0; }
.vrow .m .ct-tag { max-width: 340px; }
.vr-giao { white-space: nowrap; }
.vr-han { flex: 0 0 132px; display: flex; justify-content: flex-start; }
.vr-ng { flex: 0 0 82px; display: flex; justify-content: flex-end; }
.vr-tt { flex: 0 0 96px; display: flex; justify-content: flex-end; }
.vrow.qua { background: linear-gradient(90deg, rgba(198, 40, 40, .045), transparent 50%); }
.vrow.qua:hover { background: #fdf3f2; }

/* ---------------- bảng 3 cột kéo thả */
.v-bang { display: grid; grid-template-columns: repeat(3, minmax(260px, 1fr)); gap: 14px; align-items: start; overflow-x: auto; padding-bottom: 6px; }
.v-cot { --m: #98a2b3; min-width: 0; background: #e9edf2; border-radius: 16px; padding: 10px 8px 8px; min-height: 220px; border: 2px solid transparent; transition: background .15s, border-color .15s; }
.v-cot > header { display: flex; align-items: center; gap: 8px; padding: 4px 8px 10px; position: relative; }
.v-cot > header::after { content: ""; position: absolute; left: 8px; right: 8px; bottom: 2px; height: 3px; border-radius: 3px; background: var(--m); opacity: .85; }
.v-cot > header .o { width: 10px; height: 10px; border-radius: 50%; background: var(--m); box-shadow: 0 0 0 3px color-mix(in srgb, var(--m) 20%, transparent); }
.v-cot > header b { color: var(--ink); font-size: 14px; }
.v-cot > header .cnt { background: #fff; border-radius: 999px; padding: 0 9px; font-size: 12px; font-weight: 700; color: var(--muted); line-height: 21px; }
.v-cot-qh { margin-left: auto; display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 700; color: var(--bad); }
.v-cot-qh .ic { width: 14px; height: 14px; }
.v-cot-ds { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; padding-top: 6px; min-height: 120px; }
.v-cot-trong { border: 2px dashed #ccd3dd; border-radius: 12px; padding: 22px 10px; text-align: center; color: var(--nb-nhat); font-size: 12.5px; }
.v-xem-them { justify-self: center; margin: 4px 0; font-size: 12.5px; }
.v-bang.dang-keo .v-cot { border-color: rgba(0, 0, 0, .04); }
.v-cot.tha-vao { background: color-mix(in srgb, var(--m) 12%, #f0f3f8); border-color: color-mix(in srgb, var(--m) 55%, transparent); border-style: dashed; }
.v-the { position: relative; display: block; background: #fff; border-radius: 13px; padding: 11px 12px 10px; box-shadow: 0 1px 2px rgba(21, 24, 29, .08); border: 1px solid #e6ebf2; cursor: pointer;
  transition: box-shadow .15s, transform .15s, border-color .15s; }
.v-the:hover { box-shadow: var(--shadow-md); border-color: var(--main-line); transform: translateY(-1px); }
.v-the.keo-duoc { cursor: grab; }
.v-the.keo-duoc:active { cursor: grabbing; }
.v-the.dang-keo { opacity: .45; transform: rotate(1.5deg); }
.v-the.qua { border-color: #f6cfcb; box-shadow: inset 3px 0 0 var(--bad), 0 1px 2px rgba(21, 24, 29, .08); }
.vt-tren { display: flex; align-items: center; gap: 6px; min-height: 22px; }
.vt-tren .ct-tag { flex: 0 1 auto; }
.vt-trong { flex: 1; }
.vt-tren .uu { margin-left: auto; }
.vt-tren .ct-tag + .uu, .vt-trong + .uu { margin-left: auto; }
.vt-chuyen { margin-left: auto; display: inline-flex; align-items: center; gap: 3px; border: 1px solid var(--line); background: #fff; color: var(--muted); border-radius: 999px; padding: 0 9px 0 7px;
  min-height: 26px; font-size: 11.5px; font-weight: 700; cursor: pointer; white-space: nowrap; transition: background .12s, color .12s, border-color .12s; }
.vt-chuyen .ic { width: 13px; height: 13px; }
.vt-chuyen:hover { background: var(--main-soft); border-color: var(--main-line); color: var(--main-dark); }
.uu + .vt-chuyen { margin-left: 0; }
.vt-ten:first-child { margin-top: 0 !important; }
.vt-duoi .vt-chuyen { margin-left: 0; }
.vt-ten { margin: 7px 0 2px; font-weight: 600; color: var(--ink); line-height: 1.4; overflow-wrap: anywhere; }
.vt-vc { display: flex; align-items: center; gap: 8px; font-size: 11.5px; color: var(--muted); font-weight: 600; margin-top: 6px; }
.vt-vc .bar { flex: 1; margin: 0; height: 5px; }
.vt-vc .bar.ok > i { background: linear-gradient(90deg, #4ade80, #16a34a); }
.vt-duoi { display: flex; align-items: center; gap: 10px; margin-top: 9px; flex-wrap: wrap; }
.vt-duoi .spacer { min-width: 4px; }
.v-bang-goi { display: flex; align-items: center; gap: 6px; margin: 10px 2px 0; }
.v-bang-goi .ic { width: 15px; height: 15px; }
/* nút chuyển trạng thái luôn hiện (điện thoại, bàn phím); trên máy tính nhạt, rê chuột vào thẻ thì rõ */
.vt-chuyen { border-color: transparent; background: #f0f3f8; }
.v-the:hover .vt-chuyen, .v-the:focus-within .vt-chuyen { border-color: var(--line); background: #fff; color: var(--text); }

/* ---------------- chi tiết việc */
.vd { display: grid; grid-template-columns: minmax(0, 1fr) 350px; grid-template-rows: auto auto auto 1fr; grid-template-areas: "dau dau" "chinh info" "chinh ls" "chinh ."; gap: 0 16px; align-items: start; }
.vd > .vd-dau { grid-area: dau; }
.vd > .vd-info { grid-area: info; }
.vd > .vd-chinh { grid-area: chinh; min-width: 0; }
.vd > .vd-ls { grid-area: ls; }
.vd-dau { padding: 18px 22px 16px; position: relative; overflow: hidden; }
.vd-dau::before { content: ""; position: absolute; left: 0; top: 0; right: 0; height: 4px; background: var(--grad); opacity: .9; }
.vd-chip { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; }
.vd-chip .uu { line-height: 22px; font-size: 12px; }
.vd-dau h1 { margin: 10px 0 6px; font-size: 22px; line-height: 1.35; color: var(--ink); overflow-wrap: anywhere; }
.vd-so { color: var(--nb-nhat); font-weight: 500; font-size: 17px; }
.vd-nut { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line-soft); }
.vd-nut .spacer { flex: 1; }
.vd-tt { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 12px 10px; margin: 0; }
.vd-tt dt { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 12.5px; font-weight: 600; padding-top: 6px; }
.vd-tt dt .ic { width: 14px; height: 14px; }
.vd-tt dd { margin: 0; min-width: 0; padding-top: 4px; }
.vd-ngs { display: grid; gap: 8px; }
.vd-tt dd .qua-han { display: inline-flex; align-items: center; gap: 3px; margin-left: 6px; }
.vd-tt dd .qua-han .ic { width: 14px; height: 14px; }
.vd-info .nguoi .r { white-space: normal; }
.vd-mt { white-space: pre-wrap; line-height: 1.65; overflow-wrap: anywhere; }
.vd-mota .thumbs { margin-top: 12px; }
.vd-tien { display: flex; align-items: center; gap: 10px; margin: -4px 0 10px; }
.vd-tien .bar { flex: 1; margin: 0; }
.vd-tien b { font-size: 13px; color: var(--ink); font-variant-numeric: tabular-nums; min-width: 38px; text-align: right; }
.vc-ds { display: grid; }
.vc-o.check-row { gap: 11px; padding: 9px 6px; border-radius: 10px; border-bottom: 1px solid var(--line-soft); transition: background .12s; }
.vc-o.check-row:hover { background: var(--hover); }
.vc-o input[type=checkbox] { width: 20px; height: 20px; accent-color: #1baf7a; }
.vc-o .vc-t { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.vc-o.xong .vc-t { color: var(--muted); text-decoration: line-through; }
.vc-o .vc-ai .av { box-shadow: none; }
.vc-o .x-nho { opacity: .45; display: inline-flex; padding: 4px; border-radius: 7px; }
.vc-o:hover .x-nho { opacity: 1; }
.vc-o .x-nho:hover { background: var(--bad-soft); color: var(--bad); }
.vc-trong { padding: 8px 4px; }
.vc-them { display: flex; gap: 8px; margin-top: 10px; }
.vc-them .inp { flex: 1; min-width: 0; }
.bl-ds { display: grid; gap: 14px; margin-bottom: 14px; }
.bl-ds .bl, .bt-bl .bl { display: flex; gap: 10px; align-items: flex-start; background: none; border: 0; padding: 0; margin: 0; max-width: none; border-radius: 0; }
.bl .av { margin-top: 2px; }
.bl-o { min-width: 0; max-width: min(560px, 86%); background: #f0f3f8; border-radius: 4px 16px 16px 16px; padding: 9px 13px 10px; }
.bl .h { display: flex; align-items: baseline; gap: 8px; font-size: 12px; color: var(--muted); }
.bl .h b { color: var(--ink); font-size: 13px; }
.bl .t { white-space: pre-wrap; line-height: 1.55; margin-top: 3px; overflow-wrap: anywhere; color: var(--text); }
.bl .thumbs { margin: 8px 0 2px; }
.bl .thumbs a { width: 120px; height: 90px; }
.bl.toi { flex-direction: row-reverse; }
.bl.toi .bl-o { background: linear-gradient(135deg, #edf4ff, #deeaff); border-radius: 16px 4px 16px 16px; }
.bl.toi .h { justify-content: flex-end; }
.bl-xoa { margin-left: auto; border: 0; background: none; color: var(--nb-nhat); cursor: pointer; padding: 2px; border-radius: 6px; display: inline-flex; }
.bl-xoa:hover { color: var(--bad); background: var(--bad-soft); }
.bl.toi .bl-xoa { margin-left: 4px; order: -1; }
.bl-trong { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 13px; padding: 12px 14px; background: #f6f8fc; border-radius: 12px; }
.bl-trong .ic { color: var(--nb-nhat); flex: none; }
.bl-soan { display: flex; gap: 10px; align-items: flex-start; padding-top: 14px; border-top: 1px solid var(--line-soft); }
.bl-khung { flex: 1; min-width: 0; border: 1px solid #d1d8e2; border-radius: 14px; background: #fff; transition: border-color .12s, box-shadow .12s; }
.bl-khung:focus-within { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(0, 51, 153, .14); }
.bl-khung textarea { width: 100%; border: 0 !important; box-shadow: none !important; outline: 0; resize: vertical; min-height: 52px; padding: 10px 13px 4px; background: transparent; line-height: 1.55; display: block; }
.bl-khung .thumbs { margin: 4px 10px; }
.bl-khung .thumbs:empty { display: none; }
.bl-khung .thumbs a { width: 72px; height: 72px; }
.bl-nut { display: flex; align-items: center; gap: 8px; padding: 6px 8px 8px 10px; }
.bl-goi { margin-left: auto; font-size: 11.5px; }
.bl-nut .btn.primary { margin-left: 4px; }
.ls-ds { display: grid; }
.ls { position: relative; display: flex; gap: 11px; padding: 0 0 14px; }
.ls:not(:last-child)::before { content: ""; position: absolute; left: 13px; top: 28px; bottom: 2px; width: 2px; background: var(--line-soft); border-radius: 2px; }
.ls-ic { flex: none; width: 28px; height: 28px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--grey-soft); color: var(--grey); }
.ls-ic .ic { width: 14px; height: 14px; }
.ls-ic.ok { background: var(--ok-soft); color: var(--ok); } .ls-ic.cam { background: #fff1e6; color: #c2521f; } .ls-ic.xanh { background: var(--blue-soft); color: var(--blue); }
.ls-ic.vang { background: var(--sun-soft); color: #a15c00; }
.ls-nd { min-width: 0; padding-top: 3px; font-size: 13px; line-height: 1.45; overflow-wrap: anywhere; }
.ls-nd b { color: var(--ink); }
.ls-tg { font-size: 11.5px; color: var(--nb-nhat); margin-top: 1px; }

/* ---------------- giao việc / sửa việc */
.vf { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 0 16px; align-items: start; }
.vf-tai { gap: 8px; margin-top: 8px; }
.vf .chips { gap: 8px; }

/* ================================================================ ĐỀ XUẤT */
.dx-ic { flex: none; width: 36px; height: 36px; border-radius: 11px; display: inline-flex; align-items: center; justify-content: center; background: var(--grey-soft); color: var(--grey); }
.dx-ic .ic { width: 19px; height: 19px; }
.dx-ic.lon { width: 48px; height: 48px; border-radius: 14px; }
.dx-ic.lon .ic { width: 24px; height: 24px; }
.dx-ic.blue { background: var(--blue-soft); color: var(--blue); } .dx-ic.purple { background: var(--purple-soft); color: var(--purple); } .dx-ic.teal { background: var(--teal-soft); color: var(--teal); }
.dx-ic.sun { background: var(--sun-soft); color: #b77900; } .dx-ic.ok { background: var(--ok-soft); color: var(--ok); } .dx-ic.cam { background: var(--main-soft); color: var(--main); }
.dx-ic.rose { background: #fdf0f5; color: #b4235f; } .dx-ic.grey { background: var(--grey-soft); color: var(--grey); }
.dx-tren { display: grid; grid-template-columns: minmax(300px, 380px) minmax(0, 1fr); gap: 0 16px; align-items: stretch; margin-bottom: 4px; }
.dx-tren > .card { margin-bottom: 14px; }
.phep-vong { display: flex; align-items: center; gap: 18px; }
.phep-vong .donut .giua b { font-size: 24px; }
.phep-gt { flex: 1; min-width: 0; display: grid; gap: 8px; }
.phep-tong { font-size: 12.5px; color: var(--muted); }
.phep-tong b { color: var(--ink); }
.phep-sau { font-size: 12.5px; color: var(--ok); display: flex; gap: 6px; align-items: flex-start; }
.phep-sau:empty { display: none; }
.phep-sau .ic { width: 15px; height: 15px; flex: none; margin-top: 1px; }
.phep-sau.qua { color: var(--bad); font-weight: 600; }
.phep-sau.xam { color: var(--muted); }
.dx-o-ds { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.dx-o { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 12px; border: 1px solid var(--line-soft); background: #fafcff; text-decoration: none; color: inherit; min-width: 0;
  transition: border-color .12s, box-shadow .12s, background .12s, transform .12s; }
.dx-o:hover { border-color: var(--main-line); background: #fff; box-shadow: var(--shadow-md); transform: translateY(-1px); }
.dx-o b { min-width: 0; font-size: 13px; line-height: 1.3; color: var(--ink); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.dx-loc { margin-bottom: 12px; }
table.dx-bang td { padding-top: 12px; padding-bottom: 12px; }
.dx-t { display: flex; align-items: center; gap: 12px; min-width: 0; }
.dx-t-nd { min-width: 0; display: flex; flex-direction: column; line-height: 1.4; }
.dx-t-nd b { color: var(--ink); overflow-wrap: anywhere; }
.dx-t-nd span { font-size: 12.5px; color: var(--muted); }
.dx-c2 { white-space: nowrap; }
.dx-c2 .av { vertical-align: middle; margin-right: 8px; box-shadow: none; }
.dx-ten { display: inline-flex; flex-direction: column; vertical-align: middle; line-height: 1.3; }
.dx-ten b { font-weight: 600; color: var(--ink); font-size: 13px; }
.dx-luc-dt { display: none; font-size: 12px; color: var(--muted); }
.dx-c3 { color: var(--muted); white-space: nowrap; font-size: 13px; }
.dx-c4 { white-space: nowrap; font-variant-numeric: tabular-nums; }
.dx-c4 b { color: var(--ink); }
.dx-cho { display: flex; align-items: center; gap: 6px; margin-top: 5px; font-size: 12px; color: var(--muted); white-space: nowrap; }
.dx-cho .av { box-shadow: 0 0 0 1.5px #fff; }
.dx-chi { display: inline-flex; align-items: center; gap: 4px; margin-top: 5px; font-size: 12px; color: var(--ok); font-weight: 600; }
.dx-chi .ic { width: 14px; height: 14px; }
/* chi tiết đề xuất */
.dxd { display: grid; grid-template-columns: minmax(0, 1fr) 370px; grid-template-rows: auto 1fr; grid-template-areas: "dau ben" "bl ben"; gap: 0 16px; align-items: start; }
.dxd > .dx-dau { grid-area: dau; }
.dxd > .dxd-ben { grid-area: ben; min-width: 0; }
.dxd > .dxd-bl { grid-area: bl; }
.dx-dau { position: relative; overflow: hidden; padding: 20px 22px 16px; }
.dx-dau::before { content: ""; position: absolute; left: 0; top: 0; right: 0; height: 4px; background: var(--grad); opacity: .9; }
.dx-dau-tren { display: flex; gap: 14px; align-items: flex-start; }
.dx-dau-t { flex: 1; min-width: 0; }
.dx-loai-ten { font-size: 12px; color: var(--muted); font-weight: 600; letter-spacing: .02em; }
.dx-dau h1 { margin: 2px 0 0; font-size: 21px; line-height: 1.35; color: var(--ink); overflow-wrap: anywhere; }
.dx-ai { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin: 16px 0 4px; padding: 12px 14px; background: #f6f8fc; border-radius: 13px; }
.dx-ai .nguoi .r { white-space: normal; }
.dx-tien { text-align: right; }
.dx-tien span { display: block; font-size: 11.5px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .05em; }
.dx-tien b { font-size: 22px; color: var(--ink); font-variant-numeric: tabular-nums; }
.dx-tt { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 10px 18px; margin: 14px 0 0; }
.dx-tt dt { display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: 13px; }
.dx-tt dt .ic { width: 15px; height: 15px; }
.dx-tt dd { margin: 0; min-width: 0; }
.dx-nd { margin-top: 14px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line-soft); background: #fff; white-space: pre-wrap; line-height: 1.6; overflow-wrap: anywhere; }
.dx-dau .thumbs, .dx-dau .files { margin-top: 12px; }
.dx-dau .note { display: flex; gap: 8px; align-items: center; }
.dx-nut { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line-soft); }
.dx-buoc { list-style: none; margin: 0; padding: 0; display: grid; }
.dx-buoc li { position: relative; display: flex; gap: 12px; padding-bottom: 18px; }
.dx-buoc li:last-child { padding-bottom: 2px; }
.dx-buoc li:not(:last-child)::before { content: ""; position: absolute; left: 14px; top: 32px; bottom: 2px; width: 2px; border-radius: 2px; background: var(--line); }
.dx-buoc li.b-xong:not(:last-child)::before { background: #9fe0c3; }
.b-ic { flex: none; width: 30px; height: 30px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; position: relative; z-index: 1;
  background: #fff; color: var(--nb-nhat); border: 2px solid var(--line); }
.b-ic .ic { width: 15px; height: 15px; stroke-width: 2.6; }
.b-xong .b-ic { background: #1baf7a; border-color: #1baf7a; color: #fff; }
.b-gui .b-ic { background: var(--ok-soft); border-color: #9fe0c3; color: var(--ok); }
.b-dang .b-ic { background: #fff6e0; border-color: #eda100; color: #9a6300; box-shadow: 0 0 0 5px rgba(237, 161, 0, .16); }
.b-tuchoi .b-ic { background: var(--bad); border-color: var(--bad); color: #fff; }
.b-bo .b-ic { background: var(--grey-soft); border-color: #dfe3ea; color: #5d6676; }
.b-nd { flex: 1; min-width: 0; padding-top: 3px; }
.b-t { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; line-height: 1.4; }
.b-t b { color: var(--ink); font-size: 13.5px; }
.b-kq { font-size: 12px; font-weight: 700; color: var(--muted); }
.b-xong .b-kq { color: var(--ok); } .b-dang .b-kq { color: #9a6300; } .b-tuchoi .b-kq { color: var(--bad); } .b-bo .b-kq, .b-cho .b-kq { color: var(--nb-nhat); font-weight: 600; }
.b-gui .b-kq { color: var(--muted); font-weight: 500; }
.b-bo .b-t b, .b-cho .b-t b { color: var(--muted); }
.b-dang .b-nd { background: #fffaf0; border: 1px solid #f6dfa8; border-radius: 12px; padding: 8px 11px 9px; margin-top: -3px; }
.b-ng { display: flex; flex-wrap: wrap; gap: 5px 10px; margin-top: 5px; }
.b-n { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--text); }
.b-n .av { box-shadow: none; }
.b-tg { font-size: 11.5px; color: var(--nb-nhat); margin-top: 4px; }
.b-yk { display: flex; gap: 7px; align-items: flex-start; margin-top: 7px; padding: 7px 10px; border-radius: 10px; background: #f0f3f8; font-size: 13px; line-height: 1.5; }
.b-yk .ic { width: 14px; height: 14px; flex: none; margin-top: 3px; color: var(--muted); }
.b-tuchoi .b-yk { background: var(--bad-soft); color: #8f1d1d; }
/* tạo đề xuất */
.dx-form-dau { gap: 12px; }
.dxf { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(300px, 1fr); gap: 0 16px; align-items: start; }
.dx-songay > div { display: flex; align-items: baseline; gap: 8px; min-height: 40px; padding-top: 4px; }
.dx-songay b { font-size: 22px; color: var(--ink); font-variant-numeric: tabular-nums; }
.dx-songay small { font-size: 12px; }
.dx-heso > div { display: flex; align-items: baseline; gap: 8px; min-height: 40px; padding-top: 4px; flex-wrap: wrap; }
.dx-heso b { font-size: 22px; color: var(--purple); font-variant-numeric: tabular-nums; }
.dx-heso span { font-size: 12.5px; color: var(--muted); }
.dx-loai-ds { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.dx-loai { display: flex; align-items: center; gap: 14px; padding: 14px 14px; border: 1px solid var(--line-soft); border-radius: 14px; background: #fff; text-decoration: none; color: inherit;
  transition: border-color .12s, box-shadow .12s, transform .12s; }
.dx-loai:hover { border-color: var(--main-line); box-shadow: var(--shadow-md); transform: translateY(-1px); }
.dx-loai-nd { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.dx-loai-nd > b { color: var(--ink); font-size: 14.5px; }
.dx-loai-nd > span { font-size: 12.5px; color: var(--muted); }
.dx-loai-duyet { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; margin-top: 6px; font-size: 12px; color: var(--muted); }
.dx-loai-duyet > span { display: inline-flex; align-items: center; gap: 5px; }
.dx-loai-duyet .ic { width: 13px; height: 13px; }
.dx-loai-mui { color: var(--nb-nhat); }
.dx-chuoi .buoc-duyet { display: grid; gap: 0; }
.bd-o { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 12px; background: #f6f8fc; border: 1px solid var(--line-soft); }
.bd-so { flex: none; width: 24px; height: 24px; border-radius: 50%; background: var(--main-soft); color: var(--main); font-weight: 700; font-size: 12px; display: inline-flex; align-items: center; justify-content: center; }
.bd-nd { min-width: 0; display: flex; flex-direction: column; line-height: 1.35; }
.bd-nd b { color: var(--ink); font-size: 13.5px; }
.bd-nd span { font-size: 12px; color: var(--muted); }
.bd-mui { display: flex; justify-content: center; color: var(--nb-nhat); height: 18px; align-items: center; }
.bd-mui .ic { width: 15px; height: 15px; }

/* ================================================================ BẢNG TIN */
.bt-trang { display: grid; grid-template-columns: minmax(0, 760px) minmax(260px, 1fr); gap: 0 18px; align-items: start; }
.bt-trang.bt-ct { grid-template-columns: minmax(0, 800px) minmax(280px, 1fr); }
.bt-feed { min-width: 0; }
.bt-tin { padding: 18px 20px 12px; cursor: pointer; transition: box-shadow .15s, border-color .15s; }
.bt-tin:hover { box-shadow: var(--shadow-md); border-color: var(--main-line); }
.bt-tin.moi { box-shadow: inset 4px 0 0 var(--brand), var(--shadow); }
.bt-dau { display: flex; align-items: center; gap: 11px; }
.bt-ai { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.35; }
.bt-ai b { color: var(--ink); font-size: 14px; }
.bt-ai span { font-size: 12.5px; color: var(--muted); }
.bt-ghim { display: inline-flex; align-items: center; gap: 4px; padding: 2px 9px 2px 7px; border-radius: 999px; background: var(--sun-soft); color: #8a5a00; font-size: 12px; font-weight: 700; white-space: nowrap; }
.bt-ghim .ic { width: 13px; height: 13px; }
.bt-tieu { margin: 12px 0 6px !important; font-size: 18px !important; line-height: 1.35; }
.bt-tieu a { color: var(--ink); text-decoration: none; }
.bt-tieu a:hover { color: var(--main); }
.bt-tom { white-space: pre-line; color: var(--text); line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.bt-xemthem { font-weight: 600; text-decoration: none; }
.bt-anh1 { position: relative; display: block; margin: 12px 0 2px; border-radius: 14px; overflow: hidden; background: #e3e9f2; max-height: 340px; }
.bt-anh1 img { display: block; width: 100%; max-height: 340px; object-fit: cover; }
.bt-anh-n { position: absolute; right: 10px; bottom: 10px; display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 999px; background: rgba(14, 17, 21, .62); color: #fff; font-size: 12px; font-weight: 600; }
.bt-chan { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--line-soft); }
.bt-so { display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; color: var(--muted); }
.bt-so .ic { width: 15px; height: 15px; }
.bt-chan .btn { margin-left: auto; }
.bt-thich { display: inline-flex; align-items: center; gap: 6px; min-height: 34px; padding: 0 12px 0 10px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--muted);
  font-weight: 600; font-size: 12.5px; cursor: pointer; transition: background .12s, color .12s, border-color .12s; }
.bt-thich .ic { width: 15px; height: 15px; }
.bt-thich:hover { border-color: var(--main-line); color: var(--main-dark); background: var(--main-50); }
.bt-thich.on { color: var(--main); border-color: var(--main-line); background: var(--main-soft); }
.bt-thich.on .ic { fill: rgba(0, 51, 153, .18); }
.bt-dau .tag .ic { width: 13px; height: 13px; }
.bt-ben { min-width: 0; position: sticky; top: calc(var(--tbh) + 14px); }
.bt-ben-ok { display: flex; align-items: center; gap: 8px; color: var(--ok); font-weight: 600; font-size: 13px; }
.bt-bai { padding: 20px 24px 14px; }
.bt-bai .bt-tieu { margin: 16px 0 10px !important; font-size: 23px !important; color: var(--ink); }
.bt-nd { white-space: pre-wrap; font-size: 15px; line-height: 1.7; color: var(--text); overflow-wrap: anywhere; }
.bt-luoi { display: grid; gap: 4px; margin: 14px 0 4px; border-radius: 14px; overflow: hidden; }
.bt-luoi a { position: relative; display: block; background: #e3e9f2; overflow: hidden; }
.bt-luoi img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s; }
.bt-luoi a:hover img { transform: scale(1.03); }
.bt-luoi.n1 a { max-height: 520px; } .bt-luoi.n1 img { max-height: 520px; height: auto; }
.bt-luoi.n2 { grid-template-columns: 1fr 1fr; } .bt-luoi.n2 a { aspect-ratio: 1 / 1; }
.bt-luoi.n3 { grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; aspect-ratio: 3 / 2; } .bt-luoi.n3 a:first-child { grid-row: 1 / 3; }
.bt-luoi.n4 { grid-template-columns: 1fr 1fr; } .bt-luoi.n4 a { aspect-ratio: 4 / 3; }
.bt-them-anh { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(14, 17, 21, .5); color: #fff; font-size: 26px; font-weight: 700; }
.bt-bai .files { margin-top: 12px; }
.bt-tk { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin-top: 14px; padding: 10px 0 8px; border-bottom: 1px solid var(--line-soft); font-size: 12.5px; color: var(--muted); min-height: 20px; }
.bt-tk:empty { display: none; }
.bt-tk-o { display: inline-flex; align-items: center; gap: 6px; }
.bt-tk-o .ic { width: 15px; height: 15px; }
.bt-tk-o .avs { margin-left: 2px; }
.bt-hd { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 6px 0; border-bottom: 1px solid var(--line-soft); }
.bt-nut { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; border: 0; border-radius: 10px; background: transparent; color: var(--muted); font-weight: 600; cursor: pointer;
  transition: background .12s, color .12s; }
.bt-nut:hover { background: #eef2f8; color: var(--ink); }
.bt-nut.on { color: var(--main); }
.bt-nut.on .ic { fill: rgba(0, 51, 153, .18); }
.bt-bl { padding-top: 14px; }
.bt-ql { display: grid; gap: 8px; }
.bt-ql .btn { justify-content: flex-start; }
.bt-xem-bar { margin: 0 0 12px; }
.bt-nhom-t { font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--nb-nhat); font-weight: 700; margin: 12px 0 6px; }
.bt-da-xem { max-height: 340px; overflow: auto; }
.bt-soan-trang { max-width: 820px; }
.bt-soan > .bt-dau { margin-bottom: 14px; }
.bt-ghim-o span { display: inline-flex; align-items: center; gap: 6px; }
.bt-soan-anh { margin-top: 12px; }
.bt-soan-anh .thumbs:empty, .bt-soan-anh .files:empty { display: none; }

/* ================================================================ THÔNG BÁO */
.thb-trang { max-width: 880px; }
.thb-nhom { padding: 12px 10px 8px; }
.thb-nhom > h2 { margin: 2px 10px 6px; font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.thb-nhom > h2 small { text-transform: none; letter-spacing: 0; }
.tb-row.thb { position: relative; display: flex; gap: 13px; align-items: flex-start; padding: 11px 12px; border-radius: 12px; border-bottom: 0; text-decoration: none; color: inherit; background: none; transition: background .12s; }
.tb-row.thb + .tb-row.thb { margin-top: 2px; }
.tb-row.thb:hover { background: var(--hover); }
.tb-row.thb.moi { background: #f2f7ff; }
.tb-row.thb.moi:hover { background: #e8f1ff; }
.thb-av { position: relative; flex: none; }
.thb-he { background: linear-gradient(135deg, #3f75dd, #003399) !important; }
.thb-loai { position: absolute; right: -5px; bottom: -5px; width: 20px; height: 20px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; color: #fff; background: var(--grey); box-shadow: 0 0 0 2px #fff; }
.thb-loai .ic { width: 11px; height: 11px; stroke-width: 2.5; }
.thb-loai.ok { background: #1baf7a; } .thb-loai.purple { background: var(--purple); } .thb-loai.sun { background: #e3a008; } .thb-loai.teal { background: var(--teal); } .thb-loai.blue { background: var(--blue); }
.thb-nd { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.tb-row.thb .tb-t { font-size: 13.5px; line-height: 1.5; color: var(--text); overflow-wrap: anywhere; }
.tb-row.thb.moi .tb-t { font-weight: 600; color: var(--ink); }
.thb-tg { font-size: 12px; color: var(--muted); }
.thb-cham { flex: none; width: 9px; height: 9px; border-radius: 50%; background: var(--brand); margin-top: 7px; box-shadow: 0 0 0 3px rgba(0, 51, 153, .18); }
.thb-ghi { display: flex; align-items: center; gap: 8px; max-width: 880px; }

/* ================================================================ CHẤM CÔNG */
.ccn-the { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 18px 28px; align-items: center; padding: 22px 26px; position: relative; overflow: hidden;
  background: radial-gradient(120% 140% at 100% 0%, rgba(51, 112, 255, .09), transparent 55%), radial-gradient(80% 120% at 0% 100%, rgba(0, 51, 153, .06), transparent 60%), #fff; }
.ccn-ngay { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--main); }
.ccn-gio { font-size: 52px; font-weight: 700; line-height: 1.08; color: var(--ink); font-variant-numeric: tabular-nums; letter-spacing: -.02em; margin: 4px 0 8px; }
.ccn-gio small { font-size: 24px; color: var(--nb-nhat); font-weight: 600; margin-left: 2px; }
.ccn-tt-o { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; }
.ccn-tt { display: inline-flex; align-items: center; gap: 7px; padding: 5px 12px 5px 10px; border-radius: 999px; font-weight: 700; font-size: 13.5px; }
.ccn-tt .ic { width: 16px; height: 16px; }
.ccn-tt.xam { background: var(--grey-soft); color: #475467; }
.ccn-tt.xanh { background: var(--ok-soft); color: var(--ok); }
.ccn-tt.xong { background: var(--blue-soft); color: #1d4ed8; }
.ccn-tt.cam { background: #fff1e6; color: #b4480f; }
.ccn-da { font-size: 13px; color: var(--muted); font-weight: 600; }
.ccn-ca { display: grid; gap: 8px; margin-top: 16px; }
.ccn-ca-o { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; min-height: 30px; }
.ccn-ca-ic { width: 28px; height: 28px; border-radius: 9px; display: inline-flex; align-items: center; justify-content: center; background: var(--grey-soft); color: var(--grey); flex: none; }
.ccn-ca-ic.vao { background: var(--ok-soft); color: var(--ok); } .ccn-ca-ic.ra { background: #fff1e6; color: #c2521f; } .ccn-ca-ic.gio { background: var(--blue-soft); color: var(--blue); }
.ccn-ca-k { color: var(--muted); font-size: 13px; min-width: 56px; }
.ccn-ca-o > b { font-size: 16px; color: var(--ink); font-variant-numeric: tabular-nums; min-width: 52px; }
.ccn-chip { display: inline-flex; align-items: center; gap: 5px; max-width: 100%; padding: 2px 10px 2px 8px; border-radius: 999px; font-size: 12px; font-weight: 600; min-width: 0; }
.ccn-chip > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.ccn-chip .ic { width: 13px; height: 13px; flex: none; }
.ccn-chip.ok { background: var(--ok-soft); color: var(--ok); } .ccn-chip.ngoai { background: var(--warn-soft); color: var(--warn); } .ccn-chip.xam { background: var(--grey-soft); color: var(--grey); }
.ccn-phai { display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; }
.ccn-nut { --c1: #2bc48a; --c2: #12925f; --vong: rgba(27, 175, 122, .2); position: relative; width: 176px; height: 176px; border-radius: 50%; border: 0; cursor: pointer; color: #fff;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; background: radial-gradient(circle at 30% 25%, var(--c1), var(--c2) 70%);
  box-shadow: 0 14px 34px var(--vong), 0 0 0 10px var(--vong), inset 0 -6px 14px rgba(0, 0, 0, .12), inset 0 4px 10px rgba(255, 255, 255, .25); transition: transform .12s, box-shadow .2s; }
.ccn-nut.ra { --c1: #f59a4c; --c2: #d2541f; --vong: rgba(232, 105, 44, .2); }
.ccn-nut:hover { transform: translateY(-2px) scale(1.01); }
.ccn-nut:active { transform: scale(.97); }
.ccn-nut .ic { width: 42px; height: 42px; stroke-width: 1.7; }
.ccn-nut b { font-size: 20px; letter-spacing: .04em; line-height: 1.1; }
.ccn-nut small { font-size: 12px; opacity: .9; font-weight: 600; }
.ccn-nut::after { content: ""; position: absolute; inset: -10px; border-radius: 50%; border: 2px solid var(--vong); animation: ccnSong 2.4s ease-out infinite; pointer-events: none; }
.ccn-nut:disabled { opacity: .85; cursor: progress; }
.ccn-nut.dang .ic { animation: ccnNhip 1s ease-in-out infinite; }
@keyframes ccnSong { 0% { transform: scale(1); opacity: .9; } 100% { transform: scale(1.18); opacity: 0; } }
@keyframes ccnNhip { 50% { transform: scale(.86); opacity: .7; } }
@media (prefers-reduced-motion: reduce) { .ccn-nut::after, .ccn-nut.dang .ic, .nut-tai.dang-tai .ic { animation: none; } }
.ccn-vt-o { display: flex; flex-direction: column; align-items: center; gap: 4px; min-height: 40px; }
.ccn-vt { display: inline-flex; align-items: flex-start; gap: 6px; font-size: 13px; color: var(--muted); font-weight: 600; text-align: left; }
.ccn-vt .ic { width: 15px; height: 15px; flex: none; margin-top: 2px; }
.ccn-vt.vung { color: var(--ok); } .ccn-vt.ngoai { color: var(--warn); } .ccn-vt.loi { color: var(--bad); }
.ccn-vt-ss { font-size: 11.5px; color: var(--nb-nhat); }
.ccn-vt-thu { display: inline-flex; align-items: center; gap: 4px; font-size: 12.5px; font-weight: 600; text-decoration: none; }
.ccn-vt-thu .ic { width: 14px; height: 14px; }
.ccn-anh { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.ccn-anh .thumbs { margin: 0; }
.ccn-anh .thumbs:empty { display: none; }
.ccn-kpis { margin-top: 4px; }
.ccn-thang > .kpis { margin: 4px 0 18px; }
.ccn-thang .kpi { box-shadow: none; background: #f8fbfe; }
.ccn-thang-l { display: grid; grid-template-columns: minmax(320px, 500px) minmax(0, 1fr); gap: 20px; align-items: start; }
.ccn-lich { border: 1px solid var(--line-soft); border-radius: 14px; padding: 10px; background: #fff; }
.lich-thu, .lich-luoi { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 5px; }
.lich-thu span { text-align: center; font-size: 11px; font-weight: 700; color: var(--nb-nhat); letter-spacing: .04em; padding: 2px 0 6px; }
.lo { position: relative; aspect-ratio: 1 / 1; min-height: 44px; border-radius: 10px; background: #f2f5f9; border: 1px solid transparent; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 1px; font-variant-numeric: tabular-nums; overflow: hidden; }
.lo.rong { background: transparent; }
.lo .lo-n { position: absolute; left: 6px; top: 3px; font-size: 10.5px; font-weight: 600; color: var(--nb-nhat); }
.lo .lo-k { font-size: 15px; font-weight: 800; line-height: 1.1; margin-top: 8px; }
.lo .lo-g { font-size: 9.5px; line-height: 1.15; color: inherit; opacity: .8; white-space: nowrap; letter-spacing: -.02em; text-align: center; }
.lo .lo-c { position: absolute; right: 4px; top: 3px; display: inline-flex; }
.lo .lo-c .ic { width: 11px; height: 11px; }
.lo.cn:not([class*=" k-"]) { background: #eaeef3; }
.lo.sau { background: #f8fafe; border: 1px dashed #d9dfe8; }
.lo.sau .lo-n { color: var(--nb-nhat); }
.lo.hn { border: 2px solid var(--brand); box-shadow: 0 0 0 3px rgba(0, 51, 153, .15); }
.ky-giai { display: flex; flex-wrap: wrap; gap: 6px 12px; margin: 12px 2px 0; font-size: 12px; color: var(--muted); }
.ky-giai > span { display: inline-flex; align-items: center; gap: 6px; }
.ky-giai i.ky-p { font-style: normal; }
.ky-p { display: inline-flex; align-items: center; justify-content: center; min-width: 26px; height: 21px; padding: 0 5px; border-radius: 6px; font-size: 11.5px; font-weight: 800; background: #f0f2f6; color: #5d6676; }
/* màu theo ký hiệu công (luôn kèm chữ ký hiệu) */
.k-x { background: #e2f6ec !important; color: #0e6b45 !important; }
.k-nua { background: #fff0cf !important; color: #8a5300 !important; }
.k-p { background: #e3eefc !important; color: #1b5aa6 !important; }
.k-r { background: #e8ebfb !important; color: #3a46a8 !important; }
.k-l { background: #efe8fd !important; color: #5b3cc4 !important; }
.k-ct { background: #dff4f1 !important; color: #0f6f68 !important; }
.k-kl { background: #eceff3 !important; color: #475467 !important; }
.k-om { background: #f3edf7 !important; color: #6b4f8a !important; }
.k-v { background: #fde6e4 !important; color: #b42318 !important; }
.k-thieu { background: #ffe9dc !important; color: #b4480f !important; }
.k-dang { background: #fff !important; color: #c2521f !important; box-shadow: inset 0 0 0 2px #eb6834; }
.k-nn { background: #fbe9f6 !important; color: #a3277c !important; }
.k-trong { background: #f0f2f6 !important; color: #5d6676 !important; }
.ccn-ds-ngay { min-width: 0; }
.ccn-ds-t { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--nb-nhat); margin: 2px 0 8px; }
.ccn-ds-t .ic { width: 14px; height: 14px; }
.ccn-ds-ngay .table-wrap { max-height: 520px; overflow: auto; box-shadow: none; }
table.ccn-ngay-bang td { padding: 8px 10px; font-size: 13px; font-variant-numeric: tabular-nums; }
table.ccn-ngay-bang tr.hn td { background: #f5f9ff; }
.nb-ngay { white-space: nowrap; }
.nb-ngay b { display: inline-block; min-width: 24px; color: var(--ink); }
.nb-ghi .ccn-ghi { margin: 1px 4px 1px 0; }
.ccn-ghi { display: inline-flex; vertical-align: middle; align-items: center; gap: 4px; padding: 1px 8px 1px 6px; border-radius: 999px; font-size: 11.5px; font-weight: 600; background: var(--grey-soft); color: var(--grey); max-width: 100%; }
.ccn-ghi .ic { width: 12px; height: 12px; flex: none; }
.ccn-ghi.muon { background: var(--warn-soft); color: var(--warn); } .ccn-ghi.ngoai { background: var(--bad-soft); color: var(--bad); }
.ccn-ghi.sua { background: var(--blue-soft); color: #1d4ed8; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* bảng công nhân viên */
.ccn-bc .ky-giai { margin: -2px 0 12px; }
.ccn-bc-wrap { box-shadow: none; }
table.ccn-bang { border-collapse: separate; border-spacing: 0; font-size: 12.5px; }
table.ccn-bang th, table.ccn-bang td { padding: 0; border-bottom: 1px solid var(--line-soft); }
table.ccn-bang thead th { padding: 6px 0 5px; text-align: center; min-width: 32px; text-transform: none; letter-spacing: 0; background: #f6f8fc; }
table.ccn-bang thead th span { display: block; font-size: 12.5px; color: var(--ink); font-weight: 700; }
table.ccn-bang thead th small { display: block; font-size: 10.5px; color: var(--nb-nhat); font-weight: 600; }
table.ccn-bang thead th.cn { background: #ebeff6; }
table.ccn-bang thead th.cn small, table.ccn-bang thead th.cn span { color: #4c535d; }
table.ccn-bang thead th.hn { background: var(--main); }
table.ccn-bang thead th.hn span, table.ccn-bang thead th.hn small { color: #fff; }
table.ccn-bang thead th.ten { text-align: left; padding-left: 14px; font-size: 11.5px; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
table.ccn-bang .ten { position: sticky; left: 0; z-index: 2; background: #fff; min-width: 196px; max-width: 220px; box-shadow: 1px 0 0 var(--line); }
table.ccn-bang thead .ten { z-index: 3; background: #f6f8fc; }
.ccn-nv { display: flex; align-items: center; gap: 9px; padding: 7px 12px; min-width: 0; }
.ccn-nv .av { box-shadow: none; }
.ccn-nv > span { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
.ccn-nv b { font-size: 13px; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ccn-nv small { font-size: 11px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
table.ccn-bang td.o { position: relative; text-align: center; font-weight: 800; cursor: pointer; height: 44px; min-width: 32px; border-left: 1px solid #f0f3f8; background-clip: padding-box; transition: filter .1s; }
table.ccn-bang td.o:hover, table.ccn-bang td.o:focus-visible { outline: 2px solid var(--brand); outline-offset: -2px; z-index: 1; }
table.ccn-bang td.o.cn:not([class*=" k-"]) { background: #f4f8fd; }
table.ccn-bang td.o.hn { box-shadow: inset 2px 0 0 var(--brand), inset -2px 0 0 var(--brand); }
table.ccn-bang td.o .o-qd { position: absolute; left: 3px; top: 2px; font-size: 9px; font-weight: 800; color: var(--purple); line-height: 1; }
table.ccn-bang td.o .o-anh { position: absolute; left: 3px; bottom: 2px; display: inline-flex; color: currentColor; opacity: .6; }
table.ccn-bang td.o .o-anh .ic { width: 10px; height: 10px; }
.ccn-anh-cc { display: flex; gap: 8px; margin-bottom: 12px; }
.ccn-anh-cc a { position: relative; width: 84px; height: 84px; border-radius: 12px; overflow: hidden; background: #e3e9f2; display: block; }
.ccn-anh-cc img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ccn-anh-cc span { position: absolute; left: 6px; bottom: 6px; padding: 0 7px; border-radius: 999px; background: rgba(14, 17, 21, .62); color: #fff; font-size: 11px; font-weight: 700; }
.lg-cho { margin: 8px 0; }
.lg-cho .dong { border: 1px solid var(--line-soft); }
.lg-ls { margin-top: 14px; border-top: 1px solid var(--line-soft); padding-top: 10px; }
.lg-ls summary { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; }
.lg-ls-o { padding: 8px 10px; margin-top: 8px; border-radius: 10px; background: #f6f8fc; font-size: 13px; }
.lg-ls-o > span { margin-left: 8px; }
.lg-ls-o ul { margin: 4px 0 0; padding-left: 18px; }
.lg-ls-o s { color: var(--nb-nhat); }
table.ccn-bang td.o.ngoai::after { content: ""; position: absolute; top: 4px; right: 4px; width: 6px; height: 6px; border-radius: 50%; background: var(--bad); box-shadow: 0 0 0 1.5px #fff; }
table.ccn-bang td.tg { padding: 0 10px; min-width: 56px; background: #f8fbfe; border-left: 1px solid var(--line-soft); }
table.ccn-bang thead th.tg { padding: 6px 8px; font-size: 11px; color: var(--muted); text-transform: none; white-space: nowrap; }
table.ccn-bang tbody tr:hover td.ten { background: var(--hover); }
table.ccn-bang tbody tr:hover td { background-color: transparent; }
.ccn-sua-dau { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.ccn-sua-dau > div { display: flex; flex-direction: column; line-height: 1.4; min-width: 0; }
.ccn-sua-dau b { color: var(--ink); font-size: 15px; }
.ccn-sua-dau span { font-size: 13px; color: var(--muted); display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.ccn-sua-ct { margin-bottom: 14px; }
.ccn-lan-ds { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ccn-lan { display: flex; gap: 10px; align-items: flex-start; padding: 10px; border-radius: 12px; background: #f6f8fc; border: 1px solid var(--line-soft); min-width: 0; }
.ccn-lan > div { min-width: 0; display: flex; flex-direction: column; gap: 4px; align-items: flex-start; }
.ccn-lan b { color: var(--ink); }
.ccn-lan-anh { flex: none; width: 56px; height: 56px; border-radius: 10px; overflow: hidden; background: #e3e9f2; }
.ccn-lan-anh img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ccn-sua-ls { margin-top: 8px; padding: 8px 10px; border-radius: 10px; background: var(--blue-soft); font-size: 12.5px; color: #1e3a8a; display: grid; gap: 3px; }
.ccn-sua-ls b { display: inline-flex; align-items: center; gap: 5px; }
.ccn-qua-dem { padding: 8px 10px; border-radius: 10px; background: #f6f3ff; color: #4c2a9a; font-weight: 600; font-size: 13px; }
/* quỹ phép */
.qp-nv { display: flex; align-items: center; gap: 9px; min-width: 190px; }
.qp-nv .av { box-shadow: none; }
.qp-nv > span { display: flex; flex-direction: column; line-height: 1.3; }
.qp-nv b { color: var(--ink); } .qp-nv small { color: var(--muted); font-size: 11.5px; }
.qp-c { min-width: 160px; }
.qp-c small { font-size: 11.5px; color: var(--muted); margin-left: 8px; font-variant-numeric: tabular-nums; }
.qp-bar { display: inline-flex; width: 110px; height: 8px; border-radius: 4px; background: #e9f7f0; overflow: hidden; vertical-align: middle; }
.qp-bar i { display: block; height: 100%; }
.qp-bar i.da, .qp-o.da { background: #2a78d6; } .qp-bar i.cho, .qp-o.cho { background: #eda100; }
.qp-o { display: inline-block; width: 12px; height: 12px; border-radius: 3px; background: #c9efdc; }
.qp-giai { margin-top: 12px; }

/* ================================================================ LƯƠNG */
.lg-nut { margin-bottom: 12px; }
.lg-ghi { display: flex; align-items: flex-start; gap: 8px; }
.lg-ghi .ic { margin-top: 2px; }
.lg-kpis .kpi .v { font-size: clamp(15px, 11cqi, 22px); }
.lg-wrap { margin-bottom: 12px; }
table.lg-bang td, table.lg-ch td { font-variant-numeric: tabular-nums; }
.lg-nv { display: flex; align-items: center; gap: 10px; min-width: 200px; }
table.lg-bang th, table.lg-bang td { padding-left: 8px; padding-right: 8px; }
table.lg-bang th { white-space: normal; line-height: 1.3; vertical-align: bottom; }
table.lg-bang td.num { white-space: nowrap; font-size: 13.5px; }
table.lg-bang .lg-nv { min-width: 180px; }
.lg-nv .av { box-shadow: none; }
.lg-nv > span { display: flex; flex-direction: column; line-height: 1.3; min-width: 0; }
.lg-nv b { color: var(--ink); }
.lg-nv small { font-size: 12px; color: var(--muted); }
table.lg-bang td.lg-tl b { font-size: 15px; color: var(--ok); }
.lg-thieu { display: block; font-size: 11.5px; color: var(--warn); font-weight: 600; white-space: nowrap; }
.pl-thieu { margin: 10px 20px 0; display: flex; gap: 6px; align-items: flex-start; }
.ccn-xoa-o { padding: 8px 10px; border-radius: 10px; background: var(--bad-soft); color: var(--bad); font-weight: 600; font-size: 13px; }
table.lg-bang tfoot td { background: #f6f8fc; font-weight: 600; border-top: 2px solid var(--line); padding: 11px 12px; color: var(--ink); }
.lg-ghi-luat { max-width: 1000px; }
.lg-pc { display: inline-flex; flex-wrap: wrap; gap: 0 4px; margin: 1px 8px 1px 0; font-size: 12.5px; }
.lg-pc small { color: var(--muted); }
.lg-pc-o { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) auto; gap: 6px; margin-bottom: 6px; align-items: center; }
/* phiếu lương */
.pl { max-width: 640px; padding: 0; overflow: hidden; }
.pl-dau { display: flex; align-items: center; gap: 12px; padding: 18px 20px; background: radial-gradient(90% 160% at 100% 0%, rgba(110, 165, 255, .26), transparent 55%), linear-gradient(120deg, #032e84 0%, #05184c 100%); color: #fff; }
.pl-dau .av { box-shadow: 0 0 0 2px rgba(255, 255, 255, .2); }
.pl-ai { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.35; }
.pl-ai b { font-size: 16px; }
.pl-ai span { font-size: 12.5px; color: #c9d5ef; }
.pl-thang { text-align: right; line-height: 1.2; }
.pl-thang span { display: block; font-size: 11px; color: #b9d2ff; text-transform: uppercase; letter-spacing: .08em; font-weight: 700; }
.pl-thang b { font-size: 18px; }
.pl-tl { padding: 18px 20px 14px; background: linear-gradient(180deg, #f0f5ff, #fff); border-bottom: 1px solid var(--line-soft); display: flex; flex-direction: column; gap: 2px; }
.pl-tl span { font-size: 12px; font-weight: 700; letter-spacing: .08em; color: var(--main); }
.pl-tl b { font-size: 32px; color: var(--ink); font-variant-numeric: tabular-nums; letter-spacing: -.01em; line-height: 1.15; }
.pl-tl small { font-size: 12.5px; color: var(--muted); font-style: italic; }
.pl-cong { display: flex; gap: 8px; align-items: flex-start; padding: 12px 20px; font-size: 13px; color: var(--text); border-bottom: 1px solid var(--line-soft); }
.pl-cong .ic { color: var(--muted); margin-top: 1px; }
.pl-nhom { padding: 12px 20px 6px; }
.pl-nhom h3 { display: flex; align-items: center; gap: 6px; margin: 0 0 6px; font-size: 12px; text-transform: uppercase; letter-spacing: .07em; color: var(--ok); }
.pl-nhom.tru h3 { color: var(--bad); }
.pl-d { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; padding: 7px 0; border-bottom: 1px dashed var(--line-soft); font-size: 13.5px; }
.pl-d span { min-width: 0; }
.pl-d span small { display: block; color: var(--muted); font-size: 11.5px; }
.pl-d b { font-variant-numeric: tabular-nums; white-space: nowrap; color: var(--ink); font-weight: 600; }
.pl-d.tong { border-bottom: 0; font-weight: 700; }
.pl-d.tong b { font-weight: 800; }
.pl-nhom.tru .pl-d b { color: var(--bad); }
.pl-cuoi { display: flex; justify-content: space-between; align-items: baseline; margin: 8px 20px 0; padding: 14px 0 6px; border-top: 2px solid var(--ink); }
.pl-cuoi span { font-weight: 800; letter-spacing: .06em; color: var(--ink); }
.pl-cuoi b { font-size: 20px; color: var(--ok); font-variant-numeric: tabular-nums; }
.pl-ck { padding: 4px 20px; display: flex; gap: 6px; align-items: center; }
.pl-nut { padding: 12px 20px 18px; }
.pl-chon { width: auto; min-width: 150px; font-weight: 600; }

/* ================================================================ CÀI ĐẶT phần nội bộ */
.cd-bat { font-size: 15px; padding: 10px 12px; border-radius: 12px; background: var(--main-50); border: 1px solid var(--main-line); width: 100%; }
.cd-bk-ghi { display: flex; gap: 6px; align-items: flex-start; margin: -2px 0 0; }
.cd-bk-ghi .ic { width: 15px; height: 15px; flex: none; margin-top: 2px; }
.cd-diem { display: grid; gap: 8px; }
.cd-diem-o { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr) auto; gap: 8px 10px; align-items: end; padding: 10px 12px; border-radius: 12px; background: #f8fbfe; border: 1px solid var(--line-soft); }
.cd-diem-nut { display: flex; gap: 4px; align-items: center; min-height: 40px; }
.cd-diem-nut .icon-btn:hover { background: var(--bad-soft); color: var(--bad); }
.cd-qt select { min-width: 150px; }
.nb-tom { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; margin-bottom: 10px; }
.nb-o { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; background: #f6f8fc; border: 1px solid var(--line-soft); text-decoration: none; color: inherit; }
.nb-o:hover { border-color: var(--main-line); background: #fff; }
.nb-o > .ic { width: 34px; height: 34px; padding: 8px; border-radius: 10px; background: var(--main-soft); color: var(--main); }
.nb-o.qua > .ic { background: var(--bad-soft); color: var(--bad); }
.nb-o > span { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.nb-o b { font-size: 17px; color: var(--ink); }
.nb-o.qua b { color: var(--bad); }
.nb-o small { font-size: 12px; color: var(--muted); }

/* ================================================================ màn hình vừa */
@media (max-width: 1280px) {
  .dx-o-ds { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ccn-thang-l { grid-template-columns: minmax(0, 1fr); }
  .ccn-lich { max-width: 520px; }
}
@media (max-width: 1180px) {
  .kpis.k5 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .vr-han { flex-basis: 118px; }
  .vd { grid-template-columns: minmax(0, 1fr) 310px; }
  .dxd { grid-template-columns: minmax(0, 1fr) 330px; }
  .bt-trang, .bt-trang.bt-ct { grid-template-columns: minmax(0, 1fr) 280px; }
  .dx-tren { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 960px) {
  .vd, .dxd { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; }
  .vd { grid-template-areas: "dau" "info" "chinh" "ls"; }
  .dxd { grid-template-areas: "dau" "ben" "bl"; }
  .vf, .dxf { grid-template-columns: minmax(0, 1fr); }
  .bt-trang, .bt-trang.bt-ct { grid-template-columns: minmax(0, 1fr); }
  .bt-ben { position: static; }
  .bt-feed + .bt-ben { display: none; }
  .ccn-the { grid-template-columns: minmax(0, 1fr); }
  .ccn-phai { order: -1; }
  .v-bang { grid-template-columns: repeat(3, minmax(270px, 1fr)); }
  .cd-diem-o { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr); }
  .cd-diem-o .cd-ten { grid-column: 1 / -1; }
  .cd-diem-o .cd-diem-nut { grid-column: 1 / -1; }
}
@media (max-width: 720px) {
  .nb-tabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-left: -2px; margin-right: -2px; }
  .nb-tabs::-webkit-scrollbar { display: none; }
  .nb-tabs a { white-space: nowrap; padding: 10px 11px; }
  /* dòng việc: tick | tên + thông tin | người làm, xuống dòng: hạn, trạng thái */
  .vrow { flex-wrap: wrap; row-gap: 6px; padding: 11px 8px; align-items: flex-start; }
  .vrow .tick { order: 1; margin-top: 1px; }
  .vrow > .o-tt { order: 1; margin-top: 7px; }
  .vr-chinh { order: 2; flex: 1 1 0; }
  .vr-ng { order: 3; flex: 0 0 auto; padding-top: 1px; }
  .vrow::after { content: ""; order: 4; flex-basis: 100%; height: 0; }
  .vr-han { order: 5; flex: 0 0 auto; margin-left: 40px; }
  .vr-tt { order: 6; flex: 0 0 auto; margin-left: auto; }
  .vr-han:empty { display: none; }
  .vr-han:empty ~ .vr-tt { margin-left: 40px; }
  .vrow + .vrow::before { left: 8px; }
  .vrow .t { flex-wrap: wrap; row-gap: 2px; }
  .vrow .vr-ten { white-space: normal; flex: 1 1 100%; order: 0; }
  .vrow .t .uu { order: 1; }
  .vrow .t .vr-so { order: 2; }
  .vrow .m .ct-tag { max-width: 100%; }
  .v-thanh .v-tim, .v-thanh .v-ct { flex: 1 1 100%; max-width: none; }
  .v-loc { flex-wrap: nowrap; overflow-x: auto; width: 100%; padding-bottom: 4px; scrollbar-width: none; }
  .v-loc::-webkit-scrollbar { display: none; }
  .v-nhanh { gap: 6px; padding: 8px; }
  .v-nhanh .vn-ten { flex-basis: 100%; }
  .v-nhanh .vn-ng { flex: 1 1 0; min-width: 0; padding-left: 8px; }
  .v-nhanh .vn-ng select { font-size: 13.5px; }
  .v-nhanh .vn-han { flex: 0 1 148px; min-width: 0; padding-left: 8px; }
  .v-nhanh .vn-han > .ic { display: none; }
  .v-nhanh .vn-han input { font-size: 13.5px; }
  .v-nhanh .btn { flex: 0 0 46px; padding: 0; }
  .v-nhanh .btn span { display: none; }
  /* bảng 3 cột: vuốt ngang, mỗi cột gần hết chiều rộng */
  .v-bang { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 86%; scroll-snap-type: x mandatory; gap: 10px; margin: 0 -12px; padding: 0 12px 8px; scroll-padding: 0 12px; }
  .v-cot { scroll-snap-align: start; }
  .vt-chuyen { min-height: 32px; padding: 0 12px 0 9px; font-size: 12px; }
  .dx-o-ds { display: flex; overflow-x: auto; gap: 8px; margin: 0 -14px; padding: 2px 14px 6px; scroll-snap-type: x proximity; scrollbar-width: none; }
  .dx-o-ds::-webkit-scrollbar { display: none; }
  .dx-o { flex: 0 0 168px; scroll-snap-align: start; flex-direction: column; align-items: flex-start; gap: 8px; }
  .dx-o b { white-space: normal; }
  .dx-loai-ds { grid-template-columns: minmax(0, 1fr); }
  .dx-loc input, .dx-loc select { flex: 1 1 140px; max-width: none !important; }
  .dx-loc input { flex-basis: 100%; }
  /* danh sách đề xuất: mỗi dòng một thẻ */
  table.dx-bang thead { display: none; }
  table.dx-bang, table.dx-bang tbody { display: block; }
  table.dx-bang tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "c1 c1" "c2 c5" "c4 c5"; gap: 8px 10px; padding: 12px 14px; border-bottom: 1px solid var(--line-soft); }
  table.dx-bang tr:last-child { border-bottom: 0; }
  table.dx-bang td { display: block; padding: 0 !important; border: 0 !important; }
  table.dx-bang td.empty { grid-column: 1 / -1; padding: 20px !important; }
  .dx-c1 { grid-area: c1; } .dx-c2 { grid-area: c2; } .dx-c3 { display: none !important; } .dx-c4 { grid-area: c4; text-align: left !important; } .dx-c5 { grid-area: c5; text-align: right; align-self: start; }
  .dx-c5 .dx-cho { justify-content: flex-end; }
  .dx-luc-dt { display: block; }
  .dx-ai { flex-direction: column; align-items: flex-start; }
  .dx-tien { text-align: left; }
  .dx-tt { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .dx-tt dd { margin-bottom: 8px; padding-left: 22px; }
  .bt-hd { grid-template-columns: 1fr 1fr; }
  .bl-o { max-width: calc(100% - 46px); }
  .bl-goi { display: none; }
  .bl-nut .btn.primary { margin-left: auto; }
  .ccn-lan-ds { grid-template-columns: minmax(0, 1fr); }
  table.ccn-ngay-bang thead { display: none; }
  table.ccn-ngay-bang, table.ccn-ngay-bang tbody { display: block; }
  table.ccn-ngay-bang tr { display: grid; grid-template-columns: 74px auto auto minmax(0, 1fr); grid-template-areas: "ngay vao ra ky" "ghi ghi ghi ghi"; gap: 4px 10px; padding: 9px 10px; border-bottom: 1px solid var(--line-soft); align-items: center; }
  table.ccn-ngay-bang td { display: block; padding: 0 !important; border: 0 !important; }
  table.ccn-ngay-bang .nb-ngay { grid-area: ngay; } table.ccn-ngay-bang .nb-ky { grid-area: ky; text-align: right; } table.ccn-ngay-bang .nb-ghi { grid-area: ghi; }
  table.ccn-ngay-bang .nb-vao { grid-area: vao; } table.ccn-ngay-bang .nb-ra { grid-area: ra; color: var(--muted); } table.ccn-ngay-bang .nb-gio { display: none !important; }
  table.ccn-ngay-bang .nb-ra:not(:empty)::before { content: "→ "; color: var(--nb-nhat); }
  table.ccn-ngay-bang .nb-ghi:empty { display: none !important; }
  /* bảng lương, mức lương: mỗi người một thẻ */
  table.lg-bang thead, table.lg-ch thead, table.lg-bang tfoot { display: none; }
  table.lg-bang, table.lg-bang tbody, table.lg-ch, table.lg-ch tbody { display: block; }
  table.lg-bang tr, table.lg-ch tr { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2px; padding: 14px; border-bottom: 1px solid var(--line-soft); }
  table.lg-bang td:empty, table.lg-ch td:empty { display: none !important; }
  table.lg-bang tbody tr:hover td, table.lg-ch tbody tr:hover td, table.ccn-qp tbody tr:hover td, table.dx-bang tbody tr:hover td { background: transparent; }
  table.dx-bang tbody tr:active, table.lg-bang tbody tr:active { background: var(--hover); }
  table.lg-bang td, table.lg-ch td { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; padding: 2px 0 !important; border: 0 !important; text-align: right; font-size: 13px; }
  table.lg-bang td[data-l]::before, table.lg-ch td[data-l]::before { content: attr(data-l); color: var(--muted); font-size: 12px; text-align: left; white-space: nowrap; }
  table.lg-bang td.lg-nv-c, table.lg-ch td.lg-nv-c { justify-content: flex-start; text-align: left; margin-bottom: 6px; }
  table.lg-bang td.lg-tl { order: 9; padding-top: 8px !important; margin-top: 4px; border-top: 1px dashed var(--line) !important; }
  table.lg-bang td.lg-tl::before { color: var(--ink) !important; font-weight: 700; font-size: 13px !important; }
  table.lg-bang td.lg-phieu-c { order: 10; }
  table.lg-bang td.lg-tl b { font-size: 17px; }
  table.lg-bang td.lg-phieu-c, table.lg-ch td.lg-sua-c { justify-content: flex-end; }
  table.lg-ch td[data-l="Phụ cấp"] { flex-wrap: wrap; }
  .lg-nv { min-width: 0; }
  table.ccn-qp thead { display: none; }
  table.ccn-qp, table.ccn-qp tbody { display: block; }
  table.ccn-qp tr { display: grid; grid-template-columns: 1fr 1fr; gap: 3px 14px; padding: 12px 14px; border-bottom: 1px solid var(--line-soft); }
  table.ccn-qp td { display: flex; justify-content: space-between; gap: 8px; padding: 1px 0 !important; border: 0 !important; font-size: 13px; }
  table.ccn-qp td[data-l]::before { content: attr(data-l); color: var(--muted); font-size: 12px; }
  table.ccn-qp td.qp-nv-c { grid-column: 1 / -1; justify-content: flex-start; margin-bottom: 4px; }
  table.ccn-qp td.qp-c { grid-column: 1 / -1; }
  .qp-bar { flex: 1; width: auto; }
  .cd-diem-o { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .cd-diem-o .cd-diem-nut { justify-content: space-between; }
}
@media (max-width: 560px) {
  .nb-trang .page-head .sub { display: none; }
  .kpis.k5 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kpis.k5 > :last-child:nth-child(odd) { grid-column: 1 / -1; }
  .lg-kpis .kpi .v { font-size: clamp(14px, 11cqi, 17px); }
  .page-head .v-xem { flex: 1 1 auto; }
  .page-head .v-xem button { flex: 1; justify-content: center; }
  .vd-dau, .dx-dau, .bt-bai { padding: 16px 15px 14px; }
  .vd-dau h1 { font-size: 19px; }
  .dx-dau h1 { font-size: 18px; }
  .dx-dau-tren { flex-wrap: wrap; }
  .dx-dau-tren > .badge { order: -1; flex-basis: 100%; width: max-content; max-width: max-content; }
  .vd-tt { grid-template-columns: 88px minmax(0, 1fr); }
  .vd-nut .btn, .dx-nut .btn { flex: 1 1 auto; }
  .vd-nut .spacer { display: none; }
  .vc-them .btn { flex: none; }
  .bl .thumbs a { width: 96px; height: 76px; }
  .bt-tin { padding: 15px 14px 10px; }
  .bt-tieu { font-size: 16.5px !important; }
  .bt-bai .bt-tieu { font-size: 20px !important; }
  .bt-chan .btn { margin-left: 0; flex: 1 1 100%; }
  .bt-luoi.n3 { grid-template-columns: 1fr 1fr; grid-template-rows: auto; aspect-ratio: auto; }
  .bt-luoi.n3 a:first-child { grid-row: auto; grid-column: 1 / -1; aspect-ratio: 16 / 10; }
  .bt-luoi.n3 a { aspect-ratio: 1 / 1; }
  .tb-row.thb { padding: 11px 8px; gap: 11px; }
  .thb-nhom { padding: 10px 6px 6px; }
  .page-head .actions #bat-tb, .page-head .actions #doc-het { flex: 1 1 auto; }
  /* điện thoại: ngày, đồng hồ, trạng thái → nút tròn → vị trí → giờ vào / ra */
  .ccn-the { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 18px 16px; gap: 10px; }
  .ccn-trai, .ccn-phai { display: contents; }
  .ccn-ngay { order: 1; } .ccn-gio { order: 2; } .ccn-tt-o { order: 3; } .ccn-anh { order: 4; } .ccn-nut { order: 5; margin: 10px 0 6px; } .ccn-vt-o { order: 6; } .ccn-ca { order: 7; }
  .ccn-gio { font-size: 44px; text-align: center; margin: 0; }
  .ccn-gio small { font-size: 20px; }
  .ccn-tt-o { justify-content: center; }
  .ccn-ca { width: 100%; text-align: left; padding: 12px; border-radius: 14px; background: #f6f8fc; margin-top: 14px; }
  .ccn-ca-o { display: grid; grid-template-columns: 28px 62px minmax(0, 1fr); align-items: center; gap: 4px 8px; }
  .ccn-ca-o .ccn-chip { grid-column: 2 / -1; justify-self: start; max-width: 100%; }
  .ccn-nut { width: 168px; height: 168px; }
  .lo { min-height: 38px; border-radius: 8px; }
  .lo .lo-g { display: none; }
  .lo .lo-k { font-size: 13px; margin-top: 8px; }
  .lo .lo-n { left: 4px; top: 2px; font-size: 10px; }
  .lich-thu, .lich-luoi { gap: 3px; }
  .ccn-lich { padding: 6px; }
  .ky-giai { gap: 5px 10px; }
  table.ccn-bang .ten { min-width: 132px; max-width: 150px; }
  .ccn-nv { padding: 6px 8px; gap: 6px; }
  .ccn-nv .av { display: none; }
  .pl-dau { padding: 15px; }
  .pl-tl, .pl-cong, .pl-nhom { padding-left: 15px; padding-right: 15px; }
  .pl-cuoi { margin: 8px 15px 0; }
  .pl-tl b { font-size: 27px; }
  .pl-nut .btn { flex: 1 1 auto; }
  .lg-pc-o { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .lg-pc-o .check { grid-column: 1 / -1; }
  .cd-diem-o { grid-template-columns: minmax(0, 1fr); }
  .card h2 .act .thang-nav { flex: 1 1 auto; }
}
@media print { .vd-nut, .dx-nut, .bl-soan, .v-nhanh, .v-thanh, .bt-hd, .ccn-the { display: none !important; } }

/* ================================================================ 0.3.2 – VIỆC: dải tóm tắt (như đầu trang Base Wework) */
.v-tom { display: grid; grid-template-columns: minmax(120px, auto) minmax(260px, 1.6fr) auto minmax(220px, 1fr); gap: 14px 22px; align-items: center; padding: 14px 18px; }
.vtm-tong { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.vtm-k { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; color: var(--muted); white-space: nowrap; }
.vtm-k .ic { width: 15px; height: 15px; }
.vtm-tong > b { font-size: 30px; line-height: 1.1; color: var(--ink); font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.vtm-s { font-size: 12.5px; color: var(--muted); }
.vtm-tien { min-width: 0; display: grid; gap: 9px; }
.vtm-thanh { display: flex; gap: 2px; height: 12px; border-radius: 6px; overflow: hidden; background: #e7ebf2; }
.vtm-thanh > i { display: block; background: var(--m); min-width: 4px; }
.vtm-thanh > i.rong { flex: 1; background: #e7ebf2; }
.vtm-chu { display: flex; flex-wrap: wrap; gap: 4px 14px; }
.vtm-chu button { display: inline-flex; align-items: center; gap: 6px; padding: 3px 8px 3px 4px; border: 1px solid transparent; border-radius: 999px; background: none; cursor: pointer; font-size: 13px; color: var(--text); }
.vtm-chu button:hover { background: var(--hover); }
.vtm-chu button.on { border-color: var(--line); background: #fff; box-shadow: var(--shadow); }
.vtm-chu i { width: 10px; height: 10px; border-radius: 3px; background: var(--m); flex: none; }
.vtm-chu b { color: var(--ink); font-variant-numeric: tabular-nums; }
.vtm-so { display: flex; gap: 8px; }
.vtm-o { display: flex; align-items: center; gap: 9px; padding: 8px 12px; border-radius: 12px; border: 1px solid var(--line-soft); background: #fafcff; cursor: pointer; text-align: left; color: inherit; font: inherit; }
.vtm-o:hover { border-color: var(--line); background: #fff; }
.vtm-o > .ic { width: 30px; height: 30px; padding: 7px; border-radius: 9px; flex: none; }
.vtm-o span { display: flex; flex-direction: column; line-height: 1.2; font-size: 12px; color: var(--muted); font-weight: 600; }
.vtm-o b { font-size: 19px; color: var(--ink); font-variant-numeric: tabular-nums; }
.vtm-o.qua > .ic { background: var(--bad-soft); color: var(--bad); }
.vtm-o.qua b { color: var(--bad); }
.vtm-o.gap > .ic { background: var(--warn-soft); color: var(--warn); }
.vtm-o.on { border-color: currentColor; box-shadow: 0 0 0 2px rgba(24, 27, 33, .06); }
.vtm-o.qua.on { border-color: var(--bad); } .vtm-o.gap.on { border-color: var(--warn); }
.vtm-cot { min-width: 0; }
.vtm-cot-t { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; font-size: 12.5px; color: var(--muted); font-weight: 600; margin-bottom: 6px; }
.vtm-cot-t b { color: var(--ink); font-size: 15px; font-variant-numeric: tabular-nums; }
.vtm-bd { display: flex; align-items: flex-end; gap: 3px; height: 46px; padding-top: 12px; border-bottom: 1px solid var(--line); }
.vtm-bd .c { position: relative; flex: 1; height: 100%; display: flex; align-items: flex-end; justify-content: center; }
.vtm-bd .c i { display: block; width: 100%; max-width: 14px; background: #1baf7a; border-radius: 3px 3px 0 0; }
.vtm-bd .c em { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); font-style: normal; font-size: 11px; font-weight: 700; color: var(--ink); line-height: 1; }
.vtm-bd .c.nay::after { content: ""; position: absolute; left: 50%; bottom: -5px; width: 4px; height: 4px; border-radius: 50%; background: var(--ink); transform: translateX(-50%); }
.vtm-x { display: flex; justify-content: space-between; margin-top: 5px; font-size: 11px; color: var(--nb-nhat); }
.v-kieu-nguoi .v-loc { display: none; }
.v-nguoi-loc { display: inline-flex; align-items: center; gap: 7px; padding: 3px 4px 3px 6px; border-radius: 999px; background: var(--main-soft); border: 1px solid var(--main-line); font-size: 13px; }
.v-nguoi-loc button { border: 0; background: none; cursor: pointer; display: inline-flex; padding: 3px; border-radius: 50%; color: var(--main-dark); }
.v-nguoi-loc button:hover { background: #fff; }
.v-xem button { white-space: nowrap; }

/* kết quả đánh giá: nhãn nhỏ trên dòng / thẻ việc */
.kq-p { display: inline-flex; align-items: center; gap: 4px; padding: 0 8px 0 6px; border-radius: 999px; font-size: 11.5px; font-weight: 700; line-height: 20px; white-space: nowrap; }
.kq-p .ic { width: 13px; height: 13px; }
.kq-p.dat { background: var(--ok-soft); color: var(--ok); }
.kq-p.khong { background: var(--bad-soft); color: var(--bad); }
.kq-p.cho { background: #edf2fa; color: #535e6f; }

/* chi tiết việc: ngày bắt đầu / hạn sửa ngay, khối Kết quả – đánh giá */
.vd-ngay-o .vd-ngay { width: auto; min-height: 34px; padding: 4px 8px; font-size: 13.5px; max-width: 170px; }
.vd-ngay-o .muted.small { margin-top: 2px; }
.vd-khoang { color: var(--muted); }
.vd-kq { border-left: 4px solid var(--line); }
.vd-kq.dat { border-left-color: #1baf7a; } .vd-kq.khong { border-left-color: var(--bad); }
.kq-dong { display: flex; align-items: flex-start; gap: 14px; flex-wrap: wrap; }
.kq-to { display: inline-flex; align-items: center; gap: 7px; padding: 6px 14px 6px 10px; border-radius: 12px; font-size: 16px; font-weight: 800; flex: none; }
.kq-to .ic { width: 20px; height: 20px; }
.kq-to.dat { background: var(--ok-soft); color: var(--ok); } .kq-to.khong { background: var(--bad-soft); color: var(--bad); }
.kq-nd { flex: 1; min-width: 200px; display: grid; gap: 4px; }
.kq-gc { white-space: pre-wrap; line-height: 1.55; overflow-wrap: anywhere; }
.kq-ai { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--muted); }
.kq-ai .av { box-shadow: none; }
.kq-form { margin-top: 10px; display: grid; gap: 10px; }
.kq-form[hidden] { display: none; }
.kq-hoi { margin: 0; font-weight: 600; color: var(--ink); }
.kq-chon { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; max-width: 420px; }
.kq-nut { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; border-radius: 12px; border: 2px solid var(--line); background: #fff; font-weight: 700; font-size: 14.5px; cursor: pointer; color: var(--text); transition: border-color .12s, background .12s; }
.kq-nut .ic { width: 19px; height: 19px; }
.kq-nut.dat:hover, .kq-nut.dat.on { border-color: #1baf7a; color: var(--ok); }
.kq-nut.khong:hover, .kq-nut.khong.on { border-color: var(--bad); color: var(--bad); }
.kq-nut.dat.on { background: var(--ok-soft); } .kq-nut.khong.on { background: var(--bad-soft); }
.kq-mo { font-size: 13.5px; }
.kq-mo[hidden] { display: none; }
.kq-nut-hang { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.kq-cho { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 12px; background: #f3f8ff; color: #535e6f; font-size: 13.5px; }
.kq-cu { margin-top: 12px; padding-top: 10px; border-top: 1px dashed var(--line); display: grid; gap: 6px; }
.kq-cu-t { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; color: var(--muted); }
.kq-cu-o { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; font-size: 13px; }
.ls-ic.do { background: var(--bad-soft); color: var(--bad); }
.vf-songay > div { min-height: 40px; display: flex; align-items: center; gap: 6px; font-size: 13.5px; }
.vf-songay b { color: var(--ink); font-size: 16px; }

/* ================================================================ VIỆC – Tiến độ (dạng Gantt) */
.gt-the { padding: 14px 0 10px; overflow: hidden; }
.gt-tren { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; padding: 0 16px 12px; }
.gt-nhom button .ic { width: 15px; height: 15px; }
.gt-chu { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; font-size: 12.5px; color: var(--muted); }
.gt-chu span { display: inline-flex; align-items: center; gap: 6px; }
.gt-chu i { width: 18px; height: 9px; border-radius: 3px; background: var(--m); }
.gt-chu i.tre { background: repeating-linear-gradient(45deg, var(--bad) 0 3px, #f6c9c5 3px 6px); }
.gt-chu i.mo { background: linear-gradient(90deg, #98a2b3, rgba(152, 162, 179, .15)); }
.gt-nut { margin-left: auto; display: flex; gap: 4px; }
.gt-cuon { position: relative; overflow: auto; border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }
.gt-noi { position: relative; }
.gt-dong { display: flex; min-height: 46px; border-bottom: 1px solid var(--line-soft); }
.gt-dong:hover .gt-ten, .gt-dong:hover .gt-ray { background-color: #f8fbff; }
.gt-ten { position: sticky; left: 0; z-index: 3; flex: 0 0 var(--tw); width: var(--tw); display: flex; align-items: center; gap: 8px; padding: 5px 10px 5px 14px; background: #fff;
  box-shadow: 1px 0 0 var(--line); text-decoration: none; color: inherit; min-width: 0; }
.gt-ten .o { width: 9px; height: 9px; border-radius: 50%; background: var(--m); flex: none; }
.gt-ten-nd { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.3; }
.gt-ten-nd .t { font-weight: 600; color: var(--ink); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gt-ten-nd .s { font-size: 11.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gt-ten-nd .s b { font-weight: 700; } .gt-ten-nd .s .qua { color: var(--bad); } .gt-ten-nd .s .tre { color: #a15c00; }
.gt-ten-nd .s .ic { width: 12px; height: 12px; vertical-align: -1px; margin-right: 2px; }
.gt-ng { flex: none; }
a.gt-ten:hover .t { color: var(--main); }
.gt-ray { position: relative; flex: none; background:
  repeating-linear-gradient(90deg, transparent 0 calc(var(--dw) * 6), rgba(24, 27, 33, .028) calc(var(--dw) * 6) calc(var(--dw) * 7)),
  repeating-linear-gradient(90deg, var(--line-soft) 0 1px, transparent 1px calc(var(--dw) * 7)); }
.gt-dau { position: sticky; top: 0; z-index: 4; min-height: 0; background: #f6f8fc; }
.gt-ten-dau { background: #f6f8fc; font-size: 11.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); align-items: flex-end; padding-bottom: 8px; }
.gt-ray-dau { background: #f6f8fc; }
.gt-tuan, .gt-ngay { display: flex; }
.gt-tuan span { flex: none; padding: 7px 8px 3px; font-size: 11.5px; font-weight: 700; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; box-shadow: inset 1px 0 0 var(--line-soft); }
.gt-ngay span { flex: none; text-align: center; font-size: 11px; font-weight: 600; color: var(--muted); padding: 2px 0 6px; font-variant-numeric: tabular-nums; }
.gt-ngay span.cn { color: #4c535d; background: rgba(24, 27, 33, .04); }
.gt-ngay span.nay { color: #fff; background: var(--main); border-radius: 6px 6px 0 0; }
.gt-nhom-dong { min-height: 36px; background: #f8fbfe; }
.gt-nhom-dong .gt-ten, .gt-nhom-dong .gt-ray { background-color: #f8fbfe; }
.gt-nhom-t { gap: 7px; font-size: 13px; }
.gt-nhom-t b { color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.gt-nhom-t .cnt { background: #e7ebf2; border-radius: 999px; padding: 0 7px; font-size: 11.5px; font-weight: 700; color: var(--muted); line-height: 18px; flex: none; }
.gt-nhom-qh { display: inline-flex; align-items: center; gap: 3px; font-size: 12px; font-weight: 700; color: var(--bad); flex: none; }
.gt-nhom-qh .ic { width: 13px; height: 13px; }
.gt-bar { position: absolute; top: 50%; height: 18px; margin-top: -9px; border-radius: 5px; background: var(--m); overflow: hidden; box-shadow: 0 0 0 2px #fff; transition: filter .12s, box-shadow .12s; }
.gt-bar:hover, .gt-bar:focus-visible { filter: brightness(.94); box-shadow: 0 0 0 2px #fff, 0 0 0 4px color-mix(in srgb, var(--m) 40%, transparent); outline: 0; }
.gt-bar .gt-con { position: absolute; top: 0; bottom: 0; right: 0; background: rgba(255, 255, 255, .55); }
.gt-bar.khong-han { background: linear-gradient(90deg, var(--m) 55%, color-mix(in srgb, var(--m) 18%, #fff)); }
.gt-bar.cut-l { border-top-left-radius: 0; border-bottom-left-radius: 0; } .gt-bar.cut-r { border-top-right-radius: 0; border-bottom-right-radius: 0; }
.gt-tre { position: absolute; top: 50%; height: 12px; margin-top: -6px; border-radius: 0 4px 4px 0; background: repeating-linear-gradient(45deg, var(--bad) 0 3px, #f6c9c5 3px 6px); }
.gt-tre-ic { position: absolute; top: 50%; margin-top: -8px; color: var(--bad); display: inline-flex; }
.gt-tre-ic .ic { width: 16px; height: 16px; }
.gt-ngoai { position: absolute; top: 50%; margin-top: -11px; display: inline-flex; align-items: center; gap: 2px; padding: 2px 8px; border-radius: 999px; background: #ebeff6; color: var(--muted); font-size: 11.5px; font-weight: 600; text-decoration: none; }
.gt-ngoai.trai { left: 4px; } .gt-ngoai.phai { right: 4px; }
.gt-ngoai .ic { width: 13px; height: 13px; }
.gt-nay { position: absolute; top: 0; bottom: 0; width: 0; border-left: 2px solid var(--main); z-index: 2; pointer-events: none; }
.gt-nay span { position: absolute; top: 2px; left: -1px; transform: translateX(-50%); background: var(--main); color: #fff; font-size: 10.5px; font-weight: 700; padding: 1px 6px; border-radius: 999px; white-space: nowrap; display: none; }
/* điện thoại: tên việc trên thanh, dính mép trái khi cuộn ngang */
.gt-dt .gt-ray { min-height: 60px; }
.gt-nhan { position: sticky; left: 0; z-index: 1; display: flex; align-items: center; gap: 7px; width: min(300px, calc(100vw - 64px)); padding: 6px 10px 0; text-decoration: none; color: inherit; }
.gt-dt .gt-bar, .gt-dt .gt-tre, .gt-dt .gt-tre-ic, .gt-dt .gt-ngoai { top: auto; margin-top: 0; bottom: 9px; }
.gt-dt .gt-tre { bottom: 12px; } .gt-dt .gt-tre-ic { bottom: 10px; }
.gt-nhom-dong .gt-nhan { padding: 8px 10px; }
.gt-ghi { display: flex; align-items: flex-start; gap: 6px; margin: 10px 16px 0; }
.gt-ghi .ic { width: 15px; height: 15px; flex: none; margin-top: 1px; }

/* ================================================================ VIỆC – Theo người (báo cáo việc được giao theo thành viên) */
.tn-the h2 .act .tn-ky { width: auto; min-height: 34px; padding: 4px 10px; font-weight: 600; }
.tn-chu { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; margin: -4px 0 12px; font-size: 12.5px; color: var(--muted); }
.tn-chu span { display: inline-flex; align-items: center; gap: 6px; }
.tn-chu i { width: 12px; height: 12px; border-radius: 3px; background: var(--m); }
.tn-chu .qua { color: var(--bad); font-weight: 600; }
.tn-chu .qua .ic { width: 14px; height: 14px; }
.tn-wrap { box-shadow: none; }
table.tn-bang tbody tr { cursor: pointer; }
table.tn-bang tbody tr:focus-visible { outline: 2px solid var(--brand); outline-offset: -2px; }
table.tn-bang td { vertical-align: middle; font-variant-numeric: tabular-nums; }
.tn-ai { display: flex; align-items: center; gap: 10px; min-width: 200px; }
.tn-ai .av { box-shadow: none; }
.tn-ai > span { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
.tn-ai b { color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tn-ai small { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 220px; }
.tn-c-bar { width: 32%; min-width: 180px; }
.tn-bar { display: flex; gap: 2px; height: 14px; border-radius: 4px; overflow: hidden; }
.tn-bar i { display: block; background: var(--m); min-width: 3px; }
.tn-dg { display: inline-flex; gap: 4px; }
table.tn-bang .qua-han { display: inline-flex; align-items: center; gap: 3px; }
table.tn-bang .qua-han .ic { width: 13px; height: 13px; }
table.tn-bang tfoot td { background: #f6f8fc; font-weight: 600; border-top: 2px solid var(--line); color: var(--ink); }

/* ================================================================ ĐỀ XUẤT – từ chối ngay dưới hàng nút; lọc trạng thái */
.dx-tc.modal { width: auto; margin: 14px 0 0; padding: 14px 16px 12px; border: 1px solid var(--bad-line); border-radius: 14px; background: #f9fcff; box-shadow: none; animation: nbHien .16s ease; }
@keyframes nbHien { from { opacity: 0; transform: translateY(-4px); } }
.dx-tc-dau { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.dx-tc-dau > div { display: flex; flex-direction: column; line-height: 1.35; min-width: 0; }
.dx-tc-dau b { color: var(--ink); } .dx-tc-dau div span { font-size: 12.5px; color: var(--muted); }
.dx-tc-ic { width: 34px; height: 34px; border-radius: 10px; background: var(--bad-soft); color: var(--bad); display: inline-flex; align-items: center; justify-content: center; flex: none; }
.dx-tc .f { display: grid; gap: 4px; }
.dx-tc textarea { width: 100%; }
.dx-tc.modal > .actions { margin-top: 10px !important; padding-top: 10px; }
.dx-tt button .ic { width: 14px; height: 14px; }
.dx-tt .dxt-cho-duyet .ic { color: #9a6300; } .dx-tt .dxt-da-duyet .ic { color: var(--ok); } .dx-tt .dxt-tu-choi .ic { color: var(--bad); }
.dx-tt button.on .ic { color: inherit; }
.dx-loc { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.dx-loc .dx-tt { flex: 1 1 100%; }

/* ================================================================ BẢNG TIN – thẻ tin (ảnh bìa, lưu tin, đã xem bởi) */
.bt-loc { margin-bottom: 12px; }
.bt-loc button .ic { width: 14px; height: 14px; }
.bt-tin { padding: 0; overflow: hidden; }
.bt-tin.moi { box-shadow: inset 4px 0 0 var(--brand), var(--shadow); }
.bt-bia { position: relative; display: block; aspect-ratio: 16 / 9; max-height: 380px; width: 100%; background: #e3e9f2; overflow: hidden; }
.bt-bia img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.bt-tin:hover .bt-bia img { transform: scale(1.02); }
.bt-than { padding: 14px 20px 6px; }
.bt-nhan { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; min-height: 28px; }
.bt-nhan .tag .ic { width: 13px; height: 13px; }
.bt-luu { display: inline-flex; align-items: center; gap: 5px; min-height: 30px; padding: 0 11px 0 9px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--muted); font-size: 12.5px; font-weight: 600; cursor: pointer; }
.bt-luu .ic { width: 15px; height: 15px; }
.bt-luu:hover { border-color: var(--main-line); color: var(--main-dark); }
.bt-luu.on { background: var(--main-soft); border-color: var(--main-line); color: var(--main-dark); }
.bt-luu.on .ic { fill: currentColor; }
.bt-tin .bt-tieu { margin: 8px 0 6px !important; }
.bt-tin .bt-tom { -webkit-line-clamp: 3; color: var(--text); white-space: normal; }
.bt-tg { display: flex; align-items: center; gap: 10px; margin-top: 12px; }
.bt-tg .av { box-shadow: none; }
.bt-tin .bt-chan { margin: 10px 0 0; padding: 6px 12px 8px; border-top: 1px solid var(--line-soft); gap: 4px 6px; }
.bt-hd-nut { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 12px; border-radius: 10px; border: 0; background: none; color: var(--muted); font-weight: 600; font-size: 13px; cursor: pointer; text-decoration: none; }
.bt-hd-nut .ic { width: 16px; height: 16px; }
.bt-hd-nut:hover { background: #eef2f8; color: var(--ink); }
.bt-thich.bt-hd-nut { border: 0; }
.bt-thich.bt-hd-nut.on { color: var(--main-dark); background: var(--main-soft); }
.bt-xem { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; color: var(--muted); padding-right: 6px; }
.bt-xem .avs .av { box-shadow: 0 0 0 1.5px #fff; }
.bt-hd.co-luu { grid-template-columns: 1fr 1fr 1fr; }
.bt-nut.on .ic { fill: rgba(0, 51, 153, .18); }
#luu-tin.on .ic { fill: currentColor; }

/* ================================================================ CHẤM CÔNG – tuần này; chọn tháng gọn */
.ccn-tuan { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 5px; margin-top: 16px; max-width: 470px; }
.ccn-tn { display: flex; flex-direction: column; align-items: center; gap: 1px; padding: 6px 2px 7px; border-radius: 11px; background: #f2f5f9; border: 1px solid transparent; min-width: 0; line-height: 1.15; }
.ccn-tn .tn-thu { font-size: 10.5px; font-weight: 700; color: var(--nb-nhat); letter-spacing: .03em; }
.ccn-tn .tn-ngay { font-size: 13px; font-weight: 700; color: var(--ink); }
.ccn-tn .tn-ky { font-size: 13px; font-weight: 800; min-height: 16px; }
.ccn-tn .tn-gio { font-size: 9.5px; color: inherit; opacity: .9; text-align: center; min-height: 11px; white-space: nowrap; }
.ccn-tn.hn { border: 2px solid var(--brand); }
.ccn-tn.sau { background: #f8fafe; border: 1px dashed #d9dfe8; }
.thang-chon { position: relative; display: inline-flex; align-items: center; gap: 7px; min-height: 34px; padding: 4px 12px; border: 1px solid var(--line); border-radius: 10px; background: #fff; font-weight: 600; color: var(--ink); cursor: pointer; white-space: nowrap; }
.thang-chon:hover { border-color: #c4cddb; }
.thang-chon:focus-within { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(0, 51, 153, .14); }
.thang-chon .ic { width: 15px; height: 15px; color: var(--muted); }
.thang-chon input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; border: 0; padding: 0; margin: 0; cursor: pointer; font-size: 16px; }
.qp-cho-t { color: #8a5300; font-weight: 600; }
table.ccn-bang td.o.khong-vt::after { content: ""; position: absolute; top: 3px; right: 3px; width: 6px; height: 6px; border-radius: 50%; border: 2px solid var(--bad); background: #fff; }

/* ================================================================ LƯƠNG – thẻ chi phí 12 tháng + cơ cấu; bảng cột tên / thực lĩnh cố định */
.lg-pt-l { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(300px, 1fr); gap: 18px 28px; align-items: start; }
.lg-bd { position: relative; display: grid; grid-template-columns: 52px minmax(0, 1fr); grid-template-rows: var(--cao) auto; column-gap: 6px; padding-top: 16px; }
.lg-bd-y { position: relative; grid-row: 1; grid-column: 1; }
.lg-bd-y span { position: absolute; right: 0; transform: translateY(50%); font-size: 11px; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.lg-bd-o { position: relative; grid-row: 1; grid-column: 2; display: flex; align-items: flex-end; gap: 2px; border-bottom: 1px solid #cbd2de; }
.lg-bd-l { position: absolute; left: 0; right: 0; height: 1px; background: var(--line-soft); }
.lg-bd-c { position: relative; flex: 1; height: 100%; display: flex; align-items: flex-end; justify-content: center; text-decoration: none; border-radius: 6px 6px 0 0; }
.lg-bd-c:hover, .lg-bd-c:focus-visible { background: rgba(42, 120, 214, .06); outline: 0; }
.lg-bd-c i { position: relative; display: block; width: 62%; max-width: 24px; border-radius: 4px 4px 0 0; background: #2a78d6; }
.lg-bd-c.tt-nhap i { background: repeating-linear-gradient(45deg, #2a78d6 0 3px, #a9c8ef 3px 7px); }
.lg-bd-c.chon i { box-shadow: 0 0 0 2px #fff, 0 0 0 4px rgba(42, 120, 214, .35); }
.lg-bd-c em { position: absolute; left: 50%; transform: translateX(-50%); font-style: normal; font-size: 11.5px; font-weight: 700; color: var(--ink); white-space: nowrap; }
.lg-bd-c.phai em { left: auto; right: 0; transform: none; } .lg-bd-c.trai em { left: 0; transform: none; }
.lg-bd-o, .lg-bd-x, .lg-bd-c, .lg-bd-x span { min-width: 0; }
.lg-bd-trong { position: absolute; bottom: 2px; font-size: 12px; color: var(--deco, #a3abb7); font-weight: 600; }
.lg-bd-x { grid-row: 2; grid-column: 2; display: flex; gap: 2px; margin-top: 4px; }
.lg-bd-x span { flex: 1; text-align: center; font-size: 11.5px; font-weight: 600; color: var(--muted); line-height: 1.15; }
.lg-bd-x span small { font-size: 10px; font-weight: 500; }
.lg-bd-x span small.nhap { display: block; font-size: 10px; color: #1d4f91; font-weight: 700; }
.lg-bd-x span.chon { color: var(--ink); font-weight: 800; }
.lg-bd-ghi { display: flex; flex-wrap: wrap; gap: 4px 16px; margin-top: 10px; font-size: 12px; color: var(--muted); }
.lg-bd-ghi span { display: inline-flex; align-items: center; gap: 6px; }
.lg-bd-ghi .o { width: 12px; height: 12px; border-radius: 3px; background: #2a78d6; }
.lg-bd-ghi .o.nhap { background: repeating-linear-gradient(45deg, #2a78d6 0 3px, #a9c8ef 3px 6px); }
.lg-cc-t { font-weight: 700; color: var(--ink); font-size: 13.5px; margin-bottom: 10px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.lg-cc { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.lg-vong .giua b { font-size: 19px; }
.lg-cc-gt { flex: 1; min-width: 190px; }
.lg-cc-gt > div { gap: 8px; }
.lg-cc-gt b { margin-left: auto; color: var(--ink); }
.lg-cc-gt small { width: 42px; text-align: right; color: var(--muted); font-variant-numeric: tabular-nums; }
.lg-cc-tong { padding-top: 6px; margin-top: 2px; border-top: 1px dashed var(--line); font-weight: 700; color: var(--ink); }
.lg-cc-tong b { margin-left: auto; }
.lg-dv { display: flex; gap: 10px; align-items: flex-start; }
.lg-dv > .ic { margin-top: 2px; flex: none; }
.lg-dv-nd { display: grid; gap: 6px; min-width: 0; flex: 1; }
.lg-dv-nut { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.lg-kb-d summary { cursor: pointer; font-weight: 600; }
.lg-kb-wrap { margin-top: 8px; box-shadow: none; max-height: 260px; }
table.lg-kb td, table.lg-kb th { padding: 6px 10px; font-size: 12.5px; }
table.lg-kb td .av { vertical-align: middle; box-shadow: none; }
.modal table.lg-kb { width: 100%; }
/* bảng lương: tên cố định bên trái, Thực lĩnh cố định bên phải, các cột giữa cuộn ngang (1280px vẫn thấy Thực lĩnh) */
@media (min-width: 721px) {
  table.lg-bang { min-width: 1080px; }
  table.lg-bang th.lg-nv-c, table.lg-bang td.lg-nv-c { position: sticky; left: 0; z-index: 2; background: #fff; width: 236px; min-width: 236px; max-width: 236px; box-shadow: 1px 0 0 var(--line); }
  table.lg-bang thead th.lg-nv-c, table.lg-bang tfoot td.lg-nv-c { z-index: 3; }
  table.lg-bang th.lg-tl, table.lg-bang td.lg-tl { position: sticky; right: 0; z-index: 2; background: #f6fbf8; min-width: 132px; box-shadow: -1px 0 0 var(--line), -8px 0 12px -10px rgba(21, 24, 29, .25); }
  table.lg-bang thead th { background: #f6f8fc; }
  table.lg-bang thead th.lg-tl { background: #eef8f2; }
  table.lg-bang tfoot td.lg-nv-c { background: #f6f8fc; }
  table.lg-bang tfoot td.lg-tl { background: #e8f5ed; }
  table.lg-bang tbody tr:hover td.lg-nv-c { background: var(--hover); }
  table.lg-bang .lg-nv { min-width: 0; }
  table.lg-bang .lg-nv > span { min-width: 0; flex: 1; }
  table.lg-bang .lg-nv b, table.lg-bang .lg-nv small { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
}
.lg-phieu { display: inline-flex; align-items: center; gap: 4px; margin-top: 3px; font-size: 12px; font-weight: 600; text-decoration: none; color: var(--main); }
.lg-phieu .ic { width: 13px; height: 13px; }
table.lg-bang td.lg-tl { text-align: right; }
table.lg-bang td.lg-tl > b, table.lg-bang td.lg-tl > .lg-phieu { display: block; }
table.lg-bang td.lg-tl > .lg-phieu { display: inline-flex; }

/* ---------------- 0.3.2: màn hình vừa / điện thoại cho các phần mới */
@media (max-width: 1280px) {
  .v-tom { grid-template-columns: auto minmax(0, 1fr) auto; }
  .vtm-cot { grid-column: 1 / -1; }
  .vtm-bd { height: 40px; }
}
@media (max-width: 1180px) {
  .lg-pt-l { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 720px) {
  .v-tom { grid-template-columns: minmax(0, 1fr) auto; gap: 12px 14px; padding: 12px 14px; }
  .vtm-tien { grid-column: 1 / -1; grid-row: 2; }
  .vtm-so { grid-column: 2; grid-row: 1; }
  .vtm-o { padding: 6px 9px; gap: 7px; }
  .vtm-o > .ic { width: 26px; height: 26px; padding: 6px; }
  .vtm-o b { font-size: 17px; }
  .vtm-tong > b { font-size: 26px; }
  .gt-tren { padding: 0 12px 10px; }
  .gt-nut { margin-left: 0; }
  .gt-chu { order: 3; flex-basis: 100%; }
  .gt-ten { padding-left: 10px; }
  table.tn-bang thead { display: none; }
  table.tn-bang, table.tn-bang tbody, table.tn-bang tfoot { display: block; }
  table.tn-bang tr { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px 10px; padding: 12px 14px; border-bottom: 1px solid var(--line-soft); }
  table.tn-bang td { display: flex; justify-content: space-between; gap: 6px; padding: 0 !important; border: 0 !important; font-size: 13px; text-align: right; }
  table.tn-bang td[data-l]::before { content: attr(data-l); color: var(--muted); font-size: 12px; text-align: left; }
  table.tn-bang td.tn-ai, table.tn-bang td.tn-c-bar { grid-column: 1 / -1; justify-content: flex-start; text-align: left; }
  table.tn-bang tfoot tr { background: #f6f8fc; }
  table.tn-bang tfoot td:first-child { grid-column: 1 / -1; }
  table.tn-bang tfoot td.tn-c-bar { display: none; }
  .tn-c-bar { width: auto; min-width: 0; }
  .lg-bd { grid-template-columns: 44px minmax(0, 1fr); }
  .lg-bd-c em { font-size: 10.5px; }
  .lg-bd-x span { font-size: 10.5px; }
  .lg-bd-x span small:not(.nhap) { display: none; }
  .lg-bd-x span small.nhap { font-size: 9px; }
}
@media (max-width: 560px) {
  /* điện thoại: ô nhập chữ ≥ 16px (iPhone không tự phóng to khi bấm vào ô) */
  .nb-trang :is(input:not([type=checkbox]):not([type=radio]):not([type=file]), select, textarea) { font-size: 16px !important; }
  .v-nhanh .vn-ng { flex: 1 1 100%; }
  .v-nhanh .vn-han { flex: 1 1 0; }
  .page-head .v-xem { width: 100%; }
  .page-head .v-xem button { padding: 6px 6px; gap: 4px; font-size: 12.5px; }
  .vtm-chu { gap: 2px 6px; }
  .vtm-chu button { font-size: 12.5px; padding: 2px 6px 2px 3px; }
  .bt-than { padding: 12px 14px 4px; }
  .bt-tin .bt-chan { padding: 4px 6px 6px; }
  .bt-xem > span:last-child { font-size: 12px; }
  .bt-hd.co-luu .bt-nut span { font-size: 13px; }
  .ccn-tuan { order: 8; width: 100%; max-width: none; margin-top: 10px; gap: 4px; }
  .ccn-tn .tn-gio { display: none; }
  .kq-chon { max-width: none; }
  .dx-tc.modal { padding: 12px; }
  .lg-cc { justify-content: center; }
  .thang-chon { padding: 4px 10px; }
  .page-head .act .thang-nav { flex: 1 1 auto; justify-content: space-between; }
}
@media (max-width: 400px) {
  .page-head .v-xem button .ic { display: none; }
  .vtm-so { flex-direction: column; gap: 6px; }
}

/* ---------------- màn hình cảm ứng: nút, ô chọn nhỏ của phần nội bộ ≥ 32 × 32 px (khung chung lo .icon-btn, .tick, .link, .chip…) */
@media (pointer: coarse) {
  .vrow .tick, .vc-o .x-nho, .bl-xoa, .v-nguoi-loc button { width: 32px; height: 32px; min-width: 32px; min-height: 32px; display: inline-flex; align-items: center; justify-content: center; }
  .ccn-vt-thu, .lg-phieu, .bt-luu, .vt-chuyen, .gt-ngoai, .vtm-chu button, .bt-hd-nut, .kq-p { min-height: 32px; }
  .ccn-vt-thu, .lg-phieu, .vtm-chu button { display: inline-flex; align-items: center; padding: 4px 8px; }
  .kq-p { padding: 0 10px 0 8px; }
  .nb-trang input[type=checkbox], .modal .ccn-sua-o input[type=checkbox], .modal .lg-pc-o input[type=checkbox], .modal #l-dong { width: 32px; height: 32px; flex: none; }
  .vc-o.check-row { min-height: 48px; }
  .nb-trang label.check { min-height: 40px; }
  .gt-bar { height: 24px; margin-top: -12px; }
  .gt-dt .gt-bar { margin-top: 0; bottom: 7px; }
  .lg-bd-c { min-width: 0; }
  .ccn-tn { min-height: 52px; }
}
