/* Custom overrides for the frontend theme.
   Keep vendor CSS untouched; add page-specific tweaks here. */

 /* payment page custom css  */
 .payment-page {
    background: #f5f6f8;
  }

  .payment-card {
    border: 1px solid #e6e8ec;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(16, 24, 40, 0.06);
  }

  .currency-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: #ffe6ec;
    color: #d6336c;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 16px;
  }

  .currency-select {
    min-width: 180px;
  }

  .payment-tabs .nav-link {
    text-align: left;
    border-radius: 10px;
    background: #f3f4f6;
    color: #1f2937;
    padding: 12px 14px;
    border: 1px solid transparent;
    margin-bottom: 10px;
  }

  .payment-tabs .nav-link.active {
    background: #ffffff;
    border-color: #2f6fed;
    color: #2f6fed;
    box-shadow: 0 0 0 1px #2f6fed inset;
  }

  .method-icon {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: #e8eefc;
    color: #2f6fed;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    margin-right: 10px;
    font-size: 12px;
  }

  .card-logos {
    max-height: 22px;
  }

  .form-label small {
    color: #0c0d0d;
    font-weight: 600;
  }
  /* payment confirmation page code here */
  .aircrs-card {
    border-radius: 16px;
    border: 1px solid #e6e8ec;
    box-shadow: 0 10px 24px rgba(16, 24, 40, 0.06);
  }

  /* .aircrs-alert {
    border-radius: 16px;
    border: 1px solid #f4c27a;
    background: #fff7ed;
  } */
  .aircrs-alert {
    border-radius: 16px;
    border: 1px solid #e83709;
    background: #dc35453b;
  }
  .alert-heading1 {
    color: #100d0d !important;
    font-size: 1.25rem;
  }
  .alert-heading2 {
    color: #0902ce !important;
    font-size: 1.5rem;
  }

  .aircrs-icon-placeholder {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: #ffe8cc;
    color: #b45309;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
  }

  .aircrs-icon-sm {
    width: 32px;
    height: 32px;
    border-radius: 9px;
  }

  .aircrs-ticket-pill {
    background: #eef2ff;
    color: #1d4ed8;
    border: 1px solid #c7d2fe;
    padding: 0.45rem 0.9rem;
    font-weight: 600;
  }

  .aircrs-helper-note {
    max-width: 260px;
  }

  .aircrs-small-muted {
    font-size: 0.85rem;
    color: #141107;
  }

  .aircrs-segment + .aircrs-segment {
    border-top: 1px dashed #e5e7eb;
    margin-top: 1rem;
    padding-top: 1rem;
  }

  .aircrs-status-pending {
    background: #fff3cd;
    color: #b45309;
    border: 1px solid #f4c27a;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-size: 0.7rem;
  }

  .aircrs-label {
    font-size: 0.75rem;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-weight: 600;
    margin-bottom: 0.15rem;
  }

  .aircrs-field {
    margin-bottom: 0.85rem;
  }

  .aircrs-policies {
    max-height: 260px;
    overflow-y: auto;
  }
  .highlighted-text {
    font-weight: 600;
    color: #0d6efd !important;
  }

  .frontend-body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
  }

  .frontend-body main {
    flex: 1 0 auto;
  }

  .frontend-body footer {
    margin-top: auto;
  }
/* buttons  */ 
.btn-solid {
    border: 1px solid #36d426 !important;
    background-color: #4dd31a !important;
    color: #fff;
}

/* Staff-facing reservations theme */
.staff-ui {
  --staff-bg: #eef2f5;
  --staff-surface: #ffffff;
  --staff-ink: #0f172a;
  --staff-muted: #5b6475;
  --staff-border: #d6dee8;
  --staff-accent: #0f766e;
  --staff-accent-strong: #115e59;
  --staff-accent-alt: #f59e0b;
  --staff-soft: rgba(15, 118, 110, 0.12);
  --staff-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
  --theme-deafult: var(--staff-accent);
  --theme-secondary: var(--staff-accent-alt);
  background: radial-gradient(circle at 12% 8%, rgba(15, 118, 110, 0.08), transparent 35%),
              radial-gradient(circle at 88% 12%, rgba(245, 158, 11, 0.08), transparent 40%),
              var(--staff-bg);
  color: var(--staff-ink);
  font-family: "IBM Plex Sans", "Helvetica Neue", Arial, sans-serif;
}

