/* --------------------------------------
	common
 ---------------------------------------*/
 .chart-titre {
	font-weight: 600;
	line-height: 1.5rem;
	font-size: 14px;
	text-align: center;
}
.chart-frame {
	max-width:100%;
	padding:1rem;
	height:100%;
	border:1px solid #ccc;
	box-sizing:border-box;
}
/* --------------------------------------
	10 Juin 2017 : graphiques barre
 ---------------------------------------*/
.bar-chart-wrapper {
    width: 100%;
    display: flex;
    flex-direction: column;
}
.bar-chart-wrapper .inner-wrapper {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
}
.bar-chart-wrapper .label {
    text-align: right;
    padding: 5px 10px 5px 0;
    border-right: 2px solid #b1b3b5;
    font-size:15px;
    color:#797979;
}
.inner-wrapper .plabel {
	width:18%;
    text-align: right;
    font: 13px/1.54 sans-serif;
}
.bar-chart-wrapper .innerbar {
    height: 18px;
    overflow: hidden;
    margin: 0 0 0 -2px;
    position: relative;
    border-left: 2px solid #231f20;
}
.bar-chart-wrapper .bar::after {
    content: attr(data-total);
    display: block;
    text-align: right;
    margin-right: 3px;
    font: 13px/1.54 sans-serif;
    color: #fff;
}
.bar-chart-wrapper .bar.paddedLabel::after {
    position: relative;
    right: -7px;
    color: #231f20;
}
/* -------------------------------------------------------------
	25 Juin 2017 : Graphique barres cumulées
 --------------------------------------------------------------- */
.cumul-bar__titre {
	display: inline-block;
	vertical-align: top;
	line-height: 18px;
}
.cumul-bar__container {
	position: relative;
	width: calc(99.6% - 60px);
	height: auto;
	display: inline-block;
}
.cumul-bar__innerbar {
	margin-bottom: 2px;
	float: left;
	height: 24px;
	background-color:#b3b3b4;
}
.cumul-bar__innerbar.bar0 {
	background-color: rgb(77, 198, 221);
}
.cumul-bar__innerbar.bar1 {
	background-color: rgb(0, 87, 137);
}
.cumul-bar__innerbar.bar2 {
	background-color: rgb(252, 221, 3);
}
.cumul-bar__innerbar.bar3 {
	background-color: rgb(255, 155, 11);
}
.cumul-bar__innerbar.bar4 {
	background-color: #dc5147;
}
.cumul-bar__marque {
	position: absolute;
    background-color: #fff;
    width: 1px;
    height: 24px;
    top: 0px;
}
.cumul-bar__axe {
	position: absolute;
	top: 0px;
	right: 0px;
	height: 24px;
	width: calc(99.7% - 60px);
}
.cumul-bar__axe-marque {
	background-color: #d7d7d7;
	width: 1px;
	height: 10px;
	position: absolute;
	top: 19px;
}
.cumul-bar__axe-marque__echelle {
	color: #d7d7d7;
	position: absolute;
	top: 3px;
	width: 20%;
	text-align: left;
	margin-left:-16px;
}
.cumul-bar__axe-marque__echelle:first-child {
	margin-left:0px;
}
.cumul-bar__axe-marque__echelle:last-child {
	margin-left:-44px;
}
.cumul-bar__innerbar:hover:before {
	content: attr(data-title);
    display: block;
    font-size:10px;
    position: absolute;
    width: 140px;
    bottom: -24px;
    padding:4px;
    border:1px solid #767676;
    opacity:0.6;
    background-color: #fff;
    text-align:center;
    z-index:1;
}
/* -------------------------------------------------------------
	22 Juin 2017 : Graphique barre gain - Loss
 --------------------------------------------------------------- */
