/* PrismTrip: Bookings, Wallet and Markup pages */

/* ---------- Toolbar & list ---------- */
.bk-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}
.bk-toolbar .search {
  flex: 1 1 240px;
  min-width: 220px;
  max-width: 340px;
}
.bk-toolbar .spacer {
  flex: 1;
}
.bk-toolbar .select {
  height: 40px;
  font-size: 13px;
}
.tabs--scroll {
  max-width: 100%;
  overflow-x: auto;
  scrollbar-width: none;
}
.tabs--scroll button {
  flex: none;
}
.bk-table td {
  cursor: pointer;
}
.bk-table td:last-child {
  cursor: default;
}
.bk-id {
  display: block;
  font-weight: 600;
  white-space: nowrap; /* IDs never break across lines */
}
.sub {
  display: block;
  color: var(--muted);
  font-size: 12px;
}
.num {
  text-align: right;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.num .profit {
  display: block;
  color: var(--ok);
  font-size: 12px;
  font-weight: 600;
}
.soon-tag {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  font-weight: 600;
}
.soon-tag.is-urgent {
  color: var(--bad);
}
.soon-tag.is-warn {
  color: var(--warn);
}
.row-menu {
  position: relative;
}
.row-menu .icon-btn {
  width: 34px;
  height: 34px;
}
.row-menu .menu {
  right: 0;
  top: 40px;
}
.pager {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 18px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}
.pager__btns {
  display: flex;
  gap: 6px;
}
.pager__btns button {
  display: grid;
  place-items: center;
  min-width: 34px;
  height: 34px;
  padding: 0 8px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--ink-2);
  font-weight: 600;
}
.pager__btns button[aria-current='page'] {
  border-color: var(--ink);
  background: var(--ink);
  color: #fff;
}
.pager__gap {
  display: grid;
  min-width: 20px;
  place-items: center;
  color: var(--muted);
}
.pager__btns button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
.mini-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.mini-stat {
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
}
.mini-stat span {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
}
.mini-stat span i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--dot);
}
.mini-stat strong {
  display: block;
  margin-top: 2px;
  font: 600 20px 'Poppins', sans-serif;
  font-variant-numeric: tabular-nums;
}
.mini-stat em {
  color: var(--ink-2);
  font-size: 12px;
  font-style: normal;
}

