* { box-sizing: border-box; }
body { margin: 0; font-family: "Microsoft YaHei", "PingFang SC", sans-serif; color: #222; background: #fff; font-size: 14px; }
a { color: #0a7a42; text-decoration: none; }
a:hover { text-decoration: underline; }
.topnav { display: flex; align-items: center; gap: 4px; background: #0a7a42; padding: 0 12px; height: 48px; }
.topnav .brand { color: #fff; font-weight: bold; font-size: 17px; margin-right: 18px; }
.topnav a.nav { color: #dff3e6; padding: 6px 14px; border-radius: 4px; }
.topnav a.nav:hover { background: rgba(255,255,255,.15); text-decoration: none; }
.topnav a.nav.active { background: #fff; color: #0a7a42; font-weight: bold; }
.topnav .spacer { flex: 1; }
.topnav .user { color: #dff3e6; margin-right: 10px; }
.topnav button.logout { background: transparent; border: 1px solid #dff3e6; color: #fff; border-radius: 4px; padding: 4px 10px; cursor: pointer; }
.main { padding: 14px 16px; }
h1 { font-size: 20px; margin: 4px 0 14px; }
h2 { font-size: 16px; margin: 18px 0 8px; }
table.grid { border-collapse: collapse; width: 100%; }
table.grid th, table.grid td { border: 1px solid #ddd; padding: 5px 8px; text-align: left; vertical-align: top; font-size: 13px; }
table.grid th { background: #f2f7f3; white-space: nowrap; }
table.grid tr:hover td { background: #fafdfa; }
input[type=text], input[type=number], input[type=password], select, textarea {
  background: #e9f7ec; border: 1px solid #b9d8c0; border-radius: 4px; padding: 6px 8px; font-size: 14px; width: 100%;
}
input[readonly], input:disabled, select:disabled, textarea:disabled { background: #f2f2f2; }
textarea { resize: vertical; }
label.f { display: block; font-size: 13px; color: #444; margin-bottom: 8px; }
label.f .lab { display: block; margin-bottom: 3px; }
.req { color: #dc2626; font-weight: bold; }
.btn { display: inline-block; background: #0a7a42; color: #fff; border: none; border-radius: 4px; padding: 7px 16px; font-size: 14px; cursor: pointer; }
.btn:hover { background: #096a39; }
.btn.gray { background: #6b7280; }
.btn.red { background: #c2410c; }
.btn.small { padding: 3px 9px; font-size: 12px; }
.btn.link { background: none; color: #0a7a42; padding: 2px 4px; }
.row { display: flex; gap: 10px; flex-wrap: wrap; }
.row > * { flex: 1; min-width: 140px; }
.tabs { display: flex; gap: 4px; flex-wrap: wrap; margin-bottom: 10px; }
.tabs a { padding: 5px 12px; border: 1px solid #b9d8c0; border-radius: 14px; color: #333; background: #fff; }
.tabs a.active { background: #0a7a42; color: #fff; border-color: #0a7a42; }
.toolbar { display: flex; gap: 8px; align-items: center; margin-bottom: 10px; flex-wrap: wrap; }
.toolbar .search { width: 320px; }
.stat-cards { display: flex; gap: 12px; flex-wrap: wrap; }
.stat { border: 1px solid #d7e8db; border-radius: 8px; padding: 16px 22px; min-width: 150px; background: #fbfefb; }
.stat .num { font-size: 30px; font-weight: bold; color: #0a7a42; }
.stat .cap { color: #666; margin-top: 4px; }
.panel { border: 1px solid #d7e8db; border-radius: 8px; padding: 14px; margin-bottom: 14px; background: #fff; }
.msg { padding: 8px 12px; border-radius: 4px; margin-bottom: 10px; display: none; }
.msg.ok { background: #e9f7ec; color: #0a7a42; display: block; }
.msg.err { background: #fdecec; color: #b91c1c; display: block; }
.pager { margin-top: 10px; display: flex; gap: 8px; align-items: center; }
.tag { display: inline-block; padding: 1px 8px; border-radius: 10px; background: #eef4ee; font-size: 12px; }
.small { font-size: 12px; color: #666; }
.login-wrap { max-width: 360px; margin: 90px auto; border: 1px solid #d7e8db; border-radius: 10px; padding: 28px; }
.login-wrap h1 { text-align: center; color: #0a7a42; }
@media print { .no-print { display: none !important; } }
