﻿/* Drivers Hub — Vuetify-inspired Blue UI 2026 */

@import url('https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL,GRAD@24,400,0,0&display=swap');

/* Arabic — public/fonts/arabic */
@font-face {
  font-family: 'Hanimation Arabic';
  src: url('../fonts/arabic/ArbFONTS-Hanimation_Arabic_Light.otf') format('opentype');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Hanimation Arabic';
  src: url('../fonts/arabic/ArbFONTS-Hanimation_Arabic_Regular.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Hanimation Arabic';
  src: url('../fonts/arabic/ArbFONTS-Hanimation_Arabic_Medium.otf') format('opentype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Hanimation Arabic';
  src: url('../fonts/arabic/ArbFONTS-Hanimation_Arabic_SemiBold.otf') format('opentype');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Hanimation Arabic';
  src: url('../fonts/arabic/ArbFONTS-Hanimation_Arabic_Bold.otf') format('opentype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Hanimation Arabic';
  src: url('../fonts/arabic/ArbFONTS-Hanimation_Arabic_Bold.otf') format('opentype');
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

/* English — public/fonts/english */
@font-face {
  font-family: 'Nexa';
  src: url('../fonts/english/Nexa-ExtraLight.ttf') format('truetype');
  font-weight: 200;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Nexa';
  src: url('../fonts/english/Nexa-ExtraLight.ttf') format('truetype');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Nexa';
  src: url('../fonts/english/Nexa-ExtraLight.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Nexa';
  src: url('../fonts/english/Nexa-Heavy.ttf') format('truetype');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Nexa';
  src: url('../fonts/english/Nexa-Heavy.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Nexa';
  src: url('../fonts/english/Nexa-Heavy.ttf') format('truetype');
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Local Arabic: Hanimation — titles 600/700, body 400/500 */
  --font-heading: 'Hanimation Arabic', system-ui, sans-serif;
  --font-body: 'Hanimation Arabic', system-ui, sans-serif;
  --font-kpi: 'Nexa', 'Hanimation Arabic', system-ui, sans-serif;
  --font-ar: 'Hanimation Arabic', system-ui, sans-serif;
  --font-en: 'Nexa', 'Hanimation Arabic', system-ui, sans-serif;
  --font-sans: var(--font-body);
  --font-display: var(--font-heading);
  --font-admin: var(--font-body);

  /* Dashboard palette */
  --v-primary: #1473E6;
  --v-primary-darken: #0F5FC4;
  --v-primary-lighten: #3B8BF0;
  --v-primary-soft: #E8F1FF;
  --gradient-primary: #1473E6;
  --gradient-hero: linear-gradient(180deg, #F7F8FA 0%, #E9EDF3 100%);
  --gradient-sidebar: #ffffff;
  --gradient-sidebar-glow: none;
  --gradient-nav-active: #1473E6;
  --gradient-card: none;
  --sidebar-collapsed-width: 84px;

  --md-sys-color-primary: #1473E6;
  --md-sys-color-on-primary: #ffffff;
  --md-sys-color-primary-container: #E8F1FF;
  --md-sys-color-on-primary-container: #0F5FC4;
  --md-sys-color-secondary: #64748B;
  --md-sys-color-on-secondary: #ffffff;
  --md-sys-color-secondary-container: #F5F6F8;
  --md-sys-color-on-secondary-container: #121D2E;
  --md-sys-color-tertiary: #0284C7;
  --md-sys-color-on-tertiary: #ffffff;
  --md-sys-color-tertiary-container: #E3F5FA;
  --md-sys-color-on-tertiary-container: #0284C7;
  --md-sys-color-error: #DC2626;
  --md-sys-color-on-error: #ffffff;
  --md-sys-color-error-container: #FDE8E8;
  --md-sys-color-on-error-container: #DC2626;
  --md-sys-color-surface: #F3F5F8;
  --md-sys-color-on-surface: #121D2E;
  --md-sys-color-surface-dim: #E9EDF3;
  --md-sys-color-surface-bright: #F7F8FA;
  --md-sys-color-surface-container-lowest: #FFFFFF;
  --md-sys-color-surface-container-low: #F7F8FA;
  --md-sys-color-surface-container: #F3F5F8;
  --md-sys-color-surface-container-high: #E9EDF3;
  --md-sys-color-surface-container-highest: #E2E8F0;
  --md-sys-color-on-surface-variant: #4E5D73;
  --md-sys-color-outline: #7B8AA0;
  --md-sys-color-outline-variant: #E2E8F0;
  --input-border: #E2E8F0;
  --input-border-hover: #D5DFEC;
  --md-sys-color-inverse-surface: #192B43;
  --md-sys-color-inverse-on-surface: #FFFFFF;
  --md-sys-color-inverse-primary: #E8F1FF;

  --bg: var(--md-sys-color-surface);
  --bg-elevated: #FFFFFF;
  --bg-soft: #F7F8FA;
  /* Navy-black text tones */
  --text: #121D2E;
  --text-muted: #4E5D73;
  --text-faint: #7B8AA0;
  --border: #E2E8F0;
  --card-border: #E9EDF2;
  --card-border-hover: #D5DFEC;
  --table-header-bg: #F5F6F8;
  --dark-card-bg: #192B43;
  --dark-card-text: #FFFFFF;
  --dark-card-muted: #AAB8C9;
  --primary: var(--md-sys-color-primary);
  --primary-2: var(--v-primary-lighten);
  --primary-soft: var(--v-primary-soft);
  --success: #15803D;
  --success-soft: #E4F5EC;
  --warning: #EA580C;
  --warning-soft: #FFF0E5;
  --danger: #DC2626;
  --danger-soft: #FDE8E8;
  --info: #0284C7;
  --info-soft: #E3F5FA;
  --purple: #7C3AED;
  --purple-soft: #F0EBFF;
  --stat-blue-bg: #E8F1FF;
  --stat-blue: #1473E6;
  --stat-green-bg: #E4F5EC;
  --stat-green: #15803D;
  --stat-orange-bg: #FFF0E5;
  --stat-orange: #EA580C;
  --stat-red-bg: #FDE8E8;
  --stat-red: #DC2626;
  --stat-cyan-bg: #E3F5FA;
  --stat-cyan: #0284C7;
  --stat-purple-bg: #F0EBFF;
  --stat-purple: #7C3AED;

  --radius-xs: 10px;
  --radius-sm: 12px;
  --radius: 16px;
  --radius-lg: 20px;
  --radius-full: 999px;
  --sidebar-width: 280px;
  --topbar-height: 68px;

  --elev-1: 0 4px 18px rgba(21, 32, 51, 0.06);
  --elev-2: 0 8px 24px rgba(21, 32, 51, 0.10);
  --elev-3: 0 12px 32px rgba(21, 32, 51, 0.12);
  --shadow: var(--elev-1);

  --motion-fast: 120ms cubic-bezier(0.4, 0, 0.2, 1);
  --motion: 200ms cubic-bezier(0.4, 0, 0.2, 1);
  --motion-emphasized: 350ms cubic-bezier(0.4, 0, 0.2, 1);

  color-scheme: light;
}

/* Super-admin panel: teal accents on the same light shell */
.app-admin--super,
.app-shell--super {
  --v-primary: #0D9488;
  --v-primary-darken: #0F766E;
  --v-primary-lighten: #2DD4BF;
  --v-primary-soft: rgba(13, 148, 136, 0.12);
  --gradient-primary: #0D9488;
  --gradient-hero: none;
  --gradient-sidebar: #ffffff;
  --gradient-sidebar-glow: none;
  --gradient-nav-active: #0D9488;
  --gradient-card: none;

  --md-sys-color-primary: #0D9488;
  --md-sys-color-on-primary: #ffffff;
  --md-sys-color-primary-container: #F0FDFA;
  --md-sys-color-on-primary-container: #134E4A;
  --md-sys-color-inverse-primary: #5EEAD4;

  --primary: var(--md-sys-color-primary);
  --primary-2: var(--v-primary-lighten);
  --primary-soft: var(--v-primary-soft);
}

[data-theme="dark"] .app-admin--super,
[data-theme="dark"] .app-shell--super {
  --v-primary: #2DD4BF;
  --v-primary-darken: #14B8A6;
  --v-primary-lighten: #5EEAD4;
  --v-primary-soft: rgba(45, 212, 191, 0.16);
  --gradient-primary: #14B8A6;
  --gradient-hero: none;
  --gradient-sidebar: #242526;
  --gradient-sidebar-glow: none;
  --gradient-nav-active: #14B8A6;
  --gradient-card: none;

  --md-sys-color-primary: #2DD4BF;
  --md-sys-color-on-primary: #042F2E;
  --md-sys-color-primary-container: #0F766E;
  --md-sys-color-on-primary-container: #CCFBF1;
  --md-sys-color-inverse-primary: #0D9488;

  --primary: var(--md-sys-color-primary);
  --primary-2: var(--v-primary-lighten);
  --primary-soft: var(--v-primary-soft);
}

/* Dark mode — Facebook-like charcoal surfaces */
[data-theme="dark"] {
  --v-primary: #2D88FF;
  --v-primary-darken: #1B74E4;
  --v-primary-lighten: #4599FF;
  --v-primary-soft: rgba(45, 136, 255, 0.16);
  --gradient-primary: #2D88FF;
  --gradient-hero: none;
  --gradient-sidebar: #242526;
  --gradient-sidebar-glow: none;
  --gradient-nav-active: #2D88FF;
  --gradient-card: none;

  --md-sys-color-primary: #2D88FF;
  --md-sys-color-on-primary: #ffffff;
  --md-sys-color-primary-container: #1B74E4;
  --md-sys-color-on-primary-container: #E7F3FF;
  --md-sys-color-secondary: #B0B3B8;
  --md-sys-color-on-secondary: #18191A;
  --md-sys-color-secondary-container: #3A3B3C;
  --md-sys-color-on-secondary-container: #E4E6EB;
  --md-sys-color-tertiary: #B0B3B8;
  --md-sys-color-on-tertiary: #18191A;
  --md-sys-color-tertiary-container: #3A3B3C;
  --md-sys-color-on-tertiary-container: #E4E6EB;
  --md-sys-color-error: #F02849;
  --md-sys-color-on-error: #ffffff;
  --md-sys-color-error-container: #4A1520;
  --md-sys-color-on-error-container: #FFD2D8;
  /* FB surfaces */
  --md-sys-color-surface: #18191A;
  --md-sys-color-on-surface: #E4E6EB;
  --md-sys-color-surface-dim: #121314;
  --md-sys-color-surface-bright: #3A3B3C;
  --md-sys-color-surface-container-lowest: #242526;
  --md-sys-color-surface-container-low: #242526;
  --md-sys-color-surface-container: #3A3B3C;
  --md-sys-color-surface-container-high: #3A3B3C;
  --md-sys-color-surface-container-highest: #4E4F50;
  --md-sys-color-on-surface-variant: #B0B3B8;
  --md-sys-color-outline: #B0B3B8;
  --md-sys-color-outline-variant: #3E4042;
  --md-sys-color-inverse-surface: #E4E6EB;
  --md-sys-color-inverse-on-surface: #18191A;
  --md-sys-color-inverse-primary: #1B74E4;

  --bg: #18191A;
  --bg-elevated: #242526;
  --bg-soft: #242526;
  --text: #E4E6EB;
  --text-muted: #B0B3B8;
  --text-faint: #8A8D91;
  --border: #3E4042;
  --card-border: #3E4042;
  --card-border-hover: #4E4F50;
  --table-header-bg: #3A3B3C;
  --dark-card-bg: #3A3B3C;
  --dark-card-text: #E4E6EB;
  --dark-card-muted: #B0B3B8;

  --success: #31A24C;
  --success-soft: rgba(49, 162, 76, .18);
  --warning: #F7B928;
  --warning-soft: rgba(247, 185, 40, .18);
  --danger: #F02849;
  --danger-soft: rgba(240, 40, 73, .18);
  --info: #2D88FF;
  --info-soft: rgba(45, 136, 255, .18);
  --purple: #A78BFA;
  --purple-soft: rgba(167, 139, 250, .18);
  --stat-blue-bg: rgba(45, 136, 255, .16);
  --stat-blue: #2D88FF;
  --stat-green-bg: rgba(49, 162, 76, .16);
  --stat-green: #31A24C;
  --stat-orange-bg: rgba(247, 185, 40, .16);
  --stat-orange: #F7B928;
  --stat-red-bg: rgba(240, 40, 73, .16);
  --stat-red: #F02849;
  --stat-cyan-bg: rgba(45, 136, 255, .16);
  --stat-cyan: #4599FF;
  --stat-purple-bg: rgba(167, 139, 250, .16);
  --stat-purple: #A78BFA;

  --elev-1: none;
  --elev-2: none;
  --elev-3: none;
  --input-border: #3E4042;
  --input-border-hover: #4E4F50;

  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { min-height: 100%; }

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--md-sys-color-surface);
  background-image: var(--gradient-hero);
  background-attachment: fixed;
  color: var(--md-sys-color-on-surface);
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

.font-sans {
  font-family: var(--font-body);
}
.font-heading {
  font-family: var(--font-heading);
}
.font-kpi {
  font-family: var(--font-kpi);
}

.display {
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: 0;
}
html[dir="rtl"] .display {
  letter-spacing: 0;
}

body.app-admin,
.app-admin {
  font-family: var(--font-body);
  letter-spacing: 0;
}

html[dir="ltr"] {
  --font-heading: var(--font-en);
  --font-body: var(--font-en);
  --font-sans: var(--font-en);
  --font-admin: var(--font-en);
  --font-display: var(--font-en);
  --font-kpi: 'Nexa', system-ui, sans-serif;
}
html[dir="rtl"] {
  --font-heading: var(--font-ar);
  --font-body: var(--font-ar);
  --font-sans: var(--font-ar);
  --font-admin: var(--font-ar);
  --font-display: var(--font-ar);
  --font-kpi: 'Nexa', var(--font-ar), system-ui, sans-serif;
}

[data-theme="dark"] body {
  background: var(--md-sys-color-surface);
  background-image: none;
}

a { color: inherit; text-decoration: none; }

.material-symbols-outlined {
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
  font-size: 22px;
  line-height: 1;
  vertical-align: middle;
  user-select: none;
}
.material-symbols-outlined.filled {
  font-variation-settings: 'FILL' 1, 'wght' 500, 'GRAD' 0, 'opsz' 24;
}

.app-shell {
  display: flex;
  min-height: 100vh;
  background: transparent;
}

.sidebar {
  width: var(--sidebar-width);
  background: var(--md-sys-color-surface-container-lowest);
  color: var(--md-sys-color-on-surface);
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 14px 12px;
  display: flex;
  flex-direction: column;
  z-index: 40;
  border-inline-end: 1px solid var(--card-border);
  box-shadow: none;
  transition: width var(--motion-emphasized);
  overflow: hidden;
  flex-shrink: 0;
}
.sidebar::before { display: none; }
.sidebar > * {
  position: relative;
  z-index: 1;
}

[data-theme="dark"] .sidebar {
  background: #242526;
  color: #E4E6EB;
  border-inline-end: 1px solid #3E4042;
  box-shadow: none;
}

.app-shell.sidebar-collapsed .sidebar {
  width: var(--sidebar-collapsed-width);
  padding-inline: 10px;
}
.app-shell.sidebar-collapsed .brand {
  justify-content: center;
  padding-inline: 0;
}
.app-shell.sidebar-collapsed .brand-text,
.app-shell.sidebar-collapsed .nav-label {
  opacity: 0;
  width: 0;
  overflow: hidden;
  white-space: nowrap;
  pointer-events: none;
}
.app-shell.sidebar-collapsed .brand-tenant-logo,
.app-shell.sidebar-collapsed .brand-tenant-avatar {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  font-size: 1rem;
}
.app-shell.sidebar-collapsed .brand-tenant-name {
  display: none;
}
.app-shell.sidebar-collapsed .sidebar-footer {
  padding-inline: 0;
}
.app-shell.sidebar-collapsed .sidebar-platform .app-logo--sidebar {
  max-width: 52px;
  height: 44px;
  padding: 4px;
}
.app-shell.sidebar-collapsed .sidebar-platform .app-logo--sidebar img {
  max-width: 44px;
  height: 36px;
}
.app-shell.sidebar-collapsed .nav-section {
  display: none;
}
.app-shell.sidebar-collapsed .nav-link {
  justify-content: center;
  padding-inline: 0;
  gap: 0;
}
.app-shell.sidebar-collapsed .nav-group-items {
  display: none;
}
.app-shell.sidebar-collapsed .nav-group-chevron,
.app-shell.sidebar-collapsed .nav-group-toggle .nav-count {
  display: none;
}
.app-shell.sidebar-collapsed .brand-mark,
.app-shell.sidebar-collapsed .app-logo--sidebar {
  margin-inline: auto;
}
.app-shell.sidebar-collapsed .app-logo--sidebar {
  max-width: 52px;
  height: 44px;
  padding: 4px;
}
.app-shell.sidebar-collapsed .app-logo--sidebar img {
  max-width: 44px;
  height: 36px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 12px 16px;
  flex-shrink: 0;
  color: inherit;
  text-decoration: none;
}
.brand:hover {
  color: inherit;
}
.brand-tenant {
  flex-direction: column;
  justify-content: center;
  gap: 10px;
  padding-block: 14px 18px;
  text-align: center;
}
.brand-tenant-logo {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  object-fit: cover;
  background: var(--md-sys-color-surface-container-lowest);
  box-shadow: none;
  border: 1px solid var(--card-border);
}
.brand-tenant-avatar {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: color-mix(in srgb, var(--md-sys-color-primary) 12%, transparent);
  color: var(--md-sys-color-primary);
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: .02em;
  box-shadow: none;
  border: 1px solid var(--card-border);
}
.brand-tenant-name {
  display: block;
  max-width: 100%;
  padding-inline: 4px;
  font-family: var(--font-heading);
  color: var(--md-sys-color-on-surface);
  font-size: .9rem;
  font-weight: 600;
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.brand-text {
  min-width: 0;
  transition: opacity var(--motion);
}
.sidebar-footer {
  flex-shrink: 0;
  margin-top: auto;
  padding: 12px 8px 4px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: center;
}
.sidebar-platform {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  opacity: .96;
  transition: opacity var(--motion), transform var(--motion);
}
.sidebar-platform:hover {
  opacity: 1;
  transform: translateY(-1px);
}
.sidebar-platform .app-logo--sidebar {
  max-width: 150px;
  height: 42px;
  background: var(--md-sys-color-surface-container-lowest);
  box-shadow: none;
  border: 1px solid var(--card-border);
}
.sidebar-nav {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding-bottom: 12px;
  scrollbar-width: thin;
  scrollbar-color: rgba(15, 23, 42, .18) transparent;
}
.sidebar-nav::-webkit-scrollbar {
  width: 6px;
}
.sidebar-nav::-webkit-scrollbar-track {
  background: transparent;
  margin-block: 8px;
}
.sidebar-nav::-webkit-scrollbar-thumb {
  background: rgba(15, 23, 42, .14);
  border-radius: 999px;
  border: 1px solid transparent;
  background-clip: padding-box;
}
.sidebar-nav::-webkit-scrollbar-thumb:hover {
  background: rgba(15, 23, 42, .24);
  background-clip: padding-box;
}
.sidebar-nav::-webkit-scrollbar-corner {
  background: transparent;
}

.brand-mark {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: rgba(255,255,255,.18);
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  backdrop-filter: blur(8px);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.2);
  overflow: hidden;
  flex-shrink: 0;
}
.app-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  line-height: 0;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 18px rgba(2, 20, 48, .16);
}
.app-logo img {
  display: block;
  width: auto;
  height: 100%;
  object-fit: contain;
}
.app-logo--sidebar {
  width: auto;
  height: 44px;
  padding: 4px 6px;
  max-width: 148px;
}
.app-logo--sidebar img {
  height: 36px;
  max-width: 136px;
}
.app-logo--auth {
  width: auto;
  height: 64px;
  padding: 6px 10px;
  border-radius: 16px;
  max-width: 200px;
  box-shadow: 0 12px 28px rgba(21, 101, 192, 0.16);
}
.app-logo--auth img {
  height: 52px;
  max-width: 180px;
}

[data-theme="dark"] .brand-mark {
  background: rgba(144, 202, 249, 0.18);
  color: #E3F2FD;
  box-shadow: inset 0 0 0 1px rgba(144, 202, 249, 0.28);
}

.brand strong {
  display: block;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--md-sys-color-on-surface);
}
.brand span {
  display: block;
  font-size: .8rem;
  color: var(--md-sys-color-on-surface-variant);
  margin-top: 0;
  font-weight: 600;
}

.nav-section {
  margin: 14px 0 6px;
  padding: 0 14px;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-faint, #94A3B8);
}
.sidebar-nav > .nav-section:first-child {
  margin-top: 2px;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 12px;
  height: 42px;
  border-radius: 12px;
  color: #121D2E;
  margin-bottom: 2px;
  font-family: var(--font-ar);
  font-weight: 500;
  font-size: .9rem;
  letter-spacing: 0;
  transition: background var(--motion), color var(--motion), box-shadow var(--motion), transform var(--motion-fast);
  position: relative;
  overflow: hidden;
}

.nav-link:hover {
  background: #F3F5F8;
  color: #121D2E;
}

.nav-link.active {
  background: var(--md-sys-color-primary);
  color: #fff;
  font-weight: 600;
  box-shadow: none;
}

[data-theme="dark"] .nav-link {
  color: #E4E6EB;
}
[data-theme="dark"] .nav-link:hover {
  background: #3A3B3C;
  color: #E4E6EB;
}
[data-theme="dark"] .nav-link.active {
  background: var(--md-sys-color-primary);
  color: #fff;
  box-shadow: none;
}
[data-theme="dark"] .nav-section {
  color: #B0B3B8;
}

.nav-link.active .material-symbols-outlined {
  font-variation-settings: 'FILL' 1, 'wght' 500, 'GRAD' 0, 'opsz' 24;
}

.nav-link .material-symbols-outlined {
  width: 22px;
  font-size: 20px;
  text-align: center;
  flex-shrink: 0;
  color: inherit;
  opacity: .8;
}
.nav-link.active .material-symbols-outlined,
.nav-link:hover .material-symbols-outlined {
  opacity: 1;
}
.nav-label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: opacity var(--motion);
}
.nav-count {
  margin-inline-start: auto;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: #FEF3C7;
  color: #92400E;
  font-size: .65rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.nav-link.active .nav-count {
  background: rgba(255,255,255,.92);
  color: var(--md-sys-color-primary);
}
[data-theme="dark"] .nav-link.active .nav-count {
  background: rgba(255,255,255,.92);
  color: var(--md-sys-color-primary);
}

.nav-group {
  margin-bottom: 2px;
}
.nav-link.nav-group-toggle {
  width: 100%;
  border: 0;
  background: transparent;
  cursor: pointer;
  font: inherit;
  text-align: start;
  overflow: visible;
  gap: 8px;
}
.nav-group-main {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex: 1 1 auto;
}
.nav-group-toggle .nav-label {
  flex: 0 1 auto;
  min-width: 0;
}
.nav-group-toggle .nav-count {
  margin-inline-start: 0;
}
.nav-group-toggle .nav-group-chevron {
  margin-inline-start: 0;
  margin-inline-end: 0;
  width: 20px;
  font-size: 18px;
  opacity: .7;
  flex: 0 0 20px;
  transition: transform var(--motion), opacity var(--motion);
}
.nav-group.is-open > .nav-group-toggle .nav-group-chevron {
  transform: rotate(180deg);
}
.nav-group.is-active > .nav-group-toggle {
  background: color-mix(in srgb, var(--md-sys-color-primary) 10%, transparent);
  color: var(--md-sys-color-primary);
}
.nav-group-items {
  display: none;
  padding: 2px 0 4px;
  margin-inline-start: 12px;
  border-inline-start: 1px solid var(--border);
  padding-inline-start: 8px;
}
.nav-group.is-open > .nav-group-items {
  display: block;
}
.nav-group-items .nav-link {
  height: 38px;
  font-size: .82rem;
  padding-inline-start: 10px;
}
.nav-group-items .nav-link .material-symbols-outlined {
  font-size: 18px;
  width: 20px;
}

.main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  height: var(--topbar-height);
  min-height: var(--topbar-height);
  background: color-mix(in srgb, var(--md-sys-color-surface) 86%, transparent);
  backdrop-filter: blur(18px) saturate(1.1);
  -webkit-backdrop-filter: blur(18px) saturate(1.1);
  border-bottom: 1px solid var(--border);
  padding: 0 22px 0 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  overflow: visible;
}
[data-theme="dark"] .topbar {
  background: color-mix(in srgb, #242526 92%, transparent);
  border-bottom-color: var(--border);
  color: var(--md-sys-color-on-surface);
}
.topbar-start,
.topbar-end {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow: visible;
  position: relative;
  z-index: 1;
}
.sidebar-toggle {
  display: inline-grid;
  place-items: center;
}
.topbar-notif {
  position: relative;
  overflow: visible;
  z-index: 5;
  flex: 0 0 auto;
}
.topbar-notif-trigger {
  position: relative;
}
.topbar-notif-badge {
  position: absolute;
  top: 3px;
  inset-inline-end: 3px;
  z-index: 6;
  box-sizing: border-box;
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--md-sys-color-error);
  color: #fff;
  font-family: var(--font-body);
  font-size: .62rem;
  font-weight: 700;
  line-height: 17px;
  text-align: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  border: 2px solid var(--md-sys-color-surface-container-lowest);
  box-shadow: none;
  transform: none;
}
[data-theme="dark"] .topbar-notif-badge {
  border-color: #242526;
}
.topbar-notif-dropdown {
  position: absolute;
  inset-inline-end: 0;
  top: calc(100% + 8px);
  width: min(360px, calc(100vw - 24px));
  background: var(--md-sys-color-surface-container-lowest);
  border: 1px solid color-mix(in srgb, var(--md-sys-color-outline-variant) 70%, transparent);
  border-radius: 14px;
  box-shadow: var(--elev-3);
  padding: 8px;
  z-index: 55;
  animation: menuIn var(--motion-fast) both;
}
.topbar-notif-dropdown[hidden] {
  display: none !important;
}
.topbar-notif-dropdown__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 10px 10px;
}
.topbar-notif-dropdown__head strong {
  font-size: .95rem;
}
.topbar-notif-dropdown__count {
  min-width: 22px;
  height: 22px;
  padding: 0 7px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: color-mix(in srgb, var(--md-sys-color-primary) 14%, transparent);
  color: var(--md-sys-color-primary);
  font-size: .75rem;
  font-weight: 700;
}
.topbar-notif-list {
  display: grid;
  gap: 4px;
  max-height: min(420px, 55vh);
  overflow: auto;
}
.topbar-notif-item-form {
  margin: 0;
}
.topbar-notif-item {
  width: 100%;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 10px;
  align-items: start;
  text-align: start;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: inherit;
  padding: 10px;
  cursor: pointer;
  transition: background var(--motion-fast);
}
.topbar-notif-item:hover {
  background: color-mix(in srgb, var(--md-sys-color-primary) 8%, transparent);
}
.topbar-notif-item.is-unread {
  background: color-mix(in srgb, var(--md-sys-color-primary) 10%, transparent);
}
.topbar-notif-item__icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: color-mix(in srgb, var(--md-sys-color-primary) 12%, transparent);
  color: var(--md-sys-color-primary);
}
.topbar-notif-item--success .topbar-notif-item__icon {
  background: color-mix(in srgb, #16a34a 14%, transparent);
  color: #16a34a;
}
.topbar-notif-item--danger .topbar-notif-item__icon,
.topbar-notif-item--error .topbar-notif-item__icon {
  background: color-mix(in srgb, #dc2626 14%, transparent);
  color: #dc2626;
}
.topbar-notif-item--warning .topbar-notif-item__icon {
  background: color-mix(in srgb, #d97706 14%, transparent);
  color: #d97706;
}
.topbar-notif-item__icon .material-symbols-outlined {
  font-size: 18px;
}
.topbar-notif-item__body {
  min-width: 0;
  display: grid;
  gap: 2px;
}
.topbar-notif-item__title {
  font-weight: 700;
  font-size: .88rem;
  line-height: 1.35;
  color: var(--md-sys-color-on-surface);
}
.topbar-notif-item__text {
  font-size: .8rem;
  line-height: 1.4;
  color: var(--md-sys-color-on-surface-variant);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.topbar-notif-item__meta {
  font-size: .72rem;
  color: color-mix(in srgb, var(--md-sys-color-on-surface-variant) 88%, transparent);
}
.topbar-notif-item__dot {
  width: 8px;
  height: 8px;
  margin-top: 6px;
  border-radius: 999px;
  background: var(--md-sys-color-primary);
}
.topbar-notif-empty {
  display: grid;
  place-items: center;
  gap: 6px;
  padding: 22px 12px;
  color: var(--md-sys-color-on-surface-variant);
  text-align: center;
  font-size: .86rem;
}
.topbar-notif-empty .material-symbols-outlined {
  font-size: 28px;
  opacity: .8;
}
.topbar-notif-dropdown__footer {
  margin-top: 6px;
  padding-top: 6px;
  border-top: 1px solid color-mix(in srgb, var(--md-sys-color-outline-variant) 70%, transparent);
}
.topbar-notif-view-all {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 12px;
  border-radius: 10px;
  font-weight: 700;
  font-size: .9rem;
  color: var(--md-sys-color-primary);
  text-decoration: none;
}
.topbar-notif-view-all:hover {
  background: color-mix(in srgb, var(--md-sys-color-primary) 10%, transparent);
}
[dir="rtl"] .topbar-notif-view-all .material-symbols-outlined {
  transform: scaleX(-1);
}
[data-theme="dark"] .topbar-notif-dropdown {
  background: var(--md-sys-color-surface-container);
}

.subscription-alert {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0 20px 12px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid transparent;
  font-size: .9rem;
  font-weight: 600;
  line-height: 1.45;
}
.subscription-alert .material-symbols-outlined {
  font-size: 22px;
  flex-shrink: 0;
  margin-top: 1px;
}
.subscription-alert-copy {
  min-width: 0;
}
.subscription-alert.is-warning {
  background: color-mix(in srgb, #f59e0b 14%, #fff);
  border-color: color-mix(in srgb, #f59e0b 35%, transparent);
  color: #92400e;
}
.subscription-alert.is-warning .material-symbols-outlined {
  color: #d97706;
}
.subscription-alert.is-danger {
  background: color-mix(in srgb, #ef4444 12%, #fff);
  border-color: color-mix(in srgb, #ef4444 35%, transparent);
  color: #991b1b;
}
.subscription-alert.is-danger .material-symbols-outlined {
  color: #dc2626;
}
[data-theme="dark"] .subscription-alert.is-warning,
[data-theme="dark"] .subscription-alert.is-danger {
  background: color-mix(in srgb, #fff 5%, var(--md-sys-color-surface-container-high));
  color: var(--md-sys-color-on-surface);
}

.page-content {
  padding: 12px 28px 96px;
  /* Opacity-only: a lingering transform would trap position:fixed overlays. */
  animation: pageIn var(--motion-emphasized) both;
}

@keyframes pageIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
  padding: 4px 0 8px;
  border-radius: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.page-header-main,
.page-header > div:first-child {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  min-width: 0;
  flex: 1;
}

.page-header-icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  background: color-mix(in srgb, var(--md-sys-color-primary) 14%, transparent);
  color: var(--md-sys-color-primary);
}
.page-header-icon .material-symbols-outlined {
  font-size: 24px;
}

.page-header-copy {
  min-width: 0;
}

.page-header h1 {
  margin: 0;
  font-family: var(--font-heading);
  font-size: clamp(1.35rem, 1.1rem + .8vw, 1.7rem);
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.2;
  color: var(--md-sys-color-on-surface);
}

.page-header p {
  margin: 6px 0 0;
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--md-sys-color-on-surface-variant);
  font-size: .9rem;
  line-height: 1.45;
  max-width: 52ch;
}

.page-header-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  flex: 0 0 auto;
}

.quick-actions {
  position: fixed;
  inset-inline: 0;
  bottom: 18px;
  z-index: 45;
  display: flex;
  justify-content: center;
  pointer-events: none;
  padding: 0 16px;
}
.support-fab {
  position: fixed;
  inset-inline-end: 18px;
  bottom: 18px;
  z-index: 46;
  width: 52px;
  height: 52px;
  border-radius: 999px;
  display: inline-grid;
  place-items: center;
  text-decoration: none;
  color: #fff;
  background: #0f766e;
  box-shadow: 0 10px 24px color-mix(in srgb, #0f766e 35%, transparent);
  border: 1px solid color-mix(in srgb, #fff 18%, transparent);
  transition: transform var(--motion-fast), box-shadow var(--motion-fast), background var(--motion-fast);
}
.support-fab .material-symbols-outlined {
  font-size: 24px;
}
.support-fab:hover {
  transform: translateY(-2px);
  background: #0d9488;
}
.support-fab.is-active {
  background: #0d9488;
  box-shadow: 0 0 0 3px color-mix(in srgb, #0d9488 28%, transparent);
}
[data-theme="dark"] .support-fab {
  background: #14b8a6;
  color: #042f2e;
}
@media (max-width: 900px) {
  .support-fab {
    bottom: 84px;
  }
}
.quick-actions-inner {
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--md-sys-color-surface) 88%, transparent);
  border: 1px solid color-mix(in srgb, var(--md-sys-color-outline-variant) 75%, transparent);
  box-shadow: var(--elev-3);
  backdrop-filter: blur(16px) saturate(1.2);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
}
.quick-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 16px 0 12px;
  border: 0;
  border-radius: 999px;
  text-decoration: none;
  font-size: .9rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform var(--motion-fast), box-shadow var(--motion-fast), background var(--motion-fast);
}
.quick-action-icon {
  width: 30px;
  height: 30px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-size: 18px;
  background: rgba(255,255,255,.22);
}
.quick-action-driver {
  background: color-mix(in srgb, var(--md-sys-color-primary) 12%, transparent);
  color: var(--md-sys-color-primary);
}
.quick-action-report {
  background: var(--md-sys-color-primary);
  color: var(--md-sys-color-on-primary, #fff);
  box-shadow: 0 6px 16px color-mix(in srgb, var(--md-sys-color-primary) 35%, transparent);
}
.quick-action-payroll-import {
  background: color-mix(in srgb, #0f766e 14%, transparent);
  color: #0f766e;
}
.quick-action-payroll-export {
  background: color-mix(in srgb, #0369a1 14%, transparent);
  color: #0369a1;
}
[data-theme="dark"] .quick-action-payroll-import {
  background: color-mix(in srgb, #5eead4 16%, transparent);
  color: #5eead4;
}
[data-theme="dark"] .quick-action-payroll-export {
  background: color-mix(in srgb, #7dd3fc 16%, transparent);
  color: #7dd3fc;
}
.quick-action-btn:hover {
  transform: translateY(-1px);
}
.quick-action-btn:active {
  transform: translateY(0);
}

[data-theme="dark"] .quick-actions-inner {
  background: color-mix(in srgb, var(--md-sys-color-surface-container-high, #2b2930) 92%, transparent);
  box-shadow: var(--elev-3);
}
[data-theme="dark"] .page-header {
  background: transparent;
  box-shadow: none;
  border: 0;
}

/* Buttons */
.btn-primary,
.btn-soft,
.btn-danger,
.btn-outline,
.btn-tonal,
.btn-text,
.btn-success,
.btn-warning {
  border: 0;
  border-radius: var(--radius-full);
  padding: 10px 22px;
  min-height: 40px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: .875rem;
  letter-spacing: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: box-shadow var(--motion), background var(--motion), filter var(--motion), transform var(--motion-fast);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  text-decoration: none;
  line-height: 1.25;
}

.btn-primary {
  background: var(--md-sys-color-primary);
  color: var(--md-sys-color-on-primary);
  box-shadow: none;
}
.btn-primary:hover {
  background: var(--v-primary-darken);
  box-shadow: none;
  filter: none;
  color: var(--md-sys-color-on-primary);
}

.btn-soft,
.btn-tonal {
  background: var(--v-primary-soft);
  color: var(--md-sys-color-primary);
}
[data-theme="dark"] .btn-soft,
[data-theme="dark"] .btn-tonal {
  background: var(--v-primary-soft);
  color: var(--md-sys-color-primary);
}
.btn-soft:hover,
.btn-tonal:hover {
  box-shadow: var(--elev-1);
  color: var(--md-sys-color-primary);
}
[data-theme="dark"] .btn-soft:hover,
[data-theme="dark"] .btn-tonal:hover {
  color: var(--v-primary-lighten);
}

.btn-outline {
  background: transparent;
  color: var(--md-sys-color-primary);
  border: 1px solid color-mix(in srgb, var(--md-sys-color-primary) 45%, var(--md-sys-color-outline));
  padding: 9px 21px;
}
[data-theme="dark"] .btn-outline {
  color: var(--md-sys-color-primary);
  border-color: color-mix(in srgb, var(--md-sys-color-primary) 40%, var(--md-sys-color-outline-variant));
}
.btn-outline:hover {
  background: var(--v-primary-soft);
  color: var(--md-sys-color-primary);
}
[data-theme="dark"] .btn-outline:hover {
  background: var(--v-primary-soft);
  color: var(--v-primary-lighten);
}

.btn-danger {
  background: color-mix(in srgb, var(--danger) 14%, transparent);
  color: var(--danger);
}
.btn-success {
  background: color-mix(in srgb, var(--success) 14%, transparent);
  color: var(--success);
}
.btn-warning {
  background: color-mix(in srgb, var(--warning) 16%, transparent);
  color: var(--warning);
}

.btn-icon {
  width: 40px;
  height: 40px;
  min-height: 40px;
  padding: 0;
  border-radius: var(--radius-full);
  border: 0;
  background: transparent;
  color: var(--md-sys-color-on-surface-variant);
  display: inline-grid;
  place-items: center;
  cursor: pointer;
  transition: background var(--motion);
}
.btn-icon:hover {
  background: color-mix(in srgb, var(--md-sys-color-on-surface) 8%, transparent);
  color: var(--md-sys-color-on-surface);
}

/* Stats / dashboard */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}
.stat-grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.stat-grid-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.stat-grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.stat-grid-auto {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.target-cards {
  margin-top: 0;
}
.target-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 120px;
  padding: 14px 16px;
}
.target-card-head {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.target-card-head .stat-icon {
  position: static;
  inset: auto;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  flex-shrink: 0;
}
.target-card-head .stat-icon .material-symbols-outlined {
  font-size: 24px;
}
.target-card-head .label {
  margin: 0 0 2px;
  font-size: .95rem;
}
.target-card-value {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  max-width: 100%;
  font-family: var(--font-kpi);
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -.03em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.target-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
}
.target-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--md-sys-color-primary) 10%, transparent);
  color: var(--md-sys-color-on-surface);
  font-size: .78rem;
  font-weight: 600;
}
.target-chip .material-symbols-outlined {
  font-size: 16px;
  color: var(--md-sys-color-primary);
}
.target-chip.is-muted {
  background: color-mix(in srgb, var(--md-sys-color-on-surface) 6%, transparent);
  color: var(--md-sys-color-on-surface-variant);
}
.target-progress-bar {
  width: 100%;
  height: 8px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--md-sys-color-on-surface) 8%, transparent);
  overflow: hidden;
}
.target-progress-bar > span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--md-sys-color-primary);
}
.stat-card.stat-success .target-progress-bar > span {
  background: var(--success);
}
a.stat-card {
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}
.stat-card.is-selected {
    border-color: var(--md-sys-color-primary, #2563EB);
    box-shadow: 0 0 0 1px var(--md-sys-color-primary, #2563EB);
}
.stat-card.stat-warning .target-progress-bar > span {
  background: var(--warning);
}

.stat-card {
  --stat-accent: var(--stat-blue);
  --stat-accent-bg: var(--stat-blue-bg);
  background: var(--md-sys-color-surface-container-lowest);
  border: 1px solid var(--card-border);
  border-radius: 18px;
  padding: 16px 16px 14px;
  min-height: 96px;
  box-shadow: var(--elev-1);
  position: relative;
  overflow: hidden;
  transition: border-color var(--motion), box-shadow var(--motion), transform var(--motion);
}
.stat-card:hover {
  box-shadow: var(--elev-2);
  border-color: var(--card-border-hover);
  transform: none;
}
.stat-card::before,
.stat-card::after { display: none; }
.stat-card > * { position: relative; z-index: 1; }

.stat-card .label {
  font-family: var(--font-heading);
  color: var(--text-muted, #64748B);
  font-size: .78rem;
  font-weight: 600;
  margin-bottom: 10px;
  line-height: 1.35;
  padding-inline-end: 56px;
}
.stat-card .value {
  display: inline-flex;
  align-items: center;
  min-height: 2.1rem;
  font-family: var(--font-kpi);
  font-size: 2.05rem;
  font-weight: 700;
  letter-spacing: -.03em;
  line-height: 1;
  color: var(--text, #121D2E);
  font-variant-numeric: tabular-nums;
}
.stat-card .stat-icon {
  position: absolute;
  inset-inline-end: 14px;
  top: 14px;
  width: 48px;
  height: 48px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: var(--stat-accent-bg);
  color: var(--stat-accent);
  z-index: 1;
  box-shadow: none;
  border: 0;
}
.stat-card .stat-icon .material-symbols-outlined {
  font-size: 26px;
  font-variation-settings: 'FILL' 1, 'wght' 500, 'GRAD' 0, 'opsz' 24;
}
[data-theme="dark"] .stat-card {
  background: var(--md-sys-color-surface-container-lowest);
  box-shadow: none;
}
[data-theme="dark"] .stat-card:hover {
  box-shadow: none;
}
[data-theme="dark"] .stat-card .stat-icon {
  background: color-mix(in srgb, var(--stat-accent) 18%, transparent);
  color: var(--stat-accent);
}

.stat-card.stat-compact {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  column-gap: 12px;
  row-gap: 6px;
  padding: 12px 14px;
  min-height: 72px;
}
.stat-card.stat-compact .stat-leading {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  grid-column: 1;
}
.stat-card.stat-compact .stat-icon {
  position: static;
  inset: auto;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  flex-shrink: 0;
}
.stat-card.stat-compact .stat-icon .material-symbols-outlined {
  font-size: 24px;
}
.stat-card.stat-compact .stat-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.stat-card.stat-compact .label {
  margin: 0;
  padding-inline-end: 0;
  font-size: .82rem;
  white-space: normal;
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
}
.stat-card.stat-compact .value {
  font-family: var(--font-kpi);
  font-size: clamp(1.05rem, 1.45vw, 1.35rem);
  font-weight: 700;
  margin: 0;
  line-height: 1.1;
  flex-shrink: 0;
  min-height: 0;
  grid-column: 2;
  justify-self: end;
  text-align: end;
  max-width: 100%;
}
.stat-card.stat-compact > .form-hint,
.stat-card.stat-compact > .target-progress {
  grid-column: 1 / -1;
  margin: 0;
}
.stat-card.stat-compact .reports-details-source {
  display: none;
}

/* Semantic stats: palette icon backgrounds + accent text */
.stat-card.stat-primary,
.stat-card.stat-success,
.stat-card.stat-muted,
.stat-card.stat-warning,
.stat-card.stat-danger,
.stat-card.stat-info,
.stat-card.stat-purple {
  background: var(--md-sys-color-surface-container-lowest);
  border-color: var(--card-border);
}
[data-theme="dark"] .stat-card.stat-primary,
[data-theme="dark"] .stat-card.stat-success,
[data-theme="dark"] .stat-card.stat-muted,
[data-theme="dark"] .stat-card.stat-warning,
[data-theme="dark"] .stat-card.stat-danger,
[data-theme="dark"] .stat-card.stat-info,
[data-theme="dark"] .stat-card.stat-purple {
  background: var(--md-sys-color-surface-container-lowest);
}

.stat-card.stat-primary {
  --stat-accent: var(--stat-blue);
  --stat-accent-bg: var(--stat-blue-bg);
}
.stat-card.stat-success {
  --stat-accent: var(--stat-green);
  --stat-accent-bg: var(--stat-green-bg);
}
.stat-card.stat-muted {
  --stat-accent: var(--text-muted, #64748B);
  --stat-accent-bg: #F5F6F8;
}
.stat-card.stat-warning {
  --stat-accent: var(--stat-orange);
  --stat-accent-bg: var(--stat-orange-bg);
}
.stat-card.stat-danger {
  --stat-accent: var(--stat-red);
  --stat-accent-bg: var(--stat-red-bg);
}
.stat-card.stat-info {
  --stat-accent: var(--stat-cyan);
  --stat-accent-bg: var(--stat-cyan-bg);
}
.stat-card.stat-purple {
  --stat-accent: var(--stat-purple);
  --stat-accent-bg: var(--stat-purple-bg);
}

.stat-card.stat-primary .value,
.stat-card.stat-success .value,
.stat-card.stat-muted .value,
.stat-card.stat-warning .value,
.stat-card.stat-danger .value,
.stat-card.stat-info .value,
.stat-card.stat-purple .value,
.stat-card.stat-primary .target-card-value,
.stat-card.stat-success .target-card-value,
.stat-card.stat-muted .target-card-value,
.stat-card.stat-warning .target-card-value,
.stat-card.stat-danger .target-card-value,
.stat-card.stat-info .target-card-value,
.stat-card.stat-purple .target-card-value {
  color: var(--stat-accent);
  background: transparent;
  border-radius: 0;
  padding: 0;
  width: fit-content;
  max-width: 100%;
}

.stat-card.stat-compact.stat-primary .value,
.stat-card.stat-compact.stat-success .value,
.stat-card.stat-compact.stat-muted .value,
.stat-card.stat-compact.stat-warning .value,
.stat-card.stat-compact.stat-danger .value,
.stat-card.stat-compact.stat-info .value,
.stat-card.stat-compact.stat-purple .value {
  padding: 0;
  border-radius: 0;
}

.stat-card.stat-primary .stat-icon,
.stat-card.stat-success .stat-icon,
.stat-card.stat-muted .stat-icon,
.stat-card.stat-warning .stat-icon,
.stat-card.stat-danger .stat-icon,
.stat-card.stat-info .stat-icon,
.stat-card.stat-purple .stat-icon {
  background: var(--stat-accent-bg);
  color: var(--stat-accent);
  box-shadow: none;
  border: 0;
}

.stat-card.stat-dark,
.card-dark {
  background: var(--dark-card-bg, #192B43);
  border-color: transparent;
  color: var(--dark-card-text, #FFFFFF);
  box-shadow: var(--elev-1);
}
.stat-card.stat-dark .label,
.card-dark .label,
.card-dark p,
.card-dark small {
  color: var(--dark-card-muted, #AAB8C9);
}
.stat-card.stat-dark .value,
.card-dark .value,
.card-dark h1,
.card-dark h2,
.card-dark h3,
.card-dark strong {
  color: var(--dark-card-text, #FFFFFF);
}
.stat-card.stat-dark .stat-icon {
  background: rgba(255, 255, 255, .1);
  color: #FFFFFF;
  border: 0;
}
.stat-card.stat-dark:hover,
.card-dark:hover {
  border-color: transparent;
  box-shadow: var(--elev-2);
}

.dashboard-hero {
  border-radius: calc(var(--radius-lg) + 4px);
  padding: 24px 26px;
  margin-bottom: 20px;
  background: var(--md-sys-color-surface-container-lowest);
  color: var(--md-sys-color-on-surface);
  border: 1px solid var(--card-border);
  box-shadow: var(--elev-1);
  position: relative;
  overflow: hidden;
}
[data-theme="dark"] .dashboard-hero {
  background: var(--md-sys-color-surface-container-lowest);
  border-color: var(--md-sys-color-outline-variant);
  box-shadow: none;
}
.dashboard-hero::after { display: none; }
.dashboard-hero > * { position: relative; z-index: 1; }
.dashboard-hero h1 {
  margin: 0 0 6px;
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0;
  color: var(--md-sys-color-on-surface);
}
.dashboard-hero p {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--md-sys-color-on-surface-variant);
  max-width: 56ch;
}
.dashboard-shortcuts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}
.dashboard-shortcuts a {
  background: var(--md-sys-color-surface-container-lowest);
  color: var(--text);
  border: 1px solid var(--card-border);
  border-radius: 999px;
  padding: 8px 14px;
  font-weight: 600;
  font-size: .85rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: border-color var(--motion), color var(--motion), background var(--motion), transform var(--motion);
}
.dashboard-shortcuts a:hover {
  border-color: var(--card-border-hover);
  color: var(--md-sys-color-primary);
  background: var(--md-sys-color-surface-container-lowest);
  box-shadow: var(--elev-1);
  transform: none;
}
[data-theme="dark"] .dashboard-shortcuts a {
  background: var(--md-sys-color-surface-container);
  color: var(--md-sys-color-on-surface);
  border-color: var(--md-sys-color-outline-variant);
}
[data-theme="dark"] .dashboard-shortcuts a:hover {
  background: var(--md-sys-color-surface-container-high);
  color: var(--md-sys-color-primary);
  border-color: color-mix(in srgb, var(--md-sys-color-primary) 40%, var(--md-sys-color-outline-variant));
  transform: none;
}

.panel,
.form-card {
  background: var(--md-sys-color-surface-container-lowest);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--elev-1);
  overflow: hidden;
  transition: border-color var(--motion), box-shadow var(--motion);
}
.panel:hover,
.form-card:hover {
  border-color: var(--card-border-hover);
  box-shadow: var(--elev-2);
}
[data-theme="dark"] .panel:hover,
[data-theme="dark"] .form-card:hover {
  border-color: var(--card-border-hover);
  box-shadow: none;
}
.panel:has(> .table-responsive),
.panel:has(> .panel-body > .table-responsive),
.panel:has(> .table-pagination) {
  box-shadow: var(--elev-1);
}
.panel:has(> .table-responsive):hover,
.panel:has(> .panel-body > .table-responsive):hover,
.panel:has(> .table-pagination):hover {
  border-color: var(--card-border-hover, #D5DFEC);
  box-shadow: var(--elev-2);
}
[data-theme="dark"] .panel,
[data-theme="dark"] .form-card {
  background: var(--md-sys-color-surface-container-lowest);
  box-shadow: none;
}
[data-theme="dark"] .panel:hover,
[data-theme="dark"] .form-card:hover {
  box-shadow: none;
}
.form-card {
  padding: 28px;
  border-radius: var(--radius);
  overflow: visible;
}

.panel-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.panel-header strong {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1rem;
  color: var(--md-sys-color-on-surface);
}
.panel-header-link {
  color: inherit;
  text-decoration: none;
}
.panel-header-link:hover strong {
  color: var(--md-sys-color-primary);
}
.panel-body { padding: 20px; }

.table-responsive {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: inherit;
}
.panel > .table-responsive,
.panel > .panel-body > .table-responsive {
  border-radius: 0;
}
.table-modern {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  min-width: 640px;
  background: #fff;
}
.table-modern th,
.table-modern td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  text-align: start;
  vertical-align: middle;
}
.table-modern th {
  position: sticky;
  top: 0;
  z-index: 2;
  font-family: var(--font-heading);
  font-size: .8rem;
  font-weight: 600;
  line-height: 1.35;
  text-transform: none;
  letter-spacing: 0;
  color: var(--text-muted);
  background: var(--table-header-bg);
  white-space: nowrap;
  height: 52px;
  border-bottom: 1px solid var(--border);
  box-shadow: none;
}
html[dir="rtl"] .table-modern th {
  letter-spacing: 0;
  text-transform: none;
  font-weight: 600;
}
[data-theme="dark"] .table-modern th {
  color: rgba(255, 255, 255, .72);
  background: var(--md-sys-color-surface-container-lowest);
  border-bottom-color: rgba(255, 255, 255, .1);
}
[data-theme="dark"] .table-modern th,
[data-theme="dark"] .table-modern td {
  border-bottom-color: rgba(255, 255, 255, .08);
}
.table-modern th:first-child {
  padding-inline-start: 22px;
}
.table-modern th:last-child,
.table-modern td:last-child {
  padding-inline-end: 18px;
}
.table-modern td {
  font-family: var(--font-body);
  font-size: .875rem;
  font-weight: 500;
  color: var(--text);
  background: var(--md-sys-color-surface-container-lowest);
  height: 64px;
}
[data-theme="dark"] .table-modern {
  background: var(--md-sys-color-surface-container-lowest);
}
[data-theme="dark"] .table-modern td {
  color: var(--md-sys-color-on-surface);
  background: var(--md-sys-color-surface-container-lowest);
}
.table-modern td:first-child {
  padding-inline-start: 22px;
  font-weight: 500;
  color: var(--text-muted, #64748B);
}
.table-modern tbody tr:nth-child(even) td {
  background: transparent;
}
.table-modern tbody tr:last-child td {
  border-bottom: 0;
}
.table-modern tbody tr {
  transition: background-color 150ms cubic-bezier(0.4, 0, 0.2, 1);
}
.table-modern tbody tr:hover td {
  background: color-mix(in srgb, var(--md-sys-color-on-surface) 3.5%, transparent);
}
.table-modern tbody tr:hover td:first-child {
  box-shadow: none;
}
html[dir="rtl"] .table-modern tbody tr:hover td:first-child {
  box-shadow: none;
}
.table-modern tbody tr:active td {
  background: color-mix(in srgb, var(--md-sys-color-on-surface) 5.5%, transparent);
}
[data-theme="dark"] .table-modern tbody tr:hover td {
  background: #3A3B3C;
}
[data-theme="dark"] .table-modern tbody tr:active td {
  background: #4E4F50;
}
.table-modern a {
  color: var(--md-sys-color-on-surface);
  font-weight: 600;
  text-decoration: none;
}
.table-modern a:hover {
  color: var(--md-sys-color-primary);
  text-decoration: none;
}
.table-modern .table-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  opacity: .9;
}
.table-modern tbody tr:hover .table-actions {
  opacity: 1;
}
.table-modern .table-actions .btn-icon {
  width: 28px;
  height: 28px;
  min-width: 28px;
  padding: 0;
  border-radius: 8px;
  border: 0;
  background: transparent;
  color: var(--md-sys-color-on-surface-variant);
  box-shadow: none;
}
.table-modern .table-actions .btn-icon .material-symbols-outlined {
  font-size: 18px;
}
.table-modern .table-actions .btn-icon:hover {
  border: 0;
  background: transparent;
  color: var(--md-sys-color-primary);
  box-shadow: none;
}
.table-modern code,
.table-modern .reports-rider-id {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--md-sys-color-primary) 10%, transparent);
  color: var(--md-sys-color-primary);
  font-size: .78rem;
  font-weight: 600;
}
[data-theme="dark"] .table-modern a {
  color: var(--md-sys-color-on-surface);
  text-decoration: none;
}
[data-theme="dark"] .table-modern a:hover {
  color: var(--md-sys-color-primary);
}
[data-theme="dark"] .table-modern tbody tr:nth-child(even) td {
  background: transparent;
}

.badge-pill,
.badge-success,
.badge-warning,
.badge-danger,
.badge-muted,
.badge-dark,
.badge-info {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: 0;
  height: 28px;
  border: 0;
}
.badge-success { background: var(--stat-green-bg); color: var(--stat-green); }
.badge-warning { background: var(--stat-orange-bg); color: var(--stat-orange); }
.badge-danger { background: var(--stat-red-bg); color: var(--stat-red); }
.badge-muted { background: #F5F6F8; color: var(--text-muted, #64748B); }
.badge-dark { background: var(--dark-card-bg, #192B43); color: var(--dark-card-text, #FFFFFF); }
.badge-info { background: var(--stat-cyan-bg); color: var(--stat-cyan); }
.badge-primary { background: var(--stat-blue-bg); color: var(--stat-blue); }
.badge-purple { background: var(--stat-purple-bg); color: var(--stat-purple); }
[data-theme="dark"] .badge-info { background: var(--v-primary-soft); color: var(--md-sys-color-primary); }

.form-label {
  font-weight: 600;
  font-size: .8rem;
  margin-bottom: 6px;
  display: block;
  color: var(--md-sys-color-on-surface-variant);
}

/* Material outlined fields */
.md-field {
  position: relative;
  width: 100%;
}
.md-field > label {
  position: absolute;
  inset-inline-start: 14px;
  top: 50%;
  transform: translateY(-50%);
  padding: 0 6px;
  background: var(--md-sys-color-surface-container-lowest);
  color: var(--md-sys-color-on-surface-variant);
  font-size: .95rem;
  pointer-events: none;
  transition: top var(--motion-fast), transform var(--motion-fast), font-size var(--motion-fast), color var(--motion-fast);
  z-index: 1;
  max-width: calc(100% - 28px);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.md-field-select > label,
.md-field:focus-within > label,
.md-field .md-input:not(:placeholder-shown) + label,
.md-field .md-input.md-input-file + label,
.md-field .md-select:valid + label,
.md-field .md-select:focus + label {
  top: 0;
  transform: translateY(-50%);
  font-size: .75rem;
  color: var(--md-sys-color-primary);
  font-weight: 600;
}
.md-input,
.form-control,
.form-select {
  width: 100%;
  border: 1px solid var(--input-border, #D5DCE8);
  background: var(--md-sys-color-surface-container-lowest);
  color: var(--md-sys-color-on-surface);
  border-radius: 8px;
  padding: 14px 16px;
  outline: none;
  transition: border-color var(--motion), box-shadow var(--motion);
  font-size: 1rem;
  min-height: 56px;
  box-shadow: none;
}
.md-input.md-select,
.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='%2364748B'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 40px;
  padding-left: 16px;
}
html[dir="rtl"] .md-input.md-select,
html[dir="rtl"] .form-select {
  background-position: left 12px center;
  padding-left: 40px;
  padding-right: 16px;
}
.md-input:hover,
.form-control:hover,
.form-select:hover {
  border-color: var(--input-border-hover, #B8C4D6);
}
.driver-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 920px;
}
.form-section {
  background: var(--md-sys-color-surface-container-lowest);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  box-shadow: none;
  padding: 24px;
}
.form-section-head {
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}
.form-section-head h2 {
  margin: 0;
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
}
.form-section-head p {
  margin: 4px 0 0;
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--md-sys-color-on-surface-variant);
  font-size: .875rem;
}
.form-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.driver-photo-block { margin-bottom: 20px; }
.photo-uploader {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  padding: 14px 16px;
  border: 1.5px dashed color-mix(in srgb, var(--md-sys-color-outline) 45%, var(--md-sys-color-outline-variant));
  border-radius: var(--radius);
  background: var(--md-sys-color-surface-container-low);
  cursor: pointer;
  transition: border-color var(--motion), background var(--motion), box-shadow var(--motion);
}
.photo-uploader:hover {
  border-color: var(--md-sys-color-primary);
  background: color-mix(in srgb, var(--md-sys-color-primary) 4%, var(--md-sys-color-surface-container-low));
}
.photo-uploader.has-image {
  border-style: solid;
  border-color: color-mix(in srgb, var(--md-sys-color-primary) 35%, var(--md-sys-color-outline-variant));
}
.photo-uploader-input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}
.photo-uploader-preview {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--md-sys-color-surface-container-highest);
  display: grid;
  place-items: center;
  position: relative;
}
.photo-uploader-placeholder {
  color: var(--md-sys-color-primary);
  display: grid;
  place-items: center;
}
.photo-uploader-placeholder .material-symbols-outlined { font-size: 28px; }
.photo-uploader-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.photo-uploader-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.photo-uploader-meta strong {
  font-size: .95rem;
  font-weight: 700;
}
.photo-uploader-meta small {
  color: var(--md-sys-color-on-surface-variant);
  font-size: .8rem;
}

.provider-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.provider-row {
  border: 1.5px solid var(--md-sys-color-outline-variant);
  border-radius: 12px;
  background: var(--md-sys-color-surface-container-low);
  padding: 14px 16px;
  transition: border-color var(--motion), background var(--motion), box-shadow var(--motion);
}
.provider-row.is-disabled { opacity: .78; }
.provider-row.is-coming-soon {
  border-style: dashed;
  background: rgba(239, 108, 0, 0.04);
}
.provider-row.is-coming-soon .provider-state {
  color: #ef6c00;
}
.provider-row.is-enabled {
  opacity: 1;
  background: var(--md-sys-color-surface-container-lowest);
  border-color: color-mix(in srgb, var(--md-sys-color-primary) 40%, var(--md-sys-color-outline-variant));
  box-shadow: var(--elev-1);
}
.provider-row-main {
  display: grid;
  grid-template-columns: minmax(180px, 1.1fr) minmax(220px, 1.4fr) auto;
  gap: 16px;
  align-items: center;
}
.status-switch {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  cursor: pointer;
  user-select: none;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid color-mix(in srgb, var(--md-sys-color-outline-variant) 75%, transparent);
  background: var(--md-sys-color-surface-container-low);
  max-width: 420px;
}
.status-switch input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.status-switch-ui {
  width: 46px;
  height: 26px;
  border-radius: 999px;
  background: #c4c7c5;
  position: relative;
  flex-shrink: 0;
  transition: background var(--motion-fast);
}
.status-switch-ui::after {
  content: '';
  position: absolute;
  top: 3px;
  inset-inline-start: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0,0,0,.2);
  transition: transform var(--motion-fast);
}
.status-switch.is-on .status-switch-ui,
.status-switch:has(input:checked) .status-switch-ui {
  background: #2e7d32;
}
.status-switch.is-on .status-switch-ui::after,
.status-switch:has(input:checked) .status-switch-ui::after {
  transform: translateX(20px);
}
html[dir="rtl"] .status-switch.is-on .status-switch-ui::after,
html[dir="rtl"] .status-switch:has(input:checked) .status-switch-ui::after {
  transform: translateX(-20px);
}
.status-switch-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.status-switch-text strong {
  font-size: .95rem;
  color: var(--md-sys-color-on-surface);
}
.status-switch-text small {
  font-size: .78rem;
  color: var(--md-sys-color-on-surface-variant);
  line-height: 1.35;
}
.is-inactive-row {
  opacity: .72;
}

.provider-toggle {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  cursor: pointer;
  min-width: 0;
}
.provider-toggle input { position: absolute; opacity: 0; pointer-events: none; }
.provider-toggle-ui {
  width: 42px;
  height: 24px;
  border-radius: 999px;
  background: var(--md-sys-color-surface-container-highest);
  border: 1px solid var(--md-sys-color-outline-variant);
  position: relative;
  flex-shrink: 0;
  transition: background var(--motion-fast);
}
.provider-toggle-ui::after {
  content: '';
  position: absolute;
  top: 2px;
  inset-inline-start: 2px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0,0,0,.2);
  transition: transform var(--motion-fast);
}
.provider-row.is-enabled .provider-toggle-ui {
  background: var(--md-sys-color-primary);
  border-color: var(--md-sys-color-primary);
}
.provider-row.is-enabled .provider-toggle-ui::after {
  transform: translateX(18px);
}
html[dir="rtl"] .provider-row.is-enabled .provider-toggle-ui::after {
  transform: translateX(-18px);
}
.provider-toggle-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.provider-toggle-text strong {
  font-size: .95rem;
  line-height: 1.25;
}
.provider-toggle-text small {
  color: var(--md-sys-color-on-surface-variant);
  font-size: .75rem;
}
.provider-row-fields .md-field { margin: 0; }
.provider-row.is-disabled .provider-row-fields {
  pointer-events: none;
  opacity: .55;
}
.provider-state { justify-self: end; }
.provider-row-extra {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed var(--md-sys-color-outline-variant);
}
.provider-error { margin-top: 8px; }
.provider-disabled-hint {
  font-size: .8rem;
  color: var(--md-sys-color-on-surface-variant);
}
.provider-req-list { display: flex; flex-direction: column; gap: 8px; }
.provider-req-title {
  font-size: .78rem;
  font-weight: 700;
  color: var(--md-sys-color-on-surface-variant);
  text-transform: uppercase;
  letter-spacing: .04em;
}
.provider-req-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.provider-req-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--md-sys-color-surface-container-high);
  font-size: .8rem;
  font-weight: 600;
}
.provider-req-chip.is-required {
  background: var(--v-primary-soft);
  color: var(--md-sys-color-primary);
}
.provider-req-chip em {
  font-style: normal;
  font-size: .68rem;
  opacity: .8;
}
.provider-req-empty {
  font-size: .85rem;
  color: var(--md-sys-color-on-surface-variant);
}
@media (max-width: 800px) {
  .provider-row-main {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .provider-state { justify-self: start; }
}
.locale-switch {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 40px;
  padding: 0 12px;
  border-radius: var(--radius-full);
  color: var(--md-sys-color-on-surface-variant);
  text-decoration: none;
  font-weight: 700;
  font-size: .85rem;
  background: transparent;
  transition: background var(--motion-fast), color var(--motion-fast);
}
.locale-switch:hover {
  background: color-mix(in srgb, var(--md-sys-color-primary) 10%, transparent);
  color: var(--md-sys-color-primary);
}
.locale-switch .material-symbols-outlined { font-size: 18px; }
.locale-switch .locale-flag {
  display: block;
  width: 22px;
  height: 15px;
  border-radius: 3px;
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--md-sys-color-outline) 35%, transparent);
}
.md-input:focus,
.form-control:focus,
.form-select:focus {
  border-color: color-mix(in srgb, var(--md-sys-color-primary) 70%, var(--input-border, #D5DCE8));
  border-width: 1px;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--md-sys-color-primary) 12%, transparent);
}
.md-input.md-select:focus,
.form-select:focus {
  padding-right: 40px;
  padding-left: 16px;
}
html[dir="rtl"] .md-input.md-select:focus,
html[dir="rtl"] .form-select:focus {
  padding-left: 40px;
  padding-right: 16px;
}
[data-theme="dark"] .md-input,
[data-theme="dark"] .form-control,
[data-theme="dark"] .form-select {
  border-color: var(--input-border);
  background: #3A3B3C;
  color: #E4E6EB;
  color-scheme: dark;
}
[data-theme="dark"] .md-input:hover,
[data-theme="dark"] .form-control:hover,
[data-theme="dark"] .form-select:hover {
  border-color: var(--input-border-hover);
}
[data-theme="dark"] .md-field > label {
  background: #3A3B3C;
}
[data-theme="dark"] .md-input:focus,
[data-theme="dark"] .form-control:focus,
[data-theme="dark"] .form-select:focus {
  border-color: var(--md-sys-color-primary);
}
[data-theme="dark"] .md-input.md-select,
[data-theme="dark"] .form-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='%239CA3AF'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
}
input[type="date"].md-input,
input[type="month"].md-input,
input[type="date"].form-control,
input[type="month"].form-control {
  color-scheme: inherit;
}
input[type="date"]::-webkit-calendar-picker-indicator,
input[type="month"]::-webkit-calendar-picker-indicator {
  cursor: pointer;
  opacity: .72;
}
[data-theme="dark"] input[type="date"]::-webkit-calendar-picker-indicator,
[data-theme="dark"] input[type="month"]::-webkit-calendar-picker-indicator {
  filter: invert(1) brightness(1.15);
  opacity: .85;
}
.md-input.md-input-file {
  padding-top: 18px;
  padding-bottom: 10px;
  font-size: .875rem;
}
.md-field-dense .md-input,
.md-field-dense .form-control,
.md-field-dense .form-select {
  min-height: 44px;
  padding: 10px 14px;
  font-size: .9rem;
}
.md-field-dense:focus-within .md-input,
.md-field-dense .md-input:focus {
  padding: 10px 14px;
}
.filters .md-field {
  min-width: 180px;
  width: 220px;
  flex: 0 0 auto;
}
.filters .filter-search {
  width: 260px;
}
.filters .filters-clear {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  white-space: nowrap;
}
.provider-row {
  border: 1px solid var(--md-sys-color-outline-variant);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 12px;
  background: var(--md-sys-color-surface-container-low);
}
.form-hint { color: var(--md-sys-color-on-surface-variant); font-size: .75rem; margin-top: 6px; }
.invalid-feedback { color: var(--danger); font-size: .75rem; margin-top: 6px; }
.is-invalid { border-color: var(--danger) !important; }
input[type="checkbox"],
input[type="radio"] {
  accent-color: var(--md-sys-color-primary);
  width: 18px;
  height: 18px;
}

.empty-state {
  text-align: center;
  padding: 40px 20px;
  color: var(--md-sys-color-on-surface-variant);
}
.empty-state-panel {
  margin-top: 4px;
  border: 1px dashed color-mix(in srgb, var(--md-sys-color-outline-variant) 85%, transparent);
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--md-sys-color-surface-container-lowest) 72%, transparent);
}
.empty-state .icon-circle {
  width: 64px;
  height: 64px;
  margin: 0 auto 14px;
  border-radius: var(--radius-full);
  display: grid;
  place-items: center;
  background: color-mix(in srgb, var(--md-sys-color-primary) 10%, transparent);
  color: var(--md-sys-color-primary);
  font-size: 1.65rem;
}
.empty-state-title {
  margin: 0;
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  color: var(--md-sys-color-on-surface);
  line-height: 1.4;
}
.empty-state-hint {
  margin: 8px auto 0;
  max-width: 34rem;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: .875rem;
  line-height: 1.5;
  color: var(--md-sys-color-on-surface-variant);
}
[data-theme="dark"] .empty-state .icon-circle {
  background: var(--v-primary-soft);
  color: var(--md-sys-color-primary);
}
[data-theme="dark"] .empty-state-panel {
  background: color-mix(in srgb, var(--md-sys-color-surface-container-low) 70%, transparent);
}

.doc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}
.doc-card {
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 20px;
  background: var(--md-sys-color-surface-container-lowest);
  transition: box-shadow var(--motion), border-color var(--motion);
}
.doc-card:hover { box-shadow: var(--elev-1); }
.doc-card.rejected { border-color: color-mix(in srgb, var(--danger) 50%, var(--md-sys-color-outline-variant)); }
.doc-card.approved { border-color: color-mix(in srgb, var(--success) 50%, var(--md-sys-color-outline-variant)); }
.doc-card.pending_review { border-color: color-mix(in srgb, var(--warning) 50%, var(--md-sys-color-outline-variant)); }

.preview-box {
  border: 1px dashed var(--md-sys-color-outline-variant);
  border-radius: var(--radius);
  min-height: 220px;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: var(--md-sys-color-surface-container-low);
}
.preview-box img,
.preview-box embed {
  max-width: 100%;
  max-height: 420px;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  margin-bottom: 16px;
  padding: 0;
  background: transparent;
  border-radius: 0;
}
.filters .form-control,
.filters .form-select,
.filters .md-input {
  min-width: 180px;
  width: 100%;
}

.period-toggle {
  display: inline-flex;
  align-items: stretch;
  padding: 3px;
  border-radius: 999px;
  background: var(--md-sys-color-surface-container-highest, #e8eaf0);
  border: 1px solid var(--md-sys-color-outline-variant);
  gap: 2px;
}
.period-toggle-option {
  position: relative;
  margin: 0;
  cursor: pointer;
  border-radius: 999px;
  min-width: 88px;
  text-align: center;
}
.period-toggle-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.period-toggle-option span {
  display: block;
  padding: 8px 14px;
  font-size: .875rem;
  font-weight: 600;
  color: var(--md-sys-color-on-surface-variant);
  border-radius: 999px;
  transition: background .18s ease, color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.period-toggle-option:first-child:hover:not(.is-active):not(:has(input:checked)) span {
  background: color-mix(in srgb, #0284c7 16%, transparent);
  color: #0369a1;
}
.period-toggle-option:last-child:hover:not(.is-active):not(:has(input:checked)) span {
  background: color-mix(in srgb, #0d9488 16%, transparent);
  color: #0f766e;
}
.period-toggle-option.is-active span,
.period-toggle-option:has(input:checked) span {
  color: #fff;
  box-shadow: var(--elev-1);
}
.period-toggle-option:first-child.is-active span,
.period-toggle-option:first-child:has(input:checked) span {
  background: #0284c7;
}
.period-toggle-option:last-child.is-active span,
.period-toggle-option:last-child:has(input:checked) span {
  background: #0d9488;
}

.reports-filters .period-toggle {
  flex: 0 0 auto;
}
.reports-panel .reports-rider-id {
  font-size: .85rem;
}
.target-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: .8rem;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
  border: 1px solid transparent;
}
.target-chip.has-target {
  color: #0f766e;
  background: color-mix(in srgb, #14b8a6 16%, #fff);
  border-color: color-mix(in srgb, #14b8a6 28%, transparent);
}
.target-chip.no-target {
  color: #92400e;
  background: color-mix(in srgb, #f59e0b 16%, #fff);
  border-color: color-mix(in srgb, #f59e0b 30%, transparent);
}
[data-theme="dark"] .target-chip.has-target {
  color: #5eead4;
  background: color-mix(in srgb, #14b8a6 22%, transparent);
}
[data-theme="dark"] .target-chip.no-target {
  color: #fcd34d;
  background: color-mix(in srgb, #f59e0b 20%, transparent);
}
.target-progress {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}
.target-progress-ratio,
.target-progress-pct,
.target-progress-status {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: .78rem;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
  border: 1px solid transparent;
}
.target-progress-ratio {
  color: var(--md-sys-color-on-surface);
  background: var(--md-sys-color-surface-container);
  border-color: color-mix(in srgb, var(--md-sys-color-outline-variant) 80%, transparent);
}
.target-progress.is-achieved .target-progress-pct,
.target-progress.is-achieved .target-progress-status {
  color: #059669;
  background: color-mix(in srgb, #10b981 14%, #fff);
  border-color: color-mix(in srgb, #10b981 28%, transparent);
}
.target-progress.is-missed .target-progress-pct,
.target-progress.is-missed .target-progress-status {
  color: #d97706;
  background: color-mix(in srgb, #f59e0b 16%, #fff);
  border-color: color-mix(in srgb, #f59e0b 30%, transparent);
}
[data-theme="dark"] .target-progress.is-achieved .target-progress-pct,
[data-theme="dark"] .target-progress.is-achieved .target-progress-status {
  color: #6ee7b7;
  background: color-mix(in srgb, #10b981 22%, transparent);
}
[data-theme="dark"] .target-progress.is-missed .target-progress-pct,
[data-theme="dark"] .target-progress.is-missed .target-progress-status {
  color: #fcd34d;
  background: color-mix(in srgb, #f59e0b 20%, transparent);
}
.reports-details-panel {
  padding: 18px 20px 22px;
}
.reports-details-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.reports-details-head h2 {
  margin: 0;
  font-size: 1.05rem;
}
.reports-details-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 10px;
  margin: 0;
}
.reports-details-item {
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--md-sys-color-surface-container-low);
  border: 1px solid color-mix(in srgb, var(--md-sys-color-outline-variant) 70%, transparent);
}
.reports-details-item dt {
  margin: 0 0 6px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  color: var(--md-sys-color-on-surface-variant);
}
.reports-details-label {
  font-size: .82rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--md-sys-color-on-surface);
}
.reports-details-source {
  font-size: .7rem;
  font-weight: 500;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  letter-spacing: .01em;
  color: var(--md-sys-color-on-surface-variant);
  opacity: .85;
  word-break: break-word;
}
.reports-metric-label {
  display: flex;
  flex-direction: column;
  gap: 2px;
  text-transform: none;
  letter-spacing: normal;
  white-space: normal !important;
  overflow: visible !important;
  text-overflow: unset !important;
}
.advice-panel {
  padding: 18px 18px 20px;
}
.advice-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.advice-card {
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid color-mix(in srgb, var(--md-sys-color-outline-variant) 70%, transparent);
  background: var(--md-sys-color-surface-container-low);
}
.advice-card-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}
.advice-card-head .material-symbols-outlined {
  font-size: 20px;
}
.advice-card-head strong {
  font-size: .92rem;
}
.advice-card p {
  margin: 0;
  font-size: .84rem;
  color: var(--md-sys-color-on-surface-variant);
  line-height: 1.45;
}
.advice-card.severity-high {
  border-color: color-mix(in srgb, #ef4444 35%, transparent);
  background: color-mix(in srgb, #ef4444 8%, #fff);
}
.advice-card.severity-high .material-symbols-outlined { color: #dc2626; }
.advice-card.severity-medium {
  border-color: color-mix(in srgb, #f59e0b 35%, transparent);
  background: color-mix(in srgb, #f59e0b 10%, #fff);
}
.advice-card.severity-medium .material-symbols-outlined { color: #d97706; }
.advice-card.severity-low {
  border-color: color-mix(in srgb, #0284c7 30%, transparent);
  background: color-mix(in srgb, #38bdf8 10%, #fff);
}
.advice-card.severity-low .material-symbols-outlined { color: #0284c7; }
.advice-card.severity-good {
  border-color: color-mix(in srgb, #10b981 30%, transparent);
  background: color-mix(in srgb, #10b981 10%, #fff);
}
.advice-card.severity-good .material-symbols-outlined { color: #059669; }
[data-theme="dark"] .advice-card.severity-high,
[data-theme="dark"] .advice-card.severity-medium,
[data-theme="dark"] .advice-card.severity-low,
[data-theme="dark"] .advice-card.severity-good {
  background: color-mix(in srgb, #fff 4%, var(--md-sys-color-surface-container-high));
}
.reports-metric-label .reports-details-label {
  font-size: .88rem;
}
.reports-metric-label .reports-details-source {
  font-size: .68rem;
}
.reports-details-item dd {
  margin: 0;
  font-size: .95rem;
  font-weight: 600;
  color: var(--md-sys-color-on-surface);
  word-break: break-word;
}

.reports-modal[hidden] {
  display: none !important;
}
.reports-modal {
  position: fixed;
  inset: 0;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  width: 100vw;
  width: 100dvw;
  height: 100vh;
  height: 100dvh;
  min-width: 100%;
  min-height: 100%;
  z-index: 5500;
  display: grid;
  place-items: center;
  padding: 16px;
  margin: 0;
  box-sizing: border-box;
}
.reports-modal-backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  padding: 0;
  margin: 0;
  background: rgba(15, 23, 42, .52);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  cursor: pointer;
  opacity: 0;
  transition: opacity .2s ease;
}
.reports-modal.is-open .reports-modal-backdrop {
  opacity: 1;
}
.reports-modal-card {
  position: relative;
  z-index: 1;
  width: min(520px, 100%);
  max-height: min(92vh, 760px);
  overflow: auto;
  background: var(--md-sys-color-surface-container-lowest, #fff);
  border-radius: 22px;
  box-shadow: none;
  border: 1px solid var(--md-sys-color-outline-variant);
  transform: translateY(14px) scale(.98);
  opacity: 0;
  transition: transform .22s cubic-bezier(.2, .8, .2, 1), opacity .22s ease;
}
.reports-modal.is-open .reports-modal-card {
  transform: translateY(0) scale(1);
  opacity: 1;
}
.reports-modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 20px 20px 4px;
}
.reports-modal-brand {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  min-width: 0;
}
.reports-modal-icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  background: color-mix(in srgb, var(--md-sys-color-primary) 14%, transparent);
  color: var(--md-sys-color-primary);
}
.reports-modal-icon.is-danger {
  background: color-mix(in srgb, var(--danger, #dc2626) 14%, transparent);
  color: var(--danger, #dc2626);
}
.reports-modal-icon .material-symbols-outlined {
  font-size: 22px;
}
.reports-modal-head h2 {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -.01em;
  line-height: 1.3;
}
.reports-modal-sub {
  margin: 4px 0 0;
  color: var(--md-sys-color-on-surface-variant);
  font-size: .82rem;
  line-height: 1.45;
  max-width: none;
}
.reports-modal-close {
  margin-top: 2px;
}
.reports-modal-body {
  padding: 12px 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.reports-period-label {
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--md-sys-color-on-surface-variant);
}
.reports-period-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.reports-period-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  margin: 0;
  padding: 14px 14px 16px;
  padding-inline-start: 14px;
  border-radius: 16px;
  border: 1.5px solid var(--md-sys-color-outline-variant);
  background: color-mix(in srgb, var(--md-sys-color-surface-container-lowest) 88%, transparent);
  cursor: pointer;
  transition: border-color .18s ease, background .18s ease, box-shadow .18s ease, transform .18s ease, padding .18s ease;
  overflow: hidden;
}
.reports-period-card.is-active {
  padding-inline-start: 36px;
}
.reports-period-card input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.reports-period-card-icon {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--md-sys-color-surface-container);
  color: var(--md-sys-color-on-surface-variant);
  transition: background .18s ease, color .18s ease, transform .18s ease;
}
.reports-period-card-icon .material-symbols-outlined {
  font-size: 20px;
}
.reports-period-card-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.reports-period-card-text strong {
  font-size: .95rem;
  font-weight: 700;
  color: var(--md-sys-color-on-surface);
}
.reports-period-card-text small {
  font-size: .75rem;
  color: var(--md-sys-color-on-surface-variant);
  line-height: 1.35;
}
.reports-period-card-check {
  position: absolute;
  inset-inline-start: 10px;
  top: 10px;
  font-size: 18px;
  opacity: 0;
  transform: scale(.8);
  transition: opacity .18s ease, transform .18s ease;
}
.reports-period-card--daily:hover {
  border-color: color-mix(in srgb, #0284c7 55%, var(--md-sys-color-outline-variant));
  background: color-mix(in srgb, #0284c7 6%, #fff);
  box-shadow: none;
  transform: none;
}
.reports-period-card--daily:hover .reports-period-card-icon {
  background: color-mix(in srgb, #0284c7 14%, #fff);
  color: #0369a1;
  transform: none;
}
.reports-period-card--monthly:hover {
  border-color: color-mix(in srgb, #0d9488 55%, var(--md-sys-color-outline-variant));
  background: color-mix(in srgb, #0d9488 6%, #fff);
  box-shadow: none;
  transform: none;
}
.reports-period-card--monthly:hover .reports-period-card-icon {
  background: color-mix(in srgb, #0d9488 14%, #fff);
  color: #0f766e;
  transform: none;
}
.reports-period-card--daily.is-active {
  border-color: #0284c7;
  background: color-mix(in srgb, #0284c7 8%, #fff);
  box-shadow: 0 0 0 2px color-mix(in srgb, #0284c7 16%, transparent);
}
.reports-period-card--daily.is-active .reports-period-card-icon {
  background: #0284c7;
  color: #fff;
}
.reports-period-card--daily.is-active .reports-period-card-check {
  color: #0284c7;
  opacity: 1;
  transform: scale(1);
}
.reports-period-card--monthly.is-active {
  border-color: #0d9488;
  background: color-mix(in srgb, #0d9488 8%, #fff);
  box-shadow: 0 0 0 2px color-mix(in srgb, #0d9488 16%, transparent);
}
.reports-period-card--monthly.is-active .reports-period-card-icon {
  background: #0d9488;
  color: #fff;
}
.reports-period-card--monthly.is-active .reports-period-card-check {
  color: #0d9488;
  opacity: 1;
  transform: scale(1);
}
.reports-modal-fields {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.reports-dropzone {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 132px;
  padding: 20px 16px;
  margin: 0;
  border-radius: 16px;
  border: 1.5px dashed color-mix(in srgb, var(--md-sys-color-outline) 55%, transparent);
  background: color-mix(in srgb, var(--md-sys-color-surface-container-low) 80%, transparent);
  text-align: center;
  cursor: pointer;
  transition: border-color .18s ease, background .18s ease, box-shadow .18s ease, transform .18s ease;
}
.reports-dropzone:hover {
  border-color: color-mix(in srgb, var(--md-sys-color-primary) 55%, transparent);
  background: color-mix(in srgb, var(--md-sys-color-primary-container) 35%, transparent);
  transform: translateY(-1px);
}
.reports-dropzone.is-dragging {
  border-color: var(--md-sys-color-primary);
  border-style: solid;
  background: color-mix(in srgb, var(--md-sys-color-primary-container) 55%, transparent);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--md-sys-color-primary) 14%, transparent);
}
.reports-dropzone.has-file {
  border-style: solid;
  border-color: color-mix(in srgb, #059669 55%, transparent);
  background: color-mix(in srgb, #d1fae5 55%, transparent);
}
.reports-dropzone-input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}
.reports-dropzone-icon {
  font-size: 32px;
  color: var(--md-sys-color-primary);
  margin-bottom: 2px;
}
.reports-dropzone.has-file .reports-dropzone-icon {
  color: #059669;
}
.reports-dropzone-title {
  font-size: .92rem;
  font-weight: 700;
  color: var(--md-sys-color-on-surface);
}
.reports-dropzone-hint {
  font-size: .75rem;
  color: var(--md-sys-color-on-surface-variant);
}
.reports-dropzone-name {
  margin-top: 4px;
  padding: 4px 10px;
  border-radius: 999px;
  background: color-mix(in srgb, #059669 12%, #fff);
  color: #047857;
  font-size: .78rem;
  font-weight: 600;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.reports-modal-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
  border-top: 1px solid color-mix(in srgb, var(--md-sys-color-outline-variant) 70%, transparent);
  margin-top: 4px;
  padding: 14px 20px 20px;
}
.reports-modal-head.is-confirm {
  padding: 24px 24px 8px;
}
.reports-modal-footer.is-confirm {
  justify-content: flex-end;
  align-items: center;
  gap: 12px;
  margin-top: 8px;
  padding: 18px 20px 22px;
}
.reports-modal-footer.is-confirm .btn-outline,
.reports-modal-footer.is-confirm .btn-primary,
.reports-modal-footer.is-confirm .btn-danger {
  min-width: 120px;
  min-height: 42px;
  justify-content: center;
}
.reports-modal-submit {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
@media (max-width: 520px) {
  .reports-period-cards {
    grid-template-columns: 1fr;
  }
  .reports-modal-head {
    padding: 16px 16px 4px;
  }
  .reports-modal-body {
    padding: 10px 16px 16px;
  }
}
[data-theme="dark"] .reports-modal-card {
  background: var(--md-sys-color-surface-container-high);
}
[data-theme="dark"] .reports-dropzone.has-file {
  background: color-mix(in srgb, #059669 22%, transparent);
}
[data-theme="dark"] .reports-dropzone-name {
  background: color-mix(in srgb, #059669 28%, transparent);
  color: #6ee7b7;
}

/* Material custom select menu */
.md-select-enhanced {
  position: absolute !important;
  opacity: 0 !important;
  pointer-events: none !important;
  width: 1px !important;
  height: 1px !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  clip: rect(0 0 0 0) !important;
}
.md-select-shell {
  position: relative;
  width: 100%;
  z-index: 1;
}
.md-select-shell.is-open {
  z-index: 4000;
}
.md-field .md-select-shell {
  width: 100%;
}
.md-select-overflow-open {
  overflow: visible !important;
}
.md-select-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  border: 1px solid var(--input-border, #D5DCE8);
  background: var(--md-sys-color-surface-container-lowest);
  color: var(--md-sys-color-on-surface);
  border-radius: 8px;
  padding: 14px 12px 14px 16px;
  min-height: 56px;
  font-size: 1rem;
  text-align: start;
  cursor: pointer;
  transition: border-color var(--motion), box-shadow var(--motion);
  box-shadow: none;
}
.md-field-dense .md-select-trigger {
  min-height: 44px;
  padding: 10px 10px 10px 14px;
  font-size: .9rem;
}
.md-select-trigger:hover {
  border-color: var(--input-border-hover, #B8C4D6);
}
.md-select-shell.is-open .md-select-trigger,
.md-select-trigger:focus {
  outline: none;
  border-color: color-mix(in srgb, var(--md-sys-color-primary) 70%, var(--input-border, #D5DCE8));
  border-width: 1px;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--md-sys-color-primary) 12%, transparent);
}
.md-field-dense .md-select-shell.is-open .md-select-trigger,
.md-field-dense .md-select-trigger:focus {
  padding: 10px 10px 10px 14px;
}
.md-select-trigger-label {
  flex: 1;
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  overflow: hidden;
}
.md-select-trigger-label.is-placeholder {
  color: var(--md-sys-color-on-surface-variant);
}
.md-select-trigger-text {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.md-select-chevron {
  font-size: 22px;
  color: var(--md-sys-color-on-surface-variant);
  transition: transform var(--motion-fast);
  flex-shrink: 0;
}
.md-select-shell.is-open .md-select-chevron {
  transform: rotate(180deg);
  color: var(--md-sys-color-primary);
}
.md-select-menu {
  position: absolute;
  inset-inline-start: 0;
  top: calc(100% + 4px);
  z-index: 4000;
  min-width: 100%;
  max-height: 280px;
  overflow: auto;
  margin: 0;
  padding: 8px 0;
  list-style: none;
  background: var(--md-sys-color-surface-container-lowest);
  border-radius: 4px;
  box-shadow: var(--elev-3, 0 8px 24px rgba(15, 23, 42, .16), 0 2px 6px rgba(15, 23, 42, .08));
  border: 1px solid color-mix(in srgb, var(--md-sys-color-outline-variant) 70%, transparent);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: scaleY(.92) translateY(-4px);
  transform-origin: top center;
  transition: opacity var(--motion-fast), transform var(--motion-fast), visibility var(--motion-fast);
}
.md-select-shell.is-open .md-select-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: scaleY(1) translateY(0);
}
.md-select-menu[data-placement="top"] {
  top: auto;
  bottom: calc(100% + 4px);
  transform-origin: bottom center;
}
.md-select-logo {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  object-fit: contain;
  flex: 0 0 auto;
  background: var(--md-sys-color-surface-container-low, #f3f4f6);
}
.md-select-logo-fallback {
  display: inline-grid;
  place-items: center;
  font-size: .62rem;
  font-weight: 700;
  color: var(--md-sys-color-primary);
  background: color-mix(in srgb, var(--md-sys-color-primary) 12%, transparent);
}
.md-select-swatch {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  flex: 0 0 auto;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .08);
}
.md-select-swatch.is-info { background: var(--stat-cyan, #0891b2); }
.md-select-swatch.is-success { background: var(--stat-green, #16a34a); }
.md-select-swatch.is-warning { background: var(--stat-orange, #f59e0b); }
.md-select-swatch.is-danger { background: var(--stat-red, #dc2626); }
.md-select-option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  cursor: pointer;
  color: var(--md-sys-color-on-surface);
  font-size: .95rem;
  transition: background var(--motion-fast);
  user-select: none;
}
.md-select-option.has-logo {
  gap: 10px;
}
.md-select-option .md-select-logo {
  width: 24px;
  height: 24px;
}
.md-select-option-text {
  flex: 1;
  min-width: 0;
}
.md-select-option:hover,
.md-select-option.is-active {
  background: color-mix(in srgb, var(--md-sys-color-primary) 8%, transparent);
}
.md-select-option.is-selected {
  background: color-mix(in srgb, var(--md-sys-color-primary) 12%, transparent);
  color: var(--md-sys-color-primary);
  font-weight: 600;
}
.md-select-option.is-disabled {
  opacity: .45;
  pointer-events: none;
}
.md-select-option .material-symbols-outlined {
  font-size: 18px;
  opacity: 0;
}
.md-select-option.is-selected .material-symbols-outlined {
  opacity: 1;
}
.md-select-shell.is-disabled .md-select-trigger {
  opacity: .55;
  cursor: not-allowed;
}
[data-theme="dark"] .md-select-menu {
  background: var(--md-sys-color-surface-container-high, #2b2930);
  box-shadow: 0 10px 28px rgba(0, 0, 0, .45);
}

.user-menu {
  position: relative;
  margin-inline-start: 4px;
}
.user-menu-trigger {
  border: 0;
  background: transparent;
  padding: 2px;
  border-radius: var(--radius-full);
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: transform var(--motion-fast), box-shadow var(--motion-fast);
}
.user-menu-trigger:hover,
.user-menu.is-open .user-menu-trigger {
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--md-sys-color-primary) 22%, transparent);
}
.avatar {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  background: var(--gradient-primary);
  color: var(--md-sys-color-on-primary);
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: .9rem;
}
.avatar-lg {
  width: 44px;
  height: 44px;
  font-size: 1rem;
}
[data-theme="dark"] .avatar {
  background: #fff;
  color: #000;
}
.user-menu-dropdown {
  position: absolute;
  inset-inline-end: 0;
  top: calc(100% + 8px);
  width: min(280px, calc(100vw - 24px));
  background: var(--md-sys-color-surface-container-lowest);
  border: 1px solid color-mix(in srgb, var(--md-sys-color-outline-variant) 70%, transparent);
  border-radius: 14px;
  box-shadow: var(--elev-3);
  padding: 8px;
  z-index: 50;
  animation: menuIn var(--motion-fast) both;
}
.user-menu-dropdown[hidden] {
  display: none !important;
}
@keyframes menuIn {
  from { opacity: 0; transform: translateY(-6px) scale(.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.user-menu-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 10px 12px;
}
.user-menu-meta {
  min-width: 0;
}
.user-menu-meta strong {
  display: block;
  font-size: .95rem;
  line-height: 1.25;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.user-menu-meta span {
  display: block;
  font-size: .78rem;
  color: var(--md-sys-color-on-surface-variant);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.user-menu-divider {
  height: 1px;
  background: var(--md-sys-color-outline-variant);
  margin: 2px 6px 6px;
}
.user-menu-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--md-sys-color-on-surface);
  font-size: .9rem;
  font-weight: 500;
  text-align: start;
  cursor: pointer;
  transition: background var(--motion-fast);
}
.user-menu-item:hover {
  background: color-mix(in srgb, var(--md-sys-color-primary) 10%, transparent);
  color: var(--md-sys-color-primary);
}
.user-menu-item .material-symbols-outlined {
  font-size: 20px;
}
.user-menu-item-danger:hover {
  background: color-mix(in srgb, var(--danger) 12%, transparent);
  color: var(--danger);
}
.user-menu form {
  margin: 0;
}

.toast-stack {
  position: fixed;
  inset-inline-end: 20px;
  bottom: 20px;
  top: auto;
  z-index: 1080;
  display: grid;
  gap: 10px;
  width: min(380px, calc(100vw - 2rem));
}
.toast-item {
  background: var(--md-sys-color-inverse-surface);
  color: var(--md-sys-color-inverse-on-surface);
  border: 0;
  border-radius: 8px;
  padding: 14px 16px;
  box-shadow: var(--elev-3);
  animation: toastIn var(--motion) ease;
  font-size: .875rem;
}
.toast-item.success { border-inline-start: 4px solid var(--success); }
.toast-item.error { border-inline-start: 4px solid var(--danger); }
.toast-item.info { border-inline-start: 4px solid var(--info); }

@keyframes toastIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

/* File progress */
.file-progress { min-width: 110px; }
.file-progress__meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
  font-size: .78rem;
  font-weight: 700;
}
.file-progress__count { color: var(--md-sys-color-on-surface); }
.file-progress__percent { color: var(--md-sys-color-on-surface-variant); }
.file-progress__track {
  height: 8px;
  border-radius: var(--radius-full);
  background: var(--md-sys-color-surface-container-high);
  overflow: hidden;
}
.file-progress__fill {
  height: 100%;
  border-radius: inherit;
  background: var(--md-sys-color-primary);
  transition: width var(--motion-emphasized);
}
.file-progress--complete .file-progress__fill {
  background: var(--success);
}
.file-progress--danger .file-progress__fill {
  background: var(--danger);
}
.file-progress--muted .file-progress__fill {
  background: #90A4AE;
}
[data-theme="dark"] .file-progress__fill {
  background: var(--md-sys-color-primary);
}
[data-theme="dark"] .file-progress--complete .file-progress__fill {
  background: var(--success);
}
[data-theme="dark"] .file-progress--danger .file-progress__fill {
  background: var(--danger);
}
.file-progress--compact .file-progress__meta { margin-bottom: 4px; }
.file-progress--compact .file-progress__track { height: 6px; }

/* Auth — full-bleed split layout with new visual design */
.auth-body {
  min-height: 100vh;
  background: var(--md-sys-color-surface-container-lowest, #fff);
}
.auth-page {
  position: relative;
  min-height: 100vh;
  width: 100%;
  display: block;
  padding: 0;
  overflow: hidden;
}
.auth-bg {
  display: none;
}

.auth-shell {
  position: relative;
  z-index: 1;
  width: 100%;
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--md-sys-color-surface-container-lowest, #fff);
  border-radius: 0;
  overflow: hidden;
  box-shadow: none;
}
.auth-card-enter {
  animation: authCardIn 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.auth-visual {
  position: relative;
  background: linear-gradient(160deg, #1E88E5 0%, #1565C0 42%, #0D47A1 100%);
  color: #fff;
  padding: clamp(2.5rem, 6vw, 4.5rem);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 100%;
  overflow: hidden;
  isolation: isolate;
}
.auth-visual-stage {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
[data-theme="dark"] .auth-visual {
  background: linear-gradient(160deg, #1565C0 0%, #0D47A1 48%, #062A5E 100%);
}
.auth-deco {
  position: absolute;
  pointer-events: none;
  z-index: 0;
}
.auth-deco-glow {
  inset: auto -20% -35% -10%;
  height: 70%;
  background: radial-gradient(circle at 50% 30%, rgba(255, 255, 255, 0.28), transparent 58%);
  filter: blur(8px);
}
.auth-map-grid {
  position: absolute;
  inset: 8% 10% 18% 8%;
  border-radius: 28px;
  opacity: 0.22;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.22) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.22) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: radial-gradient(circle at 45% 40%, #000 35%, transparent 78%);
}
.auth-route-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  overflow: visible;
}
.auth-route-glow {
  fill: none;
  stroke: rgba(255, 255, 255, 0.22);
  stroke-width: 14;
  stroke-linecap: round;
  filter: blur(2px);
}
.auth-route-line {
  fill: none;
  stroke: rgba(255, 255, 255, 0.78);
  stroke-width: 3.5;
  stroke-linecap: round;
  stroke-dasharray: 14 12;
  animation: authRouteDash 1.8s linear infinite;
}
.auth-pin {
  position: absolute;
  z-index: 2;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(10px);
  box-shadow: 0 12px 28px rgba(6, 42, 94, 0.28);
  color: #fff;
  animation: authPinPulse 3.2s ease-in-out infinite;
}
.auth-pin .material-symbols-outlined {
  font-size: 22px;
  font-variation-settings: 'FILL' 1, 'wght' 500, 'GRAD' 0, 'opsz' 24;
}
.auth-pin-start {
  top: 11%;
  inset-inline-start: 14%;
}
.auth-pin-mid {
  top: 38%;
  inset-inline-end: 18%;
  animation-delay: 0.4s;
}
.auth-pin-end {
  bottom: 26%;
  inset-inline-start: 22%;
  animation-delay: 0.8s;
}
.auth-rider {
  position: absolute;
  z-index: 3;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #0D47A1;
  background: radial-gradient(circle at 30% 25%, #E3F2FD 0%, #90CAF9 45%, #42A5F5 100%);
  box-shadow:
    0 14px 30px rgba(6, 42, 94, 0.35),
    inset 0 0 0 2px rgba(255, 255, 255, 0.55);
}
.auth-rider .material-symbols-outlined {
  font-size: 30px;
  font-variation-settings: 'FILL' 1, 'wght' 600, 'GRAD' 0, 'opsz' 24;
}
.auth-rider-main {
  top: 10%;
  inset-inline-start: 12%;
  animation: authRide 11s ease-in-out infinite;
}
.auth-rider-soft {
  top: 58%;
  inset-inline-end: 16%;
  width: 48px;
  height: 48px;
  opacity: 0.88;
  animation: authFloat 7s ease-in-out infinite;
}
.auth-rider-soft .material-symbols-outlined {
  font-size: 24px;
}
.auth-float-chip {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.24);
  backdrop-filter: blur(10px);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  box-shadow: 0 10px 24px rgba(6, 42, 94, 0.22);
}
.auth-float-chip .material-symbols-outlined {
  font-size: 16px;
}
.auth-float-chip-a {
  top: 22%;
  inset-inline-end: 12%;
  animation: authFloat 8s ease-in-out infinite;
}
.auth-float-chip-b {
  bottom: 34%;
  inset-inline-end: 20%;
  animation: authFloat 9s ease-in-out infinite reverse;
}
.auth-float-chip-c {
  top: 48%;
  inset-inline-start: 8%;
  animation: authFloat 7.5s ease-in-out infinite;
  animation-delay: 0.35s;
}
.auth-float-chip-d {
  top: 64%;
  inset-inline-end: 8%;
  animation: authPayrollSendChip 4.8s ease-in-out infinite;
}
.auth-payroll-card {
  position: absolute;
  z-index: 3;
  top: 30%;
  inset-inline-start: 10%;
  width: min(210px, 46%);
  padding: 12px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(12px);
  box-shadow: 0 14px 30px rgba(6, 42, 94, 0.28);
  color: #fff;
  animation: authFloat 10s ease-in-out infinite;
}
.auth-payroll-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  font-size: .78rem;
}
.auth-payroll-head .material-symbols-outlined {
  font-size: 18px;
  font-variation-settings: 'FILL' 1, 'wght' 500, 'GRAD' 0, 'opsz' 24;
}
.auth-payroll-head strong {
  font-weight: 700;
}
.auth-payroll-rows {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-bottom: 10px;
}
.auth-payroll-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 7px 8px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.12);
  transform-origin: inline-start center;
  animation: authPayrollOrganize 3.6s ease-in-out infinite;
}
.auth-payroll-row.is-b { animation-delay: 0.25s; }
.auth-payroll-row.is-c { animation-delay: 0.5s; }
.auth-payroll-row span {
  display: block;
  width: 42%;
  height: 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
}
.auth-payroll-row i {
  display: block;
  width: 28%;
  height: 7px;
  border-radius: 999px;
  background: rgba(227, 242, 253, 0.9);
}
.auth-payroll-send {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(13, 71, 161, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.28);
  font-size: .72rem;
  font-weight: 700;
  animation: authPayrollSendPulse 2.8s ease-in-out infinite;
}
.auth-payroll-send .material-symbols-outlined {
  font-size: 15px;
  font-variation-settings: 'FILL' 1, 'wght' 500, 'GRAD' 0, 'opsz' 24;
}
.auth-visual-copy {
  position: relative;
  z-index: 1;
  width: min(100%, 28rem);
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  padding: 1.25rem 1.35rem;
  border-radius: 20px;
  background: rgba(6, 42, 94, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(14px);
  box-shadow: 0 18px 40px rgba(6, 42, 94, 0.22);
  animation: authRise 0.7s ease both;
}
.auth-visual-kicker {
  margin: 0;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.78);
}
.auth-visual-copy h1 {
  margin: 0;
  font-size: clamp(2rem, 3.8vw, 3.1rem);
  line-height: 1.25;
  font-weight: 800;
  letter-spacing: -0.02em;
  max-width: 12em;
  text-shadow: 0 10px 28px rgba(6, 42, 94, 0.35);
}
html[dir="rtl"] .auth-visual-copy h1 {
  letter-spacing: 0;
  line-height: 1.35;
}
.auth-visual-body {
  margin: 0;
  font-size: clamp(0.98rem, 1.3vw, 1.12rem);
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.92);
  max-width: 28em;
  font-weight: 500;
}
html[dir="rtl"] .auth-visual-body {
  line-height: 1.85;
}

.auth-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--md-sys-color-surface-container-lowest, #fff);
  min-height: 100%;
  padding: clamp(2rem, 5vw, 3.5rem);
}
.auth-toolbar {
  position: absolute;
  top: 18px;
  inset-inline-end: 18px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.auth-toolbar-btn {
  width: 40px;
  height: 40px;
  border: 1px solid color-mix(in srgb, var(--md-sys-color-outline-variant) 70%, transparent);
  background: color-mix(in srgb, var(--md-sys-color-surface-container-low) 80%, transparent);
  color: var(--md-sys-color-on-surface);
}
.auth-toolbar-btn:hover {
  background: var(--v-primary-soft);
  color: var(--md-sys-color-primary);
}
.auth-panel-inner {
  width: min(360px, 100%);
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}
.auth-logo {
  display: flex;
  justify-content: center;
  text-decoration: none;
}
.auth-card-head {
  text-align: center;
}
.auth-card-head h2 {
  margin: 0 0 6px;
  font-size: 1.55rem;
  font-weight: 800;
  line-height: 1.25;
  color: var(--md-sys-color-on-surface);
  letter-spacing: -0.02em;
}
.auth-card-head p {
  margin: 0;
  color: var(--md-sys-color-on-surface-variant);
  font-size: 0.92rem;
}
.auth-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.auth-form .md-field {
  margin: 0;
}
.auth-form .md-field > label {
  background: var(--md-sys-color-surface-container-lowest, #fff);
}
[data-theme="dark"] .auth-form .md-field-icon {
  color: var(--md-sys-color-primary);
}
[data-theme="dark"] .auth-link {
  color: var(--md-sys-color-primary);
}
[data-theme="dark"] .auth-submit {
  background: var(--gradient-primary);
  color: #fff;
  box-shadow: 0 10px 24px rgba(21, 101, 192, 0.35);
}
[data-theme="dark"] .auth-submit:hover {
  filter: brightness(1.08);
  color: #fff;
}
[data-theme="dark"] .md-check-ui {
  background: var(--md-sys-color-surface-container-lowest);
}
[data-theme="dark"] .auth-toolbar-btn {
  border-color: rgba(144, 202, 249, 0.22);
  background: rgba(144, 202, 249, 0.08);
  color: var(--md-sys-color-primary);
}
.md-field-leading .md-input {
  padding-inline-start: 48px;
}
.md-field-leading > label {
  inset-inline-start: 44px;
}
.md-field-leading:focus-within > label,
.md-field-leading .md-input:not(:placeholder-shown) + label {
  inset-inline-start: 14px;
}
.md-field-icon {
  position: absolute;
  top: 50%;
  left: 14px;
  right: auto;
  transform: translateY(-50%);
  color: var(--md-sys-color-primary);
  font-size: 20px;
  z-index: 2;
  pointer-events: none;
  direction: inherit;
  unicode-bidi: isolate;
}
html[dir="rtl"] .md-field-icon {
  left: auto;
  right: 14px;
}
.md-field-password .md-input {
  padding-inline-end: 48px;
}
.auth-password-toggle {
  position: absolute;
  top: 50%;
  right: 8px;
  left: auto;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: var(--radius-full);
  background: transparent;
  color: var(--md-sys-color-on-surface-variant);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 3;
  direction: inherit;
  unicode-bidi: isolate;
}
html[dir="rtl"] .auth-password-toggle {
  left: 8px;
  right: auto;
}
.auth-password-toggle:hover {
  background: var(--v-primary-soft);
  color: var(--md-sys-color-primary);
}
.auth-password-toggle .material-symbols-outlined {
  font-size: 20px;
}
.auth-form-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 2px;
}
.md-check {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  user-select: none;
  color: var(--md-sys-color-on-surface);
  font-size: 0.9rem;
}
.md-check input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.md-check-ui {
  width: 20px;
  height: 20px;
  border-radius: 6px;
  border: 1.5px solid color-mix(in srgb, var(--md-sys-color-outline) 55%, transparent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  transition: background var(--motion-fast), border-color var(--motion-fast), box-shadow var(--motion-fast);
}
.md-check-ui .material-symbols-outlined {
  font-size: 16px;
  color: transparent;
  font-variation-settings: 'FILL' 1, 'wght' 600, 'GRAD' 0, 'opsz' 20;
  transition: color var(--motion-fast);
}
.md-check input:checked + .md-check-ui {
  background: var(--md-sys-color-primary);
  border-color: var(--md-sys-color-primary);
  box-shadow: 0 0 0 3px var(--v-primary-soft);
}
.md-check input:checked + .md-check-ui .material-symbols-outlined {
  color: #fff;
}
.md-check input:focus-visible + .md-check-ui {
  box-shadow: 0 0 0 3px var(--v-primary-soft);
}
.auth-link {
  color: #42A5F5;
  font-weight: 600;
  font-size: 0.875rem;
  text-decoration: none;
}
.auth-link:hover {
  color: var(--md-sys-color-primary);
  text-decoration: underline;
}
.auth-submit {
  width: 100%;
  min-height: 48px;
  margin-top: 8px;
  border-radius: 12px;
  background: #1565C0;
  box-shadow: 0 10px 24px rgba(21, 101, 192, 0.28);
  gap: 10px;
}
.auth-submit:hover {
  background: #0D47A1;
  filter: none;
}
.auth-alt {
  margin-top: 1.15rem;
  padding-top: 1rem;
  border-top: 1px solid color-mix(in srgb, var(--md-sys-color-outline) 35%, transparent);
  text-align: center;
}
.auth-alt p {
  margin: 0 0 0.75rem;
  color: var(--md-sys-color-on-surface-variant);
  font-size: 0.9rem;
  font-weight: 600;
}
.auth-subscribe-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 48px;
  border-radius: 12px;
  border: 0;
  color: #fff;
  background: linear-gradient(135deg, #ff6a3d 0%, #ff3d81 52%, #c026d3 100%);
  box-shadow: 0 10px 24px rgba(255, 61, 129, 0.28);
  font-weight: 800;
  text-decoration: none;
}
.auth-subscribe-btn:hover {
  color: #fff;
  filter: saturate(1.05);
  box-shadow: 0 14px 28px rgba(192, 38, 211, 0.32);
}

.auth-submit-spinner {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  display: none;
  flex-shrink: 0;
}
.auth-form.is-loading .auth-submit-spinner {
  display: inline-block;
  animation: authSubmitSpin 0.7s linear infinite;
}
.auth-form.is-loading .md-input,
.auth-form.is-loading .md-check,
.auth-form.is-loading .auth-password-toggle,
.auth-form.is-loading .auth-link,
.auth-form.is-loading .auth-back-link {
  opacity: 0.62;
  pointer-events: none;
}
.auth-form.is-loading .auth-submit {
  cursor: wait;
}
@keyframes authSubmitSpin {
  to { transform: rotate(360deg); }
}
.auth-back-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 4px;
  color: var(--md-sys-color-on-surface-variant);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
}
.auth-back-link:hover {
  color: var(--md-sys-color-primary);
}
.auth-back-link .material-symbols-outlined {
  font-size: 18px;
}
html[dir="rtl"] .auth-back-link .material-symbols-outlined {
  transform: scaleX(-1);
}
.auth-alert {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0 0 14px;
  padding: 12px 14px;
  border-radius: 12px;
  background: color-mix(in srgb, #059669 12%, #fff);
  color: #047857;
  border: 1px solid color-mix(in srgb, #059669 28%, transparent);
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.45;
}
.auth-alert .material-symbols-outlined {
  font-size: 22px;
  flex-shrink: 0;
  margin-top: 1px;
}
.auth-alert p {
  margin: 0;
}
.auth-alert--error {
  background: color-mix(in srgb, #ef4444 12%, #fff);
  color: #991b1b;
  border-color: color-mix(in srgb, #ef4444 35%, transparent);
}
.auth-alert--error .material-symbols-outlined {
  color: #dc2626;
}
[data-theme="dark"] .auth-alert {
  background: color-mix(in srgb, #10b981 16%, transparent);
  color: #6ee7b7;
  border-color: color-mix(in srgb, #10b981 28%, transparent);
}
[data-theme="dark"] .auth-alert--error {
  background: color-mix(in srgb, #ef4444 16%, transparent);
  color: #fecaca;
  border-color: color-mix(in srgb, #ef4444 30%, transparent);
}
@keyframes authFloat {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(0, -14px, 0); }
}
@keyframes authPayrollOrganize {
  0%, 100% { opacity: 0.55; transform: translateX(0) scale(0.98); }
  35% { opacity: 1; transform: translateX(0) scale(1); }
  70% { opacity: 0.9; transform: translateX(4px) scale(1); }
}
html[dir="rtl"] .auth-payroll-row {
  animation-name: authPayrollOrganizeRtl;
}
@keyframes authPayrollOrganizeRtl {
  0%, 100% { opacity: 0.55; transform: translateX(0) scale(0.98); }
  35% { opacity: 1; transform: translateX(0) scale(1); }
  70% { opacity: 0.9; transform: translateX(-4px) scale(1); }
}
@keyframes authPayrollSendPulse {
  0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.18); }
  50% { transform: scale(1.04); box-shadow: 0 0 0 8px rgba(255, 255, 255, 0); }
}
@keyframes authPayrollSendChip {
  0%, 100% { transform: translate3d(0, 0, 0); opacity: 0.88; }
  40% { transform: translate3d(10px, -8px, 0); opacity: 1; }
  70% { transform: translate3d(16px, -4px, 0); opacity: 0.95; }
}
html[dir="rtl"] .auth-float-chip-d {
  animation-name: authPayrollSendChipRtl;
}
@keyframes authPayrollSendChipRtl {
  0%, 100% { transform: translate3d(0, 0, 0); opacity: 0.88; }
  40% { transform: translate3d(-10px, -8px, 0); opacity: 1; }
  70% { transform: translate3d(-16px, -4px, 0); opacity: 0.95; }
}
@keyframes authRouteDash {
  to { stroke-dashoffset: -52; }
}
@keyframes authRide {
  0%   { top: 10%; inset-inline-start: 12%; transform: translate(0, 0) rotate(-8deg); }
  30%  { top: 28%; inset-inline-start: 48%; transform: translate(0, 0) rotate(12deg); }
  55%  { top: 44%; inset-inline-start: 58%; transform: translate(0, 0) rotate(-4deg); }
  78%  { top: 62%; inset-inline-start: 36%; transform: translate(0, 0) rotate(10deg); }
  100% { top: 74%; inset-inline-start: 20%; transform: translate(0, 0) rotate(-6deg); }
}
@keyframes authPinPulse {
  0%, 100% { transform: translateY(0) scale(1); box-shadow: 0 12px 28px rgba(6, 42, 94, 0.28); }
  50% { transform: translateY(-6px) scale(1.04); box-shadow: 0 18px 34px rgba(6, 42, 94, 0.38); }
}
@keyframes authCardIn {
  from { opacity: 0; transform: translateY(18px) scale(0.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes authRise {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

.sidebar-toggle,
.mobile-toggle {
  border: 0;
  background: transparent;
  border-radius: var(--radius-full);
  width: 40px;
  height: 40px;
  color: var(--md-sys-color-on-surface);
}

.skeleton {
  background: linear-gradient(90deg,
    var(--md-sys-color-surface-container),
    var(--md-sys-color-surface-container-highest),
    var(--md-sys-color-surface-container));
  background-size: 200% 100%;
  animation: shimmer 1.2s infinite;
  border-radius: 8px;
  height: 1rem;
}
@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.row { --bs-gutter-x: 1rem; }
.text-muted { color: var(--md-sys-color-on-surface-variant) !important; }
.border-bottom { border-color: var(--md-sys-color-outline-variant) !important; }
.btn-icon {
  width: 40px;
  height: 40px;
  min-height: 40px;
  padding: 0;
  border: 0;
  border-radius: var(--radius-full);
  background: transparent;
  color: var(--md-sys-color-on-surface-variant);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  cursor: pointer;
  transition: background var(--motion-fast), color var(--motion-fast);
}
.btn-icon:hover {
  background: color-mix(in srgb, var(--md-sys-color-primary) 10%, transparent);
  color: var(--md-sys-color-primary);
}
[data-theme="dark"] .btn-icon:hover {
  background: #3A3B3C;
  color: #E4E6EB;
}
.btn-icon .material-symbols-outlined { font-size: 20px; }
.table-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 2px;
  width: 100%;
}
.driver-name-cell {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none !important;
}
.driver-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  background: var(--md-sys-color-surface-container-high);
}
.driver-avatar-lg { width: 48px; height: 48px; }
.driver-avatar-xl { width: 64px; height: 64px; }
.driver-avatar-fallback {
  display: inline-grid;
  place-items: center;
  background: var(--gradient-primary);
  color: var(--md-sys-color-on-primary);
  font-size: .75rem;
  font-weight: 700;
}
[data-theme="dark"] .driver-avatar-fallback {
  background: #fff;
  color: #000;
}
.provider-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.provider-chips .chip {
  display: inline-flex;
  flex-direction: column;
  gap: 1px;
  padding: 6px 10px;
  border-radius: var(--radius-xs);
  background: var(--md-sys-color-surface-container-high);
  font-size: .8rem;
  font-weight: 600;
  line-height: 1.2;
}
.provider-chips .chip small {
  font-size: .7rem;
  font-weight: 500;
  color: var(--md-sys-color-on-surface-variant);
}
.provider-rider-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 100%;
  min-height: 30px;
  padding: 3px 8px 3px 4px;
  border: 1px solid color-mix(in srgb, var(--md-sys-color-outline-variant) 80%, transparent);
  border-radius: 999px;
  background: #fff;
  color: inherit;
  cursor: pointer;
  text-align: start;
  transition: background var(--motion-fast), border-color var(--motion-fast), color var(--motion-fast);
}
.provider-rider-chip:hover {
  background: var(--v-primary-soft);
  border-color: color-mix(in srgb, var(--md-sys-color-primary) 35%, var(--md-sys-color-outline-variant));
  color: var(--md-sys-color-primary);
}
.provider-rider-chip.is-empty {
  cursor: default;
  opacity: .78;
}
.provider-rider-chip-logo,
.provider-rider-chip-fallback {
  width: 20px;
  height: 20px;
  border-radius: 999px;
  flex-shrink: 0;
  object-fit: cover;
  background: var(--md-sys-color-surface-container-high);
}
.provider-rider-chip-fallback {
  display: inline-grid;
  place-items: center;
  font-size: .58rem;
  font-weight: 800;
  color: var(--md-sys-color-primary);
  background: var(--v-primary-soft);
}
.provider-rider-chip-name {
  max-width: 4.6rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: .72rem;
  font-weight: 700;
  color: var(--md-sys-color-on-surface-variant);
}
.provider-rider-chip:hover .provider-rider-chip-name {
  color: var(--md-sys-color-primary);
}
.provider-rider-chip-id {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .75rem;
  font-weight: 700;
  background: transparent;
  color: var(--md-sys-color-on-surface);
  padding: 0;
  max-width: 6.5rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.provider-rider-chip-copy {
  font-size: 14px;
  color: var(--md-sys-color-on-surface-variant);
  flex-shrink: 0;
}
.provider-rider-chip:hover .provider-rider-chip-copy,
.provider-rider-chip.is-copied .provider-rider-chip-copy {
  color: var(--md-sys-color-primary);
}
.provider-rider-chip.is-copied .provider-rider-chip-copy {
  color: #16a34a;
}
[data-theme="dark"] .provider-rider-chip {
  background: var(--md-sys-color-surface-container-lowest);
}
.table-pagination {
  display: flex;
  justify-content: stretch;
  align-items: center;
  padding: 16px 20px 18px;
  border-top: 1px solid var(--border);
  background: var(--md-sys-color-surface-container-lowest);
}
.app-pagination {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 20px;
}
.app-pagination-meta {
  margin: 0;
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  color: var(--md-sys-color-on-surface-variant);
  font-size: .84rem;
  font-weight: 400;
}
.app-pagination-range {
  color: var(--md-sys-color-on-surface-variant);
  font-size: .84rem;
  font-weight: 400;
  line-height: 1.4;
}
.app-pagination-perpage {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
}
.app-pagination-perpage-label {
  color: var(--text-muted, #64748B);
  font-size: .84rem;
  font-weight: 500;
  white-space: nowrap;
}
.app-pagination-perpage-select {
  appearance: none;
  min-width: 72px;
  height: 34px;
  padding: 0 32px 0 12px;
  border-radius: 10px;
  border: 1px solid var(--card-border);
  background-color: var(--md-sys-color-surface-container-lowest);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='%2394A3B8'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 8px center;
  color: var(--text);
  font-family: var(--font-body);
  font-size: .84rem;
  font-weight: 500;
  line-height: 1;
  cursor: pointer;
  outline: none;
}
html[dir="rtl"] .app-pagination-perpage-select {
  padding: 0 12px 0 32px;
  background-position: left 8px center;
}
.app-pagination-perpage-select:hover,
.app-pagination-perpage-select:focus {
  border-color: var(--card-border-hover);
}
[data-theme="dark"] .app-pagination-perpage-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='%239CA3AF'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
}
.app-pagination-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
  border-radius: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}
.app-pagination-btn {
  min-width: 34px;
  height: 34px;
  padding: 0 8px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  background: transparent;
  color: var(--md-sys-color-on-surface-variant);
  font-size: .875rem;
  font-weight: 500;
  text-decoration: none;
  transition: background .15s ease, color .15s ease;
  line-height: 1;
}
.app-pagination-btn .material-symbols-outlined {
  font-size: 20px;
  color: inherit;
}
a.app-pagination-btn:hover {
  background: color-mix(in srgb, var(--md-sys-color-on-surface) 6%, transparent);
  color: var(--md-sys-color-on-surface);
}
.app-pagination-list .is-active .app-pagination-btn {
  background: var(--md-sys-color-primary);
  color: #fff;
  font-weight: 700;
  box-shadow: none;
}
.app-pagination-list .is-disabled .app-pagination-btn {
  opacity: .35;
  cursor: default;
}
.app-pagination-btn.is-ellipsis {
  min-width: 28px;
  opacity: .5;
  font-weight: 500;
}
@media (max-width: 720px) {
  .app-pagination {
    justify-content: center;
  }
  .app-pagination-meta {
    width: 100%;
    justify-content: center;
  }
  .app-pagination-list {
    margin-inline: auto;
  }
}
[data-theme="dark"] .table-pagination {
  background: var(--md-sys-color-surface-container-lowest);
  border-top-color: rgba(255, 255, 255, .08);
}
[data-theme="dark"] .app-pagination-list {
  background: transparent;
}
[data-theme="dark"] .app-pagination-range {
  color: var(--md-sys-color-on-surface-variant);
}
[data-theme="dark"] .app-pagination-list .is-active .app-pagination-btn {
  background: var(--md-sys-color-primary);
  color: var(--md-sys-color-on-primary);
  box-shadow: none;
}
[data-theme="dark"] a.app-pagination-btn:hover {
  background: #3A3B3C;
  color: #E4E6EB;
}
.driver-combobox {
  position: relative;
  max-width: 320px;
}
.driver-combobox-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  text-align: start;
  cursor: pointer;
}
.driver-combobox-trigger-text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.driver-combobox-trigger-text.is-placeholder {
  color: var(--md-sys-color-on-surface-variant);
}
.driver-combobox-menu {
  position: absolute;
  inset-inline: 0;
  top: calc(100% + 6px);
  z-index: 60;
  background: var(--md-sys-color-surface-container-lowest);
  border: 1px solid color-mix(in srgb, var(--md-sys-color-outline-variant) 75%, transparent);
  border-radius: 14px;
  box-shadow: var(--elev-3);
  overflow: hidden;
}
.driver-combobox-menu[data-placement="top"] {
  top: auto;
  bottom: calc(100% + 6px);
}
.driver-combobox.is-open .driver-combobox-menu {
  display: block;
}
.filters .driver-combobox {
  width: 240px;
  min-width: 220px;
  max-width: 260px;
  flex: 0 1 240px;
}
.driver-combobox.is-disabled {
  pointer-events: none;
  opacity: .55;
}
.notice-driver-invalid .driver-combobox-trigger,
.driver-combobox.is-invalid .driver-combobox-trigger {
  border-color: var(--md-sys-color-error, #b3261e);
}
.driver-combobox-search {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-bottom: 1px solid color-mix(in srgb, var(--md-sys-color-outline-variant) 70%, transparent);
  background: var(--md-sys-color-surface-container-low);
}
.driver-combobox-search .material-symbols-outlined {
  font-size: 18px;
  color: var(--md-sys-color-on-surface-variant);
}
.driver-combobox-search input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--md-sys-color-on-surface);
  font-size: .9rem;
}
.driver-combobox-list {
  list-style: none;
  margin: 0;
  padding: 6px;
  max-height: 260px;
  overflow-y: auto;
}
.driver-combobox-option {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 12px;
  border-radius: 10px;
  cursor: pointer;
}
.driver-combobox-option:hover,
.driver-combobox-option.is-selected {
  background: color-mix(in srgb, var(--md-sys-color-primary) 10%, transparent);
}
.driver-combobox-option strong {
  font-size: .9rem;
  font-weight: 700;
  color: var(--md-sys-color-on-surface);
}
.driver-combobox-option small {
  font-size: .75rem;
  color: var(--md-sys-color-on-surface-variant);
}
.driver-combobox-status {
  padding: 8px 12px 12px;
  font-size: .78rem;
  color: var(--md-sys-color-on-surface-variant);
  text-align: center;
}

/* Legacy bootstrap pagination fallback */
.pagination {
  gap: 4px;
}
.pagination .page-link {
  border-radius: 10px !important;
  margin: 0;
  border: 1px solid transparent;
  color: #4E5D73;
  background: transparent;
  min-width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 500;
  box-shadow: none;
}
.pagination .page-item.active .page-link {
  background: var(--md-sys-color-primary);
  color: #fff;
  border-color: transparent;
  box-shadow: none;
}
.pagination .page-item.disabled .page-link {
  opacity: .35;
  background: transparent;
}
.pagination .page-link:hover {
  background: #F1F5F9;
  color: #121D2E;
}
hr {
  border-color: var(--md-sys-color-outline-variant);
  opacity: 1;
}

.md-ripple { position: relative; overflow: hidden; }
.md-ripple::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at var(--x, 50%) var(--y, 50%), color-mix(in srgb, currentColor 18%, transparent) 0%, transparent 60%);
  opacity: 0;
  transition: opacity var(--motion);
  pointer-events: none;
}
.md-ripple:active::after { opacity: 1; }

/* Driver documents workspace */
.files-section {
  margin-top: 20px;
  background: var(--md-sys-color-surface-container-lowest);
  border: 1px solid color-mix(in srgb, var(--md-sys-color-outline-variant) 55%, transparent);
  border-radius: var(--radius);
  box-shadow: var(--elev-1);
  overflow: hidden;
}
.files-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--md-sys-color-outline-variant);
  background: var(--md-sys-color-surface-container-low);
}
.files-section-head h2 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
}
.files-section-head p {
  margin: 4px 0 0;
  color: var(--md-sys-color-on-surface-variant);
  font-size: .85rem;
}
.files-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 14px;
  padding: 16px;
}
.file-card {
  border: 3px solid var(--md-sys-color-outline-variant);
  border-radius: 14px;
  background: var(--md-sys-color-surface-container-lowest);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: border-color var(--motion), box-shadow var(--motion), transform var(--motion-fast);
}
.file-card:hover {
  box-shadow: var(--elev-1);
  transform: translateY(-1px);
}
.file-card.status-pending_review { border-color: color-mix(in srgb, var(--warning) 55%, var(--md-sys-color-outline-variant)); }
.file-card.status-approved { border-color: color-mix(in srgb, var(--success) 55%, var(--md-sys-color-outline-variant)); }
.file-card.status-rejected { border-color: color-mix(in srgb, var(--danger) 55%, var(--md-sys-color-outline-variant)); }
.file-card.status-expired,
.file-card.is-past-expiry {
  border-style: dashed;
  border-color: var(--danger);
}
.file-card.is-approaching-expiry {
  border-style: dashed;
  border-color: var(--warning);
}
.file-card.is-past-expiry .file-detail.danger,
.file-card.is-approaching-expiry .file-detail.warning {
  font-weight: 600;
}

.save-loading[hidden] {
  display: none !important;
}
.save-loading {
  position: fixed;
  inset: 0;
  z-index: 6000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.save-loading-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, .42);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.save-loading-card {
  position: relative;
  z-index: 1;
  width: min(340px, 100%);
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 22px 22px;
  border-radius: 18px;
  background: var(--md-sys-color-surface-container-lowest);
  border: 1px solid color-mix(in srgb, var(--md-sys-color-outline-variant) 70%, transparent);
  box-shadow: var(--elev-3);
  animation: saveLoadingIn 180ms ease-out;
}
.save-loading-spinner {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 3px solid color-mix(in srgb, var(--md-sys-color-primary) 18%, transparent);
  border-top-color: var(--md-sys-color-primary);
  flex-shrink: 0;
  animation: saveLoadingSpin .75s linear infinite;
}
.save-loading-copy {
  min-width: 0;
}
.save-loading-copy strong {
  display: block;
  font-size: 1rem;
  font-weight: 700;
  color: var(--md-sys-color-on-surface);
}
.save-loading-copy p {
  margin: 4px 0 0;
  font-size: .88rem;
  color: var(--md-sys-color-on-surface-variant);
}
@keyframes saveLoadingSpin {
  to { transform: rotate(360deg); }
}
@keyframes saveLoadingIn {
  from { opacity: 0; transform: translateY(8px) scale(.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
[data-theme="dark"] .save-loading-backdrop {
  background: rgba(0, 0, 0, .55);
}
.file-card-top {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.file-card-status {
  margin-inline-start: auto;
  flex-shrink: 0;
  align-self: flex-start;
}
.file-type-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  background: var(--md-sys-color-surface-container-high);
  color: var(--md-sys-color-on-surface-variant);
}
.file-type-icon .material-symbols-outlined { font-size: 26px; }
.file-type-icon.kind-image { background: color-mix(in srgb, #7B1FA2 12%, transparent); color: #7B1FA2; }
.file-type-icon.kind-pdf { background: color-mix(in srgb, #C62828 12%, transparent); color: #C62828; }
.file-type-icon.kind-docs { background: color-mix(in srgb, #1565C0 12%, transparent); color: #1565C0; }
.file-type-icon.kind-empty { background: var(--v-primary-soft); color: var(--md-sys-color-primary); }
[data-theme="dark"] .file-type-icon.kind-image,
[data-theme="dark"] .file-type-icon.kind-pdf,
[data-theme="dark"] .file-type-icon.kind-docs,
[data-theme="dark"] .file-type-icon.kind-empty { color: #fff; background: rgba(255,255,255,.08); }
.file-card-title {
  margin: 0;
  font-size: .98rem;
  font-weight: 700;
  line-height: 1.3;
  padding-inline-end: 4px;
}
.file-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
  align-items: center;
}
.chip-mini {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--v-primary-soft);
  color: var(--md-sys-color-primary);
  font-size: .7rem;
  font-weight: 700;
}
.chip-mini.muted,
.chip-mini.is-muted {
  background: var(--md-sys-color-surface-container-high);
  color: var(--md-sys-color-on-surface-variant);
}
.chip-mini.is-success {
  background: color-mix(in srgb, var(--success) 16%, transparent);
  color: var(--success);
}
.chip-mini.is-warning {
  background: color-mix(in srgb, var(--warning) 16%, transparent);
  color: var(--warning);
}
.chip-mini.is-danger {
  background: color-mix(in srgb, var(--danger) 14%, transparent);
  color: var(--danger);
}
.chip-mini.is-info {
  background: var(--v-primary-soft);
  color: var(--md-sys-color-primary);
}
.chip-mini.is-dark {
  background: var(--md-sys-color-inverse-surface);
  color: var(--md-sys-color-inverse-on-surface);
}
[data-theme="dark"] .chip-mini.is-info {
  background: rgba(255,255,255,.12);
  color: #fff;
}
.file-name-label {
  font-size: .78rem;
  color: var(--md-sys-color-on-surface-variant);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
}
.file-name-label.is-empty {
  color: #B54708;
  background: color-mix(in srgb, var(--warning) 14%, transparent);
  border: 1px solid color-mix(in srgb, var(--warning) 28%, transparent);
  border-radius: 999px;
  padding: 2px 10px;
  font-weight: 600;
}
[data-theme="dark"] .file-name-label.is-empty {
  color: #FFCC80;
  background: rgba(237, 108, 2, .16);
  border-color: rgba(237, 108, 2, .35);
}
.req-star {
  color: var(--danger);
  font-weight: 700;
  margin-inline-start: 2px;
}
.file-card-details { display: flex; flex-direction: column; gap: 8px; }
.file-detail {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: .82rem;
}
.file-detail .material-symbols-outlined { font-size: 18px; margin-top: 1px; }
.file-detail.muted { color: var(--md-sys-color-on-surface-variant); }
.file-detail.danger { color: var(--danger); }
.file-detail.warning {
  color: #B54708;
  background: color-mix(in srgb, var(--warning) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--warning) 28%, transparent);
  border-radius: 10px;
  padding: 8px 10px;
  font-weight: 600;
}
[data-theme="dark"] .file-detail.warning {
  color: #FFCC80;
  background: rgba(237, 108, 2, .16);
  border-color: rgba(237, 108, 2, .35);
}

.btn-replace {
  background: color-mix(in srgb, #EF6C00 14%, transparent);
  color: #E65100;
  border: 1px solid color-mix(in srgb, #EF6C00 30%, transparent);
}
.btn-replace:hover {
  background: color-mix(in srgb, #EF6C00 22%, transparent);
  color: #BF360C;
  box-shadow: var(--elev-1);
}
[data-theme="dark"] .btn-replace {
  background: rgba(255, 167, 38, .16);
  color: #FFCC80;
  border-color: rgba(255, 167, 38, .35);
}
[data-theme="dark"] .btn-replace:hover {
  background: rgba(255, 167, 38, .24);
  color: #FFE0B2;
}

.driver-show-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
  padding: 18px 20px;
  background: var(--md-sys-color-surface-container-lowest);
  border: 1px solid color-mix(in srgb, var(--md-sys-color-outline-variant) 55%, transparent);
  border-radius: var(--radius);
  box-shadow: var(--elev-1);
}
.driver-show-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  flex-shrink: 0;
}
.driver-contact {
  position: relative;
  display: inline-flex;
}
.driver-contact.is-icon {
  display: inline-flex;
  vertical-align: middle;
}
.table-actions .driver-contact-menu:not(.is-portaled) {
  inset-inline-end: auto;
  inset-inline-start: 0;
}
.driver-contact-menu {
  position: absolute;
  inset-inline-end: 0;
  top: calc(100% + 8px);
  min-width: 200px;
  background: var(--md-sys-color-surface-container-lowest);
  border: 1px solid color-mix(in srgb, var(--md-sys-color-outline-variant) 70%, transparent);
  border-radius: 14px;
  box-shadow: var(--elev-3);
  padding: 8px;
  z-index: 40;
  animation: menuIn var(--motion-fast) both;
  pointer-events: auto;
}
.driver-contact-menu.is-portaled {
  position: fixed !important;
  /* top/left come from JS — do not force inset:auto !important or positioning breaks */
  z-index: 5000 !important;
  margin: 0;
  animation: none;
  pointer-events: auto;
}
.driver-contact-menu[hidden] {
  display: none !important;
}
.driver-contact.is-open > .driver-contact-toggle {
  position: relative;
  z-index: 1;
}
.driver-contact-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--md-sys-color-on-surface);
  font-size: .9rem;
  font-weight: 500;
  text-align: start;
  text-decoration: none;
  cursor: pointer;
  transition: background var(--motion-fast);
}
.driver-contact-item:hover {
  background: color-mix(in srgb, var(--md-sys-color-primary) 10%, transparent);
}
.driver-contact-item .material-symbols-outlined {
  font-size: 18px;
  color: var(--md-sys-color-on-surface-variant);
}
.driver-contact-wa-icon {
  flex-shrink: 0;
  color: #25d366;
}
.driver-contact-item--whatsapp {
  color: inherit;
}
.contact-action-call {
  display: none;
}
.contact-action-copy {
  display: flex;
}
@media (max-width: 768px) {
  .contact-action-call {
    display: flex;
  }
  .contact-action-copy {
    display: none;
  }
}
.expiry-driver-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.expiry-driver-card {
  background: var(--md-sys-color-surface-container-lowest);
  border: 1px solid color-mix(in srgb, var(--md-sys-color-outline-variant) 55%, transparent);
  border-radius: var(--radius);
  box-shadow: var(--elev-1);
  padding: 16px 18px;
}
.expiry-driver-main {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}
.expiry-driver-identity {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  min-width: 0;
}
.expiry-driver-name {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
}
.expiry-driver-phone {
  margin-top: 2px;
  color: var(--md-sys-color-on-surface-variant);
  font-size: .88rem;
}
.expiry-doc-list {
  list-style: none;
  margin: 10px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.expiry-doc-list li {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: .86rem;
}
.expiry-doc-name {
  color: var(--md-sys-color-on-surface);
}
.expiry-doc-date {
  font-size: .78rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 999px;
}
.expiry-doc-date.is-soon {
  background: color-mix(in srgb, #ff9800 16%, transparent);
  color: #e65100;
}
.expiry-doc-date.is-expired {
  background: color-mix(in srgb, #c62828 14%, transparent);
  color: #c62828;
}
.expiry-driver-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  flex-shrink: 0;
}
@media (max-width: 768px) {
  .expiry-driver-main {
    flex-direction: column;
  }
  .expiry-driver-actions,
  .driver-show-actions {
    width: 100%;
  }
  .expiry-driver-actions .btn-primary,
  .expiry-driver-actions .btn-soft,
  .driver-show-actions .btn-outline,
  .driver-show-actions .btn-soft,
  .driver-show-actions .driver-contact,
  .expiry-driver-actions .driver-contact {
    flex: 1 1 auto;
  }
  .driver-contact-toggle {
    width: 100%;
    justify-content: center;
  }
}
.driver-show-identity {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}
.driver-show-identity h1 {
  margin: 0;
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: -.02em;
}
.driver-show-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 6px;
  color: var(--md-sys-color-on-surface-variant);
  font-size: .88rem;
}
.driver-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.driver-meta-item .material-symbols-outlined { font-size: 16px; }
.driver-meta-item strong {
  color: var(--md-sys-color-on-surface);
  font-weight: 700;
}
.driver-meta-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--md-sys-color-outline);
}

.completion-alert {
  display: flex;
  gap: 14px;
  align-items: stretch;
  padding: 16px 18px;
  border-radius: var(--radius);
  margin-bottom: 18px;
  border: 1px solid transparent;
}
.completion-alert.is-incomplete {
  background: color-mix(in srgb, var(--warning) 10%, #fff);
  border-color: color-mix(in srgb, var(--warning) 30%, transparent);
}
.completion-alert.is-complete {
  background: color-mix(in srgb, var(--success) 10%, #fff);
  border-color: color-mix(in srgb, var(--success) 30%, transparent);
}
[data-theme="dark"] .completion-alert.is-incomplete {
  background: rgba(237,108,2,.14);
  border-color: rgba(237,108,2,.4);
}
[data-theme="dark"] .completion-alert.is-complete {
  background: rgba(46,125,50,.16);
  border-color: rgba(46,125,50,.4);
}
.completion-alert-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.completion-alert.is-incomplete .completion-alert-icon {
  background: color-mix(in srgb, var(--warning) 18%, transparent);
  color: #E65100;
}
.completion-alert.is-complete .completion-alert-icon {
  background: color-mix(in srgb, var(--success) 18%, transparent);
  color: var(--success);
}
[data-theme="dark"] .completion-alert.is-incomplete .completion-alert-icon,
[data-theme="dark"] .completion-alert.is-complete .completion-alert-icon { color: #fff; }
.completion-alert-body { flex: 1; min-width: 0; }
.completion-alert-body strong {
  display: block;
  font-size: 1rem;
  font-weight: 750;
  margin-bottom: 2px;
}
.completion-alert-body p {
  margin: 0;
  color: var(--md-sys-color-on-surface-variant);
  font-size: .88rem;
}
.completion-alert-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}
.completion-alert-stats {
  text-align: end;
  flex-shrink: 0;
}
.completion-stat {
  display: block;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -.03em;
  line-height: 1.1;
  color: #E65100;
}
.completion-alert.is-complete .completion-stat { color: var(--success); }
.completion-alert-stats small {
  font-size: .72rem;
  color: var(--md-sys-color-on-surface-variant);
}
.completion-alert-progress { margin-top: 12px; }
.completion-bar {
  height: 10px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--warning) 16%, var(--md-sys-color-surface-container-high));
  overflow: hidden;
}
.completion-alert.is-complete .completion-bar {
  background: color-mix(in srgb, var(--success) 16%, var(--md-sys-color-surface-container-high));
}
.completion-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #F57C00, #FFB300);
  transition: width var(--motion);
}
.completion-alert.is-complete .completion-bar span {
  background: linear-gradient(90deg, #2E7D32, #66BB6A);
}
.completion-bar-meta {
  display: flex;
  justify-content: space-between;
  margin-top: 6px;
  font-size: .78rem;
  font-weight: 700;
  color: var(--md-sys-color-on-surface-variant);
}

@media (max-width: 700px) {
  .driver-show-hero { flex-direction: column; align-items: flex-start; }
  .completion-alert-top { flex-direction: column; }
  .completion-alert-stats { text-align: start; }
}
.file-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
  padding-top: 4px;
}
.file-card-actions .btn-outline.disabled,
.file-card-actions .btn-outline[aria-disabled="true"] {
  opacity: .45;
  pointer-events: none;
}

.doc-modal[hidden] { display: none !important; }
.doc-modal {
  position: fixed;
  inset: 0;
  z-index: 5200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  pointer-events: none;
}
.doc-modal:not([hidden]) {
  pointer-events: auto;
}
.doc-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, .48);
  backdrop-filter: blur(2px);
  z-index: 0;
}
.doc-modal-panel {
  position: relative;
  z-index: 1;
  width: min(520px, 100%);
  max-height: min(86vh, 720px);
  display: flex;
  flex-direction: column;
  background: var(--md-sys-color-surface-container-lowest);
  border-radius: var(--radius-lg);
  box-shadow: var(--elev-3);
  border: 1px solid var(--md-sys-color-outline-variant);
  overflow: hidden;
  animation: docModalIn 180ms ease-out;
  pointer-events: auto;
}
@keyframes docModalIn {
  from { opacity: 0; transform: translateY(10px) scale(.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.doc-modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 20px 12px;
}
.doc-modal-header h3 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 700;
}
.doc-modal-body {
  padding: 8px 20px 20px;
  overflow: auto;
  min-height: 0;
}
.doc-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 18px;
  flex-wrap: wrap;
}
.doc-logs-state {
  padding: 12px 0;
  color: var(--md-sys-color-on-surface-variant);
  font-size: .92rem;
}
.doc-logs-state.is-error {
  color: #b91c1c;
}
.doc-logs-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: min(60vh, 420px);
  overflow: auto;
}
.doc-log-item {
  border: 1px solid color-mix(in srgb, var(--md-sys-color-outline-variant) 70%, transparent);
  border-radius: 12px;
  padding: 10px 12px;
  background: var(--md-sys-color-surface-container-low);
}
.doc-log-item-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}
.doc-log-item-chips {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}
.doc-log-item-meta {
  margin-top: 4px;
  color: var(--md-sys-color-on-surface-variant);
  font-size: .82rem;
}
.doc-log-item-notes {
  margin-top: 6px;
  font-size: .88rem;
}
.doc-dropzone {
  border: 1.5px dashed color-mix(in srgb, var(--md-sys-color-outline) 50%, var(--md-sys-color-outline-variant));
  border-radius: 14px;
  background: var(--md-sys-color-surface-container-low);
  padding: 22px 16px;
  cursor: pointer;
  transition: border-color var(--motion), background var(--motion);
  position: relative;
}
.doc-dropzone.is-dragover,
.doc-dropzone:hover {
  border-color: var(--md-sys-color-primary);
  background: color-mix(in srgb, var(--md-sys-color-primary) 5%, var(--md-sys-color-surface-container-low));
}
.doc-dropzone-input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
  width: 1px;
  height: 1px;
}
.doc-dropzone-idle {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  text-align: center;
  color: var(--md-sys-color-on-surface-variant);
}
.doc-dropzone-idle .material-symbols-outlined {
  font-size: 36px;
  color: var(--md-sys-color-primary);
  margin-bottom: 4px;
}
.doc-dropzone-idle strong {
  color: var(--md-sys-color-on-surface);
  font-size: .95rem;
}
.doc-dropzone.has-error {
  border-color: var(--danger);
  background: color-mix(in srgb, var(--danger) 6%, var(--md-sys-color-surface-container-low));
}
.doc-selected-file {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
}
.doc-dropzone-file .material-symbols-outlined {
  font-size: 28px;
  color: var(--md-sys-color-primary);
}
.doc-dropzone-file strong {
  display: block;
  font-size: .9rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 260px;
}
.doc-dropzone-file small {
  color: var(--md-sys-color-on-surface-variant);
}
.doc-file-remove {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 10px;
  background: color-mix(in srgb, var(--danger) 12%, transparent);
  color: var(--danger);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: background var(--motion-fast), transform var(--motion-fast);
}
.doc-file-remove:hover {
  background: color-mix(in srgb, var(--danger) 20%, transparent);
  transform: scale(1.04);
}
.doc-file-remove .material-symbols-outlined { font-size: 18px; color: inherit; }
.field-error {
  color: var(--danger);
  font-size: .78rem;
  margin-top: 6px;
  font-weight: 600;
}
.md-field.has-error .md-input,
.md-field.has-error .form-control {
  border-color: var(--danger) !important;
}
.btn-compact {
  min-height: 32px !important;
  padding: 4px 12px !important;
  font-size: .78rem !important;
  gap: 4px !important;
  border-radius: 999px;
}
.btn-compact .material-symbols-outlined { font-size: 15px !important; }
.file-card-actions .btn-success,
.file-card-actions .btn-danger,
.file-card-actions .btn-primary,
.file-card-actions .btn-outline,
.file-card-actions .btn-replace {
  min-height: 32px;
  padding: 4px 12px;
  font-size: .78rem;
}
.doc-modal.is-uploading .doc-modal-backdrop {
  pointer-events: none;
}
.doc-modal.is-uploading [data-doc-modal-close],
.doc-modal.is-uploading [data-doc-cancel-btn],
.doc-modal.is-uploading [data-doc-close-btn] {
  opacity: .35;
  pointer-events: none;
  cursor: not-allowed;
}
.doc-modal.is-uploading .doc-dropzone,
.doc-modal.is-uploading .doc-file-remove {
  pointer-events: none;
  opacity: .75;
}

.doc-preview-panel {
  width: min(960px, 100%);
  max-height: min(92vh, 900px);
}
.doc-preview-body {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  min-height: min(62vh, 620px);
  background: color-mix(in srgb, var(--md-sys-color-surface-container-low) 80%, #0f172a 6%);
}
.doc-preview-loading {
  text-align: center;
  color: var(--md-sys-color-on-surface-variant);
  padding: 24px;
}
.doc-preview-image {
  display: block;
  max-width: 100%;
  max-height: min(68vh, 680px);
  width: auto;
  height: auto;
  margin: 0 auto;
  object-fit: contain;
  border-radius: 10px;
  box-shadow: var(--elev-2);
  background: #fff;
}
.doc-preview-pdf {
  width: 100%;
  height: min(68vh, 680px);
  border: 0;
  border-radius: 10px;
  background: #fff;
}
.doc-preview-fallback {
  text-align: center;
  padding: 28px 16px;
  color: var(--md-sys-color-on-surface-variant);
}
.doc-preview-fallback .material-symbols-outlined {
  font-size: 42px;
  color: var(--md-sys-color-primary);
  margin-bottom: 8px;
}
.doc-preview-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
  padding: 12px 20px 18px;
  border-top: 1px solid var(--md-sys-color-outline-variant);
}

.provider-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  max-width: 100%;
}
.provider-badge-logo,
.provider-badge-fallback {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  flex-shrink: 0;
  object-fit: cover;
  background: var(--md-sys-color-surface-container-high);
}
.provider-badge-fallback {
  display: inline-grid;
  place-items: center;
  font-size: .68rem;
  font-weight: 800;
  color: var(--md-sys-color-primary);
  background: var(--v-primary-soft);
}
.provider-badge-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.2;
}
.provider-badge-text strong {
  font-size: .88rem;
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.provider-badge-text small {
  font-size: .72rem;
  color: var(--md-sys-color-on-surface-variant);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.provider-badge.size-sm .provider-badge-logo,
.provider-badge.size-sm .provider-badge-fallback {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  font-size: .6rem;
}
.provider-badge.size-sm .provider-badge-text strong { font-size: .8rem; }
.provider-badge.size-lg .provider-badge-logo,
.provider-badge.size-lg .provider-badge-fallback {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  font-size: .8rem;
}
.provider-badge.size-lg .provider-badge-text strong { font-size: 1rem; }
.provider-chips .chip {
  flex-direction: row;
  align-items: center;
  gap: 8px;
}
.provider-chips .chip .provider-badge-text small {
  display: block;
}
.doc-upload-progress { margin-top: 14px; }
.doc-upload-progress-bar {
  height: 8px;
  border-radius: 999px;
  background: var(--md-sys-color-surface-container-high);
  overflow: hidden;
}
.doc-upload-progress-bar span {
  display: block;
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: var(--gradient-primary);
  transition: width 120ms linear;
}
.doc-upload-progress-meta {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
  font-size: .8rem;
  color: var(--md-sys-color-on-surface-variant);
}

@media (max-width: 1500px) {
  .stat-grid,
  .stat-grid-4 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 1200px) {
  .stat-grid,
  .stat-grid-2,
  .stat-grid-3,
  .stat-grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat-card.stat-compact .value {
    font-size: 1.12rem;
  }
}
@media (max-width: 1100px) {
  .stat-grid,
  .stat-grid-2,
  .stat-grid-3,
  .stat-grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .auth-shell {
    grid-template-columns: 1fr;
    min-height: 100vh;
  }
  .auth-visual {
    min-height: 280px;
    padding: 1.75rem 1.25rem;
    justify-content: flex-end;
  }
  .auth-visual-copy {
    width: 100%;
    padding: 1rem 1.1rem;
    gap: 0.55rem;
  }
  .auth-visual-copy h1 {
    font-size: 1.65rem;
    max-width: none;
  }
  .auth-visual-body {
    font-size: 0.95rem;
    max-width: none;
  }
  .auth-rider-main,
  .auth-float-chip-b,
  .auth-float-chip-d,
  .auth-payroll-card,
  .auth-map-grid {
    display: none;
  }
  .auth-route-svg {
    opacity: 0.55;
  }
  .auth-panel {
    min-height: calc(100vh - 260px);
    padding: 1.75rem 1.25rem 2.25rem;
  }
  .auth-card-head h2 {
    font-size: 1.35rem;
  }
.app-shell.sidebar-collapsed .sidebar {
    width: var(--sidebar-width);
    padding: 12px;
  }
  .app-shell.sidebar-collapsed .brand-text,
  .app-shell.sidebar-collapsed .nav-label {
    opacity: 1;
    width: auto;
    pointer-events: auto;
  }
  .app-shell.sidebar-collapsed .nav-section {
    display: block;
  }
  .app-shell.sidebar-collapsed .nav-link {
    justify-content: flex-start;
    padding-inline: 16px;
    gap: 12px;
  }
  .app-shell.sidebar-collapsed .nav-group.is-open > .nav-group-items {
    display: block;
  }
  .app-shell.sidebar-collapsed .nav-group-chevron {
    display: inline-grid;
  }
  .app-shell.sidebar-collapsed .nav-group-toggle .nav-count {
    display: inline-flex;
  }
  .sidebar {
    position: fixed;
    inset-inline-start: 0;
    top: 0;
    width: var(--sidebar-width);
    height: 100vh;
    height: 100dvh;
    transform: translateX(-110%);
    box-shadow: var(--elev-3);
    z-index: 5600;
    transition: transform .22s ease;
    overflow-x: hidden;
    overflow-y: auto;
  }
  html[dir="rtl"] .sidebar { transform: translateX(110%); }
  .sidebar.open,
  html[dir="rtl"] .sidebar.open {
    transform: translateX(0);
  }
  .sidebar-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, .42);
    z-index: 5590;
    border: 0;
    padding: 0;
    cursor: pointer;
  }
  .page-header {
    flex-direction: column;
    align-items: stretch;
  }
  .page-header-actions {
    width: 100%;
  }
  .page-header-actions .btn-primary,
  .page-header-actions .btn-outline {
    width: 100%;
    justify-content: center;
  }
  .stat-grid,
  .stat-grid-2,
  .stat-grid-3,
  .stat-grid-4 { grid-template-columns: 1fr; }
  .filters .md-field,
  .filters .filter-search,
  .filters .driver-combobox {
    width: 100%;
    max-width: none;
    flex: 1 1 100%;
  }
  .page-content { padding: 8px 16px 100px; }
  .quick-action-label {
    font-size: .82rem;
  }
}

.perf-score-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 20px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--md-sys-color-outline-variant);
  box-shadow: none;
}
.perf-score-box-main {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}
.perf-score-box-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.perf-score-box-icon .material-symbols-outlined {
  font-size: 26px;
}
.perf-score-box-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.perf-score-box-label {
  font-size: .8rem;
  font-weight: 700;
  opacity: .85;
}
.perf-score-box-value {
  font-size: 1.85rem;
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -.02em;
}
.perf-score-box-tier {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: .9rem;
  font-weight: 800;
  white-space: nowrap;
}
.perf-score-box.is-gold {
  background: color-mix(in srgb, #f59e0b 16%, var(--md-sys-color-surface-container-lowest));
  border-color: color-mix(in srgb, #f59e0b 40%, transparent);
  color: #92400e;
}
.perf-score-box.is-gold .perf-score-box-icon {
  background: color-mix(in srgb, #f59e0b 22%, transparent);
  color: #b45309;
}
.perf-score-box.is-gold .perf-score-box-tier {
  background: color-mix(in srgb, #f59e0b 24%, transparent);
}
.perf-score-box.is-green {
  background: color-mix(in srgb, #16a34a 14%, var(--md-sys-color-surface-container-lowest));
  border-color: color-mix(in srgb, #16a34a 35%, transparent);
  color: #166534;
}
.perf-score-box.is-green .perf-score-box-icon {
  background: color-mix(in srgb, #16a34a 18%, transparent);
  color: #15803d;
}
.perf-score-box.is-green .perf-score-box-tier {
  background: color-mix(in srgb, #16a34a 20%, transparent);
}
.perf-score-box.is-average,
.perf-score-box.is-warning {
  background: color-mix(in srgb, #eab308 16%, var(--md-sys-color-surface-container-lowest));
  border-color: color-mix(in srgb, #eab308 40%, transparent);
  color: #854d0e;
}
.perf-score-box.is-average .perf-score-box-icon,
.perf-score-box.is-warning .perf-score-box-icon {
  background: color-mix(in srgb, #eab308 22%, transparent);
  color: #a16207;
}
.perf-score-box.is-average .perf-score-box-tier,
.perf-score-box.is-warning .perf-score-box-tier {
  background: color-mix(in srgb, #eab308 24%, transparent);
}
.perf-score-box.is-danger {
  background: color-mix(in srgb, #dc2626 12%, var(--md-sys-color-surface-container-lowest));
  border-color: color-mix(in srgb, #dc2626 35%, transparent);
  color: #991b1b;
}
.perf-score-box.is-danger .perf-score-box-icon {
  background: color-mix(in srgb, #dc2626 16%, transparent);
  color: #b91c1c;
}
.perf-score-box.is-danger .perf-score-box-tier {
  background: color-mix(in srgb, #dc2626 18%, transparent);
}
[data-theme="dark"] .perf-score-box.is-gold { color: #fcd34d; }
[data-theme="dark"] .perf-score-box.is-green { color: #86efac; }
[data-theme="dark"] .perf-score-box.is-average,
[data-theme="dark"] .perf-score-box.is-warning { color: #fde047; }
[data-theme="dark"] .perf-score-box.is-danger { color: #fca5a5; }
@media (max-width: 640px) {
  .perf-score-box {
    flex-direction: column;
    align-items: flex-start;
  }
}

.perf-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.perf-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: .78rem;
  font-weight: 700;
  border: 1px solid transparent;
}
.perf-legend-item::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.perf-legend-item.is-gold {
  background: color-mix(in srgb, #f59e0b 14%, transparent);
  color: #92400e;
  border-color: color-mix(in srgb, #f59e0b 35%, transparent);
}
.perf-legend-item.is-gold::before { background: #f59e0b; }
.perf-legend-item.is-green {
  background: color-mix(in srgb, #16a34a 12%, transparent);
  color: #166534;
  border-color: color-mix(in srgb, #16a34a 30%, transparent);
}
.perf-legend-item.is-green::before { background: #16a34a; }
.perf-legend-item.is-average,
.perf-legend-item.is-warning {
  background: color-mix(in srgb, #eab308 16%, transparent);
  color: #854d0e;
  border-color: color-mix(in srgb, #eab308 35%, transparent);
}
.perf-legend-item.is-average::before,
.perf-legend-item.is-warning::before { background: #eab308; }
.perf-legend-item.is-danger {
  background: color-mix(in srgb, #dc2626 12%, transparent);
  color: #991b1b;
  border-color: color-mix(in srgb, #dc2626 30%, transparent);
}
.perf-legend-item.is-danger::before { background: #dc2626; }
.perf-legend-item.is-muted {
  background: color-mix(in srgb, var(--md-sys-color-outline-variant) 35%, transparent);
  color: var(--md-sys-color-on-surface-variant);
  border-color: color-mix(in srgb, var(--md-sys-color-outline-variant) 70%, transparent);
}
.perf-legend-item.is-muted::before { background: var(--md-sys-color-outline); }
.perf-legend-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.4rem;
  padding: 0 6px;
  border-radius: 999px;
  background: color-mix(in srgb, currentColor 12%, transparent);
  font-size: .72rem;
  font-weight: 800;
  line-height: 1.4;
}

.company-contact-row {
  display: grid;
  grid-template-columns: minmax(140px, 180px) minmax(160px, 1fr) auto;
  gap: 10px;
  align-items: start;
  margin-bottom: 10px;
}
.company-contact-row.is-with-display {
  grid-template-columns: minmax(120px, 160px) minmax(140px, 1fr) minmax(120px, 1fr) auto;
}
@media (max-width: 900px) {
  .company-contact-row.is-with-display {
    grid-template-columns: 1fr 1fr auto;
  }
  .company-contact-row.is-with-display .md-field-select {
    grid-column: 1 / -1;
  }
}
@media (max-width: 768px) {
  .company-contact-row,
  .company-contact-row.is-with-display {
    grid-template-columns: 1fr;
  }
}

.perf-table {
  min-width: 720px;
}
.perf-table th,
.perf-table td {
  padding: 10px 12px;
}
.perf-table th {
  font-size: .75rem;
  font-weight: 600;
  color: #64748B;
}
.perf-table td {
  font-size: .85rem;
}
.perf-table .perf-score-level-pct {
  font-size: .92rem;
}
.perf-table .perf-tier-badge {
  font-size: .7rem;
  padding: 3px 8px;
}
.perf-table .target-progress-pct,
.perf-table .target-progress-status {
  font-size: .78rem;
}
.perf-table .perf-row td {
  transition: background var(--motion-fast);
}
.copyable-id {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 100%;
  border: 0;
  background: transparent;
  padding: 2px 4px;
  margin: 0;
  border-radius: 8px;
  color: inherit;
  cursor: pointer;
  text-align: start;
  transition: background var(--motion-fast), color var(--motion-fast);
}
.copyable-id:hover {
  background: var(--v-primary-soft);
  color: var(--md-sys-color-primary);
}
.copyable-id.is-empty {
  cursor: default;
  opacity: 0.7;
}
.copyable-id-value {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .82rem;
  background: transparent;
  color: inherit;
  padding: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.copyable-id-icon {
  font-size: 16px;
  color: var(--md-sys-color-on-surface-variant);
  flex-shrink: 0;
}
.copyable-id:hover .copyable-id-icon,
.copyable-id.is-copied .copyable-id-icon {
  color: var(--md-sys-color-primary);
}
.copyable-id.is-copied .copyable-id-icon {
  color: #16a34a;
}
.perf-row.is-clickable {
  cursor: pointer;
}
.perf-row-gold td {
  background: color-mix(in srgb, #f59e0b 10%, transparent);
}
.perf-row-green td {
  background: color-mix(in srgb, #16a34a 9%, transparent);
}
.perf-row-average td,
.perf-row-warning td {
  background: color-mix(in srgb, #eab308 12%, transparent);
}
.perf-row-danger td {
  background: color-mix(in srgb, #dc2626 9%, transparent);
}
.perf-row-muted td {
  background: color-mix(in srgb, var(--md-sys-color-surface-container) 70%, transparent);
  color: var(--md-sys-color-on-surface-variant);
}
.perf-row.is-selected td {
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--md-sys-color-primary) 55%, transparent);
}
.table-modern tbody tr.perf-row-gold:hover td,
[data-theme="dark"] .table-modern tbody tr.perf-row-gold:hover td {
  background: color-mix(in srgb, #f59e0b 6%, transparent);
}
.table-modern tbody tr.perf-row-green:hover td,
[data-theme="dark"] .table-modern tbody tr.perf-row-green:hover td {
  background: color-mix(in srgb, #16a34a 5%, transparent);
}
.table-modern tbody tr.perf-row-average:hover td,
.table-modern tbody tr.perf-row-warning:hover td,
[data-theme="dark"] .table-modern tbody tr.perf-row-average:hover td,
[data-theme="dark"] .table-modern tbody tr.perf-row-warning:hover td {
  background: color-mix(in srgb, #eab308 7%, transparent);
}
.table-modern tbody tr.perf-row-danger:hover td,
[data-theme="dark"] .table-modern tbody tr.perf-row-danger:hover td {
  background: color-mix(in srgb, #dc2626 5%, transparent);
}
.table-modern tbody tr.perf-row-muted:hover td,
[data-theme="dark"] .table-modern tbody tr.perf-row-muted:hover td {
  background: color-mix(in srgb, var(--md-sys-color-surface-container) 45%, transparent);
}
.perf-score-level {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.perf-score-level-pct {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  min-width: 3.5ch;
}
.perf-tier-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: .75rem;
  font-weight: 800;
  white-space: nowrap;
}
.perf-tier-badge.is-gold {
  background: color-mix(in srgb, #f59e0b 18%, transparent);
  color: #92400e;
}
.perf-tier-badge.is-green {
  background: color-mix(in srgb, #16a34a 16%, transparent);
  color: #166534;
}
.perf-tier-badge.is-average,
.perf-tier-badge.is-warning {
  background: color-mix(in srgb, #eab308 20%, transparent);
  color: #854d0e;
}
.perf-tier-badge.is-danger {
  background: color-mix(in srgb, #dc2626 16%, transparent);
  color: #991b1b;
}
.perf-tier-badge.is-muted {
  background: color-mix(in srgb, var(--md-sys-color-outline-variant) 40%, transparent);
  color: var(--md-sys-color-on-surface-variant);
}
[data-theme="dark"] .perf-legend-item.is-gold,
[data-theme="dark"] .perf-tier-badge.is-gold { color: #fcd34d; }
[data-theme="dark"] .perf-legend-item.is-green,
[data-theme="dark"] .perf-tier-badge.is-green { color: #86efac; }
[data-theme="dark"] .perf-legend-item.is-average,
[data-theme="dark"] .perf-legend-item.is-warning,
[data-theme="dark"] .perf-tier-badge.is-average,
[data-theme="dark"] .perf-tier-badge.is-warning { color: #fde047; }
[data-theme="dark"] .perf-legend-item.is-danger,
[data-theme="dark"] .perf-tier-badge.is-danger { color: #fca5a5; }

/* Support page */
.support-hero {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 22px 24px;
  border-radius: calc(var(--radius-lg) + 4px);
  border: 1px solid var(--card-border);
  background: var(--md-sys-color-surface-container-lowest);
  box-shadow: var(--elev-1);
}
.support-hero-logo {
  flex-shrink: 0;
}
.support-hero-logo .app-logo--auth {
  height: 72px;
  max-width: 210px;
  padding: 8px 12px;
  border-radius: 18px;
  box-shadow: none;
  border: 1px solid var(--md-sys-color-outline-variant);
}
.support-hero-logo .app-logo--auth img {
  height: 56px;
  max-width: 186px;
}
.support-hero-copy {
  min-width: 0;
  display: grid;
  gap: 6px;
}
.support-hero-eyebrow {
  margin: 0;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--md-sys-color-primary);
}
html[dir="rtl"] .support-hero-eyebrow {
  letter-spacing: 0;
  text-transform: none;
}
.support-hero-title {
  margin: 0;
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--md-sys-color-on-surface);
  line-height: 1.3;
}
.support-hero-text {
  margin: 0;
  max-width: 58ch;
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--md-sys-color-on-surface-variant);
  line-height: 1.55;
  font-size: .92rem;
}
[data-theme="dark"] .support-hero {
  background: var(--md-sys-color-surface-container-lowest);
  box-shadow: none;
}
@media (max-width: 640px) {
  .support-hero {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    padding: 18px;
  }
}
.support-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
}
.support-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 18px;
  border-radius: calc(var(--radius-lg) + 2px);
  border: 1px solid var(--card-border);
  background: var(--md-sys-color-surface-container-lowest);
  box-shadow: var(--elev-1);
  text-decoration: none;
  color: inherit;
  transition: transform var(--motion), border-color var(--motion), box-shadow var(--motion);
}
.support-card:hover {
  transform: none;
  border-color: var(--card-border-hover);
  box-shadow: var(--elev-2);
  color: inherit;
}
[data-theme="dark"] .support-card:hover {
  box-shadow: none;
}
.support-card-icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  background: color-mix(in srgb, var(--md-sys-color-primary) 12%, transparent);
  color: var(--md-sys-color-primary);
}
.support-card-phone .support-card-icon {
  background: color-mix(in srgb, #0284c7 14%, transparent);
  color: #0369a1;
}
.support-card-email .support-card-icon {
  background: color-mix(in srgb, #1565C0 14%, transparent);
  color: #1565C0;
}
.support-card-whatsapp .support-card-icon {
  background: color-mix(in srgb, #16a34a 14%, transparent);
  color: #15803d;
}
.support-card-instagram .support-card-icon {
  background: color-mix(in srgb, #db2777 14%, transparent);
  color: #be185d;
}
.support-card-facebook .support-card-icon {
  background: color-mix(in srgb, #2563eb 14%, transparent);
  color: #1d4ed8;
}
.support-card-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}
.support-card-label {
  font-size: .78rem;
  font-weight: 600;
  color: var(--md-sys-color-on-surface-variant);
  text-transform: uppercase;
  letter-spacing: .04em;
}
.support-card-copy strong {
  font-size: 1.02rem;
  font-weight: 700;
  word-break: break-word;
}
.support-card-action {
  font-size: .82rem;
  font-weight: 600;
  color: var(--md-sys-color-primary);
}
[data-theme="dark"] .support-card {
  box-shadow: none;
}

.dashboard-hero-brand {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}
.dashboard-hero-brand .app-logo--auth {
  height: 56px;
  max-width: 170px;
  padding: 5px 8px;
  border-radius: 14px;
}
.dashboard-hero-brand .app-logo--auth img {
  height: 46px;
  max-width: 154px;
}
.dashboard-hero-brand h1 {
  margin-top: 2px;
}
@media (max-width: 640px) {
  .dashboard-hero-brand {
    flex-direction: column;
    gap: 12px;
  }
}

/* Payroll import preview — error sheet */
.payroll-preview-panel .panel-body {
  display: grid;
  gap: 4px;
}
.payroll-preview-rows {
  display: grid;
  gap: 16px;
}
.payroll-preview-row-card {
  border: 1px solid color-mix(in srgb, var(--stat-red) 28%, var(--md-sys-color-outline-variant));
  border-radius: 14px;
  padding: 14px 16px;
  background: color-mix(in srgb, var(--stat-red-bg) 35%, var(--md-sys-color-surface));
}
[data-theme="dark"] .payroll-preview-row-card {
  background: color-mix(in srgb, var(--stat-red) 10%, var(--md-sys-color-surface));
}
.payroll-preview-row-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.payroll-preview-sheet {
  min-width: max-content;
  margin: 0;
}
.payroll-preview-sheet th,
.payroll-preview-sheet td {
  white-space: nowrap;
  vertical-align: top;
}
.payroll-preview-sheet th.payroll-preview-rownum,
.payroll-preview-sheet td.payroll-preview-rownum {
  width: 3.5rem;
  text-align: center;
  font-variant-numeric: tabular-nums;
  background: color-mix(in srgb, var(--md-sys-color-surface-variant) 55%, transparent);
}
.payroll-preview-sheet th.is-error,
.payroll-preview-sheet td.is-error {
  background: color-mix(in srgb, var(--stat-red) 18%, var(--md-sys-color-surface)) !important;
  color: var(--stat-red);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--stat-red) 45%, transparent);
  font-weight: 700;
}
.payroll-preview-sheet th.is-ok {
  background: color-mix(in srgb, var(--stat-green, #16a34a) 12%, var(--md-sys-color-surface)) !important;
  color: var(--stat-green, #15803d);
}
.payroll-preview-sheet td.is-empty {
  color: var(--md-sys-color-on-surface-variant);
  font-style: italic;
  font-weight: 500;
}
.payroll-preview-issues {
  border-top: 1px dashed color-mix(in srgb, var(--stat-red) 35%, var(--md-sys-color-outline-variant));
  padding-top: 12px;
}
.payroll-preview-issue-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}
.payroll-preview-issue-list li {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  align-items: baseline;
  padding: 8px 10px;
  border-radius: 10px;
  background: color-mix(in srgb, var(--stat-red-bg) 55%, var(--md-sys-color-surface));
  border: 1px solid color-mix(in srgb, var(--stat-red) 22%, transparent);
}
.payroll-preview-issue-col {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: .78rem;
  font-weight: 700;
  background: color-mix(in srgb, var(--stat-red) 16%, transparent);
  color: var(--stat-red);
}

/* Payroll visibility + import form */
.payroll-visibility-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  border: 1px solid transparent;
  padding: 5px 10px;
  font-size: .78rem;
  font-weight: 700;
  line-height: 1.2;
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease, color .15s ease, transform .15s ease;
}
.payroll-visibility-btn .material-symbols-outlined {
  font-size: 16px;
}
.payroll-visibility-btn.is-visible {
  background: var(--stat-green-bg);
  color: var(--stat-green);
  border-color: color-mix(in srgb, var(--stat-green) 28%, transparent);
}
.payroll-visibility-btn.is-hidden {
  background: var(--stat-orange-bg, #FFF4E5);
  color: var(--stat-orange, #C2410C);
  border-color: color-mix(in srgb, var(--stat-orange, #C2410C) 28%, transparent);
}
.payroll-visibility-btn:hover {
  transform: translateY(-1px);
}
.payroll-import-panel {
  max-width: 560px;
  margin-inline: auto;
}
.payroll-import-body {
  display: grid;
  gap: 18px;
}
.payroll-import-actions {
  display: flex;
  justify-content: flex-start;
}
.payroll-visibility-field {
  display: grid;
  gap: 12px;
}
.md-check-lg {
  gap: 12px;
  font-size: 1rem;
}
.md-check-lg .md-check-ui {
  width: 26px;
  height: 26px;
  border-radius: 8px;
}
.md-check-lg .md-check-ui .material-symbols-outlined {
  font-size: 18px;
}
.payroll-visibility-alert {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.payroll-visibility-alert .material-symbols-outlined {
  font-size: 20px;
  flex-shrink: 0;
  margin-top: 1px;
}
.reports-dropzone.has-error {
  border-color: color-mix(in srgb, var(--stat-red) 55%, transparent);
  background: color-mix(in srgb, var(--stat-red-bg) 45%, transparent);
}

.md-field.has-error .md-select-trigger,
.md-field.has-error .md-input,
.md-select.is-invalid + .md-select-shell .md-select-trigger,
.md-field:has(.md-select.is-invalid) .md-select-trigger {
  border-color: var(--danger) !important;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--danger) 14%, transparent);
}
.md-field.has-error > label,
.md-field:has(.is-invalid) > label {
  color: var(--danger);
}

/* Document requirement visibility switch + locked delete */
.req-visibility-form {
  margin: 0;
  display: inline-flex;
}
.req-visibility-switch {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 4px 10px 4px 6px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: transparent;
  cursor: pointer;
  text-align: start;
  transition: background .15s ease, border-color .15s ease, box-shadow .15s ease;
  min-height: 32px;
}
.req-visibility-track {
  position: relative;
  width: 36px;
  height: 20px;
  border-radius: 999px;
  flex-shrink: 0;
  transition: background .18s ease;
}
.req-visibility-knob {
  position: absolute;
  top: 2px;
  inset-inline-start: 2px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0,0,0,.2);
  transition: transform .18s ease;
}
.req-visibility-copy {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  line-height: 1;
}
.req-visibility-copy strong {
  font-size: .78rem;
  font-weight: 700;
}
.req-visibility-switch.is-on {
  background: color-mix(in srgb, var(--stat-green-bg) 85%, transparent);
  border-color: color-mix(in srgb, var(--stat-green) 28%, transparent);
  color: var(--stat-green);
}
.req-visibility-switch.is-on .req-visibility-track {
  background: var(--stat-green);
}
.req-visibility-switch.is-on .req-visibility-knob {
  transform: translateX(16px);
}
html[dir="rtl"] .req-visibility-switch.is-on .req-visibility-knob {
  transform: translateX(-16px);
}
.req-visibility-switch.is-off {
  background: color-mix(in srgb, var(--stat-orange-bg) 90%, transparent);
  border-color: color-mix(in srgb, var(--stat-orange) 30%, transparent);
  color: var(--stat-orange);
}
.req-visibility-switch.is-off .req-visibility-track {
  background: color-mix(in srgb, var(--stat-orange) 75%, #9a3412);
}
.req-visibility-switch:hover {
  box-shadow: 0 0 0 3px color-mix(in srgb, currentColor 12%, transparent);
}
.req-delete-locked {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  border: 1.5px dashed color-mix(in srgb, var(--md-sys-color-outline) 70%, transparent);
  color: var(--md-sys-color-on-surface-variant);
  background: color-mix(in srgb, var(--md-sys-color-surface-container-low) 80%, transparent);
  cursor: help;
}
.req-delete-locked .material-symbols-outlined {
  font-size: 18px;
}
.req-delete-locked:hover {
  border-color: color-mix(in srgb, var(--stat-orange) 55%, transparent);
  color: var(--stat-orange);
  background: color-mix(in srgb, var(--stat-orange-bg) 70%, transparent);
}

/* Subscription locked shell */
.app-shell--subscription-locked .sidebar--disabled {
  opacity: .55;
  filter: grayscale(.25);
  pointer-events: none;
  user-select: none;
}
.app-shell--subscription-locked .sidebar--disabled .nav-link,
.app-shell--subscription-locked .sidebar--disabled .brand,
.app-shell--subscription-locked .sidebar--disabled .nav-group-toggle {
  cursor: not-allowed;
}
body.subscription-locked .quick-actions {
  display: none !important;
}

/* Subscription gate */
.subscription-gate-alert {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  border-radius: 14px;
  padding: 14px 16px;
}
.subscription-gate-alert-icon {
  font-size: 28px;
  line-height: 1;
  flex: 0 0 auto;
  margin-top: 1px;
}
.subscription-plan-badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: .82rem;
  font-weight: 700;
}
.subscription-plan-badge--monthly {
  color: #1d4ed8;
  background: color-mix(in srgb, #3b82f6 16%, #fff);
}
.subscription-plan-badge--annual {
  color: #b45309;
  background: color-mix(in srgb, #f59e0b 18%, #fff);
}
[data-theme="dark"] .subscription-plan-badge--monthly {
  color: #93c5fd;
  background: color-mix(in srgb, #3b82f6 28%, transparent);
}
[data-theme="dark"] .subscription-plan-badge--annual {
  color: #fcd34d;
  background: color-mix(in srgb, #f59e0b 28%, transparent);
}
.subscription-plan-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}
.subscription-payment-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: 1fr;
  max-width: 560px;
}
.subscription-plan-card,
.subscription-payment-card {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin: 0;
  padding: 16px;
  border-radius: 16px;
  border: 1px solid color-mix(in srgb, var(--md-sys-color-outline-variant) 70%, transparent);
  background: var(--md-sys-color-surface-container-low);
  cursor: pointer;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease, background .18s ease;
}
.subscription-plan-card:hover,
.subscription-payment-card:hover {
  transform: translateY(-1px);
}
.subscription-plan-card--monthly {
  background: linear-gradient(180deg, color-mix(in srgb, #3b82f6 8%, transparent), var(--md-sys-color-surface-container-low));
}
.subscription-plan-card--annual {
  background: linear-gradient(180deg, color-mix(in srgb, #f59e0b 10%, transparent), var(--md-sys-color-surface-container-low));
}
.subscription-plan-card input,
.subscription-payment-card input {
  margin-top: 4px;
}
.subscription-plan-card-body {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
  flex: 1;
}
.subscription-plan-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.subscription-plan-card strong,
.subscription-payment-card strong {
  display: block;
  font-size: .98rem;
}
.subscription-plan-card-top em {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  font-style: normal;
  font-size: .72rem;
  font-weight: 700;
  color: #92400e;
  background: color-mix(in srgb, #fbbf24 28%, #fff);
  white-space: nowrap;
}
.subscription-plan-card-price {
  display: block;
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1.1;
  color: var(--md-sys-color-on-surface);
}
.subscription-plan-card-price small {
  font-size: .78rem;
  font-weight: 600;
  color: var(--md-sys-color-on-surface-variant);
}
.subscription-plan-card-was {
  display: block;
  font-size: .8rem;
  color: var(--md-sys-color-on-surface-variant);
}
.subscription-payment-card small {
  display: block;
  color: var(--md-sys-color-on-surface-variant);
  font-size: .82rem;
}
.subscription-payment-card {
  align-items: center;
}
.subscription-payment-card-main {
  display: flex;
  gap: 14px;
  align-items: center;
  min-width: 0;
  flex: 1;
}
.subscription-payment-logo {
  flex: 0 0 auto;
  width: 56px;
  height: 56px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #fff;
  border: 1px solid color-mix(in srgb, var(--md-sys-color-outline-variant) 70%, transparent);
}
.subscription-payment-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 6px;
}
.subscription-payment-logo .material-symbols-outlined {
  font-size: 28px;
  color: var(--md-sys-color-primary);
}
[data-theme="dark"] .subscription-payment-logo {
  background: color-mix(in srgb, var(--md-sys-color-surface) 90%, #fff);
}
.subscription-plan-card:has(input:checked),
.subscription-payment-card:has(input:checked) {
  border-color: color-mix(in srgb, var(--md-sys-color-primary) 55%, transparent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--md-sys-color-primary) 12%, transparent);
}
.subscription-plan-card--monthly:has(input:checked) {
  border-color: color-mix(in srgb, #2563eb 60%, transparent);
  box-shadow: 0 0 0 3px color-mix(in srgb, #3b82f6 16%, transparent);
}
.subscription-plan-card--annual:has(input:checked) {
  border-color: color-mix(in srgb, #d97706 60%, transparent);
  box-shadow: 0 0 0 3px color-mix(in srgb, #f59e0b 18%, transparent);
}
.companies-table-company {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
  font-weight: 600;
}
.companies-table-company:hover {
  color: var(--md-sys-color-primary);
}
.companies-table-logo {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  background: color-mix(in srgb, var(--md-sys-color-primary) 12%, transparent);
  color: var(--md-sys-color-primary);
  font-size: .72rem;
  font-weight: 800;
  border: 1px solid color-mix(in srgb, var(--md-sys-color-outline-variant) 65%, transparent);
}
.companies-table-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.companies-table-phone {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 0;
  background: transparent;
  padding: 0;
  color: inherit;
  font: inherit;
  cursor: pointer;
}
.companies-table-phone .material-symbols-outlined {
  font-size: 16px;
  color: var(--md-sys-color-on-surface-variant);
  transition: color .15s ease;
}
.companies-table-phone:hover {
  color: var(--md-sys-color-primary);
}
.companies-table-phone:hover .material-symbols-outlined {
  color: var(--md-sys-color-primary);
}
.companies-table-phone.is-copied .material-symbols-outlined {
  color: #16a34a;
}
.btn-icon-whatsapp {
  color: #128c7e;
}
.btn-icon-whatsapp:hover {
  color: #075e54;
  background: color-mix(in srgb, #25d366 14%, transparent);
}
.subscription-request-company {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
}
.subscription-request-company:hover .fw-semibold {
  color: var(--md-sys-color-primary);
  text-decoration: underline;
}
.subscription-request-company-logo {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: color-mix(in srgb, var(--md-sys-color-primary) 12%, transparent);
  color: var(--md-sys-color-primary);
  font-weight: 800;
  flex: 0 0 auto;
  border: 1px solid color-mix(in srgb, var(--md-sys-color-outline-variant) 65%, transparent);
}
.subscription-request-company-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.subscription-request-payment {
  display: flex;
  align-items: center;
  gap: 12px;
}
.btn-outline.btn-receipt-view {
  color: #0f766e;
  border-color: color-mix(in srgb, #0d9488 45%, var(--md-sys-color-outline));
}
.btn-outline.btn-receipt-view:hover {
  background: color-mix(in srgb, #14b8a6 14%, transparent);
  color: #0f766e;
}
[data-theme="dark"] .btn-outline.btn-receipt-view {
  color: #5eead4;
  border-color: color-mix(in srgb, #14b8a6 45%, var(--md-sys-color-outline-variant));
}
[data-theme="dark"] .btn-outline.btn-receipt-view:hover {
  background: color-mix(in srgb, #14b8a6 18%, transparent);
  color: #99f6e4;
}
.subscription-request-payment .subscription-payment-logo {
  width: 44px;
  height: 44px;
}
.subscription-receipt-cell {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  max-width: 220px;
}
.subscription-receipt-thumb {
  display: inline-flex;
  flex: 0 0 48px;
  width: 48px;
  height: 48px;
  max-width: 48px;
  max-height: 48px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--md-sys-color-outline-variant) 70%, transparent);
  background: var(--md-sys-color-surface-container-low);
  vertical-align: middle;
}
.subscription-receipt-thumb img {
  display: block;
  width: 48px;
  height: 48px;
  max-width: 48px;
  max-height: 48px;
  object-fit: cover;
}
.subscription-gate-submit .btn-primary:disabled,
.btn-primary:disabled {
  opacity: .55;
  cursor: not-allowed;
  filter: grayscale(.2);
  box-shadow: none;
  pointer-events: none;
}
.subscription-gate-form [data-subscription-error] {
  display: none;
  margin-bottom: 12px;
}
.subscription-gate-form [data-subscription-error].is-visible {
  display: block;
}

/* Notifications page */
.notifications-page {
  display: grid;
  gap: 10px;
}
.notifications-item-form {
  margin: 0;
}
.notifications-item {
  width: 100%;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: start;
  gap: 14px;
  text-align: start;
  border: 1px solid color-mix(in srgb, var(--md-sys-color-outline-variant) 70%, transparent);
  background: #fff;
  border-radius: 16px;
  padding: 14px 16px;
  color: inherit;
  box-shadow: 0 1px 2px rgba(15, 23, 42, .04);
  transition: border-color .18s ease, background-color .18s ease, box-shadow .18s ease;
}
.notifications-item:hover {
  border-color: color-mix(in srgb, var(--md-sys-color-primary) 35%, var(--md-sys-color-outline-variant));
  background: #fff;
  box-shadow: 0 4px 14px rgba(15, 23, 42, .06);
}
.notifications-item.is-unread {
  background: #fff;
  border-color: color-mix(in srgb, var(--md-sys-color-primary) 34%, var(--md-sys-color-outline-variant));
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--md-sys-color-primary) 12%, transparent);
}
.notifications-item__icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: color-mix(in srgb, var(--md-sys-color-primary) 12%, transparent);
  color: var(--md-sys-color-primary);
}
.notifications-item--success .notifications-item__icon {
  background: color-mix(in srgb, #16a34a 14%, transparent);
  color: #16a34a;
}
.notifications-item--danger .notifications-item__icon,
.notifications-item--error .notifications-item__icon {
  background: color-mix(in srgb, #dc2626 14%, transparent);
  color: #dc2626;
}
.notifications-item--warning .notifications-item__icon {
  background: color-mix(in srgb, #d97706 14%, transparent);
  color: #d97706;
}
.notifications-item__body {
  min-width: 0;
  display: grid;
  gap: 4px;
}
.notifications-item__title-row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.notifications-item__title {
  font-weight: 700;
  font-size: .98rem;
  line-height: 1.35;
  color: var(--md-sys-color-on-surface);
}
.notifications-item__dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--md-sys-color-primary);
  flex: 0 0 auto;
}
.notifications-item__text {
  color: var(--md-sys-color-on-surface-variant);
  font-size: .92rem;
  line-height: 1.5;
}
.notifications-item__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 2px;
  font-size: .8rem;
  color: color-mix(in srgb, var(--md-sys-color-on-surface-variant) 88%, transparent);
}
.notifications-item__meta-sep {
  opacity: .7;
}
.notifications-item__chevron {
  color: var(--md-sys-color-on-surface-variant);
  font-size: 22px;
  margin-top: 8px;
}
[dir="rtl"] .notifications-item__chevron {
  transform: scaleX(-1);
}
.notifications-empty {
  padding: 42px 20px;
}
.notifications-pagination {
  margin-top: 8px;
}
[data-theme="dark"] .notifications-item,
[data-theme="dark"] .notifications-item:hover,
[data-theme="dark"] .notifications-item.is-unread {
  background: var(--md-sys-color-surface-container-lowest, #fff);
}

/* Push enable modal */
.push-enable-steps {
  margin: 0 0 16px;
  padding-inline-start: 1.2rem;
  display: grid;
  gap: 8px;
  color: var(--md-sys-color-on-surface-variant);
  font-size: .92rem;
  line-height: 1.5;
}
.push-enable-copy p {
  color: var(--md-sys-color-on-surface);
  line-height: 1.55;
}
