html {
    width: 100%;
    max-width: 650px;
    min-width: 360px;
}

body {
    width: 95%;
    position: relative;
}

@media(max-device-width: 650px) {
    #toggleSettingsButtons a i {
        display: none;
    }
}

td, th, text, label, a {
    font-family:  "UnitRoundedWebPro-Light",sans-serif;
}

#barometerGuteArbeit th, #barometerGuteArbeit td, #barometerGuteArbeit label, #barometerGuteArbeit a {
    font-size: 13px;
}

#barometerGuteArbeit td, #barometerGuteArbeit th, #barometerGuteArbeit label, #barometerGuteArbeit text {
    color: #4b647d;
}

#barometerGuteArbeit text {
    font-size: 11px;
}

#toggleSettingsButtons a {
    padding-right: 10px;
    padding-left: 15px;
    width: 30.5%;
}

#ausgewaehlt {
    width: 36.5%!important;
}

#toggleSettingsButtons a {
    margin-right: 0;
}

#svgElement {
    border: 2px solid #4b647d;
    position: relative;
    top: 20px;
}

.bar:hover {
    fill: grey;
}

.axis {
    font-size: 10px;    
}


#yAxis path, #yAxis line {
  display: none;
}

.axis path,
.axis line {
    fill: none;
    stroke: black;
    shape-rendering: crispEdges;
}

.d3-tip {
  line-height: 1;
  font-size: 12px;
  padding: 8px;
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  border-radius: 2px;
  pointer-events: none;
}

/* Creates a small triangle extender for the tooltip */
.d3-tip:after {
  box-sizing: border-box;
  display: inline;
  font-size: 10px;
  width: 100%;
  line-height: 1;
  color: rgba(0, 0, 0, 0.5);
  position: absolute;
  pointer-events: none;
}

/* Northward tooltips */
.d3-tip.n:after {
  content: "\25BC";
  margin: -1px 0 0 0;
  top: 100%;
  left: 0;
  text-align: center;
}

#checkboxes{
    z-index: 3;
    position: absolute;
    background-color: white;
    left: 38%;
    top: 45px;
    border: 1px solid #b2b2b2;
    width: 300px;
    padding-left: 15px;
    padding-right: 30px;
    max-height: 700px;
    overflow-y: auto;
    padding-top: 10px;
}

#filter_groups {
    right: 2px;
}

#barometerGuteArbeit .tiny-btn {
    font-size: 12px;
    padding: 1px 4px;
    text-transform: none;
    height: auto;
    line-height: 1.5;
    position: relative;
    float: right;
    margin-top: 0px;
    right: -20px;
    background-color: #697d91;
    
}

#checkboxes .btn-mini {
    position: absolute;
    right: -20px;
    top: 0;
    width: 20px;
    height: 20px;
}

#checkboxes .btn-mini i{
    font-size: 16px;
    position: absolute;
    top: -9px;
    background-color: white;
    color: black;
}

.btn-mini .invertedColors{
    background-color: #697d91 !important;
    color: white !important;
}

#checkboxes [type="checkbox"].filled-in:checked+label:after {
    background-color: #697d91;
    border-color: #697d91;
}

#checkboxes li ul li{
    position: relative;
    padding-left: 25px;
}

#checkboxes ul li ul li ul{
    display: none;
}

#filter_groups, #voreinstellungen {
    position: absolute;
    top: 45px;
    background-color: white;
    z-index: 2;
    min-width: 180px;
}

#voreinstellungen {
    left: 1%;
    width: 36.5%;
}

#filter_groups {
    width: 30.5%;
}

#filter_groups table, #voreinstellungen table {
    border: 1px solid #b2b2b2;
}

.legendText {
    fill: red;
}

/*text-anchor: end !important;*/


#toggleSettingsButtons{
    position: relative;
    background-color: white;
    top: 5px;
    left: 5px;
}

#toggleSettingsButtons a {
    text-transform: none;
    background-color: #697d91;
}

#toggleSettingsButtons .invertedColors {
    color: #485264;
    background-color: white;
    border: 1px solid #b7b7b7;
    font-weight: 600;
}

#diagramLabel {
    margin-top: 25px;
}

#diagramLabel p, #diagramLabel a {
    font-family: "UnitRoundedWebPro-Light",sans-serif;
    font-size: 11px;
}

#diagramLabel strong {
    font-weight: bold;
}

#time-modal {
    position: absolute;
    display: none;
    left: 0;
    right: auto!important;
    width: 100%;
    height: 700px;
    z-index: 10;
    background-color: white;
    border: 2px solid #4b647d;
    top: 56px;
}

.modal-box {
    position: absolute;
    left: 0px;
    top: 0px;
    width: 100%;
    height: 100%;
    z-index: 5;
    display: none
}

#y-grid .tick line {
    stroke: lightgray!important;
}

#modal-close {
    line-height: 25px;
    height: 25px;
    margin: 10px;
    padding: 0 10px 0 10px;
    background-color: #697d91;
    position: absolute;
}

.download {
    position: absolute;
    background-color: #697d91;
    padding: 5px;
    color: white;
    border-radius: 100%;
    font-size: 0!important;
    margin-left: 7px;
    margin-top: -25px;
    cursor: pointer;
}

#graphDownload {
    margin-left: 5px;
    margin-top: -35px;
}

.download-icon {
    font-size: 20px!important;
}

.material-icons.right {
    margin-left: 0;
}
