/* ===== Fieldline Operations Platform ===== */
@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&family=IBM+Plex+Mono:wght@400;500;600&display=swap');

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

:root {
  --navy-950: #080d1a;
  --navy-900: #0d1526;
  --navy-800: #131e35;
  --navy-700: #1b2a47;
  --blue-700: #1d4ed8;
  --blue-600: #2563eb;
  --blue-500: #3b82f6;
  --blue-100: #dbeafe;
  --blue-50: #eff6ff;
  --bg: #eef1f7;
  --card: #ffffff;
  --border: #e0e4ee;
  --text: #101828;
  --text-muted: #64748b;
  --text-faint: #98a2b3;
  --green: #067647;
  --green-bg: #d1fae5;
  --amber: #b45309;
  --amber-bg: #fef3c7;
  --red: #b91c1c;
  --red-bg: #fee2e2;
  --purple: #6d28d9;
  --purple-bg: #ede9fe;
  --gray: #475569;
  --gray-bg: #eef2f6;
  --teal: #0f766e;
  --teal-bg: #ccfbf1;
  --radius: 10px;
  --shadow-sm: 0 1px 2px rgba(16, 24, 40, 0.06);
  --shadow-md: 0 4px 14px rgba(16, 24, 40, 0.08);
}

html, body { height: 100%; }

html { overflow-x: hidden; }

body {
  font-family: 'Manrope', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  max-width: 100vw;
}

.empty-state {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
}
.empty-state h1 { font-size: 1.5rem; margin-bottom: 0.5rem; font-weight: 800; }
.empty-state p { color: var(--text-muted); }

.mono { font-family: 'IBM Plex Mono', monospace; }

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; font-size: 14px; }

/* ===== App shell ===== */
.shell {
  display: flex;
  min-height: 100vh;
}

.sidebar {
  width: 246px;
  flex-shrink: 0;
  background: linear-gradient(180deg, var(--navy-950), var(--navy-900) 60%);
  color: #cbd5e1;
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0; bottom: 0; left: 0;
  z-index: 40;
  transition: transform 0.25s ease;
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 22px 20px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.brand-mark {
  width: 34px; height: 34px;
  border-radius: 9px;
  object-fit: cover;
  flex-shrink: 0;
  background: #fff;
}

.brand-text { display: flex; flex-direction: column; }
.brand-text strong { color: #fff; font-size: 16px; font-weight: 800; letter-spacing: 0.2px; }
.brand-text span { font-size: 11px; color: #7f8db3; text-transform: uppercase; letter-spacing: 0.08em; }

.sidebar-nav {
  flex: 1;
  padding: 14px 12px;
  overflow-y: auto;
}

.nav-section-label {
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: #5b6a8f;
  padding: 14px 10px 6px;
  font-weight: 700;
}

.nav-link, .nav-link-disabled {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 9px 10px;
  border-radius: 8px;
  font-size: 13.5px;
  font-weight: 600;
  color: #b7c2de;
  margin-bottom: 2px;
}

.nav-link svg, .nav-link-disabled svg { width: 17px; height: 17px; flex-shrink: 0; opacity: 0.85; }

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

.nav-link.active {
  background: rgba(59, 130, 246, 0.18);
  color: #fff;
  box-shadow: inset 3px 0 0 var(--blue-500);
}

.nav-link-disabled {
  color: #495a80;
  cursor: default;
  justify-content: space-between;
}
.nav-link-disabled .nl-left { display: flex; align-items: center; gap: 11px; }
.nav-link-disabled .soon-tag {
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: rgba(255,255,255,0.06);
  padding: 2px 6px;
  border-radius: 20px;
  font-weight: 700;
}

.sidebar-footer {
  padding: 14px 18px 18px;
  border-top: 1px solid rgba(255,255,255,0.08);
  font-size: 11.5px;
  color: #5b6a8f;
}

.sidebar-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 38px; height: 38px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: #fff;
}
.sidebar-toggle svg { width: 19px; height: 19px; }

.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(8, 13, 26, 0.5);
  z-index: 35;
}

/* ===== Main area ===== */
.main {
  margin-left: 246px;
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.topbar {
  background: var(--card);
  border-bottom: 1px solid var(--border);
  padding: 14px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  position: sticky;
  top: 0;
  z-index: 20;
  flex-wrap: wrap;
}

.topbar-left { display: flex; align-items: center; gap: 14px; min-width: 0; }
.topbar-left h1 { font-size: 19px; font-weight: 800; letter-spacing: -0.01em; }
.topbar-date { font-size: 12.5px; color: var(--text-muted); }

.topbar-right { display: flex; align-items: center; gap: 12px; }

.icon-btn {
  width: 36px; height: 36px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: #fff;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted);
}
.icon-btn:hover { background: var(--gray-bg); color: var(--text); }
.icon-btn svg { width: 17px; height: 17px; }

.user-chip {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 5px 12px 5px 5px;
  border-radius: 30px;
  border: 1px solid var(--border);
  background: #fff;
  position: relative;
}

.user-avatar {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--blue-600);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
  font-size: 11.5px;
}

.user-meta { display: flex; flex-direction: column; line-height: 1.25; }
.user-meta strong { font-size: 12.5px; font-weight: 700; }
.user-meta span { font-size: 10.5px; color: var(--text-muted); text-transform: capitalize; }

.logout-btn {
  border: none;
  background: none;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 600;
  margin-left: 4px;
  padding: 4px 8px;
  border-radius: 6px;
}
.logout-btn:hover { background: var(--gray-bg); color: var(--red); }

.content {
  padding: 24px 28px 60px;
  max-width: 1440px;
  width: 100%;
}

/* ===== KPI cards ===== */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 22px;
}

