.records-shell {
    max-width: 1440px;
}

.records-hero {
    padding-bottom: 18px;
}

.records-toolbar {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 18px;
}

.records-panel {
    padding: 20px;
}

.records-filters {
    display: grid;
    grid-template-columns: minmax(240px, 1.4fr) 200px 150px auto;
    gap: 14px;
    align-items: end;
}

.filter-group {
    display: grid;
    gap: 8px;
}

.filter-group label {
    font-weight: 700;
    color: var(--accent-dark);
}

.filter-group input,
.filter-group select {
    min-height: 46px;
    padding: 0 14px;
    border-radius: 14px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.88);
    font: inherit;
    color: var(--text);
}

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

.filter-button {
    min-height: 46px;
    padding: 0 18px;
    border-radius: 14px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.82);
    color: var(--text);
    font: inherit;
    cursor: pointer;
}

.filter-button.primary {
    border: 0;
    background: linear-gradient(135deg, var(--accent), #f08e64);
    color: #fffaf4;
    font-weight: 700;
}

.records-summary {
    display: flex;
    gap: 8px;
    align-items: center;
    margin: 18px 0 12px;
    color: var(--muted);
}

.table-wrap {
    overflow: auto;
    border-radius: 20px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.72);
}

.records-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 1100px;
}

.records-table thead th {
    position: sticky;
    top: 0;
    z-index: 1;
    padding: 14px 12px;
    text-align: left;
    background: #efe6d2;
    color: var(--accent-dark);
    font-size: 0.94rem;
    border-bottom: 1px solid var(--line);
}

.records-table tbody td {
    padding: 12px;
    vertical-align: top;
    border-bottom: 1px solid rgba(16, 35, 26, 0.08);
    line-height: 1.5;
    white-space: pre-wrap;
}

.records-table tbody tr:nth-child(even) td {
    background: rgba(255, 255, 255, 0.35);
}

.records-table td:nth-child(1) {
    width: 70px;
}

.records-table td:nth-child(2) {
    width: 120px;
    font-weight: 700;
    color: var(--secondary);
}

.records-table td:nth-child(3) {
    width: 220px;
    font-weight: 700;
}

.records-table td:nth-child(4) {
    min-width: 360px;
}

.empty-cell {
    text-align: center;
    color: var(--muted);
    padding: 32px 16px !important;
}

@media (max-width: 1024px) {
    .records-filters {
        grid-template-columns: 1fr;
    }

    .filter-actions {
        justify-content: flex-start;
    }
}

