.supplier-dispatch-preview{width:min(49rem,96vw);max-height:90dvh;margin:auto;padding:clamp(.85rem,3vw,1.75rem);border:1px solid var(--line);border-radius:.55rem;overflow:auto;color:var(--ink);background:white}
.supplier-dispatch-preview::backdrop{background:rgb(20 33 40 / .55)}
.supplier-dispatch-preview>h2{margin:0;font:600 1.25rem var(--heading)}
.dispatch-actions{display:flex;gap:.5rem;flex-wrap:wrap;margin:.75rem 0}
.supplier-dispatch-preview [role=status]:empty{display:none}
.dispatch-document{color:#25344b;font:normal .93rem/1.4 var(--heading);overflow-wrap:anywhere}
.dispatch-document .dispatch-brand{border-top:2px solid #1f3b2a;padding-top:.7rem;margin:0;color:#1f3b2a;font:700 1.1rem var(--serif)}
.dispatch-document h2{margin:.25em 0 .5em;font:700 1.65em var(--serif)}
.dispatch-document dl{margin:.55em 0 1.1em;display:grid;grid-template-columns:1fr 1fr;gap:.6em 1.2em}
.dispatch-document dl>div:last-child{grid-column:1/-1}
.dispatch-document dt,.dispatch-document small{font-size:.83em;color:#495564}
.dispatch-document dd{margin:0}
.dispatch-document table{width:100%;border-collapse:collapse;table-layout:fixed}
.dispatch-document th,.dispatch-document td{text-align:left;padding:.45em .35em;vertical-align:top;border-bottom:1px solid #c1c8cb;overflow-wrap:anywhere}
.dispatch-document thead th{border-bottom:1.5px solid #1f3b2a}
.dispatch-document thead th.dispatch-table-ref{width:auto;text-align:left;font-weight:600;color:#1f3b2a;border-bottom:0;border-top:1px solid #1f3b2a;font-size:.95em}
.dispatch-document th:first-child{width:48%}
.dispatch-document :is(th,td):last-child{width:5.8em;text-align:right}
.dispatch-document small,.dispatch-document strong{display:block}
.dispatch-signoff p{font-weight:700;text-align:right}
.dispatch-signoff p small{font-weight:400}
.dispatch-document td.dispatch-ack{width:auto;text-align:left;padding:0;border:0}
.dispatch-signoff div{display:flex;gap:10%;margin-top:2.8em}
.dispatch-signoff span{width:45%;border-top:1px solid #66757a;padding-top:.3em;font-size:.85em}
body>[data-dispatch-paper]{display:none}
@media screen and (max-width:550px){.dispatch-document{font-size:.83rem}.dispatch-document dl{grid-template-columns:1fr}.dispatch-document :is(th,td):last-child{width:4.5em}.dispatch-document th:first-child{width:43%}}
@page anaquel-devolucion-proveedor{size:letter portrait;margin:14mm;@bottom-right{content:"Página " counter(page) " de " counter(pages);font:9pt Montserrat,Arial,sans-serif;color:#495564}}
@media print{
  body:has(>.supplier-dispatch-preview[open]){display:block!important;margin:0!important;padding:0!important;background:white!important}
  body:has(>.supplier-dispatch-preview[open])>:not([data-dispatch-paper]),body:has(>.supplier-dispatch-preview[open]) dialog[open],body:has(>.supplier-dispatch-preview[open]) dialog::backdrop{display:none!important}
  body:has(>.supplier-dispatch-preview[open])>[data-dispatch-paper]{page:anaquel-devolucion-proveedor;display:block!important;width:100%;margin:0;font-size:10pt}
  .dispatch-document thead{display:table-header-group}
  .dispatch-document tr,.dispatch-last-lines,.dispatch-signoff{break-inside:avoid}
}
