/* ===========================
   CSS Variables / Design Tokens
   Extracted from Company Logo
   =========================== */
:root {
  /* Brand Colors */
  --color-primary: #358dd5;              /* Vibrant Azure Blue from logo */
  --color-primary-hover: #2677b8;        /* Hover blue */
  --color-primary-light: #eff6fc;        /* Light blue tint */
  --color-navy: #20225d;                 /* Deep Midnight Navy from logo */
  --color-navy-dark: #161845;            /* Darker navy */
  --color-navy-light: #eef0f8;           /* Light navy wash */

  /* Neutral Backgrounds & Surfaces */
  --color-bg: #f8fafc;
  --color-white: #ffffff;
  --color-text: #0f172a;
  --color-text-secondary: #64748b;
  --color-border: #e2e8f0;

  /* Sidebar Tokens (Brand Navy) */
  --color-sidebar: #1a1d4e;
  --color-sidebar-hover: rgba(255, 255, 255, 0.08);

  /* Status Colors */
  --color-success: #059669;
  --color-success-bg: #ecfdf5;
  --color-warning: #d97706;
  --color-warning-bg: #fffbeb;
  --color-danger: #dc2626;
  --color-danger-bg: #fef2f2;
  --color-info: #358dd5;
  --color-info-bg: #eff6fc;

  /* Layout & Sizing */
  --sidebar-width: 240px;
  --topbar-height: 60px;
  --radius: 8px;
  --radius-lg: 12px;

  /* Elevation Shadows */
  --shadow-sm: 0 1px 3px rgba(15,23,42,0.06), 0 1px 2px rgba(15,23,42,0.04);
  --shadow-md: 0 4px 14px rgba(32, 34, 93, 0.07);
  --shadow-hover: 0 10px 24px -5px rgba(32, 34, 93, 0.12);
  --transition: 0.2s ease;
}

/* ===========================
   Reset & Base
   =========================== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 15px;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background-color: var(--color-bg);
  color: var(--color-text);
  display: flex;
  min-height: 100vh;
}

/* ===========================
   Sidebar
   =========================== */
.sidebar {
  width: var(--sidebar-width);
  background: var(--color-sidebar);
  color: #fff;
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 100;
  transition: transform var(--transition);
  overflow: hidden;
}

.sidebar-nav {
  flex: 1;
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 20px 22px;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.3px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}

.brand-icon {
  width: 36px;
  height: 36px;
  object-fit: contain;
  flex-shrink: 0;
  background: #ffffff;
  border-radius: 9px;
  padding: 3px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  padding: 12px 10px;
  gap: 2px;
  flex: 1;
}

/* ===========================
   Sidebar Footer — user info + logout
   =========================== */
.sidebar-footer {
  padding: 14px 10px 16px;
  border-top: 1px solid rgba(255,255,255,0.12);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sidebar-user {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 2px 4px;
}

.sidebar-user-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
  font-size: 0.95rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  text-transform: uppercase;
}

.sidebar-user-info {
  display: flex;
  flex-direction: column;
  gap: 1px;
  overflow: hidden;
}

.sidebar-user-name {
  font-size: 0.85rem;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sidebar-user-role {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.6);
  text-transform: capitalize;
}

.btn-logout {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.75);
  border: none;
  border-radius: 6px;
  font-size: 0.88rem;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
  width: 100%;
}

.btn-logout:hover {
  background: rgba(255,255,255,0.15);
  color: #fff;
}

.btn-logout svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  text-decoration: none;
  color: rgba(255,255,255,0.7);
  border-radius: 6px;
  font-size: 0.93rem;
  font-weight: 500;
  transition: background var(--transition), color var(--transition);
}

.nav-item svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.nav-item:hover {
  background: rgba(255,255,255,0.1);
  color: #fff;
}

.nav-item.active {
  background: var(--color-primary);
  color: #fff;
  font-weight: 600;
  box-shadow: 0 2px 10px rgba(53, 141, 213, 0.35);
}

/* ===========================
   Main Content
   =========================== */
.main-content {
  margin-left: var(--sidebar-width);
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* ===========================
   Top Bar
   =========================== */
.topbar {
  height: var(--topbar-height);
  background: var(--color-white);
  border-bottom: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  padding: 0 28px;
  gap: 16px;
  position: sticky;
  top: 0;
  z-index: 50;
}

.topbar-user {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
}

.topbar-user-name {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--color-text-secondary);
}

