/* ================================================================
   SICOTRACK — Design System v2.0
   Modern Professional Fleet Management UI
   ================================================================ */

@import url("https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap");

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  /* Brand */
  --primary: #4f46e5;
  --primary-hover: #4338ca;
  --primary-light: #eef2ff;
  --primary-muted: rgba(79, 70, 229, 0.12);

  /* Semantics */
  --success: #059669;
  --success-light: #ecfdf5;
  --warning: #d97706;
  --warning-light: #fffbeb;
  --danger: #dc2626;
  --danger-light: #fef2f2;
  --info: #0284c7;
  --info-light: #f0f9ff;

  /* Grays */
  --gray-50: #f8fafc;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-300: #cbd5e1;
  --gray-400: #94a3b8;
  --gray-500: #64748b;
  --gray-600: #475569;
  --gray-700: #334155;
  --gray-800: #1e293b;
  --gray-900: #0f172a;

  /* Sidebar */
  --sidebar-bg: #0f172a;
  --sidebar-width: 260px;
  --sidebar-hover: rgba(255, 255, 255, 0.055);
  --sidebar-active-bg: rgba(79, 70, 229, 0.18);
  --sidebar-active-border: #4f46e5;
  --sidebar-text: #94a3b8;
  --sidebar-text-active: #ffffff;

  /* Layout */
  --header-h: 72px;
  --content-bg: #f1f5f9;

  /* Cards */
  --card-bg: #ffffff;
  --card-radius: 12px;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.07), 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md:
    0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -1px rgba(0, 0, 0, 0.05);
  --shadow-lg:
    0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.04);

  /* Typography */
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --text-primary: #0f172a;
  --text-secondary: #64748b;
  --text-muted: #94a3b8;

  /* Motion */
  --t: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --t-slow: 250ms cubic-bezier(0.4, 0, 0.2, 1);

  /* Radii */
  --r-sm: 6px;
  --r: 8px;
  --r-md: 10px;
  --r-lg: 12px;
  --r-xl: 16px;
  --r-full: 9999px;
}

html {
  font-size: 15px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  background: var(--content-bg);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: inherit;
  text-decoration: none;
}
img {
  max-width: 100%;
  display: block;
}
button {
  cursor: pointer;
  font-family: var(--font);
}
input,
select,
textarea {
  font-family: var(--font);
}

/* ================================================================
   LAYOUT
   ================================================================ */

.app-wrapper {
  display: flex;
  min-height: 100vh;
}

.main-content {
  flex: 1;
  margin-left: var(--sidebar-width);
  padding: calc(var(--header-h) + 32px) 32px 32px;
  min-height: 100vh;
  transition: margin-left var(--t-slow);
}

/* ================================================================
   SIDEBAR
   ================================================================ */

.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  width: var(--sidebar-width);
  background: var(--sidebar-bg);
  display: flex;
  flex-direction: column;
  z-index: 100;
  overflow: hidden;
  transition:
    width var(--t-slow),
    transform var(--t-slow);
}

.sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 18px;
  height: var(--header-h);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  flex-shrink: 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-icon {
  width: 34px;
  height: 34px;
  background: var(--primary);
  border-radius: var(--r);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.logo-icon svg {
  width: 18px;
  height: 18px;
  color: #fff;
}

.logo h2 {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.3px;
  white-space: nowrap;
}

.sidebar-toggle {
  background: none;
  border: none;
  width: 30px;
  height: 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 5px;
  border-radius: var(--r-sm);
  color: var(--sidebar-text);
  transition: background var(--t);
}
.sidebar-toggle:hover {
  background: var(--sidebar-hover);
}
.sidebar-toggle span {
  display: block;
  width: 16px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: all var(--t-slow);
}

/* User info */
.user-info {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 14px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  flex-shrink: 0;
}

.user-avatar {
  width: 36px;
  height: 36px;
  border-radius: var(--r-full);
  background: linear-gradient(135deg, #4f46e5, #7c3aed);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
  letter-spacing: 0.5px;
}

.user-details {
  min-width: 0;
}
.user-name {
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.user-email {
  font-size: 11px;
  color: var(--sidebar-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Nav */
.sidebar-nav {
  flex: 1;
  padding: 10px 0;
  overflow-y: auto;
  overflow-x: hidden;
}
.sidebar-nav::-webkit-scrollbar {
  width: 3px;
}
.sidebar-nav::-webkit-scrollbar-track {
  background: transparent;
}
.sidebar-nav::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 2px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 9px 18px;
  color: var(--sidebar-text);
  font-size: 13.5px;
  font-weight: 500;
  border-left: 3px solid transparent;
  transition: all var(--t);
  position: relative;
  white-space: nowrap;
  text-decoration: none;
}
.nav-item:hover {
  background: var(--sidebar-hover);
  color: #fff;
}
.nav-item.active {
  background: var(--sidebar-active-bg);
  color: #fff;
  border-left-color: var(--sidebar-active-border);
}

.nav-icon {
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  opacity: 0.75;
}
.nav-item:hover .nav-icon,
.nav-item.active .nav-icon {
  opacity: 1;
}
.nav-icon svg {
  width: 18px;
  height: 18px;
}
.nav-text {
  flex: 1;
}

.nav-arrow {
  display: flex;
  align-items: center;
  opacity: 0.45;
  margin-left: auto;
  transition: transform var(--t);
}
.nav-item-container.expanded .nav-arrow {
  transform: rotate(90deg);
}

.nav-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.06);
  margin: 6px 18px;
}

/* Submenu */
.nav-item-container {
  position: relative;
}
.nav-submenu {
  display: none;
  padding: 2px 0;
}
.nav-item-container.expanded .nav-submenu {
  display: block;
}

.submenu-item {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 7px 18px 7px 51px;
  color: var(--sidebar-text);
  font-size: 12.5px;
  font-weight: 400;
  transition: all var(--t);
  text-decoration: none;
  border-left: 3px solid transparent;
  position: relative;
}
.submenu-item::before {
  content: "";
  position: absolute;
  left: 38px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.4;
}
.submenu-item:hover {
  color: #fff;
  background: var(--sidebar-hover);
  border-left-color: transparent;
}
.submenu-item.active {
  color: #fff;
}

.nav-logout {
  color: #f87171 !important;
}
.nav-logout:hover {
  background: rgba(248, 113, 113, 0.1) !important;
  color: #fca5a5 !important;
}

.sidebar-footer {
  padding: 14px 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--sidebar-text);
  font-size: 11px;
  text-align: center;
  flex-shrink: 0;
}

/* ================================================================
   APP HEADER (top bar)
   ================================================================ */

.app-header {
  position: fixed;
  top: 0;
  left: var(--sidebar-width);
  right: 0;
  height: var(--header-h);
  background: #0f172a;
  border-bottom: 1px solid rgba(99,102,241,.25);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  z-index: 200;
  overflow: visible;
  transition: left var(--t-slow);
  box-shadow: 0 1px 8px rgba(0,0,0,.35);
}

.header-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 16px;
  color: var(--text-primary);
}
.header-logo svg {
  width: 22px;
  height: 22px;
  color: var(--primary);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}
.header-actions:first-child {
  padding-right: 16px;
  border-right: 1px solid rgba(255,255,255,.08);
  margin-right: 6px;
}

.header-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 30px;
  padding: 0 12px;
  background: rgba(255,255,255,.08);
  border-radius: var(--r-full);
  font-size: 12px;
  font-weight: 600;
  color: rgba(255,255,255,.75);
  white-space: nowrap;
}
.header-badge svg {
  width: 13px;
  height: 13px;
  flex-shrink: 0;
}
.header-badge .badge-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  flex-shrink: 0;
  background: rgba(255,255,255,.12);
}
.header-badge .badge-icon svg { width: 12px; height: 12px; }
.header-badge.truck    .badge-icon { background: rgba(99,102,241,.45); }
.header-badge.expiring .badge-icon { background: rgba(251,191,36,.35); }
.header-badge.expired  .badge-icon { background: rgba(239,68,68,.4); }
.header-badge.expiring {
  background: rgba(251,191,36,.15);
  color: #fcd34d;
}
.header-badge.expired {
  background: rgba(239,68,68,.18);
  color: #fca5a5;
}
.header-badge.truck {
  background: rgba(99,102,241,.2);
  color: #a5b4fc;
}

.notification-bell {
  position: relative;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  color: rgba(255,255,255,.6);
  background: none;
  border: none;
  transition: all var(--t);
  cursor: pointer;
}
.notification-bell:hover {
  background: rgba(255,255,255,.08);
  color: #fff;
}
.notification-bell svg {
  width: 20px;
  height: 20px;
}
.notif-badge {
  position: absolute;
  top: 5px;
  right: 5px;
  width: 16px;
  height: 16px;
  background: var(--danger);
  color: #fff;
  border-radius: var(--r-full);
  font-size: 9px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #0f172a;
}

.header-company-select {
  height: 32px;
  padding: 0 10px;
  border: 1.5px solid rgba(255,255,255,.15);
  border-radius: var(--r);
  font-size: 13px;
  font-weight: 500;
  color: #f1f5f9;
  background: rgba(255,255,255,.07);
  max-width: 180px;
  cursor: pointer;
  transition: border-color var(--t);
}
.header-company-select:focus {
  outline: none;
  border-color: #6366f1;
}
.header-company-select option {
  background: #0f172a;
  color: #f1f5f9;
}

