/* Estilos personalizados para formularios de Grupo DHS (AdminLTE 4 / Bootstrap 5) */

/* Espaciado para contenedores de formulario */
.form-group {
    margin-bottom: 1rem;
}

/* Labels en negrita y con separación inferior del input */
label:not(.custom-control-label):not(.form-check-label),
.form-label {
    font-weight: 700 !important;
    margin-bottom: 0.5rem;
    display: inline-block;
}

/* Compatibilidad de utilidades de Bootstrap 4 en Bootstrap 5 */
.font-weight-bold {
    font-weight: 700 !important;
}

.font-weight-normal {
    font-weight: 400 !important;
}

/* Compatibilidad de botones de cierre (.close de Bootstrap 4 en Bootstrap 5) */
.close {
    float: right;
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1;
    color: inherit;
    text-shadow: 0 1px 0 #fff;
    opacity: 0.5;
    background: transparent;
    border: 0;
    padding: 0;
    cursor: pointer;
}

.close:hover,
.close:focus {
    color: inherit;
    text-decoration: none;
    opacity: 0.75;
    outline: 0;
}

.alert-dismissible .close {
    position: absolute;
    top: 0;
    right: 0;
    z-index: 2;
    padding: 0.75rem 1.25rem;
}

/* Campos deshabilitados y de solo lectura */
.form-control:disabled,
.form-control[disabled],
.form-control[readonly] {
    background-color: var(--bs-secondary-bg, #e9ecef) !important;
    cursor: not-allowed;
    opacity: 0.85;
}

/* Switches */
.form-check.form-switch .form-check-input,
.form-check.form-switch .form-check-label {
    cursor: pointer;
}

/* Flecha desplegable en elementos select */
select.form-control:not([multiple]):not([size]),
select.form-control:not([multiple])[size="1"] {
    background-image: var(--bs-form-select-bg-img, url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e"));
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 16px 12px;
    padding-right: 2.25rem;
}


