:root{color-scheme:light;--ink:#18253b;--muted:#728094;--line:#e6eaf1;--paper:#fff;--bg:#f5f7fb;--blue:#315ce7;--blueDark:#2147c1;--blueLight:#edf2ff;--teal:#10a58f;--tealLight:#e7f7f4;--orange:#f39a50;--red:#d8505b;--redLight:#fff0f1;--shadow:0 8px 28px rgba(28,45,78,.055)}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:var(--bg);font-family:Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,'Segoe UI',Arial,sans-serif;color:var(--ink);font-size:14px;line-height:1.5}button,input,select,textarea{font:inherit}button{cursor:pointer}button:disabled{opacity:.48;cursor:not-allowed}a{color:var(--blue)}.app-shell{display:grid;grid-template-columns:246px minmax(0,1fr);min-height:100vh}.side{background:#fff;border-right:1px solid var(--line);display:flex;flex-direction:column;position:sticky;top:0;height:100vh;padding:27px 16px 18px;z-index:5}.brand{display:flex;align-items:center;gap:12px;padding:2px 12px 30px}.brand-symbol{width:39px;height:39px;display:grid;place-items:center;border-radius:13px;color:#fff;background:linear-gradient(145deg,#506ffa,#2447b9);box-shadow:0 6px 15px rgba(49,92,231,.2);font-weight:800;font-size:21px}.brand-name{font-size:18px;font-weight:790;letter-spacing:-.6px;line-height:1.13}.brand-note{font-size:11px;color:var(--muted);font-weight:550}.nav-caption{font-size:10px;text-transform:uppercase;letter-spacing:1.7px;font-weight:800;color:#a0aabc;padding:0 14px;margin:7px 0 11px}.nav-link{width:100%;display:flex;align-items:center;gap:12px;text-align:left;border:0;background:transparent;padding:13px 13px;border-radius:12px;color:#566278;font-weight:650;margin-bottom:4px}.nav-link:hover{background:#f5f7fd}.nav-link.active{background:#eaf0ff;color:#2a52d5}.nav-emoji{font-size:17px;display:inline-grid;place-items:center;width:23px}.side-bottom{margin-top:auto;border-radius:16px;background:#f5f7fb;padding:17px 15px;color:#6d7d95;font-size:12px}.side-bottom strong{display:block;color:#243651;margin-bottom:4px}.main-area{min-width:0;display:flex;flex-direction:column}.topbar{height:88px;background:#fff;border-bottom:1px solid var(--line);display:flex;align-items:center;gap:20px;padding:0 38px;position:sticky;top:0;z-index:4}.top-title{font-size:18px;font-weight:800;letter-spacing:-.4px}.top-sub{font-size:12px;color:#8792a4;margin-top:2px}.top-filters{display:flex;align-items:center;gap:10px;margin-left:auto}.select-compact{border:1px solid #dfe5ef;border-radius:11px;background:#fff;padding:10px 29px 10px 12px;color:#33435b;font-weight:660;max-width:160px}.btn{border:0;border-radius:11px;padding:11px 15px;font-weight:700;display:inline-flex;align-items:center;justify-content:center;gap:9px;min-height:41px;white-space:nowrap;transition:transform .08s,box-shadow .15s,background .15s}.btn:hover{transform:translateY(-1px)}.btn-primary{background:var(--blue);color:white;box-shadow:0 4px 13px rgba(49,92,231,.17)}.btn-primary:hover{background:var(--blueDark)}.btn-ghost{border:1px solid var(--line);background:#fff;color:#34445c}.btn-soft{background:var(--blueLight);color:var(--blueDark)}.btn-danger{background:var(--redLight);color:#ad283a}.btn-small{padding:7px 10px;min-height:31px;font-size:12px;border-radius:8px}.icon-btn{border:0;background:transparent;padding:5px 8px;color:#73829b;border-radius:8px}.icon-btn:hover{background:var(--blueLight);color:var(--blue)}.content{width:100%;max-width:1500px;margin:0 auto;padding:32px 38px 70px}.heading{display:flex;justify-content:space-between;align-items:flex-start;gap:18px;margin-bottom:23px}.heading h1{font-size:27px;letter-spacing:-.9px;line-height:1.2;margin:0 0 5px}.desc{color:#78879b;margin:0;line-height:1.5}.eyebrow{text-transform:uppercase;letter-spacing:1.8px;color:#a3aabd;font-size:10px;font-weight:830;margin-bottom:10px}.stack{display:grid;gap:20px}.columns{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(300px,1fr);gap:20px}.columns.equal{grid-template-columns:repeat(2,minmax(0,1fr))}.card{background:#fff;border-radius:17px;border:1px solid var(--line);box-shadow:var(--shadow);padding:24px;min-width:0}.card-title{font-size:16px;font-weight:790;letter-spacing:-.3px}.card-sub{color:var(--muted);font-size:12px}.card-head{display:flex;justify-content:space-between;align-items:flex-start;gap:13px;margin-bottom:17px}.hero{background:linear-gradient(106deg,#243d88,#345de3 66%,#5479ef);border-radius:19px;min-height:160px;padding:27px 30px;color:#fff;display:flex;align-items:center;justify-content:space-between;gap:20px;position:relative;overflow:hidden}.hero:before{content:"";position:absolute;border:1px solid rgba(255,255,255,.12);width:275px;height:275px;border-radius:50%;right:-65px;top:-78px}.hero:after{content:"";position:absolute;border:1px solid rgba(255,255,255,.13);width:205px;height:205px;border-radius:50%;right:35px;top:40px}.hero>*{z-index:1}.hero-label{font-size:13px;opacity:.83}.hero-amount{font-size:38px;letter-spacing:-1.4px;font-weight:800;line-height:1.2;margin:6px 0 3px;font-variant-numeric:tabular-nums}.hero-note{font-size:12px;opacity:.82}.hero-pill{border:1px solid rgba(255,255,255,.32);border-radius:100px;padding:9px 12px;background:rgba(255,255,255,.11);font-size:12px;font-weight:700}.metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}.metric{border:1px solid var(--line);border-radius:16px;padding:20px 21px;background:#fff;min-width:0}.metric-top{display:flex;align-items:center;justify-content:space-between;gap:6px;color:#6e7b91;font-size:12px;font-weight:700;margin-bottom:14px}.metric-icon{width:34px;height:34px;border-radius:10px;display:grid;place-items:center;font-size:17px}.metric-value{font-size:23px;line-height:1.15;letter-spacing:-.7px;font-weight:800;font-variant-numeric:tabular-nums;white-space:nowrap}.metric-hint{font-size:11px;color:#9ba5b6;margin-top:10px}.color-income{color:#138977}.color-expense{color:#d2743d}.color-savings{color:#315ce7}.negative{color:#c33e4e!important}.positive{color:#128a76!important}.muted{color:var(--muted)}.hint{border-radius:12px;background:#f6f8fe;color:#63728a;padding:11px 14px;font-size:12px}.notice{display:flex;gap:12px;background:#fff8ed;border:1px solid #ffead0;padding:13px 15px;border-radius:12px;color:#8a602d;font-size:13px}.notice strong{color:#7f511e}.tabs{display:flex;gap:7px;flex-wrap:wrap}.tab{border:0;background:#f2f5fa;color:#718097;border-radius:9px;padding:7px 12px;font-size:12px;font-weight:700}.tab.active{background:#e9efff;color:var(--blue)}.mini-progress{height:8px;border-radius:99px;background:#edf0f6;overflow:hidden;margin-top:9px}.mini-progress-fill{height:100%;border-radius:99px;background:#4067e6}.progress-row{display:flex;justify-content:space-between;gap:10px;align-items:center;margin-top:16px;font-size:12px}.progress-row:first-of-type{margin-top:6px}.progress-title{font-weight:710;color:#3e4d63}.progress-numbers{font-weight:730;color:#758296;white-space:nowrap;font-variant-numeric:tabular-nums}.empty{text-align:center;padding:30px 15px;color:#8d9bb0}.empty-icon{font-size:31px;margin-bottom:11px}.empty strong{display:block;color:#33455f;font-size:14px;margin-bottom:4px}.empty p{font-size:12px;margin:0 auto 15px;max-width:340px}.legend{display:flex;gap:17px;flex-wrap:wrap;margin:8px 0}.legend i{display:inline-block;width:9px;height:9px;border-radius:3px;margin-right:6px}.chart-grid{display:grid;grid-template-columns:repeat(12,minmax(25px,1fr));gap:8px;align-items:end;padding:12px 0 0;height:225px;border-bottom:1px solid #e7eaf0;position:relative}.chart-grid:before{content:"";position:absolute;inset:12px 0 0;background:repeating-linear-gradient(to top,transparent 0, transparent calc(25% - 1px),#eef1f7 calc(25% - 1px),#eef1f7 25%);pointer-events:none;z-index:0}.bar-group{height:100%;display:flex;align-items:flex-end;justify-content:center;gap:4px;position:relative;min-width:0;z-index:1}.bar{width:min(16px,46%);border-radius:5px 5px 0 0;min-height:0;position:relative;transition:height .3s}.bar-plan{background:#d5e0ff}.bar-actual{background:#4b70e9}.chart-months{display:grid;grid-template-columns:repeat(12,minmax(25px,1fr));gap:8px;text-align:center;font-size:10px;color:#9ba6b5;font-weight:720;margin-top:9px}.table-scroll{overflow:auto;width:100%}table{border-collapse:collapse;min-width:100%;font-size:12px}th{text-align:left;font-weight:800;color:#8190a3;text-transform:uppercase;letter-spacing:.55px;font-size:10px;padding:14px 12px;border-bottom:1px solid var(--line);white-space:nowrap}td{padding:13px 12px;border-bottom:1px solid #eff1f5;color:#43536b;vertical-align:middle}tr:last-child td{border-bottom:0}td.num,th.num{text-align:right;white-space:nowrap;font-variant-numeric:tabular-nums}tr.total{background:#f8faff;font-weight:780}tr.total td{color:#223b75}.table-input{width:105px;padding:9px 7px;border:1px solid #edf0f6;background:#f9fbff;border-radius:8px;text-align:right;color:#20334f;font-size:12px}.table-input:focus,.field:focus{outline:none;border-color:#6889eb;box-shadow:0 0 0 3px #315ce71a;background:white}.plan-category{font-weight:750;min-width:180px}.category-line{display:flex;align-items:center;gap:8px}.category-dot{width:9px;height:9px;border-radius:50%;display:inline-block;flex-shrink:0}.tag{display:inline-flex;align-items:center;border-radius:100px;padding:4px 9px;font-size:11px;font-weight:750;white-space:nowrap}.tag-income{background:#e7f7f1;color:#138977}.tag-expense{background:#fff1e6;color:#c17435}.tag-savings{background:#edf2ff;color:#315ce7}.money-small{font-weight:760}.filterbar{display:flex;flex-wrap:wrap;align-items:center;gap:9px;margin-bottom:18px}.field{width:100%;padding:11px 13px;border-radius:10px;border:1px solid #e0e5ed;background:#fff;color:#2d3f5a;min-width:0}.field-label{display:block;font-size:12px;color:#5c6c82;font-weight:700;margin-bottom:7px}.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:17px}.form-grid .wide{grid-column:1/-1}.search{flex:1;min-width:200px}.flex{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.justify-end{justify-content:flex-end}.right{text-align:right}.settings-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}.settings-line{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:16px 0;border-bottom:1px solid var(--line)}.settings-line:last-child{border-bottom:0}.settings-line strong{display:block;font-size:13px;margin-bottom:3px}.settings-line small{display:block;color:#8a98aa;font-size:12px;max-width:350px}.settings-line .field{max-width:190px}.switch{position:relative;display:inline-flex;align-items:center;gap:8px;cursor:pointer}.switch input{width:0;height:0;position:absolute;opacity:0}.switch-track{width:41px;height:24px;border-radius:99px;background:#cad4e2;position:relative;display:block;transition:background .15s}.switch-track:after{content:"";position:absolute;width:18px;height:18px;background:white;border-radius:50%;top:3px;left:3px;transition:left .15s;box-shadow:0 2px 5px rgba(0,0,0,.1)}.switch input:checked+.switch-track{background:var(--blue)}.switch input:checked+.switch-track:after{left:20px}.donut{width:190px;height:190px;border-radius:50%;display:grid;place-items:center;flex-shrink:0;position:relative}.donut-hole{width:121px;height:121px;background:white;border-radius:50%;display:grid;place-items:center;text-align:center;z-index:1}.donut-label{font-size:11px;color:#91a0b2}.donut-val{font-size:21px;font-weight:800}.donut-wrap{display:flex;align-items:center;gap:25px}.donut-legend{flex:1}.donut-legend-line{display:flex;justify-content:space-between;align-items:center;gap:10px;margin:14px 0;font-size:12px;color:#59677d}.donut-legend-line strong{color:#30445f}.sec-action{display:flex;gap:8px;flex-wrap:wrap}.badge-round{border-radius:100%;width:32px;height:32px;background:var(--blueLight);color:var(--blue);display:grid;place-items:center;font-weight:800}.setup-step{display:flex;gap:13px;padding:12px 0;align-items:flex-start}.setup-step strong{display:block}.setup-step p{font-size:12px;color:var(--muted);margin:3px 0 0}.modal-overlay{position:fixed;inset:0;background:rgba(20,32,53,.45);z-index:20;display:flex;align-items:center;justify-content:center;padding:18px}.modal{background:#fff;width:100%;max-width:530px;max-height:calc(100vh - 32px);overflow:auto;border-radius:20px;padding:25px;box-shadow:0 20px 90px rgba(10,20,40,.3)}.modal-top{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:22px}.modal-top h2{margin:0;font-size:20px;letter-spacing:-.5px}.modal-actions{display:flex;justify-content:flex-end;gap:9px;margin-top:24px}.toast{position:fixed;bottom:28px;right:30px;background:#1c2d4d;color:#fff;padding:13px 17px;border-radius:11px;box-shadow:0 13px 40px #18253b33;z-index:35;max-width:390px;font-weight:700;font-size:12px;pointer-events:none}.mobile-nav{display:none}.alert-num{color:#d34c5b}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}
@media(max-width:1190px){.metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.columns{grid-template-columns:1fr}.content{padding:26px 24px 70px}.topbar{padding:0 24px}.settings-grid{grid-template-columns:1fr}}
@media(max-width:760px){.app-shell{display:block}.side{display:none}.topbar{height:auto;min-height:118px;flex-wrap:wrap;padding:16px 17px;gap:12px;position:static}.top-title{font-size:19px}.top-filters{width:100%;margin-left:0;gap:7px}.top-filters .select-compact{flex:1;max-width:none;font-size:12px;min-width:0}.top-filters .top-add{padding:10px 12px}.content{padding:21px 14px 105px}.heading{align-items:flex-start}.heading h1{font-size:23px}.heading .btn{font-size:12px;padding:9px 11px}.metrics{gap:9px}.metric{padding:15px 12px}.metric-top{font-size:11px;margin-bottom:12px}.metric-icon{width:27px;height:27px;font-size:13px}.metric-value{font-size:19px}.metric-hint{font-size:10px}.hero{padding:24px 20px;min-height:150px}.hero-amount{font-size:32px}.hero-pill{display:none}.card{padding:18px 14px}.mobile-nav{position:fixed;bottom:0;left:0;right:0;background:#fff;border-top:1px solid var(--line);display:grid;grid-template-columns:repeat(5,minmax(0,1fr));height:74px;z-index:10;padding-bottom:env(safe-area-inset-bottom,0px)}.mobile-nav button{border:0;background:transparent;color:#8a97aa;font-size:10px;font-weight:760;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:3px}.mobile-nav button.active{color:var(--blue)}.mobile-nav .nav-emoji{font-size:20px}.mobile-nav .nav-label{white-space:nowrap;font-size:9px}.form-grid{grid-template-columns:1fr}.form-grid .wide{grid-column:auto}.donut-wrap{flex-wrap:wrap;justify-content:center}.donut-legend{width:100%;flex-basis:100%}.settings-line{flex-wrap:wrap}.settings-line .field{max-width:100%}.toast{bottom:85px;left:14px;right:14px}.modal{padding:18px}.chart-grid,.chart-months{gap:3px}}
@media(max-width:400px){.metric-value{font-size:17px}.hero-amount{font-size:28px}.chart-months{font-size:9px}.top-filters .btn{min-width:40px}}

.distribution-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
@media(max-width:1190px){.distribution-grid{grid-template-columns:1fr}}
@media(max-width:760px){.columns.equal{grid-template-columns:1fr}}

/* V3 -- quiet editorial palette and stronger financial hierarchy */
:root{--ink:#172c34;--muted:#687d86;--line:#dfe7e6;--paper:#fff;--bg:#f3f6f4;--blue:#176b70;--blueDark:#12555b;--blueLight:#e6f3f0;--teal:#087f72;--tealLight:#e3f5ef;--orange:#c77a4e;--red:#bd4754;--redLight:#fcecee;--shadow:0 9px 28px rgba(15,49,49,.055)}
body{background:var(--bg)}
.side{background:#102e35;border-right:1px solid #102e35;color:#eef6f4}
.brand-symbol{background:linear-gradient(142deg,#4dac9f,#217c7a);box-shadow:0 6px 20px #061b2060}
.brand-name{color:#effaf6}.brand-note{color:#a5c1bf}.nav-caption{color:#83a2a7}
.nav-link{color:#b8ced0}.nav-link:hover{color:#fff;background:#1c454c}.nav-link.active{background:#24535a;color:#e8f8f3;box-shadow:inset 3px 0 0 #69d3b3}
.side-bottom{background:#1c4148;color:#b8d2d0}.side-bottom strong{color:#eff7f4}
.topbar{background:#ffffffed;backdrop-filter:blur(10px)}
.top-title{letter-spacing:-.65px}.select-compact{border-color:#d7e4e1;color:#244550}
.content{max-width:1600px}.heading h1{letter-spacing:-1.1px}.desc{color:#6f858d}
.card,.metric{border-color:#e0e9e6;box-shadow:var(--shadow)}
.btn-primary{box-shadow:0 4px 14px rgba(15,103,103,.16)}
.btn-soft{background:#e5f3f0;color:#176b70}.btn-ghost{color:#31525d}
.hero{background:linear-gradient(109deg,#143e48,#18696b 70%,#268b7e);box-shadow:0 12px 26px #145b6020}
.metric-value{font-variant-numeric:tabular-nums}.color-income,.positive{color:#087e70!important}.color-expense{color:#bf7548}.color-savings{color:#5975b5}
.tag-income{background:#e0f5ed;color:#137b67}.tag-expense{background:#fff0e5;color:#a86034}.tag-savings{background:#edf0fa;color:#526da9}
.hint{background:#eaf1ef;color:#516a73}.notice{background:#fffaef;border-color:#f0e5ce;color:#81633b}.notice strong{color:#81572f}
.tab.active{background:#e3f2ed;color:#146c68}.bar-plan{background:#cbdad7}.bar-actual{background:#197c72}
.metric-icon{border:1px solid #e7efed}.table-input{background:#fbfdfc;border:1px solid #dce7e3;color:#1b3d41}
tr.total{background:#eff6f3}tr.total td{color:#1c5854}
.table-input:focus,.field:focus{border-color:#36a391;box-shadow:0 0 0 3px #268c821a}
/* Allocation panel */
.allocation-panel{background:linear-gradient(118deg,#143f45,#1b6666 73%,#237e73);color:#fff;border:1px solid #146063;border-radius:19px;box-shadow:0 14px 30px #163f4017;padding:26px 28px 20px;margin-bottom:19px}
.allocation-panel.allocation-negative{background:linear-gradient(116deg,#3e3a37,#5d5046 72%,#776454);border-color:#6a5b50}
.allocation-head{display:flex;justify-content:space-between;align-items:center;gap:24px}.allocation-kicker{font-size:10px;letter-spacing:2px;opacity:.68;font-weight:800}.allocation-head h2{margin:6px 0 4px;font-size:17px;letter-spacing:-.4px;color:#e9f6f1}.allocation-value{font-size:39px;line-height:1.14;letter-spacing:-1.6px;font-weight:830;font-variant-numeric:tabular-nums;margin-top:6px}.allocation-head p{font-size:12px;color:#d0e2de;margin:10px 0 0}.allocation-composition{display:grid;gap:8px;font-size:12px;min-width:240px}.allocation-composition span{display:flex;justify-content:space-between;gap:16px;border-bottom:1px solid #ffffff28;padding-bottom:6px}.allocation-composition b{font-variant-numeric:tabular-nums;color:#fff}
.allocation-months{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));gap:7px;border-top:1px solid #ffffff26;margin-top:24px;padding-top:16px}.allocation-month{display:flex;flex-direction:column;gap:6px;padding:10px 4px;border-radius:9px;background:#ffffff15;text-align:center;min-width:0}.allocation-month span{font-size:10px;text-transform:uppercase;opacity:.77;font-weight:800;letter-spacing:.3px}.allocation-month strong{font-size:11px;font-weight:800;font-variant-numeric:tabular-nums;word-break:normal;overflow-wrap:anywhere}.allocation-month.over{background:#d7f2e524;color:#e9fff6}.allocation-month.under{background:#f8c3b326;color:#ffcebf}.allocation-month.even{background:#ffffff11;color:#e7e8e5}.allocation-foot{display:flex;gap:19px;align-items:center;flex-wrap:wrap;font-size:11px;color:#e5f3ee;margin-top:17px}.allocation-foot .dot{display:inline-block;width:9px;height:9px;border-radius:50%;margin-right:5px}.dot.free{background:#8de4b6}.dot.deficit{background:#eda992}.dot.exact{background:#d1dbd7}.plan-group-card{padding:20px 0}.plan-group-card .card-head{padding:0 20px}.plan-group-card .budget-table td:first-child{padding-left:20px}
/* Two comparable rails for budget vs actual */
.cmp-row{border-bottom:1px solid #e8eeeb;padding:17px 0}.cmp-row:last-child{border-bottom:0;padding-bottom:1px}.cmp-main{display:flex;justify-content:space-between;align-items:center;gap:16px}.cmp-identity{display:flex;align-items:center;gap:9px;min-width:0}.cmp-identity strong{font-size:13px;color:#26454c;word-break:break-word}.cmp-values{display:flex;justify-content:flex-end;align-items:center;gap:13px;flex-wrap:wrap}.cmp-values>span{white-space:nowrap;font-size:11px;color:#75858b}.cmp-values>span strong{color:#2b4348;font-weight:800}.cmp-variance{display:inline-flex;align-items:center;border-radius:100px;padding:5px 9px;font-size:11px;font-weight:800;white-space:normal}.cmp-good{color:#087661!important;background:#e8f6ef}.cmp-bad{color:#a94451!important;background:#fff0f0}.cmp-even{color:#65737b!important;background:#f0f2f2}.cmp-rails{display:grid;gap:4px;margin-top:11px}.cmp-rail{display:grid;grid-template-columns:32px 1fr;align-items:center;gap:9px}.cmp-rail>span{font-size:10px;font-weight:740;color:#809196}.cmp-track{height:7px;border-radius:100px;background:#f0f4f1;overflow:hidden}.cmp-fill{height:100%;border-radius:100px}.cmp-fill.plan{background:#bfd0cd}.cmp-fill.incasari{background:#198679}.cmp-fill.cheltuieli{background:#ce8051}.cmp-fill.economii{background:#6781b6}.cmp-compact{padding:11px 0}.cmp-compact .cmp-values{gap:8px}.cmp-compact .cmp-variance{padding:3px 7px}.cmp-compact .cmp-main{align-items:flex-start;flex-wrap:wrap}.cmp-compact .cmp-values{justify-content:flex-start}
/* Transaction control area */
.tx-overview{display:flex;justify-content:space-between;align-items:center;gap:18px;background:#e4f0ec;border:1px solid #d1e5de;padding:18px 22px;border-radius:15px;margin-bottom:17px}.tx-overview>div:first-child{display:flex;align-items:baseline;gap:11px;flex-wrap:wrap}.tx-overview-label{color:#58757d;font-weight:750;font-size:12px}.tx-overview strong{font-size:29px;font-weight:850;color:#145f5b;font-variant-numeric:tabular-nums;letter-spacing:-1px}.tx-overview small{color:#65818a;font-size:11px}.tx-scope-switch{display:flex;gap:4px;padding:4px;border-radius:12px;background:white;border:1px solid #cfdfda;white-space:nowrap}.tx-scope-switch button{border:0;border-radius:8px;background:none;color:#60777f;padding:9px 14px;font-size:12px;font-weight:760}.tx-scope-switch button.selected{background:#176b70;color:white;box-shadow:0 2px 8px #1f6b6b33}
.tx-card{padding:18px 0 7px}.tx-toolbar{padding:0 20px;display:flex;align-items:center;justify-content:space-between;gap:15px;flex-wrap:wrap}.tx-result{font-size:13px;color:#526c74}.tx-result strong{font-size:18px;color:#1a4e50}.tx-result span{font-size:11px;color:#7a8f96}.tx-toolbar-actions{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.tx-page-size{display:flex;align-items:center;gap:8px;font-size:11px;color:#698089;white-space:nowrap}.tx-page-size .tx-select{min-width:85px}.tx-table-note{color:#809095;font-size:11px;margin:10px 20px 12px}
.tx-table-wrap{overflow:auto;max-height:min(66vh,690px);border-top:1px solid #e6eeea;border-bottom:1px solid #e6eeea}.tx-table{width:100%;min-width:1330px;border-collapse:separate;border-spacing:0}.tx-table thead th{background:#eef5f2;position:sticky;top:0;z-index:2;color:#4b686d;border-bottom:1px solid #dde9e5;text-transform:none;letter-spacing:0;font-size:11px;padding:9px 9px 7px;height:39px}.tx-table thead tr.tx-filter-row th{position:sticky;top:39px;z-index:3;background:#f7fbf9;height:62px;padding:7px 8px 10px}.tx-table th:nth-child(1){min-width:130px;width:140px}.tx-table th:nth-child(2){min-width:119px;width:132px}.tx-table th:nth-child(3){min-width:168px;width:178px}.tx-table th:nth-child(4){min-width:160px;width:170px}.tx-table th:nth-child(5){min-width:175px}.tx-table th:nth-child(6){min-width:170px;width:184px}.tx-table th:nth-child(7){min-width:139px;width:145px}.tx-table th:nth-child(8){min-width:93px;width:110px}.tx-table td{padding:12px 10px;color:#36515b;border-bottom:1px solid #e9efed;font-size:12px}.tx-table tbody tr:nth-child(even){background:#fbfdfc}.tx-table tbody tr:hover{background:#f1f8f5}.tx-table tbody tr td:first-child{font-weight:750;color:#385259}.tx-table .tx-details{max-width:270px;word-break:break-word;color:#60757e}.tx-sort{border:0;background:transparent;padding:0;display:flex;align-items:center;gap:6px;font-size:11px;font-weight:850;color:#355f60;text-align:left;white-space:nowrap}.tx-sort:hover{color:#108073}.tx-sort span{color:#8fa8a6}.tx-filter-pair{display:flex;flex-direction:column;gap:5px}.tx-select,.tx-filter-input{font-size:11px;width:100%;min-width:0;height:28px;padding:4px 6px;border:1px solid #d5e3dc;border-radius:6px;color:#3b6063;background:white;outline-offset:2px}.tx-select:focus,.tx-filter-input:focus{border-color:#298c7a;outline:2px solid #1e887022}.tx-filter-input::placeholder{color:#8da6a1}.tx-filter-row .tx-select{max-width:none}.tx-clear-hint{font-size:10px;font-weight:550;color:#8ca19c;white-space:nowrap}.tx-nowrap{white-space:nowrap;font-variant-numeric:tabular-nums}.tx-footer{padding:16px 18px 7px;display:flex;justify-content:space-between;align-items:center;gap:12px;color:#627981;font-size:12px;flex-wrap:wrap}.tx-footer strong{color:#214c51}.tx-pager{display:flex;align-items:center;gap:7px}.tx-pager .btn{padding:6px 9px;min-height:30px}.tx-pager span{font-weight:780;color:#47636b;padding:0 7px}
/* Reports: compact top summary with conspicuous differences */
.report-top-line{display:flex;justify-content:space-between;align-items:center;gap:15px;flex-wrap:wrap;background:#e7f0ec;border:1px solid #d8e6df;border-radius:11px;padding:12px 16px;margin-bottom:15px;color:#59767e;font-size:12px;font-weight:750}.report-top-line strong{color:#235d5a}.report-delta-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin-bottom:18px}.report-delta-card{background:#fff;border:1px solid #dfe9e5;border-radius:15px;padding:19px 18px;box-shadow:var(--shadow);border-top:4px solid #198579}.report-delta-card.type-cheltuieli{border-top-color:#cb8355}.report-delta-card.type-economii{border-top-color:#7087b6}.report-delta-title{font-weight:820;font-size:14px;margin-bottom:11px}.report-plan-actual{display:grid;grid-template-columns:1fr 1fr;gap:10px}.report-plan-actual div{min-width:0}.report-plan-actual small{display:block;color:#82969b;font-size:11px;margin-bottom:5px}.report-plan-actual strong{font-size:17px;letter-spacing:-.5px;white-space:nowrap;font-variant-numeric:tabular-nums}.report-delta-bottom{display:flex;justify-content:space-between;gap:6px;align-items:center;flex-wrap:wrap;margin-top:11px}.report-delta-bottom small{color:#7b8e93}.delta-track{height:5px;background:#edf1ef;border-radius:99px;margin-top:13px;overflow:hidden}.delta-track span{display:block;height:100%;border-radius:99px}.report-compact-metrics{margin-bottom:20px;gap:12px}.report-compact-metrics .metric{padding:13px 16px}.report-compact-metrics .metric-top{margin-bottom:8px}.report-compact-metrics .metric-value{font-size:19px}.report-compact-metrics .metric-hint{margin-top:5px}.report-compact-metrics .metric-icon{width:27px;height:27px;font-size:13px}.report-categories{margin-bottom:20px}.report-category-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 24px}.report-category-list .cmp-row{padding-top:15px}.report-category-list .cmp-main{align-items:flex-start;flex-wrap:wrap}.report-category-list .cmp-values{justify-content:flex-start}.cmp-legend{display:flex;gap:19px;color:#74888e;font-size:11px;margin:5px 0 12px}.cmp-legend span{display:flex;align-items:center;gap:6px}.cmp-legend i{width:18px;height:7px;border-radius:99px;display:inline-block}.cmp-legend i.plan{background:#bfd0cd}.cmp-legend i.real{background:#278a80}.monthly-report-table{min-width:840px}.monthly-report-table td{padding:10px 12px}.monthly-report-table thead small{font-size:9px;font-weight:650;color:#9cadab}.monthly-pair{display:flex;align-items:center;justify-content:flex-end;gap:10px;white-space:nowrap}.monthly-pair small{font-size:11px;color:#91a19e}.monthly-pair strong{font-size:12px;color:#31545a}.monthly-pair em{font-style:normal;font-size:10px;font-weight:800;padding:2px 5px;border-radius:5px}.report-extra{margin-top:18px}.report-extra summary{list-style:none;display:flex;align-items:center;justify-content:space-between;background:#fff;border-radius:13px;border:1px solid #dde7e4;padding:13px 19px;cursor:pointer;color:#31565d;font-size:13px;font-weight:820}.report-extra summary:after{content:'+';font-size:22px}.report-extra[open] summary:after{content:'-';font-size:22px}.report-small-donuts{margin-top:13px}.report-small-donuts .card{padding:17px}.report-small-donuts .donut{transform:scale(.9);margin-top:6px!important;margin-bottom:0!important}
/* Date form, clarity on input format */
#txDate{letter-spacing:1px;font-variant-numeric:tabular-nums}
@media(max-width:1190px){.allocation-months{grid-template-columns:repeat(6,minmax(0,1fr))}.report-category-list{grid-template-columns:1fr}.report-delta-grid{grid-template-columns:1fr 1fr}.tx-overview{flex-wrap:wrap}}
@media(max-width:760px){.side{display:none}.brand-name{color:#172c34}.tx-overview{padding:15px}.tx-overview>div:first-child{gap:6px}.tx-overview small{flex-basis:100%}.tx-scope-switch{width:100%}.tx-scope-switch button{flex:1;padding:8px 5px;font-size:11px}.tx-toolbar{padding:0 13px}.tx-result{font-size:12px}.tx-table-note{margin:10px 13px}.tx-card{padding-top:15px}.tx-pager{width:100%;justify-content:center;flex-wrap:wrap}.tx-footer{justify-content:center;text-align:center}.tx-table-wrap{max-height:62vh}.tx-table{min-width:1220px}.allocation-panel{padding:21px 16px}.allocation-head{display:block}.allocation-value{font-size:31px}.allocation-composition{min-width:0;display:flex;gap:10px;flex-wrap:wrap;margin-top:16px}.allocation-composition span{gap:5px;border:0;font-size:11px;flex-wrap:wrap}.allocation-months{grid-template-columns:repeat(4,minmax(0,1fr));gap:6px}.allocation-month strong{font-size:10px}.report-delta-grid{grid-template-columns:1fr}.report-compact-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.report-compact-metrics .metric-value{font-size:16px}.monthly-pair{gap:5px}.cmp-main{flex-wrap:wrap}.cmp-values{justify-content:flex-start}.report-delta-card{padding:15px}.report-plan-actual strong{font-size:16px}}
@media(max-width:400px){.allocation-months{grid-template-columns:repeat(3,minmax(0,1fr))}.tx-toolbar-actions{width:100%;justify-content:space-between}.tx-scope-switch button{font-size:10px}}
/* User-selectable palettes */
body[data-theme="navy"]{--blue:#3b5a87;--blueDark:#2e486e;--blueLight:#ecf1fa;--teal:#3b7690;--bg:#f4f6fa;--line:#e0e7f0}
body[data-theme="navy"] .side{background:#1a2c47;border-right-color:#1a2c47}
body[data-theme="navy"] .side-bottom{background:#273f5e}
body[data-theme="navy"] .nav-link.active{background:#344c70;box-shadow:inset 3px 0 0 #b4d1fa}
body[data-theme="navy"] .nav-link:hover{background:#2d4364}
body[data-theme="navy"] .hero,body[data-theme="navy"] .allocation-panel{background:linear-gradient(112deg,#1b3253,#385f88 70%,#4b7796);border-color:#355f83}
body[data-theme="navy"] .allocation-panel.allocation-negative{background:linear-gradient(108deg,#434452,#685d66)}
body[data-theme="navy"] .tx-overview,body[data-theme="navy"] .report-top-line{background:#eaf0f8;border-color:#d7e2f1}
body[data-theme="navy"] .tx-scope-switch button.selected{background:#3b5a87}
body[data-theme="navy"] .tx-table thead th{background:#edf2f9}
body[data-theme="navy"] .tx-table .tx-filter-row th{background:#f6f9fd}
body[data-theme="plum"]{--blue:#80566e;--blueDark:#674156;--blueLight:#f7edf1;--teal:#9b6379;--bg:#f8f5f4;--line:#ebdfdf}
body[data-theme="plum"] .side{background:#392d38;border-right-color:#392d38}
body[data-theme="plum"] .side-bottom{background:#4e3b49}
body[data-theme="plum"] .nav-link.active{background:#604b5d;box-shadow:inset 3px 0 0 #efb0cb}
body[data-theme="plum"] .nav-link:hover{background:#554451}
body[data-theme="plum"] .hero,body[data-theme="plum"] .allocation-panel{background:linear-gradient(112deg,#4c3647,#755166 70%,#916577);border-color:#75516b}
body[data-theme="plum"] .allocation-panel.allocation-negative{background:linear-gradient(112deg,#484147,#685351)}
body[data-theme="plum"] .tx-overview,body[data-theme="plum"] .report-top-line{background:#f5edef;border-color:#eadce4}
body[data-theme="plum"] .tx-overview strong{color:#734c65}
body[data-theme="plum"] .tx-scope-switch button.selected{background:#80566e}
body[data-theme="plum"] .tx-table thead th{background:#f4edf1}
body[data-theme="plum"] .tx-table .tx-filter-row th{background:#fbf8fa}
.tx-import-notice{margin:0 0 15px}

/* V4: calendar selector, categorized financial comparisons, stable planning grid. */
.tx-date-container{position:relative}
.tx-date-wrap{display:flex;gap:7px;align-items:stretch}
.tx-date-wrap #txDate{cursor:pointer;min-width:0;letter-spacing:.8px;font-weight:700}
.tx-date-wrap #txDate[readonly]{background:#fff;caret-color:transparent}
.tx-calendar-toggle{min-width:45px;border:1px solid #cddfda;background:#eaf4f0;color:#176b70;border-radius:10px;font-size:20px;display:grid;place-items:center}
.tx-calendar-toggle:hover,.tx-calendar-toggle:focus-visible{background:#d8ebe4;outline:2px solid #70b4a4;outline-offset:1px}
.tx-calendar{background:#fff;border:1px solid #d7e7e0;border-radius:14px;box-shadow:0 10px 30px #173e4022;padding:12px;margin-top:9px;min-width:275px;position:relative;z-index:9}
.tx-calendar[hidden]{display:none!important}
.tx-calendar-header{display:flex;align-items:center;justify-content:space-between;gap:6px;margin-bottom:12px}
.tx-calendar-controls{display:flex;min-width:0;gap:5px}
.tx-calendar-controls select{min-width:0;background:#f6f9f7;border:1px solid #e0e9e5;border-radius:7px;padding:6px 3px;color:#315960;font-weight:750;font-size:12px}
.tx-calendar-controls select:first-of-type{max-width:114px}.tx-calendar-controls select:last-of-type{max-width:79px}
.tx-calendar-arrow{border:0;background:#eaf2ef;color:#1d6360;border-radius:8px;padding:0;width:30px;height:32px;font-weight:800;font-size:23px;flex-shrink:0}
.tx-calendar-arrow:hover{background:#d7eee4}
.tx-calendar-weekdays,.tx-calendar-days{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:3px;text-align:center}
.tx-calendar-weekdays{margin-bottom:5px}.tx-calendar-weekdays span{font-size:10px;font-weight:800;color:#849a9a;padding:5px 0}
.tx-calendar-day{border:1px solid transparent;background:transparent;aspect-ratio:1;border-radius:7px;color:#38565d;font-size:12px;font-weight:690;min-height:30px;padding:0}
.tx-calendar-day:hover{border-color:#a4d3c8;background:#eff7f3}.tx-calendar-day.is-today{border-color:#81beb0}.tx-calendar-day.chosen{background:var(--blue);color:#fff;border-color:var(--blue)}
.tx-calendar-footer{display:flex;align-items:center;justify-content:space-between;gap:8px;border-top:1px solid #e9eeeb;margin-top:10px;padding-top:9px}
.tx-calendar-footer button{border:0;background:transparent;color:var(--blue);font-size:11px;font-weight:800;padding:5px 8px;border-radius:6px}.tx-calendar-footer button:hover{background:#edf5f0}
/* Three independent columns grouped by financial type (not alternate mixing of rows). */
.report-category-columns{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));align-items:start;gap:14px;margin-top:10px}
.report-col-panel{background:#fff;border:1px solid #dce8e3;border-top:4px solid #198679;border-radius:13px;overflow:hidden;min-width:0}
.report-col-panel.report-type-cheltuieli{border-top-color:#ce8051}.report-col-panel.report-type-economii{border-top-color:#6781b6}
.report-col-head{display:flex;align-items:center;justify-content:space-between;gap:7px;padding:13px 12px 11px;background:#f2f8f5}
.report-type-cheltuieli .report-col-head{background:#fdf6f0}.report-type-economii .report-col-head{background:#f3f5fa}
.report-col-kicker{font-size:9px;letter-spacing:1.05px;font-weight:850;color:#859c98}
.report-col-head h3{font-size:15px;line-height:1.3;margin:3px 0 0;color:#203e45}
.report-col-count{border:1px solid #dce8e4;background:#fff;border-radius:100px;padding:4px 7px;color:#68817e;font-size:10px;font-weight:700;white-space:nowrap}
.report-col-labels,.report-col-values{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;text-align:right}
.report-col-labels{background:#f8faf9;padding:9px 11px;color:#758b90;font-size:10px;letter-spacing:.05px;font-weight:790;border-bottom:1px solid #e6eeea}
.report-col-body{padding:0 11px}
.report-col-row{padding:12px 0 13px;border-bottom:1px solid #e8eeec}.report-col-row:last-child{border-bottom:0}
.report-col-name{font-weight:820;font-size:12px;color:#2a474d;margin-bottom:8px;overflow-wrap:anywhere;line-height:1.35}
.report-col-values{font-size:11px;color:#34565c;font-variant-numeric:tabular-nums;line-height:1.3}
.report-col-values strong{font-weight:800;overflow-wrap:anywhere;white-space:normal}
.report-col-diff{border-radius:5px;padding:3px 3px;font-size:10px}
.report-col-bars{display:grid;gap:3px;margin-top:8px}
.report-col-track{height:5px;border-radius:10px;background:#edf2ef;overflow:hidden}
.report-col-fill{height:100%;border-radius:10px}.report-col-fill.plan{background:#c5d4cf}.report-col-fill.incasari{background:#198679}.report-col-fill.cheltuieli{background:#ce8051}.report-col-fill.economii{background:#6781b6}
.report-col-empty{padding:18px 0;color:#899c9a;font-size:12px}
/* Top overview: plan / actual / difference in distinct aligned slots. */
.report-plan-actual{grid-template-columns:repeat(3,minmax(0,1fr));gap:4px}
.report-plan-actual>div{padding:6px 5px;border-right:1px solid #e5eeea}.report-plan-actual>div:last-child{border-right:0}
.report-plan-actual strong{font-size:13px;white-space:normal;overflow-wrap:anywhere;line-height:1.35;display:block}
.report-plan-actual .report-summary-diff strong{font-size:12px}.report-plan-actual .report-summary-diff small{font-weight:800}
.report-delta-bottom{justify-content:flex-end;margin-top:5px}
.report-categories .card-head{margin-bottom:9px}
.report-categories .cmp-legend{margin-bottom:10px}
@media(max-width:1150px){.report-category-columns{grid-template-columns:1fr}.report-col-values{font-size:12px}.report-col-name{font-size:13px}}
@media(max-width:760px){.tx-calendar{padding:10px;min-width:0}.tx-calendar-controls select:first-of-type{max-width:102px}.tx-calendar-controls select:last-of-type{max-width:71px}.report-categories{padding:16px}.report-category-columns{gap:12px}.report-col-head{padding:12px}.report-col-body{padding:0 12px}}

/* V5: clearer expense contrast, more spacious tables and focused overview */
:root{--expense:#a8324a;--expense-light:#fcebf0;--expense-ink:#92263b}
.color-expense{color:var(--expense-ink)!important}
.tag-expense{background:var(--expense-light);color:var(--expense-ink)}
.cmp-fill.cheltuieli,.report-col-fill.cheltuieli{background:var(--expense)}
.report-delta-card.type-cheltuieli,.report-col-panel.report-type-cheltuieli{border-top-color:var(--expense)}
.report-type-cheltuieli .report-col-head{background:#fff1f4}
.tx-table .negative{color:var(--expense-ink)!important}
.dashboard-chart{margin-bottom:18px}.dashboard-chart .card{width:100%}
.dashboard-followups{align-items:start}
.dash-action-card{min-height:300px}.dash-focus-item,.dash-recent-item{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:12px 0;border-bottom:1px solid #e7efeb}
.dash-focus-item:last-child,.dash-recent-item:last-child{border-bottom:0}
.dash-focus-item>div,.dash-recent-item>div{min-width:0;flex:1}.dash-focus-item strong,.dash-recent-item strong{font-size:13px;color:#27454a}
.dash-focus-item small,.dash-recent-item small{display:block;color:#71878b;font-size:11px;line-height:1.5;margin-top:3px;overflow-wrap:anywhere}
.dash-focus-over{color:var(--expense-ink)!important;white-space:nowrap}.dash-recent-item>strong{white-space:nowrap}
.dash-card-footer{margin-top:18px;display:flex;justify-content:flex-end}
.plan-category .category-line{min-width:225px;gap:7px}.plan-category-name{min-width:0;flex:1;overflow-wrap:anywhere}.plan-category-actions{display:inline-flex;gap:1px;align-items:center;margin-left:auto;flex-shrink:0}
.plan-category-actions .icon-btn{border:1px solid transparent;font-size:15px}.plan-category-actions .icon-btn:hover{border-color:#dde6e2}
.plan-delete-btn{color:#a8324a!important}.plan-delete-btn:hover{background:#fcebf0!important;color:#872337!important}
.tx-scope-line{display:flex;align-items:center;justify-content:flex-end;gap:13px;margin-bottom:13px}
.tx-scope-caption{color:#637d83;font-size:12px;font-weight:800}
.tx-table-wrap{max-height:min(110vh,1150px)}
.tx-card .tx-table td{padding-top:12px;padding-bottom:12px}
body[data-view="reports"] .content{max-width:none}
.report-categories{padding:24px}
.report-category-stack{display:grid;grid-template-columns:1fr;gap:22px;margin-top:18px}
.report-type-table{border:1px solid #dfebe6;border-left:5px solid var(--report-type);border-radius:13px;background:#fff;overflow:hidden;box-shadow:0 3px 15px #153d3610}
.report-table-header{display:flex;justify-content:space-between;align-items:center;gap:20px;flex-wrap:wrap;padding:15px 20px;background:#f7faf8;border-bottom:1px solid #e4ede8}
.report-table-header h3{font-size:17px;line-height:1.3;margin:0 0 4px;color:#203f45}.report-table-header p{margin:0;color:#6e8489;font-size:12px}
.report-table-total{border-radius:8px;padding:7px 11px;font-size:12px;font-weight:850;white-space:nowrap}
.report-categories-table{width:100%;min-width:825px;table-layout:fixed;border-collapse:collapse}
.report-categories-table th{background:#f3f7f5;color:#60777d;padding:11px 17px;font-size:11px}
.report-categories-table th:nth-child(1){width:28%}.report-categories-table th:nth-child(2){width:15%}.report-categories-table th:nth-child(3){width:15%}.report-categories-table th:nth-child(4){width:18%}.report-categories-table th:nth-child(5){width:24%}
.report-categories-table td{padding:11px 17px;font-size:12px;vertical-align:middle}
.report-categories-table tbody tr:nth-child(even){background:#fafcfb}
.report-categories-table .report-name strong{font-size:12px;color:#2b4b50}
.report-categories-table .report-actual{font-weight:850;color:#264b52}
.report-difference{display:inline-flex;padding:5px 8px;border-radius:7px;justify-content:flex-end;min-width:88px;font-size:12px;font-weight:850}
.report-diff-label{display:block;margin-top:4px;color:#819297;font-size:10px}
.report-mini-comparison{min-width:190px}.report-bar-line{display:grid;grid-template-columns:27px minmax(0,1fr);align-items:center;gap:7px;margin:4px 0}
.report-bar-line small{color:#7b9295;font-weight:750;font-size:10px}
.report-bar-track{height:7px;overflow:hidden;border-radius:99px;background:#edf2ef}
.report-bar-track span{display:block;height:100%;border-radius:99px}
.report-bar-track .plan{background:#c2d3cf}.report-bar-track .actual{background:var(--report-type)}
.report-categories-table tfoot{background:#eaf3ef;font-weight:850}
.report-categories-table tfoot td{border-top:2px solid #ccded6;color:#294e53}
.report-monthly-wide{margin-bottom:21px;padding:22px}
.report-monthly-wide .table-scroll{width:100%}
.monthly-report-table{width:100%;min-width:1140px;table-layout:fixed}
.monthly-report-table th:first-child{width:13%}.monthly-report-table th:last-child{width:17%}
.monthly-report-table th{padding:14px 14px;background:#edf5f1;color:#315b61;font-size:11px}
.monthly-report-table td{padding:14px 14px;border-bottom:1px solid #e7efec}
.monthly-report-table tbody tr:nth-child(even){background:#fafcfb}
.monthly-pair{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));align-items:center;gap:9px;text-align:right;white-space:normal}
.monthly-pair small,.monthly-pair strong,.monthly-pair em{font-size:11px;white-space:nowrap;font-variant-numeric:tabular-nums;text-align:right}
.monthly-pair em{padding:4px 3px}
@media(max-width:760px){
 .tx-scope-line{align-items:stretch;flex-direction:column;gap:7px}.tx-scope-caption{margin-left:2px}
 .tx-table-wrap{max-height:min(104vh,950px)}
 .dashboard-followups{grid-template-columns:1fr}
 .dash-action-card{min-height:auto}
 .report-categories{padding:15px 12px}
 .report-category-stack{gap:14px}
 .report-table-header{padding:14px 13px;gap:10px}
 .report-monthly-wide{padding:15px 12px}
}

/* V6: unrestricted year navigation, compact report details, top transaction scroller, persistent planning balance. */
.year-stepper{display:flex;align-items:center;gap:2px;background:#f5faf7;border:1px solid #d9e7e1;border-radius:11px;padding:3px;min-width:0}
.year-stepper button{display:grid;place-items:center;width:30px;min-width:30px;height:32px;background:transparent;border:0;border-radius:7px;color:#315e60;font-size:24px;line-height:1;font-weight:700}
.year-stepper button:hover,.year-stepper button:focus-visible{background:#d7eae3;outline:none;color:#18494c}
.year-stepper #yearSelect{margin:0;border:0;background:transparent;padding:8px 20px 8px 6px;border-radius:6px;max-width:91px;min-width:78px;text-align:center}
.plan-sticky-summary{position:sticky;top:94px;z-index:5;display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:12px 22px;padding:11px 18px;margin:0 0 19px;background:#e7f3ed;border:1px solid #b7d6ca;border-left:5px solid #1b766c;border-radius:11px;box-shadow:0 8px 22px #173c351e;color:#254f50}
.plan-sticky-total,.plan-sticky-month{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.plan-sticky-total{flex:1 1 290px}.plan-sticky-total span{font-weight:800;font-size:13px}.plan-sticky-total small{display:block;color:#5f7d7d;font-size:10px;font-weight:600}
.plan-sticky-total strong{font-weight:900;font-size:22px;font-variant-numeric:tabular-nums;letter-spacing:-.4px;white-space:nowrap}
.plan-sticky-month{background:#fff;border:1px solid #c5ded3;border-radius:9px;padding:7px 10px;gap:10px;flex:0 1 auto}
.plan-sticky-month label{color:#587576;font-size:11px;font-weight:720;white-space:nowrap}
.plan-sticky-month select{border:1px solid #d2e3dd;border-radius:7px;padding:6px 7px;color:#2c5758;background:#fff;max-width:120px;font-size:12px}
.plan-sticky-month strong{min-width:88px;text-align:right;font-weight:850;font-variant-numeric:tabular-nums;white-space:nowrap;color:#176353}
.plan-sticky-summary.monthly-deficit .plan-sticky-month strong,.plan-sticky-summary.annual-deficit .plan-sticky-total strong{color:#a8324a}
.tx-scroll-head{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:7px 18px 8px;font-size:11px;color:#557579;font-weight:750;border-top:1px solid #e6eeea;background:#f9fcfa}
.tx-scroll-actions{display:flex;gap:7px}
.tx-scroll-actions button{border:1px solid #cbdfd5;background:#fff;color:#265f61;border-radius:7px;padding:5px 10px;font-weight:800;font-size:11px}
.tx-scroll-actions button:hover,.tx-scroll-actions button:focus-visible{border-color:#599c8c;background:#e7f5ee}
.tx-top-scrollbar{overflow-x:auto;overflow-y:hidden;height:22px;background:#f3f8f5;scrollbar-color:#458b82 #e0eae6;scrollbar-width:auto;border-top:1px solid #dae9e2;border-bottom:1px solid #dae9e2}
.tx-top-scroll-content{height:1px;min-width:100%}
.tx-top-scrollbar:focus-visible{outline:3px solid #2f877a;outline-offset:-2px}
.report-type-switcher{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:11px;margin-bottom:15px}
.report-type-tab{border:1px solid #d9e6e0;border-top:4px solid #198679;background:#fbfdfc;border-radius:11px;padding:13px 15px;min-width:0;display:flex;align-items:flex-start;flex-direction:column;gap:4px;text-align:left;transition:border .12s,background .12s,box-shadow .12s}
.report-type-tab.type-cheltuieli{border-top-color:#a8324a}.report-type-tab.type-economii{border-top-color:#6781b6}
.report-type-tab:hover{background:#f0f7f3;border-color:#7eafa2}
.report-type-tab.active{background:#e9f5ef;border-color:#2b8376;box-shadow:0 0 0 2px #2b837624}
.report-type-tab.active.type-cheltuieli{background:#fcf0f3;border-color:#a8324a;box-shadow:0 0 0 2px #a8324a26}
.report-type-tab.active.type-economii{background:#eff3fb;border-color:#6781b6;box-shadow:0 0 0 2px #6781b626}
.report-type-tab-title{font-size:13px;color:#34575b;font-weight:860}.report-type-tab strong{font-size:17px;font-weight:900;font-variant-numeric:tabular-nums;padding:2px 7px;border-radius:6px;max-width:100%;overflow-wrap:anywhere}
.report-type-tab small{color:#798d8d;font-size:10px}.report-one-table .report-type-table{box-shadow:none}
.report-one-table .report-table-header{padding:11px 17px}.report-one-table .report-categories-table td{padding:9px 14px}.report-one-table .report-categories-table th{padding:10px 14px}
@media(max-width:760px){
 .top-filters{flex-wrap:wrap}.year-stepper{flex:1 1 143px}.year-stepper #yearSelect{max-width:none;flex:1;min-width:65px}.top-filters #periodSelect{flex:1 1 100px}
 .plan-sticky-summary{top:8px;padding:9px 11px;gap:6px;z-index:6}.plan-sticky-total{flex:1 1 100%;justify-content:space-between;gap:5px}.plan-sticky-total strong{font-size:19px}.plan-sticky-total span{font-size:11px}
 .plan-sticky-month{flex:1 1 100%;justify-content:space-between;padding:5px 7px;gap:5px}.plan-sticky-month strong{font-size:12px}.plan-sticky-month label{font-size:10px}.plan-sticky-month select{font-size:11px;max-width:115px}
 .tx-scroll-head{padding:8px 12px;flex-wrap:wrap}.tx-scroll-actions{margin-left:auto}.tx-top-scrollbar{height:22px}
 .report-type-switcher{gap:6px}.report-type-tab{padding:9px 8px;gap:5px}.report-type-tab-title{font-size:11px}.report-type-tab strong{font-size:12px;padding:2px 4px}.report-type-tab small{font-size:9px}.report-one-table .report-table-header{padding:11px 12px}
}

/* One selected budget category group is shown at a time; its table expands to all rows. */
.report-annual-more{margin:0 0 15px;border-radius:11px;border:1px solid #dfeae5;background:#fff;color:#3c6262}
.report-annual-more summary{cursor:pointer;padding:8px 14px;font-weight:790;font-size:12px;display:flex;align-items:center;justify-content:space-between;gap:12px}
.report-annual-more summary span{color:#708989;font-size:11px}.report-annual-more .report-compact-metrics{margin:0 0 4px;padding:12px 14px}
.report-one-table .report-table-viewport{width:100%;overflow-x:auto;max-height:none}
.report-one-table .report-categories-table thead th,.report-one-table .report-categories-table tfoot td{position:static}
@media(max-width:760px){.report-annual-more summary{font-size:11px}}

/* Summary and chooser are the same three cards, eliminating duplicate vertical content. */
.report-type-tab{padding:13px 14px;gap:11px}
.report-type-tab-title{font-size:15px;font-weight:900;line-height:1.2}
.report-tab-values{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));width:100%;gap:6px}
.report-tab-values>span{min-width:0;padding-right:5px;border-right:1px solid #e0e9e5}
.report-tab-values>span:last-child{border-right:0}
.report-tab-values small{display:block;font-size:10px;color:#809797;margin-bottom:4px}
.report-tab-values b{display:block;font-variant-numeric:tabular-nums;font-size:13px;font-weight:850;overflow-wrap:anywhere;padding:2px 3px;border-radius:4px}
.report-tab-mobile-delta{display:none}
.report-tab-track{display:block;width:100%;height:5px;border-radius:20px;background:#e8efec;overflow:hidden;margin-top:1px}
.report-tab-track i{display:block;height:100%;border-radius:20px}
@media(max-width:760px){
 .report-type-tab{padding:9px 7px;gap:6px}
 .report-tab-values{display:none}
 .report-tab-mobile-delta{display:inline-flex;font-size:12px;line-height:1.25;max-width:100%;overflow-wrap:anywhere;padding:3px 4px;border-radius:5px}
 .report-type-tab-title{font-size:11px}
 .report-tab-track{height:4px}
}

/* V8: dashboard rebuilt for daily decision making */
.dash-summary-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin-bottom:18px}
.dash-summary-tile{background:white;border:1px solid #dfe9e5;border-radius:15px;padding:17px 19px;box-shadow:var(--shadow);min-width:0}
.dash-summary-tile .dash-summary-label{color:#607980;font-size:12px;font-weight:800;margin-bottom:6px}
.dash-summary-tile strong{font-size:26px;font-weight:860;letter-spacing:-.8px;color:#194c4d;display:block;white-space:normal;overflow-wrap:anywhere;line-height:1.3;font-variant-numeric:tabular-nums}
.dash-summary-tile small{color:#758a8e;display:block;font-size:11px;line-height:1.45;margin-top:8px}
.dash-summary-tile.warning{border-top:4px solid #a8324a}.dash-summary-tile.warning strong{color:#9d2840}
.dash-summary-tile.attention{border-top:4px solid #bf7a25}.dash-summary-tile.attention strong{color:#805a19}
.dash-summary-tile.available{border-top:4px solid #148472}
.dash-workspace{display:grid;grid-template-columns:minmax(0,1.55fr) minmax(310px,.85fr);gap:18px;align-items:start;margin-bottom:18px}
.dash-budget-card{padding:21px}.dash-budget-toolbar{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin:-3px 0 14px}
.dash-period-note{font-size:12px;color:#6d8386;line-height:1.5}
.dash-category-row{padding:14px 0;border-bottom:1px solid #e7efeb}.dash-category-row:last-child{border-bottom:0}
.dash-category-line{display:flex;justify-content:space-between;align-items:flex-start;gap:12px}
.dash-category-label{display:flex;gap:7px;align-items:center;min-width:0;flex-wrap:wrap}
.dash-category-label strong{color:#29494f;font-size:13px;overflow-wrap:anywhere}
.dash-category-remaining{color:#0b7160;font-size:15px;font-weight:850;white-space:nowrap;font-variant-numeric:tabular-nums}
.dash-category-remaining.is-negative{color:#a32944}.dash-category-remaining.is-zero{color:#596e77}
.dash-category-hint{color:#6e858b;font-size:11px;margin-top:6px;line-height:1.5}
.dash-category-status{font-size:10px;font-weight:850;border-radius:7px;padding:3px 6px;white-space:nowrap}
.dash-category-status.ok{background:#e7f4ef;color:#136e5e}.dash-category-status.near{background:#fff2d9;color:#855612}
.dash-category-status.over,.dash-category-status.unplanned,.dash-category-status.full{background:#ffe7ee;color:#9e2840}
.dash-category-bar{height:9px;border-radius:999px;background:#e9efec;margin-top:10px;position:relative;overflow:hidden}
.dash-category-bar span{display:block;background:#178672;height:100%;border-radius:999px;min-width:0}
.dash-category-bar.near span{background:#c28330}.dash-category-bar.over span,.dash-category-bar.unplanned span,.dash-category-bar.full span{background:#ad2d48}
.dash-budget-footer{margin-top:15px;display:flex;justify-content:space-between;gap:10px;flex-wrap:wrap;align-items:center}
.dash-card-empty{padding:25px 0;color:#6f8385;font-size:12px}
.dash-closing-card{padding:21px}.dash-close-kicker{font-size:10px;font-weight:850;letter-spacing:1.15px;text-transform:uppercase;color:#718a8c}
.dash-close-month{font-size:20px;font-weight:830;color:#25494d;margin:4px 0 11px}
.dash-close-amount{font-size:32px;font-weight:890;font-variant-numeric:tabular-nums;color:#136b61;letter-spacing:-1px;line-height:1.25}
.dash-close-description{font-size:12px;color:#687f83;line-height:1.6;margin:9px 0 16px}
.dash-close-state{padding:10px 11px;border:1px solid #d9e8e2;border-radius:10px;background:#f5faf7;font-size:12px;font-weight:730;color:#23645c;margin:12px 0}
.dash-close-state.issues{border-color:#ecc3cc;background:#fff2f5;color:#a12a44}
.dash-close-actions{display:flex;gap:9px;flex-wrap:wrap;margin:13px 0}
.dash-close-foot{font-size:11px;line-height:1.5;color:#75898c;margin-top:15px}
.dash-trend-card{padding:22px}.dash-trend-head{margin-bottom:16px}
.dash-trend-insights{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-bottom:18px}
.dash-trend-insight{background:#f5f9f7;border:1px solid #e1eae5;border-radius:10px;padding:12px}
.dash-trend-insight span{display:block;font-size:11px;color:#70878a;margin-bottom:4px}
.dash-trend-insight strong{font-weight:850;color:#284b50;font-size:19px;font-variant-numeric:tabular-nums;letter-spacing:-.4px}
.dash-trend-insight small{display:block;font-size:10px;color:#70878a;margin-top:4px}
.dash-trend-body{display:grid;grid-template-columns:minmax(0,1.4fr) minmax(240px,.8fr);gap:18px;align-items:start}
.dash-trend-legend{display:flex;gap:17px;align-items:center;flex-wrap:wrap;font-size:11px;color:#627d82;margin-bottom:10px}
.dash-trend-legend i{width:9px;height:9px;border-radius:3px;display:inline-block;margin-right:5px}
.dash-trend-chart{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:9px;height:170px;padding-top:10px;border-bottom:1px solid #cbded6;background:repeating-linear-gradient(to top,transparent 0,transparent calc(25% - 1px),#eaf1ed calc(25% - 1px),#eaf1ed 25%)}
.dash-trend-month{min-width:0;display:flex;justify-content:center;align-items:flex-end;gap:4px;height:100%}
.dash-trend-bar{min-width:5px;width:min(29%,18px);border-radius:5px 5px 0 0;background:#168778;min-height:0}
.dash-trend-bar.expense{background:#a8324a}
.dash-trend-labels{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:9px;text-align:center;font-weight:740;color:#738b8c;font-size:10px;padding-top:7px}
.dash-trend-rise{font-size:12px;color:#58757a;margin:9px 0 0}
.dash-trend-risers h3{margin:1px 0 9px;font-size:13px;color:#2a4e52}
.dash-trend-riser{border-bottom:1px solid #e8f0eb;padding:9px 0;display:flex;justify-content:space-between;align-items:start;gap:10px}
.dash-trend-riser:last-child{border:0}.dash-trend-riser strong{font-size:12px;color:#314c54}.dash-trend-riser small{display:block;color:#789094;font-size:11px}
.dash-trend-riser b{white-space:nowrap;font-size:12px;color:#a32944}
.close-month-modal{max-height:min(65vh,550px);overflow:auto;border:1px solid #e0ebe5;border-radius:10px;margin-top:16px}
.close-month-table{width:100%;min-width:460px}.close-month-table th,.close-month-table td{padding:9px 10px}
.close-month-table .field{width:112px;padding:8px}.close-month-totals{padding:12px 14px;border:1px solid #c4e0d6;background:#ebf7f1;border-radius:10px;margin-top:13px;display:flex;align-items:center;justify-content:space-between;gap:12px;font-weight:830}
.close-month-note{font-size:12px;line-height:1.6;color:#607a7e;margin-top:12px}.close-month-note strong{color:#a32944}
.close-month-stale{background:#fff3f5;border:1px solid #f2c4d0;border-radius:8px;color:#9b2945;padding:10px 12px;font-size:12px;margin-top:12px}
@media(max-width:1180px){.dash-workspace{grid-template-columns:minmax(0,1fr)}.dash-trend-body{grid-template-columns:minmax(0,1fr)}.dash-summary-tile strong{font-size:23px}}
@media(max-width:760px){.dash-summary-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.dash-summary-grid .dash-summary-tile:first-child{grid-column:1/-1}.dash-summary-tile{padding:13px}.dash-summary-tile strong{font-size:23px}.dash-budget-card,.dash-closing-card,.dash-trend-card{padding:16px}.dash-category-line{gap:8px}.dash-category-remaining{font-size:13px}.dash-close-amount{font-size:28px}.dash-trend-insights{grid-template-columns:1fr 1fr}.dash-trend-insights .dash-trend-insight:first-child{grid-column:1/-1}.dash-trend-insight strong{font-size:17px}.dash-trend-chart{height:150px}}

/* Cloud account and synchronization (V9). */
[hidden]{display:none!important}
.cloud-quick-status{font-size:11px;color:#4b7c75;font-weight:720;max-width:240px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.cloud-settings-card{margin-top:20px}.cloud-settings-card h3{margin:0 0 9px;font-size:19px}.cloud-settings-card p{color:var(--muted)}.cloud-settings-actions{display:flex;gap:9px;flex-wrap:wrap}
.cloud-gate{position:fixed;z-index:9999;inset:0;background:linear-gradient(145deg,#102f35,#183b48 52%,#23454e);display:flex;align-items:center;justify-content:center;padding:20px;overflow:auto}
.cloud-panel{width:min(480px,100%);background:#fff;border-radius:22px;padding:34px 36px;box-shadow:0 28px 80px rgba(0,0,0,.28);color:#182d3c}
.cloud-logo{width:49px;height:49px;border-radius:15px;background:#116e6b;display:grid;place-items:center;color:#fff;font-size:26px;font-weight:850;margin-bottom:17px}
.cloud-overline{font-size:10px;letter-spacing:2px;font-weight:850;color:#0e837a;margin:0 0 7px}.cloud-panel h1{font-size:25px;line-height:1.22;letter-spacing:-.5px;margin:0 0 10px}.cloud-panel h2{font-size:17px;margin:14px 0 8px}
.cloud-explainer{font-size:13px;line-height:1.6;color:#67798a;margin:0 0 21px}.cloud-panel label{display:block;color:#31435b;font-size:12px;font-weight:750;margin-bottom:6px;margin-top:16px}
.cloud-panel input:not([type=file]){border-radius:10px;border:1px solid #cbd5e2;font-size:15px;line-height:1.5;width:100%;padding:12px 13px;background:#fff;color:#263b4c}
.cloud-panel input:focus{outline:2px solid #9cc8ca;outline-offset:1px}.cloud-submit{width:100%;margin-top:14px;white-space:normal}
.cloud-auth-links{display:flex;justify-content:space-between;gap:8px;flex-wrap:wrap;margin-top:14px}.cloud-auth-links button,.cloud-text-link{background:none;border:0;color:#176e79;font-size:13px;font-weight:750;padding:7px 0;text-decoration:underline;cursor:pointer}
.cloud-gate-msg{padding:12px 13px;background:#ecf6f4;color:#18504a;border:1px solid #b6dcd6;border-radius:10px;font-size:13px;margin:8px 0;overflow-wrap:anywhere}
.cloud-gate-msg.error{background:#fff0f1;color:#9d2538;border-color:#f4bec8}.cloud-small{margin-top:21px;color:#7f8997;font-size:11px;line-height:1.5}.cloud-panel #cloudOnboard p,.cloud-panel #cloudSetup p{color:#617486;font-size:13px;line-height:1.6}
.cloud-floating{position:fixed;z-index:9000;right:17px;bottom:15px;background:#fff;border:1px solid #bfcbd2;box-shadow:0 18px 40px rgba(12,30,45,.17);padding:15px 17px;border-radius:14px;max-width:min(540px,calc(100vw - 32px));display:flex;align-items:center;gap:10px;flex-wrap:wrap;font-size:13px}
.cloud-conflict{border-color:#e9b4bf;color:#963447;bottom:18px}.cloud-conflict span{font-size:12px;color:#4c6072;flex-basis:100%}
@media(max-width:720px){.cloud-panel{padding:24px 21px}.cloud-panel h1{font-size:22px}.cloud-quick-status{max-width:180px;font-size:10px}.cloud-floating{left:12px;right:12px;bottom:77px;max-width:none}}
