#loader {
    border: 16px solid #f3f3f3; 
    border-top: 16px solid #d37a2c; 
    border-radius: 50%;
    width: 120px;
    height: 120px;
    animation: spin 2s linear infinite;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
  }
  
  @keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
  }
  
  #panel{
    display: flex;
    flex-direction: column;
    justify-items: center;
    align-items: center;
    padding-top: 40px;
}

#panel_header{
    display: flex;
    flex-direction: row;

    border: 1px solid #2f2f2f;
    padding:30px;
    width:80%;
    max-width:900px;
    overflow: auto;
}

#panel_header_img img{
    width:130px;
}

#panel_header_text{
    padding-left: 30px;
}

#panel_header_title{
    font-size: 30pt;
}

#panel_header_subtitle{
    font-size: 15pt;
}

#panel_header_status{
    display:flex;
    flex-direction: row;
    padding-top: 10px;
}

#panel_header_status .leftspace{
    margin-left: 30px;
}

#panel_control{
    padding:30px;
}

#control_choice_select{
    line-height: 20px;
    font-size:14pt;
}

.control_button{
    background-color: #2f2f2f;
    color: #fff;
    padding: 8px;
    margin:10px;
}

.inactive{
    background-color: #b2b2b2;
}

#send_command_button:hover{
    cursor:pointer;
}

#panel_charts{
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    width:80%;
    max-width:900px;
    height:400px;
}

.chart_container{
    width:80%;
    max-width:900px;
    height:400px;
}

#panel_alarms{
    width:80%;
    max-width:900px;
}

#panel_alarms_title{
    padding-top: 20px;
    font-size: 15pt;
    padding-bottom: 30px;
}

#panel_production{
    width:80%;
    max-width:900px;
}

#panel_production_title{
    padding-top: 20px;
    font-size: 15pt;
    padding-bottom: 30px;
}

th, td { 
    white-space: nowrap; 
    overflow: hidden; 
}

#panel_alarms{
    width: 80%;
    max-width:900px;
}

#plant_name {
    padding-left: 10px;
	font-size: 18px;
	font-weight: bold;
    border-bottom: 1px solid #2f2f2f;
}

#back_machinery {
    font-family: 'Barlow', sans-serif;
    color: #2f2f2f;
    text-decoration: none;
    display: inline-block; 
    transform: rotateY(180deg);
    margin-left: 5px;
    margin-right: 5px;
}

@media (max-width: 800px) {
    #panel_header{
        flex-direction: column;
        align-items: center;
        padding-left:0;
        padding-right: 0;
    }

    #panel_header_status{
        flex-direction: column;
    }

    #panel_header_status .leftspace{
        margin-left: 0;
    }

    #panel_production, #panel_alarms {
        overflow-x: auto;
    }
}