:root{font-family:Inter,"Microsoft YaHei",system-ui,sans-serif;color:#1d2c40;background:#f2f5f9;font-size:16px;--blue:#153d72;--muted:#64748b;--line:#e2e8f0}*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button,a,input,select{touch-action:manipulation}button{cursor:pointer;border:1px solid var(--line);border-radius:7px;padding:10px 15px;background:white;color:#253953;font-size:.9rem;font-weight:600}button:hover{background:#edf3fb;border-color:#9eb6d4}button:disabled{opacity:.6;cursor:wait}button.primary{background:var(--blue);border-color:var(--blue);color:white}button.danger{color:#b43d3d}button.small{padding:7px 10px;font-size:.875rem}a{color:#245b9b;text-decoration:none}a:hover{text-decoration:underline}input,select,textarea{width:100%;border:1px solid #cbd5e1;border-radius:6px;background:white;color:#1d2c40;padding:11px;min-width:0}input:focus,select:focus,textarea:focus,button:focus-visible,a:focus-visible{outline:3px solid #83b3f1;outline-offset:2px}input[readonly]{background:#f0f3f7;color:#526276}textarea{min-height:84px;resize:vertical}label{display:flex;flex-direction:column;gap:7px;font-size:.9rem;color:#40536b}h1,h2,h3,p{margin-top:0}h1{font-size:1.65rem;letter-spacing:-.035em;margin-bottom:8px}h2{font-size:1.15rem}h3{font-size:1rem}small,.muted{color:var(--muted);font-size:.875rem;line-height:1.7}.loading{padding:32px}.shell{display:grid;grid-template-columns:225px 1fr;min-height:100vh}.sidebar{background:#112d51;color:#d9e5f6;padding:30px 18px;position:sticky;top:0;height:100vh;display:flex;flex-direction:column}.brand{font-size:1.25rem;font-weight:750;letter-spacing:.04em;display:flex;align-items:center;gap:12px;margin:0 10px 35px}.brand img{width:32px;height:32px}.sidebar .eyebrow{font-size:.75rem;letter-spacing:.14em;color:#99b1cf;margin:20px 12px 12px}.nav{display:grid;gap:6px}.nav button{text-align:left;background:transparent;border:none;color:#b8cbe2;padding:14px 16px;font-weight:500}.nav button.active{background:#254b79;color:white}.nav button:hover{background:#1e426c;color:white}.side-note{margin-top:auto;padding:22px 12px 0;color:#a0b7d3;font-size:.8rem;line-height:1.8}.main{min-width:0}.topbar{background:white;border-bottom:1px solid var(--line);padding:18px 36px;display:flex;align-items:center;justify-content:space-between;gap:12px}.topbar strong{font-size:.9rem}.topbar .user{display:flex;gap:12px;align-items:center}.avatar{background:#e6eef8;color:var(--blue);width:34px;height:34px;border-radius:50%;display:grid;place-items:center;font-weight:700}.content{max-width:1450px;margin:auto;padding:32px 36px 60px}.page-head{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:26px}.eyebrow{color:#587394;text-transform:uppercase;letter-spacing:.12em;font-size:.75rem;font-weight:700}.stats{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;margin:22px 0}.stat{background:white;border:1px solid var(--line);border-radius:10px;padding:21px 22px}.stat .value{font-size:1.8rem;font-weight:700;margin:13px 0 5px;letter-spacing:-.04em;font-variant-numeric:tabular-nums}.stat .label{font-size:.9rem;color:#52657d}.stat.blue{background:#153d72;color:white;border-color:#153d72}.stat.blue .label,.stat.blue small{color:#bcd0eb}.panel{background:white;border:1px solid var(--line);border-radius:10px;margin-top:20px;overflow:hidden}.panel-title{display:flex;justify-content:space-between;align-items:center;padding:21px 23px;border-bottom:1px solid var(--line);gap:12px}.panel-title h2{margin:0}.table-wrap{overflow:auto}table{border-collapse:collapse;width:100%;font-size:.9rem;text-align:left}th{color:#6b7b91;font-size:.8rem;font-weight:600;background:#f8fafc;white-space:nowrap}th,td{padding:15px 20px;border-bottom:1px solid #edf1f5;vertical-align:middle}tr:last-child td{border-bottom:0}td .sub{font-size:.8rem;color:#77869b;margin-top:5px}.numeric{font-variant-numeric:tabular-nums;white-space:nowrap}.badge{display:inline-block;font-size:.78rem;line-height:1.5;border-radius:5px;padding:4px 8px;color:#53657c;background:#edf1f5;white-space:nowrap}.badge.pending{background:#fff4dd;color:#925d13}.badge.approved,.badge.verified,.badge.issued,.badge.paid{background:#e6f5ef;color:#1c7251}.badge.rejected{background:#fceaea;color:#a23939}.task{padding:17px 23px;border-bottom:1px solid #edf1f5;display:flex;justify-content:space-between;gap:16px;align-items:center}.task:last-child{border:0}.task strong{display:block;font-size:.9rem;margin-bottom:5px}.task .count{background:#f0f4fa;color:#285080;border-radius:6px;padding:8px 13px;font-weight:700}.empty{padding:35px 24px;text-align:center;color:#75849a;line-height:1.8}.notice{padding:14px 18px;border-radius:7px;background:#eaf1fb;color:#3d5d85;font-size:.875rem;line-height:1.7;margin:18px 0}.notice.warning{background:#fff4df;color:#895b1e}.toolbar{display:flex;gap:12px;align-items:center;margin:20px 0}.toolbar input{max-width:350px}.toolbar select{max-width:160px}.button-row{display:flex;gap:10px;flex-wrap:wrap}.details{padding:22px}.grid{display:grid;grid-template-columns:1fr 1fr;gap:17px}.grid .wide{grid-column:1/-1}.info-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:20px}.info-grid strong{display:block;margin-top:8px}.timeline{border-left:2px solid #dae4f0;margin:10px 6px;padding:0 0 0 22px}.timeline p{font-size:.9rem;line-height:1.7;margin-bottom:22px}.timeline small{display:block}.login{min-height:100vh;display:grid;grid-template-columns:1fr 1fr}.login-aside{background:#112d51;color:white;padding:12vh 9%;display:flex;flex-direction:column;justify-content:center}.login-aside h1{font-size:2.8rem;line-height:1.4;margin:35px 0 22px}.login-aside p{color:#b8cee8;line-height:1.9;max-width:450px}.login-main{display:grid;place-items:center;padding:30px}.login-box{width:100%;max-width:360px}.login-box h2{font-size:1.7rem}.login-box form{display:grid;gap:20px;margin-top:32px}.login-box button{padding:14px}.error{color:#ae3333;background:#fff0f0;border-radius:6px;padding:10px;font-size:.875rem;line-height:1.6}.error:empty{display:none}dialog{border:0;border-radius:12px;box-shadow:0 25px 100px #102c5040;max-width:850px;width:calc(100% - 32px);max-height:90vh;padding:0;color:#20344d}dialog::backdrop{background:#152a4560;backdrop-filter:blur(3px)}.modal-head{padding:24px 26px 16px;display:flex;justify-content:space-between;align-items:center}.modal-head h2{margin:0}.modal-body{padding:8px 26px 26px}.modal-body form{display:grid;gap:18px}.modal-body .button-row{justify-content:flex-end;margin-top:12px}.item-row{display:grid;grid-template-columns:1.4fr .7fr .7fr .65fr auto;gap:9px;margin-bottom:13px;align-items:end}.item-row label{font-size:.8rem}.item-row button{height:43px}.allocate-row{display:grid;grid-template-columns:1.5fr 1fr;gap:12px;align-items:center;padding:12px 0;border-bottom:1px solid var(--line)}.allocate-row label{font-size:.875rem}.section-caption{border-top:1px solid var(--line);padding-top:18px;margin-top:3px}.mobile-cards{display:none}.file-list{display:grid;gap:8px;margin-top:10px}#toast{position:fixed;bottom:28px;left:50%;transform:translateX(-50%);padding:13px 23px;border-radius:8px;background:#142f50;color:white;box-shadow:0 6px 25px #102c5020;z-index:10;max-width:90%;display:none;font-size:.9rem}#toast.show{display:block}.pill-note{font-size:.75rem;border:1px solid #d0ddea;padding:4px 8px;border-radius:4px;color:#58708d}.record-card{padding:20px;border-bottom:1px solid var(--line)}.record-card h3{margin-bottom:8px}.record-card .row{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:10px}.record-card .button-row{margin-top:14px}.invoice-number{word-break:break-all}.nowrap{white-space:nowrap}@media(max-width:1000px){.shell{grid-template-columns:190px 1fr}.content{padding:25px 22px}.topbar{padding:16px 22px}.stats{gap:10px}.stat{padding:18px 15px}.stat .value{font-size:1.45rem}.brand{font-size:1.05rem}}@media(max-width:700px){.shell{display:block}.sidebar{position:static;height:auto;padding:16px 16px 0}.brand{margin:0 0 15px}.sidebar .eyebrow,.side-note{display:none}.nav{display:flex;overflow-x:auto;gap:2px;padding-bottom:10px}.nav button{white-space:nowrap;padding:10px 14px;font-size:.875rem}.topbar{padding:12px 16px}.topbar .context{display:none}.topbar .user{width:100%;justify-content:space-between}.content{padding:23px 16px 50px}.page-head{gap:10px;align-items:flex-start;margin-bottom:18px}h1{font-size:1.4rem}.page-head .muted{font-size:.8rem}.stats{grid-template-columns:1fr 1fr;gap:10px}.stat{padding:16px}.stat .value{font-size:1.5rem}.stat .label{font-size:.8rem}.stat small{font-size:.75rem}.desktop-table{display:none}.mobile-cards{display:block}.panel-title{padding:17px}.details{padding:17px}.grid{grid-template-columns:1fr}.grid .wide{grid-column:auto}.info-grid{grid-template-columns:1fr 1fr}.toolbar{flex-wrap:wrap}.toolbar input{max-width:none;flex:1;min-width:160px}.toolbar select{max-width:125px}.item-row{grid-template-columns:1fr 1fr;gap:12px;background:#f5f8fc;padding:14px;border-radius:8px}.item-row label:first-child{grid-column:1/-1}.item-row button{width:44px}.login{display:block;background:#f2f5f9}.login-aside{padding:30px 24px}.login-aside h1{font-size:1.6rem;margin:0 0 10px}.login-aside p{font-size:.9rem;margin:0}.login-main{padding:35px 24px}.modal-head{padding:20px}.modal-body{padding:8px 20px 24px}.allocate-row{grid-template-columns:1fr 110px}.task{padding:16px}.button-row button{min-height:42px}.table-wrap th,.table-wrap td{padding:12px}.pill-note{display:none}}

.sidebar{overflow-y:auto}.table-wrap td small{display:block}.master-pager{padding:18px}.export-line{border:1px solid var(--line);border-radius:8px;padding:14px;margin:14px 0}.export-line summary{cursor:pointer;font-weight:600;margin-bottom:12px}#master-search{max-width:480px}#master-count{white-space:nowrap}@media(max-width:700px){.page-head{flex-wrap:wrap}.panel-title:has(#master-search){flex-wrap:wrap}.task{flex-wrap:wrap;gap:10px}}

.check-row{flex-direction:row;align-items:center;padding:10px 0}.check-row input{width:auto}.login-box form{display:grid;gap:16px}.file-list a{overflow-wrap:anywhere}
.invoice-sheet{background:white;color:#111;padding:24px;font-family:'SimSun',serif}.invoice-sheet p{font-size:18px}.invoice-sheet table{width:100%;border-collapse:collapse;table-layout:fixed}.invoice-sheet th,.invoice-sheet td{border:1px solid #111;padding:14px 8px;white-space:normal;overflow-wrap:anywhere;text-align:center}.invoice-sheet th:first-child{width:34%}.invoice-sheet th:nth-child(2){width:25%}

/* 回款预警与冲红标记（2026-09-20 新增） */
.task.due-red,.panel.due-red{border-left:4px solid #c0392b;background:#fdf3f2}
.negative,.negative strong{color:#c0392b}
tr.clawback td{color:#c0392b}
tr.clawback td .sub{color:#a3382f}
.task.due-orange,.panel.due-orange{border-left:4px solid #e08b1a;background:#fffaf0}
.task.urgency-red,.panel.urgency-red{border-left:4px solid #b42318;background:#fff1f2}
.task.urgency-orange,.panel.urgency-orange{border-left:4px solid #b45309;background:#fff8eb}
.task.urgency-blue,.panel.urgency-blue{border-left:4px solid #2563a6;background:#f0f7ff}
.urgency-label{display:inline-block;padding:3px 8px;margin:3px 6px;border-radius:5px;font-size:.8rem;font-weight:600;white-space:nowrap}
.urgency-label.urgency-red,.badge.rejected{background:#fee2e2;color:#991b1b}
.urgency-label.urgency-orange{background:#ffedd5;color:#9a3412}
.urgency-label.urgency-blue,.badge.pending,.badge.ready{background:#dbeafe;color:#1e40af}
.urgency-label.urgency-green,.badge.approved,.badge.issued,.badge.verified,.badge.paid{background:#dcfce7;color:#166534}
.panel.due-red,.panel.due-orange{border-left-width:5px}
.badge.reversed{background:#f4e3e1;color:#a3382f}
.badge.red_registered{background:#fdf0da;color:#8a5a12}
.badge.done{background:#e6f5ef;color:#1c7251}
.badge.issued{background:#e6f5ef;color:#1c7251}

/* product search box (added 2026-09-20) */
.item-row .product-search{display:block;width:100%;margin:0 0 6px;padding:7px 9px;border:1px solid #c8d2e0;border-radius:6px;background:#fff;font-size:13px;color:inherit}
.item-row .product-search::placeholder{color:#8a97a8}
#item-filter{width:280px;margin:0 0 0 auto;padding:7px 9px;border:1px solid #c8d2e0;border-radius:6px;background:#fff;font-size:13px;color:inherit}

/* 合同反签四段进度（2026-09-20 新增） */
.stage-line{display:flex;flex-wrap:wrap;align-items:center;gap:6px;margin:10px 0}
.stage-line i{color:#9aa9bd;font-style:normal;font-size:.8rem}
.stage-line .stage{padding:5px 10px;border-radius:999px;background:#eef2f7;color:#7a8899;font-size:.8rem;font-weight:600;white-space:nowrap}
.stage-line .stage.on{background:var(--blue);color:#fff}
.panel-title .stage-line{margin:0}
#contract-lock{margin:12px 0}
.ship-line{border-top:1px solid #e6ebf2;padding:12px 0}
.ship-line:first-of-type{border-top:0}
.ship-head{display:flex;flex-wrap:wrap;gap:10px;align-items:baseline;justify-content:space-between}
.ship-head strong{font-size:.95rem}
.ship-head span{color:#7a8899;font-size:.85rem}
.ship-line .grid{margin-top:8px}
.ship-sum{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin-top:8px}
.ship-sum .muted{font-size:.82rem}

/* 订单撤回 / 修改（2026-09-21 新增）：变更前灰删除线、变更后橙红高亮，
   admin 在工作台和订单页一眼看到"这是修改订单，改了哪几处"。 */
.amend-diff{list-style:none;margin:8px 0 0;padding:0;border-top:1px dashed #e6c9ae}
.amend-diff li{display:flex;flex-wrap:wrap;gap:8px;align-items:baseline;padding:6px 0;border-bottom:1px dashed #f0e2d4}
.amend-field{font-weight:600;color:#5b6b7e;min-width:6.5em;flex:0 0 auto}
.amend-before{color:#9aa9bd;text-decoration:line-through;text-decoration-color:#c9a;overflow-wrap:anywhere}
.amend-arrow{color:#c0762a;font-style:normal;font-weight:700}
.amend-after{color:#c0392b;font-weight:700;background:#fdeeea;border-radius:4px;padding:1px 6px;overflow-wrap:anywhere}
.badge.amend{background:#fdeeea;color:#c0392b;border:1px solid #f0c4bd}
.badge.withdrawn{background:#eef2f7;color:#5b6b7e;border:1px solid #d8e0ea}
.badge.cancelled{background:#eceff3;color:#66707a;border:1px solid #d5dbe2}
.notice.amend-notice{background:#fff7ed;border-color:#f0b27a;border-left:4px solid #e08b1a}
.notice.amend-notice strong{color:#a35100}
.stat.red{background:#b42318;color:white;border-color:#b42318}
.stat.red .label,.stat.red small{color:#f6d5d2}
.stat.orange{background:#b45309;color:white;border-color:#b45309}
.stat.orange .label,.stat.orange small{color:#f7e0c4}
.badge.license-expired{background:#fee2e2;color:#991b1b}
.badge.license-expiring30{background:#ffedd5;color:#9a3412}
.badge.license-expiring90{background:#fef3c7;color:#854d0e}
.badge.license-valid{background:#dcfce7;color:#166534}
.badge.license-forever{background:#eef2f7;color:#5b6b7e}
.badge.license-replaced{background:#eceff3;color:#66707a}
.badge.license-void{background:#f4e3e1;color:#a3382f}
button.link-stat{background:none;border:none;padding:0;font:inherit;color:inherit;text-decoration:underline;text-underline-offset:3px}
button.link-stat:hover{background:none;border-color:transparent;text-decoration-thickness:2px}
.license-actions{display:flex;flex-wrap:wrap;gap:6px}
.panel.amend-panel{border-left:4px solid #e08b1a}
.amend-card{border-left:3px solid #f0b27a}
.amend-card h3{font-size:.95rem;margin:0}
.amend-log{margin-top:10px}
.amend-log summary{cursor:pointer;font-weight:600;color:#7a8899;font-size:.875rem}
.amend-item{border-top:1px solid #eef2f7;padding:9px 0}
.amend-item:first-of-type{border-top:0}
.amend-item p{margin:4px 0 0;font-size:.85rem}
.amend-row{border-top:1px solid #eef2f7;padding:10px 0}
.amend-row:first-of-type{border-top:0}
.amend-row .grid{margin-top:8px}
.task.amend-task{border-left:4px solid #e08b1a;background:#fffaf0}
.dash-delta{margin-left:6px}
.dash-delta.dash-up{color:#c0392b}
.dash-delta.dash-down{color:#1e7a4d}
.amend-sub{margin-top:14px;border-top:1px solid #eef2f7;padding-top:12px}
.amend-sub>strong{display:block;margin-bottom:6px;font-size:.9rem;color:#8a5a12}


.nav-more summary{padding:14px 16px;cursor:pointer;color:#b8cbe2;font-size:.9rem}.nav-more-items{display:grid;gap:4px}.nav-more[open] summary{color:white}
@media(max-width:700px){.nav{flex-wrap:wrap;overflow:visible}.nav-more{flex-basis:100%}.nav-more summary{padding:10px 14px}.nav-more-items{display:flex;flex-wrap:wrap}}

/* 进项票「金额 + 商品」双重核对：票面明细行与逐行对照表（2026-09-23）。 */
.input-item-row{display:grid;grid-template-columns:1.7fr 1fr .7fr 1fr auto;gap:10px;align-items:center;margin-bottom:8px}
.input-item-row input{margin:0}
.match-table{width:100%;border-collapse:collapse;font-size:.86rem}
.match-table th,.match-table td{padding:8px 6px;border-bottom:1px solid var(--line);text-align:left;white-space:nowrap}
.match-table .numeric{text-align:right}
.nav-group summary{padding:12px 14px;cursor:pointer;font-weight:600;color:#d9e5f6}
.nav-group[open] summary{color:white}
.nav-group>div{display:grid;gap:3px;padding:0 0 8px 12px}
.section-tabs{margin-bottom:18px;flex-wrap:wrap}
.home-shortcuts{margin-bottom:20px}
.menu-toggle{display:none}
.dash-chart{margin-bottom:20px}
.dash-chart .panel-title{gap:12px;flex-wrap:wrap}
.dash-chart .panel-title>span,.dash-chart-note{font-size:.8rem;color:var(--muted)}
.dash-chart-legend{display:flex;flex-wrap:wrap;gap:18px;padding:0 20px 12px;font-size:.85rem}
.dash-chart-legend span{display:flex;align-items:center;gap:7px}
.dash-chart-legend i{display:inline-block;width:10px;height:10px;border-radius:2px}
.dash-chart-scroll{overflow-x:auto;padding:0 12px}
.dash-chart svg{display:block;width:100%;min-width:680px;max-height:340px}
.dash-chart svg text{font-size:12px;fill:#526276}
.dash-chart svg rect:focus{outline:2px solid #153d72;outline-offset:2px}
.dash-chart-note{padding:0 20px 16px;margin:0;line-height:1.6}
.dash-chart-controls{margin-bottom:12px;flex-wrap:wrap}
.dash-rank-rows{padding:0 20px 20px;max-height:430px;overflow-y:auto}
.dash-rank-row{display:grid;grid-template-columns:minmax(90px,150px) 1fr;gap:16px;padding:10px 0;border-top:1px solid var(--line)}
.dash-rank-row>strong{font-size:.85rem;overflow-wrap:anywhere;align-self:center}
.dash-bar-line{display:flex;align-items:center;gap:12px;min-height:28px}
.dash-bar-line:focus{outline:2px solid #83b3f1;outline-offset:2px}
.dash-bar-track{flex:1;background:#f2f5f9;height:12px;min-width:30px;border-radius:2px;overflow:hidden}
.dash-bar-track>span{display:block;height:100%;border-radius:2px}
.dash-bar-value{font-size:.8rem;min-width:100px;text-align:right;font-variant-numeric:tabular-nums}
@media(max-width:700px){.dash-rank-row{grid-template-columns:1fr;gap:4px}.dash-chart-legend{gap:12px}.dash-bar-value{min-width:90px}}
@media(max-width:700px){.menu-toggle{display:block;margin-bottom:12px}.nav{display:none}.nav.mobile-open{display:grid;grid-template-columns:1fr;gap:4px}.nav-group{min-width:0}.nav-group>div{padding-left:12px}.nav-group button{text-align:left;white-space:normal}.nav-group summary{padding:10px}.home-shortcuts .details{padding-top:0}}

/* 技术服务报告：客户 / 联系人可输入搜索 Combobox（2026-09-29）。 */
label.combo{position:relative}
.combo-list{position:absolute;top:100%;left:0;right:0;z-index:60;margin-top:4px;background:#fff;border:1px solid #c8d2e0;border-radius:6px;box-shadow:0 10px 24px rgba(15,35,70,.14);max-height:240px;overflow:auto}
.combo-item{padding:9px 11px;font-size:.88rem;cursor:pointer;color:#1d2c40}
.combo-item:hover,.combo-item.combo-active{background:#eef4fd}
.combo-none{padding:9px 11px;font-size:.85rem;color:#64748b}
/* 公共 Combobox：× 清除按钮（2026-09-29 主数据选择统一整改）。 */
.combo-box{position:relative;display:block}
.combo-box input{padding-right:26px}
.combo-clear{position:absolute;right:5px;top:50%;transform:translateY(-50%);width:18px;height:18px;line-height:16px;text-align:center;border:none;background:none;color:#8a94a6;cursor:pointer;font-size:14px;padding:0 2px}
.combo-clear:hover{color:#334155}

/* 订单资料中心：只调整本区域，窄屏优先显示状态和下一步。 */
.material-center-toolbar{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:18px 23px;flex-wrap:wrap}
.material-center-stats{grid-template-columns:repeat(3,minmax(0,1fr));margin:0;padding:0 23px 20px}
.material-center-section{padding:20px 23px;border-top:1px solid var(--line)}
.material-center-section p{margin:8px 0;overflow-wrap:anywhere}
.material-center-table td{vertical-align:top;min-width:120px;max-width:400px;overflow-wrap:anywhere}
.material-center details{margin:8px 0}.material-center summary{cursor:pointer;color:var(--blue);padding:8px 0;font-size:.9rem}
.material-evidence{padding:10px 0;border-top:1px solid var(--line)}.material-evidence small{display:block}
.material-history-record{background:#f8fafc;padding:10px}.material-related{padding:12px;border:1px solid var(--line);border-radius:7px}
@media(max-width:700px){
 .material-center-stats{grid-template-columns:1fr;padding:0 16px 16px}.material-center-toolbar,.material-center-section{padding:16px}
 .material-center-table .table-wrap{overflow:visible}.material-center-table table,.material-center-table tbody{display:block}
 .material-center-table thead{display:none}.material-center-table tr{display:flex;flex-direction:column;padding:12px 0;border-bottom:1px solid var(--line)}
 .material-center-table td{display:block;min-width:0;max-width:none;width:100%;border:0;padding:7px 0}
 .material-center-table td:nth-child(1){order:1;font-weight:700}.material-center-table td:nth-child(2){order:2}
 .material-center-table td:nth-child(5){order:3}.material-center-table td:nth-child(3){order:4}.material-center-table td:nth-child(4){order:5}
 .material-center-table td:nth-child(2)::before{content:'当前状态：';font-size:.875rem}.material-center-table td:nth-child(3)::before{content:'准备方式：';font-size:.875rem}
.material-center-table td:nth-child(5) button,.material-center-toolbar button{min-height:44px}.material-center-table td:nth-child(5) button{width:100%}
}
.contact-role-group{margin:12px 0;padding:0}.contact-role-group h4{margin:0 0 6px}.contact-role-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px 12px}.contact-role-grid .check-row{margin:0;padding:8px;border:1px solid #dce3eb;border-radius:6px;cursor:pointer}.contact-role-grid .check-row:has(input:checked){background:#edf5ff;border-color:#6397d1}.project-member-tags{display:flex;flex-wrap:wrap;gap:6px;margin:8px 0}.project-member-search button{display:block;margin:4px 0}@media(max-width:540px){.contact-role-grid{grid-template-columns:1fr}}
/* Role workbench: native charts, equivalent keyboard/touch drill buttons. */
.workbench-shell{--nav-bg:#122341;--nav-text:#b4c4df;--nav-hover:#1d365d;--app-bg:#f3f7fc;--card-radius:12px;--control-radius:7px;--workbench-blue:#2778ed;--workbench-ink:#152643;--workbench-muted:#7c8ba3;--workbench-line:#e6edf7;background:var(--app-bg);color:var(--workbench-ink)}
.workbench-shell .sidebar{background:var(--nav-bg);color:var(--nav-text);border-right:1px solid var(--nav-bg);padding:28px 16px}
.workbench-shell .brand{color:#fff;font-size:26px;margin:0 8px 24px;gap:12px}.workbench-shell .brand img{width:34px;height:34px}
.workbench-shell .eyebrow{color:var(--nav-text);margin-left:12px}.workbench-shell .nav-group summary{color:var(--nav-text);border-radius:8px;font-size:14px}.workbench-shell .nav-group[open] summary{color:#fff;background:var(--nav-hover)}
.nav-icon{width:19px;height:19px;vertical-align:middle;margin-right:9px;flex-shrink:0}.workbench-shell .nav-group>div{padding-left:18px}.workbench-shell button:focus-visible,.workbench-shell summary:focus-visible{outline:3px solid #79abff;outline-offset:2px}
.workbench-shell .nav button{color:var(--nav-text);border-radius:8px;min-height:40px}.workbench-shell .nav button:hover{background:var(--nav-hover);color:#fff}.workbench-shell .nav button.active{background:var(--workbench-blue);color:#fff;font-weight:700}.workbench-shell .menu-toggle{background:var(--nav-hover);color:#fff;border-color:#446281}
.workbench-shell .topbar{background:#f8fbff;border-bottom:1px solid var(--workbench-line);padding:22px 32px;gap:16px;flex-wrap:wrap}.workbench-shell .context strong{font-size:20px}.workbench-shell .avatar{background:#e1edff;color:#1765d5}.workbench-shell .user small{color:var(--workbench-muted)}
.workbench-shell .content{padding:28px 32px}.workbench-shell .panel{border:1px solid var(--workbench-line);border-radius:var(--card-radius);box-shadow:0 4px 18px rgba(42,83,146,.035)}
.home-role-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:22px}.home-role-heading h1{font-size:28px;letter-spacing:.02em;margin:0 0 7px}.home-role-heading p{margin:0;color:var(--workbench-muted)}.home-role-heading .button-row{flex-wrap:wrap}
.home-task-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;margin-bottom:22px}.home-task-grid>.panel{margin:0;padding:22px}.home-task-grid h2,.home-chart h2{font-size:18px;margin:0 0 12px;border-left:4px solid #1976ff;padding-left:11px}
.home-task-grid .task{padding:13px 0;border-top:1px solid #edf2fa;gap:12px}.home-task-grid .task small{color:#7184a5;line-height:1.7}.home-task-grid .task strong{color:#203858}
.home-core{padding:24px;margin-bottom:22px}.home-core h2{font-size:18px;margin:20px 0 14px}.home-core .stats{gap:16px}.home-core .stat{position:relative;border:1px solid #edf2fa;border-radius:13px;padding:18px 18px 18px 62px;background:#fff;min-width:0}.home-stat-icon{position:absolute;left:16px;top:20px;width:34px;height:34px;display:grid;place-items:center;border-radius:10px;background:#eaf2ff;color:#1976ff;font-size:19px;font-weight:700}.home-core .stat:nth-child(4n+2) .home-stat-icon{background:#e0f7ee;color:#0bad87}.home-core .stat:nth-child(4n+3) .home-stat-icon{background:#fff0df;color:#ef8b19}.home-core .stat:nth-child(4n) .home-stat-icon{background:#f0eaff;color:#8862ee}
.home-core .label{color:#667d9e;font-size:13px}.home-core .value{font-size:25px;margin-top:9px;font-variant-numeric:tabular-nums}.home-core .value button{border:0;background:transparent;padding:0;color:#172d50;font-size:inherit;font-weight:700;min-height:44px;text-align:left}.home-core .value button:hover{color:#1976ff;text-decoration:underline}.home-core>p{color:#7184a5;font-size:13px;line-height:1.7}
.home-chart-grid>.home-chart{padding:22px;margin-bottom:22px}.home-chart>p{color:#7184a5;font-size:13px;line-height:1.7}.home-chart .home-bar{border:0;background:#f7faff;color:#29476e;padding:10px;border-radius:9px}.home-chart .home-bar:hover{background:#eaf2ff}.home-chart .home-bar-track{background:#e7effb;border-radius:7px}.home-chart .home-bar-track i{background:#1976ff;border-radius:7px}.home-chart svg text{fill:#5f7699;font-size:12px}.home-chart .home-donut text{fill:#172d50;font-size:22px;font-weight:700}.home-chart .button-row{gap:8px;flex-wrap:wrap}
.workbench-shell #home-data>form{background:#eef4ff;border-radius:12px;padding:14px 18px;margin-bottom:18px;display:flex;gap:14px;align-items:end;flex-wrap:wrap}.workbench-shell #home-data>form label{margin:0}.workbench-shell #home-data>details{padding:18px 22px;margin-bottom:20px}.workbench-shell #home-data>details>summary{font-weight:600;color:#356397;cursor:pointer}
.workbench-shell #home-data>section:not(.home-core){padding:22px;margin-bottom:20px}.workbench-shell #home-data>section:not(.home-core)>h2{font-size:18px;margin-top:0}.workbench-shell .home-shortcuts .panel-title{padding:0 0 16px}.workbench-shell .home-shortcuts .details{padding:0}.home-donut+.button-row button::before{content:'';display:inline-block;width:9px;height:9px;border-radius:50%;background:#1976ff;margin-right:6px}.home-donut+.button-row button:nth-child(2)::before{background:#ff9561}.home-donut+.button-row button:nth-child(3)::before{background:#cbd7e9}
@media(max-width:1000px){.home-core .stats{grid-template-columns:repeat(2,minmax(0,1fr))}.home-role-heading{align-items:flex-start;flex-direction:column}}
@media(max-width:700px){.workbench-shell .sidebar{position:static;height:auto;padding:14px 18px}.workbench-shell .brand{margin:0 0 10px;font-size:22px}.workbench-shell .topbar{padding:14px 18px}.workbench-shell .content{padding:20px 16px}.home-task-grid{grid-template-columns:1fr}.home-role-heading h1{font-size:23px}.home-core{padding:18px}.home-core .stat{padding:14px 14px 14px 52px}.home-stat-icon{left:12px;width:29px;height:29px}.home-core .value{font-size:21px}.home-chart-grid>.home-chart{padding:18px}}
@media(max-width:400px){.home-core .stats{grid-template-columns:1fr}}
.home-chart-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,340px),1fr));gap:16px}
.home-chart{min-width:0}.home-chart-scroll{overflow-x:auto}.home-chart-scroll svg{width:100%;min-width:700px}
.home-donut{width:160px;height:160px}.home-bar{display:grid;grid-template-columns:minmax(90px,1fr) 2fr auto;gap:10px;align-items:center;width:100%;min-height:44px;margin:6px 0;text-align:left;white-space:normal}
.home-bar-track{height:12px;background:#e2e8f0;border-radius:4px}.home-bar-track i{display:block;height:100%;background:#315f99;border-radius:4px}
[data-home-filter]:focus-visible{outline:3px solid #315f99;outline-offset:3px}circle[data-home-filter]{cursor:pointer}
@media(max-width:600px){.home-chart-grid{grid-template-columns:1fr}.home-bar{grid-template-columns:minmax(85px,1fr) 1fr auto}.home-chart h2{font-size:18px}}
/* UI-VISUAL-DRILLDOWN: compact role workbenches and independent analysis. */
.workbench-shell{grid-template-columns:213px minmax(0,1fr);--blue:var(--workbench-blue);--muted:var(--workbench-muted);--line:var(--workbench-line)}
.workbench-shell :is(button,input,select,textarea){border-radius:var(--control-radius)}
.workbench-shell .sidebar{padding:22px 10px;overflow-y:auto}.workbench-shell .sidebar>.eyebrow{display:none}.workbench-shell .brand{margin:0 12px 25px}
.workbench-shell .nav{gap:5px}.workbench-shell .nav-group summary{padding:10px 8px;min-height:40px;font-size:13px;white-space:nowrap}.workbench-shell .nav-group>div{padding-left:13px}.workbench-shell .nav button{padding:9px 12px;font-size:13px;min-height:36px}
.workbench-shell .topbar{padding:13px 22px;min-height:68px;flex-wrap:nowrap}.workbench-shell .context strong{font-size:17px}.workbench-shell .topbar .user{gap:8px;font-size:13px}.workbench-shell .user .small{font-size:12px;padding:6px}.workbench-shell .content{padding:16px 22px 40px;max-width:1680px}
.home-role-heading{margin:0 0 18px;min-height:48px}.home-role-heading h1{font-size:26px;margin:0 0 6px}.home-role-heading p{font-size:13px}
.visual-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin-bottom:16px}.visual-kpi{display:flex;position:relative;align-items:flex-start;gap:14px;background:white;border:1px solid #eaf0f9;border-radius:12px;padding:20px 16px;min-height:132px;text-align:left;box-shadow:0 3px 18px #2a539209;white-space:normal}.visual-kpi:hover{border-color:#bdd6ff;background:#fff}
.visual-search{display:flex;gap:0;align-items:center;max-width:490px;min-width:0;flex:1}.visual-search select{width:78px;font-size:12px;border-radius:7px 0 0 7px;padding:8px}.visual-search input{font-size:12px;padding:9px;border-radius:0}.visual-search button{border-radius:0 7px 7px 0;font-size:12px;padding:9px 12px;white-space:nowrap}.visual-current-date{font-size:11px;white-space:nowrap}.visual-ring{height:160px}.visual-plot{height:auto}
.visual-top-title{min-width:220px}.visual-top-title h1{font-size:23px;margin:0 0 4px;white-space:nowrap}.visual-top-title small{font-size:11px;white-space:nowrap}.visual-search{max-width:320px}.visual-trend{max-height:185px}.visual-main-grid .visual-panel{margin-bottom:0}.visual-main-grid{margin-bottom:16px}.visual-main-grid .visual-ring-layout{min-height:160px}
.visual-kpi-icon{width:42px;height:48px;flex-shrink:0;display:grid;place-items:center;border-radius:10px;color:#1976ff;background:#eaf2ff}.visual-kpi-icon svg{width:25px;height:28px}.tone-1{background:#dcf8ed;color:#00a88d}.tone-2{background:#fff1df;color:#f88c17}.tone-3{background:#f0eaff;color:#8962ef}
.visual-kpi-body{display:grid;gap:8px;min-width:0}.visual-label{font-size:14px;font-weight:600;color:#253b60}.visual-kpi strong{font-size:28px;line-height:1.15;color:#0a1e46;font-variant-numeric:tabular-nums}.visual-kpi strong small{font-size:12px;margin-left:5px}.visual-note{color:#778caa;font-size:12px;line-height:1.6;font-weight:400}.visual-chevron{position:absolute;right:10px;top:12px;color:#82a1ce;font-size:20px}
.visual-main-grid{display:grid;grid-template-columns:minmax(250px,1fr) minmax(0,2fr);gap:16px;align-items:start}.visual-chart-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;align-items:start}.visual-chart-grid>.visual-panel:last-child{grid-column:1/-1}
.workbench-shell .visual-panel{padding:17px 18px;margin:0 0 16px;border-radius:12px;overflow:hidden;min-width:0}.visual-section-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:14px}.visual-section-head h2{font-size:16px;color:#0f264d;margin:0;line-height:1.5;border-left:3px solid #ff555e;padding-left:10px}.visual-more{border:0;padding:4px;background:none;font-size:12px;color:#5688cf;white-space:nowrap;font-weight:400}
.visual-task{display:flex;align-items:center;gap:12px;border:0;border-bottom:1px solid #f0f4fa;width:100%;background:white;text-align:left;padding:15px 0;white-space:normal}.visual-task .visual-kpi-icon{width:38px;height:42px}.visual-task>span:nth-child(2){min-width:0}.visual-task strong{display:block;font-size:14px;color:#213858;line-height:1.4}.visual-task small{display:block;font-size:12px;color:#7087a9;margin-top:6px}.visual-task-arrow{margin-left:auto;font-size:24px;color:#4c81c8}.visual-task:hover{background:#f8fbff}
.visual-ring-layout{display:flex;align-items:center;gap:12px;min-height:175px}.visual-ring{width:46%;max-width:190px;min-width:120px}.visual-ring text{fill:#798daa;font-size:12px}.visual-ring .visual-ring-value{fill:#0c234b;font-size:26px;font-weight:700}.visual-legend{flex:1;min-width:0}.visual-legend button{display:flex;align-items:center;gap:6px;width:100%;border:0;background:white;padding:8px 0;text-align:left;font-size:12px;white-space:normal;color:#577091;font-weight:400}.visual-legend i{width:8px;height:8px;border-radius:50%;flex-shrink:0}.visual-legend strong{color:#172f52;margin-left:auto;font-size:13px}.visual-legend small{font-size:11px;color:#7b8dab;min-width:28px}
.visual-chart-meta{font-size:11px;color:#7085a4;text-align:right;margin-bottom:6px}.visual-chart-meta span{color:#12bb96}.visual-plot{display:block;width:100%;max-height:242px;overflow:visible}.visual-plot text{fill:#6d82a2;font-size:11px}.visual-plot [role=button],.visual-ring [role=button]{cursor:pointer}.visual-plot [role=button]:hover,.visual-ring [role=button]:hover{filter:brightness(.88)}.visual-chart-detail{font-size:11px;color:#8294ae;margin-top:4px}.visual-chart-detail summary{cursor:pointer}.visual-chart-detail button{margin:5px;min-height:40px;font-size:11px}.visual-empty{color:#8293ad;text-align:center;padding:25px 8px;font-size:13px}
.visual-customer-preview{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}.visual-customer-preview button{position:relative;text-align:left;border:0;min-height:72px;padding:8px 4px 8px 56px;background:white;white-space:normal}.visual-customer-icon{position:absolute;left:0;top:10px;color:#668cba;background:#edf4ff;width:44px;height:50px;display:grid;place-items:center;border-radius:9px}.visual-customer-icon svg{width:27px;height:30px}.visual-customer-preview strong{font-size:13px;display:block;line-height:1.5}.visual-customer-preview small{font-size:11px;display:block;margin-top:6px}.visual-panel table{font-size:12px}.visual-panel td,.visual-panel th{padding:10px 12px}
.visual-secondary{padding:15px;font-size:13px}.visual-secondary>summary{cursor:pointer;color:#6c86a9}.visual-drill-banner{display:flex;align-items:center;gap:12px;flex-wrap:wrap;background:#e7f1ff;padding:12px 16px;border-radius:10px;font-size:13px;margin-bottom:15px}
.visual-analysis-grid{display:grid;grid-template-columns:2fr 1fr;gap:16px}.visual-analysis-bottom{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.visual-filters{display:flex;align-items:end;gap:12px;flex-wrap:wrap;margin-bottom:18px}.visual-filters label{font-size:12px;max-width:240px;flex:1;min-width:130px}.visual-filters input,.visual-filters select{padding:9px;font-size:12px}.visual-kpis-six{grid-template-columns:repeat(6,minmax(0,1fr))}.visual-kpis-six .visual-kpi{padding:16px 10px;gap:9px;min-height:112px}.visual-kpis-six .visual-kpi-icon{width:30px;height:36px}.visual-kpis-six .visual-label{font-size:12px}.visual-kpis-six .visual-kpi strong{font-size:22px}.visual-exceptions{display:grid;gap:12px}.visual-exceptions button{text-align:left;white-space:normal;min-height:44px}.visual-exceptions p{font-size:12px;color:#8b6f48;line-height:1.7}
@media(max-width:1150px){.workbench-shell{grid-template-columns:185px minmax(0,1fr)}.visual-kpi{padding:16px 12px;gap:9px}.visual-kpi-icon{width:34px;height:40px}.visual-kpi strong{font-size:24px}.visual-kpis-six{grid-template-columns:repeat(3,minmax(0,1fr))}.visual-ring-layout{flex-wrap:wrap}.visual-ring{margin:auto;width:150px}.visual-legend{width:100%}.visual-customer-preview{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:850px){.visual-main-grid{grid-template-columns:1fr}.visual-task-panel{min-height:0}.visual-task-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.visual-analysis-grid,.visual-analysis-bottom{grid-template-columns:1fr}.visual-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}.workbench-shell .topbar{flex-wrap:wrap}}
@media(max-width:700px){.workbench-shell{display:block}.workbench-shell .sidebar{position:relative;height:auto;padding:12px 16px}.workbench-shell .brand{margin:0;font-size:22px}.workbench-shell .content{padding:16px 12px}.workbench-shell .topbar{padding:10px 14px}.home-role-heading{gap:8px;align-items:flex-start}.home-role-heading h1{font-size:22px}.visual-chart-grid{grid-template-columns:1fr}.visual-chart-grid>.visual-panel:last-child{grid-column:auto}.visual-task-list{grid-template-columns:1fr}.visual-kpi{min-height:108px;padding:14px 12px;gap:8px}.visual-label{font-size:12px}.visual-kpi strong{font-size:23px}.visual-kpi-icon{width:30px;height:38px}.visual-note{font-size:10px}.visual-kpis-six{grid-template-columns:repeat(2,minmax(0,1fr))}.visual-customer-preview{grid-template-columns:1fr}.visual-ring-layout{flex-wrap:nowrap}.visual-legend{width:auto}.visual-ring{width:46%}.visual-plot{max-height:none}.visual-chart-detail button,.visual-legend button,.visual-task,.visual-more{min-height:44px}}
@media(max-width:700px){.visual-search{flex-basis:100%;max-width:none}.visual-current-date{display:none}.workbench-shell .topbar .user{width:100%;justify-content:flex-end}.visual-ring{height:160px}}
.visual-plot.visual-trend{max-height:185px}.visual-trend text{font-size:14px}.visual-main-grid .visual-panel{margin-bottom:0}
@media(max-width:1150px){.visual-top-title small{display:none}.visual-top-title{min-width:180px}.visual-top-title h1{font-size:18px}}
/* 技术服务报告：沿用原表单与签名组件，四区块仅作视觉分组。 */
.sr-experience{max-width:900px;margin:auto;color:#18344c}
.sr-section{padding:20px 0;border-bottom:1px solid #dce7f2}
.sr-section:last-child{border-bottom:0}
.sr-section h3{display:flex;align-items:center;gap:10px;font-size:17px;margin:0 0 16px}
.sr-section h3 span{color:#2875bd;font-size:13px;font-weight:600}
.sr-experience .grid,.sr-identity{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px 20px}
.sr-experience .grid .grid{display:contents}
.sr-experience label{min-width:0;display:block;font-size:13px;line-height:1.6}
.sr-experience input,.sr-experience select,.sr-experience textarea{width:100%;min-height:40px;margin-top:5px}
.sr-experience textarea{min-height:88px;resize:vertical}
.sr-experience details{margin:10px 0}
.sr-experience summary{color:#3e6487;cursor:pointer;font-size:13px}
.sr-experience .stock-pick{background:#f5f9fd;border:1px solid #dce7f2;border-radius:8px;padding:14px;margin:12px 0}
.sr-experience .muted{font-size:13px;line-height:1.7}
@media(max-width:600px){.sr-experience .grid,.sr-identity{grid-template-columns:1fr;gap:12px}.sr-section{padding:16px 0}.sr-experience .button-row{flex-wrap:wrap}.sr-experience input,.sr-experience select{font-size:16px}.sr-experience .wide{grid-column:1}.sr-experience .stock-pick{padding:10px}}
.sr-service-choice{grid-column:1/-1;display:grid;grid-template-columns:1fr;gap:12px;padding:16px;background:#f5f9fd;border:1px solid #dce7f2;border-radius:10px}
.sr-service-choice details{margin:0}
.sr-experience [hidden]{display:none!important}
.sr-experience .sr-part-stock,.sr-experience .sr-part-serials{grid-column:1/-1;margin:0}
.sr-part-serials label{display:inline-flex;align-items:center;gap:6px;margin:4px 14px 4px 0}
.sr-experience .sr-part-serials input{width:18px;min-height:18px;margin:0}
/* Order closeout: dynamic fields must remain hidden despite shared label layout. */
.order-ux-form [hidden]{display:none!important}
.order-work-summary{margin:12px 0;padding:12px 16px;background:#f4f8fc;border-radius:8px}
.order-document-summary{line-height:1.7;margin:0 0 12px}
.order-progress-scroll{overflow-x:auto;max-width:100%;padding-bottom:8px}
.order-progress{display:flex;gap:10px;list-style:none;padding:0;margin:0;align-items:stretch}
.order-progress>li{flex:0 0 174px;box-sizing:border-box;background:#fff;border:1px solid #dce6ef;border-radius:6px;padding:12px;display:flex;flex-direction:column;gap:6px;font-size:13px}
.order-progress strong{color:#243f59;font-size:14px}
.order-progress small,.order-progress time{color:#62778a;line-height:1.5;overflow-wrap:anywhere}
.order-progress .order-progress-current{border-color:#4b91dc;background:#edf5ff;border-top:3px solid #337bc6}
.order-progress .order-progress-done>span{color:#267654}
.order-progress .order-progress-exception{border-color:#d9b4ae;background:#fff8f6}
.order-progress .order-progress-na{opacity:.65}
.order-current-work{margin-top:12px;border-top:1px solid #dce6ef;padding-top:10px}
.order-current-work h2{font-size:15px;margin:0 0 8px}
.order-current-work p{line-height:1.8;margin:6px 0}
@media(max-width:480px){.order-work-summary{padding:12px}.order-progress>li{flex-basis:160px}.order-current-work button{display:block;margin-top:4px;min-height:40px}.order-ux-detail .page-head{flex-wrap:wrap}.order-ux-detail .table-wrap{max-width:100%;overflow-x:auto}}
.order-business-detail{margin:12px 0}
.order-business-detail>summary{cursor:pointer;color:#315d85;padding:10px 0}
.order-secondary-actions>summary{cursor:pointer;color:#315d85}
.order-ux-detail>.stats{display:flex;flex-wrap:wrap;gap:16px;margin:12px 0}
.order-ux-detail>.stats>.stat{background:transparent;color:#243f59;box-shadow:none;border:0;border-radius:0;padding:8px 0;min-width:130px;flex:1}
.order-ux-detail>.stats .value{font-size:18px;margin:4px 0}
.order-ux-form .order-contact{margin:12px 0}
.order-ux-form .order-contact p{margin:6px 0;overflow-wrap:anywhere}
.order-ux-form details{margin:12px 0}
.order-ux-form summary{cursor:pointer;color:#315d85}
.material-sending p{margin:8px 0}

/* 技术服务报告弹窗：仅调整视觉，沿用原字段与事件。 */
dialog:has(.sr-experience){width:calc(100% - 48px);max-width:940px;max-height:90vh;max-height:90dvh;border-radius:14px;background:#fff;scroll-padding-block:90px;scrollbar-gutter:stable}
dialog:has(.sr-experience) .modal-head{position:sticky;top:0;z-index:5;padding:22px 30px;background:#fff;border-bottom:1px solid #dce4ec}
dialog:has(.sr-experience) .modal-head h2{font-size:22px;font-weight:650;line-height:1.4;letter-spacing:.02em;color:#18344c}
dialog:has(.sr-experience) .modal-head button{min-height:36px;padding:6px 14px;border-color:#dce4ec;color:#52677b;background:#fff}
dialog:has(.sr-experience) .modal-body{padding:22px 30px 0}
dialog:has(.sr-experience) .modal-body form{gap:0}
dialog:has(.sr-experience) .sr-experience{width:100%;max-width:none;margin:0;font-family:"Microsoft YaHei UI","PingFang SC",sans-serif;color:#243b50}
dialog:has(.sr-experience) .sr-experience>p:first-child{margin:0;padding:12px 16px;background:#f3f6fa;border-left:3px solid #9cb2c6;border-radius:0 6px 6px 0;color:#52677b;font-size:13px;line-height:1.8}
dialog:has(.sr-experience) .sr-section{padding:24px 0;border-bottom:1px solid #e1e8ef}
dialog:has(.sr-experience) .sr-section:last-child{border-bottom:0}
dialog:has(.sr-experience) .sr-section h3{margin:0 0 20px;gap:12px;font-size:17px;font-weight:650;line-height:1.5;color:#18344c}
dialog:has(.sr-experience) .sr-section h3 span{display:inline-grid;place-items:center;min-width:28px;height:28px;background:#eaf1f7;border-radius:6px;color:#315d82;font-size:12px;font-weight:650}
dialog:has(.sr-experience) .sr-experience .grid,dialog:has(.sr-experience) .sr-identity{gap:18px 24px}
dialog:has(.sr-experience) .sr-experience label{font-size:13px;line-height:1.6;color:#40586e}
dialog:has(.sr-experience) .sr-experience input,dialog:has(.sr-experience) .sr-experience select,dialog:has(.sr-experience) .sr-experience textarea{min-height:44px;margin-top:7px;padding:10px 12px;border:1px solid #cbd6e1;border-radius:6px;box-shadow:none;background:#fff;color:#243b50;font:inherit;font-size:14px}
dialog:has(.sr-experience) .sr-experience input:disabled{background:#f4f6f8;border-color:#e1e6ec;color:#6b7d8c}
dialog:has(.sr-experience) .sr-experience input::placeholder,dialog:has(.sr-experience) .sr-experience textarea::placeholder{color:#758697}
dialog:has(.sr-experience) .sr-experience input:focus-visible,dialog:has(.sr-experience) .sr-experience select:focus-visible,dialog:has(.sr-experience) .sr-experience textarea:focus-visible{outline:2px solid #497b9f;outline-offset:2px;border-color:#497b9f}
dialog:has(.sr-experience) .sr-experience textarea{min-height:110px;line-height:1.7}
dialog:has(.sr-experience) .sr-service-choice{gap:12px;padding:16px 18px;background:#f2f7fb;border:1px solid #cedeea;border-left:3px solid #497b9f;border-radius:8px}
dialog:has(.sr-experience) .sr-service-choice>label{font-weight:600;color:#234e70}
dialog:has(.sr-experience) .sr-service-choice select{font-weight:400}
dialog:has(.sr-experience) .sr-experience details{margin:12px 0}
dialog:has(.sr-experience) .sr-service-choice details{margin:0}
dialog:has(.sr-experience) .sr-experience summary{padding:4px 0;color:#49708e;line-height:1.7}
dialog:has(.sr-experience) .sr-experience .sr-identity{margin:18px 0}
dialog:has(.sr-experience) .sr-section:first-of-type>div.grid:last-of-type{grid-template-columns:repeat(3,minmax(0,1fr))}
dialog:has(.sr-experience) .sr-experience .stock-pick{padding:16px;background:#f7f9fb;border-color:#dce4ec;box-shadow:none}
dialog:has(.sr-experience) .stock-pick>.panel-title{padding:0 0 12px;margin-bottom:16px;border-color:#dce4ec}
dialog:has(.sr-experience) .stock-pick .grid>label.combo,dialog:has(.sr-experience) .stock-pick .grid>label:last-child,dialog:has(.sr-experience) .stock-pick .sr-price-reason,dialog:has(.sr-experience) .stock-pick [data-price-source]{grid-column:1/-1}
dialog:has(.sr-experience) .stock-pick [data-price-source]{color:#647a8d;line-height:1.6}
dialog:has(.sr-experience) .sr-experience .sr-part-serials input{width:18px;min-height:18px;margin:0;padding:0}
dialog:has(.sr-experience) #sr-fee-total{padding:14px 16px;background:#f2f7fb;border-radius:6px;font-size:15px;font-weight:600;color:#234e70}
dialog:has(.sr-experience) .modal-body>form>.button-row{position:sticky;bottom:0;z-index:4;padding:16px 0;margin:0;border-top:1px solid #dce4ec;background:#fff;gap:12px}
dialog:has(.sr-experience) .modal-body>form>.button-row button{min-height:44px;padding:10px 22px;border-radius:6px;font-size:14px}
dialog:has(.sr-experience) .modal-body>form>.button-row .primary{background:#285a80;border-color:#285a80}
dialog:has(.sr-experience) .modal-body>form>.button-row .primary:hover{background:#214c6d}
@media(max-width:600px){
 dialog:has(.sr-experience){width:calc(100% - 16px);max-height:calc(100vh - 16px);max-height:calc(100dvh - 16px);border-radius:10px;scroll-padding-block:82px}
 dialog:has(.sr-experience) .modal-head{padding:16px 18px}
 dialog:has(.sr-experience) .modal-head h2{font-size:19px}
 dialog:has(.sr-experience) .modal-body{padding:16px 18px 0}
 dialog:has(.sr-experience) .sr-section{padding:20px 0}
 dialog:has(.sr-experience) .sr-experience .grid,dialog:has(.sr-experience) .sr-identity,dialog:has(.sr-experience) .sr-section:first-of-type>div.grid:last-of-type{grid-template-columns:1fr;gap:14px}
 dialog:has(.sr-experience) .sr-service-choice{padding:14px}
 dialog:has(.sr-experience) .sr-experience input,dialog:has(.sr-experience) .sr-experience select,dialog:has(.sr-experience) .sr-experience textarea{font-size:16px}
 dialog:has(.sr-experience) .modal-body>form>.button-row{display:grid;grid-template-columns:auto 1fr;padding:12px 0;gap:10px}
 dialog:has(.sr-experience) .modal-body>form>.button-row button{padding:10px 12px}
}

dialog:has(.sr-experience) .sr-experience .sr-report-number{display:flex;flex-direction:row;align-items:baseline;gap:12px;margin:16px 0 0;color:#647a8d;font-size:12px}
dialog:has(.sr-experience) .sr-header-fields>details{margin:0}
@media(max-width:600px){dialog:has(.sr-experience) .sr-experience .sr-report-number{flex-wrap:wrap;gap:4px 12px}}

/* Compact service choice, aligned with the existing form grid. */
dialog:has(.sr-experience) .sr-service-choice{display:contents;padding:0;border:0;border-radius:0;background:transparent}
dialog:has(.sr-experience) .sr-service-choice>label{font-weight:400;color:#40586e}
dialog:has(.sr-experience) .sr-service-choice details{grid-column:1/-1;margin:0}
.customer-map-layout{display:grid;grid-template-columns:minmax(0,1fr) 240px;gap:20px;margin-top:16px}
.customer-map-canvas{height:440px;width:100%;background:#edf4fa;border-radius:10px;isolation:isolate}
.customer-map-canvas .leaflet-container{font:inherit}
.customer-hospital-marker span{display:grid;place-items:center;width:30px;height:34px;border-radius:14px 14px 14px 2px;background:var(--hospital-color,#73849a);border:2px solid white;color:white;font-size:20px;box-shadow:0 2px 5px #29476055}
.customer-map-popup h3{margin-bottom:8px}.customer-map-popup p{line-height:1.7;margin:8px 0}.customer-map-popup button{width:100%}
.customer-map-resources{border-left:1px solid #e1eaf4;padding-left:20px}
.customer-map-resources details{padding:12px 0;border-bottom:1px solid #e1eaf4}
.customer-map-legend{display:flex;flex-wrap:wrap;gap:16px;margin:12px 0;color:#526783}
.customer-map-legend i{display:inline-block;width:10px;height:10px;border-radius:50%;margin-right:6px}
.customer-map-empty{display:grid;place-items:center;min-height:280px;background:#f5f9ff;border-radius:12px;color:#526783;padding:24px}
.customer-map-summary{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));border-block:1px solid #e1eaf4;margin-top:24px;padding:18px 0;gap:15px}
.customer-map-summary small,.customer-map-summary strong{display:block}.customer-map-summary small{color:#60758f}.customer-map-summary strong{font-size:20px;margin-top:8px;overflow-wrap:anywhere}
.customer-map-summary-primary{grid-template-columns:repeat(4,minmax(0,1fr));border-top:0;margin:0;padding:14px 20px}
.customer-map-summary-primary strong{font-size:19px;margin-top:3px}
.customer-map-stage{padding:0 16px}.customer-map-stage [data-map-status]{margin:7px 0;font-size:12px}
.customer-map-home h3{margin:16px 20px 8px}.customer-map-secondary{padding:10px 20px;border-top:1px solid var(--line)}
.customer-map-secondary p{font-size:13px;margin:8px 0}.customer-map-home .customer-map-legend{font-size:12px;margin:6px 0 12px}
.customer360-identity{font-size:14px;line-height:1.7;margin-bottom:16px;overflow-wrap:anywhere}
.customer360-header .page-head{align-items:flex-start;margin-bottom:8px}.customer360-header .page-head>div{min-width:0}.customer360-header h1{overflow-wrap:anywhere}.customer360-header .page-head button{flex-shrink:0}
.customer360-groups{display:flex;flex-wrap:wrap;gap:7px;border-bottom:1px solid var(--line);padding-bottom:12px;margin-bottom:12px}
.customer360-subnav{display:flex;flex-wrap:wrap;gap:6px;margin:12px 0 18px}
.customer360-scale{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));background:white;border:1px solid var(--line);border-radius:10px;padding:16px;gap:12px}
.customer360-scale small,.customer360-scale strong{display:block}.customer360-scale strong{font-size:20px;margin-top:8px;overflow-wrap:anywhere}
.customer360-section{background:white;border:1px solid var(--line);border-radius:8px;padding:16px;margin:12px 0}
.customer360-section h2{margin-bottom:8px}.customer360-section p{font-size:14px;line-height:1.8;margin:8px 0}
.customer360-source{font-size:12px;color:var(--muted);padding:10px 4px}.customer360-source p{margin:6px 0}
.customer360-tag{display:inline-block;margin:0 8px 6px 0;color:var(--blue);font-weight:600}
.customer360-archive .customer360-section .panel{margin:10px 0 0;border:0}.customer360-management{padding:16px}
@media(max-width:700px){.customer360-scale,.customer-map-summary-primary{grid-template-columns:repeat(2,minmax(0,1fr))}.customer360-groups button{flex:1 1 30%;min-width:90px}.customer360-subnav button{flex:1 1 auto}.customer360-section{padding:12px}.customer360-section .row{flex-wrap:wrap;gap:8px}.customer-map-stage{padding:0 8px}.customer-map-popup h3{font-size:14px;overflow-wrap:anywhere}.customer-map-popup p{font-size:12px}}
.regional-summary>.home-chart{border:0;padding:8px 0;margin:0}.regional-summary .stat strong{display:block;font-size:24px}.manufacturer-target{display:grid;grid-template-columns:70px 1fr 1fr 1fr;gap:12px;align-items:center;padding:10px 0;border-bottom:1px solid #e6edf6}.manufacturer-target label{font-size:12px}.manufacturer-target progress{width:100%;display:block;accent-color:var(--blue)}.customer360-header,.regional-summary,.manufacturer-targets{overflow-wrap:anywhere}.customer360-identity{line-height:1.7;margin:8px 0}.customer360-section .contact-card{margin:8px 0}
@media(max-width:600px){.regional-summary .stats{grid-template-columns:repeat(2,minmax(0,1fr))}.regional-summary .home-bar{grid-template-columns:70px minmax(0,1fr);gap:8px}.regional-summary .home-bar>span:last-child{grid-column:2}.manufacturer-target{grid-template-columns:1fr 1fr;gap:6px}.manufacturer-target label{grid-column:1/-1}.customer360-header .button-row{flex-wrap:wrap}.customer360-identity{font-size:13px}}
.customer-map-table{overflow-x:auto}.customer-map-table table{min-width:760px}
/* Procurement uses existing qux cards, shell, facts and state colors. */
.pux-shell .qux-heading{margin-bottom:15px}.pux-shell .pux-layout{display:grid;grid-template-columns:minmax(0,2.35fr) minmax(285px,1fr);gap:14px;align-items:start;margin-top:14px}.pux-shell .pux-kpis{grid-template-columns:repeat(6,minmax(0,1fr));gap:10px}.pux-kpis .qux-kpi{padding:15px 10px;gap:9px;min-height:100px}.pux-kpis .qux-kpi strong{font-size:25px}.pux-kpis .qux-icon{border-radius:10px;width:36px;height:43px;flex-shrink:0}.pux-actions{display:flex;gap:8px;flex-wrap:wrap;align-items:center}.pux-shell button:not(.ui-action):not(.ui-crumb-link){font-size:12px}.pux-flow{display:flex;align-items:stretch;gap:12px}.pux-flow>div{flex:1;min-width:0;display:flex;gap:10px;align-items:center;background:#f6f9fd;border:1px solid #e2edfb;border-radius:7px;padding:14px 10px}.pux-flow>div strong{display:block;font-size:13px}.pux-flow small{font-size:10px;display:block;color:#6e86a9;margin-top:6px}.pux-flow>b{align-self:center;color:#0878ff;font-size:24px}.pux-flow .qux-icon{width:33px;height:36px;border-radius:8px;flex-shrink:0}.pux-filters{display:grid;grid-template-columns:minmax(190px,2fr) minmax(100px,1fr) minmax(100px,1fr) auto auto;gap:10px;align-items:end;margin:12px 0}.pux-filters>label{min-width:0}.pux-shell #pux-query details{font-size:12px;color:#6d87aa}.pux-table table{width:100%;table-layout:fixed;font-size:11px}.pux-table th,.pux-table td{padding:10px 6px;white-space:normal;overflow-wrap:anywhere;border-bottom:1px solid #e4edfa;vertical-align:top}.pux-table th{background:#f0f7ff;color:#52739b}.pux-table td small{display:block;color:#8197b2;font-size:10px;margin-top:5px}.pux-table .table-wrap{overflow:visible}.pux-shell .qux-main>.qux-card>h2:before,.pux-shell .qux-side>.qux-card>h2:before{content:'';display:inline-block;width:3px;height:14px;border-radius:2px;background:#0876ff;margin-right:8px;vertical-align:middle}.pux-donut{width:185px;height:185px;background:var(--pux-ring);border-radius:50%;display:grid;place-items:center;margin:20px auto}.pux-donut>div{background:white;border-radius:50%;width:125px;height:125px;display:flex;flex-direction:column;justify-content:center;align-items:center}.pux-donut strong{font-size:32px}.pux-donut small{font-size:12px;color:#7087aa;margin-top:5px}.pux-legend{display:flex;justify-content:space-between;gap:10px;font-size:12px}.pux-quick{display:grid;grid-template-columns:1fr 1fr;gap:10px}.pux-quick button,.pux-quick>span{padding:14px 10px;border:1px solid #e0ebfa;border-radius:6px;background:#f8fbff;color:#2472cc;font-size:12px;text-align:left}.pux-identity{display:grid;grid-template-columns:1.2fr 1.5fr 1fr 1fr;gap:14px}.pux-identity>div{border-right:1px solid #edf2f9;padding-right:10px;min-width:0}.pux-identity small{display:block;color:#7290b4;font-size:12px;margin-bottom:9px}.pux-identity strong{font-size:18px;overflow-wrap:anywhere}.pux-states{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin-top:18px;padding-top:16px;border-top:1px solid #e6eefb}.pux-states>div{padding:12px;background:#f1f7ff;border-radius:6px;min-width:0}.pux-states small{display:block;color:#758bac;font-size:11px;margin-bottom:6px}.pux-states strong{font-size:12px}.pux-shell .qux-main .qux-facts{grid-template-columns:100px minmax(0,1fr) 100px minmax(0,1fr)}.pux-shell .qux-side .qux-facts{grid-template-columns:80px minmax(0,1fr)}.pux-shell .qux-main .table-wrap,.pux-shell .qux-side .table-wrap{max-width:100%;overflow-x:auto}.pux-shell th,.pux-shell td{white-space:normal;overflow-wrap:anywhere;padding:9px 6px;font-size:12px}.pux-shell .qux-side .cm-money{grid-template-columns:1fr}.pux-form-steps{display:flex;justify-content:space-between;gap:15px;padding:12px 18px;color:#3268a5;font-size:13px}.pux-form-steps b{color:#147bff}.pux-form-basic>label,.pux-form-basic>.combo{margin-top:12px}.pux-form-basic>.grid{gap:15px}.pux-shell .purchase-row{display:grid;grid-template-columns:minmax(190px,2fr) .6fr 1fr 1fr 1.2fr 1fr auto;gap:9px;align-items:end;margin:0;padding:12px 0;border-bottom:1px solid #e5eefb}.pux-shell .purchase-row label{font-size:11px;min-width:0}.pux-shell .purchase-row input{font-size:12px;padding:7px 8px}.pux-shell textarea{width:100%;min-height:80px;padding:10px;border:1px solid #dce8f8;border-radius:6px}.pux-shell .combo-list{z-index:30;max-width:100%}.pux-form-other>label{margin-top:12px}.pux-shell .pux-receive-kpis{grid-template-columns:repeat(4,minmax(0,1fr))}.pux-receive-kpis .qux-kpi strong{font-size:24px}.pux-bottom{display:grid;grid-template-columns:1fr 1fr;gap:14px}.pux-shell #pux-arrival-form{display:grid;gap:12px}.pux-shell .qux-main,.pux-shell .qux-side{min-width:0}.pux-shell .qux-card{overflow-wrap:anywhere}
@media(max-width:1200px){.pux-flow{gap:6px}.pux-flow>div{padding:10px 7px;gap:6px}.pux-flow .qux-icon{display:none}.pux-kpis .qux-icon{width:27px;height:33px;font-size:18px}.pux-kpis .qux-kpi{padding:12px 7px}.pux-kpis .qux-kpi strong{font-size:21px}.pux-shell .purchase-row{grid-template-columns:2fr .7fr 1fr 1fr}.pux-shell .pux-filters{grid-template-columns:2fr 1fr 1fr}.pux-shell .qux-main .qux-facts{grid-template-columns:90px minmax(0,1fr)}}
@media(max-width:700px){.pux-shell .pux-layout{grid-template-columns:minmax(0,1fr)}.pux-shell .pux-kpis{grid-template-columns:1fr 1fr}.pux-kpis .qux-kpi:last-child{grid-column:auto}.pux-shell .pux-receive-kpis{grid-template-columns:1fr 1fr}.pux-receive-kpis .qux-kpi strong{font-size:20px}.pux-flow{overflow-x:auto}.pux-flow>div{flex:0 0 125px}.pux-shell .pux-filters{grid-template-columns:1fr 1fr}.pux-filters>label:first-child{grid-column:1/-1}.pux-shell .pux-bottom{grid-template-columns:1fr}.pux-identity{grid-template-columns:1fr 1fr}.pux-states{grid-template-columns:1fr 1fr;gap:8px}.pux-shell .purchase-row{grid-template-columns:1fr 1fr;gap:10px}.pux-shell .purchase-row>.combo{grid-column:1/-1}.pux-shell .purchase-row>.purchase-remove{min-height:36px}.pux-form-steps{padding:8px 0;font-size:11px;gap:5px}.pux-shell .pux-form-basic>.grid{grid-template-columns:1fr}.pux-table table,.pux-table tbody,.pux-table td{display:block;width:auto!important}.pux-table thead{display:none}.pux-table tr{display:grid;grid-template-columns:1fr 1fr;gap:7px;border-bottom:1px solid #dfebfa;padding:13px 0}.pux-table td{border:0;padding:3px;min-width:0}.pux-table td:first-child,.pux-table td:last-child{grid-column:1/-1}.pux-shell button{min-height:35px}.pux-shell .pux-layout>#pux-receive-side{order:-1}.pux-shell .qux-main .qux-facts{grid-template-columns:90px minmax(0,1fr)}}
.cm-source-row{outline:2px solid var(--blue);outline-offset:-2px;background:#edf6ff}
@media(max-width:700px){.cm-shell .cm-detail-layout{display:flex;flex-direction:column;align-items:stretch}.cm-shell .cm-detail-layout>.qux-main,.cm-shell .cm-detail-layout>.cm-side{display:contents}.cm-detail-layout>.cm-side>.qux-card{order:5}.cm-detail-layout>.cm-side>.qux-card:first-child{order:0}.cm-detail-layout>.qux-main>.qux-identity{order:1}.cm-detail-layout>.qux-main>.cm-tabs{order:2}.cm-detail-layout>.qux-main>.qux-card:not(.qux-identity){order:3}}
.cm-shell .qux-identity{margin-bottom:0}.cm-shell .cm-side .cm-states{grid-template-columns:repeat(4,minmax(0,1fr));gap:5px}.cm-shell .cm-side .cm-states>div{padding:8px 5px}.cm-shell .cm-side .cm-states .qux-badge{padding:4px;font-size:10px;overflow-wrap:anywhere}
.cm-timeline{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin:12px 0}.cm-timeline>div{min-width:0;text-align:center;position:relative}.cm-timeline span{display:grid;place-items:center;margin:0 auto 8px;background:#edf2f9;color:#8a9bb5;width:23px;height:23px;border-radius:50%;position:relative;z-index:1}.cm-timeline span.done{background:#0876ff;color:white}.cm-timeline strong{font-size:11px;display:block}.cm-timeline small{display:block;font-size:9px;overflow-wrap:anywhere;color:#8095b3;margin-top:6px}.cm-timeline>div:not(:last-child):after{content:'';position:absolute;top:11px;left:65%;width:80%;height:1px;background:#d3e3fa}
/* Contract composition reuses qux cards, facts, badges and the existing shell. */
.cm-shell .cm-layout{display:grid;grid-template-columns:minmax(0,1.95fr) minmax(310px,1fr);gap:14px;align-items:start}.cm-kpis{gap:8px}.cm-kpis .qux-kpi{min-height:95px;padding:12px 8px;gap:7px}.cm-kpis .qux-kpi strong{font-size:24px}.cm-kpis .qux-icon{width:32px;height:38px;border-radius:10px;font-size:22px}.cm-kpis .qux-kpi small{font-size:11px}.cm-shell .cm-filters{display:grid;grid-template-columns:minmax(160px,2fr) minmax(95px,1fr) minmax(95px,1fr) auto auto;gap:10px;align-items:end}.cm-filters label{min-width:0}.cm-shell details>summary{cursor:pointer;font-size:12px;color:#3978c9}.cm-shell #cm-query>details{margin-top:12px}.cm-shell #cm-query>details .cm-filters{grid-template-columns:repeat(4,minmax(0,1fr));margin-top:12px}.cm-tabs{display:flex;gap:4px;overflow-x:auto;background:white;border-bottom:1px solid #e1edfb;padding:0 5px}.cm-tabs button{border:0;border-bottom:2px solid transparent;background:none;border-radius:0;color:#385a8b;padding:13px 10px;font-size:12px;white-space:nowrap}.cm-tabs button.active{border-color:#0876ff;color:#0876ff;font-weight:600}.cm-actions,.cm-links{display:flex;gap:8px;flex-wrap:wrap;align-items:center}.cm-links{margin-top:15px}.cm-actions button,.cm-actions a{font-size:12px}.cm-states{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:12px 0}.cm-states>div{padding:9px;background:#f3f8ff;border-radius:6px;min-width:0}.cm-states small{display:block;font-size:11px;color:#6682a9;margin-bottom:6px}.cm-money{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:12px 0}.cm-money>div{background:#f0f7ff;padding:10px 8px;border-radius:6px;overflow-wrap:anywhere}.cm-money small{display:block;font-size:11px;color:#6c86a8}.cm-money strong{display:block;font-size:13px;margin-top:6px}.cm-money>div:last-child{background:#fff6e9}.cm-side .qux-facts{grid-template-columns:80px minmax(0,1fr);font-size:11px;gap:7px}.cm-side .record-card{margin:0;padding:10px;font-size:12px}.cm-side .record-card h3{font-size:13px}.cm-side .record-card .stage-line{display:none}.cm-side table{font-size:11px}.cm-side th,.cm-side td{padding:7px 5px;white-space:normal;overflow-wrap:anywhere}.cm-side .table-wrap{overflow-x:auto}.cm-preview-head{display:flex;align-items:center;justify-content:space-between;gap:8px}.cm-preview-head strong{font-size:15px}.cm-preview-head button{font-size:12px}.cm-list{padding:12px}.cm-list table{width:100%;table-layout:fixed;font-size:11px}.cm-list th,.cm-list td{padding:10px 6px;border-bottom:1px solid #e4edfa;white-space:normal;overflow-wrap:anywhere;vertical-align:top}.cm-list th{background:#eff6ff;color:#4d6d9b;font-weight:500}.cm-list td small{display:block;color:#7b91b0;font-size:10px;margin-top:5px;line-height:1.6}.cm-list .table-wrap{overflow:visible}.cm-list th:first-child{width:23%}.cm-list th:last-child{width:13%}.cm-shell .cm-edit{display:grid;grid-template-columns:1fr 1fr;gap:15px}.cm-edit>p,.cm-edit>.grid,.cm-edit>details,.cm-edit>div,.cm-edit>h3,.cm-edit>footer{grid-column:1/-1}.cm-edit textarea{width:100%;min-height:90px;padding:10px;border:1px solid #dce8f8;border-radius:6px}.cm-shell .qux-side h3{font-size:13px}.cm-shell .qux-main>.qux-card>h2{border-bottom:1px solid #edf3fc;padding-bottom:10px}.cm-shell .qux-main .qux-facts{grid-template-columns:90px minmax(0,1fr) 90px minmax(0,1fr)}
@media(max-width:1100px){.cm-shell .cm-layout{grid-template-columns:minmax(0,1.7fr) minmax(280px,1fr)}.cm-shell .cm-filters{grid-template-columns:1fr 1fr}.cm-kpis{grid-template-columns:repeat(3,minmax(0,1fr))}.cm-shell .qux-main .qux-facts{grid-template-columns:90px minmax(0,1fr)}}
@media(max-width:700px){.cm-shell .cm-layout{grid-template-columns:minmax(0,1fr)}.cm-shell .cm-side{order:2}.cm-kpis{grid-template-columns:1fr 1fr}.cm-shell .cm-filters{grid-template-columns:1fr 1fr}.cm-filters>label:first-child{grid-column:1/-1}.cm-shell #cm-query>details .cm-filters{grid-template-columns:1fr 1fr}.cm-shell .cm-edit{grid-template-columns:1fr}.cm-shell .qux-main .qux-facts{grid-template-columns:85px minmax(0,1fr)}.cm-list table,.cm-list tbody,.cm-list td{display:block;width:auto!important}.cm-list thead{display:none}.cm-list tr{display:grid;grid-template-columns:1fr 1fr;gap:6px;padding:12px 0;border-bottom:1px solid #e0ebfa}.cm-list td{border:0;padding:3px;min-width:0}.cm-list td:first-child,.cm-list td:last-child{grid-column:1/-1}.cm-list td:last-child{text-align:right}.cm-shell .cm-actions button{min-height:36px}.cm-states{grid-template-columns:1fr 1fr}.cm-shell .cm-money{grid-template-columns:1fr}.cm-shell .cm-tabs{max-width:100%}.cm-shell .qux-card{overflow-wrap:anywhere}.cm-shell #cm-create{display:grid;gap:12px}.cm-shell .cm-side .table-wrap{max-width:100%}}
@media(max-width:700px){.customer-map-layout{grid-template-columns:1fr}.customer-map-resources{border-left:0;border-top:1px solid #e1eaf4;padding:12px 0}.customer-map-summary{grid-template-columns:repeat(2,minmax(0,1fr))}.customer-map-canvas{height:330px}}
.attention-row{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;padding:12px 0;border-bottom:1px solid #e6edf6}.attention-row>div{min-width:0}.attention-row strong,.attention-row p,.attention-detail p{overflow-wrap:anywhere}.attention-row p{margin:5px 0}.attention-detail{padding:14px 0}.attention-detail .button-row{flex-wrap:wrap}@media(max-width:700px){.attention-row{display:block}.attention-row button{margin-top:6px}}
@media screen and (max-width:700px){dialog form[data-creation-key] input:not([type=hidden]):not([type=checkbox]),dialog form[data-creation-key] select,dialog form[data-creation-key] textarea{font-size:16px}}
.order-current-work article>button{flex-shrink:0;white-space:nowrap}
.order-ux-detail .order-work-summary{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:14px;padding:0;background:transparent}.order-ux-detail .order-current-work,.order-domain-overview{margin:0;padding:16px;border:1px solid #dce6ef;border-radius:8px;background:#fff;min-width:0}.order-current-work article{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 0;border-bottom:1px solid #e6edf6}.order-current-work article>div{min-width:0;overflow-wrap:anywhere}.order-current-work article small{display:block;color:#62778a;margin-top:5px}.order-domain-overview h2{font-size:16px;margin:0 0 12px}.order-domain-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:10px}.order-domain{border:1px solid #e0eaf7;border-radius:6px;padding:10px;min-width:0}.order-domain h3{font-size:14px;margin:0 0 8px}.order-domain-fact{padding:6px 0;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:4px;font-size:12px}.order-domain-fact small,.order-domain-fact time{grid-column:1/-1;color:#62778a;overflow-wrap:anywhere}.order-domain-fact.order-progress-current>span{color:#a95c00}.order-domain-fact.order-progress-done>span{color:#267654}.order-domain-fact.order-progress-exception>span{color:#bf3434}.order-list-groups{display:flex;gap:8px;flex-wrap:wrap;margin:12px 0}.order-list-filters{display:grid;grid-template-columns:repeat(5,minmax(0,1fr)) auto;gap:10px;align-items:end;margin:12px 0}.order-list-filters label{min-width:0}.order-list-pagination{display:flex;justify-content:flex-end;align-items:center;gap:10px;margin-top:14px}.order-ux-detail .page-head h1{overflow-wrap:anywhere}
@media screen and (max-width:700px){.order-ux-detail .order-work-summary{grid-template-columns:minmax(0,1fr)}.order-current-work article{align-items:flex-start}.order-current-work article button{flex-shrink:0}.order-list-filters{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}.order-list-pagination{flex-wrap:wrap}.order-ux-detail .panel-title h2{flex-shrink:0}.order-ux-detail .panel-title input{min-width:0}#order-list .record-card>small{display:block;margin:6px 0;overflow-wrap:anywhere}#order-list .record-card>button{margin-top:6px}.order-ux-detail #item-table,.order-ux-detail #item-table tbody{display:block;width:100%}.order-ux-detail #item-table thead{display:none}.order-ux-detail #item-table tr{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);padding:10px 0;border-bottom:1px solid #e0eaf7}.order-ux-detail #item-table td{display:block;border:0;overflow-wrap:anywhere}.order-ux-detail #item-table td:first-child{grid-column:1/-1}.order-ux-detail #item-table td:nth-child(2):before{content:'数量：'}.order-ux-detail #item-table td:nth-child(3):before{content:'参考价：'}.order-ux-detail #item-table td:nth-child(4):before{content:'本单价：'}.order-ux-detail #item-table td:nth-child(5):before{content:'金额：'}}

/* ===== S3 合同专项：来源徽标 / 四组状态列 / 双口径到期 / 付款计划 / 条款库三栏 ===== */
.cm-src{display:inline-block;margin-top:4px;padding:1px 6px;border-radius:4px;font-size:10px;line-height:16px;border:1px solid var(--line,#d9dee6);color:#4b5563;background:#f6f8fa}
.cm-src.ok{border-color:#b7e0c2;background:#eefaf1;color:#1d6b34}
.cm-src.warn{border-color:#f0d9a8;background:#fff9ec;color:#8a5b00}
.cm-src.neutral{color:#6b7280}
.cm-list .qux-table td{vertical-align:top}
.cm-list .qux-table td .qux-badge{white-space:nowrap}
.cm-due{display:block;margin-top:3px;font-size:10px;line-height:14px;color:#6b7280;white-space:normal;overflow-wrap:anywhere}
.cm-aging{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-bottom:8px}
.cm-aging>article{border:1px solid var(--line,#e2e6ec);border-radius:8px;padding:10px 12px;background:#fbfcfd}
.cm-aging>article h3{margin:0 0 6px;font-size:12px;font-weight:600;color:#4b5563}
.cm-aging>article strong{display:block;font-size:18px;line-height:24px;color:#111827;overflow-wrap:anywhere}
.cm-aging>article small{display:block;margin-top:3px;font-size:11px;color:#6b7280}
.cm-aging>article .qux-note{margin:6px 0 0}
.cm-plan-head{display:flex;flex-wrap:wrap;align-items:baseline;gap:8px;margin-bottom:6px}
.cm-plan-head h3{margin:0;font-size:14px}
.cm-plan-head small{color:#6b7280}
.cm-plan-form{margin-top:10px;border-top:1px dashed var(--line,#e2e6ec);padding-top:10px}
.cm-plan-rows{display:flex;flex-direction:column;gap:8px}
.cm-plan-row{display:grid;grid-template-columns:64px minmax(120px,1.4fr) 88px 110px minmax(110px,1fr) 130px;gap:8px;align-items:end}
.cm-plan-row label{display:flex;flex-direction:column;gap:2px;font-size:11px;color:#6b7280}
.cm-plan-row input,.cm-plan-row select{width:100%}
.cm-clause3{display:grid;grid-template-columns:200px minmax(220px,1fr) minmax(320px,1.4fr);gap:12px;align-items:start;margin-top:8px}
.cm-clause-cats{display:flex;flex-direction:column;gap:4px;border:1px solid var(--line,#e2e6ec);border-radius:8px;padding:6px;background:#fbfcfd}
.cm-clause-cats button{display:flex;justify-content:space-between;gap:6px;padding:6px 8px;border:0;border-radius:6px;background:transparent;text-align:left;font-size:12px;cursor:pointer}
.cm-clause-cats button em{font-style:normal;color:#9ca3af}
.cm-clause-cats button.active{background:#e8f1ff;color:#1d4ed8;font-weight:600}
.cm-clause-list{display:flex;flex-direction:column;gap:4px;border:1px solid var(--line,#e2e6ec);border-radius:8px;padding:6px;background:#fff;max-height:520px;overflow:auto}
.cm-clause-list button{display:flex;flex-direction:column;gap:2px;padding:8px;border:1px solid transparent;border-radius:6px;background:transparent;text-align:left;cursor:pointer}
.cm-clause-list button.active{border-color:#bfd4f5;background:#f2f7ff}
.cm-clause-list button strong{font-size:12px;color:#111827}
.cm-clause-list button span{font-size:12px;color:#374151;overflow-wrap:anywhere}
.cm-clause-list button small{font-size:10px;color:#6b7280}
.cm-clause-pane{border:1px solid var(--line,#e2e6ec);border-radius:8px;padding:12px;background:#fff}
.cm-clause-pane header{display:flex;justify-content:space-between;gap:10px;flex-wrap:wrap;align-items:flex-start;margin-bottom:8px}
.cm-clause-pane h2{margin:0;font-size:14px}
.cm-clause-pane header small{display:block;margin-top:3px;color:#6b7280;font-size:11px}
.cm-clause-body{margin:0;padding:10px;border-radius:6px;background:#f8fafc;border:1px solid var(--line,#eef1f5);white-space:pre-wrap;overflow-wrap:anywhere;font-size:12px;line-height:1.7;color:#1f2937;max-height:360px;overflow:auto}
.cm-clause-create label{display:block;margin-bottom:8px;font-size:12px;color:#4b5563}
.cm-clause-create textarea{width:100%}
@media(max-width:1100px){
 .cm-aging{grid-template-columns:1fr}
 .cm-clause3{grid-template-columns:1fr}
 .cm-clause-list{max-height:240px}
 .cm-plan-row{grid-template-columns:1fr 1fr}
}
@media(max-width:700px){
 .cm-plan-row{grid-template-columns:1fr}
 .cm-list .cm-due{font-size:9px}
 .cm-clause-cats{flex-direction:row;overflow:auto}
 .cm-clause-cats button{white-space:nowrap}
}

/* Contract mobile forms keep tables within their own scroll container. */
#cm-create [hidden],.cm-edit [hidden]{display:none!important}
@media(max-width:600px){
 .cm-layout,.cm-clause3{display:flex;flex-direction:column;min-width:0}
 .cm-layout>*,.cm-clause3>*{min-width:0;max-width:100%;box-sizing:border-box}
 .cm-plan-row{display:grid;grid-template-columns:1fr 1fr;gap:10px;padding:12px;border:1px solid #dce5ef;border-radius:8px;margin:8px 0}
 .cm-plan-row input,.cm-plan-row select,.cm-edit input,.cm-edit select,.cm-edit textarea{min-width:0;width:100%;box-sizing:border-box}
 .cm-clause-body{white-space:pre-wrap;overflow-wrap:anywhere}
 .cm-clause-cats{display:flex;overflow:auto;max-width:100%}
 .cm-clause-cats button{flex-shrink:0}
 .cm-list,.cm-plan,.cm-edit{min-width:0;max-width:100%;overflow-x:auto}
 .cm-actions{flex-wrap:wrap}
}

/* CM-01 four-step flow, following the contract reference screens. */
.cm-steps{display:flex;list-style:none;padding:18px 20px;margin:12px 0;background:white;border:1px solid #dce7f5;border-radius:8px;gap:12px}
.cm-steps li{display:flex;align-items:center;gap:8px;flex:1;color:#7c8ba4;font-size:13px}.cm-steps li:not(:last-child):after{content:'→';margin-left:auto;color:#bdcce0}.cm-steps li span{border:1px solid #a9bdd8;border-radius:50%;width:28px;height:28px;display:grid;place-items:center;flex-shrink:0}.cm-steps .active{color:#1456ba;font-weight:700}.cm-steps .active span,.cm-steps .done span{background:#1677ff;color:white;border-color:#1677ff}
.cm-wizard-preview[hidden],.cm-wizard-fields[hidden],.cm-edit [hidden]{display:none!important}.cm-preview-paper{max-width:820px;margin:auto;border:1px solid #dce5ef;padding:24px;background:white}.cm-preview-paper header{display:flex;justify-content:space-between;gap:12px;color:#9b5720}.cm-preview-paper h2{text-align:center}.cm-preview-paper p{white-space:pre-wrap;line-height:1.8;overflow-wrap:anywhere}
@media(max-width:600px){.cm-steps{padding:12px 8px;gap:5px}.cm-steps li{flex-direction:column;font-size:11px;text-align:center}.cm-steps li:after{display:none}.cm-preview-paper{padding:14px}.cm-preview-paper header{flex-direction:column}.qux-form-footer{flex-wrap:wrap}}
.cm-kind-select{display:none!important}.cm-type-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:12px 0 20px}.cm-type-card{display:flex!important;align-items:center;gap:8px;border:1px solid #dbe5f3;border-radius:7px;background:#fff;padding:14px 10px;cursor:pointer}.cm-type-card:has(input:checked){border-color:#1677ff;background:#edf5ff;color:#125bbb}.cm-type-card input{width:auto!important;margin:0}.cm-template-pick{display:grid;grid-template-columns:minmax(0,1fr) 64px;gap:10px;align-items:center}.cm-template-pick label{display:flex;gap:7px}.cm-template-pick input[type=checkbox]{width:auto}.cm-clause-controls details{border-top:1px solid #e1e9f4;padding:12px 0}.cm-clause-controls summary{cursor:pointer;font-weight:600;color:#173b70}
@media(max-width:600px){.cm-type-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.cm-type-card{padding:12px 8px;font-size:12px}.cm-template-pick{grid-template-columns:minmax(0,1fr) 54px}}
.cm-shell .qux-card{min-width:0;overflow-wrap:anywhere}.cm-shell .qux-card p,.cm-shell .qux-card a{overflow-wrap:anywhere}

/* Contract wizard: compact fields and clause rows on desktop, stacked on mobile. */
.cm-shell .cm-wizard-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;align-items:start}.cm-wizard-fields>section,.cm-wizard-fields>p,.cm-wizard-fields>h3,.cm-wizard-fields>.grid,.cm-wizard-fields>details{grid-column:1/-1}.cm-wizard-fields>label{min-width:0}.cm-wizard-fields>label:has(textarea){grid-column:1/-1}.cm-contract-clause-picker details{padding:10px 0;border-top:1px solid #e1e9f4}.cm-shell .cm-template-pick{display:grid;grid-template-columns:minmax(0,1fr) 64px;align-items:center;gap:12px}.cm-shell .cm-template-pick label{display:flex;align-items:center;gap:8px;margin:0;min-width:0;line-height:1.6}.cm-shell .cm-template-pick input[type=checkbox]{width:16px!important;height:16px;margin:0;flex:0 0 16px}.cm-contract-clause-picker .cm-clause-body{white-space:pre-wrap;padding:12px;background:#f5f8fd;line-height:1.8}.cm-shell .cm-edit>.qux-form-footer{position:static;margin:4px 0 0;padding:14px 0 0;border-top:1px solid #e1e9f4;background:white}.cm-purchase-summary h3{margin-top:0}
@media(max-width:700px){.cm-shell .cm-wizard-fields{grid-template-columns:minmax(0,1fr)}.cm-shell .cm-wizard-fields>*{grid-column:1}.cm-shell .cm-template-pick{grid-template-columns:minmax(0,1fr) 54px}}

.cm-shell .cm-template-pick label,.cm-shell .cm-type-card{flex-direction:row;justify-content:flex-start}.cm-shell .cm-source-table{max-height:290px;overflow:auto;grid-column:1/-1}.cm-source-table table{width:100%;font-size:12px}.cm-source-table td,.cm-source-table th{padding:10px 8px;text-align:left}.cm-source-table tr.selected{background:#edf5ff}.cm-source-table button{padding:3px 6px;min-width:28px}.cm-source-table td{white-space:normal}

.cm-preview-layout{display:grid;grid-template-columns:minmax(0,1fr) 250px;gap:18px;align-items:start}.cm-preview-layout .cm-preview-paper{width:100%;min-width:0;box-sizing:border-box}.cm-preview-approval{padding:16px;background:#f6f9ff;border:1px solid #e1e9f4;border-radius:8px;font-size:12px;line-height:1.7}.cm-preview-approval h3{margin:0 0 12px}.cm-preview-approval ol{padding-left:20px}.cm-preview-approval li{padding:0 0 16px 8px;border-left:2px solid #d8e8ff}.cm-preview-approval small{display:block;margin-top:6px;color:#667e9c}@media(max-width:900px){.cm-preview-layout{grid-template-columns:minmax(0,1fr)}}

.v2-link-line{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr) 100px;gap:12px;padding:12px 0;border-bottom:1px solid #e2eaf5}.v2-link-line label{min-width:0}.v2-link-line input[type=checkbox]{width:auto}.v2-order-contracts{overflow-wrap:anywhere}@media(max-width:600px){.v2-link-line{grid-template-columns:minmax(0,1fr)}.v2-order-contracts table{font-size:12px}.v2-order-contracts td{white-space:normal}}

.cm-create-methods{display:grid;grid-template-columns:1fr 1fr;gap:16px}.cm-create-methods button{padding:20px;text-align:left;border:1px solid #dce7f8;background:#f6faff}.cm-create-methods strong,.cm-create-methods small{display:block}.cm-create-methods small{margin-top:10px;line-height:1.8;color:#6884ab}.cm-independent-line{display:grid;grid-template-columns:minmax(0,2fr) 100px 140px auto;gap:12px;align-items:end;margin:12px 0}.cm-independent-line label{min-width:0}@media(max-width:700px){.cm-create-methods,.cm-independent-line{grid-template-columns:minmax(0,1fr)}}

/* V2 order workbench keeps original business panels and handlers. */
/* 九个业务标签不允许「挤在一起 / 隐藏 / 必须横向拖动」（指令第二专项硬要求）。
   原来 overflow-x:auto 在 1024 下要拖 120px、768 下要拖 376px、390 下要拖 481px，
   等于最小的几个入口肉眼看不到。改成换行：行数变多但每个标签完整可点。 */
.v2-order-tabs{display:flex;flex-wrap:wrap;gap:6px;overflow-x:visible;max-width:100%;padding:8px 0 12px;border-bottom:1px solid #dce7f7;margin-bottom:16px}
.v2-order-tabs button{white-space:nowrap;border:0;border-radius:6px;padding:11px 14px;background:transparent;color:#526b8c}
.v2-order-tabs button.active{background:#eaf3ff;color:#0866e8;box-shadow:inset 0 -3px #1476ed;font-weight:700}
.v2-order-workspace,.v2-order-workspace>section{min-width:0}
.v2-order-workspace>section[hidden]{display:none!important}
.v2-order-workspace .order-business-detail{margin-bottom:12px;background:#fff;border:1px solid #dce7f7;border-radius:10px}
.v2-order-workspace .order-business-detail>summary{padding:14px;color:#244d7d;font-weight:600;cursor:pointer}
.v2-order-workspace .order-business-detail>.panel{margin:0;border:0}
@media(max-width:600px){.v2-order-tabs{gap:2px}.v2-order-tabs button{padding:10px 12px}.v2-order-workspace .order-business-detail>summary{padding:12px}}

.cm-wizard-layout{display:block;min-width:0}.cm-wizard-layout.terms-step{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,1fr);gap:18px;align-items:start}
.cm-wizard-layout .cm-wizard-plan{min-width:0}.cm-wizard-plan[hidden]{display:none!important}.cm-wizard-fields>[data-cm-wizard-section]{display:contents}.cm-wizard-fields>[data-cm-wizard-section][hidden]{display:none!important}.cm-wizard-plan .cm-aging{grid-template-columns:1fr}.cm-wizard-layout.terms-step .cm-edit{min-width:0}
@media(max-width:900px){.cm-wizard-layout.terms-step{grid-template-columns:minmax(0,1fr)}}

/* ==== 设备台账 V3.2（2026-10-24）· 视觉专项整改 ============================================
   本块**整体替换** V3.0 / V3.1 两套互相覆盖的设备台账规则（旧的两段已删除，文件里不留第二份）。
   作用域只用本模块前缀：.dev-* / #dv-* / .dv-* / #c360-device / .c360-kpi；
   全局 .stats / .stat / table / th / td 一律不碰（其他模块在用）。
   V3.2 §3 明确要求清理矛盾规则而不是继续追加覆盖块，所以这里每个选择器只出现一次。
   ========================================================================================= */

/* ---------- ① KPI：七卡同一行 · 小图标 + 低饱和浅底 + 数字层级 ---------- */
.dev-stats{display:block;margin:12px 0 10px}
/* 七列等距：前 5 张主指标 + 当前有效资产（淡蓝）+ 历史累计安装（灰白）。
   V3.2 §2.1 顺序：在册 / 在用 / 停用 / 报废 / 待核实 / 当前有效资产 / 历史累计安装。
   分组**不插竖线**（竖线会打破等距栅格、间距忽大忽小），改用底色差异表达。 */
.dev-stat-row{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:11px}
.dev-stats .stat.dev-kpi{display:flex;flex-direction:column;justify-content:flex-start;gap:3px;
 height:124px;min-height:0;min-width:0;padding:12px 13px;border-radius:10px;overflow:hidden;
 border:1px solid var(--line);background:#fff;box-shadow:none;text-align:left}
/* 卡片内部只允许三行：图标+指标名 / 数字 / 一句说明。长解释一律不进卡体（V3.2 §2.2）。 */
.dev-kpi-head{display:flex;align-items:flex-start;gap:7px;min-width:0}
.dev-kpi-ico{flex:0 0 28px;width:28px;height:28px;display:grid;place-items:center;border-radius:8px;
 background:#eef2f7;color:#526176;margin-top:1px}
.dev-kpi-ico svg{width:22px;height:22px;display:block}
.dev-kpi .label{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;
 overflow:hidden;font-size:13px;line-height:1.2;font-weight:600;color:#42566f;word-break:keep-all}
.dev-kpi .value{display:block;margin:2px 0 0;font-size:27px;line-height:1.12;font-weight:750;
 letter-spacing:-.02em;font-variant-numeric:tabular-nums;color:#12243c;white-space:nowrap}
.dev-kpi .value small{display:inline;margin-left:3px;font-size:13px;font-weight:600;opacity:.72}
.dev-kpi .dev-kpi-foot{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;
 overflow:hidden;margin-top:auto;font-size:12px;line-height:1.35;color:#7b8a9d}
/* 在册＝唯一强调卡（图1 用主色实底），其余全部浅底不抢焦 */
/* 在册＝浅蓝灰底（图1 不是深蓝实底；V3.2 §2.2 也要求不用大面积纯色） */
.dev-stats .stat.dev-kpi--total{background:#eef2f8;border-color:#dbe3ee}
.dev-kpi--total .label{color:#3c5471}
.dev-kpi--total .value{color:#16304e}
.dev-kpi--total .dev-kpi-foot{color:#7b8a9d}
.dev-kpi--total .dev-kpi-ico{background:#dce6f3;color:#2d5f8f}
/* 在用=浅绿 / 停用=浅橙 / 报废=浅红 / 待核实=中性 / 有效资产=淡蓝 / 历史累计=灰白低强调 */
.dev-stats .stat.dev-kpi--inuse{background:#e9f7ef;border-color:#cfe9db}
.dev-kpi--inuse .label{color:#1a6b4c}.dev-kpi--inuse .value{color:#156345}
.dev-kpi--inuse .dev-kpi-ico{background:#d3eedf;color:#1a7a55}
.dev-stats .stat.dev-kpi--idle{background:#fff5e4;border-color:#f5e2c0}
.dev-kpi--idle .label{color:#8a5a12}.dev-kpi--idle .value{color:#7d4f0c}
.dev-kpi--idle .dev-kpi-ico{background:#fbe8c9;color:#a2620c}
.dev-stats .stat.dev-kpi--scrap{background:#fdeeee;border-color:#f6d6d6}
.dev-kpi--scrap .label{color:#8f3a3a}.dev-kpi--scrap .value{color:#8a3131}
.dev-kpi--scrap .dev-kpi-ico{background:#f9dada;color:#a63a3a}
.dev-stats .stat.dev-kpi--review{background:#f4f7fb;border-color:#e4eaf3}
.dev-kpi--review .dev-kpi-ico{background:#e8eef6;color:#55647c}
.dev-stats .stat.dev-kpi--asset{background:#eef5fd;border-color:#d3e4f6}
.dev-kpi--asset .label{color:#245b85}.dev-kpi--asset .value{color:#1d5480}
.dev-kpi--asset .dev-kpi-ico{background:#dbeafa;color:#23608f}
.dev-stats .stat.dev-kpi--history{background:#fbfcfd;border:1px dashed #dbe2ea}
.dev-kpi--history .label{color:#6f7f92}.dev-kpi--history .value{color:#7d8b9d}
.dev-kpi--history .dev-kpi-ico{background:#f0f3f7;color:#8494a7}
/* 状态待归类：不是业务状态，只做异常提示条，不占主卡位 */
.dev-stat-alert{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin-top:8px;padding:7px 12px;
 border:1px dashed #e2cfa4;background:#fffdf6;border-radius:8px;font-size:12px;color:#7a5a1e;line-height:1.55}
.dev-stat-alert strong{color:#6b4d13}

/* ---------- ② 筛选区：两行，容器 ≤170px，控件 34px ---------- */
.dev-filters{padding:10px 16px 11px;border-bottom:1px solid var(--line);background:#fbfdff}
.dev-filter-row{display:grid;gap:8px 10px;align-items:end;margin:0}
/* 第一行：省份 / 城市 / 医院搜索（占满剩余宽度）/ 高级筛选入口 */
.dev-filter-r1{grid-template-columns:150px 150px minmax(0,1fr) auto;margin-bottom:8px}
/* 第二行：型号 / 序列号 / 主状态 / 核实状态 + 重置·查询（就地，不再白占一整行） */
.dev-filter-row.dev-filter-2{grid-template-columns:minmax(0,1fr) minmax(0,.85fr) minmax(0,.85fr) minmax(0,.85fr) auto}
.dev-filter-row .wide{grid-column:auto}
.dev-filter-row label{font-size:12px;gap:4px;color:#4a5c74;font-weight:500}
.dev-filter-row input,.dev-filter-row select{height:34px;padding:0 9px;font-size:12.5px;border-radius:6px;border-color:#cfd9e6}
.dev-filter-actions{display:flex;gap:8px;justify-content:flex-end;align-items:end;align-self:end;white-space:nowrap}
.dev-filter-actions button{height:34px;padding:0 13px;font-size:12.5px;border-radius:6px}
/* 高级筛选改成行内轻入口（图1 在第一行右侧），展开态加底色表示已开 */
.dev-adv-toggle{align-self:end;display:inline-flex;align-items:center;gap:5px;height:34px;padding:0 11px;
 border:1px solid #d6e0ec;border-radius:6px;background:#fff;color:#33506f;font-size:12.5px;font-weight:600;white-space:nowrap}
.dev-adv-toggle:hover{background:#eef4fb;border-color:#9eb6d4}
.dev-adv-toggle.on{background:#eef4fb;border-color:#b9cee6;color:#1f4e8c}
.dev-adv{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px 10px;margin-top:10px;padding-top:10px;border-top:1px dashed var(--line)}
.dev-adv label{font-size:12px;gap:4px;color:#4a5c74;font-weight:500}
.dev-adv input,.dev-adv select{height:34px;padding:0 9px;font-size:12.5px;border-radius:6px}
.dev-adv p{grid-column:1/-1;margin:0;font-size:12px}
/* 快捷筛选：两组之间用一条细竖线分隔，不再靠「全部」重复制造噪声 */
.dev-tabs{display:flex;gap:6px 14px;flex-wrap:wrap;align-items:center;padding:8px 16px 7px}
.dev-tabs button{font-size:12.5px;font-weight:500;padding:4px 11px;border-radius:14px;color:#43566e;border-color:#dde5ef;background:#fff}
.dev-tabs button.primary{background:#1f4e8c;border-color:#1f4e8c;color:#fff}
.dev-chip-group{display:flex;gap:6px;flex-wrap:wrap;align-items:center;margin-right:0}
.dev-chip-group + .dev-chip-group{padding-left:14px;border-left:1px solid var(--line)}
.dev-chip-group>.muted{font-size:11.5px;margin-right:2px;color:#8494a7}
/* 结果条：一行到底，紧贴表格 */
.dev-toolbar{margin:0;padding:5px 16px;justify-content:space-between;gap:12px;
 border-top:1px solid #f2f6fa;background:#fff}
.dev-toolbar .muted{font-size:12.5px;line-height:1.5}

/* ---------- ③ 表格：表头 ≥12px、正文 12.5px、行高 41px ---------- */
#dv-table .table-wrap{overflow:auto}
#dv-table table{min-width:0;font-size:12px}
/* 行高用固定 height 保证 40–46px，横向 padding 收到 8px —— 14 列才装得进 1180 的内容宽 */
#dv-table thead th{height:32px;font-size:12px;font-weight:600;color:#5f7188;background:#f7fafd;
 padding:0 6px;white-space:nowrap;border-bottom:1px solid var(--line)}
#dv-table tbody td{height:42px;padding:0 6px;font-size:12px;line-height:20px;white-space:nowrap;
 border-bottom:1px solid #f1f5fa;vertical-align:middle}
#dv-table tbody tr:hover td{background:#fbfdff}
#dv-table .badge{padding:2px 7px;font-size:11.5px;line-height:1.45}
/* 型号 / 版本：一主一辅**同一行**，不让版本把行高顶起来 */
#dv-table .dv-model-name{font-weight:600;color:#22374f}
#dv-table .dv-model-ver{margin-left:5px;font-size:11.5px;color:#8494a7}
/* 医院：可点击**轻文本**（保留按钮语义与键盘可达），不再是行内最抢眼的大按钮 */
#dv-table .dv-hosp{background:none;border:0;padding:0;height:auto;font-size:12px;font-weight:600;
 color:#245b9b;max-width:132px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;text-align:left}
#dv-table .dv-hosp:hover{background:none;color:#0f4a8f;text-decoration:underline}
#dv-table .dv-hosp.is-unmatched{font-weight:400;color:#8494a7}
/* 操作列：详情为主（淡蓝底），状态变更为轻按钮；列吸右保证横向滚动时不被裁 */
#dv-table .dv-ops{display:flex;gap:4px;flex-wrap:nowrap;white-space:nowrap;justify-content:flex-end}
#dv-table .dv-ops button{height:22px;padding:0 8px;font-size:12px;border-radius:6px;font-weight:600}
.dev-toolbar .dev-export{height:26px;padding:0 12px;font-size:12px;border-radius:6px;align-self:center}
#dv-table .dv-op-main{background:#eef4fb;border:1px solid #cfe0f2;color:#245b9b}
#dv-table .dv-op-main:hover{background:#e0ecfa;border-color:#a9c6e6}
#dv-table .dv-op-2{background:#fff;border:1px solid #e2e8f0;color:#5b6c84;font-weight:500}
#dv-table .dv-op-2:hover{background:#f6f9fd;border-color:#c9d6e6;color:#2c4361}
#dv-table th:last-child,#dv-table td:last-child{position:sticky;right:0;background:#fff;
 box-shadow:-1px 0 0 var(--line)}
#dv-table thead th:last-child{background:#f7fafd}
#dv-table tbody tr:hover td:last-child{background:#fbfdff}
/* 日期「待核实」：可聚焦按钮（键盘 / 触屏都能打开说明），title 只作鼠标补充 */
.dv-date-warn{display:inline-flex;align-items:center;gap:3px;height:22px;padding:0 7px;
 border:1px solid #f0dcae;border-radius:11px;background:#fff9ec;color:#8a5a12;
 font-size:12px;font-weight:600;white-space:nowrap}
.dv-date-warn:hover{background:#fff3d8;border-color:#e6cb92}
.dv-link{background:none;border:0;padding:0;height:auto;font:inherit;font-size:12.5px;
 font-weight:600;color:#245b9b;text-align:left;white-space:normal}
.dv-link:hover{background:none;color:#0f4a8f;text-decoration:underline}
.dv-q{display:inline-grid;place-items:center;width:13px;height:13px;border-radius:50%;
 background:#e8c882;color:#5d3d05;font-size:10px;font-weight:700;line-height:1}
/* 取代原来横贯列表的长黄条：表格上方一句 12px 短提示，无底色无边框 */
.dv-table-note{display:flex;align-items:center;gap:6px;margin:0;padding:6px 16px 2px;
 font-size:12px;line-height:1.5;color:#7a6a4a;background:none;border:0}
.dv-table-note .dv-q{background:#e8c882}
.dv-date-detail{display:flex;align-items:center;justify-content:space-between;gap:12px;
 margin:0 0 6px;padding:8px 12px;border:1px solid #f0dcae;background:#fffaf0;border-radius:8px;
 font-size:12.5px;line-height:1.6;color:#7a5a1e}

/* ---------- ④ 设备详情：宽 1040 · 摘要两列 · 基本信息两列 · 七页签单行 ---------- */
dialog.dev-detail-modal{max-width:1040px;width:calc(100% - 40px)}
.modal-body.dev-detail{display:grid;grid-template-rows:auto auto auto minmax(0,1fr);
 max-height:calc(90vh - 74px);padding-bottom:0}
.dev-hero{display:flex;gap:18px;align-items:flex-start;margin-bottom:12px}
.dev-hero-main{min-width:0;flex:1}
.dev-hero-title{display:flex;gap:8px;align-items:center;flex-wrap:wrap;margin-bottom:8px}
.dev-hero-title h3{margin:0;font-size:16px}
.dev-photo{width:152px;height:168px;flex:0 0 152px;display:grid;place-items:center;
 border:1px solid var(--line);border-radius:10px;background:#fff;overflow:hidden}
.dev-photo img{max-width:100%;max-height:100%;object-fit:contain}
.dev-photo-icon{display:grid;place-items:center;gap:6px;color:#93a3b6;text-align:center;padding:8px;font-size:11.5px}
.dev-photo-icon svg{width:64px;height:64px}
.dev-kv p{display:flex;gap:10px;margin:0 0 6px;font-size:12.5px;line-height:1.55}
.dev-kv p>span:first-child{flex:0 0 84px;color:var(--muted);font-size:12.5px}
/* 摘要：右侧两列标签-数值，不做一根长列 */
.dev-kv-hero{display:grid;grid-template-columns:1fr 1fr;gap:0 22px;align-content:start}
.dev-kv-hero p>span:first-child{flex:0 0 76px}
/* 基本信息页签同样两列；备注这种长文本跨两列 */
.dev-kv-grid{display:grid;grid-template-columns:1fr 1fr;gap:0 26px;align-content:start}
.dev-kv-grid>p.dv-kv-wide{grid-column:1/-1}
.modal-body.dev-detail .dev-detail-body{overflow:auto;min-height:0;padding:4px 2px 22px}
.modal-body.dev-detail .dev-detail-body>h3{margin:16px 0 8px;font-size:14px}
.dev-detail-ops{display:flex;gap:12px;align-items:center;justify-content:space-between;flex-wrap:wrap;
 margin:2px 0 10px;padding-bottom:10px;border-bottom:1px solid var(--line)}
.modal-body .dev-detail-ops .button-row{justify-content:flex-start;margin:0;gap:8px}
.dev-detail-ops button{height:32px;padding:0 13px;font-size:12.5px}
/* 七个页签：桌面单行，窄屏在页签栏内横向滚动，绝不裁掉 */
.dev-detail-tabs{display:flex;gap:6px;flex-wrap:nowrap;overflow-x:auto;scrollbar-width:thin;
 border-bottom:1px solid var(--line);padding-bottom:10px;margin-bottom:8px}
.dev-detail-tabs button{flex:0 0 auto;font-size:12.5px;font-weight:500;padding:5px 12px;border-radius:6px;white-space:nowrap}
.dev-detail-tabs button.primary{background:#1f4e8c;border-color:#1f4e8c;color:#fff}
.dev-detail-body .task{background:#fbfdff;border:1px solid var(--line);border-radius:8px;margin:10px 0}
.dev-detail-body .notice{margin:10px 0;font-size:12.5px}
/* 更多操作：低频高风险动作收进菜单，权限判断不变 */
.dev-more{position:relative}
.dev-more>summary{list-style:none;cursor:pointer;font-size:12.5px;font-weight:600;color:#40536b;
 border:1px solid var(--line);border-radius:7px;padding:6px 12px;background:#fff;white-space:nowrap;height:32px;
 display:inline-flex;align-items:center}
.dev-more>summary::-webkit-details-marker{display:none}
.dev-more>summary::after{content:" ▾";font-size:11.5px;color:#7c8a9c}
.dev-more[open]>summary{background:#edf3fb;border-color:#9eb6d4}
.modal-body .dev-more-list{position:absolute;right:0;top:calc(100% + 6px);z-index:30;min-width:176px;
 flex-direction:column;align-items:stretch;flex-wrap:nowrap;background:#fff;border:1px solid var(--line);
 border-radius:10px;padding:10px;box-shadow:0 12px 32px #102c5026;margin:0}
.modal-body .dev-more-list button{width:100%;text-align:left;height:32px;padding:0 11px;font-size:12.5px}
.dev-entry-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.dev-entry-grid .wide{grid-column:1/-1}
.dev-source-link{color:#315d85} /* 厂商参考页：只给链接，不直接嵌图，不热链 */

/* ---------- ⑤ 客户360 设备资产：五卡统一轻色调，卡片本体就是入口 ---------- */
#c360-device #c360-device-tools{padding:2px 23px 8px}  /* 与 .panel-title 的 23px 对齐，五卡不再顶到面板边框 */
#c360-device .dev-stats{margin:8px 0 6px}
#c360-device .dev-stat-row{grid-template-columns:repeat(5,minmax(0,1fr));gap:10px}
#c360-device .stat.dev-kpi{height:auto;min-height:100px;padding:11px 12px}
#c360-device .dev-kpi .value{font-size:24px}
.c360-kpi{width:100%;font:inherit;text-align:left;cursor:pointer;transition:border-color .15s,box-shadow .15s}
.c360-kpi:hover{border-color:#9eb6d4;box-shadow:0 2px 10px #102c5014}
.c360-kpi:focus-visible{outline:3px solid #83b3f1;outline-offset:2px}
.c360-kpi.is-static{cursor:default}
.c360-kpi.is-static:hover{border-color:#dbe2ea;box-shadow:none}
.c360-kpi .dev-kpi-foot{margin-top:auto}
/* 质保维度（共 / 在保 / 过保 / 未知）不是设备主状态，单独一条低对比度说明行 */
.c360-warranty-line{padding:6px 0 2px;font-size:12.5px;line-height:1.6;color:#6b7c93;border:0;background:none}
.c360-warranty-line strong{font-weight:600;color:#4a5c74}

/* ---------- ⑥ 断点 ---------- */
@media(max-width:1439px){
 /* 1440 以下（含常见 1366 / 1280 笔记本）掉到四列，宁可两行也不把字缩到不可读 */
 .dev-stat-row{grid-template-columns:repeat(4,minmax(0,1fr))}
 #c360-device .dev-stat-row{grid-template-columns:repeat(5,minmax(0,1fr))}
 .dev-filter-r1{grid-template-columns:140px 140px minmax(0,1fr) auto}
}
@media(max-width:1100px){
 .dev-filter-r1{grid-template-columns:minmax(0,1fr) minmax(0,1fr) minmax(0,2fr) auto}
 .dev-filter-row.dev-filter-2{grid-template-columns:minmax(0,1fr) minmax(0,1fr) auto auto auto}
 .dev-kv-hero,.dev-kv-grid{grid-template-columns:1fr}
}
@media(max-width:900px){
 .dev-stat-row{grid-template-columns:repeat(2,minmax(0,1fr))}
 #c360-device .dev-stat-row{grid-template-columns:repeat(2,minmax(0,1fr))}
 .dev-filter-r1,.dev-filter-row.dev-filter-2{grid-template-columns:repeat(2,minmax(0,1fr))}
 .dev-filter-r1 .combo.wide{grid-column:1/-1}
 .dev-filter-actions{grid-column:1/-1;justify-content:stretch}
 .dev-filter-actions button{flex:1}
 .dev-adv{grid-template-columns:1fr}
 .dev-entry-grid{grid-template-columns:1fr}
 .dev-hero{flex-direction:column}
 .dev-photo{width:100%;flex-basis:auto;height:170px}
 #dv-table table{min-width:940px}
 .dev-detail-ops{justify-content:flex-start}
 .dev-kpi .value{font-size:24px}
}

/* ==== 设备台账 V3.4（2026-10-25）· 首页双视图（按区域浏览 ｜ 设备明细列表）===================
   只做「结果区」改造：顶部七卡、页面标题、操作按钮、两行筛选区一律复用 V3.2 规则，不重新设计。
   视觉目标：深蓝导航 / 浅色背景 / 彩色统计卡 / 白色内容区 / 紧凑表格 / 蓝色选中态；
   左右 28% + 72%，树形缩进 + 箭头 + 数量标签，右侧标题与路径，横纵滚动边界清晰。
   不新增省 / 市 / 医院独立页面，不加照片 / 设备图片 / 大型图表，不拼接设备详情与客户360。
   ========================================================================================= */

/* ---------- ⑦ 双视图切换：位置在筛选区正下方、结果区上方，选中态用主色实底 ---------- */
.dev-tabs{justify-content:space-between}
.dv-view-switch{display:inline-flex;gap:0;border:1px solid var(--line);border-radius:8px;
 overflow:hidden;background:#fff;flex:0 0 auto}
.dv-view-tab{display:inline-flex;align-items:center;gap:6px;height:30px;padding:0 14px;
 border:0;border-radius:0;background:#fff;color:#43566e;font-size:12.5px;font-weight:600;white-space:nowrap}
.dv-view-tab+.dv-view-tab{border-left:1px solid var(--line)}
.dv-view-tab svg{width:15px;height:15px;flex:0 0 auto}
.dv-view-tab:hover{background:#eef4fb;color:#1f4e8c}
.dv-view-tab.primary{background:#1f4e8c;color:#fff}
.dv-view-tab.primary svg{color:#fff}

/* ---------- ⑧ 区域浏览：左树 28% + 右侧动态内容 72% ---------- */
.dv-region{display:grid;grid-template-columns:28% minmax(0,1fr);gap:0;align-items:stretch;
 min-height:520px;background:#fff}
/* 左树：浅色底 + 深蓝标题条，节点多时**左侧独立滚动**（不撑破整页） */
.dv-tree{display:flex;flex-direction:column;min-width:0;border-right:1px solid var(--line);background:#fbfdff}
.dv-tree-head{display:flex;align-items:baseline;justify-content:space-between;gap:8px;
 padding:10px 14px 9px;border-bottom:1px solid var(--line);background:#eef3fa}
.dv-tree-title{font-size:13px;font-weight:700;color:#1f3f68}
.dv-tree-crumb{font-size:11.5px;color:#8494a7;white-space:nowrap}
.dv-tree-body{flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;padding:6px 0 14px}
.dv-tree-empty,.dv-tree-more{margin:0;padding:8px 14px;font-size:12px;color:#8494a7}
.dv-tree-kids{border-left:1px dashed #dbe4ef;margin-left:22px}
/* 节点：箭头（只管展开收起）与名称（才切右侧内容）是**两个独立按钮** */
.dv-node{display:flex;align-items:center;gap:2px;min-height:30px;padding:0 8px 0 10px;border-radius:0}
.dv-node:hover{background:#f1f6fc}
.dv-node.is-selected{background:#dceaf9}          /* 选中节点浅蓝底高亮 */
.dv-node.is-selected .dv-tn{color:#0f4a8f;font-weight:700}
.dv-node.is-none .dv-tn{color:#8a6d3b}
.dv-node.is-none .dv-tc{color:#a08a5f}
.dv-tw{flex:0 0 20px;width:20px;height:20px;display:grid;place-items:center;padding:0;
 border:0;border-radius:5px;background:none;color:#5b6c84}
.dv-tw svg{width:13px;height:13px;display:block}
.dv-tw:hover{background:#e2ecf8;color:#1f4e8c}
.dv-tn{flex:1;min-width:0;height:22px;padding:0 2px;border:0;background:none;text-align:left;
 font-size:12.5px;font-weight:500;color:#33475f;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.dv-tn:hover{color:#0f4a8f;text-decoration:underline}
.dv-tc{flex:0 0 auto;font-size:11.5px;font-weight:600;color:#7b8a9d;font-variant-numeric:tabular-nums;
 padding-left:4px;white-space:nowrap}
/* 层级缩进：省 0 / 市 20px / 医院 40px；叶子（医院）没有箭头，用圆点占位保持名称对齐 */
.dv-node--2{padding-left:30px}
.dv-node--3{padding-left:50px}
.dv-node--3 .dv-tn::before{content:"";display:inline-block;width:5px;height:5px;margin-right:7px;
 border-radius:50%;background:#b9c8da;vertical-align:middle}
.dv-node--3.is-selected .dv-tn::before{background:#1f4e8c}
.dv-node--1 .dv-tn{font-weight:700;color:#22374f}
.dv-node--2 .dv-tn{font-weight:600}

/* 右侧动态内容区：白底、独立滚动，标题 + 路径 + 各级统计 / 表格 */
.dv-region-main{min-width:0;display:flex;flex-direction:column;background:#fff;overflow:hidden}
.dv-panel-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;
 padding:12px 18px 8px;border-bottom:1px solid #f2f6fa}
.dv-panel-head h3{margin:0;font-size:15px;line-height:1.35;color:#1c3552;
 max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.dv-path{margin:3px 0 0;font-size:12px;line-height:1.5;color:#8494a7}
.dv-all-link{flex:0 0 auto;height:26px;padding:0 11px;border:1px solid #cfe0f2;border-radius:6px;
 background:#eef4fb;color:#245b9b;font-size:12px;font-weight:600;white-space:nowrap}
.dv-all-link:hover{background:#e0ecfa;border-color:#a9c6e6}
.dv-scope{margin:0;padding:6px 18px 0;font-size:12px;line-height:1.55;color:#7a6a4a}
.dv-summary-line{margin:0;padding:8px 18px 2px;font-size:12.5px;line-height:1.6;color:#5b6c84}
.dv-review-line{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin:0;padding:6px 18px 0;
 font-size:12px;line-height:1.5}
.dv-review-line .muted{font-size:11.5px}
/* 四张紧凑统计卡（省份概览 / 医院明细）：与七卡同色系，只是更小更紧凑 */
.dv-mini-row{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;padding:10px 18px 2px}
.dv-mini{display:flex;flex-direction:column;gap:2px;min-width:0;padding:8px 11px 7px;
 border:1px solid var(--line);border-radius:8px;background:#fff}
.dv-mini-label{font-size:11.5px;font-weight:600;color:#5f7188;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.dv-mini-value{font-size:21px;line-height:1.15;font-weight:750;letter-spacing:-.01em;
 font-variant-numeric:tabular-nums;color:#12243c;white-space:nowrap}
.dv-mini-value small{margin-left:3px;font-size:11.5px;font-weight:600;opacity:.72}
.dv-mini-foot{font-size:11px;line-height:1.35;color:#8494a7;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.dv-mini--total{background:#eef2f8;border-color:#dbe3ee}
.dv-mini--total .dv-mini-value{color:#16304e}
.dv-mini--inuse{background:#e9f7ef;border-color:#cfe9db}
.dv-mini--inuse .dv-mini-value{color:#156345}
.dv-mini--idle{background:#fff5e4;border-color:#f5e2c0}
.dv-mini--idle .dv-mini-value{color:#7d4f0c}
.dv-mini--scrap{background:#fdeeee;border-color:#f6d6d6}
.dv-mini--scrap .dv-mini-value{color:#8a3131}
/* 汇总表 / 明细表：紧凑可读，横向不够时**表格自己滚**，不缩字号、不砍列 */
.dv-region-main .table-wrap{overflow:auto;max-height:none}
.dv-region-main table{min-width:0;font-size:12px}
.dv-region-main thead th{height:32px;font-size:12px;font-weight:600;color:#5f7188;background:#f7fafd;
 padding:0 8px;white-space:nowrap;border-bottom:1px solid var(--line)}
.dv-region-main tbody td{height:40px;padding:0 8px;font-size:12px;line-height:20px;white-space:nowrap;
 border-bottom:1px solid #f1f5fa;vertical-align:middle}
.dv-region-main tbody tr:hover td{background:#fbfdff}
.dv-region-main .dv-region-name{display:inline-block;max-width:260px;overflow:hidden;
 text-overflow:ellipsis;white-space:nowrap;vertical-align:bottom;font-weight:600;color:#22374f}
.dv-region-main .dv-region-name.is-none{color:#8a6d3b;font-weight:600}
/* 医院档明细：型号 / 版本同列，核实状态与过程标签同格上下两行 */
.dv-region-main .dv-model-name{font-weight:600;color:#22374f}
.dv-region-main .dv-model-ver{margin-left:5px;font-size:11.5px;color:#8494a7}
.dv-region-main .dv-state-cell{display:flex;flex-direction:column;gap:2px;align-items:flex-start}
.dv-region-main .dv-proc{font-size:11px;padding:1px 6px}
.dv-region-main .dv-ops{display:flex;gap:4px;justify-content:flex-end}
.dv-region-main .dv-ops button{height:22px;padding:0 8px;font-size:12px;border-radius:6px;font-weight:600}
.dv-region-main th:last-child,.dv-region-main td:last-child{position:sticky;right:0;background:#fff;
 box-shadow:-1px 0 0 var(--line)}
.dv-region-main thead th:last-child{background:#f7fafd}
.dv-region-main tbody tr:hover td:last-child{background:#fbfdff}
.dv-region-main .empty{margin:0;padding:26px 18px}
/* 数字分页（医院档）：‹ 1 2 3 4 5 … 50 › + 每页条数 */
.dv-hosp-pager{display:flex;align-items:center;gap:5px;flex-wrap:wrap;margin:0;padding:10px 18px 14px;
 border-top:1px solid #f2f6fa}
.dv-hosp-pager button{min-width:26px;height:26px;padding:0 7px;font-size:12px;border-radius:6px;
 font-variant-numeric:tabular-nums}
.dv-hosp-pager .muted{padding:0 2px;font-size:12px}
.dv-hosp-size{display:inline-flex;align-items:center;gap:5px;margin-left:6px;font-size:12px;color:#5b6c84}
.dv-hosp-size select{height:26px;padding:0 6px;font-size:12px;border-radius:6px;border-color:#cfd9e6}

/* ---------- ⑨ V3.4 断点 ---------- */
@media(max-width:1439px){
 /* 1440 以下：左树略收，仍保持 28 / 72 的比例关系，不改成上下堆叠（一屏要能同时看到树和内容） */
 .dv-region{grid-template-columns:26% minmax(0,1fr)}
 .dv-mini-row{grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}
 .dv-region-main .dv-region-name{max-width:200px}
}
@media(max-width:1100px){
 .dv-region{grid-template-columns:30% minmax(0,1fr);min-height:0}
 .dv-tree-body{max-height:420px}
 .dv-view-tab{padding:0 11px}
}
@media(max-width:900px){
 /* 窄屏才允许上下堆叠；桌面两种验证视口（1440 / 1600）都不走这里 */
 .dv-region{grid-template-columns:1fr}
 .dv-tree{border-right:0;border-bottom:1px solid var(--line)}
 .dv-tree-body{max-height:280px}
 .dv-mini-row{grid-template-columns:repeat(2,minmax(0,1fr))}
 .dv-panel-head{flex-direction:column;align-items:stretch}
}/* ===== WB33-35 合同工作台样式（自候选树 analytics-closeout-20261018 抽取，勿手改） ===== */
.cm-wizard-plan .qux-empty{padding:12px}
.cm-wizard-plan .qux-note{font-size:12px;line-height:1.6}
.cm-shell .cm-wizard-fields label{margin-bottom:0}
.cm-shell .cm-wizard-fields input,.cm-shell .cm-wizard-fields select{min-height:36px;padding:8px 10px}
.cm-shell .cm-wizard-plan .cm-payment-confirm{flex-direction:row!important;justify-content:flex-start;text-align:left}
.cm-shell .cm-wizard-fields [data-cm-advanced] label{margin:12px 0}
.cm-shell .cm-wizard-fields [data-cm-payment-fields]>h3,.cm-shell .cm-wizard-fields [data-cm-payment-fields]>p{display:none}
.cm-shell .cm-wizard-fields>details[data-cm-wizard-section="3"]{display:block;grid-column:1/-1;padding:14px;background:#f5f9ff;border-radius:7px}
.cm-shell .cm-wizard-fields>details[data-cm-wizard-section="3"]>summary{font-weight:600;color:#1566be;cursor:pointer}
.cm-entry-card{padding:24px}
.cm-entry-card h1{margin:0 0 8px}
.cm-muted{color:#7389a7}
.cm-entry-card .cm-type-card{min-height:208px;flex-direction:column!important;justify-content:center!important;align-items:center;text-align:center;padding:20px 12px;gap:14px;white-space:normal}
.cm-entry-card .cm-type-card small{line-height:1.7;color:#6f84a1}
.cm-type-card.selected,.cm-source-methods button.selected,.cm-document-modes button.selected{border:2px solid #1677ff;background:#f0f7ff;color:#143d72}
.cm-entry-card footer{justify-content:space-between;margin-top:22px}
.cm-entry-card footer>:only-child{margin-left:auto}
.cm-source-methods,.cm-document-modes{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin:20px 0}
.cm-source-search{display:grid;grid-template-columns:160px minmax(0,1fr) auto;gap:12px;align-items:end}
.cm-source-search label{margin:0}
.cm-document-modes{grid-template-columns:repeat(3,minmax(0,1fr))}
.cm-document-modes button{padding:18px 12px;white-space:normal;text-align:left}
.cm-document-modes span{font-size:25px;margin-right:12px;color:#1677ff}
.cm-shell .cm-wizard-layout{display:grid;grid-template-columns:minmax(0,1fr);gap:16px}
.cm-shell .cm-wizard-layout>.cm-edit{display:contents}
.cm-wizard-fields{padding:20px;background:white;border:1px solid #dfebf8;border-radius:9px;order:1}
.cm-wizard-plan{order:2}
.cm-wizard-preview{order:3}
.cm-wizard-layout .qux-form-footer{order:5;display:flex;justify-content:flex-end;gap:12px;padding:16px!important;border:1px solid #dfebf8;border-radius:8px}
.cm-wizard-layout .cm-preview-layout{display:block}
.cm-wizard-layout .cm-preview-approval{display:none}
.cm-wizard-fields [data-cm-advanced]{padding:14px;background:#f5f9ff;border-radius:6px}
.cm-wizard-fields details summary{color:#1762b1;cursor:pointer}
.cm-goods-head,.cm-goods-row{display:grid;grid-template-columns:minmax(140px,2fr) minmax(75px,1fr) 80px 110px 100px 65px;gap:10px;align-items:center;padding:10px;border-bottom:1px solid #e4ecf7}
.cm-goods-head{background:#f0f6ff;color:#6882a5;font-size:12px}
.cm-goods-row label{margin:0!important;min-width:0}
.cm-goods-row input,.cm-goods-row select{width:100%;min-width:0}
.cm-goods-total{text-align:right;font-weight:700;color:#163a69;background:#edf5ff;padding:12px}
.cm-mobile-label{display:none}
.cm-shell [hidden]{display:none!important}
@media(max-width:700px) {
  .cm-entry-card{padding:16px}
  .cm-entry-card .cm-type-card{min-height:175px;padding:12px 8px}
  .cm-source-methods,.cm-document-modes,.cm-source-search{grid-template-columns:minmax(0,1fr)}
  .cm-goods-head{display:none}
  .cm-goods-row{grid-template-columns:minmax(0,1fr) minmax(0,1fr);border:1px solid #dbe7f8;border-radius:7px;margin:10px 0;gap:12px}
  .cm-goods-row>label:first-child{grid-column:1/-1}
  .cm-goods-row>[data-spec]{grid-column:1/-1;color:#6882a5}
  .cm-mobile-label{display:block;font-size:12px;color:#6882a5}
  .cm-wizard-layout .qux-form-footer{flex-wrap:wrap;gap:8px}
  .cm-wizard-layout .qux-form-footer button{flex:1 1 auto}
}
.cw-head{display:flex;justify-content:space-between;align-items:flex-start;gap:16px;flex-wrap:wrap;margin:0 0 14px}
.cw-head h1{font-size:22px;margin:0 0 8px;color:#10294d}
.cw-head-meta{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin:0;font-size:12px;color:#5b7392}
.cw-head-meta .cw-sep{width:1px;height:12px;background:#cfdcee;display:inline-block}
.cw-status{background:#eef4ff;color:#1b64c8;border-radius:11px;padding:2px 10px;font-size:11px}
.cw-form{display:block!important;margin:0}
.cw-workbench{display:grid;grid-template-columns:minmax(0,1.05fr) minmax(0,1fr);gap:16px;align-items:start}
.cw-left{min-width:0;display:flex;flex-direction:column;gap:14px}
.cw-right{min-width:0;position:sticky;top:10px;display:flex;flex-direction:column;gap:10px;height:calc(100vh - 24px);max-height:calc(100vh - 24px)}
.cw-right-scroll{flex:1 1 auto;min-height:0;overflow:auto;display:flex;flex-direction:column;gap:14px;padding-right:2px}
.cw-block{background:#fff;border:1px solid #e2ecf9;border-radius:10px;padding:16px 18px;box-shadow:0 1px 2px rgba(16,41,77,.04);min-width:0}
.cw-block-head{display:flex;align-items:flex-start;gap:10px;margin:0 0 14px}
.cw-block-no{width:22px;height:22px;border-radius:50%;background:#1677ff;color:#fff;font-size:12px;display:grid;place-items:center;flex:0 0 22px;margin-top:1px;font-weight:600}
.cw-block-head h2{font-size:15px;margin:0;color:#132c4f}
.cw-block-head p{font-size:12px;color:#7b8da6;margin:3px 0 0}
.cw-form .cm-wizard-fields{display:block;padding:0;background:none;border:0;gap:0;order:0}
.cw-region-body{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.cw-region-body>*{min-width:0}
.cw-region-body>label{margin:0!important}
.cw-region-body>section,.cw-region-body>p,.cw-region-body>details,.cw-region-body>h3,.cw-region-body>.grid,.cw-region-body>.cm-aging,.cw-region-body>.cm-payment-grid,.cw-region-body>.cm-form-origin,.cw-region-body>.cm-wizard-plan,.cw-region-body>.cw-pay-actions{grid-column:1/-1}
.cw-region-body>.grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.cw-region-body>.grid>*{min-width:0}
.cw-region-body>details{border-top:1px solid #e9f0fa;padding-top:10px}
.cw-region-body>details>summary{cursor:pointer;color:#1762b1;font-size:12.5px;font-weight:600}
.cw-region-body .cm-goods-head,.cw-region-body .cm-goods-row{grid-column:1/-1}
.cw-payment-pane{grid-column:1/-1;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.cw-payment-pane>*{min-width:0}
.cw-payment-pane>p,.cw-payment-pane>.cm-plan,.cw-payment-pane>#cm-plan-body,.cw-payment-pane>.cm-payment-confirm,.cw-payment-pane>.cw-pay-actions,.cw-payment-pane>[data-cm-terms-snapshot]{grid-column:1/-1}
.cw-doc-modes{display:grid;grid-template-columns:repeat(auto-fit,minmax(158px,1fr));gap:10px;margin:0 0 14px}
.cw-doc-mode{display:flex;gap:10px;align-items:flex-start;text-align:left;white-space:normal;padding:12px;border:1px solid #dbe5f3;background:#fff;border-radius:8px;cursor:pointer;font-size:12px;width:100%}
.cw-doc-mode.selected{border:2px solid #1677ff;background:#f0f7ff}
.cw-doc-mode strong{display:block;font-size:12.5px;color:#16365f}
.cw-doc-mode small{display:block;margin-top:5px;color:#7185a0;line-height:1.55;font-size:11.5px}
.cw-doc-mode-icon{font-size:19px;color:#1677ff;line-height:1.1;flex:0 0 auto}
.cw-doc-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.cw-doc-fields>label{grid-column:1/-1;margin:0}
.cw-doc-slot{margin:0 0 14px}
.cw-file-pick{display:block;font-size:12px;color:#3a5580;margin:0 0 6px}
.cw-file-pick input[type=file]{margin-top:6px;width:100%;font-size:12px}
.cw-doc-slot small{display:block;margin:8px 0;color:#6c83a0;font-size:11.5px;line-height:1.6}
.cw-preview-shell{border-top:1px solid #eaf1fb;padding-top:12px}
.cw-preview-bar{display:flex;justify-content:space-between;align-items:center;gap:8px;font-size:12px;color:#5b7392;margin-bottom:8px}
.cw-preview-state{font-size:11.5px;color:#7b8da6}
.cw-preview-state.ok{color:#1a8a5a}
.cw-preview-state.warn{color:#b96a17}
.cw-preview-shell .cm-wizard-preview{background:#eef3fa;border:1px solid #e0e8f4;border-radius:8px;padding:10px;max-height:520px;overflow:auto}
.cw-preview-shell .cm-preview-layout{display:block}
.cw-preview-shell .cm-preview-approval{display:none}
.cw-preview-shell .cm-preview-paper{max-width:100%;padding:22px 20px;font-size:12.6px;line-height:1.85;box-shadow:0 2px 8px rgba(16,41,77,.08);border:0;border-radius:4px}
.cw-preview-shell .cm-preview-paper h2{font-size:15px;margin:10px 0}
.cw-preview-shell .cm-preview-paper h3{font-size:12.5px;margin:10px 0 6px}
.cw-preview-shell .cm-preview-paper p{font-size:12.6px;line-height:1.85}
.cw-preview-shell .cm-preview-paper table{width:100%;font-size:10.8px}
.cw-preview-shell .cm-preview-paper th,.cw-preview-shell .cm-preview-paper td{padding:5px 4px}
.cw-file-list{font-size:12px}
.cw-file-table{display:flex;flex-direction:column}
.cw-file-row{display:grid;grid-template-columns:minmax(0,1.7fr) 52px 106px 72px;gap:8px;align-items:center;padding:8px 4px;border-bottom:1px solid #edf3fb;font-size:11.5px;color:#2c4667}
.cw-file-row>span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.cw-file-head{color:#7185a0;font-size:11px;background:#f5f9ff;border-radius:5px;padding:7px 6px;border-bottom:0;font-weight:500}
.cw-file-row a{color:#1677ff;text-decoration:none}
.cw-footer{display:flex;gap:8px;flex:0 0 auto;padding:10px 0 0;border-top:1px solid #e6eef9}
.cw-footer button{font-size:12.5px}
.cw-footer button.primary{flex:0 0 auto;min-width:104px}
.cw-plan-float{position:fixed;inset:0;background:rgba(11,32,60,.44);display:flex;align-items:flex-start;justify-content:center;padding:44px 16px;z-index:900;overflow:auto}
.cw-plan-dialog{background:#fff;border-radius:12px;width:min(880px,100%);padding:18px 20px 20px;box-shadow:0 18px 48px rgba(8,26,52,.28)}
.cw-plan-dialog-head{display:flex;justify-content:space-between;align-items:center;margin:0 0 12px}
.cw-plan-dialog-head h3{margin:0;font-size:16px;color:#132c4f}
.cw-plan-dialog-head button{border:0;background:none;font-size:16px;color:#7b8da6;cursor:pointer;line-height:1}
@media(max-width:1180px) {
  .cw-workbench{grid-template-columns:minmax(0,1fr)}
  .cw-right{position:static;max-height:none;height:auto}
  .cw-right-scroll{overflow:visible}
}
@media(max-width:600px) {
  .cw-workbench{grid-template-columns:minmax(0,1fr)}
  .cw-region-body,.cw-doc-modes,.cw-doc-fields,.cw-payment-pane{grid-template-columns:minmax(0,1fr)}
  .cw-head h1{font-size:19px}
  .cw-block{padding:13px 12px}
  .cw-block-head{margin-bottom:12px}
  .cw-footer{flex-wrap:wrap}
  .cw-footer button{flex:1 1 45%}
  .cw-file-row{grid-template-columns:minmax(0,1fr) 44px 70px}
  .cw-file-row>span:nth-child(3){display:none}
  .cw-preview-shell .cm-wizard-preview{max-height:none}
  .cw-plan-float{padding:16px 10px}
}
.cw-region-body .cm-goods-head,.cw-region-body .cm-goods-row{grid-template-columns:minmax(0,1.6fr) minmax(0,0.8fr) 42px 60px 66px 44px;gap:6px;padding:8px 6px;font-size:11.5px}
.cw-region-body .cm-goods-head span,.cw-region-body .cm-goods-row>*{min-width:0;overflow-wrap:anywhere}
.cw-region-body .cm-goods-row select,.cw-region-body .cm-goods-row input{font-size:12px;padding:6px;min-height:32px}
.cw-region-body .cm-goods-row>button{font-size:11px;padding:5px 4px;min-width:0;height:32px}
.cw-region-body .cm-goods-total{margin:8px 0 0;padding:9px 10px;border-radius:6px}
.cw-region-body .cm-goods-head span:last-child,.cw-region-body .cm-goods-row>button{text-align:center}
@media(max-width:900px) {
  .cw-region-body .cm-goods-head{display:none}
  .cw-region-body .cm-goods-row{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:10px;border:1px solid #dbe7f8;border-radius:7px;margin:8px 0;padding:10px;background:#fbfdff}
  .cw-region-body .cm-goods-row>label:first-child{grid-column:1/-1}
  .cw-region-body .cm-goods-row>[data-spec]{grid-column:1/-1;color:#6882a5;font-size:12px}
  .cw-region-body .cm-goods-row>button{grid-column:2;justify-self:end;width:auto;padding:6px 12px}
}
.cw-payment-pane .cm-payment-grid{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:10px}
.cw-payment-pane .cm-payment-grid label{margin:0;min-width:0}
.cw-payment-pane .cm-payment-grid input{min-width:0;width:100%;text-overflow:ellipsis;font-size:12px}
.cw-payment-pane .cm-payment-confirm{margin:0 0 8px;font-size:12px;line-height:1.5}
.cw-preview-shell .cm-preview-paper header{font-size:10.5px;gap:6px;flex-wrap:wrap}
.cw-preview-shell .cm-preview-paper header strong{white-space:nowrap}
.cw-doc-slot .cm-upload-area{padding:14px;border:1px dashed #93b9ed;background:#f5faff;border-radius:8px;margin:0}
.cw-doc-slot .cm-upload-area button{margin-top:2px}
.cw-doc-slot .cm-upload-area label{font-size:12px;color:#3a5580}
.cw-doc-slot .cm-upload-area input[type=file]{margin-top:6px;width:100%;font-size:12px}
@media(max-width:600px) {
  .cw-payment-pane .cm-payment-grid{grid-template-columns:minmax(0,1fr)}
}
.cw-context{position:relative;padding:12px 14px;border:1px solid #dbe4f0;border-radius:10px;background:#f7fafd}
.cw-context-row{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.cw-context-row+.cw-context-row{margin-top:8px}
.cw-context-label{flex:0 0 60px;font-size:12px;color:#64748b;letter-spacing:.02em}
.cw-chips{display:flex;flex-wrap:wrap;gap:6px}
.cw-chip{border:1px solid #cfdae8;background:#fff;color:#334155;border-radius:999px;padding:4px 11px;font-size:12.5px;line-height:1.5;cursor:pointer;transition:all .15s ease}
.cw-chip:hover:not(:disabled){border-color:#2f6fb3;color:#1e4e79}
.cw-chip.on{background:#1e4e79;border-color:#1e4e79;color:#fff;font-weight:600}
.cw-chip:disabled{opacity:.45;cursor:not-allowed}
.cw-context-note{margin:8px 0 0;font-size:12px;color:#64748b;line-height:1.6}
.cw-left>.cw-context{margin-bottom:12px}
.cw-source-dialog{width:min(720px,94vw)}
.cw-source-dialog-body{padding:2px 0 6px;max-height:min(52vh,440px);overflow:auto}
.cw-source-dialog-body .cm-source-search{margin-bottom:8px}
.cw-source-table table{width:100%;border-collapse:collapse;font-size:13px}
.cw-source-table th,.cw-source-table td{padding:6px 8px;border-bottom:1px solid #e6edf5;text-align:left;white-space:nowrap}
.cw-source-table tbody tr:hover{background:#f2f7fc}
@media (max-width:700px) {
  .cw-context{padding:10px 12px}
  .cw-context-label{flex:0 0 auto}
  .cw-chip{font-size:12px;padding:4px 9px}
}
.cw-preview-block{flex:1 1 auto;min-height:0;display:flex;flex-direction:column}
.cw-preview-block .cw-preview-shell{flex:1 1 auto;min-height:0;display:flex;flex-direction:column;border-top:0;padding-top:0}
.cw-preview-block .cw-preview-bar{margin-bottom:10px}
.cw-preview-block .cm-wizard-preview{flex:1 1 auto;min-height:340px;max-height:none}
.cw-right-scroll>.cw-block:last-child{flex:0 0 auto}
.cw-full-float{position:fixed;inset:0;z-index:80;display:flex;align-items:stretch;justify-content:flex-start;padding:16px 22px 16px 5vw;background:rgba(13,30,54,.46)}
.cw-full-dialog{display:flex;flex-direction:column;flex:1 1 auto;max-width:1180px;max-height:calc(100vh - 32px);background:#fff;border-radius:10px;box-shadow:0 20px 52px rgba(8,24,48,.34);overflow:hidden}
.cw-full-head{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:13px 18px;border-bottom:1px solid #e6eef8;background:#fbfdff}
.cw-full-head h2{margin:0;font-size:16px;color:#132c4f}
.cw-full-head p{margin:3px 0 0;font-size:12px;color:#7b8da6}
.cw-full-body{flex:1 1 auto;min-height:0;overflow:auto;padding:18px 22px 26px;background:#eaeff7}
.cw-full-body .cw-full-shell{display:block}
.cw-full-body .cm-wizard-preview{max-height:none;overflow:visible;background:transparent;border:0;padding:0}
.cw-full-body .cm-preview-paper{max-width:860px;margin:0 auto;padding:38px 44px;font-size:13px;line-height:1.9;border-radius:3px;box-shadow:0 4px 20px rgba(16,41,77,.12)}
.cw-full-body .cm-preview-paper h2{font-size:21px;margin:14px 0}
.cw-full-body .cm-preview-paper h3{font-size:14.5px;margin:16px 0 8px}
.cw-full-body .cm-preview-paper p{font-size:13px;line-height:1.9}
.cw-full-body .cm-preview-paper table{width:100%;font-size:12px}
.cw-full-body .cm-preview-paper th,.cw-full-body .cm-preview-paper td{padding:7px 8px}
.cw-full-body .cm-preview-paper header{font-size:12px}
@media (max-width:900px) {
  .cw-full-float{padding:8px}
  .cw-full-dialog{max-height:calc(100vh - 16px)}
  .cw-full-body{padding:10px}
  .cw-full-body .cm-preview-paper{padding:18px 16px;font-size:12px}
  .cw-preview-block .cm-wizard-preview{min-height:220px}
}
@media print {
  .cw-full-float{position:static;padding:0;background:#fff}
  .cw-full-dialog{box-shadow:none;max-width:none;max-height:none;border-radius:0}
  .cw-full-head{display:none}
  .cw-full-body{padding:0;background:#fff;overflow:visible}
  .cw-full-body .cm-preview-paper{box-shadow:none;border:0;max-width:none;padding:0}
  .qux-sidebar,.cw-footer,.cw-head,.cw-context{display:none!important}
}
.cm-side .cm-side-id{position:sticky;top:0;z-index:3;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:1px 8px;align-items:center;background:#fff;border:1px solid #dbe7f7;border-radius:8px;padding:10px 12px;margin:0 0 10px;box-shadow:0 8px 14px -12px rgba(20,50,90,.4)}
.cm-side .cm-side-id strong{grid-column:1;font-size:15px;color:#0f2f5c;letter-spacing:.2px}
.cm-side .cm-side-id span{grid-column:1;font-size:12px;color:#385a8b}
.cm-side .cm-side-id small{grid-column:1;font-size:11px;color:#7b91b0}
.cm-side .cm-side-id button{grid-column:2;grid-row:1/4;align-self:center;white-space:nowrap}
.cm-tpl-state{display:inline-block;margin:0 4px;padding:1px 8px;border-radius:10px;font-size:12px;font-weight:600;line-height:1.6}
.cm-clause-controls .cm-tpl-item summary small{margin-left:6px;font-weight:400;color:#5b6b80}
.cm-clause-controls .cm-tpl-item summary{display:flex;flex-wrap:wrap;align-items:center;gap:2px}
.cm-tpl-classify{border:1px dashed #b8cbe6;border-radius:8px;padding:10px 12px;margin:8px 0;background:#f7faff}
.cm-tpl-classify label{display:inline-flex;align-items:center;gap:6px;margin:0 12px 0 0}
.cm-template-editor label{min-width:0}
.pux-shell .pux-kpi .qux-icon{width:34px;height:34px;border-radius:9px;flex-shrink:0;font-size:15px}
.pux-shell .pux-table .qux-code{font-size:12px}
.pux-row-actions .qux-more summary{font-size:11px;color:#3878c9}
.pux-shell .qux-identity.pux-identity{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:0;padding:16px 6px;margin-top:12px}
.pux-shell .pux-receive-kpis .qux-kpi{padding:12px;min-height:78px}
@media(max-width:1280px) {
  .pux-shell .pux-kpi .qux-icon{width:29px;height:29px;font-size:13px}
}
@media(max-width:1200px) {
  .pux-shell .qux-identity.pux-identity{grid-template-columns:repeat(3,minmax(0,1fr));row-gap:14px}
}
.cw-doc-region-body{grid-template-columns:minmax(0,1fr)}
.cw-sub{grid-column:1/-1;border-top:1px solid #e9f0fa;padding-top:14px;margin-top:2px;min-width:0}
.cw-sub:first-child{border-top:0;padding-top:0;margin-top:0}
.cw-sub>h3{display:flex;align-items:center;gap:8px;font-size:13.5px;color:#132c4f;margin:0 0 10px;font-weight:600}
.cw-sub-body{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.cw-sub-body>*{min-width:0}
.cw-sub-body>label{margin:0!important}
.cw-sub-body>p,.cw-sub-body>section,.cw-sub-body>div,.cw-sub-body>.grid,.cw-sub-body>.cm-pay-summary,.cw-sub-body>.cm-tpl-match,.cw-sub-body>.cm-custom-editor,.cw-sub-body>details,.cw-sub-body>.cw-doc-slot,.cw-sub-body>.cw-doc-modes,.cw-sub-body>.cw-payment-pane,.cw-sub-body>.cw-footer,.cw-sub-body>.qux-note{grid-column:1/-1}
.cw-sub-body>.cw-footer{margin-top:4px;padding-top:12px}
.cm-pay-summary{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px 16px;background:#f7fbff;border:1px solid #e3eefb;border-radius:8px;padding:12px 14px}
.cm-pay-row{display:flex;flex-direction:column;gap:3px;min-width:0}
.cm-pay-row>span{font-size:11.5px;color:#7185a0}
.cm-pay-row>strong{font-size:12.8px;color:#16365f;font-weight:600;overflow-wrap:anywhere}
.cm-pay-summary .qux-note{grid-column:1/-1;margin:2px 0 0}
.cm-tpl-match{display:grid;gap:10px}
.cm-tpl-match>label{margin:0}
.cm-custom-tools{display:flex;gap:8px;align-items:center;flex-wrap:wrap;margin:0 0 10px}
.cm-custom-tools span{font-size:12px;color:#7185a0}
.cm-custom-list{display:grid;gap:10px}
.cm-custom-item{display:grid;grid-template-columns:26px minmax(0,1fr) auto;grid-template-areas:"seq title acts" "seq body acts";gap:6px 8px;border:1px solid #e2ecf9;border-radius:8px;padding:10px;background:#fff}
.cm-custom-seq{grid-area:seq;font-size:12px;color:#1677ff;font-weight:700;padding-top:9px;text-align:center}
.cm-custom-item input{grid-area:title;font-size:12.5px;font-weight:600}
.cm-custom-item textarea{grid-area:body;font-size:12px;line-height:1.6;resize:vertical;font-family:inherit}
.cm-custom-acts{grid-area:acts;display:flex;flex-direction:column;gap:4px}
.cm-custom-acts button{font-size:11px;padding:4px 8px;min-height:0;white-space:nowrap}
.cm-paper-head{display:flex;justify-content:space-between;align-items:center;gap:10px;flex-wrap:wrap;color:#9b5720}
.cm-paper-badge{display:inline-block;padding:2px 8px;border-radius:4px;background:#fff3e2;border:1px solid #f3d8b4;font-size:11.5px;font-weight:700;color:#9b5720}
.cm-paper-no{margin:2px 0 10px;font-size:12.5px;color:#385a8b;white-space:normal!important}
.cm-paper-parties{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:0 0 10px}
.cm-paper-party{padding:10px 12px;background:#f8fbff;border:1px solid #e6effa;border-radius:7px}
.cm-paper-party p{margin:0;font-size:12px;line-height:1.7;color:#25456f;overflow-wrap:anywhere;white-space:normal!important}
.cm-paper-total{margin:8px 0;font-size:12.8px;color:#0f2f5c;white-space:normal!important}
.cm-paper-sign{margin:16px 0 0;padding-top:12px;border-top:1px dashed #cbd9ee}
.cm-paper-sign p{margin:0 0 6px;font-size:12px;color:#25456f;white-space:normal!important}
.cm-paper-foot{margin:12px 0 0;font-size:11px;color:#8ca0bb;white-space:normal!important}
.cw-doc-slot .cm-tpl-match{margin-bottom:10px}
@media(max-width:1180px) {
  .cw-sub-body,.cm-pay-summary,.cm-paper-parties{grid-template-columns:minmax(0,1fr)}
}
@media(max-width:760px) {
  .cw-sub-body>.cw-footer{position:sticky;bottom:0;background:#fff;z-index:3;padding-bottom:6px}
  .cm-custom-item{grid-template-columns:22px minmax(0,1fr);grid-template-areas:"seq title" "seq body" "seq acts"}
  .cm-custom-acts{flex-direction:row;justify-content:flex-end;gap:6px}
}
.cw-sub-body>.cm-wizard-plan{order:0}
.cw-sub-body>.cw-footer{order:9}
.cw-doc-modes{grid-template-columns:repeat(3,minmax(0,1fr))}
@media(max-width:760px) {
  .cw-doc-modes{grid-template-columns:minmax(0,1fr)}
}
.qtx-head{display:flex;justify-content:space-between;align-items:flex-start;gap:14px;flex-wrap:nowrap;margin-bottom:14px}
.qtx-head>div:first-child{min-width:0}
.qtx-head .cm-actions{flex:0 0 auto;flex-wrap:nowrap}
.qtx-head h1{font-size:22px;margin:0 0 6px}
.qtx-head p{font-size:12px;color:#6b86a8;margin:0;line-height:1.6;max-width:640px}
.qtx-wrap{display:grid;grid-template-columns:minmax(0,1fr) 330px;gap:14px;align-items:start}
.qtx-main,.qtx-side{min-width:0}
.qtx-side{display:grid;gap:12px}
.qtx-cards{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:8px;margin-bottom:12px}
.qtx-card{position:relative;display:flex;flex-direction:column;gap:6px;background:white;border:1px solid #e2edfb;border-radius:8px;padding:13px 10px 12px;text-align:left;cursor:pointer;min-height:96px;min-width:0}
.qtx-card:hover{border-color:#9cc6ff}
.qtx-card.active{border-color:#1677ff;box-shadow:inset 0 0 0 1px #1677ff;background:#f6faff}
.qtx-card-code{font-size:10px;color:#7d97b6;letter-spacing:.02em}
.qtx-card strong{font-size:12px;line-height:1.45;color:#1f3552;font-weight:600;padding-right:14px;overflow-wrap:anywhere}
.qtx-card em{position:absolute;right:9px;bottom:8px;font-style:normal;font-size:19px;font-weight:700;color:#1677ff;line-height:1}
.qtx-query{margin-bottom:12px;padding:12px}
.qtx-query .cm-filters{display:grid;grid-template-columns:minmax(170px,2fr) minmax(105px,1fr) minmax(105px,1fr) minmax(125px,1fr) auto auto;gap:10px;align-items:end;margin:0}
.qtx-list{padding:0 10px 10px}
.qtx-table{width:100%;border-collapse:collapse;font-size:11px;table-layout:fixed}
.qtx-table th{background:#eff6ff;color:#4d6d9b;font-weight:500;text-align:left;padding:9px 6px;border-bottom:1px solid #e4edfa}
.qtx-table td{padding:8px 6px;border-bottom:1px solid #eef4fc;vertical-align:top;overflow-wrap:anywhere;line-height:1.5}
.qtx-table th:nth-child(1){width:23%}
.qtx-table th:nth-child(2){width:14%}
.qtx-table th:nth-child(3){width:13%}
.qtx-table th:nth-child(4){width:12%}
.qtx-table th:nth-child(5){width:8%}
.qtx-table th:nth-child(6){width:5%}
.qtx-table th:nth-child(7){width:11%}
.qtx-table th:nth-child(8){width:14%}
.qtx-table .qtx-nowrap{white-space:nowrap;font-variant-numeric:tabular-nums}
.qtx-table tbody tr{cursor:pointer}
.qtx-table tbody tr:hover{background:#f8fbff}
.qtx-table tbody tr.active{background:#f2f8ff;box-shadow:inset 2px 0 0 #1677ff}
.qtx-table td strong{font-size:11px;display:block;font-weight:600;color:#1f3552;line-height:1.45}
.qtx-table td small{display:block;color:#8197b2;font-size:9px;margin-top:3px;line-height:1.4;letter-spacing:0}
.qtx-acts{display:flex;flex-wrap:wrap;gap:4px;align-items:center}
.qtx-acts>button,.qtx-acts>a{font-size:11px;padding:4px 7px;min-height:0;line-height:1.4}
.qtx-more{position:relative}
.qtx-more>summary{list-style:none;cursor:pointer;font-size:13px;color:#3978c9;padding:3px 7px;border-radius:5px}
.qtx-more>summary::-webkit-details-marker{display:none}
.qtx-more>div{position:absolute;right:0;top:100%;z-index:25;background:white;border:1px solid #dbe7f7;border-radius:7px;box-shadow:0 8px 20px rgba(23,58,102,.14);padding:6px;display:flex;flex-direction:column;gap:4px;min-width:132px}
.qtx-more>div button,.qtx-more>div a{text-align:left;font-size:11px;padding:5px 7px;min-height:0}
.qtx-badge{display:inline-block;padding:3px 7px;border-radius:20px;font-size:11px;white-space:nowrap}
.qtx-warn{color:#b0521a;font-style:normal}
.qtx-preview{padding:12px}
.qtx-preview-head{display:flex;justify-content:space-between;align-items:center;gap:8px;margin-bottom:10px}
.qtx-preview-head h2{font-size:14px;margin:0}
.qtx-preview-head button{font-size:11px;padding:4px 8px;min-height:0}
.qtx-paper{background:#fbfcfe;border:1px solid #e6eefa;border-radius:6px;padding:14px 12px;max-height:340px;overflow:auto;font-size:11px;line-height:1.75;color:#33475f}
.qtx-paper.full{max-height:none}
.qtx-paper h4{font-size:11px;margin:11px 0 4px;color:#1f3552}
.qtx-paper h4:first-child{margin-top:0}
.qtx-paper p{margin:0 0 4px;white-space:pre-wrap}
.qtx-info{padding:12px}
.qtx-info h3{font-size:13px;margin:0 0 10px}
.qtx-dl{display:grid;grid-template-columns:74px minmax(0,1fr);gap:7px 8px;font-size:11px;margin:0}
.qtx-dl dt{color:#7891ae}
.qtx-dl dd{margin:0;overflow-wrap:anywhere}
.qtx-map{font-size:11px;color:#5d7899;background:#f4f9ff;border-radius:5px;padding:8px 9px;margin:10px 0 0;line-height:1.6}
.qtx-form{padding:14px}
.qtx-form-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}
.qtx-form-grid>label{display:flex;flex-direction:column;gap:6px;font-size:12px;color:#38558a;min-width:0}
.qtx-form-grid input,.qtx-form-grid select{width:100%}
.qtx-span2{grid-column:1/-1}
.qtx-req{font-size:10px;color:#94a9c4;font-weight:400}
.qtx-upload{padding:0}
.cm-tpl-type{font-style:normal;color:#2f6bb5;background:#eef5ff;border-radius:4px;padding:1px 5px;font-size:10px}
@media(max-width:1180px) {
  .qtx-wrap{grid-template-columns:minmax(0,1fr)}
  .qtx-cards{grid-template-columns:repeat(3,minmax(0,1fr))}
  .qtx-query .cm-filters{grid-template-columns:1fr 1fr 1fr}
}
@media(max-width:760px) {
  .qtx-head h1{font-size:19px}
  .qtx-head p{font-size:11px}
  .qtx-cards{grid-template-columns:1fr 1fr;gap:7px}
  .qtx-card{min-height:82px;padding:10px 8px}
  .qtx-card strong{font-size:11px}
  .qtx-card em{font-size:16px;right:7px;bottom:7px}
  .qtx-query .cm-filters{grid-template-columns:1fr 1fr;gap:8px}
  .qtx-query .cm-filters>label:first-child{grid-column:1/-1}
  .qtx-table thead{display:none}
  .qtx-table,.qtx-table tbody,.qtx-table td{display:block;width:auto}
  .qtx-table tr{display:grid;grid-template-columns:1fr 1fr;gap:4px 8px;padding:11px 0;border-bottom:1px solid #e6eefb}
  .qtx-table td{border:0;padding:2px 0;min-width:0}
  .qtx-table td:first-child,.qtx-table td:last-child{grid-column:1/-1}
  .qtx-table td:last-child{text-align:left}
  .qtx-more{display:inline-block}
  .qtx-more>div{position:static;box-shadow:none;min-width:0;border:0;padding:4px 0;flex-direction:row;flex-wrap:wrap}
  .qtx-form-grid{grid-template-columns:1fr}
  .qtx-paper{max-height:260px}
  .qtx-dl{grid-template-columns:66px minmax(0,1fr)}
  .qtx-acts>button,.qtx-acts>a{min-height:32px}
}
.cw-src{grid-column:1/-1;display:grid;grid-template-columns:repeat(auto-fit,minmax(132px,1fr));gap:10px;background:#f6faff;border:1px solid #dfebfa;border-radius:8px;padding:10px 12px}
.cw-src-row{display:flex;flex-direction:column;gap:3px;min-width:0}
.cw-src-row>span{font-size:11px;color:#7b8da6}
.cw-src-row>strong{font-size:12.5px;color:#16365f;overflow-wrap:anywhere}
.cw-src-row>em{font-style:normal;font-size:10.5px;color:#1a8a5a;background:#eaf7f0;border-radius:9px;padding:1px 7px;align-self:flex-start}
.cw-biz-note{display:block;margin-top:4px;font-size:11px;color:#8a9ab2}
.cw-doc-region-body{grid-template-columns:minmax(0,1fr);display:block!important}
.cw-doc-region-body>.cw-sub{margin:0 0 10px}
.cw-sub{border:1px solid #eaf1fb;border-radius:8px;padding:12px 12px 8px;background:#fcfdff}
.cw-sub>h3{font-size:12.5px;color:#16365f;margin:0 0 10px;display:flex;align-items:center;gap:6px}
.cw-sub>h3::before{content:'';width:3px;height:12px;background:#1677ff;border-radius:2px}
.cw-sub-body{min-width:0}
.cw-tpl-card{border:1px solid #bcd8ff;background:#f4f9ff;border-radius:8px;padding:10px 12px}
.cw-tpl-card-head{display:flex;flex-wrap:wrap;align-items:center;gap:8px}
.cw-tpl-badge{background:#1677ff;color:#fff;border-radius:9px;font-size:10.5px;padding:2px 8px}
.cw-tpl-state{font-style:normal;background:#eaf7f0;color:#1a8a5a;border-radius:9px;font-size:10.5px;padding:2px 8px}
.cw-tpl-card-head>strong{font-size:13px;color:#10294d}
.cw-tpl-meta{display:flex;flex-wrap:wrap;gap:8px;margin:6px 0 4px;font-size:11px;color:#5b7392}
.cw-tpl-note{margin:0 0 8px;font-size:11.5px;color:#7185a0}
.cw-tpl-none{border:1px dashed #e0b978;background:#fffdf5;border-radius:8px;padding:10px 12px;font-size:12px;color:#8a5a12}
.cw-tpl-none>strong{display:block;margin-bottom:4px;color:#7a4d0a}
.cw-tpl-none>p{margin:4px 0}
.cw-tpl-list{margin-top:8px;display:flex;flex-direction:column;gap:6px}
.cw-tpl-radio{display:flex;gap:8px;align-items:flex-start;border:1px solid #e2ecf9;border-radius:7px;padding:8px 10px;background:#fff;font-size:12px}
.cw-tpl-radio.on{border-color:#1677ff;background:#f5faff}
.cw-tpl-radio small{display:block;color:#7185a0;margin-top:3px;font-size:11px}
.cw-special{margin-top:10px;border:1px solid #e6eef9;border-radius:8px;background:#fbfdff}
.cw-special>summary{cursor:pointer;padding:10px 12px;font-size:12.5px;color:#1762b1;font-weight:600;display:flex;align-items:center;justify-content:space-between;gap:10px;list-style:none}
.cw-special>summary::-webkit-details-marker{display:none}
.cw-special-trigger{font-size:12px;font-weight:600;color:#1762b1;background:#eef5ff;border:1px solid #cfe1f8;border-radius:6px;padding:3px 10px;cursor:pointer;white-space:nowrap}
.cw-special-trigger:hover{background:#e2eefe}
.cw-special-body{padding:0 12px 12px}
.cw-special-acts{display:flex;gap:8px;flex-wrap:wrap;margin:8px 0}
.cw-special-diff{border-top:1px dashed #dbe5f3;padding-top:8px;font-size:12px;color:#3a5580}
.cw-diff-head{margin:0 0 6px;font-size:12px;color:#132c4f}
.cw-diff-list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:4px}
.cw-diff-list li{display:flex;gap:6px;font-size:11.5px;align-items:baseline}
.cw-diff-list b{flex:0 0 34px;font-weight:600;border-radius:6px;text-align:center;font-size:10.5px;padding:1px 0}
.cw-diff-list .add b{background:#eaf7f0;color:#1a8a5a}
.cw-diff-list .mod b{background:#fff4e6;color:#b96a17}
.cw-diff-list .del b{background:#fdecec;color:#b3261e}
.cw-missing{border:1px solid #f0d8a8;background:#fffdf5;border-radius:8px;padding:9px 11px;margin:0 0 10px;font-size:12px;color:#8a5a12}
.cw-missing>strong{display:block;margin-bottom:4px}
.cw-missing ul{margin:0;padding-left:18px}
.cw-missing li{margin:2px 0}
.cw-other-terms{margin-top:8px;border-top:1px dashed #e6eef9;padding-top:8px}
.cw-other-terms>summary{cursor:pointer;font-size:12px;color:#1762b1}
.cw-foot{grid-column:1/-1;display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end;margin-top:2px}
@media(max-width:760px) {
  .cw-src{grid-template-columns:minmax(0,1fr)}
  .cw-foot{justify-content:stretch}
  .cw-foot .cw-footer{width:100%}
}
.cw-head-meta{display:none}
.cw-head h1{font-size:21px;margin:0 0 2px}
@media (min-width:1180px) {
  .cw-workbench{grid-template-columns:minmax(0,1fr) minmax(300px,.5fr);gap:18px}
}
@media (min-width:900px) {
  .cw-region[data-cw-region="1"] .cw-region-body{grid-template-columns:repeat(3,minmax(0,1fr));gap:12px 14px}
}
.cw-region[data-cw-region="1"] .cw-region-body>.cw-src{grid-column:1/-1}
.cw-num-field{display:block;min-width:0}
.cw-num-field>input[readonly]{background:#f5f8fd;color:#54709a;border-color:#e6eef9;cursor:default}
.cw-num-field>small{display:block;margin-top:4px;font-size:11px;color:#93a7c1;line-height:1.4}
.cw-region[data-cw-region="2"]{position:relative}
.cw-region[data-cw-region="2"] .cw-block-head{padding-right:112px}
.cw-region[data-cw-region="2"] .cw-add-goods{position:absolute;top:16px;right:18px;background:#1677ff;color:#fff;border:0;border-radius:6px;padding:8px 14px;font-size:12.5px;font-weight:600;cursor:pointer;white-space:nowrap}
.cw-region[data-cw-region="2"] .cw-add-goods:hover{background:#0f6ae0}
/* 单行 8 字段版式只在 >900 用：768 平板下这一套会把「商品名称」压到 95px，
   而两行版式（名称/规格各占整行）本来就是为窄屏准备的，断点与订单商品表统一到 900。 */
@media (min-width:901px) {
  .cw-region-body .cm-goods-head,.cw-region-body .cm-goods-row{grid-template-columns:32px minmax(0,1.45fr) minmax(0,.8fr) 52px 66px 78px 44px;gap:6px}
}
.cw-region-body .cm-goods-head span{font-size:11.5px;color:#5b7392;font-weight:600;white-space:nowrap}
.cw-region-body .cm-goods-head span:nth-child(5),.cw-region-body .cm-goods-head span:nth-child(6){text-align:right}
.cw-region-body .cm-goods-row .cm-goods-seq{font-size:12px;color:#5b7392;display:block;text-align:center}
.cw-region-body .cm-goods-row [data-line-amount]{text-align:right;font-variant-numeric:tabular-nums;font-size:12px;color:#132c4f}
.cw-region-body .cm-goods-row>button.cw-line-del{background:none;border:0;color:#e0453a;font-size:12px;padding:4px 2px;min-width:0;height:auto;cursor:pointer;white-space:nowrap}
.cw-region-body .cm-goods-row>button.cw-line-del:hover{text-decoration:underline}
.cw-region-body .cm-goods-total{display:flex;align-items:baseline;gap:12px;background:transparent;border:0;border-top:1px solid #eef3fa;border-radius:0;padding:12px 4px;margin:4px 0 0;text-align:left}
.cw-region-body .cm-goods-total>span{font-size:12.5px;color:#5b7392;font-weight:500}
.cw-region-body .cm-goods-total>strong{font-size:19px;color:#1677ff;font-weight:700;font-variant-numeric:tabular-nums}
.cw-region-body .cm-goods-total>em{font-size:12px;color:#5b7392;font-style:normal}
.cw-region-body .cm-goods-total:empty{display:none}
@media (min-width:900px) {
  .cw-payment-pane .cm-pay-summary{grid-template-columns:minmax(0,1.42fr) minmax(0,.86fr) minmax(0,1.16fr) minmax(0,1.14fr);gap:12px 14px}
  .cw-payment-pane .cm-pay-summary .cm-pay-row:nth-child(4){grid-column:1/span 3}
  .cw-payment-pane .cm-pay-summary .cm-pay-row:nth-child(5){grid-column:4;grid-row:1/span 2}
}
.cw-payment-pane .cm-pay-summary{align-items:start}
.cw-payment-pane .cm-pay-summary .cm-pay-row{display:block;gap:0}
.cw-payment-pane .cm-pay-summary .cm-pay-row>span{display:block;font-size:11.5px;color:#7185a0;margin:0 0 5px;font-weight:500}
.cw-payment-pane .cm-pay-summary .cm-pay-row>strong{display:block;font-size:12.5px;color:#132c4f;font-weight:600;background:#fff;border:1px solid #e2eaf5;border-radius:6px;padding:8px 10px;min-height:34px;overflow-wrap:anywhere}
.cw-payment-pane .cm-pay-summary .cm-pay-row:nth-child(5){background:#eef5ff;border:1px solid #d5e6fb;border-radius:8px;padding:10px 12px}
.cw-payment-pane .cm-pay-summary .cm-pay-row:nth-child(5)>span{color:#1762b1;font-weight:700;margin-bottom:6px}
.cw-payment-pane .cm-pay-summary .cm-pay-row:nth-child(5)>strong{background:none;border:0;padding:0;min-height:0;font-weight:400;color:#3e6396;font-size:11.8px;line-height:1.75}
.cw-payment-pane .cm-pay-summary .cw-lock{display:inline-block;margin-left:6px;font-size:10.5px;color:#1a7f5a;background:#e8f7f0;border-radius:9px;padding:1px 7px;font-style:normal}
.cw-payment-pane .cm-pay-summary .qux-note{grid-column:1/-1;margin:2px 0 0;font-size:11.5px;color:#9aabc0;line-height:1.7}
.cw-payment-pane .cm-pay-summary.cw-pay-empty{display:block}
.cw-payment-pane .cw-other-terms{border-top:1px solid #eef3fa;padding-top:10px;margin-top:2px}
.cw-payment-pane .cw-other-terms>summary{cursor:pointer;color:#1762b1;font-size:12.5px;font-weight:600;list-style:none}
.cw-payment-pane .cw-other-terms>summary::-webkit-details-marker{display:none}
.cw-payment-pane .cw-other-terms[open]>summary{margin-bottom:10px}
.cw-doc-modes{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:0 0 14px}
.cw-doc-mode{padding:13px 14px;border-radius:8px;align-items:center}
.cw-doc-mode.selected{box-shadow:0 0 0 1px rgba(22,119,255,.25)}
.cw-doc-mode strong{font-size:12.8px}
.cw-doc-mode.selected strong{color:#1762b1}
.cw-tpl-card{background:#f7fafd;border:1px solid #e6eef9;border-radius:8px;padding:12px 14px;margin:0 0 6px}
.cw-tpl-card-head{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.cw-tpl-card-head>strong{font-size:12.8px;color:#132c4f}
.cw-tpl-badge{font-size:11.5px;color:#7185a0;font-weight:400}
.cw-tpl-state{font-size:10.5px;color:#127a52;background:#e6f6ee;border-radius:9px;padding:2px 8px;font-style:normal;font-weight:600}
.cw-tpl-change{margin-left:auto;background:#fff;border:1px solid #d7e4f5;border-radius:6px;color:#1762b1;font-size:12px;font-weight:600;padding:6px 12px;cursor:pointer;white-space:nowrap}
.cw-tpl-change:hover{border-color:#1677ff}
.cw-tpl-meta{display:flex;flex-wrap:wrap;gap:4px 16px;margin:8px 0 0;font-size:11.5px;color:#7b8da6}
.cw-tpl-meta>span{white-space:nowrap}
.cw-tpl-note{margin:8px 0 0;font-size:11.5px;color:#9aabc0;line-height:1.7}
.cw-footer{justify-content:flex-end;align-items:center;border-top:1px solid #eef3fa;padding-top:12px;margin-top:2px}
.cw-footer [data-cm-list]{display:none}
.cw-footer button[type=submit],.cw-footer button.primary{min-width:112px}
.cw-sub>h3{font-size:13px;color:#132c4f;margin:16px 0 10px;font-weight:600}
.cw-sub:first-child>h3{margin-top:0}
.cw-preview-tabs{display:flex;gap:6px;border-bottom:1px solid #e8eff9;margin:10px 0 0}
.cw-preview-tab{background:none;border:0;padding:6px 12px 8px;font-size:12.5px;color:#7b8da6;cursor:pointer;position:relative;border-radius:6px 6px 0 0}
.cw-preview-tab:hover{color:#1762b1}
.cw-preview-tab.active{color:#1677ff;font-weight:600;background:#f2f7ff}
.cw-preview-tab.active::after{content:'';position:absolute;left:0;right:0;bottom:-1px;height:2px;background:#1677ff;border-radius:2px}
.cw-preview-shell{border-top:0;padding-top:12px}
.cw-preview-foot{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:10px 2px 0}
.cw-preview-foot>span{font-size:11.5px;color:#9aabc0}
.cw-preview-foot .cw-full-link{background:none;border:0;color:#1762b1;font-size:12px;font-weight:600;cursor:pointer;padding:4px 2px;white-space:nowrap}
.cw-preview-foot .cw-full-link:hover{text-decoration:underline}
.cw-preview-note{background:#f2f7ff;border:1px solid #e0ecfb}
.cw-preview-note .cw-note-head{display:flex;align-items:center;gap:8px;margin:0 0 8px}
.cw-preview-note .cw-note-i{width:18px;height:18px;border-radius:50%;background:#1677ff;color:#fff;font-size:11px;display:grid;place-items:center;font-weight:700;flex:0 0 18px}
.cw-preview-note .cw-note-head strong{font-size:13px;color:#132c4f}
.cw-preview-note ol{margin:0;padding-left:16px;color:#5b7392;font-size:11.8px;line-height:1.95}
.cw-preview-note ol li{margin:0}
@media (max-width:700px) {
  .cw-region-body .cm-goods-row>.cm-goods-seq{display:none}
  .cw-region-body .cm-goods-row>label:first-of-type{grid-column:1/-1}
  .cw-region[data-cw-region="2"] .cw-block-head{padding-right:0}
  .cw-region[data-cw-region="2"] .cw-add-goods{position:static;display:block;width:100%;margin:10px 0 0}
  .cw-region-body .cm-goods-total{flex-wrap:wrap;gap:6px 10px}
  .cw-region-body .cm-goods-total>strong{font-size:17px}
  .cw-preview-tabs{gap:2px}
  .cw-tpl-meta{flex-direction:column;gap:2px}
  .cw-tpl-change{margin-left:0}
  .cw-footer{justify-content:stretch}
}
.cw-payment-pane{grid-template-columns:minmax(0,1fr)}
.cw-payment-pane>[data-cw-pay-summary],.cw-payment-pane>[data-cw-pay-plan]{grid-column:1/-1}
.cw-region[data-cw-region="1"] .cm-contract-clause-picker{order:10;grid-column:1/-1;margin:0;padding:10px 12px;background:#f7fafd;border:1px solid #e6eef9;border-radius:8px}
.cw-region[data-cw-region="1"] .cm-contract-clause-picker>summary{font-size:12.5px;color:#1762b1}
.cw-preview-shell .cm-preview-paper table{table-layout:fixed;width:100%;font-size:10.4px}
.cw-preview-shell .cm-preview-paper th,.cw-preview-shell .cm-preview-paper td{white-space:normal;overflow-wrap:anywhere}
.cw-preview-shell .cm-preview-paper{padding:18px 16px}
.cw-preview-foot>span[data-cw-page-info]{display:none}
.cw-preview-foot{justify-content:flex-end}
.cw-region[data-cw-region="1"] .cw-biz-note{display:none}
.cw-region[data-cw-region="1"] .cm-contract-clause-picker{order:10;grid-column:1/-1;margin:0;padding:0;background:none;border:0}
.cw-region[data-cw-region="1"] .cm-contract-clause-picker:empty{display:none}
.cw-region[data-cw-region="1"] .cm-contract-clause-picker details{padding:8px 0;border-top:1px solid #eef3fa}
.cw-region[data-cw-region="1"] .cm-contract-clause-picker summary{font-size:12.5px;color:#1762b1;cursor:pointer}
.cw-sub>h3{border-left:0;padding-left:0}
@media (min-width:1180px) {
  .cw-workbench{grid-template-columns:minmax(0,1fr) minmax(300px,.56fr);gap:18px}
}
.cw-preview-shell .cm-preview-paper{padding:14px 12px}
.cw-preview-shell .cm-preview-paper table{font-size:9.6px}
.cw-preview-shell .cm-preview-paper th,.cw-preview-shell .cm-preview-paper td{padding:3px 2px;line-height:1.35;text-align:center}
.cw-preview-shell .cm-preview-paper p{font-size:11.8px;line-height:1.8}
.cw-preview-shell .cm-preview-paper h2{font-size:14px}
.cw-preview-shell .cm-preview-paper h3{font-size:12px}
.cw-tpl-card .cw-tpl-badge{background:none;border:0;padding:0;border-radius:0;color:#7185a0;font-weight:400;font-size:11.5px}
.cw-tpl-card .cw-tpl-state{margin-left:2px}
@media (max-width:899px) {
  .cw-region[data-cw-region="1"] .cw-region-body{grid-template-columns:minmax(0,1fr)!important}
  .cw-region[data-cw-region="1"] .cw-region-body>*{grid-column:1/-1!important}
}
.cm-shell .cm-home-head{margin-bottom:14px}
.cm-shell .cm-home-head h1{font-size:22px;letter-spacing:.2px}
.cm-shell .cm-home-head p{color:#6e86a9;font-size:12px;margin-top:6px}
.cm-stats{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:10px;margin-bottom:14px}
.cm-stat{display:flex;align-items:center;gap:9px;text-align:left;background:#fff;border:1px solid #e3edfa;border-radius:9px;padding:12px 10px;min-height:84px;min-width:0;cursor:pointer;transition:box-shadow .16s,border-color .16s}
.cm-stat:hover{border-color:#b9d6fb;box-shadow:0 6px 16px -12px rgba(16,70,140,.5)}
.cm-stat.active{border-color:#0876ff;box-shadow:0 0 0 1px #0876ff inset}
.cm-stat.danger .cm-stat-i{background:#fdecec;color:#d9363e}
.cm-stat.danger .cm-stat-b strong{color:#d9363e}
.cm-shell .cm-layout.cm-home-layout{grid-template-columns:minmax(0,3.05fr) minmax(292px,1fr);gap:14px}
.cm-home-list{padding:0;overflow:hidden}
.cm-shell .cm-home-list .cm-tabs{padding:0 10px;gap:2px}
.cm-q{padding:12px 14px 4px;border-bottom:1px solid #edf3fc}
.cm-q-row{display:grid;grid-template-columns:minmax(150px,1.9fr) minmax(96px,1fr) minmax(96px,1fr) minmax(96px,1fr) minmax(104px,1fr) minmax(92px,.8fr) auto;gap:9px;align-items:end}
.cm-q label{min-width:0;font-size:11px;color:#5b7799}
.cm-q input,.cm-q select{width:100%;font-size:12px;padding:7px 8px;border:1px solid #dbe7f7;border-radius:6px;background:#fff;color:#12325c}
.cm-q-act{display:flex;gap:7px;align-items:center}
.cm-q-act button{min-height:33px;font-size:12px;padding:0 13px}
.cm-q-adv{margin:10px 0 8px}
.cm-q-adv>summary{font-size:12px;color:#3978c9;cursor:pointer;list-style:none}
.cm-q-adv>summary::-webkit-details-marker{display:none}
.cm-q-adv>summary:before{content:'⌄';display:inline-block;margin-right:5px;transition:transform .15s}
.cm-q-adv[open]>summary:before{transform:rotate(180deg)}
.cm-q-row2{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px;margin-top:10px;padding-top:10px;border-top:1px dashed #e6eefb}
.cm-tbwrap{overflow-x:auto;padding:0 6px}
.cm-tb{width:100%;min-width:742px;table-layout:fixed;border-collapse:collapse;font-size:11px}
.cm-tb th,.cm-tb td{padding:10px 6px;text-align:left;vertical-align:top;border-bottom:1px solid #e8f0fb;white-space:normal;overflow-wrap:anywhere;color:#1c3a60}
.cm-tb th{background:#eff6ff;color:#52739b;font-weight:500;font-size:11px;white-space:nowrap}
.cm-tb tbody tr{cursor:pointer}
.cm-tb tbody tr:hover{background:#f7fbff}
.cm-tb tbody tr.active{background:#eef6ff;box-shadow:inset 3px 0 0 #0876ff}
.cm-tb td small{display:block;color:#7b91b0;font-size:10px;margin-top:4px;line-height:1.5}
.cm-tb th:nth-child(1),.cm-tb td:nth-child(1){width:19%}
.cm-tb th:nth-child(2),.cm-tb td:nth-child(2){width:10%}
.cm-tb th:nth-child(3),.cm-tb td:nth-child(3){width:12%}
.cm-tb th:nth-child(4),.cm-tb td:nth-child(4){width:9%}
.cm-tb th:nth-child(5),.cm-tb td:nth-child(5){width:9.5%}
.cm-tb th:nth-child(6),.cm-tb td:nth-child(6){width:7.5%}
.cm-tb th:nth-child(7),.cm-tb td:nth-child(7){width:16%}
.cm-tb th:nth-child(8),.cm-tb td:nth-child(8){width:8.5%}
.cm-tb th:nth-child(9),.cm-tb td:nth-child(9){width:5.5%}
.cm-code{border:0;background:none;padding:0;color:#1266d6;font-size:11.5px;font-weight:600;text-align:left;cursor:pointer;letter-spacing:.2px}
.cm-link{border:0;background:none;padding:0;color:#1266d6;font-size:11px;cursor:pointer}
.cm-link:hover{text-decoration:underline}
.cm-st4{display:grid;grid-template-columns:1fr 1fr;gap:3px 6px}
.cm-st4i{display:block;min-width:0;line-height:1.35}
.cm-st4i em{font-style:normal;color:#8ba0bb;font-size:9.5px;margin-right:3px}
.cm-st4i b{font-weight:500;color:#26456e;font-size:10.5px}
.cm-pill{display:inline-block;padding:2px 7px;border-radius:20px;background:#eef4fd;color:#4a6a93;font-size:10.5px;white-space:nowrap;max-width:100%;overflow:hidden;text-overflow:ellipsis;vertical-align:middle}
.cm-pill.hi{background:#eaf3ff;color:#1266d6}
.cm-pill.warn{background:#fff2e8;color:#c96a10}
.cm-pill.mute{background:#f1f3f7;color:#7b8ba2}
.cm-pill.danger{background:#fdecec;color:#d9363e}
.cm-pg{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:11px 14px;border-top:1px solid #edf3fc;font-size:11.5px;color:#6e86a9}
.cm-pg-btns{display:flex;align-items:center;gap:4px}
.cm-pg-btns button{min-width:28px;min-height:28px;padding:0 8px;font-size:11.5px;border:1px solid #dbe7f7;background:#fff;border-radius:6px;color:#2c4f7d}
.cm-pg-btns button.active{border-color:#0876ff;background:#0876ff;color:#fff}
.cm-pg-btns button[disabled]{opacity:.45;cursor:not-allowed}
.cm-pg-gap{color:#9db2cb;padding:0 2px}
.cm-side2{display:flex;flex-direction:column;gap:14px;min-width:0}
.cm-hcard{padding:13px 13px 11px}
.cm-hcard-head{display:flex;align-items:center;justify-content:space-between;gap:8px;border-bottom:1px solid #edf3fc;padding-bottom:9px;margin-bottom:10px}
.cm-hcard-head h2{font-size:14px;color:#0f2f5c;margin:0}
.cm-pills{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:9px}
.cm-hname{font-size:13.5px;color:#12325c;line-height:1.45;margin:0 0 10px}
.cm-shell .cm-fx{display:grid;grid-template-columns:76px minmax(0,1fr);gap:5px 8px;margin:0 0 10px;font-size:11px}
.cm-shell .cm-fx dt{color:#8197b2;font-size:10.5px}
.cm-shell .cm-fx dd{margin:0;color:#1c3a60;overflow-wrap:anywhere}
.cm-shell .cm-side2 .cm-states{grid-template-columns:1fr 1fr;gap:6px;margin:8px 0 10px}
.cm-shell .cm-side2 .cm-states>div{padding:7px 6px;background:#f4f8ff}
.cm-shell .cm-side2 .cm-states small{font-size:10px;margin-bottom:4px}
.cm-shell .cm-side2 .cm-states .qux-badge{font-size:10px;padding:3px 5px;white-space:normal;overflow-wrap:anywhere}
.cm-hactions{display:flex;flex-wrap:wrap;gap:7px;align-items:center;margin-bottom:8px}
.cm-hactions button,.cm-hactions a{font-size:11.5px;min-height:30px;padding:0 11px;display:inline-flex;align-items:center;border-radius:6px;border:1px solid #dbe7f7;background:#fff;color:#2c4f7d;text-decoration:none}
.cm-hactions button.primary{background:#0876ff;border-color:#0876ff;color:#fff}
.cm-next{font-size:11px;color:#4a6a93}
.cm-next>summary{cursor:pointer;color:#3978c9;font-size:11.5px;list-style:none}
.cm-next>summary::-webkit-details-marker{display:none}
.cm-next>summary:before{content:'›';display:inline-block;margin-right:5px;transition:transform .15s}
.cm-next[open]>summary:before{transform:rotate(90deg)}
.cm-next .cm-actions{margin-top:8px;gap:6px}
.cm-next .cm-actions button,.cm-next .cm-actions a{font-size:11px}
.cm-apx{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:0}
.cm-apx li{position:relative;padding:0 0 12px 16px;border-left:1px solid #e1edfb;margin-left:4px;min-width:0}
.cm-apx li:last-child{border-left-color:transparent;padding-bottom:0}
.cm-apx-dot{position:absolute;left:-4px;top:3px;width:7px;height:7px;border-radius:50%;background:#c3d8f2;box-shadow:0 0 0 2px #fff}
.cm-apx li:first-child .cm-apx-dot{background:#0876ff}
.cm-apx strong{display:block;font-size:11.5px;color:#1c3a60}
.cm-apx em{display:block;font-style:normal;font-size:10.5px;color:#7b91b0;margin-top:3px;overflow-wrap:anywhere}
.cm-apx small{display:block;font-size:10px;color:#9db2cb;margin-top:3px}
.cm-empty{margin:10px 4px;color:#8ba0bb;font-size:11.5px;line-height:1.7}
@media(max-width:1400px) {
  .cm-stats{grid-template-columns:repeat(4,minmax(0,1fr))}
  .cm-q-row{grid-template-columns:minmax(150px,1.9fr) repeat(3,minmax(96px,1fr)) minmax(100px,1fr) auto}
}
@media(max-width:1180px) {
  .cm-shell .cm-layout.cm-home-layout{grid-template-columns:minmax(0,1fr)}
  .cm-stats{grid-template-columns:repeat(4,minmax(0,1fr))}
  .cm-q-row{grid-template-columns:1fr 1fr 1fr;row-gap:9px}
  .cm-q-wide{grid-column:1/-1}
  .cm-q-act{grid-column:1/-1;justify-content:flex-end}
  .cm-q-row2{grid-template-columns:1fr 1fr}
}
@media(max-width:700px) {
  .cm-stats{grid-template-columns:1fr 1fr}
  .cm-stat{min-height:74px;padding:10px 8px}
  .cm-shell .cm-home-head{margin-bottom:10px}
  .cm-q-row{grid-template-columns:1fr 1fr}
  .cm-q-row2{grid-template-columns:1fr 1fr}
  .cm-tbwrap{overflow:visible;padding:0 12px}
  .cm-tb{min-width:0;display:block}
  .cm-tb thead{display:none}
  .cm-tb tbody{display:block}
  .cm-tb tr{display:grid;grid-template-columns:1fr 1fr;gap:5px 8px;padding:12px 0;border-bottom:1px solid #e6eefb}
  .cm-tb td{display:block;width:auto!important;border:0;padding:2px 0;font-size:11.5px}
  .cm-tb td:nth-child(1),.cm-tb td:nth-child(7),.cm-tb td:nth-child(9){grid-column:1/-1}
  .cm-tb td:nth-child(9){text-align:right}
  .cm-st4{grid-template-columns:1fr 1fr}
  .cm-pg{flex-direction:column;align-items:flex-start;gap:8px}
  .cm-pg-btns{flex-wrap:wrap}
}
.cm-stat{display:grid;grid-template-columns:30px minmax(0,1fr);align-items:center;gap:8px}
.cm-tb{min-width:756px}
.cm-tb th:nth-child(1),.cm-tb td:nth-child(1){width:17.5%}
.cm-tb th:nth-child(2),.cm-tb td:nth-child(2){width:8.5%}
.cm-tb th:nth-child(3),.cm-tb td:nth-child(3){width:11%}
.cm-tb th:nth-child(4),.cm-tb td:nth-child(4){width:8.5%}
.cm-tb th:nth-child(5),.cm-tb td:nth-child(5){width:8.5%}
.cm-tb th:nth-child(6),.cm-tb td:nth-child(6){width:7%}
.cm-tb th:nth-child(7),.cm-tb td:nth-child(7){width:22%}
.cm-tb th:nth-child(8),.cm-tb td:nth-child(8){width:8%}
.cm-tb th:nth-child(9),.cm-tb td:nth-child(9){width:5%}
.cm-st4{gap:4px 8px}
.cm-st4i em{display:block;font-size:9px;line-height:1.2;margin:0 0 1px}
.cm-st4i b{display:block;font-size:10px;line-height:1.35;font-weight:500}
.cm-shell .cm-q4{display:grid;grid-template-columns:1fr 1fr;gap:6px;margin:8px 0 10px}
.cm-shell .cm-q4>div{background:#f4f8ff;border-radius:6px;padding:7px 6px;min-width:0}
.cm-shell .cm-q4 small{display:block;font-size:10px;color:#8197b2;margin-bottom:4px}
.cm-shell .cm-q4 b{font-size:11px;font-weight:500;color:#1c3a60;display:block;overflow-wrap:anywhere}
.cm-shell .cm-fx{grid-template-columns:72px minmax(0,1fr)}
@media(max-width:1400px) {
  .cm-stat{grid-template-columns:28px minmax(0,1fr)}
}
.cm-tb{min-width:790px}
.cm-tb th:nth-child(1),.cm-tb td:nth-child(1){width:17%}
.cm-tb th:nth-child(2),.cm-tb td:nth-child(2){width:10%}
.cm-tb th:nth-child(3),.cm-tb td:nth-child(3){width:10.5%}
.cm-tb th:nth-child(4),.cm-tb td:nth-child(4){width:9%}
.cm-tb th:nth-child(5),.cm-tb td:nth-child(5){width:9%}
.cm-tb th:nth-child(6),.cm-tb td:nth-child(6){width:7.5%}
.cm-tb th:nth-child(7),.cm-tb td:nth-child(7){width:22%}
.cm-tb th:nth-child(8),.cm-tb td:nth-child(8){width:8%}
.cm-tb th:nth-child(9),.cm-tb td:nth-child(9){width:5%}
.cm-tb td:nth-child(2),.cm-tb td:nth-child(4),.cm-tb td:nth-child(6),.cm-tb td:nth-child(8){white-space:nowrap}
.cm-tb td:nth-child(2){font-size:10.5px}
.cm-st4{gap:3px 6px}
.cm-st4i b{line-height:1.3}
.cm-st4i em{display:inline;margin:0 3px 0 0;font-size:9.5px}
.cm-st4i b{display:inline;font-size:10px}
.cm-tb th,.cm-tb td{padding:9px 6px}
.cm-st4{gap:3px 8px}
@media(max-width:700px) {
  .cm-tb{min-width:0!important;width:100%!important}
  .cm-tb td{white-space:normal!important}
  .cm-tb tr{gap:4px 10px}
  .cm-st4{grid-template-columns:1fr 1fr;gap:2px 8px}
  .cm-st4i em,.cm-st4i b{font-size:10px}
}
.cw-region-body .cm-goods-head,.cw-region-body .cm-goods-row{grid-template-columns:28px minmax(0,1.45fr) minmax(0,.7fr) 34px 46px 60px 70px 72px}
.cm-goods-unit{font-size:11px;color:#4a6a93;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.cm-goods-ops{display:flex;gap:2px;align-items:center;justify-content:flex-end;flex-wrap:nowrap}
.cm-goods-ops button{font-size:10.5px;padding:2px 3px;border:0;background:none;color:#1266d6;cursor:pointer;min-height:0;line-height:1.4}
.cm-goods-ops button.cw-line-del{color:#d9363e}
.cm-goods-row.cm-row-focus{background:#f1f8ff;box-shadow:inset 2px 0 0 #0876ff}
.cm-goods-empty{margin:8px 0;padding:11px 12px;background:#fff8ec;border:1px solid #f3ddb9;border-radius:6px;color:#a2610c;font-size:11.5px;line-height:1.7}
@media(max-width:700px) {
  .cw-region-body .cm-goods-head,.cw-region-body .cm-goods-row{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
  .cm-goods-row>[data-unit]{grid-column:1/-1}
}
.cm-tb{min-width:768px}
.cm-tb th:nth-child(1),.cm-tb td:nth-child(1){width:13.5%}
.cm-tb th:nth-child(2),.cm-tb td:nth-child(2){width:19%}
.cm-tb th:nth-child(3),.cm-tb td:nth-child(3){width:11%}
.cm-tb th:nth-child(4),.cm-tb td:nth-child(4){width:13%}
.cm-tb th:nth-child(5),.cm-tb td:nth-child(5){width:9%}
.cm-tb th:nth-child(6),.cm-tb td:nth-child(6){width:8.5%}
.cm-tb th:nth-child(7),.cm-tb td:nth-child(7){width:8.5%}
.cm-tb th:nth-child(8),.cm-tb td:nth-child(8){width:6%}
.cm-tb td:nth-child(1),.cm-tb td:nth-child(2),.cm-tb td:nth-child(3),.cm-tb td:nth-child(4),.cm-tb td:nth-child(5),.cm-tb td:nth-child(6),.cm-tb td:nth-child(7){white-space:normal}
.cm-pill.biz{background:#eef4fd;color:#3f6293}
.cm-pill.st-draft{background:#f1f3f7;color:#7b8ba2}
.cm-pill.st-approving{background:#fff3e4;color:#c9760f}
.cm-pill.st-to_sign{background:#eaf3ff;color:#1266d6}
.cm-pill.st-running{background:#e8f3ff;color:#0f6fd1}
.cm-pill.st-done{background:#e9f8ef;color:#1f8a4c}
.cm-pill.st-overdue{background:#fdecec;color:#d9363e}
.cm-pill.st-void{background:#f1f3f7;color:#8b98a8}
.cm-pill.st-reject{background:#fff0e6;color:#c9620f}
.cm-pill.st-other{background:#f1f3f7;color:#7b8ba2}
.cm-apx li.apx-current{background:#f1f8ff;border-radius:6px;box-shadow:inset 2px 0 0 #0876ff}
.cm-apx li.apx-current strong{color:#1266d6}
.cm-apx li.apx-current em{color:#3978c9}
.cm-apx li.apx-todo strong{color:#94a7bf}
.cm-apx li.apx-todo em{color:#a7b7cb}
.cm-apx li.apx-todo .cm-apx-dot{background:#dde8f6}
.cm-apx li.apx-return strong{color:#c9620f}
.cm-pg{flex-wrap:wrap;gap:8px 14px}
.cm-pg-size{display:inline-flex;align-items:center;gap:4px;font-size:11.5px;color:#6e86a9}
.cm-pg-size select{font-size:11.5px;padding:2px 4px;border:1px solid #dbe7f7;border-radius:5px;background:#fff;color:#2c4f7d}
.cm-pg-goto{display:inline-flex;align-items:center;gap:4px;font-size:11.5px;color:#6e86a9}
.cm-pg-goto input{width:44px;font-size:11.5px;padding:2px 5px;border:1px solid #dbe7f7;border-radius:5px;text-align:center;color:#2c4f7d}
.cw-region[data-cw-region="1"] .cw-region-body{grid-template-columns:repeat(6,minmax(0,1fr));gap:12px 14px}
.cw-region[data-cw-region="1"] .cw-region-head{position:relative}
.cw-src-badge{margin-left:auto;display:inline-flex;align-items:center;gap:6px;font-size:11.5px;color:#4a6a93;background:#f2f8ff;border:1px solid #dce9fb;border-radius:20px;padding:2px 10px;white-space:nowrap}
.cw-src-badge i{font-style:normal;background:#e7f7ee;color:#1f8a4c;border-radius:20px;padding:1px 7px;font-size:10.5px}
.cw-origin-field{display:flex;flex-direction:column;gap:5px;min-width:0}
.cw-field-label{font-size:12px;color:#5b7799}
.cw-field-hint{display:block;font-size:10.5px;color:#8fa4bd;margin-top:4px;line-height:1.5}
.cw-name-edit{position:absolute;right:10px;top:26px;border:1px solid #dbe7f7;background:#fff;border-radius:6px;width:26px;height:24px;font-size:12px;color:#1266d6;cursor:pointer;line-height:1}
.cw-region[data-cw-region="1"] label:has([name="name"]){position:relative}
.cw-region[data-cw-region="1"] [name="name"]{padding-right:44px}
.cw-region[data-cw-region="1"] [name="name"][readonly]{background:#f7fafd;color:#2c4f7d}
.cw-region[data-cw-region="1"] [name="name"].cw-name-editing{background:#fff;box-shadow:0 0 0 1px #0876ff inset}
.cw-region[data-cw-region="1"] .cw-src{display:none}
@media(max-width:900px) {
  .cw-region[data-cw-region="1"] .cw-region-body{grid-template-columns:minmax(0,1fr)!important}
  .cw-region[data-cw-region="1"] .cw-region-body>*{grid-column:1/-1!important}
}
.cm-stats{grid-template-columns:repeat(6,minmax(0,1fr));gap:12px;margin-bottom:16px}
.cm-stat{display:grid;grid-template-columns:36px minmax(0,1fr);align-items:start;gap:10px;padding:12px 13px;min-height:0;border-radius:10px;background:#fff;border:1px solid #e6edf7}
.cm-stat:hover{border-color:#b9d6fb;box-shadow:0 6px 16px -12px rgba(16,70,140,.5)}
.cm-stat.active{border-color:#0876ff;box-shadow:0 0 0 1px #0876ff inset}
.cm-stat-ico{width:36px;height:36px;border-radius:10px;display:grid;place-items:center;font-size:15px;line-height:1;background:#eef4ff;color:#2b6fe0;flex:0 0 auto}
.cm-stat-ico.tone-green{background:#e9f8ef;color:#1f8a4c}
.cm-stat-ico.tone-violet{background:#f1ecfe;color:#6b48d6}
.cm-stat-ico.tone-red{background:#fdecec;color:#d9363e}
.cm-stat-main{display:block;min-width:0}
.cm-stat-main small{display:block;font-size:11.5px;color:#6e86a9;line-height:1.5;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.cm-stat-main strong{display:block;font-size:23px;line-height:1.3;color:#0f2f5c;font-weight:650;font-variant-numeric:tabular-nums}
.cm-stat-main em{display:block;font-style:normal;font-size:10.5px;color:#8fa4bd;line-height:1.5;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.cm-shell .cm-home-list .cm-tabs{display:flex;align-items:center;flex-wrap:nowrap}
.cm-tabs-more{position:relative;margin-left:auto;flex:0 0 auto}
.cm-tabs-more>summary{list-style:none;cursor:pointer;font-size:12.5px;color:#5b7799;padding:9px 10px;white-space:nowrap}
.cm-tabs-more>summary::-webkit-details-marker{display:none}
.cm-tabs-more>summary.active{color:#1266d6;font-weight:600}
.cm-tabs-more-menu{position:absolute;right:0;top:100%;z-index:60;min-width:132px;background:#fff;border:1px solid #e0eaf7;border-radius:9px;box-shadow:0 14px 30px -16px rgba(16,70,140,.5);padding:5px;display:flex;flex-direction:column;gap:2px}
.cm-tabs-more-menu button{border:0;background:none;text-align:left;font-size:12.5px;color:#2c4f7d;padding:7px 10px;border-radius:6px;cursor:pointer}
.cm-tabs-more-menu button:hover{background:#f2f8ff}
.cm-tabs-more-menu button.active{background:#eaf3ff;color:#1266d6;font-weight:600}
/* 合同筛选：原来是「5 个控件 + 2 个按钮挤一行」，搜索框和两个日期框被压到放不下占位文字。
   改成和订单首页同一套「4 列 × 2 行」：搜索框跨 2 列，日期跨 2 列，查询/重置落到第二行最右。 */
.cm-q-row{grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}
.cm-q-wide{position:relative;display:block;grid-column:span 2}
.cm-q-wide input{padding-right:10px}
.cm-q-range{grid-column:span 2}
.cm-q-act{grid-column:4;justify-self:end}
.cm-q-glass{position:absolute;right:3px;top:50%;transform:translateY(-50%);width:26px;min-height:26px;padding:0;border:0;background:none;color:#8ba0bb;font-size:14px;cursor:pointer;line-height:1}
.cm-sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.cm-q-range-i{display:flex;align-items:center;gap:5px}
.cm-q-range-i b{color:#a8bcd4;font-weight:400}
.cm-q-range-i input{min-width:0;flex:1 1 0}
.cm-tb{min-width:832px}
.cm-tb th:nth-child(1),.cm-tb td:nth-child(1){width:3.5%}
.cm-tb th:nth-child(2),.cm-tb td:nth-child(2){width:14%}
.cm-tb th:nth-child(3),.cm-tb td:nth-child(3){width:21%}
.cm-tb th:nth-child(4),.cm-tb td:nth-child(4){width:11%}
.cm-tb th:nth-child(5),.cm-tb td:nth-child(5){width:11%}
.cm-tb th:nth-child(6),.cm-tb td:nth-child(6){width:11.5%}
.cm-tb th:nth-child(7),.cm-tb td:nth-child(7){width:9%}
.cm-tb th:nth-child(8),.cm-tb td:nth-child(8){width:10%}
.cm-tb th:nth-child(9),.cm-tb td:nth-child(9){width:9%}
.cm-tb th,.cm-tb td{vertical-align:middle;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;padding:9px 8px;font-size:12px}
.cm-tb td:nth-child(1),.cm-tb td:nth-child(2),.cm-tb td:nth-child(3),.cm-tb td:nth-child(4),.cm-tb td:nth-child(5),.cm-tb td:nth-child(6),.cm-tb td:nth-child(7),.cm-tb td:nth-child(8){white-space:nowrap}
.cm-tb th.cm-ck,.cm-tb td.cm-ck{text-align:center;padding-left:10px;padding-right:0}
.cm-ck input{width:13px;height:13px;margin:0;cursor:pointer;accent-color:#0876ff}
.cm-cname,.cm-cparty{display:block;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.cm-code{white-space:nowrap;font-size:12px}
.cm-ops{display:inline-flex;align-items:center;gap:9px;overflow:visible}
.cm-more{position:relative;display:inline-block}
.cm-more>summary{list-style:none;cursor:pointer;color:#52739b;font-size:14px;line-height:1;padding:2px 3px}
.cm-more>summary::-webkit-details-marker{display:none}
.cm-more-menu{position:fixed;z-index:900;min-width:118px;background:#fff;border:1px solid #e0eaf7;border-radius:8px;box-shadow:0 16px 32px -16px rgba(16,70,140,.55);padding:4px;display:flex;flex-direction:column;gap:1px;top:0;left:0}
.cm-more-menu a,.cm-more-menu button{border:0;background:none;text-align:left;font-size:11.5px;color:#2c4f7d;padding:6px 9px;border-radius:5px;cursor:pointer;text-decoration:none;white-space:nowrap;min-height:0}
.cm-more-menu a:hover,.cm-more-menu button:hover{background:#f2f8ff}
.cm-tbwrap{padding:0 4px}
.cm-pg{flex-wrap:nowrap;gap:12px;justify-content:space-between}
.cm-pg-size{display:inline-flex;align-items:center;gap:4px;white-space:nowrap}
.cm-pg-size select{width:auto;min-width:58px;padding:3px 4px;font-size:11.5px}
.cm-pg-goto{display:inline-flex;align-items:center;gap:4px;white-space:nowrap}
.cm-pg-goto input{width:46px;padding:3px 4px;font-size:11.5px;text-align:center}
.cm-new-more{position:relative}
.cm-new-more>summary{list-style:none;cursor:pointer;font-size:13px;padding:8px 12px;border:1px solid #dbe7f7;border-radius:7px;background:#fff;color:#2c4f7d}
.cm-new-more>summary::-webkit-details-marker{display:none}
.cm-new-more>div{position:absolute;right:0;top:100%;z-index:60;min-width:158px;background:#fff;border:1px solid #e0eaf7;border-radius:9px;box-shadow:0 14px 30px -16px rgba(16,70,140,.5);padding:5px;display:flex;flex-direction:column;gap:2px}
.cm-new-more>div button{width:100%;justify-content:flex-start;text-align:left;border:0;background:none;font-size:12.5px;color:#2c4f7d;padding:7px 10px;border-radius:6px;min-height:0}
.cm-new-more>div button:hover{background:#f2f8ff}
@media(max-width:1240px) {
  .cm-stats{grid-template-columns:repeat(3,minmax(0,1fr))}
  .cm-q-row{grid-template-columns:minmax(160px,1.5fr) minmax(0,1fr) minmax(0,1fr) minmax(0,1fr);grid-auto-rows:auto}
  .cm-q-range{grid-column:1/3}
}
@media(max-width:700px) {
  .cm-stats{grid-template-columns:repeat(2,minmax(0,1fr))}
  .cm-stat{padding:10px 9px;gap:8px;grid-template-columns:30px minmax(0,1fr)}
  .cm-stat-ico{width:30px;height:30px;font-size:13px}
  .cm-stat-main strong{font-size:19px}
  .cm-tb{min-width:0!important;width:100%!important}
  .cm-tb th.cm-ck,.cm-tb td.cm-ck{display:none}
  .cm-tb td:nth-child(2),.cm-tb td:nth-child(3){grid-column:1/-1}
  .cm-tb td:nth-child(9){grid-column:1/-1;text-align:right}
  .cm-q-row{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
  .cm-q-wide{grid-column:1/-1}
  .cm-q-range{grid-column:1/-1}
  .cm-pg{flex-wrap:wrap!important;flex-direction:column;align-items:flex-start}
}
.cm-tb{min-width:820px}
.cm-tb th:nth-child(2),.cm-tb td:nth-child(2){width:16%}
.cm-tb th:nth-child(3),.cm-tb td:nth-child(3){width:19%}
.cm-tb th:nth-child(4),.cm-tb td:nth-child(4){width:11%}
.cm-tb th:nth-child(5),.cm-tb td:nth-child(5){width:10.5%}
.cm-tb th:nth-child(6),.cm-tb td:nth-child(6){width:11.5%}
.cm-tb th:nth-child(7),.cm-tb td:nth-child(7){width:9%}
.cm-tb th:nth-child(8),.cm-tb td:nth-child(8){width:9.5%}
.cm-tb th:nth-child(9),.cm-tb td:nth-child(9){width:9.5%}
.cm-tb td.cm-ck{padding-left:8px}
.cm-q{padding:12px 12px 6px}
.cm-q-row{grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}
.cm-q label{font-size:12px}
.cm-q input,.cm-q select{font-size:var(--ux-label);min-height:var(--ux-ctl-h);padding:8px}
.cm-q-range-i{gap:6px}
.cm-q-range-i input{font-size:var(--ux-label);padding:8px 4px 8px 6px}
.cm-q-act{gap:8px}
.cm-q-act button{min-height:var(--ux-ctl-h);font-size:var(--ux-label);padding:0 12px;min-width:52px}
.cm-q-wide input{padding-right:28px;font-size:var(--ux-label)}
.cm-q-glass{width:22px;font-size:13px}
.cm-pg{gap:8px;font-size:11px;padding:10px 10px}
.cm-pg-btns{gap:3px}
.cm-pg-btns button{min-width:25px;min-height:25px;padding:0 6px;font-size:11px}
.cm-pg-size{gap:3px}
.cm-pg-size select{min-width:50px;padding:2px 2px;font-size:11px}
.cm-pg-goto{gap:3px}
.cm-pg-goto input{width:38px;padding:2px 2px;font-size:11px}
.cm-hcard .cm-fx dt{font-size:11px}
.cm-hcard .cm-fx dd{font-size:11.5px}
.cm-hname{font-size:14.5px;margin:2px 0 9px;line-height:1.45}
.cm-hactions .primary{width:100%}
@media(max-width:1240px) {
  .cm-q-row{grid-template-columns:minmax(0,1.3fr) minmax(0,1fr) minmax(0,1fr)}
  .cm-q-range{grid-column:1/2}
  .cm-q-act{grid-column:2/4;justify-content:flex-end}
}
.cm-pg-size,.cm-pg-goto{display:inline-flex;flex-direction:row;align-items:center;gap:4px;white-space:nowrap}
.cm-pg-size select{flex:0 0 auto}
.cm-pg-goto input{flex:0 0 auto}
.cm-q-wide{display:block}
.cm-q-glass{display:block}
.cm-ops{display:inline-flex;flex-direction:row;align-items:center;gap:9px}
.cw-region[data-cw-region="1"] .cw-region-body{grid-template-columns:repeat(6,minmax(0,1fr));align-items:start}
/* ① 区字段：标签在左、控件在右，一行放下，不再让标签独占一行 */
.cw-region[data-cw-region="1"] .cw-region-body>label{display:grid;grid-template-columns:auto minmax(0,1fr);align-items:center;column-gap:7px;margin:0}
.cw-region[data-cw-region="1"] .cw-region-body>label>:is(input,select,textarea){width:100%;min-width:0}
.cw-region[data-cw-region="1"] .cw-region-body>[data-cw-num-field]{order:1;grid-column:1/3;grid-row:1}
.cw-region[data-cw-region="1"] .cw-region-body>[data-cw-biz-field]{order:2;grid-column:3/5;grid-row:1}
.cw-region[data-cw-region="1"] .cw-region-body>.cw-ord-origin{order:3;grid-column:5/7;grid-row:1/3}
.cw-region[data-cw-region="1"] .cw-region-body>.cw-ord-customer{order:4;grid-column:1/3;grid-row:2}
.cw-region[data-cw-region="1"] .cw-region-body>.cw-ord-company{order:5;grid-column:3/5;grid-row:2}
.cw-region[data-cw-region="1"] .cw-region-body>.cw-ord-name{order:6;grid-column:1/7;grid-row:3}
.cw-region[data-cw-region="1"] .cw-region-body>.cw-info-rest{order:7;grid-column:1/7}
.cw-region[data-cw-region="1"] .cw-region-body>.cm-contract-clause-picker{order:8;grid-column:1/7}
.cw-origin-field{display:flex;flex-direction:row;align-items:center;gap:8px;min-width:0;padding-top:0}
.cw-origin-field .cw-field-label{display:block;margin-bottom:0;flex:0 0 auto;white-space:nowrap}
.cw-origin-field select{flex:1 1 auto;min-width:0}
.cw-scene-mini[hidden],.cw-form [data-cw-context][hidden]{display:none!important}
@media(max-width:900px) {
  .cw-region[data-cw-region="1"] .cw-region-body{grid-template-columns:minmax(0,1fr)!important}
  .cw-region[data-cw-region="1"] .cw-region-body>*{grid-column:1/-1!important;grid-row:auto!important}
}
.cw-origin-field{gap:6px!important}
.cm-tb th:nth-child(2),.cm-tb td:nth-child(2){width:18%}
.cm-tb th:nth-child(3),.cm-tb td:nth-child(3){width:17%}
.cm-tb th:nth-child(4),.cm-tb td:nth-child(4){width:10.5%}
.cm-tb th:nth-child(5),.cm-tb td:nth-child(5){width:10%}
.cm-tb th:nth-child(6),.cm-tb td:nth-child(6){width:12%}
.cm-tb td:nth-child(2){font-size:11.5px;letter-spacing:-.1px}
.cm-tb th:nth-child(3),.cm-tb td:nth-child(3){width:15.5%}
.cm-tb th:nth-child(4),.cm-tb td:nth-child(4){width:12%}
.cm-tb td:nth-child(4) .cm-pill{max-width:none}
@media(max-width:700px) {
  .cm-tb td:nth-child(2)::before{content:'合同编号';display:block;font-size:10px;color:#9db2cb;margin-bottom:1px}
  .cm-tb td:nth-child(3)::before{content:'合同名称';display:block;font-size:10px;color:#9db2cb;margin-bottom:1px}
  .cm-tb td:nth-child(4)::before{content:'业务类型';display:block;font-size:10px;color:#9db2cb;margin-bottom:1px}
  .cm-tb td:nth-child(5)::before{content:'相对方';display:block;font-size:10px;color:#9db2cb;margin-bottom:1px}
  .cm-tb td:nth-child(6)::before{content:'合同金额';display:block;font-size:10px;color:#9db2cb;margin-bottom:1px}
  .cm-tb td:nth-child(7)::before{content:'合同状态';display:block;font-size:10px;color:#9db2cb;margin-bottom:1px}
  .cm-tb td:nth-child(8)::before{content:'签订日期';display:block;font-size:10px;color:#9db2cb;margin-bottom:1px}
  .cm-tb tr.active{box-shadow:inset 3px 0 0 #0876ff}
  .cm-tb td.cm-ck{padding:0}
}
.cm-undated{color:#9db2cb;font-size:11px}
.cw-advanced-hidden{display:none!important}
.cw-tpl-dialog{width:min(960px,94vw);max-height:88vh}
.cw-tpl-dialog-body{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.05fr);gap:14px;align-items:start}
.cw-tpl-dialog-list{display:flex;flex-direction:column;gap:6px;max-height:58vh;overflow:auto;padding-right:2px}
.cw-tpl-item{display:block;text-align:left;border:1px solid #dbe7f7;border-radius:8px;background:#fff;padding:10px 12px;cursor:pointer;width:100%}
.cw-tpl-item:hover{border-color:#b9d6fb;background:#f7fbff}
.cw-tpl-item.on{border-color:#0876ff;background:#f2f8ff;box-shadow:0 0 0 1px #0876ff inset}
.cw-tpl-item strong{display:block;font-size:12.5px;color:#12325c;line-height:1.45}
.cw-tpl-item small{display:block;margin-top:3px;font-size:10.5px;color:#7b91b0;line-height:1.5}
.cw-tpl-item small em{font-style:normal;color:#1266d6}
.cw-tpl-dialog-preview{border:1px solid #e6eef9;border-radius:9px;background:#fbfdff;max-height:58vh;overflow:auto;padding:12px 14px}
.cw-tpl-pv-head{border-bottom:1px solid #e6eef9;padding-bottom:8px;margin-bottom:10px}
.cw-tpl-pv-head strong{display:block;font-size:13px;color:#0f2f5c}
.cw-tpl-pv-head small{display:block;margin-top:3px;font-size:10.5px;color:#7b91b0}
.cw-tpl-pv-body h4{margin:10px 0 4px;font-size:12px;color:#12325c}
.cw-tpl-pv-body p{margin:0 0 6px;font-size:11.5px;color:#3a567c;line-height:1.8}
@media(max-width:900px) {
  .cw-tpl-dialog-body{grid-template-columns:minmax(0,1fr)}
  .cw-tpl-dialog-preview{max-height:34vh}
}
[data-cw-slot][hidden],.cw-other-terms[hidden],.cw-advanced-hidden[hidden]{display:none!important}
.cw-draft-head{border:1px dashed #c9dcf4;border-radius:10px;background:#fafcff;padding:12px 14px}
.cw-dh-tag{display:inline-block;font-size:10.5px;font-weight:600;color:#8a5a00;background:#fff4d8;border:1px solid #ffe2a8;border-radius:999px;padding:1px 8px;margin-bottom:8px}
.cw-draft-head p{margin:0 0 6px;font-size:11.5px;color:#3a567c;line-height:1.75;overflow-wrap:anywhere}
.cw-draft-head p:last-child{margin-bottom:0}
.cw-draft-head b{font-weight:600;color:#12325c}
.cw-dh-miss{color:#b06b00;border-bottom:1px dashed #e8c48a}
.cw-def{display:inline-block;margin-left:5px;font-style:normal;font-size:10px;font-weight:600;color:#8a5a00;background:#fff4d8;border:1px solid #ffe2a8;border-radius:999px;padding:0 6px;vertical-align:1px}
.cm-tb{min-width:832px}
.cm-tb th:nth-child(2),.cm-tb td:nth-child(2){width:19%;white-space:nowrap}
.cm-tb th:nth-child(3),.cm-tb td:nth-child(3){width:auto}
.cm-tb th:nth-child(4),.cm-tb td:nth-child(4){width:12%}
.cm-tb th:nth-child(5),.cm-tb td:nth-child(5){width:10%}
.cm-tb th:nth-child(6),.cm-tb td:nth-child(6){width:10%}
.cm-tb th:nth-child(7),.cm-tb td:nth-child(7){width:8%}
.cm-tb th:nth-child(8),.cm-tb td:nth-child(8){width:8%}
.cm-tb td:nth-child(3){white-space:normal;word-break:break-word;line-height:1.35}
.cw-fold{border:1px solid #e6eef9;border-radius:8px;background:#fbfdff;padding:2px 12px;margin-top:10px}
.cw-fold>summary{cursor:pointer;list-style:none;font-size:12px;font-weight:600;color:#3d5b82;padding:9px 0}
.cw-fold>summary::-webkit-details-marker{display:none}
.cw-fold>summary::before{content:'▸';display:inline-block;width:12px;color:#7b91b0;transition:transform .15s}
.cw-fold[open]>summary::before{transform:rotate(90deg)}
.cw-fold .cw-sub-body{padding:0 0 12px}
.cm-tb th.cm-ck{text-align:center;padding:0}
.cm-ck-mark{display:inline-block;font-size:10px;color:#9db2cb;font-weight:600;letter-spacing:0}
.cm-tb td.cm-ck{text-align:center;padding:0}
.cm-tb td.cm-ck input[type=radio]{width:13px;height:13px;margin:0;accent-color:#0876ff;cursor:pointer;vertical-align:-2px}
.cm-tb tr.active td.cm-ck input[type=radio]{accent-color:#0876ff}
.cw-num-inline{margin-left:auto;font-size:11.5px;color:#7b91b0;white-space:nowrap}
.cw-num-inline b{font-weight:600;color:#12325c;letter-spacing:.2px}
.cw-doc-head{display:flex;align-items:center;gap:9px;padding:2px 2px 8px}
.cw-doc-head .cw-block-no{width:22px;height:22px;border-radius:7px;background:#e8f2ff;color:#1762b1;font-size:11px;display:flex;align-items:center;justify-content:center;flex:0 0 auto}
.cw-doc-head h2{margin:0;font-size:13.5px;color:#0f2f5c}
.cw-doc-head p{margin:2px 0 0;font-size:11px;color:#8ea3bf}
.cw-doc-slot{margin-bottom:8px}
.cw-region[data-cw-region="1"] .cw-region-body{grid-template-columns:repeat(6,minmax(0,1fr))!important;row-gap:11px}
.cw-region[data-cw-region="1"] .cw-region-body>.cw-ord-biz{order:1;grid-column:1/4;grid-row:1}
.cw-region[data-cw-region="1"] .cw-region-body>.cw-ord-origin{order:2;grid-column:4/7;grid-row:1}
.cw-region[data-cw-region="1"] .cw-region-body>.cw-ord-customer{order:3;grid-column:1/3;grid-row:2}
.cw-region[data-cw-region="1"] .cw-region-body>.cw-g-cc{order:4;grid-column:3/5;grid-row:2}
.cw-region[data-cw-region="1"] .cw-region-body>.cw-g-cp{order:5;grid-column:5/7;grid-row:2}
.cw-region[data-cw-region="1"] .cw-region-body>.cw-ord-company{order:6;grid-column:1/3;grid-row:3}
.cw-region[data-cw-region="1"] .cw-region-body>.cw-g-bc{order:7;grid-column:3/5;grid-row:3}
.cw-region[data-cw-region="1"] .cw-region-body>.cw-g-bp{order:8;grid-column:5/7;grid-row:3}
.cw-region[data-cw-region="1"] .cw-region-body>.cw-ord-name{order:9;grid-column:1/7;grid-row:4}
.cw-region[data-cw-region="1"] .cw-region-body>.cw-g-owner{order:10;grid-column:1/3;grid-row:5}
.cw-region[data-cw-region="1"] .cw-region-body>.cw-info-rest{order:11;grid-column:1/7}
.cw-region[data-cw-region="1"] .cw-region-body>.cm-contract-clause-picker{order:12;grid-column:1/7}
.cw-ro-field{display:flex;flex-direction:column;gap:3px;min-width:0}
.cw-ro-field>span{font-size:11.5px;color:#7185a0}
.cw-ro-field>b{display:block;min-height:32px;font-size:12.5px;font-weight:500;color:#16365f;background:#f6f9fe;border:1px solid #e6eef9;border-radius:7px;padding:7px 10px;overflow-wrap:anywhere}
.cw-ro-empty{font-style:normal;color:#a8bcd4}
.cw-origin-field select{width:100%}
.cw-pay-edit{grid-template-columns:repeat(2,minmax(0,1fr))!important}
.cw-pay-edit .cm-pay-row>strong{display:flex;align-items:center;gap:6px;background:#fff;border:1px solid #e2eaf5;border-radius:6px;padding:6px 8px;min-height:32px;font-weight:500}
.cw-pay-edit select,.cw-pay-edit input{flex:0 1 auto;min-width:0;border:0;background:none;font-size:12.5px;color:#16365f;padding:0}
/* 账期数值 52px 只能显示 2 位：实测填 365 时被裁 12px（390 视口裁 15px），
   正是「30/90/180/365 只看得见 3/18」的成因（2026-11-02）。
   数值框按「4 位数 + 右对齐 + 虚线下划线」给 68px；单位框要容得下「个日历天」+下拉箭头 → 104px；
   分期约定是自由文本，给弹性下限，别再压到 157px 让占位提示一句话都看不全。 */
.cw-pay-edit input[data-cw-term]{width:68px;min-width:68px;text-align:right;border-bottom:1px dashed #c9dcf4}
.cw-pay-edit select[data-cw-term-unit]{min-width:104px}
.cw-pay-hint{grid-column:1/-1;margin:0;font-size:11px;color:#9aabc0;line-height:1.6}
@media(max-width:900px) {
  .cw-region[data-cw-region="1"] .cw-region-body{grid-template-columns:minmax(0,1fr)!important}
  .cw-region[data-cw-region="1"] .cw-region-body>*{grid-column:1/-1!important;grid-row:auto!important}
  .cw-num-inline{margin-left:0;display:block;padding-top:2px}
}
.cw-region[data-cw-region="1"] .cw-region-body>.cw-ord-name{grid-column:1/5!important;grid-row:4!important}
.cw-region[data-cw-region="1"] .cw-region-body>.cw-g-owner{grid-column:5/7!important;grid-row:4!important}
.cw-tpl-none-act{margin-top:8px;display:flex;gap:8px}
.cw-tpl-none-act button{padding:6px 14px;font-size:12px;border-radius:7px}
.cw-pay-edit input[data-cw-term-note]{flex:1 1 240px;min-width:180px;border:0;background:none;font-size:12.5px;color:#16365f;padding:0}
.cw-pay-edit input[data-cw-term-note]::placeholder{color:#a8bcd4}
.cw-pay-edit [hidden]{display:none!important}
@media(max-width:900px) {
  .cw-region[data-cw-region="1"] .cw-region-body>.cw-ord-name,
 .cw-region[data-cw-region="1"] .cw-region-body>.cw-g-owner{grid-column:1/-1!important;grid-row:auto!important}
}
/* ===== WB33-35 合同工作台样式 END ===== */

/* ===== WB37 我的待办 与 模板库分类条（勿手改：由 _wb37 补丁维护） ===== */
.cm-todo{margin-top:12px;padding:0;overflow:hidden}
.cm-todo-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 16px;border-bottom:1px solid #eef1f6}
.cm-todo-head h2{margin:0;font-size:15px;font-weight:600;color:#1b2a41}
.cm-todo-total{font-size:12px;color:#7a8699}
.cm-todo-tabs{display:flex;flex-wrap:wrap;gap:8px;padding:12px 16px;border-bottom:1px solid #eef1f6;background:#fafbfd}
.cm-todo-tab{display:inline-flex;align-items:center;gap:6px;padding:6px 12px;border:1px solid #e3e8f0;border-radius:999px;background:#fff;color:#42506b;font-size:13px;cursor:pointer}
.cm-todo-tab:hover{border-color:#c9d4e6}
.cm-todo-tab b{font-weight:600;font-size:13px}
.cm-todo-dot{width:8px;height:8px;border-radius:50%;display:inline-block;background:currentColor}
.cm-todo-tab.tone-blue{color:#1f6fd0}
.cm-todo-tab.tone-amber{color:#b7791f}
.cm-todo-tab.tone-violet{color:#6b48d6}
.cm-todo-tab.tone-teal{color:#0f8f88}
.cm-todo-tab.tone-red{color:#d9363e}
.cm-todo-tab.active{background:currentColor;border-color:currentColor}
.cm-todo-tab.active span,.cm-todo-tab.active b{color:#fff}
.cm-todo-tab.active .cm-todo-dot{background:#fff}
.cm-todo-wrap{padding:0 0 8px}
.cm-todo-tb{width:100%;border-collapse:collapse;font-size:13px}
.cm-todo-tb th{text-align:left;font-weight:600;color:#6b7789;background:#fbfcfe;padding:9px 12px;border-bottom:1px solid #eef1f6;white-space:nowrap}
.cm-todo-tb td{padding:10px 12px;border-bottom:1px solid #f2f5f9;color:#26364d;vertical-align:middle}
.cm-todo-tb tbody tr:hover{background:#f8fbff}
.cm-todo-kind{display:inline-block;padding:2px 8px;border-radius:6px;font-size:12px;background:#eef3fb;color:#1f6fd0}
.cm-todo-kind.tone-amber{background:#fdf3e2;color:#b7791f}
.cm-todo-kind.tone-violet{background:#f1ecfe;color:#6b48d6}
.cm-todo-kind.tone-teal{background:#e3f6f5;color:#0f8f88}
.cm-todo-kind.tone-red{background:#fdecec;color:#d9363e}
.cm-todo-what{max-width:320px;color:#42506b}
.cm-todo .cm-empty{padding:22px 16px;margin:0;color:#8a94a6;text-align:center}
@media(max-width:900px){
 .cm-todo-tabs{padding:10px 12px}
 .cm-todo-wrap{overflow-x:auto}
 .cm-todo-tb{min-width:760px}
}
/* --- WB37 模板管理：分类条 / 我的常用 / 结构 / 版本 --- */
.qtx-cats{display:flex;flex-wrap:wrap;gap:6px;margin:0 0 12px}
.qtx-cats button{padding:6px 14px;border:1px solid #e3e8f0;background:#fff;border-radius:8px;font-size:13px;color:#42506b;cursor:pointer}
.qtx-cats button:hover{border-color:#c9d4e6}
.qtx-cats button.active{background:#1f6fd0;border-color:#1f6fd0;color:#fff;font-weight:600}
.qtx-favs{margin-bottom:12px;padding:0;overflow:hidden}
.qtx-favs header{display:flex;align-items:baseline;justify-content:space-between;padding:10px 14px;border-bottom:1px solid #eef1f6}
.qtx-favs h2{margin:0;font-size:14px;font-weight:600;color:#1b2a41}
.qtx-favs header span{font-size:12px;color:#7a8699}
.qtx-fav-list{display:grid;grid-template-columns:repeat(auto-fill,minmax(210px,1fr));gap:10px;padding:12px 14px}
.qtx-fav{display:flex;flex-direction:column;gap:4px;text-align:left;padding:10px 12px;border:1px solid #e8edf5;border-radius:10px;background:#fbfcfe;cursor:pointer}
.qtx-fav:hover{border-color:#b9cdea;background:#f4f8fe}
.qtx-fav strong{font-size:13px;color:#1b2a41;font-weight:600}
.qtx-fav small{font-size:12px;color:#7a8699}
.qtx-sections{margin:0;padding-left:18px;display:flex;flex-direction:column;gap:6px}
.qtx-sections li strong{display:block;font-size:13px;color:#26364d}
.qtx-sections li small{display:block;font-size:12px;color:#7a8699;line-height:1.5}
.qtx-table.qtx-small th,.qtx-table.qtx-small td{padding:6px 8px;font-size:12px}
.qtx-dl{display:inline-block;margin-top:6px;font-size:13px;color:#1f6fd0}

/* ===== WB38 新建合同页：基本信息排布 / 编号 chip / 提交前核对（勿手改） ===== */
.cw-num-inline{background:#f2f6fc;border:1px solid #e4ebf6;border-radius:6px;padding:2px 9px}
.cw-region[data-cw-region="1"] .cw-region-body>.cw-ord-origin{order:1;grid-column:1/3;grid-row:1}
.cw-region[data-cw-region="1"] .cw-region-body>.cw-ord-name{order:2;grid-column:3/7!important;grid-row:1!important}
.cw-region[data-cw-region="1"] .cw-region-body>.cw-ord-biz{order:3;grid-column:1/3;grid-row:2}
.cw-region[data-cw-region="1"] .cw-region-body>.cw-g-owner{order:4;grid-column:3/7!important;grid-row:2!important}
.cw-region[data-cw-region="1"] .cw-region-body>.cw-ord-customer{order:5;grid-column:1/3;grid-row:3}
.cw-region[data-cw-region="1"] .cw-region-body>.cw-g-cc{order:6;grid-column:3/5;grid-row:3}
.cw-region[data-cw-region="1"] .cw-region-body>.cw-g-cp{order:7;grid-column:5/7;grid-row:3}
.cw-region[data-cw-region="1"] .cw-region-body>.cw-ord-company{order:8;grid-column:1/3;grid-row:4}
.cw-region[data-cw-region="1"] .cw-region-body>.cw-g-bc{order:9;grid-column:3/5;grid-row:4}
.cw-region[data-cw-region="1"] .cw-region-body>.cw-g-bp{order:10;grid-column:5/7;grid-row:4}
.cw-region[data-cw-region="1"] .cw-region-body>.cw-info-rest{order:11;grid-column:1/7;grid-row:auto}
.cw-region[data-cw-region="1"] .cw-region-body>.cm-contract-clause-picker{order:12;grid-column:1/7}
.cw-info-rest{border:1px dashed #dbe7f8;border-radius:8px;padding:8px 12px;background:#fbfdff}
.cw-info-rest>summary{cursor:pointer;font-size:12.5px;color:#1762b1;font-weight:600}
.cw-info-rest-body{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-top:10px}
.cw-info-rest-body>label{margin:0!important;min-width:0}
.cw-precheck{margin:14px 0 0;border:1px solid #e6eef9;border-radius:9px;background:#fbfdff;padding:12px 14px}
.cw-pc-head{display:flex;align-items:center;justify-content:space-between;gap:10px;font-size:13px;font-weight:600;color:#12325c;margin-bottom:8px}
.cw-pc-head>span{font-size:11.5px;font-weight:400;color:#8ea3bf}
.cw-precheck ul{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px 18px}
.cw-precheck li{display:grid;grid-template-columns:16px 92px minmax(0,1fr);align-items:baseline;gap:6px;font-size:12px;color:#42506b;min-width:0}
.cw-precheck li>i{font-style:normal;font-weight:700}
.cw-precheck li>strong{font-weight:600;color:#16365f}
.cw-precheck li>em{font-style:normal;color:#8496b0;overflow-wrap:anywhere}
.cw-precheck li.ok>i{color:#0f8f88}
.cw-precheck li.todo>i{color:#d9963a}
.cw-precheck li.todo>strong{color:#b7791f}
@media(max-width:900px){
 .cw-region[data-cw-region="1"] .cw-region-body>*{grid-column:1/-1!important;grid-row:auto!important}
 .cw-info-rest-body,.cw-precheck ul{grid-template-columns:minmax(0,1fr)}
 .cw-precheck li{grid-template-columns:16px 78px minmax(0,1fr)}
}
/* ===== WB38 END ===== */

/* WB38b：合同文件来源归入 ③ 区 */
.cw-doc-slot:empty{display:none}
.cw-region[data-cw-region="3"] .cw-sub[data-cw-sub="doc"]{margin-top:6px}
.cw-region[data-cw-region="3"] .cw-sub[data-cw-sub="doc"] .cw-doc-modes{margin-bottom:10px}
.cw-region[data-cw-region="3"] [data-cw-precheck]{margin:10px 0 0}

/* WB38c：条款库维护空状态 */
.cm-clause-empty{padding:18px 20px;border:1px dashed #dbe7f8;border-radius:10px;background:#fbfdff}
.cm-clause-empty h3{margin:0 0 6px;font-size:14px;color:#12325c}
.cm-clause-empty p{margin:0 0 10px;font-size:12.5px;line-height:1.7;color:#5b7392}

/* ===== WB39 新建合同页紧凑化：能一排放的字段不再占两行（勿手改） ===== */
/* 付款及交付条件：两项并排，标签在左、控件在右，与 ① 区同一种排法 */
.cw-pay-edit{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:9px 14px;padding:10px 12px}
/* 旧规则（.cw-payment-pane .cm-pay-summary .cm-pay-row{display:block}）权重更高，这里必须同等权重才能压过去 */
.cw-pay-edit.cm-pay-summary .cm-pay-row{display:flex!important;flex-direction:row;align-items:center;gap:8px;min-width:0}
.cw-pay-edit.cm-pay-summary .cm-pay-row>span{flex:0 0 auto;margin:0;white-space:nowrap}
.cw-pay-edit.cm-pay-summary .cm-pay-row>strong{flex:1 1 auto;min-width:0;min-height:28px;padding:4px 8px}
.cw-pay-edit .cm-pay-row>strong>select{flex:1 1 auto;width:100%;min-width:0}
/* 账期：数值、单位、分期说明都不许换行，挤在一格里。
   ⚠️ 这三条的特异性是 (0,3,1)，会压掉上面 1917 行的 `.cw-pay-edit input[data-cw-term-note]`，
   所以宽度只能改在这里，别在上面再加（2026-11-02 踩过：改了 1917 行没生效）。 */
.cw-pay-edit .cw-term-cell{display:flex;flex-direction:row;align-items:center;gap:6px;flex-wrap:nowrap}
.cw-pay-edit .cw-term-cell [data-cw-term]{flex:0 0 68px;width:68px;text-align:right}
.cw-pay-edit .cw-term-cell [data-cw-term-unit]{flex:0 0 104px;width:104px;min-width:104px}
/* 分期约定独占整格：`.cm-pay-row>strong` 在 1337 行被设成 display:block（0,3,1），
   压掉了这里 .cw-term-cell 的 flex（0,2,0），所以 flex-basis 不生效、宽度停在 157px。
   分期约定与账期数值/单位从不同时显示（plan 与 once 互斥），直接给 100% 即可，不必打特异性官司。 */
.cw-pay-edit .cw-term-cell [data-cw-term-note]{flex:1 1 auto;width:100%;min-width:0}
/* 分期约定是自由文本，独占两列才够写「首期 30% 合同生效后 7 日内，余款验收后 30 日付清」 */
.cw-pay-edit .cm-pay-row:has([data-cw-term-note]:not([hidden])){grid-column:1/-1}
.cw-pay-edit .cw-term-cell [hidden]{display:none!important}
.cw-pay-edit .cw-pay-hint{grid-column:1/-1;margin:0;font-size:11px;line-height:1.45}

/* ③ 子区块标题与说明收薄，省掉每块上下的空白 */
.cw-region[data-cw-region="3"] .cw-sub{padding:10px 12px 8px;margin-bottom:8px}
.cw-region[data-cw-region="3"] .cw-sub>h3{margin:0 0 8px}

/* 合同文件来源：两张方式卡压成一行标题 + 一行小字，不再上下堆三行 */
.cw-region[data-cw-region="3"] .cw-doc-modes{gap:10px;margin:0 0 8px}
.cw-region[data-cw-region="3"] .cw-doc-mode{padding:9px 12px;align-items:center;gap:8px}
.cw-region[data-cw-region="3"] .cw-doc-mode strong{display:inline;font-size:12.5px;margin-right:6px}
.cw-region[data-cw-region="3"] .cw-doc-mode small{display:inline;margin:0;font-size:11.5px;line-height:1.5;color:#7b8da6}
.cw-region[data-cw-region="3"] .cw-doc-mode small::before{content:'· '}
.cw-region[data-cw-region="3"] .cw-doc-mode-icon{font-size:15px}

/* ② 商品明细列宽保持既有比例：实测改列宽会让「操作」列把复制/删除挤成两行、整区反而更高，
   这里不动列宽，只把行内上下内边距收紧 */
.cw-region[data-cw-region="2"] .cm-goods-row{padding-top:5px;padding-bottom:5px}

@media(max-width:900px){
  .cw-pay-edit{grid-template-columns:minmax(0,1fr)!important}
  .cw-region[data-cw-region="3"] .cw-doc-mode small{display:none}
  .cw-region[data-cw-region="3"] .cw-doc-mode small::before{content:''}
}
/* ① 区甲乙双方只读字段：标签在左、值在右，一行放下（原来标签独占一行，两排共多花约 30px） */
.cw-region[data-cw-region="1"] .cw-ro-field{display:flex;flex-direction:row;align-items:center;gap:7px;min-width:0}
.cw-region[data-cw-region="1"] .cw-ro-field>span{flex:0 0 auto;white-space:nowrap;margin:0}
.cw-region[data-cw-region="1"] .cw-ro-field>b{flex:1 1 auto;min-width:0;min-height:28px;padding:5px 9px}

/* 「当前没有适用的已发布合同模板」提示：标题与正文连排，去掉块内多余行距 */
.cw-tpl-none{padding:9px 12px;font-size:11.8px;line-height:1.55}
.cw-tpl-none>strong{display:inline;margin:0 6px 0 0;font-size:12px}
.cw-tpl-none>p{display:inline;margin:0}
.cw-tpl-none>p+p::before{content:' '}
.cw-tpl-none-act{margin-top:7px}

/* 提交前核对：行高与字号收一档 */
.cw-precheck{padding:10px 12px;margin:10px 0 0}
.cw-pc-head{margin-bottom:6px;font-size:12.5px}
.cw-precheck li{padding:1px 0}
/* 区块外框与标题留白收一档：三块之间原来各留 16px 内边距 + 14px 标题下距 */
.cw-block{padding:13px 16px}
.cw-region[data-cw-region="1"] .cw-block-head,
.cw-region[data-cw-region="2"] .cw-block-head,
.cw-region[data-cw-region="3"] .cw-block-head{margin-bottom:10px}
.cw-block-head h2{font-size:14.5px}
.cw-block-head p{margin-top:2px;font-size:11.5px}
.cw-footer{padding-top:9px;margin-top:0}
/* ===== WB39 END ===== */

/* ===== WB40 ① 区标签统一宽度 + 解释性小字不显示（勿手改） ===== */
/* 1) 标签统一宽（原 92px，2026-11-01 起改为共用变量 --ux-label-w=100px，三模块同一基准）：
     原来标签是 auto 宽度，「合同名称（自动生成）」把控件顶到 x=766，
     而「负责人」的控件在 x=579，同一列差 187px；甲乙两行也因标签长短不一错开 29px。
     100px 是按三模块最长标签实测定的（报价「质保期限（月）」13px ≈ 91px）。间距用 6px，
     与 style.css:1794 强制的 .cw-origin-field{gap:6px!important} 保持一致，否则业务来源那一列会错 2px。 */
.cw-region[data-cw-region="1"] .cw-region-body>label{grid-template-columns:var(--ux-label-w) minmax(0,1fr);column-gap:6px;white-space:nowrap}
.cw-region[data-cw-region="1"] .cw-region-body>label>:is(input,select,textarea){min-width:0}
.cw-region[data-cw-region="1"] .cw-origin-field .cw-field-label{flex:0 0 var(--ux-label-w);white-space:nowrap}
.cw-region[data-cw-region="1"] .cw-ro-field{column-gap:6px}
.cw-region[data-cw-region="1"] .cw-ro-field>span{flex:0 0 var(--ux-label-w);white-space:nowrap}
/* 改名按钮原来按「标签在上、输入框在下」定在 top:26px，标签并与控件同行后会掉出框外，改垂直居中 */
.cw-region[data-cw-region="1"] .cw-name-edit{top:50%;transform:translateY(-50%);right:6px;width:24px;height:22px}
/* 采购合同的「生效日期 / 截止日期」没有显式定位，自动落成 1 列（124px），
   92px 标签一放，日期输入框只剩 26px（只剩日历图标）。让它们跨 2 列，与其它字段同宽。 */
.cw-region[data-cw-region="1"] .cw-region-body>label:has(>input[type="date"]){grid-column:span 2}

/* 付款方式(4字) / 账期(2字) 标签统一 52px，两个控件左边缘对齐 */
.cw-pay-edit.cm-pay-summary .cm-pay-row>span{flex:0 0 52px}

/* 2) 只解释「系统怎么运作」的小字不再显示；黄框「当前没有适用的已发布合同模板」、
      提交前核对的核对结果、付款计划读取状态都保留（那些是状态不是解释）。 */
#action-form .cw-block-head>div>p,
#action-form .cw-field-hint,
#action-form .cw-biz-note,
#action-form .cw-pay-hint,
#action-form .cw-pc-head>span{display:none!important}

/* 采购页「采购合同先行」下面那句解释也去掉（同类小字） */
#action-form .cw-region[data-cw-region="1"] section>p{display:none!important}

@media(max-width:900px){
  /* 窄屏放不下 80px 标签，回到自然宽度 */
  .cw-region[data-cw-region="1"] .cw-region-body>label{grid-template-columns:auto minmax(0,1fr)!important}
  .cw-region[data-cw-region="1"] .cw-origin-field .cw-field-label,
  .cw-region[data-cw-region="1"] .cw-ro-field>span{flex:0 0 auto}
}
/* ===== WB40 END ===== */

/* ===== WB42 三模块设计规范：一套参数（2026-11-01，勿在此段内手改数值） =====
   分工说明：
   - 变量只在这里定义一次；改字号/高度/间距改这里，三个模块同时生效。
   - 各模块的「落地规则」写在各模块自己的样式表末尾：
     order_ui.css（订单，index.html 里最后加载）、quote_create.css（报价单据页）、
     quote_ux.css（报价首页）。它们后加载，同权重天然覆盖本文件，不需要 !important。
   - 合同模块的样式本来就住在 style.css，所以合同的落地规则在本段。
   - 不再使用 !important 的理由：把表单控件限定成「字段容器的直接子元素」、把报价限定到
     具体字段容器之后，明细行结构上就不会被匹配，不需要反向压制。 */

:root{
  --ux-list-h1:28px;    /* 首页主标题（合同管理基准） */
  --ux-h1:24px;         /* 单据页（新建/编辑）主标题 */
  --ux-sec:16px;        /* 区域标题 */
  --ux-label:13px;      /* 表单标签 */
  --ux-field:14px;      /* 表单内容 */
  --ux-th:12.5px;       /* 表头 */
  --ux-td:13px;         /* 表格正文 */
  --ux-note:12.5px;     /* 辅助说明 / 副标题 / 提示（三模块同一档，原来是 12/13/14 三值） */
  --ux-btn-fs:13.5px;   /* 按钮文字（原来是 13.5 与 14.4 两值） */
  --ux-ctl-h:36px;      /* 控件/按钮高度 */
  --ux-item-fs:12.5px;  /* 明细行控件字号（比表单紧凑一档）。三模块共用：原 13px 时合同另写 12.5px，
                           同一行里名称框与数值框字号不一致；统一 12.5 后三模块一致，6 字占位符也放得下 */
  --ux-item-h:32px;     /* 明细行控件高度 */
  --ux-gap:11px;        /* 表单行距 */
  --ux-card-pad:16px;   /* 卡片内边距 */
  --ux-card-gap:14px;   /* 卡片间距 */
  --ux-radius:7px;      /* 控件圆角 */
  --ux-radius-lg:10px;  /* 卡片圆角 */
  --ux-label-w:100px;   /* 标签列宽（三模块唯一基准） */
  --ux-stat-h:88px;     /* 首页统计卡最小高度 */
  --ux-th-bg:#f1f7ff;   /* 表头底色（三模块统一） */
  --ux-row-h:38px;      /* 表头行高（固定值，避免勾选格把整行撑高） */
  --ux-card-pad-in:12px 14px; /* 二级卡片（合同上下文条 / 订单联系人卡）内边距 */
}

/* Shared compact page actions and text navigation. */
:root{--ui-action-gap:8px;--ui-action-weight:500;--ui-link:#245b9b}
.ui-action,.page-head>button.small:not(.link-stat){
 min-height:var(--ux-ctl-h);padding:0 12px;border-radius:var(--ux-radius);
 font-size:var(--ux-btn-fs);font-weight:var(--ui-action-weight);line-height:1.35;white-space:nowrap
}
.ui-breadcrumb{display:flex;align-items:center;gap:var(--ui-action-gap);font-size:var(--ux-field);font-weight:var(--ui-action-weight);color:var(--muted)}
.ui-breadcrumb a,.ui-breadcrumb .ui-crumb-link{color:var(--ui-link)}
.ui-breadcrumb .ui-crumb-link{border:0;background:none;padding:0;font:inherit}
.ui-breadcrumb .ui-crumb-link:is(:hover,:focus-visible){text-decoration:underline;text-underline-offset:3px}
.pux-shell .ui-breadcrumb{margin-bottom:12px}
.ui-breadcrumb [aria-current=page]{color:#253953}
.ui-breadcrumb a:is(:hover,:focus-visible){text-decoration:underline;text-underline-offset:3px}

/* ---------- 合同：首页 ---------- */
.cm-shell .cm-home-head h1{font-size:var(--ux-list-h1);line-height:1.3}
/* 合同首页真正的表格是 table.cm-tb（外层 .cm-tbwrap，卡片 .cm-home-list），不是 .cm-list。
   注意 quote_ux.css 里的 `.qux-main table{font-size:12px}` 与本段同权重且后加载，所以这里多带 .qux-main。 */
.cm-shell .qux-main .cm-tb{font-size:var(--ux-td)}
.cm-shell .qux-main .cm-tb th{
  font-size:var(--ux-th);background:var(--ux-th-bg);line-height:1.4;
  height:var(--ux-row-h);padding:0 8px;vertical-align:middle
}
/* td 必须显式写字号：继承链会被 quote_ux.css 的 `.qux-main table{font-size:12px}` 截断 */
.cm-shell .qux-main .cm-tb td{font-size:var(--ux-td);padding:11px 8px;line-height:1.5}
.cm-shell .cm-tb td small{font-size:11.5px}
.cm-shell .cm-list{padding:var(--ux-card-pad)}
/* 合同首页统计卡的容器是 .cm-stats（不是 .cm-kpis、也不是 .qux-kpi），此处按真实类名收敛 */
.cm-shell .cm-stats{gap:12px;margin-bottom:var(--ux-card-gap)}
.cm-shell .cm-stats .cm-stat{min-height:var(--ux-stat-h);padding:10px 14px;border-radius:var(--ux-radius-lg);align-items:center}
.cm-shell .cm-stats .cm-stat-main strong{font-size:24px;line-height:1.35}
.cm-shell .cm-stats .cm-stat-main small{font-size:12.5px}
/* 窄桌面（≤1280）三模块统一堆叠：合同表格 min-width 756px，留 292px 右栏会把列表挤到横向滚动 */
/* 两栏保持到 1280：原实现在 1440 就整块堆叠，「点左侧合同，右侧详情落到列表下方看不见」。
   合同表 min-width 756 + 右栏 292 + gap 14 实需视口 1275，1280 本就能并排，1440 属过度保守。
   1280 内容区 1023 − 右栏 268 − gap 14 = 列表 741，比 756 少 15px：
   把「业务类型 / 签订日期」让给右栏（右栏合同详情本来就有），同时放开 min-width，避免内部横向滚动。 */
@media(max-width:1439px){
  .cm-shell .cm-layout.cm-home-layout{grid-template-columns:minmax(0,3.05fr) minmax(268px,1fr)}
}
@media(max-width:1499px){
  .cm-shell .cm-home-list .cm-tb{min-width:0}
  .cm-shell .cm-home-list .cm-tb th:nth-child(4),
  .cm-shell .cm-home-list .cm-tb td:nth-child(4),
  .cm-shell .cm-home-list .cm-tb th:nth-child(8),
  .cm-shell .cm-home-list .cm-tb td:nth-child(8){display:none}
}
@media(max-width:1279px){
  .cm-shell .cm-layout.cm-home-layout{grid-template-columns:minmax(0,1fr)}
  .cm-shell .cm-side2{display:grid;grid-template-columns:repeat(auto-fit,minmax(250px,1fr))}
}
.cm-shell .cm-filters :is(input,select){font-size:13px;min-height:var(--ux-ctl-h)}

/* ---------- 合同：单据页 ---------- */
.cw-head .cw-head-text h1{font-size:var(--ux-h1);line-height:1.3}
.cw-form .cw-block{padding:var(--ux-card-pad)}
/* 页顶上下文条不是 .cw-block，是 section.cw-context，单独按二级卡片口径 */
.cw-context{padding:var(--ux-card-pad-in)}
/* 「其他信息」折叠区里的签约地点/交付地点/生效日期/有效期至：与 ① 区同一套左置标签 */
.cw-form .cw-info-rest-body>label{
  display:grid;grid-template-columns:var(--ux-label-w) minmax(0,1fr);column-gap:6px;align-items:center;
  font-size:var(--ux-label);color:#40536b;white-space:nowrap;margin:0
}
.cw-form .cw-info-rest-body>label>:is(input,select,textarea){
  grid-column:2;min-width:0;font-size:var(--ux-field);min-height:var(--ux-ctl-h);padding:6px 10px;border-radius:var(--ux-radius)
}
.cw-form .cw-block-head h2{font-size:var(--ux-sec)}
.cw-form .cw-region .cw-region-body{gap:var(--ux-gap)}
.cw-form .cw-region .cw-region-body>label{font-size:var(--ux-label);color:#40536b}
.cw-form .cw-region .cw-region-body>label>:is(input,select,textarea){
  font-size:var(--ux-field);min-height:var(--ux-ctl-h);padding:6px 10px;border-radius:var(--ux-radius)
}
.cw-form .cw-region .cw-region-body .cw-ro-field>span{font-size:var(--ux-label)}
/* 明细行：与订单/报价同一套紧凑规格（13px / 32px） */
.cw-form .cm-goods-row :is(input,select){font-size:var(--ux-item-fs);min-height:var(--ux-item-h);padding:5px 8px}

@media(max-width:900px){
  /* 窄屏回到「标签自然宽度」，与 WB40 的窄屏规则保持一致顺序 */
  .cw-form .cw-region .cw-region-body>label{font-size:var(--ux-label)}
}
/* ===== WB42 END ===== */
/* ===== WB46 合同 ① 区：甲乙方主体名称必须完整显示（2026-11-01） =====
   原来 甲方/乙方 各占 2/6 列（230px），扣掉 100px 标签只剩 130px，
   「沈阳启致商贸有限公司」这类主体名一律被截断。改为：
   甲方 4/6 + 甲方联系人 2/6 同一行；乙方同理；两个电话并一行。
   6 列栅格、字段顺序、提交载荷均不变，只改 grid 落位。 */
.cw-region[data-cw-region="1"] .cw-region-body>.cw-ord-origin{order:1;grid-column:1/3;grid-row:1}
.cw-region[data-cw-region="1"] .cw-region-body>.cw-ord-name{order:2;grid-column:3/7;grid-row:1}
.cw-region[data-cw-region="1"] .cw-region-body>.cw-ord-biz{order:3;grid-column:1/3;grid-row:2}
.cw-region[data-cw-region="1"] .cw-region-body>.cw-g-owner{order:4;grid-column:3/7;grid-row:2}
.cw-region[data-cw-region="1"] .cw-region-body>.cw-ord-customer{order:5;grid-column:1/5;grid-row:3}
.cw-region[data-cw-region="1"] .cw-region-body>.cw-g-cc{order:6;grid-column:5/7;grid-row:3}
.cw-region[data-cw-region="1"] .cw-region-body>.cw-ord-company{order:7;grid-column:1/5;grid-row:4}
.cw-region[data-cw-region="1"] .cw-region-body>.cw-g-bc{order:8;grid-column:5/7;grid-row:4}
.cw-region[data-cw-region="1"] .cw-region-body>.cw-g-cp{order:9;grid-column:1/4;grid-row:5}
.cw-region[data-cw-region="1"] .cw-region-body>.cw-g-bp{order:10;grid-column:4/7;grid-row:5}
.cw-region[data-cw-region="1"] .cw-region-body>.cw-info-rest{order:11;grid-column:1/7;grid-row:6}
.cw-region[data-cw-region="1"] .cw-region-body>.cm-contract-clause-picker{order:12;grid-column:1/7;grid-row:7}
/* 采购场景：甲方=我方(company)、乙方=供应商(customer)，行位要跟着翻转，
   否则会出现「乙方主体 + 甲方联系人」同行的错配。 */
.cw-form.cw-is-purchase .cw-region[data-cw-region="1"] .cw-region-body>.cw-ord-company{grid-row:3}
.cw-form.cw-is-purchase .cw-region[data-cw-region="1"] .cw-region-body>.cw-ord-customer{grid-row:4}
/* 只读值允许换行，宁可行高一点也不要截断主体名称 */
.cw-region[data-cw-region="1"] .cw-ro-field>span{overflow-wrap:anywhere;line-height:1.5}
@media(max-width:900px){
  .cw-region[data-cw-region="1"] .cw-region-body>*{grid-column:1/-1!important;grid-row:auto!important}
}
/* ===== WB46 END ===== */

/* ===== WB51 合同「商品明细」列宽与操作按钮（2026-11-02 第五轮）=====
   实测（1440）：原来 8 列为 28 | 1.45fr | .7fr | 34 | 46 | 60 | 70 | 72，
   「单价 33622.00」只有 60px（内边距各 6px → 输入框 48px）被裁、「¥336,220.00」在 70px 里溢出，
   而规格型号列只是一个显示「—」的 span，没有独立检索。本轮：
   ① 规格型号改成与名称并列的独立搜索框（见 contract_management.js）；
   ② 数字列按「真实值必须完整」重排：单位 40 / 数量 50 / 单价 74 / 金额 88 / 操作 84；
   ③ 复制类操作按钮与订单、报价统一成 24px 高、11.5px、6px 圆角。 */
@media (min-width:951px){
    /* 金额列 96→110：合同侧实测 ¥37,876,396.00 在 96px 格子里被裁 3px，金额列不参与挤压 */
    .cw-region-body .cm-goods-head,
    .cw-region-body .cm-goods-row{grid-template-columns:28px minmax(0,1.8fr) minmax(0,1.1fr) 40px 50px 74px 110px 88px;gap:5px}
  .cw-region-body .cm-goods-head span{font-size:12.5px;font-weight:600;color:#4b6b90}
  .cw-region-body .cm-goods-head{background:#f1f7ff;min-height:34px;padding:0 6px;border-radius:7px 7px 0 0;align-items:center}
  .cw-region-body .cm-goods-head span{display:flex;align-items:center;height:34px}
  .cw-region-body .cm-goods-head span:nth-child(1),
  .cw-region-body .cm-goods-head span:nth-child(4),
  .cw-region-body .cm-goods-head span:nth-child(8){justify-content:center}
  .cw-region-body .cm-goods-head span:nth-child(5),
  .cw-region-body .cm-goods-head span:nth-child(6),
  .cw-region-body .cm-goods-head span:nth-child(7){justify-content:flex-end}
  .cw-region-body .cm-goods-row{padding:5px 6px}
  .cw-region-body .cm-goods-row .cm-goods-seq{font-size:12px;color:#6b7f96;text-align:center;line-height:30px}
  .cw-region-body .cm-goods-row .cm-goods-unit{font-size:12px;color:#41597a;text-align:center;line-height:30px}
  .cw-region-body .cm-goods-row :is(input,select){height:30px;min-height:30px;padding:0 6px;font-size:12.5px;border-radius:6px;box-sizing:border-box}
  .cw-region-body .cm-goods-row .cm-goods-qty input,
  .cw-region-body .cm-goods-row .cm-goods-price input{text-align:right;font-variant-numeric:tabular-nums}
  .cw-region-body .cm-goods-row [data-line-amount]{text-align:right;font-size:13px;font-weight:600;color:#193251;font-variant-numeric:tabular-nums;white-space:nowrap;overflow:hidden}
  .cw-region-body .cm-goods-row .cm-goods-ops{display:flex;align-items:center;justify-content:flex-end;gap:4px;flex-wrap:nowrap}
  .cw-region-body .cm-goods-row .cm-goods-ops button{
    height:24px;min-height:0;padding:0 7px;font-size:11.5px;font-weight:600;line-height:1;
    border:1px solid #e2e9f2;border-radius:6px;background:#fff;color:#3b6ea8;cursor:pointer;white-space:nowrap;
  }
  .cw-region-body .cm-goods-row .cm-goods-ops button:hover{background:#f4f8fd;border-color:#c3d4e8}
  .cw-region-body .cm-goods-row .cm-goods-ops button.cw-line-del{color:#d05c5c;border-color:#f0d9d9}
  .cw-region-body .cm-goods-row .cm-goods-ops button.cw-line-del:hover{background:#fdf3f3;border-color:#e8bcbc}
  /* 数字输入框的上下箭头会吃掉 ~14px（实测数量框 1234 被裁 8px），与订单一样关掉 */
  .cw-region-body .cm-goods-row input[type=number]{-moz-appearance:textfield}
  .cw-region-body .cm-goods-row input[type=number]::-webkit-inner-spin-button,
  .cw-region-body .cm-goods-row input[type=number]::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}
  /* 合同总金额与表格右边界同一条竖线 */
  /* 合同总金额与表格右边界同一条竖线。该元素是 display:flex（1324 行），
     text-align:right 对 flex 容器不起作用，必须用 justify-content 才能推到右侧 —— 
     实测只写 text-align 时总金额仍贴在表格左下角。 */
  .cw-region-body .cm-goods-total{display:flex;justify-content:flex-end;align-items:baseline;text-align:right;font-variant-numeric:tabular-nums}
}
/* 951 以下的卡片式：规格型号与名称各占一行，避免半宽格里输入框只剩 60px */
@media (max-width:950px){
  .cw-region-body .cm-goods-row .cm-goods-spec{grid-column:1/-1}
  .cw-region-body .cm-goods-row .cm-goods-ops{display:flex;justify-content:flex-end;gap:6px}
  .cw-region-body .cm-goods-row .cm-goods-ops button{
    height:24px;min-height:0;padding:0 8px;font-size:11.5px;font-weight:600;line-height:1;
    border:1px solid #e2e9f2;border-radius:6px;background:#fff;color:#3b6ea8;cursor:pointer;width:auto;
  }
  .cw-region-body .cm-goods-row .cm-goods-ops button.cw-line-del{color:#d05c5c;border-color:#f0d9d9}
}

/* ==========================================================================
   WB59 · 合同首页右栏 sticky（2026-11-03 第十轮）
   合同首页在 ≤1279 已转单栏，所以这里从 1280 起生效；详情页的 .cm-side 不动。
   ========================================================================== */
@media (min-width: 1280px) {
  .cm-shell .cm-home-layout > .cm-side2 {
    position: sticky;
    top: var(--ux-sticky-top, 12px);
    max-height: calc(100vh - var(--ux-sticky-top, 12px) - 16px);
    overflow: auto;
    overscroll-behavior: contain;
  }
}

/* ===== 订单五阶段状态条（order_ui.js ouiStageStrip，2026-11-05） =====
   五段等宽，窄屏自动换行；状态色只用四种语义（完成 / 可办理 / 缺条件 / 不涉及），
   不引入新的主题变量，跟随既有的浅色底 + 深色文字。 */
.oui-stage-strip{display:flex;flex-wrap:wrap;gap:8px;padding:12px 14px;margin:0 0 12px;
  background:#f6f9fd;border:1px solid #e2e8f0;border-radius:var(--ux-radius-lg,10px)}
.oui-stage{flex:1 1 150px;min-width:0;padding:8px 10px;border-radius:var(--ux-radius,7px);
  background:#fff;border:1px solid #e2e8f0;display:flex;flex-direction:column;gap:3px}
.oui-stage-name{font-size:var(--ux-label,13px);font-weight:650;color:#1d2c40}
.oui-stage-state{font-size:var(--ux-note,12.5px);color:#64748b}
.oui-stage-note{font-size:var(--ux-note,12.5px);color:#526276;line-height:1.5}
.oui-stage-done{background:#eef7f2;border-color:#cfe6da}
.oui-stage-done .oui-stage-state{color:#1c7251}
.oui-stage-ready{background:#eef4fd;border-color:#cfdff3}
.oui-stage-ready .oui-stage-state{color:#285080}
.oui-stage-doing{background:#fff8e9;border-color:#f0dfbe}
.oui-stage-doing .oui-stage-state{color:#8a5a12}
.oui-stage-blocked{background:#fdf0f0;border-color:#f0cccc}
.oui-stage-blocked .oui-stage-state{color:#a23939}
.oui-stage-na{background:#f5f7fa;border-color:#e6ebf1;opacity:.85}
.oui-stage-next{margin-top:2px;flex:1 1 100%;font-size:var(--ux-note,12.5px);color:#3d5d85}
@media (max-width:700px){.oui-stage{flex:1 1 100%}}

.visual-search select{min-width:72px}
.visual-main-grid #regional-attention{margin-top:12px}

.pux-flow-disclosure{padding:8px var(--ux-card-pad);margin:0 0 var(--ux-card-gap)}
.pux-flow-disclosure summary{cursor:pointer;font-size:var(--ux-field)}
