/* ==================== VAZIRMATN FD (FARSI DIGITS) NATIVE WEB FONTS ==================== */
@font-face {
  font-family: 'Vazirmatn FD';
  src: url('/fonts/Vazirmatn-FD-Regular.woff2') format('woff2'),
       url('fonts/Vazirmatn-FD-Regular.woff2') format('woff2'),
       url('https://cdn.jsdelivr.net/gh/rastikerdar/vazirmatn@v33.003/misc/Farsi-Digits/fonts/webfonts/Vazirmatn-FD-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Vazirmatn FD';
  src: url('/fonts/Vazirmatn-FD-Light.woff2') format('woff2'),
       url('fonts/Vazirmatn-FD-Light.woff2') format('woff2'),
       url('https://cdn.jsdelivr.net/gh/rastikerdar/vazirmatn@v33.003/misc/Farsi-Digits/fonts/webfonts/Vazirmatn-FD-Light.woff2') format('woff2');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Vazirmatn FD';
  src: url('/fonts/Vazirmatn-FD-Medium.woff2') format('woff2'),
       url('fonts/Vazirmatn-FD-Medium.woff2') format('woff2'),
       url('https://cdn.jsdelivr.net/gh/rastikerdar/vazirmatn@v33.003/misc/Farsi-Digits/fonts/webfonts/Vazirmatn-FD-Medium.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Vazirmatn FD';
  src: url('/fonts/Vazirmatn-FD-SemiBold.woff2') format('woff2'),
       url('fonts/Vazirmatn-FD-SemiBold.woff2') format('woff2'),
       url('https://cdn.jsdelivr.net/gh/rastikerdar/vazirmatn@v33.003/misc/Farsi-Digits/fonts/webfonts/Vazirmatn-FD-SemiBold.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Vazirmatn FD';
  src: url('/fonts/Vazirmatn-FD-Bold.woff2') format('woff2'),
       url('fonts/Vazirmatn-FD-Bold.woff2') format('woff2'),
       url('https://cdn.jsdelivr.net/gh/rastikerdar/vazirmatn@v33.003/misc/Farsi-Digits/fonts/webfonts/Vazirmatn-FD-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Vazirmatn FD';
  src: url('/fonts/Vazirmatn-FD-ExtraBold.woff2') format('woff2'),
       url('fonts/Vazirmatn-FD-ExtraBold.woff2') format('woff2'),
       url('https://cdn.jsdelivr.net/gh/rastikerdar/vazirmatn@v33.003/misc/Farsi-Digits/fonts/webfonts/Vazirmatn-FD-ExtraBold.woff2') format('woff2');
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Vazirmatn FD';
  src: url('/fonts/Vazirmatn-FD-Black.woff2') format('woff2'),
       url('fonts/Vazirmatn-FD-Black.woff2') format('woff2'),
       url('https://cdn.jsdelivr.net/gh/rastikerdar/vazirmatn@v33.003/misc/Farsi-Digits/fonts/webfonts/Vazirmatn-FD-Black.woff2') format('woff2');
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

/* Standard Vazirmatn web font */
@font-face {
  font-family: 'Vazirmatn';
  src: url('/fonts/Vazirmatn-Regular.woff2') format('woff2'),
       url('fonts/Vazirmatn-Regular.woff2') format('woff2'),
       url('https://cdn.jsdelivr.net/gh/rastikerdar/vazirmatn@v33.003/fonts/webfonts/Vazirmatn-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Vazirmatn';
  src: url('/fonts/Vazirmatn-Bold.woff2') format('woff2'),
       url('fonts/Vazirmatn-Bold.woff2') format('woff2'),
       url('https://cdn.jsdelivr.net/gh/rastikerdar/vazirmatn@v33.003/fonts/webfonts/Vazirmatn-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --primary: #10b981;
  --primary-hover: #059669;
  --accent: #f59e0b;
  --bg-dark: #070a13;
  --card-dark: #111827;
  --border-dark: #1f2937;
  --font-base: 'Vazirmatn FD', 'Vazirmatn', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

*, html, body, button, input, select, textarea {
  font-family: var(--font-base);
  box-sizing: border-box;
}

body {
  direction: rtl;
  background-color: #070a13;
  color: #f1f5f9;
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  font-family: var(--font-base);
}

/* Tabular Persian Numbers & Monospace overrides */
.font-mono,
[dir="ltr"] .font-mono,
input.font-mono,
span.font-mono,
div.font-mono,
td.font-mono,
th.font-mono,
p.font-mono,
strong.font-mono,
code.font-mono {
  font-family: 'Vazirmatn FD', 'Vazirmatn', monospace !important;
  font-variant-numeric: tabular-nums !important;
  font-feature-settings: "tnum" 1 !important;
  letter-spacing: 0.25px;
}

/* Currency Inputs Live Styling */
input.currency-input {
  direction: ltr !important;
  text-align: left !important;
  font-family: 'Vazirmatn FD', 'Vazirmatn', monospace !important;
  font-variant-numeric: tabular-nums !important;
  font-feature-settings: "tnum" 1 !important;
  font-weight: 700 !important;
  letter-spacing: 0.5px !important;
}

/* Custom Scrollbars */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: #0f172a;
}
::-webkit-scrollbar-thumb {
  background: #334155;
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: #475569;
}

/* Hero Background Gradient */
.hero-glow {
  background: radial-gradient(circle at 50% 20%, rgba(16, 185, 129, 0.15), transparent 60%);
}

.glass-panel {
  background: rgba(17, 24, 39, 0.8);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

/* Pulse animation for incoming Caller ID */
@keyframes caller-ring {
  0% { transform: scale(0.96); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.8); }
  70% { transform: scale(1.04); box-shadow: 0 0 0 16px rgba(239, 68, 68, 0); }
  100% { transform: scale(0.96); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

.caller-pulse-active {
  animation: caller-ring 1.6s infinite;
}

/* Sortable Table Column Headers */
.sortable-th {
  cursor: pointer;
  user-select: none;
  transition: all 0.15s ease-in-out;
}
.sortable-th:hover {
  background-color: rgba(30, 41, 59, 0.7);
  color: #ffffff;
}
.sortable-th.sorted-active {
  background-color: rgba(6, 182, 212, 0.15);
  color: #22d3ee;
  border-bottom: 2px solid #06b6d4;
}

/* EPSON TM-T20II 80mm Thermal Print Exact Styles */
@media print {
  body * {
    visibility: hidden;
  }
  #thermalReceiptContainer, #thermalReceiptContainer * {
    visibility: visible;
  }
  #thermalReceiptContainer {
    position: absolute;
    left: 0;
    top: 0;
    width: 80mm !important;
    max-width: 80mm !important;
    margin: 0 !important;
    padding: 2mm 3mm !important;
    color: #000000 !important;
    background: #ffffff !important;
    font-size: 11px !important;
    line-height: 1.4 !important;
    font-family: 'Vazirmatn FD', 'Vazirmatn', monospace !important;
  }
  @page {
    size: 80mm auto;
    margin: 0;
  }
}

/* ================= COMPREHENSIVE LIGHT THEME RULES (HIGH CONTRAST & CRISP READABILITY) ================= */
body.theme-light {
  background-color: #f1f5f9 !important;
  color: #0f172a !important;
}

body.theme-light header {
  background-color: #ffffff !important;
  border-bottom: 1px solid #cbd5e1 !important;
  box-shadow: 0 4px 12px -2px rgba(0, 0, 0, 0.06) !important;
}

body.theme-light .hero-glow {
  background: radial-gradient(circle at 50% 20%, rgba(16, 185, 129, 0.1), transparent 70%) !important;
}

/* Scrollbars in Light Theme */
body.theme-light ::-webkit-scrollbar-track {
  background: #f1f5f9;
}
body.theme-light ::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 3px;
}
body.theme-light ::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* Glass Panels in Light Theme */
body.theme-light .glass-panel {
  background: rgba(255, 255, 255, 0.96) !important;
  border: 1px solid #cbd5e1 !important;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05) !important;
}

/* Base Surfaces: Cards, Sub-cards, Containers */
body.theme-light .bg-slate-900,
body.theme-light .bg-slate-900\/80,
body.theme-light .bg-slate-900\/90 {
  background-color: #ffffff !important;
  color: #0f172a !important;
  border-color: #e2e8f0 !important;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -2px rgba(0, 0, 0, 0.03) !important;
}

body.theme-light .bg-slate-950,
body.theme-light .bg-slate-950\/95,
body.theme-light .bg-slate-950\/90,
body.theme-light .bg-slate-950\/80,
body.theme-light .bg-slate-950\/70,
body.theme-light .bg-slate-950\/60 {
  background-color: #f8fafc !important;
  color: #0f172a !important;
  border-color: #cbd5e1 !important;
}

/* Standard Buttons & Controls (.bg-slate-800) */
body.theme-light .bg-slate-800,
body.theme-light .bg-slate-800\/80 {
  background-color: #ffffff !important;
  color: #1e293b !important;
  border: 1px solid #cbd5e1 !important;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04) !important;
}

body.theme-light .bg-slate-800:hover,
body.theme-light .hover\:bg-slate-800:hover,
body.theme-light .hover\:bg-slate-700:hover {
  background-color: #f1f5f9 !important;
  border-color: #94a3b8 !important;
  color: #0f172a !important;
}

/* Borders */
body.theme-light .border-slate-800,
body.theme-light .border-slate-800\/80,
body.theme-light .border-slate-700,
body.theme-light .border-slate-700\/80 {
  border-color: #cbd5e1 !important;
}

/* Typography & Contrast */
/* Default white text becomes dark slate EXCEPT inside colored buttons & badges */
body.theme-light .text-white {
  color: #0f172a !important;
}

body.theme-light .text-slate-100 {
  color: #0f172a !important;
}

body.theme-light .text-slate-200,
body.theme-light .text-slate-300 {
  color: #1e293b !important;
}

body.theme-light .text-slate-400 {
  color: #475569 !important; /* Higher contrast slate-600 */
}

body.theme-light .text-slate-500 {
  color: #64748b !important;
}

/* High Contrast Accent Colors on Light Backgrounds (Replaces washed-out 300/400 colors) */
body.theme-light .text-emerald-400,
body.theme-light .text-emerald-300 {
  color: #059669 !important; /* Emerald-600 */
}

body.theme-light .text-cyan-400,
body.theme-light .text-cyan-300,
body.theme-light .text-sky-400,
body.theme-light .text-sky-300 {
  color: #0284c7 !important; /* Sky-600 */
}

body.theme-light .text-amber-400,
body.theme-light .text-amber-300 {
  color: #b45309 !important; /* Amber-700 */
}

body.theme-light .text-rose-400,
body.theme-light .text-rose-300 {
  color: #e11d48 !important; /* Rose-600 */
}

body.theme-light .text-indigo-400,
body.theme-light .text-indigo-300 {
  color: #4f46e5 !important; /* Indigo-600 */
}

body.theme-light .text-teal-400,
body.theme-light .text-teal-300 {
  color: #0d9488 !important; /* Teal-600 */
}

body.theme-light .text-violet-400,
body.theme-light .text-violet-300 {
  color: #7c3aed !important; /* Violet-600 */
}

/* Preserve White Text on Solid Saturated Buttons & Badges */
body.theme-light .bg-emerald-600,
body.theme-light .bg-emerald-500,
body.theme-light button.bg-emerald-600,
body.theme-light button.bg-emerald-500,
body.theme-light .bg-cyan-600,
body.theme-light button.bg-cyan-600,
body.theme-light .bg-sky-600,
body.theme-light button.bg-sky-600,
body.theme-light .bg-indigo-600,
body.theme-light button.bg-indigo-600,
body.theme-light .bg-rose-600,
body.theme-light button.bg-rose-600,
body.theme-light .bg-rose-500,
body.theme-light .bg-red-600,
body.theme-light .bg-blue-600,
body.theme-light button.bg-blue-600,
body.theme-light .bg-teal-600,
body.theme-light button.bg-teal-600,
body.theme-light .bg-amber-600,
body.theme-light .bg-violet-600 {
  color: #ffffff !important;
}

body.theme-light .bg-emerald-600 *,
body.theme-light .bg-emerald-500 *,
body.theme-light button.bg-emerald-600 *,
body.theme-light button.bg-emerald-500 *,
body.theme-light .bg-cyan-600 *,
body.theme-light button.bg-cyan-600 *,
body.theme-light .bg-sky-600 *,
body.theme-light button.bg-sky-600 *,
body.theme-light .bg-indigo-600 *,
body.theme-light button.bg-indigo-600 *,
body.theme-light .bg-rose-600 *,
body.theme-light button.bg-rose-600 *,
body.theme-light .bg-rose-500 *,
body.theme-light .bg-red-600 *,
body.theme-light .bg-blue-600 *,
body.theme-light button.bg-blue-600 *,
body.theme-light .bg-teal-600 *,
body.theme-light button.bg-teal-600 *,
body.theme-light .bg-amber-600 *,
body.theme-light .bg-violet-600 * {
  color: #ffffff !important;
}

/* Status Chips & Badges (Emerald, Amber, Rose, Cyan, Indigo, Teal) */
body.theme-light .bg-emerald-500\/20,
body.theme-light .bg-emerald-500\/15,
body.theme-light .bg-emerald-500\/10,
body.theme-light .bg-emerald-600\/20,
body.theme-light .bg-emerald-600\/30 {
  background-color: #d1fae5 !important;
  color: #065f46 !important;
  border: 1px solid #6ee7b7 !important;
}
body.theme-light .bg-emerald-500\/20 *,
body.theme-light .bg-emerald-500\/10 *,
body.theme-light .bg-emerald-600\/20 * {
  color: #065f46 !important;
}

body.theme-light .bg-amber-500\/20,
body.theme-light .bg-amber-500\/15,
body.theme-light .bg-amber-500\/10 {
  background-color: #fef3c7 !important;
  color: #92400e !important;
  border-color: #fcd34d !important;
}
body.theme-light .bg-amber-500\/20 *,
body.theme-light .bg-amber-500\/10 * {
  color: #92400e !important;
}

body.theme-light .bg-rose-500\/20,
body.theme-light .bg-rose-500\/15,
body.theme-light .bg-rose-500\/10,
body.theme-light .bg-rose-900\/40 {
  background-color: #ffe4e6 !important;
  color: #9f1239 !important;
  border-color: #fecdd3 !important;
}
body.theme-light .bg-rose-500\/20 *,
body.theme-light .bg-rose-500\/10 * {
  color: #9f1239 !important;
}

body.theme-light .bg-cyan-500\/20,
body.theme-light .bg-cyan-500\/15,
body.theme-light .bg-cyan-500\/10,
body.theme-light .bg-sky-500\/20 {
  background-color: #e0f2fe !important;
  color: #0369a1 !important;
  border-color: #bae6fd !important;
}
body.theme-light .bg-cyan-500\/20 *,
body.theme-light .bg-cyan-500\/10 * {
  color: #0369a1 !important;
}

body.theme-light .bg-indigo-500\/20,
body.theme-light .bg-indigo-500\/15,
body.theme-light .bg-indigo-500\/10 {
  background-color: #e0e7ff !important;
  color: #3730a3 !important;
  border-color: #c7d2fe !important;
}
body.theme-light .bg-indigo-500\/20 *,
body.theme-light .bg-indigo-500\/10 * {
  color: #3730a3 !important;
}

body.theme-light .bg-teal-500\/20,
body.theme-light .bg-teal-500\/10 {
  background-color: #ccfbf1 !important;
  color: #115e59 !important;
  border-color: #99f6e4 !important;
}
body.theme-light .bg-teal-500\/20 *,
body.theme-light .bg-teal-500\/10 * {
  color: #115e59 !important;
}

body.theme-light .bg-violet-500\/20,
body.theme-light .bg-violet-500\/10 {
  background-color: #ede9fe !important;
  color: #5b21b6 !important;
  border-color: #ddd6fe !important;
}
body.theme-light .bg-violet-500\/20 *,
body.theme-light .bg-violet-500\/10 * {
  color: #5b21b6 !important;
}

/* Form Inputs, Dropdowns, Selects & Labels */
body.theme-light input,
body.theme-light select,
body.theme-light textarea {
  background-color: #ffffff !important;
  color: #0f172a !important;
  border: 1px solid #cbd5e1 !important;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.04) !important;
}

body.theme-light input:focus,
body.theme-light select:focus,
body.theme-light textarea:focus {
  border-color: #10b981 !important;
  outline: 2px solid rgba(16, 185, 129, 0.25) !important;
}

body.theme-light input::placeholder,
body.theme-light textarea::placeholder {
  color: #94a3b8 !important;
}

body.theme-light select option {
  background-color: #ffffff !important;
  color: #0f172a !important;
}

body.theme-light label {
  color: #1e293b !important;
  font-weight: 600 !important;
}

/* Tables (Crisp Headers, Clear Row Separation & Sticky Headers) */
body.theme-light table thead,
body.theme-light table thead tr {
  background-color: #f1f5f9 !important;
  color: #0f172a !important;
  border-bottom: 2px solid #cbd5e1 !important;
}

body.theme-light table thead th {
  color: #1e293b !important;
  font-weight: 800 !important;
  background-color: #f1f5f9 !important;
}

body.theme-light .sortable-th:hover {
  background-color: #e2e8f0 !important;
  color: #0f172a !important;
}

body.theme-light .sortable-th.sorted-active {
  background-color: #ecfeff !important;
  color: #0891b2 !important;
  border-bottom: 2px solid #0891b2 !important;
}

body.theme-light table tbody tr {
  border-bottom: 1px solid #e2e8f0 !important;
  color: #1e293b !important;
}

body.theme-light table tbody tr:hover {
  background-color: #f1f5f9 !important;
}

body.theme-light table tbody tr:nth-child(even) {
  background-color: #f8fafc !important;
}

body.theme-light table tbody td {
  color: #1e293b !important;
}

body.theme-light .divide-slate-800\/80 > :not([hidden]) ~ :not([hidden]) {
  border-color: #e2e8f0 !important;
}

/* Modals & Dialogs */
body.theme-light .fixed.inset-0.bg-black\/75,
body.theme-light .fixed.inset-0.bg-black\/80 {
  background-color: rgba(15, 23, 42, 0.6) !important;
  backdrop-filter: blur(4px) !important;
}

body.theme-light [id$="Modal"] .bg-slate-900,
body.theme-light #calculatorModal .bg-slate-900,
body.theme-light #shortcutsModal .bg-slate-900,
body.theme-light #addReservationModal .bg-slate-900,
body.theme-light #addVoucherModal .bg-slate-900,
body.theme-light #authModal .bg-slate-900,
body.theme-light #registerCompanyModal .bg-slate-900,
body.theme-light #callerIdModal .bg-slate-900,
body.theme-light #printReceiptModal .bg-slate-900,
body.theme-light #driverCheckinModal .bg-slate-900,
body.theme-light #addDriverModal .bg-slate-900,
body.theme-light #addCustomerModal .bg-slate-900,
body.theme-light #addTeamModal .bg-slate-900,
body.theme-light #addRouteModal .bg-slate-900,
body.theme-light #editRouteModal .bg-slate-900,
body.theme-light #editTeamModal .bg-slate-900,
body.theme-light #editDriverModal .bg-slate-900,
body.theme-light #editCustomerModal .bg-slate-900,
body.theme-light #appDialogCard {
  background-color: #ffffff !important;
  border-color: #cbd5e1 !important;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25) !important;
  color: #0f172a !important;
}

/* Modern App Dialog */
body.theme-light #appDialogModal {
  background-color: rgba(15, 23, 42, 0.6) !important;
}

body.theme-light #appDialogTitle {
  color: #0f172a !important;
}

body.theme-light #appDialogMessage {
  color: #334155 !important;
}

body.theme-light #appDialogCancelBtn {
  background-color: #ffffff !important;
  border: 1px solid #cbd5e1 !important;
  color: #334155 !important;
}

body.theme-light #appDialogCancelBtn:hover {
  background-color: #f1f5f9 !important;
  border-color: #94a3b8 !important;
  color: #0f172a !important;
}

