/*
BRAND COLORS:
light-grey : #EEEEEE
dark-blue : #335577
dark-grey : #515151
darker-grey : #353535
green : #00a770
*/
/*@font-face {
    font-family: Helvetica;
    font-style: normal;
    font-weight: normal;
    src: url('/assets/font/HelveticaNeueMed.ttf');
}*/

/* @font-face { font-family: Helvetica; font-weight: lighter; src: url('/assets/font/HelveticaNeue\ Thin.ttf'); } */
/*@font-face {
    font-family: Helvetica;
    font-style: normal;
    font-weight: bold;
    src: url('/assets/font/Helvetica\ Neu\ Bold.ttf');
}*/

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@200;300;400;500;600&display=swap');
@font-face {
    font-family: 'Poppins';
    font-style: normal;
    font-weight: normal;
    src: url('https://fonts.googleapis.com/css2?family=Poppins:wght@200;300;400;500;600&display=swap');
}


/*VARIABLES DE COLORES*/
:root {
    --white: #ffffff;
    --lighter-grey: #EEEEEE;
    --light-blue: #b8cce0;
    --dark-blue: #335577;
    --darker-blue: #27405a;
    --light-grey: #c0c0c0;
    --dark-grey: #515151;
    --darker-grey: #353535;
    --light-green: #b3e6d5;
    --green: #00a870;
    --dark-green: #13392d;
    --light-red: #e6bdb3;
    --red: #ac3416;
    --dark-red: #391b13;
    --black: #000000;
}


/*-------------------------------------------------------------------------------------------------------------
# GENERALES
--------------------------------------------------------------------------------------------------------------*/
*,
*::after,
*::before {
    margin: 0;
    padding: 0;
    box-sizing: inherit;
}

body {
    font-family: 'Poppins', sans-serif;
    box-sizing: border-box;
    font-size: 0.9rem;
    /* letter-spacing: 0.5px; */
    font-weight: 700;
    color: var(--dark-grey);
    background-color: #F5F5F5;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

h2 {
    font-size: 1.2rem;
}

p {
    color: var(--dark-grey);
}

input,
select {
    outline: 0px transparent !important;
}

::-webkit-scrollbar {
    width: .6rem;
    height: .6rem;
}

::-webkit-scrollbar-track {
    background: var(--light-grey);
}

::-webkit-scrollbar-thumb {
    background: var(--dark-grey);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--darker-grey);
}

/*-------------------------------------------------------------------------------------------------------------
# HEADER
--------------------------------------------------------------------------------------------------------------*/
header {
    background-color: #fff;
}

header.header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 3.5rem 0.5rem;
    /*box-shadow opcional*/
    /* box-shadow: rgba(0, 0, 0, 0.24) 0px 1px 3px;  */
}

header.header>img {
    height: 3rem;
    margin-left: 1.2rem;
}

/*-------------------------------------------------------------------------------------------------------------
# Buttons
--------------------------------------------------------------------------------------------------------------*/

.button {
    /* all: unset; */
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    border: none;
    padding: .75rem 1rem;
    cursor: pointer;
    border-radius: 5px;
    -webkit-transition: all .4s ease;
    -moz-transition: all .4s ease;
    -o-transition: all .4s ease;
    transition: all .4s ease;
}

.button span,
.button a,
.button span a {
    all: unset;
}

.button.button-icon-left i {
    margin-right: .5rem;
}

.button.button-icon-right i {
    margin-left: .5rem ;
}

.button.primary-button {
    background-color: var(--dark-blue);
    color: var(--white);
}

.button.primary-button:hover {
    background-color: var(--darker-blue);
}

.button.secondary-button {
    background-color: #ddd;
    color: var(--darker-blue);
}

.button.secondary-button:hover {
    color: #000;
}

/*CONTENEDORES / WRAPERS / LAYOUT */

div#content {
    margin: 0 4rem 2rem 4rem;
}

h2.titulo-nodo {
    margin: 0 0 4rem 0;
}

/*--------------------------------------------------------------------------------------------------------------
# USO GENERAL
--------------------------------------------------------------------------------------------------------------*/
.float-left {
    float: left;
}

.float-right {
    float: right;
}

.clearfix:after {
    content: "";
    display: table;
    clear: both;
}

.hide {
    display: none;
}

.row-main {
    display: flex;
    justify-content: space-between;
}

.col-min {
    width: 25%;
}

.col-max {
    width: 70%;
}

/*--------------------------------------------------------------------------------------------------------------
# BREADCRUMB
--------------------------------------------------------------------------------------------------------------*/
.breadcrumb-bar {
    /* margin-bottom: 1rem; */
}

.breadcrumb-bar>ul.breadcrumbs {
    list-style: none;
    margin: 0;
    display: flex;
    justify-content: stretch;
}

.breadcrumb-bar>ul.breadcrumbs>li {
    display: block;
    padding: 0.5rem 0.6rem 0.5rem 0.5rem;
    font-size: 0.8rem;
    background-color: var(--darker-grey);
    font-weight: 400;
    white-space: nowrap;
    cursor: pointer;
}

