/* mod-pipeline.css — Module B (2026-09-20): SLA config + stalled records.
   Reuses the app visual language (.card, .btn, .badge, .tiny/.small/.muted);
   only module-specific additions live here. */

/* ---- SLA config table ---- */
.sla-table {
  width: 100%;
  border-collapse: collapse;
  margin: 0.5rem 0;
}
.sla-table td {
  padding: 0.35rem 0.5rem;
  border-bottom: 1px solid var(--line, #e5e0d5);
  vertical-align: middle;
}
.sla-table td:first-child {
  width: 70%;
}
.sla-days {
  width: 4.5rem;
  text-align: right;
}

/* ---- stalled rows ---- */
.sr-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 0.6rem;
}
.sr-main {
  flex: 1 1 22rem;
  min-width: 0;
}
.sr-side {
  flex: 1 1 16rem;
  min-width: 14rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.badge.warn {
  background: var(--soft-amber, #fdf0d5);
  color: var(--amber-deep, #9a6a00);
}
.badge.bad {
  background: var(--soft-red, #fde8e8);
  color: var(--red, #b3261e);
}
.sr-factors {
  margin: 0.4rem 0 0;
}
.sr-factors ul {
  margin: 0.25rem 0 0 1.1rem;
  padding: 0;
  font-size: 0.9rem;
}
.sr-tags {
  margin-top: 0.4rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  align-items: center;
}
.tag-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  background: var(--soft-teal, #e6f4f1);
  color: var(--teal-dark, #0f6b5c);
  border-radius: 999px;
  padding: 0.15rem 0.1rem 0.15rem 0.6rem;
  font-size: 0.85rem;
}
.tag-x {
  border: none;
  background: transparent;
  color: inherit;
  font-size: 1rem;
  line-height: 1;
  padding: 0.1rem 0.45rem;
  cursor: pointer;
  min-height: 0;
}
.sr-tagadd {
  display: inline-flex;
  gap: 0.3rem;
  align-items: center;
}
.sr-tagadd input {
  width: 8rem;
}
.sr-naform {
  border-top: 1px dashed var(--line, #e5e0d5);
  padding-top: 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.sr-naform input[type="text"],
.sr-naform input:not([type]) {
  width: 100%;
}
.sr-naform label {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  font-size: 0.9rem;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}
