/* COMMON */

.blocked_tr {
    color: lightgray;
}

.blocked_tr input {
    color: lightgray;
    border: none;
}


/* DASHBOARD */



#root_reports_list_container table{
    width: 100%;
    max-width:100%;
    margin-top: 25px;
}

#root_download_csv_td{
    text-align: center;
    cursor: pointer;
    background-color: #006699;
    color: white;
}

#root_download_csv_td:hover{
    background-color: #2086b9;
}

#root_reports_table_row form{
    display: inline;
}




#root_sum_td {
    text-align: center;
    background-color: #f0f0f0;
    color: black;
}

#root_table_toolbar {
    border-collapse: separate;
    border-spacing: 5px;
    border: solid black 1px;
}




/* AFFIRMATIONS */

#root_affirmation_list_headers {
    display: inline-flex;
    margin-top: 30px;
    width: 100%;
}

#root_affirmation_list_header_left {
    width: 49%;
    margin: 0 1% 0 0;
    color: rgba(10,100,10,0.5);
    font-size: 24px;
}

#root_affirmation_list_header_right {
    width: 49%;
    margin: 0 0 0 1%;
    color: rgba(125,0,0,0.5);
    font-size: 24px;
}

#root_affirmation_list_container {
    margin-top: 20px;
}

#closed_affirmation_container {
    display: inline-flex;
    margin-right: 1%;
    width: 49%;
}

#opened_affirmation_container {
    display: inline-flex;
    margin-left: 1%;
    width: 49%;
}


#closed_affirmation_container table{
    width: 100%;
    /*border: solid 1px rgba(10,100,10,0.5);*/
}

#opened_affirmation_container table{
    width: 100%;
    /*border: solid 1px rgba(125,0,0,0.5);*/
}

#closed_affirmation_container tr {
color: rgba(10,100,10,0.5);
}

#opened_affirmation_container tr {
color: rgba(125,0,0,0.5);
}

/*#closed_affirmation_container th {*/
     /*background: rgba(10,100,10,0.5);*/
 /*}*/

/*#opened_affirmation_container th {*/
    /*background: rgba(125,0,0,0.5);*/
/*}*/

/* USERS */

#root_users_list_container {
    width:100%;
    text-align: center;
    overflow-y: auto;
}

#root_users_list_container table {
    width:100%;
}

#root_users_list_container form {
    float: left;
}

#root_add_user_button {
    float: right;
    margin-bottom: 20px;
}

#icon_admin {
    color: goldenrod;
}

#add_or_edit_user_table {
     width: 100%;
     text-align: center;
     margin: auto;
}

#add_or_edit_user_table input,select{
    width: 100%;
}

#add_or_edit_user_table select{
    border: solid black 1px;
    height: 80%;
    font-size: 80%;
    margin-bottom: 9px;
}

#add_or_edit_user_container {
    width: 50%;
    margin-left: auto;
    margin-right: auto;
    max-height:100%;
    overflow-y: auto;
}

#add_or_edit_user_buttons {
    margin-top: 20px;
}




/* CUSTOMERS */






#customers_table {
    width: 100%;
}

#root_customers_list_container,#root_users_list_container {
    width:100%;
    text-align: center;
    max-height:85%;
    overflow-y: auto;
}

#root_customers_list_container table,#root_users_list_container table {
    width: 100%;
}


#root_customers_list_container form,#root_users_list_container form {
    float: left;
}

#root_add_customer_button {
    float: right;
    margin-bottom: 20px;
}

#add_or_edit_customer_table {
    width: 100%;
    text-align: center;
    margin: auto;
}

#add_or_edit_customer_table input,select{
    width: 100%;
}

#add_or_edit_customer_table select{
    border: solid black 1px;
    height: 80%;
    font-size: 80%;
    margin-bottom: 9px;
}

#add_or_edit_customer_container {
    width: 50%;
    margin-left: auto;
    margin-right: auto;
    max-height:85%;
    overflow-y: auto;
}

#add_or_edit_customer_buttons {
    margin-top: 20px;
}





/* PROJECTS */


#projects_table {
    width: 100%;
}

@media screen and (min-width:810px){
.list_table {
    width:100%;
    text-align: center;
    height:calc(100vh - 80px);
    overflow-y: auto;
}
}
#root_projects_list_container table {
    width: 100%;
}

#root_projects_list_container form {
    float: left;
}

#root_add_project_button {
    float: right;
    margin-bottom: 20px;
}

#add_or_edit_project_table {
    width: 100%;
    text-align: center;
    margin: auto;
}

#add_or_edit_project_table input,select{
    width: 100%;
}

#add_or_edit_project_table select{
    border: solid black 1px;
    height: 80%;
    font-size: 80%;
    margin-bottom: 9px;
}

#add_or_edit_project_container {
    width: 50%;
    margin-left: auto;
    margin-right: auto;
    max-height:85%;
    overflow-y: auto;
}

#add_or_edit_project_buttons {
    margin-top: 20px;
}


/* TOOLS */

