/**
 * BS Online — page-specific polish (lists, search, inventory, supplier).
 */

/* Auth theme (login / OTP / register / forgot) — FlyBridge mockup */
.auth-body-login {
  --auth-teal: #0a5c54;
  --auth-teal-hover: #084841;
  --auth-teal-rgb: 10, 92, 84;
  --auth-bg-top: #0d7369;
  --auth-bg-bottom: #0a5c54;
  --auth-tab-idle: #e6f4f2;
  position: relative;
  isolation: isolate;
  overflow-x: hidden;
  background-color: #0a5c54;
  background-image:
    linear-gradient(180deg, rgba(10, 92, 84, 0.72) 0%, rgba(8, 72, 65, 0.88) 55%, rgba(4, 32, 28, 0.94) 100%),
    url("../img/auth-login-bg.png");
  background-size: cover, cover;
  background-position: center, center;
  background-repeat: no-repeat, no-repeat;
  background-attachment: fixed, fixed;
  background-blend-mode: normal, multiply;
}
.auth-decor {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.auth-decor-orb {
  position: absolute;
  top: -6rem;
  right: -4rem;
  width: min(28rem, 70vw);
  height: min(28rem, 70vw);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.10);
}
.auth-decor-plane {
  position: absolute;
  top: 7%;
  left: 4%;
  width: min(9.5rem, 28vw);
  opacity: 0.95;
}
.auth-decor-plane svg {
  display: block;
  width: 100%;
  height: auto;
}
.auth-shell-login {
  position: relative;
  z-index: 1;
  grid-template-columns: 1fr;
  grid-template-rows: 1fr auto;
  place-items: center;
  padding: var(--space-6) var(--space-4) 1.25rem;
  min-height: 100vh;
}
.auth-card-login {
  width: min(100%, 26.5rem);
  margin: 0;
  padding: 1.75rem 1.85rem 1.6rem;
  border-radius: 6px;
  border: 0;
  background: #fff;
  box-shadow:
    0 2px 8px rgba(15, 23, 42, 0.08),
    0 18px 48px rgba(15, 23, 42, 0.18);
}
.auth-card-login .auth-kicker {
  color: var(--auth-teal);
  margin-bottom: 0.4rem;
}
.auth-card-login h2,
.auth-card-login .auth-section-title {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--auth-teal);
  margin: 0 0 0.75rem;
  text-transform: uppercase;
}
.auth-card-login .auth-lead {
  margin: 0 0 1.15rem;
  font-size: 0.9rem;
  line-height: 1.55;
  color: #64748b;
}
.auth-card-login .auth-form {
  gap: 0.95rem;
}
.auth-card-login .field span {
  font-size: 0.875rem;
  color: #334155;
  font-weight: 500;
}
.auth-card-login .field input {
  min-height: 2.75rem;
  padding: 0 0.8rem;
  border-radius: 4px;
  border: 1px solid #d7dee7;
  background: #fff;
}
.auth-card-login .field input::placeholder {
  color: #94a3b8;
  opacity: 1;
}
.auth-card-login .field input:focus {
  background: #fff;
  border-color: var(--auth-teal);
  box-shadow: 0 0 0 3px rgba(var(--auth-teal-rgb), 0.16);
}
.auth-card-login .btn-primary.btn-block,
.auth-card-login .auth-submit {
  margin-top: 0.35rem;
  min-height: 2.85rem;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 4px;
  background: var(--auth-teal);
  border-color: var(--auth-teal);
  color: #fff;
}
.auth-card-login .btn-primary.btn-block:hover,
.auth-card-login .auth-submit:hover {
  background: var(--auth-teal-hover);
  border-color: var(--auth-teal-hover);
}
.auth-card-login .auth-logo-block {
  margin: 0 0 0.85rem;
  padding: 0;
}
.auth-card-login .auth-logo {
  display: flex;
  justify-content: center;
  margin: 0;
}
.auth-card-login .auth-login-title {
  margin: 0.85rem 0 0.95rem;
  text-align: left;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--auth-teal);
  text-transform: uppercase;
}
.auth-card-login .auth-logo-img {
  display: block;
  width: min(100%, 15.5rem);
  height: auto;
  max-height: 4.25rem;
  object-fit: contain;
}
.auth-portal-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem;
  margin: 0 0 0.15rem;
}
.auth-portal-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.4rem;
  padding: 0.45rem 0.5rem;
  border-radius: 4px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-decoration: none;
  text-align: center;
  background: var(--auth-tab-idle);
  color: var(--auth-teal);
}
.auth-portal-tab:hover {
  text-decoration: none;
  filter: brightness(0.98);
}
.auth-portal-tab.is-active {
  background: var(--auth-teal);
  color: #fff;
}
.auth-card-login .auth-switch {
  margin-top: 1rem;
  font-size: 0.8125rem;
  gap: 1rem;
}
.auth-card-login .auth-switch a {
  color: var(--auth-teal);
  font-weight: 600;
  text-decoration: none;
}
.auth-card-login .auth-switch a:hover {
  text-decoration: underline;
}
.auth-link-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-top: 0.95rem;
  font-size: 0.8125rem;
}
.auth-link-row a {
  color: var(--auth-teal);
  font-weight: 600;
  text-decoration: none;
}
.auth-link-row a:hover {
  text-decoration: underline;
}
.auth-card-login .auth-inline-form {
  margin-top: 0.65rem;
}
.auth-card-login .otp-input {
  font-size: 1.25rem;
  letter-spacing: 0.35em;
  text-align: center;
  font-variant-numeric: tabular-nums;
}
.auth-card-login .auth-portal-switch {
  margin-top: 0.85rem;
}
.auth-contact-line {
  margin: 1.15rem 0 0;
  padding-top: 0.95rem;
  border-top: 1px solid #e8eef3;
  text-align: center;
  font-size: 0.72rem;
  line-height: 1.5;
  color: #64748b;
  letter-spacing: 0.01em;
}
.auth-contact-line a {
  color: #64748b;
  text-decoration: none;
}
.auth-contact-line a:hover {
  color: var(--auth-teal);
  text-decoration: underline;
}
.auth-contact-sep {
  margin: 0 0.35rem;
  color: #94a3b8;
}
.auth-card-login .alert-stack {
  margin-bottom: 1rem;
}