.kpi-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: box-shadow 0.15s ease, transform 0.15s ease;
  position: relative;
  overflow: hidden;
}
.kpi-card:hover { box-shadow: var(--shadow-md); transform: translateY(-1px); }
.kpi-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--accent, var(--blue-600));
}
.kpi-card.accent-blue { --accent: #2563eb; }
.kpi-card.accent-green { --accent: #059669; }
.kpi-card.accent-red { --accent: #dc2626; }
.kpi-card.accent-amber { --accent: #d97706; }

.kpi-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.kpi-label { font-size: 12px; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.04em; }
.kpi-icon { width: 30px; height: 30px; border-radius: 7px; display: flex; align-items: center; justify-content: center; background: var(--gray-bg); color: var(--accent, var(--blue-600)); }
.kpi-icon svg { width: 16px; height: 16px; }
.kpi-value { font-size: 30px; font-weight: 800; letter-spacing: -0.02em; font-family: 'IBM Plex Mono', monospace; }
.kpi-sub { font-size: 12px; color: var(--text-muted); margin-top: 6px; }
.kpi-sub b { color: var(--text); font-weight: 700; }

/* ===== Panels / cards ===== */
.panel-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
  min-width: 0;
}

.panel {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  min-width: 0;
  max-width: 100%;
}

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  gap: 10px;
  flex-wrap: wrap;
}
.panel-head h2 { font-size: 15px; font-weight: 800; }
.panel-head p { font-size: 12px; color: var(--text-muted); margin-top: 2px; }
.panel-body { padding: 18px 20px; min-width: 0; }
.panel-body.no-pad { padding: 0; }

.seg-toggle {
  display: flex;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}
.seg-toggle button {
  border: none;
  background: #fff;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
}
.seg-toggle button.active { background: var(--blue-600); color: #fff; }

.view-link { font-size: 12px; font-weight: 700; color: var(--blue-600); }
.view-link:hover { text-decoration: underline; }

/* ===== Bar chart ===== */
.bar-row { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.bar-row:last-child { margin-bottom: 0; }
.bar-label { width: 96px; font-size: 12.5px; font-weight: 600; color: var(--text-muted); flex-shrink: 0; }
.bar-track { flex: 1; height: 12px; background: var(--gray-bg); border-radius: 6px; overflow: hidden; }
.bar-fill { height: 100%; border-radius: 6px; transition: width 0.6s ease; }
.bar-count { width: 30px; text-align: right; font-family: 'IBM Plex Mono', monospace; font-size: 12.5px; font-weight: 700; flex-shrink: 0; }

/* ===== Donut ===== */
.donut-wrap { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; justify-content: center; }
.donut-legend { display: flex; flex-direction: column; gap: 9px; }
.legend-row { display: flex; align-items: center; gap: 8px; font-size: 12.5px; }
.legend-dot { width: 9px; height: 9px; border-radius: 50%; flex-shrink: 0; }
.legend-row b { font-family: 'IBM Plex Mono', monospace; margin-left: auto; padding-left: 14px; }

/* ===== Tables ===== */
.table-scroll { overflow-x: auto; max-width: 100%; -webkit-overflow-scrolling: touch; }
table { width: 100%; border-collapse: collapse; min-width: 560px; }
@media (max-width: 560px) {
  table { min-width: 480px; }
}
thead th {
  text-align: left;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  padding: 10px 20px;
  background: var(--gray-bg);
  font-weight: 700;
  white-space: nowrap;
}
tbody td {
  padding: 12px 20px;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
  vertical-align: middle;
}
tbody tr:last-child td { border-bottom: none; }
tbody tr:hover { background: var(--blue-50); }
.cell-strong { font-weight: 700; }
.cell-muted { color: var(--text-muted); }
.cell-mono { font-family: 'IBM Plex Mono', monospace; font-size: 12.5px; }

/* ===== Badges ===== */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  text-transform: capitalize;
  white-space: nowrap;
}
.badge::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

.badge-new { background: var(--blue-50); color: var(--blue-700); }
.badge-scheduled { background: var(--purple-bg); color: var(--purple); }
.badge-in_progress { background: var(--amber-bg); color: var(--amber); }
.badge-on_hold { background: var(--gray-bg); color: var(--gray); }
.badge-completed { background: var(--green-bg); color: var(--green); }
.badge-cancelled { background: #f1f1f4; color: #6b7280; }

.badge-low { background: var(--gray-bg); color: var(--gray); }
.badge-medium { background: var(--blue-50); color: var(--blue-700); }
.badge-high { background: var(--amber-bg); color: var(--amber); }
.badge-urgent { background: var(--red-bg); color: var(--red); }

.badge-available { background: var(--green-bg); color: var(--green); }
.badge-on_job { background: var(--amber-bg); color: var(--amber); }
.badge-off_duty { background: var(--gray-bg); color: var(--gray); }
.badge-on_leave { background: var(--red-bg); color: var(--red); }

.badge-active { background: var(--green-bg); color: var(--green); }
.badge-inactive { background: var(--gray-bg); color: var(--gray); }
.badge-service_agreement { background: var(--blue-50); color: var(--blue-700); }
.badge-warranty { background: var(--purple-bg); color: var(--purple); }
.badge-time_and_materials { background: var(--amber-bg); color: var(--amber); }

.badge-technician { background: var(--gray-bg); color: var(--gray); }
.badge-dispatcher { background: var(--blue-50); color: var(--blue-700); }
.badge-manager { background: var(--purple-bg); color: var(--purple); }
.badge-admin { background: var(--teal-bg); color: var(--teal); }

.sla-overdue { color: var(--red); font-weight: 700; }
.sla-soon { color: var(--amber); font-weight: 700; }
.sla-ok { color: var(--text-muted); }

/* ===== Technician list ===== */
.tech-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 20px;
  border-bottom: 1px solid var(--border);
}
.tech-row:last-child { border-bottom: none; }
.tech-avatar {
  width: 34px; height: 34px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 12.5px;
  flex-shrink: 0;
}
.tech-info { flex: 1; min-width: 0; }
.tech-info strong { font-size: 13px; font-weight: 700; display: block; }
.tech-info span { font-size: 11.5px; color: var(--text-muted); }
.tech-jobs { font-size: 11.5px; color: var(--text-muted); text-align: right; flex-shrink: 0; }
.tech-jobs b { font-family: 'IBM Plex Mono', monospace; color: var(--text); display: block; font-size: 13px; }

/* ===== Activity feed ===== */
.feed-row { display: flex; gap: 12px; padding: 12px 20px; border-bottom: 1px solid var(--border); }
.feed-row:last-child { border-bottom: none; }
.feed-dot { width: 8px; height: 8px; border-radius: 50%; margin-top: 6px; flex-shrink: 0; background: var(--blue-500); }
.feed-body p { font-size: 13px; }
.feed-body p b { font-weight: 700; }
.feed-body .feed-meta { font-size: 11.5px; color: var(--text-faint); margin-top: 2px; }

/* ===== Auth pages ===== */
.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 20% 20%, #16213a, #080d1a 65%);
  padding: 24px;
}

.auth-card {
  width: 100%;
  max-width: 400px;
  background: var(--card);
  border-radius: 14px;
  padding: 36px 32px 30px;
  box-shadow: 0 24px 60px rgba(0,0,0,0.35);
}

.auth-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 26px; }
.auth-brand .brand-text strong { color: var(--text); }
.auth-brand .brand-text span { color: var(--text-muted); }

.auth-card h1 { font-size: 21px; font-weight: 800; margin-bottom: 4px; }
.auth-card p.sub { font-size: 13px; color: var(--text-muted); margin-bottom: 22px; }

.field { margin-bottom: 16px; }
.field label { display: block; font-size: 12.5px; font-weight: 700; margin-bottom: 6px; }
.field input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 14px;
  background: #fbfcfe;
}
.field input:focus { outline: none; border-color: var(--blue-500); box-shadow: 0 0 0 3px var(--blue-100); background: #fff; }
.field-hint { font-size: 11.5px; color: var(--text-faint); margin-top: 5px; }

.btn-primary {
  width: 100%;
  background: var(--blue-600);
  color: #fff;
  border: none;
  padding: 11px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 14px;
  margin-top: 6px;
}
.btn-primary:hover { background: var(--blue-700); }
.btn-primary:disabled { opacity: 0.6; cursor: not-allowed; }

.auth-error {
  background: var(--red-bg);
  color: var(--red);
  padding: 9px 12px;
  border-radius: 8px;
  font-size: 12.5px;
  font-weight: 600;
  margin-bottom: 16px;
  display: none;
}
.auth-error.visible { display: block; }

.auth-note {
  background: var(--blue-50);
  color: var(--blue-700);
  padding: 9px 12px;
  border-radius: 8px;
  font-size: 12px;
  margin-bottom: 18px;
  line-height: 1.5;
}

.auth-switch { text-align: center; font-size: 13px; color: var(--text-muted); margin-top: 20px; }
.auth-switch a { color: var(--blue-600); font-weight: 700; }

.captcha-wrap { margin: 16px 0; }

.auth-divider { display: flex; align-items: center; gap: 12px; margin: 20px 0; }
.auth-divider::before, .auth-divider::after { content: ''; flex: 1; height: 1px; background: var(--border); }
.auth-divider span { font-size: 11.5px; color: var(--text-faint); text-transform: uppercase; letter-spacing: 0.06em; font-weight: 700; }

.btn-google {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: #fff;
  color: var(--text);
  border: 1px solid var(--border);
  padding: 10px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 13.5px;
}
.btn-google:hover { background: var(--gray-bg); }
.btn-google svg { width: 18px; height: 18px; flex-shrink: 0; }

/* ===== Work orders toolbar ===== */
.wo-toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  flex-wrap: wrap;
}
.wo-search {
  flex: 1;
  min-width: 220px;
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 12px;
  background: #fbfcfe;
}
.wo-search svg { width: 16px; height: 16px; color: var(--text-faint); flex-shrink: 0; }
.wo-search input { border: none; background: none; outline: none; width: 100%; font-size: 13.5px; }

