body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: #f5f7fa;
    color: #222;
}

.container {
    max-width: 1100px;
    margin: 30px auto;
    padding: 0 20px;
}

.container.wide {
    max-width: 1500px;
}

h1 {
    margin: 0 0 8px 0;
}

h2 {
    margin-top: 0;
}

.intro {
    color: #555;
    margin-top: 0;
}

.muted {
    color: #777;
}

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

.card {
    background: #fff;
    border-radius: 10px;
    padding: 18px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
}

.link-card {
    text-decoration: none;
    color: inherit;
    transition: transform 0.15s ease;
}

.link-card:hover {
    transform: translateY(-2px);
}

.topbar {
    display: flex;
    justify-content: space-between;
    align-items: start;
    gap: 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

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

.filters-panel {
    background: #fff;
    border-radius: 10px;
    padding: 18px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
    margin-bottom: 18px;
}

.search-row {
    margin-bottom: 18px;
}

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

.field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.field label {
    font-weight: bold;
    font-size: 14px;
}

.field input[type="text"] {
    padding: 10px 12px;
    font-size: 14px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
}

.field select {
    padding: 8px;
    font-size: 14px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    min-height: 140px;
    background: #fff;
}

.hint {
    font-size: 12px;
    color: #666;
}

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

.button {
    display: inline-block;
    padding: 10px 14px;
    background: #1d4ed8;
    color: #fff;
    text-decoration: none;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
}

.button:hover {
    opacity: 0.95;
}

.button.secondary {
    background: #64748b;
}

.button.success {
    background: #15803d;
}

.button.light {
    background: #e2e8f0;
    color: #222;
}

.meta {
    margin: 10px 0 14px;
    color: #444;
}

.table-wrap {
    overflow-x: auto;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
}

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

th,
td {
    padding: 10px 12px;
    border-bottom: 1px solid #e5e7eb;
    text-align: left;
    vertical-align: top;
    white-space: nowrap;
}

th {
    background: #f8fafc;
    position: sticky;
    top: 0;
    z-index: 1;
}

.sort-link {
    color: #1e3a8a;
    text-decoration: none;
}

.sort-link:hover {
    text-decoration: underline;
}

.pagination {
    display: flex;
    gap: 10px;
    margin: 18px 0 30px;
    flex-wrap: wrap;
}

@media (max-width: 768px) {
    .container,
    .container.wide {
        padding: 0 14px;
    }

    th,
    td {
        font-size: 13px;
        padding: 8px 10px;
    }
}

.section-block {
    margin-top: 30px;
}

.section-title {
    margin-bottom: 12px;
    font-size: 20px;
    color: #1e293b;
}
