/* KENDU HRM — lớp bổ sung trên giao_dien.css (KENDU CAR). KHÔNG sửa lõi giao_dien.css.
   Quy ước hiển thị (06/11/2026): MỌI chữ căn giữa hoặc căn đều (không căn trái). Xem khối "Căn lề" ở cuối file. */

body.hrm { text-align: center; }
body.hrm .noi-dung { padding-top: 28px; }

/* Header: tên đơn vị (tenant) + nút đăng xuất */
.dau-phai { display: flex; align-items: center; gap: 16px; min-width: 0; }
.ten-tenant { color: #fff; font-weight: 700; font-size: 1rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 42vw; }

/* Thanh chức năng: cuộn ngang trong khung riêng, không làm trang cuộn ngang */
.thanh-menu {
  background: rgba(255, 255, 255, 0.85); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid #dbe6f7; position: sticky; top: 68px; z-index: 40;
  padding: 0 max(24px, calc((100% - 1320px) / 2 + 24px)); overflow-x: auto;
}
.thanh-menu ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; white-space: nowrap; }
.thanh-menu a { display: inline-flex; align-items: center; min-height: 48px; padding: 0 16px; color: var(--text-dark); text-decoration: none; font-weight: 600; border-bottom: 3px solid transparent; }
.thanh-menu a:hover { color: var(--primary); }
.thanh-menu a.dang-chon { color: var(--primary); border-bottom-color: var(--primary); }
.thanh-menu a:focus-visible { outline: 3px solid #0b1b33; outline-offset: -3px; }

/* Tiêu đề trang và hàng công cụ */
.tieu-de-trang { font-size: 1.75rem; font-weight: 800; margin: 0 0 8px; letter-spacing: -0.02em; }
.tieu-de-hang { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 8px; }
.tieu-de-hang .tieu-de-trang { margin: 0; }
.phu-trai { color: var(--text-muted); margin: 0 0 8px; }

/* Ô nhập bổ sung (giao_dien.css chưa phủ tel/password/search/number) */
body.hrm input[type="tel"], body.hrm input[type="password"], body.hrm input[type="search"], body.hrm input[type="number"] {
  width: 100%; min-height: 56px; padding: 12px 16px; font-size: 1.125rem; color: var(--text-dark);
  background: #fff; border: 1.5px solid #cbd5e1; border-radius: 12px; text-align: left;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
body.hrm input[type="tel"]:focus, body.hrm input[type="password"]:focus, body.hrm input[type="search"]:focus, body.hrm input[type="number"]:focus {
  outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px rgba(79, 91, 240, 0.15);
}
body.hrm input[type="text"], body.hrm input[type="email"], body.hrm select { text-align: left; }

/* Trang đăng nhập */
.khung-dang-nhap { max-width: 440px; margin: 48px auto; }
.trang-dang-nhap .tieu-de-trang, .trang-dang-nhap .phu-trai, .trang-dang-nhap .ghi-chu { text-align: center; }

/* Thanh lọc */
.thanh-loc { display: grid; gap: 16px; align-items: end; grid-template-columns: 1fr; margin: 16px 0; padding: 20px 24px; }
.thanh-loc label { margin-top: 0; }
@media (min-width: 760px) { .thanh-loc { grid-template-columns: 2fr 1fr auto; } }
.thanh-loc .nut { min-height: 56px; }

/* Bảng */
.khung-bang { padding: 8px 24px 24px; }
.tong-so { margin: 16px 0 8px; }
.bang-cuon { overflow-x: auto; border: 1px solid #dbe6f7; border-radius: 12px; background: #fff; }
table.bang { width: 100%; border-collapse: collapse; font-size: 1rem; min-width: 720px; }
.bang th, .bang td { padding: 14px 16px; text-align: left; border-bottom: 1px solid #e8eef8; vertical-align: middle; }
.bang thead th { background: #eef3fc; color: #334155; font-weight: 700; font-size: 0.9375rem; position: sticky; top: 0; }
.bang tbody tr:hover { background: #f6f9ff; }
.bang tbody tr:last-child td { border-bottom: 0; }
.bang a { font-weight: 600; text-decoration: none; }
.bang a:hover { text-decoration: underline; }
.bang td.rong { text-align: center; color: var(--text-muted); padding: 32px; }

/* Nhãn trạng thái */
.nhan { display: inline-block; padding: 4px 12px; border-radius: 999px; font-size: 0.9375rem; font-weight: 600; }
.nhan-xanh { background: var(--green-bg); color: #047857; }
.nhan-vang { background: var(--yellow-bg); color: #b45309; }
.nhan-xam { background: var(--gray-bg); color: #475569; }
.nhan-do { background: var(--red-bg); color: #b91c1c; }

/* Phân trang */
.phan-trang { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin-top: 20px; }
.phan-trang a { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 0 12px; border: 1.5px solid #cbd5e1; border-radius: 12px; background: #fff; color: var(--text-dark); text-decoration: none; font-weight: 600; }
.phan-trang a:hover { border-color: var(--primary); color: var(--primary); }
.phan-trang a.dang-chon { background: var(--grad-nut); color: #fff; border-color: transparent; }

/* HTMX: trạng thái đang tải (không dùng style chèn sẵn của HTMX vì CSP) */
.htmx-request #vung-bang, #vung-bang.htmx-request { opacity: 0.55; transition: opacity 0.15s ease; }

@media (max-width: 640px) {
  .ten-tenant { display: none; }
  .thanh-menu { top: 68px; }
}


/* ===== Dashboard (không dùng style nội tuyến vì CSP; thanh biểu đồ là SVG, độ dài đặt bằng thuộc tính) ===== */
.tieu-de-muc { font-size: 1.25rem; font-weight: 800; margin: 28px 0 12px; letter-spacing: -0.01em; }
.tieu-de-the { font-size: 1.0625rem; font-weight: 700; margin: 0 0 12px; }
.loi-chao { font-size: 1.25rem; margin: 0 0 8px; }

.canh-bao { margin: 0 0 12px; padding: 14px 18px; border-radius: 12px; border-left: 6px solid; font-size: 1rem; }
.canh-bao.khan { background: var(--red-bg); color: #991b1b; border-color: #dc2626; }
.canh-bao.vang { background: var(--yellow-bg); color: #92400e; border-color: #d97706; }
.canh-bao.xanh { background: #e8f1ff; color: #1e3a8a; border-color: #3b82f6; }

.luoi-the { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); margin-bottom: 16px; }
.the-so { display: flex; flex-direction: column; gap: 4px; padding: 20px 24px; }
.nhan-so { color: var(--text-muted); font-weight: 600; }
.so-lon { font-size: 2.25rem; font-weight: 800; color: var(--primary); line-height: 1.1; }

.luoi-bieu-do { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); margin: 16px 0; }
.the-bieu-do { padding: 20px 24px; }
.ds-thanh { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.hang-thanh { display: grid; grid-template-columns: minmax(110px, 38%) 1fr auto; gap: 12px; align-items: center; }
.ten-thanh { overflow-wrap: anywhere; }
.so-thanh { font-weight: 700; white-space: nowrap; }
.so-thanh small { font-weight: 400; color: var(--text-muted); }
.thanh { width: 100%; height: 12px; display: block; }
.thanh-nen { fill: #e8eef8; }
.thanh-gia-tri { fill: var(--primary); }
@media (max-width: 480px) { .hang-thanh { grid-template-columns: 1fr auto; } .hang-thanh .thanh { grid-column: 1 / -1; order: 3; } }

.ds-sinh-nhat { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 8px; }
.ds-sinh-nhat li { padding: 10px 14px; border-radius: 10px; background: #f4f8ff; }
.ds-sinh-nhat li.hom-nay { background: var(--green-bg); }
.ds-sinh-nhat li.da-qua { color: var(--text-muted); }
.ngay-sn { display: inline-block; min-width: 3.2em; font-weight: 700; color: var(--primary); }
.the-sinh-nhat { border-left: 6px solid #22c55e; }

/* ===== Hồ sơ nhân viên ===== */
.duong-quay-lai { margin: 0 0 12px; }
.ho-so-dau { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.ho-so-dau .tieu-de-trang { margin: 0 0 4px; }
.avatar-chu { width: 88px; height: 88px; border-radius: 50%; display: grid; place-items: center; flex: none;
  font-size: 2rem; font-weight: 800; color: #fff; background: var(--grad-nut); box-shadow: 0 4px 15px rgba(79, 91, 240, 0.25); }
.ho-so-muc { margin-top: 16px; }
.ds-thong-tin { margin: 0; display: grid; gap: 0; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); column-gap: 32px; }
.dong-tt { display: grid; grid-template-columns: minmax(120px, 40%) 1fr; gap: 12px; padding: 10px 0; border-bottom: 1px solid #e8eef8; }
.dong-tt dt { color: var(--text-muted); font-weight: 600; }
.dong-tt dd { margin: 0; overflow-wrap: anywhere; }


/* ===== Thanh đầu trang: 2 dòng (tên đơn vị đậm; họ tên + vai trò nhỏ hơn 1 cỡ) ===== */
.nguoi-dung { display: flex; flex-direction: column; align-items: flex-end; line-height: 1.3; min-width: 0; }
.thong-tin-user { color: #cfe0ff; font-weight: 400; font-size: 0.875rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 42vw; }

/* ===== Gọn hơn 1 cỡ: chữ giảm 1 cỡ (16px -> 14px gốc), hàng thấp hơn ===== */
html { font-size: 87.5%; }
body.hrm .noi-dung { padding-top: 20px; }
body.hrm .khung { padding: 16px 20px; }
body.hrm .tieu-de-trang { font-size: 1.6rem; }
.bang th, .bang td { padding: 6px 10px; }
.bang thead th { font-size: 0.875rem; }
.dong-tt { padding: 5px 0; }
.thanh-menu a { min-height: 40px; padding: 0 14px; }
.thanh-menu { top: 68px; }
body.hrm .nut { min-height: 40px; padding: 0 22px; font-size: 1rem; box-shadow: 0 3px 10px rgba(124, 58, 237, 0.25); }
body.hrm .nut-nho { min-height: 36px; padding: 0 16px; }
body.hrm input[type="text"], body.hrm input[type="tel"], body.hrm input[type="password"], body.hrm input[type="search"],
body.hrm input[type="number"], body.hrm input[type="email"], body.hrm input[type="date"], body.hrm select, body.hrm textarea { min-height: 38px; padding: 6px 12px; font-size: 1rem; }
body.hrm textarea { min-height: 76px; }
.thanh-loc { padding: 12px 16px; gap: 12px; }
.thanh-loc .nut { min-height: 38px; }
.the-so { padding: 12px 16px; }
.so-lon { font-size: 1.75rem; }
.canh-bao { padding: 8px 14px; margin-bottom: 8px; }
.ds-sinh-nhat { gap: 6px; }
.ds-sinh-nhat li { padding: 6px 10px; }
.ds-thanh { gap: 6px; }
.phan-trang a { min-height: 34px; min-width: 34px; }
@media (pointer: coarse) {          /* màn hình cảm ứng: giữ vùng chạm tối thiểu 44px */
  body.hrm .nut, body.hrm .nut-nho, body.hrm input, body.hrm select, .thanh-menu a, .phan-trang a { min-height: 44px; }
}

/* ===== Dashboard: biểu đồ SVG (màu qua lớp CSS vì CSP không cho style nội tuyến) ===== */
:root { --m0: #4f5bf0; --m1: #22b8f0; --m2: #7c3aed; --m3: #10b981; --m4: #f59e0b; --m5: #ef4444; --m6: #ec4899; --m7: #14b8a6; --m8: #8b5cf6; --m9: #64748b; }
.lat.c0 { fill: var(--m0); } .lat.c1 { fill: var(--m1); } .lat.c2 { fill: var(--m2); } .lat.c3 { fill: var(--m3); } .lat.c4 { fill: var(--m4); }
.lat.c5 { fill: var(--m5); } .lat.c6 { fill: var(--m6); } .lat.c7 { fill: var(--m7); } .lat.c8 { fill: var(--m8); } .lat.c9 { fill: var(--m9); }
.mau { display: inline-block; width: 10px; height: 10px; border-radius: 3px; flex: none; }
.mau.c0 { background: var(--m0); } .mau.c1 { background: var(--m1); } .mau.c2 { background: var(--m2); } .mau.c3 { background: var(--m3); } .mau.c4 { background: var(--m4); }
.mau.c5 { background: var(--m5); } .mau.c6 { background: var(--m6); } .mau.c7 { background: var(--m7); } .mau.c8 { background: var(--m8); } .mau.c9 { background: var(--m9); }
.luoi-bieu-do { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 12px; }
.the-bieu-do { padding: 14px 16px; }
.the-bieu-do .tieu-de-the { margin-bottom: 8px; font-size: 1rem; }
.vanh-bo-cuc { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.vanh { width: 140px; height: 140px; flex: none; }
.vanh .lat { stroke: #fff; stroke-width: 0.8; }
.tam-so { font-size: 13px; font-weight: 800; fill: var(--text-dark); }
.tam-nhan { font-size: 5px; fill: var(--text-muted); }
.ten-ct { overflow-wrap: anywhere; }
.so-ct { font-weight: 700; white-space: nowrap; }
.so-ct small { font-weight: 400; color: var(--text-muted); }
.cot-ds { list-style: none; margin: 0; padding: 0; display: flex; gap: 8px; align-items: flex-end; }
.cot-muc { flex: 1; min-width: 0; display: grid; grid-template-rows: auto 120px auto; gap: 4px; text-align: center; }
.cot-so { font-weight: 700; }
.cot-hinh { width: 100%; height: 120px; display: block; }
.cot-ten { font-size: 0.8125rem; overflow-wrap: anywhere; line-height: 1.2; }
.duong-hinh { width: 100%; height: auto; display: block; }
.duong-hinh .truc { stroke: #cbd5e1; stroke-width: 0.4; }
.duong-net { fill: none; stroke: var(--primary); stroke-width: 1; stroke-linejoin: round; }
.duong-diem { fill: var(--primary); }
.duong-so { font-size: 3.6px; font-weight: 700; fill: var(--text-dark); }
.duong-nhan { list-style: none; margin: 0; padding: 0; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; text-align: center; font-size: 0.8125rem; }
.bang .so, .bang th.so { text-align: right; }
.bang tfoot .dong-tong th, .bang tfoot .dong-tong td { font-weight: 700; background: #eef3fc; border-top: 2px solid #cbd5e1; text-align: left; }
.bang tfoot .dong-tong td.so { text-align: right; }
.ghi-chu-dam { margin: 4px 0 8px; }
.ghi-chu-dong { font-weight: 400; color: var(--text-muted); }
.ds-sinh-nhat.hai-cot { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 24px; }
@media (max-width: 640px) { .ds-sinh-nhat.hai-cot { grid-template-columns: 1fr; } .thong-tin-user { max-width: 36vw; } }

/* ===== Ứng viên: tab, biểu mẫu ===== */
body.hrm .khung { margin: 12px 0; }
body.hrm textarea { width: 100%; padding: 6px 12px; font-size: 1rem; color: var(--text-dark); background: #fff; border: 1.5px solid #cbd5e1; border-radius: 12px; font-family: inherit; resize: vertical; text-align: left; }
body.hrm textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px rgba(79, 91, 240, 0.15); }
body.hrm label { margin: 8px 0 4px; }
.tab-ds { display: flex; gap: 4px; flex-wrap: wrap; margin: 8px 0; border-bottom: 1px solid #dbe6f7; }
.tab-ds a { padding: 8px 14px; text-decoration: none; color: var(--text-dark); font-weight: 600; border-bottom: 3px solid transparent; }
.tab-ds a:hover { color: var(--primary); }
.tab-ds a.dang-chon { color: var(--primary); border-bottom-color: var(--primary); }
.tab-ds .dem { display: inline-block; min-width: 1.6em; padding: 0 6px; margin-left: 4px; border-radius: 999px; background: #eef3fc; font-size: 0.8125rem; text-align: center; }
.thanh-loc-uv { grid-template-columns: 1fr; }
@media (min-width: 760px) { .thanh-loc-uv { grid-template-columns: 2fr 1.4fr auto; } }
.luoi-form { display: grid; gap: 0 20px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.o-form { min-width: 0; }
.sao { color: #dc2626; }
.loi-truong { color: #b91c1c; margin: 4px 0 0; font-size: 0.875rem; }
.hang-hanh-dong { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
.nut-nguy-hiem { color: #b91c1c; border-color: #fca5a5; }
.o-ghi-chu { max-width: 260px; overflow-wrap: anywhere; }
.o-thao-tac a { margin-right: 10px; }
.chi-doc { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ===== Biểu mẫu nhân viên ===== */
.nhom-form .tieu-de-the { margin-bottom: 6px; }
.ghi-chu-nho { margin: 2px 0 4px; font-size: 0.8125rem; color: var(--text-muted); }
.nhan-tick { display: flex; align-items: center; gap: 8px; font-weight: 600; margin: 8px 0; }
.nhan-tick input { width: auto; min-height: 0; flex: none; }
.o-tick { align-self: end; }

/* ===== Chatbot (thay cho style nội tuyến — CSP không cho phép). Chữ căn đều/giữa theo quy ước KENDU ===== */
.khung-chat { max-width: 900px; margin: 12px auto; }
.ds-tin-nhan { display: flex; flex-direction: column; gap: 12px; margin-bottom: 16px; }
.tin-nhan { display: flex; gap: 10px; }
.tin-nhan .avatar { width: 36px; height: 36px; flex: none; display: flex; align-items: center; justify-content: center; background: #f3f0ff; border-radius: 50%; font-size: 18px; }
.tin-user .avatar { background: #e0f2fe; }
.noi-dung-tin { flex: 1; min-width: 0; }
.meta-tin { font-size: 0.8125rem; color: var(--text-muted); margin-bottom: 4px; text-align: center; }
.markdown-body { padding: 10px 14px; background: #fafafa; border-radius: 8px; line-height: 1.6; white-space: pre-wrap; overflow-wrap: anywhere; text-align: justify; }
.tin-assistant .markdown-body { background: #f0f9ff; }
.chat-rong { text-align: center; padding: 32px; color: var(--text-muted); }
.form-hoi { display: flex; flex-direction: column; gap: 10px; margin-top: 16px; }
.form-hoi textarea { width: 100%; }
.form-nho-dong { display: inline; }
.o-credit { width: 70px; }
.anh-qr { display: block; max-width: 280px; width: 100%; margin: 12px auto; }
.khung-dang-ky p, .khung-chat p { text-align: justify; }
.ghi-chu { text-align: center; }
.hang-xoa-ls { margin-top: 16px; text-align: center; }

/* ===== Căn lề: giữa hoặc đều (ghi đè các quy tắc căn trái phía trên) ===== */
body.hrm p, body.hrm li { text-align: justify; text-align-last: center; }      /* đoạn văn căn đều; dòng cuối/đoạn 1 dòng căn giữa */
body.hrm h1, body.hrm h2, body.hrm h3, .tieu-de-trang, .tieu-de-muc, .tieu-de-the { text-align: center; }
.tieu-de-hang { justify-content: center; }
.tab-ds, .thanh-menu ul { justify-content: center; }
.thanh-menu a { text-align: center; }
body.hrm label { display: block; text-align: center; }
body.hrm input, body.hrm select, body.hrm textarea { text-align: center; text-align-last: center; }
body.hrm textarea { text-align: justify; text-align-last: auto; }
.bang th, .bang td, .bang .so, .bang th.so, .bang tfoot .dong-tt th, .bang tfoot .dong-tong th, .bang tfoot .dong-tong td, .bang tfoot .dong-tong td.so { text-align: center; }
.bang td.o-ghi-chu { text-align: justify; }
.dong-tt dt, .dong-tt dd { text-align: center; }
.dong-tt { justify-items: center; align-items: center; }
.phu-trai, .ghi-chu, .ghi-chu-nho, .loi-truong, .duong-quay-lai { text-align: center; text-align-last: center; }
.hang-hanh-dong { justify-content: center; }
.avatar-chu { margin: 0 auto; }
.ho-so-dau { justify-content: center; text-align: center; }
.nguoi-dung { align-items: flex-end; text-align: right; }        /* tiêu đề thanh đầu trang: sát mép phải cạnh nút Đăng xuất */

/* ===== BHXH: bộ lọc kỳ + hai bảng tăng/giảm ===== */
.thanh-loc-ky { display: grid; grid-template-columns: 1fr 1fr auto; gap: 12px; align-items: end; max-width: 560px; margin: 12px auto; }
.thanh-loc-ky .o-form { margin: 0; }
.thanh-loc-ky .nut { min-height: 38px; }
@media (max-width: 520px) { .thanh-loc-ky { grid-template-columns: 1fr 1fr; } .thanh-loc-ky .o-form:last-child { grid-column: 1 / -1; } }
.luoi-hai-bang { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(420px, 1fr)); margin: 12px 0; }
.luoi-hai-bang .khung-bang { padding: 12px 16px 16px; min-width: 0; }
.luoi-hai-bang table.bang { min-width: 0; }
@media (max-width: 520px) { .luoi-hai-bang { grid-template-columns: 1fr; } }

.tab-ds.tab-che-do { margin-top: 0; }
.thanh-chon-nv { display: grid !important; grid-template-columns: 1fr auto !important; gap: 12px !important; align-items: end !important; max-width: 640px !important; margin: 24px auto !important; }
body.hrm .chu-thich, body.hrm .chu-thich li, body.hrm .chu-thich .ten-ct, body.hrm .chu-thich .so-ct { text-align-last: auto !important; text-align: left !important; }
body.hrm .chu-thich { display: flex !important; flex-direction: column !important; align-items: flex-start !important; justify-content: center !important; margin: 0 !important; padding: 0 !important; list-style: none !important; }
body.hrm .chu-thich li { display: flex !important; flex-direction: row !important; justify-content: flex-start !important; align-items: center !important; width: 100% !important; gap: 8px !important; margin: 0 0 4px 0 !important; padding: 0 !important; }
body.hrm .chu-thich .ten-ct { flex: 1 !important; text-align: left !important; white-space: normal !important; }
body.hrm .chu-thich .so-ct { text-align: right !important; white-space: nowrap !important; margin-left: auto !important; }
body.hrm .vanh-bo-cuc { display: flex !important; flex-direction: row !important; align-items: center !important; gap: 12px !important; flex-wrap: nowrap !important; }
/* ===== Dashboard: lịch nhắc hẹn cá nhân, lời chúc sinh nhật (căn đều/giữa, không nội tuyến) ===== */
.dong-nhac { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.dong-nhac .nd-nhac { flex: 1 1 240px; margin: 0; }
.khung-nhac > summary { cursor: pointer; font-weight: 600; text-align: center; padding: 4px 0; }
.ds-nhac { list-style: none; margin: 12px 0; padding: 0; display: grid; gap: 8px; }
.ds-nhac li { display: flex; align-items: center; gap: 12px; padding: 8px 12px; border-radius: 10px; background: #f4f8ff; }
.ds-nhac .nd-nhac { flex: 1; min-width: 0; overflow-wrap: anywhere; text-align: justify; text-align-last: left; }
.khoi-loi-chuc { white-space: pre-wrap; overflow-wrap: anywhere; padding: 14px 18px; border-radius: 12px; background: #f8fafc; border: 1px solid #cbd5e1; text-align: justify; font-family: inherit; line-height: 1.6; }

/* Dashboard 12/11/2026: biểu đồ cột (Trình độ học vấn) giãn hết chiều cao thẻ, cột đặt sát đáy thẻ —
   thẻ cùng hàng với 2 biểu đồ tròn nên cao bằng nhau; cột vẫn đúng tỉ lệ (cột cao nhất = toàn bộ vùng vẽ). */
.the-bieu-do { display: flex; flex-direction: column; }
.the-bieu-do > .cot-ds { flex: 1 1 auto; min-height: 180px; align-items: stretch; border-bottom: 1px solid #e2e8f0; padding-bottom: 6px; }
.the-bieu-do .cot-muc { grid-template-rows: auto minmax(120px, 1fr) auto; }
.the-bieu-do .cot-hinh { height: 100%; min-height: 0; contain: size; }   /* bỏ kích thước tự nhiên của SVG để không kéo thẻ cao lên */


/* Cột Thao tác của bảng quyết định nhân sự: 3 nút (In lại QĐ · Sửa QĐ · Hoàn tác) gọn trên một hàng */
body.hrm td.o-thao-tac-nho { white-space: nowrap; text-align: center; }
body.hrm td.o-thao-tac-nho .nut-nho { min-height: 30px; padding: 0 9px; font-size: .78rem; line-height: 1.1; margin: 0 2px; vertical-align: middle; }
@media (pointer: coarse) { body.hrm td.o-thao-tac-nho .nut-nho { min-height: 40px; } }      /* màn cảm ứng: giữ vùng chạm đủ lớn */

/* ---- 20/11/2026: tab Chấm công của Danh mục + Đơn xin nghỉ ---- */
[hidden] { display: none !important; }
.cc-fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.cc-ds-chon { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 8px 0 12px; }
.cc-ds-chon label { display: inline-flex; align-items: center; gap: 6px; }
.cc-bang-dd input, .cc-bang-tc input[type=number], .cc-bang-tc input[type=text] { width: 100%; min-width: 72px; }
.cc-bang-dd td:first-child input, .cc-bang-tc td:last-child input { min-width: 160px; }
.cc-lay-toa-do { margin-top: 12px; }
.so-tien { text-align: right; white-space: nowrap; }
.bang tfoot td { font-weight: 600; }

