/* Bootstrap Custom Style */
fieldset {
    border: 1px solid var(--input-border-color);
    padding: 5px 15px 20px 15px;
    margin-bottom: 10px;
    border-radius: 8px;
}

legend {
    width: auto !important;
    margin-left: 10px !important;
    padding: 2px 10px !important;
    font-size: 18px;
    float: none;
    color: var(--bs-gray-700);
    background-color: #fff;
}

label {
    font-size: 15px;
    font-weight: 500;
    color: var(--bs-gray-700);
    display: block;
    padding: 0px 0px 3px 8px;
}

label span {
    color: red;
}

.form-control {
    margin-bottom: 0px !important;
    font-size: 14px !important;
    border: 1px solid rgba(0, 123, 255, 0.3);
    height: 42px;
}

.form-group textarea {
    min-height: 100px !important;
}

.form-control:focus {
    border: 1px solid rgba(0, 123, 255, 0.3);
    box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075),
        0 0 10px rgba(0, 123, 255, 0.25);
    outline: none;
}

fieldset input:-webkit-autofill,
fieldset input:-webkit-autofill:hover,
fieldset input:-webkit-autofill:focus,
fieldset input:-webkit-autofill:active {
    -webkit-text-fill-color: #333;
    -webkit-box-shadow: 0 0 0 50px white inset;
    outline: none;
}

.form-control::-webkit-input-placeholder {
    color: #999 !important;
}

.form-control:-ms-input-placeholder {
    color: #999 !important;
}

.form-control::-moz-placeholder {
    color: #999 !important;
}

.form-group {
    margin-bottom: 10px !important;
}

.form-select:focus {
    border: 1px solid rgba(0, 123, 255, 0.3);
    box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075),
        0 0 10px rgba(0, 123, 255, 0.25);
    outline: none;
}

.form-select-sm:focus {
    border: 1px solid rgba(0, 123, 255, 0.3);
    box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075),
        0 0 10px rgba(0, 123, 255, 0.25);
    outline: none;
}

.btn:focus,
.page-link:focus {
    outline: none !important;
    box-shadow: none !important;
}

.btn-submit {
    background: #016abc;
    color: #fff;
    border: 0px solid #eee;
    border-radius: 6px;
    padding: 8px 15px;
    text-shadow: 0.3px 0.3px 0.3px #020202;
    box-shadow: rgba(45, 35, 66, 0.3) 0px 2px 16px,
        rgba(45, 35, 66, 0.2) 0 1px 17px -28px, #0062ab -1px -2px 2px inset;
}

.btn-submit:hover {
    background: var(--link-hover-color);
    color: #fff;
    transition: all 700ms ease-in-out;
    text-shadow: 0.3px 0.3px 0.3px #020202;
    box-shadow: rgba(45, 35, 66, 0.3) 0px 2px 16px,
        rgba(45, 35, 66, 0.2) 0 1px 17px -28px, #940000 -1px -2px 2px inset;
}

.addNewIcon {
    background-color: var(--link-color);
    color: white;
    text-decoration: none;
    padding: 4px 10px 3px 10px;
    position: relative;
    display: inline-block;
    border-radius: 2px;
}

.addNewIcon:hover {
    background: var(--link-hover-color);
    color: #fff;
}

.trashIcon {
    background-color: #555;
    color: white;
    text-decoration: none;
    padding: 4px 10px 3px 10px;
    position: relative;
    display: inline-block;
    border-radius: 2px;
}

.trashIcon:hover {
    background: var(--link-hover-color);
    color: #fff;
}

.trashIcon .badge {
    position: absolute;
    top: -10px;
    right: -12px;
    padding: 4px 5px;
    border-radius: 50%;
    background-color: red;
    color: white;
    z-index: 9999999999 !important;
}

.btn-sm {
    padding: 4px 8px !important;
    font-size: 14px !important;
    outline: none !important;
    box-shadow: none !important;
}

.btn-sm:focus {
    outline: none !important;
    box-shadow: none !important;
    color: #fff !important;
    font-size: 14px !important;
}

.alert {
    box-shadow: 0 0 0.1rem 0.15rem rgb(0 0 0 / 5%);
    padding: 10px 25px 10px 10px;
}

