@media (max-width: 1024px){
    #divHeading {
        margin-left: 10px;
    }

    h1 {
        font-size: 1.8em !important;
    }

    #divHeading .logo {
        height: 90% !important;
        width: 90% !important;
    }

    #divScanOverlay .heading {
        display: none !important;
        margin: 0 !important;
    }

    #divScanOverlay .canvas {
        margin-top: 2vh !important;
    }
}

@media print {
    body { background-color: white !important; width: 1200px !important; }
    #topBar { display: none !important; }
    #testBarWarning { margin-right: 35mm; border: solid red 3px; margin-bottom: 10mm; }
    #divHeading { margin-right: 150px; }
    #divHeading .logo { display: none !important; }
    #divMenu * { display: none !important; }
    #content > div { width: 80%; }
    .no-print { display: none !important; }
}

@media screen {
    .print-only { display: none !important; }
}

html {
    height: 100%;
    width: 100%;
}

body {
    font-family: Verdana, Geneva, Tahoma, sans-serif;
    background-color: #E2E3E4;
    margin: auto;
    height: 100%;
    overflow-y: scroll;
    max-width: 1200px;
}

#testBarWarning {
    box-shadow: 3px 3px #A6A8B6;
    background-color: orange;
    height: 50px;
    font-size: 1.2em;
    font-weight: bold;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hide {
    display: none !important;
}

h1 {
    font-weight: normal;
    font-size: 2.8em;
    margin: 0px;
    align-self: flex-end;
}

table {
    border-collapse: collapse;
}

#topBar {
    box-shadow: 3px 3px #A6A8B6;
    font-size: 0.7em;
    width: 100%;
    height: 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.session-timeout {
    padding-left: 10px;
}

.top-bar {
    background-color: #313366;
    color: white;
    text-align: right;
    border-top-left-radius: inherit;
    border-top-right-radius: inherit;
}

.text-and-close-button {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: bold;
    padding-left: 10px;
}

.text-and-close-button h3 {
    margin: 0;
    width: 100%;
    text-align: center;
}

#divUserWrapper {
    display: flex;
    align-items: center;
    white-space: nowrap;
    padding-right: 25px;
}

#divUser {
    cursor: pointer;
    display: flex;
    align-items: center;
    padding-left: 4px;
    min-width: 100px;
}

#divUser img {
    top: 0;
    left: 0;
    margin-left: 4px;
    height: 16px;
}

#divUser img.user-menu-triangle {
    height: 8px;
    margin-right: 4px;
    transition-delay: 0.25s;
    transition-duration: 0.75s;
}

#divUser img.user-menu-triangle.show {
    transition-delay: 0s;
    transition-duration: 0.5s;
    transform: rotate(0.25turn);
}

#divUser .user-menu {
    position: absolute;
    top: 40px;
    background-color: #313366;
    box-shadow: 3px 3px #A6A8B6;
    color: white;
    overflow: hidden;
    transition: max-height 1s;
    max-height: 0;
}

#divUser .user-menu.show {
    max-height: 100px;
}

#divUser .user-menu .user-menu-entry {
    padding: 4px 12px 4px 12px;
    color: white;
}

#divUser .user-menu .user-menu-entry:last-child {
    padding-bottom: 12px;
}

.user-setting-header {
    margin-top: 8px;
    font-weight: bold;
}

.user-setting-header:first-child {
    margin-top: unset;
}

img.user-setting-warning {
    margin-right: 4px;
    height: 24px;
}

img.user-setting-info {
    margin-left: 4px;
    height: 24px;
}

.user-setting-header > div {
    margin-left: 10px;
}

.user-sub-setting {
    margin-left: 20px;
}

.user-setting-header img,
.user-sub-setting img {
    cursor: help;
}

.user-setting-label {
    width: 165px;
}

.user-settings-buttons {
    display: flex;
    justify-content: center;

}

.user-settings-buttons button {
    margin: 20px 10px 0 0;
}

.user-settings-buttons button:last-child {
    margin-right: unset;
}

img.password-requirement {
    height: 24px;
    padding-left: 6px;
    padding-right: 6px;
}

div.password-requirement {
    align-items: center;
    background-color: palegreen;
}

div.password-requirement.not-ok {
    background-color: antiquewhite;
    color: red;
}

#divHeading {
    padding-top: 10px;
    padding-bottom: 10px;
}

#divHeading > div {
    display: flex;
    justify-content: space-between;
}

