/* ── 11. KOMPONEN KHUSUS ──────────────────────────────────────────────── */
/* Bar kategori */
.cat-bars { display: flex; flex-direction: column; gap: 14px; }
.cat-bar-top { display: flex; justify-content: space-between; gap: 10px; font-size: 13.5px; margin-bottom: 6px; }
.cat-bar-top b { font-variant-numeric: tabular-nums; }
.cat-bar-top small { color: var(--muted); font-weight: 500; }
.track { height: 8px; background: var(--inset); border-radius: 99px; overflow: hidden; }
.track > span { display: block; height: 100%; border-radius: 99px; background: var(--primary); transition: width .7s var(--ease); }
/* Legend donut */
.legend { display: flex; flex-direction: column; gap: 10px; }
.legend-row { display: flex; align-items: center; gap: 10px; font-size: 13.5px; }
.legend-row .sw { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.legend-row .val { margin-left: auto; font-weight: 700; font-variant-numeric: tabular-nums; }
.legend-row .val small { color: var(--muted); font-weight: 500; margin-left: 4px; }
.donut-wrap { position: relative; width: 190px; height: 190px; margin: 6px auto 18px; }
.donut-center { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; pointer-events: none; }
.donut-center strong { font-size: 22px; font-weight: 800; display: block; font-variant-numeric: tabular-nums; }
.donut-center small { font-size: 12px; color: var(--muted); }
.chart-box { position: relative; height: 280px; }
.chart-legend { display: flex; gap: 16px; font-size: 13px; color: var(--text-2); }
.chart-legend .sq { display: inline-block; width: 11px; height: 11px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
/* Insight AI */
.insight { background: linear-gradient(135deg, var(--primary-soft), transparent 70%), var(--surface); border: 1px solid var(--primary-soft-2); border-radius: var(--r-card); padding: 20px 22px; }
.insight h3 { font-size: 15px; font-weight: 700; display: flex; align-items: center; gap: 8px; margin: 0 0 12px; }
.insight h3 i { color: var(--primary-text); }
.insight ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.insight li { display: flex; gap: 10px; font-size: 13.5px; color: var(--text-2); }
.insight li i { color: var(--primary-text); margin-top: 1px; }
.insight li b { color: var(--text); }
/* Kartu kegiatan */
.job-card { padding: 20px 22px; }
.job-card .job-tags { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; margin-bottom: 8px; }
.job-card h4 { font-size: 17px; font-weight: 700; margin: 0 0 6px; }
.job-meta { display: flex; gap: 16px; flex-wrap: wrap; font-size: 12.5px; color: var(--text-2); }
.job-meta i { color: var(--muted); margin-right: 4px; }
.job-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; background: var(--inset-2); border: 1px solid var(--border); border-radius: 12px; padding: 12px 16px; margin: 14px 0 12px; }
.job-grid .k { font-size: 11.5px; color: var(--muted); }
.job-grid .v { font-weight: 600; font-size: 13.5px; }
.job-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 12.5px; color: var(--text-2); }
.save-box { text-align: right; background: var(--inset-2); border: 1px solid var(--border); border-radius: 12px; padding: 8px 14px; flex-shrink: 0; }
.save-box .micro { display: block; }
.save-box b { color: var(--primary-text); font-size: 17px; font-variant-numeric: tabular-nums; }
/* Daftar absensi / peserta */
.att-list { display: flex; flex-direction: column; gap: 8px; }
.att-item { display: flex; gap: 12px; padding: 12px; border-radius: 12px; background: var(--inset-2); border: 1px solid var(--border); }
.att-item .chk { width: 22px; height: 22px; border-radius: 6px; border: 2px solid var(--border-strong); display: grid; place-items: center; flex-shrink: 0; color: #fff; margin-top: 2px; }
.att-item .chk.on { background: var(--primary); border-color: var(--primary); }
.att-item .chk.wait { border-style: dashed; color: var(--muted); }
.att-item .who strong { font-size: 13.5px; display: block; }
.att-item .who small { font-size: 11.5px; color: var(--muted); font-family: 'JetBrains Mono', monospace; }
.att-item .note { font-size: 12px; color: var(--text-2); font-style: italic; margin-top: 4px; }
.att-item .right { margin-left: auto; text-align: right; font-size: 12px; color: var(--text-2); }
.info-box { background: var(--inset); border: 1px solid var(--border); border-radius: 12px; padding: 14px 16px; font-size: 13px; color: var(--text-2); }
.info-box.primary { background: var(--primary-soft); border-color: var(--primary-soft-2); }
.info-box.warn { background: var(--warning-soft); border-color: var(--warning-line); color: var(--text); }
.info-box.ok { background: var(--success-soft); border-color: var(--success-line); color: var(--text); }
.info-box.err { background: var(--danger-soft); border-color: var(--danger-line); color: var(--text); }
/* Ringkasan pembayaran nota: Total · Sudah Dibayar · Sisa (v1.8) */
.bayar-sum { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.bayar-sum > div { background: var(--inset); border: 1px solid var(--border); border-radius: 12px; padding: 9px 12px; min-width: 0; }
.bayar-sum span { display: block; font-size: 11px; color: var(--text-2); font-weight: 600; text-transform: uppercase; letter-spacing: .03em; }
.bayar-sum b { display: block; font-size: 15px; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bayar-sum .sisa { background: var(--warning-soft); border-color: var(--warning-line); }
.bayar-sum .sisa b { color: var(--warning-text); }
.bayar-sum .lunas b { color: var(--success-text); }
@media (max-width: 575.98px) { .bayar-sum { grid-template-columns: 1fr; gap: 6px; } .bayar-sum > div { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 7px 12px; } .bayar-sum b { font-size: 14px; margin: 0; } }
.kv { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; font-size: 13.5px; }
.kv span:first-child { color: var(--text-2); }
.kv span:last-child { font-weight: 600; text-align: right; }
/* Galeri foto */
.thumbs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.thumb { position: relative; aspect-ratio: 4/3; border-radius: 10px; overflow: hidden; background: var(--inset); border: 1px solid var(--border); cursor: zoom-in; display: grid; place-items: center; color: var(--muted); }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb .ld { font-size: 11px; }
/* Dropzone unggah */
.dropzone { border: 2px dashed var(--border-strong); border-radius: 14px; background: var(--inset-2); padding: 22px; text-align: center; cursor: pointer; transition: border-color .15s, background .15s; color: var(--text-2); }
.dropzone:hover, .dropzone.drag { border-color: var(--primary); background: var(--primary-soft); }
.dropzone i { font-size: 30px; color: var(--primary-text); display: block; margin-bottom: 6px; }
.dropzone small { color: var(--muted); }
.file-chip { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 12px; background: var(--inset); border: 1px solid var(--border); }
.file-chip img, .file-chip .fi { width: 56px; height: 44px; object-fit: cover; border-radius: 8px; background: var(--surface); display: grid; place-items: center; color: var(--muted); flex-shrink: 0; }
.file-chip .meta { min-width: 0; flex: 1; }
.file-chip .meta strong { font-size: 13px; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.file-chip .meta small { color: var(--muted); font-size: 12px; }
/* OCR */
.ocr-stage { position: relative; border-radius: 14px; overflow: hidden; background: #0F172A; min-height: 280px; display: grid; place-items: center; }
.ocr-stage img { max-width: 100%; max-height: 380px; display: block; }
.ocr-stage .scan { position: absolute; left: 0; right: 0; height: 60px; background: linear-gradient(180deg, transparent, rgba(59,130,246,.45), transparent); animation: scan 1.6s linear infinite; display: none; }
.ocr-stage.busy .scan { display: block; }
@keyframes scan { 0% { top: -60px; } 100% { top: 100%; } }
.ocr-stage .cap { position: absolute; left: 10px; right: 10px; bottom: 10px; display: flex; justify-content: space-between; color: #fff; font-size: 12px; font-family: 'JetBrains Mono', monospace; }
.ocr-stage .cap span { background: rgba(15,23,42,.72); padding: 4px 8px; border-radius: 6px; }
.ocr-result-head { background: var(--primary-soft); border: 1px solid var(--primary-soft-2); border-radius: 12px; padding: 14px 16px; }
.ocr-result-head strong { color: var(--primary-text); display: flex; gap: 8px; align-items: center; }
/* Editor item */
.items-tbl { width: 100%; border-collapse: separate; border-spacing: 0; }
.items-tbl th { font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--text-2); background: var(--inset); padding: 9px 10px; text-align: left; }
.items-tbl td { padding: 8px 6px; border-bottom: 1px solid var(--border); vertical-align: top; }
.items-tbl .form-control, .items-tbl .form-select { min-height: 36px; font-size: 13px; padding: 6px 10px; }
.items-tbl .sub { font-weight: 700; color: var(--primary-text); padding-top: 16px; text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.items-wrap { border: 1px solid var(--border); border-radius: 12px; overflow: auto; }
.total-box { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; background: var(--primary-soft); border: 1px solid var(--primary-soft-2); border-radius: 14px; padding: 16px 20px; flex-wrap: wrap; }
.total-box .big { font-size: 30px; font-weight: 800; color: var(--primary-text); font-variant-numeric: tabular-nums; line-height: 1; }
/* Nota A5 pratinjau */
.nota-a5 { background: #fff; color: #0F172A; font-family: Inter, Arial, sans-serif; font-size: 10px; position: relative; line-height: 1.4; }
.nota-a5 table { width: 100%; border-collapse: collapse; }
.nota-a5 .n-kop td { vertical-align: middle; padding: 0; }
.nota-a5 .n-kop .n-logo { width: 1%; padding-right: 12px; }
.nota-a5 .n-kop .n-logo img { display: block; height: 50px; width: auto; max-width: 76px; object-fit: contain; }
.nota-a5 .n-studio { font-size: 18px; font-weight: 800; color: #1D4ED8; line-height: 1.1; letter-spacing: .01em; }
.nota-a5 .n-sub { font-size: 8.5px; font-weight: 700; margin-top: 3px; color: #0F172A; }
.nota-a5 .n-addr { font-size: 7.5px; color: #475569; margin-top: 2px; line-height: 1.35; }
.nota-a5 .n-kop .n-badge { width: 31%; background: #1D4ED8; color: #fff; text-align: center; padding: 11px 12px; font-weight: 800; font-size: 11.5px; letter-spacing: .03em; }
.nota-a5 .n-badge .n-no { font-size: 9.5px; font-weight: 700; margin-top: 3px; font-family: 'JetBrains Mono', monospace; letter-spacing: 0; }
.nota-a5 .n-rule { border-top: 1.5px solid #94A3B8; margin: 10px 0 8px; }
.nota-a5 .n-info td { vertical-align: top; width: 50%; font-size: 9.5px; line-height: 1.5; padding: 0; }
.nota-a5 .n-info .l { font-size: 8.5px; font-weight: 800; color: #334155; letter-spacing: .03em; margin-bottom: 2px; }
.nota-a5 .n-info .rt { text-align: right; }
.nota-a5 .n-items { margin-top: 10px; font-size: 9.5px; }
.nota-a5 .n-items th { background: #1D4ED8; color: #fff; font-weight: 700; padding: 5px 7px; text-align: left; border: 1px solid #1D4ED8; }
.nota-a5 .n-items td { padding: 5px 7px; border: 1px solid #DCE3EE; vertical-align: top; }
.nota-a5 .n-items .r { text-align: right; font-variant-numeric: tabular-nums; }
.nota-a5 .n-items .c { text-align: center; }
.nota-a5 .n-items .ket { color: #64748B; font-size: .9em; }
.nota-a5 .n-items tfoot td { background: #EEF3FB; font-weight: 800; color: #0B2A6F; }
.nota-a5 .n-terbilang { font-size: 8.5px; color: #1D4ED8; font-style: italic; margin-top: 6px; }
.nota-a5 .n-bayar { font-size: 8px; color: #475569; margin-top: 2px; }
.nota-a5 .n-riwayat { font-size: 7.5px; color: #334155; margin-top: 4px; }
.nota-a5 .n-sisa { font-size: 8.5px; font-weight: 700; color: #B45309; margin-top: 2px; }
.nota-a5 .n-sisa.lunas { color: #16A34A; }
.nota-a5 .n-sisa span { display: inline-block; width: 22px; }
.nota-a5 .n-sign { margin-top: 12px; font-size: 9.5px; }
.nota-a5 .n-sign td { width: 50%; padding: 1px 8px; text-align: center; vertical-align: top; }
.nota-a5 .n-sign .sp td { height: 44px; }
.nota-a5 .n-sign .nm { font-weight: 700; }
.nota-a5 .n-sign .u { text-decoration: underline; }
.nota-a5 .n-sign .nip { font-size: 8.5px; color: #475569; }
.nota-a5 .n-void { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; pointer-events: none; }
.nota-a5 .n-void span { font-size: 60px; font-weight: 900; color: rgba(220, 38, 38, .2); border: 6px solid rgba(220, 38, 38, .2); border-radius: 14px; padding: 0 22px; transform: rotate(-14deg); letter-spacing: .12em; }

.doc-a4 { background: #fff; color: #0F172A; border-radius: 10px; box-shadow: var(--shadow-2); padding: 22px 24px; font-size: 10px; border: 1px solid #E2E8F0; }
.doc-a4 .kop { display: flex; gap: 12px; align-items: center; border-bottom: 2px double #0F172A; padding-bottom: 8px; margin-bottom: 10px; }
.doc-a4 .kop img { height: 44px; width: auto; max-width: 70px; object-fit: contain; }
.doc-a4 .kop .t { text-align: center; flex: 1; line-height: 1.35; }
.doc-a4 .kop .t b { display: block; font-size: 9px; }
.doc-a4 .kop .t .s { color: #1D4ED8; font-size: 11px; font-weight: 800; }
.doc-a4 .kop .t small { font-size: 7px; color: #475569; display: block; }
.doc-a4 h6 { text-align: center; font-size: 10.5px; font-weight: 800; text-decoration: underline; margin: 6px 0 2px; color: #0F172A; }
.doc-a4 .nod { text-align: center; font-size: 8px; color: #475569; margin-bottom: 10px; font-family: 'JetBrains Mono', monospace; }
.doc-a4 table { width: 100%; border-collapse: collapse; font-size: 8.5px; border: 1px solid #CBD5E1; }
.doc-a4 th { background: #EEF3FB; text-align: left; padding: 5px 7px; font-weight: 700; }
.doc-a4 td { padding: 5px 7px; border-top: 1px solid #E2E8F0; }
.doc-a4 td.r, .doc-a4 th.r { text-align: right; font-variant-numeric: tabular-nums; }
.doc-a4 tr.tot td { background: #EEF3FB; font-weight: 800; color: #1D4ED8; }
.doc-a4 .signs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 16px; text-align: center; font-size: 7.5px; }
.doc-a4 .signs .stamp { width: 46px; height: 46px; margin: 6px auto; border-radius: 50%; border: 1.5px dashed #93B4FF; display: grid; place-items: center; font-size: 5.5px; color: #1D4ED8; font-weight: 700; }
.doc-a4 .signs b { display: block; text-decoration: underline; font-size: 8px; }
/* Katalog kartu produk */
.prod-card { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.prod-img { position: relative; aspect-ratio: 16/10; background: linear-gradient(135deg, var(--inset), var(--primary-soft-2)); display: grid; place-items: center; overflow: hidden; margin: 12px 12px 0; border-radius: 12px; }
.prod-img img { width: 100%; height: 100%; object-fit: cover; }
.prod-img .ph { font-size: 44px; color: var(--primary-text); opacity: .55; }
.prod-img .tl { position: absolute; top: 10px; left: 10px; }
.prod-img .tr { position: absolute; top: 10px; right: 10px; }
.prod-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.prod-body .cat { font-size: 11px; font-weight: 700; letter-spacing: .06em; color: var(--primary-text); text-transform: uppercase; }
.prod-body .cat span { color: var(--muted); font-weight: 500; text-transform: none; letter-spacing: 0; }
.prod-body h4 { font-size: 16px; font-weight: 700; margin: 2px 0; }
.prod-body p { font-size: 13px; color: var(--text-2); margin: 0; }
.prod-foot { display: flex; justify-content: space-between; align-items: flex-end; margin-top: auto; padding-top: 12px; }
.prod-foot .price { font-size: 19px; font-weight: 800; color: var(--primary-text); font-variant-numeric: tabular-nums; }
.prod-foot .price small { color: var(--text-2); font-weight: 500; font-size: 12px; }
.prod-card.off { opacity: .6; }
/* Picker (multi-select dengan pencarian) */
.picker { border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.picker-search { border: 0; border-bottom: 1px solid var(--border); border-radius: 0; }
.picker-list { max-height: 230px; overflow: auto; }
.picker-row { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-bottom: 1px solid var(--border); cursor: pointer; }
.picker-row:last-child { border-bottom: 0; }
.picker-row:hover { background: var(--inset-2); }
.picker-row.on { background: var(--primary-soft); }
.picker-row .form-check-input { margin: 0; flex-shrink: 0; }
.picker-row .nm { font-weight: 600; font-size: 13.5px; }
.picker-row .sb { font-size: 12px; color: var(--muted); }
.picker-row .extra { margin-left: auto; display: flex; gap: 6px; align-items: center; }
.picker-row .extra .form-control, .picker-row .extra .form-select { min-height: 32px; font-size: 12.5px; padding: 4px 8px; }
.sel-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
/* Matriks fitur */
.feat-row { display: flex; align-items: center; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--border); }
.feat-row:last-child { border-bottom: 0; }
.feat-row .t { flex: 1; min-width: 0; }
.feat-row .t strong { font-size: 13.5px; display: block; font-weight: 600; }
.feat-row .t small { font-size: 12px; color: var(--muted); }
.feat-row .t small.lvl { color: var(--primary-text); }
.feat-row .form-select { width: 150px; min-height: 34px; font-size: 12.5px; padding: 4px 28px 4px 10px; }
.feat-row .lock { color: var(--muted); }
#ftOverview th, #ftOverview td { padding: 8px 6px; font-size: 12px; }
#ftOverview .pill { font-size: 10.5px; padding: 0 6px; }
/* Mutasi & aktivitas */
.mut-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.mut-card { background: var(--inset-2); border: 1px solid var(--border); border-radius: 14px; padding: 16px; }
.mut-card .top { display: flex; justify-content: space-between; gap: 8px; }
.mut-card .job { font-size: 12px; font-weight: 700; color: var(--primary-text); font-family: 'JetBrains Mono', monospace; }
.mut-card h5 { font-size: 14.5px; font-weight: 700; margin: 4px 0 12px; }
.mut-card .bot { display: flex; justify-content: space-between; align-items: flex-end; font-size: 12px; color: var(--text-2); }
.mut-card .bot b { color: var(--success-text); font-size: 15px; font-variant-numeric: tabular-nums; }
.timeline { display: flex; flex-direction: column; }
.tl-item { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--border); }
.tl-item:last-child { border-bottom: 0; }
.tl-ic { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; flex-shrink: 0; font-size: 16px; }
.tl-ic.in { background: var(--success-soft); color: var(--success-text); }
.tl-ic.out { background: var(--danger-soft); color: var(--danger-text); }
.tl-item .body { flex: 1; min-width: 0; }
.tl-item .body strong { font-size: 13.5px; display: block; }
.tl-item .body small { color: var(--muted); font-size: 12px; }
.tl-item .amt { font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
/* Saldo hero siswa */
.saldo-hero { background: radial-gradient(600px 240px at 100% 0, rgba(59,130,246,.5), transparent 60%), linear-gradient(135deg, #1D4ED8, #0B2A6F); color: #fff; border-radius: 20px; padding: 26px; box-shadow: 0 16px 36px rgba(11,42,111,.35); position: relative; overflow: hidden; }
.saldo-hero .lbl { font-size: 12px; font-weight: 600; letter-spacing: .08em; opacity: .85; text-transform: uppercase; }
.saldo-hero .amt { font-size: 38px; font-weight: 800; letter-spacing: -.02em; margin: 6px 0 14px; font-variant-numeric: tabular-nums; }
.saldo-hero .row-s { display: flex; gap: 22px; flex-wrap: wrap; font-size: 13px; }
.saldo-hero .row-s b { display: block; font-size: 16px; font-variant-numeric: tabular-nums; }
.saldo-hero::after { content: ""; position: absolute; right: -60px; bottom: -60px; width: 200px; height: 200px; border-radius: 50%; border: 2px dashed rgba(255,255,255,.18); }
/* Slip */
.slip-person { display: flex; gap: 12px; align-items: center; background: var(--primary-soft); border-radius: 14px; padding: 14px; }
.slip-total { display: flex; justify-content: space-between; align-items: center; background: var(--primary-soft); border-radius: 12px; padding: 12px 16px; font-weight: 700; color: var(--primary-text); }
.slip-total b { font-size: 19px; font-variant-numeric: tabular-nums; }
.tariff-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.tariff { background: var(--inset-2); border: 1px solid var(--border); border-radius: 14px; padding: 16px; }
.tariff .n { font-weight: 600; font-size: 13.5px; display: flex; gap: 8px; align-items: center; }
.tariff .n .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--primary); }
.tariff .p { display: flex; justify-content: space-between; align-items: baseline; margin-top: 14px; }
.tariff .p b { color: var(--primary-text); font-size: 17px; font-variant-numeric: tabular-nums; }
.tariff .p small { color: var(--muted); }
/* Log email */
.log-row { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 12px; background: var(--inset-2); border: 1px solid var(--border); }
.log-row + .log-row { margin-top: 8px; }
.log-row .meta { flex: 1; min-width: 0; }
.log-row .meta strong { font-size: 13.5px; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.log-row .meta small { color: var(--muted); font-size: 12px; }
.log-row .st { text-align: right; font-size: 12px; }
/* Skeleton */
.skel { background: linear-gradient(90deg, var(--inset) 25%, var(--inset-2) 50%, var(--inset) 75%); background-size: 200% 100%; animation: skel 1.2s linear infinite; border-radius: 8px; }
@keyframes skel { to { background-position: -200% 0; } }

