/* ----------------------------------------------------
   ISTANBUL PARTNER • Modern Minimal Theme
   Font: Manrope & JetBrains Mono
   Aesthetic: 21st.dev / Modern Minimal (by serafimcloud)
---------------------------------------------------- */

@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@400;500;600;700&display=swap');

:root {
  --font-sans: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  
  --bg-main: #fafafa;
  --bg-card: #ffffff;
  --border-subtle: #e4e4e7;
  --border-hover: #d4d4d8;
  
  --primary: #2563eb;
  --primary-hover: #1d4ed8;
  --primary-subtle: #eff6ff;
  
  --text-main: #09090b;
  --text-muted: #71717a;
  --text-subtle: #a1a1aa;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-main);
  color: var(--text-main);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.font-mono {
  font-family: var(--font-mono) !important;
  font-variant-numeric: tabular-nums;
}

/* Modern Minimal Drag & Drop file box */
.file-drop-box {
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.file-drop-box.dragover {
  border-color: #2563eb !important;
  background-color: #eff6ff !important;
  transform: scale(1.01);
}

.file-drop-box.has-file {
  border-color: #10b981 !important;
  background-color: #ecfdf5 !important;
}

/* Filter pills */
.filter-btn {
  transition: all 0.15s ease;
}

.filter-btn.active {
  background-color: #18181b !important;
  color: #ffffff !important;
  border-color: #18181b !important;
  box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
}

/* Table Inline Editable Cells */
.table-editable-cell {
  cursor: pointer;
  transition: all 0.15s ease;
  border-radius: 6px;
  padding: 3px 6px;
}

.table-editable-cell:hover {
  background-color: #f4f4f5;
  box-shadow: inset 0 0 0 1px #e4e4e7;
}

.cell-editing {
  background-color: #eff6ff !important;
  box-shadow: 0 0 0 2px #2563eb !important;
  border-radius: 6px !important;
  outline: none;
}

/* Modern Minimal Scrollbars */
::-webkit-scrollbar {
  width: 5px;
  height: 5px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: #d4d4d8;
  border-radius: 9999px;
}
::-webkit-scrollbar-thumb:hover {
  background: #a1a1aa;
}

html.dark ::-webkit-scrollbar-thumb {
  background: #3f3f46;
}
html.dark ::-webkit-scrollbar-thumb:hover {
  background: #52525b;
}

* {
  scrollbar-width: thin;
}

/* Sidebar Nav Links */
.nav-link {
  cursor: pointer;
  user-select: none;
}

.nav-link.active {
  background-color: rgba(39, 39, 42, 0.85) !important;
  color: #ffffff !important;
  border: 1px solid rgba(63, 63, 70, 0.6);
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.3);
}

/* Subtle elevation cards */
.minimal-card {
  background-color: #ffffff;
  border: 1px solid #e4e4e7;
  border-radius: 1rem;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.03);
}

/* ----------------------------------------------------
   Modern Minimal WebGL Shader Cards
   Inspired by @paper-design/shaders-react Warp effect
---------------------------------------------------- */
.shader-card {
  position: relative;
  overflow: hidden;
  border-radius: 1.5rem;
  isolation: isolate;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.shader-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 32px -8px rgba(0, 0, 0, 0.15), 0 8px 16px -6px rgba(0, 0, 0, 0.1);
}

.shader-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

.shader-overlay-dark {
  position: relative;
  z-index: 2;
  height: 100%;
  width: 100%;
  background: rgba(9, 9, 11, 0.82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 1.5rem;
  transition: border-color 0.25s ease, background 0.25s ease;
}

.shader-card:hover .shader-overlay-dark {
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(9, 9, 11, 0.78);
}

.shader-overlay-light {
  position: relative;
  z-index: 2;
  height: 100%;
  width: 100%;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(228, 228, 231, 0.9);
  border-radius: 1.5rem;
  transition: border-color 0.25s ease, background 0.25s ease;
}

.shader-card:hover .shader-overlay-light {
  border-color: rgba(37, 99, 235, 0.4);
  background: rgba(255, 255, 255, 0.92);
}

/* Graceful Fallback if WebGL is unavailable */
.shader-fallback {
  background: linear-gradient(135deg, #1e1b4b 0%, #0f172a 50%, #09090b 100%);
}


/* Notification Center Popover Caret & Elevation */
.notif-caret {
  position: absolute;
  top: -6px;
  right: 14px;
  width: 12px;
  height: 12px;
  transform: rotate(45deg);
  border-top-width: 1px;
  border-left-width: 1px;
  border-style: solid;
  border-bottom: none;
  border-right: none;
  z-index: 10;
}

/* Optional Dark Theme for Notification Dropdown (Solid, matches sidebar) */
#notifDropdown.dark-theme {
  background-color: #09090b !important;
  border-color: #27272a !important;
  color: #ffffff !important;
  box-shadow: 0 20px 45px -10px rgba(0, 0, 0, 0.85), 0 0 0 1px rgba(255, 255, 255, 0.08) !important;
}
#notifDropdown.dark-theme .notif-caret {
  background-color: #09090b !important;
  border-color: #27272a !important;
}
#notifDropdown.dark-theme .notif-header {
  background-color: #121215 !important;
  border-color: #27272a !important;
}
#notifDropdown.dark-theme .notif-title {
  color: #ffffff !important;
}
#notifDropdown.dark-theme .notif-footer {
  background-color: #09090b !important;
  border-color: #27272a !important;
  color: #71717a !important;
}
#notifDropdown.dark-theme .notif-item {
  color: #ffffff !important;
}
#notifDropdown.dark-theme .notif-item:hover {
  background-color: rgba(39, 39, 42, 0.6) !important;
}
#notifDropdown.dark-theme .notif-item-title {
  color: #f4f4f5 !important;
}
#notifDropdown.dark-theme .notif-item-body {
  color: #a1a1aa !important;
}
#notifDropdown.dark-theme .notif-item-time {
  color: #71717a !important;
}
#notifDropdown.dark-theme #notifDropdownList {
  border-color: #18181b !important;
}
#notifDropdown.dark-theme .divide-zinc-100 > :not([hidden]) ~ :not([hidden]) {
  border-color: #18181b !important;
}

/* ----------------------------------------------------
   NOTIFICATION POPOVER SUBTLE ENTRANCE & EXIT
   ---------------------------------------------------- */
@keyframes popoverFadeIn {
  0% {
    opacity: 0;
    transform: translateY(-8px) scale(0.97);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes popoverFadeOut {
  0% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  100% {
    opacity: 0;
    transform: translateY(-6px) scale(0.97);
  }
}

#notifDropdown {
  transform-origin: top right;
  will-change: transform, opacity;
}

#notifDropdown:not(.hidden) {
  animation: popoverFadeIn 0.18s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

#notifDropdown.closing {
  animation: popoverFadeOut 0.14s cubic-bezier(0.4, 0, 1, 1) forwards;
  pointer-events: none;
}

/* Language Selector Dropdown */
#langDropdown {
  transform-origin: top right;
  will-change: transform, opacity;
}

#langDropdown:not(.hidden) {
  animation: popoverFadeIn 0.16s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

#langDropdown.closing {
  animation: popoverFadeOut 0.12s cubic-bezier(0.4, 0, 1, 1) forwards;
  pointer-events: none;
}

/* ----------------------------------------------------
   Modern Toast Notifications — Apple-grade physics
   Enter: slide up + spring overshoot
   Dismiss: slide down + fade + scale (smooth glide)
   ---------------------------------------------------- */
.toast-item {
  position: relative;
  overflow: hidden;
  will-change: transform, opacity;
  transform-origin: bottom center;
  animation: toastEnter 0.48s cubic-bezier(0.22, 1, 0.36, 1) both;
  transition: box-shadow 0.2s ease;
}

.toast-item:hover {
  box-shadow: 0 24px 60px -12px rgba(0,0,0,0.18);
}

.toast-item.dismissing {
  animation: toastLeave 0.46s cubic-bezier(0.4, 0, 1, 1) both !important;
  pointer-events: none;
}

@keyframes toastEnter {
  0% {
    opacity: 0;
    transform: translateY(100%) scale(0.92);
  }
  60% {
    opacity: 1;
    transform: translateY(-6px) scale(1.02);
  }
  80% {
    transform: translateY(2px) scale(0.995);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes toastLeave {
  0% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  30% {
    opacity: 0.7;
    transform: translateY(8px) scale(0.97);
  }
  100% {
    opacity: 0;
    transform: translateY(100%) scale(0.94);
  }
}

/* Micro Hairline Progress Countdown Bar */
.toast-progress-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 2.5px;
  width: 100%;
  transform-origin: left;
  animation: toastProgress linear forwards;
}

@keyframes toastProgress {
  from {
    transform: scaleX(1);
  }
  to {
    transform: scaleX(0);
  }
}

.toast-item:hover .toast-progress-bar {
  animation-play-state: paused;
}

/* ----------------------------------------------------
   Notification Bell Dot — Breathing color indicator
   Green (few) · Blue (normal) · Red (many)
   ---------------------------------------------------- */
.notif-dot {
  animation: notifBreath 2.8s ease-in-out infinite;
}

/* Level colours */
.notif-dot.dot-green { background-color: #22c55e; }
.notif-dot.dot-blue  { background-color: #3b82f6; }
.notif-dot.dot-red   { background-color: #ef4444; }

@keyframes notifBreath {
  0%,  100% { opacity: 1;    transform: scale(1);    box-shadow: 0 0 0 0   currentColor; }
  50%        { opacity: 0.55; transform: scale(0.72); box-shadow: 0 0 0 4px transparent; }
}

/* Colour-matched outer glow pulse */
.notif-dot.dot-green { animation: notifBreathGreen 2.8s ease-in-out infinite; }
.notif-dot.dot-blue  { animation: notifBreathBlue  2.8s ease-in-out infinite; }
.notif-dot.dot-red   { animation: notifBreathRed   2.2s ease-in-out infinite; }

@keyframes notifBreathGreen {
  0%, 100% { opacity: 1;    transform: scale(1);    box-shadow: 0 0 0 0px rgba(34,197,94,0.5); }
  50%       { opacity: 0.6; transform: scale(0.75); box-shadow: 0 0 0 5px rgba(34,197,94,0);   }
}
@keyframes notifBreathBlue {
  0%, 100% { opacity: 1;    transform: scale(1);    box-shadow: 0 0 0 0px rgba(59,130,246,0.5); }
  50%       { opacity: 0.6; transform: scale(0.75); box-shadow: 0 0 0 5px rgba(59,130,246,0);   }
}
@keyframes notifBreathRed {
  0%, 100% { opacity: 1;    transform: scale(1);    box-shadow: 0 0 0 0px rgba(239,68,68,0.5); }
  50%       { opacity: 0.6; transform: scale(0.75); box-shadow: 0 0 0 5px rgba(239,68,68,0);   }
}

/* Presence Pill & Dropdown */
#btnPresence {
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
#btnPresence:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px -2px rgba(0,0,0,0.06);
}
#presenceDropdown {
  animation: presenceDropdownIn 0.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
@keyframes presenceDropdownIn {
  from { opacity: 0; transform: translateY(-4px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}


/* Notification Center Filter Pills */
.notif-filter-pill {
  padding: 4px 11px;
  border-radius: 9999px;
  cursor: pointer;
  white-space: nowrap;
  user-select: none;
  font-size: 11px;
  line-height: 1.25rem;
  transition: all 0.15s ease;
  border: 1px solid transparent;
}

.notif-filter-pill.active {
  background-color: #18181b;
  color: #ffffff;
  font-weight: 600;
  border-color: #18181b;
  box-shadow: 0 1px 2px rgba(0,0,0,0.06);
}

.notif-filter-pill:not(.active) {
  background-color: #f4f4f5;
  color: #71717a;
  border-color: #e4e4e7;
}

.notif-filter-pill:not(.active):hover {
  background-color: #e4e4e7;
  color: #18181b;
}

/* Custom Scrollbar for Notification Dropdown */
#notifDropdownList {
  max-height: min(430px, calc(100vh - 14rem));
  overflow-y: auto !important;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: #d4d4d8 transparent;
}

#notifDropdownList::-webkit-scrollbar {
  width: 5px;
}

#notifDropdownList::-webkit-scrollbar-track {
  background: transparent;
}

#notifDropdownList::-webkit-scrollbar-thumb {
  background: #d4d4d8;
  border-radius: 9999px;
}

#notifDropdownList::-webkit-scrollbar-thumb:hover {
  background: #a1a1aa;
}

