/*
=========================================================
FACTS CSS
=========================================================
 * Innehåller styling för fakta och statistik-modulerna.
 *
 * Copyright (C) Limepark AB. Upprättad 2016.
=========================================================*/


/*
---------------------------------------------------------
GRUNDLÄGGANDE
--------------------------------------------------------- */
.lp-user-hidden {
  height: 1px;
  left: -10000px;
  overflow: hidden;
  position: absolute;
  top: auto;
  width: 1px;
}

.lp-facts {
  border: 1px solid #dadada;
  margin-bottom: 30px;
}

.lp-facts__header,
.lp-facts__chart .lp-compare,
.lp-facts__footer,
.lp-facts__export {
  padding: 30px;
}

.lp-facts__chart .lp-chart {
  padding: 30px 0;
}

.lp-facts__header,
.lp-facts__chart .lp-compare {
  background: #fafafa;
}

.lp-facts__chart .lp-compare,
.lp-facts__export {
  border-top: 1px solid #dadada;
}


/*
---------------------------------------------------------
HUVUD
--------------------------------------------------------- */

.lp-facts__header {
  border-bottom: 1px solid #dadada;
  position: relative;
}

.lp-facts__header:after {
  background: #fafafa;
  border-bottom: 1px solid #dadada;
  border-right: 1px solid #dadada;
  bottom: -6px;
  content: '';
  display: block;
  height: 10px;
  left: 50%;
  margin-left: -5px;
  position: absolute;
  -webkit-transform: rotate(45deg); /* Ch <36, Saf 5.1+, iOS < 9.2, An =<4.4.4 */
  -ms-transform: rotate(45deg); /* IE 9 */
  transform: rotate(45deg); /* IE 10, Fx 16+, Op 12.1+ */
  width: 10px;
}

.lp-facts__header .lp-facts-chooser select,
.lp-facts__header .lp-facts-chooser button {
  margin-bottom: 1em;
  margin-right: 0;
}

.lp-facts-chooser label {
  display: block;
  position: absolute;
  top: -100000px;
}

/*
---------------------------------------------------------
DIAGRAM
--------------------------------------------------------- */

.lp-tabs {
  margin-top: 30px !important;
}

.lp-facts__chart .lp-tab-content {
  display: none;
  margin: 0;
}

.lp-facts__chart .lp-tab-content.selected {
  display: block;
}

.lp-facts__chart .lp-tab-content h2 {
  display: none;
}

.lp-facts__chart-description {
  margin: 0 0 15px;
  padding: 0 30px;
}

.lp-facts .highcharts-title {
   display: none;
}


/*
---------------------------------------------------------
JÄMFÖR
--------------------------------------------------------- */

.lp-facts .lp-compare-series {
  list-style: none;
  margin-bottom: 0;
  padding: 0;
}

.lp-facts .lp-compare-series li {
  display: inline-block;
  margin: 0 20px 10px 0;
}

.lp-facts .lp-compare-series button {
  background: #000;
  border: 0;
  border-radius: 100%;
  color: #fff;
  display: block;
  float: left;
  font-size: inherit;
  line-height: inherit;
  padding: 0;
  text-align: center;
  width: 19px;
  margin-top: 2px;
}

.lp-facts .lp-compare .lp-compare-series button:after {
  display: none;
}

.lp-compare {
  padding-bottom: 1px !important;
}

.lp-compare > button {
  margin-left: 0.6em;
}

.lp-compare select {
  width: 60%;
}


/*
---------------------------------------------------------
EXPORTERINGSALTERNATIV
--------------------------------------------------------- */

.lp-facts__export {
  padding: 16px 30px;
  text-align: center;
}

.lp-facts__export a {
  margin: 0.2em 0.3em;
}


/*
---------------------------------------------------------
KONTROLLER - KNAPPAR OCH RULLGARDINER
--------------------------------------------------------- */

.lp-facts a,
.lp-facts button,
.lp-facts select {
  border: 1px solid #dadada;
  font-size: 1.1rem;
  margin-bottom: 0.6em;
  max-width: 100%;
  padding: 12px 20px;
}

.lp-facts__export button {
    margin: 1em .3em;
    visibility: hidden;
}
.lp-facts__export a {
    margin: 1em .3em; 
}

