/* ── 통계 대시보드 ─────────────────────────────────── */

/* 링크형 탭 (board.css의 .pe-tab은 button 기준) */
.pe-tab-link { text-decoration: none; display: inline-block; }
.pe-tab-link:hover { text-decoration: none; }

/* 세그먼트 버튼 (대상 선택) */
.st-seg { display: inline-flex; border: 1px solid #cdd4dc; border-radius: 8px; overflow: hidden; }
.st-seg-btn {
  border: 0; background: #fff; color: #5a6475;
  font-size: 13px; padding: 5px 14px; cursor: pointer;
}
.st-seg-btn + .st-seg-btn { border-left: 1px solid #e4e8ee; }
.st-seg-btn:hover { background: #f5f8ff; }
.st-seg-btn.active { background: #1a6eff; color: #fff; font-weight: 500; }

/* 요약 타일 */
.st-tile {
  background: #fff; border: 1px solid #dde2ea; border-radius: 10px;
  padding: 14px 18px;
}
.st-tile-label { font-size: 12.5px; color: #8a95a3; }
.st-tile-value { font-size: 28px; font-weight: 700; color: #1c2333; line-height: 1.25; }
.st-tile-sub   { font-size: 12px; color: #9aa3b0; min-height: 18px; }

/* 카드 */
.st-card {
  background: #fff; border: 1px solid #dde2ea; border-radius: 10px;
  padding: 16px 18px;
}
.st-card-title { font-size: 14.5px; font-weight: 700; color: #1c2333; margin-bottom: 2px; }
.st-card-note  { font-weight: 400; font-size: 12px; color: #9aa3b0; margin-left: 4px; }
.st-card-hint  { font-size: 12px; color: #9aa3b0; margin-bottom: 10px; }

/* 가로 막대 목록 (표 + 막대 하이브리드) */
.st-bars { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; }
.st-bar-row {
  display: grid; grid-template-columns: 118px 1fr 86px;
  align-items: center; gap: 10px;
  padding: 2px 4px; border-radius: 6px;
}
.st-bar-row.clickable { cursor: pointer; }
.st-bar-row.clickable:hover { background: #f5f8ff; }
.st-bar-label { font-size: 12.5px; color: #5a6475; text-align: right; white-space: nowrap;
                overflow: hidden; text-overflow: ellipsis; }
.st-bar-track { background: #eef0f4; border-radius: 4px; height: 14px; position: relative; }
.st-bar-fill  { background: #1a6eff; border-radius: 4px 4px 4px 4px; height: 100%;
                min-width: 2px; }
.st-bar-fill.dec  { background: #d64545; }
.st-bar-fill.flat { background: #c6ccd6; }
.st-bar-value { font-size: 12px; color: #1c2333; white-space: nowrap; }
.st-bar-value .ab { color: #5a6475; }
.st-up   { color: #0d7042; font-weight: 700; }
.st-down { color: #c0392b; font-weight: 700; }
.st-flat { color: #9aa3b0; }
.st-bars-scroll { max-height: 330px; overflow-y: auto; padding-right: 4px; }

/* 증감 표는 값 영역이 넓다 */
.st-bar-row { grid-template-columns: 108px 1fr 148px; }

/* 월별 세로 막대 */
.st-months { display: flex; align-items: flex-end; gap: 4px; height: 150px; margin-top: 12px; }
.st-month-col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px;
                min-width: 0; }
.st-month-bar { width: 100%; max-width: 34px; background: #1a6eff; border-radius: 4px 4px 0 0;
                min-height: 2px; }
.st-month-bar:hover { background: #1257d6; }
.st-month-label { font-size: 10.5px; color: #9aa3b0; white-space: nowrap; }

/* 툴팁 */
.st-tooltip {
  position: fixed; z-index: 50; pointer-events: none;
  background: #1c2333; color: #fff; font-size: 12px;
  padding: 5px 9px; border-radius: 6px; white-space: nowrap;
}

/* 로딩 */
.st-loading {
  position: fixed; inset: 0; display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.55); font-size: 13.5px; color: #445;
}
