/* PortaVia "Jetstream" brand tokens — royal blue + contrail azure. Gold is explicitly rejected, never reintroduce it. */

:root {
  /* Brand color definitions */
  --pv-royal: #1E40AF;
  --pv-royal-hover: #1B3A9E;
  --pv-azure: #38BDF8;
  --pv-slate: #64748B;
  --pv-mist: #E2E8F0;
  --pv-ground: #FFFFFF;

  /* Override Radzen's primary theme colors */
  --rz-primary: var(--pv-royal);
  --rz-primary-dark: var(--pv-royal-hover);
  --rz-primary-light: #2E5DF8;
  --rz-primary-lighter: #EFF6FF;
  --rz-secondary: var(--pv-slate);
  --rz-info: var(--pv-azure);
  --rz-on-primary: #FFFFFF;

  /* Light mode base colors */
  --rz-base-100: #F8FAFC;
  --rz-base-200: #F1F5F9;
  --rz-base-300: #E2E8F0;
  --rz-base-400: #CBD5E1;
  --rz-base-500: #94A3B8;
  --rz-base-600: #64748B;
  --rz-base-700: #475569;
  --rz-base-800: #334155;
  --rz-base-900: #0F172A;
  --rz-base-background-color: #FFFFFF;

  /* Light mode text colors */
  --rz-text-color: #334155;
  --rz-text-title-color: #0F172A;
  --rz-text-secondary-color: #64748B;
  --rz-text-tertiary-color: #94A3B8;

  /* Light mode borders */
  --rz-border-color: #E2E8F0;
  --rz-border-normal: 1px solid #E2E8F0;

  /* Card styling */
  --rz-card-background-color: #FFFFFF;
  --rz-card-border-radius: 8px;

  /* Status colors */
  --rz-success: #10B981;
  --rz-success-lighter: #D1F9ED;
  --rz-success-darker: #059669;
  --rz-danger: #EF4444;
  --rz-danger-lighter: #FEE2E2;
  --rz-danger-darker: #DC2626;

  /* Authenticated app shell — header/footer (theme-neutral sizing; colors set per theme below) */
  --rz-footer-padding: 0.8rem 1.5rem;

  /* Light mode: header + sidebar share the white surface (like the public nav); royal is
     reserved for the ACTIVE menu item's tint + indicator, not a full-height slab. */
  --rz-header-background-color: var(--pv-ground);
  --rz-header-color: var(--rz-text-color);
  --rz-header-border: 1px solid var(--rz-border-color);

  --rz-sidebar-background-color: #FFFFFF;
  --rz-sidebar-color: var(--rz-text-color);

  --rz-panel-menu-item-color: var(--rz-text-color);
  --rz-panel-menu-icon-color: var(--pv-slate);
  --rz-panel-menu-item-hover-background-color: rgba(30, 64, 175, 0.07);
  --rz-panel-menu-item-hover-color: var(--pv-royal);
  --rz-panel-menu-item-active-background-color: var(--rz-primary-lighter);
  --rz-panel-menu-item-active-color: var(--pv-royal);
  --rz-panel-menu-item-active-indicator: var(--pv-royal);
  --rz-panel-menu-item-2nd-level-color: var(--rz-text-secondary-color);
  --rz-panel-menu-item-2nd-level-hover-background-color: rgba(30, 64, 175, 0.07);
  --rz-panel-menu-item-2nd-level-hover-color: var(--pv-royal);
  --rz-panel-menu-item-2nd-level-active-background-color: var(--rz-primary-lighter);
  --rz-panel-menu-item-2nd-level-active-color: var(--pv-royal);

  --rz-link-color: var(--pv-royal);
  --rz-link-hover-color: var(--pv-royal-hover);

  --rz-tabs-tab-selected-color: var(--pv-royal);
  --rz-tabs-tab-selected-top-border-color: var(--pv-azure);
  --rz-tabs-tab-hover-color: var(--pv-royal);

  --rz-grid-header-background-color: var(--pv-royal);
  --rz-grid-header-color: #FFFFFF;
  --rz-grid-header-sorted-background-color: var(--pv-royal-hover);
  --rz-grid-stripe-background-color: #F6F8FC;
  --rz-grid-hover-background-color: rgba(30, 64, 175, 0.05);
  --rz-grid-selected-background-color: var(--rz-primary-lighter);
  --rz-grid-selected-color: var(--pv-royal);

  /* Inputs — pin rest = hover = focus background (white) so there's no state flicker; only the
     border/ring changes on focus (royal). */
  --rz-input-background-color: #FFFFFF;
  --rz-input-hover-background-color: #FFFFFF;
  --rz-input-focus-background-color: #FFFFFF;
  --rz-input-border: 1px solid var(--rz-border-color);
  --rz-input-hover-border: 1px solid var(--rz-border-color);
  --rz-input-focus-border: 1px solid var(--pv-royal);
  --rz-input-shadow: none;
  --rz-input-hover-shadow: none;
  --rz-input-focus-shadow: 0 0 0 3px rgba(30, 64, 175, 0.12);

  --rz-progressbar-value-background-color: var(--pv-royal);
  --rz-progressbar-color: var(--pv-royal);

  --rz-footer-background-color: var(--rz-base-100);
  --rz-footer-color: var(--rz-text-secondary-color);

  --rz-profile-menu-item-hover-background-color: rgba(30, 64, 175, 0.07);
}

