.dwm-page{--dwm-primary:#177d70;min-width:0}
.dwm-head{margin-bottom:12px;display:flex;align-items:flex-start;justify-content:space-between;gap:20px}
.dwm-head h1{margin:0;color:#26333c;font-size:20px;line-height:28px}
.dwm-head p{margin:3px 0 0;color:#5f6b73;font-size:13px}
.dwm-layout{min-height:calc(100vh - 145px);display:grid;grid-template-columns:208px minmax(0,1fr);gap:12px;align-items:start}
.dwm-tree{min-width:0;border:1px solid #e4eaee;border-radius:7px;background:#fff;box-shadow:0 2px 10px rgba(27,53,68,.06);overflow:hidden}
.dwm-tree-search{position:relative;height:53px;padding:10px;display:flex;align-items:center;border-bottom:1px solid #e4eaee;background:#fbfcfd}
.dwm-tree-search>span{position:absolute;left:11px;top:50%;transform:translateY(-50%);width:30px;height:30px;display:grid;place-items:center;color:#788791;font-size:16px;line-height:1;pointer-events:none}
.dwm-tree-search input{box-sizing:border-box;min-width:0;width:100%;height:32px;padding:0 10px 0 32px;border:1px solid #cfd8dd;border-radius:4px;outline:0;color:#26333c;font:13px "Microsoft YaHei",sans-serif}
.dwm-tree-search input:focus{border-color:#177d70;box-shadow:0 0 0 2px rgba(23,125,112,.1)}
.dwm-tree-scroll{padding:6px 7px 10px;overflow:auto}
.dwm-tree button{width:100%;min-height:36px;padding:6px 8px;display:flex;align-items:center;gap:5px;border:0;border-radius:4px;background:transparent;color:#384750;text-align:left;cursor:pointer}
.dwm-tree button:hover{background:#f3f7f6}.dwm-tree button.selected{background:#eaf5f3;color:#12695f;font-weight:600}
.dwm-tree button em{margin-left:auto;color:#788791;font-size:11px;font-style:normal}.dwm-tree-toggle{width:16px;color:#788791;text-align:center}
.dwm-tree-label{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.dwm-tree-node.level-1>button{padding-left:22px}.dwm-tree-node.level-2>button{padding-left:38px}
.dwm-tree-empty{padding:28px 8px;color:#788791;font-size:12px;text-align:center}
.dwm-btn{height:32px;padding:0 14px;border:1px solid #cfd8dd;border-radius:4px;background:#fff;color:#26333c;font:13px "Microsoft YaHei",sans-serif;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;transition:all .15s}
.dwm-btn:hover{border-color:#177d70;color:#177d70}
.dwm-btn.primary{border-color:#177d70;background:#177d70;color:#fff}
.dwm-btn.primary:hover{border-color:#1c9483;background:#1c9483}
.dwm-btn.danger-btn{border-color:#dc5b57;background:#dc5b57;color:#fff}
.dwm-btn.danger-btn:hover{border-color:#b7322e;background:#b7322e}
.dwm-btn:disabled{border-color:#e4eaee;background:#eef2f4;color:#aab5bc;cursor:not-allowed}

.dwm-card{min-width:0;border:1px solid #e4eaee;border-radius:7px;background:#fff;box-shadow:0 2px 10px rgba(27,53,68,.06);overflow:hidden}
.dwm-tabs{height:43px;padding:0 16px;display:flex;gap:26px;border-bottom:1px solid #e4eaee}
.dwm-tabs button{position:relative;border:0;background:transparent;color:#5f6b73;font-size:14px;cursor:pointer}
.dwm-tabs button.active{color:#177d70;font-weight:600}
.dwm-tabs button.active:after{content:"";position:absolute;right:0;bottom:-1px;left:0;height:2px;background:#177d70}
.dwm-tabs em{min-width:20px;height:20px;margin-left:4px;padding:0 5px;display:inline-grid;place-items:center;border-radius:10px;background:#eef2f4;color:#65747d;font-size:11px;font-style:normal}
.dwm-tabs button.active em{background:#eaf5f3;color:#12695f}

/* 筛选工具栏：扁平单行 32px 高度，与现场问题等模块保持一致 */
.dwm-filters{min-height:56px;padding:10px 14px;display:flex;align-items:center;flex-wrap:wrap;gap:8px;border-bottom:1px solid #e4eaee;background:#fff}
.dwm-filters>select{width:116px}
.dwm-filters .btn:disabled{border-color:#e4eaee;background:#eef2f4;color:#aab5bc;cursor:not-allowed}
.dwm-filter-select{width:126px;height:32px;padding:0 10px;border:1px solid #dce3e6;border-radius:4px;background:#fff;color:#65747d;font:13px "Microsoft YaHei",sans-serif;outline:0}
.dwm-filter-select:focus{border-color:#177d70;color:#26333c;box-shadow:0 0 0 2px rgba(23,125,112,.1)}
.dwm-filters select,.dwm-form input,.dwm-form select,.dwm-form textarea{height:32px;padding:0 10px;border:1px solid #cfd8dd;border-radius:4px;background:#fff;color:#26333c;font:13px "Microsoft YaHei",sans-serif;outline:0}
.dwm-filters select:focus,.dwm-form input:focus,.dwm-form select:focus,.dwm-form textarea:focus{border-color:#177d70;box-shadow:0 0 0 2px rgba(23,125,112,.1)}
.dwm-toolbar-actions{display:flex;align-items:center;gap:8px;margin-left:auto}

/* 表格主体 */
.dwm-table-wrap{min-width:0;overflow:auto}
.dwm-table-wrap table{width:100%;min-width:1320px;border-collapse:collapse}
.dwm-table-wrap th{height:42px;padding:0 10px;background:#f5f8fa;color:#5f6b73;font-size:12px;font-weight:600;text-align:left;white-space:nowrap}
.dwm-table-wrap td{height:48px;padding:6px 10px;border-top:1px solid #e9eef1;color:#26333c;font-size:13px;vertical-align:middle;white-space:nowrap!important}
.dwm-table-wrap tbody tr:hover{background:#fbfdfc}
.dwm-col-seq{text-align:center;color:#788791;font-weight:500}
.dwm-table-wrap td strong,.dwm-table-wrap td small{display:block}
.dwm-table-wrap td strong{font-size:13px;font-weight:500}
.dwm-table-wrap td small{margin-top:2px;color:#788791;font-size:11px}
.dwm-cell-text{display:block!important;overflow:hidden;text-overflow:ellipsis;white-space:nowrap!important}.dwm-w-line{max-width:86px}.dwm-w-mileage{max-width:150px}.dwm-w-site{max-width:170px}.dwm-w-zone-type{max-width:100px}.dwm-w-zone{max-width:160px}.dwm-w-period{max-width:255px}.dwm-w-reason{max-width:190px;color:#5f6b73;font-size:12px}

.dwm-plan-cb,#dwmSelectAll{width:16px;height:16px;cursor:pointer;accent-color:#177d70;vertical-align:middle}

.dwm-status{height:24px;padding:0 8px;display:inline-flex;align-items:center;gap:5px;border-radius:4px;font-size:12px;white-space:nowrap}
.dwm-status i{width:6px;height:6px;border-radius:50%;background:currentColor}
.dwm-status.success{background:#e3f3f0;color:#12695f}
.dwm-status.info{background:#e7f1fa;color:#2f6c9f}
.dwm-status.warning{background:#fff2d8;color:#9a6416}
.dwm-status.neutral{background:#eef2f4;color:#65747d}

.dwm-actions{position:sticky;right:0;min-width:130px;background:#fff;box-shadow:-8px 0 10px -12px rgba(38,51,60,.5);white-space:nowrap}
.dwm-table-wrap th:last-child{position:sticky;right:0;z-index:2;background:#f5f8fa}
.dwm-table-wrap tr:hover .dwm-actions{background:#fbfdfc}
.dwm-actions button{padding:3px 5px;border:0;background:transparent;color:#177d70;cursor:pointer;font-size:13px}
.dwm-actions button:hover{text-decoration:underline}
.dwm-actions button.danger{color:#dc5b57}
.dwm-actions button.danger:hover{color:#b7322e}
.dwm-actions button+button{margin-left:4px}

.dwm-empty{padding:32px;text-align:center}
.dwm-empty strong,.dwm-empty span{display:block}
.dwm-empty span{margin-top:4px;color:#788791}
.dwm-pagination{height:48px;padding:0 14px;display:flex;align-items:center;justify-content:flex-end;gap:6px;border-top:1px solid #e4eaee;background:#fff}
.dwm-pagination span{margin-right:6px;color:#5f6b73;font-size:12px}
.dwm-pagination button{width:30px;height:30px;border:1px solid #d8e0e4;border-radius:4px;background:#fff;cursor:pointer}
.dwm-pagination button.active{border-color:#177d70;background:#177d70;color:#fff}

/* 经典弹窗样式 */
.dwm-mask{position:fixed;z-index:2000;inset:0;display:grid;place-items:center;padding:20px;background:rgba(17,27,34,.5)}
.dwm-modal{width:min(820px,calc(100vw - 40px));max-height:92vh;display:flex;flex-direction:column;border-radius:8px;background:#fff;box-shadow:0 16px 40px rgba(23,36,46,.18);overflow:hidden}
.dwm-modal header{min-height:62px;padding:13px 20px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #e4eaee}
.dwm-modal header h2{margin:0;font-size:16px}
.dwm-modal header p{margin:2px 0 0;color:#788791;font-size:12px}
.dwm-modal header p b,.dwm-form label b{color:#dc5b57}
.dwm-modal header>button{width:32px;height:32px;border:0;background:transparent;color:#788791;font-size:22px;cursor:pointer}
.dwm-modal-body{padding:20px;overflow:auto}
.dwm-modal footer{min-height:58px;padding:10px 20px;display:flex;align-items:center;justify-content:flex-end;gap:10px;border-top:1px solid #e4eaee;background:#fbfcfd}

/* 经典双列栅格表单与联动区域 */
.dwm-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));column-gap:20px;row-gap:16px}
.dwm-form label{min-width:0;display:block}.dwm-form label span{margin-bottom:6px;display:block;color:#5f6b73;font-size:13px;line-height:20px}
.dwm-form label.full,.dwm-form .full{grid-column:1/-1}
.dwm-form input,.dwm-form select,.dwm-form textarea{width:100%;box-sizing:border-box}
.dwm-form textarea{height:72px;padding-top:8px;resize:vertical}
.dwm-form-note{padding:10px 12px;border-left:3px solid #177d70;background:#f1f9f7;color:#5f6b73;font-size:12px;line-height:20px}

.dwm-dynamic-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));column-gap:20px;row-gap:16px}

/* 详情与变更记录 */
.dwm-detail{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));border:1px solid #e4eaee;border-radius:4px;overflow:hidden}
.dwm-detail>div{padding:10px 12px;border-right:1px solid #e4eaee;border-bottom:1px solid #e4eaee}
.dwm-detail>div:nth-child(2n){border-right:0}
.dwm-detail span,.dwm-detail strong{display:block}
.dwm-detail span{color:#788791;font-size:11px}
.dwm-detail strong{margin-top:2px;font-size:13px}

.dwm-changelog-wrap{margin-top:16px}
.dwm-changelog-head{margin-bottom:8px}
.dwm-changelog-head strong{font-size:14px;color:#26333c}
.dwm-changelog-table-wrap{border:1px solid #e4eaee;border-radius:4px;overflow:hidden;background:#fff}
.dwm-changelog-table{width:100%;border-collapse:collapse}
.dwm-changelog-table th{height:36px;padding:0 10px;background:#f5f8fa;color:#5f6b73;font-size:12px;font-weight:600;text-align:left;border-bottom:1px solid #e4eaee}
.dwm-changelog-table td{padding:8px 10px;border-top:1px solid #eef2f4;color:#26333c;font-size:12px;vertical-align:top;line-height:18px}
.dwm-changelog-table tbody tr:first-child td{border-top:0}
.dwm-log-before{color:#788791;background:#fafbfc}
.dwm-log-after{color:#177d70;font-weight:500}

/* 导入组件与模板下载 */
.dwm-import-guide{padding:14px 16px;border:1px solid #e4eaee;border-radius:6px;background:#f8fafb}
.dwm-import-guide strong{display:block;color:#26333c;font-size:14px}
.dwm-import-desc{margin-top:5px;color:#5f6b73;font-size:12px;line-height:20px}
.dwm-import-solution{margin-top:10px;padding:8px 12px;border-radius:4px;background:#eef6f5;border-left:3px solid #177d70;color:#18544d;font-size:12px;line-height:19px}
.dwm-import-solution b{color:#0d463f}
.dwm-template-downloads{margin-top:12px;display:flex;flex-wrap:wrap;gap:8px;align-items:center}
.dwm-template-downloads span{font-size:12px;color:#5f6b73;font-weight:500}
.dwm-template-btn{height:28px;padding:0 12px;display:inline-flex;align-items:center;gap:5px;border:1px solid #cfd8dd;border-radius:4px;background:#fff;color:#26333c;font-size:12px;cursor:pointer;transition:all .15s}
.dwm-template-btn:hover{border-color:#177d70;color:#177d70;background:#f4faf8}
.dwm-template-btn.primary{border-color:#177d70;background:#177d70;color:#fff}
.dwm-template-btn.primary:hover{border-color:#1c9483;background:#1c9483}
.dwm-upload{min-height:170px;margin-top:14px;display:flex;align-items:center;justify-content:center;flex-direction:column;border:1px dashed #9fb1b9;border-radius:7px;background:#fafcfc;cursor:pointer}
.dwm-upload:hover{border-color:#177d70;background:#f4faf8}
.dwm-upload input{display:none}
.dwm-upload i{width:40px;height:40px;margin-bottom:8px;display:grid;place-items:center;border-radius:50%;background:#eaf5f3;color:#177d70;font-size:22px;font-style:normal}
.dwm-upload span{margin-top:4px;color:#788791;font-size:12px}
.dwm-file-result{margin-top:12px;padding:10px 12px;border:1px solid #e4eaee;border-radius:4px;color:#788791;font-size:12px}
.dwm-file-result strong,.dwm-file-result span{display:block}
.dwm-file-result strong{color:#26333c}

@media(max-width:1200px){
  .dwm-layout{grid-template-columns:184px minmax(0,1fr)}
  .dwm-filters{gap:8px}
  .dwm-toolbar-actions{width:auto}
}
@media(max-width:760px){
  .dwm-head{flex-direction:column}
  .dwm-filter-item{width:100%}
  .dwm-form,.dwm-dynamic-grid,.dwm-detail{grid-template-columns:1fr}
  .dwm-form label.full,.dwm-form .full{grid-column:auto}
  .dwm-detail>div{border-right:0}
  .dwm-detail>div:last-child{border-bottom:0}
}