/* esto es para agregar una capa de sombra cuando hacer hover el boton, por lo que leí es experimental y no funciona en todos los browsers */
/* .breadcrumb-bar>ul.breadcrumbs>li:hover {
    
} */
.breadcrumb-bar>ul.breadcrumbs>li:hover {
    background-color: var(--dark-blue);
    /* box-shadow: inset 0 0 0 1000rem rgba(0, 0, 0, .2); */
}

.breadcrumb-bar>ul.breadcrumbs>li:not(:first-child) {
    /*min-width: 17rem;
    max-width: 17rem;*/
    clip-path: polygon(.2rem 0, 100% 0, calc(100% - .2rem) 100%, 0 100%);
    -webkit-transition: background-color .3s ease;
    -moz-transition: background-color .3s ease;
    -o-transition: background-color .3s ease;
    transition: background-color .3s ease;
    /* flex-grow: 1; */
}

.breadcrumb-bar>ul.breadcrumbs>li:not(:first-child):hover {
    /*max-width: 100%;*/
    -webkit-transition: background-color .3s ease;
    -moz-transition: background-color .3s ease;
    -o-transition: background-color .3s ease;
    transition: background-color .3s ease;
}

.breadcrumb-bar>ul.breadcrumbs>li:first-child {
    width: 8.2rem;
    /* min-width: 6rem; */
    /* border-radius: 4rem 0 0 4rem; */
    clip-path: polygon(0 0, 100% 0, calc(100% - .2rem) 100%, 0 100%);
}

.breadcrumb-bar>ul.breadcrumbs>li:last-child {
    /* border-radius: 0 4rem 4rem 0; */
    /* max-width: 100%;
    min-width: fit-content; */
    flex-grow: 1;
    clip-path: polygon(.2rem 0, 100% 0, 100% 100%, 0 100%);
}

.breadcrumb-bar>ul.breadcrumbs>li a {
    color: var(--light-grey);
    text-decoration: none;
    display: inline-block;
    margin-left: .4rem;
}

.breadcrumb-bar>ul.breadcrumbs>li:first-child a {
    margin-left: 4rem;
}

.breadcrumb-bar>ul.breadcrumbs>li:hover a {
    /* transform: scale(1.01); */
    color: var(--white);
}

.breadcrumb-bar>ul.breadcrumbs>li:last-child a {
    color: var(--lighter-grey);
    text-decoration: none;
}

/*-------------------------------------------------------------------------------------------------------------
# NAVBAR
--------------------------------------------------------------------------------------------------------------*/
nav ul {
    list-style: none;
    text-align: right;
    margin: 0;
}

nav ul li {
    display: inline-block;
}

nav ul li:last-child {
    margin-left: 6rem;
}

nav ul li a {
    display: block;
    padding: 15px 0px;
    text-decoration: none;
    color: var(--darker-grey);
    font-weight: 500;
    letter-spacing: 0.5px;
    margin: 10px;
    font-size: 0.9rem;
}

nav ul li a i {
    margin-left: 1rem;
}

nav ul li a,
nav ul li a:after,
nav ul li a:before {
    transition: all .5s;
}

nav ul li a:hover {
    color: var(--darker-blue);
}

nav.stroke ul li a,
nav.fill ul li a {
    position: relative;
}

nav.stroke ul li a:after,
nav.fill ul li a:after {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    margin: auto;
    width: 0%;
    content: '.';
    color: transparent;
    background: var(--darker-grey);
    height: 1px;
}

nav.stroke ul li a:hover:after {
    width: 100%;
}

.contenido {
    display: block;
}

/*--------------------------------------------------------------
# Footer
--------------------------------------------------------------*/
#footer {
    background: var(--dark-blue);
    padding-top: 2rem;
    padding-bottom: 2rem;
    color: white;
    margin-top: auto;
}

#footer .container {
    padding-left: 4rem;
    padding-right: 4rem;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.copyright {
    font-size: 0.8rem;
}

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

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

/*--------------------------------------------------------------
# Paginacion
--------------------------------------------------------------*/
#paginationControl {
    margin-top: 2rem;
    margin-bottom: 2rem;
}

#paginationControl>.botones>table,
#paginationControl>.botones>table>tbody {
    display: block;
    font-weight: 400;
}

#paginationControl>.botones>table>tbody>tr {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
}

#paginationControl>.botones>table>tbody>tr>td {
    padding: 0;
}

#paginationControl>.botones>table>tbody>tr>td>.button {
    display: inline-block;
    margin: .2rem;
}

#paginationControl>.botones>table>tbody>tr>td>.button:nth-child(2) {
    margin-right: 1rem;
}

#paginationControl>.botones>table>tbody>tr>td>.button:nth-child(4) {
    margin-left: 1rem;
}

