/* =============================================================================
   REUSABLE THEME SYSTEM
   This file contains all the visual styling that can be used across Flask apps
   ============================================================================= */

/* CSS Custom Properties */
:root {
  /* Smart Job brand — modern indigo / violet with a cyan accent */
  --ov-primary: #4f46e5;         /* indigo-600 */
  --ov-primary-deep: #3730a3;    /* indigo-800 */
  --ov-accent: #06b6d4;          /* cyan-500 */
  --ov-accent-soft: #22d3ee;     /* cyan-400 */
  --ov-violet: #7c3aed;          /* violet-600 */
  --ov-surface: #ffffff;
  --ov-surface-alt: #f5f6fe;     /* barely-there indigo tint */
  --ov-ink: #0b1220;
  --ov-ink-muted: #5a6b85;
  --ov-ring: rgba(6, 182, 212, 0.30);
  --brand-gradient: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
  --brand-gradient-soft: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  --brand-gradient-cyan: linear-gradient(135deg, #4f46e5 0%, #06b6d4 100%);
  --ov-radius-lg: 18px;
  --ov-radius-xl: 24px;
  --ov-shadow-dock: 0 18px 42px rgba(49, 46, 129, 0.24);
  --ov-shadow-panel: 0 10px 28px rgba(49, 46, 129, 0.12);
  --mobile-nav-offset: calc(4.65rem + env(safe-area-inset-bottom, 0px));

  /* Legacy aliases used across existing templates */
  --color-primary-blue: var(--ov-primary);
  --color-primary-purple: var(--ov-primary-deep);
  --color-primary-teal: var(--ov-accent);
  
  /* Semantic Colors */
  --color-success: #10B981;
  --color-warning: #F59E0B;
  --color-danger: #EF4444;
  --color-info: #3B82F6;
  
  /* Neutral Colors */
  --color-neutral-white: #FFFFFF;
  --color-neutral-gray-50: #F9FAFB;
  --color-neutral-gray-100: #F3F4F6;
  --color-neutral-gray-200: #E5E7EB;
  --color-neutral-gray-300: #D1D5DB;
  --color-neutral-gray-400: #9CA3AF;
  --color-neutral-gray-500: #6B7280;
  --color-neutral-gray-600: #4B5563;
  --color-neutral-gray-700: #374151;
  --color-neutral-gray-800: #1F2937;
  --color-neutral-gray-900: #111827;
  --color-neutral-black: #000000;
  
  /* Spacing */
  --spacing-xs: 0.25rem;
  --spacing-sm: 0.5rem;
  --spacing-md: 1rem;
  --spacing-lg: 1.5rem;
  --spacing-xl: 2rem;
  --spacing-2xl: 3rem;
  
  /* Typography — Montserrat first (geometric / Tesla-adjacent); falls back to system UI */
  --font-sans: "Montserrat", ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  --font-ui-letter-spacing: 0.012em;
  --font-ui-letter-spacing-strong: 0.055em;
  
  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --shadow-sidebar: 4px 0 12px -2px rgba(0,0,0,0.15);
  
  /* Transitions */
  --transition-fast: 150ms;
  --transition-normal: 300ms;
  --transition-slow: 500ms;
  --transition-timing: cubic-bezier(0.4, 0, 0.2, 1);
}

/* Dark Mode Variables */
.dark {
  --color-neutral-white: #0F172A;
  --color-neutral-gray-50: #1E293B;
  --color-neutral-gray-100: #334155;
  --color-neutral-gray-200: #475569;
  --color-neutral-gray-300: #64748B;
  --color-neutral-gray-400: #94A3B8;
  --color-neutral-gray-500: #CBD5E1;
  --color-neutral-gray-600: #E2E8F0;
  --color-neutral-gray-700: #F1F5F9;
  --color-neutral-gray-800: #F8FAFC;
  --color-neutral-gray-900: #FFFFFF;
  --color-neutral-black: #FFFFFF;
}

/* =============================================================================
   BASE STYLES
   ============================================================================= */

* {
  box-sizing: border-box;
}

body {
  font-family: var(--font-sans);
  font-weight: 400;
  letter-spacing: var(--font-ui-letter-spacing);
  line-height: 1.5;
  color: var(--color-neutral-gray-900);
  background-color: var(--color-neutral-gray-100);
  margin: 0;
  padding: 0;
}

.dark body {
  color: var(--color-neutral-gray-200);
  background-color: var(--color-neutral-gray-50);
}

/* =============================================================================
   LAYOUT COMPONENTS
   ============================================================================= */

.theme-layout {
  display: flex;
  min-height: 100vh;
}

.theme-sidebar {
  width: 18.5rem;
  min-height: 100vh;
  background: linear-gradient(185deg, #4f46e5 0%, #3730a3 55%, #312e81 100%);
  box-shadow: var(--ov-shadow-dock);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1rem 0.75rem;
}

.theme-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.theme-topbar {
  background-color: var(--color-neutral-white);
  border-bottom: 1px solid var(--color-neutral-gray-200);
  padding: 1rem 1.5rem;
  box-shadow: var(--shadow-sm);
}

.dark .theme-topbar {
  background-color: var(--color-neutral-gray-100);
  border-bottom-color: var(--color-neutral-gray-200);
}

.theme-topbar-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 0.5rem 1rem;
  width: 100%;
  box-sizing: border-box;
}

.theme-topbar-left {
  grid-column: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.theme-mobile-menu-btn {
  display: none;
  margin-right: 0.5rem;
}

.theme-title {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--color-neutral-gray-900);
  margin: 0;
}

.dark .theme-title {
  color: var(--color-neutral-gray-200);
}

.theme-topbar-actions {
  grid-column: 3;
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 1rem;
  min-width: 0;
}

.theme-content {
  flex: 1;
  padding: 1.5rem;
  background-color: var(--ov-surface-alt);
  background-image:
    radial-gradient(1100px 480px at 100% -8%, rgba(124, 58, 237, 0.07), transparent 60%),
    radial-gradient(900px 420px at -6% 4%, rgba(6, 182, 212, 0.07), transparent 55%);
  background-attachment: fixed;
}

.dark .theme-content {
  background-color: var(--color-neutral-gray-50);
}

/* =============================================================================
   NAVIGATION COMPONENTS
   ============================================================================= */

.theme-nav-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: white;
  text-decoration: none;
  width: 100%;
  padding: 0.5rem 0.75rem;
  transition: background-color var(--transition-fast) var(--transition-timing);
  border-radius: 12px;
  position: relative;
  font-size: 0.875rem;
  letter-spacing: var(--font-ui-letter-spacing);
}

.theme-nav-item:hover {
  background-color: rgba(255, 255, 255, 0.12);
}

.theme-nav-item.active {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.24), rgba(255, 255, 255, 0.08));
  font-weight: 600;
}

.theme-nav-item.active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background-color: white;
  border-radius: 0 4px 4px 0;
}

.theme-nav-item.feature-disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.theme-nav-item.feature-disabled:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.theme-nav-icon {
  width: 1.75rem;
  height: 1.75rem;
  padding-left: 0.75rem;
  flex-shrink: 0;
}

/* =============================================================================
   BUTTON COMPONENTS
   ============================================================================= */

.theme-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 1.1rem;
  border: none;
  border-radius: 0.7rem;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: transform var(--transition-fast) var(--transition-timing),
    box-shadow var(--transition-fast) var(--transition-timing),
    background-color var(--transition-fast) var(--transition-timing),
    filter var(--transition-fast) var(--transition-timing);
  gap: 0.5rem;
  min-height: 2.5rem;
}

.theme-btn:active {
  transform: translateY(1px);
}

.theme-btn-primary {
  background-image: var(--brand-gradient);
  background-color: var(--ov-primary);
  color: white;
  box-shadow: 0 8px 18px rgba(79, 70, 229, 0.28);
}

.theme-btn-primary:hover {
  filter: brightness(1.06);
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(79, 70, 229, 0.36);
}

.theme-btn-secondary {
  background-color: var(--color-neutral-gray-200);
  color: var(--color-neutral-gray-800);
}

.dark .theme-btn-secondary {
  background-color: var(--color-neutral-gray-700);
  color: var(--color-neutral-gray-200);
}

.theme-btn-secondary:hover {
  background-color: var(--color-neutral-gray-300);
}

.dark .theme-btn-secondary:hover {
  background-color: var(--color-neutral-gray-600);
}

.theme-btn-danger {
  background-color: var(--color-danger);
  color: white;
}

.theme-btn-danger:hover {
  background-color: #DC2626;
}

/* =============================================================================
   CARD COMPONENTS
   ============================================================================= */

.theme-card {
  background-color: var(--color-neutral-white);
  border-radius: 0.5rem;
  box-shadow: var(--shadow-md);
  padding: 1.5rem;
  border: 1px solid var(--color-neutral-gray-200);
}

.dark .theme-card {
  background-color: var(--color-neutral-gray-100);
  border-color: var(--color-neutral-gray-200);
}

.theme-card-header {
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--color-neutral-gray-200);
}

.dark .theme-card-header {
  border-bottom-color: var(--color-neutral-gray-200);
}

/* =============================================================================
   TABLE COMPONENTS
   ============================================================================= */

.theme-table {
  width: 100%;
  border-collapse: collapse;
}

/* Mobile hardening: prevent horizontal overflow and keep actions reachable */
@media (max-width: 768px) {
  body.sidebar-open {
    overflow: hidden;
    touch-action: none;
  }

  html, body {
    max-width: 100%;
    overflow-x: hidden;
  }

  .theme-content,
  .theme-card,
  .theme-card-panel-body {
    min-width: 0;
    overflow-wrap: anywhere;
  }

  .theme-table,
  table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .theme-btn,
  .theme-form-input,
  .theme-form-select,
  .theme-form-textarea {
    max-width: 100%;
  }

  .theme-sticky-mobile-actions {
    position: sticky;
    bottom: 0.5rem;
    z-index: 15;
    background: var(--color-neutral-white);
    border: 1px solid var(--color-neutral-gray-200);
    border-radius: 0.75rem;
    padding: 0.65rem;
    box-shadow: var(--shadow-md);
  }

  .theme-mobile-filters {
    display: grid !important;
    grid-template-columns: 1fr;
    gap: 0.5rem;
    align-items: stretch !important;
  }

  .theme-mobile-filters .theme-form-input,
  .theme-mobile-filters .theme-form-select,
  .theme-mobile-filters .theme-btn {
    width: 100% !important;
    max-width: 100% !important;
  }
}

.theme-table thead {
  background-color: var(--color-neutral-gray-50);
}

.dark .theme-table thead {
  background-color: var(--color-neutral-gray-50);
}

.theme-table th {
  color: var(--color-neutral-gray-700);
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-align: left !important; /* override browser default center for th */
  padding: 0.75rem;
  vertical-align: middle;
}

.dark .theme-table th {
  color: var(--color-neutral-gray-400);
}

.theme-table td {
  color: var(--color-neutral-gray-800);
  text-align: left !important;
  padding: 0.75rem;
  vertical-align: middle;
}

.dark .theme-table td {
  color: var(--color-neutral-gray-300);
}

