/* 인사이트 > SMELT 표 */
.sm-bar{display:flex;flex-wrap:wrap;align-items:center;gap:10px;margin:0 0 12px}
.sm-grades{display:flex;gap:6px}
.sm-grades button,.sm-reset{padding:8px 14px;border:1px solid #dce5db;border-radius:999px;background:#fff;color:#356146;font:inherit;font-size:14px;cursor:pointer}
.sm-grades button.on{background:#dcebdc;color:#197d4f;border-color:#197d4f;font-weight:700}
.sm-q{padding:8px 12px;border:1px solid #dce5db;border-radius:999px;background:#fff;color:inherit;font:inherit;font-size:14px;min-width:0}
.sm-q{width:190px}
.sm-wrap{overflow:auto;overscroll-behavior:contain;max-height:calc(100vh - var(--page-header-height,69px) - 190px);min-height:240px;border:1px solid #dce5db;border-radius:14px;background:var(--card,#fff)}
.sm-table{border-collapse:separate;border-spacing:0;width:100%;font-size:14px;text-align:center}
.sm-table th,.sm-table td{padding:8px 7px;white-space:nowrap;text-align:center;border-bottom:1px solid #edf0ec}
.sm-table thead th{position:sticky;top:0;z-index:2;background:#f4f1e9;color:#2b3a31;font-weight:700;user-select:none}
.sm-sortable{cursor:pointer}.sm-sortable:hover{background:#e9e5d8!important}
.sm-sortable i{display:inline-block;width:10px;margin-left:4px;font-style:normal;color:#9aa59d}
.sm-sortable i::before{content:'↕'}.sm-on i::before{content:'↑';color:#197d4f}.sm-desc i::before{content:'↓'}
.sm-table tbody tr:hover td{background:#f6f9f4}
.sm-logo{width:44px}.sm-logo img,.sm-logo span{display:inline-grid;place-items:center;width:26px;height:26px;border-radius:50%;object-fit:contain;background:#eef2ec;color:#356146;font-size:12px;font-weight:700;vertical-align:middle}
.sm-ticker{font-weight:700}
.sm-up{color:#df5159}.sm-down{color:#3976dc}
/* 평가 열: 연한 초록 음영 + 진한 초록 테두리 */
.sm-table td.sm-eval,.sm-table th.sm-eval{background:#d9efd6;font-weight:800;color:#145c38;}
.sm-table thead th.sm-eval{background:#c6e6c2}
.sm-table tbody tr:hover td.sm-eval{background:#cbe9c7}
.sm-empty{padding:40px!important;color:#7b8780}
html[data-theme=dark] .sm-grades button,html[data-theme=dark] .sm-reset,html[data-theme=dark] .sm-q,html[data-theme=dark] .sm-dd-btn{border-color:#2f333b;background:#17191f;color:#c1c5cc}
html[data-theme=dark] .sm-grades button.on{background:#1f3a2c;color:#8fe0b5}
html[data-theme=dark] .sm-wrap{border-color:#2f333b;background:#17191f}
html[data-theme=dark] .sm-table th,html[data-theme=dark] .sm-table td{border-bottom-color:#262a31}
html[data-theme=dark] .sm-table thead th{background:#14161b;color:#e8ebe9}
html[data-theme=dark] .sm-table tbody tr:hover td{background:#1c1f26}
html[data-theme=dark] .sm-table td.sm-eval,html[data-theme=dark] .sm-table th.sm-eval{background:#1f3a2c;color:#8fe0b5}
html[data-theme=dark] .sm-table thead th.sm-eval{background:#254a37}
html[data-theme=dark] .sm-logo img,html[data-theme=dark] .sm-logo span{background:#fff}
@media(max-width:780px){.sm-q{width:100%;flex:1 1 100%}.sm-dd{flex:1}.sm-table th,.sm-table td{padding:8px 9px;font-size:13px}
  .sm-table td:nth-child(2),.sm-table th:nth-child(2){position:sticky;left:0;z-index:1;background:var(--card,#fff)}.sm-table thead th:nth-child(2){z-index:3;background:#f4f1e9}}

/* 평가~모멘텀 7칸은 같은 너비 */
.sm-table th.sm-fix,.sm-table td.sm-fix{width:64px;min-width:64px;max-width:64px;padding-left:4px;padding-right:4px}
.sm-table thead th{line-height:1.3;font-size:13px}
.sm-name a{color:inherit;font-weight:600;text-decoration:none;border-bottom:1px solid transparent}
.sm-name a:hover{color:#197d4f;border-bottom-color:#197d4f}
html[data-theme=dark] .sm-name a:hover{color:#8fe0b5;border-bottom-color:#8fe0b5}
/* 비즈니스 선택: 사이트 알약 버튼 + 둥근 카드 목록 */
.sm-dd{position:relative}
.sm-dd-btn{display:flex;align-items:center;gap:8px;padding:8px 14px;border:1px solid #dce5db;border-radius:999px;background:#fff;color:#356146;font:inherit;font-size:14px;cursor:pointer}
.sm-dd-btn:hover,.sm-dd-btn[aria-expanded=true]{background:#edf4e9;border-color:#b9d2ba}
.sm-dd-btn i{width:7px;height:7px;border-right:2px solid currentColor;border-bottom:2px solid currentColor;transform:rotate(45deg) translateY(-2px)}
.sm-dd-list{position:absolute;z-index:20;top:calc(100% + 8px);right:0;display:grid;grid-template-columns:repeat(2,minmax(120px,1fr));gap:4px;width:max-content;max-width:min(92vw,340px);max-height:340px;overflow:auto;padding:8px;border:1px solid #dce5db;border-radius:16px;background:#fff;box-shadow:0 12px 32px #1f3a2c26}
.sm-dd-list[hidden]{display:none}
.sm-dd-list button{padding:8px 12px;border:0;border-radius:10px;background:transparent;color:#2b3a31;font:inherit;font-size:14px;text-align:left;cursor:pointer}
.sm-dd-list button:hover{background:#edf4e9}
.sm-dd-list button.on{background:#dcebdc;color:#197d4f;font-weight:700}
html[data-theme=dark] .sm-dd-btn:hover,html[data-theme=dark] .sm-dd-btn[aria-expanded=true]{background:#1f3a2c;border-color:#3f9a6a}
html[data-theme=dark] .sm-dd-list{border-color:#2f333b;background:#17191f;box-shadow:0 12px 32px #0008}
html[data-theme=dark] .sm-dd-list button{color:#c1c5cc}html[data-theme=dark] .sm-dd-list button:hover{background:#1c1f26}
html[data-theme=dark] .sm-dd-list button.on{background:#1f3a2c;color:#8fe0b5}
@media(max-width:780px){.sm-dd-list{grid-template-columns:1fr 1fr}}

/* 정렬 화살표 제거: 가운데 정렬이 흐트러지지 않게. 정렬 중인 열은 글자색으로만 표시 */
.sm-sortable i{display:none}
.sm-sortable.sm-on{color:#197d4f}
html[data-theme=dark] .sm-sortable.sm-on{color:#8fe0b5}

/* 본문 폭은 다른 탭과 같게(insight-tabs.css) 두고, 표가 넓으면 좌우로 스크롤한다 */
@media(min-width:781px){
  .sm-table{table-layout:auto;font-size:13px}
  .sm-table th,.sm-table td{padding:8px 5px}
  .sm-table th.sm-fix,.sm-table td.sm-fix{width:60px;min-width:60px;max-width:60px;padding-left:2px;padding-right:2px}
  .sm-table td:nth-child(3){max-width:100px;overflow:hidden;text-overflow:ellipsis}
  .sm-logo{width:36px}
}
/* 폭이 좁아지면 표가 잘리지 않게 좌우 스크롤 */
.sm-wrap{overflow-x:auto}

/* 종합 열 테두리: 열 전체를 덮는 상자 하나(JS가 위치를 잡는다) */
.sm-wrap{position:relative}
.sm-box{display:none}  /* 종합 열 테두리 선은 쓰지 않는다(2026-11-03) */

/* Top Pick 요약 */
.sm-top{margin:0 0 14px}
.sm-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 12px}
.sm-head h2{margin:0;font-size:19px;font-weight:800;letter-spacing:-.3px;color:var(--green,#2f7a52)}
.sm-stats{display:grid;grid-template-columns:repeat(4,1fr);gap:10px}
.sm-stat{display:flex;flex-direction:column;gap:2px;padding:12px 16px;border:1px solid #dce5db;border-radius:14px;background:var(--card,#fff)}
.sm-stat small{font-size:13px;color:#6b7a70}
.sm-stat b{font-size:24px;line-height:1.25;letter-spacing:-.5px;font-variant-numeric:tabular-nums}
.sm-stat em{font-style:normal;font-size:12px;color:#8a978f}
.sm-picks{display:flex;flex-wrap:wrap;align-items:center;gap:6px;margin:0 0 10px}
.sm-picks span{font-size:13px;font-weight:700;color:#197d4f;margin-right:4px}
.sm-picks a{padding:3px 10px;border:1px solid #dce5db;border-radius:999px;background:#fff;color:#356146;font-size:13px;font-weight:600;text-decoration:none}
.sm-picks a:hover{border-color:#197d4f;background:#dcebdc}
.sm-picks a.sm-hold{border-style:dashed;color:#9a7a1f;border-color:#d8c27a}
html[data-theme=dark] .sm-stat,html[data-theme=dark] .sm-picks a{border-color:#2f333b;background:#17191f}
html[data-theme=dark] .sm-stat small,html[data-theme=dark] .sm-stat em{color:#9aa3a0}
html[data-theme=dark] .sm-picks a{color:#a9d6bb}
@media(max-width:780px){.sm-stats{grid-template-columns:1fr 1fr;gap:8px}.sm-stat{padding:10px 12px}.sm-stat b{font-size:20px}}
.sm-more{flex:none;padding:5px 14px;border:1px solid #197d4f;border-radius:999px;background:#dcebdc;color:#197d4f;font:inherit;font-size:13px;font-weight:700;cursor:pointer}
.sm-detail{margin-top:14px}
.sm-fund{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap;margin:0 0 12px;padding:14px 20px;border:1px solid #bcd9c6;border-radius:14px;background:linear-gradient(135deg,#eaf5ee,#f3f7ff)}
.sm-fund small{display:block;font-size:12px;color:#4f6a58;margin-bottom:2px}
.sm-fund b{font-size:28px;letter-spacing:-.6px;font-variant-numeric:tabular-nums}
.sm-fund-r{display:flex;gap:28px;text-align:center}
.sm-fund-r strong{font-size:18px;font-variant-numeric:tabular-nums}
.sm-tabs{display:flex;gap:6px;margin:0 0 10px}
.sm-tabs button{padding:6px 14px;border:1px solid #dce5db;border-radius:999px;background:#fff;color:#356146;font:inherit;font-size:13px;cursor:pointer}
.sm-tabs button[aria-pressed=true]{background:#3a7d55;border-color:#3a7d55;color:#fff;font-weight:700}
.sm-tabs i{font-style:normal;font-size:11px;opacity:.8;margin-left:2px}
.sm-scroll{overflow-x:auto;max-width:100%;width:fit-content;margin:0 auto;border:1px solid #e5e9e0;border-radius:14px;background:#fff}
.sm-dt{width:auto;margin:0;border-collapse:separate;border-spacing:0;font-size:13px;font-variant-numeric:tabular-nums}
.sm-dt th,.sm-dt td{padding:10px 12px;text-align:center;white-space:nowrap;border-bottom:1px solid #e5e9e0}
.sm-dt th{font-size:11px;font-weight:500;color:#738077;background:#fafbf8;padding:9px 8px}
.sm-dt tbody tr:last-child td{border-bottom:0}
.sm-dt tbody tr:hover td{background:#f6faf6}
.sm-dt .sm-nm{text-align:left;padding-left:14px;min-width:150px}
.sm-nm{display:flex;align-items:center;gap:9px}
.sm-dt td.sm-nm{display:table-cell}
.sm-dt td.sm-nm>img,.sm-dt td.sm-nm>span{display:inline-block;vertical-align:middle;margin-right:9px}
.sm-nm img,.sm-nm>span{width:26px;height:26px;border-radius:50%;object-fit:cover;background:#eef2ee;text-align:center;line-height:26px;font-size:12px;font-weight:700;color:#356146}
.sm-nm b{font-weight:600;vertical-align:middle}
.sm-dt .sm-why{text-align:left;color:#4f5f55;white-space:normal;min-width:220px}
.sm-gone td{opacity:.62}
.sm-pill{display:inline-block;padding:2px 9px;border-radius:999px;font-size:11px;font-weight:700;background:#eef2ee;color:#5d6b62}
.sm-pill.on{background:#dcebdc;color:#197d4f}.sm-pill.buy{background:#e3ecfb;color:#3566c4}.sm-pill.part{background:#fbf0d9;color:#9a7a1f}.sm-pill.off{background:#f1e4e4;color:#a24b4b}
.sm-side{display:inline-block;min-width:34px;padding:2px 8px;border-radius:6px;font-size:11px;font-weight:700}
.sm-side.buy{background:#fde8e9;color:#df5159}.sm-side.sell{background:#e3ecfb;color:#3976dc}
.sm-note{margin:10px 2px 0;font-size:12px;line-height:1.55;color:#8a978f}
html[data-theme=dark] .sm-fund{border-color:#2f4a3a;background:linear-gradient(135deg,#17261e,#1a2030)}
html[data-theme=dark] .sm-fund small{color:#9ab3a2}
html[data-theme=dark] .sm-tabs button{border-color:#2f333b;background:#17191f;color:#a9d6bb}
html[data-theme=dark] .sm-tabs button[aria-pressed=true]{background:#3a7d55;color:#fff}
html[data-theme=dark] .sm-scroll{border-color:#2f333b;background:#17191f}
html[data-theme=dark] .sm-dt th{background:#1c1f26;color:#9aa3a0;border-color:#2f333b}
html[data-theme=dark] .sm-dt td{border-color:#2f333b}
html[data-theme=dark] .sm-dt tbody tr:hover td{background:#1d2128}
html[data-theme=dark] .sm-why{color:#b5beb9}
html[data-theme=dark] .sm-nm img,html[data-theme=dark] .sm-nm>span{background:#2a2f37;color:#a9d6bb}
@media(max-width:780px){.sm-fund{padding:12px 14px}.sm-fund b{font-size:22px}.sm-fund-r{gap:16px;width:100%;justify-content:space-between}.sm-fund-r strong{font-size:15px}.sm-dt{font-size:12px}.sm-dt th,.sm-dt td{padding:9px 7px}}
@media(max-width:780px){.sm-head h2{font-size:17px}}
.sm-split{display:grid;grid-template-columns:minmax(0,1.55fr) minmax(0,1fr);gap:12px;align-items:start}
.sm-col h3{margin:0 0 8px 2px;font-size:15px;font-weight:700;color:#2f5e45}
.sm-col h3 i{font-style:normal;font-size:12px;font-weight:600;color:#738077;margin-left:4px}
.sm-split .sm-scroll{width:auto}
.sm-split .sm-dt th,.sm-split .sm-dt td{padding:10px 8px}
.sm-split .sm-dt .sm-nm{min-width:128px;padding-left:12px}
.sm-disclaimer{margin:14px 0 0;padding:12px 16px;border:1px solid #e5e9e0;border-radius:12px;background:#fafbf8;font-size:12px;line-height:1.6;color:#6b786f}
.sm-dis-t{margin:0 0 4px;font-weight:700;color:#4f5f55;font-size:12.5px}
.sm-disclaimer ul{margin:0;padding-left:16px}
html[data-theme=dark] .sm-col h3{color:#a9d6bb}
html[data-theme=dark] .sm-disclaimer{border-color:#2f333b;background:#1c1f26;color:#9aa3a0}
html[data-theme=dark] .sm-dis-t{color:#c3cbc6}
@media(max-width:1100px){.sm-split{grid-template-columns:minmax(0,1fr)}}
.sm-col{min-width:0}
.sm-split .sm-dt{width:100%}
.sm-logs{overflow-y:auto;overscroll-behavior:contain}
.sm-logs thead th{position:sticky;top:0;z-index:1}
/* 매매 이력: 머리글 34px + 10행(행당 42px)까지만 보이고 그 아래는 안에서 스크롤 */
.sm-logs{max-height:456px}
.sm-logs thead th{height:34px;box-sizing:border-box;padding-top:0;padding-bottom:0}
.sm-logs tbody td{height:42px;box-sizing:border-box;padding-top:0;padding-bottom:0}
/* AI 자동매매 탭의 가상투자(보유 현황·매매 이력)는 테스트 중이라 반투명 블러로 잘 안 보이게 한다 */
.sm-locked{filter:blur(7px);opacity:.55;pointer-events:none;user-select:none}
/* 모바일 필터 줄: 1행 = 전체·S~D 버튼 + 오른쪽 끝 초기화, 2행 = 검색창 + 모든 비즈니스 */
@media(max-width:780px){
  .sm-bar{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;align-items:center}
  .sm-grades{grid-column:1;grid-row:1;min-width:0;gap:4px}
  .sm-grades button{padding:7px 0;flex:1 1 0;min-width:0;text-align:center;font-size:13px}
  .sm-reset{grid-column:2;grid-row:1;padding:7px 12px;font-size:13px}
  .sm-q{grid-column:1;grid-row:2;width:100%;min-width:0;flex:none}
  .sm-dd{grid-column:2;grid-row:2;flex:none}
  .sm-dd-btn{white-space:nowrap}
}
