body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: #f5f7fb;
    color: #1f2937;
}

.wrap {
    max-width: 1440px;
    margin: 0 auto;
    padding: 24px;
}

.wrap-edit {
    max-width: 1000px;
}

h1 {
    margin: 0 0 20px;
}

.filters {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr auto auto;
    gap: 12px;
    margin-bottom: 18px;
}

.filters input,
.filters select,
.edit-form input,
.edit-form textarea,
.filters button,
.reset {
    border: 1px solid #d0d7e2;
    border-radius: 8px;
    padding: 10px 12px;
    font-size: 14px;
    box-sizing: border-box;
}

.filters button,
.edit-form button,
.edit-btn,
.reset {
    background: #2563eb;
    color: #fff;
    text-decoration: none;
    cursor: pointer;
}

.reset {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #6b7280;
}

.meta {
    margin-bottom: 12px;
}

.table-box {
    overflow: auto;
    background: #fff;
    border: 1px solid #dfe5ef;
    border-radius: 12px;
}

.table-box table {
    width: 100%;
    border-collapse: collapse;
    min-width: 1200px;
}

th, td {
    padding: 12px 10px;
    border-bottom: 1px solid #eef2f7;
    text-align: left;
    vertical-align: top;
    font-size: 14px;
}

th {
    position: sticky;
    top: 0;
    background: #f8fafc;
    z-index: 2;
}

tr:hover td {
    background: #fafcff;
}

.empty {
    text-align: center;
    color: #6b7280;
    padding: 30px 10px;
}

.pager {
    display: flex;
    gap: 14px;
    align-items: center;
    margin-top: 16px;
}

.pager a {
    color: #2563eb;
    text-decoration: none;
}

.edit-form {
    display: grid;
    gap: 16px;
    background: #fff;
    border: 1px solid #dfe5ef;
    border-radius: 12px;
    padding: 20px;
}

.edit-form label {
    display: grid;
    gap: 8px;
}

.edit-form span {
    font-weight: 700;
}

.edit-form textarea {
    resize: vertical;
    min-height: 120px;
}

@media (max-width: 1100px) {
    .filters {
        grid-template-columns: 1fr;
    }
}
