/* 服务费到期提醒收费系统 — 样式 */
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: "Microsoft YaHei", "PingFang SC", "Segoe UI", sans-serif;
  background: #f4f6f9; color: #2b3445; font-size: 15px; line-height: 1.6;
}
a { color: #2f6bff; text-decoration: none; }
a:hover { text-decoration: underline; }

/* 顶栏 */
.topbar {
  background: #1f2d45; color: #fff; padding: 0 20px;
  display: flex; align-items: center; gap: 26px; height: 54px;
  position: sticky; top: 0; z-index: 10;
}
.topbar .brand { font-size: 17px; font-weight: 700; letter-spacing: 1px; }
.topbar nav { display: flex; gap: 18px; flex: 1; }
.topbar nav a { color: #c6d2e6; font-size: 14.5px; padding: 4px 2px; }
.topbar nav a:hover, .topbar nav a.on { color: #fff; text-decoration: none; border-bottom: 2px solid #4f8cff; }
.topbar .right { font-size: 13.5px; color: #9fb0c9; }

.wrap { max-width: 1180px; margin: 22px auto; padding: 0 16px; }

/* 卡片 */
.card { background: #fff; border: 1px solid #e4e9f2; border-radius: 10px; padding: 18px 20px; margin-bottom: 18px; box-shadow: 0 1px 3px rgba(31,45,69,.05); }
.card h2 { font-size: 17px; margin-bottom: 12px; display: flex; align-items: center; gap: 8px; }
.card h2 .cnt { font-size: 13px; color: #8a94a8; font-weight: 400; }

/* 统计块 */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; margin-bottom: 18px; }
.stat { background: #fff; border: 1px solid #e4e9f2; border-radius: 10px; padding: 14px 18px; }
.stat .num { font-size: 26px; font-weight: 700; }
.stat .lbl { font-size: 13px; color: #8a94a8; }
.stat.warn .num { color: #d4380d; }
.stat.info .num { color: #2f6bff; }

/* 徽章 */
.badge { display: inline-block; font-size: 12.5px; padding: 2px 10px; border-radius: 20px; white-space: nowrap; }
.b-overdue { background: #fde8e2; color: #c22f0e; }
.b-due { background: #fff3d6; color: #a66a00; }
.b-future { background: #e8f1ff; color: #2f6bff; }
.b-pending { background: #f0e8ff; color: #6b3fd4; }
.b-stopped { background: #eceff4; color: #7a8499; }
.b-none { background: #eceff4; color: #7a8499; }
.b-ok { background: #e6f7ec; color: #1a8a4a; }

/* 表格 */
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { padding: 9px 10px; border-bottom: 1px solid #edf0f6; text-align: left; vertical-align: top; }
th { color: #66718a; font-weight: 600; font-size: 13px; background: #f8fafd; }
tr:hover td { background: #f8fafd; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
.tbl-wrap { overflow-x: auto; }

/* 按钮 */
.btn { display: inline-block; border: none; cursor: pointer; border-radius: 7px; font-size: 14px; padding: 7px 16px; background: #2f6bff; color: #fff; }
.btn:hover { background: #245fe0; }
.btn.ghost { background: #eef2f9; color: #3c4a63; }
.btn.ghost:hover { background: #e2e9f5; }
.btn.danger { background: #fff; color: #d4380d; border: 1px solid #f5c6b8; }
.btn.small { padding: 4px 12px; font-size: 13px; border-radius: 6px; }
.btnline { display: flex; gap: 8px; flex-wrap: wrap; }

/* 表单 */
label.fld { display: block; font-size: 13.5px; color: #55608080; color: #556080; margin: 10px 0 4px; }
input[type=text], input[type=password], input[type=month], input[type=date], input[type=number], select, textarea {
  width: 100%; padding: 8px 11px; border: 1px solid #d5dce8; border-radius: 7px; font-size: 14.5px; font-family: inherit; background: #fff;
}
input:focus, select:focus, textarea:focus { outline: 2px solid #b9d0ff; border-color: #2f6bff; }
.formrow { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 0 16px; }

/* 提示条 */
.flash { padding: 10px 16px; border-radius: 8px; margin-bottom: 14px; font-size: 14px; }
.flash.ok { background: #e6f7ec; color: #146c3b; border: 1px solid #bfe8cf; }
.flash.error { background: #fdeceb; color: #b3261e; border: 1px solid #f5c6c2; }

/* 登录页 */
.login-box { max-width: 380px; margin: 90px auto; background: #fff; border: 1px solid #e4e9f2; border-radius: 12px; padding: 34px 32px; box-shadow: 0 4px 18px rgba(31,45,69,.08); }
.login-box h1 { font-size: 20px; text-align: center; margin-bottom: 6px; }
.login-box .sub { text-align: center; color: #8a94a8; font-size: 13.5px; margin-bottom: 20px; }

/* 空状态 */
.empty { text-align: center; color: #8a94a8; padding: 26px 0; font-size: 14px; }

/* 分页 */
.pager { display: flex; gap: 6px; margin-top: 14px; flex-wrap: wrap; align-items: center; }
.pager a, .pager span { padding: 4px 11px; border-radius: 6px; border: 1px solid #dfe5ef; font-size: 13.5px; color: #3c4a63; background: #fff; }
.pager .cur { background: #2f6bff; color: #fff; border-color: #2f6bff; }

/* 未来月份预览 */
.preview { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px; }
.preview .m { background: #f8fafd; border: 1px solid #e4e9f2; border-radius: 8px; padding: 10px 12px; }
.preview .m .mm { font-size: 13px; color: #66718a; }
.preview .m .nn { font-size: 19px; font-weight: 700; }
.preview .m .aa { font-size: 12.5px; color: #8a94a8; }

@media print {
  .topbar, .noprint { display: none !important; }
  body { background: #fff; }
}
