:root{--ink:#17263b;--muted:#66778d;--sea:#126f79;--teal:#00a98f;--paper:#f4f8fa;--line:#dbe7eb;--shadow:0 26px 70px rgba(16,47,65,.13)}
*{box-sizing:border-box}body{min-height:100vh;background:var(--paper);color:var(--ink);font-family:Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif}a{color:#0a7481;text-decoration:none}a:hover{text-decoration:underline}.muted,.text-muted{color:var(--muted)!important}.eyebrow{text-transform:uppercase;letter-spacing:.16em;font-size:.72rem;font-weight:800;color:#087f82}.auth-shell{min-height:calc(100vh - 70px);display:grid;place-items:center;padding:36px 16px;position:relative;overflow:hidden;background:radial-gradient(circle at 10% 20%,#ccefeb 0,transparent 34%),radial-gradient(circle at 93% 85%,#d6e3f9 0,transparent 37%),linear-gradient(135deg,#eef8f6,#f5f7fb)}.auth-ambient{position:absolute;width:36vw;height:36vw;max-width:500px;max-height:500px;border-radius:50%;border:1px solid #a2dad5;top:-25%;right:-8%;opacity:.55}.auth-card{width:min(100%,480px);background:#fff;border:1px solid rgba(224,236,239,.9);border-radius:28px;box-shadow:var(--shadow);padding:38px;position:relative;z-index:1}.auth-card-wide{width:min(100%,650px)}.auth-card h1{font-size:clamp(1.8rem,4vw,2.35rem);font-weight:800;line-height:1.15;letter-spacing:-.04em;margin:12px 0}.auth-logo{margin-bottom:24px}.auth-logo img{width:104px;height:72px;object-fit:contain;object-position:left}.auth-switch{text-align:center;margin:22px 0 0;color:var(--muted)}.form-label{font-size:.91rem;font-weight:700;color:#30415b}.form-control,.form-select{border-color:#d4e0e7;border-radius:12px;min-height:44px}.form-control:focus,.form-select:focus{border-color:var(--teal);box-shadow:0 0 0 .2rem rgba(0,169,143,.15)}.btn{border-radius:12px;font-weight:700}.btn-primary{background:#0c727e;border-color:#0c727e}.btn-primary:hover,.btn-primary:focus{background:#095b65;border-color:#095b65}.btn-outline-primary{color:#0c727e;border-color:#0c727e}.btn-outline-primary:hover{background:#0c727e;border-color:#0c727e}.notice{padding:13px 16px;border-radius:12px;margin:16px 0;font-weight:600}.notice-success{background:#e4f7ed;color:#176044;border:1px solid #bee6d1}.notice-error{background:#fff0ed;color:#9a3c32;border:1px solid #f2cbc6}.large-icon{font-size:3rem;color:var(--sea);margin-bottom:16px}.footer{display:flex;justify-content:space-between;gap:18px;font-size:.78rem;color:#7c8b99}.site-nav{background:#fff;border-bottom:1px solid var(--line)}.site-nav nav a,.nav-logout{font-weight:700;font-size:.9rem;color:#465b6d}.nav-logout{border:0;background:none;padding:0}.brand{display:inline-flex;align-items:center;gap:10px;color:#142a3b;font-weight:800;font-size:1.08rem;white-space:nowrap}.brand:hover{text-decoration:none}.brand-accent{color:#0b958f}.brand-mark{display:grid;place-items:center;width:34px;height:34px;background:linear-gradient(135deg,#0b717b,#00b699);border-radius:10px;color:white}.page-shell{padding:38px 0 70px}.page-title{font-weight:800;letter-spacing:-.04em;font-size:clamp(1.9rem,4vw,2.8rem)}.page-lead{color:var(--muted);max-width:650px}.panel,.metric-card,.sidebar-card{background:#fff;border:1px solid var(--line);border-radius:20px;box-shadow:0 10px 36px rgba(25,69,82,.04)}.panel{padding:28px}.metric-card{padding:22px;height:100%}.metric-label{color:var(--muted);font-size:.88rem;font-weight:700}.metric-value{font-size:1.65rem;font-weight:800;letter-spacing:-.04em}.metric-icon{width:38px;height:38px;border-radius:12px;background:#e2f7f4;color:#078378;display:grid;place-items:center;font-weight:800}.summary-box{background:linear-gradient(125deg,#073947,#126f79);color:white;border-radius:22px;padding:28px}.summary-box p{color:#d4ecec}.sidebar-card{padding:24px}.wizard-progress{height:10px;border-radius:10px;background:#e4eff0;overflow:hidden}.wizard-progress span{display:block;height:100%;background:linear-gradient(90deg,#0f7d80,#07b89a);border-radius:10px}.wizard-step{font-size:.8rem;color:var(--sea);font-weight:800}.wizard-card{background:#fff;border:1px solid var(--line);border-radius:24px;padding:30px;box-shadow:var(--shadow)}.entry-card{border:1px solid var(--line);border-radius:16px;padding:18px;background:#fbfdfd}.section-heading{font-size:1.15rem;font-weight:800}.table-shell{overflow-x:auto}.table th{color:#68788a;font-size:.78rem;text-transform:uppercase;letter-spacing:.08em}.pill{background:#e4f7ef;color:#0b7450;border-radius:100px;padding:6px 10px;font-size:.75rem;font-weight:700}.pill-pending{background:#fff2d7;color:#906012}.form-check-input:checked{background-color:#0c727e;border-color:#0c727e}body[data-bs-theme=dark]{--ink:#eaf5f5;--muted:#a9bec8;--paper:#10212c;--line:#2b4754;background:#10212c;color:#eaf5f5}body[data-bs-theme=dark] .panel,body[data-bs-theme=dark] .metric-card,body[data-bs-theme=dark] .site-nav,body[data-bs-theme=dark] .wizard-card{background:#19313f;color:#eaf5f5}body[data-bs-theme=dark] .entry-card{background:#1c3744}body[data-bs-theme=dark] .form-label{color:#d9e7ed}
@media(max-width:720px){.auth-card{padding:26px 22px;border-radius:22px}.site-nav .container{align-items:flex-start!important;flex-direction:column}.site-nav nav{gap:10px 18px!important}.footer{flex-direction:column}.page-shell{padding-top:26px}.panel,.wizard-card{padding:20px}}
.wizard-progress-native{display:block;width:100%;height:10px;border:0;border-radius:10px;overflow:hidden;background:#e4eff0}.wizard-progress-native::-webkit-progress-bar{background:#e4eff0}.wizard-progress-native::-webkit-progress-value{background:linear-gradient(90deg,#0f7d80,#07b89a)}.wizard-progress-native::-moz-progress-bar{background:#07b89a}
body[data-bs-theme=dark] .auth-card{background:#19313f;border-color:#35505b;color:#eaf5f5}body[data-bs-theme=dark] .auth-card h1{color:#f0f8f8}body[data-bs-theme=dark] .auth-card .muted,body[data-bs-theme=dark] .auth-switch{color:#b8cbd2!important}body[data-bs-theme=dark] .auth-card .form-label{color:#e5f2f3}
body[data-bs-theme=dark] a{color:#72ddd3}body[data-bs-theme=dark] .eyebrow{color:#5bdfd1}body[data-bs-theme=dark] .auth-card a{color:#7be1d7}

/* UX-5: operational entities and forms */
.entity-page .container{max-width:1480px}.entity-list-header{display:flex;justify-content:space-between;align-items:end;gap:2rem;margin:1rem 0 1.5rem}.entity-header-actions{display:flex;flex-wrap:wrap;gap:.65rem}.entity-summary-strip{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));background:#fff;border:1px solid var(--line);border-radius:20px;margin:1rem 0 1.5rem;box-shadow:0 8px 28px rgba(25,69,82,.04)}.entity-summary-item{padding:1.15rem 1.35rem;min-width:0}.entity-summary-item+.entity-summary-item{border-left:1px solid var(--line)}.entity-summary-item span,.entity-summary-item small{display:block;color:var(--muted);font-size:.78rem;font-weight:700}.entity-summary-item strong{display:block;font-size:clamp(1.08rem,2vw,1.45rem);line-height:1.25;margin:.25rem 0;overflow-wrap:anywhere}.entity-browser{padding:0;overflow:visible}.entity-browser-head,.section-header{display:flex;align-items:center;justify-content:space-between;gap:1rem}.entity-browser-head{padding:1.25rem 1.4rem;border-bottom:1px solid var(--line)}.entity-filter-bar{display:grid;grid-template-columns:minmax(260px,1fr) repeat(3,minmax(145px,.28fr));gap:.65rem;padding:1rem 1.4rem;background:#f7fafb;border-bottom:1px solid var(--line)}.entity-filter-bar-wide{grid-template-columns:minmax(240px,1.4fr) repeat(4,minmax(135px,.6fr))}.filter-search{position:relative}.filter-search i{position:absolute;left:.9rem;top:50%;transform:translateY(-50%);color:var(--muted)}.filter-search .form-control{padding-left:2.45rem}.entity-compact-row{display:grid;grid-template-columns:minmax(230px,1.55fr) minmax(140px,.75fr) minmax(155px,.75fr) minmax(145px,.7fr) auto;gap:1.15rem;align-items:center;padding:1rem 1.35rem;border-bottom:1px solid var(--line)}.entity-compact-row:last-of-type{border-bottom:0}.entity-compact-row:hover{background:#fbfdfd}.entity-main{display:flex;align-items:center;gap:.85rem;min-width:0}.entity-icon,.activity-icon{width:40px;height:40px;border-radius:12px;background:#e4f5f3;color:#087d78;display:grid;place-items:center;flex:0 0 auto}.entity-name{display:block;font-weight:800;color:var(--ink);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.entity-meta,.entity-value span,.entity-secondary small,.entity-loan-terms span{display:block;color:var(--muted);font-size:.8rem}.entity-value strong{display:block;font-size:1.02rem}.entity-secondary{display:grid;gap:.3rem}.entity-actions{display:flex;align-items:center;justify-content:flex-end;gap:.45rem}.entity-utilization{font-size:.76rem}.entity-utilization .budget-progress{margin-top:.35rem}.entity-loan-terms{display:grid;gap:.3rem}.entity-no-results{padding:2rem;text-align:center;color:var(--muted)}.status-badge{display:inline-flex;width:max-content;align-items:center;padding:.3rem .58rem;border-radius:999px;background:#edf2f5;color:#536876;font-size:.72rem;font-weight:800}.status-activo,.status-pagada,.status-pagado,.status-bajo{background:#dff6eb;color:#14734e}.status-mora,.status-vencida,.status-muy_alto{background:#fde5e5;color:#a13940}.status-parcial,.status-moderado,.status-alto,.status-pendiente{background:#fff2d7;color:#8a5b0d}.status-archivado,.status-cancelado{background:#edf0f3;color:#607080}.entity-empty-state{margin:1rem 0 1.5rem}.entity-empty-state i{display:block;font-size:2rem;color:var(--sea);margin-bottom:.75rem}.entity-empty-state h2{font-size:1.25rem;font-weight:800}.entity-empty-state p{max-width:480px;margin:.35rem auto 1rem}.form-shell{max-width:1040px;margin-inline:auto}.form-shell-header{padding-bottom:1.25rem;border-bottom:1px solid var(--line);margin-bottom:1.25rem}.form-section-block{border:0;padding:0;margin:0 0 1.4rem}.form-section-block+ .form-section-block{border-top:1px solid var(--line);padding-top:1.4rem}.form-section-block legend{font-size:1rem;font-weight:800;margin-bottom:1rem}.form-section-block legend>span{display:inline-grid;place-items:center;width:28px;height:28px;margin-right:.5rem;border-radius:50%;background:#e4f5f3;color:#087d78;font-size:.8rem}.advanced-options{border:1px solid var(--line);border-radius:14px;padding:.85rem 1rem}.advanced-options summary{display:flex;justify-content:space-between;gap:1rem;align-items:center;font-weight:800}.advanced-options summary small{font-weight:500;color:var(--muted)}.advanced-options[open] summary{padding-bottom:.75rem;border-bottom:1px solid var(--line)}.form-actions,.form-step-actions{display:flex;justify-content:flex-end;gap:.65rem;margin-top:1.25rem}.form-stepper{display:grid;grid-template-columns:repeat(3,1fr);gap:.5rem;margin:0 0 1.5rem}.form-stepper button{border:0;background:#edf3f4;color:#5c6d79;border-radius:12px;padding:.75rem;font-weight:800;text-align:left}.form-stepper button span{display:inline-grid;place-items:center;width:25px;height:25px;border-radius:50%;background:#fff;margin-right:.4rem}.form-stepper button.is-active{background:#0c727e;color:#fff}.form-review-note{background:#eef7f6;border-radius:12px;padding:.85rem 1rem}.back-link{display:inline-flex;align-items:center;gap:.35rem;font-weight:700}.detail-hero{display:flex;justify-content:space-between;align-items:end;gap:2rem;background:linear-gradient(120deg,#073947,#126f79);color:#fff;padding:1.75rem 2rem;border-radius:22px}.detail-hero h1{font-size:clamp(1.65rem,4vw,2.45rem);font-weight:800;margin:.35rem 0}.detail-hero .eyebrow{color:#83e4d7}.detail-meta{display:flex;align-items:center;gap:.55rem;flex-wrap:wrap;color:#d7eeee}.detail-hero-value{text-align:right}.detail-hero-value span,.detail-hero-value small{display:block;color:#d7eeee}.detail-hero-value strong{display:block;font-size:clamp(1.65rem,4vw,2.4rem);line-height:1.15}.detail-action-bar{display:flex;justify-content:flex-end;gap:.6rem;flex-wrap:wrap;margin:1rem 0}.detail-summary{margin-bottom:0}.detail-grid{display:grid;grid-template-columns:minmax(0,1.65fr) minmax(280px,.75fr);gap:1.5rem;align-items:start}.filter-disclosure{margin:1rem 0;border:1px solid var(--line);border-radius:12px;padding:.8rem 1rem}.filter-disclosure summary{font-weight:800}.entity-filter-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.65rem}.recent-activity-list{margin-top:.5rem}.recent-activity-item{display:grid;grid-template-columns:40px minmax(0,1fr) auto;gap:.8rem;align-items:center;padding:.85rem 0;border-bottom:1px solid var(--line)}.recent-activity-item:last-child{border-bottom:0}.recent-activity-item small{display:block;color:var(--muted);font-size:.78rem;margin-top:.15rem}.recent-activity-list.compact .recent-activity-item{grid-template-columns:34px minmax(0,1fr) auto}.cycle-overview{display:flex;justify-content:space-between;align-items:center;gap:2rem}.cycle-facts{display:grid;grid-template-columns:repeat(4,minmax(120px,1fr));gap:1.5rem}.cycle-facts span{color:var(--muted);font-size:.78rem}.cycle-facts strong{display:block;color:var(--ink);font-size:.95rem}.activity-summary{display:flex;justify-content:space-between;gap:1rem;padding:.8rem 0;border-bottom:1px solid var(--line)}.activity-summary span{color:var(--muted);font-size:.8rem}.operational-tools>summary{display:flex;align-items:center;justify-content:space-between}.loan-progress{height:12px;margin:.9rem 0}.loan-progress-labels{display:flex;justify-content:space-between;color:var(--muted);font-size:.8rem}.next-payment-callout{display:flex;align-items:center;gap:1rem;padding:1rem 1.2rem;background:#eef7f6;border:1px solid #cce5e2;border-radius:16px}.next-payment-callout div{flex:1}.next-payment-callout div span,.next-payment-callout div strong{display:block}.payment-type-picker,.strategy-picker{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.75rem}.payment-type-picker input,.strategy-picker input{position:absolute;opacity:0}.payment-type-picker label>span,.strategy-picker label>span{display:flex;flex-direction:column;gap:.25rem;height:100%;padding:1rem;border:1px solid var(--line);border-radius:14px;cursor:pointer}.payment-type-picker label>span i,.strategy-picker label>span i{font-size:1.2rem;color:#0c727e}.payment-type-picker label>span small,.strategy-picker label>span small{color:var(--muted)}.payment-type-picker input:checked+span,.strategy-picker input:checked+span{border-color:#0c727e;box-shadow:0 0 0 2px rgba(12,114,126,.12);background:#f0f9f8}.simulation-result{display:grid;gap:.2rem;background:#eef7f6;border-radius:14px;padding:1rem;margin-top:1rem}.simulation-result strong{font-size:1.35rem}.simulation-result small{color:var(--muted)}.responsive-stack-table td{white-space:nowrap}
body[data-bs-theme=dark] .entity-summary-strip,body[data-bs-theme=dark] .entity-filter-bar,body[data-bs-theme=dark] .entity-compact-row:hover{background:#19313f}body[data-bs-theme=dark] .form-stepper button{background:#244451;color:#d4e8ec}body[data-bs-theme=dark] .form-stepper button.is-active{background:#0e7d86;color:#fff}body[data-bs-theme=dark] .next-payment-callout,body[data-bs-theme=dark] .simulation-result,body[data-bs-theme=dark] .payment-type-picker input:checked+span,body[data-bs-theme=dark] .strategy-picker input:checked+span{background:#1d3d48}body[data-bs-theme=dark] .cycle-facts strong{color:var(--ink)}
@media(max-width:1199.98px){.entity-compact-row{grid-template-columns:minmax(220px,1.4fr) minmax(130px,.7fr) minmax(145px,.7fr) auto}.entity-utilization,.entity-loan-terms{display:none}.entity-filter-bar-wide{grid-template-columns:minmax(220px,1fr) repeat(2,minmax(135px,.55fr))}.entity-filter-bar-wide select:nth-last-child(-n+2){grid-row:2}.cycle-facts{grid-template-columns:repeat(2,minmax(130px,1fr))}}
@media(max-width:991.98px){.entity-filter-bar,.entity-filter-bar-wide{grid-template-columns:repeat(2,minmax(0,1fr))}.entity-filter-bar .filter-search{grid-column:1/-1}.entity-filter-bar-wide select:nth-last-child(-n+2){grid-row:auto}}
@media(max-width:767.98px){.entity-list-header{align-items:flex-start;flex-direction:column}.entity-header-actions{width:100%}.entity-header-actions .btn{flex:1}.entity-summary-strip{grid-template-columns:repeat(2,minmax(0,1fr));overflow:hidden}.entity-summary-item:nth-child(odd){border-left:0}.entity-summary-item:nth-child(n+3){border-top:1px solid var(--line)}.entity-filter-bar,.entity-filter-bar-wide{grid-template-columns:1fr;padding:.85rem}.entity-filter-bar-wide select:nth-last-child(-n+2){grid-row:auto}.entity-compact-row{grid-template-columns:minmax(0,1fr) auto;gap:.75rem;padding:1rem}.entity-main{grid-column:1}.entity-value{grid-column:2;grid-row:1;text-align:right}.entity-secondary{grid-column:1}.entity-actions{grid-column:2;justify-content:flex-end}.entity-actions>.btn-primary{display:none!important}.entity-icon{display:none}.entity-meta{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:58vw}.detail-hero{align-items:flex-start;flex-direction:column;padding:1.35rem}.detail-hero-value{text-align:left}.detail-action-bar{justify-content:stretch}.detail-action-bar>.btn{flex:1}.detail-grid{grid-template-columns:1fr}.entity-filter-grid{grid-template-columns:1fr}.cycle-overview{align-items:flex-start;flex-direction:column}.cycle-facts{width:100%;gap:1rem}.payment-type-picker,.strategy-picker{grid-template-columns:1fr}.advanced-options summary{align-items:flex-start;flex-direction:column;gap:.25rem}.responsive-stack-table table,.responsive-stack-table tbody,.responsive-stack-table tr,.responsive-stack-table td{display:block;width:100%}.responsive-stack-table thead{display:none}.responsive-stack-table tr{border:1px solid var(--line);border-radius:12px;padding:.5rem .85rem;margin-bottom:.75rem}.responsive-stack-table td{display:flex;justify-content:space-between;gap:1rem;border:0;padding:.35rem 0;white-space:normal}.responsive-stack-table td::before{content:attr(data-label);font-weight:700;color:var(--muted)}.form-stepper button{font-size:.78rem;padding:.6rem}.form-stepper button span{display:none}.recent-activity-item{grid-template-columns:34px minmax(0,1fr);}.recent-activity-item>strong,.recent-activity-item>.text-end{grid-column:2;text-align:left!important}.panel{overflow-wrap:anywhere}}
body[data-bs-theme=dark] .site-nav .brand,body[data-bs-theme=dark] .site-nav nav a,body[data-bs-theme=dark] .site-nav .nav-logout{color:#e4f2f2}body[data-bs-theme=dark] .sidebar-card{background:#19313f;color:#eaf5f5;border-color:#2b4754}
.quick-bar{background:#fff;border-bottom:1px solid var(--line);position:sticky;top:0;z-index:20}.quick-action{display:inline-flex;align-items:center;white-space:nowrap;border:1px solid var(--line);border-radius:999px;padding:7px 13px;background:#f7fbfb;color:#294b58;font-size:.83rem;font-weight:800}.quick-action:hover{text-decoration:none;background:#edf6f5}.quick-action.income{color:#08795c}.quick-action.expense{color:#a03c42}.quick-action.transfer{color:#235fa6}.account-card{border-top:4px solid var(--account-color,#0c727e)}.amount-positive{color:#08795c}.amount-negative{color:#a03c42}.amount-neutral{color:#235fa6}.status-anulado{opacity:.58;text-decoration:line-through}.mobile-movement{display:none}.chart-box{min-height:280px}.form-section{scroll-margin-top:80px}.empty-state{padding:42px 20px;text-align:center;color:var(--muted);border:1px dashed var(--line);border-radius:16px}.badge-soft{display:inline-flex;padding:5px 9px;border-radius:999px;background:#edf4f5;color:#3c5963;font-size:.75rem;font-weight:700}.danger-inline{border-left:3px solid #c35b5b;padding-left:12px}.pagination .page-link{color:#0c727e}.finance-tabs{display:flex;gap:8px;overflow:auto;padding-bottom:4px}.finance-tabs a{white-space:nowrap;padding:8px 12px;border-radius:10px;background:#eaf3f4;font-weight:700}.finance-tabs a:hover{text-decoration:none;background:#dcebed}body[data-bs-theme=dark] .quick-bar,body[data-bs-theme=dark] .quick-action{background:#19313f;color:#d9eeee}body[data-bs-theme=dark] .finance-tabs a{background:#244451;color:#bce7e2}
@media(max-width:767px){.desktop-table{display:none}.mobile-movement{display:block}.metric-value{font-size:1.35rem}.quick-bar .container{padding-left:12px;padding-right:12px}.page-shell{padding-bottom:45px}}

/* UX-6 · progreso financiero */
.progress-page .container{max-width:1480px}.progress-layout{display:grid;grid-template-columns:minmax(0,1.65fr) minmax(290px,.65fr);gap:1.5rem;align-items:start}.progress-sidebar{min-width:0}.progress-summary .entity-summary-item span i{margin-right:.25rem}.progress-compact-list{display:grid}.progress-compact-row{display:grid;grid-template-columns:minmax(220px,1.35fr) minmax(135px,.6fr) minmax(220px,1fr) minmax(145px,.65fr) auto;gap:1rem;align-items:center;padding:1rem 1.35rem;border-bottom:1px solid var(--line)}.progress-compact-row:last-child{border-bottom:0}.progress-row-value span,.progress-row-value small,.progress-row-goal span,.progress-row-goal small,.progress-row-status small,.investment-position-row>div>span,.investment-position-row>div>small,.goal-row-date span,.goal-row-date small,.goal-row-state small{display:block;color:var(--muted);font-size:.78rem}.progress-row-status{display:grid;gap:.35rem}.growth-trend,.net-worth-chart{position:relative;height:250px}.context-links{display:flex;gap:.7rem 1.2rem;flex-wrap:wrap}.context-links a{display:inline-flex;align-items:center;font-weight:700}.operational-tools>summary small{font-weight:500}.simple-money-form .form-label{margin-top:.35rem}.goal-list,.investment-position-list{display:grid}.goal-progress-row{display:grid;grid-template-columns:minmax(210px,1fr) minmax(250px,1.25fr) minmax(145px,.65fr) minmax(140px,.6fr) auto;gap:1rem;align-items:center;padding:1.05rem 1.35rem;border-bottom:1px solid var(--line)}.goal-row-main{display:flex;gap:.7rem;align-items:center;min-width:0}.goal-priority{display:grid;place-items:center;min-width:48px;padding:.35rem .5rem;border-radius:10px;background:#edf2f5;color:#536876;font-size:.7rem;font-weight:800}.priority-alta{background:#fff0ed;color:#9a3c32}.priority-media{background:#fff2d7;color:#8a5b0d}.priority-baja{background:#e5f5ef;color:#14734e}.goal-row-progress small{display:block;color:var(--muted);font-size:.78rem;margin-top:.3rem}.goal-row-state{display:grid;gap:.35rem}.goal-detail-progress{margin:1rem 0}.goal-detail-progress .budget-progress{margin:.8rem 0 .35rem}.emergency-hero,.net-worth-hero{display:flex;justify-content:space-between;align-items:center;gap:2rem;background:linear-gradient(125deg,#073947,#126f79);color:#fff;border-radius:24px;padding:2rem}.emergency-hero h1,.net-worth-hero h1{font-size:clamp(1.8rem,4vw,2.75rem);font-weight:800;margin:.4rem 0}.emergency-hero .eyebrow,.net-worth-hero .eyebrow{color:#8ce5d9}.emergency-hero p{color:#d7eeee}.emergency-coverage{display:flex;align-items:baseline;gap:.55rem}.emergency-coverage strong{font-size:2.5rem}.emergency-complete{display:inline-flex;align-items:center;gap:.4rem;margin-top:1rem;padding:.45rem .7rem;border-radius:999px;background:rgba(255,255,255,.14);font-weight:800}.emergency-ring{--progress:0;width:142px;height:142px;flex:0 0 auto;display:grid;place-items:center;border-radius:50%;background:conic-gradient(#63e2c5 calc(var(--progress)*1%),rgba(255,255,255,.16) 0);position:relative}.emergency-ring:before{content:"";position:absolute;inset:13px;border-radius:50%;background:#0b5360}.emergency-ring span{position:relative;font-size:1.55rem;font-weight:800}.emergency-facts{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));background:#fff;border:1px solid var(--line);border-radius:18px;margin-top:1rem}.emergency-facts>div{padding:1rem 1.25rem}.emergency-facts>div+div{border-left:1px solid var(--line)}.emergency-facts span,.emergency-facts small{display:block;color:var(--muted);font-size:.78rem}.emergency-facts strong{display:block;font-size:1.15rem;margin:.2rem 0}.fund-milestones{height:52px;position:relative;margin:.5rem 1.4rem 0}.fund-progress-track{position:absolute;top:9px;left:0;right:0;height:8px;border-radius:99px;background:#e5edef;overflow:hidden}.fund-progress-track span{display:block;height:100%;background:#18a875}.fund-milestone{position:absolute;top:1px;transform:translateX(-50%);display:grid;justify-items:center}.fund-milestone i{width:20px;height:20px;border:4px solid #e5edef;background:#fff;border-radius:50%}.fund-milestone.is-reached i{border-color:#18a875}.fund-milestone small{white-space:nowrap;margin-top:.25rem;color:var(--muted)}.investment-summary{display:grid;grid-template-columns:1.35fr repeat(4,1fr);border:1px solid var(--line);border-radius:20px;background:#fff;overflow:hidden}.investment-summary>div{padding:1.15rem 1.25rem}.investment-summary>div+div{border-left:1px solid var(--line)}.investment-summary span,.investment-summary small{display:block;color:var(--muted);font-size:.78rem}.investment-summary strong{display:block;font-size:1.15rem;margin:.2rem 0}.investment-summary-primary{background:#f0f8f7}.investment-summary-primary strong{font-size:1.55rem}.attribution-strip{display:flex;align-items:center;justify-content:center;gap:1.4rem;padding:1rem 1.25rem;margin-top:1rem;border:1px solid #cae3df;background:#f0f8f7;border-radius:16px}.attribution-strip>div{text-align:center}.attribution-strip span{display:block;color:var(--muted);font-size:.78rem}.attribution-strip strong{font-size:1.1rem}.broker-cash-callout{display:flex;align-items:center;gap:1rem;padding:1rem 1.25rem;margin-top:1rem;border:1px solid var(--line);border-radius:16px;background:#fff}.broker-cash-callout div{flex:1}.broker-cash-callout span,.broker-cash-callout small{display:block}.broker-cash-callout small{color:var(--muted)}.investment-position-row{display:grid;grid-template-columns:minmax(210px,1.15fr) repeat(4,minmax(120px,.7fr)) auto;gap:1rem;align-items:center;padding:1rem 1.35rem;border-bottom:1px solid var(--line)}.investment-position-row>div>strong{display:block}.broker-cash-form{display:grid;grid-template-columns:minmax(150px,.8fr) minmax(180px,1fr) 120px 140px auto;gap:.65rem;align-items:center;padding:.75rem 0;border-bottom:1px solid var(--line)}.price-quality{display:flex;align-items:center;gap:.6rem;padding:.7rem 1rem;margin-top:1rem;border:1px solid #ead9ae;background:#fff8e7;border-radius:12px;color:#76520f}.attribution-detail{margin-top:1rem}.investment-operation-form+.investment-operation-form{border-top:1px solid var(--line);margin-top:1rem;padding-top:.4rem}.net-worth-hero{align-items:flex-end}.net-worth-total{display:block;font-size:clamp(2.2rem,5vw,3.8rem);letter-spacing:-.05em}.net-worth-formula{display:flex;align-items:center;gap:.75rem;margin-top:1rem;flex-wrap:wrap}.net-worth-formula span{font-weight:800}.net-worth-formula small{display:block;color:#cce6e6;font-weight:500}.net-worth-formula i{font-style:normal;color:#8ce5d9;font-size:1.2rem}.net-worth-change{margin:.85rem 0 0!important;font-weight:800}.net-worth-layout{display:grid;grid-template-columns:1fr 1fr;gap:1.5rem}.breakdown-group{border-top:1px solid var(--line);padding:.8rem 0}.breakdown-group summary{display:flex;justify-content:space-between;gap:1rem;font-weight:800}.breakdown-item{display:flex;justify-content:space-between;gap:1rem;padding:.55rem 0 .25rem 1rem}.breakdown-item span,.breakdown-item small{display:block}.breakdown-item small{color:var(--muted);font-size:.75rem}
body[data-bs-theme=dark] .emergency-facts,body[data-bs-theme=dark] .investment-summary,body[data-bs-theme=dark] .broker-cash-callout{background:#19313f}body[data-bs-theme=dark] .investment-summary-primary,body[data-bs-theme=dark] .attribution-strip{background:#1d3d48}body[data-bs-theme=dark] .price-quality{background:#3a321f;color:#f4d990;border-color:#64552f}
@media(max-width:1199.98px){.progress-layout{grid-template-columns:1fr}.progress-sidebar{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem}.progress-sidebar .panel{margin-top:0!important}.progress-compact-row{grid-template-columns:minmax(200px,1fr) minmax(130px,.6fr) minmax(200px,.9fr) auto}.progress-row-status{display:none}.goal-progress-row{grid-template-columns:minmax(200px,1fr) minmax(230px,1.1fr) minmax(140px,.65fr) auto}.goal-row-state{display:none}.investment-summary{grid-template-columns:repeat(3,1fr)}.investment-summary>div:nth-child(4){border-left:0;border-top:1px solid var(--line)}.investment-summary>div:nth-child(n+4){border-top:1px solid var(--line)}.investment-position-row{grid-template-columns:minmax(200px,1fr) repeat(3,minmax(120px,.65fr)) auto}.investment-position-row>div:nth-child(2){display:none}}

/* UX-6: los filtros del panel principal deben caber dentro de la columna de contenido. */
.progress-layout .entity-filter-bar{grid-template-columns:repeat(2,minmax(0,1fr))}
.progress-layout .filter-search{grid-column:1/-1}
@media(max-width:800px){.progress-layout .entity-filter-bar{grid-template-columns:1fr}.progress-layout .filter-search{grid-column:auto}}
@media(max-width:800px){.progress-sidebar{display:block}.progress-sidebar .panel{margin-top:1rem!important}.progress-compact-row,.goal-progress-row,.investment-position-row{grid-template-columns:minmax(0,1fr) auto;padding:1rem;gap:.75rem}.progress-row-value,.investment-position-row>div:nth-child(4){grid-column:2;grid-row:1;text-align:right}.progress-row-goal,.goal-row-progress{grid-column:1/-1}.progress-row-status,.progress-compact-row>.btn,.goal-row-date,.goal-row-state,.goal-progress-row>.btn,.investment-position-row>div:nth-child(2),.investment-position-row>div:nth-child(3),.investment-position-row>.btn{display:none}.goal-row-main,.investment-position-row .entity-main{grid-column:1}.goal-row-progress{margin-top:.2rem}.emergency-hero,.net-worth-hero{align-items:flex-start;flex-direction:column;padding:1.35rem}.emergency-ring{width:110px;height:110px;position:absolute;right:2rem;top:12rem}.emergency-facts{grid-template-columns:repeat(2,minmax(0,1fr));overflow:hidden}.emergency-facts>div:nth-child(odd){border-left:0}.emergency-facts>div:nth-child(n+3){border-top:1px solid var(--line)}.fund-milestone small{font-size:.65rem}.investment-summary{grid-template-columns:repeat(2,1fr)}.investment-summary>div{border-top:1px solid var(--line)}.investment-summary>div:nth-child(odd){border-left:0}.investment-summary-primary{grid-column:1/-1;border-top:0!important}.attribution-strip{display:grid;grid-template-columns:1fr auto 1fr}.attribution-strip>div:last-child{grid-column:1/-1}.broker-cash-callout{align-items:flex-start;flex-wrap:wrap}.investment-position-row>div:nth-child(5){grid-column:2;grid-row:1;text-align:right}.broker-cash-form{grid-template-columns:1fr}.net-worth-layout{grid-template-columns:1fr}.net-worth-formula{gap:.5rem}.net-worth-formula span{font-size:.82rem}.net-worth-hero form{width:100%}.net-worth-hero form .btn{width:100%}.goal-filter-grid,.investment-filter-grid{grid-template-columns:1fr}.context-links{flex-direction:column}.growth-trend,.net-worth-chart{height:220px}}
.budget-hero{display:flex;align-items:end;justify-content:space-between;gap:24px}.budget-month-nav{display:flex;gap:8px}.budget-progress{height:9px;background:#e6eef0;border-radius:999px;overflow:hidden;min-width:110px}.budget-progress span{display:block;height:100%;border-radius:999px}.status-saludable{background:#18a875}.status-atencion{background:#e6a93d}.status-riesgo{background:#e2764a}.status-excedido{background:#c5454e}.budget-state{display:inline-flex;align-items:center;padding:6px 11px;border-radius:999px;font-size:.78rem;font-weight:800}.state-borrador{background:#edf2f5;color:#506675}.state-activo{background:#dff6eb;color:#14734e}.state-cerrado{background:#e7e8f5;color:#555a8e}.budget-mobile{display:none}details>summary{cursor:pointer;list-style:none}details>summary::-webkit-details-marker{display:none}
body[data-bs-theme=dark] .budget-progress{background:#2b4754}
@media(max-width:767px){.budget-hero{align-items:flex-start;flex-direction:column}.budget-month-nav{width:100%;justify-content:space-between}.budget-mobile{display:block}}
.dashboard-chart{min-height:280px;position:relative}.dashboard-chart canvas{max-height:280px}.info-dot{border:1px solid currentColor;border-radius:50%;background:transparent;color:inherit;width:1.25rem;height:1.25rem;line-height:1;font-size:.75rem;padding:0}.dashboard-page .metric-card{height:100%}.dashboard-page details summary{cursor:pointer}.dashboard-page .entry-card{text-transform:none}
@media(max-width:767.98px){.dashboard-page .dashboard-priority{order:-1}.dashboard-chart{min-height:230px}.dashboard-page .metric-value{font-size:1.35rem}.dashboard-page .panel{padding:1rem}}
.score-number{font-size:2.35rem;font-weight:800;line-height:1;color:#0b958f}.score-number small{font-size:1rem;font-weight:600;color:var(--muted)}
.score-ring{--score:0;width:210px;height:210px;margin:auto;border-radius:50%;display:grid;place-items:center;background:conic-gradient(#0b958f calc(var(--score)*1%),rgba(96,113,129,.18) 0);position:relative}.score-ring::before{content:"";position:absolute;inset:18px;border-radius:50%;background:var(--paper)}.score-ring>div{position:relative;display:flex;flex-direction:column;line-height:1}.score-ring strong{font-size:3rem}.score-ring span{margin-top:.4rem;color:var(--muted)}body[data-bs-theme=dark] .score-ring::before{background:#19313f}
.mmf-confirm-dialog{width:min(92vw,500px);border:0;border-radius:20px;padding:1.5rem;box-shadow:0 28px 90px rgba(10,35,48,.32);color:var(--ink);background:#fff}.mmf-confirm-dialog::backdrop{background:rgba(8,30,42,.58);backdrop-filter:blur(2px)}.mmf-confirm-dialog h2{font-size:1.3rem;font-weight:800}.mmf-confirm-icon{width:46px;height:46px;display:grid;place-items:center;border-radius:14px;background:#fff2d7;color:#95620b;font-size:1.3rem;margin-bottom:1rem}.mmf-confirm-summary{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.6rem;margin-top:1rem}.mmf-confirm-summary span{padding:.65rem .75rem;background:#f2f6f7;border-radius:10px;overflow-wrap:anywhere}.mmf-confirm-summary small,.mmf-confirm-summary strong{display:block}.mmf-confirm-summary small{text-transform:capitalize;color:var(--muted)}body[data-bs-theme=dark] .mmf-confirm-dialog{background:#19313f;color:var(--ink)}body[data-bs-theme=dark] .mmf-confirm-summary span{background:#244451}

/* UX-5.1: searchable financial institution catalog */
.financial-institution-selector{position:relative}.institution-combobox{position:relative}.institution-combobox>i{position:absolute;left:.9rem;top:14px;color:var(--muted);z-index:1}.institution-combobox>.form-control{padding-left:2.45rem}.institution-options{position:absolute;z-index:1050;left:0;right:0;top:calc(100% + 5px);max-height:300px;overflow:auto;padding:.4rem;background:#fff;border:1px solid var(--line);border-radius:14px;box-shadow:0 18px 48px rgba(16,47,65,.18)}.institution-options button{display:flex;align-items:center;gap:.75rem;width:100%;padding:.7rem;border:0;border-radius:10px;background:transparent;text-align:left;color:var(--ink)}.institution-options button:hover,.institution-options button:focus{background:#eaf6f5;outline:0}.institution-options button[hidden]{display:none}.institution-options strong,.institution-options small{display:block}.institution-options small{color:var(--muted);font-size:.75rem}.institution-option-icon{width:36px;height:36px;display:grid;place-items:center;flex:0 0 auto;border-radius:10px;background:#e4f5f3;color:#087d78}.institution-option-icon img{width:28px;height:28px;object-fit:contain}.institution-custom[hidden]{display:none}body[data-bs-theme=dark] .institution-options{background:#19313f}body[data-bs-theme=dark] .institution-options button:hover,body[data-bs-theme=dark] .institution-options button:focus{background:#244451}@media(max-width:767.98px){.institution-options{max-height:45vh}.institution-options button{padding:.8rem .65rem}}

.entity-icon img{max-width:30px;max-height:30px;object-fit:contain}

/* UX-6: los filtros del panel principal deben caber dentro de la columna de contenido. */
.progress-layout .entity-filter-bar{grid-template-columns:repeat(2,minmax(0,1fr))}
.progress-layout .filter-search{grid-column:1/-1}
@media(max-width:800px){.progress-layout .entity-filter-bar{grid-template-columns:1fr}.progress-layout .filter-search{grid-column:auto}}
.goal-detail-progress .section-header>div{display:flex;align-items:baseline;gap:.35rem;flex-wrap:wrap}

/* UX-7 · efectivo físico integrado al ledger */
html,body{max-width:100%;overflow-x:hidden}
.cash-account-icon{background:#fff1d6;color:#94620c}.cash-balance-hero{background:linear-gradient(125deg,#4b3608,#9a690e)}.cash-reconciliation-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));border:1px solid var(--line);border-radius:14px;overflow:hidden}.cash-reconciliation-summary span{display:block;padding:.7rem .8rem;color:var(--muted);font-size:.75rem}.cash-reconciliation-summary span+span{border-left:1px solid var(--line)}.cash-reconciliation-summary strong{display:block;color:var(--ink);font-size:.92rem;margin-top:.2rem}.cash-reconciliation-history{border-top:1px solid var(--line);padding-top:1rem}.cash-reconciliation-history summary{font-weight:800;cursor:pointer}.cash-reconciliation-row{display:flex;justify-content:space-between;gap:1rem;padding:.65rem 0;border-bottom:1px solid var(--line)}.cash-reconciliation-row small{display:block;color:var(--muted)}[data-cash-hidden][hidden],[data-cash-purpose][hidden]{display:none!important}body[data-bs-theme=dark] .cash-account-icon{background:#493a1f;color:#f5cd79}
@media(max-width:767.98px){.cash-reconciliation-summary{grid-template-columns:1fr}.cash-reconciliation-summary span+span{border-left:0;border-top:1px solid var(--line)}.cash-balance-hero .detail-hero-value{text-align:left}}

/* UX-8 · actividad, historiales y auditoría legible */
.skip-link{position:fixed;z-index:2000;top:.5rem;left:.5rem;transform:translateY(-160%);padding:.65rem 1rem;border-radius:10px;background:#fff;color:#073947;box-shadow:0 8px 24px rgba(7,57,71,.25);font-weight:800}.skip-link:focus{transform:translateY(0)}
:where(a,button,input,select,textarea,summary,[tabindex]):focus-visible{outline:3px solid #f0aa2c!important;outline-offset:3px!important;box-shadow:none!important}
.activity-page .container{max-width:1180px}.history-page-header{display:flex;align-items:end;justify-content:space-between;gap:2rem;margin-bottom:1.5rem}.history-filter-panel{margin-bottom:1.5rem;border:1px solid var(--line);border-radius:18px;background:#fff;box-shadow:0 8px 28px rgba(25,69,82,.04)}.history-filter-panel>summary{display:flex;align-items:center;justify-content:space-between;gap:1rem;padding:1rem 1.25rem;font-weight:800}.history-filter-panel>summary span{display:flex;align-items:center;gap:.55rem}.history-filter-panel>summary small{color:var(--muted);font-weight:600}.history-filter-panel[open]>summary{border-bottom:1px solid var(--line)}.history-filter-grid,.admin-audit-filter-grid{display:grid;grid-template-columns:minmax(230px,1.5fr) repeat(3,minmax(145px,.7fr));gap:.8rem;padding:1rem 1.25rem}.admin-audit-filter-grid{grid-template-columns:repeat(3,minmax(180px,1fr))}.history-filter-grid label,.admin-audit-filter-grid label{display:block;margin-bottom:.35rem;color:#30415b;font-size:.78rem;font-weight:800}.history-filter-search{grid-column:span 2}.history-filter-actions{display:flex;align-items:end;gap:.4rem}.activity-results-summary{margin:.25rem 0 1.25rem;color:var(--muted);font-size:.88rem}.activity-timeline-group{margin:0 0 1.8rem}.activity-timeline-group>h2{margin:0 0 .8rem;font-size:.9rem;text-transform:uppercase;letter-spacing:.09em;color:#516779}.activity-timeline-list{position:relative;padding-left:1.2rem}.activity-timeline-list:before{content:"";position:absolute;top:.8rem;bottom:.8rem;left:1.2rem;width:2px;background:#d7e5e8}.activity-timeline-event{position:relative;display:grid;grid-template-columns:46px minmax(0,1fr);gap:1rem;padding:0 0 1rem}.activity-timeline-icon{position:relative;z-index:1;width:46px;height:46px;display:grid;place-items:center;border:5px solid var(--paper);border-radius:50%;background:#e4f5f3;color:#087d78;font-size:1rem}.activity-timeline-icon.activity-warning{background:#fff2d7;color:#8a5b0d}.activity-timeline-icon.activity-danger{background:#fde5e5;color:#a13940}.activity-timeline-content{min-width:0;padding:1rem 1.15rem;border:1px solid var(--line);border-radius:16px;background:#fff;box-shadow:0 7px 24px rgba(25,69,82,.035)}.activity-event-heading{display:flex;justify-content:space-between;gap:1rem;align-items:start}.activity-event-heading h3{margin:0;font-size:1rem;font-weight:800}.activity-event-heading p{margin:.25rem 0 0;color:var(--muted);overflow-wrap:anywhere}.activity-amount{white-space:nowrap;font-size:1rem}.activity-event-meta{display:flex;align-items:center;gap:.45rem .8rem;flex-wrap:wrap;margin-top:.7rem;color:var(--muted);font-size:.76rem}.status-success{background:#dff6eb;color:#14734e}.status-warning{background:#fff2d7;color:#8a5b0d}.status-danger{background:#fde5e5;color:#a13940}.activity-event-actions{display:flex;align-items:center;gap:1rem;margin-top:.4rem;font-size:.82rem;font-weight:700}.activity-detail-list,.activity-change-grid dl{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.7rem;margin:0}.activity-detail-list>div,.activity-change-grid dl>div{padding:.75rem;border-radius:12px;background:#f3f7f8;overflow-wrap:anywhere}.activity-detail-list dt,.activity-change-grid dt{color:var(--muted);font-size:.72rem}.activity-detail-list dd,.activity-change-grid dd{margin:.2rem 0 0;font-weight:700}.activity-change-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem;margin-top:1rem}.activity-change-grid h3{font-size:.9rem;font-weight:800}.activity-change-grid dl{grid-template-columns:1fr}.history-empty-state{padding:3rem 1.5rem;border:1px dashed #b9cdd2;border-radius:18px;background:#fff;text-align:center}.history-empty-icon{display:grid;place-items:center;width:54px;height:54px;margin:0 auto .8rem;border-radius:16px;background:#e4f5f3;color:#087d78;font-size:1.35rem}.history-empty-state h2{font-size:1.2rem;font-weight:800}.history-empty-state p{max-width:520px;margin:.4rem auto 1rem;color:var(--muted)}.history-pagination{display:flex;align-items:center;justify-content:space-between;gap:1rem;margin-top:1rem;padding:1rem 1.2rem;border:1px solid var(--line);border-radius:14px;background:#fff;color:var(--muted);font-size:.82rem}.history-pagination>div{display:flex;gap:.5rem}.admin-audit-table{padding:0}.admin-audit-table td small{display:block;color:var(--muted);font-size:.74rem}.admin-audit-table td{max-width:260px;overflow-wrap:anywhere}
body[data-bs-theme=dark] .history-filter-panel,body[data-bs-theme=dark] .activity-timeline-content,body[data-bs-theme=dark] .history-empty-state,body[data-bs-theme=dark] .history-pagination{background:#19313f}body[data-bs-theme=dark] .history-filter-grid label,body[data-bs-theme=dark] .admin-audit-filter-grid label{color:#d9e7ed}body[data-bs-theme=dark] .activity-detail-list>div,body[data-bs-theme=dark] .activity-change-grid dl>div{background:#244451}body[data-bs-theme=dark] .activity-timeline-icon{border-color:#10212c}
@media(max-width:991.98px){.history-filter-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.admin-audit-filter-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.history-filter-search{grid-column:1/-1}}
@media(max-width:767.98px){.history-page-header{align-items:flex-start;flex-direction:column;gap:1rem}.history-filter-panel>summary{align-items:flex-start;flex-direction:column}.history-filter-grid,.admin-audit-filter-grid{grid-template-columns:1fr;padding:.9rem}.history-filter-search{grid-column:auto}.history-filter-actions{align-items:stretch}.history-filter-actions .btn{flex:1}.activity-timeline-list{padding-left:0}.activity-timeline-list:before{left:20px}.activity-timeline-event{grid-template-columns:40px minmax(0,1fr);gap:.65rem}.activity-timeline-icon{width:40px;height:40px;border-width:4px}.activity-timeline-content{padding:.85rem}.activity-event-heading{display:block}.activity-amount{display:block;margin-top:.55rem}.activity-detail-list,.activity-change-grid{grid-template-columns:1fr}.history-pagination{align-items:flex-start;flex-direction:column}.history-pagination>div{width:100%}.history-pagination .btn{flex:1}.admin-audit-table .table-shell{overflow:visible}.admin-audit-table .table,.admin-audit-table .table tbody,.admin-audit-table .table tr,.admin-audit-table .table td{display:block;width:100%}.admin-audit-table .table thead{display:none}.admin-audit-table .table tr{padding:.75rem 0;border-bottom:1px solid var(--line)}.admin-audit-table .table tr:last-child{border-bottom:0}.admin-audit-table .table td{display:grid;grid-template-columns:minmax(82px,.42fr) minmax(0,1fr);gap:.65rem;max-width:none;padding:.35rem .85rem;border:0}.admin-audit-table .table td:before{content:attr(data-label);color:var(--muted);font-size:.7rem;font-weight:800;text-transform:uppercase;letter-spacing:.06em}.admin-audit-table .table td small{overflow-wrap:anywhere}.admin-audit-table .btn{justify-self:start}}

/* UX-8.2: compact activity, clear ledger actions, simplified capture forms. */
.activity-timeline-event{grid-template-columns:38px minmax(0,1fr);gap:.75rem;padding-bottom:.55rem}
.activity-timeline-icon{width:38px;height:38px;border-width:4px;font-size:.88rem}
.activity-timeline-content{padding:.65rem .85rem;border-radius:13px;box-shadow:none}
.activity-event-heading h3{font-size:.92rem}.activity-event-heading p{font-size:.8rem;margin-top:.12rem}
.activity-event-meta{margin-top:.35rem}.activity-event-actions{margin-top:.15rem;font-size:.76rem}
.activity-page .history-page-header{margin-bottom:1rem}.activity-page .history-filter-panel{margin-bottom:1rem}
.activity-page .activity-timeline-content{display:grid;grid-template-columns:minmax(0,1fr) auto;column-gap:1rem;align-items:center;padding:.55rem .75rem}
.activity-page .activity-event-heading{grid-column:1/-1}.activity-page .activity-event-meta{grid-column:1}.activity-page .activity-event-actions{grid-column:2;grid-row:2;justify-content:flex-end;margin:0;white-space:nowrap}
.movement-purpose{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:1rem;align-items:center}
.movement-purpose-actions{display:flex;gap:.5rem;flex-wrap:wrap;justify-content:flex-end}
.movement-purpose .advanced-options{grid-column:1/-1}
@media(max-width:767.98px){.activity-page .activity-timeline-content{display:block}.activity-page .activity-event-actions{white-space:normal;margin-top:.25rem}.movement-purpose{grid-template-columns:1fr}.movement-purpose-actions{justify-content:flex-start}.form-shell .form-actions{justify-content:stretch}.form-shell .form-actions .btn{flex:1}}

