/* Static table geometry: headers, body and totals always use one native table. */
.watch-editor{scroll-margin-top:80px}
.data-table a.security-name:hover,.data-table a.security-name:focus-visible{color:var(--bull-dark);text-decoration:underline;text-underline-offset:3px}
@media(min-width:1100px){
  .page-wrap{width:min(2184px,calc(100vw - 24px));max-width:none}
  .site-header{padding-inline:max(20px,calc((100vw - 2184px)/2))}
}
.responsive-table{position:relative;overflow:auto;max-width:100%;-webkit-overflow-scrolling:touch;scrollbar-gutter:stable;overscroll-behavior:contain}
.responsive-table.table-scrollbox{max-height:min(74vh,860px)}
.data-table{width:max-content;min-width:100%;table-layout:auto;border-collapse:separate;border-spacing:0;--cell-pad-x:11px;--cell-pad-y:10px}
.data-table th,.data-table td{padding:var(--cell-pad-y) var(--cell-pad-x);background:#fff;min-width:72px;white-space:nowrap;text-align:left;vertical-align:middle}
.data-table thead th{position:sticky;top:0;z-index:6;background:#fbf7f6;user-select:none}
.data-table .num,.data-table .table-numeric-col{text-align:right;font-variant-numeric:tabular-nums}
.data-table thead th[data-sortable="1"]{cursor:pointer;padding-right:calc(var(--cell-pad-x) + 15px)}
.data-table thead th[data-sortable="1"]::after{content:"↕";position:absolute;right:6px;top:50%;transform:translateY(-50%);font-size:10px;color:#a58c86}
.data-table thead th.table-numeric-col[data-sortable="1"]{padding-right:var(--cell-pad-x);padding-left:calc(var(--cell-pad-x) + 15px)}
.data-table thead th.table-numeric-col[data-sortable="1"]::after{right:auto;left:6px}
.data-table thead th[aria-sort="ascending"]::after{content:"▲";color:var(--bull)}
.data-table thead th[aria-sort="descending"]::after{content:"▼";color:var(--bull)}
.data-table thead th[data-sortable="1"]:hover{color:var(--bull-dark);background:#fff0ed}
.data-table thead th[data-sortable="1"]:focus-visible{outline:2px solid var(--bull);outline-offset:-3px}
.data-table .compact-select-col{width:38px;min-width:38px;max-width:38px;padding-inline:7px;text-align:center}
.data-table .compact-select-col input[type="checkbox"]{width:16px;height:16px;margin:0}
.data-table .compact-code-col{width:84px;min-width:84px}
.data-table .compact-name-col{min-width:118px;max-width:160px}
.data-table .type-late-col{min-width:68px;color:#6f6663}
.data-table .freeze-code{position:sticky;left:0;z-index:4;background:#fff}
.data-table .freeze-name{position:sticky;left:var(--freeze-code-width,84px);z-index:4;background:#fff;box-shadow:8px 0 10px -10px rgba(50,20,18,.48)}
.data-table thead th.freeze-code,.data-table thead th.freeze-name{z-index:10;background:#fbf7f6}
.data-table.table-freeze-code-only .freeze-name{position:static;box-shadow:none}
.data-table tbody tr:hover td{background:#fff9f8}
.data-table tfoot th,.data-table tfoot td{background:#fbf7f6;font-weight:900;border-top:1px solid #dfcfcc}
.data-table input,.data-table select,.data-table textarea{max-width:100%}
.portfolio-summary{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px;margin:0 0 16px}
.portfolio-summary .stat-card strong.up,.portfolio-summary .stat-card strong.down{font-size:25px}
.table-note{margin-top:10px;color:var(--muted);font-size:12px;line-height:1.75}
.field-tip{display:block;margin-top:4px;color:#91827e;font-size:11px;font-weight:400;line-height:1.48}
.beginner-guide{margin:0 0 14px;padding:11px 13px;border:1px solid #efd8d3;border-radius:10px;background:#fff8f6;color:#6f5752;font-size:12px;line-height:1.7}
.beginner-guide strong{color:var(--bull-dark)}
.sort-tip{margin:6px 0 9px;color:#8e7e7a;font-size:11px;line-height:1.5}
.table-view-tools{display:none;align-items:center;justify-content:space-between;gap:8px;padding:7px 10px;border-bottom:1px solid var(--line);background:#fbf7f6}
.table-view-tools.is-zoomed{display:flex}
.table-view-hint{font-size:11px;color:var(--muted)}
.table-view-buttons{display:flex;align-items:center;gap:5px;flex-shrink:0}
.table-view-buttons button{min-width:34px;min-height:34px;padding:4px 8px;border:1px solid #ddc9c5;border-radius:6px;background:#fff;color:var(--bull-dark);font-weight:800}
.table-view-buttons button:disabled{opacity:.4;cursor:default}
.table-view-buttons output{min-width:38px;text-align:center;font-variant-numeric:tabular-nums;font-size:11px}
.table-view-buttons button:focus-visible{outline:2px solid var(--bull)}
@media(max-width:900px){
  .data-table{--cell-pad-x:8px;--cell-pad-y:8px;font-size:12px}
  .data-table th,.data-table td{min-width:66px}
  .data-table .compact-select-col{width:34px;min-width:34px;max-width:34px;padding-inline:5px}
  .data-table .compact-code-col{width:74px;min-width:74px}
  .data-table .compact-name-col{min-width:98px;max-width:126px}
  .data-table .type-late-col{min-width:58px}
}
