/* Styles specific to company.html (financial statement viewer). */

main {
  padding: 2rem;
  max-width: 100%;
}

body {
  background: var(--color-bg);
  color: var(--color-text);
}

/* ===== Description expand/collapse ===== */

.desc-toggle-btn {
  background: none;
  border: none;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0.34em auto 0.56em auto;
  width: 100%;
  cursor: pointer;
  outline: none;
  transition: filter .17s;
}
.desc-toggle-svgarrow {
  width: 36px;
  height: 36px;
  color: var(--color-text-secondary);
  display: block;
  margin: 0 auto;
  filter: drop-shadow(0 2px 3px #d7d7d733);
  animation: bounce 2s infinite;
  transition: transform .22s cubic-bezier(.45, 1.6, .36, .96), filter .13s;
}
.desc-toggle-btn:active .desc-toggle-svgarrow,
.desc-toggle-btn:focus .desc-toggle-svgarrow {
  filter: drop-shadow(0 3px 4px #a7a7a744);
}
.desc-toggle-svgarrow.rotated {
  transform: rotate(180deg);
  animation: none;
}
@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(10px); }
}

/* ===== Financial tables ===== */

.fin-table {
  border-collapse: collapse;
  width: 100%;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  margin: 16px 0 45px 0;
  font-size: 0.9em;
  font-variant-numeric: tabular-nums;
}
.fin-table th, .fin-table td {
  border: none;
  border-bottom: 1px solid var(--color-surface-tint);
  padding: 7px 12px;
  line-height: 1.4;
  font-size: 1em;
  background: none;
  white-space: nowrap;
  max-width: 140px;
  min-width: 88px;
  text-align: right;
}

.fin-table th:first-child,
.fin-table td:first-child {
  white-space: normal !important;
  min-width: 220px !important;
  max-width: 350px !important;
  background: var(--color-surface);
  font-weight: 500;
  color: var(--color-text);
  padding: 7px 14px;
  text-align: left;
  position: sticky;
  left: 0;
  z-index: 2;
  border-right: 1px solid var(--color-surface-tint);
}
.fin-table th {
  background: var(--color-surface-soft);
  font-weight: 700;
  color: var(--color-text);
  border-bottom: 2px solid var(--color-border-soft);
  position: sticky;
  top: 0;
  z-index: 3;
}

.fin-table th:first-child {
  background: var(--color-surface-soft);
}

.fin-table tr:first-child th:first-child {
  z-index: 4;
}

.fin-table tbody tr:hover td {
  background: var(--color-surface-soft);
}

.fin-section {
  background: var(--color-surface-soft) !important;
  font-weight: 700;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  font-size: 0.9em;
  color: var(--color-text);
  border-left: none !important;
  border-right: none !important;
}
.fin-table .fin-group {
  background: var(--color-surface);
  font-weight: bold;
  border-left: 4px solid var(--brand-blue);
}

#income, #balance, #cashflow, #ratios {
  width: 100%;
  overflow-x: auto;
  padding-bottom: 1em;
  margin-bottom: 36px;
}

.fin-section-label {
  font-size: 0.85em;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-text-secondary);
  padding-top: 10px !important;
  padding-bottom: 8px !important;
}

/* ===== Page chrome specific to this page ===== */

.company-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.company-title-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Bold dark text on a plain white card (8px radius, thin border) rather
   than a filled blue pill -- reads as an accent control that belongs to the
   page instead of a loud call-to-action. */
.compare-link {
  display: inline-flex;
  align-items: center;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--brand-ink);
  background: var(--color-surface);
  border: 2px solid var(--color-border);
  border-radius: 8px;
  padding: 0.55em 1.25em;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.18s, border-color 0.18s;
}

.compare-link:hover, .compare-link:focus {
  background: var(--color-surface-soft);
  border-color: var(--color-border-soft);
  outline: none;
}

.company-title {
  font-size: 2.3rem;
  font-weight: 700;
  margin: 32px 0 16px 0;
  letter-spacing: -0.01em;
}

.company-title-and-price {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 24px;
}