/* Drawer content */
.dr-route {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border-radius: 12px;
  background: var(--page);
}
.dr-route strong {
  display: block;
  font: 600 18px 'Poppins', sans-serif;
}
.dr-route span {
  color: var(--muted);
  font-size: 12px;
}
.dr-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.pax-pick {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.pax-pick label {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 13px;
  cursor: pointer;
}
.pax-pick input {
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: var(--primary);
}
.pax-pick span {
  margin-left: auto;
  color: var(--muted);
  font-size: 12px;
}
.quote {
  margin-top: 14px;
  padding: 14px;
  border-radius: 12px;
  background: var(--page);
}
.quote .price-row {
  font-size: 13px;
}

/* ---------- Wallet ---------- */
.ledger .cr {
  color: var(--ok);
  font-weight: 600;
}
.ledger .dr {
  color: var(--ink);
  font-weight: 600;
}
.ledger-type {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  flex: none;
  border-radius: 10px;
  background: var(--tone, var(--surface));
}
.ledger-type .icon {
  width: 16px;
  height: 16px;
}
.ledger-desc {
  display: flex;
  align-items: center;
  gap: 10px;
}
.ledger-desc strong {
  display: block;
  font-weight: 600;
}
.bank {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}
.bank:first-child {
  border-top: 0;
  padding-top: 0;
}
.bank__logo {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  flex: none;
  border-radius: 10px;
  background: var(--tone);
  color: #fff;
  font: 600 12px 'Poppins', sans-serif;
}
.bank strong {
  display: block;
  font-size: 13px;
}
.bank span {
  color: var(--muted);
  font-size: 12px;
}
.bank .mono {
  color: var(--ink);
}
.bank .icon-btn {
  width: 34px;
  height: 34px;
  margin-left: auto;
}
.credit-meter {
  height: 10px;
  margin: 10px 0 6px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--surface);
}
.credit-meter i {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: var(--coral);
}
.kv--tight {
  grid-template-columns: 1fr auto;
  gap: 8px;
  font-size: 13px;
}
.kv--tight dd {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

/* ---------- Switch ---------- */
.switch {
  position: relative;
  display: inline-flex;
  flex: none;
  width: 40px;
  height: 24px;
  cursor: pointer;
}
.switch input {
  position: absolute;
  opacity: 0;
}
.switch i {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: #d6d6d6;
  transition: background-color 0.3s var(--ease);
}
.switch i::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(16, 16, 16, 0.2);
  transition: transform 0.3s var(--ease);
}
.switch input:checked + i {
  background: var(--ok);
}
.switch input:checked + i::after {
  transform: translateX(16px);
}
.switch input:focus-visible + i {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* ---------- Markup ---------- */
.mk-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 20px;
  align-items: start;
}
.mk-main {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 20px;
}
.mk-defaults {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.mk-box {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
}
.mk-box h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
}
.mk-box > p {
  margin: 2px 0 12px;
  color: var(--muted);
  font-size: 12px;
}
.mk-box .seg {
  margin-bottom: 12px;
}
.mk-box .seg button {
  height: 30px;
  font-size: 13px;
}
.mk-box .field {
  margin-bottom: 10px;
}
.mk-ex {
  color: var(--ink-2);
  font-size: 12px;
}
.with-unit {
  position: relative;
}
.with-unit input {
  padding-right: 44px !important;
}
.with-unit b {
  position: absolute;
  top: 50%;
  right: 14px;
  color: var(--muted);
  font-weight: 600;
  transform: translateY(-50%);
}
.rule-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) 150px auto;
  align-items: center;
  gap: 14px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}
.rule-row:first-child {
  border-top: 0;
  padding-top: 0;
}
.rule-row.is-off .rule-row__body {
  opacity: 0.5;
}
.rule-row__body strong {
  display: block;
}
.rule-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
}
.rule-chips .pill {
  height: 22px;
  font-size: 11px;
}
.rule-row__val {
  font: 600 15px 'Poppins', sans-serif;
  text-align: right;
}
.rule-row__val span {
  display: block;
  color: var(--muted);
  font: 400 12px 'Inter', sans-serif;
}
.rule-row__tools {
  display: flex;
  gap: 4px;
}
.rule-row__tools .icon-btn {
  width: 32px;
  height: 32px;
}
.rule-row__tools .icon-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}
.fee-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.fee-grid .field {
  margin: 0;
}
.preview {
  position: sticky;
  top: 20px;
}
.preview .field {
  margin-bottom: 12px;
}
.preview .field input,
.preview .field select {
  height: 40px;
}
.pv-result {
  margin-top: 4px;
  padding: 16px;
  border-radius: 14px;
  background: var(--ink);
  color: #fff;
}
.pv-result .price-row {
  color: rgba(255, 255, 255, 0.75);
  font-size: 13px;
}
.pv-result .price-row.total {
  border-color: rgba(255, 255, 255, 0.2);
  color: #fff;
}
.pv-rule {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  color: var(--mint);
  font-size: 12px;
  font-weight: 600;
}
.pv-rule .icon {
  width: 14px;
  height: 14px;
}
.savebar {
  position: sticky;
  bottom: 12px;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px 12px 20px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  box-shadow: var(--shadow-pop);
  animation: rise 0.5s var(--ease);
}
.savebar span {
  flex: 1;
}
.savebar .btn--ghost {
  border-color: rgba(255, 255, 255, 0.25);
  background: transparent;
  color: #fff;
}

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .mk-layout {
    grid-template-columns: 1fr;
  }
  .preview {
    position: static;
  }
  .mini-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 720px) {
  .mk-defaults,
  .fee-grid {
    grid-template-columns: 1fr 1fr;
  }
  .mk-defaults {
    grid-template-columns: 1fr;
  }
  .rule-row {
    grid-template-columns: auto minmax(0, 1fr);
  }
  .rule-row__val {
    grid-column: 2;
    text-align: left;
  }
  .rule-row__tools {
    grid-column: 2;
  }
  .bk-toolbar .search {
    flex: 1 1 100%;
    max-width: none;
  }
  .dr-actions {
    grid-template-columns: 1fr;
  }
  .savebar {
    border-radius: 16px;
    flex-wrap: wrap;
  }
}

