﻿/* --------------------------------------------------------
        Custom Validation Similar Bootstrap
    -----------------------------------------------------------*/
.was-validated .form-select.ng-invalid + .form-select {
    border-color: #dc3545;
    padding-right: 4.125rem;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e"),url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23dc3545'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23dc3545' stroke='none'/%3e%3c/svg%3e");
    background-position: right .75rem center,center right 2.25rem;
    background-size: 16px 12px,calc(.75em + .375rem) calc(.75em + .375rem)
}

.was-validated .form-select.ng-valid + .form-select {
    border-color: #198754;
    padding-right: 4.125rem;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e"),url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3e%3cpath fill='%23198754' d='M2.3 6.73L.6 4.53c-.4-1.04.46-1.4 1.1-.8l1.1 1.4 3.4-3.8c.6-.63 1.6-.27 1.2.7l-4 4.6c-.43.5-.8.4-1.1.1z'/%3e%3c/svg%3e");
    background-position: right .75rem center,center right 2.25rem;
    background-size: 16px 12px,calc(.75em + .375rem) calc(.75em + .375rem)
}

.was-validated .ng-invalid + .b-custom-list, .was-validated .b-monaco.ng-invalid {
    border-color: #dc3545;
    padding-right: calc(1.5em + .75rem);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23dc3545'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23dc3545' stroke='none'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right calc(.375em + .1875rem) center;
    background-size: calc(.75em + .375rem) calc(.75em + .375rem)
}

.was-validated .ng-invalid.b-required {
    border-color: #dc3545;
    padding-right: calc(1.5em + .75rem);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23dc3545'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23dc3545' stroke='none'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right calc(.375em + .1875rem) center;
    background-size: calc(.75em + .375rem) calc(.75em + .375rem)
}

/* --------------------------------------------------------
        Text Input Component on Bootstrap Form Control
    -----------------------------------------------------------*/
.b-input {
    border-radius: 0.125rem;
    border: 1px solid #ccc;
    box-shadow: none;
}

    .b-input:focus {
        box-shadow: none;
        border-color: #6059ee;
    }


/* --------------------------------------------------------
       Custom Radio Button & Checkbox
    -----------------------------------------------------------*/
.b-radio, .b-checkbox {
    position: relative;
    display: block;
    margin-bottom: 12px;
}

    .b-radio.theme-inline, .b-checkbox.theme-inline {
        display: inline-block;
    }

    .b-radio label, .b-checkbox label {
        min-height: 18px;
        padding-left: 20px;
        margin-bottom: 0;
        font-weight: 400;
        cursor: pointer;
    }

    .b-radio input[type="radio"], .b-radio-inline input[type="radio"], .b-checkbox input[type="checkbox"], .b-checkbox-inline input[type="checkbox"] {
        position: absolute;
        margin-left: -20px;
        margin-top: 4px; \9
    }

    .b-radio + .b-radio, .b-checkbox + .b-checkbox {
        margin-top: -5px;
    }

    .b-radio input {
        width: 19px;
        height: 19px;
    }

        .b-radio input:checked + .input-helper:after {
            -webkit-transform: scale(1);
            -ms-transform: scale(1);
            -o-transform: scale(1);
            transform: scale(1);
        }

    .b-radio .input-helper:before {
        top: -1px;
        width: 19px;
        height: 19px;
        border-radius: 50%;
    }

    .b-radio .input-helper:after {
        width: 11px;
        height: 11px;
        background: #009688;
        border-radius: 50%;
        top: 3px;
        left: 4px;
        -webkit-transform: scale(0);
        -ms-transform: scale(0);
        -o-transform: scale(0);
        transform: scale(0);
    }