.header-user-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 32px;
  padding: 0 12px 0 5px;
  border: 1.5px solid rgba(255,255,255,.15);
  border-radius: var(--r-full);
  background: none;
  cursor: pointer;
  transition: all var(--t);
  font-size: 13px;
  color: rgba(255,255,255,.75);
  text-decoration: none;
}
.header-user-btn:hover {
  background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.25);
}
.header-user-btn .user-avatar {
  width: 28px;
  height: 28px;
  font-size: 10px;
}
.header-user-btn span {
  color: rgba(255,255,255,.75) !important;
}

/* Language + Currency switcher (header dark theme) */
.lang-sw, .currency-sw { position: relative; }
.lang-sw-btn, .currency-sw-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  height: 32px;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 8px;
  padding: 0 10px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
  color: rgba(255,255,255,.7);
  transition: background var(--t), border-color var(--t);
  white-space: nowrap;
  line-height: 1;
}
.lang-sw-btn:hover, .currency-sw-btn:hover {
  background: rgba(255,255,255,.12);
  border-color: rgba(255,255,255,.25);
}
.lang-sw-flag { font-size: 17px; line-height: 1; }
.lang-sw-drop, .currency-sw-drop {
  position: absolute;
  top: calc(100% + 7px);
  right: 0;
  background: #1e293b;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 10px;
  box-shadow: 0 8px 28px rgba(0,0,0,.35);
  min-width: 145px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-5px);
  transition: opacity var(--t), transform var(--t);
  z-index: 300;
}
.currency-sw-drop { min-width: 90px; }
.lang-sw-drop.open, .currency-sw-drop.open {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0);
}
.lang-sw-opt, .currency-sw-opt {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 14px;
  font-size: 13px;
  font-weight: 500;
  color: #e2e8f0;
  text-decoration: none;
  transition: background var(--t);
}
.lang-sw-opt:hover, .currency-sw-opt:hover { background: rgba(255,255,255,.07); }
.lang-sw-opt.cur, .currency-sw-opt.cur {
  font-weight: 700;
  color: #818cf8;
  background: rgba(99,102,241,.15);
}
.lang-sw-opt span:first-child { font-size: 19px; }
.lang-sw-drop-chevron, .currency-sw-chevron {
  width: 11px;
  height: 11px;
  opacity: .45;
  flex-shrink: 0;
}

/* Notification dropdown */
.notif-dropdown {
  display: none;
  position: fixed;
  top: 0;
  right: 0;
  width: 340px;
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  z-index: 9999;
  overflow: hidden;
}
.notif-dropdown.open {
  display: block;
}
.notif-dropdown-header {
  padding: 14px 16px;
  border-bottom: 1px solid var(--gray-100);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
}
.notif-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--gray-50);
  transition: background var(--t);
}
.notif-item:hover {
  background: var(--gray-50);
}
.notif-item:last-child {
  border-bottom: none;
}
.notif-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 5px;
}
.notif-dot.warn {
  background: var(--warning);
}
.notif-dot.danger {
  background: var(--danger);
}
.notif-dot.info {
  background: var(--info);
}
.notif-text {
  font-size: 12.5px;
  color: var(--text-primary);
  line-height: 1.4;
}
.notif-sub {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
}

/* ================================================================
   PAGE STRUCTURE
   ================================================================ */

.page-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 28px;
  gap: 16px;
  flex-wrap: wrap;
}
.page-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 22px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.4px;
}
.subtitle,
.page-subtitle {
  font-size: 13.5px;
  color: var(--text-secondary);
  margin-top: 3px;
}
.page-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: var(--primary-light);
  border-radius: 8px;
  color: var(--primary);
  flex-shrink: 0;
}
.page-icon svg { width: 20px; height: 20px; }
.page-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-shrink: 0;
}
.content-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

/* ================================================================
   CARDS / SECTIONS
   ================================================================ */

.section,
.chart-card {
  background: var(--card-bg);
  border-radius: var(--card-radius);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
  padding: 24px;
}

/* ================================================================
   KPI CARDS
   ================================================================ */

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-bottom: 28px;
}

.kpi-card {
  background: var(--card-bg);
  border-radius: var(--card-radius);
  padding: 22px;
  border: 1px solid var(--gray-200);
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: flex-start;
  gap: 16px;
  transition:
    box-shadow var(--t),
    transform var(--t);
  position: relative;
  overflow: hidden;
}
.kpi-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}
.kpi-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 100%;
  border-radius: 2px 0 0 2px;
}
.kpi-primary::after {
  background: var(--primary);
}
.kpi-success::after {
  background: var(--success);
}
.kpi-warning::after {
  background: var(--warning);
}
.kpi-danger::after {
  background: var(--danger);
}
.kpi-info::after {
  background: var(--info);
}

