/* Vista de ticket: controles del dashboard y comprobante en papel. */
.movement-ticket-link { min-width: 0; padding: 0; border: 0; border-radius: 2px; background: transparent; color: var(--accent); font: inherit; font-weight: 650; text-decoration: underline; text-decoration-style: dotted; text-underline-offset: 3px; cursor: pointer; overflow-wrap: anywhere; }
.movement-ticket-link:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
#tickets .ticket-intro { margin: -3px 0 18px; color: var(--muted); font-size: 12px; }
#tickets .ticket-search-form { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)) auto auto; gap: 12px; align-items: end; }
#tickets .ticket-field { display: grid; gap: 6px; color: var(--muted); font-size: 11px; min-width: 0; }
#tickets .ticket-field .input { min-width: 0; width: 100%; margin: 0; }
#tickets .ticket-search-form > button { min-height: 42px; }
#tickets .ticket-result-count { margin: 16px 0; color: var(--muted); font-size: 12px; overflow-wrap: anywhere; }
#tickets .ticket-workspace { display: grid; grid-template-columns: minmax(190px, .45fr) minmax(0, 1fr); gap: 22px; align-items: start; }
#tickets .ticket-operations { min-width: 0; display: grid; gap: 10px; }
#tickets .ticket-operations h3 { font-size: 14px; margin: 0 0 2px; }
#tickets .ticket-match-note { margin: 0 0 3px; color: var(--muted); font-size: 11px; }
#tickets .ticket-operation { display: grid; gap: 7px; min-width: 0; padding: 13px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface-soft); color: var(--ink); font: inherit; text-align: left; cursor: pointer; }
#tickets .ticket-operation.selected { border-color: var(--accent); background: color-mix(in srgb, var(--accent), var(--surface) 94%); box-shadow: inset 3px 0 var(--accent); }
#tickets .ticket-operation > span:first-child { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
#tickets .ticket-operation > span:first-child > span, #tickets .ticket-operation time { color: var(--muted); font-size: 11px; }
#tickets .ticket-operation-exit { font-size: 12px; overflow-wrap: anywhere; }
#tickets .ticket-operation-date { color: var(--muted); font-size: 11px; overflow-wrap: anywhere; }
#tickets .ticket-operation-pieces { color: var(--exit); font-size: 15px; font-weight: 650; font-variant-numeric: tabular-nums; }
#tickets .ticket-operation-pieces small { color: var(--muted); font-size: 11px; font-weight: 400; }
#tickets .ticket-selection-label { color: var(--accent); font-size: 10px; }
#tickets .ticket-receipt-stage { min-width: 0; display: flex; justify-content: center; padding: 20px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-soft); }
:is(#tickets, #movementReprintDialog) .ticket-paper { --receipt-muted: #596675; --receipt-red: #b91c1c; --receipt-accent: #0f766e; width: 100%; max-width: 390px; min-width: 0; padding: 24px 22px; border: 1px solid #e3dfd6; border-radius: 3px; background: #fffdf8; color: #18232f; box-shadow: 0 3px 10px rgba(0,0,0,.09); font-family: "Consolas", "Courier New", monospace; font-size: 12px; overflow-wrap: anywhere; }
:is(#tickets, #movementReprintDialog) .ticket-paper-head { display: grid; gap: 6px; padding-bottom: 17px; margin-bottom: 16px; border-bottom: 1px dashed #c7c3ba; text-align: center; }
:is(#tickets, #movementReprintDialog) .ticket-paper-kicker { color: var(--receipt-muted); font-size: 11px; }
:is(#tickets, #movementReprintDialog) .ticket-paper-head h3 { color: #18232f; font-family: inherit; font-size: 17px; font-weight: 700; text-transform: uppercase; }
:is(#tickets, #movementReprintDialog) .ticket-paper-status { justify-self: center; padding: 4px 7px; border: 1px solid #b7d9d3; border-radius: 4px; color: var(--receipt-accent); font-size: 10px; }
:is(#tickets, #movementReprintDialog) .ticket-paper-meta { display: grid; gap: 9px; margin: 0 0 17px; }
:is(#tickets, #movementReprintDialog) .ticket-paper-meta > div { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); align-items: baseline; gap: 10px; }
:is(#tickets, #movementReprintDialog) .ticket-paper-meta dt { color: var(--receipt-muted); font-size: 11px; }
:is(#tickets, #movementReprintDialog) .ticket-paper-meta dd { min-width: 0; margin: 0; text-align: right; font-size: 12px; }
:is(#tickets, #movementReprintDialog) .ticket-paper-meta .ticket-paper-number { color: #18232f; font-size: 18px; font-weight: 700; }
:is(#tickets, #movementReprintDialog) .ticket-paper-meta .ticket-paper-format { color: var(--receipt-accent); font-size: 16px; font-weight: 700; }
:is(#tickets, #movementReprintDialog) .ticket-paper-route { display: flex; align-items: center; justify-content: center; gap: 12px; margin: 0 0 15px; padding: 9px 6px; border-block: 1px dashed #c7c3ba; color: var(--receipt-accent); font-size: 12px; font-weight: 700; }
:is(#tickets, #movementReprintDialog) .ticket-paper-table { display: table; width: 100%; min-width: 0; margin: 0; table-layout: fixed; border: 0; border-collapse: collapse; border-radius: 0; background: transparent; font-family: inherit; font-size: 11px; }
:is(#tickets, #movementReprintDialog) .ticket-paper-table thead { display: table-header-group; }
:is(#tickets, #movementReprintDialog) .ticket-paper-table tbody { display: table-row-group; }
:is(#tickets, #movementReprintDialog) .ticket-paper-table tr { display: table-row; background: transparent; border: 0; border-radius: 0; box-shadow: none; }
:is(#tickets, #movementReprintDialog) .ticket-paper-table :is(th, td) { position: static; display: table-cell; min-width: 0; width: auto; padding: 9px 4px; border: 0; border-bottom: 1px dashed #d6d1c7; background: transparent; color: #18232f; font-family: inherit; font-size: 11px; line-height: 1.5; text-align: left; white-space: normal; overflow-wrap: anywhere; }
:is(#tickets, #movementReprintDialog) .ticket-paper-table th { color: var(--receipt-muted); font-size: 10px; font-weight: 500; text-transform: uppercase; }
:is(#tickets, #movementReprintDialog) .ticket-paper-table :is(th, td):first-child { width: 62px; padding-left: 0; }
:is(#tickets, #movementReprintDialog) .ticket-paper-table :is(th, td):last-child { width: 38px; padding-right: 0; text-align: right; font-variant-numeric: tabular-nums; }
:is(#tickets, #movementReprintDialog) .ticket-paper-table td:last-child { color: var(--receipt-red); font-weight: 700; }
:is(#tickets, #movementReprintDialog) .ticket-paper-table td::before { display: none; }
:is(#tickets, #movementReprintDialog) .ticket-paper-total { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 17px 0 7px; }
:is(#tickets, #movementReprintDialog) .ticket-paper-total > span { color: #18232f; font-size: 12px; }
:is(#tickets, #movementReprintDialog) .ticket-paper-total strong { color: var(--receipt-red); font-size: 24px; font-weight: 700; font-variant-numeric: tabular-nums; }
:is(#tickets, #movementReprintDialog) .ticket-paper-total small { font-size: 11px; font-weight: 400; }
:is(#tickets, #movementReprintDialog) .ticket-paper-records { margin: 0; color: var(--receipt-muted); font-size: 10px; }
:is(#tickets, #movementReprintDialog) .ticket-paper-missing { margin-top: 20px; padding-top: 15px; border-top: 1px dashed #c7c3ba; color: var(--receipt-muted); font-size: 10px; line-height: 1.6; }
:is(#tickets, #movementReprintDialog) .ticket-paper-missing strong { font-size: 10px; font-weight: 700; }
:is(#tickets, #movementReprintDialog) .ticket-paper-missing p { margin: 4px 0 0; }
:is(#tickets, #movementReprintDialog) .ticket-unavailable { color: var(--receipt-muted); }
:is(#tickets, #movementReprintDialog) .ticket-paper-footer { position: static; display: block; margin-top: 17px; padding: 0; border: 0; background: transparent; color: var(--receipt-muted); font-size: 10px; line-height: 1.6; text-align: center; box-shadow: none; }
#tickets .ticket-empty { display: grid; justify-items: center; gap: 10px; padding: 34px 18px; border: 1px dashed var(--line); border-radius: 10px; text-align: center; }
#tickets .ticket-empty-icon { color: var(--accent); font-size: 28px; }
#tickets .ticket-empty strong { font-size: 15px; }
#tickets .ticket-empty p { margin: 0; color: var(--muted); font-size: 12px; }
#tickets :is(button, input, select):focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
:is(#tickets, #movementReprintDialog) .ticket-paper:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
@media (max-width: 1180px) { #tickets .ticket-search-form { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 900px) {
  #tickets .ticket-workspace { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  #tickets .ticket-operations { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #tickets .ticket-operations :is(h3, .ticket-match-note) { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
  #tickets .section-head { flex-wrap: wrap; gap: 12px; }
  #tickets .ticket-search-form { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 9px; }
  #tickets .ticket-operations { grid-template-columns: minmax(0, 1fr); }
  #tickets .ticket-receipt-stage { padding: 8px; }
  :is(#tickets, #movementReprintDialog) .ticket-paper { padding: 19px 12px; }
  :is(#tickets, #movementReprintDialog) .ticket-paper-table :is(th, td):first-child { width: 52px; }
}