/* Auth footer on blue theme */
.auth-body-login .auth-footer {
  position: relative;
  z-index: 1;
  grid-column: 1 / -1;
  width: 100%;
  background: none;
  border: 0;
  padding: 0.75rem var(--space-4) 1.1rem;
}
.auth-body-login .auth-footer-line {
  margin: 0;
  text-align: center;
  font-size: 0.78rem;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.92);
}
.auth-body-login .auth-footer-sep {
  margin: 0 0.45rem;
  color: rgba(255, 255, 255, 0.55);
}
.auth-body-login .auth-footer-copy,
.auth-body-login .auth-footer-item,
.auth-body-login a.auth-footer-item {
  color: rgba(255, 255, 255, 0.92);
  text-decoration: none;
}
.auth-body-login a.auth-footer-item:hover {
  color: #fff;
  text-decoration: underline;
}
@media (max-width: 40rem) {
  .auth-body-login .auth-footer-line {
    font-size: 0.7rem;
  }
  .auth-body-login .auth-footer-sep {
    margin: 0 0.3rem;
  }
  .auth-decor-plane {
    top: 3%;
    left: 2%;
    width: 5.5rem;
    opacity: 0.7;
  }
  .auth-portal-tab {
    font-size: 0.65rem;
    min-height: 2.2rem;
  }
}

/* Agent registration (same blue theme, wider card) */
.auth-shell-register {
  align-content: start;
  padding-top: var(--space-6);
  padding-bottom: var(--space-8);
}
.auth-card-register {
  width: min(100%, 46rem);
  margin: 0;
  padding: 2rem 2.25rem 2.15rem;
  border-radius: 6px;
  border: 0;
  background: #fff;
  box-shadow:
    0 2px 8px rgba(15, 23, 42, 0.08),
    0 18px 48px rgba(15, 23, 42, 0.18);
}
.auth-card-register .auth-kicker {
  color: var(--auth-teal);
  margin-bottom: 0.4rem;
}
.auth-card-register h2 {
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--auth-teal);
  margin: 0 0 0.35rem;
}
.auth-card-register .auth-lead {
  margin: 0 0 1.35rem;
  font-size: 0.9375rem;
  line-height: 1.55;
  color: #64748b;
}
.auth-card-register .reg-grid {
  gap: 1rem 1.35rem;
}
.auth-card-register .reg-form .field span {
  font-size: 0.875rem;
  color: #334155;
  font-weight: 500;
}
.auth-card-register .field input {
  min-height: 2.625rem;
  padding: 0 0.75rem;
  border-radius: 4px;
  border-color: #d7dee7;
  background: #fff;
  text-transform: uppercase;
  font-size: 0.8125rem;
  letter-spacing: 0.02em;
}
.auth-card-register .field input::placeholder {
  color: #94a3b8;
  opacity: 1;
}
.auth-card-register .field input[type="email"],
.auth-card-register .field input[type="password"] {
  text-transform: none;
  letter-spacing: normal;
  font-size: 0.875rem;
}
.auth-card-register .field input:focus {
  background: #fff;
  border-color: var(--auth-teal);
  box-shadow: 0 0 0 3px rgba(var(--auth-teal-rgb), 0.16);
}
.auth-card-register .reg-upload > span {
  font-size: 0.875rem;
  color: #334155;
  font-weight: 500;
}
.auth-card-register .reg-browse {
  min-height: 2.25rem;
  padding: 0 1.1rem;
  border-radius: 4px;
  background: var(--auth-teal);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
}
.auth-card-register .reg-browse:hover {
  filter: brightness(1.05);
}
.auth-card-register .reg-submit {
  margin-top: 1.1rem;
  min-height: 2.75rem;
  background: var(--auth-teal);
  border-color: var(--auth-teal);
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 700;
  font-size: 0.875rem;
}
.auth-card-register .reg-submit:hover {
  background: var(--auth-teal-hover);
  border-color: var(--auth-teal-hover);
  filter: none;
}
.auth-card-register .reg-login {
  justify-content: center;
  margin-top: 1.15rem;
  font-size: 0.875rem;
  color: #64748b;
}
.auth-card-register .reg-login a {
  color: var(--auth-teal);
  font-weight: 600;
}
.auth-card-register .req {
  color: #dc2626;
}
@media (max-width: 720px) {
  .auth-card-register {
    padding: 1.5rem 1.25rem 1.75rem;
  }
}

/* Agent profile — same grid as registration (read-only) */
.agent-profile-panel {
  max-width: 46rem;
  padding: 1.75rem 2rem 2rem;
}
.agent-profile-head {
  margin-bottom: 1.25rem;
}
.agent-profile-head .auth-kicker {
  color: var(--accent);
  margin-bottom: 0.35rem;
}
.agent-profile-head h2 {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 0.35rem;
  color: var(--text-primary);
}
.agent-profile-head .auth-lead {
  margin: 0;
  font-size: 0.9375rem;
}
.agent-profile-panel .reg-grid {
  gap: 1rem 1.35rem;
}
.agent-profile-panel .reg-form .field span {
  font-size: 0.875rem;
  color: var(--text-secondary);
  font-weight: 500;
}
.agent-profile-panel .reg-readonly {
  min-height: 2.625rem;
  padding: 0 0.75rem;
  border-radius: 6px;
  border: 1px solid #e2e8f0;
  background: #f1f5f9;
  color: var(--text-primary);
  font-size: 0.8125rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  cursor: default;
}
.agent-profile-panel .reg-readonly-email {
  text-transform: none;
  letter-spacing: normal;
  font-size: 0.875rem;
}
.agent-profile-panel .reg-status-field {
  display: flex;
  align-items: center;
  min-height: 2.625rem;
  padding: 0 0.1rem;
}
.agent-profile-panel .reg-upload > span:first-child {
  font-size: 0.875rem;
  color: var(--text-secondary);
  font-weight: 500;
}
.agent-profile-panel .reg-file-status {
  justify-self: end;
  min-height: 2.25rem;
  display: inline-flex;
  align-items: center;
  padding: 0 1rem;
  border-radius: 4px;
  background: #e2e8f0;
  color: #475569;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.agent-profile-panel .reg-file-status:empty::before {
  content: "Not uploaded";
}
.agent-profile-foot {
  margin: 1.25rem 0 0;
  font-size: 0.875rem;
}
.agent-profile-foot a {
  font-weight: 600;
}
@media (max-width: 720px) {
  .agent-profile-panel {
    padding: 1.25rem 1.1rem 1.5rem;
  }
}

/* List panels */
.panel-table {
  padding: 0;
  overflow: hidden;
}
.panel-table > .table-wrap {
  margin: 0;
  border: 0;
  border-radius: 0;
}
.panel-table > .pager {
  margin: 0;
  padding: var(--space-3) var(--space-4);
}
.panel-table > .panel-head {
  padding: var(--space-3) var(--space-4) 0;
  margin: 0;
}
.panel-table > .sup-accounts-toolbar,
.panel-table > .sup-bookings-toolbar {
  padding: var(--space-3) var(--space-4) 0;
  margin: 0;
}