.btn-close {
    padding: 0px !important;
    top: -7px !important;
    right: -7px !important;
    font-size: 1rem !important;
    -webkit-box-shadow: 0 1px 0 rgba(0, 0, 0, 0.05);
    -moz-box-shadow: 0 1px 0 rgba(0, 0, 0, 0.05);
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.05);
}

.modal {
    z-index: 10000 !important;
}

/* Start Custom Chekbox */

.custom-checkbox input[type="checkbox"] + label {
    position: absolute;
    width: 19px;
    height: 19px;
    border: 2px solid var(--input-border-color);
    border-radius: 10%;
    transform: translate(-50%, -50%);
    transition: all ease-out 200ms;
    text-indent: 13px;
    font: normal normal 15px/13px "Helvetica";
    white-space: nowrap;
    color: var(--bs-gray-700);
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.custom-checkbox input[type="checkbox"] + label:after {
    content: "";
    position: absolute;
    width: 0px;
    height: 8px;
    border-bottom: 2px solid #00b664;
    border-left: 2px solid #00b664;
    top: 26%;
    left: 49%;
    transform-origin: bottom left;
    transform: rotate(-45deg);
    opacity: 0;
    transition: all ease-out 200ms;
}

.custom-checkbox input[type="checkbox"]:checked + label {
    border: 2px solid #00b664;
}

.custom-checkbox input[type="checkbox"]:checked + label:after {
    opacity: 1;
    width: 22px;
}

/*Custom checkboxes 2 Style*/
.custom-checkbox-2 label,
.custom-radio label {
    position: relative;
    cursor: pointer;
    color: #666;
    font-size: 30px;
}
.custom-checkbox-2 input[type="checkbox"],
.custom-radio input[type="radio"] {
    position: absolute;
    right: 9000px;
}

.custom-checkbox-2 input[type="checkbox"] + .label-text:before {
    content: "\f0c8";
    font-family: "Font Awesome 5 Pro";
    font-style: normal;
    font-weight: normal;
    font-variant: normal;
    text-transform: none;
    line-height: 1;
    -webkit-font-smoothing: antialiased;
    width: 1em;
    display: inline-block;
    margin-right: 5px;
}
.custom-checkbox-2 input[type="checkbox"]:checked + .label-text:before {
    content: "\f14a";
    color: #2980b9;
    animation: effect 250ms ease-in;
}
.custom-checkbox-2 input[type="checkbox"]:disabled + .label-text {
    color: #aaa;
}
.custom-checkbox-2 input[type="checkbox"]:disabled + .label-text:before {
    content: "\f0c8";
    color: #ccc;
}

/*Custom checkboxes style*/
.custom-radio input[type="radio"] + .label-text:before {
    content: "\f111";
    font-family: "Font Awesome 5 Pro";
    font-style: normal;
    font-weight: normal;
    font-variant: normal;
    text-transform: none;
    line-height: 1;
    -webkit-font-smoothing: antialiased;
    width: 1em;
    display: inline-block;
    margin-right: 5px;
}

.custom-radio input[type="radio"]:checked + .label-text:before {
    content: "\f192";
    color: #8e44ad;
    animation: effect 250ms ease-in;
}

.custom-radio input[type="radio"]:disabled + .label-text {
    color: #aaa;
}

.custom-radio input[type="radio"]:disabled + .label-text:before {
    content: "\f111";
    color: #ccc;
}

@keyframes effect {
    0% {
        transform: scale(0);
    }
    25% {
        transform: scale(1.3);
    }
    75% {
        transform: scale(1.4);
    }
    100% {
        transform: scale(1);
    }
}

/* End Custom Checkbox */

/* End Bootstrap Custom Style */

/* DataTable Custom Style */
table.dataTable tbody td {
    vertical-align: middle !important;
}

.dataTables_filter {
    float: right !important;
}

.dataTables_filter input {
    height: 35px !important;
}

.export_title {
    display: none;
}

.dt-buttons .btn-secondary {
    background-color: #fff !important;
    border-color: var(--bs-gray-300) !important;
    color: var(--bs-gray-700) !important;
    box-shadow: none !important;
    padding: 3px 12px !important;
}

.dt-buttons .btn-secondary:hover {
    background-color: var(--bs-gray-400) !important;
    border-color: var(--bs-gray-400) !important;
    color: var(--bs-gray-700) !important;
    box-shadow: none !important;
}

/* End DataTable Custom Style */

/* Select2 Custom Style */

.select2-container .select2-selection--single {
    height: 42px !important;
    border-radius: 8px 8px 8px 8px !important;
    padding: 6px 5px !important;
    width: 100% !important;
    border: 1px solid var(--input-border-color) !important;
}

.select2-selection.select2-selection--single {
    padding-right: 18px !important;
}

.select2-container .select2-selection--single:focus {
    border: 1px solid rgba(0, 123, 255, 0.3);
    box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075),
        0 0 10px rgba(0, 123, 255, 0.25);
    outline: none;
}