.kpi-icon {
  width: 46px;
  height: 46px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.kpi-icon svg {
  width: 22px;
  height: 22px;
}
.kpi-primary .kpi-icon {
  background: var(--primary-light);
  color: var(--primary);
}
.kpi-success .kpi-icon {
  background: var(--success-light);
  color: var(--success);
}
.kpi-warning .kpi-icon {
  background: var(--warning-light);
  color: var(--warning);
}
.kpi-danger .kpi-icon {
  background: var(--danger-light);
  color: var(--danger);
}
.kpi-info .kpi-icon {
  background: var(--info-light);
  color: var(--info);
}

.kpi-content {
  flex: 1;
  min-width: 0;
}
.kpi-content h3 {
  font-size: 10.5px;
  font-weight: 700;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.7px;
  margin-bottom: 5px;
}
.kpi-content .value {
  font-size: 26px;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.5px;
  line-height: 1.1;
}
.kpi-trend {
  font-size: 12px;
  font-weight: 500;
  margin-top: 5px;
  display: flex;
  align-items: center;
  gap: 4px;
}
.trend-up {
  color: var(--success);
}
.trend-down {
  color: var(--danger);
}

/* ================================================================
   STAT CARDS
   ================================================================ */

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.stat-card {
  background: var(--card-bg);
  border-radius: var(--card-radius);
  padding: 18px 20px;
  border: 1px solid var(--gray-200);
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  gap: 14px;
}

.stat-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.stat-icon svg {
  width: 20px;
  height: 20px;
}

.stat-info {
  flex: 1;
  min-width: 0;
}
.stat-label {
  font-size: 11.5px;
  color: var(--text-secondary);
  font-weight: 500;
  margin-bottom: 2px;
}
.stat-number {
  font-size: 22px;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.4px;
}

.info-stat .stat-icon {
  background: var(--info-light);
  color: var(--info);
}
.success-stat .stat-icon {
  background: var(--success-light);
  color: var(--success);
}
.warning-stat .stat-icon {
  background: var(--warning-light);
  color: var(--warning);
}
.error-stat .stat-icon {
  background: var(--danger-light);
  color: var(--danger);
}
.new-stat .stat-icon {
  background: var(--primary-light);
  color: var(--primary);
}

/* ================================================================
   TABLES
   ================================================================ */

.table-responsive {
  overflow-x: auto;
}

.table-wrapper {
  background: var(--card-bg);
  border-radius: var(--card-radius);
  border: 1px solid var(--gray-200);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
}

.data-table thead th {
  background: var(--gray-50);
  padding: 11px 16px;
  text-align: left;
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--gray-200);
  white-space: nowrap;
}

.data-table tbody tr {
  border-bottom: 1px solid var(--gray-100);
  transition: background var(--t);
}
.data-table tbody tr:last-child {
  border-bottom: none;
}
.data-table tbody tr:hover {
  background: var(--gray-50);
}

.data-table td {
  padding: 12px 16px;
  color: var(--text-primary);
  vertical-align: middle;
}

.data-table .actions {
  display: flex;
  gap: 6px;
  align-items: center;
}

.inactive-row {
  opacity: 0.45;
}
.filtered-section {
  margin-bottom: 24px;
}
.filtered-header {
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--text-secondary);
  padding: 8px 0;
  margin-bottom: 8px;
  border-bottom: 1px solid var(--gray-200);
}
.data-tables-grid {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 32px;
  align-items: start;
  margin-top: 24px;
}

.form-select {
  display: block;
  padding: 7px 12px;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--r);
  background: var(--card-bg);
  color: var(--text-primary);
  font-size: 13px;
  font-family: var(--font);
  cursor: pointer;
  transition: border-color var(--t);
  appearance: auto;
}
.form-select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

/* ================================================================
   BUTTONS
   ================================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 18px;
  border-radius: var(--r);
  font-size: 13.5px;
  font-weight: 600;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: all var(--t);
  line-height: 1;
  white-space: nowrap;
  font-family: var(--font);
  text-decoration: none;
}
.btn svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}
.btn-primary:hover {
  background: var(--primary-hover);
  border-color: var(--primary-hover);
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
}

.btn-secondary {
  background: var(--card-bg);
  color: var(--text-primary);
  border-color: var(--gray-300);
}
.btn-secondary:hover {
  background: var(--gray-50);
  border-color: var(--gray-400);
}

.btn-success {
  background: var(--success);
  color: #fff;
  border-color: var(--success);
}
.btn-success:hover {
  background: #047857;
}

.btn-delete {
  background: var(--danger-light);
  color: var(--danger);
  border-color: transparent;
}
.btn-delete:hover {
  background: #fee2e2;
}

.btn-edit {
  background: var(--info-light);
  color: var(--info);
  border-color: transparent;
}
.btn-edit:hover {
  background: #e0f2fe;
}

.btn-info {
  background: var(--info-light);
  color: var(--info);
  border-color: transparent;
}
.btn-info:hover {
  background: #e0f2fe;
}

.btn-sm {
  padding: 6px 12px;
  font-size: 12px;
}
.btn-block {
  width: 100%;
  justify-content: center;
}

.btn-logout {
  background: var(--danger-light);
  color: var(--danger);
  border-color: transparent;
}
.btn-logout:hover {
  background: #fee2e2;
}

.icon-btn {
  width: 34px;
  height: 34px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--r-sm);
  background: none;
  border: 1.5px solid var(--gray-200);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--t);
}
.icon-btn:hover {
  background: var(--gray-100);
  color: var(--text-primary);
  border-color: var(--gray-300);
}
.icon-btn svg {
  width: 15px;
  height: 15px;
}

/* ================================================================
   FORMS
   ================================================================ */