.gainloss_row {
	height: 16px;
	white-space: nowrap;
	display: table-row;
}
.gainloss__box--right {
	background-color: #005789;
}
 .gainloss_row-header__right span {
	color: #005789;
}
.gainloss__box--left {
	background-color: #e31f26;
}
.gainloss_row-header__left span {
	color: #e31f26;
}
.gainloss_row-header {
	display: table-cell;
	padding-right: 4px;	
}
.gainloss_row-header span {
    font-size: 12px;
    line-height: 16px;
    display: inline-block;
}
.gainloss_row-header span:first-child {
	width: 38px;
	white-space: nowrap;
}
.gainloss_row--left span {
	color: #005789;
}
.gainloss_row-header span:nth-child(2) {
	width: 28px;
	text-align: right;
}
.gainloss__boxes, .gainloss__bars {
	font-size: 0px;
	display: inline-block;
	display: table-cell;
	width: 100%;
}
.gainloss__box {
	height: 8px;
	max-width: 8px;
	display: inline-block;
}
.gainloss__box--empty {
	background-color: #eaeaea;
}
.gainloss__boxes .gainloss__box {
	margin-right: 1px;
}
.gainloss__zero {
	display: inline-block;
	width: 1px;
	height: 16px;
	background: black;
	position: relative;
	top: 4px;
	margin-left: -1px;
}
/* chart gain or loss > etats_utils.php
   ========================================================================== */
.chart-gain-or-loss .wrapper {
	display:flex;
	height: 16px;
	margin-bottom: 2px;
	width: 100%;
	position: relative;
	overflow: hidden;
}
.chart-gain-or-loss .bar-chart {
	position: relative;
	height: var(--chart-gain-or-loss--height_barre);
	min-width: 180px;
	overflow: hidden;
	background-color: #f6f6f6;	
}
.chart-gain-or-loss .diff {
	padding-left:5px;	
	min-width:32px;
}
.chart-gain-or-loss .loss_gain__middle::after {
	display: block;
    content: '';
    border-right: 1px solid #333;
    height: var(--chart-gain-or-loss--height_barre);
    top: 0;
    position: absolute;
    left: calc(50% - 1px);
}
.chart-gain-or-loss .legend {
	font-size: 12px;
	color:#121212;
	line-height: var(--chart-gain-or-loss--height_barre);	
}
/* -------------------------------------------------------------
	31 Décembre 2016 : barre de progression
 --------------------------------------------------------------- */
.progressbar-wrapper {
	border:1px solid #eaeaea;
	margin:4px;
	padding:10px;
	overflow:hidden;
}
.progressbar {
	height: 5px;
	border-radius: 0;
	box-shadow: none;
	background-color: #BABABA;
}
.progress-bar {
	min-width: 0%;
    height: 100%;
}
.progress-bar.red {
	background-color: #F5382F;
}
.progress-bar.green {
	background-color: #3cb500;
}
.progress-bar.orange {
	background-color: #ff9100;
}
/* ---------------------------------
	GRAPHIQUES BARRES HORIZONTALES
 ----------------------------------- */	
#thumbs_bg_bar {
	width:100%;
	height: 8px;
	background-color: #666666;
}
#thumbs_main_bar  {
	display:block;
	float:left;
	height:9px;
	border-bottom: 1px solid #cccccc;
	border-right: 1px solid #cccccc;
	padding:4px;
	width:140px;
}
.thumbs_bar  {
	border:medium none;
	float:left;
	height:7px;
	margin-top:1px;
}
#value_thumbs_bar {
  margin-left: 2px; 
}
/* ---------------------------------------------------------------------
	Apps Task Manager : graphique activité
 ---------------------------------------------------------------------- */
#chart-nav-activity {
    display: flex;
    display: -webkit-flex;
    background-color: #fff;
    width: 100%;
    padding: 0 0 20px;
    border-bottom: 1px solid #f1f1f1;
}

