/* Borrowed Bootstrap classes */

.container-custom {
  display: block;
  width: 100%;
  padding: 4px!important;
}

.m-0 {
  margin: 0;
}

.p-1 {
  padding: 0.25rem; 
}

@media (min-width: 992px) {
  .p-lg-4 {
      padding: 1.5rem!important;
  }
  .px-lg-4 {
    padding-left: 1.5rem!important;
    padding-right: 1.5rem!important;
  }
}

.d-flex {
  display: flex;
}

.row {
  display: flex;
  flex-wrap: wrap;
}

.float-start {
  float: left!important; 
}

.menu h2 {
  margin: 0;
  font-size: 1rem;
}

.menu h4 {
  font-size: 0.8rem;
  color: #707070;
  margin: 8px 0;
}

.menu h5 {
  font-size: 0.9rem;
  margin: 8px 0;
}

.menu p {
  margin: 0;
  font-size: 0.9rem;
}

.menu a {
  text-decoration: none;
  color: inherit;
}

a:hover {
  color: inherit;
}

.product-description {
  display: flex;
  flex-direction: row;
  margin: 24px 0;
}
.product-description .img-container {
  width: 58px;
  height: 58px;
  min-width: 58px;
  background-color: #eee;
  border-radius: 4px;
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
}
.product-description img {
  max-width: 50px;
  max-height: 50px;
}

.product-description .img-container + .text-container {
  padding-left: 1.25rem;
}

.product-description:hover > .img-container {
  background-color: #ddd;
  cursor: pointer;
}

.product-description:hover > .text-container > h2.color-primary {
  color: #005cff
}

.product-description:hover > .text-container > h2.color-payroll {
  color: #fd5739
}

.product-description:hover > .text-container > h2.color-invoicing {
  color: #2bb673
}

.product-description:hover > .text-container > h2.color-expenses {
  color: #00b4cf
}

.product-description:hover > .text-container > h2.color-reports {
  color: #ff00ff
}

.product-description:hover > .text-container > h2.color-banking {
  color: #003b9e;
}

.product-description:hover > .text-container > h2.color-timesheets {
  color: #ff9b2b;
}

.product-description:hover > .text-container > h2.color-website {
  color: #5d1ea2;
}

/* .color-payroll {
  color: #fd5739
}

.color-invoicing {
  color: #2bb673;
}

.color-expenses {
  color: #00b4cf;
}

.color-reports {
  color: #ff00ff;
} */

.container {
  background-color: #fafafa;
}

.side-container {
  border-left: 1px solid #ccc;
}

.side-container a:hover h5 {
  color: #005cff;
  text-decoration: underline;
}

.close-container {
  position: absolute; top: 16px; right: 16px; width: 32px; height: 32px; display: flex;align-items:center; justify-content: center;
}

@media (max-width: 480px) {
  .close-container {
    top: 8px;
    right: 8px;
  }
}

.close-container p {
  font-size: 28px;
  transition: all 0.1s;
}

.close-container:hover p {
  font-size: 34px;
}

/* *************************************************  */
/* *************************************************  */
/* OLD MENU CSS  */ 
/* *************************************************  */
/* *************************************************  */

/* Menu */

.menu--desktop {
  display: block;
}


/* @media (max-width: 767px) {
  .close-container {
    display: none;
  }
}
 */
/* Menu items */

.menu__item {
  position: relative;
}

.menu__link {
  font-size: 0.917rem;
  line-height: 1.667rem;
  text-decoration: none;
}

.menu__link:hover,
.menu__link:focus,
.menu__link:active {
  text-decoration: none;
}

.menu__link--active-link,
.menu__link--active-branch {
  font-weight: bold;
}

@media (min-width: 869px) and (max-width: 1150px) {
  .menu__link {
    font-size: 0.833rem;
  }
}

@media (min-width: 768px) and (max-width: 868px) {
  .menu__link {
    font-size: 0.800rem;
  }
}

@media (max-width: 767px) {
  .menu__item {
    display: block;
    width: 100%;
  }

  .menu__link {
    display: block;
    font-size: 1.083rem;
  }
}