.wo-filters { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.wo-filters select {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  background: #fff;
}
.btn-ghost {
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text-muted);
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
}
.btn-ghost:hover { background: var(--gray-bg); color: var(--text); }

.wo-status-pills {
  display: flex;
  gap: 8px;
  padding: 0 20px 16px;
  flex-wrap: wrap;
}
.status-pill {
  border: 1px solid var(--border);
  background: #fff;
  padding: 6px 13px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}
.status-pill b { font-family: 'IBM Plex Mono', monospace; }
.status-pill.active { background: var(--blue-600); border-color: var(--blue-600); color: #fff; }

th.sortable { cursor: pointer; user-select: none; }
th.sortable:hover { color: var(--text); }
th.sortable .sort-arrow { margin-left: 4px; opacity: 0.5; }
th.sortable.sorted .sort-arrow { opacity: 1; color: var(--blue-600); }

.wo-row { cursor: pointer; }
.customer-cell strong { display: block; font-size: 13px; font-weight: 700; }
.customer-cell span { font-size: 11.5px; color: var(--text-muted); }
.tech-cell { display: flex; align-items: center; gap: 8px; }
.tech-cell .tech-avatar { width: 24px; height: 24px; font-size: 10px; }
.tech-cell .unassigned { color: var(--text-faint); font-style: italic; font-size: 12.5px; }
.no-results { text-align: center; padding: 48px 20px; color: var(--text-muted); }

/* ===== Drawer ===== */
.drawer-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(8, 13, 26, 0.45);
  z-index: 55;
}
.drawer-overlay.open { display: block; }

.drawer {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  width: 420px;
  max-width: 92vw;
  background: #fff;
  z-index: 60;
  box-shadow: -12px 0 40px rgba(16,24,40,0.18);
  transform: translateX(100%);
  transition: transform 0.25s ease;
  display: flex;
  flex-direction: column;
}
.drawer.open { transform: translateX(0); }

.drawer-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 20px 22px;
  border-bottom: 1px solid var(--border);
  gap: 12px;
}
.drawer-order { font-family: 'IBM Plex Mono', monospace; font-size: 11.5px; color: var(--blue-600); font-weight: 700; margin-bottom: 4px; }
.drawer-head h2 { font-size: 17px; font-weight: 800; line-height: 1.3; }
.drawer-close { border: none; background: var(--gray-bg); border-radius: 8px; width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; color: var(--text-muted); }
.drawer-close svg { width: 16px; height: 16px; }
.drawer-close:hover { background: var(--red-bg); color: var(--red); }

.drawer-body { padding: 20px 22px; overflow-y: auto; flex: 1; }
.drawer-section { margin-bottom: 22px; }
.drawer-section h3 { font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-faint); font-weight: 700; margin-bottom: 10px; }
.drawer-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.drawer-field { margin-bottom: 12px; }
.drawer-field label { display: block; font-size: 11.5px; font-weight: 700; color: var(--text-muted); margin-bottom: 5px; }
.drawer-field .value { font-size: 13.5px; font-weight: 600; }
.drawer-field select, .drawer-field textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 13.5px;
  background: #fbfcfe;
}
.drawer-field textarea { min-height: 80px; resize: vertical; font-family: inherit; }
.drawer-field select:focus, .drawer-field textarea:focus { outline: none; border-color: var(--blue-500); box-shadow: 0 0 0 3px var(--blue-100); }
.drawer-desc { font-size: 13px; color: var(--text-muted); line-height: 1.55; }
.drawer-actions { display: flex; gap: 10px; margin-top: 6px; }
.drawer-actions .btn-primary { margin-top: 0; }
.locked-note { font-size: 12px; color: var(--text-faint); background: var(--gray-bg); padding: 8px 11px; border-radius: 8px; margin-top: 4px; }

