/* PrismTrip admin: additions on top of dashboard.css, flight.css and pages.css */

/* Work queue on the overview */
.queue {
  display: flex;
  flex-direction: column;
}
.queue a {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
  transition: background-color 0.3s var(--ease);
}
.queue a:first-child {
  border-top: 0;
  padding-top: 0;
}
.queue a:hover strong {
  color: var(--primary);
}
.queue__icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--tone);
}
.queue strong {
  display: block;
  transition: color 0.3s var(--ease);
}
.queue span {
  color: var(--muted);
  font-size: 12px;
}
.queue b {
  min-width: 34px;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--surface);
  font: 600 14px 'Poppins', sans-serif;
  text-align: center;
}
.queue b.is-hot {
  background: var(--bad);
  color: #fff;
}

/* Supplier health */
.health {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.health__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 12px;
  font-size: 13px;
}
.health__row strong {
  display: block;
}
.health__row span {
  color: var(--muted);
  font-size: 12px;
}
.dot-ok,
.dot-warn,
.dot-bad {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
}
.dot-ok::before,
.dot-warn::before,
.dot-bad::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
}
.dot-ok {
  color: var(--ok);
}
.dot-warn {
  color: var(--warn);
}
.dot-bad {
  color: var(--bad);
}
.health__ms {
  min-width: 56px;
  color: var(--ink-2);
  font-variant-numeric: tabular-nums;
  text-align: right;
}

/* Money position */
.position {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.position__bar {
  display: flex;
  height: 14px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--surface);
}
.position__bar i {
  height: 100%;
}
.position__legend {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  font-size: 12px;
  color: var(--ink-2);
}
.position__legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.position__legend i {
  width: 10px;
  height: 10px;
  border-radius: 3px;
}

/* Agency cells */
.ag-cell {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.ag-cell strong {
  display: block;
}
.ag-cell .sub {
  white-space: nowrap;
}
.doc-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.doc {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 13px;
}
.doc .icon {
  color: var(--muted);
}
.doc strong {
  flex: 1;
}
.doc.is-missing {
  border-style: dashed;
  border-color: var(--bad);
  background: #fffafa;
}
.meter-row {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--ink-2);
}

/* Request cards */
.req-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.req {
  display: grid;
  grid-template-columns: 40px minmax(0, 1.4fr) minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  cursor: pointer;
  transition:
    border-color 0.3s var(--ease),
    box-shadow 0.3s var(--ease);
}
.req:hover {
  border-color: #d6d6d6;
  box-shadow: 0 10px 26px rgba(16, 16, 16, 0.06);
}
.req.is-urgent {
  border-left: 4px solid var(--bad);
}
.req__icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--tone);
}
.req strong {
  display: block;
}
.req__right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
}
.sla {
  font-size: 12px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.sla.is-late {
  color: var(--bad);
}
.sla.is-soon {
  color: var(--warn);
}

/* Pricing */
.grp-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.grp {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
}
.grp__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}
.grp__head span {
  color: var(--muted);
  font-size: 12px;
}
.grp .field {
  margin-bottom: 10px;
}
.sup-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 14px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}
.sup-row:first-child {
  border-top: 0;
  padding-top: 0;
}
.sup-row strong {
  display: block;
}
.block-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.block-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 6px 4px 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 13px;
}
.block-chip button {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--surface);
}
.block-chip button .icon {
  width: 12px;
  height: 12px;
}

@media (max-width: 1280px) {
  .grp-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 760px) {
  .req {
    grid-template-columns: 40px minmax(0, 1fr);
  }
  .req > :nth-child(3),
  .req__right {
    grid-column: 2;
    align-items: flex-start;
  }
  .sup-row {
    grid-template-columns: auto minmax(0, 1fr);
  }
  .sup-row > :nth-child(n + 3) {
    grid-column: 2;
  }
}

/* Admin sidebar is a little wider than the agent's: its menu names are longer
   ("Booking management", "Deposits & withdrawals"). Collapsed mode keeps the same 76px. */
@media (min-width: 1025px) {
  body.panel-admin:not(.rail-mini) .app {
    grid-template-columns: 316px minmax(0, 1fr);
  }
}
@media (max-width: 1024px) {
  body.panel-admin .rail {
    width: 316px;
  }
}

