/*-----------------------------
Author         : anhvv
Created time   : Oct.2019
Common styles for all components
-----------------------------*/

/*------------------------------------------ scrollbar --------*/
::-webkit-scrollbar-track {
    -webkit-box-shadow: inset 0 0 2px rgba(0, 0, 0, 0.1);
    border-radius: 6px;
    background-color: #f5f5f5;
}

::-webkit-scrollbar {
    height: 8px;
    width: 8px;
    background-color: #f5f5f5;
}

::-webkit-scrollbar-thumb {
    border-radius: 6px;
    -webkit-box-shadow: inset 0 0 2px rgba(0, 0, 0, 0.1);
    background-color: #dee2e6;
}

/*------------------------------------------ text-after --------*/
/*
.total-days:after {
    content: '2.5 ngày';
    color: red;
    padding-left: 3px;
}
*/
#showNumberDay {
    color: red;
    padding-left: 3px;
}

#showNumberDay:after {
    content: 'ngày';
    color: red;
    padding-left: 3px;
}

/*----------------------------------- toggle switch --------*/

.toggle {
    position: relative;
    overflow: hidden
}

.toggle.btn.btn-light,
.toggle.btn.btn-outline-light {
    color: #a7adb3;
    background-color: #f5f5f5;
    border-color: #dce0e4;
}

.toggle input[type=checkbox] {
    display: none
}

.toggle-group {
    position: absolute;
    width: 200%;
    top: 0;
    bottom: 0;
    left: 0;
    transition: left .35s;
    -webkit-transition: left .35s;
    -moz-user-select: none;
    -webkit-user-select: none;
}

.toggle-group label,
.toggle-group span {
    cursor: pointer;
    padding: 0;
}

.toggle.off .toggle-group {
    left: -100%
}

.toggle-on {
    position: absolute;
    top: -1px;
    bottom: 0;
    left: 0;
    right: 60%;
    margin: 0;
    border: 0;
    border-radius: 0
}

.toggle-off {
    position: absolute;
    top: -1px;
    bottom: 0;
    left: 60%;
    right: 0;
    margin: 0;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    opacity: 0.6;
}

.toggle-handle {
    position: relative;
    background-color: #fff;
    right: 10px;
    top: -2px;
}

.toggle .toggle-handle {
    border: none;
    border-radius: 100%;
    width: 18px;
    height: 18px;
}

.toggle.off .toggle-handle {
    background: #dce0e4;
    position: relative;
    left: 10px;
}

.toggle.btn {
    min-width: 60px;
    min-height: 22px;
    border-radius: 15px;
}


.form-group .toggle {
    height: 21px !important;
}

/*----------------------------------- checkbox + radio --------*/
input[type="radio"],
input[type="checkbox"] {
    height: 1em;
    width: 1em;
    vertical-align: middle;
    border: 1px solid rgba(0, 0, 0, 0.3);
    -webkit-appearance: none;
    -webkit-transition: 200ms;
}

/* border radius for radio*/
input[type="radio"] {
    -webkit-border-radius: 100%;
    border-radius: 100%;
}

/* border radius for checkbox */
input[type="checkbox"] {
    -webkit-border-radius: 2px;
    border-radius: 2px;
}

/* hover state */
input[type="radio"]:not(:disabled):hover,
input[type="checkbox"]:not(:disabled):hover {
    border-color: transparent;
    background-color: #6d61da;
}

/* active state */
input[type="radio"]:active:not(:disabled),
input[type="checkbox"]:active:not(:disabled) {
    border-color: #6d61da;

}

/* focus state */
input[type="radio"]:focus,
input[type="checkbox"]:focus {
    outline: none;
}

/* input checked border color */
input[type="radio"]:checked,
input[type="checkbox"]:checked {
    background-color: #6d61da;
}

/* radio checked */
input[type="radio"]:checked:before {
    display: block;
    height: 0.3em;
    width: 0.3em;
    position: relative;
    left: 0.4em;
    top: 0.4em;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 100%;
    content: '';
}

/* checkbox checked */
input[type="checkbox"]:checked:before {
    font-weight: bold;
    color: #fff;
    content: '\2713';
    -webkit-margin-start: 2px;
    font-size: 0.8em;
    top: -5px;
    position: relative;
}

/* disabled input */
input:disabled {
    opacity: .6;
    box-shadow: none;
    background: rgba(0, 0, 0, 0.1);
    box-shadow: none;
}

/* style label for disabled input */
input:disabled + label {
    opacity: .6;
    cursor: default;
    -webkit-user-select: none;
}


/*----------------------------------- select2 --------*/

.select2 {
    font-family: "Nunito", sans-serif;
    width: 100%;
}

.select2-container--default .select2-selection--single,
.select2-dropdown {
    border: 1px solid #e9ecef;
}

.select2-container--default .select2-selection--single {
    border-radius: 2px;
    border: 1px solid #e9ecef;
    height: calc(2.0625rem + 2px);
    padding: 0.375rem 0.75rem;
}

.select2-container .select2-selection--single .select2-selection__rendered {
    padding-left: 0;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    display: none;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 1.5;
    background: url(../../assets/images/custom-select.png) no-repeat right 7px;
    vertical-align: middle;
}

