/* ============================================
   Mission Control — Enterprise Theme
   ============================================
   Loaded dynamically by nav.js AFTER page CSS,
   so these declarations win via cascade order.
   ============================================ */

/* ── Design Tokens ── */
:root {
  --bg: #f0f2f5;
  --surface: #ffffff;
  --border: #e0e0e0;
  --sidebar-bg: #1c2434;
  --sidebar-text: #a3aab8;
  --sidebar-text-active: #ffffff;
  --sidebar-active-bg: #2d3a4f;
  --sidebar-width: 220px;
  --header-height: 52px;
  --primary: #2563eb;
  --primary-hover: #1d4ed8;
  --text-primary: #111827;
  --text-secondary: #4b5563;
  --text-muted: #9ca3af;
  --success: #059669;
  --warning: #b45309;
  --danger: #dc2626;
  --info: #2563eb;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.06);
  --shadow-md: 0 2px 8px rgba(0,0,0,0.08);
  --radius: 6px;

  /* Legacy aliases for content pages */
  --bg-root:    #f0f2f5;
  --bg-surface: #ffffff;
  --bg-elevated:#f8f9fa;
  --bg-hover:   #f5f7ff;
  --bg-active:  #e8ecf4;

  --border-light: #e8e8e8;
  --border-hover: #c8cdd6;

  --text-primary:   #111827;
  --text-secondary: #4b5563;
  --text-tertiary:  #6b7280;
  --text-muted:     #9ca3af;

  --accent:       #2563eb;
  --accent-hover: #1d4ed8;
  --accent-muted: rgba(37,99,235,0.10);
  --accent-glow:  rgba(37,99,235,0.18);

  /* aliases */
  --elevated: #f8f9fa;
  --hover:    #f5f7ff;
  --text:     #111827;
  --text2:    #4b5563;
  --text3:    #6b7280;

  /* status colours */
  --green:        #059669;
  --green-muted:  rgba(5,150,105,0.10);
  --yellow:       #b45309;
  --yellow-muted: rgba(180,83,9,0.10);
  --red:          #dc2626;
  --red-muted:    rgba(220,38,38,0.10);
  --orange:       #c2410c;
  --orange-muted: rgba(194,65,12,0.10);
  --purple:       #4c1d95;
  --purple-muted: rgba(76,29,149,0.10);
  --cyan:         #0e7490;
  --cyan-muted:   rgba(14,116,144,0.10);

  /* layout */
  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 8px;
  --radius-xl: 10px;

  /* shadows */
  --shadow-lg: 0 4px 12px rgba(0,0,0,0.10);

  --ease:     cubic-bezier(0.4,0,0.2,1);
  --duration: 150ms;

  /* Company color defaults */
  --company-color: #2563eb;
  --company-color-muted: rgba(37,99,235,0.10);
  --company-color-glow: rgba(37,99,235,0.18);
}

