:root {
  --gps-orange: #f97316;
  --gps-orange-deep: #ea580c;
  --gps-orange-soft: #fff7ed;
  --gps-orange-fade: #ffedd5;
  --gps-orange-ring: rgba(249, 115, 22, 0.28);
  --gps-surface: #ffffff;
  --gps-surface-alt: #fffbf5;
  --gps-border: #fed7aa;
  --gps-muted: #6b7280;
  --gps-text: #1f2937;
  --gps-heading: #7c2d12;
  --gps-shadow: 0 18px 48px -24px rgba(234, 88, 12, 0.45);
  --gps-gradient: linear-gradient(135deg, #ff7a18 0%, #ff4b2b 45%, #f97316 100%);
}

/* K2S rev5: force every legacy table/DataTables surface into the orange system. */
body.app-shell:not(.dark-mode) table > thead,
body.app-shell:not(.dark-mode) table > thead > tr,
body.app-shell:not(.dark-mode) table > thead > tr > th,
body.app-shell:not(.dark-mode) table > thead > tr > td,
body.app-shell:not(.dark-mode) .table > :not(caption) > * > th,
body.app-shell:not(.dark-mode) .table thead .dark-th,
body.app-shell:not(.dark-mode) .report-table > thead > tr > th,
body.app-shell:not(.dark-mode) .dataTable > thead > tr > th,
body.app-shell:not(.dark-mode) .table-primary,
body.app-shell:not(.dark-mode) .table-info {
  background: #fff7ed !important;
  background-color: #fff7ed !important;
  color: #9a3412 !important;
  border-color: #fed7aa !important;
  box-shadow: none !important;
}

body.app-shell:not(.dark-mode) table > tbody > tr > th,
body.app-shell:not(.dark-mode) table > tbody > tr > td,
body.app-shell:not(.dark-mode) .table > :not(caption) > * > * {
  background-color: #fff !important;
  color: #1f2937 !important;
  border-color: #ffedd5 !important;
}

body.app-shell:not(.dark-mode) table > tbody > tr:nth-child(even) > th,
body.app-shell:not(.dark-mode) table > tbody > tr:nth-child(even) > td {
  background-color: #fffaf5 !important;
}

body.app-shell:not(.dark-mode) table > tbody > tr:hover > th,
body.app-shell:not(.dark-mode) table > tbody > tr:hover > td,
body.app-shell:not(.dark-mode) .table-hover > tbody > tr:hover > * {
  background-color: #ffedd5 !important;
  color: #7c2d12 !important;
}

body.app-shell:not(.dark-mode) .table,
body.app-shell:not(.dark-mode) .table-responsive,
body.app-shell:not(.dark-mode) .dataTables_wrapper,
body.app-shell:not(.dark-mode) .dataTables_scroll,
body.app-shell:not(.dark-mode) .dataTables_scrollHead,
body.app-shell:not(.dark-mode) .dataTables_scrollBody {
  border-color: #fed7aa !important;
}

body.app-shell:not(.dark-mode) .dataTables_wrapper .dataTables_filter input,
body.app-shell:not(.dark-mode) .dataTables_wrapper .dataTables_length select {
  background: #fff !important;
  color: #7c2d12 !important;
  border-color: #fdba74 !important;
  box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.08) !important;
}

body.app-shell:not(.dark-mode) .dataTables_wrapper .dataTables_info,
body.app-shell:not(.dark-mode) .dataTables_wrapper .dataTables_length,
body.app-shell:not(.dark-mode) .dataTables_wrapper .dataTables_filter {
  color: #9a3412 !important;
}

body.app-shell:not(.dark-mode) .dataTables_wrapper .dataTables_paginate .paginate_button {
  background: #fffaf5 !important;
  color: #9a3412 !important;
  border-color: #fed7aa !important;
}

body.app-shell:not(.dark-mode) .dataTables_wrapper .dataTables_paginate .paginate_button:hover,
body.app-shell:not(.dark-mode) .dataTables_wrapper .dataTables_paginate .paginate_button.current,
body.app-shell:not(.dark-mode) .dataTables_wrapper .dataTables_paginate .paginate_button.current:hover {
  background: linear-gradient(135deg, #f97316, #ea580c) !important;
  color: #fff !important;
  border-color: #ea580c !important;
}

body.app-shell:not(.dark-mode) table.dataTable thead .sorting::before,
body.app-shell:not(.dark-mode) table.dataTable thead .sorting::after,
body.app-shell:not(.dark-mode) table.dataTable thead .sorting_asc::before,
body.app-shell:not(.dark-mode) table.dataTable thead .sorting_asc::after,
body.app-shell:not(.dark-mode) table.dataTable thead .sorting_desc::before,
body.app-shell:not(.dark-mode) table.dataTable thead .sorting_desc::after {
  color: #f97316 !important;
  opacity: 0.8 !important;
}

* {
  box-sizing: border-box;
}

body {
  font-family: 'Noto Sans Thai', 'Kanit', 'Prompt', 'Sarabun', sans-serif;
  background:
    radial-gradient(circle at 0% 0%, #fff3e6 0%, rgba(255, 247, 237, 0.75) 32%, transparent 68%),
    radial-gradient(circle at 100% 0%, #ffe8cc 0%, #fff 60%),
    #fff7ed;
  color: var(--gps-text);
  animation: gps-fade-in 240ms ease;
}

body.dark-mode,
body.is-dark {
  background: #0f172a;
  color: #f8fafc;
}

body.dark-mode .app-shell,
body.dark-mode .app-container,
body.dark-mode .main-content-wrapper,
body.dark-mode .page-content,
body.dark-mode .dash-card,
body.dark-mode .card,
body.dark-mode .modal-content,
body.dark-mode .status-legend,
body.dark-mode .sidebar-menu a,
body.dark-mode .menu-category {
  background: #0f172a;
  color: #f8fafc;
}

@keyframes gps-fade-in {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--gps-heading);
  letter-spacing: -0.01em;
}

body.dark-mode h1,
body.dark-mode h2,
body.dark-mode h3,
body.dark-mode h4,
body.dark-mode h5,
body.dark-mode h6 {
  color: #f8fafc;
}

.app-shell,
.app-container,
.main-content-wrapper,
.page-content,
#main-content,
[data-page] {
  animation: gps-fade-in 320ms ease;
}

.app-footer {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.95), #fff);
  color: #7c2d12;
  border-top: 1px solid var(--gps-border);
  box-shadow: inset 0 1px 0 rgba(249, 115, 22, 0.15);
}

.main-header {
  background: linear-gradient(90deg, #fff 0%, #fff7f0 100%);
  border-bottom: 1px solid var(--gps-border);
  box-shadow: var(--gps-shadow);
  backdrop-filter: blur(2px);
}

.brand-logo {
  gap: 12px;
  text-decoration: none;
}

.logo-icon {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: inline-grid;
  place-items: center;
  background: var(--gps-gradient);
  color: #fff;
  box-shadow: 0 10px 24px -16px rgba(234, 88, 12, 0.85);
}

.hamburger-btn,
.logout-btn,
.topbar-notification,
.status-summary-btn,
.sidebar-action,
button.btn,
a.btn,
.form-control,
.form-select,
button,
input,
select,
textarea,
.card,
.dash-card {
  transition: all 180ms cubic-bezier(0.2, 0.6, 0.2, 1);
}

.logo-text,
.brand-text,
.main-header,
.sidebar-menu a span,
.user-name-text {
  color: #7c2d12;
}

.hamburger-btn {
  border: 1px solid #fed7aa;
  background: #fff;
  color: #c2410c;
  border-radius: 12px;
}

.hamburger-btn:hover {
  background: var(--gps-orange-soft);
  transform: translateY(-1px);
}

.vehicle-status-bar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.status-summary-btn {
  border: 1px solid #fed7aa;
  background: #fff;
  color: #9a3412;
  border-radius: 14px;
  padding: 8px 12px;
  box-shadow: 0 8px 20px -16px rgba(234, 88, 12, 0.6);
}

.status-summary-btn .status-count {
  font-weight: 700;
}

.status-summary-btn:hover {
  border-color: var(--gps-orange);
  box-shadow: 0 12px 26px -18px rgba(234, 88, 12, 0.8);
}

.status-summary-btn.status-moving {
  --gps-dot: #22c55e;
}

.status-summary-btn.status-parked {
  --gps-dot: #f59e0b;
}

.status-summary-btn.status-off {
  --gps-dot: #ef4444;
}

.status-summary-btn.status-offline {
  --gps-dot: #64748b;
}

.status-summary-btn.status-na {
  --gps-dot: #94a3b8;
}

.status-summary-btn .status-icon::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 99px;
  margin-right: 8px;
  background: var(--gps-dot);
  display: inline-block;
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--gps-dot) 18%, transparent);
}

.topbar-notification-wrap {
  position: relative;
}

.topbar-notification {
  border: 1px solid #fed7aa;
  background: #fff;
  color: #ea580c;
  border-radius: 12px;
}

.topbar-notification-count {
  background: var(--gps-orange);
  color: #fff;
}

.topbar-notification-panel {
  background: #fff;
  border: 1px solid #fed7aa;
  box-shadow: 0 22px 40px -22px rgba(234, 88, 12, 0.75);
}

.user-profile .user-info {
  color: #7c2d12;
}

#sidebarCollapse {
  background: transparent;
}

.sidebar-menu {
  border-right: 1px solid var(--gps-border);
  background: #fff;
}

.sidebar-menu a,
.sidebar-action {
  color: #7c2d12;
  border-radius: 12px;
  margin: 2px 0;
}

.sidebar-menu a:hover,
.sidebar-action:hover {
  background: var(--gps-orange-soft);
  color: #ea580c;
}

.sidebar-menu a.active {
  background: var(--gps-gradient);
  color: #fff !important;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.25);
}

.menu-category {
  color: #9a3412;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.page-content,
.main-content-wrapper {
  background: transparent;
}

.dash-card,
.card {
  background: var(--gps-surface);
  border: 1px solid #fed7aa;
  border-radius: 16px;
  box-shadow: var(--gps-shadow);
}

.card,
.dash-card,
.panel,
.table-wrap,
.modal-content,
.panel > * {
  animation: gps-fade-in 300ms ease;
}

.btn,
button.btn,
a.btn {
  border-radius: 12px;
  border: none;
  font-weight: 600;
}

.btn-primary,
.btn-success,
.btn-warning,
button[data-bs-toggle='modal'] {
  background: var(--gps-gradient) !important;
  color: #fff !important;
  border: 1px solid rgba(255, 255, 255, 0.25) !important;
}

.btn-primary:hover,
.btn-success:hover,
.btn-warning:hover,
button[data-bs-toggle='modal']:hover {
  transform: translateY(-1px);
}

.btn-outline-secondary,
.btn-outline-primary,
.btn-light,
.btn-outline-dark {
  border-color: #fbbf24 !important;
  color: #9a3412 !important;
  background: #fffaf0 !important;
}

.btn-light:hover,
.btn-outline-secondary:hover,
.btn-outline-primary:hover,
.btn-outline-dark:hover {
  background: #fff1d6 !important;
}

.table {
  --bs-table-striped-bg: var(--gps-orange-soft);
  --bs-table-striped-color: var(--gps-text);
  border: 1px solid var(--gps-border);
  background: #fff;
}

.table thead th {
  background: #fffbeb;
  color: #7c2d12;
  font-weight: 600;
  border-bottom-color: #fecaca;
}

.table tbody tr {
  transition: background-color 120ms ease;
}

.table tbody tr:hover {
  background: color-mix(in srgb, var(--gps-orange-soft) 55%, white);
}

.form-control,
.form-select,
.form-check-input,
.select2-container--default .select2-selection--single {
  border: 1px solid #fed7aa !important;
  border-radius: 12px !important;
  background: #fff;
}

.form-control:focus,
.form-select:focus,
.form-check-input:focus,
.select2-container--default.select2-container--focus .select2-selection--single {
  border-color: var(--gps-orange) !important;
  box-shadow: 0 0 0 0.2rem var(--gps-orange-ring) !important;
}

.modal-content {
  border-radius: 18px;
  border: 1px solid #fed7aa;
}

.modal-header,
.modal-footer {
  border-color: #fed7aa;
}

.modal-title {
  color: #9a3412;
}

.toast {
  border: 1px solid #fed7aa;
  border-radius: 12px;
}

.topbar-notification-all,
.topbar-notification-list a,
.topbar-notification-empty,
.user-info {
  color: #92400e;
}

.badge,
.label,
.status-pill,
.vehicle-badge {
  border-radius: 999px;
  background: var(--gps-orange-soft);
  color: #9a3412;
}

.leaflet-control-attribution {
  color: #92400e;
  background: #fff !important;
}

.marker-cluster-small div,
.marker-cluster-medium div,
.marker-cluster-large div {
  background-color: rgba(249, 115, 22, 0.9) !important;
  color: #fff !important;
}

.status-legend {
  border: 1px solid var(--gps-border);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: var(--gps-shadow);
}

.status-legend .legend-header {
  color: #9a3412;
  border-bottom: 1px solid #fee2b9;
}

.legend-icon {
  border: 1px solid #fdba74;
  background: #fff7ed !important;
}

.status-metric,
.metric-card,
.info-box {
  background: #fff;
  border: 1px solid var(--gps-border);
  border-radius: 14px;
}

.progress {
  border-radius: 10px;
  background: #ffe4cc;
}

.progress-bar {
  background: var(--gps-gradient);
}

.log,
#log {
  background: #fff7ed;
  color: #9a3412;
  border: 1px solid #fdba74;
}

/* K2S command surfaces: replace legacy blue/mist accents without recoloring maps. */
body.app-shell:not(.dark-mode) .main-content-wrapper,
body.app-shell:not(.dark-mode) .page-content,
body.app-shell:not(.dark-mode) .admin-dashboard-container,
body.app-shell:not(.dark-mode) .report-shell,
body.app-shell:not(.dark-mode) .report-content,
body.app-shell:not(.dark-mode) .report-page {
  background: #fffaf5 !important;
  color: var(--gps-text) !important;
}