/* Menu items - top level */

.menu__item--depth-1 {
  display: inline-block;
  padding: 0.7rem 0.875rem;
/*   text-transform: uppercase; */
}

@media (min-width: 768px) and (max-width:1000px) {
  .menu__item--depth-1 {
  padding: 0.7rem 0.5rem;

}
}

.menu__item--depth-1 > .menu__link--active-link:after {
  bottom: -3px;
  content: '';
  height: 2px;
  left: 0;
  position: absolute;
  width: 100%;
}

@media (max-width: 767px) {
  .menu__item--depth-1 {
    border-top: 2px solid #CED4DB;
    padding: 0;
  }

  .menu__item--depth-1 > .menu__link {
    padding: 1rem 1.225rem;
  }

  .menu__item--depth-1 > .menu__link--active-link:after {
    content: none;
  }
}

/* Menu items - submenus */

.menu__submenu {
  box-shadow: 0 2px 9px 0 rgba(0, 0, 0, 0.2);
  border-radius: 3px;
  display: none;
  left: 0;
  position: absolute;
  text-align: left;
  text-transform: none;
  top: 100%;
  width: 270px;
  z-index: 99;
}


.menu__item--open > .menu__submenu.menu__submenu--level-2 {
/*   display: flex; */
  display: block;
  transition: max-height 0.2s ease-out!important;
  max-height: 2000px!important;

}

.menu__submenu--level-2 {
/*   transform: translateX(-50%); */
}

/* Keeps the first menu item's drop down menu aligned to the left of the top level menu item */

.menu__item--depth-1:first-child .menu__submenu--level-2 {
  transform: unset;
}

.menu__submenu .menu__item {
/*   border-bottom: 1px solid #D1D6DC; */
  padding: 0;
  width: 100%;
}

.menu__submenu .menu__link {
  display: block;
  padding: 0.7rem 1.05rem;
  transition: background-color 0.3s;
  width: 100%;
}

.menu__submenu--level-3 {
  left: 100%;
  top: 0;
}

/* Flyouts for the last two top level menu items go left to keep page responsive */

.menu__item--depth-1:nth-last-child(-n+2) .menu__submenu--level-3 {
  left: auto;
  right: 100%;
  top: 0;
}

/* Accounts for child toggle */

.menu__submenu .menu__item--has-submenu > .menu__link {
  padding-right: 3rem;
}

/* Creates the triangle at the top of the submenu drop down */

@media (min-width: 768px) {
/*   .menu__submenu--level-2 > .menu__item:first-child:before {
    border-radius: 6px;
    box-shadow: 0 2px 9px 0 rgb(0 0 0 / 20%);
    content: '';
    display: block;
    height: 30px;
    left: 125px;
    margin-left: 1rem;
    overflow: hidden;
    position: absolute;
    top: -12px;
    transform: rotate(45deg);
    transition: background-color .3s;
    width: 30px;
    z-index: 2;
  } */

  /* Keeps triangle to the left for the first menu item's drop down menu */

  .menu__item--depth-1:first-child > .menu__submenu--level-2 > .menu__item:first-child:before {
    left: 0;
  }

  .menu__submenu--level-2 > .menu__item:first-child > .menu__link {
    position: relative;
    z-index: 2;
  }
}

@media (max-width: 767px) {
  .menu__submenu {
    border: none;
    border-radius: 0;
    box-shadow: none;
    position: static;
    transform: unset;
    width: 100%;
  }

  .menu__submenu .menu__item {
/*     background-color: #FFF; */
/*     background-color: #f0f0f0; */
    border-bottom: none;
/*     border-top: 2px solid #EBEFF3; */
    padding: 0;
  }
  
  .menu__submenu .menu__link {
    display: block;
    padding: 0.7rem 2rem;
    transition: none;
    width: 100%;
  }

  .menu__submenu .menu__item .menu__link:hover,
  .menu__submenu .menu__item .menu__link:focus {
    background-color: inherit;
    transition: none;
    color: red;
  }

  .menu__item--has-submenu > .menu__link {
    width: 70%;
  }

  .menu__submenu--level-3 .menu__item .menu__link {
    padding: 0.7rem 3rem;
  }
}

