.company-analysis { --ca-line: #d8e1e8; --ca-muted: #586a77; color: #17242d; max-width: 1560px; margin: 0 auto; letter-spacing: 0; }
.company-analysis *, .ca-dialog * { box-sizing: border-box; letter-spacing: 0; }
.ca-heading, .ca-table-tools, .ca-dialog-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.ca-heading { margin-bottom: 18px; }
.ca-heading h2, .ca-dialog h2 { margin: 0; font-size: 23px; line-height: 1.35; overflow-wrap: anywhere; }
.ca-heading p, .ca-dialog-header p { margin: 5px 0 0; color: #586a77; font-size: 13px; word-break: keep-all; }
.ca-filters { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; padding: 16px 0; border-block: 1px solid var(--ca-line); }
.ca-filters label { display: grid; gap: 5px; min-width: 114px; color: #415563; font-size: 12px; }
.ca-filters input, .ca-filters select, .ca-search input { width: 100%; height: 38px; min-width: 0; border: 1px solid #b9c9d5; border-radius: 5px; background: #fff; padding: 7px 9px; font: inherit; font-size: 14px; color: #17242d; }
.ca-filters input[type=date] { width: 150px; }
.ca-filters > button, .ca-segments { height: 38px; flex-shrink: 0; }
.ca-segments { display: inline-flex; border: 1px solid #b9c9d5; border-radius: 5px; overflow: hidden; }
.ca-segments button { border: 0; border-radius: 0; box-shadow: none; background: #fff; color: #415563; padding: 0 14px; white-space: nowrap; font-size: 14px; }
.ca-segments button + button { border-left: 1px solid #b9c9d5; }
.ca-segments button[aria-pressed=true] { background: #285e76; color: #fff; }
.ca-summary { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); margin: 22px 0 12px; }
.ca-metric { min-width: 0; padding: 4px 20px; border-left: 1px solid #d8e1e8; }
.ca-metric:first-child { border-left: 0; padding-left: 0; }
.ca-metric > span { display: block; font-size: 13px; color: #526574; }
.ca-metric strong { display: block; margin-top: 9px; color: #182c37; font-size: 25px; line-height: 1.35; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.ca-metric strong small { font-size: 14px; }
.ca-metric > small { display: block; margin-top: 6px; font-size: 12px; color: #647582; overflow-wrap: anywhere; }
.ca-period-note { color: #586a77; font-size: 12px; margin-top: 14px; }
.ca-dashboard { margin: 20px 0; }
.ca-dashboard-heading { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 12px; margin-bottom: 10px; }
.ca-dashboard-heading h3 { margin: 0; font-size: 15px; }
.ca-dashboard-heading > span { font-size: 12px; color: #586a77; }
.ca-highlights { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 10px; }
.ca-highlight { min-width: 0; padding: 14px; border: 1px solid #d8e1e8; border-top: 3px solid #337f73; border-radius: 5px; background: #fff; }
.ca-highlight-price { border-top-color: #5a80a6; }
.ca-highlight-growth { border-top-color: #81769b; }
.ca-highlight-attention { border-top-color: #b28b48; }
.ca-highlight-label { display: block; font-size: 12px; line-height: 1.5; color: #526574; }
.ca-highlight-company { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; width: 100%; min-height: 42px; margin: 8px 0 4px; padding: 0; background: none; border: 0; border-radius: 0; box-shadow: none; text-align: left; color: #205970; font-size: 15px; font-weight: 700; line-height: 1.4; word-break: keep-all; overflow-wrap: anywhere; }
button.ca-highlight-company:hover { background: none; text-decoration: underline; }
.ca-highlight-company > span { flex: 0 0 auto; }
.ca-highlight > strong { display: block; font-size: 21px; line-height: 1.4; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.ca-highlight > p { margin: 6px 0 0; color: #415563; font-size: 12px; line-height: 1.6; word-break: keep-all; overflow-wrap: anywhere; }
.ca-highlight > small { display: block; margin-top: 3px; color: #647582; font-size: 11px; line-height: 1.5; word-break: keep-all; overflow-wrap: anywhere; }
.ca-warning { padding: 8px 12px; background: #fff8e5; border-left: 3px solid #c29533; font-size: 12px; line-height: 1.6; color: #735418; }
.ca-table-tools { margin: 22px 0 10px; }
.ca-table-tools h3, .ca-detail-section h3 { margin: 0; font-size: 16px; }
.ca-table-tools h3 small, .ca-detail-section h3 small { margin-left: 8px; font-size: 12px; color: #647582; font-weight: 400; }
.ca-search { display: flex; gap: 8px; align-items: center; font-size: 12px; color: #526574; }
.ca-search span { white-space: nowrap; }
.ca-search input { width: 210px; }
.ca-table-scroll { overflow: auto; max-height: 65vh; border: 1px solid #d8e1e8; border-radius: 5px; background: #fff; }
.ca-table { width: 100%; min-width: 1160px; border-collapse: separate; border-spacing: 0; font-size: 13px; table-layout: auto; }
.ca-table th { position: sticky; top: 0; z-index: 1; padding: 12px; background: #eef3f5; border-bottom: 1px solid #c9d7df; color: #405867; text-align: right; white-space: nowrap; font-weight: 600; }
.ca-table th button { color: inherit; background: none; border: 0; padding: 0; border-radius: 0; box-shadow: none; font: inherit; }
.ca-table th:first-child, .ca-table td:first-child { text-align: left; }
.ca-table td { padding: 13px 12px; border-bottom: 1px solid #e8edf0; text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.ca-table tbody tr:last-child td { border-bottom: 0; }
.ca-table tbody tr:hover { background: #f5f9fa; }
.ca-table td:first-child { min-width: 180px; max-width: 270px; white-space: normal; }
.ca-table td small { display: block; color: #6a7984; font-size: 11px; margin-top: 4px; }
.ca-company-link { background: none; color: #205970; border: 0; padding: 0; text-align: left; box-shadow: none; font-size: 14px; font-weight: 700; overflow-wrap: anywhere; }
.ca-company-link:hover { text-decoration: underline; }
.ca-money { font-weight: 700; }
.ca-muted { color: #6b7c87; }
.ca-down { color: #b23935; }
.ca-state { font-size: 11px; color: #875220; background: #fff2db; border-radius: 4px; padding: 4px 6px; }
.ca-footnote { font-size: 12px; line-height: 1.7; color: #647582; margin: 12px 0; }
.ca-error { color: #a32222; border-left: 3px solid #b93d3d; background: #fff0f0; padding: 16px; margin: 18px 0; }
.ca-empty { padding: 48px 20px !important; text-align: center !important; color: #647582; }
.ca-dialog { width: min(1060px,calc(100vw - 40px)); max-width: 1060px; max-height: 90dvh; height: auto; padding: 0; border: 1px solid #c8d4dc; border-radius: 8px; background: #fff; color: #17242d; }
.ca-dialog[open] { display: flex; flex-direction: column; overflow: hidden; }
.ca-dialog::backdrop { background: rgb(15 30 40 / 40%); }
.ca-dialog-header { flex-shrink: 0; padding: 20px 24px; border-bottom: 1px solid #d8e1e8; background: #f8fafb; }
.ca-dialog-header > div { min-width: 0; }
.ca-dialog-header button { flex-shrink: 0; width: 36px; height: 36px; padding: 0; border: 1px solid #bccbd5; border-radius: 5px; color: #405867; background: #fff; font-size: 23px; }
.ca-dialog-body { min-height: 0; overflow-y: auto; padding: 0 24px 24px; overscroll-behavior: contain; }
.ca-dialog .ca-summary { grid-template-columns: repeat(2,minmax(0,1fr)); row-gap: 20px; }
.ca-dialog .ca-metric:nth-child(3) { padding-left: 0; border-left: 0; }
.ca-dialog .ca-metric strong { font-size: 23px; }
.ca-detail-section { padding-top: 20px; margin-top: 20px; border-top: 1px solid #d8e1e8; min-width: 0; }
.ca-insights { margin: 12px 0 0; padding-left: 20px; font-size: 14px; line-height: 1.8; }
.ca-insights li + li { margin-top: 7px; }
.ca-detail-columns { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 30px; }
.ca-bars { margin-top: 14px; max-height: 260px; overflow-y: auto; }
.ca-bar-row { display: grid; grid-template-columns: 62px minmax(30px,1fr) 90px; align-items: center; gap: 10px; min-height: 31px; font-size: 12px; }
.ca-bar-row > div { height: 11px; background: #edf2f4; }
.ca-bar-row i { display: block; height: 100%; background: #2b7979; border-radius: 0 2px 2px 0; }
.ca-bar-row b { text-align: right; font-variant-numeric: tabular-nums; font-weight: 500; }
.ca-weekday { grid-template-columns: 20px minmax(30px,1fr) 90px; }
.ca-weekday i { background: #708db2; }
.ca-detail-records { margin-top: 12px; overflow: auto; max-height: 350px; }
.ca-detail-records .ca-table { min-width: 600px; }
.ca-cycle-section .ca-summary { margin-top: 14px; }
.ca-cycle-details summary { color: #205970; font-size: 13px; cursor: pointer; padding: 8px 0; }
.ca-cycle-details .ca-detail-records { max-height: 230px; }
.company-analysis :focus-visible, .ca-dialog :focus-visible { outline: 2px solid #137eaa; outline-offset: 3px; }
@media(max-width:1100px) { .ca-metric { padding-inline: 12px; } .ca-metric strong { font-size: 21px; } }
@media(min-width:721px) and (max-width:1150px) { .ca-highlights { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media(max-width:720px) {
  .company-analysis { padding: 10px 2px 24px; }
  .ca-heading { align-items: flex-start; gap: 8px; }
  .ca-heading h2 { font-size: 21px; }
  .ca-heading p { font-size: 11px; max-width: 220px; line-height: 1.6; }
  .ca-heading > div { min-width: 0; flex: 1; }
  .ca-heading > button { flex: 0 0 auto; width: auto; font-size: 11px; padding: 8px; white-space: nowrap; }
  .ca-filters { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); grid-template-areas: "preset metal" "from to" "mode channel" "submit submit"; gap: 10px; }
  .ca-filters > label:nth-child(1) { grid-area: preset; }
  .ca-filters > label:nth-child(2) { grid-area: from; }
  .ca-filters > label:nth-child(3) { grid-area: to; }
  .ca-filters > button { grid-area: submit; }
  .ca-filters > .ca-segments:nth-child(5) { grid-area: metal; }
  .ca-filters > .ca-segments:nth-child(6) { grid-area: mode; }
  .ca-filters > label:nth-child(7) { grid-area: channel; }
  .ca-filters label { flex: 1 1 130px; min-width: 0; }
  .ca-filters input[type=date] { width: 100%; }
  .ca-filters > button { flex: 1 1 80px; }
  .ca-segments { flex: 1 1 auto; }
  .ca-segments button { flex: 1; padding-inline: 12px; }
  .ca-summary { grid-template-columns: repeat(2,minmax(0,1fr)); row-gap: 20px; }
  .ca-metric { padding-inline: 10px; }
  .ca-metric:nth-child(3) { border-left: 0; padding-left: 0; }
  .ca-metric strong { font-size: 20px; }
  .ca-metric > span, .ca-metric > small { font-size: 11px; }
  .ca-period-note { font-size: 11px; line-height: 1.7; }
  .ca-highlights { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
  .ca-highlight { padding: 11px; }
  .ca-highlight > strong { font-size: 18px; }
  .ca-highlight-company { font-size: 14px; }
  .ca-table-tools { flex-wrap: wrap; gap: 12px; }
  .ca-search { width: 100%; }
  .ca-search input { flex: 1; width: 100%; }
  .ca-table-scroll { max-height: 62dvh; scroll-padding-inline-start: 160px; scroll-margin-block: 80px; }
  .ca-table th:first-child, .ca-table td:first-child { position: sticky; left: 0; background: #fff; z-index: 1; width: 150px; min-width: 150px; max-width: 150px; }
  .ca-table th:first-child { z-index: 2; background: #eef3f5; }
  .ca-dialog { width: calc(100vw - 16px); max-height: 93dvh; }
  .ca-dialog-header { padding: 15px; }
  .ca-dialog-header h2 { font-size: 20px; }
  .ca-dialog-header p { font-size: 11px; line-height: 1.7; }
  .ca-dialog-body { padding: 0 15px 20px; }
  .ca-dialog .ca-metric strong { font-size: 19px; }
  .ca-detail-columns { grid-template-columns: minmax(0,1fr); gap: 0; }
  .ca-insights { font-size: 13px; }
}
