/* Hotel Voucher Stylesheet (Version 2.2) */

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

.hv-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 ease, box-shadow 0.2s ease, border-color 0.2s ease;
  overflow: hidden;
}
.hv-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  border-color: var(--line-2);
}

.hv-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  background: #f8fafc;
  border-bottom: 1px solid var(--line);
}
.hv-card-conf-badge {
  display: flex;
  flex-direction: column;
}
.hv-card-conf-badge .lbl {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #64748b;
  text-transform: uppercase;
}
.hv-card-conf-badge .val {
  font-size: 18px;
  font-weight: 800;
  color: #0070c0;
  letter-spacing: 1px;
}

.hv-card-body {
  padding: 18px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.hv-card-hotel {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 600;
  color: var(--navy);
  margin: 0;
  line-height: 1.25;
}
.hv-card-guest {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  color: var(--text-2);
}
.hv-card-guest .ic {
  width: 16px;
  height: 16px;
  color: var(--gold-2);
}

.hv-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  color: var(--muted);
  padding: 8px 12px;
  background: #f1f5f9;
  border-radius: 8px;
}
.hv-card-meta .nights-pill {
  font-weight: 700;
  background: #e2e8f0;
  color: #1e293b;
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 11.5px;
}

.hv-card-sub {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12.5px;
  color: var(--muted);
}
.hv-card-sub .ic {
  width: 14px;
  height: 14px;
  margin-right: 4px;
}

.hv-card-addr {
  font-size: 12px;
  color: #64748b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.hv-card-addr .ic {
  width: 14px;
  height: 14px;
  margin-right: 3px;
  vertical-align: -2px;
}

.hv-card-foot {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 18px;
  background: #ffffff;
  border-top: 1px solid var(--line);
}
.hv-card-foot .hv-btn-print {
  flex: 1;
}

.hv-empty-card {
  grid-column: 1 / -1;
  text-align: center;
  padding: 50px 20px;
}
.hv-empty-ic {
  width: 60px;
  height: 60px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: rgba(201, 155, 83, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-2);
}
.hv-empty-ic .ic {
  width: 28px;
  height: 28px;
}

/* Hotel Search Dropdown */
.hv-hotel-search-wrap {
  position: relative;
  margin-bottom: 12px;
}
.hv-search-input-box {
  position: relative;
  display: flex;
  align-items: center;
}
.hv-search-input-box .ic {
  position: absolute;
  left: 12px;
  color: var(--muted);
  width: 18px;
  height: 18px;
  pointer-events: none;
}
.hv-search-input-box input {
  padding-left: 38px !important;
  font-size: 14px;
}
.hv-hotel-drop {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 1050;
  margin-top: 4px;
  background: #ffffff;
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  max-height: 320px;
  overflow-y: auto;
}
.hv-hdrop-loading,
.hv-hdrop-empty {
  padding: 14px 16px;
  font-size: 13px;
  color: var(--muted);
  text-align: center;
}
.hv-hdrop-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 14px;
  background: #f8fafc;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #64748b;
  border-bottom: 1px solid var(--line);
}
.hv-hdrop-list {
  display: flex;
  flex-direction: column;
}
.hv-hdrop-item {
  padding: 10px 14px;
  border-bottom: 1px solid #f1f5f9;
  cursor: pointer;
  transition: background 0.15s ease;
}
.hv-hdrop-item:hover {
  background: #f1f8ff;
}
.hv-hdrop-item-name {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 14px;
  color: var(--navy);
}
.hv-hdrop-item-name .rating {
  font-size: 11px;
  background: #fef3c7;
  color: #92400e;
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 600;
}
.hv-hdrop-item-addr {
  font-size: 12px;
  color: #64748b;
  margin-top: 3px;
}
.hv-hdrop-item-phone {
  font-size: 12px;
  color: #0070c0;
  margin-top: 3px;
}
.hv-hdrop-item-phone .ic {
  width: 12px;
  height: 12px;
}

