/*** Fix for overlapping filters ***/

.header {
  z-index: 30;
}

/*********** PAGE LEVEL CSS *********/

body svg * {
  font-family: "Effra W01 Regular", Arial, Helvetica, sans-serif;
}

.viz-page-container {
  padding: 10px;
  padding-top: 20px;
  max-width: 1300px;
  margin: 0 auto;
  margin-bottom: 30px;
}

#viz-graph-container,
#viz-graph-container_primary {
    margin-top: 20px;
}

svg {
  background-color: #FFFFFF;
  font-family: "Effra W01 Regular", Arial, Helvetica, sans-serif;
}

.viz-flourish-container {
  margin-top: 20px;
}

.viz-text-description {
  margin-top: 30px;
  margin-bottom: 30px;
}

/************ CHART LEGENDS ****************/

.legends-wrapper-div {
  padding-bottom: 20px;
  color: #1C1C1E;
  background-color: #FFFFFF;
  box-shadow: 1px 1px 4px 0 rgba(0, 0, 0, 0.4);
}

.legends-wrapper-div .legends-wrapper-body {
  padding-left: 10px;
}

.legends-wrapper-div .main-title {
  background-color: #D0DAE9;
  padding: 3px;
  padding-left: 20px;
  font-size: 13px;
}

.legends-wrapper-div .legend-item-title {
  font-weight: bold;
  padding-left: 10px;
  padding-top: 15px;
  padding-bottom: 4px;
  font-size: 13px
}

.legends-wrapper-div .legend-item-piece {
  display: flex;
  padding-left: 10px;
  margin-top: 5px;
}

.legends-wrapper-div .legend-item-piece .color-rect {
  width: 20px;
  height: 20px;
}

.legends-wrapper-div .legend-item-piece .name {
  margin-left: 10px;
  margin-top: 3px;
  color: #424242;
  font-size: 13px;
}

.legends-wrapper-div .expand-collapse-icon {
  position: absolute;
  font-size: 7px;
  line-height: 7px;
  transform: scale(2, 1);
  display: inline-block;
  right: 8px;
  top: 3px;
  color: gray;
}

/************** CHART MAP  ******************/

.map-wrapper-div {
  color: #1C1C1E;
  background-color: #D0DAE9;
  box-shadow: 1px 1px 4px 0 rgba(0, 0, 0, 0.4);
}

.map-wrapper-div svg {
  background-color: #D0DAE9;
}

.map-wrapper-div .map-wrapper-body {}

.map-wrapper-div .main-title {
  background-color: #161616;
  color: #FFFFFF;
  padding: 3px;
  padding-left: 20px;
  font-size: 13px;
}

/******** TIER ROW TEXTS *****************/

.tier-row-text {
  padding-left: 8px;
  padding-right: 17px;
  vertical-align: middle;
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
}

/************** Tip Style ***************/

.d3-tip {
  z-index: 999;
  width: 235px;
  padding: 0px!important;
  font-size: 14px;
  pointer-events: none;
}

.tip-header {
  display: flex;
  color: #FCEDED;
}

.tip-header .tip-year {
  background-color: #020202;
  padding-left: 8px;
  padding-right: 10px;
  padding-top: 5px;
  padding-bottom: 5px;
  width:50px;
}

.tip-header .tip-tier {
  background-color: #AF2998;
  padding-left: 10px;
  padding-right: 10px;
  padding-top: 5px;
  padding-bottom: 5px;
  width:60px;
}

.tip-header .tip-impact {
  background-color: #AF2998;
  width:100%;
  padding-left: 10px;
  padding-right: 10px;
  padding-top: 5px;
  padding-bottom: 5px;
  width:125px;
}

.tip-company {
  padding-left: 15px;
  padding-right: 15px;
  padding-top: 5px;
  padding-bottom: 5px;
  border-bottom: 1px solid #C3C3C3;
}

.tip-company-type {
  padding-top: 5px;
  padding-bottom: 5px;
  padding-left: 15px;
  padding-right: 15px;
  border-bottom: 1px solid #C3C3C3;
}

.d3-tip .location {
  padding-left: 15px;
  padding-right: 15px;
  padding-top: 5px;
  padding-bottom: 5px;
}

.tip-map {
  background-color: #D0DAE9;
}

.tip-map svg {
  background-color: #D0DAE9;
}

