@CHARSET "UTF-8";

/* --------------------------------- Tabs ---------------------------------- */

#tabs {
  position: relative;
  overflow: hidden;
  list-style: none;
  padding: 5px 10px 0 1px;
}

#tabs li
{
  position: relative;
  float: left;
  margin: 0 5px 0 0;
}

#tabs li *
{
  line-height: 13px;
}

#tabs li,
#tabs li a
{
  min-width: 60px;
}

#tabs li a
{
  display: table-cell;
  height: 32px;
  padding: 1px 20px 0 20px;
  vertical-align: middle;
  text-align: center;
  text-decoration: none;
  color: #013964;
  border-radius: 5px 5px 0 0;
  background: -webkit-linear-gradient(
    top,
    rgba(231, 243, 252, 0.7) 0%,
    rgba(236, 245, 252, 0.7) 32%,
    rgba(218, 238, 252, 0.7) 40%,
    rgba(188, 217, 239, 0.7) 80%,
    rgba(164, 189, 208, 0.7) 100%
  );
  box-shadow:
    2px 2px 3px rgba(0, 0, 0, 0.2),
    0 0 0 1px rgba(0, 60, 105, 0.9),
    inset 1px 1px 1px rgba(255, 255, 255, 0.6);
  -webkit-transition-property: background, box-shadow, color, opacity;
  -webkit-transition-duration: 0.2s;
  -webkit-transition-timing-function: ease-out;
}

/* Hover effect */

#tabs li a:hover
{
  background-color: rgba(255, 255, 255, 1);
}

/* Selected tab */

#tabs li.selected a
{
  color: #2B477D;
  background: #FFF;
  border-bottom: 1px solid #FFF;
}

/* Conditionally hide elements based on selection state */
#tabs li.selected .when-not-selected,
#tabs li:not([class~="selected"]) .when-selected
{
  display: none;
}

/* First tab with special top-left rounding and more minimum width */

#tabs li:first-child a
{
  border-top-left-radius: 40px 22px;
}

#tabs li:first-child,
#tabs li:first-child a
{
  min-width: 85px;
}

/* Last tab with special appearance (all functions switcher) */

#tabs li:last-child
{
  float: right;
  margin: 0 0 0 0;
}

#tabs li:last-child a
{
  padding: 1px 12px 0 12px;
  color: rgba(255, 255, 255, 0.85);
  border-radius: 0;
  border: 0px;
  border-left: 2px;
  border-right: 2px;
  -webkit-border-image: url(../images/layout/tab_allfuncs.png) 2 2 2 2 stretch stretch;
  background: none;
  box-shadow: inset 0px -20px 20px -10px rgba(0, 0, 0, 0.04);
}

#tabs li:last-child a:hover
{
  color: rgba(255, 255, 255, 1);
  box-shadow: inset 0px -20px 20px -10px rgba(255, 255, 255, 0.3);
}

/* Hide all other tabs when "all functions" is selected */

#tabs.selected-only li:not([class~="selected"]) a
{
  visibility: hidden;
}

/* Avoid tab selection fading when returning from the "all functions" tab */

#tabs li.selected:not(:last-child) a
{
  -webkit-transition-property: none;
}


/* -------------------------- Tab content panels --------------------------- */

#tab-panels .panel:not([class~="selected"]):not([class~="before-selected"])
{
  display: none;
}

#tab-panels .panel.before-selected
{
  opacity: 0.01;
  display: block;
}

#tab-panels .panel.selected
{
  opacity: 1;
  display: block;
}


/* ---------- Following code will not be executed by the software ---------- */

/*<<*/
#tabs li a
{
  max-width: 70px;
}
#tabs li:first-child a
{
  max-width: 90px;
}
#tabs li:last-child a
{
  max-width: 100px;
}
/*>>*/
