:root {
    /*todo: pending refactor */
    box-sizing: border-box;
    --hospital_green: #66cc99;
    --spearmint: #61c2a2;
    --navy_peony: #223a5e;
    --valiant_poppy: #bc322c;
    --turmenic: #fe840e;
    --app_primary_color_high: #ff4336;

    --olf_gre: #aec251 #e6ecca;
    --app_primary_dark_color: #cc5a50;
    --mdc_primary_red: #e01a32;
    --mdc_primary_light_red: #ff6f72;
    --mdc_primary_red_light: #ffcfcf;
    --mdc_primary_orange: #080707;
    --mdc_primary_green: #87bf5d;
    --mdc_primary_green_light: #b6e2a1;
    --mdc_primary_blue: #428bca;
    --mdc_primary_light_blue: #7da4c5;
    --mdc_header_white: #ffffff;
    --mdc_text_light_grey: #888888;
    --mdc_text_grey: #495057;
    --mdc_text_dark_grey: #222222;
    --mdc_group_background: #ffada6;
    --mdc_semitransparent_white: #ffffffcc;
    --mdc_semitransparent_gray: #eeedddaa;
    --app_white: #ffffff;
    --app-text-color: #929292;
    --dark_shadow: 2px 2px 3px rgba(0, 0, 0, 0.6);
    --light_shadow: 2px 2px 3px rgba(255, 255, 255, 0.6);
    --col_width: 90%;
    --classic_blue: #004b7e;
    --table_background: #ebebeb;
    --table_background_alt: #f5f5f5;
    --table_background_comp: #f3d8d8;

    --app_background_color: #F7F6F8;
    --mdc_grey: #d9d9d9;
    --mdc_primary_yellow: #f0df80;
    --app-black: #000000;
    --app-white-color-filter: invert(100%) sepia(100%) saturate(0%) hue-rotate(175deg) brightness(109%) contrast(102%);
    --app-primary-color-filter: invert(48%) sepia(97%) saturate(343%) hue-rotate(165deg) brightness(88%) contrast(86%);
    --app-primary-alt-color-filter: invert(15%) sepia(94%) saturate(3443%) hue-rotate(195deg) brightness(91%) contrast(92%);

    /* Colores de la app */
    --app_primary_color: var(--mdc_primary_blue);
    --app_primary_color_light: var(--mdc_primary_light_blue);
    --app_primary_color_filter: invert(33%) sepia(72%) saturate(2416%) hue-rotate(201deg) brightness(91%) contrast(94%);
}

body,
html {
    width: 100%;
    height: 100%;
    font-size: 14px;
}

footer{
    font-size: 11px;
}

body {
    background-color: var(--app_background_color);
}

.container-fluid {
    /*Para que el lgoin ocupe el 100% de la ventana*/
    height: 100%;
}

.mdc_bg_gradient {
    z-index: -5;
}

body,
h1,
h2,
h3 {
    font-family: "Montserrat", sans-serif;
    font-weight: 500;
}

h1,
h2,
h3 {
    font-family: "Montserrat", sans-serif;
    font-weight: bold;
    color: var(--app_primary_color);
    border-radius: 1em;
}

h1 {
    font-size: 3em;
    font-weight: normal !important;
}

a {
    color: var(--app_primary_color);
    padding: 3px 6px;
    /* border-bottom: 2px solid rgba(0, 0, 0, 0); */
}

a:hover {
    text-decoration: none;
    color: var(--app_primary_color);
    /* border-color: var(--app_primary_color); */
}

table {
    font-family: 'Roboto Condensed', sans-serif;
    font-size: 14px;
}

table a {
    color: var(--mdc_text_grey);
}

thead {
    color: white;
    background-color: var(--app_primary_color);
}

form h3 {
    color: var(--app_primary_color);
    font-weight: bold;
    margin-bottom: 20px;

}

body.logged {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Nuevo NAV */

nav img.logosimple {
    height: 50px;
    margin-right: 10px;
}

nav img.logosimple:hover {
    filter: var(--app-primary-color-filter);
}

nav img.linkuser {
    height: 20px;
    margin-right: 10px;
}

nav div.dropdown-menu {
    border: 0px !important;
    border-radius: 15px;
    box-shadow: 3px 3px 5px 0px #d9d9d952;
}

nav svg {
    color : var(--app_primary_color);
}

nav .navbar-brand {
    background-color: transparent !important;
}

nav .navbar-nav .nav-link, nav .dropdown-item {
    text-transform: none;
}

nav {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    background-color: var(--app_white);
}

#navbarDropdown, #navbarDropdown3, #navbarUserDropdown {
    box-shadow: 3px 3px 5px 0px #d9d9d952;
    padding: 6px;
    border-radius: 6px;
    background-color: #FFFFFF;

}

@media (max-width: 991px) {
    #navbarDropdown,
    #navbarDropdown3,
    #navbarUserDropdown {
      margin-bottom: 10px;
    }

    nav .dropdown-menu {
        padding-left: 35px !important;
        padding-bottom: 10px !important;
        margin-bottom: 10px !important;
    }
  }

/* END Nuevo NAV */


/* Footer
----------------------------  */

div.logos {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: auto;
    margin-top: 20px;


}
div.logos .texto {
    font-size: 1.5em;
    font-weight: bold;
}

div.logos .imagen img {
    height: 235px;
}

img#logofootersso {
    height: 74px;
}

img#logofooterccn {
    height: 43px;
    margin-left: 10px;
    margin-top: 10px;
}

.footer {
    clear: both;
    padding: 0 0;
    background-color: var(--app_white);
    color: var(--app-text-color);
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 100%;
}

.footer p {
    margin-right: 20px;
    margin-top: 0.75em;
    font-size: 11px;
    text-align: center;

}

/* ---------------------------- */


div.derecha {
    flex-direction: row-reverse;
}


a.forgot {
    font-size: 12px;
    padding-left: 0px;
}


input.btn-login {
    margin-left: 0px !important;
}


/* img.icono_menu_aviso {
    margin-right: 10px;
    margin-left: 10px;
    animation-name: opacidad;
    animation-duration: 1.5s;
    animation-iteration-count: infinite;
    animation-direction: alternate;
    height: 20px;
} */


i.icono_menu_aviso {
    margin-right: 10px;
    margin-left: 10px;
    animation-name: opacidad;
    animation-duration: 1.5s;
    animation-iteration-count: infinite;
    animation-direction: alternate;
    height: 20px;

    /* Danger color */
    color: var(--app_primary_color);
}

.aviso_pendiente {
    display: flex;
    align-items: center;
}

@keyframes opacidad {
    from {
        opacity: 1;
    }

    to {
        opacity: 0;
    }
}

.test th {
    border-left: 2px solid white;
}


/* buttons */
.warning {
    background-color: var(--app_primary_color_high) !important;
    color: white !important;
    border-color: var(--app_primary_color_high) !important;
}

.warning:hover {
    background-color: var(--app_primary_color) !important;
    color: white !important;
    border-color: var(--app_primary_color) !important;
}

.btn {
    font-family: 'Montserrat', sans-serif;
    font-weight: bold;
    font-size: 13px;
    background-color: transparent;
    border-color: var(--app_primary_color);
    border-radius: 5px;
    border-width: 1px;
    margin: 2px;
}

.btn-default {
    background-color: var(--app_white);
}

.btn-primary {
    background-color: var(--app_primary_color);

}

.btn-primary a {
    color: var(--app_white) !important;
}

.btn-primary:hover {
    background-color: var(--app_white);
    color: var(--app_primary_color) !important;
    text-decoration: none;

}

.btn-primary:hover a {
    color: var(--app_primary_color) !important;
    text-decoration: none;
    border: 0px;
}

.btn-default:hover {
    background-color: var(--app_primary_color);
    border: solid 1px var(--app_white);
    color: var(--app_white) !important;
    text-decoration: none;
}

.btn-default:hover a {
    color: var(--app_white) !important;
    text-decoration: none;
    border: 0px;
}

.loader .center {
    color: var(--app_primary_color)
}

.center {
    width: var(--col_width);
    padding: 1%;
    margin: auto;
}

.content-section {
    padding: 0 0;
    padding-bottom: 25px;
}