/* Dropdown Menus & Autocomplete */
body.theme-light #companyDropdown,
body.theme-light #custSearchResults,
body.theme-light #routeSearchResults {
  background-color: #ffffff !important;
  border-color: #cbd5e1 !important;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.15), 0 8px 10px -6px rgba(0, 0, 0, 0.1) !important;
  color: #0f172a !important;
}

body.theme-light #custSearchResults div,
body.theme-light #routeSearchResults div {
  color: #1e293b !important;
  border-bottom-color: #f1f5f9 !important;
}

body.theme-light #custSearchResults div:hover,
body.theme-light #routeSearchResults div:hover {
  background-color: #f1f5f9 !important;
  color: #0f172a !important;
}

body.theme-light #custSearchResults .bg-emerald-600,
body.theme-light #routeSearchResults .bg-emerald-600 {
  background-color: #059669 !important;
  color: #ffffff !important;
}

body.theme-light #custSearchResults .bg-emerald-600 *,
body.theme-light #routeSearchResults .bg-emerald-600 * {
  color: #ffffff !important;
}

/* Navigation Tabs */
body.theme-light .dash-tab.bg-emerald-500 {
  background-color: #10b981 !important;
  color: #ffffff !important;
  font-weight: 800 !important;
  box-shadow: 0 2px 4px rgba(16, 185, 129, 0.2) !important;
}

