@keyframes highlight {
  0% {
    background-color: rgba(251, 255, 0, 0.38);
  }
  100% {
    background-color: white;
  }
}
.highlight {
    border-radius: 3px;
    animation: highlight 1000ms ease-out;
}

.hidden {
    display: none;
}
.protected,
.login-container,
.not-allowed {
    display: none;
}
.no-margin {
    margin: 0;
}
.center {
    margin: 10px auto;
}
.not-allowed {
    text-align: center;
}
.relative {
    position: relative;
}
.left {
    float: left;
}
.space {
    margin-right: 10px;
}
.btn {
    margin-right: 10px;
}
.btn.right {
    margin-right: 10px;
    margin-left: 10px;
}

.btn-danger {
    background: #960000;
}
.btn-danger:hover {
    background: red;
}
.btn-small {
    padding: 0 15px;
}
.btn-small-icon {
    height: 24px;
    line-height: 24px;
    width: 24px;
}
.btn-small-icon i {
    line-height: 24px;
    font-size: 1.2rem;
}
body, p, div, input {
    margin: 0;
    font-family: Roboto, Helvetica;
    font-size: 18px;
    /*color: #fff;*/
    /*font-weight: bold;*/
}
.capitalize {
    text-transform: capitalize;
}
.underline {
    text-decoration: underline;
}
body {
    margin: 0;
    padding-bottom: 110px;
    /*background: #343434;*/
}
body.noscroll {
    overflow: hidden;
}

#header {
    text-align: center;
    color: #fff;
    width: 100%;
    background: #4a8bfc;
    position: relative;
}

#header .logout-button,
#header .login-button {
    display: none;
    position: absolute;
    right: 0;
    top: 50%;
    margin-top: -18px;
    color: #fff;
}
#footer {
    position: fixed;
    width: 100%;
    background: #ddd;
    bottom: 0;
    z-index: 111;
}
#footer p {
    font-size: 18px;
    margin: 10px;
}
#footer .wrapper {
    margin: 10px auto;
}
#header, #footer {
    overflow: hidden;
}
#header p, #footer p {
    color: #fff;
    font-size: 32px;
    margin: 10px;
    margin-bottom: 0px;
}
.wrapper {
    /*margin: 20px;*/
    max-width: 1200px;
    margin: 20px auto;
    /*text-align: left;*/
}
.border-bottom {
    border-bottom: 1px solid #ddd;
}
#inner_wrapper {
    /*border: 1px solid #aaa;*/
    margin: 3px;
}
.wrapper #content {
    margin: 10px;
}

.spacer {
    display: block;
    padding: 10px;
}
div.component {
    margin-bottom: 5px;
    display: -webkit-flex;
    display: -moz-flex;
    display: -ms-flex;
    display: -o-flex;
    display: flex;
    flex-direction: column;
}
div.component-row {
    display: -webkit-flex;
    display: -moz-flex;
    display: -ms-flex;
    display: -o-flex;
    display: flex;
    flex-direction: row;
}

div.component-row flex, div.component flex {
    flex: 1;
}

div.clear {
    clear: both;
}
form input {
    border: 1px solid #ddd;
    height: 60px;
    font-size: 35px;
    width: 180px;
    margin: 0 5px;
    text-align: center;
    color: #4a8bfc;
}
form label {
    padding: 0 5px;
    display: block;
}

#pivot {
    text-decoration: underline;
}
#res1, #res2, #res3, #sup1, #sup2, #sup3 {
    font-weight: bold;
}
.admin_use {
    background: #343434;
}

.date-today {
    position: absolute;
    right: 10px;
    font-size: 15px;
    line-height: 15px;
    top: 50%;
    margin-top: -7px;
}

.note {
    font-size: 13px;
    color: #777;
}
/*#result span {
display: block;
float: left;
width: 120px;
}*/

.print-button {
    display: none;
}
#result {
    display: none;
    margin-top: 20px;
    overflow: auto;
    position: relative;
}
.result-actions {
    display: none;
    position: absolute;
    height: 50px;
    right: 0px;
}
.result-actions .btn {
    text-transform: capitalize;
    padding: 0 10px;
    box-shadow: 0 0 7px 0px #999;
    margin: 20px 5px;
}

.date-today-preview {
    position: absolute;
    right: 8px;
    bottom: 0;
    font-size: 10px;
}
.date-today.invalid,
.date-today-preview.invalid {
    color: red;
}

