/** CSS needed in all pages for the main layout. */
@font-face {
    font-family: 'ZingScriptRust';
    src: url('../fonts/zingscriptrustsbdemo-base-webfont.woff2') format('woff2'),
         url('../fonts/zingscriptrustsbdemo-base-webfont.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

@font-face {
  font-family: "SolomonSans";
  src: url('../fonts/SolomonSansNormal.otf');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: "SolomonSans";
  src: url('../fonts/SolomonSansItalic.otf');
  font-weight: normal;
  font-style: italic;
}

@font-face {
  font-family: "SolomonSans";
  src: url('../fonts/SolomonSansBlack.otf');
  font-weight: bold;
  font-style: normal;
}

@font-face {
  font-family: "SolomonSans";
  src: url('../fonts/SolomonSansBlack.otf');
  font-weight: bold;
  font-style: italic;
}

:root {
    --orange-yepso: #eba623;
    --blue-yepso: #033f66;
}

body.stop-transitions * {
  transition: none !important;
}

* {
    margin: 0;
    padding: 0;
    font-family: sans-serif;
}

/** Main Layout */
html {
    height: 100%;
}

body {
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: stretch;
}

.header-line {
    flex-grow: 0;
}

.all-content {
    position: relative;
    flex-grow: 1;

    height: 100%;
    display: flex;
    align-items: stretch;
    overflow: hidden;
}

.lateral-menu {
    background-color: #f2f2f2;
    height: 100%;
    width: 300px;
    overflow: auto;

    position: relative;
    left: 0;
    transition: left 0.5s;
}

.main-content > button + .section {
    margin-top: -32px;
}

.main-content.hidden-menu {
    margin-left: -300px;
}

.lateral-menu.hide {
    left: -300px;
}

.main-content {
    flex-grow: 1;
    display:flex;
    align-items: stretch;
    flex-direction: column;
    overflow: auto;

    position: relative;
    margin-left: 0px;
    transition: margin-left 0.5s;
}

.main-content.hidden-menu {
    margin-left: -300px;
}

.main-content button.toggle-menu {
    position: sticky;
    top: 0px;
    left: 0px;
    opacity: 0.7;
    background-color: #f2f2f2;
}

.lateral-menu .side-menu-buttons {
    display: none;
}

@media all and (max-width: 800px) {
    .lateral-menu {
        position: absolute;
        left: -300px;
        height: 100%;
        z-index: 100;
    }
    .lateral-menu.show {
        left: 0px;
    }

    .lateral-menu .side-menu-buttons {
        display: block;
    }

    .main-content.hidden-menu {
        margin-left: 0px;
        transition: margin-left 0s;
    }
}

/* Basic formatting */
a, a:visited {
    color: gray;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

h1, h2, h3, summary {
    font-family: "SolomonSans", sans-serif;
    margin-top: 1.5em;
    margin-bottom: 0.5em;
}

h1 .alt {
    font-family: ZingScriptRust, sans-serif;
    text-transform: uppercase;
    font-weight: normal !important;
    /* font-style: italic; */
}

h2 a, h3 a {
    font-family: "Lora", serif;
    color: inherit;
}

h1 {
    margin-top: 0em;
}

h3, h3 a {
    font-family: "SolomonSans", sans-serif;
    font-size: 22pt;
    font-weight: normal;

    color: var(--blue-yepso);


    margin-top: 2px;
}

h4 {
    font-weight: bold;
    margin-top: 1.5em;
    margin-bottom: 0.5em;
}

ol, ul {
    padding-left: 2em;
}

li {
    margin-top: 0.5em;
    margin-bottom: 0.5em;
}

p {
    margin-bottom: 0.8em;
}

code {
    font-family: monospace;
}

.inner-content {
    margin: auto;
    max-width: 1024px;
    padding-left: 25px;
    padding-right: 25px;
}

.header-line {
    width: 100%;
    background-color: white;
    border-top: 2px solid #eca724;
    border-bottom: 1px solid #033F62;
}

.header-line-content {
    position: relative;
}

.header-line a.logo {
    display: inline-block;
    line-height: 0;
    padding-top: 5px;
    padding-bottom: 5px;
}

.header-line .logo {
    height: 70px;
    width: auto;
}

.header-line ul.social-media {
    position: absolute;
    top: 5px;
    right: 25px;
    text-align: right;
    padding: 0;
    display: flex;
    align-items: center;
}

.social-media li {
    display: inline-block;
    list-style-type: none;
    padding: 0;
    margin: 3px 0 3px 10px;
}

.social-media li:last-child {
    margin-right: 0;
}

.social-media img {
    height: 20px;
    transition: all 0.3s ease-in;
}

.social-media .mail img {
    height: 16px;
}

.social-media img:hover {
    filter: drop-shadow(0 0 4px rgb(46, 51, 97));
    transition: all 0.1s ease-in;
}

div#user-menu {
    display: none;
    position: absolute;
    top: 40px;
    right: 10px;
    z-index: 100;
    background: white;
    border: 3px solid #e0e0e0;
    border-radius: 5px;
}

#user-menu p {
    font-size: 0.7em;
    padding: 5px 10px 0 10px;
}

#user-menu ul {
    padding: 0;

    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 10px 0 10px;
}