/* ========================================================== */
/* COMPACT 2-COLUMN HOTEL VOUCHER MODAL                       */
/* Fits on screen without excessive vertical scrolling        */
/* ========================================================== */
.hv-voucher-modal-bg {
  padding: 2vh 16px 16px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.hv-modal-dialog {
  max-width: 1040px !important;
  width: 95vw !important;
  max-height: 94vh !important;
  display: flex !important;
  flex-direction: column !important;
  background: #ffffff !important;
  border-radius: 12px !important;
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.28) !important;
  border: 1px solid #cbd5e1 !important;
  overflow: hidden !important;
}

.hv-modal-dialog .modal-h {
  padding: 12px 20px !important;
  border-bottom: 1px solid #e2e8f0 !important;
  background: #f8fafc !important;
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  flex: none !important;
}

.hv-modal-dialog .modal-h h2 {
  font-size: 18px !important;
  font-weight: 700 !important;
  color: #0f172a !important;
  margin: 0 !important;
  flex: 1 !important;
}

.hv-modal-dialog .modal-h .seg-ic {
  width: 32px !important;
  height: 32px !important;
  border-radius: 8px !important;
  background: rgba(0, 112, 192, 0.1) !important;
  color: #0070c0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex: none !important;
}
.hv-modal-dialog .modal-h .seg-ic .ic {
  width: 18px !important;
  height: 18px !important;
}

.hv-modal-body {
  padding: 14px 18px !important;
  flex: 1 !important;
  overflow-y: auto !important;
  background: #f1f5f9 !important;
  display: block !important;
}

.hv-modal-dialog .modal-f {
  padding: 10px 20px !important;
  background: #f8fafc !important;
  border-top: 1px solid #e2e8f0 !important;
  display: flex !important;
  justify-content: flex-end !important;
  gap: 10px !important;
  flex: none !important;
}

/* Single-Column (Top-to-Bottom) Form Flow */
.hv-form-2col,
.hv-form-singlecol {
  display: flex !important;
  flex-direction: column !important;
  gap: 18px !important;
  max-width: 860px !important;
  margin: 0 auto !important;
  width: 100% !important;
}

.hv-col {
  display: flex;
  flex-direction: column;
  gap: 18px;
  width: 100%;
}

.hv-rooms-count-cat-wrap {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 6px;
}

.hv-rooms-count-cat-wrap .hv-rooms-count-col {
  width: 140px;
  flex: none;
}

.hv-rooms-count-cat-wrap .hv-room-cat-col {
  flex: 1;
}

.hv-rooms-count-cat-wrap textarea#vRoomCat {
  width: 100%;
  min-height: 58px;
  padding: 8px 12px;
  font-family: inherit;
  font-size: 13px;
  line-height: 1.45;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  background: #ffffff;
  resize: vertical;
  color: #0f172a;
  box-sizing: border-box;
}

.hv-rooms-count-cat-wrap textarea#vRoomCat:focus {
  border-color: #0070c0;
  outline: none;
  box-shadow: 0 0 0 3px rgba(0, 112, 192, 0.15);
}

@media (max-width: 640px) {
  .hv-rooms-count-cat-wrap {
    flex-direction: column;
  }
  .hv-rooms-count-cat-wrap .hv-rooms-count-col {
    width: 100%;
  }
}

