/* Flight Quotes & Vouchers Module Stylesheet (Version 2.6)
 * Integrity Tour 'N' Travel · Modern Airline Quotation & Voucher System
 */

/* ==========================================================================
   1. Dashboard Grid & Cards
   ========================================================================== */
.fq-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
  gap: 22px;
  margin-top: 22px;
}

.fq-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s ease, border-color 0.2s ease;
  overflow: hidden;
  position: relative;
}

.fq-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px -6px rgba(20, 32, 46, 0.12);
  border-color: var(--line-2);
}

.fq-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  background: #f8fafc;
  border-bottom: 1px solid var(--line);
}

.fq-type-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--navy);
  background: rgba(20, 32, 46, 0.08);
  padding: 3px 8px;
  border-radius: 6px;
}

.fq-card-ref {
  font-size: 12px;
  font-weight: 700;
  color: #0070c0;
  font-family: var(--mono, monospace);
  letter-spacing: 0.5px;
}

.fq-card-body {
  padding: 18px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Route visualization banner */
.fq-route-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-3) 100%);
  color: #fff;
  padding: 14px 18px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(20, 32, 46, 0.15);
  position: relative;
  overflow: hidden;
}

.fq-route-banner::before {
  content: '';
  position: absolute;
  top: -20px;
  right: -20px;
  width: 90px;
  height: 90px;
  background: radial-gradient(circle, rgba(197, 164, 109, 0.25) 0%, transparent 70%);
  pointer-events: none;
}

.fq-endpoint {
  display: flex;
  flex-direction: column;
}

.fq-endpoint.dest {
  text-align: right;
  align-items: flex-end;
}

.fq-code {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: 1px;
  font-family: var(--sans);
  line-height: 1;
  color: #ffffff;
}

.fq-city {
  font-size: 12px;
  color: #cbd5e1;
  margin-top: 4px;
  max-width: 110px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.fq-path-indicator {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 1;
  padding: 0 14px;
  position: relative;
}

.fq-flight-line {
  width: 100%;
  height: 2px;
  background: repeating-linear-gradient(90deg, rgba(197, 164, 109, 0.8) 0, rgba(197, 164, 109, 0.8) 5px, transparent 5px, transparent 9px);
  position: relative;
  margin: 6px 0;
}

.fq-path-indicator .plane-icon {
  width: 20px;
  height: 20px;
  color: var(--gold-2);
  transform: rotate(90deg);
  position: relative;
  z-index: 2;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.4));
}

.fq-stops-pill {
  font-size: 10px;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.15);
  color: #e2e8f0;
  padding: 2px 7px;
  border-radius: 10px;
  letter-spacing: 0.04em;
  margin-top: 2px;
}

/* Flight Legs in Card */
.fq-legs-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.fq-leg-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  background: #f8fafc;
  border-radius: 8px;
  border: 1px solid #edf2f7;
  font-size: 12.5px;
}

.fq-airline-tag {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  color: var(--navy);
}

.fq-airline-logo-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 6px;
  background: var(--navy);
  color: var(--gold);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.5px;
}

.fq-leg-timing {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #475569;
  font-weight: 600;
}

.fq-leg-timing .day-tag {
  color: #e11d48;
  font-size: 10.5px;
  font-weight: 700;
}

/* Guest & Passenger Row */
.fq-client-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  color: var(--text-2);
  padding: 4px 0;
}

.fq-client-row .pax-info {
  display: flex;
  align-items: center;
  gap: 6px;
}

.fq-client-row .ic {
  width: 16px;
  height: 16px;
  color: var(--gold-2);
}

/* Fares preview list */
.fq-fares-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 8px 10px;
  background: #f1f5f9;
  border-radius: 8px;
}

.fq-fare-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  font-size: 11.5px;
}

.fq-fare-pill .fare-cls {
  font-weight: 600;
  color: #475569;
}

.fq-fare-pill .fare-amt {
  font-weight: 800;
  color: #0f172a;
}

.fq-fare-pill.business {
  background: #fefce8;
  border-color: #fde047;
}
.fq-fare-pill.business .fare-amt {
  color: #854d0e;
}

