/* Billing workspace. Semantic cards; isolated from other order stages. */
body .page.compras-page.flow-stage-faturar{--bill-ink:#122047;--bill-muted:#637699;--bill-border:#e2eaf5;--bill-blue:#255bfb;background:#f3f7fc!important;color:var(--bill-ink);padding:28px!important;max-width:100%;min-width:0;font-family:Inter,system-ui,-apple-system,'Segoe UI',sans-serif!important;font-size:14px;line-height:1.5}
.flow-stage-faturar *, .flow-stage-faturar *::before, .flow-stage-faturar *::after{box-sizing:border-box}
body .page.flow-stage-faturar .pedidos-header{display:flex;align-items:center;justify-content:space-between;gap:20px;margin:0 0 24px;padding:0;background:transparent;border:0;box-shadow:none}
body .page.flow-stage-faturar .pedidos-header h1{margin:0 0 4px!important;color:#101c40;font-size:27px!important;font-weight:750;letter-spacing:-.7px;line-height:1.25}
body .page.flow-stage-faturar .flow-step-badge{display:none}
body .page.flow-stage-faturar .page-subtitle{display:block!important;margin:0!important;font-size:14px!important;color:var(--bill-muted);line-height:1.6}
body .page.flow-stage-faturar .flow-header-actions{display:flex;gap:10px;flex-shrink:0}
body .page.flow-stage-faturar .refresh-button{display:inline-flex;gap:8px;align-items:center;justify-content:center;border:1px solid #d3dfef;background:white!important;color:#25456f!important;border-radius:8px;padding:10px 14px;min-height:42px;font-size:13px;box-shadow:0 2px 3px #13254904;white-space:nowrap}
body .page.flow-stage-faturar .refresh-button:last-child{background:var(--bill-blue)!important;color:white!important;border-color:var(--bill-blue)}
.flow-stage-faturar .billing-icon{width:18px;height:18px;min-width:18px;display:inline-block;vertical-align:middle;flex-shrink:0}
.flow-stage-faturar .billing-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin-bottom:18px}
.flow-stage-faturar .billing-stat{position:relative;text-align:left;display:flex;align-items:flex-start;gap:16px;padding:22px 18px;min-width:0;background:#fff;border:1px solid var(--bill-border);border-radius:12px;color:var(--bill-ink);box-shadow:0 4px 16px #243f6903;cursor:pointer;transition:border-color .15s,box-shadow .15s}
.flow-stage-faturar .billing-stat:hover{border-color:#a6bef9;box-shadow:0 4px 18px #275af011}
.flow-stage-faturar .billing-stat[aria-pressed=true]{border-color:#a8c0ff}
.flow-stage-faturar .billing-stat>.billing-icon{position:absolute;right:12px;top:18px;color:#6d85b2;width:16px;height:16px;min-width:16px}
.flow-stage-faturar .billing-stat-copy{display:flex;flex-direction:column;gap:4px;min-width:0;padding-right:9px}
.flow-stage-faturar .billing-stat-copy>span{font-size:13px;font-weight:550;line-height:1.4;min-height:19px}
.flow-stage-faturar .billing-stat-copy strong{font-size:31px;line-height:1.2;font-weight:750;letter-spacing:-.7px}
.flow-stage-faturar .billing-stat-copy small{font-size:12px;color:var(--bill-muted)}
.flow-stage-faturar .billing-stat-icon{display:flex;align-items:center;justify-content:center;flex-shrink:0;width:48px;height:48px;border-radius:11px;background:linear-gradient(145deg,#1f4ffc,#477dff);color:#fff;box-shadow:0 4px 12px #255bfb20}
.flow-stage-faturar .billing-stat-icon .billing-icon{width:26px;height:26px}
.flow-stage-faturar .billing-stat.is-green .billing-stat-icon{background:linear-gradient(145deg,#079350,#23b77e);box-shadow:0 4px 12px #07935012}
.flow-stage-faturar .billing-stat.is-green strong{color:#078750}
.flow-stage-faturar .billing-stat.is-amber .billing-stat-icon{background:#fff0d7;color:#e9890c;box-shadow:none}
.flow-stage-faturar .billing-stat.is-red .billing-stat-icon{background:linear-gradient(145deg,#ee4561,#ff6682);box-shadow:0 4px 12px #ee456112}
.flow-stage-faturar .billing-stat.is-red strong{color:#dc3453}
.flow-stage-faturar .billing-filters{background:#fff;border:1px solid var(--bill-border);border-radius:12px;padding:18px;margin-bottom:22px}
.flow-stage-faturar .billing-filter-primary{display:grid;grid-template-columns:minmax(0,2fr) minmax(215px,1fr) auto;align-items:end;gap:16px}
.flow-stage-faturar .billing-filters label{display:flex;flex-direction:column;gap:7px;min-width:0;font-size:12px;font-weight:600;color:#3b5278}
.flow-stage-faturar .billing-filters input,.flow-stage-faturar .billing-filters select,.flow-stage-faturar .billing-list-controls select{width:100%;height:42px;min-width:0;border:1px solid #d8e2f1;border-radius:7px;background:#fff;color:var(--bill-ink);font:inherit;font-size:13px;font-weight:400;padding:8px 12px;outline-offset:2px}
.flow-stage-faturar .billing-search-wrap{position:relative;display:flex;align-items:center;min-width:0}
.flow-stage-faturar .billing-search-wrap>.billing-icon{position:absolute;left:13px;color:#60769d;pointer-events:none}
.flow-stage-faturar .billing-search-wrap input{padding-left:40px}
.flow-stage-faturar input::placeholder{color:#7a8ba7;opacity:1}
.flow-stage-faturar .billing-filter-extra{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin-top:16px;padding-top:16px;border-top:1px solid #edf1f7}
.flow-stage-faturar .billing-active-filters{display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:12px;color:#526d9a;padding-top:12px}
.flow-stage-faturar .billing-active-filters button{display:flex;align-items:center;gap:6px;padding:6px;border:0;background:transparent;color:#255bdb;cursor:pointer;font:inherit;white-space:nowrap}
.flow-stage-faturar .billing-filter-dot{width:7px;height:7px;background:#255bfb;border-radius:50%}
.flow-stage-faturar .billing-list-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:14px}
.flow-stage-faturar .billing-list-heading h2{font-size:18px;letter-spacing:-.3px;margin:0 0 3px;font-weight:700;color:#122047}
.flow-stage-faturar .billing-list-heading h2 span{font-variant-numeric:tabular-nums}
.flow-stage-faturar .billing-list-heading p{font-size:12px;color:var(--bill-muted);margin:0}
.flow-stage-faturar .billing-list-controls{display:flex;align-items:center;gap:14px;flex-shrink:0}
.flow-stage-faturar .billing-list-controls label{display:flex;align-items:center;gap:10px;font-size:12px;color:#425979;white-space:nowrap}
.flow-stage-faturar .billing-list-controls select{width:155px}
.flow-stage-faturar .billing-density{display:flex;gap:6px}
.flow-stage-faturar .billing-density button{width:40px;height:40px;border:1px solid #dce5f3;border-radius:7px;background:transparent;color:#7285a8;cursor:pointer}
.flow-stage-faturar .billing-density button[aria-pressed=true]{border-color:#9eb9ff;color:#255bfb;background:#fff}
.flow-stage-faturar .billing-orders-container,.flow-stage-faturar .billing-orders,.flow-stage-faturar .billing-order-list{width:100%;min-width:0}
.flow-stage-faturar .billing-order-list{display:grid;gap:14px}
.flow-stage-faturar .billing-order-card{min-width:0;padding:18px;background:#fff;border:1px solid var(--bill-border);border-radius:12px;box-shadow:0 2px 10px #15325603;transition:box-shadow .15s}
.flow-stage-faturar .billing-order-card:hover{box-shadow:0 4px 18px #15325608}
.flow-stage-faturar .billing-order-card.is-canceled{border-left:3px solid #ed9aa6}
.flow-stage-faturar .billing-order-top{display:grid;grid-template-columns:minmax(150px,1.05fr) minmax(230px,2fr) minmax(270px,1.6fr) minmax(150px,1fr);gap:18px;align-items:start;padding-bottom:17px}
.flow-stage-faturar .billing-order-top>div{min-width:0}
.flow-stage-faturar .billing-order-identity{display:flex;flex-direction:column;align-items:flex-start;gap:4px}
.flow-stage-faturar .billing-order-code{max-width:100%;padding:0;background:none;border:0;box-shadow:none;color:#153977;font-size:14px;line-height:1.4;font-weight:750;cursor:pointer;text-align:left;overflow-wrap:anywhere}
.flow-stage-faturar .billing-order-code:hover{color:#255bfb;text-decoration:underline}
.flow-stage-faturar .billing-company{font-size:12px;font-weight:650;line-height:1.3;color:#3a5683;overflow-wrap:anywhere}
.flow-stage-faturar .billing-marketplace{display:flex;align-items:center;gap:5px;font-size:11px;color:#405677;line-height:1.4}
.flow-stage-faturar .billing-marketplace .marketplace-logo{display:inline-flex;width:18px;height:18px;min-width:18px;font-size:9px;align-items:center;justify-content:center;border-radius:4px}
.flow-stage-faturar .billing-badge{display:inline-flex;align-items:center;border-radius:6px;padding:3px 9px;font-size:11px;font-weight:600;color:#345dac;background:#eff4ff;line-height:1.4}
.flow-stage-faturar .billing-badge.is-error{color:#b62543;background:#fff0f2}
.flow-stage-faturar .billing-pending-link{display:flex;align-items:center;gap:5px;max-width:100%;color:#bd364c;font-size:11px;text-decoration:none;line-height:1.4}
.flow-stage-faturar .billing-pending-link .billing-icon{width:13px;height:13px;min-width:13px}
.flow-stage-faturar .billing-product{display:flex;align-items:center;gap:12px;padding-left:15px;border-left:1px solid #edf1f7;min-height:72px}
.flow-stage-faturar .billing-product>div{min-width:0}
.flow-stage-faturar .billing-product strong{display:block;font-size:13px;font-weight:600;line-height:1.55;overflow-wrap:anywhere;color:#142446}
.flow-stage-faturar .billing-product span{display:block;margin-top:5px;font-size:11px;color:#6b7e9d;overflow-wrap:anywhere}
.flow-stage-faturar .billing-product span b{padding:0 5px;font-weight:400}
.flow-stage-faturar .billing-product img,.flow-stage-faturar .billing-product>.product-thumb,.flow-stage-faturar .billing-product>.product-thumb-placeholder{width:56px!important;height:64px!important;min-width:56px;object-fit:contain;flex-shrink:0;border:1px solid #e2e9f3;border-radius:8px;padding:4px;background:#fff}
.flow-stage-faturar .billing-fiscal-fields{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}
.flow-stage-faturar .billing-fiscal-fields label{display:flex;flex-direction:column;gap:6px;color:#6a7f9e;font-size:11px;min-width:0}
.flow-stage-faturar .billing-fiscal-fields input{width:100%;min-width:0;height:35px;padding:6px;border:1px solid #e2eaf5;border-radius:6px;background:#fcfdff;color:#2b416b;font-family:inherit;font-size:11px;box-shadow:none}
.flow-stage-faturar .billing-fiscal-fields input:disabled{opacity:.7;background:#f8fafc;color:#60718e}
.flow-stage-faturar .billing-save{font-size:10px;line-height:1.35;color:#60799b;overflow-wrap:anywhere}
.flow-stage-faturar .billing-save.is-error,.flow-stage-faturar .billing-save.is-invalid,.flow-stage-faturar .billing-save.is-session{color:#b72740}
.flow-stage-faturar .billing-save.is-saved{color:#078252}
.flow-stage-faturar .billing-customer{display:flex;flex-direction:column;gap:6px;border-left:1px solid #edf1f7;padding-left:15px;font-size:11px;color:#6a7f9e}
.flow-stage-faturar .billing-customer strong{font-size:12px;color:#293d63;font-weight:550;line-height:1.5;overflow-wrap:anywhere}
.flow-stage-faturar .billing-customer time{font-size:10px}
.flow-stage-faturar .billing-operations{display:grid;grid-template-columns:minmax(205px,1fr) minmax(380px,2.6fr) auto;align-items:start;gap:14px;border-top:1px solid #eaf0f8;padding-top:14px}
.flow-stage-faturar .billing-carrier{min-width:0}
.flow-stage-faturar .billing-carrier label{display:flex;flex-direction:column;gap:5px;font-size:11px;color:#617696;font-weight:400}
.flow-stage-faturar .billing-carrier select{width:100%;max-width:100%;min-width:0;height:37px;border:1px solid #dbe4f2;border-radius:6px;padding:7px 6px;background:#fff;color:#1c365f;font-size:11px}
.flow-stage-faturar .billing-carrier select:disabled{background:#f8fafc;color:#586d8e;opacity:1}
.flow-stage-faturar .billing-carrier small{font-size:10px;line-height:1.5;color:#7386a3;max-width:255px}
.flow-stage-faturar .billing-progress{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px}
.flow-stage-faturar .billing-status{display:flex;flex-direction:column;min-width:0;gap:5px}
.flow-stage-faturar .billing-status>span{color:#617696;font-size:10px;line-height:1.5;white-space:nowrap}
.flow-stage-faturar .billing-status-value{min-width:0;min-height:37px;display:flex;align-items:center;justify-content:center;gap:7px;border-radius:7px;padding:7px;font-size:11px;font-weight:600;line-height:1.4;overflow-wrap:anywhere;text-align:center}
.flow-stage-faturar .billing-status-value .billing-icon{width:14px;height:14px;min-width:14px}
.flow-stage-faturar .billing-status-value.is-neutral{background:#f2f5fa;color:#627695}
.flow-stage-faturar .billing-status-value.is-info{background:#edf3ff;color:#1e55d7}
.flow-stage-faturar .billing-status-value.is-success{background:#e6f8ee;color:#087845}
.flow-stage-faturar .billing-status-value.is-warning{background:#fff6e4;color:#a56800}
.flow-stage-faturar .billing-status-value.is-error{background:#fff0f2;color:#b52c46}
.flow-stage-faturar .billing-actions{display:flex;align-items:start;gap:8px;padding-top:20px;flex-wrap:wrap;justify-content:flex-end;max-width:360px}
body .flow-stage-faturar .billing-btn,.flow-stage-faturar .billing-actions-menu summary{font-family:inherit;display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:38px;max-width:100%;border:1px solid #d8e2f1;border-radius:7px;padding:8px 11px;background:#fff;color:#36537e;font-size:11px;font-weight:600;line-height:1.4;cursor:pointer;text-decoration:none;box-shadow:none;white-space:normal}
.flow-stage-faturar .billing-btn .billing-icon,.flow-stage-faturar .billing-actions-menu .billing-icon{width:15px;height:15px;min-width:15px}
body .flow-stage-faturar .billing-btn-outline{border-color:#aec5ff;background:#eaf1ff;color:#214fc9;box-shadow:0 2px 6px #255bfb0d}
body .flow-stage-faturar .billing-btn-primary{background:linear-gradient(135deg,#316bea,#3154db);border-color:#315fe7;color:white;box-shadow:0 3px 9px #315fe726}
body .flow-stage-faturar .billing-btn-next{color:#fff;border-color:#087852}
body .flow-stage-faturar .billing-btn-next:not(:disabled){background:linear-gradient(135deg,#11855e,#08754f);box-shadow:0 3px 8px #08754f20}
body .flow-stage-faturar .billing-btn:disabled,body .flow-stage-faturar .refresh-button:disabled{opacity:1;background:#f5f7fb!important;border-color:#e4eaf3;color:#62708c!important;box-shadow:none;cursor:not-allowed}
.flow-stage-faturar .billing-btn:hover:not(:disabled){filter:brightness(.97)}
.flow-stage-faturar .billing-actions-menu{position:relative;flex-shrink:0}
.flow-stage-faturar .billing-actions-menu summary{list-style:none;white-space:nowrap;background:#f0edff;border-color:#d8ccf8;color:#6441ad}
.flow-stage-faturar .billing-actions-menu summary::-webkit-details-marker{display:none}
.flow-stage-faturar .billing-menu-options{position:absolute;right:0;top:calc(100% + 6px);width:230px;max-width:calc(100vw - 40px);padding:6px;border:1px solid #dce5f3;background:#fff;box-shadow:0 12px 36px #20335f20;border-radius:10px;z-index:30}
.flow-stage-faturar .billing-menu-options button{display:block;width:100%;padding:10px;border:0;border-radius:5px;background:transparent;color:#2b446e;font:inherit;font-size:12px;text-align:left;cursor:pointer;white-space:normal}
.flow-stage-faturar .billing-menu-options button:hover:not(:disabled){background:#f1f6ff}
.flow-stage-faturar .billing-menu-options button:disabled{color:#93a1b8;cursor:not-allowed}
.flow-stage-faturar .billing-menu-options button.is-danger{color:#bf2845;border-top:1px solid #edf1f7}
.flow-stage-faturar .billing-notice{display:flex;align-items:flex-start;gap:8px;margin-top:10px;border-radius:6px;padding:8px 10px;font-size:11px;line-height:1.6;overflow-wrap:anywhere}
.flow-stage-faturar .billing-notice .billing-icon{width:15px;height:15px;min-width:15px;margin-top:1px}
.flow-stage-faturar .billing-notice.is-warning{background:#fff8e8;color:#8d5c08}
.flow-stage-faturar .billing-notice.is-error{background:#fff0f2;color:#aa2540}
.flow-stage-faturar .billing-notice.is-success{background:#edf9f2;color:#14744a}
.flow-stage-faturar .billing-order-footer{display:flex;gap:15px;align-items:center;justify-content:space-between;border-top:1px solid #f0f3f8;margin-top:12px;padding-top:12px}
.flow-stage-faturar .billing-documents{display:flex;align-items:center;flex-wrap:wrap;gap:8px 14px;min-width:0}
.flow-stage-faturar .billing-documents a{display:inline-flex;align-items:center;gap:5px;color:#3261c9;font-size:11px;line-height:1.5;text-decoration:none;overflow-wrap:anywhere;min-width:0;max-width:100%}
.flow-stage-faturar .billing-documents a:hover{text-decoration:underline}
.flow-stage-faturar .billing-documents .billing-icon{width:13px;height:13px;min-width:13px}
.flow-stage-faturar .billing-advance{flex-shrink:0;display:flex;gap:8px}
.flow-stage-faturar .billing-delivery-note{display:flex;flex-wrap:wrap;gap:10px;font-size:11px;color:#637699;margin-top:10px}
.flow-stage-faturar .billing-delivery-note a{color:#255bdb}
.flow-stage-faturar .billing-empty{text-align:center;padding:42px 20px;background:white;border:1px dashed #d6e2f4;border-radius:12px;color:#657d9f}
.flow-stage-faturar .billing-empty>.billing-icon{width:30px;height:30px}
.flow-stage-faturar .billing-empty h3{font-size:17px;color:#243f69;margin:12px 0 6px}
.flow-stage-faturar .billing-empty p{font-size:13px;margin:0 0 16px}
body .page.flow-stage-faturar .pedidos-pagination{display:flex;justify-content:flex-end;align-items:center;flex-wrap:wrap;gap:12px;padding:20px 0;background:none;border:0}
body .page.flow-stage-faturar .pagination-info{font-size:12px;color:#617696}
body .page.flow-stage-faturar .pagination-button{min-height:38px;padding:8px 14px;background:#fff;color:#376095;border:1px solid #dce5f3;border-radius:7px;box-shadow:none}
body .page.flow-stage-faturar .pagination-button:disabled{color:#9aa8bd;background:#f7f9fc;cursor:not-allowed}
.flow-stage-faturar .is-compact .billing-order-card{padding:12px 16px}
.flow-stage-faturar .is-compact .billing-order-top{padding-bottom:10px;gap:12px}
.flow-stage-faturar .is-compact .billing-product img{width:42px!important;height:48px!important;min-width:42px}
.flow-stage-faturar .is-compact .billing-operations{padding-top:10px}
.flow-stage-faturar .is-compact .billing-order-footer{padding-top:8px;margin-top:8px}
.flow-stage-faturar :is(button,a,input,select,summary):focus-visible{outline:3px solid #8db2ff!important;outline-offset:3px}
@media(min-width:1700px){.flow-stage-faturar .billing-order-top{grid-template-columns:180px minmax(260px,2fr) minmax(320px,1.5fr) minmax(170px,1fr)}.flow-stage-faturar .billing-actions{max-width:none;flex-wrap:nowrap}.flow-stage-faturar .billing-status>span{font-size:11px}}
@media(max-width:1390px){.flow-stage-faturar .billing-operations{grid-template-columns:minmax(220px,1fr) minmax(400px,2fr)}.flow-stage-faturar .billing-actions{grid-column:1/-1;max-width:none;padding-top:0}.flow-stage-faturar .billing-order-top{grid-template-columns:155px minmax(200px,1.5fr) minmax(250px,1.5fr)}.flow-stage-faturar .billing-customer{grid-column:2/-1;flex-direction:row;align-items:center;border-left:0;padding-left:0;gap:12px}.flow-stage-faturar .billing-stat{gap:11px;padding:18px 14px}.flow-stage-faturar .billing-stat-icon{width:40px;height:40px}.flow-stage-faturar .billing-stat-copy>span{font-size:12px}.flow-stage-faturar .billing-stat-copy small{font-size:11px}}
@media(max-width:1100px){body .page.compras-page.flow-stage-faturar{padding:20px!important}.flow-stage-faturar .billing-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.flow-stage-faturar .billing-stat{padding:20px}.flow-stage-faturar .billing-stat-copy>span{font-size:13px}.flow-stage-faturar .billing-order-top{grid-template-columns:160px minmax(0,1fr)}.flow-stage-faturar .billing-fiscal-fields{grid-column:1/-1}.flow-stage-faturar .billing-customer{grid-column:1/-1}.flow-stage-faturar .billing-operations{grid-template-columns:minmax(190px,1fr) minmax(0,2fr)}.flow-stage-faturar .billing-progress{grid-template-columns:repeat(2,minmax(0,1fr))}.flow-stage-faturar .billing-filter-primary{grid-template-columns:minmax(0,1.6fr) minmax(180px,1fr)}.flow-stage-faturar .billing-filter-toggle{grid-column:1/-1;justify-self:end}.flow-stage-faturar .billing-list-heading{align-items:flex-start}.flow-stage-faturar .billing-list-controls label{font-size:0}.flow-stage-faturar .billing-list-controls select{font-size:12px}}
@media(max-width:700px){body .page.compras-page.flow-stage-faturar{padding:16px!important}.flow-stage-faturar .billing-stat{padding:16px 12px;gap:10px}.flow-stage-faturar .billing-stat-copy{padding-right:0}.flow-stage-faturar .billing-stat-copy>span{font-size:12px}.flow-stage-faturar .billing-stat>.billing-icon{display:none}.flow-stage-faturar .billing-stat-icon{width:34px;height:36px;border-radius:8px}.flow-stage-faturar .billing-stat-icon .billing-icon{width:21px;height:21px}.flow-stage-faturar .billing-stat-copy strong{font-size:27px}.flow-stage-faturar .billing-filter-primary{grid-template-columns:1fr}.flow-stage-faturar .billing-filter-extra{grid-template-columns:1fr}.flow-stage-faturar .billing-filter-toggle{justify-self:stretch}.flow-stage-faturar .billing-list-heading{flex-direction:column;gap:12px}.flow-stage-faturar .billing-list-controls{width:100%;justify-content:space-between}.flow-stage-faturar .billing-list-controls label{font-size:12px}.flow-stage-faturar .billing-filters{padding:14px}.flow-stage-faturar .billing-order-top{grid-template-columns:1fr;gap:15px}.flow-stage-faturar .billing-product{border:0;padding:0;min-height:0}.flow-stage-faturar .billing-order-identity{display:grid;grid-template-columns:1fr auto;gap:6px 10px}.flow-stage-faturar .billing-order-code{grid-column:1}.flow-stage-faturar .billing-company{grid-column:1}.flow-stage-faturar .billing-marketplace{grid-column:1}.flow-stage-faturar .billing-order-identity>.billing-badge{grid-column:2;grid-row:1/3;align-self:start;max-width:125px}.flow-stage-faturar .billing-pending-link{grid-column:1/-1}.flow-stage-faturar .billing-customer{flex-wrap:wrap;gap:4px 10px}.flow-stage-faturar .billing-customer strong{flex:1 1 65%}.flow-stage-faturar .billing-customer time{width:100%}.flow-stage-faturar .billing-operations{grid-template-columns:1fr}.flow-stage-faturar .billing-carrier small{max-width:none}.flow-stage-faturar .billing-carrier select{height:42px;font-size:13px}.flow-stage-faturar .billing-status>span{font-size:11px}.flow-stage-faturar .billing-status-value{min-height:40px;font-size:12px}.flow-stage-faturar .billing-actions{justify-content:flex-start}.flow-stage-faturar .billing-actions-menu{order:3}.flow-stage-faturar .billing-order-footer{align-items:stretch;flex-direction:column;gap:12px}.flow-stage-faturar .billing-advance .billing-btn{width:100%}.flow-stage-faturar .billing-advance{width:100%}.flow-stage-faturar .billing-documents{gap:12px}.flow-stage-faturar .billing-menu-options{right:auto;left:0}.flow-stage-faturar .billing-fiscal-fields{gap:8px}.flow-stage-faturar .billing-fiscal-fields input{height:40px;font-size:12px}.flow-stage-faturar .billing-order-card{padding:15px}.flow-stage-faturar .billing-notice{font-size:12px}.flow-stage-faturar .billing-btn{min-height:40px!important;font-size:12px!important}body .page.flow-stage-faturar .pedidos-header{align-items:flex-start;flex-direction:column;gap:14px}body .page.flow-stage-faturar .flow-header-actions{width:100%;justify-content:flex-end}body .page.flow-stage-faturar .pedidos-pagination{justify-content:space-between}.flow-stage-faturar .pagination-info{order:-1;width:100%;text-align:center}}
@media(max-width:380px){body .page.compras-page.flow-stage-faturar{padding:10px!important}.flow-stage-faturar .billing-stats{gap:8px}.flow-stage-faturar .billing-stat{gap:8px;padding:12px 9px}.flow-stage-faturar .billing-stat-icon{display:none}.flow-stage-faturar .billing-stat-copy small{font-size:10px}.flow-stage-faturar .billing-order-card{padding:12px}.flow-stage-faturar .billing-fiscal-fields{grid-template-columns:repeat(2,minmax(0,1fr))}.flow-stage-faturar .billing-fiscal-fields label:last-child{grid-column:1/-1}.flow-stage-faturar .billing-list-controls{gap:8px}.flow-stage-faturar .billing-list-controls label{gap:5px;font-size:10px}.flow-stage-faturar .billing-list-controls select{width:128px}.flow-stage-faturar .billing-density button{width:34px}.flow-stage-faturar .billing-active-filters{align-items:start}.flow-stage-faturar .billing-menu-options{max-width:calc(100vw - 64px)}}
@media(prefers-reduced-motion:reduce){.flow-stage-faturar *{transition:none!important}}
body .page.flow-stage-faturar .pedidos-header>div:first-child{display:block!important;min-width:0}
@media(min-width:1391px){.flow-stage-faturar .billing-operations{grid-template-columns:minmax(205px,1fr) minmax(430px,2.3fr) auto}.flow-stage-faturar .billing-actions{max-width:none;flex-wrap:nowrap}}
body .page.compras-page.flow-stage-faturar .pedidos-header>div:first-child{text-align:left!important}
body .page.compras-page.flow-stage-faturar .page-subtitle{white-space:normal!important;overflow:visible!important;text-overflow:clip!important;max-width:none!important;width:auto!important}
@media(max-width:700px){body .page.compras-page.flow-stage-faturar .pedidos-header>div:first-child{width:100%!important}body .page.compras-page.flow-stage-faturar .flow-header-actions{display:flex!important;flex-direction:row!important;flex-wrap:wrap!important;gap:8px!important;width:100%!important;max-width:none!important}body .page.compras-page.flow-stage-faturar .flow-header-actions .refresh-button{flex:1 1 130px!important;width:auto!important;max-width:none!important;padding:10px!important;font-size:12px!important}}

/* Gentle colors keep unavailable actions distinct from enabled buttons. */
body .flow-stage-faturar .billing-btn-outline:disabled{background:#f1f4fc!important;border-color:#dce4f5;color:#68789b!important}
body .flow-stage-faturar .billing-btn-primary:disabled{background:#edf1ff!important;border-color:#d7dff7;color:#62729c!important}
body .flow-stage-faturar .billing-btn-next:disabled{background:#edf6f1!important;border-color:#d4e6dd;color:#607c6b!important}
body .flow-stage-faturar .billing-filter-toggle{background:#edf3ff;color:#2452c5;border-color:#cfddfc}
body .page.flow-stage-faturar .flow-header-actions .refresh-button:first-child{background:#edf7f6!important;border-color:#c7e3df;color:#206b63!important}