.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--navy-950);
  color: #fff;
  padding: 11px 20px;
  border-radius: 9px;
  font-size: 13px;
  font-weight: 600;
  box-shadow: 0 10px 30px rgba(0,0,0,0.25);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 80;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast.error { background: var(--red); }

/* ===== Dispatch board ===== */
.dispatch-board {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding-bottom: 12px;
  align-items: flex-start;
}
.dispatch-loading { color: var(--text-muted); padding: 30px; font-size: 13.5px; }

.dispatch-col {
  flex: 0 0 280px;
  width: 280px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  max-height: calc(100vh - 300px);
  min-height: 220px;
  transition: box-shadow 0.15s ease, border-color 0.15s ease;
}
.dispatch-col.drag-over { border-color: var(--blue-500); box-shadow: 0 0 0 3px var(--blue-100); }
.dispatch-col.unassigned-col { border-top: 3px solid var(--red); }
.dispatch-col.urgent-flag { border-top: 3px solid var(--amber); }

.dispatch-col-head {
  padding: 13px 14px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.dispatch-col-icon {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--gray-bg);
  color: var(--text-muted);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.dispatch-col-icon svg { width: 16px; height: 16px; }
.dispatch-col-title { flex: 1; min-width: 0; }
.dispatch-col-title strong { font-size: 13px; font-weight: 800; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dispatch-col-title span { font-size: 11px; color: var(--text-muted); }
.dispatch-col-count {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  font-weight: 700;
  background: var(--gray-bg);
  color: var(--text);
  padding: 2px 8px;
  border-radius: 10px;
  flex-shrink: 0;
}

.dispatch-col-body {
  padding: 10px;
  overflow-y: auto;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.dispatch-empty {
  font-size: 12px;
  color: var(--text-faint);
  text-align: center;
  padding: 20px 8px;
  border: 1.5px dashed var(--border);
  border-radius: 8px;
}

.dispatch-card {
  background: #fbfcfe;
  border: 1px solid var(--border);
  border-radius: 9px;
  padding: 11px 12px;
  cursor: grab;
}
.dispatch-card:active { cursor: grabbing; }
.dispatch-card.dragging { opacity: 0.4; }
.dispatch-card.readonly { cursor: default; }
.dispatch-card-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 6px; }
.dispatch-card-order { font-family: 'IBM Plex Mono', monospace; font-size: 11px; color: var(--blue-600); font-weight: 700; }
.dispatch-card-title { font-size: 13px; font-weight: 700; margin-bottom: 6px; line-height: 1.35; }
.dispatch-card-meta { font-size: 11.5px; color: var(--text-muted); margin-bottom: 8px; }
.dispatch-card-meta strong { color: var(--text); font-weight: 600; }
.dispatch-card-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.dispatch-assign-btn {
  border: 1px solid var(--border);
  background: #fff;
  color: var(--blue-600);
  font-size: 11px;
  font-weight: 700;
  padding: 5px 9px;
  border-radius: 7px;
}
.dispatch-assign-btn:hover { background: var(--blue-50); }

.assign-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(8, 13, 26, 0.45);
  z-index: 65;
}
.assign-overlay.open { display: block; }
.assign-modal {
  display: none;
  position: fixed;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  max-width: 380px;
  background: #fff;
  border-radius: 12px;
  padding: 22px 22px 18px;
  z-index: 70;
  box-shadow: 0 24px 60px rgba(0,0,0,0.3);
}
.assign-modal.open { display: block; }
.assign-modal h3 { font-size: 15.5px; font-weight: 800; margin-bottom: 4px; }
.assign-order { font-size: 12.5px; color: var(--text-muted); margin-bottom: 16px; }
.assign-modal select {
  width: 100%;
  padding: 9px 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 13.5px;
  background: #fbfcfe;
}

/* ===== Customers ===== */
.customer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 14px;
}
.customer-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 16px 18px;
  cursor: pointer;
  transition: box-shadow 0.15s ease, transform 0.15s ease;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.customer-card:hover { box-shadow: var(--shadow-md); transform: translateY(-1px); }
.customer-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.customer-card-head h3 { font-size: 15px; font-weight: 800; line-height: 1.3; }
.customer-card-head span { font-size: 11.5px; color: var(--text-muted); }
.customer-card-badges { display: flex; gap: 6px; flex-wrap: wrap; }
.customer-card-meta { font-size: 12px; color: var(--text-muted); line-height: 1.5; }
.customer-card-stats { display: flex; gap: 16px; padding-top: 8px; border-top: 1px solid var(--border); margin-top: 2px; }
.customer-card-stats div { display: flex; flex-direction: column; }
.customer-card-stats b { font-family: 'IBM Plex Mono', monospace; font-size: 15px; }
.customer-card-stats span { font-size: 10.5px; color: var(--text-faint); text-transform: uppercase; letter-spacing: 0.04em; }

.loc-item {
  border: 1px solid var(--border);
  border-radius: 9px;
  padding: 11px 13px;
  margin-bottom: 9px;
  background: #fbfcfe;
}
.loc-item:last-child { margin-bottom: 0; }
.loc-item-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.loc-item-head strong { font-size: 13px; font-weight: 700; }
.loc-item p { font-size: 12px; color: var(--text-muted); margin-top: 4px; line-height: 1.5; }
.loc-del-btn { border: none; background: none; color: var(--text-faint); padding: 3px; display: flex; }
.loc-del-btn:hover { color: var(--red); }
.loc-del-btn svg { width: 15px; height: 15px; }

.wo-mini-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--border); }
.wo-mini-row:last-child { border-bottom: none; }
.wo-mini-row .wo-mini-title { font-size: 12.5px; font-weight: 600; }
.wo-mini-row .wo-mini-sub { font-size: 11px; color: var(--text-faint); }

