/* ═══════════════════════════════════════════════════════════════════
   DAPM Kunir — Design System v2
   Ganti file: assets/css/style.css
   ═══════════════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Sora:wght@500;600;700;800&family=Inter:wght@400;500;600;700&family=IBM+Plex+Mono:wght@400;500&display=swap');

/* ── Token warna ────────────────────────────────────────────────── */
:root {
    --bg:            #F5F4EF;
    --panel:         #FFFFFF;
    --ink:           #12241E;
    --sub:           #6B7A72;
    --forest:        #0B2C24;
    --emerald:       #1E5E4F;
    --marigold:      #EE9F2E;
    --marigold-soft: rgba(238,159,46,0.11);
    --teal:          #2A6F77;
    --rose:          #D1495B;
    --rose-soft:     rgba(209,73,91,0.08);
    --line:          #E7E4DA;

    --sidebar-w: 232px;
}

/* ── Reset & Base ───────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: 'Inter', 'Segoe UI', sans-serif;
    font-size: 14px;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6, .disp {
    font-family: 'Sora', sans-serif;
}

a { text-decoration: none; color: inherit; }

/* ── Layout utama ───────────────────────────────────────────────── */
.app-wrapper {
    display: flex;
    min-height: 100vh;
}

/* ════════════════════════════════════════════════════════════════════
   SIDEBAR
   ════════════════════════════════════════════════════════════════════ */
.sidebar {
    width: var(--sidebar-w);
    flex-shrink: 0;
    background: var(--forest);
    color: #DCE7E1;
    display: flex;
    flex-direction: column;
    padding: 22px 14px 20px;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,0.1) transparent;
}

/* Brand */
.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 6px 22px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    margin-bottom: 8px;
}

.sidebar-brand-logo {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--marigold), #d9860f);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Sora', sans-serif;
    font-weight: 800;
    color: #1c1305;
    font-size: 16px;
    flex-shrink: 0;
    overflow: hidden;
}

.sidebar-brand-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 3px;
}

.sidebar-brand-logo span {
    font-family: 'Sora', sans-serif;
    font-weight: 800;
    font-size: 16px;
    color: #1c1305;
}

.sidebar-brand-text { line-height: 1; }
.sidebar-brand-name {
    font-weight: 700;
    font-size: 14px;
    color: #fff;
    line-height: 1.25;
}
.sidebar-brand-sub {
    font-size: 10px;
    opacity: 0.5;
    margin-top: 2px;
}

/* Bagian label */
.sidebar-section {
    font-size: 10px;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    opacity: 0.4;
    font-weight: 600;
    padding: 16px 10px 6px;
}

/* Nav */
.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.sidebar-nav a {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 9px 10px;
    border-radius: 9px;
    color: rgba(220,231,225,0.65);
    font-size: 13px;
    font-weight: 500;
    transition: background 0.12s, color 0.12s;
}

.sidebar-nav a i {
    font-size: 14px;
    flex-shrink: 0;
    opacity: 0.85;
}

.sidebar-nav a:hover {
    background: rgba(255,255,255,0.07);
    color: #fff;
}

.sidebar-nav a.active {
    background: rgba(255,255,255,0.13);
    color: #fff;
    font-weight: 600;
    box-shadow: inset 2.5px 0 0 var(--marigold);
}

/* Submenu group */
.submenu-group { display: flex; flex-direction: column; }

.has-submenu {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 9px 10px;
    border-radius: 9px;
    cursor: pointer;
    color: rgba(220,231,225,0.65);
    font-size: 13px;
    font-weight: 500;
    transition: background 0.12s, color 0.12s;
    user-select: none;
}

.has-submenu:hover {
    background: rgba(255,255,255,0.07);
    color: #fff;
}

.submenu-group.open > .has-submenu {
    background: rgba(255,255,255,0.06);
    color: rgba(220,231,225,0.9);
}

.submenu-label {
    display: flex;
    align-items: center;
    gap: 9px;
}

.submenu-label i {
    font-size: 14px;
    flex-shrink: 0;
    opacity: 0.85;
}

.submenu-caret {
    font-size: 11px !important;
    opacity: 0.5;
    transition: transform 0.2s;
}

.submenu-group.open > .has-submenu .submenu-caret {
    transform: rotate(180deg);
}

