/*
 * panacea/investment-flows — adapted from ~/finscape/www/sector_motion.css
 * (PanaceaSite, 5 Nov 2026). Additions: block padding inside the site's
 * .table-card, and a 2x2 button grid at phone width so the controls never
 * overflow the card.
 */
.sector-motion { padding: 20px 24px 8px; }
.sector-motion .sm-controls { display: flex; flex-wrap: wrap; gap: 10px 24px; align-items: center; margin-bottom: 10px; }
.sector-motion .sm-controls > div { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 0; }
.sector-motion .sm-group { display: inline-flex; border: 1px solid #cbd5e1; border-radius: 8px; overflow: hidden; }
.sector-motion .sm-group button { border: 0; border-right: 1px solid #cbd5e1; background: #fff; color: #1f2937;
  font: 600 13px/1.2 "Plus Jakarta Sans", Inter, "Segoe UI", Arial, sans-serif; padding: 9px 14px; cursor: pointer; margin: 0; }
.sector-motion .sm-group button:last-child { border-right: 0; }
.sector-motion .sm-group button:hover:not(:disabled) { background: #f1f5f9; }
.sector-motion .sm-group button.active,
.sector-motion .sm-group button.active:hover { background: #1a1040; color: #fff; }
.sector-motion .sm-group button:disabled { color: #94a3b8; cursor: not-allowed; background: #f8fafc; }
.sector-motion .sm-group button:focus-visible { outline: 2px solid #53B0AE; outline-offset: -2px; }
.sector-motion .sm-label { font: 600 11px/1 "Plus Jakarta Sans", Inter, Arial, sans-serif; letter-spacing: .08em; text-transform: uppercase; color: #64748b; margin-right: 8px; }
.sector-motion #sector-motion-chart { width: 100%; height: 520px; }
.sector-motion .sm-note { color: #64748b; font-size: 12px; margin: 6px 0 0; }
.sector-motion .sm-message { padding: 28px 18px; margin: 6px 0; border: 1px dashed #cbd5e1; border-radius: 10px; color: #475569; font-size: 14px; background: #f8fafc; text-align: center; }

@media (max-width: 820px) {
  .sector-motion { padding: 16px 14px 6px; }
  .sector-motion .sm-controls > div { width: 100%; }
  .sector-motion .sm-label { width: 100%; margin: 0 0 4px; }
  .sector-motion .sm-group { width: 100%; }
  .sector-motion .sm-group button { flex: 1 1 0; padding: 9px 8px; }
  .sector-motion .sm-group--measure { display: grid; grid-template-columns: 1fr 1fr; }
  .sector-motion .sm-group--measure button { border-right: 1px solid #cbd5e1; border-bottom: 1px solid #cbd5e1; }
  .sector-motion .sm-group--measure button:nth-child(2n) { border-right: 0; }
  .sector-motion .sm-group--measure button:nth-last-child(-n+2) { border-bottom: 0; }
}
