@font-face {
  font-family: 'Geomini';

  font-style: normal;

  font-weight: 200 800;

  font-display: swap;

  src: url('../fonts/Geomini-Variable.ttf') format('truetype');
}

*, ::before, ::after {
  --tw-border-spacing-x: 0;
  --tw-border-spacing-y: 0;
  --tw-translate-x: 0;
  --tw-translate-y: 0;
  --tw-rotate: 0;
  --tw-skew-x: 0;
  --tw-skew-y: 0;
  --tw-scale-x: 1;
  --tw-scale-y: 1;
  --tw-pan-x:  ;
  --tw-pan-y:  ;
  --tw-pinch-zoom:  ;
  --tw-scroll-snap-strictness: proximity;
  --tw-gradient-from-position:  ;
  --tw-gradient-via-position:  ;
  --tw-gradient-to-position:  ;
  --tw-ordinal:  ;
  --tw-slashed-zero:  ;
  --tw-numeric-figure:  ;
  --tw-numeric-spacing:  ;
  --tw-numeric-fraction:  ;
  --tw-ring-inset:  ;
  --tw-ring-offset-width: 0px;
  --tw-ring-offset-color: #fff;
  --tw-ring-color: rgb(59 130 246 / 0.5);
  --tw-ring-offset-shadow: 0 0 #0000;
  --tw-ring-shadow: 0 0 #0000;
  --tw-shadow: 0 0 #0000;
  --tw-shadow-colored: 0 0 #0000;
  --tw-blur:  ;
  --tw-brightness:  ;
  --tw-contrast:  ;
  --tw-grayscale:  ;
  --tw-hue-rotate:  ;
  --tw-invert:  ;
  --tw-saturate:  ;
  --tw-sepia:  ;
  --tw-drop-shadow:  ;
  --tw-backdrop-blur:  ;
  --tw-backdrop-brightness:  ;
  --tw-backdrop-contrast:  ;
  --tw-backdrop-grayscale:  ;
  --tw-backdrop-hue-rotate:  ;
  --tw-backdrop-invert:  ;
  --tw-backdrop-opacity:  ;
  --tw-backdrop-saturate:  ;
  --tw-backdrop-sepia:  ;
  --tw-contain-size:  ;
  --tw-contain-layout:  ;
  --tw-contain-paint:  ;
  --tw-contain-style:  ;
}

::backdrop {
  --tw-border-spacing-x: 0;
  --tw-border-spacing-y: 0;
  --tw-translate-x: 0;
  --tw-translate-y: 0;
  --tw-rotate: 0;
  --tw-skew-x: 0;
  --tw-skew-y: 0;
  --tw-scale-x: 1;
  --tw-scale-y: 1;
  --tw-pan-x:  ;
  --tw-pan-y:  ;
  --tw-pinch-zoom:  ;
  --tw-scroll-snap-strictness: proximity;
  --tw-gradient-from-position:  ;
  --tw-gradient-via-position:  ;
  --tw-gradient-to-position:  ;
  --tw-ordinal:  ;
  --tw-slashed-zero:  ;
  --tw-numeric-figure:  ;
  --tw-numeric-spacing:  ;
  --tw-numeric-fraction:  ;
  --tw-ring-inset:  ;
  --tw-ring-offset-width: 0px;
  --tw-ring-offset-color: #fff;
  --tw-ring-color: rgb(59 130 246 / 0.5);
  --tw-ring-offset-shadow: 0 0 #0000;
  --tw-ring-shadow: 0 0 #0000;
  --tw-shadow: 0 0 #0000;
  --tw-shadow-colored: 0 0 #0000;
  --tw-blur:  ;
  --tw-brightness:  ;
  --tw-contrast:  ;
  --tw-grayscale:  ;
  --tw-hue-rotate:  ;
  --tw-invert:  ;
  --tw-saturate:  ;
  --tw-sepia:  ;
  --tw-drop-shadow:  ;
  --tw-backdrop-blur:  ;
  --tw-backdrop-brightness:  ;
  --tw-backdrop-contrast:  ;
  --tw-backdrop-grayscale:  ;
  --tw-backdrop-hue-rotate:  ;
  --tw-backdrop-invert:  ;
  --tw-backdrop-opacity:  ;
  --tw-backdrop-saturate:  ;
  --tw-backdrop-sepia:  ;
  --tw-contain-size:  ;
  --tw-contain-layout:  ;
  --tw-contain-paint:  ;
  --tw-contain-style:  ;
}

input:where([type='text']),input:where(:not([type])),input:where([type='email']),input:where([type='url']),input:where([type='password']),input:where([type='number']),input:where([type='date']),input:where([type='datetime-local']),input:where([type='month']),input:where([type='search']),input:where([type='tel']),input:where([type='time']),input:where([type='week']),select:where([multiple]),textarea,select {
  -webkit-appearance: none;
     -moz-appearance: none;
          appearance: none;
  background-color: #fff;
  border-color: #6b7280;
  border-width: 1px;
  border-radius: 0px;
  padding-top: 0.5rem;
  padding-right: 0.75rem;
  padding-bottom: 0.5rem;
  padding-left: 0.75rem;
  font-size: 1rem;
  line-height: 1.5rem;
  --tw-shadow: 0 0 #0000;
}

input:where([type='text']):focus, input:where(:not([type])):focus, input:where([type='email']):focus, input:where([type='url']):focus, input:where([type='password']):focus, input:where([type='number']):focus, input:where([type='date']):focus, input:where([type='datetime-local']):focus, input:where([type='month']):focus, input:where([type='search']):focus, input:where([type='tel']):focus, input:where([type='time']):focus, input:where([type='week']):focus, select:where([multiple]):focus, textarea:focus, select:focus {
  outline: 2px solid transparent;
  outline-offset: 2px;
  --tw-ring-inset: var(--tw-empty,/*!*/ /*!*/);
  --tw-ring-offset-width: 0px;
  --tw-ring-offset-color: #fff;
  --tw-ring-color: #2563eb;
  --tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);
  --tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);
  box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
  border-color: #2563eb;
}

input::-moz-placeholder, textarea::-moz-placeholder {
  color: #6b7280;
  opacity: 1;
}

input::placeholder,textarea::placeholder {
  color: #6b7280;
  opacity: 1;
}

::-webkit-datetime-edit-fields-wrapper {
  padding: 0;
}

::-webkit-date-and-time-value {
  min-height: 1.5em;
  text-align: inherit;
}

::-webkit-datetime-edit {
  display: inline-flex;
}

::-webkit-datetime-edit,::-webkit-datetime-edit-year-field,::-webkit-datetime-edit-month-field,::-webkit-datetime-edit-day-field,::-webkit-datetime-edit-hour-field,::-webkit-datetime-edit-minute-field,::-webkit-datetime-edit-second-field,::-webkit-datetime-edit-millisecond-field,::-webkit-datetime-edit-meridiem-field {
  padding-top: 0;
  padding-bottom: 0;
}

select {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
  background-position: right 0.5rem center;
  background-repeat: no-repeat;
  background-size: 1.5em 1.5em;
  padding-right: 2.5rem;
  -webkit-print-color-adjust: exact;
          print-color-adjust: exact;
}

select:where([multiple]),select:where([size]:not([size="1"])) {
  background-image: initial;
  background-position: initial;
  background-repeat: unset;
  background-size: initial;
  padding-right: 0.75rem;
  -webkit-print-color-adjust: unset;
          print-color-adjust: unset;
}

input:where([type='checkbox']),input:where([type='radio']) {
  -webkit-appearance: none;
     -moz-appearance: none;
          appearance: none;
  padding: 0;
  -webkit-print-color-adjust: exact;
          print-color-adjust: exact;
  display: inline-block;
  vertical-align: middle;
  background-origin: border-box;
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
  flex-shrink: 0;
  height: 1rem;
  width: 1rem;
  color: #2563eb;
  background-color: #fff;
  border-color: #6b7280;
  border-width: 1px;
  --tw-shadow: 0 0 #0000;
}

input:where([type='checkbox']) {
  border-radius: 0px;
}

input:where([type='radio']) {
  border-radius: 100%;
}

input:where([type='checkbox']):focus,input:where([type='radio']):focus {
  outline: 2px solid transparent;
  outline-offset: 2px;
  --tw-ring-inset: var(--tw-empty,/*!*/ /*!*/);
  --tw-ring-offset-width: 2px;
  --tw-ring-offset-color: #fff;
  --tw-ring-color: #2563eb;
  --tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);
  --tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);
  box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
}

input:where([type='checkbox']):checked,input:where([type='radio']):checked {
  border-color: transparent;
  background-color: currentColor;
  background-size: 100% 100%;
  background-position: center;
  background-repeat: no-repeat;
}

input:where([type='checkbox']):checked {
  background-image: url("data:image/svg+xml,%3csvg viewBox='0 0 16 16' fill='white' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M12.207 4.793a1 1 0 010 1.414l-5 5a1 1 0 01-1.414 0l-2-2a1 1 0 011.414-1.414L6.5 9.086l4.293-4.293a1 1 0 011.414 0z'/%3e%3c/svg%3e");
}

@media (forced-colors: active)  {
  input:where([type='checkbox']):checked {
    -webkit-appearance: auto;
       -moz-appearance: auto;
            appearance: auto;
  }
}

input:where([type='radio']):checked {
  background-image: url("data:image/svg+xml,%3csvg viewBox='0 0 16 16' fill='white' xmlns='http://www.w3.org/2000/svg'%3e%3ccircle cx='8' cy='8' r='3'/%3e%3c/svg%3e");
}

@media (forced-colors: active)  {
  input:where([type='radio']):checked {
    -webkit-appearance: auto;
       -moz-appearance: auto;
            appearance: auto;
  }
}

input:where([type='checkbox']):checked:hover,input:where([type='checkbox']):checked:focus,input:where([type='radio']):checked:hover,input:where([type='radio']):checked:focus {
  border-color: transparent;
  background-color: currentColor;
}

input:where([type='checkbox']):indeterminate {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 16 16'%3e%3cpath stroke='white' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M4 8h8'/%3e%3c/svg%3e");
  border-color: transparent;
  background-color: currentColor;
  background-size: 100% 100%;
  background-position: center;
  background-repeat: no-repeat;
}

@media (forced-colors: active)  {
  input:where([type='checkbox']):indeterminate {
    -webkit-appearance: auto;
       -moz-appearance: auto;
            appearance: auto;
  }
}

input:where([type='checkbox']):indeterminate:hover,input:where([type='checkbox']):indeterminate:focus {
  border-color: transparent;
  background-color: currentColor;
}

input:where([type='file']) {
  background: unset;
  border-color: inherit;
  border-width: 0;
  border-radius: 0;
  padding: 0;
  font-size: unset;
  line-height: inherit;
}

input:where([type='file']):focus {
  outline: 1px solid ButtonText;
  outline: 1px auto -webkit-focus-ring-color;
}

:root {
  color-scheme: light;
  --accent: #4d4b9e;
  --accent-secondary: #0284c7;
  --accent-foreground: #ffffff;
  --foreground: #0f172a;
  --background: #f8fafc;
  --muted: #f1f5f9;
  --muted-foreground: #64748b;
  --card: #ffffff;
  --border: #e2e8f0;
  --ring: #4d4b9e;
  --shadow-soft: 0 10px 30px rgba(15, 23, 42, 0.05);
  --shadow-medium: 0 16px 40px rgba(15, 23, 42, 0.07);
  --shadow-accent: 0 12px 28px rgba(77, 75, 158, 0.20);
  --shadow-accent-lg: 0 18px 36px rgba(77, 75, 158, 0.28);
  --shell-blur: blur(12px) saturate(120%);
  --navbar-height: 72px;
  --sidebar-width: 248px;
  --sidebar-expanded: 248px;
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  /* Legacy compatibility tokens mapped to canonical design system tokens */
  --primary: #4d4b9e;
  --primary-dark: #3e3c84;
  --on-primary: #ffffff;
  --success: #16a34a;
  --success-dark: #15803d;
  --warning: #d97706;
  --warning-dark: #b45309;
  --error: #dc2626;
  --danger: #dc2626;
  --error-dark: #9f3f3f;
  --teal: #14b8a6;
  --on-warning: #451a03;
  --on-error: #ffffff;
  --on-secondary: #ffffff;
  --on-surface: #0f172a;
  --on-muted: #334155;
  --bg-canvas: #f7f8fb;
  --bg-primary: #f7f8fb;
  --bg-secondary: #ffffff;
  --bg-tertiary: #f1f3f7;
  --bg-surface: #ffffff;
  --bg-surface-muted: #fafafa;
  --bg-surface-subtle: #e6f4f7;
  --surface-primary: #ffffff;
  --surface-secondary: #ffffff;
  --surface-tertiary: #fafafa;
  --text-primary: #17181c;
  --text-secondary: #434752;
  --text-tertiary: #737783;
  --text-quaternary: #9a9ea7;
  --text-title: #17181c;
  --text-body: #434752;
  --text-muted: #737783;
  --text-soft: #94a3b8;
  --title-color: #0f172a;
  --subtitle-color: #475569;
  --border-soft: #e7e9ef;
  --border-strong: #cfd3dc;
  --border-primary: #cfd3dc;
  --border-secondary: #e7e9ef;
  --border-tertiary: #f4f5f8;
  --border-width: 1px;
  --icon-primary: #635bff;
  --icon-secondary: #7b74ff;
  --icon-success: #24b47e;
  --icon-warning: #f4a340;
  --icon-danger: #e86161;
  --icon-muted: #737783;
  --primary-gradient: #0e7490;
  --accent-gradient: #0e7490;
  --secondary-gradient: #198754;
  --warning-gradient: #b7791f;
  --error-gradient: #c2414b;
  --teal-gradient: #0f766e;
  --primary-light: rgba(14, 116, 144, 0.08);
  --primary-glass: rgba(14, 116, 144, 0.05);
  --primary-lighter: rgba(14, 116, 144, 0.06);
  --accent-light: rgba(14, 116, 144, 0.08);
  --accent-glass: rgba(14, 116, 144, 0.05);
  --secondary-light: rgba(20, 184, 166, 0.08);
  --secondary-glass: rgba(20, 184, 166, 0.05);
  --glass-bg-primary: rgba(255, 255, 255, 0.86);
  --glass-bg-secondary: rgba(250, 250, 250, 0.92);
  --glass-bg-tertiary: rgba(230, 244, 247, 0.88);
  --glass-backdrop: blur(12px) saturate(140%);
  --shadow-sm: 0 1px 3px rgba(25, 28, 39, 0.04);
  --shadow: 0 4px 10px rgba(25, 28, 39, 0.05);
  --shadow-md: 0 10px 30px rgba(25, 28, 39, 0.06);
  --shadow-lg: 0 16px 40px rgba(25, 28, 39, 0.08);
  --shadow-xl: 0 20px 48px rgba(25, 28, 39, 0.10);
  --shadow-accent: 0 12px 28px rgba(99, 91, 255, 0.18);
  --shadow-accent-lg: 0 20px 42px rgba(99, 91, 255, 0.24);
  --font-family: 'Inter', ui-sans-serif, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-family-display: 'Inter', ui-sans-serif, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-family-mono: 'Inter', ui-sans-serif, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --bs-body-font-family: 'Inter', ui-sans-serif, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --bs-font-sans-serif: 'Inter', ui-sans-serif, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --bs-font-monospace: 'Inter', ui-sans-serif, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --radius: 14px;
  --radius-xs: 8px;
  --window-border-radius: 24px;
  --button-height: 48px;
  --button-height-sm: 40px;
  --button-height-lg: 54px;
  --animation-duration-fast: 0.15s;
  --animation-duration-normal: 0.25s;
  --animation-duration-slow: 0.4s;
  --animation-easing: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-spring: 300ms cubic-bezier(0.34, 1.56, 0.64, 1);
  /* EOS & 6-Pillar Health Design System Tokens */
  --eos-blue-iris: #4d4b9e;
  --eos-safety-orange: #ff8f6b;
  --eos-amber: #feb63d;
  --eos-pale-iris: #d9d7ff;
  --eos-neutral-100: #0e0d35;
  --eos-neutral-subtext: #626c7a;
  --eos-bg-pale: #f4f6f9;
  --eos-surface-neutral: #f8f8f9;
  --eos-hover-bg: #f4f3ff;
  --eos-hr-alert: #ff5555;
  --eos-success: #51cc56;
  --eos-static-blue: #5b93ff;
  --control-h-admin: 42px;
  --control-h-clinical: 56px;
  --btn-h-pill: 48px;
  --radius-pill: 24px;
  --baseline-grid: 4px;
}

[data-theme="dark"],
  [data-bs-theme="dark"],
  .dark {
  color-scheme: dark;
  --foreground: #f8fafc;
  --background: #0b0f19;
  --muted: #1e293b;
  --muted-foreground: #94a3b8;
  --card: #111827;
  --border: #1f2937;
  --ring: #6c6ae8;
  --bg-canvas: #0b0f19;
  --bg-primary: #0b0f19;
  --bg-secondary: #111827;
  --bg-tertiary: #1f2937;
  --bg-surface: #111827;
  --bg-surface-muted: #1e293b;
  --bg-surface-subtle: #1e293b;
  --surface-primary: #111827;
  --surface-secondary: #111827;
  --text-primary: #f8fafc;
  --text-secondary: #cbd5e1;
  --text-muted: #94a3b8;
  --eos-blue-iris: #6c6ae8;
  --eos-blue-iris-hover: #5b59d1;
  --eos-neutral-100: #ffffff;
  --eos-surface-neutral: #111827;
  --eos-bg-pale: #0b0f19;
}

[data-theme="dark"] body.app-shell,
  [data-bs-theme="dark"] body.app-shell,
  .dark body.app-shell {
  background-color: #0b0f19 !important;
  color: #f8fafc !important;
}

[data-theme="dark"] .app-sidebar,
  [data-bs-theme="dark"] .app-sidebar,
  .dark .app-sidebar {
  background-color: #0f172a !important;
  border-color: #1e293b !important;
  box-shadow: 1px 0 0 rgba(0, 0, 0, 0.5) !important;
}

[data-theme="dark"] .app-sidebar__header,
  [data-bs-theme="dark"] .app-sidebar__header,
  .dark .app-sidebar__header {
  border-color: #1e293b !important;
}

[data-theme="dark"] .app-sidebar__brand-copy strong,
  [data-bs-theme="dark"] .app-sidebar__brand-copy strong,
  .dark .app-sidebar__brand-copy strong {
  color: #f8fafc !important;
}

[data-theme="dark"] .app-sidebar__link,
  [data-bs-theme="dark"] .app-sidebar__link,
  .dark .app-sidebar__link {
  color: #94a3b8 !important;
}

[data-theme="dark"] .app-sidebar__link:hover,
  [data-bs-theme="dark"] .app-sidebar__link:hover,
  .dark .app-sidebar__link:hover {
  background-color: #1e293b !important;
  color: #ffffff !important;
}

[data-theme="dark"] .app-sidebar__user strong,
  [data-bs-theme="dark"] .app-sidebar__user strong,
  .dark .app-sidebar__user strong {
  color: #f8fafc !important;
}

[data-theme="dark"] .app-sidebar__pin,
  [data-theme="dark"] .app-sidebar__close,
  [data-bs-theme="dark"] .app-sidebar__pin,
  [data-bs-theme="dark"] .app-sidebar__close,
  .dark .app-sidebar__pin,
  .dark .app-sidebar__close {
  background-color: #1e293b !important;
  border-color: #334155 !important;
  color: #94a3b8 !important;
}

[data-theme="dark"] .app-topbar,
  [data-bs-theme="dark"] .app-topbar,
  .dark .app-topbar {
  background-color: #0f172a !important;
  border-color: #1e293b !important;
  color: #f8fafc !important;
}

[data-theme="dark"] .app-topbar__context strong,
  [data-bs-theme="dark"] .app-topbar__context strong,
  .dark .app-topbar__context strong {
  color: #f8fafc !important;
}

[data-theme="dark"] .app-topbar__profile,
  [data-bs-theme="dark"] .app-topbar__profile,
  .dark .app-topbar__profile {
  color: #f8fafc !important;
  background-color: #1e293b !important;
  border-color: #334155 !important;
}

[data-theme="dark"] .card,
  [data-bs-theme="dark"] .card,
  .dark .card {
  background-color: #111827 !important;
  border-color: #1f2937 !important;
  color: #f8fafc !important;
}

[data-theme="dark"] .card-header,
  [data-bs-theme="dark"] .card-header,
  .dark .card-header {
  background-color: #111827 !important;
  border-color: #1f2937 !important;
  color: #f8fafc !important;
}

[data-theme="dark"] .card-footer,
  [data-bs-theme="dark"] .card-footer,
  .dark .card-footer {
  background-color: #111827 !important;
  border-color: #1f2937 !important;
  color: #94a3b8 !important;
}

[data-theme="dark"] .list-group-item,
  [data-bs-theme="dark"] .list-group-item,
  .dark .list-group-item {
  background-color: #111827 !important;
  border-color: #1f2937 !important;
  color: #f8fafc !important;
}

[data-theme="dark"] .table,
  [data-bs-theme="dark"] .table,
  .dark .table {
  color: #f8fafc !important;
  border-color: #1f2937 !important;
}

[data-theme="dark"] .table > :not(caption) > * > *,
  [data-bs-theme="dark"] .table > :not(caption) > * > *,
  .dark .table > :not(caption) > * > * {
  background-color: transparent !important;
  border-color: #1f2937 !important;
  color: #f8fafc !important;
}

[data-theme="dark"] .table-light,
  [data-bs-theme="dark"] .table-light,
  .dark .table-light {
  background-color: #1e293b !important;
  color: #f8fafc !important;
}

[data-theme="dark"] .form-control,
  [data-theme="dark"] .form-select,
  [data-bs-theme="dark"] .form-control,
  [data-bs-theme="dark"] .form-select,
  .dark .form-control,
  .dark .form-select {
  background-color: #0b0f19 !important;
  border-color: #334155 !important;
  color: #f8fafc !important;
}

[data-theme="dark"] .form-control:focus,
  [data-theme="dark"] .form-select:focus,
  [data-bs-theme="dark"] .form-control:focus,
  [data-bs-theme="dark"] .form-select:focus,
  .dark .form-control:focus,
  .dark .form-select:focus {
  background-color: #0b0f19 !important;
  border-color: #6c6ae8 !important;
  color: #f8fafc !important;
  box-shadow: 0 0 0 3px rgba(108, 106, 232, 0.25) !important;
}

[data-theme="dark"] .modal-content,
  [data-bs-theme="dark"] .modal-content,
  .dark .modal-content {
  background-color: #111827 !important;
  border-color: #1f2937 !important;
  color: #f8fafc !important;
}

[data-theme="dark"] .modal-header,
  [data-theme="dark"] .modal-footer,
  [data-bs-theme="dark"] .modal-header,
  [data-bs-theme="dark"] .modal-footer,
  .dark .modal-header,
  .dark .modal-footer {
  border-color: #1f2937 !important;
}

[data-theme="dark"] .breadcrumb-item a,
  [data-bs-theme="dark"] .breadcrumb-item a,
  .dark .breadcrumb-item a {
  color: #38bdf8 !important;
}

[data-theme="dark"] .breadcrumb-item.active,
  [data-bs-theme="dark"] .breadcrumb-item.active,
  .dark .breadcrumb-item.active {
  color: #94a3b8 !important;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: Geomini, system-ui, -apple-system, BlinkMacSystemFont, Segoe UI, sans-serif;
  --tw-text-opacity: 1;
  color: rgb(15 23 42 / var(--tw-text-opacity, 1));
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background: var(--background);
}

::-moz-selection {
  background: rgba(0, 82, 255, 0.16);
  color: var(--foreground);
}

::selection {
  background: rgba(0, 82, 255, 0.16);
  color: var(--foreground);
}

a {
  --tw-text-opacity: 1;
  color: rgb(0 64 204 / var(--tw-text-opacity, 1));
  transition-property: color, background-color, border-color, text-decoration-color, fill, stroke;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 200ms;
}

a:hover {
  --tw-text-opacity: 1;
  color: rgb(0 51 163 / var(--tw-text-opacity, 1));
}

h1,
  h2 {
  font-family: Geomini, system-ui, -apple-system, BlinkMacSystemFont, Segoe UI, sans-serif;
  letter-spacing: -0.025em;
  --tw-text-opacity: 1;
  color: rgb(15 23 42 / var(--tw-text-opacity, 1));
}

h3,
  h4,
  h5,
  h6 {
  font-family: Geomini, system-ui, -apple-system, BlinkMacSystemFont, Segoe UI, sans-serif;
  letter-spacing: -0.025em;
  --tw-text-opacity: 1;
  color: rgb(15 23 42 / var(--tw-text-opacity, 1));
}

:focus-visible {
  outline: none;
}

.container {
  width: 100%;
}

@media (min-width: 640px) {
  .container {
    max-width: 640px;
  }
}

@media (min-width: 768px) {
  .container {
    max-width: 768px;
  }
}

@media (min-width: 1024px) {
  .container {
    max-width: 1024px;
  }
}

@media (min-width: 1280px) {
  .container {
    max-width: 1280px;
  }
}

@media (min-width: 1536px) {
  .container {
    max-width: 1536px;
  }
}

.form-input,.form-textarea,.form-select,.form-multiselect {
  -webkit-appearance: none;
     -moz-appearance: none;
          appearance: none;
  background-color: #fff;
  border-color: #6b7280;
  border-width: 1px;
  border-radius: 0px;
  padding-top: 0.5rem;
  padding-right: 0.75rem;
  padding-bottom: 0.5rem;
  padding-left: 0.75rem;
  font-size: 1rem;
  line-height: 1.5rem;
  --tw-shadow: 0 0 #0000;
}

.form-input:focus, .form-textarea:focus, .form-select:focus, .form-multiselect:focus {
  outline: 2px solid transparent;
  outline-offset: 2px;
  --tw-ring-inset: var(--tw-empty,/*!*/ /*!*/);
  --tw-ring-offset-width: 0px;
  --tw-ring-offset-color: #fff;
  --tw-ring-color: #2563eb;
  --tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);
  --tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);
  box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
  border-color: #2563eb;
}

.form-input::-moz-placeholder, .form-textarea::-moz-placeholder {
  color: #6b7280;
  opacity: 1;
}

.form-input::placeholder,.form-textarea::placeholder {
  color: #6b7280;
  opacity: 1;
}

.form-input::-webkit-datetime-edit-fields-wrapper {
  padding: 0;
}

.form-input::-webkit-date-and-time-value {
  min-height: 1.5em;
  text-align: inherit;
}

.form-input::-webkit-datetime-edit {
  display: inline-flex;
}

.form-input::-webkit-datetime-edit,.form-input::-webkit-datetime-edit-year-field,.form-input::-webkit-datetime-edit-month-field,.form-input::-webkit-datetime-edit-day-field,.form-input::-webkit-datetime-edit-hour-field,.form-input::-webkit-datetime-edit-minute-field,.form-input::-webkit-datetime-edit-second-field,.form-input::-webkit-datetime-edit-millisecond-field,.form-input::-webkit-datetime-edit-meridiem-field {
  padding-top: 0;
  padding-bottom: 0;
}

.form-select {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
  background-position: right 0.5rem center;
  background-repeat: no-repeat;
  background-size: 1.5em 1.5em;
  padding-right: 2.5rem;
  -webkit-print-color-adjust: exact;
          print-color-adjust: exact;
}

.form-select:where([size]:not([size="1"])) {
  background-image: initial;
  background-position: initial;
  background-repeat: unset;
  background-size: initial;
  padding-right: 0.75rem;
  -webkit-print-color-adjust: unset;
          print-color-adjust: unset;
}

.app-shell {
  min-height: 100vh;
}

.app-shell .main-content {
  min-height: 100vh;
  padding-left: 1rem;
  padding-right: 1rem;
  padding-bottom: 2.5rem;
  padding-top: 1.5rem;
  transition-property: margin,padding;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 300ms;
}

@media (min-width: 768px) {
  .app-shell .main-content {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}

@media (min-width: 1280px) {
  .app-shell .main-content {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

.app-shell .main-content {
  margin-left: var(--sidebar-width);
}

.app-shell .app-page-shell {
  margin-left: auto;
  margin-right: auto;
  width: 100%;
  max-width: 1600px;
  padding-left: 0px;
  padding-right: 0px;
}

.app-shell .app-skip-link {
  position: fixed;
  left: 0.75rem;
  top: 0.75rem;
  z-index: 70;
  --tw-translate-y: -5rem;
  transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
  border-radius: 0.75rem;
  --tw-bg-opacity: 1;
  background-color: rgb(11 18 32 / var(--tw-bg-opacity, 1));
  padding-left: 1rem;
  padding-right: 1rem;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
  font-size: 0.875rem;
  line-height: 1.25rem;
  font-weight: 600;
  --tw-text-opacity: 1;
  color: rgb(255 255 255 / var(--tw-text-opacity, 1));
  --tw-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
  --tw-shadow-colored: 0 20px 25px -5px var(--tw-shadow-color), 0 8px 10px -6px var(--tw-shadow-color);
  box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
  transition-property: transform;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}

.app-shell .app-skip-link:focus {
  --tw-translate-y: 0px;
  transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
}

.app-shell .app-mobilebar {
  display: none;
}

.app-shell .app-sidebar__backdrop {
  pointer-events: none;
  position: fixed;
  inset: 0px;
  z-index: 40;
  background-color: rgb(11 18 32 / 0.3);
  opacity: 0;
  --tw-backdrop-blur: blur(4px);
  backdrop-filter: var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);
  transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 300ms;
}

.app-shell .app-sidebar__backdrop.is-visible {
  pointer-events: auto;
  opacity: 1;
}

.app-shell .app-sidebar {
  position: fixed;
  top: 0px;
  bottom: 0px;
  left: 0px;
  z-index: 50;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-right-width: 1px;
  border-color: rgb(226 232 240 / 0.8);
  background-color: rgb(255 255 255 / 0.95);
  --tw-backdrop-blur: blur(24px);
  backdrop-filter: var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);
  width: var(--sidebar-width);
  transition: width 240ms ease, transform 240ms ease, box-shadow 240ms ease;
  box-shadow: 1px 0 0 rgba(255, 255, 255, 0.8);
}

.app-shell .app-sidebar__header {
  display: flex;
  height: 76px;
  flex-shrink: 0;
  align-items: center;
  gap: 0.5rem;
  border-bottom-width: 1px;
  border-color: rgb(226 232 240 / 0.7);
  padding-left: 0.75rem;
  padding-right: 0.75rem;
}

.app-shell .app-sidebar__brand {
  display: flex;
  min-width: 0px;
  flex: 1 1 0%;
  align-items: center;
  gap: 0.75rem;
  overflow: hidden;
  border-radius: 1rem;
  --tw-text-opacity: 1;
  color: rgb(15 23 42 / var(--tw-text-opacity, 1));
  text-decoration-line: none;
}

.app-shell .app-brand-mark {
  display: flex;
  height: 3rem;
  width: 3rem;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  border-radius: 1rem;
  --tw-bg-opacity: 1;
  background-color: rgb(11 18 32 / var(--tw-bg-opacity, 1));
  font-size: 1.125rem;
  line-height: 1.75rem;
  --tw-text-opacity: 1;
  color: rgb(255 255 255 / var(--tw-text-opacity, 1));
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.18);
}

.app-shell .app-sidebar__brand-copy,
  .app-shell .app-sidebar__user-copy {
  display: flex;
  min-width: 0px;
  flex-direction: column;
  white-space: nowrap;
  opacity: 0;
  transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 200ms;
  transform: translateX(-6px);
}

.app-shell .app-sidebar__brand-copy strong {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.025em;
  --tw-text-opacity: 1;
  color: rgb(11 18 32 / var(--tw-text-opacity, 1));
}

.app-shell .app-sidebar__brand-copy small,
  .app-shell .app-sidebar__user-copy small {
  font-size: 11px;
  --tw-text-opacity: 1;
  color: rgb(100 116 139 / var(--tw-text-opacity, 1));
}


  .main-content .app-shell .app-sidebar__pin,
  .main-content 
  .app-shell .app-sidebar__close {
  background-color: var(--card);
  color: var(--foreground);
}

.app-shell .app-sidebar__pin,
  .app-shell .app-sidebar__close {
  display: none;
  height: 2.25rem;
  width: 2.25rem;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  border-radius: 0.75rem;
  border-width: 1px;
  --tw-border-opacity: 1;
  border-color: rgb(226 232 240 / var(--tw-border-opacity, 1));
  --tw-bg-opacity: 1;
  background-color: rgb(255 255 255 / var(--tw-bg-opacity, 1));
  font-size: 0.75rem;
  line-height: 1rem;
  --tw-text-opacity: 1;
  color: rgb(100 116 139 / var(--tw-text-opacity, 1));
  transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 200ms;
}

[data-theme="dark"] .app-shell .app-sidebar__pin,
[data-bs-theme="dark"] .app-shell .app-sidebar__pin,
.dark .app-shell .app-sidebar__pin,[data-theme="dark"] 
  .app-shell .app-sidebar__close,
[data-bs-theme="dark"] 
  .app-shell .app-sidebar__close,
.dark 
  .app-shell .app-sidebar__close {
  background-color: var(--bg-surface);
  color: var(--text-primary);
}

.app-shell .app-sidebar__pin {
  pointer-events: none;
  display: flex;
  opacity: 0;
}

.app-shell .app-sidebar__pin,
  .app-shell .app-sidebar__close {
  --tw-text-opacity: 1;
  color: rgb(71 85 105 / var(--tw-text-opacity, 1));
}

.app-shell .app-sidebar__pin:hover,
  .app-shell .app-sidebar__close:hover {
  --tw-border-opacity: 1;
  border-color: rgb(188 208 255 / var(--tw-border-opacity, 1));
  --tw-bg-opacity: 1;
  background-color: rgb(239 244 255 / var(--tw-bg-opacity, 1));
  --tw-text-opacity: 1;
  color: rgb(0 51 163 / var(--tw-text-opacity, 1));
}

.app-shell .app-sidebar__pin[aria-pressed='true'] {
  --tw-rotate: 45deg;
  transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
  --tw-border-opacity: 1;
  border-color: rgb(188 208 255 / var(--tw-border-opacity, 1));
  --tw-bg-opacity: 1;
  background-color: rgb(239 244 255 / var(--tw-bg-opacity, 1));
  --tw-text-opacity: 1;
  color: rgb(0 51 163 / var(--tw-text-opacity, 1));
}

.app-shell .app-sidebar__context {
  margin-left: 0.75rem;
  margin-right: 0.75rem;
  max-height: 0px;
  overflow: hidden;
  border-bottom-width: 1px;
  border-color: transparent;
  padding-left: 0.5rem;
  padding-right: 0.5rem;
  opacity: 0;
  transition-property: all;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 200ms;
}

.app-shell .app-sidebar__context span {
  display: block;
  font-size: 9px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  --tw-text-opacity: 1;
  color: rgb(148 163 184 / var(--tw-text-opacity, 1));
}

.app-shell .app-sidebar__context strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.875rem;
  line-height: 1.25rem;
  font-weight: 600;
  --tw-text-opacity: 1;
  color: rgb(30 41 59 / var(--tw-text-opacity, 1));
}

.app-shell .app-sidebar__nav {
  min-height: 0px;
  flex: 1 1 0%;
  overflow-y: auto;
  overflow-x: hidden;
  padding-left: 0.75rem;
  padding-right: 0.75rem;
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
  scrollbar-color: rgba(148, 163, 184, 0.45) transparent;
  scrollbar-width: thin;
}

.app-shell .app-sidebar__list {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.app-shell .app-sidebar__link {
  position: relative;
  display: flex;
  height: 46px;
  align-items: center;
  gap: 0.75rem;
  overflow: hidden;
  border-radius: 1rem;
  border-width: 1px;
  border-color: transparent;
  padding-left: 11px;
  padding-right: 11px;
  --tw-text-opacity: 1;
  color: rgb(71 85 105 / var(--tw-text-opacity, 1));
  text-decoration-line: none;
  transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 200ms;
}

.app-shell .app-sidebar__link:hover {
  --tw-border-opacity: 1;
  border-color: rgb(221 232 255 / var(--tw-border-opacity, 1));
  --tw-bg-opacity: 1;
  background-color: rgb(239 244 255 / var(--tw-bg-opacity, 1));
  --tw-text-opacity: 1;
  color: rgb(0 51 163 / var(--tw-text-opacity, 1));
}

.app-shell .app-sidebar__link.is-active {
  background: linear-gradient(135deg, #4d4b9e 0%, #3e3c84 100%);
  color: #ffffff;
  border-color: rgba(217, 215, 255, 0.35);
  box-shadow: 0 6px 18px rgba(77, 75, 158, 0.32);
}

.app-shell .app-sidebar__icon {
  display: flex;
  height: 1.5rem;
  width: 1.5rem;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  font-size: 15px;
}

.app-shell .app-sidebar__label {
  white-space: nowrap;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.01em;
  opacity: 0;
  transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 200ms;
  transform: translateX(-6px);
}

.app-shell .app-sidebar__footer {
  flex-shrink: 0;
}

.app-shell .app-sidebar__footer > :not([hidden]) ~ :not([hidden]) {
  --tw-space-y-reverse: 0;
  margin-top: calc(0.25rem * calc(1 - var(--tw-space-y-reverse)));
  margin-bottom: calc(0.25rem * var(--tw-space-y-reverse));
}

.app-shell .app-sidebar__footer {
  border-top-width: 1px;
  border-color: rgb(226 232 240 / 0.7);
  padding: 0.75rem;
  padding-bottom: calc(0.75rem + env(safe-area-inset-bottom));
}

.app-shell .app-sidebar__user,
  .app-shell .app-sidebar__logout {
  display: flex;
  height: 46px;
  align-items: center;
  gap: 0.75rem;
  overflow: hidden;
  border-radius: 1rem;
  padding-left: 7px;
  padding-right: 7px;
  --tw-text-opacity: 1;
  color: rgb(71 85 105 / var(--tw-text-opacity, 1));
  text-decoration-line: none;
  transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 200ms;
}

.app-shell .app-sidebar__user:hover,
  .app-shell .app-sidebar__logout:hover {
  --tw-bg-opacity: 1;
  background-color: rgb(241 245 249 / var(--tw-bg-opacity, 1));
  --tw-text-opacity: 1;
  color: rgb(11 18 32 / var(--tw-text-opacity, 1));
}

.app-shell .app-sidebar__avatar {
  display: flex;
  height: 2rem;
  width: 2rem;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  border-radius: 0.75rem;
  --tw-bg-opacity: 1;
  background-color: rgb(241 245 249 / var(--tw-bg-opacity, 1));
  font-size: 0.75rem;
  line-height: 1rem;
  --tw-text-opacity: 1;
  color: rgb(71 85 105 / var(--tw-text-opacity, 1));
}

.app-shell .app-sidebar__user-copy strong {
  max-width: 150px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
  font-weight: 600;
  --tw-text-opacity: 1;
  color: rgb(30 41 59 / var(--tw-text-opacity, 1));
}

.app-shell .app-sidebar__logout {
  padding-left: 15px;
  padding-right: 15px;
}

.app-shell .app-sidebar__logout > i {
  width: 1rem;
  flex-shrink: 0;
  text-align: center;
  font-size: 0.875rem;
  line-height: 1.25rem;
}

.app-shell .app-sidebar:hover,
  .app-shell .app-sidebar:focus-within,
  .app-shell .app-sidebar.is-pinned {
  width: var(--sidebar-expanded);
  box-shadow: 12px 0 36px rgba(15, 23, 42, 0.1);
}

.app-shell .app-sidebar:hover .app-sidebar__brand-copy,
  .app-shell .app-sidebar:hover .app-sidebar__user-copy,
  .app-shell .app-sidebar:hover .app-sidebar__label,
  .app-shell .app-sidebar:focus-within .app-sidebar__brand-copy,
  .app-shell .app-sidebar:focus-within .app-sidebar__user-copy,
  .app-shell .app-sidebar:focus-within .app-sidebar__label,
  .app-shell .app-sidebar.is-pinned .app-sidebar__brand-copy,
  .app-shell .app-sidebar.is-pinned .app-sidebar__user-copy,
  .app-shell .app-sidebar.is-pinned .app-sidebar__label {
  opacity: 1;
  transform: translateX(0);
}

.app-shell .app-sidebar:hover .app-sidebar__pin,
  .app-shell .app-sidebar:focus-within .app-sidebar__pin,
  .app-shell .app-sidebar.is-pinned .app-sidebar__pin {
  pointer-events: auto;
  opacity: 1;
}

.app-shell .app-sidebar:hover .app-sidebar__context,
  .app-shell .app-sidebar:focus-within .app-sidebar__context,
  .app-shell .app-sidebar.is-pinned .app-sidebar__context {
  max-height: 4rem;
  border-color: rgb(226 232 240 / 0.7);
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
  opacity: 1;
}

body.app-sidebar--pinned .main-content,
  body.app-sidebar--pinned .app-footer {
  margin-left: var(--sidebar-expanded);
}

.app-shell .app-footer {
  margin-top: 2rem;
  border-top-width: 1px;
  border-color: rgb(226 232 240 / 0.8);
  background-color: rgb(255 255 255 / 0.7);
  --tw-backdrop-blur: blur(12px);
  backdrop-filter: var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);
  margin-left: var(--sidebar-width);
  transition: margin 300ms ease;
}

.app-shell .app-footer small {
  font-family: Geomini, system-ui, -apple-system, BlinkMacSystemFont, Segoe UI, sans-serif;
  letter-spacing: 0.02em;
  --tw-text-opacity: 1;
  color: rgb(100 116 139 / var(--tw-text-opacity, 1));
}

.tfd-heading,
  .page-title {
  font-family: Geomini, system-ui, -apple-system, BlinkMacSystemFont, Segoe UI, sans-serif;
  --tw-text-opacity: 1;
  color: rgb(15 23 42 / var(--tw-text-opacity, 1));
  letter-spacing: -0.02em;
  line-height: 1.08;
}

.tfd-subheading,
  .page-subtitle {
  font-size: 0.875rem;
  line-height: 1.5rem;
  --tw-text-opacity: 1;
  color: rgb(100 116 139 / var(--tw-text-opacity, 1));
}

.tfd-section-title {
  font-family: Geomini, system-ui, -apple-system, BlinkMacSystemFont, Segoe UI, sans-serif;
  font-weight: 600;
  --tw-text-opacity: 1;
  color: rgb(15 23 42 / var(--tw-text-opacity, 1));
}

.tfd-section-card,
  .glass-card,
  .card,
  .modal-content,
  .dropdown-menu,
  .list-group-item {
  border-color: var(--border) !important;
  border-radius: var(--radius-lg) !important;
  background: rgba(255, 255, 255, 0.96) !important;
  box-shadow: var(--shadow-soft) !important;
}

.card,
  .glass-card,
  .tfd-section-card {
  overflow: hidden;
  transition: transform 200ms ease, box-shadow 200ms ease, border-color 200ms ease;
}

.card:hover,
  .glass-card:hover,
  .tfd-section-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-medium) !important;
  border-color: rgba(0, 82, 255, 0.16) !important;
}

.card-header {
  border-bottom-width: 1px;
  border-color: rgb(226 232 240 / 0.8);
  padding-left: 1rem;
  padding-right: 1rem;
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
  --tw-text-opacity: 1;
  color: rgb(15 23 42 / var(--tw-text-opacity, 1));
  background: linear-gradient(180deg, rgba(248, 250, 252, 0.98), rgba(255, 255, 255, 1)) !important;
}

.card-header h1,
  .card-header h2,
  .card-header h3,
  .card-header h4,
  .card-header h5,
  .card-header h6 {
  margin-bottom: 0px;
  font-family: Geomini, system-ui, -apple-system, BlinkMacSystemFont, Segoe UI, sans-serif;
  font-weight: 600;
  --tw-text-opacity: 1;
  color: rgb(15 23 42 / var(--tw-text-opacity, 1));
}

.card-body {
  --tw-text-opacity: 1;
  color: rgb(71 85 105 / var(--tw-text-opacity, 1));
}

.card-footer {
  border-top-width: 1px;
  border-color: rgb(226 232 240 / 0.8);
  background-color: rgb(255 255 255 / 0.8);
}

.btn {
  display: inline-flex;
  min-height: 3rem;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: 1rem;
  border-width: 1px;
  border-color: transparent;
  padding-left: 1rem;
  padding-right: 1rem;
  padding-top: 0.625rem;
  padding-bottom: 0.625rem;
  font-weight: 600;
  transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 200ms;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
}

.btn:hover {
  --tw-translate-y: -0.125rem;
  transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
}

.btn:active {
  --tw-translate-y: 0px;
  --tw-scale-x: 0.98;
  --tw-scale-y: 0.98;
  transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
}

.btn-primary,
  .btn-info,
  .btn-gradient {
  border-color: transparent;
  --tw-text-opacity: 1;
  color: rgb(255 255 255 / var(--tw-text-opacity, 1));
  background: linear-gradient(135deg, var(--accent), var(--accent-secondary));
}

.btn-primary:hover,
  .btn-info:hover,
  .btn-gradient:hover {
  box-shadow: var(--shadow-accent-lg);
  color: #fff;
}


  .main-content .btn-outline-primary {
  background-color: var(--card);
  color: var(--foreground);
}

.btn-outline-primary {
  --tw-border-opacity: 1;
  border-color: rgb(188 208 255 / var(--tw-border-opacity, 1));
  --tw-bg-opacity: 1;
  background-color: rgb(255 255 255 / var(--tw-bg-opacity, 1));
  --tw-text-opacity: 1;
  color: rgb(0 51 163 / var(--tw-text-opacity, 1));
}

[data-theme="dark"] .btn-outline-primary,
[data-bs-theme="dark"] .btn-outline-primary,
.dark .btn-outline-primary {
  background-color: var(--bg-surface);
  color: var(--text-primary);
}

.btn-outline-primary:hover {
  --tw-bg-opacity: 1;
  background-color: rgb(239 244 255 / var(--tw-bg-opacity, 1));
  --tw-text-opacity: 1;
  color: rgb(0 38 122 / var(--tw-text-opacity, 1));
  box-shadow: var(--shadow-accent);
}


  .main-content .btn-outline-secondary {
  background-color: var(--card);
  color: var(--foreground);
}

.btn-outline-secondary {
  --tw-border-opacity: 1;
  border-color: rgb(226 232 240 / var(--tw-border-opacity, 1));
  --tw-bg-opacity: 1;
  background-color: rgb(255 255 255 / var(--tw-bg-opacity, 1));
  --tw-text-opacity: 1;
  color: rgb(51 65 85 / var(--tw-text-opacity, 1));
}

[data-theme="dark"] .btn-outline-secondary,
[data-bs-theme="dark"] .btn-outline-secondary,
.dark .btn-outline-secondary {
  background-color: var(--bg-surface);
  color: var(--text-primary);
}

.btn-outline-secondary:hover {
  --tw-border-opacity: 1;
  border-color: rgb(203 213 225 / var(--tw-border-opacity, 1));
  --tw-bg-opacity: 1;
  background-color: rgb(248 250 252 / var(--tw-bg-opacity, 1));
  --tw-text-opacity: 1;
  color: rgb(15 23 42 / var(--tw-text-opacity, 1));
}

.btn-success {
  background: linear-gradient(135deg, #10b981, #059669);
  color: #fff;
}

.btn-warning {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #451a03;
}

.btn-danger {
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: #fff;
}

.btn-sm {
  min-height: 2.5rem;
  padding-left: 0.75rem;
  padding-right: 0.75rem;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
  font-size: 0.875rem;
  line-height: 1.25rem;
}

.btn-lg {
  min-height: 3.5rem;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
  font-size: 1rem;
  line-height: 1.5rem;
}

.form-label {
  margin-bottom: 0.375rem;
  font-size: 0.875rem;
  line-height: 1.25rem;
  font-weight: 600;
  --tw-text-opacity: 1;
  color: rgb(15 23 42 / var(--tw-text-opacity, 1));
}

.form-control,
  .form-select,
  .form-check-input,
  .input-group-text,
  input[type='text'],
  input[type='email'],
  input[type='tel'],
  input[type='date'],
  input[type='datetime-local'],
  input[type='number'],
  input[type='password'],
  input[type='search'],
  textarea {
  box-shadow: var(--shadow-soft);
}


  .main-content .form-control,
  .main-content 
  .form-select,
  .main-content 
  .form-check-input,
  .main-content 
  .input-group-text,
  .main-content 
  input[type='text'],
  .main-content 
  input[type='email'],
  .main-content 
  input[type='tel'],
  .main-content 
  input[type='date'],
  .main-content 
  input[type='datetime-local'],
  .main-content 
  input[type='number'],
  .main-content 
  input[type='password'],
  .main-content 
  input[type='search'],
  .main-content 
  textarea {
  background-color: var(--card);
  color: var(--foreground);
}

.form-control,
  .form-select,
  .form-check-input,
  .input-group-text,
  input[type='text'],
  input[type='email'],
  input[type='tel'],
  input[type='date'],
  input[type='datetime-local'],
  input[type='number'],
  input[type='password'],
  input[type='search'],
  textarea {
  border-radius: 1rem;
  --tw-border-opacity: 1;
  border-color: rgb(226 232 240 / var(--tw-border-opacity, 1));
  --tw-bg-opacity: 1;
  background-color: rgb(255 255 255 / var(--tw-bg-opacity, 1));
  --tw-text-opacity: 1;
  color: rgb(15 23 42 / var(--tw-text-opacity, 1));
  --tw-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);
  box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
  transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 200ms;
}

[data-theme="dark"] .form-control,
[data-bs-theme="dark"] .form-control,
.dark .form-control,[data-theme="dark"] 
  .form-select,
[data-bs-theme="dark"] 
  .form-select,
.dark 
  .form-select,[data-theme="dark"] 
  .form-check-input,
[data-bs-theme="dark"] 
  .form-check-input,
.dark 
  .form-check-input,[data-theme="dark"] 
  .input-group-text,
[data-bs-theme="dark"] 
  .input-group-text,
.dark 
  .input-group-text,[data-theme="dark"] 
  input[type='text'],
[data-bs-theme="dark"] 
  input[type='text'],
.dark 
  input[type='text'],[data-theme="dark"] 
  input[type='email'],
[data-bs-theme="dark"] 
  input[type='email'],
.dark 
  input[type='email'],[data-theme="dark"] 
  input[type='tel'],
[data-bs-theme="dark"] 
  input[type='tel'],
.dark 
  input[type='tel'],[data-theme="dark"] 
  input[type='date'],
[data-bs-theme="dark"] 
  input[type='date'],
.dark 
  input[type='date'],[data-theme="dark"] 
  input[type='datetime-local'],
[data-bs-theme="dark"] 
  input[type='datetime-local'],
.dark 
  input[type='datetime-local'],[data-theme="dark"] 
  input[type='number'],
[data-bs-theme="dark"] 
  input[type='number'],
.dark 
  input[type='number'],[data-theme="dark"] 
  input[type='password'],
[data-bs-theme="dark"] 
  input[type='password'],
.dark 
  input[type='password'],[data-theme="dark"] 
  input[type='search'],
[data-bs-theme="dark"] 
  input[type='search'],
.dark 
  input[type='search'],[data-theme="dark"] 
  textarea,
[data-bs-theme="dark"] 
  textarea,
.dark 
  textarea {
  background-color: var(--bg-surface);
  color: var(--text-primary);
}

.form-control,
  .form-select,
  .form-check-input,
  .input-group-text,
  input[type='text'],
  input[type='email'],
  input[type='tel'],
  input[type='date'],
  input[type='datetime-local'],
  input[type='number'],
  input[type='password'],
  input[type='search'],
  textarea {
  min-height: 48px;
}

.form-control:focus,
  .form-select:focus,
  textarea:focus {
  border-color: var(--ring) !important;
  box-shadow: 0 0 0 4px rgba(0, 82, 255, 0.12) !important;
}

.form-control::-moz-placeholder, .form-select::-moz-placeholder, textarea::-moz-placeholder {
  --tw-text-opacity: 1;
  color: rgb(148 163 184 / var(--tw-text-opacity, 1));
}

.form-control::placeholder,
  .form-select::placeholder,
  textarea::placeholder {
  --tw-text-opacity: 1;
  color: rgb(148 163 184 / var(--tw-text-opacity, 1));
}

.input-group-text {
  --tw-border-opacity: 1;
  border-color: rgb(226 232 240 / var(--tw-border-opacity, 1));
  --tw-bg-opacity: 1;
  background-color: rgb(248 250 252 / var(--tw-bg-opacity, 1));
  --tw-text-opacity: 1;
  color: rgb(100 116 139 / var(--tw-text-opacity, 1));
}

@media (max-width: 767px) {
  .tfd-module-page .card-body.breadcrumb,
    .tfd-module-page .glass-card-body.breadcrumb {
    padding: 0;
  }
}

.breadcrumb {
  margin-bottom: 0px;
  background-color: transparent;
  padding: 0px;
  font-size: 0.875rem;
  line-height: 1.25rem;
}

.breadcrumb-item,
  .breadcrumb-item a {
  --tw-text-opacity: 1;
  color: rgb(100 116 139 / var(--tw-text-opacity, 1));
  text-decoration-line: none;
}

.breadcrumb-item.active {
  --tw-text-opacity: 1;
  color: rgb(15 23 42 / var(--tw-text-opacity, 1));
}

.breadcrumb-item + .breadcrumb-item::before {
  --tw-text-opacity: 1;
  color: rgb(203 213 225 / var(--tw-text-opacity, 1));
}

.alert {
  border-radius: 1rem;
  border-width: 1px;
  padding-left: 1rem;
  padding-right: 1rem;
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.06);
}

.alert-success {
  --tw-border-opacity: 1;
  border-color: rgb(167 243 208 / var(--tw-border-opacity, 1));
  --tw-bg-opacity: 1;
  background-color: rgb(236 253 245 / var(--tw-bg-opacity, 1));
  --tw-text-opacity: 1;
  color: rgb(6 78 59 / var(--tw-text-opacity, 1));
}

.alert-danger {
  --tw-border-opacity: 1;
  border-color: rgb(254 205 211 / var(--tw-border-opacity, 1));
  --tw-bg-opacity: 1;
  background-color: rgb(255 241 242 / var(--tw-bg-opacity, 1));
  --tw-text-opacity: 1;
  color: rgb(136 19 55 / var(--tw-text-opacity, 1));
}

.alert-warning {
  --tw-border-opacity: 1;
  border-color: rgb(253 230 138 / var(--tw-border-opacity, 1));
  --tw-bg-opacity: 1;
  background-color: rgb(255 251 235 / var(--tw-bg-opacity, 1));
  --tw-text-opacity: 1;
  color: rgb(120 53 15 / var(--tw-text-opacity, 1));
}

.alert-info {
  --tw-border-opacity: 1;
  border-color: rgb(188 208 255 / var(--tw-border-opacity, 1));
  --tw-bg-opacity: 1;
  background-color: rgb(239 244 255 / var(--tw-bg-opacity, 1));
  --tw-text-opacity: 1;
  color: rgb(15 23 42 / var(--tw-text-opacity, 1));
}

.\!badge {
  border-radius: 9999px;
  padding-left: 0.625rem;
  padding-right: 0.625rem;
  padding-top: 0.25rem;
  padding-bottom: 0.25rem;
  font-family: Geomini, system-ui, -apple-system, BlinkMacSystemFont, Segoe UI, sans-serif;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.badge {
  border-radius: 9999px;
  padding-left: 0.625rem;
  padding-right: 0.625rem;
  padding-top: 0.25rem;
  padding-bottom: 0.25rem;
  font-family: Geomini, system-ui, -apple-system, BlinkMacSystemFont, Segoe UI, sans-serif;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.table {
  margin-bottom: 0px;
  vertical-align: middle;
  --tw-text-opacity: 1;
  color: rgb(51 65 85 / var(--tw-text-opacity, 1));
}

.table thead th {
  border-bottom-width: 1px;
  --tw-border-opacity: 1;
  border-color: rgb(226 232 240 / var(--tw-border-opacity, 1));
  --tw-bg-opacity: 1;
  background-color: rgb(248 250 252 / var(--tw-bg-opacity, 1));
  font-family: Geomini, system-ui, -apple-system, BlinkMacSystemFont, Segoe UI, sans-serif;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  --tw-text-opacity: 1;
  color: rgb(100 116 139 / var(--tw-text-opacity, 1));
}

.table tbody tr {
  transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 200ms;
}

.table tbody tr:hover {
  background-color: rgb(239 244 255 / 0.6);
}

.table-responsive {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow-soft);
}

.nav-tabs {
  gap: 0.5rem;
  border-width: 0px;
}


  .main-content .nav-tabs .nav-link {
  background-color: var(--card);
  color: var(--foreground);
}

.nav-tabs .nav-link {
  border-radius: 1rem;
  border-width: 1px;
  --tw-border-opacity: 1;
  border-color: rgb(226 232 240 / var(--tw-border-opacity, 1));
  --tw-bg-opacity: 1;
  background-color: rgb(255 255 255 / var(--tw-bg-opacity, 1));
  padding-left: 1rem;
  padding-right: 1rem;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
  font-weight: 600;
  --tw-text-opacity: 1;
  color: rgb(71 85 105 / var(--tw-text-opacity, 1));
  transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 200ms;
}

[data-theme="dark"] .nav-tabs .nav-link,
[data-bs-theme="dark"] .nav-tabs .nav-link,
.dark .nav-tabs .nav-link {
  background-color: var(--bg-surface);
  color: var(--text-primary);
}

.nav-tabs .nav-link:hover {
  --tw-border-opacity: 1;
  border-color: rgb(188 208 255 / var(--tw-border-opacity, 1));
  --tw-bg-opacity: 1;
  background-color: rgb(239 244 255 / var(--tw-bg-opacity, 1));
  --tw-text-opacity: 1;
  color: rgb(0 51 163 / var(--tw-text-opacity, 1));
}

.nav-tabs .nav-link.active {
  --tw-border-opacity: 1;
  border-color: rgb(15 23 42 / var(--tw-border-opacity, 1));
  --tw-bg-opacity: 1;
  background-color: rgb(15 23 42 / var(--tw-bg-opacity, 1));
  --tw-text-opacity: 1;
  color: rgb(255 255 255 / var(--tw-text-opacity, 1));
}

.pagination .active .page-link {
  --tw-border-opacity: 1;
  border-color: rgb(15 23 42 / var(--tw-border-opacity, 1));
  --tw-bg-opacity: 1;
  background-color: rgb(15 23 42 / var(--tw-bg-opacity, 1));
  --tw-text-opacity: 1;
  color: rgb(255 255 255 / var(--tw-text-opacity, 1));
}

.modal-content {
  overflow: hidden;
}


  .main-content .modal-header {
  background-color: var(--card);
  color: var(--foreground);
}

.modal-header {
  border-bottom-width: 1px;
  --tw-border-opacity: 1;
  border-color: rgb(226 232 240 / var(--tw-border-opacity, 1));
  --tw-bg-opacity: 1;
  background-color: rgb(255 255 255 / var(--tw-bg-opacity, 1));
}

[data-theme="dark"] .modal-header,
[data-bs-theme="dark"] .modal-header,
.dark .modal-header {
  background-color: var(--bg-surface);
  color: var(--text-primary);
}

.modal-footer {
  border-top-width: 1px;
  --tw-border-opacity: 1;
  border-color: rgb(226 232 240 / var(--tw-border-opacity, 1));
  --tw-bg-opacity: 1;
  background-color: rgb(248 250 252 / var(--tw-bg-opacity, 1));
}

.tfd-inline-action-btn {
  display: inline-flex;
  min-height: 3rem;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: 1rem;
  padding-left: 1rem;
  padding-right: 1rem;
  font-weight: 600;
  transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 200ms;
}

.tfd-icon-badge {
  box-shadow: var(--shadow-soft);
}


  .main-content .tfd-icon-badge {
  background-color: var(--card);
  color: var(--foreground);
}

.tfd-icon-badge {
  display: inline-flex;
  height: 3rem;
  width: 3rem;
  align-items: center;
  justify-content: center;
  border-radius: 1rem;
  border-width: 1px;
  --tw-border-opacity: 1;
  border-color: rgb(226 232 240 / var(--tw-border-opacity, 1));
  --tw-bg-opacity: 1;
  background-color: rgb(255 255 255 / var(--tw-bg-opacity, 1));
  --tw-text-opacity: 1;
  color: rgb(15 23 42 / var(--tw-text-opacity, 1));
  --tw-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);
  box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
}

[data-theme="dark"] .tfd-icon-badge,
[data-bs-theme="dark"] .tfd-icon-badge,
.dark .tfd-icon-badge {
  background-color: var(--bg-surface);
  color: var(--text-primary);
}

.tfd-icon-badge--sm {
  height: 2.5rem;
  width: 2.5rem;
  border-radius: 0.75rem;
}

.tfd-icon-badge--lg {
  height: 4rem;
  width: 4rem;
  border-radius: 1.4rem;
}

.tfd-icon-badge.is-primary {
  --tw-border-opacity: 1;
  border-color: rgb(221 232 255 / var(--tw-border-opacity, 1));
  --tw-bg-opacity: 1;
  background-color: rgb(239 244 255 / var(--tw-bg-opacity, 1));
  --tw-text-opacity: 1;
  color: rgb(0 51 163 / var(--tw-text-opacity, 1));
}

.tfd-icon-badge.is-success {
  --tw-border-opacity: 1;
  border-color: rgb(209 250 229 / var(--tw-border-opacity, 1));
  --tw-bg-opacity: 1;
  background-color: rgb(236 253 245 / var(--tw-bg-opacity, 1));
  --tw-text-opacity: 1;
  color: rgb(5 150 105 / var(--tw-text-opacity, 1));
}

.tfd-icon-badge.is-warning {
  --tw-border-opacity: 1;
  border-color: rgb(254 243 199 / var(--tw-border-opacity, 1));
  --tw-bg-opacity: 1;
  background-color: rgb(255 251 235 / var(--tw-bg-opacity, 1));
  --tw-text-opacity: 1;
  color: rgb(217 119 6 / var(--tw-text-opacity, 1));
}

.tfd-icon-badge.is-info {
  --tw-border-opacity: 1;
  border-color: rgb(224 242 254 / var(--tw-border-opacity, 1));
  --tw-bg-opacity: 1;
  background-color: rgb(240 249 255 / var(--tw-bg-opacity, 1));
  --tw-text-opacity: 1;
  color: rgb(2 132 199 / var(--tw-text-opacity, 1));
}

.dashboard-stat-card {
  box-shadow: var(--shadow-soft);
}


  .main-content .dashboard-stat-card {
  background-color: var(--card);
  color: var(--foreground);
}

.dashboard-stat-card {
  border-width: 1px;
  --tw-border-opacity: 1;
  border-color: rgb(226 232 240 / var(--tw-border-opacity, 1));
  --tw-bg-opacity: 1;
  background-color: rgb(255 255 255 / var(--tw-bg-opacity, 1));
  --tw-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);
  box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
  transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 200ms;
}

[data-theme="dark"] .dashboard-stat-card,
[data-bs-theme="dark"] .dashboard-stat-card,
.dark .dashboard-stat-card {
  background-color: var(--bg-surface);
  color: var(--text-primary);
}

.dashboard-stat-card:hover {
  --tw-translate-y: -0.125rem;
  transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
  box-shadow: var(--shadow-medium);
}

.hero-card,
  .search-card,
  .summary-card,
  .panel,
  .trip-card {
  box-shadow: var(--shadow-soft);
}


  .main-content .hero-card,
  .main-content 
  .search-card,
  .main-content 
  .summary-card,
  .main-content 
  .panel,
  .main-content 
  .trip-card {
  background-color: var(--card);
  color: var(--foreground);
}

.hero-card,
  .search-card,
  .summary-card,
  .panel,
  .trip-card {
  overflow: hidden;
  border-radius: 24px;
  border-width: 1px;
  --tw-border-opacity: 1;
  border-color: rgb(226 232 240 / var(--tw-border-opacity, 1));
  --tw-bg-opacity: 1;
  background-color: rgb(255 255 255 / var(--tw-bg-opacity, 1));
  --tw-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);
  box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
}

[data-theme="dark"] .hero-card,
[data-bs-theme="dark"] .hero-card,
.dark .hero-card,[data-theme="dark"] 
  .search-card,
[data-bs-theme="dark"] 
  .search-card,
.dark 
  .search-card,[data-theme="dark"] 
  .summary-card,
[data-bs-theme="dark"] 
  .summary-card,
.dark 
  .summary-card,[data-theme="dark"] 
  .panel,
[data-bs-theme="dark"] 
  .panel,
.dark 
  .panel,[data-theme="dark"] 
  .trip-card,
[data-bs-theme="dark"] 
  .trip-card,
.dark 
  .trip-card {
  background-color: var(--bg-surface);
  color: var(--text-primary);
}

.section-label {
  margin-bottom: 0.75rem;
  display: inline-flex;
  align-items: center;
  border-radius: 9999px;
  border-width: 1px;
  --tw-border-opacity: 1;
  border-color: rgb(221 232 255 / var(--tw-border-opacity, 1));
  --tw-bg-opacity: 1;
  background-color: rgb(239 244 255 / var(--tw-bg-opacity, 1));
  padding-left: 0.75rem;
  padding-right: 0.75rem;
  padding-top: 0.25rem;
  padding-bottom: 0.25rem;
  font-family: Geomini, system-ui, -apple-system, BlinkMacSystemFont, Segoe UI, sans-serif;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  --tw-text-opacity: 1;
  color: rgb(0 51 163 / var(--tw-text-opacity, 1));
}

.summary-route,
  .trip-title,
  .monitoring-title {
  font-family: Geomini, system-ui, -apple-system, BlinkMacSystemFont, Segoe UI, sans-serif;
  --tw-text-opacity: 1;
  color: rgb(15 23 42 / var(--tw-text-opacity, 1));
}

.summary-route {
  font-size: 1.5rem;
  line-height: 2rem;
}

.trip-title {
  font-size: 1.875rem;
  line-height: 2.25rem;
}

.trip-subtitle,
  .summary-subtitle {
  font-size: 0.875rem;
  line-height: 1.25rem;
  --tw-text-opacity: 1;
  color: rgb(100 116 139 / var(--tw-text-opacity, 1));
}

.meta-pill,
  .route-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: 9999px;
  border-width: 1px;
  --tw-border-opacity: 1;
  border-color: rgb(226 232 240 / var(--tw-border-opacity, 1));
  --tw-bg-opacity: 1;
  background-color: rgb(248 250 252 / var(--tw-bg-opacity, 1));
  padding-left: 0.75rem;
  padding-right: 0.75rem;
  padding-top: 0.25rem;
  padding-bottom: 0.25rem;
  font-size: 0.875rem;
  line-height: 1.25rem;
  --tw-text-opacity: 1;
  color: rgb(51 65 85 / var(--tw-text-opacity, 1));
}

.info-row {
  display: grid;
  gap: 0.75rem;
  border-radius: 20px;
  border-width: 1px;
  --tw-border-opacity: 1;
  border-color: rgb(226 232 240 / var(--tw-border-opacity, 1));
  --tw-bg-opacity: 1;
  background-color: rgb(248 250 252 / var(--tw-bg-opacity, 1));
  padding: 1rem;
}

body.print-patient-page .info-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

body.print-driver-document .info-row {
  width: 100%;
  margin-top: 12px;
  border-collapse: collapse;
}

body.print-driver-document .info-row td,
body.print-driver-document .info-row th {
  border: 1px solid var(--print-line);
  padding: 8px;
  vertical-align: top;
}

body.print-driver-document .info-row th {
  background: #f3f8f9;
  text-align: left;
}

@media (max-width: 600px) {
  body.print-patient-page .info-row {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 768px) {
  .info-row {
    grid-template-columns: auto 1fr;
  }
}

.info-icon {
  display: flex;
  height: 2.75rem;
  width: 2.75rem;
  align-items: center;
  justify-content: center;
  border-radius: 1rem;
  --tw-bg-opacity: 1;
  background-color: rgb(239 244 255 / var(--tw-bg-opacity, 1));
  --tw-text-opacity: 1;
  color: rgb(0 51 163 / var(--tw-text-opacity, 1));
}


  .main-content .passenger-item {
  background-color: var(--card);
  color: var(--foreground);
}

.passenger-item {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  border-radius: 1rem;
  border-width: 1px;
  --tw-border-opacity: 1;
  border-color: rgb(226 232 240 / var(--tw-border-opacity, 1));
  --tw-bg-opacity: 1;
  background-color: rgb(255 255 255 / var(--tw-bg-opacity, 1));
  padding: 0.75rem;
}

[data-theme="dark"] .passenger-item,
[data-bs-theme="dark"] .passenger-item,
.dark .passenger-item {
  background-color: var(--bg-surface);
  color: var(--text-primary);
}

.passenger-name {
  font-weight: 600;
  --tw-text-opacity: 1;
  color: rgb(15 23 42 / var(--tw-text-opacity, 1));
}

.route-actions,
  .summary-actions,
  .passenger-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.kanban-board {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  padding-bottom: 1rem;
  min-height: calc(100vh - 200px);
}

.kanban-col {
  box-shadow: var(--shadow-soft);
}


  .main-content .kanban-col {
  background-color: var(--card);
  color: var(--foreground);
}

.kanban-col {
  display: flex;
  min-width: 320px;
  max-width: 320px;
  flex-direction: column;
  overflow: hidden;
  border-radius: 24px;
  border-width: 1px;
  --tw-border-opacity: 1;
  border-color: rgb(226 232 240 / var(--tw-border-opacity, 1));
  --tw-bg-opacity: 1;
  background-color: rgb(255 255 255 / var(--tw-bg-opacity, 1));
  --tw-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);
  box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
}

[data-theme="dark"] .kanban-col,
[data-bs-theme="dark"] .kanban-col,
.dark .kanban-col {
  background-color: var(--bg-surface);
  color: var(--text-primary);
}

.kanban-col-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-left: 1rem;
  padding-right: 1rem;
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
  font-weight: 600;
  --tw-text-opacity: 1;
  color: rgb(255 255 255 / var(--tw-text-opacity, 1));
}

.kanban-col-body {
  flex: 1 1 0%;
}

.kanban-col-body > :not([hidden]) ~ :not([hidden]) {
  --tw-space-y-reverse: 0;
  margin-top: calc(0.75rem * calc(1 - var(--tw-space-y-reverse)));
  margin-bottom: calc(0.75rem * var(--tw-space-y-reverse));
}

.kanban-col-body {
  padding: 1rem;
}

.kanban-card {
  box-shadow: var(--shadow-soft);
}


  .main-content .kanban-card {
  background-color: var(--card);
  color: var(--foreground);
}

.kanban-card {
  border-radius: 1rem;
  border-width: 1px;
  --tw-border-opacity: 1;
  border-color: rgb(226 232 240 / var(--tw-border-opacity, 1));
  --tw-bg-opacity: 1;
  background-color: rgb(255 255 255 / var(--tw-bg-opacity, 1));
  padding: 1rem;
  --tw-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);
  box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
  transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 200ms;
}

[data-theme="dark"] .kanban-card,
[data-bs-theme="dark"] .kanban-card,
.dark .kanban-card {
  background-color: var(--bg-surface);
  color: var(--text-primary);
}

.kanban-card {
  cursor: grab;
}

.kanban-card:hover {
  --tw-translate-y: -0.125rem;
  transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
  box-shadow: var(--shadow-medium);
}

.kanban-card:active {
  cursor: grabbing;
}

.monitoring-progress-fill,
  .trip-bar-fill {
  border-radius: 9999px;
  background: linear-gradient(135deg, var(--accent), var(--accent-secondary));
}

.tfd-crud-page > :not([hidden]) ~ :not([hidden]) {
  --tw-space-y-reverse: 0;
  margin-top: calc(1rem * calc(1 - var(--tw-space-y-reverse)));
  margin-bottom: calc(1rem * var(--tw-space-y-reverse));
}

.tfd-crud-page--form .card,
  .tfd-crud-page--form .tfd-section-card {
  box-shadow: var(--shadow-soft);
  --tw-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);
  box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
}

.tfd-module-page > :not([hidden]) ~ :not([hidden]) {
  --tw-space-y-reverse: 0;
  margin-top: calc(1.25rem * calc(1 - var(--tw-space-y-reverse)));
  margin-bottom: calc(1.25rem * var(--tw-space-y-reverse));
}

.tfd-module-page > .row:first-of-type {
  margin-bottom: 0px;
  border-radius: 24px;
  padding: 1.25rem;
}

@media (min-width: 768px) {
  .tfd-module-page > .row:first-of-type {
    padding: 1.5rem;
  }
}

.tfd-module-page > .\!row:first-of-type {
  margin-bottom: 0px;
  border-radius: 24px;
  padding: 1.25rem;
}

@media (min-width: 768px) {
  .tfd-module-page > .\!row:first-of-type {
    padding: 1.5rem;
  }
}

.tfd-module-page > .row:first-of-type {
  border: 1px solid var(--border) !important;
  background: var(--card) !important;
  box-shadow: var(--shadow-soft);
  margin-bottom: 0 !important;
}

.tfd-module-page > .\!row:first-of-type {
  border: 1px solid var(--border) !important;
  background: var(--card) !important;
  box-shadow: var(--shadow-soft) !important;
  margin-bottom: 0 !important;
}

.tfd-module-page > .row:first-of-type > .col-12 > .d-flex,
  .tfd-module-page > .row:first-of-type > .col-12.d-flex {
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
}

@media (min-width: 768px) {
  .tfd-module-page > .row:first-of-type > .col-12 > .d-flex,
  .tfd-module-page > .row:first-of-type > .col-12.d-flex {
    flex-direction: row;
    align-items: center;
  }
}

.tfd-module-page > .\!row:first-of-type > .col-12 > .d-flex,
  .tfd-module-page > .\!row:first-of-type > .col-12.d-flex {
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
}

@media (min-width: 768px) {
  .tfd-module-page > .\!row:first-of-type > .col-12 > .d-flex,
  .tfd-module-page > .\!row:first-of-type > .col-12.d-flex {
    flex-direction: row;
    align-items: center;
  }
}

.tfd-module-page > .\!row:first-of-type > .col-12 > .d-flex,
  .tfd-module-page > .\!row:first-of-type > .col-12.d-flex {
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
}

@media (min-width: 768px) {
  .tfd-module-page > .\!row:first-of-type > .col-12 > .d-flex,
  .tfd-module-page > .\!row:first-of-type > .col-12.d-flex {
    flex-direction: row;
    align-items: center;
  }
}

.tfd-module-page > .row:first-of-type .breadcrumb {
  margin-bottom: 0.75rem;
}

.tfd-module-page > .\!row:first-of-type .breadcrumb {
  margin-bottom: 0.75rem;
}

.tfd-module-page > .row:first-of-type .h4 {
  font-size: 1.875rem;
  line-height: 2.25rem;
  line-height: 1.25;
}

@media (min-width: 768px) {
  .tfd-module-page > .row:first-of-type .h4 {
    font-size: 2.25rem;
    line-height: 2.5rem;
  }
}

.tfd-module-page > .\!row:first-of-type .h4 {
  font-size: 1.875rem;
  line-height: 2.25rem;
  line-height: 1.25;
}

@media (min-width: 768px) {
  .tfd-module-page > .\!row:first-of-type .h4 {
    font-size: 2.25rem;
    line-height: 2.5rem;
  }
}

.tfd-module-page > .row:first-of-type .justify-content-between > .d-flex {
  width: 100%;
  flex-wrap: wrap;
}

@media (min-width: 768px) {
  .tfd-module-page > .row:first-of-type .justify-content-between > .d-flex {
    width: auto;
  }
}

.tfd-module-page > .\!row:first-of-type .justify-content-between > .d-flex {
  width: 100%;
  flex-wrap: wrap;
}

@media (min-width: 768px) {
  .tfd-module-page > .\!row:first-of-type .justify-content-between > .d-flex {
    width: auto;
  }
}

.tfd-module-page > .row:first-of-type .justify-content-between > .d-flex > .btn {
  flex: 1 1 0%;
}

@media (min-width: 768px) {
  .tfd-module-page > .row:first-of-type .justify-content-between > .d-flex > .btn {
    flex: none;
  }
}

.tfd-module-page > .\!row:first-of-type .justify-content-between > .d-flex > .btn {
  flex: 1 1 0%;
}

@media (min-width: 768px) {
  .tfd-module-page > .\!row:first-of-type .justify-content-between > .d-flex > .btn {
    flex: none;
  }
}

.tfd-module-page .glass-card > .glass-card-header,
  .tfd-module-page .glass-card > .glass-card-body,
  .tfd-module-page .glass-card > .glass-card-footer {
  border-radius: 0 !important;
  box-shadow: none !important;
  transform: none !important;
}

.tfd-module-page .glass-card > .glass-card-header {
  border-bottom-width: 1px;
  border-color: rgb(226 232 240 / 0.8);
  padding-left: 1rem;
  padding-right: 1rem;
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
  --tw-text-opacity: 1;
  color: rgb(15 23 42 / var(--tw-text-opacity, 1));
  background: linear-gradient(180deg, rgba(248, 250, 252, 0.98), #fff) !important;
}

.tfd-module-page .glass-card > .glass-card-body {
  --tw-text-opacity: 1;
  color: rgb(71 85 105 / var(--tw-text-opacity, 1));
  background: rgba(255, 255, 255, 0.98) !important;
}

.tfd-module-page .glass-card > .glass-card-footer {
  border-top-width: 1px;
  border-color: rgb(226 232 240 / 0.8);
  background-color: rgb(248 250 252 / 0.8);
  padding-left: 1rem;
  padding-right: 1rem;
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}

.tfd-module-page .card-header strong,
  .tfd-module-page .card-header h5,
  .tfd-module-page .card-header h6 {
  font-weight: 600;
  --tw-text-opacity: 1;
  color: rgb(15 23 42 / var(--tw-text-opacity, 1));
}

.tfd-module-page .card-header i,
  .tfd-module-page .glass-card-header i {
  color: var(--accent) !important;
}

.tfd-module-page .table-wrapper {
  width: 100%;
  overflow-x: auto;
}

.tfd-module-page--agendamentos.tfd-module-page--index .table,
  .tfd-module-page--pagamentos-motoristas.tfd-module-page--index .table,
  .tfd-module-page--pagamentos.tfd-module-page--index .table {
  min-width: 980px;
}

.tfd-module-page--pacientes.tfd-module-page--index .table,
  .tfd-module-page--usuarios.tfd-module-page--index .table {
  min-width: 980px;
}

.tfd-module-page--procedimentos.tfd-module-page--index .table {
  min-width: 700px;
}

.tfd-module-page--fleet.tfd-module-page--index .table {
  min-width: 860px;
}

.tfd-module-page .table td,
  .tfd-module-page .table th {
  padding-left: 1rem;
  padding-right: 1rem;
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}

.tfd-module-page .table .btn-group {
  flex-wrap: nowrap;
}

.tfd-module-page [class~='rounded-3'][class~='p-3'] {
  border-color: rgb(226 232 240) !important;
  border-radius: 1rem !important;
  background-color: rgba(248, 250, 252, 0.8) !important;
}

.tfd-module-page--form > form,
  .tfd-module-page--form .row > .col-12 > form {
  width: 100%;
}


  .tfd-module-page--form .\!row > .col-12 > form {
  width: 100%;
}

.tfd-module-page--form .card:last-child {
  margin-bottom: 0px;
}

.tfd-module-page--kanban .kanban-board {
  padding-bottom: 0.75rem;
}

.tfd-module-page--show .card-body > .row.g-3 > [class*='col-'] > small:first-child {
  margin-bottom: 0.25rem;
  display: block;
  font-weight: 500;
  --tw-text-opacity: 1;
  color: rgb(100 116 139 / var(--tw-text-opacity, 1));
}

.tfd-module-page--show .card-body > .\!row.g-3 > [class*='col-'] > small:first-child {
  margin-bottom: 0.25rem;
  display: block;
  font-weight: 500;
  --tw-text-opacity: 1;
  color: rgb(100 116 139 / var(--tw-text-opacity, 1));
}

.tfd-module-page--agendamentos > :not([hidden]) ~ :not([hidden]) {
  --tw-space-y-reverse: 0;
  margin-top: calc(0px * calc(1 - var(--tw-space-y-reverse)));
  margin-bottom: calc(0px * var(--tw-space-y-reverse));
}

.tfd-module-page--agendamentos > .row:first-of-type {
  margin-bottom: 1.5rem !important;
}

.tfd-module-page--agendamentos > .\!row:first-of-type {
  margin-bottom: 1.5rem !important;
}

.tfd-module-page--agendamentos > .row + .card,
  .tfd-module-page--agendamentos > .card + .card {
  margin-top: 0 !important;
}

.tfd-module-page--agendamentos > .\!row + .card {
  margin-top: 0 !important;
}

.tfd-module-page--agendamentos .card-header {
  display: flex;
  min-height: 54px;
  align-items: center;
  padding-left: 1rem;
  padding-right: 1rem;
}

@media (min-width: 768px) {
  .tfd-module-page--agendamentos .card-header {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }
}

.tfd-module-page--agendamentos .card-header h5,
  .tfd-module-page--agendamentos .card-header h6 {
  display: flex;
  align-items: center;
}

.tfd-module-page--agendamentos .tfd-agendamento-form > .card + .card {
  margin-top: 0 !important;
}

.tfd-module-page--agendamentos .tfd-agendamento-form .card-body > .row {
  margin-bottom: 0px;
}

.tfd-module-page--agendamentos .tfd-agendamento-form .card-body > .\!row {
  margin-bottom: 0px;
}

.tfd-module-page--agendamentos .tfd-agendamento-form .card-body > .row {
  row-gap: 1rem;
}

.tfd-module-page--agendamentos .tfd-agendamento-form .card-body > .\!row {
  row-gap: 1rem !important;
}

.tfd-module-page--agendamentos .tfd-agendamento-form .card-body > .row + .row {
  margin-top: 1rem;
}

.tfd-module-page--agendamentos .tfd-agendamento-form .card-body > .\!row + .\!row {
  margin-top: 1rem;
}

.tfd-module-page--agendamentos .avatar-circle {
  display: flex;
  height: 2.25rem;
  width: 2.25rem;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  font-size: 0.875rem;
  line-height: 1.25rem;
  font-weight: 600;
}

.tfd-module-page--agendamentos .agendamentos-actions .btn {
  min-height: 2.25rem;
  min-width: 2.25rem;
  border-radius: 0.75rem;
  padding: 0.5rem;
}

.tfd-module-page--agendamentos .agendamentos-table td:last-child {
  text-align: end;
}

.tfd-module-page--agendamentos.tfd-module-page--kanban .kanban-board {
  min-height: calc(100vh - 330px);
}

.tfd-module-page--agendamentos.tfd-module-page--kanban .kanban-col {
  border-radius: 1rem;
}

.tfd-module-page--agendamentos.tfd-module-page--show .card-body .form-label {
  margin-bottom: 0.25rem;
  font-size: 0.75rem;
  line-height: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  --tw-text-opacity: 1;
  color: rgb(100 116 139 / var(--tw-text-opacity, 1));
}

.tfd-module-page--pacientes > :not([hidden]) ~ :not([hidden]) {
  --tw-space-y-reverse: 0;
  margin-top: calc(0px * calc(1 - var(--tw-space-y-reverse)));
  margin-bottom: calc(0px * var(--tw-space-y-reverse));
}

.tfd-module-page--pacientes > .row:first-of-type {
  margin-bottom: 1.5rem !important;
}

.tfd-module-page--pacientes > .\!row:first-of-type {
  margin-bottom: 1.5rem !important;
}

.tfd-module-page--pacientes > .row + .card,
  .tfd-module-page--pacientes > .card + .card {
  margin-top: 0 !important;
}

.tfd-module-page--pacientes > .\!row + .card {
  margin-top: 0 !important;
}

.tfd-module-page--pacientes .card-header {
  min-height: 54px;
  padding-left: 1rem;
  padding-right: 1rem;
}

@media (min-width: 768px) {
  .tfd-module-page--pacientes .card-header {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }
}

.tfd-module-page--pacientes .card-header h5,
  .tfd-module-page--pacientes .card-header h6 {
  display: flex;
  align-items: center;
}

.tfd-module-page--pacientes .tfd-paciente-form > .card + .card {
  margin-top: 0 !important;
}

.tfd-module-page--pacientes .tfd-paciente-form .card-body > .row {
  margin-bottom: 0px;
}

.tfd-module-page--pacientes .tfd-paciente-form .card-body > .\!row {
  margin-bottom: 0px;
}

.tfd-module-page--pacientes .tfd-paciente-form .card-body > .row {
  row-gap: 1rem;
}

.tfd-module-page--pacientes .tfd-paciente-form .card-body > .\!row {
  row-gap: 1rem !important;
}

.tfd-module-page--pacientes .tfd-paciente-form .card-body > .row + .row {
  margin-top: 1rem;
}

.tfd-module-page--pacientes .tfd-paciente-form .card-body > .\!row + .\!row {
  margin-top: 1rem;
}

.tfd-module-page--pacientes .pacientes-table-search {
  width: min(100%, 280px);
}

.tfd-module-page--pacientes .pacientes-actions .btn {
  min-height: 2.25rem;
  min-width: 2.25rem;
  border-radius: 0.75rem;
  padding: 0.5rem;
}

.tfd-module-page--pacientes .pacientes-actions form {
  display: flex;
}

.tfd-module-page--pacientes.tfd-module-page--show > .row > [class*='col-'] > .card > .card-body {
  padding: 1rem;
}

@media (min-width: 768px) {
  .tfd-module-page--pacientes.tfd-module-page--show > .row > [class*='col-'] > .card > .card-body {
    padding: 1.5rem;
  }
}

.tfd-module-page--pacientes.tfd-module-page--show > .\!row > [class*='col-'] > .card > .card-body {
  padding: 1rem;
}

@media (min-width: 768px) {
  .tfd-module-page--pacientes.tfd-module-page--show > .\!row > [class*='col-'] > .card > .card-body {
    padding: 1.5rem;
  }
}

.tfd-module-page--pacientes.tfd-module-page--show .patient-header-content {
  width: 100%;
}

.tfd-module-page--pacientes.tfd-module-page--show .card-body strong {
  font-weight: 600;
  --tw-text-opacity: 1;
  color: rgb(51 65 85 / var(--tw-text-opacity, 1));
}

.tfd-module-page--usuarios > :not([hidden]) ~ :not([hidden]) {
  --tw-space-y-reverse: 0;
  margin-top: calc(0px * calc(1 - var(--tw-space-y-reverse)));
  margin-bottom: calc(0px * var(--tw-space-y-reverse));
}

.tfd-module-page--usuarios > .row:first-of-type {
  margin-bottom: 1.5rem !important;
}

.tfd-module-page--usuarios > .\!row:first-of-type {
  margin-bottom: 1.5rem !important;
}

.tfd-module-page--usuarios > .row + .card,
  .tfd-module-page--usuarios > .card + .card {
  margin-top: 0 !important;
}

.tfd-module-page--usuarios > .\!row + .card {
  margin-top: 0 !important;
}

.tfd-module-page--usuarios .card-header {
  min-height: 54px;
  padding-left: 1rem;
  padding-right: 1rem;
}

@media (min-width: 768px) {
  .tfd-module-page--usuarios .card-header {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }
}

.tfd-module-page--usuarios .card-header h5,
  .tfd-module-page--usuarios .card-header h6 {
  display: flex;
  align-items: center;
}

.tfd-module-page--usuarios .usuarios-table-search {
  width: min(100%, 280px);
}

.tfd-module-page--usuarios .usuarios-actions .btn {
  min-height: 2.25rem;
  min-width: 2.25rem;
  border-radius: 0.75rem;
  padding: 0.5rem;
}

.tfd-module-page--usuarios .tfd-usuario-form > .row {
  margin-bottom: 0px;
}

.tfd-module-page--usuarios .tfd-usuario-form > .\!row {
  margin-bottom: 0px;
}

.tfd-module-page--usuarios .tfd-usuario-form > .row {
  row-gap: 1rem;
}

.tfd-module-page--usuarios .tfd-usuario-form > .\!row {
  row-gap: 1rem !important;
}

.tfd-module-page--usuarios .tfd-usuario-form > .row + .row {
  margin-top: 1rem;
}

.tfd-module-page--usuarios .tfd-usuario-form > .\!row + .\!row {
  margin-top: 1rem;
}

.tfd-module-page--usuarios .usuario-section-heading {
  margin-top: 1.5rem;
  border-top-width: 1px;
  --tw-border-opacity: 1;
  border-color: rgb(226 232 240 / var(--tw-border-opacity, 1));
  padding-top: 1.5rem;
}

.tfd-module-page--usuarios .tfd-usuario-form > .usuario-section-heading:first-of-type {
  margin-top: 0px;
  border-top-width: 0px;
  padding-top: 0px;
}

.tfd-module-page--usuarios .usuario-section-heading h6 {
  margin-bottom: 0px;
  display: flex;
  align-items: center;
  font-weight: 600;
  --tw-text-opacity: 1;
  color: rgb(15 23 42 / var(--tw-text-opacity, 1));
}

.tfd-module-page--usuarios .usuario-section-heading--permissions {
  align-items: center;
  border-radius: 1rem;
  border-width: 0px;
  --tw-bg-opacity: 1;
  background-color: rgb(248 250 252 / var(--tw-bg-opacity, 1));
  padding-left: 1rem;
  padding-right: 1rem;
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.tfd-module-page--usuarios .permission-module {
  border-width: 1px;
  --tw-border-opacity: 1;
  border-color: rgb(226 232 240 / var(--tw-border-opacity, 1));
  --tw-shadow: 0 0 #0000;
  --tw-shadow-colored: 0 0 #0000;
  box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
}

.tfd-module-page--usuarios .permission-module:hover {
  transform: none;
  box-shadow: var(--shadow-soft) !important;
}


  .main-content .tfd-module-page--usuarios .permission-check {
  background-color: var(--card);
  color: var(--foreground);
}

.tfd-module-page--usuarios .permission-check {
  display: flex;
  min-height: 2.75rem;
  align-items: center;
  --tw-bg-opacity: 1;
  background-color: rgb(255 255 255 / var(--tw-bg-opacity, 1));
  transition-property: color, background-color, border-color, text-decoration-color, fill, stroke;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}

[data-theme="dark"] .tfd-module-page--usuarios .permission-check,
[data-bs-theme="dark"] .tfd-module-page--usuarios .permission-check,
.dark .tfd-module-page--usuarios .permission-check {
  background-color: var(--bg-surface);
  color: var(--text-primary);
}

.tfd-module-page--usuarios .permission-check:has(.permission-checkbox:checked) {
  border-color: rgba(0, 82, 255, 0.28) !important;
  background-color: rgba(0, 82, 255, 0.05) !important;
}

.tfd-module-page--procedimentos > :not([hidden]) ~ :not([hidden]) {
  --tw-space-y-reverse: 0;
  margin-top: calc(0px * calc(1 - var(--tw-space-y-reverse)));
  margin-bottom: calc(0px * var(--tw-space-y-reverse));
}

.tfd-module-page--procedimentos > .row:first-of-type {
  margin-bottom: 1.5rem !important;
}

.tfd-module-page--procedimentos > .\!row:first-of-type {
  margin-bottom: 1.5rem !important;
}

.tfd-module-page--procedimentos .card-header {
  min-height: 54px;
  padding-left: 1rem;
  padding-right: 1rem;
}

@media (min-width: 768px) {
  .tfd-module-page--procedimentos .card-header {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }
}

.tfd-module-page--procedimentos .card-header h5,
  .tfd-module-page--procedimentos .card-header h6 {
  display: flex;
  align-items: center;
}

.tfd-module-page--procedimentos .card-header.bg-primary h5,
  .tfd-module-page--procedimentos .card-header.bg-primary h6,
  .tfd-module-page--procedimentos .card-header.bg-primary i {
  color: #fff !important;
}

.tfd-module-page--procedimentos .tfd-procedimento-form .row {
  margin-bottom: 0px;
}

.tfd-module-page--procedimentos .tfd-procedimento-form .\!row {
  margin-bottom: 0px;
}

.tfd-module-page--procedimentos .tfd-procedimento-form .row {
  row-gap: 1rem;
}

.tfd-module-page--procedimentos .tfd-procedimento-form .\!row {
  row-gap: 1rem !important;
}

.tfd-module-page--procedimentos .procedimentos-actions-column {
  width: 150px;
}

.tfd-module-page--procedimentos .procedimentos-actions .btn {
  min-height: 2.25rem;
  min-width: 2.25rem;
  border-radius: 0.75rem;
  padding: 0.5rem;
}

.tfd-module-page--procedimentos .procedimentos-form-layout > [class*='col-'] > .card > .card-body {
  padding: 1rem;
}

@media (min-width: 768px) {
  .tfd-module-page--procedimentos .procedimentos-form-layout > [class*='col-'] > .card > .card-body {
    padding: 1.5rem;
  }
}

.tfd-module-page--fleet > :not([hidden]) ~ :not([hidden]) {
  --tw-space-y-reverse: 0;
  margin-top: calc(0px * calc(1 - var(--tw-space-y-reverse)));
  margin-bottom: calc(0px * var(--tw-space-y-reverse));
}

.tfd-module-page--fleet > .row:first-of-type {
  margin-bottom: 1.5rem !important;
}

.tfd-module-page--fleet > .\!row:first-of-type {
  margin-bottom: 1.5rem !important;
}

.tfd-module-page--fleet .card-header {
  min-height: 54px;
  padding-left: 1rem;
  padding-right: 1rem;
}

@media (min-width: 768px) {
  .tfd-module-page--fleet .card-header {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }
}

.tfd-module-page--fleet .card-header h5,
  .tfd-module-page--fleet .card-header h6 {
  display: flex;
  align-items: center;
}

.tfd-module-page--fleet .card-header.bg-primary h5,
  .tfd-module-page--fleet .card-header.bg-primary h6,
  .tfd-module-page--fleet .card-header.bg-primary i {
  color: #fff !important;
}

.tfd-module-page--fleet .fleet-stat-grid .card-body {
  padding: 1rem;
}

.tfd-module-page--fleet .fleet-actions-column {
  width: 150px;
}

.tfd-module-page--fleet .fleet-actions .btn {
  min-height: 2.25rem;
  min-width: 2.25rem;
  border-radius: 0.75rem;
  padding: 0.5rem;
}

.tfd-module-page--fleet .fleet-form > .row {
  margin-bottom: 0px;
}

.tfd-module-page--fleet .fleet-form > .\!row {
  margin-bottom: 0px;
}

.tfd-module-page--fleet .fleet-form > .row {
  row-gap: 1rem;
}

.tfd-module-page--fleet .fleet-form > .\!row {
  row-gap: 1rem !important;
}

.tfd-module-page--fleet .fleet-map {
  overflow: hidden;
  border-radius: 1rem;
  border-width: 1px;
  --tw-border-opacity: 1;
  border-color: rgb(226 232 240 / var(--tw-border-opacity, 1));
  height: 320px;
}

.tfd-module-page--fleet .card-footer > .d-flex {
  flex-wrap: wrap;
  gap: 0.75rem;
}

.tfd-module-page--pagamentos-motoristas > :not([hidden]) ~ :not([hidden]) {
  --tw-space-y-reverse: 0;
  margin-top: calc(0px * calc(1 - var(--tw-space-y-reverse)));
  margin-bottom: calc(0px * var(--tw-space-y-reverse));
}

.tfd-module-page--pagamentos-motoristas > .row:first-of-type {
  margin-bottom: 1.5rem !important;
}

.tfd-module-page--pagamentos-motoristas > .\!row:first-of-type {
  margin-bottom: 1.5rem !important;
}

.tfd-module-page--pagamentos-motoristas .card-header {
  min-height: 54px;
  padding-left: 1rem;
  padding-right: 1rem;
}

@media (min-width: 768px) {
  .tfd-module-page--pagamentos-motoristas .card-header {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }
}

.tfd-module-page--pagamentos-motoristas .card-header strong,
  .tfd-module-page--pagamentos-motoristas .card-header h5,
  .tfd-module-page--pagamentos-motoristas .card-header h6 {
  display: flex;
  align-items: center;
}

.tfd-module-page--pagamentos-motoristas .card-header.bg-primary strong,
  .tfd-module-page--pagamentos-motoristas .card-header.bg-primary h5,
  .tfd-module-page--pagamentos-motoristas .card-header.bg-primary h6,
  .tfd-module-page--pagamentos-motoristas .card-header.bg-primary i {
  color: #fff !important;
}

.tfd-module-page--pagamentos-motoristas .payment-actions .btn {
  min-height: 2.25rem;
  min-width: 2.25rem;
  border-radius: 0.75rem;
  padding: 0.5rem;
}

.tfd-module-page--pagamentos-motoristas .payment-driver-form > [class*='col-'] > .card > .card-body,
  .tfd-module-page--pagamentos-motoristas .payment-settings-form .card > .card-body {
  padding: 1rem;
}

@media (min-width: 768px) {
  .tfd-module-page--pagamentos-motoristas .payment-driver-form > [class*='col-'] > .card > .card-body,
  .tfd-module-page--pagamentos-motoristas .payment-settings-form .card > .card-body {
    padding: 1.5rem;
  }
}

.tfd-module-page--pagamentos-motoristas .payment-driver-form .card-footer {
  padding-left: 1rem;
  padding-right: 1rem;
  padding-bottom: 1rem;
  padding-top: 0px;
}

@media (min-width: 768px) {
  .tfd-module-page--pagamentos-motoristas .payment-driver-form .card-footer {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
    padding-bottom: 1.5rem;
  }
}

.tfd-module-page--pagamentos-motoristas.tfd-module-page--show > .row > [class*='col-'] > .card > .card-body {
  padding: 1rem;
}

@media (min-width: 768px) {
  .tfd-module-page--pagamentos-motoristas.tfd-module-page--show > .row > [class*='col-'] > .card > .card-body {
    padding: 1.25rem;
  }
}

.tfd-module-page--pagamentos-motoristas.tfd-module-page--show > .\!row > [class*='col-'] > .card > .card-body {
  padding: 1rem;
}

@media (min-width: 768px) {
  .tfd-module-page--pagamentos-motoristas.tfd-module-page--show > .\!row > [class*='col-'] > .card > .card-body {
    padding: 1.25rem;
  }
}

.tfd-module-page--pagamentos-motoristas .table-empty-cell {
  text-align: center;
}

.tfd-module-page--pagamentos > :not([hidden]) ~ :not([hidden]) {
  --tw-space-y-reverse: 0;
  margin-top: calc(0px * calc(1 - var(--tw-space-y-reverse)));
  margin-bottom: calc(0px * var(--tw-space-y-reverse));
}

.tfd-module-page--pagamentos > .row:first-of-type {
  margin-bottom: 1.5rem !important;
}

.tfd-module-page--pagamentos > .\!row:first-of-type {
  margin-bottom: 1.5rem !important;
}

.tfd-module-page--pagamentos .card-header {
  min-height: 54px;
  padding-left: 1rem;
  padding-right: 1rem;
}

@media (min-width: 768px) {
  .tfd-module-page--pagamentos .card-header {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }
}

.tfd-module-page--pagamentos .card-header h5,
  .tfd-module-page--pagamentos .card-header h6 {
  display: flex;
  align-items: center;
}

.tfd-module-page--pagamentos .card-header.bg-primary h5,
  .tfd-module-page--pagamentos .card-header.bg-primary h6,
  .tfd-module-page--pagamentos .card-header.bg-primary i {
  color: #fff !important;
}

.tfd-module-page--pagamentos .pagamentos-stat-grid .card-body {
  padding: 1rem;
}

.tfd-module-page--pagamentos .pagamentos-actions .btn {
  min-height: 2.25rem;
  min-width: 2.25rem;
  border-radius: 0.75rem;
  padding: 0.5rem;
}

.tfd-module-page--pagamentos .payment-form > .row {
  margin-bottom: 0px;
}

.tfd-module-page--pagamentos .payment-form > .\!row {
  margin-bottom: 0px;
}

.tfd-module-page--pagamentos .payment-form > .row {
  row-gap: 1rem;
}

.tfd-module-page--pagamentos .payment-form > .\!row {
  row-gap: 1rem !important;
}

.tfd-module-page--pagamentos .payment-form > .d-flex:last-child {
  flex-wrap: wrap;
}

.tfd-module-page--dashboard > :not([hidden]) ~ :not([hidden]) {
  --tw-space-y-reverse: 0;
  margin-top: calc(0px * calc(1 - var(--tw-space-y-reverse)));
  margin-bottom: calc(0px * var(--tw-space-y-reverse));
}

.tfd-module-page--dashboard > .row:first-of-type {
  margin-bottom: 1.5rem !important;
}

.tfd-module-page--dashboard > .\!row:first-of-type {
  margin-bottom: 1.5rem !important;
}

.tfd-module-page--dashboard .dashboard-page-header {
  flex-direction: column;
}

@media (min-width: 1024px) {
  .tfd-module-page--dashboard .dashboard-page-header {
    flex-direction: row;
  }
}

.tfd-module-page--dashboard .dashboard-header-actions {
  width: 100%;
}

@media (min-width: 1024px) {
  .tfd-module-page--dashboard .dashboard-header-actions {
    width: auto;
  }
}

.tfd-module-page--dashboard .dashboard-header-actions .btn {
  flex: 1 1 0%;
  white-space: nowrap;
}

@media (min-width: 1024px) {
  .tfd-module-page--dashboard .dashboard-header-actions .btn {
    flex: none;
  }
}

.tfd-module-page--dashboard .dashboard-updated-at {
  display: flex;
  align-items: center;
}

.tfd-module-page--dashboard .card-header {
  min-height: 54px;
  padding-left: 1rem;
  padding-right: 1rem;
}

@media (min-width: 768px) {
  .tfd-module-page--dashboard .card-header {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }
}

.tfd-module-page--dashboard .card-header h5,
  .tfd-module-page--dashboard .card-header h6 {
  display: flex;
  align-items: center;
}

.tfd-module-page--dashboard .dashboard-status-panel {
  border-radius: 1rem;
  border-width: 1px;
  --tw-border-opacity: 1;
  border-color: rgb(226 232 240 / var(--tw-border-opacity, 1));
  background-color: rgb(248 250 252 / 0.6);
  padding: 1rem;
}

.tfd-module-page--dashboard .dashboard-chart {
  width: 100%;
}

.tfd-module-page--dashboard .dashboard-chart--status {
  height: 220px;
}

.tfd-module-page--dashboard .dashboard-chart--trend {
  height: 280px;
}

.tfd-module-page--dashboard .status-legend .badge {
  border-radius: 0.5rem;
  padding-left: 0.625rem;
  padding-right: 0.625rem;
  padding-top: 0.375rem;
  padding-bottom: 0.375rem;
  font-weight: 500;
}

.tfd-module-page--dashboard .status-legend .\!badge {
  border-radius: 0.5rem;
  padding-left: 0.625rem;
  padding-right: 0.625rem;
  padding-top: 0.375rem;
  padding-bottom: 0.375rem;
  font-weight: 500;
}

@media (min-width: 768px) {
  .tfd-module-page--dashboard .dashboard-quick-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.tfd-module-page--dashboard .dashboard-quick-actions .btn {
  display: flex;
  min-height: 3rem;
  align-items: center;
  justify-content: flex-start;
  padding-left: 1rem;
  padding-right: 1rem;
  text-align: start;
}

@media (min-width: 768px) {
  .tfd-module-page--dashboard .dashboard-quick-actions__wide {
    grid-column: span 2 / span 2;
  }
}

.tfd-module-page--dashboard .specialty-row:last-child {
  margin-bottom: 0px;
}

.tfd-module-page--dashboard .dashboard-empty-state {
  display: flex;
  min-height: 12rem;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 1rem;
  border-width: 1px;
  border-style: dashed;
  --tw-border-opacity: 1;
  border-color: rgb(226 232 240 / var(--tw-border-opacity, 1));
  background-color: rgb(248 250 252 / 0.6);
  padding-left: 1.25rem;
  padding-right: 1.25rem;
  text-align: center;
}

.tfd-module-page--dashboard .dashboard-empty-state > i {
  margin-bottom: 0.75rem;
  font-size: 1.875rem;
  line-height: 2.25rem;
  --tw-text-opacity: 1;
  color: rgb(203 213 225 / var(--tw-text-opacity, 1));
}

.tfd-module-page--dashboard .dashboard-empty-state p {
  margin-bottom: 0.25rem;
  font-weight: 600;
  --tw-text-opacity: 1;
  color: rgb(51 65 85 / var(--tw-text-opacity, 1));
}

.tfd-module-page--dashboard .dashboard-empty-state span,
  .tfd-module-page--dashboard .dashboard-section-lead {
  font-size: 0.875rem;
  line-height: 1.25rem;
  --tw-text-opacity: 1;
  color: rgb(100 116 139 / var(--tw-text-opacity, 1));
}

.tfd-module-page--dashboard .dashboard-activity-card .list-group-item {
  margin-bottom: 0px;
  border-radius: 0px;
  border-left-width: 0px;
  border-right-width: 0px;
  border-top-width: 0px;
  padding-left: 1rem;
  padding-right: 1rem;
  padding-top: 1rem;
  padding-bottom: 1rem;
}

@media (min-width: 768px) {
  .tfd-module-page--dashboard .dashboard-activity-card .list-group-item {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }
}

.tfd-module-page--dashboard .dashboard-activity-card .list-group-item:last-child {
  border-bottom-width: 0px;
}

.tfd-module-page--dashboard .timeline-item:last-child > .flex-grow-1 {
  padding-bottom: 0px;
}

@media (max-width: 767px) {
  .tfd-module-page > .row:first-of-type {
    border-radius: 20px;
    padding: 1rem;
  }

  .tfd-module-page > .row:first-of-type .btn,
    .tfd-module-page--form form > .d-flex:last-child .btn {
    width: 100%;
  }

  .tfd-module-page .card-body,
    .tfd-module-page .glass-card-body {
    padding: 1rem;
  }

  .tfd-module-page .card-body.p-0,
    .tfd-module-page .glass-card-body.p-0 {
    padding: 0 !important;
  }

  .tfd-module-page--agendamentos .tfd-agendamento-form .d-flex.justify-content-end {
    flex-direction: column-reverse;
  }

  .tfd-module-page--pacientes .tfd-paciente-form > .d-flex.justify-content-end {
    flex-direction: column-reverse;
  }

  .tfd-module-page--pacientes .pacientes-table-search {
    width: 100%;
  }

  .tfd-module-page--pacientes.tfd-module-page--index .card-header.d-flex {
    flex-direction: column;
    align-items: stretch;
  }

  .tfd-module-page--usuarios .tfd-usuario-form > .row:last-child .d-flex.justify-content-end {
    flex-direction: column-reverse;
  }

  .tfd-module-page--usuarios .usuarios-table-search {
    width: 100%;
  }

  .tfd-module-page--usuarios.tfd-module-page--index .card-header.d-flex {
    flex-direction: column;
    align-items: stretch;
  }

  .tfd-module-page--procedimentos .tfd-procedimento-form > .d-flex:last-child,
    .tfd-module-page--procedimentos .tfd-procedimento-form > .d-flex:last-child > .d-flex {
    width: 100%;
    flex-direction: column-reverse;
  }

  .tfd-module-page--procedimentos .tfd-procedimento-form > .d-flex:last-child .btn {
    width: 100%;
  }

  .tfd-module-page--fleet .fleet-form > .d-flex:last-child {
    width: 100%;
    flex-direction: column-reverse;
  }

  .tfd-module-page--fleet .fleet-form > .d-flex:last-child .btn {
    width: 100%;
  }

  .tfd-module-page--fleet .fleet-map {
    height: 260px;
  }

  .tfd-module-page--fleet .card-footer > .d-flex {
    flex-direction: column;
    align-items: flex-start;
  }

  .tfd-module-page--pagamentos-motoristas .payment-driver-form .card-footer {
    flex-direction: column-reverse;
  }

  .tfd-module-page--pagamentos-motoristas .payment-driver-form .card-footer .btn,
    .tfd-module-page--pagamentos-motoristas .payment-settings-form .card-footer .btn {
    width: 100%;
  }

  .tfd-module-page--pagamentos-motoristas .list-group-item.d-flex {
    flex-direction: column;
    align-items: flex-start;
  }

  .tfd-module-page--pagamentos .payment-form > .d-flex:last-child {
    width: 100%;
    flex-direction: column-reverse;
  }

  .tfd-module-page--pagamentos .payment-form > .d-flex:last-child .btn {
    width: 100%;
  }

  .tfd-module-page--dashboard .dashboard-header-actions {
    flex-direction: column;
  }

  .tfd-module-page--dashboard .dashboard-status-card > .card-body {
    padding: 0.75rem;
  }

  .tfd-module-page--dashboard .dashboard-chart--status {
    height: 200px;
  }

  .tfd-module-page--dashboard .dashboard-chart--trend {
    height: 240px;
  }

  .tfd-module-page--dashboard .timeline {
    padding-left: 1rem;
  }

  .tfd-module-page--dashboard .timeline::before,
    .tfd-module-page--dashboard .timeline-item::before {
    display: none;
  }

  .tfd-module-page--dashboard .timeline-item > .flex-grow-1 {
    margin-inline-start: 0px;
  }

  .tfd-module-page--dashboard .timeline-item .d-flex.justify-content-between,
    .tfd-module-page--dashboard .dashboard-activity-card .list-group-item > .d-flex {
    flex-direction: column;
    gap: 0.5rem;
  }

  .tfd-module-page > .\!row:first-of-type {
    border-radius: 20px;
    padding: 1rem;
  }

  .tfd-module-page > .\!row:first-of-type .btn {
    width: 100%;
  }

  .tfd-module-page--usuarios .tfd-usuario-form > .\!row:last-child .d-flex.justify-content-end {
    flex-direction: column-reverse;
  }

  .tfd-module-page > .\!row:first-of-type {
    border-radius: 20px;
    padding: 1rem;
  }

  .tfd-module-page > .\!row:first-of-type .btn {
    width: 100%;
  }

  .tfd-module-page--usuarios .tfd-usuario-form > .\!row:last-child .d-flex.justify-content-end {
    flex-direction: column-reverse;
  }

  .tfd-module-page > .\!row:first-of-type {
    border-radius: 20px;
    padding: 1rem;
  }

  .tfd-module-page > .\!row:first-of-type .btn {
    width: 100%;
  }

  .tfd-module-page--usuarios .tfd-usuario-form > .\!row:last-child .d-flex.justify-content-end {
    flex-direction: column-reverse;
  }
}

.focus-ring:focus-visible,
  .btn:focus-visible,
  .form-control:focus-visible,
  .form-select:focus-visible,
  .page-link:focus-visible,
  .nav-link:focus-visible,
  .dropdown-item:focus-visible {
  box-shadow: 0 0 0 4px rgba(0, 82, 255, 0.14);
}

.text-primary {
  color: var(--accent) !important;
}

.text-muted {
  color: #64748b !important;
}

.bg-primary {
  background-color: var(--accent) !important;
}

.bg-info {
  background-color: #0284c7 !important;
}

.bg-success {
  background-color: #10b981 !important;
}

.bg-warning {
  background-color: #f59e0b !important;
}

.bg-danger {
  background-color: #ef4444 !important;
}

.border-primary {
  border-color: var(--accent) !important;
}

.shadow-sm {
  box-shadow: var(--shadow-soft) !important;
}

.shadow-lg {
  box-shadow: var(--shadow-medium) !important;
}

/* Shared visual language for every view rendered inside the application shell. */

.main-content > .app-page-shell > :first-child:not(.alert) {
  animation: view-enter 420ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.main-content .row.mb-4:first-of-type,
  .main-content .d-flex.justify-content-between:first-of-type {
  margin-bottom: 1.5rem;
  align-items: flex-start;
  border-radius: 24px;
  border-width: 1px;
  padding: 1.25rem;
  --tw-backdrop-blur: blur(8px);
  backdrop-filter: var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);
}

@media (min-width: 768px) {
  .main-content .row.mb-4:first-of-type,
  .main-content .d-flex.justify-content-between:first-of-type {
    padding: 1.5rem;
  }
}

.main-content .\!row.mb-4:first-of-type {
  margin-bottom: 1.5rem;
  align-items: flex-start;
  border-radius: 24px;
  border-width: 1px;
  padding: 1.25rem;
  --tw-backdrop-blur: blur(8px);
  backdrop-filter: var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);
}

@media (min-width: 768px) {
  .main-content .\!row.mb-4:first-of-type {
    padding: 1.5rem;
  }
}

.main-content .row.mb-4:first-of-type,
  .main-content .d-flex.justify-content-between:first-of-type {
  background-color: var(--card) !important;
  border-color: var(--border) !important;
  color: var(--foreground) !important;
  box-shadow: var(--shadow-soft);
}

.main-content .\!row.mb-4:first-of-type {
  background-color: var(--card) !important;
  border-color: var(--border) !important;
  color: var(--foreground) !important;
  box-shadow: var(--shadow-soft) !important;
}

.main-content .row.mb-4:first-of-type .breadcrumb,
  .main-content .d-flex.justify-content-between:first-of-type .breadcrumb {
  margin-bottom: 0.75rem;
}

.main-content .\!row.mb-4:first-of-type .breadcrumb {
  margin-bottom: 0.75rem;
}

.main-content .h4,
  .main-content h1.h4 {
  font-size: 1.875rem;
  line-height: 2.25rem;
  line-height: 1.25;
}

@media (min-width: 768px) {
  .main-content .h4,
  .main-content h1.h4 {
    font-size: 2.25rem;
    line-height: 2.5rem;
  }
}

.main-content .card + .card,
  .main-content .row + .card,
  .main-content .row + .tfd-section-card {
  margin-top: 1.25rem;
}


  .main-content .\!row + .card,
  .main-content .\!row + .tfd-section-card {
  margin-top: 1.25rem;
}

.main-content .card .card {
  box-shadow: none !important;
}

.main-content .card .card:hover {
  transform: none;
}

.main-content .bg-light,
  .main-content .bg-white {
  background-color: var(--card) !important;
  color: var(--foreground) !important;
}

.main-content .card-header.bg-primary,
  .main-content .card-header.bg-success,
  .main-content .card-header.bg-info,
  .main-content .card-header.bg-warning,
  .main-content .card-header.bg-secondary,
  .main-content .card-header.bg-dark {
  border-bottom-color: var(--border) !important;
  background: var(--card) !important;
  color: var(--foreground) !important;
}

.main-content .card-header.bg-primary *,
  .main-content .card-header.bg-success *,
  .main-content .card-header.bg-info *,
  .main-content .card-header.bg-warning *,
  .main-content .card-header.bg-secondary *,
  .main-content .card-header.bg-dark * {
  color: inherit !important;
}

.main-content .card-header > i,
  .main-content .card-header h5 > i,
  .main-content .card-header h6 > i {
  color: var(--accent) !important;
}

.form-text,
  small.text-muted {
  font-size: 0.875rem;
  line-height: 1.25rem;
  --tw-text-opacity: 1;
  color: rgb(100 116 139 / var(--tw-text-opacity, 1));
}

textarea.form-control {
  min-height: 120px;
}

.form-check-input {
  height: 1.25rem;
  width: 1.25rem;
  border-radius: 0.375rem;
  min-height: auto;
}

.form-check-input:checked {
  border-color: var(--accent);
  background-color: var(--accent);
}

.form-switch .form-check-input {
  width: 2.5rem;
  border-radius: 9999px;
}

.input-group > .form-control,
  .input-group > .form-select,
  .input-group > .input-group-text,
  .input-group > .btn {
  border-radius: 0 !important;
}

.input-group > :first-child {
  border-bottom-left-radius: var(--radius-md) !important;
  border-top-left-radius: var(--radius-md) !important;
}

.input-group > :last-child {
  border-bottom-right-radius: var(--radius-md) !important;
  border-top-right-radius: var(--radius-md) !important;
}

.list-group-item {
  margin-bottom: 0.5rem;
  border-width: 1px;
  padding: 1rem;
}

.list-group-item:last-child {
  margin-bottom: 0px;
}

.progress,
  progress.progress-bar {
  overflow: hidden;
  border-radius: 9999px;
  --tw-bg-opacity: 1;
  background-color: rgb(241 245 249 / var(--tw-bg-opacity, 1));
  height: 8px;
}

.progress-bar {
  border-radius: 999px;
}

.timeline {
  position: relative;
}

.timeline > :not([hidden]) ~ :not([hidden]) {
  --tw-space-y-reverse: 0;
  margin-top: calc(0.75rem * calc(1 - var(--tw-space-y-reverse)));
  margin-bottom: calc(0.75rem * var(--tw-space-y-reverse));
}

.timeline {
  padding-left: 1.5rem;
}

.timeline::before {
  position: absolute;
  bottom: 0px;
  top: 0px;
  width: 1px;
  --tw-bg-opacity: 1;
  background-color: rgb(226 232 240 / var(--tw-bg-opacity, 1));
  content: '';
  left: 18px;
}

.timeline-item {
  position: relative;
}

.timeline-item::before {
  position: absolute;
  height: 0.75rem;
  width: 0.75rem;
  border-radius: 9999px;
  --tw-bg-opacity: 1;
  background-color: rgb(0 64 204 / var(--tw-bg-opacity, 1));
  --tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);
  --tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(4px + var(--tw-ring-offset-width)) var(--tw-ring-color);
  box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000);
  --tw-ring-opacity: 1;
  --tw-ring-color: rgb(239 244 255 / var(--tw-ring-opacity, 1));
  content: '';
  left: -12px;
  top: 12px;
}

.chart-container {
  position: relative;
  margin-left: auto;
  margin-right: auto;
  width: 100%;
  overflow: hidden;
}

.chart-container canvas {
  max-height: 260px !important;
  max-width: 100% !important;
}

.avatar-circle,
  .rounded-circle.bg-primary,
  .rounded-circle.bg-success,
  .rounded-circle.bg-info,
  .rounded-circle.bg-warning {
  box-shadow: inset 0 0 0 1px rgba(0, 82, 255, 0.1);
}

.trip-times {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  font-size: 0.875rem;
  line-height: 1.25rem;
}

.trip-time {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.trip-time--confirmed {
  --tw-text-opacity: 1;
  color: rgb(5 150 105 / var(--tw-text-opacity, 1));
}

.status-btn,
  .viagens-actions .btn {
  min-height: 2.25rem;
  min-width: 2.25rem;
  border-radius: 0.75rem;
  padding: 0.5rem;
}

.kanban-card-title {
  margin-bottom: 0.25rem;
  font-weight: 600;
  --tw-text-opacity: 1;
  color: rgb(15 23 42 / var(--tw-text-opacity, 1));
}

.kanban-card-subtitle {
  margin-bottom: 0.75rem;
  font-size: 0.875rem;
  line-height: 1.25rem;
  --tw-text-opacity: 1;
  color: rgb(100 116 139 / var(--tw-text-opacity, 1));
}

.bg-recepcao {
  background-color: #64748b !important;
}

.bg-conferencia {
  background-color: #0284c7 !important;
}

.bg-pendencia {
  background-color: #e11d48 !important;
}

.bg-analise {
  background-color: #ea580c !important;
}

.bg-sistemas {
  background-color: #334155 !important;
}

.bg-agendado {
  background-color: #059669 !important;
}

.bg-assistencia {
  background-color: #db2777 !important;
}

.bg-viagem {
  background-color: #0052ff !important;
}

.animate-fade-in {
  animation: view-enter 420ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.driver-trip-map,
  #routeMap,
  #map {
  min-height: 360px;
  overflow: hidden;
  border-radius: 20px;
  border-width: 1px;
  --tw-border-opacity: 1;
  border-color: rgb(226 232 240 / var(--tw-border-opacity, 1));
  --tw-bg-opacity: 1;
  background-color: rgb(248 250 252 / var(--tw-bg-opacity, 1));
}

.trip-event-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: 9999px;
  border-width: 1px;
  --tw-border-opacity: 1;
  border-color: rgb(226 232 240 / var(--tw-border-opacity, 1));
  --tw-bg-opacity: 1;
  background-color: rgb(241 245 249 / var(--tw-bg-opacity, 1));
  padding-left: 0.75rem;
  padding-right: 0.75rem;
  padding-top: 0.375rem;
  padding-bottom: 0.375rem;
  font-size: 0.875rem;
  line-height: 1.25rem;
  font-weight: 600;
  --tw-text-opacity: 1;
  color: rgb(51 65 85 / var(--tw-text-opacity, 1));
}

.trip-event-marker {
  display: inline-flex;
  height: 2.25rem;
  width: 2.25rem;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  border-width: 2px;
  --tw-border-opacity: 1;
  border-color: rgb(255 255 255 / var(--tw-border-opacity, 1));
  --tw-text-opacity: 1;
  color: rgb(255 255 255 / var(--tw-text-opacity, 1));
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.18);
}

.medical-record-card {
  box-shadow: inset 4px 0 0 var(--accent), var(--shadow-soft) !important;
}

.patient-photo-card {
  box-shadow: inset 4px 0 0 #10b981, var(--shadow-soft) !important;
}

.patient-page-subtitle,
  .patient-breadcrumb-active {
  --tw-text-opacity: 1;
  color: rgb(100 116 139 / var(--tw-text-opacity, 1));
}

.patient-page-title-icon,
  .patient-breadcrumb-link {
  color: var(--accent);
}

.patient-page-subtitle-icon {
  --tw-text-opacity: 1;
  color: rgb(16 185 129 / var(--tw-text-opacity, 1));
}

.patient-photo-preview {
  height: 150px;
  width: 150px;
  border-radius: 24px;
  border-width: 2px;
  --tw-border-opacity: 1;
  border-color: rgb(221 232 255 / var(--tw-border-opacity, 1));
  -o-object-fit: cover;
     object-fit: cover;
}

.timeline-paciente {
  position: relative;
  padding-left: 1.25rem;
}

.timeline-paciente::before {
  position: absolute;
  bottom: 0px;
  top: 0px;
  width: 0.125rem;
  --tw-bg-opacity: 1;
  background-color: rgb(226 232 240 / var(--tw-bg-opacity, 1));
  content: '';
  left: 0.25rem;
}

.main-content .row.timeline-item-paciente:first-of-type {
  margin-bottom: 1.5rem;
  align-items: flex-start;
  border-radius: 24px;
  border-width: 1px;
  padding: 1.25rem;
  --tw-backdrop-blur: blur(8px);
  backdrop-filter: var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);
}

@media (min-width: 768px) {
  .main-content .row.timeline-item-paciente:first-of-type {
    padding: 1.5rem;
  }
}

.main-content .row.timeline-item-paciente:first-of-type {
  background-color: var(--card);
  border-color: var(--border);
  color: var(--foreground);
  box-shadow: var(--shadow-soft);
}

.main-content .row.timeline-item-paciente:first-of-type .breadcrumb {
  margin-bottom: 0.75rem;
}

.timeline-item-paciente {
  position: relative;
  margin-bottom: 1rem;
}

@media (max-width: 1200px) {
  .main-content .row.timeline-item-paciente:first-of-type {
    flex-direction: column;
    gap: 1rem;
  }

  .main-content .row.timeline-item-paciente:first-of-type .btn {
    width: 100%;
  }
}

[data-theme="dark"] .main-content .row.timeline-item-paciente:first-of-type,
[data-bs-theme="dark"] .main-content .row.timeline-item-paciente:first-of-type,
.dark .main-content .row.timeline-item-paciente:first-of-type {
  background: var(--bg-surface);
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
}

.timeline-item-paciente:last-child {
  margin-bottom: 0px;
}

.timeline-dot {
  position: absolute;
  height: 0.75rem;
  width: 0.75rem;
  border-radius: 9999px;
  border-width: 2px;
  --tw-border-opacity: 1;
  border-color: rgb(255 255 255 / var(--tw-border-opacity, 1));
  --tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);
  --tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);
  box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000);
  --tw-ring-opacity: 1;
  --tw-ring-color: rgb(226 232 240 / var(--tw-ring-opacity, 1));
  left: -0.05rem;
  top: 0.4rem;
}

.dot-consulta {
  background: var(--accent);
}

.dot-viagem {
  background: #f59e0b;
}


  .main-content .timeline-content {
  background-color: var(--card);
  color: var(--foreground);
}

.timeline-content {
  margin-left: 1rem;
  border-radius: 1rem;
  border-width: 1px;
  --tw-border-opacity: 1;
  border-color: rgb(226 232 240 / var(--tw-border-opacity, 1));
  --tw-bg-opacity: 1;
  background-color: rgb(255 255 255 / var(--tw-bg-opacity, 1));
  padding: 0.75rem;
}

[data-theme="dark"] .timeline-content,
[data-bs-theme="dark"] .timeline-content,
.dark .timeline-content {
  background-color: var(--bg-surface);
  color: var(--text-primary);
}

.soap-form-table strong {
  white-space: nowrap;
}

.soap-inline-input {
  min-width: 220px;
}

.soap-record-description {
  white-space: pre-wrap;
}

.highlight-search {
  border-radius: 0.375rem;
  --tw-bg-opacity: 1;
  background-color: rgb(221 232 255 / var(--tw-bg-opacity, 1));
  padding-left: 0.25rem;
  padding-right: 0.25rem;
  --tw-text-opacity: 1;
  color: rgb(15 23 42 / var(--tw-text-opacity, 1));
}

.rota-badge {
  font-weight: 600;
  --tw-text-opacity: 1;
  color: rgb(255 255 255 / var(--tw-text-opacity, 1));
}

.rota-badge.bg-warning,
  .rota-badge.bg-info {
  color: #0f172a !important;
}

.table code {
  border-radius: 0.5rem;
  --tw-bg-opacity: 1;
  background-color: rgb(241 245 249 / var(--tw-bg-opacity, 1));
  padding-left: 0.5rem;
  padding-right: 0.5rem;
  padding-top: 0.25rem;
  padding-bottom: 0.25rem;
  font-family: Geomini, system-ui, -apple-system, BlinkMacSystemFont, Segoe UI, sans-serif;
  font-size: 0.75rem;
  line-height: 1rem;
  --tw-text-opacity: 1;
  color: rgb(51 65 85 / var(--tw-text-opacity, 1));
}

.\!visible {
  visibility: visible !important;
}

.visible {
  visibility: visible;
}

.collapse {
  visibility: collapse;
}

.static {
  position: static;
}

.fixed {
  position: fixed;
}

.end-0 {
  inset-inline-end: 0px;
}

.top-0 {
  top: 0px;
}

.float-end {
  float: inline-end;
}

.float-none {
  float: none;
}

.m-0 {
  margin: 0px;
}

.m-3 {
  margin: 0.75rem;
}

.mx-2 {
  margin-left: 0.5rem;
  margin-right: 0.5rem;
}

.mx-auto {
  margin-left: auto;
  margin-right: auto;
}

.my-3 {
  margin-top: 0.75rem;
  margin-bottom: 0.75rem;
}

.mb-0 {
  margin-bottom: 0px;
}

.mb-1 {
  margin-bottom: 0.25rem;
}

.mb-2 {
  margin-bottom: 0.5rem;
}

.mb-3 {
  margin-bottom: 0.75rem;
}

.mb-4 {
  margin-bottom: 1rem;
}

.mb-5 {
  margin-bottom: 1.25rem;
}

.me-1 {
  margin-inline-end: 0.25rem;
}

.me-2 {
  margin-inline-end: 0.5rem;
}

.me-3 {
  margin-inline-end: 0.75rem;
}

.ms-1 {
  margin-inline-start: 0.25rem;
}

.ms-2 {
  margin-inline-start: 0.5rem;
}

.ms-3 {
  margin-inline-start: 0.75rem;
}

.ms-4 {
  margin-inline-start: 1rem;
}

.mt-0 {
  margin-top: 0px;
}

.mt-1 {
  margin-top: 0.25rem;
}

.mt-2 {
  margin-top: 0.5rem;
}

.mt-3 {
  margin-top: 0.75rem;
}

.mt-4 {
  margin-top: 1rem;
}

.block {
  display: block;
}

.flex {
  display: flex;
}

.table {
  display: table;
}

.grid {
  display: grid;
}

.hidden {
  display: none;
}

.w-auto {
  width: auto;
}

.min-w-0 {
  min-width: 0px;
}

.flex-shrink-0 {
  flex-shrink: 0;
}

.transform {
  transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
}

.resize {
  resize: both;
}

.list-none {
  list-style-type: none;
}

.flex-wrap {
  flex-wrap: wrap;
}

.gap-1 {
  gap: 0.25rem;
}

.gap-2 {
  gap: 0.5rem;
}

.gap-3 {
  gap: 0.75rem;
}

.gap-4 {
  gap: 1rem;
}

.rounded {
  border-radius: 0.25rem;
}

.border {
  border-width: 1px;
}

.border-0 {
  border-width: 0px;
}

.border-4 {
  border-width: 4px;
}

.bg-transparent {
  background-color: transparent;
}

.bg-white {
  --tw-bg-opacity: 1;
  background-color: rgb(255 255 255 / var(--tw-bg-opacity, 1));
}

.bg-opacity-10 {
  --tw-bg-opacity: 0.1;
}

.bg-opacity-25 {
  --tw-bg-opacity: 0.25;
}

.bg-opacity-75 {
  --tw-bg-opacity: 0.75;
}

.p-0 {
  padding: 0px;
}

.p-3 {
  padding: 0.75rem;
}

.p-4 {
  padding: 1rem;
}

.px-0 {
  padding-left: 0px;
  padding-right: 0px;
}

.px-1 {
  padding-left: 0.25rem;
  padding-right: 0.25rem;
}

.px-2 {
  padding-left: 0.5rem;
  padding-right: 0.5rem;
}

.px-3 {
  padding-left: 0.75rem;
  padding-right: 0.75rem;
}

.px-4 {
  padding-left: 1rem;
  padding-right: 1rem;
}

.py-0 {
  padding-top: 0px;
  padding-bottom: 0px;
}

.py-1 {
  padding-top: 0.25rem;
  padding-bottom: 0.25rem;
}

.py-2 {
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

.py-3 {
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}

.py-4 {
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.py-5 {
  padding-top: 1.25rem;
  padding-bottom: 1.25rem;
}

.pb-0 {
  padding-bottom: 0px;
}

.pb-2 {
  padding-bottom: 0.5rem;
}

.pb-3 {
  padding-bottom: 0.75rem;
}

.pb-5 {
  padding-bottom: 1.25rem;
}

.pe-4 {
  padding-inline-end: 1rem;
}

.ps-3 {
  padding-inline-start: 0.75rem;
}

.ps-4 {
  padding-inline-start: 1rem;
}

.pt-0 {
  padding-top: 0px;
}

.pt-1 {
  padding-top: 0.25rem;
}

.pt-2 {
  padding-top: 0.5rem;
}

.pt-3 {
  padding-top: 0.75rem;
}

.text-center {
  text-align: center;
}

.text-start {
  text-align: start;
}

.text-end {
  text-align: end;
}

.align-middle {
  vertical-align: middle;
}

.text-white {
  --tw-text-opacity: 1;
  color: rgb(255 255 255 / var(--tw-text-opacity, 1));
}

.opacity-50 {
  opacity: 0.5;
}

.opacity-75 {
  opacity: 0.75;
}

.shadow {
  --tw-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
  --tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);
  box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
}

.shadow-lg {
  --tw-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);
  box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
}

.shadow-sm {
  --tw-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);
  box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
}

.blur {
  --tw-blur: blur(8px);
  filter: var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow);
}

.filter {
  filter: var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow);
}

.transition {
  transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}

.ease-out {
  transition-timing-function: cubic-bezier(0, 0, 0.2, 1);
}

@keyframes view-enter {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

.modal {
  z-index: 1055 !important;
}

.modal-backdrop {
  z-index: 1050 !important;
}

@keyframes fadeOut {
  from {
    opacity: 1;
    transform: translateX(0);
  }

  to {
    opacity: 0;
    transform: translateX(20px);
  }
}

@media (max-width: 1200px) {
  .main-content .row.mb-4:first-of-type,
  .main-content .d-flex.justify-content-between:first-of-type {
    flex-direction: column;
    gap: 1rem;
  }

  .main-content .row.mb-4:first-of-type .btn,
  .main-content .d-flex.justify-content-between:first-of-type > .btn,
  .main-content .d-flex.justify-content-between:first-of-type > .btn-group {
    width: 100%;
  }

  .viagens-table table {
    display: block;
  }

  .agendamentos-table .table {
    min-width: 0 !important;
    width: 100%;
  }

  .pacientes-table .table {
    min-width: 0 !important;
    width: 100%;
  }

  .procedimentos-table .table {
    min-width: 0 !important;
    width: 100%;
  }

  .unidades-table .table,
  .motoristas-table .table,
  .veiculos-table .table {
    min-width: 0 !important;
    width: 100%;
  }

  .pagamentos-motoristas-table .table {
    min-width: 0 !important;
    width: 100%;
  }

  .pagamentos-table .table {
    min-width: 0 !important;
    width: 100%;
  }

  .viagens-table thead {
    display: none;
  }

  .viagens-table tbody,
  .viagens-table tbody tr {
    display: block;
  }

  .viagens-table tbody tr {
    border-bottom-width: 1px;
    --tw-border-opacity: 1;
    border-color: rgb(226 232 240 / var(--tw-border-opacity, 1));
    padding: 1rem;
  }

  .viagens-table td {
    display: grid;
    align-items: center;
    gap: 0.75rem;
    border-width: 0px;
    padding-left: 0px;
    padding-right: 0px;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
  }

  body.print-patient-page .viagens-table td {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 16px;
  }

  body.print-driver-document .viagens-table td {
    width: 100%;
    margin-top: 12px;
    border-collapse: collapse;
  }

  body.print-driver-document .viagens-table td td,
body.print-driver-document .viagens-table td th {
    border: 1px solid var(--print-line);
    padding: 8px;
    vertical-align: top;
  }

  body.print-driver-document .viagens-table td th {
    background: #f3f8f9;
    text-align: left;
  }

  @media (max-width: 600px) {
    body.print-patient-page .viagens-table td {
      grid-template-columns: 1fr;
    }
  }

  .viagens-table td {
    grid-template-columns: minmax(120px, 160px) minmax(0, 1fr);
  }

  .viagens-table td::before {
    font-family: Geomini, system-ui, -apple-system, BlinkMacSystemFont, Segoe UI, sans-serif;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    --tw-text-opacity: 1;
    color: rgb(100 116 139 / var(--tw-text-opacity, 1));
    content: attr(data-label);
  }

  .agendamentos-table td:last-child {
    text-align: initial !important;
  }

  .agendamentos-table td:last-child .btn-group {
    justify-self: end;
  }

  .pacientes-table td:last-child {
    text-align: initial !important;
  }

  .pacientes-table td:last-child .btn-group {
    justify-self: end;
  }

  .procedimentos-table td:last-child {
    text-align: initial !important;
  }

  .procedimentos-table td:last-child .btn-group {
    justify-self: end;
  }

  .unidades-table td:last-child,
  .motoristas-table td:last-child,
  .veiculos-table td:last-child {
    text-align: initial !important;
  }

  .unidades-table td:last-child .btn-group,
  .motoristas-table td:last-child .btn-group,
  .veiculos-table td:last-child .btn-group {
    justify-self: end;
  }

  .pagamentos-motoristas-table td:last-child {
    text-align: initial !important;
  }

  .pagamentos-motoristas-table td:last-child .btn-group {
    justify-self: end;
  }

  .pagamentos-table td:last-child {
    text-align: initial !important;
  }

  .pagamentos-table td:last-child .btn-group {
    justify-self: end;
  }

  .pagamentos-motoristas-table .table-empty-cell {
    display: block !important;
  }

  .pagamentos-motoristas-table .table-empty-cell::before {
    content: none;
  }
}

@media (max-width: 991px) {
  .app-shell .app-mobilebar {
    position: sticky;
    top: 0px;
    z-index: 30;
    display: flex;
    height: 4rem;
    align-items: center;
    gap: 0.75rem;
    border-bottom-width: 1px;
    border-color: rgb(226 232 240 / 0.8);
    background-color: rgb(255 255 255 / 0.9);
    padding-left: 1rem;
    padding-right: 1rem;
    --tw-backdrop-blur: blur(24px);
    backdrop-filter: var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.05);
  }

  
  .main-content .app-shell .app-mobilebar__toggle {
    background-color: var(--card);
    color: var(--foreground);
  }

  .app-shell .app-mobilebar__toggle {
    display: flex;
    height: 2.5rem;
    width: 2.5rem;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    border-radius: 0.75rem;
    border-width: 1px;
    --tw-border-opacity: 1;
    border-color: rgb(226 232 240 / var(--tw-border-opacity, 1));
    --tw-bg-opacity: 1;
    background-color: rgb(255 255 255 / var(--tw-bg-opacity, 1));
    font-size: 0.875rem;
    line-height: 1.25rem;
    --tw-text-opacity: 1;
    color: rgb(51 65 85 / var(--tw-text-opacity, 1));
    transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
  }

  [data-theme="dark"] .app-shell .app-mobilebar__toggle,
[data-bs-theme="dark"] .app-shell .app-mobilebar__toggle,
.dark .app-shell .app-mobilebar__toggle {
    background-color: var(--bg-surface);
    color: var(--text-primary);
  }

  .app-shell .app-mobilebar__toggle:hover {
    --tw-border-opacity: 1;
    border-color: rgb(188 208 255 / var(--tw-border-opacity, 1));
    --tw-bg-opacity: 1;
    background-color: rgb(239 244 255 / var(--tw-bg-opacity, 1));
    --tw-text-opacity: 1;
    color: rgb(0 51 163 / var(--tw-text-opacity, 1));
  }

  .app-shell .app-mobilebar__brand {
    display: flex;
    min-width: 0px;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    line-height: 1.25rem;
    font-weight: 600;
    --tw-text-opacity: 1;
    color: rgb(11 18 32 / var(--tw-text-opacity, 1));
    text-decoration-line: none;
  }

  .app-shell .app-mobilebar__brand .app-brand-mark {
    height: 2.25rem;
    width: 2.25rem;
    border-radius: 0.75rem;
    font-size: 0.875rem;
    line-height: 1.25rem;
    --tw-shadow: 0 0 #0000;
    --tw-shadow-colored: 0 0 #0000;
    box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
  }

  .app-shell .app-mobilebar__context {
    margin-left: auto;
    max-width: 34vw;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 0.75rem;
    line-height: 1rem;
    font-weight: 500;
    --tw-text-opacity: 1;
    color: rgb(100 116 139 / var(--tw-text-opacity, 1));
  }

  .app-shell .app-sidebar {
    --tw-translate-x: -100%;
    transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
    width: min(88vw, 296px);
    box-shadow: 12px 0 36px rgba(15, 23, 42, 0.12);
  }

  .app-shell .app-sidebar:hover,
  .app-shell .app-sidebar:focus-within,
  .app-shell .app-sidebar.is-pinned {
    width: min(88vw, 296px);
  }

  .app-shell .app-sidebar.is-mobile-open {
    --tw-translate-x: 0px;
    transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
  }

  .app-shell .app-sidebar__close {
    display: flex;
  }

  .app-shell .app-sidebar__pin {
    display: none;
  }

  .app-shell .app-sidebar__brand-copy,
  .app-shell .app-sidebar__user-copy,
  .app-shell .app-sidebar__label {
    opacity: 1;
    transform: translateX(0);
  }

  .app-shell .app-sidebar__context {
    max-height: 4rem;
    border-color: rgb(226 232 240 / 0.7);
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
    opacity: 1;
  }

  .app-shell .main-content,
  body.app-sidebar--pinned .main-content {
    margin-left: 0;
  }

  .app-shell .app-footer,
  body.app-sidebar--pinned .app-footer {
    margin-left: 0;
  }

  body.app-sidebar--mobile-open {
    overflow: hidden;
  }
}

/* Legacy framework landing page kept on the global surface for consistency. */

body.system-home-page {
  min-height: 100vh;
  color: var(--body-text, #425466);
  background: var(--canvas, #f5f7fa);
}

body.system-home-page header {
  border-bottom: 1px solid var(--line, #dce4eb);
  background: #ffffff;
}

body.system-home-page .menu {
  max-width: 1200px;
  margin: 0 auto;
  padding: 12px 24px;
}

body.system-home-page header ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

body.system-home-page header li {
  display: inline-block;
}

body.system-home-page header li a {
  display: block;
  min-height: 38px;
  padding: 9px 12px;
  border-radius: 9px;
  color: var(--muted-text, #718096);
  text-decoration: none;
}

body.system-home-page header li a:hover {
  color: var(--primary-dark, #155e75);
  background: var(--brand-soft, #e6f4f7);
}

body.system-home-page .heroe,
body.system-home-page .further,
body.system-home-page > footer {
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px 24px;
}

body.system-home-page .heroe {
  margin-top: 32px;
  border: 1px solid var(--line, #dce4eb);
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 8px 24px rgba(20, 35, 51, .055);
}

body.system-home-page h1,
body.system-home-page h2 {
  color: var(--ink, #142333);
}

body.system-home-page .heroe h1 {
  margin: 0;
  font-size: clamp(2rem, 5vw, 3.5rem);
}

body.system-home-page .heroe p,
body.system-home-page .further p {
  max-width: 70ch;
  color: var(--body-text, #425466);
  line-height: 1.65;
}

body.system-home-page .further {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

body.system-home-page .further section {
  padding: 24px;
  border: 1px solid var(--line, #dce4eb);
  border-radius: 14px;
  background: #ffffff;
}

body.system-home-page .further svg {
  width: 42px;
  height: 42px;
  margin-bottom: 12px;
  color: var(--accent, #0e7490);
}

body.system-home-page .svg-stroke {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 12;
}

body.system-home-page > footer {
  border-top: 1px solid var(--line, #dce4eb);
  color: var(--muted-text, #718096);
  font-size: 12px;
}

@media (max-width: 767px) {
  body.system-home-page .menu,
  body.system-home-page .heroe,
  body.system-home-page .further,
  body.system-home-page > footer {
    padding-right: 16px;
    padding-left: 16px;
  }

  body.system-home-page .further {
    grid-template-columns: 1fr;
  }

  .app-shell .main-content {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
    padding-bottom: 2rem;
    padding-top: 1rem;
  }

  .main-content .card-body {
    padding: 1rem;
  }

  .main-content .table-responsive {
    border-radius: var(--radius-md);
  }

  .btn:not(.btn-sm) {
    min-height: 44px;
  }

  .kanban-col {
    min-width: min(86vw, 320px);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

@media print {
  body {
    background: #ffffff !important;
  }

  .app-navbar,
  .app-mobilebar,
  .app-topbar,
  .app-sidebar,
  .app-footer,
  .no-print {
    display: none !important;
  }

  .app-shell .main-content {
    padding: 0 !important;
    margin: 0 !important;
  }
}

/* Standalone page themes, scoped and compiled into the global Tailwind bundle. */

/* Login */

.login-page {
  --primary: #4F46E5;
  --primary-dark: #3730A3;
  --secondary: #14B8A6;
  --secondary-dark: #0F766E;
  --accent: #7C3AED;
  --accent-dark: #6D28D9;
  --warning: #F59E0B;
  --warning-dark: #D97706;
  --error: #EF4444;
  --error-dark: #DC2626;
  --success: #14B8A6;
  --success-dark: #0F766E;
  --bg-primary: linear-gradient(135deg, #eef2ff 0%, #f8fafc 45%, #eef6ff 100%);
  --glass-bg: rgba(255, 255, 255, 0.84);
  --glass-backdrop: blur(20px) saturate(170%);
  --shadow-light: 0 12px 30px rgba(15, 23, 42, 0.08);
  --shadow-hover: 0 18px 42px rgba(79, 70, 229, 0.12);
  --border-radius: 18px;
  --border-radius-large: 24px;
}

.login-page * {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.login-page {
  font-family: var(--font-family);
  background: var(--bg-primary);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow-x: hidden;
}

/* Liquid gradient background */

.login-page .liquid-bg {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  z-index: -2;
  overflow: hidden;
}

.login-page .liquid-bg::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--bg-primary);
}

/* Liquid gradient blobs */

.login-page .liquid-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  animation: liquid-flow 20s ease-in-out infinite;
  mix-blend-mode: multiply;
}

.login-page .liquid-blob:nth-child(1) {
  width: 600px;
  height: 600px;
  background: linear-gradient(135deg, rgba(79, 70, 229, 0.4), rgba(124, 58, 237, 0.28), rgba(20, 184, 166, 0.18));
  top: -200px;
  left: -200px;
  animation-delay: 0s;
}

.login-page .liquid-blob:nth-child(2) {
  width: 500px;
  height: 500px;
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.28), rgba(245, 158, 11, 0.22), rgba(79, 70, 229, 0.16));
  top: 50%;
  right: -150px;
  animation-delay: 5s;
  mix-blend-mode: screen;
}

.login-page .liquid-blob:nth-child(3) {
  width: 450px;
  height: 450px;
  background: linear-gradient(135deg, rgba(20, 184, 166, 0.28), rgba(99, 102, 241, 0.22), rgba(124, 58, 237, 0.18));
  bottom: -100px;
  left: 30%;
  animation-delay: 10s;
}

.login-page .liquid-blob:nth-child(4) {
  width: 400px;
  height: 400px;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.24), rgba(124, 58, 237, 0.2), rgba(245, 158, 11, 0.16));
  top: 20%;
  left: 60%;
  animation-delay: 15s;
  mix-blend-mode: overlay;
}

@keyframes liquid-flow {
  0%, 100% {
    transform: translate(0, 0) scale(1) rotate(0deg);
    border-radius: 50% 30% 70% 20%;
  }

  25% {
    transform: translate(50px, -30px) scale(1.1) rotate(90deg);
    border-radius: 30% 70% 20% 50%;
  }

  50% {
    transform: translate(-30px, 40px) scale(0.9) rotate(180deg);
    border-radius: 70% 20% 50% 30%;
  }

  75% {
    transform: translate(20px, -50px) scale(1.05) rotate(270deg);
    border-radius: 20% 50% 30% 70%;
  }
}

/* Additional liquid overlay */

.login-page .liquid-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
                radial-gradient(circle at 20% 80%, rgba(79, 70, 229, 0.12) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(245, 158, 11, 0.09) 0%, transparent 50%),
                radial-gradient(circle at 40% 40%, rgba(20, 184, 166, 0.08) 0%, transparent 50%),
                radial-gradient(circle at 60% 90%, rgba(124, 58, 237, 0.08) 0%, transparent 50%);
  animation: liquid-shift 25s ease-in-out infinite;
  pointer-events: none;
  z-index: -1;
}

@keyframes liquid-shift {
  0%, 100% {
    background-position: 0% 0%;
  }

  25% {
    background-position: 100% 100%;
  }

  50% {
    background-position: 50% 50%;
  }

  75% {
    background-position: 0% 100%;
  }
}

.login-page .login-container {
  width: 100%;
  max-width: 420px;
  padding: 2.5rem;
}

.login-page .login-card {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-backdrop);
  -webkit-backdrop-filter: var(--glass-backdrop);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: var(--border-radius-large);
  box-shadow: var(--shadow-light), 0 0 0 1px rgba(255, 255, 255, 0.15);
  overflow: hidden;
  transition: all 0.3s ease;
  position: relative;
}

.login-page .login-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover), 0 0 0 1px rgba(255, 255, 255, 0.2);
}

.login-page .login-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  z-index: 1;
}

.login-page .login-header {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.96) 0%, rgba(247, 250, 255, 0.92) 50%, rgba(238, 242, 255, 0.94) 100%);
  color: #1d1d1f;
  padding: 2.5rem 1.5rem 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.login-page .login-logo {
  position: relative;
  z-index: 2;
  margin-bottom: 1rem;
}

.login-page .login-logo img {
  display: block;
  max-width: 220px;
  width: 100%;
  height: auto;
  margin: 0 auto;
  filter: drop-shadow(0 2px 8px rgba(10, 132, 255, 0.15));
  transition: transform 0.3s ease;
}

.login-page .login-logo img:hover {
  transform: scale(1.05);
  filter: drop-shadow(0 4px 12px rgba(10, 132, 255, 0.25));
}

.login-page .login-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
                radial-gradient(circle at 30% 20%, rgba(10, 132, 255, 0.08) 0%, transparent 50%),
                radial-gradient(circle at 70% 80%, rgba(48, 209, 88, 0.06) 0%, transparent 50%);
  pointer-events: none;
}

.login-page .login-header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(10, 132, 255, 0.2), transparent);
}

.login-page .login-header h1 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  position: relative;
  z-index: 2;
  font-family: var(--font-family-display);
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  letter-spacing: -0.5px;
}

.login-page .login-header p {
  font-size: 1rem;
  color: #64748b;
  margin-bottom: 0;
  position: relative;
  z-index: 2;
  font-weight: 400;
}

.login-page .login-body {
  padding: 2rem 1.5rem;
}

.login-page .form-floating {
  margin-bottom: 1rem;
}

.login-page .form-floating > label {
  padding: 1rem 0.75rem;
}

.login-page .form-control {
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: var(--border-radius);
  padding: 0.875rem 1rem;
  font-size: 0.95rem;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
  font-weight: 400;
}

.login-page .form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1), 0 4px 12px rgba(79, 70, 229, 0.12);
  background: rgba(255, 255, 255, 0.95);
  transform: translateY(-1px);
}

.login-page .form-control:hover {
  border-color: rgba(79, 70, 229, 0.25);
}

.login-page .btn-login {
  width: 100%;
  padding: 0.875rem 1.5rem;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  border: none;
  border-radius: var(--border-radius);
  color: white;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.22);
  cursor: pointer;
}

.login-page .btn-login:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(79, 70, 229, 0.28);
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
}

.login-page .btn-login:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(79, 70, 229, 0.22);
}

.login-page .btn-login::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.6s ease;
}

.login-page .btn-login:hover::before {
  left: 100%;
}

.login-page .btn-login::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 16px;
  height: 16px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: transform 0.6s ease, opacity 0.3s ease;
}

.login-page .btn-login:active::after {
  opacity: 1;
  transform: translate(-50%, -50%) scale(18);
}

.login-page .alert {
  border-radius: 10px;
  border: none;
  margin-bottom: 1rem;
}

.login-page .alert-danger {
  background: rgba(239, 68, 68, 0.08);
  color: var(--error);
}

.login-page .alert-success {
  background: rgba(20, 184, 166, 0.08);
  color: var(--secondary);
}

.login-page .input-group-text {
  background: rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-right: none;
  color: #666;
}

.login-page .form-control + .input-group-text {
  border-left: none;
}

.login-page .forgot-password {
  text-align: center;
  margin-top: 1rem;
}

.login-page .forgot-password a {
  color: var(--primary);
  text-decoration: none;
  font-size: 0.9rem;
}

.login-page .forgot-password a:hover {
  text-decoration: underline;
}

/* Animation */

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.login-page .login-card {
  animation: fadeInUp 0.6s ease-out;
}

/* Loading state */

.login-page .btn-loading {
  position: relative;
  color: transparent !important;
}

.login-page .btn-loading::after {
  content: '';
  position: absolute;
  width: 16px;
  height: 16px;
  top: 50%;
  left: 50%;
  margin-left: -8px;
  margin-top: -8px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: white;
  animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.login-page .footer-card {
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--border-radius);
  padding: 1rem 1.5rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  display: inline-block;
  position: relative;
  overflow: hidden;
}

.login-page .footer-decoration {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--accent), var(--secondary));
}

/* Responsive */

@media (max-width: 480px) {
  .login-page .login-container {
    padding: 1.5rem;
    max-width: 380px;
  }

  .login-page .login-header {
    padding: 2rem 1rem 1.5rem;
  }

  .login-page .login-header h1 {
    font-size: 1.8rem;
  }

  .login-page .login-logo img {
    max-width: 180px;
  }

  .login-page .login-body {
    padding: 1.5rem 1rem;
  }

  /* Hide complex liquid animations on mobile for performance */

  .login-page .liquid-bg .liquid-blob {
    display: none;
  }

  .login-page .liquid-overlay {
    background:
                    radial-gradient(circle at 20% 80%, rgba(79, 70, 229, 0.08) 0%, transparent 50%),
                    radial-gradient(circle at 80% 20%, rgba(245, 158, 11, 0.06) 0%, transparent 50%);
    animation: none;
    /* Disable animation on mobile */
  }

  .login-page .footer-card {
    padding: 0.875rem 1.25rem;
  }
}

/* Monitoramento */

/* Fullscreen Monitoring Panel Styles */

.monitoring-page .monitoring-fullscreen {
  min-height: 100vh;
  height: 100vh;
  background:
        radial-gradient(circle at top left, rgba(79, 70, 229, 0.08) 0%, transparent 38%),
        radial-gradient(circle at top right, rgba(20, 184, 166, 0.05) 0%, transparent 32%),
        linear-gradient(180deg, #f7f9fc 0%, #eef2f7 100%);
  padding: 12px;
  overflow: hidden;
  margin: 0;
  position: relative;
}

/* macOS Sequoia Background Layers */

.monitoring-page .monitoring-fullscreen::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
        radial-gradient(circle at 25% 75%, rgba(10, 132, 255, 0.03) 0%, transparent 45%),
        radial-gradient(circle at 75% 25%, rgba(255, 159, 10, 0.02) 0%, transparent 45%),
        radial-gradient(circle at 50% 50%, rgba(48, 209, 88, 0.02) 0%, transparent 45%);
  pointer-events: none;
  z-index: -1;
}

.monitoring-page .monitoring-fullscreen::after {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg,
        rgba(10, 132, 255, 0.01) 0%,
        rgba(255, 159, 10, 0.005) 50%,
        rgba(48, 209, 88, 0.01) 100%);
  pointer-events: none;
  z-index: -1;
}

.monitoring-page .monitoring-container {
  max-width: 100%;
  margin: 0 auto;
}

.monitoring-page .monitoring-header {
  text-align: center;
  margin-bottom: 12px;
  color: var(--text-title);
  padding: 18px 18px 14px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 16px 30px rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(18px);
}

.monitoring-page .monitoring-header__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.92);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.monitoring-page .monitoring-header h1 {
  font-size: clamp(1.7rem, 2vw, 2.2rem);
  font-weight: 700;
  margin-bottom: 0.4rem;
  letter-spacing: -0.03em;
  color: var(--text-title);
  text-shadow: none;
  background: none;
  -webkit-text-fill-color: initial;
}

.monitoring-page .monitoring-header p {
  font-size: 0.95rem;
  color: var(--text-body);
  opacity: 1;
  margin: 0 auto;
  max-width: 68ch;
}

.monitoring-page .monitoring-header i {
  background: none;
  -webkit-background-clip: initial;
  -webkit-text-fill-color: initial;
  color: inherit;
}

.monitoring-page .monitoring-header__meta-row {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.monitoring-page .monitoring-header__meta-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(148, 163, 184, 0.16);
  color: var(--text-secondary, #475569);
  font-size: 0.82rem;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.04);
}

.monitoring-page .monitoring-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 12px;
  margin-bottom: 12px;
}

.monitoring-page .monitoring-card {
  background: rgba(255, 255, 255, 0.9);
  border-radius: 20px;
  padding: 12px;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(148, 163, 184, 0.14);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
  position: relative;
  overflow: hidden;
}

.monitoring-page .monitoring-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #4F46E5, #14B8A6, #F59E0B);
  border-radius: 18px 18px 0 0;
}

.monitoring-page .monitoring-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 34px rgba(15, 23, 42, 0.1);
}

.monitoring-page .monitoring-card-icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 0 10px;
  font-size: 1.15rem;
  box-shadow: 0 10px 18px rgba(15, 23, 42, 0.08);
  position: relative;
  overflow: hidden;
}

.monitoring-page .monitoring-card-icon::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 50%;
  padding: 2px;
  background: linear-gradient(135deg, #4F46E5, #14B8A6, #F59E0B);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
          mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  -webkit-mask-composite: xor;
}

.monitoring-page .monitoring-card-icon.is-primary {
  background: linear-gradient(135deg, #4F46E5, #3730A3);
  color: #fff;
}

.monitoring-page .monitoring-card-icon.is-success {
  background: linear-gradient(135deg, #14B8A6, #0F766E);
  color: #fff;
}

.monitoring-page .monitoring-card-icon.is-info {
  background: linear-gradient(135deg, #6366F1, #4F46E5);
  color: #fff;
}

.monitoring-page .monitoring-card-icon.is-warning {
  background: linear-gradient(135deg, #F59E0B, #D97706);
  color: #fff;
}

.monitoring-page .monitoring-card-icon i {
  position: relative;
  z-index: 1;
}

.monitoring-page .monitoring-card-value {
  font-size: clamp(1.7rem, 2.2vw, 2.1rem);
  font-weight: 700;
  text-align: left;
  margin-bottom: 4px;
  letter-spacing: -0.03em;
}

.monitoring-page .monitoring-card-value.is-primary {
  color: #4F46E5;
}

.monitoring-page .monitoring-card-value.is-success {
  color: #14B8A6;
}

.monitoring-page .monitoring-card-value.is-info {
  color: #6366F1;
}

.monitoring-page .monitoring-card-value.is-warning {
  color: #F59E0B;
}

.monitoring-page .monitoring-card-label {
  font-size: 0.82rem;
  text-align: left;
  color: var(--text-muted);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
}

.monitoring-page .monitoring-card-description {
  font-size: 0.86rem;
  text-align: left;
  color: var(--text-soft);
}

.monitoring-page .monitoring-progress-section {
  background: rgba(255, 255, 255, 0.88);
  border-radius: 20px;
  padding: 14px;
  margin-bottom: 12px;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
  border: 1px solid rgba(148, 163, 184, 0.14);
  backdrop-filter: blur(16px);
}

.monitoring-page .monitoring-progress-title {
  text-align: center;
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 14px;
  color: #0f172a;
}

.monitoring-page .monitoring-progress-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 10px;
}

.monitoring-page .monitoring-progress-item {
  text-align: center;
  padding: 12px;
  background: #f8fafc;
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.16);
}

.monitoring-page .monitoring-progress-value {
  font-size: 1.45rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.monitoring-page .monitoring-progress-value.is-warning {
  color: #F59E0B;
}

.monitoring-page .monitoring-progress-value.is-success {
  color: #14B8A6;
}

.monitoring-page .monitoring-progress-value.is-primary {
  color: #4F46E5;
}

.monitoring-page .monitoring-progress-value.is-info {
  color: #6366F1;
}

.monitoring-page .monitoring-progress-value.is-secondary {
  color: #64748B;
}

.monitoring-page .monitoring-progress-value.is-danger {
  color: #EF4444;
}

.monitoring-page .monitoring-progress-label {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 8px;
  font-weight: 600;
}

.monitoring-page .monitoring-progress-bar {
  height: 12px;
  border-radius: 999px;
  background: #e2e8f0;
  overflow: hidden;
  margin-bottom: 10px;
}

.monitoring-page .monitoring-progress-fill {
  height: 100%;
  border-radius: 999px;
  width: 100%;
  transform-origin: left center;
  transform: scaleX(var(--progress, 0));
  transition: transform 900ms ease;
}

.monitoring-page .monitoring-executantes-section {
  background: rgba(255, 255, 255, 0.88);
  border-radius: 20px;
  padding: 14px;
  margin-bottom: 12px;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
  border: 1px solid rgba(148, 163, 184, 0.14);
  backdrop-filter: blur(16px);
}

.monitoring-page .monitoring-executantes-title {
  text-align: center;
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 14px;
  color: #0f172a;
}

.monitoring-page .monitoring-executantes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 8px;
}

.monitoring-page .monitoring-executante-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px;
  background: #f8f9fa;
  border-radius: 8px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.04);
}

.monitoring-page .monitoring-executante-info {
  display: flex;
  align-items: center;
  gap: 15px;
}

.monitoring-page .monitoring-executante-avatar {
  width: 35px;
  height: 35px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 1rem;
  color: white;
}

.monitoring-page .monitoring-executante-details h4 {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-title);
}

.monitoring-page .monitoring-executante-details small {
  color: var(--text-muted);
  font-size: 0.8rem;
}

.monitoring-page .monitoring-executante-stats {
  text-align: right;
}

.monitoring-page .monitoring-executante-percentage {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--teal);
  margin-bottom: 1px;
}

.monitoring-page .monitoring-executante-fraction {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Trips radar */

.monitoring-page .monitoring-trips-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 10px;
}

.monitoring-page .monitoring-trip-card {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 18px;
  padding: 12px;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(16px);
}

.monitoring-page .monitoring-trip-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.monitoring-page .monitoring-trip-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.monitoring-page .monitoring-trip-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 10px;
  border-radius: 12px;
  background: #f8fafc;
  border: 1px solid rgba(148, 163, 184, 0.12);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.04);
  animation: fadeInUp 0.45s ease;
}

.monitoring-page .trip-occupancy {
  min-width: 120px;
  text-align: right;
}

.monitoring-page .trip-bar {
  height: 6px;
  background: #e2e8f0;
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 4px;
}

.monitoring-page .trip-bar.thin {
  height: 5px;
}

.monitoring-page .trip-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #4F46E5, #6366F1);
  border-radius: 999px;
  animation: pulseProgress 2.4s ease-in-out infinite;
}

.monitoring-page .trip-bar-fill.slow {
  animation-duration: 3s;
}

.monitoring-page .trip-occupancy.soft .trip-bar-fill {
  background: linear-gradient(90deg, var(--teal), var(--accent-secondary));
}

@keyframes pulseProgress {
  0% {
    filter: drop-shadow(0 0 6px rgba(79, 70, 229, 0.4));
  }

  50% {
    filter: drop-shadow(0 0 10px rgba(99, 102, 241, 0.6));
  }

  100% {
    filter: drop-shadow(0 0 6px rgba(79, 70, 229, 0.4));
  }
}

.monitoring-page .monitoring-professionals-section {
  background: rgba(255, 255, 255, 0.88);
  border-radius: 20px;
  padding: 14px;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
  border: 1px solid rgba(148, 163, 184, 0.14);
  backdrop-filter: blur(16px);
}

.monitoring-page .monitoring-professionals-title {
  text-align: center;
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 14px;
  color: #0f172a;
}

.monitoring-page .monitoring-professionals-table {
  width: 100%;
  border-collapse: collapse;
  background: white;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.06);
}

.monitoring-page .monitoring-professionals-table th {
  background: #f8fafc;
  padding: 9px 10px;
  text-align: left;
  font-weight: 600;
  color: #0f172a;
  border-bottom: 1px solid #e2e8f0;
  font-size: 0.85rem;
}

.monitoring-page .monitoring-professionals-table td {
  padding: 8px 10px;
  border-bottom: 1px solid #e2e8f0;
  font-size: 0.85rem;
}

.monitoring-page .monitoring-professional-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 0.8rem;
  color: white;
  margin-right: 8px;
}

.monitoring-page .monitoring-professional-name {
  font-weight: 600;
  color: var(--text-title);
  margin-bottom: 1px;
  font-size: 0.85rem;
}

.monitoring-page .monitoring-professional-crm {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.monitoring-page .monitoring-status-badge {
  padding: 5px 10px;
  border-radius: 15px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.monitoring-page .monitoring-status-critical {
  background: #EF4444;
  color: white;
}

.monitoring-page .monitoring-status-warning {
  background: #F59E0B;
  color: #1f2937;
}

.monitoring-page .monitoring-status-normal {
  background: #14B8A6;
  color: white;
}

.monitoring-page .monitoring-last-update {
  text-align: center;
  color: #475569;
  font-size: 0.8rem;
  margin-top: 10px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.82);
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.05);
}

.monitoring-page .monitoring-last-update__line {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.35rem;
  flex-wrap: wrap;
}

.monitoring-page .monitoring-last-update__meta {
  margin-top: 0.35rem;
  color: #64748b;
}

.monitoring-page #reloadCountdown {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.1rem;
  padding: 0.1rem 0.45rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.08);
  color: #0f172a;
  font-weight: 700;
}

/* Enhanced Responsive Design for All Screen Sizes */

@media (max-width: 1920px) and (min-width: 1441px) {
  /* 4K and Large Displays */

  .monitoring-page .monitoring-fullscreen {
    padding: 8px;
  }

  .monitoring-page .monitoring-header h1 {
    font-size: 2.2rem;
  }

  .monitoring-page .monitoring-card-value {
    font-size: 2.2rem;
  }

  .monitoring-page .monitoring-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
  }
}

@media (max-width: 1440px) and (min-width: 1201px) {
  /* Large Desktop */

  .monitoring-page .monitoring-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
  }

  .monitoring-page .monitoring-header h1 {
    font-size: 2rem;
  }

  .monitoring-page .monitoring-card-value {
    font-size: 2.1rem;
  }
}

@media (max-width: 1200px) and (min-width: 1025px) {
  /* Standard Desktop */

  .monitoring-page .monitoring-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
  }

  .monitoring-page .monitoring-header h1 {
    font-size: 1.9rem;
  }

  .monitoring-page .monitoring-card-value {
    font-size: 2rem;
  }
}

@media (max-width: 1024px) and (min-width: 769px) {
  /* Tablet Landscape */

  .monitoring-page .monitoring-fullscreen {
    padding: 6px;
  }

  .monitoring-page .monitoring-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }

  .monitoring-page .monitoring-header h1 {
    font-size: 1.8rem;
  }

  .monitoring-page .monitoring-card-value {
    font-size: 1.9rem;
  }

  .monitoring-page .monitoring-executantes-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) and (min-width: 481px) {
  /* Tablet Portrait / Small Desktop */

  .monitoring-page .monitoring-fullscreen {
    padding: 8px;
  }

  .monitoring-page .monitoring-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }

  .monitoring-page .monitoring-header {
    padding: 16px 14px 12px;
    margin-bottom: 10px;
  }

  .monitoring-page .monitoring-header__meta-row {
    margin-top: 0.8rem;
  }

  .monitoring-page .monitoring-header h1 {
    font-size: 1.8rem;
  }

  .monitoring-page .monitoring-card {
    padding: 10px;
  }

  .monitoring-page .monitoring-card-value {
    font-size: 1.8rem;
  }

  .monitoring-page .monitoring-card-icon {
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
  }

  .monitoring-page .monitoring-executantes-grid {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .monitoring-page .monitoring-progress-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }
}

@media (max-width: 480px) and (min-width: 361px) {
  /* Mobile Large */

  .monitoring-page .monitoring-fullscreen {
    padding: 6px;
  }

  .monitoring-page .monitoring-grid {
    grid-template-columns: 1fr;
    gap: 7px;
  }

  .monitoring-page .monitoring-header {
    padding: 14px 12px 10px;
    margin-bottom: 8px;
  }

  .monitoring-page .monitoring-header h1 {
    font-size: 1.6rem;
  }

  .monitoring-page .monitoring-header p {
    font-size: 0.85rem;
  }

  .monitoring-page .monitoring-header__meta-row {
    margin-top: 0.75rem;
  }

  .monitoring-page .monitoring-card {
    padding: 8px;
  }

  .monitoring-page .monitoring-card-value {
    font-size: 1.6rem;
  }

  .monitoring-page .monitoring-card-icon {
    width: 35px;
    height: 35px;
    font-size: 1.1rem;
  }

  .monitoring-page .monitoring-card-label {
    font-size: 0.8rem;
    margin-bottom: 4px;
  }

  .monitoring-page .monitoring-card-description {
    font-size: 0.7rem;
  }

  .monitoring-page .monitoring-progress-section,.monitoring-page 
    .monitoring-executantes-section,.monitoring-page 
    .monitoring-professionals-section {
    padding: 8px;
    margin-bottom: 6px;
  }

  .monitoring-page .monitoring-progress-title,.monitoring-page 
    .monitoring-executantes-title,.monitoring-page 
    .monitoring-professionals-title {
    font-size: 1rem;
    margin-bottom: 8px;
  }

  .monitoring-page .monitoring-executante-item {
    padding: 8px;
  }

  .monitoring-page .monitoring-executante-avatar {
    width: 30px;
    height: 30px;
    font-size: 0.9rem;
  }

  .monitoring-page .monitoring-executante-details h4 {
    font-size: 0.9rem;
  }

  .monitoring-page .monitoring-executante-details small {
    font-size: 0.75rem;
  }

  .monitoring-page .monitoring-executante-percentage {
    font-size: 1rem;
  }

  .monitoring-page .monitoring-executante-fraction {
    font-size: 0.75rem;
  }

  .monitoring-page .monitoring-professionals-table th,.monitoring-page 
    .monitoring-professionals-table td {
    padding: 6px 8px;
    font-size: 0.75rem;
  }

  .monitoring-page .monitoring-professional-avatar {
    width: 25px;
    height: 25px;
    font-size: 0.7rem;
  }

  .monitoring-page .monitoring-last-update {
    font-size: 0.75rem;
    padding: 8px 10px;
  }
}

@media (max-width: 360px) {
  /* Mobile Small */

  .monitoring-page .monitoring-fullscreen {
    padding: 5px;
  }

  .monitoring-page .monitoring-header {
    padding: 12px 10px 9px;
    margin-bottom: 8px;
  }

  .monitoring-page .monitoring-header h1 {
    font-size: 1.4rem;
  }

  .monitoring-page .monitoring-header p {
    font-size: 0.7rem;
  }

  .monitoring-page .monitoring-card {
    padding: 6px;
  }

  .monitoring-page .monitoring-card-value {
    font-size: 1.4rem;
  }

  .monitoring-page .monitoring-card-icon {
    width: 30px;
    height: 30px;
    font-size: 1rem;
  }

  .monitoring-page .monitoring-card-label {
    font-size: 0.75rem;
    margin-bottom: 3px;
  }

  .monitoring-page .monitoring-card-description {
    font-size: 0.65rem;
  }

  .monitoring-page .monitoring-progress-section,.monitoring-page 
    .monitoring-executantes-section,.monitoring-page 
    .monitoring-professionals-section {
    padding: 6px;
    margin-bottom: 4px;
  }

  .monitoring-page .monitoring-progress-title,.monitoring-page 
    .monitoring-executantes-title,.monitoring-page 
    .monitoring-professionals-title {
    font-size: 0.9rem;
    margin-bottom: 6px;
  }

  .monitoring-page .monitoring-executante-item {
    padding: 6px;
  }

  .monitoring-page .monitoring-executante-avatar {
    width: 28px;
    height: 28px;
    font-size: 0.8rem;
  }

  .monitoring-page .monitoring-executante-details h4 {
    font-size: 0.85rem;
  }

  .monitoring-page .monitoring-executante-details small {
    font-size: 0.7rem;
  }

  .monitoring-page .monitoring-executante-percentage {
    font-size: 0.95rem;
  }

  .monitoring-page .monitoring-executante-fraction {
    font-size: 0.7rem;
  }

  .monitoring-page .monitoring-professionals-table th,.monitoring-page 
    .monitoring-professionals-table td {
    padding: 4px 6px;
    font-size: 0.7rem;
  }

  .monitoring-page .monitoring-professional-avatar {
    width: 22px;
    height: 22px;
    font-size: 0.65rem;
  }

  .monitoring-page .monitoring-last-update {
    font-size: 0.7rem;
    padding: 7px 9px;
  }
}

/* Enhanced scrollbar and overflow management for all screen sizes */

html:has(body.monitoring-page),.monitoring-page {
  overflow: hidden !important;
  height: 100vh !important;
  margin: 0 !important;
  padding: 0 !important;
}

.monitoring-page .monitoring-fullscreen {
  height: 100vh;
  overflow: hidden !important;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.monitoring-page .monitoring-fullscreen::-webkit-scrollbar {
  display: none;
}

/* Ensure all child elements fit within viewport */

.monitoring-page .monitoring-container {
  height: 100%;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* Auto-adjust content height for different screen sizes */

@media (max-height: 1080px) and (min-height: 721px) {
  /* Full HD and similar */

  .monitoring-page .monitoring-fullscreen {
    padding: 10px;
  }

  .monitoring-page .monitoring-header {
    margin-bottom: 10px;
    padding: 16px 14px 12px;
  }

  .monitoring-page .monitoring-grid {
    margin-bottom: 6px;
  }

  .monitoring-page .monitoring-progress-section,.monitoring-page 
    .monitoring-executantes-section,.monitoring-page 
    .monitoring-professionals-section {
    margin-bottom: 6px;
    flex: 1;
    min-height: 0;
    overflow: hidden;
  }

  .monitoring-page .monitoring-professionals-table {
    max-height: calc(100vh - 400px);
    overflow-y: auto;
  }
}

@media (max-height: 720px) and (min-height: 481px) {
  /* HD and similar */

  .monitoring-page .monitoring-fullscreen {
    padding: 8px;
  }

  .monitoring-page .monitoring-header {
    margin-bottom: 8px;
    padding: 14px 12px 10px;
  }

  .monitoring-page .monitoring-grid {
    margin-bottom: 4px;
  }

  .monitoring-page .monitoring-progress-section,.monitoring-page 
    .monitoring-executantes-section,.monitoring-page 
    .monitoring-professionals-section {
    margin-bottom: 4px;
    flex: 1;
    min-height: 0;
    overflow: hidden;
  }

  .monitoring-page .monitoring-professionals-table {
    max-height: calc(100vh - 350px);
    overflow-y: auto;
  }
}

@media (max-height: 480px) {
  /* Lower resolutions */

  .monitoring-page .monitoring-fullscreen {
    padding: 5px;
  }

  .monitoring-page .monitoring-header {
    margin-bottom: 6px;
    padding: 12px 10px 9px;
  }

  .monitoring-page .monitoring-grid {
    margin-bottom: 3px;
  }

  .monitoring-page .monitoring-progress-section,.monitoring-page 
    .monitoring-executantes-section,.monitoring-page 
    .monitoring-professionals-section {
    margin-bottom: 3px;
    flex: 1;
    min-height: 0;
    overflow: hidden;
  }

  .monitoring-page .monitoring-professionals-table {
    max-height: calc(100vh - 300px);
    overflow-y: auto;
  }
}

/* Animation for data updates */

@keyframes fadeInUpdate {
  0% {
    opacity: 0.7;
  }

  50% {
    opacity: 1;
  }

  100% {
    opacity: 1;
  }
}

.monitoring-page .monitoring-card-updating {
  animation: fadeInUpdate 0.5s ease;
}

/* Loading animation */

@keyframes pulse {
  0% {
    opacity: 1;
  }

  50% {
    opacity: 0.5;
  }

  100% {
    opacity: 1;
  }
}

.monitoring-page .monitoring-loading {
  animation: pulse 2s infinite;
}

/* Cadastro publico */

.public-registration-page {
  --bg: #f8fafc;
  --surface: #ffffff;
  --surface-muted: #f1f5f9;
  --title: #0f172a;
  --text: #334155;
  --muted: #64748b;
  --border: #dbe3ee;
  --border-strong: #c7d2e1;
  --primary: #2563eb;
  --primary-soft: rgba(37, 99, 235, 0.12);
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;
  --shadow: 0 18px 40px rgba(15, 23, 42, 0.07);
  --shadow-soft: 0 10px 24px rgba(15, 23, 42, 0.05);
  --radius: 16px;
  --button-height: 52px;
}

html:has(body.public-registration-page) {
  scroll-behavior: smooth;
}

.public-registration-page {
  min-height: 100vh;
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-family, Geomini, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif);
}

.public-registration-page .page-shell {
  width: min(1200px, calc(100% - 1.5rem));
  margin: 0 auto;
  padding: 1rem 0 7.5rem;
}

.public-registration-page .sticky-header {
  position: sticky;
  top: 0;
  z-index: 1035;
  background: rgba(248, 250, 252, 0.92);
  border-bottom: 1px solid rgba(219, 227, 238, 0.92);
  backdrop-filter: blur(16px);
}

.public-registration-page .sticky-header-inner {
  width: min(1200px, calc(100% - 1.5rem));
  margin: 0 auto;
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 0;
}

.public-registration-page .back-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--title);
  background: #fff;
  text-decoration: none;
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
  flex: 0 0 auto;
}

.public-registration-page .back-link:hover {
  transform: translateY(-1px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-soft);
}

.public-registration-page .header-copy {
  min-width: 0;
}

.public-registration-page .header-copy h1 {
  margin: 0;
  color: var(--title);
  font-size: 1.15rem;
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: 0;
}

.public-registration-page .header-copy p {
  margin: 0.18rem 0 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.4;
}

.public-registration-page .header-status {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--muted);
  font-size: 0.86rem;
  white-space: nowrap;
}

.public-registration-page .panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: var(--shadow-soft);
}

.public-registration-page .hero-panel {
  overflow: hidden;
}

.public-registration-page .hero-panel-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.9fr);
  gap: 1rem;
  padding: 1.25rem;
}

.public-registration-page .hero-title {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.public-registration-page .hero-title h2 {
  margin: 0;
  color: var(--title);
  font-size: clamp(1.45rem, 3vw, 2.35rem);
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.public-registration-page .hero-title p {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.55;
  max-width: 60ch;
}

.public-registration-page .hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.public-registration-page .meta-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.5rem 0.75rem;
  border-radius: 999px;
  background: var(--surface-muted);
  color: var(--title);
  border: 1px solid rgba(219, 227, 238, 0.9);
  font-size: 0.85rem;
  font-weight: 600;
}

.public-registration-page .hero-summary {
  border-radius: 18px;
  background: linear-gradient(180deg, #ffffff, #f8fbff);
  border: 1px solid rgba(219, 227, 238, 0.95);
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  align-self: stretch;
}

.public-registration-page .hero-summary-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}

.public-registration-page .hero-summary-head strong {
  display: block;
  color: var(--title);
  font-size: 0.98rem;
  line-height: 1.25;
}

.public-registration-page .hero-summary-head span {
  display: block;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.35;
  margin-top: 0.2rem;
}

.public-registration-page .hero-summary-progress .progress {
  height: 12px;
  border-radius: 999px;
  background: #e8eef6;
}

.public-registration-page .hero-summary-progress .progress-bar {
  border-radius: 999px;
  background: linear-gradient(90deg, var(--primary), #4f8df7);
  transition: width 180ms ease;
}

.public-registration-page .summary-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.public-registration-page .summary-stat {
  border: 1px solid rgba(219, 227, 238, 0.95);
  border-radius: 14px;
  padding: 0.85rem;
  background: #fff;
}

.public-registration-page .summary-stat .label {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.25rem;
}

.public-registration-page .summary-stat strong {
  display: block;
  color: var(--title);
  font-size: 0.94rem;
  line-height: 1.35;
  font-weight: 700;
}

.public-registration-page .wizard-strip {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 1rem;
}

.public-registration-page .wizard-step {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.9rem 0.95rem;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: #fff;
  text-align: left;
  width: 100%;
  min-height: 82px;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.public-registration-page .wizard-step:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-soft);
  transform: translateY(-1px);
}

.public-registration-page .wizard-step.is-active {
  border-color: rgba(37, 99, 235, 0.38);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.08);
}

.public-registration-page .wizard-step.is-complete .wizard-step-index {
  background: rgba(16, 185, 129, 0.12);
  color: var(--success);
}

.public-registration-page .wizard-step.is-locked {
  cursor: not-allowed;
  opacity: 0.52;
  box-shadow: none;
  transform: none;
}

.public-registration-page .wizard-step.is-locked .wizard-step-index {
  color: #94a3b8;
  background: #eef2f7;
}

.public-registration-page .wizard-step-index {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  flex: 0 0 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 0.9rem;
  font-weight: 800;
}

.public-registration-page .wizard-step-copy {
  min-width: 0;
}

.public-registration-page .wizard-step-copy strong {
  display: block;
  color: var(--title);
  font-size: 0.93rem;
  line-height: 1.2;
  font-weight: 700;
}

.public-registration-page .wizard-step-copy span {
  display: block;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.35;
  margin-top: 0.2rem;
}

.public-registration-page .alerts-stack {
  display: grid;
  gap: 0.75rem;
  margin: 1rem 0 0;
}

.public-registration-page .alert {
  border-radius: 16px;
  margin-bottom: 0;
}

.public-registration-page .section-card {
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  scroll-margin-top: 96px;
}

.public-registration-page .section-card.is-locked {
  border-color: #e5eaf1;
  box-shadow: none;
}

.public-registration-page .section-card.is-locked .section-body {
  opacity: 0.46;
  filter: grayscale(0.35);
  pointer-events: none;
  -webkit-user-select: none;
  -moz-user-select: none;
       user-select: none;
}

.public-registration-page .section-card.is-locked .section-head {
  background: #f8fafc;
}

.public-registration-page .section-card.is-locked .section-badge {
  color: #64748b;
  border-color: #dbe3ee;
  background: #eef2f7;
}

.public-registration-page .section-card.is-unlocked {
  border-color: rgba(37, 99, 235, 0.24);
  transition: border-color 180ms ease, box-shadow 180ms ease, opacity 180ms ease;
}

.public-registration-page .section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.15rem;
  border-bottom: 1px solid rgba(219, 227, 238, 0.85);
  background: linear-gradient(180deg, #ffffff, #fbfdff);
}

.public-registration-page .section-title-wrap {
  min-width: 0;
}

.public-registration-page .section-title-wrap h3 {
  margin: 0;
  color: var(--title);
  font-size: 1.05rem;
  line-height: 1.2;
  font-weight: 800;
}

.public-registration-page .section-title-wrap p {
  margin: 0.3rem 0 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

.public-registration-page .section-badge {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border-radius: 999px;
  border: 1px solid rgba(219, 227, 238, 0.95);
  background: #fff;
  color: var(--title);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.45rem 0.7rem;
}

.public-registration-page .section-body {
  padding: 1rem 1.15rem 1.15rem;
}

.public-registration-page .section-progress {
  margin-bottom: 1rem;
}

.public-registration-page .section-progress-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.45rem;
}

.public-registration-page .section-progress-head strong {
  color: var(--title);
  font-size: 0.9rem;
  font-weight: 700;
}

.public-registration-page .section-progress-head span {
  color: var(--muted);
  font-size: 0.82rem;
}

.public-registration-page .progress {
  height: 11px;
  border-radius: 999px;
  background: #e8eef6;
}

.public-registration-page .progress-bar {
  border-radius: 999px;
  background: linear-gradient(90deg, var(--primary), #4f8df7);
  transition: width 180ms ease;
}

.public-registration-page .progress-bar.is-complete {
  background: linear-gradient(90deg, var(--success), #34d399);
}

.public-registration-page .form-label {
  color: var(--title);
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 0.45rem;
}

.public-registration-page .form-control,.public-registration-page 
        .form-select {
  min-height: var(--button-height);
  border-radius: 16px;
  border-color: #d6deea;
  font-size: 1rem;
  color: var(--title);
  box-shadow: none;
}

.public-registration-page .form-control::-moz-placeholder {
  color: #94a3b8;
}

.public-registration-page .form-control::placeholder {
  color: #94a3b8;
}

.public-registration-page .form-control:focus,.public-registration-page 
        .form-select:focus {
  border-color: rgba(37, 99, 235, 0.48);
  box-shadow: 0 0 0 0.2rem rgba(37, 99, 235, 0.1);
}

.public-registration-page .form-control.is-invalid,.public-registration-page 
        .form-select.is-invalid {
  border-color: rgba(239, 68, 68, 0.56);
}

.public-registration-page .input-note {
  margin-top: 0.45rem;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.35;
}

.public-registration-page .hint-box {
  border: 1px solid rgba(37, 99, 235, 0.16);
  background: rgba(37, 99, 235, 0.04);
  border-radius: 16px;
  padding: 1rem;
}

.public-registration-page .hint-box strong {
  color: var(--title);
}

.public-registration-page .review-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.95fr);
  gap: 1rem;
}

.public-registration-page .review-panel,.public-registration-page 
        .info-panel {
  border: 1px solid var(--border);
  border-radius: 18px;
  background: #fff;
  padding: 1rem;
}

.public-registration-page .review-panel h4,.public-registration-page 
        .info-panel h4 {
  margin: 0;
  color: var(--title);
  font-size: 0.98rem;
  line-height: 1.25;
  font-weight: 800;
}

.public-registration-page .review-panel p,.public-registration-page 
        .info-panel p {
  margin: 0.3rem 0 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

.public-registration-page .checklist {
  display: grid;
  gap: 0.75rem;
  margin-top: 1rem;
}

.public-registration-page .checklist-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.75rem 0.85rem;
  border-radius: 14px;
  background: var(--surface-muted);
  border: 1px solid rgba(219, 227, 238, 0.85);
}

.public-registration-page .checklist-item .icon {
  width: 30px;
  height: 30px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(16, 185, 129, 0.12);
  color: var(--success);
  flex: 0 0 30px;
}

.public-registration-page .checklist-item strong {
  display: block;
  color: var(--title);
  font-size: 0.9rem;
  line-height: 1.25;
  font-weight: 700;
}

.public-registration-page .checklist-item span {
  display: block;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.4;
  margin-top: 0.15rem;
}

.public-registration-page .review-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.75rem;
  margin-top: 1rem;
}

.public-registration-page .btn-primary-soft,.public-registration-page 
        .btn-outline-soft {
  min-height: var(--button-height);
  border-radius: 16px;
  font-weight: 700;
  padding-inline: 1.2rem;
}

.public-registration-page .btn-primary-soft {
  background: linear-gradient(135deg, var(--primary), #4f8df7);
  border: none;
  color: #fff;
  box-shadow: 0 12px 26px rgba(37, 99, 235, 0.18);
}

.public-registration-page .btn-primary-soft:hover {
  color: #fff;
}

.public-registration-page .btn-outline-soft {
  border-color: var(--border);
  background: #fff;
  color: var(--title);
}

.public-registration-page .btn-outline-soft:hover {
  border-color: var(--border-strong);
  color: var(--title);
  background: #fff;
}

.public-registration-page .footer-note {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.45;
}

.public-registration-page .mobile-actions {
  display: none;
}

.public-registration-page .desktop-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(219, 227, 238, 0.9);
}

@media (max-width: 1199.98px) {
  .public-registration-page .wizard-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .public-registration-page .review-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767.98px) {
  .public-registration-page .page-shell,.public-registration-page 
            .sticky-header-inner {
    width: min(100%, calc(100% - 1rem));
  }

  .public-registration-page .hero-panel-inner {
    grid-template-columns: 1fr;
  }

  .public-registration-page .summary-stats {
    grid-template-columns: 1fr;
  }

  .public-registration-page .wizard-strip {
    display: flex;
    overflow-x: auto;
    padding-bottom: 0.25rem;
    scroll-snap-type: x proximity;
  }

  .public-registration-page .wizard-step {
    min-width: 240px;
    scroll-snap-align: start;
    flex: 0 0 auto;
  }

  .public-registration-page .section-head {
    flex-direction: column;
  }

  .public-registration-page .section-badge {
    align-self: flex-start;
  }

  .public-registration-page .desktop-actions {
    display: none;
  }

  .public-registration-page .mobile-actions {
    display: block;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1040;
    padding: 0.8rem 0.75rem calc(0.8rem + env(safe-area-inset-bottom));
    background: rgba(248, 250, 252, 0.94);
    backdrop-filter: blur(16px);
    border-top: 1px solid rgba(219, 227, 238, 0.94);
    box-shadow: 0 -10px 30px rgba(15, 23, 42, 0.08);
  }

  .public-registration-page .mobile-actions .btn {
    min-height: 56px;
    border-radius: 16px;
  }

  .public-registration-page .page-shell {
    padding-bottom: 10rem;
  }
}

/* Confirmacao publica */

.public-confirmation-page {
  --bg: #f8fafc;
  --surface: #ffffff;
  --title: #0f172a;
  --text: #334155;
  --muted: #64748b;
  --border: #e2e8f0;
  --accent: #4f46e5;
  --accent-2: #7c3aed;
  --success: #14b8a6;
  --danger: #ef4444;
  background:
                radial-gradient(circle at 15% 85%, rgba(79, 70, 229, 0.08) 0%, transparent 38%),
                radial-gradient(circle at 85% 15%, rgba(124, 58, 237, 0.08) 0%, transparent 38%),
                var(--bg);
  color: var(--text);
  min-height: 100vh;
}

.public-confirmation-page .confirm-wrapper {
  max-width: 760px;
}

.public-confirmation-page .confirm-card {
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  background: var(--surface);
  box-shadow: 0 16px 42px rgba(15, 23, 42, 0.08);
}

.public-confirmation-page .confirm-header {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.public-confirmation-page .confirm-logo {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 10px;
  padding: 0.35rem 0.55rem;
  border: 1px solid rgba(255, 255, 255, 0.4);
}

.public-confirmation-page .confirm-logo img {
  height: 34px;
  width: auto;
  display: block;
}

.public-confirmation-page .confirm-header h1 {
  margin: 0;
  font-size: 1.85rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.public-confirmation-page .confirm-body {
  padding: 1.25rem;
}

.public-confirmation-page .info-grid p {
  margin-bottom: 0.45rem;
  color: var(--text);
  font-size: 0.92rem;
}

.public-confirmation-page .info-grid strong {
  color: var(--title);
}

.public-confirmation-page .help-box {
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1rem;
}

.public-confirmation-page .help-box h2 {
  margin: 0 0 0.5rem 0;
  font-size: 1.05rem;
  color: var(--title);
  font-weight: 700;
}

.public-confirmation-page .help-box ol {
  margin: 0;
  padding-left: 1.2rem;
}

.public-confirmation-page .help-box li {
  margin-bottom: 0.35rem;
}

.public-confirmation-page .btn-primary-confirm {
  background: linear-gradient(135deg, #14b8a6, #0f766e);
  border: none;
  color: #fff;
  font-weight: 700;
  min-height: 48px;
  border-radius: 12px;
}

.public-confirmation-page .btn-danger-confirm {
  background: linear-gradient(135deg, #ef4444, #dc2626);
  border: none;
  color: #fff;
  font-weight: 700;
  min-height: 48px;
  border-radius: 12px;
}

/* Portal do motorista */

.driver-portal-page {
  --bg: #f8fafc;
  --surface: #ffffff;
  --surface-muted: #f1f5f9;
  --title: #0f172a;
  --text: #334155;
  --muted: #64748b;
  --border: #dbe3ee;
  --border-strong: #c7d2e1;
  --primary: #2563eb;
  --primary-soft: rgba(37, 99, 235, 0.12);
  --success: #10b981;
  --danger: #ef4444;
  --shadow: 0 18px 40px rgba(15, 23, 42, 0.07);
  --shadow-soft: 0 10px 24px rgba(15, 23, 42, 0.05);
  --radius: 16px;
  --button-height: 52px;
  --map-height: 280px;
}

html:has(body.driver-portal-page) {
  scroll-behavior: smooth;
}

.driver-portal-page {
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font-family: var(--font-family, Geomini, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif);
}

.driver-portal-page .portal-shell {
  width: min(1200px, calc(100% - 1.5rem));
  margin: 0 auto;
  padding: 1rem 0 7.5rem;
}

.driver-portal-page .panel,.driver-portal-page 
        .search-card,.driver-portal-page 
        .trip-card,.driver-portal-page 
        .hero-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: var(--shadow-soft);
}

.driver-portal-page .trip-summary {
  position: sticky;
  top: 0.75rem;
  z-index: 20;
  backdrop-filter: blur(10px);
}

.driver-portal-page .summary-card {
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: var(--shadow);
}

.driver-portal-page .summary-route {
  color: var(--title);
  font-weight: 700;
  line-height: 1.35;
}

.driver-portal-page .summary-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.driver-portal-page .summary-actions .btn {
  border-radius: 12px;
  font-weight: 800;
  min-height: 44px;
}

.driver-portal-page .hero-card {
  overflow: hidden;
}

.driver-portal-page .hero-top {
  padding: 1.25rem;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, #ffffff, #f8fbff);
}

.driver-portal-page .hero-brand {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin-bottom: 0.9rem;
}

.driver-portal-page .hero-brand img {
  height: 42px;
  width: auto;
  background: #fff;
  border-radius: 12px;
  padding: 6px 8px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
}

.driver-portal-page .hero-brand small {
  display: block;
  color: var(--muted);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.72rem;
}

.driver-portal-page .hero-title {
  font-size: 1.35rem;
  line-height: 1.12;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0;
  color: var(--title);
}

.driver-portal-page .hero-subtitle {
  margin: 0.5rem 0 0;
  color: var(--muted);
  max-width: 56ch;
  line-height: 1.5;
}

.driver-portal-page .search-card {
  padding: 1.15rem;
}

.driver-portal-page .section-label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 0.55rem;
  font-weight: 700;
}

.driver-portal-page .cnh-input {
  min-height: 52px;
  border-radius: 14px;
  border-color: var(--border);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--title);
}

.driver-portal-page .btn-portal {
  min-height: var(--button-height);
  border-radius: 14px;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.driver-portal-page .btn-start {
  background: linear-gradient(135deg, var(--primary), #4f8df7);
  border: none;
  color: #fff;
}

.driver-portal-page .btn-end {
  background: linear-gradient(135deg, #ef4444, #dc2626);
  border: none;
  color: #fff;
}

.driver-portal-page .btn-start:hover,.driver-portal-page 
        .btn-end:hover {
  color: #fff;
  transform: translateY(-1px);
}

.driver-portal-page .driver-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.driver-portal-page .meta-pill {
  background: var(--surface-muted);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 0.85rem 0.9rem;
}

.driver-portal-page .meta-pill small {
  display: block;
  color: var(--muted);
  margin-bottom: 0.15rem;
}

.driver-portal-page .meta-pill strong {
  color: var(--title);
}

.driver-portal-page .trip-card {
  overflow: hidden;
}

.driver-portal-page .trip-head {
  padding: 1rem 1rem 0.75rem;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, #ffffff, #fbfdff);
}

.driver-portal-page .trip-body {
  padding: 0.95rem;
}

.driver-portal-page .trip-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--title);
  margin: 0;
}

.driver-portal-page .trip-subtitle {
  color: var(--muted);
  font-size: 0.92rem;
  margin: 0.15rem 0 0;
}

.driver-portal-page .info-stack {
  display: grid;
  gap: 0.55rem;
}

.driver-portal-page .info-row {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
}

.driver-portal-page .info-icon {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  background: var(--primary-soft);
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

.driver-portal-page .info-row strong {
  display: block;
  color: var(--title);
}

.driver-portal-page .info-row span,.driver-portal-page 
        .info-row small {
  color: var(--muted);
}

.driver-portal-page .route-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.42rem 0.7rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text);
  font-size: 0.86rem;
  margin: 0.2rem 0.25rem 0 0;
}

.driver-portal-page .route-actions {
  display: grid;
  gap: 0.55rem;
}

.driver-portal-page .route-action-btn {
  min-height: var(--button-height);
  border-radius: 14px;
  font-weight: 800;
}

.driver-portal-page .route-tools {
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: 0.55rem;
}

.driver-portal-page .route-tools .btn {
  min-height: 48px;
  border-radius: 14px;
  font-weight: 800;
}

.driver-portal-page .route-tools .btn-dark,.driver-portal-page 
        .summary-actions .btn-outline-dark,.driver-portal-page 
        .mobile-quickbar .btn-dark {
  color: #fff !important;
}

.driver-portal-page .route-tools .btn-dark i,.driver-portal-page 
        .summary-actions .btn-outline-dark i,.driver-portal-page 
        .mobile-quickbar .btn-dark i {
  color: #fff !important;
}

.driver-portal-page .summary-actions .btn-outline-dark {
  color: #1f2937 !important;
  border-color: #1f2937 !important;
  background: #ffffff !important;
}

.driver-portal-page .summary-actions .btn-outline-dark:hover {
  color: #ffffff !important;
  background: #1f2937 !important;
}

.driver-portal-page .summary-actions .btn-outline-dark i {
  color: inherit !important;
}

.driver-portal-page .trip-map {
  height: var(--map-height);
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
}

.driver-portal-page .trip-map .leaflet-control-container .leaflet-top,.driver-portal-page 
        .trip-map .leaflet-control-container .leaflet-bottom {
  pointer-events: auto;
}

.driver-portal-page .trip-marker {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.95);
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.18);
  font-size: 0.82rem;
}

.driver-portal-page .trip-marker-start {
  background: linear-gradient(135deg, #16a34a, #22c55e);
}

.driver-portal-page .trip-marker-stop {
  background: linear-gradient(135deg, #2563eb, #4f8df7);
}

.driver-portal-page .trip-marker-end {
  background: linear-gradient(135deg, #dc2626, #ef4444);
}

.driver-portal-page .map-hint {
  color: var(--muted);
  font-size: 0.86rem;
}

.driver-portal-page .passenger-item {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  align-items: center;
  padding: 0.72rem 0.8rem;
  background: #f8fbff;
  border: 1px solid var(--border);
  border-radius: 14px;
}

.driver-portal-page .passenger-item + .passenger-item {
  margin-top: 0.5rem;
}

.driver-portal-page .passenger-name {
  font-weight: 700;
  color: var(--title);
}

.driver-portal-page .passenger-phone a {
  text-decoration: none;
  color: var(--primary);
  font-weight: 700;
}

.driver-portal-page .passenger-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.driver-portal-page .passenger-actions a {
  text-decoration: none;
}

.driver-portal-page .trip-action-form {
  margin-top: 1rem;
}

.driver-portal-page .geo-note {
  font-size: 0.88rem;
  color: var(--muted);
}

.driver-portal-page .receipt-box {
  border: 1px solid var(--border);
  border-radius: 18px;
  background: linear-gradient(180deg, #ffffff, #f8fbff);
  padding: 1rem;
  box-shadow: var(--shadow-soft);
}

.driver-portal-page .receipt-row {
  border: 1px solid var(--border);
  border-radius: 16px;
  background: #fff;
  padding: 0.9rem;
}

.driver-portal-page .receipt-row + .receipt-row {
  margin-top: 0.75rem;
}

.driver-portal-page .receipt-row .form-control,.driver-portal-page 
        .receipt-row .form-select {
  min-height: 46px;
  border-radius: 12px;
}

.driver-portal-page .sticky-help {
  position: sticky;
  bottom: 0;
  z-index: 10;
  background: linear-gradient(180deg, rgba(248, 250, 252, 0.08), rgba(248, 250, 252, 0.96) 35%, rgba(248, 250, 252, 1));
  padding-top: 0.75rem;
  margin-top: 1rem;
}

.driver-portal-page .mobile-quickbar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1050;
  padding: 0.65rem 0.75rem calc(0.65rem + env(safe-area-inset-bottom));
  background: rgba(248, 250, 252, 0.94);
  border-top: 1px solid rgba(219, 227, 238, 0.9);
  box-shadow: 0 -12px 28px rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(12px);
}

.driver-portal-page .mobile-quickbar .quickbar-title {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  font-weight: 800;
  margin-bottom: 0.45rem;
}

.driver-portal-page .mobile-quickbar .quickbar-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem;
}

.driver-portal-page .mobile-quickbar .btn {
  min-height: 46px;
  border-radius: 14px;
  font-weight: 800;
  box-shadow: var(--shadow-soft);
}

@media (min-width: 768px) {
  .driver-portal-page .hero-title {
    font-size: 1.85rem;
  }

  .driver-portal-page .search-card {
    padding: 1.25rem;
  }

  .driver-portal-page .trip-head,.driver-portal-page 
            .trip-body {
    padding-left: 1.2rem;
    padding-right: 1.2rem;
  }

  .driver-portal-page .route-tools {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .driver-portal-page {
    --map-height: 320px;
  }
}

@media (max-width: 575.98px) {
  .driver-portal-page .portal-shell {
    width: calc(100% - 1rem);
    padding-top: 0.75rem;
    padding-bottom: 10rem;
  }

  .driver-portal-page .hero-top,.driver-portal-page 
            .search-card,.driver-portal-page 
            .trip-head,.driver-portal-page 
            .trip-body {
    padding-left: 0.9rem;
    padding-right: 0.9rem;
  }

  .driver-portal-page .hero-title {
    font-size: 1.2rem;
  }

  .driver-portal-page .passenger-item {
    align-items: flex-start;
    flex-direction: column;
  }

  .driver-portal-page .passenger-actions {
    justify-content: flex-start;
  }

  .driver-portal-page .mobile-quickbar {
    display: none;
  }
}

/* Assistente */

.assistant-page {
  --primary: #4F46E5;
  --primary-dark: #3730A3;
  --secondary: #14B8A6;
  --warning: #F59E0B;
  --danger: #EF4444;
  --muted: #ced4df;
  --bg-gradient: radial-gradient(circle at 25% 20%, rgba(79,70,229,0.32), rgba(124,58,237,0.14)), radial-gradient(circle at 80% 0%, rgba(20,184,166,0.12), transparent 55%), linear-gradient(135deg, #020617, #0f172a 70%);
  --card-bg: rgba(15, 23, 42, 0.6);
  --glass-border: rgba(255, 255, 255, 0.15);
  min-height: 100vh;
  margin: 0;
  background: var(--bg-gradient);
  font-family: var(--font-family);
  color: #f5f7fa;
}

.assistant-page .assistant-hero {
  max-width: 1100px;
  margin: 0 auto;
  padding: 3.5rem 1.5rem 1.5rem;
  text-align: center;
}

.assistant-page .assistant-hero h1 {
  font-size: clamp(2.2rem, 4vw, 3rem);
  font-weight: 700;
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
  font-family: var(--font-family-display);
  background: linear-gradient(90deg, #ffffff, rgba(255,255,255,0.7));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.assistant-page .assistant-hero p {
  color: var(--muted);
  max-width: 720px;
  margin: 0 auto;
  line-height: 1.6;
}

.assistant-page .assistant-wrapper {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 1.5rem 3.5rem;
}

.assistant-page .legend {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.assistant-page .legend-card {
  background: rgba(15, 25, 55, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 22px;
  padding: 1.1rem 1.3rem;
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.04), 0 15px 40px rgba(0,0,0,0.4);
}

.assistant-page .legend-card i {
  font-size: 1.15rem;
  margin-top: 0.2rem;
}

.assistant-page .status-pill {
  border-radius: 999px;
  padding: 0.25rem 0.9rem;
  font-size: 0.82rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.assistant-page .pill-agendada {
  background: rgba(79, 70, 229, 0.18);
  color: #dbe4ff;
}

.assistant-page .pill-andamento {
  background: rgba(245, 158, 11, 0.18);
  color: #ffe2b9;
}

.assistant-page .pill-concluida {
  background: rgba(20, 184, 166, 0.18);
  color: #cff6d7;
}

.assistant-page .pill-cancelada {
  background: rgba(239, 68, 68, 0.18);
  color: #ffd6de;
}

.assistant-page .legend-card small {
  color: rgba(255, 255, 255, 0.78);
  display: block;
  margin-top: 0.3rem;
  font-size: 0.9rem;
}

.assistant-page .chat-card {
  border-radius: 28px;
  background: var(--card-bg);
  backdrop-filter: blur(30px);
  border: 1px solid var(--glass-border);
  box-shadow: 0 45px 80px rgba(0, 0, 0, 0.5);
  overflow: hidden;
}

.assistant-page .chat-header {
  padding: 2.3rem 2.7rem;
  background: linear-gradient(135deg, rgba(79, 70, 229, 0.86), rgba(124, 58, 237, 0.64), rgba(20, 184, 166, 0.48));
}

.assistant-page .chat-header h2 {
  font-size: 2rem;
  margin-bottom: 0.3rem;
  font-family: var(--font-family-display);
}

.assistant-page .chat-header p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1rem;
  margin: 0;
}

.assistant-page .chat-body {
  padding: 2.2rem 2.2rem 2.5rem;
}

.assistant-page #chatMessages {
  max-height: 420px;
  overflow-y: auto;
  padding-right: 0.5rem;
  margin-bottom: 1rem;
}

.assistant-page .message {
  border-radius: 20px;
  padding: 0.95rem 1.25rem;
  margin-bottom: 0.95rem;
  line-height: 1.6;
  white-space: pre-line;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.03);
}

.assistant-page .message.bot {
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.assistant-page .message.user {
  background: rgba(79, 70, 229, 0.24);
  border: 1px solid rgba(79, 70, 229, 0.42);
  text-align: right;
}

.assistant-page .suggestions button {
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.26);
  background: rgba(255, 255, 255, 0.09);
  color: #fff;
  padding: 0.55rem 1.3rem;
  margin: 0.3rem 0.4rem 0.3rem 0;
  font-size: 0.9rem;
  transition: all 0.2s ease;
}

.assistant-page .suggestions button:hover {
  background: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.4);
}

.assistant-page .chat-input {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 1rem;
}

.assistant-page .chat-input input {
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  padding: 0.9rem 1.2rem;
  color: #fff;
}

.assistant-page .chat-input button {
  border-radius: 999px;
  padding: 0.95rem 1.6rem;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border: none;
}

.assistant-page .chat-input input::-moz-placeholder {
  color: rgba(255, 255, 255, 0.55);
}

.assistant-page .chat-input input::placeholder {
  color: rgba(255, 255, 255, 0.55);
}

@media (max-width: 768px) {
  .assistant-page .chat-header {
    padding: 1.7rem;
  }

  .assistant-page .chat-body {
    padding: 1.5rem;
  }

  .assistant-page .legend-card {
    border-radius: 18px;
  }
}

/* Superfícies externas unificadas */

.public-surface {
  --public-primary: #0052ff;
  --public-primary-dark: #003ecc;
  --public-primary-soft: rgba(0, 82, 255, 0.09);
  --public-surface: #ffffff;
  --public-surface-muted: #f8fafc;
  --public-title: #0f172a;
  --public-text: #334155;
  --public-muted: #64748b;
  --public-border: #e2e8f0;
  --public-shadow: 0 18px 42px rgba(15, 23, 42, 0.08);
  margin: 0;
  min-height: 100vh;
  color: var(--public-text);
  background: #fafafa;
  font-family: var(--font-family, Geomini, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif);
  -webkit-font-smoothing: antialiased;
}

.public-registration-page,
.driver-portal-page {
  --primary: var(--public-primary);
  --primary-soft: var(--public-primary-soft);
}

.public-registration-page .panel,
.public-registration-page .section-card,
.driver-portal-page .panel,
.driver-portal-page .search-card,
.driver-portal-page .trip-card,
.driver-portal-page .hero-card {
  border-color: var(--public-border);
  box-shadow: var(--public-shadow);
}

.public-registration-page .wizard-step:focus-visible,
.public-registration-page .back-link:focus-visible,
.driver-portal-page .btn:focus-visible,
.assistant-page .btn:focus-visible,
.assistant-page .form-control:focus-visible,
.public-confirmation-page .btn:focus-visible {
  outline: 3px solid rgba(0, 82, 255, 0.22);
  outline-offset: 3px;
}

.driver-portal-page .driver-profile-panel {
  overflow: hidden;
}

.driver-portal-page .btn-sm,
.driver-portal-page .passenger-actions .btn {
  min-height: 40px;
  border-radius: 12px;
  padding: 0.55rem 0.8rem;
}

/* Confirmação pública */

.public-confirmation-page {
  --accent: var(--public-primary);
  --accent-2: #4d7cff;
  background:
        radial-gradient(circle at 12% 12%, rgba(0, 82, 255, 0.06), transparent 28%),
        #fafafa;
}

.public-confirmation-page .confirm-wrapper {
  max-width: 720px;
}

.public-confirmation-page .confirm-card {
  border-radius: 24px;
  border-color: var(--public-border);
  box-shadow: var(--public-shadow);
}

.public-confirmation-page .confirm-header {
  align-items: center;
  padding: 1.35rem 1.5rem;
  color: var(--public-title);
  border-bottom: 1px solid var(--public-border);
  background: linear-gradient(180deg, #fff, #f8fbff);
}

.public-confirmation-page .confirm-logo {
  display: flex;
  width: 58px;
  height: 58px;
  align-items: center;
  justify-content: center;
  flex: 0 0 58px;
  border-radius: 16px;
  border-color: var(--public-border);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
}

.public-confirmation-page .confirm-logo img {
  max-width: 42px;
  height: auto;
}

.public-confirmation-page .confirm-header h1 {
  color: var(--public-title);
  font-size: clamp(1.35rem, 4vw, 1.85rem);
  font-weight: 800;
}

.public-confirmation-page .confirm-header p {
  margin: 0.3rem 0 0;
  color: var(--public-muted);
  font-size: 0.9rem;
}

.public-confirmation-page .confirm-body {
  padding: 1.5rem;
}

.public-confirmation-page .info-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.public-confirmation-page .confirm-info-item {
  display: flex;
  min-width: 0;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.9rem;
  border: 1px solid var(--public-border);
  border-radius: 16px;
  background: #fff;
}

.public-confirmation-page .confirm-info-item > i {
  display: inline-flex;
  width: 34px;
  height: 34px;
  align-items: center;
  justify-content: center;
  flex: 0 0 34px;
  border-radius: 11px;
  color: var(--public-primary);
  background: var(--public-primary-soft);
}

.public-confirmation-page .confirm-info-item span,
.public-confirmation-page .confirm-info-item strong {
  display: block;
  overflow-wrap: anywhere;
}

.public-confirmation-page .confirm-info-item span {
  margin-bottom: 0.15rem;
  color: var(--public-muted);
  font-size: 0.78rem;
}

.public-confirmation-page .confirm-info-item strong {
  color: var(--public-title);
  font-size: 0.92rem;
}

.public-confirmation-page .help-box {
  border-radius: 16px;
  background: var(--public-surface-muted);
}

.public-confirmation-page .btn-primary-confirm,
.public-confirmation-page .btn-danger-confirm {
  min-height: 52px;
  border-radius: 14px;
  font-family: inherit;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.public-confirmation-page .btn-primary-confirm {
  background: linear-gradient(135deg, var(--public-primary), #4d7cff);
  box-shadow: 0 12px 24px rgba(0, 82, 255, 0.18);
}

.public-confirmation-page .btn-primary-confirm:hover,
.public-confirmation-page .btn-danger-confirm:hover {
  color: #fff;
  transform: translateY(-1px);
}

/* Assistente público */

.assistant-page {
  --primary: var(--public-primary);
  --primary-dark: var(--public-primary-dark);
  --muted: var(--public-muted);
  color: var(--public-text);
  background:
        radial-gradient(circle at 18% 8%, rgba(0, 82, 255, 0.07), transparent 28%),
        #fafafa;
}

.assistant-page .assistant-hero {
  max-width: 960px;
  padding: 2.5rem 1rem 1.5rem;
}

.assistant-page .assistant-brand {
  display: inline-flex;
  min-height: 54px;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  padding: 0.55rem 0.8rem;
  border: 1px solid var(--public-border);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
}

.assistant-page .assistant-brand img {
  max-width: 112px;
  max-height: 38px;
}

.assistant-page .assistant-hero h1 {
  margin-bottom: 0.6rem;
  color: var(--public-title);
  background: none;
  -webkit-text-fill-color: currentColor;
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
}

.assistant-page .assistant-hero p {
  color: var(--public-muted);
}

.assistant-page .assistant-wrapper {
  max-width: 1040px;
  padding: 0 1rem 3rem;
}

.assistant-page .legend {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
  margin-bottom: 1.25rem !important;
}

.assistant-page .legend-card {
  min-width: 0;
  padding: 1rem;
  border: 1px solid var(--public-border);
  border-radius: 18px;
  color: var(--public-text);
  background: #fff;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
}

.assistant-page .legend-card small {
  color: var(--public-muted);
  line-height: 1.45;
}

.assistant-page .pill-agendada {
  color: #1d4ed8;
  background: #dbeafe;
}

.assistant-page .pill-andamento {
  color: #92400e;
  background: #fef3c7;
}

.assistant-page .pill-concluida {
  color: #047857;
  background: #d1fae5;
}

.assistant-page .pill-cancelada {
  color: #b91c1c;
  background: #fee2e2;
}

.assistant-page .chat-card {
  border: 1px solid var(--public-border);
  border-radius: 24px;
  background: #fff;
  box-shadow: var(--public-shadow);
  backdrop-filter: none;
}

.assistant-page .chat-header {
  padding: 1.35rem 1.5rem;
  color: var(--public-title);
  border-bottom: 1px solid var(--public-border);
  background: linear-gradient(180deg, #fff, #f8fbff);
}

.assistant-page .assistant-avatar {
  display: inline-flex;
  width: 52px;
  height: 52px;
  align-items: center;
  justify-content: center;
  flex: 0 0 52px;
  border-radius: 16px;
  color: var(--public-primary);
  background: var(--public-primary-soft);
}

.assistant-page .chat-header h2 {
  margin-bottom: 0.25rem;
  color: var(--public-title);
  font-size: 1.35rem;
  font-weight: 800;
}

.assistant-page .chat-header p {
  display: flex;
  align-items: center;
  color: var(--public-muted);
  font-size: 0.92rem;
}

.assistant-page .assistant-online-dot {
  width: 8px;
  height: 8px;
  margin-right: 0.5rem;
  border-radius: 999px;
  background: #10b981;
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.12);
}

.assistant-page .chat-body {
  padding: 1.5rem;
}

.assistant-page #chatMessages {
  min-height: 160px;
  max-height: 390px;
  padding: 0.25rem 0.25rem 0.25rem 0;
}

.assistant-page .message {
  width: -moz-fit-content;
  width: fit-content;
  max-width: min(82%, 680px);
  padding: 0.85rem 1rem;
  border-radius: 16px;
  color: var(--public-text);
  box-shadow: none;
}

.assistant-page .message.bot {
  border: 1px solid var(--public-border);
  border-bottom-left-radius: 6px;
  background: var(--public-surface-muted);
}

.assistant-page .message.user {
  margin-left: auto;
  border: 1px solid var(--public-primary);
  border-bottom-right-radius: 6px;
  color: #fff;
  background: var(--public-primary);
}

.assistant-page .suggestions-label {
  color: var(--public-muted);
  font-weight: 600;
}

.assistant-page .suggestions button {
  min-height: 40px;
  margin: 0.35rem 0.25rem 0 0;
  padding: 0.5rem 0.85rem;
  border-color: var(--public-border);
  border-radius: 12px;
  color: var(--public-text);
  background: #fff;
}

.assistant-page .suggestions button:hover {
  border-color: rgba(0, 82, 255, 0.3);
  color: var(--public-primary);
  background: var(--public-primary-soft);
}

.assistant-page .chat-input {
  padding: 0.65rem;
  border: 1px solid var(--public-border);
  border-radius: 18px;
  background: var(--public-surface-muted);
}

.assistant-page .chat-input input {
  min-height: 50px;
  padding: 0.75rem 1rem;
  border-color: var(--public-border);
  border-radius: 13px;
  color: var(--public-title);
  background: #fff;
}

.assistant-page .chat-input input::-moz-placeholder {
  color: #94a3b8;
}

.assistant-page .chat-input input::placeholder {
  color: #94a3b8;
}

.assistant-page .chat-input button {
  min-height: 50px;
  padding: 0.75rem 1.25rem;
  border-radius: 13px;
  color: #fff;
  background: linear-gradient(135deg, var(--public-primary), #4d7cff);
}

/* Monitoramento */

.monitoring-page .monitoring-fullscreen {
  background:
        radial-gradient(circle at 10% 8%, rgba(0, 82, 255, 0.05), transparent 24%),
        #f8fafc;
}

.monitoring-page .monitoring-fullscreen::before,
.monitoring-page .monitoring-fullscreen::after {
  content: none;
}

.monitoring-page .monitoring-header,
.monitoring-page .monitoring-card,
.monitoring-page .monitoring-progress-section,
.monitoring-page .monitoring-executantes-section,
.monitoring-page .monitoring-trip-card,
.monitoring-page .monitoring-last-update {
  border-color: var(--public-border);
  background: #fff;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
  backdrop-filter: none;
}

.monitoring-page .monitoring-header__eyebrow {
  color: var(--public-primary);
  background: var(--public-primary-soft);
}

.monitoring-page .monitoring-card::before {
  background: var(--public-primary);
}

.monitoring-page .monitoring-card-icon::before {
  content: none;
}

.monitoring-page .monitoring-card-icon.is-primary,
.monitoring-page .monitoring-card-icon.is-info {
  color: var(--public-primary);
  background: var(--public-primary-soft);
}

.monitoring-page .monitoring-card-icon.is-success {
  color: #059669;
  background: rgba(16, 185, 129, 0.11);
}

.monitoring-page .monitoring-card-icon.is-warning {
  color: #d97706;
  background: rgba(245, 158, 11, 0.12);
}

.monitoring-page .monitoring-card-value.is-primary,
.monitoring-page .monitoring-card-value.is-info,
.monitoring-page .monitoring-progress-value.is-primary,
.monitoring-page .monitoring-progress-value.is-info {
  color: var(--public-primary);
}

.monitoring-page .trip-bar-fill,
.monitoring-page .trip-occupancy.soft .trip-bar-fill {
  background: linear-gradient(90deg, var(--public-primary), #4d7cff);
}

@media (max-width: 991.98px) {
  html:has(body.monitoring-page),
    .monitoring-page {
    height: auto !important;
    overflow: auto !important;
  }

  .monitoring-page .monitoring-fullscreen,
    .monitoring-page .monitoring-container {
    height: auto;
    min-height: 100vh;
    overflow: visible !important;
  }

  .monitoring-page .monitoring-fullscreen {
    padding: 0.75rem;
  }

  .monitoring-page .monitoring-header {
    padding: 1.25rem;
    text-align: left;
  }

  .monitoring-page .monitoring-header__meta-row {
    justify-content: flex-start;
  }

  .monitoring-page .monitoring-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .monitoring-page .monitoring-progress-section,
    .monitoring-page .monitoring-executantes-section {
    flex: initial;
    overflow: visible;
  }
}

@media (max-width: 767.98px) {
  .public-confirmation-page .confirm-header {
    align-items: flex-start;
    padding: 1.1rem;
  }

  .public-confirmation-page .confirm-body {
    padding: 1rem;
  }

  .public-confirmation-page .info-grid,
    .assistant-page .legend,
    .monitoring-page .monitoring-grid {
    grid-template-columns: 1fr;
  }

  .assistant-page .assistant-hero {
    padding-top: 1.5rem;
  }

  .assistant-page .chat-header,
    .assistant-page .chat-body {
    padding: 1rem;
  }

  .assistant-page .message {
    max-width: 92%;
  }

  .assistant-page .chat-input button {
    width: 100%;
  }

  .driver-portal-page .driver-meta {
    grid-template-columns: 1fr;
  }

  .monitoring-page .monitoring-trip-item {
    flex-direction: column;
    gap: 0.75rem;
  }

  .monitoring-page .trip-occupancy {
    width: 100%;
    min-width: 0;
    text-align: left;
  }
}

@media (prefers-reduced-motion: reduce) {
  .public-surface *,
  .public-surface *::before,
  .public-surface *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ============================================================
   Samsystem UI Master Spec — final application skin
   Shared by authenticated, public and operational screens.
   Reference: samsystem_ui_master_spec_5_referencias_codex.html
   ============================================================ */

:root {
  --accent: #635bff;
  --accent-secondary: #7b74ff;
  --accent-foreground: #ffffff;
  --foreground: #17181c;
  --background: #f7f8fb;
  --muted: #f1f3f7;
  --muted-foreground: #737783;
  --card: #ffffff;
  --border: #e7e9ef;
  --ring: #635bff;
  --primary: #635bff;
  --primary-dark: #5148d1;
  --success: #24b47e;
  --success-dark: #16855c;
  --warning: #f4a340;
  --warning-dark: #cf7e19;
  --error: #e86161;
  --danger: #e86161;
  --error-dark: #c94c4c;
  --text-primary: #17181c;
  --text-secondary: #434752;
  --text-tertiary: #737783;
  --text-muted: #737783;
  --border-secondary: #e7e9ef;
  --border-strong: #cfd3dc;
  --primary-light: rgba(99, 91, 255, .09);
  --accent-light: rgba(99, 91, 255, .09);
  --primary-gradient: linear-gradient(135deg, #635bff, #7b74ff);
  --accent-gradient: linear-gradient(135deg, #635bff, #7b74ff);
  --shadow-soft: 0 10px 30px rgba(25, 28, 39, .06);
  --shadow-medium: 0 16px 40px rgba(25, 28, 39, .08);
  --shadow-md: 0 10px 30px rgba(25, 28, 39, .06);
  --shadow-lg: 0 16px 40px rgba(25, 28, 39, .08);
  --shadow-accent: 0 12px 28px rgba(99, 91, 255, .18);
  --shadow-accent-lg: 0 20px 42px rgba(99, 91, 255, .24);
  --font-family: 'Inter', ui-sans-serif, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-family-display: 'Inter', ui-sans-serif, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-family-mono: 'Inter', ui-sans-serif, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --bs-body-font-family: var(--font-family);
  --bs-font-sans-serif: var(--font-family);
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --radius: 10px;
  --window-border-radius: 24px;
  --button-height: 42px;
  --button-height-sm: 36px;
  --button-height-lg: 48px;
}

html,
body {
  background: var(--background);
  color: var(--foreground);
  font-family: var(--font-family);
}

body {
  background: var(--background) !important;
}

body.app-shell {
  background: var(--background) !important;
}

body.app-shell::before,
body.app-shell::after {
  display: none !important;
}

.app-shell .main-content {
  min-height: calc(100vh - 72px);
  margin-left: 248px;
  padding: 20px 28px 48px;
  transition: margin-left 240ms ease, padding 240ms ease;
}

.app-shell .app-page-shell {
  max-width: 1440px;
}

.app-shell .app-sidebar {
  width: 248px;
  background: #ffffff;
  border-right: 1px solid var(--border);
  box-shadow: 0 2px 12px rgba(25, 28, 39, .025);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.app-shell .app-sidebar__header {
  height: 72px;
  padding: 0 18px;
  border-bottom-color: var(--border);
}

.app-shell .app-sidebar__brand {
  gap: 10px;
}

.app-shell .app-brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--primary-light) !important;
  box-shadow: none !important;
}

.app-shell .app-sidebar__brand-copy,
.app-shell .app-sidebar__user-copy,
.app-shell .app-sidebar__label {
  opacity: 1;
  transform: none;
}

.app-shell .app-sidebar__brand-copy strong {
  color: var(--foreground);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -.03em;
}

.app-shell .app-sidebar__brand-copy small,
.app-shell .app-sidebar__user-copy small {
  color: var(--muted-foreground);
}

.app-shell .app-sidebar__pin {
  display: none;
}

.app-shell .app-sidebar__context {
  max-height: 64px;
  margin: 0 18px;
  padding: 16px 0 12px;
  opacity: 1;
  border-bottom: 1px solid var(--border);
}

.app-shell .app-sidebar__context span {
  color: #9a9ea7;
  font-size: 10px;
  letter-spacing: .08em;
}

.app-shell .app-sidebar__context strong {
  color: var(--foreground);
  font-size: 13px;
}

.app-shell .app-sidebar__nav {
  padding: 18px 14px;
}

.app-shell .app-sidebar__list {
  gap: 4px;
}

.app-shell .app-sidebar__link {
  height: 42px;
  gap: 10px;
  padding: 0 11px;
  border: 1px solid transparent;
  border-radius: 10px;
  color: #686d78;
  font-size: 13px;
  font-weight: 600;
}

.app-shell .app-sidebar__link:hover {
  border-color: transparent;
  background: #f4f5f9;
  color: var(--foreground);
}

.app-shell .app-sidebar__link.is-active {
  border-color: #ded8ff !important;
  background: #efedff !important;
  color: #5148d1 !important;
  box-shadow: none !important;
}

.app-shell .app-sidebar__link.is-active .app-sidebar__icon,
.app-shell .app-sidebar__link.is-active i {
  color: #635bff !important;
}

.app-shell .app-sidebar__icon {
  width: 20px;
  color: #858995;
  font-size: 14px;
}

.app-shell .app-sidebar__footer {
  padding: 14px;
  border-top-color: var(--border);
}

.app-shell .app-sidebar__user,
.app-shell .app-sidebar__logout {
  height: 42px;
  border-radius: 10px;
  color: #686d78;
}

.app-shell .app-sidebar__user:hover,
.app-shell .app-sidebar__logout:hover {
  background: #f4f5f9;
  color: var(--foreground);
}

.app-shell .app-sidebar__avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #efedff;
  color: #635bff;
}

.app-topbar {
  display: flex;
  min-height: 44px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 0 auto 22px;
  max-width: 1440px;
  color: var(--muted-foreground);
  font-size: 12px;
}

.app-topbar__context,
.app-topbar__actions,
.app-topbar__profile {
  display: flex;
  align-items: center;
  gap: 9px;
}

.app-topbar__eyebrow {
  color: #9a9ea7;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.app-topbar__separator {
  color: #cfd3dc;
}

.app-topbar__context strong {
  color: var(--foreground);
  font-size: 13px;
  font-weight: 700;
}

.app-topbar__status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #737783;
}

.app-topbar__status i {
  color: var(--success);
  font-size: 7px;
}

.app-topbar__profile {
  color: var(--foreground);
  font-weight: 600;
  text-decoration: none;
}

.app-topbar__profile:hover {
  color: var(--accent);
}

.app-topbar__avatar {
  display: inline-flex;
  width: 30px;
  height: 30px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #635bff;
  background: #efedff;
  font-size: 12px;
}

.app-shell .app-footer {
  margin-left: 248px;
  background: #ffffff;
  border-top: 1px solid var(--border);
  box-shadow: none;
  backdrop-filter: none;
}

.app-shell .app-footer small {
  color: var(--muted-foreground);
  font-family: var(--font-family);
  font-size: 11px;
}

.app-shell .tfd-module-page > .row:first-of-type {
  margin-bottom: 22px !important;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

.app-shell .tfd-module-page > .row:first-of-type:hover {
  transform: none;
  box-shadow: none;
}

.app-shell h1.h4,
.app-shell .tfd-heading,
.app-shell .page-title {
  color: var(--foreground) !important;
  font-size: clamp(1.45rem, 2vw, 1.85rem) !important;
  font-weight: 700 !important;
  letter-spacing: -.035em;
  line-height: 1.12;
}

.app-shell .tfd-heading i,
.app-shell h1.h4 i {
  color: var(--accent) !important;
  font-size: .82em;
}

.app-shell .tfd-subheading,
.app-shell .page-subtitle {
  color: var(--muted-foreground) !important;
  font-size: 13px !important;
  line-height: 1.5;
}

.app-shell .breadcrumb {
  margin-bottom: 8px !important;
  font-size: 11px;
}

.app-shell .breadcrumb-item,
.app-shell .breadcrumb-item a {
  color: #858995;
  font-size: 11px;
  text-decoration: none;
}

.app-shell .breadcrumb-item.active {
  color: #565a66 !important;
  font-weight: 600;
}

.app-shell .card,
.app-shell .glass-card,
.app-shell .tfd-section-card,
.app-shell .dashboard-stat-card,
.app-shell .modal-content,
.app-shell .dropdown-menu,
.app-shell .table-responsive,
.app-shell .list-group-item {
  border: 1px solid var(--border) !important;
  border-radius: 14px !important;
  background: var(--card) !important;
  color: var(--foreground) !important;
  box-shadow: var(--shadow-soft) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

.app-shell .card:hover,
.app-shell .glass-card:hover,
.app-shell .tfd-section-card:hover,
.app-shell .dashboard-stat-card:hover {
  transform: none;
  border-color: var(--border) !important;
  box-shadow: var(--shadow-medium) !important;
}

.app-shell .card-header,
.app-shell .glass-card-header {
  min-height: 52px;
  padding: 14px 18px !important;
  border-bottom: 1px solid var(--border) !important;
  border-radius: 14px 14px 0 0 !important;
  background: #fafbfc !important;
  color: var(--foreground) !important;
}

.app-shell .card-header h1,
.app-shell .card-header h2,
.app-shell .card-header h3,
.app-shell .card-header h4,
.app-shell .card-header h5,
.app-shell .card-header h6,
.app-shell .glass-card-header h1,
.app-shell .glass-card-header h2,
.app-shell .glass-card-header h3,
.app-shell .glass-card-header h4,
.app-shell .glass-card-header h5,
.app-shell .glass-card-header h6 {
  color: var(--foreground) !important;
  font-size: 14px;
  font-weight: 700;
}

.app-shell .card-header i,
.app-shell .glass-card-header i {
  color: var(--accent) !important;
}

.app-shell .card-body,
.app-shell .glass-card-body {
  padding: 18px !important;
  color: var(--text-secondary) !important;
}

.app-shell .card-footer {
  border-top: 1px solid var(--border) !important;
  background: #fafbfc !important;
}

.app-shell .btn {
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid transparent;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(25, 28, 39, .05);
  font-size: 13px;
  font-weight: 600;
}

.app-shell .btn:hover {
  transform: translateY(-1px);
}

.app-shell .btn-primary,
.app-shell .btn-info,
.app-shell .btn-gradient {
  border-color: var(--accent);
  background: var(--accent);
  color: #ffffff;
  box-shadow: 0 8px 18px rgba(99, 91, 255, .20);
}

.app-shell .btn-primary:hover,
.app-shell .btn-info:hover,
.app-shell .btn-gradient:hover {
  border-color: var(--primary-dark);
  background: var(--primary-dark);
  color: #ffffff;
  box-shadow: 0 10px 22px rgba(99, 91, 255, .24);
}

.app-shell .btn-outline-primary {
  border-color: #d8d4ff;
  background: #ffffff;
  color: #5148d1;
}

.app-shell .btn-outline-primary:hover {
  border-color: #c9c4ff;
  background: #f3f1ff;
  color: #5148d1;
  box-shadow: none;
}

.app-shell .btn-outline-secondary {
  border-color: var(--border-strong);
  background: #ffffff;
  color: #565a66;
}

.app-shell .btn-outline-secondary:hover {
  border-color: #bfc4cf;
  background: #f4f5f8;
  color: var(--foreground);
}

.app-shell .btn-success {
  border-color: var(--success);
  background: var(--success);
  color: #ffffff;
}

.app-shell .btn-warning {
  border-color: var(--warning);
  background: var(--warning);
  color: #452a0b;
}

.app-shell .btn-danger {
  border-color: var(--error);
  background: var(--error);
  color: #ffffff;
}

.app-shell .btn-sm,
.app-shell .tfd-inline-action-btn.btn-sm {
  min-height: 36px;
  padding: 0 12px;
  border-radius: 9px;
  font-size: 12px;
}

.app-shell .form-label {
  margin-bottom: 7px;
  color: #565a66;
  font-size: 12px;
  font-weight: 600;
}

.app-shell .form-control,
.app-shell .form-select,
.app-shell .input-group-text,
.app-shell input[type='text'],
.app-shell input[type='email'],
.app-shell input[type='tel'],
.app-shell input[type='date'],
.app-shell input[type='datetime-local'],
.app-shell input[type='number'],
.app-shell input[type='password'],
.app-shell input[type='search'],
.app-shell textarea {
  min-height: 42px;
  padding: 9px 12px;
  border: 1px solid #e1e4ea;
  border-radius: 10px;
  background: #ffffff;
  color: #333741;
  box-shadow: 0 1px 2px rgba(16, 24, 40, .02);
  font-size: 13px;
}

.app-shell .form-control:hover,
.app-shell .form-select:hover {
  border-color: #cfd4dd;
}

.app-shell .form-control:focus,
.app-shell .form-select:focus,
.app-shell textarea:focus {
  border-color: var(--accent) !important;
  box-shadow: 0 0 0 3px rgba(99, 91, 255, .11) !important;
}

.app-shell .form-control::-moz-placeholder, .app-shell textarea::-moz-placeholder {
  color: #9a9ea7;
}

.app-shell .form-control::placeholder,
.app-shell textarea::placeholder {
  color: #9a9ea7;
}

.app-shell .input-group-text {
  background: #f7f8fb;
  color: #858995;
}

.app-shell .table-responsive {
  overflow-x: auto;
}

.app-shell .table {
  color: var(--text-secondary);
  font-size: 13px;
}

.app-shell .table thead th,
.app-shell .table th {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border) !important;
  background: #fafbfc !important;
  color: #727782;
  font-family: var(--font-family);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.app-shell .table td {
  padding: 12px 14px;
  border-color: #f0f1f4 !important;
  vertical-align: middle;
}

.app-shell .table tbody tr:hover {
  background: #faf9ff !important;
}

.app-shell .badge,
.app-shell .tfd-badge,
.app-shell .meta-pill,
.app-shell .route-chip {
  border-radius: 9px;
  font-family: var(--font-family);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
}

.app-shell .tfd-icon-badge {
  border: 1px solid #e4e0ff;
  border-radius: 10px;
  background: #efedff;
  color: var(--accent);
  box-shadow: none;
}

.app-shell .tfd-icon-badge.is-success {
  border-color: #c9f0df;
  background: #effaf5;
  color: var(--success-dark);
}

.app-shell .tfd-icon-badge.is-warning {
  border-color: #f6dfbf;
  background: #fff8ed;
  color: var(--warning-dark);
}

.app-shell .tfd-icon-badge.is-info {
  border-color: #d9d7ff;
  background: #f3f1ff;
  color: #635bff;
}

.app-shell .alert {
  border-radius: 12px;
  box-shadow: 0 6px 16px rgba(25, 28, 39, .04);
  font-size: 13px;
}

.app-shell .alert-success {
  border-color: #bfe8d5;
  background: #effaf5;
  color: #146c4b;
}

.app-shell .alert-danger {
  border-color: #f1c5c5;
  background: #fff5f5;
  color: #9f3f3f;
}

.app-shell .alert-warning {
  border-color: #f2d8af;
  background: #fff9ef;
  color: #8d5b1f;
}

.app-shell .alert-info {
  border-color: #dcd9ff;
  background: #f7f6ff;
  color: #5148d1;
}

.app-shell .nav-tabs {
  gap: 2px;
  border-bottom: 1px solid var(--border);
}

.app-shell .nav-tabs .nav-link {
  padding: 10px 14px;
  border: 0;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  background: transparent;
  color: #737783;
  font-size: 13px;
}

.app-shell .nav-tabs .nav-link:hover {
  border-color: transparent transparent #d8d4ff;
  background: transparent;
  color: var(--accent);
}

.app-shell .nav-tabs .nav-link.active {
  border-color: transparent transparent var(--accent);
  background: transparent;
  color: var(--accent);
  box-shadow: none;
}

.app-shell .pagination .page-link {
  border-color: var(--border);
  border-radius: 8px;
  color: #737783;
}

.app-shell .pagination .page-link:hover,
.app-shell .pagination .active .page-link {
  border-color: var(--accent);
  background: var(--accent);
  color: #ffffff;
}

.app-shell .tfd-empty-state {
  border-radius: 14px;
  background: #ffffff;
}

.app-shell .kanban-col {
  border-radius: 14px;
  border-color: var(--border);
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}

.app-shell .kanban-card {
  border-radius: 12px;
  border-color: var(--border);
  box-shadow: 0 2px 8px rgba(25, 28, 39, .035);
}

.app-shell .monitoring-progress-fill,
.app-shell .trip-bar-fill {
  background: var(--accent);
}

.app-shell .monitoring-progress-track,
.app-shell .trip-bar-track {
  background: #eceef3;
}

.public-surface,
.assistant-page,
.monitoring-page {
  --public-primary: #635bff;
  --public-primary-dark: #5148d1;
  --public-primary-soft: #efedff;
  --public-title: #17181c;
  --public-text: #434752;
  --public-muted: #737783;
  --public-border: #e7e9ef;
  --public-shadow: var(--shadow-soft);
  font-family: var(--font-family);
  background: var(--background) !important;
}

.assistant-page,
.monitoring-page {
  color: var(--text-secondary);
}

.assistant-page .chat-card,
.assistant-page .legend-card,
.monitoring-page .monitoring-card,
.monitoring-page .monitoring-header,
.monitoring-page .monitoring-progress-section,
.monitoring-page .monitoring-executantes-section,
.monitoring-page .monitoring-trip-card,
.public-surface .panel,
.public-surface .search-card,
.public-surface .trip-card {
  border-color: var(--border) !important;
  border-radius: 14px !important;
  background: var(--card) !important;
  box-shadow: var(--shadow-soft) !important;
  backdrop-filter: none !important;
}

.assistant-page .chat-header,
.monitoring-page .monitoring-header {
  border-bottom-color: var(--border);
  background: #fafbfc !important;
}

.assistant-page .assistant-hero h1,
.assistant-page .chat-header h2,
.monitoring-page h1,
.monitoring-page h2,
.monitoring-page h3 {
  color: var(--foreground) !important;
}

.assistant-page .message.bot {
  border-color: var(--border);
  background: #f7f8fb;
}

.assistant-page .message.user {
  border-color: var(--accent);
  background: var(--accent);
}

.assistant-page .chat-input {
  border-color: var(--border);
  border-radius: 14px;
  background: #f7f8fb;
}

.assistant-page .chat-input button,
.public-surface .btn-primary,
.public-surface .btn-primary-confirm {
  border-radius: 10px;
  background: var(--accent);
  box-shadow: var(--shadow-accent);
}

@media (min-width: 992px) {
  .app-shell .app-sidebar:hover,
  .app-shell .app-sidebar:focus-within,
  .app-shell .app-sidebar.is-pinned {
    width: 248px;
  }

  body.app-sidebar--pinned .main-content,
  body.app-sidebar--pinned .app-footer {
    margin-left: 248px;
  }
}

@media (max-width: 991px) {
  .app-shell .main-content {
    margin-left: 0;
    padding: 18px 20px 40px;
  }

  .app-shell .app-footer {
    margin-left: 0;
  }

  .app-topbar {
    display: none;
  }

  .app-shell .app-mobilebar {
    height: 64px;
    border-bottom-color: var(--border);
    background: rgba(255, 255, 255, .96);
    box-shadow: 0 4px 14px rgba(25, 28, 39, .04);
    backdrop-filter: none;
  }

  .app-shell .app-mobilebar__toggle {
    border-color: var(--border);
    border-radius: 10px;
    background: #ffffff;
    color: #565a66;
  }

  .app-shell .app-mobilebar__brand {
    color: var(--accent);
    font-weight: 800;
  }
}

@media (max-width: 767px) {
  .app-shell .main-content {
    padding: 16px 12px 32px;
  }

  .app-shell .tfd-module-page > .row:first-of-type {
    margin-bottom: 18px !important;
  }

  .app-shell .card-body,
  .app-shell .glass-card-body {
    padding: 16px !important;
  }

  .app-shell .btn:not(.btn-sm) {
    min-height: 44px;
  }

  .app-topbar__actions {
    display: none;
  }
}

/* ============================================================
   Global controls — search, select and choice primitives
   No page should redefine these visual states locally.
   ============================================================ */

body.app-shell .form-control,
body.app-shell .form-select,
body.app-shell select,
body.public-surface .form-control,
body.public-surface .form-select,
body.public-surface select {
  min-height: 42px;
  padding: 9px 12px;
  border: 1px solid #e1e4ea;
  border-radius: 10px;
  background-color: #ffffff;
  color: #333741;
  box-shadow: 0 1px 2px rgba(16, 24, 40, .02);
  font-family: var(--font-family);
  font-size: 13px;
  line-height: 1.35;
  transition: border-color 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

body.app-shell select,
body.public-surface select {
  -moz-appearance: none;
       appearance: none;
  -webkit-appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, #858995 50%), linear-gradient(135deg, #858995 50%, transparent 50%);
  background-position: calc(100% - 16px) 18px, calc(100% - 11px) 18px;
  background-repeat: no-repeat;
  background-size: 5px 5px, 5px 5px;
  padding-right: 34px;
}

body.app-shell select[multiple],
body.public-surface select[multiple],
body.app-shell select[size]:not([size='1']),
body.public-surface select[size]:not([size='1']) {
  background-image: none;
  padding-right: 12px;
}

body.app-shell .form-control:hover,
body.app-shell .form-select:hover,
body.app-shell select:hover,
body.public-surface .form-control:hover,
body.public-surface .form-select:hover,
body.public-surface select:hover {
  border-color: #cfd4dd;
}

body.app-shell .form-control:focus,
body.app-shell .form-select:focus,
body.app-shell select:focus,
body.public-surface .form-control:focus,
body.public-surface .form-select:focus,
body.public-surface select:focus {
  border-color: var(--accent) !important;
  outline: none;
  box-shadow: 0 0 0 3px rgba(99, 91, 255, .11) !important;
}

body.app-shell .form-control:disabled,
body.app-shell .form-select:disabled,
body.app-shell select:disabled,
body.public-surface .form-control:disabled,
body.public-surface .form-select:disabled,
body.public-surface select:disabled {
  border-color: #e7e9ef;
  background: #f5f6f8;
  color: #9a9ea7;
  cursor: not-allowed;
}

body.app-shell .input-group,
body.public-surface .input-group {
  align-items: stretch;
}

body.app-shell .input-group > .form-control,
body.app-shell .input-group > .form-select,
body.app-shell .input-group > select,
body.app-shell .input-group > .input-group-text,
body.app-shell .input-group > .btn,
body.public-surface .input-group > .form-control,
body.public-surface .input-group > .form-select,
body.public-surface .input-group > select,
body.public-surface .input-group > .input-group-text,
body.public-surface .input-group > .btn {
  border-radius: 0 !important;
}

body.app-shell .input-group > :first-child,
body.public-surface .input-group > :first-child {
  border-top-left-radius: 10px !important;
  border-bottom-left-radius: 10px !important;
}

body.app-shell .input-group > :last-child,
body.public-surface .input-group > :last-child {
  border-top-right-radius: 10px !important;
  border-bottom-right-radius: 10px !important;
}

body.app-shell .form-check,
body.public-surface .form-check {
  display: flex;
  min-height: 24px;
  align-items: center;
  gap: 8px;
  color: #565a66;
}

body.app-shell .form-check-input,
body.public-surface .form-check-input,
body.app-shell input[type='checkbox'],
body.public-surface input[type='checkbox'],
body.app-shell input[type='radio'],
body.public-surface input[type='radio'] {
  width: 18px;
  height: 18px;
  min-height: 18px;
  flex: 0 0 18px;
  margin: 0;
  padding: 0;
  border: 1.5px solid #c9ced8;
  background: #ffffff;
  color: var(--accent);
  box-shadow: none;
  accent-color: var(--accent);
}

body.app-shell .form-check-input[type='checkbox'],
body.public-surface .form-check-input[type='checkbox'],
body.app-shell input[type='checkbox'],
body.public-surface input[type='checkbox'] {
  border-radius: 5px;
}

body.app-shell .form-check-input[type='radio'],
body.public-surface .form-check-input[type='radio'],
body.app-shell input[type='radio'],
body.public-surface input[type='radio'] {
  border-radius: 50%;
}

body.app-shell .form-check-input:checked,
body.public-surface .form-check-input:checked,
body.app-shell input[type='checkbox']:checked,
body.public-surface input[type='checkbox']:checked,
body.app-shell input[type='radio']:checked,
body.public-surface input[type='radio']:checked {
  border-color: var(--accent);
  background-color: var(--accent);
}

body.app-shell .form-check-input:focus,
body.public-surface .form-check-input:focus,
body.app-shell input[type='checkbox']:focus,
body.public-surface input[type='checkbox']:focus,
body.app-shell input[type='radio']:focus,
body.public-surface input[type='radio']:focus {
  border-color: var(--accent);
  outline: none;
  box-shadow: 0 0 0 3px rgba(99, 91, 255, .11);
}

body.app-shell .form-check-label,
body.public-surface .form-check-label {
  color: #565a66;
  cursor: pointer;
  font-size: 13px;
  line-height: 1.35;
}

body.app-shell .form-check-inline,
body.public-surface .form-check-inline {
  display: inline-flex;
  margin-right: 16px;
}

body.app-shell .form-switch,
body.public-surface .form-switch {
  gap: 9px;
}

body.app-shell .form-switch .form-check-input,
body.public-surface .form-switch .form-check-input {
  width: 36px;
  height: 20px;
  min-height: 20px;
  flex-basis: 36px;
  border: 0;
  border-radius: 999px;
  background-color: #dfe2e8;
  background-image: radial-gradient(circle at 10px 10px, #ffffff 0 7px, transparent 7.5px);
  transition: background-color 160ms ease, background-position 160ms ease;
}

body.app-shell .form-switch .form-check-input:checked,
body.public-surface .form-switch .form-check-input:checked {
  background-color: var(--accent);
  background-position: 16px 0;
}

body.app-shell .patient-autocomplete-wrapper,
body.public-surface .patient-autocomplete-wrapper {
  position: relative;
  width: 100%;
  margin-bottom: 8px;
}

body.app-shell .patient-autocomplete-wrapper .form-control,
body.public-surface .patient-autocomplete-wrapper .form-control,
body.app-shell input[data-autocomplete='1'],
body.public-surface input[data-autocomplete='1'] {
  width: 100%;
}

body.app-shell .ui-autocomplete,
body.public-surface .ui-autocomplete {
  z-index: 2000 !important;
  max-height: 280px;
  overflow-x: hidden;
  overflow-y: auto;
  margin-top: 6px;
  padding: 6px;
  border: 1px solid var(--border) !important;
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 16px 40px rgba(25, 28, 39, .12);
  font-family: var(--font-family);
  font-size: 13px;
}

body.app-shell .ui-autocomplete .ui-menu-item,
body.public-surface .ui-autocomplete .ui-menu-item {
  margin: 0;
  padding: 0;
  list-style: none;
}

body.app-shell .ui-autocomplete .ui-menu-item-wrapper,
body.public-surface .ui-autocomplete .ui-menu-item-wrapper {
  min-height: 38px;
  padding: 8px 10px;
  border-radius: 9px;
  color: #434752;
  line-height: 1.35;
}

body.app-shell .ui-autocomplete .ui-menu-item-wrapper:hover,
body.app-shell .ui-autocomplete .ui-state-active,
body.public-surface .ui-autocomplete .ui-menu-item-wrapper:hover,
body.public-surface .ui-autocomplete .ui-state-active {
  margin: 0;
  border: 0;
  background: #f3f1ff;
  color: #5148d1;
}

body.app-shell .payment-destination-autocomplete,
body.public-surface .payment-destination-autocomplete {
  z-index: 2000 !important;
  max-height: 280px;
  overflow-x: hidden;
  overflow-y: auto;
  margin-top: 6px;
  padding: 6px;
  border: 1px solid var(--border) !important;
  border-radius: 14px !important;
  background: var(--card) !important;
  box-shadow: 0 16px 40px rgba(25, 28, 39, .12) !important;
}

body.app-shell .payment-destination-autocomplete .list-group-item,
body.public-surface .payment-destination-autocomplete .list-group-item {
  min-height: 38px;
  padding: 8px 10px;
  border: 0 !important;
  border-radius: 9px;
  background: transparent !important;
  box-shadow: none !important;
  color: var(--ink, #434752);
  font-size: 13px;
}

body.app-shell .payment-destination-autocomplete .list-group-item:hover,
body.public-surface .payment-destination-autocomplete .list-group-item:hover {
  background: var(--brand-soft, #f3f1ff) !important;
  color: var(--primary, #5148d1);
}

body.app-shell .dropdown-menu,
body.public-surface .dropdown-menu {
  min-width: 220px;
  padding: 6px;
  border: 1px solid var(--border) !important;
  border-radius: 14px;
  background: var(--card) !important;
  box-shadow: 0 16px 40px rgba(25, 28, 39, .12) !important;
}

body.app-shell .dropdown-item,
body.public-surface .dropdown-item {
  min-height: 38px;
  padding: 8px 10px;
  border-radius: 9px;
  color: #434752;
  font-size: 13px;
}

body.app-shell .dropdown-item:hover,
body.app-shell .dropdown-item:focus,
body.public-surface .dropdown-item:hover,
body.public-surface .dropdown-item:focus {
  background: #f3f1ff;
  color: #5148d1;
}

@media (max-width: 767px) {
  body.app-shell .ui-autocomplete,
  body.public-surface .ui-autocomplete,
  body.app-shell .payment-destination-autocomplete,
  body.public-surface .payment-destination-autocomplete {
    max-height: 220px;
  }
}

/* ============================================================
   Fixed navigation clearance — keep the last content readable
   ============================================================ */

body.app-shell .main-content {
  padding-bottom: 64px;
}

body.app-shell .app-footer {
  position: relative;
  z-index: 1;
  clear: both;
  padding-bottom: calc(20px + env(safe-area-inset-bottom));
}

@media (max-width: 991px) {
  body.app-shell .main-content {
    padding-bottom: calc(72px + env(safe-area-inset-bottom));
  }

  body.app-shell .app-footer {
    margin-top: 24px;
  }
}

@media (max-width: 767px) {
  /* The mobile action bar is fixed over the viewport. Keep the final
     form fields and confirmation text above it, including safe areas. */

  .public-registration-page {
    scroll-padding-top: 86px;
  }

  .public-registration-page .page-shell {
    padding-bottom: calc(12rem + env(safe-area-inset-bottom));
  }

  .public-registration-page [id] {
    scroll-margin-top: 86px;
  }

  .public-registration-page .mobile-actions {
    padding-bottom: calc(0.8rem + env(safe-area-inset-bottom));
  }
}

/* ============================================================
   Dashboard — Analytics surface from the Samsystem master spec
   ============================================================ */

body.app-shell .tfd-module-page--dashboard {
  --dashboard-surface-subtle: #fafbfc;
  --dashboard-border: #e7e9ef;
  --dashboard-muted: #737783;
}

body.app-shell .tfd-module-page--dashboard > .row {
  margin-bottom: 20px !important;
}

body.app-shell .tfd-module-page--dashboard > .row:last-child {
  margin-bottom: 0 !important;
}

body.app-shell .tfd-module-page--dashboard .dashboard-page-header {
  min-height: 48px;
}

body.app-shell .tfd-module-page--dashboard .dashboard-page-header .tfd-heading {
  margin-bottom: 6px !important;
  font-size: clamp(1.6rem, 2.2vw, 2rem) !important;
}

body.app-shell .tfd-module-page--dashboard .dashboard-updated-at {
  color: var(--dashboard-muted) !important;
  font-size: 11px !important;
}

body.app-shell .tfd-module-page--dashboard .dashboard-overview-grid {
  row-gap: 12px;
}

body.app-shell .tfd-module-page--dashboard .dashboard-overview-grid > [class*='col-'] {
  display: flex;
}

body.app-shell .tfd-module-page--dashboard .dashboard-stat-card {
  width: 100%;
  min-height: 108px;
  border: 1px solid var(--dashboard-border) !important;
  border-radius: 14px !important;
  background: var(--card) !important;
  box-shadow: 0 10px 30px rgba(25, 28, 39, .06) !important;
}

body.app-shell .tfd-module-page--dashboard .dashboard-stat-card .card-body {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  grid-template-areas:
    'icon label'
    'icon value'
    'icon hint';
  -moz-column-gap: 12px;
       column-gap: 12px;
  align-content: center;
  text-align: left;
}

body.app-shell .tfd-module-page--dashboard .dashboard-stat-card .tfd-icon-badge {
  grid-area: icon;
  width: 42px;
  height: 42px;
  margin: 0 !important;
  border-radius: 12px;
  font-size: 15px;
}

body.app-shell .tfd-module-page--dashboard .dashboard-stat-card h4 {
  grid-area: value;
  margin: 0 !important;
  color: var(--foreground) !important;
  font-size: 24px !important;
  font-weight: 700;
  letter-spacing: -.04em;
  line-height: 1.1;
}

body.app-shell .tfd-module-page--dashboard .dashboard-stat-card p {
  grid-area: label;
  margin: 0 0 4px !important;
  color: var(--dashboard-muted) !important;
  font-size: 11px !important;
  font-weight: 600 !important;
  line-height: 1.25;
}

body.app-shell .tfd-module-page--dashboard .dashboard-stat-card small {
  grid-area: hint;
  color: #9a9ea7 !important;
  font-size: 10px !important;
  line-height: 1.25;
}

body.app-shell .tfd-module-page--dashboard .dashboard-status-card,
body.app-shell .tfd-module-page--dashboard .dashboard-chart-row .card,
body.app-shell .tfd-module-page--dashboard .dashboard-operations-row .card,
body.app-shell .tfd-module-page--dashboard .dashboard-timeline-row .card,
body.app-shell .tfd-module-page--dashboard .dashboard-activity-row .card {
  border: 1px solid var(--dashboard-border) !important;
  border-radius: 14px !important;
  background: var(--card) !important;
  box-shadow: 0 10px 30px rgba(25, 28, 39, .06) !important;
}

body.app-shell .tfd-module-page--dashboard .dashboard-status-card > .card-header,
body.app-shell .tfd-module-page--dashboard .dashboard-chart-row .card-header,
body.app-shell .tfd-module-page--dashboard .dashboard-operations-row .card-header,
body.app-shell .tfd-module-page--dashboard .dashboard-timeline-row .card-header,
body.app-shell .tfd-module-page--dashboard .dashboard-activity-row .card-header {
  min-height: 52px;
  padding: 14px 16px !important;
  background: var(--dashboard-surface-subtle) !important;
  border-bottom: 1px solid var(--dashboard-border) !important;
  color: var(--foreground) !important;
}

body.app-shell .tfd-module-page--dashboard .dashboard-status-card > .card-body {
  padding: 14px !important;
}

body.app-shell .tfd-module-page--dashboard .dashboard-status-panel {
  min-height: 314px;
  padding: 14px !important;
  border: 1px solid var(--dashboard-border) !important;
  border-radius: 14px !important;
  background: var(--dashboard-surface-subtle) !important;
}

body.app-shell .tfd-module-page--dashboard .dashboard-status-panel h6 {
  color: var(--foreground) !important;
  font-size: 12px;
  font-weight: 700;
}

body.app-shell .tfd-module-page--dashboard .dashboard-chart {
  position: relative;
  overflow: hidden;
}

body.app-shell .tfd-module-page--dashboard .dashboard-chart--status {
  height: 220px;
}

body.app-shell .tfd-module-page--dashboard .dashboard-chart--trend {
  height: 260px;
}

body.app-shell .tfd-module-page--dashboard .dashboard-chart canvas {
  max-height: none !important;
}

body.app-shell .tfd-module-page--dashboard .dashboard-chart-row > [class*='col-'] {
  display: flex;
}

body.app-shell .tfd-module-page--dashboard .dashboard-chart-row > [class*='col-'] > .card,
body.app-shell .tfd-module-page--dashboard .dashboard-operations-row > [class*='col-'] > .card,
body.app-shell .tfd-module-page--dashboard .dashboard-activity-row > [class*='col-'] > .card {
  width: 100%;
}

body.app-shell .tfd-module-page--dashboard .dashboard-chart-row > [class*='col-']:first-child {
  flex: 1.8 1 0;
  width: auto;
}

body.app-shell .tfd-module-page--dashboard .dashboard-chart-row > [class*='col-']:last-child {
  flex: 1 1 0;
  width: auto;
}

body.app-shell .tfd-module-page--dashboard .dashboard-operations-row > [class*='col-']:first-child,
body.app-shell .tfd-module-page--dashboard .dashboard-operations-row > [class*='col-']:last-child {
  flex: 1 1 0;
  width: auto;
}

body.app-shell .tfd-module-page--dashboard .status-legend {
  gap: 6px !important;
}

body.app-shell .tfd-module-page--dashboard .status-legend .badge {
  padding: 6px 8px;
  border: 1px solid rgba(0, 0, 0, .05);
  border-radius: 8px;
  font-size: 10px;
  font-weight: 600;
}

body.app-shell .tfd-module-page--dashboard .dashboard-quick-actions .btn {
  min-height: 42px;
  border-radius: 10px;
  box-shadow: none;
  font-size: 12px;
}

body.app-shell .tfd-module-page--dashboard .dashboard-quick-actions .btn:hover {
  transform: translateY(-1px);
}

body.app-shell .tfd-module-page--dashboard .specialty-row {
  min-height: 42px;
}

body.app-shell .tfd-module-page--dashboard .slim-progress {
  height: 6px;
  border-radius: 999px;
}

body.app-shell .tfd-module-page--dashboard .timeline-item {
  padding-bottom: 4px;
}

body.app-shell .tfd-module-page--dashboard .timeline-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 34px;
}

body.app-shell .tfd-module-page--dashboard .dashboard-empty-state {
  min-height: 170px;
  border-radius: 12px;
  background: #fafbfc;
}

@media (max-width: 1199px) {
  body.app-shell .tfd-module-page--dashboard .dashboard-chart-row > [class*='col-']:first-child,
  body.app-shell .tfd-module-page--dashboard .dashboard-chart-row > [class*='col-']:last-child,
  body.app-shell .tfd-module-page--dashboard .dashboard-operations-row > [class*='col-']:first-child,
  body.app-shell .tfd-module-page--dashboard .dashboard-operations-row > [class*='col-']:last-child {
    flex: 0 0 auto;
    width: 100%;
  }
}

@media (max-width: 767px) {
  body.app-shell .tfd-module-page--dashboard .dashboard-stat-card {
    min-height: 96px;
  }

  body.app-shell .tfd-module-page--dashboard .dashboard-stat-card .card-body {
    padding: 14px !important;
  }

  body.app-shell .tfd-module-page--dashboard .dashboard-status-panel {
    min-height: 0;
  }

  body.app-shell .tfd-module-page--dashboard .dashboard-chart--status {
    height: 190px;
  }

  body.app-shell .tfd-module-page--dashboard .dashboard-chart--trend {
    height: 220px;
  }
}

/* Login final layer — one visual system, one background image, no legacy overlap. */

body.public-surface.login-page {
  --login-ink: #10233d;
  --login-muted: #63738a;
  --login-border: #d7e0e9;
  --login-accent: #13859b;
  --login-accent-dark: #0c7187;
  display: block;
  min-height: 100svh;
  overflow-x: hidden;
  background: #f7fafc !important;
  color: var(--login-ink);
}

body.public-surface.login-page .login-wrapper {
  display: grid;
  grid-template-columns: minmax(420px, 44%) minmax(0, 56%);
  min-height: 100svh;
  width: 100%;
  overflow: hidden;
  background: #f7fafc;
}

body.public-surface.login-page .login-form-container {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  grid-column: 1;
  align-self: stretch;
  justify-self: stretch;
  width: 100%;
  max-width: none;
  min-width: 0;
  margin: 0;
  padding: 56px clamp(32px, 5vw, 88px) 88px !important;
  border: 0;
  border-radius: 0;
  background: #f7fafc;
  box-shadow: none;
  box-sizing: border-box;
}

body.public-surface.login-page .login-content {
  width: min(100%, 420px);
  margin: 0 auto;
}

body.public-surface.login-page .login-logo {
  display: flex;
  justify-content: flex-start;
  width: 100%;
  margin: 0 0 54px !important;
}

body.public-surface.login-page .login-logo img {
  display: block;
  width: min(208px, 70%);
  height: auto;
  opacity: 1;
  filter: none;
}

body.public-surface.login-page .login-heading {
  margin-bottom: 36px;
}

body.public-surface.login-page .login-heading h1 {
  margin: 0 0 12px;
  color: var(--login-ink);
  font-size: clamp(28px, 2.6vw, 36px);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.1;
}

body.public-surface.login-page .login-heading p {
  max-width: 360px;
  margin: 0;
  color: var(--login-muted);
  font-size: 15px;
  line-height: 1.65;
}

body.public-surface.login-page .login-form-container,
body.public-surface.login-page .login-form-container * {
  box-sizing: border-box;
}

body.public-surface.login-page .form-group {
  margin: 0 0 22px !important;
}

body.public-surface.login-page .form-group label {
  display: block;
  margin: 0 0 9px !important;
  color: var(--login-ink);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.3;
}

body.public-surface.login-page .input-shell {
  position: relative;
}

body.public-surface.login-page .input-icon {
  position: absolute;
  top: 50%;
  left: 17px;
  z-index: 1;
  display: inline-flex;
  width: 20px;
  height: 20px;
  color: #708198;
  pointer-events: none;
  transform: translateY(-50%);
}

body.public-surface.login-page .input-icon svg,
body.public-surface.login-page .password-toggle svg {
  width: 100%;
  height: 100%;
}

body.public-surface.login-page .login-form .form-control {
  width: 100%;
  min-height: 54px;
  margin: 0;
  padding: 14px 18px 14px 50px;
  border: 1px solid var(--login-border);
  border-radius: 11px;
  background: #ffffff;
  color: var(--login-ink);
  box-shadow: 0 2px 4px rgba(16, 35, 61, .025);
  font-family: var(--font-family);
  font-size: 14px;
  line-height: 1.4;
  outline: none;
  transition: border-color .2s ease, box-shadow .2s ease;
}

body.public-surface.login-page .login-form .form-control::-moz-placeholder {
  color: #8a99ad;
  opacity: 1;
}

body.public-surface.login-page .login-form .form-control::placeholder {
  color: #8a99ad;
  opacity: 1;
}

body.public-surface.login-page .login-form .form-control:hover {
  border-color: #b7c7d6;
}

body.public-surface.login-page .login-form .form-control:focus {
  border-color: var(--login-accent);
  box-shadow: 0 0 0 4px rgba(19, 133, 155, .12);
}

body.public-surface.login-page .password-toggle {
  position: absolute;
  top: 50%;
  right: 16px;
  display: inline-flex;
  width: 20px;
  height: 20px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #708198;
  cursor: pointer;
  transform: translateY(-50%);
}

body.public-surface.login-page .password-toggle:hover,
body.public-surface.login-page .password-toggle:focus-visible {
  color: var(--login-accent);
}

body.public-surface.login-page .password-toggle:focus-visible,
body.public-surface.login-page .forgot-password button:focus-visible,
body.public-surface.login-page .btn-login:focus-visible {
  outline: 3px solid rgba(19, 133, 155, .24);
  outline-offset: 3px;
}

body.public-surface.login-page .icon-eye-off {
  display: none;
}

body.public-surface.login-page .password-toggle.is-visible .icon-eye {
  display: none;
}

body.public-surface.login-page .password-toggle.is-visible .icon-eye-off {
  display: block;
}

body.public-surface.login-page .btn-login {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 54px;
  margin: 8px 0 0 !important;
  padding: 0 18px;
  border: 1px solid var(--login-accent);
  border-radius: 11px;
  background: var(--login-accent);
  box-shadow: 0 10px 22px rgba(19, 133, 155, .18);
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: background .2s ease, box-shadow .2s ease, transform .2s ease;
}

body.public-surface.login-page .btn-login:hover {
  background: var(--login-accent-dark);
  box-shadow: 0 12px 26px rgba(19, 133, 155, .24);
  transform: translateY(-1px);
}

body.public-surface.login-page .btn-login:active {
  box-shadow: 0 5px 12px rgba(19, 133, 155, .18);
  transform: translateY(0);
}

body.public-surface.login-page .btn-login:disabled {
  cursor: wait;
  opacity: .82;
}

body.public-surface.login-page .btn-spinner {
  display: none;
  width: 17px;
  height: 17px;
  margin-left: 9px;
  border: 2px solid rgba(255, 255, 255, .38);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: login-spin .8s linear infinite;
}

body.public-surface.login-page .btn-loading .btn-spinner {
  display: inline-block;
}

body.public-surface.login-page .forgot-password {
  margin: 22px 0 0 !important;
  text-align: center;
}

body.public-surface.login-page .forgot-password button {
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--login-accent-dark);
  font-family: var(--font-family);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

body.public-surface.login-page .forgot-password button:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

body.public-surface.login-page .alert {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 22px;
  padding: 12px 14px;
  border: 1px solid transparent;
  border-radius: 10px;
  font-size: 13px;
  line-height: 1.4;
}

body.public-surface.login-page .alert-danger {
  border-color: #fecaca;
  background: #fff1f2;
  color: #b42318;
}

body.public-surface.login-page .alert-success {
  border-color: #b8e4dc;
  background: #ecfdf8;
  color: #087f70;
}

body.public-surface.login-page .alert-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 19px;
  height: 19px;
  flex: 0 0 19px;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-size: 12px;
  font-weight: 800;
}

body.public-surface.login-page .btn-close {
  margin-left: auto;
  padding: 0 0 0 8px;
  border: 0;
  background: transparent;
  color: currentColor;
  font-size: 19px;
  line-height: 1;
  cursor: pointer;
}

body.public-surface.login-page .login-footer {
  position: absolute;
  right: clamp(32px, 5vw, 88px);
  bottom: 34px;
  left: clamp(32px, 5vw, 88px);
  color: #8a99ad;
  font-size: 11px;
  text-align: center;
}

body.public-surface.login-page .login-footer span {
  margin: 0 5px;
  color: #b7c5d3;
}

body.public-surface.login-page .login-visual {
  position: relative;
  min-width: 0;
  overflow: hidden;
  background-color: #0b1f33;
  background-image: linear-gradient(90deg, #0b1f33 0%, rgba(11, 31, 51, .76) 8%, rgba(11, 31, 51, 0) 32%), var(--login-image);
  background-position: center, center right;
  background-repeat: no-repeat;
  background-size: 100% 100%, cover;
}

@keyframes login-spin {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 860px) {
  body.public-surface.login-page .login-wrapper {
    display: block;
    min-height: 100svh;
    background: #f7fafc;
  }

  body.public-surface.login-page .login-form-container {
    min-height: 100svh;
    padding: 40px 24px 80px !important;
  }

  body.public-surface.login-page .login-content {
    width: min(100%, 420px);
  }

  body.public-surface.login-page .login-logo {
    margin-bottom: 44px !important;
  }

  body.public-surface.login-page .login-visual {
    display: none;
  }

  body.public-surface.login-page .login-footer {
    right: 24px;
    bottom: 28px;
    left: 24px;
  }
}

@media (max-width: 480px) {
  body.public-surface.login-page .login-form-container {
    padding: 32px 20px 76px !important;
  }

  body.public-surface.login-page .login-logo img {
    width: 190px;
  }

  body.public-surface.login-page .login-heading {
    margin-bottom: 30px;
  }

  body.public-surface.login-page .login-heading h1 {
    font-size: 30px;
  }

  body.public-surface.login-page .login-heading p {
    font-size: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.public-surface.login-page .animate-fade-in,
  body.public-surface.login-page .btn-spinner {
    animation: none;
  }

  body.public-surface.login-page .animate-fade-in {
    animation: none;
    opacity: 1;
  }
}

/* ============================================================
   Healthcare OS migration layer
   One restrained clinical palette for every application surface.
   ============================================================ */

body.app-shell,
body.public-surface {
  --accent: #0e7490;
  --accent-secondary: #14b8a6;
  --primary: #0e7490;
  --primary-dark: #155e75;
  --public-primary: #0e7490;
  --public-primary-dark: #155e75;
  --public-primary-soft: rgba(14, 116, 144, .1);
  --public-border: #dce4eb;
  --public-title: #142333;
  --public-text: #425466;
  --public-muted: #718096;
  --ring: #0e7490;
  --brand-soft: #e6f4f7;
  --line: #dce4eb;
  --canvas: #f5f7fa;
  --ink: #142333;
  --body-text: #425466;
  --muted-text: #718096;
  --shadow-soft: 0 8px 24px rgba(20, 35, 51, .055);
  --shadow-medium: 0 14px 34px rgba(20, 35, 51, .085);
  background: var(--canvas) !important;
  color: var(--body-text);
}

body.app-shell .app-sidebar {
  border-right-color: var(--line);
  box-shadow: 0 2px 12px rgba(20, 35, 51, .035);
}

body.app-shell .app-sidebar__brand-copy,
body.app-shell .app-mobilebar__brand,
body.app-shell .app-topbar__profile:hover,
body.app-shell .app-sidebar__link.is-active,
body.app-shell .app-sidebar__link.is-active .app-sidebar__icon,
body.app-shell .app-sidebar__link.is-active i,
body.app-shell .app-topbar__avatar,
body.app-shell .app-sidebar__avatar,
body.app-shell .tfd-heading i,
body.app-shell h1.h4 i,
body.app-shell .card-header i,
body.app-shell .glass-card-header i {
  color: var(--accent) !important;
}

body.app-shell .app-sidebar__link.is-active {
  border-color: #b9dce3 !important;
  background: var(--brand-soft) !important;
  color: var(--primary-dark) !important;
}

body.app-shell .app-sidebar__avatar,
body.app-shell .app-topbar__avatar {
  background: var(--brand-soft);
}

body.app-shell .btn-primary,
body.app-shell .btn-info,
body.app-shell .btn-gradient,
body.public-surface .btn-primary,
body.public-surface .btn-primary-confirm {
  border-color: var(--accent) !important;
  background: var(--accent) !important;
  color: #ffffff !important;
  box-shadow: 0 8px 18px rgba(14, 116, 144, .2) !important;
}

body.app-shell .btn-primary:hover,
body.app-shell .btn-info:hover,
body.app-shell .btn-gradient:hover,
body.public-surface .btn-primary:hover,
body.public-surface .btn-primary-confirm:hover {
  border-color: var(--primary-dark) !important;
  background: var(--primary-dark) !important;
  color: #ffffff !important;
}

body.app-shell .btn-outline-primary,
body.public-surface .btn-outline-primary {
  border-color: var(--border) !important;
  background: var(--card) !important;
  color: var(--primary) !important;
}

body.app-shell .btn-outline-primary:hover,
body.public-surface .btn-outline-primary:hover {
  border-color: var(--primary) !important;
  background: var(--brand-soft) !important;
  color: var(--primary-dark) !important;
  box-shadow: none !important;
}

body.app-shell .form-control:focus,
body.app-shell .form-select:focus,
body.app-shell textarea:focus,
body.public-surface .form-control:focus,
body.public-surface .form-select:focus,
body.public-surface textarea:focus {
  border-color: var(--accent) !important;
  box-shadow: 0 0 0 3px rgba(14, 116, 144, .13) !important;
}

body.app-shell .tfd-icon-badge,
body.app-shell .tfd-icon-badge.is-primary,
body.app-shell .tfd-icon-badge.is-info {
  border-color: #b9dce3;
  background: var(--brand-soft);
  color: var(--accent);
}

body.app-shell .app-shell .card,
body.app-shell .card,
body.app-shell .glass-card,
body.app-shell .tfd-section-card,
body.app-shell .dashboard-stat-card,
body.app-shell .modal-content,
body.app-shell .dropdown-menu,
body.app-shell .table-responsive,
body.app-shell .list-group-item {
  border-color: var(--line) !important;
  box-shadow: var(--shadow-soft) !important;
}

body.app-shell .card-header,
body.app-shell .glass-card-header {
  background: var(--card) !important;
  border-bottom-color: var(--border) !important;
}

body.app-shell .card-footer {
  background: var(--card) !important;
  border-top-color: var(--border) !important;
}

body.app-shell .table thead th,
body.app-shell .table th {
  background: var(--card) !important;
  border-bottom-color: var(--border) !important;
}

body.app-shell .table tbody tr:hover {
  background: var(--card-hover, rgba(0, 0, 0, .03)) !important;
}

body.app-shell .nav-tabs .nav-link:hover,
body.app-shell .nav-tabs .nav-link.active {
  border-bottom-color: var(--accent) !important;
  color: var(--accent) !important;
}

body.app-shell .pagination .page-link:hover,
body.app-shell .pagination .active .page-link {
  border-color: var(--accent) !important;
  background: var(--accent) !important;
}

body.app-shell .tfd-module-page--dashboard {
  --dashboard-surface-subtle: var(--bg-subtle, #f8fbfc);
  --dashboard-border: var(--border);
  --dashboard-muted: var(--muted-text);
}

body.app-shell .tfd-module-page--dashboard .dashboard-status-panel,
body.app-shell .tfd-module-page--dashboard .dashboard-empty-state {
  border-color: var(--border) !important;
  background: var(--dashboard-surface-subtle) !important;
}

body.public-surface .btn {
  min-height: 42px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 700;
}

body.public-surface.public-registration-page,
body.public-surface.public-confirmation-page,
body.public-surface.driver-portal-page {
  --primary: #0e7490;
  --primary-dark: #155e75;
  --primary-soft: #e6f4f7;
  --accent: #0e7490;
  --accent-2: #14b8a6;
  --success: #198754;
  --danger: #c2414b;
  --border: #dce4eb;
  --muted: #718096;
  --title: #142333;
  --text: #425466;
  --surface-muted: #f1f6f7;
}

body.public-surface.public-registration-page .sticky-header,
body.public-surface.driver-portal-page .mobile-quickbar {
  background: rgba(255, 255, 255, .96);
  border-color: var(--line);
  box-shadow: 0 8px 22px rgba(20, 35, 51, .06);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

body.public-surface.public-registration-page .panel,
body.public-surface.public-registration-page .section-card,
body.public-surface.public-registration-page .wizard-step,
body.public-surface.driver-portal-page .panel,
body.public-surface.driver-portal-page .search-card,
body.public-surface.driver-portal-page .trip-card,
body.public-surface.driver-portal-page .hero-card,
body.public-surface.public-confirmation-page .confirm-card {
  border-color: var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow-soft);
}

body.public-surface.public-registration-page .hero-summary,
body.public-surface.public-registration-page .section-head,
body.public-surface.public-registration-page .hero-panel-inner,
body.public-surface.driver-portal-page .hero-top,
body.public-surface.driver-portal-page .trip-head,
body.public-surface.driver-portal-page .receipt-box {
  background: #ffffff;
  background-image: none;
}

body.public-surface.public-registration-page .hero-summary-progress .progress-bar,
body.public-surface.public-registration-page .progress-bar,
body.public-surface.public-registration-page .btn-primary-soft,
body.public-surface.driver-portal-page .btn-start,
body.public-surface.public-confirmation-page .confirm-header,
body.public-surface.public-confirmation-page .btn-primary-confirm {
  background: var(--primary);
  background-image: none;
}

body.public-surface.public-registration-page .wizard-step.is-active,
body.public-surface.public-registration-page .section-card.is-unlocked {
  border-color: rgba(14, 116, 144, .38);
  box-shadow: 0 0 0 3px rgba(14, 116, 144, .09);
}

body.public-surface.public-registration-page .wizard-step-index,
body.public-surface.public-registration-page .meta-chip,
body.public-surface.public-registration-page .section-badge,
body.public-surface.driver-portal-page .info-icon {
  background: var(--primary-soft);
  color: var(--primary);
}

body.public-surface.public-registration-page .form-control,
body.public-surface.public-registration-page .form-select,
body.public-surface.driver-portal-page .form-control,
body.public-surface.driver-portal-page .form-select,
body.public-surface.public-confirmation-page .form-control,
body.public-surface.public-confirmation-page .form-select {
  min-height: 42px;
  border-color: var(--line);
  border-radius: 10px;
  box-shadow: none;
  font-size: 13px;
}

body.public-surface.public-registration-page .btn-primary-soft:hover,
body.public-surface.driver-portal-page .btn-start:hover,
body.public-surface.public-confirmation-page .btn-primary-confirm:hover {
  background: var(--primary-dark);
}

body.public-surface.driver-portal-page .btn-end,
body.public-surface.public-confirmation-page .btn-danger-confirm {
  background: var(--danger);
  background-image: none;
}

body.public-surface.driver-portal-page .trip-marker-start,
body.public-surface.driver-portal-page .trip-marker-stop,
body.public-surface.driver-portal-page .trip-marker-end {
  background: var(--primary);
  background-image: none;
}

body.public-surface.public-confirmation-page {
  min-height: 100svh;
  background: var(--canvas);
}

body.public-surface.public-confirmation-page .confirm-header {
  padding: 18px 20px;
}

body.public-surface.public-confirmation-page .confirm-header h1 {
  font-size: clamp(1.25rem, 2vw, 1.75rem);
}

body.public-surface.public-confirmation-page .help-box {
  background: #f8fbfc;
  border-color: var(--line);
}

body.public-surface .form-label {
  color: var(--ink);
  font-size: 12px;
  font-weight: 600;
}

body.public-surface .form-control,
body.public-surface .form-select,
body.public-surface textarea {
  border-color: var(--line);
  border-radius: 10px;
  font-size: 13px;
}

/* Shared controls: search, select, autocomplete and choice fields. */

body.app-shell input[type="search"],
body.app-shell .form-control,
body.app-shell .form-select,
body.app-shell .form-input,
body.app-shell .form-multiselect,
body.app-shell .form-textarea,
body.app-shell select,
body.public-surface input[type="search"],
body.public-surface .form-control,
body.public-surface .form-select,
body.public-surface .form-input,
body.public-surface .form-multiselect,
body.public-surface .form-textarea,
body.public-surface select {
  min-height: 42px;
  border: 1px solid var(--line) !important;
  border-radius: 10px !important;
  background-color: var(--card) !important;
  box-shadow: none !important;
  color: var(--ink);
  font-size: 13px;
}

body.app-shell input[type="checkbox"],
body.app-shell input[type="radio"],
body.public-surface input[type="checkbox"],
body.public-surface input[type="radio"] {
  accent-color: var(--accent);
  border-color: var(--line) !important;
  color: var(--accent) !important;
}

body.app-shell input[type="checkbox"]:checked,
body.app-shell input[type="radio"]:checked,
body.public-surface input[type="checkbox"]:checked,
body.public-surface input[type="radio"]:checked {
  border-color: var(--accent) !important;
  background-color: var(--accent) !important;
}

body.app-shell .ui-autocomplete,
body.public-surface .ui-autocomplete,
body.app-shell .payment-destination-autocomplete,
body.public-surface .payment-destination-autocomplete {
  border-color: var(--line) !important;
  border-radius: 12px !important;
  background: var(--card) !important;
  box-shadow: 0 16px 36px rgba(20, 35, 51, .12) !important;
}

body.app-shell .ui-menu-item-wrapper:hover,
body.app-shell .ui-menu-item-wrapper.ui-state-active,
body.public-surface .ui-menu-item-wrapper:hover,
body.public-surface .ui-menu-item-wrapper.ui-state-active,
body.app-shell .payment-destination-autocomplete .list-group-item:hover,
body.public-surface .payment-destination-autocomplete .list-group-item:hover,
body.app-shell .dropdown-item:hover,
body.app-shell .dropdown-item:focus,
body.public-surface .dropdown-item:hover,
body.public-surface .dropdown-item:focus {
  border-color: transparent !important;
  background: var(--brand-soft) !important;
  color: var(--primary-dark) !important;
}

body.app-shell .btn-success,
body.public-surface .btn-success {
  border-color: #198754 !important;
  background: #198754 !important;
  background-image: none !important;
}

body.app-shell .btn-warning,
body.public-surface .btn-warning {
  border-color: #b7791f !important;
  background: #b7791f !important;
  background-image: none !important;
  color: #ffffff !important;
}

body.app-shell .btn-danger,
body.public-surface .btn-danger {
  border-color: var(--danger) !important;
  background: var(--danger) !important;
  background-image: none !important;
}

@media (max-width: 991px) {
  body.app-shell .main-content {
    padding-right: 20px;
    padding-left: 20px;
  }

  body.app-shell .app-topbar {
    margin-bottom: 18px;
  }
}

@media (max-width: 767px) {
  body.app-shell .main-content {
    padding-right: 14px;
    padding-bottom: calc(96px + env(safe-area-inset-bottom)) !important;
    padding-left: 14px;
  }

  body.app-shell .app-topbar__status {
    display: none;
  }

  body.app-shell .card-body,
  body.app-shell .glass-card-body {
    padding: 14px !important;
  }

  body.app-shell .app-footer {
    margin-left: 0;
    padding-bottom: calc(56px + env(safe-area-inset-bottom)) !important;
  }

  body.public-surface.driver-portal-page .portal-shell {
    padding-bottom: calc(11rem + env(safe-area-inset-bottom));
  }
}

/* Final external-surface cleanup: no dark AI-template or glass treatment. */

body.public-surface.assistant-page {
  min-height: 100svh;
  color: var(--public-text);
  background: var(--canvas) !important;
}

body.public-surface.assistant-page .assistant-hero,
body.public-surface.assistant-page .assistant-wrapper {
  color: var(--public-text);
}

body.public-surface.assistant-page .legend-card,
body.public-surface.assistant-page .chat-card {
  border-color: var(--line) !important;
  background: var(--card) !important;
  box-shadow: var(--shadow-soft) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

body.public-surface.assistant-page .chat-header {
  color: var(--ink);
  background: var(--card) !important;
  background-image: none !important;
}

body.public-surface.assistant-page .chat-header h2,
body.public-surface.assistant-page .assistant-hero h1 {
  color: var(--ink) !important;
}

body.public-surface.assistant-page .chat-header p,
body.public-surface.assistant-page .assistant-hero p,
body.public-surface.assistant-page .legend-card small,
body.public-surface.assistant-page .suggestions-label {
  color: var(--muted-text) !important;
}

body.public-surface.assistant-page .message.bot {
  border-color: var(--line);
  background: var(--card-hover, #f8fbfc);
}

body.public-surface.assistant-page .message.user {
  border-color: var(--accent);
  background: var(--accent);
}

body.public-surface.assistant-page .chat-input {
  border-color: var(--line);
  background: var(--card);
}

body.public-surface.monitoring-page .monitoring-fullscreen {
  min-height: 100svh;
  height: auto;
  padding: 16px;
  overflow: visible;
  background: var(--canvas) !important;
}

body.public-surface.monitoring-page .monitoring-fullscreen::before,
body.public-surface.monitoring-page .monitoring-fullscreen::after {
  display: none !important;
}

body.public-surface.monitoring-page .monitoring-header,
body.public-surface.monitoring-page .monitoring-card,
body.public-surface.monitoring-page .monitoring-progress-section,
body.public-surface.monitoring-page .monitoring-executantes-section,
body.public-surface.monitoring-page .monitoring-trip-card,
body.public-surface.monitoring-page .monitoring-last-update {
  border-color: var(--line) !important;
  border-radius: 14px;
  background: var(--card) !important;
  box-shadow: var(--shadow-soft) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

body.public-surface.monitoring-page .monitoring-header__eyebrow {
  border: 1px solid #b9dce3;
  color: var(--accent);
  background: var(--brand-soft);
}

body.public-surface.monitoring-page .monitoring-card::before {
  background: var(--accent) !important;
}

/* Dashboard command-center modules. */

body.app-shell .tfd-module-page--dashboard .dashboard-focus-card,
body.app-shell .tfd-module-page--dashboard .dashboard-next-card {
  border-color: var(--border) !important;
  background: var(--card) !important;
  box-shadow: var(--shadow-soft) !important;
}

body.app-shell .tfd-module-page--dashboard .dashboard-section-lead {
  color: var(--muted-text);
  font-size: 11px;
  line-height: 1.4;
}

body.app-shell .tfd-module-page--dashboard .dashboard-live-label {
  display: inline-flex;
  align-items: center;
  padding: 5px 9px;
  border: 1px solid #b9dce3;
  border-radius: 999px;
  color: #155e75;
  background: var(--brand-soft);
  font-size: 10px;
  font-weight: 700;
  white-space: nowrap;
}

body.app-shell .tfd-module-page--dashboard .dashboard-live-label i {
  color: #198754;
  font-size: 7px;
}

body.app-shell .tfd-module-page--dashboard .dashboard-focus-list,
body.app-shell .tfd-module-page--dashboard .dashboard-next-list {
  display: grid;
  gap: 8px;
}

body.app-shell .tfd-module-page--dashboard .dashboard-focus-item {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto 16px;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--ink);
  background: #fbfcfd;
  text-decoration: none;
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

body.app-shell .tfd-module-page--dashboard .dashboard-focus-item:hover {
  border-color: #a9d4dc;
  background: #f3fafb;
  color: var(--ink);
  transform: translateY(-1px);
}

body.app-shell .tfd-module-page--dashboard .dashboard-focus-icon {
  display: inline-flex;
  width: 34px;
  height: 34px;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  color: var(--accent);
  background: var(--brand-soft);
}

body.app-shell .tfd-module-page--dashboard .dashboard-focus-item.is-warning .dashboard-focus-icon {
  color: #8d5b1f;
  background: #fff8ed;
}

body.app-shell .tfd-module-page--dashboard .dashboard-focus-item.is-danger .dashboard-focus-icon {
  color: #9f3f3f;
  background: #fff5f5;
}

body.app-shell .tfd-module-page--dashboard .dashboard-focus-copy,
body.app-shell .tfd-module-page--dashboard .dashboard-next-copy {
  display: grid;
  min-width: 0;
  gap: 2px;
}

body.app-shell .tfd-module-page--dashboard .dashboard-focus-copy strong,
body.app-shell .tfd-module-page--dashboard .dashboard-next-copy strong {
  overflow: hidden;
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.app-shell .tfd-module-page--dashboard .dashboard-focus-copy small,
body.app-shell .tfd-module-page--dashboard .dashboard-next-copy small {
  overflow: hidden;
  color: var(--muted-text);
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.app-shell .tfd-module-page--dashboard .dashboard-focus-value {
  color: var(--ink);
  font-size: 18px;
  font-weight: 700;
}

body.app-shell .tfd-module-page--dashboard .dashboard-focus-arrow {
  color: #9aa7b2;
  font-size: 11px;
}

body.app-shell .tfd-module-page--dashboard .dashboard-next-item {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 8px 0;
  border-bottom: 1px solid #eef1f3;
}

body.app-shell .tfd-module-page--dashboard .dashboard-next-item:last-child {
  border-bottom: 0;
}

body.app-shell .tfd-module-page--dashboard .dashboard-next-date {
  display: grid;
  place-items: center;
  padding: 5px 3px;
  border: 1px solid #b9dce3;
  border-radius: 9px;
  color: var(--accent);
  background: var(--brand-soft);
  line-height: 1;
}

body.app-shell .tfd-module-page--dashboard .dashboard-next-date strong {
  font-size: 15px;
}

body.app-shell .tfd-module-page--dashboard .dashboard-next-date small {
  margin-top: 3px;
  font-size: 9px;
  text-transform: uppercase;
}

body.app-shell .tfd-module-page--dashboard .dashboard-next-time {
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
}

body.app-shell .tfd-module-page--dashboard .dashboard-empty-state--compact {
  min-height: 130px;
}

@media (max-width: 575px) {
  body.app-shell .tfd-module-page--dashboard .dashboard-focus-item {
    grid-template-columns: 34px minmax(0, 1fr) auto;
  }

  body.app-shell .tfd-module-page--dashboard .dashboard-focus-arrow {
    display: none;
  }
}

/* Standalone documents use the same token system as the application shell. */

body.print-surface {
  --print-surface: #ffffff;
  --print-canvas: #f5f7fa;
  --print-ink: #142333;
  --print-text: #425466;
  --print-muted: #718096;
  --print-line: #dce4eb;
  --print-accent: #0e7490;
  margin: 0;
  color: var(--print-text);
  background: var(--print-canvas);
  font-family: Geomini, Arial, sans-serif;
  font-size: 13px;
}

body.print-surface .print-sheet,
body.print-surface .sheet {
  box-sizing: border-box;
  margin: 10px auto;
  border: 1px solid var(--print-line);
  background: var(--print-surface);
  box-shadow: 0 8px 24px rgba(20, 35, 51, .08);
}

body.print-patient-page {
  padding: 24px;
}

body.print-patient-page .sheet {
  width: 210mm;
  min-height: 297mm;
  padding: 26px;
}

body.print-patient-page .header,
body.print-receipt-page .header,
body.print-trip-receipt-page .header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border-bottom: 2px solid var(--print-accent);
  padding-bottom: 10px;
  margin-bottom: 16px;
}

body.print-patient-page .logo,
body.print-receipt-page .logo,
body.print-trip-receipt-page .logo {
  display: block;
  height: 48px;
  width: auto;
}

body.print-patient-page .title,
body.print-receipt-page .title,
body.print-trip-receipt-page .title {
  color: var(--print-ink);
  text-align: right;
}

body.print-patient-page .title h1,
body.print-receipt-page .title h1,
body.print-trip-receipt-page .title h1 {
  margin: 0;
  color: var(--print-ink);
  font-size: 20px;
  letter-spacing: .2px;
}

body.print-surface h2,
body.print-surface h3 {
  color: var(--print-ink);
}

body.print-patient-page h2,
body.print-receipt-page .section h2,
body.print-trip-receipt-page .section h2 {
  margin: 0 0 10px;
  border-bottom: 1px solid var(--print-line);
  padding-bottom: 6px;
  font-size: 15px;
}

body.print-patient-page .grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

body.print-patient-page .card {
  padding: 12px;
  border: 1px solid var(--print-line);
  border-radius: 10px;
}

body.print-patient-page .field,
body.print-receipt-page .row,
body.print-trip-receipt-page .row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 6px;
  font-size: 12px;
}

body.print-patient-page .field .label,
body.print-patient-page .field .value,
body.print-receipt-page .label,
body.print-receipt-page .value,
body.print-trip-receipt-page .label,
body.print-trip-receipt-page .value {
  color: var(--print-text);
}

body.print-patient-page .field .label,
body.print-receipt-page .label,
body.print-trip-receipt-page .label {
  min-width: 80px;
  font-weight: 600;
  color: var(--print-muted);
}

body.print-patient-page .field .value,
body.print-receipt-page .value,
body.print-trip-receipt-page .value {
  flex: 1;
  color: var(--print-ink);
}

body.print-surface table {
  width: 100%;
  border-collapse: collapse;
}

body.print-surface th,
body.print-surface td {
  border: 1px solid var(--print-line);
  padding: 6px 8px;
}

body.print-surface th {
  background: #f3f8f9;
  color: var(--print-ink);
  text-align: left;
  font-weight: 700;
}

body.print-surface .muted {
  color: var(--print-muted);
}

body.print-patient-page .badge {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 7px;
  color: var(--print-ink);
  background: #eef2f4;
  font-size: 11px;
  text-transform: uppercase;
}

body.print-patient-page .badge.success {
  color: #146c4b;
  background: #e7f6ee;
}

body.print-patient-page .badge.warning {
  color: #8d5b1f;
  background: #fff4df;
}

body.print-patient-page .badge.info {
  color: #155e75;
  background: #e6f4f7;
}

body.print-patient-page .badge.danger {
  color: #9f3f3f;
  background: #fff0f0;
}

body.print-receipt-page .sheet,
body.print-trip-receipt-page .sheet {
  width: 148mm;
  min-height: 210mm;
  max-width: calc(100% - 24px);
  padding: 18px;
}

body.print-surface.is-thermal .sheet {
  width: 72mm;
  min-height: auto;
  padding: 10px;
}

body.print-receipt-page .logo,
body.print-trip-receipt-page .logo {
  height: 42px;
}

body.print-surface.is-thermal .logo {
  height: 28px;
}

body.print-surface.is-thermal .title h1 {
  font-size: 14px;
}

body.print-surface.is-thermal .row {
  font-size: 11px;
}

body.print-surface.is-thermal table {
  font-size: 11px;
}

body.print-surface.is-thermal th,
body.print-surface.is-thermal td {
  padding: 4px;
}

body.print-receipt-page .total {
  font-size: 14px;
  font-weight: 700;
  text-align: right;
}

body.print-receipt-page .actions,
body.print-trip-receipt-page .actions,
body.print-soap-page .print-toolbar {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px auto;
}

body.print-surface .print-button,
body.print-surface .btn-print,
body.print-surface .btn-share {
  min-height: 38px;
  padding: 8px 12px;
  border: 1px solid transparent;
  border-radius: 9px;
  color: #ffffff;
  background: var(--print-accent);
  cursor: pointer;
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
}

body.print-surface .btn-share {
  background: #155e75;
}

body.print-soap-page {
  padding: 12px;
}

body.print-soap-page .sheet {
  width: 100%;
  border-collapse: collapse;
  box-shadow: none;
}

body.print-soap-page .sheet td {
  border: 1px solid var(--print-ink);
  padding: 6px 8px;
  vertical-align: top;
}

body.print-soap-page .sheet .tight {
  padding-top: 4px;
  padding-bottom: 4px;
}

body.print-soap-page .label {
  font-weight: 700;
}

body.print-soap-page .box {
  min-height: 120px;
  padding: 10px;
}

body.print-soap-page .line {
  display: inline-block;
  min-width: 90px;
  height: 14px;
  border-bottom: 1px solid var(--print-ink);
}

body.print-soap-page .checks {
  white-space: nowrap;
}

body.print-soap-page .check {
  display: inline-block;
  margin-right: 18px;
}

body.print-soap-page .check .boxchar {
  display: inline-block;
  min-width: 18px;
  text-align: center;
  font-weight: 700;
}

body.print-soap-page .header {
  margin-bottom: 10px;
}

body.print-soap-page .header .title {
  padding: 4px 0 2px;
  text-align: center;
  font-size: 15px;
  text-transform: uppercase;
}

body.print-soap-page .header .subtitle {
  margin-top: 2px;
  text-align: center;
  font-size: 12px;
}

body.print-soap-page .footer {
  margin-top: 14px;
}

body.print-soap-page .signature-line {
  width: 320px;
  margin: 34px auto 0;
  padding-top: 4px;
  border-top: 1px solid var(--print-ink);
  text-align: center;
}

body.print-soap-page .description-box {
  min-height: 110px;
  padding: 8px;
  border: 1px solid var(--print-ink);
}

body.print-soap-page .half-width {
  width: 50%;
}

body.print-driver-document {
  padding: 18px;
  font-size: 12px;
}

body.print-driver-document .header {
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--print-accent);
  text-align: center;
}

body.print-driver-document .title {
  margin: 0;
  color: var(--print-ink);
  font-size: 18px;
  font-weight: 700;
}

body.print-driver-document .grid {
  width: 100%;
  margin-top: 12px;
  border-collapse: collapse;
}

body.print-driver-document .grid td,
body.print-driver-document .grid th {
  border: 1px solid var(--print-line);
  padding: 8px;
  vertical-align: top;
}

body.print-driver-document .grid th {
  background: #f3f8f9;
  text-align: left;
}

body.print-driver-document .route-box {
  padding: 12px;
  border: 1px solid var(--print-line);
  border-radius: 10px;
  background: #f8fbfc;
}

body.print-driver-document .route-line {
  position: relative;
  height: 2px;
  margin: 12px 0;
  background: #cbd9de;
}

body.print-driver-document .route-line::before,
body.print-driver-document .route-line::after {
  position: absolute;
  top: -4px;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--print-accent);
  content: '';
}

body.print-driver-document .route-line::after {
  right: 0;
  background: #198754;
}

body.print-driver-document .route-point {
  padding: 10px 0;
}

body.print-driver-document .route-point strong {
  display: block;
  margin-bottom: 4px;
}

body.print-manifest-page {
  padding: 0;
  color: var(--print-ink);
  font-size: 10px;
}

body.print-manifest-page .manifest-header {
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--print-accent);
}

body.print-manifest-page .manifest-eyebrow {
  color: var(--print-accent);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
}

body.print-manifest-page h1 {
  margin: 3px 0 2px;
  color: var(--print-ink);
  font-size: 20px;
}

body.print-manifest-page .summary {
  width: 100%;
  margin-bottom: 12px;
  border-collapse: separate;
  border-spacing: 0;
  table-layout: fixed;
}

body.print-manifest-page .summary td {
  padding: 8px 9px;
  border-top: 1px solid var(--print-line);
  border-bottom: 1px solid var(--print-line);
  background: #f8fbfc;
  vertical-align: top;
}

body.print-manifest-page .summary td:first-child {
  border-left: 1px solid var(--print-line);
}

body.print-manifest-page .summary td:last-child {
  border-right: 1px solid var(--print-line);
}

body.print-manifest-page .manifest {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

body.print-manifest-page .manifest th {
  padding: 7px 6px;
  border: 1px solid #b9dce3;
  color: #155e75;
  background: #e6f4f7;
  font-size: 8px;
  text-align: left;
  text-transform: uppercase;
}

body.print-manifest-page .manifest td {
  height: 30px;
  padding: 6px;
  border: 1px solid var(--print-line);
  vertical-align: middle;
}

body.print-manifest-page .manifest tbody tr:nth-child(even) td {
  background: #fbfcfd;
}

body.print-manifest-page .route {
  margin-bottom: 12px;
  padding: 8px 10px;
  border: 1px solid var(--print-line);
}

body.print-manifest-page .manifest-footer {
  margin-top: 10px;
  color: var(--print-muted);
  font-size: 8px;
}

body.print-manifest-page .footer-left {
  float: left;
}

body.print-manifest-page .footer-right {
  float: right;
}

@media print {
  body.print-surface {
    background: #ffffff;
  }

  body.print-surface .sheet,
  body.print-surface .print-sheet {
    margin: 0;
    border: 0;
    box-shadow: none;
  }

  body.print-surface .no-print,
  body.print-surface .print-toolbar,
  body.print-surface .actions {
    display: none !important;
  }
}

@media (max-width: 600px) {
  body.print-patient-page {
    padding: 12px;
  }

  body.print-patient-page .sheet {
    width: 100%;
    min-height: auto;
    padding: 16px;
  }

  body.print-patient-page .grid {
    grid-template-columns: 1fr;
  }

  body.print-receipt-page .sheet,
  body.print-trip-receipt-page .sheet {
    width: calc(100% - 12px);
    min-height: auto;
    padding: 14px;
  }

  body.print-patient-page .header,
  body.print-receipt-page .header,
  body.print-trip-receipt-page .header {
    align-items: flex-start;
  }

  body.print-surface .actions .btn {
    flex: 1 1 140px;
  }
}

/* Small shared utility components migrated from view-level inline styles. */

.config-map {
  width: 100%;
  height: 240px;
}

.config-map-marker {
  display: flex;
  width: 34px;
  height: 34px;
  align-items: center;
  justify-content: center;
  border: 2px solid #ffffff;
  border-radius: 50%;
  color: #ffffff;
  background: var(--accent);
  box-shadow: 0 2px 8px rgba(20, 35, 51, .18);
}

.driver-map-popup-meta {
  color: var(--muted-text, #718096);
}

.route-map {
  width: 100%;
  max-width: 960px;
  height: 360px;
  margin: 0 auto;
}

.route-action-button {
  min-width: 200px;
}

.route-action-button.btn-success {
  min-width: 240px;
}

.share-feedback {
  display: none;
}

.share-feedback.is-visible {
  display: block;
}

.occupancy-progress {
  display: block;
  width: 100%;
  height: 4px;
  border: 0;
  border-radius: 0;
}

.patient-photo-preview {
  max-width: 100px;
  max-height: 100px;
}

.audit-user-agent {
  max-width: 320px;
}

.confirmation-link-value {
  overflow-wrap: anywhere;
}

.receipt-note-row {
  margin-top: 6px;
}

.receipt-note-value {
  text-align: left !important;
}

.empty-row {
  text-align: center;
}

/* Framework error pages inherit the same clinical surface as the product. */

body.error-surface {
  min-height: 100vh;
  margin: 0;
  padding: 32px;
  color: var(--body-text, #425466);
  background: var(--canvas, #f5f7fa);
  font-family: Geomini, system-ui, sans-serif;
}

body.error-surface .wrap,
body.error-surface .container {
  box-sizing: border-box;
  max-width: 1024px;
  margin: 80px auto 0;
  padding: 40px;
  border: 1px solid var(--line, #dce4eb);
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 8px 24px rgba(20, 35, 51, .055);
  text-align: center;
}

body.error-surface h1,
body.error-surface .headline {
  margin: 0 0 4px;
  color: var(--ink, #142333);
  font-family: Geomini, system-ui, sans-serif;
  font-size: clamp(2.6rem, 8vw, 4.5rem);
  font-weight: 700;
  letter-spacing: -.03em;
}

body.error-surface p,
body.error-surface .lead {
  margin-top: 24px;
  color: var(--body-text, #425466);
}

body.error-surface a {
  color: var(--accent, #0e7490);
}

body.error-surface pre {
  margin-top: 24px;
  white-space: normal;
}

body.error-surface code {
  display: block;
  padding: 8px 16px;
  border: 1px solid var(--line, #dce4eb);
  border-radius: 10px;
  background: #f8fbfc;
}

@media (max-width: 600px) {
  body.error-surface {
    padding: 16px;
  }

  body.error-surface .wrap,
  body.error-surface .container {
    margin-top: 24px;
    padding: 24px 18px;
  }
}

/* Documentation pages consume the product design system as well. */

body.manual-page {
  --manual-sidebar-width: 280px;
  min-height: 100vh;
  padding-top: 0;
  color: var(--body-text, #425466);
  background: var(--canvas, #f5f7fa);
}

body.manual-spec-page {
  padding-bottom: 48px;
}

.manual-spec-page .manual-header {
  margin-bottom: 32px;
  padding: 64px 32px;
  border-bottom: 1px solid var(--line, #dce4eb);
  background: #ffffff;
  text-align: center;
}

.manual-title {
  color: var(--accent, #0e7490);
}

.manual-spec-page .color-swatch {
  width: 100%;
  height: 100px;
  margin-bottom: 8px;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(20, 35, 51, .08);
}

.manual-spec-page .color-swatch--primary {
  background: var(--primary, #0e7490);
}

.manual-spec-page .color-swatch--secondary {
  background: var(--secondary, #198754);
}

.manual-spec-page .color-swatch--accent {
  background: var(--accent, #0e7490);
}

.manual-spec-page .color-swatch--warning {
  background: var(--warning, #b7791f);
}

.manual-spec-page .color-swatch--error {
  background: var(--error, #c2414b);
}

.manual-spec-page .color-swatch--teal {
  background: var(--teal, #14b8a6);
}

.manual-spec-page .color-swatch--primary-gradient {
  background: var(--primary-gradient, #0e7490);
}

.manual-spec-page .color-swatch--secondary-gradient {
  background: var(--secondary-gradient, #198754);
}

.manual-spec-page .color-swatch--accent-gradient {
  background: var(--accent-gradient, #0e7490);
}

.manual-footer {
  border-top: 1px solid var(--line, #dce4eb);
  background: #ffffff;
}

.manual-spec-page .section-nav {
  position: sticky;
  top: 20px;
}

.manual-spec-page .component-preview {
  margin-bottom: 16px;
  padding: 32px;
  border: 1px dashed var(--line, #dce4eb);
  border-radius: 14px;
  background: #ffffff;
}

body.manual-usage-page {
  display: flex;
  overflow-x: hidden;
}

.manual-usage-page .manual-sidebar {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 1000;
  width: var(--manual-sidebar-width);
  overflow-y: auto;
  padding: 32px 16px;
  border-right: 1px solid var(--line, #dce4eb);
  background: #ffffff;
}

.manual-usage-page .manual-sidebar .nav-link {
  margin-bottom: 4px;
  padding: 12px 16px;
  border-radius: 10px;
  color: var(--muted-text, #718096);
  font-size: 13px;
  transition: background-color 160ms ease, color 160ms ease;
}

.manual-usage-page .manual-sidebar .nav-link:hover,
.manual-usage-page .manual-sidebar .nav-link.active {
  color: var(--primary-dark, #155e75);
  background: var(--brand-soft, #e6f4f7);
}

.manual-usage-page .manual-sidebar .nav-link i {
  width: 24px;
  margin-right: 8px;
  text-align: center;
}

.manual-usage-page .manual-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  padding: 0 16px 32px;
  border-bottom: 1px solid var(--line, #dce4eb);
}

.manual-usage-page .manual-brand span {
  color: var(--ink, #142333);
  font-size: 19px;
  font-weight: 700;
}

.manual-usage-page .manual-content {
  flex: 1;
  max-width: 1200px;
  margin-left: var(--manual-sidebar-width);
  padding: 64px;
}

.manual-usage-page .manual-section {
  margin-bottom: 80px;
  scroll-margin-top: 32px;
}

.manual-usage-page .manual-section h2 {
  display: flex;
  align-items: center;
  gap: 16px;
  width: -moz-fit-content;
  width: fit-content;
  margin-bottom: 24px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--accent, #0e7490);
  color: var(--ink, #142333);
  font-weight: 600;
}

.manual-usage-page .step-list {
  padding: 0;
  counter-reset: step;
  list-style: none;
}

.manual-usage-page .step-list li {
  position: relative;
  margin-bottom: 24px;
  padding-left: 48px;
}

.manual-usage-page .step-list li::before {
  position: absolute;
  top: 0;
  left: 0;
  display: flex;
  width: 32px;
  height: 32px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #ffffff;
  background: var(--accent, #0e7490);
  content: counter(step);
  counter-increment: step;
  font-size: 13px;
  font-weight: 700;
}

.manual-usage-page .tip-box,
.manual-usage-page .warning-box {
  margin: 24px 0;
  padding: 24px;
  border-radius: 10px;
}

.manual-usage-page .tip-box {
  border-left: 4px solid var(--accent, #0e7490);
  background: #e6f4f7;
}

.manual-usage-page .warning-box {
  border-left: 4px solid var(--danger, #c2414b);
  background: #fff4f4;
}

.manual-usage-page .screen-mockup {
  margin: 32px 0;
  overflow: hidden;
  border: 1px solid var(--line, #dce4eb);
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 14px 34px rgba(20, 35, 51, .085);
  font-size: 13px;
}

.manual-usage-page .screen-mockup-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line, #dce4eb);
  background: #f7f9fb;
}

.manual-usage-page .traffic-lights {
  display: flex;
  gap: 6px;
  margin-right: 12px;
}

.manual-usage-page .traffic-light {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.manual-usage-page .traffic-light.red {
  background: #c2414b;
}

.manual-usage-page .traffic-light.yellow {
  background: #b7791f;
}

.manual-usage-page .traffic-light.green {
  background: #198754;
}

.manual-usage-page .screen-mockup-body {
  padding: 32px;
  background: #f8fbfc;
}

.manual-usage-page .screen-mockup-body--login {
  height: 400px;
  background: var(--bg-secondary, #ffffff);
}

.manual-usage-page .screen-mockup-login-card {
  width: 350px;
}

.manual-usage-page .screen-mockup .card {
  box-shadow: none !important;
}

.manual-usage-page .mobile-toggle {
  display: none;
}

@media (max-width: 991px) {
  .manual-usage-page .manual-sidebar {
    transform: translateX(-100%);
    transition: transform 160ms ease;
  }

  .manual-usage-page .manual-sidebar.show {
    transform: translateX(0);
  }

  .manual-usage-page .manual-content {
    margin-left: 0;
    padding: 32px 16px;
  }

  .manual-usage-page .mobile-toggle {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 1050;
    display: flex !important;
    width: 50px;
    height: 50px;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 50%;
    color: #ffffff;
    background: var(--accent, #0e7490);
    box-shadow: 0 8px 18px rgba(14, 116, 144, .2);
  }
}

/* ============================================================
   Footer and dashboard status system — final global layer
   ============================================================ */

body.app-shell .app-footer {
  min-height: 58px;
  margin-top: 28px;
  padding: 0 24px calc(14px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line, #dce4eb);
  background: transparent;
  color: var(--muted-text, #718096);
  overflow: visible;
}

body.app-shell .app-footer__inner {
  display: flex;
  min-height: 58px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
}

body.app-shell .app-footer__brand,
body.app-shell .app-footer__meta,
body.app-shell .app-footer__meta-item {
  display: inline-flex;
  align-items: center;
}

body.app-shell .app-footer__brand {
  min-width: 0;
  gap: 8px;
  color: var(--muted-text, #718096);
  font-size: 11px;
  line-height: 1.4;
}

body.app-shell .app-footer__mark {
  display: inline-flex;
  width: 24px;
  height: 24px;
  align-items: center;
  justify-content: center;
  flex: 0 0 24px;
  border: 1px solid rgba(14, 116, 144, .16);
  border-radius: 7px;
  color: var(--accent, #0e7490);
  background: var(--brand-soft, #e6f4f7);
  font-size: 10px;
}

body.app-shell .app-footer__label {
  color: var(--ink, #142333);
  font-weight: 700;
}

body.app-shell .app-footer__credit {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.app-shell .app-footer__separator {
  color: var(--accent, #0e7490);
  font-weight: 700;
}

body.app-shell .app-footer__meta {
  flex: 0 0 auto;
}

body.app-shell .app-footer__meta-item {
  gap: 6px;
  color: var(--muted-text, #718096);
  font-size: 10px;
  white-space: nowrap;
}

body.app-shell .app-footer__meta-item i {
  color: var(--accent, #0e7490);
  font-size: 9px;
}

body.app-shell .tfd-module-page--dashboard .dashboard-status-card {
  overflow: hidden;
}

body.app-shell .tfd-module-page--dashboard .dashboard-status-card__header {
  padding: 16px 20px !important;
}

body.app-shell .tfd-module-page--dashboard .dashboard-status-card__header h6 {
  margin: 0;
  color: var(--foreground) !important;
  font-size: 13px;
  font-weight: 700;
}

body.app-shell .tfd-module-page--dashboard .dashboard-status-card__header h6 i,
body.app-shell .tfd-module-page--dashboard .dashboard-status-panel h6 i {
  color: var(--accent, #0e7490);
}

body.app-shell .tfd-module-page--dashboard .dashboard-status-card__header small,
body.app-shell .tfd-module-page--dashboard .dashboard-status-panel__heading small {
  color: var(--muted-text, #718096) !important;
  font-size: 10px;
}

body.app-shell .tfd-module-page--dashboard .dashboard-status-total {
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
  padding: 7px 10px;
  border: 1px solid rgba(14, 116, 144, .16);
  border-radius: 8px;
  color: var(--accent, #0e7490);
  background: var(--brand-soft, #e6f4f7);
  font-size: 10px;
  white-space: nowrap;
}

body.app-shell .tfd-module-page--dashboard .dashboard-status-total strong {
  font-size: 14px;
  letter-spacing: -.02em;
}

body.app-shell .tfd-module-page--dashboard .dashboard-status-card__body {
  padding: 20px !important;
}

body.app-shell .tfd-module-page--dashboard .dashboard-status-board {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(300px, .85fr);
  gap: 16px;
  align-items: stretch;
}

body.app-shell .tfd-module-page--dashboard .dashboard-status-panel {
  min-height: 0;
  padding: 16px !important;
  border: 1px solid var(--dashboard-border) !important;
  border-radius: 12px !important;
  background: var(--dashboard-surface-subtle) !important;
  box-shadow: none !important;
}

body.app-shell .tfd-module-page--dashboard .dashboard-status-panel--primary {
  min-height: 344px;
}

body.app-shell .tfd-module-page--dashboard .dashboard-status-panel__heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

body.app-shell .tfd-module-page--dashboard .dashboard-status-panel__heading h6 {
  margin: 0;
  color: var(--foreground) !important;
  font-size: 12px;
  font-weight: 700;
}

body.app-shell .tfd-module-page--dashboard .dashboard-chart-caption {
  display: inline-flex;
  flex: 0 0 auto;
  padding: 4px 7px;
  border-radius: 6px;
  color: var(--accent, #0e7490) !important;
  background: var(--brand-soft, #e6f4f7);
  font-size: 9px;
  font-weight: 700;
  white-space: nowrap;
}

body.app-shell .tfd-module-page--dashboard .dashboard-chart--status-main {
  height: 270px;
  margin-top: 12px;
}

body.app-shell .tfd-module-page--dashboard .dashboard-status-side {
  display: grid;
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

body.app-shell .tfd-module-page--dashboard .dashboard-status-panel--mini {
  display: flex;
  min-height: 164px;
  flex-direction: column;
  justify-content: space-between;
}

body.app-shell .tfd-module-page--dashboard .dashboard-status-panel__total {
  color: var(--foreground) !important;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -.03em;
}

body.app-shell .tfd-module-page--dashboard .dashboard-mini-chart-row {
  display: grid;
  grid-template-columns: 124px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  margin-top: 10px;
}

body.app-shell .tfd-module-page--dashboard .dashboard-chart--mini {
  height: 116px;
}

body.app-shell .tfd-module-page--dashboard .status-legend--compact {
  display: grid;
  gap: 7px !important;
}

body.app-shell .tfd-module-page--dashboard .status-legend--compact span {
  display: grid;
  grid-template-columns: 8px minmax(0, 1fr) auto;
  align-items: center;
  gap: 5px;
  color: var(--muted-text, #718096);
  font-size: 10px;
  line-height: 1.2;
}

body.app-shell .tfd-module-page--dashboard .status-legend--compact strong {
  color: var(--foreground) !important;
  font-size: 10px;
}

body.app-shell .tfd-module-page--dashboard .status-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
}

body.app-shell .tfd-module-page--dashboard .status-dot--primary {
  background: #0e7490;
}

body.app-shell .tfd-module-page--dashboard .status-dot--muted {
  background: #718096;
}

body.app-shell .tfd-module-page--dashboard .status-dot--success {
  background: #198754;
}

body.app-shell .tfd-module-page--dashboard .status-dot--danger {
  background: #c2414b;
}

body.app-shell .tfd-module-page--dashboard .status-dot--warning {
  background: #b7791f;
}

body.app-shell .tfd-module-page--dashboard .status-dot--info {
  background: #14b8a6;
}

@media (max-width: 1199px) {
  body.app-shell .tfd-module-page--dashboard .dashboard-status-board {
    grid-template-columns: 1fr;
  }

  body.app-shell .tfd-module-page--dashboard .dashboard-status-side {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: none;
  }
}

@media (max-width: 767px) {
  body.app-shell .app-footer {
    margin-top: 22px;
    padding-right: 14px;
    padding-bottom: calc(78px + env(safe-area-inset-bottom)) !important;
    padding-left: 14px;
  }

  body.app-shell .app-footer__inner {
    min-height: 64px;
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
  }

  body.app-shell .app-footer__brand {
    max-width: 100%;
  }

  body.app-shell .app-footer__meta {
    padding-left: 32px;
  }

  body.app-shell .tfd-module-page--dashboard .dashboard-status-card__header,
  body.app-shell .tfd-module-page--dashboard .dashboard-status-card__body {
    padding-right: 14px !important;
    padding-left: 14px !important;
  }

  body.app-shell .tfd-module-page--dashboard .dashboard-status-side {
    grid-template-columns: 1fr;
  }

  body.app-shell .tfd-module-page--dashboard .dashboard-status-panel--primary {
    min-height: 0;
  }

  body.app-shell .tfd-module-page--dashboard .dashboard-chart--status-main {
    height: 252px;
  }
}

@media (max-width: 480px) {
  body.app-shell .tfd-module-page--dashboard .dashboard-status-total {
    display: none;
  }

  body.app-shell .tfd-module-page--dashboard .dashboard-mini-chart-row {
    grid-template-columns: 112px minmax(0, 1fr);
    gap: 8px;
  }
}

/* App shell header — centered brand mark without contextual labels. */

body.app-shell .app-sidebar__header {
  position: relative;
  justify-content: center;
}

body.app-shell .app-sidebar__brand {
  width: 100%;
  justify-content: center;
  gap: 0;
}

body.app-shell .app-sidebar__logo {
  display: block;
  width: 168px;
  max-width: 100%;
  height: auto;
  max-height: 42px;
  -o-object-fit: contain;
     object-fit: contain;
}

body.app-shell .app-sidebar__brand-copy,
body.app-shell .app-sidebar__context {
  display: none !important;
}

@media (max-width: 991px) {
  body.app-shell .app-mobilebar {
    position: sticky;
  }

  body.app-shell .app-mobilebar__brand {
    position: absolute;
    top: 50%;
    left: 50%;
    display: flex;
    width: auto;
    align-items: center;
    justify-content: center;
    margin: 0;
    transform: translate(-50%, -50%);
  }

  body.app-shell .app-mobilebar__brand img {
    display: block;
    width: 142px;
    max-width: 42vw;
    height: auto;
    max-height: 40px;
    -o-object-fit: contain;
       object-fit: contain;
  }

  body.app-shell .app-mobilebar__context {
    display: none !important;
  }
}

/* ============================================================
   CRUD surfaces — one visual contract for create, edit and detail
   ============================================================ */

/* Compatibility text tokens used by legacy module markup. Keeping them in
   the global bundle prevents utility labels from inheriting a surface color. */

body.app-shell .tfd-text-title {
  color: var(--ink, #142333) !important;
}

body.app-shell .tfd-text-body {
  color: var(--body-text, #425466) !important;
}

body.app-shell .tfd-text-muted {
  color: #64748b !important;
}

body.app-shell .tfd-text-primary {
  color: var(--accent, #0e7490) !important;
}

body.app-shell .tfd-text-warning {
  color: #8d5b1f !important;
}

/* Primary/semantic utility classes are used by older headers. The current
   system uses light section headers, so their text must remain dark. */

body.app-shell .card-header[class~="bg-primary"],
body.app-shell .card-header[class~="bg-success"],
body.app-shell .card-header[class~="bg-info"],
body.app-shell .card-header[class~="bg-warning"],
body.app-shell .card-header[class~="bg-light"],
body.app-shell .card-header[class~="bg-white"],
body.app-shell .card-header[class~="text-white"] {
  color: var(--ink, #142333) !important;
}

body.app-shell .card-header[class~="bg-primary"] h1,
body.app-shell .card-header[class~="bg-primary"] h2,
body.app-shell .card-header[class~="bg-primary"] h3,
body.app-shell .card-header[class~="bg-primary"] h4,
body.app-shell .card-header[class~="bg-primary"] h5,
body.app-shell .card-header[class~="bg-primary"] h6,
body.app-shell .card-header[class~="bg-primary"] strong,
body.app-shell .card-header[class~="bg-success"] h1,
body.app-shell .card-header[class~="bg-success"] h2,
body.app-shell .card-header[class~="bg-success"] h3,
body.app-shell .card-header[class~="bg-success"] h4,
body.app-shell .card-header[class~="bg-success"] h5,
body.app-shell .card-header[class~="bg-success"] h6,
body.app-shell .card-header[class~="bg-success"] strong,
body.app-shell .card-header[class~="bg-info"] h1,
body.app-shell .card-header[class~="bg-info"] h2,
body.app-shell .card-header[class~="bg-info"] h3,
body.app-shell .card-header[class~="bg-info"] h4,
body.app-shell .card-header[class~="bg-info"] h5,
body.app-shell .card-header[class~="bg-info"] h6,
body.app-shell .card-header[class~="bg-info"] strong,
body.app-shell .card-header[class~="bg-warning"] h1,
body.app-shell .card-header[class~="bg-warning"] h2,
body.app-shell .card-header[class~="bg-warning"] h3,
body.app-shell .card-header[class~="bg-warning"] h4,
body.app-shell .card-header[class~="bg-warning"] h5,
body.app-shell .card-header[class~="bg-warning"] h6,
body.app-shell .card-header[class~="bg-warning"] strong,
body.app-shell .card-header[class~="bg-light"] h1,
body.app-shell .card-header[class~="bg-light"] h2,
body.app-shell .card-header[class~="bg-light"] h3,
body.app-shell .card-header[class~="bg-light"] h4,
body.app-shell .card-header[class~="bg-light"] h5,
body.app-shell .card-header[class~="bg-light"] h6,
body.app-shell .card-header[class~="bg-light"] strong,
body.app-shell .card-header[class~="bg-white"] h1,
body.app-shell .card-header[class~="bg-white"] h2,
body.app-shell .card-header[class~="bg-white"] h3,
body.app-shell .card-header[class~="bg-white"] h4,
body.app-shell .card-header[class~="bg-white"] h5,
body.app-shell .card-header[class~="bg-white"] h6,
body.app-shell .card-header[class~="bg-white"] strong,
body.app-shell .card-header[class~="text-white"] h1,
body.app-shell .card-header[class~="text-white"] h2,
body.app-shell .card-header[class~="text-white"] h3,
body.app-shell .card-header[class~="text-white"] h4,
body.app-shell .card-header[class~="text-white"] h5,
body.app-shell .card-header[class~="text-white"] h6,
body.app-shell .card-header[class~="text-white"] strong {
  color: var(--ink, #142333) !important;
}

body.app-shell .tfd-crud-page {
  color: var(--body-text, #425466);
}

body.app-shell .tfd-crud-page > .row:first-of-type {
  margin-bottom: 24px !important;
  padding: 24px !important;
  border: 1px solid var(--border) !important;
  border-radius: 24px !important;
  background: var(--card) !important;
  box-shadow: var(--shadow-soft, 0 8px 24px rgba(20, 35, 51, .055)) !important;
}

body.app-shell .tfd-crud-page > .row:first-of-type h1,
body.app-shell .tfd-crud-page > .row:first-of-type .tfd-heading {
  margin-bottom: 6px !important;
  color: var(--ink) !important;
  font-size: clamp(1.45rem, 2vw, 1.85rem) !important;
  font-weight: 700 !important;
  letter-spacing: -.035em;
  line-height: 1.12;
}

body.app-shell .tfd-crud-page > .row:first-of-type h1 i,
body.app-shell .tfd-crud-page > .row:first-of-type .tfd-heading i {
  color: var(--accent, #0e7490) !important;
}

body.app-shell .tfd-crud-page > .row:first-of-type .tfd-subheading,
body.app-shell .tfd-crud-page > .row:first-of-type > .col-12 > p,
body.app-shell .tfd-crud-page > .row:first-of-type .text-muted {
  color: var(--muted-text, #718096) !important;
  font-size: 12px !important;
  line-height: 1.5;
}

body.app-shell .tfd-crud-page--form > .row:not(:first-of-type) {
  width: 100%;
  max-width: none;
  margin-right: auto;
  margin-left: auto;
}

body.app-shell .tfd-crud-page--form .card,
body.app-shell .tfd-crud-page--detail .card {
  border: 1px solid var(--border) !important;
  border-radius: 14px !important;
  background: var(--card) !important;
  box-shadow: var(--shadow-soft, 0 8px 24px rgba(20, 35, 51, .055)) !important;
}

body.app-shell .tfd-crud-page--form .card-header,
body.app-shell .tfd-crud-page--detail .card-header {
  min-height: 52px;
  padding: 14px 18px !important;
  border: 0 !important;
  border-bottom: 1px solid var(--border) !important;
  border-radius: 14px 14px 0 0 !important;
  background: var(--card) !important;
  color: var(--ink) !important;
}

body.app-shell .tfd-crud-page--form .card-header[class~="bg-primary"],
body.app-shell .tfd-crud-page--form .card-header[class~="bg-success"],
body.app-shell .tfd-crud-page--form .card-header[class~="bg-info"],
body.app-shell .tfd-crud-page--form .card-header[class~="bg-warning"],
body.app-shell .tfd-crud-page--form .card-header[class~="bg-light"],
body.app-shell .tfd-crud-page--form .card-header[class~="bg-white"],
body.app-shell .tfd-crud-page--detail .card-header[class~="bg-primary"],
body.app-shell .tfd-crud-page--detail .card-header[class~="bg-success"],
body.app-shell .tfd-crud-page--detail .card-header[class~="bg-info"],
body.app-shell .tfd-crud-page--detail .card-header[class~="bg-warning"],
body.app-shell .tfd-crud-page--detail .card-header[class~="bg-light"],
body.app-shell .tfd-crud-page--detail .card-header[class~="bg-white"] {
  background: #fbfcfd !important;
  color: var(--ink, #142333) !important;
}

body.app-shell .tfd-crud-page--form .card-header[class~="text-white"],
body.app-shell .tfd-crud-page--detail .card-header[class~="text-white"],
body.app-shell .tfd-crud-page .card-header h1,
body.app-shell .tfd-crud-page .card-header h2,
body.app-shell .tfd-crud-page .card-header h3,
body.app-shell .tfd-crud-page .card-header h4,
body.app-shell .tfd-crud-page .card-header h5,
body.app-shell .tfd-crud-page .card-header h6,
body.app-shell .tfd-crud-page .card-header strong,
body.app-shell .tfd-crud-page .card-header .tfd-section-title,
body.app-shell .tfd-crud-page .card-header .tfd-text-title,
body.app-shell .tfd-crud-page .card-header [class~="text-white"] {
  color: var(--ink, #142333) !important;
}

body.app-shell .tfd-crud-page .card-header i,
body.app-shell .tfd-crud-page .card-header .tfd-icon-primary,
body.app-shell .tfd-crud-page .card-header .tfd-icon-warning {
  color: var(--accent, #0e7490) !important;
}

body.app-shell .tfd-crud-page--form .card-body,
body.app-shell .tfd-crud-page--detail .card-body {
  color: var(--body-text, #425466) !important;
}

body.app-shell .tfd-crud-page--form .card-body,
body.app-shell .tfd-crud-page--form .card-body[class~="p-4"] {
  padding: 22px 24px !important;
}

body.app-shell .tfd-crud-page--form form > .row {
  row-gap: 16px;
}

body.app-shell .tfd-crud-page--form .form-label,
body.app-shell .tfd-crud-page--detail .form-label {
  margin-bottom: 6px;
  color: var(--ink, #142333) !important;
  font-size: 12px;
  font-weight: 600;
}

body.app-shell .tfd-crud-page .form-text,
body.app-shell .tfd-crud-page .tfd-text-muted,
body.app-shell .tfd-crud-page .text-muted {
  color: #64748b !important;
  font-size: 11px;
  line-height: 1.45;
}

body.app-shell .tfd-crud-page .tfd-text-title,
body.app-shell .tfd-crud-page .text-dark {
  color: var(--ink, #142333) !important;
}

body.app-shell .tfd-crud-page .tfd-text-body {
  color: var(--body-text, #425466) !important;
}

body.app-shell .tfd-crud-page .tfd-text-primary,
body.app-shell .tfd-crud-page .text-primary {
  color: var(--accent, #0e7490) !important;
}

body.app-shell .tfd-crud-page .tfd-text-warning {
  color: #8d5b1f !important;
}

body.app-shell .tfd-crud-page--detail .card-body > .row.g-3 > [class*='col-'] > small:first-child,
body.app-shell .tfd-crud-page--detail .card-body > .row.g-3 > [class*='col-'] > .small:first-child {
  display: block;
  margin-bottom: 4px;
  color: #64748b !important;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .02em;
}

body.app-shell .tfd-crud-page--detail .card-body strong,
body.app-shell .tfd-crud-page--detail .card-body .fw-semibold,
body.app-shell .tfd-crud-page--detail .card-body .fw-bold {
  color: var(--ink, #142333);
}

body.app-shell .tfd-crud-page .card-footer {
  padding: 14px 24px !important;
  border-top: 1px solid var(--line, #dce4eb) !important;
  border-radius: 0 0 14px 14px !important;
  background: #fbfcfd !important;
}

body.app-shell .tfd-crud-page .alert {
  color: var(--body-text, #425466);
}

@media (max-width: 767px) {
  body.app-shell .tfd-crud-page > .row:first-of-type {
    padding: 20px !important;
    border-radius: 20px !important;
  }

  body.app-shell .tfd-crud-page--form .card-body,
  body.app-shell .tfd-crud-page--form .card-body[class~="p-4"] {
    padding: 16px !important;
  }

  body.app-shell .tfd-crud-page .card-footer {
    padding: 12px 16px !important;
  }

  body.app-shell .tfd-crud-page > .row:first-of-type .d-flex {
    align-items: flex-start !important;
  }
}

/* ============================================================
   CRUD geometry — keep create/edit/detail aligned with index
   ============================================================ */

body.app-shell .tfd-crud-page,
body.app-shell .tfd-crud-page--form,
body.app-shell .tfd-crud-page--detail {
  width: 100%;
  max-width: none;
  margin-right: 0;
  margin-left: 0;
}

body.app-shell .tfd-crud-page--form > .row:not(:first-of-type) {
  width: 100%;
  max-width: none;
  margin-right: 0 !important;
  margin-left: 0 !important;
}

/* Simple CRUD forms occupy the same content rail as their list/index page.
   Split layouts such as procedures and driver payments keep their intentional
   8/4 composition while the page itself remains full-width. */

body.app-shell .tfd-crud-page--form.tfd-module-page--motoristas > .row:not(:first-of-type) > [class*="col-xl-6"],
body.app-shell .tfd-crud-page--form.tfd-module-page--veiculos > .row:not(:first-of-type) > [class*="col-xl-6"],
body.app-shell .tfd-crud-page--form.tfd-module-page--pagamentos > .row:not(:first-of-type) > [class*="col-xl-8"],
body.app-shell .tfd-crud-page--form.tfd-module-page--unidades > .row:not(:first-of-type) > [class*="col-xl-8"],
body.app-shell .tfd-crud-page--form.tfd-module-page--usuarios > .row:not(:first-of-type) > [class*="col-xl-10"],
body.app-shell .tfd-crud-page--form.tfd-module-page--pacientes > .row:not(:first-of-type) > [class*="col-xl-10"],
body.app-shell .tfd-crud-page--form.tfd-module-page--agendamentos > .row:not(:first-of-type) > [class*="col-xl-10"],
body.app-shell .tfd-crud-page--form.tfd-module-page--viagens > .row:not(:first-of-type) > [class*="col-xl-8"] {
  flex: 0 0 100%;
  width: 100%;
  max-width: 100%;
}

body.app-shell .tfd-crud-page--form .card-body {
  padding: 18px !important;
}

@media (max-width: 767px) {
  body.app-shell .tfd-crud-page--form .card-body,
  body.app-shell .tfd-crud-page--form .card-body[class~="p-4"] {
    padding: 14px !important;
  }
}

/* ============================================================
   CANONICAL HIGH-SPECIFICITY DARK THEME ENGINE
   (Strictly aligned with design-system/tokens/tokens.css & showcase.html)
   ============================================================ */

[data-theme="dark"],
[data-bs-theme="dark"],
.dark {
  --bg-app: #0B0F19;
  --bg-surface: #111827;
  --bg-subtle: #1F2937;
  --bg-muted: #374151;
  --border-subtle: #1F2937;
  --border-strong: #374151;
  --border-focus: #D9D7FF;
  --text-primary: #F9FAFB;
  --text-secondary: #CBD5E1;
  --text-muted: #94A3B8;
  --text-inverse: #0F172A;
  --background: #0B0F19;
  --foreground: #F9FAFB;
  --card: #111827;
  --card-foreground: #F9FAFB;
  --popover: #111827;
  --popover-foreground: #F9FAFB;
  --border: #1F2937;
  --input: #1F2937;
  --ring: #6C6AE8;
  --canvas: #0B0F19;
  --ink: #F9FAFB;
  --body-text: #CBD5E1;
  --muted-text: #94A3B8;
  --line: #1F2937;
  --brand-soft: #1E1B4B;
  --public-primary-soft: rgba(56, 189, 248, 0.15);
  --public-border: #1F2937;
  --public-title: #F9FAFB;
  --public-text: #CBD5E1;
  --public-muted: #94A3B8;
  --dashboard-surface-subtle: #161F30;
  --dashboard-border: #1F2937;
  --dashboard-muted: #94A3B8;
  --eos-blue-iris: #6C6AE8;
  --eos-blue-iris-hover: #5B59D1;
  --eos-pale-iris: #312E81;
  --eos-pale-iris-subtle: rgba(217, 215, 255, 0.08);
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.5);
  --shadow-card: 0 4px 12px 0 rgba(0, 0, 0, 0.4);
  --shadow-soft: 0 8px 24px rgba(0, 0, 0, 0.4);
  --shadow-medium: 0 14px 34px rgba(0, 0, 0, 0.5);
}

html[data-theme="dark"],
html[data-bs-theme="dark"],
html.dark,
body[data-theme="dark"],
body[data-bs-theme="dark"],
body.dark {
  background-color: var(--bg-app) !important;
  color: var(--text-primary) !important;
}

[data-theme="dark"] body.app-shell,
[data-bs-theme="dark"] body.app-shell,
.dark body.app-shell,
body.app-shell[data-theme="dark"],
body.app-shell[data-bs-theme="dark"],
body.app-shell.dark {
  background: var(--bg-app) !important;
  background-color: var(--bg-app) !important;
  color: var(--text-primary) !important;
}

/* Sidebar */

[data-theme="dark"] .app-sidebar,
[data-bs-theme="dark"] .app-sidebar,
.dark .app-sidebar {
  background-color: #0F172A !important;
  border-right: 1px solid var(--border-subtle) !important;
}

[data-theme="dark"] .app-sidebar__header,
[data-bs-theme="dark"] .app-sidebar__header,
.dark .app-sidebar__header {
  border-bottom: 1px solid var(--border-subtle) !important;
}

[data-theme="dark"] .app-sidebar__brand-copy strong,
[data-bs-theme="dark"] .app-sidebar__brand-copy strong,
.dark .app-sidebar__brand-copy strong {
  color: var(--text-primary) !important;
}

[data-theme="dark"] .app-sidebar__link,
[data-bs-theme="dark"] .app-sidebar__link,
.dark .app-sidebar__link {
  color: var(--text-muted) !important;
}

[data-theme="dark"] .app-sidebar__link:hover,
[data-bs-theme="dark"] .app-sidebar__link:hover,
.dark .app-sidebar__link:hover {
  background-color: var(--bg-subtle) !important;
  color: #FFFFFF !important;
}

[data-theme="dark"] .app-sidebar__link.active,
[data-bs-theme="dark"] .app-sidebar__link.active,
.dark .app-sidebar__link.active {
  background-color: var(--eos-blue-iris) !important;
  color: #FFFFFF !important;
}

[data-theme="dark"] .app-sidebar__footer,
[data-bs-theme="dark"] .app-sidebar__footer,
.dark .app-sidebar__footer {
  border-top: 1px solid var(--border-subtle) !important;
}

/* Topbar */

[data-theme="dark"] .app-topbar,
[data-bs-theme="dark"] .app-topbar,
.dark .app-topbar {
  background-color: #0F172A !important;
  border-bottom: 1px solid var(--border-subtle) !important;
  color: var(--text-primary) !important;
}

[data-theme="dark"] .app-topbar__context strong,
[data-bs-theme="dark"] .app-topbar__context strong,
.dark .app-topbar__context strong {
  color: var(--text-primary) !important;
}

[data-theme="dark"] .app-topbar__profile,
[data-bs-theme="dark"] .app-topbar__profile,
.dark .app-topbar__profile {
  background-color: var(--bg-surface) !important;
  border: 1px solid var(--border-subtle) !important;
  color: var(--text-primary) !important;
}

/* Global Cards, Panels, Surfaces */

[data-theme="dark"] .card,
[data-theme="dark"] .glass-card,
[data-theme="dark"] .tfd-section-card,
[data-theme="dark"] .dashboard-stat-card,
[data-theme="dark"] .dashboard-status-card,
[data-theme="dark"] .dashboard-focus-card,
[data-theme="dark"] .dashboard-next-card,
[data-theme="dark"] .panel,
[data-theme="dark"] .monitoring-card,
[data-theme="dark"] .modal-content,
[data-theme="dark"] .dropdown-menu,
[data-bs-theme="dark"] .card,
[data-bs-theme="dark"] .glass-card,
[data-bs-theme="dark"] .tfd-section-card,
[data-bs-theme="dark"] .dashboard-stat-card,
[data-bs-theme="dark"] .dashboard-status-card,
[data-bs-theme="dark"] .dashboard-focus-card,
[data-bs-theme="dark"] .dashboard-next-card,
[data-bs-theme="dark"] .panel,
[data-bs-theme="dark"] .monitoring-card,
[data-bs-theme="dark"] .modal-content,
[data-bs-theme="dark"] .dropdown-menu,
.dark .card,
.dark .glass-card,
.dark .tfd-section-card,
.dark .dashboard-stat-card,
.dark .dashboard-status-card,
.dark .dashboard-focus-card,
.dark .dashboard-next-card,
.dark .panel,
.dark .monitoring-card,
.dark .modal-content,
.dark .dropdown-menu {
  background: var(--bg-surface) !important;
  background-color: var(--bg-surface) !important;
  border-color: var(--border-subtle) !important;
  color: var(--text-primary) !important;
  box-shadow: var(--shadow-card) !important;
}

/* Hero / Top Header across views */

[data-theme="dark"] .main-content .row.mb-4:first-of-type,
[data-theme="dark"] .main-content .d-flex.justify-content-between:first-of-type,
[data-theme="dark"] .page-header,
[data-bs-theme="dark"] .main-content .row.mb-4:first-of-type,
[data-bs-theme="dark"] .main-content .d-flex.justify-content-between:first-of-type,
[data-bs-theme="dark"] .page-header,
.dark .main-content .row.mb-4:first-of-type,
.dark .main-content .d-flex.justify-content-between:first-of-type,
.dark .page-header {
  background: var(--bg-surface) !important;
  background-color: var(--bg-surface) !important;
  border: 1px solid var(--border-subtle) !important;
  color: var(--text-primary) !important;
}

/* Card Headers & Footers */

[data-theme="dark"] .card-header,
[data-theme="dark"] .card-footer,
[data-bs-theme="dark"] .card-header,
[data-bs-theme="dark"] .card-footer,
.dark .card-header,
.dark .card-footer {
  background: var(--bg-subtle) !important;
  background-color: var(--bg-subtle) !important;
  border-color: var(--border-subtle) !important;
  color: var(--text-primary) !important;
}

[data-theme="dark"] .card-header h1,
[data-theme="dark"] .card-header h2,
[data-theme="dark"] .card-header h3,
[data-theme="dark"] .card-header h4,
[data-theme="dark"] .card-header h5,
[data-theme="dark"] .card-header h6,
[data-bs-theme="dark"] .card-header h1,
[data-bs-theme="dark"] .card-header h2,
[data-bs-theme="dark"] .card-header h3,
[data-bs-theme="dark"] .card-header h4,
[data-bs-theme="dark"] .card-header h5,
[data-bs-theme="dark"] .card-header h6,
.dark .card-header h1,
.dark .card-header h2,
.dark .card-header h3,
.dark .card-header h4,
.dark .card-header h5,
.dark .card-header h6 {
  color: var(--text-primary) !important;
}

[data-theme="dark"] .dashboard-status-total,
[data-bs-theme="dark"] .dashboard-status-total,
.dark .dashboard-status-total {
  background: var(--bg-subtle) !important;
  border-color: var(--border-subtle) !important;
  color: var(--eos-blue-iris) !important;
}

/* Dashboard List Items & Action Items */

[data-theme="dark"] .dashboard-focus-item,
[data-bs-theme="dark"] .dashboard-focus-item,
.dark .dashboard-focus-item {
  background: var(--bg-subtle) !important;
  border-color: var(--border-subtle) !important;
  color: var(--text-primary) !important;
}

[data-theme="dark"] .dashboard-focus-item:hover,
[data-bs-theme="dark"] .dashboard-focus-item:hover,
.dark .dashboard-focus-item:hover {
  background: #283344 !important;
  border-color: var(--eos-blue-iris) !important;
}

[data-theme="dark"] .dashboard-focus-copy strong,
[data-theme="dark"] .dashboard-next-copy strong,
[data-bs-theme="dark"] .dashboard-focus-copy strong,
[data-bs-theme="dark"] .dashboard-next-copy strong,
.dark .dashboard-focus-copy strong,
.dark .dashboard-next-copy strong {
  color: var(--text-primary) !important;
}

[data-theme="dark"] .dashboard-focus-copy small,
[data-theme="dark"] .dashboard-next-copy small,
[data-bs-theme="dark"] .dashboard-focus-copy small,
[data-bs-theme="dark"] .dashboard-next-copy small,
.dark .dashboard-focus-copy small,
.dark .dashboard-next-copy small {
  color: var(--text-muted) !important;
}

[data-theme="dark"] .dashboard-focus-value,
[data-bs-theme="dark"] .dashboard-focus-value,
.dark .dashboard-focus-value {
  color: var(--text-primary) !important;
}

[data-theme="dark"] .dashboard-next-item,
[data-bs-theme="dark"] .dashboard-next-item,
.dark .dashboard-next-item {
  border-bottom-color: var(--border-subtle) !important;
}

[data-theme="dark"] .dashboard-next-date,
[data-bs-theme="dark"] .dashboard-next-date,
.dark .dashboard-next-date {
  background: var(--bg-subtle) !important;
  border-color: var(--border-subtle) !important;
  color: var(--text-primary) !important;
}

/* Dashboard Status Panels & Legends in Dark Mode */

[data-theme="dark"] .dashboard-status-panel,
[data-bs-theme="dark"] .dashboard-status-panel,
.dark .dashboard-status-panel {
  background: var(--bg-subtle) !important;
  border-color: var(--border-subtle) !important;
}

[data-theme="dark"] .dashboard-chart-caption,
[data-bs-theme="dark"] .dashboard-chart-caption,
.dark .dashboard-chart-caption {
  background: var(--bg-surface) !important;
  color: var(--eos-blue-iris) !important;
}

[data-theme="dark"] .status-legend--compact span,
[data-bs-theme="dark"] .status-legend--compact span,
.dark .status-legend--compact span {
  color: var(--text-muted) !important;
}

[data-theme="dark"] .status-legend--compact strong,
[data-bs-theme="dark"] .status-legend--compact strong,
.dark .status-legend--compact strong {
  color: var(--text-primary) !important;
}

/* List Groups & Tables */

[data-theme="dark"] .list-group-item,
[data-bs-theme="dark"] .list-group-item,
.dark .list-group-item {
  background-color: var(--bg-surface) !important;
  border-color: var(--border-subtle) !important;
  color: var(--text-primary) !important;
}

[data-theme="dark"] .table,
[data-bs-theme="dark"] .table,
.dark .table {
  color: var(--text-primary) !important;
  border-color: var(--border-subtle) !important;
}

[data-theme="dark"] .table > :not(caption) > * > *,
[data-bs-theme="dark"] .table > :not(caption) > * > *,
.dark .table > :not(caption) > * > * {
  background-color: transparent !important;
  border-color: var(--border-subtle) !important;
  color: var(--text-primary) !important;
}

[data-theme="dark"] .table thead th,
[data-bs-theme="dark"] .table thead th,
.dark .table thead th {
  background-color: var(--bg-subtle) !important;
  color: var(--text-muted) !important;
  border-bottom-color: var(--border-subtle) !important;
}

[data-theme="dark"] .table-hover > tbody > tr:hover > *,
[data-bs-theme="dark"] .table-hover > tbody > tr:hover > *,
.dark .table-hover > tbody > tr:hover > * {
  background-color: rgba(255, 255, 255, 0.04) !important;
}

/* Generic Utility Overrides in Dark Mode */

[data-theme="dark"] .bg-white,
[data-theme="dark"] .bg-light,
[data-bs-theme="dark"] .bg-white,
[data-bs-theme="dark"] .bg-light,
.dark .bg-white,
.dark .bg-light {
  background-color: var(--bg-surface) !important;
  color: var(--text-primary) !important;
}

[data-theme="dark"] .border-light,
[data-bs-theme="dark"] .border-light,
.dark .border-light {
  border-color: var(--border-subtle) !important;
}

[data-theme="dark"] .text-dark,
[data-theme="dark"] .tfd-heading,
[data-theme="dark"] .tfd-text-title,
[data-bs-theme="dark"] .text-dark,
[data-bs-theme="dark"] .tfd-heading,
[data-bs-theme="dark"] .tfd-text-title,
.dark .text-dark,
.dark .tfd-heading,
.dark .tfd-text-title {
  color: var(--text-primary) !important;
}

[data-theme="dark"] .text-muted,
[data-theme="dark"] .tfd-subheading,
[data-theme="dark"] .tfd-text-muted,
[data-bs-theme="dark"] .text-muted,
[data-bs-theme="dark"] .tfd-subheading,
[data-bs-theme="dark"] .tfd-text-muted,
.dark .text-muted,
.dark .tfd-subheading,
.dark .tfd-text-muted {
  color: var(--text-muted) !important;
}

/* Icon Badges */

[data-theme="dark"] .tfd-icon-badge,
[data-bs-theme="dark"] .tfd-icon-badge,
.dark .tfd-icon-badge {
  background-color: var(--bg-subtle) !important;
  border-color: var(--border-subtle) !important;
  color: var(--text-primary) !important;
}

/* KPI Stat Cards in Dashboard */

[data-theme="dark"] body.app-shell .tfd-module-page--dashboard .dashboard-stat-card,
[data-bs-theme="dark"] body.app-shell .tfd-module-page--dashboard .dashboard-stat-card,
.dark body.app-shell .tfd-module-page--dashboard .dashboard-stat-card {
  background-color: var(--bg-surface) !important;
  border-color: var(--border-subtle) !important;
}

[data-theme="dark"] body.app-shell .tfd-module-page--dashboard .dashboard-stat-card h4,
[data-bs-theme="dark"] body.app-shell .tfd-module-page--dashboard .dashboard-stat-card h4,
.dark body.app-shell .tfd-module-page--dashboard .dashboard-stat-card h4 {
  color: var(--text-primary) !important;
}

[data-theme="dark"] body.app-shell .tfd-module-page--dashboard .dashboard-stat-card p,
[data-bs-theme="dark"] body.app-shell .tfd-module-page--dashboard .dashboard-stat-card p,
.dark body.app-shell .tfd-module-page--dashboard .dashboard-stat-card p {
  color: var(--text-muted) !important;
}

/* Dropdowns & Autocomplete */

[data-theme="dark"] .dropdown-item,
[data-bs-theme="dark"] .dropdown-item,
.dark .dropdown-item {
  color: var(--text-primary) !important;
}

[data-theme="dark"] .dropdown-item:hover,
[data-bs-theme="dark"] .dropdown-item:hover,
.dark .dropdown-item:hover {
  background-color: var(--bg-subtle) !important;
  color: var(--eos-blue-iris) !important;
}

/* Modals */

[data-theme="dark"] .modal-content,
[data-bs-theme="dark"] .modal-content,
.dark .modal-content {
  background-color: var(--bg-surface) !important;
  border-color: var(--border-subtle) !important;
  color: var(--text-primary) !important;
}

[data-theme="dark"] .modal-header,
[data-theme="dark"] .modal-footer,
[data-bs-theme="dark"] .modal-header,
[data-bs-theme="dark"] .modal-footer,
.dark .modal-header,
.dark .modal-footer {
  background-color: var(--bg-subtle) !important;
  border-color: var(--border-subtle) !important;
  color: var(--text-primary) !important;
}

/* Footer */

[data-theme="dark"] .app-footer,
[data-bs-theme="dark"] .app-footer,
.dark .app-footer {
  border-top-color: var(--border-subtle) !important;
  color: var(--text-muted) !important;
}

[data-theme="dark"] .app-footer__label,
[data-bs-theme="dark"] .app-footer__label,
.dark .app-footer__label {
  color: var(--text-primary) !important;
}
    
