
/*
  tabs
*/
.tab-group {
  width: 100%;
  height: 40px;
  display: flex;
  align-items: center;
}
.tab-group .tab {
  flex: auto;
  background-color: #eee;
  font-weight: bold;
  text-align: center;
  line-height: 35px;
  vertical-align: middle;
  border-bottom: solid 5px #eee;
  border-top-left-radius: 6px;
  border-top-right-radius: 6px;
}
.tab-group .tab.active {
  border-bottom: solid 5px #24a0ed; /* blue */
  background-color: #fff;
}
.tab-content:not(.on) {
  display: none;
}

/*
  dropdown menu
*/
.dropdown {
  position: relative;
}
.dropdown.on {
  background-color: #eee !important;
}
.dropdown-menu {
  position: absolute;
  top: 100%;
  right: -10px;
  min-width: 150px;
  padding: 6px 0;
  box-shadow: 0 0 5px #999;
  background-color: #fff;
  border-radius: 6px;
  z-index: 100;
}
.dropdown:not(.on) .dropdown-menu {
  display: none;
}
.dropdown.on:before {
  content: "";
  position: fixed;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100dvh;
  background-color: #00000011;
  z-index: 10;
}
.dropdown-menu li {
  width: auto;
  white-space: nowrap;
  padding: 8px 15px;
  font-size: initial;
  font-weight: normal;
  text-align: left;
}
.dropdown-menu li:active {
  background-color: #eee;
}
.dropdown-menu li i {
  display: inline-block;
  width: 20px;
}

/*
  collapse
*/
.collapse {
  max-height: 0;
  width: auto;
  overflow: hidden;
  transition: max-height 0.5s ease-out;
}
.collapse.on {
  max-height: 500px;
  transition: max-height 1s ease-out;
}


/*
  toast
*/
#toastMessageWrap {
  position: absolute;
  left: 0;
  top: -100px;
  width: 100vw;
  height: auto;
  background-color: transparent;
  z-index: 1000;
  transition: top 0.5s;
}
#toastMessage {
  width: 320px;
  font-size: 1em;
  box-shadow: 0 0 3px #555;
  padding: 15px 20px;
  margin: 0 auto;
  color: #eee;
  background-color: #777;
}
#toastMessageWrap.on {
  top: 30px;
}
#toastMessage i {
  font-size: 1em;
  padding-right: 7px;
}

/*
  Line Tabs - unused item from HerdApp
*/
.lnTabs ul {
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  /*max-width: 900px;*/
  margin: 0 auto;
}
.lnTabs ul li.tab {
  flex: 1; /* all tabs have the same width */
  height: 40px;
  /*max-width: 200px;*/
  line-height: 38px;
  vertical-align: middle;
  text-align: center;
  color: var(--theme-surfie-green-ee);
  border: solid thin #ccc
}
.lnTabs ul li.filler {
  flex: 1;
  height: 40px;
  border-bottom: solid thin #ccc
}
.lnTabs ul li.active {
  border-bottom: none;
  border-top-left-radius: 5px;
  border-top-right-radius: 5px;
  font-weight: bold;
  background-color: #fcfcfc55;
}
.lnTabs ul li.tab:not(.active) {
  border: none;
  border-bottom: solid thin #ccc
}
.lnTabs .nav-pills > li + li {
  margin-left: unset;
}
.lnTabs .nav > li.tab > a {
  padding: 0;
  color: unset;
}
.lnTabs .nav-pills > li.tab.active > a {
  background-color: unset;
}
.lnTabs .nav-pills > li.tab + li.tab {
  margin-left: 0;
}
.lnTabs .tabBody .tabContent:not(.on) {
  display: none;
}

/*
  MsgBox
*/
#ui-msgbox {
  width: 100vw;
  height: 100vh;
  background: #00000011;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
  position: fixed;
  left: 100vw;
  top: 0;
}
#ui-msgbox.on {
  left: 0;
}
#ui-msgbox .msg-box {
  width: 85vw;
  min-width: 280px;
  max-width: 350px;
  border-radius: 5px;
  background-color: #fff;
  box-shadow: 0 0 5px #666;
  display: flex;
  flex-direction: column;
}
#ui-msgbox .msg-box .title-bar {
  width: 100%;
  overflow: hidden;
  padding: 15px;
  line-height: 20px;
  vertical-align: middle;
  text-align: center;
  font-size: 15px;
  font-weight: bold;
  border-bottom: solid thin #ddd;
}
#ui-msgbox .msg-box .msg-body {
  padding: 15px;
  width: 100%;
  min-height: 90px;
}
#ui-msgbox .msg-box .button-bar {
  display: flex;
  align-items: center;
  border-top: solid thin #ddd;
}
#ui-msgbox .msg-box .button-bar button {
  flex: 1;
  height: unset;
  border: unset;
  padding: 10px;
  margin: 5px;
  line-height: 20px;
  vertical-align: middle;
  font-size: 16px;
  text-align: center;
  background-color: transparent;
  border-radius: 5px;
  cursor: pointer;
}
#ui-msgbox .msg-box .button-bar button:hover {
  background-color: #eee;
}
