/* Quickshine DASH v1.2 — Native Technician Hub */

.tech-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
}

.tech-heading h1 {
  margin: 0;
  font-size: 36px;
  line-height: 1.05;
  letter-spacing: -.045em;
}

.tech-heading p:not(.eyebrow) {
  margin: 8px 0 0;
  color: var(--qs-muted);
  font-size: 12px;
}

.tech-heading__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.tech-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap: 14px;
  margin-bottom: 17px;
}

.tech-stat {
  border: 1px solid var(--qs-border);
  border-radius: 16px;
  background: #fff;
  padding: 17px;
  box-shadow: var(--qs-shadow);
}

.tech-stat span {
  color: var(--qs-muted);
  font-size: 9px;
  font-weight: 700;
}

.tech-stat strong {
  display: block;
  margin-top: 9px;
  font-size: 27px;
}

.tech-stat small {
  display: block;
  margin-top: 8px;
  color: var(--qs-muted);
  font-size: 8px;
  line-height: 1.45;
}

.tech-grid {
  display: grid;
  grid-template-columns: minmax(0,1.35fr) minmax(300px,.72fr);
  gap: 17px;
  align-items: start;
}

.tech-column {
  display: grid;
  gap: 17px;
}

.tech-job-list {
  display: grid;
}

.tech-job-row {
  display: grid;
  grid-template-columns: 90px minmax(0,1fr) 125px auto;
  gap: 13px;
  align-items: center;
  border-bottom: 1px solid var(--qs-border);
  padding: 14px 16px;
}

.tech-job-row:last-child {
  border-bottom: 0;
}

.tech-job-row:hover {
  background: var(--qs-primary-soft);
}

.tech-job-time {
  display: flex;
  flex-direction: column;
}

.tech-job-time strong {
  font-size: 10px;
}

.tech-job-time span {
  margin-top: 4px;
  color: var(--qs-muted);
  font-size: 7px;
}

.tech-job-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.tech-job-copy strong {
  overflow: hidden;
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tech-job-copy span {
  margin-top: 4px;
  color: var(--qs-muted);
  font-size: 7px;
  line-height: 1.4;
}

.tech-pill {
  display: inline-flex;
  width: max-content;
  min-height: 23px;
  align-items: center;
  border-radius: 999px;
  background: #edf2f5;
  padding: 0 8px;
  color: #596875;
  font-size: 7px;
  font-weight: 750;
}

.tech-pill--confirmed,
.tech-pill--complete,
.tech-pill--ready {
  background: var(--qs-success-soft);
  color: var(--qs-success);
}

.tech-pill--in-progress {
  background: #e9f0ff;
  color: #4168b0;
}

.tech-pill--scheduled,
.tech-pill--ordered {
  background: var(--qs-warning-soft);
  color: var(--qs-warning);
}

.tech-pill--cancelled,
.tech-pill--needs-action {
  background: var(--qs-danger-soft);
  color: var(--qs-danger);
}

.tech-empty {
  padding: 48px 20px;
  text-align: center;
}

.tech-empty strong {
  display: block;
  font-size: 13px;
}

.tech-empty p {
  margin: 7px 0 0;
  color: var(--qs-muted);
  font-size: 8px;
}

.tech-summary {
  display: grid;
}

.tech-summary-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--qs-border);
  padding: 12px 16px;
}

.tech-summary-row:last-child {
  border-bottom: 0;
}

.tech-summary-row span {
  color: var(--qs-muted);
  font-size: 8px;
}

.tech-summary-row strong {
  max-width: 62%;
  font-size: 8px;
  text-align: right;
}

.tech-detail-tools {
  display: flex;
  margin-bottom: 12px;
}

.tech-detail-hero {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  border: 1px solid var(--qs-border);
  border-radius: 16px;
  background: white;
  padding: 18px;
  box-shadow: var(--qs-shadow);
}

.tech-detail-identity {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.tech-step-badge {
  display: grid;
  width: 62px;
  min-width: 62px;
  height: 62px;
  place-items: center;
  border-radius: 15px;
  background: var(--qs-primary);
  color: white;
  font-size: 20px;
  font-weight: 850;
}

.tech-detail-identity h1 {
  margin: 0;
  font-size: 32px;
  line-height: 1.06;
  letter-spacing: -.04em;
}

.tech-detail-identity p {
  margin: 7px 0 0;
  color: var(--qs-muted);
  font-size: 9px;
}

.tech-detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.tech-detail-grid {
  display: grid;
  grid-template-columns: minmax(0,1.25fr) minmax(300px,.72fr);
  gap: 17px;
  margin-top: 17px;
  align-items: start;
}

.tech-checklist {
  display: grid;
}

.tech-check {
  display: grid;
  grid-template-columns: 26px minmax(0,1fr) auto;
  gap: 12px;
  align-items: center;
  border-bottom: 1px solid var(--qs-border);
  padding: 13px 16px;
}

.tech-check:last-child {
  border-bottom: 0;
}

.tech-check input {
  width: 18px;
  height: 18px;
  accent-color: var(--qs-primary);
}

.tech-check strong {
  display: block;
  font-size: 9px;
}

.tech-check span {
  display: block;
  margin-top: 4px;
  color: var(--qs-muted);
  font-size: 7px;
  line-height: 1.4;
}

.tech-progress {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: #e8edf0;
}

.tech-progress > span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--qs-primary);
}

.tech-workflow-card {
  display: grid;
  gap: 10px;
  padding: 15px;
}

.tech-workflow-step {
  display: grid;
  grid-template-columns: 28px minmax(0,1fr);
  gap: 10px;
  border: 1px solid var(--qs-border);
  border-radius: 11px;
  background: var(--qs-soft);
  padding: 11px;
}

.tech-workflow-step__number {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 8px;
  background: var(--qs-primary-soft);
  color: var(--qs-primary);
  font-size: 9px;
  font-weight: 850;
}

.tech-workflow-step strong {
  display: block;
  font-size: 8px;
}

.tech-workflow-step span {
  display: block;
  margin-top: 4px;
  color: var(--qs-muted);
  font-size: 7px;
  line-height: 1.4;
}

@media (max-width: 1000px) {
  .tech-stats {
    grid-template-columns: repeat(2,1fr);
  }

  .tech-grid,
  .tech-detail-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .tech-heading,
  .tech-detail-hero {
    align-items: flex-start;
    flex-direction: column;
  }

  .tech-stats {
    grid-template-columns: 1fr;
  }

  .tech-job-row {
    grid-template-columns: 76px minmax(0,1fr);
  }

  .tech-job-row > .tech-pill,
  .tech-job-row > .button {
    grid-column: 1 / -1;
  }

  .tech-detail-actions {
    justify-content: flex-start;
  }
}
