/* Job snapshot: icon and number, with the extra sentences tucked away. */
.pcs-summary[aria-label="Job snapshot"] .pcs-summary__kicker,
.pcs-summary[aria-label="Job snapshot"] .pcs-summary__lede,
.pcs-summary[aria-label="Job snapshot"] .pcs-metric__hint,
.pcs-summary[aria-label="Today"] .pcs-summary__kicker,
.pcs-summary[aria-label="Today"] .pcs-summary__lede,
.pcs-summary[aria-label="Today"] .pcs-metric__hint {
  display: none;
}

.pcs-summary[aria-label="Job snapshot"] .pcs-summary__head,
.pcs-summary[aria-label="Today"] .pcs-summary__head {
  padding-bottom: 0.15rem;
  border-bottom: 0;
}

.pcs-summary[aria-label="Job snapshot"] .pcs-metrics,
.pcs-summary[aria-label="Today"] .pcs-metrics {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.65rem;
}

.pcs-summary[aria-label="Job snapshot"] .pcs-metric,
.pcs-summary[aria-label="Today"] .pcs-metric {
  display: grid;
  grid-template-columns: 2.6rem minmax(0, 1fr);
  grid-template-areas: "mark value" "mark label";
  align-items: center;
  column-gap: 0.7rem;
  row-gap: 0.05rem;
  min-height: 4.35rem;
  padding: 0.7rem 0.75rem;
  overflow: hidden;
}

.pcs-summary[aria-label="Job snapshot"] .pcs-metric::before,
.pcs-summary[aria-label="Today"] .pcs-metric::before {
  content: "";
  grid-area: mark;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 10px;
  background: #f3f1f8 center / 1.3rem 1.3rem no-repeat;
}

.pcs-summary[aria-label="Job snapshot"] .pcs-metric__value,
.pcs-summary[aria-label="Today"] .pcs-metric__value {
  grid-area: value;
  min-width: 0;
}

.pcs-summary[aria-label="Job snapshot"] .pcs-metric__label,
.pcs-summary[aria-label="Today"] .pcs-metric__label {
  grid-area: label;
  min-width: 0;
  letter-spacing: 0.04em;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.pcs-summary[aria-label="Job snapshot"] .pcs-metric[aria-label^="Pending"]::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236B6CE0' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='8'/%3E%3Cpath d='M12 8v5l3 2'/%3E%3C/svg%3E");
}

.pcs-summary[aria-label="Job snapshot"] .pcs-metric[aria-label^="In progress"]::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236B6CE0' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14.7 6.3a4 4 0 0 0-5.4 5.4L3 18l3 3 6.3-6.3a4 4 0 0 0 5.4-5.4l-2.1 2.1-2.3-2.3 2.4-2.8z'/%3E%3C/svg%3E");
}

.pcs-summary[aria-label="Job snapshot"] .pcs-metric[aria-label^="Waiting on parts"]::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236B6CE0' stroke-width='2' stroke-linejoin='round'%3E%3Cpath d='M21 8l-9-5-9 5 9 5 9-5z'/%3E%3Cpath d='M3 8v8l9 5 9-5V8'/%3E%3Cpath d='M12 13v8'/%3E%3C/svg%3E");
}

.pcs-summary[aria-label="Today"] .pcs-metric[aria-label^="Open jobs"]::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236B6CE0' stroke-width='2' stroke-linejoin='round'%3E%3Crect x='3' y='7' width='18' height='13' rx='2'/%3E%3Cpath d='M8 7V5a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2'/%3E%3C/svg%3E");
}

.pcs-summary[aria-label="Today"] .pcs-metric[aria-label^="Callbacks"]::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236B6CE0' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 4h3l2 5-2 1a12 12 0 0 0 5 5l1-2 5 2v3a2 2 0 0 1-2 2A16 16 0 0 1 4 6a2 2 0 0 1 2-2z'/%3E%3C/svg%3E");
}

.pcs-summary[aria-label="Today"] .pcs-metric[aria-label^="Unpaid invoices"]::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236B6CE0' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M6 3h9l5 5v13a1 1 0 0 1-1 1H6a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1z'/%3E%3Cpath d='M14 3v6h6M8 13h8M8 17h5'/%3E%3C/svg%3E");
}

