/* MyHostFleet brand system v2.
   Tokens are centralized here so page styles can inherit the same shell, theme,
   spacing, surface, badge, form, and action language. */
:root {
  --hf-font-sans: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  --hf-font-display: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;

  --hf-primary: #1A3CFF;
  --hf-primary-hover: #1230D4;
  --hf-primary-bright: #257BFF;
  --hf-accent: #00D1C1;
  --hf-indigo: #4D2CFF;
  --hf-success-strong: #15803D;
  --hf-warning-strong: #B45309;
  --hf-danger-strong: #B91C1C;

  --hf-bg-app: #F6F8FC;
  --hf-bg-app-soft: #EEF4FF;
  --hf-bg-sidebar: rgba(255,255,255,.94);
  --hf-bg-surface: #FFFFFF;
  --hf-bg-elevated: #FFFFFF;
  --hf-bg-muted: #F1F5F9;
  --hf-bg-hover: #EEF4FF;
  --hf-bg-active: #E5EDFF;
  --hf-border-subtle: #DDE5F0;
  --hf-border-strong: #C8D3E3;
  --hf-text-primary: #0B1320;
  --hf-text-secondary: #64748B;
  --hf-text-muted: #94A3B8;
  --hf-text-inverse: #FFFFFF;

  --hf-success-bg: #EAFBF1;
  --hf-success-text: #166534;
  --hf-warning-bg: #FFF7E6;
  --hf-warning-text: #92400E;
  --hf-danger-bg: #FEECEC;
  --hf-danger-text: #B91C1C;
  --hf-info-bg: #EAF3FF;
  --hf-info-text: #1D4ED8;

  --hf-space-1: 4px;
  --hf-space-2: 8px;
  --hf-space-3: 12px;
  --hf-space-4: 16px;
  --hf-space-5: 20px;
  --hf-space-6: 24px;
  --hf-space-8: 32px;
  --hf-radius-xs: 6px;
  --hf-radius-sm: 8px;
  --hf-radius-md: 12px;
  --hf-radius-lg: 16px;
  --hf-radius-xl: 20px;
  --hf-radius-2xl: 24px;
  --hf-shadow-xs: 0 1px 2px rgba(11,19,32,.06);
  --hf-shadow-sm: 0 8px 24px rgba(11,19,32,.07);
  --hf-shadow-md: 0 18px 44px rgba(11,19,32,.10);
  --hf-focus-ring: 0 0 0 3px rgba(37,123,255,.22);
  --hf-sidebar-expanded: 244px;
  --hf-sidebar-collapsed: 76px;
  --hf-topbar-height: 64px;
  --hf-z-sidebar: 1040;
  --hf-z-dropdown: 1060;
  --hf-z-modal: 1080;
  --hf-transition-fast: 150ms ease;
  --hf-transition: 220ms ease;

  --hf-surface: var(--hf-bg-app);
  --hf-surface-low: var(--hf-bg-surface);
  --hf-surface-high: var(--hf-bg-muted);
  --hf-surface-highest: #E7EEF8;
  --hf-surface-lowest: #FFFFFF;
  --hf-surface-variant: #EAF0F8;
  --hf-on-surface: var(--hf-text-primary);
  --hf-on-surface-muted: var(--hf-text-secondary);
  --hf-outline-soft: rgba(100,116,139,.22);
  --hf-primary-strong: var(--hf-primary-hover);
  --hf-primary-soft: rgba(26,60,255,.10);
  --hf-secondary: var(--hf-info-bg);
  --hf-secondary-strong: var(--hf-primary-bright);
  --hf-tertiary: var(--hf-warning-bg);
  --hf-tertiary-strong: var(--hf-warning-text);
  --hf-danger: var(--hf-danger-bg);
  --hf-success: var(--hf-success-bg);
  --hf-shadow: var(--hf-shadow-md);
  --hf-shadow-soft: var(--hf-shadow-sm);

  --hf-d-bg: var(--hf-bg-app);
  --hf-d-surface: var(--hf-bg-surface);
  --hf-d-surface-high: var(--hf-bg-muted);
  --hf-d-surface-highest: #E7EEF8;
  --hf-d-surface-lowest: #FFFFFF;
  --hf-d-text: var(--hf-text-primary);
  --hf-d-muted: var(--hf-text-secondary);
  --hf-d-outline: rgba(100,116,139,.22);
  --hf-d-primary: var(--hf-primary);
  --hf-d-primary-soft: rgba(26,60,255,.10);
  --hf-d-cyan: var(--hf-primary-bright);
  --hf-d-cyan-soft: rgba(37,123,255,.12);
  --hf-d-orange: var(--hf-warning-strong);
  --hf-d-red: var(--hf-danger-strong);
  --hf-d-green: var(--hf-success-strong);

  color-scheme: light;
}

html[data-hf-theme="dark"] {
  --hf-bg-app: #050B18;
  --hf-bg-app-soft: #081326;
  --hf-bg-sidebar: rgba(8,17,31,.96);
  --hf-bg-surface: #0B1320;
  --hf-bg-elevated: #111C2F;
  --hf-bg-muted: #13223A;
  --hf-bg-hover: #162A48;
  --hf-bg-active: #163269;
  --hf-border-subtle: #1F3048;
  --hf-border-strong: #2D4564;
  --hf-text-primary: #F8FAFC;
  --hf-text-secondary: #A9B7CC;
  --hf-text-muted: #718198;
  --hf-success-bg: rgba(34,197,94,.13);
  --hf-success-text: #86EFAC;
  --hf-warning-bg: rgba(245,158,11,.14);
  --hf-warning-text: #FCD34D;
  --hf-danger-bg: rgba(239,68,68,.14);
  --hf-danger-text: #FCA5A5;
  --hf-info-bg: rgba(37,123,255,.15);
  --hf-info-text: #93C5FD;
  --hf-shadow-xs: 0 1px 2px rgba(0,0,0,.22);
  --hf-shadow-sm: 0 12px 32px rgba(0,0,0,.28);
  --hf-shadow-md: 0 20px 56px rgba(0,0,0,.34);
  --hf-primary-hover: #5F8FFF;
  color-scheme: dark;
}

body.hf-fullwidth-page {
  background:
    linear-gradient(180deg, var(--hf-bg-app) 0%, var(--hf-bg-app-soft) 100%) !important;
  color: var(--hf-text-primary);
  font-family: var(--hf-font-sans);
  letter-spacing: 0;
  overflow-x: hidden;
}

html[data-hf-theme="dark"] body.hf-fullwidth-page {
  background:
    radial-gradient(circle at 18% 0%, rgba(26,60,255,.18), transparent 28%),
    radial-gradient(circle at 88% 8%, rgba(0,209,193,.10), transparent 24%),
    linear-gradient(180deg, #050B18 0%, #081326 100%) !important;
}

body.hf-fullwidth-page *,
body.hf-fullwidth-page *::before,
body.hf-fullwidth-page *::after {
  box-sizing: border-box;
}

body.hf-fullwidth-page .material-symbols-rounded,
body.hf-fullwidth-page .material-symbols-outlined,
body:not(.customers) #wrapper .content .hf-admin-dashboard .material-symbols-rounded,
body:not(.customers) #wrapper .content .hf-binding-options .material-symbols-rounded {
  font-family: "Material Symbols Rounded";
  font-size: 20px;
  font-weight: normal;
  font-style: normal;
  line-height: 1;
  letter-spacing: 0;
  text-transform: none;
  display: inline-flex;
  white-space: nowrap;
  word-wrap: normal;
  direction: ltr;
  font-variation-settings: "FILL" 0, "wght" 430, "GRAD" 0, "opsz" 24;
  -webkit-font-smoothing: antialiased;
}

.hf-dashboard-wrap.hf-page {
  display: grid;
  grid-template-columns: var(--hf-sidebar-expanded) minmax(0,1fr);
  gap: var(--hf-space-5);
  min-height: calc(100vh - 82px);
  padding: var(--hf-space-5);
}

html[data-hf-sidebar="collapsed"] .hf-dashboard-wrap.hf-page {
  grid-template-columns: var(--hf-sidebar-collapsed) minmax(0,1fr);
}

.hf-app-main {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: var(--hf-space-4);
}

.hf-app-topbar {
  position: relative;
  z-index: 60;
  min-height: var(--hf-topbar-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--hf-space-4);
  padding: 10px 14px 10px 18px;
  border: 1px solid var(--hf-border-subtle);
  border-radius: var(--hf-radius-xl);
  background: color-mix(in srgb, var(--hf-bg-surface) 88%, transparent);
  box-shadow: var(--hf-shadow-xs);
  backdrop-filter: blur(14px);
}

