/* Quickshine DASH — Native Home v0.8 */

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

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

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

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

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

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

.home-stat--warning {
  border-color: #e8cfaa;
}

.home-stat__label {
  color: var(--qs-muted);
  font-size: 9px;
  font-weight: 700;
}

.home-stat strong {
  display: block;
  margin-top: 10px;
  font-size: 28px;
}

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

.home-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(290px, .7fr);
  gap: 17px;
  align-items: start;
}

.home-main,
.home-side {
  display: grid;
  gap: 17px;
}

.home-job-list,
.home-attention-list,
.home-upcoming-list {
  display: grid;
}

.home-job-row,
.home-upcoming-row,
.home-attention-row {
  display: grid;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--qs-border);
  padding: 14px 16px;
}

.home-job-row {
  grid-template-columns: 82px minmax(0, 1fr) auto;
}

.home-upcoming-row {
  grid-template-columns: 86px minmax(0, 1fr) auto;
}

.home-attention-row {
  grid-template-columns: 30px minmax(0, 1fr) auto;
}

.home-job-row:last-child,
.home-upcoming-row:last-child,
.home-attention-row:last-child {
  border-bottom: 0;
}

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

.home-job-time,
.home-upcoming-date {
  display: flex;
  flex-direction: column;
}

.home-job-time strong,
.home-upcoming-date strong {
  font-size: 10px;
}

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

.home-job-copy,
.home-upcoming-copy,
.home-attention-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

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

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

.home-attention-icon {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 9px;
  background: var(--qs-warning-soft);
  color: var(--qs-warning);
  font-size: 10px;
  font-weight: 800;
}

.home-panel-link {
  border: 0;
  background: transparent;
  color: var(--qs-primary);
  font-size: 8px;
  font-weight: 750;
}

.home-empty {
  padding: 42px 20px;
  text-align: center;
}

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

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

.home-route-summary {
  display: grid;
  gap: 10px;
  padding: 15px;
}

.home-route-card {
  border: 1px solid var(--qs-border);
  border-radius: 11px;
  background: var(--qs-soft);
  padding: 12px;
}

.home-route-card span {
  display: block;
  color: var(--qs-muted);
  font-size: 7px;
}

.home-route-card strong {
  display: block;
  margin-top: 6px;
  font-size: 10px;
}

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

  .home-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  .home-heading {
    align-items: flex-start;
    flex-direction: column;
  }

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

  .home-job-row,
  .home-upcoming-row {
    grid-template-columns: 74px minmax(0, 1fr);
  }

  .home-job-row > .button,
  .home-upcoming-row > .button {
    grid-column: 1 / -1;
    width: 100%;
  }
}