#paginationControl>.botones>table>tbody>tr>td>.button>i {
    width: 2rem;
    text-align: center;
}

#paginationControl select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-color: #fff;
    border: 0.013rem solid var(--light-grey);
    color: var(--dark-grey);
    border-radius: 5px;
    display: inline-block;
    font-size: 0.9rem;
    /* line-height: 1rem; */
    padding: .63rem 1rem;
    min-width: 6rem;
    margin: 0 0 0 .5rem;
}

#paginationControl select.select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 384 512'%3E%3Cpath fill='%23515151' d='M192 384c-8.188 0-16.38-3.125-22.62-9.375l-160-160c-12.5-12.5-12.5-32.75 0-45.25s32.75-12.5 45.25 0L192 306.8l137.4-137.4c12.5-12.5 32.75-12.5 45.25 0s12.5 32.75 0 45.25l-160 160C208.4 380.9 200.2 384 192 384z'/%3E%3C/svg%3E");
    background-size: .6rem;
    background-position: calc(100% - 1rem) center;
    background-repeat: no-repeat;
}

#paginationControl select.select:focus {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 384 512'%3E%3Cpath fill='%23515151' d='M352 352c-8.188 0-16.38-3.125-22.62-9.375L192 205.3l-137.4 137.4c-12.5 12.5-32.75 12.5-45.25 0s-12.5-32.75 0-45.25l160-160c12.5-12.5 32.75-12.5 45.25 0l160 160c12.5 12.5 12.5 32.75 0 45.25C368.4 348.9 360.2 352 352 352z'/%3E%3C/svg%3E");
    background-size: .6rem;
    background-position: calc(100% - 1rem) center;
    background-repeat: no-repeat;
}

#paginationControl select:-moz-focusring {
    color: transparent;
    text-shadow: 0 0 0 var(--dark-grey);
}


/*--------------------------------------------------------------------------------------------------------------
# Listado de usuarios
-------------------------------------------------------------------------------------------------------------*/
.box-btn {
    display: flex;
    justify-content: end;
    margin-top: 2rem;
}

.box-btn a {
    text-decoration: none;
}

.btn-primary {
    font-size: 0.9rem;
    border-radius: 0.5rem;
    padding: 0.5rem 1.5rem 0.7rem 1.5rem;
    border: none;
    background-color: var(--dark-blue);
    color: #fff;
    cursor: pointer;
    transition: .3s;
}

.btn-primary:hover {
    background-color: var(--dark-grey);
}

.btn-secondary {
    font-size: 0.9rem;
    border-radius: 0.5rem;
    padding: 0.5rem 1.5rem 0.8rem 1.5rem;
    border: none;
    background-color: var(--dark-grey);
    color: #fff;
    cursor: pointer;
    transition: .3s;
}

.btn-secondary:hover {
    background-color: var(--darker-grey);
}

.tabla-datos {
    background-color: white;
    border-radius: 5px;
    box-shadow: 0px 0px 30px 0px rgba(0, 0, 0, 0.1);
}

.tabla-datos .titulos {
    color: var(--white);
    border-radius: 5px;
    height: 3rem;
    text-align: center;
}

.tabla-datos tr > th{
    background-color: var(--dark-blue) !important;

    color: white;
}

.titulo-tabla-center{
    border-radius: 0px!important;
}

.tabla-datos tr > th:nth-child(n+2) {
    border-left: 0.1rem solid white;
}

.tabla-datos .titulo-tabla-left {
    border-radius: 5px 0 0 0;
    text-align: left;
    padding-left: 17px;
}

.tabla-datos .titulo-tabla-right {
    border-radius: 0 7px 0 0;
    border-right-color: var(--light-blue);
}

.tabla-datos tr {
    line-height: 2.5rem;
}

.tabla-datos td {
    border-top: 1px solid #c0c0c0;
    padding-left: 1rem;
    font-weight: 500;
}

.tabla-datos .actions {
    display: flex;
    justify-content: center;
}

.tabla-datos .actions i {
    font-size: 0.9rem;
    margin-right: 7px;
}

.tabla-datos .actions>.icon-edit {
    color: var(--dark-blue);
    margin-right: 1rem;
}

.tabla-datos .actions .icon-delete {
    color: var(--dark-grey);
}

.title {
    font-size: 1.4rem;
    color: var(--dark-grey);
    text-align: center;
    margin-bottom: 2rem;
    margin-top: 2rem;
    font-weight: 400;
}

/*--------------------------------------------------------------------------------------------------------------
# Form
-------------------------------------------------------------------------------------------------------------*/

