.ecr-manage .ecr-wizard-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(6, minmax(120px, 1fr));
}
.ecr-manage .ecr-wizard-steps li {
  position: relative;
  text-align: center;
}
.ecr-manage .ecr-wizard-steps li button {
  width: 100%;
  border: 1px solid #d0d7de;
  border-radius: 10px;
  background: #fff;
  color: #3a4a5a;
  font-weight: 600;
  font-size: 0.9rem;
  line-height: 1.1rem;
  padding: 12px 10px;
  transition: all 0.2s ease;
}
.ecr-manage .ecr-wizard-steps li.completed button {
  background: #e8f7ee;
  border-color: #6fcb94;
  color: #1b7f46;
}
.ecr-manage .ecr-wizard-steps li.current button {
  background: #eef4ff;
  border-color: #6d9dff;
  color: #0d47c7;
  box-shadow: 0 0 0 2px rgba(109, 157, 255, 0.18);
}
.ecr-manage .ecr-wizard-steps li.locked button {
  background: #f5f7f9;
  color: #8a96a3;
  cursor: not-allowed;
}
.ecr-manage .ecr-wizard-steps li.locked button:hover {
  transform: none;
}
.ecr-manage .ecr-wizard-steps li:not(.locked) button:hover {
  transform: translateY(-1px);
}
.ecr-manage .card-header {
  font-weight: 700;
}
@media (max-width: 1200px) {
  .ecr-manage .ecr-wizard-steps {
    grid-template-columns: repeat(3, minmax(140px, 1fr));
  }
}
@media (max-width: 768px) {
  .ecr-manage .ecr-wizard-steps {
    grid-template-columns: repeat(2, minmax(130px, 1fr));
  }
}
.impact-matrix th,
.impact-matrix td {
  min-width: 190px;
  /* forces horizontal scroll instead of crushing */
  vertical-align: top;
}
.impact-input textarea,
.impact-input .e-input,
.impact-input .e-control {
  min-height: 95px;
  /* “friendly” textarea size */
}
.reviewer-impact-board {
  display: grid;
  gap: 1rem;
}
.reviewer-impact-card {
  border: 1px solid #dbe5f0;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.05);
  overflow: hidden;
}
.reviewer-impact-card.is-editable {
  border-color: #b9d7ff;
  box-shadow: 0 14px 30px rgba(59, 130, 246, 0.12);
}
.reviewer-impact-card.needs-review {
  border-color: #60a5fa;
  box-shadow: 0 16px 34px rgba(59, 130, 246, 0.16);
}
.reviewer-impact-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem 1.1rem;
  border-bottom: 1px solid #edf2f7;
  background: linear-gradient(180deg, rgba(248, 250, 252, 0.95) 0%, rgba(255, 255, 255, 0.98) 100%);
}
.reviewer-impact-toggle {
  width: 100%;
  border: 0;
  text-align: left;
  cursor: pointer;
}
.reviewer-impact-toggle:hover {
  background: linear-gradient(180deg, rgba(241, 245, 249, 0.98) 0%, #ffffff 100%);
}
.reviewer-impact-card-title {
  margin: 0;
  color: #17324d;
  font-size: 1rem;
  font-weight: 700;
}
.reviewer-impact-card-subtitle {
  margin-top: 0.3rem;
  color: #64748b;
  font-size: 0.88rem;
}
.reviewer-impact-card-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.5rem;
}
.reviewer-impact-callout,
.ecr-attention-chip {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.35rem 0.7rem;
  background: #dbeafe;
  border: 1px solid #93c5fd;
  color: #1d4ed8;
  font-size: 0.78rem;
  font-weight: 800;
  white-space: nowrap;
}
.ecr-attention-chip {
  animation: ecr-attention-pulse 1.8s ease-in-out infinite;
  box-shadow: 0 0 0 0 rgba(29, 78, 216, 0.28);
}
@keyframes ecr-attention-pulse {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(29, 78, 216, 0.28);
  }
  50% {
    transform: scale(1.03);
    box-shadow: 0 0 0 0.4rem rgba(29, 78, 216, 0.12);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(29, 78, 216, 0);
  }
}
@media (prefers-reduced-motion: reduce) {
  .ecr-attention-chip {
    animation: none;
  }
}
.ecr-chip-note {
  color: #64748b;
  font-size: 0.8rem;
}
.reviewer-impact-toggle-text {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.35rem 0.7rem;
  background: #ffffff;
  border: 1px solid #dbe5f0;
  color: #334155;
  font-size: 0.78rem;
  font-weight: 700;
  white-space: nowrap;
}
.reviewer-impact-badge,
.reviewer-impact-mode {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.35rem 0.7rem;
  font-size: 0.78rem;
  font-weight: 700;
  white-space: nowrap;
}
.reviewer-impact-badge.is-approved {
  background: #e8f7ee;
  color: #1b7f46;
}
.reviewer-impact-badge.is-pending {
  background: #fff4db;
  color: #8a5a00;
}
.reviewer-impact-badge.is-rejected {
  background: #fde8ea;
  color: #b42318;
}
.reviewer-impact-badge.is-cleared {
  background: #eef2f7;
  color: #475569;
}
.reviewer-impact-mode.is-editable {
  background: #eef4ff;
  color: #0d47c7;
}
.reviewer-impact-mode.is-readonly {
  background: #f1f5f9;
  color: #475569;
}
.reviewer-impact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  padding: 1rem 1.1rem 1.1rem;
}
.reviewer-impact-field {
  min-width: 0;
  border: 1px solid transparent;
  border-radius: 16px;
  padding: 0.75rem;
  background: #ffffff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}
.reviewer-impact-field--full {
  grid-column: 1 / -1;
}
.reviewer-impact-label {
  margin-bottom: 0.45rem;
  color: #526273;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.reviewer-impact-readonly {
  min-height: 108px;
  padding: 0.85rem 0.9rem;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  background: #f8fafc;
  color: #1f2937;
  line-height: 1.5;
  white-space: pre-wrap;
  word-break: break-word;
}
.reviewer-impact-readonly.is-empty {
  color: #94a3b8;
}
.reviewer-impact-field.is-affected {
  border-color: #3b82f6;
  background: #eff6ff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.3);
}
.reviewer-impact-field.is-affected .reviewer-impact-label {
  color: #1d4ed8;
  font-weight: 800;
}
.reviewer-impact-field.is-affected .reviewer-impact-readonly,
.reviewer-impact-field.is-affected .e-input-group,
.reviewer-impact-field.is-affected .e-control-wrapper {
  border-color: #3b82f6;
}
.reviewer-impact-card .impact-input textarea,
.reviewer-impact-card .impact-input .e-input,
.reviewer-impact-card .impact-input .e-control {
  min-height: 108px;
}
.reviewer-impact-card .e-input-group,
.reviewer-impact-card .e-control-wrapper,
.reviewer-impact-card .e-ddl,
.reviewer-impact-card .e-multiselect {
  border-radius: 14px;
}
.ecr-timeline {
  position: relative;
  margin-left: 6px;
  padding-left: 20px;
}
.ecr-timeline::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 4px;
  bottom: 4px;
  width: 2px;
  background: #e9ecef;
  /* light gray */
}
.ecr-timeline-item {
  position: relative;
  padding: 10px 0 10px 0;
}
.ecr-timeline-marker {
  position: absolute;
  left: -2px;
  top: 16px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #ffffff;
  border: 2px solid #0d6efd;
  /* bootstrap primary */
}
.ecr-timeline-content {
  background: #f8f9fa;
  border: 1px solid #e9ecef;
  border-radius: 10px;
  padding: 10px 12px;
}
.timeline {
  border-left: 1px solid hsl(0, 0%, 90%);
  position: relative;
  list-style: none;
  padding-left: 1.25rem;
  margin-left: 1rem;
  margin-bottom: 0;
}
.timeline .timeline-item {
  position: relative;
}
/* default */
.timeline .timeline-item:after {
  background-color: hsl(0, 0%, 90%);
  left: -2.4rem;
  border-radius: 50%;
  height: 11px;
  width: 11px;
  content: "";
  position: absolute;
  top: 0.35rem;
  display: block;
}
/* color overrides */
.timeline .timeline-item.tl-latest.tl-approved:after {
  box-shadow: 0 0 0 0 rgba(25, 135, 84, 0.45);
}
.timeline .timeline-item.tl-latest.tl-rejected:after {
  box-shadow: 0 0 0 0 rgba(220, 53, 69, 0.45);
}
.timeline .timeline-item.tl-latest.tl-comment:after {
  box-shadow: 0 0 0 0 rgba(13, 110, 253, 0.45);
}
.timeline .timeline-item.tl-latest.tl-default:after {
  box-shadow: 0 0 0 0 rgba(108, 117, 125, 0.45);
}
/* gray */
/* Optional: make each item feel like a “card” without being heavy */
.timeline .timeline-item {
  padding-left: 0.25rem;
}
.timeline .timeline-item .text-muted {
  line-height: 1.25rem;
}
@keyframes tlPulse {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(13, 110, 253, 0.45);
  }
  70% {
    transform: scale(1.15);
    box-shadow: 0 0 0 10px rgba(13, 110, 253, 0);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(13, 110, 253, 0);
  }
}
.timeline .timeline-item.tl-latest:after {
  animation: tlPulse 1.6s ease-out infinite;
}
@media (prefers-reduced-motion: reduce) {
  .timeline .timeline-item.tl-latest:after {
    animation: none;
  }
}
.ecr-summary .card-header,
.ecr-summary .card-body {
  background: #FFFFFF !important;
}
.ecr-summary {
  background-color: #FFFFFF;
  border-radius: 14px;
}
.ecr-summary .card-header {
  border-bottom: 1px solid #eef0f2;
  padding: 1rem 1.1rem;
  border-top-left-radius: 14px;
  border-top-right-radius: 14px;
}
.ecr-status {
  background: #eef2ff;
  color: #3730a3;
  font-weight: 600;
}
.ecr-field {
  background: #f8f9fb;
  border: 1px solid #eef0f2;
  border-radius: 12px;
  padding: 0.85rem 0.9rem;
  height: 100%;
}
.ecr-label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #6c757d;
  margin-bottom: 0.25rem;
  font-weight: 700;
}
.ecr-value {
  font-size: 0.98rem;
  color: #212529;
  word-break: break-word;
}
.ecr-description :global(p) {
  margin-bottom: 0.5rem;
}
@keyframes stepPulse {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(13, 110, 253, 0.35);
  }
  70% {
    transform: scale(1.05);
    box-shadow: 0 0 0 10px rgba(13, 110, 253, 0);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(13, 110, 253, 0);
  }
}
.ecr-wizard-steps li.pulse-latest > button {
  position: relative;
  animation: stepPulse 1.6s ease-out infinite;
  border-radius: 999px;
}
.ecr-wizard-steps li.pulse-latest > button {
  font-weight: 700;
}
@media (prefers-reduced-motion: reduce) {
  .ecr-wizard-steps li.pulse-latest > button {
    animation: none;
  }
}
.ecr-step-loading-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.28);
  backdrop-filter: blur(2px);
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ecr-step-loading-card {
  min-width: 320px;
  max-width: 460px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 8px 26px rgba(0, 0, 0, 0.18);
  padding: 18px 22px;
  text-align: center;
}
.ecr-step-spinner {
  width: 2rem;
  height: 2rem;
}
.ecr-step-loading-title {
  margin-top: 0.75rem;
  font-weight: 600;
}
.ecr-step-loading-message {
  margin-top: 0.35rem;
}
.cancel-ecr-dialog {
  display: grid;
  gap: 0.75rem;
}
@media (max-width: 991.98px) {
  .reviewer-impact-card-header {
    flex-direction: column;
    align-items: stretch;
  }
  .reviewer-impact-card-meta {
    justify-content: flex-start;
  }
}
@media (max-width: 767.98px) {
  .reviewer-impact-grid {
    grid-template-columns: 1fr;
  }
  .reviewer-impact-field--full {
    grid-column: 1;
  }
}