#chart-nav-activity .month-wrapper {
    display: flex;
    position: relative;
}
#chart-nav-activity .marker, #div_TdB_timeline_V .marker {
	position: absolute;
	bottom: -16px;
	font-size: 12px;
}
#chart-nav-activity .day {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	position: relative;
	cursor: pointer;
}
#chart-nav-activity .day .claim {
    width: 8px;
    height: 22px;
    border: 1px solid #fff;
    background-color: #e9e9e9;
}
#chart-nav-activity .day .claim.cat2 { 
	background-color: #de7c7d;
}
#chart-nav-activity .day .claim.cat3 { 
	background-color: #dc5147;
}
#chart-nav-activity .day .claim.cat1 { 
	background-color: #e9c5c5;
}

.legend .day {
	width: auto;
	height: auto;
	padding: 2px 5px;
	border-radius:1px;
	margin: 0 3px 0 0;
	display: inline-block;
}
.legend .day.cat0, .conseiller-ca.calendar .day.cat0  {
    background-color: #fff;
    border: 1px solid #231f20;
    color: #231f20;
}
.legend .day.cat1, .conseiller-ca.calendar .day.cat1 {
	background-color: #e9c5c5;
	color: #dc5147;
}
.legend .day.cat2, .conseiller-ca.calendar .day.cat2  {
	background-color: #de7c7d;
	color: #fff;
}
.legend .day.cat3, .conseiller-ca.calendar .day.cat3 {
	background-color: #dc5147;
	color: #fff;
}
.legend .day.cat4, .conseiller-ca.calendar .day.cat4 {
	background-color: #771c16;
	color: #fff;
}
/* ---------------------------------------------------------------------
	Avril 2017 : Graphique Box - carrés avec croix  
 ---------------------------------------------------------------------- */
.increase {
 	content: " ";
	display: table;
}
.increase .box {
    width: 20px;
    height: 20px;
    background-color: #ccc;
    border: 2px solid #fff;
    margin: 0;
    display: inline-block;
    float: left;
}
.box.pos {
    background-color: #00b6bd
}
.increase .box.negative {
    position: relative;
}
.increase .box.negative i {
    position: absolute;
    font-size: 18px;
    line-height: 0;
    margin: 0;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    color: #ee645c;
}
/* ---------------------------------------------------------------------
	2 Avril 2017 : Timeline ca conseillers  
 ---------------------------------------------------------------------- */
.TimeLine-chart {
	 margin:0 auto 20px;
	 display:flex;
	 border-bottom: 1px solid #f1f1f1;
 }
.TimeLine-chart .day-chart:hover:after {
    content: attr(data-ca);
    display: block;
    position: absolute;
    width: 80px;
    bottom: -40px;
    margin-left: 25px;
    font-size:11px;
    font-weight:800;
    background-color: #fff
}
.TimeLine-chart {
	 margin:0 auto 20px;
	 display:flex;
	 border-bottom: 1px solid #f1f1f1;
 }
.TimeLine-chart .day-wrapper {
	display: flex;
	flex-direction:column;
	margin-top:auto;
	position: relative;
	margin-right:2px;
}

/* ---------------------------------------------------------------------
	7 Mai 2018 : function chart__horizontal_cumul() - ETATS_UTILS.PHP
	représentation du milieu de la barre
 ---------------------------------------------------------------------- */
.chart__horizontal_cumul_middle {
 	width:100%;
 	margin-bottom:12px;
 	min-height:42px;
 }
.chart__horizontal_cumul_middle::before {
 	content: '';
 	display:block;
 	height:6px;
 	width:1px;
 	background-color:#000;
 	margin-left:50%;
 }
.chart__horizontal_cumul_Indication_Legend::before {
 	content: attr(data_num_legend);
 	font-size:12px;
 	line-height:16px;
 	margin-top:25px;
 	display:block;
 }
 /* ---------------------------------------------------------------------
	Mai 2022 > progressive donut > objectif à atteindre 
 ---------------------------------------------------------------------- */