.liner {
    width: 60%;
    border-top: 1px solid rgb(248, 248, 248);
    border-bottom: 1px solid rgba(23, 23, 23, 0.2);
}

.cover {
    display: none;
    position: absolute;
    top: 75px;
    right: 0px;
    z-index: 100;
    background-color: var(--app_background_color);
    width: 100%;
    height: 100%;
}

.mostrar {
    display: block;
    opacity: 0.5;
}

/* Base.html */
.wrapper {
    height: 100%;
    height: auto !important;
    background-color: var(--app_background_color);
    margin-top: 5px;
}


.obox {
    display: table;
    height: 70%;
    width: 100%;
    padding-bottom: 70px;
}

.mbox {
    display: table-cell;
    vertical-align: middle;
}

.ibox {
    margin-left: auto;
    margin-right: auto;
}

.pagination {
    padding: 3px;
}

.pagination strong {
    font-size: 1.4em;
}

.messages_div {
    position: fixed;
    bottom: 0px;
    left: 50%;
    width: 100%;
    transform: translate(-50%, -50%);
    z-index: 1041;
}



#titulo-modalBaja {
    color: var(--app_white);
    font-weight: bold;
}

td.clickable:hover, th.clickable:hover{
    text-decoration: underline;
    font-weight: bold;
    cursor: pointer;
}


.qr {
    border-color: var(--app_primary_color);
    border-radius: 4px;
    border-style: dashed;
    margin-bottom: 1vh;
    text-align: center !important;
    width: fit-content;
}


/* Login form */

.login-form {
    width: 100%;
    margin: auto;
    text-align: left;
    margin-top: 10px;
    padding-top: 10px;
    border-top: solid 1px var(--mdc_grey);
}

.login-form label {
    color: black;
    text-align: left !important;
}

.cuadro-busqueda {
    width: var(--col_width);
    margin-left: 5%;
    margin: auto;
}

.bordes-busqueda {
    border-bottom: solid 1px var(--app_primary_color) !important;
    border-top: solid 1px var(--app_primary_color) !important;
}

.navbar {
    font-family: 'Montserrat', sans-serif;
    font-weight: normal;
    text-transform: uppercase;
    background-color: #ffffff;
}

.navbar .navbar-brand {
    color: var(--mdc_semitransparent_white);
    background-color: var(--classic_blue);
    padding: 4px 6px;
    border-radius: 5px;
}

.navbar .navbar-brand:hover,
.navbar .navbar-brand:focus {
    color: var(--app_primary_color);
}

.navbar .navbar-text {
    color: var(--mdc_text_light_grey);
}

.navbar .navbar-text a {
    color: var(--app_primary_color);
}

.navbar .navbar-text a:hover,
.navbar .navbar-text a:focus {
    color: var(--app_primary_color);
}

.navbar .navbar-nav .nav-link {
    color: var(--mdc_text_light_grey);
    border-radius: .25rem;
    margin: 0 0.25em;
}

.navbar .navbar-nav .nav-link:not(.disabled):hover,
.navbar .navbar-nav .nav-link:not(.disabled):focus {
    color: var(--app_primary_color);
}

.nav-item a {
    color: black !important;
}

.nav-item a:hover {
    color: var(--app_primary_color) !important;
    border-bottom: none;
}

.navbar .navbar-nav .nav-item.active .nav-link,
.navbar .navbar-nav .nav-item.active .nav-link:hover,
.navbar .navbar-nav .nav-item.active .nav-link:focus,
.navbar .navbar-nav .nav-item.show .nav-link,
.navbar .navbar-nav .nav-item.show .nav-link:hover,
.navbar .navbar-nav .nav-item.show .nav-link:focus {
    color: var(--app_primary_color);
    background-color: #ffffff;
}

.navbar .navbar-toggle {
    border-color: #ffffff;
}

.navbar .navbar-toggle:hover,
.navbar .navbar-toggle:focus {
    background-color: #ffffff;
}

.navbar .navbar-toggle .navbar-toggler-icon {
    color: var(--mdc_text_light_grey);
}

.navbar .navbar-collapse,
.navbar .navbar-form {
    border-color: var(--mdc_text_light_grey);
}

.navbar .navbar-link {
    color: var(--mdc_text_light_grey);
}

.navbar .navbar-link:hover {
    color: var(--app_primary_color);
}

.navbar h4 {
    font-weight: bold;
    color: var(--app_primary_color);
}


@media (max-width: 575px) {
    .navbar-expand-sm .navbar-nav .show .dropdown-menu .dropdown-item {
        color: var(--mdc_text_light_grey);
    }

    .navbar-expand-sm .navbar-nav .show .dropdown-menu .dropdown-item:hover,
    .navbar-expand-sm .navbar-nav .show .dropdown-menu .dropdown-item:focus {
        color: var(--app_primary_color);
    }

    .navbar-expand-sm .navbar-nav .show .dropdown-menu .dropdown-item.active {
        color: var(--app_primary_color);
        background-color: #ffffff;
    }
}

@media (max-width: 767px) {
    .navbar-expand-md .navbar-nav .show .dropdown-menu .dropdown-item {
        color: var(--mdc_text_light_grey);
    }

    .navbar-expand-md .navbar-nav .show .dropdown-menu .dropdown-item:hover,
    .navbar-expand-md .navbar-nav .show .dropdown-menu .dropdown-item:focus {
        color: var(--app_primary_color);
    }

    .navbar-expand-md .navbar-nav .show .dropdown-menu .dropdown-item.active {
        color: var(--app_primary_color);
        background-color: #ffffff;
    }
}

@media (max-width: 991px) {
    .navbar-expand-lg .navbar-nav .show .dropdown-menu .dropdown-item {
        color: var(--mdc_text_light_grey);
    }

    .navbar-expand-lg .navbar-nav .show .dropdown-menu .dropdown-item:hover,
    .navbar-expand-lg .navbar-nav .show .dropdown-menu .dropdown-item:focus {
        color: var(--app_primary_color);
    }

    .navbar-expand-lg .navbar-nav .show .dropdown-menu .dropdown-item.active {
        color: var(--app_primary_color);
        background-color: #ffffff;
    }
}

@media (max-width: 1199px) {
    .navbar-expand-xl .navbar-nav .show .dropdown-menu .dropdown-item {
        color: var(--mdc_text_light_grey);
    }

    .navbar-expand-xl .navbar-nav .show .dropdown-menu .dropdown-item:hover,
    .navbar-expand-xl .navbar-nav .show .dropdown-menu .dropdown-item:focus {
        color: var(--app_primary_color);
    }

    .navbar-expand-xl .navbar-nav .show .dropdown-menu .dropdown-item.active {
        color: var(--app_primary_color);
        background-color: #ffffff;
    }
}

.navbar-expand .navbar-nav .show .dropdown-menu .dropdown-item {
    color: var(--mdc_text_light_grey);
}

.navbar-expand .navbar-nav .show .dropdown-menu .dropdown-item:hover,
.navbar-expand .navbar-nav .show .dropdown-menu .dropdown-item:focus {
    color: var(--app_primary_color);
}

.navbar-expand .navbar-nav .show .dropdown-menu .dropdown-item.active {
    color: var(--app_primary_color);
    background-color: #ffffff;
}


.form-group {
    text-align: left !important;
}

.control-label,
div.checkbox label {
    font-family: Montserrat, sans-serif;
    font-weight: bold;
    color: var(--app_primary_color);
    text-align: left;
}

.form-check-label {
    color: var(--app_primary_color);

}

.form-control {
    font-size: 13px
}

input[type=checkbox].form-control {
    width: 30px;
}


.alert {
    font-size: 13px;
    font-weight: bold;
}

.alert-info {
    color: var(--app_white) !important;
    background-color: var(--app_primary_color) !important;
    border-color: var(--app_primary_dark_color) !important;
}


.has-error .form-control {
    border-color: var(--app_primary_color_high);
}

i.has-error {
    color: var(--app_primary_color_high) !important;
}

.error-block {
    font-size: 1.25em;
    font-weight: bold;
    color: var(--app_primary_color_high);
}



div.cabecera {
    font-weight: bold;
}

.groupCondiciones {
    flex-wrap: nowrap !important;
}

.campo {
    display: block;
    position: relative;
    cursor: pointer;
}

.campo input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0 !important;
    width: 0 !important;
}