/* ----------------------------------------------------
   Modern Minimal Filter Pills (Drivers & Vehicles)
   ---------------------------------------------------- */
.filter-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.35rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  transition: all 0.15s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  user-select: none;
  border: 1px solid #e4e4e7;
  background-color: #ffffff;
  color: #52525b;
  white-space: nowrap;
}

.filter-pill:hover {
  background-color: #f4f4f5;
  color: #18181b;
  border-color: #d4d4d8;
}

.filter-pill.active {
  background-color: #18181b;
  color: #ffffff;
  border-color: #18181b;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.filter-pill .pill-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.25rem;
  height: 1.15rem;
  padding: 0 0.35rem;
  border-radius: 9999px;
  font-size: 0.6875rem;
  font-family: var(--font-mono);
  font-weight: 700;
  background-color: #f4f4f5;
  color: #71717a;
  transition: all 0.15s ease;
}

.filter-pill.active .pill-count {
  background-color: rgba(255, 255, 255, 0.2);
  color: #ffffff;
}

.filter-pill.pill-amber.active {
  background-color: #d97706;
  border-color: #d97706;
}

.filter-pill.pill-rose.active {
  background-color: #e11d48;
  border-color: #e11d48;
}

.filter-pill.pill-emerald.active {
  background-color: #059669;
  border-color: #059669;
}

.filter-pill.pill-blue.active {
  background-color: #2563eb;
  border-color: #2563eb;
}

/* ----------------------------------------------------
   Uber-Style Multi-Select Filter Popover Dropdowns
   ---------------------------------------------------- */
.filter-dd-group {
  position: relative;
}

.filter-dropdown-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.5rem 0.75rem;
  border-radius: 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  border: 1px solid #e4e4e7;
  background-color: #ffffff;
  color: #3f3f46;
  transition: all 0.15s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  user-select: none;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}

.filter-dropdown-btn:hover {
  background-color: #f4f4f5;
  border-color: #d4d4d8;
  color: #18181b;
}

.filter-dropdown-btn.has-active {
  background-color: #18181b !important;
  color: #ffffff !important;
  border-color: #18181b !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.filter-dropdown-btn.has-active svg {
  color: #ffffff !important;
}

.filter-dropdown-btn.has-active .filter-active-count {
  background-color: rgba(255, 255, 255, 0.22) !important;
  color: #ffffff !important;
}

.filter-dropdown-panel {
  transform-origin: top center;
  animation: filterPanelPop 0.16s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  backdrop-filter: blur(8px);
}

@keyframes filterPanelPop {
  0% {
    opacity: 0;
    transform: translateY(-6px) scale(0.97);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.filter-cb {
  cursor: pointer;
  accent-color: #2563eb;
}

/* ----------------------------------------------------
   Shadcn UI Warning Alert (v-alert-6) Design System
---------------------------------------------------- */
:root {
  --warning: oklch(0.769 0.188 70.08);
  --warning-foreground: oklch(0.555 0.163 48.998);
  --destructive: oklch(0.637 0.237 25.331);
  --destructive-foreground: oklch(0.505 0.213 27.518);
}

.dark {
  --warning: oklch(0.769 0.188 70.08);
  --warning-foreground: oklch(0.828 0.189 84.429);
}

.shadcn-alert {
  position: relative;
  width: 100%;
  border-radius: 0.75rem;
  border: 1px solid #e4e4e7;
  padding: 1rem;
  transition: all 0.2s ease-in-out;
}

html:not(.dark) .shadcn-alert-warning {
  border-color: rgba(245, 158, 11, 0.35) !important;
  background-color: rgba(254, 243, 199, 0.45) !important;
  color: #92400e !important;
}

html:not(.dark) .shadcn-alert-destructive {
  border-color: rgba(244, 63, 94, 0.35) !important;
  background-color: rgba(255, 241, 242, 0.6) !important;
  color: #9f1239 !important;
}

html:not(.dark) .shadcn-alert-success {
  border-color: rgba(16, 185, 129, 0.35) !important;
  background-color: rgba(236, 253, 245, 0.6) !important;
  color: #065f46 !important;
}

html:not(.dark) .shadcn-alert-default {
  border-color: #e4e4e7 !important;
  background-color: #fafafa !important;
  color: #18181b !important;
}

/* Shadcn Alert Dark Mode */
html.dark .shadcn-alert {
  background-color: #1c1c20 !important;
  border-color: #383838 !important;
  color: #f4f4f5 !important;
}

html.dark .shadcn-alert-default {
  background-color: #1e1e22 !important;
  border-color: #383838 !important;
  color: #f4f4f5 !important;
}

html.dark .shadcn-alert-warning {
  border-color: rgba(245, 158, 11, 0.4) !important;
  background-color: rgba(245, 158, 11, 0.12) !important;
  color: #fef08a !important;
}

html.dark .shadcn-alert-destructive {
  border-color: rgba(244, 63, 94, 0.4) !important;
  background-color: rgba(244, 63, 94, 0.12) !important;
  color: #fecdd3 !important;
}

html.dark .shadcn-alert-success {
  border-color: rgba(16, 185, 129, 0.4) !important;
  background-color: rgba(16, 185, 129, 0.12) !important;
  color: #a7f3d0 !important;
}


/* ============================================================================
   AUTHENTIC POLISH LICENSE PLATE (TABLICA REJESTRACYJNA)
   True EU Cobalt Euroband, 12 Vector Gold Stars, Embossed Stamped Plate,
   Znak Legalizacyjny (Inspection Hologram Sticker).
============================================================================ */

/* 1. Standard Header & Table Badge */
.polish-plate-badge,
.plate-badge-pl {
  display: inline-flex;
  align-items: stretch;
  background: #ffffff;
  border: 2px solid #0f172a;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.9);
  user-select: none;
  height: 28px;
  vertical-align: middle;
}

.polish-plate-badge .plate-euroband,
.plate-badge-pl .pl-strip {
  background: #003399;
  color: #ffffff;
  padding: 1px 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  min-width: 22px;
  border-right: 1px solid rgba(0, 0, 0, 0.15);
  margin-right: 0 !important;
}

.polish-plate-badge .plate-stars,
.plate-badge-pl .plate-stars {
  width: 11px;
  height: 11px;
}

.polish-plate-badge .plate-country,
.plate-badge-pl .plate-country {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 8px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0.5px;
  color: #ffffff;
}

.polish-plate-badge .plate-text-wrap {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 0 7px;
  font-family: "Consolas", "Monaco", "Courier New", monospace;
  font-weight: 900;
  font-size: 13px;
  letter-spacing: 0.12em;
  color: #09090b;
  line-height: 1;
}

/* Hologram sticker (Znak Legalizacyjny) */
.plate-hologram-sm {
  width: 9px;
  height: 9px;
  border-radius: 1.5px;
  background: linear-gradient(135deg, #e2e8f0 0%, #94a3b8 35%, #38bdf8 55%, #cbd5e1 75%, #64748b 100%);
  border: 1px solid rgba(0, 0, 0, 0.25);
  box-shadow: inset 0 0.5px 0.5px rgba(255, 255, 255, 0.8);
  display: inline-block;
  flex-shrink: 0;
}

/* 2. Hero Large Showcase Plate (Inside Modal Left Column) */
.polish-plate-hero {
  display: inline-flex;
  align-items: stretch;
  background: #ffffff;
  border: 3px solid #0f172a;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12), inset 0 1px 0 rgba(255, 255, 255, 1);
  height: 54px;
  width: 100%;
  max-width: 290px;
  user-select: none;
}

.polish-plate-hero .plate-euroband {
  background: #003399;
  color: #ffffff;
  padding: 4px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-width: 40px;
  border-right: 1.5px solid rgba(0, 0, 0, 0.2);
}

.polish-plate-hero .plate-stars {
  width: 18px;
  height: 18px;
}

.polish-plate-hero .plate-country {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 13px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0.8px;
  color: #ffffff;
}

.polish-plate-hero .plate-text-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 12px;
  font-family: "Consolas", "Monaco", "Courier New", monospace;
  font-weight: 900;
  font-size: 24px;
  letter-spacing: 0.16em;
  color: #09090b;
  line-height: 1;
}

.plate-hologram-lg {
  width: 15px;
  height: 15px;
  border-radius: 2.5px;
  background: linear-gradient(135deg, #e2e8f0 0%, #94a3b8 30%, #38bdf8 50%, #818cf8 70%, #cbd5e1 90%);
  border: 1px solid rgba(0, 0, 0, 0.3);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.9), 0 1px 2px rgba(0, 0, 0, 0.15);
  display: inline-block;
  flex-shrink: 0;
}

/* ==========================================================================
   SHADCN / TITANIUM THEME FOR FLATPICKR
   ========================================================================== */
.flatpickr-calendar {
  background: #ffffff !important;
  border: 1px solid #e4e4e7 !important;
  border-radius: 16px !important;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.05) !important;
  font-family: inherit !important;
  padding: 10px !important;
  width: 300px !important;
  z-index: 99999 !important;
}

.flatpickr-calendar:before, .flatpickr-calendar:after {
  display: none !important;
}

.flatpickr-months {
  padding: 4px 4px 10px 4px !important;
  border-bottom: 1px solid #f4f4f5;
  margin-bottom: 6px;
}

.flatpickr-current-month {
  font-size: 13px !important;
  font-weight: 600 !important;
  color: #18181b !important;
  padding: 4px 0 0 0 !important;
}

.flatpickr-current-month .flatpickr-monthDropdown-months {
  font-weight: 700 !important;
  color: #18181b !important;
  border-radius: 6px;
  padding: 2px 4px;
}

.flatpickr-current-month input.cur-year {
  font-weight: 700 !important;
  color: #18181b !important;
}

.flatpickr-months .flatpickr-prev-month, .flatpickr-months .flatpickr-next-month {
  padding: 6px 8px !important;
  border-radius: 8px;
  transition: all 0.15s ease;
}

.flatpickr-months .flatpickr-prev-month:hover, .flatpickr-months .flatpickr-next-month:hover {
  background: #f4f4f5 !important;
  color: #09090b !important;
}

span.flatpickr-weekday {
  font-size: 11px !important;
  font-weight: 600 !important;
  color: #a1a1aa !important;
}

.flatpickr-day {
  border-radius: 8px !important;
  font-size: 12px !important;
  font-weight: 500 !important;
  color: #27272a !important;
  height: 34px !important;
  line-height: 34px !important;
  margin: 1px 0 !important;
  transition: all 0.12s ease !important;
}

.flatpickr-day:hover {
  background: #f4f4f5 !important;
  border-color: #f4f4f5 !important;
  color: #09090b !important;
}

.flatpickr-day.today {
  border: 1px solid #3b82f6 !important;
  background: #eff6ff !important;
  color: #1d4ed8 !important;
  font-weight: 700 !important;
}

.flatpickr-day.selected, .flatpickr-day.selected:hover {
  background: #18181b !important;
  border-color: #18181b !important;
  color: #ffffff !important;
  font-weight: 700 !important;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15) !important;
}

