/* CMS vận hành AMS (CMS1; giao diện CMS4): kiểu trang duy nhất. Phông Be Vietnam Pro tự lưu, tài nguyên cùng nguồn, không chuyển động. */

/* Phông Be Vietnam Pro (SIL Open Font License 1.1; bản quyền và giấy phép trong siêu dữ liệu của từng tệp; toàn văn ở licenses/be_vietnam_pro.txt của repo). */
@font-face {
  font-family: "Be Vietnam Pro";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/tinh/phong/BeVietnamPro-Regular.ttf) format("truetype");
}

@font-face {
  font-family: "Be Vietnam Pro";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/tinh/phong/BeVietnamPro-Medium.ttf) format("truetype");
}

@font-face {
  font-family: "Be Vietnam Pro";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/tinh/phong/BeVietnamPro-SemiBold.ttf) format("truetype");
}

@font-face {
  font-family: "Be Vietnam Pro";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/tinh/phong/BeVietnamPro-Bold.ttf) format("truetype");
}

:root {
  --thuong-hieu-900: #0f2257;
  --thuong-hieu-800: #183480;
  --thuong-hieu-700: #1f449e;
  --thuong-hieu-400: #3a96d7;
  --thuong-hieu-100: #d3e6f6;
  --thuong-hieu-50: #eaf3fb;
  --nen-ung-dung: #f6f7f9;
  --nen-be-mat: #ffffff;
  --nen-nhat: #eef0f4;
  --vien-nhat: #e3e6ec;
  --vien-mac-dinh: #c9ced8;
  --vien-o-nhap: #7b8494;
  --chu-chinh: #14171f;
  --chu-phu: #3a4150;
  --chu-mo: #5b6372;
  --chu-tren-toi: #ffffff;
  --chu-tren-toi-mo: #b9c6e6;
  --tot: #0f7b3e;
  --tot-nen: #e4f5ea;
  --can-xem: #8a5300;
  --can-xem-nen: #fff3db;
  --loi: #a81218;
  --loi-nen: #fdecec;
  --thong-tin: #0263e8;
  --thong-tin-nen: #e6effd;
  --bong-the: 0 1px 2px rgba(20, 23, 31, 0.06), 0 4px 12px -2px rgba(20, 23, 31, 0.05);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

/* Chữ (T.2): Be Vietnam Pro, dự phòng phông hệ thống; cỡ tính bằng rem. */
html {
  font: 100%/1.5 "Be Vietnam Pro", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--chu-chinh);
  background: var(--nen-ung-dung);
}

body {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.25rem;
}

h1 {
  margin: 0;
  font-size: 1.75rem;
  line-height: 2.25rem;
  font-weight: 700;
  letter-spacing: -0.5px;
}

h2 {
  margin: 0 0 1rem;
  font-size: 1rem;
  line-height: 1.5rem;
  font-weight: 600;
}

h3 {
  margin: 1rem 0 0.5rem;
  font-size: 0.875rem;
  line-height: 1.25rem;
  font-weight: 600;
}

p {
  margin: 0 0 0.75rem;
}

ul,
ol {
  margin: 0 0 0.75rem;
  padding-left: 1.25rem;
}

a {
  color: var(--thuong-hieu-800);
  font-weight: 600;
}

code {
  font-family: ui-monospace, monospace;
  overflow-wrap: anywhere;
}

/* Khoảng cách, thẻ (T.3): lưới 4 px; mỗi khối một thẻ trắng viền mảnh; khối cách nhau 1.5rem, thẻ cạnh nhau 1.25rem. */
main {
  max-width: 90rem;
  margin: 0 auto;
  padding: 1.75rem 2rem 2.5rem;
}

main section,
.the,
.chi-tiet,
.o-viec li {
  margin: 0 0 1.5rem;
  padding: 1.25rem 1.5rem;
  border: 1px solid var(--vien-nhat);
  border-radius: 12px;
  background: var(--nen-be-mat);
  box-shadow: var(--bong-the);
}

main section,
.the {
  overflow-x: auto;
}

main section > :last-child,
.the > :last-child {
  margin-bottom: 0;
}