.chkCondicionesLabel {
    margin-left: 40px;
    font-family: "Montserrat", sans-serif;
    color: black;
    font-weight: normal;
}

#cookie-consent-container {
    height: 50px;
    padding: 0 0;
    border-top: solid 1px var(--app_primary_color);
    border-left: solid 1px var(--app_primary_color);
    border-right: solid 1px var(--app_primary_color);
    background-color: var(--mdc_grey);
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1040;
    display: flex;
    align-items: center;
    padding-left: 20px;
    font-weight: bold;
    font-size: 12px;
}

#cookie-consent-container div {
    margin-right: 20px;
}

.modal-footer {
    justify-content: center !important;
}


.activar {
    color: var(--mdc_primary_green);
}

.desactivar {
    color: var(--mdc_primary_red);
}

.boton-tabla:hover {
    text-decoration: none;
}

.boton-tabla img,
.pertenenciaNombre img {
    height: 20pt;
}

.contenedorImagen,
.contenedorImagenUsuario {
    position: relative;
}

.contenedorImagen img {
    height: 90px;
}

.contenedorImagenUsuario img {
    height: 60px;
}

.contenedorImagen a:hover {
    text-decoration: none;
    border: solid 0px;
}

.imgwait {
    height: 25px !important;
    position: absolute;
    right: -35px;
}

.imglock {
    height: 25px;
    font-weight: bold;
    position: absolute;
    right: 15px;
    top: 15px;
    color: var(--app_primary_color) !important;
}

.accionesGrupo {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
}

#herramientaph {
    font-weight: bold;
}

/** CSS para acordeón de búsqueda**/

.card-header .title {
    font-size: 17px;

}

.card-header .accicon {
    float: right;
    font-size: 20px;
    width: 1.2em;
}

.card-header {
    cursor: pointer;
}

.card-header:not(.collapsed) .rotate-icon {
    transform: rotate(0deg);
}

object.estadoTabla svg {
    fill: var(--app_primary_color);
}

.boton-tabla img{
    vertical-align: bottom;
}

.contenedorGrupo,
.contenedorGrupoUsuario {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-right: 20px;
    margin-top: 20px;
    background-color: var(--app_white);
    height: 320px;
    border-radius: 15px;
    /* justify-content: space-between; */
    padding-top: 20px;
    padding-bottom: 20px;
    padding-left: 15px;
    padding-right: 15px;
    position: relative;
}

.contenedorGrupo, .contenedorGrupoUsuario {
    height: 320px;
    width: 300px;
}

.contenedorGrupo h2,
.contenedorGrupoUsuario h2 {
    text-align: center;
    color: var(--app-black);
    font-weight: normal !important;
}

.distGrupos {
    display: flex;
    flex-wrap: wrap;
}

.grupoDis {
    opacity: 0.15;
}


.descGrupo {
    font-size: 14px !important;
    text-align: center;
    color: var(--app-text-color);
    /* min-height: 48px; */
}

.contenedorSubGrupos {
    display: none;
    padding: 20px;
    border-radius: 15px;
    border: solid 2px var(--app_primary_color);
    background-color: var(--app_white);
    position: absolute;
    top: 60%;
    min-height: inherit;
    z-index: 10000;
    width: 400px;
    min-width: 300px;
    max-width: 650px;
    resize: both; /* Permite redimensionar vertical y horizontalmente */
    overflow: auto; /* Añade barras de desplazamiento cuando se redimensiona */
}

.group_filter_container {
    border-bottom: 1px solid #ccc;
    margin-bottom: 15px;
    padding-bottom: 5px;
}

.contenedorchecks {
    overflow-y: auto;
    max-height: 250px;
}

.check_subtipo {
    display: flex;
    align-items: center;
    margin-top: 3px;
    border-radius: 5px;
    padding:3px;
}

.check_subtipo label {
    font-size: 13px;
    margin-left: 10px;
    margin-bottom: 0px;
}

.check_subtipo .chktype {
    width: 20px;
    height: 20px;
}


img.icono_menu_aviso {
    height: 20px;
}

.nodecoration:hover {
    text-decoration: none !important;
    border: solid 0px;
}

div.activado {
    background-color: var(--mdc_primary_green);
}

div.desactivado {
    background-color: var(--mdc_primary_red_light);
}

div.novalidado {
    background-color: var(--mdc_primary_yellow);
}


i.activado {
    color: var(--mdc_primary_green);
}

i.desactivado {
    color: var(--mdc_primary_red_light);
}

i.novalidado {
    color: var(--mdc_primary_yellow);
}

table.table-sso thead {
    background-color: var(--app_background_color);
}

table.table-sso thead th:first-child {
    border-top-left-radius: 8px;
}

table.table-sso thead th:last-child {
    border-top-right-radius: 8px;
}

table.table-sso thead th {
    border: 0px;
    vertical-align: middle;
    background-color: var(--app_primary_color);
}

table.table-sso th.estado {
    text-align: center;
}


table.table-sso td.estado {
    text-align: center;
}

table.table-sso tr {
    height: 45px;
}

table.table-sso tbody td {
    border-top: solid 1px var(--app_primary_color);
    /* background-color: var(--app_white); */
}

table.table-sso tbody tr:first-child td {
    border-top: solid 0px var(--app_primary_color) !important;
}



table.table-sso td.acciones a:hover {
    text-decoration: none;
    border-bottom: 0px;
}

.estadoTabla {
    height: 25px;
}


.fondoPrimary {
    background-color: var(--app_primary_color);
}

div.acciones div {
    text-align: center;
    font-size: 14px;
    margin-top: 10px;
}

div.acciones div img {
    height: 28px;
}

.btn-primary {
    background-color: var(--app_primary_color);
}

.btn-primary a {
    color: var(--app_white) !important;
}

.btn-primary:hover {
    background-color: var(--app_white);
    color: var(--app_primary_color) !important;
    border: solid 1px var(--app_primary_color);
    text-decoration: none;
}

.btn-primary:hover a {
    color: var(--app_primary_color) !important;
    text-decoration: none;
    border: 0px;
}

.btn-private {
    background-color: var(--app_white);
    border-color: var(--app_primary_color);
    color: var(--app_primary_color);
}

.btn-private:hover {
    background-color: var(--app_primary_color);
    border-color: var(--app_primary_color);
    color: var(--app_white);
}

img.imgTitle {
    height: 35px;
    margin-right: 20px;
}

h1.tituloPagina,
div.tituloPagina {
    color: black;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

div.titulo {
    display: flex;
    align-items: center;
}

a.btn-svg img,
div.btn-svg img {
    filter: var(--app-white-color-filter);
}

a.btn-svg:hover img,
div.btn-svg:hover img {

    filter: var(--app-primary-color-filter);
}

a.dropdown-item:hover, button.dropdown-item:hover {
    color: var(--app_white) !important;
    background-color: var(--app_primary_color) !important;
}

a.dropdown-item:hover img {
    filter: var(--app-white-color-filter);
}

a.dropdown-item img {
    filter: var(--app-primary-color-filter);
}

div.titulo_menu {
    font-size: 12pt;
}

.dropdown-item img {
    height: 25px;
    margin-right: 10px;
}

#tabla_resultado {
    background-color: var(--app_white);
}

#tabla_resultado tr:hover {
    background-color: #edf4f9;
}

#tabla_resultado .dropdown-item {
    color : var(--app_primary_color);
}

.btn-revoke {
    background-color: var(--mdc_primary_red);
    border-color: var(--mdc_primary_red) !important;
    color: var(--app_white) !important;
}

.btn-revoke a {
    color: var(--app_white) !important;
}

.btn-revoke:hover {
    background-color: var(--app_white);
    color: var(--mdc_primary_red) !important;
    border-color: var(--mdc_primary_red) !important;
    text-decoration: none;

}

.btn-revoke:hover a {
    color: var(--app_primary_color) !important;
    text-decoration: none;
    border: 0px;
}

.margin20 {
    margin-top: 20px;
}


.badge-primary {
    background-color: var(--app_primary_color) !important;
}

.badge-primary-light {
    background-color: var(--app_primary_color_light) !important;
    color: var(--app_white) !important;
}

a.img_svg_btn img{
    cursor: pointer;
    filter: var(--app-primary-color-filter);
  }
