/* The staff STOCK page of the new frame (static/shared/stockFrame.js). docs/systems/UI_PARTS.md "Stock".
   Everything sits under body.ws-frame #stk-root.sf-on, so today's page and the client's page are untouched.
   Brand colours come from the firm variables (--brand-ink, --brand-accent, their -rgb triplets) and the
   fixed --vx-* tokens of ui.css; no brand hex here except the up/down tints on the navy band.
   Laid out to the signed-off mockup (13 Nov 2026): one short navy band, five tiles, 63 / 37 columns, short cards. */

.ws-frame #page-stock > main > .topbar { display: none; }
.ws-frame #page-stock .content { padding-top: 14px !important; }
.ws-frame #stk-root.sf-on { gap: 14px; }

/* ── The record band: ONE navy row (back link above it, the page's own header card inside) ─────────────── */
.ws-frame #stk-root .sf-crumb { margin: 0 0 -6px; }
.ws-frame #stk-root .sf-crumb a { cursor: pointer; }
.ws-frame #stk-root .sf-crumb a:hover { color: var(--brand-ink); }
.ws-frame #stk-root .stk-card.sf-band {
  background: linear-gradient(160deg, var(--brand-ink, #0B2339) 0%, rgba(var(--brand-ink-rgb, 11,35,57), .86) 100%);
  border: 0; border-radius: var(--vx-r-card, 12px); color: #F1F5F9;
}
.ws-frame #stk-root .sf-band .stk-head { flex-wrap: nowrap; gap: 14px; padding: 12px 18px; align-items: center; }
.ws-frame #stk-root .sf-band .stk-logo { width: 40px; height: 40px; border-radius: 9px; border-color: rgba(255,255,255,.2); }
.ws-frame #stk-root .sf-band .stk-logo.ph { background: rgba(255,255,255,.12); color: #fff; font-size: 11px; }
.ws-frame #stk-root .sf-band .stk-id { flex: 1 1 0; min-width: 0; }
.ws-frame #stk-root .sf-band .stk-id .c { display: none; }
.ws-frame #stk-root .sf-band .stk-id .n { font-family: var(--brand-font-display, Georgia, serif); font-size: 22px; line-height: 1.15; color: #fff; }
.ws-frame #stk-root .sf-band .stk-id .s { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 0; margin-top: 3px; font-size: 12.5px; color: #9fb4c6; }
.ws-frame #stk-root .sf-band .sf-meta { white-space: nowrap; padding: 0 10px; border-left: 1px solid rgba(255,255,255,.14); }
.ws-frame #stk-root .sf-band .sf-meta:first-child { padding-left: 0; border-left: 0; }
.ws-frame #stk-root .sf-band .sf-meta.sf-st { color: #4fd1c5; background: rgba(79,209,197,.12); border: 0; border-radius: 999px; padding: 2px 9px; margin: 0 10px; font-weight: 700; font-size: 11.5px; }
.ws-frame #stk-root .sf-band .stk-px { flex: none; order: 3; min-width: 0; }
.ws-frame #stk-root .sf-band .stk-px .p { font-family: var(--brand-font-display, Georgia, serif); font-size: 26px; line-height: 1.15; font-weight: 400; color: #fff; }
.ws-frame #stk-root .sf-band .stk-px .d { color: #F1F5F9; font-size: 13px; line-height: 1.3; }
.ws-frame #stk-root .sf-band .stk-px .t { color: #9fb4c6; font-size: 11px; line-height: 1.3; margin-top: 0; }
.ws-frame #stk-root .sf-band .stk-up { color: #4fd1c5; }
.ws-frame #stk-root .sf-band .stk-dn { color: #ff8f87; }
/* The star and the Actions menu sit in the same row, before the price. */
.ws-frame #stk-root .sf-band .stk-actions.sf-acts { order: 2; flex: none; width: auto; padding: 0; gap: 6px; position: relative; flex-wrap: nowrap; }
.ws-frame #stk-root .sf-band .vwl-star { color: #cfe0ec; font-size: 18px; }
.ws-frame #stk-root .sf-band .vwl-star.on { color: #e0a800; }
.ws-frame #stk-root .sf-band .sf-tg { background: transparent; color: #cfe0ec; border-color: rgba(255,255,255,.28); padding: 6px 11px; font-size: 12.5px; border-radius: 8px; white-space: nowrap; }
.ws-frame #stk-root .sf-band .sf-tg:hover { background: rgba(255,255,255,.08); }
.ws-frame #stk-root .sf-band .sf-menu {
  position: absolute; right: 0; top: calc(100% + 8px); z-index: 30; min-width: 240px; display: flex; flex-direction: column; gap: 2px;
  background: #fff; border: 1px solid var(--vx-line, #e4e5e3); border-radius: 10px; padding: 6px; box-shadow: 0 8px 24px rgba(var(--brand-ink-rgb, 11,35,57), .18);
}
.ws-frame #stk-root .sf-band .sf-menu[hidden] { display: none; }
.ws-frame #stk-root .sf-band .sf-menu .stk-btn { background: none; border: 0; color: var(--brand-ink); justify-content: flex-start; width: 100%; padding: 9px 10px; border-radius: 7px; font-size: 13px; }
.ws-frame #stk-root .sf-band .sf-menu .stk-btn.primary { color: var(--brand-accent); }
.ws-frame #stk-root .sf-band .sf-menu .stk-btn:hover { background: var(--vx-fill, #f1f2f0); }
@media (max-width: 760px) {
  .ws-frame #stk-root .sf-band .stk-head { flex-wrap: wrap; }
  .ws-frame #stk-root .sf-band .stk-id { flex-basis: 100%; }
  .ws-frame #stk-root .sf-band .stk-px { order: 2; margin-left: auto; text-align: right; }
  .ws-frame #stk-root .sf-band .stk-actions.sf-acts { order: 3; }
}