@media screen and (max-width: 900px) {
    .form-variables {
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
}

@media screen and (max-width: 1250px) {
    .col-min {
        width: 100% !important;
    }

    .col-max {
        width: 100% !important;
    }

    .row-main {
        display: flex;
        flex-direction: column;
    }

    .form-variable-edicion {
        min-width: 35rem;
    }

    .form-variables {
        margin-right: 8rem;
        margin-left: 8rem;
    }
}

@media screen and (max-width: 1550px) {
    .col-min {
        width: 30%;
    }

    .col-max {
        width: 65%;
    }
}

.formulario-datos {
    width: 27rem;
}

.margin-form {
    margin-top: 4rem;
    margin-bottom: 4rem;
    display: flex;
    justify-content: center;
}

.text-indent-9rem {
    text-indent: 9rem;
}

.margin-form {
    margin-top: 4rem;
    margin-bottom: 4rem;
}

.margin-button {
    margin-top: .5rem;
    margin-bottom: .5rem;
}

.center-logo {
    display: flex;
    justify-content: center;
    padding: 7rem 4rem 0rem 4rem;
}

.text-login {
    font-size: 1.5rem;
    color: var(--dark-blue);
    font-weight: bold;
}

.button-login {
    width: 50%;
    text-align: center;
}

.input-login-width {
    width: 100%;
}

.contenedor-formulario {
    display: flex;
    text-align: center;
    justify-content: center;
}

.formulario {
    padding: 3.5rem;
    border-radius: 5px;
    box-shadow: 0px 0px 30px 0px rgba(0, 0, 0, 0.1);
    background-color: var(--white);
    margin-bottom: 2rem;
}

.form-editar {
    display: flex;
    flex-direction: row;
    margin-top: 1rem;
}

.row {
    margin: 0 auto;
    background: var(--white);
    position: relative;
    z-index: 1;
    text-align: center;
}

.row span {
    width: 100%;
    position: relative;
    display: inline-block;
    margin: 1rem 0px 8px 0px;
}

.input-text {
    display: inline-block;
    padding: 0.75rem 0 0.6rem 1rem;
    font-weight: 400;
    color: var(--dark-blue);
    background: var(--white);
    border: 0.013rem solid var(--light-grey);
    border-radius: 5px;
    /*text-indent: 4.5rem;*/
    width: 100%;
    transition: all 0.3s ease-in-out;
    outline: none;
    font-family: 'Poppins', sans-serif;
}

.text-indent-9rem {
    text-indent: 9rem;
}
.text-indent-9-5rem {
    text-indent: 9.5rem;
}
.text-indent-4-5rem {
    text-indent: 4.5rem;
}
.text-indent-6rem {
    text-indent: 6rem;
}
.text-indent-7rem {
    text-indent: 7rem;
}

.input-text+label {
    display: inline-block;
    position: absolute;
    top: 7px;
    left: 0;
    bottom: 8px;
    padding: 5px 15px;
    color: var(--dark-blue);
    font-size: 0.9rem;
    font-weight: 700;
    /* text-transform: uppercase; */
    transition: all 0.3s ease-in-out;
    border-radius: 5px;
}

.input-text:focus,
.input-text:active {
    color: var(--dark-blue);
    text-indent: 0;
    background: var(--white);
    border-color: var(--dark-blue);
}

.input-text:focus+label,
.input-text:active+label {
    color: #335577;
    font-weight: 700;
    font-size: 0.9rem;
    background: none;
    transform: translateY(-30px);
}

.input-text:focus+label:after,
.input-text:active+label:after {
    border: 0.013rem solid #335577;
}

.select-form {
    display: inline-block;
    padding: 0.63rem 0 0.63rem 1rem;
    font-weight: 400;
    color: var(--dark-grey);
    background: var(--white);
    border: 0.013rem solid var(--dark-grey);
    border-radius: 5px;
    text-indent: 4rem;
    width: 100%;
    transition: all 0.3s ease-in-out;
    outline: none;
    line-height: normal;
}

.select-form:focus,
.select-form:active {
    color: var(--dark-blue);
    text-indent: 0;
    background: var(--white);
    border-color: var(--dark-blue);
}

.select-form:focus+label,
.select-form:active+label {
    color: #335577;
    font-weight: 700;
    font-size: .9rem;
    background: none;
    transform: translateY(-30px);
}

.select-form:focus+.select-label:after,
.select-form:active+.select-label:after {
    border: 0.13rem solid #335577;
}

.select-form+label {
    display: inline-block;
    position: absolute;
    top: 6px;
    left: 0;
    bottom: 8px;
    padding: 5px 15px;
    color: var(--dark-grey);
    font-size: .9rem;
    font-weight: 700;
    transition: all 0.3s ease-in-out;
    border-radius: 5px;
}

ul.errors li{
    margin-top: .9rem;
    font-size: 0.9rem;
    font-weight: normal;
    color: var(--red);
}
ul.errors {
    list-style-type: none;
}

/*--------------------------------------------------------------------------------------------------------------
# Listado de árboles
-------------------------------------------------------------------------------------------------------------*/
.actions {
    padding: 0.5rem;
}

.actions a {
    margin-right: 2rem;
}
#detail .actions a{
    margin-right: 10px;
    margin-left: 10px;
}

.actions a[title="Activar"] {
    color: var(--dark-grey);
}

