:root {
  color-scheme: dark;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

button,
select,
input {
  font: inherit;
}

button {
  transition: background-color 120ms ease, opacity 120ms ease;
}

.menu-card {
  min-height: 118px;
}

.tab-button {
  border-radius: 0.5rem;
  border: 1px solid #3f3f46;
  color: #d4d4d8;
  background: #18181b;
  padding: 0.5rem 1rem;
  font-weight: 600;
  font-size: 0.875rem;
}

.ticket-paper {
  width: 80mm;
  max-width: 100%;
  min-height: 40mm;
  padding: 5mm 4mm;
  background: #fff;
  color: #000;
  border: 0;
  border-radius: 0;
}

.ticket-text {
  margin: 0;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
  font-family: "Courier New", Courier, monospace;
  font-size: 10pt;
  line-height: 1.35;
  color: #000;
}

dialog::backdrop {
  background: rgb(0 0 0 / 75%);
}

@media print {
  @page {
    size: 80mm auto;
    margin: 0;
  }

  html,
  body {
    width: 80mm;
    margin: 0 !important;
    padding: 0 !important;
    background: #fff !important;
  }

  body * {
    visibility: hidden !important;
  }

  #ticketDialog,
  #ticketDialog[open],
  #ticketPaper,
  #ticketPaper * {
    visibility: visible !important;
  }

  #ticketDialog {
    position: absolute !important;
    inset: 0 auto auto 0 !important;
    display: block !important;
    width: 80mm !important;
    max-width: 80mm !important;
    max-height: none !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: #fff !important;
    box-shadow: none !important;
  }

  #ticketPaper {
    width: 80mm !important;
    max-width: 80mm !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 3mm 4mm !important;
  }

  .ticket-actions {
    display: none !important;
  }
}
