/* V20.457 - Gastos universales y respaldos; no modifica scanner de productos */
.exp-shell{max-width:1540px;margin:auto;padding:5px 0 32px;color:var(--ink,#17263e)}
.exp-header{background:linear-gradient(115deg,#eaf6ff,#fff 84%);border:1px solid #dce9f3;border-radius:18px;display:flex;justify-content:space-between;gap:18px;align-items:center;padding:24px;margin-bottom:16px}
.exp-header h2{margin:4px 0 8px;font-size:clamp(23px,2vw,30px);line-height:1.2}.exp-header p{margin:0;color:#64748b;font-size:14px;max-width:610px}.exp-kicker{font-size:11px;letter-spacing:.13em;font-weight:800;color:#147bd0}
.exp-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-bottom:16px}
.exp-stat{background:#fff;border:1px solid #e1e8f2;border-radius:14px;padding:19px;display:flex;flex-direction:column;gap:8px;box-shadow:0 3px 12px rgba(20,44,71,.03)}.exp-stat span{font-size:12px;color:#64748b;font-weight:700}.exp-stat strong{font-size:clamp(21px,2vw,26px)}.exp-stat small{font-size:11px;color:#64748b}
.exp-layout{display:grid;grid-template-columns:minmax(0,1.8fr) minmax(310px,.95fr);gap:16px;align-items:start}.exp-main,.exp-side{min-width:0;display:grid;gap:16px}
.exp-panel{background:#fff;border:1px solid #e1e8f2;border-radius:16px;padding:18px;min-width:0}.exp-panel h3{font-size:17px;margin:0}.exp-panel h4{font-size:15px;margin:12px 0 5px}.exp-panel-title{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:14px;flex-wrap:wrap}
.exp-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px}.exp-form label,.exp-pay-form label{display:flex;flex-direction:column;gap:6px;font-size:12px;font-weight:700;color:#586a81;min-width:0}.exp-form input,.exp-form select,.exp-form textarea,.exp-pay-form input,.exp-pay-form select,.exp-search{box-sizing:border-box;width:100%;max-width:100%;border:1px solid #cfdae5;border-radius:9px;min-height:40px;padding:9px 11px;background:#fff;color:#17263e;font:inherit}.exp-form textarea{min-height:74px}.exp-wide{grid-column:1/-1}.exp-payment-preview{padding:12px 13px;border:1px solid #d6e5f4;border-radius:10px;background:#f4faff}.exp-payment-preview p{margin:0 0 10px}.exp-help{font-size:12px;color:#64748b;margin:0}.exp-submit{text-align:right}
.exp-search{width:min(100%,300px);font-size:13px}.exp-table-wrap{overflow-x:auto}.exp-table{width:100%;border-collapse:collapse;font-size:13px;min-width:610px}.exp-table th{text-align:left;background:#f4f7f9;color:#65758a;font-weight:700;font-size:11px;padding:12px 9px}.exp-table td{border-bottom:1px solid #e6ebf1;padding:12px 9px;vertical-align:middle}.exp-table td strong{display:block;font-size:13px}.exp-table td small{display:block;color:#7c8ba0;font-size:11px;margin-top:4px}.exp-empty{text-align:center;color:#64748b;padding:30px!important}
.exp-chip{display:inline-block;border-radius:99px;padding:5px 9px;font-size:11px;font-weight:800;white-space:nowrap}.exp-paid{background:#e5f7ed;color:#156342}.exp-partial{background:#fff3db;color:#805800}.exp-pending{background:#edf3fb;color:#315b84}
.exp-detail-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:16px 0}.exp-detail-grid div{background:#f3f7fb;border-radius:9px;padding:11px 8px}.exp-detail-grid small{display:block;color:#66758c;font-size:10px}.exp-detail-grid strong{font-size:16px;display:block;margin-top:7px}
.exp-subtitle{font-size:13px;font-weight:800;margin:22px 0 10px;padding-top:15px;border-top:1px solid #e4edf4}.exp-payment{padding:10px 0;border-bottom:1px solid #edf0f4;display:flex;flex-direction:column;gap:4px}.exp-payment span,.exp-payment small{font-size:11px;color:#60748a}.exp-pay-form{display:grid;gap:10px;background:#f6faff;border:1px solid #d8e8f5;border-radius:12px;padding:14px;margin:14px 0}.exp-pay-form h4{margin:0}.exp-pay-form p{margin:0}.exp-attachments{display:flex;gap:8px;flex-wrap:wrap}.exp-doc-list{display:flex;gap:8px;flex-wrap:wrap;margin-top:10px}
@media(max-width:1040px){.exp-layout{grid-template-columns:1fr}.exp-stats{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:600px){.exp-header{flex-direction:column;align-items:stretch;padding:16px}.exp-stats{gap:8px}.exp-stat{padding:12px}.exp-stat strong{font-size:20px}.exp-panel{padding:14px}.exp-form{grid-template-columns:1fr}.exp-header>.btn{width:100%}.exp-detail-grid strong{font-size:13px}}
@media(max-width:600px){
 .exp-table{min-width:0;width:100%;display:block}.exp-table thead{display:none}.exp-table tbody{display:block}
 .exp-table tr[data-exp-row]{display:grid;grid-template-columns:1fr 1fr;gap:7px 11px;padding:12px 0;border-bottom:1px solid #e4edf4}
 .exp-table tr[data-exp-row] td{padding:2px 0;border:0;min-width:0;word-break:break-word}
 .exp-table tr[data-exp-row] td:first-child{grid-column:1/-1;padding-bottom:3px}
 .exp-table tr[data-exp-row] td:nth-child(2){color:#66758a;font-size:11px;grid-column:1/-1}
 .exp-table tr[data-exp-row] td:nth-child(3):before{content:'Importe';display:block;font-size:10px;color:#66758a;margin-bottom:3px}
 .exp-table tr[data-exp-row] td:nth-child(4):before{content:'Saldo';display:block;font-size:10px;color:#66758a;margin-bottom:3px}
 .exp-table tr[data-exp-row] td:nth-child(5){display:flex;align-items:center}
 .exp-table tr[data-exp-row] td:nth-child(6){display:flex;justify-content:end}
 .exp-table tr[data-exp-row] td:nth-child(6) .btn{min-height:35px}
 .exp-table tr[data-exp-row][hidden]{display:none}
 .exp-table tbody tr:not([data-exp-row]) td{display:block}
}
