/* Named cpp_style (instead of app_style) because Dash reads in css files alphabetically, so to overwrite the bootstrap defaults it needs to be alphabetically lower */
@import url('https://fonts.googleapis.com/css?family=Fira+Sans:300,400,500');

@font-face {
  font-family: 'WebIcons';
  src: url(font-icons.woff) format('woff');
}

html, body {
  font-family: 'Fira Sans', sans-serif;
  font-weight: 400;
  margin: 0;
  height: 100%;
}

#react-entry-point, #data-reactroot {
  height: 100%;
}

.container {
  padding: 10px 4%;
}

a {
  text-decoration: none;
}

a:hover {
  text-decoration: none;
}

.container {
  margin: 0 !important;
  max-width: 100%;
}

.row{
  margin: 0;
}

/* Top banner */
.header {
  background-image: url("dairynz_home_og.jpg");
  background-size: 100%;
  background-position: center;
}

#banner {
  display: table-cell;
  height: 225px;
  width: 600px;
  font-size: 40px;
  font-weight: 500;
  color: white;
  padding: 20px 10px 5px 40px;
  vertical-align: bottom;
}

/* home */
.home-list {
  margin: 0
}

.home-list li {
  padding-bottom: 5px;
}


/* Footer */
.footer {
  height: 100px;
  background: rgba(0,0,0,.8);
  color: white;
  display: table;
  width: 100%
}

.footer-items {
  display: table-cell;
  vertical-align: middle;
  padding-left: 4%;
}

.footer-item img {
  padding-left: 15px;
  width: 150px;
}

/* Sidebar */
nav ul {
	padding: 0;
  margin: 0;
	list-style: none;
	position: relative;
  display: table;
  height: 58px;
  width: 100%;
}

nav ul li::before {
  display: none;
}

nav ul li {
	display:table-cell;
  background-color: rgba(0,0,0,.6);
  padding: 2px 0 0 0;
  width: 20%;
  vertical-align: middle;
}

nav ul li div {
  height: 100%;
  display:table;
  position: relative;
  width: 100%;
}

nav a {
	display:table-cell;
  vertical-align: middle;
	padding-left: 40px;
  padding-right: 5px;
	color:#FFF;
  width: 100%;
  font-weight: 400;
  font-size: 1rem;
	text-decoration:none;
  position: relative;
}

nav ul ul {
	display: none;
	position: absolute;
	top: 56px; /* the height of the main nav */
  left: 0;
  z-index: 1002;
}

nav ul li div:hover > ul {
	display:inherit;
}

nav ul ul li {
	width:inherit;
	float:none;
	display:list-item;
	position: relative;
  padding: 0;
  background-color: rgba(0,0,0,.8);
}

nav ul ul a {
  padding-left: 5px;
  height: 58px;
}

.navbar-selected {
    background-color: rgba(37, 85, 35,.8);
    color: white;
    border-top: 2px solid white;
    padding: 0;
}

nav li:hover {
  background-color: rgba(37, 85, 35,.6);
  border-top: 2px solid white;
  padding: 0;
}

nav li div:hover > a {
  color: white;
}

nav ul ul li:hover {
  background-color: rgba(37, 85, 35,.8);
  border: none;
}

nav ul ul li a:hover {
  color: white;
}

@media only screen and (max-width: 832px) {
  .header{
    background-size: auto;
  }
  nav a {
    padding-left: 20px;
  }
  nav ul li {
    display: table;
    width: 100%;
    height: 40px;
  }
  .navbar-selected {
  }
  nav ul ul {
  	display: table-cell;
    position: relative;
    top: 0;
  }
  nav ul ul li a {
    display: table-cell;
    width: 100%;
    height: 40px;
  }
  #navbar_fln a,#navbar_ckg a {
    width: 50%;
  }

}

.jsx-4017309047.tab-container.tab-container--vert {
  height: 100%;
  background-color: #424242;
}

.sidebar_items.tab.tab:last-of-type {
  border: 0;
}

.FLN_img {
  height: 400px;
}

/* Main content */
.jsx-4017309047.tab-content.tab-content--vert {
  padding-left: 10px;
  width: 100%;
}

