/* ===== 내 화면 ===== */
/* 개발자 목업(mockup/)을 복사한 custom/ 에만 있는 파일이다. 맨 마지막에 읽으므로 여기 적은 규칙이 앞 CSS 를 덮는다. 색·글꼴·간격을 바꾸려면 theme.css 의 --ui-* 토큰을 여기서 다시 정의하면 된다 */

/* 「계획」 탭 — 위 화면 전환 줄(.p5-bar)이 판 끝까지 닿게 탭 판의 여백을 뺀다. 계획 목록 · 지시 현황이 저마다 여백을 준다(5차 판 iframe 은 11-18 에 걷었다) */
#tab-plan5{padding:0}
/* 반별 작업지시서의 「재료 → 부품」 줄(plan.js sheetMat) */
.sh .sh-mat{font-size:9px;font-weight:600}
/* 작업지시서 · 발행 묶음(js/wo-sheet.js, 10-13 저녁): 5차 형식 — 줄ID · 내용 · 지시. 쪽 나눔은 style.css 의 .sh-page 를 같이 쓴다 */
.wo-page{font-size:11px}
.wo-h{display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 16px;padding:0 0 6px;border-bottom:2px solid var(--print-ink);margin-bottom:6px}
.wo-h b{font-size:16px;letter-spacing:.06em}
.wo-h span{font-family:var(--font-mono,ui-monospace,monospace);font-size:10px}
.wo-h .wo-no{font-size:12px;font-weight:700} /* 종이 번호 = 묶음 + 반(10-14 밤) */
.wo-h .wo-re{font-family:inherit;font-size:11px;font-weight:700;border:1.5px solid var(--print-ink);padding:0 6px} /* 다시 인쇄 회차 도장 */
.wo-t{width:100%;border-collapse:collapse;table-layout:fixed}
.wo-t th,.wo-t td{border:1px solid var(--print-border);padding:4px 6px;vertical-align:top;text-align:left}
.wo-t th{font-weight:bold;background:none;font-size:10px}
.wo-t .wo-lid{width:46px;text-align:center;font-family:var(--font-mono,ui-monospace,monospace);font-weight:600}
.wo-t .wo-q{width:56px;text-align:right;font-size:14px;font-weight:700;font-family:var(--font-mono,ui-monospace,monospace)}
.wo-t th.wo-q,.wo-t th.wo-lid{font-size:10px;white-space:nowrap}
/* 지시 현황의 지시 예정 줄(plan-history.js): 줄 전체 옅은 칠, ☐ · 빼기 · 이번 수량 입력 칸 */
#histSheet td.hq{background:var(--state-contended-bg)}
#histSheet .hq-now{width:52px;text-align:right}
#histSheet .hq-pick{margin:0 2px 0 0;vertical-align:middle}
#histSheet .hq-del{border:0;background:none;color:var(--ui-muted);cursor:pointer;padding:0 3px;font-size:14px;line-height:1;vertical-align:middle}
#histSheet .hq-del:hover{color:var(--ui-error)}
#histSheet .hq-flag{font-size:var(--text-small);opacity:.85}
.wo-t tr.wo-sec td{font-weight:700;font-size:10px;border-left:4px solid var(--print-ink);background:none}
.wo-head{font-weight:700}
.wo-sub{font-size:10px}
.wo-mat{font-weight:600}
.wo-foot{margin-top:6px;font-size:10px;border-top:1px dashed var(--print-border);padding-top:4px}
.wo-t tr{break-inside:avoid;page-break-inside:avoid}
/* 출고 창 왼쪽 아래 「수주 없이 출고 →」(10-14 밤, 수주 출고와 직접 출고를 한 창으로) */
/* 출고 창 한 장(10-14 밤, 시안 2): 표(수주 줄 · 거래처별) + 옆 간이 출고증. 가운데 칸 · 단계는 걷었다 */
#dlgShip .ship{grid-template-columns:minmax(0,1fr) 300px}
#dlgShip .ship>#shipMain{display:none}
/* 간이 출고증(11-20): 배경 판 금지 — 칸 바탕 · 장마다의 카드(테두리 · 둥근 모서리 · 그림자)를 뺀다. 장 머리 아래 굵은 선 · 줄 사이 점선은 종이 미리 보기라 둔다(계획 탭 간이 지시서와 같은 꼴) */
#shipT .q-mini{border:0;border-radius:0;background:transparent;box-shadow:none;margin-bottom:var(--space-3)}
#shipT .q-mini-h{padding-left:0;padding-right:0}
#shipT .q-mini ol{padding-left:0;padding-right:0}
#shipQ{margin-left:auto;width:260px;height:30px;padding:0 10px;border:1px solid var(--ui-border-strong);border-radius:8px;font:inherit}
.ship-go{border:0;background:none;padding:0;margin-left:4px;color:var(--xl);font:inherit;font-size:12px;text-decoration:underline;cursor:pointer}
.ship-slip li.short .q-mini-q,.ship-slip li.short small{color:var(--state-unplanned-text)}
.ship-tot{display:flex;justify-content:space-between;padding:4px 10px 6px;font-size:12.5px;color:var(--muted);border-top:1px solid var(--ui-border)}
@media (max-width:767px){#dlgShip .ship>#shipList,#dlgShip .ship>#shipT{display:block!important}#dlgShip .ship>#shipMain{display:none!important}#shipQ{width:100%;margin:6px 0 0}}
#dlgShip .dlg-head{flex-wrap:wrap}
#dlgShip .dlg-head h2{white-space:nowrap}
/* 창이 좁으면 간이 출고증은 표 아래로 */
@media (max-width:1250px){#dlgShip .ship{display:block;overflow:auto}#dlgShip .ship>*{border-left:0;overflow:visible}#dlgShip .ship>#shipList{overflow-x:auto}#dlgShip .ship>#shipT{border-top:1px solid var(--ui-border)}}
/* 출고 창의 「수주 없이」 줄(10-14 밤) */
.ship-x{border:0;background:none;padding:0 4px;font-size:18px;line-height:1;color:var(--muted);cursor:pointer}
.ship-x:hover{color:var(--state-unplanned-text)}
/* 등록 창 안의 품목 찾기 · 담은 품목(10-14 밤, 시안 custom/dev/시안_등록.html) */
#dlgDoc.is-new{height:min(980px,calc(100vh - 48px))}
#dlgDoc.is-new .dlg{height:100%}
#docPick .nf-form{margin-bottom:0}
.nf-form input,.nf-form select{width:100%}
.nf-cnt{margin:6px 0 4px;font-size:12.5px;color:var(--muted)}
.nf-cnt b{color:var(--ink)}
.nf-res{max-height:252px;overflow:auto;border:1px solid var(--ui-border)}
.nf-res table.grid{border-top:0;border-left:0}
.nf-res thead th{position:sticky;top:0;z-index:1}
.nf-res tr.nf-c.got td{background:var(--xl-soft)}
.nf-res tr.nf-c.off td{opacity:.55}
.nf-tag{display:inline-block;padding:0 5px;border-radius:999px;background:var(--xl-soft);color:var(--xl);font-size:11px;font-weight:700;line-height:16px;font-family:inherit}
.nf-cart input[type=number]{width:70px;text-align:right}
.nf-cart input[type=date]{width:100%}
.nf-x{border:0;background:none;padding:0 6px;font-size:18px;line-height:1;color:var(--muted);cursor:pointer}
.nf-x:hover{color:var(--state-unplanned-text)}
.nf-empty{color:var(--muted);text-align:center!important}
.nf-more{margin-top:8px}
.nf-more summary{cursor:pointer;font-weight:600;padding:4px 0}
.nf-more summary .muted{font-weight:400}
.nf-more .grid{margin-top:4px}
tr.nf-just td{animation:nfJust 1.4s ease-out}
@keyframes nfJust{from{background:var(--xl-soft)}to{background:transparent}}
@media (max-width:767px){.nf-res,.nf-cart{overflow-x:auto}.nf-res table.grid,.nf-cart table.grid{min-width:640px}}
/* 출고 등록 창의 수주 목록 — 엑셀식 한 줄 표(10-14 밤, 사용자 「좀 더 컴팩트하게 · 수주 등록 창 같은 엑셀 형식」) */
.ship-grid{min-width:828px;margin:0} /* 11-20 한 줄: 품번 열을 걷고 남은 · 출고 가능을 한 칸으로 — 품명 말고 660(납기 96 — 시계 + 「11/22 D-3」) + 품명 136(1280 의 창 왼쪽 칸 약 908 에 든다, 폰은 가로로 민다) */
.ship-grid thead th{position:sticky;top:0;z-index:2}
.ship-grid td.ck{text-align:center}
.ship-grid td.ship-p{vertical-align:top;font-weight:600} /* 바탕 칠은 뺐다(11-20 배경 판 금지) — 덩어리는 위 굵은 선이 가른다 */
.ship-grid tr.ship-first td{border-top:1px solid var(--ui-border-strong)}
.ship-grid tr.on td:not(.ship-p){background:color-mix(in srgb,var(--xl) 8%,var(--ui-surface))}
.ship-grid tr.off td:not(.ship-p){color:var(--muted)}
#dlgLegend .ship-soon,.ship-grid td.ship-soon,#shipNowSheet .sheet td.ship-soon{color:var(--state-partial-text);font-weight:600}
.ship-grid .ip-item-meta,.ship-grid .ip-spec{display:inline} /* 품명 칸(.ip-line) — 폰의 가로로 미는 표에서도 한 줄 */
/* 출고 창 품명 칸은 모든 폭에서 한 줄(폰 · 태블릿 포함 — 767 이하에서 세 줄로 접혔고, 태블릿 136px 에서는 사양 칩이 품명을 0 으로 밀었다, 11-20 기준본 검토). 사양 칩이 먼저 줄고 품명은 4.5em 을 지킨다 */
.ship-grid .ip-line{display:flex;align-items:center;gap:4px;min-width:0}
.ship-grid .ip-line>*{flex:none}
.ship-grid .ip-line>.ip-nm{flex:1 1 auto;min-width:4.5em;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.ship-grid .ip-line>.sp-tag{flex:0 1 auto;min-width:0;overflow:hidden;text-overflow:ellipsis;margin-left:0}
.ship-grid .ip-line .ip-item{display:inline}#shipList .ship-grid .ip-line .ip-item-meta>small{display:inline;white-space:nowrap;margin-left:6px} /* 폰 규칙(style.css #shipList .grid td small{display:block})이 사양 글을 블록으로 세워 품명 칸이 세 줄이었다 */
.ship-grid .ip-item-meta{margin-left:6px}
.ship-grid .ship-why{color:var(--state-partial-text)}
.ship-grid td.ship-loc .ship-go{margin:0 6px 0 0} /* 꺼낼 곳 칸의 갈 곳 단추(조립 계획 → · 실적 입력 →)는 까닭 글 앞에 선다(ship.js rowOf) */
.ship-grid input.sh-qty,.ship-grid input.sh-fq{font-weight:700}
.ship-grid tr.ship-free td.ship-p{padding:1px 2px;background:var(--ui-surface)}
.ship-grid .ship-fp{cursor:pointer;height:calc(var(--row-h) - 4px)}
.ship-grid .ship-fp.bad{border-color:var(--state-unplanned-border);background:var(--state-unplanned-bg)}
.ship-nmw{display:flex;align-items:center;gap:6px}
.ship-nmw .ship-nm{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis}
.ship-grid .ship-nmw .ship-price{width:84px;flex:none}
/* 출고 등록 창의 「수주 없이 출고」 칸 — 표 바로 아래에 붙은 품목 찾기(10-14 밤) */
.ship-freebox{margin-top:var(--space-3);padding-top:var(--space-2);border-top:1px dashed var(--ui-border-strong)}
.ship-freebox h3.sec{margin-top:0}
.ship-freebox .nf-res{max-height:212px}
.nf-res tr.nf-c{cursor:pointer}
.nf-res tr.nf-c:hover td{background:var(--hover)}
.nf-res tr.nf-c.off{cursor:not-allowed}
.ship-slip-nop .q-mini-h b{color:var(--state-unplanned-text)}
/* 간이 출고증 안의 「수주 없이」 품목 — 수량 · 꺼낼 곳 · 빼기(10-14 밤) */
.ship-slip li.ship-fl{align-items:center;gap:6px}
.ship-slip li.ship-fl .q-mini-n{flex:1;min-width:0}
.ship-slip .sh-fq{width:58px;height:24px;padding:0 4px;border:1px solid var(--ui-border-strong);border-radius:4px;text-align:right;font:inherit;font-weight:700}
.ship-slip small select{height:20px;max-width:150px;font-size:11.5px}
.ship-slip small .ship-price{width:70px;height:20px;font-size:11.5px}
.ship-slip li.nf-just{animation:nfJust 1.4s ease-out}
/* 출고일 칸(출고 창 아래 줄 · 출고할 것, 고객 3c64476) */
.ship-at{display:inline-flex;align-items:center;gap:6px;white-space:nowrap}
/* 출고할 것(11-16, ship.js ShipNow): 인벤토리 › 출고 맨 위. 고객판의 흰 카드 대신 선과 여백만 — 높이만 묶어 아래 출고 목록이 남게(가로 배치에서는 푼다).
   11-20 한 줄(docs/계획_인벤토리한줄_20261120.md 「출고」): 표는 발주할 것과 같은 한 줄 시트(#shipNowSheet — makeSheet · 폰 카드). 상자 안 뼈대는 index.html 에 있어 늘 비어 있지 않다 */
#shipNow{margin:0 0 var(--space-3)}
.ship-now-head{display:flex;align-items:center;gap:var(--space-2)}
.ship-now-head h2{margin:0 0 var(--space-1);font-size:var(--text-title)}
.ship-now-all{display:none;align-items:center;gap:4px;margin-left:auto;font-weight:400;white-space:nowrap} /* 「모두」 ☐ 는 폰 카드에서만 — PC 는 시트 머리의 ☐(카드는 머리 줄이 없다) */
#shipNowSheet{max-height:min(30vh,260px);border-top-color:var(--ui-border)} /* id 로 — 뒤에 실리는 .hv-sheet 높이를 이긴다(#histPoSheet 와 같다) */
/* 한 줄 시트(PC): 카드 표(mobileCards)의 두 줄 칸 · 큰 입력을 한 줄 · 26px 로(plan-history.css #histPoSheet 와 같은 꼴). 행 번호 칸은 0 폭으로 접고 품명 칸(다섯째 col — 행 번호 · 선택 · 거래처 · 수주번호 다음)이
   남는 폭을 다 갖는다 — 끝의 빈 칸은 0. 고정 636(선택 28 · 거래처 92 · 수주번호 120 · 납기 100 · 수량 88 · 이번 출고 68(머리 「이번 출고」가 드는 폭, 11-20 낮) · 꺼낼 곳 140 — 「위치 · 수 외 n」까지, 128 에서는 「외 n」의 수가 잘렸다) + 품명 최소 120 이라 표는 756px 아래에서 민다
   (1280 의 왼쪽 칸 약 770 에 품명 약 150). 수주번호 120 은 「SD260818-12」 + 긴급 깃발, 납기 100 은 시계 + 「11/22 D+12」, 수량 88 은 남은 세 자리 + 출고 가능 자리(11-20 검토 — 80 · 100 · 76 에서는 깃발 · D-day · 남은 수가 잘렸다). 거래처 덩어리의 첫 줄(거래처 칸 td.ship-first)은 위에 굵은 선, 체크한 줄은 옅은 칠, 고른 줄은 그 위에(공통 고른 줄 색) */
@media (min-width:768px){
  #shipNowSheet{--rn-w:0px}
  #shipNowSheet table.sheet{min-width:756px}
  #shipNowSheet .sheet th.rn{padding:0;border:0;font-size:0}
  #shipNowSheet .sheet col:nth-child(5){width:auto!important}
  #shipNowSheet .sheet col:last-child{width:0!important}
  #shipNowSheet .sheet :is(th,td):last-child{padding:0;border:0}
  #shipNowSheet table.sheet td,#shipNowSheet table.sheet thead th:has(>.ship-q){white-space:nowrap;padding:0 8px} /* 수량 머리는 칸과 같은 8px — 머리의 세로 선이 칸의 세로 선과 같은 자리(머리가 범례) */
  #shipNowSheet table.sheet td[data-role="input"]{padding:0 4px;overflow:hidden}
  #shipNowSheet table.sheet td[data-role="input"] :is(input:not([type=checkbox]),select){height:26px;min-height:0;width:100%;max-width:100%;font-size:12.5px}
  #shipNowSheet table.sheet td[data-col-key="pick"]{text-align:center}
  #shipNowSheet table.sheet tr[data-r]:not([data-r="0"]):has(>td.ship-first)>td{border-top:1px solid var(--ui-border-strong)}
  #shipNowSheet table.sheet tr:has([data-now-pick]:checked)>td{background:color-mix(in srgb,var(--xl) 8%,var(--ui-surface))}
  #shipNowSheet table.sheet tbody tr:has(td.sel)>td{background:color-mix(in srgb,var(--xl) 10%,var(--ui-surface))}
}
@media (max-width:767px){
  .ship-now-all{display:inline-flex}
  #shipNowSheet .ship-q{justify-content:flex-start;gap:6px}
  #shipNowSheet .ship-q>*{flex:none;border:0;padding:0}
  #shipNowSheet .ship-q-rem::before{content:"남은 ";font-weight:400;color:var(--ui-muted)} /* 카드에는 머리 범례가 없다 */
  #shipNowSheet .ship-q-can::before{content:"가능 ";color:var(--ui-muted)}
}
/* 수량 한 칸(11-20 — 출고할 것 · 출고 창 · 범례 견본): 굵은 남은 │ 파란 출고 가능(수주 표 계획의 「출고 가능 파랑」과 같은 색). 출고 가능 자리는 34px(「9,999」까지 — 재고 표 .inv-q 와 같다), 머리가 같은 자리의 범례 */
.ship-q{display:flex;justify-content:flex-end;align-items:baseline;white-space:nowrap;font-variant-numeric:tabular-nums}
.ship-q-rem{flex:1 1 auto;min-width:0;overflow:hidden;text-overflow:ellipsis;text-align:right;padding-right:4px}
.ship-q-can{flex:0 0 34px;overflow:hidden;text-overflow:ellipsis;text-align:right;border-left:1px solid var(--ui-border-strong);color:var(--qty-order)}
.ship-q-head{font-size:var(--text-small);color:var(--ink)}
.ship-soon>.itag{margin-right:4px} /* 납기 칸의 시계와 날짜 사이(입고 .rc-late 와 같다) */
.itag.ui-icon-flag{margin-left:4px} /* 수주번호 뒤 긴급 깃발 */
.ship-now-foot{display:flex;align-items:center;flex-wrap:wrap;gap:var(--space-2);padding:var(--space-2) 0;border-top:1px solid var(--ui-border);border-bottom:1px solid var(--ui-border)}
.ship-now-foot .grow{flex:1}
.ship-now-foot .status{color:var(--muted);font-size:var(--text-small)}
.ship-now-foot .status.bad{color:var(--bad)}
.ship-now-empty{margin:0;padding:var(--space-1) 0}
/* 쓰일 곳 — 출고증의 수주 없이 줄 · 실사 창(10-14 밤) */
.need-list{margin:2px 0 2px;padding-left:16px;line-height:1.55}
.need-list li{white-space:normal}
.need-st{color:var(--muted)}
.ship-need{margin-top:3px;font-size:12px}
.ship-need summary{cursor:pointer;color:var(--muted)}
.ship-need.over summary{color:var(--state-unplanned-text);font-weight:600}
.ship-need .need-list{font-size:12px;padding-left:14px}
.ship-need small{font-size:11.5px}
.app-confirm-message{white-space:pre-line}
/* 인벤토리 › 불출 확정(10-14 밤 — 지시 현황에서 옮김) */
@media screen{ /* #invSeg 는 발주 · 출고 판에서 #docToolbar 로 옮겨 가서 아이디로 잡는다(11-16) */
  #invSeg{flex:0 1 auto;min-width:0;max-width:100%;flex-wrap:nowrap;overflow-x:auto;overflow-y:hidden;scrollbar-width:thin}
  #invSeg button{flex:0 0 auto;white-space:nowrap;padding:var(--space-1) var(--space-3)}
  #invSeg button:focus-visible{outline-offset:-3px}
}
#tab-inv.inv-issue #invToolbar > :not(.inv-seg){display:none}
#tab-inv.inv-issue #invSheet{display:none}
/* 발주 · 출고 판(11-16): 수주 탭의 도구줄 · 할 것 · 현황 머리 줄 · 시트를 빌려 오므로 재고 도구줄 · 시트를 통째로 감춘다(docs.js docPlace) */
#tab-inv.inv-list #invToolbar,#tab-inv.inv-list #invSheet{display:none}
/* 재고 표 「재고 수량」 칸(11-19, inv.js invSheet stockQty — 계획 목록 수량 칸 assembly.css .pl-q 와 같은 꼴, 폭이 달라 따로 둔다): 굵은 여유 재고 │ 입고 예정 · 필요 수량 · 안전재고.
   셋은 늘 같은 자리(고정 폭 33px · 숫자 폭 고정)에 색 숫자로 선다 — 입고 파랑(계획 목록 지시 충당과 같은 색) · 필요 주황 · 안전 회색, 0 · 미설정은 흐린 「·」 · 「–」. 머리(headHtml)가 같은 자리 · 같은 색이라 범례다.
   세로 선은 입고 자리의 왼쪽 선(글 노드가 아니다), 바탕 칠은 없다. 열 170 에서 여유 자리는 남는 59(글 55 — 굵은 「-12,345」까지), 머리의 정렬 ▼ 는 여유 자리의 빈 왼쪽에 둔다(오른쪽이면 머리의 세 자리가 아래 칸보다 왼쪽으로 밀린다).
   폰은 ▼(30px, left 4)가 「여유」 머리 글 바로 앞(1px)에서 끝난다 — 자리를 34 로 넓히면 겹친다. 줄바꿈을 켜도 이 칸은 한 줄(자리가 늘 같게).
   ponytail: 세 자리는 「9,999」 · 「12.75」까지(맑은 고딕 13.5px 32.7px) — 다섯 자리(10,000)는 그 자리 안에서 말줄임이고 칸 풍선 · 인쇄 글에 다 있다. 흔해지면 자리를 41, 열을 194 로(폰 밀리는 자리 195 안)
   사양별로 여유와 부족이 함께인 칸(초록 여유 + 빨강 부족)은 둘에 사이 .35em(빈칸 한 자 4.75px)을 더해 55 를 넘기 쉽다(「250 -125」 57.3 · 「1,200 -30」 60.8). 넘치면 여유만 말줄임으로 줄고 빨강 부족은 늘 다 선다(검토: 칸 하나에 말줄임을 걸면
   끝의 부족이 잘려 「1,200 …」이 넉넉한 재고처럼 보였다) — 「250 -125」는 「2… -125」, 여유 몫 전부는 칸 풍선 · 인쇄 글에. 부족이 네 자리(굵은 「-1,200」 40.4)면 여유 자리가 말줄임 점(11.9)보다 좁아 점 일부만 서고,
   부족이 사이를 빼고 남는 50 을 넘으면(굵은 「-12,345」 48.2 까지는 든다) 부족의 앞자리가 잘린다 */
#dlgLegend .inv-qty,#invSheet .inv-qty{display:flex;justify-content:flex-end;align-items:baseline;white-space:nowrap;font-variant-numeric:tabular-nums}
#dlgLegend .inv-q-avail,#invSheet .inv-q-avail{flex:1 1 auto;min-width:0;overflow:hidden;text-overflow:ellipsis;text-align:right;padding-right:4px}
#dlgLegend .inv-q,#invSheet .inv-q{flex:0 0 33px;overflow:hidden;text-overflow:ellipsis;text-align:right}
#dlgLegend .inv-q-inc,#invSheet .inv-q-inc{border-left:1px solid var(--ui-border-strong);flex-basis:34px;color:var(--qty-order)}
#dlgLegend .inv-q-dem,#invSheet .inv-q-dem{color:var(--qty-need)}
#dlgLegend .inv-q-safety,#invSheet .inv-q-safety{color:var(--muted)}
#dlgLegend .inv-qty .inv-q-0,#invSheet .inv-qty .inv-q-0{color:var(--muted)}
#dlgLegend .inv-qty .inv-q-chk,#invSheet .inv-qty .inv-q-chk{color:var(--warn)}
#dlgLegend .inv-qty .inv-q-short,#invSheet .inv-qty .inv-q-short{color:var(--bad)}
#dlgLegend .inv-qty .inv-q-surplus,#invSheet .inv-qty .inv-q-surplus{color:var(--qty-stock)}
#dlgLegend .inv-qty .inv-q-avail:has(>.inv-q-surplus),#invSheet .inv-qty .inv-q-avail:has(>.inv-q-surplus){display:flex;justify-content:flex-end;column-gap:.35em}
#dlgLegend .inv-q-avail>.inv-q-surplus,#invSheet .inv-q-avail>.inv-q-surplus{min-width:0;overflow:hidden;text-overflow:ellipsis}
#dlgLegend .inv-q-avail>.inv-q-short,#invSheet .inv-q-avail>.inv-q-short{flex:none}
#dlgLegend .lg-qhead .inv-q-avail,#invSheet thead .inv-q-avail{color:var(--ink)}
#dlgLegend .lg-qhead .inv-qty,#invSheet thead .inv-qty{font-size:var(--text-small)}
#invSheet thead th:has(>.inv-qty) .af{float:none;position:absolute;left:4px;top:2px;margin:0}
@media (max-width:767px){
  #invSheet .sheet thead th:has(>.inv-qty){padding-right:5px}
  #invSheet .sheet thead th:has(>.inv-qty) .af{left:4px;right:auto;top:3px}
}
/* 수주 표(11-20, docs.js — docs/계획_인벤토리한줄_20261120.md 「수주 표」). 판정 줄 색: 칸마다 .pl-tint-<색>(docs.js JUDGE_TINT — 수주 줄만), 계획 목록 지시상태와 같은 색(assembly.css 의 네 줄과 같은 섞음).
   맨 끝 빈 칸도 같이 칠하고, 폰의 고정 첫 열(style.css .sheet td:nth-child(2) 의 흰 바탕)은 id 가 든 이 규칙이 이긴다. 고른 줄은 고른 줄 칠이 앞선다(네 색 뒤). 범례 견본은 assembly.css 의 .lg-swatch.pl-tint-* */
#docSheet .sheet td.pl-tint-red,#docSheet .sheet td.pl-tint-red+td:last-child{background:color-mix(in srgb,var(--state-unplanned-bg) 75%,var(--ui-surface))}
#docSheet .sheet td.pl-tint-yellow,#docSheet .sheet td.pl-tint-yellow+td:last-child{background:color-mix(in srgb,var(--state-partial-bg) 75%,var(--ui-surface))}
#docSheet .sheet td.pl-tint-blue,#docSheet .sheet td.pl-tint-blue+td:last-child{background:color-mix(in srgb,var(--state-contended-bg) 75%,var(--ui-surface))}
#docSheet .sheet td.pl-tint-green,#docSheet .sheet td.pl-tint-green+td:last-child{background:color-mix(in srgb,var(--state-ready-bg) 75%,var(--ui-surface))}
#docSheet .sheet tr:has(td.sel) td.pl-tint,#docSheet .sheet tr:has(td.sel) td.pl-tint+td:last-child{background:color-mix(in srgb,var(--xl) 10%,var(--ui-surface))}
/* 수량 한 칸(docs.js soQtyHtml · SO_QTY_HEAD): 굵은 주문량 │ 출고(초록 — 계획 목록 재고 충당과 같은 색) · 출고 가능(파랑 — 출고할 것의 출고 가능과 같은 색). 둘은 늘 같은 자리(고정 폭 · 숫자 폭 고정)이고 0 은 흐린 「·」.
   머리(headHtml)가 같은 자리 · 같은 색이라 범례다. 세로 선은 출고 자리의 왼쪽 선(글 노드가 아니다), 바탕 칠은 없다. 열 132 에서 주문량 자리는 남는 52(굵은 「12,345」까지), 머리의 정렬 ▼ 는 주문량 자리의 빈 왼쪽.
   ponytail: 두 자리는 「9,999」까지(재고 표 .inv-q 와 같은 34) — 다섯 자리는 자리 안에서 말줄임이고 칸 풍선 · 인쇄 글에 다 있다 */
#dlgLegend .so-qty,#docSheet .so-qty{display:flex;justify-content:flex-end;align-items:baseline;white-space:nowrap;font-variant-numeric:tabular-nums}
#dlgLegend .so-q-ord,#docSheet .so-q-ord{flex:1 1 auto;min-width:0;overflow:hidden;text-overflow:ellipsis;text-align:right;padding-right:4px}
#dlgLegend .so-q,#docSheet .so-q{flex:0 0 34px;overflow:hidden;text-overflow:ellipsis;text-align:right}
#dlgLegend .so-q-done,#docSheet .so-q-done{border-left:1px solid var(--ui-border-strong);flex-basis:35px;color:var(--qty-stock)}
#dlgLegend .so-q-can,#docSheet .so-q-can{color:var(--qty-order)}
#dlgLegend .so-qty .so-q-0,#docSheet .so-qty .so-q-0{color:var(--muted)}
#dlgLegend .lg-qhead .so-q-ord,#docSheet thead .so-q-ord{color:var(--ink)}
#dlgLegend .lg-qhead .so-qty,#docSheet thead .so-qty{font-size:var(--text-small)}
#docSheet thead th:has(>.so-qty) .af{float:none;position:absolute;left:4px;top:2px;margin:0}
@media (max-width:767px){
  #docSheet .sheet thead th:has(>.so-qty){padding-right:5px}
  #docSheet .sheet thead th:has(>.so-qty) .af{left:4px;right:auto;top:3px}
}
.doc-now{flex:none;min-width:0}
#poNow #histPoSheet{max-height:min(30vh,260px)} /* 폰에서도 높이를 묶어 아래 발주 현황이 남게 */
.list-head{flex:none}
.list-head .lh-title{font-size:14px;margin-right:6px;white-space:nowrap}
/* 발주 · 출고 현황 폭(11-20 검토, docs.js PO_W · SH_W): 인벤토리(768 이상)에서는 품목 요약(다섯째 col — 행 번호 · 문서번호 · 날짜 · 거래처 다음)이 남는 폭을 다 갖고 끝의 빈 칸은 0 —
   768~1279 의 쌓은 배치에서는 표가 탭 폭을 채운다(고정 폭이면 품목 요약이 잘린 채 오른쪽이 비었다). 표 최소 폭은 고정 364 + 품목 요약 64 = 428(+ 행 번호 — 1280 이상 칸에서는 0):
   1280 이상 오른쪽 칸(1280 에서 449, 세로 막대가 서면 434)에서 상태까지 다 든다(11-20 낮 — 460 일 때는 1280 · 1366 에서 상태 ▼ 를 밀었다). 수주 탭(#tab-docs)으로 돌아간 시트에는 걸리지 않는다(「>」) */
@media (min-width:768px){
  #tab-inv.inv-list>#docSheet .sheet col:nth-child(5){width:auto!important}
  #tab-inv.inv-list>#docSheet .sheet col:last-child{width:0!important}
  #tab-inv.inv-list>#docSheet .sheet :is(th,td):last-child{padding:0;border:0}
  #tab-inv.inv-list>#docSheet table.sheet{min-width:calc(428px + var(--rn-w))}
}
/* 인벤토리 가로 배치(11-20, docs/계획_인벤토리한줄_20261120.md 「공통 틀」): issue-confirm.js 가 1280 이상 · 폰 아님이면(Assembly.split — 1280 숫자는 JS 한 곳) #tab-inv 에 is-wide 를 단다.
   발주 · 출고 판(.inv-list)은 docPlace 가 옮겨 온 조각이 #tab-inv 의 바로 아래 자식이라 #tab-inv 자체가 격자다 — 위 줄(#docToolbar)이 두 칸 위를 가로지르고,
   왼쪽 할 것(#poNow 발주할 것 · #shipNow 출고할 것, 남는 폭) | 오른쪽 현황(#docListHead · #docSheet, min(36%,600px) — 1280 에서 약 449, 1600 에서 564, 1920 에서 600px). 칸 사이는 할 것 오른쪽의 1px 선 하나, 배경 판 없음.
   두 칸 모두 탭 높이를 다 쓰고 표만 민다(할 것 표의 높이 묶음 30vh · 260px 를 푼다). 할 것이 0건이어도 칸은 그대로다(판이 비고 찰 때 틀이 움직이지 않게).
   권한이 없어 할 것이 숨으면(발주 수정 권한이 없으면 #histPo, 출고 권한이 없으면 #shipNow) 현황 한 칸이다(계획 탭의 :has(…[hidden]) 와 같은 꼴 — 현황은 늘 마지막 칸 -2/-1).
   현황 표는 행 번호 칸을 0 폭으로 접는다(계획 탭 나간 지시 한 줄 목록과 같다 — 좁은 칸에서 44px). 머리 줄의 날짜 두 칸은 기간이 「직접 선택」일 때만 선다.
   모든 규칙은 #tab-inv 아래이고 「>」로 건다 — 같은 조각이 수주 탭(#tab-docs)으로 돌아가면 걸리지 않는다. [hidden] 을 이기지 않게 :not([hidden]). 768~1279 · 폰은 지금처럼 위아래로 쌓는다 */
#tab-inv.inv-list.is-wide:not([hidden]){display:grid;grid-template-columns:minmax(0,1fr) min(36%,600px);grid-template-rows:auto auto minmax(0,1fr)}
#tab-inv.inv-list.is-wide:not(:has(>#shipNow:not([hidden]),>#poNow:not([hidden])>#histPo:not([hidden]))){grid-template-columns:minmax(0,1fr)}
#tab-inv.inv-list.is-wide>#docToolbar{grid-column:1/-1;grid-row:1;min-width:0}
#tab-inv.inv-list.is-wide>.doc-now:not([hidden]){grid-column:1;grid-row:2/4;min-width:0;min-height:0;margin:0;padding-right:var(--space-3);border-right:1px solid var(--ui-border);display:flex;flex-direction:column;overflow:hidden}
#tab-inv.inv-list.is-wide>#poNow:has(>#histPo[hidden]){display:none}
#tab-inv.inv-list.is-wide>#poNow>#histPo:not([hidden]){flex:1 1 auto;min-height:0;display:flex;flex-direction:column}
#tab-inv.inv-list.is-wide>#poNow>#histPo>.hv-sentbar{flex:none;margin:0;min-height:44px}
#tab-inv.inv-list.is-wide>#poNow #histPoSheet{flex:0 1 auto;min-height:0;max-height:none}
#tab-inv.inv-list.is-wide>#shipNow>*{flex:none}
#tab-inv.inv-list.is-wide>#shipNow>.ship-now-tbl{flex:0 1 auto;min-height:0;max-height:none}
@media (min-width:768px){ /* 쌓은 배치(768~1279)에서도 — 머리 글이 발주할 것 · 받을 것 · 내줄 것과 같은 높이에 선다(11-20 낮, 전에는 10px 위). 폰은 그대로 */
  #tab-inv.inv-list>#shipNow>.ship-now-head{min-height:44px}
  #tab-inv.inv-list>#shipNow>.ship-now-head>h2{margin:0}
}
#tab-inv.inv-list.is-wide>#shipNow>.ship-now-foot{margin-top:auto;border-bottom:0} /* 아래 줄은 왼쪽 칸 바닥 — 위 선 하나 */
#tab-inv.inv-list.is-wide>#docListHead:not([hidden]){grid-column:-2/-1;grid-row:2;min-width:0;min-height:44px;box-sizing:border-box;padding:var(--space-1) 0 var(--space-1) var(--space-3);gap:6px;align-content:center}
#tab-inv.inv-list.is-wide>#docListHead label.inline:has(#docPeriod):not(:has(#docPeriod option[value="custom"]:checked)) :is(#fFrom,#fTo,#fFrom+.muted){display:none}
#tab-inv.inv-list.is-wide>#docListHead #fQuery{width:auto;flex:1 1 80px;min-width:64px;max-width:280px} /* style.css input[type=search]{width:280px}(요소 + 속성)를 이기게 id 로 */
#tab-inv.inv-list.is-wide>#docSheet{grid-column:-2/-1;grid-row:3;min-width:0;min-height:0;border:0;border-top:1px solid var(--ui-border);border-radius:0;--rn-w:0px}
#tab-inv.is-wide :is(#docSheet,.ex-page>.ex-main) .sheet th.rn{padding:0;border:0;font-size:0}
/* 「오른쪽으로 스크롤 →」 글(ui-polish)은 두 칸에서도 숨기지 않는다 — 1280 · 1366 에서 칸보다 넓은 표(발주 · 출고 · 입고 현황, 받을 것 외주)는 이 글이 가린 열이 있다고 알리는 하나뿐인 표지다.
   (11-20 검토: 숨기는 규칙이 자손 선택자라 재고 표 · 판 안의 창 표의 글까지 숨겼고, 숨긴 칸에서는 상태 열이 칸 밖이어도 알 길이 없었다) */
#tab-inv > #issView,#tab-inv > #recvView{padding:0} /* 위 여백 없음 — 있으면 입고 · 불출에서만 「재고 · 발주 · 입고 · 불출 · 출고」 줄이 8px 내려가 판을 오갈 때 단추가 움직였다(사용자, 11-20) */
#recvView #recvLeft{margin-top:var(--space-4)}
#recvView #recvFree{margin-top:var(--space-4)} /* 지시 없이 입고(10-19) */
.tab .hv-n{margin-left:4px;vertical-align:1px}
/* 계획 탭 오른쪽 「실적 입력」(10-14 밤 — 전산 관리자, 색을 입힘). 열려 있으면 테두리 */
#btnPlanWork.is-on{background:var(--ui-accent-hover);box-shadow:0 0 0 2px var(--ui-surface),0 0 0 4px var(--xl)}
/* 불출 확정 아래 「지시 없이 불출」(10-16) */
#issView #issFree{margin-top:var(--space-4)}
.iss-free-go{display:flex;align-items:center;gap:10px;margin-top:8px}
/* 인벤토리 불출 · 입고의 시트(10-16 밤, 사용자 「나간 지시 창 같은 엑셀 컨셉으로」) — 나간 지시 시트(.hv-sheet)에 칸 안 입력 */
.ex-sheet .sheet tbody tr[data-r]{cursor:default}
.ex-sheet .sheet td select.ex-sel{height:24px;max-width:100%;padding:0 4px;border:1px solid var(--ui-border-strong);border-radius:4px;font:inherit;font-size:12.5px;background:var(--ui-surface);vertical-align:middle}
#dlgLegend input.ex-num,.ex-sheet .sheet td input.ex-num{height:24px;width:100%;padding:0 6px;border:1px solid var(--ui-border-strong);border-radius:4px;font:inherit;text-align:right;font-weight:700;background:var(--ui-surface)}
.ex-sheet .sheet td input.ex-num:focus,.ex-sheet .sheet td select.ex-sel:focus{outline:2px solid var(--xl);outline-offset:-1px}
#dlgLegend input.ex-num.iss-over,.ex-sheet .sheet td input.ex-num.iss-over{border-color:var(--bad);color:var(--bad)} /* 불출 확정(10-18): 꺼낸 곳 재고보다 많이 적은 칸 */
#dlgLegend input.ex-num{width:80px;pointer-events:none} /* 불출 범례(issue-confirm.js 'iss')의 칸 견본 — 칸이 아니라 견본 폭, 누를 수 없다 */
.ex-sheet .rc-mats{font-size:12.5px}
.ex-sheet .rc-mats select.ex-sel{width:auto;margin-left:4px}
.ex-cart{max-height:260px}
#issFreeSheet{margin-top:8px}
.iss-free-go:empty{display:none}
/* 품목 창의 두 탭(10-16 밤) — 수량 맞추기 | 품목 정보 */
.dlg-head .itab{margin-left:8px}
.dlg-head .itab button{min-width:84px}
/* 관리 › 마감·감사의 재고 전표 · 수량 맞춘 기록(10-16 밤) */
.admin-log-bar{display:flex;align-items:center;gap:10px;margin-bottom:8px}
.admin-log-bar input{width:320px;max-width:100%;height:30px;padding:0 10px;border:1px solid var(--ui-border-strong);border-radius:8px;font:inherit}
#adminLogSheet{max-height:calc(100vh - 300px)}
/* 재고 조사(10-16 밤, count-sheet.js) — 큰 창: 왼쪽 유형 단추 · 올라간 품목, 오른쪽 인쇄될 종이 미리 보기(시안 dev/시안_재고조사표.html) */
#dlgCountSheet .dlg{width:min(1480px,calc(100vw - 48px));height:calc(100vh - 48px)}
#dlgCountSheet .dlg-head{gap:12px}
#dlgCountSheet .dlg-body{display:grid;grid-template-columns:minmax(360px,600px) minmax(0,1fr);gap:var(--space-4);overflow:hidden}
.cs-left,.cs-right{display:flex;flex-direction:column;min-height:0;min-width:0}
.cs-deptbox{display:flex;align-items:center;gap:6px;font-size:var(--text-base);font-weight:normal;margin-left:auto}
.cs-deptbox input{width:170px}
.cs-chips{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:var(--space-3)}
.cs-chip{height:28px;padding:0 10px;border:1px solid var(--ui-border-strong);border-radius:14px;background:var(--ui-surface);font:inherit;font-size:12.5px;cursor:pointer;color:inherit}
.cs-chip small{color:var(--muted);margin-left:3px}
.cs-chip.on{background:var(--ui-accent);border-color:var(--ui-accent);color:var(--ui-on-accent)}.cs-chip.on small{color:inherit;opacity:.8}
.cs-chip.part{border-color:var(--ui-accent);background:var(--ui-accent-soft);color:var(--ui-accent)}
.cs-list{flex:1;min-height:120px;overflow:auto;border:1px solid var(--grid);border-radius:6px}
.cs-tbl{table-layout:fixed;width:100%}.cs-tbl td{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.cs-tbl thead th{position:sticky;top:0;z-index:1}
.cs-tbl tr.cs-g td{border-top:2px solid var(--ui-border-strong)}
.cs-del{border:0;background:none;color:var(--muted);font-size:15px;line-height:1;cursor:pointer;padding:0 4px}.cs-del:hover{color:var(--ui-error)}
.cs-none{padding:22px;text-align:center;margin:0}
.cs-opts{display:flex;gap:18px;flex-wrap:wrap;margin-top:var(--space-2)}
.cs-prev{flex:1;min-height:0;overflow:auto;background:var(--ui-surface-subtle);border:1px solid var(--grid);border-radius:6px;padding:14px}
.cs-prev .cs-page{width:210mm;min-height:297mm;box-sizing:border-box;padding:11mm 10mm;margin:0 auto 14px;background:var(--print-bg);box-shadow:var(--ui-popup-shadow);zoom:var(--cs-zoom,.7)}
@media (max-width:900px){#dlgCountSheet .dlg-body{display:block;overflow:auto}.cs-list{max-height:40vh}.cs-prev{margin-bottom:var(--space-3)}}
/* 종이(미리 보기와 인쇄가 같이 쓴다). A4 세로 — 이름 붙인 쪽이라 다른 인쇄는 가로 그대로 */
.cs-page{font-size:11px;color:var(--print-ink);font-family:"Malgun Gothic",sans-serif;display:flex;flex-direction:column}
.cs-ph{display:flex;align-items:flex-end;gap:10px;border-bottom:2px solid var(--print-ink);padding-bottom:4px}
.cs-ph>b{font-size:20px;letter-spacing:.04em}.cs-ph .cs-dept{font-size:20px;font-weight:bold}
.cs-ph .cs-no{margin-left:auto;text-align:right;font-size:10px;line-height:1.5}.cs-ph .cs-no b{font-size:11px}
.cs-sign{display:grid;grid-template-columns:repeat(3,1fr);border:1px solid var(--print-ink);margin:6px 0 8px}
.cs-sign div{padding:5px 7px;border-right:1px solid var(--print-ink)}.cs-sign div:last-child{border-right:0}.cs-sign b{display:inline-block;width:64px}
.cs-t{width:100%;border-collapse:collapse;table-layout:fixed;font-size:10.5px}
.cs-t th{border:1px solid var(--print-ink);padding:3px 2px;font-weight:bold;background:none;color:var(--print-ink)}.cs-t th.cs-w{background:var(--print-head)}
.cs-t td{border:1px solid var(--print-ink);padding:2px 3px;height:26px;line-height:1.25;overflow-wrap:anywhere;color:var(--print-ink)}
.cs-t td:first-child{text-align:center}.cs-t td.num{text-align:right;color:var(--print-muted)}.cs-t td.mono{font-weight:bold}
.cs-t tr.cs-g td{border-top:2px solid var(--print-ink)}
.cs-pf{display:flex;justify-content:space-between;margin-top:6px;font-size:9.5px}
.cs-prev .cs-pf{margin-top:auto;padding-top:6px}
@page cs{size:A4 portrait;margin:11mm 10mm}
@media print{
  .cs-page{page:cs;break-after:page;page-break-after:always}
  .cs-page:last-child{break-after:auto;page-break-after:auto}
  .cs-t tr{break-inside:avoid;page-break-inside:avoid}
}
/* 품목 창 · 유형 기준표(10-16 밤) */
#itMat{display:flex;flex-wrap:wrap;gap:6px 16px}
#itMat label{display:inline-flex;align-items:center;gap:6px;white-space:nowrap}
#itMat input{width:150px}
#itBan,#itRule{font-size:12.5px}
.it-code-hint{font-size:12px;color:var(--ui-warning);margin-top:3px}.it-code-hint:empty{display:none}
.it-sug{border:0;background:none;padding:0;font:inherit;font-family:Consolas,monospace;color:var(--ui-accent);text-decoration:underline;cursor:pointer}
.kind-tbl tr.kind-g td{border-top:2px solid var(--ui-border-strong)}
.kind-tbl td{white-space:nowrap}
/* BOM 트리 양식 올리기(10-16 밤, bom-form.js) */
#bfPreview .bf-sum{margin:8px 0}
#bfPreview .bf-tbl{max-height:320px;overflow:auto;border:1px solid var(--grid);border-radius:6px;margin-bottom:8px}
#bfPreview .bf-tbl thead th{position:sticky;top:0;z-index:1}
#bfPreview .bf-tbl td{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
:is(#bfPreview,#adminBody .bm-gaps) .bf-list{font-size:12.5px;line-height:1.7;margin:4px 0 8px;max-height:200px;overflow:auto}
#bfPreview details{margin:4px 0}
/* 품목 창: 설명은 칸 이름에 마우스를 올리면(10-16 밤) — 점선 밑줄이 「설명 있음」 */
#dlgItem th[title]{cursor:help;text-decoration:underline dotted;text-decoration-color:var(--muted);text-underline-offset:3px}
/* 사양 꼬리표 표시(10-16 밤) — 전압 · 주파수 · 상수 같은 나누는 사양. 빈 꼬리표(사양 미정)는 노랗게 */
.sp-tag{display:inline-block;margin-left:4px;padding:0 6px;border-radius:9px;font-size:11.5px;line-height:18px;background:var(--ui-accent-soft);color:var(--ui-accent);white-space:nowrap;vertical-align:1px}
.sp-tag.none{background:var(--state-planned-bg);color:var(--state-planned-text)}
.wo-spec{font-size:12.5px;margin-top:1px}.wo-spec b{font-size:13.5px}.wo-spec .wo-paint{color:var(--ui-error)}
@media print{.wo-spec b{font-size:12pt}.wo-spec .wo-paint{color:var(--print-ink);text-decoration:underline}}
.kind-split .ks-chips{display:flex;flex-wrap:wrap;gap:5px;padding:5px 6px;white-space:normal}
.kind-split td{height:auto!important;white-space:normal!important;overflow:visible!important;vertical-align:middle}
#cntInfo .cnt-tagl{display:inline-flex;align-items:center;gap:4px;margin-right:6px}#cntInfo .cnt-tagf{width:90px}
/* 조립반 고르기(10-16 밤) — 미정은 노랗게 */
#dlgAsm .asm-size-sel{width:auto;min-width:64px;display:inline-block;vertical-align:middle}
.asm-size-sel{height:24px;padding:0 2px;font:inherit;font-size:12.5px;border:1px solid var(--ui-border-strong);border-radius:5px;background:var(--ui-surface)}
.asm-size-sel.unset{background:var(--state-planned-bg);color:var(--state-planned-text)}
/* 값 고르기 목록(10-17, suggest.js) — datalist 드롭다운 대신 칸 바로 아래 */
.sg-pop{position:fixed;z-index:1000;overflow:auto;max-width:360px;margin:0;padding:3px 0;background:var(--ui-surface);border:1px solid var(--ui-border-strong);border-radius:6px;box-shadow:var(--ui-popup-shadow);font-size:13px}
.sg-o{display:flex;justify-content:space-between;gap:12px;padding:4px 10px;cursor:pointer;white-space:nowrap}
.sg-o:hover{background:var(--ui-hover)}.sg-o.on{background:var(--ui-selected)}.sg-o.cur{font-weight:700}
/* 출고 등록 「재고로 보충」(10-17) */
.ship-grid td.ship-so .ship-stock{margin-left:8px;font-family:system-ui,sans-serif;white-space:nowrap}
.app-confirm .app-confirm-message{white-space:pre-line} /* 화면 안 확인창(10-18): 여러 줄 안내(초과 입고 · 정정 · 재고보다 많은 불출)를 줄 그대로 */
/* 단추 폭 고정(10-18, 2차 시험 ④-#10): 「출고」 ↔ 「체크한 n줄 출고」, 「지시서 발행」 ↔ 「체크한 n줄 지시서 발행」으로 글이 바뀌며 옆 단추(임시저장 · 지시 예정 비우기)를 밀어 그 자리를 덮었다 — 실제로 임시저장을 누르려다 출고됐다. 가장 긴 글 폭으로 미리 잡아 둔다 */
#shipDone{min-width:128px;white-space:nowrap}
#btnHistDispatch{min-width:192px;white-space:nowrap}

/* ===== 화면 톤(10-19) — 사용자 「부품 계획 칸의 바탕색이 괜찮은 것 같은데 전체적으로 그런 식으로 · 글자 크기를 잘 어울리게」 =====
   부품 계획(5차 판)처럼 연한 회색 바탕(#eef1f3) 위에 흰 판(옅은 테두리 · 둥근 모서리). 머리 줄은 흰 띠.
   글자는 한 벌: 본문 · 표 13.5 · 표 머리 12.5 · 판 제목 16(부품 계획 카드 제목과 같음) · 보조 글 12.5 · 단추 13. 되돌리려면 이 묶음만 지우면 된다 */
:root{--text-base:13.5px;--text-small:12.5px;--text-title:16px}
body{background:var(--ui-page)}
.top{background:var(--ui-surface)}
.tab{font-size:14px}
/* 판: 지시 현황 · 불출 · 입고 · 실적 입력의 큰 판, 문서 · 인벤토리 · 계획 목록의 엑셀 시트 */
#histView,#histView .hv-tabs{background:transparent}
.pq-card{border-color:var(--ui-card-line);border-radius:10px}
.pq-card > .pq-foot,.pq-card .pq-foot{border-radius:0 0 10px 10px}
#docSheet,#invSheet,#planSheet{border:1px solid var(--ui-card-line);border-radius:10px;background:var(--ui-surface)}
/* 글자 크기 한 벌 */
.pq-head h2{font-size:var(--text-title)}
.pq-head p{font-size:var(--text-small)}
.pq-sum{font-size:var(--text-base)}
.pq-table{font-size:var(--text-base)}
.pq-table th,.sheet thead th{font-size:var(--text-small);font-weight:600;color:var(--ui-muted)}
.pq-btn{font-size:13px}

/* 계획 화면의 장식만 정리한다. 공유 pq-*와 작업·입출고, 인쇄 서식은 유지한다. */
@media screen{
  #histView .hv-page{padding:var(--space-3)}
  #histView .hv-tabs{padding-left:var(--space-3);padding-right:var(--space-3)}
  #histView .pq-card{border:0;border-radius:0;background:transparent;box-shadow:none}
  #histView .pq-head{padding:var(--space-2) var(--space-3);border-bottom:0}
  #histView .pq-body{padding:var(--space-2) var(--space-3)}
  #histView .pq-foot{padding:var(--space-2) var(--space-3);gap:var(--space-2);border-radius:0;background:transparent}
  #histView .pq-sum{padding:var(--space-1) 0;gap:var(--space-1) var(--space-3);background:transparent;border-radius:0}
  #histView .pq-sec{margin-top:var(--space-2);margin-bottom:var(--space-1);gap:var(--space-2)}
  #histView .pq-chips{margin-top:var(--space-2);gap:var(--space-1)}
  #dlgLegend .pq-chip,#histView .pq-chip{border-radius:var(--radius)} /* #dlgLegend: 지시 예정 · 나간 지시 범례(plan-history.js)의 칩 · 수 · 필요일 견본이 지시 현황과 같은 모양 */
  #dlgLegend .pq-chip span,#histView .pq-chip span{background:transparent;border-radius:0}
  #dlgLegend .hv-n:not(.warn),#histView .hv-n:not(.warn){background:transparent;border-color:transparent;border-radius:0}
  #dlgLegend .q-due,#histView .q-due{border-radius:var(--radius)}
  #dlgLegend .q-due.far,#histView .q-due.far{border-color:transparent;background:transparent}
  #histView .hv-sheet{border-radius:0}
  #histView .hv-split{gap:var(--space-3)}
  #histView #queueSide{border-left:1px solid var(--ui-border)}
  #histView .pq-empty{padding-top:var(--space-3);padding-bottom:var(--space-2)}
  #histView .pq-empty p{margin-bottom:var(--space-2)}
  :is(#histView,dialog.planning-surface) .q-mini{border:0;border-radius:0;background:transparent;box-shadow:none;margin-bottom:var(--space-2)}
  :is(#histView,dialog.planning-surface) .q-mini:last-child{margin-bottom:0}
  :is(#histView,dialog.planning-surface) .q-mini-h{padding:var(--space-1) var(--space-2);border-bottom:1px solid var(--ui-border)}
  :is(#histView,dialog.planning-surface) .q-mini ol{padding-left:var(--space-2);padding-right:var(--space-2)}
  dialog.planning-surface{box-shadow:none}
  dialog.planning-surface .dlg-head,dialog.planning-surface .dlg-foot{padding:var(--space-2) var(--space-3)}
  dialog.planning-surface .dlg-body{padding:var(--space-3)}
  #dlgAsm.planning-surface .asm-make{padding:var(--space-2) 0;border:0;border-top:1px solid var(--ui-border);border-radius:0;background:transparent}
  #dlgAsm.planning-surface .asm-make>p:first-child{margin-top:0;margin-bottom:var(--space-2)}
  #dlgAsm.planning-surface .asm-make>.hint{margin-block:var(--space-1)}
}
@media screen and (max-width:1200px){
  #histView #queueSide{border-left:0;border-top:1px solid var(--ui-border)}
}
@media screen and (max-width:767px){
  #histView .hv-tabs{padding-left:var(--space-2);padding-right:var(--space-2)}
  #histView .pq-sec{column-gap:var(--space-2);row-gap:var(--space-1)}
  dialog.planning-surface .dlg-head,dialog.planning-surface .dlg-body,dialog.planning-surface .dlg-foot{padding:var(--space-2)}
}
