/* ─── Lead Lotus EA Diamonds crest — home hero + login banner only ──────────
   Scoped entirely under .lead-home-logo; linked only from Pages/Index.cshtml
   (via the "Styles" section) and Pages/Auth/Login.cshtml, so it never
   touches any other page in the app. */

.lead-home-logo {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  animation: leadLogoEntry 1200ms cubic-bezier(0.16, 1, 0.3, 1) 80ms both;
}

.lead-home-logo img {
  width: min(150px, 34vw);
  height: auto;
  filter: drop-shadow(0 10px 26px rgba(0, 0, 0, 0.35));
}

/* Smaller inside the compact login card (370px wide) than in the full hero. */
.login-box .lead-home-logo {
  margin-bottom: 8px;
}

.login-box .lead-home-logo img {
  width: 84px;
}

@keyframes leadLogoEntry {
  0% {
    opacity: 0;
    transform: translateY(18px) scale(0.94);
  }
  60% {
    opacity: 1;
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .lead-home-logo {
    animation: none;
  }
}

/* ─── Surat factory scorecard (management-only section on the dashboard) ──── */

#surat-scorecard .sc-live {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: #2e9e5b;
  vertical-align: middle;
  margin-left: 8px;
}

#surat-scorecard .sc-live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #2e9e5b;
  animation: scLivePulse 2s ease-in-out infinite;
}

@keyframes scLivePulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.25; }
}

@media (prefers-reduced-motion: reduce) {
  #surat-scorecard .sc-live-dot {
    animation: none;
  }
}

#surat-scorecard .sc-bracket-note {
  font-size: 0.72rem;
  font-weight: 400;
  color: #7a7a7a;
  margin-left: 10px;
}

#surat-scorecard .sc-matrix td,
#surat-scorecard .sc-matrix th {
  white-space: nowrap;
}

#surat-scorecard .sc-total td {
  border-top: 2px solid rgba(0, 0, 0, 0.15);
}

#surat-scorecard .sc-footnote {
  font-size: 0.72rem;
  color: #7a7a7a;
  padding: 8px 12px;
}
