/* Shared lunch ticket styling */
.lunch-ticket-wrap {
  max-width: 360px;
  margin: 1.25rem auto 0;
}

.lunch-ticket {
  max-width: 360px;
  margin: 0 auto;
  border: 2px dashed #c9a227;
  border-radius: 16px;
  background: linear-gradient(180deg, #fffdf5 0%, #fff 42%, #fff 100%);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
  overflow: hidden;
  text-align: center;
}

.lunch-ticket-header {
  background: linear-gradient(135deg, #1f4d8f 0%, #2563eb 100%);
  color: #fff;
  padding: 1rem 1rem 0.85rem;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.65rem;
  text-align: left;
}

.lunch-ticket-header-main {
  flex: 1;
  min-width: 0;
}

.lunch-ticket-logo {
  width: 58px;
  height: 58px;
  object-fit: contain;
  flex-shrink: 0;
  border-radius: 50%;
  background: #fff;
  padding: 2px;
}

.lunch-ticket-org {
  font-size: 0.68rem;
  line-height: 1.35;
  opacity: 0.95;
  font-weight: 600;
}

.lunch-ticket-title {
  margin: 0.45rem 0 0;
  font-size: 1.15rem;
  font-weight: 800;
  line-height: 1.2;
  text-align: left;
}

.lunch-ticket-subtitle {
  margin: 0.35rem 0 0;
  font-size: 0.88rem;
  opacity: 0.92;
  text-align: left;
}

.lunch-ticket-body {
  padding: 1rem 1.25rem 1.1rem;
}

.lunch-ticket-name {
  font-size: 1.2rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 0.75rem;
}

.lunch-ticket-menu {
  text-align: left;
  margin: 0 auto 0.85rem;
  max-width: 280px;
  padding: 0.75rem 0.9rem;
  border-radius: 10px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
}

.lunch-ticket-menu h4 {
  margin: 0 0 0.45rem;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #64748b;
}

.lunch-ticket-menu ul {
  margin: 0;
  padding-left: 1.1rem;
}

.lunch-ticket-menu li {
  margin: 0.2rem 0;
  color: #0f172a;
}

.lunch-ticket-amount {
  font-size: 1rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 0.65rem;
}

.lunch-ticket-qr-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 0.85rem;
}

.lunch-ticket-status {
  display: block;
  width: fit-content;
  margin: 0 auto;
  padding: 0.28rem 0.75rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.lunch-ticket-status.paid {
  background: #dcfce7;
  color: #166534;
}

.lunch-ticket-status.unpaid {
  background: #ffedd5;
  color: #9a3412;
}

.lunch-ticket-qr {
  display: block;
  width: 180px;
  height: 180px;
  margin: 0 auto;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  background: #fff;
}

.lunch-ticket-code {
  margin: 0.65rem 0 0;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.78rem;
  color: #64748b;
  word-break: break-all;
}

.lunch-ticket-footnote {
  margin: 0.85rem 0 0;
  font-size: 0.82rem;
  color: #64748b;
  line-height: 1.45;
}

.lunch-ticket-actions {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 0.85rem;
  max-width: 360px;
  margin-left: auto;
  margin-right: auto;
}

.lunch-ticket-btn {
  border: none;
  border-radius: 8px;
  padding: 0.55rem 0.9rem;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  background: #eef2ff;
  color: #1e3a8a;
}

.lunch-ticket-btn.primary {
  background: #2563eb;
  color: #fff;
}

@media print {
  body * {
    visibility: hidden;
  }

  .lunch-ticket,
  .lunch-ticket * {
    visibility: visible;
  }

  .lunch-ticket {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    margin: 0 auto;
    box-shadow: none;
  }

  .lunch-ticket-actions,
  .lunch-ticket-screen-only {
    display: none !important;
  }
}
