/* Văn Hub – hệ màu thương hiệu HVCDT: navy #2a398b, đỏ cam #f04123, kem #fffde9 */
:root {
  --navy: #2a398b; --navy-2: #22307a; --navy-soft: #e9ecf8; --orange: #f04123; --orange-2: #d8361a; --orange-soft: #fdebe7;
  --cream: #fffde9; --bg: #fdfcf3; --card: #fff; --line: #ebe8da; --line-2: #f1efe4; --text: #1d2340; --muted: #667085; --muted-2: #98a2b3;
  --green: #15803d; --green-bg: #e3f6e8; --yellow: #a16207; --yellow-bg: #fff3cf; --red: #c81e1e; --red-bg: #fde4e4; --blue: #1d4ed8; --blue-bg: #e2ecff;
  --purple: #6d28d9; --purple-bg: #efe7ff; --gray-bg: #f0f1f4; --radius: 12px; --shadow: 0 1px 2px rgba(16, 24, 40, .05), 0 1px 3px rgba(16, 24, 40, .04);
  --font: 'Inter', 'Segoe UI', system-ui, -apple-system, Roboto, 'Helvetica Neue', Arial, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { font-family: var(--font); color: var(--text); background: var(--bg); font-size: 14px; line-height: 1.45; -webkit-font-smoothing: antialiased; }
a { color: var(--navy); text-decoration: none; }
a:hover { text-decoration: underline; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }
.boot { display: grid; place-items: center; height: 100vh; color: var(--muted); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- Bố cục ---------- */
.shell { display: grid; grid-template-columns: 250px 1fr; min-height: 100vh; }
.side { background: var(--navy); color: #fff; position: sticky; top: 0; height: 100vh; overflow-y: auto; display: flex; flex-direction: column; padding: 18px 12px; z-index: 30; }
.brand { display: flex; gap: 12px; align-items: center; padding: 4px 10px 22px; color: #fff; }
.brand:hover { text-decoration: none; }
.brand svg { width: 44px; height: 36px; flex: none; }
.brand b { font-size: 26px; font-weight: 800; letter-spacing: -.5px; display: block; line-height: 1.05; }
.brand small { font-size: 13px; opacity: .9; }
.nav a { display: flex; align-items: center; gap: 14px; padding: 11px 14px; border-radius: 10px; color: #eef0fb; font-size: 15.5px; font-weight: 500; margin: 2px 0; }
.nav a:hover { background: rgba(255, 255, 255, .08); text-decoration: none; }
.nav a.on { background: rgba(255, 255, 255, .17); color: #fff; font-weight: 700; }
.nav a svg { width: 22px; height: 22px; flex: none; }
.nav .grp { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; opacity: .6; margin: 18px 14px 6px; font-weight: 600; }
.nav details summary { list-style: none; cursor: pointer; }
.nav details summary::-webkit-details-marker { display: none; }
.side-foot { margin-top: auto; font-size: 11.5px; opacity: .65; padding: 14px; }
.main { min-width: 0; display: flex; flex-direction: column; }
.top { height: 64px; background: #fff; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 16px; padding: 0 24px; position: sticky; top: 0; z-index: 20; }
.top .search { position: relative; flex: 0 1 520px; }
.top .search input { width: 100%; height: 40px; border: 1px solid #d9dbe3; border-radius: 8px; padding: 0 12px 0 40px; background: #fff; }
.top .search svg { position: absolute; left: 12px; top: 10px; width: 20px; height: 20px; color: var(--muted); }
.top .spacer { flex: 1; }
.bell { position: relative; background: none; border: 0; padding: 8px; cursor: pointer; color: var(--navy); }
.bell svg { width: 24px; height: 24px; }
.bell i { position: absolute; top: 6px; right: 6px; width: 9px; height: 9px; background: var(--orange); border-radius: 50%; border: 2px solid #fff; }
.who { display: flex; align-items: center; gap: 10px; border-left: 1px solid var(--line); padding-left: 16px; cursor: pointer; background: none; border-top: 0; border-right: 0; border-bottom: 0; }
.avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--navy-soft); color: var(--navy); display: grid; place-items: center; font-weight: 700; flex: none; }
.avatar.lg { width: 110px; height: 110px; font-size: 36px; background: linear-gradient(135deg, #fcee21, #f04123); color: #fff; }
.avatar.md { width: 56px; height: 56px; font-size: 20px; }
.who b { font-weight: 600; display: block; font-size: 15px; }
.who small { color: var(--muted); font-size: 12px; }
.menu-btn { display: none; background: none; border: 0; color: var(--navy); padding: 6px; }
.content { padding: 22px 26px 40px; max-width: 1600px; width: 100%; }
.pop { position: absolute; background: #fff; border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 12px 32px rgba(16, 24, 40, .14); z-index: 60; min-width: 240px; padding: 6px; }
.pop a, .pop button { display: block; width: 100%; text-align: left; padding: 9px 12px; border-radius: 8px; background: none; border: 0; cursor: pointer; color: var(--text); }
.pop a:hover, .pop button:hover { background: var(--gray-bg); text-decoration: none; }
.pop .hd { font-size: 12px; color: var(--muted); padding: 6px 12px; }

/* ---------- Tiêu đề trang ---------- */
.crumb { color: var(--muted); font-size: 14px; margin-bottom: 6px; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.crumb a { color: var(--muted); }
.crumb b { color: var(--navy); }
.ph { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 16px; flex-wrap: wrap; }
.ph h1 { font-size: 34px; font-weight: 800; color: var(--navy); margin: 0; letter-spacing: -.6px; }
.ph p { margin: 4px 0 0; color: var(--muted); font-size: 15px; }
.ph .acts { display: flex; gap: 10px; flex-wrap: wrap; }
h2 { font-size: 19px; margin: 0; color: var(--text); font-weight: 700; }
h3 { font-size: 16px; margin: 0; font-weight: 700; }

/* ---------- Nút ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: 8px; border: 1px solid #d0d5dd; background: #fff; color: var(--text); font-weight: 600; cursor: pointer; white-space: nowrap; font-size: 14px; }
.btn:hover { background: #f8f8f5; text-decoration: none; }
.btn svg { width: 18px; height: 18px; }
.btn.primary { background: var(--orange); border-color: var(--orange); color: #fff; }
.btn.primary:hover { background: var(--orange-2); }
.btn.navy { background: var(--navy); border-color: var(--navy); color: #fff; }
.btn.ghost { border-color: transparent; background: transparent; }
.btn.danger { color: var(--red); border-color: #f5c2c2; }
.btn.sm { height: 32px; padding: 0 11px; font-size: 13px; }
.btn.lg { height: 48px; font-size: 16.5px; padding: 0 22px; }
.btn.block { width: 100%; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.icon-btn { width: 36px; height: 36px; border: 1px solid #d0d5dd; background: #fff; border-radius: 8px; display: inline-grid; place-items: center; cursor: pointer; color: var(--text); }
.icon-btn svg { width: 18px; height: 18px; }
.link { background: none; border: 0; color: var(--orange); cursor: pointer; padding: 0; font-weight: 600; text-decoration: underline; }

/* ---------- Thẻ & lưới ---------- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.card.pad { padding: 18px 20px; }
.card-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 16px 20px; border-bottom: 1px solid var(--line-2); flex-wrap: wrap; }
.card-h h2 svg, .card-h h3 svg { width: 20px; height: 20px; vertical-align: -4px; margin-right: 8px; color: var(--navy); }
.card-b { padding: 16px 20px; }
.grid { display: grid; gap: 16px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.g6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.span2 { grid-column: span 2; }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.row.between { justify-content: space-between; }
.stack > * + * { margin-top: 16px; }
.muted { color: var(--muted); } .small { font-size: 12.5px; } .right { text-align: right; } .center { text-align: center; } .nowrap { white-space: nowrap; }
.mt { margin-top: 16px; } .mb { margin-bottom: 16px; }
.num { font-variant-numeric: tabular-nums; }
.red { color: var(--red); } .green { color: var(--green); } .orange { color: var(--orange); } .navy { color: var(--navy); }
hr.sep { border: 0; border-top: 1px solid var(--line-2); margin: 14px 0; }

/* KPI */
.kpi { padding: 16px 18px; cursor: pointer; transition: border-color .15s, transform .15s; text-align: left; width: 100%; font: inherit; }
.kpi:hover { border-color: var(--navy); transform: translateY(-1px); }
.kpi .lb { color: var(--muted); font-size: 13px; font-weight: 500; display: flex; gap: 8px; align-items: center; }
.kpi .lb svg { width: 18px; height: 18px; color: var(--navy); }
.kpi .v { font-size: 28px; font-weight: 800; color: var(--navy); margin-top: 6px; letter-spacing: -.5px; }
.kpi .s { font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.bar { height: 10px; background: #e6e8ef; border-radius: 99px; overflow: hidden; }
.bar > i { display: block; height: 100%; background: var(--navy); border-radius: 99px; }
.bar.orange > i { background: var(--orange); }

/* ---------- Nhãn trạng thái ---------- */
.tag { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 6px; font-size: 12.5px; font-weight: 600; white-space: nowrap; line-height: 1.5; }
.tag.green { background: var(--green-bg); color: var(--green); } .tag.yellow { background: var(--yellow-bg); color: var(--yellow); } .tag.red { background: var(--red-bg); color: var(--red); }
.tag.blue { background: var(--blue-bg); color: var(--blue); } .tag.gray { background: var(--gray-bg); color: #475467; } .tag.purple { background: var(--purple-bg); color: var(--purple); }
.tag.orange { background: var(--orange-soft); color: var(--orange-2); } .tag.navy { background: var(--navy-soft); color: var(--navy); }
.tag.dot::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.chip { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 14px; border-radius: 8px; border: 1px solid #d0d5dd; background: #fff; cursor: pointer; font-weight: 600; }
.chip.on { background: var(--orange-soft); border-color: #f6b6a8; color: var(--orange-2); }
.chip input { accent-color: var(--orange); width: 16px; height: 16px; }
.chips-row { display: flex; gap: 8px; flex-wrap: wrap; }
.chips-row .chip { height: 38px; padding: 0 12px; font-size: 13.5px; }
.fin-tbl td { white-space: nowrap; } .fin-tbl td:nth-child(4) { white-space: normal; } .fin-tbl td, .fin-tbl th { padding-left: 10px; padding-right: 10px; }

/* ---------- Tab ---------- */
.tabs { display: flex; gap: 6px; border-bottom: 1px solid var(--line); margin-bottom: 16px; overflow-x: auto; scrollbar-width: none; align-items: center; }
.tabs::-webkit-scrollbar { display: none; }
.tabs a, .tabs button { padding: 10px 16px; font-size: 16px; font-weight: 500; color: #3c4258; border: 0; background: none; cursor: pointer; border-bottom: 3px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.tabs .on { color: var(--orange); border-bottom-color: var(--orange); font-weight: 700; }
.tabs a:hover { text-decoration: none; color: var(--orange); }

/* ---------- Biểu mẫu ---------- */
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field > span { font-size: 13.5px; font-weight: 600; color: #344054; }
.field > span em { color: var(--red); font-style: normal; }
.inp, select.inp, textarea.inp { height: 40px; border: 1px solid #d0d5dd; border-radius: 8px; padding: 0 12px; background: #fff; width: 100%; min-width: 0; }
textarea.inp { height: auto; min-height: 84px; padding: 10px 12px; resize: vertical; }
select.inp { appearance: none; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%23344054' stroke-width='2' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 12px center; padding-right: 36px; }
.inp:focus { border-color: var(--navy); outline: none; box-shadow: 0 0 0 3px rgba(42, 57, 139, .12); }
.field.err .inp { border-color: var(--red); }
.field .msg { color: var(--red); font-size: 12.5px; }
.field .hint { color: var(--muted); font-size: 12.5px; }
.filters { display: flex; gap: 14px; align-items: flex-end; flex-wrap: wrap; }
.filters .field { min-width: 160px; flex: 0 1 220px; }
.filters .grow { flex: 1 1 240px; }
.inp-icon { position: relative; }
.inp-icon svg { position: absolute; left: 11px; top: 11px; width: 18px; height: 18px; color: var(--muted); }
.inp-icon .inp { padding-left: 38px; }
.check { display: inline-flex; gap: 8px; align-items: center; cursor: pointer; }
.check input { width: 17px; height: 17px; accent-color: var(--orange); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 16px; }
.form-grid .full { grid-column: 1 / -1; }

/* ---------- Bảng ---------- */
.tbl-wrap { overflow-x: auto; }
table.tbl { width: 100%; border-collapse: collapse; }
.tbl th { text-align: left; font-size: 13.5px; font-weight: 700; color: #1d2340; padding: 12px 14px; background: #f6f5ef; border-bottom: 1px solid var(--line); white-space: nowrap; }
.tbl td { padding: 11px 14px; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl td:first-child, .tbl .nowrap { white-space: nowrap; }
.tbl tbody tr:hover { background: #fcfbf6; }
.tbl tr.sel { background: #fdf0ec !important; }
.tbl tr.click { cursor: pointer; }
.tbl.plain th { background: none; }
.tbl.compact td, .tbl.compact th { padding: 8px 10px; }
.tbl .r { text-align: right; } .tbl .c { text-align: center; }
.tbl tfoot td { font-weight: 700; background: #fafaf6; }
.pager { display: flex; align-items: center; justify-content: space-between; padding: 12px 18px; border-top: 1px solid var(--line-2); color: var(--muted); flex-wrap: wrap; gap: 10px; }
.pager .pg { display: flex; gap: 6px; }
.pager button { min-width: 36px; height: 36px; border: 1px solid #d0d5dd; background: #fff; border-radius: 8px; cursor: pointer; font-weight: 600; }
.pager button.on { background: var(--orange); border-color: var(--orange); color: #fff; }
.empty { padding: 36px 20px; text-align: center; color: var(--muted); }
.empty svg { width: 40px; height: 40px; color: #c5c9d6; display: block; margin: 0 auto 10px; }
.loading { padding: 30px; text-align: center; color: var(--muted); }
.error-box { padding: 16px 18px; background: var(--red-bg); color: var(--red); border-radius: 10px; }
.note { padding: 12px 14px; border-radius: 10px; background: var(--yellow-bg); color: #6b4a00; font-size: 13.5px; }
.note.blue { background: var(--blue-bg); color: #173a8a; }
.note.green { background: var(--green-bg); color: #14532d; }

/* ---------- Modal / ngăn chi tiết ---------- */
.ov { position: fixed; inset: 0; background: rgba(16, 24, 40, .45); display: grid; place-items: center; z-index: 100; padding: 20px; animation: fade .12s; }
.modal { background: #fff; border-radius: 14px; width: min(560px, 100%); max-height: calc(100vh - 40px); display: flex; flex-direction: column; box-shadow: 0 20px 50px rgba(0, 0, 0, .25); }
.modal.wide { width: min(880px, 100%); } .modal.xwide { width: min(1100px, 100%); }
.modal-h { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; border-bottom: 1px solid var(--line-2); }
.modal-h h2 { font-size: 18px; }
.modal-b { padding: 18px 20px; overflow-y: auto; }
.modal-f { padding: 14px 20px; border-top: 1px solid var(--line-2); display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; }
.x { background: none; border: 0; cursor: pointer; padding: 4px; color: var(--text); }
.x svg { width: 22px; height: 22px; }
.drawer-ov { position: fixed; inset: 0; background: rgba(16, 24, 40, .3); z-index: 90; animation: fade .12s; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(620px, 100%); background: #fff; z-index: 91; display: flex; flex-direction: column; box-shadow: -12px 0 30px rgba(0, 0, 0, .15); animation: slide .18s; }
.drawer .modal-b { flex: 1; }
@keyframes fade { from { opacity: 0; } } @keyframes slide { from { transform: translateX(40px); opacity: 0; } }
#toasts { position: fixed; right: 20px; bottom: 20px; display: flex; flex-direction: column; gap: 10px; z-index: 200; }
.toast { background: #1d2340; color: #fff; padding: 12px 16px; border-radius: 10px; box-shadow: 0 8px 24px rgba(0, 0, 0, .2); max-width: 420px; animation: slide .2s; }
.toast.ok { background: #136c34; } .toast.err { background: #b42318; } .toast.warn { background: #8a5a00; }

/* ---------- Thông tin dạng cặp ---------- */
.kv { display: grid; grid-template-columns: minmax(110px, 38%) 1fr; gap: 9px 14px; font-size: 14px; }
.kv dt { color: #475467; } .kv dd { margin: 0; font-weight: 500; }
.kv.rows { gap: 0; } .kv.rows dt, .kv.rows dd { padding: 7px 0; border-bottom: 1px solid var(--line-2); }

/* Dòng thời gian */
.tl { position: relative; padding-left: 26px; }
.tl::before { content: ''; position: absolute; left: 7px; top: 6px; bottom: 6px; width: 2px; background: #e4e2d6; }
.tl-i { position: relative; margin-bottom: 14px; }
.tl-i::before { content: ''; position: absolute; left: -24px; top: 5px; width: 12px; height: 12px; border-radius: 50%; background: #c8ccd8; border: 2px solid #fff; box-shadow: 0 0 0 1px #c8ccd8; }
.tl-i:first-child::before { background: var(--orange); box-shadow: 0 0 0 1px var(--orange); }
.tl-i .t { font-size: 13px; color: #475467; margin-bottom: 6px; }
.tl-i .box { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; display: flex; gap: 10px; }
.tl-i .box svg { width: 20px; height: 20px; flex: none; color: #475467; margin-top: 2px; }
.tl-i .box b { display: block; font-size: 14px; }
.tl-i .box span { font-size: 13px; color: #475467; }

/* ---------- D06 lịch tuần ---------- */
.cal { display: grid; grid-template-columns: 110px repeat(7, minmax(110px, 1fr)); border: 1px solid var(--line); border-radius: var(--radius); background: #fff; overflow: hidden; }
.cal > div { border-right: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); min-height: 96px; padding: 6px; }
.cal .hd { min-height: 0; text-align: center; font-weight: 700; padding: 10px 6px; background: #fff; font-size: 14px; }
.cal .hd small { display: block; font-weight: 500; color: #475467; font-size: 13px; }
.cal .hd.today { color: var(--orange); }
.cal .slot { font-weight: 600; font-size: 13.5px; display: flex; align-items: center; padding-left: 10px; }
.cal .dash { display: grid; place-items: center; color: #98a2b3; }
.ses { border-radius: 8px; padding: 7px 9px; font-size: 13px; cursor: pointer; margin-bottom: 4px; border: 2px solid transparent; text-align: center; width: 100%; display: block; color: var(--text); font-family: inherit; }
.ses b { display: block; font-size: 14px; }
.ses .m { display: flex; gap: 5px; align-items: center; justify-content: center; color: #344054; margin-top: 3px; }
.ses .m svg { width: 14px; height: 14px; }
.ses.c0 { background: #e2f5e6; } .ses.c1 { background: #e7ecff; } .ses.c2 { background: #efe6fb; } .ses.c3 { background: #fde8ec; } .ses.c4 { background: #fff1db; } .ses.c5 { background: #e0f2f7; }
.ses.on { border-color: var(--orange); }
.ses.st-postponed, .ses.st-cancelled { opacity: .55; text-decoration: line-through; }
.ses.st-closed { box-shadow: inset 3px 0 0 #15803d; }
.ses.conf { box-shadow: inset 0 0 0 2px var(--red); }
.cal-wrap { display: grid; grid-template-columns: 1fr 360px; gap: 16px; align-items: start; }
.legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12.5px; color: var(--muted); margin-top: 10px; }
.side-detail { position: sticky; top: 80px; }
.side-detail .ttl { border-left: 4px solid var(--orange); padding-left: 12px; }
.side-detail .ttl h2 { font-size: 24px; }
.ic-list > div { display: flex; gap: 12px; align-items: center; padding: 6px 0; font-size: 14.5px; }
.ic-list svg { width: 20px; height: 20px; color: #344054; flex: none; }
.copybox { display: flex; border: 1px solid #d0d5dd; border-radius: 8px; overflow: hidden; }
.copybox input { flex: 1; border: 0; padding: 0 10px; height: 38px; min-width: 0; }
.copybox button { border: 0; border-left: 1px solid #d0d5dd; background: #fff; width: 40px; cursor: pointer; }
.copybox svg { width: 16px; height: 16px; }

/* ---------- D07 điểm danh ---------- */
.att-head { display: grid; grid-template-columns: 1.2fr 1.3fr .8fr 2fr; gap: 0; padding: 16px 20px; }
.att-head > div { padding: 0 18px; border-left: 1px solid var(--line); }
.att-head > div:first-child { border-left: 0; padding-left: 0; }
.att-head .lb { font-weight: 600; margin-bottom: 8px; }
.att-stats { display: flex; align-items: center; gap: 22px; padding: 14px 20px; flex-wrap: wrap; }
.att-stats .st { display: flex; gap: 12px; align-items: center; padding-right: 22px; border-right: 1px solid var(--line); }
.att-stats .st svg { width: 32px; height: 32px; color: var(--navy); }
.att-stats .st b { font-size: 22px; } .att-stats .st small { display: block; color: #475467; }
.pill { padding: 9px 16px; border-radius: 8px; font-weight: 600; }
.pill.green { background: var(--green-bg); color: var(--green); } .pill.yellow { background: var(--yellow-bg); color: var(--yellow); } .pill.blue { background: var(--blue-bg); color: var(--blue); } .pill.red { background: var(--red-bg); color: var(--red); }
.radio { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; white-space: nowrap; }
.radio input { width: 19px; height: 19px; accent-color: var(--orange); margin: 0; }
.att-foot { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 16px 20px; border-top: 1px solid var(--line-2); flex-wrap: wrap; }

/* ---------- D08 gói ---------- */
.pkg-card { display: flex; gap: 18px; padding: 20px; align-items: center; }
.pkg-ic { width: 52px; height: 52px; border-radius: 12px; background: var(--navy-soft); display: grid; place-items: center; color: var(--navy); flex: none; }
.pkg-ic svg { width: 26px; height: 26px; }
.pkg-nums { display: grid; grid-template-columns: repeat(3, 1fr); text-align: center; }
.pkg-nums > div { padding: 0 10px; border-left: 1px solid var(--line); }
.pkg-nums > div:first-child { border-left: 0; }
.pkg-nums small { color: #344054; font-size: 13.5px; } .pkg-nums b { display: block; font-size: 26px; color: var(--navy); }

/* ---------- D10 Kanban ---------- */
.kanban { display: grid; grid-template-columns: repeat(4, minmax(250px, 1fr)); gap: 14px; overflow-x: auto; align-items: start; }
.kcol { background: #faf9f3; border: 1px solid var(--line); border-radius: var(--radius); padding: 10px; min-height: 200px; }
.kcol.drop { outline: 2px dashed var(--orange); }
.kcol-h { display: flex; gap: 10px; align-items: center; padding: 12px; border-radius: 9px; font-size: 18px; font-weight: 700; margin-bottom: 10px; }
.kcol-h svg { width: 22px; height: 22px; }
.kcol-h.c1 { background: #fde6e1; color: var(--orange-2); } .kcol-h.c2 { background: #e1ebfb; color: var(--navy); } .kcol-h.c3 { background: #fdf0cf; color: #8a5a00; } .kcol-h.c4 { background: #e1f4e4; color: var(--green); }
.kcard { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 14px; margin-bottom: 10px; cursor: grab; box-shadow: var(--shadow); }
.kcard h4 { margin: 0 0 6px; font-size: 16.5px; display: flex; justify-content: space-between; }
.kcard .cls { display: inline-block; background: var(--navy-soft); color: var(--navy); border-radius: 6px; padding: 2px 9px; font-weight: 600; font-size: 13px; margin-bottom: 8px; }
.kcard .ln { display: flex; gap: 8px; align-items: center; font-size: 13.5px; color: #344054; margin-top: 4px; }
.kcard .ln svg { width: 16px; height: 16px; }
.kcard.over { border-color: #f5b2a5; }

/* ---------- D09 ---------- */
.fin-wrap { display: grid; grid-template-columns: minmax(0, 1.9fr) minmax(360px, 1fr); gap: 16px; align-items: start; }
.txn-box { border: 1px solid #f6c9bd; background: #fff6f3; border-radius: 10px; padding: 14px 16px; display: flex; gap: 14px; align-items: center; }
.txn-box .amt { color: var(--orange); font-size: 28px; font-weight: 800; }
.txn-ic { width: 46px; height: 46px; border-radius: 50%; background: #fde3dc; display: grid; place-items: center; color: var(--orange); flex: none; }
.receipt { border: 1px solid var(--line); border-radius: 10px; overflow: hidden; width: 200px; height: 130px; background: #f6f7f9; display: grid; place-items: center; flex: none; }
.receipt img { max-width: 100%; max-height: 100%; }

/* Hồ sơ HV */
.prof { display: grid; grid-template-columns: auto 1fr auto; gap: 24px; padding: 20px 24px; align-items: center; }
.prof .gd { border-left: 1px solid var(--line); padding-left: 24px; min-width: 260px; }
.prof .gd > div { display: flex; gap: 10px; align-items: center; margin-top: 7px; }
.prof .gd svg { width: 18px; height: 18px; color: var(--muted); }

/* Trang đăng nhập */
.login { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; }
.login .art { background: var(--navy); color: #fff; padding: 56px; display: flex; flex-direction: column; justify-content: space-between; position: relative; overflow: hidden; }
.login .art h1 { font-size: 44px; margin: 0 0 12px; letter-spacing: -1px; }
.login .art::after { content: ''; position: absolute; right: -120px; bottom: -120px; width: 360px; height: 360px; border-radius: 50%; background: radial-gradient(circle, rgba(252, 238, 33, .35), rgba(240, 65, 35, .25) 60%, transparent 70%); }
.login .frm { display: grid; place-items: center; padding: 30px; background: var(--cream); }
.login form { width: min(400px, 100%); }
.demo-acc { font-size: 12.5px; color: var(--muted); margin-top: 20px; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 12px; }
.demo-acc button { background: var(--gray-bg); border: 0; border-radius: 6px; padding: 3px 8px; margin: 3px 3px 0 0; cursor: pointer; font-size: 12px; }

/* biểu đồ */
.chart-bars { display: flex; align-items: flex-end; gap: 10px; height: 160px; padding-top: 10px; }
.chart-bars > div { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; height: 100%; justify-content: flex-end; }
.chart-bars i { width: 100%; max-width: 38px; background: var(--navy); border-radius: 5px 5px 0 0; min-height: 2px; }
.chart-bars small { font-size: 11px; color: var(--muted); }
.chart-bars span { font-size: 11px; font-weight: 600; }

/* Cổng phụ huynh */
.portal .content { max-width: 1100px; }
.child-sw { display: flex; gap: 8px; flex-wrap: wrap; }

@media (max-width: 1200px) {
  .g6 { grid-template-columns: repeat(3, 1fr); } .g4 { grid-template-columns: repeat(2, 1fr); }
  .cal-wrap, .fin-wrap { grid-template-columns: 1fr; } .side-detail { position: static; }
  .att-head { grid-template-columns: 1fr 1fr; gap: 12px; } .att-head > div { border: 0; padding: 0; }
}
@media (max-width: 860px) {
  .shell { grid-template-columns: 1fr; }
  .side { position: fixed; left: 0; top: 0; bottom: 0; width: 270px; transform: translateX(-100%); transition: transform .2s; }
  .side.open { transform: none; box-shadow: 10px 0 40px rgba(0, 0, 0, .3); }
  .menu-btn { display: block; } .top { padding: 0 12px; gap: 8px; } .who b, .who small { display: none; }
  .content { padding: 16px 12px 40px; } .ph h1 { font-size: 26px; }
  .g2, .g3, .g4, .g6, .form-grid, .login { grid-template-columns: 1fr; } .span2 { grid-column: auto; }
  .login .art { display: none; } .prof { grid-template-columns: 1fr; } .prof .gd { border: 0; padding: 0; }
  .kanban { grid-template-columns: repeat(4, 260px); }
  .cal { grid-template-columns: 80px repeat(7, 120px); overflow-x: auto; }
  .att-tbl td:nth-child(3), .att-tbl th:nth-child(3) { display: none; }
  .att-tbl .radio span { display: none; }
}
@media print { .side, .top, .acts, .btn { display: none !important; } .shell { display: block; } .content { padding: 0; } }