#divHeading .logo {
    width: 153px;
    height: 117px;
}

#divMenu {
    display: flex;
    width: 100%;
    flex-wrap: wrap;
    background-color: #486AA2;
}

#divMenu > a {
    flex-grow: 1;
    border-top: #6082BA solid 1px;
    border-right: #2A4C84 solid 1px;
    border-bottom: #2A4C84 solid 1px;
    border-left: #6082BA solid 1px;
    padding: 12px;
    text-decoration: none;
    color: white;
}

#divHelp {
    cursor: pointer;
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: flex;
    align-items: center;
}

#content {
    width: 100%;
    background-color: white;
    display: flex;
    flex-direction: column;
}

#content > div {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    margin-left: 40px;
    margin-right: 40px;
}

#content > div:first-child {
    margin-top: 30px;
}

#content > div:last-child {
    margin-bottom: 30px;
}

.details-header {
    border-top-left-radius: inherit;
    border-top-right-radius: inherit;
    background-color: #313366;
    color: white;
    font-size: 1.4em;
    font-weight: bold;
    padding: 10px;
    text-align: center;
}

.details-content {
    display: flex;
    flex-direction: row;
    padding: 10px;
    white-space: nowrap;
}

.details {
    display: flex;
    flex-direction: column;
    padding: 10px;
    white-space: nowrap;
}

.details-row {
    display: flex;
    align-items: center;
    min-height: 24px;
    padding-top: 8px;
}

.normal {
    font-weight: normal;
}

.bold {
    font-weight: bold;
}

.no-icon { /* Buttons with no icon */
    justify-content: center;
}

.button:active {
    box-shadow: 0 0 7px -1px rgba(0,0,0,0.6);
}

button {
    min-width: 60px;
    cursor: pointer;
    display:flex;
    justify-content: space-between;
    align-items: center;
    height: fit-content;
    box-shadow: 0 0 5px -1px rgba(0,0,0,0.2);
    font-size: 1em;
}

button img {
    margin-left: 6px;
    height: 24px;
}

button:active {
    box-shadow: 0 0 7px -1px rgba(0,0,0,0.6);
}

button .no-icon { /* Buttons with no icon */
    justify-content: center;
}

.img-in-list {
    height: 16px;
}

.box {
    border: solid #313366 1px;
    border-radius: 10px;
    padding: 10px;
    margin-bottom: 10px;
}

.warning {
    font-size: 1.2em;
    background-color: orange;
    padding: 4px;
    justify-content: center;
}

.editable {
    cursor: pointer;
    display: flex;
    align-items: center;
}

.editable:hover img {
    opacity: 1;
}

.img-edit {
    padding-left: 6px;
    opacity: 0;
    height: 24px;
}

.img-delete {
    cursor: pointer;
    opacity: 0.1;
}

.img-delete:hover {
    opacity: 1;
}

.img-update {
    cursor: pointer;
    vertical-align: middle;
    margin-left: 4px;
    height: 24px;
}

img.icon {
    cursor: pointer;
    margin-left: 4px;
    height: 24px;
}

img.period-button {
    margin-left: 4px;
    height: 24px;
    vertical-align: middle;
    cursor: pointer;
}

.space-left {
    margin-left: 6px;
}

.space-right {
    margin-right: 6px;
}

.space-between {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}

/***** Text animation *****/
@keyframes flickerAnimation {
    0%   { opacity:1; }
    50%  { opacity:0; }
    100% { opacity:1; }
  }
  @-o-keyframes flickerAnimation{
    0%   { opacity:1; }
    50%  { opacity:0; }
    100% { opacity:1; }
  }
  @-moz-keyframes flickerAnimation{
    0%   { opacity:1; }
    50%  { opacity:0; }
    100% { opacity:1; }
  }
  @-webkit-keyframes flickerAnimation{
    0%   { opacity:1; }
    50%  { opacity:0; }
    100% { opacity:1; }
  }
  .animate-flicker {
     -webkit-animation: flickerAnimation 1s infinite;
     -moz-animation: flickerAnimation 1s infinite;
     -o-animation: flickerAnimation 1s infinite;
      animation: flickerAnimation 1s infinite;
  }

/***** List *****/
.listWrapper {
    display: flex;
    flex-direction: column;
    background-color: white;
}

.listWrapper .rightAlign {
    text-align: right;
    padding-bottom: 10px;
}

.listWrapper .close {
    cursor: pointer;
    width: 32px;
    height: 32px;
}

