/* ============================================================
   ON POINT HOME SERVICES — COMPONENT STYLES
   Premium iOS-first components
   ============================================================ */

/* ── STATUS BADGES ─────────────────────────────────────────── */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: var(--font-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
}
.status-badge::before {
  content: '';
  width: 5px; height: 5px;
  border-radius: 50%;
  background: currentColor;
  flex-shrink: 0;
}
.sb-new        { background: rgba(96,165,250,0.13);   color: var(--s-new); }
.sb-scheduled  { background: rgba(167,139,250,0.13);  color: var(--s-scheduled); }
.sb-inprogress { background: rgba(251,191,36,0.13);   color: var(--s-inprogress); }
.sb-closed     { background: rgba(52,211,153,0.13);   color: var(--s-closed); }
.sb-paid       { background: rgba(74,222,128,0.13);   color: var(--s-paid); }

/* ── JOB CARDS ─────────────────────────────────────────────── */
.job-card {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  margin-bottom: 10px;
  overflow: hidden;
  transition: transform 0.13s cubic-bezier(0.34,1.4,0.64,1), border-color 0.15s;
  cursor: pointer;
  position: relative;
  box-shadow: var(--shadow-card);
}
.job-card:active { transform: scale(0.982); border-color: var(--color-border-2); }

.job-card::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
}
.job-card.jc-new::before        { background: var(--s-new); }
.job-card.jc-scheduled::before  { background: var(--s-scheduled); }
.job-card.jc-inprogress::before { background: var(--s-inprogress); }
.job-card.jc-closed::before     { background: var(--s-closed); }
.job-card.jc-paid::before       { background: var(--s-paid); }

.job-card-inner { padding: 14px 14px 13px 18px; }

.job-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--sp-sm);
  margin-bottom: 7px;
}

.job-card-name {
  font-size: var(--font-md);
  font-weight: 700;
  color: var(--color-text);
  line-height: 1.2;
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: -0.2px;
}

.job-card-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 5px;
  flex-shrink: 0;
}

.job-card-total {
  font-size: var(--font-md);
  font-weight: 800;
  color: var(--color-text);
  letter-spacing: -0.4px;
}

.job-card-mid {
  display: flex;
  align-items: center;
  gap: var(--sp-sm);
  flex-wrap: wrap;
  margin-bottom: 9px;
}

.job-card-address {
  font-size: var(--font-sm);
  color: var(--color-text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
  min-width: 0;
}

.job-card-date {
  font-size: var(--font-xs);
  color: var(--color-text-faint);
  font-weight: 600;
  white-space: nowrap;
}

.job-card-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.job-card-tech {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: var(--font-xs);
  font-weight: 700;
  padding: 3px 9px;
  border-radius: var(--radius-full);
  background: var(--color-surface-2);
  color: var(--color-text-muted);
  border: 1px solid var(--color-border);
}
.tech-dot { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; }

.job-card-actions { display: flex; gap: var(--sp-xs); }

.call-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(34,197,94,0.1);
  border: 1px solid rgba(34,197,94,0.18);
  color: var(--color-success);
  font-size: 16px;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s, transform 0.12s;
  flex-shrink: 0;
}
.call-btn:active { background: rgba(34,197,94,0.22); transform: scale(0.91); }

.returning-badge {
  font-size: var(--font-xs);
  font-weight: 700;
  color: var(--color-warning);
  background: rgba(245,158,11,0.1);
  padding: 3px 9px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(245,158,11,0.18);
}

/* ── JOB LIST ──────────────────────────────────────────────── */
.job-list { display: flex; flex-direction: column; gap: 0; }

/* ── SEARCH & FILTER ───────────────────────────────────────── */
.search-container { position: relative; margin-bottom: var(--sp-sm); }

.search-icon {
  position: absolute;
  left: 14px; top: 50%; transform: translateY(-50%);
  font-size: 15px;
  color: var(--color-text-faint);
  pointer-events: none;
}