.staff-ui h1,
.staff-ui h2,
.staff-ui h3,
.staff-ui h4,
.staff-ui h5,
.staff-ui h6 {
  font-family: "Space Grotesk", "IBM Plex Sans", Arial, sans-serif;
  letter-spacing: -0.01em;
}

.staff-ui a {
  color: var(--staff-accent);
}

.staff-ui a:hover {
  color: var(--staff-accent-strong);
}

.staff-ui main {
  animation: staff-reveal 320ms ease-out;
}

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

@media (prefers-reduced-motion: reduce) {
  .staff-ui main {
    animation: none;
  }
}

.staff-ui .staff-navbar {
  background: linear-gradient(115deg, #0f172a, #111827);
  border-bottom: 1px solid rgba(148, 163, 184, 0.25);
}

.staff-ui .staff-navbar .navbar-brand,
.staff-ui .staff-navbar .nav-link {
  color: #e2e8f0;
}

.staff-ui .staff-navbar .nav-link.active,
.staff-ui .staff-navbar .nav-link:hover {
  color: #ffffff;
}

.staff-ui .staff-navbar .form-select,
.staff-ui .staff-navbar .btn {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(148, 163, 184, 0.35);
  color: #e2e8f0;
}

.staff-ui .staff-airline-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #f8fafc;
  background: rgba(15, 118, 110, 0.35);
  border: 1px solid rgba(148, 163, 184, 0.35);
}

.staff-ui .staff-page-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.staff-ui .staff-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.staff-ui .staff-summary-card {
  background: rgba(15, 23, 42, 0.06);
  border: 1px solid var(--staff-border);
  border-radius: 14px;
  padding: 0.75rem 1rem;
  min-width: 140px;
}

.staff-ui .staff-summary-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--staff-muted);
}

.staff-ui .staff-summary-value {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--staff-ink);
}

.staff-ui .staff-filter-card {
  background: rgba(255, 255, 255, 0.9);
}

.staff-ui .staff-table thead th {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--staff-muted);
  border-bottom: 1px solid var(--staff-border);
}

.staff-ui .staff-table tbody tr {
  border-color: var(--staff-border);
}

.staff-ui .staff-table tbody tr:hover {
  background: rgba(15, 118, 110, 0.04);
}

.staff-ui .status-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border: 1px solid transparent;
}

.staff-ui .status-pill.status-on_hold {
  background: rgba(245, 158, 11, 0.16);
  color: #b45309;
  border-color: rgba(245, 158, 11, 0.35);
}

.staff-ui .status-pill.status-confirmed {
  background: rgba(16, 185, 129, 0.16);
  color: #047857;
  border-color: rgba(16, 185, 129, 0.35);
}

.staff-ui .status-pill.status-ticketed {
  background: rgba(59, 130, 246, 0.14);
  color: #1d4ed8;
  border-color: rgba(59, 130, 246, 0.32);
}

.staff-ui .status-pill.status-cancelled {
  background: rgba(239, 68, 68, 0.16);
  color: #b91c1c;
  border-color: rgba(239, 68, 68, 0.32);
}

.staff-ui .status-pill.status-draft {
  background: rgba(148, 163, 184, 0.2);
  color: #475569;
  border-color: rgba(148, 163, 184, 0.4);
}

.staff-ui .staff-info-card {
  border: 1px solid var(--staff-border);
  border-radius: 12px;
  padding: 0.75rem 1rem;
  background: #f8fafc;
}

.staff-ui .staff-info-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--staff-muted);
}