.flatpickr-day.prevMonthDay, .flatpickr-day.nextMonthDay {
  color: #d4d4d8 !important;
}

/* Flatpickr Alt Input Styling */
.flatpickr-input[readonly], input.flatpickr-input {
  background-color: #ffffff !important;
}

/* Mobile date input & Flatpickr Safety Override */
.flatpickr-mobile,
input[type="date"],
#modalInputStartLicenseDate {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  box-sizing: border-box !important;
  -webkit-appearance: none !important;
  appearance: none !important;
}

/* Disable browser spin buttons / steppers on number inputs (direct input only) */
input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none !important;
  margin: 0 !important;
}

input[type="number"] {
  -moz-appearance: textfield !important;
  appearance: textfield !important;
}

/* Password masking without triggering Chromium credential manager autofill */
.password-mask {
  -webkit-text-security: disc !important;
  text-security: disc !important;
  letter-spacing: 2px;
}

/* ----------------------------------------------------
   SOLAR SWITCH THEME TOGGLE (Framer Motion Replica)
---------------------------------------------------- */
.theme-toggle-btn {
  position: relative;
  overflow: visible;
  transition: background-color 0.2s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.2s cubic-bezier(0.16, 1, 0.3, 1),
              color 0.2s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.2s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.15s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
}

.theme-toggle-btn:hover {
  transform: translateY(-1px);
}

.theme-toggle-btn:active {
  transform: scale(0.92);
}

/* Light mode button styling - CLEAN WHITE & SUBTLE OUTLINE */
html:not(.dark) #btnThemeToggle {
  background-color: #ffffff !important;
  border: 1px solid #e4e4e7 !important;
  color: #18181b !important;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05) !important;
}

html:not(.dark) #btnThemeToggle:hover {
  background-color: #f4f4f5 !important;
  border-color: #d4d4d8 !important;
  color: #09090b !important;
}

html:not(.dark) #btnThemeToggle svg {
  color: #18181b !important;
}

/* Dark mode button styling - DISCORD/LINEAR GRAPHITE */
html.dark #btnThemeToggle {
  background-color: #1c1d22 !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  color: #f4f4f5 !important;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.3) !important;
}

html.dark #btnThemeToggle:hover {
  background-color: #272830 !important;
  border-color: rgba(255, 255, 255, 0.22) !important;
  color: #ffffff !important;
}

html.dark #btnThemeToggle svg {
  color: #f4f4f5 !important;
}

/* Solar switch box & SVG positioning */
.solar-switch-box {
  position: relative;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
}

.solar-sun-svg,
.solar-moon-svg {
  position: absolute;
  top: 0;
  left: 0;
  width: 20px;
  height: 20px;
  overflow: visible;
  transform-origin: 50% 50%;
  pointer-events: none;
  will-change: transform, opacity;
}

/* Stroke-draw setup (replicates framer-motion pathLength) */
.sun-center {
  transform-origin: 50% 50%;
  stroke-dasharray: 34;
}

.sun-ray {
  stroke-dasharray: 4;
}

.moon-path {
  stroke-dasharray: 82;
}

/* ═══════════════════════════════════════════════════════
   LIGHT MODE — Sun visible (scale 1), Moon hidden (scale 0)
   Matches framer-motion: duration 0.7s, scale unchecked
   ═══════════════════════════════════════════════════════ */
html:not(.dark) .solar-sun-svg {
  transform: scale(1);
  opacity: 1;
  transition: transform 0.7s ease,
              opacity 0.4s ease 0.1s;
}

html:not(.dark) .solar-sun-svg .sun-center {
  stroke-dashoffset: 0;
  transition: stroke-dashoffset 0.5s ease 0.2s;
}

html:not(.dark) .solar-sun-svg .sun-ray {
  stroke-dashoffset: 0;
  opacity: 1;
  transition: stroke-dashoffset 0.5s ease 0.2s,
              opacity 0.4s ease 0.15s;
}

html:not(.dark) .solar-moon-svg {
  transform: scale(0);
  opacity: 0;
  transition: transform 0.7s ease,
              opacity 0.3s ease;
}

html:not(.dark) .solar-moon-svg .moon-path {
  stroke-dashoffset: 82;
  transition: stroke-dashoffset 0.3s ease;
}

/* ═══════════════════════════════════════════════════════
   DARK MODE — Moon visible (scale 1), Sun hidden (scale 0)
   Matches framer-motion: duration 0.7s, scale checked
   ═══════════════════════════════════════════════════════ */
html.dark .solar-sun-svg {
  transform: scale(0);
  opacity: 0;
  transition: transform 0.7s ease,
              opacity 0.3s ease;
}

html.dark .solar-sun-svg .sun-center {
  stroke-dashoffset: 34;
  transition: stroke-dashoffset 0.3s ease;
}

html.dark .solar-sun-svg .sun-ray {
  stroke-dashoffset: 4;
  opacity: 0;
  transition: stroke-dashoffset 0.3s ease,
              opacity 0.3s ease;
}

html.dark .solar-moon-svg {
  transform: scale(1);
  opacity: 1;
  transition: transform 0.7s ease,
              opacity 0.4s ease 0.1s;
}

html.dark .solar-moon-svg .moon-path {
  stroke-dashoffset: 0;
  transition: stroke-dashoffset 0.5s ease 0.2s;
}

/* Silky photographic cross-dissolve during theme switch (220ms) */
.theme-transitioning,
.theme-transitioning body,
.theme-transitioning header,
.theme-transitioning aside,
.theme-transitioning .bg-white,
.theme-transitioning #btnThemeToggle,
.theme-transitioning #btnLangSelector,
.theme-transitioning #btnPresence,
.theme-transitioning #btnNotifBell {
  transition: background-color 0.22s cubic-bezier(0.4, 0, 0.2, 1),
              border-color 0.22s cubic-bezier(0.4, 0, 0.2, 1),
              color 0.18s ease !important;
}

/* ----------------------------------------------------
   MODERN UNIFIED LIGHT THEME (Soft Neutral Gray Canvas)
   Seamless, cohesive tonal transitions (No harsh cuts)
---------------------------------------------------- */
html:not(.dark) body {
  background-color: #f8f9fa !important;
  color: #18181b !important;
}

/* Header */
html:not(.dark) header {
  background-color: rgba(255, 255, 255, 0.95) !important;
  border-bottom: 1px solid #e4e4e7 !important;
}

html:not(.dark) #pageTitle {
  color: #18181b !important;
}

html:not(.dark) header .bg-zinc-100\/90 {
  background-color: #f4f4f5 !important;
  border: 1px solid #e4e4e7 !important;
  color: #52525b !important;
}

/* Header Buttons in Light Mode */
html:not(.dark) #btnLangSelector,
html:not(.dark) #btnPresence,
html:not(.dark) #btnNotifBell {
  background-color: #ffffff !important;
  border: 1px solid #e4e4e7 !important;
  color: #18181b !important;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04) !important;
}

html:not(.dark) #btnLangSelector:hover,
html:not(.dark) #btnPresence:hover,
html:not(.dark) #btnNotifBell:hover {
  background-color: #f4f4f5 !important;
  border-color: #d4d4d8 !important;
  color: #09090b !important;
}

/* Sidebar Light Mode (Matches Light Dashboard) */
html:not(.dark) .app-sidebar {
  background-color: #ffffff !important;
  border-right: 1px solid #e4e4e7 !important;
  color: #18181b !important;
}

html:not(.dark) .sidebar-brand {
  background-color: #ffffff !important;
  border-bottom: 1px solid #e4e4e7 !important;
}

html:not(.dark) .sidebar-brand-name {
  color: #18181b !important;
}

html:not(.dark) .sidebar-brand-sub {
  color: #71717a !important;
}

html:not(.dark) .sidebar-logo-box {
  background-color: #f4f4f5 !important;
  border: 1px solid #e4e4e7 !important;
}

html:not(.dark) .sidebar-nav .nav-link {
  color: #52525b !important;
  background-color: transparent !important;
}

html:not(.dark) .sidebar-nav .nav-link svg {
  color: #71717a !important;
}

html:not(.dark) .sidebar-nav .nav-link:hover {
  background-color: #f4f4f5 !important;
  color: #18181b !important;
}

html:not(.dark) .sidebar-nav .nav-link:hover svg {
  color: #18181b !important;
}

html:not(.dark) .sidebar-nav .nav-link.active {
  background-color: #f4f4f5 !important;
  color: #18181b !important;
  font-weight: 700 !important;
}

html:not(.dark) .sidebar-nav .nav-link.active svg {
  color: #2563eb !important;
}

html:not(.dark) .sidebar-count,
html:not(.dark) .sidebar-badge {
  background-color: transparent !important;
  color: #71717a !important;
}

html:not(.dark) .sidebar-divider {
  border-color: #e4e4e7 !important;
}

html:not(.dark) .sidebar-user-card {
  background-color: #fbfcfd !important;
  border-top: 1px solid #e4e4e7 !important;
}

html:not(.dark) .sidebar-avatar-box {
  background-color: #ffffff !important;
  border: 1px solid #e4e4e7 !important;
}

html:not(.dark) .sidebar-admin-name {
  color: #18181b !important;
}

html:not(.dark) .sidebar-logout-btn {
  color: #71717a !important;
}

html:not(.dark) .sidebar-logout-btn:hover {
  color: #e11d48 !important;
}

/* Cards & Surface Containers in Light Mode */
html:not(.dark) .bg-white {
  background-color: #ffffff !important;
  border-color: #e4e4e7 !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.02) !important;
}

/* General Borders in Light Mode */
html:not(.dark) .border-zinc-200,
html:not(.dark) .border-zinc-200\/80,
html:not(.dark) .border-zinc-200\/90,
html:not(.dark) .border-zinc-200\/70,
html:not(.dark) .border-zinc-200\/60,
html:not(.dark) .border-zinc-100 {
  border-color: #e4e4e7 !important;
}

/* Table Toolbar in Light Mode - Seamless with Card */
html:not(.dark) .table-toolbar,
html:not(.dark) .p-4.border-b {
  background-color: #ffffff !important;
  border-bottom: 1px solid #e4e4e7 !important;
}

/* Filter Pill Buttons in Light Mode */
html:not(.dark) #adjFilterButtonGroup,
html:not(.dark) .inline-flex.rounded-xl.border.bg-zinc-100 {
  background-color: #f4f4f5 !important;
  border: 1px solid #e4e4e7 !important;
}

html:not(.dark) .adj-filter-btn.active,
html:not(.dark) .table-filter-btn.active {
  background-color: #ffffff !important;
  color: #18181b !important;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06) !important;
}

html:not(.dark) .adj-filter-btn:not(.active),
html:not(.dark) .table-filter-btn:not(.active) {
  color: #52525b !important;
  background-color: transparent !important;
}

