/* Explorationsoberfläche: ergänzt Bootstrap, gilt nur innerhalb von .ex */

.ex { max-width: 75rem; }
.ex-intro { max-width: 42rem; margin-bottom: 2rem; }

.ex-field { margin: 0 0 1.5rem; padding: 0; border: 0; }
.ex-field > .form-select { max-width: 28rem; }

#ex-conditions { display: grid; gap: .5rem; margin-bottom: .75rem; }
#ex-conditions:empty::before {
    content: "Keine Bedingungen gesetzt, es werden alle Einträge angezeigt.";
    color: #5c636a;
    font-style: italic;
}

.ex-condition {
    display: grid;
    grid-template-columns: minmax(10rem, 1fr) minmax(9rem, 13rem) minmax(10rem, 1.5fr) auto;
    gap: .5rem;
    align-items: start;
}
@media (max-width: 40rem) {
    .ex-condition { grid-template-columns: 1fr 1fr; padding-bottom: .75rem; border-bottom: 1px solid #dee2e6; }
    .ex-value { grid-column: 1 / -1; }
}

.ex-status { margin: 2rem 0 1rem; font-weight: 500; }
.ex-status:empty { display: none; }
.ex-status.is-error {
    color: #842029;
    background: #f8d7da;
    padding: .75rem 1rem;
    border-radius: .375rem;
}

.ex-table-wrap {
    overflow: auto;
    max-height: 70vh;
    border: 1px solid #dee2e6;
    border-radius: .375rem;
}
.ex-table-wrap:focus-visible { outline: 3px solid #0d6efd; outline-offset: 2px; }

.ex-table { margin: 0; font-size: .875rem; }
.ex-table th {
    position: sticky;
    top: 0;
    z-index: 1;
    background: #f1f3f5;
    white-space: nowrap;
}
.ex-table td { max-width: 24rem; vertical-align: top; }
.ex-table td.ex-null { color: #adb5bd; }

.ex-toolbar { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin-top: 1rem; }
.ex-pages { margin-inline: .5rem; }
.ex-csv { margin-left: auto; }
