/* =====================================================================
   e-BOS — Tema kustom di atas AdminLTE 4 / Bootstrap 5.3
   ===================================================================== */
:root {
    --eb-font: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    --eb-primary: #0f766e;
    --eb-primary-rgb: 15, 118, 110;
    --eb-primary-dark: #115e59;
    --eb-accent: #f59e0b;
    --eb-sidebar: #0b2530;
    --eb-sidebar-2: #0d3440;
    --eb-radius: 14px;
    --eb-radius-sm: 10px;
    --eb-shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 1px 3px rgba(16, 24, 40, .06);
    --eb-shadow-lg: 0 12px 32px -12px rgba(16, 24, 40, .18);
    --eb-border: rgba(15, 23, 42, .08);
    --eb-bottom-nav: 64px;

    --bs-body-font-family: var(--eb-font);
    --bs-body-font-size: .925rem;
    --bs-primary: #0f766e;
    --bs-primary-rgb: 15, 118, 110;
    --bs-link-color: #0f766e;
    --bs-link-color-rgb: 15, 118, 110;
    --bs-link-hover-color: #115e59;
    --bs-primary-text-emphasis: #0b524c;
    --bs-primary-bg-subtle: #ccfbf1;
    --bs-primary-border-subtle: #99f6e4;
    --bs-border-radius: .6rem;
    --bs-border-radius-lg: .85rem;
}

[data-bs-theme=dark] {
    --eb-border: rgba(255, 255, 255, .08);
    --bs-primary: #2dd4bf;
    --bs-primary-rgb: 45, 212, 191;
    --bs-link-color: #2dd4bf;
    --bs-link-color-rgb: 45, 212, 191;
    --bs-link-hover-color: #5eead4;
    --bs-primary-text-emphasis: #5eead4;
    --bs-primary-bg-subtle: #042f2e;
    --bs-primary-border-subtle: #115e59;
    --bs-body-bg: #0f1720;
    --bs-tertiary-bg: #0b1219;
    --bs-secondary-bg: #16212c;
}

body { font-family: var(--eb-font); -webkit-font-smoothing: antialiased; letter-spacing: -.005em; }
.xsmall { font-size: .72rem; }
.min-w-0 { min-width: 0; }
.fw-800 { font-weight: 800; }
.tabular { font-variant-numeric: tabular-nums; }

/* ---------- Tombol primer ---------- */
.btn-primary {
    --bs-btn-bg: #0f766e; --bs-btn-border-color: #0f766e;
    --bs-btn-hover-bg: #115e59; --bs-btn-hover-border-color: #115e59;
    --bs-btn-active-bg: #134e4a; --bs-btn-active-border-color: #134e4a;
    --bs-btn-disabled-bg: #0f766e; --bs-btn-disabled-border-color: #0f766e;
    --bs-btn-focus-shadow-rgb: 15, 118, 110;
}
.btn-outline-primary {
    --bs-btn-color: var(--bs-primary); --bs-btn-border-color: var(--bs-primary);
    --bs-btn-hover-bg: var(--bs-primary); --bs-btn-hover-border-color: var(--bs-primary);
    --bs-btn-active-bg: var(--bs-primary); --bs-btn-active-border-color: var(--bs-primary);
}
.btn { font-weight: 600; border-radius: var(--eb-radius-sm); }
.btn-sm { border-radius: 8px; }
.btn-icon { width: 34px; height: 34px; padding: 0; display: inline-flex; align-items: center; justify-content: center; }
.btn-soft-primary { background: rgba(var(--eb-primary-rgb), .1); color: var(--bs-primary); border: 0; }
.btn-soft-primary:hover { background: rgba(var(--eb-primary-rgb), .18); color: var(--bs-primary); }
.form-control, .form-select { border-radius: var(--eb-radius-sm); }
.form-control:focus, .form-select:focus { border-color: rgba(var(--eb-primary-rgb), .55); box-shadow: 0 0 0 .2rem rgba(var(--eb-primary-rgb), .15); }
.form-check-input:checked { background-color: var(--eb-primary); border-color: var(--eb-primary); }
.form-label { font-weight: 600; font-size: .83rem; margin-bottom: .35rem; }
.input-group-text { border-radius: var(--eb-radius-sm); }

