@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+Gujarati:wght@400;600;700&family=Playfair+Display:ital,wght@0,600;0,700;0,800;1,600;1,700&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

/* ==========================================================================
   SHYAM CATERERS & EVENT MANAGEMENT - OFFICIAL PRINT & PROPOSAL STYLES
   Multi-Page Luxury Event Proposal (A4) & Corporate Estimate Sheets
   Crafting Culinary & Event Experiences Since 1988
   ========================================================================== */

/* Theme Selector Pills in Header */
.report-theme-selector-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.theme-pill-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  transition: all var(--transition-fast);
}

.theme-pill-btn:hover {
  border-color: var(--gold-primary);
  color: #FFF;
}

.theme-pill-btn.active {
  background: var(--gold-primary);
  color: #0B101B;
  border-color: var(--gold-primary);
  font-weight: 800;
  box-shadow: 0 0 10px rgba(212, 175, 55, 0.4);
}

/* Base Report Preview Container */
.report-preview-container {
  color: #111;
  font-family: 'Plus Jakarta Sans', 'Arial', sans-serif;
  margin: 0 auto;
  max-width: 900px;
  position: relative;
}

/* ==========================================================================
   MULTI-PAGE LUXURY A4 PROPOSAL DOCUMENT (Section: Image 1-7 A4 Report)
   ========================================================================== */
.a4-document-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
  width: 100%;
}

.a4-page {
  width: 210mm;
  min-height: 297mm;
  height: 297mm;
  box-sizing: border-box;
  padding: 22mm 22mm 26mm 22mm;
  position: relative;
  background-size: 100% 100%;
  background-repeat: no-repeat;
  background-position: center;
  box-shadow: 0 14px 45px rgba(0, 0, 0, 0.6);
  border-radius: 4px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background-color: #FFF;
}

/* Static Full-Bleed Pages (Page 1 Cover & Page 2 Introduction from User Uploads) */
.a4-page.a4-static-cover-page,
.a4-page.a4-static-intro-page {
  padding: 0 !important;
  background-image: none !important;
  border: none !important;
  outline: none !important;
  overflow: hidden;
  position: relative;
  display: block !important;
}

.a4-full-bleed-image {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: fill;
  pointer-events: none;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: high-quality;
}

/* --- THEME 1: ROYAL BLUSH & GOLD (Default 4K Ultra-HD Template) --- */
.theme-royal-blush .a4-page:not(.a4-static-cover-page) {
  background-image: url('/assets/templates/theme_blush_bg_4k.jpg');
  background-color: #FDF5F2;
  color: #1A1A1A;
}
.theme-royal-blush .script-accent { color: #A81D24; font-family: 'Great Vibes', cursive; }
.theme-royal-blush .title-accent { color: #7E1218; font-family: 'Playfair Display', serif; }
.theme-royal-blush .gold-ornament { color: #C5A059; }

/* 4K Ultra-HD Vector Introduction Page - Richly populates whole page without empty voids */
.intro-page-vector {
  padding: 20mm 22mm 24mm 22mm !important;
  display: flex !important;
  flex-direction: column;
  justify-content: flex-start !important;
  gap: 10px;
  box-sizing: border-box;
}

.intro-script-header {
  font-family: 'Great Vibes', cursive;
  font-size: 2.7rem;
  color: #A81D24;
  line-height: 1;
  text-align: left;
}

.intro-gold-double-rule {
  height: 3px;
  border-top: 1.5px solid #C5A059;
  border-bottom: 1.5px solid #C5A059;
  margin: 3px 0 8px 0;
  width: 100%;
}

.intro-brand-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.18rem;
  font-weight: 800;
  color: #B48228;
  text-align: left;
  margin-bottom: 2px;
}

.intro-brand-tagline {
  font-size: 0.84rem;
  font-weight: 800;
  color: #7E1218;
  text-align: left;
  margin-bottom: 6px;
}

.intro-body-text p {
  font-size: 0.76rem;
  color: #222;
  line-height: 1.42;
  margin-bottom: 5px;
  text-align: justify;
}

/* Heritage Milestone KPI Bar */
.intro-highlights-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  background: rgba(255, 255, 255, 0.78);
  border: 1.2px solid rgba(197, 160, 89, 0.45);
  border-radius: 8px;
  padding: 8px 10px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(197, 160, 89, 0.1);
  margin: 2px 0 4px 0;
}

.intro-kpi-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.intro-kpi-num {
  font-family: 'Playfair Display', serif;
  font-size: 1.18rem;
  font-weight: 800;
  color: #7E1218;
  line-height: 1.1;
}

.intro-kpi-lbl {
  font-size: 0.67rem;
  font-weight: 700;
  color: #555;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 2px;
}

.intro-section-heading {
  font-family: 'Playfair Display', serif;
  font-size: 0.98rem;
  font-weight: 800;
  color: #B48228;
  margin: 5px 0 3px 0;
  text-align: center;
}

/* Specialized Divisions 2-Card Grid */
.intro-divisions-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 3px;
}

.intro-division-card {
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(197, 160, 89, 0.4);
  border-left: 3.5px solid #7E1218;
  border-radius: 6px;
  padding: 7px 10px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
}

.intro-division-title {
  font-family: 'Playfair Display', serif;
  font-weight: 800;
  font-size: 0.84rem;
  color: #7E1218;
  letter-spacing: 0.6px;
  margin-bottom: 2px;
}

.intro-division-desc {
  font-size: 0.72rem;
  color: #333;
  line-height: 1.36;
}

/* Signature Specialties Pill Badges */
.intro-specialties-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 3px;
  justify-content: center;
}

