/**
*
* En este archivo solo debe de ir CSS que se debe aplicar a los botones de exportación
* y visibilidad de columnas pertenecientes a datatables
*
*/

/* ************************************************************************* *
*                            BOTONES DE ACCION                               *
* ************************************************************************** */

/* Incrementamos ligeramente el texto */
.section-data-tables .card .card-content .card-title span.badge.new {
    font-size: .9rem;
}
/* Disminuimos el margen entre los elementos 'badge' en 'cards' */
.section-data-tables .card .card-content .card-title span.badge {
    padding: 0;
    margin-left: 7px;
}

/* Cambiamos el tamaño de los botones (de tipo anchor) dentro del badge */
.section-data-tables .card .card-content .card-title span a.btn {
    line-height: 32px;
    height: 30px;
    padding: 0px 1rem;
    font-size: .9rem;
}

/* Reducimos el margen de los iconos */
.section-data-tables .card .card-content .card-title span a i.left
{
    margin-right: 3px;
}
.section-data-tables .card .card-content .card-title span a i.right
{
    margin-left: 3px;
}

/* ************************************************************************* *
*                          BOTONES DE DATATABLES                             *
* ************************************************************************** */

/* Los hacemos ligeramente más pequeños */
div.dataTables_wrapper > div.dt-buttons > button.dt-button {
    padding: 0px 20px;
    font-size: 0.8rem;
    line-height: 30px;
    height: 30px;
}

/* Clases para hacer 'btn-group' similares a bootstrap */
/* Estilos para el contenedor de los botones en datatables */
.dt-buttons {
    position: relative;
    display: inline-flex;
    display: flex;
    vertical-align: middle;
    margin-bottom: 8px;
}
/* Estilos aplicados al botón inicial (en el contenedor de datatables) */
.dt-buttons > .btn-small:first-child:not(:last-child) {
    border: 1px solid #d5d5d5;
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}
/* Estilos aplicados a los botones intermedios (en el contenedor de datatables) */
.dt-buttons > .btn-small:not(:first-child):not(:last-child) {
    border-top: 1px solid #d5d5d5;
    border-right: 1px solid #d5d5d5;
    border-bottom: 1px solid #d5d5d5;
    border-radius: 0;
}
/* Estilos aplicados al botón final (en el contenedor de datatables) */
.dt-buttons > .btn-small:last-child:not(:first-child),
.dt-buttons > .dropdown-toggle:not(:first-child) {
    border-top: 1px solid #d5d5d5;
    border-right: 1px solid #d5d5d5;
    border-bottom: 1px solid #d5d5d5;
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}
/* Estilos aplicados a botones inactivos */
.dt-buttons > .btn-inactive {
    background-color: #607d8b;
}
.dt-buttons > .btn-inactive:hover {
    background-color: #728F9D;
}
.dt-buttons > .btn-small > span > i {
    margin-left: 5px;
}
/* Removemos la sombra de todos los botones */
.dt-buttons > .btn-small {
    -webkit-box-shadow: 0 0px 0px 0 rgba(0, 0, 0, 0), 0 0px 0px 0px rgba(0, 0, 0, 0), 0 0px 0px 0 rgba(0, 0, 0, 0);
    box-shadow: 0 0px 0px 0 rgba(0, 0, 0, 0), 0 0px 0px 0px rgba(0, 0, 0, 0), 0 0px 0px 0 rgba(0, 0, 0, 0);
}
/* Aplicamos sombra cuando el boton este en estado 'hover' */
.dt-buttons > .btn-small:hover {
    -webkit-box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.14), 0 3px 1px -2px rgba(0, 0, 0, 0.12), 0 1px 5px 0 rgba(0, 0, 0, 0.2);
    box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.14), 0 3px 1px -2px rgba(0, 0, 0, 0.12), 0 1px 5px 0 rgba(0, 0, 0, 0.2);
}

/* Estilos para dropdown de visibilidad de columnas */
div.dataTables_wrapper > div.dt-buttons > div.dt-button-collection {
    position: absolute;
    z-index: 9999;
    top: 0;
    left: 0;
    overflow-y: auto;
    min-width: 150px;
    width: 300px;
    max-width: 300px;
    margin: 0;
    -webkit-transform-origin: 0 0;
    -moz-transform-origin: 0 0;
    -ms-transform-origin: 0 0;
    -o-transform-origin: 0 0;
    transform-origin: 0 0;
    background-color: #fff;
    -webkit-box-shadow: 0 2px 2px 0 rgba(0, 0, 0, .14), 0 3px 1px -2px rgba(0, 0, 0, .12), 0 1px 5px 0 rgba(0, 0, 0, .2);
    box-shadow: 0 2px 2px 0 rgba(0, 0, 0, .14), 0 3px 1px -2px rgba(0, 0, 0, .12), 0 1px 5px 0 rgba(0, 0, 0, .2);
}
div.dataTables_wrapper > div.dt-buttons > div.dt-button-collection > button {
    line-height: 1.5rem;
    clear: both;
    width: 100%;
    min-height: 50px;
    cursor: pointer;
    text-align: left;
    padding: 14px 24px;
    background: none;
    border: none;
    color: rgba(0, 0, 0, .87);
}
div.dataTables_wrapper > div.dt-buttons > div.dt-button-collection > button.active {
    /* gradient-shadow gradient-45deg-light-blue-cyan */
    background: #0288d1;
    background: -webkit-linear-gradient(45deg, #0288d1, #26c6da) !important;
    background: -moz- oldlinear-gradient(45deg, #0288d1, #26c6da) !important;
    background: -o-linear-gradient(45deg, #0288d1, #26c6da) !important;
    background: linear-gradient(45deg, #0288d1, #26c6da) !important;
    color: white;
}
div.dataTables_wrapper > div.dt-buttons > div.dt-button-collection > button:hover {
    background-color: #eee;
}
div.dataTables_wrapper > div.dt-buttons > div.dt-button-collection > button.active:hover {
    /* gradient-shadow gradient-45deg-light-blue-cyan */
    background: #0288d1;
    background: -webkit-linear-gradient(45deg, #0288d1, #26c6da) !important;
    background: -moz- oldlinear-gradient(45deg, #0288d1, #26c6da) !important;
    background: -o-linear-gradient(45deg, #0288d1, #26c6da) !important;
    background: linear-gradient(45deg, #0288d1, #26c6da) !important;
    opacity: 0.8;
}
div.dataTables_wrapper > div.dt-buttons > div.dt-button-collection > button:not(:first-child):not(:nth-child(2)) {
    border-top: 1px solid #d5d5d5;
}


/* ************************************************************************* *
*                          MODAL DE BOTON 'COPIAR'                           *
* ************************************************************************** */

#datatables_buttons_info.dt-button-info h2 {
    padding: 0.5em;
    margin: 0;
    font-size: 2rem;
    font-weight: normal;
    border-bottom: 1px solid #ddd;
    background-color: #f3f3f3;
}
#datatables_buttons_info.dt-button-info {
    position: fixed;
    top: 50%;
    left: 50%;
    width: 400px;
    margin-top: -100px;
    margin-left: -200px;
    background-color: white;
    border: 2px solid #c5c5c5;
    box-shadow: 3px 3px 8px rgba(0,0,0,0.3);
    border-radius: 3px;
    text-align: center;
    z-index: 21;
}
#datatables_buttons_info.dt-button-info div {
    padding: 1em;
}
