body {
    padding: 20px 20px;
    position: relative;
}

header {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
}

header h1 {
  font-size: 33px;
  line-height: 1;
  font-weight: 400;
  text-shadow: none;
  letter-spacing: 0.05em;
}

header nav li {
  display: inline;
  margin-left: 20px;
}

header nav li a {
  font-size: 1.2em;
  line-height: 1;
  color: #000;
}

a.menu-icon {
  display: none;
  color: #000;
}

@media only screen and (max-width: 1024px) {
  #logo {
    overflow: hidden;
    width: 95px;
  }
  
  header h1 {
    font-size: 20px;
    padding-top: 30px;
  }
  
  .main-menu {
    overflow: hidden;
    background-color: #ccc;
    position: fixed;
    right: 0;
    top: 45px;
    display: none;
    z-index: 1000;
  }
  
  header nav ul {
    padding: 0;
  }

  header nav li a, header nav li a:active, header nav li a:hover, header nav li a:visited {
    color: #000;
    padding: 14px 16px;
    text-decoration: none;
    font-size: 17px;
    display: block;
  }

  a.menu-icon {
    padding: 14px 16px;
    text-decoration: none;
    font-size: 17px;
    display: block;
    position: absolute;
    right: 0;
    top: 0;
  }
}

table.form, form > table {
  width: 100%;
  max-width: 600px;
}

table.form th, form > table th {
  white-space: nowrap;
  padding-right: 10px;
}

table.form td, form > table td {
  width: 100%;
  display: flex;
  flex-wrap: nowrap;
  align-items: stretch;
}

input, select, textarea {
  width: 100%;
}

input[type=checkbox], input[type=radio] {
  width: initial;
}

.number {
  text-align: right;
  white-space: nowrap;
}

.chart-container {
  position: relative; 
  height: 30vh; 
  width: 40vw;
  display: inline-block;
}

table.dataTable {
  font-size: 0.85em;
  table-layout: fixed;
}

table.dataTable.nowrap th {
  word-wrap: break-word;
  white-space: normal;
}

table.dataTable td {
  max-width: 25%;
  overflow: hidden;
  text-overflow: ellipsis;
}

table.dataTable td:hover {
  position: absolute;
  background-color: #eee;
  border: 1px solid #ccc;
  max-width: 60%;
  word-wrap: break-word;
  white-space: normal;
  height: auto;
  padding: 10px;
}

table.dataTable tr:hover {
  background-color: #e5e5e5;
}

.processing * {
  cursor: progress;
}

@keyframes processing-kf {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.spinner,
.spinner:before {
  display: none;
  width: 44px;
  height: 44px;
  transform-origin: 50%;
  border: 4px solid transparent;
  border-color: #74a8d0 #74a8d0 transparent transparent;
  border-radius: 50%;
  content: "";
  animation: linear processing-kf 900ms infinite;
  vertical-align: inherit;
  line-height: inherit;
  z-index: 1;
}
.spinner {
  position: fixed;
  left: 50%;
  top: 50%;
}
.spinner:before {
  border-color: #74a8d0 #74a8d0 transparent transparent;
  position: absolute;
  left: -4px;
  top: -4px;
  border-style: solid;
}
.processing .spinner,
.processing .spinner:before {
  display: inline-block;
}