:root{--blue:#0967ed;--blue-dark:#064dc2;--navy:#13263e;--text:#1a2c45;--muted:#7a879b;--line:#e5ebf2;--bg:#f3f6fa;--light:#edf5ff;--green:#138266;--red:#d5484d;--orange:#ae701e;--radius:10px;--shadow:0 6px 24px #1a315408;font-family:Inter,"PingFang SC","Microsoft YaHei",system-ui,sans-serif;font-size:14px;line-height:1.6;color:var(--text);background:var(--bg)}*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}a{color:var(--blue);text-decoration:none}button,a,input,select,textarea{outline-offset:4px}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.45}button{transition:background .16s,box-shadow .16s}h1,h2,h3,p{margin:0}h1{font-size:26px;line-height:1.4;letter-spacing:-.4px}h2{font-size:19px}h3{font-size:16px}small,.muted{color:var(--muted)}.mono{font-family:ui-monospace,SFMono-Regular,monospace;font-variant-numeric:tabular-nums}.money{font-variant-numeric:tabular-nums;font-weight:650}.red{color:var(--red)}.green{color:var(--green)}.blue{color:var(--blue)}.spacer{flex:1}.initial-loading{padding:100px;text-align:center;color:var(--muted)}.demo-bar{font-size:11px;letter-spacing:.15px;background:#fff7e6;color:#8d6b27;text-align:center;padding:5px 15px;border-bottom:1px solid #efdfba;position:relative;z-index:10}.topbar{height:78px;display:flex;align-items:center;gap:22px;padding:0 3.4%;background:#fff;border-bottom:1px solid var(--line)}.brand{display:flex;align-items:center;gap:11px;min-width:0;color:var(--navy)}.brand img{width:38px;height:38px;object-fit:contain}.brand img.custom-logo{max-width:120px;width:auto;height:38px}.brand strong{font-size:21px;white-space:nowrap;letter-spacing:-.3px}.brand-subtitle{border-left:1px solid var(--line);padding-left:18px;font-size:12px;color:#8a99af}.toplinks{display:flex;align-items:center;gap:24px;font-size:13px}.toplinks a{color:#43536b;white-space:nowrap}.toplinks .active{color:var(--blue);font-weight:650}.account-info{font-size:12px;color:#4e6079}.account-info strong{display:block;font-size:13px;color:var(--text)}.icon{width:19px;height:19px;vertical-align:-4px;display:inline-block;flex-shrink:0}.btn{border:1px solid var(--line);padding:9px 16px;line-height:1.4;background:white;border-radius:6px;color:#3e4f68;display:inline-flex;align-items:center;justify-content:center;gap:6px;white-space:nowrap;font-size:13px}.btn:hover{background:#f8fbff;border-color:#a6caff}.btn.primary{background:var(--blue);border-color:var(--blue);color:#fff}.btn.primary:hover{background:var(--blue-dark)}.btn.danger{color:var(--red);border-color:#f1c7c9;background:#fff}.btn.small{font-size:12px;padding:6px 10px}.btn.ghost{border-color:transparent;background:transparent}.btn.block{width:100%}.link-button{background:none;border:0;color:var(--blue);padding:2px 4px;font-size:12px;white-space:nowrap}.page{max-width:1380px;margin:auto;padding:26px 30px 50px}.page-header{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:22px}.page-header p{margin-top:6px;color:var(--muted);font-size:13px}.breadcrumb{font-size:12px;color:#8b99ad;margin-bottom:14px}.panel{background:#fff;border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow);margin-bottom:22px;min-width:0}.panel-header{display:flex;align-items:center;gap:12px;border-bottom:1px solid var(--line);padding:19px 23px}.panel-header h2{font-size:16px}.panel-header h2:before{content:"";display:inline-block;width:4px;height:17px;vertical-align:-3px;margin-right:9px;background:var(--blue);border-radius:2px}.panel-body{padding:23px}.notice{background:var(--light);border:1px solid #d6e7fe;color:#3c6295;border-radius:7px;padding:13px 17px;display:flex;gap:10px;font-size:13px;margin-bottom:20px}.notice.warn{background:#fff9ec;border-color:#f1e3bf;color:#8f722c}.notice.success{background:#edfaf6;border-color:#c9e9de;color:#28795f}.notice p+p{margin-top:5px}.grid2{display:grid;grid-template-columns:1fr 1fr;gap:22px}.grid3{display:grid;grid-template-columns:repeat(3,1fr);gap:20px}.stack>*+*{margin-top:14px}.row{display:flex;align-items:center;gap:12px}.wrap{flex-wrap:wrap}.field{display:flex;flex-direction:column;gap:7px;margin-bottom:18px}.field label{font-size:13px;font-weight:600;color:#40506a}.field input,.field textarea,.field select,input.control,select.control{width:100%;border:1px solid #dce4ef;background:#fff;border-radius:5px;min-height:40px;padding:9px 11px;color:var(--text);font-size:13px}.field input:focus,.field select:focus,.field textarea:focus,input.control:focus{border-color:#78b1ff;box-shadow:0 0 0 3px #0967ed12}.field textarea{resize:vertical;min-height:85px}.field .help{font-size:11px;color:var(--muted);line-height:1.6}.field input[type=checkbox]{width:16px;min-height:16px;box-shadow:none}.field.checkbox{flex-direction:row;align-items:flex-start;font-size:13px}.field.checkbox label{font-weight:400}.table-wrap{overflow-x:auto}table{border-collapse:collapse;width:100%;text-align:left;font-size:12px}th{color:#75829a;background:#f8fafc;padding:13px 16px;font-weight:550;white-space:nowrap;border-bottom:1px solid var(--line)}td{padding:17px 16px;border-bottom:1px solid #edf1f5;vertical-align:middle}tr:last-child td{border-bottom:0}tbody tr:hover{background:#fcfdff}td .sub{font-size:11px;color:var(--muted);margin-top:4px}td .title{font-size:13px;font-weight:550}.tag{display:inline-flex;align-items:center;font-size:11px;padding:3px 8px;border-radius:4px;background:#f0f3f8;color:#6d7a8f;white-space:nowrap}.tag.blue{background:#eaf3ff;color:#2777d9}.tag.green{background:#e7f6ef;color:#238167}.tag.orange{background:#fff3de;color:#ad7624}.tag.red{background:#fdeced;color:#c34b4f}.toolbar{padding:17px 22px;display:flex;gap:12px;align-items:center;border-bottom:1px solid var(--line)}.toolbar input{max-width:290px}.toolbar select{max-width:230px}.empty{text-align:center;padding:60px 20px;color:var(--muted)}.empty .icon{width:35px;height:35px;margin-bottom:10px}.empty h3{color:#50617b;margin-bottom:6px}.kpis{display:grid;grid-template-columns:repeat(4,1fr);gap:18px;margin:0 0 24px}.kpi{background:#fff;border:1px solid var(--line);border-radius:9px;padding:19px 21px;min-width:0}.kpi-label{color:#78869b;font-size:12px;display:flex;align-items:center;justify-content:space-between}.kpi-value{font-size:28px;font-weight:650;color:#1b3556;margin-top:7px;letter-spacing:-.7px;font-variant-numeric:tabular-nums}.kpi-foot{font-size:11px;margin-top:5px;color:#98a2b2}.admin-shell{display:flex;min-height:calc(100vh - 28px)}.sidebar{background:var(--navy);color:#93a6bf;width:222px;flex-shrink:0;padding-bottom:28px}.sidebar-brand{padding:23px 22px;color:#fff;border-bottom:1px solid #ffffff0d;margin-bottom:19px}.sidebar-brand strong{display:block;font-size:18px}.sidebar-brand span{font-size:10px;color:#8296b1}.nav-section{padding:13px 22px 7px;color:#667f9f;font-size:10px;letter-spacing:1px}.sidebar nav a{display:flex;gap:12px;align-items:center;margin:4px 12px;padding:11px 14px;color:#a3b4c9;font-size:13px;border-radius:6px}.sidebar nav a:hover{color:#fff;background:#ffffff08}.sidebar nav a.active{background:#0867eb;color:#fff;box-shadow:0 5px 15px #081d3d35}.side-foot{font-size:10px;margin:38px 26px 0;line-height:1.8;color:#6b83a2}.admin-main{flex:1;min-width:0}.admin-top{height:69px;background:#fff;border-bottom:1px solid var(--line);padding:0 30px;display:flex;align-items:center;gap:17px}.admin-page{padding:25px 30px 45px;max-width:1550px;margin:auto}.workflow-board{display:grid;grid-template-columns:repeat(3,1fr);gap:20px}.workflow-lane{padding:20px;border:1px solid var(--line);border-radius:8px;background:#fbfcfe}.workflow-lane .count{float:right;font-weight:700;color:var(--blue)}.workflow-lane p{font-size:12px;color:var(--muted);margin:7px 0 18px}.task-row{border-top:1px solid var(--line);padding:13px 0;display:block;color:var(--text)}.task-row .row{justify-content:space-between}.task-row small{display:block;margin-top:4px;font-size:11px}.task-row:hover{color:var(--blue)}.shop-layout{display:grid;grid-template-columns:215px 1fr;gap:22px}.category-rail{background:#fff;border-radius:8px;border:1px solid var(--line);overflow:hidden;align-self:start;min-height:622px}.category-title{background:var(--blue);padding:16px;color:white;font-weight:600}.category-rail button{display:flex;width:calc(100% - 20px);margin:8px 10px;padding:14px 12px;align-items:center;gap:12px;border:0;background:transparent;color:#4a5d79;text-align:left;font-size:13px;border-radius:5px}.category-rail button.active{color:var(--blue);background:#ecf4ff;font-weight:650}.category-rail .rail-note{padding:22px;font-size:11px;color:#8e9aac;border-top:1px solid var(--line);margin-top:25px}.search{display:flex;margin-bottom:20px;max-width:890px;border:1px solid #8cb9fa;border-radius:5px;overflow:hidden;background:#fff}.search input{border:0;padding:13px 18px;flex:1;min-width:0;font-size:13px;outline:none}.search button{border-radius:0;padding:0 32px}.hero{height:250px;position:relative;background:#eaf3ff;overflow:hidden;border-radius:8px;margin-bottom:20px;display:flex;align-items:center}.hero-copy{position:relative;z-index:1;padding:32px;max-width:60%}.hero h1{font-size:32px;letter-spacing:0;line-height:1.4;color:#123766}.hero p{color:#6283aa;font-size:13px;margin-top:13px;line-height:1.9}.hero img{position:absolute;right:0;height:100%;width:57%;object-fit:cover;object-position:right center}.hero:after{content:'';position:absolute;inset:0;background:linear-gradient(90deg,#eaf3ff 24%,#eaf3ff00 75%)}.hero-link{display:inline-flex;margin-top:23px;font-size:12px;color:#286cc3}.product-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:15px}.product-card{border:1px solid var(--line);border-radius:7px;overflow:hidden;padding:15px;min-width:0;display:flex;flex-direction:column;transition:box-shadow .2s,transform .2s;background:#fff}.product-card:hover{box-shadow:0 8px 25px #21447310;transform:translateY(-2px)}.product-card .picture{height:125px;background:#fafbfc;display:flex;align-items:center;justify-content:center;margin-bottom:15px;overflow:hidden}.product-card img{width:100%;height:100%;object-fit:contain}.product-card h3{font-size:13px;font-weight:600;line-height:1.7;min-height:43px}.product-card .spec{font-size:10px;color:#99a4b5;margin:5px 0 10px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.product-card .price{display:flex;align-items:baseline;gap:6px;margin-bottom:11px;flex-wrap:wrap}.product-card .price strong{font-size:20px;color:#e04a4d;font-weight:650}.product-card .price span{font-size:10px;color:#8c98ac}.product-card .btn{font-size:11px;padding:7px 9px}.product-card .buttons{display:flex;gap:5px;margin-top:auto}.product-detail{display:grid;grid-template-columns:44% 1fr;gap:38px;align-items:center}.product-detail .big-picture{height:340px;background:#f8fafc;border-radius:7px;display:flex;align-items:center;justify-content:center}.product-detail img{max-width:85%;max-height:85%;object-fit:contain}.product-detail h1{font-size:24px}.product-detail .price-box{background:#f1f6fc;padding:23px;margin:25px 0;border-radius:6px}.product-detail .price-box strong{font-size:34px;color:var(--red);margin-right:12px}.detail-kv{display:grid;grid-template-columns:126px 1fr;gap:13px 12px;font-size:12px;align-items:start}.detail-kv dt{color:#8a97aa}.detail-kv dd{margin:0;word-break:break-word}.order-steps{display:grid;grid-template-columns:repeat(8,1fr);padding:26px 12px 24px;gap:0;overflow-x:auto}.step{min-width:86px;text-align:center;position:relative;color:#9aa5b6;font-size:11px}.step:before{content:'';position:absolute;top:16px;left:-50%;right:50%;height:2px;background:#e8edf4}.step:first-child:before{display:none}.step .num{position:relative;margin:0 auto 9px;border-radius:50%;height:33px;width:33px;line-height:31px;border:1px solid #e0e6ef;background:#f6f8fb;color:#a2aebe;font-size:13px}.step.done:before{background:#9fc6fc}.step.done .num{background:#eaf3ff;border-color:#c6ddfc;color:var(--blue)}.step.current .num{background:var(--blue);color:#fff;border-color:var(--blue);box-shadow:0 0 0 5px #0967ed0e}.step.current{color:var(--blue);font-weight:600}.order-columns{display:grid;grid-template-columns:minmax(0,1fr) 330px;gap:22px}.summary-total{display:flex;align-items:baseline;justify-content:space-between;padding:17px 0;border-top:1px solid var(--line);margin-top:12px}.summary-total strong{font-size:25px;color:var(--red)}.timeline{list-style:none;margin:0;padding:0}.timeline li{position:relative;margin-left:6px;padding:0 0 20px 22px;border-left:1px solid var(--line);font-size:12px}.timeline li:before{content:'';position:absolute;left:-4px;top:6px;width:7px;height:7px;border-radius:50%;background:#a7c5ed}.timeline li:first-child:before{background:var(--blue)}.timeline li small{display:block;margin-top:4px;font-size:10px}.timeline li:last-child{padding-bottom:0;border-left-color:transparent}.amount-line{display:flex;justify-content:space-between;gap:12px;padding:8px 0;font-size:12px;color:#78879d}.amount-line strong{color:var(--text)}.checkout-layout{display:grid;grid-template-columns:1fr 325px;gap:22px}.sticky{position:sticky;top:20px;align-self:start}.cart-footer{padding:20px 23px;display:flex;align-items:center;gap:20px;justify-content:flex-end;border-top:1px solid var(--line)}.logo-preview{background:#f7faff;border:1px solid #e0eafa;border-radius:7px;padding:25px;margin-top:15px}.logo-preview .brand strong{font-size:17px}.channel-card{padding:23px}.channel-card .code{font-size:11px;color:#8f9db1;margin:5px 0 15px}.channel-card input{margin-bottom:9px}.tabs{display:flex;gap:26px;border-bottom:1px solid var(--line);margin-bottom:20px}.tabs button{border:0;background:none;padding:8px 1px 14px;color:#8490a3;position:relative;font-size:13px}.tabs button.active{color:var(--blue);font-weight:650}.tabs button.active:after{content:'';position:absolute;bottom:-1px;left:0;right:0;height:3px;background:var(--blue)}.login-page{min-height:calc(100vh - 29px);display:grid;grid-template-columns:1fr 1fr;background:#fff}.login-art{background:#f1f6fd;position:relative;overflow:hidden;padding:65px 10%}.login-art .brand{margin-bottom:80px}.login-art h1{font-size:36px;line-height:1.5;color:#173b68}.login-art p{color:#7c90ac;font-size:14px;max-width:320px;margin-top:18px;line-height:2}.login-art img.office{margin-top:36px;width:100%;border-radius:10px;box-shadow:0 20px 40px #2249760b}.login-form{max-width:440px;width:100%;margin:auto;padding:45px 30px}.login-form h2{font-size:25px;margin-bottom:6px}.login-form .lead{color:#8d99ac;font-size:13px;margin-bottom:28px}.demo-accounts{margin-top:28px;border-top:1px solid var(--line);padding-top:18px}.demo-accounts p{font-size:11px;color:#8a99b0;margin-bottom:10px}.account-options{display:grid;grid-template-columns:repeat(3,1fr);gap:7px}.account-options button{font-size:11px;border:1px solid var(--line);background:#fafcff;color:#62738e;padding:9px 5px;border-radius:5px}.account-options button.active{border-color:#8bbaff;background:#edf5ff;color:var(--blue)}.form-error{padding:11px 13px;font-size:12px;color:#b2454a;background:#fff0f0;border-radius:5px;margin-bottom:15px;display:none}.form-error.show{display:block}.overlay{position:fixed;inset:0;z-index:100;display:flex;align-items:center;justify-content:center;background:#0f233971;padding:20px;backdrop-filter:blur(2px)}.modal{background:#fff;border-radius:10px;width:min(590px,100%);max-height:92vh;display:flex;flex-direction:column;box-shadow:0 25px 100px #0e23404d;overflow:hidden}.modal.wide{width:min(820px,100%)}.modal-head{padding:21px 25px;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between}.modal-head h2{font-size:19px}.modal-body{padding:24px 25px 12px;overflow:auto}.modal-footer{padding:16px 25px;display:flex;gap:10px;justify-content:flex-end;border-top:1px solid var(--line);background:#fcfdff}.modal .close{border:0;background:none;color:#8d98a9;font-size:23px;padding:0 5px}.center-icon{width:62px;height:62px;border-radius:50%;display:flex;align-items:center;justify-content:center;background:#eaf3ff;color:var(--blue);margin:0 auto 20px}.center-icon .icon{width:29px;height:29px}.blank-gate{max-width:640px;margin:70px auto;text-align:center}.blank-gate h1{margin-bottom:13px}.blank-gate p{color:#8391a5;font-size:13px;margin:10px 0 23px}.footer-note{text-align:center;color:#a2acb9;font-size:10px;padding:20px 10px}.checkbox-list label{display:block;padding:10px 0;border-bottom:1px solid var(--line);font-size:12px}.checkbox-list input{margin-right:12px}.statline{display:flex;justify-content:space-between;border-bottom:1px solid var(--line);padding:12px 0;font-size:12px}.statline:last-child{border:0}.badge-count{color:white;background:#ed5757;border-radius:9px;font-size:9px;padding:1px 5px;margin-left:3px}.audit-json{max-width:290px;font-family:ui-monospace,monospace;font-size:10px;color:#64758e;white-space:pre-wrap;word-break:break-all}.small-note{font-size:11px;line-height:1.8;color:#8a98ad}.divider{height:1px;background:var(--line);margin:20px 0}.inline-number{width:68px!important;min-height:33px!important;padding:6px!important}.price-highlight{font-size:24px;color:var(--red);font-weight:650}.file-input{background:#f8fbff!important;border-style:dashed!important;padding:14px!important}.mobile-nav{display:none}.letter-avatar{width:34px;height:34px;border-radius:50%;background:#edf4ff;color:var(--blue);display:flex;align-items:center;justify-content:center;font-size:12px;font-weight:600}.scoped-label{font-size:11px;background:#edf4ff;color:#5283c6;padding:5px 9px;border-radius:5px}
@media(min-width:1500px){.product-card .picture{height:150px}.hero{height:280px}}
@media(max-width:1200px){.brand-subtitle{display:none}.toplinks{gap:15px}.sidebar{width:190px}.admin-page{padding:24px 20px}.page{padding:23px 22px}.product-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.order-columns{grid-template-columns:minmax(0,1fr) 300px}.kpi-value{font-size:24px}.shop-layout{grid-template-columns:175px 1fr}.category-rail button{font-size:12px;padding:12px 8px}.hero h1{font-size:27px}.hero-copy{padding:25px}.grid3{grid-template-columns:repeat(2,1fr)}}
@media(max-width:900px){.sidebar{width:165px}.sidebar nav a{font-size:12px;padding:10px;margin:4px 7px;gap:8px}.sidebar-brand{padding:20px 15px}.sidebar-brand strong{font-size:15px}.admin-top{padding:0 20px}.kpis{grid-template-columns:repeat(2,1fr)}.order-columns,.checkout-layout{grid-template-columns:1fr}.grid2{grid-template-columns:1fr}.workflow-board{grid-template-columns:1fr}.topbar{gap:12px;padding:0 20px}.topbar .account-info{display:none}.brand strong{font-size:18px}.hero-copy{max-width:70%}.hero p{font-size:11px}.shop-layout{grid-template-columns:1fr}.category-rail{display:none}.toplinks{gap:13px;font-size:12px}.product-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.login-art{padding:50px 12%}.login-art h1{font-size:30px}.login-art .brand{margin-bottom:80px}}
@media(max-width:650px){.demo-bar{font-size:9px;padding:6px 10px}.topbar{height:auto;min-height:72px;flex-wrap:wrap;padding:14px 16px;gap:13px}.topbar .brand{flex:1}.brand strong{font-size:16px}.brand img{height:29px;width:29px}.toplinks{order:3;width:100%;justify-content:space-between;border-top:1px solid var(--line);padding-top:12px}.toplinks .icon{width:16px;height:16px}.page{padding:18px 14px}.page-header{align-items:flex-start;margin-bottom:17px}.page-header h1{font-size:22px}.page-header p{font-size:11px}.hero{height:210px}.hero h1{font-size:25px;max-width:200px}.hero-copy{padding:21px;max-width:83%}.hero img{width:72%;opacity:.65}.hero p{max-width:230px}.hero:after{background:linear-gradient(90deg,#eaf3ff 30%,#eaf3ff55)}.hero-link{margin-top:12px}.product-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.product-card{padding:10px}.product-card .picture{height:110px;margin-bottom:9px}.product-card h3{font-size:12px;min-height:42px}.product-card .price strong{font-size:18px}.product-card .buttons{flex-direction:column}.product-card .btn{width:100%}.panel-body{padding:17px}.panel-header{padding:17px}.category-title{padding:10px}.search button{padding:0 20px}.search input{padding:12px}.product-detail{grid-template-columns:1fr;gap:24px}.product-detail .big-picture{height:230px}.product-detail h1{font-size:21px}.sidebar{display:none}.admin-top{padding:12px 15px;height:auto;gap:12px;flex-wrap:wrap}.admin-top .account-info{max-width:150px}.admin-page{padding:18px 14px}.mobile-nav{display:flex;overflow-x:auto;padding:8px 12px;gap:6px;background:white;border-bottom:1px solid var(--line)}.mobile-nav a{font-size:11px;white-space:nowrap;padding:7px 9px;color:#69809b}.mobile-nav a.active{background:#eaf3ff;color:var(--blue);border-radius:4px}.kpis{gap:10px}.kpi{padding:15px}.kpi-value{font-size:23px}.grid3{grid-template-columns:1fr}.order-steps{display:flex;padding:20px 8px;gap:0}.step{flex:0 0 87px}.toolbar{padding:13px;flex-wrap:wrap}.toolbar input,.toolbar select{max-width:none;flex:1;min-width:130px}.table-wrap table{min-width:680px}.login-page{display:block;background:#f5f8fc;padding:25px 0}.login-art{display:none}.login-form{padding:32px 24px;background:#fff;border:1px solid var(--line);border-radius:10px;width:calc(100% - 30px);margin:15px auto}.account-options{grid-template-columns:repeat(3,1fr)}.modal-body{padding:19px}.modal-head{padding:17px 19px}.modal-footer{padding:15px 19px}.notice{font-size:12px}.cart-footer{flex-wrap:wrap;padding:16px;gap:12px}.order-columns{gap:0}.step:before{left:-50%;right:50%}.detail-kv{grid-template-columns:104px 1fr;gap:11px}.topbar .btn.ghost{padding:6px;font-size:11px}.grid2.form-grid{gap:0}}
@media(prefers-reduced-motion:reduce){*{transition:none!important;scroll-behavior:auto!important}}
/* Intrinsic table widths must stay in their own scroll containers. */
.order-columns>div,.order-columns>aside,.checkout-layout>*{min-width:0}
#toast{
  position:fixed;
  top:50%;
  left:50%;
  transform:translate(-50%,-50%) translateY(8px);
  width:max-content;
  max-width:90%;
  overflow-wrap:anywhere;
  padding:12px 23px;
  border-radius:7px;
  background:rgba(24,55,86,.9);
  color:#fff;
  font-size:13px;
  text-align:center;
  box-shadow:0 8px 35px #10253b30;
  z-index:200;
  opacity:0;
  visibility:hidden;
  pointer-events:none;
  transition:transform .2s;
}
#toast.show{
  transform:translate(-50%,-50%);
  opacity:1;
  visibility:visible;
}
.page-header h1{overflow-wrap:anywhere;min-width:0}.page-header>div{min-width:0}
@media(max-width:680px){.page-header{flex-wrap:wrap}.order-columns .panel-body{padding:18px}.order-columns .detail-kv dd{overflow-wrap:anywhere}}

/* V0.3.1: visible channel share links, including clipboard fallback and mobile layouts. */
.channel-share-block{margin-top:20px;min-width:0}.channel-share-block+.channel-share-block{border-top:1px solid var(--line);padding-top:20px}.share-code-row{display:flex;align-items:center;flex-wrap:wrap;gap:10px;margin-bottom:14px;font-size:12px;color:#61718a}.share-code-row strong{color:var(--blue);background:var(--light);border-radius:5px;padding:3px 9px;font-size:13px}.share-label{display:block;font-size:12px;color:#526680;margin-bottom:8px}.share-url.control{display:block;width:100%;max-width:none;min-width:0;font-size:12px;color:#214975;background:#f7faff;border:1px solid #cfdef3;margin:0;padding:12px;cursor:text;white-space:nowrap}.share-url:focus{outline:2px solid #b4d2ff;outline-offset:1px}.share-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-top:12px}.share-actions .btn{font-size:12px;min-height:38px}.share-hint{font-size:12px;color:#7a899d;margin:10px 0 0;line-height:1.8}.share-card-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;margin:22px 0}.promotion-card{padding:26px;margin:0;min-width:0}.promotion-heading{display:flex;align-items:center;gap:12px;justify-content:space-between;flex-wrap:wrap}.promotion-heading .brand{min-width:0}.promotion-heading .brand strong{font-size:20px;overflow-wrap:anywhere}.promotion-name{font-size:12px;color:#7a899d;margin:10px 0}.registration-page{max-width:870px}.registration-brand{margin:22px 0}.registration-brand strong{font-size:24px}.registration-page input[readonly]{background:#f3f7fc;color:#567297}.channel-card .brand strong{white-space:normal;overflow-wrap:anywhere}.channel-card{min-width:0}.share-card-grid:has(>.promotion-card:only-child){grid-template-columns:minmax(0,1fr);max-width:880px}
@media(max-width:900px){.share-card-grid{grid-template-columns:minmax(0,1fr)}.promotion-card{padding:20px}}
@media(max-width:650px){.share-url.control{font-size:12px}.share-actions .btn{flex:1;justify-content:center;padding:9px 11px;white-space:nowrap}.share-code-row{font-size:12px}.share-hint{font-size:11px}.registration-brand strong{font-size:20px}.promotion-heading .brand strong{font-size:18px}}

/* V0.3.2 — per-employee permissions, same blue/white admin system. */
.staff-summary{display:flex;align-items:center;flex-wrap:wrap;gap:12px 26px;color:#78869b;font-size:12px;margin:-2px 0 22px}.staff-summary strong{font-size:17px;color:#1a2c45;margin-left:7px;font-variant-numeric:tabular-nums}.staff-layout{display:grid;grid-template-columns:275px minmax(0,1fr);gap:22px;align-items:start}.staff-directory{position:sticky;top:20px;overflow:hidden}.staff-search{padding:17px 18px;border-bottom:1px solid var(--line)}.staff-person{display:flex;align-items:center;gap:12px;width:100%;text-align:left;border:0;border-bottom:1px solid #edf1f5;background:#fff;padding:18px;border-left:3px solid transparent;min-height:96px}.staff-person.selected{background:#edf5ff;border-left-color:var(--blue)}.staff-person:hover{background:#f5f9ff}.staff-person .letter-avatar{flex-shrink:0;width:35px;height:35px}.staff-person-text{display:flex;flex-direction:column;flex:1;min-width:0;gap:2px}.staff-person-text strong{font-size:13px;overflow-wrap:anywhere;font-weight:600;color:var(--text)}.staff-person-text em{font-size:10px;font-style:normal;color:#0967ed;margin-left:3px}.staff-person-text small{font-size:11px;overflow-wrap:anywhere}.staff-directory-foot{padding:18px;font-size:11px;line-height:1.9;color:#8a98ad;background:#fcfdff}.staff-basics{gap:0 20px}.staff-editor .panel-body{padding-bottom:18px}.staff-permission-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:6px 0 16px;border-top:1px solid var(--line);padding-top:22px}.staff-permission-heading h3{font-size:15px}.staff-permission-heading p{font-size:12px;color:#8591a5;margin-top:4px}.permission-group{min-width:0;margin:0 0 20px;padding:12px 15px 14px;border:1px solid var(--line);border-radius:7px}.permission-group legend{padding:0 7px;font-size:12px;font-weight:650;color:#4a6080}.permission-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px 24px}.permission-option{display:flex;align-items:flex-start;gap:9px;min-width:0;cursor:pointer;font-size:13px}.permission-option input{accent-color:var(--blue);width:16px;height:16px;margin:3px 0 0;flex-shrink:0}.permission-option span{display:flex;flex-direction:column;gap:4px}.permission-option strong{font-size:12px;font-weight:600;line-height:1.5}.permission-option small{font-size:11px;line-height:1.65;color:#8190a5}.permission-option em{font-style:normal;font-size:10px;line-height:1.5;color:#9aa6b6}.staff-savebar{display:flex;align-items:center;gap:12px;padding:18px 23px;background:#fafdff;border-top:1px solid var(--line);border-radius:0 0 10px 10px;position:sticky;bottom:0;z-index:3}.staff-savebar>span:first-child{font-size:12px;color:#6c819e}.staff-history-row{border-bottom:1px solid var(--line);padding:15px 0}.staff-history-row:first-child{padding-top:0}.staff-history-row>small{display:block;font-size:11px;margin-top:3px}.staff-history-row p{font-size:12px;line-height:1.9;margin-top:6px;color:#61738a}.staff-shortcuts{display:flex;gap:12px;flex-wrap:wrap}.staff-editor input[readonly]{background:#f5f8fc;color:#7d8da5}
@media(max-width:1100px){.staff-layout{grid-template-columns:230px minmax(0,1fr);gap:16px}.permission-options{grid-template-columns:1fr}.staff-person{gap:8px;padding:14px 12px}.staff-person .tag{font-size:10px}.staff-editor .grid2{grid-template-columns:1fr}}
@media(max-width:800px){.staff-layout{grid-template-columns:minmax(0,1fr)}.staff-directory{position:static;margin-bottom:0}.staff-directory-foot{display:none}#staff-list{max-height:230px;overflow:auto}.staff-person{min-height:76px}.permission-options{grid-template-columns:repeat(2,minmax(0,1fr))}.staff-summary .spacer{display:none}}
@media(max-width:520px){.permission-options{grid-template-columns:1fr}.staff-savebar{padding:14px;gap:7px;flex-wrap:wrap}.staff-savebar>span:first-child{width:100%}.staff-savebar>.spacer{display:none}.staff-savebar .btn{flex:1;min-height:40px;font-size:12px}.staff-permission-heading{align-items:flex-start}.staff-permission-heading>.row{gap:2px;flex-shrink:0}.staff-summary{gap:7px 17px}.staff-editor .notice{font-size:11px}.permission-group{padding:10px 12px 14px}.staff-directory .empty{padding:20px}}

@media(max-width:800px){.staff-savebar{position:static}}

/* V0.3.3 — company centre, public order projection, separate price approval. */
.center-nav{display:flex;gap:28px;border-bottom:1px solid var(--line);margin:0 0 24px;flex-wrap:wrap;padding:0 4px}.center-nav a{display:flex;align-items:center;gap:8px;padding:14px 0;color:#697b91;font-size:14px;border-bottom:3px solid transparent}.center-nav a.active{color:var(--blue);font-weight:600;border-color:var(--blue)}.center-tabs{display:flex;gap:10px;margin-bottom:24px}.center-tabs a{padding:9px 18px;border-radius:6px;color:#64758d;font-size:13px}.center-tabs a.active{background:#eaf3ff;color:var(--blue);font-weight:600}.center-card-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:22px}.center-card-grid .panel{margin:0;min-width:0}.center-card-grid .panel-header{gap:12px;flex-wrap:wrap}.center-card-grid .panel-header h2{flex:1;overflow-wrap:anywhere;font-size:16px;min-width:150px}.center-card-actions{border-top:1px solid var(--line);display:flex;gap:20px;padding:16px 23px;align-items:center;flex-wrap:wrap}.profile-card .detail-kv dd{overflow-wrap:anywhere;min-width:0}.center-checkbox{display:flex;gap:10px;align-items:center;margin-top:20px;font-size:13px;color:#536984}.center-checkbox input{width:16px;height:16px;accent-color:var(--blue)}.address-phone{font-size:16px;color:#2f415d;font-weight:600;margin-bottom:12px}.address-detail{font-size:14px;line-height:1.8;color:#718099;min-height:44px;overflow-wrap:anywhere}.address-codes{padding:14px 0;border-bottom:1px solid var(--line);border-top:1px solid var(--line);margin-top:14px}.address-codes summary{font-size:12px;color:#6e819d;cursor:pointer}.address-codes p{margin:12px 0}.address-picker{padding-bottom:20px;margin-bottom:20px;border-bottom:1px solid var(--line)}.address-picker .row{margin-top:10px}.invoice-selection{margin:14px 0 20px}.checkbox-list label>span{display:flex;flex-direction:column;gap:7px}.checkbox-list label small{color:#8593a5}.price-review-banner{background:#fff9ed;border:1px solid #f4d89f;border-radius:8px;padding:22px 25px;margin:0 0 24px;display:flex;gap:20px;justify-content:space-between;align-items:center}.price-review-banner>div:first-child{display:flex;gap:15px;align-items:flex-start}.price-review-banner>.icon,.price-review-banner>div>.icon{color:#a5660f;flex-shrink:0;margin-top:2px}.price-review-banner h2{font-size:17px;color:#80551a;margin:0 0 7px}.price-review-banner p{font-size:12px;line-height:1.8;color:#8a775c;margin:0}.price-review-values{display:flex;gap:28px;flex-shrink:0}.price-review-values>span{display:flex;flex-direction:column;font-size:11px;color:#86714e;gap:5px}.price-review-values strong{font-size:22px;font-variant-numeric:tabular-nums;color:#744716}.price-review-values small{font-size:10px}.pending-amount{color:#a16b16!important;margin-top:6px}.external-steps{grid-template-columns:repeat(5,minmax(0,1fr))!important}.external-steps:has(.step:nth-child(6)){grid-template-columns:repeat(var(--ac-step-count,6),minmax(0,1fr))!important}
@media(max-width:1000px){.price-review-banner{align-items:flex-start;flex-direction:column}.price-review-values{padding-left:35px}.center-card-grid{grid-template-columns:minmax(0,1fr)}}
@media(max-width:650px){.center-nav{gap:17px;margin-bottom:20px}.center-nav a{font-size:12px;padding:12px 0}.center-nav .icon{width:16px;height:16px}.center-tabs a{padding:9px 12px;font-size:12px}.center-card-actions{padding:14px 17px}.center-card-grid{gap:16px}.price-review-banner{padding:18px}.price-review-values{gap:28px;padding-left:0;width:100%}.price-review-values strong{font-size:21px}.external-steps{grid-template-columns:repeat(3,minmax(0,1fr))!important;row-gap:22px}.external-steps:has(.step:nth-child(6)){grid-template-columns:repeat(3,minmax(0,1fr))!important}.external-steps .step{font-size:11px}.external-steps .step:nth-child(3)::after{display:none}.profile-card .detail-kv{grid-template-columns:94px minmax(0,1fr)}.page-header>.btn{white-space:nowrap}.center-card-actions .link-button{font-size:12px}.address-detail{font-size:13px}}
/* V0.4 additions keep the approved blue-white product/admin design system. */
.gallery-column{min-width:0}.image-thumbs{display:flex;gap:10px;margin:14px 0;overflow-x:auto;padding:2px}
.image-thumbs button{width:64px;height:58px;border:1px solid #dfe7f3;background:white;border-radius:7px;padding:5px;flex:none;cursor:pointer}.image-thumbs button.selected{border:2px solid #1263ef}.image-thumbs img{width:100%;height:100%;object-fit:contain}
.product-model{font-size:14px;margin:14px 0 22px}.product-info{min-width:0}.product-actions{margin:24px 0}.product-v04 .big-picture{min-height:320px}
.stock-query{margin-top:22px;border-top:1px solid #edf0f5;padding-top:18px}.stock-query .form-field{margin-bottom:12px}.variant-row{display:flex;gap:16px;margin:12px 0;align-items:center}.variant-row>div{display:flex;gap:8px;flex-wrap:wrap}.variant-row .selected{border-color:#1263ef;color:#1263ef;background:#f0f6ff}
.safe-rich{max-width:920px;margin:0 auto;line-height:1.85;color:#33455d;font-size:14px;overflow-wrap:anywhere}.safe-rich h2{font-size:24px;margin:14px 0 18px;color:#182c47}.safe-rich h3{font-size:19px;margin:14px 0}.safe-rich img{display:block;max-width:100%;max-height:560px;object-fit:contain;height:auto;margin:22px auto}.safe-rich table{width:100%;table-layout:auto;max-width:100%;border-collapse:collapse}.safe-rich td,.safe-rich th{padding:10px;border:1px solid #e5eaf1}.rich-mobile{display:none}.integration-checks{padding-left:20px;margin:0 0 20px;line-height:2.1;color:#42566e;font-size:13px}.wrap-method{white-space:normal;overflow-wrap:anywhere;max-width:370px}.catalog-kpis .kpi-value{font-size:29px}
@media(max-width:720px){.product-v04 .big-picture{min-height:220px}.safe-rich h2{font-size:20px}.rich-pc{display:none}.rich-mobile{display:block}.catalog-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}.product-info h1{font-size:22px}.stock-query select{max-width:100%}.product-actions{gap:9px}.variant-row{align-items:flex-start;flex-direction:column}.detail-tabs{overflow-x:auto}.safe-rich{font-size:13px}.wrap-method{max-width:240px}}
/* Account security uses the existing form/panel system. */
.account-security{max-width:720px;margin:0 auto}

.channel-account-history{padding:12px 0;border-bottom:1px solid var(--line)}.channel-account-history pre{white-space:pre-wrap;overflow-wrap:anywhere;font-size:12px}
/* Internal operations retain the existing panel system. */
#catalog-search .control{flex:1;min-width:130px;width:auto}#catalog-search .row{align-items:center}#catalog-search{margin-bottom:20px}.toolbar>.field{margin:0;min-width:120px}.toolbar>input.control{min-width:120px;flex:1}.category-rail{max-height:75vh;overflow-y:auto}#report-filter .field{margin-bottom:0;min-width:140px}#new-receipt-fields[hidden]{display:none}
@media(max-width:720px){.shop-layout{display:block}.category-rail{max-height:200px;margin-bottom:18px}.toolbar{flex-wrap:wrap}.toolbar>.field{flex:1}.product-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.panel-body .row.wrap>.control{min-width:100px}.page-header{flex-wrap:wrap}}
.audit-json{white-space:pre-wrap;overflow-wrap:anywhere;max-width:400px;font-size:11px}.shop-layout>div{min-width:0}#order-filter input.control{width:auto}#catalog-search{min-width:0}
#audit-results .audit-record td{vertical-align:middle;white-space:nowrap}
#audit-results .audit-toggle{border:0;background:transparent;color:var(--blue);padding:6px 0;font:inherit;white-space:nowrap}
#audit-results .audit-toggle::before{content:'▸';display:inline-block;margin-right:7px}
#audit-results .audit-toggle[aria-expanded=true]::before{content:'▾'}
#audit-results .audit-detail-row[hidden]{display:none}
#audit-results .audit-detail-row>td{padding:0;background:#f7faff}
#audit-results .audit-detail{padding:16px 22px 22px}
#audit-results .audit-changes{width:100%;min-width:0;table-layout:fixed;background:#fff;border:1px solid var(--line)}
#audit-results .audit-changes caption{text-align:left;padding:0 0 10px;color:var(--muted);font-size:12px}
#audit-results .audit-changes th,#audit-results .audit-changes td{padding:11px 14px;border:1px solid var(--line);vertical-align:top;white-space:pre-wrap;overflow-wrap:anywhere}
#audit-results .audit-changes thead th{background:#edf4ff}
#audit-results .audit-changes th:first-child{width:24%}
#audit-results .audit-changes tbody th{font-weight:500;background:#fafcff}
#audit-results .audit-empty{padding:8px 0;color:var(--muted)}
@media(max-width:650px){#audit-results>.panel>.table-wrap{overflow-x:auto}#audit-results .audit-record td{padding:12px}#audit-results .audit-detail{padding:12px}#audit-results .audit-changes th,#audit-results .audit-changes td{padding:9px}}
.mobile-category-picker{display:none}@media(max-width:720px){.mobile-category-picker{display:block}}

/* F08: bounded directories and searchable, persistent selection. */
.directory-pager{display:flex;align-items:center;flex-wrap:wrap;gap:8px;padding:14px 16px;border-top:1px solid var(--line,#e5e9f0);font-size:12px;color:#64748b}.directory-pager span{margin-right:auto}.remote-picker{min-width:0;border:1px solid #dce4ee;border-radius:10px;margin:14px 0;padding:12px}.remote-picker legend{font-size:13px;font-weight:600;padding:0 6px}.remote-picker .row{gap:8px}.remote-picker .control{min-width:0;flex:1}.picker-selected{display:flex;gap:6px;flex-wrap:wrap;margin-bottom:10px}.picker-chip{display:inline-flex;align-items:center;gap:6px;background:#eff5ff;border-radius:6px;padding:6px 8px;max-width:100%;overflow-wrap:anywhere;font-size:12px}.picker-chip button{border:0;background:none;color:#335a91;cursor:pointer;font-size:17px}.picker-results{display:grid;gap:4px;margin-top:8px}.picker-option{font:inherit;text-align:left;border:0;border-radius:6px;padding:8px;background:#f7f9fc;color:#334155;cursor:pointer;overflow-wrap:anywhere}.picker-option.selected{background:#eaf2ff;color:#1d5bc3}.staff-search{display:flex;flex-wrap:wrap;gap:8px}.staff-search .control{min-width:0;width:100%}.staff-search .btn{width:100%}.staff-directory .directory-pager{padding:12px 8px;font-size:11px}.toolbar select{max-width:170px}
@media(max-width:600px){.remote-picker{padding:10px}.directory-pager{padding:12px 8px}.directory-pager .btn{padding:7px 9px}.toolbar{flex-wrap:wrap}.toolbar .control{max-width:100%;min-width:0}.picker-option{font-size:12px}.picker-chip{font-size:11px}.order-columns .kv{overflow-wrap:anywhere}}
.staff-directory #staff-list{max-height:min(30vh,300px);overflow:auto}.staff-search #staff-status{flex:1;width:auto}.staff-search .btn{width:auto}
@media(max-width:800px){.staff-directory #staff-list{max-height:230px}}
.fund-account-filter{margin:10px 0 16px}.fund-account-filter>summary{cursor:pointer;color:#2563b9;font-size:13px;font-weight:600;padding:8px 0;overflow-wrap:anywhere}

/* Account entry follows the supplied account/login reference. */
.entry-page{min-height:calc(100vh - 28px);display:flex;flex-direction:column;background:#f8fbff;color:#182c51}
.entry-header{height:76px;background:#fff;border-bottom:1px solid #eaf0fa;display:flex;align-items:center;padding:0 max(30px,calc((100vw - 1280px)/2));gap:18px}
.entry-header .brand img{width:30px;height:30px}.entry-header .brand strong{font-size:20px}.entry-header>span{font-size:12px;color:#7889a4;border-left:1px solid #dce4f0;padding-left:18px}
.entry-main{flex:1;display:flex;align-items:center;justify-content:center;padding:44px 24px}.entry-card{width:480px;max-width:100%;padding:34px;background:#fff;border:1px solid #e9f1ff;border-radius:6px;box-shadow:0 4px 24px #2a7cf015}.entry-card h1{font-size:23px;margin:0 0 24px;line-height:1.4}.entry-card .btn.primary{background:#087cff;border-color:#087cff;border-radius:3px}.entry-card .btn{min-height:40px}.entry-card>.btn{margin-top:16px}.entry-tabs{display:flex;background:#f4f7fc;margin-bottom:26px}.entry-tabs button{flex:1;border:0;border-bottom:2px solid transparent;background:none;padding:13px 2px;color:#75839a;font-size:13px;cursor:pointer}.entry-tabs button[aria-selected=true]{color:#087cff;border-color:#087cff;background:#edf5ff;font-weight:600}
.entry-row{display:flex;align-items:center;gap:12px;margin-bottom:18px}.entry-row>label{flex:0 0 83px;font-size:12px;font-weight:600}.entry-control{position:relative;flex:1;min-width:0}.entry-row input{width:100%;min-width:0;height:38px;border:1px solid #dce5f2;border-radius:3px;padding:8px 11px;background:#fff;font:inherit;font-size:12px;color:#263b59}.entry-row input::placeholder{color:#9aa9be}.entry-row input:focus{outline:2px solid #b7d6ff;outline-offset:1px}.entry-control:has(.password-toggle) input{padding-right:44px}.password-toggle{position:absolute;right:5px;top:8px;border:0;background:transparent;color:#7d8aa0;font-size:11px;cursor:pointer}.entry-code{display:flex;gap:8px;flex:1;min-width:0}.entry-code input{flex:1;width:0}.entry-code .btn{font-size:11px;white-space:nowrap;color:#087cff;border-color:#d9e8ff;background:#f4f9ff;min-height:38px;padding:0 10px}.entry-forgot{text-align:right;font-size:11px;margin-top:-10px;margin-bottom:24px}.entry-page a{color:#087cff}.entry-page .brand{color:#182c51}.entry-page a.btn.primary{color:#fff}.entry-switch{font-size:12px;text-align:center;color:#7c8ba4;margin:24px 0 0}.entry-switch a{font-weight:600}.entry-footer{text-align:center;border-top:1px solid #e6eefb;background:#fff;padding:18px 12px;color:#8a98af;font-size:11px}.entry-footer a{color:#7889a4}.entry-footer span{padding:0 10px}.entry-footer p{margin:8px 0 0}.entry-subtitle{font-size:12px;color:#7b8aa3;margin:-16px 0 24px}.entry-register{width:500px;padding:30px 34px}.entry-register .entry-row{margin-bottom:15px}.entry-agreement{display:flex;gap:8px;font-size:11px;margin:20px 0 16px;align-items:flex-start}.entry-agreement input{margin:2px 0 0}.entry-agreement small{display:block;color:#8a98af;margin-top:5px}.entry-source,.mock-code{font-size:11px;color:#7b8aa3;line-height:1.6;margin:0 0 14px}.mock-code{color:#8e6923}.agreement-document{width:760px;line-height:1.8}.agreement-document h2{font-size:17px;margin-top:24px}
.certification-page{max-width:1320px;margin:0 auto}.cert-breadcrumb{font-size:12px;color:#8a99ad;margin:0 0 16px}.cert-breadcrumb a{color:#087cff}.cert-layout{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:22px}.cert-card,.cert-assistant{background:white;border:1px solid #eaf0f8;border-radius:6px;align-self:start}.cert-steps{display:flex;justify-content:center;gap:46px;list-style:none;margin:0;padding:22px 18px;border-bottom:1px solid #e7edf6}.cert-steps li{display:flex;gap:10px;align-items:center;color:#8c99af;font-size:13px;font-weight:600}.cert-steps li>span{display:inline-flex;align-items:center;justify-content:center;width:25px;height:25px;border-radius:50%;background:#edf1f7}.cert-steps li.active{color:#087cff}.cert-steps li.active>span{background:#087cff;color:white}.cert-steps li.complete{color:#087cff}.cert-form{padding:28px 32px}.cert-field{display:grid;grid-template-columns:155px minmax(0,1fr);align-items:center;gap:14px;margin-bottom:20px}.cert-field>label{font-size:12px;font-weight:600;color:#243654}.cert-field>label>span{color:#e44955}.cert-field input:not([type=file]),.cert-field select{border:1px solid #dce5f2;border-radius:3px;min-width:0;width:100%;height:36px;padding:6px 11px;background:white;color:#2c4062;font:inherit;font-size:12px}.cert-field input::placeholder{color:#9daac0}.cert-field input:focus,.cert-field select:focus{outline:2px solid #b7d6ff;outline-offset:1px}.cert-address{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin-left:169px}.cert-address .cert-field{display:block}.cert-address label{display:block;margin-bottom:8px}.cert-form h2{font-size:15px;border-left:4px solid #087cff;padding-left:12px;margin:4px 0 24px}.cert-form h2:not(:first-child){margin-top:28px}.cert-upload-field{align-items:start}.cert-upload{position:relative;width:140px;min-height:88px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;border:1px dashed #c8d7ef;border-radius:3px;background:#fcfdff;cursor:pointer;font-size:12px;color:#456087}.cert-upload .icon{color:#8394ad;width:25px;height:25px}.cert-upload input{position:absolute;inset:0;opacity:0;width:100%;cursor:pointer}.cert-help,.cert-file{font-size:11px;color:#8a9ab2;line-height:1.6;margin:7px 0 0}.cert-file a{color:#087cff}.legal-uploads{display:grid;grid-template-columns:1fr 1fr;gap:18px}.legal-uploads .cert-field{display:flex;flex-direction:column;align-items:flex-start}.cert-actions{border-top:1px solid #e5edf8;padding-top:20px;margin-top:28px;display:flex;align-items:center;justify-content:flex-end;gap:12px}.cert-actions .btn{min-width:96px;border-radius:3px}.cert-actions .primary{background:#087cff;border-color:#087cff}.cert-save-status{margin-right:auto;font-size:12px;color:#47906e}.cert-assistant h2{margin:0;background:#eef6ff;padding:18px;font-size:15px;color:#1740a6;display:flex;gap:8px;align-items:center}.cert-assistant>div{padding:20px;font-size:12px;line-height:1.9;color:#52637f}.cert-assistant h3{font-size:13px;color:#223c67;margin:0 0 12px}.cert-assistant ol{padding-left:20px}.cert-assistant li{margin-bottom:10px}.cert-assistant section{border-top:1px solid #edf1f6;margin-top:20px;padding-top:20px}.cert-result{padding:70px 30px;text-align:center}.cert-result>.icon{width:48px;height:48px;color:#087cff}.cert-result h1{font-size:24px;margin-top:20px}.cert-result p{color:#7c8ca5;line-height:1.8}.cert-result .btn{margin:20px 4px 0}.cert-review-history{padding:20px;background:white;margin-top:20px;border-radius:6px}.cert-review-history small{color:#8393aa}.cert-entry{color:#087cff!important;white-space:nowrap}.onboarding-welcome{padding:70px 35px;background:white;text-align:center;border:1px solid #e8eff9;border-radius:6px}.onboarding-welcome h1{font-size:28px;color:#1d3559}.onboarding-welcome p{color:#7c8ca5;line-height:1.9}
@media(max-width:1000px){.cert-layout{grid-template-columns:minmax(0,1fr) 240px}.cert-form{padding:24px 20px}.cert-field{grid-template-columns:130px minmax(0,1fr)}.cert-address{margin-left:144px}.topbar{flex-wrap:wrap}.cert-steps{gap:22px}}
@media(max-width:720px){.entry-header{height:64px;padding:0 20px}.entry-header>span{display:none}.entry-header .brand strong{font-size:18px}.entry-main{padding:24px 14px;align-items:flex-start}.entry-card{padding:26px 20px}.entry-row{gap:8px}.entry-row>label{flex-basis:76px;font-size:11px}.entry-code .btn{padding:0 7px}.entry-agreement{font-size:10px}.cert-layout{grid-template-columns:1fr}.cert-assistant{order:2}.cert-form{padding:24px 16px}.cert-field{grid-template-columns:1fr;gap:8px}.cert-address{margin-left:0;gap:8px}.cert-steps{gap:16px;padding:20px 10px}.cert-steps li{font-size:11px;gap:5px}.cert-steps li>span{width:22px;height:22px}.cert-actions{flex-wrap:wrap}.cert-save-status{flex-basis:100%}.cert-upload{width:130px}.legal-uploads{gap:12px}.topbar .brand-subtitle{display:none}.onboarding-welcome{padding:40px 20px}}

.topbar .account-info{min-width:100px;max-width:160px;flex-shrink:0}.topbar .account-info strong{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.topbar .cert-entry{flex-shrink:0}
@media(max-width:1400px){.topbar .brand-subtitle{display:none}.topbar{gap:16px}}
@media(min-width:651px) and (max-width:1000px){.topbar{height:auto;min-height:78px;padding-top:12px;padding-bottom:12px}.topbar .toplinks{order:3;flex-basis:100%;justify-content:center}}
@media(max-width:650px){.topbar .cert-entry{margin-left:auto;font-size:12px;padding:8px 10px}.topbar .spacer{display:none}.topbar .brand{flex:0 1 auto}.topbar .brand strong{font-size:16px}.topbar .btn.ghost{order:4}.topbar .toplinks{order:3}}
/* Reference comparison: compact certification rhythm and balanced account card. */
.entry-card{width:600px;padding:38px 42px}.entry-register{width:600px;padding:30px 42px}.entry-card h1{font-size:25px}.entry-row>label{flex-basis:92px;font-size:13px}.entry-row input{font-size:13px}.entry-tabs button{font-size:14px}.entry-switch{font-size:13px}
.cert-layout{grid-template-columns:minmax(0,1fr) 320px}.cert-form{padding:22px 28px}.cert-field{margin-bottom:14px}.cert-field input:not([type=file]),.cert-field select{height:34px}.cert-form h2{margin:0 0 16px}.cert-form h2:not(:first-child){margin-top:16px}.cert-upload{min-height:64px;width:130px;gap:5px}.cert-upload .icon{width:22px;height:22px}.cert-help,.cert-file{margin-top:4px}.legal-uploads{margin-left:169px;gap:16px}.legal-uploads .cert-field{margin-bottom:0;gap:8px}.legal-uploads .cert-help{display:none}.cert-actions{padding-top:16px;margin-top:18px}.cert-assistant>div{padding:18px}
@media(max-width:1000px){.cert-layout{grid-template-columns:minmax(0,1fr) 240px}.legal-uploads{margin-left:144px}}
@media(max-width:720px){.entry-card,.entry-register{padding:26px 20px}.entry-row>label{flex-basis:76px;font-size:11px}.entry-row input{font-size:12px}.cert-layout{grid-template-columns:1fr}.cert-form{padding:24px 16px}.legal-uploads{margin-left:0;gap:12px}.cert-field{margin-bottom:20px}}

/* Staff storefront switch shares the public storefront layout. */
.order-detail-status{display:inline-flex;align-items:center;justify-content:center;min-height:40px;min-width:96px;padding:9px 18px;border:1px solid;border-radius:8px;font-size:14px;font-weight:650;line-height:20px;text-align:center;cursor:default}
.order-detail-status--success,.order-status.buyer-order-status--success{color:#176b46;background:#e8f7ee;border-color:#a7d9bb}
.order-detail-status--danger,.order-status.buyer-order-status--danger{color:#b4232d;background:#fff0f0;border-color:#f2b5ba}
.order-detail-status--progress,.order-status.buyer-order-status--progress{color:#805400;background:#fff6d9;border-color:#e9ca72}
.buyer-topbar,.staff-mall-topbar{position:sticky;top:0;z-index:30;box-shadow:0 3px 12px #1a31540a}
.admin-top > .btn.primary { flex-shrink: 0; }
@media (max-width: 760px) {
 .staff-mall-topbar { flex-wrap: wrap; gap: 10px; padding: 12px 16px; }
 .staff-mall-topbar .brand-subtitle, .staff-mall-topbar .spacer { display: none; }
 .staff-mall-topbar .account-info { margin-left: auto; }
}

/* Staff navigation on the sidebar and in the mobile menu. */
.sidebar--grouped{
 display:flex;flex-direction:column;align-self:flex-start;position:sticky;top:0;
 height:calc(100vh - 28px);height:calc(100dvh - 28px);padding-bottom:0;
}
.sidebar--grouped .sidebar-brand{flex-shrink:0;margin-bottom:8px}
.sidebar--grouped .side-foot{margin:0;padding:14px 22px 20px;flex-shrink:0}
.staff-nav{flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;padding:4px 0 8px}
.staff-nav-shortcuts:not(:last-child){
 margin-bottom:8px;padding-bottom:8px;border-bottom:1px solid #ffffff12;
}
.staff-nav .staff-nav-group-toggle,.staff-menu-panel .staff-nav a{
 display:flex;align-items:center;gap:10px;min-height:40px;margin:3px 12px;padding:8px 12px;
 border:0;border-radius:6px;background:transparent;color:#c4d2e4;text-align:left;
 font-family:inherit;font-size:13px;line-height:1.4;
}
.staff-nav .staff-nav-group-toggle{width:calc(100% - 24px);font-weight:600}
.staff-nav .staff-nav-group-toggle:hover,.staff-nav .staff-nav-group-toggle[aria-expanded="true"],
.staff-nav .staff-nav-group-current>.staff-nav-group-toggle{
 background:#243a53;color:#fff;
}
.staff-nav-chevron{
 width:7px;height:7px;margin-left:auto;margin-right:3px;flex-shrink:0;
 border-top:1.5px solid currentColor;border-right:1.5px solid currentColor;transform:rotate(45deg);
}
.staff-nav-group-toggle[aria-expanded="true"] .staff-nav-chevron{transform:rotate(135deg)}
.sidebar .staff-nav-children a,.staff-menu-panel .staff-nav-children a{
 min-height:36px;padding:8px 10px 8px 29px;
}
.staff-nav-children[hidden]{display:none}
.staff-nav :is(a,button):focus-visible,.staff-menu-header button:focus-visible{
 outline:2px solid #a8caff;outline-offset:-2px;
}
.staff-menu-trigger.btn{display:none}
.staff-menu-drawer:not([open]){display:none}
.staff-menu-drawer{
 position:fixed;inset:0 auto 0 0;margin:0;padding:0;border:0;
 width:min(320px,calc(100% - 32px));max-width:none;height:100%;max-height:none;
 background:var(--navy);color:#fff;box-shadow:12px 0 30px #08172b38;
}
.staff-menu-drawer::backdrop{background:#09192d8c}
.staff-menu-panel{height:100%;display:flex;flex-direction:column}
.staff-menu-header{
 display:flex;align-items:center;justify-content:space-between;gap:12px;flex-shrink:0;
 padding:12px 14px 12px 22px;border-bottom:1px solid #ffffff14;
}
.staff-menu-header h2{font-size:16px;margin:0}
.staff-menu-header button{
 display:grid;place-items:center;width:40px;height:40px;border:0;border-radius:6px;
 background:#ffffff0d;color:#fff;
}
.staff-menu-panel .staff-nav a:hover{background:#ffffff10;color:#fff}
.staff-menu-panel .staff-nav a.active{background:#0867eb;color:#fff}
@media(max-width:900px){
 .sidebar .staff-nav .staff-nav-group-toggle{width:calc(100% - 14px);margin-inline:7px;padding-inline:10px;font-size:12px}
 .sidebar .staff-nav-children a{padding-left:23px}
 .sidebar--grouped .side-foot{padding-inline:15px}
}
@media(max-width:650px){
 .sidebar--grouped{display:none}
 .staff-menu-trigger.btn{display:inline-flex;margin-inline-end:10px;vertical-align:middle}
 .staff-menu-panel .staff-nav a,.staff-menu-panel .staff-nav-group-toggle{min-height:44px}
}

/* Shared UI rhythm: controls, filter rows, account header and responsive states. */
:root { --muted: #65758b; --control-height: 40px; --control-line: 20px; }
.btn { min-height: var(--control-height); padding: 9px 16px; line-height: var(--control-line); }
.btn.small { min-height: 32px; padding: 5px 10px; line-height: 20px; }
.field input:not([type=checkbox]):not([type=file]), .field select,
input.control, select.control { height: var(--control-height); min-height: var(--control-height); line-height: var(--control-line); padding: 9px 11px; min-width: 0; }
.field label { line-height: 20px; }
.field { gap: 8px; min-width: 0; }
.field .help, .small-note, td .sub, .kpi-foot, .footer-note,
.cert-help, .cert-file, .entry-source, .entry-footer, .entry-forgot,
.entry-agreement, .entry-agreement small { font-size: 12px; color: var(--muted); }
input::placeholder, textarea::placeholder { color: #738299; opacity: 1; }
.tag, .scoped-label { font-size: 12px; line-height: 20px; }
.table-wrap { max-width: 100%; }
table { font-size: 13px; }
th { color: #5e6f86; font-weight: 600; }
td { line-height: 1.6; }
td .buttons, .page-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
td > .btn + .btn, td > .link-button + .link-button { margin-left: 8px; }
.page-header > div:first-child { min-width: 0; }
.page-header h1 { overflow-wrap: anywhere; }
.page-actions { justify-content: flex-end; flex-shrink: 0; }
.page-header p { font-size: 13px; line-height: 1.7; }
.panel-header { flex-wrap: wrap; }
.panel-header h2 { min-width: 0; overflow-wrap: anywhere; }
.toolbar { flex-wrap: wrap; }
.toolbar > input.control { width: auto; }
.filter-bar { display: flex; align-items: flex-start; flex-wrap: wrap; gap: 16px; }
.filter-bar > .field { flex: 1 1 150px; min-width: 150px; max-width: 240px; margin: 0; }
.filter-bar > .filter-search { flex-basis: 230px; max-width: 290px; }
.filter-bar > .field > :is(input, select) { width: 100%; max-width: none; }
.filter-bar > .btn { margin-top: 28px; }
#fund-filter > .filter-bar { padding: 0; border: 0; }
#fund-filter > .row { flex-wrap: wrap; }
.directory-pager { font-size: 13px; padding: 14px 22px; }
.directory-pager .btn { flex-shrink: 0; }
.empty { padding: 40px 20px; font-size: 13px; overflow-wrap: anywhere; }
.empty h3 { font-size: 16px; }
.table-wrap.is-empty + .empty { border-bottom: 1px solid var(--line); }
.admin-top { height: auto; min-height: 72px; gap: 16px; padding-top: 12px; padding-bottom: 12px; }
.admin-breadcrumb { color: var(--muted); font-size: 13px; white-space: nowrap; }
.admin-account-actions { display: flex; align-items: center; justify-content: flex-end; gap: 12px; margin-left: auto; min-width: 0; }
.admin-account-actions > .btn, .admin-account-actions > .scoped-label { flex-shrink: 0; }
.account-person { display: flex; align-items: center; gap: 10px; min-width: 0; }
.account-person .letter-avatar { flex-shrink: 0; }
.account-person .account-info { line-height: 20px; min-width: 0; max-width: 150px; }
.account-person .account-info strong, .account-person .account-info > span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.admin-account-actions .scoped-label { color: #38659f; }
.modal-head, .modal-footer { flex-shrink: 0; }
.modal .close { width: 36px; height: 36px; line-height: 1; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.modal-head h2 { min-width: 0; overflow-wrap: anywhere; }
.detail-kv { grid-template-columns: 126px minmax(0,1fr); font-size: 13px; }
.detail-kv dt { color: var(--muted); }
input[type=file] { max-width: 100%; }
input[type=file]::file-selector-button { border: 1px solid #dce4ef; border-radius: 4px; padding: 7px 12px; margin-right: 12px; background: #fff; color: #3e4f68; font: inherit; cursor: pointer; }
.entry-row input { height: 40px; line-height: 20px; }
.entry-code .btn { min-height: 40px; font-size: 12px; }
.password-toggle { top: 0; right: 2px; min-width: 40px; height: 40px; padding: 0 5px; font-size: 12px; color: #536984; }
.entry-switch, .entry-subtitle { color: var(--muted); }
.entry-row input::placeholder { color: #738299; }
.account-recovery .page-header h1 { font-size: 25px; }
.account-recovery .panel { box-shadow: none; margin-bottom: 0; }
.account-recovery ol { padding-left: 20px; margin: 0 0 22px; }
.account-recovery li + li { margin-top: 12px; }
.cert-field input:not([type=file]), .cert-field select { height: 40px; font-size: 13px; }
.cert-field > label { font-size: 13px; line-height: 20px; }
.cert-upload:focus-within { outline: 2px solid #78b1ff; outline-offset: 3px; }
.cert-upload input::file-selector-button { display: none; }
.cert-asset-card { display: flex; align-items: flex-start; flex-direction: column; gap: 8px; margin-top: 10px; max-width: 280px; }
.cert-thumbnail, .cert-pdf { width: 176px; min-height: 124px; padding: 8px; border: 1px solid #d6e2f1; border-radius: 6px; background: #f7faff; color: #1263ca; cursor: pointer; text-align: center; }
.cert-thumbnail img { display: block; width: 158px; height: 96px; object-fit: contain; background: white; }
.cert-thumbnail span { display: block; margin-top: 6px; font-size: 12px; }
.cert-thumbnail:focus-visible, .cert-remove:focus-visible { outline: 2px solid #1677ff; outline-offset: 3px; }
.cert-pdf { display: flex; align-items: center; justify-content: center; gap: 12px; text-decoration: none; }
.cert-pdf .icon { width: 28px; height: 28px; }
.cert-asset-name { max-width: 100%; overflow-wrap: anywhere; color: #53657c; font-size: 12px; }
.cert-remove { color: #bd3030; }
.cert-preview-error { color: #bd3030; }
.cert-preview-dialog { margin: auto; width: min(900px, 94vw); max-height: 90vh; padding: 20px; border: 0; border-radius: 10px; overflow: auto; }
.cert-preview-dialog::backdrop { background: rgba(15, 30, 50, .65); }
.cert-preview-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.cert-preview-heading h2 { margin: 0; font-size: 18px; }
.cert-preview-dialog > img { display: block; max-width: 100%; max-height: 70vh; object-fit: contain; margin: auto; }
.channel-card .brand { flex-wrap: wrap; }
.channel-card .brand strong { white-space: normal; overflow-wrap: anywhere; }
.channel-card .brand + .small-note { margin-top: 12px; }
@media (max-width: 1200px) {
 .admin-account-actions > .scoped-label { display: none; }
 .admin-account-actions { gap: 8px; }
}
@media (max-width: 1000px) {
 .admin-top { flex-wrap: wrap; }
 .admin-breadcrumb { flex-basis: 100%; }
 .admin-account-actions { width: 100%; }
 .account-person { margin-right: auto; }
}
@media (max-width: 720px) {
 .page-actions { justify-content: flex-start; max-width: 100%; }
 .filter-bar > .field, .filter-bar > .filter-search { flex: 1 1 150px; max-width: none; min-width: 0; }
 .filter-bar > .btn { margin-top: 28px; }
 .entry-row > label { font-size: 12px; }
 .entry-row input { font-size: 13px; }
 .entry-agreement { font-size: 12px; }
 .cert-address { grid-template-columns: 1fr; }
 .cert-address .cert-field { margin-bottom: 0; }
 .cert-address { margin-bottom: 20px; }
 .detail-kv { grid-template-columns: 94px minmax(0,1fr); }
 .panel-header, .panel-body, .toolbar { padding: 16px; }
 .modal-head { padding: 14px 16px; }
 .modal-body { padding: 18px 16px; }
 .modal-footer { padding: 14px 16px; flex-wrap: wrap; }
 .overlay { padding: 12px; }
 .modal { max-height: calc(100dvh - 24px); }
}
@media (max-width: 650px) {
 .admin-top { padding: 12px 14px; gap: 10px; }
 .admin-account-actions { gap: 6px; }
 .admin-account-actions .btn { font-size: 12px; padding: 9px 8px; }
 .account-person { gap: 6px; }
 .account-person .letter-avatar { display: none; }
 .account-person .account-info { max-width: 96px; }
 .account-person .account-info strong { font-size: 12px; }
 .filter-bar > .filter-search { flex-basis: 100%; }
 .filter-bar > .btn { margin-top: 0; align-self: flex-end; }
 .filter-bar .field input, .filter-bar .field select { min-width: 0; }
 .directory-pager { gap: 8px; padding: 12px 16px; }
 .directory-pager span { flex: 1 1 100%; }
 .page-header p { font-size: 12px; }
 .empty { padding: 32px 16px; }
 .topbar .btn { font-size: 12px; padding: 9px 10px; }
 .staff-mall-topbar .brand { flex-basis: 100%; }
 .entry-main { padding: 24px 14px; }
 .entry-card, .entry-register { padding: 24px 18px; }
 .entry-code .btn { padding: 0 8px; }
 .cert-actions .btn { min-width: 80px; }
}
/* Keep channel card headings and brand previews aligned across a row. */
.channel-card > .row:first-child { flex-wrap: wrap; align-items: flex-start; gap: 8px; }
.channel-card > .row:first-child > h2 { flex-basis: 100%; font-size: 18px; }
.channel-card > .row:first-child > .spacer { display: none; }
.channel-card .logo-preview { margin: 16px 0; }
.account-recovery .page-header h1 { margin-bottom: 0; }
.product-card .spec, .product-card .price span, .product-card .btn,
.timeline li small, .cert-steps li { font-size: 12px; }
.product-card .spec, .product-card .price span { color: var(--muted); }
.topbar .brand img { flex-shrink: 0; }
.topbar .brand strong { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.channel-card > .row:first-child > h2 { overflow-wrap: anywhere; }
@media (max-width: 650px) {
 .topbar:has(> .cert-entry) > .brand { flex: 1 1 0; max-width: calc(100% - 100px); }
}

/* Prototype alignment: buyer storefront, order cards, channel and invoice workspaces. */
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.registration-success{text-align:center}.success-symbol{margin:8px auto 24px;border-radius:50%;background:#e7f8ee;color:#16a064;width:72px;height:72px;font-size:42px;line-height:72px}.registration-success p{color:#64748b;line-height:1.8}.registration-success ol{text-align:left;padding:20px 20px 20px 44px;background:#f4f8ff;line-height:2.2;margin:24px 0}
.page:has(>.storefront){max-width:none;padding-inline:clamp(14px,2vw,40px)}
.store-search{grid-column:2;display:flex;width:min(850px,100%);margin:0;border:2px solid #1767ed;border-radius:6px;position:relative;z-index:5;background:white}.store-search>.btn{border-radius:0;min-width:110px;height:52px;font-size:16px}.search-input-wrap{position:relative;flex:1;display:flex;align-items:center;min-width:0;padding-left:18px;color:#1767ed}.search-input-wrap input{border:0!important;box-shadow:none!important;height:52px;width:100%;min-width:0;font-size:15px;padding:0 14px;outline-offset:-4px}.search-suggestions{position:absolute;top:54px;left:0;right:0;border:1px solid #dce7f7;background:#fff;box-shadow:0 12px 28px #213e651c;border-radius:0 0 8px 8px;padding:12px;color:#334155}.search-suggestions[hidden]{display:none}.search-suggestions p{font-size:12px;color:#64748b;margin:4px 10px 8px}.search-suggestions button{display:flex;align-items:center;gap:9px;text-align:left;border:0;background:white;padding:10px;width:100%;color:#334155;cursor:pointer}.search-suggestions button:hover,.search-suggestions button:focus{background:#eff6ff}
.store-layout{display:grid;grid-template-columns:220px minmax(0,1fr);gap:20px;align-items:start}.store-category-toggle{display:none}.store-categories{background:white;border:1px solid #e2e8f0;border-radius:10px;position:relative;z-index:3}.store-categories h2{font-size:17px;display:flex;align-items:center;gap:12px;background:#1165ef;color:white;margin:0;padding:18px;border-radius:9px 9px 0 0}.store-categories .category-all{display:block;padding:15px 20px}.store-categories details{position:relative}.store-categories summary{list-style:none;display:flex;align-items:center;gap:12px;padding:18px;cursor:pointer;font-weight:600}.store-categories summary::-webkit-details-marker{display:none}.store-categories summary span:last-child{margin-left:auto}.store-categories details[open]>summary,.store-categories summary:hover,.category-all.selected{background:#eaf3ff;color:#1465df}.category-popover{position:absolute;left:100%;top:0;min-width:300px;max-width:440px;background:white;border:1px solid #d5e3f5;box-shadow:0 10px 25px #203e661a;padding:24px;z-index:8;border-radius:0 8px 8px 0}.category-popover a{display:inline-block;padding:7px 10px;color:#314861}.category-popover>a{font-weight:700;color:#155ed3}.category-leaves{margin-left:8px}.store-main{min-width:0}.store-hero{position:relative;isolation:isolate;overflow:hidden;border-radius:10px;min-height:clamp(225px,18vw,330px);background:#d9e9fc;margin-bottom:20px;display:flex;align-items:center;padding:35px}.store-hero>div{position:relative;z-index:1}.store-hero h1{font-size:clamp(24px,2.6vw,38px);letter-spacing:1px;margin:12px 0;color:#092953}.store-hero p{color:#486584;font-size:14px;letter-spacing:1px}.store-hero .btn{margin-top:18px}.store-hero picture{position:absolute;inset:0;z-index:-1}.store-hero img{display:block;width:100%;height:100%;object-fit:cover;object-position:center 55%}.store-result-heading h1{font-size:25px;margin:18px 0 8px}.store-result-heading p{color:#66758c}.store-filter{display:flex;align-items:end;gap:12px;padding:18px 20px;border-bottom:1px solid #e5ebf2;flex-wrap:wrap}.store-filter label{font-size:12px;display:grid;gap:6px;color:#566780;flex:1;min-width:105px}.store-filter input,.store-filter select{width:100%;min-width:0;height:38px}.store-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,max(180px,(100% - 70px)/6)),1fr));gap:14px;padding:20px}.store-product{border:1px solid #e3eaf2;border-radius:6px;padding:12px;display:flex;flex-direction:column;min-width:0;background:white;transition:box-shadow .15s,border-color .15s}.store-product:hover{border-color:#8bb5fa;box-shadow:0 6px 20px #28599b12}.store-picture{display:block;aspect-ratio:1;overflow:hidden;background:#fff;margin-bottom:14px}.store-picture img{width:100%;height:100%;object-fit:contain}.store-product-name{font-size:14px;font-weight:650;line-height:1.6;color:#203954;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;min-height:45px}.store-spec{font-size:12px;line-height:1.7;color:#66768a;margin:8px 0;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.store-price{display:flex;align-items:baseline;gap:6px;flex-wrap:wrap;margin:auto 0 12px}.store-price span{font-size:12px;color:#66768a}.store-price strong{color:#e13b42;font-size:20px;font-variant-numeric:tabular-nums}.store-product-actions{display:flex;gap:6px;flex-wrap:wrap}.store-product-actions .btn{flex:1;padding:8px 7px;min-height:36px;font-size:12px;white-space:nowrap}.store-products .directory-pager{padding:18px 20px}
.buyer-orders{max-width:1480px;margin:auto}.buyer-order-search{display:flex;gap:10px;width:min(480px,100%)}.buyer-order-search input{flex:1;min-width:0}.order-tabs{display:flex;gap:8px;flex-wrap:wrap;margin:20px 0}.order-tabs a{color:#41536c;padding:11px 17px;font-weight:600;border-radius:6px;white-space:nowrap}.order-tabs a.active{color:white;background:#1165ef;box-shadow:0 3px 8px #1165ef22}.order-date-filter{display:flex;align-items:end;gap:12px;flex-wrap:wrap;margin-bottom:20px;color:#66758c;font-size:13px}.order-date-filter label{display:grid;gap:6px}.order-date-filter input{height:36px}.order-card-labels{display:grid;grid-template-columns:minmax(250px,2.4fr) 1fr 1.3fr 160px;padding:14px 22px;background:#edf4fc;border:1px solid #dce7f3;border-radius:6px;color:#50627d;font-size:13px}.buyer-order-card{border:1px solid #dde6f1;border-radius:8px;overflow:hidden;background:#fff;margin-top:14px}.buyer-order-card>header{padding:12px 20px;background:#f5f8fc;display:flex;align-items:center;gap:24px;flex-wrap:wrap;font-size:12px;color:#61738e}.order-status{margin-left:auto;border-radius:30px;padding:4px 14px;background:#eaf2ff;color:#2367d9}.buyer-order-body{display:grid;grid-template-columns:minmax(250px,2.4fr) 1fr 1.3fr 160px;padding:20px;gap:0;align-items:stretch}.buyer-order-products{padding-right:18px}.buyer-order-product{display:flex;gap:12px;align-items:center;margin-bottom:16px;min-width:0}.buyer-order-product:last-child{margin-bottom:0}.buyer-order-product img{width:70px;height:64px;object-fit:contain;border:1px solid #e4ebf3;border-radius:5px;flex-shrink:0}.buyer-order-product strong{font-size:14px;line-height:1.6}.buyer-order-product p,.buyer-order-product span{font-size:12px;color:#6b7b91;margin:4px 0;overflow-wrap:anywhere}.buyer-order-total,.buyer-order-progress,.buyer-order-actions{border-left:1px solid #edf1f7;padding:0 18px;display:flex;flex-direction:column;justify-content:center;gap:9px}.buyer-order-total strong{font-size:18px;font-variant-numeric:tabular-nums}.buyer-order-total span,.buyer-order-progress p{font-size:12px;color:#64758a;line-height:1.7;margin:0}.buyer-order-progress strong{font-size:14px}.buyer-order-actions{padding-right:0}.buyer-order-actions .btn{width:100%;justify-content:center}
.channel-overview{display:grid;grid-template-columns:minmax(260px,1fr) minmax(0,2fr);gap:20px}.channel-overview .panel{min-width:0}.channel-overview .brand{white-space:normal}.channel-metrics{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;padding:4px 24px 20px}.channel-metrics>div{padding:18px;background:#f5f8fd;border-radius:8px;display:grid;gap:8px}.channel-metrics span{color:#5e7089;font-size:13px}.channel-metrics strong{font-size:24px;overflow-wrap:anywhere}.invoice-summary{display:flex;justify-content:space-between;gap:15px;margin-bottom:20px}.invoice-document{display:flex;align-items:center;gap:10px;border:1px solid #dce7f4;border-radius:7px;padding:16px;margin-bottom:12px}.invoice-document>div{flex:1;min-width:0;overflow-wrap:anywhere}.invoice-document p,.invoice-document small{font-size:12px;color:#63738a}.invoice-documents{margin:12px 0 20px}
@media(max-width:1450px){.store-layout{grid-template-columns:190px minmax(0,1fr)}.buyer-order-body,.order-card-labels{grid-template-columns:minmax(230px,2fr) 1fr 1.1fr 140px}.buyer-order-total,.buyer-order-progress,.buyer-order-actions{padding-left:12px;padding-right:12px}.buyer-order-actions{padding-right:0}}
@media(max-width:1050px){.channel-overview{grid-template-columns:1fr}.buyer-order-body{grid-template-columns:minmax(0,1.5fr) 1fr}.order-card-labels{display:none}.buyer-order-progress,.buyer-order-actions{border-left:0;border-top:1px solid #edf1f7;padding:16px 0 0;margin-top:16px}.buyer-order-actions{flex-direction:row;flex-wrap:wrap}.buyer-order-actions .btn{width:auto}.buyer-order-total{align-items:end}.buyer-orders .page-header{align-items:start;gap:20px;flex-wrap:wrap}}
@media(max-width:700px){.store-search{grid-column:auto}.store-search>.btn{min-width:70px}.store-layout{grid-template-columns:minmax(0,1fr);gap:14px}.store-categories h2{display:none}.store-categories .category-all{padding:10px 16px}.store-categories summary{padding:12px 16px}.category-popover{position:static;min-width:0;max-width:none;box-shadow:none;border:0;border-top:1px solid #e2e8f0;padding:10px 20px;background:#f6f9ff}.store-grid{grid-template-columns:repeat(2,minmax(0,1fr));padding:12px;gap:10px}.store-product{padding:10px}.store-product-name{font-size:13px}.store-price strong{font-size:18px}.store-product-actions{flex-direction:column}.store-filter{padding:12px;gap:10px}.store-filter label{min-width:100px}.store-products .directory-pager{padding:12px;flex-wrap:wrap}.buyer-order-search{width:100%}.order-tabs{gap:4px}.order-tabs a{padding:9px 11px;font-size:13px}.buyer-order-card>header{padding:12px;gap:8px}.buyer-order-card>header span{width:100%;overflow-wrap:anywhere}.order-status{margin-left:0}.buyer-order-body{padding:12px;display:block}.buyer-order-product img{width:58px;height:58px}.buyer-order-total{border:0;align-items:start;padding:15px 0 0;flex-direction:row;align-items:center}.buyer-order-actions{justify-content:flex-end}.order-date-filter label{flex:1;min-width:120px}.order-date-filter input{width:100%;min-width:0}.channel-metrics{padding:12px;gap:10px}.channel-metrics strong{font-size:20px}.invoice-document{flex-wrap:wrap}.invoice-document>div{flex-basis:100%}.store-result-heading h1{font-size:22px}.registration-success ol{font-size:13px}}
@media(max-width:920px){
 .store-hero{min-height:clamp(260px,72vw,340px);align-items:flex-start;padding:18px}
 .store-hero h1{font-size:clamp(22px,5.7vw,28px);margin:6px 0;line-height:1.2}
 .store-hero p{font-size:12px;letter-spacing:0;margin:0}
 .store-hero .btn{margin-top:10px;min-height:36px}
 .store-hero picture{inset:auto 0 0;width:min(100%,453px);margin-inline:auto;aspect-ratio:4/3;mask-image:linear-gradient(transparent,#000 36px),linear-gradient(90deg,transparent,#000 16px,#000 calc(100% - 16px),transparent);mask-composite:intersect}
 .store-hero img{object-fit:contain}
}
/* Category panels show descendants only; selected filters remain visible when closed. */
.store-categories .category-top-link{display:flex;align-items:center;gap:12px;padding:18px;color:#314861;font-weight:600}
.store-categories details.selected-path>summary,.store-categories .category-top-link.selected{color:#0967ed;box-shadow:inset 3px 0 #0967ed}
.store-categories .category-top-link:hover,.store-categories .category-top-link.selected{background:#eaf3ff}
.category-popover .category-link{display:block;border-radius:5px;overflow-wrap:anywhere}
.category-popover .category-parent{font-weight:650}
.category-group+.category-group{border-top:1px solid #edf1f5;margin-top:10px;padding-top:10px}
.category-popover .category-link:hover,.category-popover .category-link:focus-visible{background:#edf5ff;color:#0967ed}
.category-popover .category-link.selected,.category-popover .category-view-all[aria-current=page]{background:#e5efff;color:#0967ed;font-weight:700;box-shadow:inset 3px 0 #0967ed}
.category-popover .category-view-all{display:block;border-top:1px solid #e5ebf2;margin-top:12px;padding-top:12px;font-size:12px;font-weight:400;color:#60718a}
@media(max-width:700px){.store-categories .category-top-link{padding:12px 16px;gap:8px;font-size:13px}}
/* Storefront filters use the same typography and control geometry as admin forms. */
.store-filter input,.store-filter select,.order-date-filter input{border:1px solid #dce4ef;border-radius:6px;background:#fff;padding:8px 11px;color:var(--text);font:inherit;font-size:13px;min-height:40px}
.store-filter input:focus,.store-filter select:focus,.order-date-filter input:focus{border-color:#78b1ff;box-shadow:0 0 0 3px #0967ed12}
.store-filter-actions{display:flex;align-items:center;gap:10px;flex:0 0 auto}
.store-filter-actions .btn{height:40px;min-width:68px;padding:8px 16px;border-radius:6px;font-size:13px;line-height:1.4}
@media(max-width:700px){.store-filter-actions{flex-basis:100%;justify-content:flex-end}}
.order-date-filter .btn{min-height:40px}
#order-filter{align-items:flex-end}
.order-filter-actions{display:flex;align-items:center;gap:10px;flex:0 0 auto}
.order-filter-actions .btn{height:40px;min-width:68px;padding:8px 16px;border-radius:6px;font-size:13px;line-height:1.4}
@media(max-width:700px){.order-filter-actions{flex-basis:100%;justify-content:flex-end}}
.channel-overview .brand strong{white-space:normal;overflow-wrap:anywhere;font-size:18px}
@media(max-width:700px){
 .search-input-wrap{padding-left:12px}
 .search-input-wrap input{padding-inline:8px;font-size:13px}
 .store-category-toggle{display:flex;align-items:center;gap:10px;width:100%;padding:12px 16px;border:0;border-radius:9px;background:#fff;color:var(--text);font:inherit;font-weight:650;text-align:left;cursor:pointer}
 .store-category-toggle::after{content:'';width:7px;height:7px;margin:-4px 2px 0 auto;border-right:1.5px solid currentColor;border-bottom:1.5px solid currentColor;transform:rotate(45deg)}
 .store-category-toggle[aria-expanded=true]::after{margin-top:4px;transform:rotate(225deg)}
 .store-category-toggle[aria-expanded=false]+.store-category-links{display:none}
 .store-category-links{border-top:1px solid #e2e8f0}
 .store-categories summary{gap:8px;font-size:13px}
 .store-filter label{flex:1 1 calc(50% - 10px)}
}

/* Keep identity image restrictions visible beside both upload controls. */
.legal-uploads .cert-help { display: block; }
.legal-uploads { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.legal-uploads .cert-field > div { min-width: 0; max-width: 100%; }
@media (max-width: 1100px) { .legal-uploads { grid-template-columns: minmax(0, 1fr); } }

/* Company review history and same-page attachment preview. */
.review-history { padding: 16px 20px 20px; }
.review-history table { width: 100%; table-layout: fixed; border-collapse: collapse; min-width: 660px; }
.review-history th, .review-history td { padding: 10px 16px; border: 1px solid #e4edf8; font-size: 13px; text-align: left; vertical-align: top; }
.review-history th { background: #f1f7ff; color: #263b59; font-weight: 600; }
.review-history td { white-space: pre-wrap; overflow-wrap: anywhere; color: #45566f; }
.review-history .review-time { width: 210px; }
.review-history .review-result { width: 120px; }
.review-history .review-person { width: 150px; }
.review-history .tag { min-width: 56px; text-align: center; border-radius: 4px; font-weight: 600; }
.review-history .review-empty { text-align: center; padding: 28px; color: #7c8ba0; }
.asset-preview-dialog { padding: 0; border: 0; border-radius: 10px; margin: auto; width: min(1000px, 94vw); max-width: 94vw; max-height: 92vh; box-shadow: 0 20px 80px #13284255; overflow: hidden; }
.asset-preview-dialog::backdrop { background: #142238a6; }
.asset-preview-head { display: flex; gap: 12px; align-items: center; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.asset-preview-head h2 { flex: 1; min-width: 0; font-size: 16px; overflow-wrap: anywhere; margin: 0; }
.asset-preview-head .btn { flex-shrink: 0; }
.asset-preview-body { height: min(72vh, 760px); overflow: auto; background: #f3f5f8; padding: 16px; }
.asset-preview-body > img { display: block; width: 100%; height: 100%; object-fit: contain; margin: auto; }
.asset-preview-body.is-zoomed > img { width: 200%; height: auto; max-width: none; }
.asset-preview-body > iframe { display: block; width: 100%; height: 100%; border: 0; background: white; }
.asset-preview-body > p { padding: 20px; text-align: center; }
@media (max-width: 650px) { .review-history { padding: 12px; } .asset-preview-head { padding: 12px; gap: 8px; } .asset-preview-head h2 { font-size: 14px; } .asset-preview-head .btn { padding: 8px 10px; } .asset-preview-body { padding: 8px; } }
.asset-preview-head [data-zoom][hidden] { display: none; }
.review-history table tbody tr:last-child td { border-bottom: 1px solid #e4edf8; }

/* Aligned qualification material names and preview actions. */
.material-list { padding: 0; margin-top: 20px; }
.material-list table { min-width: 0; }
.material-list .material-name { width: 40%; }
.material-list th, .material-list td { vertical-align: middle; }
.material-list .link-button { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.material-list .material-missing { color: #7c8ba0; }
@media (max-width: 650px) { .material-list th, .material-list td { padding: 10px 12px; } }

/* Internal margin reporting: shared snapshots, aligned numeric columns. */
.profit-page{min-width:0}.profit-filter{display:grid;grid-template-columns:repeat(4,minmax(140px,1fr)) auto auto;gap:16px;padding:24px;align-items:end}.profit-filter .field{margin:0;min-width:0}.profit-filter input,.profit-filter select{width:100%;min-width:0}.profit-tabs{display:flex;gap:8px;flex-wrap:wrap;margin:4px 0 16px}.profit-tabs .btn{padding:12px 22px}.profit-kpis .kpi-value{font-variant-numeric:tabular-nums;font-size:clamp(22px,2.3vw,34px)}.profit-positive{color:#14834a!important}.profit-negative{color:#cf3030!important}.profit-pending{color:#a26316;font-size:14px}.profit-secondary{display:flex;justify-content:space-between;gap:16px;flex-wrap:wrap;padding:18px 22px;color:var(--muted,#65768b)}.profit-secondary strong{color:#203451;margin-left:8px;font-variant-numeric:tabular-nums}.profit-groups{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:18px}.profit-groups .panel{min-width:0}.profit-page table{font-variant-numeric:tabular-nums}.profit-page th,.profit-page td{text-align:right;white-space:nowrap;padding:14px 16px}.profit-page th:first-child,.profit-page td:first-child{text-align:left}.profit-page table[aria-label^="订单"] th:nth-child(2),.profit-page table[aria-label^="订单"] td:nth-child(2){text-align:left;white-space:normal;min-width:140px}.profit-page table[aria-label="订单毛利明细"] th:nth-child(3),.profit-page table[aria-label="订单毛利明细"] td:nth-child(3){text-align:center}.profit-page .profit-total{background:#f7faff;font-weight:650}.profit-page .profit-empty{text-align:center;padding:42px 20px;color:#6b7d94;white-space:normal}.profit-search{display:flex;align-items:center;gap:8px}.profit-search input{max-width:230px}.profit-order-link{font-size:12px}.profit-footnote{line-height:1.8}.profit-order .detail-kv{grid-template-columns:minmax(120px,1fr) minmax(100px,1fr)}.profit-order dd{text-align:right;font-variant-numeric:tabular-nums}.profit-order .notice{margin-top:0}.profit-page .panel-header{gap:12px;flex-wrap:wrap}.profit-page .table-wrap{max-width:100%;overflow-x:auto}.profit-page .panel{min-width:0}
@media(max-width:1450px){.profit-filter{grid-template-columns:repeat(4,minmax(0,1fr))}.profit-groups{grid-template-columns:minmax(0,1fr)}.profit-filter>.btn{justify-self:start}.profit-filter input{min-width:0}}
@media(max-width:700px){.profit-filter{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;padding:16px}.profit-tabs .btn{padding:10px 12px}.profit-secondary{display:grid;grid-template-columns:1fr;gap:12px}.profit-secondary span{display:flex;justify-content:space-between}.profit-search{width:100%}.profit-search input{min-width:0;max-width:none;flex:1}.profit-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}.profit-kpis .kpi{padding:16px}.profit-kpis .kpi-value{font-size:23px}.profit-order .detail-kv{grid-template-columns:1fr 1fr}.profit-page .directory-pager{flex-wrap:wrap}}

@media(max-width:700px){.profit-page .table-wrap::before{content:"左右滑动查看完整表格";display:block;padding:8px 16px;color:#6b7d94;font-size:12px}}

/* Pending buyers can preview the storefront; procurement entries share one gate. */
.review-gate{margin:36px auto;padding:56px 24px;text-align:center;max-width:960px}
.review-gate-icon{display:grid;place-items:center;width:72px;height:72px;margin:0 auto 20px;border-radius:50%;background:var(--light);color:var(--blue)}
.review-gate-icon .icon{width:34px;height:34px}
.review-gate-status{display:inline-block;color:#886321;background:#fff6e4;border-radius:20px;padding:5px 14px;font-size:12px;margin-bottom:16px}
.review-gate h1{font-size:28px}.review-gate p{max-width:610px;margin:16px auto 28px;color:#65758c;line-height:1.9}
.review-gate-actions{display:flex;justify-content:center;gap:12px;flex-wrap:wrap}
.store-review-note{padding:14px 20px;background:var(--light);color:#426793;font-size:13px}
.store-price .pending-price{color:#718099;font-size:13px;line-height:32px}
@media(max-width:600px){.review-gate{margin:12px 0;padding:32px 18px}.review-gate h1{font-size:24px}.review-gate-actions{flex-direction:column}.review-gate-actions .btn{width:100%}}

/* Invoice information editor: local spacing, shared by profiles and applications. */
.modal.invoice-editor{width:min(720px,100%);max-height:calc(100dvh - 40px)}
.invoice-editor .modal-body{padding:24px;min-height:0}
.invoice-editor .modal-head,.invoice-editor .modal-footer{padding:16px 24px}
.invoice-fields{display:grid;gap:24px}
.invoice-section{border:0;padding:0;margin:0;min-width:0}
.invoice-section legend{padding:0;margin-bottom:14px;font-size:14px;font-weight:650;color:var(--text)}
.invoice-section legend span{font-weight:400;font-size:12px;color:var(--muted);margin-left:6px}
.invoice-section+.invoice-section{border-top:1px solid var(--line)}
.invoice-field-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px 20px}
.invoice-editor .invoice-field-grid .field{margin:0;gap:8px;min-width:0}
.invoice-field-full{grid-column:1 / -1}
.invoice-editor .invoice-field-grid input{height:42px;min-height:42px;padding:10px 12px}
.invoice-editor .invoice-field-grid input::placeholder{color:#8a97a8;font-size:12px}
.invoice-required{color:var(--red);margin-left:5px}
.invoice-editor .invoice-default{margin:0 auto 0 0;gap:8px;font-size:12px;color:#536984;cursor:pointer}
.invoice-editor .invoice-default input{margin:0;flex-shrink:0}
.invoice-editor .modal-footer>.btn{min-height:40px}
.invoice-editor .invoice-fields+.field{margin-top:20px;margin-bottom:0}
@media(max-width:600px){
 .modal.invoice-editor{max-height:calc(100dvh - 24px)}
 .invoice-editor .modal-head,.invoice-editor .modal-footer{padding:14px 16px}
 .invoice-editor .modal-body{padding:20px 16px}
 .invoice-field-grid{grid-template-columns:minmax(0,1fr);gap:16px}
 .invoice-fields{gap:20px}
 .invoice-editor .modal-footer{flex-wrap:wrap;row-gap:14px}
 .invoice-editor .invoice-default{flex-basis:100%;margin:0}
}

/* Buyer account navigation: keep procurement links in the header, account tasks together. */
.address-row-list{display:grid;grid-template-columns:minmax(0,1fr);gap:14px}
.address-row{display:flex;align-items:flex-start;gap:24px;margin:0;padding:20px 24px}
.address-row-content{flex:1;min-width:0}
.address-row-heading{display:flex;align-items:center;flex-wrap:wrap;gap:8px 16px;min-height:32px}
.address-row-heading h2{font-size:16px;line-height:1.6;overflow-wrap:anywhere;min-width:0}
.address-row-phone{font-size:14px;color:#405470;font-variant-numeric:tabular-nums;overflow-wrap:anywhere;min-width:0}
.address-row-detail{margin-top:7px;font-size:14px;line-height:1.8;color:#60718a;overflow-wrap:anywhere}
.address-row-actions{display:flex;align-items:center;flex-wrap:wrap;flex-shrink:0;gap:8px 16px}
.address-row-actions .link-button{min-height:32px;font-size:13px;padding:4px}
@media(max-width:720px){.address-row{flex-direction:column;gap:12px;padding:16px}.address-row-heading{gap:6px 12px}.address-row-detail{font-size:13px}.address-row-actions{width:100%;justify-content:flex-end;gap:8px 16px}.address-row-actions .link-button{min-height:40px}}
.buyer-topbar{gap:24px}.buyer-topbar .toplinks{margin-left:auto;gap:28px;min-width:0}.buyer-topbar .buyer-company-link{display:inline-flex;align-items:center;gap:7px;max-width:260px;min-width:0}.buyer-company-link .buyer-company-name{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.buyer-company-link .icon{flex-shrink:0}
.buyer-account-page{max-width:1536px;padding-top:28px}.buyer-account-breadcrumb{display:flex;align-items:center;gap:12px;color:#7789a3;font-size:12px;overflow-wrap:anywhere}.buyer-account-breadcrumb a{flex-shrink:0}.buyer-account-heading{margin:22px 0 26px}.buyer-account-heading h1{font-size:28px;margin:0 0 8px;overflow-wrap:anywhere}.buyer-account-heading p{color:#7a8ca6;margin:0;font-size:13px}.buyer-account-layout{display:grid;grid-template-columns:240px minmax(0,1fr);gap:24px;align-items:start}.buyer-account-sidebar{background:#fff;border:1px solid #e0e8f3;border-radius:10px;padding:14px;overflow:hidden}.buyer-account-sidebar nav{display:flex;flex-direction:column;gap:6px}.buyer-account-sidebar nav a{display:flex;align-items:center;gap:12px;padding:15px 18px;border-radius:6px;color:#4d6180;font-size:14px}.buyer-account-sidebar nav a.active{background:#edf5ff;color:#0965e8;font-weight:600}.buyer-account-sidebar nav a:hover{background:#f3f7fd}.buyer-account-content{min-width:0}.buyer-account-content>.page-header{margin-top:0}.buyer-account-content .page-header h1{font-size:23px}.buyer-account-content>.panel{margin-bottom:24px}.buyer-company-summary{padding:28px}.buyer-summary-title{display:flex;gap:16px;align-items:center;margin-bottom:26px;min-width:0}.buyer-summary-title>div{min-width:0}.buyer-summary-title h2{font-size:21px;margin:0 0 6px;overflow-wrap:anywhere}.buyer-summary-title p{margin:0;font-size:12px;color:#8a99ae}.buyer-summary-title>.tag{margin-left:auto;flex-shrink:0}.buyer-company-icon,.buyer-security-icon{display:flex;align-items:center;justify-content:center;background:#edf5ff;color:#0874ee;border-radius:10px;flex-shrink:0}.buyer-company-icon{width:54px;height:54px}.buyer-company-icon .icon{width:26px;height:26px}.buyer-summary-actions{display:flex;flex-wrap:wrap;gap:12px;margin-top:24px}.buyer-security-rows{padding:0 28px}.buyer-security-rows>div{display:flex;align-items:center;gap:16px;padding:26px 0}.buyer-security-rows>div+div{border-top:1px solid #e9eef5}.buyer-security-icon{width:42px;height:42px}.buyer-security-rows strong{font-size:14px}.buyer-security-rows p{font-size:12px;color:#8393ab;margin:7px 0 0;line-height:1.6}.buyer-security-rows .btn{margin-left:auto;flex-shrink:0}.buyer-account-content #buyer-certification-details{scroll-margin-top:24px}.buyer-account-content .cert-layout{grid-template-columns:minmax(0,1fr)}.buyer-account-content .cert-assistant{max-width:none}.buyer-account-content .cert-breadcrumb{display:none}
@media(max-width:1200px){.buyer-topbar .brand-subtitle{display:none}.buyer-account-layout{grid-template-columns:210px minmax(0,1fr)}.buyer-topbar .toplinks{gap:20px}}
@media(max-width:720px){.buyer-topbar{padding:16px;gap:16px}.buyer-topbar .toplinks{margin:0;width:100%;gap:10px;justify-content:space-between;flex-wrap:wrap}.buyer-topbar .toplinks a{font-size:12px;gap:4px}.buyer-topbar .buyer-user-menu{margin-left:auto}.buyer-topbar .buyer-company-link{max-width:140px;font-size:12px}.buyer-account-page{padding:22px 16px}.buyer-account-heading h1{font-size:24px}.buyer-account-layout{grid-template-columns:minmax(0,1fr);gap:18px}.buyer-account-sidebar{padding:10px}.buyer-account-sidebar nav{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px}.buyer-account-sidebar nav a{padding:12px;font-size:13px}.buyer-company-summary{padding:20px}.buyer-summary-title{gap:10px;flex-wrap:wrap}.buyer-summary-title h2{font-size:18px}.buyer-summary-title>div{flex:1}.buyer-summary-title>.tag{margin-left:0}.buyer-company-icon{width:42px;height:42px}.buyer-security-rows{padding:0 20px}.buyer-security-rows>div{flex-wrap:wrap;gap:12px;padding:20px 0}.buyer-security-rows>div>div{flex:1;min-width:160px}.buyer-security-rows .btn{margin-left:54px}.buyer-account-content .page-header{flex-wrap:wrap;gap:12px}.buyer-account-content .account-security{max-width:100%}}

/* Selected PDF stays local until the enclosing business form is submitted. */
.pdf-selection-box{position:relative;padding:14px;border:1px dashed #d5e2f4;border-radius:7px;background:#f8fbff;min-width:0}.pdf-choice-input{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;clip-path:inset(50%);overflow:hidden;white-space:nowrap;border:0!important}.pdf-choice-input:focus-visible~.pdf-choose{outline:2px solid var(--blue);outline-offset:3px}.pdf-choose{display:inline-flex!important;margin:0!important;background:#fff;font-weight:400!important;cursor:pointer}.pdf-selected{display:flex;align-items:center;gap:12px;min-width:0}.pdf-file-icon{display:flex;align-items:center;justify-content:center;width:40px;height:44px;flex-shrink:0;background:#eaf2ff;color:var(--blue);border-radius:6px}.pdf-file-info{min-width:0;flex:1}.pdf-file-info strong{display:block;font-size:13px;font-weight:500;overflow-wrap:anywhere}.pdf-file-info>span{display:block;margin-top:4px;color:var(--muted);font-size:12px}.pdf-file-actions{display:flex;flex-wrap:wrap;gap:14px;flex-shrink:0}.pdf-file-actions .link-button{padding:4px 0;margin:0;font-size:12px}.pdf-selection-error{display:block;color:var(--red);font-size:12px;margin-top:7px}.pdf-selection [hidden]{display:none!important}.pdf-choice-input:disabled~*{opacity:.55;pointer-events:none}.asset-preview-head h2{min-width:0;overflow-wrap:anywhere}.asset-preview-head .btn{flex-shrink:0}
@media(max-width:600px){.pdf-selected{flex-wrap:wrap}.pdf-file-info{min-width:140px}.pdf-file-actions{width:100%;padding-left:52px}.pdf-selection-box{padding:12px}.asset-preview-head h2{font-size:14px}}

/* Backend account actions: role and username remain visible, account actions expand below. */
.admin-user-menu{position:relative;min-width:0}.admin-user-trigger{display:flex;align-items:center;justify-content:center;gap:10px;min-height:40px;max-width:220px;padding:8px 12px;background:transparent;border:1px solid transparent;border-radius:6px;color:var(--text);font-size:14px}.admin-user-trigger:hover,.admin-user-trigger[aria-expanded="true"]{background:#f0f5fc;border-color:#dce7f5;color:var(--blue)}.admin-user-chevron{width:7px;height:7px;flex-shrink:0;border-right:1.5px solid currentColor;border-bottom:1.5px solid currentColor;transform:rotate(45deg);margin-top:-4px}.admin-user-trigger[aria-expanded="true"] .admin-user-chevron{transform:rotate(225deg);margin-top:4px}.admin-user-options{position:absolute;z-index:45;top:calc(100% + 10px);right:0;width:250px;max-width:calc(100vw - 28px);max-height:calc(100dvh - 170px);overflow:auto;background:#fff;border:1px solid #e0e8f3;border-radius:9px;padding:6px;box-shadow:0 10px 32px #172e5026}.admin-user-options[hidden]{display:none}.admin-user-details{display:flex;flex-direction:column;gap:4px;padding:12px 12px 14px;margin-bottom:5px;border-bottom:1px solid #e8eef6;overflow-wrap:anywhere}.admin-user-details>span:first-child{font-size:11px;color:var(--muted)}.admin-user-details strong{font-size:14px;font-weight:600}.admin-user-login{font-size:12px;color:#5c6f8b}.admin-user-details small{font-size:11px;color:#38659f}.admin-user-options>a,.admin-user-options>button{display:flex;align-items:center;gap:10px;width:100%;border:0;background:transparent;text-align:left;padding:11px 12px;border-radius:5px;font-size:13px;color:#314966}.admin-user-options>a:hover,.admin-user-options>button:hover{background:#f0f5fc;color:var(--blue)}.admin-user-options>.logout{color:#b64b50}.admin-user-options>.logout:hover{background:#fff1f1;color:#b7323c}
@media(max-width:650px){.admin-user-trigger{font-size:12px;max-width:150px;padding:8px;gap:8px}.admin-account-actions .admin-user-menu{min-width:0}.admin-user-options{width:240px}.admin-account-actions>.btn{flex-shrink:0}}

.admin-top .admin-mall-link {
 min-height: 38px;
 padding: 8px 13px;
 border-color: #d8e2ef;
 border-radius: 7px;
 background: #fff;
 color: var(--text);
 white-space: nowrap;
}
.admin-top .admin-mall-link:hover { background: #f4f8fd; border-color: #b7cbe6; }
.admin-account-actions .admin-profile-trigger { min-width: 0; padding: 4px 8px; text-align: left; }
.admin-profile-avatar {
 display: grid;
 place-items: center;
 width: 32px;
 height: 32px;
 flex-shrink: 0;
 border-radius: 50%;
 background: #eaf2ff;
 color: #245aa6;
}
.admin-profile-avatar .icon { width: 18px; height: 18px; }
.admin-profile-text { display: grid; min-width: 0; gap: 2px; line-height: 1.2; }
.admin-profile-text strong, .admin-profile-text small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.admin-profile-text strong { font-weight: 600; }
.admin-profile-text small { color: #526783; font-size: 11px; }

/* Staff authentication reuses existing form and panel styles. */
.staff-sms-control{margin:20px 0}.staff-sms-control>label{display:block;font-weight:600;margin-bottom:8px}.staff-sms-row{display:flex;gap:10px;align-items:center}.staff-sms-row input{min-width:0;flex:1}.staff-sms-row button{flex-shrink:0}.staff-sms-control .small-note{margin:10px 0;overflow-wrap:anywhere}.staff-phone [data-staff-bind]{max-width:480px}.staff-phone [data-staff-bind] h1{font-size:20px}.staff-phone [data-staff-bind] .block{margin-top:12px}
@media(max-width:440px){.staff-sms-row{gap:8px}.staff-sms-row button{padding:0 10px;font-size:12px}}
.entry-card .staff-sms-control+button+button{margin-top:10px}

/* Shared JD region selector: address book and checkout. */
.region-picker{margin:18px 0}.region-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(140px,1fr));gap:14px}.region-grid .field{margin:0;min-width:0}.region-grid label[hidden]{display:none}.region-grid select{width:100%;min-height:40px}.region-note{font-size:12px;color:var(--muted,#64748b);line-height:1.6;margin:8px 0}.region-retry[hidden]{display:none}@media(max-width:600px){.region-grid{grid-template-columns:1fr 1fr}}

.support-badge{display:inline-flex;align-items:center;justify-content:center;min-width:20px;height:20px;padding:0 6px;margin-left:6px;border-radius:12px;background:#e9f1ff;color:#1766da;font-size:11px;font-weight:700}
.support-badge[hidden]{display:none}
.buyer-cart-icon{position:relative;display:inline-flex;vertical-align:middle}
.buyer-cart-count{position:absolute;top:-12px;right:-10px;min-width:16px;height:16px;padding:0 3px;border:1px solid #fff;border-radius:999px;background:#bd2533;color:#fff;font-size:10px;font-weight:700;line-height:14px;text-align:center;white-space:nowrap;pointer-events:none}
.buyer-cart-count[hidden]{display:none}
.support-overview{display:flex;align-items:center;justify-content:space-between;gap:16px;background:#edf5ff;border:1px solid #d7e7fb;color:#496789;border-radius:10px;padding:16px 20px;margin:0 0 20px;font-size:12px}
.support-overview>div{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.support-overview strong{color:#254f82;font-size:14px}
.support-overview-dot{width:8px;height:8px;border-radius:50%;background:#2376eb}
.support-filters{display:flex;align-items:flex-end;gap:14px;flex-wrap:wrap;padding:20px;background:white;border:1px solid #e1e8f1;border-radius:12px;margin-bottom:20px}
.support-filters>.control{min-width:210px;flex:1;height:40px}
.support-filters .field{margin:0;min-width:130px;flex:0 1 160px}
.support-filters label{font-size:12px}
.support-unread-filter{height:40px;display:flex;align-items:center;gap:6px;white-space:nowrap}
.support-ticket-title{font-weight:600;display:inline-block;max-width:280px;overflow-wrap:anywhere;line-height:1.6}
.support-unread-dot{display:inline-block;width:7px;height:7px;border-radius:50%;background:#1671ef;margin-right:7px;vertical-align:middle}
.support-pager{display:flex;align-items:center;justify-content:flex-end;gap:12px;color:#6d7f98;font-size:12px;margin:16px 0}
.support-pager>span{margin-right:auto}
.support-detail-grid{display:grid;grid-template-columns:minmax(0,1fr) 280px;gap:22px;align-items:start}
.support-detail-grid>section,.support-detail-grid aside{min-width:0}
.support-detail-grid .panel{margin-bottom:20px}
.support-history-control{text-align:center;padding:12px 16px 0}
.support-messages{padding:10px 24px 24px;display:flex;flex-direction:column;gap:20px}
.support-message{border:1px solid #e6ebf2;background:#fff;border-radius:10px;padding:18px 20px;min-width:0}
.support-message.is-staff{background:#f0f6ff;border-color:#dce9fb}
.support-message-meta{display:flex;align-items:center;gap:10px;font-size:11px;color:#7a8ba2;margin-bottom:12px;flex-wrap:wrap}
.support-message-meta strong{font-size:13px;color:#203b5c}
.support-message-meta time{margin-left:auto}
.support-message-body{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.85;color:#263b54;font-size:14px}
.support-mine{padding:1px 6px;background:#e3edfc;border-radius:4px;color:#2769bc}
.support-event{text-align:center;font-size:12px;color:#8a98aa;padding:2px 0}
.support-event time{display:block;margin-top:5px;font-size:11px}
.support-info{padding:20px;margin:0;display:grid;gap:8px}
.support-info dt{color:#8391a6;font-size:12px;margin-top:10px}
.support-info dt:first-child{margin-top:0}
.support-info dd{margin:0;color:#2c415d;font-size:13px;overflow-wrap:anywhere;line-height:1.7}
.support-info small{display:block;color:#8795a8}
.support-actions{padding:20px;display:flex;flex-direction:column;gap:10px}
.support-composer .panel-body{padding:20px 24px}
.support-composer textarea{min-height:120px;resize:vertical}
.support-composer-footer{display:flex;align-items:center;justify-content:space-between;gap:14px;border-top:1px solid #edf0f5;padding-top:16px;margin-top:10px}
.support-composer-footer label{display:flex;align-items:center;gap:7px;font-size:12px;color:#667892}
.support-upload{display:flex;gap:12px;align-items:center;flex-wrap:wrap;font-size:12px;color:#8391a5}
.support-upload input{position:absolute;width:1px;height:1px;opacity:0}
.support-upload label:focus-within{outline:2px solid #1671ef;outline-offset:2px}
.support-selected-images,.support-message-images{display:flex;gap:10px;flex-wrap:wrap;margin-top:12px}
.support-image-choice{display:flex;flex-direction:column;gap:5px;align-items:center}
.support-image-button,.support-message-images button{padding:0;background:white;border:1px solid #dce5f0;border-radius:8px;overflow:hidden;cursor:zoom-in}
.support-image-choice img,.support-message-images img{width:92px;height:78px;object-fit:cover;display:block}
.support-image-choice .link-button{font-size:11px}
.support-error{color:#ce3d45;font-size:12px;line-height:1.6;white-space:pre-wrap}
.support-error:empty{display:none}
.support-linked-order{padding:12px 15px;border:1px solid #dce8fa;border-radius:8px;color:#416184;background:#f7faff;margin-bottom:16px}
.support-order-select{margin:0 0 18px;border:1px solid #e2e8f0;padding:12px;border-radius:8px}
.support-order-select summary{cursor:pointer;color:#637b98;font-size:13px}
.support-order-select .row{margin:12px 0}
.support-order-select select{width:100%;height:40px;border:1px solid #dce5f0;border-radius:5px;background:white}
@media(max-width:1100px){.support-detail-grid{grid-template-columns:minmax(0,1fr)}.support-detail-grid aside{display:grid;grid-template-columns:1fr 1fr;gap:16px}.support-overview>span{display:none}}
@media(max-width:640px){.support-detail-grid aside{display:block}.support-messages{padding:10px 12px 16px}.support-message{padding:14px}.support-message-meta time{width:100%;margin-left:0}.support-filters{padding:14px}.support-filters .field{flex:1;min-width:110px}.support-filters>.control{min-width:100%;width:100%}.support-composer .panel-body{padding:16px}.support-composer-footer{align-items:flex-start;flex-direction:column}.support-pager{flex-wrap:wrap}.support-pager>span{width:100%}}
/* Local support experiment: shared chat surface, private buyer drawer and staff inbox. */
.chat-launcher{position:fixed;right:28px;bottom:28px;z-index:80;display:flex;align-items:center;gap:9px;padding:13px 20px;border:0;border-radius:28px;background:#1263ed;color:#fff;box-shadow:0 5px 24px #124fbb38;font-weight:600;cursor:pointer}
.chat-launcher>span{font-size:24px;line-height:1}.chat-launcher .support-badge{background:#ef4965;color:white}
.buyer-chat-window{position:fixed;right:28px;bottom:88px;width:440px;height:min(690px,calc(100dvh - 115px));display:flex;flex-direction:column;z-index:90;background:white;border:1px solid #dce5f0;border-radius:18px;box-shadow:0 16px 70px #18355530;overflow:hidden}
.chat-heading{display:flex;align-items:center;gap:12px;flex:none;padding:18px 20px;border-bottom:1px solid #e8edf4;background:white;min-height:80px}
.chat-heading h2{font-size:16px;line-height:1.5;margin:0;color:#172f4e}.chat-heading p{font-size:12px;color:#7f8ca2;margin:3px 0 0}.chat-avatar{width:40px;height:40px;flex:none;border-radius:13px;background:#e9f1ff;color:#1762df;display:grid;place-items:center;font-size:16px;font-weight:700}
.chat-icon-button{background:none;border:0;color:#8190a5;font-size:24px;cursor:pointer;padding:2px 6px;line-height:1}.chat-icon-button:hover{color:#135fdf}.chat-mobile-back{display:none}
.chat-thread{flex:1;min-height:80px;overflow:auto;background:#f5f7fb;padding:16px 20px;overscroll-behavior:contain;scrollbar-width:thin}
.chat-history-top{text-align:center;margin-bottom:12px}.chat-history-top:has(button[hidden]){display:none}.chat-history-top button{font-size:12px}.chat-welcome{margin:22px 0;padding:18px 16px;background:white;border:1px solid #e6ebf3;border-radius:12px;color:#314761;font-size:14px}.chat-welcome>span{font-weight:600}.chat-welcome p{font-size:13px;color:#7b899e;line-height:1.8;margin:7px 0 0}
.chat-message{display:flex;flex-direction:column;margin:0 0 20px;align-items:flex-start}.chat-message.outgoing{align-items:flex-end}.chat-message-caption{display:flex;gap:9px;font-size:11px;line-height:1.7;color:#8996aa;margin:0 2px 6px;flex-wrap:wrap}.chat-message.outgoing .chat-message-caption{justify-content:flex-end}
.chat-bubble{max-width:88%;padding:11px 15px;border:1px solid #e4eaf2;border-radius:2px 13px 13px 13px;background:white;color:#263c58;font-size:14px;line-height:1.8;min-width:40px;overflow-wrap:anywhere}.chat-message.outgoing .chat-bubble{background:#e8f1ff;border-color:#d4e5ff;border-radius:13px 2px 13px 13px;color:#173f79}.chat-text{white-space:pre-wrap}
.chat-images{display:flex;flex-wrap:wrap;gap:8px;margin:5px 0}.chat-images button{padding:0;border:0;border-radius:8px;background:#fff;cursor:zoom-in;overflow:hidden}.chat-images img{display:block;width:112px;max-height:136px;object-fit:cover}.chat-event{text-align:center;font-size:11px;color:#95a1b3;padding:0 0 17px}
.chat-order-card{display:flex;flex-direction:column;gap:4px;background:#fff;border:1px solid #dbe4f0;padding:10px 13px;margin:0 0 8px;border-radius:8px;text-decoration:none;min-width:160px;color:#225ac1}.chat-order-card span{font-size:11px;color:#8794a7}.chat-order-card strong{font-size:12px;font-weight:500;word-break:break-all}
.chat-compose{flex:none;margin:0;background:white;border-top:1px solid #e6ebf3;padding:12px 18px 14px}.chat-compose fieldset{padding:0;border:0;margin:0;min-width:0}.chat-compose textarea{display:block;border:0;box-shadow:none;outline:none;width:100%;resize:none;min-height:66px;font-size:14px;padding:3px 0;color:#263c58;background:white}.chat-compose textarea:focus{border:0;box-shadow:none;outline:none}.chat-compose .support-upload{gap:9px;margin:2px 0;align-items:center;flex-wrap:wrap}.chat-compose .support-upload>.btn{border:0;background:#f1f5fa;color:#596d89;font-size:12px;padding:5px 9px;min-height:28px}.chat-compose .support-upload>span{font-size:10px;color:#99a5b7}.chat-compose .support-selected-images{gap:7px;margin-top:6px}.chat-compose .support-image-choice{padding:3px;border:1px solid #edf0f5;border-radius:6px}.chat-compose .support-image-button img{width:48px;height:40px;object-fit:cover}.chat-compose .support-image-choice>.link-button{font-size:10px}.chat-compose .support-error:empty{display:none}.chat-compose .support-error{font-size:12px;margin:6px 0}
.chat-send-row{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-top:7px}.chat-send-row>span{font-size:10px;color:#9ba7b7}.chat-send-row .btn{min-width:76px;min-height:34px;padding:6px 17px}.chat-context{display:flex;align-items:center;justify-content:space-between;background:#f3f7fe;color:#627a9a;padding:6px 9px;border-radius:6px;font-size:11px;margin-bottom:6px}.chat-context strong{font-weight:500;color:#2768cb}.chat-context[hidden]{display:none}
.chat-network{font-size:11px;color:#ad7022;background:#fff8e8;padding:6px 15px}.chat-network:empty{display:none}.chat-new-messages{align-self:center;border:1px solid #d4e2f9;background:#fff;color:#1f66d5;border-radius:18px;padding:6px 13px;font-size:12px;margin:5px 0}.chat-new-messages[hidden]{display:none}.chat-readonly{padding:18px;color:#8996aa;font-size:13px}
.chat-history-panel{background:white;border:1px solid #e3eaf3;border-radius:12px;padding:24px}.chat-history-panel h2{font-size:16px;margin-top:0}.chat-history-panel>p{color:#8492a7;font-size:13px}.chat-legacy{display:flex;justify-content:space-between;gap:12px;width:100%;padding:18px 0;border:0;border-bottom:1px solid #edf1f7;background:none;text-align:left;cursor:pointer;color:#344d6d}.chat-legacy strong{font-weight:500}.chat-legacy span{font-size:12px;color:#8d9ab0}
.chat-workspace-page{max-width:none!important;padding:24px 30px 26px!important}.chat-workspace-title{display:flex;align-items:center;justify-content:space-between;margin-bottom:18px}.chat-workspace-title h1{font-size:23px;margin:0 0 7px;color:#1c304e}.chat-workspace-title p{font-size:12px;color:#8a97aa;margin:0}.chat-workspace-note{display:flex;align-items:center;gap:7px;font-size:12px;color:#8c9aaf}.chat-workspace-note i{width:6px;height:6px;background:#28b381;border-radius:50%}
.chat-workspace{height:calc(100dvh - 207px);min-height:510px;display:grid;grid-template-columns:300px minmax(280px,1fr) 242px;background:#fff;border:1px solid #e0e7f0;border-radius:14px;overflow:hidden;box-shadow:0 4px 16px #233d6304}
.chat-sessions{display:flex;flex-direction:column;min-width:0;border-right:1px solid #e7ecf3}.chat-session-top{padding:21px 18px 0;flex:none}.chat-session-top h2{font-size:15px;margin:0 0 15px}.chat-session-top form{display:flex;align-items:center;background:#f4f6fa;border-radius:8px;border:1px solid #edf0f5}.chat-session-top input{width:100%;min-width:0;border:0;background:none;font-size:12px;padding:9px 10px;box-shadow:none}.chat-session-top form button{font-size:22px;background:none;border:0;color:#91a1b7;padding:2px 10px;cursor:pointer}.chat-tabs{display:flex;gap:14px;margin-top:14px;border-bottom:1px solid #edf0f5}.chat-tabs button{flex:1;background:none;border:0;border-bottom:2px solid transparent;font-size:12px;color:#8593a9;white-space:nowrap;padding:9px 0;cursor:pointer}.chat-tabs button.active{color:#1e65df;border-color:#1e65df;font-weight:600}
.chat-session-list{overflow:auto;flex:1;min-height:0;scrollbar-width:thin}.chat-session{display:flex;gap:10px;width:100%;padding:18px 15px;text-align:left;border:0;border-bottom:1px solid #f0f3f7;background:#fff;cursor:pointer}.chat-session:hover{background:#f8faff}.chat-session.selected{background:#edf4ff;box-shadow:inset 3px 0 #2470ee}.chat-session-avatar{flex:none;width:35px;height:35px;display:grid;place-items:center;background:#eaf0f8;color:#6c86aa;border-radius:11px;font-weight:600}.chat-session.selected .chat-session-avatar{background:#dfeaff;color:#3474d5}.chat-session-copy{display:block;min-width:0;flex:1}.chat-session-line{display:flex;justify-content:space-between;align-items:center;gap:6px}.chat-session-line strong{font-size:13px;color:#273d5a;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:600}.chat-session-line time{flex:none;font-size:10px;color:#94a0b4}.chat-session-account{display:block;font-size:10px;color:#8d9db3;margin:5px 0 7px}.chat-session-preview{font-size:12px;color:#7b8ba3;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.chat-unread{display:grid;place-items:center;background:#ee546b;color:white;border-radius:12px;font-size:10px;min-width:17px;height:17px;padding:0 4px;flex:none}.chat-session-footer{display:flex;justify-content:space-between;align-items:center;margin-top:9px;font-size:10px;color:#98a4b7}.chat-status{display:inline-block;font-size:10px;border-radius:4px;padding:2px 6px;background:#edf2fa;color:#7b8da8}.chat-status.status-OPEN{color:#bd8429;background:#fff4dd}.chat-status.status-IN_PROGRESS{color:#3975cf;background:#e7f0ff}.chat-status.status-WAITING_BUYER{color:#399275;background:#e9f7f1}.chat-status.status-RESOLVED{color:#8997aa;background:#eef1f5}.chat-list-empty{text-align:center;padding:45px 15px;color:#9aa8ba;font-size:13px}.chat-list-pages{display:flex;align-items:center;justify-content:space-between;border-top:1px solid #edf0f5;padding:9px 17px;font-size:11px;color:#96a3b7}.chat-list-pages button{border:0;background:none;color:#647c9e;font-size:20px;cursor:pointer}.chat-list-pages button:disabled{opacity:.3;cursor:default}
.chat-main{min-width:0;min-height:0;position:relative;display:flex;flex-direction:column}.chat-view{height:100%;min-height:0;display:flex;flex-direction:column}.chat-main .chat-thread{padding:24px}.chat-main .chat-compose{padding:15px 24px 18px}.chat-main .chat-compose textarea{min-height:75px}.chat-no-selection{height:100%;display:flex;align-items:center;justify-content:center;flex-direction:column;background:#f7f9fc;color:#a2aec0;padding:24px;text-align:center}.chat-no-selection>div{font-size:68px;color:#c7d7ed}.chat-no-selection h2{font-size:18px;color:#6b809e;font-weight:500}.chat-no-selection p{font-size:12px}
.chat-customer{border-left:1px solid #e7ecf3;overflow:auto;min-width:0;background:#fff;scrollbar-width:thin}.chat-customer-empty{padding:30px 20px;color:#a2aec0;font-size:12px;text-align:center}.chat-customer-title{padding:23px 20px;border-bottom:1px solid #edf0f5;font-size:13px;font-weight:600;color:#415976}.chat-customer-profile{padding:23px 20px 18px;text-align:center}.chat-customer-profile .chat-avatar{margin:0 auto 12px;width:45px;height:45px}.chat-customer-profile h3{font-size:14px;line-height:1.7;margin:0 0 7px;overflow-wrap:anywhere;color:#2c4462}.chat-customer-profile p{font-size:11px;color:#8a9ab1;margin:0;overflow-wrap:anywhere}.chat-customer dl{margin:0 20px;padding:0 0 20px;border-bottom:1px solid #edf0f5;font-size:12px;display:grid;grid-template-columns:70px minmax(0,1fr);gap:17px 6px}.chat-customer dt{color:#91a0b6}.chat-customer dd{margin:0;color:#4b607e;overflow-wrap:anywhere}.chat-customer dd small{display:block;font-size:10px;color:#9aa7b8;margin-top:3px}.chat-manage{padding:20px;display:grid;gap:10px}.chat-manage h3{font-size:12px;color:#506683;margin:0 0 3px}.chat-manage .btn{font-size:12px;min-height:34px;width:100%}.chat-business-note{color:#a3afc0;font-size:11px;line-height:1.9;margin:0 20px 20px}
@media(min-width:1600px){.chat-workspace{grid-template-columns:335px minmax(360px,1fr) 265px}.chat-workspace-page{padding:28px 38px!important}}
@media(max-width:1190px){.chat-workspace{grid-template-columns:260px minmax(270px,1fr)}.chat-customer{display:none}.chat-workspace.has-selected .chat-main .chat-heading{padding-right:14px}.chat-workspace-page{padding:20px 18px!important}}
@media(max-width:700px){.chat-launcher{right:14px;bottom:18px;padding:10px 15px;font-size:12px}.buyer-chat-window{right:8px;left:8px;bottom:8px;top:8px;width:auto;height:auto;max-height:none;border-radius:13px}.chat-heading{padding:15px;min-height:75px}.chat-heading p{font-size:11px}.chat-thread{padding:15px}.chat-message-caption{font-size:10px}.chat-bubble{max-width:92%;font-size:13px}.chat-send-row>span{font-size:9px}.chat-compose{padding:10px 13px 14px}.chat-legacy{flex-direction:column}.chat-workspace-page{padding:16px 10px!important}.chat-workspace-title h1{font-size:20px}.chat-workspace-note{font-size:10px}.chat-workspace{height:calc(100dvh - 235px);min-height:450px;display:block}.chat-sessions{height:100%;border:0}.chat-main{display:none;height:100%}.chat-workspace.has-selected .chat-sessions{display:none}.chat-workspace.has-selected .chat-main{display:flex}.chat-mobile-back{display:block;border:0;background:#eef4ff;color:#3b74c7;border-radius:6px;padding:6px 9px;font-size:11px}.chat-main .chat-thread{padding:16px}.chat-main .chat-compose{padding:12px 15px}.chat-main .chat-compose textarea{min-height:65px}.chat-session{padding:17px}.chat-customer{display:none}}
.chat-info-toggle{background:#f4f7fb;border:1px solid #e8edf4;border-radius:6px;padding:6px 9px;font-size:11px;color:#7588a3;cursor:pointer;white-space:nowrap}.chat-info-close{display:none;border:0;background:none;color:#8a9db8;font-size:22px;float:right;cursor:pointer}
.chat-workspace{position:relative;grid-template-rows:minmax(0,1fr)}
.chat-workspace>.chat-sessions,.chat-workspace>.chat-customer{min-height:0}
@media(max-width:1190px){.chat-workspace.show-customer .chat-customer{display:block;position:absolute;right:0;top:0;bottom:0;width:245px;z-index:5;box-shadow:-8px 0 35px #18355522}.show-customer .chat-info-close{display:block}}

/* Independent staff workbench, assignment and response deadlines. */
.support-popup-page{padding:18px;max-width:1900px;margin:auto;height:100dvh;box-sizing:border-box}
.support-popup-page .chat-workspace{height:calc(100dvh - 115px);min-height:400px}
.chat-presence{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.chat-presence [data-presence-label]{color:#6c7c92;font-size:13px}
.chat-presence.is-online [data-presence-label]{color:#15845b}
.chat-workspace-alert{padding:9px 14px;margin-bottom:10px;border:1px solid #f2d6a2;border-radius:8px;background:#fff8e8;color:#8e5c11;font-size:13px}
.chat-workspace-alert:not([hidden])+.chat-workspace{height:calc(100dvh - 160px)}
.chat-session.chat-overdue{box-shadow:inset 3px 0 #e38b21}
.chat-overdue-label{color:#a85c09;background:#fff1db;padding:2px 6px;border-radius:4px;font-size:11px}
.chat-system-notice{border-radius:8px;background:#edf3fa;padding:10px 14px;margin:18px auto;max-width:90%;color:#52647b;line-height:1.6}
.support-open-panel{padding:28px;max-width:720px}
@media(max-width:700px){.support-popup-page{padding:10px}.chat-presence{gap:6px}.chat-presence .btn{padding:7px 10px}.chat-workspace-title{gap:8px;flex-wrap:wrap}.support-popup-page .chat-workspace{height:calc(100dvh - 165px)}.chat-workspace-alert:not([hidden])+.chat-workspace{height:calc(100dvh - 210px)}}

/* Optional address recognition keeps manual selection and confirmation visible. */
.address-recognition{margin:0 0 18px;padding:14px 16px;border:1px solid var(--border,#dce5f0);border-radius:8px;background:#f7faff}
.address-recognition summary{cursor:pointer;color:#1263cf;font-weight:600}
.address-recognition .small-note{margin:10px 0}
.recognition-status{margin:10px 0;color:#506582;font-size:13px}
.recognition-result{padding-top:12px;border-top:1px solid #dce5f0}
.staff-tabs{margin:0 0 20px;gap:10px;flex-wrap:wrap}
.staff-grant-preview{flex-wrap:wrap;gap:8px;margin:14px 0}

/* VOP detail panels preserve full image proportions and continuous layout. */
.product-content .safe-rich img{max-height:none;height:auto;max-width:100%}
.product-content .safe-rich .detail-panel-image{display:block;width:100%;max-width:750px;margin:0 auto;height:auto}
.product-content .detail-empty{padding:28px 16px;text-align:center;color:#64748b}
.product-info .price-pending{display:flex;flex-direction:column;align-items:flex-start;gap:8px}
.product-info .price-pending strong{font-size:22px;color:#334155}
.product-info .price-pending span{font-size:13px;color:#64748b}

.pricing-quote-basis{display:inline-block;padding:2px 6px;border-radius:4px;font-size:11px;color:#476483;background:#eef4fb;white-space:nowrap}

/* Cart stock is scoped to the selected address, quantities and saved selection. */
.cart-stock-query{display:flex;align-items:flex-end;gap:14px;border-bottom:1px solid var(--line)}
.cart-stock-query .field{flex:1;max-width:700px;margin:0}
.cart-stock-query>.link-button{margin-bottom:9px}
.cart-stock-feedback{display:flex;align-items:center;gap:12px;padding:15px 23px;border-top:1px solid var(--line);color:#586c86;font-size:13px;min-height:55px}
.cart-product{min-width:210px;max-width:440px}
.cart-quantity{display:inline-flex;align-items:center;border:1px solid var(--line);border-radius:6px;background:#fff;overflow:hidden}
.cart-quantity button{width:32px;min-height:38px;padding:0;border:0;background:#f7faff;color:var(--text);font-size:17px;flex-shrink:0}
.cart-quantity button:hover:not(:disabled){background:var(--light);color:var(--blue)}
.cart-quantity input.control{width:58px;min-height:38px;padding:6px;text-align:center;border:0;border-radius:0;appearance:textfield;-moz-appearance:textfield}
.cart-quantity input::-webkit-inner-spin-button,.cart-quantity input::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}
.cart-quantity:focus-within{outline:2px solid var(--blue);outline-offset:2px}
.cart-quantity-message{font-size:11px;line-height:1.5;min-height:17px;max-width:170px;margin-top:5px;color:var(--muted);overflow-wrap:anywhere}
.cart-quantity-message.red{color:var(--red)}
[data-cart-row] [data-stock]{white-space:normal;width:100px;min-height:28px;justify-content:center;align-items:center;text-align:center;overflow-wrap:anywhere}
.panel:has([data-cart-row]) th:nth-child(6),[data-cart-row]>td:nth-child(6){text-align:center;vertical-align:middle}
@media(max-width:650px){.cart-stock-query{flex-wrap:wrap;padding:16px}.cart-stock-query .field{flex-basis:100%;min-width:0}.cart-stock-query>.link-button{margin-bottom:0}.cart-stock-feedback{padding:14px 16px;align-items:flex-start}.cart-footer{flex-wrap:wrap}}

/* Product gallery: full-size, uncropped images with accessible carousel controls. */
.product-v04 .product-detail{grid-template-columns:minmax(0,44%) minmax(0,1fr);align-items:start}
.product-v04 .big-picture{position:relative;width:100%;height:auto;min-height:0;aspect-ratio:1 / 1;overflow:hidden;background:#fff;border:1px solid var(--line)}
.product-v04 .big-picture #product-main-image{width:100%;height:100%;max-width:100%;max-height:100%;object-fit:contain}
.product-v04 .big-picture #product-image-placeholder{position:absolute;text-align:center;padding:20px}
.gallery-arrow{position:absolute;top:50%;transform:translateY(-50%);width:36px;height:48px;border:1px solid #dce4ef;border-radius:7px;background:#fffffff0;color:#40506a;font-size:30px;line-height:1;display:flex;align-items:center;justify-content:center;box-shadow:0 2px 8px #13263e0d}
.gallery-arrow:hover{background:#edf5ff;color:var(--blue)}
.gallery-prev{left:10px}.gallery-next{right:10px}
.gallery-controls{position:absolute;bottom:12px;right:12px;display:flex;align-items:center;gap:12px;border:1px solid var(--line);border-radius:20px;background:#fffffff0;padding:5px 11px;color:#40506a;font-size:12px}
.gallery-controls button{border:0;background:none;color:var(--blue);font-size:12px;padding:2px}
.product-v04 .image-thumbs{margin:12px 0 0}
.product-v04 .image-thumbs img{width:100%;height:100%;max-width:100%;max-height:100%;object-fit:contain}
.product-v04 .image-thumbs button{width:64px;height:64px}
@media(max-width:900px){.product-v04 .product-detail{grid-template-columns:minmax(0,1fr)}}
@media(max-width:650px){.gallery-arrow{width:30px;height:42px}.gallery-prev{left:6px}.gallery-next{right:6px}.gallery-controls{bottom:8px;right:8px}}

/* Product image viewer; scoped to avoid changing other dialogs. */
.gallery-open{display:flex;align-items:center;justify-content:center;width:100%;height:100%;padding:0;border:0;background:transparent;cursor:zoom-in}
.gallery-open:disabled{cursor:default}.gallery-open:disabled .gallery-zoom-hint{display:none}
.gallery-open:focus-visible{outline:3px solid var(--blue);outline-offset:-4px}
.gallery-zoom-hint{position:absolute;left:12px;bottom:12px;padding:5px 10px;border:1px solid var(--line);border-radius:20px;background:#fffffff0;font-size:12px;color:#40506a}
.product-lightbox{padding:0;border:1px solid #dce4ef;border-radius:14px;width:calc(100% - 48px);max-width:1200px;height:90vh;height:90dvh;max-height:960px;overflow:hidden;background:#fff;color:#182b49;box-shadow:0 20px 80px #0004}
.product-lightbox[open]{display:grid;grid-template-rows:60px minmax(0,1fr) 64px}
.product-lightbox::backdrop{background:rgba(12,23,39,.8)}
.product-lightbox header,.product-lightbox footer{display:flex;align-items:center;gap:12px;padding:12px 20px;background:#fff;z-index:1}
.product-lightbox header{border-bottom:1px solid var(--line)}.product-lightbox footer{justify-content:center;border-top:1px solid var(--line)}
.product-lightbox .lightbox-count{color:#65758b;margin-left:auto;font-size:14px}
.product-lightbox button{height:40px;min-width:44px;padding:0 14px;border:1px solid #dce4ef;border-radius:7px;background:white;color:#243c60;font-size:14px;cursor:pointer;white-space:nowrap}
.product-lightbox button:hover:not(:disabled){color:var(--blue);border-color:var(--blue);background:#f0f6ff}
.product-lightbox button:disabled{opacity:.4;cursor:default}.product-lightbox button:focus-visible{outline:2px solid var(--blue);outline-offset:2px}
.product-lightbox .lightbox-stage{position:relative;display:flex;justify-content:center;align-items:center;min-height:0;overflow:hidden;background:#f5f7fa}
.product-lightbox .lightbox-stage img{flex:none;max-width:none;max-height:none;object-fit:contain;touch-action:none;user-select:none;-webkit-user-select:none}
.product-lightbox .lightbox-status{position:absolute;color:#65758b}
@media(max-width:650px){.product-lightbox{width:calc(100% - 16px);height:94vh;height:94dvh;border-radius:10px}.product-lightbox header,.product-lightbox footer{padding:10px;gap:6px}.product-lightbox button{padding:0 9px}.gallery-zoom-hint{left:8px;bottom:8px}}

/* Checkout uses a saved-address summary; editing stays in the address dialog. */
.checkout-address-current,.checkout-address-option{display:flex;align-items:center;justify-content:space-between;gap:20px;width:100%;padding:18px;text-align:left;font:inherit;color:var(--text,#21354f);background:#fff;border:1px solid var(--line,#e1e8f2);border-radius:8px;cursor:pointer}
.checkout-address-copy{min-width:0;flex:1;overflow-wrap:anywhere}
.checkout-address-current:hover,.checkout-address-option:hover{border-color:#89b5ff;background:#f8fbff}
.checkout-address-current:focus-visible,.checkout-address-option:focus-visible{outline:2px solid var(--blue);outline-offset:3px}
.checkout-address-current:disabled,.checkout-address-option:disabled{cursor:default;opacity:.65}
.checkout-address-switch,.checkout-address-choice{flex-shrink:0;color:var(--blue);font-size:13px;font-weight:600}
.checkout-address-contact{display:flex;align-items:center;flex-wrap:wrap;gap:10px 20px}
.checkout-address-detail{display:block;margin-top:10px;color:var(--muted);line-height:1.7}
.checkout-address-options{margin-top:14px;padding:16px;background:#f6f9fd;border:1px solid var(--line,#e1e8f2);border-radius:8px}
.checkout-address-options[hidden]{display:none}
.checkout-address-options-title{margin:0 0 12px;font-size:13px;color:var(--muted)}
.checkout-address-option{margin-bottom:10px;padding:14px}
.checkout-address-option.selected{border-color:var(--blue);background:#edf5ff}
.checkout-address-actions{display:flex;align-items:center;margin-top:14px}
.checkout-address-actions .link-button{display:inline-flex;align-items:center;gap:6px}
@media(max-width:650px){.checkout-address-current,.checkout-address-option{gap:12px;padding:12px}.checkout-address-contact{gap:6px 12px}.checkout-address-options{padding:12px}.checkout-address-switch,.checkout-address-choice{font-size:12px}}
#quote-summary>.btn+.btn{margin-top:10px}
/* Checkout: visible products and stable amounts throughout verification. */
.page:has(.checkout-page){max-width:1900px}
.checkout-page .checkout-layout{grid-template-columns:minmax(0,1fr) 365px;gap:24px;align-items:start}
.checkout-page .page-header{margin-bottom:24px}.checkout-page .panel{margin-bottom:22px}
.checkout-page .checkout-count{font-size:12px;color:var(--muted);white-space:nowrap}
.checkout-page #quote-items{padding:16px 22px 18px;min-width:0}
.checkout-products-status{display:flex;align-items:center;gap:10px;padding:10px 12px;margin-bottom:12px;border-radius:6px;background:#edf5ff;color:#315b90;font-size:12px;line-height:1.7}
.checkout-products-status.complete{background:#f0faf6;color:#24735a}
.checkout-products-status>.icon{width:17px;height:17px;flex-shrink:0}
.checkout-product{display:flex;align-items:center;gap:14px;min-width:0}
.checkout-product img,.checkout-product-placeholder{width:66px;height:66px;object-fit:contain;flex:0 0 66px}
.checkout-product-placeholder{display:flex;align-items:center;justify-content:center;color:#9aaac0;background:#f7f9fc;border-radius:6px}
.checkout-product-placeholder .icon{width:24px;height:24px}
.checkout-product-copy{min-width:0}.checkout-product-copy .title{font-size:14px;line-height:1.7;overflow-wrap:anywhere}
.checkout-product-copy .sub{margin-top:4px;line-height:1.6}
.checkout-page #quote-items th{font-size:12px;white-space:nowrap}.checkout-page #quote-items td{font-size:14px}
.checkout-page #quote-items td:first-child{min-width:220px;width:45%}
.checkout-reference-note{font-size:12px;color:var(--muted);line-height:1.7;margin:14px 0 0}
.checkout-text-skeleton{display:block;width:150px;max-width:100%;height:15px;background:#edf1f7;border-radius:3px}
.checkout-progress{display:flex;list-style:none;padding:0;margin:0 0 26px;gap:0}
.checkout-progress li{display:flex;flex:1;min-width:0;align-items:center;flex-direction:column;gap:9px;position:relative;font-size:11px;color:#7e8da3;text-align:center}
.checkout-progress li:after{content:"";position:absolute;height:1px;background:#e0e7f1;top:14px;left:calc(50% + 21px);width:calc(100% - 42px)}
.checkout-progress li:last-child:after{display:none}.checkout-progress li.done:after{background:#84b4ff}
.checkout-progress-dot{display:flex;align-items:center;justify-content:center;width:28px;height:28px;border:1px solid #c7d3e4;border-radius:50%;background:white;color:#fff;flex-shrink:0}
.checkout-progress .done .checkout-progress-dot{border-color:var(--blue);background:var(--blue)}
.checkout-progress .done,.checkout-progress .current{color:var(--text);font-weight:600}.checkout-progress .current{color:var(--blue)}
.checkout-progress .current .checkout-progress-dot{border:0}.checkout-progress-dot .icon{width:17px;height:17px}
.checkout-spinner{display:inline-block;box-sizing:border-box;width:18px;height:18px;border:2px solid #b7d4ff;border-top-color:var(--blue);border-radius:50%;animation:checkout-spin .85s linear infinite;flex:0 0 18px}
.checkout-progress-dot .checkout-spinner{width:28px;height:28px;flex-basis:28px;border-width:2px}
.checkout-verification{display:flex;align-items:flex-start;gap:12px;min-height:89px;padding:16px 14px;border-radius:8px;background:#edf5ff;margin-bottom:20px}
.checkout-verification>.checkout-spinner,.checkout-verification>.icon{margin-top:3px}.checkout-verification>.icon{width:19px;height:19px;flex-shrink:0;color:var(--blue)}
.checkout-verification strong{font-size:14px;line-height:1.7;font-weight:600}.checkout-verification p{font-size:12px;line-height:1.8;color:#657c99;margin:4px 0 0}
.checkout-verification.complete{background:#eff9f4}.checkout-verification.complete>.icon{color:#25825f}
.checkout-verification.attention{background:#fff8ed}.checkout-verification.attention>.icon{color:#b47b23}
.checkout-amounts .amount-line{font-size:14px;padding:10px 0}.checkout-amounts .amount-line>span{color:#65768d}
.checkout-amounts .summary-total{margin-top:12px;padding-top:20px}.checkout-amounts .summary-total .checkout-total-pending{font-size:20px;color:var(--text)}
.checkout-submit{margin-top:24px;min-height:46px;display:flex;justify-content:center;align-items:center;gap:9px;font-size:15px!important}
.checkout-submit:disabled{opacity:1;background:#c8dbff!important;border-color:#c8dbff!important;color:#fff!important;cursor:not-allowed}
.checkout-submit:disabled .checkout-spinner{border-color:#e5eeff;border-top-color:#fff}
.checkout-submit-note{font-size:12px;color:#7c8ca4;text-align:center;line-height:1.7;margin:10px 0 0}
.checkout-submit-note+.btn{margin-top:14px}.checkout-checked-at{margin-top:12px}
.checkout-address-loading{display:flex;align-items:center;gap:12px;min-height:90px;font-size:13px;color:var(--muted)}
@keyframes checkout-spin{to{transform:rotate(360deg)}}
@media(min-width:1600px){.checkout-page .checkout-layout{grid-template-columns:minmax(0,1fr) 440px;gap:26px}.checkout-page .panel-header h2{font-size:18px}.checkout-product-copy .title,.checkout-page #quote-items td{font-size:15px}.checkout-progress li{font-size:13px}.checkout-verification strong{font-size:15px}.checkout-verification p{font-size:13px}.checkout-amounts .amount-line{font-size:15px}}
@media(max-width:1100px){.checkout-page .checkout-layout{grid-template-columns:minmax(0,1fr) 320px;gap:18px}.checkout-page #quote-items{padding:14px}.checkout-product{gap:9px}.checkout-product img,.checkout-product-placeholder{width:52px;height:52px;flex-basis:52px}}
@media(max-width:900px){.checkout-page .checkout-layout{grid-template-columns:minmax(0,1fr)}.checkout-page .sticky{position:static}.checkout-page .panel{margin-bottom:18px}.checkout-progress{max-width:440px;margin-left:auto;margin-right:auto}}
@media(max-width:650px){.checkout-page .panel-header{padding:17px 16px}.checkout-page .panel-body{padding:18px 16px}.checkout-page .panel-header h2{font-size:15px}.checkout-page .checkout-count{font-size:11px}.checkout-page #quote-items{padding:12px}.checkout-page #quote-items td:first-child{min-width:210px}.checkout-page #quote-items th,.checkout-page #quote-items td{padding:12px 9px}.checkout-products-status{align-items:flex-start;font-size:11px}.checkout-products-status .checkout-spinner{margin-top:2px}.checkout-submit{margin-top:18px}.checkout-reference-note{font-size:11px}}
@media(max-width:650px){.checkout-page #quote-items .table-wrap{overflow:visible}.checkout-page #quote-items table,.checkout-page #quote-items tbody{display:block;width:100%;min-width:0}.checkout-page #quote-items thead{display:none}.checkout-page #quote-items tr{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px 12px;padding:16px 0;border-bottom:1px solid var(--line)}.checkout-page #quote-items tr:last-child{border-bottom:0}.checkout-page #quote-items td{display:block;width:auto;min-width:0;padding:0;border:0;white-space:normal;font-size:13px}.checkout-page #quote-items td:first-child{grid-column:1/-1;width:auto;min-width:0;margin-bottom:4px}.checkout-page #quote-items td:nth-child(3),.checkout-page #quote-items td:nth-child(5){text-align:right}.checkout-page #quote-items .delivery-cell{display:none}.checkout-page #quote-items td[data-label]:before{content:attr(data-label)"：";color:var(--muted);font-size:12px}.checkout-product-copy .title{font-size:13px}.checkout-page #quote-items td:first-child .delivery-mobile-line{display:block}}
@media(prefers-reduced-motion:reduce){.checkout-spinner{animation:none}}

/* Catalog administration: supplier snapshots stay separate from mall visibility. */
.catalog-management-filter{padding:22px;display:grid;grid-template-columns:minmax(240px,2fr) repeat(3,minmax(155px,1fr));gap:16px;border-bottom:1px solid var(--line,#e1e8f2);align-items:end}
.catalog-management-filter .field{margin:0;min-width:0}
.catalog-management-filter input,.catalog-management-filter select{width:100%;height:40px}
.catalog-filter-actions{display:flex;gap:10px;align-items:center;min-height:40px}
.catalog-filter-actions .btn{min-width:76px;height:40px}
.catalog-management-results>.table-wrap>table{min-width:1410px}
.catalog-management-results>.table-wrap>table>thead>tr>th{white-space:nowrap}
.catalog-management-results>.table-wrap>table>tbody>tr>td{vertical-align:top;padding-top:20px;padding-bottom:20px}
.catalog-product-cell{display:flex;gap:14px;min-width:310px;max-width:400px}
.catalog-product-cell img,.catalog-image-empty{width:64px;height:64px;flex:0 0 64px;object-fit:contain;border:1px solid #e5ebf3;border-radius:8px;background:#fff}
.catalog-image-empty{display:grid;place-items:center;font-size:11px;color:#7d8da3}
.catalog-product-name{padding:0;border:0;background:none;text-align:left;font:inherit;font-weight:600;line-height:1.6;color:#19314d;cursor:pointer}
.catalog-product-name:hover{color:#0969ee}
.catalog-product-name:focus-visible{outline:2px solid #0969ee;outline-offset:3px;border-radius:3px}
.catalog-product-cell .sub{line-height:1.7;margin-top:3px;overflow-wrap:anywhere}
.catalog-standard-price{font-weight:600;margin-top:9px;white-space:nowrap}
.catalog-price-inline{display:flex;align-items:center;gap:10px;flex-wrap:nowrap;white-space:nowrap}
.catalog-price-inline strong{font-weight:650;font-variant-numeric:tabular-nums}
.catalog-price-inline .tag{flex-shrink:0}
.catalog-management-results .catalog-sync-times{width:auto;min-width:0;border-collapse:collapse;border:1px solid #e3eaf3;font-size:12px;line-height:1.5;color:#60738e}
.catalog-sync-times th,.catalog-sync-times td{padding:6px 10px;border:1px solid #e3eaf3;text-align:left;white-space:nowrap;vertical-align:middle}
.catalog-sync-times thead th{background:#f3f7fc;font-weight:600;color:#50627d}
.catalog-sync-times tbody th{font-weight:400;background:#fff}
.catalog-sync-times tbody td{background:#fff;font-variant-numeric:tabular-nums}
.catalog-sync-times tbody tr:hover{background:transparent}
.catalog-issue{min-width:150px;max-width:220px;line-height:1.7;overflow-wrap:anywhere}
.catalog-row-actions{display:flex;flex-direction:column;align-items:flex-start;gap:8px;white-space:nowrap}
.catalog-row-actions .link-button{padding:0;line-height:1.7}
.modal.catalog-sync-modal{width:min(1320px,calc(100vw - 32px))}
.catalog-sync-modal table{min-width:1080px}
.catalog-sync-modal th,.catalog-sync-modal td{white-space:nowrap;padding:16px 12px;vertical-align:middle}
.catalog-sync-modal .catalog-sync-error{white-space:normal;min-width:180px;max-width:280px;overflow-wrap:anywhere;line-height:1.6}
.catalog-sync-modal .toolbar{padding:0 0 20px;gap:16px;flex-wrap:wrap}
.catalog-sync-modal .toolbar label{display:flex;align-items:center;gap:8px;white-space:nowrap}
.catalog-sync-modal .toolbar input{width:16px;height:16px}
.catalog-sync-date{font-size:12px;color:#60738e}
.catalog-detail-title{margin-bottom:24px;font-size:17px;line-height:1.6}
.catalog-detail-title .sub{font-size:13px;margin-top:8px}
.catalog-detail-modal h3{margin:26px 0 14px;font-size:15px}
.catalog-detail-modal .detail-kv dd{overflow-wrap:anywhere}
@media(max-width:1100px){.catalog-management-filter{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){.catalog-management-filter{padding:16px;gap:12px;grid-template-columns:repeat(2,minmax(0,1fr))}.catalog-management-filter .field:first-child,.catalog-filter-actions{grid-column:1/-1}.catalog-sync-modal .modal-body{padding:16px}.catalog-sync-modal .directory-pager{flex-wrap:wrap}.catalog-sync-modal .small-note{line-height:1.6}}

/* Shared customer-service portrait for signed-in buyers and visitors. */
.chat-launcher .support-avatar{width:36px;height:36px;flex:none;object-fit:cover;border-radius:50%;background:#fff;border:2px solid #fff}
.chat-launcher{display:flex;align-items:center;gap:9px;padding:8px 16px 8px 8px}
.chat-launcher>span{font-size:14px;line-height:1.4}
.chat-heading .chat-avatar{overflow:hidden;background:#e7f2ff}
.chat-heading .support-avatar{display:block;width:100%;height:100%;object-fit:cover;border-radius:50%}

/* Buyer order center: one shared status, keyword and date filter. */
.buyer-order-filters{background:#fff;border:1px solid #dce6f2;border-radius:8px;padding:0 24px 24px}
.buyer-order-filters .order-tabs{margin:0 0 22px;gap:4px;border-bottom:1px solid #e3eaf3;flex-wrap:wrap;overflow-x:visible}
.buyer-order-filters .order-tabs a{padding:21px 13px 17px;border-radius:0;border-bottom:3px solid transparent;font-size:14px;flex-shrink:0}
.buyer-order-filters .order-tabs a.active{background:transparent;color:#1165ef;border-bottom-color:#1165ef;box-shadow:none}
.buyer-order-filters .order-tabs a:hover{color:#1165ef;background:#f6f9fe}
.buyer-order-aftersale{display:inline-flex;align-items:center;gap:6px;width:fit-content;max-width:100%;font-size:12px;font-weight:600;line-height:1.6}
.buyer-order-aftersale::before{content:"";width:6px;height:6px;flex:none;border-radius:50%;background:currentColor}
.buyer-order-aftersale::after{content:"";width:5px;height:5px;flex:none;border-top:1px solid;border-right:1px solid;transform:rotate(45deg)}
.buyer-order-aftersale:hover{text-decoration:underline}
.buyer-order-aftersale--progress{color:#965c11}
.buyer-order-aftersale--success{color:#116749}
.buyer-order-filter-form{display:grid;grid-template-columns:minmax(240px,2fr) repeat(2,minmax(160px,1fr)) auto;gap:16px;align-items:end}
.buyer-order-filter-form label{display:grid;gap:8px;min-width:0;color:#50627d;font-size:13px}
.buyer-order-filter-form .control{width:100%;min-width:0;height:42px;box-sizing:border-box}
.buyer-order-filter-form .order-filter-actions{gap:10px}
.buyer-order-filter-form .order-filter-actions .btn{height:42px;min-width:76px}
.buyer-order-result-count{display:flex;justify-content:flex-end;margin:20px 0 12px;color:#66758c;font-size:13px}
@media(max-width:1000px){.buyer-order-filter-form{grid-template-columns:repeat(2,minmax(0,1fr))}.buyer-order-filter-form .order-keyword{grid-column:1/-1}.buyer-order-filter-form .order-filter-actions{grid-column:1/-1;justify-content:flex-end}}
@media(max-width:700px){.buyer-order-filters{padding:0 14px 16px}.buyer-order-filters .order-tabs{margin-bottom:16px;gap:4px;flex-wrap:nowrap;overflow-x:auto}.buyer-order-filters .order-tabs a{font-size:13px;padding:16px 10px 13px}.buyer-order-filter-form{gap:12px}.buyer-order-result-count{margin:16px 0 10px}}

/* Super-admin business SMS notifications. */
.sms-policy{display:flex;justify-content:space-between;align-items:center;gap:24px}
.sms-policy p{color:#667a96;font-size:13px;margin:8px 0 0;line-height:1.7}
.sms-toggle{display:inline-flex;align-items:center;gap:10px;font-weight:600;white-space:nowrap;cursor:pointer}
.sms-toggle input{appearance:none;width:42px;height:24px;border:0;border-radius:20px;background:#aebcce;position:relative;cursor:pointer;margin:0;flex-shrink:0;transition:background .15s}
.sms-toggle input::before{content:"";position:absolute;width:18px;height:18px;background:#fff;border-radius:50%;left:3px;top:3px;box-shadow:0 1px 3px #0002;transition:transform .15s}
.sms-toggle input:checked{background:#0969ee}
.sms-toggle input:checked::before{transform:translateX(18px)}
.sms-toggle input:focus-visible{outline:2px solid #0969ee;outline-offset:3px}
.sms-toggle input:disabled{opacity:.55;cursor:wait}
.sms-notifications .pager{display:flex;align-items:center;gap:8px;padding:18px 24px;border-top:1px solid #e5ebf3}
.sms-notifications .pager>span{margin-right:auto;color:#667a96;font-size:13px}
.sms-phone{white-space:nowrap;font-variant-numeric:tabular-nums;color:#667a96}
.sms-rule-note{font-size:13px;color:#667a96;padding-bottom:16px}
.sms-notifications>.panel>.table-wrap>table{min-width:900px}
.sms-notifications td{vertical-align:top}
.sms-invalid{color:#a65b13}
.sms-record-filter{display:flex;align-items:flex-end;gap:12px;flex-wrap:wrap}
.sms-record-filter .field{min-width:210px;margin:0}
.sms-record-filter .btn{height:40px}
.sms-rule-editor .field{margin-top:18px}
.sms-recipients{border:1px solid #e0e8f2;border-radius:8px;padding:12px;margin:20px 0;max-height:240px;overflow:auto}
.sms-recipients legend{font-weight:600;padding:0 6px}
.sms-recipients label{display:flex;gap:12px;align-items:flex-start;padding:10px 8px;border-radius:6px}
.sms-recipients label:hover{background:#f3f7fc}
.sms-recipients input{margin-top:4px;accent-color:#0969ee}
.sms-recipients small{display:block;color:#667a96;margin-top:4px}
.sms-template-confirm{display:flex;align-items:flex-start;gap:8px;font-size:13px;line-height:1.7;margin:16px 0}
.sms-template-confirm input{margin-top:5px}
.sms-preview{background:#f3f7fc;border:1px solid #dae6f7;border-radius:8px;padding:16px}
.sms-preview p{margin:10px 0 0;line-height:1.8;overflow-wrap:anywhere}
@media(max-width:600px){.sms-policy{align-items:flex-start;flex-direction:column}.sms-record-filter .field{width:100%}.sms-notifications .panel-body{padding:18px}}

/* Product return policy: full restrictions remain visible on narrow screens. */
.product-return-service{display:flex;align-items:baseline;gap:16px;margin:-6px 0 24px;line-height:1.6;font-size:14px}
.product-return-label{flex:0 0 72px;color:var(--muted,#64748b)}
.return-policy{display:inline-flex;align-items:baseline;gap:8px;min-width:0;padding:6px 12px;border-radius:6px;overflow-wrap:anywhere}
.return-policy--supported{color:#116749;background:#edf8f2}
.return-policy--unsupported{color:#6b4b28;background:#fff7ed}
.return-policy--unknown{color:#64748b;background:#f1f5f9}
@media(max-width:640px){.product-return-service{gap:10px;font-size:13px}.product-return-label{flex-basis:56px}.return-policy{padding:6px 9px}}

/* Real logistics: one horizontal card per parcel, no duplicated order timeline. */
.logistics-body{display:flex;flex-direction:column;gap:16px}
.logistics-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}
.logistics-package{border:1px solid var(--border,#dfe7f2);border-radius:10px;padding:18px;background:#fff;min-width:0}
.logistics-package header{display:flex;align-items:center;gap:14px;flex-wrap:wrap;padding-bottom:14px;border-bottom:1px solid #edf1f7}
.logistics-package header strong{color:#135ed4}.logistics-waybill{overflow-wrap:anywhere}.logistics-waybill b{font-weight:500}
.logistics-package header button{margin-left:auto}.logistics-latest{display:flex;gap:16px;align-items:baseline;margin:16px 0 10px}
.logistics-package-compact header{padding-bottom:0;border-bottom:0}
.logistics-estimate{color:#256544;font-size:13px;line-height:1.6;overflow-wrap:anywhere}
.logistics-shared-estimates{display:flex;flex-wrap:wrap;gap:8px 20px}
.logistics-latest time,.logistics-timeline time{font-size:12px;color:#64748b;white-space:nowrap}.logistics-latest p{margin:0;overflow-wrap:anywhere;font-weight:500}
.logistics-package summary,.logistics-order-events summary{cursor:pointer;color:#1461dc;padding:8px 0;min-height:36px}
.logistics-timeline{list-style:none;padding:12px 0 0 10px;margin:0}
.logistics-timeline li{position:relative;border-left:2px solid #e5ebf5;padding:0 0 22px 20px;margin:0}
.logistics-timeline li:before{content:'';position:absolute;left:-5px;top:5px;width:8px;height:8px;border-radius:50%;background:#bbc8dc}
.logistics-timeline li.latest:before{background:#1461dc}.logistics-timeline li.latest p{color:#1461dc}.logistics-timeline li:last-child{padding-bottom:0;border-left-color:transparent}
.logistics-timeline p{margin:5px 0 0;overflow-wrap:anywhere}.logistics-order-events{padding:16px;background:#f7f9fc;border-radius:8px}.logistics-order-events h3{font-size:14px;margin:0}
.logistics-warning{margin:0;padding:10px 12px;border-radius:6px;color:#925e0d;background:#fff7e6}.logistics-empty{color:#64748b;margin:12px 0;text-align:center}
@media(max-width:640px){.logistics-package{padding:12px}.logistics-package header{gap:8px}.logistics-waybill{flex-basis:100%;order:3}.logistics-latest{flex-direction:column;gap:6px}.logistics-toolbar .small-note{max-width:70%}}
@media(max-width:640px){.logistics-package header .logistics-estimate{flex-basis:100%;order:4}}

/* Internal JD settlement ledger; bank accounts remain masked. */
.payment-ledger th[scope="row"]{width:34%;font-weight:500;text-align:left;color:var(--muted,#64748b)}
.payment-ledger td{overflow-wrap:anywhere}
.payment-ledger .table-wrap{margin:12px 0}

.payment-switches{display:grid;gap:12px;margin-bottom:20px}
.payment-switches label{display:flex;align-items:center;gap:8px}

/* Internal JD invoice records keep controls and wide data tables usable. */
.jd-invoices .page-header{margin-bottom:24px}
.invoice-workbench{overflow:hidden}
.invoice-workbench-head{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:0 24px;border-bottom:1px solid var(--line)}
.invoice-workbench-head .tabs{margin:0;border:0;gap:28px}
.invoice-workbench-head .tabs button{padding:20px 0 17px}
.invoice-sync-state{font-size:12px;color:var(--muted);white-space:nowrap}
.invoice-sync-state.is-active::before{content:'';display:inline-block;width:6px;height:6px;background:var(--green);border-radius:50%;margin-right:7px;vertical-align:2px}
.invoice-filter{display:flex;align-items:flex-end;gap:12px;padding:22px 24px;border-bottom:1px solid var(--line)}
.invoice-search{width:min(420px,100%)}
.invoice-filter label{display:block;font-size:12px;color:#65758b;margin-bottom:7px}
.invoice-filter .control{width:100%;height:40px;margin:0}
.invoice-status-filter{width:170px}
.invoice-filter-actions{display:flex;align-items:center;gap:10px}
.invoice-filter-actions .btn{height:40px;min-width:66px}
.invoice-batch{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:14px 24px;background:#f0f6ff;border-bottom:1px solid #dce9fb}
.invoice-batch>div{display:flex;align-items:center;gap:20px}
.invoice-batch strong{font-size:13px}
.invoice-batch [data-selected-total]{font-size:13px;color:#52657f;font-variant-numeric:tabular-nums}
.invoice-batch-actions{flex-wrap:wrap;gap:10px!important}
.invoice-workbench [data-message]:not(:empty){padding:16px 24px 0}
.invoice-workbench [data-message] .notice{margin:0}
.invoice-workbench table{table-layout:auto}
.invoice-workbench th,.invoice-workbench td{padding:17px 24px;vertical-align:middle}
.invoice-workbench th{font-size:12px;font-weight:500}
.invoice-workbench th:first-child,.invoice-workbench td:first-child{width:54px;padding-right:0}
.invoice-workbench input[type=checkbox]{width:15px;height:15px;margin:0;vertical-align:middle;accent-color:var(--blue)}
.invoice-workbench .invoice-order-id{font-size:13px;white-space:nowrap;font-variant-numeric:tabular-nums}
.invoice-workbench .invoice-amount{font-size:14px;white-space:nowrap;font-variant-numeric:tabular-nums}
.invoice-workbench td.invoice-completed{font-size:12px;color:#687b94;white-space:nowrap}
.invoice-cell-note{font-size:12px;color:var(--muted);margin-top:5px;max-width:260px}
.invoice-workbench .empty{padding:72px 24px}
.invoice-workbench .empty h3{font-size:16px;margin:14px 0 7px}
.invoice-workbench .empty p{font-size:13px}
.invoice-pagination{display:flex;align-items:center;justify-content:space-between;gap:16px;border-top:1px solid var(--line);padding:17px 24px;font-size:12px;color:var(--muted)}
.invoice-pagination>div{display:flex;gap:8px}
@media(max-width:760px){.invoice-workbench-head{padding:0 16px;flex-wrap:wrap;gap:0}.invoice-workbench-head .tabs{gap:22px}.invoice-sync-state{padding:0 0 12px;flex-basis:100%}.invoice-sync-state:empty{display:none}.invoice-filter{padding:18px 16px;flex-wrap:wrap}.invoice-search{flex-basis:100%;width:100%}.invoice-status-filter{flex:1}.invoice-batch{padding:14px 16px;align-items:flex-start;flex-direction:column;gap:12px}.invoice-workbench th,.invoice-workbench td{padding:14px 16px}.invoice-pagination{padding:16px;flex-wrap:wrap}.invoice-workbench .table-wrap table{min-width:900px}}
.jd-invoices .toolbar{flex-wrap:wrap}
.jd-invoices [hidden],.jd-invoice-modal [hidden]{display:none!important}
.jd-invoices td{overflow-wrap:anywhere}
.jd-invoices td:nth-last-child(2){white-space:nowrap}
.jd-invoice-modal .modal-body>.table-wrap{margin:18px 0}
.jd-invoice-modal .row.wrap{margin:14px 0}
.jd-invoice-modal td{overflow-wrap:anywhere}
.jd-invoice-modal [data-format]{margin-right:8px}
.jd-invoice-detail .modal-body>.table-wrap td{white-space:nowrap}
.jd-invoices .invoice-record-times{font-variant-numeric:tabular-nums;white-space:nowrap;font-size:12px}
.jd-invoice-modal.jd-invoice-detail{width:1120px}
.jd-invoices .invoice-time-range,.jd-invoice-detail .invoice-time-range{display:flex;flex-direction:column;gap:3px;white-space:nowrap}
.jd-invoices .invoice-overview,
.staff-order-queue .order-queue-overview {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0 0 20px;
  padding: 18px 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
}
.invoice-overview > div { padding: 0 24px; }
.invoice-overview > div + div { border-left: 1px solid var(--line); }
.invoice-overview dt { color: var(--muted); font-size: 13px; }
.invoice-overview dd { margin: 7px 0 0; font-size: 26px; font-weight: 700; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.invoice-completed-filter > span { display: block; margin-bottom: 7px; color: #65758b; font-size: 12px; }
.invoice-date-range { display: flex; align-items: center; gap: 8px; color: var(--muted); }
.invoice-date-range .control { min-width: 0; width: 142px; }
.invoice-workbench .invoice-orders-table { min-width: 1050px; }
.invoice-workbench .invoice-orders-table :is(th,td) { padding: 14px 14px; }
.invoice-workbench .invoice-orders-table th { background: #f1f5fb; color: #435875; font-size: 13px; font-weight: 600; }
.invoice-workbench .invoice-orders-table :is(th,td):first-child { width: 46px; padding-left: 20px; padding-right: 0; }
.invoice-orders-table tr:has([data-select]:checked) > td { background: #eaf2ff; }
.invoice-scroll-note { display: none; }
.invoice-orders-table .invoice-money-cell { text-align: right; }
.invoice-orders-table .invoice-company { min-width: 114px; }
.invoice-orders-table .invoice-order-action { white-space: nowrap; }
.invoice-product { display: grid; grid-template-columns: 44px minmax(0, 1fr); align-items: center; gap: 10px; min-width: 184px; }
.invoice-product-thumb { width: 44px; height: 44px; display: grid; place-items: center; color: #647d9e; background: #f2f6fb; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
.invoice-product-thumb > * { grid-area: 1 / 1; }
.invoice-product-thumb img { width: 100%; height: 100%; object-fit: contain; background: #fff; }
.invoice-product-name { display: block; max-width: 280px; font-size: 14px; line-height: 1.4; }
.invoice-product .invoice-cell-note { margin-top: 3px; }
.jd-invoices .invoice-batch { border-top: 1px solid #dce9fb; }
.jd-invoices .invoice-batch [data-selected-total] { font-weight: 700; color: var(--blue); }
@media (min-width: 1180px) {
  .invoice-filter:has(.invoice-completed-filter:not([hidden])) .invoice-search,
  .invoice-filter .invoice-completed-filter { display: flex; align-items: center; gap: 12px; }
  .invoice-filter:has(.invoice-completed-filter:not([hidden])) .invoice-search { flex: 1; min-width: 0; }
  .invoice-filter:has(.invoice-completed-filter:not([hidden])) .invoice-search label,
  .invoice-completed-filter > span { margin: 0; white-space: nowrap; }
  .invoice-filter .invoice-completed-filter { flex: 0 1 40%; min-width: 310px; }
  .invoice-date-range { flex: 1; }
  .invoice-date-range .control { flex: 1; width: auto; }
}
@media (max-width: 760px) {
  .jd-invoices .invoice-overview { padding: 12px 0; }
  .invoice-overview > div { padding: 0 10px; }
  .invoice-overview dt { font-size: 12px; }
  .invoice-overview dd { font-size: 18px; }
  .invoice-completed-filter { flex-basis: 100%; min-width: 0; }
  .invoice-date-range .control { flex: 1; }
  .jd-invoices .invoice-filter .invoice-search { flex: 1 0 100%; }
  .invoice-scroll-note { display: block; margin: 0; padding: 9px 16px; color: var(--muted); font-size: 12px; }
}
.jd-invoice-detail .invoice-detail-times{display:grid;grid-template-columns:max-content minmax(0,1fr);gap:8px 18px;margin:16px 0 4px;padding:14px 16px;background:#f7f9fc;border:1px solid var(--line);border-radius:8px;font-size:13px;font-variant-numeric:tabular-nums}
.jd-invoice-detail .invoice-detail-times dt{color:var(--muted)}
.jd-invoice-detail .invoice-detail-times dd{margin:0;overflow-wrap:anywhere}
.jd-invoice-detail .invoice-file-actions{display:flex;align-items:center;gap:12px;white-space:nowrap}
.jd-invoice-detail .invoice-file-actions [data-format]{margin:0}
.jd-invoice-detail [data-preview]{font-weight:600}
.jd-invoice-modal .invoice-history{margin:20px 0;border:1px solid var(--line);border-radius:8px;overflow:hidden}
.jd-invoice-modal .invoice-history>summary{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:14px 16px;cursor:pointer;list-style:none;background:#f7f9fc;font-weight:600}
.jd-invoice-modal .invoice-history>summary::-webkit-details-marker{display:none}
.jd-invoice-modal .invoice-history-toggle{display:flex;align-items:center;gap:8px;color:var(--blue);font-size:12px;white-space:nowrap;font-weight:400}
.jd-invoice-modal .invoice-history-toggle:after{content:'';width:6px;height:6px;border-right:1.5px solid currentColor;border-bottom:1.5px solid currentColor;transform:rotate(45deg);margin-top:-3px}
.jd-invoice-modal .invoice-history-collapse,.jd-invoice-modal .invoice-history[open] .invoice-history-expand{display:none}
.jd-invoice-modal .invoice-history[open] .invoice-history-collapse{display:inline}
.jd-invoice-modal .invoice-history[open] .invoice-history-toggle:after{transform:rotate(225deg);margin-top:3px}
.jd-invoice-modal .invoice-history>.table-wrap{margin:0;border-top:1px solid var(--line)}
@media(max-width:640px){.jd-invoices .toolbar{padding:14px}.jd-invoices .toolbar input{max-width:none;flex-basis:100%}.jd-invoices .table-wrap table{min-width:640px}.jd-invoice-modal .table-wrap table{min-width:520px}}

/* Keep invoice settings actions outside the scrolling form body. */
.jd-invoice-settings .modal-body{min-height:0;overflow-y:auto}
.jd-invoice-settings .modal-footer{display:flex;flex-wrap:wrap;gap:8px;background:#fff;flex-shrink:0}
.jd-invoice-settings .modal-footer .btn{min-height:40px}
@media(max-width:640px){.jd-invoice-settings .modal-footer{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.jd-invoice-settings .modal-footer .btn{width:100%;margin:0}.jd-invoice-settings .modal-footer .primary{grid-column:2}}

.settlement-review-modal .settlement-evidence{overflow-wrap:anywhere;white-space:normal;max-width:480px}.settlement-review-modal textarea[readonly]{min-height:150px;font-size:12px}.settlement-review-modal .detail-kv dd{margin:0;min-width:0}.settlement-review-modal .table-wrap{overflow-x:auto}.settlement-review-modal .notice{margin-bottom:16px}
.settlement-review-modal .field[hidden]{display:none}
.payment-ledger table{width:100%;min-width:0;table-layout:fixed}.payment-ledger th:first-child{width:34%}.payment-ledger td{white-space:normal;overflow-wrap:anywhere}.payment-ledger .row.wrap{gap:10px}
@media(max-width:650px){.payment-ledger th,.payment-ledger td{padding:12px 10px;font-size:12px}.payment-ledger th:first-child{width:36%}}
.jd-payee-card{padding:20px 24px;margin-bottom:20px;border:1px solid var(--border,#dce6f2);border-radius:10px;background:#fff;min-width:0}
.jd-payee-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:16px}
.jd-payee-heading h3{font-size:16px;margin:0;color:var(--text,#1b304d)}
.jd-payee-card dl{margin:0;display:grid;gap:12px}
.jd-payee-row{display:grid;grid-template-columns:130px minmax(0,1fr);gap:16px;align-items:start}
.jd-payee-row dt{color:var(--muted,#64748b);padding-top:5px}
.jd-payee-row dd{margin:0;display:flex;align-items:flex-start;gap:16px;justify-content:space-between;min-width:0}
.jd-payee-value{overflow-wrap:anywhere;white-space:pre-wrap;padding-top:5px;line-height:1.6}
.jd-payee-row .btn{flex-shrink:0}
.jd-payee-note{white-space:pre-wrap;overflow-wrap:anywhere}
.jd-payee-settings{border-top:1px solid var(--border,#dce6f2)}
.order-steps .step::before{top:15.5px;left:calc(-50% + 21.5px);right:calc(50% + 21.5px);z-index:0}
.order-steps .step .num{z-index:1}
@media(max-width:600px){.jd-payee-card{padding:16px}.jd-payee-heading{align-items:flex-start;flex-wrap:wrap}.jd-payee-row{grid-template-columns:1fr;gap:2px}.jd-payee-row dt{font-size:12px}.jd-payee-row dd{gap:10px}}

.modal.jd-payment-dialog {
  width: min(900px, 100%);
  max-height: calc(100dvh - 40px);
  color: #172d4d;
}
.jd-payment-dialog .modal-head { padding: 16px 24px; }
.jd-payment-dialog .modal-head h2 { font-size: 22px; }
.jd-payment-dialog .modal-body { padding: 20px 24px; min-height: 0; overscroll-behavior: contain; }
.jd-payment-dialog .modal-footer { padding: 14px 24px; gap: 10px; background: #fff; }
.jd-payment-dialog .modal-footer .btn { min-height: 40px; }
.jd-payment-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px 20px;
  padding: 14px 18px;
  background: #eef5ff;
  border: 1px solid #d7e6fc;
  border-radius: 8px;
}
.jd-payment-summary span { font-size: 14px; font-weight: 600; }
.jd-payment-summary p { margin: 4px 0 0; font-size: 12px; color: #4c6280; }
.jd-payment-summary strong { color: #174b95; font-size: 27px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.jd-payment-section {
  margin-top: 16px;
  padding: 14px 16px 16px;
  border: 1px solid #dce5f1;
  border-radius: 8px;
}
.jd-payment-section > h3 { margin: 0 0 12px; font-size: 16px; }
.jd-payment-fields,
.jd-payment-accounts { display: grid; gap: 12px 16px; align-items: start; }
.jd-payment-fields { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 14px; }
.jd-payment-fields .field,
.jd-payment-section > .pdf-selection { min-width: 0; margin: 0; }
.jd-payment-fields .field input { min-width: 0; }
.jd-payment-dialog .rfv-recognition { margin: 8px 0 0; }
.jd-payment-dialog .rfv-recognition .help { margin: 0; }
.jd-payment-dialog .rfv-recognition:has([data-bank-ocr-retry]:not([hidden])) {
  padding: 7px 10px;
  background: #fff7e7;
  border-radius: 5px;
}
.jd-payment-dialog .rfv-recognition:has([data-bank-ocr-retry]:not([hidden])) .help { color: #825315; }
.jd-payment-accounts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.jd-payment-accounts > :is(.jd-payee-card, .remote-picker) { margin: 0; padding: 12px 14px; background: #f8faff; }
.jd-payment-accounts .jd-payee-heading { margin-bottom: 8px; }
.jd-payment-accounts .jd-payee-heading h3 { font-size: 14px; }
.jd-payment-accounts .jd-payee-row { grid-template-columns: 76px minmax(0, 1fr); gap: 8px; }
.jd-payment-accounts .jd-payee-row dd { gap: 8px; }
.jd-payment-accounts .jd-payee-card .detail-kv { grid-template-columns: 76px minmax(0, 1fr); }
.jd-payment-accounts .jd-payee-card > p { margin: 0; }
.jd-payment-accounts .picker-pages:not(:has(button:not(:disabled))) { display: none; }
.jd-transfer-editor { margin: 0; padding: 0; border: 0; min-width: 0; }
.jd-transfer-totals { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-bottom: 14px; color: #4c6280; }
.jd-transfer-totals output { margin-left: 4px; color: #172d4d; font-weight: 700; font-variant-numeric: tabular-nums; }
.jd-transfer { min-width: 0; margin: 0 0 14px; padding: 12px; border: 1px solid #dce5f1; border-radius: 8px; }
.jd-transfer legend { padding: 0 6px; font-size: 14px; font-weight: 600; }
.jd-transfer-file + .jd-transfer-file { margin-top: 10px; padding-top: 10px; border-top: 1px solid #e6edf6; }
.jd-transfer-file .pdf-selection { margin: 0; }
.jd-transfer-actions { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 8px; }
.jd-transfer-warning { margin: 10px 0 0; padding: 8px 10px; border-radius: 5px; background: #fff1f0; color: #ad272a; }
.jd-transfer-editor > .small-note { margin: 8px 0 0; }

@media (max-width: 700px) {
  .modal.jd-payment-dialog { max-height: calc(100dvh - 24px); }
  .jd-payment-dialog .modal-head,
  .jd-payment-dialog .modal-body,
  .jd-payment-dialog .modal-footer { padding: 12px 16px; }
  .jd-payment-dialog .modal-head h2 { font-size: 18px; }
  .jd-payment-summary { flex-wrap: wrap; padding: 12px; }
  .jd-payment-summary strong { font-size: 23px; }
  .jd-payment-section { margin-top: 12px; padding: 12px; }
  .jd-payment-fields,
  .jd-payment-accounts { grid-template-columns: minmax(0, 1fr); }
  .jd-payment-dialog .modal-footer .primary { flex: 1; }
}

/* Staff order list: clear identities, aligned amounts and a single status. */
.staff-order-list table{min-width:1120px;width:100%}
.staff-order-list th,.staff-order-list td{vertical-align:middle;padding:18px 16px}
.order-list-identity{width:330px;min-width:305px}
.order-list-number{display:flex;align-items:center;gap:8px;white-space:nowrap;line-height:24px}
.order-list-number>.muted{font-size:12px;flex:none}
.order-number-copy{font-size:12px;flex:none;padding:2px 3px}
.order-list-time{margin-top:5px}
.order-list-company{min-width:155px;max-width:240px;overflow-wrap:anywhere}
.order-list-money{text-align:right;white-space:nowrap;font-variant-numeric:tabular-nums}
.staff-order-list th:nth-child(n+3):nth-last-child(n+3){text-align:right;white-space:nowrap}
.order-list-status{width:166px;min-width:150px}
.order-list-status .tag{white-space:normal}
.order-list-action{width:108px;white-space:nowrap}
@media(max-width:680px){.staff-order-list th,.staff-order-list td{padding:14px 12px}}

/* Advisory delivery estimates: independent of inventory/checkout gating. */
.delivery-product-row{display:flex;gap:20px;align-items:baseline;margin:14px 0 6px;font-size:14px}
.delivery-product-row>span:first-child{flex-shrink:0;color:var(--muted)}
.delivery-estimate{font-size:13px;line-height:1.6;color:var(--muted);overflow-wrap:anywhere}
.delivery-known{color:#235c9e}
.delivery-product-row .delivery-known{font-size:15px;font-weight:600}
.delivery-note{font-size:12px;line-height:1.7;color:var(--muted);margin:6px 0 0}
.delivery-table-note{padding:12px 22px;margin:0}
.delivery-cell{min-width:150px;max-width:220px;vertical-align:middle;white-space:normal}
.delivery-cell .delivery-estimate{display:block;min-width:130px;max-width:210px}
.delivery-mobile-line{display:none}
.panel:has([data-cart-row]) th:nth-child(7){white-space:nowrap}
@media(max-width:720px){
 .delivery-cell,.panel:has([data-cart-row]) th:nth-child(7),#quote-items table:has(.delivery-cell) th:last-child{display:none}
 .delivery-mobile-line{display:block;color:var(--muted);font-size:12px;margin-top:7px;white-space:normal;line-height:1.6}
 .delivery-mobile{font-size:12px}
 .delivery-product-row{gap:12px}
 .delivery-table-note{padding:12px 16px}
}

/* Product purchase area: delivery-first layout, shared with buyer/guest/staff views. */
.page:has(>.product-purchase-panel){
 --product-detail-inset:26px;
 --product-gallery-single-column-width:540px;
 max-width:none;
 padding-inline:clamp(14px,2vw,40px);
}
.product-purchase-layout{padding:var(--product-detail-inset)}
.product-content .detail-tabs{padding-inline:var(--product-detail-inset)}
.product-content .detail-tabs>button{padding-inline:0}
.product-purchase-layout .product-detail{grid-template-columns:minmax(0,min(44%,640px)) minmax(0,1fr);gap:32px;align-items:start}
.product-purchase-layout h1{font-size:25px;line-height:1.5;letter-spacing:0;overflow-wrap:anywhere}
.product-purchase-layout .price-box{display:flex;align-items:center;gap:16px;padding:17px 22px;margin:22px 0 26px;min-height:80px;background:var(--light)}
.product-purchase-layout .price-box>span{color:#526882;font-size:14px}
.product-purchase-layout .price-box strong{font-size:36px;line-height:1.2;margin:0;font-variant-numeric:tabular-nums;white-space:nowrap}
.product-purchase-layout .price-pending{align-items:flex-start;gap:7px}
.product-purchase-layout .price-pending strong{font-size:22px;white-space:normal}
.product-purchase-layout .product-info-row,.product-purchase-layout .product-return-service{display:grid;grid-template-columns:76px minmax(0,1fr);column-gap:18px;align-items:baseline;margin:0 0 20px;font-size:14px;line-height:1.65}
.product-purchase-layout .product-row-label,.product-purchase-layout .product-return-label{color:#66768d;font-weight:400}
.product-purchase-layout .product-shipping{border:0;margin:0;padding:0 0 2px}
.product-purchase-layout .stock-query>.field{display:grid;grid-template-columns:76px minmax(0,1fr);gap:18px;align-items:center;margin:0 0 20px}
.product-purchase-layout .stock-query>.field>label{font-size:14px;font-weight:400;color:#66768d}
.product-purchase-layout .stock-query select{width:min(100%,520px);min-width:0;text-overflow:ellipsis;min-height:44px;font-size:14px}
.product-purchase-layout .product-address-add{display:block;width:fit-content;margin:-8px 0 16px 94px;padding-inline:0;font-size:13px}
.product-purchase-layout .delivery-note{font-size:12px;line-height:1.65;margin:5px 0 0;color:#718198}
.product-purchase-layout .delivery-known{font-size:15px;line-height:1.65;color:var(--blue);font-weight:650;overflow-wrap:anywhere}
.product-purchase-layout .product-dispatch{align-items:center}
.product-purchase-layout .product-dispatch-values{display:flex;align-items:center;gap:12px;flex-wrap:wrap;min-width:0}
.product-purchase-layout .product-provider{display:inline-flex;gap:8px;align-items:center;color:var(--text);white-space:nowrap;font-size:15px}
.product-purchase-layout .product-provider .icon{color:var(--blue);width:23px;height:23px}
.product-purchase-layout .product-stock{font-size:13px;color:#687990;overflow-wrap:anywhere}
.product-purchase-layout .product-stock[data-status="available"]{padding:3px 9px;border-radius:4px;color:#116749;background:#edf8f2}
.product-purchase-layout .product-stock[data-status="unavailable"],.product-purchase-layout .product-stock[data-status="error"]{color:#a45b15}
.product-purchase-layout .product-attributes{border-top:1px solid var(--line);padding-top:22px}
.product-purchase-layout .return-policy{padding:0;background:transparent;border-radius:0;align-items:baseline;gap:9px}
.product-purchase-layout .return-policy--unsupported{color:#a85a10}
.product-purchase-layout .return-policy .icon{width:18px;height:18px}
.product-purchase-layout .variant-row>div{min-width:0;gap:8px}
.product-purchase-layout .variant-row .btn{white-space:normal;text-align:left;font-size:13px;line-height:1.5;padding:9px 12px;min-height:40px;overflow-wrap:anywhere}
.product-purchase-layout .product-variant-value{overflow-wrap:anywhere}
.product-purchase-layout .product-quantity-row{align-items:center;margin:24px 0 18px}
.product-purchase-layout .product-quantity-values{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.product-purchase-layout .product-quantity-stepper{display:flex;border:1px solid #dce4ef;border-radius:6px;overflow:hidden;flex:none;height:42px}
.product-purchase-layout .product-quantity-stepper button{border:0;background:#f7f9fc;color:#51647d;width:36px;font-size:21px;line-height:1;padding:0}
.product-purchase-layout .product-quantity-stepper button:hover:not(:disabled){background:var(--light);color:var(--blue)}
.product-purchase-layout #qty{border:0;border-radius:0;border-left:1px solid var(--line);border-right:1px solid var(--line);width:62px;padding:7px 4px;text-align:center;font-size:16px;min-height:0;appearance:textfield;-moz-appearance:textfield}
.product-purchase-layout #qty::-webkit-inner-spin-button,.product-purchase-layout #qty::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}
.product-purchase-layout #qty:focus{box-shadow:inset 0 0 0 2px #78b1ff;outline:0}
.product-purchase-layout .product-quantity-stepper button:focus-visible{outline:2px solid var(--blue);outline-offset:-3px}
.product-purchase-layout .product-purchase-buttons{
 display:grid;
 grid-template-columns:repeat(2,minmax(0,1fr));
 width:min(100%,332px);
 gap:12px;
 margin:0 0 8px;
}
.product-purchase-layout .product-purchase-buttons>.btn{height:48px;font-size:16px;font-weight:600;min-width:0;padding:10px}
.product-purchase-layout .product-cart-button{border-color:var(--blue);color:var(--blue)}
.product-purchase-layout .product-actions+.notice{margin-top:16px}
.product-purchase-layout .image-thumbs{gap:12px;margin-top:14px}
.product-purchase-layout .image-thumbs button{width:80px;height:80px;padding:6px}
@media(max-width:1100px){
 .product-purchase-layout .product-detail{grid-template-columns:minmax(0,42%) minmax(0,1fr);gap:24px}
 .product-purchase-layout h1{font-size:22px}
}
@media(max-width:900px){
 .product-purchase-layout .product-detail{grid-template-columns:minmax(0,1fr);gap:26px}
 .product-purchase-layout .gallery-column{width:100%;max-width:var(--product-gallery-single-column-width);justify-self:center}
 .product-content .detail-tabs{padding-inline:max(var(--product-detail-inset),calc((100% - var(--product-gallery-single-column-width))/2))}
 #app:has(>.page>.product-purchase-panel):has(>.footer-note>[data-open-support])>.chat-launcher{display:none}
}
@media(max-width:600px){
 .page:has(>.product-purchase-panel){--product-detail-inset:16px}
 .product-purchase-layout h1{font-size:20px;line-height:1.5}
 .product-purchase-layout .price-box{margin:18px 0 22px;padding:16px;gap:12px;min-height:72px}
 .product-purchase-layout .price-box strong{font-size:30px}
 .product-purchase-layout .price-pending strong{font-size:20px}
 .product-purchase-layout .product-info-row,.product-purchase-layout .product-return-service,.product-purchase-layout .stock-query>.field{grid-template-columns:64px minmax(0,1fr);gap:10px;font-size:13px}
 .product-purchase-layout .stock-query>.field>label,.product-purchase-layout .stock-query select{font-size:13px}
 .product-purchase-layout .delivery-known{font-size:14px}
 .product-purchase-layout .product-address-add{margin-left:74px}
 .product-purchase-layout .product-purchase-buttons>.btn{font-size:15px}
 .product-purchase-layout .image-thumbs button{width:66px;height:66px}
}

/* Keep the receipt-instructions copy action beside the panel title. */
.panel-header:has(.receiving-copy){gap:10px;flex-wrap:wrap}
.receiving-copy{white-space:nowrap;flex-shrink:0}

/* Price management: one aligned card for tabs, search, prices and pagination. */
.pricing-directory #commerce-controls>.panel{margin-bottom:24px}
.pricing-list-panel{overflow:hidden}
.pricing-list-header{display:flex;align-items:center;gap:24px;padding:0 24px;border-bottom:1px solid var(--line)}
.pricing-list-header>.btn{flex-shrink:0;white-space:nowrap}
.pricing-list-header>.btn[hidden]{display:none}
.pricing-directory .pricing-tabs{display:flex;flex:1;flex-wrap:wrap;min-width:0;gap:0 28px;overflow:visible;border:0;margin:0}
.pricing-directory .pricing-tabs>button{flex:0 0 auto;white-space:nowrap;min-height:68px;padding:20px 0;border-radius:0;font-size:15px}
.pricing-directory .pricing-tabs>button.active:after{bottom:0}
.pricing-filter{display:flex;align-items:center;gap:12px;padding:20px 24px;border-bottom:1px solid var(--line)}
.pricing-query{position:relative;flex:0 1 520px;min-width:0}
.pricing-query>.icon{position:absolute;left:14px;top:11px;width:18px;height:18px;color:var(--muted);pointer-events:none}
.pricing-query>.control{width:100%;padding-left:42px;height:40px}
.pricing-filter>.btn{height:40px;min-width:76px;white-space:nowrap}
.pricing-directory #price-table .table-wrap{margin:0;border:0;border-radius:0}
.pricing-directory #price-table table{min-width:1160px;font-size:14px}
.pricing-directory #price-table th,.pricing-directory #price-table td{padding:18px 24px;vertical-align:middle}
.pricing-directory #price-table th{white-space:nowrap;font-size:14px}
.pricing-agreements table{table-layout:fixed;width:100%}
.pricing-agreements td{overflow-wrap:anywhere}
.pricing-agreements td .sub{font-size:13px}
.pricing-agreements th:nth-child(1){width:11%}
.pricing-agreements th:nth-child(2){width:15%}
.pricing-agreements th:nth-child(3){width:24%}
.pricing-agreements th:nth-child(4),.pricing-agreements th:nth-child(5),.pricing-agreements.with-cost th:nth-child(6){width:10%}
.pricing-agreements th:nth-last-child(2){width:9%}
.pricing-agreements th:last-child{width:11%}
.pricing-agreements.without-cost th:nth-child(3){width:34%}
.pricing-directory #price-table .pricing-amount{white-space:nowrap;overflow-wrap:normal;font-variant-numeric:tabular-nums;font-size:16px}
.pricing-directory #price-table .link-button,.pricing-directory #price-table .tag{white-space:nowrap}
.pricing-directory #price-table .directory-pager{margin:0;padding:16px 24px;border-top:1px solid var(--line)}
.pricing-loading{padding:24px;margin:0;color:var(--muted)}
@media(max-width:700px){
 .pricing-list-header{padding:0 16px;gap:12px;flex-wrap:wrap}
 .pricing-directory .pricing-tabs{flex-basis:100%;gap:0 24px}
 .pricing-directory .pricing-tabs>button{min-height:56px;padding:16px 0}
 .pricing-list-header>.btn{margin-bottom:14px}
 .pricing-filter{padding:16px;flex-wrap:wrap;gap:10px}
 .pricing-query{flex-basis:100%}
 .pricing-directory #price-table th,.pricing-directory #price-table td{padding:16px}
 .pricing-directory #price-table .directory-pager{padding:16px;flex-wrap:wrap}
}

/* Compact agreement editor: remote choices open only while selecting. */
.modal.agreement-modal{width:760px;max-width:calc(100vw - 32px)}
.agreement-modal .modal-body{padding:24px 28px;overflow-y:auto}
.agreement-modal .modal-head,.agreement-modal .modal-footer{padding:20px 28px}
.agreement-editor{font-size:14px}
.agreement-intro{color:var(--muted);margin:0 0 24px}
.agreement-modal-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:24px}
.agreement-editor .field{margin:0 0 24px;min-width:0}
.agreement-editor .field>label{font-size:14px;margin-bottom:8px;display:block}
.agreement-modal .agreement-editor input:not([type=hidden]),.agreement-editor select,.agreement-select-trigger{height:44px;font-size:14px}
.agreement-editor .help{font-size:12px;margin-top:8px}
.agreement-modal .modal-footer>.btn{height:44px;min-width:96px}
.agreement-money-input{height:44px;display:flex;align-items:center;border:1px solid #dce4ef;border-radius:6px;overflow:hidden;background:#fff}
.agreement-money-input>span{padding:0 12px;color:var(--muted);border-right:1px solid var(--line)}
.agreement-modal .agreement-money-input>#f-price{height:42px;min-height:0;border:0;border-radius:0;box-shadow:none;outline:0;flex:1;min-width:0;font-size:15px}
.agreement-money-input:focus-within{border-color:var(--blue);box-shadow:0 0 0 2px #c7dfff}

.agreement-static-value{padding:11px 14px;border:1px solid var(--line);border-radius:6px;background:#f8fafc;overflow-wrap:anywhere;min-height:44px}
.agreement-select{position:relative}
.agreement-select-trigger{width:100%;display:flex;align-items:center;gap:10px;padding:10px 14px;background:#fff;border:1px solid #dce4ef;border-radius:6px;color:var(--text);text-align:left}
.agreement-select-trigger>[data-select-value]{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.agreement-select-trigger>.icon:last-child{width:16px;height:16px;transform:rotate(90deg)}
.agreement-select-trigger:focus-visible,.agreement-select-trigger[aria-expanded=true]{border-color:var(--blue);outline:2px solid #c7dfff;outline-offset:1px}
.agreement-select-trigger:disabled{background:#f6f8fb;opacity:1;color:#8b99ad}
.agreement-select-menu{position:absolute;z-index:4;left:0;right:0;top:100%;margin-top:6px;background:#fff;border:1px solid var(--line);border-radius:8px;box-shadow:0 8px 24px #17355324;padding:12px}
.agreement-select-menu[hidden],.agreement-product-summary[hidden]{display:none}
.agreement-select-menu.opens-up{top:auto;bottom:44px;margin-top:0;margin-bottom:6px}
.agreement-select-results{max-height:210px;overflow-y:auto;margin-top:8px}
.agreement-select-results>[role=option]{display:block;width:100%;border:0;background:#fff;text-align:left;padding:10px;color:var(--text);border-radius:4px;overflow-wrap:anywhere}
.agreement-select-results>[role=option] small{display:block;font-size:12px;color:var(--muted);margin-top:2px}
.agreement-select-results>[role=option]:hover,.agreement-select-results>[role=option].is-active{background:var(--light);color:var(--blue)}
.agreement-select-results>[aria-selected=true]{color:var(--blue);background:#f4f8ff;font-weight:600}
.agreement-select-pager{display:flex;align-items:center;gap:6px;border-top:1px solid var(--line);margin-top:8px;padding-top:10px;font-size:12px;color:var(--muted)}
.agreement-select-pager>span{flex:1}
.agreement-select-pager>.btn{padding:5px 8px;font-size:11px}
.agreement-select-message{color:var(--muted);font-size:12px;overflow-wrap:anywhere}
.agreement-select-message:not(:empty){padding-top:10px}
.agreement-product-summary{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:-8px 0 24px;overflow-wrap:anywhere}
.agreement-product-summary>div{min-width:0}
.agreement-product-summary strong{font-size:15px;font-weight:600}
.agreement-product-summary .sub{font-size:13px;color:var(--muted);margin-top:4px}
.agreement-product-summary .link-button{flex-shrink:0;font-size:13px}
.agreement-reference{display:flex;background:#f0f6ff;border-radius:6px;padding:20px 24px;margin-bottom:24px}
.agreement-reference>div{flex:1;min-width:0;display:flex;flex-direction:column;gap:5px}
.agreement-reference>div+div{border-left:1px solid #d5e3f6;padding-left:28px}
.agreement-reference span{font-size:13px;color:#65758b}
.agreement-reference strong{font-size:20px;font-weight:600;white-space:nowrap;font-variant-numeric:tabular-nums}
.agreement-reference-status:empty{display:none}
.agreement-reference-status:not(:empty){font-size:12px;color:var(--orange);margin:-12px 0 20px}
.agreement-editor>.agreement-modal-grid:last-child .field{margin-bottom:0}
@media(max-width:600px){
 .agreement-modal .modal-body{padding:20px}
 .agreement-modal .modal-head,.agreement-modal .modal-footer{padding:18px 20px}
 .agreement-modal-grid{grid-template-columns:minmax(0,1fr);gap:0}
 .agreement-editor>.agreement-modal-grid:last-child .field{margin-bottom:20px}
 .agreement-editor>.agreement-modal-grid:last-child .field:last-child{margin-bottom:0}
 .agreement-reference{padding:16px;gap:16px}
 .agreement-reference>div+div{padding-left:16px}
 .agreement-reference strong{font-size:18px}
 .agreement-select-pager{flex-wrap:wrap}
 .agreement-select-pager>span{flex-basis:100%}
 .agreement-select-results{max-height:160px}
}

/* Official logistics H5 is mobile-sized even on a desktop order page. */
.logistics-map-slot{max-width:430px;width:100%;margin-top:12px}
.logistics-map-frame{display:block;width:100%;height:700px;border:1px solid #e1e8f1;border-radius:8px;background:#fff}
.logistics-map-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:8px}
.logistics-map-choice{display:flex;align-items:center;gap:8px;margin:8px 0;max-width:430px}
.logistics-map-choice select{min-width:0;flex:1}
.logistics-map-status{max-width:430px;line-height:1.6}
[data-logistics-text][hidden],[data-map-slot][hidden]{display:none!important}
@media(max-width:640px){.logistics-map-frame{height:620px}}

/* Order-scoped aftersales: readable rows without exposing procurement money. */
.afs-toolbar,.afs-case-head,.afs-meta,.afs-actions{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.afs-toolbar{justify-content:space-between;margin-bottom:16px}.afs-case{border:1px solid var(--border,#e1e8f0);border-radius:10px;padding:18px;margin:12px 0;background:#fff}.afs-case-head{justify-content:space-between}.afs-case-head strong{flex:1;min-width:180px}.afs-meta{color:var(--muted,#65768d);font-size:12px;margin:10px 0}.afs-actions{justify-content:flex-end;margin-bottom:12px}.afs-check{display:flex;align-items:center;gap:10px;margin:16px 0}.afs-workbench{margin-bottom:24px}.afs-case .afs-case{background:#f8fafc}
@media(max-width:640px){.afs-toolbar .buttons{width:100%}.afs-toolbar .buttons .btn{flex:1}.afs-case{padding:14px}.afs-meta{gap:6px;align-items:flex-start;flex-direction:column}.afs-actions .btn{width:100%}}

/* Order-scoped aftersales: direct product actions and an isolated embedded form. */
.afs-products table{table-layout:fixed;min-width:620px}.afs-products th:first-child{width:44%}.afs-products th:last-child{width:110px}.afs-products strong{display:block;font-size:13px;line-height:1.7;overflow-wrap:anywhere}.afs-products td{vertical-align:middle}.afs-products .tag{margin:3px}.afs-history-title{margin:24px 0 12px}.afs-embed-modal.modal.wide{width:min(1180px,96vw);max-width:1180px;height:min(880px,94dvh);display:flex;flex-direction:column}.afs-embed-modal .modal-head,.afs-embed-modal .modal-footer{flex:none}.afs-embed-modal .modal-body{flex:1;min-height:0;display:flex;flex-direction:column;padding:16px 24px;overflow:hidden}.afs-selected-product{font-size:13px;font-weight:600;margin-bottom:10px;overflow-wrap:anywhere}.afs-embed-toolbar{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:12px}.afs-embed-toolbar .btn{flex:none}.afs-embed-status{padding:10px 14px;background:var(--light);border-radius:6px;font-size:12px;margin-bottom:12px}.afs-embed-status[hidden]{display:none}.afs-embed-host{flex:1;min-height:0;border:1px solid var(--line);border-radius:8px;overflow:hidden;background:#fff}.afs-embed-host iframe{display:block;border:0;width:100%;height:100%;background:#fff}.afs-embed-modal .modal-footer .cancel{display:none}
@media(max-width:760px){.afs-embed-modal.modal.wide{width:100vw;max-width:none;height:100dvh;max-height:100dvh;border-radius:0}.overlay:has(.afs-embed-modal){padding:0}.afs-embed-modal .modal-body{padding:12px;gap:0}.afs-embed-modal .modal-head{padding:14px 16px}.afs-embed-modal .modal-footer{padding:10px 16px;padding-bottom:max(10px,env(safe-area-inset-bottom))}.afs-embed-toolbar{align-items:flex-start;gap:8px}.afs-embed-host{border-radius:5px}.afs-selected-product{max-height:42px;overflow:auto}.afs-products .table-wrap{margin-left:-4px;margin-right:-4px}}

@media(max-width:760px){.afs-products table{min-width:0;table-layout:auto}.afs-products thead{display:none}.afs-products table,.afs-products tbody{display:block;width:100%}.afs-products tr{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;padding:16px 0;border-bottom:1px solid var(--line)}.afs-products td{display:block;border:0;padding:0!important;min-width:0;white-space:normal}.afs-products td:first-child,.afs-products td:last-child{grid-column:1/-1}.afs-products td[data-label]::before{content:attr(data-label);display:block;font-size:11px;color:var(--muted);margin-bottom:3px}.afs-products td:last-child .btn{width:100%}.afs-products .table-wrap{overflow:visible;margin:0}.afs-products tr:last-child{border-bottom:0}}

/* Order-detail aftersales expands in place and keeps the same frame when collapsed. */
.afs-inline{border-top:1px solid var(--line);padding-top:18px;margin-top:16px}.afs-inline[hidden]{display:none}.afs-inline .afs-embed-host{height:780px;min-height:560px;max-height:none}.afs-item-picker{display:flex;align-items:center;gap:14px;font-size:12px;color:var(--muted);margin:12px 0}.afs-item-picker .control{flex:1;min-width:0;max-width:650px}.afs-inline .afs-selected-product{margin-bottom:10px}
@media(max-width:760px){.afs-inline .afs-embed-host{height:760px;min-height:540px}.afs-inline .afs-embed-toolbar{align-items:flex-start}.afs-item-picker{display:block}.afs-item-picker .control{display:block;width:100%;margin-top:6px}.afs-inline .afs-selected-product{max-height:none}}

/* Order aftersales: one entry, compact records, automatic background updates. */
.afs-order-toolbar{margin-bottom:4px;gap:16px}.afs-order-toolbar>div:first-child{min-width:0;flex:1}.afs-order-toolbar .buttons{flex-shrink:0;gap:10px}.afs-order-toolbar .afs-item-picker{margin:0;max-width:560px}
.afs-sync-note{margin:4px 0 20px;font-size:12px;color:var(--muted);line-height:1.7}.afs-sync-note.is-delayed{color:#986320}
.afs-records .table-wrap{border:1px solid var(--line);border-radius:8px;margin:0;overflow:auto}.afs-records table{min-width:740px;table-layout:fixed}.afs-records th:first-child{width:40%}.afs-records th:nth-child(2){width:12%}.afs-records th:nth-child(3){width:7%}.afs-records th:nth-child(4){width:18%}.afs-records th:last-child{width:23%}.afs-records td,.afs-records th{padding:15px 16px;vertical-align:top}.afs-records tbody tr:last-child td{border-bottom:0}
.afs-record-name{font-size:13px;line-height:1.7;font-weight:500;overflow-wrap:anywhere}.afs-record-note,.afs-record-identifiers span{display:block;font-size:12px;color:var(--muted);margin-top:6px;overflow-wrap:anywhere}.afs-record-identifiers{margin-top:7px;font-size:12px;color:var(--muted)}.afs-record-identifiers summary{cursor:pointer;width:fit-content}.afs-record-time{font-size:12px;color:var(--muted)}.afs-records-footnote,.afs-records-empty{font-size:12px;color:var(--muted);line-height:1.7;margin:12px 0 0}
@media(max-width:640px){.afs-order-toolbar{align-items:flex-start}.afs-order-toolbar .buttons{width:auto}.afs-order-toolbar .buttons .btn{flex:none}.afs-order-toolbar .afs-item-picker{width:100%}.afs-records td,.afs-records th{padding:12px}.afs-sync-note{margin-bottom:14px}}
@media(max-width:640px){
 .afs-records table{min-width:0;table-layout:auto}.afs-records thead{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip-path:inset(50%)}
 .afs-records tbody{display:block}.afs-records tr{display:grid;grid-template-columns:1fr auto auto;align-items:center;gap:8px 12px;padding:14px;border-bottom:1px solid var(--line)}.afs-records tbody tr:last-child{border-bottom:0}
 .afs-records td{display:block;padding:0;border:0;min-width:0}.afs-records td:first-child,.afs-records td:last-child{grid-column:1/-1}.afs-records td:nth-child(2),.afs-records td:nth-child(3){font-size:12px;color:var(--muted)}.afs-records td:nth-child(3)::after{content:' 件'}.afs-records td:last-child::before{content:'更新：'}.afs-records .tag{white-space:normal}
}

/* Return delivery remains separate from aftersale processing and refunds. */
.afs-records table{min-width:900px}.afs-records th:first-child{width:29%}.afs-records th:nth-child(2){width:10%}.afs-records th:nth-child(3){width:5%}.afs-records th:nth-child(4){width:18%}.afs-records th:nth-child(5){width:21%}.afs-records th:last-child{width:17%}
.afs-return-tracks{margin-top:10px;font-size:12px;line-height:1.6}.afs-return-tracks summary{cursor:pointer;color:var(--primary);width:fit-content}.afs-return-parcel{margin-top:12px;padding-top:10px;border-top:1px solid var(--line)}.afs-return-parcel strong{font-size:12px}.afs-return-parcel ol{margin:12px 0 0;padding-left:16px;border-left:2px solid var(--line);list-style:none}.afs-return-parcel li{padding:0 0 12px}.afs-return-parcel time{display:block;color:var(--muted);font-size:11px;overflow-wrap:anywhere}.afs-case-return{margin-top:12px;padding-top:12px;border-top:1px solid var(--line)}.afs-case-return>.muted{display:block;font-size:12px;margin-bottom:6px}
@media(max-width:640px){.afs-records table{min-width:0}.afs-records .afs-return-cell{grid-column:1/-1;border-top:1px solid var(--line);padding-top:10px}.afs-return-cell::before{content:'退回物流';display:block;font-size:12px;color:var(--muted);margin-bottom:6px}}
/* Own-site aftersales: compact order context, comfortable form and mobile layout. */
.native-afs-body{display:grid;gap:20px}.native-afs-intro,.native-afs-product-row,.native-afs-case-head,.native-afs-case-foot{display:flex;align-items:center;justify-content:space-between;gap:16px}.native-afs-intro p,.native-afs-product-row p{margin:6px 0 0}.native-afs-products{border:1px solid var(--line,#dce5ef);border-radius:10px;overflow:hidden}.native-afs-product-row{padding:18px}.native-afs-product-row+.native-afs-product-row{border-top:1px solid var(--line,#dce5ef)}.native-afs-product-row>div{min-width:0}.native-afs-product-row .btn{flex-shrink:0}.native-afs-case{border:1px solid var(--line,#dce5ef);border-radius:10px;padding:20px;margin-bottom:14px}.native-afs-case p{overflow-wrap:anywhere}.native-afs-case-foot{border-top:1px solid var(--line,#dce5ef);padding-top:14px;margin-top:16px;flex-wrap:wrap}.native-afs-refund{display:flex;align-items:center;gap:16px;flex-wrap:wrap;padding:12px 16px;background:#f4f8fc;border-radius:8px}.native-afs-refund strong{font-size:20px;color:#dc4b50}.native-afs-product,.native-afs-address{padding:16px;background:#f4f8fc;border:1px solid #e2ebf5;border-radius:8px;margin-bottom:20px}.native-afs-product span{display:block;margin-top:8px;color:#61758f;font-size:13px}.native-afs-fields{display:grid;grid-template-columns:1fr 1fr;gap:16px}.native-afs-subtitle{font-size:16px;margin:20px 0 12px}.native-afs-checks{display:flex;gap:24px;flex-wrap:wrap;margin:16px 0}.native-afs-checks label{display:flex;align-items:center;gap:8px}.native-afs-modal .field{min-width:0}.native-afs-modal input,.native-afs-modal select,.native-afs-modal textarea{width:100%}.native-afs-modal input[type=checkbox]{width:auto}.native-afs-modal .region-grid{gap:12px}.native-afs-modal input[type=file]{white-space:normal;max-width:100%}@media(max-width:640px){.native-afs-fields{grid-template-columns:1fr;gap:0}.native-afs-product-row{align-items:flex-start;flex-direction:column}.native-afs-intro{align-items:flex-start}.native-afs-case{padding:15px}.native-afs-case-foot .buttons{width:100%;flex-wrap:wrap}.native-afs-case-foot .btn{flex:1}.native-afs-modal .region-grid{grid-template-columns:1fr 1fr}}
.native-afs-modal .field[hidden]{display:none}

/* Consistent order aftersales controls; keep all other button sizes unchanged. */
.native-afs-body .native-afs-control{height:40px;min-height:40px;min-width:112px;padding:0 16px;font-size:14px;line-height:20px;flex:0 0 auto;max-width:100%;vertical-align:middle}
.native-afs-intro,.native-afs-product-row{gap:12px;flex-wrap:wrap}
.native-afs-intro>div{flex:1 1 220px;min-width:0}


/* Feature settings: scoped overview and configuration drawer. */
.feature-settings{max-width:1440px;margin:auto;transition:margin-right .18s ease}.feature-settings .page-header{align-items:flex-start;margin-bottom:22px}.feature-settings .page-actions .btn{display:flex;align-items:center;gap:8px}.fs-tabs{display:flex;gap:28px;border-bottom:1px solid #dce5ef;margin-bottom:22px;overflow-x:auto}.fs-tabs button{background:none;border:0;border-bottom:3px solid transparent;white-space:nowrap;color:#61758f;font-size:14px;font-weight:600;padding:13px 4px;cursor:pointer}.fs-tabs button.active{color:#0866f5;border-bottom-color:#0866f5}.fs-group{background:white;border:1px solid #e0e7f0;border-radius:10px;overflow:hidden;margin-bottom:18px}.fs-group h2{display:flex;align-items:center;gap:10px;font-size:16px;margin:0;padding:18px 20px;border-bottom:1px solid #e7edf4}.fs-group h2:before{content:'';height:17px;width:4px;border-radius:3px;background:#0866f5}.fs-row{display:flex;align-items:center;gap:20px;min-height:82px;padding:18px 20px;border-bottom:1px solid #edf1f6}.fs-row:last-child{border-bottom:0}.fs-row.is-selected{background:#f0f6ff;box-shadow:inset 3px 0 #0866f5}.fs-row-main{display:grid;grid-template-columns:165px 1fr;gap:18px;align-items:center;flex:1;min-width:0}.fs-row-main strong{font-size:14px}.fs-row-main p{font-size:13px;color:#61758f;margin:0;line-height:1.6}.fs-row-main span{display:block;color:#61758f;font-size:12px;margin-top:3px}.fs-status{display:inline-flex;align-items:center;gap:8px;white-space:nowrap;color:#61758f;font-size:13px}.fs-status i{width:8px;height:8px;border-radius:50%;background:#a2afbf}.fs-status.is-on{color:#168365}.fs-status.is-on i{background:#15966b}.fs-status.is-neutral{color:#61758f}.fs-row-actions{display:flex;align-items:center;justify-content:flex-end;gap:14px}.fs-row-actions .btn{min-width:70px;color:#0866f5;border-color:#bed4ff}.feature-drawer{position:fixed;inset:0 0 0 auto;margin:0;height:100dvh;max-height:none;width:440px;max-width:100vw;padding:0;border:0;border-left:1px solid #dce5ef;box-shadow:-8px 0 30px #20355214;background:white;color:#182c49}.feature-drawer::backdrop{background:transparent}.feature-drawer-form{height:100%;display:flex;flex-direction:column}.feature-drawer header{display:flex;align-items:flex-start;justify-content:space-between;gap:15px;padding:26px 24px 22px;border-bottom:1px solid #e7edf4}.feature-drawer h2{margin:0;font-size:21px}.feature-drawer header p{font-size:13px;color:#61758f;margin:8px 0 0}.fs-close{border:0;background:none;font-size:26px;line-height:1;color:#61758f;cursor:pointer;padding:3px}.feature-drawer .modal-body{padding:24px;overflow-y:auto;flex:1;min-height:0}.feature-drawer .modal-footer{padding:20px 24px;border-top:1px solid #e7edf4;margin:0;display:flex;gap:12px;justify-content:flex-end;flex-shrink:0}.feature-drawer .notice{font-size:13px;line-height:1.7;margin-bottom:20px}.feature-drawer .field{margin-bottom:20px;min-width:0}.feature-drawer .field input,.feature-drawer .field textarea,.feature-drawer .field select{width:100%}.feature-drawer textarea{min-height:110px}.feature-drawer .afs-check,.feature-drawer .checkbox{display:flex;align-items:center;gap:12px;margin:0 0 18px;padding:16px;border:1px solid #e3eaf2;border-radius:8px;font-size:14px;line-height:1.6}.feature-drawer input[type=checkbox]{appearance:none;position:relative;flex:0 0 42px;width:42px;height:24px;border:0;border-radius:15px;background:#a2afbf;cursor:pointer;margin:0}.feature-drawer input[type=checkbox]:before{content:'';position:absolute;width:18px;height:18px;top:3px;left:3px;background:white;border-radius:50%;transition:transform .15s}.feature-drawer input[type=checkbox]:checked{background:#0866f5}.feature-drawer input[type=checkbox]:checked:before{transform:translateX(18px)}.feature-drawer input:disabled{opacity:.55;cursor:not-allowed}.fs-history-link{display:flex;align-items:center;gap:8px;margin-top:24px}.feature-drawer .table-wrap{overflow-x:auto}.feature-drawer th,.feature-drawer td{padding:12px 8px;font-size:12px;vertical-align:top}.feature-drawer td small{display:block;color:#61758f;margin-top:6px}.fs-pagination{display:flex;flex-wrap:wrap;gap:10px;align-items:center;justify-content:flex-end;margin-top:20px;font-size:12px;color:#61758f}.fs-empty{margin:28px 0;color:#61758f;font-size:14px}.fs-help{margin:0 0 20px;color:#61758f;font-size:13px;line-height:1.7}.fs-readonly{display:flex;justify-content:space-between;gap:16px;padding:16px;border:1px solid #e3eaf2;border-radius:8px;margin-bottom:16px;font-size:14px}.feature-settings button:focus-visible,.feature-drawer button:focus-visible,.feature-drawer input:focus-visible{outline:2px solid #0866f5;outline-offset:3px}
@media(min-width:1200px){.feature-drawer-open .feature-settings{margin-right:440px}.feature-drawer-open .fs-row-main{display:block}.feature-drawer-open .fs-row-main strong{display:block;margin-bottom:4px}.feature-drawer-open .fs-row{gap:14px}.feature-drawer-open .fs-row-actions{flex-direction:column;gap:6px}}
@media(max-width:1000px){.fs-row-main{display:block}.fs-row-main strong{display:block;margin-bottom:4px}.fs-tabs{gap:20px}.fs-row{gap:14px}.fs-row-actions{flex-direction:column;gap:6px}}
@media(max-width:640px){.feature-drawer{width:100vw}.fs-row{flex-wrap:wrap;padding:16px;gap:12px}.fs-row-main{flex-basis:100%}.fs-status{flex:1}.fs-row-actions{flex-direction:row}.fs-group h2{padding:16px}.feature-settings .page-header{gap:12px;flex-wrap:wrap}.feature-drawer .modal-body{padding:20px}.feature-drawer header{padding:22px 20px}}

/* Purchase invoice configuration in feature settings. */
.feature-drawer .fs-invoice-section{font-size:16px;margin:26px 0 18px;padding-top:20px;border-top:1px solid #e3eaf2}.feature-drawer .fs-invoice-switches{display:grid;gap:2px}.feature-drawer .jd-invoice-settings .modal-footer{flex-wrap:wrap;gap:8px}.feature-drawer .jd-invoice-settings .modal-footer .btn{padding:9px 12px;white-space:nowrap}.feature-drawer .jd-invoice-settings .notice{line-height:1.6}.feature-drawer [data-trade-change],.feature-drawer [data-resume]{display:block;margin:16px 0;font-size:13px;line-height:1.7}.feature-drawer [hidden]{display:none!important}.feature-drawer [data-trade-change] input,.feature-drawer [data-resume] input{vertical-align:middle;margin-right:8px}
.fs-notification-rules{display:grid;gap:12px}.fs-notification-rule{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:16px;border:1px solid #e3eaf2;border-radius:8px}.fs-notification-rule strong{font-size:14px}.fs-notification-rule p,.fs-notification-rule small{font-size:12px;color:#61758f;line-height:1.6;margin:5px 0 0}.fs-notification-rule .btn{flex-shrink:0}.feature-drawer .sms-recipients{min-width:0;padding:12px;border:1px solid #e3eaf2;border-radius:8px;margin:18px 0}.feature-drawer .sms-recipients label{display:flex;gap:10px;padding:10px 0;align-items:flex-start}.feature-drawer .sms-recipients span{min-width:0;overflow-wrap:anywhere}.feature-drawer .sms-recipients small{display:block;font-size:12px;color:#61758f;margin-top:4px}.feature-drawer .sms-recipients input[type=checkbox]{appearance:auto;flex:0 0 16px;width:16px;height:16px;margin-top:3px;background:initial;border-radius:0}.feature-drawer .sms-recipients input[type=checkbox]:before{display:none}.feature-drawer .sms-template-confirm{display:flex;align-items:center;gap:12px;font-size:13px;line-height:1.7;margin:18px 0}.feature-drawer .sms-preview{padding:14px;background:#f4f8fc;border-radius:8px;font-size:13px;line-height:1.7;overflow-wrap:anywhere}.feature-drawer .fs-readonly strong{text-align:right;min-width:0;overflow-wrap:anywhere}
.provider-refund-note{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin:12px 0;padding:12px 14px;background:#eef6ff;border:1px solid #d5e6ff;border-radius:8px;font-size:13px}.provider-refund-note span:not(.tag),.provider-refund-note small{color:#61758f}.provider-refund-note small{flex-basis:100%}.procurement-refunds .tabs{margin:20px 0}.procurement-refunds [hidden]{display:none!important}.procurement-refunds td{vertical-align:top}.procurement-refunds td .sub{display:block;line-height:1.6;margin-top:5px;overflow-wrap:anywhere}.procurement-refunds td .mono{overflow-wrap:anywhere}.procurement-refunds .table-wrap{overflow-x:auto}
.procurement-refunds #refund-results table{min-width:980px}
.procurement-refunds #refund-results th{white-space:nowrap}
.refund-order-number{min-width:170px}
.refund-order-party{min-width:125px;max-width:220px;overflow-wrap:anywhere}
.refund-order-mall{min-width:100px;max-width:160px;overflow-wrap:anywhere}
.procurement-refunds .refund-case-list{display:grid;grid-auto-rows:40px;gap:6px;white-space:nowrap;line-height:20px}
.procurement-refunds .refund-case-list small{display:block;color:var(--muted);line-height:18px}
.procurement-refunds td.refund-pending-action-cell{width:1%;min-width:320px;vertical-align:middle}
.refund-pending-actions{display:flex;align-items:center;flex-wrap:wrap;gap:8px 10px}
.refund-pending-actions>.btn.small{min-width:104px;min-height:34px;justify-content:center;white-space:nowrap}
.refund-pending-actions>.link-button{display:inline-flex;align-items:center;min-height:34px;white-space:nowrap}
@media(max-width:1100px){.procurement-refunds td.refund-pending-action-cell{min-width:205px}}

.procurement-refunds .refund-verification-action-cell{width:1%}
.refund-verification-actions{
 display:grid;
 grid-template-columns:repeat(2,152px);
 align-items:start;
 gap:8px;
}
.refund-verification-outcomes{display:grid;gap:8px}
.refund-verification-actions :is(.btn.small,.tag,.refund-verification-empty){
 box-sizing:border-box;
 display:flex;
 flex-wrap:wrap;
 align-items:center;
 align-content:center;
 justify-content:center;
 gap:0 4px;
 width:100%;
 height:36px;
 min-height:36px;
 padding:2px 8px;
 border-radius:6px;
 font-size:12px;
 line-height:15px;
 text-align:center;
 white-space:nowrap;
}
.refund-verification-empty{color:var(--muted)}

/* Refund arrival evidence: an order-bound account, not a directory picker. */
.refund-verification-editor.modal.wide{width:min(780px,96vw);max-width:780px}
.refund-verification-editor .modal-head{padding:22px 28px}.refund-verification-editor .modal-head h2{font-size:20px}
.refund-verification-editor .modal-body{padding:24px 28px;background:#fff}
.rfv-summary{display:grid;grid-template-columns:180px minmax(0,1fr);gap:24px;padding:20px 22px;background:#f2f7ff;border:1px solid #dce9fb;border-radius:10px}
.rfv-summary span{display:block;font-size:12px;color:#61758f;margin-bottom:7px}.rfv-summary strong{font-size:28px;color:#0866f5;font-variant-numeric:tabular-nums;line-height:1.25}
.rfv-summary-order{border-left:1px solid #dce5ef;padding-left:24px;min-width:0}.rfv-summary-order b{display:block;font-size:13px;font-weight:600;overflow-wrap:anywhere}.rfv-summary-order small{display:block;color:#61758f;font-size:12px;margin-top:7px;overflow-wrap:anywhere}
.rfv-section{margin-top:24px}.rfv-section h3{font-size:14px;font-weight:600;margin:0 0 13px;color:#182c49}
.rfv-account{background:#f7f9fc;border:1px solid #e1e8f0;border-radius:8px;padding:16px 18px}.rfv-account-head{display:flex;justify-content:space-between;gap:12px;align-items:flex-start}.rfv-account-head strong{font-size:14px;line-height:1.6;overflow-wrap:anywhere}.rfv-account-head span{font-size:11px;white-space:nowrap;border-radius:4px;padding:4px 7px;color:#168365;background:#e9f6ef}
.rfv-account-bank{font-size:13px;line-height:1.7;margin-top:8px;color:#425979;overflow-wrap:anywhere}.rfv-account-number{font-size:15px;letter-spacing:1px;margin-top:4px;font-variant-numeric:tabular-nums}.rfv-account p{font-size:12px;color:#61758f;margin:11px 0 0;line-height:1.6}.rfv-account-missing{background:#fff8ec;color:#8a5c18;border:1px solid #f0d8a8;padding:14px 16px;border-radius:8px;font-size:13px;line-height:1.7}
.rfv-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));column-gap:20px;row-gap:16px}.rfv-fields .field{margin:0;min-width:0}.rfv-fields .field:has(textarea),.rfv-fields .field:has([name=bank_reference]){grid-column:1/-1}.rfv-fields .control{width:100%;min-width:0}.rfv-fields textarea{min-height:76px;resize:vertical}.refund-verification-editor .field>label{font-size:12px;color:#425979;margin-bottom:8px}.refund-verification-editor .help{font-size:11px;line-height:1.6;margin-top:6px}
.refund-verification-editor .pdf-selection{margin-bottom:0}.refund-verification-editor .pdf-selection-box{min-height:76px;padding:16px;background:#f9fbff}.refund-verification-editor .pdf-selection>label{display:none}
.rfv-history{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin-top:18px;font-size:12px;color:#61758f}.rfv-history-proof{padding:14px 16px;border:1px solid #e1e8f0;border-radius:8px;font-size:13px}.rfv-history-proof p{color:#61758f;line-height:1.7}
.rfv-submit-note{margin-top:22px;border-top:1px solid #e7edf4;padding-top:17px;display:flex;flex-wrap:wrap;gap:7px 20px;align-items:center;justify-content:space-between}.rfv-submit-note>span{font-size:13px;white-space:nowrap;color:#425979}.rfv-submit-note strong{font-size:19px;color:#182c49;margin-left:8px;font-variant-numeric:tabular-nums}.rfv-submit-note p{font-size:11px;color:#61758f;line-height:1.6;margin:0}
.refund-verification-editor .modal-footer{padding:18px 28px;background:#fbfcfe;gap:12px}.refund-verification-editor .modal-footer .btn{min-height:40px}
@media(max-width:600px){.refund-verification-editor.modal.wide{width:calc(100vw - 20px);max-height:94dvh}.refund-verification-editor .modal-head{padding:18px 16px}.refund-verification-editor .modal-head h2{font-size:17px}.refund-verification-editor .modal-body{padding:18px 16px}.rfv-summary{grid-template-columns:1fr;gap:14px;padding:16px}.rfv-summary-order{padding:13px 0 0;border-left:0;border-top:1px solid #dce5ef}.rfv-summary strong{font-size:26px}.rfv-section{margin-top:20px}.rfv-account{padding:14px}.rfv-account-head{flex-direction:column;gap:7px}.rfv-fields{grid-template-columns:minmax(0,1fr);row-gap:16px}.rfv-submit-note{display:block}.rfv-submit-note p{margin-top:8px}.refund-verification-editor .modal-footer{padding:14px 16px;display:grid;grid-template-columns:auto 1fr}.refund-verification-editor .modal-footer .btn{min-width:0;font-size:12px;padding:10px 12px}}
/* Shared financial dialogs: evidence review and customer payout registration. */
.rfd-summary{grid-template-columns:180px minmax(0,1fr);gap:20px;padding:18px 20px}
.rfd-order-line{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.rfd-order-line .tag{font-size:11px;white-space:nowrap}.rfd-summary .rfv-summary-order small{line-height:1.6}
.refund-review-editor .rfv-section,.customer-refund-editor .rfv-section{margin-top:20px}
.rfd-read-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px 20px;margin:0}.rfd-read-fields>div{min-width:0}.rfd-read-fields>div:nth-child(even){border-left:1px solid #e1e8f1;padding-left:20px}.rfd-read-fields dt{font-size:12px;color:#61758f;margin:0 0 7px;line-height:1.5}.rfd-read-fields dd{margin:0;color:#182c49;font-size:13px;line-height:1.6;overflow-wrap:anywhere;font-variant-numeric:tabular-nums}
.rfd-explanation{margin-top:15px}.rfd-explanation>span{font-size:12px;color:#61758f}.rfd-explanation p,.rfd-text{margin:6px 0 0;color:#425979;font-size:13px;line-height:1.7;white-space:pre-wrap;overflow-wrap:anywhere}
.rfd-proof{display:flex;align-items:center;gap:12px;padding:12px 14px;border:1px solid #dce5f0;border-radius:7px;background:#fafcff}.rfd-proof-icon{display:flex;align-items:center;justify-content:center;flex:0 0 30px;width:30px;height:34px;border-radius:5px;background:#fff0ee;color:#dc4545}.rfd-proof-icon svg{width:21px;height:21px}.rfd-proof strong{font-size:13px;font-weight:500;overflow-wrap:anywhere;min-width:0;flex:1}.rfd-proof>.link-button{flex:none;font-size:12px;border:1px solid #dce5f0;border-radius:5px;padding:7px 10px;background:#fff;white-space:nowrap}
.rfd-batches{border:1px solid #dce5f0;border-radius:7px;overflow:hidden}.rfd-batches .table-wrap{margin:0;overflow-x:auto}.rfd-batches table{min-width:600px;width:100%;table-layout:fixed}.rfd-batches th,.rfd-batches td{font-size:12px;padding:11px 12px;line-height:1.6;vertical-align:top}.rfd-batches th:first-child{width:43%}.rfd-batches td{overflow-wrap:anywhere;white-space:normal}.rfd-batches td .sub{font-size:11px;color:#61758f;margin-top:4px}.rfd-batches th{background:#edf4fd}.rfd-batches tr:last-child td{border-bottom:0}
.rfd-review-result fieldset{border:0;padding:0;margin:0 0 16px;min-width:0}.rfd-review-result legend{font-size:14px;font-weight:600;color:#182c49;padding:0;margin:0 0 12px}.rfd-decisions{display:flex;gap:24px;flex-wrap:wrap}.rfd-decisions label{display:flex;align-items:center;gap:8px;font-size:13px;color:#182c49;cursor:pointer;line-height:1.7}.rfd-decisions input[type=radio]{width:17px;height:17px;flex:0 0 17px;margin:0;accent-color:#0866f5}.rfd-decisions input:focus-visible{outline:2px solid #0866f5;outline-offset:3px}
.rfd-opinion{position:relative}.rfd-opinion .field{margin-bottom:0}.rfd-opinion textarea{width:100%;min-height:92px;padding-bottom:25px;resize:vertical}.rfd-character-count{position:absolute;right:12px;bottom:10px;font-size:11px;color:#8795a7;pointer-events:none;font-variant-numeric:tabular-nums}.rfd-note{font-size:11px;color:#61758f;line-height:1.7;margin:10px 0 0}.rfd-pending-note{padding:12px 14px;background:#f6f8fb;border-radius:6px}.rfd-readonly .modal-footer{grid-template-columns:auto}.rfd-readonly .modal-footer .cancel[hidden]{display:none}
.rfd-outgoing{padding:0 0 18px;margin:0 0 18px;border-bottom:1px solid #e7edf4}.rfd-outgoing:last-child{padding-bottom:0;margin-bottom:0;border-bottom:0}.rfd-outgoing .rfd-proof{margin-top:12px}
.rfd-recipient{background:#f7f9fc;border:1px solid #e1e8f0;border-radius:8px;padding:16px 18px}.rfd-transfer-warning{display:flex;align-items:flex-start;gap:9px;background:#fff8eb;border:1px solid #f3dfb8;border-radius:7px;padding:11px 13px;margin-top:16px;color:#a45a17;font-size:12px;line-height:1.7}.rfd-transfer-warning svg{flex:0 0 17px;width:17px;height:17px;margin-top:2px}.rfd-refund-fields{display:grid;gap:16px}.rfd-refund-fields .field{margin:0;min-width:0}.rfd-refund-fields input{width:100%;min-width:0}.customer-refund-editor .pdf-selection-box{min-height:106px;padding:24px;text-align:center;border-color:#c7d7ed;border-style:dashed}.customer-refund-editor .pdf-selected{text-align:left}.rfd-total{display:grid;grid-template-columns:1fr 1fr;align-items:center;gap:20px;padding:16px 20px;margin-top:20px;border:1px solid #dce9fb;border-radius:8px;background:#f2f7ff}.rfd-total span{display:block;font-size:12px;color:#61758f;margin-bottom:6px}.rfd-total strong{font-size:25px;color:#0866f5;line-height:1.2;font-variant-numeric:tabular-nums}.rfd-total p{font-size:12px;line-height:1.6;margin:0;padding-left:20px;border-left:1px solid #dce5ef;color:#61758f}
@media(max-width:600px){.rfd-summary{grid-template-columns:1fr;gap:13px;padding:16px}.rfd-read-fields{grid-template-columns:1fr;gap:13px}.rfd-read-fields>div:nth-child(even){border:0;padding:0}.rfd-read-fields dd{font-size:13px}.rfd-batches th,.rfd-batches td{padding:10px}.rfd-proof{padding:11px;gap:9px}.rfd-proof strong{font-size:12px}.rfd-proof>.link-button{padding:7px;font-size:11px}.rfd-decisions{gap:12px;flex-direction:column}.rfd-opinion textarea{min-height:100px}.rfd-recipient{padding:14px}.rfd-transfer-warning{padding:11px;font-size:12px}.rfd-total{grid-template-columns:1fr;gap:10px;padding:15px}.rfd-total p{padding:0;border:0}.customer-refund-editor .pdf-selection-box{padding:20px 12px}.refund-review-editor .modal-footer .btn,.customer-refund-editor .modal-footer .btn{font-size:12px}}
.support-workbench-buttons{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.support-reminder-settings{margin:-8px 0 18px;padding:12px 16px;background:#fff;border:1px solid #dfE7f2;border-radius:10px}
.support-reminder-settings .muted{font-size:12px;margin-left:auto}
.chat-workspace-alert:not([hidden]){border-left:4px solid #e49b20}

/* Staff workspace layout: one viewport, one header, independently scrolling rails. */
.chat-workspace-page{--workbench-line:#e3e8f0;--workbench-muted:#73839b;--workbench-blue:#0b63f6;display:flex;flex-direction:column;height:100dvh;min-height:0;max-width:none!important;padding:0!important;overflow:hidden;background:#fff}
.chat-workspace-page .chat-workspace-title{position:relative;z-index:10;flex:none;gap:20px;margin:0;padding:19px 24px;border-bottom:1px solid var(--workbench-line);background:#fff;min-width:0}
.chat-workspace-brand{display:flex;align-items:center;gap:14px;min-width:0}
.chat-workspace-brand>.icon{width:34px;height:34px;flex:none;color:#1263c3}
.chat-workspace-page .chat-workspace-title h1{margin:0 0 4px;font-size:24px;line-height:1.25;font-weight:650;letter-spacing:.2px}
.chat-workspace-page .chat-workspace-title p{font-size:12px;line-height:1.6;color:var(--workbench-muted);margin:0}
.chat-workspace-page .chat-presence{gap:12px;justify-content:flex-end;flex-wrap:nowrap;min-width:0}
.chat-workspace-page .chat-presence [data-presence-label]{display:inline-flex;align-items:center;gap:7px;font-size:12px;white-space:nowrap;color:#617086}
.chat-workspace-page [data-presence-label]:before{content:"";width:8px;height:8px;border-radius:50%;background:#a2adbc;flex:none}
.chat-workspace-page .is-online [data-presence-label]{color:#263c58}
.chat-workspace-page .is-online [data-presence-label]:before{background:#24a052}
.chat-workspace-page .chat-presence>.btn{min-height:34px;padding:6px 16px;border-radius:6px;font-size:13px;white-space:nowrap}
.chat-management-link{padding-left:17px;border-left:1px solid var(--workbench-line);color:var(--workbench-blue);font-size:12px;white-space:nowrap;text-decoration:none}
.chat-management-link:hover{text-decoration:underline}
.chat-workspace-page .support-reminder-settings{position:relative;gap:12px;margin:0;padding:0;background:none;border:0;border-radius:0;flex-wrap:nowrap}
.chat-reminder-menu{position:relative}
.chat-reminder-menu>summary{display:flex;align-items:center;gap:7px;min-height:34px;padding:6px 11px;list-style:none;border-radius:6px;font-size:12px;white-space:nowrap;cursor:pointer;color:#263c58}
.chat-reminder-menu>summary::-webkit-details-marker{display:none}
.chat-reminder-menu>summary .icon{width:16px;height:16px}
.chat-reminder-menu>summary .icon:last-child{width:13px;height:13px;transition:transform .15s}
.chat-reminder-menu[open]>summary{background:#f5f8ff;border-color:#c2d4f3}
.chat-reminder-menu[open]>summary .icon:last-child{transform:rotate(180deg)}
.chat-reminder-options{position:absolute;right:0;top:calc(100% + 9px);z-index:30;width:216px;max-width:calc(100vw - 24px);display:grid;gap:6px;padding:10px;border:1px solid var(--workbench-line);border-radius:8px;background:#fff;box-shadow:0 10px 28px #1631511c}
.chat-reminder-options .btn{width:100%;justify-content:flex-start;text-align:left;border:0;background:#fff;font-size:12px;min-height:36px;padding:8px 10px;border-radius:5px;color:#354a67;white-space:normal}
.chat-reminder-options .btn:hover{background:#f0f5ff;color:#135dc8}
.chat-reminder-options [data-notification-detail]{margin:4px 5px 0;border-top:1px solid var(--workbench-line);padding-top:9px;font-size:11px;color:#8390a4;line-height:1.6}
.chat-workspace-page [data-notification-connection]{display:inline-flex;align-items:center;gap:6px;white-space:nowrap;margin:0;font-size:10px;color:#8793a4}
.chat-workspace-page [data-notification-connection]:before{content:"";width:6px;height:6px;flex:none;border-radius:50%;background:#c59b49}
.chat-workspace-page .is-connected [data-notification-connection]:before{background:#24a052}
.chat-workspace-page .chat-workspace-alert{flex:none;max-height:30dvh;overflow:auto;border-radius:0;border-width:0 0 1px 3px;padding:8px 24px;margin:0;font-size:12px}
.chat-workspace-page .chat-workspace{flex:1;min-height:0!important;height:auto!important;width:100%;grid-template-columns:clamp(300px,24.2vw,384px) minmax(0,1fr);grid-template-rows:minmax(0,1fr);border:0;border-radius:0;box-shadow:none}
.chat-workspace-page .chat-workspace.has-selected:not(.customer-collapsed){grid-template-columns:clamp(300px,24.2vw,384px) minmax(0,1fr) clamp(270px,22.7vw,360px)}
.chat-workspace-page .chat-workspace>.chat-customer{display:none}
.chat-workspace-page .chat-workspace.has-selected:not(.customer-collapsed)>.chat-customer{display:block}
.chat-workspace-page .chat-sessions{border-color:var(--workbench-line);background:#fff;overflow:hidden}
.chat-workspace-page .chat-session-top{padding:20px 18px 18px}
.chat-workspace-page .chat-session-top h2{font-size:19px;line-height:1.4;margin:0 0 16px;color:#1c304e}
.chat-workspace-page .chat-session-top form{background:#fafbfe;border-color:#dce3ee;border-radius:6px}
.chat-workspace-page .chat-session-top input{font-size:13px;min-height:37px;padding:8px 10px}
.chat-workspace-page .chat-session-top form button{display:flex;align-items:center;justify-content:center;padding:8px;color:#8390a3}
.chat-workspace-page .chat-session-top form button .icon{width:17px;height:17px}
.chat-workspace-page .chat-tabs{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:6px;margin-top:15px;border:0}
.chat-workspace-page .chat-tabs button{grid-column:span 2;border:1px solid #e0e5ef;background:#f7f9fc;border-radius:5px;font-size:12px;font-weight:500;padding:7px 3px;line-height:1.4;color:#55657d;min-width:0}
.chat-workspace-page .chat-tabs button:nth-child(n+4){grid-column:span 3}
.chat-workspace-page .chat-tabs button.active{background:var(--workbench-blue);border-color:var(--workbench-blue);color:#fff}
.chat-workspace-page .chat-tabs button:not(.active):hover{background:#eef4ff;border-color:#c2d3ee}
.chat-workspace-page .chat-session{padding:17px 16px;gap:11px;border-color:var(--workbench-line)}
.chat-workspace-page .chat-session.selected{background:#eaf2ff;box-shadow:inset 3px 0 var(--workbench-blue)}
.chat-workspace-page .chat-session-avatar{border-radius:8px;width:34px;height:36px;color:#2e66d5;background:#e6eeff}
.chat-workspace-page .chat-session-line strong{min-width:0;flex:1;font-size:14px;line-height:1.5}
.chat-workspace-page .chat-session-line time{font-size:11px;color:#7c889c}
.chat-workspace-page .chat-session-account{font-size:11px;margin:4px 0 5px}
.chat-workspace-page .chat-session-preview{font-size:13px;line-height:1.6}
.chat-workspace-page .chat-session-footer{font-size:10px;margin-top:8px}
.chat-workspace-page .chat-list-pages{justify-content:center;gap:12px;min-height:52px;flex:none;border-color:var(--workbench-line);font-size:11px}
.chat-workspace-page .chat-list-pages button{width:28px;height:28px;display:grid;place-items:center;padding:0;border:1px solid #dce4f0;border-radius:5px}
.chat-workspace-page .chat-list-pages .icon{width:15px;height:15px}
.chat-workspace-page .chat-list-pages button:first-child .icon{transform:rotate(180deg)}
.chat-workspace-page .chat-list-empty{padding:38px 16px;font-size:12px;color:#8c9bb0}
.chat-workspace-page .chat-main{background:#f6f8fc;overflow:hidden}
.chat-workspace-page .chat-no-selection{flex:1;min-height:0;background:#f6f8fc;padding:24px}
.chat-workspace-page .chat-no-selection>div{display:grid;place-items:center;margin-bottom:8px}
.chat-workspace-page .chat-no-selection .icon{width:46px;height:46px;stroke-width:1.1;color:#bacde6}
.chat-workspace-page .chat-no-selection h2{font-size:17px;font-weight:550;margin:14px 0 8px}
.chat-workspace-page .chat-no-selection p{margin:0;line-height:1.7;font-size:12px}
.chat-workspace-page .chat-main .chat-heading{flex:none;min-height:74px;padding:16px 23px;border-bottom:1px solid var(--workbench-line);background:#fff;gap:12px}
.chat-workspace-page .chat-main .chat-heading>.chat-avatar{display:none}
.chat-workspace-page .chat-main .chat-heading>div{min-width:0}
.chat-workspace-page .chat-main .chat-heading h2{font-size:18px;line-height:1.5;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.chat-workspace-page .chat-main .chat-heading p{font-size:11px;line-height:1.6;color:var(--workbench-muted)}
.chat-workspace-page .chat-info-toggle,.chat-workspace-page .chat-info-close{display:inline-flex;align-items:center;justify-content:center;flex:none;width:32px;height:32px;min-height:0;border:1px solid #d6dfec;border-radius:6px;background:#fff;color:#49607d;cursor:pointer;padding:5px}
.chat-workspace-page .chat-info-toggle .icon,.chat-workspace-page .chat-info-close .icon{width:17px;height:17px}
.chat-workspace-page .chat-main .chat-thread{flex:1;min-height:0;padding:22px 24px;background:#f6f8fc;overscroll-behavior:contain}
.chat-workspace-page .chat-main .chat-message{position:relative;margin-bottom:24px;min-width:0}
.chat-workspace-page .chat-main .incoming{padding-left:41px}
.chat-message-avatar{position:absolute;left:0;top:24px;display:grid;place-items:center;width:30px;height:32px;background:#e6edff;color:#3f6fdd;font-size:14px;border-radius:7px}
.chat-workspace-page .chat-main .chat-message-caption{font-size:12px;color:#76849a;margin-bottom:7px;line-height:1.6}
.chat-workspace-page .chat-main .chat-bubble{font-size:15px;line-height:1.8;padding:10px 14px;border-radius:9px;box-shadow:none;max-width:min(88%,680px);overflow-wrap:anywhere}
.chat-workspace-page .chat-main .incoming .chat-bubble{border-color:#e0e6ef;background:#fff;color:#25364c}
.chat-workspace-page .chat-main .outgoing .chat-bubble{background:var(--workbench-blue);border-color:var(--workbench-blue);color:#fff}
.chat-workspace-page .chat-main .chat-compose{flex:none;max-height:48%;overflow:auto;overscroll-behavior:contain;padding:12px 20px 14px;border-color:var(--workbench-line);background:#fff}
.chat-workspace-page .chat-main .chat-compose textarea{height:74px;min-height:56px;max-height:140px;line-height:1.7;font-size:13px;padding:10px 12px;border:1px solid #d9e1ed;border-radius:6px;resize:vertical;margin-top:8px}
.chat-workspace-page .chat-main .chat-compose textarea:focus{border-color:#95b8ef;box-shadow:0 0 0 2px #eaf2ff;outline:0}
.chat-workspace-page .chat-compose .support-upload{margin:0;gap:10px}
.chat-workspace-page .chat-compose .support-upload>.btn{display:inline-flex;align-items:center;gap:6px;min-height:29px;border:1px solid #dce3ee;border-radius:5px;background:#fff;padding:4px 9px;color:#455670;font-size:11px}
.chat-workspace-page .chat-compose .support-upload .icon{width:15px;height:15px}
.chat-workspace-page .chat-send-row{margin-top:10px;min-height:32px}
.chat-workspace-page .chat-send-row>span{font-size:10px;color:#8190a6}
.chat-workspace-page .chat-send-row .btn{min-height:33px;min-width:85px;border-radius:6px;font-size:12px;padding:6px 18px}
.chat-workspace-page .chat-customer{border-color:var(--workbench-line);overscroll-behavior:contain}
.chat-workspace-page .chat-customer-title{display:flex;align-items:center;justify-content:space-between;min-height:74px;padding:16px 20px;border-color:var(--workbench-line);font-size:19px;color:#1c304e}
.chat-workspace-page .chat-info-close{width:26px;height:26px;border:0;color:#8997aa}
.chat-workspace-page .chat-customer-profile{display:flex;align-items:center;gap:12px;padding:24px 20px;text-align:left;min-width:0}
.chat-workspace-page .chat-customer-profile>.chat-avatar{flex:none;width:46px;height:48px;margin:0;border-radius:9px;background:#eaf1ff;color:#2871ed}
.chat-workspace-page .chat-customer-profile .chat-avatar .icon{width:28px;height:28px}
.chat-workspace-page .chat-customer-profile>div:last-child{min-width:0}
.chat-workspace-page .chat-customer-profile h3{font-size:16px;margin:0 0 5px;line-height:1.7}
.chat-workspace-page .chat-customer-profile p{font-size:11px;color:#7787a0;line-height:1.7}
.chat-workspace-page .chat-customer dl{grid-template-columns:76px minmax(0,1fr);gap:0 7px;padding:0;margin:0 20px;border:0;font-size:13px;line-height:1.7}
.chat-workspace-page .chat-customer dt,.chat-workspace-page .chat-customer dd{padding:12px 0;border-bottom:1px solid var(--workbench-line)}
.chat-workspace-page .chat-customer dt{color:#75839b}
.chat-workspace-page .chat-customer dd{text-align:right;color:#344963}
.chat-workspace-page .chat-customer dd small{font-size:10px}
.chat-workspace-page .chat-manage{padding:22px 20px;border-bottom:1px solid var(--workbench-line);gap:12px}
.chat-workspace-page .chat-manage h3{font-size:14px;color:#243d5d}
.chat-workspace-page .chat-manage .btn{border-radius:5px;font-size:12px;min-height:34px}
.chat-workspace-page .chat-business-note{margin:18px 20px;font-size:10px;line-height:1.9;color:#8b97aa}
.chat-workspace-page :is(button,summary,a):focus-visible{outline:2px solid #2879ed;outline-offset:3px}
@media(min-width:1600px){.chat-workspace-page .chat-workspace-title{padding:20px 28px}.chat-workspace-page .chat-session-top{padding:23px 20px 18px}.chat-workspace-page .chat-session{padding:19px 20px}}
@media(max-width:1190px){.chat-workspace-page .chat-workspace-title{padding:15px 18px;gap:12px;flex-wrap:wrap}.chat-workspace-brand{flex:1;min-width:260px}.chat-workspace-page .chat-presence{gap:10px}.chat-workspace-page .chat-workspace,.chat-workspace-page .chat-workspace.has-selected:not(.customer-collapsed){grid-template-columns:280px minmax(0,1fr)}.chat-workspace-page .chat-workspace.has-selected:not(.customer-collapsed)>.chat-customer{display:none}.chat-workspace-page .chat-workspace.has-selected.show-customer>.chat-customer{display:block;position:absolute;right:0;top:0;bottom:0;width:280px;max-width:calc(100% - 30px);z-index:5;box-shadow:-8px 0 30px #19375921}.chat-workspace-page [data-notification-connection]{font-size:10px}.chat-management-link{padding-left:10px}}
@media(max-width:700px){.chat-workspace-page .chat-workspace-title{padding:12px 14px;gap:11px}.chat-workspace-brand{min-width:0;width:100%;flex:none;gap:10px}.chat-workspace-brand>.icon{width:29px;height:29px}.chat-workspace-page .chat-workspace-title h1{font-size:19px}.chat-workspace-page .chat-workspace-title p{font-size:10px}.chat-workspace-page .chat-presence{width:100%;justify-content:flex-start;flex-wrap:wrap;gap:8px}.chat-workspace-page .chat-presence [data-presence-label]{font-size:11px}.chat-workspace-page .chat-presence>.btn{font-size:11px;min-height:30px;padding:4px 10px}.chat-workspace-page .support-reminder-settings{gap:8px}.chat-reminder-menu>summary{font-size:11px;min-height:30px;padding:4px 8px}.chat-workspace-page [data-notification-connection]{display:none}.chat-management-link{margin-left:auto;padding-left:9px;font-size:11px}.chat-workspace-page .chat-workspace{display:block;position:relative;min-height:0!important;height:auto!important}.chat-workspace-page .chat-session-top{padding:17px 16px 15px}.chat-workspace-page .chat-tabs button{font-size:12px;padding:8px 4px}.chat-workspace-page .chat-sessions{height:100%}.chat-workspace-page .chat-main{display:none;height:100%}.chat-workspace-page .has-selected .chat-main{display:flex}.chat-workspace-page .has-selected .chat-sessions{display:none}.chat-workspace-page .chat-main .chat-heading{padding:12px 14px;min-height:64px;gap:8px}.chat-workspace-page .chat-main .chat-heading h2{font-size:14px}.chat-workspace-page .chat-main .chat-heading p{font-size:10px}.chat-workspace-page .chat-mobile-back{font-size:11px;white-space:nowrap}.chat-workspace-page .chat-main .chat-thread{padding:17px 14px}.chat-workspace-page .chat-main .chat-message{margin-bottom:20px}.chat-workspace-page .chat-main .chat-bubble{font-size:13px;max-width:94%;padding:9px 12px}.chat-workspace-page .chat-main .chat-message-caption{font-size:10px;flex-wrap:wrap}.chat-workspace-page .chat-main .chat-compose{padding:10px 12px;max-height:48%}.chat-workspace-page .chat-main .chat-compose textarea{height:66px;min-height:45px;font-size:13px}.chat-workspace-page .chat-compose .support-upload>span{display:none}.chat-workspace-page .chat-send-row>span{font-size:9px}.chat-workspace-page .chat-workspace-alert{padding:7px 14px;font-size:11px}.chat-reminder-options{right:auto;left:0}.chat-workspace-page .chat-workspace.has-selected.show-customer>.chat-customer{width:285px}.chat-workspace-page .chat-customer-title{min-height:64px}}
@media(max-height:650px) and (min-width:701px){.chat-workspace-page .chat-workspace-title{padding-top:11px;padding-bottom:11px}.chat-workspace-page .chat-main .chat-heading,.chat-workspace-page .chat-customer-title{min-height:60px;padding-top:10px;padding-bottom:10px}.chat-workspace-page .chat-main .chat-compose{padding-top:8px;padding-bottom:9px;max-height:50%}.chat-workspace-page .chat-main .chat-compose textarea{height:56px;min-height:42px}.chat-workspace-page .chat-customer-profile{padding-top:16px;padding-bottom:16px}}
@media(prefers-reduced-motion:reduce){.chat-reminder-menu>summary .icon:last-child{transition:none}}
@media(max-width:700px){.chat-workspace-page [data-notification-connection]{display:inline-flex;width:7px;height:7px;font-size:0;gap:0}.chat-workspace-page .chat-main .incoming{padding-left:0}.chat-workspace-page .chat-message-avatar{display:none}}
.chat-workspace-page:has([data-filter="mine"].active) .chat-session:not(.chat-overdue) .chat-session-footer{display:none}
@media(min-width:701px){.chat-workspace-page .chat-session-line strong{font-size:15px}.chat-workspace-page .chat-main .chat-bubble{font-size:16px}.chat-workspace-page .chat-main .outgoing .chat-bubble{font-weight:400}.chat-workspace-page .chat-main .chat-heading h2{font-size:19px}.chat-workspace-page .chat-customer-title,.chat-workspace-page .chat-session-top h2{font-size:20px}}

/* Actual receipt editor: scoped to this dialog, with server-confirmed allocation. */
.modal.receipt-allocation-dialog{width:min(960px,100%);max-height:calc(100dvh - 40px);color:#172d4d}
.receipt-allocation-dialog [hidden]{display:none!important}
.receipt-allocation-dialog .modal-head{padding:23px 27px;align-items:flex-start}
.receipt-heading h2{font-size:28px;line-height:1.35;margin:0;font-weight:700}
.receipt-heading p{font-size:14px;color:#64758c;margin:8px 0 0;line-height:1.5}
.receipt-allocation-dialog .modal-body{padding:20px 27px 22px}
.receipt-allocation-dialog .receipt-form-fields,.receipt-allocation-dialog .receipt-source-panel{border:0;margin:0;padding:0;min-width:0}
.receipt-allocation-dialog .receipt-sourcebar{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:22px;flex-wrap:wrap}
.receipt-source-tabs{display:flex;border:1px solid #ccd8e8;border-radius:6px;overflow:hidden;flex-shrink:0}
.receipt-source-tabs button{border:0;background:#f8faff;padding:10px 20px;min-height:40px;color:#344864;font-size:16px;cursor:pointer}
.receipt-source-tabs button[aria-pressed=true]{background:#0964ed;color:#fff}
.receipt-source-tabs button:focus-visible{outline:2px solid #172d4d;outline-offset:-4px}
.receipt-order-due{font-size:13px;color:#64758c;display:flex;align-items:center;gap:12px}
.receipt-order-due strong{color:#172d4d;font-size:24px;font-variant-numeric:tabular-nums}
.receipt-field-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px 24px;margin-bottom:18px}
.receipt-allocation-dialog .field{margin:0;min-width:0}
.receipt-allocation-dialog .field>label{font-size:16px;color:#263c5a;font-weight:600;margin-bottom:8px}
.receipt-allocation-dialog input:not([type=file]),.receipt-allocation-dialog textarea{width:100%;min-width:0;border-color:#ccd8e8;border-radius:5px;font-size:16px}
.receipt-allocation-dialog input:not([type=file]){height:42px;padding:9px 12px}
.receipt-allocation-dialog .help{font-size:12px;line-height:1.5;margin-top:6px;color:#64758c}
.receipt-required{color:#db4248;margin-left:2px}
.receipt-allocation-dialog .pdf-selection-box{padding:12px;border-style:solid;background:#f8faff;min-height:64px;display:flex;align-items:center}
.receipt-allocation-dialog .pdf-selected{width:100%}
.receipt-allocation-dialog .pdf-file-icon{color:#db4248;background:transparent;width:38px}
.receipt-allocation-dialog .pdf-file-icon svg{width:30px;height:34px}
.receipt-allocation-dialog .pdf-file-info strong{font-size:14px;color:#263c5a}
.receipt-allocation-dialog .pdf-file-actions .link-button{font-size:13px}
.receipt-allocation-dialog .pdf-file-actions [data-pdf-action=replace]{padding:7px 12px;border:1px solid #cbd7e6;border-radius:5px;background:#fff;color:#263c5a}
.receipt-allocation-dialog .pdf-file-actions [data-pdf-action=remove]{display:none}
.receipt-summary{background:#eaf3ff;border-radius:8px;padding:18px 20px;margin:20px 0}
.receipt-summary-grid{display:grid;grid-template-columns:1.4fr 1fr 1.2fr;align-items:start;gap:18px}
.receipt-summary-grid>div+div{border-left:1px solid #bed4f5;padding-left:20px;min-height:72px}
.receipt-summary-label{color:#172d4d;font-size:16px;font-weight:600;line-height:1.5}
.receipt-summary-label>span{display:inline-block;border:1px solid #a8c5f6;border-radius:4px;font-size:11px;font-weight:500;color:#1462cb;padding:0 5px;margin-left:5px;white-space:nowrap}
.receipt-summary output{display:block;font-size:32px;font-weight:700;line-height:1.35;margin-top:6px;color:#172d4d;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.receipt-summary-primary output{font-size:36px;color:#0964ed}
.receipt-summary p{margin:4px 0 0;color:#64758c;font-size:12px;line-height:1.5}
.receipt-summary .receipt-formula{margin-top:14px}
.receipt-summary .receipt-calc-status{margin-top:8px;color:#536d8e}
.receipt-allocation-dialog textarea{min-height:64px;resize:vertical;padding:10px 12px}
.receipt-allocation-dialog .modal-footer{padding:16px 27px;gap:10px;background:#fff}
.receipt-review-note{margin-right:auto;color:#64758c;font-size:12px;line-height:1.5}
.receipt-allocation-dialog .modal-footer .btn{min-height:40px;padding:9px 18px;font-size:14px}
.receipt-allocation-dialog .remote-picker{padding:14px;border:1px solid #d4dfed;border-radius:6px}
.receipt-allocation-dialog .picker-pages:not(:has(button:not(:disabled))){display:none}
.receipt-existing-note{font-size:12px;color:#64758c;line-height:1.5;margin:8px 0 0}
@media(max-width:600px){.modal.receipt-allocation-dialog{max-height:calc(100dvh - 20px)}.receipt-allocation-dialog .modal-head{padding:18px}.receipt-heading h2{font-size:19px}.receipt-heading p{font-size:12px}.receipt-allocation-dialog .modal-body{padding:16px 18px}.receipt-allocation-dialog .receipt-sourcebar{gap:12px;margin-bottom:18px}.receipt-source-tabs{width:100%}.receipt-source-tabs button{flex:1;padding:10px 12px}.receipt-order-due{width:100%;justify-content:space-between}.receipt-field-grid{grid-template-columns:1fr;gap:16px}.receipt-summary{padding:15px}.receipt-summary-grid{grid-template-columns:1fr 1fr;gap:14px}.receipt-summary-primary{grid-column:1/-1}.receipt-summary-grid>div+div{min-height:0;padding-left:0;border:0}.receipt-summary-grid>div:last-child{padding-left:14px;border-left:1px solid #bed4f5}.receipt-summary output{font-size:23px}.receipt-summary-primary output{font-size:30px}.receipt-allocation-dialog .modal-footer{padding:13px 18px;flex-wrap:wrap}.receipt-review-note{width:100%;margin:0 0 2px}.receipt-allocation-dialog .pdf-file-actions{padding-left:0}.receipt-allocation-dialog .modal-footer .btn{flex:1;font-size:13px}}

/* Buyer certification expands before account security, with existing card spacing. */
.buyer-account-content>#buyer-certification-details>.panel{margin-bottom:24px}

/* Product-card purchase dialog; scoped to avoid changing other dialogs. */
.modal.quick-purchase-dialog{width:min(640px,100%);max-height:calc(100dvh - 32px);color:#172d4d}
.quick-purchase-dialog .modal-head{padding:22px 26px}.quick-purchase-dialog .modal-head h2{font-size:20px}
.quick-purchase-dialog .modal-body{padding:24px 26px}.quick-purchase-dialog .modal-footer{padding:18px 26px;gap:12px;background:#fbfcfe}
.quick-purchase-dialog .modal-footer .btn{min-width:104px;min-height:42px}.quick-purchase-dialog .modal-footer .primary{min-width:132px}
.qp-options{border:0;padding:0;margin:0;min-width:0;display:grid;gap:24px}.qp-product{display:grid;grid-template-columns:88px minmax(0,1fr);gap:18px;padding-bottom:22px;border-bottom:1px solid #e7edf5}
.qp-product img{width:88px;height:88px;object-fit:contain;border:1px solid #e5ecf5;border-radius:8px;background:#fff}.qp-product h3{font-size:15px;line-height:1.65;margin:0 0 6px;overflow-wrap:anywhere}.qp-product p{font-size:12px;color:#61758f;line-height:1.6;margin:0 0 9px}.qp-product span{font-size:12px;color:#61758f;margin-right:10px}.qp-product strong{font-size:23px;color:#e7434b;font-variant-numeric:tabular-nums}
.qp-quantity>label,.qp-section-heading h3{font-size:14px;font-weight:600;margin:0}.qp-quantity-row{display:flex;align-items:center;gap:12px;margin-top:12px}.qp-quantity-row>span{font-size:13px;color:#61758f}
.qp-stepper{display:grid;grid-template-columns:38px 76px 38px;align-items:stretch;border:1px solid #d8e3f2;border-radius:6px;overflow:hidden;height:40px}.qp-stepper button{border:0;background:#f6f8fc;color:#516782;font-size:20px;cursor:pointer;padding:0}.qp-stepper button:disabled{color:#b7c2d1;cursor:not-allowed}.qp-stepper input{min-width:0;width:100%;height:100%;border:0;border-left:1px solid #e1e9f3;border-right:1px solid #e1e9f3;border-radius:0;text-align:center;padding:0;font-size:14px;appearance:textfield;-moz-appearance:textfield}.qp-stepper input::-webkit-inner-spin-button,.qp-stepper input::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}
.qp-hint{font-size:12px;line-height:1.7;color:#61758f;margin:8px 0 0}.qp-error{font-size:12px;line-height:1.7;color:#cb4535;margin:8px 0 0}.quick-purchase-dialog [hidden]{display:none!important}
.qp-section-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px}.qp-section-heading>div{display:flex;gap:14px}.qp-section-heading .link-button{font-size:12px;padding:0;white-space:nowrap}.qp-address-list{display:grid;gap:10px;max-height:260px;overflow-y:auto;padding:2px}
.qp-address{display:flex;align-items:flex-start;gap:12px;padding:14px;border:1px solid #e0e7f0;border-radius:8px;cursor:pointer}.qp-address.selected{border-color:#0866f5;background:#f3f7ff}.qp-address:focus-within{outline:2px solid #0866f5;outline-offset:1px}.qp-address input{flex:0 0 16px;width:16px;height:16px;margin:4px 0 0;accent-color:#0866f5}.qp-address-copy{min-width:0;display:block}.qp-address-contact{display:flex;align-items:center;flex-wrap:wrap;gap:8px;font-size:13px;line-height:1.7}.qp-address-contact strong,.qp-address-contact>span{min-width:0;overflow-wrap:anywhere}.qp-address-contact small{padding:0 5px;border:1px solid #d7e6ff;background:#eaf2ff;color:#0866f5;border-radius:3px;font-size:10px}.qp-address-detail{display:block;font-size:12px;line-height:1.7;color:#61758f;margin-top:5px;overflow-wrap:anywhere}.qp-address.unavailable{background:#f8fafc;cursor:not-allowed}.qp-address-empty{padding:20px 14px;text-align:center;background:#f7f9fc;border-radius:7px;font-size:13px;color:#61758f;line-height:1.8}
.qp-total{display:grid;grid-template-columns:1fr auto;align-items:center;gap:7px;padding:16px 18px;background:#f2f6fc;border-radius:8px}.qp-total>span{font-size:13px}.qp-total output{font-size:24px;font-weight:700;color:#e7434b;font-variant-numeric:tabular-nums}.qp-total p{grid-column:1/-1;margin:0;font-size:12px;color:#61758f;line-height:1.7}
@media(max-width:600px){.modal.quick-purchase-dialog{max-height:calc(100dvh - 24px)}.quick-purchase-dialog .modal-head{padding:18px}.quick-purchase-dialog .modal-head h2{font-size:18px}.quick-purchase-dialog .modal-body{padding:18px}.quick-purchase-dialog .modal-footer{padding:14px 18px}.quick-purchase-dialog .modal-footer .btn{min-width:0;flex:1}.qp-options{gap:20px}.qp-product{grid-template-columns:64px minmax(0,1fr);gap:12px;padding-bottom:18px}.qp-product img{width:64px;height:64px}.qp-product h3{font-size:13px}.qp-product strong{font-size:21px}.qp-section-heading{flex-wrap:wrap;gap:10px}.qp-address{padding:12px;gap:9px}.qp-total{padding:14px}.qp-total output{font-size:22px}}

/* Legacy shared-list selectors use #orders-result; override only this workspace. */
.order-management #orders-result th{white-space:nowrap;text-align:left}
.order-management #orders-result th:is(.om-heading-money,.om-heading-cost){text-align:right}
.order-management #orders-result th.om-heading-action{text-align:center}
.order-management #orders-result th.om-heading-cost small{display:block;font-size:13px;line-height:20px;font-weight:500}
.order-management .om-status:is([data-order-stage="PAYMENT_READY"],[data-order-stage="PAYMENT_STARTED"],[data-order-stage="PAYMENT_SENT"],[data-order-stage="PAYMENT_CONFIRMED"],[data-order-stage="SHIPPED"]) .tag{color:#0866f5;background:#eaf2ff}
.order-management .om-status:is([data-order-stage="CANCELLED"],[data-order-stage="REFUNDED"]) .tag{color:#65758b;background:#f0f3f7}

/* Let the employee console use the full space alongside its sidebar. */
.admin-page.admin-page-staff{max-width:none}
@media(min-width:901px){.admin-page.admin-page-staff{padding-inline:24px}}

/* Staff order management: approved separate-column prototype and bounded paging. */
.admin-page:has(>.order-management){max-width:none;padding:24px 24px 36px}
.order-management{--om-blue:#0866f5;--om-line:#dce5f0;--om-ink:#182c49;--om-muted:#65758b;min-width:0;color:var(--om-ink)}
.order-management-heading{display:flex;align-items:baseline;gap:20px;margin:0 0 18px}
.order-management-heading h1{font-size:28px;line-height:1.35;margin:0;font-weight:700;letter-spacing:.2px}
.order-management-heading p{font-size:14px;color:var(--om-muted);margin:0;line-height:1.6}
.order-management-workspace{background:#fff;border:1px solid var(--om-line);border-radius:9px;padding:0 16px;min-width:0}
.order-management-filter{display:grid;gap:20px;padding:22px 24px;margin:0 0 20px;background:#fff;border:1px solid var(--om-line);border-radius:9px;min-width:0}
.order-management .order-filter-main{display:flex;flex-wrap:wrap;align-items:flex-end;gap:24px;min-width:0}
.order-management .order-filter-main>.order-filter-field:first-child{flex:1 1 280px;max-width:390px}
.order-management .order-filter-main>.order-filter-status{flex:0 0 180px}
.order-management .order-filter-field{display:grid;gap:8px;min-width:0}
.order-management .order-filter-field>label,.order-management .order-filter-dates>legend{font-size:15px;font-weight:600;line-height:22px;color:var(--om-ink)}
.order-management-filter .control{font-family:inherit;font-size:15px;height:44px;min-height:44px;min-width:0;border-color:#cfd9e7;border-radius:6px;padding:10px 12px;line-height:22px;background:#fff;color:var(--om-ink)}
.order-management-search{min-width:0;position:relative}
.order-management-search>.icon{position:absolute;top:12px;left:12px;width:20px;height:20px;color:var(--om-muted);pointer-events:none}
.order-management #order-filter .order-management-search input.control{width:100%;padding-left:34px}
.order-management-filter select{width:100%;max-width:100%}
.order-management .order-filter-dates{padding:0;margin:0;border:0;min-width:0;flex:0 0 374px;max-width:100%}
.order-management .order-filter-dates>legend{padding:0;margin-bottom:8px}
.order-management .order-filter-date-range{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);align-items:center;gap:12px;width:100%;max-width:100%}
.order-management .order-filter-date-range>span{font-size:15px;color:var(--om-muted);text-align:center}
.order-management #order-filter input[type=date]{width:100%;max-width:100%;font-variant-numeric:tabular-nums}
.order-management .order-filter-actions{display:flex;align-items:center;flex:0 0 auto;gap:12px}
.order-management .order-filter-actions .btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;font-size:15px;height:44px;min-height:44px;padding:10px 20px;border-radius:6px;white-space:nowrap}
.order-management .order-filter-actions .icon{width:18px;height:18px;flex:none}
.order-management .btn.primary{background:var(--om-blue);border-color:var(--om-blue);color:#fff}
.order-management .btn:disabled{cursor:default;opacity:.45;box-shadow:none}
.order-management .staff-order-list{padding-top:12px;min-width:0}
.order-management .order-management-table{max-width:100%;overflow:auto;scrollbar-width:thin;border-bottom:1px solid var(--om-line)}
.order-management .staff-order-list table{table-layout:fixed;min-width:1550px;width:100%;font-size:14px}
.order-management .staff-order-list table:has(.om-col-cost){min-width:1700px}
.order-management col.om-col-mall{width:240px}.order-management col.om-col-jd{width:156px}.order-management col.om-col-created{width:128px}.order-management col.om-col-company{width:184px}.order-management col.om-col-money{width:116px}.order-management col.om-col-cost{width:148px}.order-management col.om-col-status{width:160px}.order-management col.om-col-action{width:112px}
.order-management col.om-col-aftersale{width:210px}
.order-management col.om-col-shop{width:126px}
.order-management .om-aftersale-link{display:inline-flex;align-items:flex-start;flex-direction:column;gap:3px;max-width:100%;border-radius:4px}
.order-management .om-aftersale-link .tag{white-space:normal;text-align:left}
.order-management .om-aftersale-link:hover .tag{text-decoration:underline}
.order-management .om-aftersale-link small{color:var(--om-muted);font-size:12px}
.order-management .staff-order-list th,.order-management .staff-order-list td{padding:6px 12px;height:52px;vertical-align:middle;text-align:left;line-height:20px;border-bottom:1px solid #e7edf5}
.order-management .staff-order-list th{height:52px;font-size:14px;font-weight:650;background:#edf4ff;color:var(--om-ink);white-space:nowrap;border-bottom:0}
.order-management .staff-order-list th.om-heading-cost{white-space:pre-line;line-height:20px}
.order-management .staff-order-list th:is(.om-heading-money,.om-heading-cost),.order-management .staff-order-list td.order-list-money{text-align:right;font-variant-numeric:tabular-nums;white-space:nowrap}
.order-management .staff-order-list tbody tr:hover td{background:#f7faff}
.order-management .staff-order-list tbody tr:last-child td{border-bottom:0}
.order-management .order-list-number{gap:6px;line-height:20px;white-space:nowrap}
.order-management .order-list-number .mono{font-size:14px;letter-spacing:-.25px;overflow-wrap:normal;white-space:nowrap}
.order-management .order-list-number>a{color:var(--om-blue);font-weight:550}
.order-management .order-number-copy{color:#50627e;display:inline-flex;align-items:center;justify-content:center;min-height:28px;min-width:28px;padding:4px;border:1px solid transparent;border-radius:4px;flex:none}
.order-management .order-number-copy .icon{width:18px;height:18px}
.order-management .order-number-copy:hover{color:var(--om-blue);background:#eaf2ff;border-color:#c9ddff}
.order-management .om-created{font-variant-numeric:tabular-nums;font-size:14px;white-space:nowrap}
.order-management .om-created time>span{display:block;color:var(--om-muted);font-size:13px}
.order-management .om-company>strong,.order-management .om-shop>span{display:block;overflow-wrap:anywhere;line-height:20px}
.order-management .om-company>strong{font-weight:600;font-size:14px}
.order-management .om-status .tag{font-size:13px;line-height:20px;padding:3px 8px;white-space:normal;max-width:100%}
.order-management .staff-order-list th.om-heading-action,.order-management .staff-order-list td.om-action{position:sticky;right:0;text-align:center;background:#fff;box-shadow:-1px 0 #e0e8f3}
.order-management .staff-order-list th.om-heading-action{background:#edf4ff;z-index:2}
.order-management .staff-order-list td.om-action{z-index:1}
.order-management .om-action>a{color:var(--om-blue);font-size:14px;font-weight:550;white-space:nowrap;display:inline-block;padding:7px 0}
.order-management-pagination{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:18px 0;min-height:80px;font-size:14px;color:var(--om-ink)}
.order-management-count{font-size:14px;font-variant-numeric:tabular-nums;white-space:nowrap}
.order-management-page-controls{display:flex;align-items:center;justify-content:flex-end;gap:12px;flex-wrap:wrap}
.order-management-page-size{display:flex;align-items:center;gap:3px;white-space:nowrap}
.order-management-page-size>span{margin-right:5px}
.order-management-pagination .btn.small{font-family:inherit;font-size:14px;min-height:38px;border-radius:4px;padding:8px 11px;line-height:20px}
.order-management-page-size .btn{min-width:50px}
.order-management-pages{display:flex;align-items:center;gap:5px;white-space:nowrap}
.order-management-pages .btn{min-width:36px}
.order-management-ellipsis{padding:0 2px;min-width:15px;text-align:center;color:var(--om-muted)}
.order-management-jump{display:flex;align-items:center;gap:8px;margin:0;white-space:nowrap}
.order-management-jump label{display:flex;align-items:center;gap:7px}
.order-management-jump .control{font-family:inherit;font-size:14px;width:52px;min-height:38px;height:38px;padding:5px;text-align:center;border-radius:4px;font-variant-numeric:tabular-nums}
.order-management-error{border:1px solid #f2cfbc;background:#fff8f2;color:#9a441c;padding:12px 14px;margin:14px 0 4px;border-radius:6px;font-size:13px;line-height:1.6}
.order-management-loading{padding:10px 0 0;font-size:12px;color:var(--om-muted)}
.order-management #orders-result.is-loading{opacity:.6}
.order-management :is(button,a,input,select,[tabindex]):focus-visible{outline:2px solid var(--om-blue);outline-offset:2px}
.order-management .empty{padding:55px 18px}
@media(min-width:1101px){.admin-shell:has(.order-management)>.sidebar{width:190px}}
@media(max-width:1700px){.order-management-pagination{flex-wrap:wrap;gap:12px}.order-management-page-controls{margin-left:auto}}
@media(max-width:1100px){.order-management .order-filter-main{gap:18px}}
@media(max-width:900px){.admin-page:has(>.order-management){padding:20px 16px}.order-management-heading{align-items:flex-start;flex-direction:column;gap:6px;margin-bottom:16px}.order-management-heading h1{font-size:23px}.order-management-filter{padding:20px}.order-management-workspace{padding:0 14px}.order-management-page-controls{width:100%;justify-content:space-between;gap:12px}.order-management-pagination{padding:16px 0}.order-management-pages{flex-wrap:wrap;max-width:100%}}
@media(max-width:600px){.order-management-filter{padding:18px 16px;gap:18px}.order-management .order-filter-main{gap:16px}.order-management .order-filter-main>.order-filter-field:first-child,.order-management .order-filter-main>.order-filter-status,.order-management .order-filter-dates{flex-basis:100%;max-width:100%}.order-management .order-filter-actions{width:100%}.order-management .order-filter-actions .btn{flex:1}.order-management .order-filter-date-range{gap:10px}.order-management #order-filter input[type=date]{padding:10px 8px}}
@media(max-width:500px){.admin-page:has(>.order-management){padding:18px 12px}.order-management-workspace{padding:0 12px}.order-management-heading p{font-size:12px}.order-management-page-controls{justify-content:flex-start}.order-management-page-size{width:100%}.order-management-pages{width:100%}.order-management-pagination{gap:14px}.order-management-jump .control{width:52px}}
/* Product-card purchase dialog; scoped to avoid changing other dialogs. */
.modal.quick-purchase-dialog{width:min(640px,100%);max-height:calc(100dvh - 32px);color:#172d4d}
.quick-purchase-dialog .modal-head{padding:22px 26px}.quick-purchase-dialog .modal-head h2{font-size:20px}
.quick-purchase-dialog .modal-body{padding:24px 26px}.quick-purchase-dialog .modal-footer{padding:18px 26px;gap:12px;background:#fbfcfe}
.quick-purchase-dialog .modal-footer .btn{min-width:104px;min-height:42px}.quick-purchase-dialog .modal-footer .primary{min-width:132px}
.qp-options{border:0;padding:0;margin:0;min-width:0;display:grid;gap:24px}.qp-product{display:grid;grid-template-columns:88px minmax(0,1fr);gap:18px;padding-bottom:22px;border-bottom:1px solid #e7edf5}
.qp-product img{width:88px;height:88px;object-fit:contain;border:1px solid #e5ecf5;border-radius:8px;background:#fff}.qp-product h3{font-size:15px;line-height:1.65;margin:0 0 6px;overflow-wrap:anywhere}.qp-product p{font-size:12px;color:#61758f;line-height:1.6;margin:0 0 9px}.qp-product span{font-size:12px;color:#61758f;margin-right:10px}.qp-product strong{font-size:23px;color:#e7434b;font-variant-numeric:tabular-nums}
.qp-quantity>label,.qp-section-heading h3{font-size:14px;font-weight:600;margin:0}.qp-quantity-row{display:flex;align-items:center;gap:12px;margin-top:12px}.qp-quantity-row>span{font-size:13px;color:#61758f}
.qp-stepper{display:grid;grid-template-columns:38px 76px 38px;align-items:stretch;border:1px solid #d8e3f2;border-radius:6px;overflow:hidden;height:40px}.qp-stepper button{border:0;background:#f6f8fc;color:#516782;font-size:20px;cursor:pointer;padding:0}.qp-stepper button:disabled{color:#b7c2d1;cursor:not-allowed}.qp-stepper input{min-width:0;width:100%;height:100%;border:0;border-left:1px solid #e1e9f3;border-right:1px solid #e1e9f3;border-radius:0;text-align:center;padding:0;font-size:14px;appearance:textfield;-moz-appearance:textfield}.qp-stepper input::-webkit-inner-spin-button,.qp-stepper input::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}
.qp-hint{font-size:12px;line-height:1.7;color:#61758f;margin:8px 0 0}.qp-error{font-size:12px;line-height:1.7;color:#cb4535;margin:8px 0 0}.quick-purchase-dialog [hidden]{display:none!important}
.qp-section-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px}.qp-section-heading>div{display:flex;gap:14px}.qp-section-heading .link-button{font-size:12px;padding:0;white-space:nowrap}.qp-address-list{display:grid;gap:10px;max-height:260px;overflow-y:auto;padding:2px}
.qp-address{display:flex;align-items:flex-start;gap:12px;padding:14px;border:1px solid #e0e7f0;border-radius:8px;cursor:pointer}.qp-address.selected{border-color:#0866f5;background:#f3f7ff}.qp-address:focus-within{outline:2px solid #0866f5;outline-offset:1px}.qp-address input{flex:0 0 16px;width:16px;height:16px;margin:4px 0 0;accent-color:#0866f5}.qp-address-copy{min-width:0;display:block}.qp-address-contact{display:flex;align-items:center;flex-wrap:wrap;gap:8px;font-size:13px;line-height:1.7}.qp-address-contact strong,.qp-address-contact>span{min-width:0;overflow-wrap:anywhere}.qp-address-contact small{padding:0 5px;border:1px solid #d7e6ff;background:#eaf2ff;color:#0866f5;border-radius:3px;font-size:10px}.qp-address-detail{display:block;font-size:12px;line-height:1.7;color:#61758f;margin-top:5px;overflow-wrap:anywhere}.qp-address.unavailable{background:#f8fafc;cursor:not-allowed}.qp-address-empty{padding:20px 14px;text-align:center;background:#f7f9fc;border-radius:7px;font-size:13px;color:#61758f;line-height:1.8}
.qp-total{display:grid;grid-template-columns:1fr auto;align-items:center;gap:7px;padding:16px 18px;background:#f2f6fc;border-radius:8px}.qp-total>span{font-size:13px}.qp-total output{font-size:24px;font-weight:700;color:#e7434b;font-variant-numeric:tabular-nums}.qp-total p{grid-column:1/-1;margin:0;font-size:12px;color:#61758f;line-height:1.7}
@media(max-width:600px){.modal.quick-purchase-dialog{max-height:calc(100dvh - 24px)}.quick-purchase-dialog .modal-head{padding:18px}.quick-purchase-dialog .modal-head h2{font-size:18px}.quick-purchase-dialog .modal-body{padding:18px}.quick-purchase-dialog .modal-footer{padding:14px 18px}.quick-purchase-dialog .modal-footer .btn{min-width:0;flex:1}.qp-options{gap:20px}.qp-product{grid-template-columns:64px minmax(0,1fr);gap:12px;padding-bottom:18px}.qp-product img{width:64px;height:64px}.qp-product h3{font-size:13px}.qp-product strong{font-size:21px}.qp-section-heading{flex-wrap:wrap;gap:10px}.qp-address{padding:12px;gap:9px}.qp-total{padding:14px}.qp-total output{font-size:22px}}

/* Legacy shared-list selectors use #orders-result; override only this workspace. */
.order-management #orders-result th{white-space:nowrap;text-align:left}
.order-management #orders-result th:is(.om-heading-money,.om-heading-cost){text-align:right}
.order-management #orders-result th.om-heading-action{text-align:center}
.order-management #orders-result th.om-heading-cost small{display:block;font-size:13px;line-height:20px;font-weight:500}
.order-management .om-status:is([data-order-stage="PAYMENT_READY"],[data-order-stage="PAYMENT_STARTED"],[data-order-stage="PAYMENT_SENT"],[data-order-stage="PAYMENT_CONFIRMED"],[data-order-stage="SHIPPED"]) .tag{color:#0866f5;background:#eaf2ff}
.order-management .om-status:is([data-order-stage="CANCELLED"],[data-order-stage="REFUNDED"]) .tag{color:#65758b;background:#f0f3f7}

/* Readable order-list revision: larger amounts,15-row default in its JS module. */
.order-management #orders-result td.order-list-money{font-size:15px}

/* Collection and payment approval share the same staff order queue layout. */
.staff-order-queue .order-management-heading{display:block;margin-bottom:20px}
.staff-order-queue .order-management-heading p{margin-top:6px}
.staff-order-queue .order-queue-overview{padding:23px 0}
.staff-order-queue .order-queue-overview:not(:has(> div:nth-child(3))){grid-template-columns:repeat(2,minmax(0,1fr))}
.staff-order-queue .order-queue-workbench{padding:0}
.order-queue-workbench>header{padding:0 22px;border-bottom:1px solid var(--om-line)}
.order-queue-workbench>header h2{display:inline-block;margin:0 0 -1px;padding:17px 0 13px;border-bottom:3px solid var(--om-blue);color:var(--om-blue);font-size:16px;font-weight:650}
.staff-order-queue .order-management-filter{display:flex;flex-wrap:wrap;align-items:center;gap:12px 16px;padding:15px 22px;margin:0;border:0;border-radius:0;border-bottom:1px solid var(--om-line)}
.staff-order-queue .order-filter-field{display:flex;align-items:center;gap:10px}
.staff-order-queue .order-queue-query{flex:1 1 224px;max-width:445px}
.staff-order-queue .order-management-search,.staff-order-queue .order-filter-date-range{flex:1;min-width:0}
.staff-order-queue .order-filter-field>label,.staff-order-queue #order-queue-date-label{flex:none;font-size:13px;font-weight:600;white-space:nowrap}
.staff-order-queue .order-management-filter .control,.staff-order-queue .order-filter-actions .btn{height:40px;min-height:40px;font-size:13px}
.staff-order-queue .order-management-search>.icon{top:11px;width:18px;height:18px}
.staff-order-queue #order-queue-status{width:132px}
.staff-order-queue .order-queue-dates{flex:0 1 310px}
.staff-order-queue .order-filter-date-range{gap:8px}
.staff-order-queue .staff-order-list{padding-top:0}
.staff-order-queue .staff-order-list table{min-width:1090px}
.staff-order-queue .staff-order-list table:has(.om-col-cost){min-width:1200px}
.staff-order-queue col.om-col-mall{width:224px}
.staff-order-queue col.om-col-jd{width:138px}
.staff-order-queue col.om-col-created{width:103px}
.staff-order-queue col.om-col-company{width:120px}
.staff-order-queue col.om-col-shop{width:106px}
.staff-order-queue col.om-col-money{width:87px}
.staff-order-queue col.om-col-cost{width:113px}
.staff-order-queue col.om-col-status{width:114px}
.staff-order-queue col.om-col-action{width:110px}
.staff-order-queue .staff-order-list :is(th,td){padding-inline:12px}
.staff-order-queue .staff-order-list :is(th,td):first-child{padding-left:22px}
.staff-order-queue .staff-order-list th{background:#f1f5fb;color:#435875;font-size:13px;height:50px}
.staff-order-queue .staff-order-list td{height:72px}
.staff-order-queue .order-list-number{gap:3px}
.staff-order-queue .order-list-number .mono{font-size:13px}
.staff-order-queue .order-number-copy{min-width:24px;padding:3px}
.staff-order-queue .order-number-copy .icon{width:16px;height:16px}
.staff-order-queue .om-action>a.btn{display:inline-flex;justify-content:center;align-items:center;padding:7px 9px;color:#fff;font-size:13px}
.staff-order-queue .om-action>a.btn:hover{background:#0757d1;border-color:#0757d1}
.staff-order-queue .directory-pager{border:0;padding:15px 22px}
.staff-order-queue .order-management-error{margin:12px 22px}
.staff-order-queue .order-management-loading{padding:10px 22px}
.staff-order-queue:has(.jd-payee-overview) col.om-col-action{width:126px}
.staff-order-queue .jd-payee-heading{padding-bottom:12px;border-bottom:1px solid var(--om-line)}
.staff-order-queue .jd-payee-value{font-weight:600}
@media(min-width:1100px){
 .staff-order-queue .jd-payee-card dl{grid-template-columns:repeat(3,minmax(0,1fr));gap:12px 20px}
 .staff-order-queue .jd-payee-row{grid-template-columns:max-content minmax(0,1fr);gap:10px}
 .staff-order-queue .jd-payee-row dd{gap:8px}
}
@media(max-width:760px){
 .staff-order-queue .order-queue-overview{padding:15px 0}
 .staff-order-queue .order-queue-query{flex-basis:100%;max-width:none}
 .staff-order-queue .directory-pager span{flex:1 1 auto}
}
@media(max-width:500px){
 .order-queue-workbench>header,.staff-order-queue .order-management-filter,.staff-order-queue .directory-pager{padding-inline:14px}
 .staff-order-queue .order-queue-dates{flex-basis:100%}
 .staff-order-queue .order-queue-overview dt{min-height:2.6em}
}

/* Approved order cancellation actions: solid red, explicit secondary confirmation. */
.btn.order-cancel-danger{background:#cf3d45;border-color:#cf3d45;color:#fff}
.btn.order-cancel-danger:hover{background:#b72d36;border-color:#b72d36;color:#fff}
.btn.order-cancel-danger:active{background:#a1242d;border-color:#a1242d;color:#fff}
.btn.order-cancel-danger:focus-visible{outline:2px solid #cf3d45;outline-offset:3px}
.btn.order-cancel-danger:disabled{background:#cf3d45;border-color:#cf3d45;color:#fff;opacity:.45;cursor:not-allowed}
.order-cancel-dialog .modal-head h2{display:flex;align-items:center;gap:12px}
.order-cancel-dialog .order-cancel-alert{width:27px;height:27px;color:#cf3d45}
.order-cancel-summary{padding:16px 18px;border-radius:7px;background:#f3f6fb;margin-bottom:18px}
.order-cancel-summary .kv{margin:0}
.order-cancel-summary dd{overflow-wrap:anywhere}
.order-cancel-warning{padding:13px 16px;border:1px solid #f0b3b7;border-radius:7px;background:#fff2f3;color:#b72d36;line-height:1.8;margin-bottom:16px}
.order-cancel-note{color:#65758b;line-height:1.8}
.order-cancel-dialog .modal-footer .btn{min-height:42px;min-width:100px}
@media(max-width:600px){.order-cancel-dialog .modal-head h2{gap:8px;font-size:18px}.order-cancel-dialog .order-cancel-alert{width:23px;height:23px}.order-cancel-summary{padding:14px}.order-cancel-dialog .modal-footer{gap:10px;flex-wrap:wrap}.order-cancel-dialog .modal-footer .btn{flex:1;min-width:0}.order-cancel-warning{padding:12px 14px}}

/* Independent aftersales center: scoped to avoid changing order/finance pages. */
.ac-center,.ac-detail{color:#1c304e;min-width:0}.ac-center .page-header,.ac-detail .page-header{margin-bottom:24px}.ac-center h1,.ac-detail h1{font-size:28px}.ac-filters{background:#fff;border:1px solid #dce5f2;border-radius:10px;padding:24px;margin:22px 0}.ac-filter-row{display:flex;align-items:end;gap:24px}.ac-filter-row label{display:flex;gap:10px;align-items:center;font-weight:600;font-size:14px}.ac-filter-row .control{height:44px;font-size:15px;min-width:150px}.ac-keyword{flex:1}.ac-keyword .control{width:100%}.ac-filter-actions{display:flex;gap:10px}.ac-filter-actions .btn{height:44px;min-width:76px}.ac-dates{margin-top:18px;align-items:center;justify-content:flex-start;font-size:14px}.ac-tabs,.ac-admin-tabs{display:flex;gap:32px;align-items:center;border-bottom:1px solid #dae4ef;margin:16px 0 22px;overflow:auto;white-space:nowrap}.ac-tabs a,.ac-admin-tabs a{padding:12px 2px;color:#43556d;font-size:15px;border-bottom:3px solid transparent}.ac-tabs a.active,.ac-admin-tabs a.active{color:#0866ee;border-color:#0866ee;font-weight:600}.ac-table-wrap{background:white;border:1px solid #dce5f2;border-radius:10px;overflow:auto}.ac-table{width:100%;border-collapse:collapse;font-size:14px;line-height:1.6}.ac-table th{background:#eef4fc;color:#4c6282;font-weight:600;text-align:left;padding:16px}.ac-table td{padding:20px 16px;border-top:1px solid #e7edf5;vertical-align:middle}.ac-center .ac-table{min-width:1040px}.ac-table td:first-child{max-width:320px;min-width:180px}.ac-meta{display:block;color:#73849a;font-size:12px;margin-top:6px;overflow-wrap:anywhere}.ac-time{white-space:nowrap;font-size:13px;color:#60738e}.ac-table a{color:#0866ee}.ac-table .tag{font-size:12px;white-space:nowrap}.ac-pager{display:flex;gap:18px;align-items:center;flex-wrap:wrap;background:#fff;padding:18px;border:1px solid #dce5f2;border-radius:0 0 10px 10px;font-size:14px}.ac-pager label,.ac-pager form,.ac-pager [data-ac-pages]{display:flex;align-items:center;gap:10px}.ac-pager [data-ac-pages]{margin-left:auto}.ac-pager .control{width:76px;height:36px}.ac-sync{font-size:12px;color:#75859b;margin:18px 0}.ac-back{margin:6px 0 20px}.ac-state{display:flex;align-items:center;justify-content:space-between;gap:20px;background:#edf4ff;border:1px solid #d9e7fc;border-radius:10px;padding:24px 28px;margin:20px 0}.ac-state h2{font-size:25px;color:#0866ee;margin:0 0 10px}.ac-state p{margin:0;font-size:14px;color:#536782}.ac-journey{display:flex;list-style:none;margin:0 0 24px;padding:24px 12px;background:#fff;border:1px solid #dce5f2;border-radius:10px}.ac-journey li{position:relative;display:flex;flex:1;flex-direction:column;align-items:center;gap:10px;color:#7b8da5;font-size:14px}.ac-journey li:before{content:'';position:absolute;top:16px;height:2px;background:#dce5f2;width:100%;left:-50%}.ac-journey li:first-child:before{display:none}.ac-journey li span{z-index:1;display:grid;place-items:center;background:#f2f5f9;border:1px solid #dce5f2;border-radius:50%;width:34px;height:34px}.ac-journey .done span,.ac-journey .current span{background:#0866ee;color:#fff;border-color:#0866ee}.ac-journey .current{font-weight:600;color:#0866ee}.ac-detail-grid{display:grid;grid-template-columns:minmax(0,1fr) 320px;gap:24px}.ac-detail-grid .panel{margin-bottom:22px}.ac-card-body{padding:22px;overflow:auto}.ac-card-body .ac-table th,.ac-card-body .ac-table td{padding:14px 10px}.ac-reason{display:flex;gap:20px;line-height:1.8;margin:18px 0;white-space:pre-wrap;overflow-wrap:anywhere}.ac-reason>span{flex-shrink:0;color:#73849a}.ac-values{display:grid;grid-template-columns:110px minmax(0,1fr);gap:18px 12px;font-size:14px;margin:22px 0}.ac-values dt{color:#70819a}.ac-values dd{margin:0;text-align:right;overflow-wrap:anywhere}.ac-timeline{padding:20px 0 0;list-style:none;margin:0}.ac-timeline li{display:flex;gap:22px;padding:0 0 22px 20px;border-left:2px solid #dfe9f7;position:relative;font-size:14px}.ac-timeline li:before{position:absolute;content:'';left:-6px;top:4px;width:10px;height:10px;border-radius:50%;background:#0866ee}.ac-timeline time{color:#6e8098;font-size:13px;min-width:140px}.ac-muted{color:#73849a;font-size:14px}.ac-product-choice{display:flex;justify-content:space-between;align-items:center;gap:24px;padding:20px 0;border-bottom:1px solid #e7edf5}.ac-product-choice:last-child{border:0}.ac-order-summary{display:flex;justify-content:space-between;align-items:center;gap:20px}.ac-order-summary>span{font-size:14px;color:#70819a}.ac-search{display:flex;gap:12px;margin:24px 0}.ac-image{width:100%;max-height:70vh;object-fit:contain}.ac-evidence{display:flex;gap:10px;margin-bottom:20px}
@media(max-width:1100px){.ac-filter-row{flex-wrap:wrap}.ac-keyword{flex-basis:100%}.ac-detail-grid{grid-template-columns:minmax(0,1fr) 280px}.ac-card-body{padding:16px}.ac-values{grid-template-columns:1fr}}
@media(max-width:760px){.ac-center h1,.ac-detail h1{font-size:24px}.ac-filters{padding:16px}.ac-filter-row{gap:14px}.ac-filter-row label{flex-direction:column;align-items:start;gap:8px}.ac-filter-row .control{min-width:0;width:100%}.ac-dates label{flex:1}.ac-tabs,.ac-admin-tabs{gap:22px}.ac-detail-grid{grid-template-columns:1fr}.ac-state{padding:20px;align-items:start}.ac-state h2{font-size:21px}.ac-state .btn{flex-shrink:0}.ac-journey{padding:18px 6px}.ac-journey li{font-size:11px;gap:8px}.ac-journey li span{width:28px;height:28px}.ac-journey li:before{top:14px}.ac-values{grid-template-columns:110px 1fr}.ac-timeline li{flex-direction:column;gap:8px}.ac-order-summary{flex-direction:column;align-items:start}.ac-pager{gap:14px}.ac-pager [data-ac-pages]{margin-left:0}.ac-center .page-header{align-items:start;gap:14px;flex-wrap:wrap}.ac-detail .ac-card-body .ac-table{min-width:460px}}
.ac-filter-row label{white-space:nowrap}.ac-keyword .control{min-width:0}.buyer-aftersale-page>.buyer-account-breadcrumb,.buyer-aftersale-page>.buyer-account-heading{display:none}.buyer-aftersale-page .buyer-account-layout{display:block}.buyer-aftersale-page .buyer-account-sidebar{position:static;width:auto;background:transparent;border:0;padding:0;margin:0 0 26px;box-shadow:none}.buyer-aftersale-page .buyer-account-sidebar nav{display:flex;gap:28px;overflow-x:auto;border-bottom:1px solid #dce5f2;white-space:nowrap}.buyer-aftersale-page .buyer-account-sidebar nav a{border-radius:0;padding:16px 2px;border-bottom:3px solid transparent;flex-shrink:0}.buyer-aftersale-page .buyer-account-sidebar nav a.active{background:transparent;border-bottom-color:#0866ee}.buyer-aftersale-page .buyer-account-content{min-width:0}
@media(max-width:760px){.buyer-aftersale-page .buyer-account-sidebar nav{gap:20px}.buyer-aftersale-page .buyer-account-sidebar nav a{font-size:13px}.ac-dates{flex-wrap:nowrap}.ac-dates input{max-width:100%}}
.buyer-aftersale-page .buyer-account-sidebar nav{flex-direction:row}.ac-detail-grid>div,.ac-detail-grid>aside,.ac-detail-grid .panel{min-width:0;max-width:100%}
@media(max-width:760px){.ac-detail-grid{grid-template-columns:minmax(0,1fr)}}

.ac-card-body .buttons{display:flex;flex-wrap:wrap;gap:8px;margin-top:16px}

/* Product quantity focus remains visible around the whole control, without clipped native outlines. */
.quick-purchase-dialog .qp-stepper:focus-within{outline:2px solid #9bbffa;outline-offset:2px;border-color:#7daaf0}
.quick-purchase-dialog .qp-stepper input:focus{outline:0;box-shadow:none}
.quick-purchase-dialog .qp-stepper button:focus-visible{outline:0;background:#e6f0ff}
/* Compact add-to-cart layout; immediate purchase retains its address and total sections. */
.modal.quick-cart-dialog{width:min(720px,100%)}
.quick-cart-dialog .qp-options{gap:20px}
.quick-cart-dialog .qp-product{grid-template-columns:82px minmax(0,1fr);padding-bottom:20px}
.quick-cart-dialog .qp-product img{width:82px;height:82px}
.qp-cart-line{display:flex;align-items:center;justify-content:flex-start;gap:24px;flex-wrap:wrap}
.qp-cart-quantity{display:flex;align-items:center;gap:16px;min-width:0;flex-wrap:wrap}
.qp-cart-quantity>label{font-size:14px;font-weight:600;white-space:nowrap}
.qp-cart-quantity .qp-quantity-row{margin-top:0}
.qp-cart-amount{display:flex;align-items:center;gap:16px;min-width:0;margin-left:0}
.qp-cart-amount>span{font-size:13px;color:#61758f;white-space:nowrap}
.qp-cart-amount output{font-size:24px;font-weight:700;line-height:1.3;color:#e7434b;font-variant-numeric:tabular-nums;overflow-wrap:anywhere;min-width:0}
.quick-cart-dialog .qp-quantity>.qp-hint{margin-top:12px}
.qp-cart-notice{padding:11px 14px;background:#edf5ff;border-radius:7px;font-size:12px;line-height:1.7;color:#526d92}
@media(max-width:600px){
 .quick-cart-dialog .qp-product{grid-template-columns:64px minmax(0,1fr)}
 .quick-cart-dialog .qp-product img{width:64px;height:64px}
 .qp-cart-line{gap:24px}.qp-cart-quantity{gap:12px}
 .qp-cart-amount{width:100%;justify-content:flex-start;margin-left:0;gap:12px}
 .qp-cart-amount output{font-size:23px;text-align:right}
}

/* Buyer aftersales: one center, inline products and a detail drawer. */
.ac-primary-tabs{display:flex;gap:32px;border-bottom:1px solid var(--line);margin:0 0 24px}
.ac-primary-tabs a{padding:12px 4px;color:#526680;border-bottom:3px solid transparent;font-size:16px}
.ac-primary-tabs a.active{color:var(--blue);border-bottom-color:var(--blue);font-weight:650}
.ac-apply-order{border:1px solid #dce5f2;border-radius:10px;background:#fff;margin-bottom:18px;overflow:hidden}
.ac-apply-order>summary{display:flex;align-items:center;gap:20px;padding:20px 24px;background:#f7faff;cursor:pointer;list-style:none}
.ac-apply-order>summary::-webkit-details-marker{display:none}
.ac-apply-order>summary:focus-visible{outline:2px solid var(--blue);outline-offset:-3px}
.ac-order-amount{margin-left:auto;white-space:nowrap;font-size:13px;color:#526680}
.ac-order-toggle{font-size:12px;color:var(--blue);white-space:nowrap}
.ac-order-products{padding:0 24px}
.ac-order-products>p{padding:20px 0}
.ac-apply-product{display:flex;align-items:center;justify-content:space-between;gap:24px;padding:24px 0;border-top:1px solid #e7edf5}
.ac-apply-copy{min-width:0;overflow-wrap:anywhere}
.ac-quantity-summary{display:flex;gap:12px;flex-wrap:wrap;align-items:center;margin-top:14px;font-size:13px}
.ac-quantity-summary>span{padding:5px 9px;background:#f1f4f8;border-radius:5px}
.ac-quantity-summary .ac-count-applied{background:#edf4ff;color:#2963ac}
.ac-quantity-summary>strong{font-weight:600;color:var(--blue)}
.ac-product-actions{display:flex;align-items:center;gap:16px;flex-shrink:0;flex-wrap:wrap}
.ac-product-actions .btn{min-width:112px}
.ac-product-actions .link-button{font-size:13px}
.ac-drawer-overlay{position:fixed;inset:0;z-index:90;display:flex;justify-content:flex-end;background:#13263e66}
.ac-detail-drawer{width:min(960px,96vw);height:100dvh;background:#f3f6fa;box-shadow:-12px 0 45px #13263e22;display:flex;flex-direction:column;min-width:0}
.ac-detail-drawer>header{display:flex;justify-content:space-between;align-items:center;gap:20px;padding:22px 26px;background:#fff;border-bottom:1px solid var(--line);flex:none}
.ac-drawer-content{padding:24px;overflow:auto;overscroll-behavior:contain;min-height:0;flex:1}
.ac-detail-drawer .ac-back,.ac-detail-drawer .ac-detail>.page-header{display:none}
.ac-detail-drawer .ac-detail-grid{grid-template-columns:minmax(0,1fr)}
.ac-detail-drawer .ac-detail-grid>aside{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:16px}
.ac-detail-drawer .ac-state{margin-top:0}
.ac-detail-drawer .ac-values{grid-template-columns:100px minmax(0,1fr)}
.native-afs-confirm-overlay{z-index:120}
.native-afs-confirm{width:min(680px,100%)}
.native-afs-confirm-note{font-size:13px;color:#667a94;margin:0 0 20px}
.native-afs-confirm-values{display:grid;grid-template-columns:128px minmax(0,1fr);gap:13px 20px;margin:0}
.native-afs-confirm-values dt{color:#657890;font-size:13px}
.native-afs-confirm-values dd{margin:0;white-space:pre-wrap;overflow-wrap:anywhere;font-size:14px}
.native-afs-confirm .modal-footer .btn{min-width:110px}
@media(max-width:760px){
 .ac-primary-tabs{gap:26px}.ac-primary-tabs a{font-size:15px}
 .ac-apply-order>summary{padding:16px;gap:10px;flex-wrap:wrap}.ac-order-amount{margin-left:0}.ac-order-toggle{margin-left:auto}
 .ac-apply-order>summary>div{flex-basis:100%;overflow-wrap:anywhere}
 .ac-order-products{padding:0 16px}.ac-apply-product{padding:20px 0;align-items:flex-start;flex-direction:column;gap:16px}
 .ac-product-actions{width:100%;justify-content:space-between}.ac-quantity-summary{gap:8px;font-size:12px}
 .ac-detail-drawer{width:100vw}.ac-detail-drawer>header{padding:18px 16px}.ac-drawer-content{padding:16px}
 .ac-detail-drawer .ac-detail-grid>aside{grid-template-columns:minmax(0,1fr)}
 .native-afs-confirm-overlay{padding:12px}.native-afs-confirm-values{grid-template-columns:100px minmax(0,1fr);gap:12px}
 .native-afs-confirm .modal-head,.native-afs-confirm .modal-body{padding:18px}.native-afs-confirm .modal-footer .btn{min-width:0;flex:1}
}

/* Immediate purchase: keep quantity beside the unit price inside product information. */
.modal.quick-buy-dialog{width:min(760px,100%)}
.quick-buy-dialog .qp-options{gap:20px}
.quick-buy-dialog .qp-product{grid-template-columns:82px minmax(0,1fr);padding-bottom:20px}
.quick-buy-dialog .qp-product img{width:82px;height:82px}
.qp-buy-line{display:flex;align-items:flex-start;gap:24px;flex-wrap:wrap;margin-top:14px;min-width:0}
.qp-unit-price{display:flex;align-items:center;min-height:40px;min-width:0;flex-wrap:wrap}
.quick-buy-dialog .qp-unit-price strong{overflow-wrap:anywhere;min-width:0;max-width:100%}
.quick-buy-dialog .qp-quantity{display:grid;grid-template-columns:auto minmax(0,1fr);column-gap:12px;row-gap:8px;min-width:0}
.quick-buy-dialog .qp-quantity>label{align-self:center;font-size:13px;font-weight:500;white-space:nowrap}
.quick-buy-dialog .qp-quantity-row{margin-top:0;min-width:0}
.quick-buy-dialog .qp-quantity-row>span{margin:0;font-size:13px}
.quick-buy-dialog .qp-quantity>.qp-hint{grid-column:2;margin:0;font-size:11px}
.quick-buy-dialog .qp-quantity>.qp-error{grid-column:1/-1;margin:0;max-width:320px}
.quick-buy-dialog .qp-shipping{min-width:0}
@media(max-width:600px){
 .quick-buy-dialog .qp-product{grid-template-columns:64px minmax(0,1fr);row-gap:16px}
 .quick-buy-dialog .qp-product img{width:64px;height:64px}
 .quick-buy-dialog .qp-buy-line{gap:14px}
 .quick-buy-dialog .qp-quantity{grid-template-columns:1fr;gap:8px;max-width:100%}
 .quick-buy-dialog .qp-quantity>.qp-hint{grid-column:1}
 .quick-buy-dialog .qp-stepper{grid-template-columns:32px 60px 32px;flex-shrink:0}
 .quick-buy-dialog .qp-total{min-width:0}
 .quick-buy-dialog .qp-total output{overflow-wrap:anywhere;min-width:0;text-align:right}
}

/* Compact aftersales application form. */
.afs-application-overlay{padding:20px}
.modal.afs-application{width:min(924px,100%);max-height:calc(100dvh - 36px)}
.afs-application [hidden]{display:none!important}
.afs-application .modal-head{padding:12px 26px;align-items:flex-start;flex-shrink:0}
.afs-application .modal-head h2{font-size:22px;line-height:1.4}
.afs-application .modal-head h2 small{display:block;margin-top:4px;font-size:14px;line-height:1.5;font-weight:400;color:#63728a}
.afs-application .modal-body{padding:16px 26px;overscroll-behavior:contain}
.afs-application .modal-footer{padding:14px 26px;flex-shrink:0;gap:12px;background:#fff}
.afs-application .modal-footer .btn{min-width:112px;min-height:46px;font-size:15px}
.afs-submit-note{margin-right:auto;font-size:14px;color:#718198}
.afs-product-summary{display:flex;align-items:center;gap:20px;padding:14px 16px;background:#f5f8ff;border:1px solid #dce7fa;border-radius:8px;margin-bottom:18px}
.afs-product-picture{width:92px;height:70px;flex-shrink:0;display:grid;place-items:center;background:#fff;border-radius:6px;overflow:hidden}
.afs-product-picture .icon{width:32px;height:32px;color:#91a7c2}
.afs-product-picture img{width:100%;height:100%;object-fit:contain}
.afs-product-copy{min-width:0;flex:1;overflow-wrap:anywhere}
.afs-product-copy strong{font-size:16px;line-height:1.45}
.afs-product-copy p{margin-top:2px;font-size:14px;line-height:1.55;color:#6c7f96}
.afs-available{padding:5px 10px;background:#e4efff;color:#0967ed;font-size:15px;font-weight:600;border-radius:5px;white-space:nowrap}
.afs-application-section{margin:0 0 18px}
.afs-application-section h3{font-size:20px;line-height:1.4;margin:0 0 10px}
.afs-application-section h3:before{content:'';display:inline-block;width:4px;height:19px;vertical-align:-3px;background:var(--blue);border-radius:2px;margin-right:8px}
.afs-application-options{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(0,1fr);gap:50px;margin-bottom:8px}
.afs-service-choice{min-width:0;margin:0;padding:0;border:0}
.afs-service-choice legend,.afs-quantity-field>label{display:block;font-size:15px;line-height:1.45;font-weight:600;color:#273b57;margin-bottom:8px;padding:0}
.afs-required{color:#d5484d}
.afs-service-choice>div{display:flex;gap:10px;flex-wrap:wrap}
.afs-service-option{flex:1;min-width:100px;position:relative;cursor:pointer}
.afs-service-option input{position:absolute;inset:0;opacity:0;width:100%!important;height:100%;min-height:0;margin:0;cursor:pointer;z-index:1}
.afs-service-option>span{display:flex;align-items:center;justify-content:space-between;gap:10px;min-height:44px;padding:9px 18px;background:#fff;border:1px solid #dce4ef;border-radius:6px;font-size:16px}
.afs-service-option .icon{visibility:hidden;width:17px;height:17px}
.afs-service-option input:checked+span{border-color:var(--blue);background:#edf5ff;color:var(--blue);font-weight:600}
.afs-service-option input:checked+span .icon{visibility:visible}
.afs-service-option input:focus-visible+span{outline:2px solid #93bdfa;outline-offset:2px}
.afs-quantity-values{display:flex;align-items:center;gap:12px}
.afs-quantity-stepper{display:inline-flex;border:1px solid #dce4ef;border-radius:6px;overflow:hidden}
.afs-quantity-stepper button{border:0;background:#f7faff;color:#47617e;width:42px;min-height:34px;font-size:20px;padding:0}
.afs-application .afs-quantity-stepper input{width:82px;min-height:34px;font-size:15px;border:0;border-radius:0;text-align:center;background:white;appearance:textfield;font-variant-numeric:tabular-nums}
.afs-quantity-stepper input::-webkit-inner-spin-button,.afs-quantity-stepper input::-webkit-outer-spin-button{appearance:none;margin:0}
.afs-quantity-stepper:focus-within{outline:2px solid #93bdfa;outline-offset:2px}
.afs-quantity-field .small-note{margin:4px 0 0;font-size:14px;line-height:1.5}
.afs-reason-field{position:relative;margin-bottom:16px}
.afs-reason-field .field{margin-bottom:0}
.afs-reason-field textarea{height:86px;min-height:86px;font-size:15px;padding-bottom:28px;resize:vertical;line-height:1.65}
.afs-reason-field output{position:absolute;bottom:8px;right:12px;font-size:14px;color:#8896a9;pointer-events:none;font-variant-numeric:tabular-nums}
.afs-image-field{margin-bottom:12px}
.afs-image-field>p:first-child{font-size:15px;font-weight:600;margin-bottom:8px}
.afs-image-list,.afs-image-list>[data-afs-image-previews]{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.afs-image-list>[data-afs-image-previews]:empty{display:none}
.afs-image-preview{position:relative;width:116px;height:100px;border-radius:6px;border:1px solid #dce4ef;background:#f6f8fc}
.afs-image-preview img{display:block;width:100%;height:100%;object-fit:cover;border-radius:6px}
.afs-image-preview button{position:absolute;top:4px;right:4px;display:grid;place-items:center;background:#fff;border:1px solid #dce4ef;border-radius:50%;width:22px;height:22px;font-size:17px;line-height:1;padding:0;color:#47617e}
.afs-image-add{width:112px;height:100px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;border:1px dashed #b6cae6;background:#f9fbff;color:#6c809a;border-radius:6px;font-size:14px}
.afs-image-add .icon{width:28px;height:28px}
.afs-image-field>.small-note{margin:8px 0 0;font-size:14px;line-height:1.5}
.afs-image-error,.afs-contact-error{font-size:12px;color:#c53b48;margin:8px 0 0}
.afs-image-error:empty,.afs-contact-error:empty{display:none}
.afs-application .field>label{font-size:15px;color:#273b57}
.afs-return-fields{display:flex;align-items:center;gap:16px;flex-wrap:wrap}
.afs-return-fields .field{display:grid;grid-template-columns:88px minmax(0,300px);gap:20px;align-items:center;margin:0;flex:0 1 408px}
.afs-return-fields .field>label{font-weight:400}
.afs-return-fields .field select{min-height:38px;font-size:15px}
.afs-return-fields .small-note{margin:0;font-size:14px;flex:1;min-width:170px}
.afs-application-section[aria-labelledby="afs-contact-heading"]{margin-bottom:12px}
.afs-contact-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:10px}
.afs-contact-heading h3{margin:0}
.afs-contact-heading .link-button{font-size:15px;padding:4px 0}
.afs-contact-summary{display:flex;gap:16px;align-items:center;padding:10px 18px;background:#f5f8ff;border:1px solid #dce7fa;border-radius:7px}
.afs-contact-summary>.icon{flex-shrink:0;width:25px;height:25px;color:var(--blue)}
.afs-contact-summary>div{min-width:0;overflow-wrap:anywhere}
.afs-contact-summary strong{display:flex;flex-wrap:wrap;gap:16px;font-size:15px;line-height:1.4;font-weight:600}
.afs-contact-summary p{margin-top:4px;font-size:14px;line-height:1.45;color:#52667f}
.afs-contact-help{margin:8px 0 0;font-size:14px;line-height:1.5}
.afs-contact-editor{border:1px solid #dce7fa;background:#f9fbff;border-radius:7px;padding:18px;margin-top:12px}
.afs-contact-editor .field{margin-bottom:14px}
.afs-contact-editor .region-grid{grid-template-columns:repeat(4,minmax(0,1fr))}
.afs-contact-editor .region-note{font-size:12px;margin:6px 0 14px}
.afs-contact-editor [data-afs-contact-done]{display:flex;margin:12px 0 0 auto}
.afs-application .native-afs-checks{margin:0 0 12px;gap:24px;font-size:15px}
.afs-application .native-afs-checks input{width:20px;height:20px;min-height:0;accent-color:var(--blue)}
.afs-guidance{background:#edf5ff;border-color:#dceafa;color:#47617e}
.afs-guidance>.icon{color:var(--blue)}
.afs-application .modal-body>.notice{margin-bottom:0;padding:10px 14px;font-size:14px}
@media(max-width:640px){
 .afs-application-overlay{padding:12px}.modal.afs-application{width:100%;max-height:calc(100dvh - 24px)}
 .afs-application .modal-head{padding:18px 16px}.afs-application .modal-head h2{font-size:18px}.afs-application .modal-head h2 small{font-size:12px}
 .afs-application .modal-body{padding:16px}.afs-application .modal-footer{padding:14px 16px}.afs-submit-note{display:none}
 .afs-application .modal-footer .btn{flex:1;min-width:0;font-size:13px}.afs-product-summary{gap:10px;flex-wrap:wrap;padding:12px;margin-bottom:18px}
 .afs-product-picture{width:52px;height:52px}.afs-product-copy strong{font-size:13px}.afs-product-copy p{font-size:11px}.afs-available{margin-left:auto;font-size:12px;padding:4px 8px}
 .afs-application-options{grid-template-columns:minmax(0,1fr);gap:16px;margin-bottom:16px}.afs-service-option>span{font-size:13px}.afs-application-section h3{font-size:17px}.afs-application .field>label{font-size:13px}.afs-product-copy strong{font-size:13px;line-height:1.6}
 .afs-return-fields{gap:8px}.afs-return-fields .field{grid-template-columns:minmax(0,1fr);gap:7px;flex-basis:100%}.afs-return-fields>.small-note{flex-basis:100%}
 .afs-contact-summary{padding:13px;gap:12px}.afs-contact-summary strong{font-size:13px;gap:12px}.afs-contact-summary p{font-size:12px}
 .afs-contact-editor{padding:14px}.afs-contact-editor .region-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
 .afs-image-preview,.afs-image-add{width:80px;height:76px}.afs-image-list,.afs-image-list>[data-afs-image-previews]{gap:10px}
 .afs-application .native-afs-checks{font-size:12px;gap:14px;align-items:flex-start}
}

/* Buyer aftersales detail: compact guided drawer, matching the application form. */
body:has(.ac-drawer-overlay){overflow:hidden}
.ac-detail-drawer:has(.ac-buyer-detail){background:#fff;width:min(992px,96vw)}
.ac-detail-drawer>header:has([data-ac-detail-number]){padding:8px 22px;min-height:68px;gap:16px}
.ac-detail-drawer>header h2{font-size:21px;line-height:1.4;margin:0;color:#1c304e}
.ac-detail-drawer>header [data-ac-detail-number]{margin:3px 0 0;font-size:13px;line-height:1.5;color:#637994;overflow-wrap:anywhere}
.ac-detail-close{border:0;background:transparent;padding:8px;color:#7c8da2;cursor:pointer;flex:none;border-radius:6px;display:grid;place-items:center}
.ac-detail-close:hover{background:#f2f6fd;color:#0866ee}.ac-detail-close .icon{width:20px;height:20px}
.ac-drawer-content:has(.ac-buyer-detail){padding:0;overflow:hidden;display:flex;flex-direction:column}
.ac-buyer-detail{display:flex;flex-direction:column;min-height:0;flex:1;background:#fff;font-size:14px;line-height:1.6}
.ac-buyer-scroll{flex:1;min-height:0;overflow:auto;overscroll-behavior:contain;padding:14px 22px 0;scrollbar-gutter:stable}
.ac-buyer-state{display:flex;align-items:center;gap:28px;background:#eef5ff;border:1px solid #cfe0ff;border-radius:8px;padding:12px 20px}
.ac-buyer-state h2{font-size:25px;line-height:1.3;margin:0;color:#0866ee;flex-shrink:0}
.ac-buyer-state p{border-left:1px solid #c6d8f3;margin:0;padding-left:28px;color:#405773;line-height:1.6}
.ac-buyer-state.is-closed{background:#f5f7fa;border-color:#dfe6ef}.ac-buyer-state.is-closed h2{color:#65758b}
.ac-buyer-state.is-completed h2{color:#168268}
.ac-buyer-journey{display:flex;list-style:none;margin:20px 0;padding:0 6px}
.ac-buyer-journey li{position:relative;flex:1;min-width:0;display:flex;flex-direction:column;align-items:center;gap:9px;color:#7b8da5;font-size:14px;text-align:center}
.ac-buyer-journey li:before{content:'';position:absolute;top:17px;height:2px;background:#dce5f2;width:100%;left:-50%}
.ac-buyer-journey li:first-child:before{display:none}.ac-buyer-journey li.done:before,.ac-buyer-journey li.current:before{background:#a8c7ff}
.ac-buyer-journey li>span{position:relative;z-index:1;display:grid;place-items:center;width:34px;height:34px;border:1px solid #dbe5f2;border-radius:50%;background:#f4f7fc;color:#7689a3}
.ac-buyer-journey .done>span,.ac-buyer-journey .current>span{background:#0866ee;border-color:#0866ee;color:#fff}
.ac-buyer-journey strong{font-weight:400}.ac-buyer-journey .current strong{font-weight:600;color:#0866ee}.ac-buyer-journey .icon{width:18px;height:18px}
.ac-buyer-note{display:flex;align-items:center;gap:12px;background:#eef5ff;border:1px solid #cfe0ff;border-radius:7px;padding:4px 14px;margin:0 0 18px;line-height:1.5}
.ac-buyer-note .icon{width:17px;height:17px;color:#0866ee;flex-shrink:0}
.ac-buyer-section{margin:0 0 14px;min-width:0}.ac-buyer-section h3{position:relative;font-size:18px;line-height:1.4;margin:0 0 10px;padding:0 0 3px 14px;border-bottom:1px solid #e2eaf5;color:#1c304e}
.ac-buyer-section h3:before{content:'';position:absolute;left:0;top:3px;height:18px;width:4px;background:#0866ee;border-radius:2px}
.ac-buyer-section:has(.ac-buyer-products)>h3{border:0;padding-bottom:0}
.ac-buyer-product{display:flex;align-items:center;gap:18px;padding:14px 16px;background:#eef5ff;border-radius:8px;min-width:0}
.ac-buyer-product+.ac-buyer-product{margin-top:8px}
.ac-buyer-picture{width:116px;height:70px;flex-shrink:0;display:grid;grid-template: minmax(0,1fr) / minmax(0,1fr);place-items:center;background:#fff;border-radius:5px;overflow:hidden}
.ac-buyer-picture img{width:100%;height:100%;min-width:0;min-height:0;object-fit:contain}.ac-buyer-picture span{color:#90a3bc}.ac-buyer-picture .icon{width:30px;height:30px}
.ac-buyer-product-copy{min-width:0;flex:1}.ac-buyer-product-copy strong{font-size:15px;line-height:1.6;overflow-wrap:anywhere}.ac-buyer-product-copy p{font-size:13px;color:#6b809b;margin:4px 0 0}
.ac-buyer-product dl{display:flex;gap:34px;justify-content:space-between;width:268px;margin:0 12px 0 0;flex-shrink:0;font-size:14px}.ac-buyer-product dt{font-size:13px;color:#627894;margin-bottom:4px}.ac-buyer-product dd{margin:0}
.ac-buyer-fields{display:grid;grid-template-columns:90px minmax(0,1fr);gap:8px 16px;margin:0;padding:0 16px;font-size:14px;line-height:1.65}
.ac-buyer-fields dt{color:#637994}.ac-buyer-fields dd{margin:0;min-width:0;overflow-wrap:anywhere}.ac-buyer-reason{white-space:pre-wrap}
.ac-buyer-evidence{display:flex;gap:8px;flex-wrap:wrap;padding-top:2px}.ac-buyer-evidence button{display:grid;grid-template: minmax(0,1fr) / minmax(0,1fr);place-items:center;width:104px;height:84px;padding:4px;background:#fff;border:1px solid #dce5f2;border-radius:6px;cursor:pointer;font-size:12px;color:#0866ee}.ac-buyer-evidence img{width:100%;height:100%;min-height:0;min-width:0;object-fit:contain;border-radius:3px}
.ac-buyer-return-address{display:flex;align-items:center;gap:14px;background:#eef5ff;border:1px solid #e1eaf9;border-radius:7px;padding:7px 14px}.ac-buyer-return-address>.icon{width:22px;height:22px;flex-shrink:0;color:#0866ee}.ac-buyer-return-address>span{flex:1;min-width:0}.ac-buyer-return-address .btn{color:#0866ee;white-space:nowrap;font-weight:600}
.ac-buyer-muted{font-size:13px;color:#6a7f99;margin:7px 16px 0}.ac-buyer-logistics{padding:0 16px}.ac-buyer-logistics .ac-timeline{padding-top:8px}.ac-buyer-logistics .ac-timeline li{padding-bottom:12px;gap:14px}.ac-buyer-logistics .ac-timeline time{min-width:140px}
.ac-buyer-refund>div{display:flex;align-items:center;gap:28px;padding:4px 16px}.ac-buyer-refund dl{display:flex;gap:40px;margin:0}.ac-buyer-refund dt{font-size:13px;color:#6a7f99}.ac-buyer-refund dd{font-size:18px;font-weight:600;margin:2px 0 0}
.ac-buyer-timeline{margin:0 0 0 20px;padding:4px 0 0;list-style:none}.ac-buyer-timeline li{position:relative;border-left:2px solid #e0e8f3;padding:0 0 8px 24px;line-height:1.55}.ac-buyer-timeline li:last-child{border-color:transparent;padding-bottom:0}.ac-buyer-timeline li:before{content:'';position:absolute;width:10px;height:10px;left:-6px;top:5px;background:#b5c3d6;border-radius:50%}.ac-buyer-timeline li:first-child:before{background:#0866ee}.ac-buyer-timeline strong{display:block;font-size:14px;font-weight:600;overflow-wrap:anywhere}.ac-buyer-timeline time{display:block;font-size:13px;color:#7185a1}
.ac-buyer-history{margin:10px 0 0 20px}.ac-buyer-history summary{font-size:13px;color:#0866ee;cursor:pointer}.ac-buyer-history .ac-buyer-timeline{margin-top:12px;margin-left:0}.ac-buyer-history .ac-buyer-timeline li:first-child:before{background:#b5c3d6}
.ac-buyer-order{display:flex;align-items:center;gap:16px;padding:10px 14px;border:1px solid #dce5f2;border-radius:7px;font-size:13px;flex-wrap:wrap}.ac-buyer-order>strong{padding-right:16px;border-right:1px solid #dce5f2}.ac-buyer-order>span{color:#637994}.ac-buyer-order>a{overflow-wrap:anywhere;min-width:0}.ac-buyer-order-link{margin-left:auto;display:inline-flex;align-items:center;gap:6px}.ac-buyer-order-link .icon{width:16px;height:16px}
.ac-buyer-sync{font-size:11px;color:#7a8ba3;margin:6px 0 8px;text-align:right;line-height:1.4}
.ac-buyer-footer{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:14px 22px;border-top:1px solid #e2eaf5;background:#fff;flex:none}.ac-buyer-footer>div{display:flex;gap:12px;margin-left:auto;min-width:0}.ac-buyer-footer .btn{min-width:130px;height:44px;white-space:nowrap}.ac-buyer-footer .btn.primary{min-width:154px}
.ac-buyer-footer .ac-buyer-cancel{color:#b54848;min-width:0;background:transparent;border-color:transparent;padding-left:0}
.ac-buyer-detail button:focus-visible,.ac-detail-close:focus-visible,.ac-buyer-detail summary:focus-visible{outline:2px solid #0866ee;outline-offset:3px}
@media(max-width:760px){
 .ac-detail-drawer:has(.ac-buyer-detail){width:100vw}
 .ac-detail-drawer>header:has([data-ac-detail-number]){padding:14px 16px;min-height:76px}.ac-detail-drawer>header h2{font-size:19px}.ac-detail-drawer>header [data-ac-detail-number]{font-size:11px}
 .ac-buyer-scroll{padding:14px 16px 0;scrollbar-gutter:auto}.ac-buyer-state{align-items:flex-start;flex-direction:column;gap:6px;padding:12px 14px}.ac-buyer-state h2{font-size:21px}.ac-buyer-state p{border:0;padding:0;font-size:13px}
 .ac-buyer-journey{padding:0;margin:18px 0}.ac-buyer-journey li{font-size:11px;gap:7px}.ac-buyer-journey li>span{width:28px;height:28px;font-size:12px}.ac-buyer-journey li:before{top:14px}.ac-buyer-journey .icon{width:15px;height:15px}
 .ac-buyer-note{font-size:12px;padding:6px 10px}.ac-buyer-section{margin-bottom:18px}.ac-buyer-section h3{font-size:17px}.ac-buyer-product{flex-wrap:wrap;gap:10px;padding:12px}.ac-buyer-picture{width:64px;height:60px}.ac-buyer-product-copy strong{font-size:13px}.ac-buyer-product-copy p{font-size:11px}.ac-buyer-product dl{width:100%;justify-content:flex-start;gap:28px;margin:0 0 0 74px;font-size:13px}.ac-buyer-product dl>div{display:flex;gap:8px}.ac-buyer-product dt{font-size:12px;margin:0}
 .ac-buyer-fields{grid-template-columns:68px minmax(0,1fr);gap:9px 10px;padding:0 4px;font-size:13px}.ac-buyer-evidence button{width:88px;height:74px}.ac-buyer-return-address{flex-wrap:wrap;padding:10px;gap:10px;font-size:13px}.ac-buyer-return-address .btn{margin-left:32px;height:32px}
 .ac-buyer-refund>div{align-items:flex-start;gap:14px;flex-direction:column;padding:0 4px}.ac-buyer-refund dl{gap:30px}.ac-buyer-refund dd{font-size:17px}.ac-buyer-muted{margin-left:4px;margin-right:4px}.ac-buyer-logistics{padding:0 4px}.ac-buyer-logistics .ac-timeline li{gap:4px;flex-direction:column}
 .ac-buyer-order{gap:8px 10px;padding:10px;font-size:12px}.ac-buyer-order>strong{padding-right:10px}.ac-buyer-order>a:not(.ac-buyer-order-link){flex-basis:100%}.ac-buyer-order-link{margin-left:0}.ac-buyer-sync{font-size:10px;margin-top:8px}
 .ac-buyer-footer .btn.primary{min-width:0}
 .ac-buyer-footer{padding:12px 16px;gap:8px}.ac-buyer-footer>div{gap:8px;flex:1;justify-content:flex-end}.ac-buyer-footer .btn{min-width:0;height:42px;padding:0 16px;font-size:13px}.ac-buyer-footer .ac-buyer-cancel{padding-right:4px;padding-left:0;font-size:12px}
}

/* Buyer aftersales application: flat order cards, no disclosure controls. */
.ac-application-catalog{--ac-application-columns:minmax(0,51fr) minmax(82px,12fr) minmax(150px,20fr) minmax(150px,17fr)}
.ac-application-catalog .ac-search{margin:22px 0 20px;gap:12px}.ac-application-catalog .ac-search .control{height:44px;flex:1;min-width:0;font-size:14px}.ac-application-catalog .ac-search .btn{height:44px;min-width:76px}
.ac-application-columns{display:grid;grid-template-columns:var(--ac-application-columns);align-items:center;min-height:54px;padding:12px 22px;margin-bottom:24px;background:#eef5ff;border:1px solid #d7e3f4;border-radius:8px;color:#3c526f;font-size:14px;font-weight:600}
.ac-application-columns>span{padding:0 16px;text-align:center;border-left:1px solid #ccdcf1}.ac-application-columns>span:first-child{padding-left:0;border:0;text-align:left}
.ac-application-order{background:#fff;border:1px solid #d7e3f4;border-radius:8px;overflow:hidden;margin:0 0 22px;min-width:0}
.ac-application-order>header{display:flex;align-items:center;gap:28px;padding:13px 22px;background:#f4f8fe;color:#60738d;font-size:13px;line-height:1.6;flex-wrap:wrap}
.ac-application-order>header a{overflow-wrap:anywhere}.ac-application-order-amount{margin-left:auto;white-space:nowrap;color:#405773}
.ac-application-products{padding:0 14px;min-width:0}.ac-application-loading{margin:0;padding:32px 12px;color:#71849e;font-size:13px}.ac-application-products>.ac-muted{padding:18px 10px 4px}.ac-application-products>[data-ac-order-retry]{margin:8px 10px 20px}
.ac-application-product{display:grid;grid-template-columns:var(--ac-application-columns);align-items:center;min-height:128px;padding:17px 8px;border-top:1px solid #e5edf7;min-width:0}
.ac-application-product:first-child{border-top:0}
.ac-application-info{display:flex;align-items:center;gap:20px;padding:0 20px 0 2px;min-width:0}
.ac-application-picture{width:88px;height:88px;flex-shrink:0;border:1px solid #e3ebf6;border-radius:6px;background:#fff;display:grid;grid-template:minmax(0,1fr) / minmax(0,1fr);place-items:center;overflow:hidden}
.ac-application-picture img{width:100%;height:100%;min-width:0;min-height:0;object-fit:contain}.ac-application-picture>span{color:#94a7be}.ac-application-picture .icon{width:30px;height:30px}
.ac-application-copy{min-width:0;overflow-wrap:anywhere}.ac-application-copy>strong{display:block;font-size:14px;line-height:1.55;color:#1c304e}.ac-application-copy p{margin:5px 0 3px;font-size:12px;line-height:1.5;color:#6e829d}.ac-application-copy>span{font-size:13px;color:#6e829d;font-variant-numeric:tabular-nums}
.ac-application-quantity,.ac-application-eligibility,.ac-application-actions{min-width:0;min-height:86px;border-left:1px solid #e2eaf5;padding:8px 16px;display:flex;justify-content:center}
.ac-application-quantity{align-items:center}.ac-application-quantity>strong{font-size:16px;font-weight:600;color:#1b2e49}.ac-application-mobile-label{display:none}
.ac-application-eligibility{flex-direction:column;align-items:flex-start;align-self:stretch;gap:6px;color:#6d809b;font-size:13px;line-height:1.6;padding-left:26px;overflow-wrap:anywhere}
.ac-application-progress{display:flex;flex-direction:column;align-items:flex-start;gap:4px;width:100%;line-height:1.45}
.ac-application-progress .tag{
  gap:7px;
  max-width:100%;
  padding:0;
  background:none;
  font-size:14px;
  font-weight:600;
  line-height:20px;
  white-space:normal;
}
.ac-application-progress .tag::before{
  content:"";
  flex:0 0 6px;
  height:6px;
  align-self:flex-start;
  margin-top:7px;
  border-radius:50%;
  background:currentColor;
}
.ac-application-progress .tag.blue{color:#185fae}
.ac-application-progress .tag.green{color:#157557}
.ac-application-progress .tag.orange{color:#8a5b16}
.ac-application-progress-details{display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 10px;max-width:100%}
.ac-application-remaining{color:#0866ee;font-weight:600}
@media(min-width:1101px){
 .ac-application-progress-details>.ac-application-remaining{border-left:1px solid #dce5f2;padding-left:10px}
}
.ac-application-progress-meta{color:#536982}.ac-application-progress-note{color:#617693;font-size:12px}
.ac-application-progress+.ac-application-progress{margin-top:4px}
.ac-application-actions{flex-direction:column;align-items:center;gap:7px;padding-left:16px;padding-right:4px}.ac-application-actions .btn{min-width:0;width:min(162px,100%);height:40px;font-size:13px;padding:8px 12px}.ac-application-actions .btn:disabled{opacity:1;color:#9ca8b8;background:#fcfdff;border-color:#e1e8f2}.ac-application-actions .link-button{font-size:13px;padding:1px 4px}
.ac-application-pager{border-radius:8px;justify-content:space-between;padding:14px 22px;min-height:60px}.ac-application-pager>div{display:flex;gap:12px}.ac-application-pager .btn{min-width:90px}
.ac-application-legacy-actions{display:flex;justify-content:flex-end;border-top:1px solid #e5edf7;padding:14px 8px}.ac-application-legacy .ac-application-eligibility{grid-column:3 / 5}
.ac-application-catalog button:focus-visible{outline:2px solid #0866ee;outline-offset:3px}
@media(max-width:1100px) and (min-width:761px){
 .ac-application-catalog{--ac-application-columns:minmax(0,1fr) 86px 170px 150px}.ac-application-info{gap:12px;padding-right:12px}.ac-application-picture{width:68px;height:68px}.ac-application-quantity,.ac-application-eligibility,.ac-application-actions{padding-left:12px;padding-right:12px}.ac-application-order>header{gap:12px 20px}
}
@media(max-width:760px){
 .ac-application-columns{display:none}.ac-application-catalog .ac-search{flex-wrap:wrap;gap:10px;margin:18px 0}.ac-application-catalog .ac-search .control{flex-basis:100%}.ac-application-catalog .ac-search .btn{height:38px;min-width:68px}
 .ac-application-order{margin-bottom:16px}.ac-application-order>header{padding:12px 14px;gap:6px 12px;font-size:11px}.ac-application-order>header>span:nth-child(2){flex-basis:100%;overflow-wrap:anywhere}.ac-application-order-amount{margin-left:0}
 .ac-application-products{padding:0 12px}.ac-application-product{grid-template-columns:minmax(0,1fr) 130px;gap:8px 12px;padding:16px 0;min-height:0}.ac-application-info{grid-column:1 / -1;padding:0;gap:12px;align-items:flex-start}.ac-application-picture{width:64px;height:64px}.ac-application-copy>strong{font-size:13px;line-height:1.6}.ac-application-copy p{font-size:11px;margin:4px 0 2px}.ac-application-copy>span{font-size:12px}
 .ac-application-quantity,.ac-application-eligibility,.ac-application-actions{border:0;padding:0;min-height:0}.ac-application-quantity{grid-column:1;grid-row:2;justify-content:flex-start;gap:8px}.ac-application-quantity>strong{font-size:13px}.ac-application-mobile-label{display:inline;color:#75869d;font-size:12px}
 .ac-application-eligibility{grid-column:1;grid-row:3;gap:4px;font-size:12px}.ac-application-actions{grid-column:2;grid-row:2 / 4;gap:5px;align-self:center}.ac-application-actions .btn{height:36px;font-size:12px;padding:6px 8px}.ac-application-actions .link-button{font-size:12px}
 .ac-application-pager{padding:12px 14px;gap:12px;font-size:12px}.ac-application-pager>div{gap:8px}.ac-application-pager .btn{min-width:72px}.ac-application-catalog>.ac-sync{font-size:11px}
 .ac-application-legacy .ac-application-eligibility{grid-column:1 / -1;grid-row:3}
}
@media(max-width:360px){.ac-application-product{grid-template-columns:minmax(0,1fr) 114px;gap:8px}.ac-application-products{padding:0 10px}.ac-application-quantity{gap:5px}.ac-application-order>header{padding:10px}}

/* Buyer aftersales records: one application per card, matching order-center cards. */
.ac-record-catalog{--ac-record-columns:minmax(0,46fr) minmax(110px,14fr) minmax(130px,15fr) minmax(115px,13fr) minmax(130px,12fr)}
.ac-record-catalog .ac-filters{padding:18px 20px;margin:18px 0}.ac-record-catalog .ac-filter-row{gap:20px}.ac-record-catalog .ac-filter-row .control{height:42px;font-size:14px}.ac-record-catalog .ac-filter-actions .btn{height:42px;min-width:76px}.ac-record-catalog .ac-keyword{min-width:0}.ac-record-catalog .ac-keyword .control{min-width:0}.ac-record-catalog .ac-filter-row select{width:160px}.ac-record-catalog .ac-dates{margin-top:14px;gap:20px}.ac-record-catalog .ac-dates input{width:158px}.ac-record-catalog .ac-tabs{margin:14px 0 16px}.ac-record-catalog .ac-tabs a{padding:9px 2px}
.ac-record-columns{display:grid;grid-template-columns:var(--ac-record-columns);align-items:center;min-height:44px;padding:10px 20px;margin-bottom:18px;background:#eef5ff;border:1px solid #d7e3f4;border-radius:8px;font-size:14px;font-weight:600;color:#425a79}
.ac-record-columns[hidden]{display:none}.ac-record-columns>span{padding:0 10px;text-align:center;border-left:1px solid #ccdcef}.ac-record-columns>span:first-child{border:0;padding-left:4px;text-align:left}
.ac-record-card{background:#fff;border:1px solid #d7e3f4;border-radius:8px;overflow:hidden;margin-bottom:18px;min-width:0}.ac-record-card>header{display:flex;align-items:center;gap:24px;padding:12px 20px;background:#f4f8fe;font-size:12px;line-height:1.6;color:#617693;flex-wrap:wrap}.ac-record-card>header strong{font-weight:400;color:#3d5270;overflow-wrap:anywhere}.ac-record-order{margin-left:auto;min-width:0}.ac-record-card>header a{overflow-wrap:anywhere}
.ac-record-body{display:grid;grid-template-columns:var(--ac-record-columns);align-items:center;min-height:126px;padding:16px 20px;min-width:0}
.ac-record-product{display:flex;align-items:center;gap:20px;padding:0 20px 0 2px;min-width:0}.ac-record-picture{width:88px;height:88px;flex-shrink:0;border:1px solid #e3ebf6;border-radius:6px;background:#fff;display:grid;grid-template:minmax(0,1fr) / minmax(0,1fr);place-items:center;overflow:hidden}.ac-record-picture img{width:100%;height:100%;min-height:0;min-width:0;object-fit:contain}.ac-record-picture>span{color:#94a7be}.ac-record-picture .icon{width:30px;height:30px}.ac-record-product>div:last-child{min-width:0}.ac-record-product strong{display:block;font-size:14px;line-height:1.6;overflow-wrap:anywhere;color:#1c304e}.ac-record-product p{font-size:12px;color:#72859e;margin:6px 0 0;overflow-wrap:anywhere}
.ac-record-type,.ac-record-service,.ac-record-refund,.ac-record-actions{border-left:1px solid #e2eaf5;min-width:0;min-height:86px;padding:10px 12px;display:flex;justify-content:center;align-items:center;text-align:center}
.ac-record-type{flex-direction:column;gap:4px}.ac-record-type>strong{font-size:15px;font-weight:600;color:#1c304e}.ac-record-type>span{font-size:13px;color:#75869d}.ac-record-mobile-label{display:none}.ac-record-service .tag,.ac-record-refund .tag{font-size:12px;white-space:normal;line-height:1.5;max-width:100%;overflow-wrap:anywhere;padding:5px 9px}
.ac-record-actions{padding-right:4px}.ac-record-actions .btn{border-color:#b9d2ff;color:#0866ee;background:#fff;font-size:13px;min-width:0;width:min(132px,100%);height:38px}
.ac-record-pager{border-radius:8px;padding:12px 20px;gap:14px;font-size:13px;min-height:60px}.ac-record-pager .control{height:36px;width:76px}.ac-record-pager [data-ac-pages]{gap:12px}.ac-record-pager [data-ac-jump]{gap:10px}
.ac-record-catalog>[data-ac-empty]{background:#fff;border:1px solid #dce5f2;border-radius:8px;margin-bottom:18px}.ac-record-catalog a:focus-visible,.ac-record-catalog button:focus-visible{outline:2px solid #0866ee;outline-offset:3px}
@media(max-width:1100px) and (min-width:761px){
 .ac-record-catalog{--ac-record-columns:minmax(0,1fr) 115px 145px 125px 120px}.ac-record-product{gap:12px;padding-right:12px}.ac-record-picture{width:68px;height:68px}.ac-record-card>header{gap:8px 20px}.ac-record-order{margin-left:0;flex-basis:100%}.ac-record-catalog .ac-filter-row{gap:16px}.ac-record-catalog .ac-dates{margin-top:14px}
}
@media(max-width:760px){
 .ac-record-catalog .ac-filters{padding:14px;margin:16px 0}.ac-record-catalog .ac-filter-row{gap:12px;align-items:flex-end}.ac-record-catalog .ac-filter-row label{gap:7px;white-space:normal}.ac-record-catalog .ac-filter-row .control{font-size:13px;height:40px;min-width:0}.ac-record-catalog .ac-keyword{flex-basis:100%;width:100%}.ac-record-catalog .ac-filter-row select{width:148px}.ac-record-catalog .ac-filter-actions{margin-left:auto;gap:8px}.ac-record-catalog .ac-filter-actions .btn{height:40px;min-width:56px;padding:8px 12px;font-size:12px}.ac-record-catalog .ac-dates{flex-wrap:wrap;margin-top:14px;gap:10px;align-items:flex-end}.ac-record-catalog .ac-dates label{min-width:0;flex:1}.ac-record-catalog .ac-dates input{width:100%;min-width:0;max-width:100%;font-size:12px}.ac-record-catalog .ac-dates>span:not(:last-child){padding-bottom:9px}.ac-record-catalog .ac-tabs{gap:24px;margin:12px 0 16px}.ac-record-catalog .ac-tabs a{font-size:13px}
 .ac-record-columns{display:none}.ac-record-card{margin-bottom:16px}.ac-record-card>header{padding:12px 14px;gap:6px;font-size:11px;align-items:flex-start;flex-direction:column}.ac-record-card>header>span{max-width:100%;overflow-wrap:anywhere}.ac-record-order{margin-left:0}
 .ac-record-body{grid-template-columns:minmax(0,1fr) minmax(0,1fr);padding:14px;gap:12px;min-height:0}.ac-record-product{grid-column:1 / -1;gap:12px;padding:0;align-items:flex-start}.ac-record-picture{width:64px;height:64px}.ac-record-product strong{font-size:13px}.ac-record-product p{font-size:11px;margin-top:5px}
 .ac-record-type,.ac-record-service,.ac-record-refund,.ac-record-actions{border:0;padding:0;min-height:0;text-align:left}.ac-record-type{grid-column:1 / -1;justify-content:flex-start;align-items:center;flex-direction:row;gap:12px}.ac-record-type>strong{font-size:13px}.ac-record-type>span{font-size:12px}
 .ac-record-service,.ac-record-refund{flex-direction:column;align-items:flex-start;gap:5px}.ac-record-mobile-label{display:block;font-size:11px;color:#7a8ba2}.ac-record-service .tag,.ac-record-refund .tag{font-size:12px;padding:4px 7px}.ac-record-actions{grid-column:2;justify-content:flex-end}.ac-record-actions .btn{height:36px;font-size:12px;width:116px}
 .ac-record-pager{padding:12px 14px;gap:12px;font-size:12px}.ac-record-pager [data-ac-pages]{margin-left:0;flex-basis:100%;justify-content:flex-start}.ac-record-pager [data-ac-jump]{flex-wrap:wrap;gap:8px}.ac-record-pager .control{width:62px}.ac-record-pager label{gap:8px}.ac-record-catalog>.ac-sync{font-size:11px}
}
@media(max-width:360px){.ac-record-catalog .ac-filter-row select{width:128px}.ac-record-catalog .ac-filter-actions .btn{min-width:48px;padding:8px}.ac-record-catalog .ac-tabs{gap:18px}.ac-record-body{padding:12px;gap:10px}.ac-record-card>header{padding:10px 12px}}

/* Admin aftersales: order-style service cards, preserving existing management navigation. */
.ac-admin-catalog{min-width:0;container-type:inline-size}
.ac-admin-catalog .ac-admin-tabs{margin:12px 0 22px;gap:32px}
.ac-admin-catalog .ac-admin-tabs a{padding:10px 2px}
.ac-admin-catalog .ac-record-columns{margin-bottom:16px}
.ac-admin-catalog .ac-record-card>header{gap:8px 22px;font-size:13px}
.ac-admin-catalog .ac-record-product{gap:18px;padding-right:16px}
.ac-admin-catalog .ac-record-picture{width:88px;height:88px}
.ac-admin-catalog .ac-record-product strong{font-size:15px}
.ac-admin-catalog .ac-record-type>strong{font-size:16px}
.ac-admin-catalog .ac-record-service .tag,.ac-admin-catalog .ac-record-refund .tag{font-size:13px}
.ac-admin-refunds [data-ac-refunds]{min-width:0}
@container(max-width:1080px){
 .ac-admin-catalog .ac-record-columns,.ac-admin-catalog .ac-record-body{grid-template-columns:minmax(0,1fr) 124px 128px 112px 116px}
 .ac-admin-catalog .ac-record-product{gap:12px;padding-right:12px}.ac-admin-catalog .ac-record-picture{width:68px;height:68px}
 .ac-admin-catalog .ac-record-card>header{gap:6px 20px}
}
@container(max-width:920px){
 .ac-admin-catalog .ac-filter-row{flex-wrap:wrap;gap:16px}.ac-admin-catalog .ac-keyword{flex-basis:100%}.ac-admin-catalog .ac-dates{margin-top:14px}
}
@container(max-width:760px){
 .ac-admin-catalog .ac-record-product strong,.ac-admin-catalog .ac-record-type>strong{font-size:13px}
 .ac-admin-catalog .ac-record-card>header{font-size:11px}
 .ac-admin-catalog .ac-record-columns{display:none}
 .ac-admin-catalog .ac-record-body{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:12px;min-height:0;padding:14px}
 .ac-admin-catalog .ac-record-product{grid-column:1/-1;padding:0;align-items:flex-start}.ac-admin-catalog .ac-record-picture{width:64px;height:64px}
 .ac-admin-catalog .ac-record-type,.ac-admin-catalog .ac-record-service,.ac-admin-catalog .ac-record-refund,.ac-admin-catalog .ac-record-actions{border:0;padding:0;min-height:0;text-align:left}
 .ac-admin-catalog .ac-record-type{grid-column:1/-1;flex-direction:row;justify-content:flex-start;gap:12px}
 .ac-admin-catalog .ac-record-service,.ac-admin-catalog .ac-record-refund{flex-direction:column;align-items:flex-start;gap:5px}.ac-admin-catalog .ac-record-mobile-label{display:block;font-size:11px;color:#7a8ba2}
 .ac-admin-catalog .ac-record-actions{grid-column:2;justify-content:flex-end}.ac-admin-catalog .ac-record-actions .btn{width:116px}
 .ac-admin-catalog .ac-pager{flex-wrap:wrap}.ac-admin-catalog .ac-pager [data-ac-pages]{flex-basis:100%;margin-left:0}
}
@media(max-width:760px){
 .ac-admin-catalog .ac-admin-tabs{gap:24px;margin:12px 0 16px}.ac-admin-catalog .ac-admin-tabs a{font-size:14px}
 .ac-admin-catalog .ac-record-card>header{gap:6px}.ac-admin-catalog .ac-record-order{flex-basis:auto}
}
/* Buyer proof batch dialog: scoped to avoid changing other upload forms. */
.modal.buyer-proof-dialog{width:min(850px,calc(100vw - 32px));max-width:850px;max-height:calc(100dvh - 40px);display:flex;flex-direction:column}
.buyer-proof-dialog .modal-head h2{font-size:22px}
.buyer-proof-dialog .link-button.red,.buyer-proof-required{color:var(--red)}
.buyer-proof-bottom{flex-shrink:0;padding:0 28px 20px;background:#fff}
.buyer-proof-dialog .modal-body{padding:24px 28px;min-height:0;overflow-y:auto}
.buyer-proof-dialog .modal-head,.buyer-proof-dialog .modal-footer{flex-shrink:0}
.buyer-proof-order{margin:0 0 18px;color:#60738e;font-size:14px;overflow-wrap:anywhere}
.buyer-proof-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));background:#eff5fc;border-radius:8px;padding:18px 8px;margin-bottom:24px}
.buyer-proof-summary>div{padding:0 18px;display:flex;flex-direction:column;gap:8px;min-width:0}
.buyer-proof-summary>div+div{border-left:1px solid #d6e2f1}
.buyer-proof-summary span{color:#60738e;font-size:14px}
.buyer-proof-summary strong{font-size:23px;line-height:1.25;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.buyer-proof-section{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:18px}
.buyer-proof-section h3{font-size:18px;margin:0 0 5px}
.buyer-proof-section p{font-size:13px;color:#71829c;margin:0}
.buyer-proof-section .btn{flex-shrink:0;color:#0865ed;border-color:#b9d3fb;display:inline-flex;align-items:center;gap:6px}
.buyer-proof-entry{border:1px solid #d6e2f1;border-radius:8px;padding:16px;margin-bottom:14px}
.buyer-proof-entry-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:14px}
.buyer-proof-entry-head h4{margin:0;display:flex;align-items:center;gap:9px;font-size:16px}
.buyer-proof-entry-head [data-proof-number]{background:#0965ed;color:#fff;border-radius:50%;width:24px;height:24px;display:inline-flex;align-items:center;justify-content:center;font-size:13px}
.buyer-proof-entry [data-proof-remove]:disabled{opacity:.35;cursor:not-allowed}
.buyer-proof-fields{display:grid;grid-template-columns:1fr 1fr;gap:18px}
.buyer-proof-dialog .field{min-width:0;margin-bottom:14px}
.buyer-proof-dialog .field input:not([type=file]){height:42px;font-size:14px}
.buyer-proof-dialog .field>label{font-size:14px}
.buyer-proof-dialog .pdf-selection{margin-bottom:0}
.buyer-proof-dialog .pdf-selection-box{min-height:68px;padding:12px;background:#f7faff}
.buyer-proof-dialog .pdf-selection>.help{display:none}
.buyer-proof-dialog .pdf-selected{width:100%;min-width:0;gap:10px}
.buyer-proof-dialog .pdf-file-info{min-width:0;flex:1}
.buyer-proof-dialog .pdf-file-info strong{max-width:100%;display:block;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
.buyer-proof-dialog .pdf-file-actions{flex-shrink:0;gap:10px}
.buyer-proof-file-help{font-size:12px;color:#71829c;margin:0 0 16px}
.buyer-proof-total{display:flex;align-items:center;justify-content:space-between;gap:12px;background:#eaf3ff;border-radius:7px;padding:14px 16px}
.buyer-proof-total>span{display:flex;align-items:center;gap:12px;font-size:14px}
.buyer-proof-total [data-proof-total]{font-size:24px;color:#0965ed;font-variant-numeric:tabular-nums}
.buyer-proof-notice{background:#fff7e7;color:#916416;border-radius:7px;padding:10px 14px;font-size:12px;line-height:1.65;margin:12px 0 0}
.buyer-proof-notice span{display:block}
.buyer-proof-progress{margin:12px 0 0;font-size:13px;color:#0965ed}
.buyer-proof-progress:empty{display:none}
@media(max-width:600px){
 .modal.buyer-proof-dialog{width:calc(100vw - 20px);max-height:calc(100dvh - 20px)}
 .buyer-proof-dialog .modal-body{padding:18px 16px}
 .buyer-proof-bottom{padding:0 16px 14px}
 .buyer-proof-summary{padding:14px 2px;margin-bottom:18px}
 .buyer-proof-summary>div{padding:0 8px;gap:7px}
 .buyer-proof-summary span{font-size:12px}
 .buyer-proof-summary strong{font-size:17px}
 .buyer-proof-section{align-items:flex-start;gap:10px}
 .buyer-proof-section h3{font-size:16px}
 .buyer-proof-section p{font-size:12px}
 .buyer-proof-section .btn{padding:8px 10px;font-size:12px}
 .buyer-proof-entry{padding:13px}
 .buyer-proof-fields{grid-template-columns:1fr;gap:0}
 .buyer-proof-dialog .pdf-selected{flex-wrap:wrap}
 .buyer-proof-dialog .pdf-file-actions{width:100%;justify-content:flex-end}
 .buyer-proof-total{padding:12px;font-size:13px}
 .buyer-proof-total>span{gap:7px;font-size:12px}
 .buyer-proof-total [data-proof-total]{font-size:20px}
}

/* Operating reports: prominent merchandise margin and annual contract estimates. */
.profit-workspace{min-width:0;color:#1c304e}.profit-workspace .page-header{margin-bottom:20px}.profit-workspace .page-header h1{font-size:28px}
.profit-workspace .profit-filter{display:block;padding:18px 20px;margin-bottom:12px}.profit-quick{display:flex;align-items:center;gap:10px;margin-bottom:16px;font-size:14px}.profit-quick>strong{margin-right:4px}.profit-quick .btn{min-width:72px;height:34px}
.profit-filter-main{display:flex;align-items:center;gap:12px;min-width:0}.profit-workspace .profit-filter .field{margin:0;min-width:0;display:flex;align-items:center;gap:10px}.profit-filter-main .field>label{white-space:nowrap;margin:0;font-size:14px;font-weight:600}.profit-filter-main .field input,.profit-filter-main .field select{height:40px;font-size:14px;min-width:0;width:100%}.profit-filter-main .field:has([name=start]){flex:0 1 225px}.profit-filter-main .field:has([name=end]){flex:0 1 165px}.profit-filter-main .field:has([name=end])>label{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}.profit-filter-main .field:has(select){flex:1}.profit-filter-main>.btn{height:40px;min-width:68px;flex-shrink:0}.profit-date-to{color:#627894}
.profit-workspace .profit-tabs{display:flex;gap:28px;border-bottom:1px solid #d9e4f1;margin:0 0 18px;padding:0}.profit-workspace .profit-tabs button{border:0;border-bottom:3px solid transparent;border-radius:0;background:transparent;padding:10px 2px;color:#4b607c;font-size:15px;cursor:pointer}.profit-workspace .profit-tabs button.active{color:#0866ee;font-weight:600;border-bottom-color:#0866ee}
.profit-status{font-size:13px;color:#526e94;margin:0 0 12px}.profit-status:empty{display:none}
.profit-workspace .profit-kpis{grid-template-columns:repeat(5,minmax(0,1fr));gap:12px;margin-bottom:12px}.profit-workspace .profit-kpis.is-cash{grid-template-columns:repeat(4,minmax(0,1fr))}.profit-workspace .kpi{padding:18px 20px;border:1px solid #d9e5f4;border-radius:8px;box-shadow:none;min-width:0}.profit-workspace .kpi-label{font-size:14px;color:#263d59;font-weight:600;display:flex;gap:8px;align-items:center;flex-wrap:wrap}.profit-workspace .kpi-value{font-size:clamp(21px,1.9vw,30px);font-weight:700;line-height:1.4;letter-spacing:-.4px;color:#172f4d;overflow-wrap:anywhere}.profit-workspace .kpi-foot{font-size:12px;margin-top:5px;line-height:1.6;color:#647894}.profit-workspace .profit-key-metric{background:#eaf3ff;border-color:#c7dbff}.profit-workspace .profit-key-metric .kpi-value{color:#0866ee}.profit-margin{display:block;font-size:13px;line-height:1.5;margin-top:3px}.profit-workspace .kpi .tag{font-size:11px;padding:2px 7px}
.profit-supplement{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:10px;background:#fff;border:1px solid #dce6f3;border-radius:7px;padding:10px 18px;font-size:12px;color:#6b7f98;margin-bottom:14px}.profit-supplement span{display:inline-flex;align-items:center;gap:8px}.profit-supplement strong{font-size:14px;font-weight:600;color:#2c4262}.profit-contract-basis{display:flex;align-items:center;gap:18px;flex-wrap:wrap;padding:10px 18px;margin-bottom:16px;background:#eaf3ff;border:1px solid #cfe0fc;border-radius:7px;font-size:12px;line-height:1.65;color:#5f7390}.profit-contract-basis strong{color:#0967ed;font-weight:600;overflow-wrap:anywhere}.profit-contract-basis span{font-size:12px}
.profit-workspace .panel{border-radius:8px;box-shadow:none;margin-bottom:16px}.profit-workspace .panel-header{padding:14px 18px;gap:12px;flex-wrap:wrap}.profit-workspace .panel-header h2{font-size:17px}.profit-workspace .panel-header h2:before{display:none}.profit-workspace .panel-header>form{margin-left:auto}.profit-workspace .profit-search{display:flex;gap:10px;align-items:center}.profit-workspace .profit-search input{width:250px;height:34px}.profit-workspace .profit-search button{height:34px}.profit-workspace .table-wrap{padding:0 14px;overflow:auto}.profit-workspace table{font-size:13px;min-width:850px}.profit-workspace table th{padding:10px 12px;background:#eef4fc;white-space:nowrap}.profit-workspace table td{padding:10px 12px;vertical-align:middle;white-space:nowrap}.profit-workspace table td small{display:block;color:#7a8ba2;font-size:11px;margin-top:3px;max-width:220px;overflow-wrap:anywhere;white-space:normal}.profit-workspace table td:not(:first-child){text-align:right}.profit-workspace table th:not(:first-child){text-align:right}.profit-workspace table td:last-child,.profit-workspace table th:last-child{text-align:center}.profit-workspace .profit-total td{background:#edf4ff;font-weight:600}.profit-workspace .profit-positive{color:#1c304e}.profit-workspace .profit-negative{color:#c3444b}
.profit-group-tabs{display:flex;align-items:center;gap:28px;padding:0 20px;margin:0 14px;border-bottom:1px solid #dce6f3}.profit-group-tabs button{border:0;border-bottom:3px solid transparent;padding:10px 0;background:transparent;color:#526a8b;font-size:14px;cursor:pointer}.profit-group-tabs button.active{color:#0866ee;border-color:#0866ee;font-weight:600}.profit-workspace .profit-group-panel .table-wrap{padding-bottom:12px;padding-top:12px}.profit-workspace .profit-footnote{font-size:12px;line-height:1.7;color:#7b8da5}.profit-workspace .pager{padding:12px 16px}.profit-workspace a:focus-visible,.profit-workspace button:focus-visible{outline:2px solid #0967ed;outline-offset:3px}
.rebate-drawer .modal-body{padding:20px 24px}.rebate-enabled{display:flex;justify-content:space-between;align-items:center;gap:20px;padding:14px 16px;border:1px solid #d8e3f2;border-radius:8px;margin-bottom:20px}.rebate-enabled>span{display:flex;flex-direction:column;gap:5px;font-size:15px}.rebate-enabled small{font-size:12px;color:#617795;font-weight:400}.rebate-enabled input{width:20px;height:20px;accent-color:#0967ed}.rebate-section-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:12px;gap:16px}.rebate-section-head h3{font-size:18px}.rebate-drawer .field{margin-bottom:14px}.rebate-drawer .field>label{font-size:14px}.rebate-drawer .field input,.rebate-drawer .field select{height:40px;font-size:14px}.rebate-dates{display:grid;grid-template-columns:1fr 1fr;gap:16px}.rebate-drawer textarea{min-height:70px;resize:vertical}.rebate-drawer .notice{font-size:12px;line-height:1.75;margin-top:6px}.rebate-history-link{margin:16px 0;font-size:14px}.rebate-history{display:flex;flex-direction:column;gap:5px;padding:12px 0;border-top:1px solid #e2e9f4;font-size:13px}.rebate-history span{font-size:12px;color:#60758f}
@media(max-width:1250px){.profit-filter-main{flex-wrap:wrap}.profit-filter-main .field:has(select){flex:1 1 180px}.profit-workspace .profit-kpis{grid-template-columns:repeat(3,minmax(0,1fr))}.profit-workspace .kpi-value{font-size:26px}}
@media(max-width:760px){.profit-workspace .page-header{align-items:flex-start;gap:12px}.profit-workspace .page-header h1{font-size:24px}.profit-workspace .profit-filter{padding:14px}.profit-quick{gap:8px;flex-wrap:wrap}.profit-quick .btn{min-width:56px}.profit-filter-main{gap:10px}.profit-workspace .profit-filter .field{flex-direction:column;align-items:flex-start;gap:6px}.profit-filter-main .field:has([name=start]),.profit-filter-main .field:has([name=end]){flex:1 1 110px}.profit-filter-main .field:has([name=end])>label{position:static;width:auto;height:auto;clip:auto}.profit-date-to{padding-top:24px}.profit-filter-main .field:has(select){flex:1 1 42%}.profit-filter-main>.btn{flex:1}.profit-workspace .profit-tabs{gap:14px;overflow:auto}.profit-workspace .profit-tabs button{font-size:13px;white-space:nowrap}.profit-workspace .profit-kpis,.profit-workspace .profit-kpis.is-cash{grid-template-columns:repeat(2,minmax(0,1fr))}.profit-workspace .kpi{padding:14px 12px}.profit-workspace .kpi-value{font-size:22px}.profit-workspace .kpi-label{font-size:13px}.profit-workspace .profit-key-metric{grid-column:1/-1;grid-row:1}.profit-workspace .profit-key-metric .kpi-value{font-size:30px}.profit-supplement{gap:10px 20px;padding:12px}.profit-supplement>span{flex:1 1 40%;flex-wrap:wrap}.profit-contract-basis{padding:12px;gap:6px}.profit-workspace .profit-search input{width:100%;min-width:0}.profit-workspace .panel-header>form{width:100%;margin:0}.profit-workspace .profit-search{width:100%}.profit-workspace .panel-header{padding:12px 14px}.profit-group-tabs{padding:0;gap:22px}.rebate-drawer .modal-body{padding:16px}.rebate-dates{gap:10px}.rebate-drawer .field input{min-width:0;width:100%}}
/* Final fidelity adjustments are local to the new report/contract surfaces. */
.profit-workspace .profit-filter .field{flex-direction:row}
.profit-workspace .profit-group-panel table td,.profit-workspace .profit-group-panel table th{padding-top:8px;padding-bottom:8px}
.profit-workspace .profit-group-panel table td:last-child,.profit-workspace .profit-group-panel table th:last-child{text-align:right}
.profit-workspace .profit-order-detail :is(th,td):is(:nth-child(2),:nth-child(6)){text-align:left}
.profit-workspace .profit-order-detail .profit-positive{color:#178044}
.feature-drawer.rebate-drawer{width:min(680px,100vw)}.feature-drawer.rebate-drawer::backdrop{background:#1c304e33}.rebate-drawer h2{font-size:25px}
html:has(.rebate-drawer[open]) .feature-settings{margin-right:0}
@media(max-width:760px){.profit-workspace .profit-filter .field{flex-direction:column}}

/* Batch procurement refund receipt verification */
.refund-batch-editor.modal.wide {
  width: min(1040px, 96vw);
  max-width: 1040px;
}
.refund-batch-editor .modal-head { padding-block: 16px; }
.refund-batch-editor .modal-body { padding-block: 18px; }
.refund-batch-editor .rfv-section { margin-top: 18px; }
.rfv-batch-context {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  margin-bottom: 14px;
  color: #61758f;
}
.rfv-batch-context b {
  color: #182c49;
  margin-left: 6px;
  overflow-wrap: anywhere;
}
.rfv-batch-amounts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  padding: 15px 0;
  margin-bottom: 14px;
  background: #edf5ff;
  border: 1px solid #dce9fb;
  border-radius: 9px;
}
.rfv-batch-amounts > div { padding: 0 18px; }
.rfv-batch-amounts > div + div { border-left: 1px solid #d5e3f5; }
.rfv-batch-amounts span { display: block; color: #425979; font-size: 12px; }
.rfv-batch-amounts strong {
  display: block;
  margin-top: 5px;
  font-size: clamp(17px, 2.2vw, 25px);
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}
.rfv-batch-amounts > :is(:first-child, :last-child) strong { color: var(--blue); }
.rfv-batch-title {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 12px;
  margin-bottom: 12px;
}
.rfv-batch-title h3 { margin: 0; font-size: 16px; }
.rfv-batch-title span { color: #61758f; font-size: 12px; }
.rfv-batch-line {
  margin-bottom: 12px;
  padding: 0 14px 10px;
  border: 1px solid #dbe5f2;
  border-radius: 8px;
  min-width: 0;
}
.rfv-batch-line header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 9px 14px;
  margin: 0 -14px 11px;
  background: #f5f8fc;
  border-bottom: 1px solid #e5ebf4;
  border-radius: 8px 8px 0 0;
}
.rfv-batch-line header h4 { display: flex; align-items: center; gap: 8px; margin: 0; color: #182c49; font-size: 14px; }
.rfv-line-number {
  display: inline-grid;
  place-items: center;
  width: 21px;
  height: 21px;
  border-radius: 4px;
  background: var(--blue);
  color: white;
  font-size: 12px;
}
.rfv-batch-line .field { min-width: 0; margin: 0; gap: 0; }
.refund-batch-editor .rfv-batch-line .field > label { margin-bottom: 5px; }
.rfv-batch-fields {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 10px 16px;
  margin-bottom: 10px;
}
.rfv-batch-line .control { width: 100%; min-width: 0; }
.refund-batch-editor .rfv-batch-line .pdf-selection-box {
  min-height: 0;
  padding: 6px 10px;
  background: #f2f7ff;
}
.refund-batch-editor .rfv-batch-line .pdf-selection > .help { display: none; }
.rfv-recognition {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 12px;
  margin: 5px 0;
  color: #61758f;
  font-size: 12px;
}
.rfv-batch-meta { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: baseline; gap: 0 12px; }
.rfv-batch-meta:has(details[open]) { grid-template-columns: 1fr; }
.rfv-batch-line details { margin-top: 4px; }
.rfv-batch-line summary {
  width: fit-content;
  max-width: 100%;
  padding: 3px 0;
  cursor: pointer;
  color: #425979;
  font-size: 12px;
}
.rfv-batch-line details > .field { margin-top: 6px; }
.rfv-batch-line textarea { min-height: 60px; resize: vertical; }
.rfv-case-fields {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 8px 14px;
  margin-top: 6px;
}
.rfv-add-line { color: var(--blue); border-color: #a9c8fa; }
.rfv-batch-confirm {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 14px;
  color: #425979;
  font-size: 13px;
}
.rfv-batch-confirm[hidden] { display: none; }
.rfv-batch-footer-summary { margin-right: auto; color: #182c49; }
.rfv-batch-footer-summary strong {
  margin-left: 8px;
  color: var(--blue);
  font-size: 22px;
  font-variant-numeric: tabular-nums;
}
.rfv-batch-footer-summary strong.rfv-over-budget { color: var(--red); }
.rfv-batch-footer-summary small { display: block; color: #61758f; }
@media (max-width: 650px) {
  .rfv-batch-fields, .rfv-case-fields, .rfv-batch-meta { grid-template-columns: 1fr; }
  .rfv-batch-amounts { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px 0; }
  .rfv-batch-amounts > div { padding-inline: 12px; }
  .rfv-batch-amounts > div:nth-child(3) { border-left: 0; }
  .refund-batch-editor .modal-footer { display: grid; grid-template-columns: auto 1fr; }
  .rfv-batch-footer-summary { grid-column: 1/-1; }
}

/* Scoped aftersale progress and directional parcels. */
.ac-processing-result dl{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin:0 0 12px}
.ac-processing-result dl>div{padding:16px;background:#f5f8fd;border-radius:8px}
.ac-processing-result dt{color:#64748b;font-size:13px;margin-bottom:8px}
.ac-processing-result dd{margin:0;font-weight:600;color:#183153}
.ac-result-note{padding:10px 12px;border-radius:6px;background:#fff8e8;color:#856020;line-height:1.6}
.ac-shipment-grid{display:grid;gap:16px}
.ac-shipment-direction{border:1px solid #dce5f2;border-radius:10px;padding:18px;min-width:0}
.ac-shipment-direction h4{margin:0 0 12px;color:#183153;font-size:15px}
.ac-shipment-direction p{line-height:1.65;margin:8px 0}
.ac-shipment-direction details{border-top:1px solid #edf1f7;margin-top:10px;padding-top:12px}
.ac-shipment-direction summary{cursor:pointer;line-height:1.6;overflow-wrap:anywhere}
.ac-shipment-direction summary span{color:#0666ee;margin-left:12px}
.ac-event-source{display:block;color:#7a8aa2;font-size:12px;margin-top:5px;font-weight:400}
.ac-history-table{overflow-x:auto}.ac-history-table strong{font-weight:500;line-height:1.6}
.ac-detail .ac-journey,.ac-buyer-detail .ac-buyer-journey{grid-template-columns:repeat(var(--ac-step-count,6),minmax(0,1fr))}
@media(max-width:640px){.ac-processing-result dl{grid-template-columns:1fr}.ac-shipment-direction{padding:14px}.ac-detail .ac-journey,.ac-buyer-detail .ac-buyer-journey{overflow-x:auto;grid-template-columns:repeat(var(--ac-step-count,6),minmax(72px,1fr))}.ac-history-table .ac-time{min-width:130px}}


/* Aftersale return is status-only; replacement delivery owns its timeline. */
.ac-return-status{display:flex;align-items:center;flex-wrap:wrap;gap:12px 24px;min-height:36px}
.ac-return-section{background:#f7faff}
.ac-outgoing-parcel{padding:16px 0;border-top:1px solid #e7edf5}
.ac-parcel-heading{display:flex;align-items:center;justify-content:space-between;gap:16px}
.ac-latest-track{display:flex;gap:20px;padding:14px 16px;background:#f6f8fc;border-radius:8px;line-height:1.65;font-size:14px}
.ac-latest-track time{flex-shrink:0;color:#6e8098;font-size:13px}
.ac-latest-track span,.ac-outgoing-parcel .ac-timeline strong{overflow-wrap:anywhere;min-width:0}
.ac-outgoing-parcel .ac-timeline{padding-left:8px}
@media(max-width:640px){.ac-return-status{align-items:flex-start;flex-direction:column;gap:10px}.ac-latest-track{flex-direction:column;gap:6px}.ac-parcel-heading{flex-wrap:wrap}.ac-outgoing-parcel .ac-timeline li{flex-direction:column;gap:6px}}

/* Aftersale: provider refund evidence is independent of customer money. */
.ac-provider-refund section + section {border-top:1px solid #e4ebf5;margin-top:18px;padding-top:18px}
.ac-provider-refund h4 {margin:0 0 10px;font-size:14px;color:#263e60}
.ac-provider-refund .ac-values {margin-top:14px}
.ac-provider-refund .ac-values dd {overflow-wrap:anywhere}

.sales-invoice-management .panel-header {gap:12px;padding:16px 24px}
.sales-invoice-filter {display:flex;align-items:flex-end;flex-wrap:wrap;gap:16px;padding:20px 24px 24px}
.sales-invoice-filter .field {flex:0 1 165px;margin:0}
.sales-invoice-filter .sales-invoice-search {flex:1 1 270px;min-width:min(250px,100%)}
.sales-invoice-search>div {position:relative}
.sales-invoice-search .icon {position:absolute;left:11px;top:50%;transform:translateY(-50%);color:var(--muted);pointer-events:none}
.sales-invoice-filter .sales-invoice-search input[type=search] {width:100%;padding-left:36px}
.sales-invoice-filter .field select {width:100%}
.sales-invoice-dates {flex:1 1 320px;min-width:min(305px,100%);margin:0;padding:0;border:0}
.sales-invoice-dates legend {padding:0;margin-bottom:8px;font-size:13px;font-weight:600;line-height:20px}
.sales-invoice-dates>div {display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);align-items:center;gap:10px;color:var(--muted)}
.sales-invoice-dates input.control {width:100%;min-width:0;padding:8px 10px}
.sales-invoice-filter-actions {display:flex;gap:10px}
.sales-invoice-filter-actions .btn {white-space:nowrap}
.sales-invoice-management table {min-width:980px;font-size:14px}
.sales-invoice-management :is(th,td) {padding:13px 10px;vertical-align:middle}
.sales-invoice-management :is(th,td):first-child {padding-left:20px}
.sales-invoice-management :is(th,td):last-child {padding-right:20px}
.sales-invoice-management th {white-space:nowrap;background:#edf3fb}
.sales-invoice-management td:is(:first-child,:nth-child(n+6)) {white-space:nowrap}
.sales-invoice-management td:is(:nth-child(3),:nth-child(4),:nth-child(5)) {min-width:7.5em;max-width:22em;overflow-wrap:anywhere}
.sales-invoice-management td:nth-child(5) {min-width:10em;word-break:break-all}
.sales-invoice-management td:nth-child(2) {color:var(--muted)}
.sales-invoice-management :is(th,td):nth-child(6) {text-align:right;font-variant-numeric:tabular-nums}
.sales-invoice-management td:nth-child(6) {font-weight:600}
.sales-invoice-management .sales-invoice-handle {color:#1262d6;border-color:#a9c8f9}
.sales-invoice-management .sales-invoice-handle:hover {background:#edf4ff}
@media(max-width:600px){
 .sales-invoice-management .panel-header,.sales-invoice-filter {padding-inline:16px}
 .sales-invoice-filter>.field,.sales-invoice-dates {flex:1 1 100%}
}

.agreement-document{width:840px;padding:40px 48px;color:var(--text);line-height:1.85;overflow-wrap:anywhere}
.agreement-document h1{margin:0 0 16px}
.agreement-document h2{margin:28px 0 12px;font-size:18px;line-height:1.5}
.agreement-document h3{margin:20px 0 8px;font-size:15px;line-height:1.6}
.agreement-document p{margin:0 0 10px}
.agreement-document .agreement-date{color:var(--muted);font-size:13px;margin-bottom:2px}
.footer-note a{color:var(--blue)}
.b2b-template-help{margin:10px 0 0;line-height:1.6}
.sidebar-brand strong{font-size:16px;line-height:1.5}
@media(max-width:720px){
 .agreement-document{padding:24px 18px}
 .agreement-document h1{font-size:21px}
 .entry-header .brand strong{white-space:normal;line-height:1.35}
}
