:root{--bg:#f5f7fb;--card:#fff;--ink:#172033;--muted:#6f7a90;--line:#e5e9f1;--brand:#4f46e5;--brand2:#8b86ff;--nav:#12182a;--green:#147a45;--greenbg:#eaf8f0;--orange:#b66b13;--orangebg:#fff4df}
*{box-sizing:border-box}body{margin:0;font-family:Inter,system-ui,-apple-system,"Segoe UI",sans-serif;background:var(--bg);color:var(--ink);font-size:14px}.topbar{height:50px;background:var(--nav);color:#fff;display:flex;align-items:center;gap:18px;padding:0 24px;position:sticky;top:0;z-index:50}.brand{text-decoration:none;color:#fff;font-size:16px;font-weight:900;letter-spacing:.2px}.brand b,.login-logo b{color:var(--brand2)}.topbar-caption{color:#aeb7cf;font-size:12px}.topbar-user{margin-left:auto;display:flex;align-items:center;gap:12px;color:#dbe0ef;font-size:12px}.topbar-user form{margin:0}.topbar-link{border:0;background:transparent;color:#cbd2e5;cursor:pointer;font:inherit;padding:5px}.navstrip{height:42px;background:#fff;border-bottom:1px solid var(--line);display:flex;align-items:center;gap:3px;padding:0 20px;position:sticky;top:50px;z-index:45;overflow:auto}.navitem{padding:7px 10px;color:#566077;text-decoration:none;border-radius:7px;font-size:12px;font-weight:750;white-space:nowrap}.navitem:hover{background:#f0f2f8;color:#2d3550}.page{max-width:1360px;margin:0 auto;padding:26px 26px 60px}.page-login{max-width:none;padding:0}.page-head{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;margin-bottom:20px}.page-head h1{margin:3px 0 3px;font-size:26px;line-height:1.15}.page-head p{margin:0}.head-actions{display:flex;gap:8px}.eyebrow{font-size:10px;letter-spacing:.12em;color:#7b8498;font-weight:900;text-transform:uppercase}.muted{color:var(--muted)}.version-pill{padding:8px 12px;border-radius:999px;background:#eef0ff;color:#4f46e5;font-weight:900;font-size:11px;border:1px solid #dfe1ff}.btn{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:36px;padding:8px 12px;border:1px solid #d7dce8;background:#fff;color:#30384e;border-radius:9px;text-decoration:none;font-weight:800;font-size:12px;cursor:pointer}.btn:hover{background:#f6f7fb}.btn.primary{background:var(--brand);border-color:var(--brand);color:#fff}.btn.primary:hover{background:#4338ca}.btn.ghost{background:transparent}.btn.wide{width:100%}.kpi-row{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin-bottom:16px}.kpi{background:#fff;border:1px solid var(--line);border-radius:14px;padding:15px}.kpi span,.kpi small{display:block;color:var(--muted);font-size:10px}.kpi strong{display:block;font-size:25px;margin:4px 0}.section-card,.flow-card,.table-card,.form-section{background:#fff;border:1px solid var(--line);border-radius:15px;padding:16px}.section-head{display:flex;align-items:flex-start;justify-content:space-between;gap:15px;margin-bottom:12px}.section-head h2,.form-section h2{font-size:15px;margin:3px 0}.section-head p{margin:3px 0 0}.module-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:10px}.module-card{position:relative;min-height:152px;padding:14px;border:1px solid var(--line);border-radius:13px;text-decoration:none;color:var(--ink);background:#fbfcff;transition:.15s}.module-card:hover{transform:translateY(-1px);box-shadow:0 7px 18px rgba(30,40,70,.07)}.module-card.activo{border-color:#b9dec4;background:#f5fbf7}.module-icon{font-size:25px}.module-name{font-weight:900;margin:8px 0 4px}.module-desc{color:var(--muted);font-size:11px;line-height:1.4}.module-status{position:absolute;bottom:10px;right:10px;font-size:8px;font-weight:950;letter-spacing:.08em;color:#8891a3}.module-card.activo .module-status{color:var(--green)}.module-card.siguiente .module-status{color:var(--orange)}.flow-card{margin-top:16px}.flow{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin:10px 0}.flow span{padding:8px 10px;background:#f4f5f8;border-radius:8px;font-weight:850;font-size:11px}.flow span.accent{background:#e9eaff;color:#4338ca}.flow-card p{margin:0;color:var(--muted);font-size:11px}.searchbar{display:flex;gap:8px;margin:0 0 12px}.searchbar input{flex:1;min-height:38px;border:1px solid #d8dde8;border-radius:9px;padding:8px 11px;background:#fff;font:inherit}.table-card{padding:0;overflow:hidden}.data-table{width:100%;border-collapse:collapse}.data-table th{background:#f8f9fc;text-align:left;padding:10px 12px;font-size:9px;color:#7a8497;text-transform:uppercase;letter-spacing:.05em}.data-table td{padding:11px 12px;border-top:1px solid var(--line);vertical-align:middle;font-size:12px}.data-table td small{display:block;color:var(--muted);margin-top:2px}.table-link{font-weight:850;color:#263048;text-decoration:none}.actions{text-align:right}.actions a{color:#4f46e5;text-decoration:none;font-weight:800}.status{display:inline-flex;padding:4px 7px;border-radius:999px;font-size:9px;font-weight:900}.status.ok{color:var(--green);background:var(--greenbg)}.status.off{color:#727b8b;background:#eef0f4}.table-empty,.inline-empty{padding:24px;text-align:center;color:var(--muted)}.erp-form{display:flex;flex-direction:column;gap:12px}.erp-form.narrow{max-width:900px}.form-section{padding:16px}.form-grid{display:grid;gap:12px}.form-grid.cols-2{grid-template-columns:repeat(2,1fr)}.form-grid.cols-3{grid-template-columns:repeat(3,1fr)}.form-grid.cols-4{grid-template-columns:repeat(4,1fr)}.span-2{grid-column:span 2}.span-4{grid-column:span 4}label{display:flex;flex-direction:column;gap:5px;font-size:10px;font-weight:850;color:#596277}.erp-input,.stack-form input{width:100%;min-height:39px;border:1px solid #d5dbe7;border-radius:9px;padding:8px 10px;background:#fff;color:var(--ink);font:inherit;outline:none}.erp-input:focus,.stack-form input:focus{border-color:#a9adff;box-shadow:0 0 0 3px rgba(79,70,229,.08)}textarea.erp-input{min-height:88px;resize:vertical}.erp-check{width:16px;height:16px}.check-label{flex-direction:row;align-items:center;gap:7px;align-self:end;min-height:39px}.form-actions{display:flex;justify-content:flex-end;gap:8px}.errorlist{list-style:none;padding:0;margin:0;color:#b42318;font-size:10px}.form-error{padding:10px 12px;border-radius:9px;background:#fff1f0;border:1px solid #ffc9c5;color:#9d251d;margin-bottom:10px}.messages{margin-bottom:14px}.message{padding:10px 12px;border-radius:9px;background:#eef1f5}.message.success{background:var(--greenbg);color:var(--green);border:1px solid #c7e6d1}.detail-grid{display:grid;grid-template-columns:1.25fr .75fr;gap:12px}.detail-list{margin:10px 0 0;display:grid;grid-template-columns:repeat(2,1fr);gap:10px}.detail-list div{padding:9px;background:#f9fafc;border-radius:9px}.detail-list dt{font-size:9px;color:var(--muted);font-weight:800;text-transform:uppercase}.detail-list dd{margin:4px 0 0;font-weight:800}.address-block{margin-top:12px;line-height:1.65;font-weight:650}.top-gap{margin-top:12px}.delivery-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}.delivery-card{padding:12px;border:1px solid var(--line);border-radius:11px;text-decoration:none;color:var(--ink);background:#fbfcff}.delivery-card:hover{border-color:#c9ccff}.delivery-title{font-weight:900;display:flex;justify-content:space-between;gap:8px;align-items:center}.delivery-card p{font-size:11px;line-height:1.5;color:#4d566b}.delivery-card small{color:var(--muted)}.preline{white-space:pre-line}.empty-card{max-width:620px;margin:50px auto;background:#fff;border:1px solid var(--line);border-radius:16px;padding:32px;text-align:center}.big-icon{font-size:42px}.login-wrap{min-height:calc(100vh - 50px);display:grid;place-items:center;padding:26px;background:radial-gradient(circle at top left,#eef0ff,transparent 38%),var(--bg)}.login-card{width:min(420px,100%);background:#fff;border:1px solid var(--line);border-radius:18px;padding:28px;box-shadow:0 16px 45px rgba(20,30,60,.08)}.login-logo{font-size:21px;font-weight:950;margin-bottom:18px}.login-card h1{font-size:23px;margin:4px 0}.login-card p{margin:0 0 18px}.stack-form{display:flex;flex-direction:column;gap:12px}.stack-form label{font-size:10px}.stack-form input{margin-top:4px}.messages+.page-head{margin-top:4px}
@media(max-width:1050px){.kpi-row{grid-template-columns:repeat(2,1fr)}.module-grid{grid-template-columns:repeat(2,1fr)}.delivery-grid{grid-template-columns:repeat(2,1fr)}.form-grid.cols-4{grid-template-columns:repeat(2,1fr)}.span-4{grid-column:span 2}}
@media(max-width:720px){.page{padding:18px 14px 40px}.topbar{padding:0 14px}.topbar-caption{display:none}.navstrip{padding:0 8px}.page-head{flex-direction:column}.kpi-row,.detail-grid,.module-grid,.delivery-grid,.form-grid.cols-2,.form-grid.cols-3,.form-grid.cols-4{grid-template-columns:1fr}.span-2,.span-4{grid-column:span 1}.data-table th:nth-child(3),.data-table td:nth-child(3),.data-table th:nth-child(4),.data-table td:nth-child(4),.data-table th:nth-child(5),.data-table td:nth-child(5){display:none}.detail-list{grid-template-columns:1fr}.searchbar{flex-wrap:wrap}.searchbar input{flex-basis:100%}}

/* CORE V2 compatibility · Cliente v9 */
.relation-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}.relation-card{display:block;min-height:126px;padding:13px;border:1px solid var(--line);border-radius:11px;text-decoration:none;color:var(--ink);background:#fbfcff}.relation-card:hover{border-color:#c9ccff;box-shadow:0 5px 14px rgba(30,40,70,.05)}.relation-card.legacy{border-style:dashed}.relation-title{font-weight:900;display:flex;justify-content:space-between;gap:8px;align-items:center}.relation-sub{margin-top:5px;color:#596277;font-size:11px;font-weight:750}.relation-meta{margin-top:8px;color:var(--muted);font-size:10px;line-height:1.5}.commission-number{font-size:24px;font-weight:950;margin-top:10px;color:#3f46a6}.mini-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}.mini-stats>div{background:#f8f9fc;border:1px solid var(--line);border-radius:10px;padding:11px}.mini-stats span{display:block;font-size:9px;color:var(--muted);font-weight:850;text-transform:uppercase}.mini-stats strong{display:block;font-size:20px;margin-top:4px}.v9-links{border-color:#dfe1ff;background:#fbfbff}
@media(max-width:900px){.relation-grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:720px){.relation-grid,.mini-stats{grid-template-columns:1fr}}

/* CORE V3 · Cliente MASTER v9 completo */
.master-customer-form{gap:14px}.master-customer-form .form-section{padding:18px}.master-customer-form .section-head{margin-bottom:14px}.master-customer-form .section-head h2{font-size:18px;margin:0}.section-help{font-size:11px;color:var(--muted)}label small,.field-help{font-size:10px;color:var(--muted);font-weight:500;line-height:1.45}.standalone-label{margin-bottom:7px}.inline-table-wrap{overflow:auto;border:1px solid var(--line);border-radius:12px}.inline-table{width:100%;border-collapse:collapse;min-width:860px}.inline-table.bank-table{min-width:1400px}.inline-table.wide-table{min-width:1050px}.inline-table th,.inline-table td{padding:7px;border-bottom:1px solid var(--line);font-size:11px;text-align:left;vertical-align:top}.inline-table th{background:#f8f9fb;color:var(--muted);font-size:10px}.inline-table td .erp-input{min-height:36px;padding:7px 8px}.inline-table td.center{text-align:center;vertical-align:middle}.inline-table td>input[type=checkbox]{margin-top:8px}.inline-table input[name$="-DELETE"]{display:none}.row-delete{height:34px;min-width:34px;border:1px solid var(--line);border-radius:8px;background:#fff;color:#8a3a3a;font-size:18px;cursor:pointer}.row-delete:hover{background:#fff1f0}.add-link{border:0;background:none;color:var(--brand);font-weight:850;font-size:12px;padding:10px 0 0;cursor:pointer}.master-input{display:grid;grid-template-columns:1fr 38px;gap:7px}.mini-plus{border:1px solid var(--line);border-radius:9px;background:#fff;font-weight:900;cursor:pointer}.info-note{background:#eef7ff;border:1px solid #dceeff;padding:13px;border-radius:12px;margin-top:13px}.info-note strong{font-size:12px}.info-note p{margin:5px 0 0;font-size:10px;color:var(--muted);line-height:1.5}.sticky-actions{position:sticky;bottom:12px;z-index:30;background:rgba(245,247,251,.92);backdrop-filter:blur(8px);padding:10px;border:1px solid var(--line);border-radius:12px}.master-customer-form select.erp-input{appearance:auto}
@media(max-width:950px){.master-customer-form .form-grid.cols-3,.master-customer-form .form-grid.cols-4{grid-template-columns:repeat(2,1fr)}}
@media(max-width:650px){.master-customer-form .form-grid.cols-3,.master-customer-form .form-grid.cols-4{grid-template-columns:1fr}}
.detail-list-3{grid-template-columns:repeat(3,1fr)}.detail-list-4{grid-template-columns:repeat(4,1fr)}
@media(max-width:950px){.detail-list-4,.detail-list-3{grid-template-columns:repeat(2,1fr)}}
@media(max-width:650px){.detail-list-4,.detail-list-3{grid-template-columns:1fr}}


/* CORE V3.5 · Legibilidad Cliente alineada con Comercial/Vendedor v1 */
.master-customer-form label{font-size:13px;gap:7px}
.master-customer-form .erp-input{min-height:41px;padding:10px 11px;font-size:13px}
.master-customer-form select.erp-input{font-size:13px}
.master-customer-form textarea.erp-input{font-size:13px;line-height:1.45}
.master-customer-form .section-help{font-size:12px}
.master-customer-form label small,
.master-customer-form .field-help{font-size:12px;line-height:1.45}
.master-customer-form .standalone-label{font-size:13px}
.master-customer-form .inline-table th,
.master-customer-form .inline-table td{font-size:12px}
.master-customer-form .inline-table th{font-size:11px}
.master-customer-form .inline-table td .erp-input{min-height:38px;padding:8px 9px;font-size:12px}
.master-customer-form .info-note strong{font-size:13px}
.master-customer-form .info-note p{font-size:12px}

/* CORE V3.30 · navegación global estable */
.navstrip{z-index:100!important;pointer-events:auto!important}
.navstrip .navitem{pointer-events:auto!important;cursor:pointer}

/* CORE V3.98 · Panel fresco y navegación agrupada */
.dashboard-v398{--dash-ink:#172033;--dash-muted:#70798a;--dash-line:#e7e7eb;--dash-blue:#1769e8;max-width:1240px;margin:0 auto;color:var(--dash-ink)}
.dashboard-hero{display:flex;align-items:center;justify-content:space-between;gap:24px;margin:2px 0 24px}
.dashboard-kicker,.dashboard-card-kicker{display:block;font-size:10px;line-height:1.2;font-weight:850;letter-spacing:.11em;color:#85858b;text-transform:uppercase}
.dashboard-hero h1{margin:6px 0 5px;font-size:33px;line-height:1.12;letter-spacing:-.035em;color:var(--dash-ink)}
.dashboard-hero p{margin:0;color:var(--dash-muted);font-size:14px}
.dashboard-hero-actions{display:flex;align-items:center;gap:12px}
.dashboard-online{display:inline-flex;align-items:center;gap:7px;padding:8px 12px;border:1px solid var(--dash-line);border-radius:999px;background:#fff;color:#57575d;font-size:11px;font-weight:700;white-space:nowrap}
.dashboard-online i{width:7px;height:7px;border-radius:50%;background:#2da463;box-shadow:0 0 0 4px #e8f7ef}
.dashboard-primary{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:38px;padding:8px 15px;border-radius:999px;background:var(--dash-blue);color:#fff;text-decoration:none;font-size:12px;font-weight:800;box-shadow:0 5px 14px rgba(0,113,227,.18)}
.dashboard-primary:hover{background:#0065cc}.dashboard-primary b{font-size:17px;line-height:1;font-weight:500}
.dashboard-kpis{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;margin-bottom:20px}
.dashboard-kpi-card,.dashboard-card{background:#fff;border:1px solid rgba(0,0,0,.055);border-radius:18px;box-shadow:0 4px 20px rgba(20,25,40,.035)}
.dashboard-kpi-card{padding:20px 21px}
.dashboard-kpi-top{display:flex;align-items:center;justify-content:space-between;gap:10px;color:#64646a;font-size:12px;font-weight:700}
.dashboard-kpi-top em{font-style:normal;padding:4px 8px;border-radius:999px;background:#f1f1f4;color:#64646a;font-size:9px;white-space:nowrap}
.dashboard-kpi-top em.blue{background:#edf5ff;color:#0066cc}.dashboard-kpi-top em.green{background:#eaf8f0;color:#18794e}
.dashboard-kpi-card>strong{display:block;margin-top:14px;font-size:34px;line-height:1;letter-spacing:-.04em}.dashboard-kpi-card>strong small{font-size:17px;letter-spacing:0}
.dashboard-kpi-card p{margin:11px 0 0;color:#8b8b91;font-size:11px}
.dashboard-main-grid{display:grid;grid-template-columns:minmax(0,1.8fr) minmax(300px,.8fr);gap:20px;align-items:start;margin-bottom:20px}
.dashboard-card{padding:21px}.dashboard-card-head{display:flex;align-items:flex-start;justify-content:space-between;gap:15px;margin-bottom:15px}
.dashboard-card-head h2{margin:4px 0 0;font-size:18px;letter-spacing:-.015em}.dashboard-card-head p{margin:5px 0 0;color:var(--dash-muted);font-size:12px}
.dashboard-card-head>a{color:var(--dash-blue);text-decoration:none;font-size:11px;font-weight:750;white-space:nowrap}.dashboard-card-head>a:hover{text-decoration:underline}
.dashboard-budget-list{border-top:1px solid #f0f0f2}
.dashboard-budget-row{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:14px 2px;border-bottom:1px solid #f0f0f2;text-decoration:none;color:var(--dash-ink);transition:.15s}
.dashboard-budget-row:hover{padding-left:8px;padding-right:8px;background:#fafafb;border-radius:10px}
.dashboard-budget-main{min-width:0}.dashboard-budget-main>div{display:flex;align-items:center;gap:8px}.dashboard-budget-main>div>strong{font-size:12px;color:var(--dash-blue)}
.dashboard-state{display:inline-flex;padding:3px 7px;border-radius:999px;background:#f1f1f4;color:#65656b;font-size:8px;font-weight:800;text-transform:uppercase;letter-spacing:.035em}
.dashboard-state.state-aceptado{background:#eaf8f0;color:#18794e}.dashboard-state.state-enviado{background:#f2eefe;color:#7047a5}.dashboard-state.state-rechazado{background:#fff0ef;color:#b42318}.dashboard-state.state-en-preparacion{background:#edf5ff;color:#0066cc}
.dashboard-budget-main h3{margin:6px 0 3px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:13px;font-weight:750}.dashboard-budget-main p{margin:0;color:#88888e;font-size:11px}
.dashboard-budget-amount{text-align:right;white-space:nowrap}.dashboard-budget-amount strong{display:block;font-size:14px}.dashboard-budget-amount span{display:block;margin-top:5px;color:#8b8b91;font-size:10px}
.dashboard-empty{padding:30px 10px;text-align:center;color:var(--dash-muted);font-size:11px}.dashboard-side{display:grid;gap:20px}
.dashboard-quick>.dashboard-card-head{margin-bottom:8px}.dashboard-quick>a{display:grid;grid-template-columns:36px 1fr 10px;align-items:center;gap:10px;padding:10px 6px;border-top:1px solid #f0f0f2;text-decoration:none;color:var(--dash-ink)}
.dashboard-quick>a:hover{background:#fafafb;border-radius:10px}.dashboard-quick>a>span:nth-child(2){min-width:0}.dashboard-quick>a strong,.dashboard-quick>a small{display:block}.dashboard-quick>a strong{font-size:12px}.dashboard-quick>a small{margin-top:3px;color:#89898f;font-size:10px}.dashboard-quick>a>b{color:#aaaab0;font-size:18px}
.dashboard-action-icon{display:grid;place-items:center;width:32px;height:32px;border-radius:10px;background:#edf5ff;color:#0066cc;font-size:17px;font-weight:600}.dashboard-action-icon.green{background:#eaf8f0;color:#18794e}.dashboard-action-icon.purple{background:#f2eefe;color:#7047a5}
.dashboard-status .dashboard-card-head>strong{font-size:23px}.dashboard-status-row{margin-top:12px}.dashboard-status-row>div:first-child{display:flex;justify-content:space-between;gap:12px;margin-bottom:5px;font-size:10px;color:#64646a}.dashboard-status-row>div:first-child b{color:var(--dash-ink)}
.dashboard-status-track{height:5px;overflow:hidden;border-radius:999px;background:#f0f0f2}.dashboard-status-track i{display:block;height:100%;border-radius:inherit;background:#a4a4aa}.dashboard-status-track i.blue{background:#4a90e2}.dashboard-status-track i.purple{background:#8b6fc0}.dashboard-status-track i.green{background:#39a66d}.dashboard-status-track i.red{background:#d35d55}
.dashboard-capacity{margin-bottom:16px}.dashboard-capacity-stats{display:grid;grid-template-columns:repeat(6,1fr);gap:9px}.dashboard-capacity-stats>a{padding:13px;border:1px solid #ededf0;border-radius:12px;background:#fafafb;text-decoration:none;color:var(--dash-ink);transition:.15s}.dashboard-capacity-stats>a:hover{border-color:#cfdff2;background:#f7fbff;transform:translateY(-1px)}
.dashboard-capacity-stats span,.dashboard-capacity-stats strong{display:block}.dashboard-capacity-stats span{color:#77777d;font-size:9px}.dashboard-capacity-stats strong{margin-top:5px;font-size:20px}
.dashboard-modules{margin-top:14px;border-top:1px solid #ededf0}.dashboard-modules summary{display:flex;align-items:center;justify-content:space-between;padding:14px 2px 0;cursor:pointer;color:#55555b;font-size:11px;font-weight:750;list-style:none}.dashboard-modules summary::-webkit-details-marker{display:none}
.dashboard-module-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;margin-top:13px}.dashboard-module-grid>a{display:flex;align-items:center;gap:9px;min-height:52px;padding:9px 11px;border:1px solid #ededf0;border-radius:11px;text-decoration:none;color:var(--dash-ink);background:#fff}.dashboard-module-grid>a:hover{background:#fafafb}.dashboard-module-grid>a>span{font-size:19px}.dashboard-module-grid strong,.dashboard-module-grid small{display:block}.dashboard-module-grid strong{font-size:10px}.dashboard-module-grid small{margin-top:3px;color:#2d8b58;font-size:8px;text-transform:uppercase;letter-spacing:.04em}.dashboard-module-grid>a.planificado{opacity:.65}.dashboard-module-grid>a.planificado small{color:#85858b}
.dashboard-flow{display:flex;align-items:center;justify-content:center;gap:8px;flex-wrap:wrap;padding:8px;color:#77777d;font-size:9px}.dashboard-flow strong{text-transform:uppercase;letter-spacing:.07em}.dashboard-flow span{padding:5px 8px;border-radius:7px;background:#eeeef2;color:#55555b}.dashboard-flow b{font-weight:500;color:#aaaab0}
@media(max-width:1050px){.dashboard-capacity-stats{grid-template-columns:repeat(3,1fr)}.dashboard-module-grid{grid-template-columns:repeat(3,1fr)}}
@media(max-width:850px){.dashboard-hero{align-items:flex-start}.dashboard-hero-actions{align-items:flex-end;flex-direction:column}.dashboard-main-grid{grid-template-columns:1fr}.dashboard-side{grid-template-columns:repeat(2,1fr)}}
@media(max-width:650px){.dashboard-hero{display:block;margin-bottom:18px}.dashboard-hero h1{font-size:25px}.dashboard-hero-actions{display:grid;grid-template-columns:1fr;margin-top:15px}.dashboard-online{justify-content:center}.dashboard-primary{width:100%}.dashboard-kpis{grid-template-columns:1fr;gap:10px}.dashboard-kpi-card{padding:17px}.dashboard-main-grid{gap:12px}.dashboard-card{padding:16px;border-radius:15px}.dashboard-side{grid-template-columns:1fr;gap:12px}.dashboard-budget-row{align-items:flex-start}.dashboard-budget-main h3{white-space:normal;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}.dashboard-budget-amount strong{font-size:11px}.dashboard-capacity-stats{grid-template-columns:repeat(2,1fr)}.dashboard-module-grid{grid-template-columns:1fr 1fr}.dashboard-flow b{display:none}}
@media(max-width:390px){.dashboard-kpi-top{align-items:flex-start}.dashboard-kpi-top em{white-space:normal;text-align:right}.dashboard-budget-row{display:block}.dashboard-budget-amount{display:flex;justify-content:space-between;margin-top:9px;text-align:left}.dashboard-budget-amount span{margin:0}.dashboard-module-grid{grid-template-columns:1fr}}

/* V3.98 · color funcional, gráfico real y búsqueda global */
.dashboard-v398 .dashboard-hero{margin:34px 0 36px}.dashboard-v398 .dashboard-online{font-size:12px;padding:10px 15px;box-shadow:0 4px 14px rgba(20,25,40,.05)}
.dashboard-v398 .dashboard-kpi-card{padding:26px 30px;border-radius:21px;box-shadow:0 9px 30px rgba(27,36,55,.055)}
.dashboard-kpi-progress{height:6px;margin-top:18px;overflow:hidden;border-radius:999px;background:#eff0f3}.dashboard-kpi-progress i{display:block;height:100%;max-width:100%;border-radius:inherit;background:#19b879}.dashboard-kpi-card.tone-blue .dashboard-kpi-progress i{background:#2f6fed}.dashboard-kpi-card.tone-purple .dashboard-kpi-progress i{background:#9a35e8}.dashboard-kpi-top em.purple{background:#f5eaff;color:#8731c7}
.dashboard-main-fresh{grid-template-columns:minmax(0,2fr) minmax(310px,.85fr);align-items:stretch;margin-bottom:20px}.dashboard-chart-card{min-height:420px;padding:28px 30px}.dashboard-chart-total{padding:7px 11px;border:1px solid #e2e5ea;border-radius:9px;background:#f8f9fb;color:#626b7b;font-size:11px;font-weight:750}.dashboard-chart-wrap{height:310px;margin-top:12px}.dashboard-chart-wrap svg{display:block;width:100%;height:260px;overflow:visible}.dashboard-chart-wrap .grid-line{stroke:#e9ebef;stroke-width:1}.dashboard-chart-wrap .chart-area{fill:url(#dashboardAreaV398)}.dashboard-chart-wrap .chart-line{fill:none;stroke:#2f6fed;stroke-width:4;stroke-linejoin:round;stroke-linecap:round;vector-effect:non-scaling-stroke}.dashboard-chart-wrap .chart-point{fill:#2f6fed;stroke:#fff;stroke-width:2;vector-effect:non-scaling-stroke}.dashboard-chart-labels{display:grid;grid-template-columns:repeat(7,1fr);gap:4px;margin-top:-8px;color:#8a92a1;text-align:center;font-size:11px}.dashboard-chart-labels span{display:grid;gap:3px}.dashboard-chart-labels b{color:#33405a;font-size:12px}.dashboard-v398 .dashboard-side{display:flex;flex-direction:column}.dashboard-v398 .dashboard-side>.dashboard-card{flex:1;padding:25px 27px}.dashboard-recent-fresh{margin-bottom:20px;padding:25px 30px}.dashboard-v398 .dashboard-budget-row{padding-top:16px;padding-bottom:16px}.dashboard-v398 .dashboard-capacity{padding:25px 30px}
.global-search-page-v398{max-width:1180px;margin:0 auto}.global-search-page-v398>header{margin:10px 0 22px}.global-search-page-v398>header h1{margin:5px 0;font-size:30px;letter-spacing:-.03em}.global-search-page-v398>header p{margin:0;color:#70798a;font-size:14px}.global-search-form-v398{display:grid;grid-template-columns:28px 1fr auto;align-items:center;gap:8px;padding:10px 11px 10px 17px;border:1px solid #e1e4e9;border-radius:17px;background:#fff;box-shadow:0 8px 25px rgba(20,25,40,.045)}.global-search-form-v398>span{font-size:22px;color:#929aa8}.global-search-form-v398 input{height:42px;border:0;outline:0;background:#fff;color:#202735;font:650 14px/1 Inter,system-ui,sans-serif}.global-search-form-v398 button{height:40px;padding:0 18px;border:0;border-radius:11px;background:#1769e8;color:#fff;font-weight:800;cursor:pointer}.global-search-grid-v398{display:grid;grid-template-columns:1.45fr 1fr;gap:18px;margin-top:22px}.global-client-list-v398>a{display:grid;grid-template-columns:36px 1fr 12px;align-items:center;gap:10px;padding:13px 4px;border-top:1px solid #f0f0f2;text-decoration:none;color:#172033}.global-client-list-v398>a strong,.global-client-list-v398>a small{display:block}.global-client-list-v398>a strong{font-size:13px}.global-client-list-v398>a small{margin-top:4px;color:#818997;font-size:10px}.global-client-list-v398>a>b{font-size:18px;color:#a2a8b3}.global-search-note-v398{margin-top:14px;padding:13px 15px;border-radius:12px;background:#fff5dd;color:#805914;font-size:12px}
@media(max-width:850px){.dashboard-v398 .dashboard-hero{margin:24px 0}.dashboard-main-fresh{grid-template-columns:1fr}.dashboard-chart-card{min-height:390px}.dashboard-v398 .dashboard-side{display:grid;grid-template-columns:1fr 1fr}.global-search-grid-v398{grid-template-columns:1fr}}
@media(max-width:650px){.dashboard-v398 .dashboard-hero{margin:18px 0 22px}.dashboard-v398 .dashboard-hero h1{font-size:28px}.dashboard-v398 .dashboard-online{display:none}.dashboard-v398 .dashboard-kpi-card{padding:21px 22px}.dashboard-chart-card{min-height:335px;padding:21px 18px}.dashboard-chart-wrap{height:235px}.dashboard-chart-wrap svg{height:205px}.dashboard-v398 .dashboard-side{grid-template-columns:1fr}.dashboard-recent-fresh,.dashboard-v398 .dashboard-capacity{padding:20px 18px}.global-search-page-v398>header h1{font-size:25px}.global-search-form-v398{grid-template-columns:24px 1fr}.global-search-form-v398 button{grid-column:1/-1;width:100%}}
@media(max-width:760px){.dashboard-v398 .dashboard-kpis{grid-template-columns:1fr}.dashboard-v398 .dashboard-side{grid-template-columns:1fr}}

/* V4.16 · acciones y plantillas del presupuesto rápido */
.module-grid{grid-template-columns:repeat(4,1fr);gap:16px}.module-card{min-height:178px;padding:22px 16px;border-color:#e4e7ec;border-radius:15px;background:#fff;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;box-shadow:0 8px 22px rgba(30,40,70,.06);transition:transform .16s ease,border-color .16s ease,box-shadow .16s ease}.module-card.activo{border-color:#e4e7ec;background:#fff}.module-card:hover,.module-card:focus-visible{transform:translateY(-2px);border-color:#76c99a;background:#f8fcf9;box-shadow:0 14px 30px rgba(30,40,70,.11);outline:none}.module-icon{width:54px;height:54px;display:grid;place-items:center;color:#101827;font-size:0}.module-icon .product-icon-svg{width:46px;height:46px;fill:none;stroke:currentColor;stroke-width:2.35;stroke-linecap:round;stroke-linejoin:round}.module-name{margin:13px 0 0;font-size:14px;line-height:1.25}.module-desc,.module-status{display:none}@media(max-width:980px){.module-grid{grid-template-columns:repeat(3,1fr)}}@media(max-width:700px){.module-grid{grid-template-columns:repeat(2,1fr);gap:11px}.module-card{min-height:150px;padding:18px 10px}.module-icon .product-icon-svg{width:40px;height:40px}}@media(max-width:420px){.module-grid{grid-template-columns:1fr}}

/* V4.56 · Escala móvil legible y estable, sin zoom automático en campos. */
@media(max-width:720px){
  html{-webkit-text-size-adjust:100%;text-size-adjust:100%}
  body{font-size:15.5px!important;line-height:1.45}
  .page:not(.page-login){padding:18px 14px 52px}
  .page-head{gap:12px;margin-bottom:18px}
  .page-head h1{font-size:27px!important;line-height:1.12}
  .eyebrow{font-size:11px!important}
  .muted,.help,.sub{font-size:12.5px!important;line-height:1.45}
  .section-card,.flow-card,.table-card,.form-section{border-radius:16px}
  .section-card,.flow-card,.form-section{padding:17px}
  .section-head h2,.form-section h2{font-size:17px!important}
  label{font-size:12.5px!important}
  input:not([type="checkbox"]):not([type="radio"]),select,textarea,.erp-input,.stack-form input{
    min-height:44px;font-size:16px!important;line-height:1.25
  }
  .btn{min-height:44px!important;padding:10px 13px!important;font-size:13px!important}
  .data-table th{font-size:10.5px}
  .data-table td{font-size:13.5px}
  .topbar{height:56px;padding:0 14px;gap:11px}
  .brand{font-size:17px}
  .topbar-user{font-size:13px}
  .navstrip{top:56px;height:48px;padding:0 10px;gap:5px}
  .navitem{padding:9px 11px;font-size:13px!important}
  .module-card{min-height:168px}
  .module-name{font-size:15px}
}

/* V4.59 · Jerarquía visual equilibrada en panel y listados. */
.dashboard-card-head{margin-bottom:13px}
.dashboard-card-head h2{font-size:19px;line-height:1.2;font-weight:850}
.dashboard-card-head p{font-size:12.5px;line-height:1.45}
.dashboard-quick>a{padding:11px 6px}
.dashboard-quick>a strong{font-size:13.5px;line-height:1.25}
.dashboard-quick>a small{font-size:11.25px;line-height:1.35}
.dashboard-status-row>div:first-child{font-size:11.5px;line-height:1.3}
.dashboard-budget-main>div>strong{font-size:12.75px}
.dashboard-budget-main h3{font-size:14px;line-height:1.3}
.dashboard-budget-main p{font-size:11.75px;line-height:1.4}
.dashboard-budget-amount strong{font-size:14.5px}
.dashboard-budget-amount span{font-size:11px}
.dashboard-capacity-stats>a{padding:12px 13px}
.dashboard-capacity-stats span{font-size:10.5px;line-height:1.3}
.dashboard-capacity-stats strong{font-size:21px}
.data-table th{font-size:10px}
.data-table td{font-size:13px}
.table-link{font-size:13.5px}
.status{font-size:9.5px}
.inline-table th{font-size:10.5px}
.inline-table td{font-size:12px}
@media(max-width:720px){
  .dashboard-card-head h2{font-size:20px!important}
  .dashboard-card-head p{font-size:13px}
  .dashboard-quick>a strong{font-size:14px}
  .dashboard-quick>a small{font-size:12px}
  .dashboard-status-row>div:first-child{font-size:12.5px}
  .dashboard-budget-main>div>strong{font-size:13.5px}
  .dashboard-budget-main h3{font-size:15px}
  .dashboard-budget-main p{font-size:12.5px}
  .dashboard-budget-amount strong{font-size:14px}
  .dashboard-budget-amount span{font-size:11.5px}
  .dashboard-capacity-stats span{font-size:11.5px}
  .dashboard-capacity-stats strong{font-size:23px}
  .data-table th{font-size:11.25px}
  .data-table td{font-size:14px}
  .table-link{font-size:14px}
  .status{font-size:10px}
  .inline-table th{font-size:11.25px}
  .inline-table td{font-size:13.5px}
}
