* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: #f5f7f8;
    color: #24313a;
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.45;
}

a {
    color: #0d5f78;
    text-decoration: none;
}

.topbar {
    align-items: center;
    background: #ffffff;
    border-bottom: 1px solid #d9e0e4;
    display: flex;
    gap: 20px;
    min-height: 62px;
    padding: 0 24px;
}

.brand {
    color: #1d2a31;
    font-size: 20px;
    font-weight: 700;
    white-space: nowrap;
}

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

.topbar nav a {
    border-radius: 6px;
    color: #32434c;
    padding: 8px 10px;
}

.topbar nav a:hover {
    background: #ecf2f4;
}

.user {
    color: #60717a;
    font-size: 14px;
}

.page {
    margin: 0 auto;
    max-width: 1180px;
    padding: 28px 20px 56px;
}

.panel {
    background: #ffffff;
    border: 1px solid #dce4e8;
    border-radius: 8px;
    margin-bottom: 20px;
    padding: 20px;
}

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

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

label {
    display: block;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 6px;
}

input,
select,
textarea {
    background: #ffffff;
    border: 1px solid #c7d1d6;
    border-radius: 6px;
    color: #1f2c33;
    font: inherit;
    min-height: 40px;
    padding: 8px 10px;
    width: 100%;
}

textarea {
    min-height: 90px;
    resize: vertical;
}

button,
.button {
    background: #0b6f88;
    border: 0;
    border-radius: 6px;
    color: #ffffff;
    cursor: pointer;
    display: inline-flex;
    font: inherit;
    font-weight: 700;
    min-height: 40px;
    padding: 9px 14px;
}

button.secondary,
.button.secondary {
    background: #52646d;
}

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

.notice {
    background: #e9f5ef;
    border: 1px solid #b6dec8;
    border-radius: 6px;
    margin-bottom: 16px;
    padding: 12px 14px;
}

.error {
    background: #fff0ed;
    border-color: #e1afa7;
}

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

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

th {
    background: #eef3f5;
    color: #394950;
    font-size: 13px;
}

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

.muted {
    color: #65757d;
}

.checkbox-row {
    align-items: center;
    display: flex;
    gap: 8px;
}

.checkbox-row input {
    min-height: 0;
    width: auto;
}

@media (max-width: 700px) {
    .topbar {
        align-items: flex-start;
        flex-direction: column;
        gap: 10px;
        padding: 14px 18px;
    }

    .topbar nav {
        width: 100%;
    }
}

