/* Aveltrim VM Vendas Pro V1 - estilos isolados, sem alterar o DOM. */
html body [data-view="vm-sales"].vm-page{--vs-ink:#173329;--vs-green:#176b47;--vs-deep:#14372c;--vs-muted:#536e60;--vs-line:#d5e3da;--vs-soft:#f3f7f4}
html body [data-view="vm-sales"].vm-page .vm-toolbar{max-width:1280px;margin:0 auto 12px!important}
html body [data-view="vm-sales"].vm-page .vm-toolbar p{font-size:13px!important;line-height:1.55!important;color:var(--vs-muted)!important;margin:0!important}
html body [data-view="vm-sales"].vm-page #vmBody{max-width:1280px;margin:0 auto;min-width:0;display:grid;gap:18px}
html body [data-view="vm-sales"].vm-page #vmBody > .vm-order-filters{display:flex;align-items:end;justify-content:space-between;flex-wrap:wrap;gap:16px 24px;margin:0!important;padding:0 0 4px!important;background:transparent!important;border:0!important;box-shadow:none!important;min-width:0}
html body [data-view="vm-sales"].vm-page .vm-order-filters h3{font-size:22px!important;color:var(--vs-ink);line-height:1.3;margin:0 0 6px!important;letter-spacing:-.02em}
html body [data-view="vm-sales"].vm-page .vm-order-filters .vm-help{font-size:13px!important;line-height:1.5!important;color:var(--vs-muted);margin:0!important}
html body [data-view="vm-sales"].vm-page .vm-order-filter-fields{display:grid;grid-template-columns:minmax(140px,.8fr) minmax(190px,1.2fr);align-items:end;gap:12px;min-width:0;max-width:100%}
html body [data-view="vm-sales"].vm-page .vm-order-filter-fields label,html body [data-view="vm-sales"].vm-page .vm-quality-filter label{display:grid!important;gap:7px!important;min-width:0!important;font-size:13px!important;font-weight:650!important;color:var(--vs-ink)!important;line-height:1.4;margin:0!important}
html body [data-view="vm-sales"].vm-page :is(.vm-order-filter-fields,.vm-quality-filter) :is(input,select){box-sizing:border-box;width:100%!important;max-width:100%;min-width:0;min-height:42px!important;height:42px!important;margin:0!important;border:1px solid #cbded1!important;border-radius:8px!important;background-color:#fff!important;color:var(--vs-ink)!important;font-size:14px!important;box-shadow:none!important}
html body [data-view="vm-sales"].vm-page :is(.vm-order-filter-fields,.vm-quality-filter) :is(input,select):focus-visible{outline:2px solid #86b99f!important;outline-offset:1px}
html body [data-view="vm-sales"].vm-page #vmBody > .vm-test-orders{padding:20px!important;min-width:0;border:1px solid var(--vs-line)!important;border-radius:12px!important;box-shadow:none!important;background:#fff!important;margin:0!important;display:grid;gap:16px;align-content:start}
html body [data-view="vm-sales"].vm-page .vm-test-orders .vm-machine-toolbar{margin:0!important;gap:8px;align-items:start}
html body [data-view="vm-sales"].vm-page .vm-test-orders .vm-machine-toolbar > div{min-width:0;width:100%;display:flex;align-items:center;justify-content:space-between;gap:10px 16px;flex-wrap:wrap}
html body [data-view="vm-sales"].vm-page .vm-test-orders h3{font-size:18px!important;line-height:1.4;color:var(--vs-ink);margin:0!important;letter-spacing:-.015em}
html body [data-view="vm-sales"].vm-page .vm-test-orders .vm-machine-toolbar .vm-help{font-size:12px!important;line-height:1.45!important;margin:0!important;padding:6px 10px;border:1px solid #d5e3da;background:#edf6ef;color:#176b47;border-radius:7px}
html body [data-view="vm-sales"].vm-page:has(#vmSalesMode option[value="test"]:checked) .vm-test-orders .vm-machine-toolbar .vm-help{background:#fff6e4;color:#795410;border-color:#eddbb7}
html body [data-view="vm-sales"].vm-page .vm-test-orders .vm-kpis{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:12px!important;margin:0!important}
html body [data-view="vm-sales"].vm-page .vm-test-orders .vm-kpis > div{min-width:0;display:grid;gap:10px;align-content:start;background:#fff!important;border:1px solid var(--vs-line);border-radius:10px!important;padding:15px 16px!important}
html body [data-view="vm-sales"].vm-page .vm-test-orders .vm-kpis > div:first-child{background:var(--vs-deep)!important;border-color:var(--vs-deep)}
html body [data-view="vm-sales"].vm-page .vm-test-orders .vm-kpis small{font-size:13px!important;line-height:1.4!important;color:var(--vs-muted);margin:0!important;display:flex;align-items:center;gap:9px}
html body [data-view="vm-sales"].vm-page .vm-test-orders .vm-kpis strong{display:block;font-size:25px!important;line-height:1.2;font-weight:750;color:var(--vs-ink);font-variant-numeric:tabular-nums;overflow-wrap:anywhere;margin:0!important}
html body [data-view="vm-sales"].vm-page .vm-test-orders .vm-kpis > div:first-child :is(small,strong){color:#fff!important}
html body [data-view="vm-sales"].vm-page .vm-test-orders .vm-quality-filter{display:grid!important;grid-template-columns:minmax(0,2fr) minmax(0,1fr);gap:10px 12px!important;align-items:end;margin:0!important;padding:0!important}
html body [data-view="vm-sales"].vm-page .vm-test-orders .vm-quality-filter input[type=search]{padding-left:36px!important;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23536e60' stroke-width='1.7'%3E%3Ccircle cx='10.5' cy='10.5' r='6.5'/%3E%3Cpath d='m16 16 5 5'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:12px center;background-size:16px}
html body [data-view="vm-sales"].vm-page .vm-test-orders .vm-quality-filter small{grid-column:1/-1;color:var(--vs-muted);font-size:12px!important;line-height:1.4;margin:0!important}
html body [data-view="vm-sales"].vm-page .vm-test-orders .table,html body:has([data-view="vm-sales"].page.active) dialog.av-form-dialog.av-catalog-dialog.vm-dialog:has(form.av-form > .vm-help + .table) .av-form > .table{border:1px solid #d5e3da!important;border-radius:9px!important;overflow:auto!important;min-width:0;max-width:100%;margin:0!important;box-shadow:none!important}
html body [data-view="vm-sales"].vm-page .vm-test-orders table,html body:has([data-view="vm-sales"].page.active) dialog.av-form-dialog.av-catalog-dialog.vm-dialog:has(form.av-form > .vm-help + .table) .av-form > .table table{width:100%;border-spacing:0;border-collapse:separate;min-width:660px}
html body [data-view="vm-sales"].vm-page .vm-test-orders th,html body:has([data-view="vm-sales"].page.active) dialog.av-form-dialog.av-catalog-dialog.vm-dialog:has(form.av-form > .vm-help + .table) .av-form > .table th{background:#f2f6f3!important;color:#526b5e!important;font-size:12px!important;font-weight:700!important;text-transform:none!important;letter-spacing:0;padding:12px!important;line-height:1.4;white-space:nowrap;border-bottom:1px solid #d5e3da!important}
html body [data-view="vm-sales"].vm-page .vm-test-orders td,html body:has([data-view="vm-sales"].page.active) dialog.av-form-dialog.av-catalog-dialog.vm-dialog:has(form.av-form > .vm-help + .table) .av-form > .table td{padding:12px!important;line-height:1.5!important;font-size:13px!important;color:#173329!important;vertical-align:middle;border-bottom:1px solid #e7efe9!important}
html body [data-view="vm-sales"].vm-page .vm-test-orders tr:last-child td,html body:has([data-view="vm-sales"].page.active) dialog.av-form-dialog.av-catalog-dialog.vm-dialog:has(form.av-form > .vm-help + .table) .av-form > .table tr:last-child td{border-bottom:0!important}
html body [data-view="vm-sales"].vm-page .vm-test-orders tr[hidden]{display:none!important}
html body [data-view="vm-sales"].vm-page .vm-test-orders tr[data-order-status]:hover td{background:#f8fbf9}
html body [data-view="vm-sales"].vm-page .vm-test-orders td:first-child small{display:inline-block;color:var(--vs-muted);font-size:12px;margin-top:4px}
html body [data-view="vm-sales"].vm-page .vm-test-orders td.empty{height:130px;text-align:center!important;color:var(--vs-muted)!important;background:#f6f9f7!important;white-space:normal!important}
html body [data-view="vm-sales"].vm-page .vm-test-orders table:has(td.empty){min-width:0}
html body [data-view="vm-sales"].vm-page .vm-test-orders .vm-quality-status{font-size:12px!important;line-height:1.4;padding:5px 9px;border-radius:999px;white-space:nowrap}
html body [data-view="vm-sales"].vm-page .vm-test-orders .vm-quality-status[data-tone="ok"]{color:#176b47;background:#e5f2e9}
html body [data-view="vm-sales"].vm-page .vm-test-orders .vm-quality-status[data-tone="warn"]{color:#805711;background:#fff2d9}
html body [data-view="vm-sales"].vm-page .vm-test-orders .vm-quality-status[data-tone="danger"]{color:#983d36;background:#fcefeb}
html body [data-view="vm-sales"].vm-page .vm-test-orders .vm-quality-status[data-tone="info"]{color:#2857a0;background:#edf3fc}
html body [data-view="vm-sales"].vm-page .vm-test-orders button[data-test-detail]{min-height:34px!important;padding:7px 11px!important;border-radius:7px!important;background:#fff!important;border:1px solid #cbded1!important;color:#176b47!important;font-weight:650;font-size:12px!important;box-shadow:none!important}
html body [data-view="vm-sales"].vm-page .vm-test-orders button[data-test-detail]:hover{background:#eaf4ed!important}
html body [data-view="vm-sales"].vm-page .vm-test-orders button:focus-visible{outline:2px solid #86b99f!important;outline-offset:2px}
/* Subtelas originais: Pedido e Conciliar entrega de teste. Um único scroll. */
html body:has([data-view="vm-sales"].page.active) dialog.av-form-dialog.av-catalog-dialog.vm-dialog:has(form.av-form > .vm-help + .table){width:min(840px,calc(100vw - 24px))!important;max-width:none!important;max-height:calc(100dvh - 24px)!important;padding:0!important;border:1px solid #d5e3da!important;border-radius:14px!important;background:#fff!important;overflow:auto!important;color:#173329!important;overscroll-behavior:contain}
html body:has([data-view="vm-sales"].page.active) dialog.av-form-dialog.av-catalog-dialog.vm-dialog:has(form.av-form > .vm-help + .table) .av-form{display:flex!important;flex-direction:column!important;align-items:stretch!important;gap:0!important;max-height:none!important;overflow:visible!important;margin:0!important;padding:0!important;min-width:0}
html body:has([data-view="vm-sales"].page.active) dialog.av-form-dialog.av-catalog-dialog.vm-dialog:has(form.av-form > .vm-help + .table) #avFormTitle{font-size:21px!important;line-height:1.3!important;color:#173329!important;padding:20px 24px 14px!important;margin:0!important;border-bottom:1px solid #e3ebe5!important;flex:none!important}
html body:has([data-view="vm-sales"].page.active) dialog.av-form-dialog.av-catalog-dialog.vm-dialog:has(form.av-form > .vm-help + .table) #avFormTitle::before{content:'VENDING MACHINES / VENDAS';display:block;color:#176b47;font-size:10px;letter-spacing:.1em;font-weight:750;margin-bottom:6px}
html body:has([data-view="vm-sales"].page.active) dialog.av-form-dialog.av-catalog-dialog.vm-dialog:has(form.av-form > .vm-help + .table) .av-form-desc{padding:12px 24px 0!important;border:0!important;color:#536e60!important;font-size:13px!important;margin:0!important;line-height:1.5!important;flex:none!important}
html body:has([data-view="vm-sales"].page.active) dialog.av-form-dialog.av-catalog-dialog.vm-dialog:has(form.av-form > .vm-help + .table) .av-form > .vm-help{margin:16px 24px!important;padding:13px 15px!important;border:1px solid #d5e3da;border-radius:8px;background:#f3f7f4;color:#173329;font-size:14px;line-height:1.8;flex:none;overflow-wrap:anywhere}
html body:has([data-view="vm-sales"].page.active) dialog.av-form-dialog.av-catalog-dialog.vm-dialog:has(form.av-form > .vm-help + .table) .av-form > .table{margin:0 24px 16px!important;width:auto!important;max-width:none!important;flex:none!important}
html body:has([data-view="vm-sales"].page.active) dialog.av-form-dialog.av-catalog-dialog.vm-dialog:has(form.av-form > .vm-help + .table) .av-form > .table table{min-width:430px}
html body:has([data-view="vm-sales"].page.active) dialog.av-form-dialog.av-catalog-dialog.vm-dialog:has(form.av-form > .vm-help + .table) .av-form-fields{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:14px 16px!important;padding:0 24px 18px!important;overflow:visible!important;flex:none!important;align-items:start!important}
html body:has([data-view="vm-sales"].page.active) dialog.av-form-dialog.av-catalog-dialog.vm-dialog:has(form.av-form > .vm-help + .table) .av-form-fields:empty{display:none!important}
html body:has([data-view="vm-sales"].page.active) dialog.av-form-dialog.av-catalog-dialog.vm-dialog:has(form.av-form > .vm-help + .table) .av-form-fields > .av-catalog-field{min-width:0}
html body:has([data-view="vm-sales"].page.active) dialog.av-form-dialog.av-catalog-dialog.vm-dialog:has(form.av-form > .vm-help + .table) .av-catalog-field label{display:grid!important;gap:7px!important;color:#173329!important;font-size:13px!important;line-height:1.4!important}
html body:has([data-view="vm-sales"].page.active) dialog.av-form-dialog.av-catalog-dialog.vm-dialog:has(form.av-form > .vm-help + .table) .av-form-fields :is(select,textarea){box-sizing:border-box;width:100%!important;min-width:0;min-height:42px!important;border:1px solid #cbded1!important;border-radius:8px!important;background:#fff!important;color:#173329!important;font-size:14px!important;margin:0!important}
html body:has([data-view="vm-sales"].page.active) dialog.av-form-dialog.av-catalog-dialog.vm-dialog:has(form.av-form > .vm-help + .table) .av-form-fields textarea{min-height:100px!important;resize:vertical!important}
html body:has([data-view="vm-sales"].page.active) dialog.av-form-dialog.av-catalog-dialog.vm-dialog:has(form.av-form > .vm-help + .table) .av-form-fields :is(select,textarea):focus-visible{outline:2px solid #86b99f!important;outline-offset:1px}
html body:has([data-view="vm-sales"].page.active) dialog.av-form-dialog.av-catalog-dialog.vm-dialog:has(form.av-form > .vm-help + .table) .av-form-error:empty{display:none!important}
html body:has([data-view="vm-sales"].page.active) dialog.av-form-dialog.av-catalog-dialog.vm-dialog:has(form.av-form > .vm-help + .table) .av-form-error:not(:empty){margin:0!important;padding:0 24px 12px!important;color:#983d36!important;flex:none!important}
html body:has([data-view="vm-sales"].page.active) dialog.av-form-dialog.av-catalog-dialog.vm-dialog:has(form.av-form > .vm-help + .table) .av-form-actions{position:sticky!important;bottom:0!important;z-index:2;display:flex!important;flex-direction:row!important;justify-content:flex-end;flex-wrap:wrap;gap:8px!important;margin:0!important;padding:12px 24px!important;background:#fff!important;border-top:1px solid #d5e3da!important;flex:none!important}
html body:has([data-view="vm-sales"].page.active) dialog.av-form-dialog.av-catalog-dialog.vm-dialog:has(form.av-form > .vm-help + .table) .av-form-actions button{width:auto!important;min-height:40px!important;padding:9px 15px!important;border-radius:8px!important;border:1px solid #cbded1!important;background:#fff!important;color:#173329!important;font-size:13px!important;font-weight:650!important;box-shadow:none!important}
html body:has([data-view="vm-sales"].page.active) dialog.av-form-dialog.av-catalog-dialog.vm-dialog:has(form.av-form > .vm-help + .table) .av-form-actions button[type=submit]{background:#176b47!important;border-color:#176b47!important;color:white!important}
html body:has([data-view="vm-sales"].page.active) dialog.av-form-dialog.av-catalog-dialog.vm-dialog:has(form.av-form > .vm-help + .table) .av-form-actions button[type=submit]:hover:not(:disabled){background:#115539!important}
html body:has([data-view="vm-sales"].page.active) dialog.av-form-dialog.av-catalog-dialog.vm-dialog:has(form.av-form > .vm-help + .table) button:disabled{opacity:.55!important;cursor:not-allowed!important}
@media(max-width:760px){html body [data-view="vm-sales"].vm-page .vm-order-filter-fields{width:100%;grid-template-columns:repeat(2,minmax(0,1fr))}html body [data-view="vm-sales"].vm-page #vmBody > .vm-test-orders{padding:14px!important}html body [data-view="vm-sales"].vm-page .vm-test-orders .vm-kpis strong{font-size:21px!important}html body [data-view="vm-sales"].vm-page .vm-test-orders .vm-kpis > div{padding:12px!important}html body [data-view="vm-sales"].vm-page .vm-test-orders .vm-quality-filter{grid-template-columns:1fr}html body:has([data-view="vm-sales"].page.active) dialog.av-form-dialog.av-catalog-dialog.vm-dialog:has(form.av-form > .vm-help + .table) .av-form-fields{grid-template-columns:1fr!important}html body:has([data-view="vm-sales"].page.active) dialog.av-form-dialog.av-catalog-dialog.vm-dialog:has(form.av-form > .vm-help + .table) #avFormTitle,html body:has([data-view="vm-sales"].page.active) dialog.av-form-dialog.av-catalog-dialog.vm-dialog:has(form.av-form > .vm-help + .table) .av-form-desc,html body:has([data-view="vm-sales"].page.active) dialog.av-form-dialog.av-catalog-dialog.vm-dialog:has(form.av-form > .vm-help + .table) .av-form-fields,html body:has([data-view="vm-sales"].page.active) dialog.av-form-dialog.av-catalog-dialog.vm-dialog:has(form.av-form > .vm-help + .table) .av-form-actions{padding-left:16px!important;padding-right:16px!important}html body:has([data-view="vm-sales"].page.active) dialog.av-form-dialog.av-catalog-dialog.vm-dialog:has(form.av-form > .vm-help + .table) .av-form > :is(.vm-help,.table){margin-left:16px!important;margin-right:16px!important}}
@media(max-width:480px){html body [data-view="vm-sales"].vm-page .vm-test-orders .vm-kpis{grid-template-columns:1fr!important;gap:8px!important}html body [data-view="vm-sales"].vm-page .vm-test-orders .vm-kpis > div{display:flex;align-items:center;justify-content:space-between;gap:10px}html body [data-view="vm-sales"].vm-page .vm-test-orders table{min-width:620px}html body [data-view="vm-sales"].vm-page .vm-test-orders table:has(td.empty){min-width:620px}html body [data-view="vm-sales"].vm-page .vm-order-filter-fields{grid-template-columns:1fr}}

/* AVELTRIM_VM_SALES_V2 — somente a página de vendas. */
html body [data-view="vm-sales"].vm-page > .vm-toolbar{display:none!important}
html body [data-view="vm-sales"].vm-page #vmBody{width:100%;max-width:1440px;gap:20px}
html body [data-view="vm-sales"].vm-page .vm-order-filters h3::before{content:none!important;display:none!important}
html body [data-view="vm-sales"].vm-page .vm-order-filters .vm-inc-eyebrow{display:block;font-size:11px;letter-spacing:.08em;font-weight:700;color:var(--vs-green);margin:0 0 6px}
html body [data-view="vm-sales"].vm-page .vm-order-filters > div:first-child{flex:1 1 240px;min-width:0}
html body [data-view="vm-sales"].vm-page .vm-order-filter-fields{flex:0 1 450px;grid-template-columns:minmax(0,1fr) minmax(0,1.4fr)}
html body [data-view="vm-sales"].vm-page .vm-test-orders .vm-kpis{grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:12px!important}
html body [data-view="vm-sales"].vm-page .vm-test-orders .vm-kpis > div{display:grid;gap:8px;align-content:start;min-height:88px;padding:16px!important}
html body [data-view="vm-sales"].vm-page .vm-test-orders .vm-kpis small{display:block;line-height:1.4;font-weight:600}
html body [data-view="vm-sales"].vm-page .vm-test-orders .vm-kpis > div small::before{content:none!important;display:none!important}
html body [data-view="vm-sales"].vm-page .vm-test-orders .vm-kpis strong{font-size:clamp(20px,2vw,26px)!important}
html body [data-view="vm-sales"].vm-page .vm-test-orders .vm-quality-filter input[type=search]{font-weight:400!important}
html body [data-view="vm-sales"].vm-page .vm-test-orders .vm-quality-filter input[type=search]::placeholder{font-weight:400!important}
html body [data-view="vm-sales"].vm-page .vm-test-orders table:has(tr[data-order-status]:not([hidden])){min-width:720px!important}
html body [data-view="vm-sales"].vm-page .vm-test-orders table:has(tr[data-vm-sales-empty]:not([hidden])){min-width:0!important;table-layout:fixed}
html body [data-view="vm-sales"].vm-page .vm-test-orders table:has(tr[data-vm-sales-empty]:not([hidden])) thead{display:none}
html body [data-view="vm-sales"].vm-page .vm-test-orders td.empty{height:auto!important;padding:24px 16px!important;background:#f8faf9!important}
html body [data-view="vm-sales"].vm-page .vm-test-orders td.empty::before{content:none!important;display:none!important}
html body [data-view="vm-sales"].vm-page .vm-test-orders .vm-inc-empty{display:grid;justify-items:center;align-content:center;gap:8px;min-height:120px;padding:0!important;text-align:center;white-space:normal}
html body [data-view="vm-sales"].vm-page .vm-test-orders .vm-inc-empty svg{width:28px!important;height:28px!important;color:#537665;margin:0 0 3px}
html body [data-view="vm-sales"].vm-page .vm-test-orders .vm-inc-empty strong{font-size:14px!important;color:var(--vs-ink)}
html body [data-view="vm-sales"].vm-page .vm-test-orders .vm-inc-empty small{max-width:360px;white-space:normal;margin:0!important;font-size:13px!important;color:var(--vs-muted)}
html body [data-view="vm-sales"].vm-page .vm-test-orders :is(th,td):nth-child(n+3):nth-child(-n+5){text-align:right;font-variant-numeric:tabular-nums}
html body [data-view="vm-sales"].vm-page .vm-test-orders :is(th,td):nth-child(6),html body [data-view="vm-sales"].vm-page .vm-test-orders :is(th,td):nth-child(7){text-align:center}
@media(max-width:900px){html body [data-view="vm-sales"].vm-page .vm-order-filter-fields{flex:1 1 100%;width:100%}html body [data-view="vm-sales"].vm-page .vm-test-orders .vm-kpis{grid-template-columns:repeat(2,minmax(0,1fr))!important}}
@media(max-width:480px){html body [data-view="vm-sales"].vm-page .vm-order-filter-fields{grid-template-columns:1fr}html body [data-view="vm-sales"].vm-page .vm-test-orders .vm-kpis > div{min-height:80px;padding:12px!important}html body [data-view="vm-sales"].vm-page .vm-test-orders .vm-kpis strong{font-size:19px!important}}
