/* Booking Voucher, A4. Screen: hidden until printed. Print: only the voucher, on A4, brand colours from the company
   palette (logo colours), and the 5 pt "Generated by Mostafa Elkomy" line at the bottom-left of every page. */
#voucher-print-root{display:none}
/* Booking detail, Documents tab (D8, QA 14-Nov): the quotation and voucher cards use the full panel width. */
.booking-documents{display:grid;grid-template-columns:minmax(0,1fr);gap:18px;margin-block-end:25px}
.booking-documents>.document-card{max-inline-size:none;max-width:none;margin:0}
.booking-voucher{--v-accent:#202050;--v-soft:#eef0f8;--v-ink:#16182a;--v-muted:#5b6070;--v-line:#d9dce6;
 box-sizing:border-box;inline-size:100%;max-inline-size:182mm;margin:0 auto;color:var(--v-ink);background:#fff;font:10pt/1.45 Inter,"Segoe UI",Tahoma,Arial,sans-serif}
.booking-voucher[data-brand=dopamine]{--v-accent:#202050;--v-soft:#fbeeea;--v-pop:#b3402b}
.booking-voucher[data-brand=bravo]{--v-accent:#216a9b;--v-soft:#e8f2f9;--v-pop:#216a9b}
.booking-voucher[data-brand=golden-eagle]{--v-accent:#306050;--v-soft:#eef4f1;--v-pop:#b88a2a}
.booking-voucher[data-brand=product]{--v-pop:#202050}
.booking-voucher *{box-sizing:border-box}
.voucher-head{display:flex;align-items:center;justify-content:space-between;gap:12mm;padding-block-end:5mm;border-block-end:2px solid var(--v-accent)}
.voucher-mark img{display:block;max-block-size:16mm;max-inline-size:60mm;object-fit:contain}
.voucher-company{font-size:14pt;color:var(--v-accent)}
.voucher-title{text-align:end}
.voucher-title h1{margin:0;font-size:16pt;letter-spacing:-.01em;color:var(--v-accent)}
.voucher-ref{margin:1mm 0 0;font-size:12pt;font-weight:700;color:var(--v-pop,var(--v-accent));font-variant-numeric:tabular-nums}
.voucher-facts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:3mm 6mm;margin:5mm 0;padding:4mm 5mm;background:var(--v-soft);border-radius:2.5mm}
.voucher-facts dt,.voucher-details dt,.voucher-totals dt{font-size:7.5pt;color:var(--v-muted);text-transform:none}
.voucher-facts dd,.voucher-details dd{margin:0;font-weight:600}
.voucher-services h2{margin:0 0 3mm;font-size:11pt;color:var(--v-accent)}
.voucher-service{break-inside:avoid;margin-block-end:3mm;padding:3mm 4mm;border:1px solid var(--v-line);border-inline-start:3px solid var(--v-accent);border-radius:2mm}
.voucher-service-top{display:flex;flex-wrap:wrap;align-items:baseline;gap:2mm 4mm}
.voucher-kind{font-size:7.5pt;font-weight:700;color:var(--v-pop,var(--v-accent));text-transform:uppercase;letter-spacing:.04em}
.voucher-service-top strong{flex:1 1 40%;font-size:10.5pt}
.voucher-qty{font-size:8.5pt;color:var(--v-muted)}
.voucher-details{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:1.5mm 5mm;margin:2mm 0 0}
.voucher-confirmation dd{color:var(--v-accent)}
/* Hotel gallery, below the details: primary photo on the inline-start (flips in RTL), up to three supporting photos in
   an equal-row column. Fixed height so a card's size is known and it moves whole to the next A4 page. */
.voucher-gallery{display:grid;grid-template-columns:minmax(0,3fr) minmax(0,1fr);grid-template-rows:repeat(3,minmax(0,1fr));gap:1.5mm;block-size:62mm;margin:2.5mm 0 0;padding:0}
.voucher-gallery[data-count="1"]{grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(0,1fr)}
.voucher-gallery[data-count="2"]{grid-template-columns:minmax(0,3fr) minmax(0,2fr);grid-template-rows:minmax(0,1fr)}
.voucher-gallery[data-count="3"]{grid-template-rows:repeat(2,minmax(0,1fr))}
.voucher-gallery img{display:block;inline-size:100%;block-size:100%;min-block-size:0;object-fit:cover;border:1px solid var(--v-line);border-radius:1.5mm;background:var(--v-soft)}
.voucher-gallery .voucher-photo-primary{grid-column:1;grid-row:1/-1}
.voucher-gallery .voucher-photo{grid-column:2}
.voucher-empty,.voucher-note{color:var(--v-muted);font-size:9pt}
.voucher-totals{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:3mm;margin:4mm 0 0;padding:3mm 4mm;border:1px solid var(--v-line);border-radius:2mm;break-inside:avoid}
.voucher-totals dd{margin:0;font-weight:700;font-variant-numeric:tabular-nums}
.voucher-totals .voucher-total dd{color:var(--v-accent)}
.voucher-totals .amount-due dd{color:#b42318}
.voucher-issued{margin:5mm 0 0;font-size:8pt;color:var(--v-muted)}
/* On screen the line is part of the voucher; in print the page's bottom-left margin box carries it on every page, so it
   never overlaps content. Named page: the rule applies to the voucher only, never to other printed screens. */
.voucher-footer{margin:6mm 0 0;font-size:5pt;line-height:1;color:var(--v-muted);direction:ltr;text-align:left}
.booking-voucher{page:rehlety-voucher}
@page rehlety-voucher{size:A4;margin:14mm 12mm 16mm;@bottom-left{content:"Generated by Mostafa Elkomy";font:5pt/1 Inter,"Segoe UI",Arial,sans-serif;color:#5b6070;vertical-align:bottom;padding-bottom:6mm}}
@media print{
 html.printing-voucher body>*:not(#voucher-print-root){display:none!important}
 html.printing-voucher,html.printing-voucher body{background:#fff!important;margin:0!important;padding:0!important}
 html.printing-voucher #voucher-print-root{display:block}
 .booking-voucher{-webkit-print-color-adjust:exact;print-color-adjust:exact}
 .booking-voucher .voucher-footer{display:none}
}