/* Section Box */
.hv-box {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 12px 14px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.hv-box-head {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 10px;
  padding-bottom: 6px;
  border-bottom: 1px solid #f1f5f9;
}

.hv-box-icon {
  width: 20px;
  height: 20px;
  color: #0070c0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
}
.hv-box-icon .ic {
  width: 15px;
  height: 15px;
}

.hv-box-title {
  font-size: 12px;
  font-weight: 700;
  color: #1e293b;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.hv-box-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* Custom Grids */
.hv-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.hv-grid-3 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
}

.hv-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

/* Labels and Inputs */
.hv-lbl-wrap {
  display: flex;
  flex-direction: column;
  gap: 3px;
  width: 100%;
}

.hv-lbl {
  font-size: 11px;
  font-weight: 600;
  color: #475569;
  letter-spacing: 0.01em;
}

.hv-lbl .req {
  color: #dc2626;
  font-weight: 700;
}

.hv-box-body input,
.hv-box-body select,
.hv-box-body textarea {
  width: 100%;
  font-size: 12.5px;
  color: #1e293b;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  padding: 5px 8px;
  height: 32px;
  box-sizing: border-box;
  font-family: inherit;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.hv-box-body textarea {
  height: auto;
  min-height: 44px;
  resize: vertical;
  line-height: 1.35;
}

.hv-box-body input:focus,
.hv-box-body select:focus,
.hv-box-body textarea:focus {
  outline: none;
  border-color: #0070c0;
  box-shadow: 0 0 0 2px rgba(0, 112, 192, 0.15);
}

/* Refresh / Icon button square */
.hv-btn-icon-sq {
  flex: none;
  width: 32px !important;
  height: 32px !important;
  padding: 0 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  border-radius: 6px !important;
  background: #f1f5f9 !important;
  border: 1px solid #cbd5e1 !important;
  color: #0070c0 !important;
  cursor: pointer !important;
  transition: all 0.15s ease !important;
}

.hv-btn-icon-sq:hover {
  background: #e2e8f0 !important;
  border-color: #0070c0 !important;
  color: #00508a !important;
}

.hv-btn-icon-sq .ic {
  width: 15px !important;
  height: 15px !important;
}

/* Quick Pills */
.hv-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 4px;
}

.hv-pill-btn {
  font-size: 10.5px;
  padding: 2px 7px;
  background: #f0fdf4;
  color: #166534;
  border: 1px solid #bbf7d0;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.12s ease;
  font-family: inherit;
}

.hv-pill-btn:hover {
  background: #166534;
  color: #ffffff;
  border-color: #166534;
}

.hv-pill-btn.policy-pill {
  background: #f8fafc;
  color: #475569;
  border-color: #cbd5e1;
}

.hv-pill-btn.policy-pill:hover {
  background: #0070c0;
  color: #ffffff;
  border-color: #0070c0;
}

.hv-pill-btn.special-pill {
  background: #f0f9ff;
  color: #0369a1;
  border-color: #bae6fd;
}

.hv-pill-btn.special-pill:hover {
  background: #0284c7;
  color: #ffffff;
  border-color: #0284c7;
}

/* Collapsible Disclaimers / Notes */
.hv-notes-details {
  border: 1px dashed #cbd5e1;
  border-radius: 6px;
  padding: 6px 10px;
  background: #f8fafc;
  margin-top: 4px;
}

.hv-notes-details summary {
  font-size: 11px;
  font-weight: 600;
  color: #64748b;
  cursor: pointer;
  user-select: none;
  display: flex;
  align-items: center;
  gap: 5px;
}

.hv-notes-details summary:hover {
  color: #0070c0;
}

.hv-notes-details summary .ic {
  width: 12px;
  height: 12px;
  transition: transform 0.15s ease;
}

.hv-notes-details[open] summary .ic {
  transform: rotate(180deg);
}

/* Import from Itinerary List */
.hv-imp-hotels-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 400px;
  overflow-y: auto;
}
.hv-imp-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
  cursor: pointer;
  transition: all 0.15s ease;
}
.hv-imp-item:hover {
  border-color: var(--gold);
  background: #fdfcf9;
}
.hv-imp-ic {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: rgba(201, 155, 83, 0.12);
  color: var(--gold-2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
}
.hv-imp-info {
  flex: 1;
}
.hv-imp-info b {
  font-size: 15px;
  color: var(--navy);
}
.hv-imp-info .meta {
  font-size: 12.5px;
  color: var(--muted);
  margin-top: 2px;
}
.hv-imp-info .addr {
  font-size: 12px;
  color: #64748b;
  margin-top: 3px;
}

/* ========================================================== */
/* PIXEL-PERFECT VOUCHER PRINT & PREVIEW SHEET                */
/* Exactly matches the reference image & docx                 */
/* ========================================================== */
.hv-preview-modal-bg {
  position: fixed !important;
  inset: 0 !important;
  padding: 16px !important;
  background: rgba(13, 23, 38, 0.88) !important;
  backdrop-filter: blur(8px) !important;
  -webkit-backdrop-filter: blur(8px) !important;
  z-index: 10000 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}
.hv-preview-container {
  width: 100%;
  max-width: 860px;
  height: 94vh;
  display: flex;
  flex-direction: column;
  background: #1e293b;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}
.hv-preview-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  background: #0f172a;
  border-bottom: 1px solid #334155;
  color: #ffffff;
}
.hv-prev-meta {
  font-size: 14px;
}
.hv-prev-meta span {
  color: #94a3b8;
}
.hv-prev-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.hv-preview-scroll-area {
  flex: 1;
  overflow-y: auto;
  padding: 24px;
  display: flex;
  justify-content: center;
  background: #334155;
}
.hv-preview-page {
  width: 100%;
  max-width: 760px;
}

/* The White Paper Voucher Sheet (Executive Premium Letterhead Design) */
.hv-sheet {
  background: #ffffff;
  color: #334155;
  font-family: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 13px;
  line-height: 1.55;
  padding: 28px 36px 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.22);
  box-sizing: border-box;
  position: relative;
  letter-spacing: -0.005em;
  overflow: hidden;
}

