/* Impresión de remitos y comprobantes. Independiente de los estilos del sistema:
   siempre en blanco y negro, también si el sistema está en modo oscuro. */
@font-face { font-family: "Inter"; font-weight: 400; src: url("../fuentes/inter-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 700; src: url("../fuentes/inter-latin-700-normal.woff2") format("woff2"); }

* { box-sizing: border-box; }
html { color-scheme: light; }
body { margin: 0; background: #e4e4e7; color: #000; font-family: "Inter", Arial, sans-serif; font-size: 10pt; }
.acciones-pantalla { display: flex; justify-content: center; padding: 16px; }
.acciones-pantalla button { font: inherit; padding: 8px 18px; border: 0; border-radius: 6px; background: #18181b; color: #fff; cursor: pointer; }
.hoja { background: #fff; margin: 0 auto 24px; padding: 8mm; box-shadow: 0 2px 12px rgba(0, 0, 0, .15); }
.a6 .hoja { width: 105mm; min-height: 148mm; }

.hoja-encabezado { display: flex; justify-content: space-between; align-items: flex-start; border-bottom: 1.5px solid #000; padding-bottom: 3mm; margin-bottom: 3mm; }
.hoja-marca { font-size: 18pt; font-weight: 700; letter-spacing: .08em; }
.hoja-tipo { text-align: center; font-size: 8pt; text-transform: uppercase; }
.hoja-letra { width: 10mm; height: 10mm; border: 1.5px solid #000; display: flex; align-items: center; justify-content: center; font-size: 16pt; font-weight: 700; margin: 0 auto 1mm; }
.hoja-datos { display: grid; grid-template-columns: auto 1fr; gap: 1mm 3mm; margin: 0 0 4mm; }
.hoja-datos dt { font-weight: 700; }
.hoja-datos dd { margin: 0; }
.hoja-tabla { width: 100%; border-collapse: collapse; margin-bottom: 4mm; }
.hoja-tabla th, .hoja-tabla td { border-bottom: .5pt solid #000; padding: 1.5mm 1mm; text-align: left; vertical-align: top; }
.hoja-tabla th { font-size: 8pt; text-transform: uppercase; }
.derecha { text-align: right !important; white-space: nowrap; }
.hoja-observaciones { margin: 0 0 4mm; }
.hoja-firma { display: grid; grid-template-columns: 1fr 1fr; gap: 6mm; margin-top: 16mm; font-size: 8pt; text-align: center; }
.hoja-firma span { display: block; border-top: .5pt solid #000; margin-bottom: 1mm; }
.hoja-empresa { font-size: 7pt; line-height: 1.35; margin-top: 1mm; }
.hoja-anulado { margin: 0 0 3mm; padding: 1mm 2mm; border: 1.5px solid #000; text-align: center; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; }
.hoja-interno { margin: 0 0 4mm; padding: 2mm; border: 1.5px dashed #000; text-align: center; font-weight: 700; }
.hoja-tabla tfoot td { font-weight: 700; border-bottom: 0; }
.hoja-x { width: 180mm; }

@media print {
  body { background: #fff; }
  .acciones-pantalla { display: none; }
  .hoja { margin: 0; box-shadow: none; padding: 0; }
  .a6 .hoja, .hoja-x { width: auto; min-height: 0; }
  .hoja + .hoja { break-before: page; }
}
/* El remito es A6. El comprobante X usa la hoja que tenga la impresora (su tamaño no está definido). */
@page remito { size: A6; margin: 8mm; }
.a6 .hoja { page: remito; }
