:root {
  --bg: #f3f6f4;
  --panel: #ffffff;
  --line: #e3ebe6;
  --green: #128a45;
  --green-deep: #0c5c30;
  --gold: #c6a15a;
  --text: #1b2a22;
  --muted: #6d7b73;
  --danger: #c45454;
  --sakit: #b8860b;
  --izin: #3d7eae;
  --alpa: #c45454;
  --hadir: #128a45;
  --sidebar: #0d4a2e;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: "Segoe UI", Tahoma, sans-serif;
  font-size: 15px;
}
html.sidebar-hidden .sidebar { transform: translateX(-100%); }
html.sidebar-hidden .main { margin-left: 0; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }

.shell { min-height: 100vh; }
.sidebar {
  width: 248px;
  height: 100vh;
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 20;
  display: flex;
  flex-direction: column;
  background: var(--sidebar);
  color: #f4fff8;
  transition: transform .2s ease;
}
.side-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 16px 8px;
  color: white;
}
.side-brand img { width: 46px; height: 46px; object-fit: contain; filter: drop-shadow(0 2px 4px rgba(0, 0, 0, .25)); }
.side-brand strong, .side-brand span { display: block; }
.side-brand strong { font-size: 16px; }
.side-brand span { color: #d7ecdf; font-size: 12px; }
.side-nav { flex: 1; overflow: auto; padding: 8px 12px 12px; }
.side-kategori {
  margin: 14px 8px 6px;
  color: rgba(255,255,255,.62);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.side-link {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 4px 8px;
  margin-bottom: 2px;
  border-radius: 10px;
  color: #e7f6ee;
  font-size: 13.5px;
  font-weight: 600;
}
.side-link img { width: 26px; height: 26px; object-fit: contain; flex: 0 0 26px; }
.side-ico {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  flex: 0 0 26px;
}
.side-link:hover { background: rgba(255,255,255,.08); }
.side-link.active { background: rgba(255,255,255,.12); }
.side-link.side-home-link.active { background: #1f9a52; color: white; }
.side-user {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px 10px;
  align-items: center;
  padding: 12px;
  border-top: 1px solid rgba(255,255,255,.12);
}
.side-user div strong { display: block; font-size: 13px; }
.side-user div span { display: block; color: #d5eadf; font-size: 12px; }
.side-user form { grid-column: 1 / -1; }
.btn.keluar { width: 100%; background: #1f9a52; border-radius: 12px; }
.avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #e7f6ee;
  color: var(--green-deep);
  font-size: 12px;
  font-weight: 800;
}
.main { margin-left: 248px; min-width: 0; min-height: 100vh; transition: margin-left .2s ease; }
.backdrop { display: none; }
.topbar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 24px;
  position: sticky;
  top: 0;
  z-index: 5;
  background: rgba(243, 246, 244, .92);
}
.ikon-tombol {
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 12px;
  background: white;
  color: var(--text);
  display: inline-grid;
  place-items: center;
  cursor: pointer;
  position: relative;
  box-shadow: 0 1px 2px rgba(16, 40, 24, .06);
}
.ikon-tombol i {
  position: absolute;
  top: 4px;
  right: 4px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 999px;
  background: #d4534e;
  color: white;
  font-style: normal;
  font-size: 10px;
  line-height: 16px;
  font-weight: 700;
}
.top-search { position: relative; flex: 1; max-width: 520px; }
.top-search svg { position: absolute; left: 12px; top: 11px; color: #8aa093; }
.top-search input {
  width: 100%;
  margin: 0;
  background: white;
  color: var(--text);
  border: 1px solid #e5eeea;
  border-radius: 999px;
  padding: 10px 14px 10px 38px;
}
.top-aksi { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.top-user { display: flex; align-items: center; gap: 8px; background: white; border-radius: 14px; padding: 6px 12px 6px 6px; color: inherit; text-decoration: none; }
.top-user:hover { box-shadow: 0 0 0 2px #cfe8d8; }
.cek-baris { display: flex; align-items: flex-start; gap: 10px; margin: 4px 0 16px; cursor: pointer; }
.cek-baris input { width: auto; margin-top: 3px; }
.pin-ingat a { color: inherit; font-weight: 800; margin-left: 6px; }
.top-user div strong { display: block; font-size: 13px; }
.top-user div span { display: block; color: var(--muted); font-size: 12px; }

.wrap { width: auto; margin: 0 24px 32px; }
.hero {
  position: relative;
  overflow: hidden;
  min-height: 200px;
  border-radius: 22px;
  background:
    radial-gradient(circle at 12% 0%, rgba(31, 154, 82, .08), transparent 45%),
    linear-gradient(90deg, #ffffff 0%, #f6fbf8 55%, #eaf6ef 100%);
  border: 1px solid #e6efe9;
  margin-bottom: 22px;
}
.hero-teks { position: relative; z-index: 1; max-width: 600px; padding: 30px 36px; }
.hero h2 { margin: 0 0 10px; font-size: 34px; line-height: 1.15; letter-spacing: -.02em; color: #14261c; }
.hero h2 span { color: var(--green); }
.hero p { margin: 0; color: #4e6257; max-width: 480px; line-height: 1.55; }
.hero-teks::after {
  content: "";
  display: block;
  width: 72px;
  height: 3px;
  margin-top: 16px;
  border-radius: 3px;
  background: linear-gradient(90deg, #c9a246, #e9cf86);
}
.hero-hias { position: absolute; inset: 0 0 0 auto; width: min(62%, 900px); height: 100%; }
.kicker { color: var(--green); font-size: 13px; font-weight: 700; margin: 0 0 8px; }
.lead { color: var(--muted); margin: 0 0 18px; }
.menu-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 4px 12px; }
.menu-head h3 { margin: 0; display: flex; align-items: center; gap: 8px; font-size: 18px; }
.kotak-menu {
  width: 18px; height: 18px; display: inline-block;
  background:
    linear-gradient(var(--green), var(--green)) 0 0 / 7px 7px no-repeat,
    linear-gradient(var(--green), var(--green)) 10px 0 / 7px 7px no-repeat,
    linear-gradient(var(--green), var(--green)) 0 10px / 7px 7px no-repeat,
    linear-gradient(var(--green), var(--green)) 10px 10px / 7px 7px no-repeat;
}
.icon-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 14px; }
html.tampilan-padat .icon-grid { grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); }
.menu-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: white;
  border: 1px solid #edf3ef;
  border-radius: 18px;
  padding: 8px 10px 16px;
  min-height: 176px;
}
.menu-tile img { width: 112px; height: 96px; object-fit: contain; }
.menu-tile strong { display: block; font-size: 14px; margin-top: -6px; }
.menu-tile span { display: block; color: var(--muted); font-size: 12px; margin-top: 3px; }
.menu-tile:hover { border-color: #cfe3d6; transform: translateY(-2px); }

.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px;
  margin-bottom: 16px;
}
.page-head { display: flex; gap: 14px; align-items: center; margin-bottom: 16px; }
.page-head img { width: 84px; height: 84px; object-fit: contain; }
.page-head h1 { margin: 0; font-size: 26px; }
.page-head p { margin: 4px 0 0; color: var(--muted); }

.grid-2 { display: grid; grid-template-columns: 1.1fr .9fr; gap: 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.stat {
  background: #f7fbf8;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px;
}
.stat b { display: block; font-size: 26px; color: var(--green-deep); }
.stat span { color: var(--muted); font-size: 13px; }

label.field { display: block; margin-bottom: 12px; font-size: 13px; color: var(--muted); }
input, select, textarea {
  width: 100%;
  margin-top: 6px;
  background: #fff;
  color: var(--text);
  border: 1px solid #d5e3db;
  border-radius: 10px;
  padding: 10px 12px;
  font: inherit;
}
textarea { min-height: 80px; resize: vertical; }
.row-form { display: flex; gap: 10px; flex-wrap: wrap; align-items: end; }
.row-form .field { flex: 1; min-width: 140px; }

.btn, button.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: var(--green);
  color: white;
  border: 0;
  border-radius: 999px;
  padding: 10px 16px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.menu-tile { transition: transform .15s ease, border-color .15s ease; }
.btn.ghost { background: white; border: 1px solid #d7e3dc; color: var(--text); }
.btn.warn { background: #8a3b3b; }
.btn.gold { background: #8a6a22; }

table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 9px 8px; border-bottom: 1px solid #e6eee9; vertical-align: top; }
th { color: var(--green-deep); font-size: 12px; font-weight: 700; }
.table-wrap { overflow-x: auto; }

.flash { border-radius: 12px; padding: 12px 14px; margin-bottom: 14px; }
.flash.ok { background: #e7f6ee; color: #0d5c32; }
.flash.err { background: #fdecec; color: #8d2d2d; }

.tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.tabs a {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 12px;
  color: var(--muted);
  font-weight: 700;
  font-size: 13px;
}
.tabs a.on { background: var(--green); color: white; border-color: var(--green); }

.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.session {
  background: white;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px;
}
.session b { display: block; font-size: 16px; }
.session span { color: var(--muted); font-size: 13px; }
.pill {
  display: inline-block;
  border-radius: 999px;
  padding: 3px 8px;
  font-size: 12px;
  font-weight: 700;
  background: #e7f6ee;
  color: var(--green-deep);
}
.pill.lock { color: #8a6a22; background: #f8f1dc; }

.status-pilih { display: flex; gap: 6px; flex-wrap: wrap; }
.status-pilih label {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 8px;
  font-size: 12px;
  color: var(--text);
}
.badge { font-size: 12px; font-weight: 700; color: var(--gold); }

.login-body {
  display: grid;
  place-items: center;
  min-height: 100vh;
  padding: 24px;
  background:
    radial-gradient(circle at 10% 10%, rgba(31, 154, 82, .10), transparent 40%),
    radial-gradient(circle at 90% 90%, rgba(201, 162, 70, .12), transparent 40%),
    var(--bg);
}
.login-wrap {
  width: min(980px, 100%);
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  background: white;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 30px 70px rgba(13, 74, 46, .16);
}
.login-sisi {
  position: relative;
  overflow: hidden;
  display: grid;
  place-items: center;
  padding: 48px 36px;
  color: white;
  text-align: center;
  background:
    radial-gradient(circle at 50% 30%, rgba(255, 255, 255, .14), transparent 55%),
    linear-gradient(160deg, #1f9a52 0%, #0d6b39 55%, #0b4a2b 100%);
}
.login-hias { position: absolute; inset: 0; width: 100%; height: 100%; }
.login-sisi-isi { position: relative; z-index: 1; }
.login-sisi .logo {
  width: 190px;
  height: 190px;
  object-fit: contain;
  filter: drop-shadow(0 16px 26px rgba(0, 0, 0, .28));
}
.login-sisi h1 { margin: 18px 0 4px; font-size: 30px; letter-spacing: -.01em; }
.login-sisi p { margin: 0; color: #d7f0e0; font-weight: 600; }
.login-motto {
  display: inline-block;
  margin-top: 18px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(233, 207, 134, .5);
  color: #f3dfa6;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .04em;
}
.login-card { padding: 44px 44px 36px; }
.login-card .logo-kecil { display: none; width: 72px; height: 72px; object-fit: contain; margin: 0 auto 8px; }
.login-card h2 { margin: 0; font-size: 26px; color: #14261c; }
.login-card .sub { color: var(--muted); margin: 6px 0 22px; }
.login-card form.login-form { display: grid; gap: 14px; text-align: left; }
.login-card form.login-form input { padding: 12px 14px; border-radius: 12px; }
.login-card form.login-form .btn { width: 100%; justify-content: center; padding: 12px; border-radius: 12px; font-size: 15px; margin-top: 4px; }
.sewa-kartu { display: grid; gap: 12px; text-align: left; background: #f7fbf8; border: 1px solid #d7e6dc; border-radius: 16px; padding: 16px; }
.sewa-kartu p { margin: 0; color: #3d5348; }
.sewa-kartu dl { margin: 0; display: grid; gap: 8px; }
.sewa-kartu div { display: flex; justify-content: space-between; gap: 12px; }
.sewa-kartu dt { color: var(--muted); }
.sewa-kartu dd { margin: 0; font-weight: 700; }
.sewa-kartu .btn { width: 100%; justify-content: center; }
.btn-garis { background: white; color: #0d5c32; border: 1px solid #b7d4c4; }
.login-bantuan { margin: 20px 0 0; padding-top: 16px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; text-align: center; }
.demo-judul { display: flex; align-items: center; gap: 10px; margin: 24px 0 12px; color: var(--muted); font-size: 12px; font-weight: 700; }
.demo-judul::before, .demo-judul::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.demo { display: grid; gap: 8px; }
.demo button {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
  background: #f8fbf9;
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 10px 12px;
  cursor: pointer;
  font: inherit;
  transition: border-color .15s, background .15s, transform .15s;
}
.demo button:hover { border-color: #9fd8b5; background: #eef8f2; transform: translateY(-1px); }
.demo-inisial {
  flex: none;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  font-style: normal;
  font-weight: 800;
  color: white;
  background: linear-gradient(135deg, #1f9a52, #0b5c2c);
}
.demo-teks b { display: block; font-size: 14px; }
.demo-teks small { color: var(--muted); font-size: 12px; }
@media (max-width: 780px) {
  .login-wrap { grid-template-columns: 1fr; }
  .login-sisi { display: none; }
  .login-card { padding: 32px 24px; text-align: center; }
  .login-card .logo-kecil { display: block; }
  .demo button { text-align: left; }
}
.hint { color: var(--muted); font-size: 13px; margin-top: 8px; }

.receipt {
  width: min(680px, 100%);
  margin: 0 auto;
  background: white;
  color: #172117;
  border-radius: 16px;
  padding: 22px;
}
.receipt h1 { margin: 8px 0 0; font-size: 22px; color: #0c5c30; }
.receipt .muted { color: #5c6b60; }
.receipt table td { border-bottom: 1px solid #e4ece6; color: #172117; }
.batal-cap { color: #a32020; font-weight: 800; letter-spacing: .08em; }

.kw-aksi { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-bottom: 16px; }
.kw-aksi form { margin: 0; }
.kw-batal { border-color: #e8b4ab; color: #a33a2c; }
.kw {
  position: relative; overflow: hidden; width: min(760px, 100%); margin: 0 auto; padding: 28px 34px 22px;
  background: white; color: #1b2a20; border-radius: 18px; border: 1px solid #dfe9e3;
  box-shadow: 0 18px 40px rgba(13, 40, 25, .08);
  background-image: linear-gradient(90deg, #0c5c30 0 6px, transparent 6px);
}
.kw-latar { position: absolute; right: -40px; top: 50%; width: 320px; transform: translateY(-50%); opacity: .045; pointer-events: none; }
.kw-kop { display: flex; align-items: center; gap: 16px; padding-bottom: 12px; border-bottom: 3px double #0c5c30; }
.kw-kop img { width: 70px; height: 70px; flex: none; }
.kw-kop small { font-size: 11px; font-weight: 700; letter-spacing: .08em; color: #3d5a47; }
.kw-kop h1 { margin: 2px 0; font-size: 24px; letter-spacing: .02em; color: #0c5c30; }
.kw-kop p { margin: 0; font-size: 12px; color: #5c6b60; }
.kw-judul { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 18px 0 14px; flex-wrap: wrap; }
.kw-judul h2 { margin: 0; font-size: 19px; letter-spacing: .14em; color: #14261c; }
.kw-nomor { display: flex; align-items: baseline; gap: 6px; padding: 6px 12px; border: 1.5px solid #0c5c30; border-radius: 8px; }
.kw-nomor small { font-size: 12px; color: #5c6b60; }
.kw-nomor b { font-size: 15px; letter-spacing: .04em; color: #0c5c30; }
.kw-isi { display: grid; grid-template-columns: 150px 1fr; margin: 0; }
.kw-isi dt, .kw-isi dd { margin: 0; padding: 10px 0; border-bottom: 1px dashed #cfdcd4; }
.kw-isi dt { font-size: 13px; color: #5c6b60; }
.kw-isi dt::after { content: ':'; float: right; padding-right: 12px; }
.kw-isi dd { font-size: 15px; }
.kw-isi dd span { display: block; font-size: 12px; color: #5c6b60; }
.kw-terbilang { font-style: italic; font-weight: 600; color: #0c5c30; background: #f1f8f4; padding-left: 10px !important; border-radius: 6px; }
.kw-rincian { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 16px 0; }
.kw-rincian div { padding: 8px 12px; border-radius: 10px; background: #f6faf7; border: 1px solid #e3ece6; }
.kw-rincian small { display: block; font-size: 11px; color: #5c6b60; }
.kw-rincian b { font-size: 15px; }
.kw-rincian .beres { background: #e7f6ee; border-color: #bfe3cd; }
.kw-rincian .beres b { color: #0c5c30; letter-spacing: .06em; }
.kw-rincian .kurang b { color: #a33a2c; }
.kw-kaki { display: grid; grid-template-columns: auto 1fr auto; align-items: end; gap: 16px; margin-top: 6px; }
.kw-jumlah {
  padding: 10px 22px; border: 2px solid #0c5c30; border-radius: 4px; transform: skewX(-10deg);
  background: repeating-linear-gradient(135deg, #f1f8f4 0 6px, #fff 6px 12px);
}
.kw-jumlah small, .kw-jumlah b { display: block; transform: skewX(10deg); }
.kw-jumlah small { font-size: 11px; color: #5c6b60; }
.kw-jumlah b { font-size: 24px; color: #0c5c30; }
.kw-cap { text-align: center; }
.cap {
  display: inline-block; padding: 6px 16px; border: 3px double currentColor; border-radius: 10px;
  font-size: 22px; font-weight: 900; letter-spacing: .18em; transform: rotate(-12deg); opacity: .8;
}
.cap.hijau { color: #178a4a; }
.cap.merah { color: #b3261e; }
.kw-ttd { min-width: 200px; text-align: center; font-size: 13px; }
.kw-ttd p { margin: 0; }
.kw-ttd-ruang { height: 58px; }
.kw-ttd-nama { font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.kw-catatan { margin: 16px 0 0; padding-top: 8px; border-top: 1px solid #e4ece6; font-size: 11px; color: #7a877f; text-align: center; }
.kw.dibatalkan .kw-isi, .kw.dibatalkan .kw-rincian, .kw.dibatalkan .kw-jumlah { opacity: .55; }
@media (max-width: 640px) {
  .kw { padding: 20px 18px 16px; }
  .kw-kop img { width: 52px; height: 52px; }
  .kw-kop h1 { font-size: 18px; }
  .kw-isi { grid-template-columns: 1fr; }
  .kw-isi dt { padding-bottom: 0; border-bottom: 0; }
  .kw-isi dt::after { content: ''; }
  .kw-rincian { grid-template-columns: 1fr; }
  .kw-kaki { grid-template-columns: 1fr; justify-items: center; }
}

.muted { color: var(--muted); }
.profil-hero {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: 26px;
  padding: 28px 32px;
  margin-bottom: 18px;
  border-radius: 22px;
  color: white;
  background:
    radial-gradient(circle at 92% 110%, rgba(233, 207, 134, .35), transparent 38%),
    radial-gradient(circle at 10% -20%, rgba(255, 255, 255, .18), transparent 45%),
    linear-gradient(120deg, #1f9a52 0%, #0d6b39 55%, #0b4a2b 100%);
}
.profil-hero img { flex: none; width: 118px; height: 118px; object-fit: contain; filter: drop-shadow(0 10px 18px rgba(0, 0, 0, .3)); }
.profil-hero-teks { min-width: 0; flex: 1; }
.profil-hero h2 { margin: 8px 0 4px; font-size: 30px; letter-spacing: -.01em; }
.profil-hero p { margin: 0; color: #d7f0e0; }
.profil-lencana { display: flex; flex-wrap: wrap; gap: 6px; }
.profil-lencana span {
  padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 700;
  background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .25);
}
.profil-lencana span.emas { color: #3a2a05; background: linear-gradient(90deg, #e9cf86, #c9a246); border-color: transparent; }
.profil-kontak { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 10px 0 0; padding: 0; list-style: none; font-size: 13px; color: #f3dfa6; }
.profil-kontak:empty { display: none; }
.profil-ubah { flex: none; align-self: flex-start; background: white; color: var(--green-deep); }
.profil-form { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 0 14px; }
.profil-stat { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 16px; }
.stat-kartu {
  --warna: #1f9a52;
  --muda: #e8f6ee;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 20px;
  color: inherit;
  text-decoration: none;
  box-shadow: 0 6px 18px rgba(13, 74, 46, .06);
  transition: transform .18s ease, box-shadow .18s ease;
}
.stat-kartu::after {
  content: "";
  position: absolute;
  right: -34px;
  top: -34px;
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: var(--muda);
  opacity: .7;
}
.stat-kartu:hover { transform: translateY(-3px); box-shadow: 0 14px 28px rgba(13, 74, 46, .12); }
.stat-kartu.emas { --warna: #b8892b; --muda: #fbf2dc; }
.stat-kartu.biru { --warna: #2f7fbf; --muda: #e5f0fa; }
.stat-kartu.ungu { --warna: #8a5cc2; --muda: #f0e9f9; }
.stat-ikon {
  position: relative;
  z-index: 1;
  flex: none;
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
  border-radius: 20px;
  background: linear-gradient(145deg, var(--muda), #ffffff);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .04);
}
.stat-ikon img { width: 64px; height: 64px; object-fit: contain; filter: drop-shadow(0 6px 8px rgba(0, 0, 0, .18)); transition: transform .18s ease; }
.stat-kartu:hover .stat-ikon img { transform: scale(1.08) rotate(-3deg); }
.stat-isi { position: relative; z-index: 1; min-width: 0; }
.stat-isi b { display: block; font-size: 32px; line-height: 1; color: var(--warna); letter-spacing: -.02em; }
.stat-isi strong { display: block; margin-top: 4px; font-size: 14px; color: #14261c; }
.stat-isi small { display: block; margin-top: 2px; color: var(--muted); font-size: 12px; }
.stat-pil { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.stat-pil em {
  font-style: normal; font-size: 11px; font-weight: 700; padding: 2px 7px; border-radius: 99px;
  background: #f1f4f2; color: var(--muted);
}
.stat-pil em.l { background: #e5f0fa; color: #2f6fa6; }
.stat-pil em.p { background: #fbe7f0; color: #b0457a; }
.profil-judul { margin: 0 0 12px; font-size: 17px; }
.profil-tabel th { width: 38%; color: var(--muted); font-weight: 600; font-size: 13px; }
.profil-visi { margin: 0 0 20px; padding: 12px 14px; border-left: 3px solid #c9a246; background: #fbf7ea; border-radius: 0 12px 12px 0; font-style: italic; line-height: 1.55; }
.profil-misi { margin: 0; padding-left: 20px; line-height: 1.55; }
.profil-misi li { margin-bottom: 6px; }
.profil-bar { display: grid; grid-template-columns: 70px 1fr 40px; align-items: center; gap: 10px; margin-bottom: 10px; font-size: 13px; }
.profil-bar div { height: 12px; background: #eef4f0; border-radius: 99px; overflow: hidden; }
.profil-bar i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, #1f9a52, #6cc793); }
.profil-bar b { text-align: right; }
.profil-orang { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.profil-orang li { display: flex; align-items: center; gap: 10px; }
.profil-orang strong { display: block; font-size: 14px; }
.profil-orang small { color: var(--muted); font-size: 12px; }
.kelas-ringkas { display: flex; flex-wrap: wrap; align-items: stretch; gap: 12px; margin-bottom: 10px; }
.kelas-ringkas > div {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 18px; background: white; border: 1px solid var(--line); border-radius: 16px;
}
.kelas-ringkas b { font-size: 24px; color: #14261c; }
.kelas-ringkas span { color: var(--muted); font-size: 13px; }
.kelas-ringkas .peringatan { background: #fff6e5; border-color: #f1d9a6; }
.kelas-ringkas .peringatan b { color: #b8741a; }
.kelas-ringkas .aman b { color: var(--green); }
.kelas-tambah-tombol { margin-left: auto; align-self: center; padding: 12px 20px; border-radius: 14px; }
.kelas-tombol-grup { display: flex; gap: 8px; margin-left: auto; align-self: center; flex-wrap: wrap; }
.kelas-tombol-grup .btn { padding: 12px 20px; border-radius: 14px; }
.kelas-petunjuk { margin: 4px 2px 0; color: var(--muted); font-size: 13px; }
.kelas-tingkat { display: flex; align-items: baseline; gap: 10px; margin: 22px 2px 12px; font-size: 18px; }
.kelas-tingkat span { color: var(--muted); font-size: 13px; font-weight: 600; white-space: nowrap; }
.kelas-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.kelas-kartu {
  display: flex; flex-direction: column; gap: 14px;
  padding: 16px; background: white; border: 1px solid var(--line); border-radius: 18px;
  box-shadow: 0 6px 16px rgba(13, 74, 46, .05);
  transition: transform .15s ease, box-shadow .15s ease;
}
.kelas-kartu:hover { transform: translateY(-2px); box-shadow: 0 12px 24px rgba(13, 74, 46, .10); }
.kelas-kartu header { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.kelas-nama {
  min-width: 54px; height: 54px; padding: 0 10px; display: grid; place-items: center;
  border-radius: 16px; font-size: 22px; font-weight: 800; color: white;
  background: linear-gradient(145deg, #1f9a52, #0b5c2c);
  box-shadow: 0 8px 16px rgba(18, 138, 69, .25);
}
.kelas-jumlah { color: var(--muted); font-size: 13px; }
.kelas-jumlah b { font-size: 22px; color: #14261c; margin-right: 2px; }
.kelas-wali { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 12px; background: #f5faf7; }
.kelas-wali small { display: block; color: var(--muted); font-size: 11px; }
.kelas-wali strong { display: block; font-size: 13px; line-height: 1.3; }
.kelas-wali strong.kosong { color: #b8741a; }
.avatar.kosong { background: #fdecc8; color: #b8741a; }
.kelas-kartu.tanpa-wali .kelas-wali { background: #fff6e5; }
.kelas-info { display: flex; align-items: center; justify-content: space-between; gap: 8px; color: var(--muted); font-size: 12px; }
.kelas-info .stat-pil { margin: 0; }
.kelas-kartu footer { display: flex; gap: 6px; margin-top: auto; }
.btn.kecil { flex: 1; justify-content: center; padding: 8px 10px; font-size: 13px; border-radius: 10px; }
.kelas-dialog {
  width: min(440px, calc(100vw - 32px)); padding: 0; border: 0; border-radius: 20px;
  box-shadow: 0 30px 70px rgba(13, 40, 25, .3);
}
.kelas-dialog::backdrop { background: rgba(12, 32, 20, .45); }
.kelas-dialog form { padding: 22px 24px; }
.kelas-dialog h2 { margin: 0 0 16px; font-size: 20px; }
.kelas-dialog-aksi { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 6px; flex-wrap: wrap; }
.kelas-dialog-kanan { display: flex; gap: 8px; margin-left: auto; }
.kelas-catatan { font-size: 12px; max-width: 200px; }
.naik-tahun { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.naik-tahun small { display: block; color: var(--muted); font-size: 12px; margin-bottom: 4px; }
.naik-tahun b { font-size: 26px; }
.naik-tahun input { font-size: 22px; font-weight: 800; width: 160px; padding: 6px 12px; border: 1px solid #9fd3b2; border-radius: 12px; color: var(--green-deep); background: #f3faf6; }
.naik-panah { font-size: 22px; color: var(--green); font-weight: 800; }
.naik-langkah p { margin: 14px 0 0; font-size: 13px; }
.naik-daftar { display: grid; gap: 10px; }
.naik-baris {
  display: grid; grid-template-columns: minmax(200px, 1fr) auto minmax(220px, 1.2fr); align-items: center; gap: 14px;
  padding: 12px 16px; background: white; border: 1px solid var(--line); border-radius: 16px;
}
.naik-baris.lulus { background: #fffbf2; border-color: #f1d9a6; }
.naik-asal { display: flex; align-items: center; gap: 12px; }
.naik-asal strong { display: block; }
.naik-asal small { display: block; color: var(--muted); font-size: 12px; }
.naik-asal .kelas-nama { min-width: 46px; height: 46px; font-size: 18px; border-radius: 13px; }
.naik-baris select { padding: 10px 12px; border: 1px solid #d7e3dc; border-radius: 12px; font: inherit; background: white; }
.naik-tinggal { grid-column: 1 / -1; font-size: 13px; }
.naik-tinggal summary { cursor: pointer; color: var(--muted); }
.naik-tinggal summary b { color: #b8741a; margin-left: 4px; }
.naik-tinggal p { margin: 8px 0; }
.naik-siswa { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 4px 12px; max-height: 260px; overflow: auto; padding: 4px; }
.naik-siswa label { display: flex; gap: 6px; align-items: center; }
.naik-akhir { margin-top: 16px; display: grid; gap: 10px; }
.naik-yakin { padding-top: 10px; border-top: 1px dashed var(--line); font-weight: 700; }
.naik-tombol { display: flex; justify-content: flex-end; gap: 8px; }
@media (max-width: 680px) {
  .naik-baris { grid-template-columns: 1fr; }
  .naik-baris > .naik-panah { display: none; }
}
.mapel-ringkas { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 14px; }
.mapel-ringkas-item {
  display: flex; align-items: baseline; gap: 10px; padding: 14px 20px;
  background: white; border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 4px 12px rgba(13, 74, 46, .04);
}
.mapel-ringkas-item b { font-size: 26px; line-height: 1; color: var(--green-deep); letter-spacing: -.5px; }
.mapel-ringkas-item small { color: var(--muted); font-size: 13px; }
.mapel-ringkas-item.peringatan { background: #fffaf0; border-color: #f1dcae; }
.mapel-ringkas-item.peringatan b { color: #b8741a; }
.mapel-tambah { margin-left: auto; padding: 12px 20px; border-radius: 14px; }
.mapel-standar {
  display: flex; align-items: center; gap: 14px; margin-bottom: 18px; padding: 12px 14px;
  background: linear-gradient(90deg, #fff8e8, #fffdf7); border: 1px dashed #e9c67f; border-radius: 16px;
}
.mapel-standar-isi { flex: 1; min-width: 0; }
.mapel-standar-isi strong { display: block; font-size: 14px; color: #7a5212; }
.mapel-standar .btn { flex: 0 0 auto; border-radius: 12px; }
.mapel-standar-pilih { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.mapel-standar-pilih label { position: relative; cursor: pointer; }
.mapel-standar-pilih input { position: absolute; left: 0; top: 0; width: 1px; height: 1px; margin: 0; opacity: 0; pointer-events: none; }
.mapel-standar-pilih span {
  display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px;
  border: 1px solid var(--line); border-radius: 999px; background: white; color: var(--muted); font-size: 13px;
}
.mapel-standar-pilih input:checked + span { background: #e7f5ec; border-color: #9fd3b2; color: var(--green-deep); font-weight: 700; }
.mapel-standar-pilih input:not(:checked) + span { text-decoration: line-through; opacity: .6; }
.mapel-standar-pilih input:focus-visible + span { outline: 2px solid var(--green); }
.mapel-grup { --warna: #128a45; --muda: #eaf6ef; margin-bottom: 22px; }
.mapel-grup.umum { --warna: #2b6fc2; --muda: #eaf2fc; }
.mapel-grup.lokal { --warna: #c4861d; --muda: #fdf3df; }
.mapel-grup.lain { --warna: #7b52c7; --muda: #f1ebfb; }
.mapel-grup-judul { display: flex; align-items: center; gap: 10px; margin: 0 2px 12px; font-size: 17px; }
.mapel-grup-judul::before { content: ""; width: 5px; height: 22px; border-radius: 99px; background: var(--warna); }
.mapel-grup-judul em {
  font-style: normal; font-size: 12px; font-weight: 700; color: var(--warna);
  background: var(--muda); padding: 3px 10px; border-radius: 999px; white-space: nowrap;
}
.mapel-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.mapel-kartu {
  position: relative;
  display: flex; flex-direction: column; justify-content: space-between; gap: 14px; min-height: 124px;
  padding: 16px 16px 14px; border: 1px solid var(--line); border-top: 3px solid var(--warna); border-radius: 16px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--muda) 55%, white) 0, white 60%);
  box-shadow: 0 4px 12px rgba(13, 40, 25, .04);
  transition: transform .15s ease, box-shadow .15s ease;
}
.mapel-kartu:hover { transform: translateY(-2px); box-shadow: 0 14px 26px rgba(13, 40, 25, .09); }
.mapel-kepala { display: flex; align-items: center; gap: 12px; padding-right: 44px; }
.mapel-kepala strong { font-size: 15px; line-height: 1.35; color: #14261c; }
.mapel-ikon3d {
  flex: 0 0 auto; width: 64px; height: 64px; object-fit: contain;
  filter: drop-shadow(0 6px 8px rgba(40, 30, 0, .18));
  transition: transform .2s ease;
}
.mapel-kartu:hover .mapel-ikon3d { transform: scale(1.08) rotate(-3deg); }
.mapel-ubah {
  position: absolute; top: 12px; right: 12px; padding: 4px 10px; border: 1px solid transparent; border-radius: 8px;
  background: transparent; color: var(--muted); font: inherit; font-size: 12px; font-weight: 700; cursor: pointer;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.mapel-kartu:hover .mapel-ubah { border-color: var(--line); background: white; }
.mapel-ubah:hover, .mapel-ubah:focus-visible { color: var(--warna); border-color: color-mix(in srgb, var(--warna) 40%, white); }
.mapel-angka { display: flex; gap: 22px; padding-top: 12px; border-top: 1px dashed var(--line); }
.mapel-angka b { display: block; font-size: 22px; line-height: 1; color: var(--warna); }
.mapel-angka small { display: block; margin-top: 3px; color: var(--muted); font-size: 11px; }
.mapel-angka p { margin: 0; color: #9aa39e; font-size: 12px; font-style: italic; }
.mapel-dialog { width: min(660px, calc(100vw - 32px)); }
.mapel-dialog form { max-height: calc(100vh - 60px); overflow: auto; }
.ikon-pilih { margin: 4px 0 14px; padding: 0; border: 0; }
.ikon-pilih legend { margin-bottom: 8px; color: var(--muted); font-size: 13px; }
.ikon-pilih-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 8px; }
.ikon-pilih label { position: relative; cursor: pointer; }
.ikon-pilih input { position: absolute; left: 0; top: 0; width: 1px; height: 1px; margin: 0; opacity: 0; }
.ikon-pilih span {
  display: flex; flex-direction: column; align-items: center; gap: 4px; height: 100%;
  padding: 8px 4px 6px; border: 2px solid var(--line); border-radius: 14px; background: white;
  transition: border-color .15s ease, background .15s ease, transform .15s ease;
}
.ikon-pilih img { width: 56px; height: 56px; object-fit: contain; filter: drop-shadow(0 4px 5px rgba(40, 30, 0, .15)); }
.ikon-pilih small { font-size: 11px; line-height: 1.2; text-align: center; color: var(--muted); }
.ikon-otomatis {
  width: 56px; height: 56px; display: grid; place-items: center; border-radius: 16px;
  font-style: normal; font-weight: 800; font-size: 13px; color: var(--green-deep);
  background: repeating-linear-gradient(45deg, #eef7f1, #eef7f1 6px, #e3f1e8 6px, #e3f1e8 12px);
}
.ikon-pilih label:hover span { border-color: #bfe0cb; transform: translateY(-1px); }
.ikon-pilih input:checked + span { border-color: var(--green); background: #eef8f2; box-shadow: 0 0 0 3px rgba(18, 138, 69, .15); }
.ikon-pilih input:checked + span small { color: var(--green-deep); font-weight: 700; }
.ikon-pilih input:focus-visible + span { outline: 2px solid var(--green); outline-offset: 2px; }
.mapel-kartu.belum { border-top-color: color-mix(in srgb, var(--warna) 35%, white); background: white; }
@media (max-width: 680px) {
  .mapel-standar { flex-wrap: wrap; }
  .mapel-standar .btn { width: 100%; }
  .mapel-tambah { width: 100%; }
}
.iuran-bagian { margin-bottom: 18px; }
.iuran-judul { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.iuran-judul h2 { margin: 0; font-size: 18px; }
.iuran-judul p { margin: 2px 0 0; font-size: 13px; }
.iuran-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.iuran-kartu {
  position: relative; padding: 16px; border: 1px solid var(--line); border-top: 3px solid #c4861d; border-radius: 16px;
  background: linear-gradient(180deg, #fffaf0 0, white 55%); box-shadow: 0 4px 12px rgba(13, 40, 25, .04);
}
.iuran-kartu.nonaktif { border-top-color: #c9d1cc; background: #f8faf9; opacity: .75; }
.iuran-kepala { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.iuran-tombol { display: flex; gap: 4px; flex: none; margin: -4px -6px 0 0; }
.iuran-tombol button { padding: 4px 8px; border: 1px solid transparent; border-radius: 8px; background: transparent; color: var(--muted); font: inherit; font-size: 12px; font-weight: 700; cursor: pointer; white-space: nowrap; transition: background .15s, color .15s, border-color .15s; }
.iuran-tombol button:hover { background: white; border-color: #e3cf9f; color: #8a5a0c; }
.iuran-tombol button.hapus:hover { border-color: #efc2bb; color: #b23b2a; background: #fff5f3; }
.iuran-tombol button:disabled { opacity: .4; cursor: not-allowed; background: transparent; border-color: transparent; color: var(--muted); }
.iuran-tambah { display: grid; place-content: center; justify-items: center; gap: 2px; min-height: 118px; padding: 16px; border: 2px dashed #e2c98f; border-radius: 16px; background: #fffcf5; color: #8a5a0c; font: inherit; cursor: pointer; transition: background .15s, border-color .15s, transform .15s; }
.iuran-tambah:hover { background: #fff5df; border-color: #c4861d; transform: translateY(-2px); }
.iuran-tambah b { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: #c4861d; color: white; font-size: 24px; line-height: 1; margin-bottom: 4px; }
.iuran-tambah span { font-weight: 800; font-size: 14px; }
.iuran-tambah small { font-size: 12px; color: #a3813f; }

.siswa-kelas { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.siswa-kelas a { display: grid; min-width: 92px; padding: 10px 14px; border-radius: 14px; background: linear-gradient(180deg, #ffffff, #f4f8f6); border: 1px solid var(--line); color: inherit; box-shadow: 0 4px 0 #dfe8e2; transition: transform .12s, border-color .12s, box-shadow .12s; }
.siswa-kelas a:hover { transform: translateY(-2px); border-color: #9fd3b2; box-shadow: 0 6px 0 #cfe3d6; }
.siswa-kelas a.on { background: linear-gradient(180deg, #2fbf6a, #128a45); border-color: #128a45; color: white; box-shadow: 0 4px 0 #0a6a33, 0 10px 16px rgba(18, 138, 69, .25); }
.siswa-kelas b { font-size: 16px; line-height: 1.1; }
.siswa-kelas span { font-size: 12px; color: var(--muted); }
.siswa-kelas a.on span { color: rgba(255, 255, 255, .85); }
.siswa-atas { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.siswa-atas .btn { flex: none; }
.siswa-kepala { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.siswa-kepala-ikon { width: 84px; height: 84px; object-fit: contain; filter: drop-shadow(0 10px 12px rgba(18, 90, 50, .22)); }
.siswa-kepala-teks { flex: 1; min-width: 0; }
.siswa-kepala h1 { margin: 0; font-size: 26px; }
.siswa-kepala p { margin: 4px 0 0; color: var(--muted); }
.siswa-tambah3d { flex: none; display: flex; align-items: center; gap: 12px; padding: 8px 20px 8px 8px; border: 0; border-radius: 20px; cursor: pointer; font: inherit; color: white; text-align: left;
  background: linear-gradient(180deg, #2fbf6a 0%, #16a052 55%, #0f8a44 100%);
  box-shadow: 0 6px 0 #0a6a33, 0 14px 22px rgba(10, 106, 51, .35), inset 0 2px 0 rgba(255, 255, 255, .35);
  transition: transform .12s, box-shadow .12s, filter .12s; }
.siswa-tambah3d:hover { transform: translateY(-2px); filter: brightness(1.06); box-shadow: 0 8px 0 #0a6a33, 0 18px 26px rgba(10, 106, 51, .38), inset 0 2px 0 rgba(255, 255, 255, .35); }
.siswa-tambah3d:active { transform: translateY(5px); box-shadow: 0 1px 0 #0a6a33, 0 4px 8px rgba(10, 106, 51, .3), inset 0 2px 0 rgba(255, 255, 255, .25); }
.siswa-tambah3d-ikon { position: relative; flex: none; width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; background: linear-gradient(180deg, #ffffff, #e6f6ec); box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .08), 0 3px 6px rgba(0, 0, 0, .18); }
.siswa-tambah3d-ikon img { width: 44px; height: 44px; object-fit: contain; }
.siswa-tambah3d-ikon i { position: absolute; right: -6px; bottom: -6px; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-weight: 800; font-size: 18px; line-height: 1; color: white;
  background: radial-gradient(circle at 35% 30%, #ffd66b, #f59e0b 60%, #c47600); border: 2px solid white; box-shadow: 0 3px 5px rgba(0, 0, 0, .25); }
.siswa-tambah3d-teks { display: grid; line-height: 1.15; }
.siswa-tambah3d-teks b { font-size: 16px; text-shadow: 0 1px 0 rgba(0, 0, 0, .2); }
.siswa-tambah3d-teks small { font-size: 12px; opacity: .9; }
.siswa-panduan { display: flex; flex-wrap: wrap; gap: 8px 18px; list-style: none; margin: 0 0 14px; padding: 10px 14px; border-radius: 14px; background: #fffbea; border: 1px solid #f3e3a6; color: #6b5412; font-size: 13px; }
.siswa-panduan li { display: flex; align-items: center; gap: 8px; }
.siswa-panduan b { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; color: white; background: radial-gradient(circle at 35% 30%, #ffd66b, #e89a0c 65%); box-shadow: 0 2px 0 #b87600; }
.siswa-panduan em { font-style: normal; font-weight: 700; }
.siswa-stat { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px; }
.siswa-stat-kartu { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 16px; background: white; border: 1px solid var(--line); box-shadow: 0 4px 0 #e4ece7, 0 10px 18px rgba(20, 40, 30, .06); }
.siswa-stat-kartu b { display: block; font-size: 24px; line-height: 1.1; color: #14261c; }
.siswa-stat-kartu small { font-size: 12px; color: var(--muted); }
.siswa-stat-ikon { flex: none; width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; box-shadow: inset 0 2px 0 rgba(255, 255, 255, .6), inset 0 -4px 0 rgba(0, 0, 0, .08), 0 4px 8px rgba(0, 0, 0, .1); }
.siswa-stat-ikon img { width: 42px; height: 42px; object-fit: contain; filter: drop-shadow(0 3px 3px rgba(0, 0, 0, .15)); }
.siswa-stat-ikon.simbol { font-size: 28px; font-weight: 800; color: white; text-shadow: 0 2px 0 rgba(0, 0, 0, .2); }
.siswa-stat-kartu.hijau .siswa-stat-ikon { background: linear-gradient(180deg, #e9f8ef, #c9ecd7); }
.siswa-stat-kartu.kuning .siswa-stat-ikon { background: linear-gradient(180deg, #fff6d9, #fde7a4); }
.siswa-stat-kartu.biru .siswa-stat-ikon { background: linear-gradient(180deg, #6fb4f0, #2f7fcf); }
.siswa-stat-kartu.merah .siswa-stat-ikon { background: linear-gradient(180deg, #f59ac3, #d9588f); }
.siswa-label { margin: 0 0 8px; font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.siswa-dialog-kepala { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.siswa-dialog-kepala img { width: 56px; height: 56px; object-fit: contain; filter: drop-shadow(0 6px 8px rgba(18, 90, 50, .2)); }
.siswa-dialog-kepala h2 { margin: 0; }
.siswa-dialog-kepala p { margin: 2px 0 0; font-size: 13px; color: var(--muted); }
@media (max-width: 900px) { .siswa-stat { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) {
  .siswa-kepala-ikon { width: 60px; height: 60px; }
  .siswa-kepala h1 { font-size: 22px; }
  .siswa-tambah3d { position: fixed; right: 16px; bottom: 18px; z-index: 40; padding: 6px; border-radius: 22px; }
  .siswa-tambah3d-teks { display: none; }
}
.siswa-dialog { width: min(640px, calc(100vw - 32px)); }
.siswa-form { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.siswa-form .lebar { grid-column: 1 / -1; }
.siswa-form .field { margin-bottom: 12px; }
@media (max-width: 560px) { .siswa-form { grid-template-columns: 1fr; } }
.siswa-atas h2 { margin: 0 0 6px; font-size: 18px; }
.siswa-ringkas { display: flex; flex-wrap: wrap; gap: 6px; }
.siswa-ringkas span { padding: 4px 10px; border-radius: 999px; background: #f3f6f4; font-size: 13px; color: #3d4d45; }
.siswa-ringkas b { font-size: 15px; }
.siswa-ringkas .l { background: #e5f0fa; color: #1d5f96; }
.siswa-ringkas .p { background: #fbe7f0; color: #9a3d68; }
.siswa-cari { margin: 0; min-width: min(280px, 100%); }
.siswa-cari input { width: 100%; padding: 10px 14px; border: 1px solid #d7e3dc; border-radius: 999px; font: inherit; background: #f8fbf9; }
.siswa-cari input:focus { outline: 2px solid #b7e0c6; background: white; }
.siswa-tabel td { vertical-align: middle; }
.siswa-tabel tbody tr:hover { background: #f6fbf8; }
.siswa-tabel tr[hidden] { display: none; }
.siswa-no { width: 42px; color: var(--muted); font-variant-numeric: tabular-nums; }
.siswa-nama { display: flex; align-items: center; gap: 12px; min-width: 220px; }
.siswa-inisial { flex: none; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; font-weight: 800; font-size: 14px; letter-spacing: .02em; background: #e7f3ec; color: var(--green-deep); }
.siswa-inisial.l { background: #e5f0fa; color: #1d5f96; }
.siswa-inisial.p { background: #fbe7f0; color: #9a3d68; }
.siswa-nama strong { display: block; font-size: 15px; color: #14261c; }
.siswa-nama small { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 2px; }
.siswa-nama em { font-style: normal; font-size: 12px; color: var(--muted); }
.siswa-nama i { font-style: normal; font-size: 11px; font-weight: 700; padding: 1px 8px; border-radius: 999px; }
.siswa-nama i.l { background: #e5f0fa; color: #1d5f96; }
.siswa-nama i.p { background: #fbe7f0; color: #9a3d68; }
.siswa-alamat { max-width: 280px; color: #4d5c54; font-size: 13px; line-height: 1.4; }
.siswa-ortu { display: grid; gap: 2px; }
.siswa-ortu strong { font-size: 14px; font-weight: 600; }
.siswa-ortu a { font-size: 13px; color: var(--green-deep); font-weight: 700; }
.siswa-tabel .btn.kecil { flex: none; }
.siswa-kosong, .siswa-nihil { margin: 0; padding: 22px; text-align: center; border-radius: 12px; background: #f6fbf8; color: var(--green-deep); font-weight: 600; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
@media (max-width: 720px) {
  .siswa-kelas a { min-width: 76px; padding: 8px 10px; }
  .siswa-nama { min-width: 180px; }
}
.iuran-kepala strong { font-size: 15px; line-height: 1.35; color: #14261c; }
.iuran-nominal { margin: 10px 0 8px; font-size: 24px; font-weight: 800; color: #9a6410; letter-spacing: -.5px; }
.iuran-info { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 12px; }
.iuran-periode { padding: 2px 9px; border-radius: 999px; background: #fdf0d5; color: #8a5a0c; font-weight: 700; }
.iuran-mati { padding: 2px 9px; border-radius: 999px; background: #eceff0; color: #6d7b73; font-weight: 700; }
.iuran-ket { margin: 8px 0 0; color: var(--muted); font-size: 12px; }
.iuran-kosong {
  display: grid; gap: 4px; padding: 18px; border: 1px dashed #e9c67f; border-radius: 16px; background: #fffbf2; font-size: 13px; color: #7a5212;
}
.iuran-bebankan h2 { margin: 0 0 12px; font-size: 18px; }
.iuran-bebankan-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 0 14px; }
.iuran-periode-pilih { margin: 4px 0 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 14px; background: #f8fbf9; }
.iuran-periode-pilih legend { padding: 0 6px; font-size: 13px; font-weight: 700; color: var(--green-deep); }
.iuran-semua { margin-left: 6px; border: 0; background: none; color: var(--green); font: inherit; font-size: 12px; text-decoration: underline; cursor: pointer; }
.iuran-periode-pilih .mapel-standar-pilih { margin-top: 0; }
.iuran-periode-pilih .mapel-standar-pilih input:not(:checked) + span { text-decoration: none; opacity: 1; }
.iuran-bebankan-kaki { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.iuran-bebankan-kaki .muted { font-size: 12px; }
.iuran-saring { display: flex; gap: 8px; flex-wrap: wrap; }
.iuran-saring select { padding: 8px 10px; border: 1px solid #d7e3dc; border-radius: 10px; font: inherit; font-size: 13px; background: white; }
.iuran-lunas, .iuran-sisa { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; white-space: nowrap; }
.iuran-lunas { background: #e3f4ea; color: var(--green-deep); }
.iuran-sisa { background: #fdecea; color: #a33a2c; }
.iuran-cicil { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; white-space: nowrap; background: #fdf0d5; color: #8a5a0c; }
.rekap-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; }
.rekap-kartu {
  display: grid; gap: 8px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 14px; background: white;
  color: inherit; text-decoration: none; transition: border-color .15s, box-shadow .15s;
}
.rekap-kartu:hover { border-color: #9fd3b2; box-shadow: 0 4px 12px rgba(13, 40, 25, .06); }
.rekap-kartu.aktif { border-color: var(--green); box-shadow: 0 0 0 2px #cdebd8; }
.rekap-atas { display: flex; justify-content: space-between; align-items: baseline; }
.rekap-atas strong { font-size: 15px; color: #14261c; }
.rekap-atas span { font-size: 13px; font-weight: 800; color: var(--green-deep); }
.rekap-bar { height: 7px; border-radius: 99px; background: #eef2ef; overflow: hidden; }
.rekap-bar i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, #2bb36a, var(--green)); }
.rekap-bar.kecil { height: 5px; width: 110px; margin: 6px 0 3px; }
.rekap-bawah { display: grid; gap: 2px; font-size: 12px; color: var(--muted); }
.rekap-bawah b { color: #a33a2c; font-size: 12px; }
.rekap-bawah b.beres { color: var(--green-deep); }
.saring-bar {
  display: grid; grid-template-columns: minmax(180px, 2fr) repeat(3, minmax(120px, 1fr)) auto; gap: 10px; align-items: end;
  margin-bottom: 14px; padding: 12px; border-radius: 14px; background: #f6faf7;
}
.saring-bar label { display: grid; gap: 4px; font-size: 12px; font-weight: 700; color: var(--muted); }
.saring-bar input, .saring-bar select { width: 100%; padding: 9px 10px; border: 1px solid #d7e3dc; border-radius: 10px; font: inherit; font-size: 14px; font-weight: 400; color: inherit; background: white; }
.saring-tombol { display: flex; gap: 6px; }
@media (max-width: 760px) {
  .saring-bar { grid-template-columns: 1fr 1fr; }
  .saring-bar label:first-child, .saring-tombol { grid-column: 1 / -1; }
}
.tagihan-tabel th { padding: 10px 10px; background: #f6faf7; border-bottom: 1px solid var(--line); }
.tagihan-tabel td { padding: 11px 10px; vertical-align: middle; }
.tagihan-tabel tbody tr:hover { background: #fbfdfc; }
.tagihan-tabel .no { width: 36px; color: var(--muted); font-size: 12px; text-align: center; }
.tagihan-tabel .kanan { text-align: right; }
.tagihan-siswa { font-weight: 700; color: #14261c; }
.tagihan-kelas { font-size: 12px; color: var(--muted); }
.tagihan-bayar small { display: block; font-size: 12px; color: var(--muted); }
.tagihan-kosong { padding: 24px !important; text-align: center; color: var(--muted); }
.halaman { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px; margin-top: 14px; }
.halaman-no {
  min-width: 34px; padding: 6px 8px; border: 1px solid var(--line); border-radius: 10px; text-align: center;
  color: inherit; text-decoration: none; font-size: 13px; font-weight: 700;
}
.halaman-no.aktif { background: var(--green); border-color: var(--green); color: white; }
.kelola-dialog { width: min(520px, calc(100vw - 24px)); padding: 20px 22px; }
.kelola-dialog form { padding: 0; }
.kelola-dialog .btn.kecil, .tagihan-tabel .btn.kecil { flex: none; min-width: 72px; }
.kelola-dialog .kelola-blok form { padding: 0; }
form.kelola-blok { padding: 12px; }
.kelola-kepala { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; margin-bottom: 12px; }
.kelola-kepala strong { display: block; font-size: 18px; color: #14261c; }
.kelola-kepala span { font-size: 13px; color: var(--muted); }
.kelola-tutup { border: 0; background: #f1f5f2; width: 32px; height: 32px; border-radius: 50%; font-size: 20px; line-height: 1; cursor: pointer; color: var(--muted); }
.kelola-info { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 14px; }
.kelola-info div { padding: 10px 12px; border-radius: 12px; background: #f6faf7; }
.kelola-info small { display: block; font-size: 11px; color: var(--muted); }
.kelola-info b { font-size: 15px; color: #14261c; }
.kelola-info div:last-child { background: #fdf3f1; }
.kelola-info div:last-child b { color: #a33a2c; }
.kelola-blok { margin: 0 0 12px; padding: 12px; border: 1px solid var(--line); border-radius: 12px; }
.kelola-blok h3 { margin: 0 0 8px; font-size: 14px; }
.kelola-blok summary { cursor: pointer; font-size: 13px; font-weight: 700; color: var(--green-deep); }
.kelola-blok[open] summary { margin-bottom: 10px; }
.kelola-blok p { margin: 8px 0 0; font-size: 12px; }
.kelola-baris { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
.kelola-baris input { flex: 1; min-width: 140px; padding: 9px 10px; border: 1px solid #d7e3dc; border-radius: 10px; font: inherit; }
.kelola-riwayat { font-size: 13px; font-weight: 700; color: var(--green); text-decoration: none; }
.iuran-uang { white-space: nowrap; }
.hapus-bar {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 12px; padding: 10px 12px;
  border: 1px dashed #f0c4bd; border-radius: 12px; background: #fffafa;
}
.hapus-bar form { margin: 0; }
.hapus-bar .btn.kecil { flex: none; }
.hapus-bar .btn:disabled { opacity: .45; cursor: not-allowed; }
.hapus-bar .hapus-semua { border-color: #e8b4ab; color: #a33a2c; }
.hapus-bar .muted { font-size: 12px; }
.tagihan-tabel .pilih { width: 28px; text-align: center; }
.tagihan-tabel .pilih input { width: 17px; height: 17px; accent-color: #a33a2c; cursor: pointer; }
.tagihan-tabel td.kanan { white-space: nowrap; }
.tombol-hapus {
  display: inline-grid; place-items: center; width: 34px; height: 34px; margin-left: 4px; vertical-align: middle;
  border: 1px solid #f0c4bd; border-radius: 10px; background: #fff5f3; font-size: 15px; cursor: pointer;
}
.tombol-hapus:hover { background: #fde4df; border-color: #e39a8e; }
.tombol-hapus.kosong { border-color: transparent; background: none; cursor: default; }
.iuran-aksi { display: flex; gap: 6px; align-items: center; }
.iuran-aksi form { margin: 0; }
.iuran-aksi .row-form { flex-wrap: nowrap; gap: 6px; align-items: center; }
.iuran-aksi input { width: 100px; padding: 7px 9px; border: 1px solid #d7e3dc; border-radius: 10px; font: inherit; font-size: 13px; }
.iuran-aksi .btn { padding: 7px 12px; font-size: 13px; }
.jadwal-saring { display: grid; grid-template-columns: 1fr auto 1fr; gap: 12px; align-items: start; margin-bottom: 14px; padding: 14px 16px; background: white; border: 1px solid var(--line); border-radius: 16px; }
.jadwal-saring .field { margin: 0; }
.jadwal-saring small { display: block; margin-top: 6px; color: var(--muted); font-size: 12px; }
.jadwal-atau { align-self: center; margin-top: 18px; font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.jadwal-form { border: 1px solid #d7ebdf; background: linear-gradient(180deg, #f7fbf8, #fff); }
.jadwal-form.sorot { border-color: var(--green); box-shadow: 0 0 0 3px rgba(18, 138, 69, .15); }
.jadwal-form-judul h2 { margin: 0; font-size: 18px; }
.jadwal-form-judul p { margin: 4px 0 12px; color: #3d4d45; font-size: 14px; }
.jadwal-langkah { display: flex; align-items: center; gap: 8px; margin: 2px 0 8px; font-size: 13px; font-weight: 700; color: var(--green-deep); }
.jadwal-langkah b { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; color: white; background: var(--green); font-size: 12px; }
.jadwal-form-pelajaran { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.jadwal-form-waktu { display: grid; grid-template-columns: 1.2fr .7fr .7fr auto; gap: 12px; align-items: end; }
.jadwal-form .field { margin-bottom: 0; }
.jadwal-form-waktu .btn { height: 42px; margin-bottom: 0; padding-inline: 18px; white-space: nowrap; }
.jadwal-petunjuk { margin: 10px 0 0; font-size: 12px; color: var(--muted); }
.jadwal-kepala { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.jadwal-kepala h2 { margin: 0; font-size: 18px; }
.jadwal-kepala h2 span { color: var(--green); }
.jadwal-kepala p { margin: 4px 0 0; font-size: 13px; color: var(--muted); }
.jadwal-grid { table-layout: fixed; min-width: 760px; border-collapse: separate; border-spacing: 0; }
.jadwal-grid th:first-child, .jadwal-grid td:first-child { width: 64px; }
.jadwal-grid thead th { text-align: center; background: #f6faf7; }
.jadwal-grid thead th small { display: block; font-weight: 600; font-size: 11px; color: var(--green-deep); }
.jadwal-grid tbody th { text-align: center; color: var(--muted); }
.jadwal-grid tbody th b { display: block; font-size: 16px; color: #14261c; line-height: 1; }
.jadwal-grid tbody th small { font-size: 10px; letter-spacing: .02em; }
.jadwal-grid td { height: 68px; padding: 4px; vertical-align: stretch; }
.jadwal-isi {
  position: relative;
  background: var(--latar, #eef8f2);
  box-shadow: inset 4px 0 0 var(--garis, var(--green));
  border-radius: 12px;
  padding: 8px 10px;
}
.jadwal-isi strong { display: block; font-size: 13px; line-height: 1.25; color: #14261c; padding-right: 16px; }
.jadwal-isi span { display: block; margin-top: 3px; font-size: 12px; color: #3d4d45; }
.jadwal-isi em { display: inline-block; margin-top: 6px; padding: 1px 7px; border-radius: 999px; background: rgba(255, 255, 255, .72); font-style: normal; font-size: 11px; font-weight: 700; color: var(--garis, var(--green-deep)); }
.jadwal-isi form { position: absolute; top: 4px; right: 4px; margin: 0; }
.jadwal-hapus {
  width: 22px; height: 22px; border: 0; border-radius: 7px; padding: 0;
  background: rgba(255, 255, 255, .7); color: #a32020; font-size: 16px; line-height: 1; cursor: pointer;
}
.jadwal-hapus:hover { background: #fde8e8; }
.jadwal-kosong button {
  width: 100%; height: 100%; min-height: 56px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0;
  border: 1px dashed #d5e3da; border-radius: 12px;
  background: transparent; color: #9bb3a4; cursor: pointer;
}
.jadwal-kosong button b { font-size: 18px; line-height: 1; font-weight: 600; }
.jadwal-kosong button small { font-size: 11px; }
.jadwal-kosong button:hover { border-color: var(--green); color: var(--green); background: #f5fbf7; }
@media (max-width: 800px) {
  .jadwal-saring, .jadwal-form-pelajaran, .jadwal-form-waktu { grid-template-columns: 1fr; }
  .jadwal-atau { margin: 0; text-align: center; }
}
.actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }

@media (max-width: 1100px) {
  .cards, .grid-3 { grid-template-columns: 1fr 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .profil-stat { grid-template-columns: 1fr 1fr; }
  .hero h2 { font-size: 28px; }
  .top-user div { display: none; }
}
@media (max-width: 900px) {
  .main { margin-left: 0; }
  html:not(.sidebar-hidden) .backdrop {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(12, 32, 20, .45);
    z-index: 15;
  }
}
@media (max-width: 680px) {
  .icon-grid, html.tampilan-padat .icon-grid { grid-template-columns: 1fr 1fr; }
  .cards, .grid-3 { grid-template-columns: 1fr 1fr; }
  .hero-teks { padding: 20px; }
  .hero-hias { width: 100%; opacity: .35; }
  .profil-stat { grid-template-columns: 1fr; }
  .profil-hero { flex-direction: column; text-align: center; padding: 24px 20px; }
  .profil-hero img { width: 92px; height: 92px; }
  .profil-hero h2 { font-size: 24px; }
  .profil-lencana, .profil-kontak { justify-content: center; }
  .profil-ubah { align-self: center; }
}

.akses-ringkas { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.akses-ringkas span { background: #eef6f1; border: 1px solid #cfe5d8; border-radius: 999px; padding: 5px 12px; font-size: 13px; }
.akses-tabel th, .akses-tabel td { vertical-align: middle; }
.akses-tabel th { text-align: center; white-space: nowrap; }
.akses-tabel th:first-child { text-align: left; }
.akses-kolom { display: block; margin: 4px auto 0; border: 0; background: none; color: #1f7a4d; font-size: 11px; cursor: pointer; text-decoration: underline; padding: 0; }
.akses-grup td { background: #f3f6f4; font-weight: 700; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: #52615a; }
.akses-menu { display: flex; align-items: center; gap: 10px; min-width: 220px; }
.akses-menu img { width: 34px; height: 34px; object-fit: contain; }
.akses-menu span { display: flex; flex-direction: column; }
.akses-menu small { color: #6b7a73; font-size: 12px; }
.akses-sel { text-align: center; }
.akses-sel input { width: 20px; height: 20px; accent-color: #1f7a4d; cursor: pointer; }
.akses-sel input:disabled { cursor: not-allowed; opacity: .6; }
.akses-khusus { text-align: center; color: #8a6d1f; font-style: italic; font-size: 13px; }
.akses-aksi { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }

.keu-dasbor { display: grid; grid-template-columns: auto 1fr; gap: 18px 24px; align-items: center; padding: 20px 22px; margin-bottom: 18px; border-radius: 20px; background: linear-gradient(135deg, #ffffff 0%, #f3faf6 100%); border: 1px solid var(--line); box-shadow: 0 8px 24px rgba(13, 74, 46, .06); }
.keu-lingkar { width: 150px; height: 150px; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(#1f9a5a 0 var(--lunas), #e8a93a var(--lunas) var(--cicil), #e0685a var(--cicil) 360deg); box-shadow: 0 6px 18px rgba(13, 74, 46, .12); }
.keu-lingkar-isi { width: 112px; height: 112px; border-radius: 50%; background: white; display: grid; place-content: center; text-align: center; }
.keu-lingkar-isi b { font-size: 30px; line-height: 1; color: var(--green-deep); letter-spacing: -.02em; }
.keu-lingkar-isi span { font-size: 12px; color: var(--muted); margin-top: 3px; }
.keu-dasbor-kanan { min-width: 0; }
.keu-dasbor-judul { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 12px; margin-bottom: 12px; }
.keu-dasbor-judul h2 { margin: 0; font-size: 18px; }
.keu-dasbor-judul .muted { font-size: 13px; }
.keu-status { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.keu-s { --warna: #1f9a5a; --muda: #e4f5eb; display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 12px; align-items: center; padding: 12px 14px; border-radius: 14px; background: white; border: 1px solid var(--line); color: inherit; transition: transform .15s, box-shadow .15s, border-color .15s; }
.keu-s:hover { transform: translateY(-2px); box-shadow: 0 10px 20px rgba(13, 40, 25, .08); border-color: var(--warna); }
.keu-s.aktif { border-color: var(--warna); box-shadow: 0 0 0 2px var(--muda); }
.keu-s.cicil { --warna: #c98a1c; --muda: #fcf0d8; }
.keu-s.nol { --warna: #c9503f; --muda: #fbe7e4; }
.keu-s i { grid-row: span 2; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; font-style: normal; font-weight: 900; font-size: 18px; background: var(--muda); color: var(--warna); }
.keu-s span { font-size: 13px; color: var(--muted); }
.keu-s span b { font-size: 26px; line-height: 1.05; color: var(--warna); margin-right: 2px; }
.keu-s strong { font-size: 13px; color: #14261c; }
.keu-catatan { margin: 10px 0 0; font-size: 12px; }
.keu-catatan b { color: #a86a10; }
.keu-catatan a, .keu-dasbor-judul a { color: var(--green); font-weight: 700; }
.keu-uang { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px 14px; padding-top: 16px; border-top: 1px dashed #d6e4db; }
.keu-uang > div:not(.keu-uang-bar) { display: grid; gap: 2px; }
.keu-uang small { font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.keu-uang b { font-size: 22px; color: #22352b; letter-spacing: -.01em; }
.keu-uang .masuk b { color: var(--green-deep); }
.keu-uang .kurang b { color: #b24a3a; }
.keu-uang-bar { grid-column: 1 / -1; position: relative; height: 22px; border-radius: 99px; background: #fbe7e4; overflow: hidden; }
.keu-uang-bar i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, #2bb36a, var(--green)); }
.keu-uang-bar span { position: absolute; inset: 0; display: grid; place-items: center; font-size: 12px; font-weight: 700; color: #14261c; text-shadow: 0 1px 0 rgba(255, 255, 255, .7); }
@media (max-width: 760px) {
  .keu-dasbor { grid-template-columns: 1fr; justify-items: center; padding: 16px; }
  .keu-dasbor-kanan, .keu-uang { width: 100%; }
  .keu-status { grid-template-columns: 1fr; }
  .keu-uang { grid-template-columns: 1fr 1fr; }
  .keu-uang > div:first-child { grid-column: 1 / -1; }
  .keu-uang b { font-size: 19px; }
}

.lapkeu-saring { display: grid; gap: 12px; }
.lapkeu-pintas { display: flex; flex-wrap: wrap; gap: 6px; }
.lapkeu-pintas a { border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; font-size: 13px; font-weight: 700; color: var(--muted); background: white; }
.lapkeu-pintas a:hover { border-color: #9fd3b2; color: var(--green-deep); }
.lapkeu-pintas a.on { background: var(--green); border-color: var(--green); color: white; }
.lapkeu-isian { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) auto; gap: 10px; align-items: end; }
.lapkeu-isian .field { margin: 0; }
.lapkeu-kartu { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 14px; }
.lapkeu-k { --warna: #3d4d45; --muda: #f3f6f4; position: relative; overflow: hidden; display: grid; gap: 4px; align-content: start; padding: 16px 18px; border-radius: 16px; background: white; border: 1px solid var(--line); border-top: 4px solid var(--warna); }
.lapkeu-k::after { content: ""; position: absolute; right: -26px; top: -26px; width: 90px; height: 90px; border-radius: 50%; background: var(--muda); }
.lapkeu-k > * { position: relative; z-index: 1; }
.lapkeu-k.hijau { --warna: #1f8a52; --muda: #e4f5eb; }
.lapkeu-k.biru { --warna: #2f7fbf; --muda: #e5f0fa; }
.lapkeu-k.merah { --warna: #c0503f; --muda: #fbe9e6; }
.lapkeu-k small { font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.lapkeu-k b { font-size: 24px; line-height: 1.15; color: var(--warna); letter-spacing: -.01em; }
.lapkeu-k span { font-size: 12px; color: var(--muted); }
.lapkeu-k .rekap-bar { margin: 4px 0 2px; }
.lapkeu-judul { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 12px; }
.lapkeu-judul h2 { margin: 0; font-size: 17px; }
.lapkeu-judul h2 small { font-size: 13px; font-weight: 500; margin-left: 6px; }
.lapkeu-judul .btn.kecil { flex: none; }
.lapkeu-batang { display: grid; grid-template-columns: repeat(var(--kolom), minmax(0, 1fr)); gap: 3px; height: 170px; align-items: end; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.lapkeu-hari { position: relative; height: 100%; display: flex; align-items: flex-end; justify-content: center; }
.lapkeu-hari i { display: block; width: 100%; max-width: 26px; border-radius: 6px 6px 2px 2px; background: linear-gradient(180deg, #2bb36a, var(--green)); transition: filter .15s; }
.lapkeu-hari:not(.isi)::before { content: ""; position: absolute; bottom: 0; width: 100%; max-width: 26px; height: 3px; border-radius: 2px; background: #e6ece8; }
.lapkeu-hari:hover i { filter: brightness(1.12); }
.lapkeu-hari.kini i { background: linear-gradient(180deg, #e0b04a, #b8892b); }
.lapkeu-hari small { position: absolute; bottom: -18px; font-size: 10px; color: var(--muted); }
.lapkeu-dua { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.lapkeu-dua .panel { margin-bottom: 14px; }
.lapkeu-baris { display: grid; gap: 5px; padding: 10px 0; border-bottom: 1px dashed var(--line); }
.lapkeu-baris:last-child { border-bottom: 0; }
.lapkeu-baris-atas, .lapkeu-baris-bawah { display: flex; justify-content: space-between; gap: 8px; }
.lapkeu-baris-atas span { font-weight: 800; color: var(--green-deep); font-size: 13px; }
.lapkeu-baris-bawah { font-size: 12px; color: var(--muted); }
.lapkeu-baris-bawah b { color: #a33a2c; }
.lapkeu-baris-bawah b.beres { color: var(--green-deep); }
.lapkeu-tunggak { list-style: none; margin: 0; padding: 0; counter-reset: tunggak; }
.lapkeu-tunggak li { counter-increment: tunggak; }
.lapkeu-tunggak a { display: flex; align-items: center; gap: 10px; padding: 8px 6px; border-radius: 10px; color: inherit; }
.lapkeu-tunggak a:hover { background: #f5f8f6; }
.lapkeu-tunggak a::before { content: counter(tunggak); flex: none; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 800; background: #fbe9e6; color: #a33a2c; }
.lapkeu-tunggak span { flex: 1; min-width: 0; display: grid; }
.lapkeu-tunggak strong { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lapkeu-tunggak small { font-size: 12px; color: var(--muted); }
.lapkeu-tunggak b { color: #a33a2c; white-space: nowrap; font-size: 14px; }
.lapkeu-kosong { margin: 0; padding: 18px; text-align: center; border-radius: 12px; background: #f3f8f5; color: var(--green-deep); font-weight: 600; }
.lapkeu-tabel .kanan { text-align: right; white-space: nowrap; }
.lapkeu-tabel td { vertical-align: middle; }
.lapkeu-sub { display: block; font-size: 12px; }
.lapkeu-tabel tr.batal td { color: #9aa59f; }
.lapkeu-tabel tr.batal b, .lapkeu-tabel tr.batal strong { text-decoration: line-through; color: #9aa59f; }
.lapkeu-batal { font-style: normal; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 99px; background: #fbe9e6; color: #a33a2c; }
.lapkeu-tabel tfoot td { border-top: 2px solid var(--line); font-weight: 700; color: var(--green-deep); background: #f5f9f6; }
@media (max-width: 900px) {
  .lapkeu-kartu { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lapkeu-dua { grid-template-columns: 1fr; gap: 0; }
}
@media (max-width: 640px) {
  .lapkeu-isian { grid-template-columns: 1fr 1fr; }
  .lapkeu-isian .field:nth-child(3), .lapkeu-isian .btn { grid-column: span 2; }
  .lapkeu-kartu { grid-template-columns: 1fr; }
  .lapkeu-k b { font-size: 21px; }
  .lapkeu-batang { height: 130px; gap: 2px; }
}

@media print {
  body { background: white; }
  .sidebar, .topbar, .backdrop, .no-print { display: none !important; }
  .shell, .main { display: block; }
  .wrap { width: auto; margin: 0; }
  .receipt { border-radius: 0; }
  .flash { display: none !important; }
  .kw { width: 100%; border: 1px solid #9fb3a7; border-radius: 0; box-shadow: none; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

.guru-saring { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; }
.guru-saring button { border: 1px solid var(--line); background: #f7fbf8; color: #3d4d45; border-radius: 999px; padding: 7px 12px; font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; }
.guru-saring button.on { background: var(--green); border-color: var(--green); color: white; }
.guru-peran, .guru-mapel { display: flex; flex-wrap: wrap; gap: 6px; }
.guru-peran span, .guru-mapel span { font-size: 12px; font-weight: 700; padding: 3px 8px; border-radius: 999px; background: #e7f6ee; color: var(--green-deep); }
.guru-peran .piket { background: #f8f1dc; color: #8a6a22; }
.guru-peran .pimpinan { background: #e5f0fa; color: #1d5f96; }
.guru-peran .keuangan { background: #f3e8ff; color: #6b3d91; }
.guru-peran .wali_kelas { background: #fde8e4; color: #8d3b32; }
.guru-peran .kosong, .guru-mapel .kosong { background: transparent; color: var(--muted); font-weight: 500; padding-left: 0; }
.guru-pilih { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.guru-pilih label { display: inline-flex; align-items: center; gap: 8px; margin: 0; padding: 8px 12px; border: 1px solid var(--line); border-radius: 999px; cursor: pointer; color: var(--text); }
.guru-pilih input { width: auto; margin: 0; }
.guru-pilih label:has(input:checked) { background: #e7f6ee; border-color: #9fd3b2; color: var(--green-deep); font-weight: 700; }

.nilai-mapel { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin-bottom: 16px; }
.nilai-mapel a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 16px; background: linear-gradient(180deg, #ffffff, #f4f8f6); border: 1px solid var(--line); color: inherit; box-shadow: 0 4px 0 #dfe8e2; transition: transform .12s, border-color .12s, box-shadow .12s; }
.nilai-mapel a:hover { transform: translateY(-2px); border-color: #9fd3b2; box-shadow: 0 6px 0 #cfe3d6; }
.nilai-mapel a.on { background: linear-gradient(180deg, #2fbf6a, #128a45); border-color: #128a45; color: white; box-shadow: 0 4px 0 #0a6a33, 0 10px 16px rgba(18, 138, 69, .25); }
.nilai-mapel img { flex: none; width: 40px; height: 40px; object-fit: contain; filter: drop-shadow(0 3px 3px rgba(0, 0, 0, .12)); }
.nilai-mapel span { font-weight: 700; font-size: 13px; line-height: 1.25; }
.nilai-jenis { margin-bottom: 16px; }
.nilai-kosong { display: flex; align-items: center; gap: 16px; padding: 24px; background: linear-gradient(180deg, #ffffff, #f6fbf8); }
.nilai-kosong img { width: 72px; height: 72px; object-fit: contain; opacity: .9; }
.nilai-kosong h2 { margin: 0 0 4px; font-size: 18px; }
.nilai-kosong p { margin: 0; color: var(--muted); }
.nilai-judul { display: flex; align-items: center; gap: 12px; }
.nilai-judul img { width: 48px; height: 48px; object-fit: contain; }
.nilai-materi { max-width: 520px; }
.nilai-akhir { display: flex; align-items: center; gap: 10px; }
.nilai-akhir small { color: var(--muted); font-size: 12px; }
.nilai-skor { min-width: 44px; height: 32px; padding: 0 10px; border-radius: 10px; display: inline-grid; place-items: center; font-weight: 800; font-size: 15px; }
.nilai-skor.bagus { background: #e7f6ee; color: #0d5c32; }
.nilai-skor.cukup { background: #fff6d9; color: #7a5a0f; }
.nilai-skor.kurang { background: #fdecec; color: #8d2d2d; }
.nilai-input { max-width: 110px; margin-top: 0; text-align: center; font-weight: 700; font-size: 15px; border-radius: 12px; }
.nilai-input:focus { outline: 2px solid #b7e0c6; }
.nilai-input.kurang { border-color: #f0b4b4; background: #fff7f7; }
.nilai-input.salah { border-color: #d64545; }
.nilai-simpan { position: sticky; bottom: 0; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin: 14px -18px -18px; padding: 12px 18px; background: rgba(255, 255, 255, .96); border-top: 1px solid var(--line); border-radius: 0 0 16px 16px; }
@media (max-width: 640px) {
  .nilai-mapel { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nilai-kosong { flex-direction: column; text-align: center; }
}

.absen-ringkas { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin-bottom: 14px; padding: 12px 16px; border-radius: 14px; background: white; border: 1px solid var(--line); color: #3d4d45; }
.absen-ringkas b { font-size: 20px; color: var(--green-deep); }
.absen-bar { flex: 1 1 160px; height: 10px; border-radius: 999px; background: #edf3ef; overflow: hidden; }
.absen-bar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #2fbf6a, #128a45); }
.absen-sesi { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; margin-bottom: 16px; }
.absen-kartu { display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: 16px; background: white; border: 1px solid var(--line); color: inherit; box-shadow: 0 4px 0 #e4ece7; transition: transform .12s, border-color .12s, box-shadow .12s; }
.absen-kartu:hover { transform: translateY(-2px); border-color: #9fd3b2; }
.absen-kartu img { flex: none; width: 48px; height: 48px; object-fit: contain; }
.absen-kartu-teks { flex: 1; min-width: 0; display: grid; gap: 2px; }
.absen-kartu-teks b { font-size: 15px; color: #14261c; }
.absen-kartu-teks small { color: var(--muted); font-size: 12px; }
.absen-kartu-teks em { font-style: normal; font-size: 12px; font-weight: 700; }
.absen-kartu-aksi { flex: none; font-size: 13px; font-weight: 700; padding: 6px 12px; border-radius: 999px; }
.absen-kartu.belum { border-left: 5px solid #e89a0c; }
.absen-kartu.belum em { color: #a86a05; }
.absen-kartu.belum .absen-kartu-aksi { background: var(--green); color: white; }
.absen-kartu.selesai { border-left: 5px solid #2fbf6a; }
.absen-kartu.selesai em { color: #0d5c32; }
.absen-kartu.selesai .absen-kartu-aksi { background: #e7f6ee; color: #0d5c32; }
.absen-kartu.perbaikan { border-left: 5px solid #2f7fcf; }
.absen-kartu.perbaikan em { color: #1d5f96; }
.absen-kartu.perbaikan .absen-kartu-aksi { background: #e5f0fa; color: #1d5f96; }
.absen-kartu.on { outline: 3px solid #b7e0c6; }
.absen-tag-kunci { background: #f8f1dc !important; color: #8a6a22 !important; font-weight: 700; }
.absen-hitung { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 10px; }
.absen-hitung span { padding: 6px 12px; border-radius: 999px; font-size: 13px; font-weight: 600; }
.absen-hitung b { font-size: 16px; }
.absen-hitung .hadir { background: #e7f6ee; color: #0d5c32; }
.absen-hitung .sakit { background: #e5f0fa; color: #1d5f96; }
.absen-hitung .izin { background: #fff6d9; color: #7a5a0f; }
.absen-hitung .alpa { background: #fdecec; color: #8d2d2d; }
.absen-petunjuk { margin: 0 0 12px; padding: 10px 14px; border-radius: 12px; background: #f6fbf8; color: #3d5348; font-size: 14px; }
.absen-daftar { display: grid; }
.absen-baris { display: grid; grid-template-columns: 36px minmax(180px, 1fr) auto; align-items: center; gap: 12px; padding: 10px 6px; border-bottom: 1px solid #e6eee9; transition: background .12s; }
.absen-baris[data-status="Sakit"] { background: #f5f9fe; }
.absen-baris[data-status="Izin"] { background: #fffcf0; }
.absen-baris[data-status="Alpa"] { background: #fff7f7; }
.absen-pilih { display: flex; flex-wrap: wrap; gap: 6px; }
.absen-pilih label { margin: 0; cursor: pointer; }
.absen-pilih input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.absen-pilih span { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px 7px 7px; border-radius: 999px; border: 1px solid var(--line); background: white; font-size: 13px; font-weight: 700; color: #53635b; user-select: none; }
.absen-pilih i { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-size: 12px; background: #eef3f0; }
.absen-pilih input:focus-visible + span { outline: 2px solid #9fd3b2; }
.absen-pilih .hadir input:checked + span { background: #e7f6ee; border-color: #2fbf6a; color: #0d5c32; }
.absen-pilih .hadir input:checked + span i { background: #2fbf6a; color: white; }
.absen-pilih .sakit input:checked + span { background: #e5f0fa; border-color: #2f7fcf; color: #1d5f96; }
.absen-pilih .sakit input:checked + span i { background: #2f7fcf; color: white; }
.absen-pilih .izin input:checked + span { background: #fff6d9; border-color: #e89a0c; color: #7a5a0f; }
.absen-pilih .izin input:checked + span i { background: #e89a0c; color: white; }
.absen-pilih .alpa input:checked + span { background: #fdecec; border-color: #d64545; color: #8d2d2d; }
.absen-pilih .alpa input:checked + span i { background: #d64545; color: white; }
.absen-pilih input:disabled + span { cursor: default; opacity: .75; }
@media (max-width: 720px) {
  .absen-baris { grid-template-columns: 28px 1fr; }
  .absen-pilih { grid-column: 1 / -1; }
  .absen-pilih label { flex: 1; }
  .absen-pilih span { width: 100%; justify-content: center; }
}

.keu-unduh { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 10px; font-size: 13px; color: var(--muted, #6b7a72); }
.btn-unduh { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: 999px; font-size: 13px; font-weight: 700; text-decoration: none; border: 1px solid transparent; transition: transform .15s, box-shadow .15s; }
.btn-unduh:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(20, 60, 40, .12); }
.btn-unduh.lunas { background: #e7f6ee; color: #1e7b45; border-color: #bfe3cd; }
.btn-unduh.belum { background: #fde8e4; color: #b3261e; border-color: #f4c3bb; }
.btn-unduh.rekap { background: #1b7f4b; color: #fff; border-color: #1b7f4b; }
.lapkeu-unduh { margin: 0 0 14px; }
