@import url('https://fonts.googleapis.com/css?family=Lato:400,700');
@import url('https://fonts.googleapis.com/css2?family=Source+Sans+Pro:ital,wght@0,200;0,300;0,400;0,600;0,700;0,900;1,200;1,300;1,400;1,600;1,700;1,900&display=swap');
@import url('https://fonts.googleapis.com/css?family=Raleway');
:root {
    --white: #FCFCFC;
    --gray: #CBCDD3;
    --dark: #777777;
    --error: #EF8D9C;
    --orange: #FFC39E;
    --success: #B0DB7D;
    --secondary: #99DBB4;
    --warning: #d2db7d;
    --info: #7da9db;
  }



* {
    margin: 0;
    padding: 0;
    font-family: 'Source Sans Pro', sans-serif;
    --unraf-cyan: #1da3ac;
    --unraf-yellow: #ffc130;
    --unraf-blue: #456a8c;
    --unraf-gray: #7c7d81;
    --unraf-gray-transp: rgba(124,125,129,0.5);
    --rounded-edge: .4rem;
    --rounded-edge-sm: .2rem
}

.BG-Gray
{
    background-color: var(--unraf-gray);
}
.BG-White
{
    background-color: var(--white);
}
.BG-Blue
{
    background-color: var(--unraf-blue);
}
.TXT-Gray
{
    color: var(--unraf-gray);
}
.margin-2px{
    margin: 2px;
}
.padding-2px{
    margin: 2px;
}
.aspect-ratio {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%;
}

.horizontal-flex{ /* simple centered row flex */
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
}
.fileIcon{
    width: 96px;
    height: 96px;
}
.w-75{
    width: 75%;
}
.card .file{
    margin: 15px;
    min-width: 15vh;
    
}

.pm-2vh
{
    padding: 2vh;
    margin: 2vh;
}

.pm-5vh
{
    padding: 5vh;
    margin: 5vh;
}

.pm-15px
{
    padding: 15px;
    margin: 15px;
}

iframe {
    position: absolute;
    width: 100%;
    height: 100%;
}

body {
    background-image: url("/img/UNRaf_iso_bg.png");
    background-repeat: repeat;
}

a{
    text-decoration: none;
}

.disabled {
    display: none;
}

.title {
    font-size: x-large;
    color: var(--unraf-cyan);
    font-weight: 600;
}
.subtitle {
    font-size: x-small;
    color: var(--unraf-cyan);
    font-weight: 400;
}
.title-large{
    font-size: large;
    color: var(--unraf-cyan);
    font-weight: 600;
}
.flex{
    display: flex;
}
.align-item-center{
    align-items: center;
}
.justify-content-center{
    justify-content: center;
}
.flex-wrap{
    flex-wrap: wrap;
}
.flex-direction{
    flex-direction: column;
}
.flex-item-w50{
    flex: 1;
    flex-basis: calc(50% - 10px); /* Establece el ancho deseado (50% - margen) */
    margin: 1px;
    box-sizing: border-box; /* Incluye el margen en el cálculo del ancho */
    text-align: left;
}
.w-100{
    width: 100%;
}
.botonera {
    display: flex;
    justify-content: left;
    gap: 1rem;
}
.botonera .boton {
    margin-left: 0;
    margin-right: 0;
}

.boton {
    cursor: pointer;
    font-size: large;
    display: flex;
    align-items: center;
    gap: .25rem;
    justify-content: space-evenly;
    border: 1px solid rgba(0,0,0,0);
    padding: .5rem;
    border-radius: var(--rounded-edge-sm);    
    color: white;
    transition: color 100ms ease-in-out, fill 100ms ease-in-out, background-color 100ms ease-in-out, border-color 100ms ease-in-out;
}

.boton.normal {
    background-color: var(--unraf-cyan);
    color: white;
    fill: white;
}

.boton.normal:hover{
    background-color: white;
    color: var(--unraf-cyan);
    fill: var(--unraf-cyan);
    border-color: var(--unraf-cyan);
}

.boton.amarillo {
    background-color: var(--unraf-yellow);
    color: white;
    fill: white;
}

.boton.amarillo:hover{
    background-color: white;
    color: var(--unraf-yellow);
    fill: var(--unraf-yellow);
    border-color: var(--unraf-yellow);
}