.staff-ui .staff-info-value {
  font-weight: 600;
  color: var(--staff-ink);
}

.staff-ui .staff-list-item {
  padding: 0.5rem 0;
  border-bottom: 1px dashed var(--staff-border);
}

.staff-ui .staff-list-item:last-child {
  border-bottom: none;
}

/* Boarding pass document */
.staff-ui .bp-controls {
  margin-bottom: 1rem;
}

.staff-ui .bp-control-card {
  border: 1px solid var(--staff-border);
  border-radius: 14px;
  background: #ffffff;
  padding: 1rem 1.25rem;
  box-shadow: var(--staff-shadow);
}

.staff-ui .bp-card {
  border: 1px solid var(--staff-border);
  border-radius: 18px;
  overflow: hidden;
  background: #ffffff;
  box-shadow: var(--staff-shadow);
}

.staff-ui .bp-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  padding: 1rem 1.5rem;
  background: linear-gradient(120deg, #0f172a, #1f2937);
  color: #f8fafc;
}

.staff-ui .bp-airline {
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.staff-ui .bp-subtitle {
  font-size: 0.8rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(226, 232, 240, 0.7);
}

.staff-ui .bp-head-right .bp-label {
  color: rgba(226, 232, 240, 0.7);
}

.staff-ui .bp-body {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 0.8fr);
  gap: 1.5rem;
  padding: 1.5rem;
}

.staff-ui .bp-main {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.staff-ui .bp-route {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.staff-ui .bp-code {
  font-size: 2.4rem;
  font-weight: 700;
  color: #0f172a;
}

.staff-ui .bp-route-line {
  flex: 1;
  height: 2px;
  background: linear-gradient(90deg, rgba(15, 118, 110, 0.2), rgba(245, 158, 11, 0.4));
  position: relative;
}

.staff-ui .bp-route-dot {
  position: absolute;
  top: -4px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #0f766e;
}

.staff-ui .bp-route-dot:last-child {
  right: -5px;
  background: #f59e0b;
}

.staff-ui .bp-route-dot:first-child {
  left: -5px;
}

.staff-ui .bp-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.75rem 1.5rem;
}

.staff-ui .bp-item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.staff-ui .bp-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--staff-muted);
}

.staff-ui .bp-value {
  font-weight: 600;
  color: var(--staff-ink);
}

.staff-ui .bp-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.staff-ui .bp-tag {
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  background: rgba(15, 118, 110, 0.12);
  color: #0f766e;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.staff-ui .bp-tag.muted {
  background: rgba(148, 163, 184, 0.2);
  color: #475569;
}

.staff-ui .bp-stub {
  border-left: 2px dashed #cbd5e1;
  padding-left: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.staff-ui .bp-stub-title {
  font-size: 0.75rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: #94a3b8;
}

.staff-ui .bp-stub-code {
  font-size: 1.6rem;
  font-weight: 700;
  color: #0f172a;
}

.staff-ui .bp-stub-row {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
}

.staff-ui .bp-barcode {
  height: 48px;
  background: repeating-linear-gradient(
    90deg,
    #0f172a,
    #0f172a 3px,
    transparent 3px,
    transparent 6px
  );
  border-radius: 6px;
}

.staff-ui .bp-stub-foot {
  font-size: 0.75rem;
  color: #475569;
}

@media (max-width: 991px) {
  .staff-ui .bp-body {
    grid-template-columns: 1fr;
  }

  .staff-ui .bp-stub {
    border-left: none;
    border-top: 2px dashed #cbd5e1;
    padding-left: 0;
    padding-top: 1rem;
  }
}

@media print {
  header,
  footer,
  .bp-print-hide {
    display: none !important;
  }

  body {
    background: #ffffff !important;
  }

  .bp-card {
    box-shadow: none !important;
    border-color: #e2e8f0 !important;
  }
}

.staff-ui .staff-navbar .form-select option {
  color: #0f172a;
}

.staff-ui .staff-brand-text {
  display: inline-flex;
  flex-direction: column;
  line-height: 1.1;
}

.staff-ui .staff-brand-title {
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.staff-ui .staff-brand-subtitle {
  font-size: 0.72rem;
  color: rgba(226, 232, 240, 0.75);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.staff-ui .card,
.staff-ui .review_box,
.staff-ui .detail-wrap,
.staff-ui .flight-search,
.staff-ui .payment-card,
.staff-ui .aircrs-card,
.staff-ui .bg-white {
  background: var(--staff-surface) !important;
  border: 1px solid var(--staff-border) !important;
  border-radius: 14px;
  box-shadow: var(--staff-shadow);
}

.staff-ui .shadow-sm {
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08) !important;
}

.staff-ui .border {
  border-color: var(--staff-border) !important;
}

.staff-ui .detail-wrap {
  position: relative;
  padding-left: 1.6rem;
}

.staff-ui .detail-wrap::before {
  content: "";
  position: absolute;
  left: 0.6rem;
  top: 0.9rem;
  bottom: 0.9rem;
  width: 4px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--staff-accent), var(--staff-accent-alt));
}

