/* PHI 공급업체 포털 화면 (2026-10-05 디자인 개편 — 사용자: "화면 예쁘고 멋있게, 너무 심플하다")
   회사 로고 색으로 (2026-10-05 사용자: "PHI 로고 사용해서 예쁘게") — 로고 파랑 #0071BC + 남색 + 금색 포인트 */
:root {
  --bg: #f2f6fb; --card: #fff; --ink: #0f1d33; --ink2: #5b6b82; --ink3: #94a1b5; --line: #e1e8f1;
  --brand: #062b63; --brand2: #0071bc; --brand3: #3f94cd; --gold: #f5b83d; --gold2: #ffd98a;
  --bad: #c0262d; --ok: #15803d; --warn: #b45309;
  --tint: #e6f1fa; --tint2: #f5f9fd;
  --sh1: 0 1px 2px rgba(6,43,99,.06), 0 1px 3px rgba(6,43,99,.08);
  --sh2: 0 10px 30px -12px rgba(6,43,99,.28), 0 4px 10px -6px rgba(6,43,99,.12);
  --r: 14px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 15px/1.5 "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", sans-serif; color: var(--ink); background: var(--bg); min-height: 100vh; display: flex; flex-direction: column; }
body::before { content: ""; position: fixed; inset: 0 0 auto 0; height: 340px; z-index: -1; background: radial-gradient(1200px 300px at 15% -40px, rgba(0,113,188,.16), transparent 70%), radial-gradient(900px 260px at 90% -60px, rgba(245,184,61,.14), transparent 70%); }
a { color: var(--brand2); }
.ico { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; vertical-align: -3px; }