body.app-shell:not(.dark-mode) .command-header,
body.app-shell:not(.dark-mode) .command-health-grid,
body.app-shell:not(.dark-mode) .command-health-item,
body.app-shell:not(.dark-mode) .primary-kpi-rail,
body.app-shell:not(.dark-mode) .operations-ribbon,
body.app-shell:not(.dark-mode) .metric-card,
body.app-shell:not(.dark-mode) .section-card,
body.app-shell:not(.dark-mode) .report-card,
body.app-shell:not(.dark-mode) .report-table-wrapper {
  background: #ffffff !important;
  border-color: #fed7aa !important;
  box-shadow: 0 16px 40px -28px rgba(194, 65, 12, 0.5) !important;
}

body.app-shell:not(.dark-mode) .command-time,
body.app-shell:not(.dark-mode) .metric-value,
body.app-shell:not(.dark-mode) .section-title,
body.app-shell:not(.dark-mode) .report-sidebar-header h3,
body.app-shell:not(.dark-mode) .report-page h2,
body.app-shell:not(.dark-mode) .report-page h3 {
  color: #9a3412 !important;
}

body.app-shell:not(.dark-mode) .metric-icon,
body.app-shell:not(.dark-mode) .command-health-icon,
body.app-shell:not(.dark-mode) .gateway-status-icon,
body.app-shell:not(.dark-mode) .user-avatar {
  background: #fff1e6 !important;
  color: #ea580c !important;
  border-color: #fed7aa !important;
}

body.app-shell:not(.dark-mode) .sidebar-menu > a.active,
body.app-shell:not(.dark-mode) .sidebar-menu a.active,
body.app-shell:not(.dark-mode) .report-menu-item.active {
  background: var(--gps-gradient) !important;
  background-image: var(--gps-gradient) !important;
  color: #ffffff !important;
  border-color: #f97316 !important;
  box-shadow: 0 12px 22px -16px rgba(194, 65, 12, 0.85) !important;
}

body.app-shell:not(.dark-mode) .report-sidebar {
  background: #ffffff !important;
  border-color: #fed7aa !important;
}

body.app-shell:not(.dark-mode) .report-menu-item {
  color: #7c2d12 !important;
  border-left-color: transparent !important;
}

body.app-shell:not(.dark-mode) .report-menu-item:hover {
  background: #fff7ed !important;
  color: #ea580c !important;
}

body.app-shell:not(.dark-mode) .report-card input,
body.app-shell:not(.dark-mode) .report-card select,
body.app-shell:not(.dark-mode) .report-card textarea,
body.app-shell:not(.dark-mode) .select2-selection--single,
body.app-shell:not(.dark-mode) .select2-dropdown,
body.app-shell:not(.dark-mode) .select2-search__field {
  background-color: #ffffff !important;
  border-color: #fed7aa !important;
  color: #431407 !important;
  color-scheme: light !important;
}

body.app-shell:not(.dark-mode) .report-btn.primary,
body.app-shell:not(.dark-mode) .report-btn.success,
body.app-shell:not(.dark-mode) .dataTables_wrapper .dataTables_paginate .paginate_button.current {
  background: var(--gps-gradient) !important;
  border-color: #f97316 !important;
  color: #ffffff !important;
}

body.app-shell:not(.dark-mode) .report-table thead,
body.app-shell:not(.dark-mode) .dashboard-table thead {
  background: #fff7ed !important;
  color: #7c2d12 !important;
}

body.app-shell:not(.dark-mode) .report-table td,
body.app-shell:not(.dark-mode) .report-table th,
body.app-shell:not(.dark-mode) .dashboard-table td,
body.app-shell:not(.dark-mode) .dashboard-table th {
  border-color: #ffedd5 !important;
}

body.app-shell:not(.dark-mode) .btn-link,
body.app-shell:not(.dark-mode) .btn-view-all {
  color: #c2410c !important;
}

body.app-shell:not(.dark-mode) .sidebar-menu a:not(.active) i,
body.app-shell:not(.dark-mode) .section-card .section-header i,
body.app-shell:not(.dark-mode) .section-card .section-title i {
  color: #f97316 !important;
}

body.app-shell:not(.dark-mode) .sidebar-menu a.active i {
  color: #ffffff !important;
}

body.app-shell:not(.dark-mode) .topbar-notification-dot.info {
  background: #f97316 !important;
}

body.app-shell:not(.dark-mode) .sidebar-menu button.sidebar-action {
  width: calc(100% - 16px) !important;
  margin: 2px 8px !important;
  padding: 12px 14px !important;
  border: 1px solid transparent !important;
  border-radius: 12px !important;
  background: transparent !important;
  color: #7c2d12 !important;
  opacity: 1 !important;
  font-weight: 600 !important;
  text-align: left !important;
}

body.app-shell:not(.dark-mode) .sidebar-menu button.sidebar-action i {
  color: #f97316 !important;
}

body.app-shell:not(.dark-mode) .sidebar-menu button.sidebar-action:hover,
body.app-shell:not(.dark-mode) .sidebar-menu button.sidebar-action:focus-visible {
  background: #fff1e6 !important;
  border-color: #fdba74 !important;
  color: #c2410c !important;
  box-shadow: 0 10px 22px -18px rgba(194, 65, 12, 0.75) !important;
}

body.app-shell:not(.dark-mode) #changePasswordModal .modal-content {
  border: 1px solid #fed7aa !important;
  box-shadow: 0 26px 70px -30px rgba(124, 45, 18, 0.7) !important;
}

body.app-shell:not(.dark-mode) #changePasswordModal .modal-header {
  background: linear-gradient(90deg, #ffffff, #fff7ed) !important;
}

body.app-shell:not(.dark-mode) #changePasswordModal .modal-title,
body.app-shell:not(.dark-mode) #changePasswordModal .modal-title i,
body.app-shell:not(.dark-mode) #changePasswordModal .form-label {
  color: #9a3412 !important;
}

body.app-shell:not(.dark-mode) #changePasswordModal [data-password-toggle-target] {
  background: #fff7ed !important;
  border-color: #fdba74 !important;
  color: #c2410c !important;
}

body.app-shell:not(.dark-mode) #changePasswordSubmit {
  background: var(--gps-gradient) !important;
  border-color: #f97316 !important;
  color: #ffffff !important;
}

@media (max-width: 768px) {
  .main-header {
    gap: 8px;
    padding: 12px !important;
  }

  .vehicle-status-bar {
    width: 100%;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 6px;
  }

  .status-summary-btn {
    white-space: nowrap;
  }

  .app-container {
    border-radius: 0;
  }

  .sidebar-menu a,
  .sidebar-action {
    padding: 10px 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  .hamburger-btn,
  .status-summary-btn,
  .sidebar-menu a,
  .sidebar-action,
  .btn,
  .card,
  .dash-card,
  .modal-content,
  .leaflet-container,
  .toast {
    animation-duration: 1ms !important;
    transition-duration: 1ms !important;
  }
}

/* K2S rev35: the dashboard greeting is part of the page canvas, not a card. */
html body.app-shell:not(.dark-mode) .admin-dashboard-container .command-header {
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

/* K2S rev36: keep the production sidebar geometry identical to local. */
html body.app-shell:not(.dark-mode) #main-sidebar.sidebar {
  background: linear-gradient(180deg, #0c2340 0%, #081a30 100%) !important;
  color: #e2e8f0 !important;
  box-shadow: 4px 0 24px rgba(0, 0, 0, 0.25) !important;
}

html body.app-shell:not(.dark-mode) #main-sidebar .sidebar-menu {
  width: calc(100% - 1px) !important;
  padding: 8px !important;
  color: #e2e8f0 !important;
  box-sizing: border-box !important;
}

html body.app-shell:not(.dark-mode) #main-sidebar .sidebar-menu > a,
html body.app-shell:not(.dark-mode) #main-sidebar .sidebar-menu a {
  margin: 1px 0 !important;
  border: 0 !important;
  border-radius: 10px !important;
}

html body.app-shell:not(.dark-mode) #main-sidebar .sidebar-action {
  width: calc(100% - 16px) !important;
  margin: 2px 8px !important;
}

html body.app-shell:not(.dark-mode) .hamburger-btn {
  margin-left: 4px !important;
  border-radius: 10px !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12) !important;
}

/* K2S rev37: gateway state colors must be unambiguous. */
html body.app-shell:not(.dark-mode) .gateway-status-item.online .gateway-status-dot {
  background: #16a34a !important;
  box-shadow: 0 0 0 4px rgba(22, 163, 74, 0.14) !important;
}

html body.app-shell:not(.dark-mode) .gateway-status-item.offline .gateway-status-dot {
  background: #dc2626 !important;
  box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.12) !important;
}

html body.app-shell:not(.dark-mode) .gateway-status-item.online .gateway-status-icon {
  background: #ecfdf5 !important;
  color: #15803d !important;
  border-color: #bbf7d0 !important;
}

html body.app-shell:not(.dark-mode) .gateway-status-item.offline .gateway-status-icon {
  background: #fef2f2 !important;
  color: #dc2626 !important;
  border-color: #fecaca !important;
}

html body.app-shell:not(.dark-mode) .status-pill.success {
  background: #dcfce7 !important;
  color: #15803d !important;
}

html body.app-shell:not(.dark-mode) .status-pill.danger {
  background: #fee2e2 !important;
  color: #b91c1c !important;
}

/* K2S rev6: final report-table and orange topbar contract. */
html body.app-shell:not(.dark-mode) .report-table.dataTable > thead > tr > th,
html body.app-shell:not(.dark-mode) .report-table > thead > tr > th,
html body.app-shell:not(.dark-mode) table.dataTable > thead > tr > th,
html body.app-shell:not(.dark-mode) table > thead > tr > th.dark-th,
html body.app-shell:not(.dark-mode) .dashboard-content table > thead > tr > th {
  background: #fff7ed !important;
  background-color: #fff7ed !important;
  color: #9a3412 !important;
  border-color: #fed7aa !important;
  box-shadow: inset 0 -1px 0 #fdba74 !important;
}

html body.app-shell:not(.dark-mode) .report-table.dataTable > tbody > tr > td,
html body.app-shell:not(.dark-mode) .report-table > tbody > tr > td,
html body.app-shell:not(.dark-mode) table.dataTable > tbody > tr > td {
  background: #fff !important;
  color: #1f2937 !important;
  border-color: #ffedd5 !important;
}

html body.app-shell:not(.dark-mode) .report-table.dataTable > tbody > tr:nth-child(even) > td,
html body.app-shell:not(.dark-mode) table.dataTable > tbody > tr:nth-child(even) > td {
  background: #fffaf5 !important;
}

html body.app-shell:not(.dark-mode) .report-table.dataTable > tbody > tr:hover > td,
html body.app-shell:not(.dark-mode) table.dataTable > tbody > tr:hover > td {
  background: #ffedd5 !important;
  color: #7c2d12 !important;
}

html body.app-shell:not(.dark-mode) .dataTables_wrapper,
html body.app-shell:not(.dark-mode) .dataTables_wrapper .dataTables_scroll,
html body.app-shell:not(.dark-mode) .dataTables_wrapper .dataTables_scrollHead,
html body.app-shell:not(.dark-mode) .dataTables_wrapper .dataTables_scrollBody {
  border-color: #fed7aa !important;
}

html body.app-shell:not(.dark-mode) .main-header {
  background: linear-gradient(115deg, #f97316 0%, #ea580c 58%, #c2410c 100%) !important;
  background-color: #ea580c !important;
  border-color: rgba(255, 255, 255, 0.24) !important;
  color: #fff !important;
  box-shadow: 0 8px 24px rgba(154, 52, 18, 0.2) !important;
}

html body.app-shell:not(.dark-mode) .main-header,
html body.app-shell:not(.dark-mode) .main-header a,
html body.app-shell:not(.dark-mode) .main-header button,
html body.app-shell:not(.dark-mode) .main-header i,
html body.app-shell:not(.dark-mode) .main-header svg,
html body.app-shell:not(.dark-mode) .main-header .text-muted,
html body.app-shell:not(.dark-mode) .main-header [class*="text-"] {
  color: #fff !important;
  fill: currentColor !important;
}

html body.app-shell:not(.dark-mode) .main-header button,
html body.app-shell:not(.dark-mode) .main-header .btn,
html body.app-shell:not(.dark-mode) .main-header .dropdown-toggle {
  background: rgba(255, 255, 255, 0.14) !important;
  border-color: rgba(255, 255, 255, 0.28) !important;
}

html body.app-shell:not(.dark-mode) .main-header button:hover,
html body.app-shell:not(.dark-mode) .main-header .btn:hover,
html body.app-shell:not(.dark-mode) .main-header .dropdown-toggle:hover {
  background: rgba(255, 255, 255, 0.24) !important;
}

/* K2S rev7: device registry uses an ID-scoped legacy palette. */
html body.app-shell.page-device:not(.dark-mode) #deviceTable > thead > tr > th,
html body.app-shell.page-device:not(.dark-mode) #deviceTable > thead > tr > th.dark-th {
  background: #fff7ed !important;
  background-color: #fff7ed !important;
  color: #9a3412 !important;
  border-color: #fed7aa !important;
  box-shadow: inset 0 -1px 0 #fdba74 !important;
}

html body.app-shell.page-device:not(.dark-mode) #deviceTable > tbody > tr > td {
  background: #fff !important;
  color: #1f2937 !important;
  border-color: #ffedd5 !important;
}

html body.app-shell.page-device:not(.dark-mode) #deviceTable > tbody > tr:nth-child(even) > td {
  background: #fffaf5 !important;
}

html body.app-shell.page-device:not(.dark-mode) #deviceTable > tbody > tr:hover > td {
  background: #ffedd5 !important;
  color: #7c2d12 !important;
}