.search-input {
  width: 100%;
  min-height: 46px;
  padding: 0 14px 0 40px;
  background: var(--color-surface-2);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-full);
  color: var(--color-text);
  font-size: var(--font-md);
  -webkit-appearance: none;
  appearance: none;
  transition: border-color 0.15s;
}
.search-input:focus { outline: none; border-color: rgba(0,0,0,0.28); }
.search-input::placeholder { color: var(--color-text-faint); }

.filter-chips {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: var(--sp-xs);
  margin-bottom: var(--sp-md);
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.filter-chips::-webkit-scrollbar { display: none; }

.chip {
  flex-shrink: 0;
  padding: 7px 16px;
  border-radius: var(--radius-full);
  border: 1.5px solid var(--color-border);
  background: var(--color-surface-2);
  color: var(--color-text-muted);
  font-size: var(--font-sm);
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s;
}
.chip:active { transform: scale(0.93); }
.chip.active {
  border-color: #000000;
  background: #000000;
  color: #ffffff;
}

/* ── REVENUE GRID ──────────────────────────────────────────── */
.revenue-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: var(--sp-sm);
  margin-bottom: var(--sp-md);
}

@media (max-width: 380px) {
  .revenue-grid { grid-template-columns: 1fr 1fr; }
  .revenue-card.featured { grid-column: 1 / -1; }
}

.revenue-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 14px var(--sp-md);
  cursor: pointer;
  transition: transform 0.13s cubic-bezier(0.34,1.4,0.64,1), border-color 0.15s;
  min-height: 92px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-card);
  position: relative;
  overflow: hidden;
}
.revenue-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.06) 0%, transparent 55%);
  pointer-events: none;
}
.revenue-card:active { transform: scale(0.96); }
.revenue-card-static { cursor: default; }
.revenue-card-static:active { transform: none; }
.revenue-card.featured {
  border-color: transparent;
  background: linear-gradient(135deg, #1C1C1E 0%, #000000 100%);
}

.rev-label  { font-size: var(--font-xs); font-weight: 700; text-transform: uppercase; letter-spacing: 0.9px; color: var(--color-text-faint); }
.rev-amount { font-size: var(--font-xl); font-weight: 800; color: var(--color-text); letter-spacing: -0.8px; margin: 4px 0 2px; }
.rev-count  { font-size: var(--font-xs); color: var(--color-text-muted); font-weight: 600; }
.featured .rev-label  { color: rgba(255,255,255,0.5); }
.featured .rev-amount { color: #ffffff; }
.featured .rev-count  { color: rgba(255,255,255,0.55); }

/* ── STATUS STRIP ──────────────────────────────────────────── */
.status-strip {
  display: flex;
  gap: 6px;
  margin-bottom: var(--sp-md);
  overflow-x: auto;
  scrollbar-width: none;
}
.status-strip::-webkit-scrollbar { display: none; }

.status-pill {
  flex: 1;
  min-width: 56px;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 12px 6px;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: transform 0.13s cubic-bezier(0.34,1.5,0.64,1);
  gap: 4px;
  border: 1px solid transparent;
}
.status-pill:active { transform: scale(0.92); }

.pill-count { font-size: var(--font-xl); font-weight: 800; line-height: 1; }
.pill-label { font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.6px; opacity: 0.8; }

.s-new        { background: rgba(96,165,250,0.11);   color: var(--s-new);        border-color: rgba(96,165,250,0.18); }
.s-scheduled  { background: rgba(167,139,250,0.11);  color: var(--s-scheduled);  border-color: rgba(167,139,250,0.18); }
.s-inprogress { background: rgba(251,191,36,0.11);   color: var(--s-inprogress); border-color: rgba(251,191,36,0.18); }
.s-closed     { background: rgba(52,211,153,0.11);   color: var(--s-closed);     border-color: rgba(52,211,153,0.18); }
.s-paid       { background: rgba(74,222,128,0.11);   color: var(--s-paid);       border-color: rgba(74,222,128,0.18); }

/* ── TECH PERFORMANCE ──────────────────────────────────────── */
.tech-perf-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: var(--sp-md); }

.tech-perf-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 13px var(--sp-md);
  display: flex;
  align-items: center;
  gap: var(--sp-md);
  box-shadow: var(--shadow-card);
}