.listWrapper input[type=text] {
    margin: 6px 6px 18px 6px;
    width: 200px;
}

.listWrapper .quick-filter input[type=text] {
    margin: 6px 6px 18px 6px;
    width: 200px;
}

.listWrapper .quick-filter-column {
    display: flex;
    flex-direction: column;
}

.listWrapper .quick-filter div {
    margin-bottom: 4px;
}

.listWrapper .quick-filter  input[type=checkbox] {
    margin-right: 4px;
}

.listWrapper .clearTextFilter {
    cursor: pointer;
    vertical-align: middle;
    width: 24px;
    height: 24px;
}

.listWrapper span {
    padding: 6px;
}

.listWrapper table.overlay-margin {
    margin: 2px;
}

.listWrapper tbody.selectable tr:hover {
    cursor: pointer;
    background-color: lightblue;
}

.listWrapper th,
.listWrapper td {
    text-align: left;
    border: solid #313366 1px;
    padding: 4px;
}

.listWrapper th {
    font-weight: normal;
    border: solid #313366 1px;
    border-right: solid white 1px;
    border-top-left-radius: inherit;
    border-top-right-radius: inherit;
}

.listWrapper th:last-child {
    border-right: solid #313366 1px;
}

.listWrapper th.deleteable,
.listWrapper td.deleteable {
    border: none;
    background-color: white;
}

.listWrapper td.sub-header {
    background-color: #486AA2;
    color: white;
}

.listWrapper .show-on-hover img {
    height: 16px;
    opacity: 0;
}

.listWrapper .show-on-hover:hover img {
    opacity: 1 !important;
}

/***** details-box *****/
.details-box {
    display: flex;
    flex-direction: column;
    border: solid #313366 1px;
    border-radius: 10px;
}

.details-box-header {
    border-top-left-radius: inherit;
    border-top-right-radius: inherit;
    background-color: #313366;
    color: white;
    font-size: 1.4em;
    font-weight: bold;
    padding: 10px;
    text-align: center;
    white-space: nowrap;
}

.details-box-content {
    padding: 10px;
}

.details-box-content > div {
    display: flex;
    flex-direction: row;
    white-space: nowrap;
    padding-top: 4px;
    padding-bottom: 4px;
}

.details-box-function img {
    height: 16px;
    padding-left: 6px;
    vertical-align: middle;
    opacity: 0;
}

.details-box-function:hover img {
    opacity: 1;
}

.details-box-info-icon {
    height: 16px;
    padding-left: 6px;
    vertical-align: middle;
}

/***** message-box *****/
.message-box {
    display: flex;
    flex-direction: column;
    border: solid #313366 1px;
    border-radius: 10px;
    background-color: white;
    min-width: 250px;
    max-width: 350px;}

.message-box-header {
    border-top-left-radius: inherit;
    border-top-right-radius: inherit;
    background-color: #313366;
    color: white;
    font-size: 1.4em;
    font-weight: bold;
    padding: 10px;
    text-align: center;
}

.message-box-text {
    padding: 10px;
}

.message-box-prompt {
    padding: 10px;
}

.message-box-buttons {
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    padding: 10px;
}

.message-box-buttons button {
    display: flex;
    flex-direction: row;
    justify-content: center;
    margin: 10px 0 0 0;
}

/***** Overlays *****/
.overlay-transparent {
    position: fixed;
    z-index: 80;
    height: 100%;
    width: 100%;
    background-color: black;
    opacity: 0.60;
    padding: 0;
    margin: 0;
    top: 0;
    left: 0;
    overflow: hidden;
}

.overlay-wrapper {
    position: absolute;
    z-index: 81;
    height: 100%;
    width: 100%;
    margin: 0;
    margin-top: 5%;
    padding: 0;
    top: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
}

.overlay-content {
    border: solid 1px #313366;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    background-color: white;
}

.box-header {
    border-top-left-radius: inherit;
    border-top-right-radius: inherit;
    background-color: #313366;
    color: white;
    font-size: 1.4em;
    font-weight: bold;
    padding: 10px;
    text-align: center;
}

.box-content {
    padding: 10px;
    white-space: nowrap;
    border-bottom-left-radius: inherit;
    border-bottom-right-radius: inherit;
}

.image-drop {
    width: 300px;
    min-height: 200px;
    background-color: lightgray;
    display: flex;
    justify-content: center;
    align-items: center;
}

.choosen-image {
    width: 300px;
}
