﻿.form-group .label {
    color: var(--ocs-text-color1);
    padding-left: 0px;
}

.form-control-sm,
.input-group-sm>.form-control,
.input-group-sm>.input-group-prepend>.input-group-text,
.input-group-sm>.input-group-append>.input-group-text,
.input-group-sm>.input-group-prepend>.btn,
.input-group-sm>.input-group-append>.btn {
    font-size: 0.7rem;
    height: 2rem;
}

.nice-select {
    height: 31px;
    width: 100%;
    padding: unset;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    padding: 0 26px 0 10px;
}

.nice-select span.current {
    position: absolute;
    left: 6px;
    right: 20px;
    bottom: 4px;
    height: 100%;
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
}

.nice-select .option {
    all: unset;
    height: 31px;
    padding: unset;
    line-height: unset;
    display: block;
    font-size: 14px;
    color: var(--ocs-text-color);
    padding-left: 10px;
    padding-right: 10px;
    padding-bottom: 1px;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 2.5;
}

.nice-select .list {
    width: 100%;
    transition: all .2s var(--ocs-curve);
    border-radius: 0 0 5px 5px;
    box-shadow: var(--ocs-dialog-shadow);
    border-left: 1px solid #d4d8d9;
    border-bottom: 1px solid #d4d8d9;
    border-right: 1px solid #d4d8d9;
    max-height: 300px;
    overflow: hidden;
    overflow-y: auto;
}

.nice-select:active,
.nice-select.open,
.nice-select:focus {
    border-color: #00bcd4;
    outline-style: 1px solid red;
}

.nice-select.open {
    border-radius: 5px 5px 0 0;
}


/*-------------------validation message*/
.field-validation-valid,.field-validation-error,.field-validation-valid{
    text-overflow: ellipsis;
    width: 100%;
    overflow: hidden;
}
.field-validation-error {
    color: #E91E63;
    font-size: 12px;
    margin-top: 5px;
    display: block;
    font-style: italic;
}
.input-validation-error {
    border-color: #E91E63;
}
.font-sm{
    font-size:.8em;
}
label{
    margin-bottom:.2rem;
}

/* add by sovann */
.form-control::placeholder {
    color: #a0a0a0;
}


/* =============== Modal Dialog Custom style */
.my-modal .modal-dialog .modal-content {
    border: unset;
    border-radius: 5px;
    box-shadow: 0 3px 20px #00000042;
}

    .my-modal .modal-dialog .modal-content .modal-header,
    .my-modal .modal-dialog .modal-content .modal-footer {
        height: 60px;
        align-items: center;
        padding: 0 16px;
    }

        .my-modal .modal-dialog .modal-content .modal-header .icon {
            color: var(--sub-text-color);
            font-size: 26px;
            width: 30px;
        }

        .my-modal .modal-dialog .modal-content .modal-header .modal-title {
            line-height: 1.3;
        }

            .my-modal .modal-dialog .modal-content .modal-header .modal-title span {
                display: flex;
            }

                .my-modal .modal-dialog .modal-content .modal-header .modal-title span:first-child {
                    font-size: 15px;
                    color: var(--text-color);
                    font-weight: 600;
                }

                .my-modal .modal-dialog .modal-content .modal-header .modal-title span:last-child {
                    font-size: 10px;
                    color: var(--sub-text-color);
                    font-weight: 400;
                }

    .my-modal .modal-dialog .modal-content .modal-body {
        max-height: calc(100vh - 178px);
        overflow: auto;
    }

.my-modal.no-one .modal-dialog .modal-content .modal-body {
    max-height: calc(100vh - 118px);
}

.my-modal.no-both .modal-dialog .modal-content .modal-body {
    max-height: calc(100vh - 58px);
}

/* Scroll style */
.my-modal .modal-dialog .modal-content .modal-body::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

.my-modal .modal-dialog .modal-content .modal-body::-webkit-scrollbar-track {
    background: transparent;
}

.my-modal .modal-dialog .modal-content .modal-body::-webkit-scrollbar-thumb {
    background: transparent;
    border-radius: 50px;
}

.my-modal .modal-dialog .modal-content .modal-body:hover::-webkit-scrollbar-track {
    background: #d4d8d9;
}

.my-modal .modal-dialog .modal-content .modal-body:hover::-webkit-scrollbar-thumb {
    background: #94aabf;
}

/* Buttons */
.btn.fa:before {
    margin-right: 6px;
    font-size: 14px;
    opacity: .8;
}

.btn.fa.spin:before {
    display: inline-flex;
    content: '\f1ce';
    animation: fa-spin 1s infinite linear;
    -webkit-animation: fa-spin 1s infinite linear;
}

/* Cads */
.card {
    border-color: #ebecef;
    box-shadow: 1px 1px 10px #00000010;
    overflow: hidden;
    border-radius: 5px;
}

    .card .card-header, .card .card-footer {
        min-height: 60px;
        background: white;
        border-color: #f6f7f9;
        padding: 0 16px;
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

        .card .card-header .card-title {
            margin: unset;
            display: flex;
            align-items: center;
            line-height: 1.3;
        }

    .card .card-body {
        background: transparent;
    }


    .card .card-header .card-title .card-icon {
        width: 30px;
        font-size: 1.2rem;
        color: var(--sub-text-color);
    }

    .card .card-header .card-title .card-text {
        margin: unset;
        display: flex;
        flex-direction: column;
        justify-content: center;
        color: var(--text-color);
        font-size: 15px;
        font-weight: 500;
    }

        .card .card-header .card-title .card-text span:last-child {
            font-size: 11px;
            color: var(--sub-text-color);
        }

    .card .card-body {
    }

.badge {
    font-size: 8px;
    opacity: .5;
}

.ocs-ui-datepicker .ui-datepicker select.ui-datepicker-month, .ui-datepicker select.ui-datepicker-year {
    border: 1px saddlebrown;
    outline: none;
}
.ocs-ui-datepicker .ui-datepicker .ui-datepicker-header {
    background: none;
}
.ocs-ui-datepicker .ui-datepicker.ui-widget.ui-widget-content.ui-helper-clearfix.ui-corner-all {
    border: 1px solid #e4e4e4;
    padding: 10px;
}
.ocs-ui-datepicker .ui-state-default {
    border: 1px solid #c5c5c5 !important;
    background: #ffffff !important;
    color: #454545 !important;
    text-align: center !important;
    border-radius: 3px !important;
}
.ocs-ui-datepicker  .ui-state-default:hover {
        background: var(--ocs-primary-color) !important;
        border-color: var(--ocs-primary-color) !important;
        color: var(--ocs-background-color) !important;
    } 