/* Custom CSS for cursor styles */

/* Add pointer cursor to edit buttons in tables */
.btn-editar {
    cursor: pointer !important;
}

/* Add pointer cursor to all action buttons in tables */
.d-flex.gap-2 .btn,
.btn-group .btn {
    cursor: pointer !important;
}

/* Estilo para texto negro en características de planes */
.list-group-item span {
    color: #000000 !important;
    font-weight: normal !important;
}

/* 
.lis_prod {
    border: 1px solid purple;
}

/* .Fdiv, .Sdiv, .Tdiv {
    border: 1px solid purple;
}
     

.Fdiv {
    width: 750px;
    border: 1px solid red;
}

.Sdiv {
    width: 680px;
    border: 1px solid blue;
}

.Tdiv{
    width: 1px;
    border: 1px solid green;
} */
 
/* Centrar botones de planes */
#plan_basico,
#plan_intermedio,
#plan_profesional {
    display: block !important;
    text-align: center !important;
    margin: 0 auto !important;
    width: fit-content !important;
}

#plan_basico a,
#plan_intermedio a,
#plan_profesional a {
    text-decoration: none !important;
    color: inherit !important;
}

.pulse-btn-planes:hover {
    animation: none;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(13, 110, 253, 0.3);
}

.pulse-btn-planes {
    animation: pulse 2s infinite;
    transition: all 0.3s ease;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(13, 110, 253, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(13, 110, 253, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(13, 110, 253, 0);
    }
}

/* Mobile responsive styles for plans page */
@media (max-width: 767.98px) {
    /* Make plan cards stack vertically on mobile */
    #plan_basico_container,
    #plan_intermedio_container,
    #plan_profesional_container {
        margin-bottom: 1rem;
    }
    
    /* Adjust card content for mobile */
    .card-body {
        padding: 1rem 0.75rem;
    }
    
    /* Make feature lists more compact on mobile */
    .list-group-item {
        padding: 0.5rem 0.75rem !important;
        font-size: 0.875rem;
    }
    
    /* Adjust button size for mobile */
    .badge.py-3.px-5 {
        padding: 0.75rem 1.5rem !important;
        font-size: 0.8rem !important;
    }
    
    /* Ensure proper spacing for mobile */
    .row > [class*="col-"] {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }
}

@media (max-width: 575.98px) {
    #lista_productos .Sdiv > .row { --bs-gutter-x: 0; }
    #lista_productos .Sdiv { padding-left: 0 !important; padding-right: 0 !important; }
    #lista_productos .Sdiv .col-6,
    #lista_productos .Sdiv .col-5,
    #lista_productos .Sdiv .col-1 { padding-left: 0 !important; padding-right: 0 !important; }
    #lista_productos .Sdiv .col-1 { padding-left: 0.375rem !important; }
    #lista_productos .Sdiv .input-group { margin-right: 0.375rem !important; }
    #lista_productos .Sdiv .btn-editar-prod-venta { margin-left: 0.375rem !important; }
}

/* ============================================
   DASHBOARD - Botones de Acceso Rápido
   ============================================ */

/* Botones Desktop */
.quick-action-btn {
    min-width: 110px;
    padding: 1rem 1.25rem;
    border-radius: 16px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(156, 39, 176, 0.3);
    border: none;
    text-decoration: none;
}

.quick-action-btn:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 8px 25px rgba(156, 39, 176, 0.45);
}

.quick-action-btn:active {
    transform: translateY(-2px) scale(1.01);
}

.quick-action-btn i {
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
    transition: transform 0.3s ease;
}

.quick-action-btn:hover i {
    transform: scale(1.15);
}

.quick-action-btn span {
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.3px;
}

/* Botones Móvil */
.quick-action-btn-mobile {
    padding: 0.75rem 1rem;
    border-radius: 14px;
    transition: all 0.15s ease;
    box-shadow: 0 3px 12px rgba(156, 39, 176, 0.25);
    background: linear-gradient(135deg, #9C27B0 0%, #7B1FA2 100%);
    border: none;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 70px;
    -webkit-tap-highlight-color: transparent;
}

/* Efecto "hundir" al tocar (móvil) */
.quick-action-btn-mobile:active {
    transform: scale(0.85) translateY(3px);
    box-shadow: 0 0 2px rgba(156, 39, 176, 0.2);
    background: linear-gradient(135deg, #6A1B9A 0%, #4A148C 100%);
}

.quick-action-btn-mobile i {
    font-size: 1.5rem;
    color: white;
    margin-bottom: 0.25rem;
}

.quick-action-btn-mobile span {
    font-size: 0.65rem;
    color: white;
    font-weight: 500;
    text-align: center;
    line-height: 1.2;
}

/* Solución para calendarios nativos que se quedan encima de otros elementos */
/* El picker del calendario debe tener un z-index controlado */
input[type="date"]::-webkit-calendar-picker-indicator {
    cursor: pointer;
}

/* Mejorar el comportamiento del collapse con calendarios */
.collapse {
    overflow: visible !important;
    position: relative;
}

.collapse .card {
    overflow: visible !important;
    position: relative;
}

/* Los inputs de fecha deben tener un z-index que no interfiera */
input[type="date"] {
    position: relative;
    z-index: auto;
}

/* Cuando el input de fecha está enfocado, no aumentar demasiado el z-index */
input[type="date"]:focus {
    z-index: auto;
}

/* Los selects deben poder abrirse por encima si es necesario */
select.form-select {
    position: relative;
    z-index: auto;
}

/* Cuando el select está abierto */
select.form-select:focus {
    z-index: 10;
}

/* Contenedor del formulario de filtros */
#multiCollapseExample1 .card-body {
    position: relative;
    z-index: 1;
}