/* Per-company classes — muted professional variants */
.company-solartek   { --company-color: #1e6091; --company-color-muted: rgba(30,96,145,0.10);  --company-color-glow: rgba(30,96,145,0.18);  }
.company-upnotched  { --company-color: #7c5c1e; --company-color-muted: rgba(124,92,30,0.10);  --company-color-glow: rgba(124,92,30,0.18);  }
.company-primereach { --company-color: #4c1d95; --company-color-muted: rgba(76,29,149,0.10);  --company-color-glow: rgba(76,29,149,0.18);  }
.company-all        { --company-color: #2563eb; --company-color-muted: rgba(37,99,235,0.10);   --company-color-glow: rgba(37,99,235,0.18);   }

/* ── Body ── */
body {
  background: #f0f2f5 !important;
  color: #111827 !important;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif !important;
}

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #d1d5db; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #9ca3af; }

/* ─────────────────────────────────────
   COMPANY BANNER
   ───────────────────────────────────── */
.company-banner {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 24px;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 600;
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(0,0,0,0.08);
}
.company-banner-icon  { font-size: 13px; }
.company-banner-name  { font-weight: 700; }
.company-banner-sep   { opacity: 0.4; font-weight: 400; }
.company-banner-page  { font-weight: 500; opacity: 0.75; }

/* ── Company Badges ── */
.co-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 7px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}
.co-badge-solartek   { background: rgba(30,96,145,0.10);  color: #1e6091; }
.co-badge-upnotched  { background: rgba(124,92,30,0.12);   color: #7c5c1e; }
.co-badge-primereach { background: rgba(76,29,149,0.10);  color: #4c1d95; }

/* ── Company Summary Cards ── */
.co-summary-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 16px 0;
}
@media (max-width: 900px) {
  .co-summary-grid { grid-template-columns: 1fr; }
}
.co-summary-card {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.15s;
}
.co-summary-card:hover {
  box-shadow: var(--shadow-md);
}
.co-summary-header {
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid #f3f4f6;
}
.co-summary-icon {
  font-size: 18px;
  width: 32px;
  height: 32px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--company-color-muted);
}
.co-summary-title {
  font-size: 13px;
  font-weight: 700;
  color: #111827;
  line-height: 1.2;
}
.co-summary-sub {
  font-size: 11px;
  color: #6b7280;
}
.co-summary-body {
  padding: 14px 16px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.co-stat-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: #6b7280;
  margin-bottom: 2px;
}
.co-stat-value {
  font-size: 18px;
  font-weight: 700;
  color: #111827;
}
.co-stat-value.accent { color: var(--company-color); }
.co-summary-footer {
  padding: 10px 16px;
  border-top: 1px solid #f3f4f6;
}
.co-summary-link {
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: gap 0.15s;
}
.co-summary-link:hover { gap: 8px; }

/* ── HR Company Filter Tabs ── */
.hr-co-tabs {
  display: flex;
  gap: 4px;
  padding: 10px 24px;
  background: #f9fafb;
  border-bottom: 1px solid #e0e0e0;
  flex-wrap: wrap;
}
.hr-co-tab {
  padding: 5px 14px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  background: #f0f2f5;
  color: #4b5563;
  font-family: 'Inter', sans-serif;
  transition: all 0.12s;
}
.hr-co-tab:hover { background: #e5e7eb; color: #111827; }
.hr-co-tab.active-all        { background: rgba(37,99,235,0.10);   color: #1d4ed8; border-color: #2563eb; }
.hr-co-tab.active-solartek   { background: rgba(30,96,145,0.10);   color: #1e6091; border-color: #1e6091; }
.hr-co-tab.active-upnotched  { background: rgba(124,92,30,0.10);    color: #7c5c1e; border-color: #7c5c1e; }
.hr-co-tab.active-primereach { background: rgba(76,29,149,0.10);   color: #4c1d95; border-color: #4c1d95; }

/* ─────────────────────────────────────
   DARK SIDEBAR  (#zoho-sidebar)
   ───────────────────────────────────── */
#zoho-sidebar {
  position: fixed;
  left: 0; top: 0; bottom: 0;
  width: 220px;
  background: #1c2434;
  border-right: none;
  display: flex;
  flex-direction: column;
  z-index: 99999;
  overflow-y: auto;
  overflow-x: hidden;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* Logo strip */
.zsb-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 14px 14px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  text-decoration: none;
}
.zsb-logo-icon {
  width: 30px; height: 30px;
  background: #2563eb;
  border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  font-size: 14px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.5px;
}
.zsb-logo-text { display: flex; flex-direction: column; }
.zsb-logo-title {
  font-size: 13px;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.2;
  letter-spacing: -0.2px;
}
.zsb-logo-sub {
  font-size: 10px;
  color: #64748b;
  line-height: 1.2;
}

/* ── Company Switcher ── */
.company-switcher {
  padding: 10px 10px 6px;
  position: relative;
}
.cs-trigger {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.06);
  cursor: pointer;
  transition: all 0.15s;
  user-select: none;
}
.cs-trigger:hover {
  background: rgba(255,255,255,0.10);
  border-color: rgba(255,255,255,0.18);
}
.cs-icon  { font-size: 14px; flex-shrink: 0; display: none; }
.cs-name  { flex: 1; font-size: 12px; font-weight: 600; color: #e2e8f0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cs-chevron { font-size: 10px; color: #64748b; transition: transform 0.2s; flex-shrink: 0; }
.cs-badge { font-size: 10px; font-weight: 700; padding: 1px 6px; border-radius: 3px; flex-shrink: 0; }

.cs-dropdown {
  position: absolute;
  top: calc(100% - 2px);
  left: 6px;
  right: 6px;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
  z-index: 200000;
  overflow: hidden;
  animation: cs-fade-in 0.10s ease;
}
@keyframes cs-fade-in {
  from { opacity: 0; transform: translateY(-3px); }
  to   { opacity: 1; transform: translateY(0); }
}
.cs-item {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 12px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
  color: #111827;
  transition: background 0.1s;
}
.cs-item:hover { background: #f5f7ff; }
.cs-item.active { font-weight: 700; }
.cs-item-icon  { font-size: 14px; width: 18px; text-align: center; display: none; }
.cs-item-label { flex: 1; }
.cs-check      { font-size: 12px; color: #2563eb; font-weight: 700; }
.cs-divider    { height: 1px; background: #f3f4f6; margin: 3px 0; }

/* ── Nav body ── */
.zsb-nav {
  flex: 1;
  padding: 8px 0;
}

/* Section label */
.zsb-section {
  padding: 16px 14px 4px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: #4b5563;
}

/* Nav item */
.zsb-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  text-decoration: none;
  color: #a3aab8;
  font-size: 13px;
  font-weight: 500;
  border-radius: 0;
  transition: background 0.10s, color 0.10s;
  cursor: pointer;
  position: relative;
  white-space: nowrap;
}
.zsb-item:hover {
  background: rgba(255,255,255,0.06);
  color: #e2e8f0;
}
.zsb-item.active {
  background: #2d3a4f;
  color: #ffffff;
  font-weight: 600;
}
.zsb-item.active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 4px; bottom: 4px;
  width: 3px;
  background: #2563eb;
  border-radius: 0 2px 2px 0;
}
.zsb-icon {
  font-size: 14px;
  width: 18px;
  text-align: center;
  flex-shrink: 0;
  opacity: 0.7;
  /* Hide emoji icons — nav uses text-only */
  display: none;
}
.zsb-item.active .zsb-icon { opacity: 1; }

/* Bottom user section */
.zsb-footer {
  border-top: 1px solid rgba(255,255,255,0.07);
  padding: 12px 14px;
}
.zsb-user-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}
.zsb-avatar {
  width: 30px; height: 30px;
  border-radius: 6px;
  background: #2563eb;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}
.zsb-user-info { flex: 1; min-width: 0; }
.zsb-user-name {
  font-size: 12px;
  font-weight: 600;
  color: #e2e8f0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.zsb-user-role {
  font-size: 11px;
  color: #64748b;
}
.zsb-logout {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  padding: 6px 12px;
  border-radius: 5px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.05);
  color: #a3aab8;
  font-size: 12px;
  font-weight: 500;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  transition: all 0.12s;
}
.zsb-logout:hover {
  background: rgba(220,38,38,0.15);
  border-color: rgba(220,38,38,0.30);
  color: #fca5a5;
}

/* Mobile hamburger */
.zsb-hamburger {
  display: none;
  position: fixed;
  top: 10px; left: 10px;
  z-index: 100000;
  width: 34px; height: 34px;
  border-radius: 6px;
  border: 1px solid #e0e0e0;
  background: #fff;
  cursor: pointer;
  align-items: center; justify-content: center;
  font-size: 16px;
  box-shadow: var(--shadow-sm);
}
.zsb-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  z-index: 99998;
}
.zsb-overlay.visible { display: block; }

/* ── Push content right ── */
body.zsb-ready > *:not(#zoho-sidebar):not(.zsb-hamburger):not(.zsb-overlay):not(script):not(style):not(link) {
  margin-left: 220px !important;
}
body.zsb-ready .app-layout {
  margin-left: 220px !important;
}

@media (max-width: 900px) {
  #zoho-sidebar {
    transform: translateX(-100%);
    transition: transform 0.20s ease;
  }
  #zoho-sidebar.open {
    transform: translateX(0);
    box-shadow: 4px 0 20px rgba(0,0,0,0.25);
  }
  .zsb-hamburger { display: flex; }

  body.zsb-ready > *:not(#zoho-sidebar):not(.zsb-hamburger):not(.zsb-overlay):not(script):not(style):not(link) {
    margin-left: 0 !important;
    padding-top: 52px !important;
  }
  body.zsb-ready .app-layout {
    margin-left: 0 !important;
    padding-top: 52px !important;
  }
}

/* ─────────────────────────────────────
   TOP BAR / HEADER
   ───────────────────────────────────── */
.top-bar, .topbar {
  background: #ffffff !important;
  border-bottom: 1px solid #e0e0e0 !important;
  box-shadow: none !important;
  color: #111827 !important;
}
.top-bar-left .logo-title { color: #111827 !important; }
.top-bar-left .logo-subtitle { color: #6b7280 !important; }
.topbar-logo { color: #111827 !important; }
.topbar-logo span { color: #4b5563 !important; }
.topbar-user { color: #4b5563 !important; }
.status-pills .status-pill { background: #f3f4f6 !important; color: #4b5563 !important; }
.status-pill.status-online { background: rgba(5,150,105,0.08) !important; color: #059669 !important; }
.status-dot { background: #059669 !important; }
.top-bar .btn-secondary, .top-bar .icon-btn, .top-bar button {
  background: #f3f4f6 !important;
  border: 1px solid #e0e0e0 !important;
  color: #4b5563 !important;
  border-radius: 5px !important;
}
.top-bar .user-avatar {
  background: #2563eb !important;
  color: #fff !important;
}
.top-bar .user-name { color: #111827 !important; }
.top-bar .user-role { color: #6b7280 !important; }

/* ─────────────────────────────────────
   CARDS
   ───────────────────────────────────── */
.card, .stat-card, .summary-card,
.widget, .widget-card,
[class*="card"]:not(.cal-avatar) {
  background: #ffffff !important;
  border: 1px solid #e0e0e0 !important;
  border-radius: 6px !important;
  box-shadow: var(--shadow-sm) !important;
  color: #111827 !important;
}
.widget-header {
  background: transparent !important;
  border-bottom: 1px solid #f3f4f6 !important;
  color: #111827 !important;
}
.widget-title { color: #111827 !important; }
.widget-subtitle, .metric-label { color: #6b7280 !important; }
.metric-value { color: #111827 !important; }

/* ─────────────────────────────────────
   TABLES
   ───────────────────────────────────── */
.table-wrap {
  background: #ffffff !important;
  border: 1px solid #e0e0e0 !important;
  border-radius: 6px !important;
  overflow: hidden !important;
}
.cal-table, table { background: #ffffff !important; }

thead tr { background: #f9fafb !important; }
thead th, .cal-table th {
  background: #f9fafb !important;
  color: #6b7280 !important;
  border-bottom: 1px solid #e0e0e0 !important;
  font-size: 11px !important;
  font-weight: 600 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
}
tbody td, .cal-table td {
  color: #111827 !important;
  border-bottom: 1px solid #f3f4f6 !important;
}
td.mono { color: #4b5563 !important; }
/* No zebra striping */
tbody tr:nth-child(even) { background: transparent !important; }
tbody tr:hover td, .cal-table tr:hover td { background: #f5f7ff !important; }

/* ─────────────────────────────────────
   STATUS BADGES
   ───────────────────────────────────── */
.badge {
  border-radius: 4px !important;
  font-size: 11px !important;
  font-weight: 600 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
  padding: 2px 7px !important;
}

/* Semantic status badges */
.badge-paid, .badge-active, .badge-approved,
[class*="badge"][class*="paid"], [class*="badge"][class*="active"], [class*="badge"][class*="approved"],
.status-paid, .status-active, .status-approved {
  background: #d1fae5 !important; color: #065f46 !important;
}
.badge-pending, .badge-open,
.status-pending, .status-open {
  background: #dbeafe !important; color: #1e40af !important;
}
.badge-overdue, .badge-expired, .badge-past-due,
.status-overdue, .status-expired {
  background: #fee2e2 !important; color: #991b1b !important;
}
.badge-draft,
.status-draft {
  background: #f3f4f6 !important; color: #374151 !important;
}

/* Legacy badge color classes */
.badge-blue   { background: #dbeafe !important; color: #1e40af !important; }
.badge-green  { background: #d1fae5 !important; color: #065f46 !important; }
.badge-red    { background: #fee2e2 !important; color: #991b1b !important; }
.badge-grey   { background: #f3f4f6 !important; color: #374151 !important; }
.badge-yellow { background: #fef3c7 !important; color: #92400e !important; }

.action-in  { background: #d1fae5 !important; color: #065f46 !important; }
.action-out { background: #fee2e2 !important; color: #991b1b !important; }
.branch-houston { background: #fee2e2 !important; color: #991b1b !important; }
.branch-dallas  { background: #dbeafe !important; color: #1e40af !important; }

/* ─────────────────────────────────────
   BUTTONS
   ───────────────────────────────────── */
.btn-refresh {
  background: #ffffff !important;
  border: 1px solid #e0e0e0 !important;
  color: #4b5563 !important;
  border-radius: 5px !important;
}
.btn-refresh:hover { background: #f3f4f6 !important; color: #111827 !important; }

.reset-pin-btn {
  background: #f3f4f6 !important;
  border: 1px solid #e0e0e0 !important;
  border-radius: 5px !important;
  color: #4b5563 !important;
  font-family: 'Inter', sans-serif !important;
}
.reset-pin-btn:hover {
  background: #eff6ff !important;
  border-color: #2563eb !important;
  color: #2563eb !important;
}

/* ─────────────────────────────────────
   COMPANY / HR TABS
   ───────────────────────────────────── */
.company-tabs {
  background: #f3f4f6 !important;
  border: 1px solid #e0e0e0 !important;
}
.company-tab { color: #4b5563 !important; background: transparent !important; }
.company-tab:hover { background: #e5e7eb !important; color: #111827 !important; }
.company-tab.active { background: #2563eb !important; color: #fff !important; }

.hr-tabs {
  background: #ffffff !important;
  border-bottom: 1px solid #e0e0e0 !important;
}
.hr-tab { color: #4b5563 !important; background: transparent !important; border-color: transparent !important; }
.hr-tab:hover:not(.active) { background: #f3f4f6 !important; }
.hr-tab.active { background: #2563eb !important; color: #fff !important; border-color: #2563eb !important; }

/* ─────────────────────────────────────
   HOLIDAY / BIRTHDAYS / ANNIVERSARIES
   ───────────────────────────────────── */
#holiday-tab .stat-card { background: #fff !important; border: 1px solid #e0e0e0 !important; }
#holiday-tab .stat-value { color: #111827 !important; }
#holiday-tab .stat-label { color: #4b5563 !important; }
#holiday-tab .section-title { color: #111827 !important; }

#holiday-tab .sub-tab {
  background: #f3f4f6 !important; color: #4b5563 !important;
  border: 1px solid #e0e0e0 !important;
  font-family: 'Inter', sans-serif !important;
}
#holiday-tab .sub-tab.active {
  background: #2563eb !important; color: #fff !important;
  border-color: #2563eb !important;
}
#holiday-tab .sub-tab:hover:not(.active) { background: #e5e7eb !important; }

.event-card  { background: #fff !important; border: 1px solid #e0e0e0 !important; }
.event-card:hover { border-color: #2563eb !important; }
.event-card.today { border-color: #b45309 !important; background: #fffbf0 !important; }
.event-name  { color: #111827 !important; }
.event-detail{ color: #4b5563 !important; }
.event-date .month { color: #2563eb !important; }
.event-date .day   { color: #111827 !important; }
.event-date .dow   { color: #6b7280 !important; }
.month-header { color: #4b5563 !important; border-bottom-color: #e0e0e0 !important; }
.missing-box  { background: #fffbeb !important; border-color: #b45309 !important; }

.days-away       { color: #111827 !important; }
.days-away.soon  { color: #b45309 !important; }
.days-away.today { color: #059669 !important; }
.days-away.far   { color: #6b7280 !important; }

/* ─────────────────────────────────────
   PERSON CARDS / ORGCHART / DETAIL PANEL
   ───────────────────────────────────── */
.person-card, .org-node, .org-card {
  background: #fff !important;
  border: 1px solid #e0e0e0 !important;
  color: #111827 !important;
}
.detail-panel, .modal {
  background: #fff !important;
  border: 1px solid #e0e0e0 !important;
  color: #111827 !important;
}
.detail-header, .modal-header {
  background: #f9fafb !important;
  border-bottom: 1px solid #e0e0e0 !important;
  color: #111827 !important;
}
.detail-overlay, .modal-overlay { background: rgba(0,0,0,0.35) !important; }
.modal-close, .detail-close {
  background: transparent !important;
  color: #6b7280 !important;
  border: none !important;
}

/* ─────────────────────────────────────
   CODE / PRE
   ───────────────────────────────────── */
code {
  background: #f3f4f6 !important;
  border: 1px solid #e0e0e0 !important;
  color: #b45309 !important;
}

/* ─────────────────────────────────────
   SUMMARY / STAT VALUES
   ───────────────────────────────────── */
.summary-label { color: #6b7280 !important; }
.summary-value { color: #111827 !important; }
.summary-value.accent { color: #2563eb !important; }
.summary-value.green  { color: #059669 !important; }
.summary-value.yellow { color: #b45309 !important; }
.summary-value.red    { color: #dc2626 !important; }

/* ─────────────────────────────────────
   SPINNER
   ───────────────────────────────────── */
.spinner {
  border: 2px solid #e0e0e0 !important;
  border-top-color: #2563eb !important;
}

/* ─────────────────────────────────────
   SECTION DIVIDER
   ───────────────────────────────────── */
.section-divider, hr { border-top-color: #e0e0e0 !important; }

/* ─────────────────────────────────────
   SECTION TITLES / PAGE TITLES
   ───────────────────────────────────── */
.section-title, .page-title { color: #111827 !important; }
.section-title[style*="color:#64748b"],
.section-title[style*="color: #64748b"] { color: #6b7280 !important; }

/* ─────────────────────────────────────
   CALENDAR PAGE
   ───────────────────────────────────── */
.calendar-container, .cal-wrapper, .calendar-header {
  background: #ffffff !important;
  border-color: #e0e0e0 !important;
  color: #111827 !important;
}
.calendar-day { background: #fff !important; color: #111827 !important; border-color: #e0e0e0 !important; }
.calendar-day:hover { background: #f5f7ff !important; }
.calendar-day.today { background: #eff6ff !important; border-color: #2563eb !important; }
.calendar-event { border-radius: 3px !important; }
.month-nav-btn, .view-btn {
  background: #f3f4f6 !important;
  border: 1px solid #e0e0e0 !important;
  color: #4b5563 !important;
}
.month-nav-btn:hover, .view-btn:hover { background: #e5e7eb !important; }
.view-btn.active { background: #2563eb !important; color: #fff !important; border-color: #2563eb !important; }

/* ─────────────────────────────────────
   PEOPLE PAGE
   ───────────────────────────────────── */
.people-grid, .people-page { background: #f0f2f5 !important; }
.person-cell .person-name { color: #111827 !important; }
.filter-bar, .search-bar {
  background: #fff !important;
  border-color: #e0e0e0 !important;
}
input[type="search"], input[type="text"], select {
  background: #fff !important;
  border: 1px solid #e0e0e0 !important;
  color: #111827 !important;
  border-radius: 5px !important;
}
input[type="search"]:focus, input[type="text"]:focus {
  border-color: #2563eb !important;
  outline: none !important;
  box-shadow: 0 0 0 3px rgba(37,99,235,0.10) !important;
}

/* ─────────────────────────────────────
   FLEET PAGE
   ───────────────────────────────────── */
.vehicle-status-card {
  background: #fff !important;
  border: 1px solid #e0e0e0 !important;
}

/* ─────────────────────────────────────
   ACCOUNTING PAGE
   ───────────────────────────────────── */
.acc-tabs {
  display: flex;
  gap: 4px;
  background: #f3f4f6;
  padding: 4px;
  border-radius: 6px;
  border: 1px solid #e0e0e0;
}
.acc-tab {
  padding: 7px 20px;
  border-radius: 5px;
  border: none;
  background: transparent;
  color: #4b5563;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.12s;
}
.acc-tab:hover { background: #e5e7eb; color: #111827; }
.acc-tab.active { background: #2563eb; color: #fff; }

.acc-kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}
.acc-kpi {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  padding: 16px;
  box-shadow: var(--shadow-sm);
}
.acc-kpi-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #6b7280;
  margin-bottom: 5px;
}
.acc-kpi-value {
  font-size: 22px;
  font-weight: 700;
  color: #111827;
}
.acc-kpi-value.blue   { color: #2563eb; }
.acc-kpi-value.green  { color: #059669; }
.acc-kpi-value.yellow { color: #b45309; }
.acc-kpi-value.red    { color: #dc2626; }

.acc-pl-card {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  padding: 18px 20px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
}
.acc-pl-title { font-size: 13px; font-weight: 600; color: #4b5563; margin-bottom: 3px; }
.acc-pl-value { font-size: 28px; font-weight: 800; }
.acc-pl-pos { color: #059669; }
.acc-pl-neg { color: #dc2626; }

.acc-section-title {
  font-size: 13px;
  font-weight: 700;
  color: #111827;
  margin: 18px 0 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid #e0e0e0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

/* Loading skeleton */
.acc-skeleton {
  background: linear-gradient(90deg, #f3f4f6 25%, #e9eaec 50%, #f3f4f6 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: 5px;
  height: 30px;
}
@keyframes shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ─────────────────────────────────────
   TOPBAR refresh button
   ───────────────────────────────────── */
.topbar .btn-refresh {
  background: #f3f4f6 !important;
  border-color: #e0e0e0 !important;
  color: #4b5563 !important;
}
