*, *::before, *::after {
  box-sizing: border-box;
}

html {
  font-size: 16px;
  overflow-x: hidden;
}

body {
  margin: 0;
  padding: 0;
  font-family: Tahoma, "Segoe UI", Arial, sans-serif;
  font-size: 14px;
  line-height: 1.6;
  color: #555555;
  background-color: #f5f5f5;
}

img {
  max-width: 100%;
  height: auto;
}

/* WRAPPER */
#wrapper {
  width: 100%;
  max-width: 1004px;
  margin: 0 auto;
  padding: 10px 7px 20px;
}

/* MAIN PAGE CARD */
#page {
  width: 100%;
  padding: 5px;
  border: 1px solid #9e9e9e;
  background: #ffffff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

/* HEADER (Logo, Language switcher, Top Nav inside #top gradient bar) */
#site-header {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  padding: 6px 10px 4px 13px;
  min-height: 75px;
  background: linear-gradient(to bottom, #c9ced2 0%, #e4e7ea 38%, #ffffff 100%);
}

#logo {
  display: block;
  width: 118px;
  height: 63px;
  background: url('../../imgs/logo.png') no-repeat left center;
  background-size: contain;
  text-decoration: none;
  flex-shrink: 0;
  align-self: center;
  margin: 0;
}

#companyName {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

#header-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  order: 2;
  align-self: flex-start;
  margin-top: 2px;
}

/* LANGUAGES */
#lang {
  display: flex;
  align-items: center;
  gap: 5px;
}

#lang a {
  display: block;
  width: 25px;
  height: 18px;
  opacity: 0.45;
  transition: opacity 0.15s ease;
}

#lang a:hover,
#lang a.is-current {
  opacity: 1;
}

#lang .dk {
  background: url('../../imgs/dk.gif') no-repeat center center;
}

#lang .en {
  background: url('../../imgs/en.gif') no-repeat center center;
}

/* MOBILE TOGGLE */
#nav-toggle {
  display: none;
  align-items: center;
  gap: 6px;
  background: #ffffff;
  border: 1px solid #9e9e9e;
  border-radius: 3px;
  padding: 5px 10px;
  font-family: inherit;
  font-size: 12px;
  font-weight: bold;
  color: #456fb6;
  cursor: pointer;
}

#nav-toggle .hamburger {
  display: inline-block;
  width: 16px;
  height: 2px;
  background: #456fb6;
  box-shadow: 0 5px 0 #456fb6, 0 -5px 0 #456fb6;
  margin: 5px 0;
}

/* TOP NAVIGATION */
#nav {
  order: 1;
  flex: 1 1 auto;
  margin-left: 37px;
  padding-bottom: 0;
  font-size: 12px;
}

#nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}

#nav li {
  display: flex;
  align-items: center;
}

#nav a {
  display: inline-block;
  padding: 4px 4px;
  color: #456fb6;
  font-weight: bold;
  text-decoration: none;
  line-height: 16px;
  transition: color 0.15s ease, opacity 0.15s ease;
}

#nav a:hover {
  color: #305594;
  opacity: 0.65;
}

#nav a.active {
  color: #93b5f0;
}

.linkSep {
  margin: 0 8px;
  color: #456fb6;
  font-weight: bold;
  user-select: none;
}

#page #mid {
  min-height: 490px;
  border-top: 1px dotted #7c7c7c;
}

#page #bot {
  clear: both;
  padding: 14px 10px 6px;
  font-size: 10px;
  color: #789fe9;
  text-align: center;
}

/* SECTION HEADER */
#sectionHeader {
  display: flex;
  align-items: stretch;
  background: #d4dce0;
  padding: 2px;
  gap: 2px;
}

#sectionHeader .txt {
  flex: 0 0 173px;
  color: #ffffff;
  font-size: 36px;
  line-height: 50px;
  padding: 0 6px;
  white-space: nowrap;
  overflow: hidden;
}