body.theme-light .dash-tab:not(.bg-emerald-500) {
  color: #334155 !important;
  font-weight: 600 !important;
}

body.theme-light .dash-tab:not(.bg-emerald-500):hover {
  background-color: #e2e8f0 !important;
  color: #0f172a !important;
}

/* Bottom Hotkeys Bar */
body.theme-light .fixed.bottom-0,
body.theme-light #footerShortcutsBar {
  background-color: rgba(255, 255, 255, 0.98) !important;
  border-top-color: #cbd5e1 !important;
  color: #1e293b !important;
  box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.05) !important;
}

body.theme-light #footerShortcutsBar span.bg-slate-800 {
  background-color: #f1f5f9 !important;
  border: 1px solid #cbd5e1 !important;
  color: #047857 !important;
  font-weight: 900 !important;
}

body.theme-light #footerShortcutsBar span.text-slate-300 {
  color: #334155 !important;
  font-weight: 600 !important;
}

/* Calculator Modal */
body.theme-light #calcDisplay {
  background-color: #ffffff !important;
  border-color: #cbd5e1 !important;
  color: #059669 !important;
}

/* Date Preset Buttons in Reports */
body.theme-light .date-preset-btn {
  border: 1px solid #cbd5e1 !important;
  background-color: #ffffff !important;
  color: #334155 !important;
}