.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 6px;
  letter-spacing: 0.2px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 9px 13px;
  border: 1.5px solid var(--gray-300);
  border-radius: var(--r);
  font-size: 14px;
  color: var(--text-primary);
  background: #fff;
  transition:
    border-color var(--t),
    box-shadow var(--t);
  line-height: 1.5;
}

.form-group input[type="checkbox"],
.form-group input[type="radio"] {
  width: auto;
  padding: 0;
  border: none;
  box-shadow: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.form-group select:not([multiple]):not([size]),
.form-select,
.header-company-select,
.currency-selector select,
.currency-selector-sidebar select {
  -webkit-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 20 20' fill='none'%3E%3Cpath d='M5 7.5L10 12.5L15 7.5' stroke='%2364748b' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 14px 14px;
  padding-right: 40px;
}

.form-group textarea {
  resize: vertical;
  min-height: 90px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.form-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  padding-top: 8px;
}

/* ================================================================
   BADGES
   ================================================================ */

.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: var(--r-full);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2px;
  white-space: nowrap;
}

.badge-primary {
  background: var(--primary-light);
  color: var(--primary);
}
.badge-info {
  background: var(--info-light);
  color: var(--info);
}
.badge-success {
  background: var(--success-light);
  color: var(--success);
}
.badge-warning {
  background: var(--warning-light);
  color: var(--warning);
}
.badge-danger {
  background: var(--danger-light);
  color: var(--danger);
}
.badge-admin {
  background: #f5f3ff;
  color: #6d28d9;
}
.badge-secondary {
  background: var(--gray-100);
  color: var(--gray-600);
}

.badge-combustibil {
  background: #fff7ed;
  color: #c2410c;
}
.badge-taxe {
  background: #fefce8;
  color: #a16207;
}
.badge-reparatii {
  background: #fef2f2;
  color: #b91c1c;
}
.badge-asigurare {
  background: #eff6ff;
  color: #1d4ed8;
}
.badge-rovinieta {
  background: #f0fdf4;
  color: #15803d;
}
.badge-anvelope {
  background: #faf5ff;
  color: #7e22ce;
}
.badge-intretinere {
  background: #f0f9ff;
  color: #0369a1;
}
.badge-piese {
  background: #fff1f2;
  color: #be123c;
}
.badge-alte {
  background: var(--gray-100);
  color: var(--gray-600);
}

/* ================================================================
   ALERTS
   ================================================================ */

.alert {
  padding: 13px 16px;
  border-radius: var(--r);
  font-size: 13.5px;
  font-weight: 500;
  border-left: 4px solid;
  margin-bottom: 20px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.alert-success {
  background: var(--success-light);
  color: #065f46;
  border-left-color: var(--success);
}
.alert-error {
  background: var(--danger-light);
  color: #991b1b;
  border-left-color: var(--danger);
}
.alert-warning {
  background: var(--warning-light);
  color: #78350f;
  border-left-color: var(--warning);
}
.alert-info {
  background: var(--info-light);
  color: #0c4a6e;
  border-left-color: var(--info);
}

/* ================================================================
   MODALS
   ================================================================ */

.modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 24px;
  backdrop-filter: blur(3px);
}
.modal.active {
  display: flex;
}

.modal-content {
  background: #fff;
  border-radius: var(--r-xl);
  padding: 32px;
  width: 100%;
  max-width: 560px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.3);
  position: relative;
  animation: modalIn var(--t-slow) both;
}
@keyframes modalIn {
  from {
    opacity: 0;
    transform: scale(0.95) translateY(8px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.modal-content h2 {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.3px;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--gray-200);
}

.close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--r-sm);
  background: none;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  font-size: 20px;
  transition: all var(--t);
}
.close:hover {
  background: var(--gray-100);
  color: var(--text-primary);
}

/* ================================================================
   FILTER FORM
   ================================================================ */

