/* Governança: side-by-side comparison of the agents that published runs */
.agent-comparison {
  display: grid;
  gap: 8px;
  min-width: 0;
}
.agent-comparison h3,
.agent-comparison p {
  margin: 0;
}
.agent-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  background: var(--surface-panel);
}
.agent-table {
  table-layout: auto;
}
.agent-table th,
.agent-table th:first-child,
.agent-table th:last-child,
.agent-table th:nth-child(2),
.agent-table th:nth-child(3) {
  width: auto;
  white-space: nowrap;
  overflow-wrap: normal;
}
.agent-table td {
  vertical-align: middle;
}
.agent-table td {
  color: var(--text-primary);
  font-variant-numeric: tabular-nums;
}
.agent-name {
  white-space: nowrap;
}
.agent-name .badge {
  margin-left: 8px;
}
.agent-rate,
.agent-stuck {
  min-width: 120px;
}
.agent-rate strong,
.agent-stuck strong {
  margin-right: 6px;
}
.meter {
  display: block;
  height: 6px;
  margin-top: 6px;
  overflow: hidden;
  border-radius: 3px;
  background: var(--accent-soft);
}
.meter-fill {
  display: block;
  height: 100%;
  border-radius: 3px;
  background: var(--accent);
}
.meter-fill.w-0 {
  width: 0%;
}
.meter-fill.w-5 {
  width: 5%;
}
.meter-fill.w-10 {
  width: 10%;
}
.meter-fill.w-15 {
  width: 15%;
}
.meter-fill.w-20 {
  width: 20%;
}
.meter-fill.w-25 {
  width: 25%;
}
.meter-fill.w-30 {
  width: 30%;
}
.meter-fill.w-35 {
  width: 35%;
}
.meter-fill.w-40 {
  width: 40%;
}
.meter-fill.w-45 {
  width: 45%;
}
.meter-fill.w-50 {
  width: 50%;
}
.meter-fill.w-55 {
  width: 55%;
}
.meter-fill.w-60 {
  width: 60%;
}
.meter-fill.w-65 {
  width: 65%;
}
.meter-fill.w-70 {
  width: 70%;
}
.meter-fill.w-75 {
  width: 75%;
}
.meter-fill.w-80 {
  width: 80%;
}
.meter-fill.w-85 {
  width: 85%;
}
.meter-fill.w-90 {
  width: 90%;
}
.meter-fill.w-95 {
  width: 95%;
}
.meter-fill.w-100 {
  width: 100%;
}
.week-bars {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 28px;
}
.week-bar {
  flex: 0 0 8px;
  border-radius: 2px 2px 0 0;
  background: var(--text-muted);
}
.week-bar.current {
  background: var(--accent);
}
.week-bar.idle {
  height: 0;
  border-top: 2px dashed var(--border-strong);
  background: transparent;
}
.week-bar.h-0 {
  height: 2px;
}
.week-bar.h-10 {
  height: 10%;
}
.week-bar.h-20 {
  height: 20%;
}
.week-bar.h-30 {
  height: 30%;
}
.week-bar.h-40 {
  height: 40%;
}
.week-bar.h-50 {
  height: 50%;
}
.week-bar.h-60 {
  height: 60%;
}
.week-bar.h-70 {
  height: 70%;
}
.week-bar.h-80 {
  height: 80%;
}
.week-bar.h-90 {
  height: 90%;
}
.week-bar.h-100 {
  height: 100%;
}
@media (max-width: 760px) {
  /* Rows become cards through the shared table pattern in styles.css. */
  .agent-table-wrap {
    overflow: visible;
  }
  .agent-table td:last-child {
    grid-column: auto;
    border-top: 0;
    padding-top: 0;
  }
  .agent-name {
    grid-column: 1 / -1;
  }
}