.topbar-role-badge {
  display: inline-block;
  padding: 3px 9px;
  border-radius: 20px;
  font-size: 0.73rem;
  font-weight: 600;
  text-transform: capitalize;
  background: #eaf2f8;
  color: var(--color-primary);
}

.topbar-role-badge.manager {
  background: #eff6fc;
  color: var(--color-navy);
  font-weight: 600;
  border: 1px solid rgba(53, 141, 213, 0.25);
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--color-text);
}

.menu-toggle svg {
  width: 24px;
  height: 24px;
}

.page-title {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--color-text);
}

/* ===========================
   Page Container
   =========================== */
.page-container {
  padding: 28px;
  flex: 1;
}

/* ===========================
   Dashboard Cards
   =========================== */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-bottom: 28px;
}

.stat-card {
  background: var(--color-white);
  border-radius: var(--radius);
  padding: 22px 24px;
  box-shadow: var(--shadow-sm);
  border-left: 4px solid var(--color-navy);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.stat-card.success { border-left-color: var(--color-success); }
.stat-card.warning { border-left-color: var(--color-warning); }
.stat-card.info    { border-left-color: var(--color-info);    }

.stat-label {
  font-size: 0.82rem;
  color: var(--color-text-secondary);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.stat-value {
  font-size: 1.9rem;
  font-weight: 700;
  color: var(--color-navy);
}

/* ===========================
   Dashboard Charts & Analytics
   =========================== */
.dashboard-charts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
  gap: 20px;
  margin-bottom: 24px;
}

@media (max-width: 860px) {
  .dashboard-charts-grid {
    grid-template-columns: 1fr;
  }
}

.dashboard-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 22px 24px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
  display: flex;
  flex-direction: column;
  transition: box-shadow var(--transition);
}

.dashboard-card:hover {
  box-shadow: var(--shadow-md);
}

.dashboard-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid #f1f5f9;
}

.dashboard-card-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-navy);
}

.dashboard-card-subtitle {
  font-size: 0.8rem;
  color: var(--color-text-secondary);
  margin-top: 2px;
}

.chart-canvas-container {
  position: relative;
  height: 250px;
  width: 100%;
}

.chart-legend-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-top: 14px;
  flex-wrap: wrap;
}

.chart-legend-item {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.85rem;
  color: var(--color-text);
}

.chart-legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}

/* Dashboard Bottom Grid: Table & KPIs */
.dashboard-bottom-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 20px;
  margin-bottom: 28px;
}

@media (max-width: 1024px) {
  .dashboard-bottom-grid {
    grid-template-columns: 1fr;
  }
}

.dashboard-view-all-link {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-primary);
  text-decoration: none;
  transition: color var(--transition);
}

.dashboard-view-all-link:hover {
  color: var(--color-primary-hover);
  text-decoration: underline;
}

.dashboard-table-wrapper {
  overflow-x: auto;
}

.dashboard-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

.dashboard-table th {
  text-align: left;
  padding: 10px 12px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--color-text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.4px;
  border-bottom: 1px solid var(--color-border);
}

.dashboard-table td {
  padding: 12px 12px;
  border-bottom: 1px solid #f1f5f9;
  color: var(--color-text);
  vertical-align: middle;
}

.dashboard-table tr:hover td {
  background: #f8fafc;
}

.dashboard-cust-cell {
  display: flex;
  align-items: center;
  gap: 10px;
}

.dashboard-cust-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--color-primary-light);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.8rem;
  flex-shrink: 0;
}

.dashboard-kpi-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.dashboard-kpi-item {
  padding: 12px 14px;
  background: #f8fafc;
  border-radius: var(--radius);
  border: 1px solid #eef2f6;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.dashboard-kpi-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.dashboard-kpi-title {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--color-text-secondary);
}

.dashboard-kpi-val {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-navy);
}

.dashboard-progress-track {
  width: 100%;
  height: 6px;
  background: #e2e8f0;
  border-radius: 4px;
  overflow: hidden;
}

.dashboard-progress-fill {
  height: 100%;
  background: var(--color-primary);
  border-radius: 4px;
  transition: width 0.4s ease;
}

/* ===========================
   Page Header (Title + Add Button)
   =========================== */
.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.page-header h2 {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--color-text);
}

