/* Eval pages share the base style.css + these additions. */
.eval-nav {
  display: flex;
  gap: 4px;
  padding: 0 24px;
  background: #fff;
  border-bottom: 1px solid #e5e7eb;
}
.eval-nav a {
  padding: 12px 16px;
  color: #4b5563;
  text-decoration: none;
  font-size: 13px;
  border-bottom: 2px solid transparent;
}
.eval-nav a.active {
  color: #2563eb;
  border-bottom-color: #2563eb;
  font-weight: 500;
}
.eval-nav a:hover { color: #111827; }
.eval-nav .right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.eval-nav .meta { color: #6b7280; font-size: 12px; }

.score-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.score-table th { background: #fafbfc; color: #374151; font-weight: 500; position: sticky; top: 0; }
.score-table th, .score-table td {
  text-align: center;
  padding: 8px 6px;
  border-bottom: 1px solid #f0f1f3;
}
.score-table td.name { text-align: left; font-weight: 500; }
.score-table td.dim { font-family: ui-monospace, "SF Mono", Consolas, monospace; }
.score-table tr:hover { background: #f9fafb; cursor: pointer; }

.total-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-weight: 600;
  font-family: ui-monospace, "SF Mono", Consolas, monospace;
  min-width: 52px;
}

.status-pill {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 11px;
}
.status-ok { background: #dcfce7; color: #166534; }
.status-error { background: #fee2e2; color: #991b1b; }
.status-disabled { background: #f3f4f6; color: #6b7280; }

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
  margin: 16px 0 4px;
}
.kpi {
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 12px 14px;
}
.kpi .label { color: #6b7280; font-size: 12px; }
.kpi .value { font-size: 22px; font-weight: 600; margin-top: 4px; font-family: ui-monospace, "SF Mono", Consolas, monospace; }

.dim-panel {
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  margin-bottom: 12px;
  background: #fff;
}
.dim-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  cursor: pointer;
  user-select: none;
}
.dim-head .title { display: flex; gap: 10px; align-items: center; }
.dim-head .bar {
  display: inline-block;
  width: 100px;
  height: 6px;
  background: #e5e7eb;
  border-radius: 3px;
  overflow: hidden;
  position: relative;
}
.dim-head .bar > span {
  display: block;
  height: 100%;
  background: #3b82f6;
}
.dim-body { padding: 0 16px 14px; display: none; }
.dim-panel.open .dim-body { display: block; }

.detail-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.detail-table th, .detail-table td { padding: 6px 8px; border-bottom: 1px solid #f3f4f6; text-align: left; }
.detail-table th { color: #6b7280; font-weight: 500; background: #fafbfc; }
.detail-table td.mono { font-family: ui-monospace, "SF Mono", Consolas, monospace; }
.detail-table .pass { color: #166534; }
.detail-table .fail { color: #991b1b; }
.detail-table pre {
  margin: 0;
  white-space: pre-wrap;
  word-break: break-all;
  font-size: 11px;
  color: #4b5563;
  max-height: 120px;
  overflow: auto;
}

.loader {
  color: #6b7280;
  padding: 20px;
  text-align: center;
}

.chart-wrap {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 16px;
}
.chart-wrap canvas { max-height: 360px; }

.inline-form {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.inline-form select, .inline-form input[type=number] {
  padding: 6px 10px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-size: 13px;
  background: #fff;
}

.checkbox-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 8px 16px;
  margin: 12px 0;
}
.checkbox-grid label {
  display: flex;
  gap: 6px;
  align-items: center;
  font-size: 13px;
  color: #111827;
  cursor: pointer;
}

.runs-list { list-style: none; padding: 0; margin: 0; }
.runs-list li {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid #f0f1f3;
  font-size: 13px;
}
.runs-list .trigger-tag {
  background: #eef2ff;
  color: #3730a3;
  padding: 1px 8px;
  border-radius: 4px;
  font-size: 11px;
}

/* dimension explanation + scoring breakdown on provider page */
.dim-explain {
  background: #f9fafb;
  border-left: 3px solid #3b82f6;
  padding: 10px 14px;
  margin: 0 0 14px;
  font-size: 13px;
  color: #374151;
  line-height: 1.65;
}
.dim-explain strong { color: #111827; }
.dim-explain .method { margin-bottom: 8px; }
.dim-explain ul { margin: 4px 0 0; padding-left: 18px; }
.dim-explain li { margin: 2px 0; }
.breakdown-pill {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 11px;
  font-family: ui-monospace, Consolas, monospace;
  margin-right: 4px;
  margin-top: 2px;
}
.breakdown-pill.earned { background: #dcfce7; color: #166534; }
.breakdown-pill.missed { background: #fee2e2; color: #991b1b; }
.breakdown-pill.partial { background: #fef9c3; color: #854d0e; }
.details-toggle {
  font-size: 12px;
  color: #6b7280;
  margin-top: 10px;
  cursor: pointer;
  user-select: none;
}
.details-toggle:hover { color: #2563eb; }
.details-toggle::before { content: "▸ "; }
.dim-panel.details-open .details-toggle::before { content: "▾ "; }
.dim-panel:not(.details-open) .detail-table { display: none; }
