/* FoundryOS App CSS — Clean operational UI */

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

body {
  font-family: 'DM Sans', system-ui, sans-serif;
  background: #f0f2f5;
  color: #1a1a2e;
  font-size: 15px;
  line-height: 1.5;
}

a { color: #2563eb; text-decoration: none; }
a:hover { text-decoration: underline; }

/* App Nav */
.app-nav {
  background: #1a1a2e;
  color: white;
  display: flex;
  align-items: center;
  padding: 0 24px;
  height: 56px;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.app-nav-brand a {
  display: flex;
  align-items: center;
  gap: 8px;
  color: white;
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 18px;
  text-decoration: none;
}
.brand-icon { font-size: 22px; }
.brand-name { letter-spacing: -0.02em; }

.app-nav-links {
  display: flex;
  gap: 4px;
  margin-left: 32px;
  flex: 1;
}

.nav-link {
  color: rgba(255,255,255,0.65);
  font-size: 14px;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: 6px;
  transition: all 0.15s;
  text-decoration: none;
}
.nav-link:hover { color: white; background: rgba(255,255,255,0.1); text-decoration: none; }
.nav-link.active { color: white; background: rgba(255,255,255,0.15); }

.nav-link-add {
  background: #2563eb;
  color: white !important;
}
.nav-link-add:hover { background: #1d4ed8; }

.app-nav-right { margin-left: auto; }
.nav-time { font-size: 13px; color: rgba(255,255,255,0.6); font-variant-numeric: tabular-nums; }

/* App Main */
.app-main { min-height: calc(100vh - 56px); }

/* App Footer */
.app-footer {
  background: #1C1F2E;
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 0 24px;
}
.app-footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.app-footer-copy {
  font-size: 12px;
  color: rgba(255,255,255,0.4);
  white-space: nowrap;
}
.app-footer-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}
.app-footer-nav a {
  font-size: 12px;
  color: rgba(255,255,255,0.5);
  padding: 4px 10px;
  border-radius: 5px;
  text-decoration: none;
  transition: color 0.15s, background 0.15s;
}
.app-footer-nav a:hover {
  color: white;
  background: rgba(255,255,255,0.08);
  text-decoration: none;
}

/* Page containers */
.dispatch-page { padding: 24px; max-width: 1400px; margin: 0 auto; }
.page-container { padding: 24px; max-width: 1200px; margin: 0 auto; }
.page-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 24px; }
.page-title { font-family: 'Syne', sans-serif; font-size: 26px; font-weight: 700; color: #1a1a2e; margin-bottom: 4px; }
.page-subtitle { color: #6b7280; font-size: 14px; }

/* SMS Usage Meter */
.sms-meter-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 12px 16px;
  margin-bottom: 16px;
}
.sms-meter-label { min-width: 200px; }
.sms-meter-title { font-size: 13px; font-weight: 600; color: #1a1a2e; display: block; }
.sms-meter-sub { font-size: 12px; color: #6b7280; }
.sms-meter-progress-wrap {
  flex: 1;
  height: 8px;
  background: #f3f4f6;
  border-radius: 4px;
  overflow: hidden;
}
.sms-meter-fill {
  height: 100%;
  border-radius: 4px;
  background: #059669;
  transition: width 0.5s ease;
}
.sms-meter-fill.warn { background: #d97706; }
.sms-meter-fill.over { background: #dc2626; }
.sms-meter-right { font-size: 12px; }
.sms-meter-link a { color: #2563eb; font-weight: 500; text-decoration: none; }
.sms-meter-link a:hover { text-decoration: underline; }

/* Stats row */
.stats-row { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; margin-bottom: 24px; }
.stat-card { background: white; border-radius: 10px; padding: 16px 12px; border: 1px solid #e5e7eb; text-align: center; cursor: pointer; transition: all 0.15s; }
.stat-card:hover { border-color: #cbd5e1; background: #f9fafb; }
.stat-card.stat-active { border-color: #2563eb; background: #eff6ff; box-shadow: 0 0 0 2px rgba(37,99,235,0.15); }
.stat-value { font-family: 'Syne', sans-serif; font-size: 30px; font-weight: 700; line-height: 1; }
.stat-label { font-size: 11px; color: #9ca3af; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; margin-top: 4px; }
.stat-pending-val { color: #9ca3af; }
.stat-assigned-val { color: #2563eb; }
.stat-enroute-val { color: #7c3aed; }
.stat-progress-val { color: #d97706; }
.stat-done-val { color: #059669; }

/* Dispatch grid */
.dispatch-grid { display: grid; grid-template-columns: 280px 1fr; gap: 20px; }

/* Panels */
.panel { background: white; border-radius: 12px; border: 1px solid #e5e7eb; overflow: hidden; }
.panel-header { padding: 14px 20px; border-bottom: 1px solid #f0f0f0; display: flex; justify-content: space-between; align-items: center; }
.panel-title { font-family: 'Syne', sans-serif; font-size: 15px; font-weight: 600; color: #1a1a2e; }
.panel-count { font-size: 12px; color: #9ca3af; }

/* Tech board */
.tech-list { padding: 12px; display: flex; flex-direction: column; gap: 6px; }

.tech-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border-radius: 8px;
  background: #f9fafb;
  transition: all 0.15s;
  cursor: pointer;
}
.tech-card:hover { background: #f3f4f6; }
.tech-card.tech-offline { opacity: 0.45; }
.tech-card.tech-urgent { border: 2px solid #ef4444; background: #fff5f5; }
.tech-card.tech-selected { border: 2px solid #2563eb; background: #eff6ff; box-shadow: 0 0 0 2px rgba(37,99,235,0.15); }

.tech-avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: #1a1a2e;
  color: white;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700; flex-shrink: 0; letter-spacing: -0.02em;
}
.tech-info { flex: 1; min-width: 0; }
.tech-name { font-size: 13px; font-weight: 600; color: #1a1a2e; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tech-status { font-size: 11px; margin-top: 2px; }
.tech-status.available { color: #059669; }
.tech-status.offline { color: #9ca3af; }
.tech-skills { font-size: 10px; color: #9ca3af; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.tech-jobs-badge {
  width: 26px; height: 26px;
  border-radius: 50%;
  background: #e5e7eb;
  color: #9ca3af;
  font-size: 12px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.tech-jobs-badge.has-jobs { background: #1a1a2e; color: white; }

/* Job queue */
.job-list { padding: 12px; display: flex; flex-direction: column; gap: 8px; max-height: calc(100vh - 300px); overflow-y: auto; }

.job-card {
  padding: 14px 16px;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
  background: #fafafa;
  cursor: pointer;
  transition: all 0.15s;
}
.job-card:hover { border-color: #2563eb; box-shadow: 0 2px 8px rgba(37,99,235,0.08); transform: translateY(-1px); }
.job-card.urgency-urgent { border-color: #ef4444; background: #fff5f5; }
.job-card.urgency-high { border-color: #f97316; background: #fff7ed; }

.job-card-top { display: flex; align-items: center; gap: 6px; margin-bottom: 6px; }
.job-id { font-size: 11px; font-weight: 600; color: #9ca3af; }
.urgency-tag { font-size: 10px; font-weight: 700; padding: 2px 6px; border-radius: 4px; }
.urgent-tag { background: #ef4444; color: white; }
.high-tag { background: #f97316; color: white; }

.job-status-badge { font-size: 10px; font-weight: 600; padding: 2px 8px; border-radius: 4px; text-transform: uppercase; letter-spacing: 0.03em; }
.status-pending { background: #f3f4f6; color: #6b7280; }
.status-assigned { background: #dbeafe; color: #2563eb; }
.status-en-route { background: #ede9fe; color: #7c3aed; }
.status-in-progress { background: #fef3c7; color: #b45309; }
.status-completed { background: #d1fae5; color: #065f46; }

.job-service { font-size: 14px; font-weight: 600; color: #1a1a2e; margin-bottom: 4px; }
.job-client-name { font-size: 13px; color: #374151; font-weight: 500; }
.job-address { font-size: 12px; color: #9ca3af; margin-bottom: 8px; }
.job-card-footer { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
.job-tech { font-size: 12px; color: #2563eb; font-weight: 500; flex: 1; }
.job-tech.unassigned { color: #f97316; }
.job-est { font-size: 11px; color: #9ca3af; }
.job-arrow { font-size: 12px; color: #2563eb; margin-left: auto; }

.filter-select { padding: 4px 8px; border-radius: 6px; border: 1px solid #e5e7eb; font-size: 12px; background: white; }

/* Header actions */
.header-actions { display: flex; align-items: center; gap: 8px; }
.big-badge { font-size: 12px !important; padding: 4px 12px !important; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 6px; padding: 8px 16px; border-radius: 8px; font-size: 14px; font-weight: 500; cursor: pointer; border: none; transition: all 0.15s; text-decoration: none; font-family: 'DM Sans', sans-serif; }
.btn:hover { text-decoration: none; }
.btn-primary { background: #2563eb; color: white; }
.btn-primary:hover { background: #1d4ed8; }
.btn-secondary { background: #f3f4f6; color: #374151; border: 1px solid #e5e7eb; }
.btn-secondary:hover { background: #e5e7eb; }
.btn-warning { background: #d97706; color: white; }
.btn-warning:hover { background: #b45309; }
.btn-success { background: #059669; color: white; }
.btn-success:hover { background: #047857; }
.btn-danger { background: #dc2626; color: white; }
.btn-danger:hover { background: #b91c1c; }
.btn-sm { padding: 4px 10px; font-size: 12px; }
.btn-lg { padding: 12px 24px; font-size: 16px; font-weight: 600; }
.dispatch-actions { display: flex; gap: 8px; }

/* Jobs table */
.jobs-table-wrap { background: white; border-radius: 12px; border: 1px solid #e5e7eb; overflow: hidden; }
.jobs-table { width: 100%; border-collapse: collapse; }
.jobs-table th { text-align: left; padding: 12px 16px; background: #f9fafb; border-bottom: 1px solid #e5e7eb; font-size: 12px; font-weight: 600; color: #6b7280; text-transform: uppercase; letter-spacing: 0.05em; }
.jobs-table td { padding: 12px 16px; border-bottom: 1px solid #f0f0f0; font-size: 14px; }
.jobs-row:last-child td { border-bottom: none; }
.jobs-row:hover { background: #f9fafb; }
.jobs-row.row-urgent { background: #fff5f5; }
.jobs-row.row-high { background: #fff7ed; }
.cell-id { color: #9ca3af; font-size: 12px; }
.cell-service strong { display: block; }
.cell-desc { font-size: 12px; color: #9ca3af; margin-top: 2px; }
.cell-sub { font-size: 12px; color: #9ca3af; }
.cell-tech.unassigned { color: #f97316; }

.urgency-pill { display: inline-block; padding: 2px 8px; border-radius: 4px; font-size: 11px; font-weight: 600; text-transform: uppercase; }
.urgency-pill.urgent { background: #fef2f2; color: #dc2626; }
.urgency-pill.high { background: #fff7ed; color: #ea580c; }
.urgency-pill.normal { background: #f3f4f6; color: #6b7280; }

/* Job form */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-bottom: 24px; }
.form-section { background: white; border-radius: 12px; border: 1px solid #e5e7eb; padding: 20px; }
.section-title { font-family: 'Syne', sans-serif; font-size: 14px; font-weight: 600; color: #1a1a2e; margin-bottom: 16px; padding-bottom: 8px; border-bottom: 1px solid #f0f0f0; }
.form-divider { text-align: center; color: #9ca3af; font-size: 12px; margin: 12px 0; position: relative; }
.form-divider::before, .form-divider::after { content: ''; position: absolute; top: 50%; width: 40%; height: 1px; background: #e5e7eb; }
.form-divider::before { left: 0; }
.form-divider::after { right: 0; }
.form-group { margin-bottom: 14px; }
.form-group label { display: block; font-size: 13px; font-weight: 500; color: #374151; margin-bottom: 4px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
input[type="text"], input[type="email"], input[type="datetime-local"], input[type="tel"], select, textarea {
  width: 100%; padding: 8px 12px; border: 1px solid #e5e7eb; border-radius: 8px; font-size: 14px; font-family: 'DM Sans', sans-serif; background: white; transition: border 0.15s;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: #2563eb; box-shadow: 0 0 0 3px rgba(37,99,235,0.1); }
textarea { resize: vertical; min-height: 80px; }
.generated-scope { margin-bottom: 24px; }
.scope-list { list-style: none; padding: 0; }
.scope-list li { padding: 6px 12px; background: #f0f5ff; border-radius: 6px; margin-bottom: 6px; font-size: 13px; color: #1e40af; border-left: 3px solid #2563eb; }
.materials-row { margin-top: 12px; font-size: 13px; }
.materials-row .info-label { font-weight: 600; color: #374151; }
.form-actions { display: flex; justify-content: flex-end; margin-bottom: 24px; }
.form-result { margin-bottom: 24px; }
.success-msg { background: #d1fae5; color: #065f46; padding: 12px 16px; border-radius: 8px; font-weight: 500; }
.error-msg { background: #fef2f2; color: #dc2626; padding: 12px 16px; border-radius: 8px; font-weight: 500; }

/* Job detail */
.detail-grid { display: grid; grid-template-columns: 1fr 360px; gap: 20px; }
.detail-section { background: white; border-radius: 12px; border: 1px solid #e5e7eb; padding: 20px; margin-bottom: 16px; }
.info-row { display: flex; gap: 12px; padding: 6px 0; border-bottom: 1px solid #f0f0f0; font-size: 14px; }
.info-row:last-child { border-bottom: none; }
.info-label { font-weight: 600; color: #6b7280; min-width: 80px; }
.info-value { color: #1a1a2e; }
.info-link { color: #2563eb; font-size: 13px; font-weight: 500; }
.info-link:hover { text-decoration: underline; }
.job-description { font-size: 14px; line-height: 1.6; color: #374151; }
.scope-display { list-style: none; padding: 0; }
.scope-display li { padding: 6px 0; font-size: 14px; border-bottom: 1px solid #f0f0f0; color: #374151; display: flex; align-items: center; gap: 8px; }
.scope-display li::before { content: '○'; color: #9ca3af; }
.empty-note { color: #9ca3af; font-size: 14px; font-style: italic; }
.status-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.status-select { padding: 8px 12px; border: 1px solid #d1d5db; border-radius: 8px; font-size: 14px; font-family: 'DM Sans', sans-serif; background: #fff; color: #374151; cursor: pointer; min-width: 160px; }
.status-select:focus { outline: 2px solid #2563eb; border-color: #2563eb; }
.reassign-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.reassign-select { flex: 1; min-width: 160px; }

/* Sidebar */
.detail-sidebar {}
.sidebar-section { background: white; border-radius: 12px; border: 1px solid #e5e7eb; padding: 20px; margin-bottom: 16px; }
.checklist { list-style: none; padding: 0; }
.checklist-item { padding: 8px 0; border-bottom: 1px solid #f0f0f0; }
.checklist-item:last-child { border-bottom: none; }
.checklist-item label { display: flex; align-items: flex-start; gap: 8px; cursor: pointer; }
.checklist-item input[type="checkbox"] { margin-top: 3px; accent-color: #2563eb; width: 16px; height: 16px; }
.checklist-item.checked span { text-decoration: line-through; color: #9ca3af; }
.notes-list { list-style: none; padding: 0; margin-bottom: 12px; }
.note-item { padding: 10px 0; border-bottom: 1px solid #f0f0f0; }
.note-content { font-size: 14px; color: #374151; margin-bottom: 4px; }
.note-meta { font-size: 11px; color: #9ca3af; }
.note-form { display: flex; flex-direction: column; gap: 8px; }
.note-form textarea { font-size: 13px; }
.note-item { display: flex; gap: 8px; align-items: flex-start; }
.note-body { flex: 1; }
.note-actions { display: flex; gap: 4px; flex-shrink: 0; opacity: 0; transition: opacity 0.15s; }
.note-item:hover .note-actions { opacity: 1; }
.note-btn { background: none; border: none; cursor: pointer; padding: 2px; font-size: 13px; line-height: 1; }
.note-btn:hover { opacity: 0.7; }
.note-btn-danger:hover { color: #dc2626; }
.note-edit-textarea { width: 100%; font-size: 14px; color: #374151; border: 1px solid #d1d5db; border-radius: 6px; padding: 4px 8px; font-family: inherit; resize: vertical; min-height: 60px; }

/* Techs grid */
.techs-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(360px, 1fr)); gap: 20px; }
.tech-profile-card { background: white; border-radius: 12px; border: 1px solid #e5e7eb; overflow: hidden; transition: box-shadow 0.2s; }
.tech-profile-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.08); }
.tech-profile-card.has-urgent { border-color: #ef4444; }
.tech-profile-header { display: flex; align-items: center; gap: 16px; padding: 20px; border-bottom: 1px solid #f0f0f0; }
.tech-profile-avatar { width: 56px; height: 56px; border-radius: 50%; background: #1a1a2e; color: white; display: flex; align-items: center; justify-content: center; font-size: 18px; font-weight: 700; flex-shrink: 0; }
.tech-profile-info { flex: 1; }
.tech-profile-name { font-family: 'Syne', sans-serif; font-size: 18px; font-weight: 700; color: #1a1a2e; }
.tech-profile-status { font-size: 13px; margin-top: 2px; }
.tech-profile-status.available { color: #059669; }
.tech-profile-status.offline { color: #9ca3af; }
.tech-profile-skills { font-size: 12px; color: #9ca3af; margin-top: 4px; }
.tech-profile-stats { display: flex; gap: 16px; }
.prof-stat { text-align: center; }
.prof-num { display: block; font-family: 'Syne', sans-serif; font-size: 24px; font-weight: 700; color: #1a1a2e; }
.prof-label { font-size: 11px; color: #9ca3af; text-transform: uppercase; letter-spacing: 0.05em; }
.tech-active-jobs { padding: 16px; }
.sub-title { font-size: 12px; font-weight: 600; color: #6b7280; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 8px; }
.mini-job-card { padding: 10px; background: #f9fafb; border-radius: 8px; margin-bottom: 6px; cursor: pointer; transition: background 0.15s; }
.mini-job-card:hover { background: #f3f4f6; }
.mini-job-top { display: flex; align-items: center; gap: 6px; margin-bottom: 4px; }
.mini-job-service { font-size: 13px; font-weight: 600; color: #1a1a2e; }
.mini-job-client { font-size: 12px; color: #374151; }
.mini-job-address { font-size: 11px; color: #9ca3af; }
.tech-empty { padding: 16px; text-align: center; color: #9ca3af; font-size: 14px; }
.tech-profile-actions { padding: 12px 16px; border-top: 1px solid #f0f0f0; display: flex; gap: 8px; }

/* Mobile */
.tech-body { background: #0f172a; }
.tech-nav { background: #1a1a2e; color: white; display: flex; align-items: center; justify-content: space-between; padding: 0 16px; height: 52px; position: sticky; top: 0; z-index: 100; }
.tech-nav-brand { display: flex; align-items: center; gap: 8px; }
.tech-name-label { font-size: 14px; font-weight: 600; margin-left: 16px; padding-left: 16px; border-left: 1px solid rgba(255,255,255,0.2); color: #60a5fa; }
.tech-nav-back { color: rgba(255,255,255,0.7); font-size: 14px; text-decoration: none; }
.tech-nav-back:hover { color: white; }
.tech-mobile-page { padding: 16px; max-width: 480px; margin: 0 auto; }
.mobile-summary { display: flex; gap: 12px; margin-bottom: 20px; }
.mobile-stat { flex: 1; background: rgba(255,255,255,0.08); border-radius: 12px; padding: 12px; text-align: center; }
.mobile-num { display: block; font-family: 'Syne', sans-serif; font-size: 28px; font-weight: 700; color: white; }
.mobile-label { font-size: 11px; color: rgba(255,255,255,0.5); text-transform: uppercase; letter-spacing: 0.05em; margin-top: 2px; }
.tech-status-dot { }
.tech-status-dot.available { color: #4ade80 !important; }
.tech-status-dot.offline { color: #9ca3af !important; }
.mobile-empty { text-align: center; padding: 40px 20px; color: rgba(255,255,255,0.6); }
.empty-icon { font-size: 48px; margin-bottom: 12px; }
.mobile-job-card { background: rgba(255,255,255,0.08); border-radius: 12px; padding: 16px; margin-bottom: 12px; border: 1px solid rgba(255,255,255,0.1); }
.mobile-job-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 12px; }
.mobile-job-id { font-size: 12px; color: rgba(255,255,255,0.5); }
.mobile-job-service { font-size: 18px; font-weight: 700; color: white; font-family: 'Syne', sans-serif; }
.mobile-client-info { margin-bottom: 12px; }
.mobile-client-name { font-size: 15px; color: white; margin-bottom: 4px; }
.mobile-client-phone, .mobile-client-address { font-size: 13px; color: rgba(255,255,255,0.6); margin-bottom: 2px; }
.mobile-job-desc { font-size: 13px; color: rgba(255,255,255,0.5); margin-bottom: 12px; }
.mobile-status-actions { display: flex; gap: 8px; margin-bottom: 12px; }
.mobile-btn { flex: 1; padding: 12px; border-radius: 8px; font-size: 14px; font-weight: 600; border: none; cursor: pointer; transition: opacity 0.15s; font-family: 'DM Sans', sans-serif; }
.mobile-btn:hover { opacity: 0.85; }
.mobile-btn-primary { background: #2563eb; color: white; }
.mobile-btn-warning { background: #d97706; color: white; }
.mobile-btn-success { background: #059669; color: white; }
.mobile-checklist { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 12px; }
.mobile-checklist-header { font-size: 12px; color: rgba(255,255,255,0.5); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 8px; }
.mobile-check-item { display: flex; align-items: center; gap: 8px; padding: 8px 0; border-bottom: 1px solid rgba(255,255,255,0.05); color: rgba(255,255,255,0.7); font-size: 13px; cursor: pointer; }
.mobile-check-item input { accent-color: #2563eb; }
.mobile-done-section { margin-top: 24px; }
.mobile-section-title { font-size: 13px; color: rgba(255,255,255,0.5); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 8px; }
.mobile-done-item { padding: 8px; color: rgba(255,255,255,0.5); font-size: 13px; }

/* Mobile CSS override for nav colors */
.tech-body .app-nav { background: #1a1a2e; }
.tech-body .app-nav-links { margin-left: 16px; }
.tech-body .nav-link { color: rgba(255,255,255,0.5); font-size: 12px; padding: 4px 8px; }
.tech-body .nav-link.active { color: white; background: rgba(255,255,255,0.15); }
.tech-body .brand-icon, .tech-body .brand-name { color: white; }

/* Responsive */
@media (max-width: 900px) {
  .stats-row { grid-template-columns: repeat(3, 1fr); }
  .dispatch-grid { grid-template-columns: 1fr; }
  .detail-grid { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .techs-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .app-nav { padding: 0 12px; }
  .app-nav-links { margin-left: 12px; }
  .nav-link { font-size: 12px; padding: 4px 8px; }
  .dispatch-page, .page-container { padding: 16px; }
  .jobs-table { font-size: 12px; }
  .jobs-table th, .jobs-table td { padding: 8px 10px; }
}