/* ===========================
   Buttons
   =========================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 7px 15px;
  height: 36px;
  border: 1px solid transparent;
  border-radius: 7px;
  font-size: 0.84rem;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  font-family: inherit;
  user-select: none;
  flex-shrink: 0;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  letter-spacing: 0.2px;
}

.btn svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  stroke-width: 2.2;
  transition: transform 0.2s ease;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: linear-gradient(135deg, #358dd5 0%, #206bb5 100%);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 2px 6px rgba(32, 107, 181, 0.25), 0 1px 2px rgba(0, 0, 0, 0.05);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #419ae4 0%, #2577c9 100%);
  box-shadow: 0 4px 12px rgba(32, 107, 181, 0.35), 0 2px 4px rgba(0, 0, 0, 0.06);
  transform: translateY(-1px);
}

.btn-primary:hover svg {
  transform: scale(1.1);
}

.btn-secondary {
  background: #f1f5f9;
  color: var(--color-navy);
  border: 1px solid var(--color-border);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.btn-secondary:hover {
  background: #e2e8f0;
  color: var(--color-navy-dark);
  border-color: #cbd5e1;
  transform: translateY(-1px);
}

.btn-danger {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 2px 6px rgba(220, 38, 38, 0.25);
}

.btn-danger:hover {
  background: linear-gradient(135deg, #f87171 0%, #b91c1c 100%);
  box-shadow: 0 4px 12px rgba(220, 38, 38, 0.35);
  transform: translateY(-1px);
}

.btn-sm {
  height: 30px;
  padding: 5px 11px;
  font-size: 0.78rem;
  border-radius: 6px;
  gap: 5px;
}

.btn-sm svg {
  width: 13px;
  height: 13px;
}

.btn-icon {
  padding: 6px;
  background: none;
  border: none;
  cursor: pointer;
  border-radius: 4px;
  color: var(--color-text-secondary);
  transition: background var(--transition), color var(--transition);
}

.btn-icon:hover {
  background: #f0f0f0;
  color: var(--color-text);
}

.btn-icon.danger:hover {
  background: var(--color-danger-bg);
  color: var(--color-danger);
}

.btn-icon svg {
  width: 18px;
  height: 18px;
}

/* ===========================
   Table
   =========================== */
.table-wrapper {
  background: var(--color-white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
}

thead {
  background: #f8f9fa;
}

th, td {
  text-align: left;
  padding: 12px 16px;
  font-size: 0.88rem;
  white-space: nowrap;
}

th {
  font-weight: 600;
  color: var(--color-text-secondary);
  text-transform: uppercase;
  font-size: 0.76rem;
  letter-spacing: 0.5px;
  border-bottom: 2px solid var(--color-border);
}

td {
  border-bottom: 1px solid #f0f0f0;
  color: var(--color-text);
}

tbody tr:hover {
  background: #fafbfc;
}

tbody tr:last-child td {
  border-bottom: none;
}

.actions-cell {
  display: flex;
  gap: 4px;
}

/* ===========================
   Status Badges
   =========================== */
.badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 0.78rem;
  font-weight: 600;
}

.badge-available {
  background: var(--color-success-bg);
  color: var(--color-success);
}

.badge-rented {
  background: var(--color-warning-bg);
  color: var(--color-warning);
}

.badge-returned {
  background: var(--color-info-bg);
  color: var(--color-info);
}

.badge-paid {
  background: var(--color-success-bg);
  color: var(--color-success);
}

.badge-unpaid {
  background: var(--color-danger-bg);
  color: var(--color-danger);
}

.badge-cat-fuel {
  background: #fff7ed;
  color: #c2410c;
  border: 1px solid #fed7aa;
}

.badge-cat-maintenance {
  background: #eff6fc;
  color: #1d4ed8;
  border: 1px solid #bfdbfe;
}

.badge-cat-insurance {
  background: #faf5ff;
  color: #7e22ce;
  border: 1px solid #e9d5ff;
}

.badge-cat-staff-salaries {
  background: #f0fdf4;
  color: #15803d;
  border: 1px solid #bbf7d0;
}

.badge-cat-other {
  background: #f1f5f9;
  color: #475569;
  border: 1px solid #cbd5e1;
}

/* ===========================
   Empty State
   =========================== */
.empty-state {
  text-align: center;
  padding: 48px 20px;
  color: var(--color-text-secondary);
}

.empty-state svg {
  width: 48px;
  height: 48px;
  margin-bottom: 12px;
  opacity: 0.4;
}

.empty-state p {
  font-size: 0.92rem;
}

