
.delivery-card {
  margin-bottom: 24px;
  padding: 24px;
  display: grid;
  gap: 20px;
  min-width: 0;
}
.delivery-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.delivery-heading h2 {
  margin: 0 0 8px;
}
.delivery-metrics {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
}
.delivery-metrics > div {
  padding: 16px;
  background: var(--pv-muted);
  border-radius: 12px;
  min-width: 0;
}
.delivery-metrics dt {
  font-size: 12px;
  color: var(--pv-secondary);
}
.delivery-metrics dd {
  font-size: 28px;
  font-weight: 600;
  line-height: 1.4;
  margin: 8px 0 0;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}
.delivery-metrics .has-failures {
  background: var(--pv-error-bg);
  color: var(--pv-error-fg);
}
.delivery-metrics .has-failures dt {
  color: inherit;
}
.delivery-progress > div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 8px;
}
.delivery-progress label {
  font-weight: 600;
}
.delivery-progress progress {
  display: block;
  width: 100%;
  height: 10px;
  border: 0;
  border-radius: 999px;
  overflow: hidden;
  background: var(--pv-muted);
  accent-color: var(--pv-red);
}
.delivery-progress progress::-webkit-progress-bar {
  background: var(--pv-muted);
  border-radius: 999px;
}
.delivery-progress progress::-webkit-progress-value {
  background: var(--pv-red);
  border-radius: 999px;
}
.delivery-progress progress::-moz-progress-bar {
  background: var(--pv-red);
  border-radius: 999px;
}
.delivery-progress p {
  margin-top: 8px;
}
.delivery-times {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 0;
  padding-top: 20px;
  border-top: 1px solid var(--pv-border);
}
.delivery-times dt {
  color: var(--pv-secondary);
  font-size: 12px;
  margin-bottom: 4px;
}
.delivery-times dd {
  margin: 0;
  overflow-wrap: anywhere;
}
.delivery-unavailable {
  padding: 20px;
  background: var(--pv-muted);
  border-radius: 12px;
}
.delivery-unavailable p {
  margin-top: 8px;
}
@media (max-width: 800px) {
  .delivery-metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 599px) {
  .delivery-card {
    padding: 20px;
  }
  .delivery-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .delivery-times {
    grid-template-columns: minmax(0, 1fr);
  }
  .delivery-heading .badge {
    max-width: 100%;
  }
}

#bd-data {display:grid;gap:20px} #broadcast-delivery-result [hidden] {display:none!important} #broadcast-delivery-result .field {margin:0} #broadcast-delivery-result .row {align-items:end} #broadcast-delivery-result h3 {margin:0 0 8px}


.delivery-actions {display:flex;gap:12px;align-items:center;justify-content:flex-end;flex-wrap:wrap;margin-left:auto}
.delivery-timeline {list-style:none;margin:20px 0 0;padding:0 0 0 5px}
.delivery-timeline li {position:relative;padding:0 0 24px 24px;border-left:1px solid var(--pv-border)}
.delivery-timeline li:last-child {border:0;padding-bottom:0}
.delivery-timeline li::before {content:'';position:absolute;left:-5px;top:5px;width:9px;height:9px;border-radius:50%;background:var(--pv-info-fg)}
.delivery-timeline small {display:block;color:var(--pv-secondary);margin-top:8px;font-size:12px}
.delivery-timeline .job-failed strong {color:var(--pv-error-fg)}
.delivery-timeline .job-failed::before {background:var(--pv-error-fg)}