/* Card Footer Actions */
.fq-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  background: #ffffff;
  border-top: 1px solid var(--line);
  gap: 8px;
}

.fq-card-footer .left-btns {
  display: flex;
  align-items: center;
  gap: 6px;
}

.fq-card-footer .right-btns {
  display: flex;
  align-items: center;
  gap: 4px;
}

/* Status Badges */
.fq-status-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.fq-status-badge.quoted { background: #e0f2fe; color: #0284c7; }
.fq-status-badge.option-held { background: #fef3c7; color: #d97706; }
.fq-status-badge.confirmed { background: #dcfce7; color: #15803d; }
.fq-status-badge.ticketed { background: #f3e8ff; color: #7e22ce; }
.fq-status-badge.cancelled { background: #fee2e2; color: #b91c1c; }

/* ==========================================================================
   2. Modal Editor & Overlays
   ========================================================================== */
.fq-modal-bg,
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(var(--navy-rgb), 0.75);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 4vh 16px 24px;
  overflow-y: auto;
  box-sizing: border-box;
  animation: modalFade 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.fq-modal-content {
  width: 100%;
  max-width: 920px;
  background: #ffffff;
  border-radius: var(--radius-xl, 16px);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.4);
  overflow: hidden;
  border: 1px solid var(--line, #e2e8f0);
  display: flex;
  flex-direction: column;
  margin: auto;
  animation: modalSlide 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

.fq-modal-content.wide {
  max-width: 980px;
}

.fq-form-section {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 16px 20px;
  margin-bottom: 16px;
}

.fq-form-section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 14.5px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid #f1f5f9;
}

.fq-form-section-title .ic {
  width: 17px;
  height: 17px;
  color: var(--gold);
  margin-right: 6px;
}

.fq-segment-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 14px 16px;
  margin-bottom: 14px;
  position: relative;
}

.fq-segment-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.fq-segment-title {
  font-size: 13px;
  font-weight: 700;
  color: #1e293b;
  display: flex;
  align-items: center;
  gap: 8px;
}

.fq-sector-badge {
  display: inline-flex;
  align-items: center;
  background: #0284c7;
  color: #ffffff;
  font-weight: 800;
  font-size: 11px;
  padding: 3px 9px;
  border-radius: 6px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.fq-segment-route-title {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--navy);
}

.fq-autofill-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  color: #ffffff;
  border: none;
  padding: 5px 12px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.2s ease, transform 0.15s ease;
}
.fq-autofill-btn:hover {
  opacity: 0.92;
  transform: translateY(-1px);
}
.fq-autofill-btn:active {
  transform: translateY(0);
}

.fq-fares-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 8px;
}
.fq-fares-table th {
  text-align: left;
  font-size: 11.5px;
  font-weight: 700;
  color: #64748b;
  padding: 8px 10px;
  background: #f1f5f9;
  border-radius: 4px;
}
.fq-fares-table td {
  padding: 8px 10px;
  border-bottom: 1px solid #f1f5f9;
}

/* Fare cards & Pill selectors in Editor */
.fq-fare-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 14px 16px;
  margin-bottom: 12px;
}

.fq-fare-badge {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: var(--navy);
  color: #fff;
  padding: 2px 7px;
  border-radius: 4px;
}

.fq-fare-type-pill {
  font-size: 11px;
  font-weight: 700;
  background: #e0f2fe;
  color: #0284c7;
  padding: 2px 8px;
  border-radius: 6px;
  border: 1px solid #bae6fd;
}

.fq-pills-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.fq-pill-btn {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  color: #334155;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 9px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.fq-pill-btn:hover {
  background: #f1f5f9;
  border-color: #94a3b8;
  color: var(--navy);
  transform: translateY(-1px);
}

.fq-pill-btn.active {
  background: var(--navy);
  border-color: var(--navy);
  color: #ffffff;
}

/* ==========================================================================
   3. Luxury Boarding-Pass & Graphic Card View
   ========================================================================== */
.fq-preview-modal-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 24px 20px;
  background: #0d1520;
  min-height: 80vh;
}

.fq-preview-actions-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 24px;
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(13, 21, 32, 0.9);
  backdrop-filter: blur(8px);
  padding: 10px 18px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* The Luxury Flight Card Container */
