:root {
    --brand: #1a73e8;
    --brand-dark: #1557b0;
    --brand-soft: #e8f0fe;
    --teal: #14b8a6;
    --amber: #f59e0b;
    --ink: #102033;
    --muted: #64748b;
    --line: #dbe3ef;
    --line-soft: #edf1f7;
    --surface: #ffffff;
    --page: #f4f7fb;
    --green: #1e8e3e;
    --green-soft: #e6f4ea;
    --red: #d93025;
    --red-soft: #fce8e6;
    --orange: #e37400;
    --orange-soft: #fef3e2;
    --sidebar-w: 248px;
    --topbar-h: 64px;
    --radius: 8px;
    --shadow: 0 14px 34px rgba(15, 23, 42, .08), 0 1px 0 rgba(255, 255, 255, .72);
}

* { box-sizing: border-box; }
html { max-width: 100%; overflow-x: hidden; }
body {
    margin: 0;
    min-height: 100vh;
    max-width: 100%;
    overflow-x: hidden;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 14px;
    color: #202124;
    background: var(--page);
}
a { text-decoration: none; }

body.app-shell {
    background:
        linear-gradient(90deg, rgba(26,115,232,.06) 1px, transparent 1px),
        linear-gradient(180deg, rgba(26,115,232,.05) 1px, transparent 1px),
        radial-gradient(circle at 86% 10%, rgba(20,184,166,.13), transparent 28%),
        var(--page);
    background-size: 44px 44px, 44px 44px, 100% 100%, auto;
}
body.auth-shell {
    min-height: 100vh;
    background:
        linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px),
        linear-gradient(180deg, rgba(255,255,255,.06) 1px, transparent 1px),
        radial-gradient(circle at 18% 20%, rgba(20,184,166,.28), transparent 28%),
        radial-gradient(circle at 82% 14%, rgba(26,115,232,.28), transparent 28%),
        #0f172a;
    background-size: 44px 44px, 44px 44px, 100% 100%, 100% 100%, auto;
}

.app-frame {
    width: 100%;
    min-width: 0;
    min-height: 100vh;
}
.sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    width: var(--sidebar-w);
    height: 100vh;
    height: 100dvh;
    min-width: 0;
    z-index: 100;
    padding: 0;
    overflow: hidden;
    color: #fff;
    background:
        linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px),
        linear-gradient(180deg, rgba(255,255,255,.04) 1px, transparent 1px),
        radial-gradient(circle at 20% 12%, rgba(20,184,166,.28), transparent 32%),
        radial-gradient(circle at 88% 5%, rgba(26,115,232,.36), transparent 28%),
        linear-gradient(180deg, #102033 0%, #0f172a 62%, #0a1020 100%);
    background-size: 44px 44px, 44px 44px, 100% 100%, 100% 100%, auto;
    border-right: 1px solid rgba(255,255,255,.08);
    box-shadow: 10px 0 30px rgba(15,23,42,.14);
}
.sidebar-brand {
    flex: 0 0 auto;
    min-width: 0;
    min-height: 72px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 18px;
    border-bottom: 1px solid rgba(255,255,255,.08);
}
.brand-mark {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: grid;
    place-items: center;
    color: #fff;
    font-size: 17px;
    font-weight: 800;
    background: linear-gradient(135deg, var(--brand), var(--teal));
    box-shadow: 0 10px 24px rgba(26,115,232,.22);
    flex: 0 0 auto;
}
.brand-logo-img {
    object-fit: cover;
    background: #fff;
}
.sidebar-nav {
    flex: 1 1 auto;
    min-width: 0;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 10px 0 16px;
    scrollbar-color: rgba(148,163,184,.5) transparent;
    scrollbar-width: thin;
}
.sidebar-nav::-webkit-scrollbar {
    width: 8px;
}
.sidebar-nav::-webkit-scrollbar-track {
    background: transparent;
}
.sidebar-nav::-webkit-scrollbar-thumb {
    background: rgba(148,163,184,.46);
    border: 2px solid transparent;
    border-radius: 999px;
    background-clip: padding-box;
}
.sidebar-section {
    padding: 15px 20px 5px;
    color: rgba(203,213,225,.62);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}
