/* 平台自定义样式（Element Plus 样式来自 /vendor/element-plus.index.css） */

[v-cloak] { display: none; }

html, body, #app { height: 100%; margin: 0; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
               "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background: #f5f7fa;
}

.boot-screen {
  display: flex; height: 100%;
  align-items: center; justify-content: center;
  color: #909399; font-size: 14px;
}

/* ---------- 登录 / 强制改密 ---------- */
.login-wrap {
  display: flex; height: 100%;
  align-items: center; justify-content: center;
  background: linear-gradient(160deg, #eef3fb, #f7f9fc);
}
.login-card { width: 380px; }
.login-title { margin: 0; font-size: 18px; text-align: center; color: #303133; }
.login-submit { width: 100%; }
.form-error { margin-bottom: 12px; }

/* ---------- 主框架 ---------- */
.layout { height: 100vh; }

.app-header {
  display: flex; align-items: center; justify-content: space-between;
  background: #fff; border-bottom: 1px solid #e4e7ed;
}
.brand { font-size: 16px; font-weight: 600; color: #303133; }
.header-right { display: flex; align-items: center; gap: 12px; }
.tenant-label { color: #909399; font-size: 13px; }
.user-name { color: #303133; font-size: 14px; }

.app-aside { background: #fff; border-right: 1px solid #e4e7ed; }
.app-aside .el-menu { border-right: none; }
.app-main { background: #f5f7fa; }

/* ---------- 总览 ---------- */
.stat-card { text-align: center; }
.stat-label { color: #909399; font-size: 13px; }
.stat-value { font-size: 22px; font-weight: 600; color: #303133; margin-top: 4px; }
.stat-sub { color: #c0c4cc; font-size: 12px; margin-top: 2px; height: 16px; }
.panel-title { font-weight: 600; color: #303133; }
.section-row { margin-top: 16px; }

/* ---------- 页头工具条（邮箱池 / 用户管理 / 审计日志） ---------- */
.page-toolbar {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 12px;
}
.page-title { font-size: 16px; font-weight: 600; color: #303133; }

/* ---------- 邮箱池 ---------- */
.filter-card { margin-bottom: 16px; }
.pager { margin-top: 16px; display: flex; justify-content: flex-end; }
.clickable-table .el-table__row { cursor: pointer; }

/* ---------- 邮箱详情抽屉 ---------- */
.detail-body { min-height: 200px; }
.detail-group { margin-bottom: 18px; }
.detail-empty { color: #c0c4cc; }

/* ---------- 用户管理 ---------- */
.form-hint { color: #909399; font-size: 12px; margin-left: 8px; }
.grant-block { margin-top: 4px; }
.grant-title { font-size: 13px; color: #606266; margin-bottom: 8px; }
.grant-tag { margin: 2px 4px 2px 0; }
.one-time-pwd {
  font-family: Menlo, Consolas, monospace; font-size: 18px; letter-spacing: 1px;
  background: #f5f7fa; border: 1px dashed #dcdfe6; border-radius: 4px;
  padding: 12px; text-align: center; user-select: all; word-break: break-all;
}

/* ---------- 审计日志 ---------- */
.audit-detail { padding: 4px 24px 8px 48px; }
.audit-detail .el-descriptions { margin-bottom: 8px; }
