/*
 * Receipt card (0.9.13, owner-approved mockups REQ-20261119-1900 / -1930): the visitor's «ثبت شد» screen, the staff screen
 * after a manual entry and the printed A5 receipt share this card. Plain selectors (the print page has no portal wrapper).
 */
.aa-rc { width: 100%; box-sizing: border-box; padding: 22px 22px 8px; border: 1.5px dashed #cc9952; border-radius: 14px; background: #fbf7f1; }
.aa-rc-logo { display: block; height: 46px; width: auto; max-width: 70%; margin: 0 auto 6px; object-fit: contain; }
/* Owner 2026-11-19 (live screenshot): the site theme's «img { height: auto }» made the logo full width on the «ثبت شد» screen.
   Fixed height and a width cap that the theme cannot override (the print page keeps its own 14 mm). */
.ac-portal .aa-rc img.aa-rc-logo, .aa-k-done .aa-rc img.aa-rc-logo { height: 46px !important; width: auto !important; max-width: min(70%, 200px) !important; }
@media (max-width: 640px) { .ac-portal .aa-rc img.aa-rc-logo, .aa-k-done .aa-rc img.aa-rc-logo { height: 38px !important; } }
.aa-rc-t { margin: 0 0 12px; text-align: center; font-size: 15px; color: #53524f; }
.aa-rc-dl { margin: 0; }
.aa-rc-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 0; border-top: 1px solid #e6dbcb; }
.aa-rc-row[hidden] { display: none; }
/* 0.9.17 (owner, 01 REQ-20261121-1600 item 1): a value never breaks — the label wraps instead; codes, numbers and the date stay
   on one line (an e-mail may wrap only at its own length, a long name only between words). */
.aa-rc-row dt { flex: 1 1 auto; min-width: 0; margin: 0; font-size: 15px; color: #6e685e; font-weight: 400; }
.aa-rc-row dd { flex: 0 1 auto; min-width: 0; margin: 0; font-size: 16px; font-weight: 700; color: #2b2a28; text-align: end;
	overflow-wrap: normal; word-break: normal; white-space: nowrap; }
.aa-rc-name dd { white-space: normal; }
.aa-rc-email dd { white-space: normal; overflow-wrap: anywhere; }
.aa-rc-row bdi { unicode-bidi: isolate; direction: ltr; white-space: nowrap; }
.aa-rc-code { align-items: flex-start; }
.aa-rc-code dd { font-size: 30px; letter-spacing: 1px; line-height: 1.2; font-feature-settings: "tnum"; }
/* Two outlined buttons side by side under the receipt (visitor and staff screens); stacked under ~360 px. */
.aa-two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; width: 100%; }
.aa-two > form { margin: 0; }
.aa-k-done .ac-inner > .ac-al { width: 100%; box-sizing: border-box; justify-content: center; text-align: center; }
/* 0.9.13b (01, ≤ 340 px): each label stays on one line (icon gap and side padding smaller); stacked below 360 px. */
.ac-portal .aa-two .ac-btn { white-space: nowrap; gap: 6px; padding-inline: 10px; min-width: 0; }
@media (max-width: 359.98px) {
	.aa-two { grid-template-columns: 1fr; gap: 10px; }
}
@media (max-width: 640px) {
	.aa-rc { padding: 18px 18px 6px; }
	.aa-rc-row { padding: 12px 0; }
	.aa-rc-row dt { font-size: 14px; }
	.aa-rc-row dd { font-size: 15px; }
	.aa-rc-code dd { font-size: 24px; letter-spacing: .5px; }
}

/* Printed receipt (receipt-print.php): one A5 page — card, QR + note, phones + address. */
body.aa-rcp-body { margin: 0; background: #ddd7ce; font-family: inherit; }
/* Owner 2026-11-19: the printed receipt uses the site font Abar (the same @font-face as the answer sheet, from the site kit):
   Persian digits for a Persian receipt, Latin digits for Arabic and English (as on the answer sheet). */
body.aa-rcp-body, body.aa-rcp-body .aa-rcp, body.aa-rcp-body .aa-rcp *, body.aa-rcp-body .ac-btn {
	font-family: "AA Abar", "Abar Low", Estedad, Tahoma, sans-serif; }
html[lang="fa"] body.aa-rcp-body, html[lang="fa"] body.aa-rcp-body .aa-rcp, html[lang="fa"] body.aa-rcp-body .aa-rcp *,
html[lang="fa"] body.aa-rcp-body .ac-btn { font-family: "AA Abar FaNum", "Abar Low FaNum", Estedad, Tahoma, sans-serif; }
.aa-rcp { box-sizing: border-box; width: 148mm; min-height: 210mm; margin: 16px auto; padding: 14mm 12mm 10mm; background: #fff;
	box-shadow: 0 6px 24px rgba(0, 0, 0, .12); display: flex; flex-direction: column; color: #2b2a28; }
/* Owner 2026-11-19 (printed A5 «خیلی گنده است»): a normal, compact size — smaller type, logo, row spacing and QR; the rest
   of the page may stay empty. */
.aa-rcp .aa-rc { padding: 5mm 6mm 1mm; border-width: 1px; }
.aa-rcp .aa-rc-logo { height: 10mm; margin-bottom: 1mm; }
.aa-rcp .aa-rc-t { margin-bottom: 2.5mm; font-size: 11.5pt; font-weight: 700; color: #53524f; }
.aa-rcp .aa-rc-row { padding: 2.2mm 0; gap: 4mm; }
.aa-rcp .aa-rc-row dt { font-size: 8.5pt; }
.aa-rcp .aa-rc-row dd { font-size: 9.5pt; }
.aa-rcp .aa-rc-code dd { font-size: 15pt; letter-spacing: .5px; }
.aa-rcp-mid { display: flex; gap: 4mm; align-items: flex-start; margin-top: 5mm; }
.aa-rcp-qr { flex: none; width: 17mm; height: 17mm; }
.aa-rcp-qr svg { display: block; width: 100%; height: 100%; }
.aa-rcp-note { flex: 1; margin: 0; font-size: 8.5pt; line-height: 1.85; text-align: justify; }
.aa-rcp-foot { margin-top: auto; padding-top: 3mm; border-top: 1px solid #e6dbcb; text-align: center; font-size: 7.5pt; color: #53524f; }
.aa-rcp-foot p { margin: 1mm 0; }
/* 0.9.13b: each office number is its own left-to-right island and never breaks inside. */
.aa-rcp-foot .aa-rcp-ph { unicode-bidi: isolate; direction: ltr; white-space: nowrap; }
/* 0.9.13b: the on-screen «چاپ رسید» under the sheet is the kit primary button (was white text on the light ground). */
.aa-rcp-body .aa-print-row.ac-portal { margin: 0 auto 24px; padding: 0; background: none; text-align: center; }
@media print {
	@page { size: A5 portrait; margin: 0; }
	body.aa-rcp-body { background: #fff !important; }
	body.aa-rcp-body .aa-rcp, body.aa-rcp-body .aa-rcp * { visibility: visible !important; } /* The sheet CSS hides body * in print. */
	body.aa-rcp-body .aa-rcp { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
	body.aa-rcp-body .aa-rcp * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
	.aa-rcp { margin: 0; box-shadow: none; width: 148mm; height: 210mm; min-height: 0; page-break-after: avoid; break-inside: avoid; overflow: hidden; }
	.aa-rcp-body .aa-print-row { display: none !important; }
	.aa-rcp-body .aa-print-wrap { padding: 0; }
}
