:root{
  --side:#1f3041;--side2:#172635;--cyan:#18b7be;--cyan2:#10aab1;--bg:#edf2f6;--panel:#fff;--line:#dfe6ee;--text:#1f2937;--muted:#6b7280;--head:#f5f8fb;--blue:#2188e8;--green:#2fc18c;--orange:#f0ad22;--red:#df4b4b;--shadow:0 2px 7px rgba(31,41,55,.12);--soft:0 1px 3px rgba(31,41,55,.08)
}
*{box-sizing:border-box}html,body{min-height:100%}body{margin:0;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Microsoft YaHei",Arial,sans-serif;background:var(--bg);color:var(--text);font-size:14px}a{text-decoration:none;color:inherit}button,.btn{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:32px;padding:0 15px;border-radius:3px;border:1px solid var(--cyan);background:var(--cyan);color:#fff;font-weight:700;cursor:pointer;white-space:nowrap}button:hover,.btn:hover{background:var(--cyan2);color:#fff}.btn.secondary,button.secondary{background:#fff;color:#4b5563;border-color:#cfd8e3}.btn.secondary:hover,button.secondary:hover{border-color:var(--cyan);color:var(--cyan);background:#f8ffff}.btn.danger,button.danger{background:var(--red);border-color:var(--red);color:#fff}input,select,textarea{height:34px;border:1px solid #cfd8e3;border-radius:3px;background:#fff;padding:0 10px;outline:none;font:inherit;color:#111827}textarea{height:auto;min-height:78px;padding:9px 10px;resize:vertical}input:focus,select:focus,textarea:focus{border-color:var(--cyan);box-shadow:0 0 0 2px rgba(24,183,190,.12)}input[readonly],select:disabled,textarea[readonly]{background:#f4f6f8;color:#667085}label{display:block;font-weight:700;color:#374151}label input,label select,label textarea{margin-top:6px;width:100%;font-weight:400}label.check{height:34px;display:flex;align-items:center;gap:8px;margin-top:22px;border:1px solid #d7e0e9;background:#f8fafc;border-radius:3px;padding:0 10px}label.check input{width:auto;height:auto;margin:0;accent-color:var(--cyan)}
.yd-app{min-height:100vh}.yd-sidebar{position:fixed;left:0;top:0;bottom:0;width:96px;background:var(--side);z-index:20;color:#cbd5e1;box-shadow:2px 0 5px rgba(0,0,0,.15);overflow:visible}.yd-logo{height:54px;display:flex;flex-direction:column;align-items:center;justify-content:center;color:#fff;border-bottom:1px solid rgba(255,255,255,.08)}.yd-logo-mark{font-weight:900;font-size:17px;letter-spacing:-1px}.yd-logo-text{font-size:12px;opacity:.92;margin-top:1px}.yd-nav{padding-top:6px}.yd-nav-item{position:relative}.yd-nav-main{height:64px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;color:#c9d4df;border-left:4px solid transparent}.yd-nav-main span:last-child{font-weight:700;font-size:14px}.yd-nav-ico{font-size:19px;line-height:1;color:#d6e0ea}.yd-nav-item:hover .yd-nav-main,.yd-nav-item.active .yd-nav-main{background:var(--cyan);color:#fff;border-left-color:#00efff}.yd-nav-item:hover .yd-nav-ico,.yd-nav-item.active .yd-nav-ico{color:#fff}.yd-mega{display:none;position:absolute;left:96px;top:0;min-width:640px;max-width:880px;background:var(--cyan);color:#fff;padding:24px 26px;box-shadow:0 8px 24px rgba(15,23,42,.20);grid-template-columns:repeat(3,180px);gap:20px;z-index:50}.yd-mega-small{grid-template-columns:repeat(2,190px);min-width:430px}.yd-nav-item.has-mega:hover .yd-mega{display:grid}.mega-col{border-right:1px solid rgba(255,255,255,.35);min-height:130px;padding-right:18px}.mega-col:last-child{border-right:0}.mega-col h4{margin:0 0 18px;font-size:15px;font-weight:600;color:#bffcff}.mega-col a{display:block;padding:8px 0;color:#fff;font-size:15px;font-weight:800}.mega-col a:hover{text-decoration:underline}.yd-side-bottom{position:absolute;left:0;right:0;bottom:10px}.yd-side-bottom a{height:44px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;color:#cbd5e1;font-size:12px}.yd-side-bottom a:hover{color:#fff;background:rgba(255,255,255,.06)}
.yd-main{margin-left:96px;min-height:100vh}.yd-topbar{height:46px;background:#e7edf3;border-bottom:1px solid #d7e0ea;display:flex;justify-content:space-between;align-items:stretch;padding:0 16px 0 24px}.yd-tab{align-self:flex-end;min-width:86px;height:40px;background:#fff;border-radius:7px 7px 0 0;display:flex;align-items:center;justify-content:center;font-size:15px;font-weight:800;color:#111827;box-shadow:0 -1px 0 rgba(255,255,255,.8)}.yd-top-tools{display:flex;align-items:center;gap:11px;color:#667085;font-size:13px}.yd-user-dot{width:24px;height:24px;border-radius:50%;background:#fff;color:var(--cyan);display:grid;place-items:center;font-weight:900;border:1px solid #dce5ee}.yd-role{border-right:1px solid #cfd8e3;padding-right:12px}.yd-exit{color:#4b5563}.yd-exit:hover{color:var(--cyan)}.yd-titlebar{height:52px;background:#fff;border-bottom:1px solid #d7e0ea;display:flex;align-items:center;justify-content:space-between;padding:0 24px}.yd-titlebar h1{font-size:18px;margin:0;font-weight:500;color:#111827}.yd-title-actions{display:flex;gap:16px;font-size:13px;color:#4b5563}.yd-title-actions a:hover{color:var(--cyan)}.yd-content{padding:18px 22px 34px}.alert{display:flex;align-items:center;gap:8px;padding:10px 14px;border-radius:3px;margin-bottom:14px;border:1px solid #bee3e6;background:#f0fdff;color:#087b82;font-weight:700}.alert.success{background:#ecfdf5;border-color:#b7ebc6;color:#0f7d42}.alert.danger{background:#fff2f2;color:#b42318;border-color:#ffd0d0}.alert span{font-weight:900}
.page-head{background:#fff;border:1px solid #dfe6ee;border-radius:2px;padding:14px 16px;display:flex;align-items:center;justify-content:space-between;margin-bottom:14px;box-shadow:var(--soft)}.page-head h1{font-size:18px;margin:0 0 5px;font-weight:700}.page-head p{margin:0;color:#6b7280;line-height:1.5}.toolbar{background:#fff;border:1px solid #dfe6ee;border-radius:2px;padding:10px 12px;margin-bottom:12px;display:flex;gap:10px;align-items:center;flex-wrap:wrap;box-shadow:var(--soft)}.toolbar form{display:flex;gap:10px;align-items:center;flex-wrap:wrap}.toolbar input:not([type=file]),.toolbar select{min-width:260px}.toolbar input[type=file]{height:auto;padding:6px;background:#fff}.panel,.form-card,.yd-box{background:#fff;border:1px solid #dfe6ee;border-radius:2px;box-shadow:var(--soft);padding:16px;margin-bottom:14px}.panel h2,.yd-box-title{margin:0;font-size:16px;font-weight:800}.panel h3{margin:0 0 6px}.panel p{color:#667085;line-height:1.65}.grid2{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.feature-card{display:block;background:#fff;border:1px solid #dfe6ee;border-radius:2px;padding:16px;min-height:110px}.feature-card:hover{border-color:var(--cyan);box-shadow:0 3px 10px rgba(24,183,190,.12)}.feature-icon{width:36px;height:36px;border-radius:4px;display:grid;place-items:center;background:#e8fbfc;color:var(--cyan);font-size:20px;margin-bottom:10px}.cards{display:grid;grid-template-columns:repeat(4,minmax(160px,1fr));gap:14px;margin:14px 0}.card{background:#fff;border:1px solid #dfe6ee;border-radius:2px;box-shadow:var(--soft);padding:17px}.card-icon{width:38px;height:38px;background:#eafafb;color:var(--cyan);display:grid;place-items:center;border-radius:4px;margin-bottom:8px}.card .num{font-size:30px;font-weight:900;color:#111827}.card div:last-child{color:#667085}
.form-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin-bottom:14px}.form-grid.inline{grid-template-columns:2fr 2fr 1fr auto auto;align-items:end}.actions{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin-top:14px}.help{border:1px dashed #b8c5d2;background:#f8fafc;padding:11px 13px;color:#526071;line-height:1.6;margin:12px 0}.section-title{font-size:15px;font-weight:900;color:#111827;border-top:1px solid #e6edf4;padding-top:14px;margin:18px 0 12px}.table-wrap{background:#fff;border:1px solid #dfe6ee;border-radius:2px;box-shadow:var(--soft);overflow:auto;margin-bottom:14px}table{width:100%;border-collapse:collapse;min-width:900px}th,td{border-bottom:1px solid #ecf0f5;padding:10px 12px;text-align:left;vertical-align:middle;white-space:nowrap}th{background:#f4f7fb;color:#111827;font-size:13px;font-weight:800;height:38px}td{height:42px;color:#344054}tbody tr:hover td{background:#f8fbfd}tbody tr:last-child td{border-bottom:0}tfoot td{background:#fbfdff;font-weight:900}.num-cell{text-align:right;font-variant-numeric:tabular-nums}.qty{max-width:112px}.tag{display:inline-flex;align-items:center;justify-content:center;min-height:22px;padding:0 8px;border-radius:3px;background:#eafafb;color:#0f8b92;border:1px solid #c7eef1;font-size:12px;font-weight:800}.tag.ok{background:#eefbf3;color:#16834b;border-color:#cdeed9}.tag.off{background:#f2f4f7;color:#667085;border-color:#d7dee8}.tag.warn{background:#fff7e6;color:#ad6b00;border-color:#ffe0a3}.tag.gift{background:#fff3e8;color:#c75c00;border-color:#ffd7b3}.gift-row td{background:#fffaf3}.gift-preview{color:#c75c00;font-size:12px;font-weight:800;margin-top:5px;min-height:16px}.promo-text{color:#0f8b92;font-weight:800}.empty-state{text-align:center;color:#667085;background:#fff;border:1px dashed #cbd5df;padding:34px;margin-top:10px}.customer-card{display:grid;grid-template-columns:2fr 1fr 1fr;gap:12px}.mini-stat{border:1px solid #e3e9f0;background:#fbfdff;padding:12px}.mini-stat b{display:block;margin-bottom:5px;color:#111827}.mini-stat span{color:#667085}.order-tips{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-bottom:14px}.order-tip{background:#fff;border:1px solid #dfe6ee;border-radius:2px;padding:12px;display:flex;gap:10px}.order-tip .ico{width:28px;height:28px;border-radius:50%;background:#e8fbfc;color:#0f8b92;display:grid;place-items:center;font-weight:900}.order-tip strong{display:block;margin-bottom:3px}.order-tip span{color:#667085;font-size:13px;line-height:1.5}
.yd-home-layout{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:18px}.yd-user-card{height:76px;background:#fff;border:1px solid #dfe6ee;box-shadow:var(--soft);display:flex;align-items:center;padding:0 22px;margin-bottom:14px}.yd-user-avatar{width:36px;height:36px;border-radius:50%;background:#dff8fa;color:#0f9aa2;display:grid;place-items:center;font-weight:900;margin-right:14px}.yd-user-info b{font-size:16px;margin-right:16px}.yd-user-info span{color:#4b5563;border-left:1px solid #d7dee8;padding-left:16px}.yd-version{margin-left:auto;color:#667085;font-size:13px}.yd-box-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:12px}.yd-box-head a,.yd-mini-tools{font-size:12px;color:#667085}.yd-shortcuts{display:grid;grid-template-columns:repeat(7,minmax(90px,1fr));gap:12px;padding-top:12px}.yd-shortcuts a{height:80px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;color:#111827}.yd-shortcuts a:hover{color:var(--cyan)}.yd-shortcuts i{width:38px;height:38px;border-radius:4px;background:var(--blue);color:#fff;display:grid;place-items:center;font-style:normal;font-weight:900;font-size:19px}.yd-shortcuts a:nth-child(2n) i{background:var(--green)}.yd-shortcuts a:nth-child(3n) i{background:var(--orange)}.yd-todo-grid{display:grid;grid-template-columns:repeat(5,minmax(130px,1fr));gap:12px}.yd-todo-grid a{height:58px;background:#dff8fa;display:flex;align-items:center;gap:10px;padding:0 12px}.yd-todo-grid i{width:34px;height:34px;border-radius:50%;background:var(--cyan);color:#fff;display:grid;place-items:center;font-style:normal}.yd-todo-grid b{font-size:18px}.yd-todo-grid span{display:block;color:#526071;font-size:12px}.yd-filter-tabs{display:flex;border:1px solid #d7e0e9}.yd-filter-tabs span{padding:5px 11px;color:#526071;border-left:1px solid #d7e0e9;font-size:12px}.yd-filter-tabs span:first-child{border-left:0}.yd-filter-tabs .active{color:var(--cyan);background:#f0ffff}.yd-metrics{display:grid;grid-template-columns:repeat(4,1fr);border:1px solid var(--cyan);margin-top:12px}.yd-metrics div{text-align:center;padding:18px 0}.yd-metrics b{font-size:22px;display:block}.yd-metrics span{font-size:12px;color:#526071}.yd-chart-area{height:260px;display:grid;grid-template-columns:1.3fr 1fr;gap:20px;align-items:center}.yd-chart-lines{height:190px;position:relative;border-bottom:1px solid #aab5c1;margin:0 20px}.yd-chart-lines span{position:absolute;left:0;right:0;border-top:1px solid #e0e6ed}.yd-chart-lines span:nth-child(1){top:10%}.yd-chart-lines span:nth-child(2){top:30%}.yd-chart-lines span:nth-child(3){top:50%}.yd-chart-lines span:nth-child(4){top:70%}.yd-chart-lines span:nth-child(5){top:90%}.yd-donut{width:140px;height:140px;border:22px solid #2188e8;border-radius:50%;display:grid;place-items:center;margin:auto}.yd-donut div{text-align:center}.yd-donut b{display:block}.yd-donut small{color:#526071}.yd-warning-list{list-style:none;margin:0;padding:0}.yd-warning-list li{height:30px;display:flex;justify-content:space-between;align-items:center;color:#526071;font-size:13px}.yd-warning-list b{color:#111827}.yd-notice p{font-size:13px;color:#344054;line-height:1.6;border-bottom:1px solid #eef2f6;padding-bottom:10px}.yd-demo{background:linear-gradient(135deg,#17b5c0,#36c6d0);color:#fff;border:0}.yd-demo p{color:#e8feff}.yd-demo button{background:#fff;color:#0f8b92;border-color:#fff;width:100%}
.login-page{min-height:100vh;display:grid;place-items:center;background:linear-gradient(135deg,#e7f3f4,#f6f9fb);padding:24px}.login-card{width:min(460px,100%);background:#fff;border:1px solid #dfe6ee;border-radius:6px;box-shadow:0 10px 30px rgba(31,48,65,.18);padding:32px 34px 34px}.login-logo-wrap{display:flex;justify-content:center;align-items:center;margin:0 0 18px}.login-logo-wrap img{display:block;max-width:150px;max-height:150px;object-fit:contain}.login-card h1{font-size:18px;line-height:1.5;margin:0 0 18px;text-align:center;color:#173567;font-weight:900}.login-card label{margin-top:12px}.login-card input{height:42px}.login-card button{width:100%;height:42px;margin-top:18px}.hint{background:#f8fafc;border:1px solid #dfe6ee;color:#667085;line-height:1.6;padding:11px;margin-top:14px}
@media(max-width:1280px){.yd-home-layout{grid-template-columns:1fr}.yd-home-side{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}.yd-shortcuts{grid-template-columns:repeat(4,1fr)}.yd-todo-grid{grid-template-columns:repeat(3,1fr)}}@media(max-width:900px){.yd-sidebar{position:relative;width:100%;height:auto}.yd-nav{display:flex;overflow:auto;padding:0}.yd-nav-item{min-width:82px}.yd-nav-main{height:58px}.yd-mega{display:none!important}.yd-side-bottom{display:none}.yd-main{margin-left:0}.yd-content{padding:12px}.yd-topbar{padding-left:12px}.yd-titlebar{padding:0 12px}.page-head{display:block}.page-head .btn,.page-head button{margin-top:10px}.form-grid,.form-grid.inline,.grid2,.customer-card,.order-tips,.yd-home-side,.yd-chart-area{grid-template-columns:1fr}.cards{grid-template-columns:repeat(2,1fr)}.yd-shortcuts{grid-template-columns:repeat(3,1fr)}.yd-todo-grid{grid-template-columns:repeat(2,1fr)}.toolbar,.toolbar form{display:block}.toolbar input:not([type=file]),.toolbar select{min-width:100%;width:100%;margin-bottom:8px}.toolbar button,.toolbar .btn{margin-top:8px}.yd-title-actions{display:none}}@media(max-width:560px){.cards,.yd-shortcuts,.yd-todo-grid,.yd-metrics{grid-template-columns:1fr}.yd-top-tools .yd-role,.yd-top-tools .yd-username{display:none}}


/* ===== CRM客户开发管理 ===== */
.crm-tabs{display:flex;gap:8px;flex-wrap:wrap;margin:0 0 12px}.crm-tabs a{display:inline-flex;align-items:center;gap:6px;background:#fff;border:1px solid #dfe6ee;border-radius:3px;padding:9px 13px;color:#344054}.crm-tabs a.active{background:#e8fbfc;color:#0f8b92;border-color:#9be3e8;font-weight:900}.crm-tabs b{background:#f2f4f7;border-radius:10px;padding:1px 7px;font-size:12px}.crm-card-link{color:inherit}.crm-card-link:hover{border-color:#16b8c1;box-shadow:0 3px 12px rgba(22,184,193,.14)}.crm-recent-list{list-style:none;margin:0;padding:0}.crm-recent-list li{border-bottom:1px solid #eef2f6}.crm-recent-list li:last-child{border-bottom:0}.crm-recent-list a{display:block;padding:10px 0}.crm-recent-list b{display:block;color:#111827;margin-bottom:4px}.crm-recent-list span,.muted{color:#667085;font-size:12px}.crm-flow{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px;margin-top:12px}.crm-flow div{border:1px solid #dfe6ee;background:#fbfdff;padding:13px;min-height:86px}.crm-flow b{width:28px;height:28px;border-radius:50%;display:grid;place-items:center;background:#16b8c1;color:#fff;margin-bottom:8px}.crm-flow span{line-height:1.5;color:#344054}.compact table{min-width:650px}.crm-public-row td{background:#fffaf2}.inline-form{display:inline-flex;gap:8px;align-items:center;flex-wrap:wrap}.inline-form select{min-width:150px}.help-inline{color:#667085;font-size:12px;line-height:34px}.crm-follow-card{border:1px solid #e3e9f0;background:#fbfdff;padding:12px;margin-bottom:12px}.crm-follow-head{display:flex;justify-content:space-between;gap:10px;border-bottom:1px solid #e7edf4;padding-bottom:8px;margin-bottom:8px}.crm-follow-head span{color:#667085}.crm-follow-card p{white-space:pre-wrap;color:#344054;margin:0 0 8px}.crm-info-list p{border-bottom:1px solid #eef2f6;margin:0;padding:9px 0;color:#344054}.actions.vertical{display:block}.actions.vertical form,.actions.vertical a{margin:8px 0}.actions.vertical input{margin-bottom:8px}.crm-review-form{display:grid;grid-template-columns:repeat(2,minmax(150px,1fr));gap:8px;min-width:520px}.crm-review-form button{min-height:34px}.danger,button.danger{background:#d92d20;border-color:#d92d20;color:#fff}.danger:hover,button.danger:hover{background:#b42318;border-color:#b42318}.crm-region input{background:#fff}.form-card textarea{min-height:92px}.table-wrap td .btn{white-space:nowrap}
@media(max-width:1100px){.crm-flow{grid-template-columns:1fr 1fr}.crm-review-form{grid-template-columns:1fr;min-width:260px}}@media(max-width:560px){.crm-flow{grid-template-columns:1fr}.crm-follow-head{display:block}.crm-tabs a{width:100%;justify-content:space-between}}

/* ===== 广东云创品牌皮肤 + 树状下单页面 ===== */
:root{
  --tcyy-blue:#0f6be8;
  --tcyy-blue2:#1d86d4;
  --tcyy-navy:#0b285f;
  --tcyy-light:#eef6ff;
  --tcyy-line:#dbe8f7;
}
body{background:linear-gradient(135deg,#f8fbff 0%,#eef6ff 45%,#f7fbff 100%);}
.tcyy-sidebar{width:230px;background:rgba(255,255,255,.96);color:#1f2937;border-right:1px solid var(--tcyy-line);box-shadow:4px 0 20px rgba(15,107,232,.08);overflow:hidden;}
.tcyy-main{margin-left:230px;}
.tcyy-logo{height:96px;padding:12px 18px;display:flex;align-items:center;justify-content:center;background:#fff;border-bottom:1px solid var(--tcyy-line);}
.tcyy-logo img{max-width:184px;max-height:76px;object-fit:contain;display:block;}
.tcyy-nav{padding:16px 10px;}
.tcyy-nav-link{display:flex;align-items:center;gap:12px;height:46px;margin:5px 0;padding:0 15px;border-radius:12px;color:#253246;border-left:0;background:transparent;font-weight:800;transition:.18s;}
.tcyy-nav-link .yd-nav-ico{width:24px;font-size:19px;color:#3e5877;text-align:center;}
.tcyy-nav-link span:last-child{font-size:15px;font-weight:800;}
.tcyy-nav-link:hover,.tcyy-nav-link.active{background:linear-gradient(90deg,#e8f2ff,#f7fbff);color:var(--tcyy-blue);box-shadow:inset 3px 0 0 var(--tcyy-blue);}
.tcyy-nav-link:hover .yd-nav-ico,.tcyy-nav-link.active .yd-nav-ico{color:var(--tcyy-blue);}
.tcyy-side-bottom{bottom:14px;left:10px;right:10px;}
.tcyy-side-bottom a{height:42px;border-radius:12px;flex-direction:row;background:#f7fbff;border:1px solid var(--tcyy-line);color:#49617e;}
.tcyy-side-bottom a:hover{background:#e8f2ff;color:var(--tcyy-blue);}
.tcyy-topbar{height:58px;background:rgba(255,255,255,.9);backdrop-filter:blur(10px);border-bottom:1px solid var(--tcyy-line);padding:0 24px;align-items:center;}
.tcyy-top-title{font-size:16px;font-weight:900;color:var(--tcyy-navy);}
.yd-user-dot{background:var(--tcyy-blue);color:#fff;border:0;}
.tcyy-titlebar{height:70px;background:transparent;border-bottom:0;padding:0 30px;}
.tcyy-titlebar h1{font-size:28px;font-weight:900;color:var(--tcyy-navy);letter-spacing:.5px;}
.yd-title-actions a{color:#45607e;font-weight:800;}
.yd-title-actions a:hover{color:var(--tcyy-blue);}
.tcyy-content{padding:0 30px 34px;}
button,.btn{border-radius:10px;border-color:var(--tcyy-blue);background:linear-gradient(135deg,#0f6be8,#0660d8);box-shadow:0 4px 10px rgba(15,107,232,.18);min-height:36px;}
button:hover,.btn:hover{background:linear-gradient(135deg,#0b5fd2,#004db3);}
.btn.secondary,button.secondary{background:#fff;color:#3b4f6a;border-color:#cbdcf0;box-shadow:none;}
.btn.secondary:hover,button.secondary:hover{color:var(--tcyy-blue);border-color:var(--tcyy-blue);background:#f8fbff;}
input,select,textarea{border-radius:10px;border-color:#cbdcf0;}
input:focus,select:focus,textarea:focus{border-color:var(--tcyy-blue);box-shadow:0 0 0 3px rgba(15,107,232,.12);}
.page-head,.panel,.form-card,.yd-box,.table-wrap{border-radius:14px;border-color:var(--tcyy-line);box-shadow:0 10px 28px rgba(15,35,70,.06);}
.tcyy-page-head{padding:18px 20px;background:rgba(255,255,255,.95);}
.tcyy-page-head h1{font-size:22px;color:var(--tcyy-navy);font-weight:900;}
.table-wrap th{background:#edf5ff;color:#173567;}
.op-links{color:var(--tcyy-blue);font-weight:800;}
.op-links a{color:var(--tcyy-blue);}
.op-links span{margin:0 8px;color:#c0cce0;}
.blue-strong{color:var(--tcyy-blue);font-weight:900;}
.tag{border-radius:999px;}
.order-workbench{display:grid;grid-template-columns:260px minmax(0,1fr) 350px;gap:16px;align-items:start;}
.order-tree-card,.order-products-card,.order-cart-card{background:#fff;border:1px solid var(--tcyy-line);border-radius:16px;box-shadow:0 10px 28px rgba(15,35,70,.06);padding:16px;min-height:560px;}
.order-card-title{font-size:18px;font-weight:900;color:var(--tcyy-navy);margin-bottom:12px;}
.tree-search-box{height:40px;border:1px solid #cbdcf0;border-radius:12px;display:flex;align-items:center;padding:0 10px;background:#fff;margin-bottom:12px;}
.tree-search-box input{border:0;box-shadow:none;height:38px;padding:0;flex:1;min-width:0;}
.tree-search-box input:focus{box-shadow:none;border:0;}
.tree-search-box span{color:#7890ad;font-size:18px;}
.product-tree{max-height:680px;overflow:auto;padding-right:4px;}
.product-tree ul{list-style:none;margin:0;padding:0;}
.product-tree li{margin:2px 0;}
.tree-row{display:flex;align-items:center;gap:6px;height:32px;border-radius:9px;padding:0 8px;cursor:pointer;color:#32445c;font-weight:800;}
.tree-row:hover,.tree-row.active{background:#e8f2ff;color:var(--tcyy-blue);}
.tree-row .chev{width:14px;color:#7690ad;}
.tree-row .folder{font-size:14px;}
.tree-row .tree-name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;flex:1;}
.tree-row em{font-style:normal;font-size:11px;min-width:20px;text-align:center;background:#f2f6fb;border-radius:999px;color:#60738e;font-weight:900;padding:1px 5px;}
.tree-row.active em{background:#fff;color:var(--tcyy-blue);}
.product-tree ul ul{padding-left:15px;border-left:1px dashed #d7e5f5;margin-left:12px;}
.tree-empty{color:#667085;line-height:1.6;padding:14px;border:1px dashed #d5e2f0;border-radius:12px;background:#fbfdff;}
.order-list-head{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:12px;}
.order-list-head h2{font-size:18px;color:var(--tcyy-navy);margin:0 0 6px;font-weight:900;border-left:4px solid var(--tcyy-blue);padding-left:10px;}
.order-list-head p{margin:0;color:#667085;}
.order-list-tools{display:flex;gap:8px;}
.order-product-table-wrap{box-shadow:none;border-radius:12px;max-height:610px;overflow:auto;margin:0;}
.order-product-table{min-width:760px;}
.order-product-table th,.order-product-table td{padding:10px 11px;}
.promo-mini,.cart-gift{color:#d97706;font-size:12px;font-weight:800;margin-top:4px;}
.qty-stepper{display:inline-flex;align-items:center;height:32px;border:1px solid #cbdcf0;border-radius:9px;overflow:hidden;background:#fff;}
.qty-stepper button{min-height:30px;height:30px;width:30px;padding:0;border:0;border-radius:0;background:#f8fbff;color:var(--tcyy-blue);box-shadow:none;font-size:16px;font-weight:900;}
.qty-stepper input{width:54px;height:30px;border:0;border-left:1px solid #e4edf7;border-right:1px solid #e4edf7;border-radius:0;text-align:center;padding:0;box-shadow:none;}
.qty-stepper input:focus{box-shadow:none;border-left:1px solid #e4edf7;border-right:1px solid #e4edf7;}
.qty-stepper.small{height:28px;}
.qty-stepper.small button{height:26px;min-height:26px;width:26px;}
.qty-stepper.small input{height:26px;width:42px;}
.add-cart-btn{min-height:32px;border-radius:9px;padding:0 10px;font-size:12px;}
.order-cart-card{position:sticky;top:74px;min-height:auto;}
.cart-summary-line{border:1px solid #b8d3ff;background:#f0f6ff;border-radius:12px;color:#315b9a;padding:10px 12px;font-weight:900;margin-bottom:10px;}
.cart-list{border:1px solid #edf2f8;border-radius:12px;overflow:hidden;background:#fff;max-height:360px;overflow-y:auto;}
.cart-empty{text-align:center;color:#667085;padding:24px;}
.cart-item{display:grid;grid-template-columns:minmax(0,1fr) 58px 88px 68px 24px;gap:8px;align-items:center;padding:12px 10px;border-bottom:1px solid #edf2f8;}
.cart-item:last-child{border-bottom:0;}
.cart-item-main b{display:block;color:#24364f;margin-bottom:3px;}
.cart-item-main span{display:block;color:#667085;font-size:12px;}
.cart-price,.cart-amount{font-variant-numeric:tabular-nums;color:#344054;text-align:right;}
.remove-cart{min-height:24px;width:24px;height:24px;padding:0;background:#fff;color:#7d8da3;border:0;box-shadow:none;font-size:18px;}
.remove-cart:hover{background:#fff;color:#d92d20;}
.clear-cart{width:100%;margin:10px 0;background:#fff;color:var(--tcyy-blue);border:1px dashed #9fc3ff;box-shadow:none;}
.clear-cart:hover{background:#f2f7ff;color:var(--tcyy-blue);}
.order-remark-label{font-size:13px;color:#344054;font-weight:900;position:relative;}
.order-remark-label textarea{width:100%;margin-top:7px;min-height:76px;}
.order-remark-label small{position:absolute;right:10px;bottom:8px;color:#98a2b3;font-weight:400;}
.cart-total-box{margin:14px 0;border-top:1px solid #edf2f8;padding-top:12px;}
.cart-total-box div{display:flex;justify-content:space-between;align-items:center;color:#344054;margin:8px 0;}
.cart-total-box b{font-size:15px;}
.cart-final strong{font-size:28px;color:#e11d48;}
.submit-order-btn{width:100%;height:52px;font-size:18px;border-radius:14px;}
.tcyy-customer-card{grid-template-columns:2fr 1fr 1fr;}
.tcyy-select-customer select{min-width:420px;}
.order-detail-card{font-size:15px;}
@media(max-width:1280px){.order-workbench{grid-template-columns:240px minmax(0,1fr);}.order-cart-card{grid-column:1 / -1;position:static;}.cart-list{max-height:unset;}.cart-item{grid-template-columns:minmax(0,1fr) 70px 110px 90px 28px;}}
@media(max-width:980px){.tcyy-sidebar{position:relative;width:100%;height:auto;}.tcyy-main{margin-left:0;}.tcyy-logo{height:80px}.tcyy-nav{display:grid;grid-template-columns:repeat(3,1fr);gap:6px;padding:10px}.tcyy-nav-link{margin:0;justify-content:center}.tcyy-side-bottom{display:none}.order-workbench{grid-template-columns:1fr}.order-tree-card,.order-products-card,.order-cart-card{min-height:auto}.tcyy-content{padding:0 14px 24px}.tcyy-titlebar{padding:0 14px}.tcyy-titlebar h1{font-size:22px}.tcyy-customer-card{grid-template-columns:1fr}.tcyy-select-customer select{min-width:100%;}}

/* ===== CRM取长补短优化：v4卡片风格 + v5轻量功能 ===== */
.crm-hero{background:linear-gradient(135deg,#ffffff 0%,#eef6ff 70%,#f7fbff 100%);position:relative;overflow:hidden}.crm-hero:after{content:"";position:absolute;right:-60px;top:-80px;width:260px;height:260px;border-radius:999px;background:rgba(15,107,232,.08)}
.crm-module-grid{display:grid;grid-template-columns:repeat(7,minmax(120px,1fr));gap:12px;margin:0 0 16px}.crm-module{display:block;padding:16px;background:#fff;border:1px solid var(--tcyy-line);border-radius:16px;box-shadow:0 8px 24px rgba(15,35,70,.05);color:#203047}.crm-module:hover{transform:translateY(-1px);box-shadow:0 12px 28px rgba(15,107,232,.12);color:var(--tcyy-blue)}.crm-module b{display:block;font-size:15px;margin-bottom:5px}.crm-module span{font-size:12px;color:#667085;line-height:1.45}.compact-toolbar{align-items:center;flex-wrap:wrap}.compact-toolbar form{display:flex;gap:8px;align-items:center}.price-details summary,.customer-price-panel summary{cursor:pointer;color:var(--tcyy-blue);font-weight:900}.mini-price-list{margin-top:8px;min-width:340px;border:1px solid #e6eef8;border-radius:12px;background:#fbfdff;overflow:hidden}.mini-price-list div{display:grid;grid-template-columns:90px minmax(160px,1fr) 70px;gap:8px;padding:8px 10px;border-bottom:1px solid #edf2f8}.mini-price-list div:last-child{border-bottom:0}.mini-price-list b{color:#1d3d72}.mini-price-list span{color:#344054}.mini-price-list em{font-style:normal;color:#e11d48;font-weight:900;text-align:right}.customer-price-panel{padding:12px;border:1px solid #dbe8f7;border-radius:14px;background:#fbfdff;margin-bottom:14px}.compact-form textarea{min-height:60px}.task-list-mini li span{display:block;color:#667085}.crm-op-mini{display:grid;gap:8px}.crm-op-mini a{display:block;padding:10px 12px;border:1px solid #edf2f8;border-radius:12px;background:#fbfdff;color:#24364f}.crm-op-mini a:hover{border-color:#9fc3ff;background:#f2f7ff}.crm-op-mini b{display:block}.crm-op-mini span{font-size:12px;color:#667085}.opportunity-board{display:grid;grid-template-columns:repeat(5,minmax(180px,1fr));gap:14px;align-items:start}.op-column{background:#fff;border:1px solid var(--tcyy-line);border-radius:16px;box-shadow:0 10px 28px rgba(15,35,70,.06);padding:12px;min-height:360px}.op-col-head{display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid #edf2f8;padding:4px 4px 12px;margin-bottom:12px}.op-col-head b{color:var(--tcyy-navy)}.op-col-head span{color:#e11d48;font-weight:900}.op-card{display:block;padding:12px;margin-bottom:10px;border:1px solid #edf2f8;border-radius:14px;background:#fbfdff;color:#24364f}.op-card:hover{background:#f2f7ff;border-color:#9fc3ff}.op-card b{display:block;margin-bottom:6px}.op-card span,.op-card em,.op-card small{display:block;font-size:12px;color:#667085;line-height:1.55}.op-card em{font-style:normal;color:#e11d48;font-weight:900}.empty-state.small{padding:12px}.tag-cloud-panel{display:grid;grid-template-columns:repeat(auto-fill,minmax(180px,1fr));gap:14px}.tag-cloud-item{display:block;padding:18px;background:#fff;border:1px solid var(--tcyy-line);border-radius:18px;box-shadow:0 10px 28px rgba(15,35,70,.06);color:#24364f}.tag-cloud-item:hover{border-color:#9fc3ff;background:#f7fbff}.tag-cloud-item b{display:block;font-size:18px;margin-bottom:8px;color:var(--tcyy-blue)}.tag-cloud-item span{color:#667085}.bar-row{display:grid;grid-template-columns:110px minmax(160px,1fr) 42px;gap:10px;align-items:center;margin:12px 0}.bar-row span{font-weight:800;color:#344054}.bar-row div{height:10px;background:#edf2f8;border-radius:999px;overflow:hidden}.bar-row i{display:block;height:100%;background:linear-gradient(90deg,#0f6be8,#66a6ff);border-radius:999px}.bar-row b{text-align:right;color:var(--tcyy-navy)}.crm-log-list{display:grid;gap:10px;max-height:620px;overflow:auto}.crm-log-list div{padding:12px;border:1px solid #edf2f8;border-radius:14px;background:#fbfdff}.crm-log-list b{display:block;color:#24364f}.crm-log-list span{display:block;color:#667085;font-size:12px;margin:5px 0}.crm-log-list p{margin:0;color:#344054;line-height:1.6}.table-wrap.compact table th,.table-wrap.compact table td{padding:8px 10px}.inline-form{display:inline-flex;gap:6px;align-items:center;flex-wrap:wrap}.inline-form button{min-height:30px;font-size:12px;padding:0 10px}.actions.vertical{display:grid;gap:8px}.actions.vertical form{display:grid;gap:8px}
@media(max-width:1280px){.crm-module-grid{grid-template-columns:repeat(3,1fr)}.opportunity-board{grid-template-columns:repeat(2,1fr)}}@media(max-width:720px){.crm-module-grid,.opportunity-board,.tag-cloud-panel{grid-template-columns:1fr}.mini-price-list{min-width:260px}.mini-price-list div{grid-template-columns:1fr}.bar-row{grid-template-columns:1fr 1fr 38px}}

/* ===== 本次更新：统一在线下单CRM系统_v4风格 ===== */
.v4-app{min-height:100vh;display:flex;background:#f8fafc;color:#0f172a}.v4-sidebar{width:256px;background:#fff;border-right:1px solid #e2e8f0;display:flex;flex-direction:column;position:fixed;left:0;top:0;bottom:0;z-index:30}.v4-brand{height:88px;display:flex;align-items:center;gap:13px;padding:0 22px;color:#0f172a}.v4-brand img{width:42px;height:42px;object-fit:contain;border-radius:12px}.v4-brand b{display:block;font-size:18px;line-height:1}.v4-brand span{display:block;font-size:11px;color:#94a3b8;margin-top:5px;text-transform:uppercase;letter-spacing:.06em}.v4-menu{flex:1;padding:12px 16px;overflow-y:auto}.v4-menu-item,.v4-submenu summary{height:44px;border-radius:14px;display:flex;align-items:center;gap:12px;padding:0 13px;color:#64748b;font-weight:800;cursor:pointer;user-select:none;border:0;background:transparent}.v4-menu-item span,.v4-submenu summary span{font-size:18px;width:22px;text-align:center;color:#64748b}.v4-menu-item:hover,.v4-submenu summary:hover{background:#f8fafc;color:#0f172a}.v4-menu-item.active{background:#312e81;color:#fff;box-shadow:0 12px 24px rgba(49,46,129,.16)}.v4-menu-item.active span{color:#fff}.v4-submenu{margin:2px 0}.v4-submenu summary::-webkit-details-marker{display:none}.v4-submenu summary em{margin-left:auto;font-style:normal;color:#94a3b8}.v4-submenu[open] summary{color:#4338ca;background:#eef2ff}.v4-submenu div{margin:6px 0 8px 28px;padding-left:16px;border-left:1px solid #e2e8f0;display:grid;gap:4px}.v4-submenu div a{display:block;border-radius:12px;padding:9px 12px;color:#64748b;font-weight:700}.v4-submenu div a:hover,.v4-submenu div a.active{background:#f1f5f9;color:#4338ca}.v4-logout{margin:12px 16px 18px;height:40px;border-radius:12px;display:flex;align-items:center;justify-content:center;color:#64748b;font-weight:800;background:#f8fafc}.v4-logout:hover{background:#fee2e2;color:#b91c1c}.v4-main{margin-left:256px;min-height:100vh;flex:1}.v4-topbar{height:64px;background:rgba(255,255,255,.86);backdrop-filter:blur(10px);border-bottom:1px solid #e2e8f0;display:flex;align-items:center;justify-content:space-between;padding:0 24px;position:sticky;top:0;z-index:20}.v4-global-search{height:40px;max-width:560px;flex:1;border-radius:12px;background:#f1f5f9;color:#94a3b8;display:flex;align-items:center;padding:0 16px}.v4-userbar{display:flex;align-items:center;gap:12px;color:#475569}.v4-userbar a{color:#64748b}.v4-role{font-size:13px;color:#64748b}.v4-avatar{width:30px;height:30px;border-radius:50%;background:#eef2ff;color:#4338ca;display:grid;place-items:center;font-weight:900}.v4-content{padding:24px;max-width:100%}.v4-page-head{border:0;border-radius:18px;box-shadow:0 8px 24px rgba(15,23,42,.06);padding:18px 20px}.v4-card{border:0!important;border-radius:18px!important;box-shadow:0 8px 24px rgba(15,23,42,.06)!important}.customer-profile-v4{display:grid;grid-template-columns:2fr repeat(4,minmax(130px,1fr));gap:12px;border:0;border-radius:18px;box-shadow:0 8px 24px rgba(15,23,42,.06)}.customer-profile-v4>div{background:#f8fafc;border:1px solid #eef2f7;border-radius:14px;padding:12px}.customer-profile-v4 b{display:block;font-size:12px;color:#64748b;margin-bottom:5px}.customer-profile-v4 span{color:#334155}.customer-profile-v4 strong{display:block;font-size:18px;color:#0f172a;margin-bottom:4px}.customer-main-name{background:#eef2ff!important;border-color:#dbe4ff!important}.v4-select-customer{border:0;border-radius:18px;box-shadow:0 8px 24px rgba(15,23,42,.06)}.v4-select-customer input{min-width:520px;height:42px;border-radius:12px;background:#f8fafc}.sales-order-layout{display:grid;grid-template-columns:260px minmax(0,1fr);gap:16px;margin-bottom:92px}.sales-order-layout .order-tree-card,.sales-order-layout .order-products-card{padding:16px;background:#fff}.text-tree .tree-row{height:34px;border-radius:10px}.text-tree .tree-row .tree-name{font-weight:800}.text-tree .tree-row.active{background:#eef2ff;color:#4338ca}.text-tree .tree-row em{background:#f1f5f9}.order-product-table-wrap{max-height:calc(100vh - 250px);border-radius:16px}.order-product-table{min-width:1600px}.order-product-table th,.order-product-table td{vertical-align:middle}.line-remark{min-width:140px;height:30px;border-radius:8px}.mini-check{display:inline-flex;align-items:center;gap:6px;height:28px;font-weight:700;white-space:nowrap}.mini-check input{height:auto;width:auto;accent-color:#4f46e5}.bottom-order-bar{position:fixed;left:280px;right:24px;bottom:18px;height:72px;background:#fff;border:1px solid #e2e8f0;border-radius:20px;box-shadow:0 20px 44px rgba(15,23,42,.16);z-index:40;display:flex;align-items:center;justify-content:flex-end;gap:14px;padding:12px 18px}.bottom-order-bar>div{margin-right:auto}.bottom-order-bar b{display:block;color:#0f172a;margin-bottom:5px}.bottom-order-bar span{color:#64748b}.bottom-order-bar strong{font-size:24px;color:#e11d48}.order-modal[hidden]{display:none}.order-modal{position:fixed;inset:0;background:rgba(15,23,42,.42);z-index:80;display:grid;place-items:center;padding:24px}.order-modal-card{width:min(1100px,96vw);max-height:90vh;overflow:auto;background:#fff;border-radius:22px;padding:18px;box-shadow:0 30px 70px rgba(15,23,42,.25)}.modal-head{display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid #e2e8f0;padding-bottom:12px;margin-bottom:12px}.modal-head h2{margin:0;font-size:20px}.modal-head button{width:34px;height:34px;padding:0;border-radius:50%;background:#f1f5f9;color:#64748b;border:0}.modal-customer{padding:10px 12px;background:#eef2ff;color:#4338ca;border-radius:12px;font-weight:900;margin-bottom:12px}.modal-total{text-align:right;font-size:16px;margin:12px 0}.modal-total strong{font-size:28px;color:#e11d48}.modal-actions{justify-content:flex-end}.configurable-table th{position:relative}.configurable-table th[draggable=true]{cursor:grab}.col-resizer{position:absolute;right:0;top:0;bottom:0;width:7px;cursor:col-resize}.column-menu{position:absolute;z-index:200;background:#fff;border:1px solid #e2e8f0;border-radius:14px;box-shadow:0 18px 44px rgba(15,23,42,.18);padding:10px;display:grid;gap:6px;min-width:180px}.column-menu label{display:flex;align-items:center;gap:8px;font-size:13px;font-weight:700;height:26px}.column-menu input{width:auto;height:auto}.tag{border-radius:999px}.op-links a{color:#4338ca;font-weight:800}.op-links span{color:#cbd5e1;margin:0 6px}.empty-state.small{padding:10px}.table-wrap.compact table{min-width:760px}.table-wrap.compact th,.table-wrap.compact td{padding:8px 10px}.blue-strong{color:#4338ca;font-weight:900}@media(max-width:1100px){.v4-sidebar{position:relative;width:100%;height:auto}.v4-main{margin-left:0}.v4-topbar{position:relative}.sales-order-layout{grid-template-columns:1fr}.bottom-order-bar{left:16px;right:16px}.customer-profile-v4{grid-template-columns:1fr 1fr}.v4-select-customer input{min-width:260px}}@media(max-width:720px){.v4-content{padding:14px}.customer-profile-v4{grid-template-columns:1fr}.bottom-order-bar{height:auto;align-items:stretch;flex-wrap:wrap}.bottom-order-bar>div{width:100%}.order-modal{padding:10px}}

/* ===== 继续更新版：真实业务流程优化 ===== */
a,button,.btn,.v4-menu-item,.v4-submenu summary,.yd-shortcuts a,.yd-todo-grid a,.crm-action-card,.card,.product-fold summary,.promo-card,.carousel-arrow{transition:all .22s ease}
button:hover,.btn:hover,.yd-shortcuts a:hover,.yd-todo-grid a:hover,.crm-action-card:hover,.product-fold summary:hover{transform:translateY(-1px)}
.clean-icons a i,.clean-todo a i{font-family:inherit;width:34px;height:34px;border-radius:12px;display:grid;place-items:center;background:#eef2ff;color:#4338ca;font-size:18px;box-shadow:inset 0 0 0 1px #dbe4ff}.clean-icons a:hover i,.clean-todo a:hover i{background:#4338ca;color:#fff}.dashboard-v4{display:grid;gap:16px}.console-header{background:#fff;border:1px solid #e2e8f0;border-radius:18px;box-shadow:0 8px 24px rgba(15,23,42,.06);padding:18px 20px;display:flex;align-items:center;justify-content:space-between}.console-header h1{margin:0 0 5px;font-size:22px}.console-header p{margin:0;color:#64748b}.business-panel .yd-box-head{align-items:flex-start}.business-panel .yd-box-head p{margin:4px 0 0;color:#64748b}.btn-tabs{display:flex;gap:8px;flex-wrap:wrap}.btn-tabs a{height:32px;border-radius:999px;padding:0 12px;border:1px solid #dbe4ff;background:#fff;color:#4338ca;display:inline-flex;align-items:center;font-weight:800}.btn-tabs a.active,.btn-tabs a:hover{background:#4338ca;color:#fff;border-color:#4338ca}.custom-period{display:flex;align-items:end;gap:10px;flex-wrap:wrap;margin:12px 0}.custom-period label{font-size:12px;color:#64748b}.custom-period input{width:160px}.clickable-metrics{grid-template-columns:repeat(4,minmax(150px,1fr))}.clickable-metrics a,.clickable-metrics div{display:block;background:#f8fafc;border:1px solid #eef2f7;border-radius:16px;padding:16px;color:#0f172a}.clickable-metrics a:hover{border-color:#b8c5ff;background:#eef2ff}.clickable-metrics b{font-size:28px;display:block}.clickable-metrics span{color:#64748b}.yd-home-side,.yd-notice{display:none!important}
.hero-home-head{background:linear-gradient(135deg,#fff,#eef2ff)}.product-carousel{position:relative;background:#fff;border:1px solid #e2e8f0;border-radius:22px;box-shadow:0 12px 32px rgba(15,23,42,.08);overflow:hidden;min-height:420px}.carousel-track{min-height:420px}.promo-card{display:none;grid-template-columns:42% 58%;min-height:420px}.promo-card.active{display:grid}.promo-image{background:linear-gradient(135deg,#312e81,#18b7be);display:grid;place-items:center;color:#fff}.promo-image span{width:170px;height:170px;border-radius:40px;background:rgba(255,255,255,.16);border:1px solid rgba(255,255,255,.35);display:grid;place-items:center;font-size:38px;font-weight:900;letter-spacing:.08em}.promo-content{padding:52px 58px;display:flex;flex-direction:column;justify-content:center;align-items:flex-start}.promo-brand{color:#4338ca;font-weight:900;margin-bottom:10px}.promo-content h2{font-size:34px;margin:0 0 14px;color:#0f172a}.promo-content p{font-size:16px;line-height:1.8;color:#475569;margin:0 0 18px}.promo-meta{display:flex;gap:10px;flex-wrap:wrap;margin-bottom:22px}.promo-meta span{border:1px solid #e2e8f0;background:#f8fafc;border-radius:999px;padding:7px 12px;color:#64748b;font-weight:800}.carousel-arrow{position:absolute;top:50%;transform:translateY(-50%);width:42px;height:42px;border-radius:50%;border:0;background:rgba(255,255,255,.88);color:#312e81;font-size:30px;box-shadow:0 8px 22px rgba(15,23,42,.18);z-index:5}.carousel-arrow:hover{transform:translateY(-50%) scale(1.06);background:#fff}.carousel-arrow.prev{left:18px}.carousel-arrow.next{right:18px}.carousel-dots{position:absolute;left:0;right:0;bottom:18px;display:flex;justify-content:center;gap:8px}.carousel-dots button{min-height:0;width:9px;height:9px;padding:0;border:0;border-radius:999px;background:#cbd5e1}.carousel-dots button.active{width:26px;background:#4338ca}.product-detail-page{display:grid;grid-template-columns:360px minmax(0,1fr);gap:18px}.detail-hero-img{border-radius:22px;background:linear-gradient(135deg,#312e81,#18b7be);display:grid;place-items:center;color:#fff;min-height:360px;box-shadow:0 12px 32px rgba(15,23,42,.12)}.detail-hero-img span{font-size:38px;font-weight:900}.product-detail-card h2{margin:8px 0 12px}.detail-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-bottom:16px}.detail-grid div{background:#f8fafc;border:1px solid #eef2f7;border-radius:14px;padding:12px}.detail-grid b{display:block;color:#64748b;font-size:12px;margin-bottom:6px}.detail-grid span{font-weight:800;color:#0f172a}.fold-product-list{display:grid;gap:12px}.product-fold{background:#fff;border:1px solid #e2e8f0;border-radius:18px;box-shadow:0 8px 24px rgba(15,23,42,.06);overflow:hidden}.product-fold summary{height:54px;display:flex;align-items:center;justify-content:space-between;padding:0 18px;cursor:pointer;user-select:none;background:#fbfdff}.product-fold summary::-webkit-details-marker{display:none}.product-fold summary b{font-size:16px}.product-fold summary span{color:#64748b;font-weight:800}.product-fold .table-wrap{border:0;box-shadow:none;margin:0;border-radius:0}
.small-profile{grid-template-columns:1.4fr repeat(5,minmax(100px,1fr));gap:8px;padding:10px!important;margin-bottom:10px!important}.small-profile>div{padding:8px 10px!important;border-radius:12px}.small-profile b{font-size:11px!important;margin-bottom:3px!important}.small-profile strong{font-size:15px!important}.sales-order-layout{grid-template-columns:230px minmax(0,1fr)}.compact-tree ul{margin:0;padding-left:10px}.compact-tree .tree-row{height:30px;font-size:13px}.compact-tree .tree-row .chev{width:14px;color:#94a3b8}.compact-tree .tree-row em{font-style:normal;margin-left:auto;min-width:24px;text-align:center;border-radius:999px;background:#f1f5f9;font-size:11px;color:#64748b}.product-head-compact{gap:12px}.product-head-tools{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.product-search-in-head{margin:0;min-width:330px}.product-search-in-head input{width:100%;height:36px}.order-product-table{table-layout:fixed;min-width:1780px}.order-product-table th,.order-product-table td{overflow:hidden;text-overflow:ellipsis}.order-product-table th[data-col=code]{width:130px}.order-product-table th[data-col=name]{width:220px}.order-product-table th[data-col=qty]{width:144px}.order-product-table th[data-col=remark]{width:150px}.qty-stepper{display:flex;align-items:center;width:128px}.qty-stepper button{width:30px;min-width:30px;height:30px;min-height:30px;padding:0;border-radius:8px}.qty-stepper input{width:62px;text-align:center;height:30px;border-left:0;border-right:0;border-radius:0}.line-remark{width:132px}.configurable-table{table-layout:fixed}.configurable-table th{user-select:none}.col-resizer{position:absolute;right:-3px;top:0;bottom:0;width:8px;cursor:col-resize;background:transparent}.col-resizer:hover{background:rgba(67,56,202,.15)}.column-menu{position:absolute;z-index:200;background:#fff;border:1px solid #e2e8f0;border-radius:14px;box-shadow:0 18px 44px rgba(15,23,42,.18);padding:10px;display:grid;gap:6px;min-width:180px}.column-menu label{display:flex;align-items:center;gap:8px;font-size:13px;font-weight:700;height:26px}.column-menu input{width:auto;height:auto}.order-list-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:10px}.order-list-head h2{margin:0;font-size:17px}.order-list-head p{margin:4px 0 0;color:#64748b}.order-card-title{font-weight:900;margin-bottom:10px;color:#0f172a}.promo-mini{font-size:12px;color:#c75c00;margin-top:4px;font-weight:800}
.compact-crm-hero{align-items:flex-start}.crm-flow-pop{position:relative}.crm-flow-pop summary{list-style:none}.crm-flow-pop summary::-webkit-details-marker{display:none}.crm-flow-pop[open] summary{background:#eef2ff;color:#4338ca}.mini-flow{position:absolute;right:0;top:46px;width:720px;background:#fff;border:1px solid #e2e8f0;border-radius:18px;box-shadow:0 20px 44px rgba(15,23,42,.18);padding:14px;z-index:20}.ordered-crm-actions{display:grid;grid-template-columns:repeat(6,minmax(130px,1fr));gap:12px;margin-bottom:16px}.crm-action-card{background:#fff;border:1px solid #e2e8f0;border-radius:18px;box-shadow:0 8px 24px rgba(15,23,42,.06);padding:16px;color:#0f172a;min-height:116px}.crm-action-card:hover{border-color:#b8c5ff;background:#f8faff}.crm-action-card.primary{background:#4338ca;color:#fff}.crm-action-card.primary span,.crm-action-card.primary i{color:#e0e7ff}.crm-action-card i{font-style:normal;width:32px;height:32px;border-radius:12px;display:grid;place-items:center;background:#eef2ff;color:#4338ca;margin-bottom:10px}.crm-action-card b{display:block;font-size:15px;margin-bottom:6px}.crm-action-card span{display:block;color:#64748b;font-size:12px;line-height:1.45}.funnel-bars{display:grid;gap:10px}.funnel-row{display:grid;grid-template-columns:84px minmax(100px,1fr) 36px;gap:10px;align-items:center;color:#0f172a}.funnel-row span{font-weight:800}.funnel-row div{height:16px;background:#f1f5f9;border-radius:999px;overflow:hidden}.funnel-row i{display:block;height:100%;background:linear-gradient(90deg,#4338ca,#18b7be);border-radius:999px}.funnel-row b{text-align:right}.funnel-row:hover span{color:#4338ca}
@media(max-width:1280px){.clickable-metrics{grid-template-columns:repeat(2,1fr)}.ordered-crm-actions{grid-template-columns:repeat(3,1fr)}.product-detail-page,.promo-card{grid-template-columns:1fr}.promo-image{min-height:260px}.small-profile{grid-template-columns:repeat(2,1fr)}}
@media(max-width:720px){.clickable-metrics,.ordered-crm-actions,.detail-grid{grid-template-columns:1fr}.promo-content{padding:30px}.mini-flow{width:90vw;right:auto;left:0}.product-head-tools{width:100%}.product-search-in-head{min-width:100%;}.sales-order-layout{grid-template-columns:1fr}}

/* ===== 本次更新：ERP树、订单列拖拽、销售单、打印确认单 ===== */
.compact-page-head{padding:12px 15px;margin-bottom:10px}.compact-page-head h1{font-size:20px}.compact-page-head p{font-size:13px}.compact-select{padding:8px 10px}.compact-select input{height:32px}.order-meta-grid{display:grid;grid-template-columns:1.3fr repeat(5,minmax(95px,1fr));gap:6px;margin-bottom:10px}.order-meta-grid>div{background:#fff;border:1px solid #dfe6ee;border-radius:10px;padding:7px 9px;min-height:46px;box-shadow:var(--soft);overflow:hidden}.order-meta-grid b{display:block;font-size:11px;color:#64748b;margin-bottom:2px}.order-meta-grid strong{display:block;font-size:14px;color:#0f172a;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.order-meta-grid span{font-size:12px;color:#334155;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block}.detail-meta{grid-template-columns:1.5fr repeat(5,minmax(120px,1fr))}.sales-order-layout{display:grid;grid-template-columns:240px minmax(0,1fr);gap:10px}.erp-master-layout{display:grid;grid-template-columns:300px minmax(0,1fr);gap:10px;align-items:start}.erp-tree-panel{background:#fff;border:1px solid #aab3bd;border-radius:2px;box-shadow:var(--soft);padding:10px;max-height:calc(100vh - 230px);overflow:auto}.erp-table-panel{min-width:0}.erp-table-title{height:42px;background:#fff;border:1px solid #dfe6ee;border-bottom:0;display:flex;align-items:center;gap:10px;padding:0 12px}.erp-table-title h2{font-size:17px;margin:0}.erp-table-title span{color:#64748b;font-weight:800}.erp-text-tree{font-size:13px;line-height:1.15}.erp-text-tree ul{list-style:none;margin:0;padding-left:15px;border-left:1px dotted #a7b0ba}.erp-text-tree li{margin:0}.erp-tree-row{height:24px;display:flex;align-items:center;gap:3px;cursor:pointer;white-space:nowrap;color:#111827;padding:0 4px;border-radius:2px}.erp-tree-row:hover{background:#eaf4ff}.erp-tree-row.active{background:#cfe5ff;color:#0f3b66;box-shadow:inset 0 0 0 1px #8bbde8}.erp-tree-row .tree-twisty{width:14px;color:#394b59;font-size:12px}.erp-tree-row em{margin-left:auto;color:#6b7280;font-size:11px;font-style:normal}.erp-data-table{min-width:1250px}.erp-data-table th{background:#bdd7ee;color:#34495e;border-right:1px solid #93b8d4}.erp-data-table td{border-right:1px solid #d1d5db}.period-toolbar{align-items:end}.period-toolbar label{font-size:12px;color:#64748b}.period-toolbar label input{width:150px}.period-toolbar .btn.active{background:#4338ca;color:#fff;border-color:#4338ca}.total-row td{background:#dbeafe!important;color:#0f172a;font-weight:900;border-top:2px solid #93c5fd}.order-detail-table{table-layout:fixed;min-width:1600px}.order-detail-table th{background:#bdd7ee;color:#23384e}.print-title{display:none}.print-confirm-footer{display:none}.configurable-table{table-layout:fixed}.configurable-table th{position:relative;user-select:none;background:#bdd7ee!important;color:#23384e!important;border-right:1px solid #93b8d4}.configurable-table td{border-right:1px solid #e2e8f0;overflow:hidden;text-overflow:ellipsis}.drag-hint{float:right;color:#2563eb;font-weight:900;opacity:.55;margin-left:4px}.dragging-col{opacity:.55}.drag-over-col{outline:2px solid #2563eb!important;outline-offset:-2px}.resizing-col{cursor:col-resize;user-select:none}.column-menu-title{font-size:12px;font-weight:900;color:#64748b;border-bottom:1px solid #eef2f7;padding-bottom:6px}.btn.tiny{min-height:28px;font-size:12px;padding:0 10px}.order-modal-card.wide{width:min(960px,96vw)}.home-card-form{margin-bottom:12px}.muted{color:#64748b}.no-print{display:flex}.print-order-sheet{background:#fff}
@media(max-width:1200px){.order-meta-grid,.detail-meta{grid-template-columns:repeat(3,1fr)}.erp-master-layout,.sales-order-layout{grid-template-columns:1fr}.erp-tree-panel{max-height:300px}}
@media print{body{background:#fff}.v4-sidebar,.v4-topbar,.no-print,.alert,.column-menu{display:none!important}.v4-main{margin:0!important}.v4-content{padding:0!important}.print-order-sheet{padding:0;color:#000}.print-title{display:block;text-align:center;font-size:24px;font-weight:900;margin:8px 0 16px}.print-confirm-footer{display:block;margin-top:18px;font-size:14px}.table-wrap{box-shadow:none!important;border:0!important;overflow:visible!important}.order-meta-grid{grid-template-columns:repeat(3,1fr);gap:0;border:1px solid #333;margin-bottom:12px}.order-meta-grid>div{border:1px solid #333;border-radius:0;box-shadow:none;min-height:42px}.configurable-table,.order-detail-table{min-width:0!important;width:100%!important;table-layout:auto!important}.configurable-table th,.configurable-table td{display:table-cell!important;border:1px solid #333!important;padding:6px 8px!important;white-space:normal;font-size:12px}.configurable-table th{background:#d9eaf7!important;color:#000!important}.col-resizer,.drag-hint{display:none!important}.total-row td{background:#d9eaf7!important;color:#000!important}.tag{border:0;background:none;color:#000;padding:0}.print-table-wrap{margin:0!important}.print-table-wrap table th:nth-child(n+13),.print-table-wrap table td:nth-child(n+13){display:none!important}}

/* ===== 2026-05 本次继续更新：左侧导航伸缩、全表格列记忆、销售订单打印格式 ===== */
:root{--sidebar-width:256px;--grid-line:#b8c2cc;--grid-line-dark:#94a3b8;--grid-head:#bdd7ee}
.v4-sidebar{width:var(--sidebar-width)!important;transition:width .18s ease,transform .18s ease}.v4-main{margin-left:var(--sidebar-width)!important;transition:margin-left .18s ease}.bottom-order-bar{left:calc(var(--sidebar-width) + 24px)!important}.sidebar-resizer{position:absolute;right:-4px;top:0;bottom:0;width:8px;cursor:col-resize;z-index:60}.sidebar-resizer:hover{background:rgba(24,183,190,.18)}.sidebar-collapse-btn{position:absolute;right:-15px;top:72px;width:30px;height:44px;min-width:30px;padding:0;border-radius:0 10px 10px 0;background:#fff;color:#4338ca;border:1px solid #dbe4ff;box-shadow:0 8px 20px rgba(15,23,42,.12);z-index:70}.sidebar-float-btn{display:none;position:fixed;left:12px;top:72px;width:42px;height:42px;min-width:42px;padding:0;border-radius:14px;z-index:90;background:#4338ca;border-color:#4338ca}.sidebar-collapsed .v4-sidebar{transform:translateX(calc(-1 * var(--sidebar-width)))}.sidebar-collapsed .v4-main{margin-left:0!important}.sidebar-collapsed .bottom-order-bar{left:24px!important}.sidebar-collapsed .sidebar-float-btn{display:grid}.resizing-sidebar{cursor:col-resize;user-select:none}
button,.btn,.v4-menu-item,.crm-action-card,.yd-shortcuts a,.yd-todo-grid a,.clickable-metrics a{transition:background .18s ease,color .18s ease,border-color .18s ease,box-shadow .18s ease,transform .18s ease}button:hover,.btn:hover,.crm-action-card:hover,.yd-shortcuts a:hover,.yd-todo-grid a:hover,.clickable-metrics a:hover{transform:translateY(-1px)}
/* 表格线框加重，接近管家婆表体可读性 */
.table-wrap table th,.table-wrap table td{border-right:1px solid var(--grid-line)!important;border-bottom:1px solid var(--grid-line)!important}.table-wrap table th:first-child,.table-wrap table td:first-child{border-left:1px solid var(--grid-line)!important}.table-wrap table thead th{border-top:1px solid var(--grid-line-dark)!important}.configurable-table th{background:var(--grid-head)!important;border-color:#8fb6d2!important}.configurable-table td{border-color:#b9c3cc!important}.list-config-table{table-layout:fixed;min-width:1200px}.configurable-table th .drag-hint{display:inline-flex;float:none;margin-left:6px;opacity:.75;color:#1d4ed8}.drag-over-col{background:#dbeafe!important;box-shadow:inset 0 0 0 2px #2563eb!important}.col-resizer{right:-4px;width:10px}.col-resizer:hover{background:rgba(37,99,235,.22)!important}
/* 折叠分类区可隐藏 */
.collapsible-tree-panel{position:relative;padding-top:38px}.tree-panel-toggle{position:absolute;right:8px;top:6px;min-height:26px;height:26px;padding:0 9px;border-radius:8px;font-size:12px;background:#eef2ff;border-color:#dbe4ff;color:#4338ca}.tree-panel-collapsed{width:56px!important;min-width:56px!important;overflow:hidden!important;padding:38px 6px 8px!important}.tree-panel-collapsed .order-card-title,.tree-panel-collapsed .erp-text-tree{display:none!important}.sales-order-layout:has(.tree-panel-collapsed),.erp-master-layout:has(.tree-panel-collapsed){grid-template-columns:58px minmax(0,1fr)!important}
/* 销售订单页面继续压缩客户信息块 */
.order-meta-grid.tiny-profile{grid-template-columns:repeat(auto-fit,minmax(126px,1fr));gap:5px;margin-bottom:8px}.order-meta-grid.tiny-profile>div,.order-meta-grid.tiny-profile>label{min-height:40px;padding:5px 7px;border-radius:8px;background:#fff;border:1px solid #dfe6ee;box-shadow:var(--soft)}.order-meta-grid.tiny-profile b{font-size:10px;margin-bottom:1px}.order-meta-grid.tiny-profile span,.order-meta-grid.tiny-profile input{font-size:12px}.temp-customer-meta label input{height:24px;margin-top:2px;padding:0 6px}.manual-price-input{width:86px;height:28px;text-align:right;border-radius:6px}.mini-check input[type="checkbox"]{width:18px!important;height:18px!important;accent-color:#4338ca}.qty-stepper input{font-size:14px;font-weight:800}
/* 打印/截图销售订单，参照发货单表头与销售订单表体 */
.print-only{display:none}.print-sales-order-sheet{background:#fff;color:#000;padding:10px 12px}.print-sheet-head{display:grid;grid-template-columns:170px 1fr 210px;align-items:center;margin-bottom:8px}.print-logo{display:flex;align-items:center;gap:8px;font-size:22px;font-weight:900}.print-logo img{width:64px;height:64px;object-fit:contain}.print-sheet-head h1{text-align:center;font-size:30px;margin:0;font-weight:900}.print-page-info{text-align:right;font-size:15px}.fake-barcode{height:42px;margin-top:6px;background:repeating-linear-gradient(90deg,#000 0,#000 2px,#fff 2px,#fff 5px,#000 5px,#000 6px,#fff 6px,#fff 10px)}.print-meta-line{display:grid;grid-template-columns:1.2fr 1fr 1.2fr;gap:8px;font-size:15px;font-weight:700;margin:6px 0 8px}.print-main-grid{display:grid;grid-template-columns:minmax(0,1fr) 220px;gap:18px}.print-order-table,.print-goods-table{width:100%;border-collapse:collapse;min-width:0!important;table-layout:fixed}.print-order-table th,.print-order-table td,.print-goods-table th,.print-goods-table td{border:2px solid #111!important;padding:7px 6px!important;color:#000!important;white-space:normal!important;font-size:14px;line-height:1.25}.print-order-table th,.print-goods-table th{background:#bfbfbf!important;text-align:center;font-weight:900}.print-order-table tfoot td,.print-goods-table tfoot td{background:#bfbfbf!important;font-weight:900}.print-order-table th:nth-child(1){width:44px}.print-order-table th:nth-child(2){width:86px}.print-order-table th:nth-child(3){width:160px}.print-order-table th:nth-child(4){width:70px}.print-order-table th:nth-child(5){width:62px}.print-order-table th:nth-child(6){width:86px}.print-order-table th:nth-child(7){width:72px}.print-order-table th:nth-child(8){width:72px}.print-order-table th:nth-child(9){width:86px}.print-order-table th:nth-child(10){width:96px}.print-order-table th:nth-child(11){width:64px}
.funnel-graphic{display:grid;gap:10px;padding:4px 0}.funnel-step{height:44px;margin:auto;border-radius:10px;display:grid;grid-template-columns:1fr auto;align-items:center;padding:0 16px;color:#fff;font-weight:900;background:linear-gradient(90deg,#4338ca,#18b7be);box-shadow:0 6px 16px rgba(67,56,202,.18)}.funnel-step span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.funnel-step b{font-size:18px}
@media print{.screen-order-detail,.no-print,.v4-sidebar,.v4-topbar,.sidebar-float-btn,.sidebar-collapse-btn{display:none!important}.print-only{display:block!important}.v4-main{margin-left:0!important}.v4-content{padding:0!important}.print-sales-order-sheet{display:block!important}.print-sheet-head{page-break-inside:avoid}.print-main-grid{grid-template-columns:minmax(0,1fr) 210px}.print-order-table th,.print-order-table td,.print-goods-table th,.print-goods-table td{font-size:12px;padding:6px 5px!important}.print-logo img{width:58px;height:58px}.print-sheet-head h1{font-size:26px}.fake-barcode{height:34px}}
@media(max-width:1100px){.v4-main{margin-left:0!important}.v4-sidebar{position:fixed!important;transform:translateX(-100%)}body:not(.sidebar-collapsed) .v4-sidebar{transform:translateX(0)}.sidebar-float-btn{display:grid}.bottom-order-bar{left:16px!important}.print-main-grid{grid-template-columns:1fr}}

/* 2026-05 销售订单/销售单细化：树状折叠、表格不锁总宽、打印单据 */
.order-meta-grid>label{background:#fff;border:1px solid #dfe6ee;border-radius:10px;padding:7px 9px;min-height:46px;box-shadow:var(--soft);overflow:hidden;display:block}
.order-meta-grid>label b{display:block;font-size:11px;color:#64748b;margin-bottom:2px}.order-meta-grid>label input,.order-meta-grid>label select{height:26px;border:1px solid #cbd5e1;border-radius:7px;padding:0 7px;width:100%;font-size:12px;background:#fff}.tree-fold-btn{width:18px;height:18px;min-width:18px;border:0;background:transparent;color:#475569;padding:0;display:inline-flex;align-items:center;justify-content:center;font-weight:900;cursor:pointer}.tree-node-name{flex:1;overflow:hidden;text-overflow:ellipsis}.erp-tree-row{gap:2px}.text-link{color:#1d4ed8;font-weight:900;text-decoration:none}.text-link:hover{text-decoration:underline}.configurable-wrap{overflow:auto}.configurable-table{width:auto!important;max-width:none!important}.configurable-table th,.configurable-table td{white-space:nowrap}.order-product-table,.order-detail-table,.list-config-table{max-width:none!important}.mini-check input[type=checkbox]{width:20px;height:20px;vertical-align:middle}.print-only{display:none}.barcode-box{height:42px;display:flex;align-items:stretch;justify-content:center;gap:1px;padding:3px 6px;background:#fff}.barcode-box i{display:block;background:#000;height:100%}.barcode-box i.gap{width:1px!important;background:#fff}.document-print-sheet{background:#fff;color:#000;font-family:"Microsoft YaHei",Arial,sans-serif}.print-doc-head{display:grid;grid-template-columns:140px 1fr 190px;align-items:center;gap:10px;margin-bottom:10px}.print-logo-block{display:flex;flex-direction:column;align-items:center;justify-content:center;font-weight:900;color:#1d4ed8;font-size:12px}.print-logo-block img{width:72px;height:auto;object-fit:contain}.print-doc-head h1{text-align:center;font-size:27px;margin:0;font-weight:900;letter-spacing:1px}.print-doc-right{text-align:center}.print-doc-right p{margin:2px 0 0;font-size:13px;font-weight:900}.print-meta-grid3{display:grid;grid-template-columns:1.2fr 1fr 1.2fr;gap:8px;font-size:15px;font-weight:800;margin:8px 0}.print-meta-grid3.second{font-size:14px}.print-note{font-size:14px;margin:5px 0 8px}.print-document-table{width:100%;border-collapse:collapse;table-layout:fixed;font-size:13px}.print-document-table th,.print-document-table td{border:2px solid #111;padding:7px 5px;vertical-align:middle;word-break:break-all}.print-document-table th{background:#c9c9c9;font-weight:900;text-align:center}.print-document-table td{text-align:center}.print-document-table td:nth-child(3),.print-document-table td:nth-child(10){text-align:left}.print-document-table tfoot td{background:#c9c9c9;font-weight:900;font-size:14px}
@page{size:A4 landscape;margin:0}
@media print{html,body{width:100%;height:auto;margin:0!important;padding:0!important;background:#fff!important}.print-only{display:block!important}.document-print-sheet{padding:10mm 12mm!important}.v4-sidebar,.v4-topbar,.no-print,.alert,.column-menu,.sidebar-float-btn{display:none!important}.v4-main{margin:0!important}.v4-content{padding:0!important}.print-sales-order-sheet{display:block!important}.print-doc-head{page-break-inside:avoid}.print-document-table{page-break-inside:auto}.print-document-table tr{page-break-inside:avoid;page-break-after:auto}.print-document-table th,.print-document-table td{font-size:12px!important;padding:6px 4px!important;border:1.8px solid #000!important}.print-doc-head h1{font-size:25px!important}.print-logo-block img{width:64px!important}.print-meta-grid3{font-size:14px!important}.print-meta-grid3.second{font-size:13px!important}}

/* 本次优化：下单模式选择、列宽自由拖动、行高设置、商品分类树美化 */
.order-mode-panel{margin:0 0 12px;padding:12px 14px;border-radius:16px;background:linear-gradient(180deg,#ffffff,#f7fbff);}
.order-mode-title{font-size:13px;font-weight:900;color:#173567;margin-bottom:8px;}
.order-mode-actions{display:grid;grid-template-columns:repeat(2,minmax(220px,1fr));gap:10px;}
.order-mode-card{display:block;border:1px solid #d7e4f3;border-radius:14px;background:#fff;padding:12px 14px;color:#24364f;box-shadow:0 8px 20px rgba(15,35,70,.05);transition:.18s ease;}
.order-mode-card:hover{transform:translateY(-1px);border-color:#5dbfe8;box-shadow:0 12px 26px rgba(37,99,235,.12);}
.order-mode-card.active{border-color:#2563eb;background:#eef6ff;box-shadow:inset 0 0 0 1px #8cc7ff;}
.order-mode-card b{display:block;font-size:15px;color:#173567;margin-bottom:4px;}
.order-mode-card span{display:block;font-size:12px;color:#64748b;line-height:1.5;}
.row-height-control{display:inline-flex;align-items:center;gap:6px;font-size:12px;font-weight:900;color:#475569;background:#f8fbff;border:1px solid #dbe7f5;border-radius:10px;padding:5px 8px;height:34px;}
.row-height-control select{height:26px;border-radius:7px;border:1px solid #c9d9eb;background:#fff;font-size:12px;padding:0 5px;}
.pretty-product-tree{font-size:13px;line-height:1.25;padding:2px 2px 8px;}
.pretty-product-tree ul{padding-left:12px;border-left:1px dashed #b7c5d6;margin-left:8px;}
.pretty-product-tree>ul{border-left:0;margin-left:0;padding-left:0;}
.pretty-product-tree .erp-tree-row{min-height:31px;height:31px;padding:0 8px;margin:2px 0;border-radius:10px;gap:6px;background:#fff;border:1px solid transparent;transition:.16s ease;}
.pretty-product-tree .erp-tree-row:hover{background:#f0f7ff;border-color:#c7def8;}
.pretty-product-tree .erp-tree-row.active{background:#dbeafe;color:#173567;border-color:#8bbde8;box-shadow:inset 3px 0 0 #2563eb;}
.pretty-product-tree .tree-fold-btn{width:22px!important;height:22px!important;min-width:22px!important;border-radius:7px!important;background:#f1f5f9!important;color:#475569!important;font-size:15px!important;}
.pretty-product-tree .erp-tree-row.active .tree-fold-btn{background:#2563eb!important;color:#fff!important;}
.pretty-product-tree .tree-node-name{font-weight:800;}
.pretty-product-tree .erp-tree-row em{background:#f1f5f9;color:#64748b;border-radius:9px;padding:1px 6px;font-size:11px;}
.tree-help-mini{font-size:12px;color:#64748b;margin:-4px 0 8px;line-height:1.5;background:#f8fbff;border:1px solid #e6eef8;border-radius:10px;padding:7px 9px;}
.configurable-table{border-collapse:collapse!important;table-layout:fixed!important;width:auto!important;max-width:none!important;}
.configurable-table th,.configurable-table td{height:var(--row-height,42px);box-sizing:border-box;overflow:hidden;text-overflow:ellipsis;}
.configurable-table th{position:relative;}
.configurable-table .col-resizer{position:absolute!important;right:0!important;top:0!important;bottom:0!important;width:14px!important;cursor:col-resize!important;background:linear-gradient(90deg,transparent,rgba(37,99,235,.16));z-index:5;}
.configurable-table .col-resizer:after{content:"";position:absolute;right:5px;top:8px;bottom:8px;width:2px;background:#2563eb;border-radius:2px;opacity:.35;}
.configurable-table .col-resizer:hover:after{opacity:1;width:3px;}
.search-order-card{min-height:auto!important;}
.search-order-wrap{max-height:620px;}
.search-order-wrap input.product-pick-input{min-width:230px;width:95%;height:28px;border:1px solid #cbd5e1;border-radius:7px;padding:0 8px;}
.search-order-wrap input.search-qty-input,.search-order-wrap input.line-remark{height:28px;border:1px solid #cbd5e1;border-radius:7px;padding:0 8px;width:92%;}
.search-order-wrap input.search-qty-input{text-align:center;font-weight:900;}
@media(max-width:900px){.order-mode-actions{grid-template-columns:1fr}.product-head-tools{align-items:flex-start}}

/* 2026-05 keyboard order + clearer tree + top detail meta */
.keyboard-order-tip{margin:6px 0 10px;padding:8px 12px;border:1px solid #cfe3f8;background:#f6fbff;color:#31506f;border-radius:12px;font-size:12px;font-weight:800;}
.product-picker-panel{position:fixed;z-index:2000;left:50%;top:50%;transform:translate(-50%,-50%);width:min(1060px,94vw);max-height:72vh;background:#fff;border:1px solid #8bbde8;border-radius:16px;box-shadow:0 24px 70px rgba(15,35,70,.22);display:flex;flex-direction:column;overflow:hidden;}
.product-picker-panel[hidden]{display:none!important;}
.picker-head{display:flex;align-items:center;gap:10px;padding:10px 12px;background:linear-gradient(180deg,#e8f4ff,#d8ecff);border-bottom:1px solid #9fc4e0;}
.picker-head strong{font-size:16px;color:#173567;}.picker-head span{font-size:12px;color:#475569;font-weight:800;flex:1;}.picker-table-wrap{max-height:50vh;overflow:auto;border:0;border-radius:0;}.product-picker-table tbody tr{cursor:pointer;}.product-picker-table tbody tr:hover,.product-picker-table tbody tr.picker-active{background:#dbeafe!important;box-shadow:inset 4px 0 0 #2563eb;}.product-picker-table td b{color:#15325c;}.picker-foot{font-size:12px;color:#64748b;font-weight:800;padding:8px 12px;background:#f8fbff;border-top:1px solid #dbeafe;}.grid-edit:focus,.product-pick-input:focus,.search-qty-input:focus,.line-remark:focus,.manual-price-input:focus{outline:2px solid #2563eb!important;outline-offset:1px;background:#fff!important;}
.search-order-card .configurable-table input{height:28px;border:1px solid #b9c3cc;border-radius:6px;padding:0 7px;}.search-order-card .product-pick-input{width:96%;font-weight:800;}.search-order-card .search-qty-input{width:80px;text-align:right;font-weight:900;}
.pretty-product-tree{padding:8px!important;}.pretty-product-tree ul{padding-left:16px!important;margin-left:10px!important;border-left:1px dashed #93a4b8!important;}.pretty-product-tree .erp-tree-row{height:auto!important;min-height:38px!important;padding:5px 8px!important;border:1px solid #dbe7f5!important;border-radius:12px!important;background:#fff!important;margin:4px 0!important;box-shadow:0 3px 8px rgba(15,35,70,.035)!important;}.pretty-product-tree .erp-tree-row:hover{background:#eef7ff!important;border-color:#93c5fd!important;transform:translateX(1px);}.pretty-product-tree .erp-tree-row.active{background:#dbeafe!important;border-color:#3b82f6!important;box-shadow:inset 4px 0 0 #2563eb,0 5px 14px rgba(37,99,235,.12)!important;}.pretty-product-tree .tree-fold-btn{width:30px!important;height:30px!important;min-width:30px!important;border-radius:9px!important;border:1px solid #bfd4ec!important;background:linear-gradient(180deg,#ffffff,#eef6ff)!important;color:#173567!important;font-size:18px!important;font-weight:900!important;box-shadow:0 2px 6px rgba(15,35,70,.06)!important;}.pretty-product-tree .tree-fold-btn span{display:block;line-height:1;transform:translateY(-1px);}.pretty-product-tree .has-children .tree-fold-btn{background:linear-gradient(180deg,#eaf4ff,#d9ecff)!important;border-color:#82b8e8!important;color:#0f3f7a!important;}.pretty-product-tree .erp-tree-row.active .tree-fold-btn{background:#2563eb!important;color:#fff!important;border-color:#2563eb!important;}.pretty-product-tree .tree-node-name{font-size:13px!important;font-weight:900!important;color:#26384d;}.pretty-product-tree .leaf-node .tree-node-name{font-weight:800!important;color:#475569;}.pretty-product-tree .erp-tree-row em{min-width:28px;text-align:center;background:#eef2f7!important;color:#334155!important;border:1px solid #d7e1eb;border-radius:999px!important;padding:2px 7px!important;font-size:11px!important;font-style:normal!important;font-weight:900!important;}.tree-help-mini{font-size:12px;color:#536b84;background:#f8fbff;border:1px dashed #c7d8ea;border-radius:10px;padding:6px 8px;margin-bottom:6px;font-weight:800;}
.screen-order-detail .detail-meta{display:grid!important;width:100%!important;grid-template-columns:repeat(auto-fit,minmax(150px,1fr))!important;margin:0 0 10px!important;}.screen-order-detail .toolbar.compact-toolbar{justify-content:flex-end;margin-bottom:8px;}.screen-order-detail .order-detail-table{width:auto!important;max-width:none!important;}.screen-order-detail .table-wrap{width:100%;overflow:auto;}


/* 2026-05 修正：详情页采用上方单据信息、下方整宽明细表，不能左右分栏 */
.screen-order-detail.no-print{display:block!important;width:100%!important;}
.screen-order-detail .detail-meta{display:grid!important;width:100%!important;margin:0 0 10px!important;}
.screen-order-detail .table-wrap{width:100%!important;overflow:auto!important;}

/* 2026-05 修正：列宽允许缩到很窄，文字/输入框被裁切，不再由最长文字撑开 */
.configurable-table{table-layout:fixed!important;width:auto!important;max-width:none!important;border-collapse:collapse;}
.configurable-table th,.configurable-table td{box-sizing:border-box!important;min-width:0!important;max-width:none;overflow:hidden!important;text-overflow:clip!important;white-space:nowrap!important;}
.configurable-table td input,.configurable-table td select,.configurable-table td textarea{min-width:0!important;max-width:100%!important;width:100%!important;box-sizing:border-box!important;}
.configurable-table .qty-stepper{min-width:0!important;max-width:100%!important;width:100%!important;overflow:hidden;}
.configurable-table .qty-stepper input{min-width:0!important;flex:1 1 auto!important;width:auto!important;}
.configurable-table .qty-stepper button{flex:0 0 28px;}

/* 2026-05 修正：商品分类折叠按钮改成普通用户能看懂的“展开/收起”按钮 */
.pretty-product-tree .tree-toggle-btn{width:62px!important;min-width:62px!important;height:28px!important;padding:0 6px!important;border-radius:999px!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;gap:3px!important;border:1px solid #82b8e8!important;background:linear-gradient(180deg,#ffffff,#e8f4ff)!important;color:#0f3f7a!important;font-size:12px!important;font-weight:900!important;box-shadow:0 2px 6px rgba(15,35,70,.08)!important;}
.pretty-product-tree .tree-toggle-btn .fold-mark{font-size:12px!important;line-height:1!important;}
.pretty-product-tree .tree-toggle-btn .fold-word{font-size:12px!important;line-height:1!important;}
.pretty-product-tree .leaf-node .tree-toggle-btn{background:#f8fafc!important;color:#64748b!important;border-color:#dbe5ef!important;}
.pretty-product-tree .erp-tree-row.active .tree-toggle-btn{background:#2563eb!important;color:#fff!important;border-color:#2563eb!important;}


/* 2026-05 半屏操作修正：表格可横向滚动，但上方客户信息/按钮区不能被表格总宽撑开 */
.v4-content{overflow-x:hidden!important;}
.order-mode-panel,.v4-select-customer,.order-meta-grid,.page-head,.toolbar,.bottom-order-bar{max-width:100%!important;box-sizing:border-box!important;}
.sales-order-layout{width:100%!important;max-width:100%!important;grid-template-columns:minmax(210px,240px) minmax(0,1fr)!important;gap:10px!important;align-items:start!important;overflow:visible!important;}
.sales-order-layout .order-tree-card,.sales-order-layout .order-products-card,.order-products-card{min-width:0!important;max-width:100%!important;box-sizing:border-box!important;}
.order-products-card{overflow:hidden!important;}
.order-list-head,.product-head-compact{width:100%!important;max-width:100%!important;min-width:0!important;box-sizing:border-box!important;}
.product-head-tools{min-width:0!important;}
.order-product-table-wrap,.search-order-wrap,.configurable-wrap,.screen-order-detail .table-wrap{width:100%!important;max-width:100%!important;overflow:auto!important;box-sizing:border-box!important;}
.screen-order-detail,.screen-order-detail .detail-meta{max-width:100%!important;overflow:visible!important;}
.configurable-table{width:auto!important;max-width:none!important;}
.configurable-table th,.configurable-table td{min-width:0!important;max-width:none!important;overflow:hidden!important;text-overflow:clip!important;white-space:nowrap!important;}

/* 2026-05 分类树修正：按钮不遮挡节点文字，不显示商品数量，普通用户可明显看出 +/- 展开收起 */
.pretty-product-tree{padding:6px!important;overflow:auto!important;}
.pretty-product-tree ul{padding-left:12px!important;margin-left:8px!important;}
.pretty-product-tree .erp-tree-row{display:flex!important;align-items:center!important;min-height:32px!important;height:32px!important;padding:3px 6px!important;gap:6px!important;overflow:hidden!important;}
.pretty-product-tree .tree-toggle-btn{width:24px!important;min-width:24px!important;height:24px!important;padding:0!important;border-radius:7px!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;font-size:17px!important;line-height:1!important;flex:0 0 24px!important;}
.pretty-product-tree .tree-toggle-btn .fold-mark{font-size:17px!important;line-height:1!important;transform:none!important;}
.pretty-product-tree .tree-toggle-btn .fold-word{display:none!important;}
.pretty-product-tree .tree-node-name{display:block!important;flex:1 1 auto!important;min-width:0!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important;padding-left:2px!important;font-size:13px!important;}
.pretty-product-tree .erp-tree-row em{display:none!important;}
.pretty-product-tree .leaf-node .tree-toggle-btn{color:#94a3b8!important;background:#f8fafc!important;border-color:#e2e8f0!important;}

/* 2026-05 分类下单数量框键盘输入优化 */
.order-product-table .qty-stepper input:focus{outline:2px solid #2563eb!important;outline-offset:1px;background:#fff!important;}

/* 2026-05-12: 表格列宽彻底放开 + 数字化行高 + 搜索式下单修正 */
.configurable-wrap{overflow:auto!important;max-width:100%!important;}
.configurable-table{table-layout:fixed!important;border-collapse:collapse!important;width:auto!important;max-width:none!important;}
.configurable-table th,.configurable-table td{min-width:0!important;max-width:none!important;overflow:hidden!important;text-overflow:clip!important;white-space:nowrap!important;box-sizing:border-box!important;}
.configurable-table th{padding-left:4px!important;padding-right:16px!important;}
.configurable-table td{padding-left:4px!important;padding-right:4px!important;}
.configurable-table input,.configurable-table select,.configurable-table textarea{min-width:0!important;width:100%!important;max-width:100%!important;box-sizing:border-box!important;}
.search-order-wrap input.product-pick-input,.search-order-card .product-pick-input{min-width:0!important;width:100%!important;max-width:100%!important;}
.numeric-row-height{display:inline-flex!important;align-items:center!important;gap:4px!important;}
.numeric-row-height input{width:62px!important;height:30px!important;border:1px solid #bfd1e5!important;border-radius:8px!important;padding:0 6px!important;font-weight:900!important;text-align:center!important;background:#fff!important;}
.delete-search-row{padding:5px 10px!important;line-height:1!important;}
.product-picker-panel[hidden]{display:none!important;}
.product-picker-table tr.picker-active td{background:#dbeafe!important;outline:2px solid #2563eb;outline-offset:-2px;}

/* 2026-05-12：单据详情页只保留正式单据预览，删除上方重复明细区 */
.document-screen-sheet{display:block!important;margin:10px auto 24px!important;max-width:1160px!important;box-shadow:0 8px 26px rgba(15,23,42,.12);border:1px solid #e2e8f0;border-radius:10px;padding:24px 30px!important;box-sizing:border-box;}
.document-screen-sheet .print-document-table{width:100%!important;}
@media print{.document-screen-sheet{display:block!important;margin:0!important;max-width:none!important;box-shadow:none!important;border:0!important;border-radius:0!important;padding:10mm 12mm!important;}.document-screen-sheet .print-doc-right p{display:none!important;}}

/* CRM真实销售管理逻辑：阶段流转、防撞单记录 */
.crm-stage-timeline{display:flex;flex-direction:column;gap:8px;margin-top:8px}.crm-stage-item{border-left:4px solid #2563eb;background:#f8fbff;border-radius:10px;padding:9px 10px;box-shadow:inset 0 0 0 1px #dbeafe}.crm-stage-item b{display:block;color:#0f172a;font-size:14px}.crm-stage-item span{display:block;color:#1d4ed8;font-weight:800;margin-top:2px}.crm-stage-item em{display:block;color:#64748b;font-size:12px;font-style:normal;margin-top:2px}.crm-stage-item p{margin:5px 0 0;color:#334155;font-size:13px}

/* CRM真实销售管理逻辑：阶段流转、防撞单记录 */
.crm-stage-timeline{display:flex;flex-direction:column;gap:8px;margin-top:8px}.crm-stage-item{border-left:4px solid #2563eb;background:#f8fbff;border-radius:10px;padding:9px 10px;box-shadow:inset 0 0 0 1px #dbeafe}.crm-stage-item b{display:block;color:#0f172a;font-size:14px}.crm-stage-item span{display:block;color:#1d4ed8;font-weight:800;margin-top:2px}.crm-stage-item em{display:block;color:#64748b;font-size:12px;font-style:normal;margin-top:2px}.crm-stage-item p{margin:5px 0 0;color:#334155;font-size:13px}
/* 本次更新：顶部闲置搜索框已删除，登录信息靠右显示 */
.v4-topbar{justify-content:flex-end!important;}

/* ===== CRM 轻量化升级补充样式（2026-05） ===== */
.crm-action-grid-8{grid-template-columns:repeat(4,minmax(0,1fr));}
.crm-action-card i{font-style:normal;}
.funnel-bars-stage .funnel-row{grid-template-columns:90px minmax(140px,1fr) 46px minmax(160px,1fr);align-items:center;}
.funnel-bars-stage .funnel-row em{font-style:normal;color:#667085;font-size:12px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.crm-table-wrap table{min-width:1380px;}
.form-grid label em{color:#d92d20;font-style:normal;margin-left:3px;font-weight:900;}
.crm-debt-summary{grid-template-columns:repeat(3,minmax(0,1fr));margin-bottom:16px;}
.crm-debt-line{border:1px solid #e3e9f0;border-radius:12px;padding:10px 12px;margin:8px 0;background:#fff;display:grid;grid-template-columns:90px minmax(0,1fr) auto;gap:8px;align-items:center;}
.crm-debt-line b{color:#d92d20;font-size:16px;}
.crm-debt-line span{color:#344054;}
.crm-debt-line em{grid-column:1/-1;font-style:normal;color:#667085;font-size:12px;}
.crm-debt-line form{margin:0;}
.crm-debt-line.settled{background:#f8fafc;opacity:.78;}
.crm-debt-line.settled b{color:#667085;}
.crm-debt-note{background:#fff7ed;border:1px solid #fed7aa;border-radius:10px;padding:8px 10px!important;color:#9a3412!important;}
.crm-form-main .section-title{margin-top:18px;}
.crm-form-main .section-title:first-of-type{margin-top:0;}
@media(max-width:1200px){.crm-action-grid-8{grid-template-columns:repeat(2,minmax(0,1fr));}.funnel-bars-stage .funnel-row{grid-template-columns:80px minmax(120px,1fr) 38px;}.funnel-bars-stage .funnel-row em{grid-column:1/-1;padding-left:4px;}.crm-debt-summary{grid-template-columns:1fr;}}
@media(max-width:640px){.crm-action-grid-8{grid-template-columns:1fr;}.crm-debt-line{grid-template-columns:1fr;}.crm-table-wrap table{min-width:1100px;}}

/* v18 simple collapsible tree */
.erp-text-tree .erp-tree-row.has-children .tree-node-name{font-weight:900!important;color:#0f172a}.erp-text-tree .erp-tree-row.leaf-node .tree-node-name{font-weight:500}.erp-text-tree .tree-twisty{font-weight:900;text-align:center;user-select:none}.erp-tree-row.has-children{font-weight:900}
.inline-form input[type=file]{max-width:180px}
.sales-performance-board{margin-top:12px}

/* V40：基础资料表格表头紧凑化，解决可配置列宽后表头过高、不协调的问题 */
.erp-table-panel .table-wrap{max-height:calc(100vh - 220px);}
.erp-data-table th,
#customerDataTable th,
#productDataTable th{
  height:34px!important;
  min-height:34px!important;
  padding:5px 8px!important;
  line-height:1.2!important;
  vertical-align:middle!important;
  white-space:nowrap!important;
}
.erp-data-table td,
#customerDataTable td,
#productDataTable td{
  height:38px!important;
  min-height:38px!important;
  padding:6px 8px!important;
  line-height:1.25!important;
  vertical-align:middle!important;
}
.configurable-table th,
.configurable-table td{
  height:var(--row-height,38px)!important;
}
#customerDataTable .select-col,
#productDataTable .select-col,
.erp-data-table .select-col{
  width:54px!important;
  min-width:54px!important;
  max-width:54px!important;
  text-align:center!important;
  padding-left:4px!important;
  padding-right:4px!important;
}
.select-all-wrap{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  gap:4px!important;
  margin:0!important;
  padding:0!important;
  height:22px!important;
  min-height:22px!important;
  font-size:12px!important;
  font-weight:800!important;
  color:#1f2937!important;
}
.select-all-wrap input,
#selectAllProducts,
#selectAllCustomers,
.product-row-check,
.customer-row-check{
  width:18px!important;
  height:18px!important;
  min-width:18px!important;
  margin:0!important;
  padding:0!important;
  vertical-align:middle!important;
}
.configurable-table .drag-hint{
  font-size:11px!important;
  margin-left:3px!important;
  opacity:.65!important;
}
.configurable-table .col-resizer{
  width:10px!important;
}
.configurable-table .col-resizer:after{
  top:5px!important;
  bottom:5px!important;
  right:4px!important;
}
/* V41：基础资料表格表头紧凑化，避免表头过高不协调 */
#productDataTable th,#customerDataTable th{
  height:30px!important;
  min-height:30px!important;
  padding:4px 18px 4px 6px!important;
  line-height:1.15!important;
  vertical-align:middle!important;
  font-size:13px!important;
}
#productDataTable td,#customerDataTable td{
  height:34px!important;
  min-height:34px!important;
  padding:4px 6px!important;
  line-height:1.2!important;
}
#productDataTable th[data-col="sel"],#customerDataTable th[data-col="sel"],
#productDataTable td[data-col="sel"],#customerDataTable td[data-col="sel"]{
  width:44px!important;min-width:44px!important;max-width:44px!important;padding-left:3px!important;padding-right:3px!important;text-align:center!important;
}
#productDataTable .select-all-wrap,#customerDataTable .select-all-wrap{height:20px!important;font-size:12px!important;gap:2px!important;}
#productDataTable .drag-hint,#customerDataTable .drag-hint{font-size:10px!important;margin-left:2px!important;}
#productDataTable .col-resizer,#customerDataTable .col-resizer{width:8px!important;}


/* v46 销售订单性能优化与紧凑录单布局 */
.v46-order-toolbar{padding:8px 10px;margin-bottom:8px}.order-fast-row{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.customer-fast-box{display:flex;align-items:center;gap:6px;flex:1;min-width:300px}.customer-fast-box input{height:32px;min-height:32px}.mode-inline{display:flex;gap:6px;align-items:center}.toolbar-hint{font-size:12px;color:#64748b;margin-top:4px}.v46-meta{margin:6px 0 8px;gap:6px}.v46-meta>div,.v46-meta label{padding:7px 9px;min-height:40px}.v46-sales-order-layout{gap:8px}.v46-table-wrap{max-height:calc(100vh - 300px);min-height:360px}.compact-order-grid{--order-row-height:28px}.compact-order-grid th{height:28px!important;padding:2px 6px!important;line-height:1.15!important}.compact-order-grid td{height:var(--order-row-height)!important;padding:1px 5px!important;line-height:1.1!important}.compact-order-grid input,.compact-order-grid select,.compact-order-grid button{min-height:22px!important;height:22px!important;padding:1px 5px!important;font-size:13px!important;line-height:1.1!important}.compact-order-grid .promo-mini{font-size:11px;line-height:1.1;margin-top:1px}.compact-order-grid .mini-check{white-space:nowrap}.tree-count{margin-left:auto;color:#64748b;font-style:normal;font-size:12px}.order-mode-panel,.compact-page-head{display:none!important}.search-order-card{margin-top:0}.product-head-compact{padding:8px 10px}.keyboard-order-tip{padding:5px 8px;font-size:12px}.bottom-order-bar{min-height:44px;padding:7px 10px}.order-products-card.v4-card,.order-tree-card.v4-card{padding:8px}.erp-tree-row{min-height:26px}.row-height-control input{width:54px}

/* v49 销售订单：流式加载 + 顶部减拥挤 + 行高真正生效 */
.v49-order-toolbar{padding:10px 12px!important;margin-bottom:6px!important;border-radius:18px!important;}
.v49-order-toolbar .order-fast-row{display:grid!important;grid-template-columns:minmax(360px,1fr) auto auto auto!important;gap:8px!important;align-items:center!important;}
.v49-order-toolbar .customer-fast-box{min-width:0!important;width:100%!important;}
.v49-order-toolbar .customer-fast-box input{height:34px!important;min-height:34px!important;font-size:14px!important;}
.v49-order-toolbar .mode-inline{display:inline-flex!important;gap:6px!important;white-space:nowrap!important;}
.v49-order-toolbar .btn{height:34px!important;min-height:34px!important;padding:0 14px!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;}
.v49-order-toolbar .toolbar-hint{font-size:12px!important;line-height:1.2!important;margin-top:5px!important;color:#64748b!important;}
.v49-meta-strip{display:flex!important;align-items:center!important;gap:8px!important;flex-wrap:wrap!important;background:#fff!important;border:1px solid #dbe7f5!important;border-radius:14px!important;padding:6px 8px!important;margin:4px 0 8px!important;box-shadow:0 8px 20px rgba(15,23,42,.04)!important;}
.v49-meta-strip>div,.v49-meta-strip>label,.v49-meta-strip>details{display:inline-flex!important;align-items:center!important;gap:6px!important;min-height:30px!important;padding:4px 8px!important;border-radius:10px!important;background:#f8fbff!important;border:1px solid #e6eef8!important;font-size:12px!important;color:#475569!important;}
.v49-meta-strip .meta-main{min-width:240px!important;max-width:420px!important;flex:1 1 260px!important;}
.v49-meta-strip b{font-weight:900!important;color:#334155!important;white-space:nowrap!important;}
.v49-meta-strip strong{font-size:13px!important;color:#102a56!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;}
.v49-meta-strip span{white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;}
.v49-meta-strip input,.v49-meta-strip select{height:26px!important;min-height:26px!important;padding:0 6px!important;font-size:12px!important;border-radius:8px!important;}
.v49-meta-strip .customer-more{position:relative!important;}
.v49-meta-strip .customer-more summary{cursor:pointer!important;font-weight:900!important;color:#2563eb!important;list-style:none!important;}
.v49-meta-strip .customer-more summary::-webkit-details-marker{display:none!important;}
.v49-meta-strip .customer-more div{position:absolute!important;right:0!important;top:32px!important;z-index:50!important;width:260px!important;background:#fff!important;border:1px solid #dbe7f5!important;border-radius:12px!important;box-shadow:0 12px 28px rgba(15,23,42,.16)!important;padding:8px!important;}
.v49-meta-strip .customer-more p{display:flex!important;justify-content:space-between!important;gap:8px!important;margin:0 0 6px!important;font-size:12px!important;}
.v49-sales-order-layout,.sales-order-layout.v46-sales-order-layout{gap:8px!important;}
.v46-table-wrap{max-height:calc(100vh - 255px)!important;min-height:390px!important;overflow:auto!important;}
.compact-order-grid{--order-row-height:24px;--row-height:24px;}
.compact-order-grid th,.compact-order-grid td{height:var(--row-height,var(--order-row-height,24px))!important;min-height:var(--row-height,var(--order-row-height,24px))!important;max-height:var(--row-height,var(--order-row-height,24px))!important;padding:1px 5px!important;line-height:1.05!important;vertical-align:middle!important;}
.compact-order-grid input,.compact-order-grid select,.compact-order-grid button{height:calc(var(--row-height,var(--order-row-height,24px)) - 4px)!important;min-height:18px!important;max-height:calc(var(--row-height,var(--order-row-height,24px)) - 4px)!important;padding:0 4px!important;font-size:12px!important;line-height:1!important;border-radius:5px!important;}
.compact-order-grid .btn.tiny{height:20px!important;min-height:18px!important;padding:0 5px!important;font-size:11px!important;}
.compact-order-grid .promo-mini{display:none!important;}
.load-more-row td{text-align:center!important;color:#64748b!important;background:#f8fbff!important;font-weight:900!important;}
.product-head-compact h2{font-size:16px!important;line-height:1.1!important;margin:0!important;}.product-head-compact p{font-size:12px!important;margin:2px 0 0!important;}
.product-head-compact{padding:6px 8px!important;gap:6px!important;}.product-head-tools{gap:6px!important;}
.numeric-row-height{height:30px!important;padding:3px 6px!important;}.numeric-row-height input{height:24px!important;min-height:24px!important;width:54px!important;}
@media (max-width:1200px){.v49-order-toolbar .order-fast-row{grid-template-columns:1fr auto auto!important}.v49-order-toolbar .mode-inline{grid-column:1/-1!important}.v46-table-wrap{max-height:calc(100vh - 310px)!important}.v49-meta-strip .meta-main{flex-basis:100%!important;max-width:none!important}}

/* v49 追加：客户输入框固定约30字宽，按钮左移；客户信息区跟随行高 */
.v49-order-toolbar .order-fast-row{grid-template-columns:minmax(300px,420px) auto auto auto!important;justify-content:start!important;align-items:center!important;}
.v49-order-toolbar .customer-fast-box{flex:0 0 420px!important;max-width:420px!important;min-width:300px!important;}
.v49-order-toolbar .customer-fast-box input{max-width:360px!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important;}
.v49-meta-strip>div,.v49-meta-strip>label,.v49-meta-strip>details{min-height:var(--row-height,var(--order-row-height-global,30px))!important;height:var(--row-height,var(--order-row-height-global,30px))!important;max-height:var(--row-height,var(--order-row-height-global,30px))!important;}
.v49-meta-strip input,.v49-meta-strip select{height:calc(var(--row-height,var(--order-row-height-global,30px)) - 6px)!important;min-height:18px!important;max-height:calc(var(--row-height,var(--order-row-height-global,30px)) - 6px)!important;}
.product-picker-table th,.product-picker-table td{height:var(--row-height,var(--order-row-height,24px))!important;padding:1px 5px!important;}


/* v50：销售订单表头固定宽度、客户备用信息可编辑、分类表也支持列宽/列顺序/显示列 */
.v50-order-toolbar .v50-customer-row{display:flex!important;align-items:center!important;gap:8px!important;flex-wrap:nowrap!important;justify-content:flex-start!important;}
.v50-order-toolbar .v50-customer-box{flex:0 0 auto!important;width:auto!important;min-width:0!important;max-width:none!important;}
.v50-order-toolbar .v50-customer-box input{width:25em!important;max-width:25em!important;min-width:25em!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important;}
.v50-order-toolbar .btn{flex:0 0 auto!important;}.v50-order-toolbar .mode-inline{flex:0 0 auto!important;display:inline-flex!important;gap:6px!important;white-space:nowrap!important;}
.v50-meta-main-strip,.v50-backup-strip{display:flex!important;align-items:center!important;gap:6px!important;flex-wrap:nowrap!important;overflow-x:auto!important;overflow-y:hidden!important;padding:5px 6px!important;}
.v50-meta-main-strip>label,.v50-meta-main-strip>div,.v50-backup-strip>label{flex:0 0 auto!important;display:inline-flex!important;align-items:center!important;gap:4px!important;margin:0!important;padding:3px 5px!important;}
.v50-staff-field select{width:4.5em!important;min-width:4.5em!important;max-width:4.5em!important;}.v50-date-field input{width:10.5em!important;min-width:10.5em!important;max-width:10.5em!important;}
.v50-order-no-field span{display:inline-block!important;width:14.5em!important;min-width:14.5em!important;max-width:14.5em!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important;}
.v50-backup-field input{width:6em!important;min-width:6em!important;max-width:6em!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important;}.v50-temp-customer input{width:18em!important;min-width:18em!important;max-width:18em!important;}.v50-temp-code input{width:9em!important;min-width:9em!important;max-width:9em!important;}
.v50-meta-main-strip b,.v50-backup-strip b{white-space:nowrap!important;font-size:12px!important;}
#salesOrderTable th .drag-hint,#searchOrderTable th .drag-hint,#productPickerTable th .drag-hint{opacity:.45;margin-left:3px;}#salesOrderTable th,#searchOrderTable th,#productPickerTable th{position:relative;user-select:none;}#salesOrderTable .col-resizer,#searchOrderTable .col-resizer,#productPickerTable .col-resizer{position:absolute;right:0;top:0;bottom:0;width:6px;cursor:col-resize;background:rgba(37,99,235,.08);}#salesOrderTable th.dragging-col,#searchOrderTable th.dragging-col,#productPickerTable th.dragging-col{opacity:.55;}#salesOrderTable th.drag-over-col,#searchOrderTable th.drag-over-col,#productPickerTable th.drag-over-col{outline:2px solid #2563eb;}

/* v51：销售订单头部改为两行紧凑信息区，避免备用信息逐项独占一行 */
.v51-meta-panel{
  display:block!important;
  background:#fff!important;
  border:1px solid #dbe7f5!important;
  border-radius:14px!important;
  padding:5px 6px!important;
  margin:4px 0 8px!important;
  box-shadow:0 6px 16px rgba(15,23,42,.035)!important;
  overflow-x:auto!important;
  overflow-y:hidden!important;
}
.v51-meta-row{
  display:flex!important;
  align-items:center!important;
  justify-content:flex-start!important;
  gap:6px!important;
  flex-wrap:nowrap!important;
  min-height:28px!important;
  margin:0!important;
  padding:2px 0!important;
  white-space:nowrap!important;
}
.v51-meta-row>label,
.v51-meta-row>div{
  flex:0 0 auto!important;
  display:inline-flex!important;
  align-items:center!important;
  gap:3px!important;
  margin:0!important;
  padding:2px 4px!important;
  min-height:26px!important;
  height:26px!important;
  max-height:26px!important;
  background:#f8fbff!important;
  border:1px solid #e6eef8!important;
  border-radius:8px!important;
  color:#334155!important;
  font-size:12px!important;
  box-sizing:border-box!important;
}
.v51-meta-row b{
  flex:0 0 auto!important;
  font-size:12px!important;
  font-weight:900!important;
  color:#334155!important;
  line-height:1!important;
  white-space:nowrap!important;
}
.v51-meta-row input,
.v51-meta-row select{
  flex:0 0 auto!important;
  height:21px!important;
  min-height:21px!important;
  max-height:21px!important;
  padding:0 4px!important;
  line-height:1!important;
  font-size:12px!important;
  border-radius:6px!important;
  box-sizing:border-box!important;
}
.v51-meta-panel .v50-staff-field select{
  width:4.8em!important;
  min-width:4.8em!important;
  max-width:4.8em!important;
}
.v51-meta-panel .v50-date-field input{
  width:10.4em!important;
  min-width:10.4em!important;
  max-width:10.4em!important;
}
.v51-meta-panel .v50-order-no-field span{
  display:inline-block!important;
  width:15em!important;
  min-width:15em!important;
  max-width:15em!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
  white-space:nowrap!important;
  font-size:12px!important;
  color:#102a56!important;
}
.v51-meta-panel .v50-backup-field input{
  width:6em!important;
  min-width:6em!important;
  max-width:6em!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
  white-space:nowrap!important;
}
.v51-meta-panel .v50-temp-customer input{
  width:18em!important;
  min-width:18em!important;
  max-width:18em!important;
}
.v51-meta-panel .v50-temp-code input{
  width:9em!important;
  min-width:9em!important;
  max-width:9em!important;
}
.v51-meta-row-backups{margin-top:2px!important;}
/* v51：确保旧 v49/v50 信息区样式不会把本次两行布局挤成多行 */
.v51-meta-panel .v50-backup-field,
.v51-meta-panel .v50-staff-field,
.v51-meta-panel .v50-date-field,
.v51-meta-panel .v50-order-no-field{
  width:auto!important;
  min-width:0!important;
  max-width:none!important;
}


/* v53 登录页与销售订单表头修正 */
.login-card-v53{width:min(470px,100%);padding:30px 34px 34px;border-radius:8px;}
.login-card-v53 .login-logo-wrap{margin-bottom:14px;}
.login-card-v53 .login-logo-wrap img{width:150px;height:auto;max-height:150px;object-fit:contain;}
.login-card-v53 h1{font-size:24px;line-height:1.35;text-align:center;color:#173567;margin:0 0 24px;font-weight:900;}
.login-card-v53 input{height:42px;}
.v53-order-toolbar{padding:8px 10px!important;margin-bottom:6px!important;}
.v53-customer-row{display:flex!important;align-items:center!important;gap:10px!important;flex-wrap:nowrap!important;}
.v53-customer-box{display:flex!important;align-items:center!important;gap:8px!important;flex:0 0 auto!important;margin:0!important;}
.v53-customer-box b{width:42px;text-align:right;}
.v53-customer-box input{width:380px!important;min-width:380px!important;max-width:380px!important;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.v53-order-no-top{height:34px;display:inline-flex;align-items:center;gap:6px;border:1px solid #cfd8e3;border-radius:8px;background:#fff;padding:0 12px;white-space:nowrap;margin-left:auto;font-weight:800;color:#173567;}
.v53-order-no-top b{color:#111827;}
.v53-meta-panel{padding:6px 10px!important;margin-bottom:8px!important;}
.v53-meta-row-main,.v53-meta-row-backups{display:flex!important;align-items:center!important;gap:10px!important;flex-wrap:nowrap!important;margin:0 0 6px!important;}
.v53-meta-row-backups{margin-bottom:0!important;}
.v53-meta-panel label{display:flex!important;align-items:center!important;gap:6px!important;margin:0!important;font-weight:800;}
.v53-meta-panel label b{white-space:nowrap;}
.v53-meta-panel input,.v53-meta-panel select{height:30px!important;border-radius:7px!important;padding:0 8px!important;}
.v53-meta-panel .v50-staff-field select{width:120px!important;min-width:120px!important;max-width:120px!important;}
.v53-meta-panel .v50-date-field input{width:136px!important;min-width:136px!important;max-width:136px!important;}
.v53-meta-panel .v50-backup-field input{width:112px!important;min-width:112px!important;max-width:112px!important;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.v53-temp-customer input{width:200px!important;min-width:200px!important;max-width:200px!important;}
.v53-temp-code input{width:120px!important;min-width:120px!important;max-width:120px!important;}
.pretty-product-tree .tree-fold-btn{display:none!important;}
.pretty-product-tree .erp-tree-row{cursor:pointer!important;}
.pretty-product-tree .erp-tree-row.has-children .tree-node-name:before{content:""!important;}
.pretty-product-tree .erp-tree-row.has-children{background:#fff!important;}
.pretty-product-tree .erp-tree-row.active{background:#dbeafe!important;}
@media(max-width:1200px){.v53-customer-row,.v53-meta-row-main,.v53-meta-row-backups{overflow-x:auto!important;padding-bottom:2px;}.v53-order-no-top{margin-left:0;}}

/* V54 login fallback */
.login-card-v54 .login-logo-wrap img{width:96px!important;max-width:96px!important;max-height:96px!important;object-fit:contain!important;}
.login-card-v54{width:min(380px,100%)!important;}