.actions a[title="Desactivar"] {
    color: var(--dark-blue);
}

.actions+a[title="Activar"] {
    background-color: var(--light-grey);
}

#summary:hover+#detail,
#detail:hover {
    display: grid;
}

#detail {
    display: none;
}

#summary {
    cursor: pointer;
    padding: 0 .8rem;
    margin: 0;
}

#summary i {
    color: var(--dark-grey);
}

#detail {
    box-shadow: 0px 0px 30px 0px rgba(0, 0, 0, 0.1);
    border-radius: 5px;
    padding: 15px 25px 15px 15px;
    background-color: white;
    width: auto;
    position: absolute;
    margin-top: 8px;
    margin-left: -175px;
    text-align: center;
    z-index: 999;
}

#detail a {
    text-decoration: none;
    color: white;
    font-size: 0.9rem;
    border-radius: 5px;
    /* padding: 0rem 1rem 0rem 1rem; */
    border: none;
    background-color: rgba(0,0,0,0);
    color: var(--dark-blue);
    cursor: pointer;
    transition: .3s;
    margin: 5px 14px 5px 12px;
    text-align: left;
    font-weight: 500;
}

#detail a:hover {
    background-color: rgba(0,0,0,0);
    color: var(--black);
}

#detail a i {
    color: var(--dark-blue);
}

#detail a img {
    height: 1rem;
    margin-bottom: -0.1rem;
    margin-right: 7px;
    filter: invert(31%) sepia(20%) saturate(1200%) hue-rotate(169deg) brightness(92%) contrast(91%);
}

#detail a img:hover {
    filter: invert(0%) sepia(100%) saturate(31%) hue-rotate(301deg) brightness(90%) contrast(101%);
}

.tabla-datos>tbody>tr {
    position: relative;
}

.tabla-datos>tbody>tr:nth-last-child(-n+3) #detail {
    top: -18rem;
}

/*--------------------------------------------------------------------------------------------------------------
# ARBOL Nodos Layout
-------------------------------------------------------------------------------------------------------------*/
#contenedor-nodos #guardar {
    /* width: 7rem; */
    margin-top: 2rem;
}

#modificar-nodos .contenedor-formulario button {
    margin-left: 1rem;
}

#modificar-nodos #seleccionar-nodo {
    display: inline-block;
    padding: .63rem 1rem;
    color: var(--dark-grey);
    background: var(--white);
    border: 0.013rem solid var(--dark-grey);
    border-radius: 5px;
    width: 10rem;
    /* margin: .5rem .5rem .5rem 0 ; */
}

#modificar-nodos {
    background-color: var(--white);
    /* width: 60rem; */
    border-radius: 5px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.20);
    padding: 2rem;
    justify-content: center;
    /* display: flex; */
}

#modificar-nodos .contenedor-seleccionar {
    margin: 0;
    background: var(--white);
    position: relative;
    z-index: 1;
    text-align: center;
}

#modificar-nodos .contenedor-seleccionar span {
    width: 100%;
    position: relative;
    display: inline-block;
}
#modificar-nodos #layout-arbol ul,
#modificar-nodos #layout-arbol li{
    display:block;
}

#modificar-nodos #layout-arbol{
    min-height: 35vh;
    overflow: auto;
    border: 0.013rem solid var(--light-grey);
    margin-top: 2rem;
    max-height: 77vh;
} 

#modificar-nodos #layout-arbol > form{
    width: max-content;
    padding: 3rem;
    margin: auto;
}

#seleccionar-nodo {
    display: inline-block;
    padding: 0.63rem 0 0.63rem 1rem;
    font-weight: 400;
    color: var(--dark-grey);
    background: var(--white);
    border: 0.13rem solid var(--dark-grey);
    border-radius: 5px;
    text-indent: 2rem;
    width: 100%;
    transition: all 0.3s ease-in-out;
    outline: none;
}

#seleccionar-nodo+label {
    display: inline-block;
    position: absolute;
    left: 0;
    padding: 10px 0 0 12px;
    margin: 0 auto;
    color: var(--dark-grey);
    font-size: 0.9rem;
    font-weight: 700;
    /* text-transform: uppercase; */
    transition: all 0.3s ease-in-out;
    border-radius: 5px;
}

#seleccionar-nodo:focus,
#seleccionar-nodo:active {
    color: var(--dark-blue);
    text-indent: 0;
    background: var(--white);
    border-color: var(--dark-blue);
}

#seleccionar-nodo:focus+label,
#seleccionar-nodo:active+label {
    color: #335577;
    font-weight: 700;
    font-size: 0.9rem;
    background: none;
    transform: translateX(-40px);
}

#lista-nodos {
    font-size: .8rem;
}

#lista-nodos .tree-branch,
#lista-nodos .tree-node {
    position: relative;
    list-style-type: none;
}

#lista-nodos .tree-branch {
    padding-left: 0;
    padding-top: 1rem;
}