a.img_svg_btn:hover img{
    filter: var(--app-primary-alt-color-filter);
}

img.img-add {
    filter: var(--app-primary-color-filter);
}

.modal-pwd {
    display: flex;
    justify-content: center;
    width: 100%;
}

.modal-pwd input {
    font-size: 14pt;
    border-color: var(--app_primary_color);
}

.errores {
    color: var(--app_primary_color_high);
    font-size: 14pt;
}

#cuerpo-modal-aviso {
    color: var(--app_primary_color_high);
}

.loader {
    width: 100%;
    display: flex;
    justify-content: center;
}

.loader img {
    width: 100px;
}

.title-cert {
    margin-bottom: 10px;
}

.tablaGrupos {
    width: 100% !important;
    height: 150px;
    overflow: auto;
}

.tablaGrupos li {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: space-between;
    border-bottom: dotted 1px var(--app_primary_color);
}

.tablaGrupos input {
    width: 30px;
    height: 30px;
}

#listado_check_grupos {
    margin-bottom: 10px;
}

tr .break {
    word-break: break-word;
}

.resultado {
    margin-bottom: 20px;
}

.cuadro-links {
    margin-bottom: 20px;
}

ul.form-control {
    list-style-type: none;
}

td.warn, td.warn{
    background-color: #f7d55063 !important;
}
td.ready{
    background-color: #87bf5d6b !important;
}
td.err{
    background-color: #ff150042 !important;
}
td.derecha{
    display: flex;
    flex-flow: row-reverse;
}
.contenedor_spinner{
    width: 100%;
    text-align: center;
}
.contenedor_spinner img, .indicador{
    animation-name: spin;
    animation-duration: 1.5s;
    animation-iteration-count: infinite;
    filter: var(--app-primary-color-filter);

}

@keyframes spin {
    from {transform: rotate(0deg);}
    to {transform: rotate(359deg);}
}

th.cabecera{
    position: relative;
}
th.sorting:before{
    position: absolute;
    display: block;
    opacity: 0.125;
    right: 10px;
    line-height: 9px;
    font-size: 0.8em;
    bottom: 50%;
    content: "▲";
    content: "▲"/"";
}
th.sorting:after{
    position: absolute;
    display: block;
    opacity: 0.125;
    right: 10px;
    line-height: 9px;
    font-size: 0.8em;
    top: 50%;
    content: "▼";
    content: "▼"/"";
}
th.sorting_asc:before,
th.sorting_desc:after{
    opacity: 0.6;
}
.cuadro-login-htmx {
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    width: 50%;
    margin: 40px auto;
    transition: width 0.3s ease-in-out;
}


@media (max-width: 1600px) {
    .cuadro-login-htmx {
        width: 70%;
    }
}

@media (max-width: 992px) {
    .cuadro-login-htmx {
        width: 75%;
    }
}

@media (max-width: 768px) {
    .cuadro-login-htmx {
        width: 85%;
    }
}

@media (max-width: 480px) {
    .cuadro-login-htmx {
        width: 90%;
        padding: 20px;
    }
}

.cuadro-login-htmx .titulo div{
    font-size: 14pt;
}

.cuadro-login-htmx label{
    font-size: 14px !important;
}

.cuadro-login-htmx form{
    margin-top:10px;
}

/* Certificados */

.valido {
    color: var(--mdc_primary_green);
    font-size: 14px;
}

.expirado {
    color: var(--mdc_primary_yellow);
    font-size: 14px;
}

.revocado {
    color: var(--mdc_primary_red_light);
    font-size: 14px;
}

.form-check-label {
    margin-left: 10px;
}

.modal-title {
    color: var(--app_white);
    font-weight: bold;
}

.modal-body {
    font-size: 14px;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.celda-icono {
    text-align: center;
    vertical-align: middle !important;
    color: var(--app_primary_color);
}

#users-list tbody tr td,
#users-list tbody tr th,
#ca-list tbody tr td,
#ca-list tbody tr th,
#cert-list tbody tr td,
#cert-list tbody tr th {
    vertical-align: middle !important;
}

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

.modal-dialog {
    max-width: 80% !important;
    width: fit-content;
    min-width: 700px;
}

#modal-info .modal-dialog {
    max-width: 60% !important;
}

#modal-info .modal-body {
    text-align: left;
}

#modal-info .modal-body strong {
    color: var(--app_primary_color);
}

#modal-info .modal-body ul {
    list-style: none;
}

#modal-info .modal-body>ul {
    font-size: 0.9em !important;
    font-family: monospace;
    overflow: auto;
    padding: 20px;
    margin: 20px;
    height: auto;
    line-height: 2em;
}

@keyframes blinker {
    0% {
        background-color: transparent;
    }

    50% {
        background-color: #d4edda;
    }

    100% {
        background-color: transparent;
    }
}

.parpadeo {
    animation: blinker 0.5s linear infinite;
}

.btn-accept {
    background-color: var(--app_primary_color) !important;
    border-color: var(--app_primary_color) !important;
    color: var(--app_white) !important;
}

.btn-accept:hover {
    background-color: var(--app_white) !important;
    color: var(--mdc_primary_green) !important;
    border-color: var(--mdc_primary_green) !important;
}

.btn-reject {
    background-color: var(--app_primary_color) !important;
    border-color: var(--app_primary_color) !important;
    color: var(--app_white) !important;
}

.btn-reject:hover {
    background-color: var(--app_white) !important;
    color: var(--mdc_primary_red) !important;
    border-color: var(--mdc_primary_red) !important;
}

.pubkey {
    background-color: #f8f9fa;
    padding: 10px;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    white-space: pre-wrap;
    overflow-x: auto;
    text-align: left;
    width: fit-content;
}

.text-right {
    text-align: right;
}

@media screen and (max-width: 992px) {

    #sub-menu span {
        display: none;
    }

}

.acciones {
    text-align: center;
}

.acciones button {
    background-color: transparent;
    border: none;
    color: var(--app_primary_color);
    transition: background-color 0.3s;
}

.acciones button:hover {
    background-color: var(--app_primary_color);
}

.acciones button:hover i {
    color: white;
}

.acciones button i {
    transition: color 0.3s;
}

.editable-fields-container {
    text-align: start;
    padding: 20px;
    padding-top: 10px;
}

.editable-fields-container label {
    font-weight: bold;
    color: var(--mdc_primary_blue);
}

.editable-fields {
    border: 1px solid #dee6ec;
    border-radius: 8px;
    font-size: 9px !important;
    display: block !important;
    padding: 20px;
}

.editable-fields .form-group label {
    font-size: 1.5em;
}

.info-certificado-container {
    text-align: start;
    margin-bottom: 0px;
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.info-certificado-container ul {
    border: 1px solid gray;
    width: fit-content;
}

.semi-title {
    font-weight: bold;
    color: var(--app_primary_color);
}


.spinner-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
}

@keyframes fadeout {
    from {
        opacity: 1;
    }

    to {
        opacity: 0;
    }
}

.modal-content {
    box-shadow: 7px 3px 15px -1px rgba(0, 0, 0, 0.5);
    border-radius: 8px;

}

.modal-header {
    background-color: var(--app_primary_color);
    padding: 8px;
    text-align: center;
    display: block;
}

.modal-body .card {
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 5px;
    margin-bottom: 15px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    overflow: auto;
    word-wrap: break-word;
}

.modal-body .card-header {
    background-color: whitesmoke;
    padding: 10px;
}

.modal-body .card-header>i {
    padding-right: 11px;
}

.modal-body .card-content {
    padding: 15px;
}

.modal-body .card span {
    margin-top: 10px;
    font-family: "Courier New", Courier, monospace;
}

.modal-body .field {
    margin-bottom: 10px;
}

.modal-body .field strong {
    font-weight: bold;
    color: #333;
}

.modal-body .field span {
    color: #555;
}

.modal-body .list {
    list-style-type: none;
    padding-left: 20px;
}

.modal-body .collapsible {
    cursor: pointer;
    display: flex;
    align-items: center;
}

.modal-body .collapsible i {
    margin-right: 5px;
}

.modal-body .collapsible:hover {
    color: #007bff;
}

.modal-body .content {
    display: none;
}

#modal-info .modal-body {
    padding: 20px;
}