.d3-tip-map::after {
  color: #C6D1E3 !important;
}

/************** GRAPH FILTERS ******************/

.tail-select .select-label .label-inner {
  font-size: 12px;
}

.viz-graph-filter-container,
.viz-graph-filter-container_primary {
font-size: 12px;
position: absolute;
pointer-events: none;
min-height: 292px;
margin-top: 65px;
margin-left: 210px;
color: #1C1C1E;
background-color: #FFFFFF;
box-shadow: 1px 1px 4px 0 rgba(0, 0, 0, 0.4);
}

    .viz-graph-filter-container.active,
    .viz-graph-filter-container_primary.active {
        overflow: visible;
    }

.graph-filter-title {
  background-color: #161616;
  color: #Ffffff;
  padding: 4px;
  padding-left: 20px;
  font-size: 12px;
  pointer-events: all;
}

.graph-filter-body,
.graph-filter-body_primary {
    padding: 15px;
    padding-top: 15px;
    pointer-events: all;
}

.graph-filter-dropdowns {
  display: flex;
  flex-wrap: wrap;
  width: 490px;
  justify-content: stretch;
}

.graph-filter-dropdowns>div {
  margin: 3px;
  /* z-index: 1; */
}

.viz-graph-filter-container .tail-select,
.viz-graph-filter-container_primary .tail-select {
    width: 150px;
}

.graph-filter-switches {
  display: flex;
  margin: 3px;
  margin-top: 10px;
}

.graph-filter-switches>div {
  padding-right: 47px;
  padding-left: 2px;
}

.graph-filter-filters {
  max-width: 490px;
}

/************  CHECKBOX CSS *************/

.checkbox-container {
  display: block;
  position: relative;
  padding-left: 20px;
  margin-bottom: 12px;
  cursor: pointer;
  font-size: 12px;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

/* Hide the browser's default checkbox */

.checkbox-container input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}

/* Create a custom checkbox */

.checkmark {
  border-radius: 4px;
  position: absolute;
  top: 0;
  left: 0;
  height: 14px;
  width: 14px;
  background-color: #eee;
}

/* On mouse-over, add a grey background color */

.checkbox-container:hover input~.checkmark {
  background-color: #ccc;
}

/* When the checkbox is checked, add a blue background */

.checkbox-container input:checked~.checkmark {
  background-color: #2196F3;
}

/* Create the checkmark/indicator (hidden when not checked) */

.checkmark:after {
  content: "";
  position: absolute;
  display: none;
}

/* Show the checkmark when checked */

.checkbox-container input:checked~.checkmark:after {
  box-sizing: initial !important;
  display: block;
}

/* Style the checkmark/indicator */

.checkbox-container .checkmark:after {
  left: 4.6px;
  top: 2.3px;
  width: 3px;
  height: 6px;
  border: solid white;
  border-width: 0 2px 2px 0;
  -webkit-transform: rotate(45deg);
  -ms-transform: rotate(45deg);
  transform: rotate(45deg);
  box-sizing: initial !important;
}

.empty-desc-div {
  background-color: white;
  padding: 20px;
  border-radius: 1px;
  box-shadow: 1px 1px 4px 0 rgba(0, 0, 0, 0.4);
}

/********** MAKING CHART PANELS COLLAPSIBLE  *****************/

/* --------- GRAPH FILTERS  ---------------*/

.viz-graph-filter-container,
.viz-graph-filter-container_primary {
    pointer-events: none;
}

.graph-filter-title {
  pointer-events: all;
  cursor: pointer;
}

.graph-filter-body,
.graph-filter-body_primary {
    pointer-events: all;
}

.viz-graph-filter-container,
.viz-graph-filter-container_primary {
    min-height: 39px;
    height: 39px;
    overflow: hidden;
    /*Animation*/
    -webkit-transition: height 1s ease;
    -moz-transition: height 1s ease;
    -o-transition: height 1s ease;
    -ms-transition: height 1s ease;
    transition: height 1s ease;
    -webkit-transition: min-height 1s ease;
    -moz-transition: min-height 1s ease;
    -o-transition: min-height 1s ease;
    -ms-transition: min-height 1s ease;
    transition: min-height 1s ease;
}

    .viz-graph-filter-container.active,
    .viz-graph-filter-container_primary.active {
        overflow: visible;
        min-height: 300px;
        height: 310px;
        /*Animation*/
        -webkit-transition: height 1s ease;
        -moz-transition: height 1s ease;
        -o-transition: height 1s ease;
        -ms-transition: height 1s ease;
        transition: height 1s ease;
        -webkit-transition: min-height 1s ease;
        -moz-transition: min-height 1s ease;
        -o-transition: min-height 1s ease;
        -ms-transition: min-height 1s ease;
        transition: min-height 1s ease;
    }

