/* =============================================================================
   Guide Portal — design system
   Port of the retired Angular guide-portal (Tailwind v4) look into plain CSS.
   Loaded dead-last in App.razor so it wins over Bootstrap/AdminLTE/Aqua vars.

   Everything is scoped under .gp-login (auth screen) or .gp-app (inner pages)
   so the Aqua theme variables that the host also loads never bleed in and we
   never bleed out onto the shared shell components.
   ========================================================================== */

.gp-app,
.gp-login {
  /* ── Palette (Tailwind slate/cyan/rose scale used by the Angular portal) ── */
  --gp-bg: #eef2f7;
  --gp-ink: #0f172a;
  --gp-slate-50: #f8fafc;
  --gp-slate-100: #f1f5f9;
  --gp-slate-200: #e2e8f0;
  --gp-slate-300: #cbd5e1;
  --gp-slate-400: #94a3b8;
  --gp-slate-500: #64748b;
  --gp-slate-600: #475569;
  --gp-slate-700: #334155;
  --gp-slate-800: #1e293b;
  --gp-slate-900: #0f172a;
  --gp-cyan-50: #ecfeff;
  --gp-cyan-200: #a5f3fc;
  --gp-cyan-600: #0891b2;
  --gp-cyan-700: #0e7490;
  --gp-rose-50: #fff1f2;
  --gp-rose-200: #fecdd3;
  --gp-rose-600: #e11d48;
  --gp-rose-700: #be123c;
  --gp-emerald-600: #059669;

  --gp-card-border: rgba(226, 232, 240, 0.8);
  --gp-shadow-sm: 0 1px 2px 0 rgba(15, 23, 42, 0.05);
  --gp-shadow-md: 0 4px 12px -2px rgba(15, 23, 42, 0.12);
  --gp-shadow-xl: 0 20px 40px -12px rgba(15, 23, 42, 0.2);

  /* Canonical Aqua gradients — tied to the panel's Aqua theme tokens so the guide
     portal shares the exact palette. Buttons/pills/avatar use the panel action
     gradient; the hero + login brand use the panel navbar gradient. Literals are
     the token fallbacks (identical to what the panel resolves to). */
  --gp-aqua: var(--rd-btn-primary-bg, linear-gradient(135deg, #0e7490 0%, #2979b0 60%, #1abc9c 100%));
  --gp-aqua-deep: linear-gradient(135deg, #0b5c73 0%, #1f6191 60%, #149a7f 100%);
  --gp-hero: linear-gradient(110deg, #0c4a6e 0%, #155e86 42%, #0e7490 76%, #117e76 100%);
  --gp-login-brand: linear-gradient(110deg, #0c4a6e 0%, #155e86 42%, #0e7490 76%, #117e76 100%);

  --gp-radius: 8px;
  --gp-radius-lg: 12px;
  --gp-radius-xl: 16px;

  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--gp-ink);
  -webkit-font-smoothing: antialiased;
  font-size: 13px;
  line-height: 1.45;
}

/* -----------------------------------------------------------------------------
   App shell — inner (authenticated) pages
   -------------------------------------------------------------------------- */
html:has(.gp-app),
body:has(.gp-app) {
  display: block;
  width: 100%;
  margin: 0 !important;
  padding: 0 !important;
  min-height: 100vh;
  overflow-x: hidden;
  background: #eef2f7;
}

.guide-home-theme-host,
.guide-ticket-create-theme-host,
.guide-transfer-guests-theme-host,
.guide-tour-sale-detail-theme-host,
.guide-airport-check-in-confirm-theme-host {
  display: block;
  width: 100vw;
  max-width: none;
  min-width: 0;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  flex: 0 0 100%;
  align-self: stretch;
}

.gp-app {
  display: flex;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  align-self: stretch;
  min-height: 100vh;
  flex-direction: column;
  background-color: var(--gp-bg);
  background-image:
    radial-gradient(at 0% 0%, rgba(56, 130, 246, 0.06) 0, transparent 50%),
    radial-gradient(at 100% 0%, rgba(99, 102, 241, 0.05) 0, transparent 50%);
}

/* AquaChat is integrated into the guide navigation instead of competing with
   the mobile bottom bar as a second fixed bubble. */
.gp-chat-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  font-size: 17px;
  cursor: pointer;
  transition: background-color 0.15s ease, transform 0.15s ease;
}

.gp-chat-action:hover {
  background: rgba(255, 255, 255, 0.24);
  transform: translateY(-2px);
}

.gp-chat-action__status {
  position: absolute;
  top: 7px;
  right: 7px;
  width: 7px;
  height: 7px;
  border: 2px solid #2183a5;
  border-radius: 50%;
  background: #5ee6b4;
}

body:not([data-aquachat-enabled="true"]) .gp-chat-action,
body:not([data-aquachat-enabled="true"]) .gp-mobile-nav__chat {
  display: none !important;
}

/* Below the pill-nav breakpoint the chat lives in the bottom bar instead. */
@media (max-width: 1099.98px) {
  .gp-chat-action { display: none; }
}

.gp-app *,
.gp-app *::before,
.gp-app *::after,
.gp-login *,
.gp-login *::before,
.gp-login *::after {
  box-sizing: border-box;
}

.gp-main {
  flex: 1 1 auto;
  /* Full-bleed flex item; the centered 1536px content column is created by
     symmetric inline padding (calc), NOT width + auto-margins. This is immune to
     the flex-item auto-margin shrink-to-fit quirk, so every tab renders an
     identical-width, identically-positioned column regardless of its content. */
  width: 100%;
  min-width: 0;
  margin: 0;
  padding: 24px max(16px, calc((100% - 1536px) / 2));
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.gp-main--narrow {
  padding-inline: max(16px, calc((100% - 1280px) / 2));
}

/* -----------------------------------------------------------------------------
   Header — sticky translucent bar with pill nav + locale + profile
   -------------------------------------------------------------------------- */
.gp-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background-image: var(--gp-aqua);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 10px 24px -18px rgba(15, 23, 42, 0.55);
}

.gp-header__inner {
  max-width: 1536px;
  margin: 0 auto;
  padding: 0 16px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

@media (min-width: 1024px) {
  .gp-header__inner { padding: 0 24px; }
}

.gp-header__left {
  display: flex;
  align-items: center;
  gap: 18px;
  min-width: 0;
}

.gp-brand {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.gp-brand img {
  height: 40px;
  max-width: 150px;
  object-fit: contain;
}

@media (min-width: 640px) {
  .gp-brand img { max-width: 180px; }
}

.gp-brand__name {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: #fff;
  white-space: nowrap;
}

/* Pill nav (desktop) */
.gp-nav {
  display: none;
  align-items: center;
  gap: 6px;
}

@media (min-width: 1100px) {
  .gp-nav { display: flex; }
}

.gp-header .gp-nav .gp-nav__link {
  border-radius: 9999px;
  padding: 8px 15px;
  font-size: 13px;
  font-weight: 700;
  color: #fff !important;
  text-decoration: none;
  transition: color 0.15s, background-color 0.15s, box-shadow 0.15s;
  white-space: nowrap;
  text-shadow: 0 1px 2px rgba(8, 47, 73, 0.28);
}

.gp-header .gp-nav .gp-nav__link:visited,
.gp-header .gp-nav .gp-nav__link:focus {
  color: #fff !important;
}

.gp-header .gp-nav .gp-nav__link:hover {
  background-color: rgba(255, 255, 255, 0.16);
  color: #fff !important;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
}

.gp-header .gp-nav .gp-nav__link.is-active {
  background: rgba(255, 255, 255, 0.28);
  color: #fff !important;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.36), var(--gp-shadow-sm);
}

.gp-header .gp-nav .gp-nav__link.is-active:hover {
  color: #fff !important;
}

/* Right cluster */
.gp-header__right {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Bar + "More" sheet exist only below the pill-nav breakpoint. The sheet is hidden here too:
   a tablet rotated past 1100px with the sheet open would otherwise drop its links, unstyled,
   into the page flow with no visible toggle to close them. */
.gp-mobile-nav,
.gp-mobile-sheet,
.gp-mobile-sheet-backdrop {
  display: none;
}

@media (min-width: 640px) {
  .gp-header__right { gap: 12px; }
}

/* Locale pill group */
.gp-lang {
  display: none;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.12);
  padding: 2px;
}

@media (min-width: 480px) {
  .gp-lang { display: inline-flex; }
}

.gp-lang__opt {
  border: 0;
  background: transparent;
  padding: 4px 10px;
  border-radius: 9999px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: rgba(255, 255, 255, 0.72);
  transition: color 0.15s, background-color 0.15s;
}

.gp-lang__opt:hover { color: #fff; }

.gp-lang__opt.is-active {
  background: rgba(255, 255, 255, 0.92);
  color: var(--gp-cyan-700);
  border: 1px solid rgba(255, 255, 255, 0.55);
  box-shadow: var(--gp-shadow-sm);
}

/* Profile chip + dropdown */
.gp-profile { position: relative; }

.gp-profile__btn {
  display: flex;
  align-items: center;
  gap: 8px;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.14);
  padding: 4px 6px 4px 4px;
  transition: background-color 0.15s, box-shadow 0.15s;
}

@media (min-width: 640px) {
  .gp-profile__btn { padding-right: 12px; }
}

.gp-profile__btn:hover { background: rgba(255, 255, 255, 0.22); }
.gp-profile__btn.is-open {
  background: rgba(255, 255, 255, 0.22);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.18);
}

.gp-avatar {
  display: grid;
  place-items: center;
  height: 32px;
  width: 32px;
  flex-shrink: 0;
  border-radius: 9999px;
  background-image: var(--gp-aqua);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}

.gp-avatar--lg { height: 44px; width: 44px; font-size: 14px; }

.gp-profile__meta {
  display: none;
  line-height: 1.15;
  min-width: 0;
  text-align: left;
}

@media (min-width: 640px) {
  .gp-profile__meta { display: block; }
}

.gp-profile__name {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: #fff;
  max-width: 140px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.gp-profile__role {
  display: block;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.72);
}

.gp-profile__caret {
  display: none;
  color: rgba(255, 255, 255, 0.72);
  transition: transform 0.15s;
}

@media (min-width: 640px) {
  .gp-profile__caret { display: block; }
}

.gp-profile__btn.is-open .gp-profile__caret { transform: rotate(180deg); }

.gp-menu-backdrop {
  position: fixed;
  inset: 0;
  z-index: 40;
  border: 0;
  background: transparent;
  cursor: default;
}

.gp-menu {
  position: absolute;
  right: 0;
  margin-top: 8px;
  z-index: 50;
  width: 256px;
  max-width: calc(100vw - 1.5rem);
  overflow: hidden;
  border-radius: var(--gp-radius-xl);
  border: 1px solid var(--gp-slate-200);
  background: #fff;
  box-shadow: var(--gp-shadow-xl);
}

.gp-menu__head {
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--gp-slate-100);
  background: rgba(248, 250, 252, 0.7);
  padding: 16px;
}

.gp-menu__name {
  font-size: 13px;
  font-weight: 600;
  color: var(--gp-slate-900);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.gp-menu__email {
  font-size: 12px;
  color: var(--gp-slate-500);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.gp-menu__badge {
  margin-top: 4px;
  display: inline-block;
  border-radius: 9999px;
  background: var(--gp-cyan-50);
  padding: 2px 8px;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--gp-cyan-700);
}

.gp-menu__nav {
  border-bottom: 1px solid var(--gp-slate-100);
  padding: 6px;
}

@media (min-width: 768px) {
  .gp-menu__nav { display: none; }
}

.gp-menu__link {
  display: block;
  border-radius: var(--gp-radius);
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 500;
  color: var(--gp-slate-600);
  text-decoration: none;
  transition: background-color 0.15s, color 0.15s;
}

.gp-menu__link:hover { background: var(--gp-slate-50); }
.gp-menu__link.is-active { background: var(--gp-cyan-50); color: var(--gp-cyan-700); }

.gp-menu__lang {
  border-bottom: 1px solid var(--gp-slate-100);
  padding: 10px;
}

@media (min-width: 480px) {
  .gp-menu__lang { display: none; }
}

.gp-menu__lang .gp-lang {
  display: flex;
  width: 100%;
  flex-wrap: wrap;
  border-color: var(--gp-slate-200);
  background: var(--gp-slate-50);
  overflow: visible;
}

.gp-menu__lang .gp-lang__opt {
  flex: 1;
  color: var(--gp-slate-500);
  text-align: center;
  text-shadow: none;
}

.gp-menu__lang .gp-lang__opt:hover {
  color: var(--gp-slate-800);
}

.gp-menu__lang .gp-lang__opt.is-active {
  background: #fff;
  color: var(--gp-cyan-700);
  border-color: var(--gp-slate-200);
}

.gp-menu__lang .gp-lang-more {
  position: static;
}

.gp-menu__lang .gp-lang-more[open] {
  flex-basis: 100%;
  width: 100%;
}

.gp-menu__lang .gp-lang-more[open] > .gp-lang-more__trigger {
  width: 100%;
  margin-top: 6px;
}

.gp-menu__lang .gp-lang-more__menu {
  position: static;
  display: none;
  width: 100%;
  min-width: 0;
  margin-top: 6px;
  box-shadow: none;
}

.gp-menu__foot { padding: 6px; }

.gp-menu__logout {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 8px;
  border: 0;
  background: transparent;
  border-radius: var(--gp-radius);
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 500;
  color: var(--gp-rose-600);
  text-decoration: none;
  transition: background-color 0.15s;
}

.gp-menu__logout:hover { background: var(--gp-rose-50); }

/* Hidden language <select> the menu items submit through */
.gp-lang-form { margin: 0; }

/* Bottom tab bar — shown at every width where the pill nav (>= 1100px) is hidden. It used to
   stop at 768px, which left tablets and phones held sideways (768–1099px) with no navigation
   at all. ONE row: the header component puts at most four tabs + "More" into it and the rest
   into the .gp-mobile-sheet. A fixed six-column grid wrapped a fully-permitted guide's nine
   tabs onto two rows (119px) while the page only reserved 72px, hiding the last card. */
@media (max-width: 1099.98px) {
  .gp-app {
    padding-bottom: calc(76px + env(safe-area-inset-bottom));
  }

  .gp-mobile-nav {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 35;
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(0, 1fr);
    gap: 2px;
    padding: 6px max(6px, calc((100% - 720px) / 2)) calc(6px + env(safe-area-inset-bottom));
    border-top: 1px solid var(--gp-slate-200);
    background: rgba(255, 255, 255, 0.97);
    box-shadow: 0 -10px 30px -22px rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
  }

  .gp-mobile-nav__link {
    min-width: 0;
    min-height: 52px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    border-radius: 10px;
    padding: 5px 2px;
    color: var(--gp-slate-500);
    font-size: 10px;
    font-weight: 700;
    line-height: 1.05;
    text-align: center;
    text-decoration: none;
    border: 0;
    background: transparent;
    font-family: inherit;
    cursor: pointer;
  }

  .gp-mobile-nav__link i {
    font-size: 17px;
  }

  .gp-mobile-nav__link span {
    width: 100%;
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    white-space: normal;
  }

  .gp-mobile-nav__link.is-active {
    background: var(--gp-cyan-50);
    color: var(--gp-cyan-700);
  }

  .gp-mobile-nav__chat {
    color: var(--gp-cyan-700);
  }

  .gp-mobile-nav__chat i {
    width: 28px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 9px;
    background: var(--gp-cyan-50);
  }

  /* "More" sheet — the tabs that did not fit the bar, as a tile grid right above it. */
  .gp-mobile-sheet-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 34;
    border: 0;
    background: rgba(15, 23, 42, 0.32);
    cursor: default;
  }

  .gp-mobile-sheet {
    position: fixed;
    right: max(8px, calc((100% - 720px) / 2));
    bottom: calc(76px + env(safe-area-inset-bottom));
    left: max(8px, calc((100% - 720px) / 2));
    z-index: 36;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
    max-height: calc(100dvh - 150px);
    overflow-y: auto;
    padding: 10px;
    border: 1px solid var(--gp-slate-200);
    border-radius: var(--gp-radius-xl);
    background: #fff;
    box-shadow: var(--gp-shadow-xl);
  }

  .gp-mobile-sheet__link {
    min-width: 0;
    min-height: 68px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border-radius: var(--gp-radius-lg);
    padding: 8px 4px;
    background: var(--gp-slate-50);
    color: var(--gp-slate-600);
    font-size: 12px;
    font-weight: 700;
    line-height: 1.15;
    text-align: center;
    text-decoration: none;
    overflow-wrap: anywhere;
  }

  .gp-mobile-sheet__link i {
    font-size: 18px;
    color: var(--gp-cyan-700);
  }

  .gp-mobile-sheet__link.is-active {
    background: var(--gp-cyan-50);
    color: var(--gp-cyan-700);
    box-shadow: inset 0 0 0 1px var(--gp-cyan-200);
  }
}

@media (max-width: 767.98px) {
  .gp-header__inner {
    height: 58px;
    padding-inline: 12px;
    gap: 8px;
  }

  .gp-header__left {
    flex: 1 1 auto;
    min-width: 0;
  }

  .gp-header__right {
    flex: 0 0 auto;
    gap: 8px;
  }

  .gp-brand img {
    height: 36px;
    max-width: 120px;
  }

  .gp-profile__btn {
    min-width: 44px;
    min-height: 44px;
    justify-content: center;
    padding: 5px;
  }

  .gp-avatar {
    height: 30px;
    width: 30px;
  }

  .gp-menu {
    position: fixed;
    top: 64px;
    right: 12px;
    left: 12px;
    width: auto;
    max-width: none;
    max-height: calc(100dvh - 76px);
    margin-top: 0;
    overflow-x: hidden;
    overflow-y: auto;
  }

  .gp-menu__nav {
    display: none;
  }

  .gp-menu__link {
    padding: 10px 12px;
    font-size: 14px;
  }
}

@media (max-width: 479.98px) {
  .gp-header__inner {
    height: 56px;
    padding-inline: 10px;
  }

  .gp-brand img {
    height: 34px;
    max-width: 104px;
  }

  .gp-menu {
    top: 60px;
    right: 10px;
    left: 10px;
  }
}

/* -----------------------------------------------------------------------------
   Hero band
   -------------------------------------------------------------------------- */
.gp-hero {
  background-image: var(--gp-hero);
}

.gp-hero__inner {
  max-width: 1536px;
  margin: 0 auto;
  padding: 32px 16px;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
}

@media (min-width: 1024px) {
  .gp-hero__inner { padding: 40px 40px; }
}

.gp-hero__kicker {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--gp-cyan-200);
}

.gp-hero__title {
  margin: 4px 0 0;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #fff;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (min-width: 1024px) {
  .gp-hero__title { font-size: 30px; }
}

.gp-hero__accent {
  margin-top: 4px;
  height: 4px;
  width: 40px;
  border-radius: 9999px;
  background: #67e8f9;
}

.gp-hero__sub {
  margin: 8px 0 0;
  font-size: 13px;
  color: #cffafe;
}

.gp-hero__chip {
  border-radius: var(--gp-radius-lg);
  background: rgba(255, 255, 255, 0.1);
  padding: 8px 16px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.gp-hero__chip-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--gp-cyan-200);
}

.gp-hero__chip-value {
  font-size: 13px;
  font-weight: 600;
  color: #fff;
}

/* -----------------------------------------------------------------------------
   Cards
   -------------------------------------------------------------------------- */
.gp-card {
  border-radius: var(--gp-radius-xl);
  background: #fff;
  border: 1px solid var(--gp-card-border);
  box-shadow: var(--gp-shadow-sm);
}

.gp-card--pad {
  padding: 16px;
}

@media (min-width: 1024px) {
  .gp-card--pad { padding: 20px; }
}

.gp-card--clip { overflow: hidden; }

.gp-card__title {
  padding: 11px 16px;
  border-bottom: 0;
  background-image: var(--gp-aqua);
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.16);
}

