:root {
  --bg: #f4f6f2;
  --surface: #ffffff;
  --ink: #1f2a22;
  --muted: #66736a;
  --line: #dfe5dc;
  --brand: #2f6b47;
  --brand-ink: #ffffff;
  --brand-soft: #e5efe7;
  --warn: #9a5b00;
  --warn-soft: #fff4e0;
  --danger: #b3261e;
  --danger-soft: #fbe9e7;
  --ok-soft: #e3f2e6;
  --radius: 14px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #121714; --surface: #1b221d; --ink: #e6ece7; --muted: #9aa69d; --line: #2c362f;
    --brand: #6fbf8c; --brand-ink: #0f1a13; --brand-soft: #22322a; --warn: #f0b45a; --warn-soft: #33281a;
    --danger: #f2877e; --danger-soft: #3a1f1d; --ok-soft: #1f3326; color-scheme: dark;
  }
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--bg); color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Pretendard", "Malgun Gothic", "Noto Sans KR", sans-serif;
  font-size: 16px; line-height: 1.5; -webkit-font-smoothing: antialiased;
}
.wrap { max-width: 460px; margin: 0 auto; padding: 32px 16px 48px; }
.wrap.wide { max-width: 1040px; }
.brand { display: flex; align-items: center; gap: 10px; margin-bottom: 22px; }
.brand .mark { width: 36px; height: 36px; border-radius: 10px; background: var(--brand); color: var(--brand-ink); display: grid; place-items: center; font-weight: 700; }
.brand .t1 { font-size: 13px; color: var(--muted); }
.brand .t2 { font-size: 18px; font-weight: 700; letter-spacing: -0.02em; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.card + .card { margin-top: 14px; }
h1 { font-size: 22px; margin: 0 0 4px; letter-spacing: -0.02em; }
h2 { font-size: 17px; margin: 0 0 12px; }
p.sub { color: var(--muted); margin: 0 0 18px; font-size: 14px; }
label { display: block; font-size: 14px; font-weight: 600; margin: 14px 0 6px; }
input, select {
  width: 100%; padding: 12px 14px; font-size: 17px; border-radius: 10px; border: 1px solid var(--line);
  background: var(--bg); color: var(--ink); font-family: inherit;
}
input:focus, select:focus { outline: 2px solid var(--brand); outline-offset: 1px; border-color: transparent; }
input.code { letter-spacing: 0.3em; font-variant-numeric: tabular-nums; }
.hint { font-size: 13px; color: var(--muted); margin-top: 6px; }
button, .btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 12px 16px; border-radius: 10px; border: 1px solid transparent; font-size: 15px; font-weight: 600;
  cursor: pointer; font-family: inherit; text-decoration: none; background: var(--brand); color: var(--brand-ink); white-space: nowrap;
}
button:disabled { opacity: .5; cursor: default; }
button.block { width: 100%; margin-top: 20px; padding: 14px; font-size: 16px; }
button.ghost, .btn.ghost { background: transparent; color: var(--ink); border-color: var(--line); }
button.small, .btn.small { padding: 7px 11px; font-size: 13px; }
button.danger { background: transparent; color: var(--danger); border-color: var(--line); }
.msg { margin-top: 14px; padding: 10px 12px; border-radius: 10px; font-size: 14px; display: none; }
.msg.show { display: block; }
.msg.err { background: var(--danger-soft); color: var(--danger); }
.msg.ok { background: var(--ok-soft); color: var(--brand); }
.row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.hidden { display: none !important; }
.slip { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 0; border-top: 1px solid var(--line); }
.slip:first-child { border-top: 0; }
.slip .period { font-weight: 700; font-size: 17px; }
.slip .meta { font-size: 13px; color: var(--muted); }
.slip .actions { display: flex; gap: 6px; }
.empty { color: var(--muted); text-align: center; padding: 24px 0; font-size: 14px; }
.foot { text-align: center; color: var(--muted); font-size: 12px; margin-top: 24px; }
.copyright { text-align: center; color: var(--muted); font-size: 11px; line-height: 1.7; margin-top: 18px; opacity: 0.85; }
button.link, .link { color: var(--muted); font-size: 13px; background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline; font-weight: 400; }

