/* Caberawit Ciledug Berkarakter — palet oranye–biru–ungu (mengikuti referensi Rev 2) */
:root {
  --cb-blue: #3a5fe5;
  --cb-blue-600: #2f50d0;
  --cb-blue-700: #2742b0;
  --cb-blue-900: #1b2d7d;
  --cb-blue-50: #eaf0ff;
  --cb-blue-100: #d9e3ff;
  --cb-orange: #f7931e;
  --cb-orange-600: #ea7d07;
  --cb-orange-700: #c96a04;
  --cb-orange-50: #fff3e3;
  --cb-purple: #6d4ae6;
  --cb-purple-50: #f0ebff;
  --cb-teal: #14a38b;
  --cb-teal-50: #e2f7f2;
  --cb-pink: #e8508e;
  --cb-pink-50: #fde9f1;
  --cb-grad: linear-gradient(135deg, #5b7ff2 0%, #3a5fe5 55%, #2f50d0 100%);
  --cb-grad-orange: linear-gradient(135deg, #ffad42 0%, #f7931e 55%, #ee7d0b 100%);
  --cb-bg: #f3f5fb;
  --cb-ink: #1d2340;
  --cb-muted: #6d7594;
  --cb-line: #e5e8f2;
  --cb-red: #e5484d;
  --cb-red-50: #fdecec;
  --cb-green: #1f9d6a;
  --cb-amber: #f2a51a;
  --cb-radius: 18px;
  --cb-shadow: 0 6px 22px rgba(40, 52, 110, .07);
  --bs-primary: var(--cb-blue);
  --bs-primary-rgb: 58, 95, 229;
  --bs-link-color: var(--cb-blue);
  --bs-link-color-rgb: 58, 95, 229;
  --bs-link-hover-color: var(--cb-blue-700);
  --bs-body-bg: var(--cb-bg);
  --bs-body-color: var(--cb-ink);
  --bs-border-color: var(--cb-line);
  --bs-border-radius: .7rem;
  --bs-font-sans-serif: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
}
body { background: var(--cb-bg); font-size: .95rem; -webkit-tap-highlight-color: transparent; }
.min-w-0 { min-width: 0; }
.btn { border-radius: .8rem; font-weight: 600; }
.btn-primary {
  --bs-btn-color: #fff; --bs-btn-hover-color: #fff; --bs-btn-active-color: #fff;
  --bs-btn-bg: var(--cb-orange-600); --bs-btn-border-color: var(--cb-orange-600);
  --bs-btn-hover-bg: var(--cb-orange-700); --bs-btn-hover-border-color: var(--cb-orange-700);
  --bs-btn-active-bg: var(--cb-orange-700); --bs-btn-active-border-color: var(--cb-orange-700);
  --bs-btn-disabled-bg: var(--cb-orange); --bs-btn-disabled-border-color: var(--cb-orange);
  background-image: var(--cb-grad-orange); border: 0; box-shadow: 0 6px 14px rgba(240, 125, 11, .28);
}
.btn-primary:hover { background-image: none; }
.btn-outline-primary {
  --bs-btn-color: var(--cb-blue); --bs-btn-border-color: #c0cdf6; background: #fff;
  --bs-btn-hover-bg: var(--cb-blue); --bs-btn-hover-border-color: var(--cb-blue); --bs-btn-hover-color: #fff;
  --bs-btn-active-bg: var(--cb-blue-600); --bs-btn-active-border-color: var(--cb-blue-600);
}
.btn-outline-secondary { --bs-btn-color: #4a5577; --bs-btn-border-color: #d3d9ea; --bs-btn-hover-bg: #eef2fb; --bs-btn-hover-color: var(--cb-ink); --bs-btn-hover-border-color: #c3cbe0; background: #fff; }
.btn-accent { --bs-btn-color: #fff; --bs-btn-bg: var(--cb-red); --bs-btn-border-color: var(--cb-red); --bs-btn-hover-color: #fff; --bs-btn-hover-bg: #cf3b40; --bs-btn-hover-border-color: #cf3b40; --bs-btn-active-bg: #b93236; }
.text-primary { color: var(--cb-blue) !important; }
.bg-primary-subtle { background: var(--cb-blue-50) !important; }
.text-bg-primary { background-color: var(--cb-blue) !important; }
.form-control, .form-select { border-radius: .8rem; border-color: #d8deee; }
.form-control:focus, .form-select:focus { border-color: #f4b062; box-shadow: 0 0 0 .2rem rgba(247, 147, 30, .18); }
.form-check-input:checked { background-color: var(--cb-orange-600); border-color: var(--cb-orange-600); }
.form-switch .form-check-input:checked { background-color: var(--cb-blue); border-color: var(--cb-blue); }

/* ---------- kerangka ---------- */
.app-shell { display: flex; min-height: 100vh; }
.sidebar { width: 264px; flex-shrink: 0; background: linear-gradient(180deg, #3a5fe5 0%, #2c49c4 50%, #1f3394 100%) !important; color: #e8eeff; }
.sidebar::before { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 180px; background: radial-gradient(120% 90% at 0% 100%, rgba(247,147,30,.35), transparent 60%); pointer-events: none; }
@media (min-width: 992px) {
  .sidebar { position: sticky; top: 0; height: 100vh; overflow-y: auto; display: flex; flex-direction: column; }
}
.sidebar.offcanvas-lg { --bs-offcanvas-bg: #2c49c4; --bs-offcanvas-color: #e8eeff; --bs-offcanvas-width: 290px; }
.sidebar-head { display: flex; align-items: center; gap: .7rem; padding: 1.2rem 1rem .9rem; }
.sidebar-head img { width: 44px; height: 44px; border-radius: 50%; background: #fff; padding: 1px; object-fit: contain; }
.brand-name { font-weight: 700; line-height: 1.15; font-size: .95rem; color: #fff; }
.brand-sub { font-size: .75rem; opacity: .75; }
.sidebar-user { display: flex; align-items: center; gap: .65rem; margin: 0 .75rem .5rem; padding: .65rem .75rem; border-radius: 14px; background: rgba(255,255,255,.12); }
.avatar { width: 38px; height: 38px; border-radius: 50%; background: #fff; color: var(--cb-blue); display: grid; place-items: center; font-weight: 800; flex-shrink: 0; }
.sidebar-nav { padding: .25rem .6rem 1.5rem; }
.nav-group { font-size: .68rem; text-transform: uppercase; letter-spacing: .09em; opacity: .6; padding: .9rem .6rem .3rem; }
.nav-item { display: flex; align-items: center; gap: .65rem; padding: .52rem .7rem; border-radius: 12px; color: #e3eaff; text-decoration: none; font-size: .9rem; cursor: pointer; }
.nav-item i { font-size: 1.05rem; width: 1.2rem; text-align: center; opacity: .95; }
.nav-item:hover { background: rgba(255,255,255,.12); color: #fff; }
.nav-item.active { background: #fff; color: var(--cb-blue-700); font-weight: 700; box-shadow: 0 4px 14px rgba(0,0,0,.12); position: relative; }
.nav-item.active i { color: var(--cb-orange-600); }
.nav-item.active::before { content: ""; position: absolute; left: -.6rem; top: 22%; bottom: 22%; width: 4px; border-radius: 4px; background: var(--cb-orange); }
.main { flex: 1; min-width: 0; padding: 1.4rem 1.6rem 3rem; }

/* HP: app bar + menu bawah */
.appbar { position: sticky; top: 0; z-index: 1030; background: var(--cb-grad); color: #fff; display: flex; align-items: center; justify-content: space-between; padding: .6rem .9rem; padding-top: max(.6rem, env(safe-area-inset-top)); box-shadow: 0 4px 16px rgba(47,91,224,.25); }
.appbar-brand { display: flex; align-items: center; gap: .55rem; color: #fff; text-decoration: none; font-weight: 700; }
.appbar-brand img { width: 32px; height: 32px; border-radius: 10px; background: #fff; padding: 3px; }
.appbar-btn { color: #fff; font-size: 1.25rem; padding: .25rem .45rem; border-radius: 10px; }
.appbar-btn:hover { color: #fff; background: rgba(255,255,255,.15); }
.appbar .dot { position: absolute; top: 4px; right: 5px; width: 9px; height: 9px; border-radius: 50%; background: var(--cb-orange); border: 2px solid #3e6ae8; }
.appbar-avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--cb-orange); color: #fff; display: grid; place-items: center; font-weight: 800; text-decoration: none; }
.bottomnav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 1040; background: #fff; display: grid; grid-template-columns: repeat(5, 1fr); align-items: end; padding: .35rem .4rem; padding-bottom: max(.45rem, env(safe-area-inset-bottom)); box-shadow: 0 -6px 24px rgba(27, 36, 64, .08); border-radius: 20px 20px 0 0; }
.bottomnav a, .bottomnav button:not(.fab) { display: flex; flex-direction: column; align-items: center; gap: 1px; color: #8a94b2; text-decoration: none; font-size: .68rem; font-weight: 600; border: 0; background: none; padding: .3rem 0; }
.bottomnav i { font-size: 1.3rem; }
.bottomnav .active { color: var(--cb-orange-600); }
.bottomnav .fab { justify-self: center; width: 56px; height: 56px; border-radius: 50%; border: 4px solid var(--cb-bg); background: var(--cb-grad-orange); color: #fff; font-size: 1.5rem; margin-top: -26px; box-shadow: 0 8px 18px rgba(240,125,11,.4); display: grid; place-items: center; }
.cepat-sheet { border-radius: 22px 22px 0 0; height: auto !important; }
.cepat-item { display: flex; flex-direction: column; align-items: center; gap: .35rem; padding: 1rem .5rem; border-radius: 16px; background: var(--cb-blue-50); color: var(--cb-blue-700); text-decoration: none; font-weight: 600; font-size: .88rem; text-align: center; }
.cepat-item i { font-size: 1.6rem; }
@media (max-width: 991.98px) {
  .main { padding: 1rem .8rem 6.5rem; }
  .sticky-save { bottom: 72px !important; }
}

.page-head { display: flex; flex-wrap: wrap; gap: .75rem; align-items: flex-end; justify-content: space-between; margin-bottom: 1rem; }
.page-title { font-size: 1.4rem; font-weight: 800; margin: 0; display: flex; align-items: center; gap: .55rem; letter-spacing: -.01em; }
.page-title i { color: var(--cb-orange-600); background: var(--cb-orange-50); width: 2.2rem; height: 2.2rem; border-radius: 12px; display: inline-grid; place-items: center; font-size: 1.1rem; }
.page-sub { color: var(--cb-muted); font-size: .9rem; margin-top: .2rem; }
.page-actions { display: flex; flex-wrap: wrap; gap: .5rem; }

.card { border: 0; border-radius: var(--cb-radius); box-shadow: var(--cb-shadow); }
.card-header { background: #fff; border-bottom: 1px solid var(--cb-line); font-weight: 700; border-radius: var(--cb-radius) var(--cb-radius) 0 0 !important; padding: .85rem 1.1rem; }
.card-footer { border-radius: 0 0 var(--cb-radius) var(--cb-radius) !important; border-top: 1px solid var(--cb-line); }
.filter-bar { background: #fff; border-radius: var(--cb-radius); padding: .8rem .9rem; margin-bottom: 1rem; box-shadow: var(--cb-shadow); }
.filter-bar .form-label { font-size: .75rem; color: var(--cb-muted); margin-bottom: .15rem; font-weight: 600; }
.table { --bs-table-bg: transparent; margin-bottom: 0; }
.table > thead th { font-size: .74rem; text-transform: uppercase; letter-spacing: .04em; color: var(--cb-muted); font-weight: 700; background: #f6f8fd; white-space: nowrap; border-bottom-color: var(--cb-line); }
.table-card { background: #fff; border-radius: var(--cb-radius); overflow: hidden; box-shadow: var(--cb-shadow); }
.table-card .table-responsive { margin: 0; }
.empty { text-align: center; color: var(--cb-muted); padding: 2.5rem 1rem; }
.empty i { font-size: 2.2rem; display: block; margin-bottom: .4rem; opacity: .5; }
.nav-pills-scroll { display: flex; gap: .4rem; overflow-x: auto; padding-bottom: .3rem; scrollbar-width: thin; }
.nav-pills-scroll .nav-link { white-space: nowrap; border-radius: 99px; background: #fff; color: var(--cb-muted); font-weight: 600; font-size: .85rem; padding: .4rem .9rem; box-shadow: 0 2px 8px rgba(37,72,160,.06); border: 0; }
.nav-pills-scroll .nav-link.active { background: var(--cb-blue); color: #fff; box-shadow: 0 4px 12px rgba(58,95,229,.3); }

/* ---------- beranda ---------- */
.hero { background: var(--cb-grad-orange); color: #fff; border-radius: 24px; padding: 1.3rem 1.3rem 1.2rem; box-shadow: 0 10px 28px rgba(240,125,11,.28); position: relative; overflow: hidden; }
.hero::before { content: ""; position: absolute; left: -10%; right: -10%; bottom: -60px; height: 150px; background: #3a5fe5; border-radius: 50% 50% 0 0 / 70% 70% 0 0; opacity: .9; }
.hero::after { content: ""; position: absolute; right: -60px; top: -60px; width: 220px; height: 220px; border-radius: 50%; background: rgba(255,255,255,.08); }
.hero h1 { font-size: 1.35rem; font-weight: 800; margin: 0; }
.hero .sub { opacity: .85; font-size: .88rem; }
.hero-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: .6rem; margin-top: 1rem; position: relative; z-index: 1; }
.hero-stat { background: rgba(255,255,255,.18); border-radius: 16px; padding: .6rem .7rem; backdrop-filter: blur(3px); }
.hero-stat .v { font-size: 1.45rem; font-weight: 800; line-height: 1.1; }
.hero-stat .l { font-size: .72rem; opacity: .9; }
@media (max-width: 575.98px) { .hero-stats { grid-template-columns: repeat(2, 1fr); } }
.stat { background: #fff; border-radius: var(--cb-radius); padding: .9rem 1rem; height: 100%; box-shadow: var(--cb-shadow); }
.stat .label { font-size: .8rem; color: var(--cb-muted); font-weight: 600; }
.stat .value { font-size: 1.7rem; font-weight: 800; line-height: 1.2; }
.stat .hint { font-size: .75rem; color: var(--cb-muted); }
.quick { display: flex; align-items: center; gap: .8rem; padding: .95rem 1rem; border-radius: var(--cb-radius); text-decoration: none; color: var(--cb-ink); background: #fff; height: 100%; box-shadow: var(--cb-shadow); }
.quick:hover { color: var(--cb-ink); transform: translateY(-1px); }
.quick i { font-size: 1.35rem; width: 2.8rem; height: 2.8rem; border-radius: 14px; display: grid; place-items: center; background: var(--cb-orange-50); color: var(--cb-orange-600); flex-shrink: 0; }
.quick.q1 i { background: var(--cb-orange-50); color: var(--cb-orange-600); }
.quick.q2 i { background: var(--cb-blue-50); color: var(--cb-blue); }
.quick.q3 i { background: var(--cb-teal-50); color: var(--cb-teal); }
.quick.q4 i { background: var(--cb-purple-50); color: var(--cb-purple); }
.quick small { display: block; color: var(--cb-muted); font-size: .78rem; }
.week-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: .5rem; }
@media (max-width: 991.98px) { .week-grid { grid-template-columns: 1fr; } }
.day-col { background: #f6f8fd; border-radius: 16px; min-height: 90px; }
.day-col.today { background: var(--cb-orange-50); box-shadow: inset 0 0 0 2px var(--cb-orange); }
.day-head { padding: .45rem .65rem; font-size: .8rem; font-weight: 700; display: flex; justify-content: space-between; color: var(--cb-muted); }
.day-col.today .day-head { color: var(--cb-orange-700); }
.sesi { display: block; margin: .35rem .4rem .45rem; padding: .5rem .6rem; border-radius: 12px; background: #fff; text-decoration: none; color: inherit; font-size: .8rem; line-height: 1.35; box-shadow: 0 2px 8px rgba(37,72,160,.06); border-left: 4px solid var(--cb-blue); }
.sesi:hover { color: inherit; box-shadow: 0 4px 12px rgba(37,72,160,.14); }
.sesi.belum { border-left-color: var(--cb-red); }
.sesi.libur { border-left-color: #9aa3bd; opacity: .8; }
.sesi.nanti { border-left-color: #b7c6f2; }
.sesi.ok { border-left-color: var(--cb-green); }
.sesi .jam { font-weight: 800; color: var(--cb-blue-700); }
.sesi .st { float: right; }
.notice { display: flex; gap: .6rem; align-items: flex-start; padding: .6rem .8rem; border-radius: 14px; margin-bottom: .45rem; font-size: .88rem; text-decoration: none; color: inherit; }
.notice.warning { background: #fff5e0; }
.notice.info { background: var(--cb-blue-50); }
.notice.danger { background: var(--cb-red-50); }
.notice:hover { filter: brightness(.97); color: inherit; }

/* ---------- absensi ---------- */
.absen-list .row-anak { display: flex; align-items: center; gap: .75rem; padding: .6rem .8rem; border-bottom: 1px solid var(--cb-line); background: #fff; }
.absen-list .row-anak:last-child { border-bottom: 0; }
.absen-list .nama { flex: 1; min-width: 0; }
.absen-list .nama .small { color: var(--cb-muted); }
.absen-opts { display: flex; gap: .25rem; flex-shrink: 0; }
.absen-opts .btn { width: 2.45rem; font-weight: 800; padding: .4rem 0; border-radius: 10px; }
.btn-check:checked + .btn-h { background: #1f9d6a; border-color: #1f9d6a; color: #fff; }
.btn-check:checked + .btn-t { background: #7b4ce0; border-color: #7b4ce0; color: #fff; }
.btn-check:checked + .btn-i { background: #3e8bff; border-color: #3e8bff; color: #fff; }
.btn-check:checked + .btn-s { background: #f2a51a; border-color: #f2a51a; color: #fff; }
.btn-check:checked + .btn-a { background: var(--cb-red); border-color: var(--cb-red); color: #fff; }
.absen-opts .btn { border-color: #d3daea; color: #56607e; background: #fff; }
.row-anak .ket { display: none; width: 100%; }
.row-anak.show-ket { flex-wrap: wrap; }
.row-anak.show-ket .ket { display: block; }
.grup-head { padding: .45rem .8rem; font-size: .8rem; font-weight: 700; background: var(--cb-blue-50); color: var(--cb-blue-700); border-bottom: 1px solid var(--cb-line); }
.no-urut { width: 1.6rem; flex-shrink: 0; }
@media (max-width: 430px) {
  .absen-list .row-anak { gap: .45rem; padding: .55rem .6rem; }
  .absen-opts { gap: .15rem; }
  .absen-opts .btn { width: 2.05rem; font-size: .85rem; }
  .no-urut { display: none; }
}
.sticky-save { position: sticky; bottom: 0; z-index: 10; background: rgba(243,245,251,.95); backdrop-filter: blur(4px); padding: .75rem 0; margin-top: 1rem; }
.chip { display: inline-flex; align-items: center; gap: .3rem; padding: .15rem .55rem; border-radius: 99px; font-size: .76rem; font-weight: 700; }
.chip-h { background: #dcf5ea; color: #137a50; } .chip-t { background: #efe7ff; color: #5b30c0; } .chip-i { background: #e2edff; color: #1f5fcc; }
.chip-s { background: #fdf0d5; color: #8a6008; } .chip-a { background: var(--cb-red-50); color: #b3272c; }
.chip-libur { background: #eceef4; color: #555e78; } .chip-belum { background: var(--cb-red-50); color: #b3272c; }
.chip-ok { background: #dcf5ea; color: #137a50; } .chip-nanti { background: #eef2fb; color: #58657a; }

/* ---------- materi / buku ---------- */
.matrix-wrap { overflow: auto; max-height: 70vh; border-radius: 14px; background: #fff; box-shadow: var(--cb-shadow); }
.matrix { border-collapse: separate; border-spacing: 0; font-size: .82rem; }
.matrix th, .matrix td { border-bottom: 1px solid var(--cb-line); border-right: 1px solid var(--cb-line); padding: .35rem .45rem; background: #fff; }
.matrix thead th { position: sticky; top: 0; z-index: 2; background: #f6f8fd; vertical-align: bottom; }
.matrix .sticky-col { position: sticky; left: 0; z-index: 1; min-width: 140px; max-width: 200px; }
.matrix thead .sticky-col { z-index: 3; }
.matrix .vhead { writing-mode: vertical-rl; transform: rotate(180deg); white-space: nowrap; max-height: 190px; overflow: hidden; text-overflow: ellipsis; font-weight: 600; text-transform: none; letter-spacing: 0; color: var(--cb-ink); font-size: .78rem; }
.cell-toggle { width: 2rem; height: 2rem; border-radius: 9px; border: 1px solid #d3daea; background: #fff; display: grid; place-items: center; cursor: pointer; margin: auto; font-size: 1rem; }
.cell-toggle[data-v="proses"] { background: #fff4dc; border-color: #f2c66b; color: #9a6b00; }
.cell-toggle[data-v="tuntas"] { background: #1f9d6a; border-color: #1f9d6a; color: #fff; }
.cell-toggle.changed { box-shadow: 0 0 0 2px var(--cb-blue); }
.legend span { display: inline-flex; align-items: center; gap: .3rem; margin-right: .9rem; font-size: .8rem; }
.materi-item { display: flex; gap: .75rem; align-items: flex-start; padding: .65rem .85rem; border-bottom: 1px solid var(--cb-line); background: #fff; }
.materi-item:last-child { border-bottom: 0; }
.materi-item.done { background: #f1fbf6; }
.nav-tabs { border-bottom: 0; gap: .3rem; flex-wrap: nowrap; overflow-x: auto; overflow-y: hidden; }
.nav-tabs .nav-link { color: var(--cb-muted); font-weight: 700; white-space: nowrap; border: 0; border-radius: 12px 12px 0 0; }
.nav-tabs .nav-link.active { color: var(--cb-blue); background: #fff; }
.progress { --bs-progress-bar-bg: var(--cb-orange); height: .55rem; border-radius: 99px; }
.eval-btns .btn { width: 2.1rem; padding: .25rem 0; font-weight: 700; }
.ibadah-grid { font-size: .75rem; }
.ibadah-grid td, .ibadah-grid th { padding: .15rem .2rem !important; text-align: center; }
.ibadah-grid input[type=text] { width: 3.2rem; font-size: .72rem; padding: .1rem .2rem; }
.ibadah-grid .form-check-input { margin: 0; }
.ibadah-grid .lbl { text-align: left !important; white-space: nowrap; position: sticky; left: 0; background: #fff; z-index: 1; }

/* ---------- login ---------- */
.auth-wrap { min-height: 100vh; display: grid; place-items: center; padding: 1.5rem; background: var(--cb-grad-orange); position: relative; overflow: hidden; }
.auth-wrap::before, .auth-wrap::after { content: ""; position: absolute; border-radius: 50%; pointer-events: none; }
.auth-wrap::before { width: 140vmax; height: 70vmax; left: -20vmax; bottom: -48vmax; background: #3a5fe5; opacity: .95; }
.auth-wrap::after { width: 26vmax; height: 26vmax; right: -8vmax; top: -8vmax; background: rgba(255,255,255,.14); }
.auth-card { position: relative; z-index: 1; width: 100%; max-width: 410px; background: #fff; border-radius: 26px; padding: 2rem 1.75rem; box-shadow: 0 24px 60px rgba(20,30,90,.28); }
.auth-card img { width: 64px; height: 64px; object-fit: contain; }
.login-box { position: relative; z-index: 1; width: 100%; max-width: 980px; display: grid; grid-template-columns: 1fr 1.1fr; background: #fff; border-radius: 30px; overflow: hidden; box-shadow: 0 30px 70px rgba(20,30,90,.3); }
.login-form { padding: 2.6rem 2.4rem; display: flex; flex-direction: column; justify-content: center; }
.login-form .brand { display: flex; align-items: center; gap: .7rem; margin-bottom: 1.8rem; }
.login-form .brand img { width: 48px; height: 48px; object-fit: contain; border-radius: 14px; background: var(--cb-orange-50); padding: 4px; }
.login-form h1 { font-size: 1.9rem; font-weight: 800; color: var(--cb-blue); letter-spacing: .02em; margin: 0 0 .2rem; }
.login-form .lead-sm { color: var(--cb-muted); font-size: .92rem; margin-bottom: 1.6rem; }
.field-line { position: relative; margin-bottom: 1.2rem; }
.field-line label { font-size: .75rem; font-weight: 700; color: var(--cb-blue); margin-bottom: .1rem; display: block; }
.field-line input { width: 100%; border: 0; border-bottom: 2px solid #cfd8f6; padding: .5rem 2.2rem .5rem .1rem; font-size: 1rem; background: transparent; outline: none; border-radius: 0; transition: border-color .2s; }
.field-line input:focus { border-bottom-color: var(--cb-orange); }
.field-line .ic { position: absolute; right: .2rem; bottom: .55rem; color: #9aa6c8; font-size: 1.1rem; background: none; border: 0; padding: 0; }
.btn-login { background: var(--cb-grad-orange); color: #fff; border: 0; border-radius: 99px; padding: .8rem 1rem; font-weight: 800; letter-spacing: .06em; box-shadow: 0 10px 22px rgba(240,125,11,.35); width: 100%; }
.btn-login:hover { color: #fff; filter: brightness(1.05); }
.login-art { background: linear-gradient(160deg, #eef2ff 0%, #dfe7ff 100%); position: relative; display: flex; align-items: center; justify-content: center; padding: 2rem; }
.login-art img { width: 100%; height: auto; max-height: 460px; }
.login-art .cap { position: absolute; left: 0; right: 0; bottom: 1.3rem; text-align: center; color: var(--cb-blue-700); font-weight: 700; font-size: .95rem; }
@media (max-width: 860px) {
  .auth-wrap { padding: 0; align-items: stretch; background: #fff; }
  .auth-wrap::before, .auth-wrap::after { display: none; }
  .login-box { grid-template-columns: 1fr; border-radius: 0; box-shadow: none; max-width: none; min-height: 100vh; align-content: start; }
  .login-art { order: -1; padding: 1.2rem 1.2rem 2.4rem; background: var(--cb-grad-orange); border-radius: 0 0 0 70px; }
  .login-art img { max-height: 220px; }
  .login-art .cap { display: none; }
  .login-form { padding: 1.6rem 1.6rem 2.4rem; }
  .login-form .brand { margin-bottom: 1rem; }
  .auth-card { margin: auto; box-shadow: none; }
}

/* ---------- tambahan Rev 2 ---------- */
.stat-paket { display: block; background: #fff; border-radius: 16px; padding: .75rem .85rem; color: var(--cb-ink); box-shadow: var(--cb-shadow); border: 2px solid transparent; }
.stat-paket.aktif { border-color: var(--cb-orange); }
.tile { border-radius: 18px; padding: 1rem 1.1rem; height: 100%; color: var(--cb-ink); position: relative; overflow: hidden; }
.tile .v { font-size: 1.9rem; font-weight: 800; line-height: 1.1; }
.tile .l { font-size: .8rem; font-weight: 600; color: var(--cb-muted); }
.tile i.bg { position: absolute; right: .6rem; top: .5rem; font-size: 2.2rem; opacity: .25; }
.tile-orange { background: var(--cb-orange-50); } .tile-orange i.bg { color: var(--cb-orange-600); }
.tile-blue { background: var(--cb-blue-50); } .tile-blue i.bg { color: var(--cb-blue); }
.tile-purple { background: var(--cb-purple-50); } .tile-purple i.bg { color: var(--cb-purple); }
.tile-teal { background: var(--cb-teal-50); } .tile-teal i.bg { color: var(--cb-teal); }
.tile-pink { background: var(--cb-pink-50); } .tile-pink i.bg { color: var(--cb-pink); }
.accent-orange { --acc: var(--cb-orange-600); --acc-bg: var(--cb-orange-50); }
.accent-blue { --acc: var(--cb-blue); --acc-bg: var(--cb-blue-50); }
.accent-purple { --acc: var(--cb-purple); --acc-bg: var(--cb-purple-50); }
.accent-teal { --acc: var(--cb-teal); --acc-bg: var(--cb-teal-50); }
.accent-pink { --acc: var(--cb-pink); --acc-bg: var(--cb-pink-50); }
.kartu-kelas { border-top: 4px solid var(--acc, var(--cb-blue)); }
.kartu-kelas .badge-n { background: var(--acc-bg, var(--cb-blue-50)); color: var(--acc, var(--cb-blue)); font-weight: 800; border-radius: 99px; padding: .3rem .65rem; }
.ikon-btn { width: 2.1rem; height: 2.1rem; display: inline-grid; place-items: center; padding: 0; }
.mini-bar { display: flex; height: 8px; border-radius: 99px; overflow: hidden; background: #edf0f7; }
.mini-bar span { display: block; }
.paket-card { border-radius: 18px; background: #fff; box-shadow: var(--cb-shadow); padding: 1rem 1.1rem; height: 100%; border-left: 5px solid var(--acc, var(--cb-blue)); cursor: pointer; transition: transform .15s, box-shadow .15s; }
.paket-card:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(40,52,110,.12); }
.paket-card .kode { font-size: 1.5rem; font-weight: 800; color: var(--acc, var(--cb-blue)); line-height: 1; }
.kat-chip { display: inline-block; font-size: .72rem; padding: .12rem .5rem; border-radius: 99px; background: var(--acc-bg, var(--cb-blue-50)); color: var(--acc, var(--cb-blue)); font-weight: 700; margin: 0 .2rem .25rem 0; }
.matrix-tempat td.n { font-weight: 800; text-align: center; }
.matrix-tempat td.n.nol { color: #c3c9da; font-weight: 500; }
.sesi-tag { font-size: .68rem; font-weight: 800; padding: .05rem .4rem; border-radius: 6px; margin-left: .25rem; }
.sesi-tag.pagi { background: #fff1d6; color: #a2620a; } .sesi-tag.sore { background: var(--cb-purple-50); color: var(--cb-purple); }
.tema-pilih { border: 2px solid var(--cb-line); border-radius: 16px; overflow: hidden; cursor: pointer; display: block; }
.btn-check:checked + .tema-pilih { border-color: var(--cb-orange); box-shadow: 0 0 0 3px rgba(247,147,30,.2); }
.tema-pilih .prev { height: 86px; display: flex; flex-direction: column; justify-content: center; padding: .6rem .8rem; }

/* ---------- cetak ---------- */
.print-only { display: none; }
@media print {
  @page { size: A4; margin: 12mm; }
  body { background: #fff; font-size: 10.5pt; }
  .no-print, .sidebar, .appbar, .bottomnav, .alert, .btn, .filter-bar, .page-head, .nav-tabs, .nav-pills-scroll, .sticky-save, form .btn, .hero { display: none !important; }
  .print-only { display: block !important; }
  .main { padding: 0 !important; }
  .app-shell { display: block; }
  .card, .table-card, .matrix-wrap { border: 0 !important; box-shadow: none !important; overflow: visible !important; max-height: none !important; background: #fff !important; }
  .card-header { background: #fff !important; padding-left: 0; border: 0; }
  .card-body { padding-left: 0; padding-right: 0; }
  .row > [class*=col-lg-] { break-inside: avoid; }
  .table-responsive { overflow: visible !important; }
  .table { font-size: 9.5pt; }
  .table th, .table td { border: 1px solid #555 !important; padding: 3px 5px !important; }
  .table > thead th { background: #eee !important; color: #000; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .kop { display: flex !important; align-items: center; gap: 12px; border-bottom: 3px double #000; padding-bottom: 8px; margin-bottom: 10px; }
  .kop img { width: 56px; height: 56px; object-fit: contain; }
  .kop-nama { font-size: 15pt; font-weight: 700; }
  .kop-alamat { font-size: 8.5pt; }
  .kop-judul { text-align: center; margin-bottom: 10px; }
  .ttd-wrap { margin-top: 24px; page-break-inside: avoid; }
  .ttd-tanggal { text-align: right; margin-bottom: 4px; }
  .ttd-row { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
  .ttd-row .ttd:only-child { margin-left: auto; }
  .ttd { text-align: center; min-width: 180px; }
  .ttd-space { height: 60px; }
  .ttd-nama { font-weight: 700; text-decoration: underline; }
  .chip { padding: 0; background: none !important; }
  a { color: #000 !important; text-decoration: none !important; }
  .tab-content > .tab-pane { display: block !important; opacity: 1 !important; margin-bottom: 14px; }
  .matrix th, .matrix td { border: 1px solid #555 !important; }
  .matrix .sticky-col, .matrix thead th { position: static !important; }
  .cell-toggle { border: 0; width: auto; height: auto; }
  .page-break { page-break-before: always; }
  .ibadah-grid .lbl { position: static; }
}

/* ======================================================================
   Rev 3 — tata letak mengikuti referensi: rail ikon gelap, panel putih besar,
   judul tipis–tebal, tab pil, kartu berwarna lembut dengan blok bersegmen.
   ====================================================================== */
:root { --cb-rail: #171b33; --cb-rail-2: #232849; --cb-panel-bg: #e9edf6; }
body.has-user { background: radial-gradient(1200px 600px at 100% 0%, #ffe9cf 0%, transparent 55%), radial-gradient(900px 600px at 0% 100%, #e3e9ff 0%, transparent 60%), var(--cb-panel-bg); }
.page-title { font-size: 1.85rem; font-weight: 800; letter-spacing: -.02em; }
.page-title .tipis { font-weight: 300; }
.page-title i { display: none; }
.tab-pil { display: flex; gap: .45rem; overflow-x: auto; padding: .1rem 0 .5rem; margin: -.2rem 0 1rem; scrollbar-width: none; }
.tab-pil a { white-space: nowrap; padding: .5rem 1.05rem; border-radius: 99px; font-size: .86rem; font-weight: 600; color: var(--cb-ink); background: #fff; border: 1px solid #e3e6ef; text-decoration: none; }
.tab-pil a:hover { border-color: #c9cfe0; }
.tab-pil a.active { background: var(--cb-rail); color: #fff; border-color: var(--cb-rail); }

@media (min-width: 992px) {
  .app-shell { display: block; }
  .sidebar { position: fixed !important; left: 14px; top: 14px; bottom: 14px; height: auto !important; width: 76px; border-radius: 26px; background: var(--cb-rail) !important; z-index: 1035; overflow-x: hidden; overflow-y: auto; scrollbar-width: none; transition: width .18s ease, box-shadow .18s ease; box-shadow: 0 10px 30px rgba(23,27,51,.18); }
  .sidebar::before { display: none; }
  .sidebar:hover { width: 264px; box-shadow: 0 20px 60px rgba(23,27,51,.35); }
  .sidebar .lbl { opacity: 0; white-space: nowrap; transition: opacity .12s; }
  .sidebar:hover .lbl { opacity: 1; }
  .sidebar-head { padding: 1.1rem .9rem .8rem 1rem; }
  .sidebar-head img { width: 44px; height: 44px; flex-shrink: 0; }
  .sidebar-head .lbl { white-space: normal; min-width: 172px; }
  .sidebar-head .brand-name { font-size: .88rem; line-height: 1.2; }
  .sidebar-user { margin: 0 .55rem .4rem; padding: .5rem .55rem; background: var(--cb-rail-2); }
  .sidebar-nav { padding: .2rem .55rem 1.2rem; }
  .nav-group { padding: .55rem .6rem .25rem; height: 1.6rem; position: relative; }
  .nav-group::after { content: ""; position: absolute; left: .9rem; right: .9rem; top: .9rem; height: 1px; background: rgba(255,255,255,.12); }
  .sidebar:hover .nav-group::after { display: none; }
  .nav-item { padding: .62rem .9rem; border-radius: 14px; color: #b9bfd8; position: relative; }
  .nav-item i { font-size: 1.15rem; width: 1.3rem; flex-shrink: 0; }
  .nav-item:hover { background: var(--cb-rail-2); color: #fff; }
  .nav-item.active { background: var(--cb-grad-orange); color: #fff; box-shadow: 0 6px 16px rgba(240,125,11,.35); }
  .nav-item.active i { color: #fff; }
  .nav-item.active::before { display: none; }
  .nav-item .nb { position: absolute; left: 2.05rem; top: .3rem; font-size: .6rem; padding: .15rem .32rem; }
  .sidebar:hover .nav-item .nb { position: static; }
  .main { margin: 14px 14px 14px 104px; padding: 1.8rem 2rem 2.6rem; background: #fff; border-radius: 30px; min-height: calc(100vh - 28px); box-shadow: 0 10px 40px rgba(40,52,110,.06); }
  /* kartu di atas panel putih: warna lembut, tanpa bayangan tebal */
  .main .card, .main .table-card, .main .filter-bar, .main .stat, .main .quick, .main .paket-card, .main .stat-paket { background: #f6f7fb; box-shadow: none; border: 1px solid #edf0f6; }
  .main .card-header { background: transparent; border-bottom-color: #e8ebf3; }
  .main .card-footer.bg-white { background: transparent !important; }
  .main .list-group-item { background: transparent; }
  .main .table-card .table > thead th, .main .card .table > thead th { background: #eef1f8; }
  .main .sticky-save { background: rgba(255,255,255,.95); }
}
@media (max-width: 991.98px) {
  .sidebar.offcanvas-lg { --bs-offcanvas-bg: var(--cb-rail); }
  .sidebar { background: var(--cb-rail) !important; }
  .nav-item.active { background: var(--cb-grad-orange); color: #fff; }
  .nav-item.active i { color: #fff; }
  .nav-item.active::before { display: none; }
  .appbar { background: #fff; color: var(--cb-ink); box-shadow: 0 2px 14px rgba(40,52,110,.08); }
  .appbar-brand { color: var(--cb-ink); }
  .appbar-btn { color: var(--cb-ink); }
  .appbar-btn:hover { color: var(--cb-ink); background: #f1f3f9; }
  .appbar .dot { border-color: #fff; }
  .page-title { font-size: 1.45rem; }
}

/* kartu statistik gaya referensi */
.kpi { border-radius: 22px; padding: 1.05rem 1.15rem 1.15rem; height: 100%; border: 1px solid #edf0f6; }
.kpi .kpi-top { display: flex; align-items: center; gap: .6rem; margin-bottom: .6rem; }
.kpi .kpi-ic { width: 2.3rem; height: 2.3rem; border-radius: 50%; background: #fff; display: grid; place-items: center; font-size: 1.05rem; }
.kpi .kpi-judul { font-weight: 600; flex: 1; }
.kpi .kpi-badge { background: var(--cb-rail); color: #fff; font-size: .72rem; font-weight: 600; padding: .22rem .6rem; border-radius: 99px; white-space: nowrap; }
.kpi .kpi-v { font-size: 2.6rem; font-weight: 500; letter-spacing: -.03em; line-height: 1; }
.kpi .kpi-v small { font-size: .85rem; color: var(--cb-muted); font-weight: 500; letter-spacing: 0; margin-left: .25rem; }
.kpi .seg { display: grid; grid-template-columns: repeat(10, 1fr); gap: 5px; margin-top: .9rem; }
.kpi .seg span { height: 30px; border-radius: 8px; border: 1.5px dashed #c9cfe0; }
.kpi .seg span.on { border: 0; }
.kpi-orange { background: #fff4e6; } .kpi-orange .seg span.on { background: #ffbe73; } .kpi-orange .kpi-ic { color: var(--cb-orange-600); }
.kpi-blue { background: #edf2ff; } .kpi-blue .seg span.on { background: #9fb4f5; } .kpi-blue .kpi-ic { color: var(--cb-blue); }
.kpi-purple { background: #f2eeff; } .kpi-purple .seg span.on { background: #b9a6f5; } .kpi-purple .kpi-ic { color: var(--cb-purple); }
.kpi-gelap { background: var(--cb-rail); color: #fff; border: 0; display: flex; flex-direction: column; justify-content: space-between; position: relative; overflow: hidden; }
.kpi-gelap::after { content: ""; position: absolute; right: -40px; top: -40px; width: 140px; height: 140px; border-radius: 50%; background: radial-gradient(circle at 30% 30%, #ffad42, #f7931e 45%, #6d4ae6 100%); opacity: .85; }
.kpi-gelap .judul { font-size: 1.2rem; font-weight: 700; line-height: 1.25; position: relative; z-index: 1; max-width: 75%; }
.kpi-gelap .sub { color: #b9bfd8; font-size: .82rem; position: relative; z-index: 1; }
.kpi-gelap .btn-putih { background: #fff; color: var(--cb-rail); border-radius: 99px; font-weight: 700; padding: .55rem 1rem; text-align: center; text-decoration: none; position: relative; z-index: 1; }
.kpi-gelap .btn-putih:hover { background: #ffe9cf; }
.menu-tile { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .55rem; padding: 1.2rem .6rem; border-radius: 20px; background: #f6f7fb; border: 1px solid #edf0f6; text-decoration: none; color: var(--cb-ink); font-weight: 600; font-size: .9rem; height: 100%; text-align: center; transition: transform .12s; }
.menu-tile:hover { color: var(--cb-ink); transform: translateY(-2px); }
.menu-tile i { width: 2.6rem; height: 2.6rem; border-radius: 50%; display: grid; place-items: center; font-size: 1.15rem; }
.menu-tile small { color: var(--cb-muted); font-weight: 500; font-size: .75rem; }
.mt-o i { background: #ffe7cc; color: var(--cb-orange-700); } .mt-b i { background: #dde6ff; color: var(--cb-blue); } .mt-p i { background: #e9e1ff; color: var(--cb-purple); } .mt-t i { background: #d8f3ec; color: var(--cb-teal); } .mt-k i { background: #fde1ec; color: var(--cb-pink); }

/* status kelas aktif / tidak aktif */
.st-kelas { display: inline-flex; align-items: center; gap: .3rem; font-size: .72rem; font-weight: 700; padding: .18rem .55rem; border-radius: 99px; }
.st-kelas::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.st-aktif { background: #dcf5ea; color: #137a50; }
.st-tidak { background: #eef0f5; color: #7a8199; }
.kelas-kosong { opacity: .78; }
.kelas-kosong .card-body { padding-top: .8rem; padding-bottom: .8rem; }
.legend-kelas { display: flex; flex-wrap: wrap; gap: .8rem; align-items: center; font-size: .82rem; color: var(--cb-muted); }

/* login HP mengikuti referensi Android: putih, gelombang biru-ungu, tombol oranye */
@media (max-width: 860px) {
  .login-box { background: #fff; position: relative; overflow: hidden; }
  .login-art { order: -1; background: none !important; border-radius: 0 !important; padding: 0 !important; height: 250px; position: relative; display: block; }
  .login-art::before { content: ""; position: absolute; right: -90px; top: -120px; width: 380px; height: 330px; border-radius: 46% 54% 40% 60% / 50% 45% 55% 50%; background: linear-gradient(160deg, #c9d5ff 0%, #9fb2f7 100%); opacity: .85; }
  .login-art::after { content: ""; position: absolute; right: -40px; top: -60px; width: 270px; height: 240px; border-radius: 55% 45% 50% 50% / 50% 50% 50% 50%; background: linear-gradient(160deg, #e7ecff 0%, #c4d0fb 100%); }
  .login-art img { position: absolute; right: 8px; top: 18px; width: 230px !important; max-height: none !important; z-index: 1; }
  .login-form { position: relative; z-index: 2; padding-top: .2rem; }
  .login-form h1 { color: var(--cb-blue); }
  .login-form .brand { order: 5; justify-content: center; margin: 1.6rem 0 0; }
  .login-form .lead-sm { margin-bottom: 1.2rem; }
  .btn-login { width: 62%; display: block; margin: 0 auto; }
  .login-box::after { content: ""; position: absolute; left: -120px; bottom: -150px; width: 330px; height: 290px; border-radius: 50%; background: linear-gradient(160deg, #6f8ff5 0%, #3a5fe5 100%); z-index: 0; }
  .login-box::before { content: ""; position: absolute; left: -60px; bottom: -190px; width: 300px; height: 260px; border-radius: 50%; background: #6d4ae6; opacity: .85; z-index: 0; }
}
.poin-card.on { border-color: var(--cb-orange) !important; box-shadow: 0 0 0 3px rgba(247,147,30,.15); }
.nilai-sub th.sub-h { min-width: 92px; max-width: 150px; white-space: normal; text-transform: none; letter-spacing: 0; font-size: .74rem; vertical-align: bottom; }
.nilai-sub th.sub-h span { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.nilai-sub th.grup-poin { background: #fff3e0; color: #a2620a; text-transform: none; }
/* lembar cetak yang juga tampil di layar (hasil munaqosah, dll.) */
.lembar { background: #fff; border: 1px solid #e3e6ef; border-radius: 14px; padding: 22px 26px; margin-bottom: 18px; max-width: 820px; }
.kop-layar { display: flex; align-items: center; gap: 12px; border-bottom: 3px double #000; padding-bottom: 8px; margin-bottom: 12px; }
.kop-layar img { width: 56px; height: 56px; object-fit: contain; }
.kop-layar .kop-nama { font-size: 1.15rem; font-weight: 700; }
.kop-layar .kop-alamat { font-size: .78rem; }
.identitas td { padding: 2px 10px 2px 0; vertical-align: top; }
.ttd-layar { margin-top: 24px; }
.ttd-layar .ttd-tanggal { text-align: right; margin-bottom: 4px; }
.ttd-layar .ttd-row { display: flex; justify-content: space-between; gap: 20px; }
.ttd-layar .ttd { text-align: center; min-width: 180px; }
.ttd-layar .ttd-space { height: 60px; }
.ttd-layar .ttd-nama { font-weight: 700; text-decoration: underline; }
@media print { .lembar { border: 0; padding: 0; margin: 0; max-width: none; } }

/* ---------- Rev 4: tabel lebar mudah digeser (HP) ---------- */
.geser-xy { max-height: calc(100vh - 150px); overflow: auto !important; overscroll-behavior-x: contain; }
.geser-xy > table > thead th { position: sticky; top: 0; z-index: 3; background: #f6f8fd; }
.geser-xy > table > tbody > tr > td:first-child, .geser-xy > table > thead > tr > th:first-child { position: sticky; left: 0; z-index: 2; background: #fff; box-shadow: 1px 0 0 #e3e6ef; }
.geser-xy > table > thead > tr > th:first-child { z-index: 4; background: #f6f8fd; }
.geser-bar { display: flex; align-items: center; gap: .4rem; padding: .45rem .5rem; background: #fff; border-bottom: 1px solid #eef0f6; }
.gb-btn { flex: none; width: 36px; height: 30px; border-radius: 10px; border: 1px solid #dfe3ee; background: #fff; color: var(--cb-ink); display: grid; place-items: center; }
.gb-btn:active { background: #fff3e0; }
.gb-track { flex: 1; position: relative; height: 18px; border-radius: 9px; background: #eef1f8; touch-action: none; cursor: pointer; }
.gb-thumb { position: absolute; top: 3px; bottom: 3px; left: 0; border-radius: 6px; background: var(--cb-orange); }
body.ukur-cetak .no-print { display: none !important; }
@media print {
  .geser-xy { max-height: none !important; overflow: visible !important; }
  .geser-xy th, .geser-xy td { position: static !important; box-shadow: none !important; }
  .geser-bar { display: none !important; }
}
.lembar-lebar { max-width: none; }
.lembar-nilai td { height: 30px; }
.table.lembar-nilai > thead th { text-transform: none; letter-spacing: 0; font-size: .78rem; color: #222; }
.lembar-nilai th.sub-h { min-width: 64px; max-width: 120px; white-space: normal; font-weight: 600; }
@media print { .lembar-nilai td { height: 26px; } }

/* ---------- Rev 5: kop dengan logo LDII (kiri) & PPG (kanan) ---------- */
.kop .kop-teks, .kop-layar .kop-teks { flex: 1; text-align: center; }
.kop img.kop-ldii, .kop-layar img.kop-ldii { width: auto; height: 60px; max-width: 90px; object-fit: contain; }
.kop img.kop-ppg, .kop-layar img.kop-ppg { width: auto; height: 46px; max-width: 160px; object-fit: contain; }
.lembar-nilai.kertas { font-size: .78rem; }
.lembar-nilai.kertas th { font-size: .66rem !important; vertical-align: middle; text-align: center; }
.lembar-nilai.kertas td { height: 26px; padding: 2px 4px !important; }
.ket-kertas { font-size: .78rem; margin-top: .3rem; }
.naungan { display: flex; align-items: center; justify-content: center; gap: .6rem; padding: .7rem .5rem 1rem; }
.naungan img { background: #fff; border-radius: 10px; padding: 3px; object-fit: contain; }
.naungan .n-ldii { height: 34px; }
.naungan .n-ppg { height: 28px; max-width: 120px; }
@media (min-width: 992px) { .sidebar:not(:hover) .naungan { flex-direction: column; gap: .35rem; } .sidebar:not(:hover) .naungan .n-ppg { max-width: 52px; height: auto; } }
@media print { .lembar-nilai.kertas { font-size: 8pt; } .lembar-nilai.kertas th { font-size: 7pt !important; } }
.auth-card.daftar-card { max-width: 760px; margin: 1.5rem auto; }
.qr-box svg { width: 150px; height: 150px; display: block; }

/* ---------- Rev 6: kartu "Kelas saya" di beranda (wali kelas / pengajar) ---------- */
.ks-card { background: #fff; border: 1px solid #e6e9f2; border-radius: 18px; padding: 1rem 1.1rem; height: 100%; display: flex; flex-direction: column; gap: .7rem; box-shadow: 0 4px 16px rgba(40,52,110,.05); }
.ks-card.ks-wali { border-color: rgba(247,147,30,.55); background: linear-gradient(180deg, #fff8ef 0, #fff 55%); }
.ks-nama { font-size: 1.15rem; font-weight: 800; line-height: 1.2; }
.ks-peran { font-size: .7rem; font-weight: 700; padding: .2rem .55rem; border-radius: 99px; background: var(--cb-blue-50); color: var(--cb-blue-700); white-space: nowrap; }
.ks-wali .ks-peran { background: var(--cb-orange); color: #fff; }
.ks-status { font-size: .86rem; display: grid; gap: .2rem; }
.ks-status i { width: 1.2rem; display: inline-block; }
.ks-link { display: flex; flex-wrap: wrap; gap: .25rem .9rem; font-size: .8rem; }
.ks-link a { color: var(--cb-muted); text-decoration: none; font-weight: 600; }
.ks-link a:hover { color: var(--cb-orange-600); }
/* ---------- Rev 6: struktur kepengurusan ---------- */
.struktur-kartu { background: #fff; border: 1px solid #e6e9f2; border-left: 4px solid var(--cb-orange); border-radius: 14px; padding: .8rem 1rem; height: 100%; }
.struktur-kartu .jabatan { font-size: .74rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--cb-muted); }
.struktur-kartu .nama { font-weight: 800; font-size: 1.02rem; }
@media print { .struktur-kartu { border: 1px solid #555; border-left: 4px solid #555; } .struktur-grid > div { break-inside: avoid; } }

/* Rev6: placeholder samar & tombol tahan-lihat password */
.field-line input::placeholder { color: #9aa6c8; opacity: .55; }
.form-control::placeholder { opacity: .6; }
.pw-wrap { position: relative; }
.pw-wrap > input { padding-right: 2.6rem; }
.pw-tahan { -webkit-user-select: none; user-select: none; touch-action: none; -webkit-touch-callout: none; cursor: pointer; }
.pw-wrap > .pw-tahan { position: absolute; right: .35rem; top: 50%; transform: translateY(-50%); background: none; border: 0; padding: .25rem .4rem; color: #8a93b0; font-size: 1.05rem; line-height: 1; }
.pw-tahan:active, .pw-tahan:hover { color: var(--cb-blue); }
@media (max-width: 991.98px) { .sidebar.offcanvas-lg { overflow-y: auto; } }
