/* Receipt documents */

.receipt-screen {
  max-width: 900px;
  margin: 0 auto;
}

.receipt-screen__toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}

.receipt-doc {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 28px 32px;
  color: #0f172a;
  font-size: 13px;
}

.receipt-doc__header {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 2px solid #0f172a;
  padding-bottom: 16px;
  margin-bottom: 20px;
}

.receipt-doc__hospital {
  font-size: 22px;
  font-weight: 800;
  margin: 0;
  color: var(--app-primary, #2563eb);
}

.receipt-doc__tagline {
  margin: 4px 0 0;
  color: #64748b;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
}

.receipt-doc__meta {
  text-align: right;
  font-size: 12px;
  line-height: 1.7;
}

.receipt-doc__section {
  margin-bottom: 20px;
}

.receipt-doc__section h2 {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #64748b;
  margin: 0 0 10px;
  font-weight: 800;
}

.receipt-doc__info {
  width: 100%;
  border-collapse: collapse;
}

.receipt-doc__info td {
  padding: 6px 10px 6px 0;
  vertical-align: top;
}

.receipt-doc__info td:nth-child(odd) {
  color: #64748b;
  width: 110px;
  font-size: 12px;
}

.receipt-doc__table {
  width: 100%;
  border-collapse: collapse;
}

.receipt-doc__table th,
.receipt-doc__table td {
  border: 1px solid #e2e8f0;
  padding: 10px 12px;
}

.receipt-doc__table th {
  background: #f8fafc;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #64748b;
}

.receipt-doc__table tfoot td {
  background: #f8fafc;
  font-size: 14px;
}

.receipt-doc__table .num {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.receipt-doc__amount-box {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 10px;
  margin: 20px 0;
}

.receipt-doc__footer {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
  margin-top: 28px;
  padding-top: 16px;
  border-top: 1px dashed #cbd5e1;
}

.receipt-doc__sign-line {
  width: 180px;
  border-top: 1px solid #334155;
  margin-bottom: 8px;
}

.receipt-doc__note {
  max-width: 280px;
  font-size: 11px;
  color: #64748b;
  text-align: right;
}

.receipt-batch__summary {
  margin-bottom: 16px;
  font-size: 14px;
  color: #334155;
}

.receipt-batch__item {
  margin-bottom: 28px;
  position: relative;
}

.receipt-batch__item-actions {
  display: flex;
  gap: 8px;
  margin-bottom: 10px;
}

@media print {
  .no-print { display: none !important; }
  .receipt-doc {
    border: 0;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
  }
  .page-break { page-break-before: always; }
}