body.theme-light .date-preset-btn:hover {
  background-color: #f1f5f9 !important;
  color: #0f172a !important;
  border-color: #94a3b8 !important;
}

body.theme-light .date-preset-btn.bg-emerald-500\/20 {
  background-color: #d1fae5 !important;
  color: #065f46 !important;
  border-color: #6ee7b7 !important;
  font-weight: bold !important;
}

/* Pagination Controls in Light Theme */
body.theme-light #drvPaginationControls button,
body.theme-light #custPaginationControls button,
body.theme-light #routePaginationControls button,
body.theme-light #repPaginationControls button,
body.theme-light #resPaginationControls button {
  border: 1px solid #cbd5e1;
  background-color: #ffffff;
  color: #1e293b;
}

body.theme-light #drvPaginationControls button:hover:not(:disabled),
body.theme-light #custPaginationControls button:hover:not(:disabled),
body.theme-light #routePaginationControls button:hover:not(:disabled),
body.theme-light #repPaginationControls button:hover:not(:disabled),
body.theme-light #resPaginationControls button:hover:not(:disabled) {
  background-color: #f1f5f9;
  border-color: #94a3b8;
  color: #0f172a;
}

body.theme-light #drvPaginationControls button:disabled,
body.theme-light #custPaginationControls button:disabled,
body.theme-light #routePaginationControls button:disabled,
body.theme-light #repPaginationControls button:disabled,
body.theme-light #resPaginationControls button:disabled {
  background-color: #f8fafc;
  border-color: #e2e8f0;
  color: #94a3b8;
  opacity: 0.6;
}

