﻿/* Custom CSS */

.hide {
    display: none;
}

#loading-overlay {
    position: absolute;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

#loading-overlay-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.loading-overlay .sk-child {
    background-color: white !important;
}

.alert-success, .alert-danger, .alert-info, .alert-warning {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translate(-50%, 0);
    width: 75%;
    margin-top: 10px;
    z-index: 1000;
}

.field-validation-error {
    color: red;
}

.left {
    float: left;
}

.right {
    float: right;
}

.header {
    border-left: 4px solid #3c5d80;
    color: #343a40;
    text-transform: uppercase;
    font-weight: 700;
    padding-left: 7.5px;
    letter-spacing: .5px;
    margin-bottom: 20px;
}

.data-table-loader {
    top: 35%;
}

.display-none {
    display: none;
}

.fill-height {
    height: 100% !important;
}

.fill-width {
    width: 100% !important;
}

.fill {
    height: 100% !important;
    width: 100% !important;
}

.input-group-text {
    min-width: 45px;
}

.section-wrapper-flex {
    display: flex;
    flex-flow: column;
    border: 1px solid #ced4da;
    background-color: #fff;
    padding: 20px;
}

@media (min-width: 576px) {
    .section-wrapper-flex {
        padding: 40px;
    }
}

.fill-section-wrapper {
    flex-grow: 1;
}

.stick-to-bottom-right {
    position: sticky;
    top: 100%;
    left: 100%;
}

.stick-to-bottom-left {
    position: sticky;
    top: 100%;
    left: 0;
}

::-webkit-scrollbar-track {
    -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
    background-color: #F5F5F5;
}

::-webkit-scrollbar {
    width: 10px;
    background-color: #3c5d80;
}

::-webkit-scrollbar-thumb {
    background-color: #3c5d80;
}

.required {
    color: red;
    margin-left: 5px;
}

.click-here {
    color: blue;
}

.click-here:hover {
    text-decoration: underline;
    cursor: pointer;
}

/*Responsive header with user settings on the right*/
@media only screen and (max-width:990px) {
    .dropdown .dropdown-c {
        width: 20px !important;
        height: 30px !important;
    }

    .logged-user .fa-angle-down {
        display: block !important;
    }
    
    .logged-user .fa-cogs {
        display: block !important;
    }
        
    .logged-user {
        width: 20px !important;
        height: 30px !important;
    }
}

.dropdown-menu-right {
    z-index: 100000;
}

.hidden {
    display: none;
}

.dataTables_length{
    display: none;
}

.search-box {
    display: flex !important;
}

.red {
    color: red;
}

.display-flex {
    display: flex;
}

.pound {
    position: relative;
}
.pound input { padding-left: 25px; }
.pound:before {
    position: absolute;
    content: "£";
    font-size: 24px;
    left: 7px;
    top: 3.5px;
}

.percentage {
    position: relative;
}
.percentage:before {
    position: absolute;
    content: "%";
    font-size: 24px;
    right: 5px;
    top: 3px;
}

input:read-only:focus {
    border: 1px solid #ced4da;
}

.green {
    color: green;
}