* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
  background: #f0f2f5;
  color: #333;
  min-height: 100vh;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  background: #fff;
  border-bottom: 1px solid #e8e8e8;
}

.topbar h1 { font-size: 18px; font-weight: 600; }

.month-picker { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.month-picker input {
  padding: 6px 10px;
  border: 1px solid #d9d9d9;
  border-radius: 6px;
  font-size: 14px;
}

main { max-width: 1400px; margin: 0 auto; padding: 24px; }

.upload-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.card {
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 10px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.card.loaded { border-color: #52c41a; }
.card-title { font-size: 15px; font-weight: 600; }
.card-desc { font-size: 12px; color: #999; min-height: 18px; }

.upload-btn {
  display: inline-block;
  padding: 7px 16px;
  border: 1px dashed #1677ff;
  color: #1677ff;
  border-radius: 6px;
  cursor: pointer;
  font-size: 13px;
  text-align: center;
}
.upload-btn:hover { background: #e6f4ff; }

.card-status { font-size: 12px; color: #999; word-break: break-all; }
.card.loaded .card-status { color: #52c41a; }

.actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px 0;
}

.btn {
  padding: 9px 28px;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  cursor: pointer;
}
.btn.primary { background: #1677ff; color: #fff; }
.btn.success { background: #52c41a; color: #fff; }
.btn:disabled { background: #d9d9d9; color: #fff; cursor: not-allowed; }
.btn:not(:disabled):hover { opacity: 0.85; }

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

.warnings {
  background: #fffbe6;
  border: 1px solid #ffe58f;
  border-radius: 8px;
  padding: 12px 16px;
  margin-bottom: 20px;
  font-size: 13px;
}
.warnings-title { font-weight: 600; margin-bottom: 6px; }
.warnings ul { padding-left: 20px; max-height: 200px; overflow-y: auto; }
.warnings li { margin: 2px 0; color: #614700; }

.result-meta { font-size: 13px; color: #666; margin-bottom: 8px; }

.table-wrap {
  overflow: auto;
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 8px;
  max-height: 70vh;
}

table { border-collapse: collapse; width: 100%; font-size: 13px; }
th, td {
  border: 1px solid #e8e8e8;
  padding: 7px 10px;
  text-align: center;
  white-space: nowrap;
}
thead th {
  background: #fafafa;
  font-weight: 600;
  position: sticky;
  top: 0;
  z-index: 1;
}
tbody tr:nth-child(even) { background: #fafafa; }
tbody tr.new-person { background: #fff7e6; }
tbody tr.new-person:hover { background: #ffe7ba; }
td.num { text-align: right; font-variant-numeric: tabular-nums; }

.hidden { display: none; }