.b-radio, .b-checkbox {
    position: relative;
    display: block;
    margin-bottom: 12px;
}

    .b-checkbox label, .b-radio label {
        padding-left: 25px;
        padding-right: 25px;
        position: relative;
    }

    .b-checkbox input, .b-radio input {
        top: 0;
        left: 0;
        margin-left: 0 !important;
        z-index: 1;
        cursor: pointer;
        opacity: 0;
        filter: alpha(opacity=0);
        margin-top: 0;
    }

    .b-checkbox .input-helper:before, .b-radio .input-helper:before, .b-checkbox .input-helper:after, .b-radio .input-helper:after {
        -webkit-transition: all;
        -o-transition: all;
        transition: all;
        -webkit-transition-duration: 250ms;
        transition-duration: 250ms;
        -webkit-backface-visibility: hidden;
        -moz-backface-visibility: hidden;
        backface-visibility: hidden;
        position: absolute;
        content: "";
    }

    .b-checkbox .input-helper:before, .b-radio .input-helper:before {
        left: 0;
        border: 1px solid #ccc;
    }

    .b-checkbox.disabled, .b-radio.disabled {
        opacity: .6;
        filter: alpha(opacity=60);
    }

    .b-checkbox input {
        width: 17px;
        height: 17px;
    }

        .b-checkbox input:checked + .input-helper:before {
            -webkit-transform: scale(0);
            -ms-transform: scale(0);
            -o-transform: scale(0);
            transform: scale(0);
        }

        .b-checkbox input:checked + .input-helper:after {
            -webkit-transform: scale(1) rotate(-50deg);
            -ms-transform: scale(1) rotate(-50deg);
            -o-transform: scale(1) rotate(-50deg);
            transform: scale(1) rotate(-50deg);
            opacity: 1;
            filter: alpha(opacity=100);
        }

    .b-checkbox .input-helper:before {
        top: 0;
        width: 17px;
        height: 17px;
    }

    .b-checkbox .input-helper:after {
        opacity: 0;
        filter: alpha(opacity=0);
        -webkit-transform: scale(0) rotate(80deg);
        -ms-transform: scale(0) rotate(80deg);
        -o-transform: scale(0) rotate(80deg);
        transform: scale(0) rotate(80deg);
        width: 22px;
        height: 9px;
        border-bottom: 2px solid #009688;
        border-left: 2px solid #009688;
        border-bottom-left-radius: 2px;
        left: -1px;
        top: 1px;
    }


/* --------------------------------------------------------
        Custom Tab Component on angularjs Bootstrap Tab
    -----------------------------------------------------------*/
.b-angular-tab {
    box-sizing: border-box;
}

    .b-angular-tab .uib-tab.active {
        border-bottom: 2px solid #73bd76;
    }

    .b-angular-tab .uib-tab .nav-link:focus, .b-angular-tab .uib-tab .nav-link:hover {
        border-color: transparent;
    }

    .b-angular-tab .uib-tab uib-tab-heading {
        color: rgb(83, 83, 83);
    }

        .b-angular-tab .uib-tab uib-tab-heading:hover {
            color: #000000;
        }

    .b-angular-tab .uib-tab.active uib-tab-heading {
        color: #4caf50;
    }


/* --------------------------------------------------------
    Custom Table Component on Bootstrap Table
-----------------------------------------------------------*/
.b-table-light {
    box-sizing: border-box;
}

    .b-table-light thead th {
        padding: 0.5rem 0.75rem;
        border-bottom: none;
    }

    .b-table-light tbody td {
        padding: 0.375rem;
    }

    .b-table-light tfoot th {
        padding: 0.5rem;
    }