/* K2S rev8: polished, optically-centered vehicle status strip. */
html body.app-shell:not(.dark-mode) .main-header .vehicle-status-bar {
  display: flex !important;
  align-items: center !important;
  gap: 3px !important;
  min-height: 44px !important;
  padding: 4px !important;
  background: rgba(124, 45, 18, 0.16) !important;
  border: 1px solid rgba(255, 255, 255, 0.34) !important;
  border-radius: 16px !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 8px 20px rgba(124, 45, 18, 0.12) !important;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

html body.app-shell:not(.dark-mode) .main-header .vehicle-status-bar .status-summary-btn {
  position: relative !important;
  display: grid !important;
  grid-template-columns: 30px auto auto !important;
  align-items: center !important;
  justify-content: center !important;
  column-gap: 7px !important;
  min-width: 0 !important;
  height: 36px !important;
  margin: 0 !important;
  padding: 3px 10px 3px 4px !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 12px !important;
  box-shadow: none !important;
  color: #fff !important;
  line-height: 1 !important;
  white-space: nowrap !important;
}

html body.app-shell:not(.dark-mode) .main-header .vehicle-status-bar .status-summary-btn:hover,
html body.app-shell:not(.dark-mode) .main-header .vehicle-status-bar .status-summary-btn:focus-visible {
  background: rgba(255, 255, 255, 0.14) !important;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18) !important;
  transform: translateY(-1px);
}

html body.app-shell:not(.dark-mode) .main-header .vehicle-status-bar .status-summary-btn:focus-visible {
  outline: 2px solid #fff !important;
  outline-offset: 2px !important;
}

html body.app-shell:not(.dark-mode) .main-header .vehicle-status-bar .status-icon {
  display: grid !important;
  place-items: center !important;
  width: 30px !important;
  min-width: 30px !important;
  height: 30px !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 1px solid rgba(255, 255, 255, 0.72) !important;
  border-radius: 10px !important;
  box-shadow: 0 3px 8px rgba(67, 20, 7, 0.14) !important;
  line-height: 1 !important;
}

html body.app-shell:not(.dark-mode) .main-header .vehicle-status-bar .status-icon > i {
  display: block !important;
  width: auto !important;
  height: auto !important;
  margin: 0 !important;
  font-size: 15px !important;
  line-height: 1 !important;
  transform: none !important;
}

html body.app-shell:not(.dark-mode) .main-header .vehicle-status-bar .status-count {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-width: 13px !important;
  margin: 0 !important;
  color: #fff !important;
  font-size: 16px !important;
  font-weight: 800 !important;
  font-variant-numeric: tabular-nums;
  line-height: 1 !important;
}

html body.app-shell:not(.dark-mode) .main-header .vehicle-status-bar .status-label {
  margin: 0 !important;
  color: rgba(255, 255, 255, 0.94) !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  line-height: 1 !important;
}

html body.app-shell:not(.dark-mode) .main-header .vehicle-status-bar .status-moving .status-icon {
  background: #ecfdf5 !important;
  color: #059669 !important;
}

html body.app-shell:not(.dark-mode) .main-header .vehicle-status-bar .status-parked .status-icon {
  background: #fff7ed !important;
  color: #c2410c !important;
}

html body.app-shell:not(.dark-mode) .main-header .vehicle-status-bar .status-off .status-icon {
  background: #fff1f2 !important;
  color: #e11d48 !important;
}

html body.app-shell:not(.dark-mode) .main-header .vehicle-status-bar .status-offline .status-icon {
  background: #f1f5f9 !important;
  color: #475569 !important;
}

html body.app-shell:not(.dark-mode) .main-header .vehicle-status-bar .status-na .status-icon {
  background: #fffbeb !important;
  color: #d97706 !important;
}

@media (max-width: 1180px) {
  html body.app-shell:not(.dark-mode) .main-header .vehicle-status-bar .status-summary-btn {
    grid-template-columns: 30px auto !important;
    padding-right: 7px !important;
  }

  html body.app-shell:not(.dark-mode) .main-header .vehicle-status-bar .status-label {
    display: none !important;
  }
}

@media (max-width: 700px) {
  html body.app-shell:not(.dark-mode) .main-header .vehicle-status-bar {
    gap: 2px !important;
    min-height: 38px !important;
    padding: 3px !important;
    border-radius: 13px !important;
  }

  html body.app-shell:not(.dark-mode) .main-header .vehicle-status-bar .status-summary-btn {
    grid-template-columns: 26px auto !important;
    column-gap: 4px !important;
    height: 32px !important;
    padding: 3px 5px 3px 3px !important;
  }

  html body.app-shell:not(.dark-mode) .main-header .vehicle-status-bar .status-icon {
    width: 26px !important;
    min-width: 26px !important;
    height: 26px !important;
    border-radius: 8px !important;
  }

  html body.app-shell:not(.dark-mode) .main-header .vehicle-status-bar .status-icon > i {
    font-size: 13px !important;
  }

  html body.app-shell:not(.dark-mode) .main-header .vehicle-status-bar .status-count {
    font-size: 14px !important;
  }
}

/* K2S rev9: remove Font Awesome baseline drift inside status tiles. */
html body.app-shell:not(.dark-mode) .main-header .vehicle-status-bar .status-icon {
  position: relative !important;
}

html body.app-shell:not(.dark-mode) .main-header .vehicle-status-bar .status-icon > i {
  position: absolute !important;
  top: 50% !important;
  left: 50% !important;
  display: grid !important;
  place-items: center !important;
  width: 16px !important;
  height: 16px !important;
  line-height: 16px !important;
  transform: translate(-50%, -50%) !important;
  vertical-align: middle !important;
}

html body.app-shell:not(.dark-mode) .main-header .vehicle-status-bar .status-icon > i::before {
  display: block !important;
  width: 16px !important;
  height: 16px !important;
  line-height: 16px !important;
  text-align: center !important;
}

/* K2S rev10: logout is the single destructive action in the topbar. */
html body.app-shell:not(.dark-mode) .main-header .logout-btn {
  display: inline-grid !important;
  place-items: center !important;
  width: 38px !important;
  min-width: 38px !important;
  height: 38px !important;
  padding: 0 !important;
  background: #dc2626 !important;
  background-color: #dc2626 !important;
  color: #fff !important;
  border: 1px solid rgba(255, 255, 255, 0.5) !important;
  border-radius: 12px !important;
  box-shadow: 0 6px 14px rgba(127, 29, 29, 0.3) !important;
}

html body.app-shell:not(.dark-mode) .main-header .logout-btn:hover,
html body.app-shell:not(.dark-mode) .main-header .logout-btn:focus-visible {
  background: #b91c1c !important;
  background-color: #b91c1c !important;
  color: #fff !important;
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(127, 29, 29, 0.38) !important;
}

html body.app-shell:not(.dark-mode) .main-header .logout-btn:focus-visible {
  outline: 2px solid #fff !important;
  outline-offset: 2px !important;
}

/* K2S rev11: preserve semantic icon color against the orange topbar. */
html body.app-shell:not(.dark-mode) .main-header .vehicle-status-bar .status-icon > i,
html body.app-shell:not(.dark-mode) .main-header .vehicle-status-bar .status-icon > i::before {
  color: inherit !important;
  opacity: 1 !important;
  text-shadow: none !important;
}

html body.app-shell:not(.dark-mode) .main-header .vehicle-status-bar .status-moving .status-icon > i,
html body.app-shell:not(.dark-mode) .main-header .vehicle-status-bar .status-moving .status-icon > i::before {
  color: #059669 !important;
}

html body.app-shell:not(.dark-mode) .main-header .vehicle-status-bar .status-parked .status-icon > i,
html body.app-shell:not(.dark-mode) .main-header .vehicle-status-bar .status-parked .status-icon > i::before {
  color: #c2410c !important;
}

html body.app-shell:not(.dark-mode) .main-header .vehicle-status-bar .status-off .status-icon > i,
html body.app-shell:not(.dark-mode) .main-header .vehicle-status-bar .status-off .status-icon > i::before {
  color: #e11d48 !important;
}

html body.app-shell:not(.dark-mode) .main-header .vehicle-status-bar .status-offline .status-icon > i,
html body.app-shell:not(.dark-mode) .main-header .vehicle-status-bar .status-offline .status-icon > i::before {
  color: #475569 !important;
}

html body.app-shell:not(.dark-mode) .main-header .vehicle-status-bar .status-na .status-icon > i,
html body.app-shell:not(.dark-mode) .main-header .vehicle-status-bar .status-na .status-icon > i::before {
  color: #d97706 !important;
}

html body.app-shell:not(.dark-mode) .main-header .vehicle-status-bar .status-icon {
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.8), 0 3px 8px rgba(67, 20, 7, 0.18) !important;
}

/* K2S rev12: complete orange-white contract for every report surface. */
html body.app-shell.page-report:not(.dark-mode) .report-shell {
  --report-orange: #f97316;
  --report-orange-dark: #c2410c;
  --report-orange-deep: #9a3412;
  --report-orange-soft: #fff7ed;
  --report-orange-hover: #ffedd5;
  --report-orange-border: #fed7aa;
  background: #fffaf5 !important;
  color: #1f2937 !important;
}

html body.app-shell.page-report:not(.dark-mode) .report-sidebar {
  background: linear-gradient(180deg, #fffaf5 0%, #fff7ed 100%) !important;
  color: #431407 !important;
  border-color: #fed7aa !important;
  box-shadow: 8px 0 24px rgba(154, 52, 18, 0.08) !important;
}

html body.app-shell.page-report:not(.dark-mode) .report-sidebar-header {
  background: #fff !important;
  color: #7c2d12 !important;
  border-color: #fed7aa !important;
}

html body.app-shell.page-report:not(.dark-mode) .report-sidebar-header i {
  background: #fff7ed !important;
  color: #ea580c !important;
  border-color: #fdba74 !important;
  box-shadow: none !important;
}

html body.app-shell.page-report:not(.dark-mode) .report-menu-item,
html body.app-shell.page-report:not(.dark-mode) .report-menu-item .icon,
html body.app-shell.page-report:not(.dark-mode) .report-menu-item .title,
html body.app-shell.page-report:not(.dark-mode) .report-menu-item i {
  color: #6b4f43 !important;
}

html body.app-shell.page-report:not(.dark-mode) .report-menu-item {
  background: transparent !important;
  border-color: transparent !important;
}

html body.app-shell.page-report:not(.dark-mode) .report-menu-item:hover {
  background: #ffedd5 !important;
  color: #9a3412 !important;
}

html body.app-shell.page-report:not(.dark-mode) .report-menu-item:hover .icon,
html body.app-shell.page-report:not(.dark-mode) .report-menu-item:hover .title,
html body.app-shell.page-report:not(.dark-mode) .report-menu-item:hover i {
  color: #c2410c !important;
}

html body.app-shell.page-report:not(.dark-mode) .report-menu-item.active,
html body.app-shell.page-report:not(.dark-mode) .report-menu-item.active:hover {
  background: linear-gradient(90deg, #ffedd5, #fff7ed) !important;
  color: #9a3412 !important;
  border-color: #f97316 !important;
  box-shadow: inset 4px 0 0 #f97316 !important;
}

html body.app-shell.page-report:not(.dark-mode) .report-menu-item.active .icon,
html body.app-shell.page-report:not(.dark-mode) .report-menu-item.active .title,
html body.app-shell.page-report:not(.dark-mode) .report-menu-item.active i {
  color: #c2410c !important;
}

html body.app-shell.page-report:not(.dark-mode) .report-content,
html body.app-shell.page-report:not(.dark-mode) .report-page,
html body.app-shell.page-report:not(.dark-mode) .report-card {
  background: #fff !important;
  color: #1f2937 !important;
  border-color: #fed7aa !important;
  box-shadow: 0 14px 32px rgba(154, 52, 18, 0.07) !important;
}

html body.app-shell.page-report:not(.dark-mode) .report-page > h1 i,
html body.app-shell.page-report:not(.dark-mode) .report-page > h2 i,
html body.app-shell.page-report:not(.dark-mode) .report-page > h3 i {
  background: #fff7ed !important;
  color: #ea580c !important;
  border-color: #fdba74 !important;
}

html body.app-shell.page-report:not(.dark-mode) .report-page input,
html body.app-shell.page-report:not(.dark-mode) .report-page select,
html body.app-shell.page-report:not(.dark-mode) .report-page textarea,
html body.app-shell.page-report:not(.dark-mode) .report-page .select2-selection,
html body.app-shell.page-report:not(.dark-mode) .report-page .select2-container--default .select2-selection--single,
html body.app-shell.page-report:not(.dark-mode) .report-page .gps-date-display {
  background: #fff !important;
  color: #431407 !important;
  border-color: #fdba74 !important;
  box-shadow: none !important;
}

html body.app-shell.page-report:not(.dark-mode) .report-page input:focus,
html body.app-shell.page-report:not(.dark-mode) .report-page select:focus,
html body.app-shell.page-report:not(.dark-mode) .report-page textarea:focus,
html body.app-shell.page-report:not(.dark-mode) .report-page .select2-container--focus .select2-selection,
html body.app-shell.page-report:not(.dark-mode) .report-page .select2-container--open .select2-selection {
  border-color: #f97316 !important;
  box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.14) !important;
  outline: 0 !important;
}

html body.app-shell.page-report:not(.dark-mode) .report-page .gps-date-button,
html body.app-shell.page-report:not(.dark-mode) .report-page .report-date-preset-btn,
html body.app-shell.page-report:not(.dark-mode) .report-page .report-btn,
html body.app-shell.page-report:not(.dark-mode) .report-page .report-export-btn {
  background: linear-gradient(135deg, #f97316, #ea580c) !important;
  background-color: #f97316 !important;
  color: #fff !important;
  border-color: #fb923c !important;
  box-shadow: 0 5px 12px rgba(194, 65, 12, 0.16) !important;
}

html body.app-shell.page-report:not(.dark-mode) .report-page .gps-date-button:hover,
html body.app-shell.page-report:not(.dark-mode) .report-page .report-date-preset-btn:hover,
html body.app-shell.page-report:not(.dark-mode) .report-page .report-btn:hover,
html body.app-shell.page-report:not(.dark-mode) .report-page .report-export-btn:hover {
  background: linear-gradient(135deg, #ea580c, #c2410c) !important;
  background-color: #c2410c !important;
  color: #fff !important;
  border-color: #c2410c !important;
  transform: translateY(-1px);
}

html body.app-shell.page-report:not(.dark-mode) .report-page .report-date-presets-label,
html body.app-shell.page-report:not(.dark-mode) .report-page label {
  color: #7c2d12 !important;
}

html body.app-shell.page-report:not(.dark-mode) .report-page .report-table,
html body.app-shell.page-report:not(.dark-mode) .report-page .trip-table-scroll {
  background: #fff !important;
  border-color: #fed7aa !important;
}

html body.app-shell.page-report:not(.dark-mode) .report-page .report-table > thead,
html body.app-shell.page-report:not(.dark-mode) .report-page .report-table > thead > tr,
html body.app-shell.page-report:not(.dark-mode) .report-page .report-table > thead > tr > th,
html body.app-shell.page-report:not(.dark-mode) .report-page #trip-report-table > thead > tr > th {
  background: #fff7ed !important;
  background-color: #fff7ed !important;
  color: #9a3412 !important;
  border-color: #fdba74 !important;
  box-shadow: inset 0 -1px 0 #fdba74 !important;
}

html body.app-shell.page-report:not(.dark-mode) .report-page .report-table > tbody > tr > td,
html body.app-shell.page-report:not(.dark-mode) .report-page #trip-report-table > tbody > tr > td {
  background: #fff !important;
  color: #1f2937 !important;
  border-color: #ffedd5 !important;
}

html body.app-shell.page-report:not(.dark-mode) .report-page .report-table > tbody > tr:nth-child(even) > td {
  background: #fffaf5 !important;
}

html body.app-shell.page-report:not(.dark-mode) .report-page .report-table > tbody > tr:hover > td {
  background: #ffedd5 !important;
  color: #7c2d12 !important;
}

html body.app-shell.page-report:not(.dark-mode) .report-page .trip-summary-grid > *,
html body.app-shell.page-report:not(.dark-mode) .report-page [class*="summary-card"] {
  background: #fff7ed !important;
  color: #7c2d12 !important;
  border-color: #fed7aa !important;
}

/* K2S rev13: remove the final inline/ID-scoped blue report accents. */
html body.app-shell.page-report:not(.dark-mode) .report-page > h2 > span[style] {
  background: #fff7ed !important;
  background-color: #fff7ed !important;
  color: #ea580c !important;
  border: 1px solid #fdba74 !important;
  box-shadow: 0 5px 12px rgba(194, 65, 12, 0.12) !important;
}

html body.app-shell.page-report:not(.dark-mode) .report-page > h2 > span[style] i {
  color: #ea580c !important;
}

html body.app-shell.page-report:not(.dark-mode) .report-page #print-btn,
html body.app-shell.page-report:not(.dark-mode) .report-page button#print-btn.report-btn.secondary {
  background: linear-gradient(135deg, #f97316, #ea580c) !important;
  background-color: #f97316 !important;
  color: #fff !important;
  border-color: #fb923c !important;
  box-shadow: 0 5px 12px rgba(194, 65, 12, 0.16) !important;
}

html body.app-shell.page-report:not(.dark-mode) .report-page #print-btn:hover,
html body.app-shell.page-report:not(.dark-mode) .report-page button#print-btn.report-btn.secondary:hover {
  background: linear-gradient(135deg, #ea580c, #c2410c) !important;
  background-color: #c2410c !important;
  border-color: #c2410c !important;
}

html body.app-shell.page-report:not(.dark-mode) .report-page .select2-selection__placeholder {
  color: #8b6f63 !important;
}

/* K2S rev16: orange-white vehicle list floating panel on realtime maps. */
html body.app-shell:not(.dark-mode) #vehicle-popup {
  background: rgba(255, 250, 245, 0.97) !important;
  border: 1px solid #fdba74 !important;
  box-shadow: 0 18px 44px rgba(154, 52, 18, 0.2) !important;
  backdrop-filter: blur(24px) !important;
  -webkit-backdrop-filter: blur(24px) !important;
}

