:root{--des-green-900:#0d3b24;--des-green-800:#145232;--des-green-700:#1b6b40;--des-green-600:#23854f;--des-yellow:#f5c518;--des-yellow-600:#d9a400;--on-green:#fff;--text:#4f5b54;--text-h:#14201a;--text-muted:#6f7a73;--bg:#f3f6f2;--surface:#fff;--border:#dde5df;--border-strong:#b9c7bd;--track:#e6ece7;--empty-bg:#f8faf8;--subtotal-bg:#f1f6f2;--notice-bg:#fff8db;--notice-border:#f0d97a;--shadow-sm:0 1px 2px #10281a0f, 0 2px 8px #10281a0a;--sans:system-ui, "Segoe UI", Roboto, sans-serif;font:16px/145% var(--sans);--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light dark;color:var(--text);background:var(--bg);font-synthesis:none;text-rendering:optimizelegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}@media (prefers-color-scheme:dark){:root{--lightningcss-light: ;--lightningcss-dark:initial;--des-green-800:#7fd0a2;--text:#a9b8ae;--text-h:#eef3ef;--text-muted:#8a988f;--bg:#0f1612;--surface:#17211b;--border:#2a3830;--border-strong:#3d5045;--track:#24312a;--empty-bg:#131c17;--subtotal-bg:#1c2a22;--notice-bg:#2b2610;--notice-border:#5c4e14;--shadow-sm:0 1px 2px #0000004d}}body{background:var(--bg);margin:0}h1,h2,h3,p{margin:0}.auth-page{background:var(--page-bg,#f3f7f4);place-items:center;min-height:100vh;padding:24px;display:grid}.auth-card{border:1px solid var(--border,#d4e0d9);background:var(--surface,white);width:min(100%,460px);box-shadow:var(--shadow-sm,0 12px 32px #123a2118);border-radius:18px;padding:clamp(24px,5vw,40px)}.auth-card__logo{object-fit:contain;width:106px;height:72px;margin-bottom:18px;display:block}.auth-card__eyebrow{color:var(--des-green-700,#12643c);letter-spacing:.08em;text-transform:uppercase;margin:0 0 5px;font-size:12px;font-weight:700}.auth-card h1{color:var(--text-h,#163f2b);margin:0;font-size:28px}.auth-card__description{color:var(--text,#41564b);margin:10px 0 20px;line-height:1.5}.auth-card__note{color:var(--text-muted,#64766d);margin:12px 0 0;font-size:13px;line-height:1.45}.auth-form{gap:14px;display:grid}.auth-form label{color:var(--text-h,#163f2b);gap:6px;font-size:14px;font-weight:600;display:grid}.auth-form input,.auth-form select,.auth-invite-link input{border:1px solid var(--border-strong,#b8ccc0);width:100%;min-height:42px;color:var(--text-h,#163f2b);font:inherit;background:#fff;border-radius:8px;padding:9px 11px}.auth-form input:focus,.auth-form select:focus,.auth-invite-link input:focus{border-color:var(--des-green-600,#168451);outline:3px solid #16845130}.auth-button{min-height:42px;font:inherit;cursor:pointer;border:1px solid #0000;border-radius:9px;padding:9px 14px;font-weight:700}.auth-button:disabled{opacity:.55;cursor:not-allowed}.auth-button--primary{background:var(--des-green-700,#12643c);color:#fff}.auth-button--secondary,.auth-button--google{border-color:var(--border-strong,#b8ccc0);color:var(--text-h,#163f2b);background:#fff}.auth-button--google{width:100%}.auth-divider{color:var(--text-muted,#64766d);align-items:center;gap:12px;margin:18px 0 12px;font-size:12px;display:flex}.auth-divider:before,.auth-divider:after{content:"";background:var(--border,#d4e0d9);flex:1;height:1px}.auth-link{color:var(--des-green-700,#12643c);font:inherit;cursor:pointer;background:0 0;border:0;padding:10px 0 0;font-weight:700;text-decoration:underline}.auth-message{border-radius:8px;margin:14px 0;padding:10px 12px;font-size:14px;line-height:1.45}.auth-message--error{color:#9e2222;background:#fff4f4;border:1px solid #e6b9b9}.auth-message--success{color:#185e35;background:#f0faf3;border:1px solid #bbd8c6}.auth-admin{gap:18px;display:grid}.auth-admin__header h2{color:var(--des-green-800,#0b4b2b);margin:0}.auth-admin__header p:last-child{color:var(--text-muted,#64766d);margin:5px 0 0}.auth-admin__grid{grid-template-columns:minmax(270px,.75fr) minmax(0,1.5fr);align-items:start;gap:18px;display:grid}.auth-admin__panel{border:1px solid var(--border,#d4e0d9);background:var(--surface,white);border-radius:14px;gap:14px;padding:18px;display:grid}.auth-admin__panel h3{color:var(--text-h,#163f2b);margin:0}.auth-admin__panel--table{min-width:0}.auth-admin__panel--wide{grid-column:1/-1}.auth-invite-link{gap:9px;margin-top:10px;display:grid}.auth-invite-link label{color:var(--text-h,#163f2b);font-size:13px;font-weight:700}.auth-invite-link input{font-size:12px}.user-menu{color:var(--text-h,#163f2b);align-items:center;gap:10px;font-size:13px;display:flex}.user-menu button{color:var(--des-green-700,#12643c);font:inherit;cursor:pointer;background:0 0;border:0;font-weight:700}@media (width<=900px){.auth-admin__grid{grid-template-columns:1fr}.auth-admin__panel--wide{grid-column:auto}.user-menu{justify-content:flex-end;width:100%}}@media (width<=720px){.auth-card{padding:24px}.user-menu{justify-content:center}}.dashboard{flex-direction:column;min-height:100svh;display:flex}.topbar{background:linear-gradient(120deg, var(--des-green-900), var(--des-green-700));color:var(--on-green);border-bottom:4px solid var(--des-yellow);flex-wrap:wrap;justify-content:space-between;align-items:center;gap:16px 32px;padding:20px clamp(16px,4vw,40px);display:flex}.topbar__brand{align-items:center;gap:14px;display:flex}.brand-logo{object-fit:cover;border:2px solid var(--des-yellow);background:#fff;border-radius:10px;flex-shrink:0;width:96px;height:64px;display:block}.topbar__eyebrow{text-transform:uppercase;letter-spacing:1.2px;opacity:.8;font-size:12px}.topbar h1{color:var(--on-green);letter-spacing:-.4px;margin:2px 0 0;font-size:clamp(22px,3vw,30px);font-weight:700}.topnav{background:#ffffff1a;border:1px solid #ffffff2e;border-radius:12px;gap:6px;padding:4px;display:flex}.topnav__link{color:var(--on-green);white-space:nowrap;border-radius:9px;padding:8px 16px;font-weight:600;text-decoration:none}.topnav__link:hover{background:#ffffff24}.topnav__link:focus-visible{outline:2px solid var(--des-yellow);outline-offset:2px}.topnav__link[aria-current=page]{background:var(--des-yellow);color:var(--des-green-900)}.period-filter{background:var(--surface);border:1px solid var(--border);box-shadow:var(--shadow-sm);border-radius:12px;flex-wrap:wrap;align-items:flex-end;gap:10px 14px;margin:0;padding:12px 16px 14px;display:flex}.period-filter legend{float:left;text-transform:uppercase;letter-spacing:.8px;width:100%;color:var(--des-green-800);margin-bottom:2px;font-size:12px;font-weight:700}.period-filter label{color:var(--text);flex-direction:column;gap:4px;font-size:13px;display:flex}.period-filter select,.field input,.field select{border:1px solid var(--border-strong);background:var(--surface);min-height:38px;color:var(--text-h);font:inherit;box-sizing:border-box;border-radius:8px;padding:6px 10px;font-size:15px}.period-filter select{min-width:150px}.period-filter__reset{border:1px solid var(--des-green-600);min-height:38px;color:var(--des-green-800);font:inherit;cursor:pointer;background:0 0;border-radius:8px;padding:6px 14px;font-size:14px;font-weight:600}.period-filter__reset:disabled{opacity:.5;cursor:default}.period-filter__current{background:var(--des-yellow);color:var(--des-green-900);border-radius:999px;align-self:center;margin-left:auto;padding:6px 12px;font-weight:700}.dashboard__content{box-sizing:border-box;flex-direction:column;flex:1;gap:20px;width:100%;max-width:1320px;margin:0 auto;padding:24px clamp(16px,4vw,40px) 32px;display:flex}.notice{background:var(--notice-bg);border:1px solid var(--notice-border);color:var(--text-h);border-radius:12px;align-items:flex-start;gap:12px;padding:14px 16px;font-size:15px;line-height:150%;display:flex}.notice__dot{background:var(--des-yellow-600);border-radius:50%;flex-shrink:0;width:10px;height:10px;margin-top:6px}.nowrap{white-space:nowrap}.metrics{grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;display:grid}.metric{background:var(--surface);border:1px solid var(--border);border-top:4px solid var(--des-green-600);box-shadow:var(--shadow-sm);border-radius:14px;flex-direction:column;gap:6px;padding:16px 18px;display:flex}.metric--emphasis{border-top-color:var(--des-yellow)}.metric__label{text-transform:uppercase;letter-spacing:.6px;color:var(--text);margin:0;font-size:13px;font-weight:600}.metric__value{color:var(--text-h);font-size:30px;font-weight:700;line-height:1.1}.metric__compare{gap:18px;margin:4px 0 0;font-size:13px;display:flex}.metric__compare dt{color:var(--text)}.metric__compare dd{color:var(--text-h);margin:0;font-weight:600}.variance--adverse{color:#c62828!important}.local-chart{flex-direction:column;gap:10px;min-height:160px;display:flex}.local-chart__row{grid-template-columns:38px minmax(80px,1fr) minmax(84px,auto);align-items:center;gap:10px;font-size:13px;display:grid}.local-chart__label{color:var(--text-h);font-weight:600}.local-chart__bars{flex-direction:column;gap:3px;display:flex}.local-chart__bar{border-radius:5px;min-width:2px;height:7px;display:block}.local-chart__bar--budget{background:#e0bf18}.local-chart__bar--actual{background:var(--des-green-600)}.local-chart__value{text-align:right;color:var(--text-h)}.local-chart__legend{color:var(--text);gap:18px;margin:auto 0 0 48px;font-size:12px;display:flex}.local-chart__legend span{align-items:center;gap:6px;display:inline-flex}.local-chart__legend i{border-radius:50%;width:10px;height:10px}.legend-budget{background:#e0bf18}.legend-actual{background:var(--des-green-600)}.monthly-list{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;display:grid}.monthly-list__row{background:var(--empty-bg);border-radius:8px;flex-direction:column;gap:5px;padding:8px;font-size:12px;display:flex}.monthly-list__row strong{color:var(--text-h);font-size:13px}.highlight-list{gap:10px;margin:0;padding:0;list-style:none;display:grid}.highlight-list li{background:var(--empty-bg);border-left:3px solid;flex-direction:column;gap:3px;padding:10px;display:flex}.metric__hint{color:var(--text-muted);margin-top:auto;padding-top:6px;font-size:12px}.grid{gap:20px;display:grid}.grid--charts{grid-template-columns:repeat(2,minmax(0,1fr))}.grid--details{grid-template-columns:minmax(0,1.4fr) minmax(0,1fr)}.grid--details .panel--table{grid-row:span 2}.panel{background:var(--surface);border:1px solid var(--border);box-shadow:var(--shadow-sm);border-radius:14px;flex-direction:column;gap:14px;min-width:0;padding:18px 20px 20px;display:flex}.panel__header h2{color:var(--des-green-800);margin:0;font-size:18px;font-weight:700}.panel__subtitle{color:var(--text);margin-top:2px;font-size:13px}.panel__footnote{color:var(--text-muted);font-size:12px}.empty-state{border:1px dashed var(--border-strong);background:var(--empty-bg);text-align:center;border-radius:10px;flex-direction:column;flex:1;justify-content:center;align-items:center;gap:6px;min-height:180px;padding:20px;display:flex}.empty-state__icon{fill:none;width:32px;height:32px;stroke:var(--des-green-600);stroke-width:2px;stroke-linecap:round;opacity:.6}.empty-state__title{color:var(--text-h);font-size:15px;font-weight:700}.empty-state__text{max-width:42ch;color:var(--text);font-size:13px;line-height:150%}.table-scroll-shell,.table-wrap{min-width:0}.table-wrap{max-width:100%;overflow-x:auto}.table-horizontal-scroll{z-index:2;background:var(--surface);overscroll-behavior-x:contain;height:18px;position:sticky;top:0;overflow:auto hidden}.table-horizontal-scroll--inactive{display:none}.table-horizontal-scroll:focus-visible{outline:2px solid var(--des-green-600);outline-offset:-2px}.table-horizontal-scroll__content{height:1px}.dre-table{border-collapse:collapse;width:100%;font-size:14px}.dre-table th,.dre-table td{border-bottom:1px solid var(--border);text-align:right;white-space:nowrap;padding:10px 12px}.dre-table thead th{text-transform:uppercase;letter-spacing:.6px;color:var(--on-green);background:var(--des-green-700);font-size:12px}.dre-table thead th:first-child{border-top-left-radius:8px}.dre-table thead th:last-child{border-top-right-radius:8px}.dre-table th:first-child{text-align:left}.dre-table tbody th{color:var(--text-h);font-weight:500}.dre-table td{color:var(--text)}.dre-table .is-subtotal{background:var(--subtotal-bg)}.dre-table .is-subtotal th{font-weight:700}.visually-hidden{clip:rect(0 0 0 0);white-space:nowrap;width:1px;height:1px;position:absolute;overflow:hidden}.cost-list{flex-direction:column;gap:10px;margin:0;padding:0;list-style:none;display:flex}.cost-list li{grid-template-columns:minmax(120px,auto) 1fr auto;align-items:center;gap:12px;font-size:14px;display:grid}.cost-list__label{color:var(--text-h)}.cost-list__bar{background:var(--des-green-600);border-radius:4px;max-width:100%;height:8px;display:block}.cost-list__value{color:var(--text-h);font-weight:600}.grid--entries{grid-template-columns:minmax(320px,.9fr) minmax(0,2.1fr);align-items:start}.entry-form fieldset{border:0;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 14px;min-width:0;margin:0 0 12px;padding:0;display:grid}.field{color:var(--text-h);flex-direction:column;gap:4px;font-size:13px;font-weight:600;display:flex}.field small{color:var(--text-muted);font-weight:400}.field input,.field select{width:100%}.field input:disabled,.field select:disabled{background:var(--empty-bg);color:var(--text-muted);cursor:not-allowed}.field--wide{grid-column:1/-1}.entries-table th{text-align:left}.entries-table--responsive th,.entries-table--responsive td{padding-inline:8px}.dre-table--full td{min-width:110px}.dashboard__footer{border-top:1px solid var(--border);color:var(--text-muted);text-align:center;padding:14px clamp(16px,4vw,40px);font-size:12px}@media (width<=1100px){.metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.grid--details{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}.grid--details .panel--table{grid-area:auto/1/auto/-1}.grid--entries{grid-template-columns:minmax(0,1fr)}}@media (width<=720px){.grid--charts,.grid--details{grid-template-columns:minmax(0,1fr)}.topnav{width:100%;min-width:0;max-width:100%;overflow-x:auto}.topnav__link{text-align:center;flex:none;padding-inline:8px}.period-filter__current{margin-left:0}.metric__value{font-size:26px}}@media (width<=420px){.metrics{grid-template-columns:minmax(0,1fr)}.period-filter label{flex:120px}.period-filter select{width:100%;min-width:0}.entry-form fieldset{grid-template-columns:minmax(0,1fr)}}.entries-toolbar{align-items:end;gap:14px;margin-bottom:14px;display:flex}.entries-toolbar__month{width:min(260px,100%)}.entries-toolbar>.notice{margin:0}.entries-message{color:var(--des-green-700);font-weight:600}.entry-form__actions,.entry-row__actions{flex-wrap:wrap;align-items:center;gap:8px;display:flex}.entry-row__actions{min-width:130px}.entry-action{border:1px solid var(--border);color:var(--des-green-700);cursor:pointer;font:inherit;background:#fff;border-radius:6px;padding:5px 9px}.entry-action--delete{color:#a12622}.entry-action:disabled{opacity:.5;cursor:not-allowed}.entries-table__amount{white-space:nowrap;font-weight:600}@media (width<=420px){.entries-toolbar{flex-direction:column;align-items:stretch}}.purchases-forms,.purchases-filters{margin-bottom:14px}.purchases-filters{flex-wrap:wrap}.purchases-filters .field{width:min(200px,100%)}.purchase-installment{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 14px;display:grid}.purchase-status{white-space:nowrap;font-weight:600}.purchase-status--paid{color:var(--des-green-700)}.purchase-status--overdue{color:#a12622}.discount-module{flex-direction:column;gap:18px;display:flex}.discount-tabs{flex-wrap:wrap;gap:8px;display:flex}.discount-tabs button{border:1px solid var(--border);background:var(--surface);min-height:42px;color:var(--text-h);font:inherit;cursor:pointer;border-radius:8px;padding:8px 18px;font-weight:700}.discount-tabs button.discount-tabs__active{background:var(--des-green-800);color:var(--on-green);border-color:var(--des-green-800)}.discount-tabs button:focus-visible{outline:3px solid var(--des-yellow);outline-offset:2px}.discount-toolbar{justify-content:flex-end;align-items:flex-end;gap:10px;display:flex}.discount-toolbar .field{min-width:190px}.discount-settings{grid-template-columns:repeat(3,minmax(170px,1fr)) auto;align-items:end;gap:14px;padding:16px;display:grid}.discount-settings .field{flex-direction:column;gap:5px;display:flex}.discount-settings .field input{border:1px solid var(--border-strong);min-height:42px;font:inherit;border-radius:8px;padding:8px 10px}.discount-metrics{grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;display:grid}.discount-metrics article{background:var(--surface);border:1px solid var(--border);border-radius:10px;flex-direction:column;justify-content:center;gap:8px;min-height:84px;padding:15px;display:flex}.discount-metrics span{color:var(--text);font-size:13px}.discount-metrics strong{color:var(--des-green-900);font-size:clamp(18px,2vw,24px)}.discount-table{min-width:860px}.discount-table input[type=date]{border:1px solid var(--border-strong);min-height:38px;font:inherit;border-radius:7px;padding:6px 8px}.discount-status{color:#9a6700;white-space:nowrap;align-items:center;gap:6px;font-weight:700;display:inline-flex}.discount-status:before{content:"";background:currentColor;border-radius:50%;width:8px;height:8px}.discount-status--received{color:var(--des-green-800)}.discount-negative{color:#a32929;white-space:nowrap}.discount-positive{color:var(--des-green-800);white-space:nowrap}@media (width<=860px){.discount-settings,.discount-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}}@media (width<=540px){.discount-toolbar{justify-content:stretch}.discount-toolbar .field{flex:1}.discount-settings{grid-template-columns:1fr}.discount-metrics{grid-template-columns:1fr 1fr;gap:8px}.discount-metrics article{min-height:75px;padding:11px}}
