*{box-sizing:border-box}

body{
    background:#f1f5f9!important;
    color:#172b4d!important;
    font-family:Arial,sans-serif!important;
    font-size:14px;
}

.topbar{
    background:#17365d!important;
    border-bottom:3px solid #2563eb!important;
    padding:20px 24px!important;
}

.topbar h1{
    color:#fff!important;
    font-size:24px!important;
}

.topbar .sub{
    color:#dbeafe!important;
}

.stat,.card,.box,.empty{
    background:#fff!important;
    border:1px solid #dce3ec!important;
    border-radius:12px!important;
    box-shadow:0 3px 12px rgba(15,23,42,.06)!important;
}

.stat{
    border-top:4px solid #2563eb!important;
}

.stat:nth-child(2){
    border-top-color:#16a34a!important;
}

.stat:nth-child(3){
    border-top-color:#dc2626!important;
}

.stat:nth-child(2) .value{
    color:#15803d!important;
}

.stat:nth-child(3) .value{
    color:#dc2626!important;
}

.stat .value{
    font-size:32px!important;
}

.title,.stat .value,.metric .value{
    color:#172b4d;
}

.card .title,.metric .value{
    color:#172b4d!important;
}

.stat .value{
    color:#172b4d!important;
}

.stat:nth-child(2) .value{
    color:#15803d!important;
}

.stat:nth-child(3) .value{
    color:#dc2626!important;
}

.label,.host,.muted,.meta,.footer{
    color:#52647a!important;
}

.metric{
    background:#f8fafc!important;
    border:1px solid #e2e8f0!important;
    padding:14px!important;
}

.metric .label{
    font-size:13px!important;
}

.metric .value{
    font-size:23px!important;
}

.metric .small{
    color:#52647a!important;
}

.metric:nth-child(3) .value{
    color:#2563eb!important;
}

.metric:nth-child(4) .value{
    color:#15803d!important;
}

.metric.full{
    background:#eff6ff!important;
}

.status.up,.badge.green{
    color:#166534!important;
    background:#dcfce7!important;
    border-color:#86efac!important;
}

.status.down,.badge.red{
    color:#991b1b!important;
    background:#fee2e2!important;
    border-color:#fca5a5!important;
}

.status.unknown,.badge.orange{
    color:#92400e!important;
    background:#fef3c7!important;
}

.footer,th,td{
    border-color:#e2e8f0!important;
}

td{
    color:#172b4d!important;
}

th{
    color:#475569!important;
    background:#f8fafc!important;
}

.err,.error{
    color:#b91c1c!important;
}

input,select,.check,.loc{
    background:#fff!important;
    color:#172b4d!important;
    border:1px solid #cbd5e1!important;
}

.btn,.filter-form a{
    background:#31577f!important;
    color:#fff!important;
    border-color:transparent!important;
}

.btn.primary,.filter-form button{
    background:#2563eb!important;
    color:#fff!important;
}

.btn.danger{
    background:#dc2626!important;
}

.btn.warn{
    background:#b45309!important;
}

.wrap{
    grid-template-columns:repeat(auto-fit,minmax(min(100%,340px),1fr))!important;
    gap:18px!important;
}

@media(max-width:700px){
    .topbar{padding:16px!important}
    .stats{grid-template-columns:repeat(2,minmax(0,1fr))!important}
    .wrap{padding:0 12px 16px!important}
}