.gp-section-head {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  background-image: var(--gp-aqua);
  border-radius: var(--gp-radius-xl) var(--gp-radius-xl) 0 0;
  margin: -16px -16px 16px;
  padding: 11px 16px;
  box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.16);
}

@media (min-width: 1024px) {
  .gp-card--pad > .gp-section-head {
    margin: -20px -20px 20px;
    padding-inline: 20px;
  }
}

.gp-card--pad.gp-stack > .gp-section-head + * {
  margin-top: 0;
}

.gp-section-head i { color: rgba(255, 255, 255, 0.92); }

.gp-section-head h2,
.gp-section-head h3 {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
}

/* Vertical rhythm helpers */
.gp-stack > * + * { margin-top: 16px; }
.gp-stack-sm > * + * { margin-top: 8px; }
.gp-stack-lg > * + * { margin-top: 24px; }

/* -----------------------------------------------------------------------------
   Forms
   -------------------------------------------------------------------------- */
.gp-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

@media (min-width: 640px) {
  .gp-grid--2 { grid-template-columns: repeat(2, 1fr); }
  .gp-grid--4 { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .gp-grid--4 { grid-template-columns: repeat(4, 1fr); }
}

.gp-label {
  margin-bottom: 6px;
  display: block;
  font-size: 11px;
  font-weight: 600;
  color: var(--gp-slate-600);
}

.gp-field {
  width: 100%;
  height: 40px;
  border-radius: var(--gp-radius);
  border: 1px solid var(--gp-slate-300);
  background: #fff;
  padding: 0 12px;
  font-size: 13px;
  color: var(--gp-slate-900);
  transition: border-color 0.15s, box-shadow 0.15s;
}

.gp-field:focus {
  outline: none;
  border-color: var(--gp-cyan-600);
  box-shadow: 0 0 0 4px rgba(8, 145, 178, 0.1);
}

.gp-field:disabled {
  background: var(--gp-slate-50);
  color: var(--gp-slate-400);
}

textarea.gp-field {
  height: auto;
  padding: 8px 12px;
  line-height: 1.5;
  resize: vertical;
}

.gp-field--sm { height: 36px; }
.gp-field--inline { height: 36px; }

/* Read-only value boxes (<div class="gp-field">) — centre the text like a real input. */
div.gp-field {
  display: flex;
  align-items: center;
}

/* SearchableSelect: its own stylesheet centres the value with flex, but LoginLayout links
   Bootstrap again AFTER it, and `.form-control { display: block }` (same specificity) wins.
   The value then hugged the top of the box — most visible on phones, where the box grows to
   40px. The open state (`.searchable-select[data-open] …`, more specific) still hides it. */
.gp-app .searchable-select-display {
  display: flex;
  align-items: center;
}

select.gp-field {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  padding-right: 34px;
}

.gp-check {
  width: 16px;
  height: 16px;
  border-radius: 4px;
  border: 1px solid var(--gp-slate-300);
  accent-color: var(--gp-cyan-700);
  vertical-align: middle;
}

.gp-check-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--gp-slate-600);
}