/* ---------- Navbar ---------- */
.app-header { border-bottom: 1px solid var(--eb-border); box-shadow: none; min-height: 60px; }
.app-header .nav-link { color: var(--bs-body-color); border-radius: 10px; }
.app-header .nav-link:hover { background: var(--bs-tertiary-bg); }
.chip { display: inline-flex; align-items: center; gap: .35rem; padding: .3rem .7rem; border-radius: 99px;
    background: var(--bs-tertiary-bg); border: 1px solid var(--eb-border); font-size: .78rem; font-weight: 600; }
.chip-dot { width: 7px; height: 7px; border-radius: 50%; display: inline-block; margin-left: .25rem; }
.notif-dot { position: absolute; top: 4px; right: 2px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 99px;
    background: #ef4444; color: #fff; font-size: .62rem; font-weight: 700; display: flex; align-items: center; justify-content: center;
    border: 2px solid var(--bs-body-bg); }
.notif-menu { width: 360px; max-width: calc(100vw - 24px); border-radius: var(--eb-radius); overflow: hidden; box-shadow: var(--eb-shadow-lg); }
.notif-list { max-height: 360px; overflow-y: auto; }
.notif-item { display: flex; gap: .75rem; padding: .7rem 1rem; color: var(--bs-body-color); text-decoration: none; border-bottom: 1px solid var(--eb-border); }
.notif-item:hover { background: var(--bs-tertiary-bg); }
.notif-item.unread { background: rgba(var(--eb-primary-rgb), .05); }
.notif-item.unread .fw-semibold::after { content: ''; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--eb-primary); margin-left: 6px; vertical-align: middle; }
.notif-icon { width: 36px; height: 36px; flex: none; border-radius: 10px; display: flex; align-items: center; justify-content: center;
    background: rgba(var(--eb-primary-rgb), .1); color: var(--bs-primary); }

