/* Stilprofil (Bolagsanalys tab, 4204 lab, 25 Oct 2026). Script: app/company-style.js.
   Panels follow the Översikt panels; aqua only for the pressed style; factor colours only on slices and their dots. */
.company-view .cs-host{min-height:720px}
.company-view .cs-root{--cs-descriptive:var(--cr-descriptive-color,color-mix(in srgb,var(--text) 62%,var(--muted)));display:grid;gap:12px;min-width:0}
.company-view .cs-root h3{font:600 12px var(--sans);margin:0;color:var(--text);letter-spacing:-.01em}
.company-view .cs-subtitle{font:600 11px var(--sans);margin:22px 0 6px;color:var(--muted)}
.company-view .cs-root header{display:flex;justify-content:space-between;align-items:baseline;gap:16px}
.company-view .cs-caption,.company-view .cs-readout{font-size:11px;color:var(--muted)}
.company-view .cs-note{margin:0;font-size:11px;color:var(--faint)}

/* Archetype strip */
.company-view .cs-archetypes{padding:10px 18px}
.company-view .cs-archetypes header{margin-bottom:12px}
.company-view .cs-readout{min-height:15px;text-align:right}
.company-view .cs-badges{display:flex;flex-wrap:nowrap;justify-content:space-between;gap:10px;min-width:0}
.company-view .cs-badges>[hidden]{display:none}
.company-view .cs-badges>div{position:relative}
.company-view .cs-badge-tip{position:absolute;left:50%;top:calc(100% + 8px);transform:translateX(-50%);z-index:5;display:grid;gap:2px;padding:7px 10px;border:1px solid var(--line-strong);border-radius:6px;background:var(--navy-1);color:var(--muted);font:500 11px var(--sans);font-style:normal;white-space:nowrap;text-align:left;pointer-events:none;opacity:0;transition:opacity .12s}
.company-view .cs-badge-tip b{font:600 12px var(--sans);color:var(--text)}
.company-view .cs-badges>div:first-child .cs-badge-tip{left:0;transform:none}
.company-view .cs-badges>div.is-end .cs-badge-tip{left:auto;right:0;transform:none}
.company-view .cs-badge:hover .cs-badge-tip,.company-view .cs-badge:focus-visible .cs-badge-tip{opacity:1}
.company-view .cs-badge{position:relative;display:grid;place-items:center;width:40px;height:40px;min-width:0;min-height:0;padding:0;border:0;border-radius:50%!important;background:var(--navy-0);box-shadow:inset 0 0 0 1px var(--line);cursor:pointer;transition:box-shadow .15s}
.company-view .cs-badge-glyph{width:30px;height:30px;overflow:visible}
.company-view .cs-badge-glyph g{color:var(--faint);opacity:.5}
.company-view .cs-badge-glyph g *{fill:none;stroke:currentColor;stroke-width:1.35px;vector-effect:non-scaling-stroke;stroke-linecap:round;stroke-linejoin:round}
/* Qualified archetypes are tinted chips in their leading factor's colour, the Faktorrapport finding-icon treatment
   (tint + edge + coloured glyph), a touch stronger so the lit state reads at a glance (owner, 25 Oct). */
