:root {
    --main-primary-color: #0b4e1f;
    --main-secondary-color: #1ecc52;

    --aside-width: 265px;

    --color-primario: #ccc;
    --color-secundario: #ccc;
    --fuente-principal: 'Roboto', sans-serif;

    --color-nivel-9: #ff0000;
    --color-nivel-7: #1e4dff;
    --color-nivel-2: #9a9a9a;
}

/* PARA LOS FOOTABLE NO SE INCLUYE EN BOOTSTRAP 5 LAS FUENTES DE GLYPHICONS*/
@font-face {
    font-family: 'Glyphicons Halflings';
    src: url('../fonts/glyphicons-halflings-regular.eot');
    src: url('../fonts/glyphicons-halflings-regular.eot?#iefix') format('embedded-opentype'), url('../fonts/glyphicons-halflings-regular.woff2') format('woff2'), url('../fonts/glyphicons-halflings-regular.woff') format('woff'), url('../fonts/glyphicons-halflings-regular.ttf') format('truetype'), url('../fonts/glyphicons-halflings-regular.svg#glyphicons_halflingsregular') format('svg');
}

.aside-width, body:not(.aside-compact) aside.aside-end, body:not(.aside-compact) aside.aside-start {
    width: 200px;
}
@media only screen and (min-width: 992px) {
    body.aside-sticky:not(.aside-compact) #header, body.aside-sticky:not(.aside-compact) #js_header_spacer, body.aside-sticky:not(.aside-compact) #wrapper_content {
        margin-left: 200px;
    }
}
.mh-80 {
    height: 80px !important;
    min-height: 80px !important;
    max-height: 80px !important;
}

.mh-300 {
    height: 300px !important;
    min-height: 300px !important;
    max-height: 300px !important;
}
.fs-12px{
    font-size: 12px !important;
}
body.layout-admin {
    background-color: #eeeeee;
    padding: 0;
}
.section-login{
    min-height: 100vh;
    display: flex;
    align-items: center;
}
.caption-logni{
    display: flex;
    flex-direction: column;
    gap: 5rem;
}
.powby-login,
.casoline-login{
    position: absolute;
    width: 100%;
    display: flex;
    justify-content: center;
}

.casoline-login{
    top: 2em;
}
.casoline-login img {
    width: 800px;
}
.powby-login img {
    width: 400px;
}

.powby-login img,
.casoline-login img{
    max-width: 100%;
}

.powby-login {
    bottom: 2em;
}

.warn-caps {
    display:flex;
    align-items: center;
    gap: 5px;
    color: #c68000;
}
.warn-caps p{
    margin: 0;
    padding: 0;
}

/* PAGINATION */
.pagination{
    padding: 0.25rem;
    display: inline-flex;
    background-color: #f1f4f8;
    border-radius: 0.35rem;
    margin: 0;
}
.pagination li {
    --bs-nav-link-padding-x: 1rem;
    --bs-nav-link-padding-y: 0.5rem;
    --bs-nav-link-font-weight: ;
    --bs-nav-link-color: var(--bs-link-color);
    --bs-nav-link-hover-color: var(--bs-link-hover-color);
    --bs-nav-link-disabled-color: #1c0950;
    display: flex;
    flex-wrap: wrap;
    padding-left: 0;
    margin-bottom: 0;
    list-style: none;
}

.pagination li a{
    font-size: 0.875rem;
    padding: 0.344rem 0.65rem;
}

.pagination li.active a{
    color: var(--bs-primary) !important;
    background-color: #ffffff;
    box-shadow: 0 1px 3px 0 rgba(50, 50, 93, 0.08), 0 4px 6px 0 rgba(112, 157, 199, 0.08);
    border-radius: 0.35rem;
    padding-right: 1rem !important;
    padding-left: 1rem !important;
}
.html-pagination{
    display: flex;justify-content: flex-end;
}
.html-pagination.hack-pag-space-between {
    display: flex;justify-content: space-between;
}

/* ocultamos la palabra página que aparece al principio del pagination */
.html-pagination div > div:nth-child(1) {
    display: none;
}

#header,
#wrapper_content {
    transition-delay: 0s;
    transition-duration: 0.3s;
    transition-property: all;
    transition-timing-function: cubic-bezier(0.47, 0, 0.745, 0.715);
}
.close-menu-btn:hover {
    cursor: pointer;
}
.hide-hack {
    margin-left: 0 !important;
}

.blink-animation {
    animation: pulseExtraReverse 1.5s infinite;
}

