/* Tình trạng đặt chỗ */
.fbs-page {
  padding-bottom: 24px;
  font-family: Montserrat, system-ui, sans-serif;
}

.fbs-section {
  background: #fff;
  border: 1px solid var(--shell-border, #e2e8f0);
  border-radius: 6px;
  margin-bottom: 14px;
  padding: 16px 18px;
}

.fbs-section__title {
  position: relative;
  margin: 0 0 12px;
  padding-left: 12px;
  font-size: 0.92rem;
  font-weight: 700;
  color: #0f172a;
}

.fbs-section__title::before {
  content: "";
  position: absolute;
  left: 0;
  top: 2px;
  bottom: 2px;
  width: 4px;
  border-radius: 2px;
  background: var(--shell-blue, #15733c);
}

.fbs-meta {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 10px 16px;
  margin: 0;
}

.fbs-meta dt {
  margin: 0;
  font-size: 0.72rem;
  color: #64748b;
  font-weight: 500;
}

.fbs-meta dd {
  margin: 2px 0 0;
  font-size: 0.82rem;
  color: #0f172a;
  font-weight: 600;
  word-break: break-word;
}

.fbs-pnr {
  font-size: 1.65rem;
  font-weight: 450;
  color: #047857;
  letter-spacing: 0.06em;
  margin: 0;
  line-height: 1.05;
}

.fbs-detail-reskey {
  width: 100%;
  min-width: 0;
  margin: 0;
  font-size: 0.72rem;
  font-weight: 500;
  line-height: 1.4;
  color: #64748b;
  word-break: break-all;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.fbs-head {
  margin-bottom: 14px;
  width: 100%;
}

.fbs-head__card {
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  background: #fff;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
  width: 100%;
}

.fbs-head__body {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
  padding: 12px 16px;
  width: 100%;
  box-sizing: border-box;
}

.fbs-head__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
}

.fbs-head__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  min-height: 26px;
  padding: 0 10px;
  border-radius: 6px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
  color: #fff;
}

.fbs-head__badge--hold {
  background: #166534;
}

.fbs-head__badge--paid {
  background: #16a34a;
}

.fbs-head__badge--cancel {
  background: #64748b;
}

.fbs-head__badge--refund {
  background: #c2410c;
}

.fbs-head__badges {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.fbs-head__badge--credit {
  background: #dc2626;
  color: #fff;
}

.fbs-head__badge--credit-used {
  background: #16a34a;
  color: #fff;
}

.fbs-head__label--credit {
  margin-top: 6px;
  color: #64748b;
}

.fbs-head__total-value--credit {
  color: #15733c;
}

.fbs-issued--credit .fbs-issued__label {
  color: #15733c;
}

.fbs-head__code-group {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  min-width: 0;
}

.fbs-head__field {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}

.fbs-head__logos {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  min-width: 72px;
}

/* Logo nguyên bản: không khung, không nền xám */
.fbs-logo-box {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  height: auto;
  max-width: 148px;
  padding: 0;
  margin: 0;
  border: 0 !important;
  border-radius: 0;
  background: transparent !important;
  box-shadow: none !important;
  box-sizing: border-box;
  line-height: 0;
  overflow: visible;
}

.fbs-logo-box__img {
  width: auto;
  height: 36px;
  max-width: 148px;
  object-fit: contain;
  object-position: center;
  display: block;
  margin: 0;
  padding: 0;
  background: transparent !important;
  border: 0;
  box-shadow: none;
}

.fbs-head__logos .fbs-logo-box {
  max-width: 160px;
}

.fbs-head__logos .fbs-logo-box__img {
  height: 40px;
  max-width: 160px;
}

.fbs-head__logos--gds {
  min-width: 100px;
  flex-shrink: 0;
}

.fbs-head__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.fbs-head__actions .fbs-head-chip {
  margin: 0;
}

.fbs-head-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid #15733c;
  border-radius: 6px;
  background: #fff;
  color: #15733c;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  white-space: nowrap;
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.fbs-head-chip:hover {
  border-color: #0f5a2e;
  background: #f0fdf4;
  color: #0f5a2e;
}

.fbs-head-chip.fbs-head-chip--status {
  font-weight: 500;
}

.fbs-head-chip.fbs-head-chip--issue {
  border-color: #15733c;
  background: #15733c;
  color: #fff;
}

.fbs-head-chip.fbs-head-chip--issue:hover {
  border-color: #0f5a2e;
  background: #0f5a2e;
  color: #fff;
}

.fbs-head-chip.fbs-head-chip--void {
  border-color: #b45309;
  background: #fff7ed;
  color: #9a3412;
}

.fbs-head-chip.fbs-head-chip--void:hover {
  border-color: #9a3412;
  background: #ffedd5;
  color: #7c2d12;
}

.fbs-head-chip.fbs-head-chip--rebook {
  border-color: #1d4ed8;
  background: #1d4ed8;
  color: #fff;
}

.fbs-head-chip.fbs-head-chip--rebook:hover {
  border-color: #1e40af;
  background: #1e40af;
  color: #fff;
}

.fbs-head-chip.fbs-head-chip--edit {
  border-color: #475569;
  background: #475569;
  color: #fff;
}

.fbs-head-chip.fbs-head-chip--edit:hover {
  border-color: #334155;
  background: #334155;
  color: #fff;
}

.fbs-head-chip.fbs-head-chip--agency {
  background: #fff7ed;
  border-color: #fdba74;
  color: #c2410c;
}

.fbs-head-chip.fbs-head-chip--agency:hover {
  background: #ea580c;
  border-color: #ea580c;
  color: #fff;
}

.fbs-head-chip.fbs-head-chip--refresh {
  border-color: #0e7490;
  background: #ecfeff;
  color: #155e75;
}

.fbs-head-chip.fbs-head-chip--refresh:hover {
  border-color: #0e7490;
  background: #cffafe;
  color: #164e63;
}

.fbs-head-chip.fbs-head-chip--refresh.is-loading,
.fbs-head-chip.fbs-head-chip--refresh:disabled {
  opacity: 0.72;
  cursor: wait;
  pointer-events: none;
}

a.fbs-head-chip {
  text-decoration: none;
}

/* Canh vé đang bật / Nhắc hạn: Bật */
.fbs-head-chip.is-on,
.fbs-head-chip.is-registered {
  border-color: #15733c;
  background: #15733c;
  color: #fff;
}

.fbs-head-chip.is-on:hover,
.fbs-head-chip.is-registered:hover {
  border-color: #0f5a2e;
  background: #0f5a2e;
  color: #fff;
}

.fbs-head-chip.is-off {
  border-color: #15733c;
  background: #fff;
  color: #15733c;
}

.fbs-head-chip.is-off:hover {
  border-color: #0f5a2e;
  background: #f0fdf4;
  color: #0f5a2e;
}

/* Nhắc hạn: Bật — nền xanh chữ trắng (ưu tiên cao) */
.fbs-head-chip.fbs-head-chip--notify.is-on,
.fbs-head__actions .fbs-head-chip.fbs-head-chip--notify.is-on,
.fbs-section--detail .fbs-head-chip.fbs-head-chip--notify.is-on,
button.fbs-head-chip.is-on[data-detail-notify] {
  border-color: #15733c !important;
  background: #15733c !important;
  color: #fff !important;
}

.fbs-head-chip.fbs-head-chip--notify.is-on:hover,
.fbs-head__actions .fbs-head-chip.fbs-head-chip--notify.is-on:hover,
.fbs-section--detail .fbs-head-chip.fbs-head-chip--notify.is-on:hover,
button.fbs-head-chip.is-on[data-detail-notify]:hover {
  border-color: #0f5a2e !important;
  background: #0f5a2e !important;
  color: #fff !important;
}

.fbs-head-chip.fbs-head-chip--notify.is-off,
button.fbs-head-chip.is-off[data-detail-notify] {
  border-color: #15733c;
  background: #fff;
  color: #15733c;
}

.fbs-head-chip .fbs-list__act-ico {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  fill: currentColor;
}

/* Icon chuông trắng khi nút nền xanh đang bật */
.fbs-head-chip.is-on .fbs-list__act-ico,
.fbs-head-chip.is-on .fbs-list__act-ico--notify,
.fbs-head-chip.is-on .fbs-list__act-ico--notify.is-on,
.fbs-head-chip.is-registered .fbs-list__act-ico,
.fbs-head-chip.fbs-head-chip--notify.is-on .fbs-list__act-ico,
button.fbs-head-chip.is-on[data-detail-notify] .fbs-list__act-ico {
  color: #fff !important;
  fill: currentColor !important;
}

.fbs-head__aside {
  min-width: 0;
}

.fbs-head__meta {
  display: contents;
}

.fbs-head__aside .fbs-countdown,
.fbs-head__aside .fbs-issued {
  min-width: 0;
  text-align: left;
}

@media (min-width: 768px) {
  .fbs-head__body {
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 20px;
    min-height: 56px;
  }

  .fbs-head__top,
  .fbs-head__logos,
  .fbs-head__code-group,
  .fbs-head__field--total,
  .fbs-head__actions,
  .fbs-head__aside {
    flex: 0 1 auto;
    min-width: 0;
  }

  .fbs-head__top {
    flex: 0 0 auto;
    gap: 8px;
  }

  .fbs-head__logos {
    flex: 0 0 auto;
    min-width: 72px;
  }

  .fbs-head__logos--gds {
    min-width: 100px;
  }

  .fbs-head__code-group {
    flex-wrap: nowrap;
  }

  .fbs-head__aside .fbs-countdown,
  .fbs-head__aside .fbs-issued {
    text-align: left;
  }

  .fbs-head__aside .fbs-countdown--head .fbs-countdown__label {
    white-space: nowrap;
    text-align: left;
  }

  .fbs-pnr {
    font-size: 1.42rem;
  }

  .fbs-head__total-value {
    font-size: 0.96rem;
  }
}

.fbs-fare-watch-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid #facc15;
  border-radius: 999px;
  background: linear-gradient(180deg, #fffbe6 0%, #fef3c7 100%);
  color: #15733c;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(21, 115, 60, 0.12);
}

.fbs-fare-watch-btn:hover {
  border-color: #eab308;
  background: #fff7cc;
  color: #0f5a2e;
}

.fbs-fare-watch-btn .fbs-list__act-ico {
  width: 16px;
  height: 16px;
}

.fbs-issued {
  flex-shrink: 0;
  text-align: right;
  line-height: 1.3;
  min-width: 0;
}

.fbs-issued__label {
  display: block;
  font-size: 0.68rem;
  font-weight: 600;
  color: #15803d;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 4px;
}

.fbs-issued__ticket {
  display: block;
  font-size: 1.1rem;
  font-weight: 700;
  color: #1d4ed8;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
  word-break: break-all;
}

.fbs-issued__at {
  display: block;
  margin-top: 4px;
  font-size: 0.72rem;
  font-weight: 600;
  color: #15803d;
  font-variant-numeric: tabular-nums;
}

.fbs-issued--detail .fbs-issued__label {
  color: #15803d;
  font-weight: 600;
}

.fbs-countdown {
  flex-shrink: 0;
  text-align: left;
  line-height: 1.3;
  min-width: 0;
}

.fbs-countdown__label {
  display: block;
  font-size: 0.68rem;
  font-weight: 600;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 4px;
}

.fbs-countdown__value {
  display: block;
  font-size: 1.65rem;
  font-weight: 700;
  color: #0f172a;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
}

.fbs-countdown__at {
  display: block;
  margin-top: 4px;
  font-size: 0.72rem;
  color: #94a3b8;
  font-variant-numeric: tabular-nums;
}

.fbs-countdown--urgent .fbs-countdown__value {
  color: #dc2626;
}

.fbs-countdown--expired .fbs-countdown__value {
  color: #64748b;
}

.fbs-countdown--empty .fbs-countdown__value {
  font-size: 1.1rem;
  color: #94a3b8;
}

/* Chi tiết đặt chỗ: nhãn đen; đếm ngược + hạn cùng cỡ, cùng đỏ */
.fbs-countdown--detail .fbs-countdown__label {
  color: #0f172a;
  font-weight: 500;
}

.fbs-countdown--detail .fbs-countdown__value,
.fbs-countdown--detail .fbs-countdown__at {
  font-size: 1.1rem;
  font-weight: 600;
  color: #dc2626;
  letter-spacing: 0.02em;
}

.fbs-countdown--detail .fbs-countdown__at {
  margin-top: 4px;
}

.fbs-countdown--detail.fbs-countdown--urgent .fbs-countdown__value,
.fbs-countdown--detail.fbs-countdown--urgent .fbs-countdown__at {
  color: #dc2626;
}

.fbs-countdown--detail.fbs-countdown--expired .fbs-countdown__value,
.fbs-countdown--detail.fbs-countdown--expired .fbs-countdown__at {
  font-size: 1rem;
  font-weight: 500;
  color: #64748b;
}

.fbs-countdown--head .fbs-countdown__label {
  color: #0f172a;
  font-weight: 500;
  font-size: 0.62rem;
  margin-bottom: 2px;
  line-height: 1.25;
  text-align: left;
}

.fbs-countdown--head .fbs-countdown__time {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: flex-start;
  gap: 0 6px;
  line-height: 1.2;
}

.fbs-countdown--head .fbs-countdown__value,
.fbs-countdown--head .fbs-countdown__at {
  font-size: 0.92rem;
  font-weight: 600;
  color: #dc2626;
  display: inline;
  margin: 0;
}

.fbs-countdown--head .fbs-countdown__sep {
  color: #dc2626;
  font-weight: 600;
  font-size: 0.92rem;
}

.fbs-countdown--head.fbs-countdown--urgent .fbs-countdown__value,
.fbs-countdown--head.fbs-countdown--urgent .fbs-countdown__at,
.fbs-countdown--head.fbs-countdown--urgent .fbs-countdown__sep {
  color: #dc2626;
}

.fbs-countdown--head.fbs-countdown--expired .fbs-countdown__value,
.fbs-countdown--head.fbs-countdown--expired .fbs-countdown__at,
.fbs-countdown--head.fbs-countdown--expired .fbs-countdown__sep {
  color: #64748b;
}

.fbs-head__label {
  display: block;
  font-size: 0.62rem;
  font-weight: 600;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  line-height: 1.2;
}

.fbs-head__copy {
  height: 28px;
  padding: 0 10px;
  font-size: 0.72rem;
  flex-shrink: 0;
  border-radius: 6px;
}

.fbs-head__total-value {
  font-size: 1rem;
  color: #b91c1c;
  font-weight: 700;
  line-height: 1.15;
}

.fbs-copy-btn {
  height: 28px;
  padding: 0 10px;
  border: 1px solid #d4edda;
  border-radius: 4px;
  background: #fff;
  color: var(--shell-blue, #15733c);
  font-family: inherit;
  font-size: 0.7rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}

.fbs-copy-btn:hover {
  background: #e8f5ec;
  border-color: var(--shell-blue, #15733c);
}

.fbs-copy-btn.is-copied {
  background: #ecfdf5;
  border-color: #86efac;
  color: #047857;
}

.fbs-copy-btn--icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
}

.fbs-copy-btn__ico {
  display: block;
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.fbs-output-row .fbs-sms__toolbar .fbs-copy-btn--icon {
  height: 32px;
  width: 32px;
  padding: 0;
}

.fbs-deadline {
  flex-shrink: 0;
  text-align: right;
  line-height: 1.35;
}

.fbs-deadline__label {
  display: block;
  font-size: 0.68rem;
  font-weight: 600;
  color: #64748b;
  margin-bottom: 2px;
}

.fbs-deadline__date {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: #334155;
  font-variant-numeric: tabular-nums;
}

.fbs-deadline__time {
  display: block;
  font-size: 0.72rem;
  color: #94a3b8;
  font-variant-numeric: tabular-nums;
  margin-top: 2px;
}

.fbs-booking {
  padding: 12px 0;
  border-top: 1px solid #eef2f6;
}

.fbs-booking:first-child {
  border-top: none;
  padding-top: 0;
}

.fbs-json {
  margin-top: 10px;
}

.fbs-json summary {
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--shell-blue, #15733c);
  user-select: none;
}

.fbs-json pre {
  margin: 8px 0 0;
  padding: 12px;
  border: 1px solid #e2e8f0;
  border-radius: 4px;
  background: #f8fafc;
  font-size: 0.72rem;
  line-height: 1.45;
  overflow: auto;
  max-height: 480px;
  white-space: pre-wrap;
  word-break: break-word;
}

.hub-api-trace {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid #e2e8f0;
}

.hub-api-trace__title {
  margin: 0 0 10px;
  font-size: 0.92rem;
  font-weight: 700;
  color: #0f172a;
}

.hub-api-trace__title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}
.hub-api-trace__title-row .hub-api-trace__title {
  margin: 0;
}
.hub-api-trace__step > summary,
.hub-api-trace__block > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  cursor: pointer;
  list-style: none;
}
.hub-api-trace__step > summary::-webkit-details-marker,
.hub-api-trace__block > summary::-webkit-details-marker {
  display: none;
}
.hub-api-trace__sum-label {
  flex: 1;
  min-width: 0;
  font-weight: 600;
}
.hub-api-trace__copy {
  flex-shrink: 0;
  margin: 0;
  padding: 4px 10px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  background: #f8fafc;
  color: #0f172a;
  font: inherit;
  font-size: 0.72rem;
  font-weight: 600;
  cursor: pointer;
  line-height: 1.2;
}
.hub-api-trace__copy:hover {
  background: #eef2ff;
  border-color: #a5b4fc;
}
.hub-api-trace__copy.is-ok {
  background: #e8f5ec;
  border-color: #86efac;
  color: #166534;
}
.hub-api-trace__copy.is-err {
  background: #fef2f2;
  border-color: #fecaca;
  color: #991b1b;
}
.hub-api-trace__pre {
  margin: 6px 0 0;
  max-height: 360px;
  overflow: auto;
  white-space: pre-wrap;
  word-break: break-word;
}

.hub-api-trace__step {
  margin-top: 8px;
}

.hub-api-trace__body {
  margin-top: 4px;
}

.hub-api-trace__note {
  margin: 0 0 8px;
  font-size: 0.78rem;
  color: #64748b;
}

.hub-api-trace__empty {
  margin: 0;
  font-size: 0.82rem;
  color: #64748b;
}

.hub-api-trace-panel {
  margin-top: 14px;
}

.fbs-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.fbs-list li + li {
  margin-top: 8px;
}

.fbs-list__item {
  margin: 0;
}

.fbs-list__card {
  display: grid;
  grid-template-columns: 52px minmax(108px, 1fr) minmax(132px, 1.35fr) minmax(96px, 0.85fr) minmax(128px, 0.95fr) auto;
  gap: 10px 14px;
  align-items: center;
  padding: 12px 14px;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  background: #fff;
  color: #0f172a;
  font-size: 0.82rem;
}

.fbs-list__link {
  flex: 1;
  min-width: 0;
  display: grid;
  grid-template-columns: 52px minmax(108px, 1fr) minmax(132px, 1.35fr) minmax(96px, 0.85fr) minmax(128px, 0.95fr);
  gap: 10px 14px;
  align-items: center;
  padding: 12px 14px;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  text-decoration: none;
  color: #0f172a;
  font-size: 0.82rem;
}

.fbs-list__col {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  justify-content: center;
}

.fbs-list__col--brand {
  align-items: center;
}

.fbs-list__col--code {
  gap: 5px;
}

.fbs-list__col--fare {
  align-items: flex-start;
}

.fbs-list__col--time {
  align-items: flex-end;
  text-align: right;
  gap: 5px;
}

.fbs-list__col--actions {
  align-items: flex-end;
  justify-content: center;
}

.fbs-list__left {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.fbs-list__logos {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.fbs-list__logos .fbs-logo-box {
  margin: 0 auto;
}

.fbs-list__body {
  flex: 1;
  min-width: 0;
}

.fbs-list__top {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 0;
}

.fbs-list__status {
  display: inline-flex;
  align-items: center;
  height: 24px;
  padding: 0 8px;
  box-sizing: border-box;
  border-radius: 4px;
  font-size: 0.66rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  line-height: 1;
}

.fbs-list__status--hold {
  background: #eff6ff;
  color: #1d4ed8;
  border: 1px solid #bfdbfe;
}

.fbs-list__status--ok {
  background: #dcfce7;
  color: #15803d;
  border: 1px solid #86efac;
}

.fbs-list__status--cancel {
  background: #fef2f2;
  color: #dc2626;
  border: 1px solid #fecaca;
}

.fbs-list__status--credit {
  background: #fef2f2;
  color: #dc2626;
  border: 1px solid #fecaca;
}

.fbs-list__id {
  font-size: 0.68rem;
  color: #94a3b8;
  font-variant-numeric: tabular-nums;
}

.fbs-list__meta {
  font-size: 0.76rem;
  color: #475569;
  line-height: 1.45;
}

.fbs-list__route {
  font-size: 0.78rem;
  font-weight: 600;
  color: #334155;
  line-height: 1.35;
}

.fbs-list__flight {
  font-size: 0.72rem;
  font-weight: 600;
  color: #64748b;
  font-variant-numeric: tabular-nums;
}

.fbs-list__total {
  font-size: 0.88rem;
  font-weight: 700;
  color: #0f172a;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.fbs-list__pax {
  font-size: 0.72rem;
  color: #64748b;
}

.fbs-list__saved {
  font-size: 0.66rem;
  color: #94a3b8;
  font-variant-numeric: tabular-nums;
}

.fbs-list__right {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  gap: 6px;
  min-width: 120px;
}

.fbs-countdown--compact .fbs-countdown__label {
  font-size: 0.62rem;
  margin-bottom: 2px;
}

.fbs-countdown--compact .fbs-countdown__value {
  font-size: 1.2rem;
  font-weight: 700;
  color: #dc2626;
}

.fbs-list__deadline {
  text-align: right;
  line-height: 1.3;
}

.fbs-list__deadline-label {
  display: block;
  font-size: 0.68rem;
  font-weight: 600;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 4px;
}

.fbs-list__deadline-at {
  display: block;
  font-size: 0.82rem;
  font-weight: 400;
  color: #0f172a;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

@media (max-width: 960px) {
  .fbs-list__card {
    grid-template-columns: 44px 1fr 1fr auto;
    grid-template-areas:
      "brand code actions"
      "brand trip actions"
      "time fare actions";
    gap: 8px 12px;
  }

  .fbs-list__link {
    grid-template-columns: 44px 1fr 1fr;
    grid-template-areas:
      "brand code time"
      "brand trip fare";
    gap: 8px 12px;
  }

  .fbs-list__col--brand { grid-area: brand; }
  .fbs-list__col--code { grid-area: code; }
  .fbs-list__col--trip { grid-area: trip; }
  .fbs-list__col--fare { grid-area: fare; }
  .fbs-list__col--time { grid-area: time; align-items: flex-end; }
  .fbs-list__col--actions {
    grid-area: actions;
    align-items: stretch;
    justify-content: center;
  }
}

@media (max-width: 640px) {
  .fbs-list__card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "code brand"
      "trip fare"
      "time actions";
    gap: 8px 12px;
    align-items: start;
    padding: 12px 14px;
  }

  .fbs-list__actions {
    flex-direction: column;
    gap: 4px;
    width: 100%;
  }

  .fbs-list__act {
    min-width: 0;
    width: 100%;
  }

  .fbs-list__link {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "code brand"
      "trip fare"
      "time time";
    gap: 8px 12px;
    align-items: start;
    padding: 12px 14px;
  }

  .fbs-list__col--brand {
    grid-area: brand;
    align-items: flex-end;
    justify-content: flex-start;
    align-self: start;
  }

  .fbs-list__logos {
    flex-direction: row;
    justify-content: flex-end;
    gap: 4px;
  }

  .fbs-list__logos .fbs-logo-box {
    width: auto;
    height: auto;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
  }

  .fbs-list__logos .fbs-logo-box__img {
    height: 26px;
    max-width: 100px;
  }

  .fbs-list__col--code {
    grid-area: code;
    align-items: flex-start;
    min-width: 0;
    gap: 4px;
  }

  .fbs-list__col--trip {
    grid-area: trip;
    align-items: flex-start;
    justify-content: center;
    padding-top: 10px;
    border-top: 1px solid #eef2f6;
  }

  .fbs-list__col--fare {
    grid-area: fare;
    align-items: flex-end;
    justify-content: center;
    text-align: right;
    min-width: 0;
    padding-top: 10px;
    border-top: 1px solid #eef2f6;
  }

  .fbs-list__col--time {
    grid-area: time;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px 12px;
    text-align: left;
    padding-top: 10px;
    border-top: 1px solid #eef2f6;
  }

  .fbs-list__col--actions {
    grid-area: actions;
    align-items: stretch;
    justify-content: flex-start;
    padding-top: 10px;
    border-top: 1px solid #eef2f6;
  }

  .fbs-list__top {
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    width: 100%;
  }

  .fbs-list__pnr {
    font-size: 0.95rem;
    letter-spacing: 0.03em;
  }

  .fbs-list__status {
    height: 22px;
    padding: 0 7px;
    font-size: 0.62rem;
  }

  .fbs-list__id {
    font-size: 0.66rem;
  }

  .fbs-list__route {
    font-size: 0.8rem;
    line-height: 1.35;
  }

  .fbs-list__flight {
    font-size: 0.72rem;
  }

  .fbs-list__total {
    font-size: 0.88rem;
    font-weight: 700;
    white-space: nowrap;
  }

  .fbs-list__pax {
    font-size: 0.7rem;
  }

  .fbs-list__deadline {
    text-align: right;
    margin-left: auto;
  }

  .fbs-countdown--compact .fbs-countdown__value {
    font-size: 1.1rem;
  }
}

.fbs-list__copy-wrap {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex-shrink: 0;
}

.fbs-list__actions {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  flex-shrink: 0;
}

.fbs-list__act {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-width: 88px;
  height: 28px;
  padding: 0 10px;
  border: 1px solid #e2e8f0;
  border-radius: 4px;
  background: #fff;
  color: #475569;
  font-family: inherit;
  font-size: 0.68rem;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: border-color 0.12s, background 0.12s, color 0.12s;
}

.fbs-list__act-ico {
  display: block;
  width: 13px;
  height: 13px;
  flex-shrink: 0;
  fill: currentColor;
}

.fbs-list__act:hover {
  border-color: #cbd5e1;
  background: #f8fafc;
  color: #0f172a;
}

.fbs-list__act--view {
  color: var(--shell-blue, #15733c);
  border-color: #d4edda;
  background: #f8faff;
}

.fbs-list__act--view:hover {
  border-color: var(--shell-blue, #15733c);
  background: #e8f5ec;
  color: var(--shell-blue-dark, #0f5a2e);
}

.fbs-list__act--mail {
  color: #0f172a;
}

.fbs-list__act.is-copied {
  background: #ecfdf5;
  border-color: #86efac;
  color: #047857;
}

.fbs-list__copy {
  min-width: 52px;
}

.fbs-list__card:hover {
  border-color: #d4edda;
  background: #fcfdff;
}

.fbs-list a:hover,
.fbs-list__link:hover {
  border-color: var(--shell-blue, #15733c);
  background: #f8fbff;
}

.fbs-list__main {
  flex: 1;
  min-width: 0;
}

.fbs-list__when {
  flex-shrink: 0;
  text-align: right;
  line-height: 1.35;
}

.fbs-list__date {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: #334155;
  font-variant-numeric: tabular-nums;
}

.fbs-list__time {
  display: block;
  font-size: 0.72rem;
  color: #94a3b8;
  font-variant-numeric: tabular-nums;
  margin-top: 2px;
}

.fbs-list a .fbs-deadline {
  min-width: 108px;
}

.fbs-list__link .fbs-deadline {
  min-width: 108px;
}

.fbs-list__pnr {
  font-size: 1.05rem;
  font-weight: 450;
  color: #047857;
  letter-spacing: 0.04em;
}

.fbs-list__airline {
  font-weight: 500;
  color: #475569;
}

.fbs-list-summary {
  margin: 0 0 10px;
  font-size: 0.76rem;
  color: #64748b;
}

.fbs-list-none {
  margin: 12px 0 0;
  font-size: 0.8rem;
  color: #64748b;
  text-align: center;
}

.fbs-list-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid #e2e8f0;
}

.fbs-list-stat {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 12px 14px;
  min-width: 0;
  text-align: left;
  font: inherit;
  color: inherit;
}

button.fbs-list-stat {
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

button.fbs-list-stat:hover {
  border-color: #cbd5e1;
  background: #f8fafc;
}

button.fbs-list-stat.is-active {
  box-shadow: inset 0 0 0 1px currentColor;
  background: #f8fafc;
}

button.fbs-list-stat--hold.is-active {
  border-color: #b45309;
  background: #fffbeb;
  color: #b45309;
}

button.fbs-list-stat--ticketed.is-active {
  border-color: #15803d;
  background: #f0fdf4;
  color: #15803d;
}

button.fbs-list-stat--expired.is-active {
  border-color: #dc2626;
  background: #fef2f2;
  color: #dc2626;
}

button.fbs-list-stat:focus-visible {
  outline: 2px solid #367242;
  outline-offset: 2px;
}

.fbs-list-stat__value {
  display: block;
  font-size: 1.35rem;
  font-weight: 600;
  color: #0f172a;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.fbs-list-stat__value--money {
  font-size: 1.05rem;
  word-break: break-word;
}

.fbs-list-stat__label {
  display: block;
  margin-top: 4px;
  font-size: 0.72rem;
  font-weight: 600;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.fbs-list-stat--hold .fbs-list-stat__value { color: #b45309; }
.fbs-list-stat--ticketed .fbs-list-stat__value { color: #15803d; }
.fbs-list-stat--expired .fbs-list-stat__value { color: #dc2626; }
.fbs-list-stat--amount .fbs-list-stat__value { color: #1d4ed8; }

@media (max-width: 720px) {
  .fbs-list-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Filters — 5 field + nút cùng 1 hàng (desktop) */
.fbs-filters__grid {
  display: grid;
  grid-template-columns: minmax(88px, 1.05fr) minmax(96px, 0.95fr) minmax(110px, 1fr) minmax(108px, 0.95fr) minmax(108px, 0.95fr) auto;
  gap: 12px 10px;
  align-items: end;
}

.fbs-field label {
  display: block;
  margin-bottom: 5px;
  font-size: 0.74rem;
  font-weight: 600;
  color: #475569;
}

.fbs-field input,
.fbs-field select {
  width: 100%;
  height: 36px;
  min-height: 36px;
  border: 1px solid #aaa;
  border-radius: 4px;
  padding: 0 10px;
  font-family: inherit;
  font-size: 0.82rem;
  line-height: 34px;
  color: #0f172a;
  box-sizing: border-box;
  background: #fff;
}

.fbs-filters .fbs-field select {
  -webkit-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 8px center;
  background-size: 12px;
  padding-right: 26px;
}

.fbs-field .bm-dp-trigger,
.fbs-filters .fbs-field .bm-dp-field,
.fbs-filters .fbs-field .bm-dp-field--typeable {
  height: 36px;
  min-height: 36px;
  font-size: 0.82rem;
}

.fbs-field .bm-dp-trigger {
  padding-top: 0;
  padding-bottom: 0;
}

.fbs-field input:focus,
.fbs-field select:focus {
  outline: none;
  border-color: var(--shell-blue, #15733c);
  box-shadow: 0 0 0 2px rgba(21, 115, 60, 0.12);
}

.fbs-filters__actions {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  margin-top: 0;
  align-items: end;
}

.fbs-filters__actions .fbs-btn {
  white-space: nowrap;
  flex-shrink: 0;
}

.fbs-filters__msg {
  margin: 10px 0 0;
  font-size: 0.78rem;
  font-weight: 500;
}

.fbs-filters__msg--err {
  color: #b42318;
}

.fbs-filters__msg--ok {
  color: #15733c;
}

.fbs-btn {
  height: 36px;
  padding: 0 14px;
  border-radius: 4px;
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
}

.fbs-btn--primary {
  background: var(--shell-blue, #15733c);
  color: #fff;
  border-color: var(--shell-blue, #15733c);
}

.fbs-btn--primary:hover {
  background: var(--shell-blue-dark, #0f5a2e);
}

.fbs-btn--ghost {
  background: #fff;
  color: #475569;
  border-color: #e2e8f0;
}

.fbs-btn--ghost:hover {
  border-color: #cbd5e1;
  background: #f8fafc;
}

@media (max-width: 1100px) {
  .fbs-filters__grid {
    grid-template-columns: 1fr 1fr 1fr;
    gap: 10px 12px;
  }

  .fbs-filters__actions {
    grid-column: 1 / -1;
    justify-content: flex-start;
  }
}

@media (max-width: 900px) {
  .fbs-filters__grid {
    grid-template-columns: 1fr 1fr;
    gap: 8px 8px;
  }

  .fbs-filters__grid .fbs-field:nth-child(1) {
    grid-column: 1 / -1;
  }

  .fbs-field label {
    margin-bottom: 3px;
    font-size: 0.66rem;
  }

  .fbs-field input,
  .fbs-field select,
  .fbs-field .bm-dp-trigger,
  .fbs-field .bm-dp-field--typeable .bm-dp-native,
  .fbs-filters__actions .fbs-btn {
    height: 30px;
    min-height: 30px;
    max-height: 30px;
    padding-top: 0;
    padding-bottom: 0;
    font-size: 0.72rem;
    line-height: 1.2;
    box-sizing: border-box;
  }

  .fbs-field input,
  .fbs-field select {
    padding-left: 8px;
    padding-right: 8px;
  }

  .fbs-field .bm-dp-trigger {
    padding-left: 8px;
    padding-right: 8px;
    display: flex;
    align-items: center;
  }

  .fbs-field .bm-dp-trigger__icon {
    width: 14px;
    height: 14px;
  }

  .fbs-field .bm-dp-field--typeable,
  .fbs-filters .fbs-field .bm-dp-field,
  .fbs-filters .fbs-field .bm-dp-field--typeable {
    height: 30px;
    min-height: 30px;
  }

  .fbs-filters__actions {
    grid-column: 1 / -1;
    gap: 8px;
    align-items: stretch;
  }

  .fbs-filters__actions .fbs-btn {
    flex: 1;
    min-width: 0;
    padding-left: 10px;
    padding-right: 10px;
    font-size: 0.72rem;
  }
}

body[data-page="booking-status"] .fbs-empty {
  padding: 24px 20px;
  text-align: center;
  color: #64748b;
  font-size: 0.84rem;
  line-height: 1.55;
  max-width: 520px;
  margin: 0 auto;
}

body[data-page="booking-status"] .fbs-empty--list {
  max-width: 520px;
  margin: 48px auto 32px;
  padding: 12px 20px 8px;
  border: none;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

body[data-page="booking-status"] .fbs-empty__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  margin: 0 auto 18px;
  border-radius: 14px;
  color: #15733c;
  background: #fff;
  border: 1px solid #e2e8f0;
  box-shadow: none;
}

body[data-page="booking-status"] .fbs-empty__icon svg {
  display: block;
}

body[data-page="booking-status"] .fbs-empty__title {
  margin: 0 0 10px;
  font-size: 1.05rem;
  font-weight: 700;
  color: #0f172a;
  letter-spacing: -0.01em;
}

body[data-page="booking-status"] .fbs-empty--list .fbs-empty__title {
  font-size: 1.15rem;
}

body[data-page="booking-status"] .fbs-empty__text {
  margin: 0 auto;
  max-width: 380px;
  font-size: 0.84rem;
  color: #94a3b8;
  line-height: 1.55;
}

body[data-page="booking-status"] .fbs-empty__kbd {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 2px;
  padding: 2px 9px;
  border: 1px solid #dbe3ec;
  border-radius: 5px;
  background: #fff;
  color: #15733c;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.4;
  cursor: pointer;
  vertical-align: baseline;
}

body[data-page="booking-status"] .fbs-empty__kbd:hover {
  border-color: #86efac;
  background: #f0fdf4;
}

body[data-page="booking-status"] .fbs-empty__hint {
  margin: 14px auto 0;
  max-width: 360px;
  font-size: 0.78rem;
  color: #64748b;
  line-height: 1.45;
}

body[data-page="booking-status"] .fbs-empty__steps {
  text-align: left;
  margin: 12px auto;
  padding-left: 20px;
  max-width: 400px;
  font-size: 0.8rem;
}

body[data-page="booking-status"] .fbs-empty__steps li + li {
  margin-top: 6px;
}

body[data-page="booking-status"] .fbs-empty__note {
  font-size: 0.74rem;
  color: #94a3b8;
  margin: 12px 0 0;
}

@media (max-width: 720px) {
  body[data-page="booking-status"] .fbs-empty--list {
    margin: 28px auto 20px;
    padding: 8px 12px;
  }
}

.fbs-section--hint {
  background: #f0fdf4;
  border-color: #bbf7d0;
  margin-bottom: 14px;
  text-align: center;
  font-size: 0.82rem;
  color: #166534;
}
.fbs-section--admin {
  background: #e8f5ec;
  border-color: #b8dcc4;
  margin-bottom: 14px;
}
.fbs-section--admin p {
  margin: 0;
  font-size: 0.78rem;
  color: #0f5a2e;
  text-align: center;
}

.fbs-actions {
  margin-top: 12px;
}

.fbs-detail-head {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 6px;
  margin-bottom: 12px;
}

.fbs-detail-head__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.fbs-detail-head .fbs-section__title {
  margin: 0;
  flex: 1;
  min-width: 0;
}

.fbs-detail-back {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  height: 32px;
  padding: 0 18px;
  margin-top: 0;
  border: none;
  border-radius: 10px;
  background: #f1f5f9;
  font-family: inherit;
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--shell-blue, #15733c);
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
  box-sizing: border-box;
}

.fbs-detail-back:hover {
  background: #e2e8f0;
  color: #0f5a2e;
}

.fbs-link {
  color: var(--shell-blue, #15733c);
  font-size: 0.78rem;
  font-weight: 600;
  text-decoration: none;
}

.fbs-link:hover {
  text-decoration: underline;
}

/* Card gộp: Mặt booking + SMS + Gửi mail */
.fbs-comm .fbs-section {
  border: none;
  border-radius: 0;
  background: transparent;
  padding: 0;
  margin-bottom: 0;
}

.fbs-comm .fbs-output-row--comm {
  margin-top: 0;
}

.fbs-comm .fbs-output-row--mail-topup {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid #e2e8f0;
}

.fbs-comm .fbs-mail {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

/* Mặt booking + SMS cùng hàng */
.fbs-output-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 14px;
  align-items: stretch;
}

/* Mặt booking + SMS: hai cột cao bằng nhau (theo cột cao hơn) */
.fbs-output-row--comm,
.fbs-output-row:not(.fbs-output-row--mail) {
  align-items: stretch;
}

.fbs-output-row--comm .fbs-section,
.fbs-output-row:not(.fbs-output-row--mail) .fbs-section {
  min-height: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.fbs-output-row .fbs-section {
  margin-top: 0;
  min-width: 0;
}

.fbs-output-row .fbs-face__head,
.fbs-output-row .fbs-sms__head {
  align-items: center;
  margin-bottom: 0;
  min-height: 38px;
  flex-shrink: 0;
}

.fbs-output-row .fbs-face__text,
.fbs-output-row .fbs-sms__text {
  width: 100%;
  flex: 1 1 auto;
  min-height: 0;
  height: auto;
  max-height: none;
  margin: 10px 0 0;
  resize: none;
  overflow: auto;
  box-sizing: border-box;
}

.fbs-output-row--mail .fbs-face__text,
.fbs-output-row--mail .fbs-sms__text {
  min-height: 250px;
  height: 100%;
  max-height: none;
}

@media (max-width: 960px) {
  .fbs-output-row {
    grid-template-columns: 1fr;
  }

  /* Mobile: không kéo cao mail/detail bằng nhau → hết khoảng trắng dưới form gửi mail */
  .fbs-output-row--mail {
    align-items: start;
    gap: 12px;
  }
  .fbs-output-row--mail .fbs-section {
    min-height: 0;
    height: auto;
  }
  .fbs-output-row--mail .fbs-mail__body,
  .fbs-output-row--mail .fbs-detail__body {
    flex: none;
  }
}

.fbs-output-row--mail .fbs-section {
  height: 100%;
  margin-bottom: 0;
  display: flex;
  flex-direction: column;
  min-height: 360px;
}

.fbs-output-row--mail .fbs-section__title {
  flex-shrink: 0;
}

.fbs-output-row--mail .fbs-mail__body,
.fbs-output-row--mail .fbs-detail__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.fbs-output-row--mail .fbs-detail__body {
  overflow-y: auto;
}

.fbs-output-row--mail .fbs-mail__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  width: 100%;
  flex: none;
  margin-bottom: 10px;
}

.fbs-output-row--mail .fbs-field {
  width: 100%;
  min-width: 0;
}

.fbs-output-row--mail .fbs-mail__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  width: 100%;
  margin-top: 0;
}

.fbs-output-row--mail .fbs-mail__actions .fbs-btn {
  width: auto;
  flex: 1 1 auto;
  min-width: 9.5rem;
}

.fbs-detail__body {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.fbs-detail__subtitle {
  margin: 0 0 8px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #64748b;
}

.fbs-detail__dir + .fbs-detail__dir {
  margin-top: 14px;
}

.fbs-detail__dir-title {
  margin: 0 0 8px;
  font-size: 0.8rem;
  font-weight: 700;
  color: #15733c;
}

.fbs-detail__split-note {
  margin: 0 0 8px;
  font-size: 0.74rem;
  color: #64748b;
}

.fbs-detail__legs {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.fbs-detail__leg {
  display: grid;
  grid-template-columns: minmax(92px, 0.85fr) minmax(0, 2.2fr) minmax(108px, 0.95fr);
  column-gap: clamp(12px, 2vw, 28px);
  align-items: center;
  padding: 12px 14px;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  background: #f8fafc;
}

.fbs-detail__leg-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  text-align: center;
  min-width: 0;
  overflow: hidden;
}

.fbs-detail__leg-logo,
.shell-content .fbs-detail__leg-logo,
.fbs-detail__leg .fbs-detail__leg-logo {
  display: block !important;
  width: 112px !important;
  height: 36px !important;
  max-width: 112px !important;
  max-height: 36px !important;
  object-fit: contain !important;
  object-position: center;
  flex-shrink: 0;
}

.fbs-detail__leg-code {
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #0f172a;
  line-height: 1.2;
}

.fbs-detail__leg-side .fbs-detail__leg-code {
  display: block;
}

.fbs-detail__leg-air {
  font-size: 0.66rem;
  font-weight: 600;
  color: #64748b;
  line-height: 1.3;
}

.fbs-detail__leg-route {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.fbs-detail__leg-point {
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  align-items: center;
  gap: 3px;
  min-width: 0;
}

.fbs-detail__leg-point-main {
  display: contents;
}

.fbs-detail__leg-point:not(.fbs-detail__leg-point--arr) {
  justify-self: end;
  align-items: flex-end;
  text-align: right;
}

.fbs-detail__leg-point--arr {
  justify-self: start;
  align-items: flex-start;
  text-align: left;
}

.fbs-detail__leg-time {
  order: 1;
  font-size: 0.88rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: #0f172a;
  white-space: nowrap;
}

.fbs-detail__leg-tag {
  order: 2;
  display: inline-flex;
  padding: 2px 8px;
  border-radius: 999px;
  background: #eef2f7;
  font-size: 0.72rem;
  font-weight: 600;
  color: #475569;
  white-space: nowrap;
}

.fbs-detail__leg-city {
  order: 3;
  display: block;
  font-size: 0.68rem;
  font-weight: 600;
  color: #64748b;
  line-height: 1.25;
  max-width: 9.5rem;
}

.fbs-detail__leg-day {
  font-size: 0.62rem;
  color: #64748b;
  font-weight: 600;
  margin-left: 2px;
}

.fbs-detail__leg-mid {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  justify-self: center;
  min-width: 0;
  color: #94a3b8;
  align-self: center;
}

.fbs-detail__leg-mid-line {
  width: clamp(48px, 7vw, 88px);
  height: 8px;
  color: #cbd5e1;
}

.fbs-detail__leg-cities {
  display: none;
}

.fbs-detail__leg-side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  text-align: right;
  min-width: 0;
}

.fbs-detail__leg-date {
  font-size: 0.76rem;
  font-weight: 600;
  color: #334155;
  white-space: nowrap;
}

.fbs-detail__leg-meta {
  font-size: 0.68rem;
  color: #64748b;
  line-height: 1.35;
}

@media (max-width: 720px) {
  .fbs-detail__leg {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "brand side"
      "route route";
    gap: 8px 10px;
    align-items: center;
    padding: 8px 10px;
  }

  .fbs-detail__leg-brand {
    grid-area: brand;
    align-items: flex-start;
    justify-content: center;
    text-align: left;
  }

  .fbs-detail__leg-route {
    grid-area: route;
    padding: 0;
  }

  .fbs-detail__leg-side {
    grid-area: side;
    align-items: flex-end;
    text-align: right;
    gap: 2px;
  }

  .fbs-detail__leg-side .fbs-detail__leg-code {
    font-size: 0.88rem;
  }

  .fbs-detail__leg-date {
    font-size: 0.68rem;
  }

  .fbs-detail__leg-meta {
    font-size: 0.62rem;
  }

  .fbs-detail__leg-logo,
  .shell-content .fbs-detail__leg-logo,
  .fbs-detail__leg .fbs-detail__leg-logo {
    width: 88px !important;
    height: 28px !important;
    max-width: 88px !important;
    max-height: 28px !important;
  }
}

.fbs-detail__empty,
.fbs-detail__total-only {
  margin: 0;
  font-size: 0.78rem;
  color: #64748b;
}

.fbs-detail .fbs-table-wrap {
  margin: 0;
}

/* Mobile: bảng giá hành khách → card gọn (tên + tổng tiền) */
@media (max-width: 720px) {
  .fbs-detail .fbs-detail__price-wrap,
  .pi-order-result .fbs-detail__price-wrap {
    overflow: visible;
    border: none;
    background: transparent;
  }

  .fbs-detail .fbs-detail__price-table,
  .pi-order-result .fbs-detail__price-table {
    display: block;
    width: 100% !important;
    min-width: 0 !important;
    table-layout: auto;
  }

  .fbs-detail .fbs-detail__price-table thead,
  .pi-order-result .fbs-detail__price-table thead {
    display: none;
  }

  .fbs-detail .fbs-detail__price-table tbody,
  .pi-order-result .fbs-detail__price-table tbody {
    display: flex;
    flex-direction: column;
    gap: 8px;
  }

  .fbs-detail .fbs-detail__price-table tbody tr,
  .pi-order-result .fbs-detail__price-table tbody tr {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    grid-template-areas: "stt name total";
    align-items: start;
    gap: 4px 8px;
    padding: 10px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #fff;
  }

  .fbs-detail .fbs-detail__price-table tbody td,
  .pi-order-result .fbs-detail__price-table tbody td {
    display: block;
    width: auto !important;
    max-width: none !important;
    min-width: 0 !important;
    padding: 0 !important;
    border: none !important;
    background: transparent !important;
    white-space: normal !important;
  }

  .fbs-detail .fbs-detail__price-table tbody .fbs-table__stt,
  .pi-order-result .fbs-detail__price-table tbody .fbs-table__stt {
    grid-area: stt;
    font-size: 0.68rem;
    font-weight: 700;
    color: #94a3b8;
    line-height: 1.4;
    padding-top: 1px !important;
  }

  .fbs-detail .fbs-detail__price-table tbody .fbs-table__name,
  .pi-order-result .fbs-detail__price-table tbody .fbs-table__name {
    grid-area: name;
    font-size: 0.72rem;
    font-weight: 600;
    color: #0f172a;
    line-height: 1.35;
    text-align: left !important;
  }

  .fbs-detail .fbs-detail__price-table tbody .fbs-table__num--total,
  .pi-order-result .fbs-detail__price-table tbody .fbs-table__num--total {
    grid-area: total;
    font-size: 0.78rem;
    font-weight: 700;
    color: #0f172a;
    text-align: right !important;
    white-space: nowrap !important;
    line-height: 1.35;
  }

  /* Mobile: ẩn cột chi tiết giá (vé/thuế/dv) — chỉ giữ tổng */
  .fbs-detail .fbs-detail__price-table tbody .fbs-table__num--base,
  .fbs-detail .fbs-detail__price-table tbody .fbs-table__num--tax,
  .fbs-detail .fbs-detail__price-table tbody .fbs-table__num--other,
  .fbs-detail .fbs-detail__price-table tbody .fbs-table__num--svc,
  .pi-order-result .fbs-detail__price-table tbody .fbs-table__num--base,
  .pi-order-result .fbs-detail__price-table tbody .fbs-table__num--tax,
  .pi-order-result .fbs-detail__price-table tbody .fbs-table__num--other,
  .pi-order-result .fbs-detail__price-table tbody .fbs-table__num--svc {
    display: none !important;
  }

  .fbs-detail .fbs-detail__price-table tfoot,
  .pi-order-result .fbs-detail__price-table tfoot {
    display: block;
    margin-top: 8px;
  }

  .fbs-detail .fbs-detail__price-table tfoot tr,
  .pi-order-result .fbs-detail__price-table tfoot tr {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #f8fafc;
  }

  .fbs-detail .fbs-detail__price-table tfoot td,
  .pi-order-result .fbs-detail__price-table tfoot td {
    display: none;
    border: none !important;
    padding: 0 !important;
    background: transparent !important;
  }

  .fbs-detail .fbs-detail__price-table tfoot .fbs-price-summary__title,
  .pi-order-result .fbs-detail__price-table tfoot .fbs-price-summary__title {
    display: block;
    font-size: 0.72rem;
    color: #334155;
  }

  .fbs-detail .fbs-detail__price-table tfoot .fbs-table__num--total,
  .pi-order-result .fbs-detail__price-table tfoot .fbs-table__num--total {
    display: block;
    font-size: 0.86rem;
    font-weight: 700;
    color: #0f172a;
    white-space: nowrap;
    text-align: right !important;
  }
}

.fbs-table--compact {
  min-width: 0;
  font-size: 0.74rem;
}

.fbs-table--compact th,
.fbs-table--compact td {
  padding: 6px 8px;
}

/* SMS */
.fbs-sms__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.fbs-sms__head .fbs-section__title {
  margin-bottom: 0;
  font-size: 1.05rem;
  font-weight: 600;
  color: #0f172a;
}

.fbs-sms__head .fbs-sms__tabs {
  margin-bottom: 0;
  flex-shrink: 0;
}

.fbs-sms__toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  flex-shrink: 0;
}

.fbs-sms__toolbar .fbs-copy-btn {
  height: 32px;
  padding: 0 14px;
  font-size: 0.76rem;
}

.fbs-sms-fee-overlay {
  position: fixed;
  inset: 0;
  z-index: 12500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(15, 23, 42, 0.45);
}
.fbs-sms-fee-overlay[hidden] {
  display: none !important;
}
.fbs-sms-fee {
  width: min(420px, 100%);
  background: #fff;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 12px 40px rgba(15, 23, 42, 0.18);
  overflow: hidden;
}
.fbs-sms-fee__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 12px 14px;
  border-bottom: 1px solid #e2e8f0;
}
.fbs-sms-fee__head h3 {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 700;
  color: #0f172a;
}
.fbs-sms-fee__x {
  width: 32px;
  height: 32px;
  border: 0;
  background: transparent;
  color: #64748b;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
}
.fbs-sms-fee__body {
  padding: 14px;
}
.fbs-sms-fee__modes {
  display: flex;
  gap: 6px;
  margin: 0 0 12px;
}
.fbs-sms-fee__mode {
  flex: 1 1 0;
  height: 32px;
  border: 1px solid #d6dee8;
  border-radius: 8px;
  background: #fff;
  color: #475569;
  font: inherit;
  font-size: 0.74rem;
  font-weight: 700;
  cursor: pointer;
}
.fbs-sms-fee__mode.is-on {
  border-color: #15733c;
  background: #e8f5ec;
  color: #15733c;
}
.fbs-sms-fee__base,
.fbs-sms-fee__sum {
  margin: 0 0 10px;
  font-size: 0.74rem;
  color: #64748b;
  line-height: 1.4;
}
.fbs-sms-fee__base strong,
.fbs-sms-fee__sum {
  color: #0f172a;
  font-weight: 700;
}
.fbs-sms-fee__fields {
  display: grid;
  gap: 10px;
  margin-bottom: 10px;
}
.fbs-sms-fee__field {
  display: grid;
  gap: 4px;
  font-size: 0.72rem;
  font-weight: 600;
  color: #475569;
}
.fbs-sms-fee__field input {
  height: 36px;
  padding: 0 10px;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 700;
  color: #0f172a;
}
.fbs-sms-fee__foot {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding: 12px 14px;
  border-top: 1px solid #e2e8f0;
}
.fbs-sms-fee__btn {
  height: 34px;
  padding: 0 14px;
  border: 0;
  border-radius: 6px;
  background: #15733c;
  color: #fff;
  font: inherit;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
}
.fbs-sms-fee__btn--ghost {
  background: #fff;
  color: #475569;
  border: 1px solid #e2e8f0;
}

.fbs-sms__quick {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.fbs-sms__tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 10px;
}

.fbs-sms__tab {
  height: 32px;
  padding: 0 14px;
  border: 1px solid #e2e8f0;
  border-radius: 4px;
  background: #fff;
  font-family: inherit;
  font-size: 0.76rem;
  font-weight: 600;
  color: #475569;
  cursor: pointer;
}

.fbs-sms__tab.is-active {
  border-color: var(--shell-blue, #15733c);
  background: #e8f5ec;
  color: var(--shell-blue, #15733c);
}

.fbs-sms__text {
  width: 100%;
  min-height: 220px;
  border: 1px solid #aaa;
  border-radius: 4px;
  padding: 12px;
  font-family: Consolas, "Courier New", monospace;
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.55;
  color: #020617;
  -webkit-text-fill-color: #020617;
  background: #fff;
  box-sizing: border-box;
  resize: vertical;
  opacity: 1;
}
.fbs-sms__text:read-only,
.fbs-sms__text[readonly] {
  color: #020617;
  -webkit-text-fill-color: #020617;
  opacity: 1;
  background: #fff;
}

.fbs-sms__actions {
  margin-top: 10px;
}

/* Mail */
.fbs-mail__hint {
  margin: 0 0 12px;
  font-size: 0.78rem;
  color: #64748b;
  line-height: 1.5;
}

.fbs-mail__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px 16px;
  margin-bottom: 12px;
}

.fbs-mail__airline {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid #e2e8f0;
}

.fbs-mail__airline .fbs-mail__hint {
  margin-bottom: 8px;
}

.fbs-mail__airline[hidden] {
  display: none !important;
}

.fbs-mail__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
}

.fbs-mail__actions .fbs-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-sizing: border-box;
}

.fbs-mail__actions .fbs-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.fbs-mail__actions a.fbs-btn--ghost:hover {
  border-color: #86efac;
  color: #15733c;
  background: #f0fdf4;
}
.fbs-mail__actions--print {
  margin-top: 8px;
}
.fbs-mail__actions--print .fbs-btn {
  min-width: 9.5rem;
}

/* Mail + Nạp nhanh QR: 2 cột cao bằng nhau, tiêu đề/hint căn đều */
.fbs-output-row--mail-topup {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 14px;
  align-items: stretch;
}

.fbs-output-row--mail-topup > .fbs-section {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  min-width: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
}

.fbs-output-row--mail-topup .fbs-mail__head,
.fbs-output-row--mail-topup .fbs-quick-topup__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 28px;
  margin: 0 0 6px;
  flex-shrink: 0;
}

.fbs-output-row--mail-topup .fbs-mail__head .fbs-section__title,
.fbs-output-row--mail-topup .fbs-quick-topup__head .fbs-section__title {
  margin: 0;
}

.fbs-output-row--mail-topup .fbs-mail__hint,
.fbs-output-row--mail-topup .fbs-quick-topup__hint {
  margin: 0 0 6px;
  min-height: 0;
  font-size: 0.72rem;
  line-height: 1.35;
  color: #64748b;
  flex-shrink: 0;
}

.fbs-output-row--mail-topup .fbs-mail__main {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.fbs-output-row--mail-topup .fbs-mail__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 12px;
  margin-bottom: 10px;
  width: 100%;
}

.fbs-output-row--mail-topup .fbs-mail__actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 12px;
  width: 100%;
  margin-top: auto;
  padding-top: 10px;
}

.fbs-output-row--mail-topup .fbs-mail__actions-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  min-width: 0;
}

.fbs-output-row--mail-topup .fbs-mail__actions-pair .fbs-btn {
  width: 100%;
  min-width: 0;
  flex: none;
  box-sizing: border-box;
}
.fbs-output-row--mail-topup .fbs-mail__actions-pair:last-child {
  grid-column: 1 / -1;
}

.fbs-output-row--mail-topup .fbs-quick-topup__shell {
  flex: 1 1 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 112px;
  gap: 4px 10px;
  align-items: start;
  min-height: 0;
}

.fbs-output-row--mail-topup .fbs-quick-topup__main {
  min-width: 0;
}

.fbs-output-row--mail-topup .fbs-quick-topup__side {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  width: 112px;
}

.fbs-quick-topup__more {
  flex-shrink: 0;
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--shell-blue, #15733c);
  text-decoration: none;
  line-height: 1.2;
  white-space: nowrap;
}

.fbs-quick-topup__more:hover {
  text-decoration: underline;
}

.fbs-quick-topup__meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  justify-content: flex-start;
  padding-top: 0;
}

.fbs-quick-topup__row {
  display: grid;
  grid-template-columns: minmax(88px, 0.9fr) minmax(0, 1.4fr);
  gap: 8px;
  align-items: end;
  min-width: 0;
}

.fbs-quick-topup__field {
  margin: 0;
  min-width: 0;
}

.fbs-quick-topup__field label {
  display: block;
  margin-bottom: 2px;
  font-size: 0.68rem;
  font-weight: 600;
  color: #475569;
  line-height: 1.2;
  white-space: nowrap;
}

.fbs-quick-topup__inline {
  display: flex;
  gap: 4px;
  align-items: stretch;
  min-width: 0;
}

.fbs-quick-topup__inline .qr-topup-input {
  flex: 1 1 auto;
  min-width: 0;
}

.fbs-quick-topup__qr {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 4px;
  width: 112px;
  flex-shrink: 0;
  margin-top: 0;
}

.fbs-quick-topup__qr .qr-topup-qr-host {
  width: 112px;
  height: 112px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  background: #fff;
  overflow: hidden;
}

.fbs-quick-topup__qr .qr-topup-qr-host svg {
  width: 100%;
  height: 100%;
}

.fbs-quick-topup__sum {
  margin: 0;
  font-size: 0.68rem;
  color: #64748b;
  line-height: 1.3;
}

/* Sao chép QR: link text cố định — không đổi màu/padding/nền khi hover */
.fbs-quick-topup #topupCopyQr,
.fbs-quick-topup #topupCopyQr.qr-topup-copy,
.fbs-quick-topup #topupCopyQr.fbs-quick-topup__link-copy,
.fbs-quick-topup #topupCopyQr:hover,
.fbs-quick-topup #topupCopyQr:focus,
.fbs-quick-topup #topupCopyQr:focus-visible,
.fbs-quick-topup #topupCopyQr:active,
.fbs-quick-topup #topupCopyQr.is-copied,
.fbs-quick-topup #topupCopyQr.qr-topup-copy:hover,
.fbs-quick-topup #topupCopyQr.qr-topup-copy.is-copied {
  display: inline !important;
  align-items: unset !important;
  gap: 0 !important;
  width: auto !important;
  min-height: 0 !important;
  height: auto !important;
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  outline: none !important;
  color: #15733c !important;
  font: inherit !important;
  font-size: 0.7rem !important;
  font-weight: 600 !important;
  line-height: 1.3 !important;
  text-decoration: underline !important;
  text-underline-offset: 2px !important;
  cursor: pointer !important;
  transition: none !important;
  vertical-align: baseline !important;
}

.fbs-quick-topup #topupCopyQr .qr-topup-copy__text {
  color: inherit !important;
}

.fbs-quick-topup__msg {
  margin-top: 6px;
  font-size: 0.72rem;
}

.fbs-quick-topup .qr-topup-input {
  width: 100%;
  height: 30px;
  padding: 0 8px;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  font: inherit;
  font-size: 0.76rem;
  box-sizing: border-box;
}

.fbs-quick-topup .qr-topup-copy:not(#topupCopyQr) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-height: 30px;
  padding: 0 7px;
  border: 1px solid #e2e8f0;
  border-radius: 4px;
  background: #fff;
  color: #15733c;
  font: inherit;
  font-size: 0.68rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
}

.fbs-quick-topup .qr-topup-copy:not(#topupCopyQr).is-copied {
  border-color: #86efac;
  background: #f0fdf4;
}

@media (max-width: 960px) {
  .fbs-output-row--mail-topup {
    grid-template-columns: 1fr;
  }

  .fbs-output-row--mail-topup .fbs-quick-topup__shell {
    grid-template-columns: minmax(0, 1fr) 112px;
  }
}

@media (max-width: 720px) {
  .fbs-quick-topup__row {
    grid-template-columns: 1fr;
  }

  .fbs-output-row--mail-topup .fbs-mail__grid,
  .fbs-output-row--mail-topup .fbs-mail__actions {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .fbs-output-row--mail-topup .fbs-quick-topup__shell {
    grid-template-columns: 1fr;
  }

  .fbs-output-row--mail-topup .fbs-quick-topup__side {
    width: 100%;
  }

  .fbs-quick-topup__qr {
    width: 100%;
    align-items: center;
    margin-top: 0;
  }
}

.fbs-mail__msg {
  margin: 10px 0 0;
  font-size: 0.78rem;
  font-weight: 600;
}

.fbs-mail__msg.is-ok {
  color: #047857;
}

.fbs-mail__msg.is-err {
  color: #dc2626;
}

.fbs-mail__jump {
  border-color: #fca5a5;
  color: #b91c1c;
}

.fbs-mail__jump:hover {
  background: #fef2f2;
}

/* Popup gửi mail từ danh sách */
.fbs-mail-overlay {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(15, 23, 42, 0.42);
}
.fbs-mail-overlay[hidden] {
  display: none !important;
}
.fbs-mail-overlay__card {
  width: min(400px, 100%);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 24px 48px rgba(15, 23, 42, 0.18);
  overflow: hidden;
}
.fbs-mail-overlay__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid #f1f5f9;
}
.fbs-mail-overlay__head h3 {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 600;
  color: #0f172a;
}
.fbs-mail-overlay__close {
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 6px;
  background: transparent;
  color: #64748b;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
}
.fbs-mail-overlay__close:hover {
  background: #f1f5f9;
  color: #0f172a;
}
.fbs-mail-overlay__pnr {
  margin: 0;
  padding: 10px 16px 0;
  font-size: 0.76rem;
  font-weight: 600;
  color: #64748b;
}
.fbs-mail-overlay__body {
  padding: 12px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.fbs-mail-overlay__self {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #d4edda;
  border-radius: 8px;
  background: #f8faff;
  font-family: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.12s, background 0.12s;
}
.fbs-mail-overlay__self:hover:not(:disabled) {
  border-color: var(--shell-blue, #15733c);
  background: #e8f5ec;
}
.fbs-mail-overlay__self:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}
.fbs-mail-overlay__self-title {
  font-size: 0.78rem;
  font-weight: 600;
  color: #0f172a;
}
.fbs-mail-overlay__self-email {
  font-size: 0.72rem;
  color: #64748b;
  word-break: break-all;
}
.fbs-mail-overlay__or {
  margin: 0;
  font-size: 0.7rem;
  color: #94a3b8;
  text-align: center;
}
.fbs-mail-overlay__field label {
  display: block;
  margin-bottom: 4px;
  font-size: 0.72rem;
  font-weight: 600;
  color: #475569;
}
.fbs-mail-overlay__field input {
  width: 100%;
  box-sizing: border-box;
  height: 36px;
  padding: 0 10px;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  font-family: inherit;
  font-size: 0.8rem;
  color: #0f172a;
}
.fbs-mail-overlay__field input:focus {
  outline: none;
  border-color: var(--shell-blue, #15733c);
  box-shadow: 0 0 0 2px rgba(21, 115, 60, 0.12);
}
.fbs-mail-overlay__send {
  width: 100%;
}
.fbs-mail-overlay__msg {
  margin: 0;
  padding: 0 16px 14px;
  font-size: 0.76rem;
  line-height: 1.4;
}
.fbs-mail-overlay__msg.is-ok {
  color: #047857;
}
.fbs-mail-overlay__msg.is-err {
  color: #dc2626;
}

/* Mặt booking (GDS face) */
.fbs-face__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.fbs-face__head .fbs-section__title {
  margin-bottom: 0;
  font-size: 1.05rem;
  font-weight: 600;
  color: #0f172a;
}

.fbs-face__hint {
  margin: 0 0 10px;
  font-size: 0.74rem;
  color: #64748b;
  line-height: 1.45;
}

.fbs-face__text {
  width: 100%;
  min-height: 260px;
  border: 1px solid #aaa;
  border-radius: 4px;
  padding: 12px;
  font-family: Consolas, "Courier New", monospace;
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.55;
  color: #020617;
  -webkit-text-fill-color: #020617;
  background: #fff;
  box-sizing: border-box;
  resize: vertical;
  white-space: pre;
  overflow-x: auto;
  opacity: 1;
}
.fbs-face__text:read-only,
.fbs-face__text[readonly] {
  color: #020617;
  -webkit-text-fill-color: #020617;
  opacity: 1;
  background: #fff;
}

@media (max-width: 640px) {
  .fbs-face__head,
  .fbs-sms__head {
    flex-wrap: nowrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
    min-height: 0;
  }

  .fbs-face__head .fbs-section__title,
  .fbs-sms__head .fbs-section__title {
    font-size: 0.9rem;
  }

  .fbs-output-row .fbs-face__head,
  .fbs-output-row .fbs-sms__head {
    min-height: 0;
  }

  .fbs-face__text,
  .fbs-sms__text,
  .fbs-section--detail .fbs-face__text,
  .fbs-section--detail .fbs-sms__text {
    font-size: 0.72rem;
    line-height: 1.45;
    padding: 10px 12px;
    min-height: 140px;
    max-height: none;
    border-color: #dbe3ec;
    background: #f8fafc;
    /* Mobile: xuống dòng thay vì cắt chữ / scroll ngang khó dùng */
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    word-break: break-word;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    tab-size: 4;
  }

  .fbs-output-row .fbs-face__text,
  .fbs-output-row .fbs-sms__text {
    margin-top: 6px;
  }

  .fbs-face,
  .fbs-sms {
    overflow: visible;
  }
}

.fbs-face__actions {
  margin-top: 10px;
}

.fbs-face__jump {
  border-color: #8fd4a8;
  color: #15733c;
}

.fbs-face__jump:hover {
  background: #e8f5ec;
}

/* Bảng giá theo hành khách */
.fbs-pax-price__hint {
  margin: 0 0 10px;
  font-size: 0.74rem;
  color: #64748b;
  line-height: 1.45;
}

.fbs-pax-price__sub {
  margin: 0 0 12px;
  padding: 8px 12px;
  border-radius: 8px;
  background: #f8fafc;
  font-size: 0.86rem;
  color: #334155;
}

.fbs-pax-price__sub strong {
  color: #b91c1c;
}

.fbs-pax-price .fbs-table--price .fbs-table__stt-h,
.fbs-pax-price .fbs-table--price .fbs-table__stt {
  width: 2rem;
  min-width: 2rem;
  max-width: 2rem;
  padding-left: 4px;
  padding-right: 4px;
  text-align: center;
}

.fbs-pax-price .fbs-table--price .fbs-table__name-h,
.fbs-pax-price .fbs-table--price .fbs-table__name {
  min-width: 11rem;
  width: 30%;
  white-space: normal;
  line-height: 1.35;
  word-break: break-word;
  text-align: left;
}

.fbs-pax-price .fbs-table--price .fbs-table__name:has(.fbs-pax-name-cell),
.fbs-detail__price-table .fbs-table__name:has(.fbs-pax-name-cell),
.fbs-section--detail .fbs-table--price .fbs-table__name:has(.fbs-pax-name-cell) {
  text-align: left !important;
}

.fbs-pax-price .fbs-pax-name-cell,
.fbs-pax-price .fbs-pax-name-cell--stack,
.fbs-detail__price-table .fbs-pax-name-cell,
.fbs-detail__price-table .fbs-pax-name-cell--stack,
.fbs-section--detail .fbs-table--price .fbs-pax-name-cell,
.fbs-section--detail .fbs-table--price .fbs-pax-name-cell--stack {
  align-items: flex-start;
  justify-content: flex-start;
}

.fbs-pax-price .fbs-pax-name-cell__line,
.fbs-detail__price-table .fbs-pax-name-cell__line,
.fbs-section--detail .fbs-table--price .fbs-pax-name-cell__line {
  justify-content: flex-start;
  text-align: left;
}

.fbs-pax-price__bag {
  margin: 0 0 10px;
  font-size: 0.78rem;
  color: #475569;
  line-height: 1.4;
}

.fbs-pax-price__bag strong {
  color: #0f172a;
  font-weight: 600;
}

.fbs-pax-price .fbs-table--price .fbs-table__num {
  white-space: nowrap;
}

.fbs-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.fbs-table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
  font-size: 0.78rem;
}

.fbs-table.fbs-table--price.fbs-detail__price-table,
.fbs-table.fbs-table--price.fbs-table--compact {
  min-width: 0;
}

.fbs-table th,
.fbs-table td {
  border: 1px solid #aaa;
  padding: 8px 10px;
  text-align: left;
  vertical-align: middle;
}

/* Bảng tổng giá vé theo hành khách: bỏ outline dọc/ngang */
.fbs-table.fbs-table--price th,
.fbs-table.fbs-table--price td,
.fbs-detail__price-table th,
.fbs-detail__price-table td,
.pi-order-result .fbs-table--price th,
.pi-order-result .fbs-table--price td {
  border: none !important;
}

.fbs-detail__price-wrap,
.pi-order-result .fbs-detail__price-wrap,
.fbs-pax-price .fbs-table-wrap,
.fbs-section--detail .fbs-pax-price .fbs-table-wrap,
.fbs-section--detail .fbs-detail__price-wrap {
  border: none !important;
  box-shadow: none;
}

.fbs-table th {
  background: #f8fafc;
  font-weight: 700;
  color: #334155;
  white-space: nowrap;
}

.fbs-table tfoot td {
  background: #f1f5f9;
}

.fbs-table__stt {
  width: 44px;
  text-align: center;
}

.fbs-table__name {
  min-width: 160px;
  font-weight: 600;
  color: #0f172a;
  white-space: nowrap;
}

.fbs-table__name:has(.fbs-pax-name-cell) {
  text-align: center !important;
}

.fbs-pax-name-cell {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  max-width: 100%;
}

.fbs-pax-name-cell--stack {
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.fbs-pax-name-cell__line {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  max-width: 100%;
  line-height: 1.35;
  text-align: center;
}

.fbs-pax-name-cell__name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fbs-pax-name-cell__seat {
  flex-shrink: 0;
  font-size: 0.72rem;
  font-weight: 700;
  color: #15733c;
  padding: 2px 8px;
  border-radius: 6px;
  background: #ecfdf3;
  border: 1px solid #bbf7d0;
  letter-spacing: 0.02em;
}

.fbs-pax-name-cell__baggage {
  flex-shrink: 1;
  font-size: inherit;
  font-weight: 400;
  color: inherit;
  padding: 0;
  border-radius: 0;
  background: transparent;
  border: none;
  letter-spacing: normal;
  white-space: normal;
}

.fbs-emd-no {
  display: inline-block;
  flex-shrink: 0;
  padding: 2px 8px;
  border-radius: 4px;
  background: #fef3c7;
  border: 1px solid #fcd34d;
  color: #92400e;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.72rem;
  letter-spacing: 0.03em;
}

.fbs-sms-pax-preview {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 12px;
  padding: 10px 12px;
  border-radius: 8px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
}

.fbs-sms-pax-row {
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.fbs-table__num {
  text-align: right;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

@media (max-width: 900px) {
  .fbs-page {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    box-sizing: border-box;
  }
  .fbs-section {
    padding: 12px 10px 14px;
    margin-bottom: 10px;
    max-width: 100%;
    box-sizing: border-box;
  }
  .fbs-section *,
  .fbs-filters,
  .fbs-filters__grid,
  .fbs-table-wrap {
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
  }

  .fbs-face__text,
  .fbs-sms__text {
    max-width: 100% !important;
  }

  .fbs-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .fbs-tickets .fbs-table-wrap {
    overflow: visible;
  }

  .fbs-tickets .fbs-table.fbs-table--tickets {
    min-width: 0 !important;
    width: 100% !important;
  }

  .fbs-pax-price .fbs-table-wrap {
    overflow: visible;
  }

  .fbs-pax-price .fbs-table.fbs-table--price {
    min-width: 0 !important;
    width: 100% !important;
  }

  .fbs-section .fbs-table {
    min-width: 720px;
    width: max-content;
    max-width: none;
  }

  .fbs-section .fbs-table th,
  .fbs-section .fbs-table td {
    max-width: none;
    min-width: auto;
  }

  .fbs-table__name {
    min-width: 11rem;
  }
}

@media (max-width: 767px) {
  /* Chi tiết đặt chỗ trên mobile - full ngang, bỏ 1 lớp padding */
  .fbs-section--detail {
    padding: 8px 0 16px;
  }

  .fbs-section--detail .fbs-section {
    padding: 12px 12px 14px;
    margin-bottom: 10px;
    border-radius: 0;
    border-left: none;
    border-right: none;
  }

  /* Mặt booking / SMS: textarea full ngang card */
  .fbs-section--detail .fbs-face__text,
  .fbs-section--detail .fbs-sms__text {
    width: calc(100% + 24px);
    max-width: none !important;
    margin-left: -12px;
    margin-right: -12px;
    border-radius: 0;
    border-left: none;
    border-right: none;
    padding: 10px 12px;
    box-sizing: border-box;
  }

  .fbs-detail-head {
    gap: 6px;
    margin-bottom: 10px;
    padding: 0 12px;
    box-sizing: border-box;
  }

  .fbs-detail-head__row {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
  }

  .fbs-detail-head .fbs-section__title {
    font-size: 1rem;
    margin-bottom: 0;
  }

  .fbs-detail-back {
    display: inline-flex;
    width: auto;
    max-width: none;
    flex-shrink: 0;
    height: 32px;
    padding: 0 12px;
    box-sizing: border-box;
  }

  .fbs-head__card {
    border-radius: 10px;
  }

  /* Logo | Code+Copy .... Giá | Hạn | Nút */
  .fbs-head__body {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    column-gap: 10px;
    row-gap: 0;
    padding: 10px 12px 12px;
  }

  .fbs-head__top {
    grid-column: 1 / -1;
    width: 100%;
    padding-bottom: 8px;
    margin-bottom: 2px;
    border-bottom: 1px solid #eef2f6;
  }

  .fbs-head__logos .fbs-logo-box {
    width: auto;
    height: auto;
  }

  .fbs-head__logos .fbs-logo-box__img {
    height: 26px;
    max-width: 112px;
  }

  .fbs-head__badge {
    min-height: 22px;
    padding: 0 7px;
    font-size: 0.6rem;
  }

  .fbs-head__code-group {
    grid-column: 1;
    width: auto;
    max-width: 100%;
    gap: 6px;
    align-items: center;
    justify-content: flex-start;
    padding: 8px 0 6px;
    border: none;
    min-width: 0;
  }

  .fbs-head__field--code {
    flex: 0 1 auto;
    min-width: 0;
  }

  .fbs-head__field--code .fbs-head__label {
    display: none;
  }

  .fbs-pnr {
    font-size: 1.28rem;
    letter-spacing: 0.05em;
    color: #15733c;
    line-height: 1.1;
  }

  .fbs-head__copy {
    height: 26px;
    padding: 0 8px;
    font-size: 0.66rem;
    border-radius: 5px;
    margin-left: 0;
  }

  /* Meta → contents để Giá nằm cạnh Code, Hạn xuống hàng dưới */
  .fbs-head__meta {
    display: contents;
  }

  .fbs-head__field--total {
    grid-column: 2;
    flex: none;
    width: auto;
    max-width: 46vw;
    min-width: 0;
    padding: 8px 0 6px;
    border: none;
    background: transparent;
    box-sizing: border-box;
    align-self: center;
    text-align: right;
  }

  .fbs-head__field--total .fbs-head__label {
    display: none;
  }

  .fbs-head__total-value {
    font-size: 0.9rem;
    font-weight: 700;
    color: #0f172a;
    font-variant-numeric: tabular-nums;
    line-height: 1.15;
    word-break: break-word;
  }

  .fbs-head__aside {
    grid-column: 1 / -1;
    flex: none;
    width: 100%;
    min-width: 0;
    padding: 0 0 2px;
    border: none;
    border-radius: 0;
    background: transparent;
    box-sizing: border-box;
    text-align: left;
  }

  .fbs-head__aside .fbs-countdown,
  .fbs-head__aside .fbs-issued {
    text-align: left;
  }

  /* Bỏ chữ hạn xuất vé trên mobile */
  .fbs-countdown--head .fbs-countdown__label {
    display: none;
  }

  .fbs-countdown--head .fbs-countdown__time {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: flex-start;
    gap: 2px 4px;
  }

  .fbs-countdown--head .fbs-countdown__value,
  .fbs-countdown--head .fbs-countdown__at,
  .fbs-countdown--head .fbs-countdown__sep {
    font-size: 0.78rem;
    font-weight: 600;
    color: #dc2626;
  }

  .fbs-countdown--detail.fbs-countdown--head .fbs-countdown__value,
  .fbs-countdown--detail.fbs-countdown--head .fbs-countdown__at {
    font-size: 0.78rem;
    font-weight: 600;
    color: #dc2626;
  }

  .fbs-countdown--detail.fbs-countdown--head.fbs-countdown--urgent .fbs-countdown__value,
  .fbs-countdown--detail.fbs-countdown--head.fbs-countdown--urgent .fbs-countdown__at,
  .fbs-countdown--head.fbs-countdown--urgent .fbs-countdown__value {
    color: #dc2626;
  }

  .fbs-head__aside .fbs-issued {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 4px 10px;
    width: 100%;
    padding: 0;
    text-align: left;
  }

  .fbs-head__aside .fbs-issued__label {
    font-size: 0.72rem;
    margin-bottom: 0;
  }

  .fbs-head__aside .fbs-issued__ticket {
    flex: 1 1 100%;
    order: 3;
    font-size: 0.92rem;
  }

  .fbs-head__aside .fbs-issued__at {
    margin-top: 0;
    margin-left: auto;
    text-align: right;
    font-size: 0.72rem;
    white-space: nowrap;
  }

  .fbs-head__actions {
    grid-column: 1 / -1;
    display: flex;
    flex-wrap: nowrap;
    align-items: stretch;
    justify-content: space-between;
    gap: 6px;
    width: 100%;
    margin-top: 6px;
    padding-top: 8px;
    border-top: 1px solid #eef2f6;
  }

  .fbs-head__actions .fbs-head-chip {
    flex: 1 1 0;
    width: auto;
    min-width: 0;
    min-height: 28px;
    height: 28px;
    padding: 0 6px;
    font-size: 0.68rem;
    font-weight: 500;
    box-sizing: border-box;
    border-radius: 6px;
    background: #fff;
    border-color: #15733c;
    color: #15733c;
  }

  .fbs-head__actions .fbs-head-chip .fbs-list__act-ico {
    width: 12px;
    height: 12px;
  }

  .fbs-head__actions .fbs-head-chip.is-registered,
  .fbs-head__actions .fbs-head-chip.is-on,
  .fbs-head__actions .fbs-head-chip.fbs-head-chip--notify.is-on {
    border-color: #15733c !important;
    background: #15733c !important;
    color: #fff !important;
  }

  .fbs-head__actions .fbs-head-chip.is-off,
  .fbs-head__actions .fbs-head-chip.fbs-head-chip--notify.is-off {
    border-color: #15733c;
    background: #fff;
    color: #15733c;
    opacity: 1;
    font-weight: 500;
  }

  .fbs-head__actions .fbs-head-chip--issue,
  .fbs-head__actions .fbs-head-chip--void,
  .fbs-head__actions .fbs-head-chip--rebook,
  .fbs-head__actions .fbs-head-chip--edit,
  .fbs-head__actions .fbs-head-chip--agency,
  .fbs-head__actions .fbs-head-chip--refresh {
    font-weight: 500;
  }

  .fbs-section--detail .fbs-output-row {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .fbs-section--detail .fbs-output-row .fbs-section {
    min-height: 0;
  }

  .fbs-section--detail .fbs-tickets .fbs-table-wrap {
    margin: 0 -2px;
  }

  .fbs-countdown--detail .fbs-countdown__label {
    font-size: 0.66rem;
    letter-spacing: 0.05em;
    line-height: 1.35;
    margin-bottom: 6px;
  }

  .fbs-countdown--detail .fbs-countdown__value {
    font-size: 1.28rem;
    line-height: 1.2;
  }

  .fbs-countdown--detail .fbs-countdown__at {
    font-size: 0.82rem;
    margin-top: 4px;
  }
}

/* Bảng danh sách giữ chỗ */
.fbs-table-wrap {
  overflow-x: auto;
  border: 1px solid #e2e8f0;
  border-radius: 4px;
  background: #fff;
}

.fbs-table {
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
  font-size: 0.78rem;
  color: #1e293b;
}

.fbs-table--list col.fbs-table__col--brand { width: 10%; }
.fbs-table--list col.fbs-table__col--pnr { width: 24%; }
.fbs-table--list col.fbs-table__col--route { width: 12%; }
.fbs-table--list col.fbs-table__col--name { width: 20%; }
.fbs-table--list col.fbs-table__col--num { width: 7%; }
.fbs-table--list col.fbs-table__col--dt { width: 8%; }
.fbs-table--list col.fbs-table__col--status { width: 7%; }
.fbs-table--list col.fbs-table__col--act { width: 8%; }

.fbs-table--list.fbs-table--with-user col.fbs-table__col--brand { width: 9%; }
.fbs-table--list.fbs-table--with-user col.fbs-table__col--pnr { width: 21%; }
.fbs-table--list.fbs-table--with-user col.fbs-table__col--route { width: 11%; }
.fbs-table--list.fbs-table--with-user col.fbs-table__col--name { width: 17%; }
.fbs-table--list.fbs-table--with-user col.fbs-table__col--num { width: 6.5%; }
.fbs-table--list.fbs-table--with-user col.fbs-table__col--dt { width: 7.5%; }
.fbs-table--list.fbs-table--with-user col.fbs-table__col--status { width: 6.5%; }
.fbs-table--list.fbs-table--with-user col.fbs-table__col--act { width: 7%; }
.fbs-table--list col.fbs-table__col--user { width: 11%; }

.fbs-table--list.fbs-table--with-booked-by col.fbs-table__col--brand { width: 9%; }
.fbs-table--list.fbs-table--with-booked-by col.fbs-table__col--pnr { width: 21%; }
.fbs-table--list.fbs-table--with-booked-by col.fbs-table__col--route { width: 11%; }
.fbs-table--list.fbs-table--with-booked-by col.fbs-table__col--name { width: 17%; }
.fbs-table--list.fbs-table--with-booked-by col.fbs-table__col--num { width: 6.5%; }
.fbs-table--list.fbs-table--with-booked-by col.fbs-table__col--dt { width: 7.5%; }
.fbs-table--list.fbs-table--with-booked-by col.fbs-table__col--status { width: 6.5%; }
.fbs-table--list.fbs-table--with-booked-by col.fbs-table__col--act { width: 7%; }
.fbs-table--list col.fbs-table__col--booked-by { width: 11%; }

.fbs-table--list .fbs-table__td--booked-by,
.fbs-table--list .fbs-table__th--booked-by {
  padding-left: 4px;
  padding-right: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 0.75rem;
}

.fbs-table--list .fbs-table__th,
.fbs-table--list .fbs-table__td {
  text-align: center;
  border: none;
  border-bottom: 1px solid #f1f5f9;
}

.fbs-table--list .fbs-table__td {
  padding-top: 4px;
  padding-bottom: 4px;
}

.fbs-table--list .fbs-table__th {
  background: var(--bm-table-th-bg, var(--shell-blue, #15733c));
  border-bottom: none;
  color: var(--bm-table-th-color, #fff);
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: none;
  letter-spacing: normal;
  padding: 8px 14px;
}

.fbs-table--list .fbs-table__row:last-child .fbs-table__td {
  border-bottom: none;
}

.fbs-section:has(.fbs-table--list) .fbs-table-wrap {
  border-color: #eef2f6;
}

/* Danh sách giữ chỗ: desktop = bảng; mobile = card riêng */
.fbs-table-wrap--list {
  border-color: #eef2f6;
}

.fbs-list-mobile {
  display: none;
}

.fbs-list-stack {
  flex-direction: column;
  gap: 8px;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.fbs-list-card {
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  padding: 12px 14px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.fbs-list-card:hover {
  border-color: #86c8a0;
  box-shadow: 0 4px 14px rgba(21, 115, 60, 0.1);
}

/* Hàng 1: logo · PNR · icon · countdown — một hàng */
.fbs-list-card__head {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.fbs-list-card__brand {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
}

.fbs-list-card__brand .fbs-tickets-airline .fbs-logo-box__img,
.fbs-list-card__brand .fbs-logo-box__img {
  height: 26px;
  width: auto;
  max-width: 88px;
  object-fit: contain;
}

.fbs-list-card__pnr-row {
  flex: 1 1 auto;
  min-width: 0;
}

.fbs-list-card__pnr-row .fbs-table__pnr-cell {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 6px;
  width: 100%;
  min-height: 0;
  line-height: 1;
}

.fbs-list-card__pnr-row .fbs-table__pnr-code {
  flex: 0 0 auto;
  width: auto;
  min-width: 0;
  height: 22px;
}

.fbs-list-card__pnr-row .fbs-table__pnr-badge {
  height: 22px;
  min-width: 56px;
  max-width: 64px;
  padding: 0 4px;
  font-size: 0.62rem;
  letter-spacing: 0;
  line-height: 1;
}

.fbs-list-card__pnr-row .fbs-table__pnr-link {
  height: 22px;
}

.fbs-list-card__pnr-row .fbs-table__pnr-side {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  flex: 1 1 auto;
  gap: 0;
  min-width: 0;
  height: auto;
  overflow: visible;
}

.fbs-list-card__pnr-row .fbs-table__pnr-tools {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  height: 26px;
  gap: 0;
  margin: 0;
  padding: 0;
}

.fbs-list-card__pnr-row .fbs-table__pnr-tools .fbs-table__ico-btn {
  width: 18px;
  height: 24px;
  margin: 0;
  padding: 0;
  min-width: 0;
}

.fbs-list-card__pnr-row .fbs-table__pnr-tools .fbs-table__ico-btn .fbs-list__act-ico {
  width: 14px;
  height: 14px;
}

.fbs-list-card__pnr-row .fbs-table__pnr-countdown {
  margin-left: auto;
  flex: 0 0 auto;
  height: auto;
}

.fbs-list-card__pnr-row .fbs-countdown--pnr .fbs-countdown__value {
  font-size: 0.72rem;
}

/* Hàng 2: hành trình | tên + (giá · nút) */
.fbs-list-card__main {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
}

.fbs-list-card__route {
  flex: 0 0 auto;
  width: max-content;
  max-width: 6.75rem;
  min-width: 0;
  font-size: 0.68rem;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.2;
  text-align: left;
}

.fbs-list-card__route .fbs-list-route__label {
  font-size: 0.6rem;
  font-weight: 600;
  color: #64748b;
  margin-bottom: 2px;
}

.fbs-list-card__leg--ow .fbs-list-card__leg-route {
  font-size: 0.68rem;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.2;
  white-space: nowrap;
}

.fbs-list-card__leg--ow .fbs-list-card__leg-flight {
  margin-top: 1px;
  font-size: 0.62rem;
  font-weight: 600;
  color: #64748b;
  letter-spacing: 0.01em;
  line-height: 1.15;
}

.fbs-list-card__rt {
  display: flex;
  flex-direction: column;
  gap: 0;
  min-width: 0;
  width: max-content;
  max-width: 100%;
}

.fbs-list-card__leg--rt {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
  width: max-content;
  max-width: 100%;
}

.fbs-list-card__leg--rt + .fbs-list-card__leg--rt {
  margin-top: 5px;
  padding-top: 5px;
  border-top: 1px solid #cbd5e1;
  align-self: stretch;
}

.fbs-list-card__leg--rt .fbs-list-card__leg-route {
  font-size: 0.68rem;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.2;
  white-space: nowrap;
}

.fbs-list-card__leg--rt .fbs-list-card__leg-flight {
  margin-top: 1px;
  font-size: 0.62rem;
  font-weight: 600;
  color: #64748b;
  letter-spacing: 0.01em;
  line-height: 1.15;
  white-space: nowrap;
}

.fbs-list-card__route .fbs-ticket-leg-line + .fbs-ticket-leg-line {
  margin-top: 2px;
  padding-top: 2px;
  border-top: 1px dashed #e2e8f0;
}

.fbs-list-card__right {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  gap: 4px;
  padding-left: 6px;
  text-align: left;
}

.fbs-list-card__name {
  position: relative;
  font-size: 0.66rem;
  font-weight: 600;
  color: #0f172a;
  line-height: 1.25;
  max-width: 100%;
  min-width: 0;
  margin-top: -2px;
}

.fbs-list-card__name-wrap {
  display: inline-flex;
  align-items: flex-start;
  max-width: 100%;
  min-width: 0;
  text-align: left;
  vertical-align: top;
}

.fbs-list-card__name-wrap.has-extra {
  padding-top: 0;
  padding-right: 0;
}

.fbs-list-card__name-wrap .fbs-ticket-pax-name {
  display: block;
  min-width: 0;
  flex: 0 1 auto;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.25;
}

.fbs-list-card__pax-extra {
  position: relative;
  top: -0.35em;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 3px;
  min-width: 1.1em;
  height: 1.1em;
  padding: 0 3px;
  border-radius: 999px;
  background: var(--shell-blue, #15733c);
  color: #fff;
  font-size: 0.58rem;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0;
  box-sizing: border-box;
  pointer-events: none;
}

.fbs-list-card__price-act {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
  width: 100%;
}

.fbs-list-card__price {
  flex: 1 1 auto;
  min-width: 0;
  font-size: 0.96rem;
  font-weight: 800;
  color: #ea580c;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  line-height: 1.15;
  overflow: hidden;
  text-overflow: ellipsis;
}

.fbs-list-card__act {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.fbs-list-card__act .fbs-list-status-btn {
  margin: 0;
}

.fbs-list-card__act .fbs-muted {
  font-size: 0.72rem;
}

/* Hàng cuối: hết hạn (trái) · trạng thái + user (phải) — căn đều */
.fbs-list-card__foot {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 2px;
  padding-top: 6px;
  border-top: 1px solid #f1f5f9;
  min-width: 0;
  min-height: 22px;
  line-height: 1;
}

.fbs-list-card__deadline {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  flex-wrap: nowrap;
  gap: 5px;
  min-width: 0;
  flex: 1 1 auto;
  overflow: hidden;
  height: 22px;
  line-height: 1;
}

.fbs-list-card__deadline .fbs-list-card__value {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.fbs-list-card__foot-end {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  column-gap: 6px;
  flex: 0 0 auto;
  width: 13.5rem;
  max-width: 58%;
  margin-left: auto;
  height: 22px;
  line-height: 1;
}

.fbs-list-card__foot-end > .fbs-list-card__del {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  margin: 0;
  padding: 0;
}

.fbs-list-card__foot .fbs-list-card__status {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  width: auto;
  min-width: 0;
  height: 22px;
  line-height: 1;
}

.fbs-list-card__foot .fbs-list-card__status .fbs-table__status {
  display: inline-flex;
  align-items: center;
  height: 22px;
  font-size: 0.7rem;
  font-weight: 700;
  white-space: nowrap;
  line-height: 1;
}

.fbs-list-card__user,
.fbs-list-card__booked-by {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  flex-wrap: nowrap;
  gap: 2px;
  min-width: 0;
  width: 100%;
  max-width: 100%;
  height: 22px;
  line-height: 1;
  overflow: hidden;
}

.fbs-list-card__label {
  display: inline-flex;
  align-items: center;
  height: 22px;
  font-size: 0.62rem;
  font-weight: 600;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  white-space: nowrap;
  line-height: 1;
}

.fbs-list-card__value {
  display: inline-flex;
  align-items: center;
  height: 22px;
  font-size: 0.72rem;
  font-weight: 600;
  color: #334155;
  white-space: nowrap;
  line-height: 1;
}

.fbs-list-card__user .fbs-table__user-cell {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  min-width: 0;
  width: 100%;
  height: 22px;
}

.fbs-list-card__user .fbs-table__user-label {
  display: block;
  min-width: 0;
  flex: 1 1 auto;
  height: auto;
  font-size: 0.72rem;
  font-weight: 600;
  color: #334155;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 22px;
}

.fbs-list-card__booked-by .fbs-list-card__value {
  display: block;
  min-width: 0;
  width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
}

.fbs-list-card__user .fbs-table__ico-btn {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  margin: 0;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  vertical-align: middle;
}

.fbs-list-card__broken {
  margin: 0;
  font-size: 0.82rem;
  color: #64748b;
}

@media (max-width: 900px) {
  .fbs-list-desktop {
    display: none !important;
  }

  .fbs-list-mobile {
    display: flex;
  }

  .fbs-section:has(.fbs-list-mobile) {
    padding: 14px 12px 16px;
  }

  .fbs-list-card {
    padding: 12px 14px;
  }
}

.fbs-table--list .fbs-table__td--pnr {
  text-align: left;
}

.fbs-table--list .fbs-table__pnr-cell {
  justify-content: flex-start;
}

/* Đồng bộ căn th/td từng cột (tránh lệch tiêu đề vs nội dung) */
.fbs-table--list .fbs-table__th--brand,
.fbs-table--list .fbs-table__td--brand {
  text-align: center;
  padding-top: 2px;
  padding-bottom: 2px;
  padding-left: 0;
  padding-right: 0;
  vertical-align: middle;
  line-height: 0;
}

.fbs-table--list .fbs-table__td--brand .fbs-list__logos,
.fbs-table--list .fbs-table__td--brand .fbs-tickets-airline {
  justify-content: center;
  line-height: 0;
  gap: 2px;
}

.fbs-table--list .fbs-table__th--pnr,
.fbs-table--list .fbs-table__td--pnr,
.fbs-table--list .fbs-table__th--route,
.fbs-table--list .fbs-table__td--route,
.fbs-table--list .fbs-table__th--name,
.fbs-table--list .fbs-table__td--name {
  text-align: left;
}

.fbs-table--list .fbs-table__th--num,
.fbs-table--list .fbs-table__td--num {
  text-align: center;
}

.fbs-table--list .fbs-table__td--route,
.fbs-table--list .fbs-table__td--name {
  text-align: left;
  font-weight: 600;
  font-size: 0.78rem;
  color: #0f172a;
  line-height: 1.4;
  vertical-align: middle;
}

.fbs-table--list .fbs-table__td--name {
  overflow: visible;
}

.fbs-list-pax-wrap {
  position: relative;
  display: inline-block;
  max-width: 100%;
  vertical-align: middle;
}

.fbs-list-pax-wrap.has-extra {
  /* Chừa chỗ nút +N — không đè lên tên */
  padding-right: 1.5rem;
  padding-top: 0.4rem;
}

.fbs-list-pax-wrap .fbs-ticket-pax-name {
  display: inline;
}

.fbs-list-pax-extra {
  position: absolute;
  top: 0;
  right: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.35em;
  height: 1.25em;
  padding: 0 5px 0 4px;
  border-radius: 999px;
  background: var(--shell-blue, #15733c);
  color: #fff;
  font-size: 0.64rem;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0;
  box-sizing: border-box;
  pointer-events: none;
}

.fbs-table--list .fbs-list-route__label {
  font-size: 0.68rem;
  font-weight: 600;
  color: #64748b;
  margin-bottom: 4px;
}

.fbs-table--list .fbs-list-pax-line {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px;
}

.fbs-table--list .fbs-list-pax-line + .fbs-list-pax-line {
  margin-top: 6px;
  padding-top: 6px;
  border-top: 1px dashed #e2e8f0;
}

.fbs-table--list .fbs-list-pax-type {
  font-size: 0.68rem;
  font-weight: 600;
  color: #64748b;
}

.fbs-table--list .fbs-table__td--brand .fbs-tickets-airline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.fbs-table--list .fbs-table__td--brand .fbs-tickets-airline .fbs-logo-box__img {
  height: 38px;
  max-width: 92px;
  width: auto;
  object-fit: contain;
  display: block;
}

.fbs-table--list .fbs-table__th--name {
  text-transform: none;
}

.fbs-table--list .fbs-table__td--num {
  text-align: center;
  font-weight: 500;
  font-size: 0.86rem;
  color: #0f172a;
  padding-left: 2px;
  padding-right: 2px;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.fbs-table--list .fbs-table__td--num strong {
  font-weight: 700;
  font-size: 0.9rem;
  color: #ea580c;
}

.fbs-table--list .fbs-table__th--num {
  padding-left: 2px;
  padding-right: 2px;
  white-space: nowrap;
}

.fbs-table--list .fbs-table__td--dt {
  font-weight: 500;
  font-size: 0.72rem;
  color: #0f172a;
  padding-left: 2px;
  padding-right: 2px;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.fbs-table--list .fbs-table__th--dt {
  padding-left: 2px;
  padding-right: 2px;
  white-space: normal;
  line-height: 1.15;
  overflow: hidden;
  text-overflow: clip;
}

.fbs-table--list .fbs-table__status {
  font-size: 0.78rem;
}

.fbs-table--list .fbs-table__user-cell {
  justify-content: space-between;
}

.fbs-table--list .fbs-table__td--user,
.fbs-table--list .fbs-table__user-label {
  flex: 1;
  text-align: left;
  font-weight: 500;
  font-size: 0.74rem;
  color: #0f172a;
}

.fbs-table__th {
  padding: 10px 12px;
  border-bottom: 1px solid #e2e8f0;
  background: #f3f4f6;
  font-size: 0.74rem;
  font-weight: 600;
  color: #334155;
  text-align: center;
  white-space: nowrap;
}

.fbs-table__th--num {
  text-align: center;
}

.fbs-table__td--num {
  text-align: center;
}

.fbs-table__row + .fbs-table__row .fbs-table__td {
  border-top: 1px solid #eef2f6;
}

.fbs-table__td {
  padding: 10px 12px;
  vertical-align: middle;
  line-height: 1.4;
  text-align: left;
}

.fbs-table__th--brand,
.fbs-table__td--brand {
  padding: 2px 0;
}

.fbs-table__th--brand {
  text-align: center;
}

.fbs-table__td--brand {
  text-align: center;
}

.fbs-table__td--brand .fbs-list__logos {
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 0;
  margin: 0;
  line-height: 0;
}

.fbs-table__td--brand .fbs-logo-box {
  width: auto;
  max-width: 92px;
  height: auto;
  margin: 0 auto;
  background: transparent;
  border: 0;
  line-height: 0;
}

.fbs-table__td--brand .fbs-logo-box__img {
  height: 38px;
  max-width: 92px;
  width: auto;
  object-fit: contain;
  display: block;
}

.fbs-table__td--brand .fbs-list__logos--gds {
  display: flex;
  align-items: center;
  justify-content: center;
}

.fbs-table__th--pnr,
.fbs-table__td--pnr {
  padding-left: 6px;
  padding-right: 6px;
  overflow: hidden;
  vertical-align: middle;
}

.fbs-table__th--pnr {
  text-align: center;
}

.fbs-table__td--pnr {
  text-align: left;
}

/* List: giữ căn th/td thống nhất (ghi đè rule generic ở trên) */
.fbs-table--list .fbs-table__th--pnr,
.fbs-table--list .fbs-table__td--pnr,
.fbs-table--list .fbs-table__th--route,
.fbs-table--list .fbs-table__td--route,
.fbs-table--list .fbs-table__th--name,
.fbs-table--list .fbs-table__td--name {
  text-align: left;
}

.fbs-table--list .fbs-table__th--num,
.fbs-table--list .fbs-table__td--num {
  text-align: center;
}

.fbs-table--list .fbs-table__th--brand,
.fbs-table--list .fbs-table__td--brand {
  text-align: center;
}

.fbs-table__th--route,
.fbs-table__td--route {
  font-size: 0.78rem;
}

.fbs-table__pnr-cell {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 6px;
  width: 100%;
  min-height: 21px;
  line-height: 1;
}

.fbs-table__pnr-code {
  display: flex;
  align-items: center;
  align-self: center;
  flex: 0 0 66px;
  width: 66px;
  min-width: 66px;
  height: 21px;
}

.fbs-table__pnr-link {
  display: flex;
  align-items: center;
  height: 21px;
  width: 100%;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

.fbs-table__pnr-link:hover .fbs-table__pnr-badge {
  filter: brightness(1.08);
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.12);
}

.fbs-table__pnr-link:focus-visible .fbs-table__pnr-badge {
  outline: 2px solid var(--shell-blue, #15733c);
  outline-offset: 1px;
}

.fbs-table__pnr-side {
  display: flex;
  flex-direction: row;
  align-items: center;
  align-self: center;
  flex: 1 1 auto;
  gap: 3px;
  min-width: 0;
  height: 21px;
  line-height: 1;
  position: relative;
  z-index: 3;
  overflow: hidden;
}

.fbs-table__pnr-countdown {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  align-self: center;
  height: 24px;
  margin-left: 2px;
  text-align: right;
  line-height: 1;
  min-width: 0;
}

.fbs-countdown--pnr .fbs-countdown__value {
  font-size: 0.68rem;
  font-weight: 700;
  color: #dc2626;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  letter-spacing: -0.02em;
}

.fbs-countdown--pnr.fbs-countdown--urgent .fbs-countdown__value {
  color: #b91c1c;
}

.fbs-table__pnr-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-width: 66px;
  max-width: 66px;
  height: 21px;
  padding: 0 3px;
  border-radius: 3px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  box-sizing: border-box;
}

.fbs-table__pnr-badge--paid,
.fbs-table__pnr-badge--hold {
  background: #16a34a;
  color: #fff;
}

.fbs-table__pnr-badge--cancel {
  background: #dc2626;
  color: #fff;
}

.fbs-table__pnr-text {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 100%;
  height: 21px;
  font-size: 0.68rem;
  font-weight: 700;
  color: #0f172a;
  letter-spacing: 0.03em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  box-sizing: border-box;
}

.fbs-table__pnr-tools {
  display: inline-flex;
  align-items: center;
  align-self: center;
  flex: 0 0 auto;
  width: auto;
  min-width: 0;
  height: 22px;
  gap: 0;
  line-height: 0;
  position: relative;
  z-index: 3;
  flex-shrink: 0;
}

.fbs-table__pnr-tools .fbs-table__ico-btn {
  width: 20px;
  height: 20px;
}

.fbs-table__pnr-tools .fbs-table__ico-btn .fbs-list__act-ico {
  width: 12px;
  height: 12px;
}

/* MacBook / desktop: icon PNR lớn hơn cho dễ bấm */
@media (min-width: 1024px) {
  .fbs-table__pnr-tools {
    height: 28px;
  }

  .fbs-table__pnr-tools .fbs-table__ico-btn {
    width: 26px;
    height: 26px;
  }

  .fbs-table__pnr-tools .fbs-table__ico-btn .fbs-list__act-ico {
    width: 16px;
    height: 16px;
  }

  .fbs-table--list .fbs-table__ico-btn .fbs-list__act-ico {
    width: 18px;
    height: 18px;
  }
}

.fbs-table__ico-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  padding: 0;
  margin: 0;
  border: none;
  border-radius: 3px;
  background: transparent;
  color: #15733c;
  cursor: pointer;
  text-decoration: none;
  line-height: 0;
  vertical-align: middle;
  transition: background 0.12s ease;
}

.fbs-table__ico-btn:hover {
  background: #e8f5ec;
}

.fbs-table__ico-btn--fare-watch {
  color: #ca8a04;
}

.fbs-table__ico-btn--fare-watch.is-registered {
  color: #2563eb;
}

.fbs-table__ico-btn--fare-watch:hover {
  background: #fef9c3;
  color: #b45309;
}

.fbs-table__ico-btn--fare-watch.is-registered:hover {
  background: #eff6ff;
  color: #1d4ed8;
}

.fbs-head-chip.is-registered {
  border-color: #15733c;
  background: #15733c;
  color: #fff;
}

.fbs-head-chip.is-registered:hover {
  border-color: #0f5a2e;
  background: #0f5a2e;
  color: #fff;
}

.fbs-table__pnr-watch-btn {
  border: 0;
  background: transparent;
  padding: 0;
  font: inherit;
  cursor: pointer;
}

.fbs-fw-policy-overlay {
  position: fixed;
  inset: 0;
  z-index: 13000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(15, 23, 42, 0.42);
  opacity: 0;
  transition: opacity 0.18s ease;
}

.fbs-fw-policy-overlay--in {
  opacity: 1;
}

.fbs-fw-policy-overlay--out {
  opacity: 0;
  pointer-events: none;
}

.fbs-fw-policy {
  position: relative;
  width: min(540px, 100%);
  max-height: min(92vh, 680px);
  overflow: auto;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 22px 58px rgba(15, 23, 42, 0.24);
  transform: translateY(10px) scale(0.98);
  transition: transform 0.18s ease;
}

.fbs-fw-policy-overlay--in .fbs-fw-policy {
  transform: translateY(0) scale(1);
}

.fbs-fw-policy__close {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  color: #14532d;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
}

.fbs-fw-policy__content {
  padding: 22px 30px 18px;
}

.fbs-fw-policy__eyebrow {
  margin: 0 0 4px;
  color: #15733c;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.fbs-fw-policy__title {
  margin: 0 0 6px;
  color: #0f5a2e;
  font-size: clamp(1.2rem, 3vw, 1.62rem);
  font-weight: 800;
  line-height: 1.2;
  text-transform: none;
}

.fbs-fw-policy__sub {
  margin: 0 0 14px;
  color: #475569;
  font-size: 0.88rem;
  font-weight: 500;
  line-height: 1.45;
}

.fbs-fw-policy__card {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-top: 9px;
  padding: 11px 14px;
  border: 1px solid #d8eee0;
  border-radius: 12px;
  background: #fbfefc;
}

.fbs-fw-policy__card strong {
  display: block;
  margin-bottom: 5px;
  color: #047857;
  font-size: 0.9rem;
  font-weight: 800;
  text-transform: uppercase;
}

.fbs-fw-policy__card p {
  margin: 4px 0 0;
  color: #0f172a;
  font-size: 0.84rem;
  font-weight: 500;
  line-height: 1.35;
}

.fbs-fw-policy__card b {
  color: #ea580c;
  font-size: 1.04em;
}

.fbs-fw-policy__icon {
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #15803d;
  color: #fff;
  font-weight: 900;
}

.fbs-fw-policy__icon svg {
  width: 24px;
  height: 24px;
}

.fbs-fw-policy__icon--doc {
  background: #16a34a;
  font-size: 1.15rem;
}

.fbs-fw-policy__actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 14px;
}

.fbs-fw-policy__btn {
  min-height: 38px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid transparent;
  font: inherit;
  font-size: 0.86rem;
  font-weight: 600;
  cursor: pointer;
}

.fbs-fw-policy__btn--ghost {
  background: #fff;
  border-color: #d8dee6;
  color: #334155;
}

.fbs-fw-policy__btn--ok {
  background: #15733c;
  color: #fff;
  box-shadow: 0 8px 18px rgba(21, 115, 60, 0.22);
}

.fbs-fw-policy__btn:disabled {
  opacity: 0.65;
  cursor: wait;
}

.fbs-fw-policy__msg {
  min-height: 0;
  margin: 6px 0 0;
  text-align: right;
  font-size: 0.8rem;
  font-weight: 700;
}

.fbs-fw-policy__msg.is-success {
  color: #15803d;
}

.fbs-fw-policy__msg.is-error {
  color: #dc2626;
}

.fbs-fw-policy--stop {
  width: min(440px, 100%);
}

.fbs-fw-policy--stop .fbs-fw-policy__content {
  padding: 24px 28px 20px;
  text-align: center;
}

.fbs-fw-policy--stop .fbs-fw-policy__title {
  font-size: 1.28rem;
  font-weight: 700;
  color: #0f172a;
}

.fbs-fw-policy--stop .fbs-fw-policy__sub {
  margin: 0 auto;
  max-width: 34rem;
  color: #64748b;
  font-size: 0.84rem;
  line-height: 1.55;
}

.fbs-fw-stop-hero {
  display: flex;
  justify-content: center;
  margin-bottom: 12px;
}

.fbs-fw-stop-hero__icon {
  display: inline-flex;
  margin-bottom: 2px;
}

.fbs-fw-stop-hero__badge {
  display: inline-flex;
  filter: drop-shadow(0 12px 24px rgba(37, 99, 235, 0.16));
}

.fbs-fw-stop-hero__svg {
  display: block;
  width: 72px;
  height: 72px;
}

.fbs-fw-policy__actions--stop {
  justify-content: center;
  margin-top: 18px;
}

.fbs-fw-policy__btn--stop {
  background: #fff;
  border-color: #fca5a5;
  color: #dc2626;
}

.fbs-fw-policy__btn--stop:hover {
  background: #fef2f2;
  border-color: #f87171;
  color: #b91c1c;
}

.fbs-fw-policy--stop .fbs-fw-policy__msg {
  text-align: center;
}

@media (max-width: 720px) {
  .fbs-fw-policy__content {
    padding: 18px 16px 14px;
  }

  .fbs-fw-policy__actions {
    flex-direction: column-reverse;
  }

  .fbs-fw-policy__btn {
    width: 100%;
  }
}

.fbs-table__ico-btn.is-copied {
  background: #ecfdf5;
  color: #047857;
}

.fbs-table__ico-btn .fbs-list__act-ico {
  display: block;
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.fbs-table__ico-btn .fbs-list__act-ico--stroke {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.85;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.fbs-table__ico-btn--notify.is-notify-on,
.fbs-table__ico-btn--notify.is-notify-on:hover {
  color: #15733c;
}

.fbs-list__act-ico--notify.is-on {
  color: #15733c;
}

.fbs-notify-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 8px;
  padding: 6px 10px;
  border: 1px solid #d8dee6;
  border-radius: 6px;
  background: #fff;
  color: #64748b;
  font: inherit;
  font-size: 0.74rem;
  font-weight: 600;
  cursor: pointer;
}

.fbs-notify-toggle.is-on {
  border-color: #86efac;
  background: #f0fdf4;
  color: #15803d;
}

.fbs-notify-toggle__icon {
  display: inline-flex;
  width: 16px;
  height: 16px;
}

.fbs-notify-toggle__icon svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.fbs-table__td--route em {
  display: block;
  font-style: italic;
  color: #475569;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fbs-table__th--name,
.fbs-table__td--name {
  font-weight: 500;
  text-transform: uppercase;
  font-size: 0.68rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fbs-table--list .fbs-table__td--name {
  overflow: visible;
  text-overflow: clip;
  white-space: normal;
}

.fbs-table__td--num strong {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.fbs-table__th--dt,
.fbs-table__td--dt {
  padding-left: 6px;
  padding-right: 6px;
  font-size: 0.68rem;
  color: #64748b;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.fbs-table__th--dt {
  color: #334155;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: center;
}

.fbs-table__td--user {
  font-size: 0.74rem;
  font-weight: 600;
  text-transform: uppercase;
  color: #334155;
}

.fbs-table__user-cell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
}

.fbs-table__user-label {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fbs-table__ico-btn--danger {
  color: #b91c1c;
  flex-shrink: 0;
}

.fbs-table__ico-btn--danger:hover {
  background: #fef2f2;
  color: #991b1b;
}

.fbs-table__ico-btn--danger:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.fbs-dialog-overlay {
  position: fixed;
  inset: 0;
  z-index: 12000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(15, 23, 42, 0.45);
  opacity: 0;
  transition: opacity 0.18s ease;
  pointer-events: auto;
}

.fbs-dialog-overlay:not(.fbs-dialog-overlay--in) {
  pointer-events: none;
}

.fbs-dialog-overlay--in {
  opacity: 1;
}

.fbs-dialog-overlay--out {
  opacity: 0;
}

.fbs-dialog {
  width: min(420px, 100%);
  background: #fff;
  border-radius: 14px;
  padding: 24px 22px 20px;
  box-shadow: 0 18px 48px rgba(15, 23, 42, 0.18);
  transform: translateY(8px) scale(0.98);
  transition: transform 0.18s ease;
}

.fbs-dialog-overlay--in .fbs-dialog {
  transform: translateY(0) scale(1);
}

.fbs-dialog-overlay--out .fbs-dialog {
  transform: translateY(8px) scale(0.98);
}

.fbs-dialog__icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 12px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fef2f2;
  color: #b91c1c;
}

.fbs-dialog__title {
  margin: 0 0 8px;
  text-align: center;
  font-size: 1.05rem;
  font-weight: 700;
  color: #0f172a;
}

.fbs-dialog__msg {
  margin: 0 0 8px;
  text-align: center;
  font-size: 0.88rem;
  line-height: 1.5;
  color: #475569;
}

.fbs-dialog__detail {
  margin: 0 0 16px;
  text-align: center;
  font-size: 0.82rem;
  font-weight: 600;
  color: #0f172a;
  word-break: break-word;
}

.fbs-dialog__actions {
  display: flex;
  gap: 10px;
  justify-content: center;
}

.fbs-dialog__btn {
  min-width: 108px;
  padding: 9px 16px;
  border-radius: 8px;
  border: 1px solid transparent;
  font-size: 0.86rem;
  font-weight: 600;
  cursor: pointer;
}

.fbs-dialog__btn--ghost {
  background: #f8fafc;
  border-color: #e2e8f0;
  color: #334155;
}

.fbs-dialog__btn--ghost:hover {
  background: #f1f5f9;
}

.fbs-dialog__btn--danger {
  background: #dc2626;
  color: #fff;
}

.fbs-dialog__btn--danger:hover {
  background: #b91c1c;
}

.fbs-table__th--status,
.fbs-table__td--status {
  padding-left: 4px;
  padding-right: 4px;
  width: 1%;
  white-space: nowrap;
}

.fbs-table__th--status {
  text-align: center;
}

.fbs-table__td--status {
  text-align: center;
}

.fbs-table__th--act,
.fbs-table__td--act {
  padding-left: 4px;
  padding-right: 4px;
  width: 1%;
  white-space: nowrap;
}

.fbs-table__th--act {
  text-align: center;
}

.fbs-table__td--act {
  text-align: center;
  vertical-align: middle;
}

.fbs-list-status-btn.fbs-head-chip {
  min-height: 28px;
  min-width: 5.5rem;
  padding: 0 8px;
  font-size: 0.72rem;
  justify-content: center;
  box-sizing: border-box;
}

.fbs-table__status {
  display: inline-block;
  font-size: 0.74rem;
  font-weight: 500;
  color: #334155;
  white-space: nowrap;
}

.fbs-table__status--ok {
  color: #15803d;
  font-weight: 600;
}

.fbs-table__status--cancel {
  color: #dc2626;
  font-weight: 600;
}

.fbs-table__status--credit {
  color: #dc2626;
  font-weight: 600;
}

.fbs-table__status--hold {
  color: #1d4ed8;
  font-weight: 600;
}

.fbs-tickets__note {
  margin: 0 0 10px;
  font-size: 0.78rem;
  color: #64748b;
}

.fbs-table.fbs-table--tickets {
  min-width: 0;
  width: 100%;
  table-layout: fixed;
}

.fbs-table--tickets col.fbs-tickets-col--stt { width: 40px; }
.fbs-table--tickets col.fbs-tickets-col--airline { width: 148px; }
.fbs-table--tickets col.fbs-tickets-col--type { width: 60px; }
.fbs-table--tickets col.fbs-tickets-col--flight { width: 84px; }
.fbs-table--tickets col.fbs-tickets-col--route { width: 17%; }
.fbs-table--tickets col.fbs-tickets-col--datetime { width: 192px; }
.fbs-table--tickets col.fbs-tickets-col--name { width: 20%; }
.fbs-table--tickets col.fbs-tickets-col--ticket { width: 132px; }
.fbs-table--tickets col.fbs-tickets-col--trip-mobile { width: 0; }

@media (min-width: 901px) {
  .fbs-tickets--no-ticket-col col.fbs-tickets-col--ticket,
  .fbs-tickets--no-ticket-col .fbs-table__ticket-h,
  .fbs-tickets--no-ticket-col .fbs-table__ticket {
    display: none;
  }
}

.fbs-table--tickets th.fbs-table__trip-mobile-h,
.fbs-table--tickets .fbs-table__trip-mobile {
  width: 0 !important;
  min-width: 0 !important;
  max-width: 0 !important;
  height: 0 !important;
  max-height: 0 !important;
  padding: 0 !important;
  margin: 0;
  border: none !important;
  overflow: hidden;
  font-size: 0;
  line-height: 0;
  color: transparent;
  white-space: nowrap;
  vertical-align: top;
}

/* Desktop: ẩn hẳn nội dung trip-mobile để không kéo cao hàng */
@media (min-width: 901px) {
  .fbs-table--tickets .fbs-table__trip-mobile > * {
    display: none !important;
  }
}

.fbs-table--tickets th,
.fbs-table--tickets td {
  font-size: 0.76rem;
  vertical-align: middle;
  text-align: center;
}

.fbs-table--tickets th.fbs-table__stt-h,
.fbs-table--tickets .fbs-table__stt {
  width: 40px;
  min-width: 40px;
  padding-left: 6px;
  padding-right: 6px;
  white-space: nowrap;
}

.fbs-table--tickets th.fbs-table__name-h,
.fbs-table--tickets .fbs-table__name {
  min-width: 0;
  max-width: 0;
  font-weight: 600;
  color: #0f172a;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: left;
}

.fbs-table--tickets .fbs-table__name:has(.fbs-pax-name-cell) {
  max-width: none;
  overflow: visible;
  text-align: left !important;
}

.fbs-table--tickets .fbs-table__type {
  white-space: nowrap;
  color: #0f172a;
  font-weight: 600;
}

.fbs-table--tickets .fbs-table__route,
.fbs-table--tickets .fbs-table__datetime,
.fbs-table--tickets .fbs-table__flight {
  line-height: 1.4;
  color: #0f172a;
  font-weight: 600;
}

.fbs-table--tickets .fbs-table__airline,
.fbs-table--tickets th.fbs-table__airline-h {
  width: 148px;
  min-width: 148px;
  padding: 0;
}

.fbs-table--tickets .fbs-tickets-airline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.fbs-tickets-airline .fbs-logo-box {
  width: auto;
  height: auto;
  margin: 0 auto;
  background: transparent !important;
  border: 0 !important;
}

.fbs-tickets-airline .fbs-logo-box__img {
  height: 34px;
  max-width: 140px;
}

.fbs-table--tickets td {
  background: #fff;
}

.fbs-table--tickets .fbs-table__airline {
  background: #fff;
}

.fbs-tickets-airline--stack-single {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100%;
}

.fbs-table--tickets .fbs-table__datetime {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.fbs-table--tickets .fbs-table__flight {
  font-weight: 600;
  letter-spacing: 0.02em;
  white-space: normal;
  line-height: 1.35;
}

.fbs-flight-cell {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
}

.fbs-flight-ticket {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.fbs-table--tickets .fbs-flight-ticket .fbs-ticket-no,
.fbs-table--tickets .fbs-flight-ticket .fbs-emd-no,
.fbs-table--tickets .fbs-flight-ticket .fbs-ticket-no--receipt {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: inherit;
}

.fbs-flight-receipt {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.fbs-table--tickets .fbs-flight-receipt .fbs-ticket-no--receipt {
  font-size: inherit;
}

.fbs-table--tickets .fbs-ticket-leg-line .fbs-tickets-airline {
  display: flex;
  justify-content: center;
}

.fbs-ticket-leg-line + .fbs-ticket-leg-line {
  margin-top: 6px;
  padding-top: 6px;
  border-top: 1px dashed #e2e8f0;
}

.fbs-table--tickets th.fbs-table__ticket-h,
.fbs-table--tickets .fbs-table__ticket {
  width: 132px;
  min-width: 132px;
  max-width: 160px;
  padding-left: 10px;
  padding-right: 10px;
  text-align: center;
  overflow: visible;
  box-sizing: border-box;
}

.fbs-table--tickets .fbs-table__ticket {
  font-variant-numeric: tabular-nums;
  white-space: normal;
}

.fbs-table--tickets .fbs-ticket-cell,
.fbs-table--tickets .fbs-ticket-cell--stack {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  white-space: normal;
}

.fbs-table--tickets .fbs-ticket-cell {
  gap: 8px;
}

.fbs-ticket-cell--stack {
  flex-direction: column;
  align-items: center;
  gap: 4px;
  white-space: normal;
}

.fbs-ticket-cell__line {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex-wrap: wrap;
  width: 100%;
  line-height: 1.35;
}

.fbs-ticket-cell {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 100%;
  white-space: nowrap;
}

.fbs-ticket-no {
  display: inline;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  max-width: 100%;
  padding: 0;
  border-radius: 0;
  background: none;
  border: none;
  color: #0f172a;
  font-family: inherit;
  font-size: inherit;
  font-weight: 600;
  letter-spacing: normal;
  line-height: 1.35;
  white-space: normal;
  word-break: break-all;
  box-sizing: border-box;
}

.fbs-ticket-no--receipt {
  background: none;
  border: none;
  color: #0f172a;
  font-weight: 600;
  letter-spacing: normal;
}

/* Mobile/tablet: danh sách hành khách gọn */
@media (max-width: 900px) {
  .fbs-tickets.fbs-section {
    padding: 12px 10px;
  }

  .fbs-tickets .fbs-section__title {
    margin-bottom: 8px;
    font-size: 0.86rem;
  }

  .fbs-tickets .fbs-table-wrap {
    overflow: visible;
    border: none;
    background: transparent;
  }

  .fbs-tickets .fbs-table.fbs-table--tickets {
    display: block;
    min-width: 0 !important;
    width: 100% !important;
    table-layout: auto;
  }

  .fbs-tickets .fbs-table--tickets colgroup,
  .fbs-tickets .fbs-table--tickets thead {
    display: none;
  }

  .fbs-tickets .fbs-table--tickets tbody {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 0;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #fff;
    overflow: hidden;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
    counter-reset: fbs-pax-row;
  }

  .fbs-tickets .fbs-table--tickets tbody tr.fbs-tickets-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas: "name ticket";
    gap: 4px 10px;
    align-items: center;
    justify-items: stretch;
    justify-content: stretch;
    padding: 14px 12px;
    border: none;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    counter-increment: fbs-pax-row;
  }

  .fbs-tickets .fbs-table--tickets tbody tr.fbs-tickets-row + tr.fbs-tickets-row {
    border-top: 1px solid #eef2f6;
  }

  .fbs-tickets .fbs-table--tickets tbody tr.fbs-tickets-row--first {
    grid-template-areas:
      "trip trip"
      "name ticket";
    row-gap: 0;
    padding: 0;
  }

  .fbs-tickets .fbs-table--tickets tbody tr.fbs-tickets-row--first + tr.fbs-tickets-row {
    border-top: 1px solid #eef2f6;
    padding-top: 14px;
  }

  .fbs-tickets--no-ticket-col .fbs-table--tickets .fbs-table__ticket {
    display: block !important;
  }

  .fbs-tickets .fbs-table--tickets tbody td {
    display: block;
    width: auto !important;
    max-width: none !important;
    min-width: 0 !important;
    padding: 0;
    border: none !important;
    text-align: left !important;
    white-space: normal !important;
    background: transparent !important;
  }

  .fbs-tickets .fbs-table--tickets .fbs-table__stt,
  .fbs-tickets .fbs-table--tickets .fbs-table__airline,
  .fbs-tickets .fbs-table--tickets .fbs-table__type,
  .fbs-tickets .fbs-table--tickets .fbs-table__route,
  .fbs-tickets .fbs-table--tickets .fbs-table__datetime,
  .fbs-tickets .fbs-table--tickets .fbs-table__flight,
  .fbs-tickets .fbs-table--tickets .fbs-table__trip-mobile--empty {
    display: none !important;
  }

  .fbs-tickets .fbs-table--tickets .fbs-table__name {
    grid-area: name;
    justify-self: start;
    width: 100% !important;
    max-width: none !important;
    overflow: hidden !important;
    text-overflow: ellipsis;
    font-size: 0.8rem;
    font-weight: 600;
    line-height: 1.35;
    color: #0f172a;
    text-align: left !important;
    padding: 0 !important;
  }

  .fbs-tickets .fbs-table--tickets tbody tr.fbs-tickets-row--first .fbs-table__name {
    padding: 10px 12px 14px !important;
  }

  .fbs-tickets .fbs-table--tickets tbody tr.fbs-tickets-row--first .fbs-table__ticket {
    padding: 10px 12px 14px 8px !important;
  }

  .fbs-tickets .fbs-table--tickets .fbs-table__name::before {
    display: none;
  }

  .fbs-tickets .fbs-table--tickets .fbs-ticket-pax-name {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    width: 100%;
    min-width: 0;
    margin: 0;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    text-align: left;
  }

  .fbs-tickets .fbs-table--tickets .fbs-ticket-pax-name::before {
    content: counter(fbs-pax-row);
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 999px;
    background: #15733c;
    color: #fff;
    font-size: 0.68rem;
    font-weight: 700;
    line-height: 1;
  }

  .fbs-tickets .fbs-table--tickets .fbs-table__trip-mobile--lead {
    display: block !important;
    grid-area: trip;
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
    height: auto !important;
    max-height: none !important;
    padding: 16px 12px 14px !important;
    margin: 0;
    border: none !important;
    border-bottom: 1px solid #e8eef4;
    overflow: visible;
    font-size: inherit;
    line-height: normal;
    color: inherit;
    white-space: normal;
    background:
      linear-gradient(135deg, rgba(21, 115, 60, 0.06) 0%, transparent 42%),
      linear-gradient(180deg, #f7faf8 0%, #fff 100%);
  }

  .fbs-tickets .fbs-table--tickets .fbs-table__trip-mobile--lead::before {
    display: none;
  }

  .fbs-tickets .fbs-table--tickets .fbs-table__ticket {
    grid-area: ticket;
    justify-self: end;
    align-self: center;
    width: auto !important;
    min-width: 0 !important;
    max-width: 48%;
    margin-left: auto;
    overflow: hidden;
    text-align: right !important;
    padding: 0 0 0 8px !important;
  }

  .fbs-tickets .fbs-table--tickets .fbs-table__ticket::before {
    display: none;
  }

  .fbs-tickets .fbs-table--tickets .fbs-ticket-plain {
    display: block;
    font-size: 0.72rem;
    font-weight: 600;
    line-height: 1.3;
    color: #334155;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    word-break: break-all;
    text-align: right;
    margin-left: auto;
  }

  .fbs-tickets .fbs-table--tickets .fbs-table__ticket .fbs-muted {
    display: block;
    color: #94a3b8;
    font-weight: 500;
    font-family: inherit;
    text-align: right;
    margin-left: auto;
  }

  .fbs-tickets .fbs-table--tickets .fbs-ticket-cell,
  .fbs-tickets .fbs-table--tickets .fbs-ticket-cell--stack {
    align-items: flex-end;
    justify-content: flex-end;
    margin: 0 0 0 auto;
    text-align: right;
  }

  .fbs-tickets .fbs-table--tickets .fbs-ticket-cell__line {
    justify-content: flex-end;
  }

  .fbs-ticket-trip {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 0;
  }

  .fbs-ticket-trip + .fbs-ticket-trip {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px dashed #dbe4ee;
  }

  .fbs-ticket-trip__airports {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    min-width: 0;
  }

  .fbs-ticket-trip__end {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
  }

  .fbs-ticket-trip__end--arr {
    text-align: right;
    align-items: flex-end;
  }

  .fbs-ticket-trip__iata {
    font-size: 1.05rem;
    font-weight: 800;
    letter-spacing: 0.03em;
    color: #0f172a;
    line-height: 1.15;
  }

  .fbs-ticket-trip__hm {
    font-size: 0.76rem;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    color: #64748b;
    line-height: 1.2;
  }

  .fbs-ticket-trip__mid {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 4px;
    min-width: 78px;
    padding: 0 2px;
  }

  .fbs-ticket-trip__rail {
    display: block;
    flex: 1 1 18px;
    height: 1px;
    min-width: 12px;
    background: repeating-linear-gradient(
      90deg,
      #94a3b8 0 3px,
      transparent 3px 6px
    );
    opacity: 0.75;
  }

  .fbs-ticket-trip__flight {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 22px;
    padding: 0 8px;
    border-radius: 999px;
    border: 1px solid #cfe8d8;
    background: #fff;
    color: #15733c;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    line-height: 1;
    white-space: nowrap;
    box-shadow: 0 1px 2px rgba(21, 115, 60, 0.08);
  }

  .fbs-ticket-trip__plane {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #15733c;
  }

  .fbs-ticket-trip__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    min-width: 0;
    padding-bottom: 2px;
  }

  .fbs-ticket-trip__date {
    font-size: 0.72rem;
    font-weight: 600;
    color: #64748b;
    letter-spacing: 0.01em;
    flex-shrink: 0;
  }

  .fbs-ticket-trip__airline {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    min-width: 0;
  }

  .fbs-ticket-trip__airline .fbs-logo-box {
    max-width: 88px;
  }

  .fbs-ticket-trip__airline .fbs-logo-box__img {
    height: 20px;
    max-width: 88px;
  }

  .fbs-ticket-trip--compact {
    font-size: 0.74rem;
    font-weight: 400;
    line-height: 1.3;
    color: #64748b;
  }

  .fbs-ticket-trip--compact + .fbs-ticket-trip--compact {
    margin-top: 3px;
    padding-top: 3px;
    border-top: 1px dashed #eef2f6;
  }

  /* Tổng giá vé theo hành khách - card từng dòng */
  .fbs-pax-price .fbs-table-wrap {
    overflow: visible;
    border: none;
    background: transparent;
  }

  .fbs-pax-price .fbs-table.fbs-table--price {
    display: block;
    min-width: 0 !important;
    width: 100% !important;
    table-layout: auto;
  }

  .fbs-pax-price .fbs-table--price thead {
    display: none;
  }

  .fbs-pax-price .fbs-table--price tbody {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  .fbs-pax-price .fbs-table--price tbody tr {
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-areas:
      "stt name"
      "total total"
      "base base"
      "tax tax"
      "other other"
      "svc svc";
    gap: 0 10px;
    padding: 10px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #fff;
  }

  .fbs-pax-price .fbs-table--price tbody td {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
    width: auto !important;
    max-width: none !important;
    min-width: 0 !important;
    padding: 5px 0;
    border: none !important;
    text-align: right !important;
    white-space: nowrap !important;
    background: transparent !important;
  }

  .fbs-pax-price .fbs-table--price tbody td::before {
    content: attr(data-label);
    flex: 1;
    min-width: 0;
    text-align: left;
    font-size: 0.66rem;
    font-weight: 600;
    color: #64748b;
    white-space: normal;
  }

  .fbs-pax-price .fbs-table--price tbody .fbs-table__stt {
    grid-area: stt;
    padding: 0;
    font-size: 0.72rem;
    font-weight: 700;
    color: #94a3b8;
    text-align: left !important;
    align-self: start;
  }

  .fbs-pax-price .fbs-table--price tbody .fbs-table__stt::before {
    display: none;
  }

  .fbs-pax-price .fbs-table--price tbody .fbs-table__name {
    grid-area: name;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 0 0 8px;
    margin-bottom: 4px;
    border-bottom: 1px solid #eef2f6;
    text-align: left !important;
    white-space: normal !important;
    font-weight: 700;
  }

  .fbs-pax-price .fbs-table--price tbody .fbs-table__name::before {
    display: block;
    width: 100%;
    margin-bottom: 3px;
    font-size: 0.58rem;
    font-weight: 600;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.05em;
  }

  .fbs-pax-price .fbs-table--price tbody .fbs-pax-name-cell {
    justify-content: flex-start;
  }

  .fbs-pax-price .fbs-table--price tbody .fbs-table__num--total { grid-area: total; font-weight: 700; color: #0f172a; }
  .fbs-pax-price .fbs-table--price tbody .fbs-table__num--base { grid-area: base; }
  .fbs-pax-price .fbs-table--price tbody .fbs-table__num--tax { grid-area: tax; }
  .fbs-pax-price .fbs-table--price tbody .fbs-table__num--other { grid-area: other; }
  .fbs-pax-price .fbs-table--price tbody .fbs-table__num--svc { grid-area: svc; }

  .fbs-pax-price .fbs-table--price tfoot {
    display: block;
    margin-top: 10px;
  }

  .fbs-pax-price .fbs-table--price tfoot tr {
    display: block;
    padding: 10px 12px;
    border: 1px solid #dbeafe;
    border-radius: 8px;
    background: #f8fafc;
  }

  .fbs-pax-price .fbs-table--price tfoot td {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
    width: 100% !important;
    padding: 5px 0;
    border: none !important;
    text-align: right !important;
    white-space: nowrap !important;
    background: transparent !important;
  }

  .fbs-pax-price .fbs-table--price tfoot .fbs-price-summary__title {
    display: block;
    padding: 0 0 8px;
    margin-bottom: 4px;
    border-bottom: 1px solid #e2e8f0;
    font-size: 0.84rem;
    color: #0f172a;
    text-align: left !important;
  }

  .fbs-pax-price .fbs-table--price tfoot .fbs-table__num::before {
    content: attr(data-label);
    flex: 1;
    min-width: 0;
    text-align: left;
    font-size: 0.66rem;
    font-weight: 600;
    color: #64748b;
  }

  .fbs-pax-price .fbs-table--price tfoot .fbs-table__num--total {
    font-weight: 700;
    color: #b91c1c;
  }
}

.fbs-ticket-issued-at {
  display: inline;
  flex-shrink: 0;
  font-size: 0.7rem;
  font-weight: 600;
  color: #15803d;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.fbs-table__ticket-hint {
  margin-top: 2px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.68rem;
  line-height: 1.35;
  color: #1d4ed8;
  word-break: break-all;
}

.fbs-table__ticket-hint__row {
  display: block;
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
  max-width: none;
}

.fbs-table__ticket-hint__row + .fbs-table__ticket-hint__row {
  margin-top: 2px;
}

.fbs-muted {
  color: #94a3b8;
}

.fbs-table__empty {
  color: #94a3b8;
  font-style: italic;
  text-align: center;
}

@media (max-width: 768px) {
  .fbs-table__th,
  .fbs-table__td {
    padding: 8px 10px;
  }
}

/* Toast thông báo (dùng chung class .ffw-toast* với flight-fare-watch) */
.ffw-toast-wrap {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 4000;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
  max-width: min(420px, calc(100vw - 36px));
}

.ffw-toast {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid #e2e8f0;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.14);
  pointer-events: auto;
  animation: ffw-toast-in 0.22s ease forwards;
  opacity: 0;
  transform: translateY(10px) scale(0.98);
}

.ffw-toast--out {
  animation: ffw-toast-out 0.2s ease forwards;
}

.ffw-toast--success {
  border-color: #86efac;
  background: linear-gradient(135deg, #f0fdf4 0%, #ffffff 55%);
}

.ffw-toast--error {
  border-color: #fca5a5;
  background: linear-gradient(135deg, #fef2f2 0%, #ffffff 55%);
}

.ffw-toast--info {
  border-color: #93c5fd;
  background: linear-gradient(135deg, #eff6ff 0%, #ffffff 55%);
}

.ffw-toast__icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 999px;
}

.ffw-toast__icon--success {
  background: #dcfce7;
  color: #15803d;
}

.ffw-toast__icon--error {
  background: #fee2e2;
  color: #dc2626;
}

.ffw-toast__icon--info {
  background: #dbeafe;
  color: #1d4ed8;
}

.ffw-toast__body {
  flex: 1;
  min-width: 0;
  padding-top: 2px;
}

.ffw-toast__title {
  margin: 0 0 4px;
  font-size: 0.9rem;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.35;
}

.ffw-toast__msg {
  margin: 0;
  font-size: 0.82rem;
  color: #475467;
  line-height: 1.45;
}

.ffw-toast--success .ffw-toast__title {
  color: #14532d;
}

.ffw-toast--error .ffw-toast__title {
  color: #991b1b;
}

.ffw-toast__close {
  flex-shrink: 0;
  border: none;
  background: transparent;
  color: #94a3b8;
  font-size: 1.25rem;
  line-height: 1;
  padding: 0 0 0 4px;
  cursor: pointer;
  margin: -2px -2px 0 0;
}

.ffw-toast__close:hover {
  color: #64748b;
}

@keyframes ffw-toast-in {
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes ffw-toast-out {
  to {
    opacity: 0;
    transform: translateY(8px) scale(0.98);
  }
}

@media (max-width: 520px) {
  .ffw-toast-wrap {
    right: 10px;
    left: 10px;
    bottom: 10px;
    max-width: none;
  }
}

.fbs-edit-history__tbl td {
  vertical-align: top;
}

.fbs-edit-history__when-cell {
  width: 1%;
  max-width: 7rem;
  white-space: nowrap;
}

.fbs-edit-history__when {
  display: inline-grid;
  grid-template-columns: 1fr;
  row-gap: 0.1rem;
  align-items: start;
  font-variant-numeric: tabular-nums;
  line-height: 1.3;
  font-size: 0.82rem;
}

.fbs-edit-history__when-date {
  color: #334155;
}

.fbs-edit-history__when-time {
  color: #0f172a;
  font-weight: 600;
}

.fbs-edit-history__action {
  width: 1%;
  max-width: 18rem;
  white-space: normal;
  word-break: break-word;
}

.fbs-edit-history__actor {
  font-weight: 600;
  color: #334155;
}

.fbs-edit-history__action-sep {
  color: #94a3b8;
}

.fbs-edit-history__detail-lines {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.fbs-edit-history__detail-row {
  line-height: 1.35;
  color: #0f172a;
  font-size: 0.86rem;
}

.fbs-edit-history__detail-row--fw {
  margin-top: 0.2rem;
}

.fbs-edit-history__fw-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.28rem 0.7rem;
  border: 1px solid #0b6e4f;
  border-radius: 6px;
  background: #f0faf6;
  color: #0b6e4f;
  font-size: 0.78rem;
  font-weight: 600;
  text-decoration: none;
  line-height: 1.3;
  cursor: pointer;
  font-family: inherit;
}

.fbs-edit-history__fw-btn:hover {
  background: #0b6e4f;
  color: #fff;
}

.fbs-fw-hist-overlay {
  position: fixed;
  inset: 0;
  z-index: 12000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(15, 23, 42, 0.45);
  opacity: 0;
  transition: opacity 0.18s ease;
}

.fbs-fw-hist-overlay--in {
  opacity: 1;
}

.fbs-fw-hist-overlay--out {
  opacity: 0;
}

.fbs-fw-hist {
  position: relative;
  width: min(720px, 100%);
  max-height: min(82vh, 720px);
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.22);
  transform: translateY(8px);
  transition: transform 0.18s ease;
  overflow: hidden;
}

.fbs-fw-hist-overlay--in .fbs-fw-hist {
  transform: none;
}

.fbs-fw-hist__close {
  position: absolute;
  top: 0.65rem;
  right: 0.75rem;
  border: 0;
  background: transparent;
  font-size: 1.4rem;
  line-height: 1;
  color: #64748b;
  cursor: pointer;
}

.fbs-fw-hist__head {
  padding: 1.15rem 1.25rem 0.75rem;
  border-bottom: 1px solid #e2e8f0;
}

.fbs-fw-hist__eyebrow {
  margin: 0 0 0.2rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #0b6e4f;
}

.fbs-fw-hist__title {
  margin: 0;
  font-size: 1.15rem;
  color: #0f172a;
}

.fbs-fw-hist__meta {
  margin: 0.35rem 0 0;
  font-size: 0.82rem;
  color: #64748b;
}

.fbs-fw-hist__body {
  padding: 0.85rem 1.25rem;
  overflow: auto;
  flex: 1;
}

.fbs-fw-hist__empty {
  margin: 0.5rem 0;
  color: #64748b;
  font-size: 0.9rem;
}

.fbs-fw-hist__table-wrap {
  overflow: auto;
}

.fbs-fw-hist__tbl {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.84rem;
}

.fbs-fw-hist__tbl th,
.fbs-fw-hist__tbl td {
  padding: 0.45rem 0.5rem;
  border-bottom: 1px solid #e2e8f0;
  text-align: left;
  vertical-align: top;
}

.fbs-fw-hist__tbl th {
  color: #64748b;
  font-weight: 600;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.fbs-fw-hist__actions {
  padding: 0.75rem 1.25rem 1rem;
  border-top: 1px solid #e2e8f0;
  display: flex;
  justify-content: flex-end;
}

.fbs-fw-hist__btn {
  border: 1px solid #cbd5e1;
  background: #fff;
  color: #0f172a;
  border-radius: 8px;
  padding: 0.45rem 0.95rem;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
}

.fbs-fw-hist__btn:hover {
  background: #f8fafc;
}

.fbs-edit-history__detail-line {
  display: grid;
  grid-template-columns: 5.75rem minmax(0, 1fr) auto;
  column-gap: 0.5rem;
  align-items: baseline;
  line-height: 1.35;
}

.fbs-edit-history__detail-label {
  color: #475569;
  white-space: nowrap;
}

.fbs-edit-history__detail-value {
  min-width: 0;
}

.fbs-edit-history__detail-fee {
  white-space: nowrap;
  color: #334155;
  font-size: 0.92rem;
}

.fbs-edit-history__detail-fee--free {
  color: #dc2626;
  font-weight: 600;
  font-size: 0.78rem;
}

.fbs-edit-history__tbl th:nth-child(1),
.fbs-edit-history__tbl td:nth-child(1) {
  width: 12%;
  max-width: 7rem;
}

.fbs-edit-history__tbl th:nth-child(2),
.fbs-edit-history__tbl td:nth-child(2) {
  width: 24%;
  max-width: 18rem;
}

.fbs-edit-history__tbl th:nth-child(3),
.fbs-edit-history__tbl td:nth-child(3) {
  width: 64%;
  min-width: 0;
}

/* ============================================================
   Redesign trang chi tiết đặt chỗ (xem chi tiết booking) — v2
   Bỏ kiểu kẻ ô cũ, bảng chỉ còn vạch ngang, card bo tròn, tabs pill
   ============================================================ */

/* Bỏ card-trong-card: wrapper ngoài trong suốt, mỗi khối con là 1 card */
.fbs-section--detail {
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 0;
}

.fbs-section--detail .fbs-section {
  border-radius: 4px;
  border: 1px solid #e6ebf2;
  background: #fff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 8px 24px -18px rgba(15, 23, 42, 0.18);
  padding: 20px 22px;
  margin-bottom: 16px;
}

.fbs-section--detail .fbs-output-row .fbs-section {
  margin-bottom: 0;
}

/* Tiêu đề khối: giữ thanh dọc xanh như cũ, cỡ chữ thoáng hơn */
.fbs-section--detail .fbs-section__title {
  margin-bottom: 14px;
  font-size: 0.98rem;
  font-weight: 700;
  letter-spacing: normal;
  color: #1e293b;
}

/* Chuỗi reservation key: thu nhỏ, mờ, 1 dòng — không chiếm sự chú ý */
.fbs-detail-reskey {
  font-family: Consolas, "Courier New", monospace;
  font-size: 0.66rem;
  color: #94a3b8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Tiêu đề trang + nút quay lại */
.fbs-detail-head .fbs-section__title {
  font-size: 1.12rem;
  margin-bottom: 0;
}

.fbs-detail-back {
  border: none;
  border-radius: 10px;
  background: #f1f5f9;
  transition: background 0.12s ease, color 0.12s ease;
}

/* Header card: nền trắng đơn giản, badge dạng pill */
.fbs-section--detail .fbs-head__card {
  border-radius: 4px;
  border-color: #dbe3ec;
  background: #fff;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05);
}

.fbs-section--detail .fbs-head__body {
  padding: 16px 20px;
  gap: 12px;
}

.fbs-section--detail .fbs-head__badge {
  border-radius: 999px;
  padding: 0 13px;
}

.fbs-section--detail .fbs-head__total-value {
  color: #ea580c;
}

.fbs-section--detail .fbs-head-chip {
  border-radius: 6px;
}

/* Nhãn nhỏ trong header: chữ thường, không giãn - đỡ khô cứng */
.fbs-section--detail .fbs-head__label,
.fbs-section--detail .fbs-countdown__label {
  text-transform: none;
  letter-spacing: normal;
  font-size: 0.72rem;
}

.fbs-section--detail .fbs-detail__subtitle {
  text-transform: none;
  letter-spacing: normal;
  font-size: 0.82rem;
  color: #334155;
}

.fbs-section--detail .fbs-head__copy {
  transition: background 0.12s ease, border-color 0.12s ease;
}

/* ---- Bảng: đơn giản, chỉ vạch ngang mảnh trong khung bo góc nhẹ ---- */
.fbs-section--detail .fbs-table-wrap {
  border: 1px solid #e2e8f0;
  border-radius: 4px;
  background: #fff;
  overflow-x: auto;
}

.fbs-section--detail .fbs-table th,
.fbs-section--detail .fbs-table td {
  border: none;
  border-bottom: 1px solid #eef2f7;
  padding: 11px 14px;
}

.fbs-section--detail .fbs-table td {
  font-size: 0.8rem;
  line-height: 1.5;
}

/* Header bảng: nền xanh cây, chữ trắng */
.fbs-section--detail .fbs-table th {
  background: var(--bm-table-th-bg, var(--shell-blue, #15733c));
  border-bottom: none;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: none;
  letter-spacing: normal;
  color: var(--bm-table-th-color, #fff);
  padding: 10px 14px;
}

/* Hành khách & chuyến bay + bảng giá: cùng chiều cao padding dọc */
.fbs-section--detail .fbs-tickets .fbs-table--tickets th,
.fbs-section--detail .fbs-tickets .fbs-table--tickets td,
.fbs-section--detail .fbs-pax-price .fbs-table--price th,
.fbs-section--detail .fbs-pax-price .fbs-table--price td {
  padding-top: 4px;
  padding-bottom: 4px;
}

.fbs-section--detail .fbs-tickets .fbs-table--tickets th,
.fbs-section--detail .fbs-pax-price .fbs-table--price th {
  padding-top: 6px;
  padding-bottom: 6px;
}

.fbs-section--detail .fbs-tickets .fbs-table--tickets .fbs-table__airline,
.fbs-section--detail .fbs-tickets .fbs-table--tickets th.fbs-table__airline-h {
  padding-top: 2px;
  padding-bottom: 2px;
}

.fbs-section--detail .fbs-table tbody tr:last-child td {
  border-bottom: none;
}

.fbs-section--detail .fbs-table tfoot td {
  background: #f8fafc;
  border-top: none;
  border-bottom: none;
  font-weight: 700;
}

/* Mobile: trả lại layout dạng card của bảng vé / bảng giá */
@media (max-width: 900px) {
  .fbs-section--detail .fbs-tickets .fbs-table-wrap,
  .fbs-section--detail .fbs-pax-price .fbs-table-wrap {
    border: none;
    border-radius: 0;
    background: transparent;
    overflow: visible;
  }
}

/* ---- Tabs SMS + nút copy: dạng pill, màu như cũ ---- */
.fbs-section--detail .fbs-sms__tab {
  border-radius: 999px;
  transition: background 0.12s ease, border-color 0.12s ease, color 0.12s ease;
}

.fbs-section--detail .fbs-copy-btn {
  border-radius: 4px;
  transition: background 0.12s ease, border-color 0.12s ease;
}

/* ---- Form gửi mail + nút ---- */
.fbs-section--detail .fbs-field input,
.fbs-section--detail .fbs-field select {
  height: 38px;
  border-radius: 4px;
  border-color: #cbd5e1;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.fbs-section--detail .fbs-field input:focus,
.fbs-section--detail .fbs-field select:focus {
  outline: none;
  border-color: var(--shell-blue, #15733c);
  box-shadow: 0 0 0 3px rgba(21, 115, 60, 0.1);
}

.fbs-section--detail .fbs-btn {
  border-radius: 4px;
  transition: background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.fbs-section--detail .fbs-btn--primary:hover {
  box-shadow: 0 2px 8px rgba(21, 115, 60, 0.25);
}

/* ---- Ô Mặt booking / SMS ---- */
.fbs-section--detail .fbs-face__text,
.fbs-section--detail .fbs-sms__text {
  border: 1px solid #dbe3ec;
  border-radius: 4px;
  padding: 10px 12px;
  background: #fcfdfe;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.fbs-section--detail .fbs-output-row--comm .fbs-face__text,
.fbs-section--detail .fbs-output-row--comm .fbs-sms__text,
.fbs-section--detail .fbs-output-row:not(.fbs-output-row--mail) .fbs-face__text,
.fbs-section--detail .fbs-output-row:not(.fbs-output-row--mail) .fbs-sms__text {
  min-height: 0;
}

.fbs-section--detail .fbs-face__text:focus,
.fbs-section--detail .fbs-sms__text:focus {
  outline: none;
  background: #fff;
  border-color: var(--shell-blue, #15733c);
  box-shadow: 0 0 0 3px rgba(21, 115, 60, 0.1);
}

/* ---- Lịch sử sửa đặt chỗ: người thao tác dạng chip ---- */
.fbs-section--detail .fbs-edit-history__actor {
  display: inline-block;
  padding: 2px 9px;
  border-radius: 999px;
  background: #eef2f7;
  color: #475569;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: normal;
}

/* ---- Khối JSON debug: thành card riêng, gọn gàng ---- */
.fbs-section--detail .fbs-json {
  margin: 0 0 10px;
  padding: 10px 16px;
  border: 1px solid #e6ebf2;
  border-radius: 4px;
  background: #fff;
}

.fbs-section--detail .fbs-json summary {
  padding: 2px 0;
}

.fbs-section--detail .fbs-json pre {
  border-radius: 8px;
}
.fbs-qa-overlay {
  position: fixed;
  inset: 0;
  z-index: 12000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  background: rgba(15, 23, 42, 0.48);
  backdrop-filter: blur(2px);
  box-sizing: border-box;
}
.fbs-qa-overlay[hidden] {
  display: none !important;
}
.fbs-qa-card {
  width: 100%;
  max-width: 460px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  box-shadow: 0 20px 48px rgba(15, 23, 42, 0.2);
  overflow: hidden;
}
.fbs-qa-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 20px;
  border-bottom: 1px solid #eef2f7;
}
.fbs-qa-card__title {
  margin: 0;
  font-size: 1.02rem;
  font-weight: 700;
  color: #0f172a;
  letter-spacing: -0.01em;
}
.fbs-qa-card__close {
  border: none;
  background: transparent;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  font-size: 1.35rem;
  line-height: 1;
  color: #64748b;
  cursor: pointer;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.fbs-qa-card__close:hover {
  background: #f1f5f9;
  color: #334155;
}
.fbs-qa-card__body {
  padding: 14px 16px 12px;
  max-height: min(62vh, 480px);
  overflow-y: auto;
}
.fbs-qa-card__note {
  margin: 12px 0 0;
  padding: 10px 12px;
  border-radius: 8px;
  background: #fff7ed;
  border: 1px solid #fdba74;
  color: #9a3412;
  font-size: 13px;
  line-height: 1.5;
}
.fbs-qa-card__note strong {
  color: #7c2d12;
}
.fbs-qa-card__summary {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.fbs-qa-card__panel {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 14px;
  border: 1px solid #e8edf4;
  border-radius: 12px;
  background: #fff;
}
.fbs-qa-card__hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 0 0 12px;
  border: none;
  border-bottom: 1px solid #f1f5f9;
  border-radius: 0;
  background: transparent;
}
.fbs-qa-card__logo {
  width: auto;
  height: 36px;
  max-width: 120px;
  object-fit: contain;
  object-position: left center;
  flex: 0 0 auto;
  display: block;
  border: none;
  border-radius: 0;
  background: transparent;
  padding: 0;
  box-sizing: border-box;
}
.fbs-qa-card__pnr {
  margin: 0;
  flex: 0 0 auto;
  padding: 5px 11px;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: #fff;
  background: #15733c;
  border: none;
  border-radius: 8px;
  text-align: center;
  line-height: 1.2;
}
.fbs-qa-card__legs {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.fbs-qa-card__leg {
  padding: 0;
  border: none;
  border-radius: 0;
  background: transparent;
}
.fbs-qa-card__leg-label {
  margin-bottom: 6px;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #64748b;
}
.fbs-qa-card__leg-route {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}
.fbs-qa-card__leg-route b {
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  color: #0f172a;
  line-height: 1.1;
}
.fbs-qa-card__route-arrow {
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
  color: #15733c;
}
.fbs-qa-card__leg-meta {
  margin-top: 6px;
  text-align: center;
  font-size: 0.76rem;
  font-weight: 600;
  color: #64748b;
  line-height: 1.35;
}
.fbs-qa-card__pax-line {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 0 0;
  border: none;
  border-top: 1px solid #f1f5f9;
  border-radius: 0;
  background: transparent;
}
.fbs-qa-card__pax-line-label {
  font-size: 0.68rem;
  font-weight: 600;
  color: #64748b;
}
.fbs-qa-card__pax-line strong {
  font-size: 0.88rem;
  font-weight: 700;
  color: #0f172a;
  letter-spacing: 0.02em;
  word-break: break-word;
}
.fbs-qa-card__pax {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 12px 0 0;
  border-top: 1px solid #f1f5f9;
}
.fbs-qa-card__pax-head {
  font-size: 0.68rem;
  font-weight: 600;
  color: #64748b;
}
.fbs-qa-card__pax-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.fbs-qa-card__pax-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
}
.fbs-qa-card__pax-name {
  flex: 1 1 auto;
  min-width: 0;
  font-size: 0.84rem;
  font-weight: 600;
  color: #0f172a;
  word-break: break-word;
}
.fbs-qa-card__pax-amt {
  flex: 0 0 auto;
  font-size: 0.84rem;
  font-weight: 700;
  color: #ea580c;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.fbs-qa-card__pax-amt--empty {
  color: #94a3b8;
  font-weight: 500;
}
.fbs-qa-card__deadline {
  margin: 0;
  padding: 0 2px;
  font-size: 0.76rem;
  color: #64748b;
  text-align: center;
}
.fbs-qa-card__deadline strong {
  color: #0f172a;
  font-weight: 700;
}
.fbs-qa-card__total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 7px 12px;
  border-radius: 10px;
  background: #15733c;
  color: #fff;
}
.fbs-qa-card__total-label {
  font-size: 0.74rem;
  font-weight: 600;
  opacity: 0.92;
}
.fbs-qa-card__total-val {
  font-size: 0.98rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  font-variant-numeric: tabular-nums;
}
.fbs-qa-card__total-val small {
  font-size: 0.72rem;
  font-weight: 700;
  opacity: 0.9;
}
.fbs-qa-card__lead {
  margin: 0 0 8px;
  font-size: 0.84rem;
  color: #64748b;
  line-height: 1.45;
}
.fbs-qa-card__facts {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0;
  border: 1px solid #eef2f7;
  border-radius: 10px;
  overflow: hidden;
}
.fbs-qa-card__facts li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  font-size: 0.84rem;
  padding: 11px 14px;
  border-bottom: 1px solid #eef2f7;
}
.fbs-qa-card__facts li:last-child {
  border-bottom: none;
}
.fbs-qa-card__facts li:nth-child(even) {
  background: #fafbfc;
}
.fbs-qa-card__facts span {
  color: #64748b;
  flex: 0 0 auto;
}
.fbs-qa-card__facts strong {
  color: #0f172a;
  text-align: right;
  font-weight: 650;
  min-width: 0;
  word-break: break-word;
}
.fbs-qa-card__status {
  margin: 12px 0 0;
  font-size: 0.8rem;
  color: #64748b;
  line-height: 1.45;
}
.fbs-qa-card__status.is-ok {
  color: #15733c;
  font-weight: 600;
}
.fbs-qa-card__status.is-error {
  color: #b91c1c;
  font-weight: 600;
}
.fbs-qa-card__actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 10px 18px 14px;
  border-top: 1px solid #eef2f7;
  background: #f8fafc;
}
.fbs-qa-card__btn {
  border-radius: 8px;
  padding: 7px 16px;
  min-width: 88px;
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, transform 0.12s;
}
.fbs-qa-card__btn:active {
  transform: translateY(1px);
}
.fbs-qa-card__btn--ghost {
  border: 1px solid #cbd5e1;
  background: #fff;
  color: #475569;
}
.fbs-qa-card__btn--ghost:hover {
  background: #f8fafc;
  border-color: #94a3b8;
}
.fbs-qa-card__btn--primary {
  border: 1px solid #15733c;
  background: #15733c;
  color: #fff;
}
.fbs-qa-card__btn--primary:hover {
  background: #0f5c30;
}
.fbs-qa-overlay.is-busy .fbs-qa-card__btn--primary {
  opacity: 0.85;
}
.fbs-qa-card__btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}
.fbs-qa-success-overlay .fbs-qa-success-card {
  text-align: center;
  max-width: 420px;
}
.fbs-qa-success__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  margin: 22px auto 0;
  border-radius: 50%;
  background: #dcfce7;
  color: #15803d;
}
.fbs-qa-success__head {
  justify-content: center;
  border-bottom: none;
  padding: 12px 22px 0;
}
.fbs-qa-success__title {
  color: #15803d;
  width: 100%;
  text-align: center;
}
.fbs-qa-success-overlay .fbs-qa-card__body {
  padding: 12px 22px 8px;
}
.fbs-qa-success__simple {
  text-align: center;
}
.fbs-qa-success__line {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.55;
  color: #0f172a;
}
.fbs-qa-success__line strong {
  color: #dc2626;
  font-weight: 700;
}
.fbs-qa-success__note {
  margin: 10px 0 0;
  font-size: 0.8rem;
  line-height: 1.45;
  color: #b45309;
}
.fbs-qa-success__mail {
  margin: 8px 0 0;
  font-size: 0.88rem;
  line-height: 1.4;
}
.fbs-qa-success__mail--ok {
  color: #15803d;
}
.fbs-qa-success__mail--warn {
  color: #b45309;
}
.fbs-qa-success__actions {
  justify-content: center;
  border-top: none;
  background: #fff;
  padding: 8px 22px 22px;
}
.fbs-qa-success__actions .fbs-qa-card__btn {
  min-width: 120px;
}
@media (max-width: 768px) {
  .fbs-qa-overlay {
    padding: 12px 10px;
    align-items: center;
  }
  .fbs-qa-card {
    max-width: 100%;
    border-radius: 16px 16px 12px 12px;
  }
}

.fbs-qa-card__btn--danger {
  border: 1px solid #b91c1c;
  background: #dc2626;
  color: #fff;
}
.fbs-qa-card__btn--danger:hover {
  background: #b91c1c;
}

/* Modal đổi đại lý (reuse claim picker styles) */
body.fbs-claim-modal-open {
  overflow: hidden;
}
.fbs-claim-overlay {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(15, 23, 42, 0.45);
}
.fbs-claim-card {
  width: min(520px, 100%);
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 18px 48px rgba(15, 23, 42, 0.22);
  overflow: visible;
}
.fbs-claim-card__head {
  padding: 18px 20px 10px;
}
.fbs-claim-card__title {
  margin: 0 0 8px;
  font-size: 1.05rem;
  font-weight: 700;
  color: #0f172a;
}
.fbs-claim-card__sub {
  margin: 0;
  font-size: 0.84rem;
  line-height: 1.45;
  color: #475569;
}
.fbs-claim-card__body {
  padding: 8px 20px 4px;
}
.fbs-claim-label {
  display: block;
  margin-bottom: 6px;
  font-size: 0.78rem;
  font-weight: 600;
  color: #334155;
}
.fbs-claim-req {
  color: #dc2626;
}
.fbs-claim-combo {
  position: relative;
}
.fbs-claim-input {
  width: 100%;
  border: 1px solid #94a3b8;
  border-radius: 6px;
  padding: 10px 12px;
  font-family: inherit;
  font-size: 0.9rem;
}
.fbs-claim-input:focus {
  outline: none;
  border-color: #15733c;
  box-shadow: 0 0 0 3px rgba(21, 115, 60, 0.15);
}
.fbs-claim-dropdown {
  position: fixed;
  max-height: 280px;
  overflow: auto;
  background: #fff;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.18);
  z-index: 90;
}
.fbs-claim-option {
  display: block;
  width: 100%;
  text-align: left;
  border: 0;
  background: transparent;
  padding: 9px 12px;
  font: inherit;
  font-size: 0.84rem;
  color: #1e293b;
  border-bottom: 1px solid #eef2f7;
  cursor: pointer;
}
.fbs-claim-option:last-child {
  border-bottom: 0;
}
.fbs-claim-option:hover,
.fbs-claim-option.is-active {
  background: #e8f5ec;
}
.fbs-claim-option--muted {
  color: #64748b;
  cursor: default;
}
.fbs-claim-option--muted:hover {
  background: transparent;
}
.fbs-claim-hint {
  margin: 8px 0 0;
  font-size: 0.78rem;
  color: #64748b;
}
.fbs-claim-error {
  margin: 8px 0 0;
  font-size: 0.8rem;
  color: #b91c1c;
}
.fbs-claim-card__actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding: 14px 20px 18px;
}
.fbs-claim-card__actions .fbs-claim-btn--primary {
  min-width: 148px;
}
.fbs-claim-btn {
  min-width: 108px;
  border-radius: 6px;
  border: 1px solid transparent;
  padding: 9px 14px;
  font: inherit;
  font-size: 0.86rem;
  font-weight: 600;
  cursor: pointer;
}
.fbs-claim-btn--ghost {
  background: #fff;
  border-color: #cbd5e1;
  color: #334155;
}
.fbs-claim-btn--primary {
  background: #15733c;
  color: #fff;
}
.fbs-claim-btn--primary:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}