/* Shared filter panel (supplier + admin forms) */
.filter-panel {
  padding: var(--space-4);
  margin-bottom: var(--space-3);
}
.filter-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: var(--space-2) var(--space-3);
  align-items: end;
}
.filter-grid-actions {
  display: flex;
  gap: var(--space-2);
  align-items: end;
  justify-content: flex-end;
  flex-wrap: wrap;
}
.filter-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.filter-grid--accounts {
  grid-template-columns: 1fr 1fr 1.4fr auto;
}
@media (max-width: 1100px) {
  .filter-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .filter-grid { grid-template-columns: 1fr 1fr; }
  .filter-grid-actions { grid-column: 1 / -1; justify-content: stretch; }
  .filter-grid-actions .btn { flex: 1 1 auto; }
  .filter-grid--accounts { grid-template-columns: 1fr 1fr; }
}

/* Supplier wrappers → shared spacing */
.sup-bookings,
.sup-accounts {
  display: grid;
  gap: var(--space-3);
}
.sup-bookings-filters,
.sup-accounts-filters {
  padding: var(--space-4);
  margin-bottom: 0;
}
.sup-bookings-filter-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: var(--space-2) var(--space-3);
  align-items: end;
}
.sup-accounts-filter-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1.4fr auto;
  gap: var(--space-2) var(--space-3);
  align-items: end;
}
.sup-bookings-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-2) var(--space-4);
  padding: var(--space-1) var(--space-2);
  font-size: var(--text-sm);
  color: var(--text-secondary);
}
.sup-bookings-summary strong { color: var(--text-primary); }
.sup-bookings-toolbar,
.sup-accounts-toolbar {
  display: flex;
  justify-content: space-between;
  gap: var(--space-3);
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: var(--space-2);
}
.sup-accounts-title {
  margin: 0;
  font-size: var(--text-lg);
  font-weight: 650;
  color: var(--text-primary);
}
.sup-bookings-table tbody tr:nth-child(even),
.sup-accounts-table tbody tr:nth-child(even) {
  background: #f8fafc;
}
.sup-bookings-filter-actions {
  display: flex;
  gap: var(--space-2);
  align-items: end;
  justify-content: flex-end;
  flex-wrap: wrap;
}
.sup-bookings-table td,
.sup-accounts-table td { vertical-align: top; }
.sup-accounts-filter-actions { display: flex; justify-content: flex-end; }
.sup-accounts-particulars { text-align: center; }
.sup-accounts-type { font-weight: 650; }
@media (max-width: 1100px) {
  .sup-bookings-filter-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .sup-bookings-summary { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .sup-bookings-filter-grid { grid-template-columns: 1fr 1fr; }
  .sup-bookings-filter-actions { grid-column: 1 / -1; justify-content: stretch; }
  .sup-bookings-filter-actions .btn { flex: 1 1 auto; }
  .sup-bookings-summary { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .sup-accounts-filter-grid { grid-template-columns: 1fr 1fr; }
  .sup-accounts-filter-actions { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .sup-accounts-filter-grid { grid-template-columns: 1fr; }
}

/* Sector / route */
.sector {
  font-weight: 650;
  font-variant-numeric: tabular-nums;
  letter-spacing: .03em;
  white-space: nowrap;
}
.sector-sep {
  color: var(--accent);
  margin: 0 .15rem;
  font-weight: 700;
}

/* Flight search engine bar */
.flight-search { margin-bottom: var(--space-4); }
.fs-panel {
  background: linear-gradient(135deg, var(--bs-navy-900) 0%, var(--bs-navy-700) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow-md);
  border-radius: var(--radius-lg);
  padding: var(--space-3);
}
.fs-trip input { accent-color: var(--accent); }
.fs-search-btn {
  background: var(--accent);
  border: 1px solid var(--accent-hover);
  font-weight: 650;
}
.fs-search-btn:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  color: #fff;
}
.fs-sug-code { color: var(--primary); }

/* Live inventory & FD board */
.page-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  flex-wrap: wrap;
  margin-bottom: var(--space-1);
}
.live-inv { display: grid; gap: var(--space-3); }
.live-inv-title {
  font-size: var(--text-lg);
  font-weight: 650;
  color: var(--text-primary);
}
.live-inv .fd-chip {
  border-radius: var(--radius-sm);
  font-weight: 650;
}
.live-inv .fd-chip.is-selected {
  background: #ffd9d2 !important;
  color: #1a1a1a !important;
  border: 2px solid #2e7d32;
  box-shadow: none;
}
.live-inv .fd-table thead th {
  background: #ffd9d2;
  color: #333;
}
/* Fixed-departure multi-color tiles */
.fd-chip {
  border: 2px solid transparent;
}
.fd-chip.fd-tone-0 { background: #f07157; }
.fd-chip.fd-tone-1 { background: #2e7d32; }
.fd-chip.fd-tone-2 { background: #7b1e1e; }
.fd-chip.fd-tone-3 { background: #6b6b1a; }
.fd-chip.fd-tone-4 { background: #6a1b9a; }
.fd-chip.fd-tone-5 { background: #0d1b6b; }
.fd-chip.fd-tone-6 { background: #c62828; }
.fd-chip.fd-tone-7 { background: #0a5c54; }
.fd-chip.fd-tone-8 { background: #00897b; }
.fd-chip.fd-tone-9 { background: #ad1457; }
.fd-chip.is-selected {
  background: #ffd9d2 !important;
  color: #1a1a1a !important;
  border-color: #2e7d32;
  box-shadow: none;
}
.fd-book {
  background: #f07157;
  border-color: #f07157;
  color: #fff;
  border-radius: var(--radius-sm);
  min-width: 5.25rem;
  font-weight: 650;
}
.fd-book:hover {
  background: #e05f45;
  border-color: #e05f45;
  filter: none;
}
.fd-page .fd-table thead th,
.fd-table thead th {
  background: #ffd9d2;
  color: #333;
  font-weight: 650;
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: .04em;
}
.fd-airline img {
  width: 28px;
  height: 28px;
  object-fit: contain;
  flex-shrink: 0;
}
.table-actions .btn-sm {
  min-height: 1.55rem;
  padding: 0 .45rem;
}

.airline-cell {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  min-width: 0;
}
.airline-cell img {
  width: 28px;
  height: 28px;
  object-fit: contain;
  flex-shrink: 0;
}
.airline-cell span {
  font-size: var(--text-sm);
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.seat-badge {
  display: inline-flex;
  min-width: 1.75rem;
  justify-content: center;
  padding: .1rem .35rem;
  border-radius: 999px;
  background: var(--bs-sky-50);
  border: 1px solid #9fd0ca;
  color: var(--bs-brand-600);
  font-size: var(--text-xs);
  font-weight: 650;
  font-variant-numeric: tabular-nums;
}

/* Record detail headers */
.detail-toolbar {
  align-items: center;
  padding: var(--space-3) var(--space-4);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xs, 0 1px 2px rgba(15, 23, 42, .04));
}
.detail-toolbar .toolbar-meta {
  align-items: center;
  gap: var(--space-2);
}
.detail-toolbar .toolbar-meta strong,
.detail-toolbar .toolbar-meta code {
  font-size: var(--text-lg);
  font-weight: 650;
  color: var(--text-primary);
}

.panel .meta-list li {
  gap: var(--space-4);
  font-size: var(--text-sm);
}
.panel .meta-list li span {
  color: var(--text-secondary);
  flex-shrink: 0;
}
.panel .meta-list li strong {
  text-align: right;
  color: var(--text-primary);
  font-weight: 600;
}

/* Booking flow (passengers / review) */
.pax-route {
  border: 1px solid var(--line);
  box-shadow: none;
  color: var(--text-primary);
  font-size: var(--text-base);
}
.pax-flight,
.pax-row,
.pax-confirm {
  border: 1px solid var(--line);
  box-shadow: none;
}
.pax-flight-meta { color: var(--success, #15803d); }
.pax-confirm-btn {
  background: var(--accent);
  border-radius: var(--radius-sm);
}
.pax-row select,
.pax-row input {
  border-color: var(--input-border);
  border-radius: var(--radius-sm);
}
.pax-infant {
  border-color: var(--accent);
  color: var(--accent);
  border-radius: var(--radius-sm);
}

.rev-page .rev-h {
  color: var(--text-primary);
  font-size: var(--text-xl);
  letter-spacing: -.02em;
}
.rev-card {
  border-color: var(--line);
  border-radius: var(--radius-md);
}
.rev-route {
  font-weight: 650;
  color: var(--text-primary);
}
.rev-route-meta {
  font-weight: 500;
  color: var(--text-secondary);
}

/* Fixed departure board — Direct/Connecting pills */
.fd-tab {
  background: #0a5c54;
  font-weight: 750;
  border-radius: var(--radius-full, 999px);
  color: #fff;
}
.fd-tab.is-active {
  background: #f07157;
  color: #fff;
}
.fd-page .fd-heading {
  color: var(--text-secondary);
  font-size: var(--text-sm);
  text-transform: uppercase;
  letter-spacing: .06em;
}

/* Quote flow edge cases */
.flow-decision {
  max-width: 36rem;
  margin: 0 auto;
  display: grid;
  gap: var(--space-3);
}
.flow-decision-card .meta-list {
  padding: 0 var(--space-4) var(--space-2);
}
.flow-decision-card .form-actions {
  padding: var(--space-3) var(--space-4) var(--space-4);
  margin: 0;
  border-top: 1px solid var(--line);
}
.flow-decision-highlight {
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}
.quote-flow-actions {
  margin-top: var(--space-4);
  justify-content: flex-end;
}

.panel-body {
  padding: var(--space-4);
}
.panel-body .kv {
  margin: var(--space-3) 0;
}

/* Review & pay */
.rev-pay {
  background: var(--bs-sky-50, #f0f9ff);
  border-color: #9fd0ca;
  border-radius: var(--radius-md);
}
.rev-nr {
  color: #b45309;
}
.rev-display {
  color: var(--text-secondary);
  text-transform: uppercase;
  font-size: var(--text-xs);
  letter-spacing: .06em;
}
.rev-cancel {
  background: var(--bs-navy-600);
  border-radius: var(--radius-sm);
}
.rev-go {
  background: var(--primary);
  border-radius: var(--radius-sm);
}
.rev-cancel:hover,
.rev-go:hover {
  filter: brightness(1.06);
}

/* E-ticket — theme-aligned print design (structure in app.css) */
.etkt-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}
.etkt-ribbon {
  background: var(--primary);
}
.etkt-ribbon .sector-sep {
  color: rgba(255, 255, 255, 0.85);
}
.etkt-pax-head {
  background: var(--primary);
  font-size: var(--text-sm);
  letter-spacing: .04em;
}
.etkt-table th {
  background: var(--primary-light);
  color: var(--text-secondary);
  font-weight: 650;
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: .04em;
}
.etkt-status {
  background: var(--success-bg);
  color: var(--success);
  border-color: var(--success-border);
}
.etkt-status-wait {
  background: var(--warning-bg);
  color: #b45309;
  border-color: var(--warning-border);
}
.etkt-pnr span {
  color: var(--text-secondary);
}
.etkt-flight-air strong {
  color: var(--primary);
}
.etkt-plane::before {
  display: none;
}
.etkt-plane::after {
  content: "✈";
  position: absolute;
  right: -2px;
  top: 50%;
  transform: translateY(-55%);
  width: auto;
  height: auto;
  border: 0;
  background: transparent;
  color: var(--primary);
  font-size: 12px;
  line-height: 1;
}
.etkt-info h3 {
  color: var(--primary);
  font-size: var(--text-sm);
}
.etkt-print-label {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  font-weight: 700;
  letter-spacing: .06em;
  margin-bottom: .25rem;
}
.etkt-print-kicker {
  margin: 0 0 .75rem;
  font-size: var(--text-xs);
  color: var(--text-muted);
  letter-spacing: .08em;
  text-transform: uppercase;
}
.etkt-print-opts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .75rem;
}
@media (max-width: 640px) {
  .etkt-print-opts { grid-template-columns: 1fr; }
}
.etkt-print-opt {
  display: flex;
  align-items: center;
  gap: .65rem;
  padding: .85rem 1rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  cursor: pointer;
  margin: 0;
}
.etkt-print-opt span {
  font-weight: 700;
  font-size: var(--text-sm);
  color: var(--primary);
  letter-spacing: .02em;
}
.etkt-print-opt input {
  width: 1rem;
  height: 1rem;
  accent-color: var(--primary);
  flex-shrink: 0;
}
.etkt-extras {
  display: grid;
  gap: .65rem;
  margin: .85rem 0 0;
}
.etkt-extras .etkt-agency,
.etkt-extras .etkt-price {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff;
  padding: .75rem 1rem;
}
.etkt-top-right {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: flex-start;
  gap: .5rem;
}
.etkt-ticket-meta {
  text-align: right;
  max-width: 22rem;
  font-size: var(--text-sm);
  color: var(--text-primary);
  line-height: 1.45;
}
.etkt-ticket-meta[hidden] {
  display: none !important;
}
.etkt-meta-line {
  margin: 0 0 .2rem;
  font-size: .9rem;
}
.etkt-meta-agency {
  margin: .35rem 0 .2rem;
  font-size: 1rem;
}
.etkt-meta-agency strong {
  font-weight: 800;
  letter-spacing: .02em;
}
.etkt-meta-addr {
  margin: .15rem 0 0;
  font-size: .88rem;
  letter-spacing: .03em;
}

/* Cancellation policy (agent + admin preview) */
.policy-page {
  width: min(100%, 60rem);
  margin: 0 auto;
}
.policy-page .legal-card {
  margin-bottom: 0;
}
.policy-meta {
  list-style: none;
  margin: 0 0 1.25rem;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: .75rem 1.25rem;
  font-size: var(--text-sm);
  justify-content: center;
}
.policy-meta--inline {
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line);
}
.policy-meta span {
  display: block;
  opacity: .75;
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--text-secondary);
}
.policy-meta strong {
  color: var(--text-primary);
  font-weight: 650;
}
.policy-notice {
  background: #fff8e6;
  border: 1px solid #f5d78e;
  border-radius: var(--radius-sm);
  padding: 1rem 1.1rem;
  margin: 0 0 1.25rem;
}
.policy-notice h2 {
  margin: 0 0 .45rem;
  font-size: var(--text-base);
  color: #92400e;
}
.policy-table-section .table-wrap {
  margin-top: .35rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.policy-disclaimer {
  margin-top: 1.75rem;
}
.policy-admin-grid { align-items: start; }
.policy-admin-updated { margin: .75rem 0 0; font-size: var(--text-xs); }
.policy-inline-form {
  padding: 0 1rem 1rem;
  border-bottom: 1px solid var(--line);
  margin-bottom: .5rem;
}
.policy-add-grid { align-items: end; }
.policy-edit-details { margin-top: .35rem; }
.policy-edit-details form { margin-top: .5rem; }
.policy-snippet { font-size: var(--text-xs); margin-top: .15rem; }
.stack-gap { display: grid; gap: .75rem; }
@media print {
  .policy-page-preview .toolbar,
  .sidebar, .topbar, .toast-root { display: none !important; }
}

/* Contact Us — Get In Touch (public + agent) */
.contact-page {
  --contact-navy: #0f2744;
  --contact-navy-deep: #0a1c33;
  --contact-green: #22c55e;
  --contact-green-text: #16a34a;
  --contact-muted: #6b7280;
  --contact-line: #e5e7eb;
  --contact-bg: #eef1f5;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0.5rem 0 1.5rem;
}
body.public-body .contact-page,
.public-main .contact-page {
  padding: 1.5rem 1rem 2.5rem;
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.08fr;
  gap: 2rem 2.75rem;
  align-items: start;
}
@media (max-width: 860px) {
  .contact-grid { grid-template-columns: 1fr; gap: 1.75rem; }
}
.contact-heading {
  margin: 0 0 0.45rem;
  font-size: clamp(1.55rem, 3vw, 2.05rem);
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--contact-navy);
}
.contact-heading-rule {
  width: 3.6rem;
  height: 4px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--contact-green) 50%, var(--contact-navy) 50%);
  margin-bottom: 1.15rem;
}
.contact-intro {
  margin: 0 0 1.5rem;
  color: var(--contact-muted);
  line-height: 1.55;
  max-width: 28rem;
  font-size: 0.95rem;
}
.contact-list {
  list-style: none;
  margin: 0 0 2rem;
  padding: 0;
  display: grid;
  gap: 1.05rem;
}
.contact-list li {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  font-size: 0.98rem;
  color: #4b5563;
  line-height: 1.45;
}
.contact-list a,
.contact-text-strong {
  color: var(--contact-navy);
  font-weight: 700;
  text-decoration: none;
}
.contact-list a:hover { text-decoration: underline; }
.contact-address { color: #4b5563; font-weight: 500; }
.contact-icon {
  flex-shrink: 0;
  color: var(--contact-navy);
  margin-top: 0.1rem;
}
.contact-tagline {
  margin: 0;
  font-weight: 800;
  font-size: 1.35rem;
  color: var(--contact-navy);
}
.contact-form-card {
  background: #fff;
  padding: 1.45rem 1.35rem 1.55rem;
  border: 1px solid var(--contact-line);
  border-radius: 10px;
  box-shadow: 0 8px 28px rgba(15, 39, 68, 0.08);
}
.contact-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem 1rem;
  margin-bottom: 1.05rem;
  align-items: start;
}
@media (max-width: 560px) {
  .contact-form-grid { grid-template-columns: 1fr; }
}
.contact-form .field span {
  color: #9ca3af;
  font-size: 0.78rem;
  font-weight: 600;
}
.contact-form .field input,
.contact-form .field textarea {
  border: 1px solid #d1d5db;
  border-radius: 6px;
  background: #fff;
  padding: 0.65rem 0.75rem;
  font-size: 0.95rem;
  color: var(--contact-navy);
  width: 100%;
  box-sizing: border-box;
}
.contact-form .field input:focus,
.contact-form .field textarea:focus {
  outline: none;
  border-color: #94a3b8;
  box-shadow: 0 0 0 3px rgba(15, 39, 68, 0.08);
}
.contact-field-message textarea {
  min-height: 7.5rem;
  resize: vertical;
}
.contact-submit {
  width: 100%;
  padding: 0.9rem 1rem;
  font-weight: 700;
  font-size: 0.98rem;
  border: none;
  border-radius: 6px;
  background: var(--contact-navy) !important;
  color: #fff !important;
  cursor: pointer;
}
.contact-submit:hover {
  background: var(--contact-navy-deep) !important;
}
.contact-form-note {
  margin: 0.9rem 0 0;
  text-align: center;
  font-size: 0.88rem;
  color: var(--contact-green-text);
  font-weight: 600;
}
.contact-form-note a {
  color: inherit;
  text-decoration: none;
}
.contact-form-note a:hover { text-decoration: underline; }
.form-banner-error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #b91c1c;
  padding: 0.65rem 0.85rem;
  border-radius: 6px;
  margin: 0 0 1rem;
  font-size: 0.88rem;
}

.etkt-extras .etkt-agency[hidden],
.etkt-extras .etkt-price[hidden] {
  display: none !important;
}
.etkt-print-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  margin-top: 1rem;
}
.etkt-action-btn {
  flex: 1 1 0;
  min-width: 7.5rem;
  padding: .7rem 1rem;
  border: 0;
  border-radius: 2px;
  background: var(--primary);
  color: #fff;
  font-weight: 700;
  font-size: .78rem;
  letter-spacing: .04em;
  cursor: pointer;
  box-shadow: 0 2px 0 rgba(15, 23, 42, 0.18);
}
.etkt-action-btn:hover {
  background: var(--primary-hover);
  filter: none;
}
.etkt-email-modal .etkt-email-card {
  max-width: 420px;
}
.etkt-email-hint {
  font-size: var(--text-xs);
  margin: 0 0 .75rem;
}

/* Agent sidebar — card menu (mockup) */
body[data-portal="agent"] .sidebar-agent {
  background: #e9edf2;
  color: #334155;
  border-right-color: #d8dee6;
}
body[data-portal="agent"] .sidebar-agent .sidebar-top {
  background: #fff;
  border-bottom-color: #e2e8f0;
}
body[data-portal="agent"] .sidebar-agent .sidebar-brand {
  color: #0f172a;
}
body[data-portal="agent"] .sidebar-agent .sidebar-brand-text small {
  color: #64748b;
}
body[data-portal="agent"] .sidebar-agent .sidebar-collapse {
  background: #f1f5f9;
  color: #475569;
}
body[data-portal="agent"] .sidebar-agent .sidebar-collapse:hover {
  background: #e2e8f0;
  color: #0f172a;
}
body[data-portal="agent"] .sidebar-agent .sidebar-nav {
  padding: 0.5rem 0 0.75rem;
}
body[data-portal="agent"] .sidebar-agent .sidebar-link,
body[data-portal="agent"] .sidebar-agent .sidebar-summary {
  margin: 0.3rem 0.55rem;
  padding: 0.55rem 0.7rem;
  border-radius: 8px;
  background: #fff;
  color: #374151;
  border: 1px solid #e5e9ef;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}
body[data-portal="agent"] .sidebar-agent .sidebar-link:hover,
body[data-portal="agent"] .sidebar-agent .sidebar-summary:hover {
  background: #f8fafc;
  color: #0f172a;
  text-decoration: none;
}
body[data-portal="agent"] .sidebar-agent .sidebar-link.is-active,
body[data-portal="agent"] .sidebar-agent .sidebar-summary.is-active {
  background: var(--bs-brand-50);
  color: #0f172a;
  border-color: #9fd0ca;
  box-shadow: inset 0 0 0 1px rgba(var(--bs-brand-rgb), 0.35);
}
body[data-portal="agent"] .sidebar-agent .sidebar-link--notice {
  background: #e6f4f2;
  border-color: #9fd0ca;
  color: #c2410c;
  font-weight: 600;
}
body[data-portal="agent"] .sidebar-agent .sidebar-link--notice .sidebar-ico {
  opacity: 1;
  color: #ea580c;
}
body[data-portal="agent"] .sidebar-agent .sidebar-link--notice.is-active {
  background: #cce9e5;
  color: #c2410c;
}
body[data-portal="agent"] .sidebar-agent .sidebar-foot {
  border-top-color: #dde3ea;
  background: #fff;
}
body[data-portal="agent"] .sidebar-agent .sidebar-logout {
  border-color: #cbd5e1;
  color: #475569;
  background: #f8fafc;
}
body[data-portal="agent"] .sidebar-agent .sidebar-logout:hover {
  background: #f1f5f9;
  color: #0f172a;
}
.sidebar-details {
  margin: 0;
}
.sidebar-summary {
  list-style: none;
  cursor: pointer;
}
.sidebar-summary::-webkit-details-marker {
  display: none;
}
.sidebar-summary .sidebar-chevron {
  margin-left: auto;
  width: 0.45rem;
  height: 0.45rem;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  opacity: 0.55;
  flex-shrink: 0;
  transition: transform 0.15s ease;
}
.sidebar-details[open] .sidebar-summary .sidebar-chevron {
  transform: rotate(-135deg);
  margin-top: 0.15rem;
}
.sidebar-subnav {
  margin: 0 0.55rem 0.35rem;
  padding: 0.4rem 0.35rem;
  border-radius: 8px;
  background: #cce9e5;
  border: 1px solid #9fd0ca;
  display: grid;
  gap: 0.15rem;
}
body[data-portal="agent"] .sidebar-agent .sidebar-subnav {
  margin-top: -0.15rem;
}
.sidebar-sublink {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.55rem;
  border-radius: 6px;
  color: #334155;
  font-size: var(--text-sm);
  font-weight: 500;
  text-decoration: none;
}
.sidebar-sublink:hover {
  background: rgba(255, 255, 255, 0.55);
  text-decoration: none;
  color: #0f172a;
}
.sidebar-sublink.is-active {
  background: #fff;
  color: #0f172a;
  font-weight: 600;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
}
.sidebar-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.sidebar-dot--offline {
  background: #64748b;
}
.sidebar-dot--online {
  background: #22c55e;
}
body.sidebar-collapsed .sidebar-details .sidebar-subnav {
  display: none;
}
body.sidebar-collapsed .sidebar-details .sidebar-chevron {
  display: none;
}

/* Agent — My Bookings (brand #0a5c54) */
.agent-bookings {
  display: grid;
  gap: var(--space-3);
}
.filter-grid--bookings {
  grid-template-columns: repeat(5, minmax(0, 1fr)) auto;
}
.agent-bookings-actions {
  align-self: end;
  flex-direction: column;
  gap: var(--space-2);
}
.agent-bookings-btn {
  min-width: 7.5rem;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.04em;
  background: var(--primary);
  border-color: var(--primary);
}
.agent-bookings-btn:hover {
  background: var(--primary-hover);
  border-color: var(--primary-hover);
  color: #fff;
}
.agent-bookings-toolbar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  border-bottom: 1px solid var(--line);
}
.agent-bookings-table thead th {
  background: #eef2f7;
  color: var(--text-primary);
  font-weight: 700;
  font-size: var(--text-xs);
  text-transform: none;
  border-bottom: 2px solid var(--primary);
}
.agent-bookings-table tbody td {
  font-size: var(--text-sm);
  vertical-align: middle;
}
.agent-bookings-link {
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
}
.agent-bookings-link:hover {
  color: var(--primary-hover);
  text-decoration: underline;
}
.agent-bookings-actions-cell {
  white-space: nowrap;
}
@media (max-width: 1100px) {
  .filter-grid--bookings {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .agent-bookings-actions {
    grid-column: 1 / -1;
    flex-direction: row;
    justify-content: flex-end;
  }
}
@media (max-width: 720px) {
  .filter-grid--bookings {
    grid-template-columns: 1fr 1fr;
  }
}

/* Agent topbar — wallet, recharge, profile */
.topbar-agent-bar {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-shrink: 0;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.topbar-notice {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.75rem;
  border-radius: 8px;
  background: #fff4ed;
  border: 1px solid #fdba74;
  color: #c2410c;
  font-size: 0.8125rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}
.topbar-notice:hover {
  background: #ffedd5;
  text-decoration: none;
  color: #9a3412;
}
.topbar-notice.is-active {
  background: #fed7aa;
  border-color: #f97316;
  box-shadow: inset 0 0 0 1px rgba(249, 115, 22, 0.25);
}
.topbar-notice-ico {
  width: 16px;
  height: 16px;
  color: #ea580c;
  opacity: 1;
  flex-shrink: 0;
}
.topbar-wallet {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  min-width: 0;
  padding: 0.35rem 0.65rem;
  border-radius: 10px;
  background: #fff;
  border: 1px solid #e2e8f0;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}
.topbar-wallet-ico {
  width: 22px;
  height: 22px;
  color: var(--primary);
  opacity: 1;
}
.topbar-wallet-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  min-width: 0;
}
.topbar-wallet-lab {
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #64748b;
}
.topbar-wallet-amt {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--primary);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.topbar-recharge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.85rem;
  border: 1.5px solid var(--primary);
  border-radius: 8px;
  background: #fff;
  color: var(--primary);
  font-size: 0.875rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  font-family: inherit;
  cursor: pointer;
}
.topbar-recharge:hover {
  background: #f8fafc;
  text-decoration: none;
  color: var(--primary);
}

/* Instant recharge modal */
.recharge-modal-card {
  width: min(100%, 520px);
  background: #fff;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.recharge-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.65rem 1rem;
  background: var(--accent);
  color: #fff;
}
.recharge-modal-head h2 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
}
.recharge-modal-close {
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  padding: 0.15rem 0.35rem;
}
.recharge-modal-close:hover {
  color: #fff;
}
.recharge-modal-form {
  padding: 1rem 1.1rem 1.15rem;
}
.recharge-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem 1rem;
}
.recharge-field-span {
  grid-column: 1 / -1;
  max-width: 50%;
}
.recharge-label {
  display: block;
  margin-bottom: 0.3rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #334155;
}
.recharge-input {
  display: flex;
  align-items: stretch;
  border: 1px solid #c5d0de;
  border-radius: 2px;
  overflow: hidden;
  background: #fff;
}
.recharge-input-muted input {
  background: #eceff3;
}
.recharge-ico {
  width: 2.25rem;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  background: #f1f5f9;
  border-right: 1px solid #c5d0de;
  color: #64748b;
  opacity: 1;
}
.recharge-input input {
  flex: 1;
  min-width: 0;
  border: 0;
  padding: 0.45rem 0.55rem;
  font-size: 0.875rem;
  background: #fff;
}
.recharge-input input:focus {
  outline: none;
  box-shadow: inset 0 0 0 2px rgba(var(--bs-brand-rgb), 0.35);
}
.recharge-input input[readonly] {
  cursor: default;
  color: #1e293b;
}
.recharge-disclaimer {
  margin: 1rem 0 0.85rem;
  font-size: 0.8125rem;
  font-style: italic;
  color: #dc2626;
  line-height: 1.45;
}
.recharge-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
}
@media (max-width: 560px) {
  .recharge-grid {
    grid-template-columns: 1fr;
  }
  .recharge-field-span {
    max-width: none;
  }
}
.topbar-recharge-ico {
  width: 14px;
  height: 14px;
  opacity: 1;
}
.topbar-user-menu {
  position: relative;
}
.topbar-user-trigger {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  list-style: none;
  cursor: pointer;
  padding: 0.25rem 0.45rem 0.25rem 0.25rem;
  border-radius: 10px;
  border: 1px solid transparent;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.topbar-user-trigger:hover {
  background: #fff;
  border-color: #e2e8f0;
}
.topbar-user-trigger::-webkit-details-marker {
  display: none;
}
.topbar-user-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.topbar-user-avatar .sidebar-ico {
  width: 18px;
  height: 18px;
  opacity: 1;
  color: #fff;
}
.topbar-agent-bar .topbar-user-text strong {
  font-size: 0.8125rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--primary);
}
.topbar-agent-bar .topbar-user-text small {
  font-size: 0.75rem;
  color: #64748b;
  font-weight: 500;
}
.topbar-user-caret {
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 6px solid var(--primary);
  margin-left: 0.15rem;
  flex-shrink: 0;
}
.topbar-user-dropdown {
  position: absolute;
  right: 0;
  top: calc(100% + 0.35rem);
  min-width: 11rem;
  padding: 0.35rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow-md);
  z-index: calc(var(--z-topbar) + 5);
  display: grid;
  gap: 0.1rem;
}
.topbar-user-dropdown a,
.topbar-user-dropdown button {
  display: block;
  width: 100%;
  text-align: left;
  padding: 0.45rem 0.55rem;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--text-primary);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
}
.topbar-user-dropdown a:hover,
.topbar-user-dropdown button:hover {
  background: #f1f5f9;
  text-decoration: none;
}
@media (max-width: 860px) {
  .topbar-agent-bar {
    gap: 0.65rem;
  }
  .topbar-wallet-lab {
    display: none;
  }
  .topbar-wallet-amt {
    font-size: 0.95rem;
  }
  .topbar-notice span:not(.topbar-notice-ico) {
    display: none;
  }
  .topbar-notice {
    padding: 0.4rem 0.5rem;
  }
  .topbar-recharge span:not(.topbar-recharge-ico) {
    display: none;
  }
  .topbar-recharge {
    padding: 0.45rem 0.55rem;
  }
  .topbar-agent-bar .topbar-user-text {
    display: none;
  }
  .topbar-user-caret {
    display: none;
  }
  .topbar-action-group--account {
    padding-left: 0.5rem;
    margin-left: 0;
    border-left: 0;
  }
}

/* Public content pages (privacy policy and future legal pages) */
.public-body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: #f8fafc;
}
.public-header {
  padding: 1.25rem var(--space-4);
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.public-brand {
  display: block;
  width: min(100%, 68rem);
  margin: 0 auto;
}
.public-brand-logo {
  display: block;
  height: 2.75rem;
  width: auto;
  max-width: min(100%, 14rem);
  max-height: 2.75rem;
  object-fit: contain;
}
.public-main {
  flex: 1 1 auto;
  width: min(100%, 68rem);
  margin: 0 auto;
  padding: 2rem var(--space-4) 0;
}
.public-body .auth-footer {
  padding: 2rem var(--space-4) 1.5rem;
}
.legal-page {
  width: min(100%, 60rem);
  margin: 0 auto;
}
.legal-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(1.25rem, 3vw, 2.5rem);
  box-shadow: var(--shadow-sm);
}
.legal-card--empty {
  text-align: center;
}
.legal-head {
  text-align: center;
  margin-bottom: 1.5rem;
}
.legal-brand {
  margin: 0 0 0.45rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent, #0a5c54);
}
.legal-title {
  margin: 0;
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  font-weight: 700;
  color: var(--primary);
}
.legal-rule {
  display: block;
  width: 4.1rem;
  height: 4px;
  margin: 0.85rem auto 0;
  background: repeating-linear-gradient(
    90deg,
    var(--accent) 0 1.1rem,
    transparent 1.1rem 1.5rem
  );
}
.legal-lead,
.legal-rich p {
  margin: 0 0 0.9rem;
  font-size: 0.9375rem;
  line-height: 1.75;
  color: var(--text-secondary);
}
.legal-rich ul,
.legal-rich ol {
  margin: 0 0 0.9rem 1.15rem;
  font-size: 0.9375rem;
  line-height: 1.75;
  color: var(--text-secondary);
}
.legal-rich a {
  color: var(--accent);
}
.legal-section {
  margin-top: 1.5rem;
}
.legal-section h2 {
  margin: 0 0 0.6rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--primary);
}
.legal-section p {
  margin: 0 0 0.9rem;
  font-size: 0.9375rem;
  line-height: 1.75;
  color: var(--text-secondary);
}
.legal-meta {
  margin: 1.75rem 0 0;
  font-size: var(--text-xs);
  text-align: center;
}

