@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@500&display=swap');

* {
    margin: 0;
    padding: 0;
    font-family: 'Poppins', sans-serif !important;
}

.main {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.header {
    text-align: center;
    font-size: 40px;
    font-weight: bold;
    padding: 20px;
    width: 100%;
}

.alert-dark {
    color: #e9e9e9 !important;
    background-color: #60007a !important;
}

.product-container {
    position: relative; /* Importante para que los elementos absolutos se posicionen en relación con este contenedor */
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 80%;
    height: auto; /* Permitir que el contenedor crezca según el contenido */
    min-height: 680px; /* Establecer una altura mínima si es necesario */
    margin: 35px;
    margin-top: 35px;
    border-radius: 20px;
    box-shadow: rgba(0, 0, 0, 0.35) 0px 5px 15px;
    background: #fff;
}

.product-header {
    display: flex;
    align-items: center;
    width: 95%;
    height: 50px;
    margin-top: 30px;
}

.product-header h3 {
    font-weight: bold;
}

.dataTables_wrapper {
    position: relative; /* Importante para que los elementos absolutos se posicionen en relación con este contenedor */
    width: 95% !important;
    box-shadow: rgba(0, 0, 0, 0.16) 0px 1px 4px;
    padding: 20px;
    border-radius: 10px;
    height: 83%;
    text-align: center !important;
    margin-bottom: 50px; /* Añade margen inferior para dejar espacio para la paginación */
}


.dataTables_info {
    position: absolute; /* Cambiado a absolute */
    bottom: -45px; /* Mueve la paginación hacia abajo */
    left: 10px; /* Ajusta la posición izquierda */
    clear: both !important;
    float: left !important;
    padding-top: 0.755em;
}

.dataTables_paginate {
    position: absolute; /* Cambiado a absolute */
    bottom: -45px; /* Mueve la paginación hacia abajo */
    right: 0px; /* Ajusta la posición derecha */
}

table.dataTable thead>tr>th.sorting,
table.dataTable thead>tr>th.sorting_asc,
table.dataTable thead>tr>th.sorting_desc,
table.dataTable thead>tr>th.sorting_asc_disabled,
table.dataTable thead>tr>th.sorting_desc_disabled,
table.dataTable thead>tr>td.sorting,
table.dataTable thead>tr>td.sorting_asc,
table.dataTable thead>tr>td.sorting_desc,
table.dataTable thead>tr>td.sorting_asc_disabled,
table.dataTable thead>tr>td.sorting_desc_disabled {
    text-align: center;
}

td {
    text-align: center;
}

.modal-content {
    margin-top: 100px !important;
}

label, .modal-title{
    font-weight: bold !important;
}

.aclaration{
    font-size: small;
    text-align: center;
}

/* Estilos generales */
.product-container {
    margin-top: 20px;
}

.product-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.button-group {
    display: flex;
    align-items: center;
}

.footer {
    position: fixed;
    bottom: 0;
    width: 100%;
    background-color: #f8f8f8;
    padding: 10px 0;
    text-align: center;
    z-index: -1;
    box-shadow: rgba(0, 0, 0, 0.35) 15px 5px 15px;
}


/* Estilos para pantallas pequeñas y teléfonos móviles */
@media (max-width: 576px) {
    .product-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .button-group {
        margin-top: 10px;
    }

    .modal-content {
        padding: 10px;
    }

    .form-group label {
        font-size: 14px;
    }

    .dataTables_wrapper {
        width: 90% !important; /* Reducir el ancho de la tabla para pantallas pequeñas */
        padding: 10px; /* Reducir el padding para pantallas pequeñas */
        margin-bottom: 30px; /* Reducir el margen inferior para pantallas pequeñas */
    }
}
