@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');
* { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --navy: #1a2340; --navy2: #232e52; --emas: #d4a73b;
  --ink: #1c2333; --muted: #64708a; --line: #e5e9f2;
  --hijau: #16a34a; --merah: #dc2626; --kuning: #d97706;
}
body {
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif; color: var(--ink);
  background: linear-gradient(160deg, #eef2fb 0%, #f7f8fc 45%, #eef6f1 100%);
  min-height: 100vh;
}
.layout { display: flex; min-height: 100vh; }
.sidebar {
  width: 232px; flex: 0 0 232px; background: linear-gradient(180deg, #1a2340, #141b33);
  color: #cdd5ea; padding: 20px 14px; display: flex; flex-direction: column; gap: 4px;
}
.brand { display: flex; align-items: center; gap: 10px; padding: 6px 10px 18px; }
.brand .logo { width: 38px; height: 38px; border-radius: 12px; background: linear-gradient(135deg, #d4a73b, #f0ca6a); display: grid; place-items: center; font-size: 20px; }
.brand b { color: #fff; font-size: 17px; letter-spacing: .2px; }
.brand small { display: block; color: #8d99b8; font-size: 10.5px; font-weight: 500; }
.nav a {
  display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px;
  color: #cdd5ea; text-decoration: none; font-size: 14px; font-weight: 600;
}
.nav a:hover { background: rgba(255,255,255,.07); }
.nav a.active { background: linear-gradient(135deg, #d4a73b, #c89a2e); color: #1a2340; }
.side-foot { margin-top: auto; font-size: 11px; color: #6d7994; padding: 10px 12px; line-height: 1.5; }
.main { flex: 1; padding: 22px 26px; max-width: 1180px; }
.topbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; gap: 12px; flex-wrap: wrap; }
.topbar h1 { font-size: 21px; font-weight: 800; color: var(--navy); }
.topbar .sub { color: var(--muted); font-size: 13px; margin-top: 2px; }
.userchip { display: flex; align-items: center; gap: 10px; background: #fff; border: 1px solid var(--line); padding: 7px 12px; border-radius: 999px; font-size: 13px; font-weight: 600; }
.userchip button { border: 0; background: none; color: var(--merah); font-weight: 700; cursor: pointer; font-size: 12.5px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 18px; box-shadow: 0 1px 2px rgba(20,27,51,.04); }
.grid { display: grid; gap: 14px; }
.stats { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
.stat .n { font-size: 26px; font-weight: 800; color: var(--navy); }
.stat .l { font-size: 12.5px; color: var(--muted); font-weight: 600; margin-top: 2px; }
.stat .ic { font-size: 20px; margin-bottom: 6px; }
h2.sec { font-size: 15px; font-weight: 800; color: var(--navy); margin: 20px 0 10px; }
table.tbl { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.tbl th { text-align: left; color: var(--muted); font-size: 11.5px; text-transform: uppercase; letter-spacing: .4px; padding: 8px 10px; border-bottom: 1px solid var(--line); }
.tbl td { padding: 9px 10px; border-bottom: 1px solid #f0f2f8; }
.tbl tr:last-child td { border-bottom: 0; }
.btn { display: inline-flex; align-items: center; gap: 7px; border: 0; cursor: pointer; border-radius: 12px; padding: 10px 16px; font-family: inherit; font-size: 13.5px; font-weight: 700; text-decoration: none; }
.btn-p { background: var(--navy); color: #fff; }
.btn-p:hover { background: var(--navy2); }
.btn-g { background: var(--hijau); color: #fff; }
.btn-e { background: linear-gradient(135deg, #d4a73b, #c89a2e); color: #1a2340; }
.btn-o { background: #fff; border: 1.5px solid var(--line); color: var(--ink); }
.btn-sm { padding: 7px 12px; font-size: 12.5px; border-radius: 10px; }
input, select { font-family: inherit; font-size: 14px; padding: 10px 12px; border: 1.5px solid var(--line); border-radius: 12px; background: #fff; color: var(--ink); outline: none; width: 100%; }
input:focus, select:focus { border-color: var(--navy); }
label.f { display: block; font-size: 12px; font-weight: 700; color: var(--muted); margin: 10px 0 5px; }
.badge { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 11.5px; font-weight: 700; }
.b-hijau { background: #e7f6ec; color: #15803d; }
.b-biru { background: #e8edfb; color: #3452b4; }
.b-abu { background: #eef1f6; color: #64708a; }
.b-kuning { background: #fdf3e2; color: #b45309; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.muted { color: var(--muted); font-size: 12.5px; }
.bar { height: 9px; border-radius: 999px; background: #eef1f6; overflow: hidden; }
.bar > i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, #d4a73b, #1a2340); }
.empty { text-align: center; color: var(--muted); padding: 26px 10px; font-size: 13.5px; }
@media (max-width: 860px) {
  .layout { flex-direction: column; }
  .sidebar { width: 100%; flex: none; flex-direction: row; align-items: center; overflow-x: auto; padding: 10px 12px; gap: 8px; }
  .brand { padding: 0 8px 0 0; } .brand small { display: none; }
  .nav { display: flex; gap: 6px; } .nav a { white-space: nowrap; padding: 8px 11px; font-size: 13px; }
  .side-foot { display: none; }
  .main { padding: 16px 14px; }
}
