* { box-sizing: border-box; }
body {
  margin: 0; font-family: "Microsoft YaHei", "PingFang SC", "SimSun", sans-serif;
  background: #f3f5f8; color: #1f2d3d; font-size: 14px;
}
.topbar {
  background: #2E5C8A; color: #fff; padding: 0 20px; height: 52px;
  display: flex; align-items: center; justify-content: space-between;
}
.topbar h1 { font-size: 17px; margin: 0; font-weight: 600; }
.topbar .user { font-size: 13px; display: flex; align-items: center; gap: 12px; }
.topbar a { color: #cfe0f2; text-decoration: none; }
.topbar a:hover { color: #fff; }
.container { max-width: 1180px; margin: 18px auto; padding: 0 18px; }
.card {
  background: #fff; border: 1px solid #e3e8ef; border-radius: 8px;
  padding: 16px 18px; margin-bottom: 16px; box-shadow: 0 1px 2px rgba(0,0,0,.04);
}
.card h2 { font-size: 15px; margin: 0 0 12px; color: #2E5C8A; border-left: 4px solid #2E5C8A; padding-left: 8px; }
.row { display: flex; gap: 16px; flex-wrap: wrap; }
.col { flex: 1; min-width: 320px; }
.tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.tab {
  padding: 7px 13px; border: 1px solid #cfd8e3; border-radius: 6px; cursor: pointer;
  background: #f7f9fc; font-size: 13px; user-select: none;
}
.tab.active { background: #2E5C8A; color: #fff; border-color: #2E5C8A; }
.field { margin-bottom: 10px; }
.field label { display: block; font-size: 13px; color: #45556b; margin-bottom: 4px; }
.field label .req { color: #d9534f; margin-left: 2px; }
.field input, .field select {
  width: 100%; padding: 7px 9px; border: 1px solid #cfd8e3; border-radius: 5px;
  font-size: 13px; background: #fff;
}
.field input[readonly] { background: #eef2f7; color: #5a6b80; }
.btn {
  padding: 8px 18px; border: none; border-radius: 6px; cursor: pointer;
  font-size: 13px; font-weight: 600;
}
.btn-primary { background: #2E5C8A; color: #fff; }
.btn-primary:hover { background: #244a72; }
.btn-ghost { background: #eef2f7; color: #2E5C8A; border: 1px solid #cfd8e3; }
.btn-danger { background: #d9534f; color: #fff; }
.btn-sm { padding: 4px 10px; font-size: 12px; }
.actions { display: flex; gap: 10px; margin-top: 8px; }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th, td { border: 1px solid #e3e8ef; padding: 7px 9px; text-align: left; }
th { background: #f0f4f9; color: #45556b; font-weight: 600; }
tbody tr:hover { background: #f7f9fc; }
.tag { display: inline-block; padding: 2px 9px; border-radius: 11px; font-size: 12px; white-space: nowrap; }
.tag-draft { background: #e8eef5; color: #2E5C8A; }
.tag-pending { background: #fff3cd; color: #8a6d00; }
.tag-pass { background: #e3f5e8; color: #1c7a3a; }
.tag-reject { background: #fde2e1; color: #c0392b; }
.amount-box {
  background: #f0f6ff; border: 1px dashed #2E5C8A; border-radius: 6px;
  padding: 10px 14px; margin: 12px 0; font-size: 14px;
}
.amount-box b { color: #2E5C8A; font-size: 18px; }
.notice { padding: 8px 12px; border-radius: 5px; font-size: 13px; margin-bottom: 10px; }
.notice-err { background: #fde2e1; color: #c0392b; }
.notice-ok { background: #e3f5e8; color: #1c7a3a; }
.notice-warn { background: #fff3cd; color: #8a6d00; }
.kpi { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 10px; }
.kpi .box { flex: 1; min-width: 150px; background: #f7f9fc; border: 1px solid #e3e8ef; border-radius: 8px; padding: 14px; }
.kpi .box .n { font-size: 24px; font-weight: 700; color: #2E5C8A; }
.kpi .box .l { font-size: 12px; color: #6b7a8f; margin-top: 3px; }
.login-wrap { max-width: 380px; margin: 80px auto; }
.muted { color: #8a97a8; font-size: 12px; }
.dup-row { background: #fde2e1 !important; }
.file-link { display: inline-block; margin: 2px 0; color: #2E5C8A; text-decoration: none; font-size: 13px; }
.file-link:hover { text-decoration: underline; }
table.detail td { border: 1px solid #eef2f7; }
table.detail td.k { background: #f7f9fc; width: 150px; color: #45556b; }