.boton.peligro {
    background-color: #ac1d1d;
    color: white;
    fill: white;
}
.boton.peligro:hover {
    background-color: white;
    fill: #ac1d1d;
    color: #ac1d1d;
    border-color: #ac1d1d;
}

/* .variable-viewer:after {
    position: absolute;
    font-size: xx-large;
    z-index: 10;
    color: #00ff00;
    content: "testing";
    background-color: black;
    width: var(--modal-width);
}
 */

.modal {
    display: flex;
    align-items: center;
    justify-content: center;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    opacity: 0;
    pointer-events: none !important;
    position: fixed;
    background-color: rgba(0,0,0,0.2);
    transition: opacity 100ms ease-in-out;

    z-index: 2;
}

.modal.active {
    opacity: 1;
    pointer-events: auto !important;
}

.modal-content {
    border-radius: var(--rounded-edge);
    box-sizing: border-box;
    position: absolute;
    background-color: white;
    width: fit-content;
    height: fit-content;
    display: flex;
    gap: 1rem;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    padding: 2rem;
    color: #7c7d81;
    top: auto;
    margin: 1rem;
}

.modal-body {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: .25rem;
}

.modal-header {
    pointer-events: none;
}

.modal-footer {
    display: flex;
    width: 100%;
    justify-content: flex-end;
    gap: .5rem;
}

.modal-footer *{
    cursor: pointer;
}

.card {
    z-index: auto;
    border: 1px solid rgba(124,125,129,0.5);
    padding: 1rem;
    border-radius:var(--rounded-edge);
}

