/* Shared heading hierarchy for quotation preview sections. */
.invoice-preview .quotation-summary-content .quotation-section-title,
.invoice-preview .quotation-summary-content .accordion-header .accordion-button{font-family:"Trebuchet MS",Arial,sans-serif;font-size:34px!important;font-weight:600!important;line-height:1.25!important;text-align:left!important;color:#566a7f}
.invoice-preview .quotation-summary-content .card-header{text-align:left!important;padding:16px 20px}
.invoice-preview .quotation-summary-content .accordion-header{margin:0}
.invoice-preview .quotation-summary-content .accordion-button{padding:16px 20px}
.invoice-preview .quotation-summary-content h5:not(.quotation-section-title),
.invoice-preview .quotation-summary-content h6,
.invoice-preview .quotation-summary-content .h5{font-size:1.125rem!important;font-weight:600!important;line-height:1.5!important;text-align:left!important}
.invoice-preview .quotation-summary-content .tour-stay-rooms h6{font-size:1.125rem!important;letter-spacing:0;text-transform:none}
@media(max-width:767px){.invoice-preview .quotation-summary-content .quotation-section-title,.invoice-preview .quotation-summary-content .accordion-header .accordion-button{font-size:28px!important}.invoice-preview .quotation-summary-content .card-header{padding:16px}.invoice-preview .quotation-summary-content .accordion-button{padding:16px}}

.invoice-preview .quotation-brand-header img{width:340px!important;max-width:100%!important;height:auto!important;display:block;margin:0 auto 18px!important;object-fit:contain}
@media(max-width:575px){.invoice-preview .quotation-brand-header img{width:250px!important;margin-bottom:14px!important}}

/* Package exclusions use red crosses, with hanging alignment for wrapped text. */
.invoice-preview #meal-exclusion-content ul{list-style:none!important;padding-left:0!important}
.invoice-preview #meal-exclusion-content li{position:relative;padding-left:22px;margin-bottom:6px;line-height:1.6}
.invoice-preview #meal-exclusion-content li::before{content:"✗";position:absolute;left:0;top:0;color:#dc3545;font-weight:700}
.invoice-preview #selected-inclusions-output li>span:first-child{color:#198754!important}

/* Match list bullets to the detailed itinerary day markers. */
.invoice-preview .quotation-summary-content ul li::marker{color:#4caf50}
.invoice-preview .quotation-summary-content .tour-map-caption[hidden]{display:none!important}

.invoice-preview .quotation-summary-content ul li::marker{font-size:1.35em;color:#4caf50}
.invoice-preview .quotation-note-list{list-style:disc;padding-left:1.5rem;margin-bottom:16px}
.invoice-preview .quotation-note-list li{padding-left:4px;margin-bottom:10px;line-height:1.7}
/* Settings may contain paragraphs rather than list items. Give those notes the same marker. */
.invoice-preview .quotation-important-notes .settings-important-notes>p,
.invoice-preview .quotation-important-notes .edit-content>p{position:relative;padding-left:24px;line-height:1.7}
.invoice-preview .quotation-important-notes .settings-important-notes>p::before,
.invoice-preview .quotation-important-notes .edit-content>p::before{content:"•";position:absolute;left:2px;top:0;color:#4caf50;font-size:1.35em;font-weight:600}

/* Quotation contact header, matching the company stationery. */
.invoice-preview .quotation-eden-header,
.invoice-preview .quotation-eden-header :not(.quotation-contact-icon){color:#003d7a!important}
.invoice-preview .quotation-contact-icon{display:inline-block;font-size:22px;vertical-align:middle;margin-right:6px;line-height:1}
.invoice-preview .quotation-contact-email{color:#cf2027!important}
.invoice-preview .quotation-contact-whatsapp{color:#25d366!important}
.invoice-preview .quotation-contact-website{color:#087dc1!important}

.invoice-preview .card-header .text-blue{color:#003d7a}
/* Compact letterhead matching the sample, with metadata in the facts panel. */
.invoice-preview .quotation-letterhead{padding:20px 24px!important}
.invoice-preview .quotation-letterhead>div{padding:28px 24px!important;border:1px solid #dfe4e9!important;border-radius:8px!important;box-shadow:0 2px 8px rgba(67,89,113,.1)!important}
.invoice-preview .quotation-brand-header{width:100%;line-height:1.8}
.invoice-preview .quotation-brand-header img{width:360px!important;max-height:230px!important;object-fit:contain;margin:0 auto 24px!important}
.invoice-preview .quotation-brand-header .quotation-eden-header p{display:inline-block;vertical-align:middle;margin:0 8px 8px!important;font-size:.875rem;line-height:1.7}
.invoice-preview .quotation-brand-header .quotation-eden-header p:has(img){display:block;width:100%;margin:0 0 20px!important}
.invoice-preview .quotation-brand-header .quotation-eden-header p:empty{display:none}
.invoice-preview .quotation-brand-header .quotation-eden-header p:has(.quotation-contact-icon){margin:0 10px 10px!important}
@media(max-width:767px){.invoice-preview .quotation-letterhead{padding:12px!important}.invoice-preview .quotation-letterhead>div{padding:20px 14px!important}.invoice-preview .quotation-brand-header img{width:260px!important;max-height:180px!important}.invoice-preview .quotation-brand-header .quotation-eden-header p{display:block;margin:0 0 8px!important;overflow-wrap:anywhere}}

.invoice-preview .quotation-sample-letterhead .quotation-letterhead-logo{margin-bottom:24px}
.invoice-preview .quotation-sample-letterhead .quotation-letterhead-row{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:8px 12px;margin:0 0 12px;font-size:.875rem;line-height:1.7}
.invoice-preview .quotation-sample-letterhead .quotation-contact-row{gap:10px 24px}
.invoice-preview .quotation-sample-letterhead .quotation-letterhead-row>span{overflow-wrap:anywhere}
.invoice-preview .quotation-sample-letterhead .quotation-registration-row{margin-top:16px;margin-bottom:0;font-size:.8125rem}
@media(max-width:767px){.invoice-preview .quotation-sample-letterhead .quotation-letterhead-row{flex-direction:column;gap:6px}.invoice-preview .quotation-sample-letterhead .quotation-contact-divider{display:none}}

.quotation-revision-summary .revision-summary-content{overflow-wrap:anywhere;line-height:1.7;min-width:0}
.quotation-revision-summary .revision-summary-content:empty{min-height:36px}
.quotation-revision-summary .edit-content ul,.quotation-revision-summary .edit-content ol{padding-left:1.5rem;white-space:normal}
.quotation-revision-summary .edit-content li{margin-bottom:6px}
@media(max-width:575px){.quotation-revision-summary .card-header,.quotation-revision-summary .accordion-body{padding:16px}.quotation-revision-summary .edit-content{max-width:100%;overflow-wrap:anywhere}}

.quotation-revision-summary .price-revision-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;cursor:pointer;list-style:none;margin:0}
.quotation-revision-summary .price-revision-heading::-webkit-details-marker{display:none}
.quotation-revision-summary .price-revision-heading .quotation-section-title{margin:0}
.quotation-revision-summary .price-revision-heading:focus-visible{outline:2px solid #350073;outline-offset:-4px}
.quotation-revision-summary .price-revision-chevron{width:9px;height:9px;flex-shrink:0;border-right:2px solid currentColor;border-bottom:2px solid currentColor;transform:rotate(45deg);margin-right:4px}
.quotation-revision-summary details[open] .price-revision-chevron{transform:rotate(225deg)}
.quotation-revision-summary details:not([open])>.accordion-body{display:none}

/* Every Important notes block starts below the heading divider. */
.invoice-preview .quotation-important-notes{display:block!important;clear:both;border-top:1px solid #e1e5ee;padding-top:18px!important}
.invoice-preview .quotation-important-notes>#selected-notes-output,.invoice-preview .quotation-important-notes>.settings-important-notes,.invoice-preview .quotation-important-notes>.accordion-wrapper{display:block;width:100%;float:none;clear:both}

/* Keep the tour-brief hierarchy consistent across public templates and quotation links. */
.invoice-preview .quotation-tour-overview .quotation-section-title{font-family:"Trebuchet MS",Arial,sans-serif;font-size:34px!important;font-weight:600!important;line-height:1.25!important;text-align:left!important;color:#566a7f}
.invoice-preview .quotation-tour-overview .tour-stay-rooms{background:#eaf4fc;border-left:4px solid #2875ad;padding:18px 20px}
.invoice-preview .quotation-tour-overview .tour-stay-rooms .tour-hotel-name{font-size:1.375rem!important;font-weight:700!important;line-height:1.45!important;color:#145b8c;overflow-wrap:anywhere}
.invoice-preview .quotation-tour-overview .tour-inline-room{display:block;margin-top:6px;font-size:.95rem;font-weight:500;color:#566a7f}
.invoice-preview .quotation-tour-overview .tour-remaining-toggle{padding:14px 18px;background:#145b8c;color:#fff;border:2px solid #145b8c;border-radius:12px;box-shadow:0 4px 12px rgba(20,91,140,.16);transition:background .15s,box-shadow .15s}
.invoice-preview .quotation-tour-overview .tour-remaining-toggle:hover{background:#104b75;box-shadow:0 5px 16px rgba(20,91,140,.23)}
.invoice-preview .quotation-tour-overview .tour-remaining-toggle:focus-visible{outline:3px solid #7ab6de;outline-offset:4px}
.invoice-preview .quotation-tour-overview .tour-remaining-label{display:flex;flex-direction:column;gap:3px;text-align:left}
.invoice-preview .quotation-tour-overview .tour-remaining-label strong{font-size:1.125rem;font-weight:700}
.invoice-preview .quotation-tour-overview .tour-remaining-label small{font-size:.875rem;font-weight:400;line-height:1.5;color:#fff}
.invoice-preview .quotation-tour-overview .tour-remaining-chevron{width:13px;height:13px;border-width:3px}
.invoice-preview .quotation-tour-overview .tour-collapse-hint{display:none}
.invoice-preview .quotation-tour-overview .tour-remaining-days[open] .tour-expand-hint{display:none}
.invoice-preview .quotation-tour-overview .tour-remaining-days[open] .tour-collapse-hint{display:block}
@media(max-width:767px){.invoice-preview .quotation-tour-overview .quotation-section-title{font-size:28px!important}.invoice-preview .quotation-tour-overview .tour-stay-rooms{border-left:0;border-top:3px solid #2875ad;padding:16px}.invoice-preview .quotation-tour-overview .tour-remaining-toggle{padding:14px 16px}.invoice-preview .quotation-tour-overview .tour-stay-rooms .tour-hotel-name{font-size:1.125rem!important}}

.invoice-preview .quotation-tour-overview .tour-brief-table .tour-day-date{background:#edf5fb}
.invoice-preview .quotation-tour-overview .tour-brief-day-badge{background:#e0eef9;color:#145b8c}
.invoice-preview .quotation-tour-overview .tour-stay-dates strong{background:#e0eef9;color:#145b8c}

/* Compact, consistent section rhythm in preview and private links. */
.invoice-preview .quotation-section-title{margin-top:0!important;margin-bottom:0!important}
.invoice-preview .quotation-tour-overview .tour-plan-heading{margin-top:20px;margin-bottom:14px;gap:10px}
.invoice-preview .quotation-tour-overview .tour-remaining-toggle{margin-bottom:14px}

/* The day tint must continue below short rows without a second background. */
.invoice-preview .quotation-tour-overview .tour-stay-itinerary{background:linear-gradient(to right,#edf5fb 0,#edf5fb 145px,#f8f9fc 145px,#f8f9fc 100%)}
.invoice-preview .quotation-tour-overview .tour-stay-rooms .tour-stay-header{background:transparent}
.invoice-preview .quotation-tour-overview .tour-stay-rooms .tour-hotel-name{margin-bottom:10px!important;color:#0e4169}
@media(min-width:768px){.invoice-preview .quotation-tour-overview .tour-stay-content{grid-template-columns:minmax(0,1.6fr) minmax(0,1fr)}}
@media(max-width:767px){.invoice-preview .quotation-tour-overview .tour-stay-itinerary{background:linear-gradient(to right,#edf5fb 0,#edf5fb 105px,#f8f9fc 105px,#f8f9fc 100%)}}
@media(max-width:420px){.invoice-preview .quotation-tour-overview .tour-stay-itinerary{background:#f8f9fc}}

/* Use the South Asian itinerary typeface and reading scale on quotation documents. */
.invoice-preview{font-family:"Trebuchet MS",Arial,sans-serif;font-size:14px;line-height:1.6}
.invoice-preview .quotation-summary-content,
.invoice-preview .quotation-tour-overview{font-family:"Trebuchet MS",Arial,sans-serif;font-size:14px;line-height:1.6}
.invoice-preview .quotation-section-title,
.invoice-preview .quotation-summary-content .accordion-header .accordion-button{font-family:"Trebuchet MS",Arial,sans-serif;font-size:34px!important;font-weight:600!important;line-height:1.25!important}
.invoice-preview .quotation-summary-content h5,
.invoice-preview .quotation-summary-content h6,
.invoice-preview .quotation-summary-content .h5,
.invoice-preview .quotation-tour-overview .tour-hotel-name{font-family:"Trebuchet MS",Arial,sans-serif}
.invoice-preview button,.invoice-preview input,.invoice-preview select,.invoice-preview textarea{font-family:"Trebuchet MS",Arial,sans-serif}
@media(max-width:767px){.invoice-preview .quotation-section-title,.invoice-preview .quotation-summary-content .accordion-header .accordion-button{font-size:28px!important}}

/* Collapsible section labels are smaller than the main itinerary titles. */
.invoice-preview .accordion-header .accordion-button,
.invoice-preview .quotation-summary-content .accordion-header .accordion-button{font-size:20px!important;font-weight:600!important;line-height:1.4!important;padding:14px 20px}
.invoice-preview .accordion-header .accordion-button .quotation-section-title{font-size:20px!important;line-height:1.4!important}
@media(max-width:767px){.invoice-preview .accordion-header .accordion-button,.invoice-preview .quotation-summary-content .accordion-header .accordion-button,.invoice-preview .accordion-header .accordion-button .quotation-section-title{font-size:18px!important;padding:14px 16px}.invoice-preview .accordion-header .accordion-button .quotation-section-title{padding:0}}

/* Separate document headings from their content, as on the South Asian page. */
.invoice-preview:not(.itinerary-page) .quotation-tour-overview>.card-header,
.invoice-preview:not(.itinerary-page) .quotation-summary-content .card>.card-header{background:#f8f8f8;border-bottom:1px solid #d9dee5;padding:20px 24px;border-radius:12px 12px 0 0}
.invoice-preview:not(.itinerary-page) .quotation-summary-content .accordion-header .accordion-button{background:#f8f8f8!important;border-bottom:1px solid #d9dee5;box-shadow:none!important}
.invoice-preview:not(.itinerary-page) .quotation-tour-overview .tour-plan-heading{background:#f8f8f8;border:1px solid #d9dee5;border-radius:10px;padding:18px 20px;margin:24px 0 18px}
.invoice-preview:not(.itinerary-page) .quotation-revision-summary .price-revision-heading{background:#f8f8f8;border-bottom:1px solid #d9dee5}
@media(max-width:767px){.invoice-preview:not(.itinerary-page) .quotation-tour-overview>.card-header,.invoice-preview:not(.itinerary-page) .quotation-summary-content .card>.card-header{padding:16px}.invoice-preview:not(.itinerary-page) .quotation-tour-overview .tour-plan-heading{padding:16px;margin-top:20px}}

/* A single, clearly signposted disclosure contains every itinerary day. */
.invoice-preview .tour-day-by-day-box>.card-body{padding:0;overflow:hidden;border-radius:12px}
.invoice-preview .tour-day-by-day-box .tour-remaining-toggle{border:0;border-radius:0;margin:0;padding:20px 24px;box-shadow:none}
.invoice-preview .tour-click-hand{font-size:32px;line-height:1;flex-shrink:0}
.invoice-preview .tour-day-by-day-box .tour-remaining-label{flex:1}
.invoice-preview .tour-day-by-day-box .tour-remaining-content{padding:22px}
.invoice-preview .tour-day-by-day-box .tour-stay-group:last-child{margin-bottom:0}
.invoice-preview .tour-day-by-day-box .tour-day-summary-tools{margin-bottom:16px}
/* Hotel-first visual order, with enough room for readable accommodation facts. */
.invoice-preview:not(.itinerary-page) .quotation-tour-overview .tour-stay-content{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
.invoice-preview:not(.itinerary-page) .quotation-tour-overview .tour-stay-rooms{order:-1;border-left:0;border-right:4px solid #2875ad;padding:24px;line-height:1.8}
.invoice-preview:not(.itinerary-page) .quotation-tour-overview .tour-stay-no-hotel{grid-template-columns:minmax(0,1fr)}
.invoice-preview:not(.itinerary-page) .quotation-tour-overview .tour-stay-header{margin-bottom:14px;padding-bottom:12px}
.invoice-preview:not(.itinerary-page) .quotation-tour-overview .tour-stay-period{margin-top:12px;line-height:1.8}
.invoice-preview:not(.itinerary-page) .quotation-tour-overview .tour-room-facts{gap:8px 16px;line-height:1.8}
.invoice-preview:not(.itinerary-page) .quotation-tour-overview .tour-stay-groups :is(small,.small,.tour-room-label,.tour-room-facts){font-size:max(13px,.875rem)}
.invoice-preview:not(.itinerary-page) .quotation-tour-overview .tour-brief-table td{padding-top:18px;padding-bottom:18px}
@media(max-width:767px){.invoice-preview:not(.itinerary-page) .quotation-tour-overview .tour-stay-content{grid-template-columns:minmax(0,1fr)}.invoice-preview:not(.itinerary-page) .quotation-tour-overview .tour-stay-rooms{border-top:0;border-right:0;border-bottom:3px solid #2875ad;padding:20px}.invoice-preview .tour-day-by-day-box .tour-remaining-content{padding:14px}.invoice-preview .tour-day-by-day-box .tour-remaining-toggle{padding:18px}}
@media print{.invoice-preview .tour-full-itinerary>.tour-remaining-content{display:block!important}.invoice-preview .tour-day-by-day-box .tour-remaining-toggle{display:none}}

.invoice-preview .tour-day-by-day-box>.card-body{border-radius:0 0 12px 12px}

/* Rounded disclosure control with a consistent click/tap icon. */
.invoice-preview .tour-day-by-day-box .tour-remaining-toggle{border-radius:12px}
.invoice-preview .tour-day-by-day-box .tour-click-hand{display:inline-flex;align-items:center;justify-content:center;width:44px;height:44px;border-radius:50%;background:rgba(255,255,255,.12);font-size:inherit}
.invoice-preview .tour-day-by-day-box .tour-click-hand svg{display:block;flex-shrink:0}

/* Give accommodation facts a readable hierarchy beneath the hotel name. */
.invoice-preview:not(.itinerary-page) .quotation-tour-overview .tour-stay-rooms .tour-inline-room,
.invoice-preview:not(.itinerary-page) .quotation-tour-overview .tour-stay-period>strong{font-size:16px;font-weight:600;color:#254d6a}
.invoice-preview:not(.itinerary-page) .quotation-tour-overview .tour-stay-header>div:first-child>.small{display:block;margin-top:10px;font-size:14px;color:#425d73!important;line-height:1.7}
.invoice-preview:not(.itinerary-page) .quotation-tour-overview .tour-stay-dates{display:flex;flex-wrap:wrap;align-items:center;gap:8px 12px;margin-top:12px}
.invoice-preview:not(.itinerary-page) .quotation-tour-overview .tour-stay-dates>br{display:none}
.invoice-preview:not(.itinerary-page) .quotation-tour-overview .tour-stay-dates>small{font-size:14px;font-weight:600;color:#36536a}
.invoice-preview:not(.itinerary-page) .quotation-tour-overview .tour-stay-dates>strong{font-size:14px;padding:4px 10px;border-radius:6px}
.invoice-preview:not(.itinerary-page) .quotation-tour-overview .tour-room-facts{margin-top:10px;padding-top:10px;border-top:1px solid #cbdfea;color:#294f6a;font-size:14px;font-weight:500}
.invoice-preview:not(.itinerary-page) .quotation-tour-overview .tour-room-facts>span:first-child{font-weight:700;color:#145b8c}
.invoice-preview:not(.itinerary-page) .quotation-tour-overview .tour-room-label{font-size:13px;font-weight:600;color:#425d73;margin-top:12px;margin-bottom:6px}

/* The topic heading itself is the only itinerary disclosure control. */
.invoice-preview .tour-day-by-day-box .tour-title-toggle{background:#f8f8f8;color:#566a7f;border-radius:12px 12px 0 0;border-bottom:1px solid #d9dee5;box-shadow:none;padding:20px 24px}
.invoice-preview .tour-day-by-day-box .tour-title-toggle:hover{background:#edf3f8;box-shadow:none}
.invoice-preview .tour-day-by-day-box .tour-title-toggle .tour-remaining-label small{color:#536b80;font-size:13px}
.invoice-preview .tour-day-by-day-box .tour-full-itinerary:not([open]) .tour-title-toggle{border-radius:12px;border-bottom:0}
/* Day information on the left (40%); accommodation on the right (60%). */
.invoice-preview:not(.itinerary-page) .quotation-tour-overview .tour-stay-content{grid-template-columns:minmax(0,2fr) minmax(0,3fr)}
.invoice-preview:not(.itinerary-page) .quotation-tour-overview .tour-stay-rooms{order:0;border-right:0;border-bottom:0;border-left:4px solid #2875ad}
.invoice-preview:not(.itinerary-page) .quotation-tour-overview .tour-stay-no-hotel{grid-template-columns:minmax(0,1fr)}
.invoice-preview:not(.itinerary-page) .quotation-tour-overview .tour-stay-rooms .tour-stay-header,
.invoice-preview:not(.itinerary-page) .quotation-tour-overview .tour-stay-rooms .tour-room-facts,
.invoice-preview:not(.itinerary-page) .quotation-tour-overview .tour-stay-rooms .tour-stay-period{border:0}
.invoice-preview:not(.itinerary-page) .quotation-tour-overview .tour-stay-rooms .tour-room-facts{padding-top:0}
@media(max-width:767px){.invoice-preview:not(.itinerary-page) .quotation-tour-overview .tour-stay-content{grid-template-columns:minmax(0,1fr)}.invoice-preview:not(.itinerary-page) .quotation-tour-overview .tour-stay-rooms{border-left:0;border-top:3px solid #2875ad}.invoice-preview .tour-day-by-day-box .tour-title-toggle{padding:16px}}
@media print{.invoice-preview .tour-day-by-day-box .tour-title-toggle{display:flex;background:#f8f8f8}.invoice-preview .tour-title-toggle .tour-remaining-chevron,.invoice-preview .tour-title-toggle small{display:none}}

/* Compact the information inside the itinerary, keeping the title unchanged. */
.invoice-preview:not(.itinerary-page) .quotation-tour-overview .tour-stay-group{margin-bottom:16px}
.invoice-preview:not(.itinerary-page) .quotation-tour-overview .tour-stay-rooms{padding:16px 18px;line-height:1.5}
.invoice-preview:not(.itinerary-page) .quotation-tour-overview .tour-stay-rooms .tour-stay-header{margin-bottom:6px;padding-bottom:0}
.invoice-preview:not(.itinerary-page) .quotation-tour-overview .tour-stay-rooms .tour-hotel-name{margin-bottom:6px!important}
.invoice-preview:not(.itinerary-page) .quotation-tour-overview .tour-stay-header>div:first-child>.small{margin-top:4px;line-height:1.5}
.invoice-preview:not(.itinerary-page) .quotation-tour-overview .tour-stay-dates{margin-top:6px;gap:4px 10px}
.invoice-preview:not(.itinerary-page) .quotation-tour-overview .tour-room-label{margin:8px 0 3px}
.invoice-preview:not(.itinerary-page) .quotation-tour-overview .tour-stay-period{margin-top:6px;padding-top:0;line-height:1.5}
.invoice-preview:not(.itinerary-page) .quotation-tour-overview .tour-room-facts{margin-top:5px;gap:4px 12px;line-height:1.5}
.invoice-preview:not(.itinerary-page) .quotation-tour-overview .tour-brief-table td{padding:10px 12px;line-height:1.5}
.invoice-preview:not(.itinerary-page) .quotation-tour-overview .tour-brief-table td:first-child{width:105px;min-width:0}
.invoice-preview:not(.itinerary-page) .quotation-tour-overview .tour-stay-itinerary{background:linear-gradient(to right,#edf5fb 0,#edf5fb 105px,#f8f9fc 105px,#f8f9fc 100%)}
@media(max-width:420px){.invoice-preview:not(.itinerary-page) .quotation-tour-overview .tour-brief-table td,.invoice-preview:not(.itinerary-page) .quotation-tour-overview .tour-brief-table td:first-child{width:auto;padding:0}.invoice-preview:not(.itinerary-page) .quotation-tour-overview .tour-stay-itinerary{background:#f8f9fc}}

/* Match the itinerary disclosure to the other full-width section headers. */
.invoice-preview .tour-day-by-day-box>.card-body{padding:0!important}
.invoice-preview .tour-day-by-day-box .tour-title-toggle,
.invoice-preview .tour-day-by-day-box .tour-full-itinerary:not([open]) .tour-title-toggle{border-radius:0;border:0;border-bottom:1px solid #d9dee5;margin:0;padding:20px 24px;background:#f8f8f8}
@media(max-width:767px){.invoice-preview .tour-day-by-day-box .tour-title-toggle,.invoice-preview .tour-day-by-day-box .tour-full-itinerary:not([open]) .tour-title-toggle{padding:16px}}

/* Compact day-by-day table: routes and accommodation share one aligned grid. */
.invoice-preview .tour-compact-table-wrap{border:1px solid #c4d3e0;overflow:hidden}
.invoice-preview .tour-compact-table{width:100%;table-layout:fixed;border-collapse:collapse;font-size:14px;line-height:1.5;color:#425d73}
.invoice-preview .tour-compact-table td{padding:14px 16px;vertical-align:top;border-bottom:1px solid #c4d3e0;overflow-wrap:anywhere}
.invoice-preview .tour-compact-table tbody:last-child tr:last-child td{border-bottom:0}
.invoice-preview .tour-compact-day{background:#f8f9fc}
.invoice-preview .tour-compact-hotel{background:#eaf4fc;border-left:2px solid #2875ad}
.invoice-preview .tour-compact-day-meta{display:flex;flex-wrap:wrap;align-items:center;gap:6px 12px;margin-bottom:8px;font-size:13px}
.invoice-preview .tour-compact-day-meta strong,.invoice-preview .tour-compact-nights{display:inline-block;background:#dfedf8;color:#145b8c;padding:3px 8px;font-size:13px;border-radius:4px}
.invoice-preview .tour-compact-nights{margin-bottom:7px}
.invoice-preview .tour-compact-table .tour-compact-name{font-family:inherit;font-size:22px!important;line-height:1.35!important;font-weight:700!important;color:#144668;margin:0 0 8px!important}
.invoice-preview .tour-compact-city{font-size:16px;font-weight:600;white-space:normal}
.invoice-preview .tour-compact-activities{margin:0;font-size:14px;line-height:1.55}
.invoice-preview .tour-compact-facts{margin:0 0 6px;font-size:14px}
.invoice-preview .tour-compact-facts>div{display:flex;flex-wrap:wrap;gap:3px 8px;margin-top:5px}
.invoice-preview .tour-compact-facts dt{font-weight:600}
.invoice-preview .tour-compact-facts dt::after{content:':' }
.invoice-preview .tour-compact-facts dd{margin:0}
.invoice-preview .tour-compact-room-count{font-weight:600;color:#145b8c}
@media(max-width:767px){.invoice-preview .tour-compact-table td{padding:10px}.invoice-preview .tour-compact-table .tour-compact-name{font-size:18px!important}.invoice-preview .tour-compact-city{font-size:14px}.invoice-preview .tour-compact-table,.invoice-preview .tour-compact-facts,.invoice-preview .tour-compact-activities{font-size:13px}}

/* Repeated city-only days are secondary to actual travel routes. */
.invoice-preview .tour-compact-table .tour-compact-name.tour-repeated-city{font-size:15px!important;font-weight:500!important;color:#536b80}
/* Keep accommodation facts together instead of scattering them across columns. */
.invoice-preview .tour-compact-table .tour-compact-hotel{vertical-align:middle}
.invoice-preview .tour-compact-hotel-content{display:block;padding:0}
.invoice-preview .tour-compact-hotel-title{margin-bottom:0}
.invoice-preview .tour-compact-hotel-content .tour-compact-facts{margin:0}
.invoice-preview .tour-compact-hotel-content .tour-compact-facts>div{display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 8px;margin:0}
.invoice-preview .tour-compact-hotel-content .tour-compact-facts dt{font-size:14px;font-weight:600;color:#425d73;margin:0}
.invoice-preview .tour-compact-hotel-content .tour-compact-facts dd{font-size:14px;font-weight:500;color:#294f6a;margin:0}
.invoice-preview .tour-compact-hotel-content .tour-compact-room-count dd{font-weight:600}
@media(max-width:767px){.invoice-preview .tour-compact-hotel-content .tour-compact-facts dt,.invoice-preview .tour-compact-hotel-content .tour-compact-facts dd{font-size:13px}}

/* Put hotel and room categories alongside each other, with remaining facts below. */
.invoice-preview .tour-compact-hotel-content{display:grid;grid-template-columns:max-content minmax(0,1fr);column-gap:20px;row-gap:6px}
.invoice-preview .tour-compact-hotel-title{grid-column:1 / -1}
.invoice-preview .tour-hotel-category-fact{grid-column:1;grid-row:2}
.invoice-preview .tour-room-period-facts{display:contents}
.invoice-preview .tour-compact-hotel-content .tour-room-category-fact{grid-column:2}
.invoice-preview .tour-room-period-facts>.tour-compact-room-count,
.invoice-preview .tour-room-period-facts>div:last-child{grid-column:1 / -1}
@media(max-width:767px){.invoice-preview .tour-compact-hotel-content{column-gap:14px;grid-template-columns:minmax(0,1fr) minmax(0,1fr)}}

.invoice-preview .tour-compact-hotel-title .tour-compact-name{margin-bottom:2px!important}

/* Room total and meal plan share the next facts row. */
.invoice-preview .tour-room-period-facts>.tour-compact-room-count{grid-column:1}
.invoice-preview .tour-room-period-facts>div:last-child{grid-column:2}

.invoice-preview .quotation-tour-overview .tour-stats{font-size:17px;line-height:1.5;color:#425d73!important;gap:20px}
.invoice-preview .quotation-tour-overview .tour-stats strong{font-size:20px;font-weight:700;color:#145b8c;margin-right:3px}
@media(max-width:575px){.invoice-preview .quotation-tour-overview .tour-stats{font-size:16px}.invoice-preview .quotation-tour-overview .tour-stats strong{font-size:18px}}

/* Put transfers above each day's visits in the compact quotation overview. */
.invoice-preview .tour-compact-hotel{border-left:1px solid #dbe4ed}
.invoice-preview .tour-compact-day-visits{display:grid;grid-template-columns:110px minmax(0,1fr);gap:14px;align-items:start}
.invoice-preview .tour-compact-day-visits .tour-compact-day-meta{display:flex;flex-direction:column;align-items:flex-start;gap:5px;margin:0}
@media(max-width:767px){.invoice-preview .tour-compact-day-visits{grid-template-columns:85px minmax(0,1fr);gap:10px}}

/* Match hotel names and transfer headings to the city label size. */
.invoice-preview .tour-compact-table .tour-compact-name{font-size:16px!important}
@media(max-width:767px){.invoice-preview .tour-compact-table .tour-compact-name{font-size:14px!important}}

/* Day, date and transfer share a heading row; visits sit underneath. */
.invoice-preview .tour-compact-day-heading{display:flex;flex-wrap:wrap;align-items:center;gap:8px 14px;margin-bottom:8px}
.invoice-preview .tour-compact-day-heading .tour-compact-day-meta{display:flex;flex-direction:row;align-items:center;flex-wrap:wrap;gap:8px 12px;margin:0}
.invoice-preview .tour-compact-day-heading .tour-compact-day-meta>span{white-space:nowrap}
.invoice-preview .tour-compact-day-heading .tour-compact-name{margin:0!important}

/* Keep the nights badge beside the hotel name. */
.invoice-preview .tour-compact-hotel-title{display:flex;flex-wrap:wrap;align-items:center;gap:8px 12px}
.invoice-preview .tour-compact-hotel-title .tour-compact-nights,
.invoice-preview .tour-compact-hotel-title .tour-compact-name{margin:0!important}

/* Compact individual fact boxes flow together and wrap on narrow screens. */
.invoice-preview .tour-compact-facts-box{grid-column:1 / -1;display:flex;flex-wrap:wrap;align-items:stretch;gap:6px;background:transparent;margin-top:4px}
.invoice-preview .tour-compact-facts-box .tour-compact-facts{display:contents}
.invoice-preview .tour-compact-hotel-content .tour-compact-facts-box .tour-compact-facts>div{display:flex;flex-wrap:wrap;align-items:baseline;gap:3px 6px;margin:0;padding:7px 9px;border:1px solid #ccdbe6;border-radius:5px;background:transparent;min-width:0;max-width:100%;overflow-wrap:anywhere;flex:0 1 auto}
.invoice-preview .tour-compact-hotel-content .tour-compact-facts-box dt,
.invoice-preview .tour-compact-hotel-content .tour-compact-facts-box dd{font-size:12px;line-height:1.5}
@media(max-width:575px){
.invoice-preview .tour-compact-hotel-content .tour-compact-facts-box .tour-compact-facts>div{flex:1 1 140px;padding:7px 8px}
}

.invoice-preview svg.quotation-contact-icon{display:inline-block;flex-shrink:0;vertical-align:middle;width:22px;height:22px}

/* Keep SVG contact colours when the letterhead applies its blue text colour. */
.invoice-preview .quotation-eden-header svg.quotation-contact-email,
.invoice-preview .quotation-eden-header svg.quotation-contact-email *{stroke:#cf2027!important}
.invoice-preview .quotation-eden-header svg.quotation-contact-whatsapp,
.invoice-preview .quotation-eden-header svg.quotation-contact-whatsapp *{stroke:#25d366!important}
.invoice-preview .quotation-eden-header svg.quotation-contact-website,
.invoice-preview .quotation-eden-header svg.quotation-contact-website *{stroke:#087dc1!important}
