body {
    min-height: 100vh;
    margin: 0;
}

h1, h2, h3, h4, h5, h6, p, ul {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: bold;
    color: rgba(0, 0, 0, 0.75);
}

.badge-primary {
    background: #035876;
}

/* Custom Materialize styling */
.btn-primary:not(.btn-raised):not(.bmd-btn-fab).custom-file-control:before, 
.btn.btn-primary:not(.btn-raised):not(.bmd-btn-fab) {
    color: #035876 !important;
}

.btn-primary.btn-raised.custom-file-control:before, .btn.btn-primary.btn-raised {
    color: white !important;
    background: #035876 !important;
}

.bmd-btn-fab.btn-primary.custom-file-control:before, 
.btn-group-raised .btn-primary.custom-file-control:before, 
.btn-group-raised .btn.btn-primary, .btn-raised.btn-primary.custom-file-control:before, 
.btn.bmd-btn-fab.btn-primary, .btn.btn-raised.btn-primary {
    font-family: Roboto,Helvetica,Arial,sans-serif;
    background: #035876 !important;
    border-image: #035876 !important;
}

.checkbox label input[type=checkbox]:checked+.checkbox-decorator .check, 
label.checkbox-inline input[type=checkbox]:checked+.checkbox-decorator .check {
    border-color: #035876 !important;
    color: #035876 !important;
}

.checkbox label input[type=checkbox]:checked+.checkbox-decorator .check:before, 
label.checkbox-inline input[type=checkbox]:checked+.checkbox-decorator .check:before {
    border-color: #035876 !important;
    color: #035876 !important;
}

.checkbox {
    display: inline-block;
    vertical-align: middle;
}

a.bmd-btn-fab.btn-primary .material-icons {
    line-height: 2.5rem !important;
}

.is-focused [class*='bm-label'], .is-focused [class^=bmd-label] {
    color: #035876 !important;
}

a.bmd-btn-fab.btn-primary .material-icons {
    line-height: 2.5rem !important;
}

.has-error [class*=" bmd-label"], .has-error [class^=bmd-label] {
    color: rgb(255, 63, 63) !important;
}

.bmd-form-group .bmd-label-floating, 
.bmd-form-group .bmd-label-placeholder {
    left: 0;
}

.btn-group {
    margin: 10px 0px;
}

.form-card {
    margin-left: auto;
    margin-right: auto;
    margin-top: 120px;
    margin-bottom: 120px;
}

.form-card.card-sm {
    width: 500px;
}

.form-card.card-md {
    width: 600px;
}

.form-card.card-lg {
    width: 700px;
}

.card-form {
    margin: 0;
}

.btn.full-width {
    width: 100%;
}

.radio label {
    cursor: pointer;
}

/* Don't allow the text inside buttons to move while clicking on them in IE11 */
button > .no-text-shift {
    position: relative;
}

/* Tweak SweetAlert title CSS*/
.swal-title {
    font-weight: 700 !important;
}

/* Outline button styling */
.btn-outline-primary.custom-file-control:before, 
.btn.btn-outline-primary {
    color: #035876;
    border: 1px solid #035876;
}

.btn-outline-primary.active.custom-file-control:before,
.btn-outline-primary.custom-file-control:active:before,
.btn-outline-primary.custom-file-control:focus:before,
.btn-outline-primary.custom-file-control:hover:before,
.btn-outline-primary.focus.custom-file-control:before,
.btn.btn-outline-primary.active,
.btn.btn-outline-primary.focus,
.btn.btn-outline-primary:active,
.btn.btn-outline-primary:focus,
.btn.btn-outline-primary:hover,
.open > .btn-outline-primary.dropdown-toggle.custom-file-control:before,
.open > .btn.btn-outline-primary.dropdown-toggle {
    color: #035876 !important;
    border-color: #035876 !important;
}

.btn-outline-primary.focus,
.btn-outline-primary:focus {
    box-shadow: 0 0 0 0.2rem rgba(3, 88, 118, 0.5) !important;
}

/* This will make sure the cell sizes match the ones in Bootstrap 3 */
.datepicker td, .datepicker th {
    width: 1.5em;
    height: 1.5em;
}

/* Compability fix with Bootstrap 4 dropdown-menu styling */
.dropdown-menu.datepicker {
    opacity: 1.0;
    transform: scale(1);
    -webkit-transform: scale(1);
    -moz-transform: scale(1);
    -ms-transform: scale(1);
    -o-transform: scale(1);
}