/* ---------- Products & services ---------- */
.pr-table td {
  vertical-align: middle;
}
.pr-table tr.is-off td:not(:nth-child(3)):not(:last-child) {
  opacity: 0.45;
}
.pr-group td {
  padding: 14px 16px 8px;
  background: var(--page);
  color: var(--ink-2);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.pr-group span {
  margin-left: 8px;
  color: var(--muted);
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
}
.pr-order {
  white-space: nowrap;
}
.pr-order .icon-btn {
  width: 30px;
  height: 30px;
}
.pr-order .icon-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}
.pr-order .icon {
  width: 15px;
  height: 15px;
}
.icon.pr-up {
  transform: rotate(180deg);
}
.pr-name {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 190px;
}
.pr-name strong {
  display: block;
}
.pr-icon {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  flex: none;
  border-radius: 10px;
  background: var(--surface);
  color: var(--ink);
}
.pr-icon .icon {
  width: 18px;
  height: 18px;
}
.pr-icon--lg {
  width: 44px;
  height: 44px;
  border-radius: 12px;
}
.pr-seg button {
  height: 28px;
  padding: 0 11px;
  font-size: 12px;
}
.pr-seg button[aria-pressed='true'][data-v='live'] {
  background: var(--ok);
  color: #fff;
}
.pr-seg button[aria-pressed='true'][data-v='soon'] {
  background: var(--warn-soft);
  color: var(--warn);
}
.pr-place {
  height: 34px;
  font-size: 13px;
}
.pr-place:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
/* Preview of the agent's top menu (same pill styles as the agent top bar). */
.pr-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 12px;
}
.pr-bar .prod {
  height: 32px;
  padding: 0 11px;
  font-size: 13px;
  cursor: default;
}
.pr-more {
  display: flex;
  flex-direction: column;
  margin: 8px 0 0 auto;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow-pop);
}
.pr-more .prod-menu__item {
  height: 36px;
  cursor: default;
}
/* Preview sits full width above the table: menu row on the left, the "More" list beside it. */
.pr-preview {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 240px;
  gap: 12px;
  align-items: start;
}
.pr-preview .pr-more {
  margin: 0;
}
@media (max-width: 900px) {
  .pr-preview {
    grid-template-columns: 1fr;
  }
}
/* Compact preview: menu row, then the "More" items as a wrapped row underneath. */
.pr-preview {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.pr-preview .pr-more {
  flex-direction: row;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  padding: 8px 10px;
  box-shadow: none;
  background: var(--page);
}
.pr-preview .pr-more::before {
  content: 'Under More';
  align-self: center;
  margin-right: 6px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.pr-preview .pr-more .prod-menu__item {
  height: 32px;
  padding: 0 10px;
  border-radius: 999px;
  background: #fff;
  font-size: 13px;
}
.pr-preview .pr-more .prod-menu__item em {
  margin-left: 4px;
}


/* Admin flight search: the agent's "net / customer fare" switch doesn't apply to admins. */
body.panel-admin .sort__view {
  display: none;
}
body.panel-admin .sort {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

/* ---------- Agency applications ---------- */
.ap-table td {
  vertical-align: middle;
}
.ap-prods {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}
.ap-prods span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink-2);
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
}
.ap-prods .icon {
  width: 13px;
  height: 13px;
}
.ap-chks {
  display: flex;
  flex-wrap: nowrap;
  gap: 4px;
}
.ap-chk {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 2px 7px 2px 5px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
}
.ap-chk .icon {
  width: 13px;
  height: 13px;
  stroke-width: 2.2;
}
.ap-chk.is-ok {
  background: var(--ok-soft);
  color: var(--ok);
}
.ap-chk.is-no {
  background: #f4f4f4;
  color: var(--muted);
}
.ap-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
  margin-bottom: 16px;
}
.ap-top .sub,
.ap-top .soon-tag {
  display: inline;
  margin: 0;
}
/* Checklist: email · documents · call */
.ap-steps {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}
.ap-steps li {
  position: relative;
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr);
  gap: 12px;
  padding-bottom: 16px;
}
.ap-steps li:not(:last-child)::before {
  position: absolute;
  top: 28px;
  bottom: 2px;
  left: 12px;
  border-left: 2px solid var(--line);
  content: '';
}
.ap-steps li.is-ok:not(:last-child)::before {
  border-color: #b7e4c7;
}
.ap-step__dot {
  display: grid;
  width: 26px;
  height: 26px;
  place-items: center;
  border: 2px solid var(--line);
  border-radius: 50%;
  background: #fff;
}
.is-ok > .ap-step__dot {
  border-color: var(--ok);
  background: var(--ok);
  color: #fff;
}
.ap-step__dot .icon {
  width: 14px;
  height: 14px;
  stroke-width: 2.6;
}
.ap-steps b {
  display: block;
  font-size: 14px;
  font-weight: 600;
  line-height: 26px;
}
.ap-steps li > div > span {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 12px;
}
.ap-called {
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
}
.ap-contact {
  display: flex;
  gap: 14px;
  margin-top: 2px;
}
.ap-contact .link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
}
.ap-contact .icon {
  width: 14px;
  height: 14px;
}
.ap-notes {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.ap-note {
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--page);
  font-size: 13px;
}
.ap-note b {
  font-weight: 600;
}
.ap-note span {
  margin-left: 6px;
  color: var(--muted);
  font-size: 12px;
}
.ap-note p {
  margin-top: 2px;
  color: var(--ink-2);
}
.drawer .field textarea {
  height: auto;
  padding: 10px 14px;
  line-height: 1.5;
  resize: vertical;
}
.field__lab {
  display: block;
  margin-bottom: 6px;
  color: var(--ink-2);
  font-size: 13px;
  font-weight: 600;
}
.ap-pick {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.ap-pick button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 34px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--ink-2);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
}
.ap-pick button[aria-pressed='true'] {
  border-color: var(--ink);
  background: var(--ink);
  color: #fff;
}
.ap-pick .icon {
  width: 15px;
  height: 15px;
}
.ap-foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}
.ap-foot [data-reject] {
  margin-right: auto;
}
.ap-foot .btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
@media (max-width: 720px) {
  /* Reject + Ask side by side, Approve full width under them */
  .ap-foot {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .ap-foot [data-approve] {
    grid-column: 1 / -1;
  }
  .ap-foot.is-two [data-approve] {
    grid-column: auto;
  }
  .ap-foot .btn {
    margin: 0;
  }
}

/* ---------- Visa cases: queue ---------- */
.vq-views button span {
  font-variant-numeric: tabular-nums;
}
.tabs button span.is-late {
  background: var(--bad);
  color: #fff;
}
.vq-flag {
  width: 36px;
  height: 26px;
  border-radius: 6px;
}
.vq-x {
  color: #b26a00;
  font-weight: 600;
}
.vq-docs {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 6px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 600;
  white-space: nowrap;
}
.vq-docs .icon {
  width: 12px;
  height: 12px;
}
.vq-docs.is-up {
  background: #fff3df;
  color: #b26a00;
}
.vq-docs.is-bad {
  background: #fde2e1;
  color: var(--bad);
}
.vq-docs.is-ok {
  background: #e6f6ee;
  color: var(--ok);
}
.vq-clock {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
}
.vq-clock .icon {
  width: 13px;
  height: 13px;
}
.vq-clock.is-warn {
  color: #b26a00;
  font-weight: 600;
}
.vq-clock.is-bad {
  color: var(--bad);
  font-weight: 600;
}
.vcs-head__chips .vq-clock {
  margin-top: 0;
}
.vq-owner {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  white-space: nowrap;
}
.vq-table td:first-child .ag-cell .sub {
  overflow: hidden;
  max-width: 180px;
  text-overflow: ellipsis;
}
.vq-list tr.is-off td:not(:nth-last-child(-n + 2)) {
  opacity: 0.45;
}
.vq-docpick button {
  height: 32px;
  font-size: 12.5px;
}
.field-row--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

/* ---------- Visa case page ---------- */
.vcs-head {
  display: flex;
  align-items: center;
  gap: 18px;
  margin: 8px 0 0;
  padding: 20px 22px;
}
.vcs-flag {
  width: 64px;
  height: 46px;
  border-radius: 10px;
  box-shadow:
    0 0 0 3px #fff,
    0 6px 16px -6px rgba(16, 23, 48, 0.35);
}
.vcs-head__main {
  min-width: 0;
  flex: 1;
}
.vcs-head__id {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 12px;
}
.vcs-head__id h1 {
  font-size: 22px;
}
.vcs-head__id .mono {
  color: var(--muted);
  font-size: 14px;
}
.vcs-head__chips {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  margin-top: 10px;
}
.vcs-head__chips .vbadge {
  margin-left: 0;
}
.vcs-owner {
  display: flex;
  flex: none;
  align-items: center;
  gap: 10px;
  padding-left: 18px;
  border-left: 1px solid var(--line);
}
.vcs-owner span:not(.avatar) {
  display: block;
  color: var(--muted);
  font-size: 11px;
}
.vcs-owner b {
  font-size: 14px;
  font-weight: 600;
}
.vcs-owner .select {
  width: auto;
  height: 34px;
  font-size: 13px;
}
.vcs-track {
  padding: 4px 0;
}
.vcs-track em {
  min-height: 15px;
}
/* Next step card: the one thing to do now */
.vcs-next {
  overflow: hidden;
  border: 1px solid var(--line);
}
.vcs-next__h {
  display: flex;
  gap: 14px;
  padding: 20px 22px;
  background: linear-gradient(135deg, var(--ns-soft), #fff 70%);
}
.vcs-next--warn {
  --ns: #b26a00;
  --ns-soft: #fff3df;
}
.vcs-next--bad {
  --ns: var(--bad);
  --ns-soft: #fde2e1;
}
.vcs-next--ok {
  --ns: var(--ok);
  --ns-soft: #e6f6ee;
}
.vcs-next--info {
  --ns: var(--primary);
  --ns-soft: var(--primary-soft);
}
.vcs-next--muted {
  --ns: var(--muted);
  --ns-soft: var(--page);
}
.vcs-next__ic {
  display: grid;
  width: 44px;
  height: 44px;
  flex: none;
  place-items: center;
  border-radius: 13px;
  background: var(--ns);
  color: #fff;
}
.vcs-next__ic .icon {
  width: 20px;
  height: 20px;
}
.vcs-next__k {
  color: var(--ns);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.vcs-next__h h2 {
  margin-top: 1px;
  font-size: 18px;
}
.vcs-next__h p {
  margin-top: 3px;
  color: var(--ink-2);
  font-size: 13px;
}
.vcs-next__b {
  padding: 4px 22px 4px;
}
.vcs-next__f {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  padding: 14px 22px 18px;
}
.vcs-next__f:only-of-type {
  border-top: 0;
}
.vcs-wait {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
}
.vcs-wait li {
  padding: 10px 12px;
  border: 1px dashed #f2b8a6;
  border-radius: 12px;
  background: #fffaf8;
  font-size: 13px;
}
.vcs-wait li span {
  display: block;
  margin-top: 2px;
  color: var(--bad);
  font-size: 12px;
}
/* Travellers and their documents */
.vcs-travs {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.vcs-trav__h {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}
.vcs-trav__n {
  display: grid;
  width: 30px;
  height: 30px;
  flex: none;
  place-items: center;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  font: 600 13px 'Poppins', sans-serif;
}
.vcs-trav__h b {
  display: block;
  font-size: 15px;
  font-weight: 600;
}
.vcs-trav__h > div > span {
  color: var(--muted);
  font-size: 12px;
}
.vcs-docs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.vcs-doc {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}
.vcs-doc.is-up {
  border-color: #f3d39b;
  background: #fffbf3;
}
.vcs-doc.is-bad,
.vcs-doc.is-miss {
  border-style: dashed;
  border-color: #f2b8a6;
  background: #fffaf8;
}
.vcs-doc__ic {
  display: grid;
  width: 30px;
  height: 30px;
  flex: none;
  place-items: center;
  border-radius: 9px;
  background: #e6f6ee;
  color: var(--ok);
}
.is-up .vcs-doc__ic {
  background: #fff3df;
  color: #b26a00;
}
.is-bad .vcs-doc__ic,
.is-miss .vcs-doc__ic {
  background: #fde2e1;
  color: var(--bad);
}
.vcs-doc__ic .icon {
  width: 15px;
  height: 15px;
}
.vcs-doc__t {
  display: flex;
  min-width: 0;
  flex: 1;
  flex-direction: column;
}
.vcs-doc__t b {
  overflow: hidden;
  font-size: 13px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.vcs-doc__t span {
  overflow: hidden;
  color: var(--muted);
  font-size: 11.5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.is-bad .vcs-doc__t span,
.is-miss .vcs-doc__t span {
  color: var(--bad);
}
.vcs-doc .btn--sm {
  height: 30px;
  padding: 0 10px;
  flex: none;
}
.vcs-doc .link {
  flex: none;
  font-size: 12px;
}
.vcs-bad {
  color: var(--bad);
}
.vcs-doc__st {
  flex: none;
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 600;
}
.is-ok .vcs-doc__st {
  color: var(--ok);
}
.is-bad .vcs-doc__st,
.is-miss .vcs-doc__st {
  color: var(--bad);
}
/* Log */
.vcs-log {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.vcs-log li {
  display: flex;
  gap: 12px;
}
.vcs-log li > div {
  min-width: 0;
  flex: 1;
}
.vcs-log b {
  font-size: 13px;
  font-weight: 600;
}
.vcs-log em {
  margin-left: 8px;
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
}
.vcs-log p {
  margin-top: 2px;
  color: var(--ink-2);
  font-size: 13px;
}
.vcs-tag {
  margin-left: 6px;
  padding: 1px 7px;
  border-radius: 999px;
  background: #fff3c4;
  color: #8a6400;
  font-size: 11px;
  font-weight: 600;
}
.vcs-note {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.vcs-note textarea {
  width: 100%;
}
.vcs-kv {
  grid-template-columns: 96px minmax(0, 1fr);
}
/* Send-back reasons and decision uploads */
.vcs-why {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.vcs-why__opt {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 14px;
  cursor: pointer;
}
.vcs-why__opt:has(input:checked) {
  border-color: var(--ink);
  background: var(--page);
}
.vcs-up {
  width: 100%;
  border-style: dashed;
  text-align: left;
  cursor: pointer;
}
.vcs-up .sub {
  margin-left: auto;
  color: var(--primary);
}
.vcs-up.is-ok {
  border-style: solid;
  border-color: #b7e4c7;
  background: #f5fbf7;
  cursor: default;
}
.vcs-up.is-ok .icon {
  color: var(--ok);
}
.vcs-up.is-ok .sub {
  color: var(--muted);
}
@media (max-width: 900px) {
  .vcs-head {
    flex-wrap: wrap;
  }
  .vcs-owner {
    width: 100%;
    padding: 14px 0 0;
    border-top: 1px solid var(--line);
    border-left: 0;
  }
  .vcs-owner .select,
  .vcs-owner .btn {
    margin-left: auto;
  }
}
@media (max-width: 720px) {
  .vcs-head {
    padding: 16px;
  }
  .vcs-flag {
    width: 52px;
    height: 38px;
  }
  .vcs-head__id h1 {
    font-size: 19px;
  }
  .vcs-docs {
    grid-template-columns: minmax(0, 1fr);
  }
  .vcs-next__h,
  .vcs-next__b,
  .vcs-next__f {
    padding-right: 16px;
    padding-left: 16px;
  }
  .vcs-next__f .btn {
    flex: 1;
  }
  .field-row--3 {
    grid-template-columns: minmax(0, 1fr);
  }
}
.vq-list th,
.vq-list td:nth-child(5) {
  white-space: nowrap;
}
@media (max-width: 640px) {
  .bk-prods.vq-views {
    display: grid;
    width: 100%;
    grid-template-columns: 1fr 1fr;
  }
  .bk-prods.vq-views button {
    flex-direction: row;
    height: 40px;
    font-size: 13px;
  }
  .bk-prods.vq-views button span {
    display: inline;
  }
}

/* ---------- Visa: spacing (same 20px rhythm as every admin page) ---------- */
#vq-body {
  display: contents;
}
.panel-admin .vcs-head {
  margin-top: 0;
}
.panel-admin .vp-main,
.panel-admin .vp-side {
  gap: 20px;
}
.panel-admin .vcs-head + .vd-sec,
.panel-admin .vp-layout {
  margin-top: 0;
}
/* Queue table: keep short things on one line */
.vq-table th {
  white-space: nowrap;
}
.vq-table td:nth-child(3) {
  white-space: nowrap;
  min-width: 150px;
}
.vq-table .soon-tag {
  white-space: nowrap;
}

/* ---------- Visa list cards (the agent's card + admin tools) ---------- */
.vq-cards .vcard {
  cursor: pointer;
}
.vq-open,
.vq-paused {
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
}
.vq-open {
  background: var(--ink);
  color: #fff;
}
.vq-paused {
  background: #fff;
  color: var(--muted);
  box-shadow: 0 0 0 1px var(--line);
}
.vq-card.is-off .vcard__top,
.vq-card.is-off .vcard__body {
  filter: grayscale(1);
  opacity: 0.55;
}
.vq-sale {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.is-off .vq-sale {
  color: var(--muted);
}
.vq-edit {
  pointer-events: none;
}
.vq-card:hover .vq-edit {
  border-color: var(--ink);
}
.vq-card .vcard__get b {
  display: block;
}
.vq-card .vcard__get .vq-sub {
  margin-top: 1px;
  color: var(--ink-2);
}
/* Full document names (they decide what staff check) */
.vcs-doc__t b {
  white-space: normal;
  line-height: 1.3;
}

/* ---------- Requests: quote builder ---------- */
.rq-live {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  padding: 9px 12px;
  border-radius: 10px;
  background: var(--primary-soft);
  color: #2443b5;
  font-size: 12.5px;
}
.rq-live .icon {
  width: 15px;
  height: 15px;
  flex: none;
}
.rq-q__h {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}
.rq-q__h h3 {
  margin: 0;
}
.rq-log {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0;
  padding: 0 0 0 14px;
  border-left: 2px solid var(--line);
  list-style: none;
}
.rq-log b {
  display: block;
  font-size: 13px;
  font-weight: 500;
}
.rq-log span {
  color: var(--muted);
  font-size: 12px;
}

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

/* ---------- Booking requests: activity confirmations and custom package quotes ---------- */
.tq-thumb {
  width: 44px;
  height: 44px;
  flex: none;
  border-radius: 12px;
  object-fit: cover;
}
.tq-dr {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.tq-due {
  display: flex;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--page);
  color: var(--ink-2);
  font-size: 13px;
}
.tq-due > .icon {
  width: 18px;
  height: 18px;
  flex: none;
}
.tq-due b {
  display: block;
  color: var(--ink);
}
.tq-due.is-soon {
  background: #fff6e6;
  color: #8a5300;
}
.tq-due.is-late {
  background: var(--bad-soft);
  color: #a3262b;
}
.tq-act {
  display: flex;
  align-items: center;
  gap: 12px;
}
.tq-act img {
  width: 56px;
  height: 56px;
  flex: none;
  border-radius: 14px;
  object-fit: cover;
}
.tq-act b {
  display: block;
  font-size: 15px;
  font-weight: 600;
}
.tq-act > div > span {
  color: var(--muted);
  font-size: 12.5px;
}
.tq-kv {
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr);
  gap: 8px 14px;
  margin: 0;
  font-size: 13px;
}
.tq-kv > div {
  display: contents;
}
.tq-kv dt {
  color: var(--muted);
}
.tq-kv dd {
  margin: 0;
  font-weight: 500;
}
.tq-seg {
  display: flex;
}
.tq-seg button {
  display: inline-flex;
  flex: 1;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.tq-seg .icon {
  width: 15px;
  height: 15px;
}
.tq-outcome {
  display: flex;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 12px;
  font-size: 13px;
  line-height: 1.5;
}
.tq-outcome > .icon {
  width: 18px;
  height: 18px;
  flex: none;
  margin-top: 1px;
}
.tq-outcome b {
  display: block;
  color: var(--ink);
}
.tq-outcome.is-ok {
  background: #e9f7ef;
  color: #11603d;
}
.tq-outcome.is-no {
  background: var(--page);
  color: var(--ink-2);
}
.tq-brief,
.tq-quote {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
}
.tq-brief h3,
.tq-quote h3 {
  margin-bottom: 12px;
  font-size: 15px;
}
.tq-quote .field {
  margin-bottom: 12px;
}
.tq-quote .field__lab {
  color: var(--ink-2);
  font-size: 13px;
  font-weight: 600;
}
.tq-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 12px;
  align-items: end;
}
.tq-lv {
  display: flex;
}
.tq-lv button {
  flex: 1;
}
.tq-air {
  height: 40px;
  margin-bottom: 12px;
}
.tq-calc {
  margin: 4px 0 16px;
}
.tq-tbl {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.tq-tbl th {
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-align: left;
  text-transform: uppercase;
}
.tq-tbl td {
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
}
.tq-tbl .num {
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.tq-tbl .is-mut td {
  color: var(--muted);
}
.tq-tbl tfoot td {
  padding-top: 10px;
  border-bottom: 0;
  font: 600 15px 'Poppins', sans-serif;
}
.tq-margin {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  padding: 8px 10px;
  border-radius: 10px;
  background: #fff8ea;
  color: #8a5300;
  font-size: 12.5px;
  font-weight: 600;
}
.tq-margin .icon {
  width: 14px;
  height: 14px;
  flex: none;
}
.tq-close summary {
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.tq-close[open] summary {
  margin-bottom: 10px;
}
@media (max-width: 720px) {
  .tq-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .tq-kv {
    grid-template-columns: 100px minmax(0, 1fr);
  }
}

/* ---------- Packages & departures ---------- */
.apk-table tbody tr {
  cursor: pointer;
}
.apk-bar {
  position: relative;
  width: 110px;
  height: 5px;
  margin-bottom: 4px;
  overflow: hidden;
  border-radius: 999px;
  background: #e8e8e8;
}
.apk-bar i {
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--fill);
  border-radius: inherit;
  background: var(--ok);
}
.apk-deps td {
  vertical-align: middle;
}
.apk-deps .apk-bar {
  width: 80px;
}
.apk-num {
  width: 64px;
  height: 34px;
  padding: 0 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  text-align: right;
}
.apk-tog input {
  width: 18px;
  height: 18px;
  accent-color: var(--ink);
}
.apk-add {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 10px;
  margin-top: 14px;
}
.apk-add .field {
  margin-bottom: 0;
}
.apk-add .btn {
  height: 44px;
}
@media (max-width: 720px) {
  .apk-deps {
    display: block;
    overflow-x: auto;
  }
}

/* ---------- Admin product cards (the agent's cards plus an admin strip) ---------- */
.apk-head {
  margin-top: 4px;
}
.apk-grid .acard.apk-card {
  cursor: pointer;
}
@supports (grid-template-rows: subgrid) {
  .pk-grid .apk-card {
    grid-row: span 4;
  }
}
.apk-card.is-paused .pcard__media img {
  filter: grayscale(0.85);
  opacity: 0.75;
}
.pcard__tag.apk-on {
  margin-left: auto;
  background: #e6f6ee;
  color: #11804a;
}
.pcard__tag.apk-on .icon,
.apk-card .pcard__tag.is-hot .icon {
  fill: none;
  stroke: currentColor;
}
.apk-strip {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 0 16px;
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--page);
  font-size: 12px;
}
.apk-strip__row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: var(--ink-2);
}
.apk-strip__row b {
  color: var(--ink);
  font-weight: 600;
}
.apk-strip .is-ok {
  color: var(--ok);
  font-style: normal;
  font-weight: 600;
}
.apk-bar.apk-bar--wide {
  width: 100%;
  margin: 0;
}
.apk-foot {
  margin-top: 4px;
}
.apk-chg {
  background: #fff3df !important;
  color: #8a5300 !important;
}
.apk-acts {
  display: flex;
  flex: none;
  align-items: center;
  gap: 6px;
}
.apk-acts .icon-btn {
  width: 36px;
  height: 36px;
}
.apk-acts .btn .icon {
  width: 15px;
  height: 15px;
}

/* ---------- Admin activities ---------- */
.aa-count:not(:empty) {
  min-width: 20px;
  margin-left: 4px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--warn-soft);
  color: var(--warn);
  font-size: 12px;
  line-height: 20px;
  text-align: center;
}
.apk-wait {
  color: var(--warn);
  font-weight: 600;
}
.apk-wait:hover {
  text-decoration: underline;
}
.aa-desc {
  margin: -6px 0 12px;
  color: var(--muted);
  font-size: 12.5px;
}
.aa-slots {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}
.aa-slot {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 36px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  text-decoration: line-through;
  cursor: pointer;
}
.aa-slot.is-on {
  border-color: var(--ink);
  color: var(--ink);
  text-decoration: none;
}
.aa-slot input {
  width: 15px;
  height: 15px;
  accent-color: var(--ink);
}
.aa-slot small {
  color: var(--warn);
  font-size: 10.5px;
}
#aa-city {
  height: 40px;
  font-size: 13px;
}

/* ---------- Admin cards: compact strip and footer ---------- */
.apk-strip {
  gap: 6px;
  padding: 8px 12px;
}
.apk-strip__row {
  align-items: center;
}
.apk-strip__row > span {
  min-width: 0;
  white-space: nowrap;
}
.apk-bar.apk-bar--wide {
  height: 4px;
}
.apk-card .pcard__foot.apk-foot {
  justify-content: space-between;
  margin-top: 0;
  padding: 10px 0 12px;
  border-top: 0;
}
.apk-acts .icon-btn {
  width: 34px;
  height: 34px;
}
.apk-acts .btn {
  height: 34px;
  padding: 0 12px;
}

/* ---------- Package edit drawer ---------- */
.apk-prices {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0 10px;
}
.apk-prices .field,
.apk-air .field {
  margin-bottom: 10px;
}
.apk-prices .field__hint {
  color: var(--muted);
  font-size: 11.5px;
}
.apk-air {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  gap: 0 12px;
  align-items: center;
}
.apk-air > span {
  display: flex;
  align-items: center;
  gap: 6px;
  padding-top: 14px;
  color: var(--ink-2);
  font-size: 12.5px;
}
.apk-air .icon {
  width: 15px;
  height: 15px;
  flex: none;
  color: var(--muted);
}
.apk-deps {
  display: flex;
  flex-direction: column;
}
.apk-dep {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 62px 62px auto;
  gap: 10px;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}
.apk-dep:last-child {
  border-bottom: 0;
}
.apk-dep--head {
  padding: 0 0 6px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.apk-dep--head span:nth-child(2),
.apk-dep--head span:nth-child(3) {
  text-align: center;
}
.apk-dep.is-closed .apk-dep__date,
.apk-dep.is-closed .apk-num {
  opacity: 0.5;
}
.apk-dep__date {
  min-width: 0;
}
.apk-dep__date b {
  display: block;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}
.apk-dep__date > span {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 3px;
  color: var(--muted);
  font-size: 11.5px;
  white-space: nowrap;
}
.apk-dep__date .apk-bar {
  display: block;
  width: 48px;
  height: 4px;
  flex: none;
  margin: 0;
}
.apk-dep__date .apk-bar i {
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--fill);
  border-radius: inherit;
  background: var(--ok);
}
.apk-dep .apk-num {
  width: 100%;
  text-align: center;
}
.apk-flags {
  display: flex;
  gap: 6px;
}
.apk-flag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 30px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
}
.apk-flag input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.apk-flag .icon {
  width: 13px;
  height: 13px;
}
.apk-flag:has(input:focus-visible) {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}
.apk-flag.is-on {
  border-color: var(--ink);
  background: var(--ink);
  color: #fff;
}
.apk-flag.is-on.is-ok {
  border-color: var(--ok);
  background: var(--ok-soft);
  color: #11804a;
}
@media (max-width: 720px) {
  .apk-prices {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .apk-air {
    grid-template-columns: minmax(0, 1fr);
  }
  .apk-air > span {
    padding-top: 0;
    padding-bottom: 10px;
  }
  .apk-dep {
    grid-template-columns: minmax(0, 1fr) 56px 56px;
  }
  .apk-flags {
    grid-column: 1 / -1;
  }
}

/* ---------- All bookings (every product) ---------- */
.bb-attn {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}
.bb-tile {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  text-align: left;
  transition:
    border-color 0.25s var(--ease),
    box-shadow 0.25s var(--ease);
}
.bb-tile:hover {
  border-color: #cfcfcf;
}
.bb-tile.is-on {
  border-color: var(--tone);
  box-shadow: 0 0 0 1px var(--tone);
}
.bb-tile.is-zero {
  opacity: 0.6;
}
.bb-tile__ic {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 9px;
  background: color-mix(in srgb, var(--tone) 14%, #fff);
  color: var(--tone);
}
.bb-tile__ic .icon {
  width: 16px;
  height: 16px;
}
.bb-tile__main {
  display: flex;
  align-items: baseline;
  gap: 6px;
  min-width: 0;
}
.bb-tile__main b {
  font: 600 22px/1 'Poppins', sans-serif;
}
.bb-tile__main span {
  overflow: hidden;
  color: var(--ink-2);
  font-size: 12.5px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.bb-tile small {
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.35;
}
.bb-tile em {
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--bad-soft);
  color: var(--bad);
  font-size: 11.5px;
  font-style: normal;
  font-weight: 600;
}
.bb-prods {
  margin-bottom: 12px;
}
.bb-tools {
  flex-wrap: wrap;
}
.bb-tools .select {
  height: 40px;
  font-size: 13px;
}
.bb-totals {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 20px;
  margin: 2px 0 12px;
  color: var(--ink-2);
  font-size: 13px;
}
.bb-totals b {
  color: var(--ink);
  font-weight: 600;
}
.bb-totals b.is-ok {
  color: var(--ok);
}
.bb-totals__hint {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-left: auto;
  color: var(--muted);
}
.bb-totals__hint .icon {
  width: 14px;
  height: 14px;
}
.bb-table tbody tr {
  cursor: pointer;
}
.bb-table tr.is-urgent td:first-child {
  box-shadow: inset 3px 0 0 var(--bad);
}
.bb-table .route-cell strong {
  overflow: hidden;
  max-width: 260px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.bb-ic {
  display: grid;
  width: 40px;
  height: 40px;
  flex: none;
  place-items: center;
  border-radius: 10px;
  background: var(--page);
  color: var(--ink-2);
}
.bb-ic .icon {
  width: 18px;
  height: 18px;
}
.bb-flag {
  width: 40px;
  height: 28px;
  border-radius: 6px;
}
.bb-dr-top {
  display: flex;
  gap: 6px;
}
.bb-big {
  display: grid;
  width: 56px;
  height: 56px;
  flex: none;
  place-items: center;
  border-radius: 14px;
  background: var(--page);
}
.bb-big .flag {
  width: 40px;
  height: 28px;
  border-radius: 6px;
}
.bb-tl {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0 0 12px;
  padding: 0;
  list-style: none;
}
.bb-tl li {
  display: flex;
  gap: 10px;
}
.bb-tl li > span {
  display: grid;
  width: 26px;
  height: 26px;
  flex: none;
  place-items: center;
  border-radius: 50%;
  background: var(--page);
  color: var(--ink-2);
}
.bb-tl .icon {
  width: 13px;
  height: 13px;
}
.bb-tl b {
  display: block;
  font-size: 13px;
  font-weight: 600;
}
.bb-tl em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
}
.bb-note {
  display: flex;
  gap: 8px;
}
.bb-note input {
  min-width: 0;
  height: 36px;
  flex: 1;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
}
@media (max-width: 1280px) {
  .bb-attn {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 720px) {
  .bb-attn {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .bb-totals__hint {
    margin-left: 0;
  }
}

/* ---------- Admin hotels (the agent's hotel card + admin strip) ---------- */
.ah-dests {
  margin-bottom: 12px;
}
.ah-tools .select {
  height: 40px;
  font-size: 13px;
}
.ah-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.ah-card {
  cursor: pointer;
}
.ah-card .hcard__photo {
  min-height: 190px;
}
.ah-card.is-hidden .hcard__photo img {
  filter: grayscale(0.9);
  opacity: 0.7;
}
.ah-card.is-hidden h3 {
  color: var(--muted);
}
.ah-hidden {
  position: absolute;
  top: 12px;
  right: 12px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 24px;
  padding: 0 9px;
  border-radius: 999px;
  background: rgba(16, 16, 16, 0.78);
  color: #fff;
  font-size: 11.5px;
  font-weight: 600;
}
.ah-hidden .icon {
  width: 12px;
  height: 12px;
}
.ah-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 14px;
  margin-top: auto;
  padding: 8px 12px;
  border-radius: 10px;
  background: var(--page);
  color: var(--ink-2);
  font-size: 12.5px;
}
.ah-strip b {
  color: var(--ink);
  font-weight: 600;
}
.ah-hold {
  color: var(--warn);
  font-weight: 600;
}
.ah-adj {
  padding: 1px 8px;
  border-radius: 999px;
  font-weight: 600;
}
.ah-adj.is-up {
  background: #fff3df;
  color: #8a5300;
}
.ah-adj.is-down {
  background: var(--ok-soft);
  color: #11804a;
}
.ah-noted {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--primary);
  font-weight: 600;
}
.ah-noted .icon {
  width: 13px;
  height: 13px;
}
.ah-side {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
}
.ah-price span,
.ah-price em {
  display: block;
  color: var(--muted);
  font-size: 11.5px;
  font-style: normal;
}
.ah-price strong {
  font: 600 22px/1.2 'Poppins', sans-serif;
}
.ah-acts {
  display: flex;
  align-items: center;
  gap: 6px;
}
.ah-acts .icon-btn {
  width: 34px;
  height: 34px;
}
.ah-acts .icon-btn.is-on {
  border-color: var(--ink);
  background: var(--ink);
  color: #f4c979;
}
.ah-acts .btn {
  height: 34px;
  padding: 0 12px;
}
.ah-acts .btn .icon {
  width: 15px;
  height: 15px;
}
/* Drawer */
.ah-pick {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  font-size: 12.5px;
  cursor: pointer;
}
.ah-pick input {
  position: absolute;
  opacity: 0;
}
.ah-pick.is-on {
  border-color: var(--ink);
  box-shadow: 0 0 0 1px var(--ink);
}
.ah-pick__ic {
  display: grid;
  width: 34px;
  height: 34px;
  flex: none;
  place-items: center;
  border-radius: 10px;
  background: var(--page);
  color: var(--muted);
}
.ah-pick.is-on .ah-pick__ic {
  background: var(--ink);
  color: #f4c979;
}
.ah-pick__ic .icon {
  width: 16px;
  height: 16px;
}
.ah-pick b {
  display: block;
  color: var(--ink);
  font-size: 13.5px;
}
.ah-pick > span:last-child {
  color: var(--muted);
}
.ah-adj-row {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}
.ah-ex {
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--page);
  font-size: 12.5px;
}
.ah-ex span,
.ah-ex em {
  display: block;
  color: var(--muted);
  font-style: normal;
}
.ah-ex b {
  display: block;
  margin: 2px 0;
  font-weight: 500;
}
.ah-ex strong {
  font-weight: 600;
}
.ah-quick {
  display: flex;
  gap: 6px;
}
.ah-quick button {
  height: 30px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 600;
}
.ah-quick button[aria-pressed='true'] {
  border-color: var(--ink);
  background: var(--ink);
  color: #fff;
}
.ah-bks {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 12.5px;
}
.ah-bks li {
  display: grid;
  grid-template-columns: 100px minmax(0, 1fr) auto auto;
  gap: 10px;
  align-items: center;
}
.ah-bks li span:nth-child(2) {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
@media (max-width: 720px) {
  .ah-adj-row {
    grid-template-columns: minmax(0, 1fr);
  }
  .ah-bks li {
    grid-template-columns: minmax(0, 1fr) auto;
  }
  .ah-bks li span:nth-child(3) {
    display: none;
  }
}

/* ---------- Admin transport: dispatch and routes ---------- */
.at-tools {
  display: flex;
}
.at-day {
  margin-bottom: 14px;
  padding: 6px 0;
}
.at-day__h {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 10px 18px 8px;
}
.at-day__h b {
  font: 600 15px 'Poppins', sans-serif;
}
.at-day__h span {
  color: var(--muted);
  font-size: 12.5px;
}
.at-ride {
  display: grid;
  grid-template-columns: 70px minmax(0, 1.6fr) minmax(0, 1.2fr) auto 140px;
  gap: 14px;
  align-items: center;
  padding: 12px 18px;
  border-top: 1px solid var(--line);
}
.at-ride.is-late {
  box-shadow: inset 3px 0 0 var(--bad);
  background: #fffafa;
}
.at-ride__time b {
  display: block;
  font: 600 18px 'Poppins', sans-serif;
  font-variant-numeric: tabular-nums;
}
.at-ride__time span {
  color: var(--muted);
  font-size: 11.5px;
}
.at-ride__main {
  min-width: 0;
}
.at-ride__main strong {
  display: block;
  overflow: hidden;
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.at-ride__main > span:not(.sub) {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  margin-top: 2px;
  color: var(--ink-2);
  font-size: 12.5px;
}
.at-ride__main .icon {
  width: 13px;
  height: 13px;
  color: var(--muted);
}
.at-drv {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  color: var(--ink-2);
  font-size: 12px;
}
.at-drv > .icon {
  width: 16px;
  height: 16px;
  flex: none;
  margin-top: 1px;
  color: var(--ok);
}
.at-drv b {
  display: block;
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
}
.at-drv.is-none {
  align-items: center;
  color: var(--bad);
  font-weight: 600;
}
.at-drv.is-none .icon {
  color: var(--bad);
}
.at-ride__act {
  text-align: right;
}
.at-roster > div {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
}
.at-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 34px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 600;
}
.at-chip:hover {
  border-color: var(--ink);
}
.at-chip .icon {
  width: 14px;
  height: 14px;
  color: var(--muted);
}
.at-chip em {
  color: var(--muted);
  font-style: normal;
  font-weight: 500;
}
.at-vehicles {
  margin-bottom: 16px;
}
.at-vgrid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 8px;
}
.at-veh {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--muted);
  font-size: 12px;
  cursor: pointer;
}
.at-veh input {
  width: 16px;
  height: 16px;
  flex: none;
  accent-color: var(--ink);
}
.at-veh.is-on {
  border-color: var(--ink);
  color: var(--ink-2);
}
.at-veh__ic {
  display: grid;
  width: 32px;
  height: 32px;
  flex: none;
  place-items: center;
  border-radius: 9px;
  background: var(--page);
}
.at-veh__ic .icon {
  width: 16px;
  height: 16px;
}
.at-veh b {
  display: block;
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
}
.at-rcard {
  cursor: pointer;
}
.at-rcard.is-paused {
  opacity: 0.6;
}
.at-rstrip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 12px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  color: var(--ink-2);
  font-size: 12.5px;
}
.at-rstrip b {
  color: var(--ink);
}
.at-racts {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
}
.at-racts .icon-btn {
  width: 32px;
  height: 32px;
}
.at-racts .btn {
  height: 32px;
  padding: 0 10px;
}
.at-racts .btn .icon {
  width: 14px;
  height: 14px;
}
@media (max-width: 1100px) {
  .at-ride {
    grid-template-columns: 64px minmax(0, 1fr) auto;
  }
  .at-ride__drv {
    grid-column: 2 / 3;
  }
  .at-ride__st {
    grid-row: 1;
    grid-column: 3;
  }
  .at-ride__act {
    grid-column: 3;
  }
}
@media (max-width: 720px) {
  .at-ride {
    grid-template-columns: 56px minmax(0, 1fr);
    padding: 12px 14px;
  }
  .at-ride__st,
  .at-ride__act {
    grid-column: 2;
    grid-row: auto;
    text-align: left;
  }
  .at-tools,
  .at-tools .seg {
    width: 100%;
  }
  .at-tools .seg button {
    flex: 1;
    padding: 0 6px;
    font-size: 12px;
  }
}

/* ---------- Admin eSIM ---------- */
.ae-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.ae-tools .select {
  height: 40px;
  font-size: 13px;
}
.ae-grid {
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}
.ae-card {
  display: flex;
  flex-direction: column;
  padding: 0;
  overflow: hidden;
  cursor: pointer;
}
.ae-card.is-paused {
  opacity: 0.6;
}
.ae-dest {
  border: 0;
  border-radius: 0;
  box-shadow: none;
}
.ae-dest:hover {
  transform: none;
  box-shadow: none;
}
.ae-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 12px;
  margin-top: auto;
  padding: 10px 14px;
  border-top: 1px solid var(--line);
  background: var(--page);
  color: var(--ink-2);
  font-size: 12.5px;
}
.ae-strip b {
  color: var(--ink);
}
.ae-off {
  color: var(--muted);
  font-weight: 600;
}
.ae-acts {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
}
.ae-acts .icon-btn {
  width: 32px;
  height: 32px;
  background: #fff;
}
.ae-acts .icon-btn.is-on {
  border-color: var(--ink);
  background: var(--ink);
  color: #f4c979;
}
.ae-acts .btn {
  height: 32px;
  padding: 0 10px;
}
.ae-acts .btn .icon {
  width: 14px;
  height: 14px;
}
.ae-plans td {
  vertical-align: middle;
}
.ae-plans td .sub {
  display: block;
}
.ae-plans input[type='checkbox'] {
  width: 16px;
  height: 16px;
  accent-color: var(--ink);
}
.ae-tag {
  width: 100%;
  max-width: 150px;
  height: 32px;
  padding: 0 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 12.5px;
}
.ae-thin {
  display: flex;
  grid-column: 1 / -1;
  align-items: center;
  gap: 6px;
  margin: 0;
  color: #a3262b;
  font-size: 12.5px;
  font-weight: 600;
}
.ae-thin .icon {
  width: 14px;
  height: 14px;
}
.ae-sync {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 12.5px;
}
.ae-sync .icon {
  width: 14px;
  height: 14px;
}
.ae-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1.4fr) minmax(0, 1fr) auto auto;
  gap: 14px;
  align-items: center;
  padding: 12px 18px;
  border-top: 1px solid var(--line);
}
.ae-row:first-child {
  border-top: 0;
}
.ae-row.is-warn {
  box-shadow: inset 3px 0 0 var(--warn);
}
.ae-row__main {
  display: flex;
  min-width: 0;
  flex-direction: column;
}
.ae-row__main b {
  font-size: 14px;
  font-weight: 600;
}
.ae-row__main > span:not(.sub) {
  color: var(--ink-2);
  font-size: 12.5px;
}
.ae-row__use {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 12px;
}
.ae-flag {
  color: var(--warn);
  font-style: normal;
  font-weight: 600;
}
.ae-row__acts {
  display: flex;
  justify-content: flex-end;
  gap: 6px;
}
@media (max-width: 1100px) {
  .ae-row {
    grid-template-columns: auto minmax(0, 1fr) auto;
  }
  .ae-row__use {
    grid-column: 2 / -1;
  }
  .ae-row__acts {
    grid-column: 2 / -1;
    justify-content: flex-start;
  }
}
@media (max-width: 720px) {
  .ae-plans {
    display: block;
    overflow-x: auto;
  }
}
@media (max-width: 720px) {
  .ae-tools,
  .ae-tools .seg {
    max-width: 100%;
  }
  .ae-tools .seg {
    overflow-x: auto;
    scrollbar-width: none;
  }
  .ae-tools .seg button {
    flex: none;
  }
}
@media (max-width: 720px) {
  .ae-row {
    grid-template-columns: auto minmax(0, 1fr);
    padding: 12px 14px;
  }
  .ae-row > div:not(.ae-row__main) {
    grid-column: 2 / -1;
  }
}

/* ---------- Support tickets (staff inbox) ---------- */
.as-layout {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr) 272px;
  gap: 16px;
  align-items: stretch;
}
.as-item__ag {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}
.sup-item__meta .spacer {
  flex: 1;
}
.as-unassigned {
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 600;
}
.avatar.as-av {
  width: 22px;
  height: 22px;
  font-size: 9.5px;
}
.as-sla {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink-2);
  font-size: 11.5px;
  font-weight: 600;
  white-space: nowrap;
}
.as-sla .icon {
  width: 12px;
  height: 12px;
}
.as-sla.is-soon {
  background: #fff4d6;
  color: #8a5a00;
}
.as-sla.is-late {
  background: #fde2ea;
  color: var(--bad);
}
.as-late-txt {
  color: var(--bad);
}
.as-thread__ag {
  font-size: 13px;
}
.as-thread__ag .avatar {
  width: 22px;
  height: 22px;
  font-size: 9.5px;
}
.as-thread__acts {
  display: flex;
  flex: none;
  gap: 8px;
}
.as-details-btn {
  display: none;
}
.as-props {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  padding: 10px 20px;
  border-bottom: 1px solid var(--line);
}
.as-prop {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 4px;
}
.as-prop > span {
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 600;
}
.as-prop .select {
  height: 34px;
  font-size: 13px;
}
.as-prop--full {
  margin-top: 10px;
}
/* Reply / note switch above the composer */
.as-mode {
  display: flex;
  gap: 4px;
  margin-bottom: 8px;
}
.as-mode button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}
.as-mode button .icon {
  width: 14px;
  height: 14px;
}
.as-mode button[aria-selected="true"] {
  background: var(--surface);
  color: var(--ink);
}
.as-mode button[data-mode="note"][aria-selected="true"] {
  background: #fff4d6;
  color: #8a5a00;
}
.sup-composer.is-note {
  border-color: #f2d48a;
  background: #fffbea;
}
.sup-composer.is-note:focus-within {
  border-color: #e0b44a;
  box-shadow: 0 0 0 3px #fff1c2;
}
.as-canned-wrap {
  position: relative;
}
.as-canned {
  position: absolute;
  bottom: calc(100% + 6px);
  left: 0;
  z-index: 5;
  display: flex;
  width: 220px;
  flex-direction: column;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 12px 32px rgb(0 0 0 / 0.12);
}
.as-canned[hidden] {
  display: none;
}
.as-canned button {
  padding: 8px 10px;
  border-radius: 8px;
  color: var(--ink);
  font-size: 13px;
  text-align: left;
}
.as-canned button:hover {
  background: var(--surface);
}
.as-after {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}
.as-after .select {
  width: auto;
  height: 32px;
  padding-right: 30px;
  font-size: 12.5px;
}
/* Staff-only lines in the thread */
.as-note {
  align-self: stretch;
  padding: 10px 14px;
  border: 1px solid #f2d48a;
  border-radius: 12px;
  background: #fffbea;
}
.as-note__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 8px;
  margin-bottom: 4px;
  color: #8a5a00;
  font-size: 12px;
}
.as-note__head .icon {
  width: 14px;
  height: 14px;
}
.as-note__head span {
  color: #a37a2a;
}
.as-note__head time {
  margin-left: auto;
  color: #a37a2a;
}
.as-note p {
  color: #3d2f0a;
  font-size: 14px;
  line-height: 1.55;
  overflow-wrap: anywhere;
}
.as-log {
  display: inline-flex;
  align-self: center;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
}
.as-log .icon {
  width: 12px;
  height: 12px;
}
/* Right column: agency, booking, ticket, other tickets */
.as-ctx {
  min-height: 0;
  overflow-y: auto;
  scrollbar-width: thin;
}
.as-ctx__sec {
  padding: 16px;
  border-bottom: 1px solid var(--line);
}
.as-ctx__sec:last-child {
  border-bottom: 0;
}
.as-ctx__sec h3 {
  margin-bottom: 10px;
  color: var(--ink);
  font-size: 13px;
}
.as-ctx__ag,
.as-ctx__bk {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.as-ctx__ag > div,
.as-ctx__bk > div {
  min-width: 0;
}
.as-ctx__ag strong,
.as-ctx__bk strong {
  display: block;
  font-size: 14px;
}
.as-ctx__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}
.as-kv {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 5px 0;
  font-size: 13px;
}
.as-kv span {
  color: var(--muted);
}
.as-kv b {
  min-width: 0;
  font-weight: 600;
  text-align: right;
  overflow-wrap: anywhere;
}
.as-ctx__btn {
  width: 100%;
  margin-top: 10px;
  justify-content: center;
}
.as-ctx__tk {
  display: grid;
  width: 100%;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 2px 8px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  text-align: left;
}
.as-ctx__tk + .as-ctx__tk {
  margin-top: 6px;
}
.as-ctx__tk:hover {
  border-color: var(--ink);
}
.as-ctx__tk .mono {
  color: var(--muted);
  font-size: 12px;
}
.as-ctx__tk b {
  overflow: hidden;
  font-size: 13px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.as-ctx__tk .pill {
  grid-column: 2;
  justify-self: start;
}
.as-ctx--drawer {
  padding: 0;
}
@media (max-width: 1439px) {
  .as-layout {
    grid-template-columns: 330px minmax(0, 1fr);
  }
  .as-layout > .as-ctx {
    display: none;
  }
  .as-details-btn {
    display: inline-flex;
  }
}
@media (max-width: 1024px) {
  .as-layout {
    grid-template-columns: 1fr;
  }
  .as-layout.is-reading > .sup-list {
    display: none;
  }
  .as-layout:not(.is-reading) > .sup-thread {
    display: none;
  }
  .as-layout .sup-msgs {
    max-height: 60vh;
  }
}
@media (max-width: 640px) {
  .as-props {
    grid-template-columns: 1fr 1fr;
    padding-inline: 14px;
  }
  .as-props .as-prop:last-child {
    grid-column: 1 / -1;
  }
  .as-after > span,
  .as-canned-wrap .btn .icon + * {
    display: none;
  }
  .as-thread__acts {
    width: 100%;
    order: 3;
  }
  .as-thread__acts .btn {
    flex: 1;
    justify-content: center;
  }
}
@media (max-width: 640px) {
  .as-layout .sup-composer__bar {
    flex-wrap: wrap;
  }
  .as-layout .sup-composer__bar .spacer {
    display: none;
  }
  .as-after {
    order: 5;
    flex: 1;
    min-width: 0;
  }
  .as-after .select {
    width: 100%;
  }
  .as-layout .sup-composer__bar button[type="submit"] {
    order: 6;
  }
  .as-layout .as-mode button {
    padding: 0 10px;
    font-size: 12.5px;
  }
}
/* Keep the composer bar on one line in the narrower middle column */
.as-canned-wrap .btn {
  height: 32px;
  padding: 0 10px;
  border: 0;
  font-size: 12.5px;
}
@media (max-width: 1700px) {
  .as-after > span {
    display: none;
  }
}
/* Six views: wrap to two rows instead of hiding some behind a scroll */
.as-layout .sup-list__tools .tabs {
  flex-wrap: wrap;
  overflow: visible;
  border-radius: 14px;
}
.as-layout .sup-list__filters {
  grid-template-columns: minmax(0, 1fr) 124px;
}
@media (max-width: 640px) {
  .as-layout .sup-list__filters {
    grid-template-columns: 1fr;
  }
}