#sectionHeader .pic {
  flex: 1 1 auto;
  min-height: 50px;
  background-color: #ffffff;
  background-repeat: no-repeat;
  background-position: right center;
  background-size: cover;
  border: 1px solid #a5b9db;
}

#pHome #sectionHeader .pic { background-image: url('../../imgs/home.gif'); }
#pProducts #sectionHeader .pic { background-image: url('../../imgs/prod.gif'); }
#pSolutions #sectionHeader .pic { background-image: url('../../imgs/sols.gif'); }
#pServices #sectionHeader .pic { background-image: url('../../imgs/serv.gif'); }
#pClients #sectionHeader .pic { background-image: url('../../imgs/clin.gif'); }
#pAboutUs #sectionHeader .pic { background-image: url('../../imgs/abou.gif'); }
#pContact #sectionHeader .pic { background-image: url('../../imgs/cont.gif'); }
#pSupport #sectionHeader .pic { background-image: url('../../imgs/supp.gif'); }
#pDownloads #sectionHeader .pic { background-image: url('../../imgs/down.gif'); }
#pNewsletters #sectionHeader .pic { background-image: url('../../imgs/info.gif'); }

/* CONTENT LAYOUT */
.wrap {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 8px 6px 16px;
}

.sidebar-wrap {
  flex: 0 0 165px;
  width: 165px;
}

.left {
  list-style: none;
  margin: 0;
  padding: 0;
}

.left li {
  margin: 0;
  padding: 3px 0;
}

.left li.header {
  margin-bottom: 4px;
}

.left li a {
  display: inline-block;
  text-decoration: none;
  font-weight: bold;
  color: #666666;
  line-height: 18px;
  border-bottom: 2px solid transparent;
  transition: border-color 0.15s ease;
}

.left li a:hover,
.left li a:active,
.left li a.active {
  color: #666666;
  border-bottom-color: #6085c5;
}

.mid {
  flex: 1 1 auto;
  min-width: 0;
  max-width: 680px;
  padding-top: 6px;
}

/* TYPOGRAPHY & CONTENT ELEMENTS */
.mid h1, .mid h2, .mid h3, .mid h4, .mid h5 {
  color: #456fb6;
  margin: 18px 0 8px;
  font-weight: bold;
  line-height: 1.35;
}

.mid h2 {
  font-size: 14px;
}

.mid > h2:first-child,
.mid > .header:first-child {
  margin-top: 4px;
}

.mid p {
  margin: 0 0 12px;
}

.mid ul {
  list-style: none;
  margin: 0 0 14px;
  padding: 0;
}

.header {
  font-weight: bold;
  font-size: 14px;
  color: #456fb6;
  padding-bottom: 8px;
  margin-top: 8px;
  display: block;
}

.time {
  padding-top: 10px;
  border-bottom: 2px solid #93b5f0;
  width: 40%;
  min-width: 180px;
}

.bull {
  font-size: 12pt;
  font-weight: bold;
  color: #6085c5;
  line-height: 0.5em;
}

.bullList li,
li.bullList {
  position: relative;
  padding: 6px 0 6px 18px;
  border-top: 1px solid #cccccc;
}

.bullList li::before,
li.bullList::before {
  content: "›";
  position: absolute;
  left: 2px;
  top: 5px;
  font-size: 16px;
  font-weight: bold;
  color: #6085c5;
  line-height: 1;
}

.mid a {
  text-decoration: none;
  font-weight: bold;
  line-height: 16px;
  color: #456fb6;
}

.mid a:hover {
  color: #305594;
  text-decoration: underline;
}

.iconList li a {
  font-weight: normal;
  font-size: 12px;
}

.ico {
  background: url('../../imgs/ico_download.gif') no-repeat center center;
  width: 16px;
  height: 16px;
  display: inline-block;
  vertical-align: middle;
  margin-right: 4px;
}

