/* Sigma 1.23 — tarjetas, controles y acciones. No cambia logos ni fuentes del sistema. */
:root{--sg-info:#032e7c;--sg-success:#228455;--sg-warning:#ad7415;--sg-danger:#cd1433;--sg-neutral:#66758a;--sg-border:#dbe3ef;--sg-ink:#263449;--sg-muted:#657287}
body .sg-summary-card{--sg-accent:var(--sg-info);--sg-tint:#f8faff;position:relative;box-sizing:border-box;background:var(--sg-tint)!important;background-image:none!important;border:1px solid var(--sg-border)!important;border-top:4px solid var(--sg-accent)!important;border-left-width:1px!important;border-radius:9px!important;box-shadow:0 3px 12px rgb(3 46 124 / 5%)!important;padding:18px 20px!important;min-width:0!important;height:auto!important;color:var(--sg-ink)!important;display:flex;flex-direction:column;gap:8px;overflow:visible}
body .sg-summary-card:before,body .sg-summary-card:after{display:none!important}
body .sg-summary-card.sg-card-wide{border-top-width:1px!important;border-left:4px solid var(--sg-accent)!important}
body .sg-summary-card.sg-tone-success{--sg-accent:var(--sg-success);--sg-tint:#f7fcf9}
body .sg-summary-card.sg-tone-warning{--sg-accent:var(--sg-warning);--sg-tint:#fffbf2}
body .sg-summary-card.sg-tone-danger{--sg-accent:var(--sg-danger);--sg-tint:#fff8fa}
body .sg-summary-card.sg-tone-neutral{--sg-accent:var(--sg-neutral);--sg-tint:#f8f9fb}
body .sg-summary-card :is(h3,.kpi-label,.label,span:first-child){color:var(--sg-muted)!important;font-size:13px;line-height:1.45;margin:0;font-weight:600}
body .sg-summary-card :is(strong,.value,.kpi-value,.metric-value){color:var(--sg-accent)!important;font-size:clamp(21px,2vw,30px);font-weight:750;line-height:1.25;font-variant-numeric:tabular-nums;overflow-wrap:anywhere;white-space:normal}
body .sg-summary-card :is(small,.muted,.kpi-description){color:var(--sg-muted)!important;font-size:12px!important;font-weight:400;line-height:1.5;margin:0}
body :is(.filters,.finance-filters,.compact-filter,.pp-tools,.imports-toolbar form,.form-panel,.op-form) :is(input:not([type=checkbox]):not([type=radio]):not([type=hidden]),select){box-sizing:border-box!important;min-height:44px!important;height:auto!important;line-height:1.5!important;font-size:14px;padding-top:9px!important;padding-bottom:9px!important}
body :is(.filters,.finance-filters){display:flex;flex-wrap:wrap;gap:14px;align-items:end}
body :is(.filters,.finance-filters)>label{min-width:190px;flex:1 1 190px;max-width:100%;line-height:1.5}
body :is(.filters,.finance-filters) select{width:100%;padding-right:34px!important}
body :is(button,a,input[type=submit]).sg-delete,body :is(button,a).btn-danger,body .btn-delete{background:#cd1433!important;color:#fff!important;border:1px solid #b4102d!important;box-shadow:none!important;text-decoration:none!important}
body :is(button,a,input[type=submit]).sg-delete:hover,body .btn-danger:hover,body .btn-delete:hover{background:#a90d28!important;color:#fff!important}
body :is(button,a).sg-delete:disabled{opacity:.55;cursor:not-allowed}
body .sg-delete:focus-visible{outline:3px solid #e4a3b0;outline-offset:3px}
.sg-delete-note{padding:12px 16px;background:#fff5e2;border-left:3px solid #ad7415;border-radius:5px;line-height:1.55}
.sg-delete-plan{display:grid;grid-template-columns:repeat(auto-fit,minmax(210px,1fr));gap:12px}.sg-delete-plan div{padding:12px;background:#f4f7fc;border:1px solid #dbe3ef;border-radius:6px}
.sg-import-help{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:18px;font-size:13px;line-height:1.65}.sg-import-help strong{color:#032e7c}
.sg-history-action{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.sg-pill{display:inline-block;font-size:11px;padding:3px 8px;border-radius:5px;background:#eef3fa;color:#526176}
@media(max-width:640px){body .sg-summary-card{padding:16px!important}body :is(.filters,.finance-filters)>label{min-width:0;flex-basis:100%}}

#op-sales-lines{min-width:2550px}#op-sales-lines input{min-width:110px;width:100%;box-sizing:border-box}#op-sales-lines th:nth-child(2),#op-sales-lines td:nth-child(2){min-width:240px}.op-form .table-wrap{max-width:100%}