html:not(.dark) .adj-filter-btn:not(.active):hover,
html:not(.dark) .table-filter-btn:not(.active):hover {
  color: #18181b !important;
}

/* Inputs & Selects in Light Mode */
html:not(.dark) input[type="text"],
html:not(.dark) input[type="password"],
html:not(.dark) input[type="number"],
html:not(.dark) input[type="date"],
html:not(.dark) input[type="email"],
html:not(.dark) input[type="search"],
html:not(.dark) select,
html:not(.dark) textarea {
  background-color: #ffffff !important;
  border: 1px solid #e4e4e7 !important;
  color: #18181b !important;
}

html:not(.dark) input:focus,
html:not(.dark) select:focus,
html:not(.dark) textarea:focus {
  border-color: #2563eb !important;
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.15) !important;
}

/* Tables in Light Mode */
html:not(.dark) table thead th {
  background-color: #fafafa !important;
  color: #71717a !important;
  border-bottom: 1px solid #e4e4e7 !important;
}

html:not(.dark) table tbody tr {
  background-color: #ffffff !important;
  border-bottom: 1px solid #f0f0f2 !important;
}

html:not(.dark) table tbody tr:hover {
  background-color: #f8f9fa !important;
}

/* Dropzones in Light Mode */
html:not(.dark) #weeklyUnifiedDropzone,
html:not(.dark) #dailyUnifiedDropzone {
  background-color: #fbfcfd !important;
  border: 2px dashed #d4d4d8 !important;
}

html:not(.dark) #weeklyUnifiedDropzone:hover,
html:not(.dark) #dailyUnifiedDropzone:hover {
  background-color: #f4f4f5 !important;
  border-color: #a1a1aa !important;
}

/* Dropdown Menus in Light Mode */
html:not(.dark) #langDropdown,
html:not(.dark) #presenceDropdown,
html:not(.dark) #notifDropdown {
  background-color: #ffffff !important;
  border: 1px solid #e4e4e7 !important;
  color: #18181b !important;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08) !important;
}

/* ----------------------------------------------------
   MODERN NEUTRAL DARK THEME (Image 3 Reference Palette)
   Border: #383838 | Input: #525252 | Ring: #737373 | Accent: #737373
   Seamless, cohesive tonal transitions (No harsh cuts or gray slabs)
---------------------------------------------------- */
html.dark {
  color-scheme: dark;
}

html.dark body {
  background-color: #141414 !important;
  background-image: none !important;
  color: #f4f4f5 !important;
}

/* Frosted Glass Header */
html.dark header {
  background-color: rgba(20, 20, 20, 0.95) !important;
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
  border-bottom: 1px solid #383838 !important;
}

html.dark #pageTitle {
  color: #f4f4f5 !important;
  letter-spacing: -0.015em;
}

/* Header Date Chip */
html.dark header .bg-zinc-100\/90 {
  background-color: #1e1e1e !important;
  border: 1px solid #383838 !important;
  color: #a1a1aa !important;
}

/* Header Buttons in Dark Mode */
html.dark #btnLangSelector,
html.dark #btnPresence,
html.dark #btnNotifBell {
  background-color: #1e1e1e !important;
  border: 1px solid #383838 !important;
  color: #f4f4f5 !important;
}

html.dark #btnLangSelector:hover,
html.dark #btnPresence:hover,
html.dark #btnNotifBell:hover {
  background-color: #262626 !important;
  border-color: #525252 !important;
  color: #ffffff !important;
}

html.dark #langCurrentCode,
html.dark #presenceCountText {
  color: #f4f4f5 !important;
}

/* Sidebar in Dark Mode (Image 3 Tokens: #161616 / #202020 / #383838 / #737373) */
html.dark .app-sidebar {
  background-color: #161616 !important;
  border-right: 1px solid #383838 !important;
  color: #f4f4f5 !important;
}

html.dark .sidebar-brand {
  background-color: #161616 !important;
  border-bottom: 1px solid #383838 !important;
}

html.dark .sidebar-brand-name {
  color: #f4f4f5 !important;
}

html.dark .sidebar-brand-sub {
  color: #737373 !important; /* Image 3 Chart/Text Token */
}

html.dark .sidebar-logo-box {
  background-color: #202020 !important;
  border: 1px solid #383838 !important;
}

html.dark .sidebar-nav .nav-link {
  color: #a1a1aa !important;
  background-color: transparent !important;
}

html.dark .sidebar-nav .nav-link svg {
  color: #737373 !important;
}

html.dark .sidebar-nav .nav-link:hover {
  background-color: #222222 !important;
  color: #ffffff !important;
}

html.dark .sidebar-nav .nav-link:hover svg {
  color: #ffffff !important;
}

html.dark .sidebar-nav .nav-link.active {
  background-color: #262626 !important;
  color: #ffffff !important;
  border: 1px solid #383838 !important;
  font-weight: 700 !important;
}

html.dark .sidebar-nav .nav-link.active svg {
  color: #3b82f6 !important;
}

html.dark .sidebar-count,
html.dark .sidebar-badge {
  background-color: transparent !important;
  color: #737373 !important;
}

html.dark .sidebar-divider {
  border-color: #383838 !important;
}

html.dark .sidebar-user-card {
  background-color: #1a1a1a !important;
  border-top: 1px solid #383838 !important;
}

html.dark .sidebar-avatar-box {
  background-color: #202020 !important;
  border: 1px solid #383838 !important;
}

html.dark .sidebar-admin-name {
  color: #f4f4f5 !important;
}

html.dark .sidebar-logout-btn {
  color: #737373 !important;
}

html.dark .sidebar-logout-btn:hover {
  color: #f43f5e !important;
}

/* Dropdown Menus in Dark Mode */
html.dark #langDropdown,
html.dark #presenceDropdown,
html.dark #notifDropdown {
  background-color: #1c1c1c !important;
  border: 1px solid #383838 !important;
  color: #f4f4f5 !important;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6) !important;
}

html.dark .notif-caret {
  background-color: #1c1c1c !important;
  border-color: #383838 !important;
}

html.dark #optLangTr:hover,
html.dark #optLangEn:hover {
  background-color: #262626 !important;
}

/* Cards & Surface Containers in Dark Mode */
html.dark .bg-white {
  background-color: #1e1e1e !important;
  border-color: #383838 !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4) !important;
}

html.dark .bg-white:hover {
  border-color: #525252 !important;
}

/* General Borders in Dark Mode (Unified #383838 Token) */
html.dark .border-zinc-200,
html.dark .border-zinc-200\/80,
html.dark .border-zinc-200\/90,
html.dark .border-zinc-200\/70,
html.dark .border-zinc-200\/60,
html.dark .border-zinc-100,
html.dark .border-zinc-800 {
  border-color: #383838 !important;
}

/* Payout Mode Tabs in Dark Mode */
html.dark .inline-flex.p-1.bg-zinc-100 {
  background-color: #161616 !important;
  border: 1px solid #383838 !important;
}

html.dark .payout-tab-btn.bg-white {
  background-color: #262626 !important;
  border: 1px solid #383838 !important;
  color: #ffffff !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4) !important;
}

html.dark .payout-tab-btn:not(.bg-white) {
  color: #737373 !important;
}

html.dark .payout-tab-btn:not(.bg-white):hover {
  color: #f4f4f5 !important;
  background-color: #1e1e1e !important;
}

/* Table Toolbar in Dark Mode - Seamless with Card (NO Light Gray Slab!) */
html.dark .table-toolbar,
html.dark .p-4.border-b {
  background-color: #1e1e1e !important;
  border-bottom: 1px solid #383838 !important;
}

/* Filter Pill Buttons in Dark Mode */
html.dark #adjFilterButtonGroup,
html.dark .inline-flex.rounded-xl.border.bg-zinc-100 {
  background-color: #161616 !important;
  border: 1px solid #383838 !important;
}

html.dark .adj-filter-btn.active,
html.dark .table-filter-btn.active {
  background-color: #262626 !important;
  border: 1px solid #383838 !important;
  color: #ffffff !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4) !important;
}

html.dark .adj-filter-btn:not(.active),
html.dark .table-filter-btn:not(.active) {
  color: #a1a1aa !important;
  background-color: transparent !important;
}

html.dark .adj-filter-btn:not(.active):hover,
html.dark .table-filter-btn:not(.active):hover {
  color: #f4f4f5 !important;
  background-color: #222222 !important;
}

/* Modern Unified Dropzones (Haftalık & Günlük) */
html.dark #weeklyUnifiedDropzone,
html.dark #dailyUnifiedDropzone {
  background-color: #181818 !important;
  border: 2px dashed #383838 !important;
}

html.dark #weeklyUnifiedDropzone:hover,
html.dark #dailyUnifiedDropzone:hover {
  background-color: #1e1e1e !important;
  border-color: #525252 !important;
}

html.dark #weeklyUnifiedDropzone.dragover,
html.dark #dailyUnifiedDropzone.dragover {
  border-color: #737373 !important;
  background-color: rgba(115, 115, 115, 0.1) !important;
}

html.dark #weeklyUnifiedDropzone .text-zinc-900,
html.dark #dailyUnifiedDropzone .text-zinc-900 {
  color: #f4f4f5 !important;
}

html.dark #weeklyUnifiedDropzone .text-zinc-500,
html.dark #dailyUnifiedDropzone .text-zinc-500 {
  color: #737373 !important;
}

/* Dropzone Upload Icon Circle */
html.dark #weeklyUnifiedDropzone .w-14.h-14,
html.dark #dailyUnifiedDropzone .w-14.h-14 {
  background-color: #222222 !important;
  color: #a1a1aa !important;
}

html.dark #weeklyUnifiedDropzone:hover .w-14.h-14,
html.dark #dailyUnifiedDropzone:hover .w-14.h-14 {
  background-color: #2a2a2a !important;
  color: #ffffff !important;
}

/* Dropzone Format Pill Badges */
html.dark #weeklyUnifiedDropzone .bg-white,
html.dark #dailyUnifiedDropzone .bg-white {
  background-color: #222222 !important;
  border-color: #383838 !important;
  color: #d4d4d8 !important;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2) !important;
}

/* Quick Stat Cards Badges in Dark Mode */
html.dark .bg-blue-50 {
  background-color: rgba(59, 130, 246, 0.12) !important;
  border-color: rgba(59, 130, 246, 0.25) !important;
  color: #60a5fa !important;
}
html.dark .border-blue-100 {
  border-color: rgba(59, 130, 246, 0.25) !important;
}

html.dark .bg-amber-50 {
  background-color: rgba(245, 158, 11, 0.12) !important;
  border-color: rgba(245, 158, 11, 0.25) !important;
  color: #fbbf24 !important;
}
html.dark .border-amber-100 {
  border-color: rgba(245, 158, 11, 0.25) !important;
}

html.dark .bg-emerald-50 {
  background-color: rgba(16, 185, 129, 0.12) !important;
  border-color: rgba(16, 185, 129, 0.25) !important;
  color: #34d399 !important;
}
html.dark .border-emerald-100 {
  border-color: rgba(16, 185, 129, 0.25) !important;
}

html.dark .bg-rose-50 {
  background-color: rgba(244, 63, 94, 0.12) !important;
  border-color: rgba(244, 63, 94, 0.25) !important;
  color: #fb7185 !important;
}
html.dark .border-rose-100 {
  border-color: rgba(244, 63, 94, 0.25) !important;
}

