.menubar {
  position: relative;
  width: 100%;
  padding: 0;
  z-index: 2;
}     

.menubar > button {
  position: relative;
  padding: 0px 20px 0px 10px;
  font-family: TheMix,Thesis,helvetica,roboto,"droid sans",arial,sans-serif;
  font-size: 15px;
  border: none;
  margin: 0;
  height: 34px;
  color: #444;
  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: #f0f0f0;
  padding-top: 4px; 
  margin-top: 0px; 
  height: 38px;
  top: 1px;
}

.submenu {
  z-index: 1;
  display: block;
  background: #f0f0f0;
  border: solid 1px #ccc;
  padding: 8px;
  overflow: hidden;
}

.submenu.hidden {
  display: none;
}

.submenu > div {
  width: 100%;
  display: none;
  z-index: 1;
  color: #444;
  font-family: TheMix,Thesis,helvetica,roboto,"droid sans",arial,sans-serif;
  font-size: 15px;    
}

.submenu > div.active {
  display: block;
  z-index: 2;
}

#filter_panel .subgroup {
  float: left;
  width: 20%;
}

#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: #444;
  background-color: #f0f0f0;
  border: 0;
  cursor: pointer;
  width: 100%;
  padding: 2px;
  outline: none;
}

#filter_panel button:hover {
    background-color: #ddd;
}

#filter_panel button.selected {
  color: #eee;
  background-color: #ff4e50;
}

#filter_panel button.title {  
  color: #0096a0;
  cursor: default;
}

#filter_panel button.title:hover {
    background-color: #f0f0f0;
}

@media only screen and (max-width: 540px) {
    #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: 1em;
      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: #444;
}

#info_panel > div > span {
  font-weight: bold;
}

#info_panel > div > a {
  color: #444;
  font-weight: bold;  
}

#sf_kr_panel button {
  text-align: left;
  font-family: inherit;
  font-size: inherit;
  border: 4px solid #0000;
  cursor: pointer;
  min-width: 80px;
  text-align: center;
  float: left;
  outline: none;
}

#sf_kr_panel button.clear {
  margin-left: 4px;
  background-color: #aaa;
  color: #222;
  border: solid 4px #f0f0f0;
}

#sf_kr_panel button.back {
  background-color: #aaa;
  color: #222;
  float: right;
  border: solid 4px #f0f0f0;  
}

@media only screen and (max-width: 730px) {
  #sf_kr_panel button.clear{
    float: none;
    margin:0;
  }
  #sf_kr_panel button.back{
    float: none;
  }
}

#sf_kr_panel button.active {
  opacity: 0.5;
  border-color: transparent;
  background-clip: padding-box;
}