* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    overflow-y: hidden;
}

html body{
    display: flex;
    width: 100%;
    height: 100vh;
    background-color: rgb(240, 240, 240);   
    font-family: 'Helvetica';
    margin: 0 a;
}
  
#sidebar.sidebar {
    display: none;
  }
  
#sidebar.sidebar + #content {
    width: 100%;
  }
.active.sidebar{
    transform: translateX(200px);
}

#sidebar {
    display: flex;
    flex-direction: column;
    width: 200px;
    height: 150%;
    padding:10px;
    font-size: 1.2em;
    background-color: #212529;
    overflow:auto;
    float:left;
    transition: width .35s; 
    transform: translateX(-20px);
}

#sidebar h3 {
    padding:5px;
    font-size: 1.1em;
    font-weight: normal;
    color: #dad4bd; 
}

.brand-link {
    font-size: 1.25rem;
    padding: 5px;
    margin: 0px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.brand-link .create { 
    float: left;
    margin-left: 0.8rem;
    margin-right: 0.5rem;
    margin-top: -3px;
    max-height: 33px;
    width: auto;
  } 

#sidebar a {
    border-bottom: 1px solid #4b545c;
    text-decoration: none;
}

#sidebar button {
    background-color: inherit;
    color: #aeb6bd;
    border: none;
    outline: none;
    text-align: left;
}

#sidebar button:hover{
    background-color:#4b545c;
    border-radius: 5px;
    color: white;
    margin-left: 0px;
}

#sidebar .home-button{
    padding:20px;
    font-weight: bold;
    background-color: inherit;
    color: #aeb6bd;
    text-align: left;
    font-size: 0.8em;
    margin-top: 15px;
    margin-left: 15px;
}

#sidebar .tablinks{
    padding:20px;
    margin-left: 15px;
    font-size: 0.8em;
}

#sidebar i {
     margin-right: 10px;  
     font-size: 1.5em;
}

.content{
    overflow: hidden;
    overflow-y: auto;
    float: left;
    display:flex;
    flex-direction: column;
    width: 87%;
    transition: width .35s;
}

.content .top{
    border-bottom: 1px solid gray;
}

.header {
    display: flex;
    justify-content: space-between;
    padding:10px 30px;
    background-color: white;
    border-bottom: 1px solid #dee2e6;  
}

.fa-bars {
    color: rgb(90, 90, 90);  
    cursor: pointer;
}

.fa-th-large {
    color: rgb(90, 90, 90); 
}


.header2 {
    display: flex;
    justify-content: space-between;
    padding: 10px 20px;
    min-height: 60px;
}

.leftside-h2 a{
    color:black;
    font-size: 1.8em;
    text-decoration: none;

}

.rightside-h2{
    display: flex;
    column-gap: 10px;
    margin-right: 20px;
}

.rightside-h2 a{
    font-size: 0.95em;
    color: gray;
    text-decoration: none;
}

.rightside-h2 a:hover{
    color: rgb(28, 28, 255);
}

.row{
    display: flex;
    flex-direction: row;
    column-gap: 0px;
}

.col-6{
    width: 50%;
    padding: 10px;
}

#maintable{
    width: 100%;
    border: 1px solid #ddd;
    border-collapse: collapse;
    background-color: white;
}

tr{
    padding: 5px;
    text-align: left;
    height: 0.9cm;
    border:1px solid #ddd; 
}

canvas#salesChart{
    width: 100%;
    background-color:white;
}

.delete_button {
    background-color: rgb(209, 14, 14);
    padding: 2px 6px;
    margin-top: 2px;
    margin-bottom: 2px;
    border: none;
    border-radius: 5px;
    font-weight: bold;
    color: white;
    cursor: pointer;
  }

.iframe-container{
    width: 100%;
}

.iframe-container iframe{
    width: 100%;
}


.footer {
    display: flex;
    justify-content: space-between;
    position: fixed;
    left: 13%;
    bottom: 0px;
    width: 87%;
    background-color: white;
    padding: 20px;
    font-size: 1.1em;
    text-decoration: none;
    border-top: 1px solid #dee2e6;  
}

#left {
    color: gray;
    text-decoration: none;
}

#right{
    color: gray;
    text-decoration: none;
}

/**
 * Media
 */

@media only screen and (max-width: 768px) {
    .sidebar {
        display: none;
    }
    .header{
        width: 100%;
        padding: 15px;;
    }
    .header2{
        flex-direction: column;
        padding: 5px 10px;
        min-height: unset;
    }
    .rightside-h2{
        margin-top: 5px;
        margin-left: 15px;
    }
    .row{
        flex-direction: column;
    }
    .col-6{
        width: 100%;
    }
    tr{
        height: 0.8cm;
        font-size: smaller;
    }
    .chart{
        padding: 0 15px;
    }
    canvas#salesChart{
        margin-right: 15px;
    }
    .iframe-container{
        width: 100%;
        padding: 0 10px;
    }
 
    .footer{
        left: 0%;
        width: 100%;
        padding: 10px;
        font-size: 0.8em;
    } 
    .sidebar {        
        width: 250px;
    }
    .content {
        margin-left: 0px;
        display: inline-block;
        width: 100%;
    }
}