.fq-luxury-pass {
  width: 100%;
  max-width: 680px;
  background: #ffffff;
  border-radius: 20px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.1);
  overflow: hidden;
  color: #1e293b;
  position: relative;
  margin: 0 auto;
}

/* Pass Header */
.fq-pass-header {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-3) 100%);
  color: #ffffff;
  padding: 20px 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 2px solid var(--gold);
}

.fq-pass-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.fq-pass-brand img {
  height: 38px;
  width: auto;
  object-fit: contain;
}

.fq-pass-brand-text h2 {
  font-family: var(--serif);
  font-size: 19px;
  margin: 0;
  color: #ffffff;
  letter-spacing: 0.5px;
}
.fq-pass-brand-text span {
  font-size: 11px;
  color: var(--gold-2);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
}

.fq-pass-quote-badge {
  text-align: right;
}
.fq-pass-quote-badge .lbl {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #94a3b8;
}
.fq-pass-quote-badge .val {
  font-size: 16px;
  font-weight: 800;
  color: var(--gold-2);
  font-family: var(--mono, monospace);
}

/* Pass Route Section */
.fq-pass-route-wrap {
  padding: 24px 28px 20px;
  background: #ffffff;
}

.fq-pass-flight-leg {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 18px 22px;
  margin-bottom: 14px;
  position: relative;
}

.fq-pass-leg-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  font-weight: 700;
  color: #64748b;
  margin-bottom: 14px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 1px dashed #cbd5e1;
  padding-bottom: 8px;
}

.fq-pass-leg-main {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
}

.fq-pass-loc {
  display: flex;
  flex-direction: column;
}
.fq-pass-loc.arr {
  text-align: right;
}

.fq-pass-iata {
  font-size: 34px;
  font-weight: 900;
  color: var(--navy);
  line-height: 1;
  letter-spacing: 1px;
}

.fq-pass-city-name {
  font-size: 13px;
  font-weight: 600;
  color: #475569;
  margin-top: 4px;
}

.fq-pass-time {
  font-size: 20px;
  font-weight: 800;
  color: #0f172a;
  margin-top: 6px;
}

.fq-pass-terminal {
  font-size: 11px;
  font-weight: 700;
  color: #0284c7;
  background: #e0f2fe;
  padding: 2px 7px;
  border-radius: 6px;
  display: inline-block;
  margin-top: 4px;
  width: fit-content;
}
.fq-pass-loc.arr .fq-pass-terminal {
  margin-left: auto;
}

.fq-pass-mid-flight {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0 10px;
}

.fq-pass-dur {
  font-size: 11.5px;
  font-weight: 700;
  color: #475569;
  margin-bottom: 4px;
}

.fq-pass-flight-svg {
  width: 110px;
  display: flex;
  align-items: center;
  position: relative;
}

.fq-pass-flight-svg .line {
  height: 2px;
  width: 100%;
  background: repeating-linear-gradient(90deg, #94a3b8 0, #94a3b8 4px, transparent 4px, transparent 8px);
}

.fq-pass-flight-svg .plane {
  width: 18px;
  height: 18px;
  color: var(--navy);
  transform: rotate(90deg);
  position: absolute;
  left: calc(50% - 9px);
}

.fq-pass-stops-txt {
  font-size: 11px;
  font-weight: 700;
  color: #059669;
  margin-top: 4px;
}

/* Passenger & Meta Grid */
.fq-pass-details-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  padding: 16px 28px;
  background: #f8fafc;
  border-top: 1px solid #e2e8f0;
  border-bottom: 1px solid #e2e8f0;
}

.fq-pass-field {
  display: flex;
  flex-direction: column;
}
.fq-pass-field .lbl {
  font-size: 10.5px;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 3px;
}
.fq-pass-field .val {
  font-size: 13.5px;
  font-weight: 700;
  color: #0f172a;
}

/* Fares Section in Luxury Card */
.fq-pass-fares-section {
  padding: 20px 28px;
  background: #ffffff;
}

.fq-pass-fares-title {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--navy);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.fq-pass-fares-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}

