/* ======================================================================================
   Systeem: Klantdatabase controle en Tabeldefinitie (KlantdatabaseControle.razor, Tabeldefinitie.razor).
   Indeling overgenomen van PPA (en daarmee van RHServer): één filterregel met het label naast het veld, de lijst, en onderin een
   tegel met de stand en de knoppen. Kleuren uit de variabelen van app.css.
   ====================================================================================== */

:root {
    --merk-donker: #174a6e;
    --goud-donker: #DFB202;
}

/* De filterregel: label en veld naast elkaar op één regel, de werkbalkicoontjes staan rechts in de Filterkaart. */
.filterbalk.vast .schema-rij { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.schema-lbl { font-size: 12px; color: var(--zacht); white-space: nowrap; }
.schema-lbl-ruim { margin-left: 16px; }
.filterbalk.vast .schema-rij > input:not([type=checkbox]) { display: inline-block; width: 190px; margin: 0; }
.filterbalk.vast .schema-rij > input.schema-breed { width: 280px; }
.filterbalk.vast .schema-rij > select { display: inline-block; width: auto; min-width: 150px; margin: 0; }
.filterbalk.vast .schema-rij > select.schema-bron { min-width: 320px; }
.schema-vink { display: inline-flex; align-items: center; gap: 6px; margin-left: 16px; font-size: 13px; color: var(--tekst); cursor: pointer; }
.filterbalk.vast .schema-rij .schema-vink input { display: inline-block; width: auto; margin: 0; }

/* Klantdatabase controle: een cel met de status Fout is rood. */
.raster tbody td.schema-celfout { background: var(--fout); color: #fff; }
.raster tbody tr.schema-goed td { color: var(--goed); }
.raster tbody tr.schema-fout td { color: var(--fout); }
.schema-melding, .schema-sql { max-width: 420px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.schema-sql { font-family: ui-monospace, Consolas, monospace; font-size: 12px; }
.schema-onder .schema-verschillen { flex: 1 1 auto; min-height: 0; }
.schema-titel { flex: 0 0 auto; padding: 8px 14px 6px; font-size: 14px; font-weight: 600; color: var(--tekst);
                background: var(--wit); border: 1px solid var(--rand); border-bottom: 0; border-radius: var(--straal) var(--straal) 0 0; }
.schema-onder .schema-verschillen { border-radius: 0 0 var(--straal) var(--straal); }

/* Tabeldefinitie: links de tabellen, rechts de kolommen en indexen van de gekozen tabel. */
.schema-twee { flex: 1 1 auto; min-height: 140px; display: grid; grid-template-columns: minmax(260px, 2fr) minmax(320px, 3fr); gap: 12px; }
.schema-twee > .lijstvak { flex: none; min-height: 0; }
.schema-rechts { min-width: 0; min-height: 0; display: flex; flex-direction: column; padding: 6px 12px 12px;
                 background: var(--wit); border: 1px solid var(--rand); border-radius: var(--straal); box-shadow: var(--tegelschaduw); }
.schema-rechts .tabbladen { flex: 0 0 auto; }
.schema-rechts .schema-paneel { flex: 1 1 auto; min-height: 0; }
.schema-rechts .schema-paneel .raster { width: 100%; }

/* De tegel onderin: de stand als tekst, daaronder de knoppen (links de acties, rechts het aanpassen). */
.schema-voet { flex: 0 0 auto; margin-top: 10px; padding: 14px 20px; background: var(--wit); border: 1px solid var(--rand);
               border-radius: var(--straal); box-shadow: var(--tegelschaduw); }
.schema-stand { margin: 0; font-size: 13px; color: var(--zacht); line-height: 1.45; }
/* De knoppenbalk zit hier al in de tegel: de eigen tegel van app.css (.knoppenbalk onder een lijst) komt er dan niet nog eens omheen. */
.schema-voet .knoppenbalk.schema-knoppen:not(.venster *):not(.actiekaart *):not(.popup *) { background: none; border: 0; border-radius: 0; padding: 10px 0 0; }
.schema-ruimte { flex: 1 1 auto; }
.schema-inhoud { display: block; width: 100%; margin-top: 8px; padding: 8px 10px; box-sizing: border-box; resize: vertical;
                 font: inherit; line-height: 1.5; color: var(--tekst); background: var(--vlak); border: 1px solid var(--rand-sterk); border-radius: var(--straal); }
