* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    background: #f5f7fb;
    color: #172033;
}

a {
    color: #1459b8;
    text-decoration: none;
}

.shell {
    min-height: 100vh;
}

.topbar {
    align-items: center;
    background: #172033;
    color: #fff;
    display: flex;
    gap: 18px;
    justify-content: space-between;
    padding: 14px 22px;
}

.brand {
    font-size: 18px;
    font-weight: 700;
}

.topbar nav {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.topbar a {
    color: #fff;
    font-size: 14px;
    opacity: .9;
}

.page {
    margin: 0 auto;
    max-width: 1220px;
    padding: 24px;
}

.login {
    display: grid;
    min-height: 100vh;
    place-items: center;
}

.panel {
    background: #fff;
    border: 1px solid #dfe5ef;
    border-radius: 8px;
    box-shadow: 0 12px 30px rgba(21, 33, 54, .08);
    padding: 22px;
}

.login .panel {
    width: min(420px, calc(100vw - 32px));
}

.grid {
    display: grid;
    gap: 16px;
}

.grid.two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid.three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.metric {
    background: #fff;
    border: 1px solid #dfe5ef;
    border-radius: 8px;
    padding: 18px;
}

.metric strong {
    display: block;
    font-size: 30px;
    margin-top: 8px;
}

h1, h2, h3 {
    margin: 0 0 14px;
}

label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    margin: 12px 0 6px;
}

input, select, textarea {
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font: inherit;
    padding: 10px 11px;
    width: 100%;
}

textarea {
    min-height: 80px;
}

button, .button {
    align-items: center;
    background: #1459b8;
    border: 0;
    border-radius: 6px;
    color: #fff;
    cursor: pointer;
    display: inline-flex;
    font: inherit;
    font-weight: 700;
    gap: 6px;
    min-height: 38px;
    padding: 9px 13px;
}

.button.secondary, button.secondary {
    background: #5f6b7a;
}

.button.danger, button.danger {
    background: #bd3030;
}

.actions {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}

table {
    border-collapse: collapse;
    width: 100%;
}

th, td {
    border-bottom: 1px solid #e5eaf2;
    padding: 10px;
    text-align: left;
    vertical-align: top;
}

th {
    background: #f8fafc;
    font-size: 12px;
    text-transform: uppercase;
}

.badge {
    border-radius: 999px;
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    padding: 4px 8px;
}

.badge.ok {
    background: #dff5e7;
    color: #17643a;
}

.badge.warn {
    background: #fff1ce;
    color: #7a4e00;
}

.badge.bad {
    background: #fde1e1;
    color: #8b1d1d;
}

.flash {
    border-radius: 6px;
    margin-bottom: 12px;
    padding: 11px 13px;
}

.flash.success {
    background: #dff5e7;
}

.flash.error {
    background: #fde1e1;
}

.muted {
    color: #657386;
    font-size: 13px;
}

.help {
    background: #eef6ff;
    border: 1px solid #c9dffd;
    border-radius: 6px;
    color: #24466e;
    font-size: 13px;
    margin-top: 8px;
    padding: 10px;
}

@media (max-width: 780px) {
    .grid.two, .grid.three {
        grid-template-columns: 1fr;
    }

    .topbar {
        align-items: flex-start;
        flex-direction: column;
    }
}

