:root{
  --bg:#f3f5f8;--panel:#fff;--ink:#172033;--muted:#59667b;--line:#dfe5ed;
  --brand:#584d8f;--brand2:#6c61a1;--soft:#f1eef9;--good:#176c48;--goodbg:#e9f7ef;
  --warn:#8b6100;--warnbg:#fff5d8;--bad:#a72a21;--badbg:#fff0ed;--blue:#2457c5;--bluebg:#edf3ff;
  --shadow:0 10px 28px rgba(23,32,51,.07)
}
*{box-sizing:border-box}
html,body{margin:0;background:var(--bg);color:var(--ink);font-family:Pretendard,"Noto Sans KR",Arial,sans-serif}
button,input,select{font:inherit}button{cursor:pointer}
.hidden{display:none!important}
.badge{display:inline-flex;align-items:center;padding:6px 10px;border-radius:999px;font-size:13px;font-weight:950;line-height:1.2}
.badge.work{background:var(--warnbg);color:var(--warn)}
.badge.good{background:var(--goodbg);color:var(--good)}
.badge.bad{background:var(--badbg);color:var(--bad)}
.badge.blue{background:var(--bluebg);color:var(--blue)}
.btn{border:1px solid var(--line);background:#fff;color:var(--ink);border-radius:11px;padding:10px 13px;font-weight:900}
.btn.primary{background:var(--brand);color:#fff;border-color:var(--brand)}
.btn.good{background:var(--good);color:#fff;border-color:var(--good)}
.btn.warn{background:#fff5d8;color:#7d5800;border-color:#ead493}
.btn.danger{background:#fff0ed;color:#9d2d25;border-color:#efbdb7}
.btn.small{font-size:12px;padding:8px 10px}
.logout-link{color:#d8d3e5;font-weight:800;margin-left:8px}
.logout-link[type="submit"]{background:none;border:0;padding:0;cursor:pointer;font:inherit}

.camera-sheet{max-height:96vh}
#cameraReader{width:100%;min-height:260px;border-radius:16px;overflow:hidden;background:#111;margin:12px 0}
#cameraReader video,#cameraReader canvas,#cameraReader img{width:100%!important;border-radius:16px}
#cameraManual{text-align:left;font-size:18px}
.login-card{width:min(440px,92vw);background:#fff;border-radius:22px;padding:32px 26px;box-shadow:var(--shadow)}
.login-card h1{margin:0 0 6px;font-size:26px}
.login-card p{margin:0 0 18px;color:var(--muted)}
.login-card label{display:block;font-weight:900;margin:12px 0 6px}
.login-card input{width:100%;min-height:56px;border:2px solid var(--line);border-radius:12px;padding:12px 14px;font-size:18px;font-weight:800}

.office{display:grid;grid-template-columns:245px 1fr;min-width:1280px;min-height:100vh}
.office.is-side-collapsed{grid-template-columns:52px 1fr}
.side-brand{display:flex;align-items:flex-start;justify-content:space-between;gap:8px;margin:0 0 18px}
.side-brand-copy{min-width:0;flex:1 1 auto}
.side-toggle{
  flex:0 0 32px;width:32px;height:32px;border:0;background:#383050;color:#fff;
  border-radius:9px;padding:0;margin:2px 0 0;display:inline-flex;align-items:center;
  justify-content:center;cursor:pointer
}
.side-toggle:hover{background:#4a435f}
.side-toggle svg{width:16px;height:16px;stroke:currentColor;fill:none;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round}
.office.is-side-collapsed .side{padding:12px 8px;overflow:hidden;align-items:center}
.office.is-side-collapsed .side-brand{margin:0;justify-content:center}
.office.is-side-collapsed .side-brand-copy,
.office.is-side-collapsed .side-nav,
.office.is-side-collapsed .side-foot{display:none!important}
.office.is-side-collapsed .side-toggle{margin:0}
.office.is-side-collapsed .side-toggle svg{transform:rotate(180deg)}
.office.glr-hw-order-open{grid-template-columns:245px minmax(0,1fr) 400px}
.glr-hw-order-dock{
  grid-column:3;height:100vh;position:sticky;top:0;display:flex;flex-direction:column;
  background:#0f172a;border-left:1px solid #1e293b;min-width:0
}
.glr-hw-order-dock[hidden]{display:none!important}
.glr-hw-order-dock__head{
  display:flex;align-items:center;justify-content:space-between;gap:8px;
  padding:10px 12px;background:#1e293b;color:#f8fafc;flex:0 0 auto
}
.glr-hw-order-dock__head strong{display:block;font-size:13px;font-weight:900}
.glr-hw-order-dock__head span{display:block;font-size:11px;opacity:.78;margin-top:2px}
.glr-hw-order-dock__close{
  border:0;background:#334155;color:#fff;border-radius:8px;padding:6px 10px;
  font-size:12px;font-weight:800
}
.glr-hw-order-dock__frame{flex:1;width:100%;border:0;background:#fff;min-height:0}
.glr-hw-order-dock__close:disabled{opacity:.45;cursor:not-allowed}
.side{background:#211d35;color:#fff;padding:16px 12px;height:100vh;position:sticky;top:0;display:flex;flex-direction:column;overflow:auto}
.side h1{font-size:17px;margin:0;line-height:1.25}.side small{display:block;color:#bdb6cf;font-size:11px;margin-top:4px;font-weight:700}
.side-nav{display:flex;flex-direction:column;gap:4px}
.side-nav-link,.side-nav button{
  display:flex;align-items:center;gap:10px;width:100%;box-sizing:border-box;border:0;
  background:transparent;color:#d4cfe3;text-align:left;padding:10px 12px;border-radius:10px;
  font-size:13px;font-weight:800;text-decoration:none;line-height:1.3
}
.side-nav-ico{flex:0 0 18px;width:18px;height:18px;display:inline-flex;align-items:center;justify-content:center;opacity:.86}
.side-nav-ico svg{width:18px;height:18px;stroke:currentColor;fill:none;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.side-nav-text{min-width:0}
.side-nav-link:hover,.side-nav button:hover{background:#322c4a;color:#fff}
.side-nav-link.on,.side-nav button.on{background:#383050;color:#fff;box-shadow:inset 3px 0 0 #c4b5fd}
.side-nav-link.is-locked{opacity:.72}
.side-lock{display:inline-block;margin-left:6px;padding:1px 6px;border-radius:999px;background:#4a435f;color:#fde68a;font-size:10px;font-style:normal;font-weight:900;letter-spacing:.02em;vertical-align:1px}
.side-foot{margin-top:auto;padding-top:14px;border-top:1px solid #3a3450}
.side-user{padding:12px;border-radius:12px;background:#2b2740;border:1px solid #4a435f}
.side-user-name{display:block;color:#fff;font-size:13px;font-weight:800;line-height:1.4;margin:0 0 10px}
.side-logout{
  display:block;width:100%;border:1px solid #5a5470;background:#383050;color:#f3f0fa;
  border-radius:8px;padding:8px 10px;font-size:12px;font-weight:800;text-align:center;cursor:pointer
}
.side-logout:hover{background:#4a435f;color:#fff}
.side-ext-guide{margin-bottom:12px}
.side-ext-guide__inner{padding:12px 12px 11px;border-radius:12px;border:1px solid #4a435f;background:#2b2740}
.side-ext-guide__inner strong{display:block;font-size:13px;font-weight:900;line-height:1.4;margin-bottom:6px}
.side-ext-guide__inner p{margin:0 0 10px;font-size:12px;line-height:1.55;color:#d8d3e5}
.side-ext-guide__inner ol{margin:8px 0 0;padding-left:18px;font-size:11px;line-height:1.6;color:#d8d3e5}
.side-ext-guide__inner li{margin:4px 0}
.side-ext-guide__inner code{color:#fde68a;font-size:11px}
.side-ext-guide__download{display:block;width:100%;text-align:center;box-sizing:border-box;margin:0 0 2px}
.side-ext-guide__zip{display:inline-block;margin-top:2px;color:#d8d3e5;font-size:11px;font-weight:800}
.side-ext-guide__inner.is-checking{border-color:#4a435f;color:#bdb6cf}
.side-ext-guide__inner.is-ok{border-color:#3f7d58;background:#24352c}
.side-ext-guide__inner.is-ok strong{color:#86efac;margin-bottom:2px}
.side-ext-guide__inner.is-warn{border-color:#c4a035;background:#3d3420}
.side-ext-guide__inner.is-warn strong{color:#fbbf24}
.office-ext-chip{position:relative;margin-left:auto;flex:0 0 auto}
.office-top-actions + .office-ext-chip{margin-left:0}
.office-top-actions[hidden] + .office-ext-chip{margin-left:auto}
.office-ext-chip__status,.office-ext-chip__btn{
  border:1px solid var(--line);background:#f7f5f1;color:#5c5668;
  border-radius:999px;padding:6px 10px;font-size:12px;font-weight:800;white-space:nowrap
}
.office-ext-chip__btn{cursor:pointer}
.office-ext-chip__btn.is-ok{background:#eef8f1;border-color:#b7e0c4;color:#1f7a43}
.office-ext-chip__btn.is-warn{background:#fff8e6;border-color:#ead38a;color:#9a6b00}
.office-ext-chip__panel{
  position:absolute;top:calc(100% + 8px);right:0;width:280px;z-index:30;
  background:#fff;border:1px solid var(--line);border-radius:12px;box-shadow:0 10px 28px rgba(33,29,53,.12);
  padding:12px;font-size:12px;line-height:1.55;color:#5c5668
}
.office-ext-chip__panel strong{display:block;margin-bottom:6px;color:#211d35}
.office-ext-chip__panel p{margin:0 0 10px}
.office-ext-chip__panel ol{margin:10px 0 0;padding-left:18px}
.office-ext-chip__panel code{color:#8a6d12}
.side > button:not(.side-toggle){width:100%;border:0;background:transparent;color:#cbc5dc;text-align:left;padding:12px 13px;border-radius:10px;font-weight:850;margin-bottom:5px}
.side > button:not(.side-toggle).on,.side > button:not(.side-toggle):hover{background:#383050;color:#fff}
.office-main{min-width:0}
.office-top{height:68px;background:#fff;border-bottom:1px solid var(--line);display:flex;align-items:center;gap:14px;padding:0 27px;position:sticky;top:0;z-index:20}
.office-top b{font-size:18px;flex:0 0 auto;white-space:nowrap}
.office-top-subnav{display:flex;flex:1 1 auto;align-items:center;gap:6px;min-width:0;overflow-x:auto}
.office-top-subnav[hidden]{display:none!important}
.office-top-subnav a,
.office-top-subnav button{
  flex:0 0 auto;border:0;background:transparent;padding:8px 12px;border-radius:999px;
  color:#526075;font-size:13px;font-weight:800;cursor:pointer;white-space:nowrap;text-decoration:none
}
.office-top-subnav a:hover,.office-top-subnav button:hover{background:#f0f3f8}
.office-top-subnav a.is-active,.office-top-subnav button.is-active{background:#211d35;color:#fff}
.office-top-subnav button:disabled{opacity:.45;cursor:not-allowed}
.office-top-subnav button:disabled:hover{background:transparent}
.office-import-pipeline{
  display:flex;align-items:center;gap:10px;padding:8px 27px;
  background:#f8fafc;border-bottom:1px solid var(--line)
}
.office-import-pipeline[hidden]{display:none!important}
.office-import-pipeline-label{font-size:11px;font-weight:1000;color:#64748b;white-space:nowrap}
.office-import-pipeline .coupang-progress-track{flex:1 1 160px;min-width:120px;margin:0}
.office-import-pipeline-text{margin:0;font-size:12px;color:#475569;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.office.is-import-pipeline .office-plans-frame{height:calc(100vh - 110px)}
.office-top-preparing.is-disabled,.office-top-preparing[aria-disabled="true"]{opacity:.45;pointer-events:none;cursor:not-allowed}
.office-top-recalc{margin-left:0;flex:0 0 auto}
.office-top-recalc[hidden]{display:none!important}
.office-top-recalc .btn,.office-top-recalc .button{white-space:nowrap}
.office-top-actions{margin-left:auto;flex:0 0 auto;display:flex;align-items:center;gap:8px}
.office-top-actions[hidden]{display:none!important}
.data-stamp{display:inline-flex;flex-direction:column;justify-content:center;gap:1px;min-height:36px;padding:2px 8px 2px 0;line-height:1.2;white-space:nowrap}
.data-stamp small{display:block;color:var(--muted);font-size:10px;font-weight:700}
.data-stamp strong{font-size:13px;font-weight:800;font-variant-numeric:tabular-nums;color:var(--ink)}
.data-stamp.is-stale strong{color:var(--warn)}
.office-top-preparing{
  display:inline-flex;align-items:center;gap:8px;min-height:36px;padding:6px 12px;
  border-radius:999px;text-decoration:none;border:1px solid var(--line);background:#fff;
  color:var(--ink);font-size:12px;font-weight:800;white-space:nowrap;cursor:pointer
}
.office-top-preparing:hover{background:#f0f3f8}
.office-top-preparing.is-active{background:#211d35;color:#fff;border-color:#211d35}
.office-top-preparing b{
  display:inline-grid;min-width:22px;height:22px;place-items:center;padding:0 6px;
  border-radius:999px;background:#eef1f5;color:inherit;font-size:12px;flex:0 0 auto
}
.office-top-preparing.is-active b{background:rgba(255,255,255,.18)}
.office-chrome-ext-status{
  display:inline-flex;align-items:center;padding:5px 10px;border-radius:999px;
  font-size:12px;font-weight:800;border:1px solid #e5e7eb;background:#f8fafc;color:#64748b;
}
.office-chrome-ext-status.is-ok{border-color:#86efac;background:#f0fdf4;color:#166534}
.office-chrome-ext-status.is-warn{border-color:#fcd34d;background:#fffbeb;color:#9a6700}
.office-chrome-ext-status.is-checking{border-color:#cbd5e1;background:#f8fafc;color:#64748b}
.content{padding:26px;max-width:none;width:100%;margin:0}.opage{display:none}.opage.on{display:block}
.office-plans-page{margin:-26px;overflow:auto}
.office-plans-frame{display:block;width:100%;min-width:1280px;height:calc(100vh - 68px);border:0;background:#f5f7fb}
.office-plans-frame-host{
  position:relative;width:100%;min-width:1280px;height:calc(100vh - 68px);background:#f5f7fb;
}
.office.is-import-pipeline .office-plans-frame-host{height:calc(100vh - 110px)}
.office-plans-frame-host .office-plans-frame{
  position:absolute;inset:0;width:100%;min-width:0;height:100%;border:0;background:#f5f7fb;
}
.office-plans-frame-host .office-plans-frame[hidden]{display:none!important}
h2{margin:0 0 8px;font-size:27px}.lead{margin:0 0 20px;color:var(--muted);line-height:1.75;font-size:14px}
.grid{display:grid;gap:14px}.cols4{grid-template-columns:repeat(4,1fr)}.cols2{grid-template-columns:repeat(2,1fr)}
.card{background:#fff;border:1px solid var(--line);border-radius:18px;padding:18px;box-shadow:var(--shadow)}
.metric span{font-size:12px;color:var(--muted);font-weight:850}.metric b{display:block;font-size:30px;margin-top:7px}
.notice{background:var(--soft);border-left:4px solid var(--brand);padding:14px 15px;border-radius:0 12px 12px 0;color:#4e4765;font-size:13px;line-height:1.7}
.section-title{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:0 0 11px}.section-title h3{margin:0;font-size:19px}
table{width:100%;border-collapse:collapse}th,td{text-align:left;border-bottom:1px solid var(--line);padding:11px 10px;font-size:12px;vertical-align:top}th{font-size:11px;color:var(--muted);background:#fafbfc}
.compare{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:13px}
.compare-box{border:1px solid var(--line);border-radius:13px;padding:12px;background:#fafbfc}
.compare-box h4{margin:0 0 8px;font-size:13px}.compare-box .v{font-size:11px;line-height:1.75;color:#4f5b70}
.match{margin-top:10px;border-radius:10px;padding:10px 11px;font-size:11px;font-weight:900;line-height:1.55}
.match.ok{background:var(--goodbg);color:var(--good)}.match.warn{background:var(--warnbg);color:var(--warn)}.match.none{background:#f2f4f7;color:#667085}
.actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:12px}
/* 파레트 인쇄 라벨 전용 — 전역 .label 금지(배송완료처리기 Semantic UI .ui.label 깨짐) */
#printLabels.labels,
.preview-label-grid.labels{display:grid;grid-template-columns:repeat(auto-fit,minmax(320px,452px));gap:18px;align-items:start;justify-content:start}
#printLabels .label,
.preview-label-grid .label,
#labelPreviewPopup .label{position:relative;box-sizing:border-box;border:2px solid #111;background:#fff;width:452px;height:320px;color:#111;overflow:hidden;padding:0;display:flex;align-items:center;justify-content:center}
#printLabels .label-face,
.preview-label-grid .label-face{box-sizing:border-box;width:100%;height:100%;transform:none;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:14px;padding:24px 28px;text-align:center}
#printLabels .label .name,
.preview-label-grid .label .name{position:static;left:auto;top:auto;transform:none;flex:0 1 auto;max-width:100%;width:100%;font-size:15px;font-weight:1000;line-height:1.35;text-align:center;white-space:normal;word-break:keep-all;overflow-wrap:anywhere}
#printLabels .label .num,
.preview-label-grid .label .num{position:static;left:auto;top:auto;transform:none;flex:0 0 auto;font-size:72px;line-height:.95;font-weight:1000;letter-spacing:-2px;white-space:nowrap;text-align:center}

.mobile{max-width:560px;min-height:100vh;margin:auto;background:#f5f6f8;padding-bottom:90px;box-shadow:0 0 40px rgba(0,0,0,.08);font-size:18px;line-height:1.6}
.mtop{background:#211d35;color:#fff;padding:20px 70px 18px 18px;position:sticky;top:0;z-index:50}
.mtop small{font-size:14px;color:#d8d3e5;font-weight:800}.mtop h1{font-size:26px;margin:5px 0 0;line-height:1.25}
.mobile-refresh{position:absolute;right:18px;top:50%;transform:translateY(-50%);width:46px;height:46px;border:1px solid rgba(255,255,255,.25);border-radius:13px;background:rgba(255,255,255,.1);color:#fff;font-size:30px;font-weight:900;line-height:1}
.mobile-refresh:disabled{opacity:.55}.mobile-refresh.loading{animation:refresh-spin .8s linear infinite}
@keyframes refresh-spin{to{transform:translateY(-50%) rotate(360deg)}}
.mbody{padding:18px}
.mpage{display:none}.mpage.on{display:block}
.mcard{background:#fff;border:2px solid var(--line);border-radius:20px;padding:20px;margin-bottom:14px}
.mcard>h3,.tabtitle{display:block;margin:0 0 8px;font-size:22px;line-height:1.45;font-weight:1000}
.help{font-size:17px;color:#445066;line-height:1.75;font-weight:700;word-break:keep-all}
.activep{background:linear-gradient(145deg,#40366d,#62569a);color:#fff;border-radius:20px;padding:20px;margin-bottom:14px}
.activep small{font-size:15px;font-weight:850}.activep h3{font-size:40px;line-height:1.1;margin:8px 0 14px}
.apstats{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;border-top:1px solid rgba(255,255,255,.22);padding-top:12px}
.apstats span{font-size:14px;opacity:.9}.apstats b{display:block;font-size:20px;margin-top:2px}
.pgrid{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}
.pbtn{min-height:78px;border:3px solid var(--line);background:#fff;border-radius:15px;padding:11px 6px;font-size:16px;font-weight:1000;line-height:1.35;cursor:pointer}
.pbtn.on{border-color:var(--brand);background:var(--soft);color:var(--brand)}.pbtn small{display:block;font-size:13px;margin-top:3px}
.pbtn.locked{opacity:.55;cursor:not-allowed}
.pallet-empty{padding:8px 0 4px}.pallet-empty-title{font-size:16px;font-weight:900;margin:0 0 8px;color:var(--bad)}
.pallet-create-main{width:100%;margin-top:12px}.pallet-create-inline{width:100%;margin-top:12px;border:2px dashed var(--brand);background:#fff;color:var(--brand);border-radius:14px;padding:14px;font-size:15px;font-weight:900;cursor:pointer}
.pick-hint{margin-top:12px;padding:10px 12px;border-radius:12px;background:var(--warnbg);color:var(--warn);font-size:14px;font-weight:800;text-align:center}
.pick-banner h3{color:var(--brand);margin-bottom:6px}
.scan{width:100%;min-height:64px;border:0;border-radius:14px;background:#17141f;color:#fff;font-size:20px;font-weight:1000}
.scan:disabled{background:#b5bac4}
.mock{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:10px}.mock button{min-height:54px;border:0;background:#2b263d;color:#fff;border-radius:12px;padding:8px;font-size:13px;font-weight:900}
.order{border:2px solid var(--line);border-radius:18px;background:#fff;padding:14px 16px;margin-bottom:12px}.oid{font-size:17px;font-weight:1000}
.order-head-meta{margin-top:4px;font-size:13px;font-weight:900;color:var(--brand);line-height:1.4}
.order-head-meta small{color:#667085;font-weight:800}
.item{border-top:1px solid var(--line);padding:18px 0}.sku{font-size:14px;color:var(--brand);font-weight:950}
.item--merged{padding:12px 0}
.item--merged:first-of-type{border-top:0;padding-top:10px}
.item-merged-head{display:flex;justify-content:space-between;gap:10px;align-items:flex-start}
.item-merged-main{min-width:0;flex:1}
.item--merged .pname{font-size:18px;margin-top:2px}
.pname--sm{font-size:15px!important}
.item--merged .qty{margin-top:4px;font-size:14px}
.item--merged .opr-where{margin-top:4px}
.item--merged .box-read{margin-top:10px;padding:12px 14px}
.item--merged .pack-ok{margin-top:8px;padding:10px 12px;font-size:14px;line-height:1.45}
.order-other-progress{margin-top:6px;padding-top:10px;border-top:1px dashed #d8dde6}
.order-other-title{font-size:12px;font-weight:1000;color:#667085;margin-bottom:6px}
.order-other-row{display:flex;justify-content:space-between;gap:10px;align-items:flex-start;padding:8px 0;border-top:1px solid #eef0f4}
.order-other-row:first-of-type{border-top:0;padding-top:0}
.pname{font-size:20px;font-weight:1000;line-height:1.6;margin-top:5px;word-break:keep-all}
.qty{font-size:17px;color:#536076;margin-top:7px}.qty b{font-size:20px;color:var(--ink)}
.control{margin-top:12px}.control label{display:block;font-size:16px;color:#4b566c;font-weight:900;margin-bottom:7px}
.control input{width:100%;min-height:66px;border:2px solid var(--line);border-radius:13px;padding:14px 16px;font-size:26px;font-weight:1000}
.control input.invalid{border-color:#d86459;background:#fff8f7}
.pack-ok{background:var(--goodbg);color:var(--good);border-radius:12px;padding:13px 14px;font-size:16px;font-weight:900;line-height:1.7;margin-top:9px}
.box-read{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:12px;padding:14px 16px;border:2px solid var(--line);border-radius:13px;background:#f7f8fb}
.box-read b{font-size:22px}
.box-edit-btn{flex:0 0 auto;min-height:44px;padding:0 16px;border:0;border-radius:10px;background:var(--brand);color:#fff;font-size:15px;font-weight:1000}
.box-edit-btn:disabled{background:#b5bac4}
.box-edit-row{display:grid;grid-template-columns:1fr auto auto;gap:8px;align-items:center;margin-top:12px}
.box-edit-row input{width:100%;min-height:56px;border:2px solid var(--line);border-radius:12px;padding:10px 12px;font-size:24px;font-weight:1000}
.box-edit-row button{min-height:56px;padding:0 14px;border:0;border-radius:12px;font-size:15px;font-weight:1000}
.box-save{background:var(--good);color:#fff}
.box-cancel{background:#e9ebef;color:#4d586b}
.finish{width:100%;min-height:68px;border:0;border-radius:15px;background:var(--good);color:#fff;font-size:20px;font-weight:1000;margin-top:8px}
.finish:disabled{background:#aab1bc;color:#eef0f4;cursor:not-allowed}
.finish.sending{background:var(--blue)}.finish.failed{background:var(--bad)}.finish.sent{background:#315eaa}
.mvitem,.plistitem,.histitem{background:#fff;border:2px solid var(--line);border-radius:18px;padding:18px;margin-bottom:12px}
.mvitem .name,.plistitem .name{font-size:20px;font-weight:1000;line-height:1.6;word-break:keep-all}
.meta{font-size:17px;color:#556177;line-height:1.75;margin-top:8px}
.movebtn{width:100%;min-height:60px;border:0;border-radius:13px;background:var(--brand);color:#fff;font-size:19px;font-weight:1000;margin-top:14px}
.pallet-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:13px}.pallet-actions button{min-height:56px}
.pallet-actions.three{grid-template-columns:repeat(3,1fr)}
.pallet-actions.action-count-1{grid-template-columns:1fr}
.pallet-actions.action-count-3{grid-template-columns:repeat(3,1fr)}
.pallet-status-tabs{display:grid;grid-template-columns:repeat(3,1fr);gap:7px;margin-top:15px;padding:5px;background:#f0f2f6;border-radius:14px}
.pallet-status-tabs button{min-height:50px;border:0;border-radius:10px;background:transparent;color:#596276;font-size:14px;font-weight:1000}
.pallet-status-tabs button.on{background:#fff;color:var(--brand);box-shadow:0 3px 10px rgba(23,32,51,.08)}
.pallet-status-tabs b{display:inline-flex;min-width:22px;height:22px;align-items:center;justify-content:center;margin-left:3px;border-radius:99px;background:#e2e5eb;font-size:12px}
.pallet-status-tabs button.on b{background:var(--soft)}
.histitem{font-size:18px;line-height:1.65}.histtag{display:inline-flex;padding:6px 9px;background:var(--soft);color:var(--brand);border-radius:999px;font-size:14px;font-weight:950;margin-bottom:8px}
.empty{padding:20px;border:1px dashed #ccd3de;border-radius:15px;background:#fff;font-size:16px;color:#556177;line-height:1.75;text-align:center}
.bottom{position:fixed;left:50%;bottom:0;transform:translateX(-50%);width:min(560px,100%);display:grid;grid-template-columns:repeat(3,1fr);gap:8px;background:#fff;border-top:1px solid var(--line);padding:10px 10px calc(10px + env(safe-area-inset-bottom));z-index:80}
.bottom button{min-height:60px;border:0;border-radius:12px;background:#f3f4f7;font-size:15px;font-weight:1000;color:#596276}
.bottom button.on{background:var(--soft);color:var(--brand)}
.toast{position:fixed;z-index:4000;left:50%;bottom:96px;transform:translateX(-50%);display:none;max-width:88%;background:#202733;color:#fff;border-radius:999px;padding:13px 18px;font-size:16px;line-height:1.55;text-align:center}
.worker-input{width:100%;min-height:58px;border:2px solid var(--line);border-radius:12px;padding:12px 14px;font-size:19px;font-weight:900}
.pending-badge{display:inline-flex;margin-top:9px;padding:7px 11px;border-radius:999px;background:var(--warnbg);color:var(--warn);font-size:15px;font-weight:1000}
.pending-badge.zero{background:var(--goodbg);color:var(--good)}

.sheetbg{position:fixed;inset:0;display:none;align-items:flex-end;justify-content:center;background:rgba(10,14,21,.58);z-index:1100}
.sheet{width:min(560px,100%);max-height:91vh;overflow:auto;background:#f7f8fb;border-radius:24px 24px 0 0;padding:18px 18px calc(24px + env(safe-area-inset-bottom))}
.handle{width:44px;height:5px;border-radius:99px;background:#d5dae3;margin:0 auto 14px}
.sheet h3{font-size:25px;line-height:1.45;margin:0}.sheet p{font-size:17px;line-height:1.75;color:#445066}
.sheet label{display:block;font-size:17px;font-weight:900;color:#374357;margin:15px 0 7px}
.destgrid{display:grid;grid-template-columns:repeat(2,1fr);gap:10px}
.dest{min-height:68px;border:2px solid var(--line);background:#fff;border-radius:14px;font-size:16px;font-weight:950}
.dest.on{border-color:var(--brand);background:var(--soft);color:var(--brand)}
.sheet input{width:100%;min-height:62px;border:2px solid var(--brand);border-radius:12px;text-align:center;font-size:25px;font-weight:1000}
.sheetgo{width:100%;min-height:62px;border:0;border-radius:14px;background:var(--brand);color:#fff;font-size:19px;font-weight:1000;margin-top:13px}
.sheetgo.good{background:var(--good)}.sheetgo.whole{background:#eef0f6;color:#3f4660;border:2px solid #d7dce5}
.summarybox{background:#fff;border:2px solid var(--line);border-radius:15px;padding:14px;margin-top:12px}
.summarybox .row{display:flex;justify-content:space-between;gap:10px;padding:7px 0;border-bottom:1px solid #edf0f4;font-size:17px}
.summarybox .row:last-child{border-bottom:0}.summarybox b{font-size:18px}
.errorbox{display:none;background:var(--badbg);color:var(--bad);border:2px solid #e9aaa4;border-radius:14px;padding:14px 15px;font-size:16px;font-weight:900;line-height:1.65;margin-bottom:14px}
.errorbox.show{display:block}
.barcode-card{background:#fff;border:2px solid var(--line);border-radius:16px;padding:18px;margin-top:14px;text-align:center}
.barcode-id{font-size:22px;font-weight:1000;margin-top:12px}
.barcode-card svg{width:100%;height:130px;max-width:480px}
.history-actor{display:inline-flex;padding:5px 8px;border-radius:999px;background:#eef3ff;color:#315bb1;font-size:13px;font-weight:950;margin-left:6px}
.aggregate{border:1px solid var(--line);border-radius:14px;padding:13px;margin-top:10px;background:#fafbfc}
.aggregate-table-wrap{margin-top:8px;overflow:auto;border:1px solid #e2e8f0;border-radius:10px;background:#fff}
.aggregate-table{width:100%;border-collapse:collapse;font-size:12px;min-width:980px}
.aggregate-table th,.aggregate-table td{padding:7px 8px;border-bottom:1px solid #edf0f4;text-align:left;vertical-align:top;white-space:nowrap}
.aggregate-table th{background:#f8fafc;font-weight:1000;color:#334155;position:sticky;top:0;z-index:1}
.aggregate-table td.aggregate-name{white-space:normal;min-width:140px;line-height:1.4;font-weight:700}
.aggregate-table tr.is-miss-map{background:#fff7ed}
.aggregate-table tr.is-checked{background:#e8f8ef}
.aggregate-table tr.is-miss-map.is-checked{background:#e8f8ef}
.aggregate-table tr.aggregate-source-row td{padding:0 8px 8px;background:#fafbfc;border-bottom:1px solid #e2e8f0;white-space:normal}
.aggregate-check-col,.aggregate-check-cell{text-align:center!important;width:44px}
.aggregate-check{width:16px;height:16px;cursor:pointer;accent-color:#16a34a}
.aggregate-copy-id{
  appearance:none;border:0;background:transparent;padding:0;margin:0;
  font:inherit;font-weight:1000;color:var(--brand);cursor:pointer;text-decoration:underline;
  text-underline-offset:2px;
}
.aggregate-copy-id:hover,.aggregate-copy-id:focus-visible{color:#1d4ed8;outline:none}
.aggregate-sources{margin:0;padding:6px 0 2px;font-size:11px;color:#556177}
.aggregate-sources>summary{cursor:pointer;font-weight:800;color:#475569;user-select:none;list-style:none}
.aggregate-sources>summary::-webkit-details-marker{display:none}
.aggregate-sources>summary::before{content:'▶';display:inline-block;margin-right:6px;font-size:9px;color:#94a3b8}
.aggregate-sources[open]>summary::before{content:'▼'}
.aggregate-empty{padding:12px;font-size:13px;color:#64748b}
.sku-compact-bar{padding:10px 14px!important}
.sku-toolbar-card{padding:10px 14px!important}
.sku-toolbar-row{display:flex;align-items:center;gap:12px;flex-wrap:nowrap;overflow-x:auto}
.sku-toolbar-seg{display:flex;align-items:center;gap:8px;flex-shrink:0;min-width:0}
.sku-toolbar-stats{flex:0 0 auto}
.sku-toolbar-upload{flex:0 0 auto}
.sku-toolbar-divider{width:1px;align-self:stretch;min-height:28px;background:#e2e8f0;flex-shrink:0}
.sku-stats-inline{font-size:11px;color:#64748b;white-space:nowrap;line-height:1.3}
.sku-inline-upload-row{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin:0}
.sku-inline-title{font-size:12px;font-weight:1000;color:#334155;white-space:nowrap}
.sku-inline-file{width:150px;min-width:120px;max-width:180px;margin:0;font-size:11px;padding:4px 6px}
.sku-inline-btn{margin:0!important;white-space:nowrap;padding:6px 10px;font-size:11px;min-height:0}
.sku-inline-hint{font-size:10px;color:#8a8399;white-space:nowrap}
.sku-stock-synced-at{font-size:11px;color:#475467}
.sku-stock-synced-at.is-empty{color:#8a8399}
.sku-inline-progress{margin-top:8px;display:flex;align-items:center;gap:8px;flex-wrap:nowrap}
.sku-inline-progress-label{font-size:10px;font-weight:1000;color:#94a3b8;white-space:nowrap;min-width:20px}
.sku-inline-progress .coupang-progress-track{flex:1 1 120px;min-width:80px;margin:0}
.sku-inline-progress-text{margin:0;font-size:11px;color:#64748b;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:240px}
.sku-inline-cancel{margin:0!important;padding:5px 8px;font-size:10px;min-height:0}
.sku-inline-result{margin-top:6px;font-size:11px;color:#64748b;line-height:1.4;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.sku-pack-input{width:52px;max-width:72px;padding:4px 6px;font-size:12px;border:1px solid #cbd5e1;border-radius:6px;text-align:center;background:#fff}
.sku-pack-input--barcode{width:118px;max-width:148px;text-align:left}
.sku-pack-input--weight{width:64px;max-width:80px}
.sku-pack-input:focus{border-color:var(--brand);outline:none;box-shadow:0 0 0 2px rgba(90,79,255,.15)}
.sku-pack-input:disabled{opacity:.55;background:#f8fafc}
.sku-thumb-btn{
  display:inline-flex;align-items:center;justify-content:center;
  width:48px;height:48px;padding:0;margin:0;
  border:1px dashed #cbd5e1;border-radius:8px;background:#f8fafc;
  cursor:pointer;overflow:hidden;vertical-align:middle;
}
.sku-thumb-btn:hover{border-color:var(--brand);background:#f1f5ff}
.sku-thumb-btn.is-uploading{opacity:.55;pointer-events:none}
.sku-thumb-img{display:block;width:100%;height:100%;object-fit:cover}
.sku-thumb-placeholder{color:#94a3b8;font-size:18px;font-weight:700;line-height:1}
#skuMappingTableWrap.aggregate-table-wrap{overflow:auto}
.plans-card-list--sku-mapping{
  width:100%;
  min-width:1180px;
  background:#fff;
}
.plans-card-list--sku-mapping .product-row{
  display:grid;
  grid-template-columns:52px minmax(200px,1.3fr) minmax(140px,.5fr) minmax(180px,.5fr) minmax(170px,.5fr) minmax(160px,.5fr);
  min-height:118px;
  padding:14px 10px;
  border-bottom:1px solid #dfe3e8;
  align-items:start;
  column-gap:14px;
}
.plans-card-list--sku-mapping .product-row.plans-card-head{
  min-height:0;
  padding:8px 10px;
  background:#eef2f7;
  align-items:center;
  position:sticky;
  top:0;
  z-index:3;
}
.plans-card-list--sku-mapping .product-row.plans-card-head .plans-cell{
  color:#4a5568;
  font-size:12px;
  font-weight:800;
}
.plans-card-list--sku-mapping .plans-cell{min-width:0;overflow:hidden}
.plans-card-list--sku-mapping .plans-thumb-cell{
  display:flex;
  align-items:center;
  justify-content:center;
  padding-top:2px;
}
.plans-card-list--sku-mapping .product-row.plans-card-head .plans-thumb-cell{padding-top:0}
.plans-card-list--sku-mapping .product-name{
  margin:0 0 4px;
  max-width:100%;
  color:#111;
  font-size:14px;
  line-height:1.25;
  font-weight:750;
}
.plans-card-list--sku-mapping .product-ids{
  display:flex;
  flex-wrap:wrap;
  gap:4px;
  margin-bottom:4px;
  color:#9aa5b3;
  font-size:12px;
}
.plans-card-list--sku-mapping .product-ids--meta{margin-bottom:0;color:#b0b8c4;font-size:11px}
.plans-card-list--sku-mapping .plans-option-name{
  display:-webkit-box;
  color:#111;
  font-size:15px;
  font-weight:700;
  line-height:1.45;
  text-decoration:underline;
  -webkit-line-clamp:3;
  -webkit-box-orient:vertical;
  overflow:hidden;
}
.plans-card-list--sku-mapping .plans-line{
  display:flex;
  align-items:center;
  justify-content:space-between;
  min-height:30px;
  gap:10px;
}
.plans-card-list--sku-mapping .plans-k{
  display:inline;
  margin:0;
  padding:0;
  border:0;
  background:transparent;
  color:#66758a;
  font-size:14px;
  font-weight:500;
  line-height:1.3;
  white-space:nowrap;
}
.plans-card-list--sku-mapping .plans-k--main{color:#111827;font-weight:700}
.plans-card-list--sku-mapping .plans-v{
  display:inline;
  margin:0;
  padding:0;
  color:#111827;
  font-size:14px;
  font-weight:700;
  text-decoration:underline;
  text-underline-offset:2px;
  white-space:nowrap;
}
.plans-card-list--sku-mapping .plans-line .sku-pack-input{flex:0 0 auto}
.plans-card-list--sku-mapping .sku-supply-price{font-variant-numeric:tabular-nums}
.filter-panel.filter-panel--plans{
  display:flex;
  flex-wrap:nowrap;
  align-items:center;
  gap:10px;
  margin:0 0 12px;
  padding:8px 10px;
  border:1px solid var(--line);
  border-radius:12px;
  background:var(--panel);
  box-shadow:0 1px 2px rgba(23,32,51,.04);
}
.filter-panel--plans .filters--plans{
  display:flex;
  flex:1 1 auto;
  flex-wrap:nowrap;
  align-items:center;
  gap:8px;
  min-width:0;
  margin:0;
}
.filter-panel--plans .search-box--plans{
  position:relative;
  display:flex;
  width:auto;
  min-width:280px;
  flex:1 0 280px;
  height:36px;
  align-items:center;
  gap:0;
  padding:0;
  border:0;
  border-radius:0;
  background:transparent;
  box-shadow:none;
}
.filter-panel--plans .search-box--plans svg{
  position:absolute;
  left:12px;
  z-index:1;
  width:16px;
  height:16px;
  color:var(--muted);
  fill:none!important;
  stroke:currentColor;
  pointer-events:none;
}
.filter-panel--plans .search-box--plans input[type="search"]{
  width:100%;
  height:36px;
  min-height:36px;
  padding:0 12px 0 36px;
  border:1px solid var(--line);
  border-radius:9px;
  background:var(--panel);
  box-shadow:none;
  font-size:13px;
  color:var(--ink);
}
.filter-panel--plans .search-box--plans input[type="search"]:focus{
  border-color:var(--brand);
  outline:none;
  box-shadow:none;
}
.filter-panel--plans .filter-reset{
  display:inline-flex;
  height:36px;
  align-items:center;
  padding:0 8px;
  border:0;
  background:transparent;
  color:var(--muted);
  font-size:12px;
  font-weight:600;
  white-space:nowrap;
  cursor:pointer;
}
.filter-panel--plans .filter-reset:hover{color:var(--ink)}
.sku-mapping-toolbar{margin-top:4px}
.aggregate-mapping-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px 12px;margin-top:10px;padding:10px;border-radius:10px;background:#f3f6fa;border:1px solid #e3e8ef}
.mapping-field{display:flex;gap:8px;align-items:baseline;font-size:12px;line-height:1.45}
.mapping-label{min-width:78px;color:#6b7280;font-weight:800;white-space:nowrap}
.mapping-value{color:#1f2937;font-weight:700;word-break:break-all}
.aggregate-head{display:flex;justify-content:space-between;gap:10px;align-items:flex-start}
.aggregate-title{font-size:13px;font-weight:1000;line-height:1.5}
.aggregate-total{font-size:12px;font-weight:1000;color:var(--brand);white-space:nowrap}
.source-line{font-size:11px;color:#556177;line-height:1.65;padding:5px 0;border-top:1px dashed #dfe4ec}
.aggregate-sources .source-line{border-top:0;padding:2px 0 2px 14px}
.range{display:inline-flex;padding:5px 8px;border-radius:8px;background:var(--soft);color:var(--brand);font-size:10px;font-weight:950;margin-top:6px}
.danger-panel{background:var(--badbg);color:var(--bad);border:2px solid #efb7b2;border-radius:14px;padding:15px;font-size:16px;font-weight:900;line-height:1.7;margin-top:12px}
.discard-check{display:flex!important;align-items:flex-start;gap:10px;background:#fff;border:2px solid var(--line);border-radius:13px;padding:14px!important;font-size:16px!important;line-height:1.5!important}
.discard-check input{width:24px!important;height:24px!important;min-height:0!important;flex:0 0 auto}
.danger-go{background:var(--bad)!important}

.builder-section-title{font-size:16px;font-weight:1000;margin:18px 0 8px}
.builder-print-actions{flex-wrap:wrap;gap:8px}
.builder-print-actions .btn:disabled{opacity:.45;cursor:not-allowed}
.preview-close{width:40px;height:40px;border:0;border-radius:10px;background:#e8ebf0;font-size:20px;font-weight:1000;flex:0 0 auto;cursor:pointer}
.office-modal{z-index:1600;padding:24px}
.office-builder-dialog,.office-preview-dialog,.office-cancel-dialog,.office-inbound-list-dialog{
  display:flex;flex-direction:column;max-height:90vh;background:#fff;border-radius:16px;padding:0;box-shadow:0 24px 60px rgba(15,23,42,.28)
}
.office-inbound-list-dialog{width:min(1600px,98vw);max-height:92vh}
.office-inbound-list-body{display:flex;flex-direction:column;min-height:0}
.coupang-inbound-list-meta{font-size:13px;color:#475569;margin:4px 0 10px;line-height:1.5;flex:0 0 auto}
.coupang-inbound-split{display:grid;grid-template-columns:2fr 3fr;gap:14px;align-items:stretch;min-height:0;flex:1}
.coupang-inbound-split-left,.coupang-inbound-split-right{min-width:0;min-height:0;display:flex;flex-direction:column}
.coupang-inbound-list-wrap{overflow:auto;flex:1;max-height:min(68vh,720px);border:1px solid #e2e8f0;border-radius:10px;padding:8px;background:#fafbfc}
.coupang-pallet-compare{margin:0;padding:10px 12px;border:1px solid #dbeafe;border-radius:10px;background:#f8fbff;overflow:auto;flex:1;max-height:min(68vh,720px)}
.coupang-pallet-compare-title{font-size:13px;font-weight:1000;margin:0 0 8px;color:#1e3a8a}
.coupang-match-warn{margin:0 0 8px;padding:7px 9px;border-radius:8px;background:#fff7ed;color:#9a3412;font-size:12px;font-weight:800}
.coupang-match-diff{margin:8px 0 10px;padding:10px 12px;border:1px solid #fecaca;border-radius:10px;background:#fff5f5}
.coupang-match-diff>summary.coupang-match-diff-title{font-size:12px;font-weight:1000;color:#b91c1c;margin:0;cursor:pointer;list-style:none;display:flex;align-items:center;gap:6px;user-select:none}
.coupang-match-diff>summary.coupang-match-diff-title::-webkit-details-marker{display:none}
.coupang-match-diff>summary.coupang-match-diff-title::before{content:'▶';font-size:10px;color:#dc2626;transition:transform .15s ease}
.coupang-match-diff[open]>summary.coupang-match-diff-title::before{transform:rotate(90deg)}
.coupang-match-diff-body{padding-top:8px}
.coupang-diff-block{margin-top:8px;font-size:12px;line-height:1.55;color:#7f1d1d}
.coupang-diff-block b{display:block;margin-bottom:4px}
.coupang-diff-block ul{margin:0;padding-left:18px}
.coupang-sku-table tr.is-mismatch{background:#fff1f2}
.coupang-sku-table tr.is-match-ok{background:#f0fdf4}
.coupang-sku-table tr.is-miss-map{background:#fff7ed}
.coupang-sku-table tr.is-name-miss{background:#fff7ed}
.coupang-remark-cell{width:1%;min-width:52px;max-width:140px;white-space:nowrap;line-height:1.35;padding-left:6px;padding-right:6px}
.coupang-remark-cell .coupang-name-miss{white-space:normal;display:block;max-width:140px}
.coupang-exp-cell{width:1%;min-width:96px;white-space:nowrap}
.coupang-name-miss{display:inline-block;color:#9a3412;font-size:11px;font-weight:900;line-height:1.45}
.coupang-row-flag{display:inline-block;padding:2px 7px;border-radius:999px;font-size:11px;font-weight:900}
.coupang-row-flag.ok{background:#dcfce7;color:#166534}
.coupang-row-flag.extra,.coupang-row-flag.missing{background:#fee2e2;color:#991b1b}
.coupang-row-flag.qty{background:#ffedd5;color:#9a3412}
.coupang-row-flag.none{background:#f3f4f6;color:#6b7280}
.coupang-inbound-card.is-full{border-color:#86efac}
.coupang-inbound-card.is-low{border-color:#fca5a5}
.coupang-inbound-cards{display:flex;flex-direction:column;gap:10px}
.coupang-inbound-card{border:1px solid #e2e8f0;border-radius:10px;background:#fff;padding:10px 12px}
.coupang-inbound-card.is-high{border-color:#86efac;background:#f0fdf4}
.coupang-inbound-card.is-mid{border-color:#fde68a;background:#fffbeb}
.coupang-inbound-card-head{display:flex;align-items:flex-start;gap:10px;margin-bottom:8px}
.coupang-inbound-card-ids{flex:1;min-width:0}
.coupang-inbound-card-ids b{display:block;font-size:13px}
.coupang-inbound-card-ids span{display:block;margin-top:3px;font-size:12px;color:#64748b}
.coupang-sku-table{width:100%;border-collapse:collapse;font-size:12px}
.coupang-sku-table th,.coupang-sku-table td{padding:7px 8px;border-bottom:1px solid #edf0f4;text-align:left;vertical-align:top}
.coupang-sku-table th{background:#f8fafc;font-weight:1000;color:#334155;white-space:nowrap}
.coupang-sku-name{min-width:180px;white-space:normal;line-height:1.4}
.coupang-sku-empty{padding:10px;font-size:13px;color:#64748b}
.coupang-match-pill{display:inline-flex;min-width:52px;justify-content:center;padding:4px 8px;border-radius:999px;font-weight:1000;font-size:12px;background:#e2e8f0;color:#334155}
.coupang-match-pill.high{background:#bbf7d0;color:#166534}
.coupang-match-pill.mid{background:#fde68a;color:#92400e}
.coupang-match-pill.low{background:#e2e8f0;color:#64748b}
.office-builder-dialog{width:min(860px,96vw)}
.office-preview-dialog{width:min(1120px,96vw)}
.office-cancel-dialog{width:min(520px,96vw)}
.office-modal-head{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;padding:20px 20px 12px;border-bottom:1px solid #edf0f4}
.office-modal-head h3{margin:0;font-size:22px;line-height:1.35}
.office-modal-head p{margin:8px 0 0;font-size:14px;line-height:1.6;color:#64748b}
.office-modal-body{overflow:auto;padding:8px 20px 16px;flex:1}
.office-modal-body .summarybox{margin-top:8px}
.office-modal-body .danger-panel{margin-top:8px}
.office-modal-actions{padding:12px 20px 18px;margin:0;border-top:1px solid #edf0f4;background:#fff;border-radius:0 0 16px 16px}
.office-modal-actions .btn.danger{background:var(--bad);color:#fff;border-color:var(--bad)}
/* 라벨 실사이즈 452px — 그리드 칸을 320으로 잡으면 라벨이 칸을 넘어 서로 겹친다 */
.preview-label-grid{
  display:grid!important;
  grid-template-columns:repeat(auto-fill,minmax(452px,452px))!important;
  gap:18px!important;
  justify-content:center!important;
  align-items:start!important;
}
#labelPreviewPopup .label{
  width:452px;
  max-width:100%;
  flex-shrink:0;
}
.builder-product{border:2px solid var(--line);border-radius:15px;padding:14px;background:#fff;margin-top:9px}
.builder-product-row{display:grid;grid-template-columns:44px 1fr auto;gap:12px;align-items:center}
.builder-product-index{width:38px;height:38px;border-radius:50%;display:grid;place-items:center;background:var(--soft);color:var(--brand);font-weight:1000}
.builder-product-name{font-size:15px;font-weight:1000;line-height:1.5}
.builder-product-meta{font-size:13px;color:var(--muted);line-height:1.6;margin-top:4px}
.builder-product-range{display:inline-flex;margin-top:7px;padding:6px 9px;border-radius:8px;background:var(--bluebg);color:var(--blue);font-size:12px;font-weight:1000}
.builder-arrows{display:flex;gap:6px}
.builder-arrows button{width:42px;height:42px;border:2px solid var(--line);background:#fff;border-radius:10px;font-size:19px;font-weight:1000}

.order-allocation-sheet{max-height:94vh}
.allocation-summary{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin:12px 0 14px}
.allocation-summary>div{background:#f0f2f6;border-radius:12px;padding:11px;text-align:center}
.allocation-summary span{display:block;font-size:12px;color:var(--muted);font-weight:800}
.allocation-summary b{display:block;font-size:21px;margin-top:2px}
.alloc-item{border:2px solid var(--line);border-radius:16px;background:#fff;margin-top:10px;overflow:hidden}
.alloc-item.available{border-color:#bdc8e7}.alloc-item.complete{background:#f7f8fa}
.alloc-item-head{display:grid;grid-template-columns:auto 1fr auto;gap:11px;align-items:flex-start;padding:14px}
.alloc-check{width:30px;height:30px;margin-top:3px;accent-color:var(--brand)}
.alloc-name{font-size:17px;font-weight:1000;line-height:1.45}.alloc-code{font-size:13px;font-weight:900;color:var(--brand);margin-bottom:3px}
.alloc-state{display:inline-flex;padding:6px 9px;border-radius:999px;font-size:12px;font-weight:1000}
.alloc-state.none{background:#f0f1f4;color:#667085}.alloc-state.partial{background:var(--warnbg);color:var(--warn)}.alloc-state.done{background:var(--goodbg);color:var(--good)}
.alloc-numbers{display:grid;grid-template-columns:repeat(3,1fr);gap:7px;padding:0 14px 12px}
.alloc-num{border-radius:10px;background:#f5f6f8;padding:8px;text-align:center}
.alloc-num span{display:block;font-size:11px;color:var(--muted);font-weight:800}.alloc-num b{display:block;font-size:16px;margin-top:2px}
.alloc-destinations{border-top:1px solid var(--line);padding:10px 14px 12px;background:#fafbfc}
.alloc-dest-title{font-size:12px;font-weight:1000;color:#667085;margin-bottom:5px}
.alloc-dest{font-size:13px;line-height:1.65;color:#39465c}
.alloc-auto{border-top:1px solid var(--line);padding:11px 14px;background:#f8f9fb;font-size:13px;font-weight:950;color:#4b5870}
.alloc-dest-row{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:6px}
.unassign-btn{border:2px solid #e5a6a0;background:#fff1f0;color:var(--bad);border-radius:9px;padding:7px 9px;font-size:12px;font-weight:1000}
.allocation-bulk{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:0 0 10px}
.allocation-bulk button{min-height:48px;border:2px solid var(--line);border-radius:11px;background:#fff;font-size:14px;font-weight:1000}
.allocation-bulk button:first-child{border-color:var(--brand);color:var(--brand);background:var(--soft)}
.order-progress{margin:10px 0 13px;border:2px solid #d9deea;border-radius:14px;background:#f7f8fb;overflow:hidden}
.order-progress-head{display:flex;justify-content:space-between;gap:8px;align-items:center;padding:11px 12px;background:#eef1f7}
.order-progress-title{font-size:14px;font-weight:1000}.order-progress-summary{font-size:12px;font-weight:1000;color:var(--brand)}
.order-progress-row{padding:10px 12px;border-top:1px solid #e0e4ec}
.opr-main{display:flex;justify-content:space-between;gap:10px;align-items:flex-start}
.opr-name{font-size:13px;font-weight:1000;line-height:1.45}
.opr-where{font-size:11px;color:#596579;line-height:1.6;margin-top:5px}
.opr-toggle{border:0;border-radius:10px;padding:8px 10px;min-height:38px;font-size:12px;font-weight:1000}
.opr-toggle.done{background:var(--goodbg);color:var(--good);border:2px solid #b8dfc8}
.opr-toggle.partial{background:var(--warnbg);color:var(--warn);border:2px solid #ead59d}
.opr-toggle.wait{background:#eef0f4;color:#596579;border:2px solid #d8dde6}
.opr-toggle:disabled{opacity:.45}
.opr-toggle-hint{display:block;font-size:9px;margin-top:2px;opacity:.8}
.office-pallet-page{display:flex;flex-direction:column;gap:16px}
.office-pallet-top{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,1fr);gap:16px;align-items:stretch}
.office-pallet-list-panel,.office-pallet-inbound-panel{
  padding:14px;min-height:220px;max-height:38vh;overflow:auto;display:flex;flex-direction:column
}
.office-pallet-list-panel .section-title,.office-pallet-inbound-panel .section-title,.office-pallet-detail-panel .section-title{margin-bottom:8px}
.office-pallet-list-panel .section-title h3,.office-pallet-inbound-panel .section-title h3,.office-pallet-detail-panel .section-title h3{font-size:15px}
.office-pallet-common-badge{
  display:inline-flex;align-items:center;padding:3px 8px;border-radius:999px;
  background:#eef2ff;border:1px solid #c7d2fe;color:#3730a3;
  font-size:11px;font-weight:900;flex-shrink:0
}
.office-pallet-inbound-panel .coupang-builder-panel{margin:0;padding:0;border:0;background:transparent;border-radius:0;flex:1;min-height:0}
.coupang-inbound-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:0 0 10px;align-items:stretch}
.coupang-inbound-actions .coupang-inbound-action,
.coupang-inbound-actions .coupang-sync-btn-wrap{
  display:flex;align-items:stretch;min-width:0;margin:0;position:relative
}
.coupang-inbound-actions .coupang-inbound-action.is-disabled{cursor:not-allowed}
.coupang-inbound-actions .btn.coupang-inbound-btn{
  width:100%;min-height:36px;height:36px;padding:0 10px;margin:0;
  font-size:12px;font-weight:800;line-height:1;border-radius:9px;box-sizing:border-box
}
.coupang-inbound-actions .coupang-inbound-action.is-disabled:hover::after,
.coupang-inbound-actions .coupang-sync-btn-wrap:hover::after{
  content:attr(title);
  position:absolute;left:0;bottom:calc(100% + 8px);z-index:5;
  min-width:220px;max-width:320px;padding:8px 10px;border-radius:8px;
  background:#202733;color:#fff;font-size:12px;font-weight:700;line-height:1.45;
  white-space:normal;pointer-events:none;box-shadow:0 8px 20px rgba(15,23,42,.25)
}
.coupang-milkrun-table-wrap{overflow:auto;flex:1;min-height:0}
.office-pallet-list{flex:1;min-height:0;overflow:auto}
.office-pallet-table-wrap{overflow:auto}
.office-pallet-table{width:100%;border-collapse:collapse}
.office-pallet-table th,.office-pallet-table td{padding:8px 8px;font-size:12px;border-bottom:1px solid var(--line);vertical-align:middle;white-space:nowrap}
.office-pallet-table th{font-size:11px;font-weight:900;color:var(--muted);background:#f8fafc;position:sticky;top:0;z-index:1}
.office-pallet-row{cursor:pointer}
.office-pallet-row:hover{background:#f8fafc}
.office-pallet-row.on{background:#eef4ff}
.office-pallet-row.is-linked.on{background:#f0fdf4}
.office-pallet-row.is-unlinked.on{background:#fff7ed}
.office-pallet-table .office-pallet-list-code{font-size:13px}
.office-pallet-table .office-pallet-list-inbound{color:#166534;font-weight:800}
.office-pallet-table .office-pallet-link-chip{padding:3px 8px;font-size:11px}
.office-pallet-detail.is-linked{padding:2px}
.office-pallet-detail.is-unlinked{padding:2px}
.office-pallet-head{
  display:flex;justify-content:space-between;align-items:center;gap:12px;
  margin-bottom:12px;flex-wrap:nowrap;
}
.office-pallet-head-line{
  display:flex;align-items:center;flex-wrap:nowrap;gap:10px 14px;
  min-width:0;flex:1;overflow:auto;
}
.office-pallet-code{
  margin:0;font-size:20px;font-weight:1000;letter-spacing:-.03em;
  white-space:nowrap;flex-shrink:0;
}
.office-pallet-inbound-id{
  display:inline-flex;align-items:baseline;gap:6px;
  font-size:13px;font-weight:800;color:#166534;white-space:nowrap;flex-shrink:0;
}
.office-pallet-inbound-id b{font-size:16px;font-weight:1000;letter-spacing:-.02em;color:#14532d}
.office-pallet-created{
  font-size:12px;font-weight:800;color:#64748b;white-space:nowrap;flex-shrink:0;
}
.office-pallet-created b{color:#334155;font-weight:900}
.office-pallet-edd-inline{
  display:inline-flex;align-items:baseline;gap:6px;
  padding:6px 12px;border-radius:999px;
  background:#ecfdf3;border:1px solid #86efac;
  font-size:12px;font-weight:800;color:#166534;white-space:nowrap;flex-shrink:0;
}
.office-pallet-edd-inline b{font-size:18px;font-weight:1000;color:#14532d;letter-spacing:-.03em}
.office-pallet-link-chip{
  display:inline-flex;align-items:center;padding:6px 11px;border-radius:999px;
  font-size:12px;font-weight:900;white-space:nowrap;flex-shrink:0;
}
.office-pallet-link-chip.is-linked{background:#ecfdf3;border:1px solid #86efac;color:#166534}
.office-pallet-link-chip.is-unlinked{background:#fff7ed;border:1px solid #fdba74;color:#9a3412}
.office-pallet-link-chip.is-cancelled{background:#fff1f2;border:1px solid #fecdd3;color:#9f1239}
.office-pallet-link-section{margin-top:16px;padding-top:14px;border-top:1px solid #ebe7f2}
.office-pallet-linked-actions{margin-top:16px;flex-wrap:wrap;align-items:center}
.btn-menu{position:relative;display:inline-flex;vertical-align:middle}
.btn-menu-main{border-top-right-radius:0;border-bottom-right-radius:0;border-right:none}
.btn-menu-caret{border-top-left-radius:0;border-bottom-left-radius:0;padding-left:9px;padding-right:9px;min-width:36px}
.btn-menu-caret.primary,.btn-menu-caret.good{border-left:1px solid rgba(255,255,255,.28)}
.btn-menu-panel{
  position:absolute;left:0;bottom:calc(100% + 6px);z-index:40;
  min-width:100%;padding:6px;border:1px solid var(--line);border-radius:12px;
  background:#fff;box-shadow:0 10px 28px rgba(24,18,40,.14);
  display:flex;flex-direction:column;gap:4px;
}
.btn-menu-panel[hidden]{display:none!important}
.btn-menu-item{
  appearance:none;border:0;background:transparent;text-align:left;
  padding:9px 11px;border-radius:9px;font:inherit;font-weight:900;color:var(--ink);cursor:pointer;white-space:nowrap;
}
.btn-menu-item:hover,.btn-menu-item:focus-visible{background:#f4f2f8;outline:none}
.btn-menu.is-open .btn-menu-caret{filter:brightness(.94)}
.office-pallet-detail-panel{padding:16px;min-height:280px}
.office-pallet-detail-empty{display:flex;align-items:center;justify-content:center;min-height:160px;color:#8a8399;font-size:14px;text-align:center;padding:24px}
.office-pallet-detail-panel .card{border:none;padding:0;background:transparent;box-shadow:none}
.office-aggregate-section{margin-top:12px}
.office-aggregate-toolbar{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:8px}
.office-aggregate-title{font-size:12px;font-weight:1000}
.office-aggregate-toolbar-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap;justify-content:flex-end}
.office-aggregate-weight{font-size:12px;font-weight:900;color:#0f766e;font-variant-numeric:tabular-nums;white-space:nowrap}
.office-aggregate-weight.is-empty{color:#94a3b8;font-weight:700}
.office-order-progress{margin-top:12px;border-top:1px solid var(--line);padding-top:10px}
.office-order-progress>summary.office-order-title{
  cursor:pointer;list-style:none;user-select:none;display:flex;align-items:center;gap:8px;
  font-size:12px;font-weight:1000;
}
.office-order-progress>summary.office-order-title::-webkit-details-marker{display:none}
.office-order-progress>summary.office-order-title::before{
  content:'▶';display:inline-block;font-size:9px;color:#94a3b8;transform:translateY(-1px);
}
.office-order-progress[open]>summary.office-order-title::before{content:'▼'}
.office-order-count{color:#667085;font-weight:800}
.office-order-progress-body{margin-top:8px}
.office-order-title{font-size:12px;font-weight:1000;margin-bottom:7px}
.office-order-box{border:1px solid var(--line);border-radius:12px;padding:10px;background:#fafbfc;margin-top:7px}
.office-order-box .top{display:flex;justify-content:space-between;gap:10px;font-size:12px;font-weight:1000}
.office-order-box .remain-list{font-size:11px;line-height:1.65;color:#5c687b;margin-top:6px}
.coupang-fetch-btn{margin-top:8px;padding:7px 11px;min-height:34px;font-size:11px;background:#eef5ff;color:#1759a7;border-color:#bfd6f2}
.coupang-fetch-btn:disabled{opacity:.55;cursor:not-allowed}
.coupang-sheet-bg{z-index:65}
.coupang-inbound-sheet{width:min(840px,calc(100vw - 24px));max-height:92vh;overflow:auto}
.coupang-popup-head{display:flex;align-items:flex-start;justify-content:space-between;gap:14px}
.coupang-popup-head h3{margin:0}
.coupang-popup-head p{margin:6px 0 0;color:var(--muted);font-size:12px}
.coupang-collection-status{margin:14px 0;padding:12px 14px;border-radius:12px;background:#f1f3f6;color:#4d586b;font-weight:900;font-size:13px}
.coupang-collection-status.running{background:#eef5ff;color:#1759a7}
.coupang-collection-status.success{background:var(--goodbg);color:var(--good)}
.coupang-collection-status.error{background:var(--badbg);color:var(--bad)}
.coupang-installer-box{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:14px;padding:12px 14px;border:1px solid #bfd6f2;border-radius:12px;background:#f5f9ff;font-size:12px;line-height:1.55}
.coupang-installer-box[hidden]{display:none!important}
.coupang-installer-box span{color:#596579}
.coupang-installer-box code{font-weight:900;color:#172033}
.coupang-parcel-panel{margin-top:14px;padding-top:12px;border-top:1px dashed #d5deea}
.coupang-parcel-panel .coupang-candidate-title{margin-bottom:6px}
.coupang-dev-controls{display:flex;justify-content:flex-end;align-items:center;gap:12px;margin-bottom:12px;font-size:12px;font-weight:900}
.coupang-dev-controls[hidden]{display:none}
.coupang-inbound-list{display:grid;gap:10px}
.coupang-inbound-card{border:1px solid var(--line);border-radius:14px;padding:14px;background:#fff}
.coupang-inbound-card-head{display:flex;justify-content:space-between;align-items:center;gap:12px}
.coupang-inbound-card-head b{font-size:14px;color:#172033}
.coupang-status{font-size:11px;font-weight:1000;color:var(--good);background:var(--goodbg);padding:5px 8px;border-radius:999px}
.coupang-status.cancelled{color:var(--bad);background:var(--badbg)}
.coupang-product{font-size:14px;font-weight:900;margin-top:10px;line-height:1.5}
.coupang-meta{font-size:11px;color:#657186;line-height:1.7;margin-top:6px}
.coupang-qty-summary{display:flex;gap:6px;flex-wrap:wrap;margin-top:9px}
.coupang-qty-summary span{padding:5px 8px;border-radius:8px;background:#f0f4f8;color:#475569;font-size:11px;font-weight:800}
.coupang-qty-summary b{margin-left:3px;color:#172033;font-size:12px}
.coupang-qty-summary .rejected{background:var(--badbg);color:var(--bad)}
.coupang-qty-summary .rejected b{color:var(--bad)}
.coupang-board{margin:14px 0;border:1px solid #dce5ef;border-radius:12px;overflow:hidden;background:#fff}
.coupang-board-toggle{width:100%;border:0;background:#f7fafc;padding:14px 16px;display:flex;align-items:center;justify-content:space-between;color:#172033;font-weight:900;text-align:left;cursor:pointer}
.coupang-board-toggle[aria-expanded="true"]{background:#eef6ff;color:#155e9b}
.coupang-board-body{padding:14px 16px;border-top:1px solid #dce5ef}
.coupang-board-body[hidden]{display:none!important}
.coupang-board-status{font-size:13px;font-weight:900;color:#64748b}
.coupang-board-status.success{color:var(--good)}
.coupang-board-status.running{color:#155e9b}
.coupang-board-status.warn{color:#9a6700}
.coupang-board-status.error{color:var(--bad)}
.coupang-board-meta{margin-top:5px;color:#64748b;font-size:12px;font-weight:700}
.coupang-board-actions{display:flex;gap:8px;justify-content:flex-end;margin:10px 0}
.coupang-board-progress{margin:10px 0}
.coupang-board-progress[hidden]{display:none!important}
.coupang-board-progress-track{height:7px;border-radius:999px;background:#e7edf4;overflow:hidden}
.coupang-board-progress-bar{height:100%;width:0;background:#228be6;transition:width .2s ease}
.coupang-board-progress-text{margin-top:5px;font-size:11px;color:#64748b}
.coupang-board-list{display:grid;gap:10px;margin-top:10px}
.coupang-detail{display:inline-block;margin-top:8px;color:#1759a7;font-size:12px;font-weight:900}
.coupang-empty{padding:30px 10px;text-align:center}
.coupang-progress-wrap{margin:0 0 14px;padding:14px;border-radius:14px;background:#f5f9ff;border:1px solid #d5e4f7}
.coupang-progress-wrap[hidden]{display:none}
.coupang-progress-track{height:10px;border-radius:999px;background:#dbe7f6;overflow:hidden}
.coupang-progress-bar{height:100%;width:10%;background:#245ea8;border-radius:999px;transition:width .25s ease}
.coupang-progress-wrap p{margin:10px 0 0;font-size:13px;font-weight:900;color:#1759a7}
.coupang-progress-hint{color:#596579 !important;font-weight:700 !important;font-size:12px !important}
.coupang-action-row{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:12px}
.coupang-action-row .btn[hidden]{display:none}
.coupang-sku-list{margin:8px 0 0;padding-left:18px;font-size:12px;line-height:1.7;color:#334155}
.coupang-extension-guide{margin:0 0 16px}
.coupang-extension-guide-inner{padding:14px;border-radius:12px;border:1px solid #dce5ef;background:#f9fbfd}
.coupang-extension-guide-inner.checking{border-color:#cbd5e1;background:#f8fafc}
.coupang-extension-guide-inner.ok{border-color:#86efac;background:#f0fdf4}
.coupang-extension-guide-inner.warn{border-color:#fcd34d;background:#fffbeb}
.coupang-extension-guide-title{font-size:14px;font-weight:1000;margin-bottom:8px;color:#0f172a}
.coupang-extension-guide-inner.ok .coupang-extension-guide-title{color:var(--good)}
.coupang-extension-guide-inner.warn .coupang-extension-guide-title{color:#9a6700}
.coupang-extension-guide-lead{font-size:13px;line-height:1.6;color:#475569;margin:0 0 10px}
.coupang-extension-guide-steps{margin:0;padding-left:20px;font-size:13px;line-height:1.7;color:#334155}
.coupang-extension-guide-steps li{margin:6px 0}
.coupang-extension-guide-steps .btn{margin:2px 0}
.coupang-extension-guide-details{margin-top:8px;font-size:13px;color:#475569}
.coupang-extension-guide-details summary{cursor:pointer;font-weight:800;color:#64748b}
.coupang-builder-panel{margin:0 0 16px;padding:14px;border:1px solid #dce5ef;border-radius:12px;background:#f9fbfd}
.coupang-builder-status{font-size:13px;font-weight:900;color:#64748b;margin-bottom:10px}
.coupang-builder-status.success{color:var(--good)}
.coupang-builder-status.running{color:#155e9b}
.coupang-builder-status.warn{color:#9a6700}
.coupang-builder-status.error{color:var(--bad)}
.coupang-builder-note{font-size:13px;line-height:1.6;color:#475569;margin-bottom:12px}
.coupang-builder-note.warn{color:#9a6700}
.coupang-builder-note.error{color:var(--bad)}
.coupang-builder-actions{display:flex;gap:8px;margin:12px 0 8px;flex-wrap:wrap}
.coupang-unlink-bar{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin:0 0 16px;padding:12px 14px;border:1px solid #ead493;border-radius:12px;background:#fff8e8}
.coupang-unlink-bar[hidden]{display:none!important}
.coupang-unlink-hint{font-size:13px;color:#7d5800;line-height:1.45}
.coupang-linked-grid{
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(148px,1fr));
  gap:10px;
  margin-top:12px;
}
.coupang-linked-row{
  display:flex;
  flex-direction:column;
  gap:6px;
  padding:12px 12px 11px;
  border:1px solid #e5e7eb;
  border-radius:10px;
  background:#f8fafc;
  min-width:0;
}
.coupang-linked-row span{
  color:#64748b;
  font-size:11px;
  font-weight:700;
  letter-spacing:-.01em;
}
.coupang-linked-row b{
  text-align:left;
  color:#111827;
  font-size:14px;
  font-weight:900;
  line-height:1.35;
  word-break:break-all;
}
.coupang-candidate-meta{display:flex;justify-content:space-between;gap:12px;font-size:12px;color:#64748b}
.office-pallet-linked-info .coupang-builder-status{margin-bottom:2px}
.coupang-linked-row.is-wide{grid-column:span 2}
.coupang-candidate-title{margin:14px 0 8px;font-size:12px;font-weight:1000;color:#334155}
.coupang-candidate-card{width:100%;text-align:left;border:1px solid #dce5ef;border-radius:10px;background:#fff;padding:12px;cursor:pointer}
.coupang-candidate-card:hover{border-color:#228be6;background:#f5f9ff}
.coupang-candidate-head{display:flex;justify-content:space-between;gap:8px;font-size:13px}
.coupang-sync-btn{margin-top:4px}
.coupang-sync-btn-wrap{display:inline-block;margin-top:4px;cursor:not-allowed;position:relative}
.coupang-sync-btn-wrap .coupang-sync-btn{margin-top:0;pointer-events:none}
.coupang-sync-btn:disabled,.coupang-sync-btn.is-disabled{
  background:#c5cad3!important;border-color:#c5cad3!important;color:#f4f5f7!important;
  cursor:not-allowed;opacity:1;box-shadow:none
}
.coupang-sync-btn-wrap:hover::after{
  content:attr(title);
  position:absolute;left:0;bottom:calc(100% + 8px);z-index:5;
  min-width:220px;max-width:320px;padding:8px 10px;border-radius:8px;
  background:#202733;color:#fff;font-size:12px;font-weight:700;line-height:1.45;
  white-space:normal;pointer-events:none;box-shadow:0 8px 20px rgba(15,23,42,.25)
}
.glr-mask-overlay{position:fixed;inset:0;z-index:2147483647;background:#0f172a;color:#f8fafc;display:flex;align-items:center;justify-content:center;font-family:system-ui,sans-serif}
.glr-mask-overlay[hidden]{display:none!important}
.glr-mask-overlay__box{text-align:center;padding:24px;width:min(420px,calc(100vw - 48px))}
.glr-mask-overlay__title{font-size:18px;font-weight:700;margin-bottom:8px}
.glr-mask-overlay__sub{font-size:14px;opacity:.85;line-height:1.5}
.glr-mask-overlay__bar{margin:18px auto 8px;width:100%;height:8px;border-radius:999px;background:rgba(248,250,252,.16);overflow:hidden}
.glr-mask-overlay__fill{height:100%;width:8%;border-radius:999px;background-image:linear-gradient(90deg,#38bdf8,#7dd3fc,#38bdf8);background-size:48px 100%;animation:glr-bar-shine 1s linear infinite;transition:width .35s ease}
.glr-mask-overlay__meta{font-size:13px;opacity:.8}
@keyframes glr-bar-shine{to{background-position:48px 0}}
.dialog-overlay{position:fixed;inset:0;background:rgba(15,23,42,.45);display:flex;align-items:center;justify-content:center;padding:16px;z-index:2000}
.dialog-overlay.coupang-top-dialog{z-index:3200}
.dialog-overlay[hidden]{display:none!important}
.coupang-dialog{max-width:560px;width:100%;background:#fff;border-radius:14px;padding:20px;box-shadow:0 20px 50px rgba(15,23,42,.2)}
.coupang-dialog h3{margin:0 0 12px;font-size:18px}
.coupang-dialog p{margin:0 0 10px;line-height:1.6;color:#334155}
.coupang-dialog .dialog-sub{color:#64748b;font-size:13px}
.coupang-dialog .coupang-linked-grid{margin-top:4px}
.dialog-actions{display:flex;gap:8px;justify-content:flex-end;margin-top:16px}

#printArea{display:none}
.load-list-preview-wrap{overflow:auto;max-height:min(70vh,800px)}
.load-list-sheet{background:#fff;color:#111;padding:18px 20px;border:1px solid #dbe0ea;border-radius:8px;font-size:13px;line-height:1.45}
.load-list-sheet h1{margin:0 0 8px;font-size:20px;font-weight:1000;text-align:left}
.load-list-sheet .load-list-warn{margin:0 0 14px;text-align:left;font-size:12px;font-weight:900;color:#b91c1c}
.load-list-sheet h2{margin:16px 0 8px;font-size:15px;font-weight:1000}
.load-list-meta-table,.load-list-sku-table{width:100%;border-collapse:collapse;margin-bottom:8px}
.load-list-meta-table th,.load-list-meta-table td,
.load-list-sku-table th,.load-list-sku-table td{border:1px solid #333;padding:7px 8px;vertical-align:top;text-align:left}
.load-list-meta-table th{width:34%;background:#f3f4f6;font-weight:900}
.load-list-sku-table th{background:#f3f4f6;font-weight:900;white-space:nowrap;text-align:center}
.load-list-sku-table td{font-size:12px}
.load-list-sku-table td.num,.load-list-sku-table td.center{text-align:center;white-space:nowrap}
.load-list-sku-table td.name{min-width:180px;word-break:keep-all;overflow-wrap:anywhere}
@page{size:A4 portrait;margin:0}
@page label-page{size:A4 landscape;margin:0}
@page load-list-page{size:A4 portrait;margin:0}
@media print{
  html,body{background:#fff!important;margin:0!important;padding:0!important}
  body>*:not(#printArea){display:none!important}
  #printArea{display:block!important;position:static;width:auto;height:auto;margin:0;padding:0;background:#fff}
  #printLabels.labels{display:block!important;width:auto!important;height:auto!important;margin:0;padding:0;gap:0}
  #printLabels .label{
    position:relative;display:flex!important;align-items:center;justify-content:center;
    box-sizing:border-box;width:297mm!important;height:210mm!important;min-height:210mm;
    padding:0;margin:0;border:0;background:#fff;overflow:hidden;
    page:label-page;page-break-after:always;break-after:page;page-break-inside:avoid
  }
  #printArea:not(.with-load-list) #printLabels .label:last-child{page-break-after:auto;break-after:auto}
  #printLabels:empty{display:none!important}
  #printLoadList:empty{display:none!important}
  #printLabels .label-face{
    box-sizing:border-box;width:100%;height:100%;transform:none;transform-origin:center center;
    display:flex;flex-direction:column;align-items:center;justify-content:center;
    gap:8mm;padding:12mm 14mm;text-align:center
  }
  #printLabels .label .name{
    position:static;left:auto;top:auto;transform:none;flex:0 1 auto;width:100%;max-width:260mm;
    font-size:22px;font-weight:1000;line-height:1.35;text-align:center;
    white-space:normal;word-break:keep-all;overflow-wrap:anywhere
  }
  #printLabels .label .num{
    position:static;left:auto;top:auto;transform:none;flex:0 0 auto;
    font-size:96px;line-height:.92;font-weight:1000;letter-spacing:-2px;
    white-space:nowrap;text-align:center
  }
  #printLoadList .load-list-sheet{
    box-sizing:border-box;width:210mm;min-height:297mm;padding:12mm 10mm;margin:0;border:0;border-radius:0;
    page:load-list-page;page-break-before:always;break-before:page;page-break-inside:auto
  }
  #printArea.only-load-list #printLoadList .load-list-sheet{page-break-before:auto;break-before:auto}
  #printLoadList .load-list-sheet h1{font-size:18pt}
  #printLoadList .load-list-sheet h2{font-size:12pt;margin-top:4mm}
  #printLoadList .load-list-sku-table th,#printLoadList .load-list-sku-table td{font-size:9pt;padding:4px 5px}
}
