/*!********************************************************************************************************************************************************************************************************************************************************************!*\
  !*** css ./node_modules/next/dist/build/webpack/loaders/css-loader/src/index.js??ruleSet[1].rules[14].oneOf[12].use[2]!./node_modules/next/dist/build/webpack/loaders/postcss-loader/src/index.js??ruleSet[1].rules[14].oneOf[12].use[3]!./src/styles/globals.css ***!
  \********************************************************************************************************************************************************************************************************************************************************************/
/* Cleantica CRM v3 — Mobile-First Design System */

:root {
  /* Spacing (4px scale) */
  --sp-1: 4px; --sp-2: 8px; --sp-3: 12px; --sp-4: 16px;
  --sp-5: 20px; --sp-6: 24px; --sp-8: 32px; --sp-10: 40px;

  /* Sidebar */
  --sidebar-w: 220px;
  --sidebar-bg: #0f1729;
  --sidebar-border: rgba(255,255,255,0.06);
  --sidebar-text: #94a3b8;
  --sidebar-text-active: #f1f5f9;
  --sidebar-active-bg: rgba(16,185,129,0.1);

  /* Content */
  --bg-page: #f8fafc;
  --bg-card: #ffffff;
  --bg-input: #ffffff;
  --bg-table-header: #f9fafb;
  --bg-badge: #f1f5f9;

  /* Primary palette */
  --accent: #10b981;
  --accent-hover: #059669;
  --accent-bg: rgba(16,185,129,0.08);
  --blue: #3b82f6;
  --blue-bg: rgba(59,130,246,0.08);
  --red: #ef4444;
  --red-bg: rgba(239,68,68,0.08);
  --yellow: #f59e0b;
  --yellow-bg: rgba(245,158,11,0.08);
  --purple: #8b5cf6;
  --purple-bg: rgba(139,92,246,0.08);
  --orange: #f97316;
  --orange-bg: rgba(249,115,22,0.08);

  /* Service colors */
  --svc-carpet: #f97316;
  --svc-cleaning: #3b82f6;
  --svc-pressure: #10b981;
  --svc-window: #8b5cf6;
  --svc-janitorial: #6366f1;
  --svc-hood: #dc2626;
  --svc-floor: #eab308;
  --svc-gas: #14b8a6;

  /* Text */
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #94a3b8;

  /* Borders + Shadows */
  --border: #e2e8f0;
  --border-light: #f1f5f9;
  --shadow-xs: 0 1px 2px rgba(0,0,0,0.04);
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.06), 0 2px 4px rgba(0,0,0,0.04);

  /* Radius */
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;

  /* Font */
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
body { font-family: var(--font); background: var(--bg-page); color: var(--text-primary); line-height: 1.5; -webkit-text-size-adjust: 100%; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); }
::-moz-selection { background: rgba(16,185,129,0.15); }
::selection { background: rgba(16,185,129,0.15); }

::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 3px; }

/* Responsive container */
.page-container { max-width: 1280px; margin: 0 auto; }

/* Mobile: hide sidebar, full-width content */
@media (max-width: 768px) {
  .desktop-sidebar { display: none !important; }
  .main-content { margin-left: 0 !important; padding: 1rem 0.75rem !important; }
  .page-container { padding: 0; }

  /* Tables → stacked cards */
  .responsive-table { display: block; }
  .responsive-table thead { display: none; }
  .responsive-table tbody, .responsive-table tr { display: block; width: 100%; }
  .responsive-table tr { padding: 0.75rem; margin-bottom: 0.5rem; border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--bg-card); }
  .responsive-table td { display: flex; justify-content: space-between; padding: 0.25rem 0; border: none; font-size: 0.8125rem; }
  .responsive-table td::before { content: attr(data-label); font-weight: 600; color: var(--text-muted); font-size: 0.6875rem; text-transform: uppercase; }

  /* Grids → stack */
  .grid-responsive { grid-template-columns: 1fr !important; }

  /* KPI grid */
  .kpi-grid { grid-template-columns: repeat(2, 1fr) !important; }
}

@media (max-width: 480px) {
  .kpi-grid { grid-template-columns: 1fr !important; }
}

/* Bottom nav for mobile */
.mobile-bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 56px;
  background: #fff;
  border-top: 1px solid var(--border);
  z-index: 100;
  padding-bottom: env(safe-area-inset-bottom);
}

@media (max-width: 768px) {
  .mobile-bottom-nav { display: flex; justify-content: space-around; align-items: center; }
  body { padding-bottom: 60px; }
}

/* Touch targets */
@media (max-width: 768px) {
  button, a, input, select { min-height: 44px; }
}

