/* Mobile css */
@media all and (max-width: 960px) { 
    .sidebar {display: none!important;}
    
    .sidebar.close ~ .home{
        left: 0px;
        height: 100vh;
        width: 100%;
    }
    .home {
        padding: 0px;
    }
    
    /* Theming */
    @import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;700&display=swap"); /* import font */
    
    /* variables*/
    :root{
        --white: #f9f9f9;
        --black: #393939;
        --gray: #85888C;
    } 
    
    /* Reset */
    *{
        margin: 0;
        padding: 0;
        box-sizing: border-box;
    }
    body{
        background-color: var(--white);
        font-family: "Poppins", sans-serif;
    }
    a{
        text-decoration: none;
    }
    ul{
        list-style: none;
    }
    .menuoffset{
        padding-top:60px;
    }
    .headermobile{
        z-index: 100;
        background-color: var(--black);
        box-shadow: 1px 1px 5px 0px var(--gray);
        position: sticky;
        top: 0;
        width: 100%;
    }
    /* Logo */
    .logo{
        display: inline-block;
        color: var(--white);
        font-size: 60px;
        margin-left: 10px;
    }
    
    /* Nav menu */
    .nav{
        width: 100%;
        height: 100%;
        position: relative;
        background-color: var(--black);
        overflow: hidden;
    
    }
    .menu a{
        display: block;
        padding: 15px;
        color: var(--white);
    }
    .menu a:hover{
        background-color: var(--gray);
    }
    .nav{
        max-height: 0;
        transition: max-height .1s ease-out;
    }
    
    /* Menu Icon */
    .hamb{
        cursor: pointer;
        float: right;
        padding: 22px 20px;
    }/* Style label tag */
    
    .hamb-line {
        background: var(--white);
        display: block;
        height: 2px;
        position: relative;
        width: 24px;
    
    } /* Style span tag */
    
    .hamb-line::before,
    .hamb-line::after{
        background: var(--white);
        content: '';
        display: block;
        height: 100%;
        position: absolute;
        transition: all .2s ease-out;
        width: 100%;
    }
    .hamb-line::before{
        top: 5px;
    }
    .hamb-line::after{
        top: -5px;
    }
    
    .side-menu {
        display: none;
    } /* Hide checkbox */
    
    /* Toggle menu icon */
    .side-menu:checked ~ nav{
        max-height: 100%;
    }
    .side-menu:checked ~ .hamb .hamb-line {
        background: transparent;
    }
    .side-menu:checked ~ .hamb .hamb-line::before {
        transform: rotate(-45deg);
        top:0;
    }
    .side-menu:checked ~ .hamb .hamb-line::after {
        transform: rotate(45deg);
        top:0;
    }
    
    body:has(.side-menu:checked) {
    overflow: hidden;
    }

    
/* Responsiveness */
@media (min-width: 768px) {

  .nav{
        max-height: none;
        top: 0;
        position: relative;
        float: right;
        width: fit-content;
        background-color: transparent;
    }
    .menu li{
        float: left;
    }
    .menu a:hover{
        background-color: transparent;
        color: var(--gray);
    }

    .hamb{
        display: none;
    }
}
    
    /* Custom */ 
    /* Peiltabel */
    .peil_form input {
        font-family: 'Open Sans';
        font-weight: 400;	
        height: 46px;
        width: 100%;
        border: var(--border-color);
        border-radius: var(--border-radius);
        padding-left: 10px;
        font-size: 16px;
    }
    /* Peiltabel end */
    
    /* Terminal registratie */
    .mobile_register_form input {
        font-family: 'Open Sans';
        font-weight: 400;	
        height: 46px;
        width: 100%;
        border: var(--border-color);
        border-radius: var(--border-radius);
        padding-left: 10px;
        font-size: 16px;
    }

    .defaultselect{
        font-family: 'Open Sans';
        font-weight: 400;	
        height: 46px;
        width: 100%;
        border: var(--border-color);
        border-radius: var(--border-radius);
        font-size: 16px;
    }
    
    #dvmap{
        z-index: 1;
        border: 1px solid var(--color1); 
        width: 100%; 
        height: 100%; 
    }
    
    .trm_textarea{
        font-family: 'Open Sans';
        font-weight: 400;	
        width: 100%;
        height: 92px;
        border: var(--border-color);
        border-radius: var(--border-radius);
        padding: 10px;
        font-size: 16px;
    }
    /* Terminal registratie end */
    

    /* Details pagina */    
    .editicon {display: none!important;}
    
    .tankbox {
        flex: 1 2 auto;
        -webkit-box-shadow: 0px 0px 6px 0px rgba(57,57,57,0.75);
        -moz-box-shadow: 0px 0px 6px 0px rgba(57,57,57,0.75);
        box-shadow: 0px 0px 6px 0px rgba(57,57,57,0.75);
        min-height: 28vh;
        padding: 12px;
    }
    
    .tankinfobox {
        flex: 1 2 auto;
        -webkit-box-shadow: 0px 0px 6px 0px rgba(57,57,57,0.75);
        -moz-box-shadow: 0px 0px 6px 0px rgba(57,57,57,0.75);
        box-shadow: 0px 0px 6px 0px rgba(57,57,57,0.75);
        min-height: 28vh;
        padding: 12px;
    }
    
    .defaultbox {
        flex: 1 2 auto;
        -webkit-box-shadow: 0px 0px 6px 0px rgba(57,57,57,0.75);
        -moz-box-shadow: 0px 0px 6px 0px rgba(57,57,57,0.75);
        box-shadow: 0px 0px 6px 0px rgba(57,57,57,0.75);
        min-height: 28vh;
        min-width: 200px;
        /*max-width: 400px;*/
        padding: 12px;
    }
    
    .defaultbox-small {
        flex: 1 2 auto;
        -webkit-box-shadow: 0px 0px 6px 0px rgba(57,57,57,0.75);
        -moz-box-shadow: 0px 0px 6px 0px rgba(57,57,57,0.75);
        box-shadow: 0px 0px 6px 0px rgba(57,57,57,0.75);
        min-height: 28vh;
        min-width: 200px;
        /*max-width: 400px;*/
        padding: 12px;
    }
    
    .remarksbox {
        flex: 1 2 auto;
        -webkit-box-shadow: 0px 0px 6px 0px rgba(57,57,57,0.75);
        -moz-box-shadow: 0px 0px 6px 0px rgba(57,57,57,0.75);
        box-shadow: 0px 0px 6px 0px rgba(57,57,57,0.75);
        min-height: 28vh;
        min-width: 200px;
        /*max-width: 400px;*/
        padding: 12px;
    }
    
    .grafiekbox {
        flex: 1 2 auto;
        -webkit-box-shadow: 0px 0px 6px 0px rgba(57,57,57,0.75);
        -moz-box-shadow: 0px 0px 6px 0px rgba(57,57,57,0.75);
        box-shadow: 0px 0px 6px 0px rgba(57,57,57,0.75);
    
        /*height: 554px;*/
        padding: 12px;
    }
    
    .oproutebox {
        flex: 1 2 auto;
        -webkit-box-shadow: 0px 0px 6px 0px rgba(57,57,57,0.75);
        -moz-box-shadow: 0px 0px 6px 0px rgba(57,57,57,0.75);
        box-shadow: 0px 0px 6px 0px rgba(57,57,57,0.75);
        /*height: 554px;*/
        min-height: 60vh;
        padding: 12px;
    }

    .oprouteboxfs {
        flex: 1 1 auto;
        -webkit-box-shadow: 0px 0px 6px 0px rgba(57,57,57,0.75);
        -moz-box-shadow: 0px 0px 6px 0px rgba(57,57,57,0.75);
        box-shadow: 0px 0px 6px 0px rgba(57,57,57,0.75);
        width: 100%;
        height: 93vh;
        padding: 6px;
    }
    
    .mapoffset{
        float: left; 
        margin-top: 6px; 
        width: 100%; 
        height: 330px;
    }
    
    
    .mapoffsetfs{
        display: inline-block;
        margin-top: 6px;
        width: 100%; 
        height: 88vh;
    }
    
    .distancedatafs{
        display: inline-block;
        margin-top: 6px;
        height: 75%; 
    }
    
    .distancedata tbody{
        display: inline-block;
        width: 100%;
        /*height:100%;*/
        height: 130px;
        overflow: auto;
    }
    
    .distancedata thead, .distancedata tbody tr, .distancedata tbody th {
        display: table;
        width: 100%;
        table-layout: fixed;/* even columns width , fix width of table too*/
        
    }
    
    .distancedatafs tbody{
        display: block;
        width: 100%;
        height: 100%;
        max-height: 84vh;
        overflow: auto;
    }
    
    .oprouteblok{
        width: 100%; 
        display: flex;
        flex-wrap: wrap;
        
    } 
    .mapblok{
        width: 100%;
        flex-wrap: wrap;   
    } 
    
    .distancedatablok{
        max-width: 100%;
        flex-wrap: wrap; 
    } 
    
    .oprouteblokfs{
        width: 100%; 
        display: flex;
    }
    
    .mapblokfs{   
        flex: 2 1;
    }
    
    .distancedatablokfs{
        width: 40%;
        padding-left: 4px;
    }
    
    #tankpcttext {
        font-size: 16px;
        font-weight: 600;
        color: #393939;
        position: absolute;
        bottom: 135px;
        width:81%;
        text-align:center; 
    }
    
    
    #txtmax{
        font-size: 14px;
        color: #393939;
        position: absolute;
        bottom:70px;
        right: 6px;
    }
    
    #txtmin {
        font-size: 14px;
        color: #393939;
        position: absolute;
        bottom:50px;
        right: 6px;
    }
    
    .headermobile_detail {
        position:fixed;
        top:0px;
        left:0px;
        z-index: 100;
        height: var(--titlebar-height);
        line-height: 60px;
        width: 100%;
        background-color: var(--color1);
        color: var(--text-color1);
    }
    
    
    .terug-button{
        float:left; 
        z-index: 100;  
        width: 160px;
        height: 42px;
        background-color: var(--color3);
        border: none;
        border-radius: 3px;
        font-size: 18px;
        color: var(--text-color1);
        text-align: center; 
    }
    
    .mlogo{
        z-index: 100;
        float:right;
        border: none;
        font-size: 16px;
        text-align: right;
        padding: 0px 6px;    
    }
    
    .editterminal{
        margin-right: 6px;
        font-size: 15px;
        padding: 2px;
        background-color: var(--body-color);
        color: var(--color1);
        border-radius: 3px;
        border: none;
        cursor: pointer;
    }
    
    .editterminal:hover {
        background-color: var(--color3);
        color: var(--text-color1);
    }
    /* Details pagine end */
    
    .default-button{
	border: none;
	border-radius: 3px;
	min-height: 46px;
	width: 120px;
	background-color: var(--color1);
	color: var(--text-color1);
    cursor: pointer;
    }
    select.default-button{ height:46px; }
    
    .default-button:hover{
        background-color: var(--color3);
        color: var(--text-color1);
    }
    
}