.theme-table tbody tr {
  border-bottom: 1px solid var(--color-neutral-gray-200);
  transition: background-color var(--transition-fast);
}

.dark .theme-table tbody tr {
  border-bottom-color: var(--color-neutral-gray-200);
}

.theme-table tbody tr:hover {
  background-color: var(--color-neutral-gray-50);
}

.dark .theme-table tbody tr:hover {
  background-color: var(--color-neutral-gray-50);
}

/* Key-value / detail grids - consistent left alignment for headers (labels) and values */
.theme-detail-grid {
  text-align: left;
}

.theme-detail-grid > *,
.theme-detail-grid p,
.theme-detail-grid .theme-detail-label,
.theme-detail-grid .theme-detail-value {
  text-align: left;
}

.theme-card-title {
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--color-neutral-gray-900);
  margin: 0;
}

.dark .theme-card-title {
  color: var(--color-neutral-gray-200);
}

/* =============================================================================
   FORM COMPONENTS
   ============================================================================= */

.theme-form-group {
  margin-bottom: 1rem;
}

.theme-form-label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--color-neutral-gray-700);
}

.dark .theme-form-label {
  color: var(--color-neutral-gray-400);
}

.theme-form-input {
  width: 100%;
  padding: 0.6rem 0.85rem;
  border: 1px solid var(--color-neutral-gray-300);
  border-radius: 0.7rem;
  font-size: 0.875rem;
  transition: border-color var(--transition-fast) var(--transition-timing),
    box-shadow var(--transition-fast) var(--transition-timing);
  background-color: var(--color-neutral-white);
  color: var(--color-neutral-gray-900);
}

.dark .theme-form-input {
  background-color: var(--color-neutral-gray-100);
  border-color: var(--color-neutral-gray-300);
  color: var(--color-neutral-gray-200);
}

.theme-form-input:focus {
  outline: none;
  border-color: var(--ov-accent);
  box-shadow: 0 0 0 3px var(--ov-ring);
}

/* Filter grid helpers (e.g. employee search) */
.filter-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}

/* =============================================================================
   DASHBOARD LAYOUT HELPERS
   ============================================================================= */

.dashboard-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

/* Top bar — app version (true center column in grid; tabular type) */
.theme-app-version-wrap {
  grid-column: 2;
  justify-self: center;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.theme-app-version {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  font-variant-numeric: tabular-nums;
  color: var(--ov-ink);
  white-space: nowrap;
  user-select: none;
  text-transform: uppercase;
}

.theme-app-version--tesla {
  letter-spacing: 0.16em;
}

.theme-app-version__word {
  font-weight: 500;
  color: var(--ov-ink);
  margin-right: 0.35em;
}

.theme-app-version__num {
  font-weight: 600;
  color: var(--ov-ink);
  letter-spacing: 0.12em;
}


/* Dashboard stat tiles — aligned with dock / OfficeVault surfaces */
.theme-card.theme-card-stat {
  position: relative;
  border-radius: var(--ov-radius-lg);
  border: 1px solid rgba(79, 70, 229, 0.12);
  box-shadow: var(--ov-shadow-panel);
  background: linear-gradient(165deg, #ffffff 0%, #f5f6fe 100%);
  padding: 1.25rem 1.35rem;
  overflow: hidden;
  transition: transform var(--transition-fast) var(--transition-timing),
    box-shadow var(--transition-fast) var(--transition-timing);
}

.theme-card.theme-card-stat::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--stat-stripe, var(--brand-gradient));
  border-radius: var(--ov-radius-lg) var(--ov-radius-lg) 0 0;
}

.theme-card.theme-card-stat:hover {
  box-shadow: var(--ov-shadow-dock);
  transform: translateY(-3px);
}

.theme-card-stat--teal {
  --stat-stripe: var(--ov-accent);
}

.theme-card-stat--navy {
  --stat-stripe: var(--ov-primary);
}

.theme-card-stat--amber {
  --stat-stripe: var(--color-warning);
}

.theme-card-stat--rose {
  --stat-stripe: var(--color-danger);
}

.dashboard-stat-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
}

.dashboard-stat-label {
  font-size: 0.875rem;
  color: var(--color-neutral-gray-500);
  margin: 0 0 0.25rem 0;
  line-height: 1.35;
}

.dashboard-stat-value {
  font-size: 2rem;
  font-weight: 700;
  margin: 0;
  line-height: 1.15;
}

.dashboard-stat-icon {
  width: 3rem !important;
  height: 3rem !important;
  flex-shrink: 0;
  opacity: 0.28;
}

.dashboard-main-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 1.5rem;
}

/* Content / list cards — same OfficeVault surface as dashboard stat tiles */
.theme-card.theme-card-panel,
.theme-content > .theme-card:not(.theme-card-stat):not(.theme-card-panel),
.dashboard-main-grid > div > .theme-card:not(.theme-card-stat):not(.theme-card-panel) {
  --panel-stripe: var(--brand-gradient);
  position: relative;
  border-radius: var(--ov-radius-lg);
  border: 1px solid rgba(79, 70, 229, 0.12);
  box-shadow: var(--ov-shadow-panel);
  background: linear-gradient(165deg, #ffffff 0%, #f5f6fe 100%);
  padding: 1.25rem 1.35rem;
  overflow: hidden;
  transition: transform var(--transition-fast) var(--transition-timing),
    box-shadow var(--transition-fast) var(--transition-timing);
}

.theme-card.theme-card-panel::before,
.theme-content > .theme-card:not(.theme-card-stat):not(.theme-card-panel)::before,
.dashboard-main-grid > div > .theme-card:not(.theme-card-stat):not(.theme-card-panel)::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--panel-stripe);
  border-radius: var(--ov-radius-lg) var(--ov-radius-lg) 0 0;
  pointer-events: none;
}

.theme-card.theme-card-panel:hover,
.theme-content > .theme-card:not(.theme-card-stat):not(.theme-card-panel):hover,
.dashboard-main-grid > div > .theme-card:not(.theme-card-stat):not(.theme-card-panel):hover {
  box-shadow: var(--ov-shadow-dock);
  transform: translateY(-2px);
}

.theme-card-panel--teal {
  --panel-stripe: linear-gradient(135deg, #06b6d4 0%, #0ea5e9 100%);
}

.theme-card-panel--navy {
  --panel-stripe: var(--brand-gradient);
}

.theme-card-panel--amber {
  --panel-stripe: var(--color-warning);
}

.theme-card-panel--rose {
  --panel-stripe: var(--color-danger);
}

.theme-card.theme-card-panel.theme-card-panel--list {
  padding: 0;
}

.theme-card.theme-card-panel.theme-card-panel--list > .theme-card-header {
  margin-bottom: 0;
  padding: 1rem 1.15rem;
  border-bottom: 1px solid rgba(79, 70, 229, 0.1);
}

.theme-card-panel-body {
  padding: 1rem 1.15rem;
}

/* Login — centered, app-themed shell (used when not authenticated) */
.theme-login-shell {
  min-height: calc(100vh - 10rem);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
  background: linear-gradient(165deg, var(--ov-surface-alt) 0%, #e8eef4 55%, #f4f7fb 100%);
}

.theme-login-brand {
  text-align: center;
  margin-bottom: 1.25rem;
}

.theme-login-brand img {
  width: 4.5rem;
  height: 4.5rem;
  object-fit: contain;
  border-radius: 14px;
  box-shadow: var(--ov-shadow-panel);
}

/* =============================================================================
   UTILITY CLASSES
   ============================================================================= */

.theme-text-primary { color: var(--color-primary-teal); }
.theme-text-success { color: var(--color-success); }
.theme-text-warning { color: var(--color-warning); }
.theme-text-danger { color: var(--color-danger); }
.theme-text-info { color: var(--color-info); }

.theme-bg-primary { background-color: var(--color-primary-teal); }

/* Dock shell treatment (mac-style floating items + flyout submenu) */
.theme-dock-shell {
  width: 12rem;
  min-width: 12rem;
  margin: 0.7rem 0.55rem;
  min-height: calc(100vh - 1.4rem);
  border-radius: 22px;
  overflow: visible;
  background: transparent;
  box-shadow: none;
  padding: 0.45rem 0.5rem;
}

.theme-dock-shell.theme-sidebar {
  align-items: center;
}

.dock-sidebar-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
  width: 100%;
  gap: 0.45rem;
}

.dock-brand {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  width: 100%;
  gap: 0.45rem;
  margin-top: 0.15rem;
  padding: 0 0.15rem;
}

.dock-brand-logo-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 5.5rem;
  background: #fff;
  border-radius: 12px;
  padding: 0.55rem;
  box-shadow: 0 4px 14px rgba(8, 25, 44, 0.12);
  border: 1px solid rgba(79, 70, 229, 0.1);
  box-sizing: border-box;
}

.dock-brand-logo {
  display: block;
  max-width: 100%;
  width: 100%;
  height: auto;
  max-height: 4.5rem;
  object-fit: contain;
  object-position: center;
  border-radius: 8px;
}

.dock-brand-text {
  text-align: center;
  width: 100%;
  line-height: 1.25;
}

.dock-brand-company {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--ov-ink);
  word-break: break-word;
  hyphens: auto;
}

.dock-brand-subtitle {
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--ov-ink-muted);
  margin-top: 0.15rem;
}

.theme-dock-shell .theme-sidebar-footer {
  display: none;
}

.dock-quick-search {
  width: 100%;
  padding: 0 0.1rem 0.4rem;
}

.theme-dock-shell .dock-quick-search .theme-search-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.theme-dock-shell .dock-quick-search .theme-search-input {
  width: 100%;
  height: 34px;
  padding: 0.35rem 2rem 0.35rem 2rem;
  font-size: 0.75rem;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(79, 70, 229, 0.16);
  color: var(--ov-ink);
  box-shadow: 0 4px 14px rgba(8, 25, 44, 0.12);
}

.theme-dock-shell .dock-quick-search .theme-search-input::placeholder {
  color: var(--ov-ink-muted);
}

.theme-dock-shell .dock-quick-search .theme-search-input:focus {
  outline: none;
  border-color: rgba(29, 127, 191, 0.45);
  background: #fff;
}

.theme-dock-shell .dock-quick-search .theme-search-icon {
  position: absolute;
  left: 0.55rem;
  width: 15px;
  height: 15px;
  color: var(--ov-ink-muted);
  pointer-events: none;
}

.theme-dock-shell .dock-quick-search .theme-search-clear {
  position: absolute;
  right: 0.4rem;
  background: transparent;
  border: none;
  color: var(--ov-ink-muted);
  cursor: pointer;
  padding: 0.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
}

.theme-dock-shell .dock-quick-search .theme-search-clear:hover {
  background: rgba(79, 70, 229, 0.08);
  color: var(--ov-primary);
}

.theme-dock-shell .dock-quick-search .theme-search-clear i {
  width: 14px;
  height: 14px;
}

.theme-dock-shell .dock-quick-search .theme-search-no-results {
  margin-top: 0.35rem;
  padding: 0.3rem;
  text-align: center;
  font-size: 0.72rem;
  color: var(--ov-ink-muted);
}

