/* Consumidor Ventas: no redefine el shell ni los valores de otros módulos. */
.sale-toolbar .module-toolbar__heading { min-width:0; max-width:100%; }
.sale-toolbar .module-toolbar__heading .page-title { min-width:0; overflow-wrap:anywhere; white-space:normal; }
@media(min-width:64.001rem) { .sale-toolbar .module-toolbar:not(.module-toolbar--with-breadcrumbs) .module-toolbar__heading { padding-right:15rem; } }
.sale-standard { min-width:0; --sale-section-space:14px; }
.sale-standard .financial-document .form-section {
 padding:var(--sale-section-space); border:1px solid var(--color-content-border);
 border-radius:var(--radius-control); background:var(--color-surface-raised); min-width:0;
}
.sale-standard .financial-document .form-section>.form-section__title,
.sale-standard .financial-document>.financial-summary>.financial-summary__heading {
 margin:calc(-1 * var(--sale-section-space)) calc(-1 * var(--sale-section-space)) 12px;
 padding:10px var(--sale-section-space); border-bottom:1px solid var(--color-content-border);
 background:linear-gradient(180deg,var(--surface-glass-high),var(--color-info-surface));
 clip-path:inset(0 round calc(var(--radius-control) - 1px) calc(var(--radius-control) - 1px) 0 0);
 overflow-wrap:anywhere;
}
.sale-standard .financial-document>.financial-summary {
 background:var(--finance-money-body); border-color:var(--finance-money-border); color:var(--finance-money-text);
 container:sale-finance / inline-size;
}
.sale-standard .financial-document>.financial-summary>.financial-summary__heading {
 background:var(--finance-money-header); border-color:var(--finance-money-border); margin-bottom:0;
}
.sale-standard .financial-summary :is(h2,label,dt,dd,span,.form-field__help,.financial-freight p,.financial-total small) { color:var(--finance-money-text); }
.sale-standard .financial-document .financial-total { background:var(--finance-money-total); border:1px solid var(--finance-money-border); }
.sale-standard .financial-summary :is(.financial-tax-values,.financial-freight) { border-color:var(--finance-money-border); }
.sale-standard .financial-document .financial-lines tbody tr { background:var(--color-surface-raised); }
.sale-standard .financial-document .financial-lines tbody tr:nth-child(even) { background:var(--color-content-subtle); }
.sale-standard .financial-document .financial-lines td { border-bottom:1px solid var(--color-content-border); }
.sale-standard .financial-document .financial-lines tr.sale-line-pending { background:var(--color-warning-surface); }
.sale-standard .financial-document .financial-lines td[data-label="Material"] { min-width:0; }
.sale-standard .financial-document .financial-lines .input-affix { width:11rem; max-width:100%; min-width:0; }
.sale-standard.compact-editor .financial-lines td[data-label="Precio"] input { width:100%; }
.sale-standard input[type="number"] { text-align:right; font-variant-numeric:tabular-nums; }
.sale-standard .financial-document .financial-value-field { grid-template-columns:minmax(0,1fr) minmax(0,11rem); }
.sale-standard .sale-value-full { grid-column:1/-1; font-size:.875rem; text-align:right; overflow-wrap:anywhere; min-width:0; }
.sale-standard .financial-value-field :is(label,.input-affix) { min-width:0; overflow-wrap:anywhere; }
.sale-standard .financial-document__body { container:sale-body / inline-size; }
.sale-standard .sale-lines-section { container:sale-lines / inline-size; }
.sale-standard .sale-add-line { grid-template-columns:minmax(0,1fr) 7rem 11rem auto; }
.sale-standard .sale-add-line .material-picker { min-width:0; }
.sale-standard .sale-add-line .material-picker__input:has(.material-picker__clear) input { padding-right:56px; }
.sale-icon-action { display:inline-flex; align-items:center; justify-content:center; gap:6px; flex-wrap:wrap; max-width:100%; }
.sale-icon-action>img { width:24px; height:24px; object-fit:contain; flex:0 0 24px; }
.sale-icon-action>span { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); }
.sale-standard .sale-line-actions { min-width:0; }
.sale-standard .financial-facts dd,.sale-standard .financial-lines td::before { overflow-wrap:anywhere; }
.sale-operation { margin-top:12px; }