.select-handle::after {
  content: 'x';
  margin-left: 10px;
  position: relative;
  top: 0px;
  right: -7px;
  background-color: #820002;
  padding: 3px;
  border-radius: 2px;
  padding-bottom: 5px;
}

/* --------- MAPS  ---------------*/

.map-wrapper-div {
  pointer-events: none;
}

.map-wrapper-div .main-title {
  pointer-events: all;
  cursor: pointer;
}

.map-wrapper-div .map-wrapper-body {
  height: 0px;
  overflow: hidden;
  /*Animation*/
  -webkit-transition: height 1s ease;
  -moz-transition: height 1s ease;
  -o-transition: height 1s ease;
  -ms-transition: height 1s ease;
  transition: height 1s ease;
}

.map-wrapper-div .map-wrapper-body.active {
  height: 250px;
  overflow: hidden;
  /*Animation*/
  -webkit-transition: height 1s ease;
  -moz-transition: height 1s ease;
  -o-transition: height 1s ease;
  -ms-transition: height 1s ease;
  transition: height 1s ease;
}

/* ------------ LEGENDS  ---------------*/

.legends-wrapper-div {
  pointer-events: none;
}

.legends-wrapper-div .main-title {
  pointer-events: all;
  cursor: pointer;
}

.legends-wrapper-div .legends-wrapper-body {
  height: 0px;
  overflow: hidden;
  /*Animation*/
  -webkit-transition: height 1s ease;
  -moz-transition: height 1s ease;
  -o-transition: height 1s ease;
  -ms-transition: height 1s ease;
  transition: height 1s ease;
}

.legends-wrapper-div .legends-wrapper-body.active {
  height: 290px;
  overflow: hidden;
  /*Animation*/
  -webkit-transition: height 1s ease;
  -moz-transition: height 1s ease;
  -o-transition: height 1s ease;
  -ms-transition: height 1s ease;
  transition: height 1s ease;
}

/* ---------------  responsiveness  -----------------*/

.bbfaw-report-button {
  font-size: 25px;
  margin: 0 auto;
  display: block;
  height: 60px;
  width: 480px;
  background: #03a491;
  color: #ffffff;
  text-align: center;
  font-weight: bold;
  line-height: 60px;
  font-family: Arial;
  border-radius: 10px;
  text-decoration: none;
}

@media only screen and (max-width: 1000px) {
  .bbfaw-report-button {
    font-size: 15px;
    width: 280px;
  }
  .title-fo div {
    font-size: 12px;
  }
  .tier-group-row-div span {
    font-size: 7px !important;
  }

  .tier-row-text {
    padding-left: 0px !important;
    padding-right: 0px !important;
    font-size:4px  !important;
  }
}

@media only screen and (max-width: 20000px) {
    .viz-graph-filter-container,
    .viz-graph-filter-container_primary {
        position: relative;
        margin-left: 0px;
        margin-bottom: 20px;
        min-height: 39px;
        height: 39px;
    }
    .viz-graph-filter-container,
    .viz-graph-filter-container_primary {
        overflow: hidden;
    }
        .viz-graph-filter-container.active,
        .viz-graph-filter-container_primary.active {
            overflow: visible !important;
            height: auto !important;
            min-height: auto !important;
        }
  .graph-filter-dropdowns {
    width: auto;
  }
  .viz-text-description .table-title {
    font-weight: bold;
    color: #299463;
  }
  .viz-text-description .table-tiers-title {
    color: #299463;
  }
  .viz-text-description th {
    background-color: #299463;
    color: #FBFAFB;
  }
  .viz-text-description table, .viz-text-description th, .viz-text-description td {
    border: 1px solid #FFFFFF;
  }
  .viz-text-description th {
    font-weight: 200;
  }
  .flourish-container {
    top: 110px !important;
  }
}


.tail-select input {
  -webkit-user-select: text;
  -khtml-user-select: text;
  -moz-user-select: text;
  -ms-user-select: text;
  user-select: text;
}