.sidebar-submenu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.submenu-group.open > .sidebar-submenu {
    max-height: 800px;
}

.sidebar-submenu a {
    padding-left: 36px !important;
    font-size: 12.5px !important;
}

/* Footer sidebar */
.sidebar-footer {
    margin-top: auto;
    background: rgba(255,255,255,0.06);
    border-radius: 11px;
    padding: 11px 12px;
    font-size: 11px;
    opacity: 0.65;
    line-height: 1.55;
    margin-top: 16px;
}

.sidebar-footer strong { opacity: 1; font-weight: 700; }

/* ════════════════════════════════════════════════════════════════════
   KONTEN UTAMA
   ════════════════════════════════════════════════════════════════════ */
.app-content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

/* ── Topbar ─────────────────────────────────────────────────────── */
.topbar {
    background: var(--panel);
    border-bottom: 1px solid var(--line);
    padding: 0 28px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 100;
    gap: 12px;
}

.topbar-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.topbar-title {
    font-family: 'Sora', sans-serif;
    font-size: 15px;
    font-weight: 700;
    margin: 0;
    color: var(--ink);
}

.topbar-toggle {
    display: none;
    background: none;
    border: 1px solid var(--line);
    border-radius: 8px;
    width: 34px;
    height: 34px;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--sub);
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.topbar-search {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 7px 14px;
    font-size: 12.5px;
    color: var(--sub);
    width: 220px;
}

.topbar-search i { font-size: 13px; }

.topbar-icon-btn {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: var(--panel);
    border: 1px solid var(--line);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--sub);
    position: relative;
    cursor: pointer;
    font-size: 15px;
    text-decoration: none;
}

.topbar-notif-dot {
    position: absolute;
    top: -3px;
    right: -3px;
    width: 8px;
    height: 8px;
    background: var(--rose);
    border-radius: 50%;
    border: 2px solid var(--panel);
}

.topbar-user {
    display: flex;
    align-items: center;
    gap: 9px;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 5px 12px 5px 5px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    color: var(--ink);
}

.topbar-user:hover { background: var(--bg); }

.topbar-avatar {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: var(--emerald);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Sora', sans-serif;
    text-transform: uppercase;
}

/* ── Main area ──────────────────────────────────────────────────── */
.app-main {
    flex: 1;
    padding: 26px 30px 48px;
}

/* ════════════════════════════════════════════════════════════════════
   KOMPONEN — CARD
   ════════════════════════════════════════════════════════════════════ */
.card {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 20px;
    position: relative;
    overflow: hidden;
}

/* ── Dashboard: page header ─────────────────────────────────────── */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 22px;
}

.page-header-title {
    font-family: 'Sora', sans-serif;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -0.01em;
    margin: 0;
}

.page-header-meta {
    font-size: 12px;
    color: var(--sub);
    margin-top: 4px;
}

/* ── Bento grid ─────────────────────────────────────────────────── */
.bento {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr 0.85fr 1.3fr;
    grid-template-rows: auto auto;
    gap: 14px;
    margin-bottom: 14px;
}

