#emis_table {
  padding-bottom: 80px;
}

#emis_table h4.bordered {
  font-family: "bebas_neuebook", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

#emis_table table {
  table-layout: fixed;
}

#emis_table table th,
#emis_table table td {
  text-align: center;
  vertical-align: middle;
}

#emis_table .tab-head table {
  background: #fff;
  margin-bottom: 0px;
  padding-bottom: 21px;
}

#emis_table .tab-head th,
#emis_table .tab-head td {
  border: 1px solid #dddddd;
  border-top: none;
}

#emis_table .table_inner th,
#emis_table .table_inner td {
  border: none;
}
#emis_table .table_inner .fuel_value {
  border-top: 1px solid #dddddd;
}
#emis_table .table_inner .fuel_value th {
  border-right: 1px solid #dddddd;
}

#emis_table .tab-head .fuel_data {
  padding: 0;
  border: none;
  border-right: 1px solid #dddddd;
}

#emis_table .tab-content {
  background: #fff;
  border-left: 1px solid #dddddd;
  border-right: 1px solid #dddddd;
}

#emis_table #tab_nazwy.emisje_sticky {
  top: 0;
  left: 0;
  right: 0;
  position: fixed;
  padding: 0;
  margin: 0;
  z-index: 999;
  background: #fff;
  max-width: 1000px;
  margin: 0 auto;
}

#emis_table #tab_nazwy.table_for_current_model.emisje_sticky {
  top: 60px;
}

#emis_table #tab_nazwy.emisje_sticky .fuel_data {
  border-bottom: 1px solid #dddddd;
}

#emis_table .table_for_current_model {
  border-left: none;
  border-right: none;
}

#emis_table .table_for_current_model tr th:first-child {
  border-left: none;
}

#emis_table .table_for_current_model tr th:last-child {
  border-right: none;
}

/* przeniesione z CAPS.css SMD */

/*** EMISJE***/
.emmissions_comp {
  position: fixed;
  z-index: 99999;
  bottom: 0px;
  top: auto;
  left: 0;
  right: 0;
  margin: 0 auto;
  padding: 0 15px;
  background-color: #cfcfcf;
}
.emmissions_mob .container {
  padding: 0;
}
.emmissions .emis_title {
  font-family: "bebas_neuebold", sans-serif;
}
.emmissions span[class^="klasa"] {
  padding: 1px 11px 1px 2px;
  font-size: 8px;
  line-height: 1.6;
  position: relative;
  top: -0.2em;
  margin: 0 10px;
  color: #fff;
}
.emmissions span[class^="klasa"]:after {
  content: "";
  width: 0;
  height: 0;
  bottom: 0;
  right: -8px;
  position: absolute;
  border-width: 6px 0 6px 9px;
  border-style: solid;
}
.emmissions .klasaA {
  background-color: #51bc49;
}
.emmissions .klasaA:after {
  border-color: transparent transparent transparent #51bc49;
}
.emmissions .klasaB {
  background-color: #bdd542;
}
.emmissions .klasaB:after {
  border-color: transparent transparent transparent #bdd542;
}
.emmissions .klasaC {
  background-color: #bdd542;
}
.emmissions .klasaC:after {
  border-color: transparent transparent transparent #bdd542;
}
.emmissions .klasaD {
  background-color: #ffea3d;
}
.emmissions .klasaD:after {
  border-color: transparent transparent transparent #ffea3d;
}
.emmissions .klasaE {
  background-color: #ff6920;
}
.emmissions .klasaE:after {
  border-color: transparent transparent transparent #ff6920;
}
.emmissions .klasaF {
  background-color: #ff2d16;
}
.emmissions .klasaF:after {
  border-color: transparent transparent transparent #ff2d16;
}
.emmissions .klasaG {
  background-color: #ff2d16;
}
.emmissions .klasaG:after {
  border-color: transparent transparent transparent #ff2d16;
}
@media screen and (max-width: 992px) {
  .emmissions {
    font-size: 12px;
    padding-top: 1px;
    padding-bottom: 1px;
  }
}

/*Koniec CAPS.css */

@media (max-width: 1199px) {
  #emis_table #tab_nazwy.table_for_current_model.emisje_sticky {
    top: 49px;
  }
  #emis_table #tab_nazwy.emisje_sticky {
    max-width: 970px;
  }
}

@media (min-width: 768px) and (max-width: 992px) {
  #emis_table #tab_nazwy.emisje_sticky {
    max-width: 750px;
  }
}

@media (max-width: 768px) {
  #emis_table .tab-head table {
    min-height: 120px;
  }
  #emis_table .tab-head th:not(.fuel_data),
  #emis_table .tab-head td {
    position: relative;
  }
  #emis_table .tab-head th:not(.fuel_data) span {
    transform: rotate(-90deg);
    -webkit-transform: rotate(-90deg);
    position: absolute;
    bottom: 0px;
    left: 50%;
    text-align: center;
    transform-origin: left;
    white-space: nowrap;
  }
  #emis_table .tab-head th#co2_value {
    bottom: -10px;
  }
  #emis_table .tab-head .fuel_data > table > tbody > tr:first-child th {
    height: 50px;
  }
  #emis_table .tab-head .fuel_data > table > tbody > tr:first-child th span {
    transform: none;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    font-size: 10px;
  }
  #emis_table .nav-tabs > LI {
    float: left;
  }
}

@media (max-width: 600px) {
  #emis_table .emmissions span[class^="klasa"]:after {
    display: none;
  }
  #emis_table .emmissions span[class^="klasa"] {
    padding: 0px;
    font-size: inherit;
    color: #000;
    background-color: transparent;
    top: auto;
    margin: auto;
  }
}

@media (max-width: 480px) {
  #emis_table .nav-tabs > LI a {
    padding: 10px 8px;
  }
}

@media (max-width: 350px) {
  #emis_table .nav-tabs > LI {
    float: none;
  }
}
