/* HACCP POP: 다원텍 Smart-POP(dwt.hbsol.kr/pop) 화면 치수·색 그대로 (2026-11-21) · 글씨체만 한컴말랑(한컴말랑체.css) */
:root{--pp-primary:#405189;--pp-primary-dark:#2f3d6b;--pp-body:#1f2a44;--pp-border:#e2e8f0;--pp-head:#f4f6fa;--pp-alt:#f8fafc;--pp-text:#1e293b}
body.pop-shell{margin:0;overflow:hidden;background:#fff;color:var(--pp-body)}
#popShell{position:fixed;inset:0;display:flex;flex-direction:column;overflow:hidden;background:#fff;z-index:1}
/* 상단 바 */
.pop-topbar{flex:0 0 auto;display:flex;align-items:stretch;height:63px;min-height:63px;background:var(--pp-primary)}
.pop-brand{width:260px;min-width:260px;display:flex;align-items:center;padding:0 18px;overflow:hidden;transition:width .2s,min-width .2s,padding .2s}
.pop-brand-link{display:flex;align-items:center;gap:10px;cursor:pointer;overflow:hidden;color:#fff;text-decoration:none}
.pop-brand img{height:32px;width:32px;object-fit:contain;background:#fff;border-radius:6px;padding:2px}
.pop-brand-text{color:#fff;font-size:20px;font-weight:700;letter-spacing:.01em;white-space:nowrap}
body.sidebar-collapse .pop-brand{width:0;min-width:0;padding:0}
.pop-header{flex:1 1 auto;display:flex;align-items:center;gap:4px;padding:0 12px 0 8px;min-width:0;color:#fff}
.pop-header .sp{flex:1}
.pop-hamb{display:flex;align-items:center;justify-content:center;min-width:44px;min-height:44px;padding:0 10px;border:0;border-radius:8px;background:transparent;cursor:pointer}
.pop-hamb:hover,.pop-hbtn:hover{background:rgba(255,255,255,.12)}
.hamburger-icon{width:20px;height:14px;position:relative;display:inline-block}
.hamburger-icon span{background:#fff;position:absolute;border-radius:2px;transition:.3s cubic-bezier(.8,.5,.2,1.4);width:70%;height:2px;display:block;left:0}
.hamburger-icon span:nth-child(1){top:0;width:100%}.hamburger-icon span:nth-child(2){top:6px;left:6px}.hamburger-icon span:nth-child(3){bottom:0;width:40%;left:12px}
.hamburger-icon.open{transform:rotate(-90deg)}
#popTitle{font-size:clamp(16px,1.5vw + 6px,22px);font-weight:700;color:#fff;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:46vw;padding:0 8px}
.pop-hbtn{display:inline-flex;align-items:center;gap:6px;height:40px;padding:0 10px;border:0;border-radius:8px;background:transparent;color:#fff!important;font-size:15px;cursor:pointer}
.pop-hbtn .fa{color:#fff;font-size:18px}
#popBackBtn .fa{font-size:22px}
.pop-user{position:relative}
.pop-user-toggle img{width:28px;height:28px;border-radius:50%;object-fit:cover;box-shadow:0 1px 4px rgba(0,0,0,.3);background:#fff}
.pop-user-toggle .fa{font-size:12px}
.pop-user-menu{position:absolute;right:0;top:52px;z-index:1050;min-width:200px;background:#fff;border-radius:12px;box-shadow:0 8px 32px rgba(0,0,0,.15);overflow:hidden}
.pop-user-menu .user-header{background:linear-gradient(135deg,var(--pp-primary) 0%,var(--pp-primary-dark) 100%);color:#fff;text-align:center;padding:16px}
.pop-user-menu .user-header img{width:60px;height:60px;border-radius:50%;object-fit:cover;background:#fff;margin-bottom:8px}
.pop-user-menu .user-header p{margin:0;font-weight:600;font-size:14px}.pop-user-menu .user-header small{color:rgba(255,255,255,.65);font-size:11px}
.pop-user-menu .user-footer{display:flex;flex-direction:column;gap:8px;padding:16px}
.pop-user-btn{display:inline-flex;align-items:center;justify-content:center;gap:6px;height:42px;border-radius:10px;border:1px solid #dde2ec;background:#f6f8fc;color:var(--pp-body)!important;font-size:14px;font-weight:600;cursor:pointer;text-decoration:none}
.pop-user-btn:hover{background:rgba(64,81,137,.12);border-color:#b9c2d8;color:var(--pp-primary)!important}
.pop-logout-btn{display:inline-flex;align-items:center;gap:5px;margin-left:4px;padding:5px 11px;font-size:12px;font-weight:500;letter-spacing:.03em;color:rgba(255,255,255,.75);border:1px solid rgba(255,255,255,.22);border-radius:20px;background:rgba(255,255,255,.08);cursor:pointer;white-space:nowrap}
.pop-logout-btn .fa{font-size:13px;opacity:.85}
.pop-logout-btn:hover{background:rgba(220,53,69,.12);border-color:rgba(220,53,69,.4);color:#dc3545}
/* 본문 = 왼쪽 메뉴 + 작업 화면 */
.pop-body{flex:1 1 auto;min-height:0;display:flex;overflow:hidden}
.pop-sidebar{width:260px;min-width:260px;background:#f1f4fb;overflow-x:hidden;overflow-y:auto;transition:width .2s,min-width .2s}
body.sidebar-collapse .pop-sidebar{width:0;min-width:0}
.pop-menu,.pop-submenu{list-style:none;margin:0;padding:0}
.pop-menu{padding:10px 8px}.pop-menu>li.nav-item{margin-bottom:6px}
.pop-menu-link{display:flex;align-items:center;gap:10px;padding:10px 12px;background:#fff;border:1.5px solid #dde2ec;border-left:3px solid #c3cbdc;border-radius:8px;box-shadow:0 1px 2px rgba(31,42,68,.05);color:var(--pp-body);font-weight:700;font-size:13px;text-decoration:none;cursor:pointer;transition:background-color .18s,border-color .18s,box-shadow .18s}
.pop-menu-link:hover{background:#f7f9fd;border-color:#b9c2d8;box-shadow:0 1px 3px rgba(31,42,68,.08);color:var(--pp-primary)}
.pop-menu-link.active{background:rgba(64,81,137,.16);color:var(--pp-primary)}
.pop-menu-link[aria-expanded="true"]{border-left-width:4px;box-shadow:0 1px 4px rgba(31,42,68,.1)}
.pop-menu-icon{width:24px;height:24px;border-radius:6px;display:inline-flex;align-items:center;justify-content:center;font-size:12px;font-style:normal;color:#fff!important;background:#8a93a8;flex-shrink:0}
.pop-menu-chevron{margin-left:auto;font-size:11px;font-style:normal;color:#adb5bd;transition:transform .2s}
.pop-menu-link[aria-expanded="true"] .pop-menu-chevron{transform:rotate(90deg)}
.pop-menu-link.cat-blue{border-left-color:#3c5fad}.pop-menu-link.cat-blue .pop-menu-icon{background:#3c5fad}
.pop-menu-link.cat-green{border-left-color:#1f8a55}.pop-menu-link.cat-green .pop-menu-icon{background:#1f8a55}
.pop-menu-link.cat-orange{border-left-color:#b6660f}.pop-menu-link.cat-orange .pop-menu-icon{background:#b6660f}
.pop-menu-link.cat-pink{border-left-color:#b3325a}.pop-menu-link.cat-pink .pop-menu-icon{background:#b3325a}
.pop-menu-link.cat-cyan{border-left-color:#0e7490}.pop-menu-link.cat-cyan .pop-menu-icon{background:#0e7490}
.pop-submenu{padding:4px 6px 8px 28px}
.pop-submenu-link{display:flex;align-items:center;gap:8px;padding:8px 12px;border-radius:6px;color:#495057;font-size:.92rem;text-decoration:none;cursor:pointer}
.pop-submenu-link:hover,.pop-submenu-link.active{background:rgba(64,81,137,.10);color:var(--pp-primary)}
.pop-caret{font-style:normal;font-size:11px;color:#ced4da;width:12px}
.pop-submenu-link:hover .pop-caret,.pop-submenu-link.active .pop-caret{color:var(--pp-primary)}
#popShell .pop-main{flex:1 1 auto;min-width:0;overflow:hidden;position:relative;background:#fff;margin:0;padding:0}
#popShell #content{margin:0;padding:0;height:100%;overflow:auto;background:#fff;font-size:16px;color:var(--pp-text)}
#popShell #content.pop-legacy{padding:15px 16px 24px;background:#f3f5f9}
body.pop-board .pop-topbar,body.pop-board .pop-sidebar{display:none}
/* 공통 부품: 조회줄·입력(38px)·버튼(42px) */
.pg-wrap{display:flex;flex-direction:column;height:100%;min-height:0}
.pg-bar{display:flex;align-items:center;gap:4px;padding:10px;flex-wrap:wrap;flex:0 0 auto}
.pg-bar .sp{flex:1}.pg-bar .gap{width:24px}.pg-bar .tilde{padding:0 2px;color:#555}
#popShell .pt{height:38px!important;min-height:38px;box-sizing:border-box;border:1px solid #a6a6a6!important;border-radius:5px!important;background:#fff;padding:0 10px!important;font-size:16px!important;color:#000;box-shadow:none!important;outline:0}
#popShell .pt:focus{border-color:var(--pp-primary)!important;box-shadow:0 0 0 2px rgba(64,81,137,.15)!important}
#popShell .pt[readonly]{background:#fff}
#popShell .pt-date{width:160px}
#popShell .pt-sel{padding-right:30px!important;appearance:none;-webkit-appearance:none;background:#fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='26' height='36'%3E%3Crect width='26' height='36' fill='%23d3d3d3'/%3E%3Cpath d='M9 16l4 4 4-4' fill='none' stroke='%23555' stroke-width='1.5'/%3E%3C/svg%3E") no-repeat right center}
#popShell .pt-sel.empty{color:#aaa}
#popShell .pt-sel option{color:#000}
#popShell .pt.wide{width:100%}
#popShell .pt-search{text-align:center}
.pb{display:inline-flex;align-items:center;justify-content:center;gap:6px;height:42px;padding:0 16px;border:1px solid transparent;border-radius:10px;font-size:16px;color:#fff;background:#6c757d;cursor:pointer;white-space:nowrap;line-height:1}
.pb:hover{filter:brightness(1.08)}.pb:active{filter:brightness(.92)}
.pb.navy{background:#405189;border-color:#405189}.pb.green{background:#0ab39c;border-color:#0ab39c}.pb.blue{background:#3577f1;border-color:#3577f1}
.pb.red{background:#f06548;border-color:#f06548}.pb.cyan{background:#299cdb;border-color:#299cdb}
.pb.cyan,.pb.red{height:32px;border-radius:16px;font-size:14px;padding:0 14px}
.pb.cyan.on,.pb.red.on{box-shadow:0 0 0 3px rgba(0,0,0,.18) inset}
.pb.proc{height:38px;border-radius:5px;padding:0 12px;background:#343a56;font-weight:700;font-size:17px}
.pb.mini{height:34px;padding:0 10px;border-radius:6px;font-size:15px}
.pb.yn{height:38px;width:38px;padding:0;border-radius:5px}
.pb.big{height:64px;font-size:20px;padding:0 22px}
.pb.chg{width:166px;height:37px;border-radius:6px;background:#1abc9c;font-size:16px}
.pb.ch{height:38px;min-width:42px;padding:0 8px;border-radius:5px;background:#405189;font-size:16px}.pb.ch.on{background:#0ab39c}
.pg-note{color:#64748b;font-size:15px}
.pg-red{color:#e03131}.pg-blue{color:#3577f1}.pg-green{color:#2b9348}.pg-orange{color:#e8590c}
.pg-empty{padding:30px;text-align:center;color:#94a3b8}
/* 탭 (easyui tabs plain) */
.pg-tabs{display:flex;gap:2px;padding:4px 4px 0;border-bottom:1px solid #e9ecef;flex:0 0 auto}
.pg-tabs button{height:32px;padding:0 9px;border:1px solid transparent;border-bottom:0;border-radius:4px 4px 0 0;background:transparent;color:#64748b;font-size:18px;cursor:pointer}
.pg-tabs button.on{background:#fff;color:#1e293b;font-weight:700;border-color:#e9ecef;margin-bottom:-1px}
/* 그리드 (easyui datagrid 모양) */
.pg-grid{flex:1 1 auto;min-height:0;overflow:auto;border-top:1px solid var(--pp-border);position:relative}
.pg-grid table{width:100%;border-collapse:separate;border-spacing:0;font-size:17px;color:var(--pp-text)}
.pg-grid thead th{position:sticky;top:0;z-index:2;background:var(--pp-head);font-weight:400;height:47px;padding:0 6px;border-right:1px solid var(--pp-border);border-bottom:1px solid var(--pp-border);text-align:center;white-space:nowrap;cursor:default}
.pg-grid thead tr:nth-child(2) th{top:24px;height:23px}
.pg-grid thead th.grp{height:23px}
.pg-grid thead th[data-sort]{cursor:pointer}
.pg-grid .datagrid-cell{display:inline-flex;align-items:center;gap:4px}
.pg-grid i.sort{display:inline-block;width:7px;height:11px;opacity:.45;background:linear-gradient(to bottom,transparent 0,transparent 0) ,url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='7' height='11'%3E%3Cpath d='M3.5 0L7 4H0zM3.5 11L0 7h7z' fill='%23666'/%3E%3C/svg%3E") no-repeat center}
.pg-grid i.sort.asc{opacity:1;background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='7' height='11'%3E%3Cpath d='M3.5 0L7 4H0z' fill='%23405189'/%3E%3C/svg%3E") no-repeat center}
.pg-grid i.sort.desc{opacity:1;background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='7' height='11'%3E%3Cpath d='M3.5 11L0 7h7z' fill='%23405189'/%3E%3C/svg%3E") no-repeat center}
.pg-grid th.rn,.pg-grid td.rn{width:30px;min-width:30px;padding:0;color:#475569;text-align:center}
.pg-grid th.ck,.pg-grid td.ck{width:30px;padding:0;text-align:center}
.pg-grid tbody td{height:37px;padding:2px 6px;border-bottom:1px dotted #e5e9f0;white-space:nowrap;text-align:center}
.pg-grid tbody td.l{text-align:left}.pg-grid tbody td.r{text-align:right}
.pg-grid tbody tr.datagrid-row-alt td{background:var(--pp-alt)}
.pg-grid tbody tr{cursor:pointer}
.pg-grid tbody tr:hover td{background:#e8f0fe}
.pg-grid tbody tr.datagrid-row-selected td{background:#d6e4ff}
.pg-grid td.need{background:#fde8e8!important;box-shadow:inset 3px 0 0 #e5534b}
.pg-grid tfoot td{position:sticky;bottom:0;z-index:1;height:49px;background:#fff;border-top:1px solid var(--pp-border);border-right:1px solid var(--pp-border);font-size:16px;white-space:nowrap}
.pg-grid tfoot td.r{text-align:right}
.pg-nodata{padding:14px;text-align:center;color:#334155;font-size:16px}
.pg-grid .status{font-size:14px}
.pg-pager{flex:0 0 auto;display:flex;align-items:center;gap:6px;height:43px;padding:0 8px;background:#f8fafc;border-top:1px solid var(--pp-border);font-size:15px;color:#000}
.pg-pager .sep{width:1px;height:20px;background:#ccc;margin:0 6px}
.pg-pager .sp{flex:1}
.pg-pager button{border:0;background:transparent;color:#888;font-size:14px;width:26px;height:26px;cursor:pointer}
.pg-pager button:disabled{opacity:.6;cursor:default}
.pg-pager .pt-mini{height:26px;width:38px;font-size:14px;border:1px solid #bbb;border-radius:3px;text-align:center}
.pg-pager select.pt-mini{width:50px}
/* 자재입출고 하단 스캔줄 */
.pg-wrap.with-foot .pg-grid{flex:1 1 auto}
.pg-foot{flex:0 0 auto;display:flex;align-items:center;gap:8px;padding:6px 10px 8px;border-top:1px solid var(--pp-border)}
.pg-foot #matRe{flex:0 0 38%;text-align:center}
.pg-foot #matOut{flex:1 1 auto;text-align:center}
.pg-outlabel{display:inline-flex;align-items:center;gap:6px;height:38px;padding:0 0 0 14px;border-radius:5px;background:#4b5a8f;color:#fff;font-size:16px}
.pg-outlabel .pt-sel{border-radius:0 5px 5px 0!important}
/* 팝업창 (easyui window 1200x650) */
.pw-mask{position:absolute;inset:0;z-index:900;display:flex;align-items:center;justify-content:center;background:rgba(0,0,0,.2)}
.pw{max-width:calc(100% - 16px);max-height:calc(100% - 16px);display:flex;flex-direction:column;background:#fff;border:1px solid #aaa;border-radius:5px;box-shadow:0 8px 30px rgba(0,0,0,.25);overflow:hidden}
.pw-head{flex:0 0 auto;display:flex;align-items:center;gap:8px;height:50px;padding:0 8px 0 12px;background:#30355a;color:#fff}
.pw-head .pw-title{font-size:15px;font-weight:700}.pw-head .sp{flex:1}
.pw-head .pb{height:38px}
.pw-body{flex:1 1 auto;min-height:0;overflow:auto;background:#fff;color:#000}
.pw-split{display:flex;height:100%}
.pw-left{flex:0 0 52%;display:flex;flex-direction:column;border-right:4px solid #e9ecef;min-width:0}
.pw-tool{display:flex;gap:4px;padding:8px}
.pw-tool .pt{width:250px;text-align:center}
.pw-list{flex:1 1 auto;min-height:0;display:flex;flex-direction:column}
.pw-right{flex:1 1 auto;overflow:auto}
table.pw-form{width:100%;border-collapse:collapse}
table.pw-form td{height:59px;border-bottom:1px solid #eee;font-size:18px}
table.pw-form td.td_1{width:141px;background:#fafafa;text-align:center;border-right:1px solid #eee}
table.pw-form td.td_2{padding:0 10px}
table.pw-form td.td_2 .pt:not(.pt-sel):not(.pt-date):not(.wide){width:250px}
.pw-judge{display:flex;gap:8px}
.pb.judge{height:44px;min-width:120px;background:#e9ecef;color:#333;border-color:#ced4da}
.pb.judge.on.j-합격{background:#285aa4;color:#fff}.pb.judge.on.j-불합격{background:#b52b35;color:#fff}.pb.judge.on.j-조건부합격{background:#6f42c1;color:#fff}
.pw-procs{display:flex;flex-wrap:wrap;gap:10px;padding:16px}
.pw-procs .pb.big{background:#405189;flex-direction:column;gap:2px;min-width:150px}
.pw-procs .pb.big small{font-size:13px;opacity:.8}
.pw-procs .pb.on{background:#0ab39c}
/* 공정 상세 (생산실적 탭: 왼쪽 35% 정보, 오른쪽 실적) */
.pd-wrap{display:flex;flex-direction:column;height:100%}
.pd-body{flex:1 1 auto;min-height:0;display:flex;gap:8px;padding:8px}
.pd-left{flex:0 0 35%;border:1px solid #bbb;overflow:auto}
.pd-right{flex:1 1 auto;min-width:0;border:1px solid #bbb;display:flex;flex-direction:column}
.pd-info{width:100%;border-collapse:collapse;font-size:16px}
.pd-info th{width:30%;background:#f8fafc;font-weight:400;height:36px;border-bottom:1px solid #eef0f4;border-right:1px solid #eef0f4;padding:2px 6px}
.pd-info td{text-align:center;border-bottom:1px solid #eef0f4;padding:2px 6px}
.pd-worker{display:flex;gap:2px;padding:4px!important}
.pd-worker img{width:60px;height:74px;object-fit:cover;background:#f1f3f5}
.pd-worker table{flex:1;border-collapse:collapse}.pd-worker table td{border:1px solid #eef0f4;height:24px}
.pd-none{flex:1 1 auto;padding-top:30px;text-align:center;font-size:18px}
.pd-right .pg-grid{border-top:0}
.pd-input{flex:0 0 auto;display:flex;align-items:flex-end;gap:8px;flex-wrap:wrap;padding:8px;background:#f8fafc;border-top:1px solid var(--pp-border)}
.pd-input label{display:flex;flex-direction:column;gap:2px;font-size:14px;color:#475569}
.pd-input .pt{width:140px}.pd-input [name=투입LOT]{width:190px}
/* 입고전표발행 */
.pi-wrap{display:flex;height:100%;gap:6px;padding-right:0}
.pi-left{flex:0 0 65%;display:flex;flex-direction:column;border-right:1px solid #ddd;min-width:0}
.pi-right{flex:1 1 auto;display:flex;flex-direction:column;min-width:0}
.pi-left .pg-bar{gap:3px}
/* LAYOUT */
.ly-wrap{display:flex;height:100%}
.ly-main{flex:1 1 auto;min-width:0;display:flex;flex-direction:column}
.ly-side{flex:0 0 220px;display:flex;flex-direction:column;border-left:1px solid #ddd}
.ly-side-h{height:38px;margin:10px 6px 0;display:flex;align-items:center;justify-content:center;background:#405189;color:#fff;font-weight:700;font-size:15px}
.ly-side-list{flex:1;overflow:auto;padding:6px;display:flex;flex-direction:column;gap:4px}
.ly-side-list button{display:flex;flex-direction:column;align-items:flex-start;padding:6px 8px;border:1px solid #e2e8f0;border-radius:6px;background:#fff;cursor:pointer;text-align:left}
.ly-side-list button span{font-size:13px;color:#64748b}
.ly-wrap.half .ly-main{flex:0 0 61%}
.ly-right{flex:1 1 auto;min-width:0;display:flex;flex-direction:column;border-left:1px solid #ddd}
/* 완제품입출고 */
.fg-out{max-width:900px;padding:10px}
.fg-out-act{padding:14px 0}
/* 공정별 재공현황 (다원텍 wb-*) */
.wb-wrap{display:flex;flex-direction:column;height:100%;background:#f3f5f9;overflow:hidden}
#content.pop-in-mes .wb-wrap{height:calc(100vh - 150px)}
.wb-head{display:flex;align-items:center;gap:12px;padding:10px 16px;background:#fff;border-bottom:1px solid #dfe3ea;flex-wrap:wrap}
.wb-title{font-size:22px;font-weight:700;color:#405189}
.wb-time{font-size:16px;color:#555}.wb-refresh{font-size:13px;color:#888}
.wb-legend{font-size:12px;color:#777}.wb-legend i{display:inline-block;width:12px;height:12px;border-radius:3px;vertical-align:-1px;margin:0 3px 0 8px}
.wb-tools{margin-left:auto;display:flex;gap:8px;align-items:center}
.wb-tools input{height:38px;width:200px;font-size:15px;padding:0 10px;border:1px solid #ccc;border-radius:6px}
.wb-btn{height:38px;padding:0 14px;border:0;border-radius:6px;background:#405189;color:#fff;font-size:15px;cursor:pointer}.wb-btn.gray{background:#6c757d}
.wb-today{display:flex;flex-wrap:wrap;gap:8px;margin:0;padding:0 0 8px}
.wb-today .tk{flex:1 1 130px;background:#fff;border-radius:10px;padding:8px 12px;box-shadow:0 1px 3px rgba(0,0,0,.08);border-left:4px solid var(--k,#3b4a8c)}
.wb-today .tk .t{font-size:12px;color:#777}.wb-today .tk .v{font-size:22px;font-weight:bold}.wb-today .tk .v small{font-size:12px;font-weight:400;color:#777}
.wb-today .tk.red .v{color:#c92a2a}.wb-today .tk.click{cursor:pointer}.wb-today .tk.click:hover{box-shadow:0 2px 8px rgba(0,0,0,.15)}
.wb-flow{display:flex;align-items:stretch;gap:4px;padding:14px 16px 8px;overflow:hidden;flex:0 0 auto}
.wb-card{flex:1 1 0;min-width:0;overflow:hidden;white-space:nowrap;background:#fff;border:1px solid #dfe3ea;border-top:5px solid #405189;border-radius:8px;padding:8px 10px;cursor:pointer;box-shadow:0 1px 3px rgba(0,0,0,.05)}
.wb-card.sel{outline:3px solid #405189}.wb-card.fg{border-top-color:#0ab39c}.wb-card.fg .qty{color:#0a8f7c}
.wb-card.wb-warn{border-top-color:#f0ad4e}.wb-card.wb-alert{border-top-color:#d9534f}
.wb-card .nm{font-size:clamp(13px,1.25vw,18px);overflow:hidden;text-overflow:ellipsis;font-weight:700;color:#333}
.wb-card .qty{font-size:clamp(20px,2.3vw,34px);font-weight:800;color:#405189;line-height:1.2;margin:4px 0}
.wb-card .qty small{font-size:14px;font-weight:400;color:#888}
.wb-card .sub{font-size:clamp(10px,.9vw,13px);overflow:hidden;text-overflow:ellipsis;color:#666;line-height:1.6}.wb-card .sub b{color:#333}
.wb-card .age{display:inline-block;margin-top:4px;padding:1px 8px;border-radius:10px;font-size:12px;background:#eef0f7;color:#555}
.wb-card.wb-warn .age{background:#fcefd9;color:#a46200}.wb-card.wb-alert .age{background:#f8d7d6;color:#b52b27}
.wb-card .old{display:inline-block;margin-top:3px;padding:1px 7px;border-radius:9px;background:#c92a2a;color:#fff;font-size:12px;font-weight:bold}
.wb-arrow{flex:0 0 auto;align-self:center;color:#b0b6c3;font-size:14px}
.wb-table-wrap{flex:1 1 auto;overflow:auto;margin:6px 16px 14px;background:#fff;border:1px solid #dfe3ea;border-radius:8px}
table.wb-table{width:100%;border-collapse:collapse;font-size:15px}
.wb-table th{position:sticky;top:0;background:#f4f6fa;color:#333;font-weight:600;padding:9px 8px;border-bottom:1px solid #dfe3ea;white-space:nowrap;text-align:left;z-index:1}
.wb-table th.n{text-align:right}
.wb-table td{padding:8px;border-bottom:1px solid #eef0f4;white-space:nowrap}
.wb-table td.n{text-align:right;font-variant-numeric:tabular-nums}
.wb-table td.zero{color:#ccc}.wb-table td.wb-warn{background:#fcefd9}.wb-table td.wb-alert{background:#f8d7d6;color:#b52b27;font-weight:700}
.wb-table .fgcol{border-left:2px solid #cde9e4;color:#0a8f7c;font-weight:700}.wb-table th.fgcol{background:#e6f5f2}
.wb-table td.selcol,.wb-table th.selcol{box-shadow:inset 0 0 0 9999px rgba(64,81,137,.07)}
.wb-table tfoot td{position:sticky;bottom:0;background:#eef0f7;font-weight:700;border-top:1px solid #dfe3ea}
.wb-empty{padding:40px;text-align:center;color:#999;font-size:16px}
@media (max-width:900px){.pop-brand-text{display:none}.pop-brand{width:auto;min-width:0;padding:0 6px 0 12px}.pop-sidebar{position:absolute;z-index:1040;top:63px;bottom:0;box-shadow:4px 0 18px rgba(0,0,0,.18)}body.sidebar-collapse .pop-sidebar{box-shadow:none}}
/* 합계 줄 그리드: 채움 줄이 남는 높이를 가져가 TOTAL 이 맨 아래 */
.pg-grid.has-foot table{height:100%}
.pg-grid.has-foot tbody tr.fill{height:100%;cursor:default}
.pg-grid.has-foot tbody tr.fill td{height:auto;padding:0;border:0;vertical-align:top;background:#fff!important}
.pd-tabs{gap:4px;overflow-x:auto;scrollbar-width:thin}
.pd-tabs button{flex:0 0 auto;white-space:nowrap;border:1px solid #e1e6ef;border-bottom:0;border-radius:5px 5px 0 0;background:#f5f7fa}
.pd-tabs button.on{background:#fff;color:#1e293b}
.pd-worker img.pd-worker-logo{object-fit:contain;object-position:center;background:transparent}
.pop-ref-section{margin:8px}
.pop-ref-section ul{padding-left:20px}
.pop-ref-photos{display:flex;flex-wrap:wrap;gap:10px}
.pop-ref-photos figure{margin:0;width:min(230px,100%)}
.pop-ref-photos img{width:100%;max-height:170px;object-fit:contain}
