#movementReprintDialog { width: min(660px, calc(100vw - 24px)); max-height: calc(100dvh - 32px); margin: auto; padding: 20px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--ink); overflow-y: auto; box-shadow: 0 20px 65px #0005; }
#movementReprintDialog::backdrop { background: #06172599; }
#movementReprintDialog .reprint-toolbar { display: flex; justify-content: space-between; align-items: start; gap: 15px; margin-bottom: 16px; }
#movementReprintDialog .reprint-toolbar h2 { margin: 4px 0 0; font-size: 18px; overflow-wrap: anywhere; }
#movementReprintDialog .reprint-toolbar > div { min-width: 0; }
#movementReprintDialog .reprint-toolbar > button { flex-shrink: 0; }
#movementReprintDialog .reprint-operation-picker { display: grid; gap: 7px; margin-bottom: 12px; color: var(--muted); font-size: 12px; }
#movementReprintDialog .reprint-operation-picker[hidden] { display: none; }
#movementReprintDialog .reprint-operation-picker select { min-width: 0; width: 100%; }
#movementReprintDialog .reprint-status { margin: 0 0 14px; color: var(--muted); font-size: 12px; overflow-wrap: anywhere; }
#movementReprintDialog .reprint-status:empty { display: none; }
#movementReprintDialog .reprint-receipt-stage { display: flex; justify-content: center; min-width: 0; padding: 16px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface-soft); }
#movementReprintDialog .reprint-actions { display: flex; justify-content: space-between; align-items: center; gap: 14px; margin-top: 16px; }
#movementReprintDialog .reprint-actions > span { color: var(--muted); font-size: 11px; }
#movementReprintDialog .reprint-actions > button { flex-shrink: 0; }
#movementReprintDialog .reprint-line-details { display: block; margin-top: 5px; color: var(--receipt-muted); font-family: inherit; font-size: 9px; line-height: 1.6; }
#movementReprintDialog[data-kind="entry"] .ticket-paper { --receipt-red: #15803d; }
#movementReprintDialog .reprint-empty { padding: 20px 10px; color: var(--muted); text-align: center; font-size: 13px; }
#movementReprintDialog :is(button, select):focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.transfer-reprint-button { border: 1px solid var(--line); padding: 8px 11px; border-radius: 6px; background: var(--surface); font-size: 12px; text-decoration: none; }
#tickets .ticket-reprint-action { display: flex; justify-content: end; margin-top: 12px; }
#tickets .ticket-receipt-stage { flex-direction: column; align-items: center; }
#tickets .ticket-reprint-action { width: 100%; max-width: 390px; }
@media (max-width: 600px) {
  #movementReprintDialog { padding: 13px; }
  #movementReprintDialog .reprint-receipt-stage { padding: 7px; }
  #movementReprintDialog .ticket-paper { padding: 19px 12px; }
  #movementReprintDialog .ticket-paper-table :is(th, td):first-child { width: 52px; }
  #movementReprintDialog .reprint-actions { flex-direction: column; align-items: stretch; }
}
@media print {
  @page { margin: 12mm; }
  html.printing-receipt { background: #fff !important; }
  html.printing-receipt body { display: block !important; margin: 0 !important; padding: 0 !important; background: #fff !important; overflow: visible !important; }
  html.printing-receipt body > :not(#movementReprintDialog) { display: none !important; }
  html.printing-receipt #movementReprintDialog { display: block !important; position: static !important; width: auto !important; max-width: none !important; height: auto !important; max-height: none !important; padding: 0 !important; margin: 0 !important; border: 0 !important; border-radius: 0 !important; background: #fff !important; overflow: visible !important; box-shadow: none !important; }
  html.printing-receipt #movementReprintDialog::backdrop { display: none !important; }
  html.printing-receipt #movementReprintDialog :is(.reprint-toolbar, .reprint-operation-picker, .reprint-status, .reprint-actions) { display: none !important; }
  html.printing-receipt #movementReprintDialog .reprint-receipt-stage { display: block !important; padding: 0 !important; border: 0 !important; background: #fff !important; }
  html.printing-receipt #movementReprintDialog .ticket-paper { width: 105mm !important; max-width: 100% !important; margin: 0 auto !important; padding: 6mm !important; border: 0 !important; background: #fff !important; box-shadow: none !important; print-color-adjust: exact; -webkit-print-color-adjust: exact; }
  html.printing-receipt #movementReprintDialog :is(.ticket-paper-head, .ticket-paper-meta, .ticket-paper-route, .ticket-paper-total, .ticket-paper-footer, .ticket-paper-table tr) { break-inside: avoid; }
}