.contenedor-blanco {
    background-color: white;
    padding: 40px;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 1px 3px 15px -1px rgba(0, 0, 0, 0.5);
}

.color-primary {
    color: var(--app_primary_color);
}


/* 
#prefijoNoEditable,
#prefijoNoEditable2 {
    font-size: 1.4em;
    font-weight: bold;
} */

#cert-password-container .btn, #user_password-container .btn {
    margin: 0px;
}

#notificaciones_container div.card {
    border: 0px;
}

#notificaciones_container div.card div.card-header {
    background-color: var(--app_primary_color) !important;
    font-weight: bold;
    color: var(--app_white);
    border-radius: 15px 15px 0 0; /* Radio de borde en los bordes superiores */
}

#notificaciones_container div.card div.card-body {
    background-color: var(--app_white);
    border-radius: 0 0 15px 15px; /* Radio de borde en los bordes inferiores */
    padding: 2.25rem;
}

/* Animación de parpadeo */
@keyframes flash {
    0%, 50%, 100% {
        opacity: 1;
    }
    25%, 75% {
        opacity: 0;
    }
}

/* Clases para la animación de parpadeo */
.animate__flash {
    animation-name: flash;
    animation-duration: 3s;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
}

.spinner_indicator {
    display: none; /* Oculta el spinner por defecto */
    font-size: 14px !important;
}

.spinner_indicator.htmx-request {
    display: block; /* Muestra el spinner durante la solicitud htmx */
}


.confirmer_indicator {
    font-size: 14px;
}

.error_feedback {
    color: red;
    margin-top: .25rem;
    /* font-size: 1.5em; */
}

a.btn-secondary {
    background-color: transparent;
    color: var(--app_primary_color);
    border: none;
}

a.btn-secondary:hover {
    background-color: var(--app_primary_color);
    color: var(--app_white);
}


.form-check {
    padding-left: 1.95rem !important;
}

.form-check-input {
    margin-top: 0px !important;
    position: unset !important;
}

.circulo_sm {
    width: 20px;
    height: 20px;
    border-radius: 25px;
}


td.acciones .dropdown-item
{
    color: var(--app_primary_color);
}

/*hover en la tabla*/
td.acciones .dropdown-item:hover
{
    background-color: var(--app_primary_color);
    color: var(--app_white);
}

td.acciones .dropdown-menu {
    box-shadow: 4px 3px 5px 0px #24232352 !important;
}

.info-btn {
    color: var(--app_primary_color);
    padding: .25rem 1.5rem;
}


#table-info.table {
    width: 100%;
    table-layout: fixed;
}

.aux_info {
    overflow-x: hidden;
    padding: 3.25rem;
    word-wrap: break-word;
}

#table-info.table th,
#table-info.table td {
    white-space: normal;
    padding-top: 0.30em !important;
    padding-bottom: 0.30em !important;
}

#table-info.table th:nth-child(1) {
    width: 230px !important;
    vertical-align: middle !important;
    background:#f0f0f0;
}

#table-info.table td:nth-child(2) {
    vertical-align: middle !important;
}

#table-info.table td:nth-child(3) {
    width: 100px !important;
    text-align: center;
}

#table-info.table ul {
    list-style: none;
    padding-left: 0;
    margin-top: unset;
    margin-bottom: unset;
}

#table-info.table ul li a,
#table-info.table td a {
    padding: 0;
    color: var(--app_primary_color);
}

#table-info.table ul li div {
    margin-top: 10px;
}

.copied {
    background-color: #d8eed7;
}

.ca_star {
    color: var(--app_primary_color);
}
img.png_boton_blanco{
    cursor: pointer;
    filter: var(--app-primary-color-filter);
}

.titulo_1 {
    font-size: 20px !important;
    font-weight: bold !important;
}

.titulo_1_black {
    font-size: 20px !important;
    color: black !important;
    margin-bottom: 0px !important;
    margin-left: 10px !important;
}

.titulo_2 {
    font-size: 16px !important;
    font-weight: normal !important;
    margin-bottom: 10px !important;
}

img.estadoTabla.estadook {
    height: 20px !important;
}

input[type="checkbox"] {
    height: 14px !important;
}

#searchForm label {
    font-size: 15px !important;
}

label.bluelabel {
    color: var(--app_primary_color) !important;
    font-weight: bold !important;
}

.btn-primary.disabled {
    color: #fff;
    background-color: #640000;
    border-color: #f00;
}


.btn_filtro_pertenencias {
    margin-bottom: 10px;
    font-size: 12px;
    text-align: right;
}

.border-color-error {
    border: 1px solid #dc3545 !important;  /* Rojo personalizado */
}

span.border-color-error {
    border: 1px solid #dc3545 !important;  /* Rojo personalizado */
    border-right: 0px !important;
}

#captcha-container .has_error {
    padding: 5px;
    margin-bottom: 5px;
    border:1px solid #dc3545 !important;  /* Rojo personalizado */
}

.text-danger {
    color: #dc3545 !important;  /* Rojo personalizado */
}

.processiong_spinner_container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: rgba(247, 246, 248, 0.8);
    z-index: 1000;
}

.spinner_card {
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: white;
    box-shadow: 1px 3px 15px -1px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

@media (max-width: 768px) {
    #ca-list th:nth-child(1),
    #ca-list td:nth-child(1),
    #ca-list th:nth-child(4),
    #ca-list td:nth-child(4),
    #ca-list th:nth-child(5),
    #ca-list td:nth-child(5) {
        display: none;
    }

    #ca-list th:nth-child(2) {
        border-top-left-radius: 15px;
    }

    #ca-list th:nth-child(2),
    #ca-list td:nth-child(2) {
        text-align: left !important;
        padding-left: 25px;
        max-width: 160px;
        word-break: break-word;
        overflow-wrap: break-word;
    }

    #ca-list tr {
        display: table-row;
        height: auto;
    }

    #ca-list td, #ca-list th {
        display: table-cell;
        vertical-align: middle;
        min-height: 40px;
        word-break: break-word;
        overflow-wrap: break-word;
    }
}

@media (max-width: 768px) {
    #cert-list th:nth-child(2),
    #cert-list td:nth-child(2),
    #cert-list th:nth-child(5),
    #cert-list td:nth-child(5),
    #cert-list th:nth-child(6),
    #cert-list td:nth-child(6) {
        display: none;
    }

    #cert-list th:nth-child(1),
    #cert-list td:nth-child(1) {
        text-align: left !important;
        padding-left: 25px;
        max-width: 160px;
        word-break: break-word;
        overflow-wrap: break-word;
    }

    #cert-list tr {
        display: table-row;
        height: auto;
    }

    #cert-list td, #cert-list th {
        display: table-cell;
        vertical-align: middle;
        min-height: 40px;
        word-break: break-word;
        overflow-wrap: break-word;
    }
}

.orange_style {
    background: #db9000;
    border-color: #db9001;
    }

.circulo_permisos {
    width: 15px;
    height: 15px;
    border-radius: 25px;
}
.td_permiso_concendido{
    position: relative;
}

.strength-meter {
    height: 10px;
    margin-top: 5px;
}
/* Define los colores para cada nivel de fortaleza */
.progress-bar-dark-red {
    background-color: #8B0000; /* Rojo oscuro */
}

.progress-bar-light-red {
    background-color: #FF6347; /* Rojo claro */
}

.progress-bar-dark-orange {
    background-color: #FF8C00; /* Naranja oscuro */
}

.progress-bar-light-orange {
    background-color: #FFA500; /* Naranja claro */
}

.progress-bar-yellow {
    background-color: #FFD700; /* Amarillo */
}

.progress-bar-light-green {
    background-color: #2dae1f; /* Verde claro */
}

.progress-bar-dark-green {
    background-color: #046804; /* Verde oscuro */
}

.hover-highlight {
    cursor: pointer;
}

.hover-highlight i {
    transition: color 0.3s ease;
}

.hover-highlight:hover i {
    color: #cc6a4c;
}

.alert-warning-light {
    background-color: #f9f7f3 !important;
    border-color: #f9f7f3 !important;
    color: #856404 !important;
}

