﻿html {
  position: relative;
  min-height: 100%;
}
body {
  /* Margin bottom by footer height */
  margin-bottom: 60px;
}
main {
  height: 100%;
}
.vh-max {
  height: 100%;
}
.footer {
  position: absolute;
  bottom: 0;
  width: 100%;
  white-space: nowrap;
  line-height: 60px;
  /* Vertically center the text there */
}
.navbar {
  line-height: 1.25em;
}
.navbar-dark {
  background-color: #eee;
}
.navbar-dark a.menu-link {
  color: #333;
}
#content {
  overflow-y: auto;
  top: 20px;
  bottom: 20px;
  left: 20px;
  right: 20px;
  position: absolute;
}
#panel-container {
  position: fixed;
  top: 52px;
  left: 0px;
  right: 0px;
  bottom: 0px;
  display: flex;
  flex-direction: row;
}
#left-panel {
  flex: 0 0 68px;
  overflow-x: hidden;
  overflow-y: auto;
  height: 100%;
  position: relative;
  background-color: #eee;
}
#center-panel {
  flex: 1 1 auto;
  overflow-x: hidden;
  overflow-y: auto;
}
#right-panel {
  /*flex: 0 0 120px;*/
  min-width: 400px;
  max-width: 500px;
  width: 40%;
  padding: 20px;
  height: 100%;
  overflow-x: hidden;
  overflow-y: hidden;
  z-index: 999;
  box-shadow: 0px 1em 1em rgba(0, 0, 0, 0.4);
  right: -500px;
  position: absolute;
  top: 0px;
  bottom: 0px;
  background-color: #fff;
}
#right-panel.displayPanel {
  right: 0px;
}
#page1,
#page2 {
  position: absolute;
  top: 0px;
  bottom: 0px;
  right: -1200px;
  transition-duration: 0.3s;
  /* Transition will last 1 second */
  transition-timing-function: linear;
  /* Timing function to specify a linear transition type */
  transition-delay: 0s;
  /* Transition starts after 1 second */
}
#page1 {
  transition-delay: 0.2s;
  /* Transition starts after 1 second */
}
.displayPage1 #page1 {
  right: 0px;
}
.displayPage2 #page2 {
  right: 0px;
}
.page {
  width: 100vw;
  box-shadow: 0px 1em 1em rgba(0, 0, 0, 0.4);
  background-color: #fff;
  overflow-x: hidden;
  overflow-y: hidden;
  padding: 20px;
  z-index: 999;
}
@media (min-width: 992px) {
  .page {
    width: 45vw;
  }
  .displayPage1.displayPage2 #page1 {
    right: 45vw;
  }
}
@media (min-width: 1200px) {
  .page {
    width: 45vw;
  }
  .displayPage1.displayPage2 #page1 {
    right: 45vw;
  }
}
th.fw-xs,
td.fw-xs {
  width: 50px;
}
th.fw-md,
td.fw-md {
  width: 120px;
}
th.fw-xl,
td.fw-xl {
  width: 180px;
}
.app-menu {
  position: relative;
  padding-top: 20px;
}
.app-menu .menu-item {
  text-align: center;
  position: relative;
}
.menu-item a.menu-link {
  position: relative;
  text-decoration: none;
  display: block;
  width: 100%;
  height: 60px;
  border-left: 4px solid;
  padding-top: 4px;
  border-color: #eee;
}
.menu-item a.menu-link.active {
  background-color: #ddd;
  border-color: #ddd;
}
.menu-item a.menu-link:hover {
  text-decoration: none;
  background-color: #ccc;
  border-color: #ccc;
}
.menu-item .menu-icon {
  text-align: center;
  height: 32px;
  width: 32px;
  line-height: 32px;
  margin: auto auto;
}
.menu-item .menu-title {
  font-size: 10px;
}
.menu-item .menu-notification {
  position: absolute;
  font-size: 9px;
  font-weight: 700;
  top: 6px;
  right: 4px;
  padding: 0px;
}
.menu-item .menu-notification .menu-notification-circle {
  color: #000;
  background-color: #ffd800;
  border-radius: 50%;
  width: 16px;
  height: 16px;
  line-height: 16px;
  display: block;
}
#left-panel a.menu-link {
  color: #333 !important;
}
.paper-0 {
  background-color: #fff;
  padding: 20px;
}
.paper-1 {
  background-color: #eee;
  padding: 20px;
}
@media (min-width: 576px) and (max-width: 768px) {
  #app-container {
    top: 48px;
  }
}
@media (max-width: 576px) {
  #app-container {
    top: 48px;
    flex-direction: column;
  }
  #content {
    top: 0px;
    left: 0px;
    right: 0px;
    bottom: 0px;
  }
  #left-panel {
    flex: 0 0 60px;
    padding-top: 0px;
  }
  .app-menu {
    display: flex;
    flex-direction: row;
    justify-content: center;
    padding-top: 0px;
  }
  .menu-item {
    flex: 0 0 64px;
  }
  .menu-item a.menu-link {
    border-left: 0px solid;
    border-bottom: 2px solid;
    border-color: #eee;
  }
  .menu-item a.menu-link.active {
    background-color: #ccc;
    border-color: #999;
  }
}