/* ---------- Group & Umrah fares ---------- */
.gf-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 16px;
}
.gf {
  display: flex;
  flex-direction: column;
  padding: 18px;
  animation: rise 0.7s var(--ease) backwards;
}
.gf__top {
  display: flex;
  align-items: center;
  gap: 12px;
}
.gf__top strong {
  display: block;
}
.gf__top .type-badge {
  margin-left: auto;
}
.gf__route {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
  font: 600 22px 'Poppins', sans-serif;
}
.gf__route .icon {
  color: var(--muted);
}
.gf__dates {
  margin-top: 4px;
  color: var(--ink-2);
  font-size: 13px;
}
.gf__facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 12px;
  margin-top: 14px;
  padding: 12px;
  border-radius: 10px;
  background: var(--page);
  font-size: 12px;
}
.gf__facts span {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--ink-2);
}
.gf__facts .icon {
  width: 14px;
  height: 14px;
  color: var(--muted);
}
.gf__seats {
  margin-top: 14px;
}
.gf__foot {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
  padding-top: 16px;
}
.gf__price strong {
  display: block;
  font: 600 22px 'Poppins', sans-serif;
  font-variant-numeric: tabular-nums;
}
.gf__price span {
  color: var(--muted);
  font-size: 12px;
}
.gf.is-full {
  opacity: 0.6;
}
.chip-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

/* ---------- Settings ---------- */
.set-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}
.set-nav {
  position: sticky;
  top: 20px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px;
}
.set-nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 40px;
  padding: 0 12px;
  border-radius: 10px;
  color: var(--ink-2);
  font-weight: 500;
  transition: background-color 0.3s var(--ease);
}
.set-nav a:hover {
  background: var(--page);
}
.set-nav a[aria-current='true'] {
  background: var(--ink);
  color: #fff;
}
.set-main {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 20px;
}
.set-main > section {
  scroll-margin-top: 20px;
}
.toggle-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}
.toggle-row:first-child {
  border-top: 0;
  padding-top: 0;
}
.toggle-row div {
  flex: 1;
}
.toggle-row strong {
  display: block;
  font-size: 14px;
}
.toggle-row .sub {
  margin-top: 1px;
}
.toggle-row .chans {
  display: flex;
  gap: 14px;
  flex: none;
}
.logo-drop {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}
.logo-drop__img {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: var(--coral);
  font: 600 22px 'Poppins', sans-serif;
}
.key-box {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--page);
}
.key-box code {
  flex: 1;
  overflow: hidden;
  font: 500 13px ui-monospace, Consolas, monospace;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ticket-preview {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  border-top: 6px solid var(--brand, var(--coral));
  font-size: 12px;
}
.ticket-preview strong {
  display: block;
  font: 600 15px 'Poppins', sans-serif;
}
.swatches {
  display: flex;
  gap: 8px;
}
.swatches button {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--sw);
  box-shadow: inset 0 0 0 1px rgba(16, 16, 16, 0.1);
}
.swatches button[aria-pressed='true'] {
  box-shadow:
    0 0 0 2px #fff,
    0 0 0 4px var(--ink);
}

/* Reports */
.rep-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.bar-cell {
  min-width: 120px;
}
/* Report cards are half the page wide: tables fit them, and scroll only on phones */
.rep-grid .ws-table {
  min-width: 460px;
}
.rep-grid > * {
  min-width: 0;
}

