/* Estilos personalizados para la configuración */
.configuracion-card {
    border-left: 4px solid #6c757d !important;
}

.configuracion-card .card-header {
    background-color: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
}

.input-group-text {
    background-color: #e9ecef;
    border: 1px solid #ced4da;
}

/* Estilo para los contadores de caracteres */
.char-counter {
    font-size: 0.875rem;
    color: #6c757d;
}

.char-counter.warning {
    color: #ffc107;
}

.char-counter.danger {
    color: #dc3545;
}

/* Estilos personalizados para el modal */
.modal-header.bg-primary {
    background: linear-gradient(45deg, #3c8dbc, #367fa9) !important;
}

.custom-switch .custom-control-label::before {
    background-color: #adb5bd;
}

.custom-switch .custom-control-input:checked ~ .custom-control-label::before {
    background-color: #28a745;
    border-color: #28a745;
}

/* Scroll personalizado para el área de bodegas */
.border.rounded {
    scrollbar-width: thin;
    scrollbar-color: #3c8dbc #f8f9fa;
}

.border.rounded::-webkit-scrollbar {
    width: 6px;
}

.border.rounded::-webkit-scrollbar-track {
    background: #f8f9fa;
    border-radius: 3px;
}

.border.rounded::-webkit-scrollbar-thumb {
    background: #3c8dbc;
    border-radius: 3px;
}

/* Estilos para el switch personalizado */
.custom-switch-lg .custom-control-label::before {
    width: 3rem;
    height: 1.5rem;
    border-radius: 1rem;
}

.custom-switch-lg .custom-control-label::after {
    width: calc(1.5rem - 4px);
    height: calc(1.5rem - 4px);
    border-radius: 1rem;
}

.custom-switch-lg .custom-control-input:checked ~ .custom-control-label::after {
    transform: translateX(1.5rem);
}

.switch-text {
    font-weight: 600;
    margin-left: 0.5rem;
}

/* Estilos para los textos informativos */
.texto-operadora-activo {
    color: #28a745;
    font-weight: 500;
}

.texto-operadora-inactivo {
    color: #ffc107;
    font-weight: 500;
}

/* Estilos específicos para el modal de edición */
#editarCodigo:readonly {
    background-color: #f8f9fa;
    cursor: not-allowed;
}

/* Switch más compacto */
.custom-switch-md .custom-control-label::before {
    width: 2rem;  /* Reducido de 2.5rem */
    height: 1rem; /* Reducido de 1.25rem */
}

.custom-switch-md .custom-control-label::after {
    width: calc(1rem - 4px);   /* Reducido */
    height: calc(1rem - 4px);  /* Reducido */
}

.custom-switch-md .custom-control-input:checked ~ .custom-control-label::after {
    transform: translateX(1rem); /* Ajustado al nuevo tamaño */
}

/* Mejor espaciado entre switch y texto */
.custom-switch-md .custom-control-label {
    padding-left: 0.5rem; /* Espacio entre switch y texto */
    margin-bottom: 0;
    line-height: 1.2;
}

/* Asegurar que el contenedor tenga suficiente espacio */
.form-group .custom-control {
    min-height: auto;
}

/* Estilo para el switch de pasaporte */
.custom-switch-md .custom-control-label {
    padding-left: 2rem;
    cursor: pointer;
}

.custom-switch-md .custom-control-label::before {
    width: 3rem;
    border-radius: 1rem;
    height: 1.5rem;
    top: 0;
}

.custom-switch-md .custom-control-label::after {
    width: calc(1.5rem - 4px);
    height: calc(1.5rem - 4px);
    border-radius: calc(1.5rem - 4px);
    top: 2px;
    left: -2rem;
}

.custom-switch-md .custom-control-input:checked ~ .custom-control-label::after {
    transform: translateX(1.5rem);
}

.switch-text {
    margin-left: 0.5rem;
    vertical-align: middle;
}

/* Mejoras visuales */
.modal-header .close {
    color: white;
    opacity: 0.8;
}

.modal-header .close:hover {
    opacity: 1;
}

.bg-warning .close {
    color: #212529;
}