/* Current price / day change / 52-week range, reshaped to sit inline next
   to the company name (moved out of the stats column so that column's
   remaining cards line up in height with the chart + recent-quarters
   table beside them). */
.price-inline-snapshot {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 6px 14px;
}

.price-inline-value {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--brand-ink);
  letter-spacing: -0.01em;
}

.price-inline-delta {
  font-size: 0.82rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.price-inline-delta.is-positive {
  color: var(--color-positive);
}

.price-inline-delta.is-negative {
  color: var(--color-negative);
}

.price-inline-range {
  font-size: 0.78rem;
  color: var(--color-text-muted);
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
}

.price-inline-range strong {
  color: var(--brand-ink);
  font-weight: 700;
}

.financial-tabs-container .company-title {
  font-size: 2rem;
  font-weight: 600;
  color: var(--brand-ink);
  margin: 0 0 18px 0;
  letter-spacing: -0.01em;
  text-align: left;
  padding-left: 18px;
  padding-top: 20px;
}

.financial-tabs-container .company-title-row {
  margin: 0 0 18px 0;
  padding-left: 18px;
  padding-right: 18px;
  padding-top: 20px;
}

/* ===== Category navigation (Overview / Statements / Trends) ===== */

.category-nav {
  display: flex;
  gap: 6px;
  padding: 0 18px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--color-border);
}

.category-btn {
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--color-text-secondary);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.01em;
  padding: 10px 18px;
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s;
}

.category-btn:hover {
  color: var(--brand-ink);
}

.category-btn.active, .category-btn:focus {
  color: var(--brand-blue);
  border-bottom-color: var(--brand-blue);
  outline: none;
}

.category-panel {
  display: none;
  padding: 0 18px;
}

.category-panel.active {
  display: block;
}

/* ===== Overview: company profile chips ===== */

.company-profile-row {
  position: relative;
  display: flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 16px;
}

.company-profile-row:has(.company-profile-chips:empty) {
  margin-bottom: 0;
}

.company-profile-chips {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x proximity;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.company-profile-chips::-webkit-scrollbar {
  display: none;
}

.chip-scroll-btn {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: none;
  background: transparent;
  color: var(--color-text-muted);
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
  transition: color 0.15s, background-color 0.15s;
}

.chip-scroll-btn:hover {
  color: var(--color-text);
  background: var(--color-surface-tint);
}

.profile-chip {
  display: inline-flex;
  flex: none;
  white-space: nowrap;
  align-items: baseline;
  gap: 7px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 6px 12px;
  font-size: 0.82rem;
  scroll-snap-align: start;
}

.profile-chip-label {
  font-weight: 700;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  font-size: 0.68rem;
}

.profile-chip-value {
  color: var(--brand-ink);
  font-weight: 600;
}

/* ===== Overview: share price chart + stats column ===== */

.price-section {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 36px;
}

/* Google Auto ads: an ad placed here goes on its own row below the chart
   and stats instead of squeezing in beside them. */
.price-section > .google-auto-placed {
  flex: 0 0 100%;
  order: 99;
}

.price-section:empty {
  margin-bottom: 0;
}

.price-chart-panel {
  flex: 3;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
}

.price-panel-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
}

.price-panel-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--brand-ink);
  margin: 0;
}

.price-panel-header .price-range-selector {
  width: fit-content;
  margin-bottom: 0;
  margin-right: 0;
}

/* Higher specificity than .trend-chart-wrapper (same element carries both
   classes) so this wins regardless of stylesheet order -- the price chart
   must always scale to fit, unlike the many-period trend chart, which
   intentionally scrolls horizontally below a minimum readable width. */
.price-chart-panel .price-chart-wrapper.trend-chart-wrapper {
  margin-bottom: 0;
  overflow-x: visible;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding-bottom: 12px;
}

.price-chart-panel .price-chart-wrapper.trend-chart-wrapper svg {
  min-width: 0;
  width: 100%;
}

/* Compact last-4-quarters table filling the space below the price chart
   (the chart panel is deliberately narrower/shorter than the stats column
   next to it, which otherwise leaves a bare gap here). */
