/* 报销&借款登记系统 */
* { box-sizing: border-box; }
html, body, #app { height: 100%; margin: 0; }
body { font-family: "Microsoft YaHei", "PingFang SC", sans-serif; background: #f0f2f5; }

.login-wrap { height: 100%; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #1f3a5f 0%, #2b5876 100%); }
.login-card { width: 380px; background: #fff; border-radius: 10px; padding: 36px 34px;
  box-shadow: 0 12px 40px rgba(0,0,0,.25); }
.login-card h2 { margin: 0 0 4px; font-size: 20px; color: #1f3a5f; text-align: center; }
.login-card .sub { text-align: center; color: #909399; font-size: 12px; margin-bottom: 24px; }

.layout { height: 100%; display: flex; }
.side { width: 208px; background: #1f3a5f; color: #cfd8e3; display: flex; flex-direction: column; flex-shrink: 0; }
.side .logo { padding: 18px 16px; font-size: 16px; font-weight: 700; color: #fff; border-bottom: 1px solid rgba(255,255,255,.08); }
.side .logo small { display: block; font-size: 11px; font-weight: 400; color: #8fa3bd; margin-top: 2px; }
.side .menu { flex: 1; overflow-y: auto; padding: 8px 0; }
.side .mi { padding: 11px 18px; cursor: pointer; font-size: 14px; display: flex; align-items: center; gap: 8px;
  border-left: 3px solid transparent; }
.side .mi:hover { background: rgba(255,255,255,.06); color: #fff; }
.side .mi.on { background: rgba(64,158,255,.18); color: #fff; border-left-color: #409eff; }
.side .ft { padding: 12px 16px; font-size: 12px; color: #8fa3bd; border-top: 1px solid rgba(255,255,255,.08); }

.main { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.topbar { height: 52px; background: #fff; border-bottom: 1px solid #e4e7ed; display: flex;
  align-items: center; padding: 0 20px; justify-content: space-between; flex-shrink: 0; }
.topbar .ttl { font-size: 16px; font-weight: 600; color: #303133; }
.content { flex: 1; overflow: auto; padding: 16px 20px; }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; margin-bottom: 16px; }
.kcard { background: #fff; border-radius: 8px; padding: 16px 18px; box-shadow: 0 1px 4px rgba(0,0,0,.06); }
.kcard .lb { font-size: 13px; color: #909399; margin-bottom: 8px; }
.kcard .amt { font-size: 22px; font-weight: 700; color: #303133; }
.kcard .amt.red { color: #f56c6c; } .kcard .amt.green { color: #67c23a; } .kcard .amt.blue { color: #409eff; }
.kcard .cnt { font-size: 12px; color: #c0c4cc; margin-top: 4px; }

.panel { background: #fff; border-radius: 8px; padding: 16px; box-shadow: 0 1px 4px rgba(0,0,0,.06); margin-bottom: 14px; }
.panel h3 { margin: 0 0 12px; font-size: 15px; color: #303133; }
.filter-bar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 12px; }
.pager-bar { display: flex; justify-content: space-between; align-items: center; margin-top: 10px; }
.pager-bar .page-info { font-size: 13px; color: #606266; }
.pager-bar .page-info b { color: #409eff; }

.money-pos { color: #f56c6c; font-weight: 600; }
.money-neg { color: #67c23a; font-weight: 600; }
.tag-diff { font-weight: 700; }

.chart-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.chart-box { background: #fff; border-radius: 8px; padding: 14px; box-shadow: 0 1px 4px rgba(0,0,0,.06); }
.chart-box h4 { margin: 0 0 8px; font-size: 14px; color: #606266; }
.chart { height: 300px; }
@media (max-width: 1100px) { .chart-row { grid-template-columns: 1fr; } }

.el-table { --el-table-header-bg-color: #f5f7fa; }
.el-table th.el-table__cell { font-weight: 600; }
.el-table .warn-row { background: #fef0f0 !important; }
