/* Company.css - company page (Company.aspx / CompanyEn.aspx).
   Loaded after StartPage.css (cards, colors, footer) and Category.css (.cat-nav chips). */

/* ---------- layout: header on top, wide data column + narrow side column */
.sp.co { grid-template-columns: minmax(0, 1fr) 380px; max-width: 1240px; }
.sp.co ~ .sp-foot, .sp.co + .sp-foot { max-width: 1240px; }
.co-head { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px; }
.co-main, .co-side { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.co-card { scroll-margin-top: 70px; }
.co-note { font-size: 12px; font-weight: 400; color: var(--sp-muted); margin-inline-start: 6px; }
.co-empty { margin: 4px 0; color: var(--sp-muted); }
.co-foot { margin: 8px 0 0; font-size: 12px; color: var(--sp-muted); }

/* ---------- header */
.co-title { flex: 1 1 280px; min-width: 0; }
.co-title h1 { margin: 0; font-size: 24px; line-height: 1.25; color: var(--sp-pri); }
.co-title p { margin: 2px 0 0; font-size: 14px; color: var(--sp-muted); }
.co-code { display: inline-block; padding: 1px 8px; border-radius: 6px; background: var(--sp-soft); color: var(--sp-pri-2); font-size: 14px; font-weight: 500; vertical-align: middle; }
.co-quote { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.co-last { font-size: 28px; font-weight: 700; color: var(--sp-text); }
.co-chg { font-size: 16px; font-weight: 700; padding: 1px 8px; border-radius: 6px; }
.co-up { color: #0a6b2d; background: #e6f4ea; }
.co-down { color: #b3261e; background: #fbe9e7; }
.co-flat { color: var(--sp-muted); background: var(--sp-soft); }
.co-unit { font-size: 12px; color: var(--sp-muted); }
.co-nav { flex: 1 1 100%; }
.sp .co-nav a.co-out { background: var(--sp-soft); }
.co-find { display: flex; gap: 8px; align-items: center; }
.co-find input { width: 210px; }

/* ---------- key figure tiles */
.co-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.co-tile { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border: 1px solid var(--sp-line); border-radius: 8px; background: #fafbfe; min-width: 0; }
.co-tile-l { font-size: 12px; color: var(--sp-muted); }
.co-tile-v { font-size: 22px; font-weight: 700; line-height: 1.2; color: var(--sp-text); text-align: start; }
html[dir=rtl] .co-tile-v { text-align: right; }
.co-tile-s { font-size: 12px; color: var(--sp-muted); }
.co-tile.neg .co-tile-v { color: #b3261e; }

/* ---------- tabs (annual / quarterly) */
.co-tabs { display: inline-flex; gap: 4px; padding: 3px; margin-bottom: 10px; border-radius: 999px; background: var(--sp-soft); }
.co-tabs button { border: 0; background: transparent; padding: 5px 16px; border-radius: 999px; font: 500 13px var(--sp-font); color: var(--sp-pri); cursor: pointer; }
.co-tabs button.is-on { background: var(--sp-pri); color: #fff; }
.co-tabs button:focus-visible, .co-more:focus-visible { outline: 2px solid var(--sp-pri-2); outline-offset: 2px; }

/* ---------- tables */
.co-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.co-tbl { width: 100%; border-collapse: collapse; font-size: 13px; }
.co-tbl th, .co-tbl td { padding: 6px 8px; border-bottom: 1px solid #eceef4; text-align: start; vertical-align: top; }
.co-tbl thead th { font-size: 12px; font-weight: 700; color: #4a5070; background: var(--sp-soft); border-bottom: 2px solid #c9cde0; white-space: nowrap; }
.co-tbl thead th small { display: block; font-weight: 400; color: var(--sp-muted); }
.co-tbl tbody tr:hover > * { background: #f6f7fb; }
.co-tbl .co-sec th { padding-top: 12px; font-size: 13px; color: var(--sp-pri); background: #fff; border-bottom: 1px solid #c9cde0; }
.co-tbl .neg { color: #b3261e; }
/* statements: item names on the side (sticky when the table scrolls), numbers aligned to the end */
.co-fin td, .co-fin thead th:not(:first-child) { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.co-fin tbody th { font-weight: 400; white-space: nowrap; position: sticky; inset-inline-start: 0; background: #fff; }
.co-fin tbody tr:hover > th { background: #f6f7fb; }
.co-fin .co-sub th, .co-fin .co-sub td { color: var(--sp-muted); font-size: 12px; }
.co-fin .co-sub .neg { color: #b3261e; }
/* lists (analysts, holders) */
.co-list td { font-variant-numeric: tabular-nums; }
.co-list .co-wrap { white-space: normal; min-width: 180px; color: #4a5070; font-size: 12px; }
.co-list .co-name { font-weight: 500; }
.co-limit { max-height: 330px; overflow-y: hidden; }
.co-limit.is-open { max-height: none; }
.co-more { display: inline-block; margin-top: 8px; padding: 4px 14px; border: 1px solid var(--sp-line); border-radius: 999px; background: #fff; font: 500 13px var(--sp-font); color: var(--sp-pri); cursor: pointer; }
.co-more:hover { border-color: var(--sp-pri-2); background: var(--sp-soft); }

/* ---------- bar chart (revenue / net income by year) */
.co-bars { margin: 0 0 12px; }
.co-bars figcaption { display: flex; gap: 16px; margin-bottom: 4px; font-size: 12px; color: #4a5070; }
.co-leg i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-inline-end: 5px; }
.co-sw1, .co-b1 { background: #2a78d6; fill: #2a78d6; }
.co-sw2, .co-b2 { background: #eb6834; fill: #eb6834; }
.co-bars svg { display: block; width: 100%; max-width: 620px; height: auto; direction: ltr; }
.co-bars path { transition: opacity .12s; }
.co-bars svg:hover path { opacity: .55; }
.co-bars svg path:hover { opacity: 1; }
.co-grid { stroke: #e6e8f0; stroke-width: 1; }
.co-zero { stroke: #9aa0b5; stroke-width: 1; }
.co-ax { font: 11px var(--sp-font); fill: var(--sp-muted); }

/* ---------- analysts */
.co-cons { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 26px; padding: 10px 12px; margin-bottom: 12px; border: 1px solid var(--sp-line); border-radius: 8px; background: #fafbfe; }
.co-cons-main { display: flex; flex-direction: column; gap: 3px; }
.co-cons-txt { flex: 1 1 260px; margin: 0; font-size: 13px; color: #4a5070; text-align: left; }
.co-rate { display: inline-block; padding: 3px 12px; border-radius: 6px; font-size: 16px; font-weight: 700; }
.co-rate-s { padding: 1px 8px; font-size: 12px; font-weight: 500; white-space: nowrap; }
.co-r-buy { color: #0a6b2d; background: #e6f4ea; }
.co-r-hold { color: #4a5070; background: var(--sp-soft); }
.co-r-sell { color: #b3261e; background: #fbe9e7; }

/* ---------- side column */
.co-chart { display: block; }
.co-chart img { display: block; width: 100%; height: auto; border-radius: 6px; }
.co-prof-txt { font-size: 14px; line-height: 1.6; max-height: 9.6em; overflow: hidden; }
.co-prof-txt.is-open { max-height: none; }
.co-dl { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; margin: 10px 0 0; font-size: 13px; }
.co-dl dt { color: var(--sp-muted); }
.co-dl dd { margin: 0; text-align: start; }
.co-people, .co-msgs { list-style: none; margin: 0; padding: 0; }
.co-people li { display: flex; flex-direction: column; padding: 6px 0; border-bottom: 1px solid #eceef4; font-size: 13px; }
.co-people li:last-child, .co-msgs li:last-child { border-bottom: 0; }
.co-people b { font-weight: 500; }
.co-people span { color: var(--sp-muted); font-size: 12px; }
.co-msgs { max-height: 420px; overflow-y: auto; direction: ltr; }
.co-msgs li { display: flex; flex-direction: column; gap: 1px; padding: 6px 0 6px; border-bottom: 1px solid #eceef4; font-size: 13px; text-align: left; }
.co-msgs li.co-imp { border-inline-start: 3px solid #eb6834; padding-inline-start: 8px; }
.co-msgs li.co-imp a { font-weight: 500; }
.co-msgs time { font-size: 11px; color: var(--sp-muted); }

/* ---------- narrower screens */
@media (max-width: 1000px) {
  .sp.co { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
  .co-title h1 { font-size: 20px; }
  .co-last { font-size: 24px; }
  .co-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .co-tile-v { font-size: 19px; }
  .co-tbl th, .co-tbl td { padding: 6px 6px; }
}

/* ---------- ratios card: group titles */
.co-h3 { margin: 12px 0 6px; font-size: 13px; font-weight: 700; color: #4a5070; }
.co-h3:first-of-type { margin-top: 0; }

/* ---------- ratios card: group titles */
.co-h3 { margin: 12px 0 6px; font-size: 13px; font-weight: 700; color: #4a5070; }
.co-h3:first-of-type { margin-top: 0; }

/* ---------- search box: suggestions list (same look as ChartPro) */
.co-find { position: relative; }
.co-ac { position: absolute; top: 100%; inset-inline-start: 0; margin-top: 4px; z-index: 1000; width: 380px; max-width: 92vw; max-height: 340px; overflow-y: auto;
  background: #fff; border: 1px solid #d5dbe5; border-radius: 8px; box-shadow: 0 6px 18px rgba(20, 30, 60, .16); display: none; padding: 4px 0; }
.co-ac div { display: flex; align-items: center; gap: 12px; padding: 7px 12px; cursor: pointer; border-bottom: 1px solid #f0f2f6; }
.co-ac div:last-child { border-bottom: none; }
.co-ac div.on, .co-ac div:hover { background: #eef3fc; }
.co-ac .c { flex: 0 0 auto; min-width: 68px; font-weight: 600; font-size: 13px; color: #2b3a67; font-variant-numeric: tabular-nums; unicode-bidi: isolate; }
.co-ac .n { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; color: #333; unicode-bidi: plaintext; }
.co-head { overflow: visible; }   /* the list drops below the header card */
