/**
 * CSS dedicado a los estilos generales de la aplicación
 */

/**
 * GENERALES
 */

.separaBotonDerecha {
    margin-right: 5px;
}

/**
Preloader
 */
#page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    background: #FFF none repeat scroll 0% 0%;
    opacity: 50%;
    z-index: 99999;
}
#page-loader .preloader-interior {
    display: block;
    position: relative;
    left: 50%;
    top: 50%;
    width: 150px;
    height: 150px;
    margin: -75px 0 0 -75px;
    border-radius: 50%;
    border: 3px solid transparent;
    border-top-color: #dbdde0;

    -webkit-animation: spin 2s linear infinite; /* Chrome, Opera 15+, Safari 5+ */
    animation: spin 2s linear infinite; /* Chrome, Firefox 16+, IE 10+, Opera */
}
#page-loader .preloader-interior:before {
    content: "";
    position: absolute;
    top: 5px;
    left: 5px;
    right: 5px;
    bottom: 5px;
    border-radius: 50%;
    border: 3px solid transparent;
    border-top-color: #343a40;

    -webkit-animation: spin 3s linear infinite; /* Chrome, Opera 15+, Safari 5+ */
    animation: spin 3s linear infinite; /* Chrome, Firefox 16+, IE 10+, Opera */
}

#page-loader .preloader-interior:after {
    content: "";
    position: absolute;
    top: 15px;
    left: 15px;
    right: 15px;
    bottom: 15px;
    border-radius: 50%;
    border: 3px solid transparent;
    border-top-color: #17a2b8;

    -webkit-animation: spin 1.5s linear infinite; /* Chrome, Opera 15+, Safari 5+ */
    animation: spin 1.5s linear infinite; /* Chrome, Firefox 16+, IE 10+, Opera */
}

@-webkit-keyframes spin {
    0%   {
        -webkit-transform: rotate(0deg);  /* Chrome, Opera 15+, Safari 3.1+ */
        -ms-transform: rotate(0deg);  /* IE 9 */
        transform: rotate(0deg);  /* Firefox 16+, IE 10+, Opera */
    }
    100% {
        -webkit-transform: rotate(360deg);  /* Chrome, Opera 15+, Safari 3.1+ */
        -ms-transform: rotate(360deg);  /* IE 9 */
        transform: rotate(360deg);  /* Firefox 16+, IE 10+, Opera */
    }
}
@keyframes spin {
    0%   {
        -webkit-transform: rotate(0deg);  /* Chrome, Opera 15+, Safari 3.1+ */
        -ms-transform: rotate(0deg);  /* IE 9 */
        transform: rotate(0deg);  /* Firefox 16+, IE 10+, Opera */
    }
    100% {
        -webkit-transform: rotate(360deg);  /* Chrome, Opera 15+, Safari 3.1+ */
        -ms-transform: rotate(360deg);  /* IE 9 */
        transform: rotate(360deg);  /* Firefox 16+, IE 10+, Opera */
    }
}

/* Ajustes para datatables.js */
table.dataTable.dtr-inline.collapsed.table-sm>tbody>tr>td:first-child:before, table.dataTable.dtr-inline.collapsed.table-sm>tbody>tr>th:first-child:before {
    top: 50% !important;
}

/* Ajuste admin LTE */
@media (max-width: 576px) {
    .login-box,
    .register-box {
        margin-top: 0 !important;
        width: 100% !important;
    }
}

/* Ajuste para fullcalendar */
.fc .fc-timegrid-col.fc-day-today {
    background-color: transparent !important;
}

.card-title-btn-right {
    margin: -0.3em;
    float: right !important;
    position: relative;
    display: -webkit-inline-flex;
    display: -ms-inline-flexbox;
    display: inline-flex;
    vertical-align: middle;
}


/* listas ordenadas encadenadas */
.concatenatedList ol {
    counter-reset: item
}
.concatenatedList li {
    display: block
}
.concatenatedList li:before {
    content: counters(item, ".") ". ";
    counter-increment: item
}


/** Text-Area Limpio */

.textarea-clean {
    border: none;
    background-color: transparent;
    overflow: hidden;
    min-height: 31px!important;
    /*resize: none;*/
}

.textarea-clean:after {
    border: none;
}

.textarea-bgw {
    border: none;
    overflow: hidden;
    /*min-height: 31px;*/
}

.color-blanco{
    color:#ffffff !important;
}
.fondo-burdeos{
    background-color:#be0f2e !important;
}

.filtroTabla{
    border:2px solid #eee;
    padding:5px 10px 15px 10px;
    -webkit-border-radius: 4px;
    -moz-border-radius: 4px;
    border-radius: 4px;
    margin-bottom: 15px;
}

.columna-ancho-90{width:90px;}
.columna-ancho-100{width:100px;}
.columna-ancho-minimo{width:14px;}
.columna-imagen{width:100px !important;}

    /* Override */
.select2-selection__rendered{line-height: 1.8rem !important;}  /* assets/js/select2-bootstrap4-theme/select2-bootstrap4.min.css */