/* Watermark Dotted World Map from Company Letterhead */
.hv-sheet::before {
  content: '';
  position: absolute;
  top: 130px;
  left: 20px;
  right: 20px;
  bottom: 120px;
  background-image: url('../img/world_map_watermark.png');
  background-repeat: no-repeat;
  background-position: center 25%;
  background-size: 85% auto;
  opacity: 0.08;
  pointer-events: none;
  z-index: 0;
}

.hv-sheet > * {
  position: relative;
  z-index: 1;
}

/* Top bar with Letterhead Header layout */
.hv-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 2px solid #0070c0;
  position: relative;
}
.hv-topbar-left {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
}
.hv-logo {
  height: 48px;
  max-width: 210px;
  object-fit: contain;
}
.hv-topbar-center {
  flex: 1 1 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
}
.hv-topbar-title {
  font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
  font-size: 25px;
  font-weight: 800;
  color: #0070c0;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin: 0;
  line-height: 1.1;
  text-shadow: 0 1px 2px rgba(0, 112, 192, 0.12);
}
.hv-topbar-subtitle {
  font-size: 10px;
  font-weight: 700;
  color: #64748b;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-top: 3px;
}
.hv-topbar-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex: 0 0 auto;
}
.hv-issue-date {
  font-size: 11.5px;
  color: #475569;
  font-weight: 600;
  letter-spacing: 0.02em;
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  padding: 5px 12px;
  border-radius: 6px;
  white-space: nowrap;
}
.hv-issue-date b {
  color: #0f172a;
  font-weight: 800;
  margin-left: 4px;
}

