/* Kitto Math — màu lấy từ logo: xanh lá, vàng kangaroo, chấm đỏ */
:root {
  --xanh: #1f9d45; --xanh-dam: #157a35; --xanh-nhat: #e8f6ec; --xanh-vien: #bfe5cb;
  --vang: #ffc21a; --vang-nhat: #fff6da; --cam: #e8890c; --cam-nhat: #fff1dc;
  --do: #e0393e; --do-nhat: #fdecec;
  --chu: #1c2430; --mo: #6b7380; --vien: #e6e9ee; --nen: #f4f6f5; --trang: #fff;
  --bo: 14px; --bong: 0 1px 2px rgba(16, 24, 40, .04);
  --cao-top: 58px; --cao-duoi: 62px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; background: var(--nen); color: var(--chu);
  font: 15px/1.45 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-tap-highlight-color: transparent;
}
a { color: var(--xanh-dam); text-decoration: none; }
h1, h2 { margin: 0; line-height: 1.25; }
h1 { font-size: 20px; font-weight: 650; }
h2 { font-size: 16px; font-weight: 650; }
button, input, select, textarea { font: inherit; color: inherit; }
.ic { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8;
  stroke-linecap: round; stroke-linejoin: round; vertical-align: -4px; }
.mo { color: var(--mo); }
.nho { font-size: 13px; }
.giua { text-align: center; }
.trong { color: var(--mo); text-align: center; padding: 18px 8px; margin: 0; }

