/**
 * dashboard-shell.css — Altavio Insights dashboard shell add-ons
 *
 * ADAPT-IN-PLACE NOTE
 * -------------------
 * The persistent app shell (top nav `.dash-topbar`, left sidebar `.dash-sidebar`,
 * sticky filter bar `.dash-filterbar`, tab bar `.dash-tabbar`), the tab system
 * (`switchTab`), the multilingual ⓘ tooltip system (`beginner_ui.js`), the
 * client-side filter/chip system (`applyFilters` + `.dash-fb-chips`) and the
 * Plotly + D3 charts ALREADY exist in dashboard_premium.html / dashboard_free.html.
 *
 * This stylesheet therefore only adds the *new* PPTX-aligned pieces that were
 * genuinely missing, restyled to match the existing navy sidebar palette and the
 * brand CSS variables (--navy/--blue/--blue2/--blue-pale). It is loaded AFTER
 * dark-mode.css and BEFORE each template's inline <style>, so nothing here
 * overrides existing working layout. All colours use variables or rgba() only.
 */

/* ── KPI value colour (REDESIGN v3: % Return own card) ──────────── */
.dash-kpi-card__value.pos { color: var(--green, #16a34a); }
.dash-kpi-card__value.neg { color: var(--red, #dc2626); }

/* ── Sidebar: Last Update line (PPTX) ───────────────────────────── */
.dash-sidebar__last-update {
  padding: 4px 14px 8px;
  font-size: 10.5px;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.4;
}
.dash-sidebar__last-update strong {
  color: rgba(255, 255, 255, 0.8);
  font-weight: 600;
}

/* ── Sidebar: Watchlist (PPTX) — UI-only placeholder ────────────── */
.dash-watchlist {
  padding: 4px 10px 8px;
}
.dash-watchlist__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 4px 4px;
}
.dash-watchlist__title {
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
}
.dash-watchlist__add {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.55);
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
  padding: 0 4px;
  border-radius: 4px;
  transition: background 0.12s ease, color 0.12s ease;
}
.dash-watchlist__add:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}
.dash-watchlist__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 4px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.72);
  border-radius: 5px;
  transition: background 0.12s ease;
}
.dash-watchlist__row:hover {
  background: rgba(255, 255, 255, 0.06);
}
.dash-watchlist__ticker {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.dash-watchlist__badge {
  flex-shrink: 0;
  margin-left: 8px;
  font-size: 10.5px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  padding: 1px 8px;
}
.dash-watchlist__more {
  display: inline-block;
  margin: 4px 4px 0;
  background: none;
  border: none;
  color: var(--blue2, #3b7dd8);
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  padding: 2px 0;
}
.dash-watchlist__more:hover {
  text-decoration: underline;
}
.dash-watchlist__extra[hidden] {
  display: none;
}

/* ── Demo banner (PPTX Slide 1 / brief §9) ──────────────────────── */
.dash-demo-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 10px 14px 0;
  padding: 9px 14px;
  background: var(--blue-pale, #e8f0fb);
  color: var(--blue, #1a4faf);
  border: 1px solid var(--blue2, #3b7dd8);
  border-radius: var(--radius, 8px);
  font-size: 12.5px;
  font-weight: 500;
}
.dash-demo-banner__text {
  flex: 1;
}
.dash-demo-banner__cta {
  color: var(--blue, #1a4faf);
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}
.dash-demo-banner__cta:hover {
  text-decoration: underline;
}
.dash-demo-banner__close {
  background: none;
  border: none;
  color: var(--blue, #1a4faf);
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  padding: 0 2px;
  opacity: 0.7;
}
.dash-demo-banner__close:hover {
  opacity: 1;
}

[data-theme="dark"] .dash-demo-banner {
  background: var(--blue-pale, rgba(59, 130, 246, 0.15));
  color: var(--blue2, #60a5fa);
  border-color: var(--color-border, #1e3a5f);
}
[data-theme="dark"] .dash-demo-banner__cta,
[data-theme="dark"] .dash-demo-banner__close {
  color: var(--blue2, #60a5fa);
}
