/* Scoped vars for RA admin trend (mirrors Risk Assessment executor dashboard trend block) */
.ex-dash.ra-admin-trend-embed {
  --c-done: #0f172a;
  --ex-text: #0f172a;
  --ex-muted: #64748b;
  --ex-border: #e2e8f0;
  --ex-subtle: #f8fafc;
  --panel-ex: #6b1420;
  font-family: inherit;
  color: var(--ex-text);
}

.ex-dash-trend-period {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 4px;
  background: var(--ex-subtle);
  border: 1px solid var(--ex-border);
  border-radius: 10px;
}

.ex-dash-trend-period-btn {
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  padding: 0.45rem 0.95rem;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: var(--ex-muted);
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.ex-dash-trend-period-btn:hover {
  color: var(--ex-text);
  background: rgba(0, 0, 0, 0.04);
}

.ex-dash-trend-period-btn--active {
  background: #ffffff;
  color: var(--ex-text);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
}

.ex-dash-trend-period-btn:focus-visible {
  outline: 2px solid var(--panel-ex);
  outline-offset: 2px;
}

.ex-dash-trend {
  background: linear-gradient(165deg, #ffffff 0%, #f8fafc 55%, #f1f5f9 100%);
  border: none;
  border-radius: 16px;
  padding: 14px 16px 12px;
  box-shadow:
    0 1px 2px rgba(15, 23, 42, 0.04),
    0 12px 40px rgba(15, 23, 42, 0.07);
}

.ex-dash-trend--role-verifier .ex-dash-trend-key--assigned {
  background: #64748b;
}

.ex-dash-trend--empty {
  min-height: 88px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.ex-dash-trend-empty-msg {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--ex-muted);
  text-align: center;
  max-width: 28rem;
}

.ex-dash-trend-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

.ex-dash-trend-head-lead {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 8px;
  min-width: 0;
}

.ex-dash-trend-head-intro {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  min-width: 0;
}

.ex-dash-trend-subtitle {
  margin: 0;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.35;
  color: var(--ex-muted);
}

.ex-dash-trend-head-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
}

.ex-dash-trend--empty {
  align-items: stretch;
  justify-content: flex-start;
}

.ex-dash-trend-head--empty {
  margin-bottom: 12px;
}

.ex-dash-trend-title {
  font-size: 26px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ex-text);
}

.ex-dash-trend-legend-inline {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ex-muted);
}

.ex-dash-trend-key {
  display: inline-block;
  width: 10px;
  height: 3px;
  border-radius: 2px;
  margin-right: 6px;
  vertical-align: middle;
}

.ex-dash-trend-key--assigned {
  background: var(--theme-red-bright, #dc2626);
}

.ex-dash-trend-key--completed {
  background: var(--c-done, #171717);
}

.ex-dash-trend--role-admin .ex-dash-trend-key--assigned {
  background: #8b1538;
}

.ex-dash-trend--role-admin .ex-dash-trend-key--completed {
  background: #189e52;
}

.ex-dash-trend-chart-wrap {
  width: 100%;
  min-width: 0;
  min-height: 0;
}

.ex-dash-trend-caption {
  margin: 2px 0 0;
  font-size: 11px;
  font-weight: 500;
  line-height: 1.35;
  color: var(--ex-muted);
}