#user-menu li {
    margin: 0;
    padding: 10px 0 10px 0;
    display: inline-block;
    list-style-type: none;
    width: 100%;
    text-align: right;
}

#user-menu li:not(:last-child) {
    border-bottom: 1px solid #e0e0e0;
}

#user-menu li a {
    color: #033F62;
}

#languages {
    position: absolute;
    right: 25px;
    bottom: 5px;
    z-index: 10;
}

ul#languages li {
    list-style-type: none;
    display: inline-block;
    font-family: "Lora", serif;
    font-weight: normal;
    color: #2e3361;
    text-transform: uppercase;
    margin: 0;
}

ul#languages a, ul#languages a:visited {
    font-family: "Lora", serif;
    color: #2e3361;
}

ul#languages li.current {
    font-weight: bold;
}

ul#languages li:not(:first-child)::before {
    content: " | ";
    font-weight: normal;
}

ul.social-media li.menu {
    padding-left: 10px;
    cursor: pointer;
}

ul.social-media li.main-menu {
    display: none;
}

ul.social-media li.menu button {
    background-color: transparent;
    border: 0;
    cursor: pointer;
}

ul.social-media li.menu svg {
    width: 22px;
    height: 22px;
    stroke: #2e3361;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    fill: #2e3361;
}

ul.social-media li.user-menu.session-open svg {
    stroke: #eba623;
    fill: #eba623;
}

ul.social-media li.user-menu.session-open button.notifications {
    position: relative;
}

ul.social-media li.user-menu.session-open button.notifications::after {
    content: "●";
    color: red;
    position: absolute;
    left: 15px;
    bottom: 0px;
}

@media (max-height: 500px), (max-width: 900px) {
    .header-line {
        padding-top: 0px;
        padding-bottom: 0px;
    }

    .header-line a.logo {
        padding-top: 5px;
        padding-bottom: 5px;
    }

    .header-line .logo {
        height: 45px;
    }
    .inner-content {
        padding-left: 5px;
        padding-right: 5px;
    }
    .header-line ul.social-media {
        top: 3px;
        right: 5px;
    }
    .social-media img {
        width: 16px;
        height: 16px;
    }
    #languages {
        right: 5px;
        bottom: 3px;
    }
}

/* TOP MENU */
div.menu-line {
    border-bottom: 2px solid #033F62;
}

ul#menu {
    display: flex;
    justify-content: space-evenly;

    width: 100%;
    margin: 0;
    padding-left: 0;
}

ul#menu li {
    list-style-type: none;

    font-weight: normal;
    font-size: 14pt;
    color: #2e3361;
    text-transform: uppercase;
    text-align: center;
    margin: 0;
    position: relative;
    flex-grow: 1;
}

ul#menu li a {
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-sizing: border-box;
}

ul#menu li:hover {
    background-color: #F0F0F0;
}

ul#menu a, ul#menu a:visited {
    color: #2e3361;
    padding: 5px 10px;
}

ul#menu a:hover {
    color: #859aaa;
    text-decoration: none;
    transition: all 0.3s ease-in;
}

ul#menu ul {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    margin: 0;
    padding: 0;
    width: 100%;
    z-index: 100;
}

ul#menu ul li {
    width: 100%;
    box-sizing: border-box;
    background-color: #fcfcfc;
    border-bottom: solid 1px #033F62;
    border-left: solid 1px #f0f0f0;
    border-right: solid 1px #f6f6f6;
    margin: 0;
}

ul#menu ul li:first-child {
    border-top: solid 4px #033F62;
}
ul#menu ul li:last-child {
    border-bottom: solid 2px #033F62;
}

ul#menu li:hover ul {
    display: block;
}

@media (max-height: 500px), (max-width: 500px) {
    ul.social-media li.menu {
        display: block;
    }
    ul#menu {
        display: none;
        position: relative;
        flex-direction: column;
        align-items: stretch;
        padding: 0;
        margin: 0;
        width: auto;
    }
    ul#menu li {
        font-size: 14pt;
        margin-top: 0;
    }

    ul#menu ul {
        position: relative;
        top: 0;
    }

    ul#menu ul li {
        position: relative;
        margin: auto;
        border: none;
    }
    ul#menu ul li:first-child {
        border-top: solid 2px #033F62;
    }
}