.lp-facts button:disabled {
  opacity: .5 !important;
  cursor: not-allowed;
}

.lp-facts select {
  background: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAMAgMAAAAfYnVoAAAADFBMVEUAAAAdHR0eHh4eHh7n7a0mAAAAA3RSTlMAgX5vUzHvAAAAO0lEQVQI1w2Luw0AIBQCz8oV7Gyd0s+Uto5h5fMSjgAJFJAOMibpUQ/5ogxWR8Z6QN1Xz3H0FM5+BBp8fZYRHawuEiIAAAAASUVORK5CYII=') no-repeat center right 10px #fff;
  background-size: 10px;
  border-radius: 0;
  cursor: pointer;
  height: 46px;
  line-height: 1;

  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}

.lp-facts select::-ms-expand {
  display: none;
}

.lp-facts a,
.lp-facts button {
  background: #fff;
  color: #000;
  cursor: pointer;
  display: inline-block;
  line-height: 1.2;
  margin-right: 0.6em;
  padding: 1em 1.4em;
  text-decoration: none;
}

.lp-facts a:hover,
.lp-facts button:hover {
  background: #eaeaea;
  color: #000;
}

.lp-facts a.selected,
.lp-facts button.selected {
  background: #000;
  color: #fff;
}

/* Avvikelser */
.lp-facts__categories-nav a {
  padding: 0.6em 1.2em;
}

.lp-facts__export a,
.lp-facts__export button {
  margin: 1em 0.3em;
}

.lp-facts__export a:after,
.lp-facts__chart .lp-compare button:after {
  background: no-repeat center left url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUAgMAAADw5/WeAAAACVBMVEUAAAAAAAAAAACDY+nAAAAAAnRSTlMAf7YpoZUAAAAySURBVAjXHcgxAQBBEMLAlYZERND8qzxIiilyf/swaNSxZ9Co2j2DRtXuGTRqsi9oZD9giiUiSslq9QAAAABJRU5ErkJggg==');
  background-size: 10px 10px;
  content: '';
  display: inline-block;
  height: 10px;
  margin: 0 0 0 10px;
  -webkit-transition: all 0.3s ease;
  -moz-transition: all 0.3s ease;
  -ms-transition: all 0.3s ease;
  -o-transition: all 0.3s ease;
  transition: all 0.3s ease;
  width: 15px;
}

.lp-facts__export a:hover:after,
.lp-facts__chart .lp-compare button:hover:after {
  background-position: right center;
}


/*
---------------------------------------------------------
HIGHCHARTS
--------------------------------------------------------- */

/* Download chart as image link */
.highcharts-button tspan {
  cursor: pointer;
}

.highcharts-button tspan:hover {
  text-decoration: underline;
}

/*
---------------------------------------------------------
TEXT
--------------------------------------------------------- */

.lp-chart-heading {
  font-family: "roboto webb",sans-serif;
  font-size: 1.6rem;
  font-style: normal;
  font-weight: normal;
  margin: 6px 0 0 0 !important;
}

.lp-chart-subheading {
  margin: 10px 0 0 0 !important;
}

.lp-chart-source {
  font-size: 0.8rem;
  margin: -30px 30px 10px 30px !important;
  text-align: left;
}

/*
---------------------------------------------------------
KARTFUNKTION
--------------------------------------------------------- */

.lp-map {
  margin: 10px 0 30px 0;
}

.lp-map-controls {
  background: #fafafa;
  border-top: 1px solid #dadada;
  padding: 30px 10px;
}

.lp-map-controls input {
  margin-right: 10px;
}

/*
---------------------------------------------------------
RESPONSIVE
--------------------------------------------------------- */

@media all and (max-width: 667px) {
  .lp-facts select {
    width: 100%;
  }

  .lp-facts__categories-nav {
    text-align: center;
  }

  .lp-facts__export a,
  .lp-facts__export button {
    display: block;
    margin: 1em 0;
  }

  .lp-facts__export a {
    width: auto;
  }

  .lp-facts__export button {
    width: 100%;
  }
}

.sv-js .lp-facts__chart-table-container,
.sv-edit-mode .lp-facts__chart-table-container {
  display: none;
}