/*/ Polylog SA (c) 2023 /*/

/*/ Général /*/

.fwk-graph-container { 
	display: block;
	position: relative; 
	padding: 0;
	margin: 10px 0;
	border-radius: var(--round2);
	background-position: center; 
	image-orientation: none;
	background-size: cover; 
	max-width: 100%;
	/*overflow-x: auto;*/
	background: var(--gray1);
	}

.fwk-graph-container-h5 {
	margin: 0;
	font-size: inherit;
	line-height: 40px;
	font-weight: 600;
	padding: 0 14px;
	background: var(--gray1);
	color: var(--dark1);
	border-radius: var(--round2) var(--round2) 0 0;
	display: block;
	min-height: 40px;
	max-height: 40px;
	white-space: nowrap;
	/*overflow-x: auto; -- sinon problème avec le choix des années..
	overflow-y: hidden;*/
	}

.fwk-graph-container-h5 i {
	display: inline-block;
	width: 20px;
	}

.fwk-graph-container-compl {
	margin: 0;
	padding: 14px;
	border-top: 2px solid var(--white);
}

.fwk-graph-container-compl i {
	display: inline-block;
	width: 20px;
}

.fwk-graph-container-compl .right {
	float: right;
	margin: -14px;
	padding: 14px;
	border-left: 2px solid var(--white);
}

.fwk-graph-container-compl .right i {
	text-align: center;
	font-size: 16px;
	line-height: inherit;
	width: 23px;
}

.fwk-graph-container-header {
	margin: 0;
	padding: 14px 14px;
	border-top: 2px solid var(--white);
	background: var(--gray1);
	border-radius: 0;
}

.fwk-graph-container-header h3 {
	margin: 0;
	font-size: 18px;
	line-height: inherit;
	font-weight: 600;
	display: inline-block;
}

.fwk-graph-container p {
	margin: 0;
	font-size: inherit;
	line-height: inherit;
	padding: 10px;
}

/*/ Légende /*/

.fwk-graph-legend { 
	width: 100%; 
	max-width: 100%;
	padding: 0 15px 15px;
	text-align: center;
	}
	
.fwk-graph-legend div { 
	display: inline-block;
	padding: 3px 9px;
	border-radius: var(--round1);
	background: var(--white);
	margin: 3px;
	font-size: 11px;
	font-weight: 400;
	cursor: pointer;
	}
	
.fwk-graph-legend div i { 
	display: inline-block;
	padding-right: 8px;
	float: left;
	line-height: inherit;
	}
	
/*/ Total /*/

.fwk-graph-total {
	display: block;
	font-weight: 600;
	padding: 10px 14px;
	color: var(--dark1);
	border-top: 2px solid var(--white);
	}
	
.fwk-graph-total i {
	float: left;
	margin-right: 15px;
	font-size: 10px;
	line-height: inherit;
	}
	
/*/ Graphe horizontal /*/

.fwk-barline {
	border-top: 2px solid var(--white);
	border-radius: 0 0 var(--round2) var(--round2);
	padding: 15px;
	}

.fwk-barline-container {
	padding: 15px;
	display: flex;
}

.fwk-barline-bar { 
	position: relative; 
	height: 20px;
	float: left; 
	background: var(--white);
	border: 2px solid var(--white);
	border-right: none;
	}

.fwk-barline-bar:first-child { 
	border-bottom-left-radius: 20px;
	border-top-left-radius: 20px;
	}

.fwk-barline-bar:last-child { 
	/*border-right: none; --  pas si on a une bordure partout autour dans barline-bar*/
	border-right: 2px solid var(--white);
	border-bottom-right-radius: 20px;
	border-top-right-radius: 20px;
	}
		
.fwk-barline-bar.bar-isFaded { 
	opacity: 0.2;
	}
	
.fwk-barline-total {
	display: block;
	font-size: 30px;
	font-weight: 600;
	line-height: 32px;
	margin: 0 0 30px 0;
	border-radius: var(--round1);
	}
	
/*/ Graphe horizontal(tableau) /*/
	
.fwk-tablebarline { 
	width: 100%;
	height: 20px;
	padding: 1px;
	border-radius: var(--round1);
	background: var(--white);
	}

.fwk-tablebarline.tablebarline-withfloat {
	margin: 5px 0;
	float: left;
	}
	
.fwk-tablebarline div { 
	position: relative; 
	height: 17px;
	min-width: 10px;
	float: left; 
	border-radius: var(--round1);
	background: var(--mid1);
	}
	