/* ---------- khung */
.topbar {
  position: sticky; top: 0; z-index: 20; height: var(--cao-top);
  display: flex; align-items: center; gap: 6px; padding: 0 10px;
  padding-top: env(safe-area-inset-top); height: calc(var(--cao-top) + env(safe-area-inset-top));
  background: rgba(255, 255, 255, .94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--vien);
}
.topbar.ph { justify-content: space-between; padding: 0 16px; }
.thuong-hieu { display: flex; align-items: center; gap: 8px; color: var(--xanh-dam); font-size: 17px; font-weight: 800; }
.thuong-hieu img { border-radius: 50%; }
.thuong-hieu b { color: var(--cam); }
.topbar-phai { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.avatar {
  width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font-weight: 700;
  color: var(--xanh-dam); background: var(--xanh-nhat); border: 2px solid var(--vang);
}
.nut-icon {
  width: 40px; height: 40px; display: inline-grid; place-items: center; border: 0; border-radius: 10px;
  background: transparent; color: var(--chu); cursor: pointer; flex: none;
}
.nut-icon:hover { background: var(--nen); }
.nut-icon .ic { width: 22px; height: 22px; }

.menu {
  position: fixed; inset: 0 auto 0 0; width: min(300px, 84vw); z-index: 40; background: var(--trang);
  transform: translateX(-102%); transition: transform .22s ease; overflow-y: auto;
  padding: calc(14px + env(safe-area-inset-top)) 12px 24px; border-right: 1px solid var(--vien);
}
.menu.mo-ra { transform: none; box-shadow: 0 10px 40px rgba(0, 0, 0, .18); }
.man-che { position: fixed; inset: 0; z-index: 30; background: rgba(20, 28, 38, .35); opacity: 0; pointer-events: none; transition: opacity .2s; }
.man-che.mo-ra { opacity: 1; pointer-events: auto; }
.menu-dau { display: flex; gap: 10px; align-items: center; padding: 4px 8px 16px; }
.menu-dau img { border-radius: 50%; }
.menu-dau b { display: block; color: var(--xanh-dam); }
.menu-dau small { color: var(--mo); }
.menu a, .menu button {
  display: flex; align-items: center; gap: 12px; width: 100%; padding: 11px 12px; border-radius: 10px;
  color: var(--chu); background: none; border: 0; text-align: left; cursor: pointer; font-size: 15px;
}
.menu a .ic, .menu button .ic { color: var(--mo); }
.menu a:hover, .menu button:hover { background: var(--nen); }
.menu a.on { background: var(--xanh-nhat); color: var(--xanh-dam); font-weight: 600; }
.menu a.on .ic { color: var(--xanh); }
.menu-nhom { margin: 16px 12px 4px; font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: #8a929e; }
.menu form { margin: 0; }

.noi-dung { max-width: 760px; margin: 0 auto; padding: 14px 14px calc(var(--cao-duoi) + 24px + env(safe-area-inset-bottom)); }
.thanh-duoi {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; display: grid; grid-template-columns: repeat(4, 1fr);
  background: rgba(255, 255, 255, .97); border-top: 1px solid var(--vien); padding-bottom: env(safe-area-inset-bottom);
}
.thanh-duoi a { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 9px 0 8px; color: #7b838f; font-size: 11.5px; }
.thanh-duoi a.on { color: var(--xanh); font-weight: 600; }
.thanh-duoi .ic { width: 23px; height: 23px; }

@media (min-width: 960px) {
  .menu { transform: none; top: 0; width: 248px; z-index: 25; }
  .man-che, [data-mo-menu], .thanh-duoi { display: none; }
  .topbar { padding-left: 260px; }
  .topbar .thuong-hieu { display: none; }
  body:not(.trang-ph):not(.trang-dang-nhap) .noi-dung { margin-left: 248px; margin-right: 0; padding: 22px 32px 40px; max-width: 840px; }
  .trang-ph .topbar { padding-left: 16px; }
  .trang-ph .topbar .thuong-hieu { display: flex; }
}

/* ---------- thẻ & bố cục */
.the { background: var(--trang); border: 1px solid var(--vien); border-radius: 18px; padding: 16px; margin-bottom: 14px; box-shadow: var(--bong); }
.the.khong-dem { padding: 6px 4px; }
.tieu-de-the { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.tieu-de-the > .ic { color: var(--xanh); }
.tieu-de-the .nut { margin-left: auto; }
.dem { display: inline-grid; place-items: center; min-width: 24px; height: 22px; padding: 0 7px; border-radius: 8px; background: var(--xanh-nhat); color: var(--xanh-dam); font-size: 12.5px; font-weight: 700; }
.dau-trang { display: flex; align-items: center; gap: 8px; margin: 2px 0 14px; min-height: 40px; }
.dau-trang h1 { flex: 1; min-width: 0; }
.dau-trang .nut-icon { margin-left: -8px; }
.chao h1 { font-size: 21px; margin: 2px 0 4px; }
.chao { padding: 18px; }

.thong-tin { display: grid; grid-template-columns: 110px 1fr; gap: 8px 12px; margin: 0; }
.thong-tin dt { color: var(--mo); }
.thong-tin dd { margin: 0; }

/* ---------- nút */
.nut {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 42px; padding: 0 16px;
  border-radius: 11px; border: 1px solid var(--vien); background: var(--trang); color: var(--chu);
  font-weight: 600; cursor: pointer; white-space: nowrap;
}
.nut:hover { background: var(--nen); }
.nut-chinh { background: var(--xanh); border-color: var(--xanh); color: #fff; }
.nut-chinh:hover { background: var(--xanh-dam); }
.nut-nhe { background: var(--xanh-nhat); border-color: var(--xanh-vien); color: var(--xanh-dam); }
.nut-xoa { color: var(--do); border-color: #f3c4c6; }
.nut-xoa.cho-xac-nhan, .nut-icon.cho-xac-nhan { background: var(--do); color: #fff; border-color: var(--do); }
.nut-nho { min-height: 34px; padding: 0 12px; font-size: 13.5px; border-radius: 9px; }
.nut-nho .ic { width: 17px; height: 17px; }
.nut-rong { width: 100%; margin-top: 12px; }
.hang-nut { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; margin-top: 14px; }
.hang-nut.trai { justify-content: flex-start; }
.hang-nut form { margin: 0; }

/* ---------- tab đôi (giống ảnh tham khảo) */
.tab-doi { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; background: var(--nen); border-radius: 13px; margin-bottom: 14px; }
.tab-doi.ba { grid-template-columns: repeat(3, 1fr); }
.tab-doi a { text-align: center; padding: 10px 6px; border-radius: 10px; color: var(--mo); font-weight: 500; }
.tab-doi a.on { background: var(--xanh); color: #fff; font-weight: 600; box-shadow: 0 1px 3px rgba(31, 157, 69, .3); }
.tab-doi.nho a { padding: 8px 4px; font-size: 14px; }

/* ---------- lịch tuần */
.lich { padding-bottom: 6px; }
.lich-dieu-huong { display: flex; align-items: center; justify-content: space-between; padding-top: 2px; }
.lich-dieu-huong b { font-size: 17px; }
.lich-nut { display: flex; gap: 2px; }
.chon-ngay { position: relative; overflow: hidden; }
.chon-ngay input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.tuan { display: grid; grid-template-columns: repeat(7, 1fr); border: 1px solid var(--vien); border-radius: 14px; overflow: hidden; margin: 10px 0 4px; }
.tuan a { display: flex; flex-direction: column; align-items: center; color: var(--chu); border-left: 1px solid var(--vien); }
.tuan a:first-child { border-left: 0; }
.tuan span { width: 100%; text-align: center; padding: 8px 0; font-weight: 600; font-size: 14px; border-bottom: 1px solid var(--vien); }
.tuan b { width: 32px; height: 32px; margin: 8px 0 2px; display: grid; place-items: center; border-radius: 50%; font-weight: 500; color: #4b5360; }
.tuan i { width: 5px; height: 5px; border-radius: 50%; margin-bottom: 7px; }
.tuan i.co { background: var(--vang); }
.tuan a.hom-nay b { color: var(--xanh); font-weight: 700; }
.tuan a.chon b { background: var(--do); color: #fff; font-weight: 700; }
.tuan a.chon span { color: var(--xanh-dam); }
.lich-ngay { border-top: 1px solid var(--vien); margin: 14px -16px 0; padding: 14px 16px 6px; }
.lich-ngay h2 { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; font-size: 17px; }

.the-buoi { display: block; color: var(--chu); background: #f7f9fc; border: 1px solid #e3e8ef; border-radius: 14px; padding: 13px 14px; margin-bottom: 10px; }
.the-buoi:hover { border-color: var(--xanh-vien); }
.the-buoi.xong { background: #f4fbf6; border-color: #d4eedb; }
.the-buoi-dau { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.nhan-mau { background: var(--xanh-nhat); color: var(--xanh-dam); padding: 3px 9px; border-radius: 7px; font-size: 13px; font-weight: 600; }
.trang-thai { font-size: 12.5px; color: var(--mo); display: inline-flex; align-items: center; gap: 3px; font-weight: 600; }
.trang-thai .ic { width: 15px; height: 15px; }
.tt-xanh { color: var(--xanh); }
.tt-cam { color: var(--cam); }
.the-buoi-ten { font-weight: 700; font-size: 16px; }
.the-buoi .mo { font-size: 14px; }
.the-buoi-gio { display: flex; align-items: center; gap: 6px; margin: 4px 0; color: #4b5360; }
.the-buoi-gio .ic { width: 17px; height: 17px; }

/* ---------- danh sách ô (Tổng quan) */
.ds-o { display: flex; flex-direction: column; gap: 10px; }
.o-tq {
  display: flex; align-items: center; gap: 14px; padding: 14px; border: 1px solid var(--vien); border-radius: 16px;
  color: var(--chu); background: var(--trang);
}
.o-tq:hover { border-color: var(--xanh-vien); background: #fbfdfb; }
.o-tq > span:nth-child(2) { flex: 1; min-width: 0; }
.o-tq b { display: block; font-weight: 600; }
.o-tq small { display: block; color: var(--mo); font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.o-tq strong { color: var(--chu); }
.o-tq .mui { color: #9aa2ad; }
.o-tq.mo-di { opacity: .6; }
.o-tq-icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--xanh-nhat); color: var(--xanh); flex: none; }
.o-tq-icon.cam { background: var(--cam-nhat); color: var(--cam); }
.o-tq-icon.do { background: var(--do-nhat); color: var(--do); }
.o-tq-icon.xanh { background: var(--xanh-nhat); color: var(--xanh); }
.ds-o.gon .o-tq { padding: 10px 12px; border-radius: 12px; }
.ds-o.gon .o-tq-icon { width: 36px; height: 36px; border-radius: 10px; }
em.nhan-xam, em.nhan-xanh { font-style: normal; font-size: 11.5px; padding: 1px 6px; border-radius: 6px; vertical-align: 2px; margin-left: 4px; font-weight: 600; }
em.nhan-xam { background: #eef0f3; color: var(--mo); }
em.nhan-xanh { background: var(--xanh-nhat); color: var(--xanh-dam); }

/* ---------- học sinh */
.ds-hs { display: flex; flex-direction: column; }
.dong-hs { display: flex; align-items: center; gap: 12px; padding: 10px 10px; color: var(--chu); border-bottom: 1px solid #f0f2f5; }
.dong-hs:last-child { border-bottom: 0; }
.dong-hs .ten { flex: 1; min-width: 0; font-weight: 500; }
.dong-hs .ten small { display: block; color: var(--mo); font-weight: 400; font-size: 13px; }
.chu-cai { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--vang-nhat); color: #9a6a00; font-weight: 700; flex: none; }
.so-buoi { font-size: 13px; font-weight: 700; color: var(--xanh-dam); background: var(--xanh-nhat); border-radius: 8px; padding: 3px 8px; white-space: nowrap; }
.so-buoi.sap-het { color: #9a5b00; background: var(--cam-nhat); }
.so-buoi.het { color: #fff; background: var(--do); }

.so-lon { display: grid; grid-template-columns: 1.3fr 1fr 1fr; padding: 0; overflow: hidden; }
.so-lon > div { padding: 14px 12px; border-left: 1px solid var(--vien); display: flex; flex-direction: column; justify-content: flex-end; }
.so-lon > div:first-child { border-left: 0; background: var(--xanh-nhat); color: var(--xanh-dam); }
.so-lon span { font-size: 13px; color: var(--mo); }
.so-lon > div:first-child span { color: inherit; }
.so-lon b { font-size: 24px; line-height: 1.15; }
.so-lon > div:first-child b { font-size: 38px; }
.so-lon small { font-size: 12.5px; }
.so-lon.sap-het > div:first-child { background: var(--cam-nhat); color: #9a5b00; }
.so-lon.het > div:first-child { background: var(--do-nhat); color: var(--do); }

.tim { display: flex; align-items: center; gap: 8px; background: var(--trang); border: 1px solid var(--vien); border-radius: 12px; padding: 0 12px; margin-bottom: 12px; }
.tim .ic { color: var(--mo); }
.tim input { flex: 1; border: 0; outline: 0; padding: 12px 0; background: transparent; min-width: 0; }

.hop-link { display: flex; gap: 8px; }
.hop-link input { flex: 1; min-width: 0; font-size: 13px; color: var(--mo); }

.ds-goi { margin-top: 12px; }
.dong-goi { display: flex; align-items: center; justify-content: space-between; padding: 10px 2px; border-top: 1px solid #f0f2f5; }
.dong-goi small { display: block; color: var(--mo); font-size: 13px; }
.dong-goi form { margin: 0; }
.dong-goi .nut-icon { color: #9aa2ad; }

.ds-ls { display: flex; flex-direction: column; }
.dong-ls { display: flex; align-items: center; gap: 12px; padding: 10px 8px; border-bottom: 1px solid #f0f2f5; color: var(--chu); }
.dong-ls:last-child { border-bottom: 0; }
.ngay-nho { width: 44px; text-align: center; font-size: 11.5px; color: var(--mo); flex: none; line-height: 1.1; }
.ngay-nho b { display: block; font-size: 19px; color: var(--chu); }
.dong-ls .noi { flex: 1; min-width: 0; }
.dong-ls .noi b { display: block; font-weight: 600; font-size: 14.5px; }
.dong-ls .noi small { display: block; color: var(--mo); font-size: 13px; }
.nhan-tt { font-size: 12px; font-weight: 600; padding: 3px 8px; border-radius: 7px; white-space: nowrap; flex: none; }
.nhan-tt.tt-co_mat { background: var(--xanh-nhat); color: var(--xanh-dam); }
.nhan-tt.tt-di_muon { background: var(--vang-nhat); color: #8a6100; }
.nhan-tt.tt-vang_cp { background: #eef0f3; color: #4b5360; }
.nhan-tt.tt-vang_kp { background: var(--do-nhat); color: var(--do); }

/* ---------- form */
.o { display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; font-size: 14px; color: #3b4350; font-weight: 500; }
.o i { color: var(--do); font-style: normal; }
input:not([type=checkbox]):not([type=radio]), select, textarea {
  width: 100%; border: 1px solid #d9dee5; border-radius: 10px; padding: 10px 12px; background: var(--trang);
  font-size: 16px; /* >=16px để iPhone không tự zoom */ font-weight: 400; color: var(--chu); min-height: 44px;
}
textarea { resize: vertical; min-height: 0; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--xanh-vien); border-color: var(--xanh); }
.form .nhan, .them-buoi .nhan { font-size: 14px; font-weight: 500; color: #3b4350; }
.goi-y { color: var(--mo); font-weight: 400; font-size: 12.5px; }
.loi { color: var(--do); font-weight: 500; font-size: 13px; }
.co-loi input, .co-loi select, .co-loi textarea { border-color: var(--do); }
.o-tick label, label.o-tick { display: flex; align-items: center; gap: 10px; cursor: pointer; font-weight: 500; }
input[type=checkbox] { width: 20px; height: 20px; accent-color: var(--xanh); flex: none; margin: 0; }
.ds-chon { display: flex; flex-wrap: wrap; gap: 8px; max-height: 300px; overflow-y: auto; }
.ds-chon > div { display: contents; }
.chip-chon { display: inline-flex; align-items: center; gap: 7px; padding: 8px 12px; border: 1px solid var(--vien); border-radius: 10px; cursor: pointer; font-weight: 400; background: var(--trang); }
.chip-chon:has(input:checked) { border-color: var(--xanh); background: var(--xanh-nhat); color: var(--xanh-dam); font-weight: 600; }
.chip-chon.an { display: none; }
.ds-thu .chip-chon { min-width: 64px; justify-content: center; }
.loc-nhanh { margin-bottom: 8px; }
.hang { display: flex; gap: 8px; }
.hang input { flex: 1; }
.hang-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.them-buoi { margin-top: 16px; padding-top: 14px; border-top: 1px dashed var(--vien); display: flex; flex-direction: column; gap: 6px; }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }

/* ---------- điểm danh */
.ds-dd { display: flex; flex-direction: column; gap: 10px; }
.dd { border: 1px solid var(--vien); border-radius: 14px; padding: 10px; }
.dd-dau { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.dd-dau .ten { flex: 1; font-weight: 600; min-width: 0; }
.dd-chon { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.dd-chon label { position: relative; cursor: pointer; }
.dd-chon input { position: absolute; opacity: 0; pointer-events: none; }
.dd-chon span {
  display: grid; place-items: center; text-align: center; min-height: 40px; padding: 4px 4px; border-radius: 10px;
  border: 1px solid var(--vien); font-size: 13px; line-height: 1.15; color: #4b5360; background: var(--trang); user-select: none;
}
.dd-chon input:focus-visible + span { outline: 2px solid var(--xanh); }
.dd-chon .tt-co_mat input:checked + span { background: var(--xanh); border-color: var(--xanh); color: #fff; font-weight: 600; }
.dd-chon .tt-di_muon input:checked + span { background: var(--vang); border-color: var(--vang); color: #4a3500; font-weight: 600; }
.dd-chon .tt-vang_cp input:checked + span { background: #6b7380; border-color: #6b7380; color: #fff; font-weight: 600; }
.dd-chon .tt-vang_kp input:checked + span { background: var(--do); border-color: var(--do); color: #fff; font-weight: 600; }
.dd.chua { border-color: #f1d9b5; background: #fffcf6; }
.dd-nx { margin-top: 8px; }
.dd-nx summary { cursor: pointer; color: var(--xanh-dam); font-size: 13.5px; font-weight: 500; display: inline-flex; align-items: center; gap: 6px; list-style: none; }
.dd-nx summary::-webkit-details-marker { display: none; }
.dd-nx summary .ic { width: 17px; height: 17px; }
.dd-nx textarea { margin-top: 8px; }

.ds-gv { display: flex; flex-direction: column; gap: 8px; }
.dong-gv { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border: 1px solid var(--vien); border-radius: 12px; }
.dong-gv label { flex: 1; min-width: 0; }
.dong-gv select { width: auto; min-height: 38px; padding: 6px 8px; font-size: 14px; }
.dong-gv.khoa { background: var(--nen); color: var(--mo); }

.thanh-luu {
  position: sticky; bottom: calc(var(--cao-duoi) + env(safe-area-inset-bottom) + 8px); z-index: 5;
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  background: var(--trang); border: 1px solid var(--vien); border-radius: 16px; padding: 10px 10px 10px 14px;
  box-shadow: 0 6px 24px rgba(16, 24, 40, .1);
}
.thanh-luu .nut { margin-left: auto; }
@media (min-width: 960px) { .thanh-luu { bottom: 12px; } }
.vung-xoa { margin: 22px 0 0; text-align: center; }

/* ---------- thông báo */
.thong-bao { margin-bottom: 12px; }
.tb { padding: 11px 14px; border-radius: 12px; margin-bottom: 10px; font-size: 14px; border: 1px solid; }
.tb-success { background: var(--xanh-nhat); border-color: var(--xanh-vien); color: var(--xanh-dam); }
.tb-error { background: var(--do-nhat); border-color: #f4c3c5; color: #b3262b; }
.tb-warning { background: var(--cam-nhat); border-color: #f6d6a6; color: #8a5100; }
.tb-info { background: #eef5ff; border-color: #cfe0fb; color: #24518f; }

/* ---------- công */
.chon-thang { display: flex; align-items: center; justify-content: center; gap: 14px; margin-bottom: 12px; }
.chon-thang b { min-width: 130px; text-align: center; font-size: 16px; }
.bang { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.bang th, .bang td { padding: 10px 10px; text-align: right; border-bottom: 1px solid #f0f2f5; }
.bang th:first-child, .bang td:first-child { text-align: left; }
.bang th { font-size: 12.5px; color: var(--mo); font-weight: 600; }
.bang tfoot td { font-weight: 700; border-bottom: 0; }

/* ---------- đăng nhập */
.hop-dang-nhap { max-width: 380px; margin: 0 auto; padding: 48px 18px; text-align: center; }
.hop-dang-nhap .the { text-align: left; margin-top: 18px; }
.hop-dang-nhap h1 { color: var(--xanh-dam); font-size: 26px; margin-top: 10px; }
.logo-lon { border-radius: 50%; box-shadow: 0 6px 20px rgba(31, 157, 69, .25); }
.trang-dang-nhap { background: linear-gradient(180deg, var(--xanh-nhat), var(--nen) 320px); }

/* ---------- phụ huynh */
.ds-nk { display: flex; flex-direction: column; gap: 12px; }
.nk { border: 1px solid var(--vien); border-radius: 14px; padding: 12px 14px; }
.nk-dau { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; }
.nk-dau small { display: block; color: var(--mo); font-size: 13px; }
.nk-bai { display: flex; gap: 8px; align-items: center; margin-top: 10px; font-weight: 600; color: var(--xanh-dam); }
.nk p { margin: 8px 0 0; color: #3b4350; }
.nk-btvn { font-size: 14px; }
.nk-nx { margin-top: 10px; background: var(--vang-nhat); border-radius: 10px; padding: 10px 12px; font-size: 14.5px; }
.nk-nx b { display: block; font-size: 12.5px; color: #8a6100; margin-bottom: 2px; }
.trang-ph .noi-dung { padding-bottom: 32px; }

@media (max-width: 380px) {
  .dd-chon span { font-size: 12px; }
  .so-lon > div:first-child b { font-size: 32px; }
  .hang-2 { grid-template-columns: 1fr; gap: 0; }
}

/* ---------- BTVN, sinh nhật, báo cáo, nhập dữ liệu */
.dd-btvn { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
.nhan-btvn { font-size: 12px; font-weight: 700; color: var(--mo); width: 38px; flex: none; }
.dd-chon.chon-btvn { grid-template-columns: 1fr 1fr; flex: 1; }
.dd-chon.chon-btvn span { min-height: 36px; }
.dd-chon .bt-nop input:checked + span { background: var(--xanh-nhat); border-color: var(--xanh); color: var(--xanh-dam); font-weight: 600; }
.dd-chon .bt-khong input:checked + span { background: var(--do-nhat); border-color: var(--do); color: var(--do); font-weight: 600; }
.dd .dd-btvn input.o-diem { width: 64px; flex: none; min-height: 36px; padding: 6px 8px; text-align: center; }
.sn { display: flex; align-items: center; gap: 4px; color: #c0560c; font-size: 12.5px; font-weight: 600; }
.sn .ic { width: 15px; height: 15px; }
.btvn-truoc { display: flex; gap: 10px; background: var(--vang-nhat); border-radius: 12px; padding: 10px 12px; margin: 0 0 12px; font-size: 14px; }
.btvn-truoc .ic { color: #9a6a00; margin-top: 2px; }
.btvn-truoc b { display: block; font-size: 12.5px; color: #8a6100; }
.o-tq-icon.vang { background: var(--vang-nhat); color: #b26a00; }
.ds-sn { display: flex; flex-direction: column; }
.dong-sn { display: flex; align-items: center; gap: 12px; padding: 9px 4px; border-bottom: 1px solid #f0f2f5; color: var(--chu); }
.dong-sn:last-child { border-bottom: 0; }
.dong-sn .ten { flex: 1; min-width: 0; font-weight: 500; }
.dong-sn .ten small { display: block; color: var(--mo); font-weight: 400; font-size: 13px; }
.dong-sn .khi { font-size: 12.5px; font-weight: 600; color: var(--mo); white-space: nowrap; }
.dong-sn .khi.hom-nay { color: #fff; background: var(--cam); border-radius: 7px; padding: 3px 8px; }
.ds-bc { display: flex; flex-direction: column; }
.dong-bc { padding: 11px 10px; border-bottom: 1px solid #f0f2f5; color: var(--chu); display: block; }
.dong-bc:last-child { border-bottom: 0; }
.dong-bc-dau { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; }
.dong-bc-dau b { font-weight: 600; }
.chi-so { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 8px; }
.chi-so > div { background: var(--nen); border-radius: 10px; padding: 7px 9px; font-size: 12px; color: var(--mo); }
.chi-so b { display: block; font-size: 15px; color: var(--chu); }
.chi-so .tot b { color: var(--xanh-dam); }
.chi-so .kem b { color: var(--do); }
.thanh { height: 5px; border-radius: 3px; background: #e9ecef; margin-top: 5px; overflow: hidden; }
.thanh i { display: block; height: 100%; background: var(--xanh); border-radius: 3px; }
.kem .thanh i { background: var(--do); }
.loc-bc { display: flex; gap: 8px; margin-bottom: 12px; }
.loc-bc select { flex: 1; }
.bang-xem { width: 100%; border-collapse: collapse; font-size: 13px; }
.bang-xem th, .bang-xem td { padding: 7px 6px; border-bottom: 1px solid #f0f2f5; text-align: left; vertical-align: top; }
.bang-xem th { color: var(--mo); font-weight: 600; font-size: 12px; }
.cuon-ngang { overflow-x: auto; margin: 0 -4px; }
.tt-moi { color: var(--xanh-dam); font-weight: 600; }
.tt-trung { color: var(--mo); font-weight: 600; }
.tt-loi { color: var(--do); font-weight: 600; }
.huong-dan { margin: 0; padding-left: 18px; color: #3b4350; font-size: 14px; }
.huong-dan li { margin-bottom: 4px; }
input[type=file] { padding: 9px; }
.khong-ngat { white-space: nowrap; }