/* ===========================
   Modal
   =========================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 200;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition), visibility var(--transition);
}

.modal-overlay.open {
  opacity: 1;
  visibility: visible;
}

.modal {
  background: var(--color-white);
  border-radius: var(--radius);
  width: 90%;
  max-width: 500px;
  box-shadow: var(--shadow-md);
  transform: translateY(12px);
  transition: transform var(--transition);
}

.modal-overlay.open .modal {
  transform: translateY(0);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px;
  border-bottom: 1px solid var(--color-border);
}

.modal-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-navy);
}

.modal-close {
  background: none;
  border: none;
  font-size: 1.4rem;
  cursor: pointer;
  color: var(--color-text-secondary);
  line-height: 1;
  padding: 4px;
}

.modal-close:hover {
  color: var(--color-text);
}

.modal-body {
  padding: 22px;
}

.confirm-modal {
  max-width: 400px;
}

.confirm-modal p {
  margin-bottom: 20px;
  color: var(--color-text-secondary);
  font-size: 0.92rem;
  line-height: 1.5;
}

.confirm-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

/* ===========================
   Forms
   =========================== */
.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  margin-bottom: 5px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--color-text);
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 9px 12px;
  border: 1px solid var(--color-border);
  border-radius: 6px;
  font-size: 0.9rem;
  font-family: inherit;
  color: var(--color-text);
  background: var(--color-white);
  transition: border-color var(--transition);
}

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(53, 141, 213, 0.16);
}

.form-group input::placeholder {
  color: #b2bec3;
}

.form-group .read-only {
  background: #f5f6fa;
  color: var(--color-text-secondary);
}

.form-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 22px;
}

/* ===========================
   Toast / Notification
   =========================== */
.toast-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 300;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toast {
  background: var(--color-white);
  padding: 12px 20px;
  border-radius: 6px;
  box-shadow: var(--shadow-md);
  font-size: 0.88rem;
  font-weight: 500;
  border-left: 4px solid var(--color-success);
  animation: toastIn 0.3s ease, toastOut 0.3s ease 2.5s forwards;
}

.toast.error {
  border-left-color: var(--color-danger);
}

@keyframes toastIn {
  from { opacity: 0; transform: translateX(30px); }
  to   { opacity: 1; transform: translateX(0); }
}

@keyframes toastOut {
  from { opacity: 1; transform: translateX(0); }
  to   { opacity: 0; transform: translateX(30px); }
}

/* ===========================
   Cars Fleet Page Styles
   =========================== */
.cars-view-wrapper {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.cars-page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.cars-header-title {
  display: flex;
  align-items: center;
  gap: 12px;
}

.cars-header-title h2 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-navy);
  margin: 0;
}

.cars-header-badge {
  background: #e2e8f0;
  color: var(--color-text-secondary);
  font-size: 0.76rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 20px;
}