html body.app-shell:not(.dark-mode) #vehicle-popup > div:first-child,
html body.app-shell:not(.dark-mode) #vehicle-search-panel {
  background: linear-gradient(135deg, rgba(255, 247, 237, 0.98), rgba(255, 237, 213, 0.94)) !important;
  border-color: #fed7aa !important;
}

html body.app-shell:not(.dark-mode) #vehicle-popup .vehicle-list-header {
  color: #7c2d12 !important;
  font-weight: 700 !important;
}

html body.app-shell:not(.dark-mode) #vehicle-popup .vehicle-list-header > i {
  display: inline-grid !important;
  place-items: center !important;
  width: 32px !important;
  height: 32px !important;
  margin-right: 2px !important;
  background: #fff7ed !important;
  color: #ea580c !important;
  border: 1px solid #fdba74 !important;
  border-radius: 10px !important;
  box-shadow: 0 4px 10px rgba(194, 65, 12, 0.12) !important;
  font-size: 15px !important;
}

html body.app-shell:not(.dark-mode) #vehicle-popup #vehicle-list-count,
html body.app-shell:not(.dark-mode) #vehicle-popup .vehicle-count-badge {
  background: #9a3412 !important;
  color: #fff !important;
  border-color: #c2410c !important;
  box-shadow: 0 4px 10px rgba(154, 52, 18, 0.22) !important;
}

html body.app-shell:not(.dark-mode) #vehicle-popup #vehicle-refresh-countdown,
html body.app-shell:not(.dark-mode) #vehicle-popup .vehicle-refresh-countdown {
  background: #fff !important;
  color: #c2410c !important;
  border: 1px solid #fdba74 !important;
  box-shadow: 0 4px 10px rgba(194, 65, 12, 0.1) !important;
}

html body.app-shell:not(.dark-mode) #vehicle-popup .vehicle-refresh-countdown.is-refreshing {
  background: #f97316 !important;
  color: #fff !important;
  border-color: #ea580c !important;
}

html body.app-shell:not(.dark-mode) #vehicle-popup #vehicle-list-collapse-toggle {
  display: inline-grid !important;
  place-items: center !important;
  background: linear-gradient(135deg, #f97316, #ea580c) !important;
  color: #fff !important;
  border: 1px solid #fb923c !important;
  box-shadow: 0 5px 12px rgba(194, 65, 12, 0.2) !important;
}

html body.app-shell:not(.dark-mode) #vehicle-popup #vehicle-list-collapse-toggle:hover {
  background: linear-gradient(135deg, #ea580c, #c2410c) !important;
  color: #fff !important;
  border-color: #c2410c !important;
  transform: translateY(-1px);
}

html body.app-shell:not(.dark-mode) #vehicle-popup #vehicle-search {
  background: #fff !important;
  color: #431407 !important;
  border: 2px solid #fdba74 !important;
  box-shadow: 0 5px 14px rgba(154, 52, 18, 0.08) !important;
}

html body.app-shell:not(.dark-mode) #vehicle-popup #vehicle-search:focus {
  background: #fff !important;
  border-color: #f97316 !important;
  box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.14) !important;
  outline: 0 !important;
}

html body.app-shell:not(.dark-mode) #vehicle-popup #vehicle-search::placeholder {
  color: #9a7668 !important;
}

html body.app-shell:not(.dark-mode) #vehicle-popup #vehicle-search + i,
html body.app-shell:not(.dark-mode) #vehicle-popup #vehicle-search + .fa-search,
html body.app-shell:not(.dark-mode) #vehicle-popup #vehicle-search-panel .fa-magnifying-glass {
  color: #c2410c !important;
}

html body.app-shell:not(.dark-mode) #vehicle-popup #vehicle-list,
html body.app-shell:not(.dark-mode) #vehicle-popup #vehicle-list-content {
  background: linear-gradient(180deg, rgba(255, 250, 245, 0.74), rgba(255, 247, 237, 0.9)) !important;
}

html body.app-shell:not(.dark-mode) #vehicle-popup .vehicle-item {
  background: rgba(255, 255, 255, 0.96) !important;
  border-color: #fed7aa !important;
  box-shadow: 0 7px 18px rgba(154, 52, 18, 0.08), inset 0 1px 0 #fff !important;
}

html body.app-shell:not(.dark-mode) #vehicle-popup .vehicle-item:hover {
  background: #fffaf5 !important;
  border-color: #fb923c !important;
  box-shadow: 0 10px 24px rgba(154, 52, 18, 0.14) !important;
}

html body.app-shell:not(.dark-mode) #vehicle-popup .vehicle-item.selected {
  background: #fff7ed !important;
  border-color: #f97316 !important;
  box-shadow: 0 0 0 2px rgba(249, 115, 22, 0.16), 0 10px 24px rgba(154, 52, 18, 0.14) !important;
}

html body.app-shell:not(.dark-mode) #vehicle-popup ::-webkit-scrollbar-thumb {
  background: #fdba74 !important;
  border-radius: 999px !important;
}

html body.app-shell:not(.dark-mode) #vehicle-popup ::-webkit-scrollbar-thumb:hover {
  background: #f97316 !important;
}

