/* Company overview shares the site's light liquid-glass surfaces. */
#companyOverview {
  --cockpit-text: var(--ink, #203451);
  --cockpit-muted: var(--muted, #647893);
  color: var(--cockpit-text);
  background: transparent;
  min-width: 0;
}
#companyOverview > .dashboard-toolbar { margin-bottom: 20px; }
#companyOverview > .dashboard-toolbar h3 { font-size: 21px; }
#companyOverview .dashboard-tools { gap: 8px; }
#companyOverview .muted, #companyOverview .ops-note, #companyOverview .ops-status { color: var(--cockpit-muted); }
#companyOverview > .ops-status { font-size: 11px; margin: 10px 0; }
#companyVisualCockpit { color: var(--cockpit-text); }
#companyOperationsComparison { display: none; }
.cockpit-kpis { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 14px; margin: 20px 0; }
.cockpit-kpi, .cockpit-chart-panel, #companyVisualKpis > .cockpit-kpis {
  border: var(--liquid-edge, 1px solid #fff);
  border-bottom-color: rgba(160,188,227,.36);
  background: var(--liquid-surface, rgba(255,255,255,.65));
  border-radius: 24px;
  box-shadow: var(--liquid-shadow, 0 10px 28px #233f6b0b);
}
#companyVisualKpis > .cockpit-kpis { display: block; margin: 0; padding: 22px; }
.cockpit-kpi { display: flex; flex-direction: column; gap: 12px; padding: 22px 18px; min-width: 0; }
.cockpit-kpi span { font-size: 12px; color: #62738b; }
.cockpit-kpi strong { font-size: clamp(19px,1.8vw,29px); font-weight: 650; letter-spacing: -.6px; line-height: 1.3; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; color: #203451; }
.cockpit-kpi small { font-size: 11px; color: #71839a; line-height: 1.6; }
.cockpit-primary strong { color: #0f46c8; }
.cockpit-section-head, .cockpit-panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.cockpit-section-head { margin: 0 0 18px; }
.cockpit-section-head h3, .cockpit-chart-panel h3 { font-size: 15px; margin: 0; font-weight: 600; letter-spacing: .2px; color: #203451; }
.cockpit-section-head h3:before, .cockpit-chart-panel h3:before { content: ''; display: inline-block; width: 3px; height: 15px; border-radius: 2px; background: #0f46c8; margin-right: 9px; vertical-align: -2px; }
.cockpit-section-head > span, .cockpit-panel-heading > span { font-size: 11px; color: #71839a; }
.cockpit-major-metrics { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 12px; }
.cockpit-minor-metrics { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 12px; margin-top: 12px; }
#companyOverview .cockpit-metric { display: flex; flex-direction: row; align-items: center; gap: 12px; border-radius: 18px; padding: 19px 14px; box-shadow: inset 0 1px #fff, 0 6px 18px #244f8b06; background: rgba(255,255,255,.45); }
.cockpit-metric > i { width: 42px; height: 42px; flex: 0 0 42px; border-radius: 14px; display: grid; place-items: center; color: var(--metric-color); background: color-mix(in srgb,var(--metric-color) 10%,transparent); }
.cockpit-metric svg { width: 23px; height: 23px; }
.cockpit-metric > div { display: grid; gap: 7px; min-width: 0; }
.cockpit-metric span { font-size: 11px; }
#companyOverview .cockpit-major-metrics .cockpit-metric:first-child strong { color: #0f46c8; }
#companyOverview .cockpit-minor-metrics .cockpit-metric { padding: 15px 11px; gap: 10px; }
.cockpit-minor-metrics .cockpit-metric > i { width: 33px; height: 33px; flex-basis: 33px; border-radius: 11px; }
.cockpit-minor-metrics .cockpit-metric svg { width: 19px; height: 19px; }
.cockpit-minor-metrics .cockpit-kpi strong { font-size: 22px; }
.cockpit-minor-metrics small { font-size: 10px; }
.cockpit-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin: 18px 0; }
.cockpit-main-grid { grid-template-columns: minmax(0,1.65fr) minmax(0,1fr); }
.cockpit-chart-panel { padding: 22px 20px; min-width: 0; }
.cockpit-chart-panel p { color: #71839a; font-size: 11px; margin: 10px 0 8px; line-height: 1.8; }
.cockpit-chart { height: 285px; width: 100%; }
.cockpit-empty { height: 100%; display: grid; place-items: center; color: #7b8ea6; font-size: 13px; border-radius: 18px; background: linear-gradient(transparent,#e9eff633); }
.cockpit-filterbar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 6px 0; margin: 16px 0 0; }
.cockpit-filters { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
#companyOverview .cockpit-filterbar select { width: auto; flex: 0 1 150px; margin: 0; height: 36px; }
#companyOverview .cockpit-filterbar input { width: 160px; flex: 0 1 180px; margin: 0; height: 36px; box-sizing: border-box; }
#companyOverview #cockpitSort, #companyOverview .cockpit-panel-heading select { width: auto; margin: 0; max-width: 155px; }
.cockpit-filters input, .cockpit-filters select, .cockpit-filterbar select, .cockpit-filterbar input, #cockpitSort { padding: 9px 11px; font: inherit; font-size: 12px; min-width: 0; }
.cockpit-live { margin-right: auto; font-size: 12px; color: #647893; display: flex; align-items: center; gap: 7px; }
.cockpit-live i { height: 6px; width: 6px; background: #299b85; border-radius: 50%; box-shadow: 0 0 0 4px #299b8510; }
.cockpit-segment { display: flex; background: #dce8f577; border-radius: 11px; padding: 3px; gap: 3px; flex-shrink: 0; }
.cockpit-segment button { border: 1px solid transparent; box-shadow: none; color: #647893; background: transparent; font-size: 11px; border-radius: 8px; padding: 6px 10px; cursor: pointer; }
.cockpit-segment .active { background: #ffffffdc; color: #0f46c8; border-color: #fff; box-shadow: 0 2px 6px #335b8b12; }
.cockpit-region { display: grid; grid-template-columns: minmax(0,1.25fr) minmax(0,1fr); gap: 16px; min-height: 350px; }
#cockpitMapHome { min-width: 0; }
.cockpit-map-frame { position: relative; min-width: 0; border: 1px solid #d6e2ef; border-radius: 18px; overflow: hidden; background: radial-gradient(ellipse at 45% 40%,#ffffffad,#edf4fc99); }
#cockpitRegionMap { height: 350px; width: 100%; }
.cockpit-map-tools { position: absolute; right: 10px; top: 10px; z-index: 2; display: flex; align-items: center; gap: 4px; }
.cockpit-map-tools button, .cockpit-map-info-head button { border: 1px solid #d8e3f0; color: #375c8c; background: #ffffffed; border-radius: 8px; padding: 5px 8px; font-size: 11px; cursor: pointer; box-shadow: 0 2px 7px #315b8e0c; }
.cockpit-map-tools button:hover { color: #0f46c8; background: #edf4ff; }
.cockpit-map-caption { position: absolute; bottom: 9px; left: 12px; color: #71839a; font-size: 10px; pointer-events: none; }
.cockpit-map-info { position: absolute; bottom: 30px; left: 10px; z-index: 3; width: min(275px,calc(100% - 20px)); max-height: 65%; overflow: auto; box-sizing: border-box; padding: 14px; border: 1px solid #fff; border-radius: 15px; background: rgba(250,253,255,.96); box-shadow: 0 10px 30px #34547b24; }
.cockpit-map-info[hidden] { display: none; }
.cockpit-map-info-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 13px; color: #203451; }
.cockpit-map-info-head button { padding: 0 5px; border: 0; background: transparent; font-size: 20px; line-height: 1; box-shadow: none; }
.cockpit-map-info p { font-size: 10px; line-height: 1.6; margin: 7px 0 12px; }
.cockpit-map-numbers { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 12px; }
.cockpit-map-numbers span { font-size: 10px; color: #71839a; }
.cockpit-map-numbers b { display: block; margin-top: 4px; font-size: 16px; color: #203451; }
.cockpit-map-group { font-size: 10px; line-height: 1.6; margin-bottom: 10px; color: #647893; }
.cockpit-map-group button { background: transparent; border: 0; color: #0f46c8; padding: 3px; cursor: pointer; text-align: left; }
.cockpit-map-dialog { width: min(1180px,calc(100vw - 48px)); max-width: none; max-height: calc(100dvh - 48px); padding: 22px; box-sizing: border-box; border: var(--liquid-edge,1px solid #fff); border-radius: 26px; background: #f3f8fff5; color: #203451; box-shadow: var(--liquid-shadow); }
.cockpit-map-dialog::backdrop { background: #17345c44; backdrop-filter: blur(6px); }
.cockpit-map-dialog > header { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-bottom: 16px; }
.cockpit-map-dialog #cockpitRegionMap { height: min(70dvh,720px); min-height: 280px; }
#cockpitRegionTable { min-width: 0; overflow: auto; }
#companyOverview #cockpitRegionTable table { min-width: 0; width: 100%; font-size: 11px; border-collapse: collapse; }
#companyOverview #cockpitRegionTable th { font-size: 10px; color: #71839a; background: #e2edf74d; font-weight: 500; padding: 10px 5px; white-space: nowrap; }
#companyOverview #cockpitRegionTable td { padding: 14px 5px; border-bottom: 1px solid #c5d6eb55; white-space: nowrap; font-variant-numeric: tabular-nums; color: #354b68; }
#cockpitRegionTable button { background: none; border: 0; padding: 0; display: flex; gap: 6px; align-items: center; color: #244b7a; font-size: 11px; cursor: pointer; max-width: 135px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#cockpitRegionTable button i { width: 5px; height: 5px; flex-shrink: 0; border-radius: 50%; }
#cockpitRegionTable small { display: block; font-size: 9px; color: #71839a; margin: 4px 0 0 11px; }
.cockpit-up { color: #c75b70; }
.cockpit-down { color: #228b76; }
.cockpit-donut { height: 220px; }
.cockpit-legend { display: grid; gap: 9px; margin: -7px 10px 8px; }
.cockpit-legend > div { display: flex; align-items: center; gap: 7px; font-size: 11px; color: #647893; }
.cockpit-legend i { height: 7px; width: 7px; border-radius: 50%; }
.cockpit-legend b { margin-left: auto; font-size: 11px; font-weight: 500; color: #203451; }
#cockpitRankTable small { display: block; color: #71839a; margin-top: 5px; }
#cockpitRankTable table { min-width: 680px; }
.ops-secondary > summary { cursor: pointer; font-size: 14px; font-weight: 600; color: #425875; padding: 3px 0; }
.ops-secondary[open] > summary { margin-bottom: 22px; }
.cockpit-insights { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; margin-top: 20px; }
.cockpit-detail-tags, .cockpit-detail-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.cockpit-detail-tags span { padding: 8px 12px; background: #e8f4ee; color: #307c65; border-radius: 12px; font-size: 12px; }
.cockpit-detail-tags .missing { color: #946024; background: #fbf0df; }
.cockpit-definitions { font-size: 12px; color: #71839a; line-height: 1.9; }
.cockpit-definitions summary { cursor: pointer; }
.cockpit-goal-progress { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin: 18px 0; }
.cockpit-goal-progress label { display: grid; gap: 10px; font-size: 12px; color: #647893; }
.cockpit-goal-progress progress { width: 100%; height: 10px; accent-color: #0f46c8; }
#cockpitGoalForm label { display: grid; gap: 8px; font-size: 12px; margin-bottom: 8px; }
.ops-quiet-todos { grid-column: 1/-1; font-size: 12px; color: #71839a; }
.ops-quiet-todos > summary { cursor: pointer; padding: 8px 0; }
.ops-quiet-todos .ops-todos { margin-top: 8px; }
#companyOperationsTodos > .ops-todo { min-height: 85px; padding: 14px; gap: 5px; }
#companyOperationsTodos > .ops-todo strong { font-size: 25px; }
@media(min-width:1600px) { .cockpit-chart { height: 310px; } .cockpit-region { min-height: 385px; } #cockpitRegionMap { height: 385px; } .cockpit-donut { height: 235px; } }
@media(min-width:1101px) { #companyOperationsTodos { grid-template-columns: repeat(4,minmax(0,1fr)); } }
@media(max-width:1250px) {
  .cockpit-metric > i { width: 34px; height: 34px; flex-basis: 34px; }
  .cockpit-kpi strong { font-size: 23px; }
  .cockpit-minor-metrics { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .cockpit-region { grid-template-columns: 1fr; }
  .cockpit-main-grid { grid-template-columns: minmax(0,1.4fr) minmax(0,1fr); }
}
@media(max-width:1000px) {
  .cockpit-major-metrics { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .cockpit-main-grid, .cockpit-grid { grid-template-columns: 1fr; }
  .cockpit-region { grid-template-columns: minmax(0,1fr) minmax(0,1fr); }
  .cockpit-insights { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media(max-width:600px) {
  #companyVisualKpis > .cockpit-kpis { padding: 14px; }
  .cockpit-section-head > span { font-size: 9px; }
  .cockpit-major-metrics, .cockpit-minor-metrics { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
  #companyOverview .cockpit-metric { padding: 13px 9px; gap: 8px; }
  .cockpit-metric > i { width: 29px; height: 29px; flex-basis: 29px; }
  .cockpit-metric svg { width: 18px; height: 18px; }
  .cockpit-kpi strong, .cockpit-minor-metrics .cockpit-kpi strong { font-size: 19px; }
  .cockpit-region { grid-template-columns: 1fr; }
  .cockpit-filterbar { gap: 6px; }
  .cockpit-live { width: 100%; }
  .cockpit-filterbar input { width: 125px; flex: 1; }
  .cockpit-panel-heading { gap: 6px; flex-wrap: wrap; }
  .cockpit-chart-panel { padding: 18px 12px; border-radius: 22px; }
  .cockpit-chart { height: 250px; }
  #cockpitRegionMap { height: 300px; }
  .cockpit-insights, .cockpit-goal-progress { grid-template-columns: 1fr; }
  .cockpit-segment button { padding: 5px 7px; font-size: 10px; }
  .cockpit-map-dialog { width: calc(100vw - 20px); padding: 14px; max-height: calc(100dvh - 20px); }
}
@media(prefers-reduced-motion:reduce) { #companyVisualCockpit * { scroll-behavior: auto !important; } }