.sidebar .nav-link {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 2px 10px;
    padding: 10px 12px;
    color: rgba(226,232,240,.78);
    font-weight: 650;
    border-radius: var(--radius);
    min-width: 0;
    transition: background .15s, color .15s, transform .15s;
}
.sidebar .nav-link:hover {
    color: #fff;
    background: rgba(255,255,255,.075);
    transform: translateX(2px);
}
.sidebar .nav-link.active {
    color: #fff;
    background: linear-gradient(135deg, var(--brand), var(--brand-dark));
    box-shadow: 0 10px 24px rgba(26,115,232,.22);
}
.sidebar .nav-link.active::before {
    content: '';
    position: absolute;
    left: -10px;
    top: 8px;
    bottom: 8px;
    width: 3px;
    background: #22d3ee;
    border-radius: 0 4px 4px 0;
}
.sidebar .nav-link i {
    width: 18px;
    text-align: center;
    font-size: 16px;
    flex: 0 0 auto;
}
.sidebar-footer {
    flex: 0 0 auto;
    min-width: 0;
    padding: 14px;
    border-top: 1px solid rgba(255,255,255,.08);
}
.sidebar-user {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: var(--radius);
    background: rgba(255,255,255,.06);
    min-width: 0;
}
.avatar {
    width: 34px;
    height: 34px;
    border-radius: var(--radius);
    display: grid;
    place-items: center;
    color: #fff;
    font-weight: 800;
    background: linear-gradient(135deg, var(--brand), var(--teal));
    flex: 0 0 auto;
}
.sidebar-user-name {
    color: #fff;
    font-size: 13px;
    font-weight: 800;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.sidebar-user-role {
    color: rgba(226,232,240,.64);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
}

.content-wrap {
    width: calc(100% - var(--sidebar-w));
    min-width: 0;
    min-height: 100vh;
    margin-left: var(--sidebar-w);
}
.topbar {
    height: var(--topbar-h);
    position: sticky;
    top: 0;
    z-index: 90;
    background: rgba(255,255,255,.9);
    border-bottom: 1px solid rgba(15,23,42,.08);
    backdrop-filter: blur(14px);
}
.page-title-block h1 {
    color: var(--ink);
    font-weight: 800;
}
.role-pill {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 4px 10px;
    border-radius: 999px;
    background: var(--ink);
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}
.topbar-actions {
    min-width: 0;
}
.topbar-actions .dropdown {
    min-width: 0;
}
.topbar-user {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    min-width: 0;
    max-width: 230px;
    min-height: 44px;
    padding: 6px 10px 6px 7px;
    border: 1px solid rgba(15,23,42,.08);
    border-radius: var(--radius);
    background: rgba(255,255,255,.84);
    box-shadow: 0 8px 20px rgba(15,23,42,.08);
}
.topbar-user-toggle {
    appearance: none;
    border-style: solid;
    font: inherit;
    cursor: pointer;
}
.topbar-user-toggle::after {
    content: '';
    width: 7px;
    height: 7px;
    margin-left: 2px;
    border-right: 2px solid rgba(100,116,139,.8);
    border-bottom: 2px solid rgba(100,116,139,.8);
    transform: rotate(45deg) translateY(-2px);
    flex: 0 0 auto;
}
.topbar-user:hover,
.topbar-user:focus,
.topbar-user.show {
    background: #fff;
    border-color: rgba(26,115,232,.22);
    box-shadow: 0 10px 26px rgba(15,23,42,.12);
    outline: none;
}
.topbar-user-menu {
    min-width: 210px;
    padding: 8px;
    border: 1px solid rgba(15,23,42,.08);
    border-radius: var(--radius);
    box-shadow: 0 18px 40px rgba(15,23,42,.14);
}
.topbar-user-menu .dropdown-item {
    border-radius: 6px;
    font-size: 13px;
    font-weight: 700;
}
.topbar-user-menu .dropdown-item:active {
    background: var(--brand);
}
.topbar-avatar {
    width: 32px;
    height: 32px;
    font-size: 13px;
}
.topbar-user-meta {
    min-width: 0;
    line-height: 1.1;
}
.topbar-user-name {
    color: var(--ink);
    font-size: 13px;
    font-weight: 800;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.topbar-user-role {
    margin-top: 3px;
    color: var(--muted);
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .03em;
}
.main-content { padding: 26px; }
.app-footer {
    padding: 8px 26px 24px;
    text-align: center;
    color: #80868b;
    font-size: 12px;
}

.btn { border-radius: var(--radius); font-weight: 700; }
.btn-primary {
    background: linear-gradient(135deg, var(--brand), var(--brand-dark));
    border-color: var(--brand);
    box-shadow: 0 12px 24px rgba(26,115,232,.18);
}
.btn-primary:hover,
.btn-primary:focus {
    background: linear-gradient(135deg, var(--brand-dark), #0f4b9a);
    border-color: var(--brand-dark);
}
.form-control,
.form-select,
input,
select,
textarea {
    border-radius: var(--radius);
}
.form-control:focus,
.form-select:focus,
input:focus,
select:focus,
textarea:focus {
    border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(26,115,232,.14);
}
.card,
.panel,
.stat-card,
.auth-card,
.box {
    border-radius: var(--radius);
}
.card,
.panel {
    background: rgba(255,255,255,.96);
    border: 1px solid rgba(15,23,42,.08);
    box-shadow: var(--shadow);
}
.card-body { padding: 20px; }

.dashboard-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}
.dashboard-toolbar h2 {
    margin: 0;
    color: var(--ink);
    font-size: 22px;
    font-weight: 800;
}
.eyebrow,
.panel-kicker {
    color: var(--muted);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}
.kpi-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(180px, 1fr));
    gap: 16px;
}
.stat-card {
    min-height: 132px;
    padding: 18px;
    border: 1px solid rgba(15,23,42,.08);
    background: linear-gradient(180deg, rgba(255,255,255,.98), rgba(248,250,252,.96));
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
}
.stat-card::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--brand), var(--teal), var(--amber));
}
.stat-card .stat-icon {
    width: 38px;
    height: 38px;
    margin-bottom: 9px;
    border-radius: var(--radius);
    display: grid;
    place-items: center;
    color: var(--brand);
    background: var(--brand-soft);
    font-size: 18px;
}
.stat-card.income .stat-icon { color: var(--green); background: var(--green-soft); }
.stat-card.expense .stat-icon { color: var(--red); background: var(--red-soft); }
.stat-card.balance .stat-icon { color: var(--brand-dark); background: var(--brand-soft); }
.stat-card.total .stat-icon { color: #b45309; background: var(--orange-soft); }
.stat-card .label {
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .03em;
}
.stat-card .value {
    margin-top: 4px;
    color: var(--ink);
    font-size: clamp(20px, 1.7vw, 26px);
    font-weight: 800;
    line-height: 1.1;
}
.dashboard-grid {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(320px, 1fr);
    gap: 18px;
}
.panel {
    min-width: 0;
    padding: 20px;
}
.panel-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
}
.panel-header h3 {
    margin: 2px 0 0;
    color: var(--ink);
    font-size: 16px;
    font-weight: 800;
}
.enterprise-table thead th,
.table thead th {
    color: var(--muted);
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .04em;
    white-space: nowrap;
    border-bottom-color: var(--line);
}
.enterprise-table tbody td {
    padding-top: 12px;
    padding-bottom: 12px;
    border-color: var(--line-soft);
}
.table-responsive { border-radius: var(--radius); }
.table { min-width: 720px; }
.summary-list { display: grid; gap: 0; }
.summary-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--line-soft);
}
.summary-row span { color: #334155; font-weight: 700; }
.summary-row strong { color: var(--ink); font-weight: 800; white-space: nowrap; }

.transactions-filter-card .card-body {
    padding: 18px;
}
.transactions-filter .form-label {
    margin-bottom: 5px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .04em;
}
.transactions-filter .form-control,
.transactions-filter .form-select,
.transactions-filter .btn {
    min-height: 38px;
}
.transaction-summary-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}
.transaction-stat-card {
    min-height: 112px;
    padding: 16px;
}
.monthly-filter-card .card-body {
    padding: 18px;
}
.monthly-filter .form-label {
    margin-bottom: 5px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .04em;
}
.monthly-filter .form-control,
.monthly-filter .form-select,
.monthly-filter .btn {
    min-height: 38px;
}
.monthly-summary-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}
.monthly-stat-card {
    min-height: 112px;
    padding: 16px;
}
.annual-filter-card .card-body {
    padding: 18px;
}
.annual-filter .form-label {
    margin-bottom: 5px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .04em;
}
.annual-filter .form-control,
.annual-filter .form-select,
.annual-filter .btn {
    min-height: 38px;
}
.annual-summary-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}
.annual-stat-card {
    min-height: 112px;
    padding: 16px;
}