.navbar {
    padding: 20px;
    background-color: white;
    box-shadow: 0px 2px 7px 0px rgba(0,0,0,0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.links {
    display: flex;
    align-items: center;
    font-size: large;
    gap: 2rem;
    padding-left: 2rem;
}

.link {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    text-decoration: none;
    color: #7c7d81;
    fill: #7c7d81;
    transition: color 100ms ease-in-out, background-color 100ms ease-in-out, fill 100ms ease-in-out;
}


.link:hover, .dropdown.active > .link {
    color: var(--unraf-cyan);
    fill: var(--unraf-cyan);
}

.dropdown {
    position: relative;
}

.navbar .dropdown-menu {
    display: flex;
    flex-direction: column;
    gap: 15px;
    position: absolute;
    left: -10px;
    top: calc(100% + 1.2rem);
    background-color: white;
    padding: .75rem;
    width: 10rem;
    border-radius: var(--rounded-edge);
    box-shadow: 0px 2px 3px 0px rgba(0,0,0,0.2);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-10px);
    transition: opacity 150ms ease-in-out, transform 150ms ease-in-out;
}

.navbar .dropdown.active > .link + .dropdown-menu {
    opacity: 1;
    transform: translateY(0px);
    pointer-events: auto;
}

.navbar-toggle{
    display: none;
    position: absolute;
    top:18px;
    left: 48px;
}

.navbar-toggle-home{
    display: none;
    position: absolute;
    top:18px;
    left: 24px;
}

.logo {
    display: flex;
    align-items: center;
    gap: .25rem;
}

.logo .large {
    width: 12rem;
    height: auto;
}
.logo .small {
    width: 2rem;
    display: none;
}

.logo .text, .divider {
    font-size: x-large;
    font-weight: 300;
    color: #7c7d81;
    pointer-events: none;
}

.content {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 1rem;
    margin: 2rem 7rem 6rem;
}

.content.acceso {
    flex-direction: row;

}
.content.column
{
    flex-direction: column;
}
.content .acciones {
    height: 60vh;
    display: flex;
    min-width: 16rem;
    flex-direction: column;
    padding: 0.5rem;
    background-color: var(--unraf-blue);
    border-radius: var(--rounded-edge);
    flex: 1 1 0;
}

.content .acciones .links {
    height: 60vh;
    overflow-y: scroll;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    margin-top: 0.5rem;
    gap: .5rem;
    padding: 0 2rem;
}

.content .acciones .link {
    width: 100%;
    display: flex;
    align-items: center;
    gap: .5rem;
    color: white;
    fill: white;
    border: solid 1px white;
    border-radius: var(--rounded-edge);
    padding: 1rem;
    cursor: pointer;
}

.content .acciones .link svg {
    flex-shrink: 0;
}

.content .acciones .link:hover {
    display: flex;
    align-items: center;
    gap: .5rem;
    color: var(--unraf-blue);
    fill: var(--unraf-blue);
    border: solid 1px white;
    background-color: white;
    border-radius: var(--rounded-edge);
    padding: 1rem;
}

.content .acciones .title {
    color: white;
}

.content .sistemas{
    height: 60vh;
    min-width: 12rem;
    display: flex;
    flex: 3 3 0;
    flex-direction: column;
    padding: 0.5rem;
    background-color: rgba(255, 255, 255, .7);
    border-radius: var(--rounded-edge);
    color:#7c7d81
}

.content .sistemas .cards {
    height: 60vh;
    display: flex;
    flex-flow: row wrap;
    gap: .5rem;
    margin-top: 1rem;
    overflow-y: scroll;
    overflow-x: hidden;
}
.content .sistemas .card {
    padding: 0;
    width: 23%;
    display: flex;
    flex-direction: column;
    background-color: white;
    height: 12rem;
}

.content .sistemas .card .titulo{
    text-decoration: none;
    padding: .5rem;
    text-align: center;
    font-size: 1rem;
    font-weight: bold;
    background-color: rgba(124,125,129,0.2);
    color: #7c7d81;
    border-radius: var(--rounded-edge) var(--rounded-edge) 0 0;
    cursor: pointer;
}

.content .sistemas .card .titulo:hover{
    color: var(--unraf-cyan);
}

.content .sistemas .card .titulo.plain:hover{
    color: var(--unraf-gray);
    cursor: default;
}

.content .sistemas .card .descripcion{
    padding: .5rem;
    text-align: center;
    border-bottom: 1px solid rgba(124,125,129,0.5);
    border-top: 1px solid rgba(124,125,129,0.5);
    overflow: hidden;
    flex:1;
}

.card .descripcion img{
    max-height: 6rem;
    max-width: 10rem;
}

.content .sistemas .card .descripcion:last-of-type{
    border-bottom: none;
}

.content .sistemas .card .admin-tools{
    display: flex;
}

.content .admin-tools svg, .content .admin-tools div{
    pointer-events: none;
}

.card.link {
    justify-content: center;
    align-items: center;
}

.card.link a {
    font-size: xxx-large;
    font-weight: light;
}

.content .sistemas .card .admin-tools a{
    flex: 1;
    padding: .5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-right: 1px solid rgba(124,125,129,0.5);
    fill: rgba(124,125,129,0.7);
    background-color: white;
    transition: fill 100ms ease-in-out, background-color 100ms ease-in-out;
}

.content .sistemas .card .admin-tools a:hover{
    fill: white;
    background-color: var(--unraf-yellow);
}

.content .sistemas .card .admin-tools a:first-of-type{
    border-radius: 0 0 0 var(--rounded-edge);
}

.content .sistemas .card .admin-tools a:last-of-type{
    border-right: none;
    border-radius: 0 0 var(--rounded-edge) 0;
}

.external .ingresos
{

    text-align: center;
    border-style:none;
    
   /*  width: 100vh; */
    margin-bottom: 10vh;
}
 .external 
{
    
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    /* height: 20vh; */
}

footer {
    z-index: 1;
    box-sizing: border-box;
    padding: 0rem 1.5rem;
    position: fixed;
    bottom: 0;
    width: 100%;
    height: 5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: white;
    box-shadow: 0px -2px 7px 0px rgba(0,0,0,0.1);
}
footer .helpbox {
    display: flex;
    align-items: center;
}

footer .helpbox-option, footer .soporte {
    display: flex;
    align-items: center;
    gap: .5rem;
    cursor: pointer;
    width: fit-content;
}

footer .helpbox-option svg, footer .helpbox-option div{
    pointer-events: none;
}

footer .helpbox-option .text{
    pointer-events: none;
    opacity: 0;
    width: 0;
    transform: translateX(-.5rem);
    transition: opacity 150ms ease-in-out, transform 150ms ease-in-out, width 150ms ease-in-out;
}

footer .helpbox-option > a:hover svg{
    fill: var(--unraf-cyan);
}

footer .helpbox-option > a:hover + .text{
    padding-right: .5rem;
    color: var(--unraf-cyan);
    opacity: 1;
    width: fit-content;
    transform: translateX(0);
}

footer .profile {
    gap: 1rem;
    width: 100%;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}
footer .profile-button {
    position: relative;
 }
  
footer  .notification-count {
position: absolute;
background-color: red;
top: 0;
right: 0;
color: white;
border-radius: 20%;
padding: 1px 4px;
font-size: 10px;
pointer-events: none;
}
footer .profile .log-status {
    color: #7c7d81;
    pointer-events: none;
}

footer .profile-pic img{
    height: 3rem;
    border-radius: 1.5rem;
    border:1px solid rgba(124,125,129,0.5)
}

footer .footer-dropdown {
    position: relative;
}

footer .footer-dropdown a{
    cursor: pointer;
    height: 100%;
    width: 100%;
}
footer .footer-dropdown a svg{
    pointer-events: none;
    fill: #7c7d81;
    width: 24px;
    height: 24px;
}
footer .footer-dropdown a:hover svg{
    fill: var(--unraf-cyan);
}

footer .footer-dropdown-menu {
    position: absolute;
    right: -.5rem;
    bottom: calc(100% + 2.2rem);
    display: flex;
    flex-direction: column;
    gap: 10px;
    background-color: white;
    padding: .75rem;
    width: 10rem;
    border-radius: .25rem;
    box-shadow: 0px 2px 3px 0px rgba(0,0,0,0.2);
    pointer-events: none;
    transform: translateY(10px);
    opacity: 0;
    transition: opacity 150ms ease-in-out, transform 150ms ease-in-out;
}
footer .footer-dropdown-menu .link {
    width: fit-content;
    gap: .5rem;
}

footer .footer-dropdown .footer-dropdown-menu.notif{

    width: 15rem;
    max-height: 15rem;
    overflow-x: hidden;
    overflow-y: auto;
    box-shadow: 0px 5px 15px 0px rgba(0,0,0,0.2);
}

footer .footer-dropdown.active > .footer-dropdown-menu {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

@media(max-width: 900px) {

    .logo .large{
        display: none;
    }

    .logo .small{
        display: block
    } 

}

@media(max-width: 700px) {

    footer {
        gap: .5rem;
    }

    footer .footer-dropdown-menu.notif {
        position: absolute;
        right: -10rem;
    }

    .content {
        margin: 1rem 3rem 6rem;
    }

    .content .sistemas .card {
        width: 100%;
    }

    .navbar-toggle{
        display:block;
        left: 5rem;
    }

    .navbar-toggle-home {
        display: block;
    }
    .link.home {
        display: none;
    }

    .navbar{
        flex-direction: column-reverse;
        gap: 0px;
    }
    .navbar .logo {
        align-self: flex-end;
    }
    .navbar .links {
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        opacity: 0;
        height: 0;
        overflow: hidden;
        transition: opacity 150ms ease-in-out, height 150ms linear;
    }

    .navbar.active {
        gap: 20px
    }

    .navbar.active .links {
        height: auto;
        display: flex;
        opacity: 1;
    }

    .navbar .dropdown {
        width: 100%;
    }

    .navbar .dropdown-menu {
        background-color: #eff1f8;
        position: relative;
        height: 0;
        gap: 0;
        padding: 0;
        width: 110%;
        overflow: hidden;
        left: -2.2rem;
    }

    .navbar .dropdown-menu .link {
        padding-left: 2rem;
    }

    .navbar .dropdown.active > .link + .dropdown-menu {
        height: auto;
        padding: .75rem;
        gap: 20px;
        margin-top: 1rem;
    }
}

@media(max-width: 500px) {

    footer .helpbox .text {
        display: none;
    }

    footer .helpbox {
        gap: .5rem;
    }

    footer .log-status {
        display: none;
    }

    footer .footer-dropdown-menu.notif {
        width: 15rem;
        right: -5rem;
    }
}

@media only screen and (max-width: 550px)
{
    .img {
        width: 32px;
        height: 32px;
    }
    .card h2
    {
        font-size: 14px;
    }
    .card h3
    {
        font-size: 12px;
    }
    .card h4
    {
        font-size: 12px;
    }
    .card p
    {
        font-size: 12px;
    }
    .boton
    {
        width: 25%;
        height: 25%;
        font-size: 12px;
    }
    .title
    {
        font-size: 18px;
    }
    label
    {
        font-size: 14px;
        width: 50%;
        height: 50%;
    }
    .horizontal-flex{
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }
    .card
    {
        z-index: auto;
        border: 1px solid rgba(124,125,129,0.5);
        padding: 0;
        border-radius:var(--rounded-edge);
    }
    .fileIcon{
        width: 32px;
        height: 32px;
    }
}
