/* ==========================================================================
   ui.css — standar Sassly UI (uiux.sassly.ai) untuk komponen Haris. Permintaan pemilik 13 Nov 2026: "ikuti standar baru UI/UX".
   Dimuat setelah components.css + berkas layout (app.css / me.css / site.css) dan sebelum CSS halaman, sehingga menyetel ulang
   metrik bersama di satu tempat:
     · Product Frame — sidebar di atas "shell" abu hangat, isi halaman di panel bersudut 13 px dengan jarak 8 px, topbar 54 px.
     · Kartu "flat" — putih, ring tipis (--sx-shadow-1), radius 13 px, padding 16 px; kepala kartu 14/16/10 px.
     · Kontrol 34 px (kecil 28 px), radius 9 px; label 12 px; lencana berbentuk pil 20 px.
     · Judul halaman 24 px tebal 650, deskripsi 13 px; jarak antarbagian 20 px.
   Warna, radius, bayangan, dan gerak hanya dari token (--sx-* lewat tokens.css). Tanpa hex baru.
   ========================================================================== */

/* --- Bingkai produk (Product Frame) ------------------------------------------------------- */

.app-body { background: var(--sx-shell); background-image: none; }
/* Kolom .app (sidebar + isi) cukup dari app.css: menulis ulang di sini (tanpa media query) menimpa aturan HP ≤ 960 px (satu kolom,
   sidebar jadi laci) sehingga isi halaman HP hanya selebar sidebar — temuan 14 Nov 2026. */
.sidebar { background: transparent; border-right: 0; }
.sidebar-top { padding: 10px 8px 6px; }
.brand-block { min-height: 44px; padding: 0 8px 0 7px; border-radius: var(--sx-r-lg); }
.brand-block-icon { width: 30px; height: 30px; border-radius: var(--sx-r-md); box-shadow: var(--sx-shadow-primary), var(--sx-inset-highlight); }
.brand-block-name { font-size: var(--sx-fs-base); font-weight: var(--sx-strong-weight); letter-spacing: -.01em; }
.brand-block-sub { font-size: var(--sx-fs-xs); color: var(--sx-muted); }

.sidebar-nav { gap: 1px; padding: 0 8px 10px; scrollbar-width: none; }
.sidebar-nav::-webkit-scrollbar { display: none; }
/* Label grup: huruf kalimat kecil seperti Sassly ("Workspace"), bukan huruf kapital berjarak. */
.nav-group { padding: 14px 10px 5px 14px; font-size: var(--sx-fs-2xs); font-weight: 500; letter-spacing: 0; text-transform: none; color: var(--sx-muted); }
.nav-section:first-child .nav-group { padding-top: 4px; }
.nav-link { gap: 12px; height: var(--nav-h); padding: 0 10px 0 14px; border-radius: var(--sx-r-md); color: var(--sx-ink-2); font-size: var(--sx-fs-base); }
.nav-link:hover { background: var(--sx-fill); color: var(--sx-ink); }
.nav-link .icon { width: 16px; height: 16px; opacity: .75; }
.nav-link.is-active { background: var(--sx-fill-strong); color: var(--sx-ink); font-weight: var(--sx-strong-weight); }
.nav-link.is-active .icon { color: var(--sx-ink); opacity: 1; }
.nav-link.is-active::before { left: 0; top: 8px; bottom: 8px; width: 3px; border-radius: 0 2px 2px 0; background: var(--sx-accent); }
.sidebar-foot { padding: 8px; border-top: 0; box-shadow: inset 0 1px 0 var(--sx-line-soft); }
.plan-card { padding: 10px 10px 11px; border-radius: var(--sx-r-lg); background: var(--sx-raised); box-shadow: var(--sx-shadow-1); }

/* Isi = panel bersudut di atas shell. Halaman tetap digulir oleh jendela (bukan panel) supaya elemen sticky & pemulihan gulir
   tidak berubah; topbar menempel di top 0 sehingga saat digulir panel tampak memanjang ke tepi atas (tidak ada isi di celah 8 px). */
.main {
    min-height: calc(100vh - 2 * var(--frame-gap)); min-height: calc(100dvh - 2 * var(--frame-gap));
    margin: var(--frame-gap) var(--frame-gap) var(--frame-gap) 0;
    border-radius: var(--sx-r-xl); background-color: var(--sx-panel); background-image: var(--sx-panel-wash); background-repeat: no-repeat;
    box-shadow: var(--sx-ring), 0 1px 3px rgba(10, 10, 10, .04);
}
.main > :first-child { border-top-left-radius: var(--sx-r-xl); border-top-right-radius: var(--sx-r-xl); }
.topbar {
    top: 0; height: var(--topbar-h); gap: 10px; padding: 0 14px 0 20px;
    background: color-mix(in srgb, var(--sx-panel) 88%, transparent); border-bottom: 0; box-shadow: inset 0 -1px 0 var(--sx-line-soft);
}
.main > .topbar:first-child { border-radius: var(--sx-r-xl) var(--sx-r-xl) 0 0; }
.topbar-title { font-size: var(--sx-fs-base); color: var(--sx-muted); }
.topbar-title strong { font-weight: var(--sx-strong-weight); color: var(--sx-ink); }
.topbar-sep { background: var(--sx-line); }
.user-pill { border-radius: var(--sx-r-pill); }

.content { gap: 20px; padding: 24px 28px 36px; }
.content.is-narrow > * { max-width: 1040px; }

/* Admin platform memakai Product Frame yang sama dengan admin perusahaan (sidebar + panel isi; layouts/platform.php, 14 Nov 2026). */

@media (max-width: 960px) {
    .sidebar { background: var(--sx-shell); box-shadow: var(--sx-shadow-pop); }
    .main { margin: 0; min-height: 100vh; min-height: 100dvh; border-radius: 0; box-shadow: none; }
    .main > :first-child, .main > .topbar:first-child { border-radius: 0; }
    .topbar { top: 0; padding: 0 12px; }
    .content { padding: 18px 16px 32px; gap: 16px; }
}

/* --- Kepala halaman ------------------------------------------------------------------------ */

.page-header { display: grid; gap: 6px; }
.page-head { gap: 8px 12px; }
.page-head h1 { font-size: var(--sx-fs-2xl); font-weight: var(--sx-heading-weight); letter-spacing: var(--sx-heading-tracking); line-height: 1.2; }
.page-desc { margin-top: 0; max-width: 72ch; font-size: var(--sx-fs-base); color: var(--sx-muted); line-height: 1.55; }
.page-back { margin-bottom: 2px; font-size: var(--sx-fs-sm); color: var(--sx-muted); }
.page-actions { gap: 8px; }
.page-tabs { margin-top: 6px; }
.section { gap: 10px; }
.section-title { padding: 0; font-size: var(--sx-fs-md); font-weight: var(--sx-heading-weight); letter-spacing: -.01em; }
.section-title .muted { font-weight: 400; }
@media (max-width: 640px) { .page-head h1 { font-size: var(--sx-fs-xl); } }