.select2-container--default
    .select2-selection--single
    .select2-selection__placeholder {
    color: #999;
}

.select2-dropdown {
    border-radius: 0px 0px 8px 8px !important;
    border: 1px solid var(--input-border-color) !important;
    border-top: none !important;
    margin-top: -4px !important;
}

.select2-container--default
    .select2-selection--single
    .select2-selection__arrow {
    height: 40px !important;
    position: absolute;
    top: 1px !important;
    right: 1px !important;
    width: 20px;
    background: #f8f8f8;
    border-left: 1px solid var(--input-border-color) !important;
    -webkit-border-radius: 0 3px 3px 0;
    -moz-border-radius: 0 3px 3px 0;
    border-radius: 0 8px 8px 0;
    padding: 0px 15px !important;
}

.select2-container--default
    .select2-selection--single
    .select2-selection__arrow
    b {
    border-width: 7px 6px 0px 6px !important;
    margin-left: -6px !important;
}

.select2-container--default.select2-container--open
    .select2-selection--single
    .select2-selection__arrow
    b {
    border-width: 0 6px 7px 6px !important;
}

/* Select2 Multiple */

.select2-container--default .select2-selection--multiple {
    min-height: 42px !important;
    border-radius: 8px 8px 6px 6px !important;
    padding: 3px 5px 4px 5px !important;
    width: 100% !important;
    border: 1px solid var(--input-border-color) !important;
}

.select2-container--default .select2-selection--multiple:focus {
    border: 1px solid rgba(0, 123, 255, 0.3);
    box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075),
        0 0 10px rgba(0, 123, 255, 0.25);
    outline: none;
}

.select2-container--default
    .select2-selection--multiple
    .select2-selection__choice {
    background-color: #f0f0f0 !important;
    border: 1px solid var(--input-border-color) !important;
}
.select2-container--default
    .select2-selection--multiple
    .select2-selection__choice__remove {
    border-right: 1px solid var(--input-border-color) !important;
}

.select2-container--default
    .select2-results__option--highlighted.select2-results__option--selectable {
    background-color: var(--link-hover-color) !important;
    color: #fff !important;
}

.select2-container--default .select2-search--dropdown .select2-search__field {
    border: 1px solid #ddd !important;
    border-radius: 4px 4px 0px 0px !important;
    padding: 5px 10px !important;
    width: 100% !important;
}

.select2-container--default .select2-results > .select2-results__options {
    max-height: 200px !important;
    overflow-y: auto !important;
    border-radius: 0px 0px 8px 8px !important;
    border-top: none !important;
}

.select2-container--open {
    z-index: 9999999;
}

/* End Select2 Custom Style */

/* M Custom ScrollBar Custom Style */

.mCSB_scrollTools .mCSB_dragger .mCSB_dragger_bar {
    height: auto !important;
}
.mCSB_inside > .mCSB_container {
    margin-right: 15px !important;
}

.mCS-my-theme.mCSB_scrollTools .mCSB_draggerRail {
    background-color: red !important;
}
/* End M Custom ScrollBar Custom Style */

/* Password field show/hide icon */
.input-password-container {
    position: relative;
    display: flex;
    align-items: center;
}

.input-password-container i {
    position: absolute;
    right: 10px;
    cursor: pointer;
}

/* Responsive Code */

@media (max-width: 768px) {
    .dataTables_filter {
        float: left !important;
    }
}
