@import url('https://fonts.googleapis.com/css2?family=PT+Sans:wght@400;700&display=swap');


/* =========================================================
   CONFIGURACIÓN GENERAL
   ========================================================= */

html,
body {

    width: 100%;
    height: 100%;

    margin: 0;
    padding: 0;

    overflow: hidden;

    font-family:
        'PT Sans',
        'Segoe UI',
        Tahoma,
        Geneva,
        Verdana,
        sans-serif;

    font-size: 11px;
}


/* =========================================================
   BARRA SUPERIOR
   ========================================================= */

.barra-superior {

    width: 100%;
    height: 28px;

    box-sizing: border-box;

    display: flex;
    align-items: center;

    background: #eef4f9;

    border-bottom: 1px solid #c5d2e2;

    color: #1e395b;

    padding: 0 5px;
}


/* LOGO */

.logo-barra {

    width: 16px;
    height: 16px;

    object-fit: contain;

    margin-right: 4px;

    flex-shrink: 0;
}


/* TÍTULO */

.titulo-modulo {

    flex: 1;

    white-space: nowrap;

    overflow: hidden;

    text-overflow: ellipsis;

    line-height: 18px;
}


/* USUARIO */

.usuario-sistema {

    white-space: nowrap;

    margin-left: 10px;
}

.usuario-sistema a {

    color: #1e395b;

    text-decoration: none;
}

.usuario-sistema a:hover {

    text-decoration: underline;
}


/* =========================================================
   BARRA DEL MENÚ
   ========================================================= */

.barra-menu {

    width: 100%;

    height: 19px;

    box-sizing: border-box;

    display: flex;
    align-items: center;

    background:
        linear-gradient(
            to bottom,
            #f8f8f8 0%,
            #eeeeee 50%,
            #dddddd 100%
        );

    border-bottom: 1px solid #a6a6a6;

    padding-left: 3px;

    position: relative;

    z-index: 1000;
}


/* =========================================================
   MENÚ PRINCIPAL
   ========================================================= */

.menu-principal {

    list-style: none;

    margin: 0;
    padding: 0;

    display: flex;

    height: 100%;
}


/* ITEM */

.menu-item {

    position: relative;

    height: 100%;
}


/* TEXTO DEL MENÚ */

.menu-link {

    height: 100%;

    box-sizing: border-box;

    display: flex;

    align-items: center;

    padding: 0 7px;

    color: #000;

    cursor: default;

    border: 1px solid transparent;

    font-size: 11px;
}


/* =========================================================
   HOVER DEL MENÚ
   ========================================================= */

.menu-item:hover > .menu-link {

    background: #dce6f1;

    border: 1px solid #9eb6d1;
}


/* =========================================================
   SUBMENÚ
   ========================================================= */

.submenu {

    display: none;

    position: absolute;

    top: 100%;
    left: 0;

    min-width: 210px;

    margin: 0;
    padding: 2px;

    list-style: none;

    box-sizing: border-box;

    background: #ffffff;

    border: 1px solid #7f9db9;

    box-shadow:
        2px 2px 4px rgba(0, 0, 0, 0.20);

    z-index: 2000;
}


/* MOSTRAR SUBMENÚ */

.menu-item:hover > .submenu {

    display: block;
}


/* =========================================================
   OPCIONES DEL SUBMENÚ
   ========================================================= */

.submenu li {

    margin: 0;
    padding: 0;
}


.submenu li a {

    display: block;

    box-sizing: border-box;

    padding: 4px 8px;

    color: #000;

    text-decoration: none;

    white-space: nowrap;

    font-size: 11px;
}


/* HOVER SUBMENÚ */

.submenu li a:hover {

    background: #316ac5;

    color: #ffffff;
}


/* =========================================================
   ÁREA PRINCIPAL
   ========================================================= */

.area-principal {

    position: relative;

    width: 100%;

    height: calc(
        100% - 37px
    );

    overflow: hidden;

    background: #ffffff;
}


/* =========================================================
   IMAGEN DE ENTRADA
   ========================================================= */

.imagen-entrada {

    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;

    object-position: center center;
}

/* ==========================================================
   | BOTÓN SALIR DEL LAYOUT
   ========================================================== */
.btn-salir-layout {
    background: none;
    border: none;
    color: #1e395b;
    font-family: inherit;
    font-size: inherit;
    cursor: pointer;
    padding: 0;
    margin: 0;
    text-decoration: none;
}

.btn-salir-layout:hover {
    text-decoration: underline;
}