* {
	box-sizing: border-box;
}



@font-face {
    font-family: "IBM Plex Mono";
    src: url('IBMPlexMono-Regular-Latin1.woff2') format("woff2");
    font-weight: 400;
}


@font-face {
    font-family: "IBM Plex Mono";
    src: url('IBMPlexMono-Medium-Latin1.woff2') format("woff2");
    font-weight: 700;
}

a {
	color: inherit;
	text-decoration: none;
	border-bottom: 1px solid;
}
body{
	font-size: .75em;
	margin: 0;
	font-family: "IBM Plex Mono";
}
header+table {
	width: 100%;
	border-collapse: collapse;
	margin: 50px 0;
}
#projects, #exercices,
main { margin-bottom: 50px; }
tr { border-collapse: collapse; }
td{ border-collapse: collapse; padding: .5em .5em; border-bottom: 1px solid #eee;}
#compta tr:hover td{ background: #eee; }

header, footer {
	position: fixed;
	top: 0;
	background: #eee;
	width: 100%;
	padding: .25em .25em;
}
p { margin: 0; }

header > * , footer > div  {
	display: flex;
	height: 40px;
	align-items: center;
	color: #666;
}

footer > div{
	align-items: center;
	padding: .25em 0 .25em .25em; 
}
footer a { margin:0 1em; }
footer {
	top: auto;
	bottom: 0;
	padding-right: 0;
	display: flex;
	justify-content: space-between;
}

header form {	
	display: flex;
	justify-content: space-between;
	align-content: center;
}
header form > div { padding: 0 .5em; }
header form > div:last-child { width: 100px; }
header form > div { width: 100%; }
header form > div select { width: 100%; }
header form .double div {

}
main form p span,
input, option, select, button, textarea{
	font: inherit;
	color: inherit;
	height: 2em;
	border: 1px solid #eee;
	padding: .25em .5em; 
}
main form p span { border-color: transparent; display: inline-block; }

.money {
	text-align: right;
	width: 8em;
	padding: .25em .5em;
}

footer table{
	float: right;
	font-weight: bold;
}
input[readonly]{
	border-color: transparent;
	padding-left: 0;

}
/* footer .money:last-child{ padding-right: 0; } */
hr{
	margin: 2em 0;
	border: none;
	border-top: 1px solid #ddd;
	background: none;
}

main {
	padding: 1em;
	font-size: 1em;
}
main form p {
	max-width: 500px;
	margin: 0 0 .5em 0;
	display: flex;
	align-items: flex-start;
}
main label {
	padding-top: .5em;
	width: 9em;
	display: inline-block;
	font-size: inherit;
}
main input,
main textarea,
main select{
	/* width: calc(100% - 9em); */
	flex: 1;
}
main textarea{ height: 5em; }
main form > :last-child{
	padding-left: 9em;
	margin-top: 2em;
}
main form > :last-child input {
	justify-self: flex-end;
	width: auto;
}

main form > :last-child  a {
	display: block;
	align-self: center;
	width: auto;
	margin: 0 0 0 1em;
}

.edit{ 
	color: inherit;
	text-decoration: none;
	border-bottom: 1px solid;
 }

.maxtable { max-width: 800px; }
#projects .entry{display: none;}
th{
	text-align: left;
	border-collapse: collapse;
	padding: .5em .5em;
	border-bottom: 1px solid #eee;
}
th.money{ text-align: right; }
.subproject {
	opacity: .6;
}

#exercices .amount {display: none;}
#projects table, 
#exercices table { margin-bottom: 2em; }
.category_title { width: 350px; }

.invoiceitems {
	min-width: 75vw;
}
.quantite, .prix-unitaire {width: 8em;}
.supprimer {width: 2em;}
.invoiceitems input[type="number"]{
	width: 7em;
}
.formset_row td:first-child input[type="text"]{
	width: 100%;
}

.involvements{
	margin: 2em 0;
}
.involvements th:first-child,
.involvements td:first-child {
	padding-left: 0;
}