html[data-theme="dark"] {
  /* Dark mode brand overrides */
  --pv-royal: #2B55D4;
  --pv-ground: #0B1526;
  --pv-card: #121F38;
  --pv-line: #213151;
  --pv-text: #E6EDF7;
  --pv-muted: #93A1B5;

  /* Dark mode Radzen primary colors */
  --rz-primary: var(--pv-royal);
  --rz-primary-dark: #1E40AF;
  --rz-primary-light: #3D63E5;
  --rz-primary-lighter: #172554;
  --rz-on-primary: #F0F4F8;

  /* Dark mode base colors */
  --rz-base-100: #1A2A48;
  --rz-base-200: #243558;
  --rz-base-300: #2D4469;
  --rz-base-400: #3A5682;
  --rz-base-500: #6B7F9E;
  --rz-base-600: #7E8FA3;
  --rz-base-700: #8E9FAE;
  --rz-base-800: #A8B8D0;
  --rz-base-900: #E6EDF7;
  --rz-base-background-color: #0B1526;

  /* Dark mode text colors */
  --rz-text-color: #E6EDF7;
  --rz-text-title-color: #F0F4F8;
  --rz-text-secondary-color: #93A1B5;
  --rz-text-tertiary-color: #6B7F9E;

  /* Dark mode borders */
  --rz-border-color: #213151;
  --rz-border-normal: 1px solid #213151;

  /* Dark mode card styling */
  --rz-card-background-color: #121F38;

  /* Dark mode status colors */
  --rz-success: #10B981;
  --rz-success-lighter: #1A3D3F;
  --rz-success-darker: #00D084;
  --rz-danger: #F87171;
  --rz-danger-lighter: #5F2120;
  --rz-danger-darker: #FF6B6B;

  /* Dark mode: ink family throughout — ground (#0B1526) for the page backdrop, surfaces
     (#121F38 / --pv-card) for header/sidebar/footer chrome, lines (#213151 / --pv-line) for
     hairlines/borders. */
  --rz-header-background-color: var(--pv-card);
  --rz-header-color: var(--pv-text);
  --rz-header-border: 1px solid var(--pv-line);

  --rz-sidebar-background-color: var(--pv-card);
  --rz-sidebar-color: var(--pv-text);

  --rz-panel-menu-item-color: var(--pv-text);
  --rz-panel-menu-icon-color: var(--pv-muted);
  --rz-panel-menu-item-hover-background-color: rgba(56, 189, 248, 0.1);
  --rz-panel-menu-item-hover-color: #FFFFFF;
  --rz-panel-menu-item-active-background-color: var(--pv-royal);
  --rz-panel-menu-item-active-color: #FFFFFF;
  --rz-panel-menu-item-active-indicator: var(--pv-azure);
  --rz-panel-menu-item-2nd-level-color: var(--pv-muted);
  --rz-panel-menu-item-2nd-level-hover-background-color: rgba(56, 189, 248, 0.1);
  --rz-panel-menu-item-2nd-level-hover-color: #FFFFFF;
  --rz-panel-menu-item-2nd-level-active-background-color: rgba(56, 189, 248, 0.2);
  --rz-panel-menu-item-2nd-level-active-color: #FFFFFF;

  --rz-link-color: var(--pv-azure);
  --rz-link-hover-color: #7CD4FB;

  --rz-tabs-tab-selected-color: var(--pv-azure);
  --rz-tabs-tab-selected-top-border-color: var(--pv-azure);
  --rz-tabs-tab-hover-color: var(--pv-azure);

  /* DataGrid — the Radzen dark theme maps striping to --rz-base-700 (light grey) and inputs to
     --rz-base-900 (near-white); remap the whole surface to the ink family so rows don't flash
     light bands. Header slightly darker than the body surface; even-row stripe a whisper lighter. */
  --rz-grid-background-color: var(--pv-card);
  --rz-grid-header-background-color: var(--pv-royal);
  --rz-grid-header-color: #FFFFFF;
  --rz-grid-header-sorted-background-color: var(--pv-royal-hover);
  --rz-grid-cell-color: var(--pv-text);
  --rz-grid-cell-border: 1px solid var(--pv-line);
  --rz-grid-border: 1px solid var(--pv-line);
  --rz-grid-stripe-background-color: rgba(255, 255, 255, 0.035);
  --rz-grid-stripe-odd-background-color: transparent;
  --rz-grid-hover-background-color: rgba(56, 189, 248, 0.08);
  --rz-grid-hover-color: var(--pv-text);
  --rz-grid-selected-background-color: rgba(43, 85, 212, 0.28);
  --rz-grid-selected-color: #FFFFFF;

  /* Pager */
  --rz-pager-background-color: var(--pv-card);
  --rz-pager-summary-color: var(--pv-muted);
  --rz-pager-numeric-button-selected-background-color: var(--pv-royal);
  --rz-pager-numeric-button-selected-color: #FFFFFF;
  --rz-pager-numeric-button-hover-background-color: rgba(56, 189, 248, 0.12);

  /* Inputs — soft grey filled, matching the public/login controls (was near-white base-900).
     Pin rest = hover = focus background so there's no flicker: the dark theme flips hover to the
     ink page bg, which flashed dark between rest and focus. Only the border/ring changes on focus. */
  --rz-input-background-color: #CBD5E3;
  --rz-input-hover-background-color: #CBD5E3;
  --rz-input-focus-background-color: #CBD5E3;
  --rz-input-value-color: #15203A;
  --rz-input-placeholder-color: #5B6B84;
  --rz-input-border: 1px solid #93A3B8;
  --rz-input-hover-border: 1px solid #93A3B8;
  --rz-input-focus-border: 1px solid var(--pv-azure);
  --rz-input-shadow: none;
  --rz-input-hover-shadow: none;
  --rz-input-focus-shadow: 0 0 0 3px rgba(56, 189, 248, 0.25);

  --rz-progressbar-value-background-color: var(--pv-azure);
  --rz-progressbar-color: var(--pv-azure);

  --rz-footer-background-color: var(--pv-card);
  --rz-footer-color: var(--pv-muted);

  --rz-profile-menu-item-hover-background-color: rgba(56, 189, 248, 0.10);
}

