/* Reservations Admin - CSS */
/* Extends booking-links.css base styles */
@import url('../booking-links/booking-links.css');

/* ===== SYNC HEALTH BANNER ===== */
.sync-health-banner {
  display: none;
}
.sync-health-warning {
  display: block;
  background: #fef3c7;
  border: 1px solid #f59e0b;
  border-radius: 8px;
  padding: 10px 16px;
  margin-bottom: 12px;
  font-size: 13px;
  font-weight: 500;
  color: #92400e;
}
.sync-health-detail {
  margin-top: 6px;
  font-weight: 400;
  font-size: 12px;
  color: #78350f;
}
.sync-health-detail code {
  background: rgba(0,0,0,0.06);
  padding: 2px 5px;
  border-radius: 3px;
  font-size: 11px;
}

/* ===== PAGE HEADER ===== */
.page-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.page-heading {
  font-size: 27px;
  font-weight: 800;
  color: #002e56;
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", sans-serif;
  letter-spacing: -0.01em;
}

.btn-create {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 8px;
  background: #2b6cb0;
  color: #ffffff;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background 0.15s;
  white-space: nowrap;
}

.btn-create:hover {
  background: #2563eb;
}

/* ===== DASHBOARD STRIP (date nav + occupancy) ===== */
.dashboard-strip {
  display: flex;
  align-items: stretch;
  gap: 20px;
  margin-bottom: 16px;
  padding: 16px 0;
}

.date-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.date-arrow {
  background: none;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  cursor: pointer;
  padding: 6px;
  color: #64748b;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
}

.date-arrow:hover {
  background: #f1f5f9;
  color: #1e293b;
  border-color: #cbd5e1;
}

.date-display {
  text-align: center;
  min-width: 100px;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 8px;
  transition: background 0.15s;
}

.date-display:hover {
  background: #f1f5f9;
}

.date-display.is-today .date-number {
  color: #2b6cb0;
}