.luoi-2-cot {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(22rem, 1fr));
  gap: 1.25rem;
  align-items: start;
  margin: 0 0 1.5rem;
}

.luoi-2-cot > * {
  margin-bottom: 0;
}

/* Biểu tượng nét Lucide (T.4): mặt nạ tô màu chữ, mỗi hình một tệp cùng nguồn; chỉ trang trí (aria-hidden), luôn có chữ kèm. */
.bt,
.thanh-ben nav a::before,
.o-viec a::before,
.thong-bao::before,
.bang::before,
.nguoi-dung button::before,
.quay-lai a::before,
td[data-label="Xem"] a::after,
.vung-tai-tep::before {
  content: "";
  display: inline-block;
  flex: none;
  width: 1.25rem;
  height: 1.25rem;
  background-color: currentcolor;
  -webkit-mask: no-repeat center / contain;
  mask: no-repeat center / contain;
}

.bt-menu {
  -webkit-mask-image: url(/tinh/bieu-tuong/menu.svg);
  mask-image: url(/tinh/bieu-tuong/menu.svg);
}

.bt-x {
  -webkit-mask-image: url(/tinh/bieu-tuong/x.svg);
  mask-image: url(/tinh/bieu-tuong/x.svg);
}

.nguoi-dung button::before {
  -webkit-mask-image: url(/tinh/bieu-tuong/log-out.svg);
  mask-image: url(/tinh/bieu-tuong/log-out.svg);
}

.bang::before,
.thong-bao.canh-bao::before {
  -webkit-mask-image: url(/tinh/bieu-tuong/triangle-alert.svg);
  mask-image: url(/tinh/bieu-tuong/triangle-alert.svg);
}

.thong-bao::before {
  -webkit-mask-image: url(/tinh/bieu-tuong/info.svg);
  mask-image: url(/tinh/bieu-tuong/info.svg);
}

.thong-bao.thanh-cong::before {
  -webkit-mask-image: url(/tinh/bieu-tuong/circle-check.svg);
  mask-image: url(/tinh/bieu-tuong/circle-check.svg);
}

.thong-bao.loi::before {
  -webkit-mask-image: url(/tinh/bieu-tuong/circle-alert.svg);
  mask-image: url(/tinh/bieu-tuong/circle-alert.svg);
}

.quay-lai a::before {
  -webkit-mask-image: url(/tinh/bieu-tuong/chevron-left.svg);
  mask-image: url(/tinh/bieu-tuong/chevron-left.svg);
}

td[data-label="Xem"] a::after {
  -webkit-mask-image: url(/tinh/bieu-tuong/chevron-right.svg);
  mask-image: url(/tinh/bieu-tuong/chevron-right.svg);
}

.vung-tai-tep::before {
  -webkit-mask-image: url(/tinh/bieu-tuong/upload.svg);
  mask-image: url(/tinh/bieu-tuong/upload.svg);
}

.quay-lai a {
  display: inline-flex;
  gap: 0.25rem;
  align-items: center;
  font-weight: 500;
}

.quay-lai a::before {
  width: 1rem;
  height: 1rem;
}

td[data-label="Xem"] a {
  display: inline-flex;
  align-items: center;
}

td[data-label="Xem"] a::after {
  width: 1rem;
  height: 1rem;
}

.thanh-ben nav a[href="/"]::before,
.o-viec a[href="/"]::before {
  -webkit-mask-image: url(/tinh/bieu-tuong/house.svg);
  mask-image: url(/tinh/bieu-tuong/house.svg);
}

.thanh-ben nav a[href="/trang-thai"]::before,
.o-viec a[href="/trang-thai"]::before {
  -webkit-mask-image: url(/tinh/bieu-tuong/activity.svg);
  mask-image: url(/tinh/bieu-tuong/activity.svg);
}

.thanh-ben nav a[href="/tra-cuu"]::before,
.o-viec a[href="/tra-cuu"]::before {
  -webkit-mask-image: url(/tinh/bieu-tuong/search.svg);
  mask-image: url(/tinh/bieu-tuong/search.svg);
}