.hf-app-context {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.hf-app-eyebrow {
  color: var(--hf-text-muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  line-height: 1.2;
  text-transform: uppercase;
}

.hf-app-title {
  color: var(--hf-text-primary);
  font-size: 18px;
  font-weight: 750;
  line-height: 1.25;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hf-app-tools,
.hf-theme-switcher {
  display: flex;
  align-items: center;
  gap: var(--hf-space-2);
}

.hf-app-tools {
  position: relative;
  z-index: 2;
  flex: 1 1 auto;
  min-width: 0;
  justify-content: flex-end;
  overflow: hidden;
}

.hf-app-page-actions {
  display: none;
}

.hf-theme-switcher,
.hf-app-tools > .hf-iconbtn,
.hf-profile-chip {
  flex: 0 0 auto;
}

.hf-page-topbar-search,
.hf-page-topbar-actions {
  display: flex;
  align-items: center;
  gap: var(--hf-space-2);
  min-width: 0;
}

.hf-page-topbar-actions {
  flex: 0 1 auto;
  overflow: hidden;
}

.hf-app-tools:has(#hfBtnImportIncomeTuro),
.hf-page-topbar-actions:has(#hfBtnImportIncomeTuro) {
  overflow: visible !important;
}

.hf-page-topbar-actions:has(#hfBtnImportIncomeTuro) {
  flex: 1 1 auto;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.hf-page-topbar-actions:has(#hfBtnImportIncomeTuro) #hfIncomeTuroYear {
  display: inline-flex !important;
  flex: 0 0 104px !important;
  width: 104px !important;
  min-width: 104px !important;
  max-width: 104px !important;
  height: 38px !important;
  min-height: 38px !important;
  padding: 0 30px 0 12px !important;
  font-size: 13px !important;
  line-height: 38px !important;
  box-sizing: border-box !important;
}

.hf-page-topbar-actions:has(#hfBtnImportIncomeTuro) .bootstrap-select:has(#hfIncomeTuroYear) {
  flex: 0 0 104px !important;
  width: 104px !important;
  min-width: 104px !important;
  max-width: 104px !important;
  height: 38px !important;
  z-index: 70 !important;
}

.hf-page-topbar-actions:has(#hfBtnImportIncomeTuro) .bootstrap-select:has(#hfIncomeTuroYear) > .dropdown-toggle {
  width: 104px !important;
  min-width: 104px !important;
  max-width: 104px !important;
  height: 38px !important;
  min-height: 38px !important;
  padding: 0 28px 0 12px !important;
  line-height: 38px !important;
  box-sizing: border-box !important;
}

.hf-page-topbar-actions:has(#hfBtnImportIncomeTuro) .bootstrap-select:has(#hfIncomeTuroYear) > .dropdown-menu {
  z-index: 1070 !important;
}

.hf-page-topbar-search .hf-table-searchrow,
.hf-page-topbar-search .hf-searchrow {
  display: flex !important;
  align-items: center !important;
  flex: 0 0 auto !important;
  gap: 0 !important;
  margin: 0 !important;
  width: min(30vw, 320px) !important;
  min-width: 220px !important;
  max-width: 320px !important;
}

.hf-page-topbar-search .hf-table-search,
.hf-page-topbar-search .hf-search {
  width: 100% !important;
  height: 40px !important;
  min-height: 40px !important;
  margin: 0 !important;
  padding: 0 10px !important;
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  border: 1px solid var(--hf-border-subtle) !important;
  border-radius: var(--hf-radius-md) !important;
  background: var(--hf-bg-muted) !important;
  color: var(--hf-text-secondary) !important;
  box-shadow: none !important;
}

.hf-page-topbar-search .hf-table-search input,
.hf-page-topbar-search .hf-search input {
  flex: 1 1 auto !important;
  width: auto !important;
  min-width: 0 !important;
  height: 38px !important;
  min-height: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  outline: 0 !important;
  background: transparent !important;
  color: var(--hf-text-primary) !important;
  font: inherit !important;
  font-size: 13px !important;
  line-height: 38px !important;
}

.hf-page-topbar-search .hf-table-search input::placeholder,
.hf-page-topbar-search .hf-search input::placeholder {
  color: var(--hf-text-muted) !important;
}

.hf-page-topbar-search .material-symbols-rounded,
.hf-page-topbar-search .material-symbols-outlined {
  flex: 0 0 auto !important;
  font-size: 18px !important;
  line-height: 1 !important;
  color: var(--hf-text-secondary) !important;
  order: 0 !important;
}

.hf-page-topbar-search .hf-table-search input,
.hf-page-topbar-search .hf-search input {
  order: 1 !important;
}

body.hf-fullwidth-page .hf-page-topbar-search .hf-table-search input,
body.hf-fullwidth-page .hf-page-topbar-search .hf-search input,
body.hf-fullwidth-page .hf-global-search input[type="search"] {
  min-height: 0 !important;
  height: 38px !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  outline: 0 !important;
  -webkit-appearance: none;
  appearance: none;
}

.hf-page-topbar-actions .hf-primary,
.hf-page-topbar-actions .hf-smallbtn,
.hf-page-topbar-actions .hf-cleanup-btn,
.hf-page-topbar-actions .hf-filterbtn,
.hf-page-topbar-actions .hf-icon-text-btn {
  min-height: 40px;
  max-width: 180px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hf-page-topbar-actions .hf-primary span:not(.material-symbols-rounded):not(.material-symbols-outlined),
.hf-page-topbar-actions .hf-smallbtn span:not(.material-symbols-rounded):not(.material-symbols-outlined),
.hf-page-topbar-actions .hf-cleanup-btn span:not(.material-symbols-rounded):not(.material-symbols-outlined),
.hf-page-topbar-actions .hf-filterbtn span:not(.material-symbols-rounded):not(.material-symbols-outlined),
.hf-page-topbar-actions .hf-icon-text-btn span:not(.material-symbols-rounded):not(.material-symbols-outlined) {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hf-page-topbar-actions #hfBtnImportIncomeTuro,
.hf-page-topbar-actions #hfBtnPickIncomeCsv,
.hf-page-topbar-actions #hfBtnImportIncomeCsv,
.hf-income-page #hfBtnImportIncomeTuro,
.hf-income-page #hfBtnPickIncomeCsv,
.hf-income-page #hfBtnImportIncomeCsv {
  width: auto !important;
  max-width: none !important;
  min-width: max-content !important;
  height: auto !important;
  overflow: visible !important;
  text-overflow: clip !important;
  white-space: nowrap !important;
  line-height: 1.2 !important;
  padding-left: 12px !important;
  padding-right: 12px !important;
}

.hf-page-topbar-actions #hfBtnImportIncomeTuro span,
.hf-page-topbar-actions #hfBtnPickIncomeCsv span,
.hf-page-topbar-actions #hfBtnImportIncomeCsv span,
.hf-income-page #hfBtnImportIncomeTuro span,
.hf-income-page #hfBtnPickIncomeCsv span,
.hf-income-page #hfBtnImportIncomeCsv span {
  min-width: auto !important;
  overflow: visible !important;
  text-overflow: clip !important;
  white-space: inherit !important;
}

.hf-global-search {
  width: min(30vw, 320px);
  min-width: 220px;
  height: 40px;
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 10px;
  border: 1px solid var(--hf-border-subtle);
  border-radius: var(--hf-radius-md);
  background: var(--hf-bg-muted);
  color: var(--hf-text-secondary);
}

.hf-global-search input {
  min-width: 0;
  width: 100%;
  border: 0 !important;
  background: transparent !important;
  color: var(--hf-text-primary) !important;
  font-size: 13px;
  font-weight: 600;
  outline: none;
}

.hf-global-search-results {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  z-index: var(--hf-z-dropdown);
  padding: 6px;
  border: 1px solid var(--hf-border-subtle);
  border-radius: var(--hf-radius-lg);
  background: var(--hf-bg-elevated);
  box-shadow: var(--hf-shadow-md);
}

.hf-global-search-results button {
  width: 100%;
  min-height: 38px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border: 0;
  border-radius: var(--hf-radius-md);
  background: transparent;
  color: var(--hf-text-primary);
  font-size: 13px;
  font-weight: 650;
  text-align: left;
}

.hf-global-search-results button:hover,
.hf-global-search-results button:focus-visible {
  background: var(--hf-bg-hover);
  color: var(--hf-primary);
  outline: none;
}

.hf-theme-switcher {
  padding: 4px;
  border: 1px solid var(--hf-border-subtle);
  border-radius: var(--hf-radius-lg);
  background: var(--hf-bg-muted);
}

.hf-theme-switcher button,
.hf-iconbtn,
.hf-icon-action,
.hf-mapchip,
.hf-map-fab {
  min-width: 40px;
  min-height: 40px;
  border: 1px solid var(--hf-border-subtle);
  border-radius: var(--hf-radius-md);
  background: var(--hf-bg-surface);
  color: var(--hf-text-secondary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: background var(--hf-transition-fast), border-color var(--hf-transition-fast), color var(--hf-transition-fast), transform var(--hf-transition-fast), box-shadow var(--hf-transition-fast);
}

.hf-theme-switcher button {
  min-width: 36px;
  min-height: 32px;
  border-color: transparent;
  background: transparent;
  cursor: pointer;
}

.hf-theme-switcher button:hover,
.hf-theme-switcher button.is-active,
.hf-iconbtn:hover,
.hf-icon-action:hover,
.hf-mapchip:hover,
.hf-map-fab:hover {
  background: var(--hf-bg-hover);
  color: var(--hf-primary);
  border-color: color-mix(in srgb, var(--hf-primary) 28%, var(--hf-border-subtle));
}

.hf-theme-switcher button.is-active {
  background: var(--hf-bg-surface);
  box-shadow: var(--hf-shadow-xs);
}

.hf-dashboard-page .hf-top-actions .hf-iconbtn {
  background: var(--hf-bg-surface) !important;
  border-color: var(--hf-border-subtle) !important;
  color: var(--hf-text-secondary) !important;
}

.hf-dashboard-page .hf-top-actions .hf-iconbtn:hover,
.hf-dashboard-page .hf-top-actions .hf-iconbtn:focus-visible {
  background: var(--hf-bg-hover) !important;
  border-color: color-mix(in srgb, var(--hf-primary) 28%, var(--hf-border-subtle)) !important;
  color: var(--hf-primary) !important;
}

.hf-dashboard-page .hf-card-photo {
  background: var(--hf-bg-muted) !important;
  border-color: var(--hf-border-subtle) !important;
  color: var(--hf-text-tertiary) !important;
}

.hf-side {
  width: var(--hf-sidebar-expanded) !important;
  flex: 0 0 var(--hf-sidebar-expanded) !important;
  min-height: calc(100vh - 40px);
  max-height: calc(100vh - 40px);
  overflow: auto;
  position: sticky;
  top: 20px;
  z-index: var(--hf-z-sidebar);
  padding: 16px 12px;
  border: 1px solid var(--hf-border-subtle);
  border-radius: var(--hf-radius-2xl);
  background: var(--hf-bg-sidebar) !important;
  box-shadow: var(--hf-shadow-md);
}

html[data-hf-sidebar="collapsed"] .hf-side {
  width: var(--hf-sidebar-collapsed) !important;
  flex-basis: var(--hf-sidebar-collapsed) !important;
  padding-left: 10px;
  padding-right: 10px;
}

@media (min-width: 1201px) {
  .hf-dashboard-wrap.hf-page {
    height: auto;
    min-height: 0;
    box-sizing: border-box;
    align-items: start;
    overflow: visible;
  }

  .hf-side {
    height: auto;
    min-height: 0;
    max-height: none;
    align-self: start;
    overflow: visible;
  }

  .hf-app-main {
    min-height: 0;
    height: var(--hf-sidebar-menu-height, auto);
  }

  .hf-app-main {
    overflow: hidden;
    max-height: var(--hf-sidebar-menu-height, none);
  }

  .hf-app-main > #hfClientContent {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
    height: auto;
    overflow: hidden;
  }

  .hf-app-main > #hfClientContent > [data-hf-page-root] {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
    height: 100%;
  }

  .hf-dashboard-page,
  .hf-dashboard-page .hf-main {
    min-height: 0;
    height: 100%;
  }

  .hf-dashboard-page .hf-main {
    display: flex;
    flex-direction: column;
    overflow: hidden;
  }

  .hf-dashboard-page .hf-body {
    flex: 1 1 auto;
    min-height: 0;
    min-height: 640px;
    align-items: stretch;
    overflow: hidden;
  }

  .hf-dashboard-page .hf-leftpanel {
    align-self: stretch;
    display: flex;
    flex-direction: column;
    min-height: 0;
    max-height: none !important;
    overflow: hidden;
  }

  .hf-dashboard-page #hfCards {
    flex: 1 1 auto;
    min-height: 0;
    height: 100%;
    overflow: auto;
    padding-right: 6px;
  }

  body.hf-fullwidth-page .hf-bookings-page,
  body.hf-fullwidth-page .hf-vehicles-page,
  body.hf-fullwidth-page .hf-shared-access-page,
  body.hf-fullwidth-page .hf-integrations-page,
  body.hf-fullwidth-page .hf-settings-page,
  body.hf-fullwidth-page .hf-notifications-page,
  body.hf-fullwidth-page .hf-customers-page,
  body.hf-fullwidth-page .hf-costs-content,
  body.hf-fullwidth-page .hf-income-content,
  body.hf-fullwidth-page .hf-reports-content,
  body.hf-fullwidth-page .hf-calendar-content,
  body.hf-fullwidth-page .hf-turo-messages-page,
  body.hf-fullwidth-page .hf-geofences-page {
    height: 100%;
    min-height: 0;
    max-height: none;
    overflow: auto;
  }
}

.hf-brand {
  min-height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 4px 8px 18px !important;
}

.hf-brand a {
  min-width: 0;
  display: flex;
  align-items: center;
  text-decoration: none;
}

.hf-brand-logo {
  display: block;
  width: 172px;
  max-width: 100%;
  height: auto;
}

.hf-brand-symbol {
  display: none;
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.hf-brand-logo-dark {
  display: none;
}

html[data-hf-theme="dark"] .hf-brand-logo-dark {
  display: none;
}

html[data-hf-theme="dark"] .hf-brand-logo-light {
  display: block;
  filter: brightness(0) invert(1) contrast(1.08);
}

html[data-hf-theme="dark"] .hf-brand-symbol-dark {
  display: none;
}

.hf-sidebar-collapse {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  border: 1px solid var(--hf-border-subtle);
  border-radius: var(--hf-radius-md);
  background: var(--hf-bg-muted);
  color: var(--hf-text-secondary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.hf-sidebar-collapse:hover,
.hf-sidebar-collapse:focus-visible {
  background: var(--hf-bg-hover);
  color: var(--hf-primary);
  outline: none;
  box-shadow: var(--hf-focus-ring);
}

html[data-hf-sidebar="collapsed"] .hf-brand {
  justify-content: center;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

html[data-hf-sidebar="collapsed"] .hf-brand-logo {
  display: none !important;
}

html[data-hf-sidebar="collapsed"] .hf-brand-symbol-light {
  display: block;
}

html[data-hf-theme="dark"][data-hf-sidebar="collapsed"] .hf-brand-symbol-light {
  display: block;
  filter: brightness(0) invert(1) contrast(1.08);
}

html[data-hf-theme="dark"][data-hf-sidebar="collapsed"] .hf-brand-symbol-dark {
  display: none;
}

html[data-hf-sidebar="collapsed"] .hf-sidebar-collapse {
  position: absolute;
  right: -13px;
  top: 22px;
  background: var(--hf-bg-elevated);
  box-shadow: var(--hf-shadow-xs);
}

.hf-nav {
  display: flex;
  flex-direction: column;
  gap: 4px !important;
}

.hf-nav-section {
  margin: 14px 10px 6px;
  color: var(--hf-text-muted);
  font-size: 11px;
  font-weight: 750;
  letter-spacing: .08em;
  line-height: 1.2;
  text-transform: uppercase;
}

html[data-hf-sidebar="collapsed"] .hf-nav-section {
  height: 1px;
  margin: 10px 14px 8px;
  overflow: hidden;
  padding: 0;
  background: var(--hf-border-subtle);
  color: transparent;
}

.hf-side .hf-nav a,
.hf-side .hf-account-nav a {
  display: flex;
  align-items: center;
  min-height: 40px;
  gap: 10px !important;
  padding: 9px 10px !important;
  border-radius: var(--hf-radius-md) !important;
  color: var(--hf-text-secondary) !important;
  font-weight: 650;
  text-decoration: none;
}

html[data-hf-sidebar="collapsed"] .hf-side .hf-nav a,
html[data-hf-sidebar="collapsed"] .hf-side .hf-account-nav a {
  width: 44px;
  height: 44px;
  min-height: 44px;
  justify-content: center;
  padding: 0 !important;
}

.hf-side .hf-nav a:hover,
.hf-side .hf-account-nav a:hover {
  background: var(--hf-bg-hover) !important;
  color: var(--hf-text-primary) !important;
  transform: none !important;
}

.hf-side .hf-nav a.active,
.hf-side .hf-account-nav a.active {
  background: var(--hf-bg-active) !important;
  color: var(--hf-primary) !important;
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--hf-primary) 18%, transparent) !important;
}

.hf-account-nav {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--hf-border-subtle);
}

.hf-account-nav .hf-nav-section {
  margin-bottom: 6px;
}

.hf-account-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

html[data-hf-sidebar="collapsed"] .hf-account-nav {
  margin-top: 10px;
  padding-top: 0;
  border-top: 0;
}

.hf-nav-ico {
  width: 20px !important;
  height: 20px !important;
  flex: 0 0 20px !important;
  align-items: center;
  justify-content: center;
}

.hf-side .hf-nav a span:last-child,
.hf-side .hf-account-nav a span:last-child {
  font-size: 13px !important;
  line-height: 1.2 !important;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

html[data-hf-sidebar="collapsed"] .hf-side .hf-nav a span:last-child,
html[data-hf-sidebar="collapsed"] .hf-side .hf-account-nav a span:last-child {
  width: 1px;
  height: 1px;
  position: absolute;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.hf-profile-chip {
  min-width: 40px;
  max-width: 190px;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 10px 4px 4px;
  border: 1px solid var(--hf-border-subtle);
  border-radius: var(--hf-radius-lg);
  background: var(--hf-bg-surface);
  color: var(--hf-text-primary);
  text-decoration: none;
}

.hf-profile-chip:hover,
.hf-profile-chip:focus-visible {
  background: var(--hf-bg-hover);
  color: var(--hf-primary);
  outline: none;
  box-shadow: var(--hf-focus-ring);
  text-decoration: none;
}

.hf-profile-avatar {
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--hf-radius-md);
  background: linear-gradient(135deg, var(--hf-primary) 0%, var(--hf-accent) 100%);
  color: var(--hf-text-inverse);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
}

.hf-profile-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
  font-weight: 700;
}

.hf-content,
.hf-panel,
.hf-tablewrap,
.hf-customers-shell,
.hf-turo-messages-shell,
.hf-dashboard-page .hf-card,
.hf-dashboard-page .hf-mapwrap,
.hf-drawer,
.hf-action-confirm,
.hf-turo-import-modal,
.hf-service-drawer {
  background: var(--hf-bg-surface) !important;
  border-color: var(--hf-border-subtle) !important;
  color: var(--hf-text-primary) !important;
  box-shadow: var(--hf-shadow-sm) !important;
}

.hf-content {
  max-height: none !important;
  border-radius: var(--hf-radius-2xl) !important;
}

.hf-action-confirm[aria-hidden="true"]:not(.open),
.hf-drawer[aria-hidden="true"]:not(.open),
.hf-turo-import-modal[aria-hidden="true"]:not(.open),
.hf-service-drawer[aria-hidden="true"]:not(.open) {
  display: none !important;
}

.hf-page-title,
.hf-dashboard-page .hf-topbar h1,
.hf-settings-hero h1,
.hf-panel-head h3,
.hf-drawer-title,
.hf-action-confirm h3 {
  color: var(--hf-text-primary) !important;
  font-family: var(--hf-font-display) !important;
  letter-spacing: 0 !important;
}

.hf-page-title {
  font-size: clamp(28px, 3vw, 32px) !important;
  line-height: 1.12 !important;
}

.hf-dashboard-page .hf-topbar h1 {
  font-size: clamp(30px, 3vw, 36px) !important;
}

.hf-topbar-kicker,
.hf-settings-eyebrow,
.hf-help,
.hf-sub,
.hf-vehicle-card-subtitle,
.hf-vehicle-snapshot-inline {
  color: var(--hf-text-secondary) !important;
}

.hf-primary,
.hf-btn-view {
  min-height: 40px;
  border: 1px solid color-mix(in srgb, var(--hf-primary) 45%, transparent) !important;
  border-radius: var(--hf-radius-md) !important;
  background: linear-gradient(180deg, var(--hf-primary-bright) 0%, var(--hf-primary) 100%) !important;
  color: var(--hf-text-inverse) !important;
  box-shadow: 0 10px 24px rgba(26,60,255,.20) !important;
}

.hf-smallbtn,
.hf-btn,
.hf-btn-ghost,
.hf-pager-btn,
.hf-theme-option {
  min-height: 40px;
  border: 1px solid var(--hf-border-subtle) !important;
  border-radius: var(--hf-radius-md) !important;
  background: var(--hf-bg-surface) !important;
  color: var(--hf-text-primary) !important;
}

.hf-primary:hover,
.hf-smallbtn:hover,
.hf-btn:hover {
  transform: translateY(-1px);
}

.hf-table-search,
.hf-search,
.hf-formgroup input,
.hf-formgroup select,
.hf-formgroup textarea,
.form-control,
body.hf-fullwidth-page input[type="text"],
body.hf-fullwidth-page input[type="email"],
body.hf-fullwidth-page input[type="number"],
body.hf-fullwidth-page input[type="date"],
body.hf-fullwidth-page input[type="datetime-local"],
body.hf-fullwidth-page input[type="url"],
body.hf-fullwidth-page select,
body.hf-fullwidth-page textarea {
  min-height: 40px;
  border: 1px solid var(--hf-border-subtle) !important;
  border-radius: var(--hf-radius-md) !important;
  background: var(--hf-bg-muted) !important;
  color: var(--hf-text-primary) !important;
}

.hf-table-search input,
.hf-search input {
  min-height: auto;
  border: 0 !important;
  background: transparent !important;
}

body.hf-fullwidth-page input:focus,
body.hf-fullwidth-page select:focus,
body.hf-fullwidth-page textarea:focus,
.hf-iconbtn:focus-visible,
.hf-icon-action:focus-visible,
.hf-primary:focus-visible,
.hf-smallbtn:focus-visible,
.hf-theme-switcher button:focus-visible,
.hf-side .hf-nav a:focus-visible {
  outline: none;
  box-shadow: var(--hf-focus-ring) !important;
}

.hf-pill,
.hf-badge,
.hf-state-pill,
.hf-vehicle-status,
.hf-mobile-chip {
  min-height: 24px;
  border-radius: 999px !important;
  padding: 4px 9px !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  line-height: 1.25 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  white-space: nowrap;
}

.hf-vehicle-status-available,
.hf-pill.status-driving,
.hf-pill.is-success {
  background: var(--hf-success-bg) !important;
  color: var(--hf-success-text) !important;
  border-color: color-mix(in srgb, var(--hf-success-text) 24%, transparent) !important;
}

.hf-vehicle-status-rented,
.hf-pill.is-info {
  background: var(--hf-info-bg) !important;
  color: var(--hf-info-text) !important;
  border-color: color-mix(in srgb, var(--hf-info-text) 24%, transparent) !important;
}

.hf-vehicle-status-maintenance,
.hf-pill.is-warning {
  background: var(--hf-warning-bg) !important;
  color: var(--hf-warning-text) !important;
  border-color: color-mix(in srgb, var(--hf-warning-text) 24%, transparent) !important;
}

.hf-vehicle-status-offline,
.hf-vehicle-status-unknown,
.hf-vehicle-status-archived {
  background: var(--hf-bg-muted) !important;
  color: var(--hf-text-secondary) !important;
  border-color: var(--hf-border-subtle) !important;
}

.hf-dashboard-page .hf-body {
  grid-template-columns: minmax(480px, 520px) minmax(0,1fr) !important;
  gap: var(--hf-space-4) !important;
}

.hf-dashboard-page .hf-kpi-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(120px,1fr));
  gap: var(--hf-space-3);
  margin: 0 0 var(--hf-space-4);
}

.hf-dashboard-page .hf-kpi-card {
  min-height: 76px;
  display: flex;
  align-items: center;
  gap: var(--hf-space-3);
  padding: 14px;
  border: 1px solid var(--hf-border-subtle);
  border-radius: var(--hf-radius-lg);
  background: var(--hf-bg-surface);
  box-shadow: var(--hf-shadow-xs);
}

.hf-dashboard-page .hf-kpi-icon {
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  border-radius: var(--hf-radius-md);
  align-items: center;
  justify-content: center;
  background: var(--hf-info-bg);
  color: var(--hf-info-text);
}

.hf-dashboard-page .hf-kpi-success .hf-kpi-icon {
  background: var(--hf-success-bg);
  color: var(--hf-success-text);
}

.hf-dashboard-page .hf-kpi-danger .hf-kpi-icon {
  background: var(--hf-danger-bg);
  color: var(--hf-danger-text);
}

.hf-dashboard-page .hf-kpi-card strong {
  display: block;
  color: var(--hf-text-primary);
  font-size: 26px;
  font-weight: 800;
  line-height: 1;
}

.hf-dashboard-page .hf-kpi-card span:not(.hf-kpi-icon) {
  display: block;
  margin-top: 4px;
  color: var(--hf-text-secondary);
  font-size: 12px;
  font-weight: 650;
  line-height: 1.2;
}

.hf-dashboard-page .hf-leftpanel {
  max-height: none !important;
}

.hf-dashboard-page .hf-card {
  position: relative !important;
  border-radius: var(--hf-radius-lg) !important;
  display: block !important;
  padding: 8px 10px !important;
  margin-bottom: 6px !important;
}

.hf-dashboard-page .hf-card::before {
  display: none !important;
}

.hf-dashboard-page .hf-title {
  font-size: 13px !important;
  line-height: 1.2 !important;
  letter-spacing: 0 !important;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hf-dashboard-page .hf-card .hf-cardtop {
  display: contents !important;
}

.hf-dashboard-page .hf-card .hf-cardtop > div:first-child {
  min-width: 0;
  padding: 0 0 0 98px !important;
}

.hf-dashboard-page .hf-card .hf-cardtop > .hf-card-photo {
  position: absolute !important;
  left: 0;
  top: 0;
  bottom: 0;
}

.hf-dashboard-page .hf-card > .hf-card-actions {
  position: absolute !important;
  top: 6px;
  right: 10px;
  justify-self: end;
  z-index: 1;
}

.hf-dashboard-page .hf-card .hf-cardtop {
  display: block !important;
}

.hf-dashboard-page .hf-card .hf-cardtop > div:first-child {
  min-width: 0;
}

.hf-dashboard-page .hf-card-photo {
  position: absolute !important;
  width: 88px !important;
  height: auto !important;
  border-radius: var(--hf-radius-lg) 0 0 var(--hf-radius-lg) !important;
  transform: none !important;
}

.hf-dashboard-page .hf-title {
  padding-right: 90px;
}

.hf-dashboard-page .hf-card-pills,
.hf-dashboard-page .hf-opening-mini-row {
  padding-right: 0 !important;
}

.hf-dashboard-page .hf-sub {
  gap: 5px !important;
  margin-top: 4px !important;
  font-size: 11px !important;
  line-height: 1.2 !important;
}

.hf-dashboard-page .hf-sub + .hf-sub {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hf-dashboard-page .hf-card-pills,
.hf-dashboard-page .hf-opening-mini-row {
  gap: 5px !important;
  margin-top: 6px !important;
}

.hf-dashboard-page .hf-card-pills .hf-pill,
.hf-dashboard-page .hf-opening-mini {
  padding: 3px 6px !important;
  font-size: 10px !important;
  letter-spacing: 0 !important;
}

.hf-dashboard-page .hf-card-actions {
  flex-direction: row;
  gap: 4px !important;
  min-width: max-content;
  margin-top: 0 !important;
  padding-right: 0 !important;
}

.hf-dashboard-page .hf-icon-action,
.hf-dashboard-page .hf-smallbtn {
  width: 28px !important;
  height: 28px !important;
  border-radius: 8px !important;
}

.hf-dashboard-page .hf-icon-action .material-symbols-rounded,
.hf-dashboard-page .hf-smallbtn .material-symbols-rounded {
  font-size: 17px !important;
}

.hf-dashboard-page .hf-mapwrap {
  border-radius: var(--hf-radius-lg) !important;
  min-height: 520px;
  overflow: hidden;
}

.leaflet-container {
  background: var(--hf-bg-muted) !important;
}

html[data-hf-theme="dark"] .leaflet-tile-pane {
  filter: brightness(.72) contrast(1.08) saturate(.78) hue-rotate(178deg);
}

html[data-hf-theme="dark"] .hf-dashboard-page .leaflet-tile-pane {
  filter: none;
}

html[data-hf-theme="dark"] .leaflet-control,
html[data-hf-theme="dark"] .leaflet-popup-content-wrapper,
html[data-hf-theme="dark"] .leaflet-popup-tip {
  background: var(--hf-bg-elevated) !important;
  color: var(--hf-text-primary) !important;
  border-color: var(--hf-border-subtle) !important;
}

html[data-hf-theme="dark"] .hf-dashboard-page .hf-icon-action,
html[data-hf-theme="dark"] .hf-dashboard-page .hf-smallbtn {
  background: var(--hf-bg-muted) !important;
  color: var(--hf-text-primary) !important;
  border-color: var(--hf-border-strong) !important;
  box-shadow: none !important;
}

html[data-hf-theme="dark"] .hf-dashboard-page .hf-icon-action:hover,
html[data-hf-theme="dark"] .hf-dashboard-page .hf-smallbtn:hover {
  background: var(--hf-bg-hover) !important;
  border-color: color-mix(in srgb, var(--hf-primary) 42%, var(--hf-border-strong)) !important;
}

html[data-hf-theme="dark"] .hf-dashboard-page .hf-icon-action.hf-lock,
html[data-hf-theme="dark"] .hf-dashboard-page .hf-icon-action.hf-unlock {
  background: rgba(37,123,255,.16) !important;
  color: #BFDBFE !important;
}

html[data-hf-theme="dark"] .hf-dashboard-page .hf-smallbtn.red {
  background: rgba(239,68,68,.14) !important;
  color: #FCA5A5 !important;
}

html[data-hf-theme="dark"] .hf-dashboard-page .hf-smallbtn.green {
  background: rgba(34,197,94,.14) !important;
  color: #86EFAC !important;
}

html[data-hf-theme="dark"] .hf-dashboard-page .hf-card-pills .hf-pill,
html[data-hf-theme="dark"] .hf-dashboard-page .hf-opening-mini {
  background: var(--hf-bg-muted) !important;
  color: var(--hf-text-secondary) !important;
  border-color: var(--hf-border-subtle) !important;
}

html[data-hf-theme="dark"] .hf-dashboard-page .hf-opening-mini.is-open {
  background: rgba(239,68,68,.14) !important;
}

html[data-hf-theme="dark"] .hf-dashboard-page .hf-opening-mini.is-closed {
  background: rgba(34,197,94,.13) !important;
}

html[data-hf-theme="dark"] .hf-dashboard-page .hf-opening-mini-code {
  color: var(--hf-text-muted) !important;
}

.hf-map-cluster-wrap {
  background: transparent;
  border: 0;
}

.hf-map-cluster {
  width: 52px;
  height: 52px;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 3px solid var(--hf-info-text);
  border-radius: 999px;
  background: var(--hf-bg-elevated);
  color: var(--hf-info-text);
  box-shadow: 0 12px 26px rgba(11,19,32,.22);
  font-family: var(--hf-font-sans);
  line-height: 1;
}

.hf-map-cluster strong {
  font-size: 16px;
  font-weight: 850;
}

.hf-map-cluster .material-symbols-rounded {
  margin-top: 1px;
  font-size: 16px;
}

.hf-map-cluster-success {
  border-color: var(--hf-success-text);
  color: var(--hf-success-text);
}

.hf-map-cluster-danger {
  border-color: var(--hf-danger-text);
  color: var(--hf-danger-text);
}

.hf-tablewrap {
  overflow: auto;
}

.hf-table th,
.hf-table td,
.hf-customers-table th,
.hf-customers-table td {
  border-color: var(--hf-border-subtle) !important;
  color: var(--hf-text-primary) !important;
}

.hf-table th,
.hf-customers-table th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: var(--hf-bg-muted) !important;
  color: var(--hf-text-secondary) !important;
}

.hf-mobile-list {
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)) !important;
}

.hf-vehicles-page .hf-tablewrap {
  display: block !important;
  flex: 1 1 auto;
  min-height: 260px;
}

.hf-vehicles-page .hf-mobile-list {
  display: none !important;
}

.hf-vehicles-page .hf-table {
  min-width: 860px;
}

.hf-vehicles-page .hf-table th,
.hf-vehicles-page .hf-table td {
  vertical-align: top;
}

.hf-vehicles-page .hf-row-actions {
  justify-content: flex-end;
}

.hf-vehicles-page .hf-vehicle-cell strong,
.hf-vehicle-card-title strong {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hf-mobile-card,
.hf-vehicle-meta-item,
.hf-meta-item,
.hf-booking-meta-item,
.hf-report-kpi,
.hf-report-card,
.hf-cost-kpi,
.hf-income-kpi {
  background: var(--hf-bg-surface) !important;
  border-color: var(--hf-border-subtle) !important;
  color: var(--hf-text-primary) !important;
}

.hf-dim,
.hf-mobile-nav-overlay {
  background: rgba(5,11,24,.48) !important;
  backdrop-filter: blur(4px);
}

@media (max-width: 1200px) {
  .hf-dashboard-wrap.hf-page {
    grid-template-columns: 1fr;
  }

  html[data-hf-sidebar="collapsed"] .hf-dashboard-wrap.hf-page {
    grid-template-columns: 1fr;
  }

  .hf-side {
    position: relative;
    top: auto;
    width: 100% !important;
    flex-basis: auto !important;
    max-height: none;
    min-height: auto;
  }

  html[data-hf-sidebar="collapsed"] .hf-side {
    width: 100% !important;
    flex-basis: auto !important;
  }

  .hf-sidebar-collapse {
    display: none;
  }

  .hf-nav {
    flex-direction: row !important;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .hf-nav-section {
    display: none;
  }
}

@media (max-width: 1024px) {
  .hf-dashboard-page .hf-body {
    grid-template-columns: 1fr !important;
  }

  .hf-dashboard-page .hf-leftpanel {
    max-height: none !important;
  }

  .hf-dashboard-page .hf-kpi-grid {
    grid-template-columns: repeat(2, minmax(0,1fr));
  }
}

@media (max-width: 768px) {
  html,
  body.hf-fullwidth-page {
    width: 100%;
    height: auto !important;
    min-height: 100%;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-y;
    background: var(--hf-bg-app) !important;
  }

  .hf-dashboard-wrap.hf-page {
    display: block;
    width: 100%;
    min-height: 100vh;
    padding: 0 !important;
    background: var(--hf-bg-app) !important;
  }

  .hf-app-main {
    width: 100%;
    min-height: 100vh;
    gap: 0;
  }

  .hf-app-main:has(.hf-dashboard-page) {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    height: 100dvh;
    min-height: 0;
    overflow: hidden;
  }

  .hf-app-topbar {
    width: 100%;
    min-height: 0;
    position: relative;
    z-index: 20;
    padding: 10px 10px 10px calc(var(--hf-mobile-nav-left, 10px) + var(--hf-mobile-nav-size, 48px) + 8px) !important;
    border-width: 0 0 1px !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
    align-items: stretch;
    background: var(--hf-bg-surface) !important;
  }

  .hf-app-topbar:has(.hf-app-page-actions:not([hidden])) {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    column-gap: 8px;
    row-gap: 8px;
  }

  .hf-app-topbar:has(.hf-app-page-actions:not([hidden])) .hf-app-context {
    grid-column: 1;
    grid-row: 1;
    min-width: 0;
  }

  .hf-app-page-actions:not([hidden]) {
    grid-column: 2;
    grid-row: 1;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
    min-width: 0;
    max-width: min(54vw, 260px);
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .hf-app-page-actions:not([hidden])::-webkit-scrollbar {
    display: none;
  }

  .hf-app-page-actions .hf-actions,
  .hf-app-page-actions .hf-top-actions,
  .hf-app-page-actions .hf-notif-top-actions,
  .hf-app-page-actions .hf-geofences-top-actions,
  .hf-app-page-actions .hf-turo-messages-topbar-actions {
    width: auto !important;
    margin: 0 !important;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
    flex: 0 0 auto;
    flex-wrap: nowrap !important;
  }

  .hf-app-page-actions > .hf-iconbtn,
  .hf-app-page-actions > .hf-btn,
  .hf-app-page-actions > button,
  .hf-app-page-actions > a,
  .hf-app-page-actions .hf-iconbtn {
    flex: 0 0 auto;
  }

  .hf-app-page-actions > .hf-iconbtn,
  .hf-app-page-actions .hf-top-actions .hf-iconbtn {
    width: 38px;
    min-width: 38px;
    height: 38px;
  }

  .hf-app-topbar:has(.hf-app-page-actions:not([hidden])) .hf-app-tools {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .hf-app-topbar.hf-income-actions-active,
  .hf-app-topbar:has(#hfAppPageActions #hfBtnImportIncomeTuro) {
    grid-template-columns: minmax(0, 1fr) !important;
    align-items: stretch !important;
  }

  .hf-app-topbar.hf-income-actions-active .hf-app-context,
  .hf-app-topbar:has(#hfAppPageActions #hfBtnImportIncomeTuro) .hf-app-context {
    grid-column: 1 !important;
    grid-row: 1 !important;
    min-width: 0 !important;
  }

  .hf-app-topbar.hf-income-actions-active #hfAppPageActions:not([hidden]),
  .hf-app-topbar:has(#hfAppPageActions #hfBtnImportIncomeTuro) #hfAppPageActions:not([hidden]) {
    grid-column: 1 !important;
    grid-row: 2 !important;
    display: grid !important;
    grid-template-columns: 42px 42px 42px minmax(0, 1fr) !important;
    justify-content: start !important;
    align-items: center !important;
    gap: 8px !important;
    width: 100% !important;
    max-width: 100% !important;
    overflow: visible !important;
  }

  .hf-app-topbar.hf-income-actions-active #hfAppPageActions > *,
  .hf-app-topbar:has(#hfAppPageActions #hfBtnImportIncomeTuro) #hfAppPageActions > * {
    width: 100% !important;
    min-width: 0 !important;
    min-height: 38px !important;
    margin: 0 !important;
  }

  .hf-app-topbar.hf-income-actions-active #hfIncomeTuroYear,
  .hf-app-topbar:has(#hfAppPageActions #hfBtnImportIncomeTuro) #hfIncomeTuroYear {
    display: block !important;
    grid-column: 1 / 3 !important;
    grid-row: 2 !important;
    width: 92px !important;
    min-width: 92px !important;
    max-width: 92px !important;
    height: 38px !important;
    min-height: 38px !important;
    padding: 0 26px 0 10px !important;
  }

  .hf-app-topbar.hf-income-actions-active #hfIncomeMobileFilterToggle,
  .hf-app-topbar:has(#hfAppPageActions #hfBtnImportIncomeTuro) #hfIncomeMobileFilterToggle {
    grid-column: 1 !important;
    grid-row: 1 !important;
    display: inline-flex !important;
  }

  .hf-app-topbar.hf-income-actions-active #hfBtnPrintIncome,
  .hf-app-topbar:has(#hfAppPageActions #hfBtnImportIncomeTuro) #hfBtnPrintIncome {
    grid-column: 2 !important;
    grid-row: 1 !important;
  }

  .hf-app-topbar.hf-income-actions-active #hfBtnShareIncome,
  .hf-app-topbar:has(#hfAppPageActions #hfBtnImportIncomeTuro) #hfBtnShareIncome {
    grid-column: 3 !important;
    grid-row: 1 !important;
  }

  .hf-app-topbar.hf-income-actions-active #hfBtnImportIncomeTuro,
  .hf-app-topbar:has(#hfAppPageActions #hfBtnImportIncomeTuro) #hfBtnImportIncomeTuro {
    grid-column: 3 / -1 !important;
    grid-row: 2 !important;
    justify-content: center !important;
  }

  .hf-app-topbar.hf-income-actions-active #hfBtnPickIncomeCsv,
  .hf-app-topbar.hf-income-actions-active #hfBtnImportIncomeCsv,
  .hf-app-topbar:has(#hfAppPageActions #hfBtnImportIncomeTuro) #hfBtnPickIncomeCsv,
  .hf-app-topbar:has(#hfAppPageActions #hfBtnImportIncomeTuro) #hfBtnImportIncomeCsv {
    display: none !important;
  }

  .hf-app-topbar.hf-income-actions-active #hfIncomeMobileFilterToggle span:last-child,
  .hf-app-topbar.hf-income-actions-active .hf-income-report-action span:last-child,
  .hf-app-topbar:has(#hfAppPageActions #hfBtnImportIncomeTuro) #hfIncomeMobileFilterToggle span:last-child,
  .hf-app-topbar:has(#hfAppPageActions #hfBtnImportIncomeTuro) .hf-income-report-action span:last-child {
    display: none !important;
  }

  .hf-app-topbar.hf-income-actions-active #hfIncomeMobileFilterToggle,
  .hf-app-topbar.hf-income-actions-active .hf-income-report-action,
  .hf-app-topbar:has(#hfAppPageActions #hfBtnImportIncomeTuro) #hfIncomeMobileFilterToggle,
  .hf-app-topbar:has(#hfAppPageActions #hfBtnImportIncomeTuro) .hf-income-report-action {
    padding: 0 !important;
    justify-content: center !important;
  }

  .hf-app-topbar.hf-income-actions-active .hf-app-tools,
  .hf-app-topbar:has(#hfAppPageActions #hfBtnImportIncomeTuro) .hf-app-tools {
    grid-column: 1 !important;
    grid-row: 3 !important;
    width: 100% !important;
    min-width: 0 !important;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    gap: 8px !important;
    align-items: center !important;
    margin: 0 !important;
  }

  .hf-app-topbar.hf-income-actions-active .hf-page-topbar-search,
  .hf-app-topbar:has(#hfAppPageActions #hfBtnImportIncomeTuro) .hf-page-topbar-search {
    grid-column: 1 !important;
    grid-row: 1 !important;
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    margin: 0 !important;
  }

  .hf-app-topbar.hf-income-actions-active .hf-page-topbar-search .hf-table-searchrow,
  .hf-app-topbar:has(#hfAppPageActions #hfBtnImportIncomeTuro) .hf-page-topbar-search .hf-table-searchrow {
    width: 100% !important;
    margin: 0 !important;
  }

  .hf-app-topbar.hf-income-actions-active .hf-page-topbar-search .hf-table-search,
  .hf-app-topbar:has(#hfAppPageActions #hfBtnImportIncomeTuro) .hf-page-topbar-search .hf-table-search {
    width: 100% !important;
    min-height: 40px !important;
  }

  .hf-app-tools {
    width: 100%;
    margin-left: 0;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
    align-items: center;
    justify-content: stretch;
    overflow: visible;
  }

  .hf-app-tools > .hf-iconbtn,
  .hf-theme-switcher,
  .hf-profile-chip {
    display: none !important;
  }

  .hf-page-topbar-search {
    display: contents !important;
  }

  .hf-page-topbar-actions {
    grid-column: 1 / -1;
    display: flex !important;
    align-items: center;
    gap: 8px;
    width: 100%;
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: none;
  }

  .hf-page-topbar-actions::-webkit-scrollbar {
    display: none;
  }

  .hf-page-topbar-search .hf-table-searchrow,
  .hf-page-topbar-search .hf-searchrow,
  .hf-global-search {
    grid-column: 1 / -1;
    order: 0;
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
  }

  .hf-page-topbar-actions .hf-primary,
  .hf-page-topbar-actions .hf-smallbtn,
  .hf-page-topbar-actions .hf-cleanup-btn,
  .hf-page-topbar-actions .hf-filterbtn,
  .hf-page-topbar-actions .hf-icon-text-btn {
    flex: 0 0 auto;
    max-width: none;
    min-width: 0;
    width: auto;
    justify-content: center;
    padding-left: 10px !important;
    padding-right: 10px !important;
    min-height: 38px !important;
  }

  .hf-global-search {
    height: 40px;
  }

  .hf-theme-switcher button {
    min-width: 32px;
  }

  .hf-profile-name {
    display: none;
  }

  .hf-profile-chip {
    padding-right: 4px;
  }

  .hf-side {
    width: 100vw !important;
    max-width: none !important;
    min-height: 100vh !important;
    max-height: 100vh;
    top: 0 !important;
    left: 0 !important;
    padding: 18px 16px !important;
    border-radius: 0 !important;
    border-width: 0 1px 0 0 !important;
    box-shadow: 0 18px 40px rgba(15,23,42,.18) !important;
  }

  .hf-side .hf-nav a {
    min-height: 46px !important;
    padding: 12px 14px !important;
    font-size: 15px !important;
  }

  .hf-side .hf-nav a span:first-child {
    font-size: 22px !important;
  }

  .hf-side .hf-nav a span:last-child {
    font-size: 15px !important;
    font-weight: 700 !important;
  }

  .hf-brand {
    padding-left: calc(var(--hf-mobile-nav-left, 10px) + var(--hf-mobile-nav-size, 42px) + 10px) !important;
  }

  .hf-content {
    width: 100% !important;
    min-height: calc(100vh - 140px);
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    background: var(--hf-bg-surface) !important;
    overflow: visible !important;
  }

  .hf-content:has(.hf-dashboard-page) {
    grid-row: 2;
    flex: 1 1 auto;
    min-height: 0 !important;
    height: auto !important;
    overflow: hidden !important;
  }

  .hf-page > #hfClientContent {
    width: 100%;
  }

  .hf-panel,
  .hf-tablewrap,
  .hf-customers-shell,
  .hf-turo-messages-shell,
  .hf-geofence-map-panel,
  .hf-report-card,
  .hf-cost-kpi,
  .hf-income-kpi,
  .hf-mobile-card,
  .hf-booking-mobile-card {
    border-left: 0 !important;
    border-right: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
  }

  .hf-mobile-list {
    gap: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
  }

  .hf-mobile-card,
  .hf-booking-mobile-card {
    border-top: 0 !important;
    border-bottom: 1px solid var(--hf-border-subtle) !important;
    background: var(--hf-bg-surface) !important;
    margin: 0 !important;
    padding: 12px 14px !important;
    width: 100% !important;
  }

  .hf-booking-day-section {
    gap: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
  }

  .hf-booking-day-heading {
    margin: 0 !important;
    padding: 12px 14px 8px !important;
    background: var(--hf-bg-app) !important;
  }

  .hf-vehicle-meta-item,
  .hf-booking-meta-item,
  .hf-meta-item {
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    padding: 4px 0 !important;
    box-shadow: none !important;
  }

  .hf-vehicle-card-meta-grid,
  .hf-booking-card-meta-grid,
  .hf-meta-grid {
    gap: 6px 12px !important;
  }

  .hf-vehicle-card-main,
  .hf-booking-card-main {
    align-items: stretch !important;
  }

  .hf-vehicles-page .hf-mobile-list,
  .hf-bookings-page .hf-mobile-list {
    grid-template-columns: 1fr !important;
  }

  .hf-dashboard-page .hf-mapwrap {
    min-height: min(260px, 50dvh);
    max-height: 50dvh;
    border-radius: 0 !important;
  }

  .hf-dashboard-page .hf-kpi-grid {
    display: none !important;
  }

  .hf-vehicles-page .hf-tablewrap {
    display: none !important;
  }

  .hf-vehicles-page .hf-mobile-list {
    display: grid !important;
  }

  .hf-drawer,
  .hf-service-drawer {
    width: 100vw !important;
    border-radius: 0 !important;
  }
}

@media (max-width: 430px) {
  .hf-app-topbar {
    flex-wrap: wrap;
  }

  .hf-app-topbar:not(:has(.hf-app-page-actions:not([hidden]))) .hf-app-context {
    flex: 1 1 100%;
  }

  .hf-app-tools {
    width: 100%;
    justify-content: flex-end;
  }

  .hf-page-title,
  .hf-dashboard-page .hf-topbar h1 {
    font-size: 26px !important;
  }
}

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

body:not(.customers) #wrapper .content:has([id^="hfAdmin"], .hf-workers-admin, .hf-admin-page, [class^="hf-admin"], [class*=" hf-admin"], [class^="hf-workers"], [class*=" hf-workers"]) {
  background:
    linear-gradient(180deg, var(--hf-bg-app) 0%, var(--hf-bg-app-soft) 100%);
  color: var(--hf-text-primary);
  font-family: var(--hf-font-sans);
  min-height: calc(100vh - 60px);
}

body:not(.customers) #wrapper .content:has([id^="hfAdmin"], .hf-workers-admin, .hf-admin-page, [class^="hf-admin"], [class*=" hf-admin"], [class^="hf-workers"], [class*=" hf-workers"]) h1,
body:not(.customers) #wrapper .content:has([id^="hfAdmin"], .hf-workers-admin, .hf-admin-page, [class^="hf-admin"], [class*=" hf-admin"], [class^="hf-workers"], [class*=" hf-workers"]) h4,
body:not(.customers) #wrapper .content:has([id^="hfAdmin"], .hf-workers-admin, .hf-admin-page, [class^="hf-admin"], [class*=" hf-admin"], [class^="hf-workers"], [class*=" hf-workers"]) h5 {
  color: var(--hf-text-primary);
  font-family: var(--hf-font-display);
  letter-spacing: 0;
}

body:not(.customers) #wrapper .content:has([id^="hfAdmin"], .hf-workers-admin, .hf-admin-page, [class^="hf-admin"], [class*=" hf-admin"], [class^="hf-workers"], [class*=" hf-workers"]) .panel_s,
body:not(.customers) #wrapper .content:has([id^="hfAdmin"], .hf-workers-admin, .hf-admin-page, [class^="hf-admin"], [class*=" hf-admin"], [class^="hf-workers"], [class*=" hf-workers"]) .panel-body,
body:not(.customers) #wrapper .content:has([id^="hfAdmin"], .hf-workers-admin, .hf-admin-page, [class^="hf-admin"], [class*=" hf-admin"], [class^="hf-workers"], [class*=" hf-workers"]) .modal-content {
  border-color: var(--hf-border-subtle) !important;
  border-radius: var(--hf-radius-lg) !important;
  background: var(--hf-bg-surface) !important;
  color: var(--hf-text-primary) !important;
  box-shadow: var(--hf-shadow-sm) !important;
}

body:not(.customers) #wrapper .content:has([id^="hfAdmin"], .hf-workers-admin, .hf-admin-page, [class^="hf-admin"], [class*=" hf-admin"], [class^="hf-workers"], [class*=" hf-workers"]) .panel-body {
  padding: 20px !important;
}

body:not(.customers) #wrapper .content:has([id^="hfAdmin"], .hf-workers-admin, .hf-admin-page, [class^="hf-admin"], [class*=" hf-admin"], [class^="hf-workers"], [class*=" hf-workers"]) .table,
body:not(.customers) #wrapper .content:has([id^="hfAdmin"], .hf-workers-admin, .hf-admin-page, [class^="hf-admin"], [class*=" hf-admin"], [class^="hf-workers"], [class*=" hf-workers"]) .table-responsive {
  color: var(--hf-text-primary);
  border-color: var(--hf-border-subtle);
}

body:not(.customers) #wrapper .content:has([id^="hfAdmin"], .hf-workers-admin, .hf-admin-page, [class^="hf-admin"], [class*=" hf-admin"], [class^="hf-workers"], [class*=" hf-workers"]) .table > thead > tr > th {
  position: sticky;
  top: 0;
  z-index: 2;
  border-bottom: 1px solid var(--hf-border-subtle) !important;
  background: var(--hf-bg-muted) !important;
  color: var(--hf-text-secondary) !important;
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0;
}

body:not(.customers) #wrapper .content:has([id^="hfAdmin"], .hf-workers-admin, .hf-admin-page, [class^="hf-admin"], [class*=" hf-admin"], [class^="hf-workers"], [class*=" hf-workers"]) .table > tbody > tr > td {
  border-top-color: var(--hf-border-subtle) !important;
  color: var(--hf-text-primary) !important;
  vertical-align: middle;
}