.filter-form {
  background: var(--card-bg);
  border: 1px solid var(--gray-200);
  border-radius: var(--card-radius);
  padding: 18px 22px;
  margin-bottom: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: flex-end;
  box-shadow: var(--shadow-sm);
}
.filter-form .form-group {
  margin-bottom: 0;
  min-width: 150px;
  flex: 1;
}

/* ================================================================
   CHARTS
   ================================================================ */

.charts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
  gap: 24px;
  margin-bottom: 28px;
}

.chart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}
.chart-header h3 {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
}
.chart-container {
  position: relative;
  min-height: 260px;
}
.chart-full {
  grid-column: 1 / -1;
}

.chart-period {
  display: flex;
  gap: 4px;
}
.chart-period button {
  padding: 4px 10px;
  border-radius: var(--r-sm);
  font-size: 11.5px;
  font-weight: 600;
  border: 1.5px solid var(--gray-200);
  background: none;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--t);
}
.chart-period button.active,
.chart-period button:hover {
  background: var(--primary-light);
  color: var(--primary);
  border-color: transparent;
}

/* ================================================================
   PROGRESS BARS
   ================================================================ */

.progress-bar {
  background: var(--gray-100);
  border-radius: var(--r-full);
  height: 8px;
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), #818cf8);
  border-radius: var(--r-full);
  transition: width 0.5s ease;
}
.progress-text {
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 4px;
  font-weight: 500;
}

/* ================================================================
   UPLOAD / DROP ZONE
   ================================================================ */

.drop-zone {
  border: 2px dashed var(--gray-300);
  border-radius: var(--card-radius);
  padding: 40px 24px;
  text-align: center;
  transition: all var(--t);
  cursor: pointer;
  background: var(--gray-50);
}
.drop-zone:hover,
.drop-zone.drag-over {
  border-color: var(--primary);
  background: var(--primary-light);
}
.drop-zone-content {
  color: var(--text-secondary);
  font-size: 14px;
}
.upload-section {
  margin-bottom: 24px;
}
.upload-progress {
  margin-top: 16px;
}
.file-info,
.file-details {
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: 8px;
}

/* ================================================================
   IMPORT / PREVIEW
   ================================================================ */

.preview-section,
.import-results {
  background: var(--card-bg);
  border: 1px solid var(--gray-200);
  border-radius: var(--card-radius);
  padding: 24px;
  margin-bottom: 24px;
}
.preview-header {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 16px;
}
.results-header {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 16px;
}
.preview-actions,
.result-actions {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}

.results-summary {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.result-stat,
.result-details {
  padding: 9px 14px;
  border-radius: var(--r);
  font-size: 13px;
  font-weight: 600;
}

.missing-columns {
  background: var(--danger-light);
  color: var(--danger);
  padding: 11px 14px;
  border-radius: var(--r);
  font-size: 13px;
  margin-bottom: 16px;
}
.column-mapping-info {
  background: var(--info-light);
  color: var(--info);
  padding: 11px 14px;
  border-radius: var(--r);
  font-size: 13px;
  margin-bottom: 16px;
}

.info-text {
  font-size: 12.5px;
  color: var(--text-secondary);
  margin-top: 4px;
}
.success-text {
  color: var(--success);
}
.warning-text {
  color: var(--warning);
}
.error-details {
  font-size: 12px;
  color: var(--danger);
  margin-top: 4px;
}

/* Loading shimmer */
.loading-progress-bar {
  width: 100%;
  height: 4px;
  background: var(--gray-200);
  border-radius: var(--r-full);
  overflow: hidden;
}
.loading-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), #818cf8, var(--primary));
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--r-full);
}
@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

/* ================================================================
   UTILITIES
   ================================================================ */

.highlight {
  background: #fefce8;
  color: #854d0e;
  padding: 1px 6px;
  border-radius: 4px;
  font-weight: 600;
}
.text-center {
  text-align: center;
}

/* ================================================================
   TOP BAR (alternative header)
   ================================================================ */

.top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
  gap: 16px;
}
.top-bar-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.4px;
}
.top-bar-actions {
  display: flex;
  gap: 10px;
}
.top-bar-user {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13.5px;
  color: var(--text-secondary);
}

/* ================================================================
   CURRENCY SELECTOR
   ================================================================ */

.currency-selector,
.currency-selector-sidebar {
  display: flex;
  align-items: center;
  gap: 6px;
}
.currency-selector select,
.currency-selector-sidebar select {
  border: 1.5px solid var(--gray-300);
  border-radius: var(--r);
  padding: 6px 10px;
  font-size: 13px;
  background: #fff;
  color: var(--text-primary);
  cursor: pointer;
  transition: border-color var(--t);
}
.currency-selector select:focus,
.currency-selector-sidebar select:focus {
  outline: none;
  border-color: var(--primary);
}