/* 관리자 */
.tabs { display: flex; gap: 6px; margin-bottom: 14px; flex-wrap: wrap; }
.tabs button { background: transparent; color: var(--muted); border: 1px solid var(--line); }
.tabs button.on { background: var(--brand); color: var(--brand-ink); border-color: var(--brand); }
/* 관리자 메뉴 대분류 (2.16.0) */
.admin-top { margin-bottom: 10px; align-items: flex-start; }
.gtabs { display: grid; grid-template-columns: repeat(9, minmax(0, 1fr)); gap: 6px; flex: 1; max-width: 1180px; } /* 2.41.0 대분류 7개 → 2.49.0 린다이어트 더해 8개 */
.gtabs button { background: var(--surface); color: var(--ink); border: 1px solid var(--line); padding: 12px 6px; font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 1279px) and (min-width: 601px) { .gtabs { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.gtabs button.on { background: var(--brand); color: var(--brand-ink); border-color: var(--brand); }
/* 하위 메뉴 (2.26.0): 대분류(진한 초록 큰 버튼) 아래 옅은 초록 판 안에 흰 칩 — 고른 메뉴는 초록 테두리·글자 + 점. 크기 말고도 모양으로 구분 */
#subTabs { position: relative; background: var(--brand-soft); border: 1px solid color-mix(in srgb, var(--brand) 22%, transparent); border-radius: 14px; padding: 30px 10px 10px; gap: 6px; margin-bottom: 16px; }
#subTabs::before { content: attr(data-label); position: absolute; top: 9px; left: 14px; font-size: 12px; font-weight: 700; color: var(--brand); letter-spacing: 0.02em; }
#subTabs button { padding: 7px 13px; font-size: 14px; background: var(--surface); color: var(--muted); border: 1px solid var(--line); border-radius: 999px; font-weight: 500; }
#subTabs button.on { background: var(--surface); color: var(--brand); border: 2px solid var(--brand); padding: 6px 12px; font-weight: 700; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08); }
#subTabs button.on::before { content: '●'; font-size: 8px; margin-right: 6px; vertical-align: 2px; }
.gtabs button.on { box-shadow: 0 2px 6px color-mix(in srgb, var(--brand) 35%, transparent); }
.seg.seg-auto { display: flex; flex-wrap: wrap; }
.seg.seg-auto button { flex: 1 1 auto; white-space: nowrap; }
.sub-seg { max-width: 640px; margin: 0 0 14px; }
.manager-mode .admin-only { display: none !important; }
.perm-map { display: grid; gap: 6px; }
.perm-row { display: flex; align-items: center; gap: 10px; text-align: left; background: var(--bg); color: var(--ink); border: 1px solid var(--line); padding: 12px 14px; font-weight: 400; }
.perm-row b { min-width: 150px; }
.perm-row span { flex: 1; color: var(--muted); font-size: 14px; }
.perm-row i { font-style: normal; color: var(--muted); font-size: 20px; }
@media (max-width: 600px) {
  .gtabs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gtabs button { font-size: 14px; padding: 11px 6px; }
  .gtabs button:last-child:nth-child(odd) { grid-column: span 2; } /* 2.29.0 대분류 홀수개: 마지막(기타 설정)은 한 줄 전체 */
  .perm-row { flex-wrap: wrap; }
  .perm-row b { min-width: 0; width: 100%; }
}
.drop { border: 2px dashed var(--line); border-radius: var(--radius); padding: 34px 16px; text-align: center; color: var(--muted); cursor: pointer; }
.drop.over { border-color: var(--brand); background: var(--brand-soft); color: var(--ink); }
.drop strong { color: var(--ink); display: block; font-size: 16px; margin-bottom: 4px; }
.tablewrap { overflow-x: auto; margin-top: 14px; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 9px 8px; border-bottom: 1px solid var(--line); vertical-align: middle; }
th { font-size: 12px; color: var(--muted); font-weight: 600; white-space: nowrap; }
td input, td select { font-size: 14px; padding: 7px 9px; min-width: 110px; }
.badge { display: inline-block; padding: 2px 8px; border-radius: 99px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.badge.ok { background: var(--ok-soft); color: var(--brand); }
.badge.new { background: var(--brand-soft); color: var(--ink); }
.badge.warn { background: var(--warn-soft); color: var(--warn); }
.badge.off { background: var(--danger-soft); color: var(--danger); }
.warnline { font-size: 12px; color: var(--warn); margin-top: 3px; }
.pinbox { font-family: ui-monospace, Menlo, monospace; font-size: 18px; font-weight: 700; letter-spacing: .15em; }
.inline-form { display: flex; gap: 8px; flex-wrap: wrap; align-items: flex-end; }
.inline-form > div { flex: 1; min-width: 140px; }
.inline-form label { margin-top: 0; }
.cell-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.period-head { margin: 18px 0 4px; font-weight: 700; }
@media (max-width: 600px) {
  .card { padding: 18px; }
  .wrap { padding-top: 22px; }
}
@media print {
  body > *:not(#printArea) { display: none !important; }
}

/* 처음 등록 */
.first-time { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.first-time button { flex-shrink: 0; }
.steps { display: flex; gap: 6px; margin-bottom: 14px; }
.steps span { font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 99px; background: var(--bg); color: var(--muted); }
.steps span.on { background: var(--brand-soft); color: var(--brand); }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; margin: 18px 0 2px; background: var(--bg); border-radius: 12px; border: 1px solid var(--line); }
.seg button { background: transparent; color: var(--muted); padding: 10px 8px; font-size: 14px; }
.seg button.on { background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px rgba(0,0,0,.08); }
.unit { position: relative; }
.unit input { padding-right: 40px; font-variant-numeric: tabular-nums; }
.unit span { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.codebox { font-family: ui-monospace, Menlo, monospace; font-size: 28px; font-weight: 700; letter-spacing: .2em; text-align: center; padding: 14px; background: var(--brand-soft); border-radius: 10px; margin: 12px 0; }
td.num { text-align: right; font-variant-numeric: tabular-nums; }

/* 가입코드 쪽지 인쇄 */
#printArea { display: none; }
.slips { display: grid; grid-template-columns: 1fr 1fr; gap: 0; }
.ticket { border: 1.5px dashed #999; padding: 14px 16px; display: flex; gap: 14px; align-items: center; break-inside: avoid; page-break-inside: avoid; color: #111; background: #fff; }
.ticket .qr { width: 92px; height: 92px; flex-shrink: 0; }
.ticket .qr img { width: 100%; height: 100%; display: block; }
.ticket .t-clinic { font-size: 11px; color: #555; }
.ticket .t-name { font-size: 18px; font-weight: 700; margin: 2px 0; }
.ticket .t-code { font-family: ui-monospace, Menlo, monospace; font-size: 26px; font-weight: 800; letter-spacing: .18em; margin: 2px 0 4px; }
.ticket .t-steps { font-size: 10.5px; line-height: 1.45; color: #333; }
.ticket .t-url { font-size: 10px; color: #555; word-break: break-all; margin-top: 3px; }
.print-head { font-size: 12px; color: #444; margin: 0 0 8px; }
@media print {
  @page { size: A4; margin: 10mm; }
  html, body { background: #fff !important; }
  #printArea { display: block; }
}

/* 대시보드 */
.tiles { display: grid; gap: 12px; margin-top: 14px; }
.tile { display: flex; align-items: center; gap: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; color: var(--ink); text-decoration: none; }
.tile:active { transform: scale(.99); }
.tile-icon { width: 46px; height: 46px; border-radius: 12px; background: var(--brand-soft); display: grid; place-items: center; font-size: 22px; flex-shrink: 0; }
.tile-body { flex: 1; min-width: 0; }
.tile-title { font-size: 13px; color: var(--muted); font-weight: 600; }
.tile-main { font-size: 20px; font-weight: 700; letter-spacing: -0.02em; margin-top: 2px; }
.tile-sub { font-size: 13px; color: var(--muted); }
.tile-go { font-size: 26px; color: var(--muted); }
/* 직원 대시보드 분류 (2.16.0) */
.tile-group { margin-top: 22px; }
.grp-title { font-size: 15px; font-weight: 700; color: var(--muted); margin: 0 0 -4px 4px; letter-spacing: -0.01em; }
.tile-group .tiles + .tiles { margin-top: 12px; }
.tile-group .tiles:empty { display: none; }
.subhead { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.subhead h1 { margin: 0; flex: 1; font-size: 20px; }
.subhead select { width: auto; font-size: 15px; padding: 8px 12px; }
.back { color: var(--brand); text-decoration: none; font-weight: 600; font-size: 15px; white-space: nowrap; }
.leave-hero { text-align: center; }
.leave-hero .big { font-size: 40px; font-weight: 800; letter-spacing: -0.03em; color: var(--brand); margin: 4px 0 0; font-variant-numeric: tabular-nums; }
.leave-hero .big.neg { color: var(--danger); }
.bar { height: 10px; border-radius: 99px; background: var(--bg); border: 1px solid var(--line); overflow: hidden; margin: 16px 0 14px; }
.bar > div { height: 100%; background: var(--brand); border-radius: 99px; width: 0; transition: width .3s; }
.lv-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.lv-stats div { background: var(--bg); border-radius: 10px; padding: 10px; }
.lv-stats span { display: block; font-size: 12px; color: var(--muted); }
.lv-stats b { font-size: 17px; font-variant-numeric: tabular-nums; }
.use-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 12px 0; border-top: 1px solid var(--line); }
.use-row:first-child { border-top: 0; }
.use-row .d { font-weight: 600; }
.use-row .m { font-size: 13px; color: var(--muted); }
.use-row .h { font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; }

/* 관리자 연차 */
.chips { display: flex; gap: 4px; margin-top: 6px; flex-wrap: wrap; }
.chips button { padding: 4px 8px; font-size: 12px; background: var(--brand-soft); color: var(--ink); border: 0; }
#lvBody tr { cursor: pointer; }
#lvBody tr.sel td { background: var(--brand-soft); }
#lvBody input { min-width: 0; width: 120px; text-align: right; }
.neg { color: var(--danger); font-weight: 700; }
th.num { text-align: right; }
#lvBody input.filled { outline: 2px solid var(--warn); background: var(--warn-soft); }
.xls-issues { margin: 6px 0 0; padding-left: 18px; font-size: 13px; }
.paste-box { margin-top: 12px; }
.paste-box textarea { width: 100%; min-height: 120px; padding: 10px 12px; font-size: 13px; font-family: ui-monospace, Menlo, Consolas, monospace; border-radius: 10px; border: 1px dashed var(--brand); background: var(--bg); color: var(--ink); white-space: pre; overflow: auto; resize: vertical; }
.paste-box textarea:focus { outline: 2px solid var(--brand); outline-offset: 1px; border-color: transparent; }
.lm-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 6px; }
.lm-emp { display: flex; align-items: center; gap: 8px; margin: 0; font-weight: 400; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; }
.lm-emp input { width: auto; }
/* 연차 표: 휴대폰에서 이름·날짜가 한 글자씩 줄바꿈되지 않게 (넘치면 옆으로 스크롤) */
#lvBody td:first-child, #usesBody td:nth-child(-n+3), #usesBody td:nth-child(5) { white-space: nowrap; }
@media (max-width: 600px) { #lvBody input { width: 76px; } #lvBody td:first-child .hint { display: block; } }
#usesBody td:nth-child(4) { min-width: 96px; }
#lvBody td:nth-child(5) { white-space: nowrap; }
.chips button.on { background: var(--brand); color: var(--brand-ink); }

/* 장부 바로가기 (2.27.0) */
.quick { margin: 0 0 14px; }
.quick-head { font-size: 13px; font-weight: 700; color: var(--brand); margin: 0 2px 6px; }
.quick-head span { font-weight: 400; color: var(--muted); margin-left: 4px; font-size: 12px; }
.quick-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 8px; }
.quick-btn { display: flex; align-items: center; gap: 10px; padding: 12px 14px; background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--brand); border-radius: 12px; color: var(--ink); text-decoration: none; min-width: 0; }
.quick-btn:hover { border-color: var(--brand); }
.quick-btn.off { opacity: 0.6; border-left-color: var(--line); }
.quick-ico { font-size: 22px; }
.quick-txt { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.quick-txt b { font-size: 15px; }
.quick-txt small { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.quick-go { color: var(--brand); font-weight: 700; }
@media (max-width: 600px) { .quick-row { grid-template-columns: 1fr; } }

/* PC 넓은 화면 (2.32.0): 창이 넓으면(900px 이상) 자동으로 넓게 씁니다. 휴대폰(900px 미만)은 예전과 똑같아요 */
@media (min-width: 900px) {
  .wrap:not(.wide) { max-width: 1240px; padding: 36px 32px 56px; }
  /* 로그인·PIN 화면은 PC에서도 가운데 좁게 */
  #loginView, #regView, #setPinView, #pinView { max-width: 460px; margin-left: auto; margin-right: auto; }
  .wrap:not(.wide) > .brand { margin-bottom: 26px; }
  /* 홈: 타일을 여러 칸으로 */
  /* 한 분류 안의 타일(기본 타일 + 모듈 타일)을 한 격자로 이어서 배치 */
  #homeView .tile-group:not(.hidden) { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 12px; }
  #homeView .tile-group > .grp-title { grid-column: 1 / -1; margin-bottom: 0; }
  #homeView .tile-group > .tiles { display: contents; }
  #homeView .tile:hover { border-color: var(--brand); }
  .quick-row { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
  /* 메뉴 화면 위쪽 탭 버튼이 너무 길게 늘어나지 않게 */
  #moduleBody .seg { max-width: 760px; }
  /* 급여명세서 목록은 적당한 폭으로 */
  #listView { max-width: 760px; margin: 0 auto; }
  /* 연차: 왼쪽 남은 연차, 오른쪽 사용 내역 */
  #leaveView:not(.hidden) { display: grid; grid-template-columns: minmax(300px, 380px) 1fr; gap: 16px; align-items: start; }
  #leaveView > .subhead, #leaveView > .foot { grid-column: 1 / -1; }
  #leaveView > .subhead { margin-bottom: 0; }
  #leaveView > .card + .card { margin-top: 0; }
  #leaveView > .foot { margin-top: 0 !important; }
}
/* 관리자 화면: 큰 모니터에서 더 넓게 */
@media (min-width: 1280px) {
  .wrap.wide { max-width: 1480px; padding-left: 32px; padding-right: 32px; }
  .gtabs { max-width: 1100px; }
}
/* 2.57.0 분류 안 소분류 머리말 (🩺 환자관리 → ⭐ 리뷰) */
#subTabs .sub-sec { align-self: center; font-size: 13px; font-weight: 800; color: var(--brand); padding: 0 4px 0 2px; white-space: nowrap; }
#subTabs .sub-sec::after { content: ' ›'; color: var(--muted); font-weight: 500; }
.tile-sec { grid-column: 1 / -1; font-size: 14px; font-weight: 800; color: var(--brand); margin: 4px 0 -4px; }

/* 2.76.0 화면 이동 막대 (public/nav.js): ‹ 뒤로 · 앞으로 › · 🏠 홈 — 위에 붙어 따라옴 */
.pn-bar { position: sticky; top: 0; z-index: 40; display: flex; align-items: center; gap: 6px; margin: -10px 0 14px; padding: 8px 0;
  background: var(--bg); border-bottom: 1px solid var(--line); }
.pn-bar.hidden { display: none; }
.pn-bar .pn-b { padding: 8px 12px; font-size: 14px; border-radius: 10px; background: var(--surface); color: var(--ink); border: 1px solid var(--line); flex: none; }
.pn-bar .pn-b:not(:disabled):hover { border-color: var(--brand); }
.pn-bar .pn-b:disabled { opacity: .4; cursor: default; }
.pn-bar .pn-home { background: var(--brand-soft); border-color: var(--brand-soft); font-weight: 600; }
.pn-bar .pn-where { flex: 1; min-width: 0; font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-align: right; }
@media (max-width: 480px) { .pn-bar .pn-b { padding: 8px 10px; font-size: 13.5px; } .pn-bar .pn-where { font-size: 12px; } }
@media (max-width: 360px) { .pn-bar .pn-where { display: none; } }
@media print { .pn-bar, .pn-fold { display: none !important; } }

/* 2.76.0 맨 위 알림 접기·펼치기 (대표가 ⚙️ 기타 설정에서 일괄 허용/금지) */
.pn-foldrow { position: relative; z-index: 3; display: flex; justify-content: flex-end; align-items: flex-start; height: 0; overflow: visible; margin-top: 18px; padding-right: 14px; }
.pn-foldrow + .pn-foldable { margin-top: 0; }
.pn-fold { flex: none; height: auto; transform: translateY(-50%); padding: 3px 12px; font-weight: 600; color: var(--brand) !important; font-size: 12.5px; line-height: 1.5; border-radius: 999px;
  background: var(--surface); color: var(--ink); border: 1px solid var(--line); box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.pn-folded { max-height: 58px; overflow: hidden; -webkit-mask-image: linear-gradient(#000 55%, transparent); mask-image: linear-gradient(#000 55%, transparent); }

/* ===== 2.103.0 윈도우 화면 보정 → 2.106.0 더 넉넉하게 =====
   윈도우(크롬·엣지)에서만 <html class="os-win"> 이 붙어요 (public/os.js — index·admin·스테이션·채팅 창 머리에서 불러옴).
   맥 화면은 하나도 안 바뀌게, 아래 규칙은 전부 html.os-win 안에서만 적용됩니다.
   2.106.0: 대표님 "아직 칸이 좀 안 맞음, 더 널럴하게" → 자간 좁히기는 빼고, 칸 안쪽 여백·최소 폭을 늘리고, 대분류 버튼은 한 줄 5개로.
   :where(html.os-win) 는 우선순위를 안 올려서, 이 파일의 기본 칸 모양만 넓히고 각 메뉴가 따로 정한 크기는 건드리지 않아요. */
html.os-win body { font-family: "Malgun Gothic", "맑은 고딕", "Apple SD Gothic Neo", "Pretendard", "Noto Sans KR", sans-serif; -webkit-font-smoothing: auto; }
:where(html.os-win) input, :where(html.os-win) select, :where(html.os-win) button, :where(html.os-win) .btn { line-height: 1.3; }
:where(html.os-win) textarea { line-height: 1.5; }
:where(html.os-win) input:not([type="checkbox"]):not([type="radio"]) { padding-left: 15px; padding-right: 15px; }
:where(html.os-win) select { padding-left: 13px; padding-right: 32px; }
:where(html.os-win) input[type="date"], :where(html.os-win) input[type="time"], :where(html.os-win) input[type="month"], :where(html.os-win) input[type="datetime-local"] { font-variant-numeric: tabular-nums; padding-right: 10px; }
:where(html.os-win) button, :where(html.os-win) .btn { padding-left: 18px; padding-right: 18px; }
:where(html.os-win) button.small, :where(html.os-win) .btn.small { padding: 8px 13px; }
:where(html.os-win) th, :where(html.os-win) td { padding: 10px 11px; }
:where(html.os-win) th { letter-spacing: 0; }
:where(html.os-win) td input, :where(html.os-win) td select { min-width: 124px; padding: 8px 11px; }
:where(html.os-win) td select { padding-right: 28px; }
:where(html.os-win) td input[type="date"], :where(html.os-win) td input[type="month"] { min-width: 152px; }
:where(html.os-win) td input[type="time"] { min-width: 124px; }
:where(html.os-win) td input[type="checkbox"], :where(html.os-win) td input[type="radio"] { min-width: 0; padding: 0; }
:where(html.os-win) .inline-form > div { min-width: 160px; }
:where(html.os-win) .badge { padding: 3px 9px; }
:where(html.os-win) #subTabs button { padding: 8px 15px; }
:where(html.os-win) #subTabs button.on { padding: 7px 14px; }
:where(html.os-win) .tabs button, :where(html.os-win) .seg button { padding-left: 12px; padding-right: 12px; }
:where(html.os-win) :where(input, select, textarea) { min-width: 0; }
html.os-win .pinbox, html.os-win .codebox, html.os-win .ticket .t-code { font-family: Consolas, "Malgun Gothic", monospace; }
html.os-win, html.os-win * { scrollbar-width: thin; scrollbar-color: color-mix(in srgb, var(--muted) 45%, transparent) transparent; }
/* 대분류 버튼: 배율 125~150%(화면 폭 1280~1700)에서 한 줄 9개는 글자가 잘림 → 한 줄 5개로 넉넉하게 */
@media (min-width: 1280px) and (max-width: 1700px) {
  html.os-win .gtabs { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}

/* ===== 2.106.0 태블릿·큰 휴대폰 'PC 화면으로 보기' =====
   public/os.js 가 기기에 기억(localStorage portalPcView=1)하고 viewport 를 width=1280 으로 바꿔 PC 배치로 보여줌. 손가락으로 확대 가능. */
.pcv-foot { text-align: center; margin-top: 14px; }
.pcv-foot button { background: var(--surface); color: var(--ink); border: 1px solid var(--line); padding: 9px 16px; font-size: 14px; font-weight: 600; border-radius: 999px; }
.pn-bar .pn-pcv { font-size: 13px; padding: 8px 10px; }
@media print { .pcv-foot, .pn-pcv { display: none !important; } }