#lista-nodos .tree-node {
    float: left;
    text-align: center;
    padding-top: 1rem;
    padding-right: 0.5rem;
}

/*We will use ::before and ::after to draw the connectors*/
#lista-nodos .tree-node::before,
#lista-nodos .tree-node::after {
    content: "";
    position: absolute;
    top: 0;
    right: 50%;
    border-top: .1rem solid var(--dark-grey);
    width: 50%;
    height: 1rem;
    transition: border-color 100ms cubic-bezier(0.4, 0, 0.2, 1);
}

#lista-nodos .tree-node::after {
    right: auto;
    left: 50%;
    border-left: .1rem solid var(--dark-grey);
}

/* Remove space from the top of single children */
#lista-nodos .tree-node:only-child {
    padding-top: 0;
}

/* Remove connectors from elements without 
  any siblings */
#lista-nodos .tree-branch:only-child::after,
#lista-nodos .tree-branch:only-child::before,
#lista-nodos .tree-node:only-child::after,
#lista-nodos .tree-node:only-child::before {
    display: none;
}

/* Remove left connector from first child and 
  right connector from last child */
#lista-nodos .tree-node:first-child::before,
#lista-nodos .tree-node:last-child::after {
    border: none;
}

#lista-nodos .tree-node:last-child {
    padding-right: 0;
}

/* Adding back the vertical connector to the last nodes */
#lista-nodos .tree-node:last-child::before {
    border-right: .1rem solid var(--dark-grey);
    border-top-right-radius: 0.25rem;
}

#lista-nodos .tree-node:first-child::after {
    border-top-left-radius: 0.25rem;
}

#lista-nodos #nodo-0.tree-node:last-child::before {
    border-right: none;
}

/* Time to add downward connectors from parents */
#lista-nodos .tree-branch::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    border-left: .1rem solid var(--dark-grey);
    width: 0;
    height: 1rem;
}

#lista-nodos .tree-content {
    display: inline-block;
    background-color: var(--lighter-grey);
    /* border: .25rem solid var(--dark-grey); */
    padding: 1rem 2rem;
    border-radius: 5px;
    transition: border-color 100ms cubic-bezier(0.4, 0, 0.2, 1), background-color 100ms cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: rgba(0, 0, 0, 0.16) 0px 1px 4px;
}

/*We will apply the hover effect the the lineage of the element also*/
#lista-nodos .tree-content:hover,
#lista-nodos .tree-content:hover+.tree-branch .tree-content,
#lista-nodos .tree-content:focus,
#lista-nodos .tree-content:focus+.tree-branch .tree-content {
    background-color: var(--light-blue) !important;
    border-color: var(--dark-blue) !important;
}

#lista-nodos .tree-content:hover option,
#lista-nodos .tree-content:hover+.tree-branch .tree-content option,
#lista-nodos .tree-content:focus option,
#lista-nodos .tree-content:focus+.tree-branch .tree-content option {
    background-color: #fff !important;
}

#lista-nodos .tree-content:hover+.tree-branch::before,
#lista-nodos .tree-content:hover+.tree-branch::after,
#lista-nodos .tree-content:focus+.tree-branch::before,
#lista-nodos .tree-content:focus+.tree-branch::after {
    border-color: var(--dark-blue) !important;
}

#lista-nodos .tree-content:hover+.tree-branch .tree-branch::before,
#lista-nodos .tree-content:hover+.tree-branch .tree-branch::after,
#lista-nodos .tree-content:hover+.tree-branch .tree-node::before,
#lista-nodos .tree-content:hover+.tree-branch .tree-node::after,
#lista-nodos .tree-content:focus+.tree-branch .tree-branch::before,
#lista-nodos .tree-content:focus+.tree-branch .tree-branch::after,
#lista-nodos .tree-content:focus+.tree-branch .tree-node::before,
#lista-nodos .tree-content:focus+.tree-branch .tree-node::after {
    border-color: var(--dark-blue) !important;
}

#lista-nodos .tree-content:focus {
    outline: none;
    box-shadow: 0 0 1px 3px var(--light-blue) !important;
}

#lista-nodos .tree-content {
    max-width: 12rem;
    min-width: 11rem;
}

/* .tree .dato-variable,
.tree .tipo_comparacion,
.tree .dato_comparacion_select,
.tree .mensaje_error {
    max-width: 12rem;
} */

#lista-nodos .bg-verdadero {
    border-color: var(--green);
    background-color: var(--light-green);
}

#lista-nodos .bg-falso {
    border-color: var(--red);
    background-color: var(--light-red);
}

