/* 多人报表工具 全局样式 */
[v-cloak] {
  display: none;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
  font-size: 14px;
  color: #333;
  background: #f0f2f5;
}

/* ---------------- 登录页 ---------------- */
.login-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #2b5876 0%, #4e4376 100%);
}

.login-card {
  width: 360px;
  padding: 36px 32px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.18);
}

.login-card h1 {
  margin: 0 0 4px;
  font-size: 22px;
  text-align: center;
  color: #2b5876;
}

.login-tip {
  margin: 0 0 24px;
  text-align: center;
  color: #999;
  font-size: 13px;
}

.login-msg {
  margin-top: 12px;
  color: #e04040;
  font-size: 13px;
  text-align: center;
}

/* ---------------- 布局 ---------------- */
.main-wrap {
  min-height: 100vh;
}

.topbar {
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  background: #2b5876;
  color: #fff;
}

.topbar-title {
  font-size: 17px;
  font-weight: bold;
}

.topbar-user {
  display: flex;
  align-items: center;
  gap: 12px;
}

.content {
  max-width: 1280px;
  margin: 16px auto;
  padding: 0 16px;
}

.panel {
  background: #fff;
  border-radius: 6px;
  padding: 16px;
  margin-bottom: 16px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.panel-head h3 {
  margin: 0;
  font-size: 15px;
  color: #2b5876;
}

.toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
}

.row-count {
  color: #999;
  font-size: 13px;
}

/* ---------------- 表单 ---------------- */
.form-item {
  margin-bottom: 14px;
}

.form-item label {
  display: block;
  margin-bottom: 6px;
  color: #666;
  font-size: 13px;
}

.form-item input,
.form-item select {
  width: 100%;
  height: 34px;
  padding: 0 10px;
  border: 1px solid #d9d9d9;
  border-radius: 4px;
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s;
}

.form-item input:focus,
.form-item select:focus {
  border-color: #2b5876;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 16px;
}

.input-keyword {
  width: 260px;
  height: 32px;
  padding: 0 10px;
  border: 1px solid #d9d9d9;
  border-radius: 4px;
  outline: none;
  font-size: 13px;
}

.input-small {
  width: 140px;
  height: 32px;
  padding: 0 8px;
  border: 1px solid #d9d9d9;
  border-radius: 4px;
  outline: none;
  font-size: 13px;
}

/* ---------------- 上传 ---------------- */
.upload-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.upload-row input[type="file"] {
  font-size: 13px;
}

.upload-name {
  color: #666;
  font-size: 13px;
}

/* ---------------- 按钮 ---------------- */
.btn {
  display: inline-block;
  height: 34px;
  padding: 0 16px;
  border: 1px solid transparent;
  border-radius: 4px;
  font-size: 14px;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
  line-height: 32px;
  transition: opacity 0.2s;
}

.btn:hover {
  opacity: 0.85;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-primary {
  background: #2b5876;
  color: #fff;
}

.btn-success {
  background: #52a75a;
  color: #fff;
}

.btn-plain {
  background: #fff;
  border-color: #d9d9d9;
  color: #333;
}

.btn-danger-plain {
  color: #e04040;
}

.btn-link {
  background: none;
  border: none;
  color: #2b5876;
  padding: 0 6px;
  height: auto;
  line-height: 1.8;
}

.btn-block {
  width: 100%;
}

.btn-lg {
  height: 40px;
  line-height: 38px;
  padding: 0 24px;
  font-size: 15px;
}

.generate-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
  flex-wrap: wrap;
}

/* ---------------- 统计配置 ---------------- */
.stats-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 16px 0 8px;
  color: #666;
  font-size: 13px;
}

.stat-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.stat-row select,
.stat-row input {
  height: 32px;
  padding: 0 8px;
  border: 1px solid #d9d9d9;
  border-radius: 4px;
  font-size: 13px;
  outline: none;
}

.stat-row select {
  width: 180px;
}

/* ---------------- 状态标签 ---------------- */
.tag {
  display: inline-block;
  padding: 1px 8px;
  border-radius: 3px;
  font-size: 12px;
  color: #fff;
}

.tag-0 { background: #e6a23c; }  /* 待处理 */
.tag-1 { background: #52a75a; }  /* 已生成 */
.tag-2 { background: #e04040; }  /* 失败 */
