/* 검토 품목별 보기 (11/19 · itemview.js · 02_스케치/스케치_검토_품목별_보기.html 확정 모양) — 모든 클래스 .iv- 아래 */
/* 틀 = 그 화면 주문별 틀 그대로 (11/19 사용자 「간격과 레이아웃이 차이나」): 도구 줄은 [주문별 | 품목별]과 같은 줄 · 칸 너비 · 16px 간격 · 8px 모서리 · 칸마다 안에서 스크롤
   직배송 = 검토 rv-body3 (300 · 1fr · 320 · 창 높이에 맞춤) / 온라인 · 택배 = ol-3 (360 · 1fr · 320 · 높이 100vh − 300px) */
.iv-root { font-size: 13px; color: var(--text); }
.iv-root.iv-jb { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.iv-root button, .iv-root select, .iv-root input, .iv-root-t button, .iv-root-t input { font: inherit; }
.iv-root button, .iv-root-t button { cursor: pointer; } .iv-root button:disabled { cursor: not-allowed; }
.iv-load, .iv-none { padding: 24px; color: var(--text-mute); text-align: center; margin: 0; }

.iv-root-t { display: contents; }
.iv-tools { display: flex; align-items: center; gap: 8px 12px; margin-bottom: 12px; flex-wrap: wrap; }
.iv-chips { display: flex; gap: 6px; flex-wrap: wrap; flex: 1 1 auto; align-items: center; }
/* 직배송 검토 칩 (tpl/review.html chips · app.js chip()) */
.iv-chip { display: inline-flex; align-items: center; gap: 6px; border: 1px solid #C9CFD9; border-radius: 999px; padding: 4px 11px; background: #FFFFFF; color: #18212E; font-size: 12.5px; }
.iv-chip i { width: 7px; height: 7px; border-radius: 50%; } .iv-chip b { font-variant-numeric: tabular-nums; }
.iv-chip[aria-pressed="true"] { background: #18212E; border-color: #18212E; color: #FFFFFF; }

.iv-split { display: grid; grid-template-columns: 300px minmax(0, 1fr) 320px; grid-template-rows: minmax(0, 1fr); gap: 16px; }
.iv-jb .iv-split { flex: 1; min-height: 0; }
.iv-ol .iv-split { grid-template-columns: 360px minmax(0, 1fr) 320px; height: calc(100vh - 300px); min-height: 520px; }
.iv-card { background: #fff; border: 1px solid var(--line); border-radius: 8px; }
.iv-list, .iv-mid, .iv-pane { min-height: 0; min-width: 0; overflow-y: auto; }
.iv-mid { background: #fff; border: 1px solid var(--line); border-radius: 8px; } .iv-mid > .iv-card { border: 0; border-radius: 0; }
.iv-pill { display: inline-flex; align-items: center; font-size: 11.5px; font-weight: 700; padding: 1px 9px; border-radius: 999px; background: var(--gray-100); color: var(--text-2); white-space: nowrap; }
.iv-pill.carry, .iv-pill.sand { background: var(--sand-50); border: 1px solid var(--sand-100); color: var(--sand-700); }
.iv-pill.bad { background: var(--bad-50); color: var(--bad-600); border: 1px solid var(--bad-200); }
.iv-pill.sw { background: var(--brand-50); color: var(--brand-700); border: 1px solid var(--brand-200); }
.iv-lock { display: inline-flex; align-items: center; gap: 4px; font-size: 11.5px; font-weight: 700; padding: 1px 9px; border-radius: 6px; background: var(--gray-100); color: var(--text-3); white-space: nowrap; }
.iv-btn { height: 34px; padding: 0 14px; border-radius: 7px; border: 1px solid var(--line-strong); background: #fff; color: var(--text-2); font-size: 13px; white-space: nowrap; }
.iv-btn.sm { height: 26px; padding: 0 9px; font-size: 12px; }
.iv-btn.pri { background: var(--primary); border-color: var(--primary); color: #fff; font-weight: 700; }
.iv-btn.pri:disabled { background: var(--gray-100); border-color: var(--line); color: var(--text-mute); }
.iv-btn:not(.pri):disabled { opacity: .45; }

/* 왼쪽 품목 목록 */
.iv-lh { display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-bottom: 1px solid var(--line); background: var(--gray-25); font-size: 12px; color: var(--text-3); font-weight: 600; position: sticky; top: 0; z-index: 1; }
.iv-lh .sp { flex: 1; }
.iv-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 10px; padding: 10px 14px; border-bottom: 1px solid var(--gray-100); cursor: pointer; border-left: 3px solid transparent; }
.iv-row:last-child { border-bottom: 0; }
.iv-row:hover { background: var(--gray-25); }
.iv-row.on { background: var(--brand-50); border-left-color: var(--brand-700); }
.iv-row .nm { font-weight: 700; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.iv-row .bx { display: block; color: var(--text); line-height: inherit; font-weight: 800; font-size: 15px; text-align: right; font-variant-numeric: tabular-nums; } .iv-row .bx small { font-size: 11px; font-weight: 600; color: var(--text-mute); margin-left: 1px; }
.iv-row .mt { font-size: 12px; color: var(--text-3); display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.iv-row .ct { font-size: 12px; color: var(--text-mute); text-align: right; white-space: nowrap; }

/* 가운데: 품목 머리 · 한 번에 바꾸기 · 결과 · 표 */
.iv-ch { display: flex; align-items: center; gap: 8px; padding: 12px 18px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.iv-ch h3 { margin: 0; font-size: 15px; font-weight: 700; }
.iv-ch code { font-family: inherit; font-size: 12px; color: var(--text-mute); }
.iv-ch .sp { flex: 1; }
.iv-ch .tot { font-size: 13px; color: var(--text-3); } .iv-ch .tot b { font-size: 15px; color: var(--text); margin: 0 1px; }
.iv-bulk { display: flex; align-items: flex-end; gap: 12px; padding: 10px 18px 12px; background: var(--gray-25); border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.iv-bulk label { display: grid; gap: 3px; font-size: 11.5px; font-weight: 600; color: var(--text-3); }
.iv-bulk select { height: 34px; min-width: 150px; padding: 0 10px; border-radius: 7px; border: 1px solid var(--line-strong); background: #fff; font-weight: 600; color: var(--text); font-size: 13px; }
.iv-bulk input[type=date] { height: 34px; min-width: 150px; padding: 0 10px; border-radius: 7px; border: 1px solid var(--line-strong); background: #fff; font-weight: 600; color: var(--text); font-size: 13px; box-sizing: border-box; }
.iv-bulk select.set, .iv-bulk input.set {border-color: var(--brand-700); box-shadow: 0 0 0 2px var(--brand-200); }
.iv-bulk .sp { flex: 1; }
.iv-bulk .cnt { align-self: center; font-size: 12.5px; color: var(--text-3); margin-right: 2px; } .iv-bulk .cnt b { color: var(--text); font-size: 14px; margin: 0 1px; }
.iv-bulk .req { color: var(--bad-600); }
.iv-res { display: flex; align-items: center; gap: 12px; padding: 8px 18px; background: var(--brand-50); border-bottom: 1px solid var(--brand-200); font-size: 12.5px; font-weight: 600; flex-wrap: wrap; }
.iv-res b { color: var(--brand-700); font-size: 13px; } .iv-res .sp { flex: 1; }
.iv-res .skip { color: var(--bad-600); font-weight: 700; cursor: help; } .iv-res .skip small { color: var(--text-3); font-weight: 500; margin-left: 6px; font-size: 12px; }
.iv-res .x { border: 0; background: transparent; color: var(--text-mute); font-size: 16px; padding: 0 2px; }

.iv-tb { width: 100%; border-collapse: collapse; }
.iv-tb th { font-size: 11.5px; font-weight: 600; color: var(--text-3); text-align: left; padding: 8px 10px; background: var(--gray-25); border-bottom: 1px solid var(--line); white-space: nowrap; }
.iv-tb td { padding: 9px 10px; border-bottom: 1px solid var(--gray-100); vertical-align: middle; }
.iv-tb th:first-child, .iv-tb td:first-child { padding-left: 18px; width: 40px; } .iv-tb th:last-child, .iv-tb td:last-child { padding-right: 18px; }
.iv-tb td.nm { width: 100%; font-weight: 700; font-size: 13px; white-space: normal; word-break: keep-all; }  /* 가운데 칸이 좁으면 이름이 줄바꿈 — [출고 바꾸기]가 잘리지 않게 (11/19) */
.iv-tb .bx { display: table-cell; width: 56px; font-weight: 800; font-size: 14px; color: inherit; line-height: inherit; text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }  /* 온라인 · 택배 그림자 화면은 stock.css .bx(display:block · 11px)를 같이 읽음 — 칸이 깨지지 않게 되돌림 (11/19) */ .iv-tb th.bx { font-size: 11.5px; font-weight: 600; color: var(--text-3); }
.iv-tb .way { width: 88px; white-space: nowrap; font-weight: 600; } .iv-tb .day { width: 108px; white-space: nowrap; font-weight: 500; color: var(--text-2); }
.iv-tb th.st, .iv-tb td.st { text-align: right; white-space: nowrap; width: 1%; padding-left: 16px; }
.iv-tb th.ac, .iv-tb td.ac { text-align: right; white-space: nowrap; width: 1%; }
.iv-tb input[type=checkbox] { width: 16px; height: 16px; accent-color: var(--brand-700); margin: 0; vertical-align: middle; }
.iv-tb input.sn { width: 54px; height: 28px; padding: 0 6px; border: 1px solid var(--line-strong); border-radius: 5px; text-align: right; font-weight: 700; font-size: 13px; }
.iv-tb .tg { border: 1px solid var(--line); background: #fff; border-radius: 4px; padding: 0; width: 18px; height: 18px; line-height: 16px; margin: 0 8px 0 -2px; color: var(--text-3); font-size: 10px; vertical-align: 1px; }
.iv-tb .tg[aria-expanded="true"] { color: var(--text); }
.iv-tb .nm .iv-pill { margin-left: 4px; }
.iv-tb .ed { height: 26px; padding: 0 9px; border-radius: 5px; border: 1px solid var(--line); background: #fff; color: var(--text-3); font-weight: 600; font-size: 12px; white-space: nowrap; }
.iv-tb .ed:hover { border-color: var(--brand-500); color: var(--brand-700); }
.iv-tb tr.lk td { color: var(--text-mute); background: var(--gray-25); } .iv-tb tr.lk .bx, .iv-tb tr.lk .way, .iv-tb tr.lk td.nm { font-weight: 600; }
.iv-tb tr.chg td:first-child { box-shadow: inset 3px 0 var(--brand-700); }
.iv-tb tr.sum td { background: var(--gray-25); font-weight: 700; border-top: 1px solid var(--line); border-bottom: 0; font-size: 12.5px; color: var(--text-3); } .iv-tb tr.sum .bx { font-size: 15px; color: var(--text); }
/* 펼친 줄 — 위 표 칸에 맞춤 (프로그램 검토 「출고 품목」 카드 모양) */
.iv-tb tr.op td { border-bottom-color: var(--gray-100); }
.iv-tb tr.sx td { background: var(--gray-25); padding-top: 6px; padding-bottom: 6px; border-bottom: 1px solid var(--gray-100); font-size: 12.5px; }
.iv-tb tr.sx.end td { border-bottom: 1px solid var(--line); }
.iv-tb tr.sx-h td { padding-top: 7px; padding-bottom: 5px; } .iv-tb tr.sx-h td:nth-child(2) { padding-left: 10px; }
.iv-tb tr.sx-h .iv-pill { font-size: 11px; padding: 1px 7px; margin-right: 6px; } .iv-tb tr.sx-h b { margin-right: 6px; font-size: 12.5px; }
.iv-tb tr.sx td.nm { font-weight: 500; font-size: 12.5px; padding-left: 36px; color: var(--text-2); }
.iv-tb tr.sx td.nm .ar { color: var(--text-mute); margin: 0 8px 0 -26px; display: inline-block; width: 18px; text-align: center; }
.iv-tb tr.sx td.nm code { font-family: inherit; font-size: 11.5px; color: var(--brand-600); margin: 0 6px; }
.iv-tb tr.sx td.bx { font-size: 13px; font-weight: 700; }
.iv-tb tr.sx td.way { font-weight: 500; color: var(--text-2); } .iv-tb tr.sx td.day { color: var(--text-3); }
.iv-tb tr.sx.on td.nm { font-weight: 700; color: var(--text); }
.iv-tb tr.sx.alt td { background: var(--brand-50); } .iv-tb tr.sx.alt td.nm .ar { visibility: hidden; }
.iv-tb tr.sx.off td, .iv-tb tr.sx.off td.nm, .iv-tb tr.sx.off td.bx, .iv-tb tr.sx.off code, .iv-tb tr.sx.off td.way { color: var(--text-mute); } .iv-tb tr.sx.off td.bx { font-weight: 600; }

/* 오른쪽 재고 패널 — 검토 화면 재고 칸과 같은 모양 */
.iv-pane { padding: 14px 16px; display: grid; gap: 14px; align-content: start; }
.iv-pane .p-h b { font-size: 14px; margin-right: 6px; } .iv-pane .p-h .cd { display: block; font-size: 11.5px; color: var(--text-3); margin-top: 1px; }
.iv-pane .none { font-size: 12px; color: var(--text-2); }
.iv-hubs { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.iv-hub { border: 1px solid var(--line); border-radius: 7px; padding: 6px 10px; font-size: 11.5px; }
.iv-hub > span { display: block; font-weight: 600; }
.iv-hub .r { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 8px; margin-top: 2px; font-size: 11px; color: var(--text-3); }
.iv-hub .r b { display: block; white-space: nowrap; font-size: 14px; font-weight: 700; color: var(--text); font-variant-numeric: tabular-nums; } .iv-hub .r .in { text-align: right; } .iv-hub .r .in b { color: var(--text-3); }
.iv-hub.zero .r > span:first-child b { color: var(--bad-600); }
.iv-rows { display: grid; gap: 2px; font-size: 12.5px; }
.iv-rows div { display: flex; justify-content: space-between; gap: 8px; border-top: 1px solid var(--gray-100); padding-top: 3px; }
.iv-rows div:last-child { border-top-color: var(--line); } .iv-rows div:last-child b { font-size: 14px; } .iv-rows .bad { color: var(--bad-600); }
.iv-alt-box { display: grid; gap: 8px; border-top: 1px solid var(--line); padding-top: 12px; }
.iv-alt-box > label { font-size: 12.5px; font-weight: 700; }
.iv-alt-box select, .iv-alt-box input { height: 34px; width: 100%; padding: 0 8px; border: 1px solid var(--line-strong); border-radius: 6px; background: #fff; color: var(--text); box-sizing: border-box; }
.iv-alt-box .acts { display: flex; flex-direction: column; gap: 6px; } .iv-alt-box .acts .iv-btn { width: 100%; }
.iv-alt-box .lnk { justify-self: start; border: 0; background: none; padding: 0; color: var(--brand-600); font-size: 12px; font-weight: 600; text-decoration: underline; }
.iv-alt-box .warn { font-size: 12px; font-weight: 600; color: var(--bad-600); }

@media (max-width: 1680px) { .iv-split, .iv-ol .iv-split { grid-template-columns: 270px minmax(0, 1fr) 280px; gap: 12px; } }  /* 노트북 화면: 가운데 표(매장 · 박스 · 출고 방법 · 상태 · [출고 바꾸기])가 잘리지 않게 양옆을 줄임 (11/19) */
@media (max-width: 1280px) { .iv-split, .iv-ol .iv-split { grid-template-columns: 230px minmax(0, 1fr) 250px; } }
@media (max-width: 900px) { .iv-split, .iv-ol .iv-split { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; height: auto; } .iv-list, .iv-mid, .iv-pane { overflow: visible; } }
.iv-tb td.st .hk-tag { margin-left: 4px; }  /* 변경 이력 꼬리표 (11/19) */
