:root {
  --deep: #132b22; --deepest: #10231c; --sidebar-border: rgba(255,255,255,.105); --lime: #b2ee78;
  --forest: #246c42; --forest-dark: #16482e; --green-wash: #e8f5e9; --red: #d34c50; --red-wash: #fff1f0;
  --ink: #1d3029; --muted: #718078; --border: #e6ebe7; --soft: #f5f7f5; --background: #f8faf8;
  --radius: 18px; --shadow: 0 5px 24px rgba(17,48,29,.035);
}
*{box-sizing:border-box} html,body{min-height:100%;margin:0}body{font-family:Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;background:var(--background);color:var(--ink);font-size:14px;-webkit-font-smoothing:antialiased}button,input,select{font:inherit}button{cursor:pointer}svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}button:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid #92db76;outline-offset:2px}.hidden{display:none!important}.app-shell{min-height:100vh;display:flex}.sidebar{width:260px;min-width:260px;min-height:100vh;background:var(--deepest);color:#fff;padding:33px 18px 20px;display:flex;flex-direction:column;position:sticky;top:0;height:100vh}.brand-wrap{display:flex;align-items:center;gap:12px;margin:0 10px 64px}.brand-symbol{width:42px;height:42px}.brand-symbol svg{width:42px;height:42px;stroke:none}.brand-type strong{font-size:26px;line-height:1;font-weight:780;letter-spacing:-1.1px;display:block}.brand-type strong span{color:var(--lime)}.brand-type small{display:block;margin-top:7px;font-size:9px;color:#8daa9a;font-weight:700;letter-spacing:1.55px}.side-section-label{color:#829b8c;font-size:10px;letter-spacing:1.8px;font-weight:800;margin:0 16px 13px}.side-nav{display:flex;flex-direction:column;gap:8px}.side-link,.tool-link{border:0;background:transparent;color:#b3c4b9;display:flex;align-items:center;gap:12px;width:100%;text-align:left;font-weight:600;border-radius:11px;padding:13px 14px;transition:background .18s,color .18s}.side-link svg{width:19px;height:19px}.side-link.active,.side-link:hover{color:#eaffec;background:#264234}.side-number{font-size:11px;margin-left:auto;background:#3a5848;border-radius:7px;padding:3px 8px;color:#d3e8d6}.side-new{border:1px solid #3d6e4e;background:#274a35;color:#d3ffbc;font-size:13px;font-weight:750;border-radius:11px;margin:16px 5px 0;padding:13px;display:flex;align-items:center;gap:11px;justify-content:center;transition:background .2s}.side-new:hover{background:#32613e}.side-new span{font-size:23px;line-height:12px;font-weight:400}.sidebar-spacer{flex:1;min-height:22px}.sidebar-tools .side-section-label{margin-bottom:9px}.tool-link{font-size:12.5px;padding:12px 13px}.tool-link:hover{color:white;background:#254335}.tool-link svg{width:18px;height:18px}.sidebar-footer{margin:20px 0 0;border-top:1px solid var(--sidebar-border);padding:21px 9px 5px;display:flex;align-items:center;gap:9px;color:#9fb5a5;font-size:11.5px}.sidebar-footer svg{width:14px;height:14px;margin-left:auto;color:#8eab98}.online-dot{height:7px;width:7px;background:var(--lime);border-radius:50%;box-shadow:0 0 0 3px rgba(178,238,120,.10)}
.app-body{min-width:0;flex:1}.topbar{height:76px;display:flex;align-items:center;justify-content:space-between;background:#fff;border-bottom:1px solid var(--border);padding:0 clamp(24px,4.2vw,64px)}.topbar-left,.topbar-right{display:flex;align-items:center;gap:17px}.top-eyebrow{font-size:10px;font-weight:850;letter-spacing:1.65px;color:#435d4c}.top-clock{font-size:12px;color:#8b988d;font-weight:550}.topbar-divider{height:16px;width:1px;background:#e1e8e2}.sync-label{font-size:12px;color:#718779;font-weight:600;display:flex;align-items:center;gap:7px}.sync-check{background:#e2f4e1;border-radius:50%;color:var(--forest);width:19px;height:19px;display:inline-flex;align-items:center;justify-content:center;font-weight:900}.avatar{height:33px;width:33px;display:grid;place-items:center;border-radius:50%;background:#e6efe7;color:#2b6a41;font-weight:780;font-size:12px}.page{max-width:1390px;margin:0 auto;padding:43px clamp(24px,4.2vw,64px) 100px}.page-intro{display:flex;align-items:flex-end;justify-content:space-between;gap:16px;margin-bottom:29px}.eyebrow{font-weight:850;color:var(--forest);font-size:10.5px;letter-spacing:1.9px;margin:0 0 12px}.page-title{font-size:clamp(27px,3vw,38px);line-height:1.15;font-weight:800;letter-spacing:-1.65px;margin:0 0 11px}.page-subtitle{font-size:13px;color:var(--muted);margin:0;line-height:1.7}.primary-button,.secondary-button,.danger-button,.text-button{display:inline-flex;align-items:center;justify-content:center;gap:9px;font-weight:750;border-radius:11px;transition:background .15s,transform .15s;color:var(--ink)}.primary-button{background:#265b3c;border:1px solid #265b3c;color:white;padding:13px 18px;white-space:nowrap}.primary-button:hover{background:#173f29}.primary-button svg{width:17px;height:17px}.secondary-button{background:#fff;border:1px solid #dbe5dd;padding:11px 15px;font-size:12.5px}.secondary-button:hover{background:#edf5ed}.secondary-button svg{width:17px;height:17px}.danger-button{background:#d64e53;color:white;border:1px solid #d64e53;padding:11px 16px}.danger-button:hover{background:#b83f44}.text-button{border:0;background:transparent;padding:6px 0;color:var(--forest);font-size:12px}.text-button:hover{text-decoration:underline}.button-small{padding:9px 13px;font-size:12px}.stats-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;margin-bottom:34px}.stat-card{background:#fff;border:1px solid var(--border);border-radius:var(--radius);padding:25px 25px 23px;min-height:151px;box-shadow:var(--shadow);position:relative;overflow:hidden}.stat-card.primary-stat{background:var(--deep);border-color:var(--deep);color:white}.stat-top{display:flex;align-items:center;justify-content:space-between;margin-bottom:24px}.stat-label{font-size:12px;font-weight:650;color:#7c8a80}.primary-stat .stat-label{color:#abc5b3}.stat-icon{height:35px;width:35px;display:grid;place-items:center;border-radius:10px;background:#f0f6f0;color:#467353}.stat-icon svg{width:18px;height:18px}.primary-stat .stat-icon{background:#315040;color:#c3edb4}.stat-value{font-size:clamp(21px,2.15vw,29px);font-weight:830;line-height:1.2;letter-spacing:-.9px;overflow-wrap:anywhere}.primary-stat .stat-value{color:#b6f58e}.stat-description{margin-top:9px;color:#91a094;font-size:11px}.primary-stat .stat-description{color:#8baa97}.section-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:15px;gap:14px}.section-heading h2{font-size:17px;letter-spacing:-.5px;margin:0;font-weight:780}.section-count{font-size:11px;color:#769181;background:#ecf4ec;border-radius:18px;padding:5px 9px;margin-left:8px}.search-input-wrap{background:#fff;border:1px solid #e1e8e2;border-radius:10px;display:flex;align-items:center;gap:9px;padding:0 13px;min-width:min(310px,100%);height:41px}.search-input-wrap svg{width:17px;height:17px;color:#9ba9a0}.search-input-wrap input{border:0;outline:0;background:transparent;min-width:0;width:100%;color:var(--ink);font-size:12.5px}.search-input-wrap:focus-within{box-shadow:0 0 0 3px #e2f5de;border-color:#a4d893}.search-input-wrap input::placeholder{color:#a5b0a8}.records-shell{border-radius:var(--radius);border:1px solid var(--border);background:white;box-shadow:var(--shadow);overflow:hidden}.table-wrap{overflow-x:auto}.records-table,.movement-table{width:100%;border-collapse:collapse;text-align:left}.records-table thead,.movement-table thead{background:#f9fbf9}.records-table th,.movement-table th{font-size:10px;text-transform:uppercase;letter-spacing:1.15px;color:#96a49a;font-weight:800;padding:18px 23px;white-space:nowrap}.records-table td{padding:19px 23px;border-top:1px solid #edf1ed;white-space:nowrap;font-size:12px}.records-table tr.record-row{cursor:pointer;transition:background .12s}.records-table tr.record-row:hover{background:#f8fbf8}.record-name{display:flex;align-items:center;gap:12px}.record-mark{width:38px;height:38px;background:#eaf4e9;color:#427a54;border-radius:12px;display:grid;place-items:center;font-weight:850;font-size:16px}.name-title{font-weight:800;font-size:13px;color:#25382d}.name-meta{color:#a0aca3;margin-top:5px;font-size:11px}.money-cell{font-weight:770;color:#35493c;font-size:13px!important;font-variant-numeric:tabular-nums}.money-muted{color:#819186!important}.pill{display:inline-flex;align-items:center;gap:6px;border-radius:99px;padding:6px 10px;font-size:11px;font-weight:750}.pill.positive{color:#277947;background:#e9f6e9}.pill.negative{color:#c9444b;background:#fff0ef}.pill.neutral{color:#698174;background:#edf3ee}.pill.unset{color:#7c8e80;background:#f1f4f1}.cell-arrow{border:0;background:transparent;color:#a2b0a4;border-radius:8px;display:grid;place-items:center;padding:7px}.cell-arrow:hover{background:#edf4ed;color:#355c40}.cell-arrow svg{height:17px;width:17px}.empty-state{padding:58px 24px;text-align:center}.empty-art{height:76px;width:76px;margin:0 auto 16px;border-radius:20px;display:grid;place-items:center;background:#eff6ed;color:#4e805b}.empty-art svg{height:34px;width:34px}.empty-state h3{font-size:17px;margin:0 0 10px;letter-spacing:-.4px}.empty-state p{font-size:13px;line-height:1.6;color:var(--muted);max-width:330px;margin:0 auto 21px}.footer-hint{margin-top:17px;display:flex;gap:8px;align-items:center;color:#8f9c90;font-size:11.5px}.footer-hint svg{width:15px;height:15px}.breadcrumb{font-size:12px;display:flex;align-items:center;gap:9px;color:#91a198;margin-bottom:23px}.breadcrumb button{background:transparent;border:0;padding:0;color:#628271;font-size:12px;font-weight:650}.breadcrumb button:hover{text-decoration:underline}.breadcrumb svg{width:13px;height:13px}.breadcrumb strong{color:#334a3a}.detail-header{display:flex;align-items:flex-end;justify-content:space-between;gap:18px;margin-bottom:26px}.detail-actions{display:flex;gap:9px;flex-wrap:wrap}.summary-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin-bottom:26px}.summary-card{padding:22px 21px 21px;background:#fff;border:1px solid var(--border);border-radius:16px;min-height:144px;box-shadow:var(--shadow)}.summary-card.emphasis{background:#eaf6e9;border-color:#d9ecd9}.summary-card.result-positive{background:#e9f6e9;border-color:#d5e9d5}.summary-card.result-negative{background:#fff0ee;border-color:#f6d8d4}.summary-card.result-neutral{background:#f2f5f2}.summary-card-head{display:flex;justify-content:space-between;align-items:center;gap:8px;color:#718477;font-size:11px;font-weight:740;margin-bottom:23px}.summary-card-head svg{width:18px;height:18px;color:#759a79}.summary-card.emphasis .summary-card-head{color:#3f7a49}.summary-card.result-negative .summary-card-head{color:#be6565}.summary-card-value{font-size:clamp(19px,2.05vw,27px);font-weight:820;letter-spacing:-.8px;overflow-wrap:anywhere;font-variant-numeric:tabular-nums}.summary-card.emphasis .summary-card-value,.summary-card.result-positive .summary-card-value{color:#237346}.summary-card.result-negative .summary-card-value{color:#cf494d}.summary-card-note{margin-top:8px;font-size:10.5px;color:#90a094}.detail-layout{display:grid;grid-template-columns:minmax(0,1.62fr) minmax(285px,1fr);gap:20px;align-items:start}.panel{background:white;border:1px solid var(--border);border-radius:var(--radius);box-shadow:var(--shadow);overflow:hidden}.panel-heading{padding:23px 24px 19px;display:flex;align-items:flex-start;justify-content:space-between;gap:10px;border-bottom:1px solid #edf0ed}.panel-heading h2{font-size:16px;letter-spacing:-.55px;margin:0 0 7px}.panel-heading p{font-size:12px;color:#91a095;margin:0;line-height:1.5}.panel-heading .mini-counter{font-size:11px;background:#f0f5f0;color:#5a8663;padding:6px 9px;border-radius:99px;font-weight:750}.movement-form{padding:23px 24px 20px;background:#fff}.form-row{display:grid;grid-template-columns:minmax(0,1.45fr) minmax(110px,.75fr) minmax(125px,.8fr);gap:11px;align-items:end}.form-group{display:flex;flex-direction:column;gap:8px;min-width:0}.form-label{font-size:11px;color:#53675b;font-weight:770}.field{width:100%;border:1px solid #dbe4dd;border-radius:10px;background:white;height:43px;padding:10px 12px;color:var(--ink);outline:none;font-size:13px}.field::placeholder{color:#aab7ae}.field:focus{border-color:#8bc18f;box-shadow:0 0 0 3px #e6f5e5}.field:disabled{background:#f7f8f7;color:#9ba89f}.field-money{font-variant-numeric:tabular-nums}.form-submit{margin-top:12px;display:flex;justify-content:flex-end}.form-submit .primary-button{padding:11px 17px;font-size:12px}.movement-table th{padding:15px 24px}.movement-table td{padding:17px 24px;border-top:1px solid #eef1ef;font-size:12px;white-space:nowrap}.movement-table .mov-title{color:#2d4735;font-weight:750;font-size:12.5px}.movement-table .mov-date{font-size:10.5px;color:#9bab9d;margin-top:5px}.movement-type{padding:5px 9px;border-radius:6px;font-size:10.5px;font-weight:750;display:inline-block}.movement-type.salida{background:#f2f4f2;color:#6c8171}.movement-type.pendiente{background:#fff3e3;color:#aa7837}.neg-amount{color:#c45156;font-weight:770;font-variant-numeric:tabular-nums}.action-cell{display:flex;justify-content:flex-end;gap:2px}.icon-button{width:32px;height:32px;border:0;border-radius:8px;display:inline-grid;place-items:center;background:transparent;color:#809489}.icon-button:hover{background:#eff4ee;color:#375a40}.icon-button.destructive:hover{background:#fff1f0;color:#c4484d}.icon-button svg{width:16px;height:16px}.mov-empty{padding:44px 16px;text-align:center;color:#9faea3;font-size:12px}.mov-empty svg{display:block;margin:0 auto 10px;width:31px;height:31px;color:#acbdac}.mov-footer{padding:16px 24px;background:#fbfcfb;border-top:1px solid var(--border);display:flex;align-items:center;justify-content:space-between;color:#8b9a8d;font-size:11px}.mov-footer strong{color:#c35d5a;font-size:12px;font-variant-numeric:tabular-nums}.right-stack{display:flex;flex-direction:column;gap:20px}.right-panel-pad{padding:23px 24px}.panel-title{font-size:15px;font-weight:780;letter-spacing:-.4px;margin:0 0 6px}.panel-intro{color:#91a095;font-size:11.5px;margin:0 0 21px;line-height:1.6}.amount-form{display:flex;flex-direction:column;gap:16px}.amount-form .primary-button{width:100%;margin-top:2px}.amount-note{padding:13px 14px;background:#f3f7f2;border-radius:10px;color:#708777;font-size:11.5px;line-height:1.65;margin-top:17px}.amount-note svg{height:15px;width:15px;vertical-align:middle;margin-right:4px}.breakdown{display:flex;flex-direction:column;gap:17px}.breakdown-row{display:flex;align-items:center;justify-content:space-between;gap:10px;color:#789084;font-size:12px}.breakdown-row strong{font-size:12px;color:#3f5846;font-variant-numeric:tabular-nums}.breakdown-row strong.minus{color:#cc5a5c}.breakdown-line{height:1px;background:#e8ede8}.breakdown-row.final{color:#2d4835;font-weight:800}.breakdown-row.final strong{color:#246e44;font-weight:850;font-size:15px}.explanation{color:#859588;line-height:1.65;font-size:11px;margin:17px 0 0}.modal-root{position:fixed;inset:0;z-index:100;display:flex;align-items:center;justify-content:center;padding:20px}.modal-backdrop{position:absolute;inset:0;background:rgba(9,27,17,.56);backdrop-filter:blur(3px)}.modal{position:relative;z-index:1;width:min(460px,100%);max-height:calc(100vh - 40px);overflow:auto;background:white;border-radius:21px;box-shadow:0 20px 80px rgba(8,25,15,.25)}.modal-header{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;padding:25px 27px 0}.modal-header .icon-button{background:#f4f6f4}.modal-kicker{font-size:10px;letter-spacing:1.5px;color:var(--forest);font-weight:850;margin:0 0 8px}.modal-header h2{font-size:23px;letter-spacing:-.9px;margin:0}.modal-body{padding:22px 27px 28px}.modal-body .form-group{margin-bottom:17px}.modal-help{font-size:11px;line-height:1.6;color:#89998d;margin-top:5px}.modal-footer{display:flex;justify-content:flex-end;gap:9px;margin-top:26px}.modal-footer .primary-button,.modal-footer .secondary-button,.modal-footer .danger-button{padding:12px 16px;font-size:12.5px}.warning-box{background:#fff4ef;border:1px solid #f7e1d6;border-radius:11px;padding:15px;color:#925950;font-size:12px;line-height:1.7}.toast-stack{position:fixed;bottom:26px;right:27px;z-index:200;display:flex;flex-direction:column;gap:9px;pointer-events:none}.toast{background:#193d2c;color:#fff;display:flex;align-items:center;gap:9px;border-radius:10px;padding:12px 17px;box-shadow:0 12px 34px rgba(0,0,0,.13);font-size:12px;font-weight:650;animation:rise .18s ease}.toast.error{background:#af4043}.toast svg{width:16px;height:16px}.helper-unset{font-size:10px}.sr-only{position:absolute!important;height:1px;width:1px;clip:rect(1px,1px,1px,1px);overflow:hidden;white-space:nowrap}@keyframes rise{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}
@media(max-width:1180px){.sidebar{width:230px;min-width:230px}.page{padding-left:30px;padding-right:30px}.topbar{padding-left:30px;padding-right:30px}.summary-grid{grid-template-columns:repeat(2,1fr)}.detail-layout{grid-template-columns:minmax(0,1fr)}.right-stack{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:800px){.sidebar{width:70px;min-width:70px;padding:23px 10px;align-items:center}.brand-wrap{margin:0 0 39px}.brand-symbol,.brand-symbol svg{width:40px;height:40px}.brand-type,.sidebar .side-section-label,.side-number,.sidebar-tools,.sidebar-footer,.side-new{display:none!important}.side-nav{width:100%}.side-link{justify-content:center;padding:12px}.side-link{font-size:0}.side-link svg{width:22px;height:22px}.topbar{height:67px}.stats-grid{gap:10px}.stat-card{padding:19px 15px}.records-table th,.records-table td{padding:14px}.page{padding-top:31px}}@media(max-width:620px){.app-shell{display:block}.sidebar{position:relative;top:auto;width:100%;height:64px;min-height:64px;flex-direction:row;padding:10px 20px;justify-content:space-between}.brand-wrap{margin:0;gap:7px}.brand-type{display:block}.brand-type strong{font-size:22px}.brand-type small{font-size:8px}.side-nav{width:auto}.side-link{display:none}.topbar{height:52px;padding:0 19px}.top-eyebrow{font-size:9px}.topbar-divider,.sync-label{display:none}.top-clock{font-size:10px}.page{padding:26px 17px 75px}.page-intro,.detail-header{align-items:flex-start;flex-direction:column}.page-title{font-size:29px}.page-intro .primary-button{width:100%}.stats-grid{grid-template-columns:1fr 1fr;gap:10px}.stat-card{min-height:119px}.stats-grid .stat-card:last-child{grid-column:span 2}.stat-top{margin-bottom:15px}.stat-value{font-size:22px}.section-heading{align-items:stretch;flex-direction:column}.search-input-wrap{width:100%}.summary-grid{grid-template-columns:1fr 1fr;gap:10px}.summary-card{min-height:116px;padding:17px 13px}.summary-card-head{margin-bottom:14px;font-size:10px}.summary-card-value{font-size:20px}.right-stack{display:flex}.form-row{grid-template-columns:1fr 1fr}.form-row .form-group:first-child{grid-column:span 2}.records-table,.movement-table{min-width:620px}.breadcrumb{margin-bottom:15px}.detail-header .detail-actions{width:100%}.detail-actions>*{flex:1}.modal-root{align-items:flex-end;padding:0}.modal{width:100%;border-radius:21px 21px 0 0;max-height:94vh}.toast-stack{left:17px;right:17px;bottom:15px}.toast{width:100%}}

.stat-value.negative-color{color:var(--red)}.stat-value.positive-color{color:var(--forest)}

/* Nuevas funciones: entradas, pendientes, progreso, categorías y borrado total */
.danger-tool{color:#f0aaa7!important;margin-top:10px;border-top:1px solid rgba(255,255,255,.1);border-radius:0;padding-top:18px}
.danger-tool:hover{background:#613333!important;color:#fff!important;border-radius:9px}
.summary-card.entry-card .summary-card-value,.pos-amount{color:#237346;font-weight:770;font-variant-numeric:tabular-nums}
.summary-card.pending-card .summary-card-value,.pending-amount{color:#a77b36;font-weight:770;font-variant-numeric:tabular-nums}
.movement-type.entrada{background:#e9f6e9;color:#237346}
.legacy-amount{color:#839387;font-variant-numeric:tabular-nums}
.legacy-notice{margin:0 24px 16px;border:1px solid #f1d9bf;background:#fff9ed;color:#885f2c;border-radius:10px;padding:12px 14px;line-height:1.5;font-size:11px}
.legacy-notice svg{width:14px;height:14px;vertical-align:middle}
.mov-footer strong{color:#237346}
.progress-label{display:flex;justify-content:space-between;gap:8px;color:#5a7262;font-size:11.5px;margin-top:5px;margin-bottom:12px}
.progress-label strong{color:#246e44;font-size:13px;font-variant-numeric:tabular-nums}
.progress-track{width:100%;height:11px;border-radius:30px;background:#e8f1e9;overflow:hidden}
.progress-fill{height:100%;background:#73bb79;border-radius:30px;transition:width .2s}
.progress-caption{font-size:11px;color:#7a9481;margin-top:10px}
.confirm-delete-label{margin-top:18px}
