/**
 * Card permit (auCardColumnPermit) — readonly / required görsel ipuçları.
 * Bootstrap 5 ile uyumlu; tema (light/dark) renklerini koruyup hafif bir
 * grimsi vurgu ekler. Form-floating ve Select2 ile birlikte çalışır.
 */

/* CanUpdate=0 olan alanlar — readonly stili */
.card-permit-readonly,
input.card-permit-readonly,
select.card-permit-readonly,
textarea.card-permit-readonly {
    background-color: var(--bs-secondary-bg, #e9ecef) !important;
    cursor: not-allowed !important;
}

/* Select2 (single) için disabled görünüm uyumu */
.select2-container--disabled .select2-selection,
.card-permit-readonly + .select2-container .select2-selection {
    background-color: var(--bs-secondary-bg, #e9ecef) !important;
    cursor: not-allowed !important;
}

/* Switch / checkbox readonly görünümü */
.form-check-input.card-permit-readonly {
    cursor: not-allowed !important;
    opacity: 0.7;
}

/* IsRequired=1 olan alanların etiketinin yanına yıldız */
.card-permit-required-label::after {
    content: ' *';
    color: var(--bs-danger, #dc3545);
    font-weight: 700;
    margin-left: 0.125rem;
}