.select2 .selection {
    width: 100%;
}

select2-selection__choice {
    background-color: none;
    border: none;
    padding: 5px 10px;
}

.select2-container--classic .select2-selection--multiple .select2-selection__choice,
.select2-container--default .select2-selection--multiple .select2-selection__choice,
.select2-container--default .select2-selection--multiple .select2-selection__choice__remove {
    border: none;
    background-color: #a7a0ef;
    padding: 0 5px;
}

.select2-container--default .select2-selection--multiple,
.select2-container--default.select2-container--focus .select2-selection--multiple {
    border: 1px solid #e9ecef;
    border-radius: none;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice__remove {
    color: white;
}

.select2-container--default .select2-results__option--highlighted[aria-selected] {
    background: #c6c1f5;
}

.select2-container--default .select2-results__option[aria-selected=true] {
    background: #7460ee2e;
}

/*----------------------------------- modal --------*/

.form-modal .modal-dialog {
    max-width: 820px;
}

.form-modal .modal-content {
    min-width: 750px;
}

.form-modal .modal-content .title {
    color: #FFF;
    padding: 30px 20px;
}

.form-modal .modal-content .title h3 {
    font-weight: 600;
    text-transform: uppercase;
}

.form-modal .modal-content .title h5 {
    font-weight: 600;
}

.form-modal .modal-content .title .name span {
    color: #fff;
}

.form-modal .modal-content .title .name img {
    float: left;
}

.form-modal .modal-content .title .log,
.form-modal .modal-content .title .log i {
    font-size: 10px;
    color: #c1bce8 !important;
}

.form-modal .modal-content .title p {
    color: #c1bce8;
}

.form-modal .modal-content .title i {
    font-size: 2.5rem;
}

.form-modal .modal-body .wrap {
    padding: 20px 40px 0 15px;
}

.form-modal.add .modal-content {
    background: #4c439b;
}

.form-modal.add .modal-body {
    background: #FFF;
    border-top-right-radius: 8px;
    border-bottom-right-radius: 8px;
}


.modal .modal-icon {
    font-size: 5rem;
    text-align: center;
    border-radius: 6px;
    line-height: 100%;
}

.comment-modal .modal-icon {
    color: #ffbc34;
}

.warning-modal .modal-icon {
    color: #ff4667;
}

.comment-modal form label {
    font-size: 16px;
}

/*----modal edit*/
.editTable label {
    margin-bottom: 0.5rem;
}

/*----button modal*/
#addBlock .btn-md,
#editBlock .btn-md,
#addProject .btn-md,
#editProject .btn-md,
#edit .btn-md,
#add .btn-md,
#editGroup .btn-md,
#addGroup .btn-md,
#editUser .btn-md,
#addUser .btn-md {
    padding: 5px 25px;
}

/*----------------------------------- date-picker --------*/
.date-picker .input-group-text {
    background: #b1ace2;
    border-color: #b1ace2;
    color: #fff;
    border-bottom-right-radius: 0;
    border-top-right-radius: 0;
}

.date-picker .input-group {
    border-radius: 4px;
}

.date-picker .input-group > .input-group-append:not(:last-child) > .input-group-text {
    border-top-left-radius: 3px;
    border-bottom-left-radius: 3px;
}

.date-picker .input-group > .form-control:not(:first-child) {
    border-top-right-radius: 3px;
    border-bottom-right-radius: 3px;
    color: #4c439b;
}

.date-picker .form-control {
    border-color: #b1ace2
}

.date-picker input::-webkit-input-placeholder {
    color: #b1ace2 !important;
}


/*----------------------------------- button --------*/
.btn:focus,
.btn.focus {
    -webkit-box-shadow: none !important;
    box-shadow: none !important;
}

.fa-rotate-45 {
    transform: rotate(45deg);
}

.btn-outline-secondary {
    color: #b1ace2;
    border-color: #b1ace2;
}

.btn-rounded.btn-md {
    padding: 8px 20px;
}

.btn-table .btn-rounded.btn-xs {
    padding: 1px 10px;
    font-size: 12px;
}

.btn-outline-secondary:hover,
.btn-outline-secondary:not(:disabled):not(.disabled).active,
.btn-outline-secondary:not(:disabled):not(.disabled):active,
.show > .btn-outline-secondary.dropdown-toggle {
    background-color: #a39ada;
    border-color: #a39ada;
}

.btn-disabled {
    background-color: darkgrey !important;
    border: none;
}

/*----------------------------------- filter // filter-tag --------*/
.filter .titleFitler h3 {
    padding-left: 1.25rem;
    font-weight: 300;
}

.hasTag .filterTag {
    background-color: #eaeaf7;
}

.hasTag .filterTag.active,
.hasTag .filterTag:active {
    background-color: #9287E8;
    color: white;
}

.hasTag .filterTag:hover,
.hasTag .filterTag:focus {
    background-color: #C2B9F8;
    color: white;
}

.filter button {
    padding: 5px 22px;
}

/*-------pagination---------*/
.page-item.active .page-link {
    background-color: #9287e8;
    border-color: #9287e8;
}

/*----------------------------------- table --------*/
.validate::after {
    position: relative;
    content: '*';
    color: red;
    padding-left: 5px;
}