/* Menu search (dock uses main_sidebar without legacy sidebar.html styles) */
.menu-item-hidden {
  display: none !important;
}

.menu-group.search-hidden {
  display: none;
}

.menu-search-highlight {
  background: rgba(251, 191, 36, 0.45);
  color: var(--ov-ink);
  padding: 0 2px;
  border-radius: 2px;
  font-weight: 600;
}

.dock-nav {
  width: 100%;
  padding: 0.25rem 0;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.45rem;
}

.dock-nav .menu-group-header {
  border: 0;
  color: #fff;
  font: inherit;
}

.dock-sidebar-footer {
  width: 100%;
  margin-top: auto;
  padding: 0.45rem 0.15rem 0.1rem;
}

.dock-logout {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 2.75rem;
  width: 100%;
  padding: 0.55rem 0.75rem;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 12px;
  background: linear-gradient(145deg, #f87171 0%, #dc2626 100%);
  box-shadow: 0 8px 18px rgba(127, 29, 29, 0.25);
  font-size: 0.78rem;
  font-weight: 650;
  text-decoration: none;
  transition: transform var(--transition-fast), filter var(--transition-fast);
}

.dock-logout:hover {
  color: #fff;
  filter: brightness(1.08);
  transform: translateY(-1px);
}

.dock-logout svg {
  width: 1rem;
  height: 1rem;
}

/* Uniform tiles: icon centered above label; label wraps so full name fits */
.dock-nav > .theme-nav-item.menu-item,
.dock-nav .menu-group-header {
  width: 100%;
  min-height: 5.25rem;
  box-sizing: border-box;
  border-radius: 16px;
  padding: 0.5rem 0.4rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  /* Default tile — overridden per item below */
  background: linear-gradient(145deg, #6366f1 0%, #4f46e5 100%);
  border: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow: 0 10px 22px rgba(30, 27, 75, 0.32);
  transition: transform var(--transition-fast) var(--transition-timing), box-shadow var(--transition-fast) var(--transition-timing), filter var(--transition-fast) var(--transition-timing);
}

.dock-nav > .theme-nav-item.menu-item > span {
  display: block;
  width: 100%;
  font-size: 0.65rem;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.01em;
  color: rgba(255, 255, 255, 0.96);
  text-wrap: balance;
  word-break: break-word;
  hyphens: auto;
}

.dock-nav .menu-group-header .menu-group-title {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  width: 100%;
}

.dock-nav .menu-group-header .menu-group-title span {
  display: block;
  width: 100%;
  font-size: 0.65rem;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.01em;
  color: rgba(255, 255, 255, 0.96);
  text-wrap: balance;
  word-break: break-word;
  hyphens: auto;
}

.dock-nav .menu-group-header .menu-group-chevron {
  display: none !important;
}

/* Per-tile colours (icons stay white for contrast) */
.dock-nav > a[data-menu-text="Dashboard"] {
  background: linear-gradient(145deg, #6366f1 0%, #4338ca 100%);
}
.dock-nav > a[data-menu-text="Chat"] {
  background: linear-gradient(145deg, #3b82f6 0%, #1d4ed8 100%);
}
.dock-nav .menu-group[data-group-id="employee-management"] .menu-group-header {
  background: linear-gradient(145deg, #14b8a6 0%, #0d9488 100%);
}
.dock-nav .menu-group[data-group-id="leave-management"] .menu-group-header {
  background: linear-gradient(145deg, #34d399 0%, #059669 100%);
}
.dock-nav .menu-group[data-group-id="expense-claims"] .menu-group-header {
  background: linear-gradient(145deg, #fbbf24 0%, #d97706 100%);
}
.dock-nav .menu-group[data-group-id="records-documents"] .menu-group-header {
  background: linear-gradient(145deg, #a78bfa 0%, #7c3aed 100%);
}
.dock-nav .menu-group[data-group-id="time-attendance"] .menu-group-header {
  background: linear-gradient(145deg, #fb923c 0%, #ea580c 100%);
}
.dock-nav .menu-group[data-group-id="payroll"] .menu-group-header {
  background: linear-gradient(145deg, #94a3b8 0%, #64748b 100%);
}
.dock-nav .menu-group[data-group-id="performance-development"] .menu-group-header {
  background: linear-gradient(145deg, #f472b6 0%, #db2777 100%);
}
.dock-nav .menu-group[data-group-id="recruitment"] .menu-group-header {
  background: linear-gradient(145deg, #2dd4bf 0%, #0f766e 100%);
}
.dock-nav .menu-group[data-group-id="surveys-engagement"] .menu-group-header {
  background: linear-gradient(145deg, #818cf8 0%, #4f46e5 100%);
}
.dock-nav .menu-group[data-group-id="company-management"] .menu-group-header {
  background: linear-gradient(145deg, #38bdf8 0%, #0284c7 100%);
}
.dock-nav .menu-group[data-group-id="administration"] .menu-group-header {
  background: linear-gradient(145deg, #78716c 0%, #57534e 100%);
}
.dock-nav > a[data-menu-text="My Notifications"] {
  background: linear-gradient(145deg, #f59e0b 0%, #d97706 100%);
}
.dock-nav > a[data-menu-text="Officevault"] {
  background: linear-gradient(145deg, #60a5fa 0%, #2563eb 100%);
}

.dock-nav > .theme-nav-item.menu-item:hover,
.dock-nav .menu-group-header:hover {
  transform: translateY(-3px) scale(1.04);
  box-shadow: 0 16px 30px rgba(8, 25, 44, 0.35);
  filter: brightness(1.08);
}

.dock-nav > .theme-nav-item.menu-item.active,
.dock-nav .menu-group.expanded .menu-group-header,
.dock-nav .menu-group.has-active .menu-group-header {
  border-color: rgba(255, 255, 255, 0.65);
  box-shadow: 0 18px 36px rgba(8, 25, 44, 0.4);
  filter: brightness(1.12);
}

.dock-nav > .theme-nav-item.menu-item.active::before {
  display: none;
}

.dock-nav > .theme-nav-item.menu-item .theme-nav-icon,
.dock-nav .menu-group-header .menu-group-icon {
  width: 22px;
  height: 22px;
  padding-left: 0;
  flex-shrink: 0;
  color: #fff;
  filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.35));
}

.dock-nav > .theme-nav-item.menu-item img.theme-nav-icon--officevault {
  width: 22px;
  height: 22px;
  object-fit: contain;
  display: block;
  flex-shrink: 0;
  color: transparent;
  filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.35));
}

.dock-nav .menu-group {
  position: relative;
  width: 100%;
  display: flex;
  justify-content: center;
  background: transparent;
  padding: 0;
  border-radius: 0;
}

.dock-nav .menu-group-header {
  position: relative;
  cursor: pointer;
}

.dock-nav .menu-group.expanded .menu-group-header::after,
.dock-nav .menu-group.has-active .menu-group-header::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 6px;
  transform: translateX(-50%);
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: #ffffff;
  box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.15);
}

.dock-nav .menu-group-items {
  position: absolute;
  left: calc(100% + 12px);
  top: 50%;
  transform: translateY(-50%) translateX(-8px);
  min-width: 250px;
  max-height: min(70vh, 620px);
  overflow: auto;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(79, 70, 229, 0.16);
  border-radius: 16px;
  box-shadow: 0 22px 50px rgba(7, 20, 35, 0.28);
  padding: 0.45rem;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity var(--transition-fast) var(--transition-timing), transform var(--transition-fast) var(--transition-timing), visibility var(--transition-fast) var(--transition-timing);
  z-index: 1200;
}

.dock-nav .menu-group.expanded .menu-group-items {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(-50%) translateX(0);
}

.dock-nav .menu-group-item {
  width: 100%;
  min-height: 2.55rem;
  border-radius: 12px;
  color: var(--ov-ink);
  background: transparent;
  justify-content: flex-start;
  padding: 0.5rem 0.65rem;
  gap: 0.58rem;
  font-size: 0.86rem;
}

.dock-nav .menu-group-item:hover {
  background: rgba(79, 70, 229, 0.08);
}

.dock-nav .menu-group-item.active {
  background: rgba(79, 70, 229, 0.16);
  font-weight: 600;
}

.dock-nav .menu-group-item.active::before {
  display: none;
}

.dock-nav .menu-group-item .theme-nav-icon {
  width: 16px;
  height: 16px;
  color: var(--ov-primary);
}
.theme-bg-success { background-color: var(--color-success); }
.theme-bg-warning { background-color: var(--color-warning); }
.theme-bg-danger { background-color: var(--color-danger); }
.theme-bg-info { background-color: var(--color-info); }

/* =============================================================================
   RESPONSIVE DESIGN
   ============================================================================= */

@media (max-width: 768px) {
  /* Utility visibility helpers */
  .mobile-only {
    display: block !important;
  }
  .desktop-only,
  .dashboard-desktop-only {
    display: none !important;
  }

  .theme-mobile-menu-btn {
    display: inline-flex;
  }

  .theme-layout {
    flex-direction: column;
  }

  .theme-sidebar {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    transform: translateX(-100%);
    transition: transform var(--transition-normal) var(--transition-timing);
    z-index: 40;
    width: 14rem;
  }

  .theme-dock-shell {
    margin: 0;
    height: 100dvh;
    min-height: 100vh;
    max-height: 100dvh;
    border-radius: 0;
    width: 16rem;
    min-width: 16rem;
    background: linear-gradient(185deg, #4f46e5 0%, #3730a3 55%, #312e81 100%);
    box-shadow: var(--ov-shadow-dock);
    padding: max(0.65rem, env(safe-area-inset-top)) 0.5rem max(0.65rem, env(safe-area-inset-bottom));
    overflow: hidden;
  }

  .theme-dock-shell .dock-sidebar-content {
    min-height: 0;
    overflow: hidden;
  }

  .theme-dock-shell .dock-brand {
    flex-direction: column;
    align-items: stretch;
    flex: 0 0 auto;
    width: 100%;
    padding: 0.35rem 0.15rem 0.5rem;
  }

  .theme-dock-shell .dock-brand-logo-wrap {
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
  }

  .theme-dock-shell .dock-brand-company {
    color: #fff;
    font-size: 0.9rem;
  }

  .theme-dock-shell .dock-brand-subtitle {
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.72rem;
  }

  .theme-dock-shell .dock-nav {
    flex: 1 1 auto;
    min-height: 0;
    align-items: stretch;
    gap: 0.2rem;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
  }

  .theme-dock-shell .dock-nav > .theme-nav-item.menu-item,
  .theme-dock-shell .dock-nav .menu-group-header {
    width: 100%;
    height: auto;
    min-height: 2.5rem;
    padding: 0.45rem 0.65rem;
    justify-content: flex-start;
    border-radius: 12px;
    box-shadow: none;
    border: none;
    backdrop-filter: none;
    transform: none !important;
    background: rgba(255, 255, 255, 0.08);
  }

  .theme-dock-shell .dock-nav > .theme-nav-item.menu-item span,
  .theme-dock-shell .dock-nav .menu-group-header .menu-group-title span,
  .theme-dock-shell .dock-nav .menu-group-header .menu-group-chevron {
    display: inline;
  }

  .theme-dock-shell .dock-nav > .theme-nav-item.menu-item .theme-nav-icon,
  .theme-dock-shell .dock-nav .menu-group-header .menu-group-icon {
    width: 1rem;
    height: 1rem;
    color: #fff;
  }

  .theme-dock-shell .dock-nav > .theme-nav-item.menu-item img.theme-nav-icon--officevault {
    width: 1rem;
    height: 1rem;
  }

  .theme-dock-shell .dock-nav .menu-group-items {
    position: static;
    transform: none;
    min-width: 0;
    max-height: none;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0.2rem 0 0.35rem;
    display: none;
  }

  .theme-dock-shell .dock-nav .menu-group {
    flex-direction: column;
    flex: 0 0 auto;
  }

  .theme-dock-shell .dock-nav .menu-group-header {
    flex-direction: row;
  }

  .theme-dock-shell .dock-nav .menu-group-header .menu-group-title {
    flex-direction: row;
    justify-content: flex-start;
    gap: 0.55rem;
    text-align: left;
  }

  .theme-dock-shell .dock-nav .menu-group-header .menu-group-title span {
    width: auto;
    font-size: 0.78rem;
  }

  .theme-dock-shell .dock-nav .menu-group-header .menu-group-chevron {
    width: 1rem;
    height: 1rem;
    margin-left: auto;
    transition: transform var(--transition-fast);
  }

  .theme-dock-shell .dock-nav .menu-group.expanded .menu-group-chevron {
    transform: rotate(180deg);
  }

  .theme-dock-shell .dock-nav .menu-group.expanded .menu-group-items {
    display: block;
    position: static;
    transform: none;
  }

  .theme-dock-shell .dock-nav .menu-group-item {
    color: #fff;
    margin-top: 0.15rem;
    padding-left: 1.25rem;
    background: rgba(255, 255, 255, 0.06);
  }

  .theme-dock-shell .dock-nav .menu-group-item .theme-nav-icon {
    color: #fff;
  }

  .theme-dock-shell .dock-sidebar-footer {
    flex: 0 0 auto;
    padding-top: 0.5rem;
    background: linear-gradient(180deg, transparent, rgba(49, 46, 129, 0.96) 28%);
  }

  .theme-sidebar.open {
    transform: translateX(0);
  }

  .theme-sidebar-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-normal) var(--transition-timing);
    z-index: 30;
  }

  .theme-sidebar-backdrop.visible {
    opacity: 1;
    pointer-events: auto;
  }

  /* Topbar: prevent overflow – left section shrinks, right (user menu) always visible */
  .theme-topbar {
    padding:
      max(0.5rem, env(safe-area-inset-top))
      max(0.75rem, env(safe-area-inset-right))
      0.5rem
      max(0.75rem, env(safe-area-inset-left));
    overflow: hidden;
  }

  .theme-topbar-content {
    grid-template-columns: minmax(0, 1fr) auto;
    min-width: 0;
    gap: 0.35rem;
  }

  .theme-app-version-wrap {
    display: none !important;
  }

  .theme-topbar-actions {
    grid-column: 2;
  }

  .theme-topbar-left {
    min-width: 0;
    overflow: hidden;
  }

  .theme-topbar-content .theme-title {
    font-size: 1rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 24vw;
  }

  .theme-topbar-content .theme-topbar-actions {
    min-width: 0;
    gap: 0.35rem;
  }

  /* Hide long username text on small screens, keep just the icon button */
  .theme-user-name {
    display: none;
  }

  .theme-content {
    padding:
      0.75rem
      max(0.75rem, env(safe-area-inset-right))
      0.75rem
      max(0.75rem, env(safe-area-inset-left));
    overflow-x: hidden;
    max-width: 100%;
  }

  .theme-main {
    overflow-x: hidden;
    min-width: 0;
  }

  body {
    overflow-x: hidden;
  }

  /* Card headers: wrap so title and buttons don't overflow; buttons move to next line */
  .theme-card-header {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 0.5rem !important;
    align-items: center !important;
  }

  .theme-card-header .theme-card-title,
  .theme-card-header h2 {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    margin: 0 !important;
    font-size: 1.1rem !important;
  }

  .theme-card-header > div {
    flex: 1 1 100% !important;
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 0.35rem !important;
  }

  /* Inline card headers (style on parent): target common pattern */
  .theme-card > div[style*="display: flex"][style*="space-between"] {
    flex-wrap: wrap !important;
    gap: 0.5rem !important;
  }

  .theme-card > div[style*="display: flex"][style*="space-between"] > div:last-child {
    flex-basis: 100% !important;
  }

  .theme-card-stat .dashboard-stat-row {
    flex-wrap: wrap !important;
    justify-content: center !important;
    text-align: center;
  }

  .theme-card-stat .dashboard-stat-row > div:first-child {
    flex: 1 1 100%;
  }

  .theme-card-stat .dashboard-stat-icon {
    flex-basis: 100% !important;
    margin-top: 0.35rem;
    opacity: 0.35 !important;
  }

  /* Table action cells: allow wrap so buttons stay on screen */
  .theme-table td div[style*="display: flex"],
  .theme-card table td div[style*="display: flex"],
  .theme-table td div[style*="gap: 0.5rem"],
  .theme-card table td div[style*="gap:"] {
    flex-wrap: wrap !important;
    gap: 0.35rem !important;
  }

  .theme-table td:last-child,
  .theme-card table td:last-child {
    white-space: normal;
    min-width: 0;
  }

  .theme-table .theme-btn,
  .theme-card table .theme-btn {
    padding: 0.35rem 0.5rem !important;
    font-size: 0.8rem !important;
  }

  /* Scrollable table wrappers: keep within viewport, hint scroll on mobile */
  .theme-card > div[style*="overflow-x: auto"] {
    -webkit-overflow-scrolling: touch;
    max-width: 100%;
  }

  .dashboard-main-grid {
    grid-template-columns: 1fr;
  }

  .filter-grid {
    grid-template-columns: 1fr;
  }
}

/* =============================================================================
   ANIMATIONS & TRANSITIONS
   ============================================================================= */

.theme-fade-in {
  animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.theme-slide-in {
  animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
  from { transform: translateX(-100%); }
  to { transform: translateX(0); }
}

/* =============================================================================
   THEME TOGGLE COMPONENTS
   ============================================================================= */

.theme-toggle-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 0.375rem;
  color: var(--color-neutral-gray-600);
  transition: all var(--transition-fast) var(--transition-timing);
}

.dark .theme-toggle-btn {
  color: var(--color-neutral-gray-400);
}

.theme-toggle-btn:hover {
  background-color: var(--color-neutral-gray-200);
  color: var(--color-neutral-gray-800);
}

.dark .theme-toggle-btn:hover {
  background-color: var(--color-neutral-gray-700);
  color: var(--color-neutral-gray-200);
}

.theme-toggle-icon {
  width: 1.25rem;
  height: 1.25rem;
}

/* =============================================================================
   USER MENU COMPONENTS
   ============================================================================= */

.theme-user-menu {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.theme-user-menu-row {
  min-width: 0;
}

.theme-user-avatar {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid rgba(15, 23, 42, 0.1);
  background: #fff;
}

.theme-user-avatar--placeholder {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  background: var(--color-neutral-gray-200);
  color: var(--color-neutral-gray-600);
  border-color: rgba(15, 23, 42, 0.08);
}

.theme-user-avatar--placeholder svg {
  width: 1.125rem;
  height: 1.125rem;
}

.dark .theme-user-avatar {
  border-color: rgba(255, 255, 255, 0.12);
}

.dark .theme-user-avatar--placeholder {
  background: var(--color-neutral-gray-700);
  color: var(--color-neutral-gray-300);
  border-color: rgba(255, 255, 255, 0.1);
}

.theme-user-name {
  font-size: 0.875rem;
  color: var(--color-neutral-gray-700);
  font-weight: 500;
}

.dark .theme-user-name {
  color: var(--color-neutral-gray-400);
}

.theme-logout-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 0.375rem;
  color: var(--color-neutral-gray-600);
  text-decoration: none;
  transition: all var(--transition-fast) var(--transition-timing);
}

.dark .theme-logout-btn {
  color: var(--color-neutral-gray-400);
}

.theme-logout-btn:hover {
  background-color: var(--color-neutral-gray-200);
  color: var(--color-neutral-gray-800);
}

.dark .theme-logout-btn:hover {
  background-color: var(--color-neutral-gray-700);
  color: var(--color-neutral-gray-200);
}

/* =============================================================================
   MOBILE NAVIGATION
   ============================================================================= */

.theme-mobile-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: var(--color-neutral-white);
  border-top: 1px solid var(--color-neutral-gray-200);
  padding: 0.5rem;
  display: flex;
  justify-content: space-around;
  z-index: 10;
}

.dark .theme-mobile-nav {
  background-color: var(--color-neutral-gray-100);
  border-top-color: var(--color-neutral-gray-200);
}

@media (min-width: 769px) {
  .theme-mobile-nav {
    display: none;
  }
}

/* =============================================================================
   TOAST CONTAINER
   ============================================================================= */

.theme-toast-container {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 50;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.theme-toast {
  min-width: 260px;
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  background-color: var(--color-neutral-gray-900);
  color: white;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity var(--transition-fast) var(--transition-timing),
              transform var(--transition-fast) var(--transition-timing);
}

.theme-toast.show {
  opacity: 1;
  transform: translateY(0);
}

.theme-toast-info {
  background-color: var(--color-info);
}

.theme-toast-success {
  background-color: var(--color-success);
}

.theme-toast-warning {
  background-color: var(--color-warning);
  color: var(--color-neutral-gray-900);
}

.theme-toast-error {
  background-color: var(--color-danger);
}

/* =============================================================================
   ADDITIONAL UTILITY CLASSES
   ============================================================================= */

.theme-text-center { text-align: center; }
.theme-text-left { text-align: left; }
.theme-text-right { text-align: right; }

.theme-font-bold { font-weight: 700; }
.theme-font-semibold { font-weight: 600; }
.theme-font-medium { font-weight: 500; }
.theme-font-normal { font-weight: 400; }

.theme-rounded { border-radius: 0.375rem; }
.theme-rounded-lg { border-radius: 0.5rem; }
.theme-rounded-full { border-radius: 9999px; }

.theme-shadow { box-shadow: var(--shadow-md); }
.theme-shadow-lg { box-shadow: var(--shadow-lg); }
.theme-shadow-none { box-shadow: none; }

.theme-transition { transition: all var(--transition-normal) var(--transition-timing); }
.theme-transition-fast { transition: all var(--transition-fast) var(--transition-timing); }
.theme-transition-slow { transition: all var(--transition-slow) var(--transition-timing); }

/* Responsive table -> card layout on small screens */
@media (max-width: 768px) {
  .responsive-table {
    border-collapse: separate;
    border-spacing: 0 0.75rem;
  }

  .responsive-table thead {
    display: none;
  }

  .responsive-table tbody tr {
    display: block;
    border: 1px solid var(--color-neutral-gray-200);
    border-radius: 0.75rem;
    padding: 0.5rem 0.75rem;
    background-color: var(--color-neutral-white);
    box-shadow: var(--shadow-sm);
  }

  .responsive-table tbody tr + tr {
    margin-top: 0.25rem;
  }

  .responsive-table td {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 0.4rem 0.25rem;
    border: none;
    font-size: 0.85rem;
    flex-wrap: wrap; /* allow content below the label */
  }

  .responsive-table td::before {
    content: attr(data-label);
    font-weight: 600;
    color: var(--color-neutral-gray-600);
    margin-right: 0.75rem;
    flex: 0 0 45%;
    max-width: 55%;
    text-align: left;
  }

  .responsive-table td:last-child {
    padding-top: 0.6rem;
  }

  /* Actions column: keep label on top so action buttons remain visible */
  .responsive-table td:last-child::before {
    flex: 0 0 100%;
    max-width: 100%;
    margin-right: 0;
    margin-bottom: 0.25rem;
    white-space: normal;
  }

  .responsive-table td:last-child > div {
    flex-wrap: wrap !important;
  }
}

/* =============================================================================
   ALERT/FLASH MESSAGE COMPONENTS
   ============================================================================= */

.theme-alert {
  padding: 0.75rem 1rem;
  border-radius: 0.375rem;
  margin-bottom: 1rem;
  border: 1px solid;
  font-size: 0.875rem;
}

.theme-alert-success {
  background-color: rgba(16, 185, 129, 0.1);
  border-color: var(--color-success);
  color: var(--color-success);
}

.theme-alert-danger {
  background-color: rgba(239, 68, 68, 0.12);
  border-color: var(--color-danger);
  color: var(--color-danger);
}

.theme-alert-warning {
  background-color: rgba(245, 158, 11, 0.14);
  border-color: var(--color-warning);
  color: var(--color-warning);
}

.theme-alert-info {
  background-color: rgba(59, 130, 246, 0.1);
  border-color: var(--color-info);
  color: var(--color-info);
}

.dark .theme-alert-success {
  background-color: rgba(16, 185, 129, 0.2);
}

.dark .theme-alert-danger {
  background-color: rgba(239, 68, 68, 0.2);
}

.dark .theme-alert-warning {
  background-color: rgba(245, 158, 11, 0.24);
}

.dark .theme-alert-info {
  background-color: rgba(59, 130, 246, 0.2);
}

/* =============================================================================
   SMART JOB MODERN COMPONENT LAYER
   Keeps the existing brand palette while simplifying cards and action hierarchy.
   ============================================================================= */

.theme-btn {
  min-height: 2.75rem;
  padding: 0.65rem 1rem;
  border-radius: 0.75rem;
  font-size: 0.875rem;
  font-weight: 650;
  letter-spacing: 0;
  line-height: 1.2;
  text-transform: none;
  white-space: nowrap;
}

.theme-btn svg {
  width: 1rem;
  height: 1rem;
  flex: 0 0 auto;
}

.theme-btn-primary {
  box-shadow: 0 6px 16px rgba(79, 70, 229, 0.22);
}

.theme-btn-secondary {
  background: var(--color-neutral-white);
  color: var(--color-neutral-gray-700);
  border: 1px solid var(--color-neutral-gray-300);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.theme-btn-secondary:hover {
  background: var(--color-neutral-gray-50);
  border-color: rgba(79, 70, 229, 0.35);
  color: var(--ov-primary);
}

.theme-btn-tertiary {
  background: transparent;
  color: var(--ov-primary);
  box-shadow: none;
}

.theme-btn-tertiary:hover {
  background: rgba(79, 70, 229, 0.08);
}

.theme-btn-danger-soft {
  background: transparent;
  color: var(--color-danger);
  border: 1px solid rgba(239, 68, 68, 0.3);
  box-shadow: none;
}

.theme-btn-danger-soft:hover {
  background: rgba(239, 68, 68, 0.08);
  border-color: var(--color-danger);
}

.theme-icon-btn {
  width: 2.75rem;
  min-width: 2.75rem;
  padding: 0;
}

.theme-card.theme-card-panel,
.theme-content > .theme-card:not(.theme-card-stat):not(.theme-card-panel),
.dashboard-main-grid > div > .theme-card:not(.theme-card-stat):not(.theme-card-panel) {
  border-radius: 1rem;
  border: 1px solid rgba(15, 23, 42, 0.09);
  background: var(--color-neutral-white);
  box-shadow: 0 4px 18px rgba(15, 23, 42, 0.06);
  padding: 0;
  overflow: hidden;
}

.theme-card.theme-card-panel::before,
.theme-content > .theme-card:not(.theme-card-stat):not(.theme-card-panel)::before,
.dashboard-main-grid > div > .theme-card:not(.theme-card-stat):not(.theme-card-panel)::before {
  display: none;
}

.theme-card.theme-card-panel:hover,
.theme-content > .theme-card:not(.theme-card-stat):not(.theme-card-panel):hover,
.dashboard-main-grid > div > .theme-card:not(.theme-card-stat):not(.theme-card-panel):hover {
  transform: none;
  box-shadow: 0 8px 28px rgba(15, 23, 42, 0.09);
}

.theme-card-panel > .theme-card-header {
  margin: 0;
  padding: 1rem 1.15rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.theme-card-panel > .theme-card-panel-body {
  padding: 1.15rem;
}

.theme-page-intro {
  margin: -0.2rem 0 1.25rem;
  color: var(--ov-ink-muted);
  font-size: 0.925rem;
  line-height: 1.55;
}

.theme-page-header {
  margin-bottom: 1.25rem;
}

.theme-page-header--actions {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.theme-page-title {
  margin: 0 0 0.35rem;
  color: var(--ov-ink);
  font-size: 1.55rem;
  font-weight: 700;
  line-height: 1.2;
}

.theme-text-muted {
  color: var(--ov-ink-muted);
}

.theme-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}

.theme-btn-sm {
  padding: 0.35rem 0.7rem;
  font-size: 0.8rem;
  min-height: 2rem;
}

.theme-action-bar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 0.625rem;
}

.theme-card-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding-top: 0.9rem;
  margin-top: 0.9rem;
  border-top: 1px solid var(--color-neutral-gray-200);
}

.theme-status-chip,
.theme-meta-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  min-height: 1.65rem;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 650;
  line-height: 1.1;
  white-space: nowrap;
}

.theme-status-chip {
  color: var(--ov-primary-deep);
  background: rgba(79, 70, 229, 0.1);
}

.theme-status-chip--success {
  color: #047857;
  background: rgba(16, 185, 129, 0.12);
}

.theme-status-chip--warning {
  color: #92400e;
  background: rgba(245, 158, 11, 0.15);
}

.theme-status-chip--danger {
  color: #b91c1c;
  background: rgba(239, 68, 68, 0.12);
}

.theme-meta-chip {
  color: var(--color-neutral-gray-600);
  background: var(--color-neutral-gray-100);
  font-weight: 550;
}

.theme-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0.6rem 0;
}

.theme-dashboard-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 1.25rem;
  padding: 1.5rem;
  margin-bottom: 1rem;
  border-radius: 1.125rem;
  color: #fff;
  background: var(--brand-gradient);
  box-shadow: 0 12px 30px rgba(79, 70, 229, 0.2);
  overflow: hidden;
  position: relative;
}

.theme-dashboard-hero::after {
  content: "";
  position: absolute;
  width: 13rem;
  height: 13rem;
  right: -5rem;
  top: -7rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.09);
}

.theme-dashboard-hero__content,
.theme-dashboard-hero__action {
  position: relative;
  z-index: 1;
}

.theme-dashboard-hero h2 {
  margin: 0 0 0.35rem;
  color: #fff;
  font-size: clamp(1.3rem, 3vw, 1.75rem);
}

.theme-dashboard-hero p {
  margin: 0;
  color: rgba(255, 255, 255, 0.84);
  line-height: 1.5;
}

.theme-dashboard-hero .theme-btn {
  background: #fff;
  color: var(--ov-primary-deep);
  box-shadow: 0 8px 20px rgba(49, 46, 129, 0.2);
}

.theme-dashboard-hero .theme-btn:hover {
  filter: none;
  color: var(--ov-primary);
  background: #f8fafc;
}

.theme-stat-grid-modern {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.theme-stat-modern {
  padding: 1rem;
  border-radius: 1rem;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: #fff;
  box-shadow: 0 3px 14px rgba(15, 23, 42, 0.05);
}

.theme-stat-modern__value {
  display: block;
  color: var(--ov-ink);
  font-size: 1.55rem;
  font-weight: 750;
  line-height: 1.15;
}

.theme-stat-modern__label {
  display: block;
  margin-top: 0.25rem;
  color: var(--ov-ink-muted);
  font-size: 0.8rem;
  line-height: 1.3;
}

.theme-mobile-card-list {
  display: grid;
  gap: 0.75rem;
}

.theme-list-card {
  display: block;
  padding: 1rem;
  border: 1px solid rgba(15, 23, 42, 0.09);
  border-radius: 0.9rem;
  background: #fff;
  color: inherit;
  text-decoration: none;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.04);
  transition: border-color var(--transition-fast) var(--transition-timing),
    box-shadow var(--transition-fast) var(--transition-timing);
}

.theme-list-card:hover {
  border-color: rgba(79, 70, 229, 0.3);
  box-shadow: 0 7px 20px rgba(15, 23, 42, 0.08);
}

.theme-list-card__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}

.theme-list-card__title {
  margin: 0;
  color: var(--ov-ink);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.35;
}

.theme-list-card__meta {
  margin: 0.45rem 0 0;
  color: var(--ov-ink-muted);
  font-size: 0.8rem;
  line-height: 1.5;
}

.theme-list-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding-top: 0.75rem;
  margin-top: 0.75rem;
  border-top: 1px solid var(--color-neutral-gray-200);
}

.theme-desktop-table {
  display: block;
}

.theme-mobile-cards {
  display: none;
}

.theme-empty-state {
  padding: 2.5rem 1rem;
  text-align: center;
  color: var(--ov-ink-muted);
}

.theme-empty-state svg {
  width: 2rem;
  height: 2rem;
  margin-bottom: 0.65rem;
  color: var(--ov-primary);
}

.theme-quote-card {
  padding: 1.1rem;
  margin-bottom: 0.75rem;
  border: 1px solid rgba(15, 23, 42, 0.09);
  border-radius: 1rem;
  background: #fff;
  box-shadow: 0 3px 14px rgba(15, 23, 42, 0.05);
}

.theme-quote-card__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}

.theme-quote-card__provider {
  color: var(--ov-ink);
  font-weight: 750;
  line-height: 1.35;
}

.theme-quote-card__price {
  color: var(--ov-primary);
  font-size: 1.25rem;
  font-weight: 750;
  white-space: nowrap;
}

.theme-quote-card__trust {
  margin: 0.45rem 0;
  color: var(--ov-ink-muted);
  font-size: 0.82rem;
  line-height: 1.5;
}

.theme-quote-card__message {
  margin: 0.85rem 0;
  color: var(--color-neutral-gray-700);
  line-height: 1.6;
}

.theme-inline-form {
  display: inline-flex;
  margin: 0;
}

.theme-sticky-primary-mobile {
  padding-top: 0.9rem;
  margin-top: 0.9rem;
  border-top: 1px solid var(--color-neutral-gray-200);
}

.theme-mobile-nav {
  align-items: flex-end;
  min-height: 4.25rem;
  padding:
    0.35rem
    max(0.5rem, env(safe-area-inset-right))
    calc(0.35rem + env(safe-area-inset-bottom))
    max(0.5rem, env(safe-area-inset-left));
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 -8px 24px rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(14px);
  z-index: 50;
}

.theme-mobile-nav a,
.theme-mobile-nav button {
  min-width: 3.75rem;
  min-height: 3.25rem;
  padding: 0.35rem 0.55rem;
  border-radius: 0.8rem;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
  color: var(--color-neutral-gray-500);
  text-decoration: none;
  font-size: 0.67rem;
  font-weight: 650;
}

.theme-mobile-nav button {
  color: var(--ov-ink-muted);
  border: 0;
  background: transparent;
  font-family: inherit;
}

.theme-mobile-nav a svg,
.theme-mobile-nav button svg {
  width: 1.25rem;
  height: 1.25rem;
}

.theme-mobile-nav a.active {
  color: var(--ov-primary);
  background: rgba(79, 70, 229, 0.09);
}

.theme-mobile-nav .theme-mobile-nav__primary {
  color: #fff;
  background: var(--brand-gradient);
  box-shadow: 0 7px 18px rgba(79, 70, 229, 0.3);
  transform: translateY(-0.35rem);
}

.theme-mobile-nav .theme-mobile-nav__primary.active {
  color: #fff;
  background: var(--brand-gradient);
}

@media (max-width: 768px) {
  .theme-dashboard-hero {
    grid-template-columns: 1fr;
    padding: 1.25rem;
  }

  .theme-dashboard-hero__action .theme-btn {
    width: 100%;
  }

  .theme-stat-grid-modern {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .theme-desktop-table {
    display: none;
  }

  .theme-mobile-cards {
    display: grid;
  }

  .theme-action-bar {
    align-items: stretch;
  }

  .theme-action-bar > .theme-btn,
  .theme-action-bar > form,
  .theme-card-actions > .theme-btn,
  .theme-card-actions > form {
    flex: 1 1 100%;
  }

  .theme-action-bar form .theme-btn,
  .theme-card-actions form .theme-btn {
    width: 100%;
  }

  .theme-primary-mobile {
    width: 100%;
  }

  .theme-sticky-primary-mobile {
    position: sticky;
    bottom: var(--mobile-nav-offset, calc(4.65rem + env(safe-area-inset-bottom)));
    z-index: 20;
    padding: 0.6rem;
    margin: 0.75rem -0.25rem;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 0.9rem;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 8px 26px rgba(15, 23, 42, 0.13);
    backdrop-filter: blur(12px);
  }

  .theme-sticky-primary-mobile .theme-btn {
    width: 100%;
  }

  .theme-quote-card__header {
    align-items: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  .theme-btn,
  .theme-list-card,
  .theme-card {
    transition: none !important;
  }

  .theme-btn:hover,
  .theme-mobile-nav .theme-mobile-nav__primary {
    transform: none;
  }
}

/* Filter bar & form UX */
.theme-filter-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 1rem 1.15rem;
  cursor: pointer;
  list-style: none;
}

.theme-filter-summary::-webkit-details-marker {
  display: none;
}

.theme-filter-summary > span:first-child {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.35rem 0.75rem;
}

.theme-filter-summary__chevron {
  font-size: 1.25rem;
  line-height: 1;
  transition: transform 0.2s ease;
}

details.theme-filter-bar[open] .theme-filter-summary__chevron {
  transform: rotate(180deg);
}

.theme-filter-summary:focus-visible {
  outline: 3px solid rgba(59, 130, 246, 0.35);
  outline-offset: -3px;
}

.theme-filter-content {
  border-top: 1px solid var(--color-neutral-gray-200);
}

.theme-filter-bar__row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 0.75rem;
  align-items: end;
}

.theme-filter-bar__search {
  grid-column: span 2;
}

.theme-filter-advanced {
  display: none;
}

.theme-filter-bar.is-expanded .theme-filter-advanced {
  display: block;
}

.theme-filter-bar__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.theme-filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
}

.theme-chip {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  background: rgba(59, 130, 246, 0.1);
  color: #1d4ed8;
  font-size: 0.85rem;
  text-decoration: none;
}

.theme-chip:focus-visible,
.theme-filter-bar .theme-form-input:focus-visible,
.theme-progressive-panel > summary:focus-visible {
  outline: 3px solid rgba(59, 130, 246, 0.35);
  outline-offset: 2px;
}

.theme-pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  justify-content: center;
  margin: 1rem 0;
}

.theme-kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.75rem;
}