/* Hero card */
.bento-hero {
    grid-row: span 2;
    background: linear-gradient(155deg, #0B2C24 0%, #123c31 100%);
    border: none;
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.bento-eyebrow {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.09em;
    font-weight: 600;
    opacity: 0.6;
}

.bento-hero-num {
    font-family: 'Sora', sans-serif;
    font-size: 28px;
    font-weight: 800;
    margin: 8px 0 3px;
    letter-spacing: -0.015em;
}

.bento-hero-cap {
    font-size: 12px;
    opacity: 0.6;
}

.ring-wrap {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 18px;
}

.ring-donut {
    position: relative;
    flex-shrink: 0;
}

.ring-donut svg { display: block; }

.ring-donut-pct {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    color: #fff;
}

.ring-val {
    font-family: 'Sora', sans-serif;
    font-size: 15px;
    font-weight: 700;
}

.ring-lbl {
    font-size: 10.5px;
    opacity: 0.6;
    margin-top: 2px;
}

.bento-hero-foot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
    padding-top: 14px;
    border-top: 1px solid rgba(255,255,255,0.12);
}

.bento-hero-vs {
    font-size: 11px;
    opacity: 0.6;
}

.badge-pill {
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 100px;
    display: inline-flex;
    align-items: center;
}

.badge-pill.up {
    background: rgba(255,255,255,0.14);
    color: #8CE0B5;
}

/* Stat card */
.bento-stat .bento-eyebrow { color: var(--sub); opacity: 1; }

.bento-stat-num {
    font-family: 'Sora', sans-serif;
    font-size: 21px;
    font-weight: 700;
    margin: 8px 0 10px;
    letter-spacing: -0.01em;
    color: var(--ink);
}

.sparkbar {
    display: flex;
    align-items: flex-end;
    gap: 3px;
    height: 28px;
}

.sparkbar span {
    flex: 1;
    background: var(--marigold-soft);
    border-radius: 2px 2px 0 0;
    display: block;
    transition: background 0.2s;
}

.sparkbar span.hi { background: var(--marigold); }

.stat-delta {
    font-size: 11px;
    font-weight: 600;
    margin-top: 9px;
}

.stat-delta.pos { color: var(--emerald); }
.stat-delta.neu { color: var(--sub); }

/* Avatar stack */
.av-stack {
    display: flex;
    margin-top: 10px;
}

.av-stack .av {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    border: 2px solid var(--panel);
    background: var(--teal);
    color: #fff;
    font-size: 9.5px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: -8px;
    font-family: 'Sora', sans-serif;
}

.av-stack .av:first-child { margin-left: 0; }

.av-stack .av.more {
    background: var(--marigold);
    color: #3a2705;
}

/* Gauge card */
.bento-gauge {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.gauge-donut {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
}

.gauge-donut svg { display: block; }

.gauge-pct {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Sora', sans-serif;
    font-weight: 800;
    font-size: 18px;
    color: var(--ink);
}

.gauge-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--ink);
}

.gauge-sub {
    font-size: 10.5px;
    color: var(--sub);
    margin-top: 3px;
}

/* ── Lower section ──────────────────────────────────────────────── */
.lower {
    display: grid;
    grid-template-columns: 1.35fr 1fr;
    gap: 14px;
}

.panel-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
}

.panel-title {
    font-family: 'Sora', sans-serif;
    font-size: 15px;
    font-weight: 700;
    margin: 0;
    color: var(--ink);
}

.panel-sub {
    font-size: 11.5px;
    color: var(--sub);
    margin-bottom: 0;
}

.laba-val { color: var(--emerald); font-weight: 700; }

/* Tab grup */
.tab-group {
    display: flex;
    gap: 3px;
    background: var(--bg);
    padding: 3px;
    border-radius: 9px;
}

.tab-btn {
    border: none;
    background: transparent;
    font-size: 11px;
    font-weight: 600;
    color: var(--sub);
    padding: 5px 11px;
    border-radius: 7px;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    transition: all 0.15s;
}

.tab-btn.active {
    background: var(--panel);
    color: var(--ink);
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

/* Period filter (dalam card keuangan) */
.period-filter {
    display: flex;
    gap: 6px;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 14px;
}

.period-filter .form-control {
    height: 30px;
    font-size: 12px;
    border-radius: 8px;
    border-color: var(--line);
}

.period-filter .btn {
    height: 30px;
    font-size: 11px;
    border-radius: 8px;
    padding: 0 12px;
}

/* Bar list keuangan */
.barlist { margin-top: 14px; }

.bar-row {
    display: grid;
    grid-template-columns: 150px 1fr 100px;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.bar-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--ink);
    line-height: 1.3;
}

.bar-label span {
    display: block;
    font-size: 10px;
    color: var(--sub);
    font-weight: 400;
    margin-top: 1px;
}

.bar-track {
    height: 8px;
    background: var(--bg);
    border-radius: 100px;
    overflow: hidden;
}

.bar-fill {
    height: 100%;
    border-radius: 100px;
    transition: width 0.5s ease;
}