.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(8, 13, 26, 0.45);
  z-index: 65;
}
.modal-overlay.open { display: block; }
.modal-box {
  display: none;
  position: fixed;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  max-width: 460px;
  max-height: 88vh;
  overflow-y: auto;
  background: #fff;
  border-radius: 12px;
  padding: 22px 22px 20px;
  z-index: 70;
  box-shadow: 0 24px 60px rgba(0,0,0,0.3);
}
.modal-box.open { display: block; }
.modal-box h3 { font-size: 16px; font-weight: 800; margin-bottom: 16px; }

.btn-text-danger {
  border: none;
  background: none;
  color: var(--red);
  font-size: 12.5px;
  font-weight: 700;
  padding: 6px 4px;
}
.btn-text-danger:hover { text-decoration: underline; }

.add-card {
  border: 1.5px dashed var(--border);
  background: transparent;
  box-shadow: none;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 120px;
  color: var(--text-muted);
  font-weight: 700;
  font-size: 13.5px;
  gap: 8px;
}
.add-card:hover { border-color: var(--blue-500); color: var(--blue-600); }
.add-card svg { width: 18px; height: 18px; }

/* ===== Technicians ===== */
.tech-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 14px;
}
.tech-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 16px 18px;
  cursor: pointer;
  transition: box-shadow 0.15s ease, transform 0.15s ease;
  display: flex;
  flex-direction: column;
  gap: 11px;
}
.tech-card:hover { box-shadow: var(--shadow-md); transform: translateY(-1px); }
.tech-card-head { display: flex; align-items: center; gap: 11px; }
.tech-card-avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  font-weight: 800;
  font-size: 14px;
  flex-shrink: 0;
}
.tech-card-id { flex: 1; min-width: 0; }
.tech-card-id h3 { font-size: 15px; font-weight: 800; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tech-card-id span { font-size: 11.5px; color: var(--text-muted); }
.tech-card-meta-row { display: flex; align-items: center; justify-content: space-between; font-size: 12px; color: var(--text-muted); }

.skill-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.skill-chip {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  background: var(--blue-50);
  color: var(--blue-700);
  white-space: nowrap;
}
.skill-chip.more { background: var(--gray-bg); color: var(--text-muted); }

.rating-stars { display: inline-flex; align-items: center; gap: 4px; font-weight: 700; color: var(--amber); }
.rating-stars svg { width: 13px; height: 13px; fill: currentColor; }
.rating-stars .rating-num { font-family: 'IBM Plex Mono', monospace; }

/* ===== Inventory ===== */
.stock-bar-track { width: 84px; height: 7px; border-radius: 4px; background: var(--gray-bg); overflow: hidden; }
.stock-bar-fill { height: 100%; border-radius: 4px; }
.stock-cell { display: flex; align-items: center; gap: 10px; }
.stock-qty { font-family: 'IBM Plex Mono', monospace; font-weight: 700; font-size: 13px; width: 22px; text-align: right; }

.badge-in_stock { background: var(--green-bg); color: var(--green); }
.badge-low_stock { background: var(--amber-bg); color: var(--amber); }
.badge-out_of_stock { background: var(--red-bg); color: var(--red); }

.badge-company { background: var(--blue-50); color: var(--blue-700); }
.badge-work_order { background: var(--purple-bg); color: var(--purple); }
.badge-staff { background: var(--teal-bg); color: var(--teal); }
.badge-inventory { background: var(--gray-bg); color: var(--gray); }

.badge-created { background: var(--green-bg); color: var(--green); }
.badge-updated { background: var(--blue-50); color: var(--blue-700); }
.badge-deleted { background: var(--red-bg); color: var(--red); }
.badge-role_changed { background: var(--purple-bg); color: var(--purple); }
.badge-reassigned { background: var(--amber-bg); color: var(--amber); }
.badge-location_added { background: var(--teal-bg); color: var(--teal); }
.badge-status_changed { background: var(--blue-50); color: var(--blue-700); }
.badge-priority_changed { background: var(--amber-bg); color: var(--amber); }
.badge-assigned { background: var(--teal-bg); color: var(--teal); }
.badge-low_stock_alert { background: var(--red-bg); color: var(--red); }

tr.stock-row-out { background: rgba(185, 28, 28, 0.04); }
tr.stock-row-low { background: rgba(180, 83, 9, 0.04); }

/* ===== Team / staff roles ===== */
.role-select {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 6px 9px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text);
  background: #fff;
}
.role-select:disabled { opacity: 0.6; cursor: not-allowed; background: var(--gray-bg); }
.staff-cell { display: flex; align-items: center; gap: 10px; }
.staff-cell strong { display: block; font-size: 13px; font-weight: 700; }
.staff-cell span { font-size: 11.5px; color: var(--text-muted); }
.you-tag { font-size: 9.5px; text-transform: uppercase; letter-spacing: 0.05em; background: var(--blue-50); color: var(--blue-700); padding: 2px 7px; border-radius: 20px; font-weight: 700; margin-left: 6px; }

/* ===== Landing page (light theme) ===== */
.landing { background: #ffffff; color: var(--text); overflow-x: hidden; }

.landing-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 18px 5vw;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: rgba(255,255,255,0.82);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: background 0.25s ease, box-shadow 0.25s ease, padding 0.25s ease, border-color 0.25s ease;
  flex-wrap: wrap;
}
.landing-header.scrolled {
  background: rgba(255,255,255,0.96);
  border-bottom-color: var(--border);
  box-shadow: 0 2px 16px rgba(16,24,40,0.06);
  padding: 12px 5vw;
}
.landing-brand { display: flex; align-items: center; gap: 10px; }
.landing-brand strong { color: var(--text); font-size: 16.5px; font-weight: 800; display: block; }
.landing-brand span { color: var(--text-muted); font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.09em; }
.landing-logo-img { height: 36px; width: auto; max-width: 190px; object-fit: contain; flex-shrink: 0; }

.landing-nav-toggle {
  display: none;
  width: 40px; height: 40px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text);
  align-items: center;
  justify-content: center;
}
.landing-nav-toggle svg { width: 19px; height: 19px; }

.landing-nav-group {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
}
.landing-links { display: flex; gap: 26px; flex-wrap: wrap; }
.landing-links a {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-muted);
  padding: 4px 0;
  border-bottom: 2px solid transparent;
}
.landing-links a:hover { color: var(--text); border-color: var(--blue-500); }