/* --- Kartu ---------------------------------------------------------------------------------- */

.panel, .card, .list-rows, .table-wrap { background: var(--sx-card-bg); border-radius: var(--sx-card-radius); box-shadow: var(--sx-card-shadow); }
.panel::after, .card::after { display: none; }
.panel-head { min-height: 48px; gap: 6px 10px; padding: 14px 16px 10px; }
.panel-head h2 { font-size: var(--sx-fs-md); font-weight: var(--sx-heading-weight); letter-spacing: -.01em; }
.panel-head.has-line { padding-bottom: 12px; border-bottom-color: var(--sx-line-soft); }
.panel-body { padding: 4px 16px 16px; }
.panel-body.is-padded { padding: 16px; }
.panel-foot { gap: 8px; padding: 12px 16px; border-top-color: var(--sx-line-soft); border-radius: 0 0 var(--sx-card-radius) var(--sx-card-radius); background: var(--sx-surface-2); }
.panel-note { padding: 0 16px 14px; }
.panel > .table-wrap { border-radius: 0 0 var(--sx-card-radius) var(--sx-card-radius); }
.list-row { min-height: 52px; gap: 12px; padding: 10px 16px; }
.list-row:first-child { border-radius: var(--sx-card-radius) var(--sx-card-radius) 0 0; }
.list-row:last-child { border-radius: 0 0 var(--sx-card-radius) var(--sx-card-radius); }
a.list-row:hover { background: var(--sx-fill); }
.grid-2 { gap: 16px; }
.split { gap: 16px; }

/* --- Tombol --------------------------------------------------------------------------------- */

.btn {
    gap: 6px; height: var(--sx-h-md); padding: 0 13px; border-radius: var(--sx-r-md);
    background: var(--sx-surface); color: var(--sx-ink); box-shadow: inset 0 0 0 1px var(--sx-line), 0 1px 2px -1px rgb(0 0 0 / .08);
    font-size: var(--sx-fs-base); font-weight: 500; letter-spacing: -.005em;
}
.btn:hover { background: color-mix(in srgb, var(--sx-ink) 4%, var(--sx-surface)); box-shadow: inset 0 0 0 1px var(--sx-line-strong), 0 1px 2px -1px rgb(0 0 0 / .08); color: var(--sx-ink); }
.btn .icon { width: 15px; height: 15px; margin-left: -2px; }
.btn-primary { background: var(--sx-primary); color: var(--sx-on-primary); box-shadow: inset 0 1px 0 rgb(255 255 255 / .1), 0 1px 2px rgb(0 0 0 / .14); }
.btn-primary:hover:not(:disabled) { background: color-mix(in oklab, var(--sx-primary), var(--sx-on-primary) 9%); color: var(--sx-on-primary); box-shadow: inset 0 1px 0 rgb(255 255 255 / .1), 0 1px 2px rgb(0 0 0 / .14); }
.btn-accent { background: var(--sx-accent); color: var(--sx-on-accent); box-shadow: inset 0 1px 0 rgb(255 255 255 / .14), 0 1px 2px color-mix(in srgb, var(--sx-accent) 40%, transparent); }
.btn-accent:hover:not(:disabled) { background: color-mix(in oklab, var(--sx-accent), var(--sx-on-accent) 10%); color: var(--sx-on-accent); }
.btn-ghost { background: transparent; color: var(--sx-muted); box-shadow: none; }
.btn-ghost:hover:not(:disabled) { background: var(--sx-fill); color: var(--sx-ink); box-shadow: none; }
.btn-danger { color: var(--sx-danger-ink); background: var(--sx-danger-soft); box-shadow: inset 0 0 0 1px var(--sx-danger-line); }
.btn-danger:hover:not(:disabled) { color: var(--sx-danger-ink); background: color-mix(in srgb, var(--sx-danger) 11%, transparent); box-shadow: inset 0 0 0 1px var(--sx-danger-line); }
.btn-ghost.btn-danger { background: transparent; box-shadow: none; }
.btn-ghost.btn-danger:hover:not(:disabled) { background: var(--sx-danger-soft); }
.btn-danger-solid { background: var(--sx-danger); color: var(--sx-on-danger); }
.btn-sm { height: var(--sx-h-sm); padding: 0 10px; font-size: var(--sx-fs-sm); border-radius: var(--sx-r-sm); }
.btn-sm .icon { width: 14px; height: 14px; }
.btn-lg { height: var(--sx-h-lg); padding: 0 16px; font-size: var(--sx-fs-md); border-radius: var(--sx-r-lg); }
.icon-btn { border-radius: var(--sx-r-md); }
.icon-btn:hover { background: var(--sx-fill); }

/* --- Formulir ------------------------------------------------------------------------------- */

.field { gap: 6px; }
.field > span:not(.field-hint):not(.field-error), .field-label { font-size: var(--sx-fs-sm); font-weight: 500; color: var(--sx-ink-2); }
.field-hint { font-size: var(--sx-fs-sm); color: var(--sx-muted); }
.field-error { font-size: var(--sx-fs-sm); color: var(--sx-danger-ink); }
.input, .select, .textarea {
    min-height: var(--sx-h-md); padding: 6px 10px; border-radius: var(--sx-r-md);
    background-color: var(--sx-surface); color: var(--sx-ink); box-shadow: inset 0 0 0 1px var(--sx-line-strong); font-size: var(--sx-fs-base);
}
.select { padding-right: 30px; background-position: right 10px center; }
.input:hover, .select:hover, .textarea:hover { box-shadow: inset 0 0 0 1px var(--sx-faint); }
.input:focus, .select:focus, .textarea:focus { box-shadow: var(--sx-focus-ring); }
.input::placeholder, .textarea::placeholder { color: var(--sx-muted); }
.input:disabled, .select:disabled, .textarea:disabled { background-color: var(--sx-surface-2); color: var(--sx-muted); }
.input[readonly] { background-color: var(--sx-surface-2); }
.input-sm, .select-sm { min-height: var(--sx-h-sm); font-size: var(--sx-fs-sm); border-radius: var(--sx-r-sm); }
.is-invalid, .input.is-invalid, .select.is-invalid, .textarea.is-invalid, [aria-invalid="true"].input, [aria-invalid="true"].select {
    box-shadow: inset 0 0 0 1px var(--sx-danger), 0 0 0 3px var(--sx-danger-soft);
}
.form-grid, .form-row { gap: 16px; }
.form-row { row-gap: 18px; }
.form-actions { gap: 8px; }
.check input, .check-row input { accent-color: var(--sx-primary); }
@media (max-width: 640px) { .input, .select, .textarea { font-size: 16px; } }