/* Compability fix with the material design theme + Bootstrap 4 for the selectpicker library */
.dropdown.bootstrap-select.form-control .btn.dropdown-toggle.btn-light {
    font-weight: normal !important;
    text-transform: none !important;
    font-size: 1rem !important;
    color: #495057 !important;
    margin-bottom: 0px !important;
}

.dropdown.bootstrap-select.form-control .btn.dropdown-toggle.btn-light,
.dropdown.bootstrap-select.form-control .btn.dropdown-toggle.btn-light:hover {
    color: #495057 !important;
}

.dropdown.bootstrap-select.form-control .btn.dropdown-toggle.btn-light:focus {
    outline: none !important;
}

.dropdown.bootstrap-select.form-control ul.dropdown-menu.inner li a {
    min-width: 100%;
    max-width: 100%;
}

.bootstrap-select.show-tick .dropdown-menu .selected span.check-mark {
    top: calc(50% - 2.5px);
    top: -webkit-calc(50% - 2.5px);
    top: -moz-calc(50% - 2.5px);
    top: expression(50% - 2.5px);
    transform: translate(0, -50%);
    -webkit-transform: translate(0, -50%);
    -moz-transform: translate(0, -50%);
    -ms-transform: translate(0, -50%);
    -o-transform: translate(0, -50%);
}

/* Polyfill for object-fit */
.object-fit-polyfill {
    position: relative;
    height: 100%;
    width: 100%;
}

.object-fit-polyfill > .image {
    position: absolute;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: 50% 50%;
}

/* Custom 'active date' styling for the datepicker */
.datepicker table tr td.active, 
.datepicker table tr td.active.disabled, 
.datepicker table tr td.active.disabled:hover, 
.datepicker table tr td.active:hover {
    background: #035876 !important;
}

.datepicker table tr td span.active, 
.datepicker table tr td span.active.disabled, 
.datepicker table tr td span.active.disabled:hover, 
.datepicker table tr td span.active:hover {
    background: #035876 !important;
}

body ::selection {
    background: #035876;
    color: white;
}

body ::-webkit-selection {
    background: #035876;
    color: white;
}

body ::-moz-selection {
    background: #035876;
    color: white;
}

body ::-ms-selection {
    background: #035876;
    color: white;
}

body ::-o-selection {
    background: #035876;
    color: white;
}

nav, img, .radio > label {
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.table td, .table th {
    vertical-align: middle;
}

.error {
    color: red;
}

.swal-overlay {
    z-index: 100000 !important;
}

/* Prevent closing AVG modal by clicking outside */
.swal-overlay.avg-modal-no-close {
    pointer-events: none !important;
}

.swal-overlay.avg-modal-no-close .swal-modal {
    pointer-events: auto !important;
}

.generic-link {
    color: #035876;
}

.generic-link:hover {
    color: #035876 !important;
}

.swal-wide {
    width: 600px !important;
}

#loading-cover {
    position: fixed;
    top: 0;
    width: 100%;
    height: 100vh;
    display: block;
    z-index: 20002;
    background: rgba(0, 0, 0, 0.6);
    font-size: 1rem;

    /* Fade loading cover in/out */
    opacity: 1.0;

    /* Loading spinner should be invisible on IE8 and prior */
    -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=0)"; /* IE8 */
    filter: alpha(opacity=0); /* IE 5-7 */

    transition: 0.5s visibility, 0.5s opacity;
    -webkit-transition: 0.5s visibility, 0.5s opacity;
    -moz-transition: 0.5s visibility, 0.5s opacity;
    -ms-transition: 0.5s visibility, 0.5s opacity;
    -o-transition: 0.5s visibility, 0.5s opacity;
}

#loading-cover-spinner {
    position: relative;
    width: 50%;
    margin-left: 25%;
    margin-right: 25%;
    top: 50%;
    text-align: center;
    z-index: 20003;
    color: white;
    font-size: 500%;
    transform: translate(0, -50%);
    -webkit-transform: translate(0, -50%);
    -moz-transform: translate(0, -50%);
    -ms-transform: translate(0, -50%);
    -o-transform: translate(0, -50%);
}

