/* (c) Copyright 2017 -- TEP Energy */

/* Some bootstrap customisation is done in bootstrap (see instruction there),
 * Now we use 12 columns:
 * - 9 for form, split in 12 columns
      - 2: label
      - 9 (2-col x 4-times + 1-col) columns (some columns could have twin column)
      - 1: comment buttons and status.
   - 3: help
 */

/* Taken from http://getbootstrap.com/examples/sticky-footer-navbar/
   A fix navbar on top, and a footer on bottom (page or view)
 */
*,
*::before,
*::after {
    box-sizing: border-box;
}
:root {
    --ff-primary: 'Source Sans Pro', sans-serif;
    --ff-secondary: 'Source Code Pro', monospace;

    --fw-reg: 300;
    --fw-bold: 900;

    --clr-light: white;
    --clr-dark: #303030;
    --clr-green: #0b4201;
    --clr-green_light: #89c23d;
    --clr-green_light2: #3c7224;
    --clr-grey: #f9f9f9;
    --clr-grey_footer: #f5f5f5;

    --fs-h1: 2.5rem;
    --fs-h2: 2rem;
    --fs-h3: 1.25rem;
    --fs-body: 15px;

    --bs: 0.25em 0.25em 0.75em rgba(0, 0, 0, .25),
        0.125em 0.125em 0.25em rgba(0, 0, 0, .15);

}


html {
    position: relative;
    min-height: 100%;
    scroll-behavior: smooth;
    margin: 0%;
}
/* Margin bottom by footer height */
body {
    margin-top: 40px;
}

.footer {
    position: absolute;
    bottom: -40px;
    width: 100%;
    /* Set the fixed height of the footer here */
    height: 40px;
    background-color: var(--clr-grey_footer);
    /* bottom: calc(100% - 50px); */
}


.panel {
    margin-top: 5em;
}

select[disabled],
select[disabled]>option {
    color: LightGrey;
}


/* # FIXME: ### DEPLOY ### CHANGE-ME
 * Important for screen shots, but for deploy we should remove the body padding on print)
 */
@media print {
    .navbar {
        display: block;
        border-width: 0 !important;
    }

    .navbar-toggle {
        display: none;
    }
}

/* Custom, partly taken from http://getbootstrap.com/examples/sticky-footer-navbar/sticky-footer-navbar.css
 */

body>.container-fluid {
    padding: 60px 35px 0 25px;
}

.container-fluid .text-muted {
    margin: 20px 0 0 0;
}

.footer>.nav_imprint{
    padding-right: 15px;
    padding-left: 15px;
    list-style-type: none;
}

.esa2_nav_imprint{
    flex:2;

}

.esa2_nav_imprint>.nav_imprint{
    padding-right: 15px;
    padding-left: 15px;
    list-style-type: none;
}

ul.nav_imprint {
    padding-left: 0px;
    /* text-align: center; */

}

ul.nav_imprint > li {
    display: inline-block;
    padding: 10px 20px;
    font-size: 1.3rem;
    text-align: justify;
    color: #5d5757;

}


.nav_imprint>li>a{
    color:#5d5757;

}

.nav_imprint>li>a:hover,
.nav_imprint>li>a:focus {
    color: var(--clr-green_light2);
    text-decoration: none;

}

code {
    font-size: 80%;
}


/* customization */

.navbar {
    padding-right: 15px;
}

label {
    font-weight: 400;
}

label.important {
    font-weight: 700;
}


@media (min-width: 768px) {
    .sidebar {
        position: fixed;
        top: 51px;
        bottom: 40px;
        left: 0;
        z-index: 1000;
        display: block;
        padding: 20px;
        overflow-x: hidden;
        overflow-y: auto;
        /* Scrollable contents if viewport is shorter than content. */
        background-color: #149EE6;
        border-right: 1px solid #eee;
    }
}

.nav-sidebar {
    margin-right: -21px;
    /* 20px padding + 1px border */
    margin-bottom: 20px;
    margin-left: -20px;
}

.nav-sidebar>li>a {
    padding-right: 20px;
    padding-left: 20px;
    color: var(--clr-light);
}

.nav-sidebar>li>a:hover,
.nav-sidebar>li>a:focus {
    padding-right: 20px;
    padding-left: 20px;
    color: var(--clr-light);
    background-color: #146EE6;
}

