/* ===================== Disposition: Stammdaten (dp-st-) =====================
   Generische Formularklassen der Dispo-Seiten; dazu die Schichtregeln in Verwaltung › Einstellungen (vw-regel-*). */

.dp-st-seite { display: flex; flex-direction: column; gap: 10px; min-width: 0; }

/* einklappbare Erklärung */
.dp-st-mehr { flex: 0 0 auto; }
.dp-st-mehr[open] { flex: 1 1 100%; }
.dp-st-mehr > summary { display: inline-block; cursor: pointer; font-size: 12px; color: var(--km-fokus); }
.dp-st-mehr > p { margin: 6px 0 0; }
.dp-st-mehr > ul { margin: 4px 0 0; padding-left: 20px; }

/* Tabelle im eigenen Scrollcontainer mit festem Kopf */
.dp-st-scroll { overflow: auto; max-height: calc(100vh - 320px); border: 1px solid var(--km-rand); border-radius: 6px; }
.dp-st-scroll thead th { position: sticky; top: 0; z-index: 2; background: #fff; border-bottom: 0; box-shadow: 0 2px 0 var(--km-rand); }
.dp-st-scroll.dp-st-regeln { max-height: 70vh; }

/* Hinweisbox und Leisten */
.dp-st-hinweis { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; padding: 6px 12px; border-radius: 8px; border: 1px solid #c7e4fb; background: #e8f3ff; color: #235b7e; font-size: 13px; line-height: 1.45; }
.dp-st-check { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; color: #000; cursor: pointer; }

/* Tabellen */
.dp-st-tabelle-rahmen { overflow-x: auto; }
.dp-st-tabelle { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.dp-st-tabelle th { text-align: left; font-weight: 600; padding: 6px 8px; border-bottom: 2px solid var(--km-rand); white-space: nowrap; }
.dp-st-tabelle td { padding: 5px 8px; border-bottom: 1px solid #eef0f1; vertical-align: top; }
.dp-st-tabelle tbody tr:nth-child(even) { background: #f9fbfb; }
.dp-st-tabelle tbody tr.dp-st-inaktiv { color: #8a8f94; }
.dp-st-tabelle tbody tr.dp-st-inaktiv .dp-st-name { color: #5c636a; }
.dp-st-zahl { text-align: right; white-space: nowrap; }
.dp-st-nowrap { white-space: nowrap; }
.dp-st-mono { font-family: Consolas, "Courier New", monospace; font-size: 12.5px; }
.dp-st-name { font-weight: 600; }
.dp-st-tabelle input[type=checkbox] { width: 16px; height: 16px; cursor: pointer; }
.dp-st-tabelle input[type=checkbox]:disabled { cursor: default; }

/* Kompetenzstufen (klickbar) */
.dp-st-stufen { display: inline-flex; flex-wrap: wrap; gap: 3px; }
.dp-st-stufe { min-width: 40px; padding: 3px 6px; border-radius: 4px; border: 1px solid #d3d3d2; background: #f1f3f5; color: #5c636a; font: inherit; font-size: 12.5px; font-weight: 600; cursor: pointer; }
.dp-st-stufe:hover:not(:disabled) { border-color: var(--km-fokus); }
.dp-st-stufe.an { background: var(--km-gruen-hell); border-color: var(--km-gruen); color: #2c3332; }
.dp-st-stufe:disabled { cursor: default; opacity: .75; }

/* Knöpfe */
.dp-st-klein-btn { min-height: 26px; padding: 2px 10px; font-size: 12.5px; }

/* Formulare in den Dialogen (DxPopup liegt außerhalb von .dp-st-seite, deshalb eigene Eingabestile) */
.dp-st-formular input:not([type=checkbox]), .dp-st-formular select, .dp-st-formular textarea { font: inherit; font-size: 14px; padding: 5px 8px; border: 1px solid #d3d3d2; border-radius: 4px; background: #fff; color: #000; box-sizing: border-box; width: 100%; }
.dp-st-formular input:focus, .dp-st-formular select:focus, .dp-st-formular textarea:focus { outline: none; border-color: var(--km-fokus); box-shadow: 0 0 0 .2rem rgba(31,127,207,.25); }
.dp-st-formular .dp-st-check { flex-direction: row; font-size: 14px; color: #000; }
.dp-st-zwei { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 12px; }
.dp-st-feld { display: flex; flex-direction: column; gap: 6px; }
.dp-st-feldname { font-size: 12px; color: var(--km-text-gedimmt); }

/* Schichtregeln (Verwaltung › Einstellungen) */
.vw-regel-aus td { color: #8a8f94; }
.vw-regel-aus .km-badge { opacity: .7; }

@media (max-width: 700px) {
    .dp-st-zwei { grid-template-columns: 1fr; }
}