.alert-warning-ul {
    list-style: none;
    padding-left: 22px;
    padding-top: 5px;
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.spinner-box {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    height: 100px;
    width: 270px;
    box-shadow: 0 4px 6px rgba(2, 2, 2, 0.6);
}

.spinner-text {
    margin-bottom: 10px; /* Espacio entre el texto y el spinner */
}

@keyframes blimblim {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(0.95);
        opacity: 0.8;
    }
}

.blimblim {
    animation: blimblim 1.5s infinite;
}

.menu-item:hover {
    background-color: var(--app_primary_color);
}
.menu-item svg {
    height: 22px !important;
    width: 22px !important;
    /* fill: var(--app_primary_color); */
    color: var(--app_primary_color);
    height: fit-content;
}

.menu-item:hover svg {
    fill: var(--app_white);
}

.menu-item-17 svg {
    height: 19px !important;
    width: 19px !important;
    /* fill: var(--app_primary_color); */
    color: var(--app_primary_color);
}

.menu-item-17:hover svg {
    /* fill: var(--app_white); */
    color: var(--app_white);
}


.dropdown-item svg {
    height: 20px !important;
    width: 20px !important;
    margin-right: 10px;
    /* fill: var(--app_primary_color); */
    color: var(--app_primary_color);
}

.dropdown-item:hover svg {
    /* fill: var(--app_white); */
    color: var(--app_white);
}
a.dropdown-item{
    cursor: pointer;
}

.a-disabled {
    /* pointer-events: none; */
    cursor: default;
    opacity: 0.5;
}

.worm_loader {
    color: var(--app_primary_color);
    font-size: 25px;
    text-indent: -9999em;
    overflow: hidden;
    width: 1em;
    height: 1em;
    border-radius: 50%;
    position: relative;
    transform: translateZ(0);
    animation: wormloaderShdSpin 1.7s infinite ease, wormloaderRound 1.7s infinite ease;
}

@keyframes wormloaderShdSpin {
    0% {
      box-shadow: 0 -0.83em 0 -0.4em,
      0 -0.83em 0 -0.42em, 0 -0.83em 0 -0.44em,
      0 -0.83em 0 -0.46em, 0 -0.83em 0 -0.477em;
    }
    5%,
    95% {
      box-shadow: 0 -0.83em 0 -0.4em,
      0 -0.83em 0 -0.42em, 0 -0.83em 0 -0.44em,
      0 -0.83em 0 -0.46em, 0 -0.83em 0 -0.477em;
    }
    10%,
    59% {
      box-shadow: 0 -0.83em 0 -0.4em,
      -0.087em -0.825em 0 -0.42em, -0.173em -0.812em 0 -0.44em,
      -0.256em -0.789em 0 -0.46em, -0.297em -0.775em 0 -0.477em;
    }
    20% {
      box-shadow: 0 -0.83em 0 -0.4em, -0.338em -0.758em 0 -0.42em,
       -0.555em -0.617em 0 -0.44em, -0.671em -0.488em 0 -0.46em,
       -0.749em -0.34em 0 -0.477em;
    }
    38% {
      box-shadow: 0 -0.83em 0 -0.4em, -0.377em -0.74em 0 -0.42em,
       -0.645em -0.522em 0 -0.44em, -0.775em -0.297em 0 -0.46em,
       -0.82em -0.09em 0 -0.477em;
    }
    100% {
      box-shadow: 0 -0.83em 0 -0.4em, 0 -0.83em 0 -0.42em,
      0 -0.83em 0 -0.44em, 0 -0.83em 0 -0.46em, 0 -0.83em 0 -0.477em;
    }
}

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

#itemsList {
    max-height: 200px;
    overflow-y: auto;
    border: 1px solid #ced4da;
    border-radius: .25rem;
    padding: 0;
}

.list-group-item {
    border-top: 1px solid #ced4da;
    border-bottom: 1px solid #ced4da;
    border-left: 0px;
    border-right: 0px;
}

.list-group-item:first-child {
    border-top: 0px !important;
}

.list-group-item:last-child {
    border-bottom: 0px !important;
}

#noResultsMessage {
    font-size: 14px !important;
    text-align: left;
    padding: 4px 4px 4px 10px;
}

/* #data-table-links_length, #data-table-links_previous, #data-table-links_next, #data-table-links_filter, #data-table-links_info, #data-table-links_paginate {
    display: none !important;
} */

#users-list {
    background-color: white;
}

@media (max-width: 992px) {

    #users-list th:nth-child(2),
    #users-list td:nth-child(2),
    #users-list th:nth-child(4),
    #users-list td:nth-child(4),
    #users-list th:nth-child(5),
    #users-list td:nth-child(5) {
        display: none;
    }

    #users-list tr {
        display: table-row;
        height: auto;
    }

    #users-list td, #users-list th {
        display: table-cell;
        vertical-align: middle;
        min-height: 40px;
        word-break: break-word;
        overflow-wrap: break-word;
    }
}

.btn-centrado {
  align-items: center;
  display: flex;
  width: fit-content;
}

/* ------------------------------------------------------------------------------------------- *
 * INTERFACE DE GRUPOS
 * ------------------------------------------------------------------------------------------- */

/* Ajustes en botones de paginación */
.pagination .page-item .page-link {
    padding: 5px 8px 5px 8px;
    color: var(--app_primary_color);
    font-weight: bold;
    font-size: 10px;
}

.pagination .page-item.disabled .page-link {
    color: #6c757d;
    background-color: #fff;
    border-color: #dee2e6;
    cursor: not-allowed;
}

.pagination .page-item.active .page-link {
    background-color:var(--app_primary_color);
    border-color: var(--app_primary_color);
    color: white;
}

/* Hover y focus para botones de página */
.pagination .page-link:hover {
    background-color: #e9ecef;
    border-color: #dee2e6;
}

/* ------------------------------------------------------------------------------------------- *
 * Estilo de la tabla de grupos
 * ------------------------------------------------------------------------------------------- */

.table-responsive.dropdown-overflow {
    overflow-x: auto;
    overflow-y: visible;
    position: relative;
    z-index: 1;
}

.dropdown-menu {
    z-index: 2000 !important;
}

.badge-sm {
    font-size: 0.65em;
}

.app-badge {
    display: inline-flex;
    margin: 4px;
    cursor: pointer;
}

/* hover */
.app-badge:hover .badge {
    background-color: var(--app_primary_color);
    color: #fff !important;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.app-badge .badge {
    font-size: 10px;
    padding: 0.4em 0.6em 0.4em 0.6em;
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    gap: 0.5em;
}

.app-badge .badge-primary {
    background-color: var(--app_primary_color);
}

.app-badge .remove-btn {
    font-size: 1.1em;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.8);
}

.app-badge .remove-btn:hover {
    color: #fff;
}

.app-badge .badge-light {
    background-color: #c7d7e8;
    color: #212529;
}

.dropdown-menu {
    max-height: 400px;
    overflow-y: auto;
}

/* Highlight fila seleccionada */
.group-row { cursor: pointer; }
.group-row.selected {
    background-color: rgba(0, 123, 255, 0.1);
}


.badge-success_sso {
  color: #fff;
  background-color: var(--mdc_primary_green);
}

.badge-danger_sso {
  color: white;
  background-color: #e34f4f;
}

.badge-warning_sso {
  color: black;
  background-color: var(--mdc_primary_yellow);
}

.badge-purple_sso {
  color: #fff;
  background-color: #220080;
}

.badge-orange_sso {
  color: black;
  background-color: #ff6c00;
}

.truncate-cell {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 200px;
}

.hide-on-sm {
  display: table-cell;
}

@media (max-width: 768px) {
  .hide-on-sm {
    display: none;
  }
}

button.btn-primary img {
    filter: var(--app-white-color-filter);
}

button.btn-primary:hover img {
    filter: var(--app-primary-color-filter)
}

.form-label.text-danger {
    font-weight: bold;
}

td.permisos-cell {
    vertical-align: middle;
}
td.descripcion-cell {
    vertical-align: middle;
    font-size: 12px;
}

/* Base para todos los badges personalizados */
.badge-custom {
  display: inline-block;
  padding: 0.25em 0.6em;
  font-size: 0.75em;
  font-weight: 600;
  line-height: 1;
  text-align: center;
  white-space: nowrap;
  vertical-align: baseline;
  border-radius: 0.25rem;
}

.color-perm-1 {
  background-color: #922B21;
  color: #ffffff;
}