/* Admin easy-management hubs (dashboard) */
.manage-hubs { margin-bottom: 1rem; }
.manage-hub-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(15.5rem, 1fr));
  gap: 1rem;
  padding: 0 1rem 1rem;
}
.manage-hub {
  background: #f8fafc;
  border: 1px solid var(--line, #e2e8f0);
  border-radius: var(--radius-md, 8px);
  padding: .75rem .85rem 0.5rem;
}
.manage-hub-title {
  margin: 0 0 .55rem;
  font-size: .72rem;
  font-weight: 750;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-secondary, #64748b);
}
.manage-hub-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: .2rem;
}
.manage-hub-link {
  display: flex;
  flex-direction: column;
  gap: .1rem;
  padding: .45rem .5rem;
  border-radius: 6px;
  text-decoration: none;
  color: inherit;
}
.manage-hub-link:hover {
  background: #fff;
  text-decoration: none;
  box-shadow: 0 0 0 1px var(--line, #e2e8f0);
}
.manage-hub-label {
  font-weight: 650;
  font-size: .88rem;
  color: var(--text-primary, #0f172a);
}
.manage-hub-desc {
  font-size: .75rem;
  color: var(--text-secondary, #64748b);
}

/* Admin Agent/Supplier easy management */
.people-easy { margin-bottom: .85rem; }
.people-easy-alert {
  background: #fff7ed;
  border: 1px solid #fdba74;
  color: #9a3412;
  border-radius: var(--radius-md, 8px);
  padding: .65rem .9rem;
  margin-bottom: .65rem;
  font-size: .9rem;
}
.people-easy-alert a { font-weight: 650; color: #c2410c; }
.people-easy-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
}
.people-easy-tab {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .4rem .75rem;
  border-radius: 999px;
  border: 1px solid var(--line, #e2e8f0);
  background: #fff;
  color: var(--text-primary, #0f172a);
  text-decoration: none;
  font-size: .82rem;
  font-weight: 650;
}
.people-easy-tab:hover { text-decoration: none; border-color: #94a3b8; }
.people-easy-tab.is-active {
  background: #0a5c54;
  border-color: #0a5c54;
  color: #fff;
}
.people-easy-count {
  display: inline-flex;
  min-width: 1.35rem;
  justify-content: center;
  padding: 0 .35rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, .08);
  font-size: .75rem;
  font-variant-numeric: tabular-nums;
}
.people-easy-tab.is-active .people-easy-count {
  background: rgba(255, 255, 255, .22);
}
/* Admin Agent/Supplier action buttons */
.people-actions-cell {
  min-width: 11rem;
  vertical-align: middle;
}
.people-actions {
  display: flex;
  flex-direction: column;
  gap: .4rem;
  align-items: flex-start;
}
.people-actions-nav,
.people-actions-status {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem;
  align-items: center;
}
.people-actions-nav .btn,
.people-actions-status .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 1.85rem;
  padding: .2rem .55rem;
  white-space: nowrap;
  pointer-events: auto;
  position: relative;
  z-index: 1;
}
.people-actions-status form {
  display: inline-flex;
  margin: 0;
  padding: 0;
  border: 0;
}
.people-actions-nav .btn-primary {
  background: #0a5c54;
  border-color: #0a5c54;
  color: #fff;
}
.people-actions-nav a.btn:not(.btn-primary) {
  background: #fff;
  border: 1px solid #cbd5e1;
  color: #0f172a;
}
.people-actions-nav a.btn:not(.btn-primary):hover {
  background: #f8fafc;
  border-color: #94a3b8;
  text-decoration: none;
}

/* Airline Web Check-in directory */
.wci-page {
  width: min(100%, 72rem);
  margin: 0 auto;
  padding: 0.5rem 0 2rem;
}
.wci-head {
  text-align: center;
  margin: 0.5rem 0 1.75rem;
}
.wci-title {
  margin: 0;
  font-size: clamp(1.45rem, 3vw, 1.85rem);
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 0.01em;
}
.wci-rule {
  display: block;
  width: 3.25rem;
  height: 3px;
  margin: 0.75rem auto 0;
  border-radius: 2px;
  background: var(--accent);
}
.wci-section {
  margin-bottom: 2rem;
}
.wci-section-title {
  margin: 0 0 1rem;
  text-align: center;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}
.wci-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.85rem;
}
.wci-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  min-height: 4.25rem;
  padding: 0.65rem 0.75rem 0.65rem 0.85rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 0.65rem;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}
.wci-card-main {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  min-width: 0;
  flex: 1;
}
.wci-logo-wrap {
  flex: 0 0 2.75rem;
  width: 2.75rem;
  height: 2.75rem;
  display: grid;
  place-items: center;
  border-radius: 0.45rem;
  background: #f8fafc;
  border: 1px solid var(--line);
  overflow: hidden;
}
.wci-logo {
  max-width: 2.35rem;
  max-height: 2.35rem;
  width: auto;
  height: auto;
  object-fit: contain;
}
.wci-logo-fallback {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.04em;
}
.wci-logo-fallback.hidden {
  display: none;
}
.wci-name {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.3;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.wci-btn {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.45rem 0.7rem;
  border-radius: 0.4rem;
  background: var(--accent);
  color: #fff !important;
  font-size: 0.78rem;
  font-weight: 700;
  text-decoration: none !important;
  white-space: nowrap;
  transition: background 0.15s ease, transform 0.15s ease;
}
.wci-btn:hover {
  background: var(--accent-hover);
  color: #fff !important;
}
.wci-btn-icon {
  display: block;
  opacity: 0.95;
}
@media (max-width: 1100px) {
  .wci-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 800px) {
  .wci-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 520px) {
  .wci-grid {
    grid-template-columns: 1fr;
  }
  .wci-card {
    min-height: 3.75rem;
  }
}

/* Registration uses same profile form chrome */
.agent-edit-profile--register {
  max-width: none;
  border: none;
  border-radius: 0;
  box-shadow: none;
}
.agent-edit-profile--register .agent-edit-profile__head h2 {
  color: var(--primary);
}
.agent-edit-profile--register .agent-edit-profile__readonly {
  /* editable company block on signup */
}
.auth-card-register {
  max-width: min(100%, 52rem);
}
.auth-shell-register {
  max-width: min(100%, 56rem);
}
.agent-edit-profile--register .req {
  color: #dc2626;
  margin-left: 0.15rem;
}

/* Agent cancellation policy — HTML content box */
.policy-html-input {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.84rem;
  line-height: 1.45;
  min-height: 18rem;
}
.policy-html-box {
  margin-top: 0.5rem;
  padding: 1rem 1.1rem;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #fff;
}
.policy-html-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 0.75rem 0;
}
.policy-html-body th,
.policy-html-body td {
  border: 1px solid #e2e8f0;
  padding: 0.45rem 0.6rem;
  text-align: left;
  vertical-align: top;
}
.policy-html-body img { max-width: 100%; height: auto; }
.policy-html-body h1,
.policy-html-body h2,
.policy-html-body h3 { margin: 0.8rem 0 0.4rem; }