.pcs-summary[aria-label="Today"] .pcs-metric[aria-label^="Paid revenue"]::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236B6CE0' stroke-width='2'%3E%3Crect x='3' y='6' width='18' height='12' rx='2'/%3E%3Ccircle cx='12' cy='12' r='2.5'/%3E%3C/svg%3E");
}

.pcs-summary[aria-label="Today"] .pcs-metric__value {
  font-size: clamp(1.15rem, 0.9rem + 0.8vw, 1.65rem);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pcs-summary[aria-label="Job snapshot"] .pcs-metric[aria-label^="Completed"]::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236B6CE0' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='8'/%3E%3Cpath d='M8.5 12.5l2.2 2.2 4.8-5'/%3E%3C/svg%3E");
}

.pcs-summary[aria-label="Job snapshot"] ~ .pcs-list-panel .pcs-chips {
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
}

.pcs-summary[aria-label="Job snapshot"] ~ .pcs-list-panel .pcs-chip {
  flex: 0 1 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  min-width: 0;
  max-width: 100%;
  white-space: nowrap;
}

.pcs-summary[aria-label="Job snapshot"] ~ .pcs-list-panel .pcs-chip__label {
  overflow: hidden;
  text-overflow: ellipsis;
}

.pcs-summary[aria-label="Job snapshot"] ~ .pcs-list-panel .pcs-chip::before {
  content: "";
  width: 0.95rem;
  height: 0.95rem;
  flex: 0 0 0.95rem;
  background: currentColor;
  -webkit-mask: var(--pcs-job-icon) center / contain no-repeat;
  mask: var(--pcs-job-icon) center / contain no-repeat;
}

.pcs-summary[aria-label="Job snapshot"] ~ .pcs-list-panel .pcs-chip:nth-child(1) {
  --pcs-job-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M4 4h7v7H4zm9 0h7v7h-7zM4 13h7v7H4zm9 0h7v7h-7z'/%3E%3C/svg%3E");
}

.pcs-summary[aria-label="Job snapshot"] ~ .pcs-list-panel .pcs-chip:nth-child(2) {
  --pcs-job-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M12 2l9 5v10l-9 5-9-5V7z'/%3E%3C/svg%3E");
}

.pcs-summary[aria-label="Job snapshot"] ~ .pcs-list-panel .pcs-chip:nth-child(3) {
  --pcs-job-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M12 2a10 10 0 100 20 10 10 0 000-20zm1 11H8v-2h3V7h2v6z'/%3E%3C/svg%3E");
}

.pcs-summary[aria-label="Job snapshot"] ~ .pcs-list-panel .pcs-chip:nth-child(4) {
  --pcs-job-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M14 4l6 4-6 4V9H8a4 4 0 000 8h2v2H8A6 6 0 118 7h6V4z'/%3E%3C/svg%3E");
}

.pcs-summary[aria-label="Job snapshot"] ~ .pcs-list-panel .pcs-chip:nth-child(5) {
  --pcs-job-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M12 2a10 10 0 100 20 10 10 0 000-20zm-1.2 14.2l-3.5-3.5 1.4-1.4 2.1 2.1 4.6-4.6 1.4 1.4-6 6z'/%3E%3C/svg%3E");
}

.pcs-summary[aria-label="Job snapshot"] ~ .pcs-list-panel .pcs-chip:nth-child(6) {
  --pcs-job-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M7 5l5 5 5-5 2 2-5 5 5 5-2 2-5-5-5 5-2-2 5-5-5-5z'/%3E%3C/svg%3E");
}

@media (max-width: 860px) {
  .pcs-summary[aria-label="Job snapshot"] .pcs-metrics,
  .pcs-summary[aria-label="Today"] .pcs-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 420px) {
  .pcs-summary[aria-label="Job snapshot"] .pcs-metrics,
  .pcs-summary[aria-label="Today"] .pcs-metrics {
    grid-template-columns: 1fr;
  }
}