@media (max-width: 1024px) {
  .set-layout,
  .rep-grid {
    grid-template-columns: 1fr;
  }
  .set-nav {
    position: static;
    flex-direction: row;
    overflow-x: auto;
  }
  .set-nav a {
    flex: none;
  }
}
@media (max-width: 640px) {
  .toggle-row {
    flex-wrap: wrap;
  }
  .gf-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- Support tickets ---------- */
.sup-layout {
  display: grid;
  grid-template-columns: 380px minmax(0, 1fr);
  gap: 20px;
  align-items: stretch;
}
.sup-list {
  display: flex;
  height: 100%;
  min-height: 0;
  flex-direction: column;
  overflow: hidden;
}
.sup-list__tools {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px;
  border-bottom: 1px solid var(--line);
}
.sup-list__tools .tabs button {
  height: 32px;
  padding: 0 10px;
  font-size: 13px;
}
.sup-list__filters {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 150px;
  gap: 8px;
}
.sup-list__filters .search input {
  height: 38px;
}
.sup-list__filters .select {
  height: 38px;
  font-size: 13px;
}
.sup-list__items {
  min-height: 0;
  flex: 1;
  overflow-y: auto;
  scrollbar-width: thin;
}
.sup-item {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 12px;
  padding: 14px;
  border-bottom: 1px solid var(--line);
  border-left: 3px solid transparent;
  cursor: pointer;
  transition: background-color 0.25s var(--ease);
}
.sup-item:hover {
  background: #fafafa;
}
.sup-item.is-on {
  border-left-color: var(--primary);
  background: #f7f8ff;
}
.sup-item.is-waiting:not(.is-on) {
  border-left-color: var(--warn);
}
.sup-item__icon {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--tone);
}
.sup-item__icon .icon {
  width: 17px;
  height: 17px;
}
.sup-item__body {
  min-width: 0;
}
.sup-item__top {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
}
.sup-item__top time {
  margin-left: auto;
  white-space: nowrap;
}
.sup-item strong {
  display: block;
  margin-top: 2px;
  overflow: hidden;
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.sup-item p {
  display: -webkit-box;
  margin-top: 2px;
  overflow: hidden;
  color: var(--ink-2);
  font-size: 13px;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
.sup-item__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
}
.sup-item__meta .sub {
  display: inline;
}
.sup-urgent-tag {
  padding: 1px 8px;
  border-radius: 999px;
  background: var(--bad-soft);
  color: var(--bad);
  font-size: 11px;
  font-weight: 700;
}
/* Conversation panel: fixed height (set by fitSupLayout), header and reply box stay put,
   only the messages scroll, in the style of Zendesk / Intercom / Freshdesk. */
.sup-thread {
  display: flex;
  height: 100%;
  min-height: 0;
  flex-direction: column;
  overflow: hidden;
}
.sup-thread__head {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px 20px 14px;
  border-bottom: 1px solid var(--line);
}
.sup-thread__title {
  min-width: 0;
  flex: 1;
}
.sup-thread__head h2 {
  margin: 6px 0 6px;
  color: var(--ink);
  font-size: 18px;
  line-height: 1.35;
}
.sup-thread__head p {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
}
.sup-thread__head p .sub {
  display: inline;
}
.sup-thread__resolve {
  flex: none;
}
.sup-thread__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
}
.sup-back {
  display: none;
  flex: none;
}
.sup-booking {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 12px 20px 0;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  transition: border-color 0.3s var(--ease);
}
.sup-booking:hover {
  border-color: var(--ink);
}
.sup-booking > div {
  flex: 1;
  min-width: 0;
}
.sup-booking strong {
  display: block;
  font-size: 14px;
}
.sup-msgs {
  display: flex;
  min-height: 0;
  flex: 1;
  flex-direction: column;
  gap: 16px;
  padding: 18px 20px;
  overflow-y: auto;
  background: #fbfbfa;
  scrollbar-width: thin;
}
.sup-day {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}
.sup-day::before,
.sup-day::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}
.sup-msg {
  display: flex;
  gap: 10px;
  max-width: 76%;
}
.sup-msg .avatar {
  margin-top: 2px;
}
.sup-msg.is-mine {
  flex-direction: row-reverse;
  align-self: flex-end;
}
.sup-msg__col {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 4px;
}
.sup-msg.is-mine .sup-msg__col {
  align-items: flex-end;
}
.sup-msg__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 2px 8px;
  padding: 0 2px;
  font-size: 12px;
}
.sup-msg__head b {
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
}
.sup-msg__role,
.sup-msg__head time {
  color: var(--muted);
}
.sup-msg__bubble {
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 4px 14px 14px 14px;
  background: #fff;
}
.sup-msg.is-mine .sup-msg__bubble {
  border-color: transparent;
  border-radius: 14px 4px 14px 14px;
  background: #eef1ff;
}
.sup-msg p {
  color: #1d1d1f;
  font-size: 14px;
  line-height: 1.6;
  overflow-wrap: anywhere;
}
.sup-file {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink-2);
  font-size: 12px;
  font-weight: 600;
}
.sup-file .icon {
  width: 14px;
  height: 14px;
}
.sup-sys {
  align-self: center;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink-2);
  font-size: 12px;
}
.sup-closed {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 20px;
  border-top: 1px solid var(--line);
  background: var(--ok-soft);
  color: var(--ink-2);
  font-size: 13px;
}
.sup-closed .icon {
  color: var(--ok);
}
.sup-closed .btn {
  margin-left: auto;
}
.sup-reply {
  padding: 12px 20px 16px;
  border-top: 1px solid var(--line);
  background: #fff;
}
.sup-reply__hint {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
  color: var(--warn);
  font-size: 13px;
  font-weight: 600;
}
.sup-reply__hint .icon {
  width: 15px;
  height: 15px;
}
/* One box for the text and its buttons (Intercom / Zendesk composer). */
.sup-composer {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  transition:
    border-color 0.3s var(--ease),
    box-shadow 0.3s var(--ease);
}
.sup-composer:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-soft);
}
.sup-composer textarea {
  display: block;
  width: 100%;
  min-height: 48px;
  max-height: 140px;
  padding: 12px 14px 4px;
  border: 0;
  background: none;
  outline: none;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.55;
  resize: none;
}
.sup-composer__bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px 8px;
}
.sup-composer__bar .icon-btn {
  width: 34px;
  height: 34px;
  border: 0;
}
.sup-composer__bar .spacer {
  flex: 1;
}
.sup-composer__tip {
  color: var(--muted);
  font-size: 12px;
}
.sup-reply__file {
  color: var(--ink-2);
  font-size: 12px;
  font-weight: 600;
}
.sup-reply__file.is-on {
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--surface);
}
.sup-hint {
  display: flex;
  gap: 8px;
  margin: -4px 0 14px;
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--primary-soft);
  color: var(--ink-2);
  font-size: 13px;
}
.sup-hint .icon {
  flex: none;
  margin-top: 1px;
  color: var(--primary);
}
/* Empty screens: no tickets yet, an empty tab or search, or no ticket picked. */
.sup-empty {
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 8px;
  color: var(--muted);
  text-align: center;
}
.sup-empty--list {
  padding: 48px 24px;
}
.sup-empty--thread {
  height: 100%;
  justify-content: center;
  gap: 10px;
  padding: 40px 32px;
}
.sup-empty strong,
.sup-empty h2 {
  color: var(--ink);
}
.sup-empty strong {
  font-size: 15px;
}
.sup-empty h2 {
  font-size: 22px;
}
.sup-empty p {
  max-width: 420px;
  font-size: 14px;
  line-height: 1.6;
}
.sup-empty .btn--sm {
  margin-top: 6px;
}
.sup-empty__icon {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  margin-bottom: 4px;
  border-radius: 50%;
  background: var(--surface);
  color: var(--ink-2);
}
.sup-empty__icon--lg {
  width: 64px;
  height: 64px;
  background: var(--primary-soft);
  color: var(--primary);
}
.sup-empty__icon--lg .icon {
  width: 28px;
  height: 28px;
}
.sup-topics {
  display: grid;
  width: 100%;
  max-width: 480px;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 12px 0 6px;
}
.sup-topic {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
  text-align: left;
  transition: border-color 0.3s var(--ease);
}
.sup-topic:hover {
  border-color: var(--ink);
}
.sup-topic span {
  display: grid;
  width: 32px;
  height: 32px;
  flex: none;
  place-items: center;
  border-radius: 8px;
  background: var(--tone);
}
.sup-topic .icon {
  width: 16px;
  height: 16px;
}
.sup-empty__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 4px;
}
/* Tablet / phone: list first; opening a ticket shows the conversation with a back button. */
@media (max-width: 1024px) {
  .sup-layout {
    grid-template-columns: 1fr;
  }
  .sup-list {
    height: auto;
  }
  .sup-list__items {
    max-height: 420px;
  }
  .sup-thread {
    height: auto;
  }
  .sup-msgs {
    max-height: 60vh;
  }
  .sup-back {
    display: grid;
  }
}
@media (max-width: 640px) {
  .sup-list__filters {
    grid-template-columns: 1fr;
  }
  .sup-msg {
    max-width: 94%;
  }
  .sup-thread__head,
  .sup-msgs,
  .sup-reply {
    padding-inline: 14px;
  }
  .sup-booking {
    margin-inline: 14px;
  }
  .sup-composer__tip {
    display: none;
  }
  /* The resolve button moves under the title so the subject keeps the full width. */
  .sup-thread__head {
    flex-wrap: wrap;
  }
  .sup-thread__title {
    flex-basis: calc(100% - 60px);
  }
  .sup-thread__resolve {
    margin-left: auto;
  }
  .sup-thread__head h2 {
    font-size: 17px;
  }
  .sup-topics {
    grid-template-columns: 1fr;
  }
  .sup-empty--thread {
    padding: 32px 16px;
  }
}

