﻿/* -- Filter bar ---------------------------------------------------------------- */
.filter-bar {
    padding: 10px 24px;
    background: #f8f9fb;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    font-size: 14px;
}
.filter-spacer { flex: 1; }
.filter-center { display: flex; align-items: center; gap: 12px; flex: 0 0 auto; }
.filter-count  { font-size: 14px; color: #6b7280; flex: 1; text-align: right; margin-left: auto; }
.filter-bar label {
    font-weight: 500;
    color: #222222;
    white-space: nowrap;
    margin-left: 12px;
    font-family: inherit;
}
.filter-bar input[type="text"] {
    padding: 7px 12px 5px 12px;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    font-size: 14px;
    color: #374151;
    min-width: 20em;
    font-family: inherit;
}
.filter-bar select {
    padding: 7px 12px 5px 12px;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    font-size: 14px;
    color: #374151;
    min-width: 12em;
    font-family: inherit;
}
.filter-bar input:focus,
.filter-bar select:focus {
    outline: none;
    border-color: #0078d4;
    box-shadow: 0 0 0 3px rgba(0,120,212,.15);
}

/* -- Record view / form layout -------------------------------------------------
   Two-column grid used by the View and Form pages.
   Left  (1fr) : entity fields
   Right (2fr) : related-table grids
   ----------------------------------------------------------------------------- */
.record-layout {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 1.5rem;
    align-items: start;
}

.record-fields .field-table th {
    width: 35%;
    white-space: nowrap;
    font-weight: 600;
    color: #495057;
    padding-right: 1rem;
}

.record-fields .field-table td {
    word-break: break-word;
}

.record-grids {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

@media (max-width: 767.98px) {
    .record-layout {
        grid-template-columns: 1fr;
    }
}
