:root{--navy:#151a32;--navy-2:#242a4b;--blue:#635bdb;--teal:#18a999;--amber:#e8a24a;--bg:#f6f7fb;--panel:#fff;--line:#e6e8f0;--text:#1c2438;--muted:#6c7489;--danger:#d84b4b;--radius:18px;--shadow:0 12px 32px rgba(21,26,50,.08)}
*{box-sizing:border-box}html{font-family:Inter,Pretendard,"Noto Sans KR",system-ui,-apple-system,sans-serif;color:var(--text);background:var(--bg);font-size:16px}body{margin:0;min-width:320px}a{color:inherit;text-decoration:none}button,input,select{font:inherit}button,a,input,select{-webkit-tap-highlight-color:transparent}.app-shell{display:grid;grid-template-columns:248px minmax(0,1fr);min-height:100vh}.sidebar{position:sticky;top:0;height:100vh;background:var(--navy);color:#fff;padding:28px 20px;display:flex;flex-direction:column}.brand{display:flex;align-items:center;gap:12px;padding:0 8px 32px}.brand-mark{display:grid;place-items:center;width:42px;height:42px;border-radius:12px;background:#fff;color:var(--navy);font-size:24px;font-weight:900}.brand strong,.brand small{display:block}.brand strong{font-size:17px;letter-spacing:.08em}.brand small{margin-top:3px;color:#9eabc6;font-size:14px}.side-nav{display:grid;gap:8px}.nav-item{display:flex;align-items:center;gap:14px;min-height:48px;padding:0 15px;border-radius:12px;color:#b8c2d8;font-weight:700}.nav-item span{font-size:20px}.nav-item:hover,.nav-item.active{background:rgba(255,255,255,.1);color:#fff}.nav-item.active{box-shadow:inset 3px 0 #5d88ff}.sidebar-status{margin-top:auto;border-top:1px solid rgba(255,255,255,.1);padding:22px 8px 0;display:flex;gap:10px;align-items:center}.status-dot{width:9px;height:9px;border-radius:50%;background:#36d6a4;box-shadow:0 0 0 4px rgba(54,214,164,.12);flex:0 0 auto}.sidebar-status strong,.sidebar-status small{display:block}.sidebar-status strong{font-size:14px}.sidebar-status small{font-size:13px;color:#93a1bd;margin-top:3px}.main-content{min-width:0}.topbar{min-height:112px;background:rgba(255,255,255,.98);border-bottom:1px solid var(--line);padding:24px clamp(22px,4vw,54px);display:flex;align-items:center;justify-content:space-between;gap:24px}.topbar h1{font-size:28px;line-height:1.2;margin:4px 0 0}.eyebrow{margin:0;color:#7b859a;font-size:13px;font-weight:800;letter-spacing:.12em}.topbar-badge{display:flex;align-items:center;gap:10px;background:#f0faf7;color:#177963;border:1px solid #d6eee7;padding:10px 14px;border-radius:999px;font-weight:700;font-size:14px}.page-content{padding:32px clamp(22px,4vw,54px) 64px;max-width:1600px;margin:0 auto}.hero-panel{background:linear-gradient(125deg,#101c3a 0%,#1b3566 100%);border-radius:24px;padding:40px clamp(28px,4vw,54px);color:#fff;display:flex;align-items:flex-end;justify-content:space-between;gap:32px;overflow:hidden;position:relative}.hero-panel:after{content:"";position:absolute;width:340px;height:340px;border:55px solid rgba(255,255,255,.04);border-radius:50%;right:-70px;top:-165px}.hero-panel h2{font-size:clamp(28px,3vw,42px);line-height:1.25;margin:16px 0 12px}.hero-panel p{margin:0;color:#bdc7da;font-size:16px}.pill{display:inline-flex;background:rgba(255,255,255,.12);border:1px solid rgba(255,255,255,.14);padding:7px 11px;border-radius:999px;font-size:13px;font-weight:700}.primary-button,.secondary-button{min-height:46px;border:0;border-radius:12px;padding:0 18px;font-weight:800;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;gap:12px}.primary-button{background:#fff;color:var(--navy);position:relative;z-index:1}.settings-card .primary-button{background:var(--navy);color:#fff}.secondary-button{background:#edf1f7;color:var(--navy)}.metric-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;margin:22px 0}.metric-card,.panel{background:var(--panel);border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow)}.metric-card{padding:24px;display:flex;gap:18px;align-items:center}.metric-icon{width:52px;height:52px;display:grid;place-items:center;border-radius:15px;font-size:23px;font-weight:900}.metric-icon.navy{background:#eef1f8;color:var(--navy)}.metric-icon.teal{background:#e7f8f5;color:var(--teal)}.metric-icon.amber{background:#fff3df;color:var(--amber)}.metric-card p{margin:0;color:var(--muted);font-weight:700}.metric-card strong{display:block;font-size:30px;margin:3px 0}.metric-card strong.text-value{font-size:22px}.metric-card small{font-size:14px;color:#8b94a7}.dashboard-grid{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(300px,.65fr);gap:18px}.panel{padding:26px}.section-heading,.list-heading{display:flex;align-items:center;justify-content:space-between;gap:20px}.section-heading h2,.list-heading h2,.security-card h2{font-size:21px;margin:4px 0 0}.section-heading a{color:var(--blue);font-weight:800;font-size:14px}.status-list{display:grid;gap:12px;margin-top:24px}.status-row{display:grid;grid-template-columns:minmax(110px,1fr) 3fr auto;gap:14px;align-items:center}.status-name{font-weight:750}.status-bar{height:10px;background:#edf0f5;border-radius:999px;overflow:hidden}.status-bar i{height:100%;display:block;background:linear-gradient(90deg,#2557d6,#5b86ed);border-radius:inherit}.status-count{font-weight:850}.sync-visual{display:flex;align-items:center;gap:18px;margin:28px 0}.sync-ring{width:62px;height:62px;border-radius:50%;background:#20c273;color:#fff;display:grid;place-items:center;font-weight:900;font-size:27px;box-shadow:0 0 0 9px #e8f9f1}.sync-visual strong{font-size:18px}.sync-visual p{margin:6px 0 0;color:var(--muted);line-height:1.5}.notice{display:flex;gap:12px;border-radius:14px;padding:16px;line-height:1.55}.notice span{width:25px;height:25px;border-radius:50%;display:grid;place-items:center;flex:0 0 auto;font-weight:900}.notice p{margin:0}.notice.info{background:#eef5ff;color:#315380}.notice.info span{background:#d6e6ff}.notice.warning{background:#fff7e8;color:#77551d;margin:22px 0}.notice.warning span{background:#ffe8b8}.toolbar{display:grid;grid-template-columns:minmax(250px,1fr) 190px auto;gap:12px;padding:16px;margin-bottom:26px}.search-field,.select-field{min-height:48px;border:1px solid var(--line);border-radius:12px;background:#fafbfc;display:flex;align-items:center;padding:0 14px;gap:10px}.search-field input,.select-field select{border:0;outline:0;background:transparent;width:100%;min-width:0;color:var(--text)}.select-field span{font-size:14px;color:var(--muted);font-weight:700}.list-heading{margin-bottom:14px}.count-badge,.state-badge{padding:7px 11px;border-radius:999px;font-weight:800;font-size:14px}.count-badge{background:#eaf0ff;color:var(--blue)}.state-badge.off{background:#fcecec;color:#b43c3c}.order-list{display:grid;gap:14px}.order-card{background:#fff;border:1px solid var(--line);border-radius:16px;padding:20px 22px;box-shadow:0 8px 24px rgba(21,34,61,.05)}.order-card-head{display:flex;justify-content:space-between;gap:16px;align-items:flex-start;padding-bottom:15px;border-bottom:1px solid var(--line)}.channel-label{display:flex;gap:10px;align-items:center;font-weight:850}.channel-icon{width:30px;height:30px;border-radius:9px;background:#20c273;color:#fff;display:grid;place-items:center;font-weight:900}.order-date{color:var(--muted);font-size:14px;margin-top:5px}.order-amount{font-size:20px;font-weight:900;white-space:nowrap}.product-row{display:grid;grid-template-columns:minmax(0,2fr) minmax(110px,.7fr) 90px 110px;gap:16px;align-items:center;padding-top:16px}.product-name{font-weight:850;line-height:1.45}.product-meta{display:block;color:var(--muted);font-size:14px;margin-top:4px}.status-chip{justify-self:start;padding:7px 10px;border-radius:999px;background:#e9f7f2;color:#168063;font-size:13px;font-weight:850}.pagination{display:flex;justify-content:center;align-items:center;gap:14px;margin-top:24px}.pagination button{min-height:44px;border:1px solid var(--line);border-radius:10px;background:#fff;padding:0 17px;font-weight:800;cursor:pointer}.pagination button:disabled{opacity:.4;cursor:not-allowed}.empty-state{text-align:center;padding:62px 20px;background:#fff;border:1px dashed #cbd2df;border-radius:18px}.empty-state span{font-size:38px;color:#94a0b5}.empty-state h3{margin:14px 0 6px}.empty-state p{margin:0;color:var(--muted)}.settings-layout{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(280px,.65fr);gap:18px}.setting-row{display:flex;justify-content:space-between;gap:20px;align-items:center;padding:20px 0;border-bottom:1px solid var(--line)}.setting-row label{font-weight:850}.setting-row p{margin:6px 0 0;color:var(--muted)}.disabled-row{opacity:.7}.switch input{position:absolute;opacity:0}.switch span{width:52px;height:29px;background:#cfd5df;border-radius:999px;display:block;position:relative}.switch span:after{content:"";position:absolute;width:23px;height:23px;left:3px;top:3px;background:#fff;border-radius:50%;box-shadow:0 2px 5px rgba(0,0,0,.15)}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin:22px 0}.form-field span,.form-field small{display:block}.form-field span{font-weight:800;margin-bottom:8px}.form-field select{width:100%;height:48px;border:1px solid var(--line);border-radius:11px;background:#fafbfc;padding:0 12px;color:var(--text)}.form-field small{font-size:14px;color:var(--muted);margin-top:7px;line-height:1.4}.check-list{list-style:none;padding:0;margin:22px 0 0;display:grid;gap:15px}.check-list li{display:flex;align-items:center;gap:11px;font-weight:700}.check-list span{width:25px;height:25px;background:#e6f8f2;color:#0e8c70;border-radius:50%;display:grid;place-items:center}.skeleton{height:18px;width:65%;border-radius:8px;background:linear-gradient(90deg,#edf0f5 25%,#f7f8fa 50%,#edf0f5 75%);background-size:200% 100%;animation:shimmer 1.3s infinite}.skeleton.wide{width:90%;height:24px;margin-bottom:18px}@keyframes shimmer{to{background-position:-200% 0}}.toast{position:fixed;right:24px;bottom:24px;max-width:360px;background:var(--navy);color:#fff;padding:14px 18px;border-radius:12px;box-shadow:var(--shadow);font-weight:700;opacity:0;pointer-events:none;transform:translateY(8px);transition:.2s;z-index:20}.toast.show{opacity:1;transform:translateY(0)}.bottom-nav{display:none}
@media(max-width:980px){.app-shell{grid-template-columns:82px minmax(0,1fr)}.sidebar{padding:24px 12px}.brand{padding:0 8px 28px}.brand>span:last-child,.nav-item:not(.active){font-size:0}.nav-item{justify-content:center;padding:0}.nav-item.active{font-size:0}.nav-item span{font-size:22px}.sidebar-status{justify-content:center}.sidebar-status div{display:none}.dashboard-grid,.settings-layout{grid-template-columns:1fr}.metric-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.metric-card:last-child{grid-column:1/-1}.toolbar{grid-template-columns:minmax(220px,1fr) 180px auto}}
@media(max-width:700px){body{padding-bottom:72px}.app-shell{display:block}.sidebar{display:none}.topbar{min-height:90px;padding:18px 18px}.topbar h1{font-size:24px}.topbar-badge{display:none}.page-content{padding:20px 16px 36px}.hero-panel{padding:28px 22px;align-items:flex-start;flex-direction:column}.hero-panel h2{font-size:29px}.hero-panel .primary-button{width:100%}.metric-grid{grid-template-columns:1fr;gap:12px}.metric-card:last-child{grid-column:auto}.metric-card{padding:19px}.dashboard-grid{grid-template-columns:1fr}.panel{padding:20px}.toolbar{grid-template-columns:1fr;padding:14px}.product-row{grid-template-columns:1fr auto}.product-row>*:nth-child(2){display:none}.product-row>*:nth-child(3){justify-self:start}.product-row>*:nth-child(4){text-align:right}.order-card{padding:18px}.order-card-head{align-items:center}.order-amount{font-size:18px}.settings-layout,.form-grid{grid-template-columns:1fr}.bottom-nav{position:fixed;display:grid;grid-template-columns:repeat(3,1fr);left:0;right:0;bottom:0;height:68px;padding-bottom:env(safe-area-inset-bottom);background:rgba(255,255,255,.96);border-top:1px solid var(--line);z-index:15}.bottom-nav a{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;color:#788297;font-size:13px;font-weight:800}.bottom-nav a span{font-size:20px}.bottom-nav a.active{color:var(--blue)}.toast{left:16px;right:16px;bottom:84px;max-width:none}}
@media(max-width:380px){.hero-panel h2{font-size:26px}.metric-icon{width:46px;height:46px}.product-row{gap:10px}.order-card-head{flex-direction:column;align-items:flex-start}.order-amount{align-self:flex-end}.page-content{padding-left:12px;padding-right:12px}}

/* Multi-business authentication and channel settings */
.topbar-actions{display:flex;align-items:center;gap:12px}.icon-logout{width:44px;height:44px;border:1px solid var(--line);border-radius:12px;background:#fff;color:var(--navy);font-size:21px;cursor:pointer}.sidebar-user{margin-top:auto;padding:18px 8px;border-top:1px solid rgba(255,255,255,.1)}.sidebar-user strong,.sidebar-user small{display:block}.sidebar-user small{color:#9eabc6;margin-top:3px}.text-button{border:0;background:transparent;color:#cbd4e7;padding:10px 0 0;font-weight:800;cursor:pointer}.sidebar-status{margin-top:0}.org-select{display:flex;align-items:center;gap:8px;font-weight:800}.org-select select{min-height:44px;border:1px solid var(--line);border-radius:12px;padding:0 36px 0 12px;background:#fff}.account-summary{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:18px}.account-summary h2{margin:5px 0 4px}.muted-copy{color:var(--muted);margin:0;line-height:1.55}.channel-section{margin-bottom:18px}.channel-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.channel-card{border:1px solid var(--line);border-radius:16px;padding:18px;min-width:0}.channel-card-head{display:flex;align-items:center;gap:12px;margin-bottom:16px}.channel-card-head strong,.channel-card-head small{display:block}.channel-card-head small{font-size:14px;color:var(--muted);margin-top:3px}.channel-logo{width:42px;height:42px;border-radius:12px;display:grid;place-items:center;font-weight:900;color:#fff;background:var(--navy)}.channel-logo.naver{background:#03c75a}.channel-logo.cafe24{background:#5266d8}.channel-logo.coupang{background:#d94b42}.channel-card .state-badge{display:inline-flex}.channel-card p{color:var(--muted);line-height:1.5;min-height:48px}.state-badge.connected{background:#e8f8f1;color:#14795c}.state-badge.disconnected{background:#eef1f6;color:#657087}.state-badge.error{background:#fff0ee;color:#bd473d}.secondary-button{min-height:42px;padding:0 14px;border:1px solid var(--line);border-radius:10px;background:#fff;color:var(--muted);font-weight:800}
.auth-body{min-height:100vh;background:linear-gradient(135deg,#0e1935 0%,#192e58 48%,#edf1f8 48%);padding:clamp(20px,5vw,70px)}.auth-shell{width:min(1120px,100%);min-height:680px;margin:0 auto;display:grid;grid-template-columns:1fr 1fr;align-items:center;gap:clamp(30px,7vw,90px)}.auth-intro{color:#fff}.auth-intro .eyebrow{color:#96b3f7;margin-top:24px}.auth-intro h1{font-size:clamp(34px,4vw,54px);line-height:1.14;margin:14px 0 22px}.auth-intro>p{color:#c7d2e8;line-height:1.75;max-width:520px}.auth-intro ul{padding:0;list-style:none;display:grid;gap:12px;margin-top:28px}.auth-intro li:before{content:'✓';color:#53d6ae;font-weight:900;margin-right:10px}.auth-logo{width:58px;height:58px;border-radius:17px;display:grid;place-items:center;background:#fff;color:var(--navy);font-size:31px;font-weight:900;box-shadow:var(--shadow)}.auth-card{background:#fff;border-radius:24px;padding:clamp(26px,4vw,46px);box-shadow:0 28px 70px rgba(8,18,44,.22)}.auth-card h1,.auth-card h2{margin:6px 0 8px}.auth-card>div>p:last-child,.auth-card>p{color:var(--muted);line-height:1.55}.auth-form{display:grid;gap:17px;margin-top:28px}.auth-form label>span{display:block;font-weight:800;margin-bottom:8px}.auth-form input{width:100%;min-height:50px;border:1px solid #d9dfeb;border-radius:12px;padding:0 14px;background:#fbfcfe;color:var(--text)}.auth-form input:focus{outline:3px solid rgba(37,87,214,.14);border-color:var(--blue)}.auth-form small{display:block;color:var(--muted);margin-top:7px;line-height:1.5}.full-button{width:100%;min-height:52px;margin-top:5px}.auth-error{min-height:24px!important;color:var(--danger)!important;font-weight:700;margin:0!important}.login-shell{min-height:calc(100vh - clamp(40px,10vw,140px));display:grid;place-items:center}.login-card{width:min(480px,100%)}.login-card .auth-logo{background:var(--navy);color:#fff;margin-bottom:24px}.auth-links{display:flex;justify-content:center;gap:10px;flex-wrap:wrap;margin:18px 0 0!important;color:var(--blue)!important;font-weight:800;font-size:14px}.auth-links a:hover{text-decoration:underline}
@media(max-width:980px){.channel-grid{grid-template-columns:1fr}.sidebar-user{padding-left:0;padding-right:0;text-align:center}.sidebar-user strong,.sidebar-user small{display:none}.text-button{font-size:0}.text-button:after{content:'↪';font-size:21px}.auth-shell{grid-template-columns:1fr;gap:30px}.auth-intro{max-width:660px}.auth-intro h1 br{display:none}.auth-body{background:linear-gradient(180deg,#0e1935 0,#192e58 42%,#edf1f8 42%)}}
@media(max-width:700px){.topbar-actions .icon-logout{display:inline-grid;place-items:center}.account-summary{align-items:flex-start;flex-direction:column}.channel-card p{min-height:0}.auth-body{padding:18px;background:linear-gradient(180deg,#0e1935 0,#192e58 34%,#edf1f8 34%)}.auth-shell{min-height:auto}.auth-intro{padding:20px 4px 0}.auth-intro h1{font-size:31px}.auth-intro>p,.auth-intro ul{display:none}.auth-logo{width:50px;height:50px;font-size:26px}.auth-card{border-radius:20px;padding:24px}.login-shell{min-height:calc(100vh - 36px)}.topbar-actions{margin-left:auto}}
.business-profile-section{margin-bottom:18px}.business-form{margin-top:22px}.business-form-grid{grid-template-columns:repeat(3,minmax(0,1fr));margin-bottom:20px}.form-field input{width:100%;min-height:48px;border:1px solid var(--line);border-radius:11px;padding:0 13px;background:#fff;color:var(--text)}.form-field input:focus{outline:3px solid rgba(37,87,214,.12);border-color:var(--blue)}.address-wide{grid-column:span 2}.notice.info{background:#eef5ff;color:#37547c}.auth-inline-fields{display:grid;grid-template-columns:1fr 1fr;gap:14px}.form-divider{width:100%;border:0;border-top:1px solid var(--line);margin:4px 0}.business-form .primary-button{min-width:200px}
@media(max-width:1100px){.business-form-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:700px){.business-form-grid{grid-template-columns:1fr}.address-wide{grid-column:auto}.auth-inline-fields{grid-template-columns:1fr}.business-form .primary-button{width:100%}}
.address-search-row{display:grid;grid-template-columns:minmax(120px,1fr) auto;gap:10px}.address-search-button{min-height:48px;padding:0 16px;border:0;border-radius:11px;background:var(--blue);color:#fff;font-weight:850;cursor:pointer;white-space:nowrap}.address-search-button:hover{background:#1747bd}.form-field input[readonly]{background:#f3f6fa;color:#46526a;cursor:default}.modal-open{overflow:hidden}.postcode-modal{position:fixed;inset:0;z-index:100;display:grid;place-items:center;padding:20px}.postcode-modal[hidden]{display:none}.postcode-backdrop{position:absolute;inset:0;background:rgba(8,17,38,.58)}.postcode-dialog{position:relative;width:min(560px,100%);background:#fff;border-radius:20px;box-shadow:0 28px 80px rgba(6,15,38,.35);overflow:hidden}.postcode-header{display:flex;justify-content:space-between;align-items:center;gap:18px;padding:20px 22px 16px;border-bottom:1px solid var(--line)}.postcode-header h2{margin:4px 0 0;font-size:22px}.postcode-close-button{width:44px;height:44px;border:0;border-radius:12px;background:#eef1f6;color:var(--text);font-size:30px;line-height:1;cursor:pointer}.postcode-container{width:100%;height:470px;background:#fff;overflow:hidden}.postcode-container iframe{width:100%!important;height:100%!important}.postcode-help{margin:0;padding:13px 20px 16px;border-top:1px solid var(--line);color:var(--muted);font-size:14px;line-height:1.5}.postcode-dialog:focus{outline:none}
@media(max-width:700px){.postcode-modal{padding:0;place-items:stretch}.postcode-dialog{width:100%;height:100dvh;border-radius:0;display:grid;grid-template-rows:auto minmax(0,1fr) auto}.postcode-container{height:100%}.postcode-header{padding:16px 17px 13px}.postcode-header h2{font-size:20px}.postcode-help{font-size:14px}.address-search-row{grid-template-columns:1fr}.address-search-button{width:100%}}
.channel-account-dialog{width:min(760px,100%)}.channel-account-form [hidden]{display:none!important}.channel-account-form{padding:22px;overflow:auto}.channel-account-form .form-grid{grid-template-columns:1fr 1fr}.channel-account-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:18px}.form-error{min-height:22px;margin:12px 0 0;color:#b42318;font-weight:750}.channel-card[data-channel-id] .channel-card-head small+small{margin-top:3px;color:#4d66a1}.channel-card-actions{display:flex;align-items:center;flex-wrap:wrap;gap:8px}.channel-card-actions .secondary-button{flex:0 0 auto}.channel-guide-button{border-color:#b9c8eb;color:#234fae;background:#f5f8ff}.channel-guide-button:hover{border-color:var(--blue);background:#edf3ff}.channel-guide-modal[hidden]{display:none}.channel-guide-modal{position:fixed;inset:0;z-index:1300;display:grid;place-items:center;padding:24px}.channel-guide-backdrop{position:absolute;inset:0;width:100%;height:100%;border:0;background:rgba(9,20,43,.62);cursor:default}.channel-guide-dialog{position:relative;z-index:1;width:min(880px,calc(100vw - 48px));max-height:calc(100dvh - 48px);display:grid;grid-template-rows:auto auto minmax(0,1fr) auto;overflow:hidden;border-radius:20px;background:#fff;box-shadow:0 30px 80px rgba(5,15,38,.34)}.channel-guide-header{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:21px 24px 18px;border-bottom:1px solid var(--line)}.channel-guide-header .eyebrow{margin:0 0 4px}.channel-guide-header h2{margin:0;font-size:24px}.channel-guide-close-button{width:44px;height:44px;flex:0 0 auto;border:0;border-radius:12px;background:#eef1f6;color:var(--text);font-size:30px;line-height:1;cursor:pointer}.channel-guide-tabs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;padding:14px 24px;border-bottom:1px solid var(--line);background:#f8f9fc}.channel-guide-tabs>button{min-height:54px;display:flex;align-items:center;justify-content:center;gap:9px;border:1px solid var(--line);border-radius:12px;background:#fff;color:#566078;font-weight:850;cursor:pointer}.channel-guide-tabs>button:hover{border-color:#aab9da}.channel-guide-tabs>button.active{border-color:var(--blue);color:var(--blue);background:#eef3ff;box-shadow:inset 0 0 0 1px var(--blue)}.channel-guide-tabs .channel-logo{width:31px;height:31px;border-radius:9px;font-size:13px}.channel-guide-content{min-height:0;overflow-y:auto;padding:22px 24px 28px;scrollbar-gutter:stable}.channel-guide-content:focus{outline:none}.channel-guide-summary{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:start;gap:10px 16px;padding:18px;border-radius:15px;background:linear-gradient(120deg,#f4f7ff,#eef8f6)}.channel-guide-provider{display:block;margin-bottom:6px;color:#49628f;font-size:12px;font-weight:900;letter-spacing:.06em}.channel-guide-summary h3{margin:0;font-size:18px;line-height:1.55}.channel-guide-summary>p{grid-column:1/-1;margin:0;color:#55627a;font-size:14px;line-height:1.6}.channel-guide-section{margin-top:24px}.channel-guide-section>h3{margin:0 0 12px;font-size:17px}.channel-guide-requirements{display:flex;flex-wrap:wrap;gap:8px}.channel-guide-requirements span{padding:8px 11px;border:1px solid #d8e0ef;border-radius:999px;background:#fff;color:#42506a;font-size:13px;font-weight:750}.channel-guide-steps{display:grid;gap:0;margin:0;padding:0;list-style:none}.channel-guide-steps li{display:grid;grid-template-columns:34px minmax(0,1fr);gap:12px;padding:13px 0;border-bottom:1px solid #edf0f5}.channel-guide-steps li>span{width:32px;height:32px;display:grid;place-items:center;border-radius:10px;background:#eaf0ff;color:var(--blue);font-size:13px;font-weight:900}.channel-guide-steps strong{display:block;margin-top:2px;font-size:15px}.channel-guide-steps p{margin:5px 0 0;color:var(--muted);font-size:14px;line-height:1.65}.channel-guide-section.caution{padding:16px 18px;border-radius:14px;background:#fff7e9;color:#73511c}.channel-guide-section.caution h3{color:#855809}.channel-guide-section.caution ul{display:grid;gap:7px;margin:0;padding-left:20px;font-size:14px;line-height:1.55}.channel-guide-official{min-height:46px;display:flex;align-items:center;justify-content:space-between;gap:15px;margin-top:18px;padding:0 15px;border:1px solid #b8c9ee;border-radius:11px;color:#214eac;background:#f7f9ff;font-weight:850}.channel-guide-official:hover{border-color:var(--blue);background:#eef3ff}.channel-guide-footer{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:14px 24px;border-top:1px solid var(--line);background:#fff}.channel-guide-footer p{margin:0;color:var(--muted);font-size:12px}.channel-guide-footer .primary-button{min-width:96px}.state-badge.off{background:#eef1f6;color:#657087}
@media(max-width:700px){.channel-account-form{padding:16px}.channel-account-form .form-grid{grid-template-columns:1fr}.channel-account-actions{display:grid;grid-template-columns:1fr 1fr}.channel-account-actions button{width:100%}.channel-card-actions{display:grid;grid-template-columns:1fr 1fr}.channel-card-actions .secondary-button{width:100%;padding:0 10px}.channel-guide-modal{padding:0;place-items:stretch}.channel-guide-dialog{width:100vw;max-height:none;height:100dvh;border-radius:0}.channel-guide-header{padding:15px 16px 13px}.channel-guide-header h2{font-size:20px}.channel-guide-tabs{gap:6px;padding:10px 12px}.channel-guide-tabs>button{min-height:48px;gap:6px;font-size:13px}.channel-guide-tabs .channel-logo{width:27px;height:27px}.channel-guide-content{padding:16px 14px 22px;scrollbar-gutter:auto}.channel-guide-summary{grid-template-columns:1fr;padding:15px}.channel-guide-summary .state-badge{width:max-content}.channel-guide-summary>p{grid-column:auto}.channel-guide-summary h3{font-size:16px}.channel-guide-section{margin-top:20px}.channel-guide-steps li{grid-template-columns:30px minmax(0,1fr);gap:10px}.channel-guide-steps li>span{width:29px;height:29px}.channel-guide-footer{padding:11px 14px}.channel-guide-footer p{display:none}.channel-guide-footer .primary-button{width:100%}}
.team-hero{display:flex;align-items:center;justify-content:space-between;gap:24px;margin-bottom:18px}.team-hero h2{margin:5px 0 8px;font-size:24px}.team-hero>div>p:last-child{margin:0;color:var(--muted)}.team-count{min-width:120px;text-align:center;padding:16px 20px;border-radius:16px;background:#eef3ff;color:var(--blue)}.team-count strong,.team-count span{display:block}.team-count strong{font-size:34px}.team-count span{font-weight:800;font-size:14px}.team-layout{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(300px,.75fr);gap:18px;margin-bottom:18px}.team-invite-form{display:grid;grid-template-columns:minmax(220px,1.5fr) minmax(160px,.7fr) auto;gap:14px;align-items:end;margin:24px 0}.team-invite-form .primary-button{min-height:48px;background:var(--navy);color:#fff}.invite-link-result{padding:18px;border-radius:14px;background:#eef8f5;border:1px solid #ccebe2;margin-bottom:18px}.invite-link-result p{margin:6px 0 13px;color:#4f6f67}.copy-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px}.copy-row input{min-width:0;height:46px;border:1px solid #b9dcd2;border-radius:10px;background:#fff;padding:0 12px}.team-role-help{margin-top:18px}.pending-list,.member-list{display:grid;gap:12px;margin-top:20px}.pending-row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px;border:1px solid var(--line);border-radius:13px}.pending-row strong,.pending-row small,.member-identity strong,.member-identity small{display:block}.pending-row small,.member-identity small{color:var(--muted);margin-top:5px;font-size:13px}.invite-revoke-button,.member-remove-button{border:0;border-radius:9px;background:#fcecec;color:#b43c3c;min-height:38px;padding:0 12px;font-weight:800;cursor:pointer;white-space:nowrap;flex:0 0 auto}.pending-row>div{min-width:0}.pending-row strong{overflow-wrap:anywhere;word-break:break-all}.pending-empty{padding:28px 12px;text-align:center;color:var(--muted);background:#f7f8fb;border-radius:13px}.member-row{display:grid;grid-template-columns:auto minmax(160px,1fr) auto minmax(190px,auto);align-items:center;gap:16px;padding:16px;border:1px solid var(--line);border-radius:14px}.member-avatar{width:44px;height:44px;display:grid;place-items:center;border-radius:13px;background:var(--navy);color:#fff;font-size:19px;font-weight:900}.role-chip{padding:7px 10px;border-radius:999px;background:#eef1f7;color:#4e5b73;font-size:13px;font-weight:850;white-space:nowrap}.role-chip.owner{background:#fff1d9;color:#8a5b0c}.role-chip.admin{background:#eaf0ff;color:var(--blue)}.member-actions{display:flex;align-items:center;justify-content:flex-end;gap:8px}.member-role-select{height:40px;border:1px solid var(--line);border-radius:9px;background:#fff;padding:0 9px}.muted-copy{color:var(--muted);font-size:14px}.invite-summary{display:grid;gap:10px;margin:22px 0}.invite-summary div{display:grid;grid-template-columns:auto minmax(0,1fr);align-items:center;gap:18px;padding:13px;background:#f6f8fb;border-radius:11px}.invite-summary dt{color:var(--muted);white-space:nowrap}.invite-summary dd{margin:0;font-weight:850;text-align:right;overflow-wrap:anywhere}.invite-card .primary-button{background:var(--navy);color:#fff}.invite-invalid{text-align:center;padding:18px 0}.invite-invalid>span{width:54px;height:54px;margin:0 auto;display:grid;place-items:center;border-radius:50%;background:#fff0e9;color:#d75b32;font-size:28px;font-weight:900}.invite-invalid h2{margin:18px 0 8px}.invite-invalid p{margin-bottom:22px}.invite-card .notice{display:block}.bottom-nav.four-items{grid-template-columns:repeat(4,1fr)}
@media(max-width:1100px){.team-layout{grid-template-columns:1fr}.team-invite-form{grid-template-columns:1fr 1fr}.team-invite-form .primary-button{grid-column:1/-1}.member-row{grid-template-columns:auto minmax(150px,1fr) auto}.member-actions{grid-column:2/-1;justify-content:flex-start}}
@media(max-width:700px){.team-hero{align-items:flex-start}.team-count{min-width:88px;padding:12px}.team-invite-form{grid-template-columns:1fr}.team-invite-form .primary-button{grid-column:auto;width:100%}.copy-row{grid-template-columns:1fr}.copy-row .secondary-button{width:100%}.member-row{grid-template-columns:auto minmax(0,1fr)}.role-chip{grid-column:2}.member-actions{grid-column:1/-1}.member-role-select{flex:1;min-width:0}.pending-row{align-items:flex-start}.members-panel{padding-left:14px;padding-right:14px}}
.product-sync-panel{margin-bottom:16px;padding:0;overflow:hidden}.product-sync-header{display:flex;align-items:flex-start;justify-content:space-between;gap:22px;padding:20px 22px;border-bottom:1px solid var(--line)}.product-sync-header h2{margin:4px 0 7px;font-size:21px}.product-sync-header p:last-child{margin:0;color:var(--muted);font-size:13px}.product-sync-button{min-width:190px;white-space:nowrap}.product-sync-current{padding:18px 22px}.product-sync-empty{display:flex;flex-direction:column;gap:5px;padding:14px;border-radius:10px;background:#f7f8fb}.product-sync-empty span{color:var(--muted);font-size:13px}.product-sync-state-row{display:flex;align-items:center;justify-content:space-between;gap:14px}.product-sync-state-row>div{display:flex;align-items:center;gap:9px;min-width:0}.product-sync-state-row small{color:var(--muted)}.sync-run-state{display:inline-flex;align-items:center;justify-content:center;min-width:58px;min-height:26px;padding:3px 8px;border-radius:999px;font-size:12px;font-weight:900;white-space:nowrap}.sync-run-state.queued{background:#f0f2f6;color:#596273}.sync-run-state.running{background:#eaf1ff;color:#245bc3}.sync-run-state.succeeded{background:#e7f7ef;color:#16734b}.sync-run-state.failed{background:#fdeaea;color:#b83939}.sync-run-percent{color:var(--blue);font-size:16px;font-weight:900}.sync-progress{height:8px;margin:14px 0;background:#e8edf5;border-radius:99px;overflow:hidden}.sync-progress i{display:block;height:100%;background:linear-gradient(90deg,#315dd5,#4a8bff);border-radius:99px;transition:width .25s ease}.product-sync-counts{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:8px}.product-sync-counts>span{min-width:0;padding:10px 8px;border-radius:9px;background:#f7f8fb;text-align:center}.product-sync-counts small,.product-sync-counts b{display:block}.product-sync-counts small{color:var(--muted);font-size:11px}.product-sync-counts b{margin-top:4px;overflow:hidden;text-overflow:ellipsis;font-size:14px}.product-sync-error{margin:12px 0 0;padding:10px;border-radius:8px;background:#fff1f1;color:#a93636;font-size:13px}.product-sync-history-head{display:flex;align-items:center;justify-content:space-between;padding:13px 22px;border-top:1px solid var(--line);background:#fafbfc}.text-button{border:0;background:transparent;color:var(--blue);font-weight:850;cursor:pointer}.product-sync-history{padding:0 22px 16px}.sync-history-row{display:grid;grid-template-columns:auto minmax(150px,1fr) auto auto;align-items:center;gap:12px;padding:12px 0;border-bottom:1px solid #edf0f5;font-size:13px}.sync-history-row:last-child{border-bottom:0}.sync-history-row strong,.sync-history-row small{display:block}.sync-history-row small{margin-top:3px;color:var(--muted)}
.product-summary{display:grid;grid-template-columns:repeat(5,minmax(120px,1fr));gap:12px;margin-bottom:16px}.product-metric{min-height:92px;padding:15px 17px;text-align:left;border:1px solid var(--line);border-radius:14px;background:#fff;cursor:pointer;box-shadow:0 7px 22px rgba(16,32,64,.04)}.product-metric span,.product-metric strong{display:block}.product-metric span{color:var(--muted);font-size:13px;font-weight:800}.product-metric strong{margin-top:7px;color:var(--navy);font-size:28px}.product-metric.active{border-color:#aebfe9;background:#f3f6ff}.product-metric.warning strong{color:#b6760f}.product-metric.danger strong{color:#c64242}.product-filter-panel{margin-bottom:16px}.filter-title,.product-list-toolbar,.product-list-footer{display:flex;align-items:center;justify-content:space-between;gap:16px}.filter-title h2{margin:4px 0 0;font-size:19px}.product-reset-button{min-height:38px;padding:0 11px;border:1px solid var(--line);border-radius:8px;background:#fff;color:var(--blue);font-size:13px;font-weight:850;white-space:nowrap;cursor:pointer}.product-filter-grid{display:grid;grid-template-columns:minmax(250px,1.5fr) repeat(3,minmax(140px,.7fr)) auto;gap:12px;align-items:end;margin-top:18px}.search-input-wrap{position:relative}.search-input-wrap>span{position:absolute;left:13px;top:50%;transform:translateY(-50%);font-size:20px;color:var(--muted)}.search-input-wrap input{padding-left:40px}.product-search-button{min-height:48px;padding:0 24px;background:var(--navy);color:#fff}.product-list-panel{padding:0;overflow:hidden}.product-list-toolbar{padding:16px 18px;border-bottom:1px solid var(--line)}.product-list-title{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.product-list-title>strong{font-size:18px}.product-list-title>span{color:var(--muted);font-size:13px}.product-list-title #product-selected-label{padding:5px 9px;border-radius:999px;background:#edf2ff;color:var(--blue);font-weight:800}.bulk-actions{display:flex;gap:8px;flex-wrap:wrap}.bulk-actions button{min-height:40px}.product-table-wrap{width:100%;overflow:auto}.product-table{width:100%;min-width:1030px;border-collapse:collapse;font-size:13px}.product-table th{height:44px;padding:0 12px;background:#f5f7fa;border-bottom:1px solid var(--line);color:#566177;text-align:left;white-space:nowrap}.product-table td{padding:11px 12px;border-bottom:1px solid #edf0f5;vertical-align:middle}.product-table tbody tr:hover{background:#f8faff}.product-table td>strong,.product-table td>small{display:block}.product-table td>small{margin-top:4px;color:var(--muted)}.check-column{width:42px;text-align:center!important}.number-column{text-align:right!important}.product-main-cell{display:flex;align-items:center;gap:11px;width:100%;min-width:250px;padding:0;border:0;background:none;text-align:left;cursor:pointer}.product-main-cell>span:last-child{min-width:0}.product-main-cell strong,.product-main-cell small{display:block}.product-main-cell strong{max-width:320px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--text)}.product-main-cell small{margin-top:5px;color:var(--muted)}.product-thumb{width:46px;height:46px;flex:0 0 46px;display:grid;place-items:center;border-radius:9px;background:#e9eef9;color:var(--blue);font-weight:900;overflow:hidden}.product-thumb img{width:100%;height:100%;object-fit:cover}.product-thumb.large{width:74px;height:74px;flex-basis:74px;font-size:24px}.product-state,.mapping-state,.product-channel{display:inline-flex;align-items:center;justify-content:center;min-height:27px;padding:4px 8px;border-radius:7px;font-size:12px;font-weight:850;white-space:nowrap}.product-state.active{background:#e7f7ef;color:#16734b}.product-state.sold_out{background:#fff0e8;color:#b9542f}.product-state.stopped{background:#eff1f5;color:#596273}.product-state.draft{background:#fff5d9;color:#86630a}.mapping-state.matched{background:#eaf1ff;color:#245bc3}.mapping-state.unmatched{background:#fff4dc;color:#9b6906}.mapping-state.error{background:#fdeaea;color:#b83939}.mapping-state.none{background:#f0f2f6;color:#677083}.product-channels{display:flex;gap:5px;flex-wrap:wrap}.product-channel.naver{background:#e4f8ee;color:#087b45}.product-channel.cafe24{background:#eeeafe;color:#6444b5}.product-channel.coupang{background:#ffedeb;color:#bd4032}.product-mobile-list{display:none}.product-empty{margin:34px}.product-list-footer{padding:14px 18px;background:#fafbfc;border-top:1px solid var(--line)}.page-size-control,.sort-control{display:flex;align-items:center;gap:8px;color:var(--muted);font-size:13px}.page-size-control select,.sort-control select{height:38px;border:1px solid var(--line);border-radius:8px;background:#fff;padding:0 9px}.product-pagination{margin:0}.product-detail-drawer{position:fixed;inset:0;z-index:120}.product-detail-drawer[hidden]{display:none}.product-drawer-backdrop{position:absolute;inset:0;width:100%;height:100%;border:0;background:rgba(8,17,38,.52);cursor:pointer}.product-drawer-panel{position:absolute;right:0;top:0;width:min(620px,100%);height:100dvh;background:#fff;box-shadow:-20px 0 55px rgba(7,17,39,.22);overflow:auto}.product-drawer-panel>header{position:sticky;top:0;z-index:2;display:flex;align-items:center;justify-content:space-between;gap:16px;padding:20px 22px;border-bottom:1px solid var(--line);background:#fff}.product-drawer-panel h2{margin:4px 0 0;font-size:22px}.product-drawer-panel header button{width:44px;height:44px;border:0;border-radius:10px;background:#eef1f6;font-size:29px;cursor:pointer}.product-detail-content{padding:22px}.detail-overview{display:flex;gap:18px;padding-bottom:20px;border-bottom:1px solid var(--line)}.detail-overview dl{flex:1;display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:0}.detail-overview dl div{padding:10px;background:#f7f8fb;border-radius:9px}.detail-overview dt{color:var(--muted);font-size:12px}.detail-overview dd{margin:5px 0 0;font-weight:800}.detail-section{padding:22px 0;border-bottom:1px solid var(--line)}.detail-section h3{display:flex;align-items:center;gap:8px;margin:0 0 14px}.detail-section h3 span{padding:3px 8px;border-radius:999px;background:#eef2f9;color:var(--blue);font-size:12px}.detail-table-wrap{overflow:auto}.detail-table-wrap table{width:100%;min-width:470px;border-collapse:collapse;font-size:13px}.detail-table-wrap th,.detail-table-wrap td{padding:10px;border-bottom:1px solid var(--line);text-align:left}.detail-table-wrap th{background:#f6f8fb;color:var(--muted)}.detail-channel-row{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:11px;padding:12px;border:1px solid var(--line);border-radius:10px;margin-bottom:8px}.detail-channel-row strong,.detail-channel-row small{display:block}.detail-channel-row small{margin-top:4px;color:var(--muted);overflow-wrap:anywhere}.detail-empty{padding:20px;border-radius:10px;background:#f7f8fb;color:var(--muted);text-align:center}.drawer-open{overflow:hidden}.bottom-nav.five-items{grid-template-columns:repeat(5,1fr)}
@media(max-width:1200px){.product-summary{grid-template-columns:repeat(3,1fr)}.product-filter-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.product-keyword{grid-column:1/-1}.product-search-button{grid-column:1/-1}}
@media(max-width:760px){.product-sync-header{flex-direction:column;padding:17px}.product-sync-button{width:100%;min-width:0}.product-sync-current{padding:15px 17px}.product-sync-state-row>div{align-items:flex-start;flex-wrap:wrap}.product-sync-state-row small{width:100%;margin-left:67px}.product-sync-counts{grid-template-columns:repeat(3,minmax(0,1fr))}.product-sync-history-head{padding-left:17px;padding-right:17px}.product-sync-history{padding-left:17px;padding-right:17px}.sync-history-row{grid-template-columns:auto minmax(0,1fr)}.sync-history-row>span:nth-last-child(-n+2){grid-column:2}.product-summary{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.product-metric{min-height:78px;padding:12px}.product-metric strong{font-size:24px}.product-filter-panel{padding:16px}.product-filter-grid{grid-template-columns:1fr}.product-keyword,.product-search-button{grid-column:auto}.product-search-button{width:100%}.product-list-toolbar{align-items:flex-start;flex-direction:column}.bulk-actions{width:100%}.bulk-actions button{flex:1;min-width:120px}.product-table-wrap{display:none}.product-mobile-list{display:grid;grid-template-columns:minmax(0,1fr);gap:12px;padding:14px;background:#f4f6fa}.product-mobile-card{position:relative;min-width:0;width:100%;box-sizing:border-box;overflow:hidden;padding:14px;border:1px solid var(--line);border-radius:13px;background:#fff}.mobile-product-check{position:absolute;right:13px;top:13px;display:flex;align-items:center;gap:5px;color:var(--muted);font-size:12px}.mobile-product-main{display:flex;align-items:center;gap:11px;min-width:0;max-width:100%;width:calc(100% - 54px);padding:0;border:0;background:none;text-align:left}.mobile-product-main>span:last-child{min-width:0}.mobile-product-main strong,.mobile-product-main small{display:block}.mobile-product-main strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--text)}.mobile-product-main small{margin-top:5px;color:var(--muted);max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mobile-product-facts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;margin:14px 0}.mobile-product-facts>span{min-width:0;padding:9px 6px;border-radius:9px;background:#f7f8fb;text-align:center}.mobile-product-facts small,.mobile-product-facts b{display:block}.mobile-product-facts small{margin-bottom:6px;color:var(--muted);font-size:11px}.mobile-product-facts b{font-size:12px;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.product-list-footer{align-items:stretch;flex-wrap:wrap}.page-size-control,.sort-control{flex:1}.page-size-control select,.sort-control select{min-width:0;flex:1}.product-pagination{width:100%;justify-content:center}.product-drawer-panel{width:100%}.detail-overview{align-items:flex-start}.detail-overview dl{grid-template-columns:1fr}.detail-table-wrap table{min-width:0;table-layout:fixed;font-size:12px}.detail-table-wrap th,.detail-table-wrap td{padding:8px 5px;overflow-wrap:anywhere}.detail-channel-row{grid-template-columns:auto minmax(0,1fr)}.detail-channel-row .mapping-state{grid-column:2}.bottom-nav.five-items a{font-size:12px}.bottom-nav.five-items a span{font-size:19px}}
@media(max-width:380px){.product-summary{grid-template-columns:1fr 1fr}.mobile-product-facts{grid-template-columns:1fr}.detail-overview{flex-direction:column}.product-detail-content{padding:16px}}

/* Order fulfillment workflow */
body[data-page="orders"] .erp-workspace>.page-content{min-width:0;width:100%;max-width:none;margin:0}
.order-bulk-actions button[hidden]{display:none!important}
.order-workflow-hero{display:flex;align-items:center;justify-content:space-between;gap:24px;margin-bottom:16px;padding:22px 24px;background:linear-gradient(120deg,#fff 0%,#f4f7ff 100%)}.order-workflow-hero h2{margin:5px 0 7px;font-size:22px}.order-workflow-hero p:last-child{margin:0;color:var(--muted)}.order-hero-actions{display:flex;align-items:center;gap:10px;flex:0 0 auto}.order-hero-actions button{min-width:170px;white-space:nowrap}.order-stage-tabs{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr) auto minmax(0,1fr);align-items:center;gap:10px;margin-bottom:16px}.order-stage-tab{min-width:0;min-height:88px;display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:12px;padding:14px 16px;border:1px solid var(--line);border-radius:15px;background:#fff;color:var(--text);text-align:left;cursor:pointer;box-shadow:0 7px 22px rgba(16,32,64,.04)}.order-stage-tab:hover{border-color:#b9c8e9}.order-stage-tab.active{border-color:#6c8fe1;background:#f1f5ff;box-shadow:inset 0 0 0 1px #9db3e8,0 9px 25px rgba(37,87,214,.09)}.stage-number{width:34px;height:34px;display:grid;place-items:center;border-radius:10px;background:#edf1f7;color:#68758d;font-weight:900}.order-stage-tab.active .stage-number{background:var(--blue);color:#fff}.order-stage-tab strong,.order-stage-tab small{display:block}.order-stage-tab strong{font-size:17px}.order-stage-tab small{margin-top:4px;color:var(--muted);font-size:13px}.order-stage-tab b{min-width:38px;padding:7px 9px;border-radius:999px;background:#eef1f6;color:var(--navy);text-align:center}.order-stage-tab.active b{background:#dce6ff;color:var(--blue)}.stage-arrow{color:#9ba7bb;font-size:22px;font-weight:900}.order-filter-panel{margin-bottom:16px}.order-filter-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:20px}.order-filter-heading h2{margin:4px 0 0;font-size:20px}.order-filter-heading>p{margin:0;color:var(--muted);text-align:right}.order-filter-row{display:grid;grid-template-columns:minmax(260px,1fr) 130px auto;align-items:end;gap:12px;margin-top:18px}.order-filter-row select,.tracking-editor select{width:100%;min-height:48px;border:1px solid var(--line);border-radius:11px;padding:0 36px 0 12px;background:#fff}.order-filter-row .secondary-button{min-height:48px}.order-work-panel{padding:0;overflow:hidden}.order-work-toolbar{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:16px 18px;border-bottom:1px solid var(--line)}.order-list-title{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.order-list-title>strong{font-size:18px}.order-list-title>span{font-size:13px;color:var(--muted)}#order-selected-label{padding:5px 9px;border-radius:999px;background:#edf2ff;color:var(--blue);font-weight:850}.order-bulk-actions{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end}.order-bulk-actions button{min-height:42px}.order-bulk-actions .danger-confirm{background:#c83f3f}.order-bulk-actions button:disabled,.tracking-save-button:disabled{opacity:.45;cursor:not-allowed}.order-permission-notice{margin:14px 18px 0;padding:12px 14px;border-radius:10px;background:#fff4dd;color:#7d5b1e;font-weight:750}.order-table-wrap{overflow:auto}.order-table{width:100%;min-width:1220px;border-collapse:collapse}.order-table th{padding:12px 13px;background:#f6f8fb;border-bottom:1px solid var(--line);color:#59657b;font-size:13px;text-align:left;white-space:nowrap}.order-table td{padding:13px;border-bottom:1px solid #edf0f5;vertical-align:top}.order-table tbody tr:hover{background:#fbfcff}.order-table th:nth-child(2){width:175px}.order-table th:nth-child(3){width:255px}.order-table th:nth-child(4){width:340px}.order-table th:nth-child(5){width:250px}.order-table th:nth-child(6){width:140px}.order-table input[type=checkbox],.order-mobile-card input[type=checkbox]{width:18px;height:18px;accent-color:var(--blue)}.channel-order{display:flex;align-items:flex-start;gap:9px;min-width:0}.channel-order .channel-icon{flex:0 0 auto}.channel-order strong,.channel-order small,.channel-order time{display:block}.channel-order small{max-width:145px;margin-top:4px;overflow:hidden;text-overflow:ellipsis;color:#536078;font-size:13px}.channel-order time{margin-top:6px;color:var(--muted);font-size:12px}.recipient-cell strong,.recipient-cell span,.recipient-cell small{display:block}.recipient-cell span{margin-top:4px;font-weight:700}.recipient-cell small{max-width:240px;margin-top:5px;color:var(--muted);line-height:1.45}.order-products{display:grid;gap:8px}.order-product-line{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;min-width:0}.order-product-line>div{min-width:0}.order-product-line strong,.order-product-line small{display:block}.order-product-line strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.order-product-line small{margin-top:4px;color:var(--muted);font-size:13px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.order-product-line b{flex:0 0 auto;white-space:nowrap}.tracking-editor{display:grid;grid-template-columns:minmax(100px,.9fr) minmax(110px,1fr) auto;gap:6px}.tracking-editor select,.tracking-editor input{min-width:0;height:38px;min-height:38px;border:1px solid var(--line);border-radius:8px;padding:0 9px;background:#fff;font-size:13px}.tracking-save-button{min-height:38px;padding:0 11px;border:0;border-radius:8px;background:var(--navy);color:#fff;font-size:13px;font-weight:850;cursor:pointer}.saved-tracking strong,.saved-tracking span{display:block}.saved-tracking span{margin-top:5px;color:#35445f;font-family:ui-monospace,SFMono-Regular,Consolas,monospace}.workflow-state{display:flex;flex-direction:column;align-items:flex-start;gap:5px}.workflow-state small{color:var(--muted);line-height:1.35}.order-state{display:inline-flex;align-items:center;justify-content:center;min-height:28px;padding:4px 9px;border-radius:999px;font-size:12px;font-weight:900;white-space:nowrap}.order-state.new,.order-state.ready{background:#e9f0ff;color:#2359bd}.order-state.waiting,.order-state.not_ready{background:#fff1d9;color:#976313}.order-state.tracked{background:#e7f7ef;color:#17734c}.order-state.sending{background:#edf0f6;color:#5c6679}.order-state.succeeded{background:#ddf5e9;color:#0f7047}.order-state.partial,.order-state.failed{background:#fde7e7;color:#ad3838}.order-mobile-list{display:none}.order-empty{margin:0;border:0;border-radius:0}.order-list-footer{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:14px 18px;border-top:1px solid var(--line)}.order-list-footer>span{color:var(--muted);font-size:13px}.order-pagination{padding:0}.order-mobile-card{min-width:0;overflow:hidden;border:1px solid var(--line);border-radius:14px;background:#fff;padding:15px}.order-mobile-card>header{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:start;gap:10px;padding-bottom:12px;border-bottom:1px solid var(--line)}.order-mobile-card>header>label{display:flex;align-items:center;gap:5px;color:var(--muted);font-size:12px}.mobile-recipient{padding:13px 0;border-bottom:1px solid var(--line)}.mobile-recipient strong,.mobile-recipient span,.mobile-recipient small{display:block}.mobile-recipient span{margin-top:4px;font-weight:750}.mobile-recipient small{margin-top:5px;color:var(--muted);line-height:1.5;overflow-wrap:anywhere}.order-mobile-card>.order-products{padding:13px 0}.mobile-tracking{padding-top:12px;border-top:1px solid var(--line)}.mobile-tracking>small{display:block;margin-bottom:8px;color:var(--muted);font-weight:750}
@media(max-width:1080px){.order-workflow-hero{align-items:flex-start;flex-direction:column}.order-hero-actions{width:100%;display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.order-hero-actions button{width:100%;min-width:0}.order-stage-tab{grid-template-columns:auto minmax(0,1fr)}.order-stage-tab>b{grid-column:2;justify-self:start}.order-filter-heading{align-items:flex-start;flex-direction:column}.order-filter-heading>p{text-align:left}}
@media(max-width:760px){.order-workflow-hero{align-items:flex-start;flex-direction:column;padding:19px}.order-workflow-hero h2{font-size:20px}.order-hero-actions{width:100%;display:grid;grid-template-columns:1fr}.order-hero-actions button{width:100%;min-width:0}.order-stage-tabs{grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}.stage-arrow{display:none}.order-stage-tab{min-height:100px;display:flex;align-items:flex-start;flex-direction:column;gap:7px;padding:11px}.order-stage-tab .stage-number{width:28px;height:28px;border-radius:8px}.order-stage-tab>span:nth-child(2){min-width:0}.order-stage-tab strong{font-size:15px}.order-stage-tab small{display:none}.order-stage-tab b{align-self:flex-end;min-width:34px;margin-top:auto;padding:5px 7px}.order-filter-panel{padding:16px}.order-filter-row{grid-template-columns:1fr}.order-filter-row .secondary-button{width:100%}.order-work-toolbar{align-items:flex-start;flex-direction:column;padding:15px}.order-bulk-actions{width:100%;display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.order-bulk-actions button{min-width:0;width:100%}.order-bulk-actions button:only-child{grid-column:1/-1}.order-table-wrap{display:none}.order-mobile-list{display:grid;grid-template-columns:minmax(0,1fr);gap:11px;padding:12px;background:#f3f5f9}.order-mobile-card .channel-order small{max-width:125px}.order-mobile-card .workflow-state{align-items:flex-end;text-align:right}.order-product-line strong,.order-product-line small{white-space:normal;overflow-wrap:anywhere}.tracking-editor{grid-template-columns:1fr 1fr}.tracking-save-button{grid-column:1/-1}.order-list-footer{align-items:flex-start;flex-direction:column}.order-pagination{width:100%;justify-content:space-between}.order-permission-notice{margin-left:12px;margin-right:12px}.order-filter-heading>p{font-size:14px}.order-work-tip{font-size:14px}}
@media(max-width:380px){.order-stage-tab{padding:9px}.order-stage-tab strong{font-size:14px}.order-mobile-card>header{grid-template-columns:auto minmax(0,1fr)}.order-mobile-card>header>.workflow-state{grid-column:2}.order-bulk-actions{grid-template-columns:1fr}}

/* Inventory management */
.inventory-hero{display:flex;align-items:center;justify-content:space-between;gap:24px;margin-bottom:16px;padding:22px 24px;background:linear-gradient(120deg,#fff 0%,#f1f8ff 100%)}.inventory-hero h2{margin:5px 0 7px;font-size:22px}.inventory-hero p:last-child{margin:0;color:var(--muted)}
.inventory-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-bottom:16px}.inventory-metric{min-height:112px;padding:17px 19px;text-align:left;border:1px solid var(--line);border-radius:16px;background:#fff;box-shadow:0 7px 22px rgba(16,32,64,.04);cursor:pointer}.inventory-metric span,.inventory-metric strong,.inventory-metric small{display:block}.inventory-metric span{color:var(--muted);font-size:13px;font-weight:850}.inventory-metric strong{margin:7px 0 2px;color:var(--navy);font-size:30px}.inventory-metric small{color:var(--muted)}.inventory-metric.active{border-color:var(--blue);box-shadow:0 0 0 2px rgba(37,87,214,.1)}.inventory-metric.warning strong{color:#b86b00}.inventory-metric.danger strong{color:var(--danger)}
.inventory-filter-panel{margin-bottom:16px;padding:20px 22px}.inventory-filter-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:16px;margin-bottom:16px}.inventory-filter-heading h2{margin:4px 0 0;font-size:21px}.inventory-filter-heading>span{color:var(--muted);font-size:14px;font-weight:800}.inventory-filter-grid{display:grid;grid-template-columns:minmax(280px,2fr) minmax(150px,1fr) minmax(120px,.7fr) auto auto;align-items:end;gap:10px}.inventory-filter-grid label,.inventory-form-field{display:grid;gap:7px}.inventory-filter-grid label>span,.inventory-form-field>span{color:#4b566b;font-size:13px;font-weight:800}.inventory-filter-grid input,.inventory-filter-grid select,.inventory-form-field input,.inventory-form-field textarea{width:100%;min-height:46px;border:1px solid #d8deea;border-radius:11px;background:#fff;padding:0 13px;color:var(--text);outline:none}.inventory-form-field textarea{min-height:90px;padding:12px 13px;resize:vertical;font:inherit}.inventory-filter-grid input:focus,.inventory-filter-grid select:focus,.inventory-form-field input:focus,.inventory-form-field textarea:focus{border-color:var(--blue);box-shadow:0 0 0 3px rgba(37,87,214,.1)}.permission-notice{margin:14px 0 0;padding:11px 13px;border-radius:10px;background:#fff7e8;color:#8a5b05;font-size:13px;font-weight:750}
.inventory-list-panel{padding:0;overflow:hidden}.inventory-table-wrap{overflow:auto}.inventory-table{width:100%;min-width:980px;border-collapse:collapse}.inventory-table th{padding:13px 14px;background:#f8f9fc;color:#5d687e;text-align:left;font-size:12px;white-space:nowrap}.inventory-table td{padding:14px 14px;border-top:1px solid var(--line);vertical-align:middle}.inventory-product-cell{display:flex;align-items:center;gap:11px;min-width:220px}.inventory-product-thumb{display:grid;place-items:center;flex:0 0 44px;width:44px;height:44px;overflow:hidden;border:1px solid var(--line);border-radius:11px;background:#eef2f8;color:var(--blue);font-weight:900}.inventory-product-thumb img{width:100%;height:100%;object-fit:cover}.inventory-product-cell strong,.inventory-product-cell span{display:block}.inventory-product-cell span{max-width:260px;margin-top:3px;color:var(--muted);font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.inventory-sku-cell strong,.inventory-sku-cell small{display:block}.inventory-sku-cell small{margin-top:3px;color:var(--muted)}.inventory-quantity{font-size:20px;color:var(--navy);white-space:nowrap}.inventory-channel-stock{color:var(--muted);font-weight:750;white-space:nowrap}.stock-state{display:inline-flex;align-items:center;min-height:29px;padding:0 10px;border-radius:999px;font-size:12px;font-weight:850;white-space:nowrap}.stock-state.normal{background:#e9f8f3;color:#087765}.stock-state.low{background:#fff3d9;color:#9a6100}.stock-state.out{background:#ffeaea;color:#b83232}.inventory-action-buttons{display:flex;gap:6px}.inventory-action-buttons button{min-height:36px;padding:0 10px;border:1px solid #d8deea;border-radius:9px;background:#fff;color:#35425a;font-size:12px;font-weight:800;cursor:pointer;white-space:nowrap}.inventory-action-buttons .inventory-move-button{border-color:#c9d7ff;background:#eef3ff;color:#1949bd}.inventory-action-buttons button:disabled{opacity:.45;cursor:not-allowed}.inventory-table .inventory-action-buttons{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));min-width:126px}.inventory-table .inventory-action-buttons button[data-inventory-action="history"]{grid-column:1/-1}.inventory-mobile-list{display:none}.inventory-pagination{display:flex;align-items:center;justify-content:center;gap:14px;padding:16px;border-top:1px solid var(--line)}.inventory-pagination span{min-width:70px;text-align:center;color:var(--muted);font-weight:800}
.inventory-modal[hidden]{display:none}.inventory-modal{position:fixed;inset:0;z-index:120;display:grid;place-items:center;padding:20px}.inventory-modal-backdrop{position:absolute;inset:0;width:100%;height:100%;border:0;background:rgba(10,20,40,.52);cursor:default}.inventory-dialog{position:relative;z-index:1;width:min(560px,100%);max-height:calc(100dvh - 40px);overflow:auto;border-radius:20px;background:#fff;box-shadow:0 28px 70px rgba(0,0,0,.24)}.inventory-dialog.compact{width:min(460px,100%)}.inventory-dialog.history{width:min(700px,100%)}.inventory-dialog>header{position:sticky;top:0;z-index:2;display:flex;align-items:flex-start;justify-content:space-between;padding:20px 22px 15px;border-bottom:1px solid var(--line);background:#fff}.inventory-dialog h2{margin:4px 0 0;font-size:22px}.inventory-dialog-close{width:42px;height:42px;border:0;border-radius:10px;background:#f0f3f8;color:#34415a;font-size:27px;cursor:pointer}.inventory-selected-sku{display:grid;gap:3px;margin:18px 22px 0;padding:14px 15px;border-radius:12px;background:#f5f7fb}.inventory-selected-sku span,.inventory-selected-sku small{color:var(--muted)}.inventory-dialog form{display:grid;gap:15px;padding:18px 22px 22px}.movement-type-tabs{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}.movement-type-tabs input{position:absolute;opacity:0;pointer-events:none}.movement-type-tabs span{display:grid;place-items:center;min-height:46px;border:1px solid #d8deea;border-radius:11px;background:#fff;color:#536078;font-weight:850;cursor:pointer}.movement-type-tabs input:checked+span{border-color:var(--blue);background:#eef3ff;color:var(--blue);box-shadow:0 0 0 2px rgba(37,87,214,.08)}.inventory-current-line{display:flex;align-items:center;justify-content:space-between;padding:13px 15px;border-radius:11px;background:#eef8f6}.inventory-current-line span{color:#397067;font-size:13px;font-weight:800}.inventory-current-line strong{font-size:18px;color:#096d60}.inventory-form-help{margin:0;color:var(--muted);font-size:12px;line-height:1.6}.inventory-submit{width:100%;min-height:48px}.inventory-history-list{display:grid;gap:0;padding:4px 22px 22px}.inventory-history-row{display:grid;grid-template-columns:110px minmax(0,1fr) auto;gap:12px;align-items:center;padding:15px 0;border-bottom:1px solid var(--line)}.inventory-history-row:last-child{border-bottom:0}.inventory-history-row>span:first-child{font-weight:850}.inventory-history-row .delta{font-size:18px;font-weight:900}.inventory-history-row .delta.positive{color:#087765}.inventory-history-row .delta.negative{color:#c23d3d}.inventory-history-row div strong,.inventory-history-row div small{display:block}.inventory-history-row div small{margin-top:3px;color:var(--muted)}.inventory-history-row>small{color:var(--muted);text-align:right}
@media(max-width:1150px){.inventory-summary{grid-template-columns:repeat(2,1fr)}.inventory-filter-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.inventory-search{grid-column:1/-1}.inventory-filter-grid .primary-button,.inventory-filter-grid .secondary-button{width:100%}}
@media(max-width:760px){.inventory-hero{align-items:flex-start;flex-direction:column;padding:19px}.inventory-hero h2{font-size:20px}.inventory-hero .secondary-button{width:100%}.inventory-summary{gap:8px}.inventory-metric{min-height:96px;padding:14px}.inventory-metric strong{font-size:25px}.inventory-filter-panel{padding:17px}.inventory-filter-heading{align-items:flex-start;flex-direction:column}.inventory-filter-grid{grid-template-columns:1fr}.inventory-search{grid-column:auto}.inventory-table-wrap{display:none}.inventory-mobile-list{display:grid;gap:11px;padding:12px;background:#f5f7fb}.inventory-mobile-card{display:grid;gap:13px;padding:16px;border:1px solid var(--line);border-radius:15px;background:#fff}.inventory-mobile-card header{display:flex;align-items:flex-start;justify-content:space-between;gap:10px}.inventory-mobile-card .inventory-product-cell{min-width:0}.inventory-mobile-card .inventory-product-cell span{max-width:190px}.inventory-mobile-facts{display:grid;grid-template-columns:repeat(3,1fr);gap:7px}.inventory-mobile-facts span{padding:10px;border-radius:10px;background:#f6f8fb}.inventory-mobile-facts small,.inventory-mobile-facts b{display:block}.inventory-mobile-facts small{color:var(--muted);font-size:11px}.inventory-mobile-facts b{margin-top:4px;font-size:15px}.inventory-mobile-card .inventory-action-buttons{display:grid;grid-template-columns:repeat(3,1fr)}.inventory-mobile-card .inventory-action-buttons button{min-height:42px}.inventory-modal{padding:0;place-items:end stretch}.inventory-dialog,.inventory-dialog.compact,.inventory-dialog.history{width:100%;max-height:92dvh;border-radius:20px 20px 0 0}.inventory-dialog>header{padding:17px}.inventory-selected-sku{margin-left:17px;margin-right:17px}.inventory-dialog form,.inventory-history-list{padding-left:17px;padding-right:17px}.inventory-history-row{grid-template-columns:90px minmax(0,1fr);gap:8px}.inventory-history-row>small{grid-column:2;text-align:left}.movement-type-tabs{gap:5px}}
@media(max-width:380px){.inventory-summary{grid-template-columns:1fr 1fr}.inventory-metric{padding:12px}.inventory-mobile-facts{grid-template-columns:1fr 1fr}.inventory-mobile-facts span:last-child{grid-column:1/-1}}
.inventory-link-state{display:inline-flex;margin-top:5px;padding:3px 7px;border-radius:999px;font-size:10px;font-style:normal;font-weight:850}.inventory-link-state.mapped{background:#e9f8f3;color:#087765}.inventory-link-state.unmapped{background:#fff0df;color:#a55c00}

/* Own SKU master and channel option mapping */
.inventory-form-split{display:grid;grid-template-columns:1fr 1fr;gap:12px}.inventory-active-check{display:flex;align-items:center;gap:9px;min-height:44px;font-weight:800}.inventory-active-check input{width:19px;height:19px}.inventory-product-cell.own-sku{min-width:210px}.inventory-mobile-sku{display:flex;justify-content:space-between;gap:10px;padding:10px 12px;border-radius:10px;background:#f5f7fb}.inventory-mobile-sku small{color:var(--muted)}.mapping-sync-state{display:inline-flex;align-items:center;min-height:28px;padding:0 9px;border-radius:999px;font-size:12px;font-weight:850;white-space:nowrap}.mapping-sync-state.synced{background:#e9f8f3;color:#087765}.mapping-sync-state.pending{background:#fff3d9;color:#9a6100}.mapping-sync-state.error{background:#ffeaea;color:#b83232}.mapping-sync-state.unmapped{background:#eef1f6;color:#647086}.detail-section-help{margin:-4px 0 14px;color:var(--muted);font-size:13px;line-height:1.55}.channel-option-mapping-list{display:grid;gap:11px}.channel-option-mapping{display:grid;gap:12px;padding:15px;border:1px solid var(--line);border-radius:14px;background:#fff}.channel-option-mapping>header{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.channel-option-mapping>header>div{display:grid;gap:4px;min-width:0}.channel-option-mapping>header strong{font-size:14px}.channel-option-mapping>header small{overflow-wrap:anywhere;color:var(--muted);font-size:11px}.channel-option-stock{display:grid;grid-template-columns:1fr 1fr;gap:8px}.channel-option-stock span{padding:10px 11px;border-radius:10px;background:#f5f7fb}.channel-option-stock small,.channel-option-stock b{display:block}.channel-option-stock small{color:var(--muted);font-size:11px}.channel-option-stock b{margin-top:3px;color:var(--navy)}.channel-option-own-sku{display:flex;align-items:center;justify-content:space-between;gap:12px;padding-top:11px;border-top:1px dashed var(--line)}.channel-option-own-sku>div{display:grid;gap:3px;min-width:0}.channel-option-own-sku span,.channel-option-own-sku small{overflow-wrap:anywhere;color:var(--muted);font-size:12px}.product-mapping-results{display:grid;gap:7px;max-height:300px;overflow:auto;padding:2px}.product-mapping-result{display:flex;align-items:flex-start;gap:10px;padding:12px;border:1px solid var(--line);border-radius:11px;cursor:pointer}.product-mapping-result:has(input:checked){border-color:var(--blue);background:#eef3ff;box-shadow:0 0 0 2px rgba(37,87,214,.08)}.product-mapping-result input{flex:0 0 auto;width:18px;height:18px;margin-top:2px}.product-mapping-result span,.product-mapping-result strong,.product-mapping-result b,.product-mapping-result small{display:block}.product-mapping-result b{margin-top:3px;font-size:13px}.product-mapping-result small{margin-top:3px;color:var(--muted);font-size:11px}.product-mapping-form-actions{display:flex;justify-content:flex-end;gap:9px}.product-mapping-form-actions button{min-height:46px}.danger-button{border:1px solid #f0c5c5;border-radius:10px;background:#fff1f1;color:#b83232;padding:0 15px;font-weight:850;cursor:pointer}
@media(max-width:760px){.inventory-form-split{grid-template-columns:1fr}.channel-option-mapping>header,.channel-option-own-sku{align-items:stretch;flex-direction:column}.channel-option-own-sku .secondary-button{width:100%;min-height:42px}.product-mapping-form-actions{display:grid;grid-template-columns:1fr 1fr}.product-mapping-form-actions button{width:100%}}

/* Order exception queue and detail */
.order-exception-panel{margin-bottom:16px;padding:20px 22px;border:1px solid var(--line);border-radius:16px;background:#fff;box-shadow:0 7px 22px rgba(16,32,64,.04)}
.order-exception-panel>header{display:flex;align-items:flex-end;justify-content:space-between;gap:18px;margin-bottom:15px}.order-exception-panel h2{margin:4px 0 0;font-size:20px}.order-exception-panel>header>p{margin:0;color:var(--muted);font-size:13px}
.order-exception-grid{display:grid;grid-template-columns:repeat(5,minmax(120px,1fr));gap:10px}.order-exception-card{min-width:0;display:grid;gap:4px;padding:14px 15px;border:1px solid var(--line);border-radius:13px;background:#f8f9fc;color:var(--text);text-align:left;cursor:pointer}.order-exception-card:hover{border-color:#a9badb;background:#f3f6fc}.order-exception-card.active{border-color:var(--blue);box-shadow:inset 0 0 0 1px var(--blue);background:#eef3ff}.order-exception-card span{font-size:13px;font-weight:850}.order-exception-card strong{font-size:27px;color:var(--navy)}.order-exception-card small{overflow:hidden;color:var(--muted);font-size:11px;text-overflow:ellipsis;white-space:nowrap}.order-exception-card.hold strong{color:#a45f00}.order-exception-card.unmapped strong,.order-exception-card.stock strong{color:#a85e00}.order-exception-card.failed strong{color:var(--danger)}
.order-reference-button{max-width:180px;padding:0;border:0;background:transparent;color:var(--blue);font:inherit;font-size:12px;text-align:left;text-decoration:underline;text-decoration-color:#b8c7ed;text-underline-offset:3px;cursor:pointer;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.order-reference-button:hover{color:#153f9c}.order-table tr.is-held td,.order-mobile-card.is-held{background:#fffaf1}.order-state.hold{background:#fff0d8;color:#995b00}.order-exception-badges{display:flex;flex-wrap:wrap;gap:4px;margin-top:6px}.order-exception-badge{display:inline-flex;padding:3px 6px;border-radius:999px;background:#eef1f6;color:#5c677c;font-size:10px;font-weight:850}.order-exception-badge.hold,.order-exception-badge.unmapped,.order-exception-badge.stock_short,.order-exception-badge.tracking_missing{background:#fff1dc;color:#945900}.order-exception-badge.transmission_failed{background:#ffe8e8;color:#b32f2f}
.order-detail-layer,.order-hold-modal{position:fixed;inset:0;z-index:90}.order-detail-layer[hidden],.order-hold-modal[hidden]{display:none}.order-detail-backdrop,.order-hold-backdrop{position:absolute;inset:0;width:100%;height:100%;border:0;background:rgba(13,24,45,.48);cursor:default}.order-detail-drawer{position:absolute;top:0;right:0;width:min(620px,94vw);height:100dvh;display:flex;flex-direction:column;background:#f7f8fb;box-shadow:-18px 0 50px rgba(8,20,43,.2)}.order-detail-drawer>header{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;padding:22px 24px;border-bottom:1px solid var(--line);background:#fff}.order-detail-drawer h2{margin:4px 0 3px}.order-detail-drawer header p:last-child{margin:0;color:var(--muted);font-size:13px}.detail-close{width:38px;height:38px;display:grid;place-items:center;padding:0;border:1px solid var(--line);border-radius:10px;background:#fff;color:var(--text);font-size:25px;line-height:1;cursor:pointer}.order-detail-content{overflow:auto;display:grid;align-content:start;gap:14px;padding:18px 20px 30px}.order-detail-hold{display:grid;gap:5px;padding:14px 16px;border:1px solid #efc47e;border-radius:13px;background:#fff5e4}.order-detail-hold strong{color:#945900}.order-detail-hold small{color:var(--muted)}.order-detail-summary{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}.order-detail-summary div{padding:13px;border:1px solid var(--line);border-radius:12px;background:#fff}.order-detail-summary small,.order-detail-summary strong{display:block}.order-detail-summary small{color:var(--muted);font-size:11px}.order-detail-summary strong{margin-top:5px;font-size:14px}.order-detail-section{padding:17px;border:1px solid var(--line);border-radius:14px;background:#fff}.order-detail-section h3{margin:0 0 13px;font-size:16px}.order-detail-section dl{display:grid;grid-template-columns:1fr 1fr;margin:0}.order-detail-section dl div{display:grid;gap:4px;padding:9px 0;border-bottom:1px solid #edf0f5}.order-detail-section dl .wide{grid-column:1/-1}.order-detail-section dt{color:var(--muted);font-size:11px;font-weight:800}.order-detail-section dd{margin:0;font-size:13px;overflow-wrap:anywhere}.order-event-list{display:grid;gap:0;margin:0;padding:0;list-style:none}.order-event-list li{position:relative;display:grid;grid-template-columns:18px 1fr;gap:10px;padding:0 0 18px}.order-event-list li:not(:last-child):before{content:"";position:absolute;left:6px;top:14px;bottom:0;width:2px;background:#dce3ef}.order-event-dot{position:relative;z-index:1;width:14px;height:14px;margin-top:2px;border:3px solid #cfdaec;border-radius:50%;background:#fff}.order-event-dot.succeeded{border-color:#4fae91}.order-event-dot.failed{border-color:#d65b5b}.order-event-list strong{font-size:13px}.order-event-list p{margin:3px 0;color:var(--muted);font-size:12px}.order-event-list small{color:#778298;font-size:11px}.order-event-empty{display:block!important;color:var(--muted)}
.order-hold-modal{display:grid;place-items:center;padding:20px}.order-hold-dialog{position:relative;width:min(500px,100%);display:grid;gap:17px;padding:22px;border-radius:17px;background:#fff;box-shadow:0 24px 70px rgba(8,20,43,.28)}.order-hold-dialog>header{display:flex;align-items:flex-start;justify-content:space-between;gap:14px}.order-hold-dialog h2{margin:4px 0 0}.order-hold-dialog>p{margin:0;padding:11px 13px;border-radius:10px;background:#f5f7fb;color:var(--muted);font-size:13px}.order-hold-dialog textarea{width:100%;resize:vertical}.order-hold-dialog .form-field>small{text-align:right;color:var(--muted)}.order-hold-actions{display:flex;justify-content:flex-end;gap:8px}.order-hold-actions button{min-width:110px}
.carrier-export-layer{position:fixed;inset:0;z-index:110;display:grid;place-items:center;padding:20px}.carrier-export-layer[hidden]{display:none}.carrier-export-backdrop{position:absolute;inset:0;width:100%;height:100%;border:0;background:rgba(13,24,45,.56);cursor:default}.carrier-export-dialog{position:relative;z-index:1;width:min(1180px,100%);max-height:calc(100dvh - 40px);display:grid;grid-template-rows:auto minmax(0,1fr) auto;overflow:hidden;border-radius:20px;background:#fff;box-shadow:0 28px 80px rgba(8,20,43,.3)}.carrier-export-head{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;padding:20px 22px;border-bottom:1px solid var(--line)}.carrier-export-head h2{margin:4px 0 5px;font-size:22px}.carrier-export-head p:last-child{margin:0;color:var(--muted);font-size:13px}.carrier-export-body{min-height:0;display:grid;grid-template-columns:280px minmax(0,1fr)}.carrier-template-sidebar{min-height:0;padding:18px;border-right:1px solid var(--line);background:#f7f8fb;overflow:auto}.carrier-template-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:12px}.carrier-template-heading>div{display:grid;gap:3px}.carrier-template-heading small{color:var(--muted)}.carrier-template-heading button{padding:0 11px;min-height:36px}.carrier-template-list{display:grid;gap:8px}.carrier-template-card{display:grid;gap:6px;width:100%;padding:13px;border:1px solid var(--line);border-radius:11px;background:#fff;text-align:left;cursor:pointer}.carrier-template-card:hover{border-color:#aebdde}.carrier-template-card.active{border-color:var(--blue);box-shadow:inset 0 0 0 1px var(--blue);background:#eef3ff}.carrier-template-card span{display:flex;align-items:center;gap:7px}.carrier-template-card strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.carrier-template-card em{padding:3px 6px;border-radius:999px;background:#dce7ff;color:#20479f;font-size:10px;font-style:normal;font-weight:850}.carrier-template-card small{color:var(--muted)}.carrier-template-empty{display:grid;gap:5px;padding:17px 13px;border:1px dashed #c8d0df;border-radius:11px;color:var(--muted);text-align:center}.carrier-template-form{min-width:0;overflow:auto;padding:20px 22px}.carrier-template-form-head,.carrier-column-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:15px}.carrier-template-form-head>div,.carrier-column-heading>div{display:grid;gap:4px}.carrier-template-form-head small,.carrier-column-heading small{color:var(--muted)}.text-danger-button{padding:7px 10px;border:1px solid #e7b8b8;border-radius:8px;background:#fff5f5;color:#a62c2c;font-weight:800;cursor:pointer}.carrier-template-basics{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:16px}.carrier-template-default{display:flex;align-items:center;gap:8px;margin:13px 0 5px;font-weight:800}.carrier-template-default input{width:18px;height:18px}.carrier-template-default-help{margin:0 0 20px;color:var(--muted);font-size:11px}.carrier-column-heading{align-items:center;margin-bottom:10px}.carrier-column-labels,.carrier-column-row{display:grid;grid-template-columns:40px minmax(130px,1.05fr) minmax(150px,1fr) minmax(110px,.8fr) 64px 104px;gap:8px;align-items:center}.carrier-column-labels{padding:8px 10px;color:var(--muted);font-size:11px;font-weight:850}.carrier-column-list{display:grid;gap:7px}.carrier-column-row{padding:9px 10px;border:1px solid var(--line);border-radius:11px;background:#f9fafc}.carrier-column-row label>small{display:none}.carrier-column-row input,.carrier-column-row select{width:100%;min-width:0;min-height:39px;padding:7px 9px;border:1px solid #cdd5e3;border-radius:8px;background:#fff}.carrier-column-row input:disabled{background:#edf0f5;color:#8a94a7}.carrier-column-order{display:grid;place-items:center;width:28px;height:28px;border-radius:50%;background:#e8eefb;color:#294a92;font-weight:900}.carrier-column-required{display:flex;align-items:center;justify-content:center;gap:5px;font-size:12px;font-weight:800}.carrier-column-required input{width:17px;height:17px;min-height:0}.carrier-column-actions{display:grid;grid-template-columns:repeat(3,1fr);gap:4px}.carrier-column-actions button{min-height:34px;border:1px solid #d2d9e5;border-radius:7px;background:#fff;color:#43506a;cursor:pointer}.carrier-column-actions button:last-child{color:#a62c2c}.carrier-template-actions{display:flex;justify-content:flex-end;margin-top:16px}.carrier-export-footer{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:15px 22px;border-top:1px solid var(--line);background:#f8f9fc}.carrier-export-footer p{margin:0;color:var(--muted);font-size:13px}.carrier-export-footer button{min-width:230px}.carrier-export-footer button:disabled{opacity:.5}
@media(max-width:900px){.carrier-export-body{grid-template-columns:230px minmax(0,1fr)}.carrier-column-labels{display:none}.carrier-column-row{grid-template-columns:34px 1fr 1fr}.carrier-column-row label>small{display:block;margin-bottom:4px;color:var(--muted);font-size:10px}.carrier-column-row label:nth-of-type(3){grid-column:2/4}.carrier-column-required{justify-content:flex-start}.carrier-column-actions{grid-column:3;grid-row:3}}
@media(max-width:760px){.carrier-export-layer{padding:0;place-items:stretch}.carrier-export-dialog{width:100%;height:100dvh;max-height:none;border-radius:0}.carrier-export-head{padding:16px 17px}.carrier-export-head h2{font-size:20px}.carrier-export-body{display:block;overflow:auto}.carrier-template-sidebar{padding:14px 16px;border-right:0;border-bottom:1px solid var(--line);overflow:visible}.carrier-template-list{display:flex;overflow-x:auto;padding-bottom:3px}.carrier-template-card{flex:0 0 210px}.carrier-template-form{overflow:visible;padding:17px 16px}.carrier-template-basics{grid-template-columns:1fr}.carrier-column-row{grid-template-columns:32px minmax(0,1fr);gap:9px}.carrier-column-row>label{grid-column:2}.carrier-column-row label:nth-of-type(3){grid-column:2}.carrier-column-required{grid-column:2;justify-content:flex-start}.carrier-column-actions{grid-column:2;grid-row:auto}.carrier-export-footer{align-items:stretch;flex-direction:column;padding:13px 16px}.carrier-export-footer button{width:100%;min-width:0}}
@media(max-width:1180px){.order-exception-grid{grid-template-columns:repeat(3,1fr)}}
@media(max-width:760px){.order-exception-panel{padding:16px}.order-exception-panel>header{align-items:flex-start;flex-direction:column;gap:7px}.order-exception-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.order-exception-card{padding:12px}.order-exception-card strong{font-size:23px}.order-exception-card:last-child{grid-column:1/-1}.order-detail-drawer{top:auto;bottom:0;width:100%;height:min(92dvh,900px);border-radius:20px 20px 0 0}.order-detail-drawer>header{padding:18px}.order-detail-content{padding:14px}.order-detail-summary{grid-template-columns:1fr}.order-detail-section{padding:14px}.order-hold-modal{place-items:end stretch;padding:0}.order-hold-dialog{width:100%;padding:18px;border-radius:20px 20px 0 0}.order-hold-actions{display:grid;grid-template-columns:1fr 1fr}.order-hold-actions button{width:100%;min-width:0}.order-reference-button{max-width:155px}}
@media(max-width:380px){.order-exception-grid{grid-template-columns:1fr 1fr}.order-exception-card{padding:10px}.order-exception-card span{font-size:12px}.order-detail-section dl{grid-template-columns:1fr}.order-detail-section dl .wide{grid-column:auto}}

/* Global horizontal category navigation + contextual work menu */
.global-header{position:sticky;top:0;z-index:60;min-height:72px;display:grid;grid-template-columns:210px minmax(0,1fr) auto;align-items:stretch;background:#fff;border-bottom:1px solid var(--line);box-shadow:0 3px 14px rgba(16,28,58,.05)}
.global-brand{display:flex;align-items:center;gap:10px;padding:10px 22px;background:var(--navy);color:#fff}.global-brand .brand-mark{width:38px;height:38px;border-radius:10px;font-size:21px}.global-brand strong,.global-brand small{display:block}.global-brand strong{font-size:15px;letter-spacing:.08em}.global-brand small{max-width:116px;margin-top:2px;overflow:hidden;color:#aebad2;font-size:12px;text-overflow:ellipsis;white-space:nowrap}
.primary-nav{min-width:0;display:flex;align-items:stretch;overflow-x:auto;scrollbar-width:none;padding:0 12px}.primary-nav::-webkit-scrollbar{display:none}.primary-nav-item{position:relative;display:flex;align-items:center;justify-content:center;gap:7px;min-width:max-content;padding:0 clamp(12px,1.55vw,24px);color:#4f5b71;font-size:14px;font-weight:850;white-space:nowrap}.primary-nav-item>span{color:#8d98ac;font-size:17px}.primary-nav-item:hover{color:var(--blue);background:#f7f9fd}.primary-nav-item.active{color:var(--blue);background:#f2f5ff}.primary-nav-item.active:after{content:'';position:absolute;left:15px;right:15px;bottom:0;height:3px;border-radius:4px 4px 0 0;background:var(--blue)}.primary-nav-item.active>span{color:var(--blue)}
.global-actions{display:flex;align-items:center;gap:10px;padding:0 18px;border-left:1px solid var(--line)}.global-org{display:flex;align-items:center;gap:8px;max-width:190px;color:#465169;font-size:13px;font-weight:800;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.global-actions .icon-logout{width:40px;height:40px}.global-actions .org-select>span{display:none}.global-actions .org-select select{max-width:180px;min-height:40px}
.main-content{min-width:0}.topbar{min-height:88px;padding:16px clamp(22px,3.2vw,46px);background:#fff}.topbar h1{font-size:25px}.topbar-user{display:grid;gap:3px;min-width:120px;text-align:right}.topbar-user strong{font-size:14px}.topbar-user small{color:var(--muted);font-size:12px;text-transform:uppercase}
.erp-workspace{display:grid;grid-template-columns:216px minmax(0,1fr);align-items:start;min-width:0}.context-sidebar{position:sticky;top:72px;min-height:calc(100vh - 72px);max-height:calc(100vh - 72px);display:flex;flex-direction:column;overflow:auto;padding:22px 14px;background:#fff;border-right:1px solid var(--line)}.context-heading{display:flex;align-items:center;gap:11px;padding:0 8px 18px;border-bottom:1px solid var(--line)}.context-heading-icon{width:38px;height:38px;display:grid;place-items:center;border-radius:11px;background:#edf2ff;color:var(--blue);font-size:19px;font-weight:900}.context-heading small,.context-heading strong{display:block}.context-heading small{color:var(--muted);font-size:11px}.context-heading strong{margin-top:3px;font-size:17px}.context-nav{display:grid;gap:5px;margin-top:14px}.context-nav-item{position:relative;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:3px 7px;min-height:58px;padding:11px 12px;border-radius:11px;color:#536078}.context-nav-item>span{font-size:14px;font-weight:850}.context-nav-item>small{grid-column:1;color:#8a94a7;font-size:11px}.context-nav-item>b{grid-column:2;grid-row:1/3;align-self:center;min-width:28px;padding:4px 6px;border-radius:999px;background:#edf0f5;color:#526079;font-size:11px;text-align:center}.context-nav-item:hover{background:#f6f8fc;color:var(--navy)}.context-nav-item.active{background:#e9efff;color:#1748bd}.context-nav-item.active:before{content:'';position:absolute;left:0;top:12px;bottom:12px;width:3px;border-radius:0 4px 4px 0;background:var(--blue)}.context-nav-item.active small{color:#6078ad}.context-nav-item.active b{background:#fff;color:var(--blue)}.context-footer{display:flex;align-items:center;gap:9px;margin-top:auto;padding:17px 8px 0;border-top:1px solid var(--line)}.context-footer strong,.context-footer small{display:block}.context-footer strong{font-size:12px}.context-footer small{margin-top:2px;color:var(--muted);font-size:11px}.page-content{min-width:0;padding:24px clamp(20px,3vw,44px) 48px}
@media(max-width:1180px){.global-header{grid-template-columns:180px minmax(0,1fr) auto}.global-brand{padding-left:16px;padding-right:16px}.primary-nav{padding:0 5px}.primary-nav-item{padding-left:11px;padding-right:11px}.primary-nav-item>span{display:none}.global-org{display:none}.global-actions{padding-left:10px;padding-right:10px}.erp-workspace{grid-template-columns:196px minmax(0,1fr)}.context-sidebar{padding-left:10px;padding-right:10px}.page-content{padding-left:20px;padding-right:20px}}
@media(max-width:880px) and (min-width:701px){.global-header{grid-template-columns:155px minmax(0,1fr) 58px}.global-brand{padding-left:12px;padding-right:10px}.global-brand small{display:none}.primary-nav-item{padding-left:9px;padding-right:9px;font-size:13px}.global-actions{padding:0 8px}.global-actions .org-select{display:none}.erp-workspace{grid-template-columns:176px minmax(0,1fr)}.context-nav-item{padding-left:10px;padding-right:8px}.context-nav-item>small{display:none}.context-nav-item>b{grid-row:1}.context-footer div{display:none}}
@media(max-width:700px){.global-header{min-height:62px;grid-template-columns:minmax(0,1fr) auto}.global-brand{min-width:0;padding:8px 16px}.global-brand .brand-mark{width:36px;height:36px}.global-brand small{max-width:185px}.primary-nav{display:none}.global-actions{padding:0 13px;border-left:0;background:var(--navy)}.global-actions .global-org,.global-actions .org-select{display:none}.global-actions .icon-logout{border-color:rgba(255,255,255,.2);background:rgba(255,255,255,.08);color:#fff}.topbar{min-height:78px;padding:14px 16px}.topbar h1{font-size:22px}.topbar-user{min-width:0}.topbar-user small{display:none}.erp-workspace{display:block}.context-sidebar{position:sticky;top:62px;z-index:25;min-height:0;max-height:none;display:block;overflow:hidden;padding:8px 12px;background:rgba(255,255,255,.98);border-right:0;border-bottom:1px solid var(--line);box-shadow:0 4px 12px rgba(16,28,58,.04)}.context-heading,.context-footer{display:none}.context-nav{display:flex;gap:7px;margin:0;overflow-x:auto;scrollbar-width:none;scroll-padding-left:12px}.context-nav::-webkit-scrollbar{display:none}.context-nav-item{display:flex;align-items:center;justify-content:center;gap:7px;min-width:max-content;min-height:42px;padding:8px 13px;border:1px solid var(--line);border-radius:10px;background:#fff}.context-nav-item>span{font-size:13px}.context-nav-item>small{display:none}.context-nav-item>b{display:inline-grid;place-items:center;min-width:25px;padding:3px 5px;font-size:10px}.context-nav-item.active{border-color:#a8bae7;background:#edf2ff}.context-nav-item.active:before{display:none}.page-content{padding:18px 16px 36px}}
@media(max-width:380px){.global-brand small{max-width:120px}.topbar-user{display:none}.page-content{padding-left:12px;padding-right:12px}.context-sidebar{padding-left:9px;padding-right:9px}}

/* ERP product management detail editing */
.erp-edited-badge{display:inline-flex;margin-left:7px;padding:3px 6px;border-radius:6px;background:#e8efff;color:#2752b8;font-size:9px;font-style:normal;font-weight:900;vertical-align:2px;white-space:nowrap}
.product-drawer-head-actions{flex:0 0 auto;display:flex;align-items:center;gap:9px}.product-drawer-head-actions button[hidden]{display:none!important}.product-drawer-head-actions .secondary-button{width:auto;min-height:39px;padding:0 13px;font-size:12px;line-height:1.2;white-space:nowrap}.product-drawer-head-actions>button:last-child{flex:0 0 auto}.product-drawer-panel>header>div:first-child{min-width:0}.product-drawer-panel>header>div:first-child h2{overflow-wrap:anywhere}
.product-management-state{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:14px 16px;border:1px solid #bfd0f6;border-radius:13px;background:#f2f6ff}.product-management-state>div{display:grid;gap:3px}.product-management-state strong{font-size:14px}.product-management-state span{color:#61708c;font-size:12px}.product-management-state>b{flex:0 0 auto;padding:5px 9px;border-radius:999px;background:#fff0dc;color:#9b5b00;font-size:11px}.product-management-state.source{border-color:var(--line);background:#f7f8fb}
.product-management-summary p{margin:12px 0 0;padding:12px 14px;border-radius:10px;background:#f7f8fb;color:#536078;line-height:1.6;white-space:pre-wrap}.product-detail-tags{display:flex;flex-wrap:wrap;gap:6px}.product-detail-tags span{padding:5px 9px;border-radius:999px;background:#e9efff;color:#2752b8;font-size:12px;font-weight:800}.product-detail-tags>small{color:var(--muted)}
.product-source-list{display:grid;border:1px solid var(--line);border-radius:12px;overflow:hidden}.product-source-row{min-width:0;display:grid;grid-template-columns:120px minmax(0,1fr) minmax(0,1fr);gap:10px;padding:11px 12px;border-top:1px solid var(--line);background:#fff}.product-source-row:first-child{border-top:0}.product-source-row.changed{background:#fffaf1}.product-source-row>strong{display:flex;align-items:flex-start;gap:5px;font-size:12px}.product-source-row em{padding:3px 5px;border-radius:5px;background:#e8efff;color:#2752b8;font-size:9px;font-style:normal;white-space:nowrap}.product-source-row>span{min-width:0;color:#4e5a71;font-size:12px;line-height:1.45;overflow-wrap:anywhere}.product-source-row small{display:block;margin-bottom:3px;color:#929bab;font-size:10px;font-weight:800}
.product-management-form{display:grid;gap:18px}.product-edit-notice{display:grid;gap:4px;padding:14px 16px;border:1px solid #bfd0f6;border-radius:12px;background:#eff5ff}.product-edit-notice strong{color:#20479f}.product-edit-notice span{color:#5f6e88;font-size:12px}.product-management-form-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}.product-management-form-grid .product-name-field,.product-management-form-grid .product-wide-field{grid-column:1/-1}.product-management-form textarea{width:100%;resize:vertical;border:1px solid var(--line);border-radius:10px;padding:11px 12px;background:#fff;color:var(--text);font:inherit;line-height:1.55}.product-management-form textarea:focus{outline:3px solid rgba(37,87,214,.12);border-color:var(--blue)}.product-management-form .inventory-form-field>small{margin-top:5px;text-align:right;color:var(--muted);font-size:11px}.product-management-form-actions{display:grid;grid-template-columns:auto minmax(0,1fr) auto auto;align-items:center;gap:9px;padding-top:15px;border-top:1px solid var(--line)}
.product-image-editor{display:grid;gap:9px}.product-image-edit-layout{display:grid;grid-template-columns:132px minmax(0,1fr);gap:14px;align-items:center;padding:13px;border:1px solid var(--line);border-radius:12px;background:#f8f9fc}.product-image-edit-preview{display:grid;place-items:center;width:132px;height:132px;overflow:hidden;border:1px solid #d8deea;border-radius:11px;background:#fff;color:var(--muted);font-size:12px}.product-image-edit-preview img{width:100%;height:100%;object-fit:contain}.product-image-edit-controls{min-width:0;display:flex;flex-wrap:wrap;gap:8px;align-items:center}.product-image-edit-controls .secondary-button{width:auto;min-height:40px}.product-image-file-button{display:inline-flex;align-items:center;justify-content:center;cursor:pointer}.product-image-edit-controls small{flex:1 0 100%;color:var(--muted);overflow-wrap:anywhere}.product-image-url-field{display:grid;gap:7px}.product-image-url-field>span{font-size:11px;color:var(--muted);font-weight:700}
@media(max-width:760px){.product-drawer-head-actions .secondary-button{min-height:37px;padding:0 10px;font-size:12px}.product-management-state{align-items:flex-start}.product-source-row{grid-template-columns:1fr;gap:7px}.product-source-row>strong{margin-bottom:2px}.product-management-form-grid{grid-template-columns:1fr}.product-management-form-grid .product-name-field,.product-management-form-grid .product-wide-field{grid-column:auto}.product-image-edit-layout{grid-template-columns:1fr}.product-image-edit-preview{width:100%;height:190px}.product-image-edit-controls .secondary-button{flex:1;min-width:120px}.product-management-form-actions{grid-template-columns:1fr 1fr}.product-management-form-actions>span{display:none}.product-management-form-actions #reset-product-management{grid-column:1/-1}.product-management-form-actions button{width:100%;min-height:44px}}
@media(max-width:380px){.product-drawer-head-actions{gap:6px}.product-drawer-head-actions .secondary-button{padding:0 8px;font-size:11px}.product-management-state{flex-direction:column}.product-management-form-actions{grid-template-columns:1fr}}

/* Product channel detail-content editor */
.product-content-modal[hidden]{display:none}.product-content-modal{position:fixed;inset:0;z-index:1200;display:grid;place-items:center;padding:24px}.product-content-backdrop{position:absolute;inset:0;width:100%;height:100%;border:0;background:rgba(12,24,48,.62);cursor:default}.product-content-dialog{position:relative;display:grid;grid-template-rows:auto auto auto minmax(0,1fr) auto;width:min(1440px,calc(100vw - 48px));height:min(900px,calc(100vh - 48px));overflow:hidden;border-radius:18px;background:#fff;box-shadow:0 28px 80px rgba(8,22,52,.3)}.product-content-dialog>header{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:17px 20px;border-bottom:1px solid var(--line)}.product-content-dialog>header h2{margin:3px 0 0;font-size:21px}.product-content-notice{display:grid;gap:3px;padding:11px 20px;border-bottom:1px solid #cbd9f6;background:#f0f5ff}.product-content-notice strong{color:#244a9f;font-size:13px}.product-content-notice span{color:#60708c;font-size:12px}.product-content-status{display:flex;align-items:center;gap:10px;min-height:49px;padding:9px 20px;border-bottom:1px solid var(--line);background:#fafbfe}.product-content-status strong{font-size:13px}.product-content-status span{color:var(--muted);font-size:12px}.product-content-status b{padding:5px 9px;border-radius:999px;background:#e9efff;color:#2852b6;font-size:11px}.product-content-status b.failed{background:#ffebeb;color:#ad2525}.product-content-status b.transmitted{background:#e7f7ee;color:#177240}.product-content-workspace{min-height:0;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:0}.product-content-editor-pane,.product-content-preview-pane{min-width:0;min-height:0;display:grid;grid-template-rows:auto auto minmax(0,1fr);border-right:1px solid var(--line)}.product-content-preview-pane{grid-template-rows:auto minmax(0,1fr);border-right:0;background:#f3f5f9}.product-content-pane-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 13px;border-bottom:1px solid var(--line);background:#f8f9fc}.product-content-pane-head strong{font-size:13px}.product-content-pane-head span{color:var(--muted);font-size:11px}.product-content-toolbar{display:flex;gap:6px;padding:8px 12px;border-bottom:1px solid var(--line);background:#fff}.product-content-toolbar button{min-height:34px;padding:0 11px;border:1px solid #d4dbe8;border-radius:8px;background:#fff;color:#44526a;font-weight:800;cursor:pointer}.product-content-toolbar button:hover{border-color:#9fb1d9;background:#f3f6fc}.product-content-editor-pane textarea{min-width:0;min-height:0;width:100%;height:100%;resize:none;padding:15px;border:0;outline:0;background:#111827;color:#dce6f6;font:13px/1.6 ui-monospace,SFMono-Regular,Consolas,monospace;tab-size:2}.product-content-preview-pane iframe{width:100%;height:100%;min-height:0;border:0;background:#fff}.product-content-actions{display:grid;grid-template-columns:auto minmax(12px,1fr) auto auto auto;align-items:center;gap:9px;padding:13px 18px;border-top:1px solid var(--line);background:#fff}.product-content-actions button{width:auto;min-height:43px}.product-content-actions .danger-button{background:#be2f2f;color:#fff;border-color:#be2f2f}.product-content-actions .danger-button:hover{background:#a92525}
@media(max-width:760px){.product-content-modal{padding:0}.product-content-dialog{width:100vw;height:100dvh;border-radius:0}.product-content-dialog>header{padding:13px 15px}.product-content-dialog>header h2{font-size:18px}.product-content-notice{padding:9px 15px}.product-content-status{padding:8px 15px;flex-wrap:wrap}.product-content-workspace{grid-template-columns:1fr;grid-template-rows:minmax(300px,55%) minmax(240px,45%);overflow:auto}.product-content-editor-pane,.product-content-preview-pane{border-right:0;border-bottom:1px solid var(--line)}.product-content-actions{grid-template-columns:1fr 1fr;gap:7px;padding:10px}.product-content-actions>span{display:none}.product-content-actions button{width:100%;min-height:42px}.product-content-actions #product-content-refresh{grid-column:1/-1}.product-content-actions #product-content-transmit{grid-column:1/-1}.product-drawer-head-actions{flex-wrap:wrap;justify-content:flex-end}.product-drawer-panel>header{align-items:flex-start}}
@media(max-width:390px){.product-content-toolbar{overflow-x:auto}.product-content-toolbar button{flex:0 0 auto}.product-content-workspace{grid-template-rows:minmax(280px,56%) minmax(220px,44%)}.product-content-editor-pane textarea{font-size:12px;padding:12px}.product-drawer-head-actions .secondary-button{max-width:92px;white-space:normal;text-align:center}}

/* Master product to channel-product management */
.product-list-panel{min-width:0;overflow:hidden}body[data-page="products"] .erp-workspace>.page-content{min-width:0;width:100%;max-width:none;margin:0}.product-table-wrap{min-width:0;max-width:100%;overflow-x:auto}.product-list-toolbar{flex-wrap:wrap}.product-summary{grid-template-columns:repeat(7,minmax(0,1fr))}.product-metric.pending{border-color:#f4c46d;background:#fffaf0}.product-view-tabs{display:flex;gap:4px;padding:0 0 14px;border-bottom:1px solid var(--line)}.product-view-tabs button{min-height:43px;padding:0 18px;border:1px solid var(--line);border-radius:10px 10px 0 0;background:#f6f8fc;color:#59667e;font-size:14px;font-weight:800}.product-view-tabs button.active{border-color:#8ba8e8;background:#edf3ff;color:#1e4ba9}.expand-column{width:42px}.product-expand-button{display:grid;place-items:center;width:31px;height:31px;border:1px solid #ccd5e5;border-radius:8px;background:#fff;color:#31558d;font-size:17px;font-weight:900}.product-table tr.master-product-row{background:#f3f7ff}.product-table tr.master-product-row>td{border-top:2px solid #d5e0f5}.product-table tr.channel-product-row>td{background:#fff;padding-top:10px;padding-bottom:10px}.product-table tr.channel-product-row.hidden{display:none}.channel-tree-mark{display:flex;align-items:center;gap:8px;padding-left:14px;color:#6680a6}.channel-tree-mark:before{content:'↳';font-size:18px}.channel-product-name{display:grid;gap:3px}.channel-product-name strong{font-size:14px}.channel-product-name span{color:var(--muted);font-size:13px}.channel-account{display:grid;gap:3px}.channel-account strong{font-size:14px}.channel-account span{color:var(--muted);font-size:13px}.channel-change-badge{display:inline-flex;align-items:center;width:max-content;padding:5px 9px;border-radius:999px;background:#fff0d5;color:#965900;font-size:13px;font-weight:900}.channel-change-badge.transmitted{background:#e4f6eb;color:#167040}.channel-change-badge.failed,.channel-change-badge.conflict{background:#ffe7e7;color:#aa2424}.master-edit-button,.channel-review-button{min-height:36px;padding:0 11px;border:1px solid #9fb5df;border-radius:9px;background:#fff;color:#244b9f;font-size:13px;font-weight:800}.channel-review-button{border-color:#efb34e;background:#fff7e8;color:#885000}.product-mobile-channel-list{display:grid;gap:8px;margin-top:12px;padding-top:12px;border-top:1px solid var(--line)}.product-mobile-channel{display:grid;gap:7px;padding:12px;border:1px solid #d9e1ef;border-radius:10px;background:#f9fbff}.product-mobile-channel header{display:flex;justify-content:space-between;gap:10px}.product-mobile-channel p{margin:0;color:#59667b;font-size:13px}.product-mobile-master-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:12px}
.master-product-modal[hidden],.channel-change-modal[hidden]{display:none}.master-product-modal,.channel-change-modal{position:fixed;inset:0;z-index:1250;display:grid;place-items:center;padding:24px}.master-product-backdrop{position:absolute;inset:0;width:100%;height:100%;border:0;background:rgba(12,24,48,.64)}.master-product-dialog,.channel-change-dialog{position:relative;display:grid;grid-template-rows:auto auto minmax(0,1fr);width:min(1320px,calc(100vw - 48px));height:min(860px,calc(100vh - 48px));overflow:hidden;border-radius:18px;background:#fff;box-shadow:0 28px 80px rgba(8,22,52,.32)}.channel-change-dialog{grid-template-rows:auto minmax(0,1fr) auto;width:min(760px,calc(100vw - 48px));height:auto;max-height:calc(100vh - 48px)}.master-product-dialog>header,.channel-change-dialog>header{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:18px 21px;border-bottom:1px solid var(--line)}.master-product-dialog>header h2,.channel-change-dialog>header h2{margin:3px 0 0;font-size:22px}.master-product-notice{display:grid;gap:4px;padding:12px 21px;border-bottom:1px solid #c9d8f3;background:#eff5ff}.master-product-notice strong{color:#224b9e;font-size:14px}.master-product-notice span{color:#5a6b87;font-size:13px}.master-product-dialog form{min-height:0;display:grid;grid-template-rows:minmax(0,1fr) auto}.master-product-workspace{min-height:0;display:grid;grid-template-columns:minmax(0,1fr) 360px}.master-product-main{min-width:0;overflow:auto;padding:22px}.master-product-main h3,.master-channel-apply h3{margin:0 0 13px;font-size:17px}.master-product-fields{display:grid;grid-template-columns:minmax(0,2fr) 1fr 1fr;gap:13px}.master-name-field{min-width:0}.master-product-field{display:grid;gap:7px;color:#45536c;font-size:14px;font-weight:800}.master-product-field input,.master-product-field select{width:100%;min-height:46px;border:1px solid #d7deec;border-radius:10px;padding:0 13px;background:#fff;color:#111d3b;font:inherit}.master-product-field input:focus,.master-product-field select:focus{outline:2px solid #1d58e8;outline-offset:1px}.master-option-head{display:flex;align-items:end;justify-content:space-between;gap:18px;margin-top:28px}.master-option-head h3{margin-bottom:4px}.master-option-head p{margin:0;color:var(--muted);font-size:13px}.master-option-head input{width:260px;min-height:42px;border:1px solid var(--line);border-radius:9px;padding:0 11px;font:inherit}.master-option-list{display:grid;margin-top:12px;border:1px solid var(--line);border-radius:12px;overflow:hidden}.master-option-row{display:grid;grid-template-columns:minmax(0,1fr) 150px minmax(280px,360px);align-items:center;gap:12px;padding:12px 14px;border-top:1px solid var(--line)}.master-option-row:first-child{border-top:0}.master-option-identity{display:grid;gap:3px;min-width:0}.master-option-identity strong{overflow-wrap:anywhere;font-size:14px}.master-option-identity small{color:var(--muted);font-size:13px}.master-option-price-field{display:grid;gap:5px}.master-option-price-field>span{color:var(--muted);font-size:11px;font-weight:800}.master-option-row input{width:100%;min-height:39px;border:1px solid var(--line);border-radius:8px;padding:0 9px;text-align:right;font:inherit}.master-option-mappings{display:grid;gap:7px;min-width:0}.master-option-mapping{display:flex;align-items:center;justify-content:space-between;gap:10px;min-width:0;padding:9px 10px;border:1px solid #dce4f0;border-radius:10px;background:#f8fafc}.master-option-mapping>div{display:grid;gap:2px;min-width:0}.master-option-mapping>div>span{color:var(--muted);font-size:11px;font-weight:800}.master-option-mapping strong{overflow-wrap:anywhere;font-size:13px}.master-option-mapping small{overflow-wrap:anywhere;color:var(--muted);font-size:12px}.master-option-mapping em{color:#9a6100;font-size:11px;font-style:normal;font-weight:800}.master-option-mapping.mapped{border-color:#b9dfd1;background:#f2fbf7}.master-option-mapping.mapped strong,.master-option-mapping.mapped em{color:#157148}.master-option-mapping.unavailable{background:#f6f7f9}.master-option-map-button{flex:0 0 auto;min-width:78px;min-height:44px;padding:0 12px}.master-option-empty{padding:28px;text-align:center;color:var(--muted);font-size:14px}#product-inventory-mapping-modal{z-index:1400}
.master-channel-apply{overflow:auto;padding:22px;border-left:1px solid var(--line);background:#f8f9fc}.master-field-checks,.master-channel-list{display:grid;gap:8px;margin-bottom:24px}.master-field-checks label,.master-channel-card{display:flex;align-items:flex-start;gap:9px;padding:11px 12px;border:1px solid #d8e0ed;border-radius:10px;background:#fff;font-size:14px;font-weight:700}.master-channel-card{display:grid;grid-template-columns:auto minmax(0,1fr);cursor:pointer}.master-channel-card strong,.master-channel-card span{display:block}.master-channel-card span{margin-top:3px;color:var(--muted);font-size:13px;font-weight:500;overflow-wrap:anywhere}.master-channel-card em{display:inline-flex;margin-top:6px;padding:3px 7px;border-radius:999px;background:#eef2f8;color:#56647a;font-size:13px;font-style:normal}.master-save-explain{display:grid;gap:4px;padding:13px;border-radius:10px;background:#fff3dc;color:#76500b}.master-save-explain span{font-size:13px;line-height:1.5}.master-product-actions{display:flex;justify-content:flex-end;gap:9px;padding:13px 20px;border-top:1px solid var(--line);background:#fff}.master-product-actions button{width:auto;min-height:43px}.channel-change-dialog #channel-change-content{overflow:auto;padding:22px}.channel-change-summary{display:grid;gap:15px}.channel-change-summary>div{padding:14px;border:1px solid var(--line);border-radius:11px}.channel-change-summary h3{margin:0 0 8px;font-size:16px}.channel-change-summary p{margin:4px 0;color:#536078;line-height:1.5}.channel-change-fields{display:flex;flex-wrap:wrap;gap:7px}.channel-change-fields span{padding:6px 9px;border-radius:999px;background:#e8efff;color:#244b9d;font-size:13px;font-weight:800}.channel-change-warning{border-color:#f2c167!important;background:#fff8ea}.channel-change-warning strong{color:#895400}.channel-change-targets{display:grid;grid-template-columns:1fr 1fr;gap:9px}.channel-change-targets span{display:grid;gap:3px;padding:10px;border-radius:8px;background:#f7f8fb;color:#56647b;font-size:13px}.channel-change-targets b{color:var(--text);font-size:14px}.sr-only{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}
@media(max-width:1180px){.product-summary{grid-template-columns:repeat(3,minmax(0,1fr))}.master-product-workspace{grid-template-columns:minmax(0,1fr) 320px}.master-product-fields{grid-template-columns:1fr 1fr}.master-name-field{grid-column:1/-1}.master-option-row{grid-template-columns:minmax(0,1fr) 130px minmax(240px,300px)}}
@media(max-width:760px){.product-summary{grid-template-columns:repeat(2,minmax(0,1fr))}.product-view-tabs{overflow-x:auto}.product-view-tabs button{flex:0 0 auto}.master-product-modal,.channel-change-modal{padding:0}.master-product-dialog,.channel-change-dialog{width:100vw;height:100dvh;max-height:none;border-radius:0}.master-product-workspace{display:block;overflow:auto}.master-product-main,.master-channel-apply{overflow:visible;padding:17px}.master-channel-apply{border-top:1px solid var(--line);border-left:0}.master-product-fields{grid-template-columns:1fr}.master-name-field{grid-column:auto}.master-option-head{align-items:stretch;flex-direction:column}.master-option-head input{width:100%}.master-option-row{grid-template-columns:minmax(0,1fr) 125px;align-items:start}.master-option-mappings{grid-column:1/-1}.master-product-actions{display:grid;grid-template-columns:1fr 1fr;padding:10px}.master-product-actions button{width:100%}.channel-change-targets{grid-template-columns:1fr}.channel-change-dialog #channel-change-content{padding:16px}}
@media(max-width:390px){.product-summary{grid-template-columns:1fr 1fr}.master-product-dialog>header,.channel-change-dialog>header{padding:14px 15px}.master-product-dialog>header h2,.channel-change-dialog>header h2{font-size:19px}.master-product-notice{padding:10px 15px}.master-option-row{grid-template-columns:1fr}.master-option-row input{text-align:left}.master-product-actions{grid-template-columns:1fr}.channel-change-dialog .master-product-actions{grid-template-columns:1fr 1fr}}
.master-image-field{grid-column:1/-1}.master-image-input{display:grid;grid-template-columns:56px minmax(0,1fr);gap:10px;align-items:center}.master-product-image-preview{display:grid;place-items:center;width:56px;height:56px;overflow:hidden;border:1px solid var(--line);border-radius:10px;background:#f3f5f9;color:var(--muted);font-size:10px;text-align:center}.master-product-image-preview img{display:block;width:100%;height:100%;object-fit:cover}.master-option-name-field,.master-option-price-field{display:grid;gap:6px;min-width:0}.master-option-name-field>span,.master-option-price-field>span{color:#5c6980;font-size:12px;font-weight:800}.master-option-name-field input,.master-option-price-field input{width:100%;min-width:0;min-height:44px;border:1px solid #d6deeb;border-radius:9px;padding:0 11px;background:#fff;color:var(--navy);font:inherit}.master-option-name-field input{text-align:left}.master-option-price-field input{text-align:right}.channel-change-field-picker{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;padding:14px;border:1px solid #9eb8eb;border-radius:11px;background:#f3f7ff}.channel-change-field-picker legend{padding:0 6px;color:#244b9d;font-size:14px;font-weight:900}.channel-change-field-choice{display:flex;align-items:center;gap:8px;min-height:44px;padding:9px 11px;border:1px solid #d5dff1;border-radius:9px;background:#fff;color:#27364f;font-size:14px;font-weight:800}.channel-change-field-choice input{width:18px;height:18px}.channel-change-history{display:grid;gap:7px;border-color:#a9d5be!important;background:#f2fbf6}.channel-change-history>strong{color:#16663b}.channel-change-history>span{padding:7px 9px;border-radius:8px;background:#fff;color:#345545;font-size:13px;font-weight:750}@media(max-width:760px){.channel-change-field-picker{grid-template-columns:1fr}}@media(max-width:390px){.master-image-input{grid-template-columns:48px minmax(0,1fr)}.master-product-image-preview{width:48px;height:48px}.channel-change-dialog .master-product-actions{grid-template-columns:1fr}.channel-change-field-choice{min-height:46px}}.master-product-actions button,.channel-change-dialog .master-product-actions button{min-height:44px}.master-product-dialog .inventory-dialog-close,.channel-change-dialog .inventory-dialog-close{width:44px;height:44px;min-height:44px}

.channel-row-actions{display:grid;gap:6px;min-width:118px}.channel-edit-button,.channel-review-button{display:inline-flex;align-items:center;justify-content:center;min-height:38px;padding:7px 10px;border-radius:8px;font-size:13px;font-weight:850;white-space:nowrap}.channel-edit-button{border:1px solid #9db4dc;background:#f2f6ff;color:#244b91}.channel-edit-button:hover{background:#e6efff}.channel-editor-identity{display:flex;align-items:center;flex-wrap:wrap;gap:9px;margin-bottom:16px;padding:12px 14px;border:1px solid #d9e3f2;border-radius:11px;background:#f7f9fd}.channel-editor-identity strong{font-size:14px}.channel-editor-identity em{margin-left:auto;color:#745410;font-size:13px;font-style:normal;font-weight:800}.channel-option-stock-summary{display:grid;gap:4px;padding:10px 12px;border:1px solid #d9e2ef;border-radius:9px;background:#f8fafc}.channel-option-stock-summary strong{color:#31568e;font-size:13px}.channel-option-stock-summary span{color:#5b687d;font-size:12px;line-height:1.4}.channel-option-stock-summary.unmapped{border-color:#edcf90;background:#fff9ec}.channel-option-stock-summary.unmapped strong{color:#8a5a00}.master-option-name-field small{color:#718096;font-size:12px;overflow-wrap:anywhere}.channel-product-editor-dialog{height:min(880px,calc(100vh - 48px))}.channel-product-apply-fields{min-width:0}.channel-product-editor-modal .inventory-form-field input,.channel-product-editor-modal .inventory-form-field select,#channel-product-option-search{min-height:44px}.channel-product-editor-modal .master-field-checks label{min-height:44px;align-items:center}@media(max-width:760px){.channel-row-actions{grid-template-columns:1fr 1fr}.channel-edit-button,.channel-review-button{min-height:44px}.channel-editor-identity em{width:100%;margin-left:0}.channel-product-editor-dialog{height:100dvh}}@media(max-width:390px){.channel-row-actions{grid-template-columns:1fr}.channel-product-option-row{grid-template-columns:1fr}.channel-product-option-row .channel-option-stock-summary{grid-column:1}.channel-product-editor-dialog>header h2{font-size:18px}}

.channel-option-group-head{display:grid;grid-template-columns:minmax(420px,1fr) 130px minmax(240px,300px);align-items:stretch;gap:10px;padding:10px 12px;border:1px solid #cbd7e6;border-radius:10px 10px 0 0;background:#eef3f8;color:#4d6077;font-size:12px;font-weight:850}.channel-option-group-label{display:block;min-width:0}.channel-option-group-label>div{display:grid;gap:7px;min-width:0}.channel-option-group-name{min-width:0;padding:7px 9px;border-radius:6px;background:#dbe6f2;color:#294c72;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.channel-product-option-row{grid-template-columns:minmax(420px,1fr) 130px minmax(240px,300px);align-items:start;border-radius:0}.channel-option-name-groups{display:grid;grid-template-columns:repeat(3,minmax(120px,1fr));gap:10px;min-width:0}.channel-option-name-groups label{min-width:0}.channel-option-name-groups input{width:100%;min-width:0;min-height:44px;border:1px solid #d6deeb;border-radius:9px;padding:0 10px;background:#fff;color:var(--navy);font:inherit}.channel-option-name-groups small{grid-column:1/-1;color:#718096;font-size:12px;overflow-wrap:anywhere}.channel-product-option-row .master-option-price-field{min-width:0}.channel-product-option-row .master-option-price-field input{min-height:44px}@media(max-width:900px){.channel-option-group-head,.channel-product-option-row{grid-template-columns:minmax(360px,1fr) 110px minmax(220px,1fr)}.channel-option-group-label{grid-template-columns:92px minmax(0,1fr)}.channel-option-name-groups{grid-template-columns:repeat(3,minmax(100px,1fr))}}@media(max-width:760px){.channel-option-group-head{display:none}.channel-product-option-row{grid-template-columns:1fr}.channel-option-name-groups{grid-template-columns:1fr 1fr!important}.channel-option-name-groups small{grid-column:1/-1}}@media(max-width:390px){.channel-option-name-groups{grid-template-columns:1fr!important}.channel-product-option-row{grid-template-columns:1fr}}

/* Channel-option to own-SKU automatic and Excel mapping */
.product-list-toolbar .bulk-actions{flex-wrap:wrap}.product-list-toolbar .bulk-actions a{text-decoration:none;display:inline-flex;align-items:center;justify-content:center}
.product-bulk-mapping-modal[hidden]{display:none}.product-bulk-mapping-modal{position:fixed;inset:0;z-index:1320;display:grid;place-items:center;padding:24px}.product-bulk-mapping-backdrop{position:absolute;inset:0;width:100%;height:100%;border:0;background:rgba(12,24,48,.66)}.product-bulk-mapping-dialog{position:relative;display:grid;grid-template-rows:auto auto minmax(0,1fr) auto;width:min(1240px,calc(100vw - 48px));height:min(820px,calc(100dvh - 48px));overflow:hidden;border:1px solid #dce4f0;border-radius:20px;background:#fff;box-shadow:0 28px 80px rgba(7,20,46,.28)}.product-bulk-mapping-dialog>header{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:17px 21px;border-bottom:1px solid var(--line)}.product-bulk-mapping-dialog>header h2{margin:4px 0 0;font-size:21px}.product-bulk-mapping-notice{display:flex;align-items:center;gap:14px;padding:12px 21px;border-bottom:1px solid #eadcb4;background:#fff9e8}.product-bulk-mapping-notice strong{color:#684d00}.product-bulk-mapping-notice span{color:#665d49;font-size:13px}.product-bulk-mapping-content{min-width:0;overflow:auto;padding:18px 21px}.product-bulk-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}.product-bulk-summary article{padding:14px 16px;border:1px solid var(--line);border-radius:13px;background:#f8fafc}.product-bulk-summary span,.product-bulk-summary strong{display:block}.product-bulk-summary span{color:var(--muted);font-size:12px;font-weight:850}.product-bulk-summary strong{margin-top:5px;color:var(--navy);font-size:25px}.product-bulk-summary .auto,.product-bulk-summary .create{border-color:#9dd9c3;background:#eefaf5}.product-bulk-summary .review,.product-bulk-summary .change{border-color:#f2ce7b;background:#fff9e9}.product-bulk-summary .ambiguous,.product-bulk-summary .error{border-color:#efaca4;background:#fff3f1}.product-bulk-explain{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:18px 0 9px}.product-bulk-explain span{color:var(--muted);font-size:12px}.product-bulk-table-wrap{min-width:0;overflow-x:auto;border:1px solid var(--line);border-radius:13px}.product-bulk-table{width:100%;min-width:980px;border-collapse:collapse}.product-bulk-table th{padding:10px 11px;background:#f4f7fb;color:#53627a;font-size:11px;text-align:left}.product-bulk-table td{padding:11px;border-top:1px solid #e7edf5;vertical-align:top}.product-bulk-table td:nth-child(1){width:125px}.product-bulk-table td:nth-child(2){min-width:310px}.product-bulk-table td:nth-child(3),.product-bulk-table td:nth-child(4){min-width:170px}.product-bulk-table td strong,.product-bulk-table td small,.product-bulk-table td span{display:block}.product-bulk-table td small{margin-top:4px;color:var(--muted);font-size:11px}.product-bulk-table code{font-size:12px;overflow-wrap:anywhere}.bulk-match-state{display:inline-flex!important;width:max-content;padding:4px 8px;border-radius:999px;font-size:11px;font-weight:900}.bulk-match-state.auto{background:#dff6ed;color:#08745e}.bulk-match-state.review{background:#fff0c7;color:#8a5a00}.bulk-match-state.ambiguous{background:#ffe3df;color:#a03c31}.bulk-match-state.unmatched{background:#edf1f6;color:#566174}.product-bulk-mapping-actions{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:13px 21px;border-top:1px solid var(--line);background:#fff}.product-bulk-mapping-actions>span{color:var(--muted);font-size:12px;font-weight:800}.product-bulk-mapping-actions>div{display:flex;gap:8px}.product-bulk-file,.product-bulk-valid,.product-bulk-error,.product-bulk-errors,.product-bulk-complete{display:flex;flex-direction:column;gap:6px;padding:15px 17px;border-radius:13px}.product-bulk-file{margin-bottom:12px;border:1px solid #cad8ec;background:#f5f8fd}.product-bulk-file span,.product-bulk-valid span,.product-bulk-complete span{color:var(--muted);font-size:12px}.product-bulk-valid{margin-top:14px;border:1px solid #9dd9c3;background:#eefaf5;color:#08745e}.product-bulk-error,.product-bulk-errors{margin-top:14px;border:1px solid #efaca4;background:#fff3f1;color:#9d3228}.product-bulk-errors p{margin:3px 0;font-size:12px}.product-bulk-complete{align-items:center;justify-content:center;min-height:270px;text-align:center;background:#f0f8ff}.product-bulk-complete strong{color:var(--blue);font-size:26px}.product-bulk-complete em{margin-top:9px;color:#08745e;font-style:normal;font-weight:850}
@media(max-width:760px){.product-list-toolbar .bulk-actions{display:grid;grid-template-columns:1fr 1fr;width:100%}.product-list-toolbar .bulk-actions>*{width:100%;min-width:0}.product-bulk-mapping-modal{padding:0}.product-bulk-mapping-dialog{width:100vw;height:100dvh;max-height:none;border-radius:0}.product-bulk-mapping-dialog>header{padding:14px 15px}.product-bulk-mapping-dialog>header h2{font-size:18px}.product-bulk-mapping-notice{align-items:flex-start;flex-direction:column;gap:3px;padding:10px 15px}.product-bulk-mapping-content{padding:14px 15px}.product-bulk-summary{grid-template-columns:1fr 1fr}.product-bulk-summary article{padding:11px 12px}.product-bulk-summary strong{font-size:21px}.product-bulk-explain{align-items:flex-start;flex-direction:column;gap:3px}.product-bulk-table-wrap{overflow:visible;border:0}.product-bulk-table{display:block;width:100%;min-width:0}.product-bulk-table thead{display:none}.product-bulk-table tbody{display:grid;gap:10px}.product-bulk-table tr{display:block;padding:11px 12px;border:1px solid var(--line);border-radius:13px;background:#fff}.product-bulk-table td{display:grid;grid-template-columns:88px minmax(0,1fr);gap:8px;width:auto!important;min-width:0!important;padding:7px 0;border:0;border-bottom:1px dashed #e0e7f0}.product-bulk-table td:last-child{border-bottom:0}.product-bulk-table td:before{color:var(--muted);font-size:11px;font-weight:850}.product-bulk-table td:nth-child(1):before{content:'판정'}.product-bulk-table td:nth-child(2):before{content:'상품·옵션'}.product-bulk-table td:nth-child(3):before{content:'판매자코드'}.product-bulk-table td:nth-child(4):before{content:'추천 SKU'}.product-bulk-table td:nth-child(5):before{content:'근거'}.product-bulk-mapping-actions{align-items:stretch;flex-direction:column;padding:10px 15px}.product-bulk-mapping-actions>div{display:grid;grid-template-columns:1fr 1fr}.product-bulk-mapping-actions button{width:100%}.product-bulk-complete{min-height:220px}.product-bulk-complete strong{font-size:22px}}

/* Selective marketplace product import */
.product-import-modal[hidden]{display:none}.product-import-modal{position:fixed;inset:0;z-index:1300;display:grid;place-items:center;padding:24px}.product-import-backdrop{position:absolute;inset:0;width:100%;height:100%;border:0;background:rgba(12,24,48,.66)}.product-import-dialog{position:relative;display:grid;grid-template-rows:auto auto minmax(0,1fr) auto;width:min(1180px,calc(100vw - 48px));height:min(820px,calc(100dvh - 48px));overflow:hidden;border-radius:18px;background:#fff;box-shadow:0 28px 80px rgba(8,22,52,.34)}.product-import-dialog>header{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:18px 22px;border-bottom:1px solid var(--line)}.product-import-dialog>header h2{margin:3px 0 0;font-size:22px}.product-import-notice{display:grid;gap:4px;padding:12px 22px;border-bottom:1px solid #c9d8f3;background:#eff5ff}.product-import-notice strong{color:#224b9e;font-size:14px}.product-import-notice span{color:#5a6b87;font-size:13px}.product-import-body{min-width:0;overflow:auto;padding:20px 22px}.product-import-query{display:grid;grid-template-columns:minmax(280px,1fr) 120px 110px;align-items:end;gap:10px;padding:15px;border:1px solid #dbe3f0;border-radius:12px;background:#f8faff}.product-import-query select{min-height:46px}.product-import-query button{min-height:46px}.product-import-result-head{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:20px 0 11px}.product-import-result-head>div{display:grid;gap:4px}.product-import-result-head strong{font-size:17px}.product-import-result-head span{color:var(--muted);font-size:13px}.product-import-select-all{display:flex;align-items:center;gap:8px;min-height:44px;padding:0 12px;border:1px solid var(--line);border-radius:9px;background:#fff;font-size:14px;font-weight:800}.product-import-table-wrap{min-width:0;overflow:auto;border:1px solid var(--line);border-radius:12px}.product-import-table{width:100%;min-width:850px;border-collapse:collapse}.product-import-table th,.product-import-table td{padding:12px 13px;border-bottom:1px solid var(--line);text-align:left;font-size:14px;vertical-align:middle}.product-import-table th{background:#f5f7fb;color:#52617a;font-size:13px}.product-import-table tr:last-child td{border-bottom:0}.product-import-info{display:flex;align-items:center;gap:11px;min-width:0}.product-import-info img,.product-import-image-empty{flex:0 0 52px;width:52px;height:52px;border-radius:9px;object-fit:cover;background:#edf1f7}.product-import-image-empty{display:grid;place-items:center;color:#7a879d;font-size:11px}.product-import-info>span{display:grid;gap:4px;min-width:0}.product-import-info strong{overflow-wrap:anywhere}.product-import-info small{color:var(--muted);font-size:12px}.product-import-info b{font-size:14px}.product-import-info em{color:#52617a;font-size:12px;font-style:normal}.product-import-existing{display:inline-flex;padding:5px 8px;border-radius:999px;font-size:12px;font-weight:900}.product-import-existing.yes{background:#e6f5ec;color:#176c43}.product-import-existing.no{background:#fff3dc;color:#8a5900}.product-import-empty{padding:34px;text-align:center;color:var(--muted);font-size:14px}.product-import-mobile-list{display:none}.product-import-pagination{display:flex;align-items:center;justify-content:center;gap:12px;margin-top:14px}.product-import-pagination button{min-width:74px;min-height:42px;border:1px solid var(--line);border-radius:9px;background:#fff;font-weight:800}.product-import-pagination span{min-width:110px;text-align:center;color:#52617a;font-size:14px;font-weight:800}.product-import-actions{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:13px 22px;border-top:1px solid var(--line);background:#fff}.product-import-actions>span{color:#244b9f;font-weight:900}.product-import-actions>div{display:flex;gap:9px}.product-import-actions button{width:auto;min-height:44px;padding:0 18px;border-radius:9px;font-weight:900}.product-import-actions #start-product-import{border:1px solid #173d91;background:#173d91;color:#fff}.product-import-actions #start-product-import:disabled{border-color:#d9dfeb;background:#edf0f5;color:#98a2b5}
@media(max-width:760px){.product-import-modal{padding:0}.product-import-dialog{width:100vw;height:100dvh;border-radius:0}.product-import-dialog>header{padding:14px 16px}.product-import-dialog>header h2{font-size:20px}.product-import-notice{padding:10px 16px}.product-import-body{padding:15px 14px}.product-import-query{grid-template-columns:1fr}.product-import-query button{width:100%}.product-import-result-head{align-items:stretch;flex-direction:column}.product-import-select-all{width:max-content}.product-import-table-wrap{display:none}.product-import-mobile-list{display:grid;gap:9px}.product-import-mobile-card{display:grid;grid-template-columns:auto minmax(0,1fr);gap:10px;padding:13px;border:1px solid #dbe2ee;border-radius:12px;background:#fff}.product-import-mobile-card>input{width:20px;height:20px;margin-top:16px}.product-import-info img,.product-import-image-empty{flex-basis:62px;width:62px;height:62px}.product-import-actions{align-items:stretch;flex-direction:column;padding:10px 14px}.product-import-actions>div{display:grid;grid-template-columns:1fr 1fr}.product-import-actions button{width:100%}}
@media(max-width:390px){.product-import-dialog>header h2{font-size:19px}.product-import-notice span{font-size:12px}.product-import-actions>div{grid-template-columns:1fr}.product-import-pagination{gap:7px}.product-import-pagination span{min-width:90px}}
.product-import-channel-field{min-width:0;margin:0;padding:0;border:0}.product-import-channel-field legend{margin:0 0 7px;color:#36445d;font-size:13px;font-weight:800}.product-import-channel-field legend small{margin-left:5px;color:#5874aa;font-size:12px}.product-import-channel-checks{display:flex;flex-wrap:wrap;gap:8px;min-height:46px;max-height:132px;overflow:auto;padding:7px;border:1px solid #cfd8e7;border-radius:9px;background:#fff}.product-import-channel-option{display:flex;align-items:center;gap:9px;min-width:190px;min-height:46px;padding:7px 10px;border:1px solid #dbe3ef;border-radius:9px;background:#f9fbfe;cursor:pointer}.product-import-channel-option:has(input:checked){border-color:#7ca2e8;background:#edf4ff;box-shadow:inset 0 0 0 1px #7ca2e8}.product-import-channel-option input{width:20px;height:20px;flex:0 0 auto;accent-color:#315fb4}.product-import-channel-option span{display:grid;gap:2px;min-width:0}.product-import-channel-option strong{overflow:hidden;color:#1e2f4d;font-size:13px;text-overflow:ellipsis;white-space:nowrap}.product-import-channel-option small,.product-import-channel-empty{color:#738096;font-size:11px}.product-import-channel-option.disabled{cursor:not-allowed;opacity:.55}.product-import-channel-badge{display:block;color:#294f96;font-weight:800}.product-import-account{display:block;margin-top:3px;color:#7b879a;font-size:11px}
@media(max-width:760px){.product-import-channel-checks{display:grid;grid-template-columns:1fr;max-height:156px}.product-import-channel-option{min-width:0;width:100%}}
@media(max-width:390px){.product-import-channel-option{min-height:44px}.product-import-channel-checks{padding:6px}}

/* Grouped product-management workspace */
.product-management-layout{display:grid;grid-template-columns:250px minmax(0,1fr);grid-template-areas:"filters summary" "filters list";align-items:start;gap:16px;margin-bottom:18px}
.product-management-layout>.product-filter-panel{grid-area:filters;position:sticky;top:92px;margin:0;padding:18px 16px;border:1px solid #dfe5ef;border-radius:14px;background:#fff;box-shadow:0 6px 20px rgba(16,28,58,.045)}
.product-management-layout>.product-summary{grid-area:summary;display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:9px;margin:0}
.product-management-layout>.product-list-panel{grid-area:list;margin:0;border:1px solid #dfe5ef;border-radius:14px;background:#fff;box-shadow:0 6px 20px rgba(16,28,58,.045)}
.product-filter-panel .filter-title{display:flex;align-items:flex-start;justify-content:space-between;gap:8px;margin-bottom:16px}.product-filter-panel .filter-title h2{margin:4px 0 0;font-size:17px}.product-filter-panel .filter-title .eyebrow{margin:0;font-size:10px;letter-spacing:.08em}.product-reset-button{min-height:36px;padding:0 9px;border:1px solid #d7dfec;border-radius:8px;background:#f8faff;color:#5a6880;font-size:12px;font-weight:800;cursor:pointer}.product-filter-grid{display:grid;grid-template-columns:1fr;gap:10px}.product-filter-grid .product-keyword{grid-column:auto}.product-filter-grid .form-field>span{font-size:12px}.product-search-button{width:100%;margin-top:3px}.product-filter-panel:before{content:'목록 조건';display:block;margin-bottom:9px;color:#8994a7;font-size:11px;font-weight:900;letter-spacing:.04em}.product-metric{min-height:84px;padding:13px 14px;border-radius:11px;box-shadow:none}.product-metric span{font-size:11px}.product-metric strong{margin-top:5px;font-size:24px}.product-list-toolbar{min-height:70px;padding:13px 16px;border-bottom:1px solid var(--line);background:#fff}.product-list-title{display:flex;align-items:center;gap:9px}.product-list-title strong{font-size:17px}.product-list-title span{padding:4px 8px;border-radius:999px;background:#f1f4f9;color:#65728a;font-size:11px;font-weight:800}.product-list-title #product-selected-label{background:#edf4ff;color:#2753aa}.product-view-tabs{padding:12px 16px 0;background:#f8faff}.product-view-tabs button{border-bottom-left-radius:0;border-bottom-right-radius:0}.product-table thead th{background:#eef3f8;color:#4f6078;border-top:0;font-size:11px}.product-table tr.master-product-row{background:#eaf2ff}.product-table tr.master-product-row>td{border-top:2px solid #b9cceb;border-bottom:1px solid #cdd9eb}.product-table tr.master-product-row>td:nth-child(3){font-size:14px}.product-table tr.channel-product-row>td{border-top:1px solid #edf0f5}.product-table tr.channel-product-row>td:first-child{background:linear-gradient(90deg,#f8fbff 0,#fff 100%)}.product-table tr.channel-product-row .channel-product-name{padding-left:7px}.channel-tree-mark:before{content:'└';color:#8aa0bf}.channel-tree-mark:after{content:'';position:absolute}.master-edit-button,.channel-edit-button,.channel-review-button{min-height:36px}.product-empty{margin:16px}
@media(max-width:1200px){.product-management-layout{grid-template-columns:220px minmax(0,1fr)}.product-management-layout>.product-summary{grid-template-columns:repeat(4,minmax(0,1fr))}.product-management-layout>.product-summary .product-metric:nth-child(n+5){display:none}}
@media(max-width:760px){.product-management-layout{display:flex;flex-direction:column;gap:12px}.product-management-layout>.product-filter-panel{position:static;width:100%;order:1}.product-management-layout>.product-summary{order:2;width:100%;grid-template-columns:repeat(2,minmax(0,1fr))}.product-management-layout>.product-list-panel{order:3;width:100%}.product-filter-panel .filter-title{align-items:center}.product-filter-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.product-filter-grid .product-keyword,.product-search-button{grid-column:1/-1}.product-list-toolbar{align-items:stretch;gap:10px}.product-list-toolbar .bulk-actions{width:100%}.product-view-tabs{padding-left:12px;padding-right:12px}.product-table-wrap{display:none}}
@media(max-width:390px){.product-management-layout>.product-summary{grid-template-columns:1fr 1fr}.product-filter-panel{padding:15px 13px!important}.product-filter-grid{grid-template-columns:1fr}.product-filter-grid .product-keyword,.product-search-button{grid-column:auto}.product-list-toolbar{padding:12px}.product-list-title{flex-wrap:wrap}.product-list-title strong{width:100%}.product-list-toolbar .bulk-actions{display:grid;grid-template-columns:1fr 1fr}.product-list-toolbar .bulk-actions>*{width:100%;min-width:0}.product-view-tabs button{padding-left:12px;padding-right:12px}}

/* Product list viewport: keep the summary, actions, and column headings in view. */
@media(min-width:761px){
  body[data-page="products"] .product-management-layout{position:sticky;top:0;z-index:20;height:calc(100dvh - 190px);min-height:520px;grid-template-rows:auto minmax(0,1fr);overflow:hidden;background:var(--bg)}
  body[data-page="products"] .product-management-layout>.product-filter-panel{min-height:0;overflow:auto}
  body[data-page="products"] .product-management-layout>.product-list-panel{display:grid;grid-template-rows:auto auto minmax(0,1fr) auto;height:100%;max-height:100%;min-height:0;overflow:hidden}
  body[data-page="products"] .product-list-panel>.product-view-tabs{grid-row:1}
  body[data-page="products"] .product-list-panel>.product-list-toolbar{grid-row:2}
  body[data-page="products"] .product-list-panel>.product-table-wrap{grid-row:3;min-height:0;overflow-x:scroll;overflow-y:auto;scrollbar-gutter:stable}
  body[data-page="products"] .product-list-panel>.product-list-footer{grid-row:4}
  body[data-page="products"] .product-list-panel>.product-mobile-list,body[data-page="products"] .product-list-panel>.product-empty{grid-row:3;min-height:0}
}
@media(max-width:760px){
  body[data-page="products"] .product-list-panel{display:flex;flex-direction:column;min-height:0}
  body[data-page="products"] .product-table-wrap{overflow-y:auto}
}

/* Excel-style product column resizing */
.product-table-wrap{min-width:0;max-width:100%;overflow-x:scroll;overflow-y:auto;scrollbar-gutter:stable}.product-floating-horizontal-scroll{position:fixed;z-index:1100;bottom:10px;height:18px;overflow-x:scroll;overflow-y:hidden;border:1px solid #b8c3d2;border-radius:5px;background:#edf1f6;box-shadow:0 4px 14px rgba(22,35,58,.22)}.product-floating-horizontal-scroll[hidden]{display:none}.product-floating-horizontal-scroll>div{height:1px}.product-table{width:var(--product-table-width,1450px);min-width:var(--product-table-width,1450px);table-layout:fixed}.product-table col{width:auto}.product-table th{position:relative;overflow:visible;white-space:nowrap}.product-column-resizer{position:absolute;z-index:3;top:0;right:-4px;bottom:0;width:8px;display:block;cursor:col-resize;border-right:2px solid transparent}.product-column-resizer:hover,.product-column-resizer:focus-visible{border-right-color:#3c72d8;background:rgba(60,114,216,.12);outline:0}.product-column-resizer:after{content:'';position:absolute;top:50%;left:2px;width:2px;height:20px;transform:translateY(-50%);border-radius:2px;background:transparent}.product-column-resizer:hover:after,.product-column-resizer:focus-visible:after{background:#3c72d8}.product-table td{overflow:hidden;text-overflow:ellipsis}.product-table .product-main-cell,.product-table .channel-product-name,.product-table .channel-account{min-width:0;overflow:hidden}.product-table .product-main-cell>span:last-child,.product-table .channel-product-name>strong,.product-table .channel-product-name>span,.product-table .channel-account>strong,.product-table .channel-account>span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.product-table th[data-product-column="product"],.product-table td:nth-child(3){padding-left:12px;padding-right:12px}.product-column-resizing,.product-column-resizing *{cursor:col-resize!important;user-select:none!important}.product-column-resizing .product-table-wrap{cursor:col-resize}
@media(max-width:760px){.product-column-resizer{display:none}.product-floating-horizontal-scroll{display:none!important}.product-table{width:100%;min-width:0;table-layout:auto}}
@media(min-width:761px){body[data-page="products"] .product-table thead th{position:sticky;top:0;z-index:5;background:#eef3f8;box-shadow:0 1px 0 #cbd6e4}body[data-page="products"] .product-table thead th .product-column-resizer{right:0}}

/* Official carrier tracking lookup */

/* Juhora / NC-inspired utility controls */
:root{--juhora-purple:#7234e0;--juhora-purple-strong:#482486;--juhora-purple-subtle:#e8d6ff;--juhora-faint:#f6eeff;--juhora-ink:#0f1011;--juhora-muted:#62626a;--juhora-line:#ebebeb}
.product-import-query{grid-template-columns:minmax(0,1fr) 132px 104px;align-items:end;background:#f7f7f8;border-color:var(--juhora-line);box-shadow:none}
.product-import-query .product-import-page-size{display:grid;grid-template-columns:1fr;gap:6px;min-width:0;color:var(--juhora-muted);font-size:12px;font-weight:700;white-space:nowrap}
.product-import-query .product-import-page-size select{width:100%;min-width:0;height:46px;padding:0 28px 0 12px;border:1px solid #bdbdc1;border-radius:6px;background:#fff;color:var(--juhora-ink);font-size:14px}
.product-import-query>#query-product-import{width:100%;border-radius:6px;background:var(--juhora-purple);box-shadow:none}
.product-import-query>#query-product-import:hover{background:var(--juhora-purple-strong)}
.product-import-pagination button,.product-import-actions button,.product-import-select-all{border-radius:6px;box-shadow:none}
.product-import-pagination button{min-height:44px;border-color:#bdbdc1;background:#fff;color:var(--juhora-ink)}
.product-import-pagination button:not(:disabled):hover{border-color:var(--juhora-purple);color:var(--juhora-purple)}
.product-import-pagination span{color:var(--juhora-muted)}
.product-import-dialog{border:1px solid var(--juhora-line);box-shadow:none}
.product-import-dialog>header h2,.product-import-result-head strong{color:var(--juhora-ink)}
.product-import-notice{background:var(--juhora-faint);border-bottom-color:var(--juhora-purple-subtle)}
.product-import-notice strong{color:var(--juhora-purple-strong)}
@media(max-width:760px){.product-import-query{grid-template-columns:1fr}.product-import-query .product-import-page-size{width:100%}.product-import-query>#query-product-import{width:100%}}

.tracking-lookup-button{min-height:32px;margin-top:8px;padding:5px 10px;border:1px solid #9db7ea;border-radius:8px;background:#eff5ff;color:#1f4fa8;font-size:12px;font-weight:900;cursor:pointer}.tracking-lookup-button:hover{border-color:#587fcf;background:#e4eeff}.tracking-editor .tracking-lookup-button{grid-column:1/-1;width:100%;margin-top:0}.saved-tracking{display:grid;align-items:start}.saved-tracking .tracking-lookup-button{width:max-content}.order-detail-section-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:13px}.order-detail-section-head h3{margin:0}.order-detail-section-head .tracking-lookup-button{margin:0}.order-detail-tracking-list{display:grid;gap:8px}.order-detail-tracking-list>div{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 12px;border:1px solid #e1e7f0;border-radius:10px;background:#f8faff}.order-detail-tracking-list strong{font-size:13px}.order-detail-tracking-list code{color:#30415d;font-size:12px;overflow-wrap:anywhere}
.tracking-lookup-layer{position:fixed;inset:0;z-index:120;display:grid;place-items:center;padding:20px}.tracking-lookup-layer[hidden]{display:none}.tracking-lookup-backdrop{position:absolute;inset:0;width:100%;height:100%;border:0;background:rgba(13,24,45,.58);cursor:default}.tracking-lookup-dialog{position:relative;z-index:1;width:min(760px,100%);max-height:calc(100dvh - 40px);display:grid;grid-template-rows:auto minmax(0,1fr) auto;overflow:hidden;border-radius:20px;background:#fff;box-shadow:0 28px 80px rgba(8,20,43,.32)}.tracking-lookup-head{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;padding:20px 22px;border-bottom:1px solid var(--line);background:linear-gradient(120deg,#fff 0%,#f1f6ff 100%)}.tracking-lookup-head h2{margin:4px 0 5px;font-size:23px}.tracking-lookup-head p:last-child{margin:0;color:var(--muted);font-size:13px}.tracking-lookup-list{min-height:150px;display:grid;gap:10px;overflow:auto;padding:20px 22px;background:#f7f9fc}.tracking-lookup-item{min-width:0;display:grid;grid-template-columns:minmax(150px,1fr) minmax(150px,1fr) auto;align-items:center;gap:14px;padding:15px;border:1px solid #dce4f1;border-radius:13px;background:#fff}.tracking-lookup-number{min-width:0;display:flex;align-items:center;gap:11px}.tracking-lookup-number>span{width:32px;height:32px;display:grid;place-items:center;flex:0 0 auto;border-radius:9px;background:#e8f0ff;color:#2453ae;font-size:12px;font-weight:900}.tracking-lookup-number>div{min-width:0;display:grid;gap:3px}.tracking-lookup-number strong{overflow:hidden;font-size:14px;text-overflow:ellipsis;white-space:nowrap}.tracking-lookup-number small{color:var(--muted);font-size:11px}.tracking-lookup-item>code{min-width:0;color:#263955;font-size:13px;overflow-wrap:anywhere}.tracking-official-link{min-height:38px;display:inline-flex;align-items:center;justify-content:center;padding:0 13px;text-decoration:none;white-space:nowrap}.tracking-lookup-unsupported{padding:7px 9px;border-radius:8px;background:#f0f1f4;color:#737d8e;font-size:12px;font-weight:800}.tracking-lookup-error{padding:18px;border:1px solid #efc7c7;border-radius:12px;background:#fff3f3;color:#9b2929}.tracking-lookup-footer{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:14px 22px;border-top:1px solid var(--line)}.tracking-lookup-footer p{margin:0;color:var(--muted);font-size:12px;line-height:1.5}.tracking-lookup-footer button{flex:0 0 auto}
@media(max-width:760px){.tracking-lookup-layer{padding:0}.tracking-lookup-dialog{width:100vw;height:100dvh;max-height:none;border-radius:0}.tracking-lookup-head{padding:16px}.tracking-lookup-head h2{font-size:20px}.tracking-lookup-list{align-content:start;padding:14px}.tracking-lookup-item{grid-template-columns:minmax(0,1fr) auto;gap:10px}.tracking-lookup-item>code{grid-column:1/-1;padding:8px 10px;border-radius:8px;background:#f5f7fb}.tracking-official-link,.tracking-lookup-unsupported{grid-column:1/-1;width:100%}.tracking-lookup-footer{padding:11px 14px}.tracking-lookup-footer p{font-size:11px}.tracking-lookup-footer button{min-width:78px}.order-detail-section-head{align-items:flex-start;flex-direction:column}.order-detail-section-head .tracking-lookup-button{width:100%}.order-detail-tracking-list>div{align-items:flex-start;flex-direction:column}.order-detail-tracking-list code{width:100%}}

/* Figma ERP dashboard pilot · 2026-08-02 */
:root{--erp-radius-sm:8px;--erp-radius-md:12px;--erp-radius-lg:16px;--erp-radius-xl:20px;--erp-panel-shadow:0 8px 28px rgba(16,28,58,.06);--erp-focus-ring:0 0 0 3px rgba(37,87,214,.24)}
.topbar-copy{min-width:0}.topbar-description{margin:7px 0 0;color:var(--muted);font-size:14px;line-height:1.55}.dashboard-v2{width:100%;max-width:1180px;margin:0 auto}.dashboard-v2 a:focus-visible{outline:0;box-shadow:var(--erp-focus-ring)}
.dashboard-summary-card{min-height:144px;display:flex;align-items:center;justify-content:space-between;gap:28px;margin-bottom:16px;padding:24px 28px;border-radius:var(--erp-radius-lg);background:var(--navy);color:#fff;box-shadow:0 12px 34px rgba(16,28,58,.16)}.dashboard-summary-copy{min-width:0}.dashboard-section-kicker{display:block;color:#7f8ca5;font-size:12px;font-weight:900;letter-spacing:.12em}.dashboard-summary-card .dashboard-section-kicker{color:#91a9de}.dashboard-summary-card h2{margin:8px 0 6px;font-size:27px;line-height:1.3;letter-spacing:-.025em}.dashboard-summary-card p{margin:0;color:#c6d0e4;font-size:14px;line-height:1.55}.dashboard-inline-status{display:flex;flex-wrap:wrap;gap:9px;margin-top:16px}.dashboard-state{display:inline-flex;align-items:center;gap:7px;min-height:28px;padding:4px 10px;border-radius:999px;background:#eef2f8;color:#536078;font-size:12px;font-style:normal;font-weight:850;white-space:nowrap}.dashboard-state i{width:7px;height:7px;flex:0 0 auto;border-radius:50%;background:#8b96aa}.dashboard-state.success{background:#e8f7f3;color:#08796d}.dashboard-state.success i{background:var(--teal)}.dashboard-state.warning{background:#fff4e2;color:#9a5b05}.dashboard-state.warning i{background:var(--amber)}.dashboard-state.danger{background:#fff0f0;color:#a43131}.dashboard-state.danger i{background:var(--danger)}.dashboard-summary-card .dashboard-state{background:rgba(255,255,255,.1);color:#f4f7ff}.dashboard-summary-card .dashboard-state.success i{background:#45d1b6}.dashboard-summary-card .dashboard-state.warning i{background:#f4b64f}.dashboard-summary-action{min-width:166px;min-height:48px;display:inline-flex;align-items:center;justify-content:center;gap:22px;padding:0 18px;border-radius:var(--erp-radius-md);background:#fff;color:var(--navy);font-size:14px;font-weight:900;white-space:nowrap}.dashboard-summary-action:hover{background:#f2f6ff}.dashboard-summary-action span{color:var(--blue);font-size:18px}
.dashboard-kpi-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px;margin-bottom:16px}.dashboard-kpi-card{min-width:0;min-height:126px;display:flex;align-items:flex-start;gap:13px;padding:19px 17px;border:1px solid var(--line);border-radius:var(--erp-radius-md);background:#fff;box-shadow:0 5px 20px rgba(16,28,58,.035);transition:transform .16s ease,border-color .16s ease,box-shadow .16s ease}.dashboard-kpi-card:hover{transform:translateY(-1px);border-color:#bdcae3;box-shadow:var(--erp-panel-shadow)}.dashboard-kpi-card.attention{border-color:#eed39f;background:#fffdfa}.dashboard-kpi-card.restricted{opacity:.72}.dashboard-kpi-icon{width:40px;height:40px;display:grid;place-items:center;flex:0 0 auto;border-radius:11px;font-size:16px;font-weight:950}.dashboard-kpi-icon.navy{background:#e9edf5;color:var(--navy)}.dashboard-kpi-icon.blue{background:#edf3ff;color:var(--blue)}.dashboard-kpi-icon.teal{background:#e8f7f3;color:var(--teal)}.dashboard-kpi-icon.amber{background:#fff2dd;color:#a76408}.dashboard-kpi-icon.muted{background:#f0f2f6;color:#7c8799}.dashboard-kpi-card>span:last-child{min-width:0;display:grid}.dashboard-kpi-card small{color:#626e84;font-size:13px;font-weight:850}.dashboard-kpi-card strong{margin-top:5px;color:var(--navy);font-size:30px;line-height:1.05;font-variant-numeric:tabular-nums}.dashboard-kpi-card em{margin-top:6px;overflow:visible;color:#8993a5;font-size:12px;font-style:normal;line-height:1.4;white-space:normal}
.dashboard-work-grid{display:grid;grid-template-columns:minmax(0,1.52fr) minmax(330px,.9fr);gap:16px;margin-bottom:16px;scroll-margin-top:86px}.dashboard-lower-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:16px;scroll-margin-top:86px}.dashboard-panel{min-width:0;padding:22px;border:1px solid var(--line);border-radius:var(--erp-radius-lg);background:#fff;box-shadow:0 5px 20px rgba(16,28,58,.035)}.dashboard-panel-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:18px}.dashboard-panel-heading h2{margin:4px 0 0;font-size:19px;line-height:1.35}.dashboard-panel-heading>a{min-height:36px;display:inline-flex;align-items:center;gap:8px;padding:0 8px;border-radius:8px;color:#52617a;font-size:13px;font-weight:850;white-space:nowrap}.dashboard-panel-heading>a:hover{color:var(--blue);background:#f2f6ff}
.dashboard-workflow{position:relative;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px}.dashboard-workflow>a{position:relative;min-width:0;min-height:112px;display:grid;align-content:start;justify-items:start;padding:14px;border:1px solid #e5e9f1;border-radius:var(--erp-radius-md);background:#fbfcfe}.dashboard-workflow>a:hover{border-color:#bdcbea;background:#f5f8ff}.workflow-dot{width:25px;height:25px;display:grid;place-items:center;margin-bottom:16px;border-radius:50%;background:#e9edf5;color:var(--navy);font-size:11px;font-weight:950}.workflow-dot.blue{background:#e9f0ff;color:var(--blue)}.workflow-dot.teal,.workflow-dot.success{background:#e5f6f1;color:var(--teal)}.dashboard-workflow small{color:#68748a;font-size:12px;font-weight:850}.dashboard-workflow strong{margin-top:4px;color:var(--navy);font-size:24px;font-variant-numeric:tabular-nums}.dashboard-workflow-foot{min-height:43px;display:flex;align-items:center;gap:9px;margin-top:12px;padding:8px 12px;border-radius:10px;background:#f5f7fa;color:#677187;font-size:12px}.dashboard-workflow-foot strong{min-width:25px;padding:3px 8px;border-radius:999px;background:#e6eaf0;color:#48536a;text-align:center}.dashboard-workflow-foot a{min-height:32px;display:inline-flex;align-items:center;margin-left:auto;padding:0 7px;border-radius:7px;color:#4e5c74;font-weight:850}
.dashboard-alert-list{display:grid;gap:9px}.dashboard-alert-row{min-width:0;min-height:70px;display:grid;grid-template-columns:auto minmax(0,1fr) auto auto;align-items:center;gap:11px;padding:12px;border:1px solid #e6eaf1;border-radius:var(--erp-radius-md);background:#fff}.dashboard-alert-row:hover{border-color:#bdcbea;background:#fafcff}.dashboard-alert-icon{width:34px;height:34px;display:grid;place-items:center;border-radius:10px;background:#eef3ff;color:var(--blue);font-size:13px;font-weight:950}.dashboard-alert-row.warning .dashboard-alert-icon{background:#fff2df;color:#a76408}.dashboard-alert-row>span:nth-child(2){min-width:0;display:grid;gap:4px}.dashboard-alert-row strong{overflow:hidden;font-size:13px;text-overflow:ellipsis;white-space:nowrap}.dashboard-alert-row small{overflow:visible;color:#7b8699;font-size:12px;line-height:1.35;white-space:normal}.dashboard-alert-row>b{min-width:29px;color:var(--navy);font-size:19px;text-align:right;font-variant-numeric:tabular-nums}.dashboard-alert-row>i{color:#8994a7;font-size:22px;font-style:normal}
.dashboard-channel-body{min-width:0;display:grid;grid-template-columns:auto minmax(160px,1fr) auto auto;align-items:center;gap:12px}.dashboard-channel-mark{width:44px;height:44px;display:grid;place-items:center;border-radius:12px;background:#e8f1e8;color:#24713e;font-size:18px;font-weight:950}.dashboard-channel-body>span:nth-child(2){min-width:0;display:grid;gap:5px}.dashboard-channel-body strong{font-size:14px}.dashboard-channel-body small{overflow:visible;color:#758196;font-size:12px;line-height:1.4;white-space:normal}.dashboard-inventory-facts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.dashboard-inventory-facts>span{min-width:0;display:grid;gap:7px;padding:14px;border-radius:var(--erp-radius-md);background:#f6f8fb}.dashboard-inventory-facts small{color:#6d788e;font-size:12px;font-weight:800}.dashboard-inventory-facts strong{color:var(--navy);font-size:22px;font-variant-numeric:tabular-nums}
@media(max-width:1180px){.dashboard-kpi-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.dashboard-kpi-card:nth-child(4),.dashboard-kpi-card:nth-child(5){grid-column:span 1}.dashboard-work-grid{grid-template-columns:1fr}.dashboard-channel-body{grid-template-columns:auto minmax(140px,1fr) auto}.dashboard-channel-body .dashboard-state:last-child{grid-column:2/-1;width:max-content}.dashboard-workflow-panel{min-height:0}}
@media(max-width:880px){.dashboard-lower-grid{grid-template-columns:1fr}.dashboard-channel-body{grid-template-columns:auto minmax(0,1fr) auto auto}.dashboard-channel-body .dashboard-state:last-child{grid-column:auto}}
@media(max-width:700px){.topbar-copy{min-width:0}.topbar-description{margin-top:5px;font-size:13px}.dashboard-v2{max-width:none}.dashboard-summary-card{min-height:0;align-items:stretch;flex-direction:column;gap:18px;padding:22px 20px}.dashboard-summary-card h2{font-size:23px}.dashboard-summary-card p{font-size:13px}.dashboard-inline-status{gap:7px;margin-top:13px}.dashboard-summary-action{width:100%;min-height:48px;justify-content:space-between}.dashboard-kpi-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.dashboard-kpi-card{min-height:108px;gap:10px;padding:15px 13px}.dashboard-kpi-card:nth-child(5){grid-column:1/-1}.dashboard-kpi-icon{width:36px;height:36px;border-radius:10px}.dashboard-kpi-card strong{font-size:26px}.dashboard-kpi-card em{font-size:12px}.dashboard-panel{padding:18px 16px}.dashboard-panel-heading{margin-bottom:15px}.dashboard-panel-heading h2{font-size:18px}.dashboard-panel-heading>a{min-height:44px}.dashboard-workflow{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.dashboard-workflow>a{min-height:90px;padding:12px}.dashboard-workflow>a:last-child{grid-column:1/-1}.workflow-dot{margin-bottom:10px}.dashboard-workflow-foot{flex-wrap:wrap}.dashboard-workflow-foot a{min-height:44px;margin-left:0;width:100%;justify-content:flex-end}.dashboard-alert-row{min-height:76px;padding:11px 10px}.dashboard-alert-row small{white-space:normal;line-height:1.35}.dashboard-channel-body{grid-template-columns:auto minmax(0,1fr);align-items:start}.dashboard-channel-body .dashboard-state,.dashboard-channel-body .dashboard-state:last-child{grid-column:2;width:max-content}.dashboard-inventory-facts{gap:8px}.dashboard-inventory-facts>span{padding:12px 10px}.dashboard-inventory-facts strong{font-size:20px}}
@media(max-width:380px){.dashboard-summary-card{padding:20px 17px}.dashboard-kpi-grid{gap:8px}.dashboard-kpi-card{padding:13px 10px}.dashboard-kpi-icon{width:33px;height:33px}.dashboard-kpi-card strong{font-size:24px}.dashboard-panel{padding-left:13px;padding-right:13px}.dashboard-alert-row{grid-template-columns:auto minmax(0,1fr) auto}.dashboard-alert-row>b{grid-column:2}.dashboard-alert-row>i{grid-row:1/3;grid-column:3}.dashboard-inventory-facts{grid-template-columns:1fr}.dashboard-inventory-facts>span{display:flex;align-items:center;justify-content:space-between}}

/* Juhora brand system */
.global-brand{background:linear-gradient(145deg,#151a32 0%,#29264f 100%)}
.global-brand .brand-mark,.auth-logo{background:linear-gradient(135deg,#8b82ff 0%,#635bdb 100%);color:#fff;box-shadow:0 8px 20px rgba(99,91,219,.28)}
.global-brand strong{letter-spacing:.14em}.global-brand small{letter-spacing:.02em}
.primary-nav-item.active:after{background:linear-gradient(90deg,#635bdb,#8b82ff)}
.auth-body{background:radial-gradient(circle at 18% 12%,rgba(139,130,255,.22),transparent 32%),linear-gradient(135deg,#151a32 0%,#29264f 52%,#f6f7fb 52%)}
.auth-intro .eyebrow{color:#bcb7ff}.auth-card{border-top:4px solid #635bdb}
.primary-button{background:linear-gradient(135deg,#635bdb,#514bbd);color:#fff;box-shadow:0 8px 18px rgba(99,91,219,.2)}.primary-button:hover{background:linear-gradient(135deg,#7068eb,#5a53c9)}.settings-card .primary-button{background:linear-gradient(135deg,#635bdb,#514bbd)}
.context-nav-item.active{background:#f0efff;color:#544bc0}.context-nav-item.active:before{background:#635bdb}.context-heading-icon{background:#f0efff;color:#635bdb}
.dashboard-summary-card{background:linear-gradient(135deg,#151a32 0%,#29264f 100%)}