.gp-radio-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
  font-size: 13px;
  color: var(--gp-slate-600);
}

.gp-radio-row label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-weight: 400;
}

.gp-radio-row input[type="radio"] { accent-color: var(--gp-cyan-700); }

.gp-form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.gp-form-actions--end { justify-content: flex-end; }

.gp-filter-toggle,
.gp-filter-toggle-label {
  display: none;
}

/* -----------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.gp-btn {
  display: inline-flex;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: var(--gp-radius);
  font-size: 13px;
  font-weight: 600;
  padding: 8px 20px;
  transition: background-color 0.15s, box-shadow 0.15s, color 0.15s, opacity 0.15s;
  text-decoration: none;
  line-height: 1.2;
}

.gp-btn:disabled { cursor: not-allowed; opacity: 0.6; }

.gp-btn--primary {
  background-image: var(--gp-aqua);
  color: #fff;
  box-shadow: 0 1px 2px 0 rgba(14, 116, 144, 0.2);
}

/* Keep payment links readable over the primary gradient despite host link rules. */
.gp-app a.gp-btn--primary { color: #fff !important; }

.gp-btn--primary:hover { background-image: var(--gp-aqua-deep); box-shadow: var(--gp-shadow-md); }

.gp-btn--outline {
  background: #fff;
  color: var(--gp-slate-600);
  border: 1px solid var(--gp-slate-200);
  font-weight: 500;
  box-shadow: var(--gp-shadow-sm);
}

.gp-btn--outline:hover { background: var(--gp-slate-50); color: var(--gp-slate-900); }

.gp-btn--sm { padding: 5px 12px; font-size: 11px; }
.gp-btn--link {
  background: none;
  border: 0;
  color: var(--gp-slate-400);
  font-size: 12px;
  padding: 0;
  cursor: pointer;
}
.gp-btn--link:hover { color: var(--gp-slate-700); }

.gp-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--gp-slate-500);
  text-decoration: none;
}
.gp-back:hover { color: var(--gp-slate-800); }

