.ap-page{min-width:0;color:#26333c}.ap-head{margin-bottom:12px;display:flex;align-items:flex-start;justify-content:space-between;gap:16px}.ap-head h1{margin:0;font-size:20px;line-height:28px}.ap-head p{margin:3px 0 0;color:#5f6b73;font-size:13px}.ap-head>div:last-child{display:flex;gap:8px}.ap-btn{height:36px;padding:0 16px;border:1px solid #cfd8dd;border-radius:4px;background:#fff;color:#26333c;font-size:14px;cursor:pointer}.ap-btn:hover{border-color:#177d70;color:#177d70}.ap-btn:focus-visible,.ap-page input:focus,.ap-page select:focus{outline:0;border-color:#177d70;box-shadow:0 0 0 2px rgba(23,125,112,.1)}.ap-btn.primary{border-color:#177d70;background:#177d70;color:#fff}.ap-btn.primary:hover{background:#1c9483}.ap-metrics{margin-bottom:12px;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));border:1px solid #e4eaee;border-radius:7px;background:#fff;box-shadow:0 2px 10px rgba(27,53,68,.06);overflow:hidden}.ap-metrics article{min-width:0;padding:12px 16px;border-right:1px solid #e4eaee}.ap-metrics article:last-child{border-right:0}.ap-metrics span,.ap-metrics strong,.ap-metrics small{display:block}.ap-metrics span{color:#5f6b73;font-size:12px}.ap-metrics strong{margin:1px 0;color:#26333c;font-size:24px;line-height:30px}.ap-metrics small{overflow:hidden;color:#788791;font-size:12px;text-overflow:ellipsis;white-space:nowrap}.ap-metrics .warning{background:#fffbf3}.ap-metrics .warning strong{color:#9a6416}.ap-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}.ap-tabs{height:43px;padding:0 16px;display:flex;gap:28px;border-bottom:1px solid #e4eaee}.ap-tabs button{position:relative;border:0;background:transparent;color:#5f6b73;font-size:14px;cursor:pointer}.ap-tabs button.active{color:#177d70;font-weight:600}.ap-tabs button.active:after{content:"";position:absolute;right:0;bottom:-1px;left:0;height:2px;background:#177d70}.ap-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}.ap-filters{padding:12px 16px;display:flex;align-items:flex-end;gap:10px;border-bottom:1px solid #e4eaee;flex-wrap:wrap}.ap-filters label{width:150px}.ap-filters label.wide{width:260px}.ap-filters label span,.ap-form-grid label span{margin-bottom:4px;display:block;color:#5f6b73;font-size:12px}.ap-form-grid input,.ap-form-grid select{width:100%;height:32px;padding:0 9px;border:1px solid #cfd8dd;border-radius:4px;background:#fff;color:#26333c}.ap-filter-actions{display:flex;gap:8px}.ap-record-note{min-height:62px;padding:10px 16px;display:flex;justify-content:center;flex-direction:column;border-bottom:1px solid #e4eaee;background:#fafcfc}.ap-record-note strong,.ap-record-note span{display:block}.ap-record-note span{margin-top:2px;color:#5f6b73;font-size:12px}.ap-table-wrap{max-width:100%;overflow:auto}.ap-table{width:100%;min-width:1480px;border-collapse:collapse}.ap-table.records{min-width:1240px}.ap-table th{height:42px;padding:0 12px;border-bottom:1px solid #e4eaee;background:#f5f8fa;color:#5f6b73;font-size:12px;font-weight:600;text-align:left;white-space:nowrap}.ap-table td{height:52px;padding:6px 12px;border-bottom:1px solid #edf1f3;color:#384750;font-size:13px;vertical-align:middle}.ap-table tr:hover td{background:#fbfdfc}.ap-table td strong,.ap-table td small{display:block}.ap-table td small{margin-top:2px;color:#788791;font-size:11px}.ap-table .code{font-family:Consolas,monospace;font-weight:600;white-space:nowrap}.ap-badge{height:24px;padding:0 7px;display:inline-flex;align-items:center;gap:5px;border-radius:4px;background:#eef2f4;color:#65747d;font-size:12px;white-space:nowrap}.ap-badge i{width:6px;height:6px;border-radius:50%;background:currentColor}.ap-badge.success{background:#e3f3f0;color:#12695f}.ap-badge.info{background:#e7f1fa;color:#2f6c9f}.ap-badge.warning{background:#fff2d8;color:#9a6416}.ap-badge.danger{background:#fde9e8;color:#a43e3b}.ap-actions{position:sticky;right:0;min-width:150px;background:#fff;box-shadow:-8px 0 12px -12px rgba(23,36,46,.4);white-space:nowrap}.ap-table tr:hover .ap-actions{background:#fbfdfc}.ap-actions button{padding:3px 6px;border:0;background:transparent;color:#177d70;font-size:12px;cursor:pointer}.ap-pagebar{height:48px;padding:0 16px;display:flex;align-items:center;justify-content:flex-end;gap:8px}.ap-pagebar span{margin-right:4px;color:#788791;font-size:12px}.ap-pagebar button{width:30px;height:30px;border:1px solid #dbe2e6;border-radius:4px;background:#fff}.ap-pagebar button.active{border-color:#177d70;background:#eaf5f3;color:#177d70}.ap-empty{padding:34px;text-align:center}.ap-empty strong,.ap-empty span{display:block}.ap-empty span{margin-top:4px;color:#788791}.ap-mask{position:fixed;inset:0;z-index:1200;padding:4vh 24px;display:grid;place-items:center;background:rgba(17,27,34,.45)}.ap-modal{width:min(1040px,calc(100vw - 48px));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}.ap-modal>header{min-height:68px;padding:12px 18px;display:flex;align-items:flex-start;justify-content:space-between;border-bottom:1px solid #e4eaee}.ap-modal>header h2{margin:0;font-size:16px}.ap-modal>header p{margin:3px 0 0;color:#5f6b73;font-size:12px}.ap-modal>header>button{width:32px;height:32px;border:0;background:transparent;color:#788791;font-size:24px;cursor:pointer}.ap-modal-body{padding:16px;overflow:auto}.ap-form-section+ .ap-form-section{margin-top:16px}.ap-form-section h3{margin:0 0 10px;padding-bottom:7px;border-bottom:1px solid #e4eaee;font-size:14px}.ap-form-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.ap-form-grid .span-2{grid-column:span 2}.ap-form-grid input[readonly],.ap-form-grid select:disabled{background:#f3f6f8;color:#65747d}.ap-help{margin:9px 0 0;padding:8px 10px;border-left:3px solid #4389cc;background:#f1f7fb;color:#5f6b73;font-size:12px}.ap-modal>footer{min-height:60px;padding:11px 18px;display:flex;align-items:center;justify-content:flex-end;gap:8px;border-top:1px solid #e4eaee;background:#fff}.ap-modal.simulator{width:min(880px,calc(100vw - 48px))}.ap-sim-result{margin-top:16px;padding:14px 16px;border:1px solid #cfe5df;border-radius:7px;background:#f1f9f7}.ap-sim-result>span,.ap-sim-result>strong,.ap-sim-result>p{display:block}.ap-sim-result>span{color:#5f6b73;font-size:12px}.ap-sim-result>strong{margin:2px 0;color:#12695f;font-size:20px}.ap-sim-result>p{margin:0;color:#384750;font-size:13px}.ap-sim-result>div{margin-top:12px;display:grid;grid-template-columns:26px 1fr 26px 1fr 26px 1fr;align-items:center;gap:8px}.ap-sim-result b{width:26px;height:26px;display:grid;place-items:center;border-radius:50%;background:#177d70;color:#fff;font-size:12px}.ap-sim-result em{font-size:12px;font-style:normal}.ap-sim-result em:not(:last-child):after{content:"→";float:right;color:#788791}@media(max-width:1200px){.ap-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.ap-metrics article:nth-child(2){border-right:0}.ap-metrics article:nth-child(-n+2){border-bottom:1px solid #e4eaee}.ap-form-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:760px){.ap-head{flex-direction:column}.ap-head>div:last-child{align-self:flex-end}.ap-metrics{grid-template-columns:1fr}.ap-metrics article{border-right:0;border-bottom:1px solid #e4eaee}.ap-metrics article:last-child{border-bottom:0}.ap-form-grid{grid-template-columns:1fr}.ap-form-grid .span-2{grid-column:auto}.ap-sim-result>div{grid-template-columns:26px 1fr}.ap-sim-result em:after{display:none}}
.ap-col-seq{width:55px;text-align:center;color:#788791;font-weight:500}
.ap-switch{position:relative;display:inline-flex;align-items:center;gap:8px;cursor:pointer;user-select:none}
.ap-switch input{position:absolute;opacity:0;width:0;height:0}
.ap-slider{position:relative;width:34px;height:18px;border-radius:9px;background:#d8e0e4;transition:.2s}
.ap-slider:before{content:"";position:absolute;width:14px;height:14px;left:2px;bottom:2px;background:#fff;border-radius:50%;transition:.2s;box-shadow:0 1px 3px rgba(0,0,0,.2)}
.ap-switch input:checked + .ap-slider{background:#177d70}
.ap-switch input:checked + .ap-slider:before{transform:translateX(16px)}
.ap-switch-label{font-size:12px;color:#5f6b73;min-width:24px}
.ap-switch input:checked ~ .ap-switch-label{color:#12695f;font-weight:600}
.ap-table{min-width:1720px}
.ap-table.records{min-width:1480px}
.ap-table th,.ap-table td{white-space:nowrap!important}
.ap-actions button.danger{color:#dc5b57}.ap-actions button.danger:hover{text-decoration:underline}
.ap-scope-cell{display:inline-block;max-width:280px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;cursor:help;color:#177d70}
.ap-scope-cell:hover{text-decoration:underline}
.ap-category-badge{display:inline-block;padding:2px 7px;border-radius:4px;background:#eef6f5;color:#12695f;font-size:12px;white-space:nowrap}

/* 筛选条件样式严格对齐平台规范与用户截图标准 */
.ap-filters{padding:12px 16px;display:flex;align-items:center;gap:8px;border-bottom:1px solid #e4eaee;background:#fff;flex-wrap:wrap}
.ap-filters select,
.ap-filter-select{
  width:auto!important;
  flex:0 0 auto!important;
  min-width:96px;
  height:32px!important;
  border:1px solid #dce3e6!important;
  border-radius:4px;
  background-color:#fff;
  color:#65747d;
  font-size:13px;
  font-weight:400;
  padding:0 8px!important;
  outline:0;
  box-sizing:border-box;
}
.ap-filters select:focus,
.ap-filter-select:focus{
  border-color:#177d70!important;
  color:#26333c;
  box-shadow:0 0 0 2px rgba(23,125,112,.1);
}
.ap-filter-daterange{
  display:inline-flex;
  align-items:center;
  gap:4px;
  flex:0 0 auto;
}
.ap-filter-daterange .ap-split{
  color:#788791;
  font-size:12px;
  user-select:none;
  margin:0 1px;
}
.ap-filters .ap-filter-daterange input[type=date]{
  width:125px!important;
  flex:0 0 125px!important;
  height:32px!important;
  border:1px solid #dce3e6!important;
  border-radius:4px;
  background-color:#fff;
  color:#65747d;
  font-size:12px;
  padding:0 6px!important;
  outline:0;
  box-sizing:border-box;
}
.ap-filters .ap-filter-daterange input[type=date]:focus{
  border-color:#177d70!important;
  color:#26333c;
  box-shadow:0 0 0 2px rgba(23,125,112,.1);
}
.ap-filters .ap-search{
  width:220px!important;
  flex:0 0 220px!important;
  height:32px!important;
  display:flex;
  align-items:center;
  border:1px solid #d6dfe3;
  border-radius:4px;
  background:#fff;
  box-sizing:border-box;
}
.ap-filters.ap-record-filters .ap-search{
  width:160px!important;
  flex:0 0 160px!important;
}
.ap-filters .ap-search:focus-within{
  border-color:#177d70;
  box-shadow:0 0 0 2px rgba(23,125,112,.1);
}
.ap-filters .ap-search span{
  padding-left:8px;
  color:#788791;
  font-size:15px;
  line-height:1;
  pointer-events:none;
}
.ap-filters .ap-search input{
  min-width:0;
  width:100%!important;
  height:30px!important;
  padding:0 6px!important;
  border:0!important;
  outline:0;
  font-size:13px;
  color:#26333c;
  background:transparent;
}
.ap-filter-actions{
  display:inline-flex;
  align-items:center;
  gap:8px;
  flex:0 0 auto;
}
.ap-filter-actions .ap-btn{
  height:32px!important;
  line-height:30px;
  padding:0 14px!important;
  border-radius:4px;
  font-size:13px!important;
  cursor:pointer;
  flex:0 0 auto;
  box-sizing:border-box;
}
.ap-filter-actions .ap-btn.primary{
  background:#177d70!important;
  border:1px solid #177d70!important;
  color:#fff!important;
}
.ap-filter-actions .ap-btn.primary:hover{
  background:#14695e!important;
  border-color:#14695e!important;
}
.ap-filter-actions .ap-btn:not(.primary){
  background:#fff!important;
  border:1px solid #cfd8dd!important;
  color:#26333c!important;
}
.ap-filter-actions .ap-btn:not(.primary):hover{
  border-color:#177d70!important;
  color:#177d70!important;
}
.ap-form-grid .span-all,.apf-name-label{grid-column:1/-1!important;width:100%!important}
.apf-name-label input{width:100%!important;box-sizing:border-box!important}

/* ================= 预警策略与执行记录：操作列固定、表头字段固定与查看对齐 ================= */
.ap-table-wrap{
  position: relative;
  max-width: 100%;
  overflow: auto;
}
/* 1. 执行记录与策略表格表头字段纵向固定 */
.ap-table thead th{
  position: sticky;
  top: 0;
  z-index: 3;
  background: #f5f8fa;
}
/* 2. 操作列表头右上角双向固定，不随横向和纵向滚动条移动 */
.ap-table thead th:last-child{
  position: sticky!important;
  top: 0;
  right: 0;
  z-index: 6;
  background: #f5f8fa!important;
  box-shadow: -6px 0 10px -4px rgba(27,53,68,0.12)!important;
}
/* 3. 执行记录与策略表格操作列单元格右侧固定，不随横向滚动条移动 */
.ap-table td.ap-actions{
  position: sticky!important;
  right: 0;
  z-index: 2;
  background: #fff!important;
  box-shadow: -6px 0 10px -4px rgba(27,53,68,0.12)!important;
}
.ap-table tbody tr:hover td.ap-actions{
  background: #fbfdfc!important;
}

/* 4. 操作表头显示位置与查看垂直严格对齐 */
/* 4.1 执行记录（单按钮查看）：表头【操作】与单元格【查看】左边缘精准对齐 */
.ap-table.records th:last-child{
  width: 80px!important;
  min-width: 80px!important;
  text-align: left!important;
  padding-left: 17px!important;
  padding-right: 8px!important;
}
.ap-table.records td.ap-actions{
  width: 80px!important;
  min-width: 80px!important;
  text-align: left!important;
  padding-left: 14px!important;
  padding-right: 8px!important;
}
/* 4.2 策略管理（多按钮查看、编辑、删除）：表头【操作】与首按钮【查看】左边缘精准对齐 */
.ap-table:not(.records) th:last-child{
  width: 140px!important;
  min-width: 140px!important;
  text-align: left!important;
  padding-left: 17px!important;
  padding-right: 12px!important;
}
.ap-table:not(.records) td.ap-actions{
  width: 140px!important;
  min-width: 140px!important;
  text-align: left!important;
  padding-left: 14px!important;
  padding-right: 12px!important;
}
.ap-actions button{
  padding: 3px 5px!important;
  border: 0;
  background: transparent;
  color: #177d70;
  font-size: 13px!important;
  cursor: pointer;
  margin-right: 6px;
}
.ap-actions button:last-child{
  margin-right: 0!important;
}

