/* 成果导出·整页分析面板：参考 RuoYi(RuoYi-Vue3/Element) 后台规范重设计，
   配色沿用雾霁兰青主题。结构 = 标题栏 → 查询区卡片 → 工具行 → 选择列表格 → 底部统计。 */
#exportPanel {
  --green: #3d9fcc;
  --green2: #568ce2;
  --ex-primary: #3d9fcc;
  --ex-border: #ebeef5;
  --ex-head: #f8f8f9;
  --ex-hover: #f5f7fa;
  font-family: "HarmonyOS Sans SC", "HarmonyOS Sans", "MiSans", "PingFang SC", "Microsoft YaHei", sans-serif;
  position: absolute; left: calc(var(--sb) + clamp(8px, 1.5vw, 24px)); right: clamp(8px, 1.5vw, 24px);
  top: 58px; bottom: 46px; z-index: 23;
  display: flex; flex-direction: column; overflow: hidden;
  color: #16191c; font-size: 14px;
  background: #f5f7fa;
  border: 1px solid var(--ex-border); border-radius: 4px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, .1);
}
#exportPanel.hidden { display: none; }

/* 标题栏(RuoYi el-card header 风格) */
.ex-head { display: flex; align-items: center; gap: 10px; min-height: 50px; padding: 10px 15px;
  background: #fff; border-bottom: 1px solid var(--ex-border); }
.ex-mark { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 4px;
  background: var(--ex-primary); color: #fff; font-size: 15px; }
.ex-title b { display: block; color: #303133; font-size: 16px; font-weight: 700; line-height: 1.3; }
.ex-title span { display: block; color: #909399; font-size: 12px; }
#exClose { margin-left: auto; width: 28px; height: 28px; border: none; background: none; color: #909399;
  font-size: 18px; line-height: 28px; cursor: pointer; border-radius: 4px; }
#exClose:hover { color: #409eff; background: #ecf5ff; }

/* 查询区卡片(RuoYi 搜索表单) */
.ex-toolbar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  margin: 14px 15px 0; padding: 13px 15px; background: #fff;
  border: 1px solid var(--ex-border); border-radius: 4px; }
.ex-field { display: flex; align-items: center; gap: 8px; font-size: 14px; color: #606266; }
.ex-field select { min-width: 200px; padding: 7px 24px 7px 10px; font-size: 13px; color: #606266;
  font-family: inherit; border: 1px solid #dcdfe6; border-radius: 4px; background: #fff; outline: none; cursor: pointer; }
.ex-field select:focus { border-color: var(--ex-primary); }
.ex-field.hidden { display: none; }
.ex-actions { display: flex; gap: 8px; margin-left: auto; }
#exExport { padding: 8px 20px; font-size: 13px; font-family: inherit; border: none;
  border-radius: 4px; cursor: pointer; color: #fff; background: var(--ex-primary); transition: background .15s; }
#exExport:hover { background: #2f8bb3; }

/* 工具行(RuoYi mb8 toolbar)：筛选开关 + 统计 + 状态 */
.ex-tablebar { display: flex; align-items: center; gap: 14px; padding: 12px 15px 0; font-size: 13px; color: #606266; }
.ex-checkall { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; user-select: none; color: #606266; }
.ex-checkall input { width: 14px; height: 14px; accent-color: var(--ex-primary); cursor: pointer; }
.ex-checkall { display: inline-flex; align-items: center; gap: 7px; font-weight: 700; color: #111416; cursor: pointer; }
.ex-checkall input { width: 15px; height: 15px; accent-color: #0e8a80; cursor: pointer; }
.ex-switch { display: inline-flex; align-items: center; gap: 7px; cursor: pointer; user-select: none; }
.ex-switch input { display: none; }
.ex-switch i { position: relative; width: 34px; height: 18px; border-radius: 9px; background: #dcdfe6; transition: background .2s; }
.ex-switch i::after { content: ""; position: absolute; top: 2px; left: 2px; width: 14px; height: 14px;
  border-radius: 50%; background: #fff; transition: left .2s; box-shadow: 0 0 2px rgba(0,0,0,.2); }
.ex-switch input:checked + i { background: var(--ex-primary); }
.ex-switch input:checked + i::after { left: 18px; }
#exCount { color: #606266; }
#exStatus { margin-left: auto; font-size: 13px; color: #67c23a; }
#exStatus.err { color: #f56c6c; }

/* 楼栋勾选：自适应多列卡片(2~3列随宽度/数量自动)，只保留勾选框+名称 */
#exTableWrap { flex: 1; margin: 10px 15px 15px; overflow: auto; background: #fff;
  border: 1px solid var(--ex-border); border-radius: 4px; padding: 12px; }
/* 楼栋勾选：按容器宽度自动均分填满每一行，放不下的自动换到下一行；极窄窗口不撑破容器 */
.ex-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr)); gap: 10px; }
.ex-card { display: flex; align-items: center; gap: 9px; min-width: 0; padding: clamp(8px, .7vw, 12px) clamp(10px, .9vw, 14px); border: 1px solid var(--ex-border);
  border-radius: 4px; background: #fafbfc; cursor: pointer; transition: background .12s, border-color .12s; }
.ex-card:hover { background: #dceff4; border-color: var(--ex-primary); }
.ex-card.on { background: #dceff4; border-color: var(--ex-primary); }
.ex-card input[type="checkbox"] { flex: none; width: 14px; height: 14px; accent-color: var(--ex-primary); cursor: pointer; }
.ex-card-name { font-size: clamp(12px, .95vw, 14px); color: #303133; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ex-card.blocked { background: #f4f4f5; border-color: #e9e9eb; cursor: not-allowed; }
.ex-card.blocked:hover { background: #f4f4f5; border-color: #e9e9eb; }
.ex-card.blocked .ex-card-name { color: #c0c4cc; }

/* 底部统计条(RuoYi pagination 位置) */
.ex-foot { padding: 9px 12px; font-size: 12.5px; color: #909399; text-align: right;
  background: #fff; border-top: 1px solid var(--ex-border); }

/* 空态 */
.ex-empty { display: grid; place-items: center; height: 100%; color: #909399; font-size: 14px; padding: 20px; text-align: center; }

.ex-field select { max-width: 260px; }