/* ── Five figure tiles ───────────────────────────────────────────────────────── */
.ws-frame #stk-root .sf-tiles { grid-template-columns: repeat(5, minmax(0, 1fr)); container-type: inline-size; }
.ws-frame #stk-root .sf-tiles .vx-tile { padding: 10px 14px; min-height: 86px; box-sizing: border-box; }
.ws-frame #stk-root .sf-tiles .vx-tile b { font-size: clamp(16px, 3.1cqw, 25px); line-height: 1.15; overflow: hidden; text-overflow: ellipsis; }
.ws-frame #stk-root .sf-tiles .vx-tile.warm b { font-size: clamp(14px, 2.1cqw, 19px); }
@media (max-width: 1100px) { .ws-frame #stk-root .sf-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 640px) { .ws-frame #stk-root .sf-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ── Tabs and panes: columns 63 / 37 like the mockup ─────────────────────────── */
.ws-frame #stk-root .sf-tabs { margin-top: 2px; overflow-x: auto; overflow-y: hidden; }
.ws-frame #stk-root .sf-pane[hidden] { display: none; }
.ws-frame #stk-root .sf-grid { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 14px; align-items: start; }
.ws-frame #stk-root .sf-cl, .ws-frame #stk-root .sf-cr { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.ws-frame #stk-root .sf-cr:empty { display: none; }
.ws-frame #stk-root .sf-grid:has(.sf-cr:empty) { grid-template-columns: minmax(0, 1fr); }
@media (max-width: 900px) { .ws-frame #stk-root .sf-grid { grid-template-columns: minmax(0, 1fr); } }
.ws-frame #stk-root .sf-none { padding: 24px 4px; }
.ws-frame #stk-root .sf-hide { display: none !important; }

/* ── Cards: the page's own .stk-card in the shared card look ─────────────────── */
.ws-frame #stk-root.sf-on .stk-card { border-color: var(--vx-line, #e4e5e3); border-radius: var(--vx-r-card, 12px); }
.ws-frame #stk-root.sf-on .stk-card > h3 {
  display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 14px; flex-wrap: nowrap;
  font: 700 11px/1.3 var(--brand-font-body, 'DM Sans', sans-serif); letter-spacing: .09em; text-transform: uppercase; color: var(--vx-text-2, #56636e);
  border-bottom-color: var(--vx-line, #e4e5e3);
}
.ws-frame #stk-root.sf-on .stk-card > h3 > span:first-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ws-frame #stk-root .stk-card > h3 .sf-m { font-weight: 500; font-size: 12px; letter-spacing: 0; text-transform: none; color: var(--vx-text-3, #848484); white-space: nowrap; }
.ws-frame #stk-root .stk-card > h3 .stk-link, .ws-frame #stk-root .sf-teal { font-size: 12px; font-weight: 600; letter-spacing: 0; text-transform: none; color: var(--brand-accent); white-space: nowrap; flex: none; }
.ws-frame #stk-root .stk-card > h3 .vx-seg button { padding: 5px 10px; font-size: 12px; letter-spacing: 0; text-transform: none; }
.ws-frame #stk-root.sf-on .stk-body { padding: 12px 14px; }
.ws-frame #stk-root .sf-fine { margin-top: 8px; font-size: 11px; }
/* Lists: date, headline, source on one tight row, like the mockup's. */
.ws-frame #stk-root.sf-on .stk-item { padding: 7px 0; font-size: 13px; }
.ws-frame #stk-root.sf-on .stk-item:first-child { padding-top: 0; }
.ws-frame #stk-root.sf-on .stk-item .w { width: 76px; white-space: nowrap; }

/* ── Price: a card with the range switch in its header and a short chart ─────── */
.ws-frame #stk-root .sf-price .stk-body.sf-chartbody { padding: 0; background: #fff; border-radius: 0 0 var(--vx-r-card, 12px) var(--vx-r-card, 12px); overflow: hidden; }
.ws-frame #stk-root .sf-price #sf-chart { overflow: hidden; }

/* ── Deep-dive (Walter): the same compact card as the others ─────────────────── */
.ws-frame #stk-root.sf-on .stk-dd > h3 small { font-size: 11.5px; font-weight: 500; letter-spacing: 0; text-transform: none; color: var(--vx-text-3, #848484); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ws-frame #stk-root.sf-on .stk-dd .stk-body { padding: 10px 14px; gap: 8px; max-height: 300px; overflow: auto; }
.ws-frame #stk-root.sf-on .stk-dd .stk-empty { font-size: 12.5px; line-height: 1.5; }
.ws-frame #stk-root.sf-on .stk-dd .stk-btn { padding: 6px 12px; font-size: 12.5px; border-radius: 8px; }
.ws-frame #stk-root.sf-on .stk-dd .stk-btn.primary { background: var(--brand-accent); border-color: var(--brand-accent); color: #fff; }

/* ── Your clients who hold it: compact one-line rows ─────────────────────────── */
.ws-frame #stk-root .sf-scope { display: flex; justify-content: flex-end; margin-bottom: 6px; }
.ws-frame #stk-root .sf-scope .vx-seg button { padding: 4px 10px; font-size: 12px; }
.ws-frame #stk-root .sf-mv { display: grid; grid-template-columns: minmax(0, 1fr) 40px 66px; gap: 8px; align-items: center; padding: 5px 0; border-top: 1px solid var(--vx-line, #e4e5e3); font-size: 12.5px; cursor: pointer; }
.ws-frame #stk-root .sf-mv:first-of-type, .ws-frame #stk-root .sf-scope + .sf-mv { border-top: 0; }
.ws-frame #stk-root .sf-mv:hover .sf-nm { color: var(--brand-accent); text-decoration: underline; }
.ws-frame #stk-root .sf-nm { display: flex; align-items: baseline; min-width: 0; font-weight: 600; color: var(--brand-ink); }
.ws-frame #stk-root .sf-nm .sf-n { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 0 1 auto; }
.ws-frame #stk-root .sf-nm small { flex: none; margin-left: 6px; white-space: nowrap; font-weight: 400; font-size: 11.5px; color: var(--vx-text-3, #848484); }
.ws-frame #stk-root .sf-mv .sf-r { text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; }
.ws-frame #stk-root .sf-foot { margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--vx-line, #e4e5e3); font-size: 12.5px; color: var(--vx-text-3, #848484); }
.ws-frame #stk-root .sf-foot .stk-link { color: var(--brand-accent); font-weight: 600; }

/* ── Broker research: the Home card's look ───────────────────────────────────── */
.ws-frame #stk-root .sf-rs { display: flex; flex-direction: column; gap: 3px; min-width: 0; padding: 7px 0; border-top: 1px solid var(--vx-line, #e4e5e3); }
.ws-frame #stk-root .sf-rs:first-child { border-top: 0; padding-top: 0; }
.ws-frame #stk-root .sf-rs-l1 { display: flex; flex-wrap: wrap; align-items: center; gap: 5px 8px; }
.ws-frame #stk-root .sf-rs-tp { font-size: 12.5px; font-weight: 600; color: var(--brand-ink); white-space: nowrap; }
.ws-frame #stk-root .sf-rs-l2 { font-size: 11.5px; line-height: 1.45; color: var(--vx-text-3, #848484); }
.ws-frame #stk-root .sf-rs-l2 b { font-size: 10.5px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.ws-frame #stk-root .sf-chip { font-size: 11.5px; font-weight: 700; border-radius: 999px; padding: 2px 9px; white-space: nowrap; border: 1px solid var(--vx-line-strong, #cfd0cc); color: var(--brand-ink); background: #fff; }
.ws-frame #stk-root .sf-chip-up { background: #1c8a4e; border-color: #1c8a4e; color: #fff; }
.ws-frame #stk-root .sf-chip-down { background: #c0392b; border-color: #c0392b; color: #fff; }
.ws-frame #stk-root .sf-chip-buy { background: #e3f3ea; border-color: #a9d8bd; color: #156b3c; }
.ws-frame #stk-root .sf-chip-sell { background: #f9e6e3; border-color: #e8b4ad; color: #a3301f; }

.ws-frame #stk-root .sf-btns { display: flex; gap: 8px; flex-wrap: wrap; }

/* ── More: the extra cards, folded at the foot of the right column ───────────── */
.ws-frame #stk-root .sf-morecard[hidden] { display: none; }
.ws-frame #stk-root .sf-morecard > summary {
  display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 14px; cursor: pointer; list-style: none;
  font: 700 11px/1.3 var(--brand-font-body, 'DM Sans', sans-serif); letter-spacing: .09em; text-transform: uppercase; color: var(--vx-text-2, #56636e);
}
.ws-frame #stk-root .sf-morecard > summary::-webkit-details-marker { display: none; }
.ws-frame #stk-root .sf-morecard > summary::after { content: '▾'; flex: none; font-size: 12px; letter-spacing: 0; }
.ws-frame #stk-root .sf-morecard[open] > summary::after { content: '▴'; }
.ws-frame #stk-root .sf-morecard > summary > span:first-child { flex: none; }
.ws-frame #stk-root .sf-morecard .sf-more-t { flex: 1 1 0; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: right; }
.ws-frame #stk-root .sf-morecard[open] > summary { border-bottom: 1px solid var(--vx-line, #e4e5e3); }
.ws-frame #stk-root .sf-morebody > .stk-card { border: 0; border-top: 1px solid var(--vx-line, #e4e5e3); border-radius: 0; }
.ws-frame #stk-root .sf-morebody > .stk-card:first-child { border-top: 0; }

/* ── Pop-ups (the compose step and the alert dialog are VX.modal on <body>, so not under #stk-root) ── */
.sf-testnote { font-size: 12.5px; color: var(--vx-warn, #9a5b1f); background: var(--vx-warn-bg, #fdf1e7); border-radius: 8px; padding: 8px 11px; margin-bottom: 12px; }
.sf-alist { margin-bottom: 12px; }
.sf-arow { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 6px 0; border-bottom: 1px solid var(--vx-line, #e4e5e3); font-size: 13px; }

/* ── Round 4: a visible crumb line above the band ───────────────────────────── */
.ws-frame #stk-root .sf-crumb { display: block; margin: 0; min-height: 18px; line-height: 18px; font-size: 12.5px; }
.ws-frame #stk-root.sf-on { gap: 10px; }
.ws-frame #stk-root .sf-pane:not([data-pane="ov"]) .stk-body { padding: 14px 16px; }
/* Key figures checks (static/shared/keyFigures.js): a figure that needs a second look says so. */
.ws-frame #stk-root .sf-kfcheck { margin-top: 8px; font-size: 12px; line-height: 1.4; color: var(--vx-warn, #9a5b1f); background: var(--vx-warn-bg, #fdf1e7); border-radius: 8px; padding: 7px 10px; }
