  /* ── Dashboard-specific styles ── */

  /* ── KPI Grid: 4 columns, 2 rows ── */
  .dash-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
  }

  .dash-grid .kpi-card {
    position: relative;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    text-align: center;
    border-left: none;
  }

  .dash-grid .kpi-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--gold-600), var(--gold-400));
  }

  .dash-grid .kpi-card .kpi-value {
    font-size: 1.4rem;
    font-variant-numeric: tabular-nums;
  }

  .dash-grid .kpi-card .kpi-value.negative { color: var(--danger); }
  .dash-grid .kpi-card .kpi-value.positive { color: var(--success); }
  .dash-grid .kpi-card .kpi-value.loading { color: var(--gray-300); }

  /* Clickable KPI cards */
  a.kpi-clickable {
    text-decoration: none;
    color: inherit;
    transition: border-color 0.15s, box-shadow 0.15s, transform 0.1s;
    cursor: pointer;
  }
  a.kpi-clickable:hover {
    border-color: var(--navy-500);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transform: translateY(-1px);
  }

  /* ── Chart card — full width ── */
  .dash-chart-card {
    max-width: 100%;
    margin-bottom: 1.5rem;
  }

  .dash-chart-card h2 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--navy-700);
    margin: 0 0 1rem;
  }

  /* ── Grouped bar chart ── */
  .grouped-chart {
    display: flex;
    align-items: flex-end;
    gap: 0.5rem;
    height: 280px;
    padding-top: 1rem;
    width: 100%;
  }

  .grouped-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    min-width: 0;
    position: relative;
  }

  .grouped-bars {
    display: flex;
    gap: 4px;
    align-items: flex-end;
    width: 100%;
    justify-content: center;
    height: 100%;
  }

  .g-bar {
    width: 100%;
    max-width: 36px;
    border-radius: 3px 3px 0 0;
    min-height: 2px;
    transition: height 0.5s ease;
  }

  .g-bar.revenue { background: linear-gradient(180deg, var(--navy-500), var(--navy-700)); }
  .g-bar.costs   { background: linear-gradient(180deg, var(--gold-500), var(--gold-600)); }

  .grouped-label {
    font-size: 0.78rem;
    color: var(--gray-500);
    margin-top: 0.5rem;
    text-align: center;
    font-weight: 500;
  }

  /* ── Netto line overlay ── */
  .netto-line-wrap {
    position: relative;
    height: 280px;
    margin-top: -280px;
    pointer-events: none;
  }

  .netto-dot {
    position: absolute;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--success);
    border: 2px solid var(--white);
    transform: translate(-50%, -50%);
    z-index: 5;
  }

  .netto-line {
    position: absolute;
    height: 2px;
    background: var(--success);
    transform-origin: left center;
    z-index: 4;
  }

  /* ── Chart legend ── */
  .chart-legend {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    margin-top: 0.75rem;
    font-size: 0.8rem;
    color: var(--gray-500);
  }

  .chart-legend span { display: inline-flex; align-items: center; gap: 6px; }

  .legend-swatch {
    display: inline-block;
    width: 14px;
    height: 10px;
    border-radius: 2px;
  }

  /* ── Chart tooltip ── */
  .chart-tooltip {
    display: none;
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--navy-800);
    color: var(--white);
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 0.75rem;
    white-space: nowrap;
    z-index: 10;
    pointer-events: none;
    margin-bottom: 4px;
  }
  .grouped-col:hover .chart-tooltip { display: block; }

  /* ── Empty state ── */
  .empty-msg {
    color: var(--gray-500);
    text-align: center;
    padding: 2rem;
    font-size: 0.9rem;
    width: 100%;
  }

  /* ── Responsive ── */
  @media (max-width: 900px) {
    .dash-grid {
      grid-template-columns: repeat(2, 1fr);
    }
  }
  @media (max-width: 500px) {
    .dash-grid {
      grid-template-columns: 1fr;
    }
  }