.auth-page {
    min-height: 100vh;
    padding: 24px;
}
.box {
    width: min(420px, 100%);
    padding: 30px;
    position: relative;
    overflow: hidden;
    background: rgba(255,255,255,.96);
    border: 1px solid rgba(255,255,255,.5);
    box-shadow: 0 24px 70px rgba(2,6,23,.35);
}
.box::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--brand), var(--teal), var(--amber));
}
.brand-logo {
    width: 176px;
    height: 54px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
}
.brand-logo img {
    max-width: 176px;
    max-height: 54px;
    object-fit: contain;
}
.brand-placeholder {
    width: 176px;
    height: 54px;
    border-radius: var(--radius);
    display: grid;
    place-items: center;
    color: #fff;
    font-weight: 800;
    background: linear-gradient(135deg, var(--brand), var(--teal));
}
.box h1 {
    margin: 0 0 6px;
    color: var(--ink);
    font-size: 24px;
    font-weight: 800;
}
.box p {
    margin: 0 0 24px;
    color: var(--muted);
    line-height: 1.5;
}
.box label {
    display: block;
    margin: 14px 0 6px;
    color: var(--ink);
    font-size: 13px;
    font-weight: 800;
}
.check-row {
    display: flex !important;
    align-items: center;
    gap: 8px;
    color: #475569 !important;
    font-size: 13px !important;
    font-weight: 700 !important;
}
.check-row input,
.form-check-input {
    width: 16px;
    height: 16px;
    margin: 0;
}
.demo-box {
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid #e2e8f0;
}
.demo-title {
    margin-bottom: 8px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}
