.am-tabs{border-radius:7px 7px 0 0}
.am-filters{padding:12px 16px;display:flex;align-items:center;gap:8px;border:1px solid #e4eaee;border-top:0;background:#fff;flex-wrap:wrap}
.am-filters select{width:auto!important;flex:0 0 auto!important;min-width:92px;height:32px;border:1px solid #dce3e6;border-radius:4px;background-color:#fff;color:#65747d;font-size:13px;font-weight:400;padding:0 8px;outline:0;box-sizing:border-box}
.am-filters select#amFilterType,.am-filters select#amFilterCategory,.am-filters select#amFilterFilteredType{min-width:116px}
.am-filters select:focus{border-color:#177d70;color:#26333c;box-shadow:0 0 0 2px rgba(23,125,112,.1)}
.am-filter-daterange{display:inline-flex;align-items:center;gap:4px;flex:0 0 auto}
.am-daterange-split{color:#788791;font-size:12px;user-select:none;margin:0 1px}
.am-filters .am-filter-date{width:120px!important;flex:0 0 120px!important;height:32px;border:1px solid #dce3e6;border-radius:4px;background-color:#fff;color:#65747d;font-size:12px;padding:0 6px;outline:0;box-sizing:border-box}
.am-filters .am-filter-date:focus{border-color:#177d70;color:#26333c;box-shadow:0 0 0 2px rgba(23,125,112,.1)}
.am-filters .am-search{width:140px;flex:0 0 140px;height:32px;display:flex;align-items:center;border:1px solid #d6dfe3;border-radius:4px;background:#fff;box-sizing:border-box}
.am-filters .am-search:focus-within{border-color:#177d70;box-shadow:0 0 0 2px rgba(23,125,112,.1)}
.am-filters .am-search span{padding-left:8px;color:#788791;font-size:15px;line-height:1;pointer-events:none}
.am-filters .am-search input{min-width:0;width:100%;height:30px;padding:0 6px;border:0;outline:0;font-size:13px;color:#26333c;background:transparent}
.am-filters .am-filter-submit{height:32px;padding:0 14px;border:1px solid #177d70;border-radius:4px;background:#177d70;color:#fff;font-size:13px;cursor:pointer;flex:0 0 auto}
.am-filters .am-filter-submit:hover{background:#14695e;border-color:#14695e}
.am-filters .am-filter-reset{height:32px;padding:0 14px;border:1px solid #cfd8dd;border-radius:4px;background:#fff;color:#26333c;font-size:13px;cursor:pointer;flex:0 0 auto}
.am-filters .am-filter-reset:hover{border-color:#177d70;color:#177d70}
.am-list-tools{min-height:48px;padding:6px 14px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #e4eaee;background:#fff}
.am-tools-left{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.am-tools-right{display:flex;align-items:center;gap:8px;margin-left:auto}
.am-tool-btn{height:30px;padding:0 12px;border-radius:4px;font-size:13px;display:inline-flex;align-items:center;cursor:pointer}
.am-selected-count{font-size:12px;color:#177d70;background:#eaf5f3;padding:3px 8px;border-radius:4px;border:1px solid #c0e0dc}
.am-selected-count b{font-weight:600;margin:0 2px}
.am-column-wrap{position:relative}
.am-column-btn{height:30px;padding:0 10px;border:1px solid #cfd8dd;border-radius:4px;background:#fff;color:#384750;cursor:pointer}
.am-column-btn:hover{border-color:#177d70;color:#177d70}
.am-column-panel{position:absolute;z-index:12;top:35px;right:0;width:260px;padding:12px;border:1px solid #d8e0e4;border-radius:7px;background:#fff;box-shadow:0 12px 28px rgba(23,36,46,.16)}
.am-column-panel>div{height:32px;display:flex;align-items:flex-start;justify-content:space-between;border-bottom:1px solid #e4eaee}
.am-column-panel>div strong{font-size:14px}
.am-column-panel>div button{border:0;background:transparent;color:#177d70;font-size:12px;cursor:pointer}
.am-column-panel label{height:32px;display:flex;align-items:center;gap:8px;color:#384750;font-size:13px}
.am-column-panel label input{width:15px;height:15px;accent-color:#177d70}
.am-column-panel small{padding-top:8px;display:block;border-top:1px solid #e4eaee;color:#788791;font-size:11px}
.am-list-card{position:relative}

/* 表格整体加宽与列间距呼吸感提升 */
.am-table{width:100%!important;min-width:1820px!important;border-collapse:collapse}
.am-table.am-table-filtered{min-width:1600px!important}
.am-table th{height:44px!important;padding:0 18px!important;font-size:13px!important;letter-spacing:0.2px}
.am-table td{height:52px!important;padding:9px 18px!important;font-size:13px!important}
.am-table th,.am-table td{white-space:nowrap!important;word-break:keep-all}
.am-table td strong,.am-table td span{white-space:nowrap!important;display:inline-block}

/* 各字段专属宽裕列宽，防止拥挤 */
.am-table .col-select{width:46px;min-width:46px;max-width:46px;padding:0 8px!important;text-align:center}
.am-table .col-seq{width:60px;min-width:60px;padding:0 8px!important;text-align:center}
.am-seq-cell{text-align:center;color:#65747d;font-variant-numeric:tabular-nums}
.am-table .col-time{min-width:176px}
.am-table .col-type{min-width:116px}
.am-table .col-subType{min-width:126px}
.am-table .col-level{min-width:92px;text-align:center}
.am-table .col-line{min-width:106px}
.am-table .col-site{min-width:230px}
.am-table .col-device{min-width:230px}
.am-table .col-lifecycle{min-width:102px;text-align:center}
.am-table .col-confirmUser{min-width:100px}
.am-table .col-confirmTime{min-width:176px}
.am-table .col-closeUser{min-width:100px}
.am-table .col-closeTime{min-width:176px}
.am-table .col-filterType{min-width:116px;text-align:center}
.am-table .col-rule{min-width:330px}
.am-table .col-product{min-width:116px;text-align:center}
.am-table .col-mileage{min-width:126px}
.am-table .col-falseAlarm{min-width:96px;text-align:center}
.am-table .col-wait{min-width:106px}
.am-table .col-disposal{min-width:116px}

/* ================= 操作列固定与对齐（满足用户最新强制要求） ================= */
/* 1. 表格容器与表头字段固定 */
.am-table-wrap{
  position: relative;
  max-width: 100%;
  overflow: auto;
}
.am-table thead th{
  position: sticky;
  top: 0;
  z-index: 3;
  background: #f5f8fa;
}
/* 2. 操作列表头右上角双向固定，不随滚动条滚动 */
.am-table thead th.col-actions{
  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. 操作列单元格右侧固定，不随横向滚动条滚动 */
.am-table td.am-actions,
.am-table td.col-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;
}
.am-table tbody tr:hover td.am-actions,
.am-table tbody tr:hover td.col-actions{
  background: #fbfdfc!important;
}

/* 4. 操作表头显示位置与查看垂直精准对齐 */
/* 4.1 有效预警操作列：多按钮宽度 170px，表头【操作】与首按钮【查看】左边缘垂直严格对齐 */
.am-table:not(.am-table-filtered) th.col-actions{
  min-width: 170px!important;
  width: 170px!important;
  text-align: left!important;
  padding-left: 17px!important;
  padding-right: 12px!important;
}
.am-table:not(.am-table-filtered) td.am-actions{
  min-width: 170px!important;
  width: 170px!important;
  text-align: left!important;
  padding-left: 14px!important;
  padding-right: 12px!important;
}
.am-actions button{
  padding: 3px 5px;
  border: 0;
  background: transparent;
  color: #177d70;
  cursor: pointer;
  margin-right: 6px;
  font-size: 13px;
}
.am-actions button:last-child{
  margin-right: 0!important;
}

/* 4.2 过滤预警操作列：单按钮宽度 90px，表头【操作】与单按钮【查看】左边缘垂直严格对齐 */
.am-table-filtered th.col-actions{
  min-width: 90px!important;
  width: 90px!important;
  text-align: left!important;
  padding-left: 17px!important;
  padding-right: 8px!important;
}
.am-table-filtered td.col-actions{
  min-width: 90px!important;
  width: 90px!important;
  text-align: left!important;
  padding-left: 14px!important;
  padding-right: 8px!important;
}
.am-table-filtered td.col-actions .am-act-btn{
  margin: 0!important;
}

.am-pagebar{height:48px;padding:0 14px;display:flex;align-items:center;justify-content:space-between;border-top:1px solid #e4eaee;background:#fff}
.am-pagebar-info{color:#788791;font-size:12px}
.am-pagebar-pages{display:flex;align-items:center;gap:6px}
.am-filters select#amFilterSite{min-width:140px}
.am-btn.is-disabled,.am-btn:disabled{opacity:0.45;cursor:not-allowed!important}

/* ================= 预警详情深色沉浸界面（还原截图2与截图3） ================= */
.am-detail-mask{position:fixed;z-index:2100;inset:0;background:#15232d;color:#e1eef4;display:flex;flex-direction:column;overflow:hidden;font-family:-apple-system,BlinkMacSystemFont,"PingFang SC","Segoe UI","Hiragino Sans GB",sans-serif}
.am-detail-header{height:46px;padding:0 20px;display:flex;align-items:center;justify-content:space-between;background:#121e27;border-bottom:1px solid #233745;flex-shrink:0}
.am-detail-header-left,.am-detail-header-right{display:flex;align-items:center;gap:24px}
.am-detail-tabs{display:flex;gap:28px;height:46px}
.am-detail-tab-btn{position:relative;height:100%;padding:0 4px;border:0;background:transparent;color:#94a8b3;font-size:13px;cursor:pointer;display:inline-flex;align-items:center;transition:color .2s}
.am-detail-tab-btn:hover{color:#d6e6ee}
.am-detail-tab-btn.active{color:#20bcec;font-weight:600}
.am-detail-tab-btn.active:after{content:"";position:absolute;bottom:0;left:0;right:0;height:2px;background:#20bcec}
.am-detail-close-btn{width:32px;height:32px;border:0;background:transparent;color:#20bcec;font-size:20px;display:inline-grid;place-items:center;cursor:pointer;border-radius:4px;transition:background .2s}
.am-detail-close-btn:hover{background:rgba(32,188,236,0.12)}

.am-detail-content{flex:1;min-height:0;display:grid;grid-template-columns:minmax(0,1fr) 360px;position:relative}
.am-detail-media-container{position:relative;background:#0d1820;overflow:hidden;display:flex;flex-direction:column}
.am-detail-viewport{flex:1;position:relative;width:100%;height:100%;overflow:hidden;display:flex;align-items:center;justify-content:center}
.am-detail-viewport svg{width:100%;height:100%;display:block}

/* 翻页圆球与指示器 */
.am-detail-nav-btn{position:absolute;top:50%;transform:translateY(-50%);width:40px;height:40px;border-radius:50%;background:rgba(18,36,49,0.72);border:1px solid rgba(32,188,236,0.4);color:#20bcec;font-size:22px;display:flex;align-items:center;justify-content:center;cursor:pointer;z-index:10;transition:all .2s;user-select:none}
.am-detail-nav-btn:hover{background:rgba(32,188,236,0.25);border-color:#20bcec;box-shadow:0 0 12px rgba(32,188,236,0.35)}
.am-detail-nav-prev{left:20px}
.am-detail-nav-next{right:20px}
.am-detail-pager{position:absolute;bottom:14px;right:20px;color:#cbd9df;font-size:12px;font-family:Consolas,monospace;letter-spacing:0.5px;z-index:10;user-select:none}

/* 场景图图例卡片 */
.am-legend-card{position:absolute;top:18px;right:18px;width:170px;padding:12px 14px;background:rgba(21,43,62,0.85);backdrop-filter:blur(4px);border:1px solid #234c6e;border-radius:6px;z-index:10;color:#fff;font-size:12px;box-shadow:0 4px 16px rgba(0,0,0,0.3)}
.am-legend-card-title{font-size:13px;font-weight:600;margin-bottom:8px;color:#fff}
.am-legend-row{display:flex;align-items:center;gap:8px;margin:6px 0;color:#cfdee6;font-size:11.5px}
.am-legend-line{width:16px;height:3px;border-radius:1px;display:inline-block;flex-shrink:0}
.am-legend-toggle{margin-top:10px;padding-top:8px;border-top:1px solid rgba(255,255,255,0.12);display:flex;align-items:center;justify-content:space-between;color:#cfdee6;font-size:11.5px}
.am-switch{position:relative;display:inline-block;width:34px;height:18px}
.am-switch input{opacity:0;width:0;height:0}
.am-slider{position:absolute;cursor:pointer;inset:0;background-color:#385266;border-radius:18px;transition:.2s}
.am-slider:before{position:absolute;content:"";height:14px;width:14px;left:2px;bottom:2px;background-color:#fff;border-radius:50%;transition:.2s}
.am-switch input:checked + .am-slider{background-color:#20bcec}
.am-switch input:checked + .am-slider:before{transform:translateX(16px)}

/* 右侧边栏 */
.am-detail-sidebar{background:#111f29;border-left:1px solid #233745;padding:18px 20px;overflow-y:auto;display:flex;flex-direction:column;gap:18px}
.am-block-title{display:flex;align-items:center;gap:7px;color:#20bcec;font-size:15px;font-weight:600;margin:0 0 10px 0}
.am-block-title i{width:7px;height:7px;border-radius:50%;background:#20bcec;display:inline-block}

/* 预警信息卡片 */
.am-info-item{display:flex;align-items:center;justify-content:space-between;margin:8px 0;font-size:12.5px;color:#cfdee6}
.am-info-left{display:flex;align-items:center;gap:8px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.am-info-icon{width:16px;color:#7899a8;text-align:center;font-size:14px;flex-shrink:0}
.am-info-link-btn{color:#20bcec;cursor:pointer;background:transparent;border:0;padding:2px;font-size:13px;display:inline-flex;align-items:center}
.am-info-link-btn:hover{color:#64d8fa}

/* 预警处置表单 */
.am-disposal-form{display:flex;flex-direction:column;gap:10px}
.am-radio-group{display:flex;gap:18px;margin-bottom:2px}
.am-radio-label{display:inline-flex;align-items:center;gap:6px;font-size:13px;color:#d3e4ed;cursor:pointer}
.am-radio-label input{accent-color:#20bcec;width:14px;height:14px}
.am-disposal-selects{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.am-detail-select{width:100%;height:32px;background:#0c283f;border:1px solid #1a4f78;border-radius:4px;color:#d6e6ef;font-size:12.5px;padding:0 8px;outline:0}
.am-detail-select:focus{border-color:#20bcec;box-shadow:0 0 0 1px #20bcec}
.am-detail-textarea{width:100%;height:88px;background:#092135;border:1px solid #18486e;border-radius:4px;color:#e8f4fa;font-size:12.5px;padding:8px 10px;outline:0;resize:none;box-sizing:border-box}
.am-detail-textarea:focus{border-color:#20bcec;box-shadow:0 0 0 1px #20bcec}
.am-operator-input-wrap{position:relative;display:flex;align-items:center}
.am-operator-icon{position:absolute;left:10px;color:#6b8b9c;font-size:14px;pointer-events:none}
.am-detail-input{width:100%;height:32px;padding-left:30px;padding-right:8px;background:#0c283f;border:1px solid #1a4f78;border-radius:4px;color:#d6e6ef;font-size:12.5px;outline:0;box-sizing:border-box}
.am-detail-input:focus{border-color:#20bcec}
.am-detail-submit-btn{height:36px;border:0;border-radius:4px;background:#1da9df;color:#fff;font-size:13.5px;font-weight:600;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;transition:background .2s;box-shadow:0 2px 8px rgba(29,169,223,0.3)}
.am-detail-submit-btn:hover{background:#1598cc}

/* 处置流程 */
.am-timeline{display:flex;flex-direction:column;gap:12px;padding-left:6px;margin-top:4px}
.am-timeline-node{display:flex;align-items:flex-start;gap:10px;font-size:12px;color:#b6c8d1;position:relative}
.am-timeline-time{font-family:Consolas,monospace;color:#91a8b5;flex-shrink:0;width:125px}
.am-timeline-point{width:7px;height:7px;border-radius:50%;background:#20bcec;margin-top:4px;flex-shrink:0}
.am-timeline-desc{color:#d8e8f0;line-height:1.4}

/* ================= 批量确认 / 批量销号 弹窗样式（还原用户新附件截图） ================= */
.am-batch-modal-mask{position:fixed;inset:0;z-index:2200;background:rgba(18,28,36,0.62);backdrop-filter:blur(2px);display:flex;align-items:center;justify-content:center;padding:20px;box-sizing:border-box}
.am-batch-modal{width:1080px;max-width:96vw;max-height:92vh;background:#fff;border-radius:6px;box-shadow:0 14px 40px rgba(16,33,46,0.28);display:flex;flex-direction:column;overflow:hidden;animation:amModalIn .2s ease-out}
@keyframes amModalIn{from{opacity:0;transform:scale(0.97)}to{opacity:1;transform:scale(1)}}

.am-batch-header{height:46px;padding:0 20px;background:#0e83ea;color:#fff;display:flex;align-items:center;justify-content:space-between;flex-shrink:0}
.am-batch-header.is-confirm{background:#0e83ea}
.am-batch-title{font-size:15px;font-weight:600;letter-spacing:0.5px}
.am-batch-close-btn{border:0;background:transparent;color:#fff;font-size:22px;line-height:1;cursor:pointer;padding:4px 6px;opacity:0.88;transition:opacity .2s}
.am-batch-close-btn:hover{opacity:1}

.am-batch-body{flex:1;overflow-y:auto;padding:16px 20px 10px;background:#fbfdfe}
.am-batch-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}
.am-batch-card{background:#edf5fa;border:1px solid #dbe8f1;border-radius:4px;padding:10px 10px 8px;cursor:pointer;position:relative;transition:all .18s;display:flex;flex-direction:column}
.am-batch-card:hover{border-color:#1684fc;box-shadow:0 3px 10px rgba(22,132,252,0.12)}
.am-batch-card.is-unselected{opacity:0.55;background:#f5f7f9;border-color:#e4eaee}

.am-batch-card-info{font-size:11.5px;color:#546673;line-height:1.45;margin-bottom:8px}
.am-batch-card-info div{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.am-batch-card-img{position:relative;width:100%;height:130px;background:#0c1a24;border-radius:3px;overflow:hidden;display:flex;align-items:center;justify-content:center}
.am-batch-card-img svg{width:100%;height:100%;display:block}

/* 右上角绿色对勾圆圈 */
.am-batch-badge{position:absolute;top:6px;right:6px;width:22px;height:22px;border-radius:50%;background:#52c41a;color:#fff;display:grid;place-items:center;font-size:13px;font-weight:700;box-shadow:0 2px 6px rgba(0,0,0,0.3);z-index:2;user-select:none;transition:all .15s}
.am-batch-card.is-unselected .am-batch-badge{background:#aab8c2;box-shadow:none}

/* 暂无图片占位（截图3完全还原：黑色底 + 蓝色相册图标 + 暂无图片） */
.am-batch-no-img{width:100%;height:100%;background:#000;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px}
.am-batch-no-img-icon{font-size:36px;line-height:1;color:#1684fc}
.am-batch-no-img-text{color:#1684fc;font-size:12.5px;font-weight:500;letter-spacing:0.5px}

/* 表单区域 */
.am-batch-form{padding:14px 20px 6px;background:#fff;border-top:1px solid #eef2f5;display:flex;flex-direction:column;gap:12px}
.am-batch-row{display:flex;align-items:flex-start;gap:16px}
.am-batch-label{width:70px;flex-shrink:0;font-size:13px;color:#495a64;padding-top:6px;text-align:right}
.am-batch-label .req-star{color:#e02828;margin-right:3px;font-weight:700}
.am-batch-radios{display:flex;gap:22px;align-items:center;height:32px;font-size:13px;color:#26333c}
.am-batch-radios label{display:inline-flex;align-items:center;gap:6px;cursor:pointer}
.am-batch-radios input{accent-color:#1684fc;width:15px;height:15px}

.am-batch-selects{display:flex;gap:12px;width:340px}
.am-batch-select{flex:1;height:32px;border:1px solid #cfd9de;border-radius:4px;background:#fff;color:#26333c;font-size:12.5px;padding:0 8px;outline:0}
.am-batch-select:focus{border-color:#1684fc;box-shadow:0 0 0 2px rgba(22,132,252,0.12)}
.am-batch-textarea{flex:1;width:100%;height:68px;border:1px solid #cfd9de;border-radius:4px;color:#26333c;font-size:12.5px;padding:8px 10px;outline:0;resize:none;box-sizing:border-box}
.am-batch-textarea:focus{border-color:#1684fc;box-shadow:0 0 0 2px rgba(22,132,252,0.12)}

/* 底部操作区 */
.am-batch-footer{padding:12px 20px 16px;background:#fff;display:flex;align-items:center;justify-content:flex-end;gap:12px}
.am-batch-btn-cancel{height:34px;padding:0 18px;border:1px solid #cfd9de;background:#fff;color:#495a64;border-radius:4px;font-size:13px;cursor:pointer;transition:all .18s}
.am-batch-btn-cancel:hover{border-color:#1684fc;color:#1684fc}
.am-batch-btn-submit{height:34px;padding:0 22px;border:0;background:#1684fc;color:#fff;border-radius:4px;font-size:13.5px;font-weight:600;cursor:pointer;transition:background .18s;box-shadow:0 2px 6px rgba(22,132,252,0.25)}
.am-batch-btn-submit:hover{background:#0e75e3}

/* 恢复左侧树搜索框经典样式：全宽输入框、呼吸感边距与清晰占位符 */
.am-tree-search{padding:12px;border-bottom:1px solid #e4eaee;background:#fff}
.am-tree-search input{width:100%!important;height:32px!important;padding:0 10px!important;border:1px solid #cfd8dd!important;border-radius:4px;outline:0;font-size:13px;color:#26333c;background:#fff;box-sizing:border-box}
.am-tree-search input:focus{border-color:#177d70!important;box-shadow:0 0 0 2px rgba(23,125,112,.1)}
.am-tree-empty{padding:16px 12px;text-align:center;color:#788791;font-size:12px}

/* Keep the device search and its actions together when filters wrap. */
.am-page .am-filters .am-filter-search-actions{display:flex;align-items:center;gap:8px;flex:0 0 auto;max-width:100%}
.am-page .am-filters .am-filter-dev-box{width:200px;flex:0 1 200px;min-width:160px}
.am-page .am-filters .am-filter-dev-box input{flex:1;min-width:0;width:0;padding:0 8px}