.lh-1-1 {
    line-height: 1.1 !important;
}
.w50px {
    width: 50px !important;
}
/* HACK SELECTORES CON SELECTPICKER */
.bootstrap-select:not([class*=col-]):not([class*=form-control]):not(.input-group-btn) {
    width: 100%;
}
.form-floating.has-selectpicker button.dropdown-toggle{
    padding-bottom: 0.5rem;
    padding-top: 1.45rem;
    background-color: var(--bs-body-bg);
    border: var(--bs-border-width) solid #dde4ea;
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%23384c74' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3E%3C/svg%3E");
    background-position: right;
    background-repeat: no-repeat;
    background-size: 3rem 1.1rem;
}
.form-floating.has-selectpicker label{
    padding-top: 0.25rem;
    font-size: 0.875rem;
    color: rgba(var(--bs-body-color-rgb), .65);
}

.bloque-muestras #row-campos-tipos div > div{
    padding-right: calc(var(--bs-gutter-x) * .5);
    padding-left: calc(var(--bs-gutter-x) * .5);
}

.warning-icon {
    color: #ffc107;
    font-size: 2.2rem;
    animation: pulseExtra 1.5s infinite;
}

.switch-icon-si-no {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 30px;
    border-radius: 15px;
    background-color: #ccc;
    max-width: none;
}

.switch-icon-si-no::after {
    content: attr(data-texto-no-checked);
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.75rem;
    font-weight: bold;
    color: black;
    pointer-events: none;
    right: 10px;
    left: auto;
}

input[type="checkbox"]:checked + .switch-icon-si-no {
    background-color: #574fec;
}

input[type="checkbox"]:checked + .switch-icon-si-no::after {
    content: attr(data-texto-checked);
    left: 10px;
    right: auto;
    color: white;
}

/* HACK SELECTO2 */
.select2-container--bootstrap-5 .select2-selection--single {
    position: relative;
    padding: 0.375rem 1.75rem 0.375rem 0.75rem;
    min-height: calc(3.06rem + 2px);
    line-height: 2.4;
    border: 1px solid #ced4da;
    border-radius: .375rem;
}

.select2-container--bootstrap-5 .select2-selection--single .select2-selection__arrow {
    position: absolute;
    top: 50%;
    right: 1.25rem;
    width: 0.5rem;
    height: 0.5rem;
    pointer-events: none;
    border-color: #6c757d;
    border-right: 2px solid #6c757d;
    border-bottom: 2px solid #6c757d;
    transform: translateY(-50%) rotate(45deg);
}
.select2-container--bootstrap-5 .select2-selection--single .select2-selection__rendered {
    padding-left: 5px;
}

.select2-container--bootstrap-5 .select2-results__option--highlighted {
    background-color: #0055da;
    color: #fff;
}

.select2-container--bootstrap-5 .select2-results > .select2-results__options {
    max-height: 400px;
    overflow-y: auto;
}

.filtro-bloque .select2-container--bootstrap-5 .select2-selection--single {
    padding: 0.25rem 0.5rem;
    font-size: 0.8rem;
    height: auto;
    line-height: 1.5;
    min-height: calc(1.66rem + 2px);
    margin-bottom: 8.5px;
}
.filtro-bloque .select2-container--bootstrap-5 .select2-selection--single .select2-selection__rendered {
    padding-left: 0;
}

/* BARRA ACCIONES RÁPIDAS */
#acciones_rapidas .btn_menu_accion_rapida {
    position: relative;
    min-width: 180px;
    height: 28px;
    padding: 2px 26px 2px 8px;
    font-size: 0.875rem;
    line-height: 1.4;
    background-color: #fff;
    border: 1px solid #ced4da;
    border-radius: 4px;
    color: #212529;
    text-align: left;
}

#acciones_rapidas .btn_menu_accion_rapida.dropdown-toggle::after {
    display: none;
}

#acciones_rapidas .btn_menu_accion_rapida::before {
    content: "";
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 5px solid #6c757d;
    pointer-events: none;
}

#acciones_rapidas .btn_menu_accion_rapida:hover,
#acciones_rapidas .btn_menu_accion_rapida:focus {
    background-color: #bbbbbb;
}

#acciones_rapidas .dropdown-item:focus,
#acciones_rapidas .dropdown-item:hover{
    background-color: var(--bs-primary);
    color: var(--bs-white);
}

#acciones_rapidas .btn_menu_accion_rapida:focus {
    outline: none;
    box-shadow: 0 0 0 0.1rem rgba(13,110,253,.25);
}

#acciones_rapidas .dropdown-menu,
#acciones_rapidas .dropdown-menu {
    border-radius: 0;
}

.usuario_nivel_op,
.usuario_nivel_op,
.usuario_nivel_op{
    display: inline-flex;
    align-items: center;
    gap: .4em;
    width: 100%;
}