/* --- Tabel ---------------------------------------------------------------------------------- */

/* Pola Record Grid: kepala 34 px (11 px, abu, latar --sx-surface-2), baris ≥ 44 px, padding sel 12 px (16 px di tepi kartu). */
.table { font-size: var(--sx-fs-base); }
.table th, .table td { padding: 10px 12px; }
.table th:first-child, .table td:first-child { padding-left: 16px; }
.table th:last-child, .table td:last-child { padding-right: 16px; }
.table thead th { height: 34px; padding-top: 0; padding-bottom: 0; background: var(--sx-surface-2); font-size: var(--sx-fs-xs); font-weight: 500; color: var(--sx-muted);
    box-shadow: inset 0 -1px 0 var(--sx-line); }
.panel > .table-wrap .table thead th, .table-wrap > .table thead th { background: var(--sx-surface-2); }
.table-wrap > .table thead th:first-child { border-top-left-radius: var(--sx-card-radius); }
.table-wrap > .table thead th:last-child { border-top-right-radius: var(--sx-card-radius); }
.panel > .table-wrap > .table thead th { border-radius: 0; }
.table tbody td, .table tbody th { border-top-color: var(--sx-line-soft); }
@media (min-width: 641px) { .table tbody td, .table tbody th { height: 44px; } }
@media (max-width: 640px) { .table-stack thead th { height: auto; } }
.table tbody tr:hover { background: var(--sx-fill); }
.table td.num, .table tbody .num { font-size: var(--sx-fs-base); }
.table thead th.num, .table thead .num { font-size: var(--sx-fs-xs); }

/* --- Lencana, tab, segmen ---------------------------------------------------------------------- */

.badge { gap: 4px; height: 20px; padding: 0 7px; border-radius: var(--sx-r-pill); font-size: var(--sx-fs-xs); font-weight: 500; line-height: 1;
    background: var(--sx-fill); color: var(--sx-ink-2); box-shadow: inset 0 0 0 1px var(--sx-line); font-variant-numeric: tabular-nums; }
