@import url('https://fonts.googleapis.com/css?family=Roboto:100,300,400,500,700,900');
@import url('https://fonts.googleapis.com/icon?family=Material+Icons');
@import url('/resources/css-tools/elevation.css');

body {
  background-color: #efefef;
  color: rgba(0, 0, 0, 0.87);
  font-family: 'Roboto', sans-serif;
  background-image: none;
  font-size: 12pt;
  background-image: url('/resources/background.svg');
  background-attachment: fixed;
  background-size: cover;
}

button {
  cursor: pointer;
  box-sizing: border-box;
}

.material-icons {
  user-select: none;
}

.material-button {
  width: 48px;
  height: 48px;
  border: none;
  background: none;
  padding: 0;
  color: currentColor;
}

.material-button:active {
  outline: none;
}

#site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 64px;
  box-sizing: border-box;
  z-index: 999;
  padding: 8px; /*8px 20px;*/
  background-color: navy;
  color: #fff;
  line-height: 48px;
  box-shadow: var(--elevation-z4);
}

/*#site-header*/ #header-label {
  vertical-align: top;
}

#drawer-frame {
  width: 260px;
  height: 100vh;
  position: fixed;
  z-index: 9999;
  top: 0;
  left: -300px;
  border: none;
  transition: left 350ms ease-in-out; /* Upon entering */
}

#drawer-frame.open {
  left: 0;
  transition: left 350ms ease-out; /* Upon exiting */
}

#drawer-mask {
  width: 0;
  height: 0;
  position: fixed;
  top: 0;
  left: 0;
  background-color: #000;
  opacity: 0;
  transition: opacity 0.4s;
  transition-delay: width 0.4s, height 0.4s;
  z-index: 9998;
}

#drawer-mask.active {
  width: 100vw;
  height: 100vh;
  opacity: 0.37;
  transition: opacity 0.4s;
  transition-delay: width 0.4s, height 0.4s;
}

#side-drawer {
  width: 260px;
  height: 100vh;
  position: relative;
  top: 0;
  left: 0;
  background-color: #fff;
  box-sizing: border-box;
  border-right: 1px solid #e0e0e0;
}

#side-drawer #nav-header {
  box-sizing: border-box;
  padding: 8px 16px;
  width: 100%;
  height: 64px;
  border-bottom: 1px solid #e0e0e0;
  font-weight: 500;
  line-height: 48px;
  position: relative;
  left: 0;
  top: 0;
  transition: box-shadow 0.4s;
}

#side-drawer #nav-header.nav-scrolling {
  box-shadow: var(--elevation-z4);
}

#nav-img {
  /*margin-right: 32px;
  margin-left:-12px;
  margin-right: 20px;*/
  margin-left: -6px;
  margin-right: 26px;
  display: inline-block;
  vertical-align: middle;
  width: 36px;
  height: 36px;
  border-radius: 50%;
}

#main-nav {
  height: calc(100vh - 64px);
  overflow: auto;
  overflow-x: hidden;
}

#side-drawer a {
  display: block;
  box-sizing: border-box;
  width: 259px;
  height: 48px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  line-height: 48px;
  padding: 0 16px;
  font-weight: 500;
  font-size: 0.875rem;
  color: rgba(0, 0, 0, 0.87);
  text-decoration: none;
  transition: background-color 0.17s;
  background-color: #fff;
}

#side-drawer a:active {
  background-color: rgba(0, 0, 0, 0.27);
}

#side-drawer a.selected {
  color: rgba(0, 0, 0, 0.87);
}

#side-drawer .material-icons {
  margin-right: 32px;
  display: inline-block;
  vertical-align: middle;
  color: rgba(0, 0, 0, 0.57);
}

#side-drawer #main-nav hr {
  border: none;
  border-top: 1px solid #e0e0e0;
  margin: 8px 0;
}

#content {
  max-width: 1080px;
  box-sizing: border-box;
  background-color: #fff;
  margin: auto;
  margin-top: 76px;
  border-radius: 2px;
  box-shadow: var(--elevation-z2);
  padding: 16px;
}

@media (max-width: 600px) {
  body {
    margin: 0;
  }
  
  #content {
    width: 100%;
    min-height: calc( 100vh - 64px );
    margin-top: 64px;
    box-shadow: var(--elevation-z0);
  }
}

.card {
  background-color: #fff;
  border-radius: 2px;
  box-shadow: var(--elevation-z2);
  padding: 16px;
}

.card :first-child {
  margin-top: 0;
}

.card :last-child {
  margin-bottom: 0;
}

.card :only-child {
  margin-top: 0;
  margin-bottom: 0;
}

[hidden] {
  display: none !important;
}