/* -----------------------------------------------------------------------------
   Tables
   -------------------------------------------------------------------------- */
.gp-table-scroll { overflow-x: auto; }

.gp-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.gp-table--nowrap { white-space: nowrap; }

@media (min-width: 1024px) {
  .gp-card--guest-traffic-table {
    width: calc(100vw - 32px);
    max-width: none;
    margin-left: calc(50% - 50vw + 16px);
    margin-right: calc(50% - 50vw + 16px);
  }

  .gp-card--tour-sales-table {
    width: calc(100vw - 32px);
    max-width: none;
    margin-left: calc(50% - 50vw + 16px);
    margin-right: calc(50% - 50vw + 16px);
  }

  .gp-table-scroll--guest-traffic {
    overflow-x: visible;
  }

  .gp-table-scroll--tour-sales {
    overflow-x: visible;
  }

  .gp-table--guest-traffic {
    table-layout: fixed;
    font-size: 11px;
    line-height: 1.25;
    white-space: normal;
  }

  .gp-table--tour-sales {
    table-layout: fixed;
    font-size: 11px;
    line-height: 1.25;
    white-space: normal;
  }

  .gp-table--guest-traffic th,
  .gp-table--guest-traffic td {
    padding: 6px 7px;
    overflow-wrap: anywhere;
    word-break: normal;
  }

  .gp-table--tour-sales th,
  .gp-table--tour-sales td {
    padding: 6px 7px;
    overflow-wrap: anywhere;
    word-break: normal;
  }

  .gp-table--tour-sales th:nth-child(1),
  .gp-table--tour-sales td:nth-child(1) {
    width: 5%;
  }

  .gp-table--tour-sales th:nth-child(2),
  .gp-table--tour-sales td:nth-child(2),
  .gp-table--tour-sales th:nth-child(5),
  .gp-table--tour-sales td:nth-child(5),
  .gp-table--tour-sales th:nth-child(6),
  .gp-table--tour-sales td:nth-child(6),
  .gp-table--tour-sales th:nth-child(10),
  .gp-table--tour-sales td:nth-child(10),
  .gp-table--tour-sales th:nth-child(12),
  .gp-table--tour-sales td:nth-child(12) {
    width: 4.4%;
  }

  .gp-table--tour-sales th:nth-child(3),
  .gp-table--tour-sales td:nth-child(3),
  .gp-table--tour-sales th:nth-child(4),
  .gp-table--tour-sales td:nth-child(4),
  .gp-table--tour-sales th:nth-child(7),
  .gp-table--tour-sales td:nth-child(7),
  .gp-table--tour-sales th:nth-child(8),
  .gp-table--tour-sales td:nth-child(8),
  .gp-table--tour-sales th:nth-child(9),
  .gp-table--tour-sales td:nth-child(9),
  .gp-table--tour-sales th:nth-child(11),
  .gp-table--tour-sales td:nth-child(11) {
    width: 7%;
  }

  .gp-table--tour-sales th:nth-child(13),
  .gp-table--tour-sales td:nth-child(13),
  .gp-table--tour-sales th:nth-child(14),
  .gp-table--tour-sales td:nth-child(14),
  .gp-table--tour-sales th:nth-child(15),
  .gp-table--tour-sales td:nth-child(15),
  .gp-table--tour-sales th:nth-child(16),
  .gp-table--tour-sales td:nth-child(16),
  .gp-table--tour-sales th:nth-child(17),
  .gp-table--tour-sales td:nth-child(17),
  .gp-table--tour-sales th:nth-child(18),
  .gp-table--tour-sales td:nth-child(18) {
    width: 4.7%;
  }

  .gp-table--guest-traffic th:nth-child(1),
  .gp-table--guest-traffic td:nth-child(1) {
    width: 4%;
  }

  .gp-table--guest-traffic th:nth-child(2),
  .gp-table--guest-traffic td:nth-child(2) {
    width: 6%;
  }

  .gp-table--guest-traffic th:nth-child(3),
  .gp-table--guest-traffic td:nth-child(3),
  .gp-table--guest-traffic th:nth-child(5),
  .gp-table--guest-traffic td:nth-child(5),
  .gp-table--guest-traffic th:nth-child(6),
  .gp-table--guest-traffic td:nth-child(6),
  .gp-table--guest-traffic th:nth-child(7),
  .gp-table--guest-traffic td:nth-child(7),
  .gp-table--guest-traffic th:nth-child(10),
  .gp-table--guest-traffic td:nth-child(10),
  .gp-table--guest-traffic th:nth-child(11),
  .gp-table--guest-traffic td:nth-child(11),
  .gp-table--guest-traffic th:nth-child(13),
  .gp-table--guest-traffic td:nth-child(13),
  .gp-table--guest-traffic th:nth-child(17),
  .gp-table--guest-traffic td:nth-child(17) {
    width: 4.5%;
  }

  .gp-table--guest-traffic th:nth-child(4),
  .gp-table--guest-traffic td:nth-child(4),
  .gp-table--guest-traffic th:nth-child(8),
  .gp-table--guest-traffic td:nth-child(8),
  .gp-table--guest-traffic th:nth-child(14),
  .gp-table--guest-traffic td:nth-child(14),
  .gp-table--guest-traffic th:nth-child(15),
  .gp-table--guest-traffic td:nth-child(15),
  .gp-table--guest-traffic th:nth-child(16),
  .gp-table--guest-traffic td:nth-child(16) {
    width: 5.8%;
  }

  .gp-table--guest-traffic th:nth-child(9),
  .gp-table--guest-traffic td:nth-child(9),
  .gp-table--guest-traffic th:nth-child(12),
  .gp-table--guest-traffic td:nth-child(12),
  .gp-table--guest-traffic th:nth-child(18),
  .gp-table--guest-traffic td:nth-child(18) {
    width: 8.333%;
  }
}

.gp-table thead {
  background: var(--gp-slate-50);
  text-align: left;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--gp-slate-400);
}

.gp-table th {
  padding: 8px 12px;
  font-weight: 600;
}

.gp-table tbody tr { border-top: 1px solid var(--gp-slate-100); }
.gp-table tbody tr:hover { background: rgba(248, 250, 252, 0.6); }

.gp-table td {
  padding: 8px 12px;
  color: var(--gp-slate-600);
  vertical-align: middle;
}

.gp-table td.gp-strong { font-weight: 500; color: var(--gp-slate-800); }
.gp-table .gp-center { text-align: center; }
.gp-table .gp-right { text-align: right; }
.gp-table .gp-num { font-variant-numeric: tabular-nums; }

.gp-cell-link {
  font-weight: 600;
  color: var(--gp-cyan-700);
  text-decoration: none;
}
.gp-cell-link:hover { text-decoration: underline; }

.gp-empty {
  padding: 32px 12px;
  text-align: center;
  color: var(--gp-slate-400);
}

.gp-row-selected { background: var(--gp-cyan-50) !important; }
.gp-row-muted { opacity: 0.5; }

/* Icon-only row actions on desktop; the phone card layout shows the text (see mobile-cards). */
.gp-cell-actions { white-space: nowrap; }
.gp-cell-actions__label { display: none; }

/* A section that takes focus when it opens: keep it clear of the sticky header. */
.gp-scroll-target { scroll-margin-top: 80px; }
.gp-scroll-target:focus { outline: none; }
.gp-scroll-target:focus-visible { outline: 3px solid var(--gp-cyan-600); outline-offset: 2px; }

/* -----------------------------------------------------------------------------
   Detail / key-value grids, badges, notes, alerts
   -------------------------------------------------------------------------- */
.gp-facts {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  font-size: 13px;
}

@media (min-width: 640px) {
  .gp-facts--4 { grid-template-columns: repeat(4, 1fr); }
}

