@import url("https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/static/pretendard.min.css");

:root {
  --c-primary: #ea5a0c;
  --c-primary-soft: #fff1e8;
  --c-text: #111111;
  --c-text-2: #555555;
  --c-text-3: #8a8a8a;
  --c-line: #e8e8e8;
  --c-line-2: #f1f1f1;
  --c-bg: #f4f4f4;
  --c-surface: #ffffff;
  --c-surface-2: #f7f7f8;

  --c-blue: #2f6fe4;
  --c-blue-soft: #eaf1fd;
  --c-green: #1f9d55;
  --c-green-soft: #e7f6ee;
  --c-red: #e03131;
  --c-red-soft: #fdecec;

  --radius: 10px;
  --font: "Pretendard", -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  font-family: var(--font);
  color: var(--c-text);
  background: var(--c-bg);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input { font: inherit; color: inherit; }
ul { list-style: none; }
svg { display: block; flex-shrink: 0; }

.logo {
  font-weight: 900;
  font-size: 23.5px;
  letter-spacing: -0.04em;
  line-height: 1;
}

/* 페이지 스크롤바가 생기거나 사라져도 화면이 좌우로 움직이지 않게 자리 확보 */
html { overflow-y: scroll; scrollbar-gutter: stable; }
/* 스크롤바: 관리자 · 도매몰 모든 화면 같은 모양 (얇은 회색, 바탕 없음 · 양 끝 < > 화살표 없음). 일부러 숨긴 곳(가로 탭 등)은 그대로
   크롬 · 엣지 · 사파리: ::-webkit-scrollbar 로 그림 (scrollbar-width 를 쓰면 크롬이 화살표 달린 기본 모양으로 그려서 여기선 안 씀)
   파이어폭스: 원래 화살표가 없어 scrollbar-width / color 로 */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-button { display: none; width: 0; height: 0; }
::-webkit-scrollbar-track, ::-webkit-scrollbar-corner { background: transparent; }
::-webkit-scrollbar-thumb { border: 2px solid transparent; border-radius: 999px; background: #d0d0d0 padding-box; }
::-webkit-scrollbar-thumb:hover { background-color: #b0b0b0; }
@supports not selector(::-webkit-scrollbar) {
  * { scrollbar-width: thin; scrollbar-color: #d0d0d0 transparent; }
}

/* ===== 모바일 브라우저 공통 (2026-11-19) ===== */
/* iPhone 을 가로로 돌리면 Safari 가 글자를 멋대로 키워 화면이 깨지는 것 방지 */
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
/* iPhone Safari 는 16px 보다 작은 입력칸을 누르면 화면을 확대한 채로 둔다 → 터치 기기에서만 입력칸 글자 16px */
@media (hover: none) and (pointer: coarse) {
  input:not([type="checkbox"]):not([type="radio"]):not([type="range"]), select, textarea { font-size: 16px !important; }
}

/* 창(모달) · 서랍 메뉴가 열려 뒤 화면 스크롤을 막을 때: body 가 아니라 html 에서 막음 (2026-11-19)
   body 에 overflow: hidden 을 걸면 고정(sticky) 헤더의 기준이 바뀌어 헤더가 튀어 올라가고 뒤 화면이 밀려 보임 */
html:has(> body.c-drawer-open), html:has(> body.lnb-open), html:has(> body[style*="overflow: hidden"]) { overflow: hidden; }
body.c-drawer-open, body.lnb-open, body[style*="overflow: hidden"] { overflow: visible !important; }

input[type="search"]::-webkit-search-cancel-button {
    display: none;
}

/* ===== 스켈레톤 로딩 (불러오는 동안 모양만 미리 · 은은하게 반짝임) — 2026-11-20 ===== */
.sk { display: block; width: 100%; height: 12px; border-radius: 6px; background: linear-gradient(90deg, #ededee 0%, #f6f6f7 45%, #ededee 90%); background-size: 300% 100%; animation: sk-shimmer 1.3s ease-in-out infinite; }
.sk.is-box { border-radius: 8px; }
.sk.is-dot { border-radius: 50%; }
@keyframes sk-shimmer { from { background-position: 100% 0; } to { background-position: -50% 0; } }
@media (prefers-reduced-motion: reduce) { .sk { animation: none; } }
tr.sk-row td { padding-top: 16px !important; padding-bottom: 16px !important; vertical-align: middle; }
tr.sk-row:hover td { background: none !important; }
.sk-stack { display: grid; gap: 8px; }

/* ===================================================================
   공통 툴팁 (tooltip.js · 2026-11-23) — 모든 title 툴팁을 이 모양으로 통일 (반투명 검정 + 뒤 흐림 · 흰 글자 · 커서 아래)
   =================================================================== */
.p-tip { position: fixed; z-index: 5000; max-width: 280px; padding: 6px 10px; border: 1px solid rgba(255, 255, 255, .08); border-radius: 8px; background: rgba(20, 20, 20, .6); -webkit-backdrop-filter: blur(10px) saturate(140%); backdrop-filter: blur(10px) saturate(140%); box-shadow: 0 6px 18px rgba(0, 0, 0, .16); font-size: 12.5px; font-weight: 500; line-height: 1.45; color: #fff; white-space: pre-line; word-break: keep-all; overflow-wrap: anywhere; pointer-events: none; opacity: 0; transition: opacity .12s ease; }
.p-tip[hidden] { display: none; }
.p-tip.is-on { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .p-tip { transition: none; } }
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) { .p-tip { background: rgba(20, 20, 20, .8); } } /* 흐림을 못 쓰는 브라우저는 조금 더 진하게 */