/* Menu icons */

@media(min-width: 768px) {
  .menu__submenu .menu__child-toggle {
    margin-left: auto;
    padding: 0 1.05rem;
  }

  .menu__child-toggle {
    position: absolute;
    right: 5px;
    top: 30px;
    z-index: 2;
  }

  .menu__item--depth-1 > .menu__child-toggle {
    position: static;
    right: 0;
    top: 0;
    vertical-align: middle;
  }

  .menu__child-toggle-icon {
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top-style: solid;
    border-top-width: 7px;
    display: block;
    height: 0;
    margin-left: 1px;
    width: 0;
  }
}

@media (max-width: 767px) {
  .menu__child-toggle {
    background-position: center right 30px;
    background-repeat: no-repeat;
    background-size: 20px;
    border: none;
    cursor: pointer;
    height: 64px;
/*     padding: 15px 0; */
    position: absolute;
    right: 0;
    top: 0;
    width: 30%;
  }

  .menu__child-toggle-icon {
    background-image: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTkiIGhlaWdodD0iMTkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgc3Ryb2tlPSIjOTc5ODlGIiBzdHJva2Utd2lkdGg9IjIuNCIgZmlsbD0ibm9uZSIgZmlsbC1ydWxlPSJldmVub2RkIj48cmVjdCB4PSIxLjIiIHk9IjkuNiIgd2lkdGg9IjE2LjgiIGhlaWdodD0iMSIgcng9Ii41Ii8+PHJlY3QgdHJhbnNmb3JtPSJyb3RhdGUoOTAgOS42IDkuNikiIHg9IjEuMiIgeT0iOS42IiB3aWR0aD0iMTYuOCIgaGVpZ2h0PSIxIiByeD0iLjUiLz48L2c+PC9zdmc+);
    background-repeat: no-repeat;
    display: block;
    height: 20px;
    margin-left: auto;
    margin-right: 1.05rem;
    transition: transform 0.4s;
    width: 20px;
  }

  .menu__item--open > .menu__child-toggle .menu__child-toggle-icon {
    transform: rotate(45deg);
    transition: transform 0.4s;
  }
}

/* Mega Menu for first items (Products) */
/* .menu__submenu.menu__submenu--level-2 */
.menu--desktop .menu__item.menu__item--depth-1.menu__item--has-submenu .menu__submenu.menu__submenu--level-2  {
  width: 100%;
  max-height: 0px;
  overflow: hidden;
  position: fixed;
  top: 77px;
  border: none;
  transition: max-height 0.4s ease-in;
  display: block;

}

@media (max-width:767px) {
  .menu--desktop .menu__item.menu__item--depth-1.menu__item--has-submenu .menu__submenu.menu__submenu--level-2  {
    top: 0px;
  }
}

  .menu--desktop .menu__submenu.menu__submenu--level-2 {
    background-color: #fafafa!important;
/*     padding-top: 16px; */
    box-shadow: 0px 8px 9px 0 rgb(0 0 0 / 20%);
    left: 0;
    right: 0;
    margin: 0 auto;
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
  }

.menu__submenu--wrapper {
  max-width: 1240px;
    margin: 0 auto;
  justify-content: center;
/*     width: 100%; */
    display: flex;
    padding-bottom: 16px;
}

@media (max-width: 768px) {
  .menu__submenu--wrapper {
    flex-direction: column;
/*     background-color: #cccccc; */
    max-width: 100%;
    width: 100%;
}
}

  
.high-zindex {
  z-index: 101;
  }
  
/* .menu__item--open .menu__link {
  color: #005cff!important; 
} */

.menu__item--open, .menu__link:hover  {
  background-color: #fafafa;
}

@media (max-width:767px) {
 menu__submenu--level-2 {
   height: 100%;
   overflow: scroll;
}