/* Cars Toolbar: Search + Filter Tabs + View Mode */
.cars-toolbar {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 14px 18px;
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.cars-search-box {
  position: relative;
  flex: 1;
  min-width: 260px;
  display: flex;
  align-items: center;
}

.cars-search-icon {
  position: absolute;
  left: 12px;
  color: var(--color-text-secondary);
  display: flex;
  align-items: center;
  pointer-events: none;
}

.cars-search-icon svg {
  width: 17px;
  height: 17px;
}

.cars-search-input {
  width: 100%;
  height: 40px;
  padding: 0 36px 0 38px;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  font-size: 0.88rem;
  font-family: inherit;
  color: var(--color-text);
  background: #f8fafc;
  transition: all var(--transition);
}

.cars-search-input:focus {
  outline: none;
  background: #fff;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(53, 141, 213, 0.16);
}

.cars-search-input::placeholder {
  color: #94a3b8;
}

.cars-search-clear {
  position: absolute;
  right: 10px;
  background: none;
  border: none;
  color: #94a3b8;
  cursor: pointer;
  padding: 4px;
  display: none;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.cars-search-clear:hover {
  color: var(--color-text);
  background: #e2e8f0;
}

.cars-search-clear.visible {
  display: flex;
}

.cars-search-clear svg {
  width: 15px;
  height: 15px;
}

.cars-filters-row {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

/* Status Filter Pills */
.cars-status-pills {
  display: flex;
  align-items: center;
  background: #f1f5f9;
  padding: 3px;
  border-radius: 8px;
  gap: 2px;
}

.filter-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border: none;
  background: transparent;
  color: var(--color-text-secondary);
  font-size: 0.82rem;
  font-weight: 500;
  border-radius: 6px;
  cursor: pointer;
  font-family: inherit;
  transition: all var(--transition);
}

.filter-pill:hover {
  color: var(--color-text);
}

.filter-pill.active {
  background: var(--color-white);
  color: var(--color-navy);
  font-weight: 600;
  box-shadow: 0 1px 3px rgba(32, 34, 93, 0.08);
}

.pill-count {
  font-size: 0.72rem;
  background: rgba(0,0,0,0.06);
  color: inherit;
  padding: 1px 6px;
  border-radius: 10px;
  font-weight: 600;
}

.filter-pill.active .pill-count {
  background: #e2e8f0;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  display: inline-block;
}

.status-dot.green { background-color: var(--color-success); }
.status-dot.amber { background-color: var(--color-warning); }

/* View Mode Switcher */
.cars-view-toggle {
  display: flex;
  align-items: center;
  background: #f1f5f9;
  padding: 3px;
  border-radius: 8px;
  gap: 2px;
}

.btn-view-mode {
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  border-radius: 6px;
  color: var(--color-text-secondary);
  cursor: pointer;
  transition: all var(--transition);
}

.btn-view-mode svg {
  width: 17px;
  height: 17px;
}

.btn-view-mode:hover {
  color: var(--color-text);
}

.btn-view-mode.active {
  background: var(--color-white);
  color: var(--color-primary);
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

/* ===========================
   Cars Grid View & Cards
   =========================== */
.cars-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 22px;
}

.car-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.car-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
  border-color: #cbd5e1;
}

.car-card-media {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #f1f5f9;
  overflow: hidden;
}

.car-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.car-card:hover .car-card-img {
  transform: scale(1.03);
}

/* Status Badge on Card */
.car-card-status {
  position: absolute;
  top: 12px;
  right: 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.74rem;
  font-weight: 600;
  backdrop-filter: blur(8px);
  box-shadow: 0 2px 6px rgba(0,0,0,0.12);
}

.car-card-status.inline {
  position: static;
  box-shadow: none;
  backdrop-filter: none;
}

.car-card-status.status-available {
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid rgba(5, 150, 105, 0.25);
}

.car-card-status.status-rented {
  background: #fffbeb;
  color: #92400e;
  border: 1px solid rgba(217, 119, 6, 0.25);
}

.status-indicator-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: currentColor;
}

/* Card Content Area */
.car-card-content {
  padding: 16px 18px 18px;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 12px;
}

.car-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.car-name {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-navy);
  margin: 0;
  line-height: 1.3;
}

.car-model-tag {
  background: #f1f5f9;
  color: #475569;
  font-size: 0.74rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 6px;
  white-space: nowrap;
}

/* License Plate Pill */
.car-card-specs {
  display: flex;
  align-items: center;
  gap: 8px;
}

.car-plate-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  color: #334155;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 600;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  letter-spacing: 0.6px;
}

.car-plate-pill svg {
  width: 14px;
  height: 14px;
  color: #64748b;
}

.car-plate-pill.table-plate {
  display: inline-flex;
}

/* Card Footer: Price & Action Buttons */
.car-card-footer {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid #f1f5f9;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
}

.car-price-block {
  display: flex;
  flex-direction: column;
}

.price-caption {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  font-weight: 600;
  color: var(--color-text-secondary);
}

.price-figure {
  display: flex;
  align-items: baseline;
  gap: 2px;
}

.price-currency {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-text);
}

.price-number {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--color-navy);
  line-height: 1.1;
}

.price-period {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--color-text-secondary);
  margin-left: 3px;
}

/* Car Action Buttons */
.car-action-buttons {
  display: flex;
  align-items: center;
  gap: 6px;
}

.btn-car-action {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  border: 1px solid #e2e8f0;
  background: #fff;
  color: var(--color-text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition);
}

.btn-car-action svg {
  width: 15px;
  height: 15px;
}

.btn-car-action.edit:hover {
  background: #f0fdf4;
  color: var(--color-success);
  border-color: rgba(5, 150, 105, 0.3);
}

.btn-car-action.delete:hover {
  background: #fef2f2;
  color: var(--color-danger);
  border-color: rgba(220, 38, 38, 0.3);
}

/* ===========================
   Cars Table View
   =========================== */
.cars-table {
  width: 100%;
}

.table-car-item {
  display: flex;
  align-items: center;
  gap: 12px;
}

.table-car-thumb {
  width: 52px;
  height: 34px;
  border-radius: 6px;
  object-fit: cover;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  flex-shrink: 0;
}

