/* ==========================================================================
   HiClass Shell — Ruang Kerja Guru: sidebar + topbar + dashboard "Soft Pink"
   Dimuat SETELAH hiclass.css dan hiclass-ui.css. Hanya aktif untuk guru yang login (body.shell).
   Token mengikuti prompt, dipetakan ke keluarga pink HiClass (#C45C8A) agar menyatu dengan logo & 31 halaman.
   Breakpoint: 1100px (penyesuaian), 760px (sidebar jadi laci off-canvas), 390px (HP kecil).
   ========================================================================== */

:root {
  --pink: var(--pink-600, #C45C8A);
  --pink-dark: var(--pink-700, #A3446F);
  --pink-soft: #FCE9F1;
  --pink-bg: #FFF7FB;
  --white: #ffffff;
  --ink: #334155;
  --muted: #64748b;
  --line: #F5D3E2;
  --success: #16a34a;
  --warning: #d97706;
  --danger: #dc2626;
  --radius: 17px;
  --shadow: 0 8px 24px rgba(163, 68, 111, .07);
  --side-w: 268px;
  --side-w-ciut: 76px;
}

/* ---------- Kerangka ---------- */
body.shell {
  background: linear-gradient(180deg, #FFF7FB 0%, #FFF1F7 100%) fixed;
  overflow-x: hidden;
}
.shell .main {
  margin-left: var(--side-w);
  min-width: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  transition: margin-left .22s ease;
}
.shell .main > main.wrap { flex: 1 0 auto; padding-top: 1.1rem; }
.shell:not(.wrap-lebar) .main > .wrap { width: min(1240px, calc(100% - 2.5rem)); }
.shell.sidebar-ciut .main { margin-left: var(--side-w-ciut); }

/* ---------- Sidebar ---------- */
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: var(--side-w);
  z-index: 80;
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, #FFF8FB 0%, #FDEFF5 60%, #FBE4EE 100%);
  border-right: 1px solid var(--line);
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  transition: width .22s ease, transform .22s ease;
  scrollbar-width: thin;
}
.side-brand { display: flex; justify-content: center; padding: .9rem .8rem .3rem; }
.side-logo { width: 218px; max-width: 100%; height: auto; display: block; }
.side-logo-kecil { display: none; border-radius: 11px; }
.side-nav { display: grid; grid-template-columns: minmax(0, 1fr); gap: .14rem; padding: .3rem .8rem 1.4rem; }
.side-item, .side-grup { min-width: 0; }
.side-label {
  margin: .95rem .55rem .3rem;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #A78796;
}
.side-item {
  display: flex;
  align-items: center;
  gap: .7rem;
  padding: .62rem .8rem;
  border-radius: 14px;
  color: var(--ink);
  font-weight: 650;
  font-size: .92rem;
  line-height: 1.25;
  text-decoration: none;
  cursor: pointer;
  list-style: none;
  white-space: nowrap;
}
.side-item:hover { background: rgba(255, 255, 255, .85); text-decoration: none; color: var(--pink-dark); }
.side-item.is-aktif {
  background: linear-gradient(135deg, #DA78A4, var(--pink));
  color: #fff;
  box-shadow: 0 8px 18px rgba(196, 92, 138, .32);
}
.side-item.is-aktif-grup { color: var(--pink-dark); background: rgba(255, 255, 255, .7); }
.side-ikon { width: 1.6rem; display: grid; place-items: center; flex: none; color: #B0567F; }
.side-ikon svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.side-item.is-aktif .side-ikon, .side-item:hover .side-ikon { color: inherit; }
.side-keluar .side-ikon { color: #B42318; }
.side-teks { overflow: hidden; text-overflow: ellipsis; white-space: normal; }
summary.side-item::-webkit-details-marker { display: none; }
summary.side-item::after {
  content: "";
  margin-left: auto;
  width: .42rem; height: .42rem;
  border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  opacity: .55;
  transition: transform .15s;
}
.side-grup[open] > summary.side-item::after { transform: rotate(-135deg); }
.side-sub { display: grid; gap: .08rem; margin: .1rem 0 .35rem 2.55rem; padding-left: .55rem; border-left: 2px solid #F3CFDF; }
.side-sub a { padding: .42rem .6rem; border-radius: 10px; color: #5B5361; font-size: .88rem; font-weight: 600; text-decoration: none; }
.side-sub a:hover { background: rgba(255, 255, 255, .85); color: var(--pink-dark); text-decoration: none; }
.side-sub a.is-aktif { background: var(--white); color: var(--pink-dark); box-shadow: 0 2px 8px rgba(163, 68, 111, .1); }
.side-keluar { color: #B42318; }

/* Sidebar terlipat (desktop/tablet) */
.sidebar-ciut .sidebar { width: var(--side-w-ciut); }
.sidebar-ciut .side-logo, .sidebar-ciut .side-teks, .sidebar-ciut .side-label, .sidebar-ciut .side-sub,
.sidebar-ciut summary.side-item::after { display: none; }
.sidebar-ciut .side-logo-kecil { display: block; }
.sidebar-ciut .side-nav { padding-left: .55rem; padding-right: .55rem; }
.sidebar-ciut .side-item { justify-content: center; padding: .7rem 0; }
.sidebar-ciut .side-label + .side-item, .sidebar-ciut .side-label + .side-grup { margin-top: .6rem; }

/* ---------- Topbar ---------- */
.shell .topbar {
  position: sticky;
  top: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 66px;
  padding: .55rem 1.25rem;
  background: rgba(255, 247, 251, .9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.topbar-kiri, .topbar-kanan { display: flex; align-items: center; gap: .85rem; min-width: 0; }
.icon-btn {
  width: 42px; height: 42px;
  display: grid; place-items: center;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--white);
  color: var(--pink-dark);
  font-size: 1.25rem;
  cursor: pointer;
  flex: none;
}
.icon-btn:hover { background: var(--pink-soft); }
.topbar-judul { font-size: 1.28rem; font-weight: 800; color: #2B2A2E; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding-left: .85rem; border-left: 1px solid var(--line); }
.topbar-tanggal { color: #4B4550; font-weight: 600; font-size: .92rem; white-space: nowrap; padding-right: .85rem; border-right: 1px solid var(--line); }
.topbar-profil { display: flex; align-items: center; gap: .6rem; color: var(--ink); text-decoration: none; }
.topbar-profil:hover { text-decoration: none; }
.avatar {
  width: 42px; height: 42px; border-radius: 50%;
  display: grid; place-items: center;
  background: linear-gradient(135deg, #F7C6DA, #DA78A4);
  color: #fff; font-weight: 800; font-size: 1.05rem;
  box-shadow: 0 0 0 3px #fff, 0 4px 10px rgba(163, 68, 111, .2);
  flex: none;
}
.profil-teks b { display: block; font-size: .92rem; line-height: 1.2; }
.profil-teks small { display: block; color: var(--muted); font-size: .76rem; }

.mobile-overlay { position: fixed; inset: 0; z-index: 75; background: rgba(43, 20, 35, .38); }
.mobile-overlay[hidden] { display: none; }

/* Menu atas lama tidak dipakai lagi untuk guru yang login */
.shell .nav-grup { display: none !important; }

/* ==========================================================================
   Dashboard (.dash2)
   ========================================================================== */
.dash2 { display: grid; gap: 1.1rem; margin-bottom: 1.5rem; }
.dash2 .panel { margin: 0; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.1rem 1.2rem; min-width: 0; }
.dash2 h2 { font-size: 1.08rem; margin: 0; color: #2B2A2E; display: flex; align-items: center; gap: .45rem; font-family: inherit; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: .6rem; flex-wrap: wrap; margin-bottom: .85rem; }
.link-btn { color: var(--pink); font-weight: 700; font-size: .88rem; text-decoration: none; white-space: nowrap; }
.link-btn:hover { text-decoration: underline; }
.period { display: inline-flex; align-items: center; gap: .3rem; border: 1px solid var(--line); border-radius: 99px; padding: .22rem .7rem; font-size: .78rem; font-weight: 700; color: #6B5E66; background: #fff; white-space: nowrap; }
.kosong-state { display: flex; align-items: center; gap: .7rem; background: var(--pink-bg); border: 1px dashed #F0C4D7; border-radius: 14px; padding: .9rem 1rem; color: #5B5361; font-size: .92rem; }
.kosong-state span { font-size: 1.5rem; }

/* Sambutan */
.welcome {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: 1.2rem;
  padding: 1.25rem 1.5rem;
  border-radius: 22px;
  background: linear-gradient(110deg, #FDE3EE 0%, #FCEFF5 55%, #FBDDEA 100%);
  border: 1px solid #F7D2E2;
}
.welcome-ilustrasi { width: 132px; height: auto; flex: none; }
.welcome-isi { min-width: 0; flex: 1; position: relative; z-index: 1; }
.welcome h1 { margin: 0; font-size: clamp(1.3rem, 2.4vw, 1.85rem); color: #2B2A2E; line-height: 1.2; font-family: inherit; }
.welcome p { margin: .35rem 0 0; color: #4B4550; }
.welcome-aksi { display: flex; gap: .5rem; flex-wrap: wrap; margin-top: .75rem; align-items: flex-start; }
.welcome-aksi .libur-cepat { margin: 0; }
.welcome-hias { position: absolute; right: -10px; top: -14px; width: 230px; opacity: .55; pointer-events: none; }

/* Kartu statistik */
.dash2 .stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; margin: 0; }
.dash2 .stat {
  position: relative;
  overflow: hidden;
  display: flex;
  gap: .9rem;
  align-items: flex-start;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1rem 1.05rem;
  min-width: 0;
}
.dash2 .stat::after { content: ""; position: absolute; right: -30px; bottom: -40px; width: 120px; height: 90px; border-radius: 50%; background: #FDF1F6; z-index: 0; }
.dash2 .stat > * { position: relative; z-index: 1; }
.stat-icon { width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; font-size: 1.5rem; flex: none; }
.stat-icon svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 2.1; stroke-linecap: round; stroke-linejoin: round; }
.stat-icon.pink { background: #FBDCE9; color: #C45C8A; }
.stat-icon.green { background: #DCF5E5; color: #16a34a; }
.stat-icon.amber { background: #FDEBCB; color: #d97706; }
.stat-icon.purple { background: #EBE1FB; color: #7C4DCC; }
.stat-isi { min-width: 0; }
.stat-label { font-size: .86rem; font-weight: 700; color: #4B4550; }
.stat-value { font-size: 1.9rem; font-weight: 800; color: #2B2A2E; line-height: 1.15; }
.stat-value small { font-size: .95rem; font-weight: 700; color: var(--muted); }
.stat-note { font-size: .78rem; color: var(--muted); margin-top: .15rem; line-height: 1.4; }
.stat-note a { font-weight: 700; }
.badge { display: inline-block; border-radius: 99px; padding: .08rem .55rem; font-size: .72rem; font-weight: 800; background: var(--pink-soft); color: var(--pink-dark); white-space: nowrap; }
.mini-hsia { display: flex; flex-wrap: wrap; gap: .25rem; margin-top: .3rem; }
.mini-hsia span { border-radius: 8px; padding: .05rem .4rem; font-size: .74rem; font-weight: 800; }
.perlu-dua { display: grid; gap: .35rem; margin-top: .25rem; }
.perlu-dua a { display: flex; align-items: baseline; gap: .4rem; color: #2B2A2E; text-decoration: none; font-size: .84rem; font-weight: 600; }
.perlu-dua a b { font-size: 1.45rem; font-weight: 800; color: var(--danger); min-width: 1.6rem; }
.perlu-dua a.nol b { color: var(--success); }
.perlu-dua a:hover { color: var(--pink-dark); }

/* Status H/S/I/A (dipakai bersama) */
.status { display: inline-block; border-radius: 99px; padding: .1rem .6rem; font-size: .75rem; font-weight: 800; white-space: nowrap; }
.status.H, .st-hadir { background: #DCF5E5; color: #15803d; }
.status.S { background: #E0EEFD; color: #1d4ed8; }
.status.I { background: #FEF0D2; color: #B45309; }
.status.A { background: #FDE0E0; color: #B91C1C; }

/* Analitik */
.analytics { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 1.1rem; }
.analytics.baris-jadwal { grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); }
.section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; margin: .5rem .15rem -.2rem; }
.section-heading h2 { margin: 0; font-family: var(--font-body); font-size: 1.12rem; font-weight: 800; color: #2B2A2E; }
.section-heading p { margin: .15rem 0 0; color: var(--muted); font-size: .86rem; }
.table-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1.1rem; }

/* Jadwal & tugas hari ini */
.jadwal-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.jadwal-list li { display: grid; grid-template-columns: 6.6rem minmax(0, 1fr) auto; align-items: center; gap: .75rem; padding: .7rem .85rem; border: 1px solid var(--line); border-radius: 14px; background: #FFFBFD; }
.jadwal-list li.k-berlangsung { border-color: #E9A3C3; background: var(--pink-soft); box-shadow: 0 0 0 2px #F7D9E7; }
.jadwal-list li.k-menunggu { border-color: #F5C98B; background: #FFF8EC; }
.jadwal-list li.k-sudah { opacity: .85; }
.jadwal-list li.k-batal, .jadwal-list li.k-libur { opacity: .65; }
.jl-jam { font-weight: 800; font-variant-numeric: tabular-nums; color: #2B2A2E; font-size: .92rem; }
.jl-isi { min-width: 0; }
.jl-isi b { display: block; color: #2B2A2E; }
.jl-isi small { color: var(--muted); }
.jl-aksi { display: flex; gap: .35rem; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.jl-status { font-size: .74rem; font-weight: 800; border-radius: 99px; padding: .12rem .55rem; white-space: nowrap; }
.jl-status.k-belum_mulai { background: #EEF2F7; color: #475569; }
.jl-status.k-berlangsung { background: var(--pink); color: #fff; }
.jl-status.k-menunggu { background: #FEF0D2; color: #B45309; }
.jl-status.k-sudah { background: #DCF5E5; color: #15803d; }
.jl-status.k-batal, .jl-status.k-libur { background: #F1F5F9; color: #64748b; }
.tugas-mini { list-style: none; margin: .9rem 0 0; padding: .8rem 0 0; border-top: 1px dashed var(--line); display: grid; gap: .45rem; }
.tugas-mini li { display: flex; align-items: center; gap: .55rem; font-size: .88rem; }
.tugas-mini li .ti { width: 1.5rem; text-align: center; flex: none; }
.tugas-mini li .tt { flex: 1; min-width: 0; }
.tugas-mini li.beres { color: var(--muted); }
.tugas-mini li a.btn { flex: none; }

/* Donat */
.tab-sumber { display: inline-flex; background: #FBEFF4; border-radius: 99px; padding: .2rem; gap: .15rem; }
.tab-sumber button { border: 0; background: transparent; border-radius: 99px; padding: .3rem .75rem; font: inherit; font-size: .78rem; font-weight: 800; color: #6B5E66; cursor: pointer; }
.tab-sumber button[aria-selected="true"] { background: #fff; color: var(--pink-dark); box-shadow: 0 2px 6px rgba(163, 68, 111, .14); }
.donut-area { display: flex; align-items: center; gap: 1.4rem; flex-wrap: wrap; justify-content: center; }
.donut { width: 168px; height: 168px; border-radius: 50%; display: grid; place-items: center; flex: none; }
.donut-center { width: 108px; height: 108px; border-radius: 50%; background: #fff; display: grid; place-items: center; text-align: center; align-content: center; }
.donut-center strong { font-size: 1.6rem; color: #2B2A2E; line-height: 1; }
.donut-center span { font-size: .8rem; color: var(--muted); font-weight: 700; }
.legend { display: grid; gap: .5rem; min-width: 170px; }
.legend-row { display: grid; grid-template-columns: .8rem 1fr auto auto; gap: .55rem; align-items: center; font-size: .9rem; color: #2B2A2E; }
.legend-row b { text-align: right; font-variant-numeric: tabular-nums; }
.legend-row em { font-style: normal; color: var(--muted); font-size: .78rem; min-width: 3rem; text-align: right; }
.dot { width: .8rem; height: .8rem; border-radius: 50%; }
.sumber-ket { font-size: .76rem; color: var(--muted); margin: .8rem 0 0; text-align: center; }
.panel-donat [role="tabpanel"][hidden] { display: none; }

/* Batang nilai */
/* Grafik batang tegak (rata-rata nilai per kelas-mapel) */
.chart-nilai { display: grid; grid-template-columns: 2rem minmax(0, 1fr); gap: .4rem; margin-top: 1.4rem; }
.chart-sumbu { position: relative; height: 190px; font-size: .72rem; color: var(--muted); }
.chart-sumbu span { position: absolute; right: 0; transform: translateY(-50%); line-height: 1; }
.bar-mapel { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chart-area { position: relative; min-width: 0; }
.chart-grid { position: absolute; inset: 0 0 auto 0; height: 190px; display: flex; flex-direction: column; justify-content: space-between; pointer-events: none; }
.chart-grid span { border-top: 1px dashed #F1D9E4; }
.chart-grid span:last-child { border-top-style: solid; border-color: #EBC9D8; }
.bars { position: relative; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: .5rem; align-items: end; }
.bar-group { display: grid; grid-template-rows: 190px auto; justify-items: center; text-decoration: none; color: var(--ink); min-width: 0; }
.bar-group:hover { text-decoration: none; }
.bar-group:hover .bar { filter: brightness(1.06); box-shadow: 0 6px 14px rgba(196, 92, 138, .3); }
.bar-kolom { position: relative; width: min(44px, 70%); height: 190px; display: flex; align-items: flex-end; justify-content: center; grid-row: 1; }
.bar { width: 100%; border-radius: 10px 10px 4px 4px; background: linear-gradient(180deg, #E58AB3, var(--pink)); transition: height .3s; }
.bar.rap { background: repeating-linear-gradient(45deg, #F3C3D9 0 6px, #E7A6C3 6px 12px); }
.bar-value { position: absolute; left: 50%; transform: translateX(-50%); white-space: nowrap; padding: .05rem .45rem; border-radius: 99px; background: var(--pink-soft); color: var(--pink-dark); font-weight: 800; font-size: .8rem; font-variant-numeric: tabular-nums; }
.bar-value.kosong { background: transparent; color: #B9AEB5; font-weight: 700; }
.bar-label { grid-row: 2; margin-top: .45rem; text-align: center; font-size: .76rem; line-height: 1.25; color: var(--muted); max-width: 100%; overflow: hidden; }
.bar-label b { display: block; color: var(--ink); font-size: .9rem; }
.bar-label small { display: block; font-size: .68rem; color: #A3919B; }


/* Tabel ringkas dashboard */
.dash2 .table-wrap { overflow-x: auto; }
.dash2 table.tabel-dash { width: 100%; border-collapse: collapse; font-size: .86rem; }
.tabel-dash th { text-align: left; font-size: .76rem; color: #6B5E66; font-weight: 800; padding: .5rem .55rem; background: #FDF3F7; white-space: nowrap; }
.tabel-dash th:first-child { border-radius: 10px 0 0 10px; }
.tabel-dash th:last-child { border-radius: 0 10px 10px 0; }
.tabel-dash td { padding: .55rem; border-bottom: 1px solid #F8E6EE; vertical-align: top; }
.tabel-dash tr:last-child td { border-bottom: 0; }
.tabel-dash td small { color: var(--muted); display: block; }
.sumber-tag { font-size: .72rem; font-weight: 800; border-radius: 6px; padding: .05rem .4rem; white-space: nowrap; }
.sumber-tag.mapel { background: #EEF2FF; color: #4338CA; }
.sumber-tag.wali { background: #FFF1E6; color: #C2410C; }
.tabel-dash a.baris-link { color: inherit; text-decoration: none; font-weight: 700; }
.tabel-dash a.baris-link:hover { color: var(--pink-dark); text-decoration: underline; }

/* Pintasan kelas wali */
.pintasan-wali { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .55rem; }
.pintasan-wali a { display: flex; align-items: center; gap: .5rem; padding: .7rem .8rem; border: 1px solid var(--line); border-radius: 14px; background: #FFFBFD; color: #2B2A2E; font-weight: 700; font-size: .88rem; text-decoration: none; }
.pintasan-wali a:hover { border-color: #E9A3C3; background: var(--pink-soft); color: var(--pink-dark); text-decoration: none; }
.pintasan-wali a span { font-size: 1.15rem; }
.chip-belum { display: flex; flex-wrap: wrap; gap: .4rem; }
.chip-belum a { font-size: .8rem; font-weight: 700; padding: .3rem .65rem; border-radius: 99px; border: 1px solid #F5C98B; background: #FFF8EC; color: #92400E; text-decoration: none; }
.chip-belum a.kosong { border-color: #F3B4B4; background: #FFF1F1; color: #B91C1C; }
.minggu-mini { display: grid; gap: .3rem; font-size: .84rem; }
.minggu-mini div { display: flex; gap: .5rem; flex-wrap: wrap; padding: .35rem .5rem; border-radius: 10px; }
.minggu-mini div.hari-ini { background: var(--pink-soft); }
.minggu-mini b { min-width: 3.6rem; }

/* ---------- Responsif ---------- */
@media (max-width: 1100px) {
  .dash2 .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .analytics, .analytics.baris-jadwal, .table-grid { grid-template-columns: minmax(0, 1fr); }
  .topbar-tanggal { display: none; }
}
@media (max-width: 760px) {
  .shell .main, .shell.sidebar-ciut .main { margin-left: 0; }
  .sidebar, .sidebar-ciut .sidebar {
    width: min(84vw, 290px);
    transform: translateX(-105%);
    box-shadow: 0 20px 50px rgba(43, 20, 35, .25);
  }
  .sidebar-buka .sidebar { transform: translateX(0); }
  /* Di HP sidebar selalu tampil penuh (status lipat desktop diabaikan) */
  .sidebar-ciut .side-logo { display: block; }
  .sidebar-ciut .side-logo-kecil { display: none; }
  .sidebar-ciut .side-teks, .sidebar-ciut .side-label { display: revert; }
  .sidebar-ciut .side-sub { display: grid; }
  .sidebar-ciut summary.side-item::after { display: block; }
  .sidebar-ciut .side-item { justify-content: flex-start; padding: .62rem .8rem; }
  .shell .topbar { padding: .45rem 16px; min-height: 58px; }
  .topbar-judul { font-size: 1.08rem; padding-left: .6rem; }
  .profil-teks { display: none; }
  .avatar { width: 36px; height: 36px; font-size: .95rem; }
  .icon-btn { width: 38px; height: 38px; }
  .shell:not(.wrap-lebar) .main > .wrap { width: calc(100% - 32px); }
  .welcome { padding: 1rem; gap: .8rem; }
  .welcome-ilustrasi { width: 84px; }
  .welcome-hias { display: none; }
  .jadwal-list li { grid-template-columns: minmax(0, 1fr) auto; }
  .jl-jam { grid-column: 1 / -1; }
  .chart-sumbu, .chart-grid { height: 150px; }
  .bar-group { grid-template-rows: 150px auto; }
  .bar-kolom { height: 150px; }
  .bar-label small { display: none; }
}
@media (max-width: 480px) {
  .welcome { flex-direction: column; align-items: flex-start; }
  .welcome-ilustrasi { display: none; }
}
@media (max-width: 390px) {
  .dash2 .stats { grid-template-columns: minmax(0, 1fr); }
  .dash2 .panel { padding: .9rem .85rem; }
  .stat-value { font-size: 1.65rem; }
  .donut { width: 150px; height: 150px; }
  .donut-center { width: 96px; height: 96px; }
}

/* ---------- Cetak ---------- */
@media print {
  .sidebar, .topbar, .mobile-overlay, .bottomnav, .icon-btn, .welcome-hias { display: none !important; }
  .main, .shell .main, .shell.sidebar-ciut .main { margin-left: 0 !important; }
  body.shell { background: #fff !important; }
}

/* Tidak ada pertemuan — aksi cepat per jam pelajaran (Dashboard) & alasan cepat (layar absen) */
.batal-cepat { position: relative; }
.batal-cepat > summary { list-style: none; cursor: pointer; }
.batal-cepat > summary::-webkit-details-marker { display: none; }
.batal-cepat-menu { position: absolute; right: 0; top: calc(100% + 6px); z-index: 30; width: 250px; display: grid; gap: .35rem; padding: .7rem; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 12px 30px rgba(163, 68, 111, .16); }
.batal-cepat-menu p { margin: 0 0 .2rem; font-size: .8rem; font-weight: 700; color: var(--ink); }
.batal-cepat-menu button { text-align: left; padding: .5rem .65rem; border-radius: 10px; border: 1px solid var(--line); background: var(--pink-bg); font: inherit; font-size: .86rem; font-weight: 650; color: var(--pink-dark); cursor: pointer; }
.batal-cepat-menu button:hover { background: var(--pink-soft); }
.batal-cepat-menu small { color: var(--muted); font-size: .74rem; line-height: 1.35; }
.alasan-cepat { display: inline-flex; flex-wrap: wrap; gap: .3rem; }
.alasan-cepat .chip-ket { padding: .3rem .6rem; border-radius: 99px; border: 1px solid var(--line); background: var(--pink-bg); font: inherit; font-size: .8rem; font-weight: 650; color: var(--pink-dark); cursor: pointer; }
@media (max-width: 760px) { .batal-cepat-menu { right: auto; left: 0; width: min(260px, 80vw); } }