.tech-perf-avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--font-sm);
  font-weight: 800;
  color: #fff;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.35);
}

.tech-perf-info  { flex: 1; min-width: 0; }
.tech-perf-name  { font-size: var(--font-md); font-weight: 700; color: var(--color-text); letter-spacing: -0.2px; }
.tech-perf-sub   { font-size: var(--font-xs); color: var(--color-text-muted); margin-top: 2px; }
.tech-perf-stats { text-align: right; flex-shrink: 0; }
.tech-perf-payout { font-size: var(--font-md); font-weight: 800; color: var(--color-text); letter-spacing: -0.3px; }
.tech-perf-jobs   { font-size: var(--font-xs); color: var(--color-text-muted); font-weight: 600; }


/* ── STEP FLOW ─────────────────────────────────────────────── */
.step-indicator {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-bottom: var(--sp-lg);
  padding: var(--sp-sm) 0;
}

.step-dot {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--color-surface-2);
  border: 2px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--font-sm);
  font-weight: 700;
  color: var(--color-text-faint);
  transition: all 0.22s cubic-bezier(0.34,1.4,0.64,1);
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}
.step-dot.active {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #ffffff;
  box-shadow: 0 0 0 5px rgba(0,0,0,0.08);
}
.step-dot.done {
  background: var(--color-success);
  border-color: var(--color-success);
  color: #fff;
}

.step-line {
  height: 2px;
  flex: 1;
  background: var(--color-border);
  max-width: 52px;
  transition: background 0.22s;
}
.step-line.done { background: var(--color-success); }

.step-content { display: none; }
.step-content.active {
  display: block;
  animation: stepIn 0.2s cubic-bezier(0.34,1.2,0.64,1);
}
@keyframes stepIn {
  from { opacity: 0; transform: translateX(10px) scale(0.99); }
  to   { opacity: 1; transform: none; }
}

.step-title { font-size: var(--font-xxl); font-weight: 800; margin-bottom: 7px; letter-spacing: -0.6px; }
.step-sub   { font-size: var(--font-sm); color: var(--color-text-muted); margin-bottom: var(--sp-lg); line-height: 1.55; }

.step-actions { display: flex; gap: var(--sp-sm); margin-top: var(--sp-lg); }
.step-actions .btn { flex: 1; }

.or-divider {
  text-align: center;
  position: relative;
  margin: var(--sp-md) 0;
  color: var(--color-text-faint);
  font-size: var(--font-sm);
}
.or-divider::before,
.or-divider::after {
  content: '';
  position: absolute;
  top: 50%;
  width: calc(50% - 24px);
  height: 1px;
  background: var(--color-border);
}
.or-divider::before { left: 0; }
.or-divider::after  { right: 0; }

.lead-textarea {
  width: 100%;
  min-height: 130px;
  padding: var(--sp-md);
  background: var(--color-surface-2);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-md);
  color: var(--color-text);
  font-size: var(--font-md);
  line-height: 1.6;
  resize: none;
  margin-bottom: var(--sp-md);
  transition: border-color 0.15s;
}
.lead-textarea:focus {
  outline: none;
  border-color: rgba(0,0,0,0.3);
  box-shadow: 0 0 0 3px rgba(0,0,0,0.06);
}
.lead-textarea::placeholder { color: var(--color-text-faint); line-height: 1.6; }

.conf-badge {
  display: inline-block;
  font-size: var(--font-xs);
  font-weight: 700;
  padding: 2px 7px;
  border-radius: var(--radius-full);
  margin-left: 4px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}
.conf-high   { background: rgba(34,197,94,0.13);  color: var(--color-success); }
.conf-medium { background: rgba(245,158,11,0.13); color: var(--color-warning); }
.conf-low    { background: rgba(239,68,68,0.13);  color: var(--color-error); }

.returning-banner {
  background: rgba(245,158,11,0.09);
  border: 1.5px solid rgba(245,158,11,0.22);
  border-radius: var(--radius-sm);
  padding: 11px var(--sp-md);
  font-size: var(--font-sm);
  font-weight: 700;
  color: var(--color-warning);
  margin-bottom: var(--sp-md);
}