body.theme-light #drvPaginationControls button.bg-emerald-600,
body.theme-light #repPaginationControls button.bg-emerald-600 {
  background-color: #059669 !important;
  color: #ffffff !important;
  border-color: #047857 !important;
}

body.theme-light #custPaginationControls button.bg-cyan-600,
body.theme-light #resPaginationControls button.bg-cyan-600 {
  background-color: #0284c7 !important;
  color: #ffffff !important;
  border-color: #0369a1 !important;
}

body.theme-light #routePaginationControls button.bg-indigo-600 {
  background-color: #4f46e5 !important;
  color: #ffffff !important;
  border-color: #4338ca !important;
}

/* Smooth Transitions */
body, header, input, select, textarea, .view-screen, .dash-pane {
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

/* ================= STANDARD NATIONAL LICENSE PLATE WIDGET ================= */
.iran-plate-car {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.6);
  border: 2px solid #0f172a;
  border-radius: 10px;
}

.iran-plate-car input {
  color: #0f172a !important;
  font-weight: 900 !important;
}

.iran-plate-car select {
  color: #0f172a !important;
  font-weight: 900 !important;
}

.iran-plate-motor {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.4);
  border: 2px solid #0f172a;
  border-radius: 10px;
}

.iran-plate-motor input {
  color: #0f172a !important;
  font-weight: 900 !important;
}