.gp-fact__label {
  display: block;
  font-size: 11px;
  color: var(--gp-slate-400);
}

.gp-detail-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.gp-detail-title {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  color: var(--gp-slate-900);
}

.gp-detail-sub {
  margin: 2px 0 0;
  font-size: 12px;
  color: var(--gp-slate-500);
}

.gp-badge {
  border-radius: 9999px;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 600;
}

.gp-badge--danger {
  background: var(--gp-rose-50);
  border: 1px solid var(--gp-rose-200);
  color: var(--gp-rose-700);
}

/* WP5 — Tour V2 rehber sayfalari: plan durumu ve satis durumu rozetleri. Yalniz iki
   varyant eklendi (bilgi/basari); danger zaten vardi. Renkler mevcut token'lardan
   turetildi, yeni palet acilmadi. */
.gp-badge--info {
  background: var(--gp-cyan-50);
  border: 1px solid var(--gp-cyan-200);
  color: var(--gp-cyan-700);
}

.gp-badge--success {
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: var(--gp-emerald-600);
}

/* Tour V2 kart izgarasi — foy gunleri ve bakiye kartlari. */
.gp-tv2-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr));
  gap: 12px;
}

.gp-tv2-metric {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 3px 0;
  font-size: 12px;
}

.gp-tv2-metric > span:first-child {
  color: var(--gp-slate-500);
}

.gp-tv2-metric > span:last-child {
  font-weight: 600;
}

.gp-tv2-net {
  border-top: 1px solid var(--gp-slate-200);
  margin-top: 6px;
  padding-top: 6px;
  font-size: 14px;
}

/* Bakiye hareketleri doviz suzgeci (Tumu / USD / THB ...) — mobilde de yan yana kalir. */
.gp-tv2-currency-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.gp-note {
  border-radius: var(--gp-radius);
  background: var(--gp-slate-50);
  border: 1px solid rgba(226, 232, 240, 0.7);
  padding: 8px 12px;
  font-size: 13px;
  color: var(--gp-slate-600);
}

.gp-preview {
  border-radius: var(--gp-radius-lg);
  border: 1px solid var(--gp-cyan-200);
  background: rgba(236, 254, 255, 0.5);
  padding: 16px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  font-size: 13px;
}

@media (min-width: 640px) {
  .gp-preview { grid-template-columns: repeat(4, 1fr); }
}

.gp-file-btn {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 8px;
  border-radius: var(--gp-radius);
  border: 1px solid var(--gp-slate-200);
  background: #fff;
  padding: 8px 12px;
  font-size: 13px;
  color: var(--gp-slate-600);
  cursor: pointer;
  text-align: left;
}
.gp-file-btn:hover { background: var(--gp-slate-50); }

.gp-alert {
  display: flex;
  align-items: center;
  gap: 8px;
  border-radius: var(--gp-radius);
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 500;
}

.gp-alert--danger {
  background: var(--gp-rose-50);
  border: 1px solid var(--gp-rose-200);
  color: var(--gp-rose-700);
}

.gp-alert--success {
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: var(--gp-emerald-600);
}

.gp-alert--warning {
  background: #fffbeb;
  border: 1px solid #fde68a;
  color: #b45309;
}

.gp-state {
  border-radius: var(--gp-radius-xl);
  background: #fff;
  border: 1px solid var(--gp-card-border);
  padding: 40px;
  text-align: center;
  color: var(--gp-slate-400);
}

.gp-state--error {
  border-color: var(--gp-rose-200);
  color: var(--gp-rose-700);
}

.gp-saved {
  font-size: 13px;
  font-weight: 500;
  color: var(--gp-emerald-600);
}

/* -----------------------------------------------------------------------------
   Login — compact field-operations gateway
   -------------------------------------------------------------------------- */
.guide-login-theme-host {
  display: grid;
  place-items: center;
  width: 100%;
  max-width: none;
  min-height: 100dvh;
  margin: 0;
  padding: clamp(16px, 3vw, 40px);
  background:
    linear-gradient(115deg, rgba(4, 24, 39, 0.38), rgba(8, 47, 73, 0.16)),
    url("https://operator.aqua-travelgroup.com/Pictures/login-hero.jpg") center / cover no-repeat fixed,
    url("/Pictures/SLIDE/Thailand-2.jpg") center / cover no-repeat fixed,
    #08324e;
}

html:has(.guide-login-theme-host),
body:has(.guide-login-theme-host) {
  width: 100%;
  min-height: 100dvh;
  margin: 0 !important;
  padding: 0 !important;
  overflow-x: hidden;
  background: #08324e;
}

body:has(.guide-login-theme-host) .request-activity-toast {
  display: none !important;
}

.gp-login {
  display: grid;
  width: min(1120px, 100%);
  min-height: min(680px, calc(100dvh - 48px));
  grid-template-columns: 1fr;
  background: #fff;
  border: 1px solid rgba(203, 213, 225, 0.7);
  border-radius: 24px;
  box-shadow: 0 30px 80px -36px rgba(15, 23, 42, 0.46);
  overflow: hidden;
}

@media (min-width: 900px) and (min-height: 640px) {
  .gp-login {
    height: min(720px, calc(100dvh - 64px));
    grid-template-columns: minmax(0, 1.08fr) minmax(400px, 0.92fr);
  }
}

.gp-login__brand {
  position: relative;
  display: none;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  background-image: var(--gp-login-brand);
  padding: clamp(36px, 4vw, 56px);
  color: #fff;
}

.gp-login__brand-photo {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0.28;
  mix-blend-mode: luminosity;
  pointer-events: none;
}

@media (min-width: 900px) and (min-height: 640px) {
  .gp-login__brand { display: flex; }
}

.gp-login__dots {
  pointer-events: none;
  position: absolute;
  inset: 0;
  opacity: 0.07;
  background-image: radial-gradient(circle at 1px 1px, #fff 1px, transparent 0);
  background-size: 28px 28px;
  z-index: 1;
}

.gp-login__brand-top,
.gp-login__brand-mid,
.gp-login__foot { position: relative; z-index: 2; }

.gp-login__brand-top {
  display: flex;
  align-items: center;
  gap: 12px;
}

.gp-login__brand-logo {
  border-radius: var(--gp-radius-lg);
  background: rgba(255, 255, 255, 0.1);
  padding: 6px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: grid;
  place-items: center;
}

.gp-login__brand-logo img { height: 36px; max-width: 120px; object-fit: contain; }
.gp-login__brand-logo i { font-size: 28px; color: #fff; }

.gp-login__brand-title {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.gp-login__brand-kicker {
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--gp-cyan-200);
}

.gp-login__brand-mid { max-width: 30rem; }

.gp-login__route-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  color: var(--gp-cyan-200);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.gp-login__tagline {
  font-size: 30px;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.01em;
  margin: 0;
}

.gp-login__highlights {
  position: relative;
  margin: 30px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.gp-login__highlights::before {
  content: "";
  position: absolute;
  top: 10px;
  bottom: 10px;
  left: 9px;
  width: 1px;
  background: rgba(165, 243, 252, 0.28);
}

.gp-login__highlights li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 13px;
  color: #cffafe;
}

.gp-login__hl-check {
  position: relative;
  z-index: 1;
  margin-top: 2px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.15);
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  font-size: 10px;
  color: #fff;
}

.gp-login__foot {
  font-size: 12px;
  color: rgba(165, 243, 252, 0.6);
}

.gp-login__form-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: clamp(28px, 5vw, 64px);
  background:
    linear-gradient(180deg, rgba(248, 250, 252, 0.5), transparent 32%),
    #fff;
}

@media (min-width: 640px) {
  .gp-login__form-wrap { padding: clamp(40px, 6vw, 72px); }
}

.gp-login__form {
  width: 100%;
  max-width: 24rem;
}

