/* 복사기 화면 같은 구성 (김창수 2026-11-22 "웹은 2번, 폰은 1번")
   웹(넓은 화면): 맨 위 줄(복합기.kr · 고객 전용 드라이버 설치 · 관리사무소 · 트리파크 · 전화) + 왼쪽에 늘 서 있는 메뉴 줄
   폰: 조작판 모양(검은 테두리 안에 화면, 아래에 진짜 단추 줄), 메뉴는 큰 단추 6개
   panel.js 가 html 에 pnl-web / pnl-phone 을 붙이고 줄·단추를 만들어 넣음. 예전 윗줄(.sn-head)은 감춤.
   고객 전용(?c=1)·직원(?t=1) 화면에는 적용하지 않음. */
html.pnl-web .sn-head, html.pnl-phone .sn-head { display: none !important; }
.pnl-bar, .pnl-rail, .pnl-ptop, .pnl-keys, .pnl-grid { font-family: "Noto Sans KR", "Malgun Gothic", sans-serif; box-sizing: border-box; }
/* 김창수 2026-11-23 "메뉴를 누르면 한 번씩 살짝 화면이 움직여": 맨 위 줄·왼쪽 메뉴가 화면마다 줄 높이·글자 간격을 그 화면 본문에서 물려받아
   드라이버/에러코드/부품코드/리퍼에서 메뉴 칸 높이가 61~64px 로 제각각이었음(아래 메뉴일수록 최대 15px 차이) → 여기서 못 박아 어느 화면에서나 같은 자리. */