/* Fields */
#lista-nodos ul.tree input[type=date],
#lista-nodos ul.tree input[type=datetime],
#lista-nodos ul.tree input[type=datetime-local],
#lista-nodos ul.tree input[type=email],
#lista-nodos ul.tree input[type=month],
#lista-nodos ul.tree input[type=number],
#lista-nodos ul.tree input[type=password],
#lista-nodos ul.tree input[type=range],
#lista-nodos ul.tree input[type=search],
#lista-nodos ul.tree input[type=tel],
#lista-nodos ul.tree input[type=text],
#lista-nodos ul.tree input[type=time],
#lista-nodos ul.tree input[type=url],
#lista-nodos ul.tree input[type=week],
#lista-nodos ul.tree textarea {
    -moz-box-shadow: inset -3px -3px 10px #eee;
    -webkit-box-shadow: inset -3px -3px 10px #eee;
    box-shadow: inset -3px -3px 10px #eee;
    border-radius: 5px;
}

/* Button */
#lista-nodos ul.tree button[type=submit] {
    -moz-box-shadow: inset -3px -3px 10px #cc870a;
    -webkit-box-shadow: inset -3px -3px 10px #cc870a;
    box-shadow: inset -3px -3px 10px #cc870a;
    background-color: #f7b31c;
    /* Fill color */
    color: white;
    /* Text color */
    border-radius: 5px;
    /* Rounded button edges */
    font-style: italic;
    /* Italicize text */
    padding: 10px 30px;
    /* Distance between text and border */
}

/*# sourceMappingURL=tree.css.map */

#lista-nodos select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-color: #fff;
    border: 0.013rem solid var(--dark-grey);
    color: var(--dark-grey);
    border-radius: 5px;
    display: inline-block;
    /* font: normal; */
    line-height: 1rem;
    padding: 0.3rem;
    margin: 0 0 .7rem 0;
    width: 100%;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 384 512'%3E%3Cpath fill='%23515151' d='M192 384c-8.188 0-16.38-3.125-22.62-9.375l-160-160c-12.5-12.5-12.5-32.75 0-45.25s32.75-12.5 45.25 0L192 306.8l137.4-137.4c12.5-12.5 32.75-12.5 45.25 0s12.5 32.75 0 45.25l-160 160C208.4 380.9 200.2 384 192 384z'/%3E%3C/svg%3E");
    background-size: .6rem;
    background-position: calc(100% - .5rem) center;
    background-repeat: no-repeat;
}

#lista-nodos select:last-child {
    margin: 0;
}

#lista-nodos select:focus {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 384 512'%3E%3Cpath fill='%23515151' d='M352 352c-8.188 0-16.38-3.125-22.62-9.375L192 205.3l-137.4 137.4c-12.5 12.5-32.75 12.5-45.25 0s-12.5-32.75 0-45.25l160-160c12.5-12.5 32.75-12.5 45.25 0l160 160c12.5 12.5 12.5 32.75 0 45.25C368.4 348.9 360.2 352 352 352z'/%3E%3C/svg%3E");
    background-size: .6rem;
    background-position: calc(100% - .5rem) center;
    background-repeat: no-repeat;
}

#lista-nodos select:-moz-focusring {
    color: transparent;
    text-shadow: 0 0 0 var(--darker-grey);
}

#lista-nodos .vinculacion-nodo {
    margin-bottom: 1rem;
}

#lista-nodos input {
    background-color: #fff;
    border: 0.013rem solid var(--dark-grey);
    color: var(--dark-grey);
    border-radius: 5px;
    display: inline-block;
    /* font: normal; */
    line-height: 1rem;
    padding: 0.3rem;
    margin: .7rem 0 1.2rem 0;
    width: 100%;
}

#lista-nodos input[disabled] {
    border-color: var(--light-grey);
    background-color: var(--lighter-grey);
}

/* #lista-nodos .bg-verdadero input{
    border-color: var(--green);
}
#lista-nodos .bg-falso input{
    border-color: var(--red);
} */

/*--------------------------------------------------------------------------------------------------------------
# Clonar arbol
-------------------------------------------------------------------------------------------------------------*/
.subnav {
    background-color: var(--light-grey);
    margin-left: -4rem;
    margin-right: -4rem;
    /* height: 4rem; */
    display: flex;
    justify-content: end;
}

.subnav span {
    padding: 0.5rem;
    transform: translateX(-4rem);
}

.subnav img {
    width: 1rem;
    filter: invert(31%) sepia(0%) saturate(1443%) hue-rotate(225deg) brightness(90%) contrast(80%);
    /* display: none; */
}

.subnav a {
    text-decoration: none;
    color: var(--dark-grey);
    font-size: 0.9rem;
    margin: 0.8rem;
    font-weight: bold;
}

.subnav a:hover {
    text-decoration: none;
    color: var(--white);
}

.subnav a:hover img {
    filter: invert(99%) sepia(2%) saturate(1901%) hue-rotate(216deg) brightness(118%) contrast(100%);
}



#clonar-arbol .title {
    margin-top: 2rem;
}

#clonar-arbol .grid {
    max-width: 100%;
    margin: 0 auto;
    padding: 1rem 1.5rem;
    background: var(--white);
    position: relative;
    z-index: 1;
    text-align: center;
    display: grid;
}

#clonar-arbol .grid span {
    position: relative;
    display: inline-block;
    margin: 1rem 0rem;
}