/* K2S rev17: orange-white single-vehicle replay sidebar. */
html body.app-shell.page-admin_replay:not(.dark-mode) .admin-replay-sidebar {
  background: linear-gradient(180deg, #fff 0%, #fffaf5 100%) !important;
  color: #431407 !important;
  border-color: #fdba74 !important;
  box-shadow: 12px 0 34px rgba(154, 52, 18, 0.12) !important;
}

html body.app-shell.page-admin_replay:not(.dark-mode) .admin-replay-sidebar .sidebar-section {
  background: linear-gradient(180deg, #fffaf5 0%, #fff 100%) !important;
  border-color: #fed7aa !important;
}

html body.app-shell.page-admin_replay:not(.dark-mode) .admin-replay-sidebar .sidebar-title {
  color: #7c2d12 !important;
  border-color: #fed7aa !important;
}

html body.app-shell.page-admin_replay:not(.dark-mode) .admin-replay-sidebar .sidebar-title > i {
  display: inline-grid !important;
  place-items: center !important;
  width: 36px !important;
  height: 36px !important;
  margin-right: 8px !important;
  background: #fff7ed !important;
  color: #ea580c !important;
  border: 1px solid #fdba74 !important;
  border-radius: 11px !important;
  box-shadow: 0 5px 12px rgba(194, 65, 12, 0.12) !important;
}

html body.app-shell.page-admin_replay:not(.dark-mode) .admin-replay-sidebar .replay-form-group > label,
html body.app-shell.page-admin_replay:not(.dark-mode) .admin-replay-sidebar .replay-datetime-row > label,
html body.app-shell.page-admin_replay:not(.dark-mode) .admin-replay-sidebar .event-filter-title {
  color: #9a3412 !important;
}

html body.app-shell.page-admin_replay:not(.dark-mode) .admin-replay-sidebar .select2-selection,
html body.app-shell.page-admin_replay:not(.dark-mode) .admin-replay-sidebar .select2-container--default .select2-selection--single,
html body.app-shell.page-admin_replay:not(.dark-mode) .admin-replay-sidebar .replay-input,
html body.app-shell.page-admin_replay:not(.dark-mode) .admin-replay-sidebar .display-date,
html body.app-shell.page-admin_replay:not(.dark-mode) .admin-replay-sidebar .display-time {
  background: #fff !important;
  color: #431407 !important;
  border-color: #fdba74 !important;
  box-shadow: 0 4px 12px rgba(154, 52, 18, 0.06) !important;
}

html body.app-shell.page-admin_replay:not(.dark-mode) .admin-replay-sidebar .select2-container--open .select2-selection,
html body.app-shell.page-admin_replay:not(.dark-mode) .admin-replay-sidebar .select2-selection:focus,
html body.app-shell.page-admin_replay:not(.dark-mode) .admin-replay-sidebar .replay-input:focus {
  border-color: #f97316 !important;
  box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.14) !important;
  outline: 0 !important;
}

html body.app-shell.page-admin_replay:not(.dark-mode) .admin-replay-sidebar .select2-selection__placeholder,
html body.app-shell.page-admin_replay:not(.dark-mode) .admin-replay-sidebar .replay-date-hint {
  color: #9a7668 !important;
}

html body.app-shell.page-admin_replay:not(.dark-mode) .admin-replay-sidebar .select2-selection__arrow b {
  border-top-color: #c2410c !important;
  border-bottom-color: #c2410c !important;
}

html body.app-shell.page-admin_replay:not(.dark-mode) .admin-replay-sidebar .admin-replay-search-btn {
  background: linear-gradient(135deg, #f97316, #ea580c) !important;
  background-color: #f97316 !important;
  color: #fff !important;
  border-color: #fb923c !important;
  box-shadow: 0 7px 16px rgba(194, 65, 12, 0.2) !important;
}

html body.app-shell.page-admin_replay:not(.dark-mode) .admin-replay-sidebar .admin-replay-search-btn:hover {
  background: linear-gradient(135deg, #ea580c, #c2410c) !important;
  background-color: #c2410c !important;
  border-color: #c2410c !important;
  transform: translateY(-1px);
}

html body.app-shell.page-admin_replay:not(.dark-mode) .admin-replay-sidebar .event-filter-wrapper {
  background: #fffaf5 !important;
  border-color: #fed7aa !important;
}

html body.app-shell.page-admin_replay:not(.dark-mode) .admin-replay-sidebar .event-filter-list {
  background: transparent !important;
}

html body.app-shell.page-admin_replay:not(.dark-mode) .admin-replay-sidebar .event-filter-item {
  background: #fff !important;
  border-color: #fed7aa !important;
  box-shadow: 0 3px 8px rgba(154, 52, 18, 0.06) !important;
}

html body.app-shell.page-admin_replay:not(.dark-mode) .admin-replay-sidebar .event-filter-item:hover {
  background: #fff7ed !important;
  border-color: #fb923c !important;
}

html body.app-shell.page-admin_replay:not(.dark-mode) .admin-replay-sidebar .event-filter-item:has(input:checked) {
  background: #fff7ed !important;
  border-color: #f97316 !important;
  box-shadow: 0 0 0 2px rgba(249, 115, 22, 0.12) !important;
}

html body.app-shell.page-admin_replay:not(.dark-mode) .admin-replay-sidebar .admin-replay-summary {
  background: #fff7ed !important;
  color: #7c2d12 !important;
  border-color: #fed7aa !important;
}

html body.app-shell.page-admin_replay:not(.dark-mode) .admin-replay-sidebar .admin-replay-summary [style*="color"] {
  color: #ea580c !important;
}

html body.app-shell.page-admin_replay:not(.dark-mode) .admin-replay-sidebar .admin-replay-route-list {
  background: #fff !important;
  color: #8b6f63 !important;
  border-color: #fed7aa !important;
}

html body.app-shell.page-admin_replay:not(.dark-mode) .admin-replay-sidebar .admin-replay-route-list > div[style] {
  color: #9a7668 !important;
}

html body.app-shell.page-admin_replay:not(.dark-mode) .admin-replay-sidebar .admin-replay-route-list > div[style] > i {
  color: #f97316 !important;
  opacity: 0.5 !important;
}

/* K2S rev18: align hidden native replay pickers with the orange contract too. */
html body.app-shell.page-admin_replay:not(.dark-mode) .admin-replay-sidebar .native-date-input,
html body.app-shell.page-admin_replay:not(.dark-mode) .admin-replay-sidebar .native-time-input,
html body.app-shell.page-admin_replay:not(.dark-mode) .admin-replay-sidebar .native-picker-input {
  background: #fff !important;
  color: #431407 !important;
  border-color: #fdba74 !important;
}

/* K2S rev19: complete orange-white user management surface. */
html body.app-shell.page-users:not(.dark-mode) .main-page {
  background: linear-gradient(180deg, #fffaf5 0%, #fff 100%) !important;
  color: #1f2937 !important;
}

html body.app-shell.page-users:not(.dark-mode) .dashboard-title h1 {
  color: #431407 !important;
}

html body.app-shell.page-users:not(.dark-mode) .dashboard-title p {
  color: #8b6f63 !important;
}

html body.app-shell.page-users:not(.dark-mode) .add-btn {
  background: linear-gradient(135deg, #f97316, #ea580c) !important;
  background-color: #f97316 !important;
  color: #fff !important;
  border-color: #fb923c !important;
  box-shadow: 0 8px 18px rgba(194, 65, 12, 0.2) !important;
}

html body.app-shell.page-users:not(.dark-mode) .add-btn:hover {
  background: linear-gradient(135deg, #ea580c, #c2410c) !important;
  background-color: #c2410c !important;
  border-color: #c2410c !important;
  transform: translateY(-1px);
}

html body.app-shell.page-users:not(.dark-mode) .stat-card {
  background: #fff !important;
  color: #1f2937 !important;
  border-color: #fed7aa !important;
  box-shadow: 0 10px 24px rgba(154, 52, 18, 0.07) !important;
}

html body.app-shell.page-users:not(.dark-mode) .stat-card:hover {
  border-color: #fb923c !important;
  box-shadow: 0 14px 28px rgba(154, 52, 18, 0.12) !important;
}

html body.app-shell.page-users:not(.dark-mode) .stat-icon,
html body.app-shell.page-users:not(.dark-mode) .stat-icon.blue,
html body.app-shell.page-users:not(.dark-mode) .stat-icon.purple,
html body.app-shell.page-users:not(.dark-mode) .stat-icon.green,
html body.app-shell.page-users:not(.dark-mode) .stat-icon.orange {
  background: #fff7ed !important;
  color: #ea580c !important;
  border-color: #fdba74 !important;
  box-shadow: 0 6px 14px rgba(194, 65, 12, 0.1) !important;
}

html body.app-shell.page-users:not(.dark-mode) .stat-icon i,
html body.app-shell.page-users:not(.dark-mode) .stat-icon svg {
  color: #ea580c !important;
  fill: currentColor !important;
}

html body.app-shell.page-users:not(.dark-mode) .stat-label {
  color: #8b6f63 !important;
}

html body.app-shell.page-users:not(.dark-mode) .stat-value {
  color: #7c2d12 !important;
}

html body.app-shell.page-users:not(.dark-mode) .table-section {
  background: #fff !important;
  border-color: #fed7aa !important;
  box-shadow: 0 14px 34px rgba(154, 52, 18, 0.07) !important;
}

html body.app-shell.page-users:not(.dark-mode) .table-header,
html body.app-shell.page-users:not(.dark-mode) .table-footer {
  background: #fffaf5 !important;
  color: #7c2d12 !important;
  border-color: #fed7aa !important;
}

html body.app-shell.page-users:not(.dark-mode) .search-input,
html body.app-shell.page-users:not(.dark-mode) #searchInput,
html body.app-shell.page-users:not(.dark-mode) #limitSelect {
  background: #fff !important;
  color: #431407 !important;
  border-color: #fdba74 !important;
  box-shadow: none !important;
}

html body.app-shell.page-users:not(.dark-mode) .search-input:focus,
html body.app-shell.page-users:not(.dark-mode) #searchInput:focus,
html body.app-shell.page-users:not(.dark-mode) #limitSelect:focus {
  border-color: #f97316 !important;
  box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.14) !important;
  outline: 0 !important;
}

html body.app-shell.page-users:not(.dark-mode) #searchInput::placeholder {
  color: #9a7668 !important;
}

html body.app-shell.page-users:not(.dark-mode) .custom-table,
html body.app-shell.page-users:not(.dark-mode) .table-responsive {
  background: #fff !important;
  border-color: #fed7aa !important;
}

html body.app-shell.page-users:not(.dark-mode) .custom-table > thead,
html body.app-shell.page-users:not(.dark-mode) .custom-table > thead > tr,
html body.app-shell.page-users:not(.dark-mode) .custom-table > thead > tr > th {
  background: #fff7ed !important;
  background-color: #fff7ed !important;
  color: #9a3412 !important;
  border-color: #fdba74 !important;
  box-shadow: inset 0 -1px 0 #fdba74 !important;
}

html body.app-shell.page-users:not(.dark-mode) .custom-table > tbody > tr > td {
  background: #fff !important;
  color: #1f2937 !important;
  border-color: #ffedd5 !important;
}

html body.app-shell.page-users:not(.dark-mode) .custom-table > tbody > tr:nth-child(even) > td {
  background: #fffaf5 !important;
}

html body.app-shell.page-users:not(.dark-mode) .custom-table > tbody > tr:hover > td {
  background: #ffedd5 !important;
}

html body.app-shell.page-users:not(.dark-mode) .role-badge.role-user {
  background: #fff7ed !important;
  color: #ea580c !important;
  border-color: #fdba74 !important;
}

html body.app-shell.page-users:not(.dark-mode) .action-btn.action-edit {
  background: linear-gradient(135deg, #f97316, #ea580c) !important;
  background-color: #f97316 !important;
  color: #fff !important;
  border-color: #fb923c !important;
  box-shadow: 0 5px 12px rgba(194, 65, 12, 0.16) !important;
}

html body.app-shell.page-users:not(.dark-mode) .action-btn.action-edit:hover {
  background: #c2410c !important;
  border-color: #c2410c !important;
}

html body.app-shell.page-users:not(.dark-mode) .action-btn.action-delete {
  background: #dc2626 !important;
  color: #fff !important;
  border-color: #ef4444 !important;
}

html body.app-shell.page-users:not(.dark-mode) .btn-pg {
  background: #fff7ed !important;
  color: #c2410c !important;
  border-color: #fed7aa !important;
}

html body.app-shell.page-users:not(.dark-mode) .btn-pg:not(:disabled):hover {
  background: #f97316 !important;
  color: #fff !important;
  border-color: #ea580c !important;
}

html body.app-shell.page-users:not(.dark-mode) .btn-pg:disabled {
  background: #f5eee9 !important;
  color: #b8a197 !important;
  border-color: #ead9d0 !important;
}

/* K2S rev20: complete orange-white device management surface. */
html body.app-shell.page-device:not(.dark-mode) .page-content > div[style] {
  background: linear-gradient(180deg, #fffaf5 0%, #fff 100%) !important;
  color: #1f2937 !important;
}

html body.app-shell.page-device:not(.dark-mode) .page-content > div[style] > div:first-child h2 {
  color: #431407 !important;
}

html body.app-shell.page-device:not(.dark-mode) .page-content > div[style] > div:first-child h2 + div {
  color: #8b6f63 !important;
}

html body.app-shell.page-device:not(.dark-mode) .page-content > div[style] > div:first-child button {
  background: linear-gradient(135deg, #f97316, #ea580c) !important;
  background-color: #f97316 !important;
  color: #fff !important;
  border: 1px solid #fb923c !important;
  box-shadow: 0 8px 18px rgba(194, 65, 12, 0.2) !important;
}

html body.app-shell.page-device:not(.dark-mode) .page-content > div[style] > div:first-child button:hover {
  background: linear-gradient(135deg, #ea580c, #c2410c) !important;
  border-color: #c2410c !important;
}

html body.app-shell.page-device:not(.dark-mode) .stat-card {
  background: #fff !important;
  color: #1f2937 !important;
  border-color: #fed7aa !important;
  box-shadow: 0 10px 24px rgba(154, 52, 18, 0.07) !important;
}

html body.app-shell.page-device:not(.dark-mode) .stat-card:hover {
  border-color: #fb923c !important;
  box-shadow: 0 14px 28px rgba(154, 52, 18, 0.12) !important;
}

html body.app-shell.page-device:not(.dark-mode) .stat-icon,
html body.app-shell.page-device:not(.dark-mode) .stat-icon.bg-blue,
html body.app-shell.page-device:not(.dark-mode) .stat-icon.bg-green,
html body.app-shell.page-device:not(.dark-mode) .stat-icon.bg-purple,
html body.app-shell.page-device:not(.dark-mode) .stat-icon.bg-orange {
  background: #fff7ed !important;
  background-color: #fff7ed !important;
  color: #ea580c !important;
  border: 1px solid #fdba74 !important;
  box-shadow: 0 6px 14px rgba(194, 65, 12, 0.1) !important;
}

html body.app-shell.page-device:not(.dark-mode) .stat-icon i,
html body.app-shell.page-device:not(.dark-mode) .stat-icon svg {
  color: #ea580c !important;
  fill: currentColor !important;
}

html body.app-shell.page-device:not(.dark-mode) .stat-label {
  color: #8b6f63 !important;
}

html body.app-shell.page-device:not(.dark-mode) .stat-value {
  color: #7c2d12 !important;
}

html body.app-shell.page-device:not(.dark-mode) .main-content-container,
html body.app-shell.page-device:not(.dark-mode) .controls-header,
html body.app-shell.page-device:not(.dark-mode) .table-responsive {
  background: #fff !important;
  color: #1f2937 !important;
  border-color: #fed7aa !important;
  box-shadow: 0 14px 34px rgba(154, 52, 18, 0.07) !important;
}

html body.app-shell.page-device:not(.dark-mode) .dark-search-input,
html body.app-shell.page-device:not(.dark-mode) .dark-select,
html body.app-shell.page-device:not(.dark-mode) #searchInput,
html body.app-shell.page-device:not(.dark-mode) #limitSelect,
html body.app-shell.page-device:not(.dark-mode) #filterDest,
html body.app-shell.page-device:not(.dark-mode) #filterStatus,
html body.app-shell.page-device:not(.dark-mode) #filterModel {
  background: #fff !important;
  color: #431407 !important;
  border-color: #fdba74 !important;
  box-shadow: none !important;
}

html body.app-shell.page-device:not(.dark-mode) .dark-search-input:focus,
html body.app-shell.page-device:not(.dark-mode) .dark-select:focus {
  border-color: #f97316 !important;
  box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.14) !important;
  outline: 0 !important;
}

html body.app-shell.page-device:not(.dark-mode) #searchInput::placeholder {
  color: #9a7668 !important;
}

html body.app-shell.page-device:not(.dark-mode) #deviceTable {
  background: #fff !important;
  border-color: #fed7aa !important;
}

html body.app-shell.page-device:not(.dark-mode) .device-vehicle-icon {
  background: #fff7ed !important;
  color: #ea580c !important;
  border: 1px solid #fdba74 !important;
  box-shadow: 0 5px 12px rgba(194, 65, 12, 0.12) !important;
}

html body.app-shell.page-device:not(.dark-mode) .device-vehicle-icon i,
html body.app-shell.page-device:not(.dark-mode) .device-vehicle-icon svg {
  color: #ea580c !important;
  fill: currentColor !important;
}

html body.app-shell.page-device:not(.dark-mode) .user-badge {
  background: #fff7ed !important;
  color: #ea580c !important;
  border-color: #fdba74 !important;
}

html body.app-shell.page-device:not(.dark-mode) .vendor-st {
  color: #d6cec9 !important;
}

html body.app-shell.page-device:not(.dark-mode) .vendor-st.active {
  color: #f97316 !important;
  filter: drop-shadow(0 3px 6px rgba(194, 65, 12, 0.18)) !important;
}

html body.app-shell.page-device:not(.dark-mode) .action-btn.action-cutoff,
html body.app-shell.page-device:not(.dark-mode) .action-btn.action-restore,
html body.app-shell.page-device:not(.dark-mode) .action-btn.action-edit {
  background: linear-gradient(135deg, #f97316, #ea580c) !important;
  background-color: #f97316 !important;
  color: #fff !important;
  border-color: #fb923c !important;
  box-shadow: 0 5px 12px rgba(194, 65, 12, 0.16) !important;
}

html body.app-shell.page-device:not(.dark-mode) .action-btn.action-cutoff:hover,
html body.app-shell.page-device:not(.dark-mode) .action-btn.action-restore:hover,
html body.app-shell.page-device:not(.dark-mode) .action-btn.action-edit:hover {
  background: #c2410c !important;
  border-color: #c2410c !important;
}

html body.app-shell.page-device:not(.dark-mode) .action-btn.action-delete {
  background: #dc2626 !important;
  color: #fff !important;
  border-color: #ef4444 !important;
}

html body.app-shell.page-device:not(.dark-mode) .page-btn {
  background: #fff7ed !important;
  color: #c2410c !important;
  border-color: #fed7aa !important;
}

html body.app-shell.page-device:not(.dark-mode) .page-btn.active {
  background: #f97316 !important;
  color: #fff !important;
  border-color: #ea580c !important;
}

html body.app-shell.page-device:not(.dark-mode) .page-btn.disabled,
html body.app-shell.page-device:not(.dark-mode) .page-btn:disabled {
  background: #f5eee9 !important;
  color: #b8a197 !important;
  border-color: #ead9d0 !important;
}

/* K2S rev21: complete orange-white driver management surface. */
html body.app-shell.page-driver:not(.dark-mode) .main-page {
  background: linear-gradient(180deg, #fffaf5 0%, #ffffff 100%) !important;
  color: #292524 !important;
}
html body.app-shell.page-driver:not(.dark-mode) .dashboard-title h1 {
  color: #431407 !important;
}
html body.app-shell.page-driver:not(.dark-mode) .dashboard-title p {
  color: #8b6f63 !important;
}
html body.app-shell.page-driver:not(.dark-mode) .add-btn {
  background: linear-gradient(135deg, #f97316 0%, #ea580c 100%) !important;
  border-color: #fb923c !important;
  color: #ffffff !important;
  box-shadow: 0 10px 24px rgba(234, 88, 12, 0.2) !important;
}
html body.app-shell.page-driver:not(.dark-mode) .add-btn:hover {
  background: linear-gradient(135deg, #ea580c 0%, #c2410c 100%) !important;
  border-color: #f97316 !important;
}
html body.app-shell.page-driver:not(.dark-mode) .table-section {
  background: #ffffff !important;
  border-color: #fed7aa !important;
  box-shadow: 0 14px 35px rgba(124, 45, 18, 0.07) !important;
}
html body.app-shell.page-driver:not(.dark-mode) .table-header,
html body.app-shell.page-driver:not(.dark-mode) .table-footer {
  background: #fffdfb !important;
  border-color: #ffedd5 !important;
  color: #7c2d12 !important;
}
html body.app-shell.page-driver:not(.dark-mode) .search-input,
html body.app-shell.page-driver:not(.dark-mode) #searchInput,
html body.app-shell.page-driver:not(.dark-mode) #limitSelect {
  background: #ffffff !important;
  border-color: #fdba74 !important;
  color: #431407 !important;
  box-shadow: none !important;
}
html body.app-shell.page-driver:not(.dark-mode) .search-input:focus,
html body.app-shell.page-driver:not(.dark-mode) #searchInput:focus,
html body.app-shell.page-driver:not(.dark-mode) #limitSelect:focus {
  border-color: #f97316 !important;
  box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.13) !important;
  outline: none !important;
}
html body.app-shell.page-driver:not(.dark-mode) .search-input::placeholder,
html body.app-shell.page-driver:not(.dark-mode) #searchInput::placeholder {
  color: #a78b7d !important;
}
html body.app-shell.page-driver:not(.dark-mode) .table-responsive,
html body.app-shell.page-driver:not(.dark-mode) .custom-table {
  background: #ffffff !important;
  border-color: #fed7aa !important;
}
html body.app-shell.page-driver:not(.dark-mode) .custom-table > thead,
html body.app-shell.page-driver:not(.dark-mode) .custom-table > thead > tr,
html body.app-shell.page-driver:not(.dark-mode) .custom-table > thead > tr > th {
  background: #fff7ed !important;
  color: #9a3412 !important;
  border-color: #fdba74 !important;
}
html body.app-shell.page-driver:not(.dark-mode) .custom-table > tbody > tr,
html body.app-shell.page-driver:not(.dark-mode) .custom-table > tbody > tr > td {
  background: #ffffff !important;
  border-color: #ffedd5 !important;
}
html body.app-shell.page-driver:not(.dark-mode) .custom-table > tbody > tr:nth-child(even),
html body.app-shell.page-driver:not(.dark-mode) .custom-table > tbody > tr:nth-child(even) > td {
  background: #fffaf5 !important;
}
html body.app-shell.page-driver:not(.dark-mode) .custom-table > tbody > tr:hover,
html body.app-shell.page-driver:not(.dark-mode) .custom-table > tbody > tr:hover > td {
  background: #ffedd5 !important;
}
html body.app-shell.page-driver:not(.dark-mode) .custom-table tbody td:nth-child(7) > div[style*="background"] {
  background: #fff7ed !important;
  color: #ea580c !important;
  border-color: #fdba74 !important;
}
html body.app-shell.page-driver:not(.dark-mode) .action-btn.action-edit {
  background: linear-gradient(135deg, #fb923c 0%, #ea580c 100%) !important;
  border-color: #fdba74 !important;
  color: #ffffff !important;
}
html body.app-shell.page-driver:not(.dark-mode) .action-btn.action-edit:hover {
  background: linear-gradient(135deg, #f97316 0%, #c2410c 100%) !important;
}
html body.app-shell.page-driver:not(.dark-mode) .action-btn.action-delete {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%) !important;
  border-color: #f87171 !important;
  color: #ffffff !important;
}
html body.app-shell.page-driver:not(.dark-mode) .btn-pg {
  background: #fff7ed !important;
  border-color: #fed7aa !important;
  color: #ea580c !important;
}
html body.app-shell.page-driver:not(.dark-mode) .btn-pg:hover:not(:disabled) {
  background: #f97316 !important;
  border-color: #f97316 !important;
  color: #ffffff !important;
}
html body.app-shell.page-driver:not(.dark-mode) .btn-pg:disabled {
  background: #f5eee9 !important;
  border-color: #eadfd8 !important;
  color: #b7a59b !important;
}

/* K2S rev22: complete orange-white system settings surface and every settings tab. */
html body.app-shell.page-system:not(.dark-mode) .main-page.system-page {
  background: linear-gradient(180deg, #fffaf5 0%, #ffffff 100%) !important;
  color: #292524 !important;
}
html body.app-shell.page-system:not(.dark-mode) .system-page > header,
html body.app-shell.page-system:not(.dark-mode) .system-page .page-header,
html body.app-shell.page-system:not(.dark-mode) .system-page .system-header {
  background: #ffffff !important;
  border-color: #fed7aa !important;
  box-shadow: 0 14px 32px rgba(124, 45, 18, 0.07) !important;
}
html body.app-shell.page-system:not(.dark-mode) .system-page h1,
html body.app-shell.page-system:not(.dark-mode) .system-page h2,
html body.app-shell.page-system:not(.dark-mode) .system-page h3 {
  color: #431407 !important;
}
html body.app-shell.page-system:not(.dark-mode) .system-page .save-btn,
html body.app-shell.page-system:not(.dark-mode) .system-page .icon-tool-btn,
html body.app-shell.page-system:not(.dark-mode) .system-page .slot-btn,
html body.app-shell.page-system:not(.dark-mode) .system-page .totp-action-btn.primary {
  background: linear-gradient(135deg, #f97316 0%, #ea580c 100%) !important;
  border-color: #fb923c !important;
  color: #ffffff !important;
  box-shadow: 0 8px 20px rgba(234, 88, 12, 0.17) !important;
}
html body.app-shell.page-system:not(.dark-mode) .system-page .save-btn:hover,
html body.app-shell.page-system:not(.dark-mode) .system-page .icon-tool-btn:hover,
html body.app-shell.page-system:not(.dark-mode) .system-page .slot-btn:hover,
html body.app-shell.page-system:not(.dark-mode) .system-page .totp-action-btn.primary:hover {
  background: linear-gradient(135deg, #ea580c 0%, #c2410c 100%) !important;
  border-color: #f97316 !important;
}
html body.app-shell.page-system:not(.dark-mode) .system-page a.active {
  background: linear-gradient(90deg, #fff7ed 0%, #ffedd5 100%) !important;
  border-color: #fb923c !important;
  color: #c2410c !important;
  box-shadow: inset 4px 0 0 #f97316 !important;
}
html body.app-shell.page-system:not(.dark-mode) .system-page a:not(.active) {
  color: #57534e !important;
}
html body.app-shell.page-system:not(.dark-mode) .system-page a:not(.active):hover {
  background: #fff7ed !important;
  color: #ea580c !important;
}
html body.app-shell.page-system:not(.dark-mode) .system-page a i,
html body.app-shell.page-system:not(.dark-mode) .system-page a svg,
html body.app-shell.page-system:not(.dark-mode) .system-page .section-title i,
html body.app-shell.page-system:not(.dark-mode) .system-page .section-title svg {
  color: #ea580c !important;
  fill: currentColor;
}
html body.app-shell.page-system:not(.dark-mode) .system-page .custom-input,
html body.app-shell.page-system:not(.dark-mode) .system-page input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),
html body.app-shell.page-system:not(.dark-mode) .system-page textarea,
html body.app-shell.page-system:not(.dark-mode) .system-page select {
  background: #ffffff !important;
  border-color: #fdba74 !important;
  color: #431407 !important;
  box-shadow: none !important;
}
html body.app-shell.page-system:not(.dark-mode) .system-page .custom-input:focus,
html body.app-shell.page-system:not(.dark-mode) .system-page input:focus,
html body.app-shell.page-system:not(.dark-mode) .system-page textarea:focus,
html body.app-shell.page-system:not(.dark-mode) .system-page select:focus {
  border-color: #f97316 !important;
  box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.13) !important;
  outline: none !important;
}
html body.app-shell.page-system:not(.dark-mode) .system-page input::placeholder,
html body.app-shell.page-system:not(.dark-mode) .system-page textarea::placeholder {
  color: #a78b7d !important;
}
html body.app-shell.page-system:not(.dark-mode) .system-page .slot-thumb {
  background: #fff7ed !important;
  border-color: #fed7aa !important;
}
html body.app-shell.page-system:not(.dark-mode) .system-page .totp-action-btn:not(.primary) {
  background: #fff7ed !important;
  border-color: #fdba74 !important;
  color: #ea580c !important;
}
html body.app-shell.page-system:not(.dark-mode) .system-page [class*="sidebar"],
html body.app-shell.page-system:not(.dark-mode) .system-page [class*="content"],
html body.app-shell.page-system:not(.dark-mode) .system-page [class*="panel"],
html body.app-shell.page-system:not(.dark-mode) .system-page [class*="card"] {
  border-color: #fed7aa !important;
}
html body.app-shell.page-system:not(.dark-mode) .system-page [class*="title-icon"],
html body.app-shell.page-system:not(.dark-mode) .system-page [class*="header-icon"] {
  background: #fff7ed !important;
  color: #f97316 !important;
  border-color: #fed7aa !important;
}
html body.app-shell.page-system:not(.dark-mode) .system-page input[type="checkbox"]:checked,
html body.app-shell.page-system:not(.dark-mode) .system-page input[type="radio"]:checked {
  accent-color: #f97316 !important;
}

/* K2S rev23: remove final blue/purple and dark settings accents. */
html body.app-shell.page-system:not(.dark-mode) .system-page i.icon-blue,
html body.app-shell.page-system:not(.dark-mode) .system-page i.icon-purple,
html body.app-shell.page-system:not(.dark-mode) .system-page [class*="icon-blue"],
html body.app-shell.page-system:not(.dark-mode) .system-page [class*="icon-purple"] {
  background: #fff7ed !important;
  border-color: #fdba74 !important;
  color: #f97316 !important;
}
html body.app-shell.page-system:not(.dark-mode) .system-page .totp-key-box {
  background: #fff7ed !important;
  border-color: #fdba74 !important;
  color: #9a3412 !important;
  box-shadow: none !important;
}

/* K2S rev24: orange-white system notifications while preserving alert severity colors. */
html body.app-shell.page-system_notifications:not(.dark-mode) .page-content {
  background: linear-gradient(180deg, #fffaf5 0%, #ffffff 100%) !important;
  color: #292524 !important;
}
html body.app-shell.page-system_notifications:not(.dark-mode) .sys-notify-filter {
  background: #ffffff !important;
  border-color: #fdba74 !important;
  color: #431407 !important;
  box-shadow: none !important;
}
html body.app-shell.page-system_notifications:not(.dark-mode) .sys-notify-filter:focus {
  border-color: #f97316 !important;
  box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.13) !important;
  outline: none !important;
}
html body.app-shell.page-system_notifications:not(.dark-mode) .sys-notify-btn {
  background: linear-gradient(135deg, #f97316 0%, #ea580c 100%) !important;
  border-color: #fb923c !important;
  color: #ffffff !important;
  box-shadow: 0 7px 17px rgba(234, 88, 12, 0.16) !important;
}
html body.app-shell.page-system_notifications:not(.dark-mode) .sys-notify-btn:hover {
  background: linear-gradient(135deg, #ea580c 0%, #c2410c 100%) !important;
  border-color: #f97316 !important;
}
html body.app-shell.page-system_notifications:not(.dark-mode) .sys-notify-pill.info {
  background: #fff7ed !important;
  border-color: #fdba74 !important;
  color: #c2410c !important;
}
html body.app-shell.page-system_notifications:not(.dark-mode) .sys-notify-page-button {
  background: #fff7ed !important;
  border-color: #fed7aa !important;
  color: #ea580c !important;
}
html body.app-shell.page-system_notifications:not(.dark-mode) .sys-notify-page-button.active {
  background: linear-gradient(135deg, #f97316 0%, #ea580c 100%) !important;
  border-color: #fb923c !important;
  color: #ffffff !important;
  box-shadow: 0 7px 16px rgba(234, 88, 12, 0.18) !important;
}
html body.app-shell.page-system_notifications:not(.dark-mode) .sys-notify-page-button:hover:not(:disabled):not(.active) {
  background: #ffedd5 !important;
  border-color: #fb923c !important;
  color: #c2410c !important;
}
html body.app-shell.page-system_notifications:not(.dark-mode) .sys-notify-page-button:disabled {
  background: #f5eee9 !important;
  border-color: #eadfd8 !important;
  color: #b7a59b !important;
}
html body.app-shell.page-system_notifications:not(.dark-mode) .sys-notify-card,
html body.app-shell.page-system_notifications:not(.dark-mode) .sys-notify-table-wrap,
html body.app-shell.page-system_notifications:not(.dark-mode) .sys-notify-summary {
  border-color: #fed7aa !important;
}

/* K2S rev25: orange-white LINE report recipient management. */
html body.app-shell.page-line_reports:not(.dark-mode) .page-content {
  background: linear-gradient(180deg, #fffaf5 0%, #ffffff 100%) !important;
}
html body.app-shell.page-line_reports:not(.dark-mode) .line-reports-hero {
  background: linear-gradient(135deg, #7c2d12 0%, #ea580c 52%, #f97316 100%) !important;
  border-color: #fb923c !important;
  box-shadow: 0 18px 38px rgba(194, 65, 12, 0.2) !important;
  color: #ffffff !important;
}
html body.app-shell.page-line_reports:not(.dark-mode) .line-reports-hero h1,
html body.app-shell.page-line_reports:not(.dark-mode) .line-reports-hero h2,
html body.app-shell.page-line_reports:not(.dark-mode) .line-reports-hero p,
html body.app-shell.page-line_reports:not(.dark-mode) .line-reports-hero .text-muted {
  color: #ffffff !important;
}
html body.app-shell.page-line_reports:not(.dark-mode) .line-reports-card {
  background: #ffffff !important;
  border-color: #fed7aa !important;
  box-shadow: 0 13px 30px rgba(124, 45, 18, 0.07) !important;
}
html body.app-shell.page-line_reports:not(.dark-mode) .line-card-heading h2,
html body.app-shell.page-line_reports:not(.dark-mode) .line-card-heading h3 {
  color: #7c2d12 !important;
}
html body.app-shell.page-line_reports:not(.dark-mode) .form-label,
html body.app-shell.page-line_reports:not(.dark-mode) .form-check-label {
  color: #c2410c !important;
  border-color: transparent !important;
}
html body.app-shell.page-line_reports:not(.dark-mode) .form-control,
html body.app-shell.page-line_reports:not(.dark-mode) .form-select {
  background: #ffffff !important;
  border-color: #fdba74 !important;
  color: #431407 !important;
  box-shadow: none !important;
}
html body.app-shell.page-line_reports:not(.dark-mode) .form-control:focus,
html body.app-shell.page-line_reports:not(.dark-mode) .form-select:focus {
  border-color: #f97316 !important;
  box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.13) !important;
  outline: none !important;
}
html body.app-shell.page-line_reports:not(.dark-mode) .btn:not(.btn-danger),
html body.app-shell.page-line_reports:not(.dark-mode) #line-refresh-all,
html body.app-shell.page-line_reports:not(.dark-mode) #line-add-vehicle,
html body.app-shell.page-line_reports:not(.dark-mode) #line-preview-button,
html body.app-shell.page-line_reports:not(.dark-mode) #line-test-button,
html body.app-shell.page-line_reports:not(.dark-mode) #line-save-button {
  background: linear-gradient(135deg, #f97316 0%, #ea580c 100%) !important;
  border-color: #fb923c !important;
  color: #ffffff !important;
  box-shadow: 0 7px 18px rgba(234, 88, 12, 0.17) !important;
}
html body.app-shell.page-line_reports:not(.dark-mode) .btn:not(.btn-danger):hover {
  background: linear-gradient(135deg, #ea580c 0%, #c2410c 100%) !important;
  border-color: #f97316 !important;
  color: #ffffff !important;
}
html body.app-shell.page-line_reports:not(.dark-mode) .line-fixed-window {
  background: #fff7ed !important;
  border-color: #fdba74 !important;
  color: #c2410c !important;
}
html body.app-shell.page-line_reports:not(.dark-mode) .line-message-preview {
  background: #fff7ed !important;
  border-color: #fed7aa !important;
  color: #431407 !important;
}
html body.app-shell.page-line_reports:not(.dark-mode) .line-reports-table,
html body.app-shell.page-line_reports:not(.dark-mode) .line-reports-table th,
html body.app-shell.page-line_reports:not(.dark-mode) .line-reports-table td {
  border-color: #fed7aa !important;
}
html body.app-shell.page-line_reports:not(.dark-mode) .line-reports-table thead th {
  background: #fff7ed !important;
  color: #9a3412 !important;
}
html body.app-shell.page-line_reports:not(.dark-mode) .form-check-input:checked {
  background-color: #f97316 !important;
  border-color: #f97316 !important;
}

/* K2S rev26: orange-white database status and maintenance page. */
html body.app-shell.page-db_check:not(.dark-mode) .page-content {
  background: linear-gradient(180deg, #fffaf5 0%, #ffffff 100%) !important;
  color: #292524 !important;
}
html body.app-shell.page-db_check:not(.dark-mode) .page-content div[style*="#3498db"] {
  background: linear-gradient(135deg, #f97316 0%, #ea580c 100%) !important;
  border-color: #fb923c !important;
  color: #ffffff !important;
  box-shadow: 0 8px 20px rgba(234, 88, 12, 0.18) !important;
}
html body.app-shell.page-db_check:not(.dark-mode) .page-content h1,
html body.app-shell.page-db_check:not(.dark-mode) .page-content h2 {
  color: #431407 !important;
}
html body.app-shell.page-db_check:not(.dark-mode) .page-content label {
  color: #c2410c !important;
  border-color: transparent !important;
}
html body.app-shell.page-db_check:not(.dark-mode) .page-content input,
html body.app-shell.page-db_check:not(.dark-mode) .page-content select {
  background: #ffffff !important;
  border-color: #fdba74 !important;
  color: #431407 !important;
  box-shadow: none !important;
}
html body.app-shell.page-db_check:not(.dark-mode) .page-content input:focus,
html body.app-shell.page-db_check:not(.dark-mode) .page-content select:focus {
  border-color: #f97316 !important;
  box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.13) !important;
  outline: none !important;
}
html body.app-shell.page-db_check:not(.dark-mode) .page-content button[onclick^="backupTable"] {
  background: linear-gradient(135deg, #f97316 0%, #ea580c 100%) !important;
  border: 1px solid #fb923c !important;
  color: #ffffff !important;
  box-shadow: 0 7px 17px rgba(234, 88, 12, 0.16) !important;
}
html body.app-shell.page-db_check:not(.dark-mode) .page-content button[onclick^="backupTable"]:hover {
  background: linear-gradient(135deg, #ea580c 0%, #c2410c 100%) !important;
  border-color: #f97316 !important;
}
html body.app-shell.page-db_check:not(.dark-mode) .page-content table,
html body.app-shell.page-db_check:not(.dark-mode) .page-content table th,
html body.app-shell.page-db_check:not(.dark-mode) .page-content table td {
  border-color: #fed7aa !important;
}
html body.app-shell.page-db_check:not(.dark-mode) .page-content table thead th {
  background: #fff7ed !important;
  color: #9a3412 !important;
}
html body.app-shell.page-db_check:not(.dark-mode) .page-content table tbody tr:nth-child(odd),
html body.app-shell.page-db_check:not(.dark-mode) .page-content table tbody tr:nth-child(odd) td {
  background: #ffffff !important;
}
html body.app-shell.page-db_check:not(.dark-mode) .page-content table tbody tr:nth-child(even),
html body.app-shell.page-db_check:not(.dark-mode) .page-content table tbody tr:nth-child(even) td {
  background: #fffaf5 !important;
}
html body.app-shell.page-db_check:not(.dark-mode) .page-content .paginate_button.current,
html body.app-shell.page-db_check:not(.dark-mode) .page-content .pagination .active > * {
  background: linear-gradient(135deg, #f97316 0%, #ea580c 100%) !important;
  border-color: #fb923c !important;
  color: #ffffff !important;
}

/* K2S rev27: neutralize zero-size DataTables helper nodes on DB page. */
html body.app-shell.page-db_check:not(.dark-mode) .page-content div:empty:not([class]):not([id]):not([style]) {
  background: transparent !important;
  border-color: transparent !important;
  color: inherit !important;
}

/* K2S rev28: orange-white POI management controls; map cartography remains untouched. */
html body.app-shell.page-poi:not(.dark-mode) .page-content {
  background: linear-gradient(180deg, #fffaf5 0%, #ffffff 100%) !important;
  color: #292524 !important;
}
html body.app-shell.page-poi:not(.dark-mode) .page-content div[style*="#3498db"] {
  background: linear-gradient(135deg, #f97316 0%, #ea580c 100%) !important;
  border-color: #fb923c !important;
  color: #ffffff !important;
  box-shadow: 0 8px 20px rgba(234, 88, 12, 0.18) !important;
}
html body.app-shell.page-poi:not(.dark-mode) .page-content h1,
html body.app-shell.page-poi:not(.dark-mode) .page-content h2 {
  color: #431407 !important;
}
html body.app-shell.page-poi:not(.dark-mode) .poi-filter-control {
  color: #9a3412 !important;
  border-color: transparent !important;
}
html body.app-shell.page-poi:not(.dark-mode) .poi-filter-control select,
html body.app-shell.page-poi:not(.dark-mode) #poi-user-filter,
html body.app-shell.page-poi:not(.dark-mode) #poi-type-filter,
html body.app-shell.page-poi:not(.dark-mode) #poi-geometry-filter,
html body.app-shell.page-poi:not(.dark-mode) .page-content input:not([type="checkbox"]):not([type="radio"]),
html body.app-shell.page-poi:not(.dark-mode) .page-content textarea {
  background: #ffffff !important;
  border-color: #fdba74 !important;
  color: #431407 !important;
  box-shadow: none !important;
}
html body.app-shell.page-poi:not(.dark-mode) .poi-filter-control select:focus,
html body.app-shell.page-poi:not(.dark-mode) .page-content input:focus,
html body.app-shell.page-poi:not(.dark-mode) .page-content textarea:focus {
  border-color: #f97316 !important;
  box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.13) !important;
  outline: none !important;
}
html body.app-shell.page-poi:not(.dark-mode) .page-content button:not(.action-delete):not(.leaflet-control-zoom-in):not(.leaflet-control-zoom-out):not(:disabled) {
  background: linear-gradient(135deg, #f97316 0%, #ea580c 100%) !important;
  border-color: #fb923c !important;
  color: #ffffff !important;
  box-shadow: 0 7px 17px rgba(234, 88, 12, 0.16) !important;
}
html body.app-shell.page-poi:not(.dark-mode) .page-content button:not(.action-delete):not(.leaflet-control-zoom-in):not(.leaflet-control-zoom-out):not(:disabled):hover {
  background: linear-gradient(135deg, #ea580c 0%, #c2410c 100%) !important;
  border-color: #f97316 !important;
}
html body.app-shell.page-poi:not(.dark-mode) .page-content button:disabled {
  background: #f5eee9 !important;
  border-color: #eadfd8 !important;
  color: #b7a59b !important;
}
html body.app-shell.page-poi:not(.dark-mode) .map-type-btn:not(.active) {
  background: #fff7ed !important;
  border-color: #fed7aa !important;
  color: #78716c !important;
  box-shadow: none !important;
}
html body.app-shell.page-poi:not(.dark-mode) .badge.badge-info {
  background: #fff7ed !important;
  border-color: #fdba74 !important;
  color: #c2410c !important;
}
html body.app-shell.page-poi:not(.dark-mode) .poi-type-icon {
  color: #f97316 !important;
  border-color: #fdba74 !important;
}
html body.app-shell.page-poi:not(.dark-mode) .action-buttons {
  background: #fff7ed !important;
  border-color: #fed7aa !important;
}
html body.app-shell.page-poi:not(.dark-mode) .poi-map-help {
  background: rgba(255, 247, 237, 0.96) !important;
  border-color: #fdba74 !important;
  color: #431407 !important;
}
html body.app-shell.page-poi:not(.dark-mode) .poi-map-help i {
  color: #f97316 !important;
  border-color: #fdba74 !important;
}
html body.app-shell.page-poi:not(.dark-mode) .page-content table,
html body.app-shell.page-poi:not(.dark-mode) .page-content table th,
html body.app-shell.page-poi:not(.dark-mode) .page-content table td {
  border-color: #fed7aa !important;
}
html body.app-shell.page-poi:not(.dark-mode) .page-content table thead th {
  background: #fff7ed !important;
  color: #9a3412 !important;
}
html body.app-shell.page-poi:not(.dark-mode) .page-content table tbody tr:nth-child(even),
html body.app-shell.page-poi:not(.dark-mode) .page-content table tbody tr:nth-child(even) td {
  background: #fffaf5 !important;
}

/* K2S rev29: override high-specificity POI type badges and move dialog coordinates. */
html body.app-shell.page-poi.page-poi:not(.dark-mode) .page-content table tbody td span.badge.badge-info,
html body.app-shell.page-poi.page-poi:not(.dark-mode) .page-content .badge.badge-info {
  background: #fff7ed !important;
  background-color: #fff7ed !important;
  border: 1px solid #fdba74 !important;
  color: #c2410c !important;
}
html body.app-shell.page-poi.page-poi:not(.dark-mode) .page-content .poi-move-coords,
html body.app-shell.page-poi.page-poi:not(.dark-mode) .page-content #poi-move-lat,
html body.app-shell.page-poi.page-poi:not(.dark-mode) .page-content #poi-move-lng {
  color: #9a3412 !important;
  border-color: #fed7aa !important;
}

/* K2S rev30: beat the legacy #poiTable light-theme contract specificity. */
html body.app-shell.page-poi:not(.dark-mode) #poiTable .badge.badge-info {
  background: #fff7ed !important;
  background-color: #fff7ed !important;
  border: 1px solid #fdba74 !important;
  color: #c2410c !important;
  box-shadow: none !important;
}
html body.app-shell.page-poi:not(.dark-mode) #poiTable .badge.badge-info .poi-type-icon {
  color: #f97316 !important;
  border-color: #fdba74 !important;
}

/* K2S rev31: orange-white risk point management including Leaflet markers. */
html body.app-shell.page-risk_point:not(.dark-mode) .page-content {
  background: linear-gradient(180deg, #fffaf5 0%, #ffffff 100%) !important;
  color: #292524 !important;
}
html body.app-shell.page-risk_point:not(.dark-mode) .page-content h1,
html body.app-shell.page-risk_point:not(.dark-mode) .page-content h2 {
  color: #431407 !important;
}
html body.app-shell.page-risk_point:not(.dark-mode) .page-content label {
  color: #9a3412 !important;
  border-color: transparent !important;
}
html body.app-shell.page-risk_point:not(.dark-mode) .page-content input,
html body.app-shell.page-risk_point:not(.dark-mode) .page-content select,
html body.app-shell.page-risk_point:not(.dark-mode) .page-content textarea {
  background: #ffffff !important;
  border-color: #fdba74 !important;
  color: #431407 !important;
  box-shadow: none !important;
}
html body.app-shell.page-risk_point:not(.dark-mode) .page-content input:focus,
html body.app-shell.page-risk_point:not(.dark-mode) .page-content select:focus,
html body.app-shell.page-risk_point:not(.dark-mode) .page-content textarea:focus {
  border-color: #f97316 !important;
  box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.13) !important;
  outline: none !important;
}
html body.app-shell.page-risk_point:not(.dark-mode) .page-content button:not(.action-delete):not(.leaflet-control-zoom-in):not(.leaflet-control-zoom-out):not(:disabled) {
  background: linear-gradient(135deg, #f97316 0%, #ea580c 100%) !important;
  border-color: #fb923c !important;
  color: #ffffff !important;
  box-shadow: 0 7px 17px rgba(234, 88, 12, 0.16) !important;
}
html body.app-shell.page-risk_point:not(.dark-mode) .page-content button:not(.action-delete):not(.leaflet-control-zoom-in):not(.leaflet-control-zoom-out):not(:disabled):hover {
  background: linear-gradient(135deg, #ea580c 0%, #c2410c 100%) !important;
  border-color: #f97316 !important;
}
html body.app-shell.page-risk_point:not(.dark-mode) .page-content button:disabled {
  background: #f5eee9 !important;
  border-color: #eadfd8 !important;
  color: #b7a59b !important;
}
html body.app-shell.page-risk_point:not(.dark-mode) #riskTable .badge.badge-info {
  background: #fff7ed !important;
  background-color: #fff7ed !important;
  border: 1px solid #fdba74 !important;
  color: #c2410c !important;
  box-shadow: none !important;
}
html body.app-shell.page-risk_point:not(.dark-mode) .map-type-btn:not(.active) {
  background: #fff7ed !important;
  border-color: #fed7aa !important;
  color: #78716c !important;
  box-shadow: none !important;
}
html body.app-shell.page-risk_point:not(.dark-mode) .page-content div[style*="rgba(5,10,25"] {
  background: rgba(255, 247, 237, 0.96) !important;
  border-color: #fdba74 !important;
  color: #431407 !important;
  box-shadow: 0 10px 25px rgba(124, 45, 18, 0.14) !important;
}
html body.app-shell.page-risk_point:not(.dark-mode) .page-content div[style*="rgba(5,10,25"] i {
  color: #f97316 !important;
  border-color: #fdba74 !important;
}
html body.app-shell.page-risk_point:not(.dark-mode) .leaflet-marker-pane img.leaflet-marker-icon {
  filter: hue-rotate(180deg) saturate(1.35) brightness(1.08) !important;
}
html body.app-shell.page-risk_point:not(.dark-mode) .page-content table,
html body.app-shell.page-risk_point:not(.dark-mode) .page-content table th,
html body.app-shell.page-risk_point:not(.dark-mode) .page-content table td {
  border-color: #fed7aa !important;
}
html body.app-shell.page-risk_point:not(.dark-mode) .page-content table thead th {
  background: #fff7ed !important;
  color: #9a3412 !important;
}
html body.app-shell.page-risk_point:not(.dark-mode) .page-content table tbody tr:nth-child(even),
html body.app-shell.page-risk_point:not(.dark-mode) .page-content table tbody tr:nth-child(even) td {
  background: #fffaf5 !important;
}

/* K2S rev32: orange-white read-only DLT risk route management. */
html body.app-shell.page-risk_route:not(.dark-mode) .page-content {
  background: linear-gradient(180deg, #fffaf5 0%, #ffffff 100%) !important;
  color: #292524 !important;
}
html body.app-shell.page-risk_route:not(.dark-mode) .page-content div[style*="#2c3e50"],
html body.app-shell.page-risk_route:not(.dark-mode) .page-content div[style*="background: #2c3e50"] {
  background: linear-gradient(135deg, #f97316 0%, #ea580c 100%) !important;
  border-color: #fb923c !important;
  color: #ffffff !important;
  box-shadow: 0 8px 20px rgba(234, 88, 12, 0.18) !important;
}
html body.app-shell.page-risk_route:not(.dark-mode) .page-content h1,
html body.app-shell.page-risk_route:not(.dark-mode) .page-content h2 {
  color: #431407 !important;
}
html body.app-shell.page-risk_route:not(.dark-mode) .page-content label {
  color: #9a3412 !important;
  border-color: transparent !important;
}
html body.app-shell.page-risk_route:not(.dark-mode) .page-content input,
html body.app-shell.page-risk_route:not(.dark-mode) .page-content select {
  background: #ffffff !important;
  border-color: #fdba74 !important;
  color: #431407 !important;
  box-shadow: none !important;
}
html body.app-shell.page-risk_route:not(.dark-mode) .page-content input:focus,
html body.app-shell.page-risk_route:not(.dark-mode) .page-content select:focus {
  border-color: #f97316 !important;
  box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.13) !important;
  outline: none !important;
}
html body.app-shell.page-risk_route:not(.dark-mode) .page-content button:not(.leaflet-control-zoom-in):not(.leaflet-control-zoom-out):not(:disabled) {
  background: linear-gradient(135deg, #f97316 0%, #ea580c 100%) !important;
  border-color: #fb923c !important;
  color: #ffffff !important;
  box-shadow: 0 7px 17px rgba(234, 88, 12, 0.16) !important;
}
html body.app-shell.page-risk_route:not(.dark-mode) .page-content button:not(.leaflet-control-zoom-in):not(.leaflet-control-zoom-out):not(:disabled):hover {
  background: linear-gradient(135deg, #ea580c 0%, #c2410c 100%) !important;
  border-color: #f97316 !important;
}
html body.app-shell.page-risk_route:not(.dark-mode) .page-content button:disabled {
  background: #f5eee9 !important;
  border-color: #eadfd8 !important;
  color: #b7a59b !important;
}
html body.app-shell.page-risk_route:not(.dark-mode) .map-type-btn:not(.active) {
  background: #fff7ed !important;
  border-color: #fed7aa !important;
  color: #78716c !important;
  box-shadow: none !important;
}
html body.app-shell.page-risk_route:not(.dark-mode) .page-content div[style*="rgba(5,10,25"] {
  background: rgba(255, 247, 237, 0.96) !important;
  border-color: #fdba74 !important;
  color: #431407 !important;
  box-shadow: 0 10px 25px rgba(124, 45, 18, 0.14) !important;
}
html body.app-shell.page-risk_route:not(.dark-mode) .page-content div[style*="rgba(5,10,25"] i {
  color: #f97316 !important;
  border-color: #fdba74 !important;
}
html body.app-shell.page-risk_route:not(.dark-mode) .page-content table,
html body.app-shell.page-risk_route:not(.dark-mode) .page-content table th,
html body.app-shell.page-risk_route:not(.dark-mode) .page-content table td {
  border-color: #fed7aa !important;
}
html body.app-shell.page-risk_route:not(.dark-mode) .page-content table thead th {
  background: #fff7ed !important;
  color: #9a3412 !important;
}
html body.app-shell.page-risk_route:not(.dark-mode) .page-content table tbody tr:nth-child(even),
html body.app-shell.page-risk_route:not(.dark-mode) .page-content table tbody tr:nth-child(even) td {
  background: #fffaf5 !important;
}

/* K2S rev33: global orange date and time picker controls. */
html body.app-shell:not(.dark-mode) input[type="date"],
html body.app-shell:not(.dark-mode) input[type="datetime-local"],
html body.app-shell:not(.dark-mode) input[type="month"],
html body.app-shell:not(.dark-mode) input[type="week"],
html body.app-shell:not(.dark-mode) input[type="time"],
html body.app-shell:not(.dark-mode) .native-date-input,
html body.app-shell:not(.dark-mode) .native-picker-input,
html body.app-shell:not(.dark-mode) .date-input {
  background-color: #ffffff !important;
  border-color: #fdba74 !important;
  color: #431407 !important;
  color-scheme: light !important;
  accent-color: #f97316 !important;
  box-shadow: none !important;
}
html body.app-shell:not(.dark-mode) input[type="date"]:hover,
html body.app-shell:not(.dark-mode) input[type="datetime-local"]:hover,
html body.app-shell:not(.dark-mode) input[type="month"]:hover,
html body.app-shell:not(.dark-mode) input[type="week"]:hover,
html body.app-shell:not(.dark-mode) input[type="time"]:hover {
  border-color: #fb923c !important;
  background-color: #fffaf5 !important;
}
html body.app-shell:not(.dark-mode) input[type="date"]:focus,
html body.app-shell:not(.dark-mode) input[type="datetime-local"]:focus,
html body.app-shell:not(.dark-mode) input[type="month"]:focus,
html body.app-shell:not(.dark-mode) input[type="week"]:focus,
html body.app-shell:not(.dark-mode) input[type="time"]:focus {
  border-color: #f97316 !important;
  box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.14) !important;
  outline: none !important;
}
html body.app-shell:not(.dark-mode) input[type="date"]::-webkit-calendar-picker-indicator,
html body.app-shell:not(.dark-mode) input[type="datetime-local"]::-webkit-calendar-picker-indicator,
html body.app-shell:not(.dark-mode) input[type="month"]::-webkit-calendar-picker-indicator,
html body.app-shell:not(.dark-mode) input[type="week"]::-webkit-calendar-picker-indicator,
html body.app-shell:not(.dark-mode) input[type="time"]::-webkit-calendar-picker-indicator {
  cursor: pointer !important;
  opacity: 1 !important;
  padding: 7px !important;
  border-radius: 9px !important;
  background-color: #fff7ed !important;
  filter: invert(42%) sepia(94%) saturate(2400%) hue-rotate(359deg) brightness(101%) contrast(96%) !important;
}
html body.app-shell:not(.dark-mode) input[type="date"]::-webkit-datetime-edit,
html body.app-shell:not(.dark-mode) input[type="datetime-local"]::-webkit-datetime-edit,
html body.app-shell:not(.dark-mode) input[type="month"]::-webkit-datetime-edit,
html body.app-shell:not(.dark-mode) input[type="week"]::-webkit-datetime-edit,
html body.app-shell:not(.dark-mode) input[type="time"]::-webkit-datetime-edit {
  color: #431407 !important;
}
html body.app-shell:not(.dark-mode) input[type="date"]::-webkit-datetime-edit-field:focus,
html body.app-shell:not(.dark-mode) input[type="datetime-local"]::-webkit-datetime-edit-field:focus,
html body.app-shell:not(.dark-mode) input[type="month"]::-webkit-datetime-edit-field:focus,
html body.app-shell:not(.dark-mode) input[type="week"]::-webkit-datetime-edit-field:focus,
html body.app-shell:not(.dark-mode) input[type="time"]::-webkit-datetime-edit-field:focus {
  background: #ffedd5 !important;
  color: #9a3412 !important;
  border-radius: 4px !important;
}
/* Custom calendar libraries and project-local calendar popups. */
html body.app-shell:not(.dark-mode) .flatpickr-calendar,
html body.app-shell:not(.dark-mode) .ui-datepicker,
html body.app-shell:not(.dark-mode) .daterangepicker,
html body.app-shell:not(.dark-mode) .date-picker-popup,
html body.app-shell:not(.dark-mode) .calendar-popup,
html body.app-shell:not(.dark-mode) .thai-date-picker-panel {
  background: #ffffff !important;
  border: 1px solid #fdba74 !important;
  color: #431407 !important;
  box-shadow: 0 18px 45px rgba(124, 45, 18, 0.18) !important;
}
html body.app-shell:not(.dark-mode) .flatpickr-months,
html body.app-shell:not(.dark-mode) .flatpickr-weekdays,
html body.app-shell:not(.dark-mode) .ui-datepicker-header,
html body.app-shell:not(.dark-mode) .daterangepicker .calendar-table thead,
html body.app-shell:not(.dark-mode) .date-picker-popup header,
html body.app-shell:not(.dark-mode) .calendar-popup header {
  background: #fff7ed !important;
  border-color: #fed7aa !important;
  color: #9a3412 !important;
}
html body.app-shell:not(.dark-mode) .flatpickr-day.selected,
html body.app-shell:not(.dark-mode) .flatpickr-day.startRange,
html body.app-shell:not(.dark-mode) .flatpickr-day.endRange,
html body.app-shell:not(.dark-mode) .ui-datepicker-calendar .ui-state-active,
html body.app-shell:not(.dark-mode) .daterangepicker td.active,
html body.app-shell:not(.dark-mode) .daterangepicker td.active:hover,
html body.app-shell:not(.dark-mode) .date-picker-popup .selected,
html body.app-shell:not(.dark-mode) .calendar-popup .selected {
  background: #f97316 !important;
  border-color: #f97316 !important;
  color: #ffffff !important;
}
html body.app-shell:not(.dark-mode) .flatpickr-day.today,
html body.app-shell:not(.dark-mode) .ui-datepicker-calendar .ui-state-highlight,
html body.app-shell:not(.dark-mode) .daterangepicker td.today {
  background: #fff7ed !important;
  border-color: #fb923c !important;
  color: #c2410c !important;
}
html body.app-shell:not(.dark-mode) .flatpickr-day:hover,
html body.app-shell:not(.dark-mode) .ui-datepicker-calendar a:hover,
html body.app-shell:not(.dark-mode) .daterangepicker td.available:hover {
  background: #ffedd5 !important;
  border-color: #fdba74 !important;
  color: #9a3412 !important;
}
/* rev34: keep the brand artwork from covering the sidebar toggle */
.main-header .hamburger-btn {
    width: 40px !important;
    height: 40px !important;
    min-width: 40px !important;
    padding: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    position: relative !important;
    z-index: 5 !important;
    flex: 0 0 40px !important;
}

.main-header .logo-icon.logo-icon--image {
    width: 72px !important;
    height: 42px !important;
    min-width: 72px !important;
    overflow: hidden !important;
}

.main-header .logo-icon.logo-icon--image img {
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    object-fit: contain !important;
    transform: none !important;
}
