/* App Vận Hành KA Baby — cùng tông màu với web theo dõi khách (giấy kem, cam đất, xanh lá). */
:root {
  --paper: #FBF8F4;
  --card: #FFFFFF;
  --ink: #2B2622;
  --ink-2: #6E655D;
  --ink-3: #A0958B;
  --line: #EBE3D9;
  --clay: #C4692E;
  --clay-dam: #A9561F;
  --clay-soft: #F8E9DB;
  --sage: #5E7A63;
  --sage-soft: #E9F0E9;
  --honey: #B98A2E;
  --honey-soft: #FBF1DC;
  --do: #B3261E;
  --do-soft: #FBE7E4;
  --xanh: #2F6DB5;
  --r: 14px;
  --r-nho: 10px;
  --bong: 0 1px 2px rgba(43, 38, 34, .06), 0 4px 16px rgba(43, 38, 34, .06);
  --sans: 'Be Vietnam Pro', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
  --cao-thanh-duoi: 64px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #1D1916;
    --card: #272220;
    --ink: #F1EAE3;
    --ink-2: #B6ABA1;
    --ink-3: #8A7F75;
    --line: #39312B;
    --clay: #E29A5F;
    --clay-dam: #F0B07C;
    --clay-soft: #3A2A1A;
    --sage: #8FA894;
    --sage-soft: #26302A;
    --honey: #D8AC5A;
    --honey-soft: #33291A;
    --do: #F2877D;
    --do-soft: #3A201D;
    --xanh: #7FB0EA;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
a { color: var(--clay); }
button, input, select, textarea { font: inherit; color: inherit; }
img { max-width: 100%; }
.so { font-variant-numeric: tabular-nums; }
.an { display: none !important; }
.phu-de { color: var(--ink-2); font-size: 14px; }
.nho-xiu { color: var(--ink-3); font-size: 13px; }

/* ------------------------------------------------ khung */
.man-cho { min-height: 100vh; display: grid; place-content: center; text-align: center; color: var(--ink-2); gap: 8px; }
.khung { min-height: 100vh; display: flex; flex-direction: column; }
.thanh-tren {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 10px;
  padding: calc(env(safe-area-inset-top) + 10px) 16px 10px;
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.thanh-tren img { width: 32px; height: 31px; }
.thanh-tren .tieu-de { font-weight: 700; font-size: 17px; flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.thanh-tren .nut-ve { border: 0; background: none; font-size: 22px; padding: 4px 8px 4px 0; cursor: pointer; color: var(--ink); }
.nguoi-dung { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-2); text-align: right; }
.nguoi-dung b { color: var(--ink); display: block; font-size: 14px; }
.bang-demo { background: var(--honey-soft); color: var(--honey); border-bottom: 1px solid var(--line); text-align: center; font-size: 13px; font-weight: 600; padding: 6px 12px; }
.noi-dung { flex: 1; width: 100%; max-width: 760px; margin: 0 auto; padding: 16px 16px calc(var(--cao-thanh-duoi) + env(safe-area-inset-bottom) + 24px); }

.thanh-duoi {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  display: flex; justify-content: space-around;
  padding: 6px 4px calc(env(safe-area-inset-bottom) + 6px);
  background: var(--card); border-top: 1px solid var(--line);
}
.thanh-duoi a {
  flex: 1; max-width: 120px; display: flex; flex-direction: column; align-items: center; gap: 2px;
  text-decoration: none; color: var(--ink-3); font-size: 11.5px; font-weight: 600; padding: 4px 2px; border-radius: 10px;
}
.thanh-duoi a .bieu-tuong { font-size: 21px; line-height: 1.1; }
/* 7 mục trên điện thoại hẹp: chữ không xuống dòng */
@media (max-width: 899px) { .thanh-duoi a { min-width: 0; white-space: nowrap; font-size: 10.5px; letter-spacing: -.1px; } }
.thanh-duoi a.dang-mo { color: var(--clay); background: var(--clay-soft); }

@media (min-width: 900px) {
  .khung { flex-direction: row; }
  .thanh-duoi {
    position: sticky; top: 0; height: 100vh; width: 220px; flex-direction: column; justify-content: flex-start;
    gap: 4px; padding: 20px 12px; border-top: 0; border-right: 1px solid var(--line); order: -1;
  }
  .thanh-duoi a { flex: none; max-width: none; flex-direction: row; gap: 10px; font-size: 15px; padding: 10px 12px; }
  .thanh-duoi .logo-ben { display: flex; align-items: center; gap: 10px; font-weight: 700; margin-bottom: 16px; padding: 0 8px; color: var(--ink); }
  .cot-chinh { flex: 1; min-width: 0; display: flex; flex-direction: column; }
  .noi-dung { padding-bottom: 40px; }
}
@media (max-width: 899px) { .thanh-duoi .logo-ben { display: none; } .cot-chinh { display: contents; } }

/* ------------------------------------------------ khối */
.the { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--bong); padding: 16px; margin-bottom: 12px; }
.the h2, .the h3 { margin: 0 0 10px; font-size: 17px; }
.the.phang { box-shadow: none; }
h1.man { font-size: 22px; margin: 4px 0 14px; }
.hang { display: flex; align-items: center; gap: 10px; }
.hang.giua { justify-content: space-between; }
.hang.boc { flex-wrap: wrap; }
.cot { display: flex; flex-direction: column; gap: 10px; }
.luoi-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (max-width: 420px) { .luoi-2.co-gian { grid-template-columns: 1fr; } }
.gach { height: 1px; background: var(--line); margin: 12px 0; border: 0; }

/* ô vuông chức năng ở trang chủ */
.o-chuc-nang { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 16px; }
@media (min-width: 600px) { .o-chuc-nang { grid-template-columns: repeat(3, 1fr); } }
.o-chuc-nang a {
  display: flex; flex-direction: column; gap: 6px; padding: 16px; min-height: 104px;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--bong);
  text-decoration: none; color: var(--ink);
}
.o-chuc-nang a .bieu-tuong { font-size: 26px; }
.o-chuc-nang a b { font-size: 15.5px; }
.o-chuc-nang a span { font-size: 13px; color: var(--ink-2); }
.o-chuc-nang a.noi-bat { background: var(--clay); border-color: var(--clay); color: #fff; }
.o-chuc-nang a.noi-bat span { color: #fff; opacity: .9; }

/* ------------------------------------------------ nút */
.nut {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 10px 18px; border-radius: 12px; border: 1px solid var(--line);
  background: var(--card); color: var(--ink); font-weight: 600; font-size: 15.5px; cursor: pointer;
  text-decoration: none; transition: transform .06s ease, background .15s ease;
}
.nut:active { transform: scale(.98); }
.nut:disabled { opacity: .5; cursor: not-allowed; }
.nut.chinh { background: var(--clay); border-color: var(--clay); color: #fff; }
.nut.chinh:hover:not(:disabled) { background: var(--clay-dam); }
.nut.xanh-la { background: var(--sage); border-color: var(--sage); color: #fff; }
.nut.nguy { color: var(--do); border-color: color-mix(in srgb, var(--do) 40%, var(--line)); }
.nut.nho { min-height: 36px; padding: 6px 12px; font-size: 14px; border-radius: 10px; }
.nut.rong { width: 100%; }
.nut.trong { border-color: transparent; background: transparent; color: var(--clay); }

/* ------------------------------------------------ ô nhập */
.truong { display: flex; flex-direction: column; gap: 6px; }
.truong > span { font-size: 14px; font-weight: 600; color: var(--ink-2); }
.truong > span .bat-buoc { color: var(--do); }
.o-nhap, select.o-nhap, textarea.o-nhap {
  width: 100%; min-height: 46px; padding: 10px 12px; border-radius: 12px;
  border: 1px solid var(--line); background: var(--card); font-size: 16px;
}
textarea.o-nhap { min-height: 80px; resize: vertical; }
.o-nhap:focus { outline: 2px solid color-mix(in srgb, var(--clay) 55%, transparent); outline-offset: 1px; border-color: var(--clay); }
.o-nhap.so { text-align: right; }
.o-tim { position: relative; }
.o-tim .o-nhap { padding-left: 40px; }
.o-tim::before { content: '🔎'; position: absolute; left: 12px; top: 50%; transform: translateY(-50%); font-size: 16px; opacity: .6; }
.goi-y { font-size: 13px; color: var(--ink-3); }
.chon-nhanh { display: flex; flex-wrap: wrap; gap: 6px; }
.chon-nhanh button {
  border: 1px solid var(--line); background: var(--card); border-radius: 999px; padding: 7px 12px; font-size: 14px; cursor: pointer;
}
.chon-nhanh button.dang-chon { background: var(--clay-soft); border-color: var(--clay); color: var(--clay); font-weight: 600; }

/* ------------------------------------------------ danh sách */
.ds { display: flex; flex-direction: column; }
.ds-muc {
  display: flex; gap: 12px; align-items: flex-start; padding: 12px 0; border-bottom: 1px solid var(--line);
  text-decoration: none; color: inherit;
}
.ds-muc:last-child { border-bottom: 0; }
.ds-muc .than { flex: 1; min-width: 0; }
.ds-muc .ten { font-weight: 600; }
.ds-muc .phai { text-align: right; white-space: nowrap; }
a.ds-muc:active { background: var(--clay-soft); }

.huy-hieu { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: 12.5px; font-weight: 600; background: var(--paper); border: 1px solid var(--line); color: var(--ink-2); white-space: nowrap; }
.huy-hieu.cam { background: var(--clay-soft); border-color: transparent; color: var(--clay); }
.huy-hieu.xanh { background: var(--sage-soft); border-color: transparent; color: var(--sage); }
.huy-hieu.vang { background: var(--honey-soft); border-color: transparent; color: var(--honey); }
.huy-hieu.do { background: var(--do-soft); border-color: transparent; color: var(--do); }

.tien { font-variant-numeric: tabular-nums; font-weight: 600; white-space: nowrap; }
.tien.no { color: var(--do); }
.tien.du { color: var(--sage); }
.bang-tien { width: 100%; border-collapse: collapse; font-size: 15px; }
.bang-tien td { padding: 6px 0; }
.bang-tien td:last-child { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; padding-left: 10px; vertical-align: top; }
.bang-tien tr.tong td { font-weight: 700; border-top: 1px solid var(--line); padding-top: 10px; }

/* ------------------------------------------------ thông báo, hộp thoại */
.loi-hop { background: var(--do-soft); color: var(--do); border-radius: var(--r-nho); padding: 12px 14px; font-size: 14.5px; margin-bottom: 12px; }
.canh-bao { background: var(--honey-soft); color: var(--honey); border-radius: var(--r-nho); padding: 12px 14px; font-size: 14.5px; margin-bottom: 12px; }
.tot-hop { background: var(--sage-soft); color: var(--sage); border-radius: var(--r-nho); padding: 12px 14px; font-size: 14.5px; margin-bottom: 12px; }
.trong-rong { text-align: center; color: var(--ink-3); padding: 28px 12px; }
.trong-rong .bieu-tuong { font-size: 34px; display: block; margin-bottom: 6px; }

.thong-bao-noi {
  position: fixed; left: 50%; bottom: calc(var(--cao-thanh-duoi) + env(safe-area-inset-bottom) + 16px); transform: translateX(-50%);
  z-index: 60; background: var(--ink); color: var(--paper); padding: 12px 18px; border-radius: 12px; font-size: 14.5px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .25); max-width: calc(100vw - 32px);
}
.man-phu {
  position: fixed; inset: 0; z-index: 50; background: rgba(20, 16, 12, .45); display: flex; align-items: flex-end; justify-content: center;
}
.man-phu .hop {
  background: var(--card); width: 100%; max-width: 560px; max-height: 88vh; overflow: auto;
  border-radius: 18px 18px 0 0; padding: 18px 16px calc(env(safe-area-inset-bottom) + 18px);
}
@media (min-width: 600px) { .man-phu { align-items: center; } .man-phu .hop { border-radius: 18px; } }
.man-phu .hop h3 { margin: 0 0 12px; }

.xoay { width: 18px; height: 18px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; display: inline-block; animation: xoay .7s linear infinite; }
@keyframes xoay { to { transform: rotate(360deg); } }
.khung-xuong { background: linear-gradient(90deg, var(--line) 25%, var(--paper) 50%, var(--line) 75%); background-size: 200% 100%; animation: sang 1.2s infinite; border-radius: 8px; height: 16px; margin: 8px 0; }
@keyframes sang { to { background-position: -200% 0; } }

/* ------------------------------------------------ bước (lên hợp đồng) */
.cac-buoc { display: flex; gap: 6px; margin-bottom: 14px; }
.cac-buoc span { flex: 1; height: 5px; border-radius: 99px; background: var(--line); }
.cac-buoc span.xong { background: var(--clay); }
.dong-sp { border: 1px solid var(--line); border-radius: var(--r-nho); padding: 12px; margin-bottom: 10px; background: var(--card); }
.dong-sp .ten { font-weight: 600; }
.chan-co-dinh {
  position: sticky; bottom: calc(var(--cao-thanh-duoi) + env(safe-area-inset-bottom) + 8px); z-index: 10;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--bong);
  padding: 10px 12px; display: flex; gap: 10px; align-items: center; margin-top: 12px;
}
@media (min-width: 900px) { .chan-co-dinh { bottom: 12px; } }
.chan-co-dinh .tong { flex: 1; font-size: 13px; color: var(--ink-2); }
.chan-co-dinh .tong b { display: block; font-size: 18px; color: var(--ink); }

.tien-trinh { list-style: none; margin: 0; padding: 0; }
.tien-trinh li { display: flex; gap: 10px; align-items: center; padding: 8px 0; }

/* ------------------------------------------------ hóa đơn */
.xem-hoa-don { background: #e9e4de; border-radius: var(--r); padding: 10px; text-align: center; }
.xem-hoa-don img { width: 100%; max-width: 640px; background: #fff; box-shadow: var(--bong); }
@media print {
  .khung > :not(.cot-chinh), .thanh-tren, .thanh-duoi, .bang-demo, .khong-in { display: none !important; }
  body { background: #fff; }
  .noi-dung { padding: 0; max-width: none; }
  .xem-hoa-don { background: none; padding: 0; }
  .xem-hoa-don img { max-width: none; width: 100%; box-shadow: none; }
  @page { size: A4; margin: 0; }
}

.anh-nho { width: 56px; height: 56px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); background: var(--paper); cursor: zoom-in; }
.hop-chon { width: 22px; height: 22px; accent-color: var(--clay); }

.anh-bo { position: relative; display: inline-block; }
.nut-xoa-anh {
  position: absolute; top: -8px; right: -8px; width: 26px; height: 26px; border-radius: 50%;
  border: 1px solid var(--line); background: var(--card); color: var(--do); font-size: 13px; cursor: pointer; line-height: 1;
}
.anh-lon { width: 100%; border-radius: 10px; display: block; }
.the-nguoi { display: flex; align-items: center; gap: 12px; padding: 12px; border: 1px solid var(--line); border-radius: var(--r-nho); background: var(--card); cursor: pointer; text-align: left; width: 100%; }
.the-nguoi:hover { border-color: var(--clay); }
.the-nguoi .chu-cai { width: 40px; height: 40px; border-radius: 50%; background: var(--clay-soft); color: var(--clay); display: grid; place-content: center; font-weight: 700; flex: none; }
.dang-nhap-khung { max-width: 460px; margin: 0 auto; padding: 32px 16px 48px; }
.dang-nhap-khung .dau { text-align: center; margin-bottom: 20px; }
.dang-nhap-khung .dau img { width: 120px; height: auto; }
.sap-co { opacity: .6; }
.sap-co b::after { content: ' · sắp có'; font-weight: 500; color: var(--ink-3); font-size: 12px; }

/* ------------------------------------------------ chế độ xem (Chủ / Nhân viên) */
.che-do-xem {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  padding: 8px 16px; background: var(--card); border-bottom: 1px solid var(--line); font-size: 13.5px;
}
.che-do-xem .nhan { color: var(--ink-2); font-weight: 600; }
.che-do-xem .cong-tac { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.che-do-xem .cong-tac button { border: 0; background: transparent; padding: 6px 14px; cursor: pointer; font-weight: 600; font-size: 13.5px; }
.che-do-xem .cong-tac button.dang-chon { background: var(--clay); color: #fff; }
.che-do-xem.dang-xem { background: var(--honey-soft); }
.che-do-xem .goi-y-xem { color: var(--honey); font-weight: 600; }
.nhom-vai-tro { margin-bottom: 12px; }
.nhom-vai-tro h4 { margin: 8px 0 6px; font-size: 13px; color: var(--ink-2); text-transform: uppercase; letter-spacing: .03em; }

/* ------------------------------------------------ trang Hôm nay */
.chao { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin: 2px 0 12px; }
.chao h1 { font-size: 21px; margin: 0; }
.hanh-dong-nhanh { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 14px; }
.hanh-dong-nhanh > * { flex: none; white-space: nowrap; }
.so-lieu { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
@media (min-width: 600px) { .so-lieu { grid-template-columns: repeat(4, 1fr); } }
.so-lieu > div, .so-lieu > a {
  background: var(--paper); border-radius: var(--r-nho); padding: 10px 12px; text-decoration: none; color: inherit; display: block;
}
.so-lieu .nhan { font-size: 12.5px; color: var(--ink-2); }
.so-lieu .gt { font-size: 18px; font-weight: 700; font-variant-numeric: tabular-nums; }
.so-lieu .phu { font-size: 12px; color: var(--ink-3); }
.nhom-hk { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
@media (min-width: 600px) { .nhom-hk { grid-template-columns: repeat(4, 1fr); } }
.nhom-hk > :is(div, a) { background: var(--paper); border-radius: var(--r-nho); padding: 10px; }
.nhom-hk .so { font-size: 20px; font-weight: 700; }
.nhom-hk .ten { font-size: 12.5px; color: var(--ink-2); }
.nhom-hk .rong0 { opacity: .45; }
.ca-chup { display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.ca-chup:last-child { border-bottom: 0; }
.ca-chup .gio { font-weight: 700; font-size: 16px; min-width: 50px; font-variant-numeric: tabular-nums; }
.tieu-de-khoi { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.tieu-de-khoi h2 { margin: 0; font-size: 17px; }

/* ------------------------------------------------ ② Lịch chụp */
.loc-lich { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.loc-lich .ngay-chon { flex: 1; text-align: center; font-weight: 700; font-size: 16px; position: relative; cursor: pointer; }
.an-ngay { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.tom-tat-lich { margin-bottom: 12px; }
.nut-loc { cursor: pointer; font: inherit; font-size: 12.5px; }
.nut-loc.dang-loc { outline: 2px solid var(--do); }
.nhom-ngay { margin: 18px 2px 8px; font-size: 14px; color: var(--ink-2); display: flex; justify-content: space-between; }
a.ca-lich { display: block; text-decoration: none; color: inherit; }
a.ca-lich:active { background: var(--clay-soft); }
.ca-lich .dau { display: flex; gap: 12px; align-items: flex-start; }
.ca-lich .than { flex: 1; min-width: 0; }
.ca-lich .ten { font-weight: 700; font-size: 16px; }
.ca-lich .huy { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.gio-lon { font-size: 20px; font-weight: 800; min-width: 58px; color: var(--clay); font-variant-numeric: tabular-nums; line-height: 1.2; }
.gio-to { font-size: 30px; font-weight: 800; color: var(--clay); line-height: 1.1; font-variant-numeric: tabular-nums; }
.ca-lich .goi { margin-top: 8px; font-size: 13.5px; color: var(--ink-2); white-space: pre-line; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ekip { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.chip-ekip { font-size: 12.5px; padding: 3px 10px; border-radius: 999px; background: var(--paper); border: 1px solid var(--line); }
.chip-ekip.thieu { background: var(--do-soft); border-color: transparent; color: var(--do); font-weight: 600; }
.ghi-chu-ngan { margin-top: 8px; font-size: 13px; color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.luoi-concept { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; }
.luoi-concept.nho { grid-template-columns: repeat(4, 56px); margin-top: 10px; }
.o-concept { position: relative; aspect-ratio: 1; border-radius: 10px; overflow: hidden; background: var(--paper); border: 1px solid var(--line); }
.o-concept img { width: 100%; height: 100%; object-fit: cover; display: block; cursor: zoom-in; }
.o-concept .nut-xoa-anh { top: 4px; right: 4px; }
.o-concept .con-lai { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(0, 0, 0, .45); color: #fff; font-weight: 700; }
.o-concept.them { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; color: var(--clay); font-weight: 600; font-size: 13px; cursor: pointer; border-style: dashed; }
.hd-trong-lich { margin-top: 12px; padding-top: 10px; border-top: 1px dashed var(--line); }
.dong-goi { padding: 6px 0; }
.hang-ekip { display: flex; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.hang-ekip:last-child { border-bottom: 0; }
.hang-ekip .nhan { min-width: 104px; color: var(--ink-2); font-size: 14px; }
.chu-do { color: var(--do); font-weight: 600; }
.nhom-chon { margin-bottom: 14px; }
.nhom-chon h4 { margin: 0 0 8px; font-size: 14px; }
.chip-chon { font: inherit; font-size: 14px; padding: 7px 12px; min-height: 36px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); color: var(--ink); cursor: pointer; }
.chip-chon.dang-chon { background: var(--clay); border-color: var(--clay); color: #fff; font-weight: 600; }
.chip-chon.mo-them { color: var(--clay); border-style: dashed; }

/* ------------------------------------------------ ③ Hậu kỳ */
@media (max-width: 899px) { .thanh-duoi a.phu { display: none; } }
.loc-cong-doan { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 10px; -webkit-overflow-scrolling: touch; }
.loc-cong-doan .chip-chon { flex: none; white-space: nowrap; }
.chip-chon.tre { color: var(--do); border-color: var(--do); }
.chip-chon.tre.dang-chon { background: var(--do); color: #fff; }
.the-viec .dau { display: flex; gap: 10px; align-items: flex-start; text-decoration: none; color: inherit; }
.the-viec .dau .than { flex: 1; min-width: 0; }
.the-viec .ten { font-weight: 700; font-size: 16px; }
.the-viec.tre, .the-tre { border-color: color-mix(in srgb, var(--do) 45%, var(--line)); }
.nhom-hk a { text-decoration: none; color: inherit; }
.noi-bat { font-weight: 700; font-size: 16px; padding: 8px 10px; background: var(--clay-soft); border-radius: 8px; margin-top: 2px; }
.nut-chu { border: 0; background: none; color: var(--clay); font: inherit; font-weight: 600; cursor: pointer; padding: 0 4px; }
details.the summary { cursor: pointer; }