.color-perm-2 {
  background-color: #217A3E;
  color: #ffffff;
}

.color-perm-3 {
  background-color: #f39c12;
  color: #212529;
}

.color-perm-4 {
  background-color: #1F618D;
  color: #ffffff;
}

.color-perm-5 {
  background-color: #BA00A6;
  color: #ffffff;
}

.color-perm-6 {
  background-color: #58CFFF;
  color: #000;
}

.color-perm-7 {
  background-color: #BA4A00;
  color: #ffffff;
}

.color-perm-8 {
  background-color: #2c3e50;
  color: #ffffff;
}

.color-perm-9 {
  background-color: #8e44ad;
  color: #ffffff;
}

.color-perm-10 {
  background-color: #00e413;
  color: #000;
}

td.permisos-cell .badge-custom {
  margin-right: 0.25rem;
  margin-bottom: 0.25rem;
}

.blink-bg {
  background-size: cover;
  animation: blink-bg 2s ease-in-out infinite;
  animation-delay: 0s;
}

@keyframes blink-bg {
  0%   { background-color: var(--app_primary_color_filter); }
  50%  { background-color: var(--app_primary_color_light); }
  100% { background-color: var(--app_primary_color_filter); }
}

.input-group-text-sm {
    padding-top: 0;
    padding-bottom: 0;
    line-height: 1.5;
    height: auto;
}

#toast-container {
    top: 70px;
    right: 35px;
    max-width: 350px;
}

.toast {
    min-width: 349px;
    opacity: 0;
    transform: translateX(100%);
    transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
    box-shadow: -8px 6px 14px rgba(1, 1, 1, 0.4);
    word-break: normal;
    overflow-wrap: break-word;
    hyphens: auto;
}

.toast.show {
    opacity: 1;
    transform: translateX(0);
}

.toast-body {
    padding: 12px;
    font-size: 12px;
    font-weight: bold;
}

.toast-header {
    padding: 10px 15px;
    font-weight: bold;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.toast-custom {
    color: white;
    border-radius: 5px;
}

.toast-custom.success .toast-header {
    background-color: #1a6a2c;
    color: white;
}
.toast-custom.success {
    color: #155724;
    background-color: #d4edda;
    border-color: #c3e6cb;
}

.toast-custom.info .toast-header {
    background-color: #093f91;
    color: white;
}
.toast-custom.info {
    color: #004085;
    background-color: #cce5ff;
    border: 1px solid #b8daff;
}

.toast-custom.warning .toast-header {
    background-color: #765902;
    color: white;
}
.toast-custom.warning {
    background-color: #fff3cd !important;
    color: #856404 !important;
    border-color: #ffeeba !important;
}

.toast-custom.error .toast-header {
    background-color: #50141a;
    color: white;
}
.toast-custom.error {
  color: #721c24;
  background-color: #f8d7da;
  border-color: #f5c6cb;
}

.toast-custom.danger {
  color: #721c24;
  background-color: #f8d7da;
  border-color: #f5c6cb;
}

.pre-env-banner {
    background-color: #f58b42;
    color: var(--app_white);
    text-align: center;
    font-weight: bold;
}

.pre-env-banner p {
    margin: 0;
    padding: 1px;
    font-size: 11px;
}

.pre-env-banner.top {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1050;
}

.pre-env-banner.bottom {
    position: fixed;
    bottom: 0;
    width: 100%;
    z-index: 1050;
}

nav ul a.nav-link span {
  vertical-align: middle;
}

#title svg.lucide {
  height: 30px !important;
  width: 30px !important;
  color: var(--app_primary_color);
}

#newapp svg.lucide {
    color: var(--app_primary_color) !important;
    height: 100px !important;
    width: 100px !important;
}

button svg.lucide, a svg.lucide {
  height: 17px !important;
  width: 17px !important;
  color: var(--mdc_header_white);
}

.auth svg.lucide {
  height: 18px !important;
  width: 18px !important;
  color: var(--app_primary_color);
}


nav svg.lucide{
  height: 22px !important;
  width: 22px !important;
  color: var(--app_primary_color);
  padding-left: 3px;
}

svg.lucide.px20 {
  height: 20px !important;
  width: 20px !important;
}

button:hover svg.lucide, a:hover svg.lucide {
  color: var(--app_primary_color);
}

a.dropdown-item:hover svg.lucide {
  color: var(--app_white);
}

.btn-outline-primary {
    color: var(--app_primary_color);
    border-color: var(--app_primary_color);
}

.btn-outline-primary:hover {
    background-color: var(--app_primary_color);
    color: var(--app_white);
    border-color: var(--app_primary_color);
}

.btn-outline-primary:active, .btn-outline-primary:focus {
    background-color: var(--app_primary_color) !important;
    color: var(--app_white) !important;
    border: none !important;
}

input[type="submit"]:active, input[type="submit"]:focus {
    background-color: var(--app_primary_color) !important;
    color: var(--app_white) !important;
}

.btn-primary:active, .btn-primary:focus {
    background-color: var(--app_primary_color) !important;
    color: var(--app_white) !important;
    border: none !important;
}

.btn-primary:active svg, .btn-primary:focus {
    color: var(--app_white) !important;
}

.btn-outline-primary:disabled {
    /* color: var(--app-primary-color-filter) */
}

a .custom_svg_icon svg{
    fill: var(--app_primary_color);
}

a:hover .custom_svg_icon svg{
    fill: var(--app_white);
}

.px40 {
    height: 40px !important;
    width: 40px !important;
}

.changelog-entry {
    font-size: 0.95rem;
    line-height: 1.6;
}

.changelog-entry h2 {
    margin-bottom: 0;
    border: 0;
    font-size: 17px;
}

.changelog-entry h3 {
    margin-top: 1rem;
    font-size: 1.1rem;
    color: #495057;
}

.changelog-entry ul {
    padding-left: 1.2rem;
}

.changelog-entry pre {
    background: #c7b8e83d !important;
    color: #f8f9fa;
    padding: 0.75rem;
    border-radius: 6px;
    overflow-x: auto;
}

.changelog-entry code {
    padding: 3px;
    border-radius: 4px;
    font-size: 0.9em;
    color: #4173c1;
    background: #cadfec66;
    font-weight: bold;
}

.changelog-sidebar .badge {
    font-size: 0.75rem;
}

.stat-card {
    border-radius: 8px;
    background: #ffffff;
    padding: 1.5rem;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
    transition: all 0.15s ease-in-out;
    height: 100%;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.12);
}

.stat-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 0.5rem;
}

.stat-value {
    /* font-size: 2rem; */
    font-weight: 700;
    color: var(--app_primary_color);
    line-height: 1.2;
}

/* Opcional: estados de métricas */
.stat-value.success {
    color: #28a745;
}

.stat-value.warning {
    color: #ffc107;
}

.stat-value.danger {
    color: #dc3545;
}


.chart-container {
    background: #ffffff;
    padding: 1.5rem;
    border-radius: 8px;
    height: 100%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
    transition: box-shadow 0.15s ease-in-out;
}

.chart-container:hover {
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.12);
}

.chart-container h6 {
    font-weight: bold;
    margin-bottom: 1rem;
    color: #495057;
}

.chart-container canvas {
    width: 100% !important;
    height: auto !important;
}

.gray_box {
    margin-bottom: 20px;
    padding: 20px 10px 0px 10px;
    background-color: #f0f0f0;
    border-radius: 5px;
}

#main-stats-container .col-xl-3,
#main-stats-container .col-lg-4,
#main-stats-container .col-md-6 {
    display: flex;
}

#main-stats-container .stat-card {
    width: 100%;
}


@media (max-width: 767.98px) {
    .stat-value {
        font-size: 1.6rem;
    }

    .chart-container {
        padding: 1.25rem;
    }
}


.bg-section {
    background-color: #ffffff;
    border-radius: 8px;
    padding: 1rem 1.25rem;
    margin-bottom: 1.5rem;
}

.section-divider {
    border-top: 1px solid #e9ecef;
    margin: 1.5rem 0;
}

h5.bluelabel {
    color: var(--app_primary_color);
    font-weight: bold;
}

