/* Hikrona v1 — sistem desain dashboard & halaman publik (sesuai desain hikrona.com v1).
   Biru #004AAD = brand/aksi, hijau #00BF63 = sukses/hadir, teks navy #0E1A2B. Font: Plus Jakarta Sans. */

@font-face { font-family: 'Plus Jakarta Sans'; font-weight: 400; font-display: swap; src: url(/fonts/plus-jakarta-sans-latin-400-normal.woff2) format('woff2'); }
@font-face { font-family: 'Plus Jakarta Sans'; font-weight: 500; font-display: swap; src: url(/fonts/plus-jakarta-sans-latin-500-normal.woff2) format('woff2'); }
@font-face { font-family: 'Plus Jakarta Sans'; font-weight: 600; font-display: swap; src: url(/fonts/plus-jakarta-sans-latin-600-normal.woff2) format('woff2'); }
@font-face { font-family: 'Plus Jakarta Sans'; font-weight: 700; font-display: swap; src: url(/fonts/plus-jakarta-sans-latin-700-normal.woff2) format('woff2'); }
@font-face { font-family: 'Plus Jakarta Sans'; font-weight: 800; font-display: swap; src: url(/fonts/plus-jakarta-sans-latin-800-normal.woff2) format('woff2'); }

:root {
    --blue: #004AAD; --blue-d: #00357D; --blue-soft: #EAF1FC; --blue-mid: #7FB0EE; --blue-line: #9DB2D0;
    --green: #00BF63; --green-d: #00A354; --green-ink: #06301B; --green-soft: #E6F8EF; --green-text: #005C30; --mint: #7FE3B0;
    --orange: #F2B544; --orange-soft: #FFF1DD; --orange-text: #8A4B00;
    --red: #B42318; --red-soft: #FDECEA; --purple-soft: #F1ECFB; --purple-text: #5B3AA8;
    --ink: #0E1A2B; --ink-2: #2B3546; --ink-3: #3D4759; --muted: #5A6478; --muted-2: #6B7487;
    --line: #E4E9F2; --line-2: #D5DCE8; --track: #EEF1F6; --bg: #F4F6FA; --soft: #F3F7FD; --soft-2: #F7F9FC;
    --radius: 16px; --font: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 14px/1.5 var(--font); -webkit-font-smoothing: antialiased; }
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-d); }
img { max-width: 100%; }
h1, h2, h3, h4 { margin: 0; letter-spacing: -0.01em; }
p { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.ic { flex: none; display: block; }
[hidden] { display: none !important; }

/* ── Layout dashboard ─────────────────────────────────────────── */
.app { display: flex; min-height: 100vh; }
.sb { width: 248px; flex: none; background: #fff; border-right: 1px solid var(--line); display: flex; flex-direction: column; gap: 6px; padding: 20px 14px 24px; position: sticky; top: 0; height: 100vh; overflow-y: auto; scrollbar-width: thin; }
.sb-brand { display: flex; align-items: center; gap: 12px; color: var(--ink); padding: 4px 8px 18px; }
.sb-brand img, .sb-brand .logo { width: 40px; height: 40px; border-radius: 11px; object-fit: cover; }
.sb-brand strong { display: block; font-size: 17px; font-weight: 800; letter-spacing: -0.01em; line-height: 1.25; }
.sb-brand small { display: block; color: var(--muted); font-size: 12px; line-height: 1.25; }
.sb-group { display: flex; flex-direction: column; gap: 2px; padding-bottom: 8px; }
.sb-label { font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted-2); padding: 8px 10px 4px; }
.sb-link { display: flex; align-items: center; gap: 12px; min-height: 40px; padding: 0 10px; border-radius: 10px; color: var(--ink-2); font-weight: 500; }
.sb-link:hover { background: var(--soft-2); color: var(--ink); }
.sb-link.on { background: var(--blue-soft); color: var(--blue); font-weight: 700; }
.sb-link > span:not(.sb-badge) { flex: 1; line-height: 1.3; }
.sb-badge { background: var(--green); color: var(--green-ink); font-size: 11px; font-weight: 800; padding: 1px 8px; border-radius: 99px; }
.sb-logout { display: flex; align-items: center; gap: 12px; min-height: 40px; padding: 10px 10px 0; margin-top: 8px; border: 0; border-top: 1px solid var(--line); background: none; font-weight: 600; color: var(--red); cursor: pointer; width: 100%; text-align: left; }
.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 32px; background: #fff; border-bottom: 1px solid var(--line); }
.top-title { display: flex; align-items: center; gap: 12px; min-width: 0; }
.top h1 { font-size: 22px; font-weight: 700; }
.top .crumb { color: var(--muted); font-size: 13px; }
.top .crumb a { color: var(--muted); }
.top .sub { color: var(--muted); font-size: 13px; }
.top-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.burger { display: none; width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--line); background: #fff; place-items: center; cursor: pointer; }
.page { padding: 28px 32px 40px; display: flex; flex-direction: column; gap: 24px; }
.me { display: flex; align-items: center; gap: 10px; color: var(--ink); }
.me strong { display: block; font-size: 14px; line-height: 1.3; }
.me small { display: block; color: var(--muted); font-size: 12px; line-height: 1.3; }
.icon-btn { position: relative; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line); background: #fff; display: grid; place-items: center; cursor: pointer; color: var(--ink); }
.icon-btn .dot { position: absolute; top: 10px; right: 11px; width: 8px; height: 8px; border-radius: 50%; background: var(--green); }
.searchbox { display: flex; align-items: center; gap: 8px; background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 0 14px; height: 44px; min-width: 240px; color: var(--muted); }
.searchbox input { border: 0; background: transparent; outline: none; flex: 1; min-width: 0; color: var(--ink); }
.searchbox.white { background: #fff; }

/* ── Kartu & grid ────────────────────────────────────────────── */
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.card.tight { gap: 12px; padding: 18px; }
.card.flush { padding: 0; overflow: hidden; }
.card-h { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; }
.card-h h3, .card h3 { font-size: 16px; font-weight: 700; }
.card-h .more { font-weight: 600; font-size: 13px; }
.card-sub { color: var(--muted); font-size: 13px; margin-top: 2px; }
.split { display: flex; flex-wrap: wrap; gap: 16px; align-items: flex-start; }
.split > .grow { flex: 2 1 520px; min-width: 0; }
.split > .side { flex: 1 1 320px; min-width: 0; }
.split > .half { flex: 1 1 380px; min-width: 0; }
.split > .narrow { flex: 1 1 300px; max-width: 420px; min-width: 0; }
.stack { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.stack.sm { gap: 10px; }
.stack.xs { gap: 6px; }
.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(var(--min, 300px), 1fr)); }
.row { display: flex; align-items: center; gap: 10px; min-width: 0; }
.row.wrap { flex-wrap: wrap; }
.row.between { justify-content: space-between; }
.row.top { align-items: flex-start; }
.grow-1 { flex: 1; min-width: 0; }
.hero { background: var(--blue); color: #fff; border-radius: 20px; padding: 26px 28px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 20px; position: relative; overflow: hidden; }
.hero .eyebrow { font-size: 12px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; opacity: 0.85; }
.hero h2 { font-size: 26px; font-weight: 700; }
.hero p { opacity: 0.9; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.stat .lbl { color: var(--muted); font-weight: 500; }
.stat .val { font-size: 26px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.15; }
.stat .val.lg { font-size: 30px; }
.stat .note { color: var(--muted); font-size: 13px; padding: 0; display: block; border-radius: 0; }
.stat .tint { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; }
.stat.blue { background: var(--blue); border-color: var(--blue); color: #fff; }
.stat.blue .lbl, .stat.blue .note { color: #fff; opacity: .9; }
.t-blue { background: var(--blue-soft); color: var(--blue); }
.t-green { background: var(--green-soft); color: var(--green-d); }
.t-orange { background: var(--orange-soft); color: var(--orange-text); }
.t-red { background: var(--red-soft); color: var(--red); }
.t-purple { background: var(--purple-soft); color: var(--purple-text); }
.t-gray { background: var(--track); color: var(--ink-3); }
.bar { height: 6px; border-radius: 99px; background: var(--track); overflow: hidden; }
.bar > i { display: block; height: 100%; border-radius: 99px; background: var(--blue); }
.bar.green > i { background: var(--green); }
.bar.lg { height: 14px; display: flex; }
.bar.lg > i { border-radius: 0; }

/* ── Tombol ───────────────────────────────────────────────────── */
.btn { height: 44px; padding: 0 18px; border-radius: 12px; border: 1px solid var(--line); background: #fff; color: var(--ink); font-weight: 600; font-size: 14px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; cursor: pointer; white-space: nowrap; text-align: center; line-height: 1.2; }
.btn:hover { border-color: var(--line-2); color: var(--ink); background: var(--soft-2); }
.btn-primary { background: var(--blue); border-color: var(--blue); color: #fff; font-weight: 700; }
.btn-primary:hover { background: var(--blue-d); border-color: var(--blue-d); color: #fff; }
.btn-green { background: var(--green); border-color: var(--green); color: var(--green-ink); font-weight: 700; }
.btn-green:hover { background: var(--green-d); border-color: var(--green-d); color: var(--green-ink); }
.btn-white { background: #fff; border-color: #fff; color: var(--blue); font-weight: 700; }
.btn-white:hover { background: #F2F6FD; color: var(--blue-d); }
.btn-outline { border: 1.5px solid var(--blue); color: var(--blue); font-weight: 700; background: #fff; }
.btn-danger { color: var(--red); font-weight: 700; }
.btn-danger:hover { color: var(--red); background: var(--red-soft); border-color: #F5C6C1; }
.btn-dashed { height: 36px; padding: 0 12px; border-radius: 10px; border: 1px dashed var(--blue-line); background: var(--soft-2); font-size: 13px; color: var(--blue); }
.btn-sm { height: 38px; padding: 0 14px; border-radius: 10px; font-size: 13px; }
.btn-xs { height: 32px; padding: 0 11px; border-radius: 9px; font-size: 12px; }
.btn-lg { height: 48px; padding: 0 22px; }
.btn-block { width: 100%; }
.btn-icon { width: 40px; padding: 0; border-radius: 10px; }
.btn:disabled, .btn[aria-disabled=true] { opacity: .55; cursor: not-allowed; }
.link-btn { border: 0; background: none; padding: 0; color: var(--blue); font-weight: 600; cursor: pointer; }
.link-btn.danger { color: var(--red); }

/* ── Form ─────────────────────────────────────────────────────── */
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field > label, .label { font-size: 14px; font-weight: 600; color: var(--ink); }
.field .hint, .hint { color: var(--muted); font-size: 12px; }
.input, .select, .textarea { width: 100%; min-width: 0; height: 44px; border-radius: 10px; border: 1px solid var(--line-2); background: #fff; padding: 0 12px; font-weight: 500; font-size: 14px; color: var(--ink); }
.textarea { height: auto; min-height: 96px; padding: 10px 12px; resize: vertical; line-height: 1.5; }
.select { appearance: none; padding-right: 34px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%230E1A2B' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 12px center; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(0, 74, 173, .12); }
.input.big { height: 48px; border-radius: 12px; border: 1.5px solid var(--blue); font-weight: 800; font-size: 20px; color: var(--blue); }
.input.mini { width: 60px; height: 38px; border-radius: 8px; text-align: center; font-weight: 600; padding: 0 6px; }
.input-icon { position: relative; display: flex; align-items: center; }
.input-icon > .ic { position: absolute; left: 14px; color: var(--muted); pointer-events: none; }
.input-icon .input { padding-left: 42px; height: 52px; border-radius: 12px; font-weight: 600; font-size: 15px; }
.input-icon .suffix { position: absolute; right: 8px; }
.form-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(var(--min, 200px), 1fr)); }
.check { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-weight: 500; }
.check input { width: 18px; height: 18px; accent-color: var(--blue); flex: none; }
.err { color: var(--red); font-size: 12px; font-weight: 600; }
.is-invalid { border-color: #E8A39C !important; }
.drop { border: 1.5px dashed var(--line-2); border-radius: 14px; padding: 16px 18px; display: flex; align-items: center; gap: 12px; background: #fff; cursor: pointer; color: var(--ink); }
.drop input[type=file] { display: none; }
.drop:hover { border-color: var(--blue-line); background: var(--soft-2); }
.toggle { position: relative; width: 44px; height: 26px; flex: none; display: inline-block; }
.toggle input { opacity: 0; width: 0; height: 0; position: absolute; }
.toggle span { position: absolute; inset: 0; background: var(--line-2); border-radius: 99px; transition: .15s; cursor: pointer; }
.toggle span::after { content: ''; position: absolute; left: 3px; top: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(14, 26, 43, .25); transition: .15s; }
.toggle input:checked + span { background: var(--green); }
.toggle input:checked + span::after { transform: translateX(18px); }
.toggle input:disabled + span { opacity: .5; cursor: not-allowed; }

/* Segmented tabs & chips */
.seg { display: inline-flex; gap: 4px; background: var(--bg); border-radius: 12px; padding: 4px; flex-wrap: wrap; }
.seg > a, .seg > button, .seg > label { border: 0; background: transparent; height: 38px; padding: 0 16px; border-radius: 9px; font-weight: 600; color: var(--ink-3); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; white-space: nowrap; }
.seg > .on, .seg > label:has(input:checked) { background: #fff; color: var(--blue); box-shadow: 0 1px 3px rgba(14, 26, 43, .08); }
.seg > label input { display: none; }
.seg.full { display: flex; }
.seg.full > * { flex: 1; }
.seg.solid > .on { background: var(--blue); color: #fff; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { height: 36px; padding: 0 14px; border-radius: 99px; border: 1px solid var(--line-2); background: #fff; font-weight: 600; font-size: 13px; color: var(--ink-2); display: inline-flex; align-items: center; gap: 6px; cursor: pointer; white-space: nowrap; }
.chip:hover { border-color: var(--blue-line); color: var(--ink); }
.chip.on, .chip:has(input:checked) { background: var(--blue); border-color: var(--blue); color: #fff; }
.chip input { display: none; }
.chip.lg { height: 44px; padding: 0 18px; font-size: 14px; }
.chip.dark.on { background: var(--ink); border-color: var(--ink); }

/* Badge & avatar */
.badge { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 99px; white-space: nowrap; line-height: 1.5; background: var(--track); color: var(--ink-3); }
.badge.blue { background: var(--blue-soft); color: var(--blue-d); }
.badge.green { background: var(--green-soft); color: var(--green-text); }
.badge.orange { background: var(--orange-soft); color: var(--orange-text); }
.badge.red { background: var(--red-soft); color: var(--red); }
.badge.purple { background: var(--purple-soft); color: var(--purple-text); }
.badge.solid { background: var(--blue); color: #fff; }
.badge.solid-green { background: var(--green); color: var(--green-ink); }
.badge.sq { border-radius: 8px; min-width: 30px; justify-content: center; font-weight: 800; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); flex: none; display: inline-block; }
.av { width: 40px; height: 40px; border-radius: 50%; background: var(--blue-soft); color: var(--blue); display: grid; place-items: center; font-weight: 700; font-size: 13px; flex: none; overflow: hidden; }
.av img { width: 100%; height: 100%; object-fit: cover; }
.av.sm { width: 32px; height: 32px; font-size: 12px; }
.av.lg { width: 56px; height: 56px; font-size: 18px; background: var(--blue); color: #fff; }
.av.solid { background: var(--blue); color: #fff; }
.av.green { background: var(--green-soft); color: var(--green-text); }
.av.sq { border-radius: 10px; }
.avs { display: flex; }
.avs .av { width: 30px; height: 30px; font-size: 11px; border: 2px solid #fff; margin-left: -8px; }
.avs .av:first-child { margin-left: 0; }

/* Daftar & baris */
.items { display: flex; flex-direction: column; gap: 8px; }
.item { display: flex; align-items: center; gap: 12px; padding: 12px; border: 1px solid var(--line); border-radius: 12px; color: var(--ink); background: #fff; min-width: 0; text-align: left; width: 100%; }
a.item:hover, button.item:hover { border-color: var(--line-2); background: var(--soft-2); color: var(--ink); }
.item.on { border: 1.5px solid var(--blue); background: var(--blue-soft); }
.item .t { font-weight: 700; font-size: 14px; display: block; }
.item .s { color: var(--muted); font-size: 12px; display: block; }
.item .end { margin-left: auto; text-align: right; flex: none; }
button.item { font: inherit; cursor: pointer; }
.plain { border: 0; padding: 12px 6px; border-radius: 12px; }
.divided > * + * { border-top: 1px solid var(--line); }
.kv { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px 24px; }
.kv .k { color: var(--muted); font-size: 13px; display: block; }
.kv .v { font-weight: 700; font-size: 15px; display: block; word-break: break-word; }
.kv .full { grid-column: 1 / -1; }
.lines > div { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; }
.lines .k { color: var(--muted); }
.lines .v { font-weight: 700; text-align: right; }
.eyebrow-label { font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--blue); }
.eyebrow-label.green { color: var(--green-text); }
.eyebrow-label.red { color: var(--red); }
.eyebrow-label.muted { color: var(--muted-2); }
.sep { border: 0; border-top: 1px solid var(--line); margin: 0; width: 100%; }
.sep.dashed { border-top-style: dashed; }

/* Tabel */
.tbl-wrap { border: 1px solid var(--line); border-radius: 14px; overflow: auto; background: #fff; }
.tbl { width: 100%; border-collapse: collapse; min-width: 640px; }
.tbl th { text-align: left; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); background: var(--soft-2); padding: 14px; white-space: nowrap; }
.tbl td { padding: 14px; border-top: 1px solid var(--line); vertical-align: middle; }
.tbl tr.on td { background: var(--soft); }
.tbl td .s { color: var(--muted); font-size: 12px; display: block; }
.tbl td.num, .tbl th.num { text-align: right; }
.tbl.compact td { padding: 10px 14px; }
.mono { font-family: ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace; font-weight: 600; letter-spacing: .02em; }

/* Kotak info */
.note { border-radius: 12px; padding: 12px 14px; font-size: 13px; display: flex; gap: 10px; align-items: flex-start; line-height: 1.5; }
.note.blue { background: var(--blue-soft); color: var(--blue-d); }
.note.green { background: var(--green-soft); color: var(--green-text); }
.note.orange { background: var(--orange-soft); color: var(--orange-text); }
.note.red { background: var(--red-soft); color: var(--red); }
.flash { margin: 20px 32px 0; padding: 14px 18px; border-radius: 14px; font-weight: 600; display: flex; gap: 10px; align-items: flex-start; }
.flash.ok { background: var(--green-soft); color: var(--green-text); }
.flash.bad { background: var(--red-soft); color: var(--red); }
.flash .secret { font-family: ui-monospace, Menlo, monospace; background: #fff; padding: 2px 8px; border-radius: 6px; color: var(--ink); }
.empty { text-align: center; color: var(--muted); padding: 28px 16px; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.empty .ic { color: var(--blue-line); }
.empty b { color: var(--ink); }
.muted { color: var(--muted); }
.small { font-size: 12px; }
.strong { font-weight: 700; }
.blue { color: var(--blue); }
.green { color: var(--green-d); }
.red { color: var(--red); }
.right { text-align: right; }
.nowrap { white-space: nowrap; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Dialog */
dialog.modal { border: 0; border-radius: 20px; padding: 0; width: min(560px, calc(100vw - 32px)); max-height: calc(100vh - 48px); color: var(--ink); box-shadow: 0 30px 80px rgba(14, 26, 43, .25); }
dialog.modal::backdrop { background: rgba(14, 26, 43, .45); }
dialog.modal .modal-b { padding: 24px; display: flex; flex-direction: column; gap: 16px; }
dialog.modal .modal-h { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
dialog.modal .modal-h h3 { font-size: 18px; font-weight: 700; }
dialog.modal.wide { width: min(860px, calc(100vw - 32px)); }

/* Kalender bulan */
.cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.cal .dow { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); padding: 0 8px 4px; }
.cal .day { min-height: 96px; border: 1px solid var(--line); border-radius: 12px; padding: 8px; display: flex; flex-direction: column; gap: 4px; background: #fff; min-width: 0; }
.cal .day.out { background: transparent; border-color: transparent; }
.cal .day.weekend .n { color: #C2410C; }
.cal .day.weekend { background: var(--soft-2); }
.cal .day .n { font-weight: 600; font-size: 13px; }
.cal .day.today .n { width: 26px; height: 26px; border-radius: 50%; background: var(--blue); color: #fff; display: grid; place-items: center; font-weight: 700; }
.cal .ev { font-size: 11.5px; font-weight: 600; padding: 3px 7px; border-radius: 6px; background: var(--blue-soft); color: var(--blue-d); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cal .ev.kelas { background: var(--green-soft); color: var(--green-text); }
.cal .ev.libur { background: var(--red-soft); color: var(--red); }

/* Peta geo-tagging (ilustrasi radius; koordinat asli disimpan per gerbang) */
.geo-map { position: relative; height: 230px; border-radius: 14px; overflow: hidden; background: #EAF0E4; background-image: linear-gradient(#DDE6D3 1px, transparent 1px), linear-gradient(90deg, #DDE6D3 1px, transparent 1px); background-size: 28px 28px; }
.geo-map .road-h { position: absolute; left: 0; right: 0; top: 62%; height: 18px; background: #F7F8F3; }
.geo-map .road-v { position: absolute; top: 0; bottom: 0; left: 64%; width: 18px; background: #F7F8F3; }
.geo-map .radius { position: absolute; left: 50%; top: 48%; width: 170px; height: 170px; transform: translate(-50%, -50%); border-radius: 50%; border: 2px dashed var(--blue); background: rgba(0, 74, 173, .12); }
.geo-map .bld { position: absolute; left: 50%; top: 48%; width: 58px; height: 40px; transform: translate(-50%, -50%); background: #D5DFEE; border: 1px solid #B8C7DD; border-radius: 6px; }
.geo-map .pin { position: absolute; left: 50%; top: 48%; transform: translate(-50%, -100%); color: var(--blue); }
.geo-map .tag { position: absolute; left: 12px; bottom: 12px; background: #fff; border-radius: 10px; padding: 6px 10px; font-size: 12px; font-weight: 700; box-shadow: 0 6px 14px rgba(14, 26, 43, .12); }

/* Layout bangku */
.seats { background: var(--soft); border-radius: 16px; padding: 18px; display: flex; flex-direction: column; align-items: center; gap: 14px; overflow-x: auto; }
.seats .board { background: var(--ink); color: #fff; font-weight: 700; font-size: 12px; letter-spacing: .1em; padding: 9px 38px; border-radius: 8px; }
.seat-grid { display: grid; gap: 10px; grid-template-columns: repeat(var(--cols, 6), 64px); }
.seat { width: 64px; height: 52px; border-radius: 10px; border: 1.5px solid var(--blue-line); background: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; font-weight: 800; font-size: 13px; color: var(--ink); cursor: grab; user-select: none; line-height: 1.1; }
.seat small { font-weight: 500; font-size: 10.5px; color: var(--muted); }
.seat.empty { border-style: dashed; border-color: var(--line-2); background: transparent; color: var(--muted); font-weight: 500; font-size: 11px; }
.seat.drag-over { border-color: var(--blue); background: var(--blue-soft); }
.seat.st-hadir { background: var(--green); border-color: var(--green); color: #fff; }
.seat.st-sakit, .seat.st-izin { background: var(--blue); border-color: var(--blue); color: #fff; }
.seat.st-terlambat { background: var(--orange); border-color: var(--orange); color: #fff; }
.seat.st-alpa { background: var(--red); border-color: var(--red); color: #fff; }

/* Jadwal mingguan */
.timetable { display: grid; gap: 6px; min-width: 760px; grid-template-columns: 78px repeat(var(--days, 5), minmax(120px, 1fr)); }
.timetable .h { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); padding: 6px 10px; }
.timetable .p { padding: 10px 6px; color: var(--muted); font-size: 12px; }
.timetable .p b { display: block; color: var(--ink); font-size: 14px; font-weight: 600; }
.slot { border-radius: 12px; padding: 10px; min-height: 64px; display: flex; flex-direction: column; justify-content: center; gap: 2px; border: 0; text-align: left; cursor: pointer; font: inherit; width: 100%; }
.slot b { font-size: 14px; }
.slot span { font-size: 12px; opacity: .8; }
.slot.umum { background: #EEF3FC; color: #0F2F6B; }
.slot.produktif { background: #E8F7EE; color: #0B5A31; }
.slot.bahasa { background: #F2EEFB; color: #4B2C91; }
.slot.istirahat { background: var(--track); color: var(--ink-3); cursor: default; }
.slot.kosong { background: #fff; border: 1.5px dashed var(--line-2); color: var(--muted); }
.slot.on { outline: 2px solid var(--blue); outline-offset: 1px; }

/* Chat */
.chat { display: flex; flex-direction: column; min-height: 560px; height: calc(100vh - 210px); }
.chat-h { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.chat-body { flex: 1; overflow-y: auto; padding: 18px; background: var(--soft-2); display: flex; flex-direction: column; gap: 10px; }
.chat-day { align-self: center; background: var(--track); color: var(--ink-3); font-size: 12px; font-weight: 600; padding: 3px 12px; border-radius: 99px; }
.msg { max-width: 72%; display: flex; flex-direction: column; gap: 3px; }
.msg .bubble { background: #fff; border: 1px solid var(--line); border-radius: 14px 14px 14px 4px; padding: 10px 14px; white-space: pre-wrap; word-break: break-word; }
.msg .meta { font-size: 11.5px; color: var(--muted); }
.msg.me { align-self: flex-end; align-items: flex-end; }
.msg.me .bubble { background: var(--blue); border-color: var(--blue); color: #fff; border-radius: 14px 14px 4px 14px; }
.msg .who { font-size: 12px; font-weight: 700; color: var(--blue); }
.msg img.att { max-width: 240px; border-radius: 10px; display: block; }
.chat-f { display: flex; gap: 10px; padding: 12px 14px; border-top: 1px solid var(--line); align-items: center; }
.chat-f .input { background: var(--bg); border-color: transparent; height: 46px; border-radius: 12px; }
.live { background: var(--ink); color: #fff; border-color: var(--ink); }
.live .lbl-live { font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; display: flex; gap: 8px; align-items: center; }

/* Slip gaji */
.slip-net { background: var(--blue); color: #fff; border-radius: 14px; padding: 16px 18px; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.slip-net b { font-size: 22px; font-weight: 800; }
.file-chip { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--line); background: #fff; font-weight: 600; font-size: 13px; color: var(--ink); }
.file-chip .ext { font-size: 11px; font-weight: 800; color: var(--red); }
.file-chip .ext.img { color: var(--blue); }
.file-chip:hover { border-color: var(--line-2); color: var(--ink); }

/* ── Halaman masuk ────────────────────────────────────────────── */
.auth { display: flex; min-height: 100vh; flex-wrap: wrap; }
.auth-art { flex: 1 1 520px; background: var(--blue); color: #fff; padding: 44px 70px; display: flex; flex-direction: column; justify-content: space-between; gap: 40px; position: relative; overflow: hidden; }
.auth-art .brand { display: flex; align-items: center; gap: 12px; color: #fff; position: relative; z-index: 1; }
.auth-art .brand .logo, .auth-art .brand img { width: 54px; height: 54px; border-radius: 14px; outline: 2px solid rgba(255, 255, 255, .25); object-fit: cover; }
.auth-art .brand strong { display: block; font-size: 22px; font-weight: 800; line-height: 1.2; }
.auth-art .brand small { display: block; font-size: 14px; opacity: .9; }
.auth-art h1 { font-size: clamp(32px, 3.6vw, 48px); line-height: 1.06; font-weight: 800; letter-spacing: -0.03em; max-width: 520px; }
.auth-art p { font-size: 17px; opacity: .92; max-width: 520px; margin-top: 16px; }
.auth-art .pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.auth-art .pills span { background: rgba(255, 255, 255, .16); padding: 6px 12px; border-radius: 99px; font-weight: 700; font-size: 14px; }
.auth-art .circle { position: absolute; border-radius: 50%; background: rgba(255, 255, 255, .06); }
.auth-art .foot { font-size: 13px; opacity: .85; position: relative; z-index: 1; }
.auth-form { flex: 1 1 460px; background: var(--bg); display: flex; align-items: center; justify-content: center; padding: 40px 24px; }
.auth-box { width: 100%; max-width: 410px; display: flex; flex-direction: column; gap: 16px; }
.auth-box h2 { font-size: 28px; font-weight: 800; letter-spacing: -0.02em; }

/* ── Responsif ────────────────────────────────────────────────── */
@media (max-width: 1080px) {
    .sb { position: fixed; z-index: 50; left: 0; top: 0; transform: translateX(-100%); transition: transform .2s; box-shadow: 0 20px 60px rgba(14, 26, 43, .25); }
    body.nav-open .sb { transform: none; }
    body.nav-open::after { content: ''; position: fixed; inset: 0; background: rgba(14, 26, 43, .35); z-index: 40; }
    .burger { display: grid; }
}
@media (max-width: 720px) {
    .top { padding: 14px 16px; }
    .top h1 { font-size: 19px; }
    .page { padding: 16px 16px 32px; gap: 16px; }
    .flash { margin: 14px 16px 0; }
    .searchbox { min-width: 0; flex: 1; }
    .card { padding: 16px; }
    .hero { padding: 20px; }
    .hero h2 { font-size: 22px; }
    .me div { display: none; }
    .auth-art { padding: 28px 20px; flex-basis: 100%; }
    .auth-art .circle, .auth-art .pills { display: none; }
    .msg { max-width: 88%; }
    .seat-grid { grid-template-columns: repeat(var(--cols, 6), 46px); gap: 6px; }
    .seat { width: 46px; height: 44px; font-size: 11px; }
    .cal .day { min-height: 64px; padding: 5px; }
    .cal .ev { font-size: 10px; padding: 2px 4px; }
}
@media print {
    .sb, .top-tools, .burger, .no-print { display: none !important; }
    body { background: #fff; }
    .page { padding: 0; }
    .card { border: 0; }
}
