Files
dbx-main/app/static/inout.css
T
king 8652064415 feat(inout): 발주 수량 공배수 ◀ ▶·파렛트 그림·품목 표 제목 행 서식
- 품목 표 제목 행 가운데·굵게·110%
- 수량 칸 오른쪽 ◀ ▶ 로 통·뚜껑 입수 공배수만큼 줄이기·늘리기
- 합계 줄에 꽉 찬 파렛트 그림과 잔량 파렛트(실린 박스만 색칠, %, 몇 박스 더)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-21 15:38:50 +09:00

472 lines
36 KiB
CSS
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
/* 입출고 관리(inout) — ERP 공용(erp.css·erp-shell.css) 위에 이 화면만의 것 */
/* 공용 .erp-page 는 width:100% + 안쪽 여백(content-box)이라 표가 넓으면 48px 넘친다 — 이 화면에서만 테두리 기준으로 */
.erp-page:has(> .io), .erp-page:has(> .io-split) { box-sizing: border-box; }
.io { display: flex; flex-direction: column; gap: 14px; min-width: 0; } /* 넓은 표는 안에서 가로 스크롤(페이지가 화면보다 넓어지지 않게) */
.io-nav { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.io-nav-gap { flex: 1 1 auto; }
.io-roles { display: inline-flex; gap: 4px; align-items: center; }
.io-flash { margin: 0; padding: 10px 14px; border-radius: 8px; background: #eef6ff; color: #0b4a8b; font-size: 13px; border: 1px solid #cfe3fb; }
.io-error { margin: 12px 20px 0; padding: 10px 14px; border-radius: 8px; background: #fbe9e6; color: #a1261b; border: 1px solid #efc6bf; font-size: 13px; }
.io > .io-error { margin: 0; }
.io-hint { color: #a1261b; font-size: 12px; }
.io-help { margin: 0; padding: 12px 20px 0; font-size: 12.5px; color: var(--color-midtone-gray); line-height: 1.6; }
.io-foot { margin: 0; }
/* 거르기 줄 */
.io-filter { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.io-filter .erp-select { width: auto; }
.io-search { width: 260px; }
.io-filter input[type="date"] { width: 150px; }
.io-date { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--color-midtone-gray); }
.io-seg { display: inline-flex; padding: 2px; border: 1px solid var(--color-subtle-ash); border-radius: 10px; background: #fff; }
.io-seg-btn { padding: 5px 12px; border-radius: 8px; font-size: 12.5px; color: var(--color-rich-black); text-decoration: none; white-space: nowrap; }
.io-seg-btn:hover { background: var(--color-ghost-gray); }
.io-seg-btn.is-active, .io-seg-btn.is-active:hover { background: var(--color-deep-black); color: #fff; }
/* 표 */
.io-table td, .io-table th { white-space: nowrap; }
.io-table td.io-items { white-space: normal; min-width: 160px; }
.io-num { text-align: right !important; font-variant-numeric: tabular-nums; }
.io-code { font-family: ui-monospace, Consolas, monospace; font-size: 12px; }
.io-order-no { font-weight: 600; color: var(--color-rich-black); text-decoration: none; font-family: ui-monospace, Consolas, monospace; }
.io-order-no:hover { text-decoration: underline; }
.io-row-link { cursor: pointer; }
.io-row-link.is-late td:first-child { box-shadow: inset 3px 0 0 #d93025; }
.io-remaining { color: #b45309; font-weight: 600; }
.io-over, .io-over-sub { color: #d93025; font-weight: 600; }
.io-over-sub { font-size: 11px; }
.io-late { color: #d93025; font-weight: 600; font-size: 12px; }
.io-block { overflow: visible; }
/* 상태 배지 */
.io-badge { display: inline-flex; align-items: center; padding: 2px 8px; border-radius: 999px; font-size: 11.5px; font-weight: 600; white-space: nowrap; border: 1px solid transparent; }
.io-st-open, .io-st-none { background: #eef0f2; color: #3d4148; }
.io-st-partial { background: #fff4e0; color: #9a5b00; border-color: #f6dcae; }
.io-st-done { background: #e6f8e9; color: #1e7a34; border-color: #c2efc8; }
.io-st-over { background: #fbe9e6; color: #b3261e; border-color: #efc6bf; }
.io-st-closed { background: #f4f4f5; color: #6b6f76; border-color: #dcdde0; }
.io-st-cancelled { background: #fff; color: #9aa0a6; border-color: #dcdde0; text-decoration: line-through; }
/* 진행률 */
.io-progress { display: inline-block; width: 80px; height: 6px; border-radius: 999px; background: #eceef1; overflow: hidden; vertical-align: middle; }
.io-progress-bar { display: block; height: 100%; background: #1e8e3e; border-radius: inherit; }
.io-progress-bar.is-over { background: #d93025; }
.io-progress-pct { margin-left: 6px; font-size: 12px; color: var(--color-midtone-gray); font-variant-numeric: tabular-nums; }
/* 요약 숫자 */
.io-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.io-kpi-remaining .erp-summary-value { color: #b45309; }
.io-kpi-over .erp-summary-value { color: #d93025; }
/* 발주서 머리 */
.io-head { padding: 16px 20px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px 20px; overflow: visible; }
.io-head-title { display: flex; align-items: center; gap: 10px; }
.io-head-title h2 { margin: 0; font-size: 18px; font-family: ui-monospace, Consolas, monospace; }
.io-head-meta { display: flex; flex-wrap: wrap; gap: 8px 24px; margin: 12px 0 0; }
.io-head-meta dt { font-size: 11.5px; color: var(--color-midtone-gray); }
.io-head-meta dd { margin: 2px 0 0; font-size: 13.5px; }
.io-head-meta .io-wide { flex-basis: 100%; }
.io-kpis-head { grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); align-self: start; min-width: 320px; }
.io-head-actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding-top: 12px; border-top: 1px solid var(--color-subtle-ash); }
.io-head-actions form { display: inline-flex; gap: 6px; align-items: center; margin: 0; }
.io-close-reason { width: 220px; }
/* 입고 입력 */
.io-col-no { width: 36px; color: var(--color-midtone-gray); }
.io-col-recv { width: 130px; background: #f6fbf7; }
.io-table thead th.io-col-recv { background: #eaf6ee; color: #1e7a34; font-weight: 600; }
.io-qty { width: 110px; text-align: right; font-variant-numeric: tabular-nums; }
.io-receipt-bar { display: flex; align-items: flex-end; gap: 10px; flex-wrap: wrap; padding: 14px 20px; border-top: 1px solid var(--color-subtle-ash); background: #fafbfc; }
.io-receipt-bar .erp-field input { min-width: 150px; }
.io-grow { flex: 1 1 260px; }
.io-default-submit { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); border: 0; }
.io-over-box { margin: 12px 20px 0; padding: 12px 16px; border-radius: 8px; background: #fbe9e6; border: 1px solid #efc6bf; color: #7a1d14; font-size: 13px; }
.io-over-box ul { margin: 6px 0 10px; padding-left: 18px; }
/* [초과 입고로 저장] — 분홍 안내 상자 위에서도 또렷하게: 진한 빨강 바탕 + 흰 글씨(공용 erp-btn-danger 는 연해서 안 보였다) */
.io-btn-over { display: inline-flex; align-items: center; gap: 6px; padding: 8px 16px; border: 1px solid #b3261e; border-radius: 8px;
background: #c5221f; color: #fff; font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; box-shadow: 0 1px 2px rgba(0, 0, 0, .15); }
.io-btn-over:hover { background: #a50e0e; border-color: #8c0b0b; }
.io-btn-over:focus-visible { outline: 2px solid #7a1d14; outline-offset: 2px; }
.io-chip { display: inline-block; margin: 2px 6px 2px 0; padding: 1px 8px; border-radius: 6px; background: var(--color-ghost-gray); font-size: 12px; white-space: nowrap; }
/* 발주서 폼 */
.io-order-form { overflow: visible; }
.io-lines .io-col-qty { width: 130px; }
.io-lines .erp-input { width: 100%; }
.io-lines .io-col-del { width: 48px; text-align: center; }
.io-lines tfoot td { padding: 10px 16px; border-top: 1px solid var(--color-subtle-ash); }
.io-item-cell { position: relative; min-width: 320px; }
.io-item-search { width: 100%; }
.io-item-search.is-invalid { border-color: #d93025; box-shadow: 0 0 0 3px rgba(217, 48, 37, .12); }
.io-item-search[readonly] { background: var(--color-ghost-gray); }
.io-total { margin-left: 12px; }
.io-form-actions { display: flex; justify-content: flex-end; gap: 8px; padding: 14px 20px; border-top: 1px solid var(--color-subtle-ash); }
/* 검색 드롭다운 — 표 가로 스크롤 상자에 잘리지 않게 화면 기준(fixed), 위치는 inout.js 가 입력칸에 맞춤 */
.io-suggest { position: fixed; z-index: 1000; max-height: 280px; overflow-y: auto;
background: #fff; border: 1px solid var(--color-subtle-ash); border-radius: 8px; box-shadow: 0 8px 24px rgba(0, 0, 0, .12); }
.io-suggest-item { padding: 7px 12px; font-size: 13px; cursor: pointer; white-space: normal; }
.io-suggest-item:hover, .io-suggest-item.is-active { background: #eef6ff; }
.io-suggest-empty { padding: 10px 12px; font-size: 12.5px; color: var(--color-midtone-gray); white-space: normal; }
/* ── 공용 ERP 스타일과 겹치는 부분(2026-10-16 옵션 화면 겹침) ──
· .erp-input 은 min-width 240px + content-box 라 좁은 칸에서 옆 칸을 덮는다 → 이 모듈 안에서는 테두리 기준·최소폭 없음
· .erp-table-wrap 은 카드 모양(그림자·둥근 모서리)이라 카드 안에 넣으면 상자가 겹쳐 보인다 → 카드 안에서는 평평하게 */
.io *, .io *::before, .io *::after, .io-dlg *, .io-dlg *::before, .io-dlg *::after { box-sizing: border-box; }
/* hidden 속성은 늘 숨김 — display 를 준 요소(예: 메일 창 아래 줄 flex)가 hidden 을 덮어써 보이던 문제(2026-10-16) */
.io [hidden], .io-dlg [hidden], .io-viewer [hidden] { display: none !important; }
.io .erp-input { min-width: 0; }
.io .erp-card-block .erp-table-wrap { border-radius: 0; box-shadow: none; background: transparent; }
/* 옵션 톱니(관리자) — 실적 설정 톱니처럼 둥근 아이콘 단추 */
.io-gear { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; padding: 0;
border: 1px solid var(--color-subtle-ash); border-radius: 50%; background: #fff; color: #525860; cursor: pointer;
transition: background .12s, color .12s, border-color .12s; }
.io-gear:hover { background: var(--color-ghost-gray); color: var(--color-rich-black); border-color: #c9ccd1; }
.io-gear:focus-visible { outline: 2px solid var(--color-rich-black); outline-offset: 2px; }
.io-factory-who { display: block; font-size: 12px; color: var(--color-midtone-gray); margin-top: 2px; }
/* 옵션 팝업 */
.io-dlg { width: min(1440px, calc(100vw - 40px)); max-height: min(760px, calc(100vh - 40px)); padding: 0; border: 1px solid var(--color-subtle-ash);
border-radius: 12px; box-shadow: 0 12px 40px rgba(0, 0, 0, .2); color: var(--color-rich-black); overflow: hidden; }
.io-dlg[open] { display: flex; flex-direction: column; }
.io-dlg:focus { outline: none; }
.io-dlg-tabs button:focus-visible { outline: 2px solid var(--color-rich-black); outline-offset: -4px; border-radius: 6px; }
.io-dlg::backdrop { background: rgba(0, 0, 0, .35); }
.io-dlg-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px 14px 22px; border-bottom: 1px solid var(--color-subtle-ash); }
.io-dlg-head h2 { margin: 0; font-size: 17px; font-weight: 600; }
.io-dlg-x { display: inline-flex; padding: 6px; border: 0; border-radius: 6px; background: none; color: #6d6e6f; cursor: pointer; }
.io-dlg-x:hover { background: var(--color-ghost-gray); color: var(--color-rich-black); }
.io-dlg-msg { margin: 12px 22px 0; padding: 9px 12px; border-radius: 8px; background: #e6f8e9; color: #1e7a34; border: 1px solid #c2efc8; font-size: 13px; }
.io-dlg-msg.is-bad { background: #fbe9e6; color: #a1261b; border-color: #efc6bf; }
.io-dlg-body { flex: 1 1 auto; min-height: 0; overflow-y: auto; padding: 14px 22px 18px; }
.io-dlg-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--color-subtle-ash); margin-bottom: 14px; }
.io-dlg-tabs button { padding: 8px 14px; border: 0; border-bottom: 2px solid transparent; margin-bottom: -1px; background: none;
font: inherit; font-size: 14px; color: var(--color-midtone-gray); cursor: pointer; }
.io-dlg-tabs button:hover { color: var(--color-rich-black); }
.io-dlg-tabs button.is-active { color: var(--color-rich-black); font-weight: 600; border-bottom-color: var(--color-rich-black); }
.io-dlg-count { display: inline-block; min-width: 18px; padding: 0 5px; margin-left: 4px; border-radius: 999px; background: var(--color-ghost-gray); font-size: 11px; text-align: center; }
.io-dlg-body .io-help { padding: 0 0 12px; }
.io-dlg-form { margin: 0; }
.io-dlg-table { width: 100%; border-collapse: collapse; font-size: 13px; table-layout: fixed; }
.io-dlg-table th { text-align: left; font-weight: 500; font-size: 12px; color: var(--color-midtone-gray); padding: 8px 6px; border-bottom: 1px solid var(--color-subtle-ash); white-space: nowrap; }
.io-dlg-table td { padding: 7px 6px; border-bottom: 1px solid var(--color-subtle-ash); vertical-align: middle; }
.io-dlg-table tbody tr:last-child td { border-bottom: 0; }
.io-dlg-table .io-c { text-align: center; }
.io-dlg-table td.io-c input[type="checkbox"] { width: 16px; height: 16px; }
.io-user { display: block; font-weight: 500; }
.io-sub { font-size: 12px; color: var(--color-midtone-gray); }
.io-empty { text-align: center; padding: 18px; color: var(--color-midtone-gray); }
.io-in { width: 100%; min-width: 0; padding: 6px 9px; border: 1px solid var(--color-subtle-ash); border-radius: 6px; font: inherit; font-size: 13px;
color: var(--color-rich-black); background: #fff; }
.io-in:focus { outline: none; border-color: var(--color-rich-black); box-shadow: 0 0 0 3px rgba(0, 0, 0, .06); }
.io-in-num { text-align: right; }
.io-factory-table col.w-name { width: 15%; }
.io-factory-table col.w-man { width: 10%; }
.io-factory-table col.w-tel { width: 14%; }
.io-factory-table col.w-memo { width: auto; }
.io-factory-table col.w-sort { width: 64px; }
.io-factory-table col.w-use { width: 48px; }
.io-factory-table col.w-cnt { width: 52px; }
.io-factory-table col.w-btn { width: 128px; }
.io-factory-table tr.is-inactive .io-in { background: var(--color-ghost-gray); color: var(--color-midtone-gray); }
.io-factory-table .io-new-row td { background: #fafbfc; border-top: 1px solid var(--color-subtle-ash); }
.io-btns { text-align: right; white-space: nowrap; } /* td 에 flex 를 주면 표 칸이 깨진다(줄 선·배경 어긋남) */
.io-btns .erp-btn + .erp-btn { margin-left: 4px; }
.io-dlg-actions { display: flex; justify-content: flex-end; padding-top: 12px; }
.io-dlg-foot { margin: 14px 0 0; font-size: 12px; color: var(--color-midtone-gray); }
@media (max-width: 900px) {
.io-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.io-head { grid-template-columns: 1fr; }
.io-kpis-head { min-width: 0; }
.io-dlg-body { overflow-x: auto; }
.io-factory-table { min-width: 860px; }
}
/* ── 발주 메일(003) ── */
.io-mail-btn { display: inline-flex; align-items: center; gap: 6px; }
.io-mail-sent { color: #1e7a34; font-weight: 600; }
.io-mail-dlg { width: min(860px, calc(100vw - 40px)); }
.io-mail-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 14px; margin-bottom: 12px; }
.io-mail-fields label { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--color-midtone-gray); }
.io-mail-fields input[readonly] { background: var(--color-ghost-gray); color: #3d3f42; }
.io-mail-sentlist { margin: 0 0 12px; padding: 10px 12px; border-radius: 8px; background: #f3fbf5; border: 1px solid #cdeed6; font-size: 12.5px; }
.io-mail-sentlist ul { margin: 4px 0 0; padding-left: 18px; }
.io-mail-preview { width: 100%; height: 380px; border: 1px solid var(--color-subtle-ash); border-radius: 8px; background: #fff; }
.io-mail-connect { padding: 8px 2px 4px; font-size: 13.5px; line-height: 1.7; }
.io-mail-connect .erp-btn { margin-top: 6px; }
.io-mail-admin { margin-top: 14px; padding: 10px 12px; border-radius: 8px; background: var(--color-ghost-gray); font-size: 12px; color: #3d3f42; }
.io-mail-admin code { display: inline-block; margin-top: 4px; padding: 2px 6px; border-radius: 4px; background: #fff; border: 1px solid var(--color-subtle-ash); font-size: 12px; user-select: all; word-break: break-all; }
.io-hint { margin: -4px 0 12px; font-size: 12.5px; color: #9a5b00; }
.io-dlg-footbar { display: flex; align-items: center; gap: 8px; padding: 12px 22px; border-top: 1px solid var(--color-subtle-ash); background: #fafbfc; }
.io-link-btn { border: 0; background: none; padding: 0; font: inherit; font-size: 12px; color: var(--color-midtone-gray); text-decoration: underline; cursor: pointer; }
.io-link-btn:hover { color: var(--color-rich-black); }
/* ── 입고증 사진(003) ── */
.io-photo-field { min-width: 180px; }
.io-photo-pick { position: relative; display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border: 1px dashed #b7bcc4;
border-radius: 8px; background: #fff; color: var(--color-rich-black); font-size: 13px; cursor: pointer; white-space: nowrap; }
.io-photo-pick:hover { border-color: var(--color-rich-black); background: var(--color-ghost-gray); }
.io-photo-pick:focus-within { outline: 2px solid var(--color-rich-black); outline-offset: 2px; }
.io-photo-input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.io-photo-previews { flex-basis: 100%; display: flex; flex-wrap: wrap; gap: 8px; }
.io-photo-previews:empty { display: none; }
.io-photo-chip { display: inline-flex; align-items: center; gap: 8px; padding: 4px 6px 4px 4px; border: 1px solid var(--color-subtle-ash);
border-radius: 8px; background: #fff; font-size: 12px; color: #3d3f42; max-width: 280px; }
.io-photo-chip img { width: 40px; height: 40px; object-fit: cover; border-radius: 6px; background: var(--color-ghost-gray); }
.io-photo-chip span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.io-photo-chip button { border: 0; background: none; color: #6d6e6f; cursor: pointer; font-size: 13px; padding: 2px 4px; border-radius: 4px; }
.io-photo-chip button:hover { background: var(--color-ghost-gray); color: #c5221f; }
.io-photo-lost { margin: 0 0 8px; font-size: 12.5px; color: #7a1d14; font-weight: 600; }
.io-photos-cell { white-space: normal !important; min-width: 120px; }
.io-photos-cell .io-add-photo-form { display: inline-block; margin: 0; vertical-align: middle; }
.io-thumb { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; margin: 2px 4px 2px 0;
padding: 0; overflow: hidden; border: 1px solid var(--color-subtle-ash); border-radius: 6px; background: var(--color-ghost-gray); cursor: zoom-in; vertical-align: middle; }
.io-thumb img { width: 100%; height: 100%; object-fit: cover; }
.io-thumb:hover { border-color: var(--color-rich-black); }
.io-thumb-heic { font-size: 10px; font-weight: 700; color: #6d6e6f; }
.io-thumb-add { cursor: pointer; border-style: dashed; background: #fff; color: #6d6e6f; font-size: 20px; }
.io-thumb-add:hover { color: var(--color-rich-black); }
.io-viewer { width: min(1100px, calc(100vw - 40px)); height: min(860px, calc(100vh - 40px)); padding: 0; border: 0; border-radius: 12px;
background: #111; color: #fff; overflow: hidden; }
.io-viewer[open] { display: flex; align-items: center; justify-content: center; }
.io-viewer:focus { outline: none; }
.io-viewer::backdrop { background: rgba(0, 0, 0, .7); }
.io-viewer-bar { position: absolute; top: 0; left: 0; right: 0; display: flex; align-items: center; gap: 8px; padding: 10px 14px;
background: linear-gradient(rgba(0, 0, 0, .6), rgba(0, 0, 0, 0)); z-index: 1; }
.io-viewer-bar form { margin: 0; }
.io-viewer-title { flex: 1 1 auto; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.io-viewer-btn { padding: 5px 12px; border: 1px solid rgba(255, 255, 255, .35); border-radius: 6px; background: rgba(0, 0, 0, .35); color: #fff;
font: inherit; font-size: 12.5px; text-decoration: none; cursor: pointer; }
.io-viewer-btn:hover { background: rgba(255, 255, 255, .15); }
.io-viewer-img { max-width: 100%; max-height: 100%; object-fit: contain; }
.io-viewer-heic { padding: 24px; text-align: center; }
.io-viewer-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 64px; border: 0; border-radius: 8px;
background: rgba(0, 0, 0, .45); color: #fff; font-size: 30px; cursor: pointer; z-index: 1; }
.io-viewer-nav:hover { background: rgba(255, 255, 255, .2); }
.io-viewer-nav.is-prev { left: 10px; }
.io-viewer-nav.is-next { right: 10px; }
.io-factory-table col.w-mail { width: 17%; }
@media (max-width: 900px) {
.io-mail-fields { grid-template-columns: 1fr; }
}
/* ── 상품 정보 탭(004) — 단가·무게(PP)·은 함유량 ── */
.io-prod-bar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.io-prod-search { width: 220px; }
.io-prod-scroll { max-height: min(440px, calc(100vh - 340px)); overflow-y: auto; border: 1px solid var(--color-subtle-ash); border-radius: 8px; }
.io-prod-table thead th { position: sticky; top: 0; z-index: 1; background: #fafbfc; }
.io-prod-table col.w-code { width: 128px; }
.io-prod-table col.w-num { width: 120px; }
.io-prod-table col.w-ag { width: 92px; }
.io-prod-table col.w-del { width: 44px; }
.io-prod-table th.io-r, .io-r { text-align: right; }
.io-prod-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.io-ag { color: var(--color-midtone-gray); font-variant-numeric: tabular-nums; }
.io-prod-table tr.is-dirty td { background: #fff8e1; }
.io-icon-btn { width: 26px; height: 26px; padding: 0; border: 0; border-radius: 6px; background: none; color: #8a8b8c; font-size: 13px; cursor: pointer; }
.io-icon-btn:hover { background: #fbe9e6; color: #a1261b; }
.io-excluded { margin-top: 12px; font-size: 13px; }
.io-excluded summary { cursor: pointer; color: var(--color-midtone-gray); }
.io-excluded ul { margin: 8px 0 0; padding: 0; list-style: none; }
.io-excluded li { display: flex; align-items: center; gap: 8px; padding: 5px 0; border-bottom: 1px solid var(--color-subtle-ash); }
.io-excluded li .io-link-btn { margin-left: auto; }
/* 발주서 단가·금액 칸 */
.io-col-money { width: 110px; text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.io-col-spec { width: 96px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.io-table tfoot .io-total-row td { padding: 10px var(--sp-16, 16px); vertical-align: middle; background: #fafbfc; font-weight: 500; border-top: 1px solid var(--color-subtle-ash); }
.io-suggest-price { float: right; margin-left: 12px; color: var(--color-midtone-gray); font-size: 12px; font-variant-numeric: tabular-nums; }
.io-table th.io-col-money, .io-table th.io-col-spec { text-align: right; }
/* 전체 입고 완료(모든 품목 입고완료·초과입고) — 2026-10-17 */
.io-st-all { gap: 3px; }
.io-badge-note { margin-left: 4px; font-size: 11px; font-weight: 600; color: #b3261e; white-space: nowrap; }
.io-status-cell { white-space: nowrap; }
/* 발주 삭제(수퍼관리자, 2026-10-17) */
.io-table .io-col-trash { width: 44px; padding-left: 0; padding-right: 8px; text-align: center; }
.io-table .io-col-trash form { margin: 0; display: inline-flex; }
.io-del-btn { display: inline-flex; align-items: center; justify-content: center; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
/* 입고 요청 메일(005) — 입고 기록 칸 · 옵션 → 물류센터 */
.io-rmail-cell { white-space: nowrap; }
.io-rmail-cell .io-rmail-btn { margin-top: 4px; }
.io-logi-form { display: grid; gap: 12px; max-width: 640px; }
.io-logi-field { display: grid; gap: 4px; }
.io-logi-field > span { font-weight: 600; }
.io-logi-field small { font-weight: 400; color: var(--color-midtone-gray, #777); }
.io-rmail-cell .io-sabang-btn { margin-top: 4px; display: inline-flex; }
/* 사방넷 입고 파일 버튼 — 엑셀 초록(2026-10-19) */
.io .erp-btn.io-sabang-btn { background: #217346; border-color: #217346; color: #fff; }
.io .erp-btn.io-sabang-btn:hover, .io .erp-btn.io-sabang-btn:focus-visible { background: #185c37; border-color: #185c37; color: #fff; }
/* 전체 입고 완료 — 입고 칸·버튼 흐리게, 누를 수 없게 */
.io-receipt-bar.is-locked { opacity: .5; }
.io-receipt-bar.is-locked .erp-btn, .io-receipt-bar.is-locked .io-photo-pick, .io-receipt-bar.is-locked input { cursor: not-allowed; pointer-events: none; }
.io-table .io-recv:disabled { opacity: .5; cursor: not-allowed; background: #f3f4f6; }
.io-recv-done-note { color: #1e7a34; font-weight: 600; }
/* 입고 줄 — 입력칸·[입고증 업로드]·[남은 수량 모두 채우기]·[입고 저장] 높이를 34px 로 맞춤(2026-10-19).
입고증 업로드의 사진 아이콘은 버튼 높이에 거의 꽉 차게(28px, 위아래 여백 없이) */
.io-receipt-bar .erp-field input, .io-receipt-bar .erp-btn, .io-receipt-bar .io-photo-pick { height: 34px; box-sizing: border-box; }
.io-receipt-bar .erp-btn { display: inline-flex; align-items: center; justify-content: center; padding-top: 0; padding-bottom: 0; }
.io-receipt-bar .io-photo-pick { padding: 0 12px 0 8px; gap: 6px; }
.io-receipt-bar .io-photo-pick-icon { flex: none; width: 28px; height: 28px; }
/* 옵션 → 공장: 발주 메일 참조(2026-10-19) */
.io-ordercc-form { margin: 0 0 14px; max-width: 640px; }
.io-ordercc-row { display: flex; gap: 8px; align-items: center; }
.io-ordercc-row .io-in { flex: 1 1 auto; }
/* [남은 수량 모두 채우기] 를 누른 뒤 = 되돌리기 모드 */
.io-receipt-bar #io-fill-remaining.is-filled { border-color: #1e7a34; color: #1e7a34; background: #f3fbf5; }
/* 발주 메일 창 — 입고 담당 발주 알림 자동 발송 안내 */
.io-mail-notice { margin: -4px 0 12px; padding: 8px 12px; border-radius: 8px; background: #f0f6ff; border: 1px solid #cfe0fb; color: #1d4f91; font-size: 12.5px; }
/* ── 2열 — 왼쪽 화면 | 오른쪽 달력(2026-10-21). 오른쪽 열 너비 = 달력 너비, 스크롤해도 위에 붙어 있음.
달력은 화면 너비에 따라 300~440px(2026-10-21 "달력 오른쪽 여백이 많다 — 더 키워 달라") — 입출고 화면은 ERP 공용 최대 폭(1550px)을 풀어
넓은 화면의 빈 여백을 쓴다. 좁은 화면(1100px 미만)은 한 열 — 달력은 아래로. ── */
.erp-page:has(> .io-split) { max-width: none; }
.io-split { display: grid; grid-template-columns: minmax(0, 1fr) clamp(300px, 23vw, 440px); gap: 20px; align-items: start; }
.io-split > .io { min-width: 0; }
.io-side { min-width: 0; position: sticky; top: 12px; display: flex; flex-direction: column; gap: 6px; container-type: inline-size; }
@media (max-width: 1100px) {
.io-split { grid-template-columns: minmax(0, 1fr); }
.io-side { position: static; width: 300px; }
}
/* 달력 = 오른쪽 열 너비 × (320/300) 높이 — 프로젝트 달력 모양(.pj-cal)을 작게: 머리(제목 ‹ › 오늘) + 둥근 테두리 안 요일 줄(회색) + 6주.
크기는 모두 달력 너비 기준(cqw — 300px 일 때 1cqw = 3px, 예전 300×320 그대로)이라 커지면 글자·칸이 같은 비율로 커진다. */
.io-cal { width: 100%; aspect-ratio: 300 / 320; box-sizing: border-box; display: flex; flex-direction: column; }
.io-cal.is-loading .io-cal-days { opacity: .55; }
.io-cal-head { flex: none; height: 12cqw; display: flex; align-items: center; gap: 1.333cqw; }
.io-cal-title { margin: 0 .667cqw; font-size: 5.333cqw; font-weight: 600; letter-spacing: -0.1cqw; white-space: nowrap; color: #0a0a0a; }
.io-cal-nav, .io-cal-today {
border: 1px solid var(--color-subtle-ash, #e5e5e5); background: #fff; border-radius: 2.667cqw; cursor: pointer; color: #0a0a0a;
height: 9.333cqw; line-height: 1; padding: 0 3cqw; font-size: 4.333cqw;
}
.io-cal-nav { font-size: 6cqw; padding: 0 2.667cqw; }
.io-cal-nav:hover, .io-cal-today:hover { background: #f5f5f5; }
.io-cal-today { margin-left: auto; }
.io-cal-box { flex: 1 1 auto; min-height: 0; border: 1px solid #e5e5e5; border-radius: 3.333cqw; overflow: hidden; display: flex; flex-direction: column; background: #fff; }
.io-cal-wd { flex: none; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); background: #f2f2f2; border-bottom: 1px solid #e5e5e5; }
.io-cal-wd span { text-align: center; padding: 1.333cqw 0; font-size: 4cqw; line-height: 1.25; font-weight: 600; color: #0a0a0a; }
.io-cal-wd .is-sun { color: #c22b10; }
.io-cal-wd .is-sat { color: #1d4ed8; }
.io-cal-days { flex: 1 1 auto; min-height: 0; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); grid-template-rows: repeat(6, minmax(0, 1fr)); }
.io-cal-day {
all: unset; box-sizing: border-box; min-width: 0; min-height: 0; padding: 1cqw 1cqw .667cqw; cursor: default;
display: flex; flex-direction: column; align-items: center; gap: .333cqw;
border-right: 1px solid #efefef; border-bottom: 1px solid #efefef;
}
.io-cal-day:nth-child(7n) { border-right: 0; }
.io-cal-day:nth-last-child(-n+7) { border-bottom: 0; }
.io-cal-day.has-ev { cursor: pointer; }
.io-cal-day.has-ev:hover { background: #f2f6ff; }
.io-cal-day:focus-visible { outline: 2px solid #1d4ed8; outline-offset: -2px; }
.io-cal-num { font-size: 4cqw; font-weight: 600; color: #0a0a0a; line-height: 6cqw; min-width: 6cqw; text-align: center; border-radius: 9999px; }
/* 공휴일 이름 — 숫자 아래 한 줄(2026-10-21). 칸이 좁아 넘치면 … (전체 이름은 말풍선). 공휴일 칸은 숫자·이름·건수가 다 들어가게 위아래를 줄인다 */
.io-cal-hol { display: block; max-width: 100%; font-size: 2.833cqw; line-height: 3.333cqw; font-weight: 600; color: #c22b10;
overflow: hidden; text-overflow: ellipsis; white-space: nowrap; letter-spacing: -0.2cqw; }
.io-cal-day.is-out .io-cal-hol { color: #e3a397; }
.io-cal-day.has-hol { padding: .333cqw .333cqw 0; gap: 0; overflow: hidden; }
.io-cal-day.has-hol .io-cal-num { line-height: 5.333cqw; }
.io-cal-day.is-sun .io-cal-num { color: #c22b10; }
.io-cal-day.is-sat .io-cal-num { color: #1d4ed8; }
.io-cal-day.is-out { background: #fafafa; }
.io-cal-day.is-out .io-cal-num { color: #bbb; }
.io-cal-day.is-today { background: #f5f5f5; }
.io-cal-day.is-today .io-cal-num { background: #0a0a0a; color: #fff; padding: 0 1.667cqw; }
.io-cal-day.is-today.is-sun .io-cal-num { background: #c22b10; color: #fff; }
.io-cal-day.is-today.is-sat .io-cal-num { background: #1d4ed8; color: #fff; }
.io-cal-marks { display: flex; gap: .667cqw; flex-wrap: wrap; justify-content: center; }
/* 건수 칩 — 기본(범례·날짜 팝업)은 px, 달력 칸 안만 달력 크기를 따라 커진다 */
.io-cal-m { font-style: normal; display: inline-block; min-width: 14px; height: 14px; line-height: 14px; padding: 0 3px; box-sizing: border-box;
border-radius: 7px; font-size: 10px; font-weight: 700; color: #fff; text-align: center; }
.io-cal-days .io-cal-m { min-width: 4.667cqw; height: 4.667cqw; line-height: 4.667cqw; padding: 0 1cqw; border-radius: 2.333cqw; font-size: 3.333cqw; }
.io-cal-m.is-order { background: #2f6fde; }
.io-cal-m.is-receipt { background: #1e8e5a; }
.io-cal-err { grid-column: 1 / -1; margin: auto; font-size: 12px; color: #a1261b; }
.io-cal-legend { margin: 0; font-size: 11.5px; color: var(--color-midtone-gray, #666); display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.io-cal-legend .io-cal-m { margin-left: 4px; }
.io-cal-legend .io-cal-m:first-child { margin-left: 0; }
/* 그날 목록 팝업 — 프로젝트 달력 .pj-daypop 모양 */
.io-calpop { position: absolute; z-index: 2100; width: 280px; max-height: 320px; overflow: auto; background: #fff; border: 1px solid #e2e5e9;
border-radius: 12px; box-shadow: 0 8px 28px rgba(0,0,0,.16); padding: 8px; box-sizing: border-box; }
.io-calpop-head { font-size: 12px; font-weight: 700; color: #525860; padding: 4px 6px 8px; }
.io-calpop-head .is-hol { color: #c22b10; }
.io-calpop-item { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 8px; align-items: center; padding: 6px; border-radius: 8px;
text-decoration: none; color: #1e1f21; font-size: 12.5px; }
.io-calpop-item:hover { background: #f2f4f6; }
.io-calpop-item .io-cal-m { grid-row: span 2; height: 18px; line-height: 18px; border-radius: 9px; padding: 0 6px; font-size: 11px; }
.io-calpop-main { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.io-calpop-sub { color: #6b6f76; font-size: 11.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* ── 옵션 → 담당자: 아이콘 + 이름, 아래 이메일(2026-10-21) ── */
.io-person { display: inline-flex; align-items: center; gap: 8px; }
.io-avatar { flex: none; width: 28px; height: 28px; border-radius: 50%; object-fit: cover; }
.io-person-text { display: flex; flex-direction: column; line-height: 1.3; }
.io-person-text .io-sub { display: block; }
/* ── 옵션 → 상품 정보: 그룹·색상(2026-10-21, 006) ── */
.io-swatch { display: inline-block; flex: none; width: 14px; height: 14px; border-radius: 3px; border: 1px solid rgba(0,0,0,.18); vertical-align: middle; box-sizing: border-box; }
.io-swatch.is-none { background: #fff !important; border-style: dashed; border-color: #b9bdc3; }
.io-color { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.io-color .io-color-select { width: auto; min-width: 96px; }
.io-group-table col.w-gname { width: auto; }
.io-group-table col.w-num { width: 120px; }
.io-group-table col.w-color { width: 170px; }
.io-group-table col.w-sort { width: 72px; }
.io-group-table col.w-cnt { width: 60px; }
.io-group-table col.w-btn { width: 128px; }
.io-prod-table col.w-group { width: 130px; }
.io-prod-table col.w-color { width: 150px; }
.io-prod-table .io-group-select { width: 100%; }
.io-prod-table .io-group-val { display: none; color: #4b5563; }
.io-prod-table tr.is-grouped .io-own { display: none; }
.io-prod-table tr.is-grouped .io-group-val { display: inline-flex; }
.io-prod-table tr.is-grouped .io-group-val.io-r { display: block; padding-right: 9px; font-variant-numeric: tabular-nums; }
.io-prod-table tr.is-grouped td:has(> .io-group-val) { background: #f6f8fb; }
/* ── 옵션 → 상품 정보: 제목 행 가운데·110%·굵게, 통·뚜껑 박스 입수 열(2026-10-21, 007). 그룹은 따로 "상품 그룹" 탭 ── */
.io-prod-table thead th, .io-prod-table thead th.io-r { text-align: center; font-size: 13.2px; /* 예전 제목 12px × 110% */ font-weight: 700; color: var(--color-rich-black, #1d1d1f); }
.io-prod-table col.w-box { width: 96px; }
.io-prod-table col.w-num { width: 108px; }
.io-prod-table col.w-group { width: 120px; }
.io-prod-table col.w-color { width: 140px; }
.io-dlg-pane[data-pane="groups"] .io-group-table { margin-top: 12px; }
/* ── 새 발주서: 통·뚜껑 박스·파렛트(2026-10-21, 007) — 화면 계산만 ── */
.io-lines .io-col-box { min-width: 210px; white-space: normal !important; }
.io-lines td.io-col-box { font-size: 12.5px; }
.io-box-main b { font-variant-numeric: tabular-nums; }
.io-box-hint { margin-top: 2px; font-size: 11.5px; color: var(--color-midtone-gray, #666); display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.io-box-ok { color: #1e7a34; font-weight: 600; white-space: nowrap; }
.io-box-pick { border: 1px solid #cfe0fb; background: #f0f6ff; color: #1d4f91; border-radius: 6px; padding: 0 6px; height: 20px; font-size: 11.5px; cursor: pointer; }
.io-box-pick:hover { background: #dce9ff; }
.io-pallet { margin-top: 8px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; font-size: 13px; }
.io-pallet b { font-variant-numeric: tabular-nums; }
.io-pallet-main { font-size: 14px; font-weight: 600; }
.io-pallet-main b { font-size: 16px; color: #1d4f91; }
/* ── 새 발주서(2026-10-21): 품목 표 제목 행 가운데·굵게·110%, 수량 ◀ ▶(공배수만큼), 파렛트 그림 ── */
.io-lines thead th, .io-table.io-lines th.io-col-money { text-align: center; font-size: calc(var(--text-caption, 12px) * 1.1); font-weight: 700; color: var(--color-rich-black, #1d1d1f); }
.io-lines .io-col-qty { width: 196px; }
.io-qty-wrap { display: flex; align-items: center; gap: 4px; }
.io-qty-wrap .io-qty { flex: 1 1 auto; min-width: 0; }
.io-steps { display: inline-flex; gap: 2px; flex: none; }
.io-step { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 30px; padding: 0; border: 1px solid var(--color-subtle-ash, #e5e5e5);
border-radius: 8px; background: #fff; color: #1d4f91; cursor: pointer; }
.io-step:hover:not(:disabled) { background: #f0f6ff; border-color: #cfe0fb; }
.io-step:disabled { color: #c3c7cc; cursor: not-allowed; }
.io-pallet-vis { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 6px 14px; }
.io-pal-group { display: inline-flex; align-items: flex-end; gap: 4px; }
.io-pal-group.is-rem { padding-left: 12px; border-left: 1px dashed #d5d9de; }
.io-pal-svg { display: block; flex: none; }
.io-pal-svg .is-on { fill: #c98a4b; stroke: #9c6631; stroke-width: .6; }
.io-pal-svg .is-off { fill: #fff; stroke: #c9cdd2; stroke-width: .6; stroke-dasharray: 1.2 1; }
.io-pal-svg .io-pal-base { fill: #8a6a48; }
.io-pal-more { font-size: 12px; font-weight: 700; color: #6b4a2b; align-self: center; }
.io-pal-cap { font-size: 12px; color: #4b5563; line-height: 1.35; align-self: center; margin-left: 2px; white-space: nowrap; }
.io-pal-cap b { color: #1d1d1f; font-variant-numeric: tabular-nums; }
.io-pal-need { color: #b45309; font-weight: 600; }
.io-pal-ok { color: #1e7a34; font-weight: 600; font-size: 12.5px; }