* {
    box-sizing: border-box;
}

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

a {
    color: inherit;
}

.topbar {
    background: #ffffff;
    border-bottom: 1px solid #e6e9ef;
    padding: 14px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand {
    font-size: 20px;
    font-weight: 800;
}

.brand span {
    font-weight: 400;
    color: #667085;
}

.container {
    width: min(1180px, calc(100% - 28px));
    margin: 26px auto;
}

.card {
    background: #fff;
    border: 1px solid #e7eaf0;
    border-radius: 16px;
    padding: 22px;
    margin-bottom: 18px;
    box-shadow: 0 5px 20px rgba(16,24,40,.04);
}

.login-wrap {
    width: min(430px, calc(100% - 30px));
    margin: 60px auto;
}

h1, h2, h3 {
    margin-top: 0;
}

.muted {
    color: #667085;
}

label {
    display: block;
    font-weight: 700;
    margin-bottom: 7px;
}

input,
select,
textarea {
    width: 100%;
    padding: 12px 13px;
    border: 1px solid #d0d5dd;
    border-radius: 10px;
    font-size: 15px;
    background: #fff;
}

.form-group {
    margin-bottom: 15px;
}

.grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0,1fr));
    gap: 16px;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, minmax(0,1fr));
    gap: 16px;
}

.btn {
    display: inline-block;
    border: 0;
    border-radius: 10px;
    padding: 11px 16px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    background: #111827;
    color: #fff;
}

.btn-light {
    background: #eef2f6;
    color: #1f2937;
}

.btn-danger {
    background: #b42318;
}

.alert {
    padding: 12px 14px;
    border-radius: 10px;
    margin-bottom: 16px;
}

.alert-error {
    background: #fef3f2;
    color: #b42318;
}

.alert-ok {
    background: #ecfdf3;
    color: #027a48;
}

.stat {
    font-size: 30px;
    font-weight: 800;
}

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

th, td {
    text-align: left;
    padding: 12px 10px;
    border-bottom: 1px solid #eaecf0;
}

.badge {
    display: inline-block;
    padding: 5px 9px;
    border-radius: 999px;
    background: #eef2f6;
    font-size: 12px;
    font-weight: 700;
}

.actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

@media (max-width: 720px) {
    .grid,
    .grid-3 {
        grid-template-columns: 1fr;
    }

    table {
        font-size: 13px;
    }

    .container {
        width: min(100% - 18px, 1180px);
    }
}