/* Dark Buttons (bg-zinc-900) */
html.dark .bg-zinc-900:not(aside):not(aside *) {
  background-color: #262626 !important;
  border: 1px solid #383838 !important;
  color: #ffffff !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3) !important;
}
html.dark .bg-zinc-900:not(aside):not(aside *):hover {
  background-color: #303030 !important;
}

/* Filter buttons & pills */
html.dark .filter-btn,
html.dark .notif-filter-pill {
  background-color: #1a1a1a !important;
  border: 1px solid #383838 !important;
  color: #a1a1aa !important;
}

html.dark .filter-btn.active,
html.dark .notif-filter-pill.active {
  background-color: #262626 !important;
  border-color: #525252 !important;
  color: #ffffff !important;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.5) !important;
}

/* Typography Hierarchy in Dark Mode (High Contrast & Effortless Readability) */
html.dark .text-zinc-900,
html.dark .text-zinc-800 {
  color: #f4f4f5 !important;
}

html.dark .text-zinc-700,
html.dark .text-zinc-600 {
  color: #e4e4e7 !important;
}

html.dark .text-zinc-500 {
  color: #a1a1aa !important; /* Crisp, readable zinc gray (7:1 contrast) */
}

html.dark .text-zinc-400 {
  color: #8e8e93 !important; /* Clearly legible muted hints & icons */
}

html.dark label {
  color: #e4e4e7 !important;
}

/* Modals & Dashboard Card Surfaces in Dark Mode */
html.dark .bg-zinc-50,
html.dark [class~="bg-zinc-50"],
html.dark [class*="bg-zinc-50/"] {
  background-color: #202024 !important;
  border-color: #383838 !important;
}

html.dark .bg-zinc-100,
html.dark [class~="bg-zinc-100"],
html.dark [class*="bg-zinc-100/"] {
  background-color: #25252a !important;
  border-color: #383838 !important;
}

/* Modern Tables in Dark Mode */
html.dark table thead th {
  background-color: #181818 !important;
  color: #737373 !important; /* Image 3 Chart Token */
  font-size: 11px !important;
  letter-spacing: 0.04em !important;
  text-transform: uppercase !important;
  border-bottom: 1px solid #383838 !important;
}

html.dark table tbody tr {
  background-color: #1e1e1e !important;
  border-bottom: 1px solid #292929 !important;
}

html.dark table tbody tr:hover {
  background-color: #242424 !important;
}

html.dark .table-editable-cell:hover {
  background-color: #282828 !important;
  box-shadow: inset 0 0 0 1px #525252 !important;
}

/* Inputs, Selects & Form Controls (Image 3 Tokens: Input #525252, Ring #737373) */
html.dark input[type="text"],
html.dark input[type="password"],
html.dark input[type="number"],
html.dark input[type="date"],
html.dark input[type="email"],
html.dark input[type="search"],
html.dark select,
html.dark textarea {
  background-color: #161616 !important;
  border: 1px solid #383838 !important;
  color: #f4f4f5 !important;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.3) !important;
}

html.dark input::placeholder,
html.dark textarea::placeholder {
  color: #737373 !important;
}

html.dark input:focus,
html.dark select:focus,
html.dark textarea:focus {
  border-color: #525252 !important;
  box-shadow: 0 0 0 2px #737373 !important;
  background-color: #1a1a1a !important;
}

/* Modern Modals in Dark Mode - Strictly target modal popup dialog */
html.dark .modal-content,
html.dark .fixed.inset-0 > div.bg-white,
html.dark [id$="Modal"] > div.bg-white {
  background-color: #1a1a1d !important;
  border: 1px solid #383838 !important;
  color: #f4f4f5 !important;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.8) !important;
}

/* Eradicate any rogue rectangle boxes on inner modal elements */
html.dark [id$="Modal"] [id^="modal"],
html.dark [id$="Modal"] [id^="modal"] > div,
html.dark .fixed.inset-0 [id^="modal"],
html.dark .fixed.inset-0 [id^="modal"] > div {
  box-shadow: none !important;
}

html.dark [id$="Modal"] .border-b,
html.dark .fixed.inset-0 .border-b {
  border-bottom: 1px solid #2e2e32 !important;
}

html.dark [id$="Modal"] .border-t,
html.dark .fixed.inset-0 .border-t {
  border-top: 1px solid #2e2e32 !important;
}

/* Flatpickr Dark */
html.dark .flatpickr-calendar {
  background: #1e1e1e !important;
  border: 1px solid #383838 !important;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6) !important;
}

html.dark .flatpickr-calendar .flatpickr-months {
  background: #181818 !important;
  border-bottom: 1px solid #383838 !important;
}

html.dark .flatpickr-current-month .flatpickr-monthDropdown-months,
html.dark .flatpickr-current-month input.cur-year {
  color: #f4f4f5 !important;
}

html.dark .flatpickr-calendar .flatpickr-weekday {
  background: #181818 !important;
  color: #737373 !important;
}

html.dark .flatpickr-day {
  color: #d4d4d8 !important;
}

html.dark .flatpickr-day:hover {
  background: #282828 !important;
  border-color: #282828 !important;
  color: #ffffff !important;
}

html.dark .flatpickr-day.today {
  border-color: #525252 !important;
  background: rgba(115, 115, 115, 0.15) !important;
  color: #ffffff !important;
}

html.dark .flatpickr-day.selected,
html.dark .flatpickr-day.selected:hover {
  background: #2563eb !important;
  border-color: #2563eb !important;
  color: #ffffff !important;
  box-shadow: 0 0 10px rgba(37, 99, 235, 0.5) !important;
}

html.dark .flatpickr-day.prevMonthDay,
html.dark .flatpickr-day.nextMonthDay {
  color: #404040 !important;
}

html.dark .flatpickr-input[readonly], 
html.dark input.flatpickr-input {
  background-color: #161616 !important;
  border: 1px solid #383838 !important;
  color: #f4f4f5 !important;
}

/* ====================================================
   Sidebar Notification Pill (Only when visible)
   ==================================================== */
#sidebarPendingAdjustmentsBadge:not(.hidden) {
  background-color: #fef3c7 !important;
  color: #b45309 !important;
  border: 1px solid #fcd34d !important;
  border-radius: 9999px !important;
  padding: 1px 7px !important;
  font-size: 10px !important;
  font-weight: 700 !important;
}

html.dark #sidebarPendingAdjustmentsBadge:not(.hidden) {
  background-color: rgba(245, 158, 11, 0.18) !important;
  color: #fbbf24 !important;
  border: 1px solid rgba(245, 158, 11, 0.35) !important;
  border-radius: 9999px !important;
  padding: 1px 7px !important;
  font-size: 10px !important;
  font-weight: 700 !important;
}

/* ====================================================
   Kritik Takip Alarmları (Operational Alerts Banner & Cards)
   ==================================================== */
/* Light Mode */
.dash-op-alerts-box {
  background: linear-gradient(135deg, rgba(254, 243, 199, 0.5) 0%, rgba(255, 241, 242, 0.4) 50%, rgba(254, 243, 199, 0.3) 100%);
  border: 1px solid rgba(245, 158, 11, 0.28);
  box-shadow: 0 2px 10px -2px rgba(245, 158, 11, 0.08);
}

.dash-op-alerts-icon {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #ffffff;
  box-shadow: 0 2px 6px rgba(217, 119, 6, 0.25);
}

.dash-op-alerts-title {
  color: #18181b;
}

.dash-op-alerts-count {
  background-color: #e11d48;
  color: #ffffff;
}

.dash-op-alerts-desc {
  color: #71717a;
}

.dash-op-alerts-btn {
  background-color: #ffffff;
  border: 1px solid #fcd34d;
  color: #b45309;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.dash-op-alerts-btn:hover {
  background-color: #fef3c7;
  border-color: #f59e0b;
  color: #92400e;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.16);
}

.dash-op-alerts-btn:hover .dash-op-btn-arrow {
  transform: translateX(3px);
}

.dash-op-alerts-btn:active {
  transform: scale(0.97);
}

/* Light Mode Alert Cards */
.dash-alert-card {
  background-color: #ffffff;
  border-radius: 0.75rem;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.dash-alert-card.dash-alert-warning {
  border: 1px solid #fde68a;
}

.dash-alert-card.dash-alert-urgent {
  border: 1px solid #fecdd3;
  box-shadow: 0 2px 8px -2px rgba(244, 63, 94, 0.1);
}

.dash-alert-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px -4px rgba(0, 0, 0, 0.08);
}

.dash-alert-card.dash-alert-warning:hover {
  border-color: #f59e0b;
}

.dash-alert-card.dash-alert-urgent:hover {
  border-color: #f43f5e;
}

.dash-alert-card:hover .dash-alert-chevron {
  transform: translateX(3px);
  color: #2563eb;
}

.dash-alert-card:active {
  transform: scale(0.99);
}