/* ---------------------------------------------------------------------------
   Authenticated sidebar — explicit paint.
   The Radzen sidebar/panel-menu variables above don't reliably cover every
   element (the dark theme leaves the item-wrapper rows translucent, so the
   wallpaper bleeds through). Pin the surface and the active/hover states here.
   Design: white (light) / ink-card #121F38 (dark) surface — matching the header,
   NOT a full royal slab — with royal reserved for the active item's tint and a
   left indicator bar. Keeps the app feeling like one continuous site.
   --------------------------------------------------------------------------- */
.rz-sidebar {
  background-color: #FFFFFF !important;
  border-right: 1px solid var(--rz-border-color);
}
html[data-theme="dark"] .rz-sidebar {
  background-color: var(--pv-card) !important;
  border-right-color: var(--pv-line);
}

/* Let the sidebar surface show; items paint only their own hover/active fills */
.rz-sidebar .rz-panel-menu,
.rz-sidebar .rz-navigation-item-wrapper {
  background-color: transparent !important;
}

/* Resting text + icon */
.rz-sidebar .rz-navigation-item-link,
.rz-sidebar .rz-navigation-item-text {
  color: var(--rz-text-color) !important;
}
.rz-sidebar .rz-navigation-item-icon {
  color: var(--pv-slate) !important;
}
html[data-theme="dark"] .rz-sidebar .rz-navigation-item-link,
html[data-theme="dark"] .rz-sidebar .rz-navigation-item-text {
  color: var(--pv-text) !important;
}
html[data-theme="dark"] .rz-sidebar .rz-navigation-item-icon {
  color: var(--pv-muted) !important;
}