.table-car-details {
  display: flex;
  flex-direction: column;
}

.table-car-name {
  font-weight: 600;
  color: var(--color-text);
}

.table-model-tag {
  background: #f1f5f9;
  color: #475569;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 0.76rem;
  font-weight: 600;
}

.table-price-cell {
  display: flex;
  align-items: baseline;
  gap: 3px;
}

.table-price-cell strong {
  font-size: 0.95rem;
  color: var(--color-text);
}

.table-price-cell small {
  font-size: 0.75rem;
  color: var(--color-text-secondary);
}

/* ===========================
   Modal Form & Image Preview
   =========================== */
.car-modal-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-preview-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px;
  background: #f8fafc;
  border: 1px solid var(--color-border);
  border-radius: 8px;
}

.form-preview-img-wrapper {
  width: 100px;
  height: 60px;
  border-radius: 6px;
  overflow: hidden;
  background: #e2e8f0;
  flex-shrink: 0;
}

.form-preview-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.form-preview-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.preview-title {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--color-text);
}

.preview-subtitle {
  font-size: 0.74rem;
  color: var(--color-text-secondary);
  line-height: 1.4;
}

.form-grid-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.required {
  color: var(--color-danger);
}

.optional-label {
  font-size: 0.75rem;
  color: var(--color-text-secondary);
  font-weight: 400;
}

/* ===========================
   Loading State Spinner
   =========================== */
.cars-loading-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  gap: 14px;
  color: var(--color-text-secondary);
  font-size: 0.9rem;
}

.spinner {
  width: 32px;
  height: 32px;
  border: 3px solid #e2e8f0;
  border-top-color: var(--color-primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ===========================
   Responsive
   =========================== */
@media (max-width: 900px) {
  .cars-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .cars-search-box {
    width: 100%;
  }

  .cars-filters-row {
    justify-content: space-between;
  }
}

@media (max-width: 768px) {
  .sidebar {
    transform: translateX(-100%);
  }

  .sidebar.open {
    transform: translateX(0);
  }

  .main-content {
    margin-left: 0;
  }

  .menu-toggle {
    display: block;
  }

  .page-container {
    padding: 16px;
  }

  .cars-grid {
    grid-template-columns: 1fr;
  }

  .form-grid-2col {
    grid-template-columns: 1fr;
  }

  .stat-grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
}

@media (max-width: 480px) {
  .cars-header-title h2 {
    font-size: 1.1rem;
  }

  .cars-filters-row {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .cars-status-pills {
    justify-content: space-around;
  }

  .cars-view-toggle {
    align-self: flex-end;
  }

  .stat-grid {
    grid-template-columns: 1fr;
  }
}

/* =====================================================
   Payments Page Styles
   ===================================================== */
.finance-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 16px;
}

.finance-filter-controls {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.finance-select-wrapper {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-text-secondary);
}

.finance-filter-select {
  padding: 7px 12px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-white);
  color: var(--color-text);
  font-size: 0.85rem;
  font-family: inherit;
  outline: none;
  cursor: pointer;
  transition: border-color var(--transition);
}

.finance-filter-select:focus {
  border-color: var(--color-primary);
}

.method-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border-radius: 6px;
  font-size: 0.76rem;
  font-weight: 600;
  background: #f1f5f9;
  color: #334155;
  border: 1px solid #cbd5e1;
}

.method-badge.cash {
  background: #f0fdf4;
  color: #166534;
  border-color: #bbf7d0;
}

.method-badge.bank-transfer {
  background: #eff6ff;
  color: #1e40af;
  border-color: #bfdbfe;
}

.method-badge.mobile-money {
  background: #faf5ff;
  color: #6b21a8;
  border-color: #e9d5ff;
}

.ref-pill {
  display: inline-block;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.76rem;
  color: #334155;
}

.text-amount {
  color: var(--color-success);
  font-weight: 700;
}

.customer-info-cell,
.rental-info-cell {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

/* ===========================
   Printable Document & Modal (Agreement & Receipt)
   =========================== */
.print-modal-overlay {
  z-index: 300;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(4px);
}

.print-modal {
  max-width: 860px;
  width: 95%;
  max-height: 94vh;
  display: flex;
  flex-direction: column;
  background: #f1f5f9;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.25);
}

.print-modal-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  background: var(--color-white);
  border-bottom: 1px solid var(--color-border);
  flex-shrink: 0;
}

.print-toolbar-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-navy);
}

