﻿:root {
    --sidebar-bg-color: #00A9CE;
    --sidebar-color: #FFFFFF;
    --sidebar-hover: rgba(255, 255, 255, 0.2);
    --topbar-bg-color: #FFFFFF;
    --topbar-color: #333;
    --topbar-hover: rgba(0, 0,0, 0.075);
}

.navbar-light {
    background-color: white;
}

.nav-item span {
    vertical-align: middle;
    padding-left: 5px;
}

.cancel-padding {
    padding-left: 0px;
    padding-right: 0px;
}

.custom-container {
    max-width: 1815px;
    margin: 0 auto;
}

.custom-container-small {
    max-width: 1615px;
    margin: 0 auto;
}

.custom-container-xs {
    max-width: 1100px;
    margin: 0 auto;
}

.custom-container-s {
    max-width: 600px;
    margin: 0 auto;
}

.custom-container-b {
    max-width: 800px;
    margin: 0 auto;
}

.caret-off::before {
    display: none;
}

.caret-off::after {
    display: none;
}


/* === FLOATING LABEL === */

.floating-label {
    padding-top: .75rem;
    position: relative;
}

    .floating-label > label,
    .floating-label > span {
        -webkit-transform-origin: 0 0;
        color: rgba(0,0,0,.38);
        display: block;
        font-size: 1rem;
        left: 0;
        line-height: 1.5;
        margin: 0;
        padding: 0;
        position: absolute;
        top: 1.125rem;
        transform-origin: 0 0;
        transition-duration: .3s;
        transition-property: color,top,-webkit-transform,font-size;
        transition-property: color,top,transform,font-size;
        transition-property: color,top,transform,-webkit-transform,font-size;
        transition-timing-function: cubic-bezier(.4,0,.2,1);
        white-space: nowrap;
        width: 100%;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .floating-label .form-label {
        top: 0;
        padding: .375rem 0.75rem calc(.375rem - 1px);
        position: relative;
    }

    .floating-label .floating-addon {
        position: relative;
        background-clip: padding-box;
        background-color: transparent;
        border: solid rgba(0,0,0,.42);
        border-radius: 0;
        border-width: 0 0 1px;
        box-shadow: none;
        color: rgba(0,0,0,.87);
        display: block;
        font-size: 1rem;
        line-height: 1.5;
        padding: .375rem 0.75rem calc(.375rem - 1px);
        height: calc(1.5em + 0.75rem + 2px);
    }


    .floating-label .form-control {
        position: relative;
        background-clip: padding-box;
        background-color: transparent;
        border: solid rgba(0,0,0,.42);
        border-radius: 0;
        border-width: 0 0 1px;
        box-shadow: none;
        color: rgba(0,0,0,.87);
        display: block;
        font-size: 1rem;
        line-height: 1.5;
        padding: .375rem 0 calc(.375rem - 1px);
    }

    /*.floating-label .btn,*/
    .floating-label .input-group-text {
        background-color: #FFF;
        -webkit-appearance: none;
        border: 0;
        border-bottom: 1px solid rgba(0,0,0,.42);
        border-radius: 0;
    }

        .floating-label .input-group-text:hover,
        .floating-label .input-group-text:focus {
            background-color: var(--topbar-hover);
            box-shadow: none;
        }

    .floating-label .form-control:hover {
        border-bottom-width: 2px;
    }

    .floating-label .form-control:focus,
    .was-validated .floating-label .form-control:valid:focus,
    .was-validated .floating-label .form-control.is-valid:focus {
        border-color: var(--secundary-500);
        outline: 0;
        background-color: transparent;
    }

    .floating-label.is-focused > label,
    .floating-label.is-focused > span {
        color: var(--secundary-500);
    }

    .floating-label.has-value > label, .floating-label.is-focused > label,
    .floating-label.has-value > span, .floating-label.is-focused > span {
        /*-webkit-transform: scale(.75);*/
        top: 0;
        font-size: 0.75rem;
        /*transform: scale(.75);*/
    }

    .floating-label input::-webkit-input-placeholder {
        color: transparent;
    }

    .floating-label input:-ms-input-placeholder {
        color: transparent;
    }

    .floating-label input::-ms-input-placeholder {
        color: transparent;
    }

    .floating-label input::-moz-placeholder {
        color: transparent;
    }

    .floating-label input::placeholder {
        color: transparent;
    }

    .floating-label.is-focused input::-webkit-input-placeholder {
        color: rgba(0,0,0,.38);
    }

    .floating-label.is-focused input:-ms-input-placeholder {
        color: rgba(0,0,0,.38);
    }

    .floating-label.is-focused input::-ms-input-placeholder {
        color: rgba(0,0,0,.38);
    }

    .floating-label.is-focused input::-moz-placeholder {
        color: rgba(0,0,0,.38);
    }

    .floating-label.is-focused input::placeholder {
        color: rgba(0,0,0,.38);
    }


    .floating-label .custom-select:disabled:focus,
    .floating-label .custom-select:disabled:hover,
    .floating-label .custom-select[readonly]:focus,
    .floating-label .custom-select[readonly]:hover,
    .floating-label .form-control:disabled:focus,
    .floating-label .form-control:disabled:hover,
    .floating-label .form-control[readonly]:focus,
    .floating-label .form-control[readonly]:hover {
        border-color: rgba(0,0,0,.42);
        box-shadow: none;
    }

    .floating-label .custom-select:disabled,
    .floating-label .custom-select[readonly],
    .floating-label .form-control-file:disabled,
    .floating-label .form-control-file[readonly],
    .floating-label .form-control:disabled,
    .floating-label .form-control[readonly] {
        border-style: dotted;
        color: rgba(0,0,0,.38);
        opacity: 1;
    }

    .floating-label .input-group.date .form-control:disabled ~ .input-group-append,
    .floating-label .input-group.date .form-control[readonly] ~ .input-group-append {
        display: none;
    }

.was-validated .floating-label .form-control:invalid:focus,
.was-validated .floating-label .form-control.is-invalid:focus,
.was-validated .floating-label .form-control:valid:focus,
.was-validated .floating-label .form-control.is-valid:focus,
.was-validated .custom-control-input:invalid:focus ~ .custom-control-label::before,
.was-validated .custom-control-input.is-invalid:focus ~ .custom-control-label::before,
.was-validated .custom-control-input:valid:focus ~ .custom-control-label::before,
.was-validated .custom-control-input.is-valid:focus ~ .custom-control-label::before,
.custom-control-input:focus ~ .custom-control-label::before {
    -webkit-box-shadow: none;
    box-shadow: none;
}

.was-validated .form-control:valid,
.was-validated .form-control.is-valid {
    border-color: rgba(0,0,0,.42);
    background-image: none;
    padding: .375rem 0 calc(.375rem - 1px);
}

.was-validated .custom-control-input:valid ~ .custom-control-label,
.custom-control-input.is-valid ~ .custom-control-label {
    color: inherit;
}

.was-validated .custom-control-input:valid:checked ~ .custom-control-label::before,
.custom-control-input.is-valid:checked ~ .custom-control-label::before {
    border-color: rgba(0,0,0,.42);
    background-color: var(--sidebar-bg-color);
}

.was-validated .custom-control-input:valid ~ .custom-control-label::before,
.custom-control-input.is-valid ~ .custom-control-label::before,
.was-validated .custom-control-input:valid:focus:not(:checked) ~ .custom-control-label::before,
.custom-control-input.is-valid:focus:not(:checked) ~ .custom-control-label::before {
    border-color: rgba(0,0,0,.42);
}

/* *********  Dropdown styling ************/

.form-group > .btn {
    margin-top: 0.75rem;
}


.autocomplete {
    /*the container must be positioned relative:*/
    position: relative;
    display: inline-block;
}

div.autocomplete input {
    border: 1px solid transparent;
    background-color: #f1f1f1;
    padding: 10px;
    font-size: 16px;
}

    div.autocomplete input[type=text] {
        width: 100%;
    }

    div.autocomplete input[type=submit] {
        color: #fff;
    }

.autocomplete-items {
    position: absolute;
    border: 1px solid #d4d4d4;
    border-bottom: none;
    border-top: none;
    z-index: 99;
    /*position the autocomplete items to be the same width as the container:*/
    top: 100%;
    left: 0;
    right: 0;
}

    .autocomplete-items div {
        padding: 10px;
        cursor: pointer;
        background-color: #fff;
        border-bottom: 1px solid #d4d4d4;
    }

        .autocomplete-items div:hover {
            /*when hovering an item:*/
            background-color: #e9e9e9;
        }

.autocomplete-active {
    /*when navigating through the items using the arrow keys:*/
    background-color: DodgerBlue !important;
    color: #ffffff;
}

.formctrl {
    padding-top: 10px;
    padding-bottom: 10px;
    vertical-align: middle;
}

div.wildcardddl {
    position: absolute;
    /*z-index: 1000;*/
    background-color: white;
    border: 1px solid black;
    border-radius: 0 0 2px 2px;
    overflow-y: auto;
    min-width: 100%;
    display: none;
    max-height: 400px;
}

    div.wildcardddl.active {
        display: block;
    }

    div.wildcardddl .option {
        min-height: 1.2em;
        padding: 0 5px 0 5px;
        line-height: 1.5;
        color: #212529;
        text-align: left;
        font-size: 1rem;
        font-weight: 400;
        float: left;
        width: 100%;
    }

        div.wildcardddl .option:hover, div.wildcardddl .option:focus {
            background-color: var(--topbar-hover);
            text-decoration: none;
        }


.loader-blue {
    border: 3px solid #f3f3f3;
    border-radius: 50%;
    border-top: 3px solid #007bff;
    width: 15px;
    height: 15px;
    top: 3px;
    position: relative;
    display: inline-block;
    -webkit-animation: spin 1s linear infinite; /* Safari */
    animation: spin 1s linear infinite;
}

.loader-green {
    border: 3px solid #f3f3f3;
    border-radius: 50%;
    border-top: 3px solid #28a745;
    width: 15px;
    height: 15px;
    top: 3px;
    position: relative;
    display: inline-block;
    -webkit-animation: spin 1s linear infinite; /* Safari */
    animation: spin 1s linear infinite;
}

.loader-red {
    border: 3px solid #f3f3f3;
    border-radius: 50%;
    border-top: 3px solid #dc3545;
    width: 15px;
    height: 15px;
    top: 3px;
    position: relative;
    display: inline-block;
    -webkit-animation: spin 1s linear infinite; /* Safari */
    animation: spin 1s linear infinite;
}

/* Safari */
@-webkit-keyframes spin {
    0% {
        -webkit-transform: rotate(0deg);
    }

    100% {
        -webkit-transform: rotate(360deg);
    }
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.navbar-light {
    background-color: white;
}

.hide {
    display: none !important;
}