.bar-fill.saldo-awal { background: #c4b5fd; opacity: .7; border-radius: 3px 0 0 3px; }
.bar-fill.income { background: var(--emerald); }
.bar-fill.expense { background: var(--rose); }

.bar-val {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 11px;
    text-align: right;
    font-weight: 500;
    color: var(--ink);
}

/* Setoran terbaru / activity list */
.act-list { margin-top: 8px; }

.act-row {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 9px 4px;
    border-radius: 10px;
    transition: background 0.1s;
    cursor: default;
}

.act-row:hover { background: var(--bg); }

.act-bar {
    width: 3px;
    align-self: stretch;
    border-radius: 3px;
    background: var(--emerald);
    flex-shrink: 0;
}

.act-av {
    width: 32px;
    height: 32px;
    border-radius: 9px;
    background: var(--rose-soft);
    color: var(--rose);
    font-size: 11px;
    font-weight: 700;
    font-family: 'Sora', sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    text-transform: uppercase;
}

.act-info { flex: 1; min-width: 0; }

.act-name {
    font-size: 12.5px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.act-kel {
    font-size: 10.5px;
    color: var(--sub);
    margin-top: 1px;
}

.act-right { text-align: right; flex-shrink: 0; }

.act-amt {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 12px;
    font-weight: 600;
}

.act-tgl {
    font-size: 10px;
    color: var(--sub);
    margin-top: 1px;
}

/* ── Chart donut (ringkasan keuangan) ───────────────────────────── */
.keu-summary {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.keu-badge {
    flex: 1;
    min-width: 80px;
    border-radius: 10px;
    padding: 8px 10px;
    text-align: center;
}

.keu-badge .kb-label {
    font-size: 10px;
    color: var(--sub);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.keu-badge .kb-val {
    font-size: 13px;
    font-weight: 700;
    margin-top: 2px;
    font-family: 'Sora', sans-serif;
}

.keu-badge.saldo { background: #f5f3ff; }
.keu-badge.saldo .kb-val { color: #6d28d9; }
.keu-badge.income { background: #f0fdf4; }
.keu-badge.income .kb-val { color: var(--emerald); }
.keu-badge.expense { background: #fff1f2; }
.keu-badge.expense .kb-val { color: var(--rose); }
.keu-badge.profit { background: #eff6ff; }
.keu-badge.profit .kb-val { color: #1d4ed8; }
.keu-badge.loss { background: #fffbeb; }
.keu-badge.loss .kb-val { color: #b45309; }

/* ════════════════════════════════════════════════════════════════════
   HALAMAN LAIN — tabel, form, dll. (Bootstrap tetap dipakai)
   ════════════════════════════════════════════════════════════════════ */

/* Override Bootstrap card radius */
.card-bs { /* gunakan .card-bs untuk card Bootstrap di halaman non-dashboard */
    border: 1px solid var(--line) !important;
    border-radius: 14px !important;
    box-shadow: 0 1px 4px rgba(0,0,0,0.05) !important;
}

/* Table */
.table thead th {
    background: var(--bg);
    font-family: 'Sora', sans-serif;
    font-size: 12px;
    font-weight: 600;
    color: var(--sub);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    border-bottom: 2px solid var(--line);
    padding: 10px 12px;
}

.table tbody td {
    font-size: 13px;
    padding: 10px 12px;
    border-color: var(--line);
    vertical-align: middle;
}

.table tbody tr:hover td { background: rgba(245,244,239,0.6); }

/* Tombol utama */
.btn-primary {
    background: var(--emerald) !important;
    border-color: var(--emerald) !important;
}
.btn-primary:hover { background: var(--forest) !important; border-color: var(--forest) !important; }

/* Badge status */
.badge-aktif   { background: #dcfce7; color: var(--emerald); border-radius: 6px; padding: 3px 9px; font-size: 11px; font-weight: 600; }
.badge-lunas   { background: #e0f2fe; color: #0369a1; border-radius: 6px; padding: 3px 9px; font-size: 11px; font-weight: 600; }
.badge-proses  { background: #fef9c3; color: #854d0e; border-radius: 6px; padding: 3px 9px; font-size: 11px; font-weight: 600; }

/* Alert flash */
.alert { border-radius: 12px; font-size: 13px; border: none; }
.alert-success { background: #dcfce7; color: #15803d; }
.alert-danger  { background: #fee2e2; color: #b91c1c; }
.alert-warning { background: #fef9c3; color: #92400e; }
.alert-info    { background: #e0f2fe; color: #0369a1; }

/* Form control */
.form-control, .form-select {
    border-color: var(--line);
    border-radius: 10px;
    font-size: 13px;
}

.form-control:focus, .form-select:focus {
    border-color: var(--emerald);
    box-shadow: 0 0 0 3px rgba(30,94,79,0.12);
}

/* Footer */
.app-footer {
    text-align: center;
    font-size: 11.5px;
    color: var(--sub);
    padding: 16px 0 20px;
    margin-top: auto;
}

/* ════════════════════════════════════════════════════════════════════
   LOGIN PAGE
   ════════════════════════════════════════════════════════════════════ */
.login-wrapper {
    min-height: 100vh;
    display: flex;
    background: var(--bg);
}

.login-image-panel {
    flex: 1;
    background: linear-gradient(160deg, var(--forest), #1a5244);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.login-image-panel img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3;
    position: absolute;
}

.login-brand-overlay {
    position: relative;
    color: #fff;
    text-align: center;
    padding: 40px;
}

.login-brand-logo {
    width: 64px;
    height: 64px;
    border-radius: 18px;
    background: linear-gradient(135deg, var(--marigold), #d9860f);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Sora', sans-serif;
    font-weight: 800;
    font-size: 28px;
    color: #1c1305;
    margin: 0 auto 20px;
    overflow: hidden;
}

.login-brand-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 6px;
    opacity: 1;
    position: relative;
}

.login-brand-name {
    font-family: 'Sora', sans-serif;
    font-size: 26px;
    font-weight: 800;
    margin-bottom: 8px;
}

.login-brand-desc {
    font-size: 14px;
    opacity: 0.7;
    max-width: 280px;
    line-height: 1.6;
}

.login-form-panel {
    width: 420px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 48px;
    background: var(--panel);
}

.login-form-inner { width: 100%; }

.login-title {
    font-family: 'Sora', sans-serif;
    font-size: 24px;
    font-weight: 800;
    color: var(--ink);
    margin-bottom: 6px;
}

.login-sub {
    font-size: 13px;
    color: var(--sub);
    margin-bottom: 32px;
}

.login-form-inner .form-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: 6px;
}

.btn-login {
    background: var(--forest);
    color: #fff;
    border: none;
    border-radius: 11px;
    padding: 12px;
    font-size: 14px;
    font-weight: 600;
    font-family: 'Sora', sans-serif;
    width: 100%;
    cursor: pointer;
    transition: background 0.15s;
}

.btn-login:hover { background: var(--emerald); }

/* ════════════════════════════════════════════════════════════════════
   LOGIN PAGE — layout split (dipakai oleh login.php)
   ════════════════════════════════════════════════════════════════════ */
.login-split-wrapper {
    min-height: 100vh;
    display: flex;
    background: var(--panel);
}

/* .login-image-panel dasarnya sudah didefinisikan di atas (flex:1, dsb).
   Tambahan berikut membuat foto latar (background-image inline) tampil
   penuh 1 layar dan teks brand-nya terbaca jelas. */
.login-split-wrapper .login-image-panel {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.login-image-overlay {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(160deg, rgba(20,58,48,0.55), rgba(15,40,33,0.45));
}

.login-image-content {
    position: relative;
    z-index: 2;
    color: #fff;
    text-align: center;
    padding: 40px;
    max-width: 420px;
}

.login-image-logo {
    width: 72px;
    height: 72px;
    object-fit: contain;
    background: #fff;
    border-radius: 18px;
    padding: 8px;
    margin: 0 auto 20px;
    display: block;
}

.login-image-content h2 {
    font-family: 'Sora', sans-serif;
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 4px;
}

.login-image-content p {
    font-size: 14px;
    opacity: 0.85;
    margin-bottom: 0;
}

.login-image-divider {
    width: 48px;
    height: 3px;
    background: var(--marigold);
    border-radius: 2px;
    margin: 20px auto;
}

.login-image-tagline {
    font-size: 13px;
    line-height: 1.6;
    opacity: 0.75;
}

.login-form-panel .login-form-box { width: 100%; max-width: 380px; }

.login-form-brand-logo {
    width: 140px;
    height: 140px;
    object-fit: contain;
    background: #fff;
    border: 1px solid var(--line, #e5e7eb);
    border-radius: 22px;
    padding: 10px;
    margin: 0 auto 14px;
    display: block;
}

.login-form-brand-name {
    font-family: 'Sora', sans-serif;
    font-size: 15px;
    font-weight: 700;
    color: var(--ink);
}

.login-form-brand-sub {
    font-size: 12.5px;
    color: var(--sub);
    margin-bottom: 4px;
}

.login-split-wrapper .login-image-panel,
.login-split-wrapper .login-form-panel {
    flex: 1 1 50%;
    width: 50%;
}

.login-subtitle {
    font-size: 13px;
    color: var(--sub);
    margin-bottom: 28px;
}

@media (max-width: 991.98px) {
    .login-split-wrapper .login-image-panel { display: none; }
    .login-split-wrapper .login-form-panel { width: 100%; }
}

/* ════════════════════════════════════════════════════════════════════
   RESPONSIVE
   ════════════════════════════════════════════════════════════════════ */
@media (max-width: 1100px) {
    .bento {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto;
    }
    .bento-hero { grid-row: span 1; }
    .lower { grid-template-columns: 1fr; }
}

@media (max-width: 991px) {
    .sidebar {
        position: fixed;
        left: calc(-1 * var(--sidebar-w));
        z-index: 1000;
        transition: left 0.22s ease;
        height: 100vh;
    }
    .sidebar.show { left: 0; }
    .topbar-toggle { display: flex; }
    .topbar-search { display: none; }
}

@media (max-width: 600px) {
    .app-main { padding: 16px 14px 40px; }
    .bento { grid-template-columns: 1fr; }
    .lower { grid-template-columns: 1fr; }
    .login-form-panel {
        width: 100%;
        min-height: 100vh;
        padding: 32px 20px;
    }
    .login-form-panel .login-form-box { max-width: 100%; }
    .login-form-brand-logo { width: 110px; height: 110px; }
    .login-title { font-size: 20px; }
    .login-form-panel .form-control,
    .login-form-panel .input-group-text { font-size: 16px; }
}

@media (max-width: 380px) {
    .login-form-panel { padding: 24px 16px; }
    .login-form-brand-logo { width: 96px; height: 96px; }
}

/* ════════════════════════════════════════════════════════════════════
   DASHBOARD PERAN EKSTERNAL — kartu menu laporan
   ════════════════════════════════════════════════════════════════════ */
.eksternal-menu-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
    cursor: pointer;
}

.eksternal-menu-card:hover {
    border-color: var(--emerald);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(11,44,36,0.10);
}

.eksternal-menu-icon {
    flex-shrink: 0;
    width: 46px;
    height: 46px;
    border-radius: 12px;
    background: var(--marigold-soft);
    color: var(--forest);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.eksternal-menu-title {
    font-family: 'Sora', sans-serif;
    font-size: 14px;
    font-weight: 700;
    color: var(--ink);
}

.eksternal-menu-sub {
    font-size: 12px;
    color: var(--sub);
    margin-top: 2px;
}

.eksternal-menu-arrow {
    flex-shrink: 0;
    color: var(--sub);
    font-size: 16px;
}

.eksternal-menu-card:hover .eksternal-menu-arrow {
    color: var(--emerald);
}

/* ════════════════════════════════════════════════════════════════════
   PRINT
   ════════════════════════════════════════════════════════════════════ */
@media print {
    .sidebar, .topbar, .no-print, .app-footer { display: none !important; }
    .app-content { width: 100% !important; }
    .app-main { padding: 0 !important; }
    .app-wrapper, .app-content { margin: 0 !important; padding: 0 !important; }
    body { background: #fff; }

    /* Chrome memperlakukan elemen dengan overflow:hidden/auto sebagai satu blok
       yang tidak boleh terpotong halaman — kalau tidak muat di sisa halaman
       pertama, seluruh blok (termasuk tabel) didorong ke halaman berikutnya,
       menyisakan area kosong besar setelah judul. Reset agar konten mengalir
       dan terpotong per-baris secara wajar saat dicetak. */
    .card {
        overflow: visible !important;
        border: none !important;
        box-shadow: none !important;
        border-radius: 0 !important;
        height: auto !important;
        min-height: 0 !important;
    }
    .table-responsive {
        overflow: visible !important;
        height: auto !important;
    }
    .h-100 { height: auto !important; }

    /* Hindari judul/baris tabel terpisah dari isinya saat pindah halaman */
    table { page-break-inside: auto; }
    tr, td, th { page-break-inside: avoid; }
    thead { display: table-header-group; }
}

