*{box-sizing:border-box;margin:0;padding:0}
body{font-family:-apple-system,'Segoe UI','Microsoft YaHei',sans-serif;background:#f5f6f8;color:#1f2329;padding:18px 14px 40px;line-height:1.5}
.wrap{max-width:980px;margin:0 auto}
.hdr{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:10px;margin-bottom:14px}
.hdr h1{font-size:20px;font-weight:600}
.hdr .sub{font-size:12px;color:#8a919f}
.tabs{display:flex;gap:6px;margin-bottom:16px;flex-wrap:wrap}
.tab{background:#fff;border:1px solid #e3e6ea;border-radius:8px;padding:7px 16px;font-size:13px;cursor:pointer;color:#5f5e5a}
.tab.active{background:#185FA5;border-color:#185FA5;color:#fff}
.metrics{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:12px;margin-bottom:16px}
.metric{background:#fff;border:1px solid #e8eaee;border-radius:12px;padding:12px 14px}
.metric .l{font-size:12px;color:#8a919f}
.metric .v{font-size:22px;font-weight:600;margin-top:2px}
.up{color:#e02e24}.down{color:#0aa869}.flat{color:#8a919f}
.cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(300px,1fr));gap:12px;margin-bottom:16px}
.card{background:#fff;border:1px solid #e8eaee;border-radius:12px;padding:14px 16px}
.card h3{font-size:14px;margin-bottom:2px}
.card .total{font-size:20px;font-weight:600;margin-bottom:10px}
.bar{height:6px;border-radius:3px;background:#eef0f3;margin:3px 0 8px;overflow:hidden}
.bar>div{height:100%;border-radius:3px}
.crow{display:flex;justify-content:space-between;font-size:13px;margin-top:6px}
.tag{display:inline-block;padding:1px 8px;border-radius:10px;font-size:11px;margin-left:6px}
.tag.a{background:#E6F1FB;color:#185FA5}.tag.b{background:#E1F5EE;color:#0F6E56}
table{width:100%;border-collapse:collapse;background:#fff;border-radius:12px;overflow:hidden;border:1px solid #e8eaee}
th{background:#185FA5;color:#fff;font-size:12px;font-weight:500;padding:8px 10px;text-align:right;white-space:nowrap}
th:first-child,td:first-child{text-align:left}
td{font-size:13px;padding:8px 10px;border-top:1px solid #eef0f3;text-align:right;white-space:nowrap}
td .s{color:#8a919f;font-size:11px;font-weight:400}
.badge{display:inline-block;padding:2px 8px;border-radius:10px;font-size:11px}
.badge.fire{background:#FCEBEB;color:#A32D2D}.badge.near{background:#FAEEDA;color:#854F0B}.badge.ok{background:#F1EFE8;color:#5F5E5A}
.switch{position:relative;display:inline-block;width:34px;height:18px;vertical-align:middle;cursor:pointer}
.switch input{opacity:0;width:0;height:0}
.slider{position:absolute;inset:0;background:#cfd3d8;border-radius:18px;transition:.2s}
.slider:before{content:"";position:absolute;width:14px;height:14px;left:2px;top:2px;background:#fff;border-radius:50%;transition:.2s}
.switch input:checked+.slider{background:#1D9E75}
.switch input:checked+.slider:before{transform:translateX(16px)}
.switch.sm{width:26px;height:15px}
.switch.sm .slider:before{width:11px;height:11px}
.switch.sm input:checked+.slider:before{transform:translateX(11px)}
.riskbox{background:#fff;border:1px solid #e8eaee;border-radius:12px;padding:14px 16px;margin-bottom:16px}
.risk-head{font-size:14px;font-weight:600;margin-bottom:10px}
.alertRow{display:flex;justify-content:space-between;align-items:center;background:#fff;border:1px solid #e8eaee;border-radius:10px;padding:10px 14px;margin-bottom:8px;font-size:13px;flex-wrap:wrap;gap:6px}
.formCard{background:#fff;border:1px solid #e8eaee;border-radius:12px;padding:18px}
.formCard h2{font-size:16px;margin-bottom:14px}
.formGrid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:12px}
.formGrid label{font-size:12px;color:#5f5e5a;display:flex;flex-direction:column;gap:4px}
.formGrid input,.formGrid select{padding:8px 10px;border:1px solid #d8dce1;border-radius:8px;font-size:14px;color:#1f2329}
.formGrid input:focus,.formGrid select:focus{outline:2px solid #B5D4F4;border-color:#185FA5}
.formGrid label.full{grid-column:1/-1}
button.primary{background:#185FA5;color:#fff;border:none;border-radius:8px;padding:10px 22px;font-size:14px;margin-top:16px;cursor:pointer}
button.primary:hover{background:#0C447C}
button{cursor:pointer}
.note{font-size:12px;color:#8a919f;margin:8px 0}
.foot{font-size:12px;color:#8a919f;margin-top:20px;line-height:1.8}
@media(max-width:640px){th:nth-child(n+7),td:nth-child(n+7){display:none}}
