* { box-sizing: border-box; }
body { margin: 0; background: #f4f6f8; color: #1b1f24; font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif; font-size: 14px; line-height: 1.6; }

.layout { display: flex; min-height: 100vh; }
.side { width: 208px; flex: 0 0 208px; background: #12305c; color: #cfe0f2; display: flex; flex-direction: column; }
.side .brand { padding: 18px 20px; font-size: 15px; font-weight: 600; color: #fff; border-bottom: 1px solid rgba(255,255,255,.1); }
.side .brand small { display: block; font-size: 11px; font-weight: 400; color: #8fb3d9; margin-top: 3px; }
.side .menu { padding: 10px 0; flex: 1; }
.side .menu .mi { padding: 9px 20px; font-size: 13.5px; cursor: pointer; border-left: 2px solid transparent; }
.side .menu .mi:hover { background: rgba(255,255,255,.07); color: #fff; }
.side .menu .mi.active { background: rgba(255,255,255,.11); color: #fff; border-left-color: #5dcaa5; }
.side .foot { padding: 14px 20px; font-size: 11px; color: #7d9dc2; border-top: 1px solid rgba(255,255,255,.1); }

.main { flex: 1; min-width: 0; padding: 22px 26px 60px; }
.main h2 { font-size: 18px; margin: 0 0 4px; font-weight: 600; }
.main .mdesc { font-size: 12.5px; color: #858d95; margin: 0 0 18px; }

.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 13px; margin-bottom: 20px; }
@media(max-width:1100px){ .cards{grid-template-columns:repeat(2,1fr);} }
.kpi { background: #fff; border-radius: 10px; padding: 15px 17px; border: 1px solid #e8ecf0; }
.kpi .k { font-size: 25px; font-weight: 600; letter-spacing: -.5px; color: #1b4d8f; }
.kpi .l { font-size: 12px; color: #858d95; margin-top: 2px; }
.kpi .s { font-size: 11px; color: #a2a9b0; margin-top: 5px; }

.panel { background: #fff; border-radius: 10px; border: 1px solid #e8ecf0; margin-bottom: 16px; overflow: hidden; }
.panel-h { padding: 13px 17px; border-bottom: 1px solid #eef1f4; display: flex; align-items: center; justify-content: space-between; }
.panel-h .ph-t { font-size: 14.5px; font-weight: 600; }
.panel-h .ph-d { font-size: 11.5px; color: #9aa2aa; }
.panel-b { padding: 15px 17px; }
.panel-b.nopad { padding: 0; }

table { width: 100%; border-collapse: collapse; font-size: 13px; }
th { text-align: left; padding: 10px 17px; background: #f7f9fb; font-weight: 600; color: #4b535b; border-bottom: 1px solid #eef1f4; white-space: nowrap; }
td { padding: 11px 17px; border-bottom: 1px solid #f2f4f6; color: #4b535b; vertical-align: top; }
tr:last-child td { border-bottom: none; }
tr:hover td { background: #fafbfc; }

.btn { padding: 7px 15px; border-radius: 6px; border: 1px solid #d9dfe6; background: #fff; color: #4b535b; font-size: 13px; cursor: pointer; font-family: inherit; }
.btn:hover { border-color: #b9c4d0; }
.btn-p { background: #1b4d8f; border-color: #1b4d8f; color: #fff; }
.btn-p:hover { background: #163f75; }
.btn-s { padding: 4px 11px; font-size: 12px; }
.btn-d { color: #b5342c; border-color: #ecc9c6; }
.btn-t { background: #0d7a86; border-color: #0d7a86; color: #fff; }

.tag { display: inline-block; font-size: 11px; padding: 2px 8px; border-radius: 4px; }
.tag-blue { background: #eaf1f9; color: #1b4d8f; }
.tag-teal { background: #e6f4f6; color: #0d7a86; }
.tag-amber { background: #fdf3e2; color: #b8791a; }
.tag-red { background: #fbecea; color: #b5342c; }
.tag-green { background: #e9f4ee; color: #1f7a45; }
.tag-gray { background: #f1f3f5; color: #6b737b; }

.field { display: flex; align-items: center; gap: 10px; margin-bottom: 11px; font-size: 13px; }
.field label { width: 112px; flex: 0 0 112px; color: #6b737b; }
.field input, .field select, .field textarea { flex: 1; padding: 7px 10px; border: 1px solid #dde3e9; border-radius: 6px; font-size: 13px; font-family: inherit; outline: none; }
.field input:focus { border-color: #1b4d8f; }
.field textarea { resize: vertical; min-height: 74px; }

.note { background: #eaf1f9; border-left: 3px solid #1b4d8f; padding: 11px 14px; border-radius: 0 7px 7px 0; font-size: 12.5px; color: #23456b; margin-bottom: 14px; line-height: 1.7; }
.warn { background: #fbecea; border-left: 3px solid #b5342c; padding: 11px 14px; border-radius: 0 7px 7px 0; font-size: 12.5px; color: #6d2b26; margin-bottom: 14px; line-height: 1.7; }
.ok { background: #e9f4ee; border-left: 3px solid #1f7a45; padding: 11px 14px; border-radius: 0 7px 7px 0; font-size: 12.5px; color: #1c4d31; margin-bottom: 14px; line-height: 1.7; }

code { font-family: "SF Mono", Menlo, Consolas, monospace; font-size: 12px; background: #f2f5f8; padding: 2px 6px; border-radius: 4px; color: #0d5a6b; }

.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media(max-width:1000px){ .grid2{grid-template-columns:1fr;} }

.bar { height: 7px; background: #eef1f4; border-radius: 4px; overflow: hidden; margin-top: 5px; }
.bar > i { display: block; height: 100%; background: #1b4d8f; }
.bar.teal > i { background: #0d7a86; }

.chart { display: flex; align-items: flex-end; gap: 9px; height: 138px; padding: 8px 0; }
.chart .col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 5px; }
.chart .col .v { font-size: 10.5px; color: #858d95; }
.chart .col .b { width: 100%; background: #1b4d8f; border-radius: 3px 3px 0 0; min-height: 3px; }
.chart .col .b.t { background: #0d7a86; }
.chart .col .x { font-size: 10.5px; color: #9aa2aa; }

.stat-line { display: flex; gap: 26px; padding: 12px 0; border-bottom: 1px dashed #eef1f4; font-size: 13px; }
.stat-line:last-child { border-bottom: none; }
.stat-line b { flex: 0 0 130px; color: #1b1f24; font-weight: 500; }

.toastbox { position: fixed; left: 50%; top: 26px; transform: translateX(-50%); background: #1b1f24; color: #fff; padding: 10px 20px; border-radius: 8px; font-size: 13px; z-index: 99; }

/* 租户映射表 */
.tbl { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.tbl th { text-align: left; font-weight: 500; color: #6b7480; padding: 9px 10px; border-bottom: 1px solid #e6eaee; white-space: nowrap; }
.tbl td { padding: 9px 10px; border-bottom: 1px dashed #eef1f4; color: #1b1f24; vertical-align: middle; }
.tbl tr:last-child td { border-bottom: none; }
.tbl code { background: #f4f6f8; border-radius: 4px; padding: 1px 5px; font-size: 12px; color: #2b3138; }
.tbl-wrap { overflow-x: auto; }