#clonar-arbol .input-text {
    width: 30rem;
}

#clonar-arbol .input-text:focus+label,
.input-text:active+label {
    color: #335577;
    font-weight: 700;
    font-size: 0.9rem;
    background: none;
    transform: translateY(-30px);
}

#clonar-arbol p {
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

.historial {
    width: 40rem;
    margin: auto;
}

.historial .title {
    margin-top: 2rem;
    text-align: start;
}

#formulario-test table {
    width: 60rem;
}

#formulario-test input {
    display: inline-block;
    padding: 0.63rem 0 0.63rem 1rem;
    font-weight: 400;
    color: var(--dark-grey);
    background: var(--white);
    border: 0.013rem solid var(--dark-grey);
    border-radius: 5px;
    text-indent: 0.25rem;
    width: 20rem;
    transition: all 0.3s ease-in-out;
    outline: none;
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
}

#formulario-test input[type="checkbox"] {
    height: 1.5rem;
    border-radius: 5px;
    padding: 0.8rem;
    border: 0.013rem solid var(--dark-grey);
}

#formulario-test button {
    margin-top: 1rem;
    margin-bottom: 1rem;
}

#resultado-consulta .card {
    background-color: var(--white);
    width: 60rem;
    border-radius: 5px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.20);
    padding: 3rem;
    text-align: left;
}

#resultado-consulta .titulo {
    font-size: 1.2rem;
    margin-left: 2rem
}

#resultado-consulta .evaluacion {
    color: var(--darker-blue);
    text-align: center;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

#resultado-consulta .card-gris {
    line-height: 2;
    padding: 1rem 5rem 1rem 5rem;
    background-color: var(--lighter-grey);
    border-radius: 5px;
    margin-top: 2rem;
}

.mt-2rem {
    margin-top: 2rem;
}

/*--------------------------------------------------------------------------------------------------------------
# MENSAJES
-------------------------------------------------------------------------------------------------------------*/

.mensajes {
    /*width: 100vw;*/
    /*POSICIONAMIENTO A DEFINIR*/
    position: relative;
    margin-left: -4rem;
    margin-right: -4rem;
    text-align: center;
}

.mensajes .error,
.mensajes .alert,
.mensajes .notice,
.mensajes .success,
.mensajes .info {
    padding: 1rem;
}

.mensajes .error,
.mensajes .alert {
    background: var(--light-red);
    color: var(--dark-red);
    border-color: var(--red);
}

.mensajes .notice {
    background: var(--light-grey);
    color: var(--darker-grey);
    border-color: var(--dark-grey);
}

.mensajes .success {
    background: var(--light-green);
    color: var(--dark-green);
    border-color: var(--green);
}

.mensajes .info {
    background: var(--light-blue);
    color: var(--darker-blue);
    border-color: var(--dark-blue);
}

.mensajes .error a,
.mensajes .alert a {
    color: var(--red);
}

.mensajes .notice a {
    color: var(--dark-grey);
}

.mensajes .success a {
    color: var(--green);
}

.mensajes .info a {
    color: var(--dark-blue);
}

/*--------------------------------------------------------------------------------------------------------------
# TEST RESULTADOS
-------------------------------------------------------------------------------------------------------------*/
#resultado-consulta #resultado .OK, #resultado-consulta #evaluaciones .OK
{
    color: var(--green);
}

#resultado-consulta #resultado .KO, #resultado-consulta #evaluaciones .KO
{
    color: var(--red);
}

#resultado-consulta span.indentado { 
    display: block;
    margin-left:15px; 
}

/*--------------------------------------------------------------------------------------------------------------
# edicion de variables
-------------------------------------------------------------------------------------------------------------*/
p.error {
    margin-top: .8rem;
    font-size: 0.9rem;
    font-weight: normal;
    color: var(--red);
}
#mensaje p.aviso {
    margin-top: .9rem;
    font-size: 1.1rem;
    font-weight: normal;
    color: var(--green);
}

.variables_acciones {
    display: flex;
    justify-content: center;
}

/*--------------------------------------------------------------------------------------------------------------
# Eliminar Usuario / Eliminar arbol
-------------------------------------------------------------------------------------------------------------*/
#confirmacion-eliminar{
    padding: 2rem;
    border-radius: 5px;
    box-shadow: 0px 4px 4px 1px rgba(0, 0, 0, 0.25);
    background-color: var(--white);
    margin: auto;
    margin-top: 2rem;
    width: 40rem;
}
#confirmacion-eliminar h2{
    text-align: center;
    margin-bottom: 1rem;
}
#confirmacion-eliminar ul{
    list-style: none;
    margin: 1rem 0 1.2rem 0;
}
#confirmacion-eliminar ul li{
    margin: .5rem 0;
}

/*--------------------------------------------------------------------------------------------------------------
# varios
-------------------------------------------------------------------------------------------------------------*/
.icono_accion {
    width: 1.2rem;
}