.zip-suggestion {
  background: rgba(96,165,250,0.07);
  border: 1.5px solid rgba(96,165,250,0.18);
  border-radius: var(--radius-sm);
  padding: 11px var(--sp-md);
  font-size: var(--font-sm);
  font-weight: 600;
  color: var(--s-new);
  margin-bottom: var(--sp-sm);
}

.tech-selector { display: flex; flex-wrap: wrap; gap: var(--sp-sm); margin-top: var(--sp-xs); }

.tech-btn {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--color-border);
  background: var(--color-surface-2);
  cursor: pointer;
  transition: all 0.15s;
  font-size: var(--font-sm);
  font-weight: 700;
  color: var(--color-text);
}
.tech-btn:active { transform: scale(0.95); }
.tech-btn.selected { border-color: #000000; background: #000000; color: #ffffff; }
.tech-btn .tech-btn-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.tech-btn .tech-btn-pct { font-size: var(--font-xs); font-weight: 600; opacity: 0.6; }

.payment-methods { display: flex; gap: var(--sp-xs); flex-wrap: wrap; }

.pay-btn {
  flex: 1;
  min-width: 68px;
  padding: 12px 8px;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--color-border);
  background: var(--color-surface-2);
  color: var(--color-text-muted);
  font-size: var(--font-sm);
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s;
  text-align: center;
}
.pay-btn:active { transform: scale(0.95); }
.pay-btn.active {
  border-color: #000000;
  background: #000000;
  color: #ffffff;
}

/* ── PAYOUT PREVIEW ────────────────────────────────────────── */
.payout-preview {
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--sp-md);
  margin-bottom: var(--sp-md);
}

.payout-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 7px 0;
  font-size: var(--font-sm);
  border-bottom: 1px solid rgba(0,0,0,0.06);
}
.payout-row:last-child { border-bottom: none; }
.payout-label { color: var(--color-text-muted); font-weight: 500; }
.payout-value { font-weight: 700; color: var(--color-text); }
.payout-value.deduct    { color: var(--color-error); }
.payout-value.highlight { color: var(--color-primary); font-size: var(--font-md); }

.payout-divider { height: 1px; background: var(--color-border-2); margin: 6px 0; }

.payout-total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 9px 0 2px;
}
.payout-total-label { font-size: var(--font-sm); font-weight: 700; color: var(--color-text); }
.payout-total-value { font-size: var(--font-xl); font-weight: 800; color: var(--color-success); letter-spacing: -0.5px; }

.payout-warning {
  margin-top: var(--sp-sm);
  padding: 9px var(--sp-sm);
  background: rgba(245,158,11,0.09);
  border-radius: var(--radius-sm);
  font-size: var(--font-xs);
  font-weight: 600;
  color: var(--color-warning);
}

/* ── JOB DETAIL ────────────────────────────────────────────── */
.detail-hero {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--sp-md);
  margin-bottom: 10px;
  box-shadow: var(--shadow-card);
}

.detail-name {
  font-size: var(--font-xl);
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 8px;
}

.detail-hero-row { display: flex; align-items: center; gap: var(--sp-sm); flex-wrap: wrap; }

.detail-action-bar { display: flex; gap: 7px; margin-bottom: 10px; }

.detail-action-btn {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 10px 4px;
  background: var(--color-surface-3);
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  text-decoration: none;
  transition: opacity 0.15s, transform 0.12s cubic-bezier(0.34,1.4,0.64,1);
  -webkit-tap-highlight-color: transparent;
  min-width: 0;
}
.detail-action-btn:active { transform: scale(0.91); opacity: 0.75; }
.dab-icon  { font-size: 20px; line-height: 1; }
.dab-label { font-size: 10px; font-weight: 700; color: var(--color-text-muted); letter-spacing: 0.2px; white-space: nowrap; }
.dab-green { background: rgba(52,199,89,0.1); }
.dab-green .dab-label { color: var(--color-success); }