.fq-pass-fare-box {
  border: 1.5px solid #e2e8f0;
  border-radius: 10px;
  padding: 12px 16px;
  background: #f8fafc;
  display: flex;
  flex-direction: column;
  transition: border-color 0.2s ease;
}

.fq-pass-fare-box.active {
  border-color: var(--gold);
  background: #fffdfa;
}

.fq-pass-fare-box .cls-name {
  font-size: 12px;
  font-weight: 700;
  color: #475569;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.fq-pass-fare-box .amt {
  font-size: 22px;
  font-weight: 800;
  color: var(--navy);
  margin: 4px 0 2px;
}

.fq-pass-fare-box .sub {
  font-size: 10.5px;
  color: #64748b;
}

/* Baggage & Policies in Luxury Card */
.fq-pass-policy-box {
  margin: 0 28px 24px;
  padding: 14px 18px;
  background: #f1f5f9;
  border-radius: 10px;
  font-size: 12px;
  color: #334155;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.fq-pass-policy-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Perforated Stub / Barcode area */
.fq-pass-stub {
  background: #f8fafc;
  border-top: 2px dashed #cbd5e1;
  padding: 18px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}

/* Notches on the sides */
.fq-pass-stub::before, .fq-pass-stub::after {
  content: '';
  position: absolute;
  top: -12px;
  width: 24px;
  height: 24px;
  background: #0d1520;
  border-radius: 50%;
}
.fq-pass-stub::before { left: -12px; }
.fq-pass-stub::after { right: -12px; }

.fq-mock-barcode {
  display: flex;
  gap: 3px;
  height: 38px;
  align-items: center;
}
.fq-mock-barcode span {
  display: inline-block;
  background: #0f172a;
  height: 100%;
}

.fq-stub-agent-info {
  text-align: right;
  font-size: 11.5px;
  color: #475569;
}
.fq-stub-agent-info b {
  color: var(--navy);
  font-size: 12.5px;
  display: block;
}

/* ==========================================================================
   4. Official Printable A4 Document View
   ========================================================================== */
.fq-doc-container {
  max-width: 800px;
  width: 100%;
  margin: 0 auto;
  background: #ffffff;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  padding: 40px 48px;
  font-family: 'Inter', sans-serif;
  color: #1a202c;
  box-sizing: border-box;
}

.fq-doc-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding-bottom: 24px;
  border-bottom: 2px solid var(--navy);
  margin-bottom: 24px;
}

.fq-doc-brand img {
  height: 52px;
  width: auto;
  margin-bottom: 6px;
}

.fq-doc-company-details {
  font-size: 11.5px;
  line-height: 1.5;
  color: #4a5568;
}

.fq-doc-title-block {
  text-align: right;
}

.fq-doc-main-title {
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: 0.5px;
  margin: 0 0 4px;
}

.fq-doc-meta-table {
  font-size: 12px;
  margin-top: 6px;
  margin-left: auto;
}
.fq-doc-meta-table td {
  padding: 2px 6px;
}
.fq-doc-meta-table .lbl {
  font-weight: 600;
  color: #718096;
  text-align: right;
}
.fq-doc-meta-table .val {
  font-weight: 700;
  color: #1a202c;
  text-align: right;
}

/* Client info banner */
.fq-doc-client-banner {
  background: #f7fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 14px 18px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

.fq-doc-client-field .lbl {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: #718096;
  letter-spacing: 0.05em;
  margin-bottom: 2px;
}
.fq-doc-client-field .val {
  font-size: 14px;
  font-weight: 700;
  color: var(--navy);
}

/* Flight Details Table */
.fq-doc-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 24px;
}

.fq-doc-table th {
  background: var(--navy);
  color: #ffffff;
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 10px 12px;
  text-align: left;
}

.fq-doc-table td {
  padding: 12px;
  border-bottom: 1px solid #e2e8f0;
  font-size: 12.5px;
  vertical-align: top;
}

.fq-doc-table tr:nth-child(even) td {
  background: #f8fafc;
}

/* Fare Summary Table */
.fq-doc-fares-wrap {
  margin-bottom: 24px;
}

.fq-doc-section-h3 {
  font-size: 13.5px;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--navy);
  letter-spacing: 0.06em;
  margin: 0 0 10px;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Baggage & Rules Box */