body:not(.customers) #wrapper .content:has([id^="hfAdmin"], .hf-workers-admin, .hf-admin-page, [class^="hf-admin"], [class*=" hf-admin"], [class^="hf-workers"], [class*=" hf-workers"]) .form-control {
  min-height: 40px;
  border: 1px solid var(--hf-border-subtle) !important;
  border-radius: var(--hf-radius-md) !important;
  background: var(--hf-bg-muted) !important;
  color: var(--hf-text-primary) !important;
  box-shadow: none !important;
}

body:not(.customers) #wrapper .content:has([id^="hfAdmin"], .hf-workers-admin, .hf-admin-page, [class^="hf-admin"], [class*=" hf-admin"], [class^="hf-workers"], [class*=" hf-workers"]) .form-control:focus {
  border-color: color-mix(in srgb, var(--hf-primary) 40%, var(--hf-border-subtle)) !important;
  box-shadow: var(--hf-focus-ring) !important;
}

body:not(.customers) #wrapper .content:has([id^="hfAdmin"], .hf-workers-admin, .hf-admin-page, [class^="hf-admin"], [class*=" hf-admin"], [class^="hf-workers"], [class*=" hf-workers"]) .btn {
  border-radius: var(--hf-radius-md) !important;
  font-weight: 700;
  letter-spacing: 0;
}