.intro-specialty-pill {
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(197, 160, 89, 0.45);
  color: #7E1218;
  font-size: 0.71rem;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 20px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

/* Regional Presence Hubs Box */
.intro-presence-box {
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(197, 160, 89, 0.4);
  border-radius: 6px;
  padding: 6px 12px;
  font-size: 0.73rem;
  color: #222;
  line-height: 1.38;
  margin-top: 3px;
}

.intro-presence-box strong {
  color: #7E1218;
}

.intro-closing-tagline {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 0.88rem;
  font-weight: 700;
  color: #7E1218;
  text-align: center;
  margin-top: 5px;
}

/* --- THEME 2: ROYAL CREAM & BURGUNDY --- */
.theme-royal-cream .a4-page:not(.a4-static-cover-page):not(.a4-static-intro-page) {
  background: linear-gradient(135deg, #FAF6EE 0%, #F5EFE0 50%, #FAF5EA 100%);
  border: 12px double #C5A059;
  outline: 2px solid #7E1218;
  outline-offset: -8px;
  color: #1A1A1A;
}
.theme-royal-cream .script-accent { color: #7E1218; font-family: 'Great Vibes', cursive; }
.theme-royal-cream .title-accent { color: #7E1218; font-family: 'Playfair Display', serif; }
.theme-royal-cream .gold-ornament { color: #B8860B; }

/* --- THEME 3: TRADITIONAL GUJARATI GOLD & RUBY --- */
.theme-traditional-gold .a4-page:not(.a4-static-cover-page):not(.a4-static-intro-page) {
  background: linear-gradient(135deg, #FFFDF7 0%, #FFF8EE 100%);
  border: 10px solid #991B1B;
  outline: 3px double #D97706;
  outline-offset: -7px;
  color: #18181B;
}
.theme-traditional-gold .script-accent { color: #991B1B; font-family: 'Great Vibes', cursive; }
.theme-traditional-gold .title-accent { color: #991B1B; font-family: 'Playfair Display', serif; }
.theme-traditional-gold .gold-ornament { color: #D97706; }

/* --- THEME 4: MODERN MINIMALIST (ECO-WHITE) --- */
.theme-modern-minimalist .a4-page:not(.a4-static-cover-page):not(.a4-static-intro-page) {
  background: #FFFFFF;
  border: 1.5px solid #D4AF37;
  outline: 1px solid #E2E8F0;
  outline-offset: -5px;
  color: #0F172A;
}
.theme-modern-minimalist .script-accent { color: #0F172A; font-family: 'Great Vibes', cursive; }
.theme-modern-minimalist .title-accent { color: #0F172A; font-family: 'Playfair Display', serif; }
.theme-modern-minimalist .gold-ornament { color: #94A3B8; }

/* --------------------------------------------------------------------------
   PAGE 1: TITLE / COVER PAGE
   -------------------------------------------------------------------------- */
.cover-page-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  text-align: center;
  padding: 10px 0;
}

.cover-logo-wrapper {
  margin-top: 20px;
}

.cover-brand-logo {
  max-width: 240px;
  height: auto;
  filter: drop-shadow(0 4px 12px rgba(197, 160, 89, 0.3));
}

.cover-script-tagline {
  font-family: 'Great Vibes', cursive;
  font-size: 2rem;
  color: #A81D24;
  margin-top: 10px;
  line-height: 1.1;
}

.cover-ornate-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  width: 80%;
  margin: 12px auto;
  color: #C5A059;
}
.cover-ornate-divider .line {
  flex: 1;
  height: 1.5px;
  background: linear-gradient(90deg, transparent, #C5A059, transparent);
}

.cover-occasion-title {
  font-family: 'Playfair Display', serif;
  font-size: 2.3rem;
  font-weight: 800;
  color: #7E1218;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin: 10px 0 6px 0;
  line-height: 1.15;
}

.cover-proposal-sub {
  font-size: 0.84rem;
  font-weight: 800;
  color: #A81D24;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.cover-client-box {
  background: rgba(255, 255, 255, 0.75);
  border: 1.5px solid rgba(197, 160, 89, 0.6);
  border-radius: 12px;
  padding: 16px 28px;
  margin: 10px auto;
  max-width: 500px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.cover-client-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.85rem;
  font-weight: 800;
  color: #111;
  margin-bottom: 4px;
}

.cover-client-city {
  font-size: 0.9rem;
  font-weight: 700;
  color: #7E1218;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.cover-meta-grid {
  display: flex;
  justify-content: center;
  gap: 20px;
  font-size: 0.85rem;
  color: #333;
  margin: 12px 0;
}
.cover-meta-pill {
  background: rgba(255, 255, 255, 0.7);
  padding: 6px 14px;
  border-radius: 50px;
  border: 1px solid rgba(197, 160, 89, 0.4);
  font-weight: 700;
}

.cover-bottom-signature {
  font-size: 0.78rem;
  font-weight: 800;
  color: #7E1218;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  border-top: 1.5px solid rgba(197, 160, 89, 0.5);
  padding-top: 10px;
  width: 90%;
  margin: 0 auto;
}

/* --------------------------------------------------------------------------
   PAGE 2: FUNCTION DETAILS & INITIAL MENU COURSES (Exact Match Image 2)
   -------------------------------------------------------------------------- */
.page-script-header {
  font-family: 'Great Vibes', cursive;
  font-size: 2.8rem;
  color: #A81D24;
  text-align: center;
  margin-bottom: 8px;
  line-height: 1;
}

.function-details-table {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 2px 20px;
  background: rgba(255, 255, 255, 0.6);
  border-radius: 6px;
  padding: 6px 12px;
  margin-bottom: 8px;
  font-size: 0.82rem;
  line-height: 1.35;
}

.fd-row {
  display: flex;
  align-items: baseline;
  margin-bottom: 1px;
}

.fd-label {
  font-weight: 800;
  color: #111;
  width: 95px;
  flex-shrink: 0;
}

.fd-val {
  font-weight: 600;
  color: #222;
  word-break: break-word;
}

.menu-script-heading-wrap {
  margin: 6px 0 10px 0;
}

.menu-script-heading {
  font-family: 'Great Vibes', cursive;
  font-size: 2.1rem;
  color: #A81D24;
  line-height: 1;
  display: block;
}

.menu-heading-double-line {
  height: 3px;
  border-top: 1.5px solid #C5A059;
  border-bottom: 1.5px solid #C5A059;
  margin-top: 2px;
  width: 100%;
}

/* Course / Category Section Header (Exact Match with Image 2 & 3) */
/* Course / Category Section Header (Exact Match with Reference Images) */
.course-section-header,
.course-title-header {
  text-align: center;
  margin: 10px auto 4px auto;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.course-ornament-top,
.course-ornament-bottom {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #C5A059;
  width: 100%;
}

.course-ornament-top .ornament-line,
.course-ornament-bottom .ornament-line {
  width: 80px;
  height: 1.2px;
  background: linear-gradient(90deg, transparent, #C5A059 30%, #C5A059 70%, transparent);
}

.ornament-diamond {
  font-size: 11px;
  color: #C5A059;
  opacity: 0.95;
}

.course-section-title,
.course-title-text {
  font-family: 'Cinzel Decorative', 'Playfair Display', 'Georgia', serif;
  font-size: 1.25rem;
  font-weight: 800;
  color: #C01823 !important; /* Vibrant luxury crimson red */
  text-align: center;
  letter-spacing: 0.5px;
  margin: 2px 0;
  display: block;
  line-height: 1.25;
  text-transform: none; /* Keep Title Case as shown in reference image */
  text-shadow: 0 0 1px rgba(192, 24, 35, 0.15);
}

.menu-page-courses-container {
  flex: 1;
  margin-bottom: 8mm;
}

.menu-dish-entry {
  text-align: center;
  margin-bottom: 5px;
  line-height: 1.25;
}

.dish-entry-name {
  font-size: 0.90rem;
  font-weight: 800;
  color: #111;
}

.dish-entry-sub {
  font-size: 0.74rem;
  color: #333;
  font-style: normal;
}

/* Running A4 Page Footer - Hidden to prevent overlap with bottom template design */
.a4-page-footer {
  display: none !important;
}

/* Discrete Corner Page Number - Positioned below the bottom border design in the corner */
.a4-page-corner-number {
  position: absolute;
  bottom: 5mm;
  right: 12mm;
  font-size: 0.74rem;
  font-weight: 700;
  color: #7E1218;
  font-family: 'Plus Jakarta Sans', Arial, sans-serif;
  letter-spacing: 0.5px;
  z-index: 10;
  pointer-events: none;
}

/* --------------------------------------------------------------------------
   PAGE 5/LAST: CONTACT US PAGE (Exact Match Image 5)
   -------------------------------------------------------------------------- */
.contact-page-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  text-align: center;
  padding: 10px 0;
}

.contact-logo-top {
  max-width: 220px;
  height: auto;
  margin-top: 10px;
  filter: drop-shadow(0 2px 8px rgba(197, 160, 89, 0.3));
}

.contact-script-callout {
  font-family: 'Great Vibes', cursive;
  font-size: 2.6rem;
  color: #C5A059;
  margin: 10px 0 6px 0;
  line-height: 1.1;
}

.contact-divider-flourish {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 70%;
  margin: 8px auto 18px auto;
}
.contact-divider-flourish .line {
  flex: 1;
  height: 1.5px;
  background: linear-gradient(90deg, transparent, #C5A059, transparent);
}
.contact-header-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.35rem;
  font-weight: 800;
  color: #A81D24;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.contact-rows-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 90%;
  max-width: 520px;
  margin: 0 auto;
}

.contact-info-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.contact-icon-circle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #C5A059;
  color: #FFF;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(197, 160, 89, 0.4);
}

.contact-info-text {
  font-size: 0.88rem;
  font-weight: 700;
  color: #222;
}

.contact-address-box {
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(197, 160, 89, 0.4);
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 0.8rem;
  color: #333;
  line-height: 1.45;
  margin-top: 4px;
}

.contact-qr-wrapper {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.contact-qr-box {
  background: #FFF;
  padding: 8px;
  border: 1px solid rgba(197, 160, 89, 0.5);
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

.contact-social-icons-row {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
}
.contact-social-pill {
  width: 22px;
  height: 22px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFF;
  font-size: 0.7rem;
}
.contact-social-pill.insta { background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%); }
.contact-social-pill.tiktok { background: #000; }
.contact-social-pill.fb { background: #1877F2; }
.contact-social-pill.wa { background: #25D366; }

/* ==========================================================================
   ORIGINAL 1-PAGE ESTIMATE STYLES (PRESERVED)
   ========================================================================== */
.report-watermark {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  opacity: 0.045;
  width: 480px;
  pointer-events: none;
  z-index: 0;
}

.report-content {
  position: relative;
  z-index: 1;
}

.report-top-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
  position: relative;
}

.report-shreeji-krupa {
  position: absolute;
  top: -6px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.85rem;
  font-weight: 700;
  color: #7E1218;
}

.report-logo-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.report-estimate-ribbon {
  background: #7E1218;
  color: #FFF;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 2px;
  padding: 8px 4px;
  border-radius: 2px;
}

.report-brand-logo {
  max-width: 170px;
  height: auto;
}

.report-contacts-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}

.branch-contact-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 700;
}

.branch-badge {
  background: #C5A059;
  color: #000;
  padding: 2px 8px;
  border-radius: 50px;
  font-size: 0.7rem;
  font-weight: 800;
}

.branch-badge.surat { background: #F3C64F; }
.branch-phone { color: #000; }
.report-sub-tagline { font-size: 0.76rem; font-weight: 700; color: #7E1218; margin-top: 4px; }

.report-event-title-banner {
  text-align: center;
  font-size: 1.4rem;
  font-weight: 900;
  color: #000;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin: 12px 0 10px 0;
  padding-bottom: 4px;
  border-bottom: 2px solid #000;
}

.report-meta-box {
  border: 1.5px solid #000;
  border-radius: 4px;
  padding: 10px 14px;
  margin-bottom: 12px;
  font-size: 0.84rem;
}

.report-meta-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 6px 18px;
}

.meta-row { display: flex; gap: 6px; }
.meta-label { font-weight: 700; min-width: 110px; color: #333; }
.meta-val { font-weight: 600; color: #000; }

.report-meal-banner {
  background: #000;
  color: #FFF;
  padding: 6px 14px;
  border-radius: 4px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.meal-banner-title { font-weight: 800; font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.5px; }
.meal-banner-grid { display: flex; gap: 18px; font-size: 0.82rem; }

.report-menu-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 16px;
}

.report-menu-table tr { border-bottom: 1px solid #E5E7EB; }
.report-menu-table td { padding: 6px 8px; font-size: 0.86rem; vertical-align: middle; }
.report-col-category { font-weight: 800; color: #7E1218; width: 30%; text-transform: uppercase; font-size: 0.82rem; }
.report-col-sno { width: 10%; text-align: center; color: #666; font-size: 0.78rem; }
.report-col-item { font-weight: 700; color: #111; width: 60%; }
.report-item-guj { color: #C5A059; font-size: 0.8rem; margin-left: 8px; font-weight: 500; }

.report-footer {
  margin-top: 24px;
  padding-top: 12px;
  border-top: 2px solid #000;
  font-size: 0.75rem;
}

.report-footer-meta {
  display: flex;
  justify-content: space-between;
  font-weight: 700;
  margin-bottom: 10px;
}

.report-footer-addresses {
  display: flex;
  flex-direction: column;
  gap: 6px;
  border-top: 1px solid #D1D5DB;
  padding-top: 8px;
}

.footer-addr-row { display: flex; gap: 8px; align-items: center; }
.footer-badge { background: #7E1218; color: #FFF; font-size: 0.65rem; font-weight: 800; padding: 2px 6px; border-radius: 3px; text-transform: uppercase; white-space: nowrap; }
.footer-badge.branch { background: #C5A059; color: #000; }
.footer-badge.surat { background: #111; color: #FFF; }
.footer-addr-text { color: #222; font-size: 0.74rem; font-weight: 600; }

/* ==========================================================================
   PRINT MEDIA RULES (A4 PROPOSAL & 1-PAGE ESTIMATE)
   ========================================================================== */
@media print {
  @page {
    size: A4 portrait;
    margin: 0;
  }

  html, body {
    background: #FFF !important;
    color: #000 !important;
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
    height: auto !important;
    overflow: visible !important;
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }

  /* Completely hide all app chrome, screens, sidebars, headers, and ALL other modals */
  #app-shell,
  .app-shell,
  .sidebar,
  .top-header,
  .main-wrapper,
  .main-content,
  .view-section,
  #login-view,
  #dashboard-view,
  #calendar-view,
  #events-view,
  #menu-planning-view,
  #menu-items-view,
  #categories-view,
  #reports-view,
  #settings-view,
  #modal-add-event,
  #modal-event-details,
  #modal-event-billing,
  #modal-item,
  #modal-category,
  #modal-delete-confirm,
  #toast-container,
  .modal-overlay:not(#modal-report-preview):not(#modal-billing-document):not(#modal-chithi-preview),
  .modal-header,
  .modal-footer,
  .btn-primary,
  .btn-secondary,
  .cal-views-toggle,
  .report-theme-selector-bar {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    height: 0 !important;
    width: 0 !important;
    overflow: hidden !important;
    position: absolute !important;
    left: -9999px !important;
  }

  /* ONLY show the report preview modal when active */
  #modal-report-preview {
    display: none !important;
  }

  #modal-report-preview.active {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: static !important;
    background: transparent !important;
    padding: 0 !important;
    margin: 0 !important;
    width: 100% !important;
    height: auto !important;
    overflow: visible !important;
    box-shadow: none !important;
    border: none !important;
  }

  #modal-report-preview .modal-container {
    display: block !important;
    visibility: visible !important;
    position: static !important;
    background: transparent !important;
    padding: 0 !important;
    margin: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    max-height: none !important;
    overflow: visible !important;
    border: none !important;
    box-shadow: none !important;
  }

  #modal-report-preview .modal-body {
    display: block !important;
    visibility: visible !important;
    position: static !important;
    background: transparent !important;
    padding: 0 !important;
    margin: 0 !important;
    width: 100% !important;
    max-height: none !important;
    overflow: visible !important;
  }

  .report-preview-container,
  #printable-report-document {
    display: block !important;
    visibility: visible !important;
    background: transparent !important;
    padding: 0 !important;
    margin: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    box-shadow: none !important;
  }

  .a4-document-wrapper {
    display: block !important;
    gap: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
  }

  .a4-page {
    width: 210mm !important;
    height: 297mm !important;
    min-height: 297mm !important;
    max-height: 297mm !important;
    margin: 0 !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    page-break-after: always !important;
    break-after: page !important;
    page-break-inside: avoid !important;
    break-inside: avoid !important;
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }

  .a4-page:last-child {
    page-break-after: auto !important;
    break-after: auto !important;
  }

  .a4-page.a4-static-cover-page,
  .a4-page.a4-static-intro-page {
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
  }

  .a4-full-bleed-image {
    width: 210mm !important;
    height: 297mm !important;
    object-fit: fill !important;
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }

  /* Show billing document modal ONLY when active */
  #modal-billing-document {
    display: none !important;
  }

  #modal-billing-document.active {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: static !important;
    background: transparent !important;
    padding: 0 !important;
    margin: 0 !important;
    width: 100% !important;
    height: auto !important;
    overflow: visible !important;
    box-shadow: none !important;
    border: none !important;
  }

  #modal-billing-document.active .modal-content {
    background: transparent !important;
    box-shadow: none !important;
    border: none !important;
    max-width: 100% !important;
    max-height: none !important;
    height: auto !important;
    overflow: visible !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  #modal-billing-document.active .modal-body {
    background: transparent !important;
    padding: 0 !important;
    margin: 0 !important;
    overflow: visible !important;
    max-height: none !important;
    height: auto !important;
    display: block !important;
  }

  /* Show Chithi preview modal ONLY when active */
  #modal-chithi-preview {
    display: none !important;
  }

  #modal-chithi-preview.active {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: static !important;
    background: transparent !important;
    padding: 0 !important;
    margin: 0 !important;
    width: 100% !important;
    height: auto !important;
    overflow: visible !important;
    box-shadow: none !important;
    border: none !important;
  }

  #modal-chithi-preview.active .modal-container,
  #modal-chithi-preview.active .modal-content {
    background: transparent !important;
    box-shadow: none !important;
    border: none !important;
    max-width: 100% !important;
    max-height: none !important;
    height: auto !important;
    overflow: visible !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  #modal-chithi-preview.active .modal-body {
    background: transparent !important;
    padding: 0 !important;
    margin: 0 !important;
    overflow: visible !important;
    max-height: none !important;
    height: auto !important;
    display: block !important;
  }

  .bill-of-supply-page,
  .printable-voucher-container,
  .printable-doc-container {
    box-shadow: none !important;
    border-radius: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    page-break-inside: avoid !important;
    break-inside: avoid !important;
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }

  .chithi-a4-wrapper {
    display: block !important;
    padding: 0 !important;
    margin: 0 !important;
    width: 210mm !important;
  }

  .chithi-a4-page {
    width: 210mm !important;
    height: 297mm !important;
    min-height: 297mm !important;
    max-height: 297mm !important;
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    grid-template-rows: 1fr 1fr !important;
    gap: 6mm !important;
    padding: 8mm 6mm !important;
    box-sizing: border-box !important;
    page-break-after: always !important;
    break-after: page !important;
    page-break-inside: avoid !important;
    break-inside: avoid !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    margin: 0 auto !important;
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }

  .chithi-a4-page:last-child {
    page-break-after: auto !important;
    break-after: auto !important;
  }

  .chithi-card {
    border: 1.5px solid #000000 !important;
    padding: 8px 10px !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    height: 100% !important;
    box-sizing: border-box !important;
  }

  .no-print,
  .bill-row-delete-btn,
  .bill-add-row-btn {
    display: none !important;
  }

  .bill-input-clean {
    border: none !important;
    background: transparent !important;
    padding: 0 !important;
    box-shadow: none !important;
    color: #0f172a !important;
  }
}

/* ==========================================================================
   OFFICIAL BILLING, PAYMENT RECEIPT, QUOTATION & INVOICE DOCUMENT STYLES
   ========================================================================== */

/* Exact "BILLS OF SUPPLY" Layout from User Uploaded PDF Template */
.bill-of-supply-page {
  width: 100%;
  max-width: 840px;
  background: #FFFFFF !important;
  color: #0f172a;
  padding: 24px 28px;
  margin: 0 auto 30px auto;
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.45);
  font-family: 'Plus Jakarta Sans', Arial, Helvetica, sans-serif;
  box-sizing: border-box;
  position: relative;
  line-height: 1.35;
  min-height: fit-content;
}

.bos-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  gap: 12px;
  background: #FFFFFF;
}

.bos-logo-col {
  width: 175px;
  display: flex;
  align-items: center;
}

.bos-logo {
  max-height: 74px;
  max-width: 170px;
  object-fit: contain;
}

.bos-center-title {
  flex: 1;
  text-align: center;
}

.bos-company-name {
  font-size: 21px;
  font-weight: 900;
  color: #0f172a;
  margin: 0;
  letter-spacing: 0.5px;
}

.bos-address-lines {
  font-size: 11px;
  font-weight: 700;
  color: #334155;
  margin-top: 4px;
  line-height: 1.4;
}

.bos-meta-contact {
  width: 215px;
  font-size: 11px;
  line-height: 1.6;
  color: #0f172a;
  text-align: right;
  font-weight: 500;
}

.bos-meta-contact strong {
  font-weight: 700;
}

.bos-banner {
  background: #0284c7;
  color: #ffffff;
  padding: 6px 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border: 1px solid #0284c7;
  border-bottom: none;
  box-sizing: border-box;
}

.bos-banner-title {
  flex: 1;
  text-align: center;
  font-size: 16.5px;
  font-weight: 800;
  letter-spacing: 1.2px;
  padding-left: 110px;
}

.bos-banner-sub {
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.bos-customer-grid {
  border: 1px solid #0284c7;
  display: flex;
  box-sizing: border-box;
  background: #FFFFFF;
}

.bos-cust-left {
  flex: 1.18;
  border-right: 1px solid #0284c7;
  background: #FFFFFF;
}

.bos-cust-header {
  background: #f0f9ff;
  border-bottom: 1px solid #0284c7;
  font-weight: 800;
  font-size: 11.5px;
  text-align: center;
  padding: 4px 0;
  color: #0369a1;
}

.bos-cust-table {
  width: 100%;
  font-size: 11px;
  border-collapse: collapse;
  background: #FFFFFF;
}

.bos-cust-table td {
  padding: 4px 8px;
  vertical-align: top;
}

.bos-cust-table td.label {
  font-weight: 800;
  width: 75px;
  color: #0f172a;
}

.bos-cust-right {
  flex: 0.82;
  display: flex;
  flex-direction: column;
  background: #FFFFFF;
}

.bos-inv-table {
  width: 100%;
  font-size: 11px;
  border-collapse: collapse;
  height: 100%;
  background: #FFFFFF;
}

.bos-inv-table tr {
  border-bottom: 1px solid #bae6fd;
}

.bos-inv-table tr:last-child {
  border-bottom: none;
}

.bos-inv-table td {
  padding: 6px 10px;
}

.bos-inv-table td.label {
  font-weight: 800;
  width: 95px;
  color: #0f172a;
}

.bos-items-table {
  border: 1px solid #0284c7;
  border-collapse: collapse;
  width: 100%;
  margin-top: -1px;
  background: #FFFFFF;
}

.bos-items-table th {
  border: 1px solid #0284c7;
  background: #e0f2fe;
  color: #0f172a;
  font-size: 10.5px;
  text-align: center;
  font-weight: 800;
  padding: 4px 4px;
}

.bos-items-table td {
  border: 1px solid #0284c7;
  padding: 4px 6px;
  font-size: 11px;
  color: #0f172a;
  background: #FFFFFF;
}

.bos-bottom-grid {
  border: 1px solid #0284c7;
  border-top: none;
  display: flex;
  box-sizing: border-box;
  margin-top: -1px;
  background: #FFFFFF !important;
}

.bos-bottom-left {
  flex: 1.18;
  border-right: 1px solid #0284c7;
  display: flex;
  flex-direction: column;
  background: #FFFFFF !important;
}

.bos-sec-header {
  background: #e0f2fe;
  padding: 3.5px 8px;
  font-weight: 800;
  font-size: 10.5px;
  text-align: center;
  border-bottom: 1px solid #0284c7;
  color: #0369a1;
}

.bos-bottom-right {
  flex: 0.82;
  display: flex;
  flex-direction: column;
  background: #FFFFFF !important;
}

.bos-calc-table {
  width: 100%;
  font-size: 11px;
  border-collapse: collapse;
  background: #FFFFFF !important;
}

.bos-calc-table tr {
  border-bottom: 1px solid #0284c7;
}

.bos-calc-table td {
  padding: 4px 8px;
}

.bos-calc-table td.label {
  font-weight: 800;
  color: #0f172a;
}

.bos-calc-table td.val {
  text-align: right;
  font-weight: 700;
  color: #0f172a;
}

.bos-row-advance {
  background: rgba(16, 185, 129, 0.08) !important;
  color: #047857 !important;
}

.bos-row-net-balance {
  background: #0f172a !important;
  color: #ffffff !important;
}

.bos-row-net-balance .label {
  color: #ffffff !important;
  font-size: 12.5px !important;
  font-weight: 900 !important;
}

.bos-row-net-balance .val {
  color: #fbbf24 !important;
  font-size: 15px !important;
  font-weight: 900 !important;
}

/* Editable Bill Controls (Screen only) */
.bill-input-clean {
  width: 100%;
  border: 1px dashed #93c5fd;
  background: rgba(240, 249, 255, 0.75);
  padding: 3px 6px;
  font-family: inherit;
  font-size: inherit;
  color: #0f172a;
  border-radius: 3px;
  box-sizing: border-box;
  transition: all 0.15s ease;
}

.bill-input-clean:hover {
  border-color: #0284c7;
  background: #ffffff;
}

.bill-input-clean:focus {
  outline: none;
  border: 1px solid #0284c7;
  background: #ffffff;
  box-shadow: 0 0 0 2px rgba(2, 132, 199, 0.2);
}

.bill-row-delete-btn {
  background: none;
  border: none;
  color: #ef4444;
  cursor: pointer;
  font-size: 13px;
  padding: 2px 5px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  opacity: 0.75;
  transition: all 0.15s;
}

.bill-row-delete-btn:hover {
  opacity: 1;
  background: #fee2e2;
  color: #b91c1c;
}

.bill-add-row-btn {
  background: #f0f9ff;
  border: 1px dashed #0284c7;
  color: #0284c7;
  padding: 5px 12px;
  border-radius: 4px;
  font-weight: 700;
  font-size: 11px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 6px 0;
  transition: all 0.2s ease;
}

.bill-add-row-btn:hover {
  background: #0284c7;
  color: #ffffff;
}

.printable-voucher-container {
  width: 100%;
  max-width: 800px;
  background: #FFF;
  color: #0f172a;
  border-radius: 6px;
  padding: 24px 28px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  font-family: 'Plus Jakarta Sans', 'Segoe UI', sans-serif;
  box-sizing: border-box;
}

.voucher-header-top {
  display: flex;
  align-items: center;
  gap: 18px;
  border-bottom: 2px solid #881337;
  padding-bottom: 12px;
}

.voucher-logo {
  max-height: 70px;
  object-fit: contain;
}

.voucher-title-en {
  font-size: 1.25rem;
  font-weight: 900;
  color: #881337;
  letter-spacing: 0.5px;
}

.voucher-subtitle-gu {
  font-size: 0.95rem;
  font-weight: 700;
  color: #1e293b;
  margin-top: 2px;
}

.voucher-tagline {
  font-size: 0.8rem;
  font-weight: 600;
  color: #b45309;
  font-style: italic;
}

.voucher-contacts {
  font-size: 0.78rem;
  color: #475569;
  display: flex;
  gap: 16px;
  margin-top: 4px;
}

.voucher-band {
  background: linear-gradient(135deg, #881337, #9f1239);
  color: #FFF;
  padding: 6px 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.88rem;
  font-weight: 800;
  border-radius: 4px;
  margin-top: 10px;
}

.voucher-meta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 16px;
  margin-top: 16px;
  background: #f8fafc;
  padding: 12px 16px;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
}

.meta-item {
  display: flex;
  flex-direction: column;
}

.meta-label {
  font-size: 0.72rem;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
}

.meta-val {
  font-size: 0.88rem;
  color: #0f172a;
}

.voucher-amount-box {
  display: flex;
  align-items: center;
  gap: 20px;
  background: #ecfdf5;
  border: 1.5px solid #059669;
  border-radius: 6px;
  padding: 12px 18px;
  margin-top: 14px;
}

.amount-number-badge {
  background: #059669;
  color: #FFF;
  padding: 8px 16px;
  border-radius: 6px;
  text-align: center;
}

.amount-num {
  font-size: 1.3rem;
  font-weight: 900;
  letter-spacing: 0.5px;
}

.amount-words-text {
  flex: 1;
}

.voucher-ledger-snapshot {
  margin-top: 14px;
}

.voucher-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.84rem;
}

.voucher-table th {
  background: #1e293b;
  color: #FFF;
  padding: 6px 10px;
  text-align: left;
  font-size: 0.75rem;
}

.voucher-table td {
  padding: 8px 10px;
  border: 1px solid #cbd5e1;
}

.voucher-signatures {
  display: flex;
  justify-content: space-between;
  margin-top: 40px;
  padding-top: 10px;
}

.sig-box {
  width: 240px;
  text-align: center;
}

.sig-box.right {
  text-align: right;
}

.sig-name {
  font-size: 0.82rem;
  font-weight: 800;
  color: #881337;
  margin-bottom: 36px;
}

.sig-line {
  border-bottom: 1px dashed #94a3b8;
  margin-bottom: 6px;
}

.sig-title {
  font-size: 0.76rem;
  color: #475569;
  font-weight: 700;
}

.voucher-footer-note {
  margin-top: 20px;
  padding-top: 8px;
  border-top: 1px solid #e2e8f0;
  display: flex;
  justify-content: space-between;
  font-size: 0.72rem;
  color: #64748b;
}

/* Formal Quotation & Tax Invoice Document Styles */
.printable-doc-container {
  width: 100%;
  max-width: 820px;
  background: #FFF;
  color: #0f172a;
  border-radius: 4px;
  padding: 24px 30px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  font-family: 'Plus Jakarta Sans', 'Segoe UI', sans-serif;
  box-sizing: border-box;
}

.doc-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 2px solid #881337;
  padding-bottom: 12px;
}

.doc-header-brand {
  display: flex;
  align-items: center;
  gap: 16px;
}

.doc-logo {
  max-height: 75px;
  object-fit: contain;
}

.doc-company-name {
  font-size: 1.25rem;
  font-weight: 900;
  color: #881337;
  margin: 0;
  line-height: 1.2;
}

.doc-company-gu {
  font-size: 0.92rem;
  font-weight: 700;
  color: #1e293b;
  margin-top: 2px;
}

.doc-tagline {
  font-size: 0.78rem;
  font-weight: 600;
  color: #b45309;
  font-style: italic;
}

.doc-contacts-line {
  font-size: 0.75rem;
  color: #475569;
  display: flex;
  gap: 12px;
  margin-top: 4px;
}

.doc-badge {
  text-align: right;
  padding: 8px 14px;
  border-radius: 4px;
}

.doc-badge.quotation {
  background: #fef3c7;
  border: 1px solid #d97706;
}

.doc-badge.invoice {
  background: #fee2e2;
  border: 1px solid #dc2626;
}

.doc-type-title {
  font-size: 1.15rem;
  font-weight: 900;
  color: #881337;
}

.doc-type-gu {
  font-size: 0.82rem;
  font-weight: 700;
  color: #475569;
}

.doc-meta-bar {
  display: flex;
  justify-content: space-between;
  margin-top: 14px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 4px;
  padding: 10px 14px;
  font-size: 0.82rem;
}

.doc-meta-label {
  font-size: 0.72rem;
  font-weight: 800;
  color: #64748b;
  text-transform: uppercase;
  margin-bottom: 2px;
}

.doc-client-name {
  font-size: 1.05rem;
  font-weight: 900;
  color: #881337;
}

.doc-client-sub {
  color: #334155;
}

.doc-meta-row {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  line-height: 1.4;
}

.doc-table-section {
  margin-top: 14px;
}

.doc-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.82rem;
}

.doc-table th {
  background: #881337;
  color: #FFF;
  padding: 8px 10px;
  text-align: left;
  font-size: 0.76rem;
  text-transform: uppercase;
}

.doc-table td {
  padding: 8px 10px;
  border-bottom: 1px solid #e2e8f0;
  vertical-align: top;
}

.meal-name-bold {
  font-weight: 800;
  color: #0f172a;
}

.meal-venue-sub, .meal-instruct-sub {
  font-size: 0.74rem;
  color: #64748b;
}

.doc-summary-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 18px;
  margin-top: 14px;
}

.doc-section-heading {
  font-size: 0.78rem;
  font-weight: 800;
  color: #881337;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.doc-terms-list {
  padding-left: 18px;
  font-size: 0.75rem;
  color: #475569;
  line-height: 1.45;
  margin: 0;
}

.doc-bank-box {
  background: #f8fafc;
  border: 1px dashed #cbd5e1;
  border-radius: 4px;
  padding: 8px 12px;
  margin-top: 10px;
  font-size: 0.74rem;
  color: #334155;
  line-height: 1.4;
}

.invoice-payments-mini-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.75rem;
  margin-top: 4px;
}

.invoice-payments-mini-table th {
  background: #f1f5f9;
  color: #475569;
  padding: 4px 6px;
  text-align: left;
  font-weight: 700;
  border-bottom: 1px solid #cbd5e1;
}

.invoice-payments-mini-table td {
  padding: 4px 6px;
  border-bottom: 1px solid #f1f5f9;
}

.doc-totals-col {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 4px;
  padding: 10px 14px;
}

.total-row {
  display: flex;
  justify-content: space-between;
  padding: 4px 0;
  font-size: 0.82rem;
  color: #334155;
}

.total-row.discount {
  color: #047857;
}

.total-row.grand-total {
  border-top: 2px solid #881337;
  padding-top: 8px;
  margin-top: 4px;
  font-size: 1.05rem;
  font-weight: 900;
  color: #881337;
}

.total-row.balance-due-box {
  background: #fee2e2;
  border: 1px solid #fca5a5;
  border-radius: 4px;
  padding: 6px 10px;
  margin-top: 6px;
}

.total-words {
  font-size: 0.74rem;
  color: #64748b;
  margin-top: 6px;
  text-align: right;
  line-height: 1.3;
}

.doc-signatures-bar {
  display: flex;
  justify-content: space-between;
  margin-top: 36px;
  padding-top: 10px;
}

.sig-col {
  width: 260px;
}

.sig-col.right {
  text-align: right;
}

.sig-company {
  font-size: 0.8rem;
  font-weight: 800;
  color: #881337;
  margin-bottom: 30px;
}

.sig-space {
  height: 35px;
  border-bottom: 1px dashed #94a3b8;
  margin-bottom: 4px;
}

.sig-text {
  font-size: 0.74rem;
  color: #475569;
  font-weight: 700;
}

/* ==========================================================================
   LABOUR & CHEF CHITHI (VOUCHER SLIPS) - 4-ON-1 A4 LAYOUT (2x2 GRID)
   Matching Shyam Caterers Standard PDF Format
   ========================================================================== */
.chithi-a4-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  margin: 0 auto;
  padding: 10px 0;
}

.chithi-a4-page {
  width: 210mm;
  height: 297mm;
  min-height: 297mm;
  max-height: 297mm;
  background: #ffffff;
  color: #000000;
  box-sizing: border-box;
  padding: 8mm 6mm;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: repeat(2, 1fr);
  gap: 6mm;
  page-break-after: always;
  break-after: page;
  page-break-inside: avoid;
  break-inside: avoid;
  box-shadow: 0 4px 25px rgba(0,0,0,0.35);
  font-family: 'Shruti', 'Gujarati Sangam MN', 'Noto Sans Gujarati', 'Segoe UI', Tahoma, sans-serif;
  overflow: hidden;
  position: relative;
}

.chithi-a4-page:last-child {
  page-break-after: auto;
  break-after: auto;
}

.chithi-card {
  border: 1.5px solid #000000;
  box-sizing: border-box;
  padding: 8px 10px;
  background: #ffffff;
  color: #000000;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  overflow: hidden;
}

/* Header */
.chithi-header {
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1.5px solid #000000;
  padding-bottom: 5px;
  margin-bottom: 6px;
}

.chithi-logo {
  height: 40px;
  max-width: 48px;
  object-fit: contain;
}

.chithi-title-box {
  flex: 1;
}

.chithi-company-name {
  font-size: 1rem;
  font-weight: 800;
  color: #000000;
  line-height: 1.2;
}

.chithi-phone-line {
  font-size: 0.76rem;
  font-weight: 700;
  color: #111827;
  margin-top: 2px;
}

/* Meta Details */
.chithi-meta-grid {
  font-size: 0.8rem;
  line-height: 1.45;
  margin-bottom: 6px;
}

.chithi-meta-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.chithi-meta-label {
  font-weight: 700;
  min-width: 100px;
  display: inline-block;
  color: #000000;
}

.chithi-meta-val {
  font-weight: 600;
  color: #111827;
}

.chithi-seq-badge {
  font-size: 0.95rem;
  font-weight: 800;
  color: #000000;
  letter-spacing: 0.5px;
}

/* Table */
.chithi-table-box {
  flex: 1;
  margin-bottom: 6px;
  overflow: hidden;
}

.chithi-table {
  width: 100%;
  border-collapse: collapse;
  border: 1.5px solid #000000;
  font-size: 0.78rem;
}

.chithi-table th {
  border: 1px solid #000000;
  background: #f8fafc;
  padding: 4px 6px;
  font-weight: 700;
  text-align: center;
  color: #000000;
}

.chithi-table td {
  border: 1px solid #000000;
  padding: 4px 6px;
  text-align: center;
  color: #000000;
}

.chithi-table td.text-left {
  text-align: left;
  padding-left: 6px;
}

/* Notes Lines */
.chithi-notes-area {
  margin-top: auto;
  padding-top: 4px;
}

.chithi-handwrite-line {
  border-bottom: 1px solid #444444;
  height: 14px;
  margin-bottom: 4px;
}

/* Signature */
.chithi-sig-row {
  margin-top: 5px;
  font-size: 0.8rem;
  font-weight: 700;
  color: #000000;
  display: flex;
  justify-content: flex-start;
}

/* ==========================================================================
   OFFICIAL SIMPLE MENU REPORT (3-PAGE EXACT REPLICA OF USER UPLOADED PDF)
   Ultra-Premium Royal Theme: Burgundy (#7E1218), Rich Gold (#C5A059), Ivory (#FFFEFC)
   ========================================================================== */
.pdf-simple-document {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 25px;
  width: 100%;
}

.pdf-menu-sheet {
  width: 210mm;
  min-height: 297mm;
  height: 297mm;
  box-sizing: border-box;
  padding: 8mm 12mm 10mm 14mm !important;
  position: relative;
  background: #FFFEFC !important;
  color: #1e293b;
  font-family: 'Plus Jakarta Sans', Arial, sans-serif;
  display: flex !important;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid #E2D3B3;
  box-shadow: inset 0 0 0 1.5px #C5A059, inset 0 0 0 4px #FAF6EE, inset 0 0 0 5px #D8C39B, 0 15px 45px rgba(0, 0, 0, 0.45);
}

/* Left Vertical Red & Gold ESTIMATE Ribbon */
.pdf-estimate-ribbon {
  position: absolute;
  left: 0;
  top: 15mm;
  width: 23px;
  height: 92px;
  background: linear-gradient(180deg, #7E1218 0%, #4D0A0E 100%);
  color: #F8E2B0;
  font-family: 'Plus Jakarta Sans', Arial, sans-serif;
  font-weight: 900;
  font-size: 11.5px;
  letter-spacing: 3px;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0 5px 5px 0;
  border-right: 2px solid #C5A059;
  border-top: 1px solid #C5A059;
  border-bottom: 1px solid #C5A059;
  z-index: 10;
  box-shadow: 2px 2px 8px rgba(0, 0, 0, 0.25);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

/* Top Header */
.pdf-page-header {
  position: relative;
  margin-bottom: 3px;
}

.pdf-god-invocation {
  text-align: center;
  font-size: 11.5px;
  font-weight: 800;
  color: #7E1218;
  font-family: 'Playfair Display', Georgia, serif;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 2px;
}

.pdf-header-main-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.pdf-logo-block {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.pdf-tagline-arc {
  font-size: 11px;
  font-style: italic;
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 600;
  color: #B45309;
  margin-bottom: 1px;
  padding-left: 6px;
  letter-spacing: 0.3px;
}

.pdf-brand-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.pdf-logo-img {
  width: 50px;
  height: 50px;
  object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(197, 160, 89, 0.3));
}

.pdf-brand-text {
  display: flex;
  flex-direction: column;
}

.pdf-brand-shyam {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 26px;
  font-weight: 900;
  color: #7E1218;
  line-height: 1;
  letter-spacing: 1px;
  text-shadow: 0 1px 1px rgba(197, 160, 89, 0.2);
}

.pdf-brand-reg {
  font-size: 11px;
  vertical-align: super;
  color: #C5A059;
}

.pdf-brand-caterers {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 15px;
  font-weight: 800;
  color: #854D0E;
  line-height: 1;
  margin-top: 1px;
  letter-spacing: 0.5px;
}

.pdf-brand-iso {
  font-size: 8px;
  font-weight: 700;
  color: #64748B;
  margin-top: 2px;
  letter-spacing: 0.3px;
}

.pdf-branches-block {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.pdf-branch-pill {
  display: flex;
  align-items: center;
  border: 1.5px solid #C5A059;
  border-radius: 6px;
  overflow: hidden;
  background: #FFFDF9;
  box-shadow: 0 2px 5px rgba(197, 160, 89, 0.15);
}

.pdf-branch-tag {
  color: #ffffff;
  font-weight: 800;
  font-size: 9px;
  padding: 3px 8px;
  white-space: nowrap;
  letter-spacing: 0.4px;
}

.pdf-branch-tag.gold {
  background: linear-gradient(135deg, #D97706, #B45309);
}

.pdf-branch-tag.coral {
  background: linear-gradient(135deg, #DC2626, #7E1218);
}

.pdf-branch-contacts {
  font-size: 9px;
  font-weight: 700;
  color: #0F172A;
  padding: 2px 8px;
  line-height: 1.3;
  text-align: right;
}

.pdf-event-mgmt-strip {
  background: linear-gradient(90deg, #7E1218 0%, #9B1A22 50%, #7E1218 100%);
  color: #ffffff;
  font-size: 11px;
  font-weight: 800;
  padding: 3.5px 14px;
  text-align: right;
  letter-spacing: 0.8px;
  margin-top: 4px;
  border-radius: 3px;
  border-bottom: 1.5px solid #C5A059;
  box-shadow: 0 2px 4px rgba(126, 18, 24, 0.25);
}

.pdf-event-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 20px;
  font-weight: 900;
  color: #7E1218;
  text-align: center;
  margin: 6px 0 5px 0;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  text-shadow: 0 1px 1px rgba(197, 160, 89, 0.25);
}

/* Customer Box - Luxury Double Gold Border */
.pdf-customer-box {
  border: 1.5px solid #C5A059;
  border-radius: 6px;
  padding: 7px 12px;
  margin-bottom: 6px;
  font-size: 11px;
  line-height: 1.55;
  color: #0F172A;
  background: linear-gradient(180deg, #FFFFFF 0%, #FFFDF9 100%);
  box-shadow: 0 2px 8px rgba(197, 160, 89, 0.12);
  position: relative;
}

.pdf-cust-row {
  display: flex;
  gap: 8px;
  margin-bottom: 1.5px;
}

.pdf-cust-row.two-col {
  justify-content: space-between;
}

.pdf-cust-row.two-col > div {
  display: flex;
  gap: 8px;
}

.pdf-cust-label {
  font-weight: 700;
  color: #7E1218;
  min-width: 95px;
  letter-spacing: 0.25px;
  font-size: 10.5px;
}

.pdf-cust-val {
  color: #0F172A;
  font-weight: 600;
}

.pdf-cust-val.font-bold {
  font-weight: 800;
  color: #000000;
}

.pdf-cust-val.underline {
  border-bottom: 1.5px solid #C5A059;
  flex: 1;
  padding-bottom: 1px;
}

/* Auspicious Occasion Menu Banner - Regal Cartouche */
.pdf-auspicious-wrap {
  text-align: center;
  margin: 3px 0 7px 0;
}

.pdf-auspicious-banner {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1.5px solid #C5A059;
  border-radius: 20px;
  padding: 3px 32px;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 13px;
  font-weight: 800;
  font-style: italic;
  background: linear-gradient(135deg, #FFFDF8 0%, #FAF0DA 100%);
  color: #7E1218;
  letter-spacing: 0.6px;
  box-shadow: 0 2px 6px rgba(197, 160, 89, 0.2);
}

/* Watermark */
.pdf-watermark-bg {
  position: absolute;
  left: 50%;
  top: 56%;
  transform: translate(-50%, -50%);
  opacity: 0.05;
  width: 320px;
  pointer-events: none;
  z-index: 0;
  filter: sepia(0.3) saturate(1.5);
}

.pdf-watermark-bg img {
  width: 100%;
  height: auto;
  display: block;
}

/* 2 Columns Layout */
.pdf-meal-grid-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  position: relative;
  z-index: 1;
  flex: 1;
  align-content: flex-start;
}

.pdf-meal-col {
  display: flex;
  flex-direction: column;
}

/* Meal Column Header - Brushed Champagne Gold Metallic with Burgundy Pillar */
.pdf-meal-col-header {
  background: linear-gradient(90deg, #FAF2DE 0%, #F3E3BC 100%);
  border: 1.2px solid #C5A059;
  border-left: 5px solid #7E1218;
  border-radius: 4px;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 800;
  color: #521014;
  margin-bottom: 6px;
  box-shadow: 0 1px 4px rgba(197, 160, 89, 0.15);
}

.pdf-meal-hdr-row {
  display: flex;
  justify-content: space-between;
}

.pdf-category-block {
  margin-bottom: 2px;
}

.pdf-category-title {
  font-family: 'Plus Jakarta Sans', Arial, sans-serif;
  font-weight: 900;
  font-size: 11.5px;
  color: #7E1218;
  text-transform: uppercase;
  margin-top: 5px;
  margin-bottom: 1px;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.pdf-cat-bullet {
  color: #C5A059;
  font-size: 8.5px;
  display: inline-block;
}

.pdf-category-items {
  display: flex;
  flex-direction: column;
}

.pdf-item-name {
  font-weight: 600;
  font-size: 10.2px;
  color: #1E293B;
  text-transform: uppercase;
  padding-left: 12px;
  line-height: 1.45;
  letter-spacing: 0.2px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.pdf-item-bullet {
  color: #C5A059;
  font-size: 8px;
  display: inline-block;
}

.pdf-cat-divider {
  height: 1px;
  border: none;
  background: linear-gradient(90deg, #C5A059 0%, rgba(197, 160, 89, 0.15) 100%);
  margin: 4px 0 5px 0;
}

/* Page Footer - Theme-Wise Royal Gold & Burgundy */
.pdf-page-footer {
  margin-top: auto;
  padding-top: 4px;
  position: relative;
  z-index: 2;
}

.pdf-footer-meta {
  display: flex;
  justify-content: space-between;
  font-size: 9.5px;
  font-weight: 800;
  color: #521014;
  border-top: 1.5px solid #C5A059;
  padding-top: 4px;
  margin-bottom: 3px;
  letter-spacing: 0.3px;
}

.pdf-footer-offices {
  background: linear-gradient(90deg, #7E1218 0%, #5B0C11 100%);
  color: #ffffff;
  padding: 3.5px 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 8.5px;
  font-weight: 700;
  border-radius: 3px;
  border-top: 1px solid #C5A059;
  position: relative;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.pdf-office-item {
  display: flex;
  align-items: center;
  gap: 5px;
}

.pdf-office-tag {
  color: #ffffff;
  font-size: 7.5px;
  font-weight: 800;
  padding: 1.5px 5px;
  border-radius: 3px;
  letter-spacing: 0.3px;
}

.pdf-office-tag.red {
  background: #991B1B;
  border: 0.5px solid #FCA5A5;
}

.pdf-office-tag.orange {
  background: #D97706;
  border: 0.5px solid #FDE68A;
}

.pdf-office-tag.coral {
  background: #EA580C;
  border: 0.5px solid #FDBA74;
}

.pdf-office-text {
  font-size: 8px;
}

.pdf-footer-corner-slice {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 35px;
  height: 100%;
  background: linear-gradient(135deg, #C5A059 0%, #9A7228 100%);
  clip-path: polygon(100% 0, 0 100%, 100% 100%);
}

/* ==========================================================================
   IMAGE MENU REPORT (RICH PHOTO CATALOG & CATEGORY DESIGN)
   ========================================================================== */
.img-report-container {
  background: #ffffff;
  color: #0f172a;
  font-family: 'Plus Jakarta Sans', Arial, sans-serif;
  padding: 28px 32px;
  border-radius: 8px;
  max-width: 900px;
  margin: 0 auto;
}

.img-report-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 2px solid #d97706;
  padding-bottom: 18px;
  margin-bottom: 24px;
}

.img-header-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.img-header-logo {
  width: 55px;
  height: 55px;
  object-fit: contain;
}

.img-company-title {
  font-size: 1.35rem;
  font-weight: 900;
  color: #7E1218;
  margin: 0;
  letter-spacing: 0.5px;
}

.img-company-tagline {
  font-size: 0.85rem;
  font-weight: 700;
  color: #d97706;
  margin-top: 2px;
}

.img-header-meta {
  text-align: right;
  font-size: 0.85rem;
  color: #475569;
}

.img-client-title {
  font-size: 1.15rem;
  font-weight: 900;
  color: #0f172a;
  margin-top: 3px;
}

.img-venue-meta {
  font-size: 0.82rem;
  color: #64748b;
  margin-top: 2px;
}

.img-meal-card {
  margin-bottom: 30px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

.img-meal-banner {
  background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
  border-bottom: 1px solid #fde68a;
  padding: 12px 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.img-meal-type {
  font-size: 1.15rem;
  font-weight: 900;
  color: #92400e;
  display: flex;
  align-items: center;
  gap: 8px;
}

.img-meal-persons {
  font-size: 0.88rem;
  font-weight: 600;
  color: #b45309;
}

.img-meal-cat-count {
  font-size: 0.82rem;
  font-weight: 700;
  color: #92400e;
  background: rgba(245, 158, 11, 0.15);
  padding: 4px 10px;
  border-radius: 20px;
}

.img-categories-stack {
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.img-category-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.img-category-banner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #f8fafc;
  border-left: 4px solid #d97706;
  padding: 8px 14px;
  border-radius: 6px;
}

.img-category-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.img-category-badge-icon {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  overflow: hidden;
  background: #fef3c7;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cat-thumb-mini {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cat-emoji {
  font-size: 1.1rem;
}

.img-cat-name {
  font-size: 0.98rem;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: 0.5px;
}

.img-cat-guj {
  font-size: 0.82rem;
  font-weight: 700;
  color: #059669;
}

.img-cat-count-pill {
  font-size: 0.78rem;
  font-weight: 800;
  color: #475569;
  background: #e2e8f0;
  padding: 3px 8px;
  border-radius: 12px;
}

.img-items-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 14px;
}

.img-dish-card {
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  overflow: hidden;
  background: #ffffff;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  box-shadow: 0 2px 6px rgba(0,0,0,0.04);
  display: flex;
  flex-direction: column;
}

.img-dish-photo-box {
  height: 125px;
  position: relative;
  background: #f1f5f9;
  overflow: hidden;
}

.dish-actual-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.dish-photo-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  color: #94a3b8;
}

.placeholder-icon {
  font-size: 2rem;
}

.placeholder-text {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.dish-veg-symbol {
  position: absolute;
  top: 7px;
  right: 7px;
  width: 16px;
  height: 16px;
  border: 1.5px solid #16a34a;
  background: #ffffff;
  border-radius: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.veg-dot {
  width: 8px;
  height: 8px;
  background: #16a34a;
  border-radius: 50%;
  display: block;
}

.img-dish-content {
  padding: 10px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.dish-english-title {
  font-weight: 800;
  font-size: 0.88rem;
  color: #0f172a;
  line-height: 1.25;
}

.dish-gujarati-title {
  font-weight: 700;
  font-size: 0.82rem;
  color: #059669;
  margin-top: 2px;
}

.dish-tags-row {
  display: flex;
  gap: 4px;
  margin-top: 6px;
}

.dish-pill {
  font-size: 0.68rem;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: 3px;
}

.dish-pill.swami {
  background: #fef3c7;
  color: #b45309;
}

.dish-pill.jain {
  background: #ecfdf5;
  color: #047857;
}

.dish-notes-hint {
  font-size: 0.74rem;
  color: #64748b;
  margin-top: 5px;
}

.img-report-footer {
  text-align: center;
  border-top: 1px solid #e2e8f0;
  padding-top: 18px;
  margin-top: 10px;
  font-size: 0.82rem;
}

/* Print Specific Rules */
@media print {
  * {
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }
  body {
    padding: 0 !important;
    margin: 0 !important;
    background: #ffffff !important;
  }
  .pdf-simple-document,
  .a4-document-wrapper {
    gap: 0 !important;
  }
  .a4-page {
    box-shadow: none !important;
    page-break-after: always !important;
    break-after: page !important;
    margin: 0 !important;
  }
}