#loading-cover-spinner svg {
    animation: spin-the-spinner 1s infinite;
    -webkit-animation: spin-the-spinner 1s infinite;
    -moz-animation: spin-the-spinner 1s infinite;
    -o-animation: spin-the-spinner 1s infinite;
}

.alert.alert-info {
    background: #035876;
    color: white;
}

@keyframes spin-the-spinner {
    from {
        transform: rotate(0deg);
        -webkit-transform: rotate(0deg);
        -moz-transform: rotate(0deg);
        -ms-transform: rotate(0deg);
        -o-transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
        -webkit-transform: rotate(360deg);
        -moz-transform: rotate(360deg);
        -ms-transform: rotate(360deg);
        -o-transform: rotate(360deg);       
    }
}

@-webkit-keyframes spin-the-spinner {
    from {
        transform: rotate(0deg);
        -webkit-transform: rotate(0deg);
        -moz-transform: rotate(0deg);
        -ms-transform: rotate(0deg);
        -o-transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
        -webkit-transform: rotate(360deg);
        -moz-transform: rotate(360deg);
        -ms-transform: rotate(360deg);
        -o-transform: rotate(360deg);       
    }
}

@-moz-keyframes spin-the-spinner {
    from {
        transform: rotate(0deg);
        -webkit-transform: rotate(0deg);
        -moz-transform: rotate(0deg);
        -ms-transform: rotate(0deg);
        -o-transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
        -webkit-transform: rotate(360deg);
        -moz-transform: rotate(360deg);
        -ms-transform: rotate(360deg);
        -o-transform: rotate(360deg);       
    }
}

@-o-keyframes spin-the-spinner {
    from {
        transform: rotate(0deg);
        -webkit-transform: rotate(0deg);
        -moz-transform: rotate(0deg);
        -ms-transform: rotate(0deg);
        -o-transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
        -webkit-transform: rotate(360deg);
        -moz-transform: rotate(360deg);
        -ms-transform: rotate(360deg);
        -o-transform: rotate(360deg);       
    }
}

/* 404 PAGE STUFF - WE DONT LOAD DASHBOARD.CSS ON THAT PAGE SO WE PUT THIS IN CORE.CSS INSTEAD */
#page-not-found-section {
    margin-left: 120px;
    margin-right: 120px;
    margin-top: 60px;
    text-align: center;
}

#page-not-found-section > #logo {
    display: block;
    width: 30%;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 60px;
}

#page-not-found-section > h1,
#page-not-found-section > p {
    color: white;
}

#page-not-found-section > h1 {
    font-weight: bold;
}

#page-not-found-section > p {
    margin-top: 20px;
}

#back-btn {
    background: white !important;
    color: #035876 !important;
}

#error-content #header {
    position: relative;
    background: #035876;
    padding: 15px;
    width: 100%;
    box-shadow: 0 0 30px 0 rgba(0, 0, 0, 0.025);
    -webkit-box-shadow: 0 0 30px 0 rgba(0, 0, 0, 0.025);
    -moz-box-shadow: 0 0 30px 0 rgba(0, 0, 0, 0.025);
}

#error-content #header h1 {
    margin: 0;
    font-size: 32px;
    font-weight: 600;
    color: white;
}

#error-content #body {
    padding: 15px;
}

.responsive-iframe {
    position: relative;
    overflow: hidden;
    padding-top: 56.25%;
}

.responsive-iframe > iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

textarea {
    resize: none;
}

/* Custom accordion theming */
.accordion h3:focus {
    outline: none;
}

.ui-accordion-header #text {
    display: inline-block;
    margin-left: 1em;
}

.ui-accordion .ui-accordion-header {
    padding: 15px;
}

.accordion h3 > .ui-icon {
    position: absolute;
    left: 15px;
    top: calc(50% + (1.2em / 4));
    top: -webkit-calc(50% + (1.2em / 4));
    top: -moz-calc(50% + (1.2em / 4));
    top: expression(50% + (1.2em / 4));
    transform: translate(0, -50%);
    -webkit-transform: translate(0, -50%);
    -moz-transform: translate(0, -50%);
    -ms-transform: translate(0, -50%);
    -o-transform: translate(0, -50%);
}

.ui-accordion .ui-accordion-content {
    padding-top: 1em;
    padding-left: 15px;
    padding-right: 0;
    padding-bottom: 1em;
}

.avg-mbox-scroll {
    max-height: 200px;
    overflow-y: auto;
}