/* --------------------------------------------------------
    Custom Chosen Drop Down List
-----------------------------------------------------------*/
.chosen-container {
    width: 100% !important;
    position: relative;
}

    .chosen-container.chosen-container-active {
        border-color: #a1a1a1;
    }

    /*Start Single Select*/
    .chosen-container .chosen-single {
        display: block;
        color: inherit;
        text-decoration: none;
        color: #6c757d;
    }

        .chosen-container .chosen-single input[type=text] {
            cursor: pointer;
            opacity: 0;
            position: absolute;
        }

        .chosen-container .chosen-single span {
            display: block;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }
    /*End Single Select*/

    /*Start Multiple Select*/
    .chosen-container.chosen-container-multi .chosen-choices {
        list-style: none;
        cursor: text;
        display: inline-block;
        padding: 0;
        display: inline-block;
        width: 100%;
        margin: 0;
    }

        .chosen-container.chosen-container-multi .chosen-choices li.search-field input[type=text] {
            padding: 0;
            outline: 0;
            border: 0;
            background: 0 0;
            -webkit-box-shadow: none;
            box-shadow: none;
            color: #6c757d;
            border-radius: 0;
            width: 25px;
        }

        .chosen-container.chosen-container-multi .chosen-choices li.search-choice {
            position: relative;
            font-size: .9rem;
            margin: 0 .6rem 0 0;
            padding: .2rem 1.4rem .2rem .2rem;
            border: 1px solid #aaa;
            border-radius: 3px;
            background-color: #eee;
            display: inline-block;
            -webkit-box-shadow: 0 0 2px #fff inset, 0 1px 0 rgb(0 0 0 / 5%);
            box-shadow: 0 0 2px #fff inset, 0 1px 0 rgb(0 0 0 / 5%);
            color: #333;
            cursor: default;
        }

            .chosen-container.chosen-container-multi .chosen-choices li.search-choice span {
                word-wrap: break-word;
            }

            .chosen-container.chosen-container-multi .chosen-choices li.search-choice .search-choice-close {
                position: absolute;
                right: .3rem;
                display: block;
                height: 12px;
                width: 12px;
                top: .6rem;
                background: url(images/chosen-sprite.png) -42px 1px no-repeat;
            }

        .chosen-container.chosen-container-multi .chosen-choices li.search-field {
            display: inline-block;
            padding: 0 .1rem;
        }
    /*End Multiple Select*/

    .chosen-container .chosen-drop {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        background: #fff;
        z-index: 9999;
        -webkit-box-shadow: 0 0 10px -6px;
        box-shadow: 0 0 10px -6px;
        border: 1px solid #ababc0;
        border-top: none;
        width: 100%;
    }

    .chosen-container.chosen-with-drop .chosen-drop {
        display: block
    }

        .chosen-container.chosen-with-drop .chosen-drop .chosen-search {
            padding: .4rem;
        }

            .chosen-container.chosen-with-drop .chosen-drop .chosen-search .chosen-search-input {
                border-radius: 4px;
                background: #fff;
                border: 1px solid #c8c8c8;
                color: #717171;
                padding: .4rem;
                width: 100%;
                outline: none;
            }

        .chosen-container.chosen-with-drop .chosen-drop .chosen-results {
            list-style: none;
            padding: 0;
            margin: 0;
            max-height: 400px;
            min-height: 1rem;
            overflow-y: auto;
            overflow-x: hidden;
        }

            .chosen-container.chosen-with-drop .chosen-drop .chosen-results > li {
                display: block;
                padding: .7rem;
                color: #666;
                cursor: pointer;
            }

                .chosen-container.chosen-with-drop .chosen-drop .chosen-results > li.highlighted,
                .chosen-container.chosen-with-drop .chosen-drop .chosen-results > li.result-selected {
                    background: #f1f1f1;
                    color: #6f6f6f;
                }

    .chosen-container.chosen-disabled {
        opacity: 0.8;
    }



/* --------------------------------------------------------
    Custom Form Group With Icon
-----------------------------------------------------------*/
.input-icon {
    position: relative;
}

    .input-icon .form-control, .input-icon .form-select {
        padding-left: calc(1em + 1.5rem + 2px);
    }

    .input-icon > span {
        left: 0;
        top: 0;
        bottom: 0;
        position: absolute;
        display: -webkit-box;
        display: -ms-flexbox;
        display: flex;
        -webkit-box-align: center;
        -ms-flex-align: center;
        align-items: center;
        -webkit-box-pack: center;
        -ms-flex-pack: center;
        justify-content: center;
        width: calc(1.5em + 1.3rem + 2px);
    }


/* --------------------------------------------------------
    Custom Monaco Editor
-----------------------------------------------------------*/
.b-monaco > div, .b-monaco > div > div {
    max-width: 100%;
}


/* --------------------------------------------------------
    Custom List Selective 
-----------------------------------------------------------*/
.b-custom-selective {
    cursor: pointer;
    min-height: 11.1rem;
    transition: 0.18s ease-in-out;
}

    .b-custom-selective:hover, .b-custom-selective.selected {
        box-shadow: 0 0.125rem 0.625rem 0px #c1dcc3;
        border: solid 1px #98e2a9;
    }
