

/* ---------- Print ---------- */

@media print {
  html, body { background: #ffffff !important; color: #000 !important; }
  body { font-size: 11pt; }
  .navbar, .market-statusbar-wrap, .mobile-tabbar, .app-toast-stack,
  .section-actions, .page-actions, .toolbar-row,
  .col-toggle, .table-paginate, .density-switch, button, .btn,
  .skip-link, .empty-state-block__action {
    display: none !important;
  }
  .app-shell, .container, .container-fluid { max-width: 100% !important; padding: 0 !important; }
  .card, .compact-card, .surface-accent, .app-panel-card {
    border: 1px solid #999 !important;
    background: #fff !important;
    box-shadow: none !important;
    page-break-inside: avoid;
    overflow: visible !important;
  }
  .card-header { background: #f3f3f3 !important; color: #000 !important; }
  .surface-accent::before, .modal-content::before { display: none !important; }
  table.table { width: 100% !important; }
  table.table thead th { background: #eee !important; color: #000 !important; }
  table.table tbody td { color: #000 !important; border-color: #ccc !important; }
  .kpi-positive { color: #000 !important; font-weight: 700; }
  .kpi-negative { color: #000 !important; font-weight: 700; }
  .kpi-positive::before { content: "+ "; }
  .kpi-negative::before { content: "- "; }
  a, a:visited { color: #000 !important; text-decoration: none !important; }
  .panel-scroll, .panel-scroll-sm { max-height: none !important; overflow: visible !important; }
  .chart-stage { page-break-inside: avoid; }
}


/* ---------- Stepper component (for /app/live future split) ---------- */

.stepper {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.55rem;
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-md);
  background: var(--surface-strong);
  font-size: 0.85rem;
  overflow-x: auto;
  scrollbar-width: none;
}

.stepper::-webkit-scrollbar { display: none; }

.stepper__step {
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
  padding: 0.28rem 0.52rem;
  border-radius: 6px;
  color: var(--text-500);
  white-space: nowrap;
  cursor: pointer;
}

.stepper__step:hover { background: rgba(120, 145, 178, 0.10); color: var(--text-700); }

.stepper__step.is-current {
  background: rgba(59, 130, 246, 0.10);
  color: var(--brand-700);
  font-weight: 700;
}

.stepper__step.is-done { color: var(--text-700); }

.stepper__step.is-done .stepper__num {
  background: var(--success-600);
  border-color: var(--success-600);
  color: #ffffff;
}

.stepper__step.is-done .stepper__num::before { content: "✓"; }
.stepper__step.is-done .stepper__num span { display: none; }

.stepper__num {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1.5px solid currentColor;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono-font);
  font-size: 0.74rem;
  font-weight: 700;
  background: transparent;
}

.stepper__step.is-current .stepper__num {
  background: var(--brand-600);
  border-color: var(--brand-600);
  color: #ffffff;
}

.stepper__sep {
  flex: 0 0 auto;
  width: 18px;
  height: 1px;
  background: var(--surface-border);
}


/* col-toggle header actions */
.card-header { position: relative; }
.card-header--with-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  column-gap: 0.75rem;
}
.card-header--with-actions > :not(.section-actions) {
  grid-column: 1;
  min-width: 0;
}
.card-header--with-actions > .section-actions {
  grid-column: 2;
  grid-row: 1 / span 10;
  align-self: start;
}
.section-actions--generated {
  margin-left: auto;
  justify-content: flex-end;
}

@media (max-width: 575.98px) {
  .card-header--with-actions {
    column-gap: 0.5rem;
  }
  .col-toggle__btn {
    width: 32px;
    padding: 0;
  }
  .col-toggle__label {
    display: none;
  }
}

/* keep arrow + number on one line */
.kpi-positive, .kpi-negative, .num-up, .num-down, .num-flat { white-space: nowrap; }
table.table td.kpi-positive,
table.table td.kpi-negative,
table.table td.num-up,
table.table td.num-down,
table.table td.num-flat { white-space: nowrap; }