/* wa-lint: skip */
/* ============================================================
   stand-hero-dashboard.css — hero partial: arrangør-dashboard.
   Sidebar + KPI strip + chart + activity stream.
   Role-aware overlays.
   ============================================================ */

.stand-hero-dash {
  position: relative;
  width: min(100%, 760px);
  aspect-ratio: 600/380;
  background: rgb(255, 255, 255);
  border-radius: 16px;
  border: 1px solid var(--line);
  box-shadow:
    0 1px 0 rgba(49, 79, 89, 0.04),
    0 30px 60px -20px rgba(49, 79, 89, 0.25);
  overflow: hidden;
  display: grid;
  grid-template-columns: 56px 1fr;
  isolation: isolate;
}
[data-theme="dark"] .stand-hero-dash { background: var(--surface); }

/* Sidebar */
.stand-hero-dash__sidebar {
  background: rgb(29, 35, 39);
  color: rgb(255, 255, 255);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 14px 0;
  gap: 12px;
}
.stand-hero-dash__brand {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: var(--accent);
  color: rgb(255, 255, 255);
  font-weight: 700;
  font-size: 16px;
  margin-bottom: 6px;
}
.stand-hero-dash__nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1 1 auto;
}
.stand-hero-dash__nav span {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.55);
  transition: background .2s, color .2s;
}
.stand-hero-dash__nav span svg { width: 16px; height: 16px; }
.stand-hero-dash__nav .is-active {
  background: rgba(184, 90, 58, 0.22);
  color: var(--accent);
}

/* Main canvas */
.stand-hero-dash__main {
  display: flex;
  flex-direction: column;
  padding: 14px 16px 14px;
  min-width: 0;
}

.stand-hero-dash__topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.stand-hero-dash__title {
  font-size: 13px;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: -0.01em;
}
.stand-hero-dash__live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.stand-hero-dash__live .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgb(34, 196, 94);
  box-shadow: 0 0 0 2px rgba(34, 196, 94, 0.22);
  animation: dashLivePulse 1.6s ease-in-out infinite;
}
@keyframes dashLivePulse {
  0%, 100% { box-shadow: 0 0 0 2px rgba(34, 196, 94, 0.22); }
  50%      { box-shadow: 0 0 0 6px rgba(34, 196, 94, 0); }
}

/* KPIs */
.stand-hero-dash__kpi {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 12px;
}
.stand-hero-dash__kpi .kpi {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 8px 10px;
  display: flex;
  flex-direction: column;
  gap: 1px;
  position: relative;
}
.stand-hero-dash__kpi .kpi em {
  font-size: 9.5px;
  font-style: normal;
  color: var(--muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.stand-hero-dash__kpi .kpi strong {
  font-size: 18px;
  color: var(--primary);
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.1;
}
.stand-hero-dash__kpi .kpi__delta {
  font-size: 9px;
  font-weight: 700;
  color: rgb(34, 196, 94);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.stand-hero-dash__kpi .kpi__delta--up { color: rgb(34, 196, 94); }
.stand-hero-dash__kpi .kpi__delta--down { color: var(--accent); }

/* Chart + activity row */
.stand-hero-dash__row {
  flex: 1 1 auto;
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 10px;
  min-height: 0;
}
.stand-hero-dash__chart,
.stand-hero-dash__activity {
  background: rgb(255, 255, 255);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 12px;
  min-width: 0;
  display: flex;
  flex-direction: column;
}
[data-theme="dark"] .stand-hero-dash__chart,
[data-theme="dark"] .stand-hero-dash__activity { background: rgba(255,255,255,0.02); }
.stand-hero-dash__chart-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  font-size: 10px;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.stand-hero-dash__chart-sub { font-weight: 600; color: var(--muted); }

.stand-hero-dash__bars {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  flex: 1 1 auto;
  min-height: 0;
}
.stand-hero-dash__bars > div {
  flex: 1 1 0;
  background: linear-gradient(180deg, rgba(127, 190, 198, 0.55) 0%, rgba(127, 190, 198, 0.85) 100%);
  border-radius: 4px 4px 0 0;
  position: relative;
  min-height: 6px;
}
.stand-hero-dash__bars > div span {
  position: absolute;
  bottom: -14px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 8.5px;
  color: var(--muted);
  font-weight: 700;
}
.stand-hero-dash__bars > div.is-now {
  background: linear-gradient(180deg, rgba(184, 90, 58, 0.65) 0%, rgba(184, 90, 58, 0.95) 100%);
}

.stand-hero-dash__activity ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
  overflow: hidden;
}
.stand-hero-dash__activity li {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 10px;
  color: var(--brand-30);
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.stand-hero-dash__activity .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex: 0 0 auto;
}
.stand-hero-dash__activity .dot--ok    { background: rgb(34, 196, 94); }
.stand-hero-dash__activity .dot--warn  { background: rgb(244, 185, 66); }
.stand-hero-dash__activity .dot--accent { background: var(--accent); }

/* Role-aware highlights */
.stand[data-role="udstiller"] .stand-hero-dash__activity li:not(.is-mine) {
  opacity: 0.55;
}
.stand[data-role="udstiller"] .stand-hero-dash__activity li.is-mine {
  background: rgba(184, 90, 58, 0.10);
  border-radius: 6px;
  margin: 0 -4px;
  padding: 4px 4px;
}

.stand[data-role="besoegende"] .stand-hero-dash__main { opacity: 0.55; }
.stand[data-role="besoegende"] .stand-hero-dash__sidebar { opacity: 0.55; }

/* === Overlays === */
.stand-hero-dash__overlay {
  position: absolute;
  bottom: 12px;
  right: 12px;
  background: rgb(29, 35, 39);
  color: rgb(255, 255, 255);
  border-radius: 10px;
  padding: 8px 12px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  box-shadow: 0 12px 28px -8px var(--shadow-color);
  opacity: 0;
  transform: translateY(4px);
  transition: opacity .35s, transform .35s;
  pointer-events: none;
  display: none;
  z-index: 5;
  max-width: 60%;
}
.stand-hero-dash__overlay strong {
  display: block;
  color: var(--accent);
  font-size: 10px;
  letter-spacing: 0.08em;
  margin-bottom: 2px;
}
.stand-hero-dash__overlay--arrangoer strong { color: rgb(244, 185, 66); }

.stand[data-role="arrangoer"]  .stand-hero-dash__overlay--arrangoer,
.stand[data-role="udstiller"]  .stand-hero-dash__overlay--udstiller,
.stand[data-role="besoegende"] .stand-hero-dash__overlay--besoegende {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 640px) {
  .stand-hero-dash { aspect-ratio: 4/5; grid-template-columns: 44px 1fr; }
  .stand-hero-dash__sidebar { padding: 10px 0; gap: 8px; }
  .stand-hero-dash__brand { width: 26px; height: 26px; font-size: 13px; }
  .stand-hero-dash__nav span { width: 26px; height: 26px; }
  .stand-hero-dash__nav span svg { width: 14px; height: 14px; }
  .stand-hero-dash__main { padding: 10px 12px; }
  .stand-hero-dash__kpi { grid-template-columns: 1fr 1fr; }
  .stand-hero-dash__row { grid-template-columns: 1fr; }
  .stand-hero-dash__activity li { font-size: 11px; }
  .stand-hero-dash__overlay { font-size: 10px; padding: 7px 10px; max-width: 80%; }
}
