/* 증권관리(관심종목) 전용 스타일. style.css 전역 table 규칙에 눌리지 않도록 .stk-table 로 한정. */
.stk-wrap {
    font-size: 16px; margin: 0 auto; padding: 14px 16px 40px;
    /* 표가 가로 스크롤 없이 들어갈 만큼만 폭을 쓴다(표 내용 폭에 맞춤). 화면보다 넓어지면 화면 폭까지 */
    width: fit-content; min-width: 1180px; max-width: 100%; box-sizing: border-box;
}

/* 카테고리(대상) 탭 */
.stk-tabs {
    display: flex; flex-wrap: wrap; align-items: center; gap: 6px;
    padding-bottom: 10px; border-bottom: 2px solid #dbe4f0; margin-bottom: 14px;
}
.stk-tab {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 6px 12px; border: 1px solid #d6deea; border-radius: 16px;
    background: #f2f6fb; color: #33415c; font-size: 15px; text-decoration: none; white-space: nowrap;
}
.stk-tab:hover { background: #e4edf8; }
.stk-tab.active { background: #2f6fb0; border-color: #2f6fb0; color: #fff; font-weight: 600; }
.stk-tab-cnt {
    display: inline-block; min-width: 18px; padding: 0 5px; text-align: center;
    font-size: 13px; line-height: 17px; border-radius: 9px; background: rgba(0,0,0,.08);
}
.stk-tab.active .stk-tab-cnt { background: rgba(255,255,255,.28); }
.stk-empty-tab { color: #8a93a6; font-size: 15px; }
.stk-manage-btn {
    padding: 5px 12px; font-size: 15px; cursor: pointer;
    border: 1px solid #d6deea; background: #fff; color: #33415c; border-radius: 8px;
}
.stk-manage-btn:hover { background: #f2f6fb; }
.stk-refresh-note { margin-left: auto; font-size: 14px; color: #8a93a6; white-space: nowrap; }
.stk-refresh-note .stk-dn-date { color: #1b66c9; font-weight: 700; }   /* 년월일: 파랑·굵게 */
.stk-refresh-note .stk-dn-time { color: #d4332e; font-weight: 700; }   /* 시분초: 빨강·굵게 */
.stk-sell-head { display: flex; align-items: center; gap: 12px; }   /* 매도 주문 창: 제목 왼쪽, 현재 시각 오른쪽 */
.stk-sell-head .stk-refresh-note { font-size: 13px; font-weight: 400; }

/* 종목(재고) 표 */
/* 표 상단 굵은 선 (문서관리 목록과 동일한 느낌) */
.stk-table-box { overflow-x: auto; border-top: 2px solid #334a66; }
.stk-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.stk-table th, .stk-table td {
    padding: 8px 10px; border-bottom: 1px solid #edf1f6; text-align: right; white-space: nowrap;
}
.stk-table thead th {
    background: #f6f9fc; color: #51607a; font-weight: 600;
    border-bottom: 2px solid #dbe4f0; position: sticky; top: 0;
}
.stk-table .col-name { text-align: left; }
.stk-table tbody tr.stk-row:nth-child(odd) { background: #f3f4f6; }   /* 홀수행: 밝은 회색 */
.stk-table tbody tr.stk-row:nth-child(even) { background: #fff; }      /* 짝수행: 흰색 */
.stk-table tbody tr.stk-row:hover { background: #ffecd6; }             /* 마우스 올린 행: 옅은 주황 */
.stk-table tbody tr.stk-row.dragging { background: #eaf2fb; }
.stk-table tbody tr.stk-row:last-child td { border-bottom: 1px solid #334a66; }
.stk-name { color: #1f2d3d; font-weight: 600; text-decoration: none; }
.stk-name:hover { text-decoration: underline; }
.stk-code { display: inline-block; margin-left: 6px; color: #9aa4b5; font-size: 13px; }

/* 등락 색상: 상승 빨강 / 하락 파랑 (국내 관례) */
.dir-RISING, .dir-UP { color: #d4332e; }
.dir-FALLING, .dir-DOWN { color: #1b66c9; }
.dir-STEADY, .dir-NONE { color: #51607a; }

/* 선택 삭제 / 카테고리 삭제 툴바 + 체크박스 열 */
/* 삭제 버튼 묶음을 오른쪽 끝(표의 우측 가장자리)에 맞춤 */
.stk-toolbar { display: flex; align-items: center; justify-content: flex-end; gap: 8px; margin-bottom: 8px; }
.stk-inline-form { margin: 0; display: inline-flex; }
.stk-bulk-del {
    padding: 6px 14px; border: 1px solid #d4332e; background: #d4332e; color: #fff;
    border-radius: 8px; font-size: 15px; cursor: pointer;
}
.stk-bulk-del:hover { background: #b62a26; }
.stk-bulk-del:disabled { opacity: .45; cursor: default; }
.stk-cat-del {
    padding: 6px 14px; border: 1px solid #d4332e; background: #fff; color: #d4332e;
    border-radius: 8px; font-size: 15px; cursor: pointer;
}
.stk-cat-del:hover { background: #fdecec; }
.stk-selall {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: 15px; color: #33415c; cursor: pointer; user-select: none;
}
.stk-selall input { width: 15px; height: 15px; cursor: pointer; }
.stk-refresh-btn {
    padding: 6px 12px; border: 1px solid #2f6fb0; background: #fff; color: #2f6fb0;
    border-radius: 8px; font-size: 15px; cursor: pointer;
}
.stk-refresh-btn:hover { background: #eaf2fb; }
.stk-regen-btn {
    padding: 6px 12px; border: 1px solid #c9820b; background: #fff; color: #b5740a;
    border-radius: 8px; font-size: 15px; cursor: pointer;
}
.stk-regen-btn:hover { background: #fdf4e3; }
.stk-regen-btn:disabled { opacity: 0.6; cursor: default; }
.stk-ref-ico { display: inline-block; }
.stk-ref-ico.spin { animation: stk-spin 0.7s linear infinite; }
@keyframes stk-spin { from { transform: rotate(0); } to { transform: rotate(360deg); } }
/* 삭제 버튼 묶음은 오른쪽 끝으로 */
.stk-toolbar form.stk-inline-form:first-of-type { margin-left: 0; }
/* 숨기기/보이기 토글: 선택 삭제 바로 앞, 오른쪽 묶음의 시작(auto 여백) */
.stk-ptotal { margin-left: 14px; font-size: 14px; color: #51607a; white-space: nowrap; }   /* 종목 N개 평가손익 합계(일별 화면 날짜 행과 같은 스타일) */
.stk-ptot-gap { margin-left: 14px; }
.stk-ptotal b { font-weight: 700; }
.stk-hide-btn {
    margin-left: auto; padding: 6px 14px; border: 1px solid #51607a; background: #fff; color: #33415c;
    border-radius: 8px; font-size: 15px; cursor: pointer;
}
.stk-hide-btn:hover { background: #eef1f5; }
.stk-hide-btn.is-hidden { background: #51607a; color: #fff; }
/* 행 숨김 중에는 보이는 행끼리 줄무늬를 JS 가 다시 매김(nth-child 는 숨은 행도 세므로) */
.stk-table tbody.zebra-js tr.stk-row.z1 { background: #f3f4f6; }
.stk-table tbody.zebra-js tr.stk-row.z0 { background: #fff; }
.stk-table tbody.zebra-js tr.stk-row:hover { background: #ffecd6; }
.stk-table th.col-chk, .stk-table td.col-chk { width: 34px; text-align: center; }
.stk-chk, #stkChkAll { width: 15px; height: 15px; cursor: pointer; }
/* 드래그 정렬 핸들/열 */
.stk-table th.col-drag, .stk-table td.col-drag {
    width: 26px; text-align: center; padding-left: 4px; padding-right: 0;
}
.stk-drag { cursor: grab; color: #9aa6b4; user-select: none; font-size: 16px; line-height: 1; }
.stk-drag:active { cursor: grabbing; }
.stk-row.dragging { opacity: .45; background: #eaf2fb; }
.stk-empty-row { text-align: center; color: #8a93a6; padding: 26px 0; }
/* 제목 도움말(?) 원문자 — 마우스 올리면 공식 툴팁 */
.stk-help {
    display: inline-block; width: 15px; height: 15px; line-height: 15px; text-align: center;
    border-radius: 50%; background: #9aa6b4; color: #fff; font-size: 12px; font-weight: 700;
    cursor: default; vertical-align: middle;
}
.stk-help:hover { background: #2f6fb0; }
/* 마우스 위에 뜨는 툴팁(body 에 그려 클리핑 없음) */
.stk-tip-float {
    position: absolute; z-index: 2000; background: #333a45; color: #fff;
    font-size: 13px; font-weight: 400; padding: 5px 9px; border-radius: 6px;
    white-space: pre; line-height: 1.5; box-shadow: 0 4px 12px rgba(0,0,0,.25); pointer-events: none;   /* pre: data-tip 의 줄바꿈(&#10;)을 항목별 줄로 표시 */
}
/* 평균단가/보유수량 수작업 입력칸 */
.stk-table td.col-hold { padding: 4px 6px; }
.stk-hold-wrap { position: relative; display: inline-block; width: 100%; max-width: 110px; }
.stk-hold {
    width: 100%; padding: 4px 18px 4px 7px; text-align: right;
    border: 1px solid #d6deea; border-radius: 6px; font-size: 14px; color: #1f2d3d;
}
.stk-hold:focus { outline: none; border-color: #2f6fb0; box-shadow: 0 0 0 2px rgba(47,111,176,.15); }
/* 평균단가 vs 현재가 비교 색상 → 종목명에 적용 (평균>현재 파랑, 평균<현재 빨강) */
.stk-name.avg-high { color: #1b66c9; }
.stk-name.avg-low  { color: #d4332e; }
.stk-hold-clear {
    position: absolute; right: 3px; top: 50%; transform: translateY(-50%);
    display: none; border: none; background: none; cursor: pointer;
    color: #b0b7c3; font-size: 16px; line-height: 1; padding: 0 2px;
}
.stk-hold-wrap:focus-within .stk-hold-clear { display: block; }
.stk-hold-clear:hover { color: #d4332e; }

/* 관리 패널 */
.stk-manage {
    margin-top: 18px; padding: 14px 16px; border: 1px solid #e1e8f1; border-radius: 10px;
    background: #fafcff; display: flex; flex-wrap: wrap; gap: 22px;
}
.stk-manage-sec h4 { margin: 0 0 8px; font-size: 15px; color: #33415c; }
.stk-manage-sec h4 small { color: #8a93a6; font-weight: 400; }
.stk-form { display: flex; gap: 6px; align-items: center; }
.stk-form input[type=text] {
    padding: 6px 9px; border: 1px solid #cfd8e6; border-radius: 7px; font-size: 15px;
}
.stk-form button {
    padding: 6px 14px; border: 1px solid #2f6fb0; background: #2f6fb0; color: #fff;
    border-radius: 7px; font-size: 15px; cursor: pointer;
}
.stk-form button:hover { background: #255d96; }
.stk-form button.stk-danger { border-color: #d4332e; background: #d4332e; }
.stk-form button.stk-danger:hover { background: #b62a26; }

@media (max-width: 720px) {
    .stk-sec-h { flex-wrap: wrap; row-gap: 4px; }
    /* ===== 폰 반응형 (PC 레이아웃 불변): 문서관리와 같은 720px 기준 ===== */
    .stk-wrap { padding: 10px 10px 30px; min-width: 0; width: 100%; }
    .stk-table th, .stk-table td { padding: 7px 7px; }
    .stk-table th { white-space: nowrap; }
    .stk-table td.col-hold { min-width: 84px; }                 /* 표는 .stk-table-box 안에서 가로 스크롤 */

    /* 툴바: 줄바꿈 허용(버튼이 세로로 찌그러지지 않게), 합계는 한 줄을 차지 */
    .stk-toolbar { flex-wrap: wrap; justify-content: flex-start; gap: 6px; }
    .stk-toolbar button { white-space: nowrap; }
    .stk-ptotal { flex-basis: 100%; margin-left: 0; white-space: normal; order: 5; }
    .stk-ptot-gap { margin-left: 10px; }
    .stk-toolbar .stk-hide-btn, .stk-toolbar .stk-inline-form { order: 6; }
    .stk-hide-btn { margin-left: 0; }

    /* 카테고리/종목 추가 폼: 입력칸이 화면을 넘지 않게 줄바꿈 */
    .stk-manage { gap: 14px; }
    .stk-manage-sec { width: 100%; }
    .stk-form { flex-wrap: wrap; }
    .stk-form input[type=text] { flex: 1 1 140px; min-width: 0; }

    /* 일별 결과조회: 조건 박스 */
    .stk-dfilter { padding: 10px; gap: 8px 10px; }
    .stk-dfilter label { flex-wrap: wrap; }
    .stk-dfilter input[type=date], .stk-dfilter select { min-width: 0; }
    .stk-dfilter input[type=date] { width: 132px; padding: 5px 6px; font-size: 14px; }
    .stk-dquick { flex-wrap: wrap; }

    /* 매도 주문 창: 제목줄/입력/표 축소 */
    .stk-sell-head { flex-wrap: wrap; gap: 2px 12px; padding: 12px 14px; }
    .stk-sell-sum { gap: 8px 16px; padding: 10px 14px; }
    .stk-sell-form, .stk-sell-hint { padding-left: 14px; padding-right: 14px; }
    .stk-sell-form { gap: 8px 10px; }
    .stk-sell-form input { width: 96px; }
    .stk-sell-table th, .stk-sell-table td { padding: 7px 5px; font-size: 13px; }
    .stk-sell-table th:first-child, .stk-sell-table td:first-child { padding-left: 14px; }
    .stk-sell-trades-box { max-height: 450px; overflow: auto; }
    .stk-sell-fp { width: 78px; }
}

/* 컬럼 표시 설정 다이얼로그 */
.stk-modal-overlay {
    position: fixed; inset: 0; background: rgba(20,30,45,.45);
    display: flex; align-items: center; justify-content: center; z-index: 1000;
}
.stk-modal-overlay[hidden] { display: none; }
.stk-modal {
    background: #fff; border-radius: 12px; width: 432px; max-width: calc(100vw - 32px);   /* 360px 의 +20% */
    box-shadow: 0 12px 40px rgba(0,0,0,.25); overflow: hidden;
    display: flex; flex-direction: column; max-height: calc(100vh - 24px);
}
.stk-modal-head {
    padding: 14px 18px; font-size: 17px; font-weight: 700; color: #1f2d3d;
    border-bottom: 1px solid #e8edf3;
}
.stk-modal-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.stk-modal-table th, .stk-modal-table td {
    padding: 9px 18px; text-align: left; border-bottom: 1px solid #f0f3f7;
}
.stk-modal-table th { background: #f6f9fc; color: #51607a; font-weight: 600; }
.stk-modal-table .col-vis { text-align: center; width: 92px; }
.stk-modal-table .col-drag2 { width: 26px; text-align: center; padding-left: 10px; padding-right: 0; }
.stk-modal-table tr.dragging { opacity: .5; background: #eaf2fb; }
.stk-modal-table tbody tr:last-child td { border-bottom: 1px solid #334a66; }
.stk-modal-table .col-chk2 { width: 34px; text-align: center; }
.stk-col-chk { width: 15px; height: 15px; cursor: pointer; }
.stk-col-state { font-size: 14px; font-weight: 600; }
.stk-col-state.is-shown  { color: #2f6fb0; }
.stk-col-state.is-hidden { color: #b0b7c3; }
/* 다이얼로그 상단: 카테고리명 변경 + 보이기/숨기기 */
.stk-sec-title { padding: 12px 18px 0; font-size: 14px; font-weight: 700; color: #51607a; }
.stk-sec-ico { margin-right: 6px; }
.stk-sec-title-cols { padding-top: 12px; margin-top: 4px; border-top: 1px solid #eef2f6; }
.stk-cat-rename { display: flex; align-items: center; gap: 8px; padding: 6px 18px 8px; }
.stk-cat-rename input {
    flex: 1; padding: 6px 9px; border: 1px solid #cfd8e6; border-radius: 7px; font-size: 15px;
    background: #e8f1fc;   /* 옅은 파란색 */
}
.stk-col-actions {
    display: flex; align-items: center; gap: 8px;
    padding: 8px 18px 10px; border-bottom: 1px solid #eef2f6;
}
.stk-col-selall {
    display: inline-flex; align-items: center; gap: 5px; font-size: 15px;
    color: #33415c; cursor: pointer; margin-right: auto;
}
.stk-col-selall input { width: 15px; height: 15px; cursor: pointer; }
.stk-col-actbtns { display: inline-flex; gap: 6px; }
.stk-col-toggle {
    padding: 5px 14px; font-size: 14px; border-radius: 7px; cursor: pointer;
    border: 1px solid #c0c7d2; background: #fff; color: #51607a;   /* 흰색 토글 버튼: 숨기기 ↔ 보이기 */
}
.stk-col-toggle:hover { background: #f2f6fb; }
.stk-modal-foot {
    display: flex; justify-content: flex-end; gap: 8px;
    padding: 12px 18px; border-top: 1px solid #e8edf3;
}
.stk-modal-cancel {
    padding: 7px 16px; border: 1px solid #d6deea; background: #fff; color: #33415c;
    border-radius: 8px; cursor: pointer;
}
.stk-modal-save {
    padding: 7px 16px; border: 1px solid #2f6fb0; background: #2f6fb0; color: #fff;
    border-radius: 8px; cursor: pointer;
}
.stk-modal-save:hover { background: #255d96; }

/* 컬럼 설정 다이얼로그: 본문 스크롤, 목록은 10행 높이(JS가 계산)로 제한하고 머리글 고정 */
.stk-modal-body { overflow-y: auto; min-height: 0; }
.stk-modal-foot { flex: 0 0 auto; }
.stk-modal-listbox { overflow-y: auto; }
.stk-modal-table thead th { position: sticky; top: 0; z-index: 1; }
.stk-modal-table tr[hidden] { display: none; }
.stk-col-count { font-size: 14px; color: #51607a; white-space: nowrap; }
/* 다이얼로그 하단 왼쪽(A): 숨김 컬럼도 표시 체크박스 */
.stk-col-incl {
    display: inline-flex; align-items: center; gap: 5px; margin-right: auto;
    font-size: 14px; color: #33415c; cursor: pointer; user-select: none;
}
.stk-col-incl input { width: 15px; height: 15px; cursor: pointer; }
/* 컬럼 설정 목록: 체크박스 뒤 번호(보이는 행 기준 1부터) */
.stk-modal-table .col-no { width: 44px; text-align: center; padding-left: 4px; padding-right: 4px; color: #51607a; font-variant-numeric: tabular-nums; }
.stk-modal-table td.col-no { color: #8a93a6; }

/* 종목코드 클릭 → 매도 주문 다이얼로그 */
.stk-code.js-sell { cursor: pointer; border-bottom: 1px dotted transparent; }
.stk-code.js-sell:hover { color: #2f6fb0; border-bottom-color: #2f6fb0; }
.stk-wbadge { margin-left: 5px; font-size: 13px; color: #c2570c; background: #fff1e3; border-radius: 9px; padding: 0 6px; white-space: nowrap; }
.stk-wbadge i { font-style: normal; }
.stk-wbadge.is-hit b { color: #1f6fd0; }       /* 희망 매도가 도달(체결 대기): 숫자 파랑 */
.stk-fbadge { margin-left: 5px; font-size: 13px; color: #1f6fd0; background: #e8f1fc; border-radius: 9px; padding: 0 6px; white-space: nowrap; }
.stk-fbadge i { font-style: normal; }
.stk-fbadge[hidden] { display: none; }
.stk-wbadge[hidden] { display: none; }
.stk-modal.stk-sell { width: 640px; }
.stk-sell-body { padding-bottom: 10px; }
.stk-sell-sum { display: flex; gap: 22px; flex-wrap: wrap; padding: 12px 18px; background: #f6f9fc; border-bottom: 1px solid #e8edf3; color: #51607a; font-size: 15px; }
.stk-sell-sum b { color: #1f2d3d; margin-left: 4px; }
.stk-sell-sec { padding-top: 12px; padding-bottom: 4px; }
.stk-sell-form { display: flex; align-items: center; gap: 12px; padding: 6px 18px 4px; flex-wrap: wrap; }
.stk-sell-form label { display: inline-flex; align-items: center; gap: 6px; font-size: 15px; color: #33415c; }
.stk-sell-form input { width: 110px; padding: 6px 9px; border: 1px solid #cfd8e6; border-radius: 7px; font-size: 15px; text-align: right; background: #e8f1fc; }
.stk-sell-hint { padding: 4px 18px 0; font-size: 13px; color: #7a8599; line-height: 1.5; }
.stk-sell-msg { margin: 6px 18px 0; font-size: 14px; min-height: 0; }
.stk-sell-msg:empty { display: none; }
.stk-sell-msg.is-ok { color: #1c7c3b; }
.stk-sell-msg.is-bad { color: #c0392b; font-weight: 600; }
.stk-sell-table { margin-top: 2px; }
.stk-sell-table th, .stk-sell-table td { padding: 7px 10px; font-size: 14px; }
.stk-sell-table td { text-align: right; }
.stk-sell-table th { text-align: right; }
.stk-sell-table th:first-child, .stk-sell-table td:first-child { text-align: left; padding-left: 18px; }
.stk-sell-empty { text-align: center !important; color: #9aa4b5; padding: 12px !important; }
.stk-sell-fp { width: 86px; padding: 4px 7px; border: 1px solid #cfd8e6; border-radius: 6px; font-size: 14px; text-align: right; }
.stk-sell-act { white-space: nowrap; }
.stk-sell-done { padding: 4px 10px; font-size: 13px; border-radius: 6px; cursor: pointer; border: 1px solid #c2570c; background: #c2570c; color: #fff; }
.stk-sell-done.is-off { background: #e6e9ee; border-color: #d3d8e0; color: #9aa4b5; }
.stk-sell-fp.stk-sell-op.is-typed { border-color: #c2570c; background: #fff7ef; }   /* 현재가를 직접 입력한 칸 */
.stk-sell-table th:last-child.stk-sell-thdel, .stk-sell-tdel { text-align: center !important; white-space: nowrap; padding-left: 8px !important; padding-right: 14px !important; }
.stk-sell-trash { border: 0; background: transparent; cursor: pointer; font-size: 15px; line-height: 1; padding: 2px 4px; border-radius: 5px; opacity: .65; }
.stk-sell-trash:hover { opacity: 1; background: #fdecea; }
.stk-sell-table td.stk-sell-lim { color: #d6342c; }   /* 대기 주문의 희망 매도가: 빨강 */
.stk-sell-trades-box { max-height: 450px; overflow-y: auto; }   /* 머리글 + 10건 높이(행 41px×10 + 머리글 36px = 446px)까지 보이고, 넘으면 스크롤 */
.stk-sell-cancel { margin-left: 4px; padding: 4px 9px; font-size: 13px; border-radius: 6px; cursor: pointer; border: 1px solid #d6deea; background: #fff; color: #51607a; }
.stk-sell-table .dir-RISING { color: #d6342c; }
.stk-sell-table .dir-FALLING { color: #2f6fb0; }
@media (max-width: 720px) { .stk-modal.stk-sell { width: calc(100vw - 16px); } }

/* 매도 다이얼로그 입력칸 × (값이 있을 때만 표시) */
.stk-sell-clr-wrap { position: relative; display: inline-block; }
.stk-sell-clr-wrap input { padding-right: 22px; }
.stk-sell-clr {
    position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
    display: none; border: none; background: none; cursor: pointer;
    color: #8a93a6; font-size: 17px; line-height: 1; padding: 0 3px;
}
.stk-sell-clr-wrap input:not(:placeholder-shown) ~ .stk-sell-clr { display: block; }
.stk-sell-clr:hover { color: #d4332e; }

/* 일별종목별 결과조회 화면 */
.stk-dfilter { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 10px 14px; margin-bottom: 14px;
    background: #f6f9fc; border: 1px solid #e3eaf3; border-radius: 10px; font-size: 15px; color: #33415c; }
.stk-dfilter label { display: inline-flex; align-items: center; gap: 6px; }
.stk-dfilter input[type=date], .stk-dfilter select { padding: 5px 8px; border: 1px solid #cfd8e6; border-radius: 7px; font-size: 15px; background: #fff; }
.stk-dsep { color: #8a93a6; }
.stk-dgo { padding: 6px 18px; border: 1px solid #2f6fb0; background: #2f6fb0; color: #fff; border-radius: 8px; cursor: pointer; font-size: 15px; }
.stk-dgo:hover { background: #255d96; }
.stk-dquick { display: inline-flex; gap: 6px; }
.stk-dquick a { padding: 4px 10px; border: 1px solid #d6deea; border-radius: 14px; background: #fff; color: #3f6fb0; text-decoration: none; font-size: 14px; }
.stk-dquick a:hover { background: #eaf2fb; }
.stk-dquick span.is-off { padding: 4px 10px; border: 1px solid #e3e8ef; border-radius: 14px; background: #f4f6f9; color: #b3bccb; font-size: 14px; cursor: default; }
.stk-dquick a.is-on { background: #2f6fb0; border-color: #2f6fb0; color: #fff; }   /* 현재 기간과 같은 빠른 버튼(기본: 전체) */
.stk-dfilter .stk-manage-btn { margin-left: auto; }      /* 설정 버튼: 조건 행의 오른쪽 끝 */
.stk-dempty { padding: 14px 16px; margin-bottom: 14px; background: #fff8e8; border: 1px solid #f0dfb0; border-radius: 10px; color: #8a6a10; font-size: 15px; }
.stk-sec-h { margin: 14px 0 6px; font-size: 16px; font-weight: 700; color: #1f2d3d; }
.stk-sec-sub { margin-left: 8px; font-size: 13px; font-weight: 400; color: #8a93a6; }
.stk-dtable .col-name { text-align: left; }
.stk-dtable .col-cat { text-align: left; color: #51607a; }
.stk-name-plain { font-weight: 600; color: #1f2d3d; }
.stk-dgrp tr.stk-dhead td { background: #eaf0f6; color: #33415c; text-align: left; padding: 7px 10px; border-bottom: 1px solid #d6e0ea; font-size: 15px; }
.stk-dh-sub { margin-left: 14px; font-size: 14px; color: #51607a; font-weight: 400; }
.stk-dgrp tr.stk-drow:nth-child(even) { background: #f3f4f6; }
.stk-dgrp tr.stk-drow:nth-child(odd) { background: #fff; }
.stk-tgrp tr.stk-drow:nth-child(odd) { background: #f3f4f6; }
.stk-tgrp tr.stk-drow:nth-child(even) { background: #fff; }
.stk-dgrp tr.stk-drow:hover { background: #ffecd6; }
.stk-dgrp tr.stk-drow:last-child td, .stk-tgrp tr.stk-drow:last-child td { border-bottom: 1px solid #334a66; }
.stk-dnone { text-align: center !important; color: #9aa4b5; padding: 18px !important; }

/* 일별결과: 섹션 제목 줄 오른쪽에 설정 버튼 */
.stk-sec-h { display: flex; align-items: center; gap: 0; }
.stk-sec-h .stk-manage-btn { margin-left: auto; }
.stk-sec-h .stk-refresh-note { font-size: 14px; font-weight: 400; }
.stk-sec-h .stk-refresh-note + .stk-manage-btn { margin-left: 12px; }

/* 고가·저가 컬럼명: 고가=빨강, 저가=파랑, 굵게 (증권관리·일별결과 공통) */
.stk-table th[data-col="high"] { color: #d4332e; font-weight: 700; }
.stk-table th[data-col="low"]  { color: #1b66c9; font-weight: 700; }

/* 일별 화면: 종목명 클릭 → 매도 내역 입력 다이얼로그 */
.stk-pick { cursor: pointer; }
.stk-pick:hover .stk-name-plain, .stk-pick:hover { text-decoration: underline; }
.stk-rec-form input[type="date"], .stk-rec-form input[type="time"] { width: auto; text-align: left; }
.stk-rec-form .stk-rec-chk input { width: auto; }

/* 현재 매도 내역: 기간 선택(오늘/일주일/한달) */
.stk-trange { display: inline-flex; gap: 10px; margin-left: auto; }
.stk-sec-h .stk-trange + .stk-refresh-note { margin-left: 16px; }
.stk-trange-btn { padding: 4px 12px; border: 1px solid #d6deea; border-radius: 14px; background: #fff; color: #3f6fb0; font-size: 14px; font-weight: 400; cursor: pointer; }
.stk-trange-btn:hover { background: #eaf2fb; }
.stk-trange-btn.is-on { background: #2f6fb0; border-color: #2f6fb0; color: #fff; }
.stk-thead { flex-wrap: wrap; row-gap: 6px; }
.stk-tctl { display: inline-flex; align-items: center; gap: 6px; margin-left: 18px; font-weight: 400; }
.stk-tsel, .stk-tdate { height: 30px; padding: 2px 8px; border: 1px solid #cfd8e6; border-radius: 6px; background: #fff; color: #1f2d3d; font-size: 14px; width: auto; }
.stk-tsel { max-width: 160px; }
.stk-tsep { color: #8a93a6; }