/* TABLES */
.table-wrap {
  width: 100%;
  overflow-x: auto;
  margin: 10px 0 14px;
}

.mid table {
  width: 100%;
  max-width: 520px;
  border-collapse: collapse;
  font-size: 12px;
}

.mid th {
  text-align: left;
  padding: 5px 8px 5px 0;
  color: #456fb6;
}

.mid td {
  padding: 5px 8px 5px 0;
  vertical-align: top;
}

.column {
  display: inline-block;
  min-width: 75px;
  font-weight: bold;
}

/* SPECIAL GRAPHIC BLOCKS */
#ldbsuite {
  max-width: 100%;
  width: 256px;
  height: 53px;
  background: url('../../imgs/ldbsuite.png') no-repeat left center;
  background-size: contain;
  margin-bottom: 10px;
}

#pMonitor {
  max-width: 100%;
  width: 150px;
  height: 150px;
  background: url('../../imgs/monitor.gif') no-repeat center center;
  background-size: contain;
  margin: 8px 0 12px;
}

#boers_groth {
  max-width: 100%;
  width: 270px;
  height: 64px;
  background: url('../../imgs/boers_groth.jpg') no-repeat left center;
  background-size: contain;
  margin: 6px 0 14px;
}

#boers_2005 {
  max-width: 100%;
  width: 270px;
  height: 64px;
  background: url('../../imgs/boers_2005.jpg') no-repeat left center;
  background-size: contain;
  margin: 6px 0 14px;
}

#ms_cert {
  max-width: 100%;
  width: 141px;
  height: 64px;
  background: url('../../imgs/ms_cert.jpg') no-repeat left center;
  background-size: contain;
  margin: 6px 0 14px;
}

#person_MBL {
  width: 150px;
  height: 210px;
  background: url('../../imgs/allergen/person_MBL.jpg') no-repeat center center;
  background-size: cover;
  margin-bottom: 10px;
}

/* RESPONSIVE BREAKPOINTS */
@media (max-width: 860px) {
  #site-header {
    padding: 8px 4px 8px;
    min-height: auto;
    align-items: center;
  }

  #logo {
    margin-bottom: 0;
    margin-left: 0;
    width: 100px;
    height: 54px;
  }

  #nav-toggle {
    display: inline-flex;
  }

  #nav {
    display: none;
    order: 3;
    flex-basis: 100%;
    margin-left: 0;
    margin-top: 8px;
    padding: 6px 0 8px;
    border-top: 1px solid #d4dce0;
  }

  #nav.is-open {
    display: block;
  }

  #nav ul {
    flex-direction: column;
    align-items: stretch;
  }

  #nav li {
    border-bottom: 1px solid #eeeeee;
  }

  #nav a {
    width: 100%;
    padding: 10px 8px;
    font-size: 14px;
    border-left: 3px solid transparent;
  }

  #nav a.active {
    background-color: #f0f4fa;
    border-left-color: #456fb6;
    color: #305594;
  }

  .linkSep {
    display: none;
  }

  #sectionHeader .txt {
    flex: 0 0 auto;
    font-size: 26px;
    line-height: 44px;
    padding: 0 10px;
  }

  #sectionHeader .pic {
    min-height: 44px;
  }

  .wrap {
    flex-direction: column;
    gap: 10px;
    padding: 8px 6px 14px;
  }

  .sidebar-wrap {
    flex: none;
    width: 100%;
    border-bottom: 1px solid #e0e0e0;
    padding-bottom: 8px;
  }

  .left {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 12px;
  }

  .left li.header {
    margin-bottom: 0;
  }

  .mid {
    max-width: 100%;
    width: 100%;
  }
}

@media (max-width: 520px) {
  #wrapper {
    padding: 4px;
  }

  #sectionHeader {
    flex-direction: column;
  }

  #sectionHeader .txt {
    font-size: 22px;
    line-height: 34px;
  }

  #sectionHeader .pic {
    min-height: 36px;
  }
}