.section-content {
    padding-bottom: 15px;
    color: #2e3361;
}

.section-content h1 {
    padding-top: 15px;
    font-weight: bold;
    color: #eba623;
    text-transform: uppercase;
    margin-bottom: 0.5em;
}

.section-content h2 {
    color: #eba623;
    font-weight: normal;
    margin-top: 1em;
    margin-bottom: 0.5em;
}

.section-content h3, .section-content summary {
    color: #2e3361;
    font-weight: bold;
    margin-top: 0.8em;
    margin-bottom: 0.5em;
    font-size: x-large;
}

.section-content h4.important {
    color: #eba623;
}

.section-content p, .section-content li {
    text-align: justify;
}

@media (max-width: 500px) {
    .section-content p, .section-content li {
        text-align: left;
    }
}

div.error-message, div.action-message {
    border: 0;
    padding: 5px;
    margin-bottom: 15px;
    color: white;
    text-align: center;
    font-weight: bold;
}

div.error-message p, div.action-message p {
    text-align: center;
    margin-bottom: 0;
}

div.action-message {
    background-color: #eca724
}

div.error-message {
    background-color: #a71818;
}

div.important-note {
    border: 2px solid #2e3361;
    padding: 15px;
    margin: 10px;
    font-style: italic;
}

div.two-columns {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    padding-top: 30px;
}

div.two-columns > div.column {
    flex-basis: calc(50% - 20px);
}

div.two-columns > div.column h3:first-child {
    text-align: center;
}

@media all and (max-width: 800px) {
    div.two-columns {
        flex-direction: column;
    }
    div.two-columns > div.column {
        flex-basis: auto;
    }
    div.column:not(:first-child) {
        padding-top: 30px;
    }
}

/***** FOOTER *****/
.footer {
    background-color: #eca724;
    color: white;
    text-align: center;
    padding-top: 20px;
    font-size: small;
    margin-top: auto;

    position: relative;
}

.footer .inner-content {
    min-height: 180px;
}

.footer a, .footer a:visited {
    color: white;
}

.footer .contact {
    font-size: x-large;
}

.footer .logo-pel {
    position: absolute;
    left: 0px;
    top: 0px;
    padding: 15px 15px 0 15px;
}

.footer .logo-pel img {
    width: 95%;
    max-width: 250px;
    background: white;
}

@media all and (max-width: 900px) {
    .footer .logo-pel {
        position: relative;
    }
}

.empty-list {
    text-align: center !important;
    background-color: #e7e1d5;
    margin: 30px 0;
    padding: 30px 30px;
}

table {
    border-collapse: collapse;
}

table td, table th {
    border: 1px solid black;
    padding: 2px 5px;
}

/* Images in custom content */
img.banner {
    display: block;
    margin: auto;
    max-width: 100%;
    margin-top: 30px;
    margin-bottom: 30px;
}

img.left-content {
    float: left; max-width: 300px; padding: 0 15px 15px 0;
}

@media all and (max-width: 500px) {
    img.left-content {
        display: block;
        float: none;
        margin: auto;
        max-width: 100%;
        margin-top: 15px;
        margin-bottom: 15px;
    }
}

img.right-content {
    float: right; max-width: 300px; padding: 0 15px 15px 0;
}

@media all and (max-width: 500px) {
    img.right-content {
        display: block;
        float: none;
        margin: auto;
        max-width: 100%;
        margin-top: 15px;
        margin-bottom: 15px;
    }
}

.buttons {
    padding-top: 10px;
    padding-bottom: 10px;
}

.buttons form {
    display: inline-block;
}

.buttons a, .buttons button {
    display: inline-block;
    border: 0;
    border-radius: 0.25rem;
    background: #eca724;
    color: white;
    font-family: -system-ui, sans-serif;
    font-size: 1rem;
    line-height: 1.2;
    white-space: nowrap;
    text-decoration: none;
    padding: 0.25rem 0.5rem;
    margin: 0.25rem;
    margin-left: 0;
    cursor: pointer;
}

.buttons a:hover, .buttons button:hover, .buttons button.pushed{
    background: #c88d1e;
}

.buttons a:focus, .buttons button:focus {
    outline: 0;
    box-shadow: 0 0 0 2px #c88d1e;
}

.buttons a:active, .buttons button:active {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 #c88d1e;
}

