* { box-sizing: border-box; }
body { margin: 0; font-family: "Segoe UI", Arial, sans-serif; background: #f2f5f9; color: #1d2733; font-size: 15px; line-height: 1.45; }
a { color: #1f6fb5; }
.isi { max-width: 1180px; margin: 0 auto; padding: 0 14px; }
.atas { background: #1f4e79; color: #fff; position: sticky; top: 0; z-index: 5; }
.atas .isi { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; padding-top: 8px; padding-bottom: 8px; }
.atas .merek { color: #fff; font-weight: 700; text-decoration: none; font-size: 17px; }
.atas nav { display: flex; flex-wrap: wrap; gap: 4px; flex: 1 1 auto; }
.atas nav a { color: #dce9f6; text-decoration: none; padding: 5px 10px; border-radius: 14px; font-size: 14px; white-space: nowrap; }
.atas nav a.aktif, .atas nav a:hover { background: #fff; color: #1f4e79; font-weight: 600; }
.atas .pengguna { font-size: 12.5px; color: #cfe0f1; } .atas .pengguna a { color: #fff; }
main.isi { padding-top: 16px; padding-bottom: 24px; }
h2 { margin: 6px 0 12px; font-size: 21px; } h3 { margin: 0 0 8px; font-size: 16px; }
.kartu { background: #fff; border: 1px solid #dfe6ee; border-radius: 10px; padding: 14px 16px; margin: 0 0 14px; }
.kecil { font-size: 12.8px; color: #5b6b7c; }
.merah { color: #b3261e; font-weight: 600; } .tengah { text-align: center; }
.pesan { padding: 9px 12px; border-radius: 8px; margin: 0 0 10px; font-size: 14px; }
.pesan.ok { background: #e3f5e9; color: #17613a; border: 1px solid #b9e2c6; }
.pesan.galat { background: #fde8e6; color: #8f1d14; border: 1px solid #f3bcb6; }
.pesan.info { background: #e8f1fb; color: #1b4f84; border: 1px solid #c1d8f1; }
.tombol { display: inline-block; border: 0; border-radius: 7px; padding: 8px 15px; font-size: 14px; font-weight: 600; background: #2b79c4; color: #fff; cursor: pointer; text-decoration: none; }
.tombol.abu { background: #6b7a8a; } .tombol:hover { filter: brightness(1.08); }
.gulir { overflow-x: auto; }
.tabel { border-collapse: collapse; width: 100%; font-size: 13.5px; }
.tabel th, .tabel td { border: 1px solid #dfe6ee; padding: 5px 7px; text-align: left; vertical-align: middle; }
.tabel th { background: #f1f5f9; }
.tabel tr.redup td { opacity: .5; }
input[type=text], input[type=number], input[type=password], select { padding: 6px 8px; border: 1px solid #c5d0dc; border-radius: 6px; font-size: 14px; background: #fff; }
input.sempit { width: 64px; } input.lebar { width: 100%; min-width: 220px; }
.baris-isian { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 8px 0; border-bottom: 1px solid #eef2f6; }
.baris-isian input { width: 90px; }
.baris-form { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; }
.baris-form label { display: flex; flex-direction: column; font-size: 12.8px; color: #5b6b7c; gap: 3px; }
.cek { list-style: none; margin: 0; padding: 0; }
.cek li { padding: 5px 0 5px 26px; position: relative; }
.cek li::before { position: absolute; left: 0; top: 4px; }
.cek li.ok::before { content: "✅"; } .cek li.belum::before { content: "⬜"; }
.cip { display: inline-block; background: #e8f1fb; color: #1b4f84; border-radius: 12px; padding: 1px 9px; font-size: 13px; margin: 1px 2px; }
.mapel-pilih label, .hari-cek label { display: inline-block; white-space: nowrap; font-size: 12.5px; margin-right: 5px; }
table.matriks input.jp { width: 44px; padding: 4px 3px; text-align: center; }
table.matriks td.nama-mapel { white-space: nowrap; font-weight: 600; background: #f8fafc; }
table.matriks tr.baris-total td { background: #f1f5f9; font-weight: 700; }
table.matriks td.lebih { color: #b3261e; background: #fde8e6; }
.kaki { padding: 12px 14px 24px; font-size: 12px; color: #7a8896; }
body.halaman-login { display: flex; align-items: center; justify-content: center; min-height: 100vh; padding: 14px; }
.kartu-login { width: 100%; max-width: 360px; } .kartu-login h1 { margin: 0 0 4px; font-size: 22px; }
.kartu-login label { display: block; margin: 10px 0; font-size: 13.5px; color: #4a5a6b; } .kartu-login input { display: block; width: 100%; margin-top: 4px; }
.kartu-login .tombol { width: 100%; margin-top: 6px; }
.tombol.hijau { background: #2e8b57; } .tombol.merah { background: #c0392b; } .tombol[disabled] { opacity: .5; cursor: not-allowed; }
.giliran-saya { border: 2px solid #2e8b57; background: #f1faf4; text-align: center; }
.hitung { font-size: 44px; font-weight: 700; font-variant-numeric: tabular-nums; margin: 4px 0 6px; color: #17613a; }
.hitung.kecil-hitung { font-size: 18px; margin: 0; color: #1f4e79; }
.tabel tr.sedang td { background: #e8f6ee; font-weight: 700; }
table.papan { border-collapse: collapse; font-size: 12.5px; background: #fff; }
table.papan th, table.papan td { border: 1px solid #b8c4d0; padding: 0; text-align: center; }
table.papan th { background: #e8eef5; padding: 3px 4px; font-size: 12px; } table.papan th.grup { background: #1f4e79; color: #fff; }
table.papan td.jam { width: 26px; background: #f1f5f9; font-weight: 700; padding: 2px 4px; }
table.papan td.wkt { background: #f1f5f9; font-size: 11px; white-space: nowrap; padding: 2px 5px; }
table.papan tr.istirahat td { background: #fdeaea; color: #b3261e; font-weight: 700; font-size: 11.5px; padding: 2px 6px; }
table.papan td.sel { min-width: 40px; height: 30px; font-weight: 700; font-size: 12.5px; }
table.papan td.kosong { background: #fbfcfd; } table.papan td.kosong.tanpa-kebutuhan { background: #f0f0f0; }
table.papan td.milik { outline: 2px solid #1f4e79; outline-offset: -2px; }
table.papan td.hapusable { cursor: pointer; } table.papan td.hapusable small { color: #b3261e; margin-left: 2px; }
.giliran-aktif-papan table.papan td.kosong { cursor: pointer; }
table.papan td.tak-boleh { background: repeating-linear-gradient(45deg, #f3f3f3, #f3f3f3 4px, #e9e9e9 4px, #e9e9e9 8px); cursor: not-allowed; }
table.papan td.pratinjau { background: #b9e6c9 !important; } table.papan td.pratinjau-salah { background: #f6c3be !important; }
.toast { position: fixed; left: 50%; bottom: 18px; transform: translateX(-50%); max-width: 92vw; padding: 10px 16px; border-radius: 10px; font-size: 14px; z-index: 20; box-shadow: 0 3px 12px rgba(0,0,0,.25); }
.toast.ok { background: #17613a; color: #fff; } .toast.galat { background: #8f1d14; color: #fff; }
.tombol-notif { background: rgba(255,255,255,.15); border: 0; color: #fff; border-radius: 14px; padding: 4px 10px; cursor: pointer; font-size: 14px; }
.ringkas { display: flex; flex-wrap: wrap; gap: 10px 26px; margin-bottom: 8px; }
.ringkas div { display: flex; flex-direction: column; } .ringkas b { font-size: 24px; color: #1f4e79; } .ringkas span { font-size: 12.5px; color: #5b6b7c; }
.bar { height: 10px; background: #e6edf4; border-radius: 6px; overflow: hidden; } .bar div { height: 100%; background: #2e8b57; }
.tabel td.sj-ok { color: #1e7a46; font-weight: 600; }
.tombol.kecil-tombol { padding: 4px 9px; font-size: 12.5px; }
.zona-bahaya { border-color: #f1b9b3; background: #fff8f7; }