.company-view .cs-badge.is-lit{background:color-mix(in srgb,var(--cs-f) 16%,var(--navy-1));box-shadow:inset 0 0 0 1.5px color-mix(in srgb,var(--cs-f) 62%,transparent)}
.company-view .cs-badge-icon{width:24px;height:24px;fill:var(--faint);opacity:.6;stroke:none}
.company-view .cs-badge.is-lit .cs-badge-icon{fill:color-mix(in srgb,var(--cs-f) 78%,var(--text));opacity:1}
.company-view .cs-badge.is-lit .cs-badge-glyph g{color:var(--cs-f);opacity:1}
.company-view .cs-badge:hover,.company-view .cs-badge:focus-visible{box-shadow:inset 0 0 0 1.5px var(--aqua)}
.company-view .cs-badge:hover .cs-badge-icon{opacity:.9}
.company-view .cs-badge:focus-visible{outline:2px solid var(--app-focus-ring,#8dc3d9);outline-offset:3px}

/* Grid: place panel + wheel panel */
.company-view .cs-grid{display:grid;grid-template-columns:minmax(230px,270px) minmax(0,1fr);gap:12px;align-items:start}
.company-view .cs-side{align-self:stretch;display:flex;flex-direction:column}
.company-view .cs-rank{display:flex;align-items:baseline;gap:10px;margin-top:16px}
.company-view .cs-rank strong{font:500 30px/1 var(--sans);color:var(--text);font-variant-numeric:tabular-nums;letter-spacing:-.02em}
.company-view .cs-rank span{font-size:11px;color:var(--muted);line-height:1.35}
.company-view .cs-leaders{list-style:none;margin:0;padding:0;flex:1;display:flex;flex-direction:column}
.company-view .cs-leaders li{flex:1 1 0;display:flex;min-height:40px}
.company-view .cs-leaders li+li{border-top:1px solid var(--line)}
.company-view .cs-leaders button{display:grid;grid-template-columns:16px 32px minmax(0,1fr) auto;align-items:center;gap:10px;width:100%;padding:6px;border:0;border-radius:4px;background:none;color:var(--text);text-align:left;cursor:pointer}
.company-view .cs-leaders button:hover{background:var(--navy-2)}
.company-view .cs-leaders .is-self button{background:var(--navy-2);box-shadow:inset 2px 0 0 var(--aqua)}
.company-view .cs-place{font-size:11px;color:var(--faint);font-variant-numeric:tabular-nums}
.company-view .cs-flag{display:grid;place-items:center;width:32px;height:32px}
.company-view .cs-flag>*{width:32px!important;height:32px!important;max-width:none;max-height:none;font-size:20px}
.company-view .cs-name-cell{display:grid;min-width:0}
.company-view .cs-name-cell span{font-size:12px;font-weight:500;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.company-view .cs-name-cell small{font-size:11px;color:var(--faint)}
.company-view .cs-leaders strong{font:600 13px var(--sans);font-variant-numeric:tabular-nums}
/* "Visa fler" and the whole ranking (owner, 28 Oct 2026): a quiet text button, a modal list in the same row style. */
.company-view .cs-more{align-self:center;margin-top:8px;padding:5px 12px;border:0;border-radius:999px;background:none;color:var(--muted);font:500 12px var(--sans);cursor:pointer}
.company-view .cs-more:hover{color:var(--text);background:var(--navy-2)}
.company-view .cs-more:focus-visible,.company-view .cs-all-close:focus-visible{outline:2px solid var(--aqua);outline-offset:2px}
.company-view .cs-all{width:min(560px,calc(100vw - 32px));max-height:min(80vh,760px);padding:0;border:1px solid var(--line-strong);border-radius:12px;background:var(--navy-1);color:var(--text);overflow:hidden}
.company-view .cs-all[open]{display:flex;flex-direction:column}
.company-view .cs-all::backdrop{background:rgba(2,8,15,.62)}
.company-view .cs-all header{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;padding:16px 18px 12px;border-bottom:1px solid var(--line)}
.company-view .cs-all header h3{margin:0 0 3px;font-size:14px}
.company-view .cs-all-close{flex:none;width:32px;height:32px;border:1px solid var(--line);border-radius:8px;background:none;color:var(--muted);font-size:18px;line-height:1;cursor:pointer}
.company-view .cs-all-close:hover{color:var(--text);border-color:var(--line-strong)}
.company-view .cs-all-list{flex:1 1 auto;min-height:0;overflow-y:auto;padding:6px 10px 10px}
.company-view .cs-all-list li{flex:none;min-height:46px}

/* Wheel panel */
.company-view .cs-wheel-panel{position:relative;min-width:0}
.company-view .cs-wheel-panel{padding-top:14px;padding-bottom:14px}
.company-view .cs-title{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.company-view .cs-root.is-compact .cs-title{position:absolute;top:20px;left:18px;width:auto;height:auto;overflow:visible;clip-path:none}
.company-view .cs-root.is-compact .cs-title [data-cs-caption]{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
.company-view .cs-side header{display:flex;justify-content:space-between;align-items:baseline;gap:10px;margin-bottom:10px;min-width:0}
.company-view .cs-side header h3{white-space:nowrap;flex:none}
.company-view .cs-rank-line{font-variant-numeric:tabular-nums;white-space:nowrap;min-width:0;overflow:hidden;text-overflow:ellipsis}
.company-view .cs-tools{position:absolute;top:14px;right:14px;z-index:2;display:flex;gap:6px}
.company-view .cs-tools-bottom{top:auto;bottom:14px}
/* The gear (top right) and "?" (bottom right) share the toggles' column: keep room for them above and below. */
.company-view .cs-root:not(.is-compact) .cs-lenses{margin:38px 0}
.company-view .cs-tool{display:grid;place-items:center;width:30px;height:30px;padding:0;border:1px solid var(--line-strong);border-radius:6px;background:transparent;color:var(--muted);cursor:pointer}
.company-view .cs-tool svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}
.company-view .cs-tool:hover,.company-view .cs-tool[aria-expanded=true]{border-color:var(--aqua);background:color-mix(in srgb,var(--aqua) 8%,transparent);color:var(--text)}
.company-view .cs-body{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px;align-items:center;margin-right:-4px}
.company-view .cs-chart{position:relative;min-width:0}
.company-view .cs-svg{display:block;width:100%;height:auto;overflow:visible}
.company-view .cs-rings circle{fill:none;stroke:var(--line);stroke-width:1;stroke-dasharray:2 5}
.company-view .cs-rings .is-mid{stroke:var(--line-strong);stroke-dasharray:3 4}
.company-view .cs-rings .is-outer{stroke:var(--line-strong);stroke-dasharray:none;opacity:.7}
.company-view .cs-wedge{fill:var(--cs-f);fill-opacity:.46;stroke:var(--cs-f);stroke-width:1;stroke-linejoin:round;transition:opacity .18s}
.company-view .cs-root.is-ready .cs-wedge{transition:fill .45s,stroke .45s,opacity .18s}
.company-view .cs-wedge.is-dim{opacity:.3}
.company-view .cs-hit{fill:transparent;stroke:none}
.company-view .cs-centre circle{fill:var(--navy-1);stroke:var(--line-strong);stroke-width:1.5}
.company-view .cs-centre-value{font:600 21px var(--sans);font-size:calc(20px * var(--cs-u,1));fill:var(--text);text-anchor:middle;font-variant-numeric:tabular-nums}
.company-view .cs-centre-label{font:500 12px var(--sans);font-size:calc(12px * var(--cs-u,1));fill:var(--faint);text-anchor:middle}
.company-view .cs-labels{transition:opacity .16s}
.company-view .cs-label{transition:opacity .18s}
.company-view .cs-label.is-dim{opacity:.32}
.company-view .cs-dot{fill:var(--cs-f)}
.company-view .cs-root.is-ready .cs-dot{transition:fill .45s}
.company-view .cs-label.is-missing .cs-dot{fill:var(--navy-1);stroke:var(--faint);stroke-width:1.2}
.company-view .cs-name{font:500 12px var(--sans);font-size:calc(12px * var(--cs-u,1));fill:var(--muted)}
.company-view .cs-value{font:600 12.5px var(--sans);font-size:calc(12.5px * var(--cs-u,1));fill:var(--text);font-variant-numeric:tabular-nums}
.company-view .cs-value tspan{font-size:inherit}
.company-view .cs-value .cs-pct{font-weight:500;fill:var(--faint)}
.company-view .cs-wedge.is-flat{stroke-opacity:0}
.company-view .cs-label.is-missing .cs-value{fill:var(--faint)}

/* Style toggles: a vertical segmented control (track app-ground, pressed option raised, aqua marks state). */
.company-view .cs-lenses{display:flex;flex-direction:column;gap:3px;padding:4px;border:1px solid var(--line);border-radius:8px;background:var(--navy-0)}
.company-view .cs-lenses button{position:relative;display:grid;justify-items:center;gap:3px;width:48px;padding:8px 0 6px;border:1px solid transparent;border-radius:6px;background:none;color:var(--faint);cursor:pointer;transition:color .15s,background-color .15s,border-color .15s}
.company-view .cs-lenses svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}
.company-view .cs-lenses span{font:500 11px var(--sans);font-variant-numeric:tabular-nums;color:var(--faint)}
.company-view .cs-lenses button:hover{color:var(--text);background:var(--navy-2)}
.company-view .cs-lenses button[aria-checked=true]{color:var(--aqua);background:var(--navy-3);border-color:color-mix(in srgb,var(--aqua) 50%,transparent)}
.company-view .cs-lenses button[aria-checked=true] span{color:var(--text)}
.company-view .cs-lenses button:focus-visible{outline:2px solid var(--app-focus-ring,#8dc3d9);outline-offset:2px}
.company-view .cs-lens-tip{position:absolute;right:calc(100% + 10px);top:50%;transform:translateY(-50%);padding:5px 8px;border:1px solid var(--line-strong);border-radius:6px;background:var(--navy-1);color:var(--text);font:500 11px var(--sans);font-style:normal;white-space:nowrap;pointer-events:none;opacity:0;transition:opacity .12s;z-index:3}
.company-view .cs-lenses button:hover .cs-lens-tip,.company-view .cs-lenses button:focus-visible .cs-lens-tip{opacity:1}
.company-view .cs-lenses:hover button:not(:hover) .cs-lens-tip{opacity:0}
.company-view .cs-lenses button[aria-disabled=true]{cursor:default}
.company-view .cs-lenses button[aria-disabled=true]>svg,.company-view .cs-lenses button[aria-disabled=true]>span{opacity:.38}
.company-view .cs-lenses button[aria-disabled=true]:hover{background:none;color:var(--faint)}

/* Tooltip, legend, popovers */
.company-view .cs-tip[hidden],.company-view .cs-pop[hidden]{display:none}
.company-view .cs-tip{position:absolute;z-index:4;display:grid;gap:4px;max-width:250px;padding:10px 12px;border:1px solid var(--line-strong);border-radius:8px;background:var(--navy-1);pointer-events:none}
.company-view .cs-tip strong{font:600 12px var(--sans);color:var(--text)}
.company-view .cs-tip span{font-size:11px;line-height:1.4;color:var(--muted)}
.company-view .cs-tip b{display:flex;align-items:center;gap:6px;font:500 11px var(--sans);color:var(--muted)}
.company-view .cs-tip b i,.company-view .cs-legend i,.company-view .cs-list th i{display:inline-block;width:8px;height:8px;border-radius:50%;background:var(--cs-f);flex:none}
.company-view .cs-tip em{font:600 12px var(--sans);font-style:normal;color:var(--text);font-variant-numeric:tabular-nums}
.company-view .cs-legend{position:absolute;left:18px;bottom:16px;display:grid;gap:6px;font-size:11px;color:var(--muted)}
.company-view .cs-legend span{display:inline-flex;align-items:center;gap:6px}
.company-view .cs-pop{position:absolute;top:50px;right:14px;z-index:6;width:270px;padding:14px;border:1px solid var(--line-strong);border-radius:10px;background:var(--navy-1)}
.company-view .cs-pop fieldset{margin:0;padding:0;border:0;display:grid;gap:2px}
.company-view .cs-pop fieldset+fieldset{margin-top:14px;padding-top:12px;border-top:1px solid var(--line)}
.company-view .cs-pop legend{padding:0;margin-bottom:6px;font:600 11px var(--sans);color:var(--muted)}
.company-view .cs-pop label{display:grid;grid-template-columns:16px minmax(0,1fr) auto;align-items:center;gap:8px;padding:6px 4px;border-radius:4px;font-size:12px;color:var(--text);cursor:pointer}
.company-view .cs-pop label:hover{background:var(--navy-2)}
.company-view .cs-pop label.is-off{color:var(--faint);cursor:default}
.company-view .cs-pop label small{font-size:11px;color:var(--faint);font-variant-numeric:tabular-nums}
.company-view .cs-pop input{margin:0;accent-color:var(--aqua)}
.company-view .cs-help{width:320px;top:auto;bottom:50px}
.company-view .cs-help p{margin:0;font-size:12px;line-height:1.5;color:var(--muted)}
.company-view .cs-help p+p{margin-top:8px}

/* Key-figure list: screen readers on wide screens, the reading on narrow ones. */
.company-view .cs-sr,.company-view .cs-root:not(.is-compact) .cs-list{position:absolute!important;top:0;left:0;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;pointer-events:none}
.company-view .cs-list{width:100%;border-collapse:collapse;margin-top:12px;font-size:12px}
.company-view .cs-list th,.company-view .cs-list td{padding:8px 4px;border-top:1px solid var(--line);text-align:left;font-weight:500;color:var(--text)}
.company-view .cs-list th{color:var(--muted)}
.company-view .cs-list th i{margin-right:8px;vertical-align:1px}
.company-view .cs-list td{font-variant-numeric:tabular-nums;white-space:nowrap}
.company-view .cs-list td:last-child{width:96px}
.company-view .cs-list td:last-child .cs-bar{display:inline-block;width:60px;margin-left:10px;vertical-align:middle}
.company-view .cs-bar{height:4px;border-radius:2px;background:var(--line)}
.company-view .cs-bar b{display:block;height:100%;border-radius:2px;background:var(--muted)}

/* Compact (narrow) mode: wheel cropped to the circle, toggles in a row, figures in the list. */
.company-view .cs-root.is-compact .cs-labels,.company-view .cs-root.is-compact .cs-label-mode{display:none}
.company-view .cs-root.is-compact .cs-chart{max-width:440px;margin:0 auto;width:100%}
.company-view .cs-root.is-compact .cs-side{align-self:start}
.company-view .cs-root.is-compact .cs-leaders li{flex:none}
.company-view .cs-root.is-compact .cs-wheel-panel{padding-top:52px}
.company-view .cs-root.is-compact .cs-tools-bottom{top:14px;bottom:auto;right:52px}
.company-view .cs-root.is-compact .cs-legend{position:static;display:flex;flex-wrap:wrap;justify-content:center;gap:6px 16px;margin-top:8px}
.company-view .cs-root.is-compact .cs-help{top:50px;bottom:auto}
.company-view .cs-root.is-compact .cs-centre-value{font-size:30px}
.company-view .cs-root.is-compact .cs-centre-label{font-size:17px}
@media(max-width:1100px){.company-view .cs-grid{grid-template-columns:minmax(0,1fr)}.company-view .cs-side{order:2}}
@media(max-width:760px){
 .company-view .cs-host{min-height:0}
 .company-view .cs-body{grid-template-columns:minmax(0,1fr)}
 .company-view .cs-lenses{order:-1;flex-direction:row;overflow-x:auto;justify-content:space-between}
 .company-view .cs-lenses button{flex:1 0 42px;width:auto}
 .company-view .cs-lens-tip{display:none}
 .company-view .cs-chart{max-width:420px;margin:0 auto;width:100%}
 .company-view .cs-legend{margin-right:0}
 .company-view .cs-pop{left:14px;right:14px;width:auto}
 .company-view .cs-badges{gap:8px}
 .company-view .cs-badge{width:36px;height:36px}
 .company-view .cs-badge-glyph{width:27px;height:27px}
 .company-view .cs-badge-icon{width:22px;height:22px}
 .company-view .cs-badge-tip{display:none}
}
@media(prefers-reduced-motion:reduce){.company-view .cs-root *{transition:none!important}}
