/* ==========================================================================
   KAYANAT HOTELS & HOMESTAYS - ADMIN TOUR PLAN & QUOTATION SYSTEM
   Design System: Forest Green (#1a3c2a), Luxury Gold (#c9a84c), Soft Cream (#f5efe6)
   ========================================================================== */

:root {
  --color-primary: #1a3c2a;
  --color-primary-dark: #11281c;
  --color-primary-light: #245239;
  --color-gold: #c9a84c;
  --color-gold-light: #e0c878;
  --color-gold-hover: #b3923d;
  --color-cream: #f5efe6;
  --color-cream-light: #faf7f2;
  --color-text-dark: #2c2c2c;
  --color-text-muted: #666666;
  --color-border: #e2d9cc;
  --color-white: #ffffff;
  --color-danger: #d32f2f;
  --color-success: #2e7d32;
  --color-warning: #ed6c02;
  --color-info: #0288d1;

  --font-heading: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-body: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  --shadow-sm: 0 2px 8px rgba(26, 60, 42, 0.06);
  --shadow-md: 0 6px 20px rgba(26, 60, 42, 0.1);
  --shadow-lg: 0 12px 36px rgba(26, 60, 42, 0.15);
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.6;
  color: var(--color-text-dark);
  background-color: var(--color-cream);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

/* Typography utilities */
h1, h2, h3, h4, h5 {
  font-family: var(--font-heading);
  color: var(--color-primary);
  line-height: 1.3;
}

a {
  color: var(--color-gold-hover);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--color-primary);
}

.text-gold { color: var(--color-gold) !important; }
.text-green { color: var(--color-success) !important; }
.text-red { color: var(--color-danger) !important; }
.text-right { text-align: right; }
.flex-grow-1 { flex-grow: 1; }
.max-w-850 { max-width: 850px; margin: 0 auto; }

/* ==========================================================================
   BUTTONS & FORM CONTROLS
   ========================================================================== */
.btn-admin {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.92rem;
  padding: 10px 20px;
  border-radius: 999px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
  text-decoration: none;
}

.btn-admin-primary {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  color: var(--color-white);
  border-color: var(--color-primary);
  box-shadow: 0 4px 14px rgba(26, 60, 42, 0.25);
}

.btn-admin-primary:hover {
  background: linear-gradient(135deg, var(--color-primary-light) 0%, var(--color-primary) 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(26, 60, 42, 0.35);
  color: var(--color-gold-light);
}

.btn-admin-gold {
  background: linear-gradient(135deg, var(--color-gold) 0%, #b8933b 100%);
  color: var(--color-primary-dark);
  font-weight: 700;
  border-color: var(--color-gold);
  box-shadow: 0 4px 14px rgba(201, 168, 76, 0.3);
}

.btn-admin-gold:hover {
  background: linear-gradient(135deg, var(--color-gold-light) 0%, var(--color-gold) 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(201, 168, 76, 0.45);
}

.btn-admin-outline {
  background: transparent;
  color: var(--color-primary);
  border-color: rgba(26, 60, 42, 0.3);
}

.btn-admin-outline:hover {
  background: rgba(26, 60, 42, 0.08);
  border-color: var(--color-primary);
  color: var(--color-primary-dark);
}

.btn-admin-danger {
  background: var(--color-danger);
  color: var(--color-white);
  border-color: var(--color-danger);
}

.btn-admin-danger:hover {
  background: #b71c1c;
  transform: translateY(-2px);
}

.btn-admin-sm {
  padding: 6px 14px;
  font-size: 0.84rem;
}

.btn-admin-lg {
  padding: 13px 28px;
  font-size: 1rem;
}

.btn-block {
  width: 100%;
}

.btn-link {
  background: none;
  border: none;
  color: var(--color-gold-hover);
  font-weight: 600;
  cursor: pointer;
  font-size: 0.92rem;
  transition: var(--transition);
}

.btn-link:hover {
  color: var(--color-primary);
  text-decoration: underline;
}

/* Form Inputs */
.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--color-primary-dark);
  margin-bottom: 6px;
}

.required-star {
  color: var(--color-danger);
}

.form-control {
  width: 100%;
  padding: 10px 14px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--color-text-dark);
  background-color: var(--color-white);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-sm);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
  outline: none;
}

.form-control:hover {
  border-color: #baa991;
}

.form-control:focus {
  border-color: var(--color-gold);
  box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.2);
  background-color: #ffffff;
}

select.form-control {
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

select.form-control:hover {
  border-color: var(--color-gold);
}

textarea.form-control {
  resize: vertical;
  min-height: 80px;
}

.input-icon-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.input-icon-wrap .input-icon {
  position: absolute;
  left: 14px;
  color: var(--color-gold);
  font-size: 1rem;
  pointer-events: none;
}

.input-icon-wrap .form-control {
  padding-left: 42px;
}

.btn-toggle-pwd {
  position: absolute;
  right: 12px;
  background: none;
  border: none;
  color: var(--color-text-muted);
  cursor: pointer;
  padding: 4px 6px;
  font-size: 1rem;
}

.input-currency-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.input-currency-wrap .currency-prefix {
  position: absolute;
  left: 14px;
  font-weight: 700;
  color: var(--color-primary);
  font-size: 1.05rem;
  pointer-events: none;
}

.input-currency-wrap .form-control {
  padding-left: 36px;
  font-weight: 600;
}

.display-calc-box {
  padding: 10px 14px;
  background: #f0f7f2;
  border: 1.5px solid #cce5d6;
  border-radius: var(--radius-sm);
  font-weight: 700;
  color: var(--color-primary);
  font-size: 1.05rem;
  min-height: 44px;
  display: flex;
  align-items: center;
}

.form-grid {
  display: grid;
  gap: 16px;
}

.form-grid-2 { grid-template-columns: repeat(2, 1fr); }
.form-grid-3 { grid-template-columns: repeat(3, 1fr); }
.form-grid-4 { grid-template-columns: repeat(4, 1fr); }

.align-items-center { align-items: center; }

/* Checkbox and Toggle Switches */
input[type="checkbox"], input[type="radio"] {
  cursor: pointer;
  accent-color: var(--color-primary);
}

.checkbox-label-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-primary);
  cursor: pointer;
  margin-top: 24px;
  user-select: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.checkbox-label-wrap:hover {
  opacity: 0.85;
}

.checkbox-label-wrap label {
  cursor: pointer;
  margin-bottom: 0 !important;
}

.toggle-switch-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
}

.toggle-label {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 0 !important;
  cursor: pointer;
  transition: color 0.2s ease;
}

.toggle-switch-wrapper:hover .toggle-label {
  color: var(--color-gold-hover);
}

.switch {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 26px;
  cursor: pointer;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
  cursor: pointer;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: #cbd5e1;
  transition: background-color 0.2s ease, box-shadow 0.2s ease;
}

.switch:hover .slider {
  box-shadow: 0 0 0 2px rgba(201, 168, 76, 0.3);
}

.slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 1px 4px rgba(0,0,0,0.2);
}

input:checked + .slider {
  background-color: var(--color-primary);
}

input:focus + .slider {
  box-shadow: 0 0 1px var(--color-primary);
}

input:checked + .slider:before {
  transform: translateX(24px);
}

.slider.round {
  border-radius: 34px;
}

.slider.round:before {
  border-radius: 50%;
}

/* Alerts and Toast */
.admin-alert {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  margin-bottom: 1.25rem;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.admin-alert-danger {
  background-color: #fde8e8;
  border: 1px solid #f8b4b4;
  color: #9b1c1c;
}

.admin-alert-success {
  background-color: #def7ec;
  border: 1px solid #84e1bc;
  color: #03543f;
}

.admin-toast {
  position: fixed;
  top: 24px;
  right: 24px;
  z-index: 9999;
  min-width: 280px;
  max-width: 420px;
  padding: 14px 20px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  font-size: 0.95rem;
  font-weight: 600;
  transform: translateY(-30px);
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.admin-toast.active {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.admin-toast.toast-success {
  background-color: var(--color-primary);
  color: #ffffff;
  border-left: 5px solid var(--color-gold);
}

.admin-toast.toast-error {
  background-color: #b71c1c;
  color: #ffffff;
  border-left: 5px solid #ff8a80;
}

/* ==========================================================================
   1. LOGIN VIEW STYLING
   ========================================================================== */
.view-login {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 10% 20%, #1a3c2a 0%, #11281c 90%);
  padding: 24px;
}

.login-card-wrapper {
  width: 100%;
  max-width: 440px;
}

.login-card {
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(16px);
  border-radius: var(--radius-lg);
  padding: 40px 36px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.4);
  border: 2px solid var(--color-gold);
}

.login-brand {
  text-align: center;
  margin-bottom: 28px;
}

.login-logo {
  height: 64px;
  width: auto;
  border-radius: 50%;
  margin: 0 auto 12px;
  border: 2px solid var(--color-gold);
}

.login-title {
  font-size: 2.1rem;
  letter-spacing: 0.04em;
  margin-bottom: 4px;
}

.login-subtitle {
  font-size: 0.92rem;
  color: var(--color-text-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.login-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  background-color: rgba(201, 168, 76, 0.15);
  color: var(--color-primary-dark);
  border: 1px solid rgba(201, 168, 76, 0.4);
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.login-footer {
  text-align: center;
  margin-top: 24px;
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

/* ==========================================================================
   ADMIN APP LAYOUT & HEADER
   ========================================================================== */
.admin-header {
  background: linear-gradient(135deg, var(--color-primary-dark) 0%, var(--color-primary) 100%);
  color: var(--color-white);
  box-shadow: 0 4px 20px rgba(17, 40, 28, 0.3);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 2px solid var(--color-gold);
}

.admin-header-inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.admin-header-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.admin-header-logo {
  height: 42px;
  width: auto;
  border-radius: 50%;
  border: 1.5px solid var(--color-gold);
}

.admin-brand-name {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--color-gold-light);
  display: block;
  line-height: 1.1;
  letter-spacing: 0.04em;
}

.admin-brand-tag {
  font-size: 0.78rem;
  color: #d1e3d7;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.admin-nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-nav {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px;
  background: rgba(255, 255, 255, 0.08);
  color: #e5ece7;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.btn-nav:hover,
.btn-nav.active {
  background: var(--color-gold);
  color: var(--color-primary-dark);
  border-color: var(--color-gold);
}

.btn-nav-logout:hover {
  background: var(--color-danger);
  color: var(--color-white);
  border-color: var(--color-danger);
}

.admin-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 32px 24px;
}

/* ==========================================================================
   2. DASHBOARD VIEW STYLING
   ========================================================================== */
.dashboard-hero {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.8) 0%, rgba(255, 255, 255, 0.95) 100%);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 28px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
  box-shadow: var(--shadow-sm);
}

.dashboard-hero h2 {
  font-size: 1.85rem;
  margin-bottom: 4px;
}

.dashboard-hero p {
  color: var(--color-text-muted);
  font-size: 0.95rem;
}

.dashboard-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 32px;
}

.stat-card {
  background: var(--color-white);
  border-radius: var(--radius-md);
  padding: 22px;
  display: flex;
  align-items: center;
  gap: 18px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
  transition: var(--transition);
}

.stat-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.stat-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
}

.stat-total .stat-icon { background: rgba(26, 60, 42, 0.1); color: var(--color-primary); }
.stat-confirmed .stat-icon { background: rgba(46, 125, 50, 0.1); color: var(--color-success); }
.stat-sent .stat-icon { background: rgba(2, 136, 209, 0.1); color: var(--color-info); }
.stat-draft .stat-icon { background: rgba(237, 108, 2, 0.1); color: var(--color-warning); }

.stat-value {
  display: block;
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--color-primary-dark);
  line-height: 1.1;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  font-weight: 600;
}

/* Hub Buttons */
.dashboard-hub {
  margin-bottom: 36px;
}

.section-title {
  font-size: 1.3rem;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.hub-buttons-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.hub-btn {
  background: var(--color-white);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 22px 18px;
  text-align: left;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
}

.hub-btn i {
  font-size: 1.6rem;
  color: var(--color-gold);
  margin-bottom: 12px;
  transition: var(--transition);
}

.hub-btn-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 4px;
}

.hub-btn-desc {
  font-size: 0.82rem;
  color: var(--color-text-muted);
  line-height: 1.4;
}

.hub-btn:hover {
  transform: translateY(-4px);
  border-color: var(--color-gold);
  box-shadow: var(--shadow-md);
}

.hub-btn:hover i {
  transform: scale(1.15);
}

.hub-btn-new {
  background: linear-gradient(135deg, rgba(26, 60, 42, 0.03) 0%, rgba(201, 168, 76, 0.12) 100%);
  border-color: var(--color-gold);
}

/* Recent Section & Tables */
.section-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.table-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.table-responsive {
  width: 100%;
  overflow-x: auto;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.92rem;
}

.admin-table th {
  background: #f4eee5;
  color: var(--color-primary-dark);
  font-weight: 700;
  padding: 14px 18px;
  border-bottom: 2px solid var(--color-border);
  white-space: nowrap;
}

.admin-table td {
  padding: 14px 18px;
  border-bottom: 1px solid #ede5d8;
  vertical-align: middle;
}

.admin-table tbody tr:hover {
  background-color: #faf6f0;
}