@container sale-finance (max-width:22rem) {
 .sale-standard .financial-document .financial-value-field { grid-template-columns:minmax(0,1fr); }
 .sale-standard .financial-document .financial-value-field .input-affix { width:11rem; max-width:100%; justify-self:end; }
}
@container sale-lines (max-width:48rem) {
 .sale-standard .sale-add-line { grid-template-columns:minmax(0,1fr) minmax(0,1.4fr); }
 .sale-standard .sale-add-line .material-picker { grid-column:1/-1; }
 .sale-standard .sale-add-line>.button { grid-column:1/-1; justify-self:end; }
}
/* El espacio real del cuerpo gobierna las partidas, incluso al ampliar el texto. */
@container sale-body (max-width:48rem) {
 .sale-standard .financial-document .data-table-wrap { overflow:visible; }
 .sale-standard .financial-document .financial-lines { display:block; width:100%; min-width:0; }
 .sale-standard .financial-document .financial-lines thead { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); }
 .sale-standard .financial-document .financial-lines tbody { display:grid; gap:0; }
 .sale-standard .financial-document .financial-lines tr { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1.4fr); gap:8px; padding:12px 6px; margin:0; border:0; border-bottom:1px solid var(--color-content-border); border-radius:0; }
 .sale-standard .financial-document .financial-lines td { display:grid; grid-template-columns:minmax(0,1fr); align-content:start; width:auto; min-width:0; padding:0; border:0; text-align:start; white-space:normal; }
 .sale-standard .financial-document .financial-lines td::before { content:attr(data-label); display:block; font-size:.75rem; color:var(--color-text-muted); }
 .sale-standard .financial-document .financial-lines td[data-label="Material"],.sale-standard .financial-document .financial-lines td[data-label="Acciones"],.sale-standard .financial-document .financial-lines td[data-label="Bodega"],.sale-standard .financial-document .financial-lines td[data-label="Existencias"] { grid-column:1/-1; }
 .sale-standard .financial-document .financial-lines td[data-label="Material"]::before,.sale-standard .financial-document .financial-lines td[data-label="Acciones"]::before { display:none; }
 .sale-standard .financial-document .financial-lines td[data-label="Importe"] { grid-column:1/-1; text-align:end; }
 .sale-standard .financial-document .financial-lines td[data-label="Acciones"] { justify-items:end; }
 .sale-standard.compact-editor .financial-lines td[data-label="Cantidad"] input { width:7rem; max-width:100%; }
 .sale-standard .sale-warehouse-tools .warehouse-picker { width:100%; min-width:0; }
}
@container sale-body (max-width:24rem) {
 .sale-standard .financial-document .financial-lines tr { grid-template-columns:minmax(0,1fr); }
 .sale-standard .financial-document .financial-lines td[data-label] { grid-column:1; }
}
@media(max-width:64rem) {
 .sale-actions .form-action-bar.form-action-bar--contract.form-action-bar--icons-only .desktop-action:has(img) { width:auto; height:auto; min-width:48px; min-height:48px; padding:8px 10px; gap:6px; flex-wrap:wrap; }
 .sale-actions .form-action-bar.form-action-bar--contract.form-action-bar--icons-only .desktop-action:has(img) .desktop-action__label { position:static; width:auto; height:auto; margin:0; clip-path:none; overflow:visible; white-space:normal; overflow-wrap:anywhere; }
 .sale-actions .form-action-bar.form-action-bar--contract[data-layout="compact"] { grid-template-columns:minmax(0,1fr) minmax(0,1fr) 48px; }
 .sale-actions .form-action-bar__secondary:popover-open .desktop-action { align-self:stretch; justify-content:flex-start; text-align:start; }
 .app-main .sale-standard.compact-editor :is(input.form-control,select.form-control,textarea.form-control),.sale-standard .button,.sale-picker :is(.button,.form-control,.picker-close,.picker-choice),.sale-picker .pagination__button { min-height:max(48px,2.75rem); min-width:48px; }
 .sale-picker .picker-close { flex-basis:48px; }
 .sale-standard .sale-icon-action>span { position:static; width:auto; height:auto; clip-path:none; overflow:visible; white-space:normal; overflow-wrap:anywhere; }
 .sale-standard .sale-icon-action { min-width:48px; min-height:48px; white-space:normal; }
}
html[data-touch-capable="true"] .sale-standard.compact-editor :is(input.form-control,select.form-control,textarea.form-control),html[data-touch-capable="true"] .sale-standard .button,html[data-touch-capable="true"] .sale-picker :is(.button,.form-control,.picker-close,.picker-choice) { min-height:48px; min-width:48px; }
.sale-actions .form-action-bar.form-action-bar--contract.form-action-bar--icons-only:is([data-touch="true"],[data-layout="compact"]) .desktop-action:has(img) { width:auto; height:auto; min-width:48px; min-height:48px; padding:8px 10px; gap:6px; flex-wrap:wrap; }
.sale-actions .form-action-bar.form-action-bar--contract.form-action-bar--icons-only:is([data-touch="true"],[data-layout="compact"]) .desktop-action:has(img) .desktop-action__label { position:static; width:auto; height:auto; margin:0; clip-path:none; overflow:visible; white-space:normal; overflow-wrap:anywhere; }
html[data-touch-capable="true"] .sale-standard .sale-icon-action>span { position:static; width:auto; height:auto; clip-path:none; overflow:visible; white-space:normal; overflow-wrap:anywhere; }
