/* Dasbor /admin tahap 1 (1 Okt 2026) — kelas bebas Tailwind tak dikompilasi, jadi gaya di sini. */
.db { --bd: rgba(15,23,42,.08); --mut: #64748b; --teks: #0f172a; --kartu: #fff; --lemah: #e2e8f0; }
.db .kartu { background: var(--kartu); border-radius: 12px; box-shadow: 0 1px 2px rgba(0,0,0,.04); outline: 1px solid var(--bd); color: var(--teks); }
.db .kepala { padding: 16px 24px; border-bottom: 1px solid var(--bd); display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.db h3 { font-size: 15px; font-weight: 600; margin: 0; display: flex; align-items: center; gap: 8px; }
.db .sub { font-size: 13px; color: var(--mut); margin-top: 2px; }
.db .kpad { padding: 6px 24px 14px; }
.db .ik svg, .db svg.fi-icon { width: 20px; height: 20px; }
.db .stat { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
.db .st { padding: 16px 18px; display: flex; flex-direction: column; gap: 10px; }
.db .st .ic { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; flex: none; }
.db .st .ic svg { width: 20px; height: 20px; }
.db .st .lbl { font-size: 13px; color: var(--mut); }
.db .st .angka { font-size: 24px; font-weight: 700; line-height: 1.15; margin-top: 2px; white-space: nowrap; }
.db .st .rinci { font-size: 12.5px; color: var(--mut); margin-top: 4px; }
.db .baris { padding: 12px 0; border-bottom: 1px solid var(--bd); }
.db .baris:last-child { border-bottom: 0; }
.db .baris .atas { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 14px; }
.db .baris .judul { display: flex; gap: 10px; align-items: center; font-weight: 500; }
.db .baris .judul .ik { color: #174F86; }
.db .baris .nilai b { font-weight: 700; } .db .baris .nilai .tot { color: #94a3b8; } .db .baris .nilai .ket { color: var(--mut); font-size: 12.5px; }
.db .bar { height: 8px; border-radius: 99px; background: var(--lemah); overflow: hidden; margin-top: 6px; }
.db .bar i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, #174F86, #0CBDC7); }
.db .tag { font-size: 11.5px; font-weight: 600; padding: 3px 9px; border-radius: 99px; white-space: nowrap; }
.db .t-warn { background: #fef3c7; color: #92400e; } .db .t-ok { background: #dcfce7; color: #166534; } .db .t-abu { background: #f1f5f9; color: #475569; }

.db .isu { display: flex; gap: 12px; align-items: center; padding: 11px 0; border-bottom: 1px solid var(--bd); font-size: 14px; }
.db .isu:last-of-type { border-bottom: 0; }
.db .isu .ik { color: #d97706; } .db .isu b { font-weight: 700; }
.db a.isu { color: inherit; text-decoration: none; cursor: pointer; border-radius: 10px; margin: 0 -8px; padding-inline: 8px; }
.db a.isu:hover { background: rgba(23,79,134,.06); }
.db .isu .ke, .db .isu a { margin-left: auto; color: #174F86; font-size: 13px; font-weight: 500; display: flex; align-items: center; gap: 2px; white-space: nowrap; }
.db .isu a svg, .db .isu .ke svg { width: 14px; height: 14px; }
.db .beres { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.db .kosong { font-size: 13px; color: var(--mut); padding: 12px 0; }
.db .cepat { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); padding: 16px 24px 20px; }
.db .btn { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 10px; outline: 1px solid var(--bd); font-size: 14px; font-weight: 500; color: var(--teks); transition: background .15s; }
.db .btn:hover { background: rgba(23,79,134,.06); }
.db .btn .ik { color: #174F86; }

/* Prestasi Murid (17 Okt 2026): label peserta — sama dengan sekolah.css, karena tabel /admin mewarisi tabel /sekolah */
.pr-tag { display: inline-block; font-size: 11.5px; font-weight: 500; line-height: 1.4; padding: 1px 7px; border-radius: 6px; border: 1px solid; white-space: nowrap; vertical-align: 1px; }
.pr-alumni { color: #6d28d9; background: #f5f3ff; border-color: #ddd6fe; }
.pr-nonaktif { color: #475569; background: #f1f5f9; border-color: #cbd5e1; }
.pr-cek { color: #b45309; background: #fffbeb; border-color: #fde68a; }

/* Dasbor Tata Usaha (17 Okt 2026) */
.db.tu { display: flex; flex-direction: column; gap: 16px; }
.db.tu a.kartu { text-decoration: none; transition: background .15s; } .db.tu a.kartu:hover { background: rgba(23,79,134,.04); }
.db .tu-grid { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); align-items: start; }
.db .tu-grid > div { display: flex; flex-direction: column; gap: 16px; } .db .tu-grid > .kartu { display: block; }
@media (max-width: 1100px) { .db .tu-grid { grid-template-columns: minmax(0, 1fr); } }
.db .tu-rekap { width: 100%; border-collapse: collapse; font-size: 13.5px; margin-top: 8px; }
.db .tu-rekap th, .db .tu-rekap td { padding: 6px 10px; text-align: right; border-bottom: 1px solid var(--bd); }
.db .tu-rekap th:first-child, .db .tu-rekap td:first-child { text-align: left; }
.db .tu-rekap th { color: var(--mut); font-weight: 600; font-size: 12.5px; }
.db .tu-rekap tr.sub td { background: rgba(23,79,134,.06); color: #174F86; font-weight: 600; }
.db .tu-rekap tr.tot td { background: #172C4A; color: #fff; font-weight: 700; border: 0; }
.db .tu-tombol { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.db .tu-tombol .btn { padding: 8px 12px; font-size: 13px; } .db .tu-tombol .btn svg { width: 16px; height: 16px; }
.db .tu-tombol .btn.utama { background: #174F86; color: #fff; outline: 0; } .db .tu-tombol .btn.utama:hover { background: #12406d; }
.db .tu-bar { display: grid; grid-template-columns: 150px minmax(0, 1fr) 96px; gap: 12px; align-items: center; font-size: 13.5px; padding: 7px 0; }
.db .tu-bar .bar { margin: 0; } .db .tu-bar .bar i.kuning { background: #f59e0b; }
.db .tu-bar a { color: #174F86; font-weight: 600; text-align: right; display: flex; justify-content: flex-end; align-items: center; gap: 2px; font-size: 13px; white-space: nowrap; }
 .db .tu-bar a svg { width: 14px; height: 14px; }
.db .tu-bar .ok { color: #16a34a; text-align: right; font-size: 13px; }
.db .tu-mut { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 8px 0 12px; }
.db .tu-mut div { border-radius: 12px; padding: 10px 12px; font-size: 12.5px; } .db .tu-mut b { display: block; font-size: 22px; line-height: 1.2; }
.db .m-masuk { background: #dcfce7; color: #166534; } .db .m-pindah { background: #e0f2fe; color: #075985; } .db .m-keluar { background: #fee2e2; color: #991b1b; }

.db .t-biru { background: #e0f2fe; color: #075985; } .db .t-merah { background: #fee2e2; color: #991b1b; }
.db .tu-gulir { overflow-x: auto; }
.db .tu-tabel { width: 100%; border-collapse: collapse; font-size: 13px; min-width: 520px; }
.db .tu-tabel th { text-align: left; color: var(--mut); font-weight: 600; font-size: 12.5px; padding: 7px 8px; border-bottom: 1px solid var(--bd); }
.db .tu-tabel td { padding: 8px; border-bottom: 1px solid var(--bd); vertical-align: top; }
.db .tu-tabel a, .db .tu-ultah a, .db .catat a { color: #174F86; font-weight: 500; }
.db .redup { color: var(--mut); } .db .catat { font-size: 12.5px; color: var(--mut); margin-top: 8px; }
.db .tu-ultah summary { cursor: pointer; font-size: 14px; padding: 8px 0; }
.db .baris-ultah { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; padding: 5px 0 5px 22px; border-bottom: 1px dashed var(--bd); flex-wrap: wrap; }
.db a.tu-baris { display: block; font-size: 14px; padding: 9px 0; color: inherit; text-decoration: none; border-top: 1px solid var(--bd); }
.db a.tu-baris:hover { color: #174F86; }
@media (max-width: 640px) { .db .tu-bar { grid-template-columns: 112px minmax(0, 1fr) 84px; gap: 8px; font-size: 13px; } }
/* revisi tata letak (17 Okt 2026): baris 2 = mutasi lebar | pekan ini; tanggal & kelas tak terlipat; rekap lebih rapat */
.db .tu-grid2 { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); }
@media (max-width: 1100px) { .db .tu-grid2 { grid-template-columns: minmax(0, 1fr); } }
.db .tu-tabel td:first-child, .db .tu-tabel td:nth-child(3), .db .tu-tabel td:nth-child(4) { white-space: nowrap; }
.db .tu-rekap th, .db .tu-rekap td { padding: 5px 10px; }
.db .tu-grid .cepat { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
.db .tu-grid2 { align-items: stretch; } .db .tu-grid2 > .kartu { height: 100%; }
.db .tu-tabel td.nama { min-width: 100px; white-space: normal; }   /* 18 Okt 2026: boleh turun baris agar tabel muat */
.db .tu-tabel td.alasan { min-width: 80px; white-space: normal; }
.db .baris-ultah { display: block; padding: 6px 0 6px 22px; } .db .baris-ultah .kecil { display: block; font-size: 12px; margin-top: 1px; }
.db .tu-semua { margin-top: 8px; font-size: 13px; font-weight: 600; color: #174F86; background: none; border: 0; cursor: pointer; padding: 4px 0; }
.db .tu-hal { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 10px; font-size: 13px; color: var(--mut); }
.db .tu-hal .tombol { display: flex; gap: 4px; }
.db .tu-hal button { min-width: 32px; height: 32px; border-radius: 8px; outline: 1px solid var(--bd); background: var(--kartu); color: var(--teks); font-weight: 600; font-size: 13px; cursor: pointer; }
.db .tu-hal button:hover:not(:disabled) { background: rgba(23,79,134,.06); }
.db .tu-hal button.aktif { background: #174F86; color: #fff; outline: 0; }
.db .tu-hal button:disabled { opacity: .4; cursor: default; }

/* 18 Okt 2026 (Mas Puji): di laptop tabel mutasi Beranda TU tak perlu digeser; di HP tetap bisa digeser */
@media (min-width: 1024px) { .db .tu-tabel { min-width: 0; } }
.db .tu-lebar { margin-top: 16px; }   /* 19 Okt 2026: Mutasi selebar halaman */

/* ═══ Beranda TU baru (19 Okt 2026, mockup disetujui Mas Puji) ═══ */
.db.tu2 { display: flex; flex-direction: column; gap: 16px; }
.db .tu-hero { border-radius: 20px; padding: 22px 26px; color: #fff; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 20px; align-items: end;
  background: radial-gradient(circle at 85% 15%, rgba(12,189,199,.45), transparent 45%), linear-gradient(120deg, #172C4A 0%, #174F86 75%); }
.db .tu-hero small { opacity: .8; font-size: 12.5px; } .db .tu-hero h2 { font-size: 22px; font-weight: 700; margin: 6px 0 2px; } .db .tu-hero p { opacity: .85; font-size: 13.5px; }
.db .tu-pil { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; background: rgba(245,158,11,.22); border: 1px solid rgba(245,158,11,.55); border-radius: 99px; padding: 4px 12px; font-size: 12.5px; font-weight: 600; color: #fff; }
.db .tu-pil svg { width: 15px; height: 15px; } .db .tu-pil.ok { background: rgba(34,197,94,.2); border-color: rgba(34,197,94,.5); }
.db .tu-hero-angka { display: grid; grid-template-columns: repeat(4, minmax(118px, 1fr)); gap: 10px; }
.db .tu-hero-angka a { background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18); border-radius: 14px; padding: 11px 14px; color: #fff; transition: background .15s; }
.db .tu-hero-angka a:hover { background: rgba(255,255,255,.18); }
.db .tu-hero-angka b { display: block; font-size: 25px; line-height: 1.1; font-weight: 700; } .db .tu-hero-angka span { font-size: 11.5px; opacity: .85; line-height: 1.35; display: block; margin-top: 2px; }
@media (max-width: 1200px) { .db .tu-hero { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 640px) { .db .tu-hero { padding: 18px; } .db .tu-hero h2 { font-size: 19px; } .db .tu-hero-angka { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.db .tu-alarm { display: flex; gap: 10px; align-items: center; background: #fef3c7; color: #92400e; border-radius: 12px; padding: 10px 14px; font-size: 13.5px; }
.db .tu-alarm svg { width: 20px; height: 20px; flex: none; } .db .tu-alarm span:last-child { margin-left: auto; font-size: 18px; }
.db .tu-aks { display: flex; flex-wrap: wrap; gap: 8px; }
.db .tu-aks > a, .db .tu-buat > button { display: inline-flex; align-items: center; gap: 7px; background: var(--kartu); outline: 1px solid var(--bd); border-radius: 11px; padding: 9px 14px; font-size: 13px; font-weight: 600; color: var(--teks); cursor: pointer; }
.db .tu-aks > a:hover { background: rgba(23,79,134,.06); }
.db .tu-aks svg { width: 17px; height: 17px; color: #174F86; }
.db .tu-buat { position: relative; } .db .tu-buat > button.utama { background: #174F86; color: #fff; outline: 0; } .db .tu-buat > button.utama svg { color: #fff; }
.db .tu-buat > button.utama:hover { background: #12406d; }
.db .tu-menu { position: absolute; z-index: 30; top: calc(100% + 6px); left: 0; min-width: 230px; background: var(--kartu); border-radius: 12px; box-shadow: 0 10px 30px rgba(15,23,42,.15); outline: 1px solid var(--bd); padding: 6px; }
.db .tu-menu a { display: flex; gap: 10px; align-items: baseline; padding: 8px 10px; border-radius: 8px; font-size: 13px; color: var(--teks); }
.db .tu-menu a:hover { background: rgba(23,79,134,.07); } .db .tu-menu a b { min-width: 58px; } .db .tu-menu a span { color: var(--mut); font-size: 12.5px; }
.db .tu-g2 { display: grid; gap: 16px; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); align-items: stretch; }
.db .tu-g2b { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); }
.db .tu-g2.tu-satu { grid-template-columns: minmax(0, 1fr); }
.db .tu-g3 { display: grid; gap: 16px; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: stretch; }
@media (max-width: 1100px) { .db .tu-g2, .db .tu-g2b { grid-template-columns: minmax(0, 1fr); } .db .tu-g3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) { .db .tu-g3 { grid-template-columns: minmax(0, 1fr); } }
.db .tu-ke { font-size: 13px; font-weight: 600; color: #174F86; white-space: nowrap; }
.db .kecil { font-size: 12px; }
.db a.tu-td { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px 8px; margin: 0 -8px; border-bottom: 1px solid var(--bd); color: inherit; border-radius: 10px; }
.db a.tu-td:last-child { border-bottom: 0; } .db a.tu-td:hover { background: rgba(23,79,134,.05); }
.db .tu-td-isi { display: flex; flex-direction: column; gap: 1px; font-size: 14px; min-width: 0; } .db .tu-td-isi b { font-size: 15.5px; font-weight: 800; }
.db .tu-ik { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; } .db .tu-ik svg { width: 19px; height: 19px; }
.db .w-o { background: #fff4e0; color: #b45309; } .db .w-r { background: #fdecec; color: #b91c1c; } .db .w-b { background: #e8f0fb; color: #174F86; }

.db .tu-bt { font-size: 12.5px; font-weight: 600; color: #174F86; outline: 1px solid #cfe0f3; border-radius: 9px; padding: 5px 10px; white-space: nowrap; }
.db .tu-jenis { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; margin: 8px 0 12px; }
.db .tu-jenis a { background: rgba(23,79,134,.05); border-radius: 12px; padding: 10px 6px; text-align: center; color: var(--teks); }
.db .tu-jenis a:hover { background: rgba(23,79,134,.1); }
.db .tu-jenis b { display: block; font-size: 20px; font-weight: 700; } .db .tu-jenis span { font-size: 11.5px; color: var(--mut); } .db .tu-jenis a.nol b { color: #a0aec0; }
.db .tu-nomor { color: var(--teks); font-family: ui-monospace, monospace; font-size: 12px; word-break: break-all; }
.db .tu-sr { display: grid; grid-template-columns: 52px 62px minmax(0, 1fr) auto; gap: 8px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--bd); font-size: 13px; }
.db .tu-sr:last-of-type { border-bottom: 0; } .db .tu-sr-nama { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.db .tu-ch { font-size: 11px; font-weight: 700; border-radius: 6px; padding: 2px 6px; text-align: center; }
.db .j-biru { background: #e8f0fb; color: #174F86; } .db .j-hijau { background: #dcfce7; color: #166534; } .db .j-oranye { background: #fff4e0; color: #b45309; }
.db .j-toska { background: #e6fbfc; color: #0a8f97; } .db .j-abu { background: #f1f5f9; color: #475569; }
.db .tu-bulan { display: flex; gap: 6px; align-items: flex-end; height: 70px; } .db .tu-bulan div { flex: 1; text-align: center; font-size: 11px; color: var(--mut); white-space: nowrap; }
.db .tu-bulan i { display: block; border-radius: 5px 5px 2px 2px; background: linear-gradient(#0CBDC7, #174F86); margin-bottom: 4px; }
.db .tu-lL { color: #174F86; } .db .tu-lP { color: #0CBDC7; }
.db .tu-tingkat { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin-top: 8px; }
.db .tu-tk { outline: 1px solid var(--bd); border-radius: 14px; padding: 12px; }
.db .tu-tk h4 { display: flex; justify-content: space-between; font-size: 14px; font-weight: 600; } .db .tu-tk h4 b { font-size: 16px; }
.db .tu-lp { display: flex; height: 7px; border-radius: 99px; overflow: hidden; margin: 8px 0; background: var(--lemah); }
.db .tu-lp i { display: block; height: 100%; } .db .tu-lp i.l { background: #174F86; } .db .tu-lp i.p { background: #0CBDC7; }
.db .tu-rb { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 8px; } .db .tu-rb span { background: rgba(23,79,134,.06); border-radius: 8px; padding: 4px 7px; font-size: 12px; }
.db .tu-rb b { margin-left: 2px; }
.db .tu-angkatan2 { margin-top: 14px; } .db .tu-angkatan2 p { font-size: 13.5px; font-weight: 600; margin-bottom: 8px; }
.db .tu-angkatan2 > div { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 8px; }
.db .tu-angkatan2 a { background: rgba(23,79,134,.05); border-radius: 10px; padding: 8px 10px; color: var(--teks); }
.db .tu-angkatan2 a b { display: block; font-size: 17px; } .db .tu-angkatan2 a span { font-size: 11.5px; color: var(--mut); }
.db .tu-angkatan2 a.warn { background: #fff4e0; }
.db .tu-cincin { --p: 0%; width: 56px; height: 56px; border-radius: 50%; flex: none; display: grid; place-items: center; background: conic-gradient(#0CBDC7 0 var(--p), var(--lemah) var(--p) 100%); }
.db .tu-cincin span { width: 44px; height: 44px; border-radius: 50%; background: var(--kartu); display: grid; place-items: center; font-size: 13px; font-weight: 800; }
.db .tu-mt { display: grid; grid-template-columns: 46px minmax(0, 1fr) auto; gap: 8px; align-items: start; padding: 7px 0; border-bottom: 1px solid var(--bd); font-size: 13px; }
.db .tu-mt-nama a { color: #174F86; font-weight: 500; }
.db .tu-mt-nama .kecil { display: block; } .db .tu-kurang { display: block; font-size: 11.5px; color: #b45309; font-weight: 600; }
.db .tu-dua { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }
.db .tu-dua a { background: rgba(23,79,134,.05); border-radius: 10px; padding: 9px 11px; font-size: 12px; color: var(--mut); } .db .tu-dua b { display: block; font-size: 19px; color: var(--teks); }
.db .tu-langkah { display: grid; grid-template-columns: 32px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 9px 0; border-bottom: 1px solid var(--bd); font-size: 13.5px; }
.db .tu-langkah:last-of-type { border-bottom: 0; } .db .tu-langkah > span:nth-child(2) { display: flex; flex-direction: column; }
.db .tu-no { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; font-weight: 800; background: #e8f0fb; color: #174F86; }
.db .tu-no.ok { background: #dcfce7; color: #166534; }