body:not(.customers) #wrapper .content:has([id^="hfAdmin"], .hf-workers-admin, .hf-admin-page, [class^="hf-admin"], [class*=" hf-admin"], [class^="hf-workers"], [class*=" hf-workers"]) .btn-primary,
body:not(.customers) #wrapper .content:has([id^="hfAdmin"], .hf-workers-admin, .hf-admin-page, [class^="hf-admin"], [class*=" hf-admin"], [class^="hf-workers"], [class*=" hf-workers"]) .hf-btn-primary {
  border-color: color-mix(in srgb, var(--hf-primary) 45%, transparent) !important;
  background: linear-gradient(180deg, var(--hf-primary-bright) 0%, var(--hf-primary) 100%) !important;
  color: var(--hf-text-inverse) !important;
  box-shadow: 0 10px 24px rgba(26,60,255,.18) !important;
}

body:not(.customers) #wrapper .content:has([id^="hfAdmin"], .hf-workers-admin, .hf-admin-page, [class^="hf-admin"], [class*=" hf-admin"], [class^="hf-workers"], [class*=" hf-workers"]) .btn-default,
body:not(.customers) #wrapper .content:has([id^="hfAdmin"], .hf-workers-admin, .hf-admin-page, [class^="hf-admin"], [class*=" hf-admin"], [class^="hf-workers"], [class*=" hf-workers"]) .hf-btn-soft {
  border-color: var(--hf-border-subtle) !important;
  background: var(--hf-bg-surface) !important;
  color: var(--hf-text-primary) !important;
}

