/* 
    file:		screen.css
    created:	2020-09-10
    author:     C. Oesterreich
    mail:		info@541grad.de
    company:	jetzt-GmbH & 541grad.de
*/

/* 
   grau:   #B0C0C0
    grün:       #164C4C


    css basics and overview about some tags

    # -> id
    . -> class
    -> tag

    display: flex;  //create flexBox container 
    flex: 1 1 0%;   //create flexBox child 

    distance to the outside
        padding-bottom: 0
        padding-left: 0
        padding-right: 0
        padding-top: 0

*/


html {
    margin: 0em;
    padding: 0em;
    width: 100%;
    height: 100%;
}


body {
    margin: 0em;
    padding: 0em;
    width: 100%;
    height: 100%;
    background-color: white;
    
    color: black;
    font-weight: normal;
    font-size: medium;
    /* font-family: "Times New Roman", Times, serif; */
    font-family: Arial, Helvetica, sans-serif;

    display: flex;
    flex-direction: column;

    /* avoid callouts (apple) (hin displayed while pressing a button)*/
    -webkit-touch-callout: none;

    /* border: black thin solid; */
}


/* basic side elements ***************************************************************************/
.printLogo {
    display: none;
}

.top {
    padding: 0.5em;
    display: flex;
    flex-direction: row;
    background-color: #164C4C;
    min-height: min-content; /* needed for Safari */
    /* color: white; */
    font-weight: bold;
    font-size: x-large;
    
    /* border: red thin solid; */
}

    .buttonMenu {
        flex-grow: 1;
        flex-shrink: 1;
        flex-basis: auto;

        cursor: pointer;
        
        /* border: blue thin solid;  */
    }

    .title {
        flex-grow: 5;
        flex-shrink: 1;
        flex-basis: auto;

        
        /* border: red thin solid; */
    }

.content {
    flex: 100%;
    padding-bottom: 1rem;
    padding-left: 1rem;
    padding-right: 1rem;
    padding-top: 1rem;

    color: black;
    font-weight: normal;
    font-size: medium;

    max-width: 70rem;

    /* border: orange thin solid; */
}

.content a:link, a:visited, a:hover, a:active {
    color: black;
}


/* navigation ************************************************************************************/

.sideNav {
    height: 100%;
    width: 0;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1;
    background-color: #164C4C;
    /*scroll bar - removes also the functionality*/
    overflow-x: hidden;

    /* firefox don't display scrollbar */
    scrollbar-width: none;
    
    transition: 0.5s;
    white-space: nowrap;

    /* border-right: black thick solid; */
}

.sideNav a {
    padding-bottom: 0.3em;
    padding-left: 2em;
    padding-right: 0.3em;
    padding-top: 0.3em;
    
    color: black;
    font-weight: normal;
    font-size: medium;
    text-decoration: none;
    
    background-color: white;
    
    display: block;
    cursor: pointer;

    border-bottom: white thick solid;
    border-top: white thick solid;
}

.sideNav a:hover {
    color: black;
    background-color: #B0C0C0;    
    border-bottom: white thick solid;
    border-top: white thick solid;
}

#logo {
    padding: 1em;
    display: block;
    background-color: #164C4C;

    color: white;
    font-weight: bold;
    font-size: x-large;

    border: none;
}

#idTitleTwo {
    color: white;
    font-weight: normal;
    font-size: large;
}

#logo:hover {
    background-color: #164C4C;    
    border: none;
}

.sideNav img {
    height: 2.5em;

}

.sideNav p {
    padding-bottom: 0.5em;
    padding-left: 1em;
    padding-right: 0.5em;
    padding-top: 0.5em;
    
    /* color: white; */
    font-weight: normal;
    font-size: small;

}

    .sideNav p a{
        padding:0;
        
        /* color: white; */
        font-weight: normal;
        font-size: small;
        text-decoration: none;
        
        background-color: #164C4C;
        
        display: block;
        cursor: pointer;

        border: none;
        outline: none;
        -webkit-tap-highlight-color: transparent; /* avoid link highlighting */
    }

    .sideNav p a:hover {
        color: black;
        background-color: #164C4C;    
        border: none;
    }