.recent-quarters {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 12px 14px;
  overflow-x: auto;
}

.recent-quarters-table {
  min-width: 340px;
}

.recent-quarters:empty {
  display: none;
}

.recent-quarters-title {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin: 0 0 8px 0;
}

.recent-quarters-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.82rem;
  font-variant-numeric: tabular-nums;
}

.recent-quarters-table th,
.recent-quarters-table td {
  padding: 6px 4px;
  text-align: right;
  border-top: 1px solid var(--color-surface-tint);
  white-space: nowrap;
}

.recent-quarters-table th:first-child,
.recent-quarters-table td:first-child {
  text-align: left;
  color: var(--color-text-muted);
}

.recent-quarters-table thead th {
  border-top: none;
  color: var(--color-text-muted);
  font-weight: 700;
}

.recent-quarters-table td {
  color: var(--brand-ink);
  font-weight: 600;
}

/* YoY Chg sub-row directly under each metric row -- no top border of its
   own, so it reads as attached to the row above rather than a new entry. */
.recent-quarters-table .yoy-row td {
  border-top: none;
  padding-top: 0;
}

.recent-quarters-table .yoy-label {
  padding-left: 14px;
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--color-text-muted);
}

.recent-quarters-table .yoy-value {
  font-size: 0.72rem;
  font-weight: 700;
}

.recent-quarters-table .yoy-value.is-positive {
  color: var(--color-positive);
}

.recent-quarters-table .yoy-value.is-negative {
  color: var(--color-negative);
}

.overview-stats-col {
  flex: 2;
  min-width: 240px;
  max-width: 340px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
}

/* ===== Overview: Similar Companies ===== */

.similar-companies {
  margin-top: 16px;
}

.similar-companies-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}

.similar-company-card {
  display: flex;
  flex-direction: column;
  gap: 2px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 8px 12px;
  min-width: 110px;
  text-decoration: none;
  color: inherit;
}

.similar-company-card:hover {
  border-color: var(--color-accent, var(--color-border));
}

.similar-company-ticker {
  font-weight: 700;
  font-size: 0.85rem;
}

.similar-company-name {
  font-size: 0.72rem;
  color: var(--color-text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 160px;
}

/* ===== Overview: quickstat cards (stacked in .overview-stats-col) ===== */

.quickstat-card {
  width: 100%;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 12px 14px;
}

.quickstat-card-title {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin: 0 0 8px 0;
}

.quickstat-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
  padding: 4px 0;
  border-top: 1px solid var(--color-surface-tint);
  font-size: 0.82rem;
}

.quickstat-row:first-of-type {
  border-top: none;
}

.quickstat-label {
  color: var(--color-text-muted);
  white-space: nowrap;
}

.quickstat-value {
  font-weight: 700;
  color: var(--brand-ink);
  text-align: right;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.quickstat-value.is-positive {
  color: var(--color-positive);
}

.quickstat-value.is-negative {
  color: var(--color-negative);
}

/* Single-row variant of .quickstat-card (label above value per column
   instead of stacked rows) -- used for Price Change, whose four short
   windows read better side by side. */
.quickstat-hrow {
  display: flex;
  justify-content: space-between;
  gap: 6px;
}

.quickstat-hcol {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.quickstat-hlabel {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.quickstat-hvalue {
  font-weight: 700;
  font-size: 0.82rem;
  color: var(--brand-ink);
  white-space: nowrap;
}

.quickstat-hvalue.is-positive {
  color: var(--color-positive);
}

.quickstat-hvalue.is-negative {
  color: var(--color-negative);
}

/* ===== Trends tab ===== */

.trend-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 16px;
  margin-bottom: 16px;
}

.trend-metric-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

/* Pill checkboxes matching .profile-chip / .quickstat-card's white-card
   language, with a highlighted checked state instead of a bare native
   checkbox next to plain text. */
.trend-metric-option {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--color-text-secondary);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 6px 12px;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}

.trend-metric-option:hover {
  border-color: var(--color-border-soft);
}

.trend-metric-option:has(input:checked) {
  color: var(--brand-blue);
  border-color: var(--brand-blue);
  background: var(--brand-blue-soft);
}

.trend-chart-wrapper {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 24px;
  overflow-x: auto;
  margin-bottom: 32px;
}

.trend-chart-wrapper svg {
  min-width: 640px;
  display: block;
}

.trend-chart-inner {
  position: relative;
}

.trend-hover-capture {
  cursor: crosshair;
}

.trend-tooltip {
  position: absolute;
  top: 0;
  left: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.1s;
  background: var(--color-text);
  color: var(--color-surface);
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 0.82rem;
  line-height: 1.5;
  box-shadow: 0 6px 18px rgba(20, 30, 50, 0.25);
  z-index: 5;
  white-space: nowrap;
}

.trend-tooltip-period {
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: 4px;
}

.trend-tooltip-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

.trend-tooltip-swatch {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}

.trend-tooltip-label {
  flex: 1 1 auto;
  margin-right: 10px;
}

.trend-tooltip-value {
  font-weight: 700;
}

.trend-chart-empty {
  color: var(--color-text-secondary);
  text-align: center;
  padding: 40px 0;
}

.trend-chart-note {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  font-style: italic;
  margin: 0 0 12px 0;
}

.trend-chart-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-top: 16px;
  padding-left: 4px;
}