.print-toolbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.print-modal-body {
  overflow-y: auto;
  padding: 24px;
  display: flex;
  justify-content: center;
  background: #475569;
}

/* Simulated A4 Paper / Document */
.printable-document {
  background: #ffffff;
  width: 100%;
  max-width: 800px;
  padding: 36px 42px;
  border-radius: 6px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.18);
  color: #1e293b;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.5;
  box-sizing: border-box;
}

/* Document Header */
.doc-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
}

.doc-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.doc-logo {
  width: 52px;
  height: 52px;
  object-fit: contain;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 4px;
}

.doc-company-name {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--color-navy);
  margin: 0 0 2px 0;
  letter-spacing: -0.3px;
}

.doc-company-tagline {
  font-size: 0.8rem;
  color: var(--color-primary);
  font-weight: 600;
  margin: 0 0 4px 0;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.doc-company-meta {
  font-size: 0.76rem;
  color: #64748b;
  margin: 0;
}

.doc-meta-badge {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 3px;
  text-align: right;
}

.doc-type-label {
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: #64748b;
}

.doc-number {
  font-size: 1.25rem;
  font-weight: 800;
  font-family: ui-monospace, SFMono-Regular, monospace;
  color: var(--color-navy);
}

.doc-date {
  font-size: 0.78rem;
  color: #64748b;
}

.doc-status-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  margin-top: 4px;
}

.doc-status-badge.rented {
  background: #fef3c7;
  color: #92400e;
  border: 1px solid #fde68a;
}

.doc-status-badge.returned,
.doc-status-badge.paid {
  background: #dcfce7;
  color: #166534;
  border: 1px solid #bbf7d0;
}

/* Paid stamp badge */
.receipt-paid-stamp {
  display: inline-block;
  border: 2px dashed #059669;
  color: #059669;
  font-size: 1.1rem;
  font-weight: 900;
  letter-spacing: 2px;
  padding: 4px 14px;
  border-radius: 6px;
  text-transform: uppercase;
  margin-top: 6px;
  transform: rotate(-4deg);
}

.doc-divider {
  height: 2px;
  background: linear-gradient(90deg, var(--color-primary) 0%, #e2e8f0 100%);
  margin: 16px 0 22px 0;
}

/* 2-column info cards */
.doc-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.doc-section-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 16px 18px;
}

.doc-section-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--color-navy);
  margin: 0 0 12px 0;
  padding-bottom: 8px;
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  gap: 6px;
}

.doc-info-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.82rem;
}

.doc-info-table tr td,
.doc-info-table tr th {
  padding: 5px 0;
  border: none;
  background: none !important;
}

.doc-info-table th {
  color: #64748b;
  font-weight: 500;
  width: 42%;
  text-align: left;
}

.doc-info-table td {
  color: #0f172a;
  font-weight: 600;
  text-align: right;
}

.doc-plate {
  display: inline-block;
  background: #0f172a;
  color: #ffffff;
  font-family: ui-monospace, SFMono-Regular, monospace;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 4px;
  font-size: 0.8rem;
  letter-spacing: 0.5px;
}

/* Financial Table */
.doc-financial-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.84rem;
  margin-top: 6px;
}

.doc-financial-table th {
  background: #e2e8f0;
  color: var(--color-navy);
  font-weight: 700;
  padding: 9px 12px;
  text-align: left;
  border: 1px solid #cbd5e1;
  font-size: 0.78rem;
  text-transform: uppercase;
}

.doc-financial-table td {
  padding: 10px 12px;
  border: 1px solid #e2e8f0;
  background: #ffffff;
}

.doc-financial-table tfoot td {
  background: #f8fafc;
  border-top: 2px solid #cbd5e1;
  font-size: 0.95rem;
  color: var(--color-navy);
  padding: 12px;
}

.doc-total-price {
  color: var(--color-primary-hover);
  font-size: 1.05rem;
  font-weight: 800;
}

/* Terms box */
.doc-terms-box {
  margin-top: 18px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-left: 3px solid var(--color-primary);
  border-radius: 6px;
  padding: 14px 18px;
  font-size: 0.74rem;
  color: #475569;
}

.doc-terms-box h4 {
  color: var(--color-navy);
  font-size: 0.8rem;
  margin: 0 0 6px 0;
  font-weight: 700;
}

.doc-terms-box ol {
  margin: 0;
  padding-left: 18px;
}

.doc-terms-box li {
  margin-bottom: 4px;
  line-height: 1.4;
}

/* Signatures */
.doc-signatures-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  margin-top: 36px;
  padding-top: 10px;
}