/* ================================================================
   STANDARD ADVANCED DROPDOWN
   ================================================================ */

.select2-container {
  width: 100% !important;
}

.select2-container--default .select2-selection--single {
  height: 40px !important;
  border: 1.5px solid var(--gray-300) !important;
  border-radius: var(--r) !important;
  background: #fff !important;
  padding: 0 !important;
  transition:
    border-color var(--t),
    box-shadow var(--t) !important;
}

.select2-container--default
  .select2-selection--single
  .select2-selection__rendered {
  line-height: 38px !important;
  padding: 0 40px 0 13px !important;
  font-size: 14px !important;
  color: var(--text-primary) !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

.select2-container--default
  .select2-selection--single
  .select2-selection__arrow {
  height: 38px !important;
  right: 10px !important;
  width: 18px !important;
}

.select2-container--default
  .select2-selection--single
  .select2-selection__arrow
  b {
  border-color: var(--gray-400) transparent transparent transparent !important;
}

.select2-container--default.select2-container--focus .select2-selection--single,
.select2-container--default.select2-container--open .select2-selection--single {
  border-color: var(--primary) !important;
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1) !important;
  outline: none !important;
}

.select2-container--default .select2-results__option--highlighted,
.select2-container--default
  .select2-results__option--highlighted.select2-results__option--selectable {
  background-color: var(--primary) !important;
}

.select2-dropdown {
  border: 1px solid var(--gray-200) !important;
  border-radius: var(--r) !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08) !important;
  font-size: 14px !important;
  overflow: hidden;
}

.select2-container--default .select2-search--dropdown {
  padding: 8px !important;
}

.select2-container--default .select2-search--dropdown .select2-search__field {
  border: 1px solid var(--gray-200) !important;
  border-radius: var(--r) !important;
  padding: 7px 10px !important;
  font-size: 13px !important;
}

.select2-container--default
  .select2-search--dropdown
  .select2-search__field:focus {
  outline: none !important;
  border-color: var(--primary) !important;
}

.select2-results__option {
  font-size: 13px !important;
}

/* ================================================================
   HAS SIDEBAR LAYOUT
   — body.has-sidebar: standard page layout with fixed nav sidebar.
     The actual offset is handled by .main-content margin-left.
   ================================================================ */

.has-sidebar {
  /* No grid needed — sidebar is fixed; main-content handles the offset */
}

/* 2-column content layout (main area + right panel, separate from nav sidebar) */
.content-with-aside {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 28px;
  align-items: start;
}

/* ================================================================
   LOGIN PAGE
   ================================================================ */

.login-page {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #0f172a 100%);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.login-page::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      ellipse at 20% 50%,
      rgba(79, 70, 229, 0.15) 0%,
      transparent 60%
    ),
    radial-gradient(
      ellipse at 80% 20%,
      rgba(99, 102, 241, 0.1) 0%,
      transparent 50%
    );
  pointer-events: none;
}

.login-container {
  width: 100%;
  max-width: 400px;
  padding: 24px;
  position: relative;
  z-index: 1;
}

.login-box {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 40px;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4);
}

.login-header {
  text-align: center;
  margin-bottom: 32px;
}
.login-header .login-logo {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, var(--primary), #7c3aed);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}
.login-header .login-logo svg {
  width: 28px;
  height: 28px;
  color: #fff;
}
.login-header h1 {
  font-size: 22px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.5px;
  margin-bottom: 5px;
}
.login-header p {
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.45);
}

.login-form .form-group {
  margin-bottom: 15px;
}
.login-form .form-group label {
  color: rgba(255, 255, 255, 0.6);
}
.login-form .form-group input {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.12);
  color: #fff;
}
.login-form .form-group input::placeholder {
  color: rgba(255, 255, 255, 0.28);
}
.login-form .form-group input:focus {
  border-color: var(--primary);
  background: rgba(255, 255, 255, 0.09);
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.25);
}
.login-form .btn-primary {
  margin-top: 8px;
  padding: 12px;
  font-size: 15px;
  background: linear-gradient(135deg, var(--primary), #6366f1);
  border: none;
}
.login-form .btn-primary:hover {
  background: linear-gradient(135deg, var(--primary-hover), var(--primary));
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(79, 70, 229, 0.35);
}
.login-footer {
  text-align: center;
  margin-top: 20px;
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.28);
}

/* ================================================================
   FOOTER
   ================================================================ */

.main-footer {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--gray-200);
  font-size: 12.5px;
  color: var(--text-muted);
  text-align: center;
}

/* ================================================================
   MOBILE MENU BUTTON
   ================================================================ */

.mobile-menu-btn {
  display: none;
  position: fixed;
  top: 14px;
  left: 14px;
  z-index: 200;
  width: 42px;
  height: 42px;
  background: var(--sidebar-bg);
  border: none;
  border-radius: var(--r);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  box-shadow: var(--shadow-md);
}
.mobile-menu-btn span {
  display: block;
  width: 18px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
}