.theme-kpi-value {
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.2;
}

.theme-form-sections {
  display: grid;
  gap: 1.25rem;
}

.theme-form-section {
  padding: 1rem 0;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.theme-form-section__title {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
}

.theme-sticky-form-actions {
  position: sticky;
  bottom: 0;
  z-index: 5;
  display: flex;
  gap: 0.5rem;
  padding: 0.85rem 0;
  background: linear-gradient(180deg, rgba(255,255,255,0), #fff 35%);
}

@media (max-width: 768px) {
  .has-mobile-bottom-nav .theme-sticky-form-actions {
    bottom: var(--mobile-nav-offset);
    z-index: 40;
    padding-bottom: calc(0.85rem + env(safe-area-inset-bottom, 0px));
  }

  .has-mobile-bottom-nav .theme-sticky-mobile-actions {
    bottom: calc(0.5rem + var(--mobile-nav-offset));
  }
}

.theme-progressive-panel {
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 0.75rem;
  padding: 0.85rem 1rem;
}

.theme-progressive-panel > summary {
  cursor: pointer;
  font-weight: 650;
  min-height: 44px;
  display: flex;
  align-items: center;
}

.theme-text-danger {
  color: #b91c1c;
  font-size: 0.85rem;
  margin-top: 0.35rem;
}

[aria-invalid="true"] {
  border-color: #dc2626 !important;
}

@media (max-width: 768px) {
  body.filter-sheet-open {
    overflow: hidden;
  }

  body.filter-sheet-open::before {
    content: "";
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
    z-index: 999;
  }

  .theme-filter-bar__search {
    grid-column: span 1;
  }

  .theme-filter-bar__actions {
    width: 100%;
  }

  .theme-filter-bar__actions .theme-btn {
    flex: 1 1 auto;
    min-height: 44px;
  }

  .theme-filter-bar.is-expanded {
    position: fixed;
    inset: auto 0 0 0;
    z-index: 1000;
    margin: 0 !important;
    border-radius: 1rem 1rem 0 0;
    max-height: 85vh;
    overflow: auto;
    box-shadow: 0 -12px 40px rgba(15, 23, 42, 0.18);
  }

  .theme-filter-bar.is-expanded .theme-card-panel-body {
    padding-bottom: max(1rem, env(safe-area-inset-bottom));
  }

  .theme-sticky-form-actions .theme-btn {
    min-height: 44px;
  }
}

/* =============================================================================
   REPORT CENTRE
   ============================================================================= */
.report-centre-hero {
  position: relative;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: 1.75rem;
  padding: 1.5rem 1.65rem;
  overflow: hidden;
  color: #fff;
  border-radius: 1.15rem;
  background:
    radial-gradient(circle at 88% 15%, rgba(255, 255, 255, 0.2), transparent 30%),
    linear-gradient(135deg, var(--ov-primary), #312e81);
  box-shadow: 0 14px 35px rgba(49, 46, 129, 0.2);
}

.report-centre-hero::after {
  content: "";
  position: absolute;
  right: -2.5rem;
  bottom: -4.5rem;
  width: 12rem;
  height: 12rem;
  border: 1.75rem solid rgba(255, 255, 255, 0.08);
  border-radius: 50%;
}

.report-centre-hero__icon {
  position: relative;
  z-index: 1;
  display: grid;
  flex: 0 0 4rem;
  width: 4rem;
  height: 4rem;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(8px);
}

.report-centre-hero__icon svg {
  width: 1.8rem;
  height: 1.8rem;
}

.report-centre-hero > div:last-child {
  position: relative;
  z-index: 1;
}

.report-centre-hero .theme-page-title {
  margin: 0.2rem 0 0.35rem;
  color: #fff;
}

.report-centre-hero p {
  max-width: 46rem;
  margin: 0;
  color: rgba(255, 255, 255, 0.84);
  line-height: 1.55;
}

.report-eyebrow {
  display: block;
  color: var(--ov-primary);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.report-centre-hero .report-eyebrow {
  color: rgba(255, 255, 255, 0.72);
}

.report-section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.report-section-heading h2,
.report-section-heading p {
  margin: 0;
}

.report-section-heading h2 {
  color: var(--ov-ink);
  font-size: 1.15rem;
}

.report-section-heading p {
  margin-top: 0.25rem;
  color: var(--ov-ink-muted);
  font-size: 0.875rem;
}

.report-count {
  display: inline-flex;
  align-items: center;
  min-height: 1.8rem;
  padding: 0.25rem 0.7rem;
  color: var(--ov-primary);
  border: 1px solid rgba(79, 70, 229, 0.16);
  border-radius: 999px;
  background: rgba(79, 70, 229, 0.06);
  font-size: 0.75rem;
  font-weight: 700;
  white-space: nowrap;
}

.report-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
}

.report-card {
  display: flex;
  min-height: 13.5rem;
  padding: 1.25rem;
  flex-direction: column;
  color: inherit;
  border: 1px solid rgba(15, 23, 42, 0.09);
  border-radius: 1rem;
  background: var(--color-neutral-white);
  box-shadow: 0 4px 18px rgba(15, 23, 42, 0.05);
  text-decoration: none;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.report-card:hover {
  color: inherit;
  border-color: rgba(79, 70, 229, 0.3);
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.1);
  transform: translateY(-3px);
}

.report-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.report-card__icon {
  display: grid;
  width: 2.75rem;
  height: 2.75rem;
  place-items: center;
  color: var(--ov-primary);
  border-radius: 0.8rem;
  background: rgba(79, 70, 229, 0.09);
}

.report-card__icon svg {
  width: 1.25rem;
  height: 1.25rem;
}

.report-card__arrow {
  color: var(--ov-ink-muted);
  opacity: 0.55;
  transition: color 180ms ease, opacity 180ms ease, transform 180ms ease;
}

.report-card:hover .report-card__arrow {
  color: var(--ov-primary);
  opacity: 1;
  transform: translate(2px, -2px);
}

.report-card h2 {
  margin: 0 0 0.45rem;
  color: var(--ov-ink);
  font-size: 1rem;
}

.report-card p {
  margin: 0 0 1rem;
  color: var(--ov-ink-muted);
  font-size: 0.85rem;
  line-height: 1.55;
}

.report-card__link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: auto;
  color: var(--ov-primary);
  font-size: 0.8rem;
  font-weight: 700;
}

.report-card__link svg {
  width: 0.95rem;
  height: 0.95rem;
}

.report-detail-header {
  margin-bottom: 1.25rem;
  padding-bottom: 1.1rem;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.report-back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-bottom: 0.8rem;
  color: var(--ov-ink-muted);
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
}

.report-back-link:hover {
  color: var(--ov-primary);
}

.report-back-link svg {
  width: 1rem;
  height: 1rem;
}

.report-detail-header .report-eyebrow {
  margin-bottom: 0.2rem;
}

.report-detail-header .theme-page-intro {
  max-width: 48rem;
  margin-bottom: 0;
}

.report-export-actions .theme-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.report-export-actions .theme-btn svg {
  width: 1rem;
  height: 1rem;
}

.report-filter-panel,
.report-kpi-grid,
.report-summary-grid,
.report-data-card {
  margin-bottom: 1rem;
}

.report-filter-summary__label {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.report-filter-summary__label > span:last-child {
  display: grid;
  gap: 0.15rem;
}

.report-filter-summary__icon {
  display: grid;
  width: 2.25rem;
  height: 2.25rem;
  place-items: center;
  color: var(--ov-primary);
  border-radius: 0.65rem;
  background: rgba(79, 70, 229, 0.08);
}

.report-filter-summary__icon svg {
  width: 1rem;
  height: 1rem;
}

.report-kpi-grid {
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 1rem;
}

.report-kpi-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 0.95rem;
  background: var(--color-neutral-white);
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.05);
}

.report-kpi-card__accent {
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: linear-gradient(180deg, var(--ov-primary), #818cf8);
}

.report-kpi-card__body {
  padding: 1.1rem 1.15rem 1.1rem 1.3rem;
}

.report-kpi-card__label {
  margin-bottom: 0.35rem;
  color: var(--ov-ink-muted);
  font-size: 0.75rem;
  font-weight: 650;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.report-kpi-card .theme-kpi-value {
  color: var(--ov-ink);
  font-size: 1.65rem;
}

.report-kpi-card__hint {
  margin-top: 0.35rem;
  color: var(--ov-ink-muted);
  font-size: 0.76rem;
  line-height: 1.4;
}

.report-summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
}

.report-data-card > .theme-card-header h2 {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
  color: var(--ov-ink);
  font-size: 1rem;
}

.report-data-card > .theme-card-header h2 svg {
  width: 1.1rem;
  height: 1.1rem;
  color: var(--ov-primary);
}

.report-data-card > .theme-card-header > div > .theme-text-muted {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.76rem;
}

.report-chart-wrap {
  margin-bottom: 1.25rem;
  padding: 0.75rem;
  border: 1px solid rgba(15, 23, 42, 0.06);
  border-radius: 0.8rem;
  background: linear-gradient(180deg, rgba(248, 250, 252, 0.7), #fff);
  /* Never let the canvas push the page wider than its container. */
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
}

.report-chart-wrap canvas {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  max-height: 380px;
}

/* Cards and grids on report pages must shrink inside flex/grid parents
   instead of forcing horizontal page growth. */
.report-data-card,
.report-chart-card {
  min-width: 0;
  max-width: 100%;
}

.report-table-wrap {
  overflow-x: auto;
}

.report-data-card .theme-table th {
  font-size: 0.7rem;
}

.report-data-card .theme-table td {
  font-size: 0.84rem;
}

.report-empty-state {
  padding: 3rem 1rem !important;
  text-align: center !important;
}

.report-empty-state svg {
  display: block;
  width: 2rem;
  height: 2rem;
  margin: 0 auto 0.65rem;
  color: var(--ov-ink-muted);
  opacity: 0.65;
}

.report-empty-state strong,
.report-empty-state span {
  display: block;
}

.report-empty-state span {
  margin-top: 0.25rem;
  color: var(--ov-ink-muted);
  font-size: 0.8rem;
}

.report-metric-value {
  text-align: right !important;
  font-weight: 650;
}

/* Private messaging */
.message-inbox-hero {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
  padding: 1.25rem 1.4rem;
  color: #fff;
  border-radius: 1rem;
  background:
    radial-gradient(circle at 92% 10%, rgba(255, 255, 255, 0.18), transparent 34%),
    var(--brand-gradient-cyan);
  box-shadow: 0 12px 30px rgba(79, 70, 229, 0.18);
}

.message-inbox-hero__icon {
  display: grid;
  flex: 0 0 3.25rem;
  width: 3.25rem;
  height: 3.25rem;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.15);
}

.message-inbox-hero h1,
.message-inbox-hero p {
  margin: 0;
  color: #fff;
}

.message-inbox-hero p {
  margin-top: 0.25rem;
  opacity: 0.88;
}

.conversation-list {
  display: grid;
  gap: 0.65rem;
}

.conversation-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.9rem;
  padding: 1rem;
  color: inherit;
  border: 1px solid var(--color-neutral-gray-200);
  border-radius: 1rem;
  background: #fff;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.05);
  text-decoration: none;
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.conversation-card:hover {
  color: inherit;
  border-color: rgba(79, 70, 229, 0.35);
  box-shadow: 0 10px 25px rgba(79, 70, 229, 0.1);
  transform: translateY(-1px);
}

.conversation-card.has-unread {
  border-left: 4px solid var(--ov-accent);
  background: linear-gradient(90deg, rgba(6, 182, 212, 0.055), #fff 24%);
}

.conversation-avatar {
  display: grid;
  flex: 0 0 2.75rem;
  width: 2.75rem;
  height: 2.75rem;
  place-items: center;
  color: #fff;
  border-radius: 50%;
  background: var(--brand-gradient);
  font-size: 1rem;
  font-weight: 750;
}

.conversation-card__content {
  display: block;
  min-width: 0;
}

.conversation-card__top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
}

.conversation-card__top strong {
  overflow: hidden;
  color: var(--ov-ink);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.conversation-card__top time {
  flex: 0 0 auto;
  color: var(--ov-ink-muted);
  font-size: 0.72rem;
}

.conversation-card__job,
.conversation-card__preview {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.conversation-card__job {
  margin-top: 0.15rem;
  color: var(--ov-primary);
  font-size: 0.78rem;
  font-weight: 650;
}

.conversation-card__preview {
  margin-top: 0.25rem;
  color: var(--ov-ink-muted);
  font-size: 0.82rem;
}

.conversation-card__meta {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.conversation-card__meta svg {
  width: 1rem;
  color: var(--ov-ink-muted);
}

.conversation-unread,
.nav-unread-badge,
.mobile-unread-badge {
  display: inline-grid;
  place-items: center;
  min-width: 1.3rem;
  height: 1.3rem;
  padding: 0 0.3rem;
  color: #fff;
  border-radius: 999px;
  background: var(--color-danger);
  font-size: 0.65rem;
  font-weight: 750;
  line-height: 1;
}

.nav-unread-badge {
  margin-left: auto;
}

.theme-mobile-nav > a {
  position: relative;
}

.mobile-unread-badge {
  position: absolute;
  top: 0.2rem;
  right: calc(50% - 1.25rem);
  min-width: 1rem;
  height: 1rem;
  padding: 0 0.2rem;
  border: 2px solid #fff;
  font-size: 0.55rem;
}

.message-empty-state h2 {
  margin: 0.4rem 0 0.2rem;
  color: var(--ov-ink);
  font-size: 1.1rem;
}

.chat-shell {
  display: flex;
  height: min(48rem, calc(100dvh - 10rem));
  min-height: 34rem;
  overflow: hidden;
  border: 1px solid var(--color-neutral-gray-200);
  border-radius: 1rem;
  background: #f7f8fc;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
  flex-direction: column;
}

.chat-header {
  display: grid;
  z-index: 2;
  grid-template-columns: auto auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--color-neutral-gray-200);
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 3px 14px rgba(15, 23, 42, 0.05);
}

.chat-back {
  display: grid;
  width: 2.25rem;
  height: 2.25rem;
  place-items: center;
  color: var(--ov-ink);
  border-radius: 0.7rem;
  background: var(--color-neutral-gray-100);
}

.chat-back svg {
  width: 1rem;
}

.chat-header__avatar {
  width: 2.5rem;
  height: 2.5rem;
  flex-basis: 2.5rem;
}

.chat-header__identity {
  min-width: 0;
}

.chat-header__identity strong,
.chat-header__identity a {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chat-header__identity strong {
  color: var(--ov-ink);
  font-size: 0.95rem;
}

.chat-header__identity a {
  margin-top: 0.1rem;
  color: var(--ov-primary);
  font-size: 0.75rem;
}

.chat-header__meta {
  display: flex;
  align-items: flex-end;
  gap: 0.25rem;
  color: var(--ov-ink-muted);
  font-size: 0.7rem;
  flex-direction: column;
}

.chat-safety-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.45rem 0.75rem;
  color: #0f766e;
  border-bottom: 1px solid #ccfbf1;
  background: #f0fdfa;
  font-size: 0.72rem;
}

.chat-safety-note svg {
  width: 0.85rem;
  height: 0.85rem;
}

.chat-message-list {
  flex: 1 1 auto;
  min-height: 0;
  padding: 1rem clamp(0.75rem, 3vw, 2rem);
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scroll-behavior: smooth;
}

.chat-date-separator {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0.75rem 0 1rem;
  color: var(--ov-ink-muted);
  font-size: 0.68rem;
  font-weight: 650;
}

.chat-date-separator::before,
.chat-date-separator::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--color-neutral-gray-200);
}

.chat-date-separator span {
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.8);
}

.chat-message {
  display: flex;
  align-items: flex-end;
  gap: 0.45rem;
  margin: 0.35rem 0;
}

.chat-message.is-own {
  justify-content: flex-end;
}

.chat-message__avatar {
  display: grid;
  flex: 0 0 1.75rem;
  width: 1.75rem;
  height: 1.75rem;
  place-items: center;
  color: #fff;
  border-radius: 50%;
  background: var(--brand-gradient-soft);
  font-size: 0.65rem;
  font-weight: 750;
}

.chat-bubble {
  max-width: min(72%, 36rem);
  padding: 0.65rem 0.8rem 0.45rem;
  color: var(--ov-ink);
  border: 1px solid var(--color-neutral-gray-200);
  border-radius: 0.95rem 0.95rem 0.95rem 0.25rem;
  background: #fff;
  box-shadow: 0 3px 10px rgba(15, 23, 42, 0.05);
}

.chat-message.is-own .chat-bubble {
  color: #fff;
  border-color: transparent;
  border-radius: 0.95rem 0.95rem 0.25rem 0.95rem;
  background: var(--brand-gradient-cyan);
  box-shadow: 0 5px 14px rgba(79, 70, 229, 0.16);
}

.chat-message__sender {
  display: block;
  margin-bottom: 0.15rem;
  color: var(--ov-primary);
  font-size: 0.65rem;
  font-weight: 750;
}

.chat-message.is-own .chat-message__sender {
  color: rgba(255, 255, 255, 0.8);
}

.chat-bubble p {
  margin: 0;
  overflow-wrap: anywhere;
  font-size: 0.88rem;
  line-height: 1.48;
  white-space: pre-wrap;
}

.chat-message__time {
  display: block;
  margin-top: 0.2rem;
  color: var(--ov-ink-muted);
  font-size: 0.62rem;
  text-align: right;
}

.chat-message.is-own .chat-message__time {
  color: rgba(255, 255, 255, 0.76);
}

.chat-read-state {
  margin-left: 0.2rem;
  font-weight: 650;
}

.chat-empty {
  display: grid;
  min-height: 100%;
  place-content: center;
  justify-items: center;
  color: var(--ov-ink-muted);
  text-align: center;
}

.chat-empty svg {
  width: 2.5rem;
  height: 2.5rem;
  margin-bottom: 0.5rem;
  color: var(--ov-accent);
}

.chat-empty strong {
  color: var(--ov-ink);
}

.chat-empty p {
  margin: 0.25rem 0 0;
  font-size: 0.82rem;
}

.chat-composer {
  z-index: 2;
  padding: 0.6rem 0.75rem 0.5rem;
  border-top: 1px solid var(--color-neutral-gray-200);
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 -4px 16px rgba(15, 23, 42, 0.05);
}

.chat-quick-replies {
  display: flex;
  gap: 0.4rem;
  padding-bottom: 0.5rem;
  overflow-x: auto;
  scrollbar-width: none;
}

.chat-quick-replies::-webkit-scrollbar {
  display: none;
}

.chat-quick-reply {
  flex: 0 0 auto;
  padding: 0.38rem 0.65rem;
  color: var(--ov-primary);
  border: 1px solid rgba(79, 70, 229, 0.2);
  border-radius: 999px;
  background: #f5f3ff;
  font: inherit;
  font-size: 0.72rem;
  font-weight: 600;
  cursor: pointer;
}

.chat-quick-reply:hover {
  border-color: var(--ov-primary);
  background: #ede9fe;
}

.chat-composer__form {
  display: flex;
  align-items: flex-end;
  gap: 0.55rem;
}

.chat-composer__input-wrap {
  position: relative;
  flex: 1 1 auto;
  min-width: 0;
}

.chat-composer__input {
  min-height: 2.75rem;
  max-height: 8.75rem;
  padding: 0.7rem 3.5rem 0.7rem 0.8rem;
  overflow-y: auto;
  resize: none;
}

.chat-character-count {
  position: absolute;
  right: 0.65rem;
  bottom: 0.45rem;
  color: var(--ov-ink-muted);
  font-size: 0.58rem;
  pointer-events: none;
}

.chat-send-button {
  display: inline-flex;
  flex: 0 0 auto;
  min-height: 2.75rem;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.65rem 1rem;
  color: #fff;
  border: 0;
  border-radius: 0.8rem;
  background: var(--brand-gradient-cyan);
  box-shadow: 0 6px 16px rgba(6, 182, 212, 0.2);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
}

.chat-send-button:disabled {
  opacity: 0.48;
  box-shadow: none;
  cursor: not-allowed;
}

.chat-send-button svg {
  width: 0.95rem;
  height: 0.95rem;
}

.chat-composer__hint {
  margin: 0.3rem 0 0;
  color: var(--ov-ink-muted);
  font-size: 0.62rem;
  text-align: center;
}

/* Native Android capabilities */
.biometric-login-panel {
  margin-top: 1rem;
}

.biometric-login-divider {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0.85rem 0;
  color: var(--ov-ink-muted);
  font-size: 0.75rem;
  text-transform: uppercase;
}

.biometric-login-divider::before,
.biometric-login-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--color-neutral-gray-200);
}

