body {
    margin: 0;
    background: #f2f2f2;
    overflow: auto;
    font-family: 'Roboto', 'Helvetica', 'Arial', sans-serif;
}

a {
    color: #0091cc;
}

.link {
    color: #0091cc;
    text-decoration: underline;
}

.link:hover {
    cursor: pointer;
}

/* Disable anoying browser yellow highlighting effect of stored form fields */
input:-webkit-autofill,
input:-webkit-autofill:focus {
    box-shadow: 0 0 0 50px white inset;
    -webkit-box-shadow: 0 0 0 50px white inset;
    -webkit-text-fill-color: #333;
}

/* Disable time field inner scrollbars */
input[type='time']::-webkit-inner-spin-button,
input[type='time']::-webkit-outer-spin-button {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    margin: 0;
}

.form-container input:-webkit-autofill {
    box-shadow: 0 0 0 1000px white inset;
    -webkit-box-shadow: 0 0 0 1000px white inset;
}

.app-bar {
    position: fixed;
    width: 100%;
    top: 0px;
    height: 64px;
}

.main-container {
}

.home-left-menu {
    position: fixed;
    top: 64px; /* space for the app bar */
    width: 256px;
    overflow: auto;
    background: white;
}

.left-menu {
    position: fixed;
    top: 64px; /* space for the app bar */
    bottom: 3em; /* space for menu buttons */
    width: 256px;
    overflow: auto;
    background: white;
}

@media (max-width: 1200px) {
    .left-menu {
        width: 5em;
        overflow-x: hidden;
        bottom: 0; /* space for menu buttons */
    }
}

.left-menu-buttons {
    position: fixed;
    bottom: 0;
    padding-bottom: 5px;
    width: 256px;
}

@media (max-width: 1200px) {
    .left-menu-buttons {
        display: none;
    }
}

.right-content-holder {
    position: fixed;
    top: 64px; /* space for the app bar */
    bottom: 0px;
    right: 0px;
    left: 256px; /* space for the menu */
    overflow: auto;
}

@media (max-width: 1200px) {
    .right-content-holder.shrink-content-holder {
        left: 5em; /* space for the menu */
    }
}

.full-content-holder {
    position: fixed;
    top: 64px; /* space for the app bar */
    bottom: 0px;
    right: 0px;
    left: 0px;
    overflow: auto;
}

.card-menu-item {
    position: relative;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    padding-top: 15px;
    padding-left: 8px;
    padding-right: 8px;
    text-decoration: none;
}

.card-menu-item:hover:after {
    background: rgba(0, 0, 0, 0.05);
    position: absolute;
    top: 15px;
    bottom: 0px;
    left: 8px;
    right: 8px;
    content: '';
}

.main-content {
    display: inline-block;
    padding-left: 15px; /* gap from the menu */
    padding-top: 10px; /* gap from the appbar */
    padding-right: 15px; /* gap between form card and window border */
    padding-bottom: 15px; /* extra space on the bottom */
    min-width: 1000px;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}

.icon-light {
    opacity: 0.6;
    filter: alpha(opacity=60); /* for IE8 and earlier */
}

.menu-status-icon {
    opacity: 1;
    filter: alpha(opacity=100); /* for IE8 and earlier */
}

.content-padding {
    padding: 15px;
}

.bottom-border {
    border-bottom: thin solid #e1e1e1;
}

.top-border {
    border-top: thin solid #e1e1e1;
}

.gray-text {
    color: #aaaaaa;
}

.elem-padding-right {
    padding-right: 1.5em;
}

.form-text-field {
    margin-right: 2rem;
}

.form-date-picker {
    margin-right: 2rem;
}

.form-section-header {
    font-weight: bold;
    text-transform: uppercase;
    padding-top: 15px;
}

.owl:hover {
    background: url(../img/owl.png) no-repeat;
    background-size: 100%;
    width: 100%;
    height: 100%;
    display: block;
}

.black {
    color: #000000 !important;
}

.light-black {
    color: rgba(0, 0, 0, 0.87) !important;
}

.bold {
    font-weight: 600 !important;
}

.semi-bold {
    font-weight: 500 !important;
}

.no-bold {
    font-weight: 400 !important;
}

.roboto {
    font-family: 'Roboto', 'Helvetica', 'Arial', sans-serif;
}

.main-color {
    color: #0091cc !important;
}

.underline {
    text-decoration: underline !important;
}

.strike {
    text-decoration: line-through !important;
}

.uppercase {
    text-transform: uppercase;
}

.black {
    color: black !important;
}

.informational {
    color: #888888;
}

.block {
    display: block;
}

.small {
    font-size: 0.9em !important;
}

.smaller {
    font-size: 0.8em !important;
}

.small-info {
    color: darkgray;
    font-size: 0.9em;
}

tr.small-row-padding td {
    padding-top: 3px;
    padding-bottom: 3px;
}

.dialog-content {
    font-family: 'Roboto', 'Helvetica', 'Arial', sans-serif;
    color: rgba(0, 0, 0, 0.6);
}

.list-title {
    font-size: 16px;
}