.gp-login__topbar {
  margin-bottom: 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.gp-login__mini-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

@media (min-width: 900px) and (min-height: 640px) {
  .gp-login__mini-brand { display: none; }
}

.gp-login__mini-brand img { height: 32px; max-width: 120px; object-fit: contain; }
.gp-login__mini-brand span { font-size: 16px; font-weight: 600; color: var(--gp-slate-900); }

.gp-login-language {
  position: relative;
  margin-left: auto;
}

.gp-login-language summary {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-width: 86px;
  height: 42px;
  padding: 0 13px;
  border: 1px solid var(--gp-slate-200);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--gp-shadow-sm);
  color: var(--gp-slate-700);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.gp-login-language summary::-webkit-details-marker { display: none; }
.gp-login-language summary:hover,
.gp-login-language[open] summary {
  border-color: rgba(8, 145, 178, 0.45);
  box-shadow: 0 0 0 3px rgba(8, 145, 178, 0.08);
}

.gp-login-language summary img,
.gp-login-language__item img {
  width: 20px;
  height: 14px;
  flex: 0 0 auto;
  border-radius: 3px;
  object-fit: cover;
  box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.1);
}

.gp-login-language summary i {
  margin-left: auto;
  color: var(--gp-slate-400);
  font-size: 9px;
  transition: transform 0.15s ease;
}

.gp-login-language[open] summary i { transform: rotate(180deg); }