.thanh-ben nav a[href="/yeu-cau-xoa"]::before,
.o-viec a[href="/yeu-cau-xoa"]::before {
  -webkit-mask-image: url(/tinh/bieu-tuong/user-x.svg);
  mask-image: url(/tinh/bieu-tuong/user-x.svg);
}

.thanh-ben nav a[href="/loa"]::before,
.o-viec a[href="/loa"]::before {
  -webkit-mask-image: url(/tinh/bieu-tuong/speaker.svg);
  mask-image: url(/tinh/bieu-tuong/speaker.svg);
}

.thanh-ben nav a[href="/ma-dai-ly"]::before,
.o-viec a[href="/ma-dai-ly"]::before {
  -webkit-mask-image: url(/tinh/bieu-tuong/key-round.svg);
  mask-image: url(/tinh/bieu-tuong/key-round.svg);
}

.thanh-ben nav a[href="/tien-ve-bi-bo"]::before,
.o-viec a[href="/tien-ve-bi-bo"]::before {
  -webkit-mask-image: url(/tinh/bieu-tuong/banknote.svg);
  mask-image: url(/tinh/bieu-tuong/banknote.svg);
}

.thanh-ben nav a[href="/bang-phi"]::before,
.o-viec a[href="/bang-phi"]::before {
  -webkit-mask-image: url(/tinh/bieu-tuong/percent.svg);
  mask-image: url(/tinh/bieu-tuong/percent.svg);
}

.thanh-ben nav a[href="/ma-gioi-thieu"]::before,
.o-viec a[href="/ma-gioi-thieu"]::before {
  -webkit-mask-image: url(/tinh/bieu-tuong/ticket.svg);
  mask-image: url(/tinh/bieu-tuong/ticket.svg);
}

.thanh-ben nav a[href="/bao-cao"]::before,
.o-viec a[href="/bao-cao"]::before {
  -webkit-mask-image: url(/tinh/bieu-tuong/chart-column.svg);
  mask-image: url(/tinh/bieu-tuong/chart-column.svg);
}

.thanh-ben nav a[href="/token-zalo"]::before,
.o-viec a[href="/token-zalo"]::before {
  -webkit-mask-image: url(/tinh/bieu-tuong/message-circle.svg);
  mask-image: url(/tinh/bieu-tuong/message-circle.svg);
}

.thanh-ben nav a[href="/van-ban"]::before,
.o-viec a[href="/van-ban"]::before {
  -webkit-mask-image: url(/tinh/bieu-tuong/file-text.svg);
  mask-image: url(/tinh/bieu-tuong/file-text.svg);
}

.thanh-ben nav a[href="/nhan-vien"]::before,
.o-viec a[href="/nhan-vien"]::before {
  -webkit-mask-image: url(/tinh/bieu-tuong/users.svg);
  mask-image: url(/tinh/bieu-tuong/users.svg);
}

.thanh-ben nav a[href="/ngay-nghi"]::before,
.o-viec a[href="/ngay-nghi"]::before {
  -webkit-mask-image: url(/tinh/bieu-tuong/calendar.svg);
  mask-image: url(/tinh/bieu-tuong/calendar.svg);
}

/* Nút (T.4): bốn kiểu; nút đầu trang là hành động chính. */
button,
.nut-lien-ket {
  display: inline-flex;
  gap: 0.5rem;
  align-items: center;
  justify-content: center;
  min-height: 2.5rem;
  padding: 0 1rem;
  border: 1px solid transparent;
  border-radius: 8px;
  font: inherit;
  font-size: 0.875rem;
  line-height: 1.25rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}

.nut-chinh {
  background: var(--thuong-hieu-800);
  color: var(--chu-tren-toi);
}

.nut-chinh:hover {
  background: var(--thuong-hieu-700);
}

.nut-phu,
.nut-lien-ket {
  border-color: var(--vien-mac-dinh);
  background: var(--nen-be-mat);
  color: var(--chu-chinh);
}

.nut-phu:hover,
.nut-lien-ket:hover {
  background: var(--nen-ung-dung);
}

.nut-nguy-hiem {
  background: var(--loi);
  color: var(--chu-tren-toi);
}

.thao-tac-trang .nut-lien-ket {
  border-color: transparent;
  background: var(--thuong-hieu-800);
  color: var(--chu-tren-toi);
}