.badge-outline { background: transparent; box-shadow: inset 0 0 0 1px var(--sx-line-strong); color: var(--sx-muted); }
.badge-primary { background: var(--sx-primary); color: var(--sx-on-primary); box-shadow: none; }
.badge .icon { width: 12px; height: 12px; }
.badge-sm { height: 18px; padding: 0 6px; }
.tabs { gap: 20px; border-bottom-color: var(--sx-line); }
/* Tab yang terpotong di layar sempit: tepi pudar = masih bisa digeser (app.js menandai has-more-left/right). */
.tabs.has-more-right { -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 36px), transparent); mask-image: linear-gradient(to right, #000 calc(100% - 36px), transparent); }
.tabs.has-more-left { -webkit-mask-image: linear-gradient(to left, #000 calc(100% - 36px), transparent); mask-image: linear-gradient(to left, #000 calc(100% - 36px), transparent); }
.tabs.has-more-left.has-more-right {
    -webkit-mask-image: linear-gradient(to right, transparent, #000 36px, #000 calc(100% - 36px), transparent);
    mask-image: linear-gradient(to right, transparent, #000 36px, #000 calc(100% - 36px), transparent);
}
.tab { padding: 8px 0 10px; font-size: var(--sx-fs-base); color: var(--sx-muted); }
.tab.is-active, .tab[aria-selected="true"] { color: var(--sx-ink); }
.tab::after { background: var(--sx-ink); }
.tab .count { background: var(--sx-fill-strong); box-shadow: none; color: var(--sx-ink-2); }
.segmented { padding: 3px; border-radius: var(--sx-r-lg); background: var(--sx-fill); box-shadow: none; }
.segment { height: 26px; padding: 0 10px; border-radius: var(--sx-r-md); color: var(--sx-muted); font-size: var(--sx-fs-sm); }
.segment.is-active, .segment[aria-selected="true"] { background: var(--sx-surface); color: var(--sx-ink); box-shadow: var(--sx-shadow-1); }
.segment .count { font-size: var(--sx-fs-xs); color: var(--sx-muted); }

/* Bar filter: satu baris rapi, kontrol 34 px. */
.filter-bar { gap: 8px; }
.filter-search .icon { left: 11px; width: 14px; height: 14px; color: var(--sx-muted); }
.filter-search .input { padding-left: 32px; }

/* --- Angka (KPI) ------------------------------------------------------------------------------ */

.metrics { gap: 12px; }
.metric { padding: 16px 16px 15px; border-radius: var(--sx-card-radius); background: var(--sx-card-bg); box-shadow: var(--sx-card-shadow); }
.metric-label { gap: 6px; font-size: var(--sx-fs-sm); color: var(--sx-muted); }
.metric-label .icon { width: 14px; height: 14px; color: var(--sx-muted); }
.metric-value { margin-top: 8px; font-size: var(--fs-metric); font-weight: 600; letter-spacing: -.02em; }
.metric-value small { font-size: var(--sx-fs-base); }
/* Rupiah di kartu angka: 20 px supaya "Rp 374.319.133" utuh di 5 kolom; kartu kolom-5 turun ke 3 kolom lebih awal (sidebar 232 px). */
.metric-value.metric-money { font-size: 20px; letter-spacing: -.01em; }
@media (max-width: 1300px) { .metrics.metrics-5 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
/* Isi kartu tanpa kepala (mis. form yang diawali input CSRF tersembunyi): padding atas penuh 16 px. */
.panel > .panel-body:not(.panel-head ~ .panel-body) { padding-top: 16px; }
.metric-link:hover { box-shadow: var(--sx-shadow-2); }
/* Kartu kehadiran beranda: warna status cukup di titik ikon (bukan garis atas tebal). */
.dash-kpis .metric-link, .dash-kpis .metric-link:hover { box-shadow: var(--sx-card-shadow); }
.dash-kpis .metric-link:hover { box-shadow: var(--sx-shadow-2); }
.dash-kpis .metric-label .icon { color: var(--kpi, var(--sx-muted)); }
.dash-grid { gap: 16px; }
.dash-row { padding: 8px 16px; }
.dash-row:hover { background: var(--sx-fill); }

/* --- Pemberitahuan, kosong, menu --------------------------------------------------------------- */

/* Pola Callout: kotak bernada (soft + garis), ikon 16 px berwarna nada, teks --sx-ink-2. Netral = --sx-surface-2. */
.notice { --cl-ink: var(--sx-muted); gap: 10px; padding: 11px 12px 12px; border-radius: var(--sx-r-lg); background: var(--sx-surface-2);
    box-shadow: inset 0 0 0 1px var(--sx-line); color: var(--sx-ink-2); font-size: var(--sx-fs-base); line-height: 20px; }
.notice::before { display: none; }
.notice > .icon { width: 16px; height: 16px; margin-top: 2px; color: var(--cl-ink); }
.notice-success { --cl-ink: var(--sx-success-ink); background: var(--sx-success-soft); box-shadow: inset 0 0 0 1px var(--sx-success-line); }
.notice-error { --cl-ink: var(--sx-danger-ink); background: var(--sx-danger-soft); box-shadow: inset 0 0 0 1px var(--sx-danger-line); color: var(--sx-danger-ink); }
.notice-warning { --cl-ink: var(--sx-warning-ink); background: var(--sx-warning-soft); box-shadow: inset 0 0 0 1px var(--sx-warning-line); }
.notice-info { --cl-ink: var(--sx-info-ink); background: var(--sx-info-soft); box-shadow: inset 0 0 0 1px var(--sx-info-line); }
.notice a:not(.btn) { color: var(--sx-ink); }
/* Pola Blank State: tengah, judul 15 px, teks abu maks. 320 px, aksi 20 px di bawah. */
.empty { gap: 0; padding: 32px 28px; }
.empty-icon { width: 44px; height: 44px; margin-bottom: 14px; border-radius: var(--sx-r-xl); background: var(--sx-fill); box-shadow: inset 0 0 0 1px var(--sx-line-soft); color: var(--sx-muted); }
.empty-icon .icon { width: 18px; height: 18px; }
.empty-title { max-width: 340px; font-size: var(--sx-fs-lg); font-weight: var(--sx-heading-weight); letter-spacing: var(--sx-heading-tracking); color: var(--sx-ink); }
.empty-text { max-width: 320px; margin-top: 6px; font-size: var(--sx-fs-base); color: var(--sx-muted); text-wrap: balance; }
.empty .btn { margin-top: 20px; }
.dropdown-panel { border-radius: var(--sx-r-lg); box-shadow: var(--sx-shadow-pop); }
.kv { gap: 10px 16px; font-size: var(--sx-fs-base); }
.kv dt { color: var(--sx-muted); }

/* --- Area karyawan (/me) ------------------------------------------------------------------------ */

.me-body { background: var(--sx-shell); background-image: none; }
.me-top { background: color-mix(in srgb, var(--sx-shell) 88%, transparent); }
.me-content { gap: 14px; padding-left: 14px; padding-right: 14px; }
.me-content .page-head h1 { font-size: var(--sx-fs-xl); font-weight: var(--sx-heading-weight); letter-spacing: var(--sx-heading-tracking); }
.me-content .panel-body { padding: 16px; }
.me-greeting { font-size: var(--sx-fs-2xl); font-weight: var(--sx-heading-weight); letter-spacing: var(--sx-heading-tracking); }

/* --- Halaman masuk & situs (bukan landing) ------------------------------------------------------- */

.auth-body, .error-body { background: var(--sx-shell); }

/* --- Formulir bersection (pola Complete Form) ---------------------------------------------------
   <form class="panel form-sections"> <section class="form-section"> <div class="form-section-head"><h2/><p/></div>
   <div class="form-section-grid"> …field… </div> </section> … <div class="panel-foot form-savebar">…</div> </form> */
.form-sections { padding: 0; }
.form-section { display: grid; gap: 18px; padding: 24px 20px; box-shadow: inset 0 -1px 0 var(--sx-line-soft); }
.form-section:last-of-type { box-shadow: none; }
.form-section-head { display: grid; gap: 3px; }
.form-section-head h2 { font-size: var(--sx-fs-lg); font-weight: var(--sx-heading-weight); letter-spacing: var(--sx-heading-tracking); }
.form-section-head p { max-width: 72ch; font-size: var(--sx-fs-sm); color: var(--sx-muted); }
.form-section-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 16px; align-items: start; }
.form-section-full { grid-column: 1 / -1; }
.form-savebar { position: sticky; bottom: 0; z-index: 2; }
.form-savebar .muted { display: inline-flex; align-items: center; gap: 6px; }
.form-savebar .muted .icon { width: 13px; height: 13px; }
.field-optional { margin-inline-start: 4px; font-weight: var(--sx-text-weight); color: var(--sx-muted); }
.field-label .muted, .field > span:first-child .muted { font-weight: var(--sx-text-weight); color: var(--sx-muted); }
@media (max-width: 720px) {
    .form-section { padding: 20px 16px; }
    .form-section-grid { grid-template-columns: minmax(0, 1fr); }
}

/* --- Menu, dialog, toast, halaman (Action Menu, Modal Window, Flash Notes, Page Steps) ------------------ */

.dropdown-panel { padding: 4px; border-radius: var(--sx-r-lg); background: var(--sx-surface); box-shadow: var(--sx-shadow-pop); }
.dropdown-item { min-height: 32px; border-radius: var(--sx-r-md); font-size: var(--sx-fs-base); }
.dropdown-item:hover { background: var(--sx-fill); }
.dropdown-item.is-danger { color: var(--sx-danger-ink); }
.dropdown-item.is-danger:hover { background: var(--sx-danger-soft); }
dialog.modal { border-radius: var(--sx-r-xl); background: var(--sx-surface); box-shadow: var(--sx-shadow-3); }
dialog.modal::backdrop { background: var(--sx-overlay); }
.modal-head { padding: 20px 16px 4px 20px; }
.modal-head h2, .modal-title { font-size: var(--sx-fs-lg); font-weight: var(--sx-heading-weight); letter-spacing: var(--sx-heading-tracking); }
.modal-body { gap: 16px; padding: 10px 20px 20px; }
.modal-text { color: var(--sx-ink-2); }
.modal-foot { gap: 8px; padding: 12px 20px; border-top-color: var(--sx-line-soft); background: var(--sx-surface-2); }
.toast { gap: 10px; padding: 11px 14px 12px; border-radius: var(--sx-r-lg); background: var(--sx-surface); color: var(--sx-ink);
    box-shadow: var(--sx-shadow-3); font-size: var(--sx-fs-base); }
.toast[data-tone="error"] { background: var(--sx-surface); color: var(--sx-danger-ink); box-shadow: var(--sx-shadow-3), inset 0 0 0 1px var(--sx-danger-line); }
.toast[data-tone="success"] { box-shadow: var(--sx-shadow-3), inset 0 0 0 1px var(--sx-success-line); }
.pager { gap: 10px 12px; font-size: var(--sx-fs-sm); }
.pager-links { gap: 2px; padding: 2px; border-radius: var(--sx-r-md); background: var(--sx-fill); box-shadow: inset 0 0 0 1px var(--sx-line-soft); }
.page-link { height: 24px; min-width: 26px; padding: 0 8px; border-radius: var(--sx-r-sm); background: transparent; box-shadow: none; color: var(--sx-muted); font-size: var(--sx-fs-sm); }
.page-link:hover { background: var(--sx-raised); color: var(--sx-ink); box-shadow: none; }
.page-link[aria-current="page"], .page-link.is-current { background: var(--sx-raised); color: var(--sx-ink); box-shadow: var(--sx-shadow-1); }
.page-link.is-disabled { opacity: .45; }
.page-info { font-size: var(--sx-fs-sm); color: var(--sx-muted); }

/* Label kecil: huruf kalimat (Sassly: "Copy is sentence case"), bukan kapital berjarak — label grup, judul menu tarik-turun,
   judul grup pemilih, daftar isi panduan, kepala kalender minggu, nama perusahaan di slip. */
.label-caps, .eyebrow, .dropdown-label, .picker-group-title, .doc-nav-group, .doc-toc-title, .cal-week-head span, .slip-company {
    font-family: var(--sx-font); font-size: var(--sx-fs-xs); font-weight: 500; letter-spacing: 0; text-transform: none; color: var(--sx-muted); }
.doc-home h2 { font-size: var(--sx-fs-md); font-weight: var(--sx-heading-weight); letter-spacing: var(--sx-heading-tracking); text-transform: none; color: var(--sx-ink); }

/* Bottom navigation /me (belum ada di Sassly UI — dicatat di docs/uiuxsassly13nov2026.md sebagai "Bottom Tabs"). */
.bottom-nav { background: color-mix(in srgb, var(--sx-surface) 94%, transparent); border-top: 0; box-shadow: inset 0 1px 0 var(--sx-line), 0 -6px 18px -10px rgba(10, 10, 10, .18); }
.bottom-nav-item { border-radius: var(--sx-r-md); color: var(--sx-muted); font-size: var(--sx-fs-2xs); }
.bottom-nav-item:hover { color: var(--sx-ink); }
.bottom-nav-item.is-active { color: var(--sx-ink); font-weight: var(--sx-strong-weight); }
.bottom-nav-item.is-active .icon { color: var(--sx-accent); }
@media (min-width: 561px) { .me-app { background: color-mix(in srgb, var(--sx-surface) 35%, transparent); } }

/* --- Sidebar: grup menu yang bisa dilipat (sub-menu, permintaan pemilik 13 Nov 2026) ----------------------------
   Menu utama (Beranda, Persetujuan, Laporan) selalu tampil; grup lain = tombol judul + ikon + panah; klik → isinya turun
   (grid-template-rows 0fr → 1fr), satu grup terbuka sekaligus (app.js). Sub-menu menjorok dengan garis pandu kiri seperti daftar
   komponen di uiux.sassly.ai; halaman aktif ditandai garis aksen di atas garis pandu. Grup tertutup yang berisi halaman aktif
   menampilkan titik aksen. Tanpa JS (html.no-js) semua grup terbuka. */
.nav-section { gap: 1px; }
.nav-section-root + .nav-section.is-collapsible { margin-top: 8px; }
.nav-section-items { display: grid; grid-template-rows: 1fr; min-width: 0; }
.nav-section-inner { display: flex; flex-direction: column; gap: 1px; min-height: 0; min-width: 0; }
.js .nav-section.is-collapsible .nav-section-items { grid-template-rows: 0fr; transition: grid-template-rows var(--sx-dur-3) var(--sx-ease-out); }
.js .nav-section.is-collapsible.is-open .nav-section-items { grid-template-rows: 1fr; }
.js .nav-section.is-collapsible .nav-section-inner { overflow: hidden; visibility: hidden; }
.js .nav-section.is-collapsible.is-open .nav-section-inner { visibility: visible; }
/* Padding atas/bawah sub-menu hanya saat terbuka — padding tidak bisa menyusut ke 0fr, jadi grup tertutup tetap rapat (1 px). */
.nav-section.is-collapsible .nav-section-inner { margin-left: 21px; padding: 0 0 0 9px; box-shadow: inset 1px 0 0 var(--sx-line);
    transition: padding var(--sx-dur-3) var(--sx-ease-out); }
.nav-section.is-collapsible.is-open .nav-section-inner, .no-js .nav-section.is-collapsible .nav-section-inner { padding-top: 2px; padding-bottom: 6px; }
.js .nav-section.is-collapsible .nav-section-inner { transition: padding var(--sx-dur-3) var(--sx-ease-out), visibility 0s linear var(--sx-dur-3); }
.js .nav-section.is-collapsible.is-open .nav-section-inner { transition: padding var(--sx-dur-3) var(--sx-ease-out), visibility 0s; }
.nav-section.is-collapsible .nav-link { height: 30px; gap: 10px; padding: 0 10px; }
.nav-section.is-collapsible .nav-link .icon { width: 15px; height: 15px; }
.nav-section.is-collapsible .nav-link.is-active::before { left: -10px; top: 6px; bottom: 6px; width: 2px; border-radius: 2px; }
.nav-group-toggle {
    position: relative; display: flex; align-items: center; gap: 12px; width: 100%; height: var(--nav-h); padding: 0 10px 0 14px;
    border: 0; border-radius: var(--sx-r-md); background: transparent; color: var(--sx-ink-2); font: inherit; font-size: var(--sx-fs-base);
    text-align: left; cursor: pointer; transition: background-color var(--sx-dur-1) var(--sx-ease-out), color var(--sx-dur-1) var(--sx-ease-out);
}
.nav-group-toggle:hover { background: var(--sx-fill); color: var(--sx-ink); }
.nav-group-toggle:focus-visible { outline: 2px solid var(--sx-focus); outline-offset: -2px; }
.nav-group-toggle > .icon { width: 16px; height: 16px; flex: none; opacity: .75; }
.nav-group-toggle > .nav-label { flex: 1; }
.nav-group-toggle > .nav-group-chevron { width: 14px; height: 14px; opacity: .55; transition: transform var(--sx-dur-3) var(--sx-ease-out); }
.nav-section.is-open > .nav-group-toggle { color: var(--sx-ink); font-weight: var(--sx-strong-weight); }
.nav-section.is-open > .nav-group-toggle > .icon { opacity: 1; }
.nav-section.is-open > .nav-group-toggle > .nav-group-chevron { transform: rotate(180deg); }
.nav-group-dot { display: none; width: 6px; height: 6px; flex: none; border-radius: 50%; background: var(--sx-accent); }
.nav-section.has-active:not(.is-open) .nav-group-dot { display: block; }
.no-js .nav-group-chevron { display: none; }
.nav-section-end { margin-top: 8px; padding-top: 8px; box-shadow: inset 0 1px 0 var(--sx-line-soft); }
@media (prefers-reduced-motion: reduce) {
    .js .nav-section.is-collapsible .nav-section-items, .nav-group-toggle > .nav-group-chevron { transition: none; }
}
/* Laci sidebar di HP/tablet: target sentuh lebih besar (menimpa tinggi menu di atas). */
@media (max-width: 960px) {
    .nav-link, .nav-group-toggle { height: 40px; font-size: var(--sx-fs-md); }
    .nav-section.is-collapsible .nav-link { height: 38px; }
}

/* Menu Ekspor (pola Export Menu Sassly UI) di ujung kanan baris jumlah data bar filter. */
.filter-chips { gap: 6px 8px; }
.filter-chips .export-menu { margin-left: auto; }
.export-menu > summary { list-style: none; }
.export-menu > summary::-webkit-details-marker { display: none; }
.export-menu .dropdown-panel { left: auto; right: 0; width: 240px; transform-origin: top right; }
.export-menu .dropdown-item .icon { color: var(--sx-muted); }
.export-menu[open] > summary { background: var(--sx-fill); }

/* --- Grafik (standar Sassly: Line Trend, Column Bars, Share Donut, Ranked Bars, Conversion Funnel — 14 Nov 2026) ----------------
   Dirender server (Chart.php); pembacaan nilai (garis bantu, titik, kartu nilai) oleh app.js lewat CSSOM. Warna hanya token --ch-*. */
.chart { gap: 10px; }
.chart-head { align-items: baseline; }
.chart-title { font-size: var(--sx-fs-base); font-weight: 600; color: var(--sx-ink); }
.chart-note { font-size: var(--sx-fs-xs); color: var(--sx-muted); font-variant-numeric: tabular-nums; }
.chart-legend { gap: 2px 14px; font-size: var(--sx-fs-xs); color: var(--sx-muted); }
.chart-legend b { color: var(--sx-ink); }
.legend-swatch.is-line { width: 14px; height: 2px; border-radius: 1px; box-shadow: none; }
.legend-swatch.is-prev { height: 0; border-top: 2px dashed var(--sx-faint); background: none; }
.legend-swatch.is-tick { width: 2px; height: 12px; border-radius: 1px; background: var(--sx-ink); box-shadow: none; }
.chart-body { grid-template-rows: 200px auto; }
.chart-sm .chart-body { grid-template-rows: 150px auto; }
.chart-lg .chart-body { grid-template-rows: 240px auto; }
.chart-plot { position: relative; grid-column: 2; grid-row: 1; min-width: 0; }
.chart-plot .chart-svg { position: relative; z-index: 1; }
.chart-svg .grid { stroke: var(--sx-line-soft); stroke-dasharray: 2 3; }
.chart-svg .axis { stroke: var(--sx-line); }
.chart-svg .line { fill: none; stroke-width: 2px; stroke-linejoin: round; stroke-linecap: round; }
.chart-svg .l-prev { fill: none; stroke: var(--sx-faint); stroke-width: 1.5px; stroke-dasharray: 4 4; stroke-linecap: round; }
.chart-svg .area { stroke: none; }
.gs { stop-opacity: .2; } .gs.gs-end { stop-opacity: 0; }
.gs-1 { stop-color: var(--ch-1); } .gs-2 { stop-color: var(--ch-2); } .gs-3 { stop-color: var(--ch-3); }
.gs-4 { stop-color: var(--ch-4); } .gs-5 { stop-color: var(--ch-5); } .gs-6 { stop-color: var(--ch-6); }
.chart-svg .bar { transition: opacity var(--dur-fast); }
.chart-svg.has-active .bar { opacity: .38; }
.chart-svg.has-active .bar.is-active { opacity: 1; }
.chart-plot.is-live .hit:hover { fill: transparent; }
/* Garis bantu (garis: 1 px; batang: pita selebar satu label di belakang batang), titik, kartu nilai. */
.chart-cross { position: absolute; top: 0; bottom: 0; left: 0; z-index: 0; width: 1px; background: var(--sx-line-strong); opacity: 0; pointer-events: none; }
.chart-bars .chart-cross { background: var(--sx-fill-strong); border-radius: 4px; }
.chart-plot.is-reading .chart-cross { opacity: 1; }
.chart-dot { position: absolute; z-index: 2; width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%; background: var(--ch-1);
    box-shadow: 0 0 0 2px var(--sx-surface), 0 1px 3px rgba(0, 0, 0, .18); pointer-events: none; }
.chart-dot.c2 { background: var(--ch-2); } .chart-dot.c3 { background: var(--ch-3); } .chart-dot.c4 { background: var(--ch-4); }
.chart-dot.c5 { background: var(--ch-5); } .chart-dot.c6 { background: var(--ch-6); }
.chart-dot.is-prev { width: 8px; height: 8px; margin: -4px 0 0 -4px; background: var(--sx-surface); box-shadow: inset 0 0 0 2px var(--sx-faint); }
.chart-tip { position: absolute; top: 6px; left: 0; z-index: 3; min-width: 150px; max-width: 260px; padding: 8px 10px; border-radius: var(--sx-r-lg);
    background: var(--sx-surface); box-shadow: var(--sx-shadow-3); font-size: var(--sx-fs-xs); color: var(--sx-muted); pointer-events: none;
    opacity: 0; transform: translateY(3px); transition: opacity var(--dur-fast), transform var(--dur-fast); }
.chart-plot.is-reading .chart-tip { opacity: 1; transform: none; }
.chart-tip-title { margin: 0 0 4px; font-weight: 500; color: var(--sx-muted); white-space: nowrap; }
.chart-tip-row { display: grid; grid-template-columns: 12px auto minmax(0, 1fr); align-items: center; gap: 6px; line-height: 1.7; white-space: nowrap; }
.chart-tip-row b { color: var(--sx-ink); font-weight: 600; font-variant-numeric: tabular-nums; }
.chart-tip-row span:last-child { overflow: hidden; text-overflow: ellipsis; }
.chart-tip-row.is-total { margin-top: 2px; padding-top: 2px; border-top: 1px solid var(--sx-line-soft); }
.chart-tip-sw { width: 10px; height: 10px; border-radius: 3px; background: var(--ch-1); }
.chart-lines .chart-tip-sw { height: 2px; border-radius: 1px; }
.chart-tip-sw.c2 { background: var(--ch-2); } .chart-tip-sw.c3 { background: var(--ch-3); } .chart-tip-sw.c4 { background: var(--ch-4); }
.chart-tip-sw.c5 { background: var(--ch-5); } .chart-tip-sw.c6 { background: var(--ch-6); }
.chart-tip-sw.is-prev { height: 0; border-top: 2px dashed var(--sx-faint); border-radius: 0; background: none; }

/* Batang berperingkat: nama & nilai satu baris, batang 8 px di bawah, penanda periode lalu. */
.chart-hbars .hbars { gap: 12px; }
.chart-hbars .hbar { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "label value" "track track"; gap: 6px 12px; }
.chart-hbars .hbar-label { grid-area: label; font-size: var(--sx-fs-sm); color: var(--sx-ink-2); }
.chart-hbars .hbar-label a { color: inherit; }
.chart-hbars .hbar-label a:hover { color: var(--sx-ink); }
.chart-hbars .hbar-value { grid-area: value; min-width: 0; font-size: var(--sx-fs-sm); font-weight: 600; }
.hbar-share { margin-left: 6px; font-size: var(--sx-fs-xs); font-weight: 400; color: var(--sx-muted); }
.chart-hbars .hbar-track { grid-area: track; height: 8px; }
.hbar-prev { fill: var(--sx-ink); }
.hbar-legend { margin-top: 2px; }

/* Donut komposisi: total di tengah, legenda nilai + persen; menyempit → legenda di bawah. */
.chart-donut { container-type: inline-size; }
.donut-body { display: grid; grid-template-columns: 148px minmax(0, 1fr); align-items: center; gap: 20px; }
.donut-wrap { position: relative; width: 148px; height: 148px; }
.donut { display: block; width: 100%; height: 100%; }
.donut-track { fill: none; stroke: var(--ch-track); stroke-width: 5; }
.donut .seg { fill: none; stroke-width: 5; transition: opacity var(--dur-fast), stroke-width var(--dur-fast) var(--ease); }
.donut .seg-1 { stroke: var(--ch-1); } .donut .seg-2 { stroke: var(--ch-2); } .donut .seg-3 { stroke: var(--ch-3); }
.donut .seg-4 { stroke: var(--ch-4); } .donut .seg-5 { stroke: var(--ch-5); } .donut .seg-6 { stroke: var(--ch-6); }
.donut.has-active .seg { opacity: .3; }
.donut.has-active .seg.is-active { opacity: 1; stroke-width: 6; }
.donut-center { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 1px; text-align: center; pointer-events: none; }
.donut-total { font-size: 20px; font-weight: 600; letter-spacing: -.02em; color: var(--sx-ink); font-variant-numeric: tabular-nums; line-height: 1.15; }
.donut-caption { max-width: 100px; font-size: var(--sx-fs-xs); line-height: 1.3; color: var(--sx-muted); }
.donut-legend { display: grid; gap: 8px; font-size: var(--sx-fs-sm); }
.donut-legend li { display: grid; grid-template-columns: 10px minmax(0, 1fr) auto 46px; align-items: center; gap: 8px; }
.donut-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--sx-ink-2); }
.donut-name a { color: inherit; }
.donut-legend b { font-weight: 600; color: var(--sx-ink); text-align: right; font-variant-numeric: tabular-nums; }
.donut-pct { font-size: var(--sx-fs-xs); color: var(--sx-muted); text-align: right; font-variant-numeric: tabular-nums; }
.donut-legend li.is-active .donut-name { color: var(--sx-ink); }
/* Kartu sempit (span-4, HP): donut 112 px; sangat sempit → legenda di bawah. Setelah aturan dasar (kueri kontainer tanpa spesifisitas). */
@container (max-width: 440px) { .donut-body { grid-template-columns: 112px minmax(0, 1fr); gap: 14px; } .donut-wrap { width: 112px; height: 112px; }
    .donut-total { font-size: 16px; } .donut-caption { max-width: 64px; }
    .donut-legend li { grid-template-columns: 10px minmax(0, 1fr) auto 40px; gap: 6px; } }
@container (max-width: 290px) { .donut-body { grid-template-columns: 1fr; justify-items: center; } .donut-legend { width: 100%; } }

/* Funnel: batang di tengah (lebar = porsi tahap pertama), jumlah + persen lanjut di kanan. */
.funnel { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.funnel-step { display: grid; grid-template-columns: minmax(84px, 30%) minmax(0, 1fr) 88px; grid-template-areas: "label track value" "label track rate";
    align-items: center; column-gap: 12px; }
.funnel-label { grid-area: label; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: var(--sx-fs-sm); color: var(--sx-ink-2); }
.funnel-label a { color: inherit; }
.funnel-track { grid-area: track; display: block; width: 100%; height: 28px; }
.funnel-bg { fill: var(--sx-fill); }
.funnel-value { grid-area: value; align-self: end; font-size: var(--sx-fs-sm); font-weight: 600; text-align: right; color: var(--sx-ink); font-variant-numeric: tabular-nums; }
.funnel-rate { grid-area: rate; align-self: start; font-size: var(--sx-fs-xs); text-align: right; color: var(--sx-muted); font-variant-numeric: tabular-nums; }

/* Garis kecil kartu angka. */
.spark { display: block; width: 100%; height: 28px; overflow: visible; }
.spark-line { fill: none; stroke-width: 1.5px; stroke-linejoin: round; }
.spark-area { stroke: none; opacity: .1; }
.spark .l1 { stroke: var(--ch-1); } .spark .l2 { stroke: var(--ch-2); } .spark .l3 { stroke: var(--ch-3); }
.spark .l4 { stroke: var(--ch-4); } .spark .l5 { stroke: var(--ch-5); } .spark .l6 { stroke: var(--ch-6); }
.spark .a1 { fill: var(--ch-1); } .spark .a2 { fill: var(--ch-2); } .spark .a3 { fill: var(--ch-3); }
.spark .a4 { fill: var(--ch-4); } .spark .a5 { fill: var(--ch-5); } .spark .a6 { fill: var(--ch-6); }

/* --- Kartu angka dengan pembanding (KPI tile Service Overview) ------------------------------------------------------- */
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 196px), 1fr)); gap: 12px; }
/* Jumlah kolom dari jumlah kartu (kpi_cols()) supaya baris selalu penuh: 6 → 3 × 2, 8 → 4 × 2, 10 → 5 × 2. */
.kpis.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .kpis.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.kpis.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } .kpis.cols-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
@media (max-width: 1240px) {
    .kpis.cols-5 .kpi-value, .kpis.cols-4 .kpi-value { font-size: 22px; }
    .kpis.cols-5 .kpi-value.kpi-long, .kpis.cols-4 .kpi-value.kpi-long { font-size: 16px; line-height: 1.7; }
    .kpis.cols-5 .kpi { padding: 12px 14px; }
}
@media (max-width: 900px) { .kpis.cols-4, .kpis.cols-5 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 560px) {
    .kpis, .kpis.cols-3, .kpis.cols-4, .kpis.cols-5 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .kpi { padding: 12px; }
    .kpi-value { font-size: 22px; }
    .kpi-value.kpi-long { font-size: 15px; line-height: 1.75; }
    .kpi-foot { gap: 4px 6px; }
}
.kpi { position: relative; display: flex; flex-direction: column; min-width: 0; padding: 14px 16px; border-radius: var(--sx-card-radius);
    background: var(--sx-card-bg); box-shadow: var(--sx-card-shadow); color: var(--sx-ink); }
