.dsp-collection .dsp-payment-button{display:block;width:100%;height:36px;margin-top:8px;border:1px solid var(--orange-500,#ff7410);border-radius:2px;background:var(--orange-500,#ff7410);color:#fff;font:inherit;font-weight:600;cursor:pointer}
.dsp-collection .dsp-payment-button:disabled{opacity:.5;cursor:wait}
.dsp-collection .dsp-payment-button:focus-visible{outline:2px solid var(--navy-900,#0f172a);outline-offset:2px}
.dsp-sheet-foot{flex-wrap:wrap}
.dsp-sheet .dsp-pick{padding-top:8px;padding-bottom:8px}
.dsp-sheet .dsp-pick-name,
.dsp-sheet .dsp-pick-name > span{white-space:normal;overflow:visible;text-overflow:clip}
.dsp-sheet .dsp-pick-name > span{overflow-wrap:anywhere;line-height:1.35}
.dsp-order-list{display:grid;gap:12px;padding:2px 0 12px}
.dsp-order{border:1px solid var(--border-strong);border-radius:4px;background:var(--card);overflow:hidden}
.dsp-order-head{display:flex;justify-content:space-between;align-items:center;gap:16px;padding:12px 14px;background:var(--surface);border-bottom:1px solid var(--border)}
.dsp-order-head>div:first-child{display:grid;gap:4px;min-width:0}
.dsp-order-head strong{font-size:15px;color:var(--navy-900);overflow-wrap:anywhere}
.dsp-order-code{font-family:'IBM Plex Mono',monospace;font-size:12px;color:var(--orange-texto)}
.dsp-order-head small{font-size:12px;color:var(--muted)}
.dsp-order-balance{display:grid;justify-items:end;gap:4px;flex-shrink:0}
.dsp-order-balance>span{font-size:12px;color:var(--muted)}
.dsp-order-balance>strong{font-size:18px;font-variant-numeric:tabular-nums}
.dsp-order-balance button,.dsp-recovery button,.dsp-msg button{min-height:34px;border:1px solid var(--border-strong);border-radius:3px;padding:6px 12px;background:var(--card);color:var(--navy-900);font:inherit;font-size:12px;font-weight:600;cursor:pointer}
.dsp-order-balance button{border-color:var(--orange-texto);color:var(--orange-texto)}
.dsp-order-dispatches{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,270px),1fr));gap:0}
.dsp-order-dispatches .dsp-slip{border:0;border-radius:0;border-left:1px solid var(--border);box-shadow:none;background:var(--card);padding:12px 14px}
.dsp-order-dispatches .dsp-slip:first-child{border-left:0}
.dsp-order-dispatches .dsp-slip{display:flex;flex-direction:column}
.dsp-order-dispatches .dsp-slip-items{flex:1}
.dsp-order-dispatches .dsp-stamp{color:var(--orange-texto)}
.dsp-order-dispatches .dsp-slip-items span{white-space:normal;overflow:visible;text-overflow:clip;overflow-wrap:anywhere;line-height:1.4}
.dsp-order-dispatches .dsp-slip-items>div{align-items:start;gap:12px}
.dsp-order-dispatches .dsp-slip-items b{white-space:nowrap;font-variant-numeric:tabular-nums}
.dsp-order-dispatches .dsp-stamp{font-size:12px;min-height:34px}
.dsp-recovery{padding:12px;border:1px solid var(--warning-border);background:var(--warning-soft);color:var(--navy-900);border-radius:3px;margin-bottom:10px;font-size:13px}
.dsp-recovery p{margin:6px 0;line-height:1.4}
.dsp-recovery>div{display:flex;justify-content:space-between;align-items:center;gap:12px;padding-top:8px}
.dsp-operation-fields{border:0;padding:0;margin:0;min-width:0}
.dsp-operation-fields:disabled{opacity:.65}
.dsp-custom-dates{display:flex;gap:8px;flex-wrap:wrap}
.dsp-custom-dates label{display:grid;gap:3px;color:var(--muted);font-size:12px}
.dsp-custom-dates input{min-height:34px;border:1px solid var(--border-strong);border-radius:3px;background:var(--card);color:var(--navy-900);padding:4px 8px;font:inherit}
.dsp-module button:focus-visible,.dsp-custom-dates input:focus-visible{outline:2px solid var(--orange-texto);outline-offset:2px}
.dsp-module button:disabled{cursor:not-allowed;opacity:.5}
.dsp-rango{flex-wrap:wrap}
.dsp-sheet:focus{outline:none}
@media(max-width:600px){.dsp-order-head{padding:10px;gap:8px}.dsp-order-head strong{font-size:14px}.dsp-order-balance>strong{font-size:17px}.dsp-order-dispatches .dsp-slip{border-left:0;border-top:1px solid var(--border);padding:10px}.dsp-order-dispatches .dsp-slip:first-child{border-top:0}.dsp-order button,.dsp-recovery button{min-height:44px}.dsp-recovery>div{flex-wrap:wrap}.dsp-custom-dates input{font-size:16px}.dsp-sheet .dsp-pick{flex-wrap:wrap}.dsp-sheet .dsp-pick-name{flex-basis:100%}}

/* Compact order ledger: one balance per order. */
.dsp-order-list{gap:8px;align-content:start}
.dsp-order-head{padding:8px 10px;gap:12px}
.dsp-order-head>div:first-child{grid-template-columns:auto minmax(0,1fr);gap:3px 8px;align-items:baseline}
.dsp-order-head>div:first-child>small{grid-column:1/-1}
.dsp-order-head strong{font-size:14px;line-height:1.3}
.dsp-order-balance{grid-template-columns:auto auto;gap:2px 12px;align-items:center}
.dsp-order-balance>span{grid-column:1;grid-row:1;font-size:11px}
.dsp-order-balance>strong{grid-column:1;grid-row:2;font-size:16px;white-space:nowrap}
.dsp-order-balance>button{grid-column:2;grid-row:1/3;min-height:32px;padding:5px 10px}
.dsp-order-dispatches{grid-template-columns:minmax(0,1fr)}
.dsp-order-dispatches .dsp-slip{display:grid;grid-template-columns:108px minmax(0,1fr) auto;gap:4px 12px;align-items:center;padding:8px 10px;margin:0;border:0;border-top:1px solid var(--border)}
.dsp-order-dispatches .dsp-slip:first-child{border-top:0}
.dsp-order-dispatches .dsp-slip-top{grid-column:1;grid-row:1;display:grid;gap:2px;align-self:start}
.dsp-order-dispatches .dsp-slip-when{margin:0;font-size:11px}
.dsp-order-dispatches .dsp-slip-items{grid-column:2;grid-row:1;border:0;padding:0;font-size:12px;min-width:0}
.dsp-order-dispatches .dsp-stamp{grid-column:3;grid-row:1;width:auto;margin:0;min-height:32px;max-width:180px;padding:5px 9px;border-style:solid;border-radius:3px;letter-spacing:0;line-height:1.3}
.dsp-order-dispatches .dsp-slip-actions{grid-column:2/4;grid-row:2;display:flex;justify-content:flex-end;gap:12px;margin:0}
.dsp-order-dispatches .dsp-slip-actions button{width:auto;min-height:26px;padding:3px 5px;font-size:11px}
@media(min-width:601px){
 .dsp-order-list{grid-template-columns:repeat(2,minmax(0,1fr));align-items:start}
 .dsp-order{min-width:0}
 .dsp-order-head{display:grid;gap:6px}
 .dsp-order-balance{width:100%;grid-template-columns:1fr auto auto;gap:8px;justify-items:start}
 .dsp-order-balance>span,.dsp-order-balance>strong,.dsp-order-balance>button{grid-row:1;grid-column:auto}
 .dsp-order-dispatches{grid-template-columns:minmax(0,1fr)}
 .dsp-order-dispatches .dsp-slip{grid-template-columns:minmax(0,1fr);grid-template-rows:auto 1fr auto auto;gap:4px;padding:8px 10px;align-items:start}
 .dsp-order-dispatches .dsp-slip:only-child{grid-column:1/-1}
 .dsp-order-dispatches .dsp-slip-top{grid-column:1;grid-row:1;display:flex;align-items:baseline;justify-content:space-between;gap:8px}
 .dsp-order-dispatches .dsp-slip-items{grid-column:1;grid-row:2}
 .dsp-order-dispatches .dsp-stamp{grid-column:1;grid-row:3;justify-self:start;max-width:100%;min-height:30px}
 .dsp-order-dispatches .dsp-slip-actions{grid-column:1;grid-row:4;justify-content:space-between;flex-wrap:wrap;gap:4px 8px}
}
@media(max-width:600px){
 .dsp-order-head{flex-wrap:wrap}
 .dsp-order-head>div:first-child{width:100%}
 .dsp-order-balance{width:100%;grid-template-columns:1fr auto auto;gap:8px;justify-items:start}
 .dsp-order-balance>span,.dsp-order-balance>strong,.dsp-order-balance>button{grid-row:1;grid-column:auto}
 .dsp-order-dispatches .dsp-slip{grid-template-columns:minmax(0,1fr) auto;gap:6px 8px}
 .dsp-order-dispatches .dsp-slip-top{grid-column:1;grid-row:1;display:flex;flex-wrap:wrap;gap:8px}
 .dsp-order-dispatches .dsp-slip-items{grid-column:1/-1;grid-row:2}
 .dsp-order-dispatches .dsp-stamp{grid-column:2;grid-row:1}
 .dsp-order-dispatches .dsp-slip-actions{grid-column:1/-1;grid-row:3}
 .dsp-order .dsp-order-balance>button,.dsp-order-dispatches .dsp-stamp,.dsp-order-dispatches .dsp-slip-actions button{min-height:44px}
}