.list-desc {
    color: #0000008a;
    margin-top: 4px;
}

.list-extra-content {
    margin-top: 4px;
}

.gray-background {
    background: #f0f0f0;
}

.light-blue-background {
    background: rgba(0, 145, 204, 0.12) !important;
}

.none-background {
    background: none !important;
}

.blue-text {
    color: #0091cc !important;
}

.rounded {
    border-radius: 5px;
}

.blue-border {
    border: 2px solid #0091cc;
}

.ellipsis {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ellipsis-two-line {
    /* fallback to 1 line ellipsis for non-webkit */
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.orange-warning-status {
    background: #f18c32;
    font-size: 0.85rem;
    color: white;
    text-align: center;
    padding: 5px 15px;
    opacity: 0.95;
    border-bottom: 1px solid white;
}

.red-warning-status {
    background: red;
    font-size: 0.85rem;
    color: white;
    text-align: center;
    padding: 5px 15px;
    opacity: 0.95;
    border-bottom: 1px solid white;
}

@supports (-webkit-line-clamp: 2) {
    .ellipsis-two-line {
        white-space: initial;
        overflow: hidden;
        text-overflow: ellipsis;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
    }
}

.pointer {
    cursor: pointer;
}

.wrap-break-word {
    overflow-wrap: break-word;
    word-break: break-word;
}

.no-wrap-break-word {
    overflow-wrap: initial;
    word-break: initial;
}

.letter-circle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    width: 11px;
    height: 11px;
    padding: 3px;
    background: #333333;
    color: #ffffff;
    text-align: center;
    font-weight: 600;
    font-size: 11px;
}

.animate-transition {
    transition: all 300ms ease 0s;
}

.inline-vertical-center {
    display: inline-flex;
    align-items: center;
}

.inline-center {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.vertical-center {
    display: flex;
    align-items: center;
}

.center {
    display: flex;
    align-items: center;
    justify-content: center;
}

.table-header-clickable {
    cursor: pointer;
}

.table-header-clickable:hover {
    text-decoration: underline;
}

.table-header-active {
    color: gray !important;
    font-weight: bold;
    cursor: pointer;
    text-decoration: underline;
}

/* Style for clickable items */
.hover-background:hover {
    background-color: rgba(0, 0, 0, 0.1);
}

/* Style for non clickable items */
.highlight-background:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

.blue-hover-background {
    background-color: #0091cc;
}

.blue-hover-background:hover {
    background-color: #00688c;
}

.light-blue-hover-background {
    background-color: #2ebcd4;
}

.light-blue-hover-background:hover {
    background-color: #0091cc;
}

.white-hover-background {
    background-color: white;
}

.white-hover-background:hover {
    background-color: #e5e5e5;
}

.gray-striped-background {
    background: repeating-linear-gradient(45deg, #eeeeee, #eeeeee 10px, #e0e0e0 10px, #e0e0e0 20px);
}

.gray-striped-background:focus {
    background: repeating-linear-gradient(45deg, #eeeeee, #eeeeee 10px, #cecece 10px, #cecece 20px);
}

.subheader {
    font-weight: bold;
    text-transform: uppercase;
    color: black;
    font-size: 90%;
}

table.informational {
    border: 0px solid darkgrey;
}

table.informational > tbody {
    margin: -3px;
    display: block;
}

table.informational > tbody > tr > th {
    text-align: left;
    font-size: 80%;
    font-weight: 600;
    padding: 8px;
}

table.informational > tbody > tr > td {
    padding: 8px;
}

table.informational tr:nth-child(odd) {
    background: #ffffff;
}
table.informational tr:nth-child(even) {
    background: #f5f5f5;
}

table.data {
    width: 100%;
    font-size: 85%;
    table-layout: fixed;
    border-collapse: collapse;
    border: 0.8px dashed lightgray;
    border-left: none;
}

table.data > tbody > tr > th,
table.data > tbody > tr > td {
    padding: 8px 15px;
    box-sizing: border-box;
    border: 0.8px dashed rgb(226, 214, 214);
    text-align: center;
}

table.data > tbody > tr > th {
    border-left: none;
    text-align: left;
    font-weight: 400;
}

.timeline {
    background: #f0f0f0;
    position: relative;
    font-size: 16px; /* For positioning to work properly */
}

.timeline-item {
    display: flex;
    align-items: center;
    padding: 8px 15px;
}

.timeline-vertical-line {
    position: absolute;
    top: 35px;
    left: 8.9em;
    bottom: 35px;
    width: 1px;
    background: lightgray;
    z-index: 0;
}

.timeline-time-holder {
    flex-shrink: 0;
    width: 6.5em;
    text-align: right;
}

.timeline-time {
    display: inline-block;
    padding: 4px 8px;
    box-shadow: 0 1px 4px 0 rgba(0, 0, 0, 0.14);
    background: #fff;
    border-radius: 6px;
}

.timeline-icon {
    flex-shrink: 0;
    height: 32px;
    width: 32px;
    border-radius: 32px;
    margin-left: 8px;
    margin-right: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1;
}

.timeline-bubble {
    position: relative;
}

.timeline-bubble .content {
    position: relative;
    background: white;
    border-radius: 0.4em;
    margin-left: 10px;
    box-shadow: rgba(0, 0, 0, 0.12) 0px 1px 6px, rgba(0, 0, 0, 0.12) 0px 1px 4px;

    min-height: 40px;
    padding: 10px 15px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    font-size: 0.9em;
    z-index: 1;
}

.timeline-bubble .arrow {
    background-color: white;
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 10px;
    border: 10px solid transparent;

    border-left: 0;
    margin-top: -10px;

    transform: rotate(45deg);
    -moz-transform: rotate(45deg);
    -ms-transform: rotate(45deg);
    -o-transform: rotate(45deg);
    -webkit-transform: rotate(45deg);
    box-shadow: -2px 2px 2px 0 rgba(0, 0, 0, 0.12);
    z-index: 0;
}

div.err,
span.err {
    color: #f44336;
}

div.warn,
span.warn {
    color: darkorange;
}

span.err-small {
    color: #f44336;
    font-size: 12px;
    line-height: 12px;
}

.warn-black { color: #000000 !important; font-weight: 600; }
.warn-red { color: #f44336 !important; }
.warn-orange { color: #f18c32 !important; }
.warn-yellow { color: #d99c12 !important; }
.warn-green { color: #20bf55 !important; }
.warn-blue { color: #0091cc !important; }

.my-list-item:not(.no-hover):hover {
    background: rgba(0, 0, 0, 0.1);
    cursor: pointer;
}

div.stepper-number {
    display: inline-block;
    width: 22px;
    text-align: center;
    padding-top: 3px;
    padding-bottom: 3px;
    border-radius: 3em;
    background-color: #9e9e9e;
    margin-right: 1em;
    margin-top: 5px;
    margin-bottom: 5px;
    font-size: 80%;
    font-weight: 600;
    color: white;
}

div.stepper-block {
    border-left: 1px solid rgb(189, 189, 189);
    margin-left: 11px;
    padding-top: 10px;
    padding-bottom: 10px;
    padding-left: 30px;
}

div.paper {
    box-shadow: rgba(0, 0, 0, 0.12) 0px 1px 6px, rgba(0, 0, 0, 0.12) 0px 1px 4px;
    border-radius: 2px;
    background-color: white;
    z-index: 0;
    position: relative;
}

/* Hide scrollbar in scanner preview */
.thumbLists {
    overflow-y: hidden !important;
}

/* Simple items table */
table.simple {
    width: 100%;
    font-size: 14px;
    table-layout: fixed;
    border-collapse: collapse;
    border: 0.8px dashed lightgray;
}

table.simple > tbody > tr:hover td:not(.no-hover) {
    background: rgba(0, 0, 0, 0.1);
}

table.simple th,
table.simple td {
    padding: 8px 15px;
    box-sizing: border-box;
    border: 0.8px dashed rgb(226, 214, 214);
}

/* Lab table */
table.lab {
    display: inline-block;
    border-collapse: collapse;
}

table.lab > tbody > tr {
    border-bottom: 0.8px solid rgb(224, 224, 224);
}

table.lab > tbody > tr > th {
    font-weight: 500;
}

table.lab > tbody > tr > td,
table.lab > tbody > tr > th {
    border: 0px solid #999;
    padding: 10px;
    text-align: center;
}

table.highlight {
    overflow: hidden;
    z-index: 0;
    position: relative;
}

table.highlight > tbody > tr > td,
table.highlight > tbody > tr > th {
    position: relative;
}

/* Row */
table.highlight > tbody > tr > th.highlight-row:hover::before,
table.highlight > tbody > tr > td:not(.skip-row-highlight):hover::before {
    background-color: rgba(0, 0, 0, 0.05);
    content: '';
    height: 100%;
    left: -5000px;
    position: absolute;
    top: 0;
    width: 10000px;
    z-index: -2;
}

/* Col */
table.highlight > tbody > tr > th.highlight-col:hover::after,
table.highlight > tbody > tr > td:not(.skip-highlight):hover::after {
    background-color: rgba(0, 0, 0, 0.1);
    content: '';
    height: 10000px;
    left: 0;
    position: absolute;
    top: -5000px;
    width: 100%;
    z-index: -1;
}

table > tbody > tr > td.custom-action:hover {
    background-color: rgba(0, 0, 0, 0.07);
}

/* Make react-datepicker bit smaller */
.react-datepicker__day-name,
.react-datepicker__day,
.react-datepicker__time-name {
    width: 1.5rem !important;
    line-height: 1.3rem !important;
    margin: 1px !important;
    outline: none !important; /* Selection outline hidden */
}

/* Custom highlight day style */
.react-datepicker__day--highlighted {
    background-color: #0091cc !important;
    color: white !important;
}

/* Hide react-datepicker days which are outside month */
.react-datepicker__day--outside-month {
    visibility: hidden;
}

/* Next/previous month buttons hidden */
.react-datepicker__navigation {
    visibility: hidden;
}
