/* POS-PRINT-080: pantalla y salida impresa comparten el snapshot de venta. */
#print-document { display: none; }
.receipt-toolbar { flex-shrink: 0; border-bottom: 1px solid var(--line); padding-bottom: 14px; margin-bottom: 16px; }
.receipt-toolbar .receipt-actions { margin: 0; padding: 0 0 12px; }
.receipt-format { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 11px; color: var(--muted); }
.receipt-format select { min-width: 0; max-width: 66%; font-size: 12px; min-height: 36px; }
.receipt-toolbar>.fine-print { margin-top: 8px; font-size: 10px; }
.receipt-brand.logo-window { width: 210px; max-width: 100%; margin-bottom: 12px; background: white; }
.receipt-paper { width: 100%; overflow-x: hidden; }
.receipt-paper th, .receipt-paper td { overflow-wrap: anywhere; }
.receipt-paper td:first-child { min-width: 0; }
.receipt-paper dl>div { align-items: baseline; gap: 12px; }
.receipt-paper dd { white-space: nowrap; }
.receipt-summary { display: flow-root; break-inside: avoid; }
.receipt-summary>.fine-print { color: #475569; font-size: 11px; margin: 12px 0; line-height: 1.6; }
.receipt-thermal-lines { display: none; }
#receipt-dialog[data-format="thermal"] .receipt-paper { width: 80mm; max-width: 100%; padding: 4mm; border-radius: 0; margin: 0 auto; flex-shrink: 1; }
[data-format="thermal"] .receipt-brand { width: 54mm; margin: 0 auto 3mm; }
[data-format="thermal"] .receipt-store, [data-format="thermal"] .receipt-paper>h2, [data-format="thermal"] .receipt-paper>p { text-align: center; }
[data-format="thermal"] .receipt-paper>h2 { margin-top: 4mm; font-size: 15px; }
[data-format="thermal"] .receipt-paper>p { margin: 3mm 0; font-size: 11px; }
[data-format="thermal"] .receipt-standard-lines { display: none; }
[data-format="thermal"] .receipt-thermal-lines { display: table; margin: 4mm 0 0; padding: 0; table-layout: fixed; border-top: 1px dashed #64748b; }
.receipt-thermal-lines tr { break-inside: avoid; }
.receipt-paper .receipt-thermal-lines td { padding: 3mm 0; border-bottom: 1px dashed #94a3b8; font-size: 12px; line-height: 1.4; white-space: normal; overflow-wrap: anywhere; }
.receipt-thermal-lines tbody tr:hover { background: white; }
.receipt-thermal-lines strong { display: block; font-weight: 600; }
.receipt-thermal-lines small { font-size: 10px; margin: 1mm 0; }
.receipt-thermal-lines td>div { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; font-variant-numeric: tabular-nums; }
.receipt-thermal-lines b { white-space: nowrap; font-size: 12px; }
[data-format="thermal"] .receipt-paper dl { margin-top: 3mm; padding-top: 1mm; }
[data-format="thermal"] .receipt-paper dl>div { margin: 2mm 0; }
[data-format="thermal"] .receipt-paper dt { font-size: 11px; }
[data-format="thermal"] .receipt-paper dd { font-size: 12px; }
[data-format="thermal"] .receipt-total { padding: 2mm 0; }
[data-format="thermal"] .receipt-total dt, [data-format="thermal"] .receipt-total dd { font-size: 16px; }
[data-format="thermal"] .receipt-paper .fiscal-notice { font-size: 10px; line-height: 1.5; padding: 2mm; margin-top: 4mm; }
[data-format="thermal"] .receipt-paper .fine-print { font-size: 9px; }
@media (max-width: 599px) {
  .receipt-toolbar { margin-bottom: 10px; padding-bottom: 10px; }
  .receipt-format { flex-wrap: wrap; gap: 5px; }
  .receipt-format select { max-width: none; width: 100%; min-height: 44px; }
  .receipt-toolbar>.fine-print { line-height: 1.4; }
}
@media print {
  body>#demo-shell, body>#login-screen { display: none !important; }
  #receipt-dialog:not([open]) { display: none !important; }
  .receipt-toolbar { display: none !important; }
  #receipt-dialog[open] { display: none !important; }
  body>#print-document { display: block !important; position: static; width: 100%; margin: 0; padding: 0; overflow: visible; }
  #print-document .receipt-paper { display: block; width: 100%; max-width: none; height: auto; max-height: none; padding: 0; margin: 0; overflow: visible !important; border-radius: 0; }
  #print-document[data-format="thermal"] { width: 72mm !important; max-width: 72mm !important; }
  [data-format="thermal"] .receipt-paper { font-family: Arial, sans-serif; }
  .receipt-paper table { table-layout: fixed; }
  .receipt-paper th:first-child { width: 46%; }
  .receipt-paper th:nth-child(2) { width: 10%; }
  .receipt-paper th:nth-child(3), .receipt-paper th:nth-child(4) { width: 22%; }
  .receipt-paper tr, .receipt-paper dl>div, .receipt-paper .fiscal-notice, .receipt-brand { break-inside: avoid; }
  .receipt-paper thead { display: table-header-group; }
  .receipt-paper tbody tr:hover { background: white; }
}