.trend-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.88rem;
  color: var(--color-text);
}

.trend-legend-swatch {
  width: 12px;
  height: 12px;
  border-radius: 3px;
  display: inline-block;
}

.financial-tabs-container .company-title-row .company-title {
  margin: 0;
  padding: 0;
}

.not-found-panel {
  text-align: center;
  padding: 48px 24px;
}

.not-found-label {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand-blue);
  margin: 0 0 8px 0;
}

.not-found-panel h3 {
  font-size: 1.4rem;
  color: var(--brand-ink);
  margin: 0 0 10px 0;
}

.not-found-panel p {
  color: var(--color-text-secondary);
  font-size: 0.98rem;
  margin: 0 0 20px 0;
}

.not-found-link {
  display: inline-block;
  color: var(--brand-blue);
  font-weight: 600;
  text-decoration: none;
}

.not-found-link:hover {
  text-decoration: underline;
}

.financial-tabs-container {
  max-width: 1050px;
  margin: 0 auto;
  padding: 32px 16px;
  background: var(--color-surface);
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(20, 30, 50, .04);
}

.financial-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 28px;
  align-items: center;
  border-bottom: 1px solid var(--color-border);
}

/* Industry layout note above the statements (e.g. "Bank format"). */
.statement-layout-note {
  margin: -16px 0 20px;
  font-size: 13px;
  color: var(--color-text-secondary);
  line-height: 1.5;
}

.statement-layout-tag {
  display: inline-block;
  margin-right: 8px;
  padding: 2px 8px;
  border-radius: 10px;
  background: var(--brand-blue-soft, #eaf3fc);
  color: var(--brand-blue, #0e6dd1);
  font-weight: 600;
  font-size: 12px;
}

.period-selector {
  display: flex;
  background: var(--color-surface-soft);
  border: 1px solid var(--color-border);
  border-radius: 6px;
  padding: 2px;
  margin-right: auto; /* pushes the statement tabs to the right */
}

/* Sits directly under .category-panel (Trends tab), above the Metric Trends
   panel's own .trend-controls or the P/E panel's title -- unlike a plain
   .period-selector, it isn't nested inside something that already carries a
   margin-bottom, so it needs its own spacing below. */
.trend-view-toggle {
  margin-bottom: 20px;
}

.period-btn {
  background-color: transparent;
  border: none;
  border-radius: 4px;
  padding: 6px 14px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-text-secondary);
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s;
}

.period-btn.active {
  background-color: var(--color-surface);
  color: var(--brand-ink);
  box-shadow: 0 1px 2px rgba(20, 30, 50, .1);
}

.tab-btn {
  flex: none;
  background: transparent;
  color: var(--color-text-secondary);
  font-weight: 600;
  font-size: 0.92rem;
  border-radius: 0;
  padding: 10px 16px;
  border: none;
  border-bottom: 2px solid transparent;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s;
}

.tab-btn:hover {
  color: var(--brand-ink);
}

.tab-btn.active, .tab-btn:focus {
  background: transparent;
  color: var(--brand-blue);
  border-bottom: 2px solid var(--brand-blue);
  outline: none;
}

.fin-table-wrapper {
  display: none;
}
.fin-table-wrapper.active {
  display: block;
}

.plot-cell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5em;
}

