/* DoorForce Technician — Service Calls (field list, no financial UI) */

.df-sc-shell {
  display: grid;
  gap: 16px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.df-sc-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.df-sc-header h1 {
  margin: 0;
  font-family: 'Outfit', sans-serif;
  font-size: clamp(1.35rem, 4vw, 1.75rem);
}

.df-sc-header p {
  margin: 4px 0 0;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.df-sc-count-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(10, 35, 66, 0.92);
  color: #fff;
  font-weight: 800;
}

.df-sc-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  width: 100%;
}

.df-sc-filter {
  border: 1px solid var(--border-color);
  background: var(--bg-card);
  color: var(--text-muted);
  border-radius: 999px;
  padding: 8px 14px;
  min-height: 40px;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
}

.df-sc-filter.is-active {
  background: var(--df-blue, #0a2342);
  border-color: var(--df-blue, #0a2342);
  color: #fff;
}

.df-sc-list,
.df-home-service-calls {
  display: grid;
  gap: 12px;
  width: 100%;
  min-width: 0;
}

.df-sc-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 18px;
  padding: 16px;
  box-shadow: var(--shadow-md, 0 10px 30px rgba(0,0,0,.12));
  width: 100%;
  max-width: 100%;
  min-width: 0;
  cursor: pointer;
}

.df-sc-card-top {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: flex-start;
  margin-bottom: 12px;
}

.df-sc-id {
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--accent-secondary, #f3a536);
  letter-spacing: 0.02em;
}

.df-sc-customer {
  font-family: 'Outfit', sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  margin-top: 2px;
}

.df-sc-badges {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
}

.df-sc-cat,
.df-sc-status {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: capitalize;
  white-space: nowrap;
}

.df-sc-cat.cat-emergency { background: rgba(220, 38, 38, 0.16); color: #dc2626; }
.df-sc-cat.cat-urgent { background: rgba(234, 88, 12, 0.16); color: #ea580c; }
.df-sc-cat.cat-scheduled { background: rgba(37, 99, 235, 0.14); color: #2563eb; }
.df-sc-cat.cat-warranty { background: rgba(124, 58, 237, 0.14); color: #7c3aed; }
.df-sc-cat.cat-callback { background: rgba(8, 145, 178, 0.14); color: #0891b2; }

.df-sc-status {
  background: rgba(148, 163, 184, 0.16);
  color: var(--text-primary);
}

.df-sc-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 14px;
  margin-bottom: 12px;
}

.df-sc-grid span {
  display: block;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  font-weight: 700;
}

.df-sc-grid strong {
  display: block;
  font-size: 0.92rem;
  font-weight: 650;
  overflow-wrap: anywhere;
}

.df-sc-problem {
  margin: 0 0 14px;
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.df-sc-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.df-sc-open-btn,
.df-sc-call-btn {
  min-height: 44px;
  border-radius: 12px;
  padding: 10px 14px;
  font-weight: 800;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.df-sc-open-btn {
  border: none;
  background: linear-gradient(135deg, #f3a536, #f59e0b);
  color: #111827;
  cursor: pointer;
  flex: 1 1 auto;
}

.df-sc-call-btn {
  border: 1px solid var(--border-color);
  background: transparent;
  color: var(--text-primary);
  flex: 0 0 auto;
}

.df-sc-empty {
  padding: 22px 16px;
  border: 1px dashed var(--border-color);
  border-radius: 16px;
  color: var(--text-muted);
  text-align: center;
}

.df-home-sc-group .df-home-jobs-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.df-home-sc-group .df-home-jobs-head h2 {
  margin: 0;
}

@media (max-width: 599px) {
  .df-sc-grid {
    grid-template-columns: 1fr;
  }
}

.df-voice-notes-block {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border-color);
}

.df-voice-notes-list {
  display: grid;
  gap: 8px;
  margin-bottom: 10px;
}

.df-voice-note-item audio {
  width: 100%;
  max-width: 100%;
}

.df-voice-note-item small {
  display: block;
  color: var(--text-muted);
  margin-top: 4px;
}
