/*
  Hand-written styles, copied as-is to dist/public (not built by Tailwind) and
  loaded after styles.css.

  Everything below sits in Tailwind's `utilities` cascade layer, so a rule here
  and a utility class compete on specificity and then source order (this file
  loads last), as they did under Tailwind 3 when neither was layered. Unlayered
  CSS would beat every utility class regardless of specificity. daisyUI sits in
  sub-layers of `utilities`, so these rules still beat it. The order statement
  repeats Tailwind's, in case this file ever loads first.
*/
@layer theme, base, components, utilities;

@layer utilities {

/* 
 * Google Maps CSS Guidelines
 * Always set the map height explicitly to define the size of the element
 * that contains the map. Here, the gmp-map element itself is the container.
 */

body {
  margin: 0;
  padding: 0;
  background-color: #0b1020;
  background-image: linear-gradient(135deg, #0b1020 0%, #0f1729 48%, #101826 100%);
}

html,
body {
  width: 100%;
  min-height: 100%;
  overscroll-behavior-x: none;
  overscroll-behavior-y: none;
}

/* On body only. The browser hands body's overflow to the viewport while html's
   stays visible. Set on html as well, body would become a scroll container of
   its own and the sticky navbar would scroll away with the page. (Under
   Tailwind 3 a daisyUI root rule quietly overrode the html half of this.) */
body {
  overflow-x: hidden;
}

html {
  background-color: #0b1020;
  background-image: linear-gradient(135deg, #0b1020 0%, #0f1729 48%, #101826 100%);
}

html[data-theme='light'] {
  background-color: #f8fafc;
  background-image: linear-gradient(135deg, #f8fafc 0%, #eef2ff 52%, #e2e8f0 100%);
}

html[data-theme='light'] body {
  background-color: #f8fafc;
  background-image: linear-gradient(135deg, #f8fafc 0%, #eef2ff 52%, #e2e8f0 100%);
}

.settings-hero-icon {
  color: #ffffff;
  background: linear-gradient(135deg, #22d3ee 0%, #6366f1 48%, #db2777 100%);
  box-shadow: 0 18px 38px rgba(79, 70, 229, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.32);
}

html[data-theme='light'] main .settings-hero-icon {
  color: #ffffff !important;
  background: linear-gradient(135deg, #0891b2 0%, #4f46e5 46%, #c026d3 100%) !important;
  box-shadow: 0 16px 34px rgba(79, 70, 229, 0.34), 0 0 0 1px rgba(255, 255, 255, 0.72) inset;
}

/* The authenticated email is useful, but at tablet widths it competes with
   the primary nav and theme switcher. Keep the affordance compact until the
   navbar has enough room. */
@media (min-width: 900px) {
  .navbar-account-email {
    display: block !important;
  }
}

/* Phones: the "IPS Gateway" wordmark shows only when the brand slot (the room
   left before the hamburger) is wide enough for it. The slot shrinks with the
   right-hand buttons, so this holds signed in or out without per-page widths.
   The container sits on the brand wrapper alone: containment makes an element
   the anchor for absolutely positioned children, and the phone menu must keep
   anchoring to the nav. 184px is the badge plus wordmark (180px) with margin. */
@media (max-width: 767.98px) {
  .navbar-brand {
    container: navbar-brand / inline-size;
  }
}

@container navbar-brand (max-width: 183.98px) {
  .navbar-wordmark {
    display: none;
  }
}

/* Browsers without container queries (iOS 15 and older): hide it below 410px,
   where the wider signed-out bar runs out of room. */
@supports not (container-type: inline-size) {
  @media (max-width: 409.98px) {
    .navbar-wordmark {
      display: none;
    }
  }
}

/* Tablets just past the phone menu (768px up): the three desktop menus, the
   theme switch and Sign In do not fit beside the wordmark, and "Stablecoin &
   DeFi" ran under the theme switch. The IPSG badge stays. Above 800px all fit
   (2026-11-10, measured signed out, the wider bar). */
@media (min-width: 768px) and (max-width: 839.98px) {
  .navbar-wordmark {
    display: none;
  }
}

@media (min-width: 1024px) and (max-width: 1136px) {
  .navbar-region-pill,
  .navbar-theme-label {
    display: none !important;
  }

  .navbar-account-email {
    max-width: 7rem !important;
  }
}

/* Scrollable data tables should scroll on small screens instead of squeezing
   emails, identifiers, and action controls into unreadable columns. */
@media (max-width: 768px) {
  main .overflow-x-auto > table {
    min-width: max(760px, 100%);
    table-layout: auto;
  }

  main .overflow-x-auto > table th,
  main .overflow-x-auto > table td {
    min-width: 9rem;
    white-space: nowrap;
  }

  main .overflow-x-auto > table th:first-child,
  main .overflow-x-auto > table td:first-child {
    min-width: 16rem;
  }

  main .overflow-x-auto > table td.break-all,
  main .overflow-x-auto > table code.break-all {
    word-break: normal;
    overflow-wrap: normal;
  }

  /* The dashboard's tables are short rows of figures: they fit the panel
     (dashboard.njk hides the less useful columns below `sm`) instead of
     taking the 760px scrolling layout above. */
  main .overflow-x-auto > table.dashboard-table {
    min-width: 100%;
  }

  main .overflow-x-auto > table.dashboard-table th,
  main .overflow-x-auto > table.dashboard-table td {
    min-width: 0;
    white-space: normal;
  }
}

/* Weather condition icon: dark mode benefits from inversion, light mode does not. */
html[data-theme='dark'] main .weather-condition-icon {
  filter: invert(1);
}

html[data-theme='light'] main .weather-condition-icon {
  filter: none;
}

gmp-map {
  display: block;
  width: 100%;
  height: 500px; /* Explicit height so the map is visible */
}

#map-container {
  display: flex;
  flex-direction: row;
  justify-content: center;
}

/* The background and colour are explicit: Tailwind 4's base styles make
   every form control transparent and give it the page's text colour, which
   over the map left light text on no background. */
.type-select {
  width: 200px;
  height: 32px;
  border: 1px solid #000;
  border-radius: 10px;
  flex-grow: 1;
  padding: 0 10px;
  margin-left: 10px;
  margin-top: 10px;
  font-size: 14px;
  background-color: #fff;
  color: #000;
}

/* -------------------------------------------------------------------------- */
/* Theme system (global): dark default + user-selectable light mode.         */
/* -------------------------------------------------------------------------- */
:root {
  color-scheme: dark;
}

html[data-theme='light'] {
  color-scheme: light;
}

html[data-theme='light'] body {
  background-image: linear-gradient(135deg, #f8fafc 0%, #eef2ff 52%, #e2e8f0 100%) !important;
  color: #0f172a !important;
}

/* Keep navbar/header dark; only page content under <main> switches. */
html[data-theme='light'] main .bg-slate-900,
html[data-theme='light'] main .bg-slate-900\/80,
html[data-theme='light'] main .bg-slate-900\/70,
html[data-theme='light'] main .bg-slate-900\/60,
html[data-theme='light'] main .bg-slate-900\/50 {
  background-color: rgba(248, 250, 252, 0.95) !important;
}

html[data-theme='light'] main .bg-slate-900\/40,
html[data-theme='light'] main .bg-slate-900\/30,
html[data-theme='light'] main .bg-slate-950,
html[data-theme='light'] main .bg-slate-950\/80,
html[data-theme='light'] main .bg-slate-950\/70,
html[data-theme='light'] main .bg-slate-950\/60,
html[data-theme='light'] main .bg-slate-950\/50,
html[data-theme='light'] main .bg-slate-950\/40,
html[data-theme='light'] main .bg-slate-950\/30,
html[data-theme='light'] main .bg-slate-950\/25 {
  background-color: rgba(226, 232, 240, 0.76) !important;
}

/* Form controls: whatever slate background a template picked, a text box in
   light mode is white-ish with dark text and a visible border. */
html[data-theme='light'] main input:not([type='checkbox']):not([type='radio']):not([type='range']):not([type='submit']):not([type='button']):not([type='file'])[class*='bg-slate-'],
html[data-theme='light'] main select[class*='bg-slate-'],
html[data-theme='light'] main textarea[class*='bg-slate-'] {
  background-color: rgba(255, 255, 255, 0.85) !important;
  color: #0f172a !important;
  border-color: rgba(148, 163, 184, 0.7) !important;
}

html[data-theme='light'] main input::placeholder,
html[data-theme='light'] main textarea::placeholder {
  color: #64748b !important;
}

html[data-theme='light'] main .bg-slate-800,
html[data-theme='light'] main .bg-slate-800\/70,
html[data-theme='light'] main .bg-slate-800\/60,
html[data-theme='light'] main .bg-slate-800\/40 {
  background-color: rgba(226, 232, 240, 0.9) !important;
}

html[data-theme='light'] main .bg-slate-700,
html[data-theme='light'] main .bg-slate-700\/80,
html[data-theme='light'] main .bg-slate-700\/60,
html[data-theme='light'] main .bg-slate-700\/70,
html[data-theme='light'] main .bg-slate-700\/60,
html[data-theme='light'] main .bg-slate-700\/50,
html[data-theme='light'] main .bg-slate-700\/40,
html[data-theme='light'] main .bg-slate-700\/30,
html[data-theme='light'] main .bg-slate-600,
html[data-theme='light'] main .bg-slate-600\/80 {
  background-color: rgba(203, 213, 225, 0.84) !important;
}

/* Gradient cards: convert dark slates to light card gradients. Tailwind 4
   types --tw-gradient-from/via/to as colours (positions live in the stop
   list, which starts with the gradient direction). */
html[data-theme='light'] main .from-slate-800 {
  --tw-gradient-from: #f8fafc !important;
  --tw-gradient-to: rgb(248 250 252 / 0) !important;
  --tw-gradient-stops: var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-to) var(--tw-gradient-to-position) !important;
}

html[data-theme='light'] main .via-slate-800 {
  --tw-gradient-to: rgb(241 245 249 / 0) !important;
  --tw-gradient-stops: var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), #f1f5f9 var(--tw-gradient-via-position), var(--tw-gradient-to) var(--tw-gradient-to-position) !important;
}

html[data-theme='light'] main .to-slate-900 {
  --tw-gradient-to: #e2e8f0 !important;
}

html[data-theme='light'] main .to-slate-700 {
  --tw-gradient-to: #e2e8f0 !important;
}

html[data-theme='light'] main .border-slate-800\/60,
html[data-theme='light'] main .border-slate-700,
html[data-theme='light'] main .border-slate-700\/80,
html[data-theme='light'] main .border-slate-700\/70,
html[data-theme='light'] main .border-slate-700\/60,
html[data-theme='light'] main .border-slate-600,
html[data-theme='light'] main .border-slate-600\/70,
html[data-theme='light'] main .border-slate-600\/60,
html[data-theme='light'] main .border-slate-600\/50,
html[data-theme='light'] main .border-slate-600\/40,
html[data-theme='light'] main .border-slate-700\/40,
html[data-theme='light'] main .border-slate-500 {
  border-color: rgba(148, 163, 184, 0.55) !important;
}

html[data-theme='light'] main [class*='border-[#D8DEE9]/40'] {
  border-color: rgba(148, 163, 184, 0.6) !important;
}

html[data-theme='light'] main .divide-slate-700\/60 > :not([hidden]) ~ :not([hidden]),
html[data-theme='light'] main .divide-slate-700\/70 > :not([hidden]) ~ :not([hidden]),
html[data-theme='light'] main .divide-slate-800 > :not([hidden]) ~ :not([hidden]) {
  border-color: rgba(148, 163, 184, 0.45) !important;
}

/* Text remap: dark mode slate text -> readable light mode slate text. */
html[data-theme='light'] main .text-slate-100,
html[data-theme='light'] main .text-slate-200 {
  color: #0f172a !important;
}

html[data-theme='light'] main .text-slate-300 {
  color: #334155 !important;
}

html[data-theme='light'] main .text-slate-400 {
  color: #475569 !important;
}

html[data-theme='light'] main .text-slate-500 {
  color: #64748b !important;
}

/* Dashboard/client-side rendered tiles use gray-* classes. */
html[data-theme='light'] main .text-gray-100,
html[data-theme='light'] main .text-gray-200 {
  color: #0f172a !important;
}

html[data-theme='light'] main .text-gray-300 {
  color: #334155 !important;
}

html[data-theme='light'] main .text-gray-400 {
  color: #475569 !important;
}

html[data-theme='light'] main .text-gray-500 {
  color: #64748b !important;
}

html[data-theme='light'] main .text-gray-600 {
  color: #475569 !important;
}

html[data-theme='light'] main .text-gray-700 {
  color: #334155 !important;
}

html[data-theme='light'] main .border-gray-700,
html[data-theme='light'] main .border-gray-700\/60 {
  border-color: rgba(148, 163, 184, 0.55) !important;
}

html[data-theme='light'] main .border-gray-700\/40 {
  border-color: rgba(148, 163, 184, 0.45) !important;
}

html[data-theme='light'] main .bg-gray-700\/30,
html[data-theme='light'] main .bg-gray-700\/40,
html[data-theme='light'] main .bg-gray-700\/50 {
  background-color: rgba(203, 213, 225, 0.65) !important;
}

html[data-theme='light'] main .bg-gray-900,
html[data-theme='light'] main .bg-gray-900\/60,
html[data-theme='light'] main .bg-gray-900\/50,
html[data-theme='light'] main .bg-gray-900\/40 {
  background-color: rgba(241, 245, 249, 0.9) !important;
}

html[data-theme='light'] main .to-gray-900\/60 {
  --tw-gradient-to: rgb(226 232 240 / 0.88) !important;
}

html[data-theme='light'] main .from-indigo-900\/40 {
  --tw-gradient-from: rgb(224 231 255 / 0.92) !important;
  --tw-gradient-to: rgb(224 231 255 / 0) !important;
  --tw-gradient-stops: var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-to) var(--tw-gradient-to-position) !important;
}

html[data-theme='light'] main .from-amber-900\/30 {
  --tw-gradient-from: rgb(254 243 199 / 0.9) !important;
  --tw-gradient-to: rgb(254 243 199 / 0) !important;
  --tw-gradient-stops: var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-to) var(--tw-gradient-to-position) !important;
}

html[data-theme='light'] main .border-indigo-700\/40 {
  border-color: rgba(99, 102, 241, 0.4) !important;
}

html[data-theme='light'] main .border-amber-700\/40 {
  border-color: rgba(217, 119, 6, 0.4) !important;
}

html[data-theme='light'] main .hover\:bg-slate-800:hover,
html[data-theme='light'] main .hover\:bg-slate-700:hover,
html[data-theme='light'] main .hover\:bg-slate-700\/80:hover,
html[data-theme='light'] main .hover\:bg-slate-700\/60:hover,
html[data-theme='light'] main .hover\:bg-slate-600:hover {
  background-color: rgba(191, 219, 254, 0.55) !important;
}

html[data-theme='light'] main .hover\:text-blue-300:hover {
  color: #1d4ed8 !important;
}

html[data-theme='light'] main .hover\:text-slate-200:hover,
html[data-theme='light'] main .hover\:text-white:hover {
  color: #0f172a !important;
}

/* Light-mode alert/instruction palettes (used heavily in auth + events pages). */
html[data-theme='light'] main .bg-amber-500\/5 {
  background-color: rgba(254, 243, 199, 0.78) !important;
}

html[data-theme='light'] main .bg-amber-500\/10 {
  background-color: rgba(254, 243, 199, 0.92) !important;
}

html[data-theme='light'] main .bg-amber-500\/15,
html[data-theme='light'] main .bg-amber-500\/20 {
  background-color: rgba(254, 243, 199, 0.98) !important;
}

html[data-theme='light'] main .bg-rose-500\/10 {
  background-color: rgba(255, 228, 230, 0.92) !important;
}

html[data-theme='light'] main .bg-rose-500\/15,
html[data-theme='light'] main .bg-rose-500\/20 {
  background-color: rgba(255, 228, 230, 0.98) !important;
}

html[data-theme='light'] main .bg-emerald-500\/10 {
  background-color: rgba(220, 252, 231, 0.92) !important;
}

html[data-theme='light'] main .bg-emerald-500\/5 {
  background-color: rgba(220, 252, 231, 0.78) !important;
}

html[data-theme='light'] main .bg-blue-500\/10,
html[data-theme='light'] main .bg-indigo-500\/10,
html[data-theme='light'] main .bg-cyan-500\/10 {
  background-color: rgba(219, 234, 254, 0.9) !important;
}

html[data-theme='light'] main .bg-indigo-500\/15,
html[data-theme='light'] main .bg-indigo-500\/20,
html[data-theme='light'] main .bg-cyan-500\/15,
html[data-theme='light'] main .bg-sky-500\/10,
html[data-theme='light'] main .bg-sky-500\/15,
html[data-theme='light'] main .bg-sky-500\/20 {
  background-color: rgba(224, 242, 254, 0.92) !important;
}

html[data-theme='light'] main .bg-fuchsia-500\/10,
html[data-theme='light'] main .bg-fuchsia-500\/15,
html[data-theme='light'] main .bg-fuchsia-500\/20,
html[data-theme='light'] main .bg-violet-500\/10,
html[data-theme='light'] main .bg-violet-500\/15,
html[data-theme='light'] main .bg-violet-500\/20 {
  background-color: rgba(245, 243, 255, 0.94) !important;
}

html[data-theme='light'] main .bg-rose-950\/20 {
  background-color: rgba(255, 241, 242, 0.94) !important;
}

html[data-theme='light'] main .border-amber-400\/30,
html[data-theme='light'] main .border-amber-400\/40,
html[data-theme='light'] main .border-amber-400\/50,
html[data-theme='light'] main .border-amber-400\/20 {
  border-color: rgba(217, 119, 6, 0.45) !important;
}

html[data-theme='light'] main .border-rose-400\/30,
html[data-theme='light'] main .border-rose-400\/40 {
  border-color: rgba(225, 29, 72, 0.4) !important;
}

html[data-theme='light'] main .border-emerald-400\/30,
html[data-theme='light'] main .border-emerald-400\/40 {
  border-color: rgba(5, 150, 105, 0.4) !important;
}

html[data-theme='light'] main .border-blue-400\/40,
html[data-theme='light'] main .border-indigo-400\/40,
html[data-theme='light'] main .border-cyan-400\/40,
html[data-theme='light'] main .border-indigo-400\/60 {
  border-color: rgba(37, 99, 235, 0.4) !important;
}

html[data-theme='light'] main .border-sky-400\/30,
html[data-theme='light'] main .border-sky-400\/40 {
  border-color: rgba(2, 132, 199, 0.4) !important;
}

html[data-theme='light'] main .border-fuchsia-400\/30,
html[data-theme='light'] main .border-fuchsia-400\/40,
html[data-theme='light'] main .border-violet-400\/30,
html[data-theme='light'] main .border-violet-400\/40 {
  border-color: rgba(147, 51, 234, 0.38) !important;
}

html[data-theme='light'] main .border-rose-500\/30,
html[data-theme='light'] main .border-rose-500\/40 {
  border-color: rgba(225, 29, 72, 0.45) !important;
}

html[data-theme='light'] main .border-emerald-500\/40,
html[data-theme='light'] main .border-emerald-500\/60 {
  border-color: rgba(5, 150, 105, 0.45) !important;
}

/* Make flash/banner text readable on light surfaces. */
html[data-theme='light'] main .text-amber-50,
html[data-theme='light'] main .text-amber-100,
html[data-theme='light'] main .text-amber-200,
html[data-theme='light'] main .text-amber-300,
html[data-theme='light'] main .text-amber-200\/80 {
  color: #78350f !important;
}

html[data-theme='light'] main .text-rose-100,
html[data-theme='light'] main .text-rose-200,
html[data-theme='light'] main .text-rose-300,
html[data-theme='light'] main .text-rose-200\/80,
html[data-theme='light'] main .text-rose-200\/60,
html[data-theme='light'] main .text-rose-200\/70 {
  color: #9f1239 !important;
}

html[data-theme='light'] main .text-emerald-100,
html[data-theme='light'] main .text-emerald-200,
html[data-theme='light'] main .text-emerald-300 {
  color: #065f46 !important;
}

html[data-theme='light'] main .text-emerald-300\/60 {
  color: #047857 !important;
}

html[data-theme='light'] main .text-blue-100,
html[data-theme='light'] main .text-blue-200,
html[data-theme='light'] main .text-blue-300,
html[data-theme='light'] main .text-blue-400 {
  color: #1e40af !important;
}

html[data-theme='light'] main .text-indigo-100,
html[data-theme='light'] main .text-indigo-200,
html[data-theme='light'] main .text-indigo-300 {
  color: #3730a3 !important;
}

html[data-theme='light'] main .text-cyan-100,
html[data-theme='light'] main .text-cyan-200,
html[data-theme='light'] main .text-cyan-300 {
  color: #155e75 !important;
}

html[data-theme='light'] main .text-orange-200 {
  color: #9a3412 !important;
}

html[data-theme='light'] main .text-sky-100,
html[data-theme='light'] main .text-sky-200,
html[data-theme='light'] main .text-sky-300 {
  color: #0c4a6e !important;
}

html[data-theme='light'] main .text-fuchsia-100,
html[data-theme='light'] main .text-fuchsia-200,
html[data-theme='light'] main .text-fuchsia-300,
html[data-theme='light'] main .text-violet-100,
html[data-theme='light'] main .text-violet-200,
html[data-theme='light'] main .text-violet-300 {
  color: #6b21a8 !important;
}

/* CTA/link accents that were too faint against light cards. */
html[data-theme='light'] main a.text-blue-400,
html[data-theme='light'] main .text-blue-400 {
  color: #1d4ed8 !important;
}

html[data-theme='light'] main a.text-indigo-300,
html[data-theme='light'] main .text-indigo-300 {
  color: #4338ca !important;
}

html[data-theme='light'] main a.text-indigo-400,
html[data-theme='light'] main .text-indigo-400 {
  color: #3730a3 !important;
}

html[data-theme='light'] main a.text-fuchsia-300,
html[data-theme='light'] main .text-fuchsia-300 {
  color: #7e22ce !important;
}

html[data-theme='light'] main .text-pink-300 {
  color: #be185d !important;
}

html[data-theme='light'] main .text-teal-300 {
  color: #0f766e !important;
}

html[data-theme='light'] main .text-purple-300 {
  color: #7e22ce !important;
}

html[data-theme='light'] main a.text-sky-300,
html[data-theme='light'] main .text-sky-300 {
  color: #0369a1 !important;
}

html[data-theme='light'] main a.text-amber-300,
html[data-theme='light'] main .text-amber-300 {
  color: #92400e !important;
}

/* Keep the dark CTA pills readable if they appear on light cards. */
html[data-theme='light'] main .hover\:bg-slate-700\/50:hover {
  background-color: rgba(148, 163, 184, 0.4) !important;
}

html[data-theme='light'] main .hover\:text-indigo-200:hover {
  color: #312e81 !important;
}

html[data-theme='light'] main .hover\:text-fuchsia-200:hover {
  color: #6b21a8 !important;
}

html[data-theme='light'] main .hover\:text-sky-200:hover {
  color: #075985 !important;
}

html[data-theme='light'] main .hover\:text-emerald-200:hover {
  color: #065f46 !important;
}

html[data-theme='light'] main .hover\:text-rose-200:hover {
  color: #9f1239 !important;
}

/* Dashboard table headers: force stronger contrast in light mode. */
html[data-theme='light'] main .dashboard-table thead,
html[data-theme='light'] main .dashboard-table thead tr,
html[data-theme='light'] main .dashboard-table thead th {
  color: #0f172a !important;
  font-weight: 700 !important;
}

html[data-theme='light'] main .dashboard-table thead {
  background-color: rgba(203, 213, 225, 0.92) !important;
}

/* Flights details table header: keep strong contrast in light mode. */
html[data-theme='light'] main .flights-details-head {
  background-color: rgb(203, 213, 225) !important;
}

html[data-theme='light'] main .flights-details-head,
html[data-theme='light'] main .flights-details-head tr,
html[data-theme='light'] main .flights-details-head th {
  color: #0f172a !important;
  font-weight: 700 !important;
}

/* Business reports: selected window chip and active API-key name contrast. */
html[data-theme='light'] main .reports-window-chip {
  color: #f8fafc !important;
  text-shadow: 0 1px 2px rgba(15, 23, 42, 0.35);
}

html[data-theme='light'] main .reports-key-name {
  color: #0f172a !important;
}

html[data-theme='light'] main .reports-key-row-active .reports-key-name {
  color: #065f46 !important;
  font-weight: 700 !important;
}

/* Landing page "Five rails..." cards: give each card a light-theme tint. */
html[data-theme='light'] main .rail-card {
  border-color: rgba(148, 163, 184, 0.5) !important;
}

html[data-theme='light'] main .rail-card-indigo {
  background-image: linear-gradient(145deg, rgba(224, 231, 255, 0.92), rgba(248, 250, 252, 0.96)) !important;
  border-color: rgba(99, 102, 241, 0.38) !important;
}

html[data-theme='light'] main .rail-card-pink {
  background-image: linear-gradient(145deg, rgba(252, 231, 243, 0.9), rgba(248, 250, 252, 0.96)) !important;
  border-color: rgba(236, 72, 153, 0.35) !important;
}

html[data-theme='light'] main .rail-card-teal {
  background-image: linear-gradient(145deg, rgba(204, 251, 241, 0.9), rgba(248, 250, 252, 0.96)) !important;
  border-color: rgba(13, 148, 136, 0.34) !important;
}

html[data-theme='light'] main .rail-card-amber {
  background-image: linear-gradient(145deg, rgba(254, 243, 199, 0.92), rgba(248, 250, 252, 0.96)) !important;
  border-color: rgba(217, 119, 6, 0.35) !important;
}

html[data-theme='light'] main .rail-card-purple {
  background-image: linear-gradient(145deg, rgba(243, 232, 255, 0.9), rgba(248, 250, 252, 0.96)) !important;
  border-color: rgba(147, 51, 234, 0.34) !important;
}

html[data-theme='light'] main .rail-card-blue {
  background-image: linear-gradient(145deg, rgba(219, 234, 254, 0.9), rgba(248, 250, 252, 0.96)) !important;
  border-color: rgba(37, 99, 235, 0.34) !important;
}

/* Landing rails cards: keep title/copy strong in both themes. */
main .rail-card .rail-card-title {
  letter-spacing: 0.01em;
}

main .rail-card .rail-card-copy {
  color: #cbd5e1;
}

main .rail-card .rail-card-title-indigo {
  color: #a5b4fc;
}

main .rail-card .rail-card-title-pink {
  color: #f9a8d4;
}

main .rail-card .rail-card-title-teal {
  color: #5eead4;
}

main .rail-card .rail-card-title-amber {
  color: #fcd34d;
}

main .rail-card .rail-card-title-purple {
  color: #d8b4fe;
}

main .rail-card .rail-card-title-blue {
  color: #93c5fd;
}

html[data-theme='light'] main .rail-card .rail-card-copy {
  color: #334155;
}

html[data-theme='light'] main .rail-card .rail-card-title-indigo {
  color: #3730a3;
}

html[data-theme='light'] main .rail-card .rail-card-title-pink {
  color: #be185d;
}

html[data-theme='light'] main .rail-card .rail-card-title-teal {
  color: #0f766e;
}

html[data-theme='light'] main .rail-card .rail-card-title-amber {
  color: #92400e;
}

html[data-theme='light'] main .rail-card .rail-card-title-purple {
  color: #7e22ce;
}

html[data-theme='light'] main .rail-card .rail-card-title-blue {
  color: #1d4ed8;
}

/* Keep CTA/button text-white untouched; only content typography is remapped. */
html[data-theme='light'] main h1.text-white,
html[data-theme='light'] main h2.text-white,
html[data-theme='light'] main h3.text-white,
html[data-theme='light'] main h4.text-white,
html[data-theme='light'] main p.text-white,
html[data-theme='light'] main span.text-white,
html[data-theme='light'] main label.text-white,
html[data-theme='light'] main th.text-white,
html[data-theme='light'] main td.text-white,
html[data-theme='light'] main summary.text-white,
html[data-theme='light'] main div.text-white,
html[data-theme='light'] main dt.text-white,
html[data-theme='light'] main dd.text-white,
html[data-theme='light'] main li.text-white,
html[data-theme='light'] main strong.text-white {
  color: #0f172a !important;
}

/* Inputs/selects using text-white in dark mode should switch in light mode. */
html[data-theme='light'] main input.text-white,
html[data-theme='light'] main select.text-white,
html[data-theme='light'] main textarea.text-white {
  color: #0f172a !important;
}

/* Slate pill buttons in settings/business should not keep white text on light slate backgrounds. */
html[data-theme='light'] main a.bg-slate-700.text-white,
html[data-theme='light'] main a.bg-slate-700\/80.text-white,
html[data-theme='light'] main a.bg-slate-800.text-white,
html[data-theme='light'] main a.bg-slate-800\/70.text-white,
html[data-theme='light'] main button.bg-slate-700.text-white,
html[data-theme='light'] main button.bg-slate-700\/80.text-white,
html[data-theme='light'] main button.bg-slate-800.text-white,
html[data-theme='light'] main button.bg-slate-800\/70.text-white {
  color: #0f172a !important;
}

/* Any slate-backed settings action pill should read as a light-mode button,
   even when the template uses slate text utilities instead of text-white. */
html[data-theme='light'] main a[class*='bg-slate-'],
html[data-theme='light'] main button[class*='bg-slate-'] {
  color: #0f172a !important;
}

html[data-theme='light'] main a[class*='bg-slate-']:hover,
html[data-theme='light'] main button[class*='bg-slate-']:hover {
  color: #0f172a !important;
}

html[data-theme='light'] main .settings-admin-payments .payops-pill {
  color: #0f172a !important;
  background-color: rgba(248, 250, 252, 0.92) !important;
  border-color: rgba(100, 116, 139, 0.45) !important;
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.05);
}

html[data-theme='light'] main .settings-admin-payments .payops-filter-tab {
  color: #ffffff !important;
}

html[data-theme='light'] main .settings-admin-payments a.payops-filter-tab {
  background-color: rgba(30, 41, 59, 0.9) !important;
  border-color: rgba(71, 85, 105, 0.75) !important;
}

html[data-theme='light'] main .settings-admin-payments .payops-filter-tab:hover,
html[data-theme='light'] main .settings-admin-payments .payops-filter-tab:focus,
html[data-theme='light'] main .settings-admin-payments .payops-filter-tab:focus-visible {
  color: #ffffff !important;
}

html[data-theme='light'] main .stripe-setup-guide {
  background-image: linear-gradient(135deg, #ffffff 0%, #eef2ff 45%, #e0f2fe 100%) !important;
  border-color: rgba(99, 102, 241, 0.36) !important;
  box-shadow: 0 18px 42px rgba(79, 70, 229, 0.16) !important;
}

html[data-theme='light'] main .stripe-setup-step {
  background-color: rgba(255, 255, 255, 0.78) !important;
  border-color: rgba(99, 102, 241, 0.28) !important;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08) !important;
}

html[data-theme='light'] main .stripe-setup-index {
  color: #0f172a !important;
}

html[data-theme='light'] main .stripe-setup-step .text-cyan-100 {
  color: #0e7490 !important;
}

html[data-theme='light'] main .stripe-setup-step .text-indigo-100 {
  color: #4338ca !important;
}

html[data-theme='light'] main .stripe-setup-step .text-fuchsia-100 {
  color: #a21caf !important;
}

html[data-theme='light'] main .stripe-setup-step .text-slate-100 {
  color: #0f172a !important;
}

html[data-theme='light'] main .platform-token-result-card {
  background-image: linear-gradient(135deg, #ecfdf5 0%, #f8fafc 52%, #d1fae5 100%) !important;
  border-color: rgba(5, 150, 105, 0.42) !important;
}

html[data-theme='light'] main .platform-token-result-card header {
  border-color: rgba(5, 150, 105, 0.28) !important;
}

html[data-theme='light'] main .platform-token-result-card h2,
html[data-theme='light'] main .platform-token-result-card label {
  color: #064e3b !important;
}

html[data-theme='light'] main .platform-token-result-card p,
html[data-theme='light'] main .platform-token-result-card dt {
  color: #047857 !important;
}

html[data-theme='light'] main .platform-token-result-card dd,
html[data-theme='light'] main .platform-token-result-card span {
  color: #022c22 !important;
}

html[data-theme='light'] main .platform-token-result-card textarea {
  background-color: rgba(2, 44, 34, 0.94) !important;
  color: #d1fae5 !important;
  border-color: rgba(5, 150, 105, 0.45) !important;
}

/* Card shadows: softer on light surfaces. */
html[data-theme='light'] main .shadow-black\/30,
html[data-theme='light'] main .shadow-black\/20 {
  --tw-shadow-color: rgba(15, 23, 42, 0.12) !important;
}

/* Navbar on light pages: the tone the old 80% translucent bar averaged over the
   light background, now solid so content cannot show through it. */
html[data-theme='light'] .navbar-header {
  background-color: #3b4253;
}

/* Theme toggle stays dark to match dark navbar in both modes. */
html[data-theme='light'] .theme-toggle-btn {
  background-color: rgba(30, 41, 59, 0.8) !important;
  border-color: rgba(71, 85, 105, 0.65) !important;
  color: #e2e8f0 !important;
}

/* Platform banner sits above <main>; add dedicated light-theme contrast fixes. */
html[data-theme='light'] .platform-alert-banner {
  backdrop-filter: saturate(120%);
}

html[data-theme='light'] .platform-alert-banner.text-sky-100 {
  color: #0c4a6e !important;
  background-color: rgba(224, 242, 254, 0.94) !important;
  border-color: rgba(2, 132, 199, 0.42) !important;
}

html[data-theme='light'] .platform-alert-banner.text-amber-100 {
  color: #78350f !important;
  background-color: rgba(254, 243, 199, 0.94) !important;
  border-color: rgba(217, 119, 6, 0.42) !important;
}

html[data-theme='light'] .platform-alert-banner.text-rose-100 {
  color: #9f1239 !important;
  background-color: rgba(255, 228, 230, 0.95) !important;
  border-color: rgba(225, 29, 72, 0.42) !important;
}

html[data-theme='light'] .platform-alert-banner.text-sky-100 .platform-alert-banner-icon {
  color: #0c4a6e !important;
  background-color: rgba(14, 165, 233, 0.22) !important;
}

html[data-theme='light'] .platform-alert-banner.text-amber-100 .platform-alert-banner-icon {
  color: #78350f !important;
  background-color: rgba(245, 158, 11, 0.24) !important;
}

html[data-theme='light'] .platform-alert-banner.text-rose-100 .platform-alert-banner-icon {
  color: #9f1239 !important;
  background-color: rgba(244, 63, 94, 0.22) !important;
}

} /* @layer utilities */
