/*
|--------------------------------------------------------------------------
| ACE Grammar Engine
| Golden Record Browser
|--------------------------------------------------------------------------
*/

body {
    font-family: Arial, sans-serif;
    margin: 20px;
    background: #ffffff;
    color: #222;
}

h1 {
    margin-bottom: 5px;
}

.subtitle {
    color: #666;
    margin-bottom: 20px;
}

.filter-box {
    padding: 12px;
    background: #f5f5f5;
    border: 1px solid #ccc;
    margin-bottom: 20px;
}

.filter-box label {
    font-weight: bold;
    margin-right: 5px;
}

.filter-box select,
.filter-box input {
    padding: 6px;
    margin-right: 12px;
}

.filter-box input[type="text"] {
    min-width: 260px;
}

.filter-box button {
    padding: 6px 12px;
}

.summary {
    margin: 12px 0;
}

.table-wrapper {
    width: 100%;
    overflow-x: auto;
}

table {
    border-collapse: collapse;
    width: max-content;
    min-width: 100%;
}

th,
td {
    border: 1px solid #bbb;
    padding: 7px 9px;
    vertical-align: top;
    white-space: nowrap;
}

th {
    background: #eeeeee;
    position: sticky;
    top: 0;
    z-index: 2;
}

td.arabic {
    direction: rtl;
    text-align: right;
    font-size: 20px;
    font-family: "Traditional Arabic", "Noto Naskh Arabic", serif;
}

td.urdu {
    direction: rtl;
    text-align: right;
    font-size: 17px;
}

.empty {
    color: #aaa;
}

.record-number {
    background: #fafafa;
    text-align: center;
}

.selected-form {
    background: #fffbe6;
}
.full-record-row td {
    padding: 6px 12px 12px 42px;
    background: #fafafa;
    border-top: 0;
}

.record-detail-wrapper {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.record-detail-label {
    font-weight: 700;
    min-width: 70px;
}

.record-detail-wrapper details {
    flex: 1;
}