.circle-wrap {
	min-width: var(--largeur-progressive-donut);
	height: var(--largeur-progressive-donut);
	background: #fefcff;
	border-radius: 50%;
	border: 1px solid #cdcbd0;
	box-sizing: border-box;
}
.circle {
	position:relative;
}
.circle-wrap .circle .mask,
.circle-wrap .circle .fill {
  width: var(--largeur-progressive-donut);
  height: var(--largeur-progressive-donut);
  position: absolute;
  border-radius: 50%;
}
.mask .fill {
  clip: rect(0px, 75px, 150px, 0px);
  background-color: #c91c22;
}
.circle-wrap .circle .mask {
  clip: rect(0px, 150px, 150px, 75px);
}
.circle-wrap .inside-circle {
	font-family:georgia;
	width: calc( var(--largeur-progressive-donut) / 2);
	height: calc( var(--largeur-progressive-donut) / 2);
	border-radius: 50%;
	background: #fff;
	line-height: calc( var(--largeur-progressive-donut) / 2 - 10px);
	text-align: center;
	transform: translate(50%, 50%);
	color: #979797;
	position: absolute;
	border: 1px solid #cdcbd0;
	font-size: 2em;
	box-sizing:border-box;
}
.circle-wrap .inside-circle span {
	font-size:14px;
}
 /* ---------------------------------------------------------------------
	Décembre 2024 > Demi-Cercle progression (donut)
 ---------------------------------------------------------------------- */

.data-progress {
    border: none;
    border-radius: 6685px;
    display: block;
    height: 10px;
    overflow: hidden;
    padding: 0;
    width: 100%;
    -moz-appearance: none;
    -webkit-appearance: none;
}


.data-progress.is-halfcicled {
    --display: 12rem;
    --width: 1rem;
    display: block;
    width: var(--display);
    height: calc(var(--display) / 2);
    border-radius: 0;
    background-color: unset;
    transform: translate(0);
    box-sizing: border-box;
    
}

.data-progress.is-halfcicled::before {
    content: '';
    display: block;
    position: relative;
    width: var(--display);
    height: var(--display);
    border-style: solid;
    border-width: var(--width);
    border-color: rgba(0,38,60,0.15);
    border-radius: 100%;
    z-index: 0;
}

.data-progress.is-halfcicled .progress-bar .progress-half-circle {
    position: absolute;
    overflow: hidden;
    width: var(--display) !important;
    height: calc(var(--display) / 2);
    top: 0;
    transform-origin: bottom;
    transform: rotate(var(--base));
    animation: progressioHalfCircle 1s ease-out forwards;
    border-radius: 0 !important;
    box-sizing: border-box;
}
.data-progress.is-halfcicled .progress-bar .progress-half-circle::before {
    content: '';
    display: block;
    position: relative;
    width: var(--display);
    height: var(--display);
    border-style: solid;
    border-width: 1rem;
    border-color: var(--progress-bg-color);
    border-radius: 100%;
    z-index: 0;
}
.half-circle{
	position:relative;
	margin:20px;
}
.progress-legend {
	text-align : center;
	text-transform: uppercase;
}
.in-progress{
	position:absolute;
	top: 50%;
	left:50%;
	transform: translate(-50%, -50%);
	font-size: 3em;
	color:var(--progress-bg-color)
}

.is-data-circle .progress-bar.is-safe, .progress-legend .title.is-safe{
    --progress-bg-color: #4CAF50;
}
.is-data-circle .progress-bar.is-warning, .progress-legend .title.is-warning{
    --progress-bg-color: #FFBB33;
}
.is-data-circle .progress-bar.is-alert, .progress-legend .title.is-alert{
    --progress-bg-color: #FF9800;
}
.is-data-circle .progress-bar.is-danger, .progress-legend .title.is-danger{
    --progress-bg-color: #F44336;
}

@keyframes progressioHalfCircle {
  0% {
    transform: rotate(var(--base)); 
  }
  100% {
    transform: rotate(var(--percent))
  }
}