.avatar { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; flex: none; }
.avatar-initial { display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: .8rem;
    color: #fff; background: linear-gradient(135deg, #14b8a6, #0f766e); }
.avatar-lg { width: 84px; height: 84px; font-size: 1.6rem; }

/* ---------- Sidebar ---------- */
.app-sidebar { background: linear-gradient(180deg, var(--eb-sidebar) 0%, var(--eb-sidebar-2) 100%) !important; border-right: 0; }
.app-sidebar .sidebar-brand { border-bottom: 1px solid rgba(255, 255, 255, .06); height: 60px; }
.app-sidebar .brand-link { display: flex; align-items: center; gap: .65rem; padding: 0 1rem; text-decoration: none; }
.app-sidebar .brand-image { width: 34px; height: 34px; max-height: 34px; margin: 0; float: none; border-radius: 10px; object-fit: contain; }
.app-sidebar .brand-text { display: flex; flex-direction: column; line-height: 1.15; color: #fff; }
.app-sidebar .brand-text b { font-size: 1.05rem; letter-spacing: .01em; }
.app-sidebar .brand-text small { font-size: .68rem; opacity: .6; font-weight: 500; white-space: nowrap; }
.sidebar-wrapper { display: flex; flex-direction: column; }
.sidebar-menu { padding: 0 .6rem; }
.sidebar-menu .nav-header { font-size: .66rem !important; letter-spacing: .1em; font-weight: 700; opacity: .45; padding: 1.1rem .75rem .4rem !important; }
.sidebar-menu .nav-link { border-radius: 10px; margin-bottom: 2px; padding: .58rem .8rem; color: rgba(255, 255, 255, .72) !important; font-weight: 500; }
.sidebar-menu .nav-link:hover { background: rgba(255, 255, 255, .06) !important; color: #fff !important; }
.sidebar-menu .nav-link.active { background: linear-gradient(90deg, rgba(45, 212, 191, .2), rgba(45, 212, 191, .06)) !important; color: #fff !important;
    box-shadow: inset 3px 0 0 #2dd4bf; }
.sidebar-menu .nav-link.active .nav-icon { color: #5eead4; }
.sidebar-menu .nav-link p { display: flex; align-items: center; flex: 1; }
.nav-badge { margin-left: auto; font-size: .66rem; border-radius: 99px; }
.sidebar-foot { margin-top: auto; padding: 1rem 1.4rem 1.2rem; color: #fff; border-top: 1px solid rgba(255, 255, 255, .06); }
.sidebar-mini.sidebar-collapse .sidebar-foot { display: none; }

/* ---------- Header halaman ---------- */
.app-content-header { padding: 1.25rem .5rem .5rem; }
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; flex-wrap: wrap; }
.page-title { font-size: 1.45rem; font-weight: 800; margin: 0; letter-spacing: -.02em; }
.page-subtitle { margin: .2rem 0 0; color: var(--bs-secondary-color); font-size: .88rem; }
.page-actions { display: flex; gap: .5rem; flex-wrap: wrap; }
.breadcrumb { font-size: .78rem; }
.breadcrumb a { text-decoration: none; color: var(--bs-secondary-color); }
.app-content { padding: .75rem .5rem 1.5rem; }

/* ---------- Kartu ---------- */
.card { border: 1px solid var(--eb-border); border-radius: var(--eb-radius); box-shadow: var(--eb-shadow); }
.card > .card-header { background: transparent; border-bottom: 1px solid var(--eb-border); padding: .95rem 1.15rem; }
.card > .card-header:first-child { border-radius: var(--eb-radius) var(--eb-radius) 0 0; }
.card-title { font-weight: 700; font-size: 1rem; margin: 0; }
.card-body { padding: 1.15rem; }
.card-footer { background: transparent; border-top: 1px solid var(--eb-border); }
.card-head-flex { display: flex; align-items: center; justify-content: space-between; gap: .75rem; flex-wrap: wrap; }
.card-head-flex::after { display: none; }

/* Kartu statistik */
.stat { position: relative; overflow: hidden; height: 100%; padding: 1.1rem 1.15rem; display: flex; gap: .9rem; align-items: flex-start; }
.stat-icon { width: 46px; height: 46px; border-radius: 12px; flex: none; display: flex; align-items: center; justify-content: center; font-size: 1.25rem; }
.stat-label { font-size: .78rem; font-weight: 600; color: var(--bs-secondary-color); text-transform: uppercase; letter-spacing: .04em; }
.stat-value { font-size: 1.35rem; font-weight: 800; letter-spacing: -.02em; line-height: 1.25; font-variant-numeric: tabular-nums; }
.stat-note { font-size: .78rem; color: var(--bs-secondary-color); }
.tone-teal   { background: rgba(20, 184, 166, .12); color: #0d9488; }
.tone-blue   { background: rgba(59, 130, 246, .12); color: #2563eb; }
.tone-amber  { background: rgba(245, 158, 11, .14); color: #d97706; }
.tone-violet { background: rgba(139, 92, 246, .12); color: #7c3aed; }
.tone-rose   { background: rgba(244, 63, 94, .12); color: #e11d48; }
.tone-slate  { background: rgba(100, 116, 139, .14); color: #475569; }
[data-bs-theme=dark] .tone-slate { color: #cbd5e1; }

/* Hero sambutan */
.hero { border: 0; color: #fff; background: radial-gradient(1200px 300px at 100% 0%, rgba(253, 230, 138, .25), transparent 60%),
    linear-gradient(120deg, #0b2530 0%, #0f766e 65%, #14b8a6 100%); }
.hero .card-body { padding: 1.5rem; }
.hero h2 { font-weight: 800; font-size: 1.4rem; letter-spacing: -.02em; }
.hero .hero-meta { display: flex; flex-wrap: wrap; gap: .5rem; }
.hero .hero-pill { background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .18); padding: .3rem .75rem; border-radius: 99px; font-size: .8rem; }
.hero .btn-light { color: #0f766e; }
.hero-art { position: absolute; right: 1.25rem; bottom: -10px; font-size: 7rem; opacity: .12; line-height: 1; }

/* Progress */
.progress { border-radius: 99px; background: var(--bs-secondary-bg); }
.progress-thin { height: 7px; }
.progress-bar { border-radius: 99px; }
.bg-teal { background-color: #14b8a6 !important; }

/* ---------- Badge ---------- */
.badge { font-weight: 600; }
.badge-soft { font-weight: 600; padding: .38em .7em; border-radius: 99px; }
.badge-soft.text-bg-primary   { background: rgba(var(--bs-primary-rgb), .12) !important; color: var(--bs-primary-text-emphasis) !important; }
.badge-soft.text-bg-success   { background: rgba(var(--bs-success-rgb), .12) !important; color: var(--bs-success-text-emphasis) !important; }
.badge-soft.text-bg-info      { background: rgba(var(--bs-info-rgb), .14) !important; color: var(--bs-info-text-emphasis) !important; }
.badge-soft.text-bg-warning   { background: rgba(var(--bs-warning-rgb), .18) !important; color: var(--bs-warning-text-emphasis) !important; }
.badge-soft.text-bg-danger    { background: rgba(var(--bs-danger-rgb), .12) !important; color: var(--bs-danger-text-emphasis) !important; }
.badge-soft.text-bg-secondary { background: rgba(var(--bs-secondary-rgb), .14) !important; color: var(--bs-secondary-text-emphasis) !important; }
.badge-soft.text-bg-dark      { background: rgba(15, 23, 42, .85) !important; color: #fde68a !important; }
.dot-label { display: inline-flex; align-items: center; gap: .4rem; font-size: .82rem; font-weight: 500; }
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; flex: none; }
.kat-tag { display: inline-flex; align-items: center; gap: .35rem; padding: .22rem .6rem; border-radius: 8px; font-size: .75rem; font-weight: 600;
    background: color-mix(in srgb, var(--c) 12%, transparent); color: var(--c); white-space: nowrap; }
[data-bs-theme=dark] .kat-tag { color: color-mix(in srgb, var(--c) 55%, #fff); }

/* ---------- Tabel ---------- */
.table { --bs-table-bg: transparent; margin-bottom: 0; }
.table-modern thead th { font-size: .72rem; text-transform: uppercase; letter-spacing: .05em; font-weight: 700; color: var(--bs-secondary-color);
    background: var(--bs-tertiary-bg); border-bottom: 1px solid var(--eb-border); white-space: nowrap; padding: .7rem .9rem; }
.table-modern td { padding: .8rem .9rem; vertical-align: middle; border-color: var(--eb-border); }
.table-modern tbody tr:hover { background: rgba(var(--eb-primary-rgb), .03); }
.table-modern tfoot td { font-weight: 700; background: var(--bs-tertiary-bg); }
.cell-title { font-weight: 600; color: var(--bs-body-color); text-decoration: none; }
.cell-title:hover { color: var(--bs-primary); }
.cell-sub { font-size: .78rem; color: var(--bs-secondary-color); }

/* Tabel menjadi kartu di layar kecil */
@media (max-width: 767.98px) {
    .table-stack thead { display: none; }
    .table-stack, .table-stack tbody, .table-stack tr, .table-stack td, .table-stack tfoot { display: block; width: 100%; }
    .table-stack tr { border: 1px solid var(--eb-border); border-radius: var(--eb-radius-sm); margin: 0 0 .75rem; padding: .35rem .2rem; background: var(--bs-body-bg); }
    .table-stack tbody tr:hover { background: var(--bs-body-bg); }
    .table-stack td { border: 0 !important; padding: .35rem .8rem !important; display: flex; justify-content: space-between; gap: 1rem; text-align: right !important; }
    .table-stack td::before { content: attr(data-label); font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em;
        color: var(--bs-secondary-color); text-align: left; flex: none; max-width: 45%; padding-top: .1rem; }
    .table-stack td[data-label=""]::before, .table-stack td:not([data-label])::before { display: none; }
    .table-stack td.td-main { display: block; text-align: left !important; border-bottom: 1px dashed var(--eb-border) !important; padding-bottom: .55rem !important; margin-bottom: .2rem; }
    .table-stack td.td-main::before { display: none; }
    .table-stack td.td-actions { justify-content: flex-end; }
    .table-stack td.td-block { display: block; text-align: left !important; }
    .table-stack td.td-block::before { display: block; max-width: none; margin-bottom: .35rem; }
    .table-stack tfoot tr { background: var(--bs-tertiary-bg); }
    .card .table-responsive:has(.table-stack) { padding: .75rem; }
}

/* ---------- Komponen lain ---------- */
.empty-state { text-align: center; padding: 2.5rem 1rem; }
.empty-state .empty-icon { width: 72px; height: 72px; margin: 0 auto 1rem; border-radius: 20px; display: flex; align-items: center; justify-content: center;
    font-size: 2rem; background: rgba(var(--eb-primary-rgb), .08); color: var(--bs-primary); }
.empty-state h6 { font-weight: 700; margin-bottom: .25rem; }
.empty-state p { color: var(--bs-secondary-color); font-size: .87rem; max-width: 380px; margin: 0 auto 1rem; }

.filter-bar { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.filter-bar .form-control, .filter-bar .form-select { min-width: 150px; }
.search-box { position: relative; flex: 1 1 220px; }
.search-box i { position: absolute; left: .8rem; top: 50%; transform: translateY(-50%); color: var(--bs-secondary-color); }
.search-box input { padding-left: 2.2rem; }

.nav-pills-soft { gap: .35rem; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
.nav-pills-soft::-webkit-scrollbar { display: none; }
.nav-pills-soft .nav-link { border-radius: 99px; font-weight: 600; font-size: .83rem; color: var(--bs-secondary-color); white-space: nowrap; padding: .4rem .9rem; }
.nav-pills-soft .nav-link.active { background: var(--eb-primary); color: #fff; }
.nav-pills-soft .nav-link .count { margin-left: .35rem; font-size: .7rem; background: rgba(0, 0, 0, .08); padding: .05rem .45rem; border-radius: 99px; }
.nav-pills-soft .nav-link.active .count { background: rgba(255, 255, 255, .25); }

/* Daftar info (dl) */
.info-list { display: grid; grid-template-columns: 140px 1fr; gap: .55rem 1rem; margin: 0; font-size: .9rem; }
.info-list dt { color: var(--bs-secondary-color); font-weight: 500; }
.info-list dd { margin: 0; font-weight: 600; }
@media (max-width: 575.98px) { .info-list { grid-template-columns: 1fr; gap: .1rem; } .info-list dd { margin-bottom: .55rem; } }

/* Timeline riwayat */
.tl { list-style: none; margin: 0; padding: 0; position: relative; }
.tl::before { content: ''; position: absolute; left: 15px; top: 6px; bottom: 6px; width: 2px; background: var(--eb-border); }
.tl li { position: relative; padding: 0 0 1.1rem 46px; }
.tl li:last-child { padding-bottom: 0; }
.tl .tl-icon { position: absolute; left: 0; top: 0; width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
    background: var(--bs-body-bg); border: 2px solid var(--eb-border); font-size: .85rem; color: var(--bs-primary); }
.tl .tl-title { font-weight: 600; font-size: .88rem; }
.tl .tl-meta { font-size: .75rem; color: var(--bs-secondary-color); }
.tl .tl-text { font-size: .83rem; margin-top: .2rem; }

/* Stepper status alur */
.stepper { display: flex; gap: 0; overflow-x: auto; padding-bottom: .25rem; scrollbar-width: thin; }
.step { flex: 1 0 96px; text-align: center; position: relative; font-size: .74rem; font-weight: 600; color: var(--bs-secondary-color); }
.step::before { content: ''; position: absolute; top: 15px; left: -50%; width: 100%; height: 3px; background: var(--eb-border); z-index: 0; }
.step:first-child::before { display: none; }
.step .step-dot { position: relative; z-index: 1; width: 32px; height: 32px; margin: 0 auto .4rem; border-radius: 50%; display: flex; align-items: center;
    justify-content: center; background: var(--bs-secondary-bg); color: var(--bs-secondary-color); border: 3px solid var(--bs-body-bg); }
.step.done { color: var(--bs-body-color); }
.step.done .step-dot { background: var(--eb-primary); color: #fff; }
.step.done::before, .step.current::before { background: var(--eb-primary); }
.step.current .step-dot { background: var(--eb-accent); color: #fff; box-shadow: 0 0 0 4px rgba(245, 158, 11, .2); }
.step.current { color: var(--bs-body-color); }
.step.bad .step-dot { background: #ef4444; color: #fff; }

/* Pagu meter */
.pagu-meter .pm-row { display: flex; justify-content: space-between; font-size: .8rem; margin-bottom: .35rem; }
.pagu-meter .pm-row b { font-variant-numeric: tabular-nums; }

/* Form item usulan */
.item-card { border: 1px solid var(--eb-border); border-radius: var(--eb-radius-sm); padding: .9rem; margin-bottom: .75rem; position: relative; background: var(--bs-body-bg);
    transition: box-shadow .2s, border-color .2s; }
.item-card:focus-within { border-color: rgba(var(--eb-primary-rgb), .45); box-shadow: 0 0 0 .2rem rgba(var(--eb-primary-rgb), .08); }
.item-card.locked { background: var(--bs-tertiary-bg); }
.item-card .item-no { position: absolute; top: -10px; left: 12px; background: var(--eb-primary); color: #fff; font-size: .7rem; font-weight: 700;
    border-radius: 99px; padding: .1rem .55rem; }
.item-card .item-remove { position: absolute; top: .5rem; right: .5rem; }
.item-card .item-subtotal { font-weight: 800; font-variant-numeric: tabular-nums; }
.item-card .form-label { font-size: .75rem; color: var(--bs-secondary-color); }
.sticky-summary { position: sticky; top: 76px; }

/* Ringkasan bawah (mobile) form usulan */
.total-bar { position: sticky; bottom: calc(var(--eb-bottom-nav) + env(safe-area-inset-bottom)); z-index: 5; background: var(--bs-body-bg);
    border: 1px solid var(--eb-border); border-radius: var(--eb-radius); padding: .75rem 1rem; box-shadow: var(--eb-shadow-lg); }

/* Item verifikasi */
.vitem { border-left: 4px solid var(--c, var(--eb-primary)); }
.money { font-variant-numeric: tabular-nums; white-space: nowrap; }

/* ---------- Navigasi bawah (mobile) ---------- */
.bottom-nav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 1030; height: calc(var(--eb-bottom-nav) + env(safe-area-inset-bottom));
    padding-bottom: env(safe-area-inset-bottom); display: flex; align-items: stretch; justify-content: space-around;
    background: color-mix(in srgb, var(--bs-body-bg) 92%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid var(--eb-border); box-shadow: 0 -6px 24px -12px rgba(0, 0, 0, .15); }
.bottom-nav a { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; text-decoration: none;
    color: var(--bs-secondary-color); font-size: .68rem; font-weight: 600; }
.bottom-nav a i { font-size: 1.2rem; }
.bottom-nav a.active { color: var(--bs-primary); }
.bottom-nav a.bn-fab { flex: 0 0 auto; width: 52px; height: 52px; margin: -18px 4px 0; border-radius: 16px; align-self: center;
    background: linear-gradient(135deg, #14b8a6, #0f766e); color: #fff; box-shadow: 0 8px 20px -6px rgba(15, 118, 110, .6); }
.bottom-nav a.bn-fab i { font-size: 1.4rem; }
@media (max-width: 991.98px) {
    body.sidebar-open .bottom-nav { display: none; }
    .app-main { padding-bottom: calc(var(--eb-bottom-nav) + env(safe-area-inset-bottom)); }
    .app-footer { margin-bottom: calc(var(--eb-bottom-nav) + env(safe-area-inset-bottom)); }
}
@media (max-width: 575.98px) {
    .page-title { font-size: 1.2rem; }
    .app-content-header { padding: 1rem .25rem .25rem; }
    .app-content { padding: .5rem .25rem 1rem; }
    .card-body { padding: 1rem; }
    .stat { padding: .9rem; gap: .7rem; }
    .stat-icon { width: 40px; height: 40px; font-size: 1.1rem; }
    .stat-value { font-size: 1.1rem; }
    .page-actions { width: 100%; }
    .page-actions .btn { flex: 1; }
    .hero h2 { font-size: 1.15rem; }
    .hero-art { display: none; }
    .modal-dialog { margin: .75rem; }
}

/* Modal */
.modal-content { border: 0; border-radius: var(--eb-radius); box-shadow: var(--eb-shadow-lg); }
.modal-header { border-bottom: 1px solid var(--eb-border); }
.modal-footer { border-top: 1px solid var(--eb-border); }
@media (max-width: 575.98px) {
    .modal-fullscreen-sm-down .modal-content { border-radius: 0; }
}

/* Dropdown */
.dropdown-menu { border: 1px solid var(--eb-border); border-radius: 12px; box-shadow: var(--eb-shadow-lg); padding: .35rem; }
.dropdown-item { border-radius: 8px; padding: .45rem .75rem; font-size: .88rem; }

/* Kotak warna/ikon kategori */
.kat-icon { width: 40px; height: 40px; border-radius: 12px; display: flex; align-items: center; justify-content: center; flex: none; font-size: 1.1rem;
    background: color-mix(in srgb, var(--c) 14%, transparent); color: var(--c); }

/* SweetAlert */
.swal2-popup { font-family: var(--eb-font) !important; border-radius: 18px !important; }
.swal2-styled.swal2-confirm { background: #0f766e !important; border-radius: 10px !important; }
.swal2-styled.swal2-cancel { border-radius: 10px !important; }

/* ---------- Login ---------- */
.auth-body { min-height: 100vh; min-height: 100dvh; display: grid; grid-template-columns: 1.1fr 1fr; background: var(--bs-body-bg); }
.auth-side { position: relative; overflow: hidden; color: #fff; padding: 3rem; display: flex; flex-direction: column; justify-content: space-between;
    background: radial-gradient(800px 400px at 90% 10%, rgba(253, 230, 138, .22), transparent 60%),
                linear-gradient(145deg, #0b2530 0%, #0f766e 70%, #14b8a6 100%); }
.auth-side::after { content: ''; position: absolute; inset: auto -120px -160px auto; width: 420px; height: 420px; border-radius: 50%;
    border: 60px solid rgba(255, 255, 255, .06); }
.auth-side h1 { font-weight: 800; font-size: 2.3rem; letter-spacing: -.03em; line-height: 1.15; }
.auth-feature { display: flex; gap: .8rem; align-items: flex-start; margin-bottom: 1rem; }
.auth-feature i { width: 38px; height: 38px; border-radius: 10px; flex: none; display: flex; align-items: center; justify-content: center;
    background: rgba(255, 255, 255, .14); }
.auth-main { display: flex; align-items: center; justify-content: center; padding: 2rem 1.25rem; }
.auth-card { width: 100%; max-width: 400px; }
.auth-card .form-control { padding: .7rem .9rem; }
.auth-card .input-group .form-control { border-right: 0; }
.auth-card .input-group .btn { border: var(--bs-border-width) solid var(--bs-border-color); border-left: 0; background: var(--bs-body-bg); }
@media (max-width: 991.98px) {
    .auth-body { grid-template-columns: 1fr; }
    .auth-side { padding: 1.5rem 1.25rem 4.5rem; min-height: auto; }
    .auth-side h1 { font-size: 1.5rem; }
    .auth-side .auth-features, .auth-side .auth-foot { display: none !important; }
    .auth-main { margin-top: -3rem; align-items: flex-start; }
    .auth-card { background: var(--bs-body-bg); border-radius: 20px; padding: 1.5rem; box-shadow: var(--eb-shadow-lg); position: relative; z-index: 1; }
}

/* ---------- Cetak ---------- */
@media print {
    .app-header, .app-sidebar, .app-footer, .bottom-nav, .no-print, .page-actions, .breadcrumb { display: none !important; }
    .app-main { margin: 0 !important; padding: 0 !important; }
    .card { box-shadow: none; border: 0; }
}
.flex-none { flex: none; }