.button-home {
    background-color: #149EE6;
    border: none;
    color: white;
    padding: 10px 24px;
    /*width:320px;
    height:320px;*/
    /*background-clip: content-box;*/
}

.button-home:hover {
    background-color: #149EE6;
    /* Green */
    color: black;
}

.navbar-brand img {
    width: 100px;
    background: var(--clr-green);
}


.navbar-brand {
    padding: 0;
    background: var(--clr-green);
    /* color: white; */
    padding-right: 20px;
}


.navbar {
    background: var(--clr-green);
    color: white;
    transition: all ease 0.5s;
}

.navbar-default .navbar-brand {

    background: var(--clr-green);
    color: var(--clr-green_light);
}

.navbar-default .navbar-nav>li>a {
    color: white;
    /*Change active text color here*/
}



.navbar-default .navbar-nav>li>a:hover,
.navbar-default .navbar-nav>li>a:focus {
    background-color: white;
    color: var(--clr-green_light2);

}


.form-group select {
    -webkit-appearance: none;
    /* removes the gloss */
    border: 1px solid #cccccc;
    -webkit-border-radius: 5px;
    -moz-border-radius: 5px;
    border-radius: 5px;
}


/* Additions for ReflexTool */

form {
    margin-top: 50px;
}


textarea {
    border: 1px solid #cccccc;
    padding: 10px;
    margin-bottom: 10px;
    -webkit-border-radius: 5px;
    -moz-border-radius: 5px;
    border-radius: 5px;
}

textarea:disabled {
    background-color: #eeeeee;
}

table.update_in_progress {
    color: gray;
}

p.hidden-p {
    opacity: 0;
}

/* Newly added customization- By chinonso */
/* login page */
.login__header {
    font-family: var(--ff-primary);
    font-size: var(--fs-h2);
    font-weight: var(--fw-bold);
    margin-bottom: 1em;
    /* text-transform: uppercase; */
    letter-spacing: 1px;
}

/* login form labels */
.container__form--labels {
    font-family: var(--ff-primary);
    font-weight: var(--fw-reg);
    font-size: 20px;
    letter-spacing: 1px;
}

/* login form tags */
.form__tag {
    background: var(--clr-grey);
    height: 45px;
    font-family: var(--ff-primary);
    font-weight: var(--fw-bold);
    font-size: var(--fs-body);
}

/* login botton */ 
/* tree search expand and collapse button */
.login--btn {
    display: inline-block;
    background: var(--clr-green_light2);
    color: var(--clr-light);
    font-size: var(--fs-body);
    font-weight: var(--fw-bold);
    margin-top: 1em;
    padding: .7rem;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    letter-spacing: .5px;
    transition: transform 200ms ease-in-out;
    /* outline: 2px solid var(--clr-green_light2);
    outline-offset: 3px; */
}


.login--btn:hover,
.login--btn:focus{
    background: var(--clr-light);
    outline: 3px solid var(--clr-green);
    outline-offset: 3px;
}



    /* 1.11.2022 */
.logo_container{
    /* border: 5px solid #ffffff; */
    display: flex;
    align-items: center;
    justify-content: space-between;
    /* width: 100%; */
    margin: 0 auto;
}

.logo_container > div {
padding: 7px;
color: #ffffff; 
}


.logo_container > div:nth-child(1) {
background-color: #ffffff;
display: flex;
align-items: center;
justify-content: left;

}

.logo_container > div:nth-child(2) {
background-color: #ffffff;
display: flex;
align-items: center;
justify-content:right;

}

.esa_logo_container{
    flex:1;

}

.reflex_logo_container{
    flex: 2; 
}

.esa_link{
    background-color: #ffffff;
    display: flex;
    width: 80%;

}

.esalogo{
    background-color: #ffffff;
    
    width:100%;
    padding: 1rem;
}

.reflexlogo {
    background-color: #ffffff;
    width: 70%;

}


/* ############################################################## */

/* reflex tree body */
.body__layout {
    display: block;
    margin: 0 auto;
    width: 100%;
}

/* Small screen view */
.body__layout--header {
    background: #f1feee;
    text-align: center;
    margin: 0;
    padding: .3rem;

}

.welcome {
    font-size: 1.5rem;
    letter-spacing: 1px;
}