.pnl-bar, .pnl-rail { font-size: 16px; line-height: 1.4; letter-spacing: normal; word-spacing: normal; text-align: left; font-weight: 400; font-style: normal; text-transform: none; }
.pnl-bar .pnl-logo { line-height: 1.2; }
.pnl-bar .pnl-tel { line-height: 1.3; }
.pnl-rail a { line-height: 1.3; letter-spacing: normal; }
.pnl-bar *, .pnl-rail *, .pnl-ptop *, .pnl-keys *, .pnl-grid * { box-sizing: border-box; }
.pnl-bar a, .pnl-rail a, .pnl-ptop a, .pnl-keys a, .pnl-grid a { text-decoration: none; }
.pnl-ic { width: 30px; height: 30px; fill: none; stroke: currentColor; stroke-width: 2.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* ── 웹 ── */
/* 넓은 화면: 왼쪽 메뉴 줄 + 본문 + 트리파크 상자를 한 덩어리(1560px)로 보고 화면 가운데에 둠 — 사장님 2026-11-22 "화면이 커지면 왼쪽으로 쭉 가는데 가운데 쪽에 붙여놔" */
html.pnl-web { scroll-padding-top: 96px; --pnl-x: max(0px, calc((100vw - 1560px) / 2)); }
html.pnl-web body { padding-left: calc(214px + var(--pnl-x)) !important; padding-right: var(--pnl-x) !important; padding-top: 80px !important; padding-bottom: 0 !important; }
html.pnl-web .float-call { display: none !important; }
.pnl-bar { position: fixed; z-index: 60; left: 0; right: 0; top: 0; height: 80px; display: flex; align-items: center; gap: 12px; padding: 0 calc(18px + var(--pnl-x)); background: #efe6d6; border-bottom: 2px solid #cfc2aa; }
.pnl-bar .pnl-logo { font-size: 36px; font-weight: 900; color: #14366a; letter-spacing: -.5px; margin-right: 10px; white-space: nowrap; }
.pnl-bar .pnl-big { display: flex; align-items: center; gap: 9px; font-family: "Black Han Sans", "Malgun Gothic", sans-serif; font-size: 25px; line-height: 1; padding: 13px 22px; border-radius: 12px; background: #14366a; color: #fff; box-shadow: inset 0 -4px 0 #0b2348; white-space: nowrap; }
.pnl-bar .pnl-big.w { background: #fffdf8; color: #14366a; border: 2px solid #14366a; box-shadow: none; padding: 11px 20px; }
.pnl-bar .pnl-big.g { background: #3e8e5a; box-shadow: inset 0 -4px 0 #2c6e43; }
.pnl-bar .pnl-big:hover { filter: brightness(1.07); }
.pnl-bar .pnl-tel { margin-left: auto; background: #e4570c; color: #fff; border-radius: 10px; font-weight: 900; font-size: 23px; padding: 11px 18px; white-space: nowrap; }
.pnl-rail { position: fixed; z-index: 59; left: var(--pnl-x); top: 80px; bottom: 0; width: 214px; background: #14366a; padding: 12px 10px; display: grid; gap: 7px; align-content: start; overflow-y: auto; }
.pnl-rail a { display: flex; align-items: center; gap: 11px; color: #dbe4f2; font-weight: 700; font-size: 20px; padding: 12px; border-radius: 10px; }
.pnl-rail a:hover { background: #1d4683; }
.pnl-rail a.on { background: #fffdf8; color: #14366a; }
@media (max-width: 1239px) { .pnl-bar .pnl-big { font-size: 21px; padding: 12px 15px; } .pnl-bar .pnl-big.w { padding: 10px 13px; } .pnl-bar .pnl-logo { font-size: 31px; } .pnl-bar .pnl-tel { font-size: 20px; padding: 10px 13px; } .pnl-bar { gap: 9px; padding: 0 12px; } }
/* 넓은 화면(1400px~): 맨 위 줄 단추·글씨 크게 — 사장님 2026-11-22 "고객전용드라이버설치와 관리사무소 트리파크도 크게" */
@media (min-width: 1400px) {
  html.pnl-web { scroll-padding-top: 110px; }
  html.pnl-web body { padding-top: 94px !important; }
  .pnl-bar { height: 94px; gap: 14px; }
  .pnl-bar .pnl-logo { font-size: 42px; margin-right: 14px; }
  .pnl-bar .pnl-big { font-size: 31px; padding: 17px 28px; border-radius: 14px; gap: 11px; }
  .pnl-bar .pnl-big.w { padding: 15px 26px; }
  .pnl-bar .pnl-big .pnl-ic { width: 36px; height: 36px; }
  .pnl-bar .pnl-tel { font-size: 27px; padding: 13px 20px; }
  .pnl-rail { top: 94px; }
}
/* 첫 화면(에러코드)의 본문·트리파크 상자 자리: 본문은 메뉴 줄 바로 옆, 상자는 덩어리의 오른쪽 끝 */
@media (min-width: 1240px) {
  html.pnl-web main.wrap { max-width: min(980px, calc(100vw - 214px - 350px)) !important; margin-left: 10px !important; }
  html.pnl-web .side-mireka { right: calc(var(--pnl-x) + 10px) !important; }
}

/* ── 폰 ── */
html.pnl-phone body { background: #2f2c2a !important; padding: 8px 8px 84px !important; margin: 0; }
html.pnl-phone .float-call { display: none !important; }
.pnl-screen { background: #f5efe6; border: 3px solid #191817; border-radius: 16px; overflow: clip; min-height: calc(100vh - 100px); }
.pnl-ptop { display: flex; align-items: center; gap: 8px; padding: 11px 14px; background: #14366a; color: #fff; }
.pnl-ptop .pnl-logo { font-size: 28px; font-weight: 900; letter-spacing: -.5px; color: #fff; }
.pnl-ptop .pnl-tp { margin-left: auto; background: #3e8e5a; color: #fff; border-radius: 11px; padding: 11px 26px; font-family: "Black Han Sans", "Malgun Gothic", sans-serif; font-size: 25px; line-height: 1; letter-spacing: 1px; box-shadow: inset 0 -4px 0 #2c6e43; }
.pnl-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 14px 0; }
.pnl-grid.end { margin: 18px 12px 16px; }
.pnl-grid a { display: block; background: #fffdf8; border: 1.5px solid #dccfb8; border-bottom: 5px solid #cdbd9f; border-radius: 12px; padding: 12px 4px 10px; text-align: center; font-weight: 900; color: #14366a; font-size: 17px; line-height: 1.2; }
.pnl-grid a .pnl-ic { width: 38px; height: 38px; display: block; margin: 0 auto 4px; }
/* 단추 5개: 6칸으로 나눠 윗줄 3개(2칸씩), 아랫줄 2개(3칸씩, 서로 같은 크기) */
.pnl-grid.five { grid-template-columns: repeat(6, 1fr); }
.pnl-grid.five a { grid-column: span 2; }
.pnl-grid.five a:nth-child(n+4) { grid-column: span 3; }
.pnl-grid a.g { background: #3e8e5a; border-color: #3e8e5a; border-bottom-color: #2c6e43; color: #fff; }
.pnl-grid a.on { background: #14366a; border-color: #14366a; border-bottom-color: #0b2348; color: #fff; }
.pnl-keys { position: fixed; z-index: 60; left: 0; right: 0; bottom: 0; display: flex; justify-content: center; align-items: center; gap: 7px; padding: 10px 8px calc(10px + env(safe-area-inset-bottom, 0px)); background: #2f2c2a; }
.pnl-keys a { white-space: nowrap; background: #45413d; color: #f0e8da; border-radius: 10px; padding: 11px 12px; font-weight: 700; font-size: 16px; box-shadow: inset 0 -3px 0 #25221f; }
.pnl-keys a.st { display: flex; align-items: center; justify-content: center; gap: 9px; min-width: 210px; background: #e4570c; color: #fff; border-radius: 999px; box-shadow: inset 0 -4px 0 #b03f06; font-weight: 900; font-size: 22px; padding: 12px 30px; }
.pnl-keys a.st .pnl-ic { width: 26px; height: 26px; stroke-width: 3.4; }
.pnl-keys a { font-size: 15px; padding: 11px 10px; }
/* ── 폰 새 모양 (김창수 2026-11-27 "촌스럽다 → 1번: 미색·초록, 글씨 가늘게, 처음으로 작게") ──
   위 규칙을 지우지 않고 아래에서 덧씌움. 되돌리려면 이 묶음만 지우면 예전 모양. */
html.pnl-phone body { background: #f8f3e9 !important; padding: 0 0 78px !important; }
html.pnl-phone .pnl-screen { background: #f8f3e9; border: 0; border-radius: 0; min-height: calc(100vh - 78px); }
html.pnl-phone .pnl-ptop { background: transparent; color: #215c3a; padding: 16px 18px 4px; }
html.pnl-phone .pnl-ptop .pnl-logo { font-size: 25px; font-weight: 700; color: #215c3a; letter-spacing: -.5px; }
html.pnl-phone .pnl-ptop .pnl-tp { background: #e6f1df; color: #215c3a; border-radius: 999px; padding: 9px 18px; font-family: "Noto Sans KR", "Malgun Gothic", sans-serif; font-size: 17px; font-weight: 700; letter-spacing: 0; box-shadow: none; }
html.pnl-phone .pnl-grid, html.pnl-phone .pnl-grid.five { grid-template-columns: 1fr 1fr; gap: 11px; margin: 14px 0; }
html.pnl-phone .pnl-grid.end { margin: 18px 16px 16px; }
html.pnl-phone .pnl-grid a, html.pnl-phone .pnl-grid.five a, html.pnl-phone .pnl-grid.five a:nth-child(n+4) { grid-column: auto; display: flex; align-items: center; gap: 12px; text-align: left; background: #fffdf8; border: 1.5px solid #e3d8c5; border-radius: 18px; padding: 16px 14px; font-weight: 700; font-size: 19px; color: #2b2a28; line-height: 1.2; }
html.pnl-phone .pnl-grid a .pnl-ic { width: 36px; height: 36px; margin: 0; stroke: #2f7a49; stroke-width: 2.4; }
html.pnl-phone .pnl-grid a.g { grid-column: 1 / -1 !important; background: #2f7a49; border-color: #2f7a49; color: #fff; }
html.pnl-phone .pnl-grid a.g .pnl-ic { stroke: #fff; }
html.pnl-phone .pnl-grid a.on { background: #e6f1df; border-color: #2f7a49; color: #215c3a; }
html.pnl-phone .pnl-keys { background: transparent; pointer-events: none; padding: 0 8px calc(16px + env(safe-area-inset-bottom, 0px)); }
html.pnl-phone .pnl-keys a.st { pointer-events: auto; min-width: 0; gap: 7px; background: #fffdf8; color: #215c3a; border: 1.5px solid #d9cdb8; box-shadow: 0 4px 14px rgba(60, 45, 20, .18); font-weight: 700; font-size: 17px; padding: 10px 22px; }
html.pnl-phone .pnl-keys a.st .pnl-ic { width: 21px; height: 21px; stroke-width: 3; }
html.pnl-phone.pnl-typing .pnl-keys { display: none; }   /* 글자 넣는 중(키보드 떠 있음)엔 숨김 */
@media print { .pnl-bar, .pnl-rail, .pnl-keys, .pnl-grid { display: none !important; } html.pnl-web body { padding: 0 !important; } }