#result table {
    width: 100%;
}
#result table thead {
    border: none;
}
#result table thead th i.material-icons {
    display: block;
}

#result table th {
    padding-bottom: 0px;
    position: relative;
    min-width: 65px;
}

#result table th:first-child {
    min-width: 0 !important;
}

#result table td, #result table th {
    text-align: center;
}

#result table thead tr:last-child th:not(:last-child) {
    padding-bottom: 10px;
}

#result table tbody td,
#result table thead tr:last-child th:not(:last-child) {
    border-bottom: 1px solid #ddd;
}

#result table tbody tr:last-child {
    border: none;
}

#result table tbody td {
    position: relative;
    /*padding-top: 27px;
    padding-bottom: 10px;*/
    padding-top: 23px;
    padding-bottom: 6px;
}
#result table tbody td:after {
    position: absolute;
    content: '';
    height: 1px;
    left: 0;
    right: 0;
    bottom: 27px;
    background: #ddd;
    display: none;
}

#result .no-midpoint td {
    padding-top: 10px;
}
#result th .mp,
#result td .mp {
    position: absolute;
    z-index: 1;
    right: -24px;
    top: 4px;
    font-size: 13px;
    display: block;
}
#result th .mp {
    top: 28px;
    font-size: 11px;
    right: -15px;
}
#result td .mp {
    font-weight: 400;
    color: #bf7d03;
    min-width: 50px;
}

#result .main {
    font-size: 14px;
    background: #f0f0f0;
    padding: 2px;
    border-radius: 4px;
    -webkit-print-color-adjust: exact;
}

.loader-container {
    position: absolute;
    left: 50%;
    top: 60px;
    transform: scale(0.8);
    margin-left: -19px;
}

.spinner-white,
.spinner-white-only {
  border-color: #fff;
}

.spinner-black,
.spinner-black-only {
  border-color: #000;
}

.active .spinner-layer.spinner-white-only {
  /* durations: 4 * ARCTIME */
  opacity: 1;
  -webkit-animation: fill-unfill-rotate 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both;
  animation: fill-unfill-rotate 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both;
}

.section-to-print {
    position: relative;
}

.show-in-print {
    visibility: hidden;
    display: none;
}

@media print {
  body * {
    visibility: hidden;
  }
  h5 {
    margin-bottom: 0;
  }
  #result {
    margin-top: 0;
  }
  .section-to-print, .section-to-print * {
    visibility: visible;
  }
  .section-to-print {
    position: absolute !important;
    left: 0;
    top: 0;
    display: block;
    bottom: 0;
    width: 100%;
  }
  .section-to-print > div {
    margin: 0 auto;
    max-width: 1200px;
  }
  .hide-in-print, .hide-in-print * {
    visibility: hidden;
    display: none;
  }
  .show-in-print {
      visibility: visible;
      display: block;
  }
  #result table th {
    font-weight: 400;
  }

  #result table th span:first-child {
    font-size: 16px;
  }
}
.btn {
    text-transform: none;
}
.btn-print {
    position: absolute;
    top: -7px;
    right: 10px;
    width: 50px;
    height: 50px;
    z-index: 10;
}
.btn-print i {
    line-height: 50px;
}

nav .nav-wrapper {
    display: flex;
    justify-content: space-between;
}

.overlay-form {
    position: fixed;
    z-index: 1;
    background: white;
    /* 56 for nav + 11 */
    top: 67px;
    left: 11px;
    right: 11px;
    bottom: 11px;
    box-shadow: 0px 0 14px 4px rgba(0, 0, 0, 0.15);
    padding: 15px;
    display: none;
    overflow: auto;
}
.overlay-form th {
    font-size: 16px;
    text-align: center;
    font-weight: normal;
}
@media only screen and (min-width: 601px) {
    /* 64 for nav + 11 */
    .overlay-form {
        top: 75px;
    }
}

.overlay-form.is-shown {
    display: block;
}

.overlay-form .overlay-actions {
    display: flex;
    align-items: center;
    position: relative;
}
.overlay-form .overlay-actions .loader-container {
    position: static;
    margin: 0;
}


#load-from-template {
    display: none;
}

#load-from-template.has-template {
    display: inline-block;
}


.flex {
    /* This fills the remaining space, by using flexbox.
    Every toolbar row uses a flexbox row layout. */
    flex: 1 1 auto;
}

.bold {
    font-weight: bold;
}