.menubar {
  position: relative;
  width: 100%;
  padding: 0;
  z-index: 2;
}     

.menubar > button {
  position: relative;
  padding: 0px 20px 0px 10px;  
  font-family: TheSansLT;
  font-size: inherit;
  border: none;
  margin: 0;
  height: 34px;
  color: #333;
  background: #e0e0e0;
  cursor: pointer;
  border: solid 1px #ccc;
  border-bottom: 0px;    
  margin-top: 4px;
  margin-left: 3px;
  outline: none;
}

.menubar > button:not(:first-child) {

}

.menubar > button:hover {
  background: #ddd;
}

.menubar > button:before {
  font-family: 'FontAwesome';
  padding: 10px;
}

@media only screen and (max-width: 400px) {
  .menubar > button:not(.first) > span {
    display: none;
  }
  .menubar > button:not(:first-child) {
    padding: 0px 10px 0px 10px;
  }
}

.menubar > button.sf_kr:before {content: '\f200';}
.menubar > button.sf:before {content: '\f080';}
.menubar > button.cc:before {content: '\f200';}
.menubar > button.filter:before {content: '\f0c9';}
.menubar > button.info:before {content: '\f129';}
.menubar > button.download:before {content: '\f019';}

.menubar > button.first {
  margin-left: 0px;
}

.menubar > button.selected {
  background: #f1f1f1;
  padding-top: 4px; 
  margin-top: 0px; 
  height: 38px;
  top: 1px;
}

.submenu {
  z-index: 1;
  display: block;
  background: #f1f1f1;
  border: solid 1px #ccc;
  border-bottom: 0;
  padding: 8px;
  overflow: hidden;
}

.submenu.hidden {
  display: none;
}

.submenu > div {
  width: 100%;
  display: none;
  z-index: 1;
  color: #333;
  /*font-size: 15px;    */
}

.submenu > div.active {
  display: block;
  z-index: 2;
}

#filter_panel .subgroup {
  float: left;
  width: 25%;
}

#filter_panel .subgroup ul {
  padding: 0;
  clear: both;
  display: block;
  margin: 0;
}

#filter_panel .subgroup ul li {
  display: block;
  list-style-type: none;
  list-style-position: inside;
}

#filter_panel .subgroup--detail {
  clear: both;
  display: flex;
}

#filter_panel button {
  text-align: left;
  font-family: inherit;
  font-size: inherit;
  color: #333;
  background-color: #f1f1f1;
  border: 0;
  padding:  2px;
  cursor: pointer;
  width: 100%;  
  outline: none;
}

#filter_panel button:hover {
    background-color: #ddd;
}

#filter_panel button.selected {
  color: #eee;
  background-color: #ff4e50;
}

#filter_panel button.title {  
  color: #2962a4;
  cursor: default;
}

#filter_panel button.title:hover {
    background-color: #f1f1f1;
}

@media only screen and (max-width: 540px) {
    body {
      font-size: 14.4158px;
    }
    #filter_panel .subgroup--detail {
      flex-wrap: wrap;
      flex-grow: 1;
    }
    #filter_panel .subgroup,
    #filter_pannel button {
        display: block;
        width: 100%;
        padding-left: 14px;
    }
    #filter_panel button.title {
        margin:0;
        cursor: pointer;
        padding-left: 4px;
    }
    #filter_panel button.title:hover {
      background-color: #ddd;
    }
    #filter_panel button.title::before {
      font-size: inherit;
      content: '+';
      position: absolute;
      left: 8px;
    }
    #filter_panel button.title.opened::before {
      content: '-';
    }
    #filter_panel .subgroup ul {
        display: none;
    }
    #filter_panel .subgroup ul.sub--opened {
        display: block;
        animation: animatetop 0.4s;
    }
}

#info_panel {
  /*font-size: 15px;*/
  overflow: hidden;
}

#info_panel > div {
  color: #333;
}

#info_panel > div > span {
  color: #000;
}

#info_panel > div > a {
  color: #333;
  font-weight: bold;  
}

#sf_kr_panel .buttons {
  display: flex;
  flex-wrap: wrap;  
}

#sf_kr_panel button {
  text-align: left;
  font-family: inherit;
  font-size: inherit;
  border: 0;
  cursor: pointer;
  min-width: 64px;
  max-width: 128px;
  text-align: center;
  outline: solid 4px #fff;
  margin: 5px;
  padding: 4px;
}

#sf_kr_panel button.clear {
  background-color: #aaa;
  color: #222;
  outline-color: #aaa;
}

#sf_kr_panel button.back {
  background-color: #aaa;
  color: #222;
  outline-color: #aaa;
}

#sf_kr_panel button.active {
  opacity: 0.5;
  outline: 0  
}