td.buttons {
    line-height: 30px;
}

.noselect {
  -webkit-touch-callout: none; /* iOS Safari */
    -webkit-user-select: none; /* Safari */
     -khtml-user-select: none; /* Konqueror HTML */
       -moz-user-select: none; /* Firefox */
        -ms-user-select: none; /* Internet Explorer/Edge */
            user-select: none; /* Non-prefixed version, currently
                                  supported by Chrome and Opera */
}


/* Lateral menu */
.lateral-menu ul {
    box-sizing: border-box;
    width: 90%;
    margin: 10px auto 10px auto;
    padding: 0;
    border: 0;
}

.lateral-menu ul li {
    margin: 0 0 -1px 0;
    background-color: white;
    border: 1px solid #dfdfdf;

    list-style-type: none;
    position: relative;
}

.lateral-menu ul li a, .lateral-menu ul li a:visited {
    box-sizing: border-box;
    text-decoration: none;
    color: #495057;
    display: block;
    padding: 10px;
    width: 100%;
}

.lateral-menu ul li a:hover {
    background-color: #f8f9fa;
}

.lateral-menu ul li.selected a {
    background-color: #eba623;
    color: white;
}

.lateral-menu ul li a.deeperMenuOption {
    padding-left: 20px;
}


button.toggle-menu svg {
    width: 22px;
    height: 22px;
    stroke: #2e3361;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    fill: #2e3361;
}

button.toggle-menu {
    width:32px;
    height: 32px;
    background-color: #f2f2f2;
    border: 0;
    cursor: pointer;
}

.notice {
    background-color: #c9ebbf;
    padding: 2px 2px;
    margin: 5px 0;
    box-shadow: 3px 3px 5px lightgray;
    position: relative;
}

.notice.important {
    background-color: #ec8876;
}

.notice > svg {
    width: 40px;
    height: 40px;
    float: left;
    padding: 10px;
    fill: none;
    stroke-width: 2px;
    stroke: white;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.notice.important svg.normal {
    display: none;
}

.notice:not(.important) svg.important {
    display: none;
}

.notice button {
    border: 0;
    cursor: pointer;
    background: transparent;
    position: absolute;
    right: 5px;
    top: 5px;
}

.notice h2 {
    color: #2e3361;
    font-weight: bold;
    font-size: 14pt;
    text-align: center;
    margin: 5px 10px;
    font-family: sans-serif;
}

.notice p, .warn p {
    padding-top: 5px;
    text-align: center;
}

.notice b {
    padding-left: 4px;
}

.warn {
    margin-top: 6px;
    padding: 5px 5px;
    background-color: #ecd8b3;
    box-shadow: 3px 3px 5px lightgray;
}

.breadcrum {
    position: absolute;
    left: 30px;
    top: 8px;
    color: #eba623;
    font-size: 10pt;
}

.breadcrum a {
    color: #eba623;
    font-weight: bold;
}

.breadcrum li {
    display: inline;
}

.breadcrum li:not(:last-child)::after {
    content: " » ";
    color: black;
}

#directAccess {
    position: absolute;
    right: 20px;
}

#directAccess .buttons {
    margin: 0;
    padding: 0;
}

#directAccess .buttons button {
    height: 28px;
}

#directAccess .buttons * {
    vertical-align: middle;
}

.cookie-warning {
    display: fixed;
    bottom: 0; left: 0; right: 0;
    padding: 20px;
    border-top: 2px solid #1f2542;
    background-color: #eff8ff;
}

.cookie-warning p {
    max-width: 800px;
    margin: auto;
    margin-top: 10px;
}
.cookie-warning p.buttons {
    text-align: center;
}

.hidden {
    display: none;
}

pre {
    font-family: monospace;
    background-color: #eee;
    padding: 5px;
}

.preface-section {
    background-color: #033f62;
    margin-bottom: 30px;
}

.preface-section .inner-content {
    color: white;
    padding-top: 10px;
    padding-bottom: 15px;
    min-height: 150px;
}

.preface-section .inner-content h4 {
    color: var(--orange-yepso);
    font-family: 'SolomonSans', sans-serif;
    text-align: center;
    margin-top: 0;
    font-weight: bold;
    font-size: 16pt;
    margin-bottom: 20px;
}

.environment-line {
    background-color: DarkRed;
    color: white;
    text-align: center;
    padding: 10px 0;
    font-weight: bold;
    font-size: 12pt;
}

.footer .version {
    position: absolute;
    bottom: 2px;
    right: 10px;
    font-size: 8px;
}

.select2-selection.select2-selection--multiple {
    max-height: 300px;
    overflow: scroll;
}
