*, ::after, ::before {
    box-sizing: border-box;
}
body {
    background-color: #F8F8F8;
    color: #333;
    margin: 0;
    padding: 0;
    font-family: 'Roboto', sans-serif;
    font-size: 15px;
    line-height: 20px;
}
h1, h2, h3, h4, h5, h6 {
    font-family: inherit;
    font-weight: 500;
    line-height: 1.2;
    color: inherit;
    margin-top: 0;
}
h1 {
    font-size: 28px;
}
h2 {
    font-size: 24px;
}
h3 {
    font-size: 22px;
}
h4 {
    font-size: 18px;
}
h5 {
    font-size: 16px;
}

h2:not(:first-child) {
    margin-top: 2.8rem;
}
h2, h3, h4 {
    margin: 0 0 .8rem 0;
}
p {
    margin-top: 0;
    margin-bottom: 1rem;
}
button, input {
    overflow: visible;
}
button, input, optgroup, select, textarea {
    margin: 0;
    font-family: inherit;
    font-size: inherit;
    line-height: inherit;
}
/* Add space between number and spinner buttons */
input[type=number]::-webkit-outer-spin-button,
input[type=number]::-webkit-inner-spin-button {
    margin-left:0.2em;
}

/* Margin settings */
.margin-zero {
    margin: 0!important;
}
.margin-top-zero {
    margin-top: 0!important;
}
.margin-top-1rem {
    margin-top: 1rem!important;
}
.margin-top-2rem {
    margin-top: 2rem!important;
}
.margin-top-3rem {
    margin-top: 3rem!important;
}

.margin-bottom-zero {
    margin-bottom: 0!important;
}
.margin-bottom-1rem {
    margin-bottom: 1rem!important;
}
.margin-bottom-2rem {
    margin-bottom: 2rem!important;
}
.margin-bottom-3rem {
    margin-bottom: 3rem!important;
}

/* Width settings */
.width-full {
    width: 100%;
}
.width-246 {
    width: 246px;
}
.width-300 {
    width: 300px;
}
.maxwidth-520 {
    max-width: 520px;
}
.maxwidth-600 {
    max-width: 600px;
}
.maxwidth-640 {
    max-width: 640px;
}
.maxwidth-750 {
    max-width: 750px;
}

.text-smaller {
    font-size: smaller!important;
}
.text-size-inherit {
    font-size: inherit!important;
}
.text-larger {
    font-size: larger!important;
    line-height: 26px;
}

.text-left {
    text-align: left!important;
}
.text-right {
    text-align: right!important;
}
.text-center {
    text-align: center!important;
}

.tooltip {
    color: #8c8c8c;
    font-size: smaller;
}

.element-center {
    margin-left: auto!important;
    margin-right: auto!important;
}

.no-wrap {
    white-space: nowrap!important;
}
.italic {
    font-style: italic;
}
.text-bold {
    font-weight: bold;
}
.strikethrough {
    text-decoration: line-through;
}

.flex-container {
    display: flex;
}
.flex-center {
    justify-content: center;
}
.flex-between {
    justify-content: space-between;
}
.flex-reverse {
    flex-direction: row-reverse;
}
.flex-33 {
    flex-basis: 33%;
}
.flex-66 {
    flex-grow: 66%;
}

.align-self-end {
    align-self: self-end!important;
}
.align-self-center {
    align-self: center!important;
}

.is-loading {
    display: none;
    position: fixed;
    top: 0;
    bottom: 0;
    right: 0;
    left: 0;
    z-index: 99;
    background-color: rgb(0,0,0);
    background-color: rgba(0,0,0,0.5);
}
.is-loading img {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 32px;
    height: 32px;
    margin-top: -16px;
    margin-left: -16px;
}

.mobile-only {
    display: none;
}
.hidden {
    display: none!important;
}

.keep-line-breaks {
    white-space: pre-line;
    line-height: .9rem;
}
.cursor-pointer {
    cursor: pointer!important;
}
.no-pointer {
    cursor: default!important;
}

.clearfix::after {
    content: "";
    clear: both;
    display: table;
}
.clear-top-margin {
    margin-top: 0!important;
}
.clear-bottom-margin {
    margin-bottom: 0!important;
}