/* Dark Mode - Aligned with Image 3 Tokens (#1e1e1e, #161616, #383838, #525252, #737373) */
html.dark .dash-op-alerts-box {
  background: linear-gradient(135deg, #1b1b1e 0%, #17171a 50%, #19181c 100%) !important;
  border: 1px solid #383838 !important;
  box-shadow: 0 8px 28px -4px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(245, 158, 11, 0.15) !important;
}

html.dark .dash-op-alerts-icon {
  background: linear-gradient(135deg, #d97706, #b45309) !important;
  color: #ffffff !important;
  box-shadow: 0 0 14px rgba(217, 119, 6, 0.35) !important;
}

html.dark .dash-op-alerts-title {
  color: #f4f4f5 !important;
}

html.dark .dash-op-alerts-count {
  background-color: #f43f5e !important;
  color: #ffffff !important;
}

html.dark .dash-op-alerts-desc {
  color: #a1a1aa !important;
}

html.dark .dash-op-alerts-btn {
  background-color: #222226 !important;
  border: 1px solid #383838 !important;
  color: #fbbf24 !important;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

html.dark .dash-op-alerts-btn:hover {
  background-color: #2c2c32 !important;
  border-color: #f59e0b !important;
  color: #fef08a !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 4px 16px rgba(245, 158, 11, 0.25) !important;
}

html.dark .dash-op-alerts-btn:hover .dash-op-btn-arrow {
  transform: translateX(3px) !important;
}

html.dark .dash-op-alerts-btn:active {
  transform: scale(0.97) !important;
}

/* Dark Mode Alert Cards */
html.dark .dash-alert-card {
  background-color: #202024 !important;
  color: #f4f4f5 !important;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

html.dark .dash-alert-card.dash-alert-warning {
  border: 1px solid #383838 !important;
}

html.dark .dash-alert-card.dash-alert-urgent {
  border: 1px solid rgba(244, 63, 94, 0.35) !important;
}

html.dark .dash-alert-card:hover {
  background-color: #28282e !important;
  transform: translateY(-2px) !important;
}

html.dark .dash-alert-card.dash-alert-warning:hover {
  border-color: #f59e0b !important;
  box-shadow: 0 8px 24px -4px rgba(0, 0, 0, 0.6), 0 0 14px rgba(245, 158, 11, 0.16) !important;
}

html.dark .dash-alert-card.dash-alert-urgent:hover {
  border-color: #f43f5e !important;
  box-shadow: 0 8px 24px -4px rgba(0, 0, 0, 0.6), 0 0 14px rgba(244, 63, 94, 0.22) !important;
}

html.dark .dash-alert-card:hover .dash-alert-chevron {
  transform: translateX(3px) !important;
  color: #fbbf24 !important;
}

html.dark .dash-alert-card .dash-alert-plate {
  color: #f4f4f5 !important;
}

html.dark .dash-alert-card .dash-alert-body {
  color: #a1a1aa !important;
}

html.dark .dash-alert-card .dash-alert-chevron {
  color: #737373 !important;
}

/* ====================================================
   Borçlar & Bonuslar Section (Prominent Themed Backgrounds)
   ==================================================== */
/* Header Banner */
.adj-header-banner {
  background: linear-gradient(135deg, #ffffff 0%, #fafbfc 100%);
  border: 1px solid #e4e4e7;
}

html.dark .adj-header-banner {
  background: linear-gradient(135deg, #1b1b1e 0%, #17171a 100%) !important;
  border: 1px solid #383838 !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4) !important;
}

/* Pending Debt Card (.adj-card-debt & .kpi-card-debt) */
.adj-card-debt,
.kpi-card-debt {
  background: linear-gradient(145deg, #fff5f5 0%, #ffffff 82%) !important;
  border: 1px solid #fecdd3 !important;
  box-shadow: 0 4px 16px -2px rgba(244, 63, 94, 0.08) !important;
}

.adj-card-debt:hover,
.kpi-card-debt:hover {
  border-color: #fda4af !important;
  box-shadow: 0 8px 22px -2px rgba(244, 63, 94, 0.14) !important;
  transform: translateY(-2px);
}

html.dark .adj-card-debt,
html.dark .kpi-card-debt {
  background: linear-gradient(145deg, rgba(244, 63, 94, 0.14) 0%, #1e1e1e 75%) !important;
  border: 1px solid rgba(244, 63, 94, 0.38) !important;
  box-shadow: 0 6px 22px -2px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(244, 63, 94, 0.25) !important;
}

html.dark .adj-card-debt:hover,
html.dark .kpi-card-debt:hover {
  border-color: rgba(244, 63, 94, 0.65) !important;
  box-shadow: 0 10px 28px -2px rgba(0, 0, 0, 0.65), 0 0 18px rgba(244, 63, 94, 0.18) !important;
  transform: translateY(-2px);
}

/* Pending Bonus Card */
.adj-card-bonus {
  background: linear-gradient(145deg, #f0fdf4 0%, #ffffff 82%) !important;
  border: 1px solid #bbf7d0 !important;
  box-shadow: 0 4px 16px -2px rgba(16, 185, 129, 0.08) !important;
}

.adj-card-bonus:hover {
  border-color: #86efac !important;
  box-shadow: 0 8px 22px -2px rgba(16, 185, 129, 0.14) !important;
  transform: translateY(-2px);
}

html.dark .adj-card-bonus {
  background: linear-gradient(145deg, rgba(16, 185, 129, 0.12) 0%, #1e1e1e 75%) !important;
  border: 1px solid rgba(16, 185, 129, 0.35) !important;
  box-shadow: 0 6px 22px -2px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(16, 185, 129, 0.25) !important;
}

html.dark .adj-card-bonus:hover {
  border-color: rgba(16, 185, 129, 0.65) !important;
  box-shadow: 0 10px 28px -2px rgba(0, 0, 0, 0.65), 0 0 18px rgba(16, 185, 129, 0.18) !important;
  transform: translateY(-2px);
}

/* Debtor Drivers Count Card */
.adj-card-debtors {
  background: linear-gradient(145deg, #fffbeb 0%, #ffffff 82%) !important;
  border: 1px solid #fde68a !important;
  box-shadow: 0 4px 16px -2px rgba(245, 158, 11, 0.08) !important;
}

.adj-card-debtors:hover {
  border-color: #fcd34d !important;
  box-shadow: 0 8px 22px -2px rgba(245, 158, 11, 0.14) !important;
  transform: translateY(-2px);
}

html.dark .adj-card-debtors {
  background: linear-gradient(145deg, rgba(245, 158, 11, 0.12) 0%, #1e1e1e 75%) !important;
  border: 1px solid rgba(245, 158, 11, 0.35) !important;
  box-shadow: 0 6px 22px -2px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(245, 158, 11, 0.25) !important;
}

html.dark .adj-card-debtors:hover {
  border-color: rgba(245, 158, 11, 0.65) !important;
  box-shadow: 0 10px 28px -2px rgba(0, 0, 0, 0.65), 0 0 18px rgba(245, 158, 11, 0.18) !important;
  transform: translateY(-2px);
}

/* Net Impact Card */
.adj-card-net {
  background: linear-gradient(145deg, #eff6ff 0%, #ffffff 82%) !important;
  border: 1px solid #bfdbfe !important;
  box-shadow: 0 4px 16px -2px rgba(59, 130, 246, 0.08) !important;
}

.adj-card-net:hover {
  border-color: #93c5fd !important;
  box-shadow: 0 8px 22px -2px rgba(59, 130, 246, 0.14) !important;
  transform: translateY(-2px);
}

html.dark .adj-card-net {
  background: linear-gradient(145deg, rgba(59, 130, 246, 0.12) 0%, #1e1e1e 75%) !important;
  border: 1px solid rgba(59, 130, 246, 0.35) !important;
  box-shadow: 0 6px 22px -2px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(59, 130, 246, 0.25) !important;
}

html.dark .adj-card-net:hover {
  border-color: rgba(59, 130, 246, 0.65) !important;
  box-shadow: 0 10px 28px -2px rgba(0, 0, 0, 0.65), 0 0 18px rgba(59, 130, 246, 0.18) !important;
  transform: translateY(-2px);
}

/* Adjustments Filter Button Group */
#adjFilterButtonGroup {
  background-color: #f4f4f5;
  border: 1px solid #e4e4e7;
  padding: 3px;
  border-radius: 0.75rem;
  gap: 3px;
}

.adj-filter-btn {
  padding: 0.375rem 0.75rem;
  border-radius: 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  color: #71717a;
  background: transparent;
  border: 1px solid transparent;
}

.adj-filter-btn:hover {
  color: #18181b;
  background-color: rgba(0, 0, 0, 0.04);
}

.adj-filter-btn.active {
  background: #ffffff;
  color: #18181b;
  font-weight: 700;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

/* Borçlar / Kesintiler Filter */
.adj-filter-btn[data-filter="debt"] {
  color: #e11d48;
}
.adj-filter-btn[data-filter="debt"]:hover {
  color: #be123c;
  background: rgba(244, 63, 94, 0.08);
}
.adj-filter-btn[data-filter="debt"].active {
  background: #ffe4e6 !important;
  color: #be123c !important;
  border-color: #fecdd3 !important;
}

/* Primler / Bonuslar Filter */
.adj-filter-btn[data-filter="bonus"] {
  color: #059669;
}
.adj-filter-btn[data-filter="bonus"]:hover {
  color: #047857;
  background: rgba(16, 185, 129, 0.08);
}
.adj-filter-btn[data-filter="bonus"].active {
  background: #d1fae5 !important;
  color: #047857 !important;
  border-color: #a7f3d0 !important;
}

/* Bekleyenler Filter */
.adj-filter-btn[data-status="pending"] {
  color: #d97706;
}
.adj-filter-btn[data-status="pending"]:hover {
  color: #b45309;
  background: rgba(245, 158, 11, 0.08);
}
.adj-filter-btn[data-status="pending"].active {
  background: #fef3c7 !important;
  color: #b45309 !important;
  border-color: #fde68a !important;
}

/* Düşülenler Filter */
.adj-filter-btn[data-status="applied"] {
  color: #2563eb;
}
.adj-filter-btn[data-status="applied"]:hover {
  color: #1d4ed8;
  background: rgba(37, 99, 235, 0.08);
}
.adj-filter-btn[data-status="applied"].active {
  background: #dbeafe !important;
  color: #1d4ed8 !important;
  border-color: #bfdbfe !important;
}

/* Dark Mode for Adjustments Filters */
html.dark #adjFilterButtonGroup {
  background-color: #161616 !important;
  border-color: #383838 !important;
}

html.dark .adj-filter-btn {
  color: #a1a1aa !important;
  background: transparent !important;
  border-color: transparent !important;
}

html.dark .adj-filter-btn:hover {
  color: #ffffff !important;
  background-color: #222222 !important;
}

html.dark .adj-filter-btn.active {
  background: #262626 !important;
  color: #ffffff !important;
  border: 1px solid #383838 !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4) !important;
}

html.dark .adj-filter-btn[data-filter="debt"] {
  color: #fb7185 !important;
}
html.dark .adj-filter-btn[data-filter="debt"]:hover {
  color: #f43f5e !important;
  background: rgba(244, 63, 94, 0.15) !important;
}
html.dark .adj-filter-btn[data-filter="debt"].active {
  background: rgba(244, 63, 94, 0.22) !important;
  color: #fecdd3 !important;
  border: 1px solid rgba(244, 63, 94, 0.45) !important;
  box-shadow: 0 0 12px rgba(244, 63, 94, 0.15) !important;
}

html.dark .adj-filter-btn[data-filter="bonus"] {
  color: #34d399 !important;
}
html.dark .adj-filter-btn[data-filter="bonus"]:hover {
  color: #10b981 !important;
  background: rgba(16, 185, 129, 0.15) !important;
}
html.dark .adj-filter-btn[data-filter="bonus"].active {
  background: rgba(16, 185, 129, 0.22) !important;
  color: #a7f3d0 !important;
  border: 1px solid rgba(16, 185, 129, 0.45) !important;
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.15) !important;
}

html.dark .adj-filter-btn[data-status="pending"] {
  color: #fbbf24 !important;
}
html.dark .adj-filter-btn[data-status="pending"]:hover {
  color: #f59e0b !important;
  background: rgba(245, 158, 11, 0.15) !important;
}
html.dark .adj-filter-btn[data-status="pending"].active {
  background: rgba(245, 158, 11, 0.22) !important;
  color: #fde68a !important;
  border: 1px solid rgba(245, 158, 11, 0.45) !important;
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.15) !important;
}

html.dark .adj-filter-btn[data-status="applied"] {
  color: #60a5fa !important;
}
html.dark .adj-filter-btn[data-status="applied"]:hover {
  color: #3b82f6 !important;
  background: rgba(59, 130, 246, 0.15) !important;
}
html.dark .adj-filter-btn[data-status="applied"].active {
  background: rgba(59, 130, 246, 0.22) !important;
  color: #bfdbfe !important;
  border: 1px solid rgba(59, 130, 246, 0.45) !important;
  box-shadow: 0 0 12px rgba(59, 130, 246, 0.15) !important;
}

/* Adjustments Table Debt Badge in Dark Mode */
html.dark .border-rose-200 {
  border-color: rgba(244, 63, 94, 0.35) !important;
}
html.dark .border-emerald-200 {
  border-color: rgba(16, 185, 129, 0.35) !important;
}
html.dark .border-amber-200 {
  border-color: rgba(245, 158, 11, 0.35) !important;
}
html.dark .border-blue-200 {
  border-color: rgba(59, 130, 246, 0.35) !important;
}

/* ====================================================
   Vehicle Modal Dark Mode Enhancements (Image 1 Fixes)
   ==================================================== */
/* Inspection Card & Elements */
html.dark #modalInspectionCard {
  background-color: #1e1e22 !important;
  border: 1px solid #383838 !important;
}

html.dark #modalInspectionCard h5 {
  color: #f4f4f5 !important;
}

html.dark #modalInspectionDesc {
  color: #a1a1aa !important;
}

html.dark #modalInspectionUrgencyBadge {
  background-color: #26262b !important;
  color: #d4d4d8 !important;
  border: 1px solid #383838 !important;
}

html.dark #modalInspectionCard input#modalVehicleInspection {
  background-color: #161616 !important;
  border: 1px solid #383838 !important;
  color: #f4f4f5 !important;
}

/* Temporary License Card */
html.dark .modal-temp-license-card,
html.dark #modalTempLicenseCard {
  background: #1e1e22 !important;
  border: 1px solid #383838 !important;
}

html.dark #modalTempLicenseCard h5 {
  color: #f4f4f5 !important;
}

html.dark #modalTempLicenseCard p {
  color: #a1a1aa !important;
}

html.dark #modalTempLicenseBadge {
  background-color: #26262b !important;
  color: #a1a1aa !important;
  border: 1px solid #383838 !important;
}

html.dark #modalInputStartLicenseNumber {
  background-color: #161616 !important;
  border: 1px solid #383838 !important;
  color: #f4f4f5 !important;
}

/* ====================================================
   License Modal Type Radio Options (Image 2, 3, 4 Fixes)
   ==================================================== */
html.dark #lblLicTypePermanent {
  background-color: rgba(16, 185, 129, 0.12) !important;
  border: 1px solid rgba(16, 185, 129, 0.45) !important;
}