.kpi-label { display: flex; align-items: center; gap: 6px; min-width: 0; font-size: var(--sx-fs-sm); color: var(--sx-muted); }
.kpi-label .icon { flex: none; width: 14px; height: 14px; }
.kpi-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kpi-value { margin-top: 6px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 26px; font-weight: 600; line-height: 1.15;
    letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.kpi-value.kpi-long { font-size: 20px; letter-spacing: -.01em; line-height: 1.5; }
.kpi-unit { margin-left: 4px; font-size: var(--sx-fs-sm); font-weight: 400; letter-spacing: 0; color: var(--sx-muted); }
.kpi-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin-top: 8px; font-size: var(--sx-fs-xs); color: var(--sx-muted); }
.kpi-prev { font-variant-numeric: tabular-nums; }
.kpi.has-spark .spark { margin-top: auto; padding-top: 10px; }
.delta { display: inline-flex; align-items: center; gap: 3px; height: 19px; padding: 0 6px; border-radius: var(--sx-r-pill); font-weight: 600;
    font-variant-numeric: tabular-nums; background: var(--sx-fill); color: var(--sx-ink-2); box-shadow: inset 0 0 0 1px var(--sx-line); }
.delta .icon { width: 12px; height: 12px; }
.delta-good { background: var(--st-cool-bg); color: var(--st-cool); box-shadow: inset 0 0 0 1px var(--st-cool-ln); }
.delta-bad { background: var(--st-hot-bg); color: var(--st-hot); box-shadow: inset 0 0 0 1px var(--st-hot-ln); }
.kpi-link { transition: box-shadow var(--dur-fast); }
.kpi-link:hover { box-shadow: var(--sx-shadow-2); }
.kpi-link .stretched-link { color: inherit; text-decoration: none; }
.kpi-link .stretched-link::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.kpi-link .stretched-link:focus-visible { outline: none; }
.kpi-link .stretched-link:focus-visible::after { outline: 2px solid var(--sx-primary); outline-offset: 2px; }
.kpi .qm { position: relative; z-index: 1; }