.jsx-4017309047.tab-parent.tab-parent--vert {
  width: 100%;
}

/* FLN slideshow */
.imgShown {
  width: 573.5px;
}

.imgSlideshow {
  position: relative;
  margin: auto;
}

/* FLN table */
.fln_table {
  list-style:none;
  font-size: .9rem;
  width: 100%;
  padding: 0;
}

.fln_table>li {
  display: table-cell;
  width: 10%;
  height: 50px;
  border: 1px solid red;
  text-align: center;
}

.fln_details summary::-webkit-details-marker {
  display:none;
}

.fln_t_ani {
  background-color: rgb(250,230,217);
}

.fln_t_env {
  background-color: rgb(217,239,217);
}

.fln_t_feed {
  background-color: rgb(218,231,242);
}

#imgNextLeft, #imgNextRight {
  cursor: pointer;
  position: absolute;
  border: none;
  top: 50%;
  width: auto;
  margin-top: -22px;
  padding: 16px;
  color: white;
  font-weight: bold;
  font-size: 18px;
  transition: 0.6s ease;
  user-select: none;
  background-color: rgba(0,0,0,0.2);
}

#imgNextRight {
  right: 0;
}

#imgNextLeft:hover, #imgNextRight:hover {
  background-color: rgba(0,0,0,0.8);
}

.jelly-commetnary {
  margin-top: 15px;
  margin-bottom: 10px;
  padding: 0;
}

/* Remove undo redo button */
._dash-undo-redo {
  display: none;
}

.sankey-link {
    fill-opacity: 0.3 !important;
}

/* Icons */
#tabs {
  margin: 0;
  display: table;
  width: 100%;
}

#navbar_home::before {
  font-family: 'WebIcons';
  content: "\E647";
  font-size: 30px;
  font-weight: 400;
  position: absolute;
  left: 5px;
  top: 4px;
  color: White;
}

#navbar_ckg::before {
  font-family: 'WebIcons';
  content: "\E648";
  font-size: 30px;
  font-weight: 400;
  position: absolute;
  left: 5px;
  top: 7px;
  color: White;
}


#navbar_dsc::before {
  font-family: 'WebIcons';
  content: "\E63D";
  font-size: 30px;
  font-weight: 400;
  position: absolute;
  left: 5px;
  top: 7px;
  color: White;
}

#navbar_fln::before {
  font-family: 'WebIcons';
  content: "\e635";
  font-size: 30px;
  font-weight: 400;
  position: absolute;
  left: 5px;
  top: 7px;
  color: White;
}

#navbar_mtw::before {
  font-family: 'WebIcons';
  content: "\E639";
  font-size: 26px;
  font-weight: 400;
  position: absolute;
  left: 5px;
  top: 7px;
  color: White;
}

@media only screen and (max-width: 832px) {
  #navbar_mtw::before, #navbar_fln::before, #navbar_dsc::before, #navbar_home::before, #navbar_ckg::before {
    position: relative;
    top: 2px;
    font-size: 20px;
  }
  #navbar_fln::before {
    top: 7px;
  }
  #navbar_ckg::before {
    top: 27px;
  }
}

#range_container {
  height: 50px;
  padding-left: 20px;
}

#intro_paragraph {
  padding: 5px 15px 0px 15px;
}

p {
  margin-bottom: 10px;
}

.intro_paragraph {
  padding: 0px 15px 0px 15px;
}

.stocktake_content {
  padding: 0px 15px 0px 15px;
}

#reports_header {
  font-weight: 600;
}

h2 {
  color: White;
  font-size: 20px;
  background-color: #255523;
  padding: 4px;
  margin-bottom: 5px;
  vertical-align: middle;
  display:table-cell;
  padding-left: 42px;
}

h3 {
  font-weight: 400;
  font-size: 1rem;
  padding: 4px;
  margin: 0;
}

.h2_container {
  display: table;
  width: 100%;
  height: 40px;
}