/* ---------- 머리 ---------- */
.top { position: sticky; top: 0; z-index: 20; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 22px; color: var(--ink); background: rgba(255,255,255,.97); box-shadow: 0 8px 24px -14px rgba(6,43,99,.45); }
.top::after { content: ""; position: absolute; left: 0; right: 0; bottom: -3px; height: 3px; background: linear-gradient(90deg, var(--brand) 0%, var(--brand2) 55%, var(--gold) 100%); }
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; color: var(--brand); }
.brand .lg { height: 40px; width: auto; display: block; } .brand .em { display: none; height: 34px; width: auto; }
.brand .sp { padding-left: 14px; border-left: 1px solid var(--line); line-height: 1.15; font-weight: 800; font-size: 16px; letter-spacing: .2px; color: var(--brand); white-space: nowrap; }
.brand .sp small { display: block; font-weight: 600; font-size: 11px; letter-spacing: 1.6px; color: var(--brand2); text-transform: uppercase; }
.nav { display: flex; gap: 4px; margin-left: 18px; }
.nav a { display: inline-flex; align-items: center; gap: 7px; padding: 7px 13px; border-radius: 9px; color: var(--ink2); text-decoration: none; font-size: 14px; font-weight: 600; }
.nav a:hover { background: var(--tint2); color: var(--brand2); }
.nav a.on { background: var(--tint); color: var(--brand2); box-shadow: inset 0 -2px 0 var(--brand2); }
.left { display: flex; align-items: center; }
.who { display: flex; gap: 8px; align-items: center; font-size: 14px; }
.who .me { display: flex; align-items: center; gap: 9px; margin-right: 6px; line-height: 1.2; text-align: right; }
.who .me b { display: block; font-size: 13.5px; color: var(--brand); } .who .me span { font-size: 12px; color: var(--ink2); }
.avatar { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 12px; color: #fff; background: linear-gradient(135deg, var(--brand2), var(--brand)); box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--gold2); }
.who button { display: inline-flex; align-items: center; gap: 6px; background: #fff; color: var(--brand); border: 1px solid var(--line); padding: 7px 12px; border-radius: 9px; font-size: 13px; }
.who button:hover { background: var(--tint2); border-color: #bcd8ef; }
/* 마지막 업데이트 · 5분 자동 새로 고침 (2026-10-05 사용자) */
.upd { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; color: var(--ink2); padding: 5px 11px; border-radius: 999px; background: var(--tint2); border: 1px solid var(--line); white-space: nowrap; }
.upd b { color: var(--brand); font-weight: 700; } .upd .dot { width: 7px; height: 7px; border-radius: 50%; background: #22a35a; box-shadow: 0 0 0 3px rgba(34,163,90,.18); flex: none; }
.upd.busy .dot { background: var(--gold); animation: blink .8s ease-in-out infinite; } .upd.off .dot { background: var(--bad); box-shadow: 0 0 0 3px rgba(192,38,45,.15); }
@keyframes blink { 50% { opacity: .3; } }

main { flex: 1; width: 100%; max-width: 1400px; margin: 0 auto; padding: 26px 22px 18px; }
.foot { display: flex; justify-content: center; gap: 8px; align-items: center; color: var(--ink3); font-size: 12px; padding: 18px 16px 22px; }
.foot .ico { width: 14px; height: 14px; }

/* PHI 직원 읽기 전용 보기 띠 (2026-10-05) */
.viewbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 9px 22px; margin-top: 3px; font-size: 13px; color: #5a3b00; background: repeating-linear-gradient(-45deg, #fff4d6, #fff4d6 14px, #ffeab8 14px, #ffeab8 28px); border-bottom: 1px solid #f1d38a; }
.viewbar b { color: #7a4b00; } .viewbar .ico { color: #b26a00; }
@media print { .viewbar { display: none; } }

/* ---------- 기본 ---------- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 22px; margin-bottom: 18px; box-shadow: var(--sh1); }
h1 { font-size: 23px; margin: 0 0 4px; letter-spacing: -.2px; } h2 { font-size: 17px; margin: 0 0 8px; } h3 { margin: 0; }
.muted { color: var(--ink2); }
label { display: block; font-size: 13px; font-weight: 600; color: var(--ink2); margin: 14px 0 6px; }
input, textarea { width: 100%; padding: 11px 13px; border: 1px solid #cfdbe8; border-radius: 10px; font: inherit; background: #fff; transition: border-color .15s, box-shadow .15s; }
input:focus, textarea:focus { outline: none; border-color: var(--brand3); box-shadow: 0 0 0 4px rgba(0,113,188,.18); }
button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 9px 16px; border-radius: 10px; border: 1px solid #cfdbe8; background: #fff; color: var(--ink); font: inherit; font-weight: 600; cursor: pointer; transition: background .15s, box-shadow .15s, transform .05s; }
button:hover { background: var(--tint2); } button:active { transform: translateY(1px); }
button.primary { background: linear-gradient(135deg, var(--brand2), var(--brand)); color: #fff; border-color: transparent; width: 100%; margin-top: 18px; padding: 12px 16px; box-shadow: 0 8px 18px -8px rgba(0,113,188,.7); }
button.primary:hover { filter: brightness(1.08); }
button.gold { background: linear-gradient(135deg, var(--gold2), var(--gold)); color: var(--brand); border-color: transparent; box-shadow: 0 8px 18px -10px rgba(245,184,61,.9); }
button.ghost { background: transparent; }
button:disabled { opacity: .6; cursor: default; }
.err { color: var(--bad); font-size: 14px; margin-top: 10px; min-height: 1em; }
.okmsg { color: var(--ok); font-size: 14px; margin-top: 10px; font-weight: 600; }
.hint { font-size: 13px; color: var(--ink2); margin-top: 8px; }
.loading { display: flex; align-items: center; gap: 10px; color: var(--ink2); padding: 40px 0; justify-content: center; }
.spin { width: 20px; height: 20px; border-radius: 50%; border: 3px solid var(--tint); border-top-color: var(--brand2); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.rise > * { animation: rise .35s ease both; } .rise > *:nth-child(2) { animation-delay: .04s; } .rise > *:nth-child(3) { animation-delay: .08s; } .rise > *:nth-child(4) { animation-delay: .12s; }

/* ---------- 로그인 ---------- */
.auth { display: grid; grid-template-columns: 1.05fr 1fr; max-width: 980px; margin: 30px auto; border-radius: 20px; overflow: hidden; background: #fff; box-shadow: var(--sh2); border: 1px solid var(--line); }
.auth-side { position: relative; overflow: hidden; padding: 40px 38px; color: #fff; background: linear-gradient(150deg, #041d45 0%, var(--brand) 40%, var(--brand2) 100%); }
.auth-side::before, .auth-side::after { content: ""; position: absolute; border-radius: 50%; }
.auth-side::before { width: 340px; height: 340px; right: -120px; bottom: -140px; background: radial-gradient(circle, rgba(245,184,61,.35), transparent 65%); }
.auth-side::after { width: 360px; height: 360px; right: -110px; top: 30px; border-radius: 0; background: url(emblem-white.png) no-repeat center / contain; opacity: .09; }
.auth-side > * { position: relative; }
.auth-side img { height: 46px; width: auto; display: block; align-self: flex-start; }
.auth-side .tagl { display: inline-block; margin-top: 22px; font-size: 12px; font-weight: 700; letter-spacing: 1.6px; color: var(--gold2); text-transform: uppercase; }
.auth-side h1 { font-size: 28px; margin: 6px 0 6px; line-height: 1.2; }
.auth-side p { color: #cfe2f4; margin: 0 0 22px; }
.feat { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.feat li { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; color: #e6f0fa; }
.feat li b { display: block; color: #fff; }
.feat .fi { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: rgba(255,255,255,.12); color: var(--gold); flex: none; }
.auth-form { padding: 40px 38px; display: flex; flex-direction: column; justify-content: center; }
.auth-form h1 { font-size: 24px; }
.narrow { max-width: 460px; margin: 30px auto; padding: 32px; }
.narrow h1 { display: flex; align-items: center; gap: 10px; }

/* ---------- 홈: 큰 머리 ---------- */
.hero { position: relative; overflow: hidden; border-radius: 20px; padding: 30px 32px; margin-bottom: 20px; color: #fff; background: linear-gradient(115deg, #041d45 0%, var(--brand) 38%, var(--brand2) 78%, #1d8ad6 100%); box-shadow: var(--sh2); display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.hero::before { content: ""; position: absolute; width: 420px; height: 420px; right: -110px; top: -200px; border-radius: 50%; background: radial-gradient(circle, rgba(245,184,61,.32), transparent 62%); }
.hero::after { content: ""; position: absolute; right: 22%; top: -60px; width: 300px; height: 300px; background: url(emblem-white.png) no-repeat center / contain; opacity: .08; pointer-events: none; }
.hero > * { position: relative; }
.hero .hi { font-size: 13px; color: var(--gold2); font-weight: 600; letter-spacing: .6px; text-transform: uppercase; }
.hero h1 { font-size: 30px; margin: 4px 0 8px; }
.hero .tags { display: flex; gap: 8px; flex-wrap: wrap; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px; border-radius: 999px; font-size: 12.5px; font-weight: 600; background: rgba(255,255,255,.12); color: #e9f2fb; border: 1px solid rgba(255,255,255,.18); }
.pill .ico { width: 14px; height: 14px; }
.hero-cta { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.hero-cta .big { font-size: 15px; padding: 12px 20px; }
.hero-cta small { color: #cfe2f4; font-size: 12px; }

/* ---------- 숫자 타일 ---------- */
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 20px; }
.kpi { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 18px 18px 16px; box-shadow: var(--sh1); display: flex; gap: 14px; align-items: center; }
.kpi .ki { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; flex: none; }
.kpi .ki .ico { width: 22px; height: 22px; }
.kpi .kl { font-size: 12.5px; color: var(--ink2); font-weight: 600; }
.kpi .kv { font-size: 24px; font-weight: 800; letter-spacing: -.4px; line-height: 1.15; }
.kpi .ks { font-size: 12px; color: var(--ink3); }
.c-amber .ki { background: #fff4e0; color: #c27803; } .c-green .ki { background: #e5f6ec; color: #13803d; }
.c-violet .ki { background: var(--tint); color: var(--brand2); } .c-blue .ki { background: #e8ecf8; color: #2f4aa8; }

/* ---------- 업무 타일 ---------- */
.sec-h { display: flex; justify-content: space-between; align-items: baseline; margin: 6px 2px 12px; }
.sec-h h2 { margin: 0; font-size: 16px; } .sec-h span { font-size: 12.5px; color: var(--ink3); }
.mods { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 22px; }
.mod { position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 6px; background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 20px; color: inherit; text-decoration: none; box-shadow: var(--sh1); transition: transform .15s, box-shadow .15s, border-color .15s; min-height: 190px; }
.mod::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: var(--acc, var(--brand2)); }
a.mod:hover { transform: translateY(-3px); box-shadow: var(--sh2); border-color: #bcd8ef; }
.mod .mi { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; color: #fff; background: var(--acc, var(--brand2)); box-shadow: 0 8px 16px -8px var(--acc, var(--brand2)); margin-bottom: 6px; }
.mod .mi .ico { width: 24px; height: 24px; }
.mod h3 { font-size: 16px; } .mod p { margin: 0; font-size: 13px; color: var(--ink2); flex: 1; }
.mod .mf { display: flex; justify-content: space-between; align-items: center; margin-top: 8px; }
.mod .mn { font-size: 22px; font-weight: 800; }
.mod .go { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; font-weight: 700; color: var(--brand2); }
.mod.soon { background: linear-gradient(180deg, #fff, #f7fbfe); } .mod.soon .mi { filter: saturate(.55); opacity: .75; box-shadow: none; }
.soon-tag { position: absolute; top: 14px; right: 14px; font-size: 11px; font-weight: 700; letter-spacing: .4px; text-transform: uppercase; padding: 3px 9px; border-radius: 999px; background: var(--tint); color: var(--brand2); }
.m-po { --acc: linear-gradient(135deg, #2b9be3, #0062a8); } .m-dl { --acc: linear-gradient(135deg, #f8c55c, #e79b12); } .m-inv { --acc: linear-gradient(135deg, #34c48b, #0f8a5f); } .m-qc { --acc: linear-gradient(135deg, #5b7be0, #2f4aa8); }

/* ---------- 아래 두 칸 ---------- */
.cols { display: grid; grid-template-columns: 1.6fr 1fr; gap: 18px; align-items: start; }
.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--sh1); overflow: hidden; margin-bottom: 18px; }
.panel-h { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.panel-h h2 { margin: 0; font-size: 16px; display: flex; align-items: center; gap: 8px; } .panel-h a { font-size: 13px; font-weight: 600; text-decoration: none; display: inline-flex; align-items: center; gap: 4px; }
.panel-b { padding: 16px 20px; }
.po-item { display: grid; grid-template-columns: auto 1fr auto auto; gap: 14px; align-items: center; padding: 14px 20px; border-bottom: 1px solid var(--line); text-decoration: none; color: inherit; transition: background .12s; }
.po-item:last-child { border-bottom: 0; } .po-item:hover { background: var(--tint2); }
.po-item .pi { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; background: var(--tint); color: var(--brand2); }
.po-item b { display: block; font-family: Consolas, "Cascadia Mono", monospace; font-size: 14px; } .po-item small { color: var(--ink2); font-size: 12.5px; }
.po-item .amt { text-align: right; font-weight: 700; } .po-item .amt small { display: block; font-weight: 400; }
.po-item .arr { color: var(--ink3); }
.po-item .amt .badge { margin-left: 8px; } .mod .due { align-self: flex-start; margin-top: 4px; }
.empty { padding: 28px 20px; text-align: center; color: var(--ink2); }
.steps { list-style: none; margin: 0; padding: 0; }
.steps li { position: relative; display: flex; gap: 14px; padding: 0 0 18px; }
.steps li:last-child { padding-bottom: 0; }
.steps li::before { content: ""; position: absolute; left: 15px; top: 32px; bottom: 2px; width: 2px; background: var(--line); }
.steps li:last-child::before { display: none; }
.steps .sn { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; font-weight: 800; flex: none; background: #fff; border: 2px solid var(--line); color: var(--ink3); }
.steps li.live .sn { background: linear-gradient(135deg, var(--brand3), var(--brand2)); border-color: transparent; color: #fff; }
.steps li.live::before { background: linear-gradient(var(--brand3), var(--line)); }
.steps b { display: block; font-size: 14px; } .steps small { color: var(--ink2); font-size: 12.5px; }
.steps .st { font-size: 11px; font-weight: 700; margin-left: 6px; padding: 1px 7px; border-radius: 999px; background: #e5f6ec; color: var(--ok); vertical-align: 1px; }
.steps li:not(.live) .st { background: var(--tint); color: var(--brand2); }
.help { display: flex; gap: 14px; align-items: flex-start; background: linear-gradient(135deg, #fff8e8, #fff); border: 1px solid #f4e2b5; border-radius: var(--r); padding: 16px 18px; }
.help .hi2 { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; background: var(--gold); color: var(--brand); flex: none; }
.help b { display: block; } .help small { color: var(--ink2); }

/* ---------- 상태 표 ---------- */
.badge { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 999px; white-space: nowrap; }
.badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.badge.ok { background: #e5f6ec; color: var(--ok); } .badge.due { background: #fff4e0; color: #b26a00; } .badge.bad { background: #fde8e8; color: var(--bad); }
.confirm-card.cancelled { border-left-color: var(--bad); background: linear-gradient(90deg, #fdf0f0, #fff 50%); }
.due { display: inline-block; font-size: 12px; background: #fff4e0; color: #9a5b00; padding: 2px 8px; border-radius: 10px; }
.crumbs { font-size: 13px; color: var(--ink2); margin-bottom: 6px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.crumbs a { text-decoration: none; font-weight: 600; }
.actions { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 12px; flex-wrap: wrap; }
.page-h { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.page-h h1 { font-size: 26px; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chips button { padding: 6px 13px; border-radius: 999px; font-size: 13px; background: #fff; }
.chips button[aria-pressed="true"] { background: var(--brand2); color: #fff; border-color: var(--brand2); }
.chips button .n { font-size: 11.5px; padding: 0 7px; border-radius: 999px; background: var(--tint); color: var(--brand2); }
.chips button[aria-pressed="true"] .n { background: rgba(255,255,255,.2); color: #fff; }
.scroll { overflow-x: auto; }
table.grid-t, table.po-t { width: 100%; border-collapse: collapse; font-size: 13px; }
.grid-t th, .grid-t td, .po-t th, .po-t td { border-bottom: 1px solid var(--line); padding: 7px 9px; text-align: left; white-space: nowrap; }
.grid-t th { background: var(--tint2); color: var(--ink2); font-weight: 700; font-size: 12px; text-transform: uppercase; letter-spacing: .3px; padding: 11px 14px; }
.grid-t td { padding: 13px 14px; font-size: 14px; }
.grid-t td a { font-weight: 700; text-decoration: none; font-family: Consolas, "Cascadia Mono", monospace; }
.po-t th { background: var(--tint); font-weight: 700; font-size: 12px; color: var(--brand); }
tr.click { cursor: pointer; } tr.click:hover { background: var(--tint2); }
.po-t td.r, .grid-t td.r, .grid-t th.r, .po-tot td.r { text-align: right; } .po-t td.c { text-align: center; } .po-t td.b, tr.b td { font-weight: 700; } .po-t td.sch { background: #f7fbfe; }
.po-t tbody tr:nth-child(even) td { background: #fbfdff; } .po-t tbody tr:hover td { background: var(--tint2); }
.mono { font-family: Consolas, "Cascadia Mono", monospace; }
.tbl-card { padding: 0; overflow: hidden; }
.tbl-card .hint { padding: 0 20px 16px; }

/* ---------- PO 문서 ---------- */
.po { padding: 28px; }
.po-top { display: flex; justify-content: space-between; gap: 12px; border-bottom: 3px solid var(--brand); padding-bottom: 12px; margin-bottom: 14px; flex-wrap: wrap; position: relative; }
.po-top::after { content: ""; position: absolute; left: 0; bottom: -3px; width: 120px; height: 3px; background: var(--gold); }
.po-co { color: var(--brand); font-size: 17px; } .po-title { text-align: right; display: flex; flex-direction: column; align-items: flex-end; gap: 3px; }
.po-title h1 { color: var(--brand); letter-spacing: 2px; font-size: 24px; } .po-no { font-weight: 800; font-size: 16px; font-family: Consolas, "Cascadia Mono", monospace; }
.po-boxes { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; margin-bottom: 14px; }
.po-box { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; background: var(--tint2); }
.po-box h3 { margin: 0 0 6px; font-size: 11.5px; color: var(--brand2); text-transform: uppercase; letter-spacing: .6px; }
.po-box dl { display: grid; grid-template-columns: 120px 1fr; gap: 3px 8px; margin: 0; font-size: 13px; } .po-box dt { color: var(--ink2); } .po-box dd { margin: 0; font-weight: 600; }
.po-tot { margin: 12px 0 0 auto; border-collapse: collapse; font-size: 13px; } .po-tot td { border: 1px solid var(--line); padding: 6px 12px; } .po-tot tr.b td { background: var(--brand); color: #fff; }
.po-terms { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 14px; margin-top: 16px; font-size: 13px; } .po-terms h3 { font-size: 11.5px; color: var(--brand2); text-transform: uppercase; letter-spacing: .6px; margin: 0; } .po-terms ol { margin: 4px 0 0 18px; padding: 0; }
.confirm-card { border-left: 4px solid var(--gold); }
.confirm-card.done { border-left-color: var(--ok); background: linear-gradient(90deg, #f1fbf4, #fff 50%); }
.confirm-card button.primary { width: auto; padding: 12px 28px; }

/* ---------- 좁은 화면 ---------- */
@media (max-width: 1360px) { .brand .lg { height: 28px; } .who .me { display: none; } }
@media (max-width: 1100px) { .kpis, .mods { grid-template-columns: repeat(2, 1fr); } .cols { grid-template-columns: 1fr; } }
@media (max-width: 820px) { .who button span, .who .me div, .upd .ut { display: none; }
  /* 좁은 화면: 메뉴를 둘째 줄로 내리고 글자도 보이게 (2026-10-05 사용자: "위 메뉴 DELIVERIES 안 보이는데") */
  .top { flex-wrap: wrap; row-gap: 6px; } .left { flex-wrap: wrap; flex: 1 1 auto; } .nav { order: 3; flex-basis: 100%; margin-left: 0; justify-content: space-between; gap: 4px; } .nav a { flex: 1; justify-content: center; padding: 7px 6px; font-size: 13px; } .nav { margin-left: 8px; } .who button { padding: 7px 9px; } .auth { grid-template-columns: 1fr; margin: 10px auto; } .auth-side { padding: 28px 24px; } .auth-side .feat { display: none; } .auth-form { padding: 28px 24px; } }
@media (max-width: 600px) { .top { padding: 9px 12px; } .brand .lg, .brand .sp { display: none; } .brand .em { display: block; } .brand { gap: 8px; } .upd { padding: 5px 8px; } .brand img { width: 30px; height: 30px; } main { padding: 16px 12px; }
  .kpis { gap: 10px; } .kpi { padding: 14px; gap: 10px; } .kpi .ki { width: 38px; height: 38px; } .kpi .kv { font-size: 19px; } .mods { grid-template-columns: 1fr; } .mod { min-height: 0; }
  .hero { padding: 22px 20px; } .hero h1 { font-size: 23px; } .hero-cta { align-items: flex-start; } .po-item { grid-template-columns: auto 1fr auto; padding: 12px 14px; gap: 10px; } .po-item b { font-size: 12.5px; } .po-item .amt .badge { display: flex; margin: 4px 0 0; } .po-item .arr { display: none; } .po { padding: 16px; }
  .po-title { text-align: left; align-items: flex-start; } .po-box dl { grid-template-columns: 100px 1fr; } }
@media (max-width: 420px) { .kpi { flex-direction: column; align-items: flex-start; } .who .avatar { display: none; } }

/* ---------- 인쇄 ---------- */
@media print { @page { size: A4 landscape; margin: 8mm; } body::before { display: none; } .top, .foot, .noprint { display: none !important; } body { background: #fff; } main { padding: 0; max-width: none; }
  .card { border: 0; padding: 0; box-shadow: none; } .po-box { background: none; } .po-t, .po-tot, .po-terms { font-size: 9px; } .po-t th, .po-t td { padding: 2px 4px; border: 1px solid #999; } .po-t tbody tr td { background: none !important; } .po-tot tr.b td { background: #eee; color: #000; } .scroll { overflow: visible; } }
.po-t th { white-space: normal; }

/* ---------- 납품 등록 · 박스 태그 · 납품서 (2026-10-05) ---------- */
.dlv-head { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 4px 14px; }
.dlv-head label { margin-top: 8px; } .dlv-head select { width: 100%; padding: 10px 12px; border: 1px solid #cfdbe8; border-radius: 10px; font: inherit; background: #fff; }
.dlv-q { max-width: 280px; padding: 8px 12px; }
.dlv-t td { padding: 7px 8px; font-size: 13px; vertical-align: middle; } .dlv-t td.b { font-weight: 700; }
.dlv-t input { padding: 6px 8px; border-radius: 8px; font-size: 13px; min-width: 90px; } .dlv-t input.num { width: 96px; text-align: right; } .dlv-t input[type=date] { min-width: 128px; width: 128px; } .dlv-t input[type=text] { width: 100px; min-width: 80px; }
.dlv-t input.over { border-color: var(--bad); background: #fff1f1; }
.dlv-t tr.on td { background: #f2f8fd; }
button.mini { padding: 3px 9px; font-size: 12.5px; border-radius: 8px; }
.dlv-act .dlv-btns { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; justify-content: flex-end; } .dlv-act .dlv-btns b { margin-right: auto; color: var(--brand); }
.badge.bad { background: #fde8e8; color: var(--bad); }
.asn-sub { font-size: 12px; font-weight: 700; letter-spacing: .08em; color: var(--brand2); text-transform: uppercase; }
.dn-qr { display: flex; flex-direction: column; align-items: center; gap: 2px; } .dn-qr .qr { width: 96px; height: 96px; } .dn-qr small { font-size: 11px; color: var(--ink2); }
.dn-sign { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 18px; } .dn-sign div { border: 1px solid var(--line); border-radius: 8px; height: 70px; padding: 6px 8px; font-size: 11.5px; color: var(--ink2); }
.qr svg { width: 100%; height: 100%; display: block; }
.tag-sheet { display: grid; grid-template-columns: repeat(auto-fill, minmax(400px, 1fr)); gap: 14px; margin-bottom: 18px; }
/* 박스 태그 100 × 85 mm = PHI ERP 라벨 모양 + 업체 검사 칸 (2026-10-05) */
.tag { display: flex; flex-direction: column; width: 100mm; height: 85mm; padding: 2.5mm 3.5mm; background: #fff; color: #000; border: 1px solid #222; border-radius: 2mm; box-sizing: border-box; overflow: hidden; font-family: Arial, "Segoe UI", sans-serif; }
.tag .th { display: flex; justify-content: space-between; align-items: center; font-size: 3.6mm; } .tag .th b { font-weight: 600; } .tag .th .box { font-weight: 800; font-size: 3.2mm; border: .3mm solid #000; padding: 0 1.2mm; border-radius: .8mm; }
.tag .tmain { display: flex; gap: 2mm; margin-top: 1mm; } .tag .tinfo { flex: 1; min-width: 0; }
.tag .tmain .qr { width: 19mm; height: 19mm; flex: none; }
.tag .tr { display: flex; gap: 1.4mm; align-items: baseline; line-height: 1.15; white-space: nowrap; } .tag .tr .k { flex: none; }
.tag .tr .v { overflow: hidden; text-overflow: ellipsis; }
.tag .tr.sm { font-size: 3.3mm; } .tag .tr.lg { font-size: 4.1mm; font-weight: 800; letter-spacing: .1mm; } .tag .tr.xl { font-size: 5.2mm; font-weight: 900; }
.tag .tbc { margin-top: auto; text-align: center; } .tag .tbc .bt { font-size: 3.4mm; letter-spacing: .2mm; } .tag .tbc .bc { height: 11mm; margin: .4mm 4mm 0; } .tag .tbc .bc svg { width: 100%; height: 100%; display: block; } .tag .tbc .bb { font-family: Consolas, monospace; font-size: 2.8mm; letter-spacing: .3mm; }
.tag .tinsp { display: flex; flex-wrap: wrap; gap: .3mm 2.2mm; border-top: .3mm dashed #555; margin-top: 1.2mm; padding-top: .8mm; font-size: 2.35mm; line-height: 1.2; } .tag .tinsp i { font-style: normal; color: #444; }
.tag.void { opacity: .35; background: repeating-linear-gradient(-45deg, #fff, #fff 8px, #f3f3f3 8px, #f3f3f3 16px); }
.dlv-t input.sm { width: 80px; min-width: 70px; } .dlv-t select { padding: 6px 6px; border: 1px solid #cfdbe8; border-radius: 8px; font: inherit; font-size: 12.5px; background: #fff; }
@page tagp { size: 100mm 85mm; margin: 0; }
@media print {
  body[data-print] main > * { display: none !important; }
  body[data-print=tags] main > .tag-sheet { display: block !important; }
  body[data-print=tags] .tag { page: tagp; break-after: page; border: 0; border-radius: 0; margin: 0; }
  body[data-print=tags] .tag.void { display: none; }
  body[data-print=tags] .tag:last-child { break-after: auto; }
  body[data-print] { min-height: 0; } body[data-print]::before { display: none; } body[data-print=tags] main { padding: 0 !important; margin: 0; } body[data-print=tags] main > .tag-sheet { margin: 0; gap: 0; }
  body[data-print=dn] main > .dn-doc { display: block !important; }
  body[data-print] .viewbar { display: none !important; }
}
/* New delivery 표 머리글 틀고정 (2026-10-05) — 표 상자 안에서 위아래로 스크롤, 머리 줄은 위에 붙음 */
.dlv-wrap { max-height: calc(100vh - 230px); min-height: 260px; overflow: auto; scroll-margin-top: 96px; }
.dlv-t thead th { position: sticky; top: 0; z-index: 3; background: #eef4fb; box-shadow: inset 0 -1px 0 var(--line); }
/* New delivery 왼쪽 4칸(PO · 구매 코드 · MES · 품명) 틀고정 (2026-10-05) */
.dlv-t .fz { position: sticky; z-index: 2; background: #fff; } .dlv-t tr.on .fz { background: #f2f8fd; } .dlv-t thead th.fz { z-index: 4; background: #eef4fb; }
.dlv-t .fz-last { box-shadow: 2px 0 0 var(--line), 6px 0 8px -6px rgba(6,43,99,.25); } .dlv-t thead th.fz-last { box-shadow: 2px 0 0 var(--line), inset 0 -1px 0 var(--line); }
.dlv-t td:nth-child(4) { white-space: normal; min-width: 150px; max-width: 220px; line-height: 1.25; }
/* 로트 나누기 (2026-10-05) */
.dlv-t .lot-td { white-space: nowrap; } .dlv-t .lot-td .mini { margin-left: 4px; } .dlv-t tr.lot-extra td { background: #fafcff; } .dlv-t tr.lot-extra td:first-child { color: var(--ink3); }
.dlv-lothint { padding: 0 20px 10px; margin: 0; }
/* 유효기간 짧은 품번 (2026-10-05) */
.dlv-t small.shelf { display: block; font-family: inherit; font-weight: 700; font-size: 11px; color: #b45309; }
.tag .tr.exp-short .v { font-weight: 900; }
/* Lot 바코드 사진 읽기 (2026-10-05) */
.dlv-t .mini.scan { padding: 3px 7px; } .dlv-t input.scanned { background: #e5f6ec !important; border-color: var(--ok); }
/* 휴대폰 스캐너 (2026-10-05) */
.phonebox { padding: 0 20px 12px; display: flex; gap: 14px; align-items: flex-start; flex-wrap: wrap; }
.phoneinfo { display: flex; gap: 12px; align-items: center; flex: 1; min-width: 280px; font-size: 13px; color: var(--ink2); } .phoneinfo .qr { width: 96px; height: 96px; flex: none; } .phoneinfo .phonelast { color: var(--brand); }
.dlv-t input.target { outline: 3px solid var(--gold); outline-offset: 1px; background: #fffbea; }
.scanpage { max-width: 560px; margin: 0 auto; text-align: center; } .scanpage .crumbs { justify-content: center; }
.bigscan { font-size: 20px; padding: 22px 16px !important; border-radius: 18px; margin: 16px 0 10px; } .bigscan .ico { width: 28px; height: 28px; }
.scanlast { margin: 10px 0; padding: 12px; border-radius: 12px; background: #e5f6ec; color: var(--ok); } .scanlast:empty { display: none; } .scanlast b { display: block; font-size: 18px; color: var(--ink); word-break: break-all; }
.scanlist { text-align: left; font-size: 14px; } .scanlist li { margin: 4px 0; word-break: break-all; } .scanlist small { color: var(--ink3); }
.asn-next { border-left: 5px solid var(--gold); background: #fffbea; padding: 14px 18px; } .asn-next b { color: var(--brand); }

/* ASN 서류 = 인도 ASN 양식 (2026-10-05, PHI → KFTI ASN 과 같은 칸) */
.asn-parties { display: grid; grid-template-columns: 1fr 1fr 1.1fr; gap: 12px; margin-bottom: 10px; }
.asn-party, .asn-meta { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; font-size: 13px; line-height: 1.45; }
.asn-party h3 { margin: 0 0 4px; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--brand2); } .asn-party b { display: block; color: var(--brand); font-size: 14px; }
.asn-gst { font-weight: 700; } .asn-gst.miss, .asn-t td.miss { color: var(--bad); font-weight: 700; }
.asn-meta { display: flex; gap: 10px; justify-content: space-between; align-items: center; } .asn-meta dl { display: grid; grid-template-columns: auto 1fr; gap: 3px 10px; margin: 0; } .asn-meta dt { color: var(--ink2); } .asn-meta dd { margin: 0; font-weight: 600; } .asn-meta dd.b { font-weight: 800; color: var(--brand); }
.asn-info { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 12.5px; margin: 0 0 10px; padding: 6px 2px; } .asn-info i { font-style: normal; color: var(--ink2); }
.asn-t small.asn-sm { display: block; font-family: inherit; font-size: 11px; color: var(--ink2); font-weight: 400; white-space: normal; max-width: 260px; }
.asn-t th.c { text-align: center; } .asn-t th.r { text-align: right; } .asn-t tr.asn-tot td { font-weight: 800; background: var(--tint) !important; border-top: 2px solid var(--brand); }
.asn-note { margin: 8px 0 0; }
@media (max-width: 900px) { .asn-parties { grid-template-columns: 1fr; } }
@media print { .asn-parties { grid-template-columns: 1fr 1fr 1.1fr; gap: 6px; } .asn-party, .asn-meta { font-size: 10px; padding: 5px 7px; border-color: #999; } .asn-party b { font-size: 11px; } .asn-info { font-size: 9.5px; } .asn-t small.asn-sm { font-size: 8px; max-width: 200px; } .asn-meta .dn-qr .qr { width: 72px; height: 72px; } .asn-t tr.asn-tot td { background: #eee !important; } }
/* 오리지널 인보이스 (2026-10-05) */
.asn-final { border-left: 5px solid var(--gold); background: #fffbea; } .asn-final.done { border-left-color: var(--ok); background: #f1faf4; }
.asn-final-f { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; } .asn-final-f input { max-width: 240px; } .asn-final-f input[type=date] { max-width: 170px; }
@media print { .asn-final { display: none !important; } }
/* 라벨 품번 확인 (2026-10-05) */
.dlv-t .lotchk { display: block; font-size: 11px; font-weight: 700; white-space: normal; max-width: 220px; } .dlv-t .lotchk.ok { color: var(--ok); } .dlv-t .lotchk.bad { color: var(--bad); }
.dlv-t input.lot-bad { border-color: var(--bad); background: #fff1f1; } .dlv-t input.lot-ok { border-color: #8fd3a8; }
.dlv-t input.lot-flash { outline: 3px solid var(--bad); outline-offset: 1px; } .phoneinfo .phonelast.bad { color: var(--bad); }
/* 휴대폰 스캐너 주소 고르기 (2026-10-05) */
.phoneqr .qr { width: 96px; height: 96px; } .phonemid { flex: 1; min-width: 240px; display: flex; flex-direction: column; gap: 6px; } .phonepick { display: flex; gap: 6px; flex-wrap: wrap; } .phonepick button.on { background: var(--brand); color: #fff; border-color: var(--brand); }
/* 망마다 QR (2026-10-05) */
.phoneqrs { display: flex; gap: 12px; flex-wrap: wrap; flex: none; } .phoneqr { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 8px; border: 1px solid var(--line); border-radius: 10px; background: #fff; max-width: 170px; text-align: center; } .phoneqr b { font-size: 12px; color: var(--brand); } .phoneqr small { font-size: 10.5px; color: var(--ink2); word-break: break-all; }
/* 성적서 (2026-10-05) */
.dlv-t tr.iqc-row td { background: #fbfdff; padding: 10px 14px 14px; } .iqc-title { font-weight: 800; color: var(--brand); margin-bottom: 8px; }
.iqc-btn.todo { border-color: #c98a00; color: #7a5200; background: #fff8e6; } .iqc-btn.ok { border-color: #8fd3a8; color: var(--ok); background: #eefaf2; } .iqc-btn.ng { border-color: var(--bad); color: var(--bad); background: #fff1f1; }
.iqc-hd { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: flex-end; margin-bottom: 8px; } .iqc-hd label { display: flex; flex-direction: column; font-size: 12px; } .iqc-hd input { padding: 6px 8px; border-radius: 8px; min-width: 140px; } .iqc-hd .muted { font-size: 12.5px; }
.iqc-t { border-collapse: collapse; font-size: 12.5px; } .iqc-t th, .iqc-t td { border: 1px solid var(--line); padding: 4px 6px; white-space: nowrap; } .iqc-t th { background: var(--tint); color: var(--brand); } .iqc-t td.spec { font-family: Consolas, monospace; } .iqc-t td.c { text-align: center; }
.iqc-t input.num { width: 64px; text-align: right; padding: 4px 6px; border-radius: 6px; } .iqc-t select { padding: 3px 4px; border-radius: 6px; } .iqc-t .ok { border-color: #8fd3a8; background: #f2fbf5; } .iqc-t .ng { border-color: var(--bad); background: #ffe8e8; color: var(--bad); font-weight: 700; }
.iqc-t td.res { font-weight: 800; text-align: center; } .iqc-t td.res.ok { color: var(--ok); } .iqc-t td.res.ng { color: var(--bad); } .iqc-tools { margin-top: 8px; }
.iqc-doc { margin-top: 14px; } .iqc-dtop { display: flex; justify-content: space-between; align-items: center; border-bottom: 3px solid var(--brand); padding-bottom: 8px; margin-bottom: 10px; } .iqc-dtop b { font-size: 18px; letter-spacing: 1px; color: var(--brand); }
.iqc-kv { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px 14px; font-size: 12.5px; margin-bottom: 10px; } .iqc-kv i { font-style: normal; color: var(--ink2); margin-right: 6px; } .iqc-pt td.ng { color: var(--bad); font-weight: 800; }
@media (max-width: 900px) { .iqc-kv { grid-template-columns: 1fr 1fr; } }
@media print { body[data-print=iqc] main > .iqc-sheet { display: block !important; } body[data-print=iqc] .iqc-doc { break-after: page; border: 0; padding: 0; margin: 0; } body[data-print=iqc] .iqc-doc:last-child { break-after: auto; } .iqc-kv { font-size: 9.5px; } .iqc-pt { font-size: 8.5px; } }
/* 성적서 입력 칸: 넓은 납품 표 안에서 화면 폭에 맞게 고정 (2026-10-05) */
.dlv-t tr.iqc-row > td { padding: 10px 0 14px; } .dlv-t .iqc-title, .dlv-t .iqc-ed { position: sticky; left: 14px; max-width: calc(100vw - 150px); } .dlv-t .iqc-t { width: auto; } .dlv-t .iqc-t td, .dlv-t .iqc-t th { padding: 4px 6px; font-size: 12.5px; }
.dlv-t .iqc-t td.spec { white-space: normal; min-width: 140px; max-width: 210px; } .dlv-t .iqc-t input.num { width: 64px; min-width: 0; } .dlv-t .iqc-hd input { width: auto; min-width: 140px; }
/* 풍선 도면 (2026-10-05) */
.iqc-gal { margin: 6px 0 10px; } .iqc-gal > b { display: block; font-size: 12.5px; color: var(--brand); margin-bottom: 6px; } .iqc-gal-row { display: flex; flex-wrap: wrap; gap: 10px; } .iqc-gal img { max-height: 260px; max-width: 380px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
@media print { .iqc-gal img { max-height: 70mm; max-width: 95mm; } .iqc-gal > b { font-size: 9px; } }
/* New delivery 화면: 글씨 고정 · 칸 작게 · 저장/제출 버튼은 아래 한 줄 (2026-10-06 사용자: 글씨가 너무 크고 Draft·Submit 이 너무 커서 품목이 안 보임) */
.dlv-form { font-size: 13.5px; } .dlv-form h1 { font-size: 22px; margin: 2px 0 4px; } .dlv-form .hint, .dlv-form .dlv-lothint { font-size: 12.5px; line-height: 1.45; }
.dlv-form .card { padding: 14px 16px; margin-bottom: 12px; } .dlv-form .card h2 { font-size: 15px; margin: 0 0 6px; } .dlv-form .panel-h { padding: 10px 14px; }
.dlv-form .dlv-head { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 2px 10px; } .dlv-form .dlv-head label { margin-top: 4px; font-size: 12px; }
.dlv-form .dlv-head input, .dlv-form .dlv-head select { padding: 6px 8px; font-size: 13.5px; border-radius: 8px; min-height: 0; }
.dlv-form .dlv-wrap { max-height: calc(100vh - 190px); }
.dlv-form .dlv-act { position: sticky; bottom: 0; z-index: 15; margin: 0; padding: 8px 14px; border-radius: 12px 12px 0 0; box-shadow: 0 -6px 18px -8px rgba(15, 40, 70, .25); }
.dlv-form .dlv-act .dlv-btns { gap: 8px; flex-wrap: nowrap; } .dlv-form .dlv-act .dlv-btns b { font-size: 12.5px; font-weight: 600; white-space: normal; line-height: 1.3; }
.dlv-form .dlv-act button { width: auto; margin: 0; padding: 7px 14px; font-size: 13.5px; white-space: nowrap; flex: none; } .dlv-form .dlv-act .err { font-size: 12.5px; margin: 4px 0 0; }
@media (max-width: 600px) { .dlv-form h1 { font-size: 19px; } .dlv-form .dlv-head { grid-template-columns: 1fr 1fr; } .dlv-form .dlv-act .dlv-btns b { display: none; } .dlv-form .dlv-act .dlv-btns { justify-content: flex-end; } }
@media (max-width: 600px) { .nav a { font-size: 12.5px; padding: 6px 4px; gap: 4px; white-space: nowrap; } .nav a svg, .nav a .ico { width: 16px; height: 16px; }
  .dlv-form .card { padding: 12px; } .dlv-form .dlv-act { padding: 8px 10px; } .dlv-form .dlv-act .dlv-btns { flex-wrap: nowrap; } .dlv-form .dlv-act button { flex: 1 1 0; min-width: 0; padding: 7px 8px; font-size: 12.5px; white-space: normal; line-height: 1.2; } .dlv-form .dlv-act button .ico { width: 16px; height: 16px; } }
/* 휴대폰 가로 (낮은 화면): 위 메뉴는 따라오지 않게, 품목 표는 화면 거의 전체, 아래 버튼 줄은 얇게 (2026-10-06 사용자: "가로로 세웠을 때 특히 불편하다") */
@media (max-height: 520px) { .top { position: static; padding-top: 6px; padding-bottom: 6px; } main { padding-top: 10px; }
  .dlv-form .dlv-wrap { max-height: calc(100vh - 56px); min-height: 0; } .dlv-form .dlv-act { padding: 5px 12px; } .dlv-form .dlv-act button { padding: 5px 12px; font-size: 13px; }
  .dlv-form .dlv-act .dlv-btns b { font-size: 12px; } .dlv-form h1 { font-size: 18px; } .dlv-form .hint, .dlv-form .dlv-lothint { font-size: 12px; } .dlv-form .dlv-t td { padding: 4px 6px; } .dlv-form .dlv-t input, .dlv-form .dlv-t select { padding: 4px 6px; } }
/* 중간 폭(휴대폰 가로 · 작은 노트북)에서 위 메뉴 오른쪽 버튼이 화면 밖으로 넘쳐 페이지가 넓어지던 문제 — 아이콘만, 가로 넘침 금지 (2026-10-06) */
@media (max-width: 1100px) { .who button span, .who .me div, .upd .ut { display: none; } .who { gap: 6px; } .who button { padding: 7px 9px; } .top { flex-wrap: wrap; row-gap: 6px; } }
body { overflow-x: clip; }   /* hidden 은 고정(sticky) 메뉴 · 버튼 줄을 망가뜨려 clip */
/* 열 숨기기 · 품번 · 品名 틀고정 (2026-10-06) */
table.hide-po [data-c="po"], table.hide-mes [data-c="mes"], table.hide-poqty [data-c="poqty"], table.hide-dlvd [data-c="dlvd"], table.hide-bal [data-c="bal"], table.hide-boxes [data-c="boxes"], table.hide-prod [data-c="prod"], table.hide-idate [data-c="idate"], table.hide-itype [data-c="itype"], table.hide-rep [data-c="rep"], table.hide-line [data-c="line"], table.hide-hsn [data-c="hsn"], table.hide-uom [data-c="uom"], table.hide-price [data-c="price"], table.hide-amt [data-c="amt"] { display: none !important; }
.poln { display: none; } table.hide-po .poln { display: block; font-family: inherit; font-size: 10.5px; font-weight: 400; color: var(--ink2); }
.colpick { position: relative; } .colpnl { position: absolute; z-index: 30; top: 110%; left: 0; background: #fff; border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 12px 28px -10px rgba(15, 40, 70, .35); padding: 10px 12px; min-width: 200px; display: flex; flex-direction: column; gap: 4px; font-size: 13px; } .colpnl label { display: flex; align-items: center; gap: 6px; } .colpnl > b { font-size: 12px; color: var(--brand); }
.po-colbar { display: flex; justify-content: flex-end; margin: 4px 0 6px; }
.po-lines .fz { position: sticky; z-index: 2; background: #fff; } .po-lines thead th.fz { z-index: 3; background: var(--tint); } .po-lines .fz-last { box-shadow: 2px 0 0 var(--line), 6px 0 8px -6px rgba(6,43,99,.25); }
@media (max-width: 600px) { .dlv-t td[data-c="desc"], .po-lines td[data-c="desc"] { white-space: normal; min-width: 96px; max-width: 130px; font-size: 12px; line-height: 1.25; } .dlv-t td[data-c="part"], .po-lines td[data-c="part"] { font-size: 12px; } .panel-h { flex-wrap: wrap; gap: 8px; } .dlv-q { max-width: none; flex: 1; min-width: 140px; } }
@media print { table.po-lines [data-c] { display: table-cell !important; } .po-lines .fz { position: static; box-shadow: none; } }
.colpnl[hidden] { display: none; } .colpnl { left: auto; right: 0; max-width: calc(100vw - 32px); } .colpnl label { margin: 0; font-weight: 500; color: var(--ink); white-space: nowrap; font-size: 13px; display: flex; } .colpnl input[type=checkbox] { width: 16px; height: 16px; min-width: 0; margin: 0; padding: 0; flex: none; } .colpnl button { margin-top: 4px; }
/* 화면 줌 버튼 (2026-10-06) — 휴대폰 · 태블릿만 */
.zoomctl { display: none; align-items: center; gap: 2px; border: 1px solid var(--line); border-radius: 9px; background: #fff; padding: 2px; } .zoomctl button { padding: 4px 8px; font-size: 12.5px; font-weight: 700; border: 0; background: none; color: var(--brand); min-width: 0; width: auto; margin: 0; box-shadow: none; } .zoomctl b { font-size: 11.5px; color: var(--ink2); min-width: 34px; text-align: center; cursor: pointer; }
@media (max-width: 1100px), (pointer: coarse) { .zoomctl { display: inline-flex; } }
@media print { .zoomctl { display: none !important; } }
/* 오래된 PO 먼저 (2026-10-06) */
.dlv-t tr.fifo td { background: #fff8e6 !important; } .dlv-t small.fifo-w { display: block; font-family: inherit; font-size: 11px; font-weight: 700; color: #a16207; white-space: normal; max-width: 220px; }
/* 도면 크게 보기 (2026-10-06 사용자: "핸드폰에서 도면 클릭해서 열고 나면 다시 닫을 수가 없다.") */
.imgv { position: fixed; inset: 0; z-index: 9999; background: rgba(10, 16, 28, .92); display: flex; flex-direction: column; }
.imgv-bar { display: flex; align-items: center; gap: 6px; padding: 8px 10px; padding-top: max(8px, env(safe-area-inset-top)); background: rgba(0, 0, 0, .35); }
.imgv-sp { flex: 1; } .imgv-n { color: #fff; font-size: 14px; min-width: 44px; text-align: center; }
.imgv-b { min-width: 44px; height: 40px; border: 1px solid rgba(255,255,255,.35); border-radius: 8px; background: rgba(255,255,255,.12); color: #fff; font-size: 20px; font-weight: 700; cursor: pointer; padding: 0 10px; }
.imgv-b.imgv-x { background: #fff; color: #0b1a33; font-size: 15px; padding: 0 14px; } .imgv-b[hidden] { display: none; }
.imgv-box { flex: 1 1 0; min-height: 0; overflow: auto; overscroll-behavior: contain; display: flex; align-items: center; justify-content: center; padding: 10px; position: relative; z-index: 1; }
/* 버튼 줄은 항상 맨 위 · 줄어들지 않음 — 확대한 그림(스크롤 영역)이 덮어서 − 가 안 눌리던 것 (2026-10-06 사용자: "휴대폰 가로 모드에서 도면 확대 후 다시 작게 버튼이 안 눌러진다") */
.imgv-bar { flex: 0 0 auto; position: relative; z-index: 3; padding-left: max(10px, env(safe-area-inset-left)); padding-right: max(10px, env(safe-area-inset-right)); }
.imgv-b.imgv-fit { background: #0b1a33; color: #fff; border-color: #fff; box-shadow: 0 2px 10px rgba(0,0,0,.45); } .imgv-fit { position: fixed; right: max(14px, env(safe-area-inset-right)); bottom: max(14px, env(safe-area-inset-bottom)); z-index: 4; } .imgv-fit[hidden] { display: none; }
@media (max-height: 500px) { .imgv-bar { padding-top: 4px; padding-bottom: 4px; } .imgv-b { height: 36px; } }
.imgv-box.zoom { display: block; } .imgv-box img { background: #fff; border-radius: 4px; cursor: zoom-in; } .imgv-box.zoom img { cursor: zoom-out; }
html.imgv-open, html.imgv-open body { overflow: hidden; }
@media print { .imgv { display: none; } }

  /* 휴대폰 · 태블릿: 입력칸을 누르면 아이폰이 화면을 키우고(글자 16px 미만일 때) 입력이 끝나도 안 돌아옴 (2026-10-07 사용자: "기록 검색에 화면이 커졌다가 입력 완료하면 다시 원래 크기 화면으로 돌아가야되는데 안돌아가네")
     → 터치 화면에서는 입력칸 글자를 실제 16px 로 (화면 줌 A− 로 줄인 만큼 --zinv 로 되돌려 곱함) */
  @media (hover: none) and (pointer: coarse) { input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=file]), select, textarea { font-size: calc(16px * var(--zinv, 1)) !important; } }