#root_tools_db_container{
    display: flex;
    align-items: center;
    width: 30%;
    height:300px;
    justify-content: center;
    flex-direction: column;
    margin-top: -40px;
    border:1px solid #ccc;
    padding:20px;
    border-radius: 6px;
    -moz-border-radius: 6px;
    -webkit-border-radius: 6px;
    -ms-border-radius: 6px;
}

#root_tools_db_container h1 {
    font-size: 35px;
}

#root_tools_db_container table{
    width: 100%;
}

#root_tools_db_backup_td {
    text-align: center;
    cursor: pointer;
    background-color: #006699;
    color: white;
}

#root_tools_db_clear_td {
    text-align: center;
    cursor: pointer;
    background-color: rgba(150,50,50,1);
    color: white;
}

#root_tools_db_backup_td:hover{
    background-color: #2086b9;
}

#root_tools_db_clear_td:hover{
    background-color: rgba(225,50,50,1);
}

@media screen and (max-width:800px){
    #root_tools_db_container{
        width: 80%;
    }
    #root_customers_list_container,#root_users_list_container{
        max-height:none;
    }
    body{
        overflow-x:hidden;
        overflow-y:auto;
    }
    
    .content-container > .d-flex > .col-lg-3.bg-light{
        position: static;
        height: auto;
    }

    .content-container{
        padding: 20px;    height: auto; flex-direction: column;
    }
    .content-container .d-flex{
        flex-direction: column;
    }
    
    #root_projects_list_container{
        height:auto;
    }
    
    .col-lg-3.bg-light > form,.col-lg-3.bg-light .d-flex.justify-content-between {
        height:auto !important;
    }
    
    /*TABELLE*/
    	/* Force table to not be like tables anymore */
	table.table, table.table thead, table.table tbody, table.table th,table.table  td, table.table tr { 
		display: flex;
		flex-direction:column;
	}
	
	table.table  td:last-child{
	    flex-direction:row;
	    justify-content:flex-start !important;
	}
	
	/* Hide table headers (but not display: none;, for accessibility) */
table.table 	thead tr { 
		position: absolute;
		top: -9999px;
		left: -9999px;
	}
	
table.table	tr { border: 1px solid #ccc; margin-top:-1px;}
	
table.table	td { 
		/* Behave  like a "row" */
		border: none;
		border-bottom: 1px solid #eee; 
		position: relative;
		 padding-left: 38% !important;    min-height: 50px;
	}
	
table.table	td:before { 
		/* Now like a table header */
		position: absolute;
		/* Top/left values mimic padding */
		top: 12px;
		left: 6px;
		width: 30%;
		color: #000;
        font-weight: 500;
		white-space: nowrap;
	}
	
	/*
	Label the data
	*/
	#root_reports_list_container td:nth-of-type(1):before { content: "Utente"; }
	#root_reports_list_container td:nth-of-type(2):before { content: "Cliente"; }
	#root_reports_list_container td:nth-of-type(3):before { content: "Commessa"; }
	#root_reports_list_container td:nth-of-type(4):before { content: "Attività"; }
	#root_reports_list_container td:nth-of-type(5):before { content: "Tempo"; }
	#root_reports_list_container td:nth-of-type(6):before { content: "Data"; }
	#root_reports_list_container td:nth-of-type(7):before { content: "Note"; }
	#root_reports_list_container td:nth-of-type(8):before { content: "Azioni"; }
	
	#root_projects_list_container td:nth-of-type(1):before { content: "Nome"}
	#root_projects_list_container td:nth-of-type(2):before { content: "Descrizione"}
	#root_projects_list_container td:nth-of-type(3):before { content: "Cliente"}
	#root_projects_list_container td:nth-of-type(4):before { content: "Azioni"}
	
	
    #root_vacation_list_container td:nth-of-type(1):before { content: "Utente"}
	#root_vacation_list_container td:nth-of-type(2):before { content: "Tempo"}
	#root_vacation_list_container td:nth-of-type(3):before { content: "Data"}
	#root_vacation_list_container td:nth-of-type(4):before { content: "Azioni"}
	
		#root_customers_list_container td:nth-of-type(1):before { content: "Ragione sociale"}
	#root_customers_list_container td:nth-of-type(2):before { content: "Indirizzo"}
	#root_customers_list_container td:nth-of-type(3):before { content: "Azioni"}

	
	
	#users_table td:nth-of-type(1):before { content: "Login"}
	#users_table td:nth-of-type(2):before { content: "Nome"}
	#users_table td:nth-of-type(3):before { content: "Cognome"}
	#users_table td:nth-of-type(4):before { content: "Azioni"}
	
    #projects_table td:nth-of-type(1):before { content: "Attività"}
    #projects_table td:nth-of-type(2):before { content: "Cliente"}
    #projects_table td:nth-of-type(3):before { content: "Commessa"}
    #projects_table td:nth-of-type(4):before { content: "Descrizione"}
    #projects_table td:nth-of-type(5):before { content: "Azioni"}
	
}
}