.fq-doc-rules-box {
  background: #f8fafc;
  border-left: 3px solid var(--gold);
  padding: 14px 18px;
  margin-bottom: 24px;
  font-size: 12px;
  line-height: 1.6;
  color: #2d3748;
}

.fq-doc-rules-box h4 {
  margin: 0 0 6px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--navy);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Agency Signoff */
.fq-doc-footer-signoff {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding-top: 24px;
  border-top: 1px solid #e2e8f0;
  margin-top: 30px;
}

.fq-doc-agency-info {
  font-size: 12px;
  color: #4a5568;
  line-height: 1.5;
}

.fq-doc-stamp-area {
  text-align: center;
  width: 180px;
}

.fq-doc-stamp-box {
  border: 1px dashed #cbd5e1;
  height: 65px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  color: #94a3b8;
  margin-bottom: 4px;
}

.fq-doc-stamp-area .sign-lbl {
  font-size: 11px;
  font-weight: 700;
  color: var(--navy);
}

/* ==========================================================================
   5. WhatsApp Text Preview Tab
   ========================================================================== */
.fq-wa-preview-wrap {
  width: 100%;
  max-width: 620px;
  background: #ffffff;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

.fq-wa-bubble {
  background: #dcf8c6;
  border-radius: 12px;
  padding: 16px 18px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 13.5px;
  line-height: 1.55;
  color: #111b21;
  white-space: pre-wrap;
  word-break: break-word;
  box-shadow: 0 1px 2px rgba(0,0,0,0.15);
  position: relative;
}

.fq-wa-bubble::after {
  content: '';
  position: absolute;
  top: 12px;
  right: -8px;
  width: 0;
  height: 0;
  border-left: 8px solid #dcf8c6;
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
}

/* ==========================================================================
   6. Print Styles
   ========================================================================== */
@media print {
  body {
    background: #ffffff !important;
    color: #000000 !important;
  }
  .topbar, .fq-preview-actions-bar, .modal-backdrop, .toasts {
    display: none !important;
  }
  .fq-doc-container {
    box-shadow: none !important;
    padding: 0 !important;
    margin: 0 !important;
    width: 100% !important;
    max-width: none !important;
  }
  .fq-luxury-pass {
    box-shadow: none !important;
    border: 1px solid #cbd5e1 !important;
  }
  @page {
    size: A4 portrait;
    margin: 15mm 15mm 15mm 15mm;
  }
}

/* ==========================================================================
   7. Interactive Fare Cards, Type Pills & Baggage Selectors
   ========================================================================== */
.fq-pills-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.fq-pill-btn {
  appearance: none;
  border: 1px solid #cbd5e1;
  background: #f8fafc;
  color: #334155;
  font-size: 11.5px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 20px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: all 0.15s ease;
  user-select: none;
  line-height: 1.3;
}

.fq-pill-btn:hover {
  background: #f0f9ff;
  border-color: #38bdf8;
  color: #0284c7;
  transform: translateY(-1px);
}

.fq-pill-btn.active,
.fq-pill-btn[data-selected="true"] {
  background: #0284c7;
  border-color: #0284c7;
  color: #ffffff;
  font-weight: 700;
  box-shadow: 0 2px 6px rgba(2, 132, 199, 0.3);
}

.fq-pill-btn.active:hover {
  background: #0369a1;
  border-color: #0369a1;
  color: #ffffff;
}

.fq-pill-btn.gold {
  border-color: #fde68a;
  background: #fffbeb;
  color: #92400e;
}
.fq-pill-btn.gold:hover {
  background: #fef3c7;
  border-color: #f59e0b;
  color: #78350f;
}
.fq-pill-btn.gold.active {
  background: #d97706;
  border-color: #d97706;
  color: #ffffff;
  box-shadow: 0 2px 6px rgba(217, 119, 6, 0.3);
}

.fq-fare-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 14px 16px;
  margin-bottom: 12px;
  position: relative;
  transition: box-shadow 0.2s, border-color 0.2s;
}

.fq-fare-card:hover {
  border-color: #cbd5e1;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.05);
}

.fq-fare-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px dashed #e2e8f0;
}