/* Plate Badges in Tables */
.national-plate-badge-car {
  display: inline-flex;
  align-items: center;
  border: 1px solid #0f172a;
  border-radius: 4px;
  background-color: #ffffff;
  color: #0f172a;
  font-family: 'Vazirmatn FD', 'Vazirmatn', monospace;
  font-weight: 900;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
  user-select: none;
}

.national-plate-badge-motor {
  display: inline-flex;
  flex-direction: column;
  border: 1px solid #0f172a;
  border-radius: 4px;
  background-color: #fbbf24;
  color: #0f172a;
  font-family: 'Vazirmatn FD', 'Vazirmatn', monospace;
  font-weight: 900;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
  user-select: none;
}

/* ================= PERSIAN DATE & TIME PICKER SUBSYSTEM ================= */
#persianDatePickerPopup,
#persianTimePickerPopup {
  direction: rtl;
  font-family: var(--font-base);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5), 0 10px 15px -3px rgba(0, 0, 0, 0.3);
  animation: pickerPopIn 0.15s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes pickerPopIn {
  from { opacity: 0; transform: scale(0.96) translateY(-4px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

#persianDatePickerPopup select,
#persianTimePickerPopup select {
  cursor: pointer;
}

/* Light Theme Overrides for Pickers */
body.theme-light #persianDatePickerPopup,
body.theme-light #persianTimePickerPopup {
  background-color: #ffffff !important;
  border: 1px solid #cbd5e1 !important;
  color: #0f172a !important;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.15), 0 8px 10px -6px rgba(0, 0, 0, 0.08) !important;
}

body.theme-light #persianDatePickerPopup select,
body.theme-light #persianTimePickerPopup select {
  background-color: #f8fafc !important;
  border-color: #cbd5e1 !important;
  color: #0f172a !important;
}