@media only screen and (max-width: 1300px) {
  .h2_container {
    height: 60px;
  }

  #h2_dsc::before {
    top: 15px !important;
  }

  #h2_fln::before {
    top: 12px !important;
  }

  #h2_mtw::before {
    top: 15px !important;
  }

  #h2_mt::before {
    top: 15px !important;
  }
}

.cardstyle {
  box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
  height: 97%;
  color: black;
  display: block;
  padding-bottom: 10px;
}

#h2_dsc::before {
  font-family: 'WebIcons';
  content: "\E63D   ";
  font-size: 25px;
  font-weight: 400;
  vertical-align: sub;
  position: absolute;
  left: 23px;
  top: 5px;
  box-sizing: border-box;
}

#h2_fln::before {
  font-family: 'WebIcons';
  content: "\E635   ";
  font-size: 30px;
  font-weight: 400;
  position: absolute;
  left: 23px;
  top: 2px;
  box-sizing: border-box;
}

#h2_mtw::before {
  font-family: 'WebIcons';
  content: "\E639   ";
  font-size: 22px;
  font-weight: 400;
  position: absolute;
  left: 23px;
  top: 5px;
  box-sizing: border-box;
}

#h2_mt::before {
  font-family: 'WebIcons';
  content: "\E644   ";
  font-size: 25px;
  font-weight: 400;
  position: absolute;
  left: 23px;
  top: 5px;
  box-sizing: border-box;
}

.col-md-6 {
  padding-bottom: 15px;
}

.imgSlideshow {
  width: 573px;
}

.chart-container {
  width: 100%;
}

/* Dairy strategy comptencies page */
#sankey_tabs {
  margin-top: 35px;
}

#sankey_tabs .tab.tab {
  height: 50px;
  padding: 0;
  display: table;
  width: 150px;
  background: rgb(75,75,75);
  color: White;
}

#sankey_tabs .tab.tab:hover{
  background: rgb(45,45,45);
}

#sankey_tabs span {
  display:table-cell;
  vertical-align: middle;
}

#sankey_tabs .tab.tab.tab--selected {
  background: rgb(37, 85, 35);
  border-left: none;
  border-bottom: 2px solid white !important;
}

ul {
  list-style: none; /* Remove default bullets */
}

ul li::before {
  content: "\2022";  /* Add content: \2022 is the CSS Code/unicode for a bullet */
  color: orange; /* Change the color */
  font-weight: bold; /* If you want it to be bold */
  display: inline-block; /* Needed to add space between the bullet and the text */
  width: 1em; /* Also needed for space (tweak if needed) */
  margin-left: -1em; /* Also needed for space (tweak if needed) */
}

.indent_list li::before {
  content: "\2010";  /* Add content: \2022 is the CSS Code/unicode for a bullet */
  color: black;
  font-weight: 400; /* If you want it to be bold */
  display: inline-block; /* Needed to add space between the bullet and the text */
  width: 1em; /* Also needed for space (tweak if needed) */
  margin-left: -1em; /* Also needed for space (tweak if needed) */
}

li {
  padding-bottom: 10px;
}

summary {
  padding: 5px;
  font-weight: 500;
  font-size: 1.1rem;
}

details summary::-webkit-details-marker {
  color: orange;
}

details[open] summary ~ * {
  animation: sweep 1s ease-in-out;
}

@keyframes sweep {
  0%    {opacity: 0}
  100%  {opacity: 1}
}

.commitment-details details {
  padding-bottom: 10px;
}

/* Inchworm, Modeling the workforce page */
#inchworm_graph_title {
  display: table;
  margin-bottom: 10px;
}

#inchworm_graph_title>div, #inchworm_graph_title>span, #inchworm_graph_title>span>span {
  vertical-align: middle;
  display: table-cell;
}

.inchworm_title_options {
  display: table-cell;
  width: 150px;
  padding-left: 3px;
  padding-right: 3px;
}

.VirtualizedSelectOption {
  font-size: .8em;
}

.inchworm_chart {
  width: calc(100% - 350px);
}

.inchworm_filters {
  width: 350px;
  background: rgb(240,240,240);
  padding: 5px;
}

#filters_title {
  font-size: 1.5rem;
}