/*/ Donut /*/
	
.fwk-donut { 
	width: 150px; 
	height: 150px;
	border-radius: 100%;
	position: relative;
	margin: 15px auto;
	border-radius: 100%;
	background: var(--gray2);
	}
	
.fwk-donut .filled { 
	position: absolute;
	top: 0;
	bottom: 0;
	right: 0;
	left: 0;
	margin: auto;
	min-width: 73px;
	min-height: 73px;
	border-radius: 100%;
	background: var(--main);
	}
	
.fwk-donut .value { 
	position: absolute;
	top: 0;
	bottom: 0;
	right: 0;
	left: 0;
	margin: auto;
	border-radius: 100%;
	width: 70px;
	height: 70px;
	line-height: 70px;
	font-weight: 600;
	font-size: 14px;
	text-align: center;
	background: var(--gray1);
	color: var(--dark1);
	}
	
.fwk-donut .value-small { 
	font-size: 10px;
	white-space: nowrap; 
	overflow: hidden; 
	text-overflow: ellipsis;
	}
	
/*/ Graphe vertical /*/
	
.fwk-barrows {
	border-top: 2px solid var(--white);
	padding: 15px 15px 0;
	margin-bottom: 15px;
	max-width: 100%;
	overflow: auto;
	}

.fwk-barrows table { 
	min-width: auto;
	}
	
.fwk-barrows td { 
	text-align: center;
	min-width: 50px;
	}
	
.fwk-barrows tr { 
	height: 40px;
	font-size: 10px;
	}

.fwk-barrows-bar {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	vertical-align: bottom; 
	position: relative;
	height: calc(40px * 5);
	min-width: 65px;
	padding: 20px 5px 0;
	}

.fwk-barrows-bar div { 
	position: relative;
	align-self: flex-end;
	width: 8px;
	min-height: 4px;
	border-radius: var(--round1);
	margin: 0 2px;
	background: var(--mid1);
	}
	
.fwk-barrows-bar div.bar-isFaded { 
	opacity: 0.2 !important;
	}

.fwk-barrows-col {
	min-width: 65px !important;
	vertical-align: top; 
	}
	
.fwk-barrows-axis {
	min-width: 50px;
	padding: 0 10px;
	vertical-align: center;
	text-align: center !important;
	border-radius: var(--round1);
	color: var(--main);
	line-height: 20px;
	font-weight: 600;
	font-size: 10px;
	}
	
.fwk-barrows-footer {
	padding-top: 5px;
	padding-bottom: 15px;
	vertical-align: top; 
	}

.fwk-barrows-footer b {
	display: block;
	margin: auto;
	text-align: center;
	padding: 0;
	min-width: 65px;
	white-space: nowrap; 
	overflow: hidden; 
	text-overflow: ellipsis;
	}
	
.fwk-barrows-footer div {
	margin-top: 5px;
	display: inline-block;
	background: var(--gray2);
	color: var(--dark1);
	font-weight: 600;
	font-size: 8px;
	border-radius: var(--round1);
	padding: 0 10px;
	}

/*/ Pie /*/

@property --p{
  syntax: '<number>';
  inherits: true;
  initial-value: 0;
	}

.fwk-pie-container {
	border-top: 2px solid var(--white);
	padding: 25px;
	text-align: center;
	/*min-width: 200px; => sinon ne va pas dans le cockpit */
}

.fwk-pie {
	width: 100px;
	aspect-ratio: 1;
	position: relative;
	display: inline-grid;
	place-content: center;
	font-weight: 600;
}

.fwk-pie:before, .fwk-pie:after {
	content:"";
	position:absolute;
	border-radius: 50%;
	background: var(--main);
	}

.fwk-pie:before {
	inset: 0;
	background: radial-gradient(farthest-side, var(--color) 98%, #0000) top/10px 10px no-repeat, conic-gradient(var(--color) calc(var(--p) * 1%), var(--white) 0);
	-webkit-mask: radial-gradient(farthest-side, #0000 calc(99% - 10px), #000 calc(100% - 14px));
	mask: radial-gradient(farthest-side, #0000 calc(99% - 10px), #000 calc(100% - 14px));
}

.fwk-pie:after {
	inset: calc(50% - 10px/2);
	background:var(--color);
	transform:rotate(calc(var(--p)*3.6deg)) translateY(calc(50% - 100px/2));
	}

.fwk-pie-animate {
  /*animation:p 1s .5s both;*/
  }

@keyframes p {
	from{--p:0}
	}