.staff-ui .review_box .title-top h5,
.staff-ui .review_box .title-top h6 {
  color: var(--staff-ink);
}

.staff-ui .review_box {
  padding: 1.25rem;
  margin-bottom: 1.5rem;
}

.staff-ui .form-control,
.staff-ui .form-select {
  border-radius: 10px;
  border: 1px solid var(--staff-border);
  background: #f8fafc;
  color: var(--staff-ink);
  box-shadow: none;
}

.staff-ui .form-control:focus,
.staff-ui .form-select:focus {
  border-color: var(--staff-accent);
  box-shadow: 0 0 0 3px var(--staff-soft);
}

.staff-ui .form-label,
.staff-ui label {
  font-weight: 600;
  color: var(--staff-ink);
}

.staff-ui .btn-solid,
.staff-ui .btn-primary {
  border-color: var(--staff-accent) !important;
  background-color: var(--staff-accent) !important;
  color: #f8fafc !important;
}

.staff-ui .btn-solid:hover,
.staff-ui .btn-primary:hover {
  border-color: var(--staff-accent-strong) !important;
  background-color: var(--staff-accent-strong) !important;
}

.staff-ui .btn-outline-primary {
  border-color: var(--staff-accent) !important;
  color: var(--staff-accent) !important;
}

.staff-ui .btn-outline-primary:hover {
  background: var(--staff-accent) !important;
  color: #ffffff !important;
}

.staff-ui .btn-outline-secondary {
  border-color: var(--staff-border) !important;
  color: var(--staff-ink) !important;
}

.staff-ui .btn-outline-secondary:hover {
  background: #e2e8f0 !important;
  border-color: #cbd5e1 !important;
}

.staff-ui .badge {
  border-radius: 999px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.staff-ui .badge.bg-success {
  background: rgba(16, 185, 129, 0.15) !important;
  color: #047857 !important;
  border: 1px solid rgba(16, 185, 129, 0.35);
}

.staff-ui .badge.bg-warning {
  background: rgba(245, 158, 11, 0.15) !important;
  color: #b45309 !important;
  border: 1px solid rgba(245, 158, 11, 0.35);
}

.staff-ui .alert {
  border-radius: 12px;
  border: 1px solid var(--staff-border);
}

.staff-ui .aircrs-alert {
  background: rgba(239, 68, 68, 0.08);
  border-color: rgba(239, 68, 68, 0.4);
}

.staff-ui .cab-full,
.staff-ui .small-section,
.staff-ui .section-b-space,
.staff-ui .section-t-space {
  background: transparent;
}

.staff-ui footer .footer {
  background: transparent;
  border-top: 1px solid var(--staff-border);
  padding: 1.5rem 0;
  color: var(--staff-muted);
}

@media (max-width: 991px) {
  .staff-ui .staff-brand-subtitle {
    display: none;
  }
}