.biometric-login-button {
  width: 100%;
  color: #fff;
  border: 0;
  background: var(--brand-gradient-cyan);
  box-shadow: 0 8px 20px rgba(6, 182, 212, 0.22);
}

.biometric-login-button svg {
  width: 1rem;
  height: 1rem;
}

.biometric-login-panel p {
  margin: 0.5rem 0 0;
  text-align: center;
  font-size: 0.76rem;
}

.biometric-settings-card {
  margin-bottom: 1rem;
  border-color: rgba(6, 182, 212, 0.22) !important;
}

.biometric-settings-card .theme-card-header h2 {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.biometric-settings-card .theme-card-header svg {
  width: 1.1rem;
  height: 1.1rem;
  color: var(--ov-accent);
}

.biometric-settings-actions {
  justify-content: flex-start;
}

.biometric-settings-status {
  min-height: 1.25rem;
  margin: 0.65rem 0 0;
  color: var(--ov-ink-muted);
  font-size: 0.8rem;
}

.places-dropdown {
  position: absolute;
  z-index: 50;
  width: 100%;
  max-height: 220px;
  overflow: auto;
  background: #fff;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.theme-place-option {
  display: block;
  width: 100%;
  min-height: 44px;
  padding: 0.65rem 0.75rem;
  border: none;
  border-radius: 0;
  background: #fff;
  color: var(--ov-ink, #0f172a);
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.theme-place-option:hover,
.theme-place-option:focus-visible {
  background: #f3f4f6;
  outline: none;
}

.simple-tip-card {
  margin: 0 0 1rem;
  padding: 0.95rem 1.05rem;
  border: 1px solid rgba(79, 70, 229, 0.18);
  border-radius: 0.9rem;
  background: linear-gradient(180deg, rgba(79, 70, 229, 0.06), rgba(6, 182, 212, 0.05));
  color: var(--ov-ink);
}

.simple-tip-card strong {
  display: block;
  margin-bottom: 0.45rem;
  font-size: 0.95rem;
}

.simple-tip-card ol,
.simple-tip-card ul {
  margin: 0;
  padding-left: 1.2rem;
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--ov-ink-muted);
}

.simple-tip-card p {
  margin: 0.55rem 0 0;
  font-size: 0.84rem;
  line-height: 1.45;
  color: var(--ov-ink-muted);
}

.device-location-card {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.1rem;
  border: 1px solid rgba(6, 182, 212, 0.25);
  border-radius: 1rem;
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.08), rgba(79, 70, 229, 0.06));
}

