@media print {
    .no-imprimir {
        display: none;
    }
    .col-5 {
        width: 60%; /* Establece el ancho al 100% para ocupar todo el ancho de la página impresa */
    }
}

body {
    background-color: rgb(174, 204, 238);
    background: radial-gradient(
        circle,
        rgba(174, 204, 238, 1) 0%,
        rgba(238, 237, 237, 1) 100%
    );
}




/* Ensure that the demo table scrolls */
th, td { white-space: nowrap; }

div.dataTables_wrapper {
    margin: 0 ;
}


table {
    font-size: 14px; 
}

/* Estilo para mover el campo de búsqueda a la izquierda en la tabla con identificador "tabla_usuarios" */
#tabla_usuarios_filter {
    float: left;
    margin-top: 5px;
}

/* Ajustar el ancho del campo de búsqueda */
#tabla_usuarios_filter input[type="search"] {
    width: 100%;
}

/* Estilos para la vista minimalista de seguimientos */
.consulta-item {
    transition: all 0.3s ease;
    border-left: 4px solid transparent;
}

.consulta-item:hover {
    background-color: #f8f9fa;
    border-left-color: #007bff;
}

.consulta-header {
    cursor: pointer;
    transition: background-color 0.2s ease;
    user-select: none;
}

.consulta-header:hover {
    background-color: #e9ecef;
}

.consulta-content {
    border-top: 1px solid #dee2e6;
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        max-height: 0;
    }
    to {
        opacity: 1;
        max-height: 500px;
    }
}

.toggle-icon {
    transition: transform 0.3s ease;
    font-size: 1.2em;
}

.toggle-icon.rotated {
    transform: rotate(180deg);
}

.cursor-pointer {
    cursor: pointer;
}

.consultas-container {
    max-height: 70vh;
    overflow-y: auto;
}

.consultas-container::-webkit-scrollbar {
    width: 8px;
}

.consultas-container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.consultas-container::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

.consultas-container::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* Badges personalizados */
.badge-etapa {
    font-size: 0.75em;
    padding: 0.4em 0.8em;
    border-radius: 20px;
    font-weight: 500;
}

/* Botones de acción mejorados */
.btn-action {
    border-radius: 20px;
    padding: 0.25rem 0.75rem;
    font-size: 0.875rem;
    transition: all 0.2s ease;
}

.btn-action:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Información de contacto mejorada */
.contact-info {
    background: #ffffff;
    border-radius: 8px;
    padding: 1rem;
    border: 1px solid #e9ecef;
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
    padding: 0.25rem 0;
}

.contact-item:last-child {
    margin-bottom: 0;
}

.contact-icon {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 0.75rem;
    font-size: 0.875rem;
}

/* Comentarios mejorados */
.comentarios-section {
    background: #ffffff;
    border-radius: 8px;
    padding: 1rem;
    border: 1px solid #e9ecef;
    max-height: 200px;
    overflow-y: auto;
}

/* Estados de prioridad */
.prioridad-alta {
    border-left-color: #dc3545 !important;
}

.prioridad-media {
    border-left-color: #ffc107 !important;
}

.prioridad-baja {
    border-left-color: #28a745 !important;
}

/* Responsive */
@media (max-width: 768px) {
    .consulta-header .col-2,
    .consulta-header .col-3 {
        font-size: 0.875rem;
    }
    
    .consultas-container {
        max-height: 60vh;
    }
    
    .btn-group .btn {
        font-size: 0.75rem;
        padding: 0.25rem 0.5rem;
    }
}

/* Animaciones suaves */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Mejoras en modales */
.modal-content {
    border-radius: 12px;
    border: none;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.modal-header {
    border-bottom: 1px solid #e9ecef;
    border-radius: 12px 12px 0 0;
}

.modal-footer {
    border-top: 1px solid #e9ecef;
    border-radius: 0 0 12px 12px;
}

/* Mejoras específicas para botones de tabla de prospectos */
.btn-group .btn-action,
.btn-action.btn-sm {
    border-radius: 8px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 16px !important;
}

.btn-group .btn-action:hover,
.btn-action.btn-sm:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

/* Asegurar que todos los botones deshabilitados mantengan la forma */
.btn.disabled {
    border-radius: 8px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    opacity: 0.4;
    cursor: not-allowed;
}

/* Estilos para botones del header */
.btn-header-action {
    border-radius: 20px;
    font-size: 0.875rem;
    transition: all 0.2s ease;
}

.btn-header-action:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Estilos para badges de situación */
.badge {
    border-radius: 15px;
    font-size: 0.8rem;
    letter-spacing: 0.5px;
}

/* Mejoras para celdas de tabla */
td .d-flex {
    gap: 0.5rem;
}

/* Botones deshabilitados con mejor estilo */
.btn.disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* Texto pequeño mejorado */
.small {
    font-size: 0.85rem;
    line-height: 1.2;
}

/* Hover effects para filas de tabla */
tbody tr:hover {
    background-color: rgba(0,123,255,0.05);
    transition: background-color 0.2s ease;
}