.hf-admin-dashboard {
  display: grid;
  gap: var(--hf-space-5);
  color: var(--hf-text-primary);
  font-family: var(--hf-font-sans);
}

.hf-admin-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--hf-space-5);
  padding: 24px;
  border: 1px solid color-mix(in srgb, var(--hf-primary) 18%, var(--hf-border-subtle));
  border-radius: var(--hf-radius-xl);
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--hf-bg-elevated) 88%, var(--hf-primary) 12%) 0%, var(--hf-bg-surface) 58%),
    radial-gradient(circle at 92% 10%, color-mix(in srgb, var(--hf-accent) 20%, transparent), transparent 28%);
  box-shadow: var(--hf-shadow-sm);
}

.hf-admin-hero h1 {
  margin: 0;
  color: var(--hf-text-primary);
  font-family: var(--hf-font-display);
  font-size: 30px;
  font-weight: 800;
  letter-spacing: 0;
}

.hf-admin-hero p:not(.hf-admin-kicker) {
  max-width: 760px;
  margin: 8px 0 0;
  color: var(--hf-text-secondary);
  font-size: 14px;
  line-height: 1.55;
}

.hf-admin-hero .btn,
.hf-admin-dashboard .btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.hf-admin-kicker {
  margin: 0 0 6px;
  color: var(--hf-text-muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.hf-admin-metric-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: var(--hf-space-4);
}

.hf-admin-metric {
  display: grid;
  grid-template-columns: auto minmax(0,1fr);
  gap: 12px;
  min-height: 132px;
  padding: 18px;
  border: 1px solid var(--hf-border-subtle);
  border-radius: var(--hf-radius-lg);
  background: var(--hf-bg-surface);
  box-shadow: var(--hf-shadow-xs);
}

.hf-admin-metric-icon {
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  border-radius: var(--hf-radius-md);
  background: var(--hf-info-bg);
  color: var(--hf-info-text);
}

.hf-admin-metric-success .hf-admin-metric-icon {
  background: var(--hf-success-bg);
  color: var(--hf-success-text);
}

.hf-admin-metric-warning .hf-admin-metric-icon {
  background: var(--hf-warning-bg);
  color: var(--hf-warning-text);
}

.hf-admin-metric-danger .hf-admin-metric-icon {
  background: var(--hf-danger-bg);
  color: var(--hf-danger-text);
}

.hf-admin-metric-accent .hf-admin-metric-icon {
  background: color-mix(in srgb, var(--hf-accent) 14%, var(--hf-bg-muted));
  color: color-mix(in srgb, var(--hf-accent) 76%, var(--hf-primary));
}

.hf-admin-metric strong,
.hf-admin-metric span,
.hf-admin-metric small {
  display: block;
  min-width: 0;
}

.hf-admin-metric strong {
  color: var(--hf-text-primary);
  font-size: 28px;
  font-weight: 850;
  line-height: 1;
}

.hf-admin-metric span {
  margin-top: 6px;
  color: var(--hf-text-primary);
  font-size: 13px;
  font-weight: 800;
}

.hf-admin-metric small {
  margin-top: 6px;
  color: var(--hf-text-secondary);
  font-size: 12px;
  line-height: 1.35;
}

.hf-admin-dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(320px, .75fr);
  gap: var(--hf-space-5);
}