.rc-slider {
  margin-bottom: 20px;
  width: 150px;
  margin-left: 10px;
}

.filters_details {
  width: 100%;
  display: flow-root;
  padding: 2px;
}

.filters_details>div {
  float: right;
  display: table;
}

.filters_details>div>div {
  display: table-cell;
  vertical-align: middle;
}

.filters_summary {
  padding-right: 3px;
}

.filters_content {
  width: 170px;
}


/* Learning development dashboard */
.container {
  position: relative;
}

.fln-main-chart-container {
  width: 70%;
  display: inline-block;
  vertical-align: top;
  overflow: visible;
  min-width: 690px;
}

.fln-side-chart-container {
  width: 30%;
  display: inline-block;
  vertical-align: top;
  overflow: visible;
}

.text {
  font-size: 2rem;
}

#commentary-container {
  display: inline-block;
  vertical-align: top;
  white-space: pre-line;
}

.intro-col {
  width: calc(100% - 350px);
}

.filter-col {
  width: 350px;
}

.filter-col > div {
  width: 100%;
  display: table;
}

.filter-col > div > div {
  float: right;
  display: flex;
}

@media only screen and (max-width: 832px) {
  .filter-col, .intro-col {
    width: 100%;
  }
  .filter-col > div {
    display: block;
  }
  .filter-col > div > div {
    float: left;
    display: block;
  }
  .filter-text {
    padding-left: 5px;
  }
}


.input-box {
  width: 200px;
  margin-left: 5px;
  margin-bottom: 5px;
}

.employee-commetnary, .employer-commetnary {
  white-space: pre-line;
  width: 70%;
  padding-right: 30px;
  margin-bottom: 10px;
}

text {
  fill: black !important;
}

.axistext {
  display: none !important;
}

@media only screen and (max-width: 832px) {
  .employee-commetnary, .employer-commetnary {
    width: 100%;
    padding-right: 15px;
  }
  .fln-main-chart-container, .fln-side-chart-container {
    width: 100%;
    margin-left: -35px;
    margin-right: -35px;
  }
}

.employee-commetnary>p, .employer-commetnary>p {
  margin-bottom: 5px;
}

.commentary-leader {
  margin-bottom: 10px;
}

.commentary-follower{
  margin-top: 5px;
}

.filter-text {
  padding-top: 5px;
}

.col-no-padding-left {
  padding-left: 0;
}

.commentary-box {
  margin-top: 25px;
}

/* Farm assistant learning needs */
.legend-row {
  position: relative;
}

.faln-legend, #wln-legend {
  position: absolute;
  top: 27px;
  font-size: .9rem;
  left: 10px;
  z-index: 1002;
}

#legend_fa::before {
  content: "■";
  font-size: 1.5rem;
  color: #69BD28;
}

#legend_fa {
  margin-right: 10px;
}

#legend_fm::before {
  content: "■";
  font-size: 1.5rem;
  color: #00A7B8;
}


/* Current knowledge gaps */
.ckg-graph-title {
  font-size: 1.5rem;
  text-align: center;
  margin-bottom: 5px;
  font-weight: 500;
  padding-top: 5px;
}

.white-space {
  background: white;
  height: 10px;
}

.gaps-body {
  padding-top: 5px;
  background: rgba(240,240,240);
}

.gaps-body .col-md-6 {
  padding: 0 !important;
}

.eva-medians {
  font-size: 12px;
  padding-left: 55px;
}

.medians {
  float: left;
}

.hover-container{
  float: right;
  padding-right: 10px;
}

.hover-reference{
  font-size: 12px;
}

/* Hover over for survey questions */
.hover-container {
  position: relative;
}

.hover-container:hover .hover-img {
  display: inherit;
}

.hover-img {
  display: none;
  position: absolute;
  top:17px;
  right:5px;
  z-index: 1001;
}

/* Key capability areas */
#kca-chart .col-12 {
  padding: 0 !important;
  margin-bottom: 15px;
}

.radio {
  margin: 16px 0;
  display: block;
  cursor: pointer;
}

.modebar {
  display: none !important;
}
