@import url('https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css');

body{
  background-color: #eeeeee;
}

.sipm_widget{
  display: inline-block;
  position: relative;
  width: 100%;
  margin: 25px 0;
  box-shadow: 0 1px 4px 0 rgba(0, 0, 0, 0.14);
  border-radius: 3px;
  color: rgba(0,0,0, 0.87);
  background: #fff;
}

.sipm_widget .card-header.card-chart {
  padding: 0;
  min-height: 160px;

}

.sipm_widget [data-background-color] {
  color: #FFFFFF;
}

.sipm_widget [data-background-color="rouge"] {
  background: linear-gradient(60deg, #e53935, #ef5350);
  box-shadow: 0 12px 20px -10px rgba(76, 175, 80, 0.28), 0 4px 20px 0px rgba(0, 0, 0, 0.12), 0 7px 8px -5px rgba(76, 175, 80, 0.2);
}

.sipm_widget .card-header {
  box-shadow: 0 10px 30px -12px rgba(0, 0, 0, 0.42), 0 4px 25px 0px rgba(0, 0, 0, 0.12), 0 8px 10px -5px rgba(0, 0, 0, 0.2);
  margin: -20px 15px 0;
  border-radius: 3px;
  padding: 15px;
  background-color: #999999;
}

.sipm_widget .card-content {
  padding: 15px 20px;
  height: 150px;
  overflow: auto;
}

.sipm_widget .card-footer {
  margin: 0 20px 10px;
  padding-top: 10px;

  border-top: 1px solid #eeeeee;
}

.sipm_widget .title {
  margin-top: 0;
  margin-bottom: 5px;
color:#555555;
}

.sipm_pictogram{
  text-align: center;
}

.sipm_widget .card-content .category {
  margin-bottom: 0;
}

.sipm_widget .category:not([class*="text-"]) {
  color: #999999;
}

*[data-icon-color="rouge"]{color:#ef5350}

.card-footer .icon{ float:right;}
.icon .fa{line-height:22px; font-size: 16px;}
.card-footer .time{line-height: 22px;
  color: #999999;
  font-size: 12px;}

.sipm_main{font-weight:bold; font-size:30px;}

.sipm_pictogram{
  width: 100%;
  text-align: center;
  min-height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 160px;
  overflow: auto;
}

 /*.sipm_pictogram div{margin:0 auto;}*/

 .sipm_pictogram h1{
    width: 100%;
    margin:0 auto;
  }

  #dss_page .sipm_selectors{
    display: none;
  }

  .alert_level_high .card-header{
    background: linear-gradient(60deg, #ef5350, #e53935);;
  }
  .alert_level_medium .card-header{
    background: linear-gradient(60deg, #ffa726, #fb8c00)
  }
  .alert_level_low .card-header{
    background: linear-gradient(60deg, #66bb6a, #43a047);
  }
  .alert_level_info .card-header{
    background: linear-gradient(60deg, #26c6da, #00acc1);;
  }

  .d3-tip {
    line-height: 1;
    font-weight: bold;
    padding: 12px;
    background: rgba(0, 0, 0, 0.8);
    color: #fff;
    border-radius: 2px;
  }


  /*Nutrient chart*/
  .nutrient_chart{
    margin-left: 40px;
  }
  .nutrient_box{
    border: 2px solid white;
    float:left;
    height: 40px;
  }

  .nutrient_chart .gain,   .nutrient_chart .loss{
    margin: 10px;
    float: left;
  }

  .card-header .buttons{
    display:none;
  }
  .nutrient_chart .gain .nutrient_box{
    background-color: rgba(150,255,150,1);
  }
  .nutrient_chart .loss .nutrient_box{
    background-color: rgba(255,150,150,1);
  }
  .nutrient_chart .gain .dose{
    background-color: rgba(150,150,255,1);
  }

  .nutrient_desc .gain{
    color:#3c763d;
  }
  .nutrient_desc .loss{
    color:#F00;
  }
  .nutrient_desc .dose{
    color:#00F;
  }
