:root {
  --pa-sidebar: #191a20;
  --pa-sidebar-text: #a3a6ad;
  --pa-sidebar-active: #409eff;
  --pa-header: #fff;
  --pa-bg: #f0f2f5;
  --pa-card: #fff;
  --pa-border: #ebeef5;
  --pa-text: #303133;
  --pa-muted: #909399;
  --el-color-primary: #409eff;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  font-family: Inter, "Helvetica Neue", Helvetica, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background: var(--pa-bg);
  color: var(--pa-text);
}
a { color: inherit; text-decoration: none; }
button, input, select, textarea {
  font-family: inherit;
  font-size: 13px;
}
.pa-layout { display: flex; min-height: 100vh; }
.pa-aside {
  width: 210px;
  background: var(--pa-sidebar);
  color: #fff;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
}
.pa-logo {
  height: 48px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 16px;
  font-weight: 700;
  letter-spacing: .4px;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.pa-logo span {
  width: 28px; height: 28px; border-radius: 8px;
  background: var(--pa-sidebar-active);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 13px;
}
.pa-menu { padding: 12px 8px; flex: 1; }
.pa-menu a {
  display: flex; align-items: center; gap: 10px;
  height: 42px; padding: 0 12px; margin-bottom: 4px;
  border-radius: 6px; color: var(--pa-sidebar-text); font-size: 14px;
}
.pa-menu a:hover { background: rgba(255,255,255,.06); color: #fff; }
.pa-menu a.active { background: var(--pa-sidebar-active); color: #fff; }
.pa-body { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.pa-header {
  height: 48px; background: var(--pa-header);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 18px;
  box-shadow: 0 1px 4px rgba(0,21,41,.08);
  z-index: 10;
}
.pa-crumb { color: var(--pa-muted); font-size: 13px; }
.pa-crumb b { color: var(--pa-text); font-weight: 600; }
.pa-user { display: flex; align-items: center; gap: 12px; font-size: 13px; color: var(--pa-muted); }
.pa-user button {
  border: 0; background: transparent; color: #409eff; cursor: pointer; font-size: 13px;
}
.pa-content { padding: 16px; flex: 1; }
.pa-card {
  background: var(--pa-card);
  border-radius: 4px;
  padding: 16px 18px;
  box-shadow: 0 0 12px rgba(0,0,0,.05);
}
.pa-toolbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 14px; }
.pa-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.pa-stat {
  background: #fff; border-radius: 4px; padding: 18px 20px;
  box-shadow: 0 0 12px rgba(0,0,0,.05);
}
.pa-stat .label { color: var(--pa-muted); font-size: 13px; }
.pa-stat .value { font-size: 28px; font-weight: 700; margin-top: 8px; color: #303133; }
.pa-stat .hint { margin-top: 8px; color: #67c23a; font-size: 12px; }

.pa-stats-6 { grid-template-columns: repeat(3, 1fr); }
.pa-stat .value.money { color: #409eff; }
.pa-stat .value .yen { font-size: 16px; margin-right: 4px; font-weight: 600; }
.chart-toolbar {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 8px;
}
.chart-toolbar h3 { margin: 0; font-size: 16px; }
.chart-toolbar .filters { display: flex; align-items: center; gap: 8px; }
.chart-box { height: 360px; }
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li {
  display: grid; grid-template-columns: 88px 1fr auto; gap: 12px; align-items: center;
  padding: 12px 0; border-bottom: 1px solid var(--pa-border);
}
.timeline .time { color: #409eff; font-weight: 600; }
.timeline .meta { color: var(--pa-muted); font-size: 12px; margin-top: 4px; }
.timeline .amount { color: #303133; font-weight: 700; }
.timeline-empty { color: var(--pa-muted); padding: 24px 0; text-align: center; }

.pager { display: flex; gap: 8px; align-items: center; margin-top: 16px; }
.pager a, .pager span {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 32px; height: 32px; padding: 0 10px; border: 1px solid #dcdfe6; border-radius: 4px; background: #fff;
}
.pager .current { background: #409eff; border-color: #409eff; color: #fff; }
.detail-list { display: grid; grid-template-columns: 120px 1fr; gap: 10px 16px; }
.detail-list b { color: var(--pa-muted); font-weight: 500; }
.alert { padding: 10px 12px; background: #f0f9eb; color: #67c23a; border-radius: 4px; margin-bottom: 12px; }
.alert-error { background: #fef0f0; color: #f56c6c; }
.alert-warn { background: #fdf6ec; color: #e6a23c; }
.el-like-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.el-like-table th, .el-like-table td {
  border-bottom: 1px solid var(--pa-border);
  padding: 10px 12px; text-align: left; vertical-align: middle;
}
.el-like-table th { background: #f5f7fa; color: #909399; font-weight: 600; }
.el-like-table tr:hover td { background: #f5f7fa; }
.tag { display: inline-block; padding: 0 8px; height: 22px; line-height: 22px; border-radius: 4px; font-size: 12px; }
.tag-green { background: #f0f9eb; color: #67c23a; }
.tag-red { background: #fef0f0; color: #f56c6c; }
.tag-blue { background: #ecf5ff; color: #409eff; }
.tag-gray { background: #f4f4f5; color: #909399; }
.tag-orange { background: #fdf6ec; color: #e6a23c; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 32px; padding: 0 14px; border-radius: 4px; border: 1px solid #dcdfe6;
  background: #fff; color: #606266; cursor: pointer; font-size: 13px;
}
.btn-primary { background: #409eff; border-color: #409eff; color: #fff; }
.btn-success { background: #67c23a; border-color: #67c23a; color: #fff; }
.btn-text { border: 0; background: transparent; color: #409eff; padding: 0 8px; height: auto; }
.btn-danger-text { border: 0; background: transparent; color: #f56c6c; padding: 0 8px; height: auto; }
.btn-text, .btn-danger-text, a.btn-text, button.btn-text, button.btn-danger-text {
  font-family: inherit;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.4;
  cursor: pointer;
  vertical-align: baseline;
}
.table-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2px;
}
.table-actions .btn-text,
.table-actions .btn-danger-text,
.table-actions a,
.el-like-table .btn-text,
.el-like-table .btn-danger-text,
.el-like-table a {
  font-size: 13px;
  font-weight: 400;
}
.drop { position: relative; display: inline-block; }
.drop-menu {
  display: none; position: absolute; top: calc(100% + 4px); left: 0; z-index: 20;
  min-width: 160px; background: #fff; border: 1px solid #dcdfe6; border-radius: 4px;
  box-shadow: 0 8px 24px rgba(0,0,0,.08); padding: 6px 0;
}
.drop.open .drop-menu { display: block; }
.drop-menu a, .drop-menu button {
  display: block; width: 100%; text-align: left; padding: 8px 12px;
  border: 0; background: transparent; color: #606266; font-size: 13px; cursor: pointer;
}
.drop-menu a:hover, .drop-menu button:hover { background: #f5f7fa; }
.muted { color: var(--pa-muted); font-size: 13px; }
.card-secret { max-width: 280px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.batch-bar { display: flex; gap: 8px; align-items: center; margin-top: 12px; flex-wrap: wrap; }
.input, .select, .textarea {
  height: 32px; padding: 0 10px; border: 1px solid #dcdfe6; border-radius: 4px;
  outline: none; font-size: 13px; background: #fff; color: #606266;
}
.textarea { height: auto; padding: 8px 10px; width: 100%; min-height: 90px; }
.input:focus, .select:focus, .textarea:focus { border-color: #409eff; }
.form-grid { display: grid; grid-template-columns: 140px 1fr; gap: 12px 12px; align-items: center; max-width: 720px; }
.form-grid .full { grid-column: 1 / -1; }
.mask {
  display: none; position: fixed; inset: 0; background: rgba(0,0,0,.45);
  z-index: 50; align-items: center; justify-content: center;
}
.mask.open { display: flex; }
.dialog {
  width: 520px; max-width: calc(100vw - 32px); background: #fff; border-radius: 6px; overflow: hidden;
}
.dialog-lg { width: 680px; }
.dialog-hd { padding: 14px 18px; border-bottom: 1px solid var(--pa-border); font-weight: 600; }
.dialog-bd { padding: 18px; }
.dialog-ft { padding: 10px 18px; border-top: 1px solid var(--pa-border); text-align: right; }
.login-page {
  min-height: 100vh; display: grid; grid-template-columns: 1.1fr .9fr;
  background: linear-gradient(135deg, #dbeafe 0%, #eff6ff 40%, #fff 100%);
}
.login-page-simple {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f0f2f5;
}
.login-page-simple .login-form {
  text-align: center;
}
.login-page-simple .login-form h1,
.login-page-simple .login-form p {
  text-align: center;
}
.login-page-simple .login-form input {
  text-align: left;
}
.login-art { display: flex; align-items: center; justify-content: center; padding: 40px; }
.login-art-card {
  width: min(520px, 90%); height: 360px; border-radius: 24px;
  background: radial-gradient(circle at 20% 20%, #60a5fa, #1d4ed8 70%);
  color: #fff; display: flex; flex-direction: column; justify-content: flex-end; padding: 32px;
  box-shadow: 0 20px 50px rgba(37,99,235,.25);
}
.login-box { display: flex; align-items: center; justify-content: center; }
.login-form { width: 360px; background: #fff; padding: 36px 32px; border-radius: 12px; box-shadow: 0 10px 40px rgba(15,23,42,.08); }
.login-form h1 { margin: 0 0 8px; font-size: 22px; }
.login-form p { margin: 0 0 24px; color: #909399; font-size: 13px; }
.login-form .row { margin-bottom: 16px; }
.login-form input { width: 100%; height: 40px; }
.login-captcha { display: flex; align-items: center; gap: 10px; }
.login-captcha input { flex: 1; }
.login-captcha span { white-space: nowrap; color: #303133; font-size: 14px; font-weight: 600; }
.login-form .btn-primary { width: 100%; height: 40px; }
.login-error { color: #f56c6c; font-size: 13px; margin-bottom: 12px; }
@media (max-width: 960px) {
  .pa-stats { grid-template-columns: 1fr 1fr; }
  .pa-stats-6 { grid-template-columns: 1fr 1fr; }
  .login-page { grid-template-columns: 1fr; display: flex; align-items: center; justify-content: center; }
  .login-art { display: none; }
  .pa-aside { width: 180px; }
}
