/* 관심목록 수익정보 수수료/세금 설정 (2026-11-26 · earning-fee.js) — 글자 최소 13px */

/* 하단 시각 줄 — 가운데 시각, 오른쪽 끝 설정 버튼 (합계 줄은 숫자로 꽉 차서 여기로) */
.sidebar-footer .ef-time-row {
    display: flex;
    align-items: center;
    gap: 6px;
    padding-right: 8px;
    background-color: var(--bg-dark, var(--bg-light));
}
.sidebar-footer .ef-time-row .time-info {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
/* 모의투자 모드는 관심목록 손익이 없으므로 숨김 */
.left-sidebar.is-mock-mode .sidebar-footer .ef-open { display: none; }

/* 설정 버튼 */
.sidebar-footer .ef-open {
    flex: 0 0 auto;
    padding: 1px 6px;
    border: 1px solid var(--border-color, rgba(127,127,127,.35));
    border-radius: 6px;
    background: var(--fg-a05, rgba(127,127,127,.1));
    color: var(--text-primary, inherit);
    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;
    cursor: pointer;
    white-space: nowrap;
}
.sidebar-footer .ef-open i { font-size: 12px; opacity: .8; }
.sidebar-footer .ef-open:hover { background: var(--fg-a08, rgba(127,127,127,.16)); }
/* 적용 중 — 강조색 테두리 */
.sidebar-footer .ef-open.is-on { border-color: var(--red-up, #e5484d); color: var(--red-up, #e5484d); }
.ef-open-top.is-on { color: var(--red-up, #e5484d); }

.sidebar-footer .market-label { white-space: nowrap; }

/* 적용 중 표시 '*' */
[data-ef-mark].ef-on::after { content: '*'; margin-left: 1px; }

/* 설정 창 */
.ef-modal[hidden] { display: none; }
.ef-modal { position: fixed; inset: 0; z-index: 10050; display: flex; align-items: center; justify-content: center; }
.ef-dim { position: absolute; inset: 0; background: rgba(0,0,0,.45); }
.ef-box {
    position: relative;
    width: min(360px, calc(100vw - 32px));
    padding: 18px 20px 16px;
    border: 1px solid var(--border-color, rgba(127,127,127,.35));
    border-radius: 14px;
    background: var(--bg-light, #fff);
    color: var(--text-primary, #222);
    box-shadow: 0 16px 40px rgba(0,0,0,.35);
    font-size: 14px;
}
.ef-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.ef-head strong { font-size: 17px; }
.ef-x { width: 28px; height: 28px; border: 0; background: transparent; color: var(--text-muted, #888); font-size: 22px; line-height: 1; cursor: pointer; }
.ef-x:hover { color: var(--text-primary, inherit); }
.ef-check { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; font-size: 15px; font-weight: 600; cursor: pointer; }
.ef-check input { width: 18px; height: 18px; margin: 0; }
.ef-field { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 8px 0 8px 26px; }
.ef-field label { color: var(--text-secondary, inherit); }
.ef-field input {
    width: 110px;
    padding: 6px 8px;
    border: 1px solid var(--border-color, rgba(127,127,127,.35));
    border-radius: 8px;
    background: var(--bg-dark, transparent);
    color: var(--text-primary, inherit);
    font-size: 14px;
    text-align: right;
}
.ef-field input:disabled { opacity: .45; }
.ef-notes { margin: 12px 0 0; padding: 10px 12px; list-style: none; border-radius: 8px; background: var(--fg-a04, rgba(127,127,127,.08)); color: var(--text-muted, #888); font-size: 13px; line-height: 1.7; }
.ef-notes li::before { content: '※ '; }
.ef-msg { min-height: 18px; margin: 10px 0 0; color: var(--text-muted, #888); font-size: 13px; }
.ef-msg.is-bad { color: var(--red-up, #e5484d); }
.ef-save {
    width: 100%;
    margin-top: 8px;
    padding: 10px 0;
    border: 0;
    border-radius: 10px;
    background: var(--pill-active-bg, #3b6ef5);
    color: var(--on-accent, #fff);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
}
.ef-save:disabled { opacity: .5; cursor: default; }