.device-location-card__icon {
  display: grid;
  flex: 0 0 2.75rem;
  width: 2.75rem;
  height: 2.75rem;
  place-items: center;
  color: #fff;
  border-radius: 0.8rem;
  background: var(--brand-gradient-cyan);
}

.device-location-card__icon svg {
  width: 1.25rem;
  height: 1.25rem;
}

.device-location-card__content {
  min-width: 0;
}

.device-location-card h2 {
  margin: 0 0 0.25rem;
  color: var(--ov-ink);
  font-size: 1rem;
}

.device-location-card p {
  margin: 0 0 0.75rem;
  color: var(--ov-ink-muted);
  font-size: 0.84rem;
  line-height: 1.5;
}

.device-location-status {
  min-height: 1.25rem;
  margin: 0.6rem 0 0 !important;
  font-weight: 600;
}

.location-confirm-card {
  padding: 1rem;
  border: 2px solid var(--ov-accent);
  border-radius: 1rem;
  background: #fff;
  box-shadow: 0 10px 28px rgba(6, 182, 212, 0.12);
}

.location-confirm-card.is-confirmed {
  border-color: var(--color-success);
  background: #f0fdf4;
}

.location-confirm-card__label {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--ov-primary);
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.location-confirm-card strong {
  display: block;
  color: var(--ov-ink);
  font-size: 1rem;
  line-height: 1.5;
}

