/* ============================================================
   dsb_readonly.css · Stand 2026-07-27 · v1
   Nur-Lese-Ansicht der Einstellungen fuer Nicht-Admins.
   Aktiviert durch <fieldset disabled class="dsb-readonly"> in app.py.

   <fieldset disabled> sperrt bereits native Buttons, Inputs und
   Checkboxen. dcc.Dropdown und dash_table.DataTable sind div-basiert
   und werden davon NICHT erfasst -> hier zusaetzlich sperren.
   Die Reiter (a.nav-link) sind KEINE Formular-Elemente und bleiben
   bewusst bedienbar, damit alle Tabs ansehbar sind.
   ============================================================ */

.dsb-readonly .Select,
.dsb-readonly .Select-control,
.dsb-readonly .is-searchable,
.dsb-readonly .dash-spreadsheet-container,
.dsb-readonly .dash-table-container {
    pointer-events: none !important;
}

/* Dezente optische Kennzeichnung inaktiver Bedienelemente */
.dsb-readonly .Select-control {
    background: #f3f4f6 !important;
}
.dsb-readonly button:disabled,
.dsb-readonly input:disabled,
.dsb-readonly textarea:disabled,
.dsb-readonly .Select {
    opacity: 0.7;
}

/* DataTable-Zellen im Read-only-Modus neutralisieren (kein Edit-Cursor) */
.dsb-readonly .dash-cell,
.dsb-readonly .dash-cell input {
    cursor: default !important;
}