body.theme-light #persianDatePickerPopup button:not(.bg-emerald-600),
body.theme-light #persianTimePickerPopup button:not(.bg-cyan-600):not(.bg-emerald-600):not(.from-cyan-600) {
  color: #1e293b !important;
}

body.theme-light #persianDatePickerPopup button:not(.bg-emerald-600):hover,
body.theme-light #persianTimePickerPopup button:not(.bg-cyan-600):not(.bg-emerald-600):not(.from-cyan-600):hover {
  background-color: #f1f5f9 !important;
  color: #0f172a !important;
}

body.theme-light #persianTimePickerPopup .bg-slate-950\/60 {
  background-color: #f8fafc !important;
  border: 1px solid #e2e8f0 !important;
  color: #1e293b !important;
}

body.theme-light #persianDatePickerPopup .border-slate-800\/80,
body.theme-light #persianTimePickerPopup .border-slate-800\/80 {
  border-color: #e2e8f0 !important;
}

body.theme-light #persianTimePickerPopup .text-white {
  color: #0f172a !important;
}

body.theme-light #persianDatePickerPopup .text-slate-200,
body.theme-light #persianTimePickerPopup .text-slate-200 {
  color: #1e293b !important;
}

body.theme-light #persianDatePickerPopup .text-slate-400,
body.theme-light #persianTimePickerPopup .text-slate-400 {
  color: #475569 !important;
}

/* ==================== SINGLE LINE MOBILE TOP MENUS & TABS ==================== */
.no-scrollbar::-webkit-scrollbar {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
}
.no-scrollbar {
  -ms-overflow-style: none !important;
  scrollbar-width: none !important;
  -webkit-overflow-scrolling: touch !important;
}

/* Force all top menu tabs, sub-navbars and navigation buttons to stay in ONE LINE without wrapping */
.dash-tab {
  white-space: nowrap !important;
  flex-shrink: 0 !important;
}

@media (max-width: 640px) {
  .dash-tab {
    padding-left: 0.5rem !important;
    padding-right: 0.5rem !important;
    padding-top: 0.375rem !important;
    padding-bottom: 0.375rem !important;
    font-size: 0.75rem !important;
  }
  .tab-shortcut-badge {
    display: none !important;
  }
}

/* Actions reserved for the company manager (vouchers edit/delete, rate sheet) */
body.role-operator .manager-only { display: none !important; }