.hf-admin-panel.panel_s,
.hf-admin-panel .panel-body {
  border-color: var(--hf-border-subtle) !important;
  border-radius: var(--hf-radius-xl) !important;
  background: var(--hf-bg-surface) !important;
  box-shadow: var(--hf-shadow-xs) !important;
}

.hf-admin-panel .panel-body {
  padding: 22px !important;
}

.hf-admin-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--hf-space-4);
  margin-bottom: 16px;
}

.hf-admin-panel-head h3 {
  margin: 0;
  color: var(--hf-text-primary);
  font-size: 20px;
  font-weight: 800;
}

.hf-admin-link-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.hf-admin-link-card {
  display: grid;
  grid-template-columns: auto minmax(0,1fr);
  gap: 8px 12px;
  min-height: 104px;
  padding: 16px;
  border: 1px solid var(--hf-border-subtle);
  border-radius: var(--hf-radius-lg);
  background: var(--hf-bg-muted);
  color: var(--hf-text-primary);
  text-decoration: none !important;
  transition: border-color var(--hf-transition-fast), background var(--hf-transition-fast), transform var(--hf-transition-fast);
}

.hf-admin-link-card:hover,
.hf-admin-link-card:focus-visible {
  border-color: color-mix(in srgb, var(--hf-primary) 30%, var(--hf-border-subtle));
  background: var(--hf-bg-hover);
  color: var(--hf-text-primary);
  transform: translateY(-1px);
}