.landing-actions { display: flex; align-items: center; gap: 10px; }
.btn-lp-ghost {
  padding: 9px 17px;
  border-radius: 8px;
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 13.5px;
  font-weight: 700;
}
.btn-lp-ghost:hover { background: var(--gray-bg); }
.btn-lp-primary {
  padding: 9px 18px;
  border-radius: 8px;
  border: none;
  background: var(--blue-600);
  color: #fff;
  font-size: 13.5px;
  font-weight: 700;
  box-shadow: 0 6px 18px rgba(37, 99, 235, 0.28);
}
.btn-lp-primary:hover { background: var(--blue-700); }

/* ---- Hero ---- */
.lp-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding: 140px 6vw 100px;
}
.lp-hero-canvas {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: block;
  cursor: default;
}
.lp-hero-fade {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: radial-gradient(ellipse 62% 58% at 50% 40%, rgba(255,255,255,0.94) 0%, rgba(255,255,255,0.62) 48%, rgba(255,255,255,0) 76%);
}
.lp-hero-content { position: relative; z-index: 2; max-width: 760px; }
.lp-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--blue-700);
  background: var(--blue-50);
  border: 1px solid rgba(37, 99, 235, 0.25);
  padding: 6px 14px;
  border-radius: 30px;
  margin-bottom: 22px;
}
.lp-hero h1 {
  font-size: clamp(2.1rem, 5.4vw, 4rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 20px;
}
.lp-hero h1 em { font-style: normal; color: var(--blue-600); }
.lp-hero p.lead {
  font-size: clamp(15px, 1.6vw, 18.5px);
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto 34px;
  line-height: 1.65;
}
.lp-hero-ctas { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.btn-hero-primary {
  padding: 14px 26px;
  border-radius: 9px;
  border: none;
  background: var(--blue-600);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  box-shadow: 0 12px 30px rgba(37, 99, 235, 0.3);
}
.btn-hero-primary:hover { background: var(--blue-700); transform: translateY(-1px); }
.btn-hero-ghost {
  padding: 14px 26px;
  border-radius: 9px;
  border: 1.5px solid var(--border);
  color: var(--text);
  font-size: 15px;
  font-weight: 700;
  background: #fff;
}
.btn-hero-ghost:hover { background: var(--gray-bg); }

.lp-scroll-cue {
  position: absolute;
  bottom: 28px; left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  color: var(--text-faint);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  animation: lpBounce 2.2s ease-in-out infinite;
}
.lp-scroll-cue svg { width: 16px; height: 16px; }
@keyframes lpBounce { 0%, 100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, 8px); } }

/* ---- Reveal ---- */
.lp-reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s ease, transform 0.7s ease; }
.lp-reveal.in-view { opacity: 1; transform: translateY(0); }
.lp-reveal.d1 { transition-delay: 0.08s; }
.lp-reveal.d2 { transition-delay: 0.16s; }
.lp-reveal.d3 { transition-delay: 0.24s; }
.lp-reveal.d4 { transition-delay: 0.32s; }
.lp-reveal.d5 { transition-delay: 0.4s; }

/* ---- Section shell ---- */
.lp-section { padding: 110px 6vw; position: relative; }
.lp-section-head { max-width: 620px; margin: 0 auto 56px; text-align: center; }
.lp-kicker { font-size: 11.5px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--blue-600); margin-bottom: 12px; }
.lp-section-head h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); font-weight: 800; color: var(--text); letter-spacing: -0.01em; margin-bottom: 14px; }
.lp-section-head p { color: var(--text-muted); font-size: 15px; line-height: 1.65; }

/* ---- Feature grid ---- */
.lp-feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  max-width: 1180px;
  margin: 0 auto;
}
.lp-feature-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 26px 24px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.lp-feature-card:hover { transform: translateY(-4px); border-color: rgba(37,99,235,0.35); box-shadow: var(--shadow-md); }
.lp-feature-icon {
  width: 42px; height: 42px;
  border-radius: 10px;
  background: var(--blue-50);
  color: var(--blue-600);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}
.lp-feature-icon svg { width: 21px; height: 21px; }
.lp-feature-card h3 { font-size: 15.5px; font-weight: 800; color: var(--text); margin-bottom: 8px; display: flex; align-items: center; gap: 8px; }
.lp-feature-card p { font-size: 13px; color: var(--text-muted); line-height: 1.6; }
.lp-soon-chip { font-size: 9px; text-transform: uppercase; letter-spacing: 0.06em; background: var(--gray-bg); color: var(--text-muted); padding: 2px 7px; border-radius: 20px; font-weight: 700; }