html.dark #lblLicTypePermanent span,
html.dark #lblLicTypePermanent .text-emerald-950 {
  color: #34d399 !important;
}

html.dark #lblLicTypeExchange {
  background-color: #202024 !important;
  border: 1px solid #383838 !important;
}

html.dark #lblLicTypeExchange span {
  color: #f4f4f5 !important;
}

/* Form Input Placeholders & Select Options in Dark Mode */
html.dark input::placeholder,
html.dark textarea::placeholder {
  color: #71717a !important;
  opacity: 1 !important;
}

html.dark select option {
  background-color: #1e1e1e !important;
  color: #f4f4f5 !important;
}

/* ====================================================
   Comprehensive Dark Mode Panels & Modals Polish
   ==================================================== */

/* General Modal Elements */
html.dark [id$="Modal"] label,
html.dark .fixed.inset-0 label {
  color: #d4d4d8 !important;
}

html.dark [id$="Modal"] h3,
html.dark [id$="Modal"] h4,
html.dark [id$="Modal"] h5,
html.dark .fixed.inset-0 h3,
html.dark .fixed.inset-0 h4,
html.dark .fixed.inset-0 h5 {
  color: #f4f4f5 !important;
}

html.dark [id$="Modal"] p,
html.dark .fixed.inset-0 p {
  color: #a1a1aa !important;
}

html.dark [id$="Modal"] input:not([type="checkbox"]):not([type="radio"]),
html.dark [id$="Modal"] select,
html.dark [id$="Modal"] textarea,
html.dark .fixed.inset-0 input:not([type="checkbox"]):not([type="radio"]),
html.dark .fixed.inset-0 select,
html.dark .fixed.inset-0 textarea {
  background-color: #161616 !important;
  border-color: #383838 !important;
  color: #f4f4f5 !important;
}

html.dark [id$="Modal"] .modal-close {
  color: #71717a !important;
}

html.dark [id$="Modal"] .modal-close:hover {
  color: #f4f4f5 !important;
  background-color: #26262a !important;
}

/* Modal Footer Cancel Buttons */
html.dark .modal-btn-cancel,
html.dark [id$="Modal"] .modal-btn-cancel {
  background-color: transparent !important;
  border: none !important;
  color: #a1a1aa !important;
  box-shadow: none !important;
}

html.dark .modal-btn-cancel:hover,
html.dark [id$="Modal"] .modal-btn-cancel:hover {
  background-color: rgba(255, 255, 255, 0.08) !important;
  color: #f4f4f5 !important;
}

/* 1. ZUS MODAL (Fix white box, age pills, inputs) */
html.dark #zusModal .zus-calc-card,
html.dark .zus-calc-card {
  background: #18181b !important;
  background-image: none !important;
  border: 1px solid #2e2e32 !important;
}

html.dark .zus-calc-card .bg-white {
  background-color: #202024 !important;
  border-color: #383838 !important;
}

html.dark #zusSumNetDisplay {
  color: #f4f4f5 !important;
}

html.dark #zusSumDedTitle,
html.dark .zus-calc-card span.text-zinc-400 {
  color: #71717a !important;
}

html.dark #zusSumRuleLabel {
  background-color: rgba(59, 130, 246, 0.15) !important;
  color: #60a5fa !important;
  border: 1px solid rgba(59, 130, 246, 0.3) !important;
}

/* ZUS Age Pills */
html.dark .zus-age-pill,
html.dark .zus-age-pill.zus-age-inactive {
  background-color: #202024 !important;
  border: 1px solid #383838 !important;
  color: #a1a1aa !important;
}

html.dark .zus-age-pill.zus-age-active-under {
  background-color: rgba(245, 158, 11, 0.15) !important;
  border: 2px solid #f59e0b !important;
  color: #fbbf24 !important;
}

html.dark .zus-age-pill.zus-age-active-over {
  background-color: rgba(59, 130, 246, 0.15) !important;
  border: 2px solid #3b82f6 !important;
  color: #60a5fa !important;
}

/* 2. LICENSE MODAL */
html.dark #modalLicExchangeFields {
  background-color: rgba(245, 158, 11, 0.08) !important;
  border: 1px solid rgba(245, 158, 11, 0.25) !important;
  box-shadow: none !important;
}

html.dark #modalLicExchangeFields > div {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

html.dark #modalLicExchangeFields .text-amber-900,
html.dark #modalLicExchangeFields label {
  color: #fbbf24 !important;
}

html.dark #modalLicExchangeFields input {
  background-color: #161616 !important;
  border: 1px solid #383838 !important;
  color: #f4f4f5 !important;
}

html.dark #licenseModal .bg-zinc-50 {
  background-color: #18181b !important;
  border-color: #2e2e32 !important;
}

html.dark #licenseModal .bg-zinc-50 .bg-white {
  background-color: #202024 !important;
  border-color: #383838 !important;
}

html.dark #modalLicBoltPreview,
html.dark #modalLicUberPreview {
  color: #f4f4f5 !important;
}

html.dark #modalLicTypeIndicator {
  background-color: rgba(16, 185, 129, 0.15) !important;
  color: #34d399 !important;
  border: 1px solid rgba(16, 185, 129, 0.3) !important;
}

/* 3. VEHICLE MODAL */
html.dark #vehicleModal .bg-zinc-50\/70,
html.dark #vehicleModal .bg-zinc-50\/80 {
  background-color: #18181b !important;
  border-color: #2e2e32 !important;
}

html.dark #modalHeroModelTitle {
  color: #f4f4f5 !important;
}

html.dark #modalHeroModelSub {
  color: #a1a1aa !important;
}

html.dark #modalHeroStatusPill {
  background-color: rgba(245, 158, 11, 0.15) !important;
  border-color: rgba(245, 158, 11, 0.35) !important;
  color: #fbbf24 !important;
}

html.dark #modalDriverInfoCard {
  background-color: #18181b !important;
  border-color: #2e2e32 !important;
}

html.dark #modalDriverInfoCard > div {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

html.dark #modalDriverInfoCard .bg-white {
  background-color: #202024 !important;
  border-color: #383838 !important;
}

html.dark #modalVehicleDriverName,
html.dark #modalQuickRentText,
html.dark #modalQuickYearText {
  color: #f4f4f5 !important;
}

html.dark #modalTempLicenseActiveBox .bg-blue-50\/70 {
  background-color: #202024 !important;
  border-color: #383838 !important;
}

/* 4. PAYOUT EMAIL MODAL */
html.dark #payoutEmailModal .bg-zinc-50 {
  background-color: #18181b !important;
  border-color: #2e2e32 !important;
  color: #a1a1aa !important;
}

html.dark #payoutEmailModal .bg-emerald-50\/70 {
  background-color: rgba(16, 185, 129, 0.1) !important;
  border-color: rgba(16, 185, 129, 0.3) !important;
}

html.dark #emailModalReadyCount {
  color: #34d399 !important;
}

html.dark #payoutEmailModal .text-emerald-800 {
  color: #6ee7b7 !important;
}

html.dark #payoutEmailModal .text-emerald-600\/90 {
  color: #a7f3d0 !important;
}

html.dark #payoutEmailModal .bg-amber-50\/70 {
  background-color: rgba(245, 158, 11, 0.1) !important;
  border-color: rgba(245, 158, 11, 0.3) !important;
}

html.dark #emailModalMissingCount {
  color: #fbbf24 !important;
}

html.dark #payoutEmailModal .text-amber-800 {
  color: #fde68a !important;
}

html.dark #payoutEmailModal .text-amber-600\/90 {
  color: #fef3c7 !important;
}

html.dark #labelTimingScheduled {
  background-color: rgba(59, 130, 246, 0.12) !important;
  border-color: rgba(59, 130, 246, 0.5) !important;
}

html.dark #labelTimingScheduled .text-blue-950,
html.dark #labelTimingScheduled span {
  color: #93c5fd !important;
}

html.dark #labelTimingScheduled p {
  color: #a1a1aa !important;
}

html.dark #labelTimingInstant {
  background-color: #202024 !important;
  border-color: #383838 !important;
}

html.dark #labelTimingInstant span {
  color: #f4f4f5 !important;
}

html.dark #labelTimingInstant p {
  color: #a1a1aa !important;
}

html.dark #scheduledTimeContainer {
  background-color: #18181b !important;
  border-color: #2e2e32 !important;
}

html.dark #scheduledTimeContainer span {
  color: #d4d4d8 !important;
}

html.dark #suggestedSessionBadge {
  background-color: rgba(59, 130, 246, 0.2) !important;
  color: #93c5fd !important;
}

html.dark .btn-quick-session {
  background-color: #202024 !important;
  border-color: #383838 !important;
  color: #d4d4d8 !important;
}

html.dark .btn-quick-session:hover {
  background-color: #27272a !important;
  color: #60a5fa !important;
  border-color: #3b82f6 !important;
}

html.dark #inputScheduledEmailDateTime {
  background-color: #161616 !important;
  border-color: #383838 !important;
  color: #f4f4f5 !important;
}

html.dark #payoutEmailModal .bg-blue-50\/50 {
  background-color: rgba(59, 130, 246, 0.08) !important;
  border-color: rgba(59, 130, 246, 0.25) !important;
}

html.dark #payoutEmailModal .text-blue-900 {
  color: #93c5fd !important;
}

html.dark #inputTestEmail {
  background-color: #161616 !important;
  border-color: #383838 !important;
  color: #f4f4f5 !important;
}

html.dark #btnSendTestEmail {
  background-color: #202024 !important;
  border-color: #383838 !important;
  color: #93c5fd !important;
}

html.dark #btnSendTestEmail:hover {
  background-color: #27272a !important;
}

/* 5. DRIVER MODAL */
html.dark #driverModal .bg-zinc-50 {
  background-color: #18181b !important;
  border-color: #2e2e32 !important;
}

html.dark #driverModal .bg-zinc-50 .bg-white {
  background-color: #202024 !important;
  border-color: #383838 !important;
}