.chart-container .chart-config-btn {
  background-color: #ffffff !important;
  border: 1px solid #d1d5db !important;
  color: #1f2937 !important;
  padding: 0.125rem 0.5rem;
  line-height: 1.2;
  border-radius: 0.375rem;
}
.chart-container .chart-config-btn:hover,
.chart-container .chart-config-btn:focus {
  background-color: #f3f4f6 !important;
  border-color: #cbd5e1 !important;
  color: #111827 !important;
}
.chart-container .chart-config-btn:focus {
  box-shadow: 0 0 0 0.2rem rgba(59, 130, 246, 0.15);
}
.chart-container .chart-config-btn i[data-lucide],
.chart-container .chart-config-btn .lucide {
  width: 16px;
  height: 16px;
  vertical-align: middle;
  stroke: currentColor !important;
}
.chart-container .dropdown-menu.chart-config-menu {
  min-width: 180px;
  font-size: 0.875rem;
  padding: 0.25rem 0;
}
.chart-container .dropdown-menu.chart-config-menu .dropdown-item {
  padding: 0.375rem 0.75rem;
}
.chart-container .dropdown-menu.chart-config-menu .dropdown-item.active,
.chart-container .dropdown-menu.chart-config-menu .dropdown-item:active {
  background-color: #e5e7eb;
  color: #111827;
}

.blog {
    background: white;
    padding: 20px 20px 0px 20px;
    border-radius: 6px;
}

.blog-entry {
    border-bottom: 1px solid #ddd;
}

.blog-entry h3 {
    margin-bottom: 5px;
}
.changelog-sidebar {
    max-height: calc(100vh - 140px);
    overflow-y: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.changelog-sidebar::-webkit-scrollbar {
    width: 0;
    height: 0;
    display: none;
}
.changelog-entry.d-none { display: none !important; }

.scroll-top-btn {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 1030;
    display: none;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
.scroll-top-btn.show { display: inline-flex; }

mark.ch-search-hit {
    background: #ffeb3b;
    color: inherit;
    padding: 0px;
    border-radius: 2px;
}

.text-xs {
    font-size: 9px !important;
}

.chart-card,
.chart-card * {
    box-sizing: border-box;
}

.charts-section {
    background-color: transparent;
    margin-bottom: 40px;
}

.charts-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #dee2e6;
}

.charts-title {
    font-size: 18px;
    font-weight: 600;
    color: #212529;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.client-filter-container {
    padding-top: 0.1rem;
    padding-bottom: 0.1rem;
}

.client-filter-list.compact {
    display: grid;
    grid-auto-flow: column;
    grid-template-rows: repeat(4, auto);
    grid-auto-columns: minmax(160px, 1fr);
    gap: 6px 10px;
    max-height: 260px;
    overflow: auto;
    padding-right: 6px;
}

.client-filter-item.compact-item {
    margin: 0 0 4px 0 !important;
    padding: 1px 4px;
    border-radius: 4px;
    background: transparent;
    display: block;
}

.client-filter-item.compact-item.hidden {
    display: none !important;
    visibility: hidden !important;
}

.app-filter-item.compact-item.hidden {
    display: none !important;
    visibility: hidden !important;
}

@media (max-width: 768px) {
    .client-filter-list.compact {
        grid-auto-flow: row;
        grid-template-rows: none;
        grid-auto-columns: 1fr;
        column-gap: 6px;
        max-height: 200px;
    }
}

.client-filter-item.compact-item .form-check-input {
    width: 12px;
    height: 12px;
    margin-top: 2px;
}

.client-filter-item .very-small {
    font-size: 11px;
    white-space: nowrap;
    max-width: 110px;
    display: inline-block;
    overflow: hidden;
    text-overflow: ellipsis;
}

.icon-btn {
    padding: 2px 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.icon-btn i {
    width: 14px;
    height: 14px;
}

.icon-btn svg,
.icon-btn i {
    stroke: currentColor;
    color: inherit;
}

.client-filter-list.compact {
    gap: 6px 8px;
}

.client-filter-list.compact .form-check-input {
    width: 14px;
    height: 14px;
    margin-top: 3px;
}

.client-filter-list.compact .form-check-label {
    padding-left: 6px;
    padding-right: 8px;
}

.charts-title .badge {
    font-size: 11px;
    padding: 5px 10px;
    margin-left: 8px;
}

.charts-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

.charts-label {
    font-size: 13px;
    font-weight: 500;
    color: #495057;
    margin-bottom: 0;
    white-space: nowrap;
}

.chart-card {
    background-color: #fff;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: fit-content;
    transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

.chart-card:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.12);
}

.chart-card-header {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-bottom: 1px solid #dee2e6;
    padding: 10px 15px;
    font-weight: 600;
    font-size: 12px;
    color: #495057;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    user-select: none;
}

.chart-card-body {
    flex: 0 0 auto;
    padding: 0.5rem;
    min-height: 180px;
    position: relative;
    overflow: visible;
    background-color: #fafbfc;
}

.plotly-graph-div {
    width: 100% !important;
    min-height: 160px !important;
    height: auto !important;
}

.plotly-graph-div>div {
    width: 100% !important;
    min-height: 160px !important;
    height: auto !important;
}

.modebar {
    position: absolute !important;
    right: 5px !important;
    top: 5px !important;
    background-color: rgba(255, 255, 255, 0.9) !important;
    border-radius: 4px !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1) !important;
}

.modebar-btn {
    color: #6c757d !important;
    opacity: 0.7 !important;
}

.modebar-btn:hover {
    opacity: 1 !important;
    background-color: #e9ecef !important;
}

.stats-list-item {
    padding: 8px 12px;
    border-bottom: 1px solid #e9ecef;
    font-size: 13px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #fff;
    transition: background-color 0.2s ease;
}

.stats-list-item:hover {
    background-color: #f0f4ff;
}

.stats-list-item:last-child {
    border-bottom: none;
}

.stats-list-item-label {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    margin-right: 10px;
    color: #495057;
}

.stats-list-item-badge {
    padding: 3px 8px;
    background-color: var(--app_primary_color);
    color: white;
    border-radius: 12px;
    font-weight: 600;
    font-size: 9px;
    white-space: nowrap;
}

@media (max-width: 1200px) {
    .chart-card-body {
        min-height: 300px;
    }
}

@media (max-width: 768px) {
    .charts-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .chart-card-body {
        min-height: 260px;
    }
}

@media (max-width: 576px) {
    .chart-card {
        border-radius: 6px;
    }

    .chart-card-body {
        min-height: 220px;
    }

    .charts-title {
        font-size: 16px;
    }
}

.chevron-icon {
    transition: transform 0.3s ease;
}

[aria-expanded="false"] .chevron-icon {
    transform: rotate(+90deg);
}

.chart-card .filter-badge {
    transition: all 0.2s ease;
    user-select: none;
    max-height: 21px;
}

.chart-card .filter-badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    filter: brightness(1.1);
}

.bg-success-custom {
    background-color: var(--app_primary_color);
    color: white;
}


.bg-secondary-custom {
    border: 1px solid #cbcbcb;
    background: whitesmoke;
    color: black;
}


.htmx-indicator {
    opacity: 0;
    transition: opacity 200ms ease-in;
    pointer-events: none;
}

.htmx-request .htmx-indicator,
.htmx-request.htmx-indicator {
    opacity: 1;
}

.chart-loader-inner,
.chart-inner-loader {
    background-color: #fff;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.htmx-request .chart-loader-inner {
    opacity: 1;
}

.toggle-filters-btn {
    font-size: 10px !important;
}

.custom-chart-legend {
    min-height: 20px;
}

.custom-legend-item {
    padding: 2px 6px;
    background-color: #f8f9fa;
    border-radius: 4px;
    border: 1px solid #e9ecef;
    cursor: default;
    transition: all 0.2s ease;
}

.legend-color-dot {
    display: inline-block;
    flex-shrink: 0;
}

.legend-color-box {
    display: inline-block;
    flex-shrink: 0;
}

.legend-label {
    white-space: nowrap;
    font-size: 0.75rem;
    font-weight: 500;
}

/* Scrollable table body with sticky header */
.table-scroll {
    max-height: 350px;
    overflow-y: auto;
}
.table-scroll table {
    width: 100%;
    border-collapse: collapse;
}
.table-scroll thead th {
    position: sticky;
    top: 0;
    background: var(--app_primary_color);
    color: #fff;
    z-index: 2;
}