.search-bar {
    display: inline-block;
    background: var(--clr-light);
    margin-top: 1rem;
    width: 100%;

}

.search-bar__container {
    display: flex;
    width: 80%;
    max-width: 500px;
    min-width: 350px;
    margin: 0 auto;
    background: var(--clr-light);
    /* padding: 1rem; */
    text-align: center;

}

.search-bar__input {
    display: inline-block;
    position: relative;
    background: var(--clr-light);
    font-size: 1.5rem;
    width: 80%;
    margin: 0 auto;
    padding: 1rem;
    box-sizing: border-box;
    transition: .5s;
    outline: 1.5px solid var(--clr-green_light2);
    border: none;
    letter-spacing: 1px;
    /* border-radius: 25px 0 0 25px; */
}


.search-bar__submit {
    display: inline-block;
    position: relative;
    background: var(--clr-green_light2);
    color: var(--clr-light);
    width: 30%;
    margin: 0 auto;
    position: relative;
    border: none;
    outline: 0;
    /* border-radius: 0 25px 25px 0; */
}

.fa-search {
    font-size: 2.5rem;
    font-weight: var(--fw-reg);
}

.search-bar__input:hover,
.search-bar__input:focus {
    background: var(--clr-grey_footer);
    outline: 1.5px solid var(--clr-green_light2);

}

.collapse_buttons {
    background: var(--clr-light);
    margin-top: 1rem;
    padding: 1rem;
    text-align: center;
}


.collapse-btn {
    border: 0;
    display: inline-block;
    background-color: var(--clr-green_light2);
    color: var(--clr-light);
    position: relative;
    margin: 1rem;
    padding: 1rem 1rem;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: .5px;
    /* font-size: 14px; */
    font-weight: var(--fw-bold);
    transition: transform 200ms ease-in-out;


}

.collapse-btn:focus,
.collapse-btn:hover {
    background: white;
    color: var(--clr-dark);
    outline: 2px solid var(--clr-green_light2);
    outline-offset: 3px;

}

.body__layout--tree {
    margin-top: 0.5rem;
    background: white;

}

@media (min-width: 1000px){
    .body__layout{
        background: white;
        display: grid;
        overflow: hidden;
        width: auto;
        margin: 0 auto;
        
        /* max-width: 600px; */
        grid-template-areas: 
            "head head head"
            "search svg svg"
            "buttons svg svg"
            ". svg svg";
        grid-template-columns: min-content max-content;
    }

    .body__layout--header {
        background: #f1feee;
        grid-area: head;
        width: 100%;
   
    }

    /* 1.11.2022 */
    .logo_container{
        /* border: 5px solid #ffffff; */
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 70%;
        margin: 0 auto;
    }

    .logo_container > div {
    padding: 7px;
    color: #ffffff; 
    }


    .logo_container > div:nth-child(1) {
    background-color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: left;

    }

    .logo_container > div:nth-child(2) {
    background-color: #ffffff;
    display: flex;
    align-items: center;
    justify-content:right;

    }

    .esa_logo_container{
        flex:1;

    }

    .reflex_logo_container{
        flex: 2; 
    }

    .esa_link{
        background-color: #ffffff;
        display: flex;
        width: 55%;

    }

    .esalogo{
        background-color: #ffffff;
        
        width:100%;
        padding: 1rem;
    }

    .reflexlogo {
        background-color: #ffffff;
        width: 50%;

    }

    .welcome {
        font-size: 2rem;
        letter-spacing: 1px;
    }

    .search-bar {
        background: var(--clr-light);
        grid-area: search;
        align-self: start;
        position: relative;
        z-index: 1;
        margin-top: 10rem;
        width: 50%;
        margin-left: 30rem;
    }

    .collapse_buttons {
        background: var(--clr-light);
        grid-area: buttons;
        position: relative;
        z-index: 2;
        width: 50%;
        margin-left: 30rem;
        

    }

    .body__layout--tree{
        background: var(--clr-light);
        grid-area: svg;
        width: 70%;
        margin: 0 auto;
        grid-column: -1/1;
        position: relative;
    }

    /* nav bar */
    .navbar-brand {
        font-weight: var(--fw-bold);
    }

    .navbar-default .navbar-nav {
        font-size: 14px;
        /* font-family: var(--ff-primary); */
        font-weight: 600;

    }

}