.location-confirm-card p {
  margin: 0.45rem 0 0.8rem;
  color: var(--ov-ink-muted);
  font-size: 0.8rem;
}

.location-confirm-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.location-method-divider {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--ov-ink-muted);
  font-size: 0.72rem;
  font-weight: 650;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.location-method-divider::before,
.location-method-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--color-neutral-gray-200);
}

.install-guide-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 1rem;
}

.install-guide-card .theme-card-header h2,
.install-guide-troubleshooting .theme-card-header h2 {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0;
  font-size: 1rem;
}

.install-guide-step {
  display: grid;
  flex: 0 0 1.8rem;
  width: 1.8rem;
  height: 1.8rem;
  place-items: center;
  color: #fff;
  border-radius: 50%;
  background: var(--brand-gradient);
  font-size: 0.78rem;
}

.install-guide-list {
  margin: 0;
  padding-left: 1.25rem;
  color: var(--color-neutral-gray-700);
  font-size: 0.88rem;
  line-height: 1.65;
}

.install-guide-list li + li {
  margin-top: 0.45rem;
}

.install-guide-card .theme-alert {
  margin: 0.9rem 0 0;
}

.install-guide-faq {
  display: grid;
  grid-template-columns: minmax(10rem, 0.35fr) 1fr;
  gap: 0.7rem 1rem;
  margin: 0;
}