/*
Añadir los colores arriba en las variables si se añaden o modifican
--color-nivel-9: #ff0000;
--color-nivel-7: #1e4dff;
--color-nivel-2: #9a9a9a;
*/

.usuario_nivel_op::before {
    content: "";
    width: 1.2em;
    height: 1.2em;
    flex-shrink: 0;

    background-image: url("data:image/svg+xml;utf8,\
    <svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'>\
    <path fill='currentColor' opacity='0.3' d='M12 11c-2.209 0-4-1.791-4-4s1.791-4 4-4 4 1.791 4 4-1.791 4-4 4z'/>\
    <path fill='%239a9a9a' d='M3.00065 20.199C3.388 15.426 7.262 13 11.983 13c4.788 0 8.722 2.293 9.015 7.2.012.195 0 .8-.75.8H3.728c-.251 0-.748-.54-.727-.801z'/>\
    </svg>");

    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;
}

.usuario_nivel_op.usuario_7::before{
    background-image: url("data:image/svg+xml;utf8,\
    <svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'>\
    <path fill='currentColor' opacity='0.3' d='M12 11c-2.209 0-4-1.791-4-4s1.791-4 4-4 4 1.791 4 4-1.791 4-4 4z'/>\
    <path fill='%231e4dff' d='M3.00065 20.199C3.388 15.426 7.262 13 11.983 13c4.788 0 8.722 2.293 9.015 7.2.012.195 0 .8-.75.8H3.728c-.251 0-.748-.54-.727-.801z'/>\
    </svg>");
}

.usuario_nivel_op.usuario_9::before{
    background-image: url("data:image/svg+xml;utf8,\
    <svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'>\
    <path fill='currentColor' opacity='0.3' d='M12 11c-2.209 0-4-1.791-4-4s1.791-4 4-4 4 1.791 4 4-1.791 4-4 4z'/>\
    <path fill='%23ff0000' d='M3.00065 20.199C3.388 15.426 7.262 13 11.983 13c4.788 0 8.722 2.293 9.015 7.2.012.195 0 .8-.75.8H3.728c-.251 0-.748-.54-.727-.801z'/>\
    </svg>");
}

/* PERMISOS */
.btn_permissos {
    border: 2px solid #ccc;
    background-color: #f8f9fa;
    border-radius: 0.35rem;
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 0.3rem;
    transition: all 0.2s;
}
.btn_permissos i {
    font-size: 1rem;
    color: #343a40;
    transition: color 0.2s;
}
.btn_permissos.active i {
    color: #28a745;
}
.btn_permissos:hover {
    transform: scale(1.1);
    cursor: pointer;
}

/* ANIMACIONES */
@keyframes pulseExtraReverse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(0.90);
        opacity: 0.6;
    }
}

@keyframes pulseExtra {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.15);
        opacity: 0.6;
    }
}

/*HOME INTENTO DECENTE*/
.btn_circular {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background-color: #f5f5f5;
    color: #333;
    text-decoration: none;
    font-weight: 600;
    position: relative;
    overflow: visible;
    transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;

    box-shadow: 0 0.5rem 1rem rgba(0,0,0,0.15);
    border: 2px solid rgba(0,0,0,0.1);
}

.btn_circular span {
    margin-top: 10px;
    font-size: 1rem;
    z-index: 2;
    position: relative;
}

.btn_circular:hover {
    transform: scale(1.2);
    box-shadow: 0 1rem 2rem rgba(0,0,0,0.25);
    border-color: var(--bs-primary);
}

.btn_circular::before {
    content: '';
    position: absolute;
    top: -12px;
    left: -12px;
    width: calc(100% + 24px);
    height: calc(100% + 24px);
    border-radius: 50%;
    border: 3px solid transparent;
    border-top-color: var(--bs-primary);
    border-right-color: var(--bs-gray-400);
    border-bottom-color: var(--bs-gray-400);
    border-left-color: var(--bs-gray-400);
    opacity: 0;
    transition: opacity 0.3s;
    z-index: 0;
}

.btn_circular:hover::before {
    opacity: 1;
    animation: giratorio 1.5s linear infinite;
}

.btn_circular:hover span,
.btn_circular:hover i {
    color: var(--bs-primary);
}

.fixed-height {
    resize: none !important;
    overflow: hidden !important;
}

@keyframes giratorio {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}



@media (max-width: 576px) {
    .btn_circular {
        width: 130px;
        height: 130px;
    }
    .btn_circular span {
        font-size: 0.85rem;
    }
}

@media (max-width: 768px) {
    .btn_circular {
        width: 140px;
        height: 140px;
    }
    .btn_circular span {
        font-size: 0.9rem;
    }
}