.date-day-name {
  font-size: 12px;
  font-weight: 500;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.date-number {
  font-size: 36px;
  font-weight: 800;
  color: #1e293b;
  line-height: 1.1;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", sans-serif;
}

.date-month {
  font-size: 11px;
  font-weight: 600;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* Occupancy bar */
.occupancy-bar {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
}

.occupancy-header {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.occupancy-pct {
  font-size: 16px;
  font-weight: 700;
  color: #1e293b;
}

.occupancy-track {
  height: 10px;
  background: #e2e8f0;
  border-radius: 99px;
  overflow: hidden;
  display: flex;
}

.occupancy-fill {
  height: 100%;
  transition: width 0.35s ease;
}

.occupancy-fill-transient {
  background: #3b82f6;
}

.occupancy-fill-group {
  background: #8b5cf6;
}

.occupancy-fill-block {
  background: #f59e0b;
}

#occ-fill {
  display: none;
}

.occupancy-mix {
  margin-top: 6px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  font-size: 11px;
  color: #64748b;
}

.occ-mix-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.occ-dot {
  width: 8px;
  height: 8px;
  border-radius: 99px;
  display: inline-block;
}

.occ-dot-transient { background: #3b82f6; }
.occ-dot-group { background: #8b5cf6; }
.occ-dot-block { background: #f59e0b; }

.occ-mix-item strong {
  color: #334155;
  font-weight: 700;
}

.occupancy-stats {
  display: flex;
  gap: 16px;
  font-size: 13px;
  color: #64748b;
}

.occ-stat strong {
  font-weight: 700;
  color: #1e293b;
}

.occ-avail strong {
  color: #38a169;
}

/* ===== TABS ===== */
.res-tabs {
  display: flex;
  gap: 0;
  border-bottom: 1px solid #e2e8f0;
  margin-bottom: 4px;
}

.res-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
  border: none;
  background: none;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  color: #64748b;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: color 0.15s, border-color 0.15s;
  font-family: inherit;
}

.res-tab:hover {
  color: #1e293b;
}

.res-tab.active {
  color: #2b6cb0;
  border-bottom-color: #2b6cb0;
  font-weight: 600;
}

/* Tab badges */
.tab-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  padding: 2px 7px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 700;
  background: #1e293b;
  color: #ffffff;
  line-height: 1.3;
}

.tab-badge:empty {
  display: none;
}

.tab-badge.badge-green {
  background: #38a169;
}

.tab-badge-secondary {
  font-size: 12px;
  font-weight: 500;
  color: #94a3b8;
}

.tab-badge-secondary:empty {
  display: none;
}

.tab-label {
  white-space: nowrap;
}

/* ===== RESULT COUNT ===== */
.page-result-count {
  font-size: 13px;
  color: #64748b;
  margin-bottom: 8px;
  font-weight: 500;
  padding: 0 2px;
}

/* ===== TABLE ===== */
.table-wrap {
  overflow-x: auto;
  background: var(--color-bg-card);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.res-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.res-table th {
  text-align: left;
  font-weight: 600;
  color: #64748b;
  padding: 10px 12px;
  border-bottom: 1px solid #e2e8f0;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.res-table td {
  padding: 10px 12px;
  border-bottom: 1px solid #f1f5f9;
  color: #334155;
  vertical-align: middle;
}

.res-table tbody tr {
  cursor: pointer;
  transition: background 0.1s ease;
}

.res-table tbody tr:hover {
  background: #f0f7ff;
}

.loading-cell {
  text-align: center;
  color: #94a3b8;
  padding: 24px !important;
}

/* ===== COLUMN SIZING ===== */
.col-guest { min-width: 180px; }
.col-confirm { white-space: nowrap; min-width: 120px; }
.col-room-num { white-space: nowrap; min-width: 80px; }
.col-guests { white-space: nowrap; }
.col-nights { white-space: nowrap; }
.col-stay { white-space: nowrap; min-width: 160px; }
.col-room-type { min-width: 120px; }
.col-rewards { min-width: 80px; }

/* ===== GUEST CELL (source icon + name) ===== */
.guest-cell {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.guest-source-icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.source-icon {
  width: 24px;
  height: 24px;
  border-radius: 4px;
  object-fit: contain;
}

.source-icon-default {
  font-size: 20px;
  color: #94a3b8;
}

.guest-name {
  line-height: 1.3;
  white-space: nowrap;
}

.guest-lastname {
  font-weight: 600;
  color: #002e56;
  font-size: 16px;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", sans-serif;
}

.guest-firstname {
  font-size: 12px;
  color: #64748b;
  margin-left: 3px;
}

.guest-source-name {
  font-size: 9px;
  color: #b0b0b0;
  line-height: 1.3;
  margin-top: 1px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

/* Compact booking flags shown on outer reservations rows */
.row-flag-chip-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 5px;
}

.row-flag-chip {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  max-width: 122px;
  padding: 1px 6px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 600;
  line-height: 1.35;
  white-space: nowrap;
}

.row-flag-chip-icon {
  font-size: 11px !important;
  flex-shrink: 0;
}

.row-flag-chip-label {
  overflow: hidden;
  text-overflow: ellipsis;
}

.row-flag-chip-more {
  background: #f1f5f9;
  color: #475569;
  border: 1px solid #e2e8f0;
}

/* ===== CONFIRMATION COLUMN ===== */
.confirm-id {
  font-size: 14px;
  font-weight: 600;
  color: #007ae7;
  line-height: 1.3;
}

.confirm-date {
  font-size: 8px;
  font-weight: 400;
  color: #8e8e8e;
  line-height: 1.4;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", sans-serif;
}

/* ===== EVENT LABEL (Bookings tab) ===== */
.event-label {
  font-size: 9px;
  font-weight: 600;
  color: #2b6cb0;
  margin-top: 1px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

/* ===== ROOM NUMBER ===== */
.col-room-num .room-num,
.col-room-num .room-num.unassigned {
  display: flex;
}
.col-room-num .room-num + .room-num {
  margin-top: 4px;
}
.room-num {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 600;
  color: #002e56;
  white-space: nowrap;
}

.room-num.unassigned {
  color: #94a3b8;
  font-style: italic;
  font-weight: 400;
}

.room-icon {
  font-size: 14px !important;
  color: #002e56;
}

.room-num.unassigned .room-icon {
  color: #94a3b8;
}

/* ===== ICON STAT (guests / nights) ===== */
.icon-stat {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  font-weight: 500;
  color: #475569;
  white-space: nowrap;
}

.icon-stat .material-icons {
  font-size: 16px;
  color: #94a3b8;
}

/* ===== STAY COLUMN ===== */
.stay-range {
  font-size: 13px;
  color: #334155;
  line-height: 1.3;
  margin-bottom: 3px;
}

/* ===== STATUS BADGES ===== */
.status-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 9999px;
  text-transform: capitalize;
}

.status-confirmed { background: #dcfce7; color: #166534; }
.status-not_confirmed { background: #fef9c3; color: #854d0e; }
.status-checked_in { background: #dbeafe; color: #1e40af; }
.status-in_house { background: #dbeafe; color: #1e40af; }
.status-checked_out { background: #f1f5f9; color: #475569; }
.status-canceled, .status-cancelled { background: #fee2e2; color: #991b1b; }
.status-no_show { background: #fef3c7; color: #92400e; }

/* ===== ROOM TYPE COLUMN ===== */
.room-type-entry + .room-type-entry {
  margin-top: 4px;
  padding-top: 4px;
  border-top: 1px solid #f1f5f9;
}
.res-table .room-type-name {
  font-size: 13px;
  font-weight: 500;
  color: #334155;
  line-height: 1.3;
}

.room-type-code {
  font-size: 11px;
  font-weight: 500;
  color: #94a3b8;
  font-family: "SF Mono", "Menlo", "Monaco", "Consolas", monospace;
  line-height: 1.3;
}

/* ===== REWARDS COLUMN ===== */
.rewards-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 9999px;
  background: #fef3c7;
  color: #92400e;
}

.rewards-id {
  display: block;
  font-size: 11px;
  color: #94a3b8;
  margin-top: 2px;
}

/* ===== PAGINATION ===== */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 16px 0;
}

.pagination-info {
  font-size: 13px;
  color: #64748b;
}

/* ===== DETAIL CONTENT (rendered inside side panel) ===== */
.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.detail-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.detail-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #94a3b8;
}

.detail-value {
  font-size: 14px;
  color: #1e293b;
  font-weight: 500;
}

.contact-shell {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.contact-subsection-label {
  font-size: 13px;
  color: #334155;
  font-weight: 700;
  margin-bottom: 6px;
}

.contact-main-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.9fr;
  gap: 18px;
}

.contact-left-column {
  border-right: 1px solid #e5e7eb;
  padding-right: 14px;
}

.contact-right-column {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.contact-section-kicker {
  font-size: 13px;
  color: #334155;
  font-weight: 600;
  margin-bottom: 2px;
}

.contact-guest-name {
  font-size: 36px;
  line-height: 1.02;
  color: #0f172a;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 14px;
}

.contact-left-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.contact-address-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 0.8fr;
  gap: 10px;
}

.contact-span-2 {
  grid-column: span 2;
}

.contact-span-3 {
  grid-column: span 3;
}

.contact-right-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.contact-identifiers-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  border-top: 1px solid #e5e7eb;
  padding-top: 12px;
}

.contact-email-wide-row {
  display: grid;
  grid-template-columns: 1.2fr 0.9fr;
  gap: 12px;
  align-items: stretch;
}

.contact-email-card {
  border-radius: 8px;
  border: 1px solid #d1d5db;
  background: #f8fafc;
  padding: 14px;
  color: #0f172a;
}

.contact-email-card--ok {
  border-color: #cbd5e1;
  background: #f8fafc;
}

.contact-email-card--warn {
  border-color: #f59e0b;
  background: #fffbeb;
}

.contact-email-card--error {
  border-color: #f87171;
  background: #fef2f2;
}

.contact-email-card-header {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: #0f3b67;
  margin-bottom: 6px;
}

.contact-email-current {
  font-size: 16px;
  line-height: 1.15;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: 0;
}

.contact-email-current--invalid {
  color: #7f1d1d;
}

.contact-email-status {
  font-size: 11px;
  color: #334155;
  margin-bottom: 10px;
}

.contact-email-row {
  display: flex;
  gap: 8px;
}

.contact-input {
  width: 100%;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  padding: 8px 10px;
  font-size: 13px;
  color: #0f172a;
  background: #fff;
}

.contact-input:focus {
  outline: none;
  border-color: #0ea5e9;
  box-shadow: 0 0 0 2px rgba(14, 165, 233, 0.15);
}

.contact-input optgroup {
  font-size: 11px;
  font-weight: 600;
  color: #64748b;
}

.contact-action-btn {
  white-space: nowrap;
}

.contact-details-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: 1fr 1fr;
}

.contact-enroll-cta {
  border: 1px solid #0f2f57;
  border-radius: 8px;
  background: #073b6c;
  color: #fff;
  padding: 12px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 10px;
  text-align: center;
}

.contact-enroll-title {
  font-size: 24px;
  line-height: 1.05;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.contact-enroll-subtitle {
  font-size: 11px;
  opacity: 0.95;
  max-width: 260px;
}

.contact-enroll-btn {
  background: #06b6d4;
  border-color: #06b6d4;
  color: #fff;
  min-width: 132px;
  height: fit-content;
  font-size: 12px;
  padding: 8px 12px;
}

.contact-save-row {
  display: flex;
  justify-content: flex-end;
  margin-top: 4px;
}

.contact-save-btn {
  min-width: 136px;
}

.contact-enroll-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed !important;
  pointer-events: none;
  background: #0e7490 !important;
  border-color: #0e7490 !important;
  color: rgba(255, 255, 255, 0.78) !important;
}

.contact-enroll-btn:disabled:hover,
.contact-enroll-btn:disabled:focus,
.contact-enroll-btn:disabled:active {
  cursor: not-allowed !important;
  pointer-events: none;
  background: #0e7490 !important;
  border-color: #0e7490 !important;
  color: rgba(255, 255, 255, 0.78) !important;
  box-shadow: none !important;
  transform: none !important;
}

.contact-member-card {
  border: 1px solid #1d4ed8;
  border-radius: 10px;
  background: #1e3a8a;
  color: #fff;
  padding: 14px;
}

.contact-member-title {
  font-size: 44px;
  line-height: 1;
  font-weight: 700;
}

.contact-member-name {
  margin-top: 8px;
  font-size: 22px;
  font-weight: 600;
}

.contact-member-email {
  margin-top: 4px;
  font-size: 16px;
  color: #22d3ee;
}

.contact-member-meta {
  margin-top: 8px;
  font-size: 14px;
  opacity: 0.95;
}

/* Room cards in detail */
.room-card {
  background: #f8fafc;
  border-radius: 8px;
  padding: 12px 16px;
  margin-bottom: 8px;
  border: 1px solid #e2e8f0;
}

.room-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.room-card-header .room-type-name {
  font-weight: 600;
  color: #1e293b;
}

.room-rate {
  font-weight: 600;
  color: #2b6cb0;
}

.room-details {
  font-size: 12px;
  color: #64748b;
}

/* Room change history (orphaned entries) */
.room-history-section {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px dashed #cbd5e1;
}

.room-history-label {
  font-size: 12px;
  font-weight: 600;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

.room-card-orphaned {
  background: #fefce8;
  border-color: #fde68a;
  opacity: 0.85;
}

.room-card-orphaned .room-card-header .room-type-name {
  color: #92400e;
}

.room-card-orphaned .room-rate {
  color: #92400e;
}

/* Guest list in detail */
.guest-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid #f1f5f9;
}

.guest-row:last-child {
  border-bottom: none;
}

.guest-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 600;
  color: #64748b;
  flex-shrink: 0;
}

.guest-info-name { font-weight: 600; color: #1e293b; font-size: 14px; }
.guest-info-email { font-size: 12px; color: #64748b; }
.guest-badge {
  font-size: 10px;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 4px;
  background: #dbeafe;
  color: #1e40af;
  margin-left: auto;
  white-space: nowrap;
}

/* Payment summary in detail */
.payment-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 16px;
}

.payment-stat {
  text-align: center;
  padding: 12px;
  border-radius: 8px;
  background: #f8fafc;
}

.payment-stat-value {
  font-size: 18px;
  font-weight: 700;
  color: #1e293b;
}

.payment-stat-label {
  font-size: 11px;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.payment-stat.paid .payment-stat-value { color: #16a34a; }
.payment-stat.due .payment-stat-value { color: #dc2626; }

/* Payment history rows in detail */
.payment-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid #f1f5f9;
}

.payment-row:last-child { border-bottom: none; }

.payment-row-left {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.payment-row-type {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #334155;
  font-weight: 700;
}

.payment-row-type-refund {
  color: #dc2626;
}

.payment-row-refund {
  background: #fff5f5;
  border-left: 3px solid #e74c3c;
  padding-left: 9px;
  margin-left: -12px;
}

.payment-date {
  font-size: 12px;
  color: #334155;
  border-left: 1px solid #e2e8f0;
  padding-left: 8px;
  margin-left: 2px;
}

.payment-card { font-size: 12px; color: #64748b; }
.payment-payer { font-size: 12px; color: #0f172a; font-weight: 500; }
.payment-amount { font-weight: 600; font-size: 14px; }
.payment-amount.refund { color: #dc2626; }
.payment-refund-badge {
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 4px;
  background: #fee2e2;
  color: #991b1b;
  margin-left: 6px;
}

/* ===== RESERVATION SIDE PANEL HEADER THEME ===== */
#side-panel-container.res-detail-panel-theme .panel-header {
  background: linear-gradient(90deg, #0b3b67 0%, #1198ef 100%);
  border-bottom: none;
}

#side-panel-container.res-detail-panel-theme .panel-title-row {
  padding: 22px 22px 10px;
}

#side-panel-container.res-detail-panel-theme .panel-title {
  color: #ffffff;
  font-size: 44px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.08;
}

#side-panel-container.res-detail-panel-theme .panel-subtitle {
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.95);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "SF Pro Display", sans-serif;
  font-size: 14px;
}

#side-panel-container.res-detail-panel-theme .panel-actions-btn,
#side-panel-container.res-detail-panel-theme .panel-close-btn {
  color: rgba(255, 255, 255, 0.95);
  border-color: rgba(255, 255, 255, 0.35);
}

#side-panel-container.res-detail-panel-theme .panel-actions-btn:hover,
#side-panel-container.res-detail-panel-theme .panel-close-btn:hover {
  background: rgba(255, 255, 255, 0.16);
}

#side-panel-container.res-detail-panel-theme .panel-tabs {
  padding: 0 22px 0;
  margin-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.25);
}

#side-panel-container.res-detail-panel-theme .panel-tab {
  color: rgba(255, 255, 255, 0.96);
  border-bottom-color: transparent;
  font-weight: 600;
  padding: 11px 15px;
}

#side-panel-container.res-detail-panel-theme .panel-tab.active {
  color: #0b3152;
  background: rgba(255, 255, 255, 0.92);
  border-radius: 3px 3px 0 0;
  border-bottom-color: transparent;
}

#side-panel-container.res-detail-panel-theme .panel-body {
  padding-top: 16px;
}

.res-panel-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.res-panel-meta-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.res-panel-source {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(2, 18, 38, 0.24);
  color: #e2f3ff;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.res-panel-source .material-icons {
  font-size: 12px;
}

.res-panel-conf {
  font-size: 23px;
  line-height: 1;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #ffffff;
}

#side-panel-container.res-detail-panel-theme .panel-subtitle .status-badge {
  background: #dcfce7;
  color: #14532d;
  font-weight: 700;
}

/* ===== EMPTY STATE ===== */
.empty-state {
  text-align: center;
  padding: 48px 24px;
  color: #94a3b8;
  font-size: 14px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 980px) {
  .page-header-row {
    flex-wrap: wrap;
    gap: 8px;
  }

  .dashboard-strip {
    flex-direction: column;
    gap: 12px;
  }

  .date-nav {
    justify-content: center;
  }

  .res-tabs {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .res-tab {
    flex-shrink: 0;
    padding: 10px 12px;
    font-size: 13px;
  }

  .table-wrap {
    margin: 0 -16px;
    border-radius: 0;
  }
}

@media (max-width: 768px) {
  .detail-grid { grid-template-columns: 1fr; }
  .contact-email-wide-row { grid-template-columns: 1fr; }
  .contact-main-grid { grid-template-columns: 1fr; }
  .contact-left-column { border-right: none; padding-right: 0; border-bottom: 1px solid #e5e7eb; padding-bottom: 12px; }
  .contact-left-grid { grid-template-columns: 1fr; }
  .contact-address-grid { grid-template-columns: 1fr; }
  .contact-span-2 { grid-column: auto; }
  .contact-span-3 { grid-column: auto; }
  .contact-right-grid { grid-template-columns: 1fr; }
  .contact-identifiers-grid { grid-template-columns: 1fr 1fr; }
  .contact-details-grid { grid-template-columns: 1fr; }
  .contact-email-row { flex-direction: column; }
  .contact-enroll-cta { flex-direction: column; align-items: flex-start; }
  .payment-summary-grid { grid-template-columns: repeat(2, 1fr); }

  .col-rewards,
  .col-room-type {
    display: none;
  }

  .res-table th:nth-child(7),
  .res-table td:nth-child(7),
  .res-table th:nth-child(8),
  .res-table td:nth-child(8) {
    display: none;
  }

  .guest-cell {
    gap: 6px;
  }

  .guest-source-icon {
    width: 22px;
    height: 22px;
  }

  .source-icon {
    width: 20px;
    height: 20px;
  }
}