.install-guide-faq dt {
  color: var(--ov-ink);
  font-weight: 700;
}

.install-guide-faq dd {
  margin: 0;
  color: var(--ov-ink-muted);
}

@media (max-width: 768px) {
  .report-centre-hero {
    align-items: flex-start;
    padding: 1.2rem;
  }

  .report-centre-hero__icon {
    flex-basis: 3rem;
    width: 3rem;
    height: 3rem;
  }

  .report-section-heading {
    align-items: flex-start;
  }

  .report-card-grid {
    grid-template-columns: 1fr;
  }

  .report-card {
    min-height: 0;
  }

  .report-export-actions {
    width: 100%;
  }

  .report-export-actions .theme-btn {
    justify-content: center;
  }

  .report-summary-grid {
    grid-template-columns: 1fr;
  }

  .message-inbox-hero {
    align-items: flex-start;
    padding: 1rem;
  }

  .message-inbox-hero__icon {
    width: 2.6rem;
    height: 2.6rem;
    flex-basis: 2.6rem;
  }

  .conversation-card {
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 0.65rem;
    padding: 0.8rem;
  }

  .conversation-card__top time,
  .conversation-card__meta .theme-status-chip {
    display: none;
  }

  .conversation-card__meta {
    align-self: center;
  }

  .chat-shell {
    height: calc(100dvh - 8.75rem - env(safe-area-inset-bottom, 0px));
    min-height: 28rem;
    margin: -0.5rem;
    border-right: 0;
    border-left: 0;
    border-radius: 0;
  }

  .chat-header {
    grid-template-columns: auto auto minmax(0, 1fr);
    gap: 0.55rem;
    padding: 0.65rem 0.7rem;
  }

  .chat-header__meta {
    display: none;
  }

  .chat-safety-note {
    justify-content: flex-start;
    padding: 0.38rem 0.7rem;
    font-size: 0.65rem;
  }

  .chat-message-list {
    padding: 0.7rem 0.6rem;
  }

  .chat-bubble {
    max-width: 84%;
  }

  .chat-composer {
    padding-bottom: calc(0.45rem + env(safe-area-inset-bottom, 0px));
  }

  .chat-send-button {
    width: 2.75rem;
    padding: 0;
  }

  .chat-send-button span,
  .chat-composer__hint {
    display: none;
  }

  .device-location-card {
    flex-direction: column;
  }

  .device-location-card .theme-btn,
  .location-confirm-card__actions .theme-btn,
  .biometric-settings-actions .theme-btn {
    width: 100%;
    justify-content: center;
  }

  .install-guide-grid {
    grid-template-columns: 1fr;
  }

  .install-guide-faq {
    grid-template-columns: 1fr;
    gap: 0.2rem;
  }

  .install-guide-faq dd + dt {
    margin-top: 0.75rem;
  }
}