.fq-fare-badge {
  font-size: 10px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 4px;
  background: #fef3c7;
  color: #92400e;
  border: 1px solid #fde68a;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  display: inline-block;
}

.fq-fare-badge.corporate {
  background: #e0f2fe;
  color: #0369a1;
  border-color: #bae6fd;
}

.fq-fare-badge.flexi {
  background: #dcfce7;
  color: #15803d;
  border-color: #bbf7d0;
}

.fq-fare-badge.super-6e {
  background: #f3e8ff;
  color: #6b21a8;
  border-color: #e9d5ff;
}

.fq-fare-badge.promo {
  background: #fee2e2;
  color: #b91c1c;
  border-color: #fecaca;
}

.fq-baggage-preset-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.fq-helper-label {
  font-size: 11px;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-bottom: 4px;
  display: block;
}

/* ==========================================================================
   8. Stacking: dialogs opened from the quote editor sit above it
   ========================================================================== */
body > .modal-bg:not(.modal-backdrop) {
  z-index: 10000;
}
.toasts {
  z-index: 10001;
}

/* ==========================================================================
   9. Fare Policies box (quote editor)
   ========================================================================== */
.fq-policy-box {
  background: #ffffff;
  padding: 12px 14px;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  margin-bottom: 12px;
}
.fq-policy-match {
  font-size: 12px;
  padding: 7px 10px;
  border-radius: 6px;
  margin-bottom: 8px;
  line-height: 1.45;
}
.fq-policy-match:empty {
  display: none;
}
.fq-policy-match.ok {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: #166534;
}
.fq-policy-match.none {
  background: #fffbeb;
  border: 1px solid #fde68a;
  color: #92400e;
}

/* ==========================================================================
   10. Policies tab
   ========================================================================== */
.fp-toolbar select {
  min-width: 220px;
}
.fp-group {
  margin-bottom: 26px;
}
.fp-group-h {
  font-size: 20px;
  margin: 0 0 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.fp-group-h span {
  font: 700 11px/1 var(--sans);
  background: var(--gold-soft);
  color: var(--gold-2);
  border: 1px solid #f1e3c4;
  padding: 3px 8px;
  border-radius: 20px;
}.fp-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 14px;
}
.fp-card {
  padding: 14px 16px;
}
.fp-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-bottom: 8px;
  margin-bottom: 8px;
  border-bottom: 1px dashed #e2e8f0;
}
.fp-card-head b {
  color: var(--navy);
  font-size: 14.5px;
}
.fp-line {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 8px;
  font-size: 12.5px;
  line-height: 1.5;
  padding: 3px 0;
  color: #334155;
}
.fp-line b {
  color: #64748b;
  font-weight: 700;
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  padding-top: 1px;
}
@media (max-width: 560px) {
  .fp-grid {
    grid-template-columns: 1fr;
  }
  .fp-line {
    grid-template-columns: 1fr;
    gap: 0;
  }
}

/* ==========================================================================
   11. Inclusions & Amenities (pills in the fare card, list on the Policies page)
   ========================================================================== */
.fq-amen-sign {
  display: inline-grid;
  place-items: center;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #e2e8f0;
  color: #334155;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
}
.fq-amen.active .fq-amen-sign {
  background: #ffffff;
  color: #0284c7;
}
.fq-amen-add {
  border-style: dashed;
  background: #ffffff;
  color: var(--gold-2);
  border-color: var(--gold);
}
.fq-amen-add:hover {
  background: var(--gold-soft);
  border-color: var(--gold-2);
  color: var(--gold-2);
}
.fp-tabs {
  margin-bottom: 18px;
}
.am-list {
  padding: 4px 0;
}
.am-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 18px;
  border-bottom: 1px solid var(--line-subtle);
}
.am-row:last-child {
  border-bottom: none;
}
.am-ic {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  font-size: 18px;
  background: var(--gold-soft);
  border-radius: 8px;
  flex: none;
}
.am-row .grow b {
  display: block;
  color: var(--navy);
  font-size: 14px;
}
.am-row .grow small {
  color: var(--muted);
  font-size: 12px;
}
.am-acts {
  display: flex;
  gap: 2px;
}
.am-acts .btn[disabled] {
  opacity: 0.3;
}