/* General cockpit · scoped to preserve the rest of the ERP. */
.premium-cockpit{--cockpit-ink:#10294b;--cockpit-muted:#657a98;--cockpit-line:#e5ecf5;--cockpit-blue:#2458ee;gap:22px!important;color:var(--cockpit-ink)}
.premium-cockpit .dashboard-hero{background:transparent!important;border:0!important;box-shadow:none!important;padding:4px 0 0!important;margin:0!important;min-height:unset!important}.premium-cockpit .dashboard-hero h1{font-size:clamp(26px,2.5vw,36px)!important;letter-spacing:-1px;margin:6px 0!important}.premium-cockpit .dashboard-hero p{font-size:15px!important;color:var(--cockpit-muted)}.premium-cockpit .dashboard-eyebrow{font-size:10px;letter-spacing:1.5px;color:#7185a1}.premium-cockpit .dashboard-primary{border-radius:10px;padding:12px 17px;white-space:nowrap}
.cockpit-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}.cockpit-kpi{background:#fff;border:1px solid var(--cockpit-line);border-radius:13px;box-shadow:0 5px 20px #233b6110;padding:21px 17px;display:flex;align-items:flex-start;gap:13px;min-width:0;color:var(--cockpit-ink);text-decoration:none;transition:transform .16s,box-shadow .16s}.cockpit-kpi:hover{transform:translateY(-2px);box-shadow:0 9px 25px #233b6120}.cockpit-kpi>div{min-width:0;flex:1}.cockpit-kpi>svg{width:13px;margin-top:6px;color:#7185a1;flex-shrink:0}.cockpit-kpi span:not(.cockpit-symbol){font-size:13px;font-weight:600;color:#47617f;display:block}.cockpit-kpi strong{display:block;font-size:32px;letter-spacing:-1px;line-height:1.25;margin:5px 0}.cockpit-kpi strong.cockpit-money{font-size:clamp(16px,1.4vw,24px);letter-spacing:-.5px;overflow-wrap:anywhere}.cockpit-kpi small{display:block;font-size:11px;line-height:1.5;color:var(--cockpit-muted)}
.cockpit-symbol{width:49px;height:49px;border-radius:13px;display:grid;place-items:center;flex-shrink:0}.cockpit-symbol svg{width:25px;height:25px}.cockpit-symbol.blue{background:#e5f0ff;color:#2458ee}.cockpit-symbol.green{background:#e4f8ed;color:#08935d}.cockpit-symbol.violet{background:#f0eaff;color:#783bea}.cockpit-symbol.orange{background:#fff0e4;color:#ef7d1c}
.cockpit-columns{display:grid;grid-template-columns:minmax(0,1.65fr) minmax(340px,1fr);gap:20px;align-items:start}.cockpit-main,.cockpit-side{display:grid;gap:20px;min-width:0}.premium-cockpit .cockpit-card{margin:0!important;padding:21px!important;background:#fff;border:1px solid var(--cockpit-line);border-radius:13px;box-shadow:0 4px 20px #233b610b;min-width:0}.cockpit-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:19px}.premium-cockpit h2{font-size:19px;letter-spacing:-.45px;margin:0;color:var(--cockpit-ink)}.cockpit-heading p{color:var(--cockpit-muted);font-size:11px;margin:7px 0 0}.cockpit-heading a{font-size:11px;color:var(--cockpit-blue);text-decoration:none;display:flex;align-items:center;gap:5px;white-space:nowrap}.cockpit-heading a svg{width:13px;height:13px}.cockpit-legend{display:flex;gap:18px;flex-wrap:wrap;margin:0 0 24px 13px}.cockpit-legend span{display:flex;align-items:center;gap:6px;font-size:11px;color:#526987}.cockpit-legend span:before{content:'';width:9px;height:9px;border-radius:50%;background:#1562ff}.cockpit-legend .route:before{background:#66afff}.cockpit-legend .planned:before{background:#c9def8}.cockpit-chart-wrap{display:flex;gap:14px}.cockpit-axis{height:184px;display:flex;flex-direction:column;justify-content:space-between;font-size:10px;color:#7b8daa;width:24px;text-align:right}.cockpit-bars{display:flex;flex:1;gap:22px;min-width:0;position:relative;background:linear-gradient(to bottom,#e9eff7 1px,transparent 1px);background-size:100% 92px;padding:0 8px}.cockpit-day{flex:1;min-width:0;text-align:center}.cockpit-stack{height:184px;display:flex;flex-direction:column-reverse;justify-content:flex-start;position:relative;margin:0 auto 10px;max-width:50px;min-width:12px;border-bottom:1px solid #dce6f2}.cockpit-bar{display:block;width:100%;flex-shrink:0;background:#1562ff}.cockpit-bar.route{background:#66afff}.cockpit-bar.planned{background:#c9def8}.cockpit-stack b{position:absolute;top:0;width:100%;font-size:10px;line-height:17px;transform:translateY(-19px);color:#4b6585}.cockpit-day>strong{font-size:11px;font-weight:600;display:block}.cockpit-day>small{font-size:10px;color:var(--cockpit-muted)}.cockpit-empty{color:var(--cockpit-muted);font-size:12px;line-height:1.6;padding:18px;text-align:center}.cockpit-chart>.cockpit-empty{margin:10px 0 0;padding:0}
.cockpit-table-scroll{overflow:auto;max-width:100%}.cockpit-table{width:100%;border-collapse:collapse;font-size:12px}.cockpit-table th{text-align:left;background:#f2f6fb;color:#607692;font-size:10px;font-weight:600;border:0;padding:11px 9px;white-space:nowrap}.cockpit-table td{padding:14px 9px;border:0;border-bottom:1px solid #edf2f8;vertical-align:middle;color:#233e61}.cockpit-table tr:last-child td{border-bottom:0}.cockpit-table td b{font-size:11px;font-weight:600;display:block;line-height:1.5}.cockpit-table td small{font-size:10px;color:#7586a0;display:block;line-height:1.6;margin-top:3px}.cockpit-state{display:inline-flex;align-items:center;gap:5px;white-space:nowrap;font-size:10px;font-weight:600}.cockpit-state:before{content:'';width:6px;height:6px;border-radius:50%;background:currentColor}.state-pendiente{color:#b47b11}.state-asignado{color:#3779d3}.state-en_ruta{color:#0962e8}.state-entregado,.state-cerrado{color:#079765}.cockpit-open{color:#4b709a}.cockpit-open svg{width:16px;height:16px}.cockpit-doc-state{display:inline-block;padding:3px 7px;border-radius:5px;font-size:10px;margin-top:5px}.cockpit-doc-state.expired{color:#d53636;background:#fff0f0}.cockpit-doc-state.soon{color:#ac6f07;background:#fff4db}.cockpit-doc-state.valid{color:#09865d;background:#e7f7f0}
.cockpit-alert{display:flex;gap:11px;align-items:flex-start;border-radius:10px;padding:16px 13px;margin-top:11px;text-decoration:none;min-width:0}.cockpit-alert-icon svg{width:22px;height:22px}.cockpit-alert>div{flex:1;min-width:0}.cockpit-alert b{font-size:12px;display:block}.cockpit-alert p{font-size:11px;line-height:1.5;margin:7px 0 10px;color:#5c6f89}.cockpit-alert small{font-size:10px;display:flex;align-items:center;gap:4px;font-weight:600}.cockpit-alert small svg{width:12px;height:12px}.cockpit-alert>strong{background:#ffffffa6;border-radius:5px;padding:4px 8px;font-size:12px}.cockpit-alert.red{background:#fff1f2;color:#df353b}.cockpit-alert.amber{background:#fff7e6;color:#c4800b}.cockpit-alert.blue{background:#eaf3ff;color:#1565e8}.cockpit-alert.violet{background:#f4efff;color:#7847ce}.cockpit-lower-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px}.premium-cockpit .cockpit-performance{display:flex;align-items:center;gap:14px;flex-wrap:wrap}.cockpit-performance>div{flex:1;min-width:180px}.cockpit-performance p{font-size:12px;line-height:1.6;color:var(--cockpit-muted);margin:7px 0 0}.cockpit-performance .button{font-size:11px}.premium-cockpit .dashboard-finance-premium,.premium-cockpit .dashboard-shortcuts{margin:0!important;border:1px solid var(--cockpit-line)!important;border-radius:13px!important;box-shadow:0 4px 20px #233b610b!important}.premium-cockpit .plan-summary{order:unset!important}
@media(min-width:1600px){.cockpit-kpi{padding:25px}.cockpit-table td b{font-size:12px}.cockpit-table td small{font-size:11px}.cockpit-alert b{font-size:14px}.cockpit-alert p{font-size:12px}}
@media(max-width:1200px){.cockpit-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}.cockpit-columns{grid-template-columns:minmax(0,1.4fr) minmax(300px,1fr)}.cockpit-bars{gap:13px}.cockpit-kpi strong.cockpit-money{font-size:23px}}
@media(max-width:980px){.cockpit-columns{grid-template-columns:1fr}.cockpit-side{grid-template-columns:1fr 1fr;align-items:start}.cockpit-lower-grid{grid-template-columns:1fr}.cockpit-chart-wrap{max-width:100%}}
@media(max-width:600px){.premium-cockpit{gap:16px!important}.cockpit-kpis{gap:10px}.cockpit-kpi{padding:13px 10px;gap:8px;flex-wrap:wrap}.cockpit-kpi>svg{display:none}.cockpit-symbol{width:34px;height:34px;border-radius:10px}.cockpit-symbol svg{width:20px;height:20px}.cockpit-kpi>div{flex-basis:100%}.cockpit-kpi span:not(.cockpit-symbol){font-size:11px}.cockpit-kpi strong{font-size:27px}.cockpit-kpi strong.cockpit-money{font-size:19px}.cockpit-kpi small{font-size:10px}.cockpit-side{grid-template-columns:1fr}.premium-cockpit .cockpit-card{padding:16px!important}.cockpit-heading{flex-wrap:wrap}.premium-cockpit h2{font-size:17px}.cockpit-bars{gap:10px;padding:0 3px}.cockpit-legend{gap:10px;margin-left:0}.cockpit-legend span{font-size:9px}.cockpit-table:not(.cockpit-docs){min-width:590px}.cockpit-day>strong{font-size:10px}.cockpit-day>small{font-size:9px}.cockpit-chart-wrap{gap:7px}.cockpit-performance .button{width:100%;justify-content:center}}
@media(prefers-reduced-motion:reduce){.cockpit-kpi{transition:none}.cockpit-kpi:hover{transform:none}}
.premium-cockpit> *{order:0!important}.premium-cockpit .dashboard-hero h1{color:var(--cockpit-ink)!important}.premium-cockpit .dashboard-hero:after{display:none}.premium-cockpit .dashboard-primary{background:#2458ee!important;color:#fff!important;box-shadow:0 5px 12px #2458ee20}
.premium-cockpit .cockpit-table{min-width:0!important;table-layout:fixed}.cockpit-table td,.cockpit-table th{overflow-wrap:anywhere}.cockpit-table:not(.cockpit-docs) th:nth-child(1){width:21%}.cockpit-table:not(.cockpit-docs) th:nth-child(2){width:31%}.cockpit-table:not(.cockpit-docs) th:nth-child(3){width:25%}.cockpit-table:not(.cockpit-docs) th:nth-child(4){width:18%}.cockpit-table:not(.cockpit-docs) th:nth-child(5){width:5%}.cockpit-docs th{width:50%}.cockpit-state{white-space:normal}.cockpit-docs th{white-space:normal}
@media(max-width:600px){.premium-cockpit .cockpit-table:not(.cockpit-docs){min-width:590px!important}}

.owner-operation-steps{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px}.owner-operation-steps a{padding:16px;border:1px solid var(--mv-border,#dce5ef);border-radius:12px;background:var(--mv-surface,#fff);text-decoration:none;display:grid;grid-template-columns:30px 1fr;gap:6px 10px;color:var(--mv-text,#173457)}.owner-operation-steps a>span{grid-row:span 2;border-radius:50%;background:var(--mv-soft,#edf4fc);width:30px;height:30px;display:grid;place-items:center}.owner-operation-steps a.complete>span{background:#e5f6ee;color:#12825b}.owner-operation-steps small{color:var(--mv-muted,#647c97);font-size:11px}.owner-trip-result{display:flex;align-items:center;gap:24px;flex-wrap:wrap}.owner-trip-result>div{flex:1;min-width:150px}.owner-trip-result small{display:block;color:var(--mv-muted,#647c97)}.owner-trip-result b{font-size:24px;display:block;margin-top:8px}.owner-trip-result p{flex-basis:100%;margin:0}.owner-trip-actions{display:flex;gap:10px;flex-wrap:wrap;margin-bottom:20px}@media(max-width:900px){.owner-operation-steps{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:500px){.owner-operation-steps a{padding:11px;font-size:12px}.owner-trip-actions a{width:100%}}

/* General 1.23.2: existing operations center, own-fleet pending work. */
.operation-board-kpis{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:12px;margin:18px 0}
.operation-board-kpis>a{display:flex;flex-direction:column;gap:8px;padding:18px;border:1px solid var(--mv-border);border-radius:18px;background:var(--mv-surface);color:var(--mv-text);text-decoration:none;transition:transform .15s,border-color .15s;min-width:0}
.operation-board-kpis>a:hover{transform:translateY(-2px)}
.operation-board-kpis>a.current{border-color:var(--mv-link);box-shadow:inset 0 0 0 1px var(--mv-link)}
.operation-board-kpis strong{font-size:2rem;line-height:1.1}.operation-board-kpis small{overflow-wrap:anywhere}.operation-board-kpis svg{width:22px;height:22px;color:var(--mv-link)}
.operation-board-list{display:grid;gap:12px}.operation-board-row{display:grid;grid-template-columns:minmax(220px,1fr) minmax(220px,1.25fr);gap:24px;padding:20px;border:1px solid var(--mv-border);border-radius:16px;background:var(--mv-surface)}
.operation-board-trip{display:flex;flex-wrap:wrap;gap:10px;align-items:center;min-width:0}.operation-board-trip>strong,.operation-board-trip>span:not(.tag),.operation-board-trip>small:last-child{flex-basis:100%;overflow-wrap:anywhere}
.operation-board-pending{display:flex;flex-wrap:wrap;align-content:center;gap:8px;min-width:0}.operation-board-pending>small{flex-basis:100%;color:var(--mv-muted)}.operation-board-pending .button{white-space:normal;text-align:left;overflow-wrap:anywhere}
.operation-board-empty{text-align:center;padding:35px 12px}.operation-board-empty>svg{width:34px;height:34px;color:var(--mv-link)}
.operation-board-search form{grid-template-columns:minmax(180px,1fr) auto auto;align-items:end}
@media(max-width:1100px){.operation-board-kpis{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:600px){.operation-board-kpis{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.operation-board-kpis>a{padding:14px}.operation-board-row{grid-template-columns:minmax(0,1fr);gap:16px;padding:16px}.operation-board-search form{grid-template-columns:minmax(0,1fr)}.operation-board-pending .button{width:100%;justify-content:flex-start}}
@media(prefers-reduced-motion:reduce){.operation-board-kpis>a{transition:none}.operation-board-kpis>a:hover{transform:none}}