/* Link styles */
a:link, a:visited, a:hover {
    color: #333;
}
a:active {
    color: #005073;
}

/* Message formatting */
.message-good,
.message-good a:link,
.message-good a:visited,
.message-good a:hover,
.message-good a:active {
    color: blue;
}
.message-warn,
.message-warn a:link,
.message-warn a:visited,
.message-warn a:hover,
.message-warn a:active {
    color: #d82424;
}
.warning,
.warning:hover {
    border-color: rgb(205, 0, 0)!important;
    background-color: rgba(230, 0, 0, 0.3)!important;
}
div.warning {
    border: 2px solid rgb(205, 0, 0);
    box-sizing: border-box;
    border-radius: 6px;
    padding: 8px 12px;
}
.alert {
    color: #856404;
    background-color: #fff3cd;
    border-color: #fff3cd;
    position: relative;
    padding: .75rem 1.25rem;
    margin-bottom: 1rem;
    border: 1px solid transparent;
    border-radius: .25rem;
    clear: both;
}
.alert p {
    margin: .6rem 0;
}
.warning p:first-of-type,
.alert p:first-of-type {
    margin-top: 0;
}
.warning p:last-of-type,
.alert p:last-of-type {
    margin-bottom: 0;
}
.alert a:link,
.alert a:visited,
.alert a:hover,
.alert a:active {
    color: #856404;
    text-decoration: underline;
}

.far, .fas {
    cursor: pointer;
}
.default-cursor {
    cursor: inherit!important;
}

.header-background {
    background-color: #244F93;
    padding: 10px 0px 6px 0px;
    margin: 10px 0px 20px 0px;
}

/* Button styles */
button {
    border-radius: 6px;
    padding: 10px 24px;
    font-size: 15px;
}
button:hover {
    cursor: pointer;
}
button.minimal {
    border-radius: 0;
    padding: 2px 6px;
    font-size: .8rem;
}
/* An a tag that loooks like a button. */
a.btn-like {
    display: inline-block;
    padding: 10px;
    color: #FFFFFF;
    border-radius: 5px;
    text-decoration: none;
}
a.btn-like-light {
    display: inline-block;
    padding: 10px;
    color: #163B76;
    border-radius: 5px;
    text-decoration: none;
}
.btn-tiny {
    border-width: 1px!important;
    border-radius: 4px!important;
    padding: 1px 4px!important;
    line-height: 1rem!important;
    font-size: .8rem!important;
}
.btn-tiny-in-label {
    margin:0 0 2px .6rem;
}
.btn-dark {
    background-color: #244f93;
    color: #f9f9f9;
    border: 2px solid #41649C;
}
.btn-dark:hover {
    background-color: #13376c;
}
.btn-dark:disabled {
    opacity: .5;
}
.btn-generic {
    background-color: #efefef;
    border: 2px solid #767676;
}
.btn-generic:hover {
    background-color: #e0e0e0;
}
.btn-pale {
    background: transparent;
    color: #153B76;
    border: 2px solid #6182B6;
}
.btn-transfer {
    background: transparent;
    padding: 0px 17px !important;
}
.btn-pale:hover {
    background-color: #C0D1EC;
    border: 2px solid #6182B6;
}
.btn-pale:disabled {
    background-color: #eee;
    border: 2px solid #ddd;
    color: #999;
}
.btn-small {
    padding: 6px 16px;
}
button > img,
button > * {
    display: inline-block;
    vertical-align: middle;
}
button > img {
    height: 25px;
}
button > *:not(:first-child ) {
    padding-left: 6px;
}

/* Side navbar */
.sidebar {
    list-style-type: none;
    margin: 0;
    padding: calc(26px + 1.8rem) 0 0 0;
    width: 90px;
    height: 100vh;
    position: fixed;
    overflow-y: scroll;
    /* Hide scrollbar for IE, Edge and Firefox */
    -ms-overflow-style: none;
    scrollbar-width: none;
}
/* Hide scrollbar for Chrome, Safari and Opera */
.sidebar::-webkit-scrollbar {
    display: none;
}

.sidebar .active {
    cursor: pointer;
    background-color: #3464b2;
}

