:root {
  --navy: #0d2a36;
  --navy-soft: #16404f;
  --teal: #087b7e;
  --teal-dark: #056467;
  --lime: #c8f234;
  --canvas: #f2f7f7;
  --surface: #fff;
  --ink: #132d38;
  --muted: #6c7c84;
  --line: #dce7e8;
  --orange: #ff8a65;
  --green: #137a5c;
  --shadow: 0 14px 34px rgba(19, 45, 56, .08);
  --sidebar-width: 260px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
body { display: flex; min-width: 320px; min-height: 100vh; margin: 0; background: var(--canvas); color: var(--ink); }
a { color: inherit; }
button, input, select, textarea { font: inherit; }
.sidebar { position: sticky; z-index: 1050; top: 0; align-self: flex-start; display: flex; flex: 0 0 var(--sidebar-width); flex-direction: column; width: var(--sidebar-width); height: 100vh; height: 100dvh; min-height: 0; overflow: hidden; padding: 25px 17px 18px; color: #ebf6f6; background: var(--navy); transition: width .3s cubic-bezier(.2,.75,.3,1), flex-basis .3s cubic-bezier(.2,.75,.3,1), padding .3s ease; box-shadow: 10px 0 28px rgba(13,42,54,.08); }
.sidebar-backdrop { display: none; }
.brand { display: grid; flex-shrink: 0; grid-template-columns: 40px auto; grid-template-rows: 25px 15px; column-gap: 10px; align-items: center; padding: 3px 9px 0; color: #fff; text-decoration: none; }
.brand-mark { grid-row: span 2; display: grid; place-items: center; width: 39px; height: 39px; border-radius: 13px; color: var(--navy); background: var(--lime); font-size: 1.2rem; box-shadow: 0 8px 20px rgba(200,242,52,.2); }
.brand-name { font-size: 1.15rem; line-height: 1; font-weight: 850; letter-spacing: -.055em; }
.brand-name em { color: var(--lime); font-style: normal; }
.brand-tagline { color: #9fb4ba; font-size: .57rem; font-weight: 800; letter-spacing: .1em; }
.sidebar-collapse-button { align-self: flex-end; display: grid; place-items: center; width: 33px; height: 33px; margin: 20px 2px -24px 0; border: 1px solid rgba(255,255,255,.11); border-radius: 9px; color: #b7c9cd; background: transparent; transition: color .2s, background .2s, transform .25s; }
.sidebar-collapse-button:hover { color: #fff; background: rgba(255,255,255,.08); }
.sidebar-collapse-button i { transition: transform .3s ease; }
.sidebar-collapsed .sidebar-collapse-button i { transform: rotate(180deg); }
.nav-caption { flex-shrink: 0; margin: 37px 10px 10px; color: #8da7ad; font-size: .66rem; font-weight: 800; letter-spacing: .13em; }
.sidebar nav { flex: 1 1 auto; min-height: 0; overflow-y: auto; scrollbar-width: thin; }
.nav-list { display: grid; gap: 5px; }
.sidebar .nav-link { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 12px; color: #b7c9cd; font-size: .92rem; transition: color .18s, background .18s, transform .18s; }
.sidebar .nav-link span { overflow: hidden; white-space: nowrap; transition: opacity .2s ease, max-width .3s ease; }
.sidebar .nav-link i { width: 19px; font-size: 1rem; }
.sidebar .nav-link:hover { color: #fff; background: rgba(255,255,255,.07); transform: translateX(2px); }
.sidebar .nav-link.active { color: #fff; background: var(--navy-soft); box-shadow: inset 3px 0 var(--lime); }
.sidebar-cash-icon { display: none; }
.sidebar-collapsed .sidebar { flex-basis: 78px; width: 78px; padding-right: 12px; padding-left: 12px; }
.sidebar-collapsed .brand { display: flex; justify-content: center; padding: 3px 0 0; }
.sidebar-collapsed .brand-name, .sidebar-collapsed .brand-tagline { display: none; }
.sidebar-collapsed .sidebar-collapse-button { align-self: center; margin: 18px 0 -24px; }
.sidebar-collapsed .nav-caption { overflow: hidden; height: 1px; margin: 37px 0 10px; opacity: 0; }
.sidebar-collapsed .sidebar .nav-link { position: relative; justify-content: center; width: 46px; height: 46px; margin: 0 auto; padding: 0; }
.sidebar-collapsed .sidebar .nav-link i { width: auto; font-size: 1.15rem; }
.sidebar-collapsed .sidebar .nav-link span { position: absolute; overflow: hidden; width: 1px; height: 1px; clip: rect(0,0,0,0); white-space: nowrap; }
.sidebar-collapsed .sidebar .nav-link.active { box-shadow: inset 0 -3px var(--lime); }
.sidebar-collapsed .sidebar .nav-link::after { position: absolute; z-index: 1080; top: 50%; left: calc(100% + 12px); padding: 7px 10px; border: 1px solid rgba(255,255,255,.08); border-radius: 8px; color: #fff; background: #193c48; box-shadow: 0 8px 20px rgba(5,23,30,.22); content: attr(data-tooltip); font-size: .74rem; font-weight: 700; line-height: 1.2; white-space: nowrap; opacity: 0; pointer-events: none; transform: translate(-5px,-50%); transition: opacity .15s ease, transform .18s ease; }
.sidebar-collapsed .sidebar .nav-link:hover::after, .sidebar-collapsed .sidebar .nav-link:focus-visible::after { opacity: 1; transform: translate(0,-50%); }
.sidebar-collapsed .sidebar-cash { display: grid; place-items: center; min-height: 47px; padding: 8px; }
.sidebar-collapsed .sidebar-cash-icon { display: block; color: var(--lime); font-size: 1.15rem; }
.sidebar-collapsed .sidebar-cash span, .sidebar-collapsed .sidebar-cash strong, .sidebar-collapsed .sidebar-cash small { display: none; }
.sidebar-collapsed .sidebar-profile { flex-direction: column; justify-content: center; gap: 8px; padding: 14px 0 0; }
.sidebar-collapsed .profile-copy { display: none; }
.sidebar-collapsed .sidebar-profile .logout-form { display: block; }
.sidebar-cash { flex-shrink: 0; margin-top: auto; padding: 15px; border: 1px solid rgba(200,242,52,.18); border-radius: 16px; background: linear-gradient(135deg, rgba(200,242,52,.13), rgba(200,242,52,.04)); }
.sidebar-cash span, .sidebar-cash small { display: block; color: #b8caca; font-size: .77rem; }
.sidebar-cash strong { display: block; margin: 4px 0 8px; color: #fff; font-size: 1.1rem; }
.sidebar-cash small { color: var(--lime); font-size: .7rem; }
.sidebar-profile { display: flex; flex-shrink: 0; align-items: center; gap: 9px; padding: 16px 4px 0; margin-top: 15px; border-top: 1px solid rgba(255,255,255,.1); }
.avatar, .header-avatar { display: grid; flex: 0 0 auto; place-items: center; width: 35px; height: 35px; border-radius: 50%; color: var(--navy); background: #e6bda8; font-size: .78rem; font-weight: 800; }
.profile-copy { display: grid; min-width: 0; flex: 1; line-height: 1.25; }
.profile-copy strong { overflow: hidden; color: #f7fbfb; font-size: .78rem; text-overflow: ellipsis; white-space: nowrap; }
.profile-copy small { color: #9fb4ba; font-size: .69rem; }
.logout-form { margin: 0; }
.icon-button { display: grid; place-items: center; width: 34px; height: 34px; border: 0; border-radius: 9px; color: #adc0c3; background: transparent; }
.icon-button:hover { color: #fff; background: rgba(255,255,255,.1); }
.app-content { flex: 1 1 auto; min-width: 0; min-height: 100vh; }
.app-header { position: sticky; z-index: 1010; top: 0; display: flex; align-items: center; gap: 14px; min-height: 74px; padding: 10px clamp(18px,4vw,54px); border-bottom: 1px solid rgba(220,231,232,.8); background: rgba(242,247,247,.91); backdrop-filter: blur(16px); }
.hamburger { display: grid; align-content: center; justify-items: center; gap: 5px; width: 42px; height: 42px; padding: 10px; border: 1px solid var(--line); border-radius: 12px; color: var(--navy); background: #fff; transition: background .2s, border-color .2s, transform .2s; }
.hamburger:hover { border-color: #b5cccc; background: #f8fcfc; transform: translateY(-1px); }
.hamburger span { display: block; width: 18px; height: 2px; border-radius: 4px; background: currentColor; transition: transform .25s ease, opacity .2s ease; }
.sidebar-open .hamburger span:first-child { transform: translateY(7px) rotate(45deg); }
.sidebar-open .hamburger span:nth-child(2) { opacity: 0; }
.sidebar-open .hamburger span:last-child { transform: translateY(-7px) rotate(-45deg); }
.header-title { display: grid; gap: 1px; line-height: 1.15; }
.header-title strong { font-size: .95rem; }
.header-eyebrow { color: var(--muted); font-size: .58rem; font-weight: 800; letter-spacing: .13em; }
.header-right { display: flex; align-items: center; gap: 14px; margin-left: auto; }
.header-date { display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: .81rem; }
.header-date i { color: var(--teal); }
.header-avatar { width: 33px; height: 33px; background: var(--lime); }
.page-content { width: min(1440px, 100%); margin: 0 auto; padding: 32px clamp(18px,4vw,54px) 48px; }
.page-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 25px; }
.eyebrow { color: var(--teal); font-size: .66rem; font-weight: 850; letter-spacing: .13em; }
.page-heading h1 { margin: 5px 0 6px; color: var(--ink); font-size: clamp(1.72rem,3vw,2.25rem); font-weight: 800; letter-spacing: -.055em; line-height: 1.1; }
.page-heading p { margin: 0; color: var(--muted); font-size: .91rem; }
.heading-actions { display: flex; flex-wrap: wrap; gap: 9px; }
.btn { min-height: 40px; border-radius: 10px; font-size: .84rem; font-weight: 750; }
.btn-brand { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 9px 14px; border-color: var(--lime); color: var(--navy); background: var(--lime); }
.btn-brand:hover, .btn-brand:focus { border-color: #d6fa52; color: var(--navy); background: #d6fa52; }
.btn-soft { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 9px 14px; border-color: #d6eeeb; color: var(--teal-dark); background: #e3f4f2; }
.btn-soft:hover { border-color: #c6e7e3; color: var(--teal-dark); background: #d6eeeb; }
.btn-light { border: 1px solid var(--line); color: var(--ink); background: #fff; }
.hero-grid { display: grid; grid-template-columns: minmax(0,1.35fr) minmax(265px,.65fr); gap: 17px; }
.balance-hero { position: relative; overflow: hidden; min-height: 238px; padding: 28px clamp(22px,3vw,34px); border-radius: 22px; color: #fff; background: linear-gradient(130deg,#0c313e 0%,#0d6368 100%); box-shadow: 0 18px 35px rgba(13,42,54,.14); }
.balance-hero-head, .balance-hero-foot { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.balance-hero-head { color: #c1d8d8; font-size: .85rem; }
.live-pill { padding: 6px 9px; border-radius: 999px; color: var(--navy); background: var(--lime); font-size: .61rem; font-weight: 850; letter-spacing: .06em; }
.live-pill i { margin-right: 4px; color: #388847; font-size: .45rem; }
.balance-hero-value { position: relative; z-index: 1; margin: 19px 0 4px; font-size: clamp(2.1rem,4.5vw,3.05rem); font-weight: 820; letter-spacing: -.065em; line-height: 1.1; }
.balance-hero p { position: relative; z-index: 1; margin: 0; color: #c4dcdd; font-size: .8rem; }
.balance-hero-foot { z-index: 1; justify-content: flex-start; gap: 11px; margin-top: 26px; padding-top: 13px; border-top: 1px solid rgba(255,255,255,.16); color: #c4dcdd; font-size: .79rem; }
.balance-hero-foot strong { color: #fff; }
.hero-orbit { position: absolute; border: 1px solid rgba(200,242,52,.25); border-radius: 50%; pointer-events: none; }
.hero-orbit-one { right: -90px; bottom: -205px; width: 350px; height: 350px; }
.hero-orbit-two { top: -101px; right: -24px; width: 185px; height: 185px; }
.goal-card, .metric-card, .panel-card { border: 1px solid rgba(220,231,232,.85); border-radius: 19px; background: var(--surface); box-shadow: var(--shadow); }
.goal-card { display: flex; flex-direction: column; justify-content: space-between; min-height: 238px; padding: 23px; }
.goal-top { display: flex; justify-content: space-between; gap: 10px; }
.goal-top h2, .panel-heading h2 { margin: 4px 0; color: var(--ink); font-size: 1rem; font-weight: 800; letter-spacing: -.02em; }
.goal-icon, .panel-icon { display: grid; place-items: center; width: 37px; height: 37px; border-radius: 12px; color: var(--teal); background: #e3f4f2; }
.goal-collected { margin-top: 12px; font-size: 1.58rem; font-weight: 800; letter-spacing: -.05em; }
.goal-progress { overflow: hidden; height: 8px; margin-top: 13px; border-radius: 99px; background: #eaf0ef; }
.goal-progress span { display: block; width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg,var(--teal),#2aa5a3); transition: width .6s ease; }
.goal-bottom { display: flex; justify-content: space-between; margin-top: 9px; color: var(--muted); font-size: .74rem; }
.goal-bottom b { color: var(--ink); }
.metrics-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 15px; margin: 17px 0; }
.metric-card { display: grid; grid-template-columns: 42px 1fr; grid-template-rows: auto auto auto; align-items: center; column-gap: 12px; min-height: 111px; padding: 17px; }
.metric-icon { grid-row: span 3; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 13px; font-size: 1rem; }
.metric-icon-teal { color: var(--teal); background: #e3f4f2; }
.metric-icon-lime { color: #5d7514; background: #f0f8d6; }
.metric-icon-orange { color: #bb583f; background: #fff0ea; }
.metric-label { color: var(--muted); font-size: .76rem; }
.metric-card strong { margin: 1px 0; font-size: 1.31rem; font-weight: 800; letter-spacing: -.04em; }
.metric-card small { color: #91a0a4; font-size: .68rem; }
.dashboard-grid { display: grid; grid-template-columns: minmax(0,1.3fr) minmax(270px,.7fr); gap: 17px; }
.panel-card { min-width: 0; padding: 21px; }
.panel-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 17px; }
.panel-heading p { margin: 3px 0 0; color: var(--muted); font-size: .76rem; }
.chart-container { position: relative; height: 235px; }
.shortcuts-panel { padding-bottom: 10px; }
.shortcut-link { display: flex; align-items: center; gap: 11px; padding: 13px 0; border-top: 1px solid #edf2f2; text-decoration: none; transition: transform .18s; }
.shortcut-link:hover { transform: translateX(3px); }
.shortcut-icon { display: grid; flex: 0 0 auto; place-items: center; width: 39px; height: 39px; border-radius: 12px; color: var(--teal); background: #e8f5f2; }
.shortcut-link>span:nth-child(2) { display: grid; flex: 1; gap: 2px; }
.shortcut-link strong { font-size: .81rem; }
.shortcut-link small { color: var(--muted); font-size: .68rem; }
.shortcut-link>i { color: #91a0a4; font-size: .76rem; }
.table-panel { padding: 20px 21px; }
.table-panel .panel-heading { margin-bottom: 13px; }
.app-table { margin: 0 !important; --bs-table-bg: transparent; }
.app-table thead th { padding: 12px 10px; border-bottom: 1px solid var(--line); color: #829196; font-size: .67rem; font-weight: 800; letter-spacing: .045em; text-transform: uppercase; white-space: nowrap; }
.app-table tbody td { padding: 12px 10px; border-color: #edf2f2; color: #314952; font-size: .78rem; vertical-align: middle; }
.app-table tbody tr:hover { background: #f8fbfb; }
.table-person { display: flex; align-items: center; gap: 9px; min-width: 155px; }
.table-person .mini-avatar { display: grid; flex: 0 0 auto; place-items: center; width: 31px; height: 31px; border-radius: 10px; color: var(--teal-dark); background: #e3f4f2; font-size: .7rem; font-weight: 850; }
.table-person span:last-child { display: grid; gap: 2px; }
.table-person strong { color: var(--ink); font-size: .77rem; }
.table-person small { color: var(--muted); font-size: .67rem; }
.status-pill { display: inline-flex; align-items: center; gap: 5px; padding: 5px 8px; border-radius: 99px; font-size: .66rem; font-weight: 800; white-space: nowrap; }
.status-active, .status-paid { color: #137a5c; background: #dff6eb; }
.status-inactive, .status-cancelled { color: #707f83; background: #edf1f1; }
.status-overdue { color: #b9442e; background: #fff0ea; }
.row-edit { display: grid; place-items: center; width: 30px; height: 30px; border: 1px solid var(--line); border-radius: 8px; color: var(--teal); background: white; }
.row-edit:hover { border-color: #b8d6d4; background: #f3fbfa; }
.loan-capital { display: flex; gap: 12px; white-space: nowrap; }
.loan-capital>span { display: grid; gap: 2px; font-weight: 700; }
.loan-capital small { color: var(--muted); font-size: .62rem; font-weight: 600; }
.loan-interest { display: grid; gap: 5px; white-space: nowrap; }
.loan-interest>span { display: flex; justify-content: space-between; gap: 9px; font-weight: 700; }
.loan-interest small { color: var(--muted); font-size: .62rem; font-weight: 600; }
.loan-status-action { display: flex; align-items: center; gap: 7px; }
.row-pay { display: grid; place-items: center; width: 30px; height: 30px; border: 1px solid #b8d6d4; border-radius: 9px; color: var(--teal-dark); background: #f3fbfa; font-size: .9rem; text-decoration: none; }
.row-pay:hover, .row-pay:focus-visible { border-color: var(--teal); color: white; background: var(--teal); }
.dataTables_wrapper .dt-layout-row { margin-top: 12px; }
.dataTables_wrapper .dt-search input, .dataTables_wrapper .dt-length select { border: 1px solid var(--line); border-radius: 8px; padding: 5px 8px; background: #fff; font-size: .76rem; }
.dataTables_wrapper .dt-info, .dataTables_wrapper .dt-search label, .dataTables_wrapper .dt-length label { color: var(--muted); font-size: .72rem; }
.dataTables_wrapper .dt-paging .dt-paging-button { border-radius: 7px !important; font-size: .72rem; }
.dataTables_wrapper .dt-paging .dt-paging-button.current { border-color: var(--teal) !important; color: white !important; background: var(--teal) !important; }
.settings-section { display: grid; gap: 17px; }
.report-filter { margin-bottom: 16px; padding: 17px 20px; }
.report-filter-form { display: flex; align-items: flex-end; gap: 13px; }
.report-filter-form>div { width: min(220px,30%); }
.report-filter-form .btn { white-space: nowrap; }
.report-metrics { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 15px; margin-bottom: 16px; }
.report-grid { display: grid; grid-template-columns: minmax(220px,.65fr) minmax(0,1.35fr); gap: 16px; }
.report-chart-wrap { position: relative; height: 245px; }
.report-payments { min-width: 0; }
.settings-form { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; }
.settings-form small, #collector-password-wrap small { display: block; margin-top: 5px; color: var(--muted); font-size: .7rem; }
.settings-submit { align-self: end; }
.settings-form .form-message { grid-column: 1/-1; }
.form-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; }
.form-span { grid-column: 1/-1; }
.form-label { margin-bottom: 6px; color: #425a62; font-size: .75rem; font-weight: 750; }
.form-control, .form-select { min-height: 42px; border-color: #d8e3e4; border-radius: 9px; color: var(--ink); font-size: .83rem; }
.form-control:focus, .form-select:focus { border-color: #62aaa6; box-shadow: 0 0 0 .2rem rgba(8,123,126,.12); }
.select2-container { width: 100% !important; font-size: .83rem; }
.select2-container--bootstrap-5 .select2-selection { min-height: 42px; border-color: #d8e3e4; border-radius: 9px; color: var(--ink); }
.select2-container--bootstrap-5 .select2-selection--single { display: flex; align-items: center; padding: 5px 10px; }
.select2-container--bootstrap-5 .select2-selection--single .select2-selection__rendered { padding: 0 22px 0 0; color: var(--ink); line-height: 1.5; }
.select2-container--bootstrap-5 .select2-selection--single .select2-selection__arrow { top: 8px; right: 7px; }
.select2-container--bootstrap-5.select2-container--focus .select2-selection, .select2-container--bootstrap-5.select2-container--open .select2-selection { border-color: #62aaa6; box-shadow: 0 0 0 .2rem rgba(8,123,126,.12); }
.select2-container--bootstrap-5 .select2-dropdown { overflow: hidden; border-color: #cbdcdd; border-radius: 10px; box-shadow: 0 12px 30px rgba(19,45,56,.14); }
.select2-container--bootstrap-5 .select2-search--dropdown { padding: 8px; }
.select2-container--bootstrap-5 .select2-search--dropdown .select2-search__field { min-height: 37px; border-color: #d8e3e4; border-radius: 7px; font-size: .8rem; }
.select2-container--bootstrap-5 .select2-results__option { padding: 8px 11px; font-size: .8rem; }
.select2-container--bootstrap-5 .select2-results__option--highlighted { color: var(--ink); background: #e3f4f2; }
.modal .select2-container { z-index: 1060; }
.form-control[readonly] { background: #f4f8f8; }
.form-check-wrap { display: flex; align-items: center; gap: 9px; }
.form-check-wrap .form-check-input { margin: 0; }
.form-check-wrap .form-check-label { color: #425a62; font-size: .79rem; }
.form-message { min-height: 0; margin-top: 9px; color: #b9442e; font-size: .77rem; }
.form-message:empty { display: none; }
.modal-content { overflow: hidden; border: 0; border-radius: 17px; box-shadow: 0 22px 65px rgba(13,42,54,.2); }
.modal-header, .modal-footer { padding: 17px 21px; border-color: #edf2f2; }
.modal-header h2 { margin: 4px 0 0; color: var(--ink); font-size: 1.15rem; font-weight: 800; letter-spacing: -.025em; }
.modal-body { padding: 20px 21px; }
.modal-footer { justify-content: flex-end; }
.estimate-box { margin-top: 16px; padding: 14px; border: 1px solid #d6eeeb; border-radius: 12px; background: #f6fbfa; }
.estimate-head { display: flex; justify-content: space-between; gap: 10px; color: var(--ink); font-size: .8rem; }
.estimate-head span { color: var(--muted); font-size: .7rem; }
.estimate-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 10px; margin-top: 11px; color: var(--muted); font-size: .73rem; }
.estimate-grid span { display: grid; gap: 3px; }
.estimate-grid b { color: var(--ink); font-size: .85rem; }
.estimate-note { margin-top: 9px; color: #849397; font-size: .67rem; }
.app-toast { border: 1px solid #c9e7d7; border-radius: 12px; background: #f5fff8; box-shadow: var(--shadow); }
.app-toast .toast-body { display: flex; align-items: center; gap: 9px; padding: 13px 15px; color: var(--ink); font-size: .83rem; }
.app-toast i { color: var(--green); font-size: 1rem; }

.auth-page { display: grid; min-height: 100vh; background: #fff; }
.auth-shell { display: grid; grid-template-columns: 1fr 1fr; min-height: 100vh; }
.auth-brand-panel { position: relative; display: flex; flex-direction: column; overflow: hidden; padding: clamp(25px,5vw,66px); color: #fff; background: linear-gradient(135deg,#0c313e,#0d6368); }
.auth-brand { align-self: flex-start; }
.auth-brand-copy { z-index: 1; width: min(465px,100%); margin: auto; }
.auth-brand-copy .eyebrow { color: var(--lime); }
.auth-brand-copy h1 { margin: 16px 0; font-size: clamp(2.4rem,5vw,4.3rem); font-weight: 800; letter-spacing: -.065em; line-height: 1.04; }
.auth-brand-copy p { max-width: 370px; color: #c0d7d8; font-size: 1rem; }
.auth-decoration span { position: absolute; right: -150px; bottom: -240px; width: 580px; height: 580px; border: 1px solid rgba(200,242,52,.17); border-radius: 50%; }
.auth-decoration span:nth-child(2) { right: -85px; bottom: -180px; width: 450px; height: 450px; }
.auth-decoration span:nth-child(3) { right: -25px; bottom: -122px; width: 320px; height: 320px; }
.auth-form-panel { display: grid; place-items: center; padding: 34px; }
.auth-form-wrap { width: min(420px,100%); }
.auth-form-wrap h2 { margin: 6px 0 0; font-size: 2rem; font-weight: 800; letter-spacing: -.05em; }
.auth-mobile-brand { display: none; margin-bottom: 42px; }
.auth-form .form-control { min-height: 50px; }
.auth-form .input-group-text { border-color: #d8e3e4; border-radius: 9px 0 0 9px; color: var(--teal); background: #f8fbfb; }
.auth-form .input-group .form-control { border-radius: 0 9px 9px 0; }
.auth-form .form-label { margin-bottom: 7px; }
.auth-footnote { margin: 28px 0 0; color: #91a0a4; text-align: center; font-size: .73rem; }

@media (max-width: 860px) {
  body { display: block; }
  .sidebar { position: fixed; z-index: 1050; inset: 0 auto 0 0; align-self: auto; width: var(--sidebar-width); height: 100vh; min-height: 0; flex: none; visibility: hidden; transform: translateX(-102%); transition: transform .3s cubic-bezier(.2,.75,.3,1), visibility 0s linear .3s; box-shadow: 18px 0 42px rgba(13,42,54,.15); }
  .sidebar-open .sidebar { visibility: visible; transform: translateX(0); transition-delay: 0s; }
  .sidebar-backdrop { position: fixed; z-index: 1040; inset: 0; display: block; background: rgba(10,25,32,.42); opacity: 0; visibility: hidden; transition: opacity .25s ease, visibility .25s; }
  .sidebar-open .sidebar-backdrop { opacity: 1; visibility: visible; }
  .sidebar-collapsed .sidebar { width: var(--sidebar-width); padding: 25px 17px 18px; }
  .sidebar-collapsed .brand { display: grid; grid-template-columns: 40px auto; grid-template-rows: 25px 15px; justify-content: initial; padding: 3px 9px 0; }
  .sidebar-collapsed .brand-name, .sidebar-collapsed .brand-tagline { display: initial; }
  .sidebar-collapsed .sidebar-collapse-button { align-self: flex-end; margin: 20px 2px -24px 0; }
  .sidebar-collapsed .nav-caption { overflow: visible; height: auto; margin: 37px 10px 10px; opacity: 1; }
  .sidebar-collapsed .sidebar .nav-link { position: static; justify-content: flex-start; width: auto; height: auto; margin: 0; padding: 11px 12px; }
  .sidebar-collapsed .sidebar .nav-link i { width: 19px; font-size: 1rem; }
  .sidebar-collapsed .sidebar .nav-link span { position: static; overflow: hidden; width: auto; height: auto; clip: auto; white-space: nowrap; }
  .sidebar-collapsed .sidebar .nav-link::after { display: none; }
  .sidebar-collapsed .sidebar .nav-link.active { box-shadow: inset 3px 0 var(--lime); }
  .sidebar-collapsed .sidebar-cash { display: block; min-height: 0; padding: 15px; }
  .sidebar-collapsed .sidebar-cash-icon { display: none; }
  .sidebar-collapsed .sidebar-cash span, .sidebar-collapsed .sidebar-cash strong, .sidebar-collapsed .sidebar-cash small { display: block; }
  .sidebar-collapsed .sidebar-profile { flex-direction: row; justify-content: initial; gap: 9px; padding: 16px 4px 0; }
  .sidebar-collapsed .profile-copy { display: grid; }
  .sidebar-collapsed .sidebar-profile .logout-form { display: block; }
  .hero-grid, .dashboard-grid { grid-template-columns: 1fr; }
  .report-grid { grid-template-columns: 1fr; }
  .goal-card { min-height: 198px; }
  .shortcuts-panel { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); column-gap: 14px; }
  .shortcuts-panel .panel-heading { grid-column: 1/-1; }
  .shortcut-link { align-items: flex-start; }
}
@media (max-width: 640px) {
  .app-header { min-height: 65px; }
  .header-date { display: none; }
  .page-content { padding-top: 23px; }
  .page-heading { align-items: flex-start; flex-direction: column; }
  .page-heading>.btn { align-self: stretch; }
  .heading-actions { width: 100%; }
  .heading-actions>.btn { flex: 1; }
  .metrics-grid { grid-template-columns: 1fr; gap: 10px; }
  .report-metrics { grid-template-columns: 1fr; gap: 10px; }
  .report-filter-form { align-items: stretch; flex-direction: column; }
  .report-filter-form>div { width: 100%; }
  .metric-card { min-height: 87px; }
  .balance-hero { min-height: 218px; }
  .panel-card { padding: 16px 14px; border-radius: 15px; }
  .table-panel { padding: 16px 13px; }
  .shortcuts-panel { display: block; }
  .shortcut-link { align-items: center; }
  .form-grid, .settings-form { grid-template-columns: 1fr; }
  .form-span, .settings-form .form-message { grid-column: auto; }
  .modal-header, .modal-footer { padding: 15px; }
  .modal-body { padding: 16px 15px; }
  .auth-shell { grid-template-columns: 1fr; }
  .auth-brand-panel { display: none; }
  .auth-form-panel { padding: 25px; }
  .auth-mobile-brand { display: grid; }
  .auth-form-wrap { margin-top: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