/* ================================================================
   RESPONSIVE
   ================================================================ */

@media (max-width: 1024px) {
  :root {
    --sidebar-width: 250px;
  }
  .kpi-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .main-content {
    margin-left: 0;
    padding: calc(var(--header-h) + 20px) 16px 20px;
  }
  .sidebar {
    transform: translateX(-100%);
    box-shadow: none;
  }
  .sidebar.mobile-open {
    transform: translateX(0);
    box-shadow: 0 0 0 100vw rgba(0, 0, 0, 0.5);
  }
  .mobile-menu-btn {
    display: flex;
  }
  .app-header {
    left: 0;
    padding: 0 16px 0 70px;
  }
  .kpi-grid {
    grid-template-columns: 1fr 1fr;
  }
  .stats-grid {
    grid-template-columns: 1fr 1fr;
  }
  .charts-grid {
    grid-template-columns: 1fr;
  }
  .data-tables-grid {
    grid-template-columns: 1fr;
  }
  .form-row {
    grid-template-columns: 1fr;
  }
  .content-with-aside {
    grid-template-columns: 1fr;
  }
  .page-header {
    flex-direction: column;
    gap: 12px;
  }
  .header-badge {
    display: none;
  }
}

@media (max-width: 480px) {
  .main-content {
    padding: calc(var(--header-h) + 14px) 12px 14px;
  }
  .kpi-grid {
    grid-template-columns: 1fr;
  }
  .stats-grid {
    grid-template-columns: 1fr;
  }
  .modal-content {
    padding: 24px 18px;
  }
  .login-box {
    padding: 28px 22px;
  }
}

/* ================================================================
   SIDEBAR COLLAPSED (desktop toggle)
   ================================================================ */
.sidebar.collapsed { width: 64px; }

.sidebar.collapsed .logo h2,
.sidebar.collapsed .user-details,
.sidebar.collapsed .sidebar-footer {
  opacity: 0; visibility: hidden; width: 0; overflow: hidden; white-space: nowrap;
}

.sidebar.collapsed .nav-text { display: none !important; }

.sidebar.collapsed .nav-item {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  padding: 12px 0 !important;
  gap: 0 !important;
  border-left: none !important;
  width: 100% !important;
}

.sidebar.collapsed .nav-icon { opacity: 1; margin: 0; flex-shrink: 0; }
.sidebar.collapsed .nav-icon svg { display: block; }

/* Badge — overlay pe icon când sidebar e collapsed */
.sidebar.collapsed .nav-item > span:not(.nav-icon):not(.nav-text) {
  position: absolute;
  top: 5px;
  left: calc(50% + 4px);
  min-width: 14px;
  height: 14px;
  padding: 0 3px;
  font-size: 8px !important;
  line-height: 14px;
  text-align: center;
  margin-left: 0 !important;
  border-radius: 7px !important;
  box-shadow: 0 1px 4px rgba(0, 0, 0, .35);
}

.sidebar.collapsed .sidebar-header { justify-content: center; }
.sidebar.collapsed .sidebar-header .logo { display: none; }
.sidebar.collapsed .sidebar-toggle { display: flex !important; margin: 0 auto; }

/* Nav item needs relative for badge positioning */
.nav-item { position: relative; }

/* Submenu hidden when collapsed */
.sidebar.collapsed .nav-submenu { display: none !important; }
.sidebar.collapsed .nav-arrow { display: none !important; }

/* Main content shifts when sidebar collapsed */
.main-content.expanded { margin-left: 64px; }

/* App-header shifts when sidebar collapsed */
.sidebar.collapsed ~ .app-header,
.app-header.sidebar-collapsed { left: 64px; }

/* consum_tabele_template.php classes (replaced hardcoded inline styles) */
.consum-ok-cell   { background: #f0fdf4; }
.consum-warn-cell { background: #fff3cd; }
.consum-ok-text   { color: #15803d; }
.consum-warn-text { color: #b45309; }
.tfoot-diesel-row { background: #e3f2fd; font-weight: bold; }
.tfoot-adblue-row { background: #e8f5e9; font-weight: bold; }
.month-header-title {
  background: #e3f2fd; padding: 10px 15px; margin: 15px 0 10px 0;
  border-radius: 5px; color: #1976d2;
  display: flex; justify-content: space-between; align-items: center;
}
.stat-mini-card  { background: #fff; padding: 15px; border-radius: 6px; box-shadow: 0 2px 4px rgba(0,0,0,.1); }
.stat-mini-label { color: #666; font-size: 0.85em; margin-bottom: 5px; }
.stat-mini-sub   { color: #999; font-size: 0.8em; margin-top: 3px; }