.thao-tac-trang .nut-lien-ket:hover {
  background: var(--thuong-hieu-700);
}

.hang-nut {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  align-items: center;
}

.thao-tac form {
  display: inline-block;
  margin: 0 0.5rem 0.5rem 0;
}

.thao-tac button {
  min-height: 2rem;
  padding: 0 0.75rem;
}

.khung-dang-nhap main button {
  width: 100%;
  min-height: 2.75rem;
}

/* Ô nhập (T.4): nhãn phía trên, ô cao 2.75rem, viền đạt 3:1; lỗi viền 2 px đỏ. */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="date"],
input[type="file"],
select,
textarea {
  display: block;
  width: 100%;
  max-width: 28rem;
  min-height: 2.75rem;
  padding: 0.625rem 0.75rem;
  border: 1px solid var(--vien-o-nhap);
  border-radius: 8px;
  font: inherit;
  font-size: 1rem;
  line-height: 1.5rem;
  color: var(--chu-chinh);
  background: var(--nen-be-mat);
}

textarea {
  max-width: none;
}

input[aria-invalid="true"],
select[aria-invalid="true"],
textarea[aria-invalid="true"] {
  border: 2px solid var(--loi);
}

input[type="checkbox"] {
  width: 1.25rem;
  height: 1.25rem;
  margin: 0;
  vertical-align: middle;
  accent-color: var(--thuong-hieu-800);
}

label {
  display: block;
  margin-bottom: 0.375rem;
  font-size: 0.8125rem;
  line-height: 1.125rem;
  font-weight: 500;
}

input[type="checkbox"] + label {
  display: inline;
  margin-left: 0.625rem;
  font-size: 0.875rem;
  line-height: 1.25rem;
  font-weight: 400;
}

.bieu-mau p {
  margin: 0 0 1rem;
}

.bieu-mau-ngang .bieu-mau {
  display: flex;
  flex-wrap: wrap;
  gap: 0 0.75rem;
  align-items: flex-end;
}

.bieu-mau-ngang .bieu-mau p:has(input, select) {
  flex: 1 1 16rem;
}

.bieu-mau-ngang input,
.bieu-mau-ngang select {
  max-width: none;
}

.goi-y,
.mo-ta {
  font-size: 0.75rem;
  line-height: 1rem;
  font-weight: 400;
  color: var(--chu-mo);
}

.loi-o {
  display: block;
  margin-top: 0.375rem;
  font-size: 0.75rem;
  line-height: 1rem;
  font-weight: 500;
  color: var(--loi);
}

.thao-tac select,
.thao-tac input[type="text"] {
  display: inline-block;
  width: auto;
  min-height: 2rem;
  padding: 0.25rem 0.5rem;
  font-size: 0.875rem;
  line-height: 1.25rem;
}

.vung-tai-tep {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1.5rem;
  border: 1.5px dashed var(--vien-mac-dinh);
  border-radius: 10px;
  background: var(--nen-ung-dung);
  text-align: center;
}

.vung-tai-tep::before {
  margin-bottom: 0.5rem;
  width: 1.5rem;
  height: 1.5rem;
  background-color: var(--thuong-hieu-800);
}

/* Hộp lưu ý (T.4): bốn loại, nền nhạt, biểu tượng đúng loại; mặc định là thông tin. */
.thong-bao {
  display: block;
  position: relative;
  margin: 0 0 1.5rem;
  padding: 0.75rem 1rem 0.75rem 2.75rem;
  border-radius: 10px;
  background: var(--thong-tin-nen);
  color: var(--chu-phu);
  font-weight: 500;
}

.thong-bao::before {
  position: absolute;
  top: 0.8125rem;
  left: 1rem;
  width: 1.125rem;
  height: 1.125rem;
  background-color: var(--thong-tin);
}

.thong-bao.thanh-cong {
  background: var(--tot-nen);
}

.thong-bao.thanh-cong::before {
  background-color: var(--tot);
}

.thong-bao.canh-bao {
  background: var(--can-xem-nen);
}

.thong-bao.canh-bao::before {
  background-color: var(--can-xem);
}

.thong-bao.loi {
  background: var(--loi-nen);
  color: var(--loi);
}