/* Collapsible sections */
.detail-section {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  margin-bottom: 10px;
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.detail-section-title {
  font-size: var(--font-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.9px;
  color: var(--color-text-faint);
  padding: 13px var(--sp-md);
  background: var(--color-surface-2);
  border-bottom: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  transition: background 0.15s;
}
.detail-section-title:active { background: var(--color-surface-3); }

.section-chevron {
  font-size: 16px;
  color: var(--color-text-faint);
  transition: transform 0.22s cubic-bezier(0.34,1.3,0.64,1);
  flex-shrink: 0;
  opacity: 0.6;
}
.detail-section.collapsed .section-chevron { transform: rotate(-90deg); }
.detail-section.collapsed .detail-section-body { display: none; }

.detail-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 11px var(--sp-md);
  border-bottom: 1px solid rgba(0,0,0,0.06);
  gap: var(--sp-sm);
}
.detail-row:last-child { border-bottom: none; }

.detail-row-label { font-size: var(--font-sm); color: var(--color-text-muted); font-weight: 500; flex-shrink: 0; max-width: 44%; }
.detail-row-value { font-size: var(--font-sm); font-weight: 600; color: var(--color-text); text-align: right; word-break: break-word; }
.detail-row-value a { color: var(--color-primary); text-decoration: none; }

.quick-close-btn {
  width: 100%;
  min-height: 56px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, #16A34A, #22C55E);
  color: #fff;
  font-size: var(--font-lg);
  font-weight: 800;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-sm);
  box-shadow: 0 4px 22px rgba(34,197,94,0.22), var(--shadow-card);
  transition: opacity 0.15s, transform 0.13s cubic-bezier(0.34,1.4,0.64,1);
  margin: 10px 0;
  letter-spacing: -0.3px;
}
.quick-close-btn:active { transform: scale(0.97); opacity: 0.88; }

.status-action-row {
  display: flex;
  gap: 7px;
  margin: 10px 0;
  overflow-x: auto;
  scrollbar-width: none;
}
.status-action-row::-webkit-scrollbar { display: none; }

.status-action-btn {
  flex-shrink: 0;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  border: 1.5px solid var(--color-border);
  background: var(--color-surface-2);
  color: var(--color-text-muted);
  font-size: var(--font-sm);
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s;
}
.status-action-btn:active { transform: scale(0.93); }
.status-action-btn.current { border-color: currentColor; background: rgba(0,0,0,0.05); }
.sab-new        { color: var(--s-new); }
.sab-scheduled  { color: var(--s-scheduled); }
.sab-inprogress { color: var(--s-inprogress); }
.sab-closed     { color: var(--s-closed); }
.sab-paid       { color: var(--s-paid); }

/* ── PHOTOS ─────────────────────────────────────────────────── */
.photo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-xs);
  padding: var(--sp-sm) var(--sp-md) var(--sp-md);
}

.photo-thumb {
  aspect-ratio: 1;
  border-radius: var(--radius-sm);
  object-fit: cover;
  cursor: pointer;
  transition: transform 0.12s, opacity 0.15s;
  width: 100%;
}
.photo-thumb:active { transform: scale(0.94); opacity: 0.78; }

.photo-add-btn {
  aspect-ratio: 1;
  border-radius: var(--radius-sm);
  border: 1.5px dashed var(--color-border-2);
  background: var(--color-surface-2);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  cursor: pointer;
  color: var(--color-text-faint);
  font-size: var(--font-xs);
  font-weight: 700;
  text-transform: uppercase;
  transition: border-color 0.15s, background 0.15s;
}
.photo-add-btn:active { background: var(--color-surface-3); }
.photo-add-icon { font-size: 22px; }

.modal-photo-body img { width: 100%; height: auto; border-radius: var(--radius-sm); display: block; }
.photo-action-row { display: flex; gap: var(--sp-sm); margin-top: var(--sp-md); }

/* ── CALENDAR ───────────────────────────────────────────────── */
.calendar-nav { display: flex; align-items: center; justify-content: space-between; margin-bottom: var(--sp-md); }

