/* JTC Web Responsive*/

#mobile-header {
  display: none;
}

/* Removes awkward default styles on some inputs for iOS */

input[type="email"],
input[type="number"],
input[type="search"],
input[type="text"],
input[type="tel"],
input[type="url"],
input[type="password"],
textarea {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}

@media only screen and (max-width: 960px) {
  body {
    width: auto;
    height: auto;
  }
  .mobile-nav {
    display: block;
  }
  .clearfix {
    clear: both;
  }
  #mayo_logo {
    float: left;
    padding: 5px;
    width: auto;
    max-width: 285px;
    display: block;
  }
  #header {
    width: 100%;
    margin-bottom: 0;
    border: 0 none;
    position: relative;
    float: left;
    padding: 0px 0px 25px 0px;
    height: auto;
    line-height: 24px;
  }
  #header h1 {
    padding: 10px 5px 5px 0px;
    clear: both;
  }
  #page {
    border-radius: 0px;
    width: 100%;
    height: auto;
    padding: 0px;
    margin: 0px;
    border: none;
  }
  #page #main_content {
    background: #fff;
    width: 100%;
    padding: 0 15px;
    box-sizing: border-box;
    text-align: left;
    margin: 20px 0px 10px 0px;
  }
  #sidebar {
    display: none;
  }
  .mobile-nav {
    float: left;
    width: 100%;
  }
  .mobile-nav ul {
    margin: 0;
    padding: 0;
  }
  .mobile-nav li {
    float: left;
    width: 33.33%;
    list-style: outside none none;
    position: relative;
    height: 40px;
    margin: 0px;
    padding: 0px;
    background: url(/assets/black-50.png);
  }
  .mobile-nav li:nth-child(2) a {
    border-left: 2px solid #4a2;
    border-right: 2px solid #4a2;
  }
  .mobile-nav li a {
    color: #fff;
    display: block;
    line-height: 1;
    vertical-align: middle;
    padding: 10px 0px;
    text-decoration: none;
    position: relative;
    z-index: 99;
    height: 20px;
    font-size: 15px;
  }
  .mobile-nav .active-class {
    background: url(/assets/black-50.png);
    color: #4a2;
  }
  .mobile-nav .active-class a {
    background: transparent;
  }
  #sign_in_status {
    display: none;
  }
  .sign-in-user {
    float: right;
    margin: 5px;
  }
  #li-account .toggle-menu {
    display: none;
  }
  .li-test-catalog.toggle-menu {
    display: none;
  }
  .li-menu-list.toggle-menu {
    display: none;
  }
  #li-account .toggle-menu.active {
    display: block;
    float: right;
    font-size: 0px;
    width: 100%;
    padding: 2px 0;
    position: relative;
    background: url(/assets/black-50.png);
    border-left: 2px solid #4a2;
    line-height: 0px;
  }
  #li-account .toggle-menu.active a {
    font-size: 14px;
    font-weight: bold;
    display: block;
    margin: 0;
    padding: 10px;
    background: #0152a3 url(/assets/page-bg.png) left bottom repeat-x fixed;
    color: #fff;
    border-bottom: 1px solid #ddd;
  }
  #browse #li-test-catalog .toggle-menu {
    background-color: #fff;
    padding: 20px;
  }
  .li-test-catalog.toggle-menu.active {
    display: block;
  }
  .alpha_nav {
    padding: 5px 0 10px 12px;
    overflow: hidden;
  }
  .li-test-catalog.toggle-menu .alpha_nav li {
    font-size: 16px;
    float: left;
    position: relative;
    margin: 0 6px 6px 0;
    text-align: center;
    width: 14%;
    height: 40px;
    background: #eee url(/assets/button-grey.png) left top repeat-x;
    border: 1px solid #ccc;
    border-bottom-color: rgb(204, 204, 204);
    border-bottom-color: #aaa;
  }
  .li-test-catalog.toggle-menu .alpha_nav li a {
    background: #eee url(/assets/button-grey.png) left top repeat-x;
    color: #049;
    font-size: 16px;
    font-weight: bold;
    line-height: 40px;
    height: 40px;
    padding: 0px;
    width: auto;
    margin: 0px;
  }
  .supplement table>tbody>tr>td:nth-child(2) {
    display: none;
  }
  .li-menu-list.toggle-menu .alpha_nav li:nth-child(2) a,
  .li-test-catalog.toggle-menu .alpha_nav li:nth-child(2) a {
    border-left: none;
    border-right: none;
  }
  .li-menu-list.toggle-menu .alpha_nav li a {
    color: #049;
    font-weight: bold;
  }
  .li-menu-list.toggle-menu.active {
    display: block;
    width: 100%;
    padding: 0;
    margin: 0;
    border-bottom: 1px solid #ddd;
    line-height: 40px;
    clear: left;
  }
  .li-menu-list.toggle-menu.active ul li a.active {
    color: #777;
    font-style: italic;
  }
  .li-test-catalog.toggle-menu.active h2 {
    text-align: left;
    padding: 10px;
    margin-top: 50px;
    margin-bottom: 5px;
  }
  .li-menu-list.toggle-menu.active h2 {
    text-align: left;
    padding: 5px;
    margin-bottom: 5px;
  }
  .sidebar-menu {
    margin-top: 7px;
    padding: 0;
    background: #ffc;
    border: 1px solid #fffc44;
  }
  .li-menu-list.toggle-menu.active .right-menu h1,
  .li-menu-list.toggle-menu.active .right-menu h2,
  .li-menu-list.toggle-menu.active .right-menu h3,
  .li-menu-list.toggle-menu.active .right-menu h4,
  .li-menu-list.toggle-menu.active .right-menu h5 {
    margin-top: 5px!important;
    margin-bottom: 5px!important;
    text-align: left;
  }
  .li-menu-list.toggle-menu.active .right-menu a {
    background: #ffc;
    display: block;
    margin: 0px;
    width: auto;
    padding-top: 5px;
    padding-bottom: 5px;
    font-style: normal;
    color: #049;
    font-size: 15px;
    border-top: 1px solid #ddd;
    font-weight: normal;
    text-align: left;
  }
  .li-menu-list.toggle-menu.active .sidebar-menu p {
    background: #ffc;
    display: block;
    margin: 0px;
    padding: 10px;
    font-style: normal;
    color: #049;
    font-size: 15px;
    border-top: 1px solid #ddd;
    text-align: left;
  }
  .li-menu-list.toggle-menu.active .sidebar-menu p a {
    font-weight: normal;
  }
  .li-menu-list.toggle-menu.active p {
    text-align: left;
    padding-left: 10px;
  }
  .li-menu-list.toggle-menu.active .sidebar-menu ul li {
    margin: 5px 0px 15px 0px;
  }
  #sidebar-content {
    clear: left;
  }
  .li-menu-list.toggle-menu .alpha_nav li {
    font-size: 18px;
    float: left;
    position: relative;
    margin: 0 5px 5px 0;
    text-align: center;
    width: 10%;
    padding: 0px;
    height: 35px;
    line-height: 35px;
    background: #eee url(/assets/button-grey.png) left top repeat-x;
    border: 1px solid #ccc;
    border-bottom-color: rgb(204, 204, 204);
    border-bottom-color: #aaa;
  }
  .alpha_nav li.active,
  .alpha_nav li:hover,
  .alpha_nav li:active {
    color: #4a2;
    font-weight: bold;
    font-size: 16px;
    line-height: 40px;
  }
  #li-menu-list a span {
    background: url(/assets/mobile_icons.png)left top repeat-x;
    top: 2px;
    display: block;
    box-sizing: border-box;
    text-align: center;
    background-position: 0 -65px;
    background-size: 20px auto;
    height: 15px;
    width: 20px;
    left: 50%;
    margin-left: 0px;
  }
  .li-menu-list.toggle-menu.active ul {
    list-style: none;
    display: block;
    margin: 0px;
    padding: 0px;
    border: none;
  }
  .li-menu-list.toggle-menu.active ul li {
    width: 100%;
    display: block;
    margin: 0px;
    padding: 7px 0px;
    color: #777 !important;
    border-bottom: 1px solid #ddd;
    height: 35px;
    line-height: 35px;
    background: #ffc !important;
    font-weight: 600;
    color: #049;
    font-size: 15px;
    text-align: left;
    font-style: italic;
  }
  .li-menu-list.toggle-menu.active ul li.grey-text-color {
    color: #777;
  }
  .li-menu-list.toggle-menu.active ul li a {
    display: block;
    margin: 0px;
    font-style: normal;
    font-weight: 600;
    color: #049;
    font-size: 14px;
    padding-left: 12px;
  }
  .li-menu-list.toggle-menu.active li:nth-child(2) a {
    border-left: none;
    border-right: none;
  }
  #li-menu-list a button {
    background: none;
    padding: 0px;
    border: none;
  }
  #catalog-list tr:nth-child(odd) {
    background: #ffc;
  }
  .results tr:hover {
    background: none;
  }
  a.top {
    margin: 5px;
  }
  .search_form {
    width: auto;
    height: 2em;
    display: block;
  }
  .search_form #q {
    width: 83% !important;
    width: -webkit-calc(100% - 65px) !important;
    width: -moz-calc(100% - 65px) !important;
    width: calc(100% - 65px) !important;
    height: 30px !important;
    line-height: 25px !important;
    box-sizing: inherit;
    padding: 0px;
  }
  .search_form .button {    
    height: 32px;
    width: 65px;
    font-size: 15px;
    vertical-align: top;
    line-height: 20px;
    box-sizing: content-box;
    display: inline-block;
  }
  #home-button {
    left: 5px;
    padding: 8px;
  }
  #home-button img {
    margin: 5px;
  }
  #help-button {
    right: 5px;
    padding: 2px;
  }
  #help-button img {
    vertical-align: top;
    margin: 5px;
  }
  input,
  select,
  label.half select {
    line-height: 24px;
    height: 30px;
  }
  .button,
  button,
  input[type='submit'] {
    line-height: 24px;
  }
  fieldset label.half select {
    line-height: 24px;
    height: 35px;
  }
  .inline_help,
  label.inline_help {
    color: #555;
    font-size: 9pt;
    font-weight: normal;
    width: auto;
    text-align: right;
    padding: 0px 15px;
  }
  #page h1 small:first-of-type {
    white-space: normal;
  }
  #page h1 small {
    float: none;
    display: block;
    max-width: 280px;
    border: none;
    border-bottom: 2px solid #fe9;
    margin: 0 0 5px;
    padding: 0 0 5px;
  }
  fieldset img {
    width: 100%;
    max-width: 300px;
    height: auto;
  }
  label.full input,
  label.full textarea,
  label.full select {
    width: 100%;
  }
  label.half,
  label.half input {
    width: 100%;
  }
  input[type='submit'],
  input[type='button'],
  input[type='file'] {
    padding: 0px 10px;
    width: auto;
  }
  .pagination {
    line-height: 30px;
    padding: 5px;
    text-align: left;
  }
  td.test_name a {
    font-size: 15px;
  }
  .button.field-height {
    margin: 5px;
  }
  .small-pie-chart {
    margin: 0px;
  }
  .supplement {
    width: 100%;
  }
  .supplement p {
    float: left;
    text-align: left;
  }
  .supplement p img {
    width: 300px;
    height: auto;
    margin: 5px 0px 15px 0px;
    float: left;
  }
  small {
    width: 100%;
    white-space: normal !important;
  }
  .li-menu-list.toggle-menu.active .sidebar-menu p,
  .li-menu-list.toggle-menu.active .sidebar-menu table,
  .li-menu-list.toggle-menu.active .sidebar-menu table tr td {
    border: none !important;
    background: #ffc !important;
    padding: 2px !important;
  }
  .login_form {
    width: auto;
    padding: 0px;
  }
  .button.close:before {
    top: 9px;
  }
}

@media only screen and (max-width: 769px) {
  #sidebar .search_form {
    display: none;
  }
  #media-overlay #media-player {
    margin: 5px auto 5px -10px;
    width: 95%;
    max-width: 748px;
    height: 280px;
    max-height: 280px;
    color: #fff;
    overflow: auto;
    z-index: 102;
  }
  #media-overlay #media-player img {
    max-width: 380px;
  }
  #media-overlay #media-overlay-close {
    margin: 0 0 0 75%;
    position: relative;
    z-index: 103;
  }
}

@media only screen and (max-width: 640px) {
  table.results {
    width: 100% !important;
    margin: 0 auto;
    border: 1px solid #ddd;
    box-sizing: border-box;
    height: auto;
  }
  #catalog-list td {
    display: block;
    width: 100%;
    box-sizing: border-box;
  }
  .float {
    float: none;
  }
  .scroll_table_container {
    overflow-x: auto;
  }
}

@media only screen and (max-width: 480px) {
  #media-overlay #media-overlay-close {
    margin: 10% 0 0 63%;
  }
  .mobile-nav li {
    padding: 0px 0px 5px 0px;
  }
  .mobile-nav li a {
    height: 25px;
  }
}
