/* Appointment confirmation — screen preview + A4 print */

.appt-receipt-sheet {
  max-width: 210mm;
  margin: 0 auto;
  background: #fff;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 1.25rem 1.5rem;
  font-family: Roboto, 'Segoe UI', system-ui, sans-serif;
  color: #0f172a;
}

.appt-receipt-sheet__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 0.85rem;
  border-bottom: 2px solid #1b4965;
  margin-bottom: 0.85rem;
}

.appt-receipt-sheet__brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
}

.appt-receipt-sheet__brand img,
.appt-receipt-sheet__brand .brand-logo-fallback {
  flex-shrink: 0;
}

.appt-receipt-sheet__clinic-name {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 800;
  color: #1b4965;
  line-height: 1.25;
}

.appt-receipt-sheet__clinic-meta {
  margin: 0.2rem 0 0;
  font-size: 0.82rem;
  color: #64748b;
}

.appt-receipt-sheet__badge {
  text-align: right;
  flex-shrink: 0;
}

.appt-receipt-sheet__title {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #64748b;
}

.appt-receipt-sheet__ref {
  margin: 0.15rem 0 0;
  font-size: 1.35rem;
  font-weight: 800;
  color: #e85d04;
  letter-spacing: 0.02em;
}

.appt-receipt-sheet__status {
  display: inline-block;
  margin-top: 0.35rem;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  background: #dcfce7;
  color: #166534;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
}

.appt-receipt-sheet__table {
  width: 100%;
  border-collapse: collapse;
  margin: 0.5rem 0 0;
  font-size: 0.92rem;
}

.appt-receipt-sheet__table th,
.appt-receipt-sheet__table td {
  padding: 0.55rem 0.65rem;
  border: 1px solid #e2e8f0;
  vertical-align: top;
  text-align: left;
}

.appt-receipt-sheet__table th {
  width: 32%;
  background: #f8fafc;
  color: #475569;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.appt-receipt-sheet__table td {
  color: #0f172a;
  font-weight: 500;
}

.appt-receipt-sheet__highlight td {
  background: #fff7ed;
  font-weight: 700;
  color: #1b4965;
}

.appt-receipt-sheet__footer {
  margin-top: 0.85rem;
  padding-top: 0.75rem;
  border-top: 1px dashed #cbd5e1;
  font-size: 0.82rem;
  color: #475569;
  line-height: 1.5;
}

.appt-receipt-sheet__footer strong {
  color: #1b4965;
}

.appt-receipt-sheet__printed {
  margin-top: 0.5rem;
  font-size: 0.75rem;
  color: #94a3b8;
}

@media print {
  @page {
    size: A4 portrait;
    margin: 12mm;
  }

  html,
  body {
    background: #fff !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  body.appt-print-mode * {
    visibility: hidden !important;
  }

  body.appt-print-mode #appt-receipt-print-root,
  body.appt-print-mode #appt-receipt-print-root * {
    visibility: visible !important;
  }

  body.appt-print-mode #appt-receipt-print-root {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
  }

  .appt-receipt-sheet {
    border: none;
    border-radius: 0;
    padding: 0;
    max-width: none;
    box-shadow: none;
  }

  .no-print {
    display: none !important;
  }
}