.doc-signature-block {
  text-align: center;
}

.sig-line {
  height: 1px;
  background: #0f172a;
  margin-bottom: 8px;
}

.sig-name {
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--color-navy);
  margin: 0 0 2px 0;
}

.sig-sub {
  font-size: 0.74rem;
  color: #64748b;
  margin: 0 0 4px 0;
}

.sig-date {
  font-size: 0.74rem;
  color: #94a3b8;
  margin: 0;
}

/* Footer */
.doc-footer {
  margin-top: 28px;
  padding-top: 14px;
  border-top: 1px solid #e2e8f0;
  text-align: center;
}

.doc-footer p {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--color-navy);
  margin: 0 0 4px 0;
}

.doc-footer small {
  font-size: 0.7rem;
  color: #94a3b8;
}

.receipt-notes {
  margin-top: 10px;
  font-size: 0.8rem;
  color: #64748b;
}

/* ===========================
   Print Media Styles
   =========================== */
@media print {
  body {
    background: #ffffff !important;
    color: #000000 !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  /* Hide everything on page */
  .sidebar,
  .topbar,
  .page-container,
  .toast-container,
  #confirmOverlay,
  #modalOverlay,
  .print-modal-toolbar {
    display: none !important;
  }

  .print-modal-overlay {
    position: static !important;
    background: transparent !important;
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    padding: 0 !important;
    margin: 0 !important;
    backdrop-filter: none !important;
  }

  .print-modal {
    position: static !important;
    box-shadow: none !important;
    border: none !important;
    max-width: 100% !important;
    width: 100% !important;
    max-height: none !important;
    background: transparent !important;
    transform: none !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  .print-modal-body {
    background: transparent !important;
    padding: 0 !important;
    margin: 0 !important;
    display: block !important;
    overflow: visible !important;
  }

  .printable-document {
    box-shadow: none !important;
    border: none !important;
    max-width: 100% !important;
    width: 100% !important;
    padding: 8mm 10mm !important;
    margin: 0 !important;
  }

  .doc-section-card {
    border: 1px solid #cbd5e1 !important;
  }

  .doc-total-price {
    color: #000000 !important;
  }
}

/* =====================================================
   Multi-Tenant Styles (Companies & Branding)
   ===================================================== */
.brand-text-wrapper {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  line-height: 1.2;
}

.brand-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.2px;
}

.brand-company {
  font-size: 0.76rem;
  font-weight: 500;
  color: #94a3b8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 150px;
}

.company-switch-wrapper {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(32, 34, 93, 0.05);
  padding: 4px 12px;
  border-radius: 8px;
  border: 1px solid var(--color-border);
}

.switch-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-text-secondary);
}

.company-select {
  padding: 4px 8px;
  font-size: 0.85rem;
  border-radius: 6px;
  border: 1px solid var(--color-border);
  background: #ffffff;
  color: var(--color-text);
  font-weight: 500;
  cursor: pointer;
  outline: none;
}

.company-select:focus {
  border-color: var(--color-primary);
}

/* Companies Grid & Cards */
.companies-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.company-card {
  background: var(--color-white);
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform var(--transition), box-shadow var(--transition);
}

.company-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.company-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 14px;
}

.company-name-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-navy);
  margin-bottom: 4px;
}

.company-status-badge {
  padding: 3px 8px;
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.company-status-badge.active {
  background: #e8f8f0;
  color: #1e7e34;
}

.company-status-badge.suspended {
  background: #fdf0ed;
  color: #c0392b;
}

.company-plan-tag {
  display: inline-block;
  font-size: 0.72rem;
  background: #eef4ff;
  color: #2b5cb8;
  padding: 2px 7px;
  border-radius: 4px;
  font-weight: 600;
  text-transform: uppercase;
}

.company-stats-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin: 16px 0;
  background: #f8fafc;
  padding: 12px;
  border-radius: 8px;
}

.company-stat-box {
  display: flex;
  flex-direction: column;
}

.company-stat-value {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-navy);
}

.company-stat-label {
  font-size: 0.74rem;
  color: var(--color-text-secondary);
  font-weight: 500;
}

.company-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--color-border);
}

.company-active-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #f1f5f9;
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 0.85rem;
  border: 1px solid #e2e8f0;
}

.company-active-badge .badge-label {
  color: #64748b;
  font-weight: 500;
}

.company-active-badge .badge-company-name {
  color: #0f172a;
  font-weight: 700;
}