.thong-bao.loi::before {
  background-color: var(--loi);
}

td.canh-bao,
dd.canh-bao {
  background: transparent;
  color: var(--can-xem);
  font-weight: 500;
}

td.loi,
dd.loi {
  background: transparent;
  color: var(--loi);
  font-weight: 500;
}

/* Bảng (T.4): đầu bảng nền nhạt bo 8 px, hàng ngăn bằng đường kẻ mảnh, dòng cuối không đường; bảng rộng cuộn trong thẻ. */
table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}

th,
td {
  padding: 0.75rem;
  border-bottom: 1px solid var(--vien-nhat);
  text-align: left;
  vertical-align: middle;
}

tbody tr:last-child th,
tbody tr:last-child td {
  border-bottom: 0;
}

thead th {
  border-bottom: 0;
  background: var(--nen-ung-dung);
  color: var(--chu-mo);
  font-size: 0.75rem;
  line-height: 1rem;
  font-weight: 600;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}

thead th:first-child {
  border-radius: 8px 0 0 8px;
}

thead th:last-child {
  border-radius: 0 8px 8px 0;
}

tbody th {
  font-weight: 500;
}

tr[class^="trang-thai-"] td[data-label="Trạng thái"] {
  font-weight: 500;
}

.trang-thai-ok td[data-label="Trạng thái"] {
  color: var(--tot);
}

.trang-thai-warn td[data-label="Trạng thái"] {
  color: var(--can-xem);
}

.trang-thai-bad td[data-label="Trạng thái"] {
  color: var(--loi);
}

.trang-thai-info td[data-label="Trạng thái"] {
  color: var(--thong-tin);
}

@media (min-width: 768px) {
  tr[class^="trang-thai-"] td[data-label="Trạng thái"]::before {
    content: "";
    display: inline-block;
    width: 6px;
    height: 6px;
    margin-right: 0.5rem;
    border-radius: 50%;
    background-color: currentcolor;
    vertical-align: middle;
  }
}

/* Chi tiết: thẻ, lưới hai cột tên và giá trị. */
.chi-tiet {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 0.5rem 1.5rem;
}

.chi-tiet dt {
  color: var(--chu-mo);
}

.chi-tiet dd {
  margin: 0;
  font-weight: 500;
}

.so form {
  display: inline-block;
  margin-left: 0.5rem;
}

.ma-kich-hoat code {
  font-size: 1.25rem;
  font-weight: 700;
}

/* CMS2: toàn văn văn bản pháp lý ở trang xem và trang duyệt: xuống dòng mềm, cuộn dọc tối đa 60vh. */
.van-ban {
  max-height: 60vh;
  margin: 0 0 1rem;
  padding: 0.75rem 1rem;
  overflow-y: auto;
  border: 1px solid var(--vien-nhat);
  border-radius: 10px;
  background: var(--nen-ung-dung);
  font-family: ui-monospace, monospace;
  font-size: 1rem;
  line-height: 1.5rem;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.chi-doc-man-hinh {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

:focus-visible {
  outline: 3px solid var(--thuong-hieu-400);
  outline-offset: 2px;
}

/* Trang chủ (T.4): mỗi việc một ô thẻ, hình theo đường dẫn như mục menu. */
.o-viec {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr));
  gap: 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.o-viec li {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-width: 0;
  margin: 0;
}

.o-viec a {
  display: inline-flex;
  gap: 0.5rem;
  align-items: center;
  font-size: 1rem;
  line-height: 1.5rem;
  font-weight: 600;
  text-decoration: none;
}

.o-viec a::before {
  color: var(--thuong-hieu-800);
}

/* Khung sau đăng nhập (T.5): thanh bên cố định bên trái, thanh trên, vùng chính. */
.khung {
  display: grid;
  grid-template-columns: 16.5rem 1fr;
  min-height: 100vh;
  background: linear-gradient(to right, var(--thuong-hieu-900) 16.5rem, transparent 16.5rem);
}

.thanh-ben {
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  height: 100vh;
  padding: 1rem;
  overflow: hidden;
  background: var(--thuong-hieu-900);
  color: var(--chu-tren-toi);
}

.dau-thanh-ben {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  margin-bottom: 1rem;
}

.logo {
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 9px;
  background: linear-gradient(160deg, var(--thuong-hieu-400), var(--thuong-hieu-800));
  color: var(--chu-tren-toi);
  font-size: 0.8125rem;
  font-weight: 700;
}

.ten-ung-dung {
  margin: 0;
  font-size: 1rem;
  line-height: 1.5rem;
  font-weight: 600;
}

.nhom-menu {
  margin: 1rem 0 0.25rem;
  padding: 0 0.75rem;
  font-size: 0.75rem;
  line-height: 1rem;
  font-weight: 600;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  color: var(--chu-tren-toi-mo);
}

.thanh-ben nav {
  flex: 1 1 auto;
  min-height: 0;
  margin: 0 -0.3125rem;
  padding: 0 0.3125rem 0.3125rem;
  overflow-y: auto;
}

.thanh-ben nav ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.thanh-ben nav a {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  min-height: 2.5rem;
  padding: 0 0.75rem;
  border-radius: 8px;
  color: var(--chu-tren-toi-mo);
  font-weight: 400;
  text-decoration: none;
}

.thanh-ben nav a:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--chu-tren-toi);
}