.plot-label {
  flex: 1 1 auto;
  min-width: 0;
}

.plot-icon {
  cursor: pointer;
  color: var(--brand-blue);
  font-size: 1.05em;
  margin-left: 0.8em;
  vertical-align: middle;
  transition: color 0.15s;
  flex-shrink: 0;
}
.plot-icon:hover {
  color: var(--brand-ink);
}

/* ===== Plot popup ===== */

.plot-overlay {
  position: fixed;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.3);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
}
.plot-modal {
  background: var(--color-surface);
  border-radius: 14px;
  max-width: 90vw;
  max-height: 80vh;
  overflow: auto;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18);
  padding: 2em;
  position: relative;
  min-width: 320px;
}
.close-btn {
  background: none;
  border: none;
  font-size: 1.8rem;
  position: absolute;
  top: 16px;
  right: 22px;
  cursor: pointer;
  color: var(--brand-blue);
}
.close-btn:hover {
  color: var(--brand-ink);
}

/* ===== Company summary card ===== */

.company-info-summary {
  display: flex;
  align-items: flex-start;
  gap: 2em;
  background: var(--color-surface-soft);
  border-radius: 14px;
  box-shadow: 0 2px 10px var(--color-surface-tint);
  padding: 2em 2em 1.5em 2em;
  margin-bottom: 1.5em;
  border: 1px solid var(--color-surface-tint);
  position: relative;
}

.company-info-logo {
  flex-shrink: 0;
  max-width: 98px;
  max-height: 98px;
  border-radius: 14px;
  margin-left: 1em;
  background: var(--color-surface);
  box-shadow: 0 1px 6px var(--color-shadow);
  padding: 0.5em;
  display: block;
}

.company-info-summary .company-desc {
  font-size: 1.18rem;
  line-height: 1.6;
  color: var(--color-text);
  text-align: justify;
  margin-bottom: 0.9em;
  max-width: 750px;
}

.company-info-summary .company-attribution {
  font-size: 0.98rem;
  color: var(--color-text-muted);
  font-style: italic;
  text-align: justify;
  margin-top: 0.3em;
}

@media (max-width: 700px) {
  main {
    padding: 1rem;
  }
  .company-info-summary {
    flex-direction: column;
    align-items: flex-start;
    padding: 1em;
    gap: 0.8em;
  }
  .company-info-logo {
    margin-left: 0;
    margin-bottom: 0.7em;
    align-self: flex-start;
  }
}

@media (max-width: 800px) {
  .fin-table th, .fin-table td {
    font-size: 0.95em;
    min-width: 110px;
    max-width: 125px;
    padding: 7px 6px;
  }
  .fin-table th:first-child, .fin-table td:first-child {
    min-width: 110px;
    max-width: 140px;
  }
  .fin-table {
    font-size: 0.93em;
  }
  .financial-tabs-container {
    display: flex;
    flex-direction: column;
  }
  .financial-tabs,
  .financial-table-content {
    width: 100%;
  }
  .financial-tabs {
    flex-wrap: wrap;
    row-gap: 6px;
  }
  .period-selector {
    margin-right: 0;
  }
  .tab-btn {
    padding: 8px 10px;
    font-size: 0.85rem;
  }
  .category-nav {
    overflow-x: auto;
    gap: 2px;
    padding: 0 6px;
  }
  .category-btn {
    padding: 8px 8px;
    font-size: 0.9rem;
    white-space: nowrap;
  }
  .trend-chart-wrapper {
    padding: 16px 12px;
  }
  .price-section {
    flex-direction: column;
  }
  .overview-stats-col {
    width: 100%;
    max-width: none;
  }
}
