/* Datenschutz-Modul (DSB-Cockpit) — 10.09.2026
   Wiederverwendet globale Atome aus style.css (.btn/.card/.form-control/.form-group);
   hier nur das Modul-Spezifische: Tabelle, Status-Badges, Modal-Shell, Formular-Layout.
   Struktur/Klassen bewusst analog q-button.css. */

.dsb-table { width: 100%; border-collapse: collapse; font-size: .87rem; background: var(--surface); }
.dsb-table th, .dsb-table td { padding: 9px 12px; text-align: left; border-bottom: 1px solid var(--border); white-space: nowrap; }
.dsb-th { background: var(--background); font-weight: 600; color: var(--text-main); position: relative; }
.dsb-th-sortable { cursor: pointer; user-select: none; }
.dsb-th-sortable:hover { color: var(--primary); }
.dsb-th i.fa-sort-up, .dsb-th i.fa-sort-down { margin-left: 5px; color: var(--primary); }
.dsb-resize-handle { position: absolute; right: 0; top: 0; bottom: 0; width: 6px; cursor: col-resize; }
.dsb-resize-handle:hover { background: var(--primary); opacity: .3; }
.dsb-row:hover { background: var(--background); }
.dsb-td-muted { color: var(--text-muted); }
.dsb-td-actions { white-space: nowrap; }
.dsb-link { color: var(--primary); text-decoration: none; font-weight: 500; }
.dsb-link:hover { text-decoration: underline; }

.dsb-icon-btn { border: none; background: none; color: var(--text-muted); cursor: pointer; font-size: .82rem; padding: 4px 7px; border-radius: 4px; }
.dsb-icon-btn:hover { background: #e2e8f0; color: var(--text-main); }
.dsb-icon-btn-danger:hover { background: #fee2e2; color: #991b1b; }

.dsb-badge { display: inline-block; padding: 3px 10px; border-radius: 12px; font-size: .76rem; font-weight: 600; white-space: nowrap; }
.dsb-badge-aktiv   { background: #dcfce7; color: #166534; }
.dsb-badge-inaktiv { background: #f1f5f9; color: #94a3b8; }
.dsb-badge-pruefen { background: #fef3c7; color: #92400e; }

.dsb-overlay { position: fixed; inset: 0; background: rgba(15,23,42,.5); display: flex; align-items: center; justify-content: center; z-index: 500; }
.dsb-modal { background: var(--surface); border-radius: var(--radius); width: 560px; max-width: 94vw; max-height: 88vh; display: flex; flex-direction: column; box-shadow: 0 25px 50px -12px rgba(0,0,0,.25); }
.dsb-modal-lg { width: 820px; }
.dsb-modal-hd { padding: 16px 20px; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; }
.dsb-modal-hd h3 { margin: 0; font-size: 1.05rem; }
.dsb-modal-x { background: none; border: none; font-size: 1.3rem; cursor: pointer; color: var(--text-muted); line-height: 1; }
.dsb-modal-bd { padding: 20px; overflow-y: auto; flex: 1; }
.dsb-modal-ft { padding: 14px 20px; border-top: 1px solid var(--border); display: flex; justify-content: flex-end; gap: 10px; }

.dsb-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.dsb-form-section-title { font-weight: 600; font-size: .9rem; margin: 18px 0 8px; padding-top: 12px; border-top: 1px solid var(--border); }
.dsb-form-section-title:first-child { margin-top: 0; padding-top: 0; border-top: none; }
.form-group-checkbox label { display: flex; align-items: center; gap: 8px; font-weight: 400; }
.form-group-checkbox input { margin: 0; }

.dsb-toast { position: fixed; bottom: 24px; right: 24px; background: #1e293b; color: #fff; padding: 10px 18px; border-radius: 8px; font-size: .85rem; z-index: 600; box-shadow: 0 10px 25px rgba(0,0,0,.2); }
.dsb-toast-error { background: #991b1b; }
