/* Stock detail additions that are not already in extra.css ticker clusters. */
.stk-page .table-wrap{overflow-x:auto}
/* overflow-x:auto makes this card the sticky scrollport (overflow-y computes to auto).
   top:var(--topbar-h) then pins the header 64px down the card, over the second row,
   at widths where the 768–1599 top:0 reset does not apply. Pin to the card. */
.stk-page .table-wrap table.data thead th{top:0}
.stk-page table.data.keep{width:100%;min-width:0}
.stk-page td .tb{margin-left:6px}
.stk-chart .stk-hit{fill:transparent;pointer-events:all}
.stk-chart .stk-pt{cursor:pointer;touch-action:manipulation}
.stk-chart .stk-pt:focus{outline:2px solid var(--focus);outline-offset:2px}
.stk-chart .stk-partial{opacity:.45}
.stk-tip{position:fixed;z-index:30;display:flex;flex-direction:column;gap:2px;max-width:min(240px,calc(100vw - 16px));padding:8px 10px;background:var(--ink);color:#fff;border-radius:var(--r);font:600 var(--fs-12)/1.35 var(--font-ui);pointer-events:none;box-shadow:var(--shadow-2)}
.stk-tip[hidden]{display:none}

/* "Add to watchlist" on the stock page; filled star once saved (account.js). */
.tk-acts .wl-toggle .icon{width:16px;height:16px;color:var(--ink-3)}
.tk-acts .wl-toggle.on{background:#FFF7E6;border-color:#E9C46A;color:#7A4A00}
.tk-acts .wl-toggle.on .icon{fill:#F2B233;stroke:#B26B00}

/* "Add to calendar" on stock pages (StockView::calendarMenu) */
.cal-dd{position:relative;display:flex}
.cluster:has(.cal-dd[open]){overflow:visible}
.cal-dd>summary{list-style:none;cursor:pointer}
.cal-dd>summary::-webkit-details-marker{display:none}
.cal-dd>summary .icon{width:16px;height:16px;color:var(--ink-3)}
.cal-menu{position:absolute;z-index:30;top:calc(100% + 4px);left:0;min-width:250px;display:flex;flex-direction:column;padding:4px;background:var(--surface);border:1px solid var(--border);border-radius:var(--r);box-shadow:var(--shadow-2)}
.cal-menu a{display:flex;align-items:center;min-height:44px;padding:0 12px;border-radius:var(--r-sm);color:var(--ink);text-decoration:none;font-size:var(--fs-14)}
.cal-menu a:hover{background:var(--surface-2)}
@media (max-width:767px){
  .stk-page table.data.keep thead th{position:static;top:auto}
  .stk-page .tk-acts .cal-dd{flex:1 1 calc(50% - 8px)}
  .cal-dd>summary.btn{flex:1}
  .cal-menu{left:auto;right:0}
}
.stk-report{margin:var(--s4) 0 0}