.demo-item {
    padding: 8px 10px;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius);
    background: #f8fafc;
}
.demo-role { color: #0f172a; font-size: 12px; font-weight: 800; }
.demo-cred { color: var(--muted); font-size: 11px; line-height: 1.45; word-break: break-word; }
.alert { border-radius: var(--radius); }
.alert-danger,
.danger { background: var(--red-soft); color: var(--red); border-color: rgba(217,48,37,.14); }
.alert-success,
.success { background: var(--green-soft); color: var(--green); border-color: rgba(30,142,62,.14); }
.alert-warning { background: #fff8e1; color: #8a5b00; border-color: rgba(232,157,31,.18); }
.settings-logo-preview {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 8px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #f8fafc;
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
}
.settings-logo-preview img {
    width: 34px;
    height: 34px;
    border-radius: 7px;
    object-fit: cover;
    background: #fff;
}

.mobile-nav .nav-link {
    margin: 0;
    min-width: 0;
    color: #334155;
    background: #f8fafc;
    border-radius: var(--radius);
}
.mobile-nav .nav-link:hover { color: var(--brand); }

@media (max-width: 1199.98px) {
    .kpi-grid { grid-template-columns: repeat(2, minmax(180px, 1fr)); }
    .dashboard-grid { grid-template-columns: 1fr; }
}
@media (max-width: 991.98px) {
    .content-wrap { width: 100%; margin-left: 0; }
    .topbar .container-fluid { min-width: 0; }
    .page-title-block { min-width: 0; }
    .page-title-block h1,
    .page-title-block .text-muted {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    .main-content { padding: 18px; }
}
@media (max-width: 575.98px) {
    .main-content { padding: 14px; }
    .app-footer { padding: 4px 14px 18px; }
    .page-title-block .text-muted { font-size: 10px !important; }
    .page-title-block h1 { font-size: 16px; }
    .topbar-actions { gap: 6px !important; }
    .topbar-user {
        max-width: 42px;
        min-height: 38px;
        padding: 3px;
        border-color: rgba(15,23,42,.1);
    }
    .topbar-avatar {
        width: 30px;
        height: 30px;
    }
    .topbar-user-toggle::after { display: none; }
    .topbar-user-meta { display: none; }
    .kpi-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 8px;
        margin-bottom: 14px !important;
    }
    .dashboard-toolbar { align-items: stretch; flex-direction: column; }
    .dashboard-toolbar h2 { font-size: 20px; }
    .panel, .card-body { padding: 15px; }
    .panel-header { align-items: stretch; flex-direction: column; }
    .panel-header .btn { align-self: flex-start; }
    .kpi-grid .stat-card {
        min-height: 94px;
        padding: 10px 8px;
    }
    .kpi-grid .stat-card .stat-icon {
        width: 30px;
        height: 30px;
        font-size: 15px;
        margin-bottom: 8px;
    }
    .kpi-grid .stat-card .label {
        font-size: 8px;
        line-height: 1.15;
        letter-spacing: 0;
    }
    .kpi-grid .stat-card .value {
        margin-top: 4px;
        font-size: clamp(10px, 2.9vw, 13px);
        line-height: 1.1;
        overflow-wrap: anywhere;
    }
    .auth-page { padding: 14px; }
    .box { padding: 24px 18px; }
    .box h1 { font-size: 21px; }
    .table-responsive { margin-inline: -15px; padding-inline: 15px; }
    .dashboard-toolbar .btn { width: 100%; }
    .transactions-filter-card { margin-bottom: 14px !important; }
    .transactions-filter-card .card-body { padding: 12px; }
    .transactions-filter-card h3 { font-size: 16px; }
    .transactions-filter-card p { display: none; }
    .transactions-filter-card .btn-primary { width: 100%; min-height: 38px; }
    .transactions-filter { --bs-gutter-x: .35rem; --bs-gutter-y: .5rem; }
    .transaction-filter-inline { min-width: 0; }
    .transactions-filter .form-label {
        margin-bottom: 3px;
        font-size: 10px;
        letter-spacing: 0;
    }
    .transactions-filter .form-control,
    .transactions-filter .form-select,
    .transactions-filter .btn {
        min-height: 34px;
        padding: 6px 7px;
        font-size: 12px;
    }
    .transaction-filter-inline .form-control,
    .transaction-filter-inline .form-select {
        min-width: 0;
        padding-inline: 5px;
        font-size: 11px;
    }
    .transaction-filter-inline input[type="date"] {
        font-size: 10px;
    }
    .transactions-filter-actions .btn { flex: 1 1 0; }
    .transactions-table {
        min-width: 432px;
        font-size: 60%;
    }
    .transactions-table thead th {
        padding: 5px 4px;
        font-size: 6.6px;
        letter-spacing: 0;
    }
    .transactions-table tbody td {
        padding: 5px 4px;
        line-height: 1.2;
    }
    .transactions-table .small {
        font-size: 85%;
    }
    .transactions-table .btn-sm {
        padding: 2px 4px;
        font-size: 8.4px;
        line-height: 1.2;
    }
    .transactions-table .btn-sm .bi {
        margin-right: 2px !important;
    }
    .transactions-table td.text-nowrap {
        white-space: normal !important;
    }
    .transaction-summary-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 7px;
        margin-bottom: 14px !important;
    }
    .transaction-stat-card {
        min-height: 82px;
        padding: 10px 7px;
        border-radius: 7px;
    }
    .transaction-stat-card::after { height: 2px; }
    .transaction-stat-card .label {
        font-size: 9px;
        line-height: 1.15;
        letter-spacing: 0;
    }
    .transaction-stat-card .value {
        margin-top: 5px;
        font-size: clamp(11px, 3.2vw, 14px);
        line-height: 1.15;
        overflow-wrap: anywhere;
    }
    .monthly-filter-card { margin-bottom: 14px !important; }
    .monthly-filter-card .card-body { padding: 12px; }
    .monthly-filter { --bs-gutter-x: .35rem; --bs-gutter-y: .5rem; }
    .monthly-filter-inline { min-width: 0; }
    .monthly-filter .form-label {
        margin-bottom: 3px;
        font-size: 10px;
        letter-spacing: 0;
    }
    .monthly-filter .form-control,
    .monthly-filter .form-select,
    .monthly-filter .btn {
        min-height: 34px;
        padding: 6px 7px;
        font-size: 12px;
    }
    .monthly-filter-inline .form-control,
    .monthly-filter-inline .form-select {
        min-width: 0;
        padding-inline: 5px;
        font-size: 11px;
    }
    .monthly-filter-actions .btn {
        flex: 1 1 0;
        padding-inline: 5px;
        font-size: 11px;
        white-space: nowrap;
    }
    .monthly-summary-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
        margin-bottom: 14px !important;
    }
    .monthly-stat-card {
        min-height: 88px;
        padding: 11px 9px;
        border-radius: 7px;
    }
    .monthly-stat-card::after { height: 2px; }
    .monthly-stat-card .label {
        font-size: 9px;
        line-height: 1.15;
        letter-spacing: 0;
    }
    .monthly-stat-card .value {
        margin-top: 5px;
        font-size: clamp(12px, 3.6vw, 15px);
        line-height: 1.15;
        overflow-wrap: anywhere;
    }
    .annual-filter-card { margin-bottom: 14px !important; }
    .annual-filter-card .card-body { padding: 12px; }
    .annual-filter { --bs-gutter-x: .35rem; --bs-gutter-y: .5rem; }
    .annual-filter-inline { min-width: 0; }
    .annual-filter .form-label {
        margin-bottom: 3px;
        font-size: 10px;
        letter-spacing: 0;
    }
    .annual-filter .form-control,
    .annual-filter .form-select,
    .annual-filter .btn {
        min-height: 34px;
        padding: 6px 7px;
        font-size: 12px;
    }
    .annual-filter-inline .form-control,
    .annual-filter-inline .form-select {
        min-width: 0;
        padding-inline: 5px;
        font-size: 11px;
    }
    .annual-filter-actions .btn {
        flex: 1 1 0;
        padding-inline: 5px;
        font-size: 11px;
        white-space: nowrap;
    }
    .annual-summary-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
        margin-bottom: 14px !important;
    }
    .annual-stat-card {
        min-height: 88px;
        padding: 11px 9px;
        border-radius: 7px;
    }
    .annual-stat-card::after { height: 2px; }
    .annual-stat-card .label {
        font-size: 9px;
        line-height: 1.15;
        letter-spacing: 0;
    }
    .annual-stat-card .value {
        margin-top: 5px;
        font-size: clamp(12px, 3.6vw, 15px);
        line-height: 1.15;
        overflow-wrap: anywhere;
    }
}
.offcanvas .nav-link.active::before,
.mobile-nav .nav-link::before {
    display: none;
}
.offcanvas {
    width: min(320px, calc(100vw - 32px)) !important;
    max-width: 100%;
    overflow: hidden;
}
.offcanvas-body {
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-color: rgba(148,163,184,.5) transparent;
    scrollbar-width: thin;
}
.offcanvas-body::-webkit-scrollbar {
    width: 8px;
}
.offcanvas-body::-webkit-scrollbar-track {
    background: transparent;
}
.offcanvas-body::-webkit-scrollbar-thumb {
    background: rgba(148,163,184,.46);
    border: 2px solid transparent;
    border-radius: 999px;
    background-clip: padding-box;
}
.offcanvas .nav-link {
    transform: none !important;
    box-shadow: none;
}
#mobileNav.offcanvas {
    color: #fff;
    background:
        linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px),
        linear-gradient(180deg, rgba(255,255,255,.04) 1px, transparent 1px),
        radial-gradient(circle at 20% 12%, rgba(20,184,166,.28), transparent 32%),
        radial-gradient(circle at 88% 5%, rgba(26,115,232,.36), transparent 28%),
        linear-gradient(180deg, #102033 0%, #0f172a 62%, #0a1020 100%);
    background-size: 44px 44px, 44px 44px, 100% 100%, 100% 100%, auto;
    border-right: 1px solid rgba(255,255,255,.08);
    box-shadow: 10px 0 30px rgba(15,23,42,.22);
}
#mobileNav .offcanvas-header {
    min-height: 72px;
    border-bottom: 1px solid rgba(255,255,255,.08);
}
#mobileNav .offcanvas-title {
    color: #fff;
    font-weight: 800;
}
#mobileNav .btn-close {
    filter: invert(1) grayscale(100%) brightness(200%);
    opacity: .78;
}
#mobileNav .btn-close:hover {
    opacity: 1;
}
#mobileNav .offcanvas-body {
    scrollbar-color: rgba(148,163,184,.5) transparent;
}
#mobileNav .mobile-nav {
    gap: 4px !important;
}
#mobileNav .mobile-nav .nav-link {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 42px;
    margin: 2px 0;
    padding: 10px 12px;
    color: rgba(226,232,240,.82);
    font-weight: 700;
    background: transparent;
    border-radius: var(--radius);
    transition: background .15s, color .15s;
}
#mobileNav .mobile-nav .nav-link:hover,
#mobileNav .mobile-nav .nav-link:focus {
    color: #fff;
    background: rgba(255,255,255,.075);
}
#mobileNav .mobile-nav .nav-link.active {
    color: #fff;
    background: linear-gradient(135deg, var(--brand), var(--brand-dark));
    box-shadow: 0 10px 24px rgba(26,115,232,.22);
}