.calendar-date-label {
  flex: 1;
  text-align: center;
  font-size: var(--font-xl);
  font-weight: 800;
  color: var(--color-text);
  background: none;
  border: none;
  cursor: pointer;
  letter-spacing: -0.5px;
  padding: var(--sp-xs) 0;
}
.calendar-date-label:active { opacity: 0.6; }
.cal-nav-btn { width: 44px; height: 44px; font-size: 26px; font-weight: 300; color: var(--color-text-muted); }

.calendar-content { display: flex; flex-direction: column; gap: 10px; }

.cal-tech-block {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.cal-tech-header {
  display: flex;
  align-items: center;
  gap: var(--sp-sm);
  padding: 11px var(--sp-md);
  background: var(--color-surface-2);
  border-bottom: 1px solid var(--color-border);
}

.cal-tech-avatar {
  width: 28px; height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--font-xs);
  font-weight: 800;
  color: #fff;
  flex-shrink: 0;
}

.cal-tech-name  { font-size: var(--font-sm); font-weight: 800; color: var(--color-text); }
.cal-tech-count { font-size: var(--font-xs); color: var(--color-text-muted); margin-left: auto; }

.cal-job-row {
  display: flex;
  align-items: center;
  gap: var(--sp-sm);
  padding: 12px var(--sp-md);
  border-bottom: 1px solid rgba(0,0,0,0.06);
  cursor: pointer;
  transition: background 0.15s;
}
.cal-job-row:last-child { border-bottom: none; }
.cal-job-row:active { background: var(--color-surface-2); }