/* Hover */
.rz-sidebar .rz-navigation-item-wrapper:hover {
  background-color: rgba(30, 64, 175, 0.07) !important;
}
.rz-sidebar .rz-navigation-item-wrapper:hover .rz-navigation-item-text,
.rz-sidebar .rz-navigation-item-wrapper:hover .rz-navigation-item-icon {
  color: var(--pv-royal) !important;
}
html[data-theme="dark"] .rz-sidebar .rz-navigation-item-wrapper:hover {
  background-color: rgba(56, 189, 248, 0.10) !important;
}
html[data-theme="dark"] .rz-sidebar .rz-navigation-item-wrapper:hover .rz-navigation-item-text,
html[data-theme="dark"] .rz-sidebar .rz-navigation-item-wrapper:hover .rz-navigation-item-icon {
  color: #FFFFFF !important;
}

/* Active — royal tint + left indicator */
.rz-sidebar .rz-navigation-item-wrapper-active {
  background-color: var(--rz-primary-lighter, #EFF6FF) !important;
  box-shadow: inset 3px 0 0 var(--pv-royal);
}
.rz-sidebar .rz-navigation-item-wrapper-active .rz-navigation-item-text,
.rz-sidebar .rz-navigation-item-wrapper-active .rz-navigation-item-icon {
  color: var(--pv-royal) !important;
  font-weight: 600;
}
html[data-theme="dark"] .rz-sidebar .rz-navigation-item-wrapper-active {
  background-color: rgba(43, 85, 212, 0.28) !important;
  box-shadow: inset 3px 0 0 var(--pv-azure);
}
html[data-theme="dark"] .rz-sidebar .rz-navigation-item-wrapper-active .rz-navigation-item-text,
html[data-theme="dark"] .rz-sidebar .rz-navigation-item-wrapper-active .rz-navigation-item-icon {
  color: #FFFFFF !important;
}

/* Outlined RadzenCards (dashboard stat cards, dashboard panels, list wrappers) default to a
   fully transparent background (.rz-variant-outlined { background: rgba(0,0,0,0) }), so on the
   flight-path wallpaper the map shows straight through them and they read as barely-there. Give
   the outlined variant the brand surface + a faint lift so cards sit ON the wallpaper, matching
   the solid-surface public cards. The wallpaper then only shows in the gaps between cards. */
.rz-card.rz-variant-outlined {
  background-color: #FFFFFF !important;
  box-shadow: 0 1px 4px rgba(15, 33, 78, 0.06);
  transition: box-shadow 0.25s ease, transform 0.25s ease, border-color 0.25s ease;
}
/* Same hover as the public feature cards: royal border, a lift, and a royal-tinted shadow. */
.rz-card.rz-variant-outlined:hover {
  border-color: var(--pv-royal) !important;
  box-shadow: 0 12px 24px rgba(30, 64, 175, 0.10);
  transform: translateY(-4px);
}
html[data-theme="dark"] .rz-card.rz-variant-outlined {
  background-color: var(--pv-card) !important;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
}
html[data-theme="dark"] .rz-card.rz-variant-outlined:hover {
  box-shadow: 0 12px 24px rgba(43, 85, 212, 0.15);
}

/* Opt-out: container cards (e.g. the tab-panel wrappers) should sit still — no royal border,
   no lift. Higher specificity + !important beats the generic hover above. */
.rz-card.rz-variant-outlined.pv-no-hover:hover {
  border-color: var(--rz-base-300, var(--rz-border)) !important;
  box-shadow: 0 1px 4px rgba(15, 33, 78, 0.06);
  transform: none;
}
html[data-theme="dark"] .rz-card.rz-variant-outlined.pv-no-hover:hover {
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
}

/* Row hover for ALL data grids. Light mode mirrors the page-size dropdown's selected item:
   a sky-blue fill with bold slate text so the whole row reads as the active target. */
.rz-grid-table tbody > tr:hover > td,
.pv-grid-hoverable .rz-grid-table tbody > tr:hover > td {
  background-color: #5EAAD9 !important;
}
/* Whiten the cell text and plain links only — Radzen wraps text in .rz-cell-data spans
   that carry their own colour. Action buttons/badges are deliberately left out so they
   keep their semantic colours (amber star, red delete, etc.) on the blue fill. */
.rz-grid-table tbody > tr:hover > td,
.rz-grid-table tbody > tr:hover > td .rz-cell-data,
.rz-grid-table tbody > tr:hover > td a,
.pv-grid-hoverable .rz-grid-table tbody > tr:hover > td,
.pv-grid-hoverable .rz-grid-table tbody > tr:hover > td .rz-cell-data,
.pv-grid-hoverable .rz-grid-table tbody > tr:hover > td a {
  color: #ffffff !important;
}
/* Action buttons keep a transparent background at rest on a hovered row, and gain a
   translucent-white highlight when the mouse is directly over them (clear feedback). */
.rz-grid-table tbody > tr:hover > td .rz-button,
.pv-grid-hoverable .rz-grid-table tbody > tr:hover > td .rz-button {
  background-color: transparent !important;
}
.rz-grid-table tbody > tr:hover > td .rz-button:hover,
.pv-grid-hoverable .rz-grid-table tbody > tr:hover > td .rz-button:hover {
  background-color: rgba(255, 255, 255, 0.35) !important;
}
/* Dark mode keeps the subtle cyan tint rather than the bright fill. */
html[data-theme="dark"] .rz-grid-table tbody > tr:hover > td,
html[data-theme="dark"] .pv-grid-hoverable .rz-grid-table tbody > tr:hover > td {
  background-color: rgba(56, 189, 248, 0.10) !important;
  color: inherit !important;
  font-weight: inherit;
}
html[data-theme="dark"] .rz-grid-table tbody > tr:hover > td a,
html[data-theme="dark"] .pv-grid-hoverable .rz-grid-table tbody > tr:hover > td a {
  color: inherit !important;
}

/* Document cards carry an expiry state (danger / warning / success / neutral). At rest they show
   only a pronounced thick (4px) coloured left rail on a plain card — no other borders, no fill. On hover
   they promote to the full treatment: thin 1px border in the state colour on the other three sides,
   a glass fill, and a state-tinted lift shadow. The generic outlined-card hover above turns the
   border royal and the surface white with !important, so these override it at higher specificity
   (3 classes) with their own !important. */
/* Structural: EVERY document card (with or without an expiry state) trims its vertical padding to
   pack more documents into view; horizontal padding is left intact. */
.rz-card.rz-variant-outlined.pv-doc-card {
  padding-top: 0.6rem !important;
  padding-bottom: 0.6rem !important;
}

/* Cards WITH an expiry state: thick coloured left rail on a plain card at rest — no other borders,
   no fill. [class*="pv-doc-state-"] matches any state so a no-expiry card (pv-doc-card only) is
   left as a plain card. */
.rz-card.rz-variant-outlined.pv-doc-card[class*="pv-doc-state-"] {
  border: none !important;
  border-left: 4px solid var(--pv-doc-color) !important;
  transition: box-shadow 0.25s ease, transform 0.25s ease, background-color 0.25s ease;
}
.rz-card.rz-variant-outlined.pv-doc-card[class*="pv-doc-state-"]:hover {
  background-color: var(--pv-doc-fill-hover) !important;
  border: 1px solid var(--pv-doc-color) !important;
  border-left: 4px solid var(--pv-doc-color) !important;
  box-shadow: 0 12px 24px var(--pv-doc-shadow);
  transform: translateY(-4px);
}

/* danger and success keep your theme's --rz-* colours. Only warning is pinned to an explicit amber
   because the theme's --rz-warning var rendered light blue here. neutral is a new slate for
   documents with no expiry to track (ID, birth certificates). Fills are hue-matched rgba. */
.pv-doc-state-danger  { --pv-doc-color: var(--rz-danger);  --pv-doc-fill: rgba(211, 47, 47, 0.08); --pv-doc-fill-hover: rgba(211, 47, 47, 0.15); --pv-doc-shadow: rgba(211, 47, 47, 0.20); }
.pv-doc-state-warning { --pv-doc-color: #ED6C02;           --pv-doc-fill: rgba(237, 108, 2, 0.08); --pv-doc-fill-hover: rgba(237, 108, 2, 0.15); --pv-doc-shadow: rgba(237, 108, 2, 0.20); }
.pv-doc-state-success { --pv-doc-color: var(--rz-success); --pv-doc-fill: rgba(46, 125, 50, 0.08); --pv-doc-fill-hover: rgba(46, 125, 50, 0.15); --pv-doc-shadow: rgba(46, 125, 50, 0.20); }
.pv-doc-state-neutral { --pv-doc-color: #64748B;           --pv-doc-fill: rgba(100, 116, 139, 0.08); --pv-doc-fill-hover: rgba(100, 116, 139, 0.15); --pv-doc-shadow: rgba(100, 116, 139, 0.20); }

/* Dark mode: only the pinned states need a lighter hue over the dark surface; danger/success ride
   the theme var, which already adjusts. Fills are lifted a touch for visibility. */
html[data-theme="dark"] .pv-doc-state-danger  { --pv-doc-fill: rgba(248, 113, 113, 0.12); --pv-doc-fill-hover: rgba(248, 113, 113, 0.20); }
html[data-theme="dark"] .pv-doc-state-warning { --pv-doc-color: #FB923C; --pv-doc-fill: rgba(251, 146, 60, 0.12);  --pv-doc-fill-hover: rgba(251, 146, 60, 0.20); }
html[data-theme="dark"] .pv-doc-state-success { --pv-doc-fill: rgba(74, 222, 128, 0.12);  --pv-doc-fill-hover: rgba(74, 222, 128, 0.20); }
html[data-theme="dark"] .pv-doc-state-neutral { --pv-doc-color: #94A3B8; --pv-doc-fill: rgba(148, 163, 184, 0.12);  --pv-doc-fill-hover: rgba(148, 163, 184, 0.20); }

/* Dashboard stat cards — same centred layout as the public home feature cards, but the big
   value stands in for the icon. Value is primary (royal); the "expiring docs" card turns error
   red when there are any expiring, green when clear. */
.pv-stat-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  height: 100%;
  padding: 1.75rem 1.25rem;
}
.pv-stat-value {
  font-size: 2.75rem;
  font-weight: 700;
  line-height: 1;
  color: var(--pv-royal);
  margin-bottom: 0.6rem;
  font-family: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-variant-numeric: tabular-nums;
}
.pv-stat-value-danger { color: var(--rz-danger); }
.pv-stat-value-ok { color: var(--rz-success); }
.pv-stat-value-warning { color: #ED6C02; }
.pv-stat-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--rz-text-title-color);
  margin-bottom: 0.15rem;
}
.pv-stat-desc {
  font-size: 0.8rem;
  color: var(--rz-text-secondary-color);
}

/* Dialogs — royal title bar matching the ContactUs / boarding-pass ticket header, plus a thin royal
   frame around the whole dialog. Applies to any dialog opened with a title via DialogService, so
   it's consistent across all dialogs at once. */
.rz-dialog {
  border: 1px solid var(--pv-royal);
}
.rz-dialog-titlebar {
  background-color: var(--pv-royal) !important;
  color: #FFFFFF !important;
  padding: 0.5rem 1.25rem;
}
.rz-dialog-titlebar .rz-dialog-title {
  color: #FFFFFF;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.rz-dialog-titlebar .rz-dialog-titlebar-close {
  color: rgba(255, 255, 255, 0.85);
}
.rz-dialog-titlebar .rz-dialog-titlebar-close:hover {
  color: #FFFFFF;
}

/* Shared dialog footer — dashed tear line above right-aligned action buttons, mirroring the ticket
   stub. Dialog components opt in by wrapping their action buttons in <div class="pv-dialog-footer">. */
.pv-dialog-footer {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 0.6rem;
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 2px dashed var(--pv-mist, #E2E8F0);
}
html[data-theme="dark"] .pv-dialog-footer {
  border-top-color: var(--pv-line, #213151);
}

/* Standard form label (Label + Input) — compact uppercase micro-label matching the login form's
   fields, sitting tight above its input. Applies to every RadzenLabel so all forms share one look. */
.rz-label {
  display: block;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--rz-text-secondary-color);
  margin-bottom: 0.1rem;
  line-height: 1.3;
}
html[data-theme="dark"] .rz-label {
  color: var(--pv-muted);
}

/* User profile menu (UserMenu) hover — the hover background var above sets a royal/azure tint;
   there's no var for the hover text/icon, so pin those to match the nav (royal light / white dark)
   instead of the washed-out default. */
.rz-profile-menu .rz-navigation-menu .rz-navigation-item-wrapper:hover .rz-navigation-item-text,
.rz-profile-menu .rz-navigation-menu .rz-navigation-item-wrapper:hover .rzi {
  color: var(--pv-royal);
}
html[data-theme="dark"] .rz-profile-menu .rz-navigation-menu .rz-navigation-item-wrapper:hover .rz-navigation-item-text,
html[data-theme="dark"] .rz-profile-menu .rz-navigation-menu .rz-navigation-item-wrapper:hover .rzi {
  color: #FFFFFF;
}

/* Grid header — brand royal ground with white text and icons (column titles, sort arrows, filter
   icons) in both themes, since the header is royal in both. */
.rz-grid-table thead th,
.rz-grid-table thead th .rz-column-title,
.rz-grid-table thead th .rz-column-title-content,
.rz-grid-table thead th a,
.rz-grid-table thead th .rzi {
  color: #FFFFFF !important;
}
.rz-grid-table thead th .rz-grid-filter-icon {
  color: rgba(255, 255, 255, 0.85) !important;
}

/* Grid-cell links (contact number / email in list views) — RadzenLink already reads
   --rz-link-color, but pin plain anchors too so they never fall back to browser blue/purple. */
.rz-cell-data a {
  color: var(--pv-royal);
}
html[data-theme="dark"] .rz-cell-data a {
  color: var(--pv-azure);
}

/* Dark-mode inputs on public/auth pages: Radzen's dark theme leaves them bright white and
   flips them dark on focus, which flickers. Pin them to one soft grey in every state. */
html[data-theme="dark"] .login-page .rz-textbox,
html[data-theme="dark"] .login-page .rz-textarea,
html[data-theme="dark"] .pv-page-shell .rz-textbox,
html[data-theme="dark"] .pv-page-shell .rz-textarea {
  background-color: #CBD5E3 !important;
  color: #15203A !important;
  border-color: #93A3B8 !important;
  box-shadow: none !important;
}

html[data-theme="dark"] .login-page .rz-textbox:enabled:focus,
html[data-theme="dark"] .login-page .rz-textarea:enabled:focus,
html[data-theme="dark"] .pv-page-shell .rz-textbox:enabled:focus,
html[data-theme="dark"] .pv-page-shell .rz-textarea:enabled:focus {
  background-color: #CBD5E3 !important;
  color: #15203A !important;
  border-color: #38BDF8 !important;
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.25) !important;
}

html[data-theme="dark"] .login-page .rz-textbox::placeholder,
html[data-theme="dark"] .login-page .rz-textarea::placeholder,
html[data-theme="dark"] .pv-page-shell .rz-textbox::placeholder,
html[data-theme="dark"] .pv-page-shell .rz-textarea::placeholder {
  color: #5B6B84;
}

/* Shared theme toggle (Components/Shared/ThemeToggle.razor) — used on both the public pages
   (PublicNav) and the authenticated header (MainLayout), which is why it lives here rather than
   in public.css. Compact auto/light/dark cycle button. */
.pv-theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  padding: 0;
  border: 1px solid var(--rz-border-color);
  border-radius: 999px;
  background: transparent;
  color: var(--pv-slate, #64748B);
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

.pv-theme-toggle:hover,
.pv-theme-toggle:focus-visible {
  color: var(--pv-azure);
  border-color: var(--pv-azure);
  background: rgba(56, 189, 248, 0.08);
}

.pv-theme-toggle:focus-visible {
  outline: 2px solid var(--pv-azure);
  outline-offset: 2px;
}

html[data-theme="dark"] .pv-theme-toggle {
  color: var(--pv-muted, #93A1B5);
  border-color: var(--rz-border-color);
}

html[data-theme="dark"] .pv-theme-toggle:hover,
html[data-theme="dark"] .pv-theme-toggle:focus-visible {
  color: var(--pv-azure);
  border-color: var(--pv-azure);
  background: rgba(56, 189, 248, 0.12);
}

/* Authenticated header wordmark (MainLayout) — same paper-plane mark + treatment as the public
   nav logo, so the app doesn't feel like a different site once you're signed in. */
.pv-app-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: var(--pv-royal);
  font-weight: 700;
  font-size: 1.05rem;
  font-family: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  transition: color 0.2s ease;
}

.pv-app-brand .pv-plane-icon {
  color: var(--pv-royal);
  flex: none;
}

.pv-app-brand:hover,
.pv-app-brand:hover .pv-plane-icon {
  color: var(--pv-royal-hover);
}

html[data-theme="dark"] .pv-app-brand,
html[data-theme="dark"] .pv-app-brand .pv-plane-icon {
  color: var(--pv-royal);
}

/* Authenticated footer (MainLayout RadzenFooter) — thin single line matching the public
   footer's voice and proportions. */
.pv-app-footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  font-size: 0.82rem;
}

.pv-app-footer-version {
  color: var(--rz-text-tertiary-color);
}