/* --- Periode (Service Overview: segmen preset + kustom + bandingkan + ekspor) ----------------------------------------- */
.period-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 8px; }
@media (max-width: 720px) {
    .period-bar { justify-content: flex-start; width: 100%; }
    .period-bar > .period-presets { flex: 1 1 100%; }
    .dash-head-row > .period-bar { margin-left: 0; }
    .compare-toggle { white-space: normal; }
}
.period-presets { flex-wrap: nowrap; max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.period-presets::-webkit-scrollbar { display: none; }
.period-presets .segment { flex: none; white-space: nowrap; }
.period-custom > summary { gap: 6px; font-variant-numeric: tabular-nums; }
.period-custom > summary .icon { width: 14px; height: 14px; }
.period-custom.is-active > summary { color: var(--sx-ink); box-shadow: inset 0 0 0 1px var(--sx-ink-2); }
.period-custom .dropdown-panel { right: 0; left: auto; width: 290px; padding: 12px; transform-origin: top right; }
.period-form { display: grid; gap: 10px; margin: 0; }
.period-form-dates { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.period-form label { display: grid; gap: 4px; font-size: var(--sx-fs-xs); color: var(--sx-muted); }
.period-form .input { width: 100%; }
.period-quick { display: flex; flex-wrap: wrap; gap: 6px; }
.compare-toggle { display: inline-flex; align-items: center; gap: 8px; height: 30px; padding: 0 2px; font-size: var(--sx-fs-sm); color: var(--sx-ink-2);
    text-decoration: none; white-space: nowrap; }
.compare-toggle:hover { color: var(--sx-ink); text-decoration: none; }
.compare-toggle .switch-ui { position: relative; flex: none; width: 28px; height: 16px; border-radius: var(--sx-r-pill); background: var(--sx-fill-strong);
    transition: background var(--dur-fast); }
.compare-toggle .switch-ui::after { content: ""; position: absolute; top: 2px; left: 2px; width: 12px; height: 12px; border-radius: 50%;
    background: var(--sx-surface); box-shadow: var(--sx-shadow-1); transition: transform var(--dur-fast) var(--ease); }
.compare-toggle.is-on .switch-ui { background: var(--sx-primary); }
.compare-toggle.is-on .switch-ui::after { transform: translateX(12px); }
.period-line { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; margin: 0; font-size: var(--sx-fs-sm); color: var(--sx-muted); }
.period-line .icon { width: 14px; height: 14px; }
.period-line strong { font-weight: 500; color: var(--sx-ink-2); }
/* Preset di bar filter laporan (sebelum kotak tanggal). */
.filter-bar .period-presets { order: 0; }

/* --- Beranda: analitik periode (kartu grafik 12 kolom) ------------------------------------------------------------- */
.dash-head-row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 10px 16px; }
.dash-head-row .section-title { padding: 0; }
.dash-head-row > .period-bar { margin-left: auto; }
.dash-charts { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 16px; }
.dash-charts > .span-4 { grid-column: span 4; } .dash-charts > .span-5 { grid-column: span 5; } .dash-charts > .span-6 { grid-column: span 6; }
.dash-charts > .span-7 { grid-column: span 7; } .dash-charts > .span-8 { grid-column: span 8; } .dash-charts > .span-12 { grid-column: span 12; }
@media (max-width: 1240px) { .dash-charts > .span-4, .dash-charts > .span-5, .dash-charts > .span-7, .dash-charts > .span-8 { grid-column: span 6; } }
@media (max-width: 900px) { .dash-charts > * { grid-column: 1 / -1 !important; } }
.chart-card { display: flex; flex-direction: column; min-width: 0; }
.chart-card > .panel-body { flex: 1; padding: 16px; }
.chart-card-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 16px; border-top: 1px solid var(--sx-line-soft);
    font-size: var(--sx-fs-xs); color: var(--sx-muted); }
.chart-card-foot a { display: inline-flex; align-items: center; gap: 4px; color: var(--sx-ink-2); font-weight: 500; }
.chart-card-foot a:hover { color: var(--sx-ink); }
.chart-card-foot .icon { width: 13px; height: 13px; }

/* --- Laporan: kartu angka + grafik utama & pendamping (14 Nov 2026) --------------------------------------------------- */
.report-charts { display: grid; gap: 16px; }
.report-charts.has-side { grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr); }
@media (max-width: 1100px) { .report-charts.has-side { grid-template-columns: minmax(0, 1fr); } }
.report-charts .chart-card > .panel-body { padding: 16px; }
.report-period span { white-space: nowrap; }
/* Tabel laporan (pola Record Grid): satu baris per data, kolom selebar isinya, gulir mendatar di dalam kartu bila lebar. */
.report-grid-table th, .report-grid-table td { white-space: nowrap; }
@media print {
    .kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
    .kpi { padding: 10px 12px; box-shadow: inset 0 0 0 1px #D1D6DC; break-inside: avoid; }
    .kpi .spark, .chart-tip, .chart-cross, .chart-dot { display: none; }
    .report-charts.has-side { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
}