/* Badges */
.badge-status {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.badge-status.status-confirmed { background: #def7ec; color: #03543f; border: 1px solid #84e1bc; }
.badge-status.status-sent-to-client { background: #e1effe; color: #1e429f; border: 1px solid #a4cafe; }
.badge-status.status-draft { background: #fef08a; color: #854d0e; border: 1px solid #fde047; }
.badge-status.status-cancelled { background: #fee2e2; color: #991b1b; border: 1px solid #fca5a5; }

.table-action-btns {
  display: flex;
  align-items: center;
  gap: 6px;
}

.btn-table-action {
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
  background: var(--color-white);
  color: var(--color-primary);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.btn-table-action:hover {
  background: var(--color-primary);
  color: var(--color-white);
  border-color: var(--color-primary);
  transform: translateY(-1px);
  box-shadow: 0 3px 8px rgba(26, 60, 42, 0.15);
}

.btn-table-action.action-delete:hover {
  background: var(--color-danger);
  border-color: var(--color-danger);
  color: var(--color-white);
  box-shadow: 0 3px 8px rgba(211, 47, 47, 0.25);
}

/* ==========================================================================
   3. CREATE & EDIT VIEW (2-COLUMN DESKTOP SPLIT LAYOUT)
   ========================================================================== */
.editor-action-bar {
  background: var(--color-white);
  border-bottom: 2px solid var(--color-gold);
  position: sticky;
  top: 66px;
  z-index: 90;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.editor-action-inner {
  max-width: 1540px;
  margin: 0 auto;
  padding: 10px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.editor-action-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.editor-view-heading {
  font-size: 1.35rem;
  margin: 0;
}

.editor-id-badge {
  background: rgba(201, 168, 76, 0.15);
  color: var(--color-primary-dark);
  border: 1px solid var(--color-gold);
  font-size: 0.82rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 999px;
}

.editor-action-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.editor-split-container {
  max-width: 1600px;
  margin: 0 auto;
  padding: 24px;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(540px, 0.95fr);
  gap: 28px;
  align-items: start;
}

.editor-form-column {
  min-width: 0;
  width: 100%;
}

.editor-preview-column {
  min-width: 0;
  width: 100%;
}

.form-section-card {
  background: var(--color-white);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-md);
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.form-section-card:hover {
  border-color: #baa991;
  box-shadow: 0 6px 20px rgba(26, 60, 42, 0.08);
}

.form-section-header {
  padding: 18px 24px;
  background: #fbf7f0;
  border-bottom: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  gap: 14px;
}

.section-step-badge {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--color-primary);
  color: var(--color-gold-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.95rem;
  flex-shrink: 0;
}

.form-section-title {
  font-size: 1.15rem;
  margin-bottom: 2px;
}

.form-section-subtitle {
  font-size: 0.82rem;
  color: var(--color-text-muted);
}

.form-section-body {
  padding: 24px;
}

/* Validation & Calculation Indicators */
.field-validation-error {
  display: flex;
  align-items: center;
  gap: 8px;
  background-color: #fee2e2;
  border: 1px solid #fca5a5;
  border-left: 4px solid #ef4444;
  color: #991b1b;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 14px;
  animation: fadeInNotice 0.2s ease-out;
}

.field-calc-info {
  display: flex;
  align-items: center;
  gap: 8px;
  background-color: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-left: 4px solid #22c55e;
  color: #14532d;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  margin-bottom: 14px;
  animation: fadeInNotice 0.2s ease-out;
}

/* Conditional Section Notice Box */
.conditional-section-notice {
  background: linear-gradient(135deg, rgba(201, 168, 76, 0.12) 0%, rgba(26, 60, 42, 0.04) 100%);
  border: 1.5px solid var(--color-gold);
  border-left: 5px solid var(--color-gold);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  margin-bottom: 20px;
  box-shadow: 0 3px 12px rgba(201, 168, 76, 0.15);
  animation: fadeInNotice 0.25s ease-out;
}

@keyframes fadeInNotice {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.conditional-notice-inner {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.conditional-notice-icon {
  font-size: 1.3rem;
  color: var(--color-gold-hover);
  margin-top: 2px;
  flex-shrink: 0;
}

.conditional-notice-content {
  flex-grow: 1;
}

.conditional-notice-title {
  display: block;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--color-primary-dark);
  margin-bottom: 4px;
}

.conditional-notice-text {
  font-size: 0.86rem;
  color: #4a5568;
  line-height: 1.5;
  margin: 0;
}

/* Destination & Itinerary Dynamic Cards */
.destinations-list,
.itinerary-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.dyn-card {
  background: #fbf9f5;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 18px;
  position: relative;
  transition: var(--transition);
}

.dyn-card:hover {
  border-color: var(--color-gold);
  box-shadow: var(--shadow-sm);
}

.dyn-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid #ede5d8;
}

.dyn-card-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-primary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-remove-dyn {
  background: none;
  border: 1px solid rgba(211, 47, 47, 0.3);
  color: var(--color-danger);
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.btn-remove-dyn:hover {
  background: var(--color-danger);
  color: var(--color-white);
}

/* Pricing Section & Grand Total Box */
.pricing-section-card {
  border: 2px solid var(--color-gold);
}

.grand-total-callout {
  background: linear-gradient(135deg, var(--color-primary-dark) 0%, var(--color-primary) 100%);
  color: var(--color-white);
  border-radius: var(--radius-md);
  padding: 24px;
  margin-top: 20px;
  box-shadow: 0 10px 30px rgba(17, 40, 28, 0.25);
  border: 1px solid var(--color-gold);
}

.grand-total-main {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(201, 168, 76, 0.35);
  margin-bottom: 18px;
}

.grand-total-label {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  color: var(--color-gold-light);
  letter-spacing: 0.05em;
}

.grand-total-amount {
  font-family: var(--font-heading);
  font-size: 2.4rem;
  font-weight: 800;
  color: #ffffff;
}

.grand-total-payment-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.grand-total-payment-split label {
  color: #d1e3d7 !important;
}

.balance-display-box {
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid var(--color-gold);
  border-radius: var(--radius-sm);
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--color-gold-light);
  min-height: 44px;
  display: flex;
  align-items: center;
}

.admin-info-card {
  border-left: 4px solid var(--color-primary);
  background: #fdfdfc;
}

.form-bottom-actions {
  display: flex;
  gap: 14px;
  margin-top: 10px;
  margin-bottom: 40px;
}

/* ==========================================================================
   LIVE PREVIEW COLUMN & CLIENT DOCUMENT STYLING
   ========================================================================== */
.editor-preview-column {
  position: relative;
}

.preview-sticky-wrapper {
  position: sticky;
  top: 135px;
  max-height: calc(100vh - 150px);
  display: flex;
  flex-direction: column;
}

.preview-card-header {
  background: var(--color-primary-dark);
  color: var(--color-white);
  padding: 12px 18px;
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid var(--color-primary-dark);
}

.preview-header-meta {
  display: flex;
  align-items: center;
  gap: 12px;
}

.preview-live-indicator {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--color-gold-light);
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background-color: #22c55e;
  border-radius: 50%;
  animation: pulseGreen 1.5s infinite;
}

@keyframes pulseGreen {
  0% { transform: scale(0.9); opacity: 0.7; }
  50% { transform: scale(1.25); opacity: 1; }
  100% { transform: scale(0.9); opacity: 0.7; }
}

.preview-status-pill {
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.15);
}

.preview-header-actions {
  display: flex;
  gap: 6px;
}

.btn-preview-tool {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: var(--color-white);
  border-radius: 4px;
  padding: 4px 10px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.btn-preview-tool:hover {
  background: var(--color-gold);
  color: var(--color-primary-dark);
}

/* THE CLIENT-FACING DOCUMENT PAPER */
.client-document-paper {
  background: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  padding: 32px;
  box-shadow: var(--shadow-md);
  overflow-y: auto;
  color: #1f2937;
  font-size: 13.5px;
  line-height: 1.5;
}

.doc-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 16px;
}

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

.doc-logo {
  height: 52px;
  width: auto;
  border-radius: 50%;
  border: 1.5px solid var(--color-gold);
}

.doc-company-name {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  color: var(--color-primary);
  line-height: 1;
  letter-spacing: 0.05em;
  margin: 0;
}

.doc-company-tagline {
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--color-gold);
  margin-top: 2px;
  text-transform: uppercase;
}

.doc-office-info {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  margin-top: 4px;
}

.doc-header-badge-box {
  text-align: right;
  border-left: 2px solid var(--color-gold);
  padding-left: 14px;
}

.doc-badge-title {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--color-primary);
  letter-spacing: 0.05em;
}

.doc-badge-id {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--color-gold-hover);
  margin-top: 2px;
}

.doc-badge-date {
  font-size: 0.78rem;
  color: var(--color-text-muted);
}

.doc-gold-rule {
  height: 2.5px;
  background: linear-gradient(90deg, var(--color-gold) 0%, #1a3c2a 50%, var(--color-gold) 100%);
  margin: 12px 0 20px;
}

.doc-section {
  margin-bottom: 22px;
}

.doc-section-heading {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  color: var(--color-primary);
  border-bottom: 1.5px solid #e8dfd3;
  padding-bottom: 5px;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.doc-sub-heading {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.doc-info-table {
  width: 100%;
  border-collapse: collapse;
  background: #fbf9f6;
  border: 1px solid #ebdccb;
  border-radius: 6px;
}

.doc-info-table td {
  padding: 8px 12px;
  font-size: 0.84rem;
  border-bottom: 1px solid #f0e6d9;
}

.doc-info-table tr:last-child td {
  border-bottom: none;
}

.doc-transport-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.doc-transport-card {
  background: #faf8f5;
  border: 1px solid #ebdccb;
  border-radius: 6px;
  padding: 10px;
  font-size: 0.8rem;
}

.doc-transport-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--color-gold-hover);
  margin-bottom: 2px;
}

.doc-transport-card strong {
  display: block;
  font-size: 0.88rem;
  color: var(--color-primary);
  margin-bottom: 2px;
}

.doc-transport-card p {
  color: var(--color-text-muted);
  font-size: 0.78rem;
  margin: 0;
}

.doc-styled-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.82rem;
  background: #ffffff;
  border: 1px solid #e5d8c7;
}

.doc-styled-table th {
  background: #f5ede2;
  color: var(--color-primary-dark);
  padding: 7px 10px;
  border-bottom: 1.5px solid #d8c6af;
  text-align: left;
  font-weight: 700;
}

.doc-styled-table td {
  padding: 7px 10px;
  border-bottom: 1px solid #eee4d7;
}

/* Timeline itinerary in document */
.doc-itinerary-timeline {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.doc-day-entry {
  background: #faf8f5;
  border-left: 3px solid var(--color-gold);
  padding: 8px 12px;
  border-radius: 0 4px 4px 0;
  font-size: 0.82rem;
}

.doc-day-title {
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 2px;
}

.doc-day-activities {
  color: #374151;
  margin-bottom: 2px;
}

.doc-day-meta {
  font-size: 0.75rem;
  color: var(--color-text-muted);
}

/* ==========================================================================
   REFERENCE-MATCHED DAY-BY-DAY DIVISION & LUXURY TOUR PLAN STYLES
   ========================================================================== */

/* 1. HERO BANNER */
.ref-hero-header {
  position: relative;
  background: linear-gradient(135deg, #f7f9f6 0%, #eef3ec 100%);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  justify-content: space-between;
  align-items: stretch;
  margin-bottom: 16px;
  border: 1px solid #dce5da;
  min-height: 190px;
  break-inside: avoid;
  page-break-inside: avoid;
}

.ref-hero-left {
  flex: 1 1 58%;
  min-width: 0;
  padding: 24px 20px 20px 24px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.ref-hero-days {
  font-family: 'Caveat', cursive, serif;
  font-size: 2.6rem;
  font-weight: 700;
  line-height: 1;
  color: #153b26;
  margin-bottom: 2px;
  letter-spacing: -0.01em;
}

.ref-hero-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.45rem;
  font-weight: 900;
  line-height: 1.2;
  color: #122f1e;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin: 4px 0 10px;
  word-break: break-word;
  overflow-wrap: break-word;
  max-width: 100%;
}

.ref-pill-banner-wrap {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.ref-decor-line {
  display: inline-block;
  width: 32px;
  height: 2px;
  background: #153b26;
}

.ref-pill-banner {
  background: #153b26;
  color: #ffffff;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  padding: 4px 16px;
  border-radius: 999px;
  text-transform: uppercase;
}

.ref-hero-tagline {
  font-size: 0.78rem;
  color: #4a5c4e;
  font-style: italic;
  margin: 0 0 6px;
  line-height: 1.35;
}

.ref-trail-indicator {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #153b26;
  font-size: 0.85rem;
  margin-top: 4px;
}

.ref-trail-dots {
  display: inline-block;
  width: 70px;
  height: 0;
  border-top: 2px dashed #8fa896;
}

.ref-hero-right {
  flex: 1 1 42%;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  padding: 18px 20px;
}

.ref-hero-bg-frame {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
}

.ref-hero-mountain-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: brightness(0.95);
  mask-image: linear-gradient(to right, transparent 0%, rgba(0,0,0,0.6) 25%, black 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, rgba(0,0,0,0.6) 25%, black 100%);
}

.ref-hero-seal {
  position: relative;
  z-index: 3;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(6px);
  border: 1.5px solid #d4af37;
  border-radius: 12px;
  padding: 8px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
}

.ref-seal-logo {
  height: 38px;
  width: 38px;
  border-radius: 50%;
  border: 1px solid #d4af37;
}

.ref-seal-text {
  display: flex;
  flex-direction: column;
}

.ref-seal-brand {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.88rem;
  font-weight: 900;
  color: #153b26;
  letter-spacing: 0.08em;
  line-height: 1;
}

.ref-seal-sub {
  font-size: 0.62rem;
  font-weight: 700;
  color: #b8860b;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: 2px;
}

/* 2. PASSPORT STRIP */
.ref-passport-strip {
  background: #ffffff;
  border: 1px solid #dce5da;
  border-radius: 10px;
  padding: 10px 16px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
  font-size: 0.8rem;
  color: #2b3a2f;
  break-inside: avoid;
  page-break-inside: avoid;
}

.ref-strip-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.ref-strip-item i {
  color: #153b26;
  font-size: 0.88rem;
}

.ref-strip-item strong {
  color: #122f1e;
}

.ref-strip-badge {
  background: #eef4ec;
  color: #153b26;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 0.76rem;
}

/* 3. DAY-BY-DAY ITINERARY CARDS (THE CORE REQUIREMENT) */
.ref-itinerary-section {
  margin-bottom: 18px;
}

.ref-itinerary-timeline {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ref-day-card {
  background: #f1f4ef;
  border: 1px solid #d9e2d6;
  border-radius: 14px;
  padding: 14px 18px;
  display: grid;
  grid-template-columns: 200px 1fr 190px;
  gap: 16px;
  align-items: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
  page-break-inside: avoid !important;
  break-inside: avoid !important;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.ref-day-card:hover {
  border-color: #c4d4c0;
  box-shadow: 0 4px 12px rgba(21, 59, 38, 0.06);
}

/* Day Column Left */
.ref-day-col-left {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.ref-day-pill {
  display: inline-block;
  align-self: flex-start;
  background: #153b26;
  color: #ffffff;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  padding: 4px 14px;
  border-radius: 999px;
  text-transform: uppercase;
  line-height: 1;
}

.ref-day-sector-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.95rem;
  font-weight: 800;
  color: #122f1e;
  text-transform: uppercase;
  line-height: 1.25;
  margin: 2px 0 4px;
  letter-spacing: 0.02em;
}

.ref-day-transfers {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.ref-transfer-item {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  font-size: 0.76rem;
  color: #384b3d;
  line-height: 1.3;
}

.ref-transfer-item i {
  color: #153b26;
  font-size: 0.78rem;
  margin-top: 2px;
  flex-shrink: 0;
}

/* Day Column Middle: Sightseeing Spots */
.ref-day-col-mid {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.ref-spots-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
  align-items: center;
}

.ref-spot-chip {
  background: #ffffff;
  border: 1px solid #d5ded2;
  border-radius: 8px;
  padding: 6px 10px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.78rem;
  font-weight: 600;
  color: #1f3325;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.ref-spot-num {
  background: #153b26;
  color: #ffffff;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.68rem;
  font-weight: 800;
  flex-shrink: 0;
}

.ref-spot-name {
  line-height: 1.2;
}

.ref-spots-empty {
  font-size: 0.8rem;
  color: #5d6f61;
  font-style: italic;
  padding: 4px 0;
}

/* Day Column Right: Overnight Stay */
.ref-day-col-right {
  display: flex;
  justify-content: flex-end;
}

.ref-stay-card {
  background: #153b26;
  color: #ffffff;
  border-radius: 12px;
  padding: 12px 14px;
  width: 100%;
  max-width: 190px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
  box-shadow: 0 3px 8px rgba(21, 59, 38, 0.18);
}

.ref-stay-icon {
  font-size: 1.2rem;
  color: #d4af37;
  margin-bottom: 4px;
}

.ref-stay-sub-label {
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: #b8cbbd;
  text-transform: uppercase;
  margin-bottom: 2px;
}

.ref-stay-main-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.85rem;
  font-weight: 800;
  color: #ffffff;
  text-transform: uppercase;
  line-height: 1.2;
  margin-bottom: 3px;
}

.ref-stay-type-badge {
  font-size: 0.68rem;
  color: #d4af37;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* Departure variation on right column */
.ref-stay-departure {
  background: #ffffff;
  border: 1.5px solid #153b26;
  color: #153b26;
  text-align: left;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.ref-stay-drop-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 6px;
}

.ref-drop-icon {
  color: #153b26;
  font-size: 1rem;
  margin-top: 2px;
}

.ref-stay-departure .ref-stay-main-title {
  color: #153b26;
  font-size: 0.84rem;
}

.ref-drop-date {
  font-size: 0.72rem;
  color: #5d6f61;
}

.ref-stay-memories-row {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  color: #153b26;
  font-weight: 700;
  border-top: 1px dashed #d5ded2;
  padding-top: 6px;
}

/* Empty stay fallback */
.ref-stay-empty {
  background: #e2ebdf;
  color: #2f4435;
  box-shadow: none;
}
.ref-stay-empty .ref-stay-main-title {
  color: #153b26;
}

/* 4. SUMMARY FOOTER & PRICING BAR (Matching bottom of reference image) */
.ref-summary-footer {
  margin-top: 18px;
  border-radius: 14px;
  overflow: hidden;
  border: 1.5px solid #153b26;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  page-break-inside: avoid !important;
  break-inside: avoid !important;
}

.ref-price-pills-row {
  background: #f7f9f6;
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  border-bottom: 1px solid #dce5da;
}

.ref-price-box {
  flex: 1 1 18%;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  border-right: 1px solid #dce5da;
}

.ref-price-box:last-child {
  border-right: none;
}

.ref-box-label {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #556a59;
  text-transform: uppercase;
  margin-bottom: 3px;
}

.ref-box-val {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.15rem;
  font-weight: 900;
  color: #122f1e;
  line-height: 1.1;
}

.ref-box-discount .ref-box-val {
  color: #c0392b;
}

/* Highlighted Final Price Pill */
.ref-box-final {
  background: #153b26;
  color: #ffffff;
}

.ref-box-final .ref-box-label {
  color: #a4c2ad;
}

.ref-box-final .ref-box-val {
  color: #ffffff;
  font-size: 1.35rem;
}

.ref-box-vehicle {
  background: #122f1e;
  color: #ffffff;
  flex-direction: row;
  gap: 10px;
}

.ref-box-vehicle i {
  font-size: 1.4rem;
  color: #d4af37;
}

.ref-box-vehicle .ref-box-label {
  color: #a4c2ad;
}

.ref-box-vehicle strong {
  color: #ffffff;
  font-size: 0.92rem;
}

.ref-dates-val {
  font-size: 0.78rem;
  font-weight: 700;
  color: #153b26;
  line-height: 1.3;
}

/* Trust Ribbon */
.ref-trust-ribbon {
  background: #0d2115;
  color: #ffffff;
  padding: 10px 16px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  align-items: center;
  gap: 10px;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ref-trust-ribbon i {
  color: #d4af37;
  margin-right: 5px;
}

.trust-divider {
  color: #2e4a37;
}

/* 5. APPENDIX / PROPOSAL DETAILS */
.ref-appendix-section {
  margin-top: 22px;
}

/* Responsive adjustment for Day Cards on smaller screens */
@media (max-width: 900px) {
  .ref-day-card {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .ref-day-col-right {
    justify-content: flex-start;
  }
  .ref-stay-card {
    max-width: 100%;
  }
  .ref-hero-header {
    flex-direction: column;
  }
  .ref-hero-right {
    min-height: 140px;
  }
}

/* Price summary in document */
.doc-price-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
  background: #fbf9f6;
  border: 1.5px solid var(--color-gold);
  border-radius: 6px;
  overflow: hidden;
}

.doc-price-table td {
  padding: 7px 12px;
  border-bottom: 1px solid #ebdccb;
}

.doc-price-table .row-discount td {
  color: var(--color-success);
}

.doc-price-table .row-grand-total {
  background: #1a3c2a;
  color: #ffffff;
  font-size: 1rem;
}

.doc-price-table .row-grand-total strong {
  color: var(--color-gold-light);
}

.doc-price-table .row-advance {
  background: #faf4ea;
}

.doc-price-table .row-balance {
  background: #f7ede0;
  color: var(--color-primary-dark);
}

.doc-split-notes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.doc-notes-text {
  font-size: 0.8rem;
  color: #374151;
  white-space: pre-line;
  line-height: 1.5;
  background: #fbf9f6;
  border: 1px solid #eee4d7;
  padding: 8px 10px;
  border-radius: 4px;
}

.doc-footer {
  margin-top: 24px;
  padding-top: 14px;
  border-top: 1px solid #ebdccb;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

.doc-footer-sign strong {
  font-family: var(--font-heading);
  color: var(--color-primary);
  font-size: 0.95rem;
}

.doc-footer-sign p {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  margin: 0;
}

.doc-guest-breakdown-chip {
  font-size: 0.72rem;
  color: #153b26;
  font-weight: 600;
  margin-top: 2px;
  background: #f0f7f2;
  padding: 1px 6px;
  border-radius: 4px;
  display: inline-block;
}

/* 2.5 LOGISTICS & SPECIAL ROUTE CARD */
.ref-logistics-card {
  background: #fdfbf7;
  border: 1px solid #e5dcce;
  border-left: 3.5px solid #153b26;
  border-radius: 10px;
  padding: 12px 16px;
  margin-bottom: 16px;
  break-inside: avoid;
  page-break-inside: avoid;
}

.ref-logistics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
}

.ref-logistics-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.ref-log-icon {
  width: 32px;
  height: 32px;
  background: #153b26;
  color: #ffffff;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  flex-shrink: 0;
}

.ref-log-text {
  display: flex;
  flex-direction: column;
}

.ref-log-title {
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #7b8f80;
  text-transform: uppercase;
  margin-bottom: 2px;
}

.ref-log-text strong {
  font-size: 0.82rem;
  color: #153b26;
  line-height: 1.25;
}

.ref-special-route-strip {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed #d5ded2;
  display: flex;
  align-items: center;
  gap: 10px;
}

.ref-route-badge {
  background: #d4af37;
  color: #1a3c2a;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  padding: 3px 8px;
  border-radius: 4px;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.ref-route-text {
  font-size: 0.82rem;
  font-weight: 600;
  color: #2b3a2f;
  line-height: 1.3;
}

.doc-footer-stamp {
  margin: 0 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.doc-stamp-img {
  width: 88px;
  height: auto;
  opacity: 0.88;
  mix-blend-mode: multiply;
  transform: rotate(-4deg);
}

.doc-footer-meta {
  font-size: 0.72rem;
  color: var(--color-text-muted);
}

/* ==========================================================================
   4. QUOTATIONS HISTORY VIEW
   ========================================================================== */
.page-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.page-title {
  font-size: 1.75rem;
  margin-bottom: 4px;
}

.page-subtitle {
  font-size: 0.92rem;
  color: var(--color-text-muted);
}

.table-controls-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 18px 24px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-shadow: var(--shadow-sm);
}

.search-input-wrap {
  position: relative;
  width: 100%;
}

.search-input-wrap .search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--color-gold);
  font-size: 1rem;
}

.search-input-wrap .form-control {
  padding-left: 42px;
  padding-right: 36px;
  font-size: 0.95rem;
}

.btn-clear-search {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  font-size: 1.25rem;
  color: var(--color-text-muted);
  cursor: pointer;
}

.filter-pills-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-pill {
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid var(--color-border);
  background: var(--color-white);
  color: var(--color-text-dark);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.filter-pill:hover {
  border-color: var(--color-gold);
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(26, 60, 42, 0.08);
}

.filter-pill.active {
  background: var(--color-primary);
  color: var(--color-white);
  border-color: var(--color-primary);
  box-shadow: 0 3px 10px rgba(26, 60, 42, 0.2);
}

/* ==========================================================================
   MODAL WINDOWS
   ========================================================================== */
.admin-modal {
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(17, 40, 28, 0.75);
  backdrop-filter: blur(6px);
  z-index: 999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.admin-modal.active {
  display: flex;
}

.admin-modal-dialog {
  width: 100%;
  max-width: 900px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
}

.modal-dialog-sm {
  max-width: 460px;
}

.admin-modal-content {
  background: var(--color-white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 2px solid var(--color-gold);
}

.admin-modal-header {
  padding: 16px 24px;
  background: #fbf7f0;
  border-bottom: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-header-title {
  display: flex;
  align-items: center;
  gap: 10px;
}

.modal-header-title h3 {
  font-size: 1.25rem;
  margin: 0;
}

.modal-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-modal-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  line-height: 1;
  color: var(--color-text-muted);
  cursor: pointer;
  padding: 0 4px;
}

.btn-modal-close:hover {
  color: var(--color-danger);
}

.admin-modal-body {
  padding: 24px;
  overflow-y: auto;
}

.admin-modal-footer {
  padding: 14px 24px;
  background: #fbf7f0;
  border-top: 1px solid var(--color-border);
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

/* ==========================================================================
   PRINT STYLESHEET FOR CLIENT-FACING QUOTATION PDF
   ========================================================================== */
@media print {
  body {
    background: #ffffff !important;
    font-size: 12pt;
    color: #000000 !important;
  }

  .admin-header,
  .editor-action-bar,
  .editor-form-column,
  .preview-card-header,
  .admin-toast,
  .admin-nav-actions,
  #viewLogin,
  #viewDashboard,
  #viewQuotations,
  #viewSettings,
  .form-bottom-actions {
    display: none !important;
  }

  .editor-split-container {
    display: block !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  .editor-preview-column,
  .preview-sticky-wrapper {
    position: static !important;
    max-height: none !important;
    overflow: visible !important;
    display: block !important;
  }

  .client-document-paper {
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    border-radius: 0 !important;
    max-height: none !important;
    overflow: visible !important;
  }

  .doc-section {
    page-break-inside: avoid;
  }

  .ref-hero-header,
  .ref-passport-strip,
  .ref-day-card,
  .ref-summary-footer {
    page-break-inside: avoid !important;
    break-inside: avoid !important;
  }

  .doc-styled-table,
  .doc-price-table {
    page-break-inside: avoid;
  }
}

/* ==========================================================================
   RESPONSIVE DESIGN (TABLETS & PHONES)
   ========================================================================== */
@media (max-width: 1024px) {
  .editor-split-container {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .preview-sticky-wrapper {
    position: static;
    max-height: none;
  }

  .dashboard-stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hub-buttons-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .form-grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .admin-container {
    padding: 20px 14px;
  }

  .admin-header-inner {
    flex-direction: column;
    gap: 10px;
    align-items: center;
    text-align: center;
    padding: 12px 16px;
  }

  .admin-header-brand {
    justify-content: center;
  }

  .admin-nav-actions {
    width: 100%;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px;
    padding-bottom: 2px;
  }

  .btn-nav span {
    display: none;
  }

  .btn-nav {
    padding: 8px 12px;
    font-size: 0.95rem;
  }

  /* Dashboard Hero Mobile Fix */
  .dashboard-hero {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
    padding: 22px 18px;
  }

  .dashboard-hero h2 {
    font-size: 1.55rem;
    line-height: 1.25;
  }

  .dashboard-hero p {
    font-size: 0.9rem;
    line-height: 1.5;
  }

  .dashboard-hero-actions {
    width: 100%;
  }

  .dashboard-hero-actions .btn-admin {
    width: 100%;
    justify-content: center;
    padding: 12px 20px;
    font-size: 0.95rem;
  }

  /* Editor Action Bar Mobile Fix */
  .editor-action-bar {
    position: static;
  }

  .editor-action-inner {
    flex-direction: column;
    gap: 10px;
    padding: 12px 14px;
    align-items: stretch;
  }

  .editor-action-left {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
    width: 100%;
  }

  .editor-view-heading {
    font-size: 1.15rem;
    order: 2;
    width: 100%;
    margin-top: 4px;
  }

  .editor-action-left .btn-admin {
    order: 1;
    padding: 6px 14px;
    font-size: 0.82rem;
  }

  .editor-id-badge {
    order: 1;
  }

  .editor-action-right {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    overflow-x: visible;
    padding-bottom: 0;
  }

  .editor-action-right .btn-admin {
    width: 100%;
    padding: 9px 8px;
    font-size: 0.82rem;
    justify-content: center;
    white-space: nowrap;
  }

  .form-section-body {
    padding: 16px 14px;
  }

  .form-section-header {
    padding: 14px 16px;
  }

  .form-grid-2,
  .form-grid-3,
  .form-grid-4 {
    grid-template-columns: 1fr;
  }

  .doc-header {
    flex-direction: column;
    gap: 14px;
  }

  .doc-header-badge-box {
    text-align: left;
    border-left: none;
    border-top: 2px solid var(--color-gold);
    padding-left: 0;
    padding-top: 8px;
    width: 100%;
  }

  .doc-transport-grid {
    grid-template-columns: 1fr;
  }

  .doc-split-notes {
    grid-template-columns: 1fr;
  }

  .grand-total-main {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .grand-total-amount {
    font-size: 1.85rem;
  }

  .grand-total-payment-split {
    grid-template-columns: 1fr;
  }

  .dashboard-stats-grid {
    grid-template-columns: 1fr;
  }

  .hub-buttons-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   OFFICIAL INVOICE / ADVANCE BILL SYSTEM STYLING
   ========================================================================== */
.btn-admin-accent {
  background: linear-gradient(135deg, #0e3839 0%, #082627 100%);
  color: #ffffff;
  border-color: #0e3839;
  box-shadow: 0 4px 14px rgba(14, 56, 57, 0.3);
}

.btn-admin-accent:hover {
  background: linear-gradient(135deg, #154c4d 0%, #0e3839 100%);
  color: #f1f5f9;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(14, 56, 57, 0.4);
}

.btn-table-action.action-invoice {
  color: #0e3839;
  background: rgba(14, 56, 57, 0.08);
}

.btn-table-action.action-invoice:hover {
  background: #0e3839;
  color: #ffffff;
}

/* Modal sizing for invoice */
.modal-dialog-lg {
  max-width: 900px;
  width: 95%;
}

.invoice-modal-body {
  background: #0b1517;
  padding: 24px;
  overflow-y: auto;
  max-height: calc(90vh - 80px);
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Collapsible Edit Drawer */
.invoice-edit-drawer {
  background: #f8fafc;
  border-bottom: 2px solid #e2e8f0;
  padding: 16px 24px;
  box-shadow: inset 0 2px 6px rgba(0,0,0,0.05);
}

.invoice-drawer-inner {
  max-width: 820px;
  margin: 0 auto;
}

.inv-edit-row-header {
  display: grid;
  grid-template-columns: 2.2fr 1fr 0.8fr 0.8fr 1fr 36px;
  gap: 8px;
  padding: 0 4px 6px 4px;
  font-size: 11px;
  font-weight: 700;
  color: #475569;
  text-transform: uppercase;
}

.inv-edit-row-item {
  display: grid;
  grid-template-columns: 2.2fr 1fr 0.8fr 0.8fr 1fr 36px;
  gap: 8px;
  align-items: center;
  margin-bottom: 8px;
}

/* Invoice Document Center Wrapper */
.invoice-document-wrapper {
  display: flex;
  justify-content: center;
  width: 100%;
}

/* THE INVOICE PAPER (A4 Standard: 794px width) */
.invoice-paper {
  position: relative;
  width: 794px;
  min-height: 1120px;
  background: #fbf9f5;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.35);
  box-sizing: border-box;
  font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  color: #1e293b;
  overflow: hidden;
  margin: 0 auto;
}

/* Geometric Corner Polygon Accents */
.inv-corner-tl {
  position: absolute;
  top: 0;
  left: 0;
  width: 280px;
  height: 180px;
  pointer-events: none;
  z-index: 1;
  line-height: 0;
}

.inv-corner-tl svg {
  display: block;
  width: 100%;
  height: 100%;
}

.inv-corner-br {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 260px;
  height: 190px;
  pointer-events: none;
  z-index: 1;
  line-height: 0;
}

.inv-corner-br svg {
  display: block;
  width: 100%;
  height: 100%;
}

/* Inner padding and layout */
.inv-inner-content {
  position: relative;
  z-index: 2;
  padding: 44px 50px 38px;
  display: flex;
  flex-direction: column;
  min-height: 1120px;
  box-sizing: border-box;
}

/* 1. Header */
.inv-header-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 22px;
  padding-left: 95px; /* Offset for top-left polygon */
  padding-right: 5px;
}

.inv-main-title {
  font-family: 'Open Sans', sans-serif;
  font-weight: 900;
  font-size: 52px;
  letter-spacing: 5px;
  color: #0e3839;
  margin: 0 0 10px 0;
  line-height: 1;
}

.inv-brand-box {
  display: flex;
  justify-content: flex-end;
  align-items: flex-end;
}

.inv-brand-logo {
  height: 140px;
  width: auto;
  max-width: 280px;
  object-fit: contain;
  mix-blend-mode: multiply;
  display: block;
}

.inv-header-divider {
  height: 1.5px;
  background: #94a3b8;
  margin-bottom: 22px;
  opacity: 0.65;
}

/* 2. Bill To & Agency Details */
.inv-parties-grid {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 20px;
}

.inv-bill-to-col {
  flex: 1.1;
  padding-right: 15px;
}

.inv-meta-label {
  font-size: 13.5px;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: 0.6px;
  display: block;
  margin-bottom: 8px;
}

.inv-guest-name {
  font-size: 16px;
  font-weight: 800;
  color: #1e293b;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  line-height: 1.4;
}

.inv-vertical-sep {
  width: 1.5px;
  background: #334155;
  align-self: stretch;
  margin: 0 24px;
  min-height: 85px;
  opacity: 0.75;
}

.inv-agency-col {
  flex: 1.2;
}

.inv-agency-name {
  font-size: 14.5px;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 6px 0;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.inv-agency-address {
  font-size: 12.5px;
  font-weight: 700;
  color: #334155;
  line-height: 1.45;
  text-transform: uppercase;
}

.inv-section-divider {
  height: 1px;
  background: #cbd5e1;
  margin: 18px 0;
}

/* 3. Trip Specs Bar */
.inv-specs-block {
  margin-bottom: 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.inv-spec-line {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13.5px;
  font-weight: 700;
  color: #0f172a;
  text-transform: uppercase;
}

.inv-spec-arrow {
  font-size: 14px;
  color: #0b2e2f;
  margin-right: 4px;
}

.inv-spec-label {
  font-weight: 800;
  color: #0f172a;
  letter-spacing: 0.5px;
}

.inv-spec-val {
  font-weight: 700;
  color: #1e293b;
}

.inv-spec-dash {
  margin: 0 4px;
  color: #64748b;
}

/* 4. Table Header Pill & Rows */
.inv-table-container {
  margin-bottom: 30px;
}

.inv-table-header-pill {
  display: flex;
  align-items: center;
  background: #0e3839;
  color: #ffffff;
  border-radius: 999px;
  padding: 11px 26px;
  font-weight: 800;
  font-size: 12.5px;
  letter-spacing: 0.8px;
}

.inv-col-desc {
  flex: 2.2;
  text-align: left;
}

.inv-col-price {
  flex: 1;
  text-align: center;
}

.inv-col-qty {
  flex: 1;
  text-align: center;
}

.inv-col-total {
  flex: 1;
  text-align: right;
}

.inv-table-rows {
  display: flex;
  flex-direction: column;
}

.inv-row {
  display: flex;
  align-items: center;
  padding: 13px 26px;
  border-bottom: 1px solid #cbd5e1;
  font-weight: 700;
  font-size: 13px;
  color: #1e293b;
  text-transform: uppercase;
}

/* 5. Financial Totals & Seal Grid */
.inv-finance-stamp-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 10px;
  margin-bottom: 24px;
  gap: 16px;
}

.inv-advance-box {
  flex: 1.3;
}

.inv-advance-text {
  font-size: 15px;
  font-weight: 900;
  color: #0f172a;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  line-height: 1.4;
}

.inv-totals-box {
  flex: 1.1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.inv-totals-row {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  font-weight: 700;
  color: #1e293b;
  text-transform: uppercase;
}

.inv-totals-due-row {
  font-size: 15.5px;
  font-weight: 900;
  color: #0f172a;
  margin-top: 4px;
}

.inv-stamp-box {
  flex: 0.95;
  display: flex;
  justify-content: center;
  align-items: center;
}

.inv-stamp-container {
  display: inline-block;
  transform: rotate(-3deg);
  text-align: center;
  background: transparent;
}

.inv-stamp-img {
  width: 155px;
  height: 155px;
  object-fit: contain;
  display: block;
  mix-blend-mode: multiply;
  background: transparent;
  border: none;
  box-shadow: none;
}

.inv-footer-divider {
  height: 1px;
  background: #cbd5e1;
  margin: 18px 0;
}

/* 6. Payment Terms Footer */
.inv-terms-container {
  text-align: center;
  margin-top: auto;
  margin-bottom: 24px;
  padding: 0 110px;
  position: relative;
  z-index: 3;
}

.inv-terms-header {
  font-size: 13px;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: 1.5px;
  margin-bottom: 6px;
  text-transform: uppercase;
}

.inv-terms-body {
  max-width: 530px;
  margin: 0 auto;
  font-size: 11px;
  font-weight: 700;
  color: #334155;
  line-height: 1.6;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

/* Print specific rules for Invoice */
@media print {
  body.printing-invoice * {
    visibility: hidden;
  }
  body.printing-invoice #invoiceModal,
  body.printing-invoice #invoiceDocumentWrapper,
  body.printing-invoice #invoiceDocumentPaper,
  body.printing-invoice #invoiceDocumentPaper * {
    visibility: visible;
  }
  body.printing-invoice #invoiceModal {
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: #ffffff !important;
    padding: 0 !important;
    margin: 0 !important;
  }
  body.printing-invoice .admin-modal-dialog,
  body.printing-invoice .admin-modal-content,
  body.printing-invoice .invoice-modal-body,
  body.printing-invoice .invoice-document-wrapper {
    background: transparent !important;
    padding: 0 !important;
    margin: 0 !important;
    max-height: none !important;
    width: 100% !important;
  }
  body.printing-invoice .admin-modal-header,
  body.printing-invoice .invoice-edit-drawer {
    display: none !important;
  }
  body.printing-invoice .invoice-paper {
    box-shadow: none !important;
    margin: 0 auto !important;
    page-break-inside: avoid !important;
  }
}

/* Quick Manual Bill Generator View */
.view-manual-bill {
  padding: 20px 0 60px;
}

.manual-bill-grid {
  display: grid;
  grid-template-columns: minmax(420px, 1fr) 794px;
  gap: 28px;
  align-items: start;
}

.manual-bill-form-col {
  width: 100%;
}

.manual-bill-preview-col {
  width: 100%;
  display: flex;
  justify-content: center;
}

.manual-bill-sticky-wrapper {
  position: sticky;
  top: 75px;
  max-height: calc(100vh - 90px);
  overflow-y: auto;
  padding-bottom: 24px;
}

.manual-bill-sticky-wrapper::-webkit-scrollbar {
  width: 6px;
}
.manual-bill-sticky-wrapper::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}

@media (max-width: 1350px) {
  .manual-bill-grid {
    grid-template-columns: 1fr;
    justify-items: center;
  }
  .manual-bill-form-col {
    max-width: 794px;
  }
  .manual-bill-sticky-wrapper {
    position: static;
    max-height: none;
    overflow: visible;
  }
}

/* Printing support for manual bill */
@media print {
  body.printing-manual-bill * {
    visibility: hidden;
  }
  body.printing-manual-bill #manualBillPaper,
  body.printing-manual-bill #manualBillPaper * {
    visibility: visible;
  }
  body.printing-manual-bill #manualBillPaper {
    position: absolute;
    left: 0;
    top: 0;
    width: 794px !important;
    box-shadow: none !important;
    margin: 0 !important;
  }
}