.gp-login-language__menu {
  position: absolute;
  top: calc(100% + 9px);
  right: 0;
  z-index: 20;
  display: grid;
  gap: 2px;
  width: max-content;
  min-width: 220px;
  max-height: min(340px, 60vh);
  overflow-y: auto;
  padding: 6px;
  border: 1px solid var(--gp-slate-200);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 24px 55px -20px rgba(15, 23, 42, 0.38);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.gp-login-language__item {
  display: grid;
  grid-template-columns: 20px 30px minmax(0, 1fr) 14px;
  align-items: center;
  gap: 9px;
  min-height: 42px;
  padding: 8px 10px;
  border-radius: 9px;
  color: var(--gp-slate-600);
  font-size: 12px;
  text-decoration: none;
  white-space: nowrap;
}

.gp-login-language__item:hover {
  background: var(--gp-slate-50);
  color: var(--gp-slate-900);
  text-decoration: none;
}

.gp-login-language__item.is-active {
  background: var(--gp-cyan-50);
  color: var(--gp-cyan-700);
}

.gp-login-language__code { font-weight: 700; }
.gp-login-language__name { overflow: hidden; text-overflow: ellipsis; }
.gp-login-language__item > i { color: var(--gp-cyan-600); font-size: 10px; }

.gp-login__heading {
  padding-left: 14px;
  border-left: 3px solid var(--gp-cyan-600);
}

.gp-login__form-kicker {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 8px;
  color: var(--gp-cyan-700);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.gp-login__title {
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--gp-slate-900);
  margin: 0;
}

.gp-login__subtitle {
  margin: 6px 0 0;
  font-size: 13px;
  color: var(--gp-slate-500);
}

.gp-login__fields {
  margin-top: 30px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.gp-login__field { min-width: 0; }

.gp-login__input-wrap {
  position: relative;
}

.gp-login__input-icon {
  position: absolute;
  top: 50%;
  left: 15px;
  z-index: 1;
  transform: translateY(-50%);
  color: var(--gp-slate-400);
  font-size: 13px;
  pointer-events: none;
  transition: color 0.15s ease;
}

.gp-login__input-wrap:focus-within .gp-login__input-icon {
  color: var(--gp-cyan-600);
}

.gp-login__label {
  margin-bottom: 6px;
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--gp-slate-700);
}

.gp-login__input {
  width: 100%;
  height: 48px;
  border-radius: var(--gp-radius);
  border: 1px solid var(--gp-slate-300);
  background: #fff;
  padding: 0 14px 0 42px;
  font-size: 14px;
  color: var(--gp-slate-900);
  transition: border-color 0.15s, box-shadow 0.15s;
}

.gp-login__input::placeholder { color: var(--gp-slate-400); }

.gp-login__input:focus {
  outline: none;
  border-color: var(--gp-cyan-600);
  box-shadow: 0 0 0 4px rgba(8, 145, 178, 0.1);
}

select.gp-login__input {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
}

.gp-login__submit {
  width: 100%;
  height: 48px;
  border: 0;
  border-radius: var(--gp-radius);
  background-image: var(--gp-aqua);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 1px 2px 0 rgba(14, 116, 144, 0.2);
  transition: background-image 0.15s, box-shadow 0.15s, opacity 0.15s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.gp-login__submit:hover { background-image: var(--gp-aqua-deep); box-shadow: var(--gp-shadow-md); }
.gp-login__submit:disabled { opacity: 0.6; cursor: not-allowed; }

.gp-login__error {
  border-radius: var(--gp-radius);
  background: var(--gp-rose-50);
  border: 1px solid var(--gp-rose-200);
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 500;
  color: var(--gp-rose-700);
}

.gp-login__mobile-foot {
  display: none;
  margin-top: 32px;
  text-align: center;
  color: var(--gp-slate-400);
  font-size: 11px;
}

/* The brand panel is intentionally hidden below the desktop breakpoint. Keep
   the shared B2B/Operator hero visible and move the form onto one readable
   glass surface instead of falling back to a flat white page. */
@media (max-width: 899.98px), (max-height: 639.98px) {
  .gp-login {
    width: min(480px, 100%);
    min-height: auto;
    border-color: rgba(255, 255, 255, 0.18);
    background: transparent;
    box-shadow: none;
  }

  .gp-login__form-wrap {
    min-height: min(720px, calc(100dvh - 32px));
    padding: 28px;
    background: transparent;
  }

  .gp-login__form {
    max-width: 430px;
    padding: 32px 30px 28px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 24px;
    background: rgba(8, 30, 50, 0.56);
    color: #fff;
    box-shadow: 0 30px 70px -25px rgba(0, 0, 0, 0.62);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
  }

  .gp-login__mini-brand span,
  .gp-login__title,
  .gp-login__label { color: #fff; }

  .gp-login__subtitle,
  .gp-login__mobile-foot { color: rgba(224, 242, 254, 0.72); }

  .gp-login__form-kicker { color: #a5f3fc; }
  .gp-login__heading { border-left-color: #22d3ee; }

  .gp-login-language summary {
    border-color: rgba(255, 255, 255, 0.24);
    background: rgba(8, 30, 50, 0.42);
    color: #fff;
    box-shadow: none;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
  }

  .gp-login-language summary i { color: rgba(255, 255, 255, 0.72); }

  .gp-login .gp-login__input {
    border-color: rgba(255, 255, 255, 0.28) !important;
    background: rgba(255, 255, 255, 0.1) !important;
    color: #fff !important;
  }

  .gp-login .gp-login__input::placeholder { color: rgba(224, 242, 254, 0.66) !important; }
  .gp-login__input-icon { color: #a5f3fc; }

  .gp-login .gp-login__input:focus {
    border-color: #a5f3fc !important;
    background: rgba(255, 255, 255, 0.15) !important;
    box-shadow: 0 0 0 4px rgba(165, 243, 252, 0.12);
  }

  .gp-login .gp-login__input:-webkit-autofill,
  .gp-login .gp-login__input:-webkit-autofill:hover,
  .gp-login .gp-login__input:-webkit-autofill:focus {
    -webkit-text-fill-color: #fff !important;
    caret-color: #fff;
    box-shadow: inset 0 0 0 1000px rgba(20, 52, 72, 0.96),
                0 0 0 4px rgba(165, 243, 252, 0.08) !important;
    transition: background-color 9999s ease-out 0s;
  }
}

@media (max-width: 639.98px) {
  .guide-login-theme-host {
    display: block;
    padding: 0;
  }

  .gp-login {
    width: 100%;
    min-height: 100dvh;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    background: transparent;
  }

  .gp-login__form-wrap {
    min-height: 100dvh;
    justify-content: flex-start;
    padding: max(24px, env(safe-area-inset-top)) 22px max(28px, env(safe-area-inset-bottom));
    background: transparent;
  }

  .gp-login__form {
    max-width: 430px;
    margin: auto 0;
    padding: 28px 22px 24px;
    border-radius: 22px;
  }

  .gp-login__topbar { margin-bottom: 48px; }
  .gp-login-language summary { min-width: 82px; height: 44px; }
  .gp-login-language__menu { max-width: calc(100vw - 44px); }
  .gp-login-language__item { min-height: 44px; }
  .gp-login__title { font-size: 28px; }
  .gp-login__mobile-foot { display: block; }
}

@media (max-height: 640px) and (orientation: landscape) {
  .gp-login__form-wrap { padding-top: 24px; padding-bottom: 24px; }
  .gp-login__topbar { margin-bottom: 24px; }
  .gp-login__fields { margin-top: 22px; gap: 14px; }
  .gp-login__mobile-foot { margin-top: 20px; }
}

/* visually-hidden honeypot */
.gp-hp {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.gp-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* -----------------------------------------------------------------------------
   Popup status/badge/alert compatibility
   The three popup ThemeBases (TourSaleDetail / TransferGuests / AirportCheckInConfirm)
   emit dynamic CSS class names for status alerts and badges. The markup keeps those
   bindings verbatim; these rules make the emitted classes match the gp-* look.
   -------------------------------------------------------------------------- */
.gp-app .guide-confirm-alert,
.gp-app .guide-transfer-alert {
  display: flex;
  align-items: center;
  gap: 8px;
  border-radius: var(--gp-radius);
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 500;
  background: var(--gp-slate-50);
  border: 1px solid var(--gp-slate-200);
  color: var(--gp-slate-700);
}

.gp-app .guide-confirm-alert--success,
.gp-app .guide-transfer-alert--success {
  background: #ecfdf5;
  border-color: #a7f3d0;
  color: #047857;
}

.gp-app .guide-confirm-alert--danger,
.gp-app .guide-transfer-alert--danger {
  background: var(--gp-rose-50);
  border-color: var(--gp-rose-200);
  color: var(--gp-rose-700);
}

.gp-app .guide-confirm-status,
.gp-app .guide-transfer-status,
.gp-app .guide-sale-detail-status {
  display: inline-block;
  border-radius: 9999px;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 600;
  background: var(--gp-slate-100);
  color: var(--gp-slate-600);
  white-space: nowrap;
}

.gp-app .guide-confirm-status--success,
.gp-app .guide-transfer-status--success,
.gp-app .guide-sale-detail-status--success {
  background: #ecfdf5;
  color: #047857;
}

.gp-app .guide-confirm-status--danger,
.gp-app .guide-transfer-status--danger,
.gp-app .guide-sale-detail-status--danger {
  background: var(--gp-rose-50);
  color: var(--gp-rose-700);
}

.gp-app .guide-sale-detail-row--danger td {
  color: var(--gp-rose-700);
  opacity: 0.75;
}

/* Tour sale detail — full-page version of the old popup view */
.guide-sale-detail-page {
  gap: 18px;
}

.guide-sale-detail-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: var(--gp-radius-xl);
  background: rgba(255, 255, 255, 0.9);
  padding: 10px 12px;
  box-shadow: var(--gp-shadow-sm);
}

.guide-sale-detail-ticket {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 40px;
  border-radius: var(--gp-radius-lg);
  background-image: var(--gp-aqua);
  color: #fff;
  padding: 8px 14px;
  box-shadow: 0 10px 24px -18px rgba(8, 47, 73, 0.65);
}

.guide-sale-detail-ticket i {
  color: rgba(255, 255, 255, 0.92);
}

.guide-sale-detail-ticket .gp-fact__label {
  color: rgba(255, 255, 255, 0.7);
  line-height: 1;
}

.guide-sale-detail-ticket strong {
  display: block;
  line-height: 1.15;
}

.guide-sale-detail-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.guide-sale-detail-actions .gp-back {
  border-radius: var(--gp-radius);
  background: var(--gp-slate-50);
  border: 1px solid var(--gp-slate-200);
  color: var(--gp-cyan-700);
  font-weight: 600;
  padding: 7px 12px;
}

.guide-sale-detail-actions .gp-back:hover {
  background: var(--gp-cyan-50);
  color: var(--gp-cyan-700);
}

.guide-sale-detail-summary {
  padding: 18px;
}

@media (min-width: 1024px) {
  .guide-sale-detail-summary {
    padding: 22px;
  }
}

.guide-sale-detail-summary .gp-detail-head {
  align-items: center;
  border-bottom: 1px solid rgba(226, 232, 240, 0.75);
  padding-bottom: 14px;
}

.guide-sale-detail-summary .gp-detail-title {
  max-width: 900px;
  font-size: 19px;
  line-height: 1.25;
}

.guide-sale-detail-summary .gp-facts {
  gap: 10px;
}

.guide-sale-detail-summary .gp-facts > div {
  min-height: 58px;
  border: 1px solid rgba(226, 232, 240, 0.78);
  border-radius: var(--gp-radius-lg);
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  padding: 10px 12px;
}

.guide-sale-detail-summary .gp-fact__label {
  margin-bottom: 4px;
  color: var(--gp-slate-400);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.guide-sale-detail-table-card {
  box-shadow: 0 12px 28px -24px rgba(15, 23, 42, 0.55);
}

.guide-sale-detail-table-card .gp-card__title {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
}

.guide-sale-detail-table-card .gp-table th,
.guide-sale-detail-table-card .gp-table td {
  padding-top: 8px;
  padding-bottom: 8px;
}

.guide-sale-detail-table-card .gp-table tbody tr:hover {
  background: var(--gp-cyan-50);
}

@media (max-width: 767.98px) {
  .guide-sale-detail-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .guide-sale-detail-ticket,
  .guide-sale-detail-actions,
  .guide-sale-detail-actions .gp-back,
  .guide-sale-detail-actions .gp-btn {
    width: 100%;
  }

  .guide-sale-detail-actions {
    justify-content: stretch;
  }

  .guide-sale-detail-summary .gp-detail-head {
    align-items: flex-start;
  }

  .guide-sale-detail-summary .gp-detail-title {
    font-size: 17px;
  }
}

/* -----------------------------------------------------------------------------
   Language switcher — TR/EN/RU pills + "…" dropdown for the rest
   (mirrors the operator panel's Pills mode, in the guide's light palette).
   -------------------------------------------------------------------------- */
.gp-lang-more {
  position: relative;
  display: inline-flex;
}

.gp-lang-more__trigger {
  list-style: none;
  cursor: pointer;
  min-width: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.gp-lang-more__trigger::-webkit-details-marker { display: none; }

.gp-lang-more[open] > .gp-lang-more__menu { display: block; }

.gp-lang-more__menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  left: auto;
  display: none;
  min-width: 172px;
  padding: 6px;
  z-index: 60;
  background: #fff;
  border: 1px solid var(--gp-slate-200);
  border-radius: var(--gp-radius-lg);
  box-shadow: var(--gp-shadow-xl);
}

.gp-lang-more__item {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  border: 0;
  background: transparent;
  text-align: left;
  padding: 7px 10px;
  border-radius: var(--gp-radius);
  font-size: 12px;
  font-weight: 500;
  color: var(--gp-slate-600);
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
}

.gp-lang-more__item:hover { background: var(--gp-slate-50); color: var(--gp-slate-900); }
.gp-lang-more__item.is-active { background: var(--gp-cyan-50); color: var(--gp-cyan-700); font-weight: 600; }

.gp-lang-flag {
  width: 18px;
  height: 13px;
  object-fit: cover;
  border-radius: 2px;
  flex-shrink: 0;
  box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.08);
}

/* -----------------------------------------------------------------------------
   Layout stability — keep section width constant across tabs
   • Reserve the scrollbar gutter so a taller page doesn't shift/resize content.
   • Never let a wide results table stretch the page: it scrolls inside
     .gp-table-scroll instead (flex/grid children need min-width:0 to allow that).
   -------------------------------------------------------------------------- */
/* Force a permanent viewport scrollbar so section width/position never shifts
   when a tab's content is short (no scrollbar) vs tall (scrollbar). Target :root
   only — the layout nests a second <html> (LoginLayout), and a bare `html`
   selector would give that inner element a second, empty scrollbar track. */
:root { overflow-y: scroll; scrollbar-gutter: stable; }

.gp-app { overflow-x: clip; }

.gp-card { min-width: 0; }

.gp-table-scroll { max-width: 100%; }

.gp-app .gp-grid { min-width: 0; }
.gp-app .gp-grid > * { min-width: 0; }

@media (max-width: 767.98px) {
  .gp-main,
  .gp-main--narrow {
    padding: 14px 10px 20px;
    gap: 14px;
  }

  .gp-hero__inner {
    padding: 22px 12px;
    align-items: flex-start;
    gap: 12px;
  }

  .gp-hero__title {
    max-width: 100%;
    font-size: 22px;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .gp-hero__sub {
    overflow-wrap: anywhere;
  }

  .gp-hero__chip {
    width: 100%;
    padding: 8px 12px;
  }

  .gp-card {
    border-radius: var(--gp-radius-lg);
  }

  .gp-card--pad {
    padding: 14px;
  }

  .gp-card__title,
  .gp-section-head {
    border-radius: var(--gp-radius-lg) var(--gp-radius-lg) 0 0;
    padding: 10px 14px;
  }

  .gp-section-head {
    margin: -14px -14px 14px;
  }

  .gp-grid {
    gap: 12px;
  }

  .gp-filter-toggle {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
  }

  .gp-filter-toggle-label {
    min-height: 46px;
    margin-top: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 12px;
    border: 1px solid var(--gp-slate-200);
    border-radius: var(--gp-radius);
    background: var(--gp-slate-50);
    color: var(--gp-slate-700);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
  }

  .gp-filter-toggle-label span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
  }

  .gp-filter-toggle-chevron {
    transition: transform 0.18s ease;
  }

  .gp-filter-toggle:checked + .gp-filter-toggle-label .gp-filter-toggle-chevron {
    transform: rotate(180deg);
  }

  .gp-filter-toggle:not(:checked) ~ .gp-grid .gp-filter-advanced {
    display: none;
  }

  .gp-facts,
  .gp-facts--4,
  .gp-preview {
    grid-template-columns: 1fr;
  }

  .gp-detail-head {
    flex-direction: column;
    align-items: stretch;
  }

  /* Status / net badges keep their pill size instead of stretching across the card. */
  .gp-detail-head > .gp-badge {
    align-self: flex-start;
  }

  .gp-detail-title {
    font-size: 16px;
    overflow-wrap: anywhere;
  }

  .gp-form-actions {
    align-items: stretch;
    justify-content: flex-start;
  }

  .gp-form-actions .gp-btn {
    width: 100%;
  }

  .gp-radio-row,
  .gp-check-row {
    gap: 12px;
  }

  .gp-radio-row label,
  .gp-check-row label {
    min-height: 44px;
  }

  .gp-app .gp-check {
    width: 20px;
    height: 20px;
  }

  /* Shared notification components inside the guide shell: the header bell was 31x30 and
     the inbox's filter/action pills 28-32px tall — below a comfortable thumb target. */
  .gp-app .notif-bell__btn {
    min-width: 40px;
    min-height: 40px;
  }

  .gp-app .notif-filter,
  .gp-app .notif-page__markall,
  .gp-app .notif-history-paging .btn {
    min-height: 40px;
  }

  .gp-app .gp-field {
    height: 48px;
    font-size: 16px !important;
  }

  .gp-app textarea.gp-field {
    min-height: 96px;
  }

  .gp-btn {
    min-height: 48px;
    font-size: 14px;
  }

  .gp-table-scroll {
    margin-inline: -1px;
    -webkit-overflow-scrolling: touch;
  }

  .gp-table {
    min-width: 720px;
    font-size: 12px;
  }

  .gp-table th,
  .gp-table td {
    padding: 7px 10px;
  }

  .gp-table--tour-sales {
    font-size: 10px;
    line-height: 1.2;
  }

  .gp-table--tour-sales th,
  .gp-table--tour-sales td {
    padding: 5px 7px;
  }

  .gp-table--mobile-cards {
    min-width: 0;
    white-space: normal;
  }

  .gp-table--mobile-cards thead {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }

  .gp-table--mobile-cards tbody {
    display: grid;
    gap: 12px;
    padding: 10px;
  }

  .gp-table--mobile-cards tbody tr {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0;
    overflow: hidden;
    border: 1px solid var(--gp-slate-200);
    border-radius: var(--gp-radius-lg);
    background: #fff;
    box-shadow: var(--gp-shadow-sm);
  }

  .gp-table--mobile-cards tbody td {
    min-width: 0;
    min-height: 58px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 3px;
    border-bottom: 1px solid var(--gp-slate-100);
    color: var(--gp-slate-800);
    overflow-wrap: anywhere;
    text-align: left;
  }

  .gp-table--mobile-cards tbody td::before {
    content: attr(data-label);
    color: var(--gp-slate-400);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.05em;
    line-height: 1.2;
    text-transform: uppercase;
  }

  .gp-table--mobile-cards tbody .gp-empty {
    grid-column: 1 / -1;
    align-items: center;
    min-height: 96px;
  }

  .gp-table--mobile-cards tbody .gp-empty::before {
    content: none;
  }

  /* Card helpers (Tour V2 lists). Wide cells take the whole card row; dense packing lets
     the next short cell fill the hole a wide cell leaves behind, so the desktop column
     order can stay as it is. */
  .gp-table--mobile-cards tbody tr {
    grid-auto-flow: row dense;
  }

  .gp-table--mobile-cards tbody td.gp-cell-wide,
  .gp-table--mobile-cards tbody td.gp-cell-actions {
    grid-column: 1 / -1;
  }

  .gp-table--mobile-cards tbody td .gp-field {
    width: 100%;
  }

  .gp-table--mobile-cards tbody td.gp-cell-actions {
    min-height: 0;
    flex-direction: row;
    align-items: stretch;
    gap: 8px;
    border-bottom: 0;
    background: var(--gp-slate-50);
  }

  .gp-table--mobile-cards tbody td.gp-cell-actions::before {
    content: none;
  }

  .gp-table--mobile-cards tbody td.gp-cell-actions > .gp-btn {
    flex: 1 1 0;
  }

  .gp-table--mobile-cards tbody td.gp-cell-check input[type="checkbox"] {
    width: 24px;
    height: 24px;
  }

  .gp-table--mobile-cards .gp-cell-actions__label {
    display: inline;
  }

  .gp-table--mobile-cards-with-footer tfoot,
  .gp-table--mobile-cards-with-footer tfoot tr {
    display: block;
  }

  .gp-table--mobile-cards-with-footer tfoot tr {
    margin: 0 10px 10px;
    padding: 12px;
    border-radius: var(--gp-radius);
    background: var(--gp-cyan-50);
    text-align: right;
  }

  .gp-table--mobile-cards-with-footer tfoot td {
    display: inline;
    padding: 0 0 0 8px;
  }

  .gp-table--mobile-cards tbody .guide-table-total {
    border-color: var(--gp-cyan-200);
    background: var(--gp-cyan-50);
  }

  .gp-table--mobile-cards tbody .guide-table-total td:first-child {
    grid-column: 1 / -1;
    min-height: 44px;
  }

  .gp-table--mobile-cards tbody .guide-table-total td:first-child::before,
  .gp-table--mobile-cards tbody .gp-mobile-total-spacer {
    display: none;
  }
}

@media (max-width: 479.98px) {
  .gp-main,
  .gp-main--narrow {
    padding-inline: 8px;
  }

  .gp-hero__inner {
    padding-inline: 10px;
  }

  .gp-card--pad {
    padding: 12px;
  }

  .gp-section-head {
    margin: -12px -12px 12px;
    padding-inline: 12px;
  }

  .gp-card__title {
    padding-inline: 12px;
  }

  .gp-app .gp-field {
    height: 48px;
    font-size: 16px !important;
  }

  .gp-btn {
    min-height: 48px;
    padding-inline: 14px;
  }
}

/* Every guide page wrapper is a direct child of the layout's centred flex <body>. Stretch it
   to the viewport and let its content shrink: otherwise the desktop navigation's intrinsic
   width pushes both form edges off-screen (Sell/Sales), and a page with little content
   shrinks to it and floats in the middle with side gutters (My Tours / My Earnings on a
   phone: a 318px column inside a 390px screen). Generic on purpose, so a new guide page
   does not have to be added to a list. */
[class$="-theme-host"]:has(> .gp-app) {
  /* 0 0: never grow into the scrollbar gutter (the legacy hosts above carry -7.5px side
     margins for their 100vw trick; growing would shift them by that much on desktop). */
  flex: 0 0 100%;
  width: 100%;
  max-width: none;
  min-width: 0;
  align-self: stretch;
}
