* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: "Microsoft YaHei UI", "PingFang SC", sans-serif; background: #f0f2f7; color: #1f2937; font-size: 14px; }
.layout { display: flex; min-height: 100vh; }
.side { width: 190px; background: #1e2a3d; padding: 18px 0; flex-shrink: 0; }
.side .brand { color: #fff; font-weight: bold; font-size: 15px; padding: 0 20px 16px; border-bottom: 1px solid #2c3a52; margin-bottom: 10px; }
.side a { display: block; color: #aeb9cc; text-decoration: none; padding: 11px 20px; }
.side a:hover, .side a.on { background: #2c3a52; color: #fff; }
.main { flex: 1; padding: 24px; max-width: 1100px; }
h2 { font-size: 18px; margin-bottom: 18px; }
h3 { font-size: 15px; margin: 18px 0 10px; }
.card { background: #fff; border-radius: 10px; padding: 20px; margin-bottom: 18px; box-shadow: 0 1px 3px rgba(0,0,0,.06); }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 18px; }
.stat { background: #fff; border-radius: 10px; padding: 16px; box-shadow: 0 1px 3px rgba(0,0,0,.06); }
.stat .n { font-size: 24px; font-weight: bold; color: #3f5bd9; }
.stat .t { color: #7a8499; font-size: 12px; margin-top: 4px; }
table { width: 100%; border-collapse: collapse; background: #fff; border-radius: 10px; overflow: hidden; box-shadow: 0 1px 3px rgba(0,0,0,.06); }
th, td { padding: 10px 12px; text-align: left; border-bottom: 1px solid #eef1f6; font-size: 13px; }
th { background: #f7f9fc; color: #5a6b82; font-weight: normal; }
tr:last-child td { border-bottom: none; }
input, select, textarea { border: 1px solid #d5dce8; border-radius: 6px; padding: 8px 10px; font-size: 13px; width: 100%; max-width: 420px; }
input:focus, select:focus, textarea:focus { outline: none; border-color: #3f5bd9; }
button, .btn { background: #3f5bd9; color: #fff; border: none; border-radius: 6px; padding: 8px 16px; cursor: pointer; font-size: 13px; text-decoration: none; display: inline-block; }
button:hover, .btn:hover { background: #5a76e8; }
.btn.gray { background: #8a97a8; }
.btn.red { background: #d6455d; }
.btn.small { padding: 4px 10px; font-size: 12px; }
label { display: block; margin: 12px 0 4px; color: #5a6b82; font-size: 13px; }
.msg { background: #e7f5ee; color: #0e7a52; border-radius: 6px; padding: 10px 14px; margin-bottom: 14px; }
.err { background: #fdecef; color: #c0392b; }
.inline { display: flex; gap: 8px; align-items: center; }
.inline input { max-width: 170px; }
.tag { display: inline-block; padding: 2px 8px; border-radius: 10px; font-size: 12px; }
.tag.ok { background: #e7f5ee; color: #0e7a52; }
.tag.no { background: #fdecef; color: #c0392b; }
.tag.pend { background: #fff3e0; color: #b7791f; }
.adimg { max-width: 240px; max-height: 60px; border-radius: 4px; }
.login-box { max-width: 340px; margin: 15vh auto; background: #fff; border-radius: 12px; padding: 28px; box-shadow: 0 4px 20px rgba(0,0,0,.08); }
.login-box h2 { text-align: center; }
.muted { color: #8a97a8; font-size: 12px; }
form.inline-form { display: contents; }
