/* BotFlo Score static site */
.bs-navbar {
  background: #0b3d91;
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(11, 61, 145, 0.18);
}
.bs-navbar-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.55rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.bs-navbar-brand {
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.01em;
}
.bs-nav-links { display: flex; gap: 0.35rem; flex-wrap: wrap; }
.bs-nav-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: rgba(255,255,255,0.88);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 600;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
}
.bs-nav-link:hover { background: rgba(255,255,255,0.12); color: #fff; }
.bs-nav-link.active { background: rgba(255,255,255,0.18); color: #fff; }
.bs-nav-icon { width: 1rem; height: 1rem; flex-shrink: 0; }

.bs-page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 1rem 2rem;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #212529;
}
.bs-header { margin-bottom: 1.25rem; }
.bs-kicker {
  margin: 0 0 0.2rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #0b3d91;
}
.bs-title { margin: 0 0 0.35rem; font-size: 1.75rem; color: #0b3d91; }
.bs-subtitle { margin: 0; color: #6c757d; }
.bs-main { background: #fff; border: 1px solid #dee2e6; border-radius: 10px; padding: 1rem; }
.bs-score-cell { font-variant-numeric: tabular-nums; white-space: nowrap; }
.bs-score-bats::after { content: '/100'; color: #6c757d; font-size: 0.92em; }
.bs-score-sector::after { content: '/50'; color: #6c757d; font-size: 0.92em; }

.bs-split-layout {
  display: grid;
  grid-template-columns: minmax(280px, 380px) minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
}
.bs-calendar-panel, .bs-sector-menu, .bs-detail-panel { min-height: 420px; }
.bs-calendar-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}
.bs-calendar-month { margin: 0; font-size: 1.05rem; color: #0b3d91; }
.bs-btn {
  font: inherit;
  border: 1px solid #ced4da;
  background: #fff;
  border-radius: 8px;
  padding: 0.25rem 0.55rem;
  cursor: pointer;
}
.bs-btn:hover { background: #f8f9fa; }
.bs-calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0.35rem;
}
.bs-cal-weekday {
  text-align: center;
  font-size: 0.72rem;
  font-weight: 700;
  color: #6c757d;
  padding: 0.2rem 0;
}
.bs-cal-day {
  aspect-ratio: 1;
  border: 1px solid #e9ecef;
  border-radius: 8px;
  background: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.15rem;
  font: inherit;
  cursor: default;
  padding: 0.2rem;
}
.bs-cal-day-empty { border: 0; background: transparent; }
.bs-cal-day-has-events {
  cursor: pointer;
  background: #eef4ff;
  border-color: #b6d4fe;
}
.bs-cal-day-has-events:hover { background: #dbe7ff; }
.bs-cal-day.active {
  outline: 2px solid #0b3d91;
  outline-offset: -2px;
  background: #cfe2ff;
}
.bs-cal-day-num { font-size: 0.92rem; font-weight: 600; }
.bs-cal-day-count {
  font-size: 0.68rem;
  font-weight: 700;
  color: #0b3d91;
  background: #fff;
  border-radius: 999px;
  padding: 0.05rem 0.35rem;
}

.bs-sector-menu {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 0.75rem;
}
.bs-sector-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  width: 100%;
  text-align: left;
  font: inherit;
  border: 1px solid #dee2e6;
  background: #fff;
  border-radius: 8px;
  padding: 0.55rem 0.7rem;
  cursor: pointer;
}
.bs-sector-link:hover { background: #f8f9fa; }
.bs-sector-link.active {
  background: #eef4ff;
  border-color: #9ec5fe;
  color: #0b3d91;
}
.bs-sector-name { font-weight: 600; font-size: 0.92rem; }
.bs-sector-count {
  font-size: 0.75rem;
  font-weight: 700;
  color: #6c757d;
  background: #f1f3f5;
  border-radius: 999px;
  padding: 0.1rem 0.45rem;
}

.bs-detail-header {
  padding-bottom: 0.75rem;
  margin-bottom: 0.75rem;
  border-bottom: 1px solid #dee2e6;
}
.bs-detail-header h2 { margin: 0 0 0.25rem; font-size: 1.15rem; color: #0b3d91; }
.bs-detail-meta { margin: 0; color: #6c757d; font-size: 0.88rem; }
.bs-company-list { display: flex; flex-direction: column; gap: 0.85rem; }
.bs-company-card {
  border: 1px solid #e9ecef;
  border-radius: 10px;
  padding: 0.85rem 0.95rem;
  background: #fcfcfd;
}
.bs-company-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.55rem;
}
.bs-company-card-title { display: flex; flex-direction: column; gap: 0.15rem; }
.bs-company-ticker {
  font-weight: 700;
  color: #0b3d91;
  text-decoration: none;
  font-size: 1rem;
}
.bs-company-ticker:hover { text-decoration: underline; }
.bs-company-name { color: #495057; font-size: 0.88rem; }
.bs-company-scores { display: flex; gap: 0.35rem; flex-shrink: 0; }
.bs-score-pill {
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  font-size: 0.92rem;
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  background: #f1f3f5;
}
.bs-score-pill.bs-score-bats { color: #0b3d91; }
.bs-score-pill.bs-score-sector { color: #495057; }
.bs-company-summary {
  margin: 0 0 0.65rem;
  color: #343a40;
  font-size: 0.9rem;
  line-height: 1.45;
}
.bs-report-link {
  font-size: 0.86rem;
  font-weight: 600;
  color: #0b3d91;
  text-decoration: none;
}
.bs-report-link:hover { text-decoration: underline; }
.bs-empty-note { color: #6c757d; font-size: 0.92rem; margin: 0; }

/* Report page: scrollable layout with viewer + full text */
.bs-report-page { max-width: none; padding: 0.75rem 1rem 2rem; }
.bs-viewer-page {
  max-width: none;
  margin: 0 0 1.5rem;
  padding: 0;
  height: min(78vh, 900px);
  min-height: 520px;
}
.bs-viewer-page .sr-app { height: 100%; display: flex; flex-direction: column; }
.bs-viewer-page .sr-shell { flex: 1; min-height: 0; }
.bs-viewer-page html, .bs-report-page { overflow: auto; }

.bs-full-report {
  max-width: 900px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid #dee2e6;
  border-radius: 10px;
  overflow: hidden;
}
.bs-full-report-header {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid #dee2e6;
  background: #f8f9fa;
}
.bs-full-report-header h2 { margin: 0 0 0.35rem; font-size: 1.15rem; color: #0b3d91; }
.bs-full-report-meta { margin: 0; color: #6c757d; font-size: 0.9rem; }
.bs-full-report-body { padding: 1rem 1.25rem 1.5rem; font-size: 0.95rem; line-height: 1.5; }

/* Viewer styles borrowed from bats-report-viewer.html */
html.bs-report-root, body.bs-report-root { height: auto; overflow: auto; }
.bs-viewer-page .sr-page { height: 100%; display: flex; flex-direction: column; padding: 0.35rem 0.5rem; }
.bs-viewer-page .sr-header { flex-shrink: 0; padding: 0.45rem 0.65rem; }
.bs-viewer-page .sr-shell { flex: 1; min-height: 0; display: flex; }
.bs-viewer-page .sr-main {
  flex: 1 1 58%; min-width: 0; min-height: 0; background: #fff;
  border-right: 1px solid #dee2e6; padding: 0.45rem 0.55rem;
  display: flex; flex-direction: column; overflow: hidden;
}
.bs-viewer-page .sr-side {
  flex: 1 1 42%; min-width: 240px; min-height: 0;
  display: flex; flex-direction: column; background: #fff;
}
.bs-viewer-page .sr-side-header {
  padding: 0.35rem 0.55rem; border-bottom: 1px solid #dee2e6;
  background: #f1f3f5; flex-shrink: 0;
  display: flex; align-items: baseline; justify-content: space-between;
}
.bs-viewer-page .sr-side-scroll { flex: 1; min-height: 0; overflow: auto; }
.bs-viewer-page .sr-table { width: 100%; border-collapse: collapse; font-size: 0.8rem; }
.bs-viewer-page .sr-table thead th {
  position: sticky; top: 0; background: #cfe2ff; text-align: left;
  padding: 0.35rem 0.45rem; border-bottom: 1px solid #dee2e6;
}
.bs-viewer-page .sr-table tbody td { padding: 0.35rem 0.45rem; border-bottom: 1px solid #f1f3f5; vertical-align: top; }
.bs-viewer-page .sr-table tbody tr.highlight { background: #fff3cd; }
.bs-viewer-page .sr-result-tabs { display: flex; gap: 0.25rem; margin-bottom: 0.35rem; flex-wrap: wrap; flex-shrink: 0; }
.bs-viewer-page .sr-tab-btn {
  font: inherit; font-size: 0.74rem; padding: 0.22rem 0.55rem;
  border-radius: 999px; border: 1px solid #ced4da; background: #fff; cursor: pointer;
}
.bs-viewer-page .sr-tab-btn.active { background: #0d6efd; color: #fff; border-color: #0d6efd; }
.bs-viewer-page .sr-tab-panel { flex: 1; min-height: 0; display: none; flex-direction: column; overflow: hidden; }
.bs-viewer-page .sr-tab-panel.active { display: flex; }
.bs-viewer-page .sr-r-loaded .sr-header { padding: 0.3rem 0.55rem; }
.bs-viewer-page .sr-brand { font-size: 0.82rem; font-weight: 700; color: #0b3d91; text-transform: uppercase; }
.bs-viewer-page .sr-empty { padding: 2rem; text-align: center; color: #6c757d; }

@media (max-width: 960px) {
  .bs-split-layout { grid-template-columns: 1fr; }
  .bs-viewer-page { height: auto; min-height: 70vh; }
  .bs-viewer-page .sr-shell { flex-direction: column; }
  .bs-viewer-page .sr-main { border-right: 0; border-bottom: 1px solid #dee2e6; min-height: 320px; }
}