/* ---------- Notifications page ---------- */
.nf-tabs {
  align-self: flex-start;
}
.nf-list {
  overflow: hidden;
}
.nf-day {
  padding: 12px 18px 8px;
  border-bottom: 1px solid var(--line);
  background: var(--page);
  color: var(--ink-2);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.nf-row {
  position: relative;
}
.nf-list .notif {
  padding: 16px 64px 16px 18px;
}
.nf-list .notif__text {
  max-width: 760px;
}
.nf-list .notif__dot {
  right: 18px;
}
.nf-toggle {
  position: absolute;
  top: 12px;
  right: 34px;
  width: 30px;
  height: 30px;
  opacity: 0;
  transition: opacity 0.2s var(--ease);
}
.nf-toggle .icon {
  width: 15px;
  height: 15px;
}
.nf-row:hover .nf-toggle,
.nf-toggle:focus-visible {
  opacity: 1;
}
@media (hover: none) {
  .nf-toggle {
    opacity: 1;
  }
}
@media (max-width: 640px) {
  .nf-list .notif {
    padding: 14px 52px 14px 14px;
  }
  .nf-toggle {
    right: 26px;
  }
}

/* ---------- Flights start page: search, recent searches and the flight desk ---------- */
.fl-search {
  margin-top: 18px;
}
/* One row, like Google Flights; extra chips scroll sideways instead of wrapping. */
.fl-recent {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px 16px;
  overflow-x: auto;
  border-top: 1px solid var(--line);
  scrollbar-width: none;
}
.fl-recent::-webkit-scrollbar {
  display: none;
}
.fl-recent__lab {
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: 6px;
  margin-right: 4px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}
.fl-recent__lab .icon {
  width: 15px;
  height: 15px;
}
.fl-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 34px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink-2);
  font-size: 13px;
  white-space: nowrap;
  transition: border-color 0.3s var(--ease);
}
.fl-chip b {
  color: var(--ink);
  font-weight: 600;
}
.fl-chip:hover {
  border-color: var(--ink);
}
.fl-recent__clear {
  flex: none;
  margin-left: auto;
  padding-left: 8px;
  font-size: 13px;
}
.fl-cols {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 20px;
  align-items: stretch;
  margin-top: 20px;
}
.fl-box {
  padding: 18px 20px 8px;
}
.fl-box__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 6px;
}
.fl-box__head h2 {
  font-size: 17px;
}
.fl-box__head p {
  margin-top: 2px;
  color: var(--muted);
  font-size: 13px;
}
.fl-box__head .link {
  font-size: 13px;
  white-space: nowrap;
}
.fl-box__head h2 {
  display: flex;
  align-items: center;
  gap: 8px;
}
.fl-count {
  display: inline-grid;
  min-width: 24px;
  height: 24px;
  place-items: center;
  padding: 0 8px;
  border-radius: 999px;
  background: var(--bad-soft);
  color: var(--bad);
  font-size: 12px;
  font-weight: 600;
}
.fl-row {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}
.fl-row__body {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 3px;
}
.fl-row__text {
  color: var(--muted);
  font-size: 13px;
}
.fl-row__end {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}
.fl-row--soon {
  grid-template-columns: 32px minmax(0, 1fr);
  align-items: start;
}
.fl-dot {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 50%;
}
.fl-dot .icon {
  width: 16px;
  height: 16px;
}
.fl-dot--bad {
  background: var(--bad-soft);
  color: var(--bad);
}
.fl-dot--warn {
  background: var(--warn-soft);
  color: var(--warn);
}
.fl-dot--ok {
  background: var(--ok-soft);
  color: var(--ok);
}
.fl-row__note {
  font-size: 13px;
  font-weight: 600;
}
.fl-row__note--bad {
  color: var(--bad);
}
.fl-row__note--warn {
  color: var(--warn);
}
/* Fine rows stay quiet so a problem stands out. */
.fl-row__note--ok {
  color: var(--muted);
  font-weight: 500;
}
.fl-row__fix {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  margin-top: 2px;
  color: var(--primary);
  font-size: 13px;
  font-weight: 600;
}
.fl-row__fix .icon {
  width: 14px;
  height: 14px;
}
@media (max-width: 1180px) {
  .fl-cols {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 640px) {
  .fl-recent {
    padding-inline: 14px;
  }
  .fl-box {
    padding-inline: 16px;
  }
  .fl-row {
    grid-template-columns: 36px minmax(0, 1fr);
  }
  .fl-row__end {
    grid-column: 2;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}
.fl-row:first-child {
  border-top: 0;
}
.fl-row__body > b {
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
}
.fl-empty {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px 0 22px;
}
.fl-empty b {
  display: block;
  font-size: 14px;
}
.fl-empty span:not(.fl-dot) {
  color: var(--muted);
  font-size: 13px;
}

/* ---------- Bookings: product switch (All · Flights · Hotels) and hotel rows ---------- */
.bk-prods {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.bk-prods button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--ink-2);
  font-size: 14px;
  font-weight: 600;
  transition:
    border-color 0.3s var(--ease),
    background-color 0.3s var(--ease),
    color 0.3s var(--ease);
}
.bk-prods button:hover {
  border-color: var(--ink);
}
.bk-prods button[aria-selected='true'] {
  border-color: var(--ink);
  background: var(--ink);
  color: #fff;
}
.bk-prods .icon {
  width: 16px;
  height: 16px;
}
.bk-prods button span {
  padding: 1px 8px;
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink-2);
  font-size: 12px;
}
.bk-prods button[aria-selected='true'] span {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
}
.bk-thumb {
  width: 40px;
  height: 40px;
  flex: none;
  border-radius: 10px;
  object-fit: cover;
  background: var(--surface);
}
.bk-table .route-cell strong {
  display: block;
  max-width: 220px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.dr-hotel img {
  width: 56px;
  height: 56px;
  flex: none;
  border-radius: 12px;
  object-fit: cover;
}
.dr-hotel span {
  display: flex;
  align-items: center;
  gap: 6px;
}
.dr-hotel .h-stars {
  color: #f2a900;
}
@media (max-width: 640px) {
  /* One row of product buttons on phones */
  /* Four equal buttons in one row on phones; the counts show in the tabs below */
  .bk-prods {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
  }
  .bk-prods button {
    justify-content: center;
    height: 38px;
    padding: 0 6px;
    gap: 6px;
    font-size: 13px;
  }
  .bk-prods button span {
    display: none;
  }
}

/* Alert boxes in Bookings drawers (same as book.css, which this page doesn't load) */
.alert {
  display: flex;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 10px;
  background: var(--warn-soft);
  color: var(--ink-2);
  font-size: 13px;
}
.alert .icon {
  flex: none;
  margin-top: 1px;
  color: var(--warn);
}
.alert--info {
  background: var(--primary-soft);
}
.alert--info .icon {
  color: var(--primary);
}

/* Markup page: product tabs and the Hotels / eSIM panels */
.mk-prods {
  margin-bottom: 16px;
}
.mk-panel {
  display: flex;
  flex-direction: column;
  gap: inherit;
}
.mk-panel[hidden] {
  display: none;
}
.mk-defaults--one {
  grid-template-columns: minmax(0, 1fr);
  max-width: 460px;
}
.mk-note {
  margin-top: 14px;
}
@media (max-width: 640px) {
  .bk-prods.mk-prods {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* Bookings: transfer vehicle tile */
.bk-tr {
  display: grid;
  width: 40px;
  height: 40px;
  flex: none;
  place-items: center;
  border-radius: 10px;
  background: var(--primary-soft);
  color: var(--primary);
}
.bk-tr .icon {
  width: 20px;
  height: 20px;
}
.bk-tr--lg {
  width: 48px;
  height: 48px;
  border-radius: 12px;
}
/* Five products: on phones each button is an icon over a short label */
@media (max-width: 640px) {
  .bk-prods:not(.mk-prods) {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 4px;
  }
  .bk-prods button {
    flex-direction: column;
    gap: 2px;
    height: 52px;
    padding: 0 2px;
    border-radius: 14px;
    font-size: 11.5px;
  }
}
/* Six products: on phones two rows of three, icon beside the label */
@media (max-width: 640px) {
  .bk-prods:not(.mk-prods) {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
  }
  .bk-prods:not(.mk-prods) button {
    flex-direction: row;
    gap: 6px;
    height: 40px;
    font-size: 13px;
  }
  /* My markup has five products: icon over a short label */
  .bk-prods.mk-prods {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 4px;
  }
}


/* A table row that holds an empty state is not a clickable row */
.bk-empty-row,
.bk-empty-row:hover td {
  cursor: default;
  background: transparent !important;
}

/* Bookings drawer: link to an open change / refund request */
.bk-req {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--page);
  color: var(--ink);
  transition: border-color 0.25s var(--ease);
}
.bk-req:hover {
  border-color: var(--ink);
}
.bk-req.is-action {
  border-color: #f6d3c6;
  background: #fff6f3;
}
.bk-req > .icon:first-child {
  width: 18px;
  height: 18px;
  flex: none;
  color: var(--primary);
}
.bk-req.is-action > .icon:first-child {
  color: var(--bad);
}
.bk-req span {
  min-width: 0;
  flex: 1;
  color: var(--muted);
  font-size: 12.5px;
}
.bk-req b {
  display: block;
  color: var(--ink);
  font-size: 13.5px;
  font-weight: 600;
}
.bk-req > .icon:last-child {
  width: 16px;
  height: 16px;
  color: var(--muted);
}

/* Phones: a wide table scrolls inside its card instead of stretching the page grid */
.grid-2 > *,
.grid-3 > * {
  min-width: 0;
}

/* Bookings: package photo in the trip column */
.bk-pkimg {
  width: 40px;
  height: 40px;
  flex: none;
  border-radius: 10px;
  object-fit: cover;
}
