.bo-main--surface:has(.b2b-orders-page){padding:0 var(--ui-shell-inset) var(--ui-shell-inset)}.catalog.b2b-page:has(.b2b-orders-page){max-width:none;margin:0}.b2b-orders-page{height:calc(100dvh - 60px - var(--ui-shell-inset));flex-direction:column;display:flex}.ped-sw{box-shadow:none;font-variant-numeric:tabular-nums;letter-spacing:-.02em}.ped-sw[data-status=draft]{background:var(--ui-warning-soft);color:var(--ui-warning)}.ped-sw[data-status=confirmed]{background:var(--ui-brand-soft);color:var(--ui-brand)}.ped-sw[data-status=shipped]{background:var(--ui-success-soft);color:var(--ui-success)}.ped-sw[data-status=cancelled]{background:var(--ui-surface-subtle);color:var(--ui-text-muted)}.ped-list-sum{color:var(--ui-text-soft);font-weight:500}.ped-row-status{justify-content:flex-end;align-items:center;font-size:.7rem;font-weight:600;display:flex}.ped-row-status[data-status=draft]{color:var(--ui-warning)}.ped-row-status[data-status=confirmed]{color:var(--ui-brand)}.ped-row-status[data-status=shipped]{color:var(--ui-success)}.ped-row-status[data-status=cancelled]{color:var(--ui-text-muted)}.ped-list-scroll{background:var(--ui-surface);gap:0;padding:0}.ped-list-scroll .ped-row{padding:var(--ui-rail-control-padding-inline);gap:var(--ui-space-3)}.ped-list-scroll .ped-row .cust-avatar{width:var(--ui-space-7);height:var(--ui-space-7);border-radius:var(--ui-modal-control-radius)}.ped-list-scroll .ped-row.is-marked{box-shadow:inset 3px 0 0 var(--ui-brand)}.ped-row-body{flex-direction:column;flex:1;min-width:0;line-height:1.2;display:flex}.ped-row-name{white-space:nowrap;text-overflow:ellipsis;font-weight:500;overflow:hidden}.ped-row-sub{gap:var(--ui-space-3);min-width:0;font-size:var(--ui-text-xs);color:var(--ui-text-soft);white-space:nowrap;display:flex}.ped-row-sub>*{text-overflow:ellipsis;min-width:0;overflow:hidden}.ped-row-sub>:last-child{flex:none}.ped-row-end{text-align:right;flex-direction:column;flex:none;align-items:flex-end;line-height:1.2;display:flex}.ped-row-total{font-weight:600}.ped-detail-ref{font-family:var(--ui-font-mono,"Geist Mono", ui-monospace, "SFMono-Regular", monospace);font-variant-numeric:tabular-nums}.ped-detail-head{--k-head-action-bleed-block:.5rem;--k-head-action-bleed-inline:1.5rem;flex-wrap:nowrap}.ped-detail-head .cust-detail-id{flex:auto}.ped-detail-head .cust-detail-titles{min-width:0}.ped-detail-head .cust-detail-name,.ped-detail-head .cust-detail-sub{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.ped-row-ref{color:var(--ui-text-muted)}.ped-status-text{font-size:.78rem;font-weight:600}.ped-status-text[data-status=shipped]{color:var(--ui-success)}.ped-status-text[data-status=cancelled]{color:var(--ui-text-muted)}.ped-stepper-card{border:1px solid var(--ui-border);border-radius:var(--ui-radius-md);padding:1rem .9rem .85rem}.ped-stepper{align-items:flex-start;display:flex}.ped-step{flex-direction:column;flex:1;align-items:center;gap:.45rem;display:flex;position:relative}.ped-step-dot{border-radius:var(--ui-radius-sm);z-index:1;border:2px solid var(--ui-border-strong);background:var(--ui-surface);width:1.5rem;height:1.5rem;color:var(--ui-text-soft);font-variant-numeric:tabular-nums;place-items:center;font-size:.72rem;font-weight:700;display:grid}.ped-step-label{color:var(--ui-text-soft);letter-spacing:-.01em;text-align:center;font-size:.7rem;font-weight:600}.ped-step-conn{background:var(--ui-border);z-index:0;width:100%;height:2px;position:absolute;top:calc(.75rem - 1px);left:50%}.ped-step[data-state=done] .ped-step-dot{background:var(--ui-success);border-color:var(--ui-success);color:#fff}.ped-step[data-state=done] .ped-step-conn{background:var(--ui-success)}.ped-step[data-state=done] .ped-step-label,.ped-step[data-state=current] .ped-step-label{color:var(--ui-text)}.ped-step[data-state=current] .ped-step-dot{background:var(--ui-brand);border-color:var(--ui-brand);color:var(--ui-primary-fg);box-shadow:0 0 0 4px var(--ui-brand-soft)}.ped-step[data-state=cancelled] .ped-step-dot{background:var(--ui-danger-soft);border-color:var(--ui-danger);color:var(--ui-danger)}.ped-step[data-state=cancelled] .ped-step-conn{background:var(--ui-danger-soft)}.ped-step[data-state=cancelled] .ped-step-label{color:var(--ui-danger)}.ped-lines{border:1px solid var(--ui-border);border-radius:var(--ui-radius-md);overflow:hidden}.ped-lines-head,.ped-line-row{grid-template-columns:minmax(0,1fr) 3.5rem 5rem 5.5rem;align-items:center;gap:.75rem;padding:.6rem .9rem;display:grid}.ped-lines-head{background:var(--ui-surface-subtle);border-bottom:1px solid var(--ui-border);font-family:var(--ui-font-overline);letter-spacing:.03em;text-transform:uppercase;color:var(--ui-text-soft);font-size:.69rem;font-weight:500}.ped-line-row{border-bottom:1px solid var(--ui-border);font-size:.82rem}.ped-line-row:hover{background:var(--ui-surface-subtle)}.ped-r{text-align:right;justify-self:end}.ped-line-name{min-width:0;color:var(--ui-text);white-space:nowrap;text-overflow:ellipsis;font-weight:500;overflow:hidden}.ped-line-sub{font-weight:600}.ped-line-prod{flex-direction:column;gap:.1rem;min-width:0;display:flex}.ped-line-promo{color:var(--ui-text-muted);white-space:nowrap;text-overflow:ellipsis;font-size:.72rem;overflow:hidden}.ped-lines-foot{background:var(--ui-surface-subtle);border-top:1px solid var(--ui-border);justify-content:space-between;align-items:center;gap:.6rem;padding:.7rem .9rem;display:flex}.ped-lines-foot-count{color:var(--ui-text-muted);font-size:.78rem}.ped-lines-foot-total{align-items:baseline;gap:.5rem;display:flex}.ped-lines-foot-label{color:var(--ui-text-soft);font-size:.74rem}.ped-lines-foot-value{font-size:1.05rem;font-weight:700}.ped-notes{color:var(--ui-text-muted);background:var(--ui-surface-subtle);border:1px solid var(--ui-border);border-radius:var(--ui-radius-md);margin:0;padding:.7rem .85rem;font-size:.82rem;line-height:1.5}.ped-unassigned{color:var(--ui-warning);background:var(--ui-surface-subtle);border:1px solid var(--ui-warning);border-radius:var(--ui-radius-md);margin:0;padding:.7rem .85rem;font-size:.82rem;line-height:1.5}.ped-lines-head--purchase,.ped-line-row--purchase{grid-template-columns:minmax(0,1fr) 5.5rem 5.5rem}.ped-line-row--receipt{grid-template-columns:minmax(0,1fr) auto}.ped-line-row--receipt:last-child{border-bottom:0}@media (max-width:1150px){.ped-lines-head,.ped-line-row{grid-template-columns:minmax(0,1fr) 3rem 4.2rem 4.6rem;gap:.5rem}.ped-lines-head--purchase,.ped-line-row--purchase{grid-template-columns:minmax(0,1fr) 4.6rem 4.6rem}.ped-line-row--receipt{grid-template-columns:minmax(0,1fr) auto}}.ped-invoice-actions{flex-wrap:wrap;justify-content:flex-end;align-items:center;gap:.4rem;min-width:0;display:flex}.ped-invoice-actions .ventas-btn{white-space:nowrap}.ped-invoice-actions a{text-decoration:none}@media (max-width:640px){.b2b-orders-page .pl-layout[data-phone-view]{grid-template-rows:auto minmax(0,1fr)}.b2b-orders-page .pl-layout[data-phone-view=list]>.pl-detail,.b2b-orders-page .pl-layout[data-phone-view=detail]>:is(.scroll-shadow-cell,.cat-rail-host,.pl-list){display:none}.b2b-orders-page .pl-layout[data-phone-view]>:is(.pl-list,.pl-detail){grid-row:2;min-height:0;max-height:none}.b2b-orders-page .pl-layout[data-phone-view=detail]>.pl-detail{overscroll-behavior:contain;scrollbar-width:none;border-top:0;grid-row:1/3;display:block;overflow-y:auto}.b2b-orders-page .ped-detail-head{z-index:2;background:var(--ui-surface);--k-head-action-bleed-inline:1rem;padding-inline:1rem;position:sticky;top:0}.b2b-orders-page .pl-layout[data-phone-view=detail] .pl-detail-body{padding:1rem;overflow:visible}body:has(.mnav-bar) .b2b-orders-page .pl-layout[data-phone-view=detail]>.pl-detail{padding-bottom:calc(var(--mnav-clearance,0px) - var(--ui-shell-inset))}body:has(.mnav-bar) .b2b-orders-page .pl-layout[data-phone-view] .pl-list-scroll{padding-bottom:calc(var(--mnav-clearance,0px) - var(--ui-shell-inset) + 1rem)}}.inv-status{color:var(--ui-brand);font-size:.78rem;font-weight:600}.inv-status--row{justify-content:flex-end;font-size:.7rem;display:flex}.inv-status[data-status=overdue]{color:var(--ui-warning)}.inv-status[data-status=paid]{color:var(--ui-success)}.inv-status[data-status=voided]{color:var(--ui-text-muted)}.inv-summary{color:var(--ui-text-muted);flex-wrap:wrap;gap:.25rem .75rem;padding-inline:.75rem;font-size:.75rem;display:flex}.inv-preview-table{border-collapse:collapse;width:100%;font-size:.82rem}.inv-preview-table th,.inv-preview-table td{border-bottom:1px solid var(--ui-border);padding:.3rem .4rem}.inv-preview-table th{text-align:left;color:var(--ui-text-muted);font-weight:600}.inv-preview-table th:not(:first-child),.inv-preview-table td:not(:first-child){text-align:right}.ord-main .cat-table{table-layout:fixed}.ord-main .cat-row td{padding-block:.4rem}.ord-col-actions{width:8.5rem}.ord-ref{font-variant-numeric:tabular-nums;flex:none}.ord-note{min-width:0;margin-left:var(--ui-space-2);text-overflow:ellipsis;white-space:nowrap;color:var(--ui-text-muted);font-size:var(--ui-text-xs);overflow:hidden}