.label-autor-seleccionado,.label-grupo-seleccionado{width:50%;background-color: #31708f;padding-left: 2px;color:white;height:30px;border-radius: 4px;font-weight: normal !important;}

.labelAutorEliminado,.labelGrupoEliminado{background-color: #CCC;text-decoration:line-through;}


/*.labelTituloVariosCampos{
    background-color: #CCC;
    display: block;
    border-radius: 4px;
    padding-left: 2px;
}*/

.mensajeErrorFormulario{
    background-color:#B97A78;
    color:#FFFFFF;
    padding:3px 3px 3px 10px;
    margin-top:5px;
    visibility:visible;
    display:block;
    margin-bottom:10px;
    border-radius:4px;
    float:left;
    clear:both;
    width:100%;
    margin-right:15px;
}
.mensajeInfoFormulario{
    background-color:#28a745;
    color:#FFFFFF;
    padding:3px 3px 3px 10px;
    margin-top:5px;
    visibility:visible;
    display:block;
    margin-bottom:10px;
    border-radius:4px;
    float:left;
    clear:both;
    width:100%;
    margin-right:15px;
}

.oculto {
    display: none !important;
}
.campoAno{width:70px !important;text-align: center;}

.card-header-agrupador-campos{line-height: 1;}

.centrado{text-align: center !important;}
.derecha{text-align: right !important;}
.campo-moneda{text-align: right !important;}

.form-control-sm{height: calc(1.8125rem + 2px) !important;}
.pl-6{padding-left:6px !important;}
.pr-6{padding-right:6px !important;}



.label-filtro-pedido-seleccionado{
    width: 100%;
    background-color: #ccc;
    color: #3f474e;
    padding-left: 5px;
    padding-top: 2px;
    height: 30px;
    border-radius: 4px;
    font-weight: bold !important;
}

.icono-anadir-lineas-formulario{
    font-size: 28px;
    color:#007bff;
    cursor:pointer;
}


.capaBotonesPedido {
    display: grid !important;
    grid-template-columns: repeat(4,auto);
    grid-gap: 2px;
}
.capaBotonesPedido .btn{
    border-radius: 3px !important;
}

input[type="checkbox"] {
    text-align: left;
    width: 20px;
}


.brand-link {
    display: flex !important;
    font-size: 1.25rem;
    line-height: 1.5;
    padding: .8125rem .5rem;
    transition: width .3s ease-in-out;
    white-space: nowrap;
    justify-content: center !important;
}

.brand-link .brand-image {
    line-height: .8 !important;
    margin: 0  !important;
    max-height: 50px !important;
    width: auto !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    float: none !important;

}


.tablaGenerica {
    margin-top: 15px;
    width: 100%;
    font-size: 80%;
    border-collapse: separate;
    border-spacing: 0;
    border: none;
    margin-bottom: 15px;
}

.tablaGenerica tr:hover {
    background-color: #fcfcfc;
}

.tablaGenerica th {
    border: none;
    background-color: #f6f6f6;
    text-align: left;
    padding: 10px;
    color: #606060;
    vertical-align: top;
    font-weight: 600;
}

.tablaGenerica td {
    padding: 5px;
    border-bottom: #eee 1px solid;
    border-top: none;
    border-right: none;
    vertical-align: middle;
    font-size: 13px;
    color: #666;

}

.tablaGenerica td span {
    color: #666;
    font-weight: normal !important;
    font-size: 12px;
}

.note-editor .note-editable {
    min-height: 400px;
}

/* Funcionalidad de copy-paste */
.copy-container {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 20px;
}

.text-to-copy {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    flex-grow: 1;
}

.copy-btn {
    padding: 10px 15px;
    background: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.3s;
}

.copy-btn:hover {
    background: #0056b3;
}

.copy-btn.copied {
    background: #28a745;
}

.tooltip {
    position: relative;
    display: inline-block;
}

.tooltip .tooltiptext {
    visibility: hidden;
    width: 120px;
    background-color: #555;
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 5px;
    position: absolute;
    z-index: 1;
    bottom: 125%;
    left: 50%;
    margin-left: -60px;
    opacity: 0;
    transition: opacity 0.3s;
}

.tooltip:hover .tooltiptext {
    visibility: visible;
    opacity: 1;
}
/************/

/** oculto boton de subir imagen en summernote*/
.note-group-select-from-files{
    visibility: hidden;
    display: none;
}

.enlace{
    cursor:pointer;
}


/**
 * ESTILOS PARA CALENDARIO
 */


#calendario .divBlock {
    z-index: 1000;
    /*position: absolute;*/

    opacity: 0;
}

/* DivTable.com */
#calendario .divTable {
    display: table;
    width: 100%;
}

#calendario .divTableRow {
    display: table-row;
}

#calendario .divTableHeading {
    background-color: #EEE;
    display: table-header-group;
    text-align: center;
}

#calendario .divTableCell, .divTableHead {
    border: none;
    display: table-cell;
    padding: 0 1px;
}

#calendario .divTableHeading {
    background-color: #EEE;
    display: table-header-group;
    font-weight: bold;
}

#calendario .divTableFoot {
    background-color: #EEE;
    display: table-footer-group;
    font-weight: bold;
}

#calendario .divTableBody {
    display: table-row-group;
}

/**
 * ESTILOS CHECKS CALENDARIO
 */

#calendario div > label {
    position: relative;
    cursor: pointer;
    width: 100%;
    height: 100%;
    text-align: center;
}

#calendario div > label [type="checkbox"] {
    display: none;
}

#calendario [type="checkbox"] + span {
    display: inline-block;
    width: 100%;
    height: 100%;
    text-align: center;
    font-weight: normal;
}

#calendario :checked + span {
    border-radius: 5px;
    color: white;
    background: #737373;
    display: inline-block;

}

#calendario [type="checkbox"][disabled] + span {
    background: #af0000;
    border-radius: 5px;
    color: white;
}