/* =====================================================
   wego-typography.css — Pretendard 전역 적용
   common-head / login-head 체인 최하단에서 로드.
   --wego-font-family 는 wego-plus-sidebar.css :root 에도 정의 (로그인 등 sidebar 미로드 시 여기 사용).
===================================================== */

:root {
    --wego-font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, Roboto,
                        'Helvetica Neue', 'Segoe UI', 'Apple SD Gothic Neo',
                        'Noto Sans KR', 'Malgun Gothic', sans-serif;
}

html,
body,
div,
span,
applet,
object,
iframe,
h1, h2, h3, h4, h5, h6,
p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed,
figure, figcaption, footer, header, hgroup,
menu, nav, output, ruby, section, summary,
time, mark, audio, video,
input, button, select, textarea,
optgroup, option {
    font-family: var(--wego-font-family);
}

/* Wegoplus UI / Grid */
.wegoplusgrid,
.wegoplusgrid *,
.Textinput,
.Button,
.Select,
.Checkbox,
.Radiobutton,
.Dateinput,
.Dialog,
.Popup,
.Tab,
.Accordion,
.Tree,
.List,
.Table {
    font-family: var(--wego-font-family);
}

/* IBSheet — default 및 주요 테마 prefix */
.IBMain,
.IBMain *,
.IBWide,
.IBWide *,
.IBSPMain,
.IBSPMain *,
.IBMTMain,
.IBMTMain *,
.IBMRMain,
.IBMRMain *,
.IBKDMain,
.IBKDMain *,
.IBGRMain,
.IBGRMain * {
    font-family: var(--wego-font-family) !important;
}

.IBMain .IBHeaderText,
.IBMain .IBCellHeader,
.IBMain .IBHeaderRow .IBCellBase,
.IBSPMain .IBSPHeaderText,
.IBSPMain .IBSPCellHeader,
.IBSPMain .IBSPHeaderRow .IBSPCellBase,
.IBMTMain .IBMTHeaderText,
.IBMTMain .IBMTCellHeader,
.IBMTMain .IBMTHeaderRow .IBMTCellBase,
.IBMRMain .IBMRHeaderText,
.IBMRMain .IBMRCellHeader,
.IBMRMain .IBMRHeaderRow .IBMRCellBase,
.IBKDMain .IBKDHeaderText,
.IBKDMain .IBKDCellHeader,
.IBKDMain .IBKDHeaderRow .IBKDCellBase,
.IBGRMain .IBGRHeaderText,
.IBGRMain .IBGRCellHeader,
.IBGRMain .IBGRHeaderRow .IBGRCellBase {
    font-weight: 600 !important;
}

/* 코드·monospace 영역은 제외 */
pre,
code,
kbd,
samp,
.monospace {
    font-family: Menlo, Monaco, monospace, sans-serif;
}