html.dark #driverModal .bg-amber-50\/80 {
  background-color: rgba(245, 158, 11, 0.08) !important;
  border-color: rgba(245, 158, 11, 0.25) !important;
}

html.dark #driverModal .text-amber-900 {
  color: #fbbf24 !important;
}

/* 6. ADJUSTMENT MODAL */
html.dark .adj-cat-chip {
  background-color: #202024 !important;
  border-color: #383838 !important;
  color: #d4d4d8 !important;
}

html.dark .adj-cat-chip:hover {
  background-color: #26262a !important;
}

html.dark .adj-amount-chip {
  background-color: #242428 !important;
  border: 1px solid #383838 !important;
  color: #d4d4d8 !important;
}

html.dark .adj-amount-chip:hover {
  background-color: #2f2f36 !important;
  color: #f4f4f5 !important;
}

/* 7. DEDUCTIONS & SLIP MODAL */
html.dark #deductionsModal .bg-zinc-50 {
  background-color: #18181b !important;
  border-color: #2e2e32 !important;
}

html.dark #deductionsModalList {
  background-color: #18181b !important;
  border-color: #2e2e32 !important;
  divide-color: #2e2e32 !important;
}

html.dark #deductionsModalGross {
  color: #f4f4f5 !important;
}

html.dark #slipModal .bg-zinc-50 {
  background-color: #18181b !important;
  border-color: #2e2e32 !important;
}

html.dark #slipText {
  color: #e4e4e7 !important;
}




/* ----------------------------------------------------
   LOGOUT CONFIRMATION MODAL
   Centered panel with subtle backdrop blur.
   Works in both light and dark themes.
---------------------------------------------------- */
.logout-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  transition: opacity 0.2s ease;
  pointer-events: none;
}

.logout-modal-overlay.hidden {
  display: none !important;
}

.logout-modal-overlay.is-visible {
  opacity: 1;
  pointer-events: auto;
}

html.dark .logout-modal-overlay {
  background: rgba(0, 0, 0, 0.45);
}

/* Panel */
.logout-modal-panel {
  width: 100%;
  max-width: 300px;
  margin: 0 16px;
  padding: 18px 20px 16px;
  border-radius: 16px;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 16px 48px -8px rgba(0, 0, 0, 0.14),
              0 3px 12px -3px rgba(0, 0, 0, 0.06);
  color: #18181b;
  transform: scale(0.96) translateY(6px);
  opacity: 0;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1),
              opacity 0.2s ease;
}

.logout-modal-overlay.is-visible .logout-modal-panel {
  transform: scale(1) translateY(0);
  opacity: 1;
}

html.dark .logout-modal-panel {
  background: #1c1d22;
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 16px 48px -8px rgba(0, 0, 0, 0.5),
              0 3px 12px -3px rgba(0, 0, 0, 0.3);
  color: #f4f4f5;
}

/* Icon box */
.logout-modal-icon-box {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: #fef2f2;
  color: #dc2626;
  border: 1px solid #fecaca;
}

html.dark .logout-modal-icon-box {
  background: rgba(220, 38, 38, 0.12);
  color: #f87171;
  border-color: rgba(220, 38, 38, 0.2);
}

/* Cancel button */
.logout-modal-btn-cancel {
  padding: 6px 14px;
  border-radius: 9px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease;
  border: 1px solid #e4e4e7;
  background: #ffffff;
  color: #3f3f46;
}

.logout-modal-btn-cancel:hover {
  background: #f4f4f5;
  border-color: #d4d4d8;
}

html.dark .logout-modal-btn-cancel {
  background: #27272a;
  border-color: rgba(255, 255, 255, 0.1);
  color: #a1a1aa;
}

html.dark .logout-modal-btn-cancel:hover {
  background: #333338;
  border-color: rgba(255, 255, 255, 0.18);
  color: #d4d4d8;
}

/* Confirm (logout) button */
.logout-modal-btn-confirm {
  padding: 6px 16px;
  border-radius: 9px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: background-color 0.15s ease, box-shadow 0.15s ease;
  border: none;
  background: #dc2626;
  color: #ffffff;
  box-shadow: 0 1px 3px rgba(220, 38, 38, 0.3);
}

.logout-modal-btn-confirm:hover {
  background: #b91c1c;
  box-shadow: 0 2px 6px rgba(220, 38, 38, 0.35);
}

html.dark .logout-modal-btn-confirm {
  background: #ef4444;
  box-shadow: 0 1px 3px rgba(239, 68, 68, 0.25);
}

html.dark .logout-modal-btn-confirm:hover {
  background: #dc2626;
  box-shadow: 0 2px 6px rgba(239, 68, 68, 0.35);
}

/* Color Variants for Generic Confirm Modal */
.logout-modal-icon-box.is-warning {
  background: #fffbeb !important;
  color: #d97706 !important;
  border-color: #fde68a !important;
}
html.dark .logout-modal-icon-box.is-warning {
  background: rgba(217, 119, 6, 0.15) !important;
  color: #fbbf24 !important;
  border-color: rgba(217, 119, 6, 0.25) !important;
}
.logout-modal-btn-confirm.is-warning {
  background: #d97706 !important;
  color: #ffffff !important;
  box-shadow: 0 1px 3px rgba(217, 119, 6, 0.3) !important;
}
.logout-modal-btn-confirm.is-warning:hover {
  background: #b45309 !important;
  box-shadow: 0 2px 6px rgba(217, 119, 6, 0.4) !important;
}
html.dark .logout-modal-btn-confirm.is-warning {
  background: #f59e0b !important;
  color: #18181b !important;
  box-shadow: 0 1px 3px rgba(245, 158, 11, 0.25) !important;
}
html.dark .logout-modal-btn-confirm.is-warning:hover {
  background: #d97706 !important;
  color: #ffffff !important;
}

.logout-modal-icon-box.is-success {
  background: #ecfdf5 !important;
  color: #059669 !important;
  border-color: #a7f3d0 !important;
}
html.dark .logout-modal-icon-box.is-success {
  background: rgba(5, 150, 105, 0.15) !important;
  color: #34d399 !important;
  border-color: rgba(5, 150, 105, 0.25) !important;
}
.logout-modal-btn-confirm.is-success {
  background: #059669 !important;
  color: #ffffff !important;
  box-shadow: 0 1px 3px rgba(5, 150, 105, 0.3) !important;
}
.logout-modal-btn-confirm.is-success:hover {
  background: #047857 !important;
  box-shadow: 0 2px 6px rgba(5, 150, 105, 0.4) !important;
}
html.dark .logout-modal-btn-confirm.is-success {
  background: #10b981 !important;
  color: #ffffff !important;
}

.logout-modal-icon-box.is-primary {
  background: #eff6ff !important;
  color: #2563eb !important;
  border-color: #bfdbfe !important;
}
html.dark .logout-modal-icon-box.is-primary {
  background: rgba(37, 99, 235, 0.15) !important;
  color: #60a5fa !important;
  border-color: rgba(37, 99, 235, 0.25) !important;
}
.logout-modal-btn-confirm.is-primary {
  background: #2563eb !important;
  color: #ffffff !important;
  box-shadow: 0 1px 3px rgba(37, 99, 235, 0.3) !important;
}
.logout-modal-btn-confirm.is-primary:hover {
  background: #1d4ed8 !important;
  box-shadow: 0 2px 6px rgba(37, 99, 235, 0.4) !important;
}
html.dark .logout-modal-btn-confirm.is-primary {
  background: #3b82f6 !important;
  color: #ffffff !important;
}


/* Theme Option Cards in Settings */
.theme-option-card {
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  background-color: #ffffff;
  border: 1.5px solid #e4e4e7;
}
.theme-option-card:hover {
  border-color: #a1a1aa;
}
.theme-option-card.is-active {
  border-color: #2563eb !important;
  background-color: #eff6ff !important;
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.18) !important;
}

html.dark .theme-option-card {
  background-color: #1e1e1e !important;
  border-color: #383838 !important;
}
html.dark .theme-option-card:hover {
  border-color: #525252 !important;
}
html.dark .theme-option-card.is-active {
  border-color: #3b82f6 !important;
  background-color: rgba(30, 58, 138, 0.25) !important;
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.25) !important;
}

/* ====================================================
   MOBILE & TABLET RESPONSIVE DESIGN (< 1024px)
   ==================================================== */
@media (max-width: 1023px) {
  /* Off-canvas mobile sidebar */
  #appSidebar {
    position: fixed !important;
    top: 0 !important;
    bottom: 0 !important;
    left: 0 !important;
    z-index: 50 !important;
    width: 285px !important;
    max-width: 82vw !important;
    transform: translateX(-100%);
    transition: transform 0.34s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.34s ease;
    box-shadow: none;
    height: 100vh !important;
    background-color: #ffffff;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    will-change: transform;
    touch-action: pan-y;
  }

  #appSidebar.is-dragging {
    transition: none !important;
  }

  html.dark #appSidebar {
    background-color: #121215 !important;
    border-color: #27272a !important;
  }

  #appSidebar.mobile-open {
    transform: translateX(0) !important;
    box-shadow: 0 20px 45px -10px rgba(0, 0, 0, 0.4) !important;
  }

  #sidebarBackdrop {
    position: fixed !important;
    inset: 0 !important;
    z-index: 45 !important;
    background-color: rgba(0, 0, 0, 0.45) !important;
    backdrop-filter: blur(2px) !important;
    -webkit-backdrop-filter: blur(2px) !important;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.34s cubic-bezier(0.25, 1, 0.5, 1) !important;
  }

  #sidebarBackdrop.is-dragging {
    transition: none !important;
    pointer-events: auto !important;
  }

  #sidebarBackdrop.mobile-open {
    opacity: 1 !important;
    pointer-events: auto !important;
  }

  body.mobile-menu-active {
    overflow: hidden !important;
  }

  /* Main wrapper takes 100% of the screen width */
  body > div.flex-1 {
    width: 100% !important;
    min-width: 0 !important;
  }
}

/* Phones & Small Screens (< 768px) */
@media (max-width: 767px) {
  /* Prevent iOS automatic zoom on form input focus */
  input[type="text"],
  input[type="number"],
  input[type="password"],
  input[type="email"],
  input[type="search"],
  select,
  textarea {
    font-size: 14px !important;
    touch-action: manipulation;
  }

  /* Compact header on mobile */
  header {
    padding-left: 0.75rem !important;
    padding-right: 0.75rem !important;
  }

  /* Table smooth touch-scrolling */
  .overflow-x-auto {
    -webkit-overflow-scrolling: touch !important;
    scrollbar-width: thin;
    max-width: 100%;
  }

  /* Ensure table cells don't wrap awkwardly */
  table th, table td {
    white-space: nowrap;
  }

  /* Filter bar wrap on mobile */
  .filter-dd-group {
    flex: 1 1 calc(50% - 0.5rem);
    min-width: 130px;
  }
  .filter-dropdown-btn {
    width: 100%;
    justify-content: space-between;
  }

  /* Modals full fitting on small screens */
  #driverModal > div,
  #vehicleModal > div,
  #licenseModal > div,
  #workPermitModal > div,
  #adjustmentModal > div,
  #zusModal > div,
  #deductionsModal > div,
  #payoutEmailModal > div,
  #licenseExchangeModal > div,
  #licenseCompleteModal > div,
  #workPermitCompleteModal > div {
    max-width: 100% !important;
    width: calc(100% - 1rem) !important;
    margin: 0.5rem auto !important;
    max-height: 92vh !important;
  }
}