/* basic elements ********************************************************************************/

button {
    width: 100%;
    max-width: 30rem;
    padding-bottom: 0.5em;
    padding-left: 2em;
    padding-right: 0.5em;
    padding-top: 0.5em;
    margin: 0.5em 0;
    box-sizing: border-box;
    background-color: #164C4C;
    
    color: white;
    font-weight: normal;
    font-size: large;
    
    border: none;
    outline: none;
    cursor: pointer;
}

button:hover, button:focus {
    background-color: #B0C0C0;
    color: black;
}


input, select, textarea {
    width:100%;
    max-width: 30rem;
    padding: 0.5em;
    margin: 0.5em 0em 0.5em 0em;
    box-sizing: border-box;  /*Width and height apply to all parts of the element: content, padding and borders*/
    background-color: lightgray;
    
    /* color: black; */
    font-weight: normal;
    font-size: medium;
    
    border:none;
    border-bottom: 0.1em solid #164C4C;
    outline: none;
    /* cursor: pointer; */
    /* display:block; */

    
    /* Override iOS / Android font color change */
    /* -webkit-text-fill-color: black;  */
    /* Override iOS opacity change affecting text & background color */
    /* -webkit-opacity: 1;  */
    /* opacity: 1; */
}

input:disabled, select:disabled {
    border-bottom: 0.1em solid #d3d3d3;
    border-bottom: none;
}


select:focus, input:focus {
    border-color: #1a7e94;
}


/* style of the input date fields -> disable the counter and clear button to save space for smaller screens */
input[type="date"]::-webkit-calendar-picker-indicator { 
    padding: 0;
}

input[type=date]::-webkit-inner-spin-button, 
input[type=date]::-webkit-outer-spin-button,
input[type="date"]::-webkit-clear-button {
    -webkit-appearance: none;
    display: none;
}
   

p {
    max-width: 30rem;
}


table {
    /* width:100%; */
    /* max-width: 35rem; */

    color: black;
    font-weight: normal;
    font-size: medium;
    text-align: left;

    /* border: 0.1em solid #164C4C; */
    border-collapse: collapse;
}

td {
    padding: 0.75rem;
    border-bottom: 0.1em solid #164C4C;
}


label {
    color: gray;
    font-weight: normal;
    font-size: small;
    /* border: black thin solid; */
}

/* password input ********************************************************************************/

.pwd {
    position: relative;
    max-width: 30rem;
    /* border: black thin solid; */
}

.pwd button {
    position: absolute;
    z-index: 1;
    top: 0em;
    right: 0em;
    
    width: min-content;
    height: 100%;
    padding: 0;
    margin: 0;
    background-color: transparent;
    color: black;
    text-align: right;
    border: none;
    outline: none;
    -webkit-tap-highlight-color: transparent; /* avoid link highlighting */
}



/* loading ***************************************************************************************/
#idLoading {
    display: none;
}

.loading {
    flex: 100%;
    padding: 1em;

    height: 5em;

    color: black;
    font-weight: normal;
    font-size: medium;

    text-align: center;

    /* border: orange thin solid; */
}

.loading img {
    height: 1em;
    display: block;
    margin-left: auto;
    margin-right: auto;
}




/* other stuff *******************************************************************************************/


.home {
    text-align: center;
}


/* Media Queries *********************************************************************************/

@media all and (min-width: 48rem) {
	
    .sideNav {
        width: 16rem;
    }

    .top {
        display: none;
    }

    .content {
        padding-left: 17rem; /* 16 + 1 (1 was defined in .content) */
    }

    .loading {
        padding-left: 17rem; /* 16 + 1 (1 was defined in .content) */
    }

}