/* Admin form switches: flex satırlarında tıklamayı engelleyen üst bindirmeyi önler */

/* Metin bloğu, form-switch-lg negatif offset ile sola taşan switch alanını tıklamasın */
[class*="-toggle-box"].d-flex > div:first-child:not(.form-check),
[class*="-toggle-box"] .d-flex > div:first-child:not(.form-check),
.rounded-3.border.d-flex > div:first-child:not(.form-check) {
    flex: 1 1 auto;
    min-width: 0;
    pointer-events: none;
}

[class*="-toggle-box"] .form-check.form-switch,
[class*="-toggle-box"] .d-flex .form-check.form-switch,
.rounded-3.border.d-flex .form-check.form-switch,
.bn-toggle-box .form-check.form-switch,
.form-check.form-switch.form-switch-lg.m-0 {
    flex-shrink: 0;
    position: relative;
    z-index: 2;
    pointer-events: auto;
    padding-left: 0;
}

/* form-switch-lg: left:-0.75rem + negatif margin flex satırında metin alanına taşar */
[class*="-toggle-box"] .form-switch-lg .form-check-input,
.rounded-3.border.d-flex .form-switch-lg .form-check-input,
.bn-toggle-box .form-switch-lg .form-check-input,
.form-check.form-switch.form-switch-lg.m-0 .form-check-input {
    left: 0;
    margin-left: 0;
}

.form-check.form-switch .form-check-input[role="switch"] {
    cursor: pointer;
    position: relative;
    z-index: 2;
    pointer-events: auto;
}

/* asp-for checkbox: gizli alan switch kutusunda görünmesin / tıklamayı engellemesin */
.form-check.form-switch > input[type="hidden"] {
    display: none !important;
}