.thanh-ben nav a[aria-current="page"] {
  background: var(--thuong-hieu-700);
  color: var(--chu-tren-toi);
  font-weight: 500;
}

.thanh-ben nav a[aria-current="page"]::before {
  background-color: var(--thuong-hieu-400);
}

.nguoi-dung {
  margin-top: auto;
  padding: 0.75rem;
  border-radius: 10px;
  background: var(--thuong-hieu-800);
}

.email-nhan-vien {
  margin: 0;
  font-size: 0.75rem;
  line-height: 1rem;
  font-weight: 500;
  overflow-wrap: anywhere;
}

.vai-tro {
  margin: 0 0 0.5rem;
  font-size: 0.75rem;
  line-height: 1rem;
  color: var(--chu-tren-toi-mo);
}

.nguoi-dung form {
  margin: 0;
}

.nguoi-dung button {
  min-height: 2rem;
  padding: 0 0.75rem;
  border-color: var(--thuong-hieu-700);
  background: transparent;
  color: var(--chu-tren-toi);
}

.nguoi-dung button:hover {
  background: var(--thuong-hieu-700);
}

.nguoi-dung button::before {
  width: 1rem;
  height: 1rem;
}

.vung-chinh {
  min-width: 0;
}

.thanh-tren {
  display: flex;
  gap: 1rem;
  align-items: center;
  justify-content: flex-end;
  min-height: 4rem;
  padding: 0 2rem;
  border-bottom: 1px solid var(--vien-nhat);
  background: var(--nen-be-mat);
}

.bang {
  display: inline-flex;
  gap: 0.375rem;
  align-items: center;
  padding: 0.25rem 0.625rem;
  border: 1px solid currentcolor;
  border-radius: 6px;
  font-size: 0.75rem;
  line-height: 1rem;
  font-weight: 600;
}

.bang::before {
  width: 0.875rem;
  height: 0.875rem;
}

.bang-staging,
.bang-test {
  background: var(--can-xem-nen);
  color: var(--can-xem);
}

.bang-production {
  background: var(--loi-nen);
  color: var(--loi);
}