.cal-job-time { font-size: var(--font-sm); font-weight: 700; color: var(--color-text-muted); min-width: 56px; flex-shrink: 0; }
.cal-job-info { flex: 1; min-width: 0; }
.cal-job-name { font-size: var(--font-sm); font-weight: 700; color: var(--color-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cal-job-addr { font-size: var(--font-xs); color: var(--color-text-faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.cal-conflict-warn {
  background: rgba(239,68,68,0.09);
  border: 1px solid rgba(239,68,68,0.22);
  border-radius: var(--radius-sm);
  padding: 9px var(--sp-md);
  font-size: var(--font-xs);
  font-weight: 700;
  color: var(--color-error);
  margin: 6px 0;
}

.cal-gap-slot {
  background: rgba(96,165,250,0.05);
  border: 1px dashed rgba(96,165,250,0.18);
  border-radius: var(--radius-sm);
  padding: 10px var(--sp-md);
  font-size: var(--font-xs);
  font-weight: 700;
  color: var(--s-new);
  opacity: 0.72;
  margin: 6px 0;
}

/* ── CLOSE JOB MODAL ────────────────────────────────────────── */
.close-job-summary {
  background: var(--color-surface-2);
  border-radius: var(--radius-md);
  padding: var(--sp-md);
  margin-bottom: var(--sp-md);
  border: 1px solid var(--color-border);
}
.close-job-customer { font-size: var(--font-md); font-weight: 700; margin-bottom: 4px; letter-spacing: -0.2px; }
.close-job-address  { font-size: var(--font-sm); color: var(--color-text-muted); }

.zelle-memo-box {
  background: var(--color-surface-2);
  border: 1px solid var(--color-border-2);
  border-radius: var(--radius-md);
  padding: var(--sp-md);
  margin: var(--sp-sm) 0;
  font-size: var(--font-md);
  font-weight: 600;
  line-height: 1.65;
  color: var(--color-text);
  word-break: break-word;
}

.zelle-handle-display { font-size: var(--font-sm); color: var(--color-text-muted); margin-bottom: var(--sp-xs); }
.zelle-handle-val { font-weight: 700; color: var(--color-primary); }

/* ── SETTINGS ───────────────────────────────────────────────── */
.settings-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--sp-md);
  margin-bottom: 10px;
  box-shadow: var(--shadow-card);
}

.danger-card { border-color: rgba(239,68,68,0.18); }

.settings-section-title {
  font-size: var(--font-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.9px;
  color: var(--color-text-faint);
  margin-bottom: var(--sp-md);
}

.settings-section-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--sp-md);
}

.settings-list { display: flex; flex-direction: column; gap: 7px; }

.settings-list-item {
  display: flex;
  align-items: center;
  gap: var(--sp-sm);
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 11px var(--sp-md);
}

.settings-item-dot    { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.settings-item-info   { flex: 1; min-width: 0; }
.settings-item-name   { font-size: var(--font-sm); font-weight: 700; color: var(--color-text); }
.settings-item-sub    { font-size: var(--font-xs); color: var(--color-text-muted); margin-top: 1px; }
.settings-item-actions { display: flex; gap: var(--sp-xs); }

/* ══════════════════════════════════════════════════════════
   KANBAN PIPELINE BOARD
   ══════════════════════════════════════════════════════════ */
.kanban-board {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 4px 0 var(--sp-xl);
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x proximity;
  /* Full-bleed scroll by removing view padding */
  margin: 0 calc(-1 * var(--sp-md));
  padding-left: var(--sp-md);
  padding-right: var(--sp-md);
}

.kanban-board::-webkit-scrollbar { display: none; }

.kanban-column {
  flex-shrink: 0;
  width: 240px;
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  overflow: hidden;
  scroll-snap-align: start;
  box-shadow: var(--shadow-card);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.kanban-column.drag-over {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px var(--color-primary-glow), var(--shadow-md);
}

.kanban-col-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  border-bottom: 1px solid var(--color-border);
}

.kanban-col-title {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.7px;
}

.kanban-col-count {
  font-size: 11px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 9999px;
  background: var(--color-surface-3);
  color: var(--color-text-muted);
}

/* Column accent colours */
.kc-new       .kanban-col-header { background: rgba(0,122,255,0.06); }
.kc-new       .kanban-col-title  { color: var(--s-new); }
.kc-scheduled .kanban-col-header { background: rgba(88,86,214,0.06); }
.kc-scheduled .kanban-col-title  { color: var(--s-scheduled); }
.kc-inprogress .kanban-col-header { background: rgba(255,149,0,0.06); }
.kc-inprogress .kanban-col-title  { color: var(--s-inprogress); }
.kc-followup  .kanban-col-header { background: rgba(255,59,48,0.06); }
.kc-followup  .kanban-col-title  { color: var(--color-error); }
.kc-closed    .kanban-col-header { background: rgba(52,199,89,0.06); }
.kc-closed    .kanban-col-title  { color: var(--s-closed); }
.kc-paid      .kanban-col-header { background: rgba(48,209,88,0.06); }
.kc-paid      .kanban-col-title  { color: var(--s-paid); }

.kanban-col-body {
  padding: 8px;
  min-height: 100px;
  max-height: calc(100dvh - 290px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.kanban-col-body::-webkit-scrollbar { display: none; }

.kanban-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 10px 11px;
  margin-bottom: 7px;
  cursor: pointer;
  transition: transform 0.12s cubic-bezier(0.34,1.4,0.64,1), box-shadow 0.12s, opacity 0.15s;
  box-shadow: var(--shadow-xs);
  position: relative;
  user-select: none;
}
.kanban-card:last-child { margin-bottom: 0; }
.kanban-card:active     { transform: scale(0.97); }
.kanban-card.dragging   { opacity: 0.45; transform: scale(0.97); box-shadow: var(--shadow-lg); }

.kanban-card-urgent {
  border-left: 3px solid var(--color-error);
}

.kanban-card-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--color-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 3px;
  letter-spacing: -0.1px;
}

.kanban-card-addr {
  font-size: 11px;
  color: var(--color-text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 3px;
}

.kanban-card-date {
  font-size: 11px;
  color: var(--color-text-faint);
  font-weight: 600;
  margin-bottom: 6px;
}

.kanban-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.kanban-card-tech {
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.kanban-card-total {
  font-size: 12px;
  font-weight: 800;
  color: var(--color-text);
  white-space: nowrap;
  flex-shrink: 0;
}

.kanban-empty {
  text-align: center;
  color: var(--color-text-faint);
  font-size: 12px;
  padding: 20px 8px;
  font-style: italic;
}