/* Hotel Hero Banner (Image 1 Style) */
.hv-hotel-hero-banner {
  position: relative;
  width: 100%;
  min-height: 125px;
  border-radius: 8px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden;
  margin-bottom: 14px;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.10);
  border: 1px solid rgba(0, 112, 192, 0.15);
  display: flex;
}
.hv-hero-overlay {
  width: 100%;
  background: linear-gradient(90deg, rgba(13, 23, 38, 0.92) 0%, rgba(13, 23, 38, 0.78) 55%, rgba(13, 23, 38, 0.35) 100%);
  padding: 13px 18px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 3px;
  color: #ffffff;
}
.hv-hero-sub {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: #dfba73; /* Gold */
}
.hv-hero-hotel-name {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 22px;
  font-weight: 800;
  line-height: 1.22;
  color: #ffffff;
  margin: 0;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
}
.hv-hero-hotel-addr {
  font-size: 11.5px;
  color: #f1f5f9;
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 2px;
  line-height: 1.3;
}
.hv-hero-hotel-addr .ic {
  width: 13px;
  height: 13px;
  color: #dfba73;
  flex: none;
}
.hv-hero-hotel-phone {
  font-size: 11.5px;
  color: #cbd5e1;
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 2px;
}
.hv-hero-hotel-phone .ic {
  width: 13px;
  height: 13px;
  color: #dfba73;
  flex: none;
}
.hv-hero-hotel-phone b {
  color: #ffffff;
}

/* Modal Form Photo Thumbnail */
.hv-img-preview-thumb {
  width: 64px;
  height: 40px;
  border-radius: 6px;
  border: 1px solid #cbd5e1;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  flex: none;
  background-color: #f1f5f9;
}

/* Reservation Summary */
.hv-section-title {
  font-size: 12px;
  font-weight: 700;
  color: #0070c0;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
}
.hv-section-title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #e2e8f0;
  margin-left: 12px;
}

