.sales-list{container:sales / inline-size;width:100%;min-width:0;margin:20px 0;color:var(--coffee,#38261e)}
.sales-list-controls{display:flex;flex-wrap:wrap;align-items:end;gap:12px 20px;margin-bottom:16px}
.sales-list-controls p{flex:1 1 180px;margin:0;line-height:1.6}
.sales-list-controls label{display:grid;gap:6px;margin:0;max-width:100%;font-size:13px}
.sales-list-controls select{width:100%;max-width:100%;min-height:44px}
.sales-table{width:100%;min-width:0!important;table-layout:fixed;border-collapse:collapse;background:#fff;border:1px solid #e8d8c7}
.sales-table th,.sales-table td{white-space:normal;overflow-wrap:anywhere;word-break:normal;padding:16px 10px;vertical-align:top;min-width:0;text-align:left}
.sales-table th{font-size:12px;font-weight:600;background:#fbf8f4;color:#68564b}
.sales-table td{font-size:14px;border-bottom:1px solid #eee5db;line-height:1.55}
.sales-table small{display:block;font-size:12px;line-height:1.5;color:#715e51;margin-top:5px}
.sale-date-col,.sale-number-col{width:10%}.sale-products-col{width:22%}.sale-quantity-col{width:6%}.sale-value-col,.sale-payment-col{width:11%}.sale-status-col{width:16%}.sale-actions-col{width:14%}
.sales-table .sale-value{text-align:right;font-variant-numeric:tabular-nums}.sale-number{overflow-wrap:anywhere}.sale-products{display:block;font-weight:600}
.sale-status{display:inline-block;border-radius:20px;padding:4px 10px;font-size:12px;font-weight:600;background:#eee5db;color:#38261e}
.sale-status-cancelled{background:#f5e2df;color:#762e23}.sale-status-confirmed{background:#e8efe5;color:#365132}.sale-status-returned{background:#f4ead8;color:#67471c}
.sale-reason-short{font-size:13px;line-height:1.5;margin:10px 0;overflow-wrap:anywhere}
.sale-actions .sale-view-button{display:flex;align-items:center;justify-content:center;gap:6px;width:100%;min-height:44px;padding:9px 8px;white-space:normal;font-size:13px;line-height:1.4}
.sale-view-button svg{width:19px;height:19px;flex-shrink:0;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
.sale-more{margin-top:8px;min-width:0}.sale-more>summary{padding:10px 7px;font-size:13px;min-height:44px;cursor:pointer;border:1px solid #e8d8c7;border-radius:8px;background:#fbf8f4}
.sale-more-items{display:grid;gap:8px;margin-top:8px;min-width:0}.sale-more-items button{width:100%;min-height:44px;font-size:13px;white-space:normal;overflow-wrap:anywhere;padding:9px 8px}
.sales-list button:focus-visible,.sale-more>summary:focus-visible{outline:3px solid #9a6736;outline-offset:3px}
.sale-occurrence-toggle{min-height:44px;font-size:13px;white-space:normal;padding:8px}
.sale-occurrence-row>td{background:#fbf6ef;padding:20px 24px!important}.sales-table .sale-occurrence-row[hidden]{display:none!important}
.sale-occurrence{min-width:0;overflow-wrap:anywhere;max-width:100%;padding:12px 0;line-height:1.65}.sale-occurrence+.sale-occurrence{border-top:1px solid #dfcdbb}
.sale-occurrence h3{font:600 16px/1.5 Arial,sans-serif;margin:0 0 8px}.sale-occurrence p{margin:7px 0}.sale-reason-full{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.7}
.sales-pagination{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:16px;padding:16px 0}.sales-pagination button{min-height:44px}.sales-empty{padding:24px;background:#fff;border:1px solid #e8d8c7;border-radius:12px}
.sales-list .sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.sale-detail-dialog{width:min(920px,calc(100vw - 28px));max-width:calc(100vw - 28px)}
.sale-detail-dialog button:focus-visible{outline:3px solid #9a6736;outline-offset:3px}
@media(max-width:480px){.sale-detail-actions{display:grid;grid-template-columns:1fr}}
.sale-details,.sale-detail-actions{min-width:0;overflow-wrap:anywhere}.sale-detail-heading{padding:0 0 14px;border-bottom:1px solid #e8d8c7}.sale-details section{padding:18px 0;border-bottom:1px solid #e8d8c7}
.sale-details h3{font-size:19px;margin:0 0 14px}.sale-detail-items{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,260px),1fr));gap:14px}.sale-detail-items article{padding:16px;border:1px solid #e8d8c7;border-radius:12px;min-width:0}.sale-detail-items h4{margin:0 0 12px;line-height:1.5}
.sale-details dl{display:grid;gap:10px;margin:14px 0}.sale-details dl>div{display:flex;justify-content:space-between;align-items:start;gap:12px;flex-wrap:wrap}.sale-details dt{font-size:13px;color:#715e51;flex:1 1 150px}.sale-details dd{margin:0;font-variant-numeric:tabular-nums}.sale-details li{margin:10px 0;line-height:1.6}.sale-detail-actions{display:flex;flex-wrap:wrap;gap:10px;padding-top:20px}.sale-detail-actions button{min-height:44px}
@container sales (max-width:1000px){
 .sales-table,.sales-table tbody,.sales-table tr,.sales-table td{display:block;width:100%;min-width:0!important}.sales-table{border:0;background:transparent;table-layout:auto}.sales-table colgroup{display:none}
 .sales-table thead{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
 .sales-table .sale-group{background:#fff;border:1px solid #e8d8c7;border-radius:14px;margin-bottom:16px;padding:16px}
 .sales-table .sale-row{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:14px 16px}
 .sales-table td{border:0;padding:0!important;text-align:left}.sales-table td:before{content:attr(data-label);display:block;font-size:12px;font-weight:600;color:#715e51;margin-bottom:5px}
 .sales-table td[data-label="Produtos"],.sales-table td[data-label="Ações"]{grid-column:1/-1}.sales-table .sale-value{text-align:left}
 .sales-table .sale-actions{display:flex;flex-wrap:wrap;gap:10px;align-items:start}.sales-table .sale-actions:before{flex-basis:100%;margin:0}.sale-actions .sale-view-button{width:auto;flex:1 1 150px}.sale-actions .sale-more{margin:0;flex:1 1 140px}
 .sales-table .sale-occurrence-row{margin-top:18px;border-top:1px solid #e8d8c7;padding-top:14px}.sales-table .sale-occurrence-row td{background:transparent}.sales-table .sale-occurrence-row td:before{content:none}
}
@container sales (max-width:480px){.sales-table td[data-label="Situação / motivo"]{grid-column:1/-1}.sales-list-controls label{flex:1 1 130px}.sale-detail-actions{display:grid;grid-template-columns:1fr}}
@supports not (container-type:inline-size){@media(max-width:1280px){.sales-table,.sales-table tbody,.sales-table tr,.sales-table td{display:block;width:100%;min-width:0!important}.sales-table{border:0;background:transparent}.sales-table colgroup{display:none}.sales-table thead{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}.sales-table .sale-group{background:#fff;border:1px solid #e8d8c7;border-radius:14px;padding:18px;margin-bottom:16px}.sales-table td{padding:10px 0;border:0;text-align:left}.sales-table td:before{content:attr(data-label);display:block;font-size:12px;color:#715e51;font-weight:600}.sales-table .sale-occurrence-row td:before{content:none}}}
