* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    color: #202330;
    background: #f4f6fb;
    font-family: Roboto, Arial, sans-serif;
}

.page {
    display: grid;
    grid-template-columns: 380px minmax(0, 1fr);
    gap: 24px;
    padding: 32px;
}

.card {
    padding: 24px;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 8px 32px rgba(32, 35, 48, 0.08);
}

.card_wide {
    min-width: 0;
}

.callbacks {
    grid-column: 2;
}

.title {
    margin: 0 0 8px;
    font-size: 24px;
}

.subtitle {
    margin: 0 0 20px;
    color: #70768a;
    font-size: 14px;
}

.hint {
    margin: -4px 0 0;
    color: #70768a;
    font-size: 12px;
    line-height: 1.4;
}

.form {
    display: grid;
    gap: 14px;
}

.field {
    display: grid;
    gap: 6px;
    color: #52586c;
    font-size: 14px;
}

.field input,
.field select {
    width: 100%;
    height: 42px;
    padding: 8px 12px;
    border: 1px solid #d8ddec;
    border-radius: 10px;
    color: #202330;
    background: #fbfcff;
    font: inherit;
    outline: none;
}

.field input:focus,
.field select:focus {
    border-color: #2f8bc5;
    box-shadow: 0 0 0 3px rgba(47, 139, 197, 0.14);
}

.checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #52586c;
    font-size: 14px;
}

.button {
    height: 42px;
    padding: 0 18px;
    border: none;
    border-radius: 10px;
    color: #fff;
    background: #2f8bc5;
    cursor: pointer;
    font: inherit;
    font-weight: 500;
    transition: 0.2s;
}

.button:hover,
.button:focus {
    background: #1770a2;
}

.button_secondary {
    color: #2f8bc5;
    background: #eaf4fb;
}

.button_secondary:hover,
.button_secondary:focus {
    color: #fff;
}

.alert {
    padding: 10px 12px;
    border-radius: 10px;
    font-size: 14px;
}

.alert_success {
    color: #17613a;
    background: #e6f7ee;
}

.alert_error {
    color: #8a2630;
    background: #fde9eb;
}

.method-fields.hidden {
    display: none;
}

.table-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.table-wrap {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

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

th {
    color: #70768a;
    font-weight: 500;
}

code {
    font-size: 12px;
    word-break: break-all;
}

.status {
    display: inline-flex;
    padding: 4px 8px;
    border-radius: 999px;
    color: #214b66;
    background: #eaf4fb;
    font-size: 12px;
    font-weight: 700;
}

.empty {
    padding: 32px;
    color: #70768a;
    text-align: center;
}

.error-text {
    max-width: 320px;
    margin-top: 6px;
    color: #8a2630;
    font-size: 12px;
    word-break: break-word;
}

.link-button {
    padding: 0;
    border: none;
    color: #2f8bc5;
    background: transparent;
    cursor: pointer;
    font: inherit;
}

.pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 18px;
    color: #52586c;
    font-size: 14px;
}

.pagination-pages {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.pagination-link,
.pagination-gap {
    min-width: 34px;
    padding: 8px 10px;
    border-radius: 10px;
    text-align: center;
}

.pagination-link {
    color: #2f8bc5;
    background: #eaf4fb;
    text-decoration: none;
    font-weight: 500;
}

.pagination-link:not(.pagination-link_disabled):hover,
.pagination-link:not(.pagination-link_disabled):focus {
    color: #fff;
    background: #1770a2;
}

.pagination-link_active {
    color: #fff;
    background: #2f8bc5;
}

.pagination-link_disabled {
    color: #a1a7b8;
    background: #f0f2f7;
}

.pagination-link_active:hover,
.pagination-link_active:focus {
    color: #fff;
    background: #2f8bc5;
}

.page-size label {
    display: flex;
    align-items: center;
    gap: 8px;
}

.page-size select {
    height: 36px;
    padding: 6px 10px;
    border: 1px solid #d8ddec;
    border-radius: 10px;
    color: #202330;
    background: #fbfcff;
    font: inherit;
}

@media (max-width: 960px) {
    .page {
        grid-template-columns: 1fr;
        padding: 16px;
    }

    .callbacks {
        grid-column: auto;
    }

    .pagination {
        align-items: stretch;
        flex-direction: column;
    }

    .pagination-pages {
        justify-content: flex-start;
    }
}