.sidebar li {
    font-size: 18px;
    color: #fff;
}
.sidebar li:hover {
    cursor: pointer;
    background-color: #3464b2;
}
.sidebar span {
    font-size: .65rem;
    display: block;
    line-height: 15px!important;
    padding-top: 4px;
}
.sidebar span.menu-icon {
    padding: 0;
    width: 18px;
    height: 21px;
    text-align: center;
    margin: 0 auto;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}
.sidebar span.menu-icon.edi-invoicing {
    background-image: url('../../images/edi-invoices.svg');
}
.sidebar a:link,
.sidebar a:visited,
.sidebar a:hover,
.sidebar a:active {
    text-align: center;
    color: inherit;
    text-decoration: none;
    display: block;
    padding: 12px 20px;
}

/* Colors */
.bg-blue {
    background-color: #244f93;
    color: #f9f9f9;
}
.bg-blue-pale {
    background-color: #dae2ed;
}
.bg-blue-palest {
    background-color: #F2F5F9;
}
.bg-red {
    background-color: rgba(255, 0, 0, .64)!important;
    color: inherit!important;
}
.bg-red-dark {
    background-color: rgba(194, 0, 0, .80)!important;
    color: #fff!important;
}
.bg-orange {
    background-color: rgba(236, 116, 4, .9)!important;
    color: #fff!important;
}
.bg-green {
    background-color: #b3e6b3;
    color: #194d19;
}
.bg-grey {
    background-color: #d9d9d9;
}
.bg-grey-pale {
    background-color: #e6e6e6;
}
.bg-black {
    background-color: black;
    color: #F8F8F8;
}

.fa-grey {
    color: #6B6B6B;
}

/* Borders */
.border-pale {
    border: 2px solid #6182B6;
}

/* Badges */
.badge {
    display: inline-block;
    line-height: 16px;
    font-size: 12px;
    padding: 2px 4px;
    border: 0;
    margin: auto 2px;
    vertical-align: text-top;
    border-radius: 3px;
    color: white;
}
.badge-orange {
    background-color: rgba(245, 138, 7, .9);
}
.badge-green {
    background-color: rgba(0, 179, 40, .8);
}
.badge-blue-dark {
    background-color: rgba(36, 79, 147, .7);
}
.badge-red {
    background-color: rgba(214, 11, 11, .7);
}
.badge-purple {
    background-color: rgba(144, 0, 179, .8);
}
.badge-pink {
    background-color: rgba(255, 20, 147, .7);
}
.badge-grey {
    background-color: rgba(120, 120, 120, .5);
}

/* Click to copy to clipboard */
.copy-to-clipboard {
    display: inline-block;
    padding: 0 6px;
    color: grey;
    cursor: pointer;
}
.copy-to-clipboard:hover {
    color: inherit;
}

/* Basic layout */
.container-white {
    background-color: #fff;
    padding: 1.2rem 1rem;
    border: 1px solid #d9d9d9;
}

/* Help bubble */
.help-box-float {
    cursor: help;
}
.help-box-float-active {
    position: absolute;
    z-index: 99;
    width: 350px;
    background-color: white;
    border: solid 1px #1a1a1a;
    box-shadow: 2px 2px 1px #b3b3b3;
    padding: .5rem .8rem;
}

.stretched {
    width: 100%;
}

/* Icons */
.icon {
    font-family: Arial, Helvetica, sans-serif;
    margin-right: 24px;
    position: relative;
}
.icon::after {
    font-size: 24px;
    padding: 0 9px;
    position: absolute;
    line-height: 20px;
}
.clickable {
    color: grey;
}
.clickable:hover {
    color: inherit;
    cursor: pointer;
}
.xmark::after {
    content: "\00d7";
}

@media print {
    .print-hide {
        display: none;
    }
}

@media only screen and (max-width: 600px) {
    /* Mobile display */
    .mobile-only {
        display: initial;
    }
    .mobile-hide {
        display: none!important;
    }
    .mobile-full-width {
        width: 100%!important;
    }
}

.disabled {
    pointer-events: none;
    opacity: 0.6;
}

.disabled-click {
    pointer-events: none;
}
