/* Uses the exact current bond shell. Stock-specific composition only. */
body.compact-stocks{--nav:188px;--ink:#152f49;--muted:#526b7e;--line:#e1e8ee;--accent:#A57B38;background:#fff;color:var(--ink);font-size:13px}
.compact-stocks .main{height:auto;min-height:100vh;background:#fff}
.compact-stocks .workspace{padding:20px 24px 32px;display:block;overflow:visible}
.compact-stocks .pagehead{margin:0 0 18px}.compact-stocks h1{font-size:32px;line-height:1.2;font-weight:700;letter-spacing:-.5px}.compact-stocks h1 small{font-size:13px;color:var(--muted);font-weight:400;margin-left:16px;letter-spacing:0}
.compact-stocks .toolbar{display:flex;gap:12px;align-items:center;flex-wrap:wrap;margin:0 0 14px;padding:0;border:0;background:#fff}
.compact-stocks .search{max-width:390px;min-width:280px;flex:1}.compact-stocks input,.compact-stocks select{font-size:13px;min-height:34px;border:1px solid #dce4e9;border-radius:3px;background:#fff;color:var(--ink)}
.compact-stocks .viewbar{display:flex;justify-content:space-between;align-items:center;gap:12px;margin:0;padding:10px 0 12px;border:0;background:white;min-height:58px}
.compact-stocks .tabs{gap:24px;border:0}.compact-stocks .tab{border:0;border-bottom:2px solid transparent;background:none;padding:10px 0 9px;font-size:14px;color:#526b7e}.compact-stocks .tab[aria-selected=true]{background:none;border-bottom-color:#A57B38;color:#805a24;font-weight:600}
body.compact-stocks #tablewrap{margin:0;width:100%;max-height:none;overflow:auto;border:1px solid var(--line);border-radius:3px;max-width:100%}
.compact-stocks #tablewrap table{width:100%;border-collapse:separate;border-spacing:0;table-layout:fixed;font-size:13px}
.compact-stocks #tablewrap thead th{background:#214557;color:white;border:0;border-right:1px solid #527080;border-bottom:1px solid #527080;font-size:12px;line-height:1.3;padding:10px 12px;top:0;font-weight:500}
.compact-stocks #tablewrap th button{color:inherit;font:inherit;background:none;line-height:1.3}.compact-stocks #tablewrap .head-help{color:#d7e2e7;opacity:1}.compact-stocks #tablewrap .head-wrap{gap:5px}
.compact-stocks #tablewrap td{padding:10px 12px;border:0;border-right:1px solid #e7edf1;border-bottom:1px solid #e7edf1;vertical-align:middle;height:61px;background:white}
.compact-stocks #tablewrap tr:nth-child(even)>td{background:#f8fafb}.compact-stocks #tablewrap tbody tr:hover>td{background:#f0f5f7}.compact-stocks #tablewrap tr.picked>td,.compact-stocks #tablewrap tr.checked>td{background:#f8f3e9}
.compact-stocks #tablewrap .group-start{border-left:0}.compact-stocks #tablewrap .checkcol{width:34px;min-width:34px;padding:8px;left:0}.compact-stocks #tablewrap .companycol{min-width:0;width:auto;left:34px}
.compact-stocks .company-name{display:grid;grid-template-columns:32px 1fr;grid-template-rows:auto auto;column-gap:10px;text-align:left;align-items:center;width:100%;padding:0;background:none;border:0}
.compact-stocks .stock-logo{grid-row:1/3;grid-column:1;width:32px;height:32px;object-fit:contain;border-radius:50%;background:#fff}.compact-stocks .stock-logo-fallback{display:flex;align-items:center;justify-content:center;background:#e9eff3;color:#476477;font-size:11px;font-weight:600}
.compact-stocks .company-label{grid-column:2;font-size:13px;font-weight:600;line-height:1.35;white-space:normal}.compact-stocks .identityline{grid-column:2;font-size:11px;line-height:1.4;color:var(--muted);white-space:nowrap}
.compact-stocks .stock-target{display:flex;flex-direction:column;align-items:center;margin:0 auto;padding:0;border:0;background:none;gap:3px}.compact-stocks .target-value{font-size:15px;line-height:1.3;font-weight:600;color:#2f735e;text-decoration:underline dotted;text-underline-offset:4px}.compact-stocks .target-value.down{color:#a14b46}.compact-stocks .target-price{font-size:11px;line-height:1.3;color:var(--muted);font-weight:400}
.compact-stocks .factor-score{display:inline-block;min-width:35px;padding:4px 7px;text-align:center;border-radius:3px;line-height:1.3}.compact-stocks .score-high{background:#e7f0eb;color:#32664f}.compact-stocks .score-mid{background:#f5f0e3;color:#725d33}.compact-stocks .score-low{background:#f5e9e6;color:#8c5247}
.compact-stocks .rank-visual{display:none}.compact-stocks .rank-emphasis,.compact-stocks .rank{font-size:14px;font-weight:600}
.compact-stocks .tablefooter{border:0;padding:12px 0;color:var(--muted);font-size:11px}.compact-stocks .snapshot-publication{margin:12px 24px 0;color:var(--muted);font-size:11px}.compact-stocks .table-nav{margin:0 0 8px}
.compact-stocks .primary{background:#A57B38;border-color:#A57B38;color:#fff}.compact-stocks button:focus-visible,.compact-stocks a:focus-visible{outline:2px solid #A57B38;outline-offset:3px}
.compact-stocks #drawer{background:white;border-left:1px solid #dce4e9;max-width:calc(100vw - 212px)}.compact-stocks #drawer h2{font-size:23px}.compact-stocks dialog{border:1px solid #dce4e9;border-radius:5px;color:var(--ink)}.compact-stocks dialog::backdrop{background:rgba(21,47,73,.22)}.compact-stocks .stock-view-option{width:100%;justify-content:flex-start;color:#25475e;background:#f2f6f8}

.compact-stocks .table-jumpbar{margin:0 0 12px}.compact-stocks .tablefooter{margin:0}

/* Same filter controls and table actions as the current compact bonds page. */
.compact-stocks .toolbar{margin-bottom:18px}.compact-stocks .toolbar>.clear{display:none}.compact-stocks .rank-settings{margin-left:auto;display:inline-flex;align-items:center;gap:9px;min-height:38px;padding:8px 14px;border:1px solid #896326;border-radius:6px;background:#896326;color:#fff;font-size:13px;font-weight:600;box-shadow:0 2px 5px #68461918;cursor:pointer}.compact-stocks .rank-settings:hover{background:#78551f;border-color:#78551f;box-shadow:0 3px 8px #68461926}.compact-stocks .rank-settings .rank-arrow{width:17px;height:17px;margin-left:3px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
.compact-stocks .search{height:35px;border:1px solid #d2dfe8;border-radius:4px;max-width:390px;padding:0 10px;gap:9px}.compact-stocks .search input{border:0;min-height:0;height:32px;box-shadow:none;padding:0;width:100%}
.compact-stocks .stock-screen .screen-basic{display:grid}.compact-stocks .stock-screen .screen-range,.compact-stocks .stock-screen .screen-select{display:grid;align-items:center;margin:0;min-width:0;color:#526b7e;font-size:12px}
.compact-stocks .stock-screen .screen-range>div{display:flex;gap:5px;min-width:0}.compact-stocks .stock-screen .screen-range label{flex:1;min-width:0}.compact-stocks .stock-screen .screen-range input{width:100%;min-width:0;height:32px;min-height:32px;padding:4px 7px;border:1px solid #d2dfe8;background:white;border-radius:4px;font-size:12px}
.compact-stocks .stock-screen select{min-width:0;width:100%;font-size:12px}.compact-stocks .stock-screen .screen-multi{position:relative;min-width:0}.compact-stocks .stock-screen summary{display:flex;align-items:center;justify-content:space-between;gap:6px;cursor:pointer;list-style:none;color:#152f49}.compact-stocks summary::-webkit-details-marker{display:none}.compact-stocks #stock-sector-value{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.compact-stocks .stock-screen .icon{width:16px;height:16px;flex:none}
.compact-stocks .stock-sector-menu{position:absolute;top:calc(100% + 5px);left:0;z-index:90;width:285px;max-height:360px;overflow:auto;background:#fff;border:1px solid #d2dfe8;border-radius:5px;box-shadow:0 8px 24px #153a551a;padding:8px}.compact-stocks .stock-sector-menu label{display:flex;align-items:center;gap:8px;padding:7px 5px;color:#152f49;cursor:pointer}.compact-stocks .stock-sector-menu label:hover{background:#f0f4f7}.compact-stocks .stock-sector-menu button{border:0;background:none;color:#526b7e;padding:5px;font-size:12px}
.compact-stocks .stock-screen .filter-preview-shell{position:relative}.compact-stocks .stock-screen .filter-preview-toggle{cursor:pointer}.compact-stocks .stock-extra-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px 28px;margin:8px 0 16px}.compact-stocks .stock-extra-grid .screen-range{grid-template-columns:minmax(116px,1fr) minmax(128px,1fr);gap:8px;min-height:32px}.compact-stocks .stock-filter-options{display:flex;gap:24px;margin-bottom:14px}.compact-stocks .stock-filter-options label{display:flex;align-items:center;gap:7px}
.compact-stocks .stock-screen .screen-filter-foot{display:flex;align-items:center;border-top:1px solid var(--line);gap:26px}.compact-stocks .stock-filter-status{margin-right:auto;font-size:12px;color:#60778b}.compact-stocks .stock-screen .stock-apply{min-width:122px;height:35px;border:1px solid #896326;background:#896326;color:#fff;font-size:13px;font-weight:600;border-radius:4px}.compact-stocks .stock-screen .stock-apply:disabled{background:#edf0f2;border-color:#e0e5e9;color:#687985;cursor:default}.compact-stocks .stock-screen [data-action=clear]{font-size:12px;color:#60778b}.compact-stocks .stock-range-error{color:#a0443d;font-size:12px;margin:4px 0 10px}.compact-stocks [aria-invalid=true]{border-color:#a0443d!important}
.compact-stocks .viewbar.screener-toolbar{flex-wrap:nowrap;padding:0 0 10px;margin:0;min-height:48px}.compact-stocks .table-actions .icon{stroke-width:1.6;fill:none;stroke:currentColor}.compact-stocks .change-count{font-size:inherit;padding:0;background:none;color:inherit;margin-left:-5px}.compact-stocks .compact-views{position:relative}.compact-stocks .compact-menu{position:absolute;right:0;top:100%;z-index:90;min-width:250px;background:white;border:1px solid #d2dfe8;border-radius:5px;box-shadow:0 8px 24px #153a551a;padding:8px}.compact-stocks .compact-menu button{border:0;background:white;text-align:left;width:100%;padding:8px;color:#1d3d58}.compact-stocks .compact-views-note{font-size:12px;color:#60778b;margin:8px;line-height:1.4}
.compact-stocks #tablewrap th,.compact-stocks #tablewrap td{text-align:center;white-space:normal;min-width:0}.compact-stocks #tablewrap th button{text-align:center}.compact-stocks #tablewrap .head-wrap{justify-content:center}.compact-stocks #tablewrap td.companycol{text-align:left}.compact-stocks #tablewrap .personal-security{align-items:center}.compact-stocks #tablewrap .personal-star{align-self:center;margin-top:0;top:50%;transform:translateY(-50%);line-height:1;padding:0;flex:none}.compact-stocks #tablewrap .company-name{min-width:0}.compact-stocks #tablewrap .identityline{white-space:normal}
.compact-stocks #tablewrap th,.compact-stocks #tablewrap td{padding-left:9px;padding-right:9px}.compact-stocks #tablewrap .stock-factor-boundary{border-left:1px solid #d5e0e6}.compact-stocks #tablewrap thead .group-factors{background:#2b4d60}.compact-stocks #tablewrap thead .stock-factor-boundary{border-left-color:#527080}.compact-stocks #tablewrap .info{margin-left:4px}.compact-stocks #tablewrap .rankcol{white-space:nowrap}

/* Keep long dividend histories inside the issuer card grid. */
body.compact-stocks .issuer-bottom > section{min-width:0}

/* Keep the final score visible in wide desktop tables. */
body.compact-stocks #tablewrap .stock-pinned-rank{position:sticky;right:0;z-index:3;box-shadow:-1px 0 0 #dce5e8}
body.compact-stocks #tablewrap th.stock-pinned-rank{z-index:6;background:#214557}
