/* 教职工考核统计系统 — 全局样式 */

html, body, #app {
  height: 100%;
  margin: 0;
  padding: 0;
  background: #f5f7fa;
  font-family: "Helvetica Neue", Helvetica, "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", "微软雅黑", Arial, sans-serif;
}

/* ---------- 登录页 ---------- */
.login-wrap {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #eef3fb 0%, #dfeafc 100%);
}
.login-card {
  width: 380px;
  padding: 8px 12px 4px;
}
.login-title {
  font-size: 22px;
  font-weight: 600;
  text-align: center;
  color: #303133;
  margin-top: 8px;
}
.login-sub {
  text-align: center;
  color: #909399;
  font-size: 13px;
  margin: 6px 0 20px;
}
.login-btn {
  width: 100%;
  margin-top: 4px;
}

/* ---------- 整体布局 ---------- */
.layout {
  height: 100%;
}
.layout-aside {
  background: #fff;
  border-right: 1px solid #e4e7ed;
  display: flex;
  flex-direction: column;
}
.brand {
  padding: 18px 16px 14px;
  border-bottom: 1px solid #f0f2f5;
}
.brand-name {
  font-size: 16px;
  font-weight: 600;
  color: #303133;
}
.brand-sub {
  font-size: 12px;
  color: #a8abb2;
  margin-top: 4px;
}
.layout-menu {
  border-right: none;
  flex: 1;
}
.layout-header {
  background: #fff;
  border-bottom: 1px solid #e4e7ed;
  display: flex;
  align-items: center;
  padding: 0 20px;
}
.header-user {
  color: #303133;
  font-size: 14px;
}
.layout-main {
  padding: 20px 24px;
  overflow-y: auto;
}

/* ---------- 通用 ---------- */
.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.page-header h2 {
  margin: 0;
  font-size: 20px;
  color: #303133;
}
.toolbar-spacer {
  flex: 1;
}
.form-tip {
  font-size: 12px;
  color: #909399;
  line-height: 1.6;
  width: 100%;
}
.year-range {
  display: flex;
  align-items: center;
}
.year-sep {
  margin: 0 8px;
  color: #909399;
}

/* ---------- 批次工作台 ---------- */
.batch-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}
.batch-title {
  margin: 0;
  font-size: 20px;
  color: #303133;
}
.batch-tabs {
  background: #fff;
  padding: 4px 16px 16px;
  border-radius: 6px;
  border: 1px solid #e4e7ed;
}
.tab-toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.tab-alert {
  margin-bottom: 14px;
}
.locked-tip {
  color: #e6a23c;
  font-size: 13px;
}

/* ---------- 导入报错列表 ---------- */
.import-errors {
  margin-top: 12px;
}
.import-errors-title {
  color: #f56c6c;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
}
.import-errors-list {
  max-height: 240px;
  overflow-y: auto;
  border: 1px solid #fde2e2;
  background: #fef0f0;
  border-radius: 4px;
  padding: 8px 12px;
}
.import-error-row {
  color: #f56c6c;
  font-size: 13px;
  line-height: 1.9;
  border-bottom: 1px dashed #fbc4c4;
}
.import-error-row:last-child {
  border-bottom: none;
}

/* ---------- 分数矩阵 ---------- */
.el-table td.score-missing {
  background-color: #fdf6ec !important;
}
.score-hint {
  color: #909399;
  font-size: 13px;
}
.score-missing-legend {
  display: inline-block;
  width: 14px;
  height: 14px;
  background: #fdf6ec;
  border: 1px solid #e6a23c;
  vertical-align: -2px;
  margin: 0 2px;
}
.score-missing-count {
  color: #e6a23c;
  font-size: 13px;
  font-weight: 600;
}
.col-sub {
  font-size: 12px;
  color: #a8abb2;
  font-weight: normal;
  line-height: 1.2;
}
.score-total {
  font-weight: 600;
  color: #303133;
}
.score-total-missing {
  color: #e6a23c;
  font-size: 12px;
}

/* ---------- 统计结果 ---------- */
.summary-banner {
  display: flex;
  gap: 16px;
  background: #fff;
  border: 1px solid #e4e7ed;
  border-radius: 6px;
  padding: 16px 8px;
  margin-bottom: 14px;
}
.summary-cell {
  flex: 1;
  text-align: center;
  border-right: 1px solid #f0f2f5;
}
.summary-cell:last-child {
  border-right: none;
}
.summary-num {
  font-size: 26px;
  font-weight: 700;
  color: #409eff;
  line-height: 1.3;
}
.summary-num.summary-warn {
  color: #f56c6c;
}
.summary-label {
  font-size: 13px;
  color: #909399;
  margin-top: 2px;
}
.level-card {
  margin-bottom: 14px;
}
.level-card-header {
  display: flex;
  align-items: center;
  gap: 14px;
}
.level-name {
  font-size: 16px;
  font-weight: 600;
  color: #303133;
}
.level-stats {
  font-size: 13px;
  color: #606266;
}
.tie-bar {
  display: flex;
  align-items: center;
  background: #fdf6ec;
  border: 1px solid #faecd8;
  color: #e6a23c;
  border-radius: 4px;
  padding: 8px 12px;
  font-size: 13px;
  margin-bottom: 10px;
}
.el-table .tie-pending-row td {
  background-color: #fdf6ec !important;
}
.source-manual {
  color: #e6a23c;
  font-weight: 600;
}
.tie-candidates {
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-height: 260px;
  overflow-y: auto;
  padding: 4px 2px;
}
.tie-candidate {
  margin-right: 0;
}
.tie-count {
  margin-top: 10px;
  font-size: 13px;
  color: #f56c6c;
  font-weight: 600;
}
.tie-count.tie-count-ok {
  color: #67c23a;
}
.excluded-collapse {
  margin-top: 6px;
}

/* ---------- 报表导出 ---------- */
.exports-wrap {
  max-width: 720px;
}
.export-card {
  margin-bottom: 14px;
}
.export-desc {
  color: #606266;
  font-size: 13px;
  line-height: 1.8;
  margin: 0 0 12px;
}

/* ---------- 操作日志 ---------- */
.audit-detail {
  margin: 0;
  padding: 8px 16px;
  font-size: 12px;
  color: #606266;
  white-space: pre-wrap;
  word-break: break-all;
  background: #fafafa;
}
.audit-detail-short {
  color: #909399;
  font-size: 12px;
}
.pager-wrap {
  display: flex;
  justify-content: flex-end;
  margin-top: 14px;
}

/* ---------- 历年台账与预警 ---------- */
.warning-card-wrap .warning-item {
  margin-bottom: 10px;
}
.warning-card-wrap .warning-item:last-child {
  margin-bottom: 0;
}
.warning-batches {
  font-size: 12px;
  margin-top: 4px;
}
.history-records {
  margin: 8px 0 8px 48px;
}
.history-inline-rec {
  font-size: 13px;
  color: #606266;
}

/* ---------- 系统设置 ---------- */
.sys-info {
  margin: 0;
  padding-left: 18px;
  color: #606266;
  font-size: 13px;
  line-height: 2;
}