.hf-admin-link-card > .material-symbols-rounded {
  grid-row: span 2;
  width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  border-radius: var(--hf-radius-md);
  background: var(--hf-bg-surface);
  color: var(--hf-primary);
}

.hf-admin-link-card strong {
  align-self: end;
  overflow: hidden;
  color: inherit;
  font-size: 14px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hf-admin-link-card small {
  color: var(--hf-text-secondary);
  font-size: 12px;
  line-height: 1.4;
}

.hf-admin-checklist {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.hf-admin-checklist li {
  display: grid;
  grid-template-columns: auto minmax(0,1fr);
  gap: 10px;
  align-items: start;
  padding: 12px;
  border: 1px solid var(--hf-border-subtle);
  border-radius: var(--hf-radius-md);
  background: var(--hf-bg-muted);
  color: var(--hf-text-secondary);
  font-size: 13px;
  line-height: 1.4;
}

.hf-admin-checklist .material-symbols-rounded {
  color: var(--hf-primary);
}

@media (max-width: 1280px) {
  .hf-admin-metric-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .hf-admin-hero,
  .hf-admin-dashboard-grid {
    grid-template-columns: 1fr;
  }

  .hf-admin-hero {
    align-items: stretch;
    flex-direction: column;
  }

  .hf-admin-metric-grid,
  .hf-admin-link-grid {
    grid-template-columns: 1fr;
  }
}

body.customers_login,
body.login_admin,
body.authentication {
  min-height: 100vh;
  background:
    radial-gradient(circle at 14% 10%, rgba(26,60,255,.13), transparent 26%),
    radial-gradient(circle at 86% 2%, rgba(0,209,193,.10), transparent 22%),
    linear-gradient(180deg, var(--hf-bg-app) 0%, var(--hf-bg-app-soft) 100%) !important;
  color: var(--hf-text-primary);
  font-family: var(--hf-font-sans);
}

body.customers_login .navbar.header {
  margin: 0;
  border: 0;
  border-bottom: 1px solid var(--hf-border-subtle);
  background: color-mix(in srgb, var(--hf-bg-surface) 92%, transparent);
  box-shadow: var(--hf-shadow-xs);
}

body.customers_login #wrapper,
body.customers_login #content,
body.customers_login #content .container {
  background: transparent !important;
}

body.customers_login .login-heading,
body.login_admin h1,
body.authentication h1 {
  color: var(--hf-text-primary) !important;
  font-family: var(--hf-font-display) !important;
  font-size: 30px !important;
  font-weight: 800 !important;
  letter-spacing: 0 !important;
}

body.login_admin p,
body.authentication h3,
body.customers_login .text-muted {
  color: var(--hf-text-secondary) !important;
}

body.customers_login .login-form .panel_s,
body.customers_login .login-form .panel-body,
body.login_admin .authentication-form-wrapper > div:last-child,
body.authentication .authentication-form-wrapper > div:last-child,
body.authentication .authentication-form-wrappe > div:last-child {
  border: 1px solid var(--hf-border-subtle) !important;
  border-radius: var(--hf-radius-xl) !important;
  background: var(--hf-bg-surface) !important;
  box-shadow: var(--hf-shadow-md) !important;
}

body.customers_login .login-form .panel-body {
  padding: 28px !important;
}

body.customers_login .form-control,
body.login_admin .form-control,
body.authentication .form-control {
  min-height: 42px;
  border: 1px solid var(--hf-border-subtle) !important;
  border-radius: var(--hf-radius-md) !important;
  background: var(--hf-bg-muted) !important;
  color: var(--hf-text-primary) !important;
  box-shadow: none !important;
}

body.customers_login .form-control:focus,
body.login_admin .form-control:focus,
body.authentication .form-control:focus {
  border-color: color-mix(in srgb, var(--hf-primary) 40%, var(--hf-border-subtle)) !important;
  box-shadow: var(--hf-focus-ring) !important;
}

body.customers_login .btn-primary,
body.login_admin .btn-primary,
body.authentication .btn-primary {
  min-height: 42px;
  border: 1px solid color-mix(in srgb, var(--hf-primary) 45%, transparent) !important;
  border-radius: var(--hf-radius-md) !important;
  background: linear-gradient(180deg, var(--hf-primary-bright) 0%, var(--hf-primary) 100%) !important;
  color: var(--hf-text-inverse) !important;
  font-weight: 750 !important;
  box-shadow: 0 12px 24px rgba(26,60,255,.22) !important;
}

body.customers_login footer.footer {
  border: 0;
  background: transparent !important;
  color: var(--hf-text-secondary);
}

body.customers footer.footer,
body.customers_login footer.footer,
body.authentication footer.footer,
body.login_admin footer.footer {
  border-top: 1px solid var(--hf-border-subtle) !important;
  background: color-mix(in srgb, var(--hf-bg-surface) 88%, transparent) !important;
  color: var(--hf-text-secondary) !important;
  box-shadow: none !important;
}

body.customers footer.footer .container,
body.customers_login footer.footer .container,
body.authentication footer.footer .container,
body.login_admin footer.footer .container {
  background: transparent !important;
}

body.customers footer.footer .copyright-footer,
body.customers_login footer.footer .copyright-footer,
body.authentication footer.footer .copyright-footer,
body.login_admin footer.footer .copyright-footer {
  color: var(--hf-text-secondary) !important;
}

body.customers footer.footer a,
body.customers_login footer.footer a,
body.authentication footer.footer a,
body.login_admin footer.footer a,
body.customers footer.footer .terms-and-conditions-footer,
body.customers_login footer.footer .terms-and-conditions-footer,
body.authentication footer.footer .terms-and-conditions-footer,
body.login_admin footer.footer .terms-and-conditions-footer,
body.customers footer.footer .gdpr-footer,
body.customers_login footer.footer .gdpr-footer,
body.authentication footer.footer .gdpr-footer,
body.login_admin footer.footer .gdpr-footer {
  color: var(--hf-primary-bright) !important;
  font-weight: 700;
}

body.customers footer.footer a:hover,
body.customers_login footer.footer a:hover,
body.authentication footer.footer a:hover,
body.login_admin footer.footer a:hover {
  color: var(--hf-primary-hover) !important;
}

html[data-hf-theme="dark"] body.customers footer.footer,
html[data-hf-theme="dark"] body.customers_login footer.footer,
html[data-hf-theme="dark"] body.authentication footer.footer,
html[data-hf-theme="dark"] body.login_admin footer.footer,
body[data-hf-theme="dark"].customers footer.footer,
body[data-hf-theme="dark"].customers_login footer.footer,
body[data-hf-theme="dark"].authentication footer.footer,
body[data-hf-theme="dark"].login_admin footer.footer {
  border-top-color: var(--hf-border-subtle) !important;
  background: rgba(11,19,32,.88) !important;
  color: var(--hf-text-secondary) !important;
}

html[data-hf-theme="dark"] body.customers footer.footer .copyright-footer,
html[data-hf-theme="dark"] body.customers_login footer.footer .copyright-footer,
html[data-hf-theme="dark"] body.authentication footer.footer .copyright-footer,
html[data-hf-theme="dark"] body.login_admin footer.footer .copyright-footer,
body[data-hf-theme="dark"].customers footer.footer .copyright-footer,
body[data-hf-theme="dark"].customers_login footer.footer .copyright-footer,
body[data-hf-theme="dark"].authentication footer.footer .copyright-footer,
body[data-hf-theme="dark"].login_admin footer.footer .copyright-footer {
  color: var(--hf-text-secondary) !important;
}

@media (max-width: 768px) {
  .hf-page-topbar-actions:has(#hfBtnImportIncomeTuro) {
    display: grid !important;
    grid-template-columns: 104px minmax(0, 1fr);
    overflow-x: visible !important;
    padding-bottom: 0;
  }

  .hf-page-topbar-actions:has(#hfBtnImportIncomeTuro) #hfBtnImportIncomeTuro {
    grid-column: 2;
  }

  .hf-page-topbar-actions:has(#hfBtnImportIncomeTuro) #hfIncomeTuroYear {
    grid-column: 1;
    width: 104px !important;
    min-width: 104px !important;
    max-width: 104px !important;
  }

  .hf-page-topbar-actions:has(#hfBtnImportIncomeTuro) .bootstrap-select:has(#hfIncomeTuroYear) {
    grid-column: 1;
    width: 104px !important;
    min-width: 104px !important;
    max-width: 104px !important;
  }

  .hf-page-topbar-actions:has(#hfBtnImportIncomeTuro) #hfBtnPickIncomeCsv,
  .hf-page-topbar-actions:has(#hfBtnImportIncomeTuro) #hfBtnImportIncomeCsv {
    grid-column: 1 / -1;
  }

  .hf-page-topbar-actions #hfBtnImportIncomeTuro,
  .hf-page-topbar-actions #hfBtnPickIncomeCsv,
  .hf-page-topbar-actions #hfBtnImportIncomeCsv,
  .hf-income-page #hfBtnImportIncomeTuro,
  .hf-income-page #hfBtnPickIncomeCsv,
  .hf-income-page #hfBtnImportIncomeCsv {
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    min-height: 44px !important;
    height: auto !important;
    overflow: visible !important;
    text-overflow: clip !important;
    white-space: normal !important;
    line-height: 1.18 !important;
    text-align: center !important;
  }

  .hf-page-topbar-actions #hfBtnImportIncomeTuro span,
  .hf-page-topbar-actions #hfBtnPickIncomeCsv span,
  .hf-page-topbar-actions #hfBtnImportIncomeCsv span,
  .hf-income-page #hfBtnImportIncomeTuro span,
  .hf-income-page #hfBtnPickIncomeCsv span,
  .hf-income-page #hfBtnImportIncomeCsv span {
    overflow: visible !important;
    text-overflow: clip !important;
    white-space: normal !important;
  }
}
