:root {
    --ink: #12231c;
    --muted: #5b6d65;
    --line: #e3ece7;
    --bg: #f3f6f8;
    --card: #fff;
    --brand: #0c6b4d;
    --brand-dark: #084c37;
    --brand-soft: #e7f4ee;
    --sidebar: #0e2a22;
    --ok: #146c43;
    --danger: #9b2c2c;
    --warn: #c05621;
    --shadow: 0 10px 30px rgba(16, 35, 28, .06);
}
* { box-sizing: border-box; }
body {
    margin: 0;
    font-family: "Plus Jakarta Sans", ui-sans-serif, system-ui, sans-serif;
    background: var(--bg);
    color: var(--ink);
}
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
.shell { min-height: 100vh; display: grid; grid-template-columns: 248px 1fr; }
.side {
    background: linear-gradient(180deg, #0c241d, #0e2a22 40%, #12352b);
    color: #e7f3ed;
    padding: 20px 14px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.side a, .side button {
    display: block; width: 100%; text-align: left; border: 0; background: none;
    color: inherit; font: inherit; cursor: pointer; border-radius: 12px; padding: 10px 12px;
    text-decoration: none;
}
.side a:hover, .side a.active { background: rgba(255,255,255,.1); text-decoration: none; }
.brand { display: flex; gap: 10px; align-items: center; font-weight: 800; padding: 4px 8px 14px; text-decoration: none; color: inherit; }
.mark {
    width: 36px; height: 36px; border-radius: 11px;
    background: linear-gradient(160deg, var(--brand), #14936c);
    display: grid; place-items: center; font-size: 11px; font-weight: 800; color: #fff;
}
.side .muted { color: #9fb5ab; font-size: 12px; padding: 0 12px 12px; }
.main { padding: 28px 32px 56px; max-width: 1280px; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.card, .panel {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 20px;
    padding: 18px;
    box-shadow: var(--shadow);
}
.stat b { display: block; font-size: 1.55rem; letter-spacing: -.03em; }
.stat span { color: var(--muted); font-size: 13px; }
.top { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; margin-bottom: 22px; }
.top h1 { margin: 0 0 6px; font-size: 1.7rem; letter-spacing: -.03em; }
.toolbar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: flex-end; }
.stat-pill {
    display: flex; flex-direction: column; min-width: 92px;
    background: #fff; border: 1px solid var(--line); border-radius: 14px;
    padding: 8px 14px; box-shadow: var(--shadow);
}
.stat-pill b { font-size: 1.15rem; letter-spacing: -.03em; line-height: 1.2; }
.stat-pill span { color: var(--muted); font-size: 11px; font-weight: 700; }
.lede { color: var(--muted); margin: 10px 0 0; font-size: 14px; }
.table-panel { padding: 0; overflow: hidden; }
.table-head {
    display: flex; justify-content: space-between; gap: 12px; align-items: center;
    padding: 16px 18px; border-bottom: 1px solid var(--line);
}
.table-head h2 { margin: 0; font-size: 1rem; }
.table-search {
    min-width: 220px; min-height: 40px; border-radius: 12px; border: 1px solid var(--line);
    padding: 8px 12px; font: inherit; background: #f7faf8;
}
.table-search:focus { outline: 0; border-color: var(--brand); background: #fff; box-shadow: 0 0 0 4px rgba(12,107,77,.12); }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
.data-table th, .data-table td { text-align: left; padding: 11px 16px; border-bottom: 1px solid var(--line); font-size: 13.5px; vertical-align: middle; }
.data-table th {
    color: var(--muted); font-size: 11px; font-weight: 800; text-transform: uppercase;
    letter-spacing: .05em; background: #f7faf8; position: sticky; top: 0; z-index: 1;
}
.data-table tbody tr:hover td { background: #f8fbf9; }
.data-table tbody tr.group-row:hover td { background: #eef6f2; }
.data-table tbody tr.group-row td { background: #eef6f2; }
.data-table .cell-name { min-width: 160px; }
.data-table .cell-mono { font-variant-numeric: tabular-nums; letter-spacing: .02em; color: #3d4f48; }
.group-row td {
    background: #eef6f2; border-bottom: 1px solid #d7e6de;
    padding: 9px 16px; font-size: 12px;
}
.group-row strong { color: var(--brand-dark); margin-right: 8px; }
.group-row span { color: var(--muted); font-weight: 600; }
.group-label { margin: 14px 0 6px; font-size: 12px; font-weight: 800; color: var(--brand-dark); }
.forms-block { margin-top: 18px; }
.table-panel .empty { padding: 24px 18px; }
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    min-height: 42px; padding: 0 16px; border-radius: 12px;
    border: 1px solid var(--line); background: #fff; font: inherit; cursor: pointer; font-weight: 700;
    text-decoration: none; color: var(--ink);
}
.btn:hover { background: var(--brand-soft); text-decoration: none; }
.btn-primary { background: var(--brand); color: #fff; border: 0; }
.btn-primary:hover { background: var(--brand-dark); }
.btn-ghost { background: var(--brand-soft); color: var(--brand-dark); border: 0; }
.chip {
    display: inline-flex; align-items: center; border-radius: 999px;
    padding: 4px 10px; font-size: 12px; font-weight: 800;
    background: #eef2f6; color: #4a5568;
}
.chip-green { background: #e7f6ee; color: var(--ok); }
.chip-red { background: #fff1f1; color: var(--danger); }
.chip-orange { background: #fff4e8; color: var(--warn); }
.auth {
    min-height: 100vh; display: grid; place-items: center; padding: 24px;
    background:
        radial-gradient(700px 320px at 80% 0%, rgba(20,147,108,.35), transparent 60%),
        linear-gradient(180deg, #0e2a22, #184c3c);
}
.auth-card {
    width: min(440px, 100%); background: #fff; border-radius: 24px; padding: 28px;
    box-shadow: 0 24px 60px rgba(0,0,0,.18);
}
.auth-card h1 { margin: 0 0 6px; font-size: 1.6rem; }
.auth-card p { color: var(--muted); margin: 0 0 18px; }
.auth-card label, .field label { display: block; font-size: 13px; font-weight: 700; margin: 12px 0 6px; }
.auth-card input, .field input, .field select, .field textarea {
    width: 100%; min-height: 48px; border-radius: 14px; border: 1px solid var(--line);
    padding: 10px 14px; font: inherit; background: #f7faf8;
}
.auth-card input:focus, .field input:focus, .field select:focus, .field textarea:focus {
    outline: 0; border-color: var(--brand); box-shadow: 0 0 0 4px rgba(12,107,77,.12); background: #fff;
}
.field textarea { min-height: 120px; resize: vertical; }
.errors { background: #fff1f1; color: var(--danger); border-radius: 14px; padding: 12px; margin-bottom: 12px; font-weight: 600; }
.ok { background: #edf8f1; color: var(--ok); border-radius: 14px; padding: 12px; margin-bottom: 12px; font-weight: 600; }
.empty { color: var(--muted); margin: 0; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 14px; }
.form-grid .full { grid-column: 1 / -1; }
.ops-form { margin-top: 4px; }
.composer {
    background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 8px 18px 18px;
    box-shadow: var(--shadow); margin-bottom: 16px;
}
.composer summary {
    cursor: pointer; font-weight: 800; padding: 14px 0; list-style: none;
}
.composer summary::after {
    content: "Buka"; float: right; font-size: 12px; font-weight: 700; color: var(--brand);
}
.composer[open] summary::after { content: "Tutup"; }
.composer summary::-webkit-details-marker { display: none; }
.page-kicker { font-size: 13px; font-weight: 700; color: var(--brand); margin: 0 0 4px; }
.data-cards { display: none; }
@media (max-width: 800px) {
    .shell { grid-template-columns: 1fr; }
    .side { flex-direction: row; flex-wrap: wrap; }
    .grid { grid-template-columns: 1fr 1fr; }
    .form-grid { grid-template-columns: 1fr; }
    .table-wrap { display: none; }
    .data-cards { display: grid; gap: 10px; padding: 12px 12px 16px; }
    .top { flex-direction: column; }
    .toolbar { justify-content: flex-start; }
    .table-head { flex-direction: column; align-items: stretch; }
    .table-search { min-width: 0; width: 100%; }
}
.record { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 14px 16px; }
.record b { display: block; margin-bottom: 8px; }
.record .meta { color: var(--muted); font-size: 13px; margin: 0 0 4px; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.actions form { margin: 0; }
