.badge-primary {
    color: #fff;
    background-color: #007bff;
}
.badge-success {
    color: #fff;
    background-color: #28a745;
}
.badge-danger {
    color: #fff;
    background-color: #dc3545;
}
.badge-warning {
    color: #212529;
    background-color: #ffc107;
}
.badge-secondary {
    color: #fff;
    background-color: #6c757d;
}
.badge-info {
    color: #fff;
    background-color: #17a2b8;
}
.badge-light {
    color: #212529;
    background-color: #f8f9fa;
}
.badge-dark {
    color: #fff;
    background-color: #343a40;
}
.text-ellipsis {
    vertical-align: middle;
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
    max-width: 150px;
}
.modal-content .modal-header {
    border-bottom: none;
    padding-top: 24px;
    padding-right: 24px;
    padding-bottom: 0;
    padding-left: 24px;
}

.modal-content .modal-body {
    padding-top: 24px;
    padding-right: 24px;
    padding-bottom: 16px;
    padding-left: 24px;
    line-height: 1.9;
}

.modal-content .modal-header .title {
    font-size: 1.614em;
    line-height: 1.45em;
    color: #fff;
    margin-top: 5px;
    margin-bottom: 0;
}
.modal-content .modal-footer {
    border-top: none;
    padding-right: 24px;
    padding-bottom: 16px;
    padding-left: 24px;
}
.modal-content .modal-body + .modal-footer {
    padding-top: 0;
}

.modal-content .modal-footer button {
    margin: 0 5px;
    padding-left: 16px;
    padding-right: 16px;
    width: auto;
    color: #ffffff;
}

.bg-error {
    background-color: #dc3545 !important;
    color: #fff;
}

.bg-blue {
    background-color: #055ac3 !important;
    color: #fff;
}

/*show loader*/
#popupPanel {
    position: absolute;
    z-index: 999;
    transition: 0.5s;
    top: -50px;
}

#formEditor {
    position: relative;
    z-index: 999;
    transition: 0.5s;
}

#formEditor .modal-content {
    opacity: 1;
}

#opacity08 {
    width: 100% !important; /* Use !important in case you want to override another val*/
    height: 100%;
    position: fixed; /*You can use fixed too*/
    top: 0;
    left: 0;
    z-index: 999;
    background: #000;
    opacity: 0.8;
}

.custom-modal {
    width: 100% !important; /* Use !important in case you want to override another val*/
    height: 100%;
    position: fixed; /*You can use fixed too*/
    top: 0;
    left: 0;
    z-index: 99999;
    background: #000;
    opacity: 0.9;
}

/* tắt modal làm mờ */
.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 0;
    width: 100vw;
    height: 100vh;
    background-color: #000
}

.modal-backdrop.fade {
    opacity: 0
}

.modal-backdrop.show {
    opacity: .5
}


#divLoader .wrap-loader {
    width: 50px;
    height: 50px;
    position: relative;
    padding: 0;
    margin: auto;
}

.processing-loader {
    border: 3px solid #f3f3f3;
    border-radius: 50%;
    border-top: 3px solid #3498db;
    width: 50px;
    height: 50px;
    -webkit-animation: spin 1s linear infinite; /* Safari */
    animation: spin 1s linear infinite;
    margin-right: 5px;
    position: absolute;
    top: 360px;
}

/* Safari */
@-webkit-keyframes spin {
    0% {
        -webkit-transform: rotate(0deg);
    }

    100% {
        -webkit-transform: rotate(360deg);
    }
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.hidden {
    display: none !important;
}

.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 0;
    width: 100vw;
    height: 100vh;
    background-color: #000
}

.modal-backdrop.fade {
    opacity: 0
}

.modal-backdrop.show {
    opacity: .5
}
.modal-large {
    width: 80%;
}
/*end show loader*/
