:root {
    --bg: #f3f4f6;
    --panel: #ffffff;
    --panel-soft: #f8fafc;
    --ink: #111827;
    --muted: #6b7280;
    --line: #e5e7eb;
    --sidebar: #111827;
    --sidebar-soft: #1f2937;
    --primary: #ef4444;
    --primary-dark: #dc2626;
    --accent: #f59e0b;
    --success: #059669;
    --danger: #dc2626;
    --warning: #d97706;
    --shadow: 0 18px 40px rgba(15, 23, 42, .08);
    --radius: 18px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; background: var(--bg); color: var(--ink); }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
.icon-svg { display: block; width: 1em; height: 1em; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.app-shell { min-height: 100vh; display: flex; }
.sidebar { position: fixed; inset: 0 auto 0 0; width: 270px; background: linear-gradient(180deg, #111827, #0b1220); color: #fff; padding: 22px 18px; display: flex; flex-direction: column; z-index: 50; }
.brand { display: flex; align-items: center; gap: 12px; padding: 6px 8px 24px; border-bottom: 1px solid rgba(255,255,255,.08); }
.brand img { width: 54px; height: 54px; object-fit: contain; flex-shrink: 0; }
.brand strong { display: block; font-size: 15px; }
.brand span { display: block; color: #9ca3af; font-size: 12px; margin-top: 3px; }
.nav-list { padding-top: 18px; display: grid; gap: 6px; }
.nav-list a { display: flex; align-items: center; gap: 12px; color: #cbd5e1; padding: 12px 14px; border-radius: 12px; font-size: 14px; font-weight: 700; transition: .2s ease; }
.nav-list a .nav-icon { width: 20px; height: 20px; flex-shrink: 0; }
.nav-list a:hover, .nav-list a.active { color: #fff; background: linear-gradient(135deg, rgba(239,68,68,.92), rgba(245,158,11,.8)); transform: translateX(2px); }
.nav-section { margin: 18px 12px 4px; color: #64748b; text-transform: uppercase; font-size: 10px; letter-spacing: .12em; font-weight: 800; }
.sidebar-footer { margin-top: auto; border-top: 1px solid rgba(255,255,255,.08); padding-top: 16px; }
.user-mini { display: flex; gap: 10px; align-items: center; }
.avatar { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-weight: 900; background: linear-gradient(135deg, var(--primary), var(--accent)); }
.user-mini strong, .user-mini span { display: block; }
.user-mini strong { font-size: 13px; }
.user-mini span { font-size: 11px; color: #94a3b8; margin-top: 2px; }
.logout-link { display: inline-flex; align-items: center; gap: 8px; margin-top: 12px; color: #fca5a5; font-size: 12px; font-weight: 700; }
.logout-icon { width: 14px; height: 14px; }
.main-content { margin-left: 270px; width: calc(100% - 270px); min-height: 100vh; display: flex; flex-direction: column; }
.topbar { min-height: 88px; background: rgba(255,255,255,.9); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); padding: 16px 28px; display: flex; align-items: center; gap: 16px; position: sticky; top: 0; z-index: 30; }
.topbar h1 { margin: 0; font-size: 24px; letter-spacing: -.03em; }
.topbar p { margin: 5px 0 0; color: var(--muted); font-size: 12px; }
.menu-button { display: none; width: 42px; height: 42px; border: 1px solid var(--line); background: #fff; border-radius: 12px; cursor: pointer; }
.menu-icon { width: 18px; height: 18px; }
.profile-chip { margin-left: auto; text-align: right; padding: 9px 12px; border-radius: 12px; background: var(--panel-soft); border: 1px solid var(--line); }
.profile-chip span, .profile-chip small { display: block; }
.profile-chip span { font-weight: 800; font-size: 13px; }
.profile-chip small { color: var(--muted); font-size: 10px; margin-top: 2px; }
.content-area { padding: 28px; flex: 1; }
.app-footer { padding: 18px 28px; border-top: 1px solid var(--line); color: var(--muted); display: flex; justify-content: space-between; gap: 16px; font-size: 11px; }
.grid { display: grid; gap: 18px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0,1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0,1fr)); }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.card-header { padding: 18px 20px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.card-header h2, .card-header h3 { margin: 0; font-size: 16px; }
.card-body { padding: 20px; }
.metric-card { padding: 20px; position: relative; overflow: hidden; }
.metric-card::after { content: ''; position: absolute; width: 90px; height: 90px; border-radius: 50%; right: -24px; top: -24px; background: currentColor; opacity: .06; }
.metric-label { color: var(--muted); font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; }
.metric-value { display: block; margin-top: 10px; font-size: 27px; font-weight: 900; letter-spacing: -.04em; }
.metric-help { margin-top: 8px; color: var(--muted); font-size: 11px; }
.metric-red { color: var(--primary); }
.metric-green { color: var(--success); }
.metric-amber { color: var(--warning); }
.metric-slate { color: #334155; }
.page-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 18px; }
.btn { display: inline-flex; justify-content: center; align-items: center; gap: 8px; border: 0; border-radius: 11px; padding: 11px 15px; cursor: pointer; font-weight: 800; font-size: 13px; transition: .18s ease; }
.btn-icon { width: 16px; height: 16px; }
.btn-icon-sm { width: 14px; height: 14px; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: linear-gradient(135deg, var(--primary), var(--primary-dark)); color: #fff; box-shadow: 0 10px 22px rgba(239,68,68,.2); }
.btn-secondary { background: #111827; color: #fff; }
.btn-light { background: #fff; color: var(--ink); border: 1px solid var(--line); }
.btn-success { background: var(--success); color: #fff; }
.btn-danger { background: #fee2e2; color: #991b1b; }
.btn-sm { padding: 7px 10px; border-radius: 9px; font-size: 11px; }
.form-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; }
.form-group { display: grid; gap: 7px; }
.form-group.full { grid-column: 1 / -1; }
label { font-size: 12px; font-weight: 800; color: #374151; }
input, select, textarea { width: 100%; border: 1px solid #d1d5db; background: #fff; color: var(--ink); border-radius: 11px; padding: 11px 12px; outline: none; transition: .15s; }
input:focus, select:focus, textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(239,68,68,.1); }
textarea { min-height: 100px; resize: vertical; }
.help { font-size: 11px; color: var(--muted); }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; min-width: 760px; }
th { color: #64748b; text-transform: uppercase; letter-spacing: .06em; font-size: 10px; text-align: left; background: #f8fafc; }
th, td { padding: 13px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
td { font-size: 12px; }
tr:last-child td { border-bottom: 0; }
.table-title { font-weight: 850; color: #111827; }
.table-sub { display: block; color: var(--muted); font-size: 10px; margin-top: 3px; }
.badge { display: inline-flex; align-items: center; border-radius: 999px; padding: 5px 9px; font-size: 10px; font-weight: 900; }
.badge-success { background: #d1fae5; color: #065f46; }
.badge-danger { background: #fee2e2; color: #991b1b; }
.badge-warning { background: #fef3c7; color: #92400e; }
.badge-muted { background: #e5e7eb; color: #4b5563; }
.badge-blue { background: #dbeafe; color: #1e40af; }
.alert { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 13px 15px; border-radius: 12px; margin-bottom: 16px; font-size: 13px; font-weight: 700; }
.alert button { background: transparent; border: 0; font-size: 20px; cursor: pointer; }
.alert-success { background: #d1fae5; color: #065f46; }
.alert-danger { background: #fee2e2; color: #991b1b; }
.alert-warning { background: #fef3c7; color: #92400e; }
.alert-info { background: #dbeafe; color: #1e40af; }
.filter-bar { padding: 16px; display: grid; grid-template-columns: 2fr 1fr 1fr auto; gap: 10px; align-items: end; }
.progress { height: 10px; background: #e5e7eb; border-radius: 999px; overflow: hidden; }
.progress > span { height: 100%; display: block; background: linear-gradient(90deg,var(--primary),var(--accent)); border-radius: inherit; }
.category-list { display: grid; gap: 13px; }
.category-row { display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: center; }
.category-row strong { font-size: 12px; }
.category-row small { color: var(--muted); }
.empty-state { padding: 38px 20px; text-align: center; color: var(--muted); }
.dre-table { display: grid; gap: 0; }
.dre-row { display: flex; justify-content: space-between; gap: 18px; padding: 13px 4px; border-bottom: 1px solid var(--line); }
.dre-row.total { font-weight: 900; font-size: 16px; border-top: 2px solid #111827; }
.dre-row.positive { color: var(--success); }
.dre-row.negative { color: var(--danger); }

/* Dashboard premium V1.0.5 */
.dashboard-hero {
    position: relative;
    overflow: hidden;
    min-height: 238px;
    padding: 30px 34px;
    border-radius: 26px;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    background:
        radial-gradient(circle at 78% 18%, rgba(245,158,11,.32), transparent 30%),
        linear-gradient(135deg, #111827 0%, #171923 48%, #7f1d1d 100%);
    box-shadow: 0 24px 60px rgba(15,23,42,.18);
}
.dashboard-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: .16;
    background-image: linear-gradient(rgba(255,255,255,.08) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.08) 1px, transparent 1px);
    background-size: 34px 34px;
    mask-image: linear-gradient(90deg, transparent, #000 55%);
}
.dashboard-hero-copy { position: relative; z-index: 2; max-width: 700px; }
.dashboard-eyebrow,
.dashboard-section-kicker {
    display: block;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .10em;
    text-transform: uppercase;
}
.dashboard-eyebrow { color: #fbbf24; margin-bottom: 10px; }
.dashboard-hero h2 { margin: 0; font-size: clamp(30px, 4vw, 46px); line-height: 1.04; letter-spacing: -.045em; }
.dashboard-hero p { margin: 13px 0 0; max-width: 620px; color: rgba(255,255,255,.76); font-size: 14px; line-height: 1.65; }
.dashboard-hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.btn-dashboard-primary { background: linear-gradient(135deg, #ef4444, #dc2626); color: #fff; box-shadow: 0 12px 28px rgba(239,68,68,.28); }
.btn-dashboard-light { background: rgba(255,255,255,.10); color: #fff; border: 1px solid rgba(255,255,255,.16); backdrop-filter: blur(8px); }
.btn-dashboard-light:hover { background: rgba(255,255,255,.16); }
.dashboard-hero-brand { position: relative; z-index: 1; width: 260px; min-width: 220px; display: grid; place-items: center; align-self: stretch; }
.dashboard-hero-brand img { width: 250px; max-width: 100%; height: auto; filter: drop-shadow(0 22px 28px rgba(0,0,0,.34)); transform: rotate(2deg); }
.dashboard-kpi-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 16px; margin-top: 18px; }
.dashboard-kpi {
    min-width: 0;
    padding: 20px;
    border-radius: 20px;
    background: #fff;
    border: 1px solid var(--line);
    box-shadow: 0 14px 32px rgba(15,23,42,.06);
}
.dashboard-kpi-dark { color: #fff; border-color: transparent; background: linear-gradient(145deg,#111827,#1f2937); }
.dashboard-kpi-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 19px; }
.dashboard-kpi-icon { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; background: rgba(239,68,68,.11); color: #dc2626; font-size: 12px; font-weight: 950; }
.dashboard-kpi-icon-svg { width: 18px; height: 18px; }
.dashboard-kpi-dark .dashboard-kpi-icon { background: rgba(255,255,255,.12); color: #fff; }
.dashboard-kpi-icon-green { background: #ecfdf5; color: #059669; }
.dashboard-kpi-icon-amber { background: #fffbeb; color: #d97706; }
.dashboard-kpi-icon-red { background: #fff1f2; color: #e11d48; }
.dashboard-kpi-tag { padding: 5px 8px; border-radius: 999px; background: #f1f5f9; color: #64748b; font-size: 9px; font-weight: 900; text-transform: uppercase; letter-spacing: .06em; white-space: nowrap; }
.dashboard-kpi-dark .dashboard-kpi-tag { background: rgba(255,255,255,.09); color: rgba(255,255,255,.72); }
.dashboard-kpi-label { display: block; color: var(--muted); font-size: 11px; font-weight: 850; text-transform: uppercase; letter-spacing: .055em; }
.dashboard-kpi-dark .dashboard-kpi-label { color: rgba(255,255,255,.64); }
.dashboard-kpi-value { display: block; margin-top: 8px; font-size: clamp(23px,2.2vw,30px); letter-spacing: -.045em; line-height: 1.05; }
.dashboard-kpi small { display: block; margin-top: 9px; color: var(--muted); font-size: 10px; line-height: 1.45; }
.dashboard-kpi-dark small { color: rgba(255,255,255,.58); }
.dashboard-mini-progress { height: 7px; margin-top: 13px; overflow: hidden; border-radius: 999px; background: #eef2f7; }
.dashboard-mini-progress span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg,#ef4444,#f59e0b); }
.dashboard-month-strip {
    display: grid;
    grid-template-columns: 1.25fr repeat(4,1fr);
    gap: 0;
    margin-top: 18px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 14px 32px rgba(15,23,42,.05);
}
.dashboard-month-heading,
.dashboard-month-item { padding: 18px 20px; border-right: 1px solid var(--line); }
.dashboard-month-item:last-child { border-right: 0; }
.dashboard-month-heading { background: #f8fafc; }
.dashboard-month-heading span,
.dashboard-month-item span { display: block; color: var(--muted); font-size: 10px; font-weight: 850; text-transform: uppercase; letter-spacing: .06em; }
.dashboard-month-heading strong,
.dashboard-month-item strong { display: block; margin-top: 7px; font-size: 17px; letter-spacing: -.02em; }
.dashboard-main-grid { display: grid; grid-template-columns: minmax(0,1.06fr) minmax(0,.94fr); gap: 18px; margin-top: 18px; }
.dashboard-card { overflow: hidden; box-shadow: 0 16px 36px rgba(15,23,42,.06); }
.dashboard-card-header { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 20px 22px; border-bottom: 1px solid var(--line); }
.dashboard-section-kicker { color: #ef4444; margin-bottom: 5px; }
.dashboard-card-header h2 { margin: 0; font-size: 17px; letter-spacing: -.02em; }
.dashboard-text-link { color: #475569; font-size: 11px; font-weight: 850; white-space: nowrap; display: inline-flex; align-items: center; gap: 4px; }
.inline-link-icon { width: 13px; height: 13px; }
.dashboard-text-link:hover { color: #dc2626; }
.dashboard-category-list { display: grid; gap: 17px; padding: 22px; }
.dashboard-category-item { display: grid; grid-template-columns: 36px 1fr; gap: 12px; align-items: center; }
.dashboard-category-rank { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 11px; background: #f8fafc; color: #64748b; font-size: 10px; font-weight: 900; border: 1px solid var(--line); }
.dashboard-category-content { min-width: 0; }
.dashboard-category-meta { display: flex; align-items: center; justify-content: space-between; gap: 15px; }
.dashboard-category-label { display: flex; align-items: center; gap: 10px; min-width: 0; }
.dashboard-category-icon { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 12px; background: linear-gradient(135deg, rgba(239,68,68,.12), rgba(245,158,11,.18)); border: 1px solid rgba(239,68,68,.12); color: #b45309; flex-shrink: 0; }
.dashboard-category-icon-svg { width: 17px; height: 17px; }
.dashboard-category-meta strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; }
.dashboard-category-meta span { color: #475569; font-size: 11px; font-weight: 850; white-space: nowrap; }
.dashboard-category-bar { height: 7px; overflow: hidden; border-radius: 999px; background: #eef2f7; margin-top: 8px; }
.dashboard-category-bar span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg,#ef4444,#f59e0b); }
.dashboard-installment-list { display: grid; }
.dashboard-installment-item { display: grid; grid-template-columns: 42px minmax(0,1fr) auto; gap: 12px; align-items: center; padding: 15px 20px; border-bottom: 1px solid var(--line); transition: .18s ease; }
.dashboard-installment-item:last-child { border-bottom: 0; }
.dashboard-installment-item:hover { background: #f8fafc; }
.dashboard-installment-number { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px; color: #b45309; background: #fffbeb; font-size: 13px; font-weight: 950; }
.dashboard-installment-copy { min-width: 0; }
.dashboard-installment-copy strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; }
.dashboard-installment-copy span { display: block; margin-top: 4px; color: var(--muted); font-size: 10px; }
.dashboard-installment-value { font-size: 12px; font-weight: 900; white-space: nowrap; }
.dashboard-latest-card { margin-top: 18px; }
.dashboard-table th { background: #fbfcfe; }
.dashboard-table tbody tr { transition: .15s ease; }
.dashboard-table tbody tr:hover { background: #fbfcfe; }
.login-page {
    min-height: 100vh;
    background:
        radial-gradient(circle at 20% 10%, rgba(239,68,68,.18), transparent 30%),
        radial-gradient(circle at 85% 90%, rgba(245,158,11,.14), transparent 32%),
        linear-gradient(145deg, #090f1b, #111827 55%, #17111a);
    padding: 22px;
}
.login-page-simple::before {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    opacity: .18;
    background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
    background-size: 42px 42px;
    mask-image: linear-gradient(to bottom, #000, transparent 80%);
}
.login-simple-shell {
    min-height: calc(100vh - 44px);
    display: grid;
    place-items: center;
    position: relative;
    z-index: 1;
}
.login-card {
    width: min(430px, 100%);
    background: #fff;
    border-radius: 26px;
    padding: 32px;
    box-shadow: 0 30px 80px rgba(0,0,0,.36);
    border: 1px solid rgba(255,255,255,.75);
}
.login-card-simple { overflow: hidden; }
.login-brand { text-align: center; margin-bottom: 24px; }
.login-brand-simple img {
    width: 152px;
    max-width: 72%;
    height: auto;
    display: block;
    margin: -8px auto 8px;
    filter: drop-shadow(0 12px 20px rgba(15,23,42,.16));
}
.login-kicker {
    display: inline-flex;
    padding: 6px 10px;
    border-radius: 999px;
    background: #fff1f2;
    color: #b91c1c;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
}
.login-brand h1 { margin: 12px 0 5px; font-size: 28px; letter-spacing: -.035em; }
.login-brand p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.55; }
.login-form { display: grid; gap: 16px; }
.login-form label { font-size: 12px; font-weight: 900; }
.login-input-wrap { position: relative; }
.login-input-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
    font-size: 14px;
    font-weight: 900;
    pointer-events: none;
}
.login-input-wrap input {
    height: 52px;
    padding-left: 40px;
    padding-right: 16px;
    border-radius: 14px;
    border-color: #dbe1ea;
    background: #f8fafc;
}
.login-password-wrap input { padding-right: 88px; }
.password-toggle {
    position: absolute;
    right: 9px;
    top: 50%;
    transform: translateY(-50%);
    border: 0;
    border-radius: 9px;
    padding: 8px 9px;
    background: #eef2f7;
    color: #334155;
    font-size: 11px;
    font-weight: 900;
    cursor: pointer;
}
.password-toggle:hover { background: #e2e8f0; }
.login-submit { width: 100%; min-height: 52px; margin-top: 2px; border-radius: 14px; }
.login-security-note { margin: 18px 0 0; color: var(--muted); text-align: center; font-size: 11px; }
.install-shell { min-height: 100vh; background: #f1f5f9; padding: 30px 18px; }
.install-card { max-width: 830px; margin: 0 auto; background: #fff; border-radius: 22px; box-shadow: var(--shadow); overflow: hidden; }
.install-head { padding: 28px; color: #fff; background: linear-gradient(135deg,#111827,#1f2937); }
.install-head h1 { margin: 0; }
.install-head p { color: #cbd5e1; }
.install-body { padding: 28px; }
.sidebar-overlay { display: none; }
.text-success { color: var(--success); }
.text-danger { color: var(--danger); }
.text-muted { color: var(--muted); }
.text-right { text-align: right; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }

@media (max-width: 1180px) {
    .dashboard-kpi-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .dashboard-month-strip { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .dashboard-month-heading { grid-column: 1 / -1; }
    .dashboard-month-heading, .dashboard-month-item { border-bottom: 1px solid var(--line); }
    .dashboard-month-item:nth-last-child(-n+2) { border-bottom: 0; }
}
@media (max-width: 900px) {
    .dashboard-hero { min-height: auto; padding: 26px; }
    .dashboard-hero-brand { width: 190px; min-width: 170px; }
    .dashboard-hero-brand img { width: 190px; }
    .dashboard-main-grid { grid-template-columns: 1fr; }
}
@media (max-width: 1100px) {
    .grid-4 { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .grid-3 { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 820px) {
    .sidebar { transform: translateX(-100%); transition: .22s ease; }
    .sidebar.open { transform: translateX(0); }
    .sidebar-overlay { position: fixed; inset: 0; background: rgba(15,23,42,.55); z-index: 40; }
    .sidebar-overlay.show { display: block; }
    .main-content { margin-left: 0; width: 100%; }
    .menu-button { display: inline-grid; place-items: center; }
    .topbar { padding: 14px 16px; }
    .topbar h1 { font-size: 20px; }
    .content-area { padding: 18px 14px; }
    .filter-bar { grid-template-columns: 1fr 1fr; }
    .filter-bar .full-mobile { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
    .grid-2, .grid-3, .grid-4, .form-grid { grid-template-columns: 1fr; }
    .dashboard-hero { padding: 22px 18px; border-radius: 20px; }
    .dashboard-hero-brand { display: none; }
    .dashboard-hero h2 { font-size: 30px; }
    .dashboard-hero-actions { display: grid; grid-template-columns: 1fr 1fr; }
    .dashboard-hero-actions .btn:first-child { grid-column: 1 / -1; }
    .dashboard-kpi-grid { grid-template-columns: 1fr; }
    .dashboard-month-strip { grid-template-columns: 1fr; }
    .dashboard-month-heading { grid-column: auto; }
    .dashboard-month-heading, .dashboard-month-item { border-right: 0; border-bottom: 1px solid var(--line); }
    .dashboard-month-item:last-child { border-bottom: 0; }
    .dashboard-card-header { align-items: flex-start; padding: 17px; }
    .dashboard-category-list { padding: 17px; }
    .dashboard-installment-item { grid-template-columns: 38px minmax(0,1fr); padding: 14px 16px; }
    .dashboard-installment-value { grid-column: 2; }
    .login-page { padding: 12px; }
    .login-card { padding: 24px 18px; border-radius: 22px; }
    .login-brand-simple img { width: 134px; }
    .profile-chip { display: none; }
    .metric-value { font-size: 23px; }
    .filter-bar { grid-template-columns: 1fr; }
    .app-footer { flex-direction: column; }
    .card-body { padding: 16px; }
}

/* SVG icon system — V1.0.7 */
.icon,
.icon-sm,
.icon-md,
.btn-icon,
.nav-icon,
.kpi-svg,
.category-svg,
.input-svg {
    display: inline-block;
    vertical-align: middle;
    flex-shrink: 0;
}
.icon { width: 20px; height: 20px; }
.icon-sm { width: 16px; height: 16px; }
.icon-md { width: 22px; height: 22px; }
.btn-icon { width: 16px; height: 16px; }
.nav-icon { width: 20px; height: 20px; }
.kpi-svg { width: 20px; height: 20px; }
.category-svg { width: 18px; height: 18px; }
.input-svg { width: 18px; height: 18px; }
.btn .btn-icon { margin-right: 1px; }
.dashboard-text-link { display: inline-flex; align-items: center; gap: 5px; }
.logout-link { display: flex; align-items: center; gap: 8px; }
.profile-chip-row { display: flex !important; align-items: center; justify-content: flex-end; gap: 6px; }
.menu-button { align-items: center; justify-content: center; }
.dashboard-kpi-icon { display: inline-grid; place-items: center; }
.dashboard-category-icon { color: #b45309; }
.password-toggle { display: inline-flex; align-items: center; gap: 6px; }
.login-input-icon { display: inline-grid; place-items: center; }