/* ---- Product mockup ---- */
.lp-mockup-wrap {
  max-width: 1040px;
  margin: 0 auto;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: var(--card);
  box-shadow: 0 40px 90px rgba(16,24,40,0.14);
  overflow: hidden;
}
.lp-mockup-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px 18px; border-bottom: 1px solid var(--border); flex-wrap: wrap; background: var(--gray-bg); }
.lp-mockup-dots { display: flex; align-items: center; gap: 7px; flex-shrink: 0; }
.lp-mockup-dots span { width: 10px; height: 10px; border-radius: 50%; background: var(--border); }
.lp-mockup-tabs { display: flex; gap: 3px; background: #fff; border: 1px solid var(--border); padding: 4px; border-radius: 9px; flex-wrap: wrap; }
.lp-tab { border: none; background: transparent; color: var(--text-muted); font-size: 11.5px; font-weight: 700; padding: 7px 12px; border-radius: 7px; white-space: nowrap; transition: background 0.15s ease, color 0.15s ease; }
.lp-tab:hover { color: var(--text); }
.lp-tab.active { background: var(--blue-600); color: #fff; }

.lp-mockup-panel { display: none; animation: lpPanelIn 0.35s ease; }
.lp-mockup-panel.active { display: block; }
@keyframes lpPanelIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }

.lp-mock-hint { font-size: 12px; color: var(--text-muted); text-align: center; padding: 16px 20px 0; }

/* dispatch demo */
.lp-mock-dispatch { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; padding: 14px 20px 24px; }
.lp-mock-dcol { background: var(--gray-bg); border: 1px solid var(--border); border-radius: 10px; overflow: hidden; display: flex; flex-direction: column; }
.lp-mock-dcol-head { display: flex; align-items: center; justify-content: space-between; padding: 10px 12px; border-bottom: 1px solid var(--border); font-size: 12px; font-weight: 700; color: var(--text); }
.lp-mock-dcol-head b { font-family: 'IBM Plex Mono', monospace; background: #fff; border: 1px solid var(--border); padding: 1px 7px; border-radius: 10px; font-size: 11px; color: var(--text); font-weight: 700; }
.lp-mock-dcol-body { flex: 1; padding: 9px; display: flex; flex-direction: column; gap: 8px; min-height: 130px; border-radius: 0 0 10px 10px; transition: background 0.15s ease, box-shadow 0.15s ease; }
.lp-mock-dcol-body.drag-over { background: var(--blue-50); box-shadow: inset 0 0 0 1.5px rgba(37,99,235,0.5); }
.lp-mock-dcard { background: #fff; border: 1px solid var(--border); border-radius: 8px; padding: 10px 11px; cursor: grab; box-shadow: var(--shadow-sm); transition: opacity 0.15s ease, transform 0.15s ease; }
.lp-mock-dcard:active { cursor: grabbing; }
.lp-mock-dcard.dragging { opacity: 0.35; }
.lp-mock-dcard b { display: block; font-family: 'IBM Plex Mono', monospace; font-size: 10.5px; color: var(--blue-600); margin-bottom: 4px; font-weight: 700; }
.lp-mock-dcard span { font-size: 12px; color: var(--text); font-weight: 600; line-height: 1.35; }

/* orders demo */
.lp-mock-order-filters { display: flex; gap: 8px; padding: 14px 20px 4px; flex-wrap: wrap; }
.lp-mock-filter { border: 1px solid var(--border); background: #fff; color: var(--text-muted); font-size: 11.5px; font-weight: 700; padding: 6px 13px; border-radius: 20px; transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease; }
.lp-mock-filter:hover { color: var(--text); }
.lp-mock-filter.active { background: var(--blue-600); border-color: var(--blue-600); color: #fff; }
.lp-mock-order-table { display: flex; flex-direction: column; gap: 8px; padding: 14px 20px 22px; }
.lp-mock-order-row { display: flex; align-items: center; gap: 12px 16px; flex-wrap: wrap; padding: 12px 14px; background: var(--gray-bg); border: 1px solid var(--border); border-radius: 9px; transition: opacity 0.2s ease, transform 0.2s ease, max-height 0.2s ease; }
.lp-mock-order-row.hide { display: none; }
.lp-mock-order-id { font-family: 'IBM Plex Mono', monospace; font-size: 11px; color: var(--blue-600); flex-shrink: 0; width: 62px; }
.lp-mock-order-title { font-size: 12.5px; color: var(--text); font-weight: 600; flex: 1; min-width: 160px; }
.lp-mock-order-title small { display: block; font-size: 11px; color: var(--text-muted); font-weight: 500; margin-top: 2px; }
.lp-mock-badge { font-size: 10.5px; font-weight: 700; padding: 3px 10px; border-radius: 20px; white-space: nowrap; flex-shrink: 0; }
.lp-mock-badge.is-new { background: var(--blue-50); color: var(--blue-700); }
.lp-mock-badge.is-progress { background: var(--amber-bg); color: var(--amber); }
.lp-mock-badge.is-completed { background: var(--green-bg); color: var(--green); }
.lp-mock-badge.is-urgent { background: var(--red-bg); color: var(--red); }
.lp-mock-badge.is-medium { background: var(--blue-50); color: var(--blue-700); }
.lp-mock-badge.is-low { background: var(--gray-bg); color: var(--text-muted); }

/* technicians demo */
.lp-mock-tech-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; padding: 14px 20px 24px; }
.lp-mock-tech-card { background: #fff; border: 1px solid var(--border); border-radius: 10px; padding: 16px 12px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 7px; cursor: pointer; box-shadow: var(--shadow-sm); transition: transform 0.15s ease, border-color 0.15s ease, background 0.15s ease; }
.lp-mock-tech-card:hover { transform: translateY(-3px); border-color: rgba(37,99,235,0.4); }
.lp-mock-tech-card.selected { border-color: var(--blue-500); background: var(--blue-50); }
.lp-mock-tech-avatar { position: relative; width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 13px; color: #fff; }
.lp-mock-tech-dot { position: absolute; bottom: -1px; right: -1px; width: 11px; height: 11px; border-radius: 50%; border: 2px solid #fff; }
.lp-mock-tech-card strong { font-size: 12.5px; color: var(--text); font-weight: 800; }
.lp-mock-tech-card span.role { font-size: 10.5px; color: var(--text-muted); }
.lp-mock-tech-stars { font-size: 11px; font-weight: 700; color: var(--amber); letter-spacing: 1px; }
.lp-mock-tech-selected-tag { display: none; font-size: 9.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; background: var(--blue-600); color: #fff; padding: 2px 8px; border-radius: 10px; }
.lp-mock-tech-card.selected .lp-mock-tech-selected-tag { display: inline-block; }

.lp-mockup-body { padding: 26px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.lp-mock-kpi { background: var(--gray-bg); border: 1px solid var(--border); border-radius: 10px; padding: 14px 16px; }
.lp-mock-kpi span { display: block; font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-muted); margin-bottom: 8px; }
.lp-mock-kpi b { font-family: 'IBM Plex Mono', monospace; font-size: 21px; color: var(--text); }
.lp-mock-row {
  grid-column: 1 / -1;
  background: var(--gray-bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px 18px;
}
.lp-mock-bar-line { display: flex; align-items: center; gap: 10px; margin-bottom: 11px; }
.lp-mock-bar-line:last-child { margin-bottom: 0; }
.lp-mock-bar-label { width: 96px; font-size: 11.5px; color: var(--text-muted); flex-shrink: 0; }
.lp-mock-bar-track { flex: 1; height: 9px; border-radius: 5px; background: var(--border); overflow: hidden; }
.lp-mock-bar-fill { height: 100%; border-radius: 5px; width: 0; transition: width 1.4s cubic-bezier(.2,.8,.2,1); }
.lp-mock-card-list { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.lp-mock-card { background: #fff; border: 1px solid var(--border); border-radius: 10px; padding: 13px 15px; box-shadow: var(--shadow-sm); }
.lp-mock-card-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.lp-mock-card-top span { font-family: 'IBM Plex Mono', monospace; font-size: 10.5px; color: var(--blue-600); }
.lp-mock-card p { font-size: 12px; color: var(--text); font-weight: 600; margin-bottom: 8px; }

/* ---- Parallax banners ---- */
.lp-banner {
  position: relative;
  min-height: 62vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding: 60px 6vw;
}
.lp-banner-bg {
  position: absolute;
  inset: -12% -4%;
  background-size: cover;
  background-position: center;
  will-change: transform;
  z-index: 0;
}
.lp-banner.dark .lp-banner-bg { background-image: linear-gradient(180deg, rgba(8,13,26,0.75), rgba(8,13,26,0.85)), url('assets/parallax-trails.jpg'); }
.lp-banner.light .lp-banner-bg { background-image: linear-gradient(180deg, rgba(8,13,26,0.55), rgba(8,13,26,0.88)), url('assets/parallax-architecture.jpg'); }
.lp-banner-content { position: relative; z-index: 1; max-width: 720px; }
.lp-banner-content p.tagline {
  font-size: clamp(1.4rem, 3vw, 2.1rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.4;
  letter-spacing: -0.01em;
}
.lp-banner-content p.tagline em { color: var(--blue-500); font-style: normal; }
.lp-photo-credit { position: absolute; bottom: 10px; right: 16px; font-size: 10px; color: rgba(255,255,255,0.35); z-index: 1; }

/* ---- Steps ---- */
.lp-steps { max-width: 900px; margin: 0 auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; position: relative; }
.lp-step { text-align: center; position: relative; }
.lp-step-num {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: var(--blue-50);
  border: 1.5px solid rgba(37,99,235,0.35);
  color: var(--blue-600);
  font-family: 'IBM Plex Mono', monospace;
  font-weight: 700;
  font-size: 17px;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 18px;
}
.lp-step h3 { font-size: 15.5px; font-weight: 800; color: var(--text); margin-bottom: 8px; }
.lp-step p { font-size: 13px; color: var(--text-muted); line-height: 1.6; }

/* ---- Roles strip ---- */
.lp-roles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; max-width: 1040px; margin: 0 auto; }
.lp-role-card { background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 20px; box-shadow: var(--shadow-sm); }
.lp-role-card strong { display: block; color: var(--text); font-size: 14px; font-weight: 800; margin-bottom: 6px; }
.lp-role-card span { font-size: 12px; color: var(--text-muted); line-height: 1.55; }

/* ---- Final CTA ---- */
.lp-cta { text-align: center; padding: 120px 6vw; background: linear-gradient(180deg, #fff, var(--blue-50)); }
.lp-cta h2 { font-size: clamp(1.8rem, 4vw, 2.7rem); font-weight: 800; color: var(--text); letter-spacing: -0.02em; margin-bottom: 16px; }
.lp-cta p { color: var(--text-muted); font-size: 15.5px; margin-bottom: 32px; }

/* ---- Footer ---- */
.lp-footer {
  border-top: 1px solid var(--border);
  background: #fff;
  padding: 40px 6vw;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.lp-footer-brand { display: flex; align-items: center; gap: 10px; }
.lp-footer-brand .landing-logo-img { height: 26px; }
.lp-footer-brand strong { color: var(--text); font-size: 14px; font-weight: 800; }
.lp-footer-links { display: flex; gap: 22px; flex-wrap: wrap; }
.lp-footer-links a { font-size: 12.5px; color: var(--text-muted); font-weight: 600; }
.lp-footer-links a:hover { color: var(--text); }
.lp-footer-copy { font-size: 11.5px; color: var(--text-faint); width: 100%; text-align: center; margin-top: 8px; }

@media (max-width: 980px) {
  .lp-feature-grid { grid-template-columns: repeat(2, 1fr); }
  .lp-mock-card-list { grid-template-columns: 1fr; }
  .lp-mockup-body { grid-template-columns: repeat(2, 1fr); }
  .lp-roles { grid-template-columns: repeat(2, 1fr); }
  .lp-mock-dispatch { grid-template-columns: 1fr; }
  .lp-mock-tech-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 760px) {
  .landing-nav-toggle { display: flex; }
  .landing-nav-group {
    display: none;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 8px 20px rgba(16,24,40,0.08);
    flex-direction: column;
    align-items: flex-start;
    padding: 18px 6vw 24px;
    gap: 18px;
    border-bottom: 1px solid var(--border);
  }
  .landing-nav-group.open { display: flex; }
  .landing-links { flex-direction: column; gap: 14px; width: 100%; }
  .landing-actions { width: 100%; }
  .landing-actions .btn-lp-ghost, .landing-actions .btn-lp-primary { flex: 1; text-align: center; }
  .lp-feature-grid { grid-template-columns: 1fr; }
  .lp-mockup-body { grid-template-columns: 1fr; padding: 18px; }
  .lp-mockup-bar { justify-content: center; }
  .lp-mockup-tabs { width: 100%; justify-content: center; }
  .lp-mock-tech-grid { grid-template-columns: 1fr; }
  .lp-mock-order-id { width: auto; }
  .lp-steps { grid-template-columns: 1fr; gap: 34px; }
  .lp-roles { grid-template-columns: 1fr; }
  .lp-section { padding: 80px 6vw; }
  .lp-cta { padding: 80px 6vw; }
}

/* ===== Responsive ===== */
@media (max-width: 1180px) {
  .kpi-grid { grid-template-columns: repeat(2, 1fr); }
  .panel-grid { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  .sidebar { transform: translateX(-100%); }
  .sidebar.open { transform: translateX(0); }
  .sidebar-overlay.open { display: block; }
  .main { margin-left: 0; }
  .sidebar-toggle { display: flex; }
  .content { padding: 18px 16px 50px; }
  .topbar { padding: 12px 16px; }
}

@media (max-width: 560px) {
  .kpi-grid { grid-template-columns: 1fr; }
  .kpi-value { font-size: 26px; }
  .user-meta { display: none; }
  .topbar-date { display: none; }
  .auth-card { padding: 28px 20px 24px; }
  .wo-toolbar { padding: 14px; }
  .wo-filters { width: 100%; }
  .wo-filters select { flex: 1; min-width: 0; }
  .drawer-grid { grid-template-columns: 1fr; }
  .dispatch-col { flex-basis: 240px; width: 240px; max-height: calc(100vh - 340px); }
  .assign-modal { max-width: 92vw; }
  .customer-grid { grid-template-columns: 1fr; }
  .modal-box { max-width: 92vw; }
}