.dau-trang {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

.tieu-de-trang p {
  max-width: 60rem;
  margin: 0.25rem 0 0;
  color: var(--chu-mo);
}

.thao-tac-trang {
  margin: 0;
}

.quay-lai {
  margin: 0 0 0.25rem;
}

.nut-menu,
.nut-dong-menu,
.lop-phu-menu,
.ten-ung-dung-nho {
  display: none;
}

/* Khung trước đăng nhập (T.6): khối giới thiệu nền xanh bên trái, thẻ biểu mẫu giữa vùng phải. */
.khung-dang-nhap {
  display: grid;
  grid-template-columns: minmax(0, 37.5rem) minmax(32.75rem, 1fr);
  min-height: 100vh;
}

.gioi-thieu {
  padding: 3.5rem;
  background: linear-gradient(160deg, var(--thuong-hieu-900), var(--thuong-hieu-800));
  color: var(--chu-tren-toi);
}

.gioi-thieu .ten-ung-dung {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.gioi-thieu .logo {
  width: 2.75rem;
  height: 2.75rem;
}

.khung-dang-nhap .vung-chinh {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.khung-dang-nhap main {
  width: 100%;
  max-width: 28.75rem;
  margin: 0;
  padding: 2.5rem;
  border: 1px solid var(--vien-nhat);
  border-radius: 12px;
  background: var(--nen-be-mat);
  box-shadow: var(--bong-the);
}

.khung-dang-nhap main .bang {
  margin-bottom: 1rem;
}

.khung-dang-nhap main input[type="text"],
.khung-dang-nhap main input[type="email"],
.khung-dang-nhap main input[type="password"] {
  max-width: none;
}

/* Màn hẹp (T.7), dưới 768 px: thanh bên thành menu kéo ra bằng :target (không JavaScript), bảng thành thẻ, một cột. */
@media (max-width: 767.98px) {
  .khung,
  .khung-dang-nhap {
    display: block;
    background: none;
  }

  .gioi-thieu {
    padding: 1rem;
  }

  .gioi-thieu .logo {
    width: 2.25rem;
    height: 2.25rem;
  }

  .thanh-ben {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 20;
    width: 18.75rem;
    height: auto;
    visibility: hidden;
    transform: translateX(-100%);
  }

  .thanh-ben:target {
    visibility: visible;
    transform: none;
  }

  .thanh-ben:target + .lop-phu-menu {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 10;
    background: rgba(15, 34, 87, 0.5);
  }

  .nut-dong-menu,
  .nut-menu {
    display: inline-flex;
    flex: none;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    color: var(--chu-tren-toi);
  }

  .nut-dong-menu {
    margin-left: auto;
  }

  .thanh-tren {
    flex-wrap: wrap;
    justify-content: flex-start;
    min-height: 3.5rem;
    padding: 0 1rem 0 0.25rem;
    border-bottom: 0;
    background: var(--thuong-hieu-900);
    color: var(--chu-tren-toi);
  }

  .ten-ung-dung-nho {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    margin: 0;
    font-weight: 600;
  }

  .ten-ung-dung-nho .logo {
    width: 1.75rem;
    height: 1.75rem;
    font-size: 0.625rem;
  }

  .thanh-tren .bang {
    flex-basis: 100%;
    justify-content: center;
    margin: 0 0 0.5rem 0.75rem;
  }

  main {
    padding: 1rem;
  }

  .khung-dang-nhap main {
    padding: 1.5rem;
  }

  .khung-dang-nhap .vung-chinh {
    padding: 1rem;
  }

  .luoi-2-cot {
    grid-template-columns: 1fr;
  }

  .o-viec {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }

  .chi-tiet {
    grid-template-columns: 1fr;
  }

  table,
  thead,
  tbody,
  tr,
  th,
  td {
    display: block;
  }

  thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }

  tr {
    margin-bottom: 0.75rem;
    border: 1px solid var(--vien-nhat);
    border-radius: 10px;
  }

  tbody tr:last-child {
    margin-bottom: 0;
  }

  th,
  td,
  tbody tr:last-child th,
  tbody tr:last-child td {
    border-bottom: 1px solid var(--vien-nhat);
  }

  tbody tr th:last-child,
  tbody tr td:last-child {
    border-bottom: 0;
  }

  td[data-label]::before,
  th[data-label]::before {
    content: attr(data-label) ": ";
    color: var(--chu-mo);
    font-weight: 600;
  }
}

@media (prefers-contrast: more) {
  input[type="text"],
  input[type="email"],
  input[type="password"],
  input[type="date"],
  input[type="file"],
  select,
  textarea,
  button,
  .nut-lien-ket,
  th,
  td,
  tr,
  main section,
  .the,
  .chi-tiet,
  .o-viec li {
    border-width: 2px;
    border-color: #000;
  }

  .thanh-tren {
    border-bottom: 2px solid #000;
  }

  .thanh-ben nav a[aria-current="page"] {
    border: 2px solid var(--chu-tren-toi);
  }
}
