/* ServerAtlas 1.0.19 – globale Checkbox- und Radio-Korrektur */

/* Form-Control-Grundregeln dürfen Checkboxen und Radios nicht wie Textfelder behandeln. */
input[type="checkbox"],
input[type="radio"] {
    appearance: auto !important;
    -webkit-appearance: auto !important;
    box-sizing: border-box !important;
    display: inline-block !important;
    flex: 0 0 auto !important;
    width: 18px !important;
    height: 18px !important;
    min-width: 18px !important;
    max-width: 18px !important;
    min-height: 18px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: initial !important;
    background: transparent !important;
    box-shadow: none !important;
    opacity: 1 !important;
    vertical-align: middle !important;
    accent-color: var(--primary) !important;
    cursor: pointer;
}

input[type="checkbox"]:focus,
input[type="radio"]:focus {
    outline: 2px solid rgba(118,104,247,.55) !important;
    outline-offset: 3px !important;
    box-shadow: none !important;
}

/* Einheitliche horizontale Anordnung in allen Formularbereichen. */
.check-control,
.toggle-control,
.role-picker label,
.permission-grid label,
.consent-list label,
.filter-checks label,
.tag-picker label,
.consent-checks label {
    align-items: center;
}

.check-control {
    display: flex !important;
    grid-template-columns: none !important;
}

.check-control > input[type="checkbox"],
.check-control > input[type="radio"] {
    margin-top: 0 !important;
}

.toggle-control input[type="checkbox"],
.toggle-control input[type="radio"],
.role-picker input[type="checkbox"],
.permission-grid input[type="checkbox"],
.consent-list input[type="checkbox"],
.filter-checks input[type="checkbox"],
.tag-picker input[type="checkbox"],
.consent-checks input[type="checkbox"] {
    position: static !important;
    inset: auto !important;
    transform: none !important;
    pointer-events: auto !important;
}

/* Labels sollen nicht durch globale Grid-Regeln auseinandergerissen werden. */
.filter-checks label,
.consent-checks .check-control {
    display: flex !important;
    justify-content: flex-start !important;
    gap: 10px !important;
}

.tag-picker label {
    display: inline-flex !important;
    gap: 8px !important;
}

@media (max-width: 720px) {
    input[type="checkbox"],
    input[type="radio"] {
        width: 20px !important;
        height: 20px !important;
        min-width: 20px !important;
        max-width: 20px !important;
        min-height: 20px !important;
    }
}