.hv-summary-table {
  background: #fafcff;
  border: 1px solid #e0e7ff;
  border-radius: 8px;
  padding: 8px 16px;
  margin-bottom: 14px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.hv-sum-row {
  display: flex;
  align-items: center;
  padding: 4px 0;
  border-bottom: 1px dashed #e2e8f0;
}
.hv-sum-row:last-child {
  border-bottom: none;
}
.hv-sum-label {
  width: 165px;
  font-size: 12.5px;
  font-weight: 600;
  color: #64748b;
  flex: none;
}
.hv-sum-val {
  color: #0f172a;
  font-size: 13px;
  font-weight: 600;
  flex: 1;
  white-space: pre-line;
  line-height: 1.45;
}

/* Symmetrical 3-Column Confirmation Bar */
.hv-conf-bar {
  display: grid;
  grid-template-columns: 1.35fr 1fr 1fr;
  border: 1.5px solid #0070c0;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 14px;
  background: #ffffff;
  box-shadow: 0 2px 8px rgba(0, 112, 192, 0.08);
}
.hv-conf-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  text-align: center;
  box-sizing: border-box;
}
.hv-conf-col-num {
  background: linear-gradient(135deg, #0070c0 0%, #005a9c 100%);
  color: #ffffff;
  border-right: 1px solid #005a9c;
}
.hv-conf-col-num .hv-conf-lbl {
  color: rgba(255, 255, 255, 0.92);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 3px;
  white-space: nowrap;
}
.hv-conf-col-num .hv-conf-val {
  color: #ffffff;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 1.2px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  line-height: 1.15;
  word-break: break-word;
}
.hv-conf-col-num .hv-conf-val.hv-conf-val-long {
  font-size: 14px;
  letter-spacing: 0.5px;
  word-break: break-all;
  line-height: 1.2;
}
.hv-conf-multi {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 6px;
  justify-content: center;
  align-items: center;
  width: 100%;
}
.hv-conf-item {
  background: rgba(0, 0, 0, 0.24);
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 4px;
  padding: 2.5px 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.4px;
  color: #ffffff;
  line-height: 1.25;
  font-family: 'Plus Jakarta Sans', sans-serif;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.hv-conf-item .room-tag {
  background: rgba(255, 255, 255, 0.25);
  color: #ffffff;
  padding: 1px 4px;
  border-radius: 3px;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}
.hv-conf-dense .hv-conf-item {
  font-size: 10.5px;
  padding: 2px 6px;
  letter-spacing: 0.2px;
}
.hv-conf-col-date {
  background: #ffffff;
  border-right: 1px solid #e2e8f0;
}
.hv-conf-col-date:last-child {
  border-right: none;
}
.hv-conf-col-date .hv-conf-lbl {
  color: #475569;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 3px;
  white-space: nowrap;
}
.hv-conf-col-date .hv-conf-val {
  color: #0f172a;
  font-size: 15.5px;
  font-weight: 800;
  letter-spacing: 0.02em;
  font-family: 'Plus Jakarta Sans', sans-serif;
  line-height: 1.1;
  white-space: nowrap;
}

/* Fallback legacy classes for backward compatibility */
.hv-conf-num-box {
  background: linear-gradient(135deg, #0070c0 0%, #005a9c 100%);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px 14px;
}
.hv-conf-num {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: 2px;
  color: #ffffff;
  line-height: 1;
  font-family: 'Plus Jakarta Sans', sans-serif;
}
.hv-conf-dates-table {
  display: flex;
  flex-direction: column;
  background: #ffffff;
}
.hv-conf-date-row {
  display: flex;
  flex: 1;
  border-bottom: 1px solid #e2e8f0;
}
.hv-conf-date-row:last-child {
  border-bottom: none;
}
.hv-conf-date-label {
  min-width: 140px;
  padding: 9px 14px;
  font-weight: 700;
  border-right: 1px solid #e2e8f0;
  background: #f8fafc;
  font-size: 11px;
  color: #475569;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  white-space: nowrap;
}
.hv-conf-date-val {
  flex: 1;
  padding: 9px 14px;
  font-weight: 700;
  color: #0f172a;
  background: #ffffff;
  font-size: 13px;
  display: flex;
  align-items: center;
  white-space: nowrap;
}

/* Dashed Divider */
.hv-dashed-divider {
  border-top: 1px dashed #cbd5e1;
  margin: 12px 0;
}

/* Hotel Contact */
.hv-hotel-contact-head {
  text-align: center;
  font-size: 12.5px;
  font-weight: 600;
  color: #64748b;
  padding: 3px 0;
  letter-spacing: 0.02em;
}
.hv-hotel-contact-head b {
  color: #0f172a;
  font-size: 14.5px;
  font-weight: 800;
}
.hv-hotel-details {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin: 10px 0 12px 0;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-left: 3px solid #0070c0;
  border-radius: 6px;
  padding: 9px 14px;
}
.hv-detail-row {
  display: flex;
  font-size: 12.5px;
}
.hv-detail-label {
  width: 90px;
  font-weight: 700;
  color: #475569;
  flex: none;
}
.hv-detail-val {
  flex: 1;
  color: #0f172a;
  font-weight: 500;
}

/* Notice & Policy blocks */
.hv-notice-block {
  font-size: 11px;
  line-height: 1.48;
  color: #475569;
  margin: 8px 0;
  text-align: justify;
}
.hv-notice-block b {
  color: #0f172a;
  font-weight: 700;
}

.hv-policy-row {
  font-size: 12px;
  margin: 7px 0;
  color: #334155;
}
.hv-policy-row b {
  color: #0f172a;
  font-weight: 700;
}

.hv-city-tax-alert {
  text-align: center;
  font-size: 11px;
  font-weight: 700;
  color: #1e40af;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin: 9px 0;
  padding: 6px 14px;
}

/* Sign-off Row with Agent Sign on Left */
.hv-signoff-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin: 12px 0 6px 0;
  padding: 0 2px;
}
.hv-signoff-left {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}
.hv-happy {
  font-size: 11.5px;
  font-weight: 800;
  margin-bottom: 4px;
  color: #0070c0;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.hv-thanks {
  font-size: 11.5px;
  color: #64748b;
  margin-bottom: 3px;
}
.hv-agent-box {
  margin-top: 4px;
  padding-left: 10px;
  border-left: 2.5px solid #0070c0;
}
.hv-agent-name {
  font-size: 13.5px;
  font-weight: 800;
  color: #0f172a;
}
.hv-agent-phone {
  font-size: 11.5px;
  color: #475569;
  margin: 1px 0;
}
.hv-agent-phone b {
  color: #0070c0;
}
.hv-company-sign {
  font-size: 11.5px;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

/* Footer Section */
.hv-footer {
  text-align: center;
  font-size: 10.5px;
  color: #64748b;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid #e2e8f0;
  display: flex;
  flex-direction: column;
  gap: 3px;
  line-height: 1.4;
}
.hv-footer b {
  color: #1e293b;
  font-weight: 700;
}
.hv-footer-contact {
  font-size: 11.5px;
  font-weight: 700;
  color: #0f172a;
}
.hv-footer-contact span {
  color: #0070c0;
}
.hv-footer-digital a {
  color: #0070c0;
  text-decoration: none;
  font-weight: 600;
}
.hv-footer-office {
  color: #64748b;
  font-size: 10.5px;
}

/* Print Specific Rules (Perfect Symmetry, 100% Centered, Single-Page Fit) */
@media print {
  html, body {
    background: #ffffff !important;
    color: #000000 !important;
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    overflow: visible !important;
  }

  /* Hide app navigation, toolbars, and other non-printable overlays */
  .topbar,
  #topbar,
  #view,
  .toasts,
  .toolbar,
  .page-head,
  .hv-preview-toolbar,
  .modal-bg:not(.hv-preview-modal-bg) {
    display: none !important;
  }

  /* When a voucher is open for preview/printing, hide background itinerary preview */
  body.hv-preview-active #preview,
  body:has(.hv-preview-modal-bg) #preview {
    display: none !important;
  }

  /* When printing an itinerary, ensure preview container is displayed and visible */
  #preview:not(.hidden),
  .preview:not(.hidden) {
    display: block !important;
    position: static !important;
    background: #ffffff !important;
    overflow: visible !important;
  }

  /* Unhide the voucher modal wrapper and make it full document */
  .hv-preview-modal-bg {
    display: block !important;
    position: static !important;
    background: #ffffff !important;
    padding: 0 !important;
    margin: 0 !important;
    width: 100% !important;
    height: auto !important;
    overflow: visible !important;
    inset: auto !important;
    z-index: 1 !important;
  }

  .hv-preview-container {
    display: block !important;
    background: #ffffff !important;
    box-shadow: none !important;
    border: none !important;
    border-radius: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  .hv-preview-scroll-area {
    display: block !important;
    background: #ffffff !important;
    padding: 0 !important;
    margin: 0 !important;
    overflow: visible !important;
    height: auto !important;
    max-height: none !important;
    width: 100% !important;
  }

  .hv-preview-page {
    display: block !important;
    margin: 0 auto !important;
    padding: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    background: #ffffff !important;
  }

  .hv-sheet {
    display: block !important;
    box-shadow: none !important;
    border: none !important;
    margin: 0 auto !important;
    padding: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    background: #ffffff !important;
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
    page-break-after: avoid !important;
    page-break-inside: avoid !important;
    break-inside: avoid !important;
  }

  /* Force background colors and images in all elements */
  * {
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }

  .hv-hotel-hero-banner {
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }
  .hv-hero-overlay {
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }
  .hv-conf-bar {
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
    border: 1.5px solid #0070c0 !important;
  }
  .hv-conf-col-num,
  .hv-conf-num-box {
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
    background: #0070c0 !important;
    color: #ffffff !important;
  }
  .hv-conf-col-num .hv-conf-lbl,
  .hv-conf-col-num .hv-conf-val,
  .hv-conf-num {
    color: #ffffff !important;
  }
  .hv-conf-col-date {
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
    background: #ffffff !important;
  }
  .hv-city-tax-alert {
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
    background: #eff6ff !important;
  }
}
