
/*--------------------------------------------------------------
# Configuration
--------------------------------------------------------------*/

:root {
    --thm-orange: #FF6600;
    --thm-orange-80: rgba(255, 102, 0, 0.8);
    --thm-pink: #E4097F;
    --thm-blue: #1BBFE2;
    --thm-blue-80: rgba(27, 191, 226, 0.8);
    --ct-input-disabled-bg: #e9ecef;
}

a {
    color: var(--thm-pink);
}

a:hover {
    color: var(--thm-blue);
}

.btn-primary {
    background-color: var(--thm-orange);
    border-color: var(--thm-orange);
}

.btn-primary:hover {
    background-color: var(--thm-orange-80);
    border-color: var(--thm-orange-80);
}

.btn-primary:not(:disabled):not(.disabled).active, .btn-primary:not(:disabled):not(.disabled):active, .show>.btn-primary.dropdown-toggle {
    background-color: var(--thm-orange-80);
    border-color: var(--thm-orange-80);
}

.btn-primary:disabled {
    background-color: var(--thm-orange);
    border-color: var(--thm-orange);
}

.btn-blue {
    color: #fff;
    background-color: var(--thm-blue-80);
    border-color: var(--thm-blue-80);
}

.btn-blue:hover {
    background-color: var(--thm-blue-80);
    border-color: var(--thm-blue-80);
}

.btn-blue:not(:disabled):not(.disabled).active, .btn-blue:not(:disabled):not(.disabled):active, .show>.btn-blue.dropdown-toggle {
    background-color: var(--thm-blue);
    border-color: var(--thm-blue);
}

.user-pro-dropdown .dropdown-item:hover {
    background-color: var(--thm-orange);
}

.select2-container--default .select2-results__option[aria-selected=true]:hover {
    background-color: var(--thm-blue);
}

.form-control:disabled, .form-control[readonly]:not(.flatpickr-input) {
    background-color: var(--ct-input-disabled-bg);
    opacity: 1;
}

fieldset:disabled .nice-select, fieldset:disabled .select2-selection--single, .select2-container--default.select2-container--disabled .select2-selection--single {
    background-color: var(--ct-input-disabled-bg);
    opacity: 1;
}

.content-page-fluid {
    overflow: hidden;
    padding: 0 15px 5px 15px;
    min-height: 80vh;
    margin-top: 70px;
}

div.dt-button-info {
    background-color: var(--thm-pink);
}


/*--------------------------------------------------------------
# Login
--------------------------------------------------------------*/

body.authentication-bg-pattern {
    background-color: var(--thm-blue);
}

.logo-nav {
    height: 60px;
    margin-bottom: 24px;
}

.auth-card {
    opacity: 1;
    background-image: none;
}


/*--------------------------------------------------------------
# Topbar
--------------------------------------------------------------*/

.topnav-menu {
    margin-right: 16px;
}


/*--------------------------------------------------------------
# Left Sidebar
--------------------------------------------------------------*/

#sidebar-menu>ul>li>a:active, #sidebar-menu>ul>li>a:focus, #sidebar-menu>ul>li>a:hover, #sidebar-menu>ul>li>a.active {
    color: var(--thm-orange);
}

.left-side-menu #sidebar-menu.active {
    position: fixed;
}

.enlarged .left-side-menu #sidebar-menu>ul>li>a:active, .enlarged .left-side-menu #sidebar-menu>ul>li>a:focus, .enlarged .left-side-menu #sidebar-menu>ul>li>a:hover {
    color: var(--thm-orange);
}


/*--------------------------------------------------------------
# Form elements
--------------------------------------------------------------*/

.form-check .form-check-input {
    float: left;
    margin-left: -1.643em;
}

.form-check-input {
    width: 1.143em;
    height: 1.143em;
    margin-top: 0.1785em;
    vertical-align: top;
    background-color: #fff;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    border: 1px solid #adb5bd;
    -webkit-appearance: none;
    appearance: none;
    -webkit-print-color-adjust: exact;
    color-adjust: exact;
}

.form-check-input[type="checkbox"] {
    border-radius: 0.25em;
}

.form-check-input:active {
    filter: brightness(90%);
}

.form-check-input:focus {
    border-color: var(--thm-orange);
    outline: 0;
    box-shadow: none;
}

.form-check-input:checked {
    background-color: var(--thm-orange);
    border-color: var(--thm-orange);
}

.form-check-input:checked[type="checkbox"] {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3e%3cpath fill='none' stroke='%23fff' stroke-linecap='round' stroke-linejoin='round' stroke-width='3' d='M6 10l3 3l6-6'/%3e%3c/svg%3e");
}

.form-check-input:checked[type="radio"] {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='2' fill='%23fff'/%3e%3c/svg%3e");
}

.form-check-input[type="checkbox"]:indeterminate {
    background-color: var(--thm-orange);
    border-color: var(--thm-orange);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3e%3cpath fill='none' stroke='%23fff' stroke-linecap='round' stroke-linejoin='round' stroke-width='3' d='M6 10h8'/%3e%3c/svg%3e");
}

.form-check-input:disabled {
    pointer-events: none;
    filter: none;
    opacity: 0.5;
}

.form-check-input:disabled ~ .form-check-label,
.form-check-input[disabled] ~ .form-check-label {
    opacity: 0.5;
}

.form-check.form-check-primary .form-check-input:checked {
    background-color: var(--thm-orange) !important;
    border-color: var(--thm-orange) !important;
}

.needs-validation .error {
    width: 100%;
    margin-top: 0.25rem;
    margin-bottom: 0;
    font-size: .75rem;
    color: #f1556c;
    font-weight: 400;
}


/*--------------------------------------------------------------
# Datatable
--------------------------------------------------------------*/

.top, .bottom {
    display: flex;
    justify-content: space-between;
}

.top .dt-buttons {
    display: flex;
    align-items: end;
}

.top .filters {
    display: flex;
    flex-wrap: wrap;
}

.top .filters > div {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    margin-right: 1.2rem;
    min-width: 160px;
}

.top .filters select {
    width: 100%;
}

.top .filters label, .top .filters input {
    margin: 0 !important;
}

.top .filters .datepicker-range {
    width: 210px;
}

.top .custom-select {
    width: initial;
    max-width: 120px;
}

.page-item.active .page-link {
    background-color: var(--thm-orange);
    border-color: var(--thm-orange);
}

.gvr-table {
    width: 100%;
}

@media (max-width: 768px) {
    .top {
        flex-direction: column;
    }

    .top .filters {
        flex-direction: column;
        margin-bottom: 1rem;
    }

    .top .filters div {
        width: 65%;
    }
}

.dataTable .change-state-badge {
    cursor: pointer;
}

.dataTable .state-badge {
    line-height: inherit;
}

.state-badge {
    text-transform: uppercase;
}

.dt-checkboxes-cell input[type=checkbox] {
    width: 18px;
    height: 18px;
    border-radius: 0.25em;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    display: inline-block;
    outline: none;
    vertical-align: middle;
    cursor: pointer;
    --bs-form-check-bg: #fff;
    flex-shrink: 0;
    background-color: var(--bs-form-check-bg);
    background-image: var(--bs-form-check-bg-image);
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    border: 1px solid #d9dee3;
}

.dt-checkboxes-cell input[type=checkbox]:checked, .dt-checkboxes-cell input[type=checkbox]:indeterminate  {
    background-color: var(--thm-orange);
    border-color: var(--thm-orange);
    box-shadow: 0 2px 4px 0 rgba(255, 102, 0, .4);
}

.dt-checkboxes-cell input[type=checkbox]:checked {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3e%3cpath fill='none' stroke='%23fff' stroke-linecap='round' stroke-linejoin='round' stroke-width='3' d='M6 10l3 3l6-6'/%3e%3c/svg%3e");
}

.dt-checkboxes-cell input[type=checkbox]:indeterminate  {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3e%3cpath fill='none' stroke='%23fff' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M6 10h8'/%3e%3c/svg%3e");
}

.dt-checkboxes-cell input[type=checkbox]:focus {
    border-color: var(--thm-orange);
    box-shadow: 0 2px 4px 0 rgba(255, 102, 0, .4);
}

.dt-checkboxes-cell input[type=checkbox]:disabled {
    background-color: #eceef1;
}

.dt-button-collection {
    right: 0 !important;
    left: inherit !important;
}


/*--------------------------------------------------------------
# Profile
--------------------------------------------------------------*/

.card-profile {
    max-width: 800px;
}

.nav-pills .nav-link.active, .nav-pills .show>.nav-link {
    background-color: var(--thm-blue);
}

.card-profile .form-check-input {
    margin: 0;
}


/*--------------------------------------------------------------
# Toast
--------------------------------------------------------------*/

.jq-toast-wrap {
    width: initial;
    max-width: 300px;
}

.jq-toast-single {
    background-size: 18px;
    padding: 10px 20px 10px 40px;
}


/*--------------------------------------------------------------
# Custom dialog
--------------------------------------------------------------*/

.modal-dialog .modal-header {
    align-items: center;
}

.modal-dialog .modal-title label {
    margin-bottom: 0;
}

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

.gvr-loader {
    border-style: solid;
    border-width: 5px;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    position: fixed;
    top: 50%;
    left: 50%;
    margin: -25px 0 0 -25px;
    z-index: 9998;
    border-color: rgb(255, 255, 255) rgb(153, 153, 153) rgb(153, 153, 153);
    animation-name: spin;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
    animation-duration: 1000ms;
}

.gvr-overlay {
    z-index: 9997;
    position: fixed;
    overflow: hidden;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgb(56, 65, 74);
    opacity: 0.48;
    animation: 300ms ease 0s 1 normal none running OpenFade;
    transition-delay: 0s;
    transition-timing-function: linear;
    transition-property: opacity;
}


/*--------------------------------------------------------------
# Swal modal
--------------------------------------------------------------*/

.swal2-container.swal2-shown {
    background-color: rgba(50, 58, 70, .5);
}

.swal2-popup .swal2-styled.swal2-confirm {
    background-color: var(--thm-blue);
}


/*--------------------------------------------------------------
# Select2
--------------------------------------------------------------*/

.select2-container .select2-selection--single .select2-selection__arrow {
    width: 16px;
    margin-inline: 4px;
}

.select2-container .select2-selection--single .select2-selection__arrow b {
    height: 5px;
    width: 5px;
    border-width: inherit !important;
    border-bottom: 2px solid #999 !important;
    border-right: 2px solid #999 !important;
    -webkit-transform-origin: 66% 66%;
    -ms-transform-origin: 66% 66%;
    transform-origin: 66% 66%;
    -webkit-transform: rotate(45deg);
    -ms-transform: rotate(45deg);
    transform: rotate(45deg);
    -webkit-transition: all 0.15s ease-in-out;
    transition: all 0.15s ease-in-out;
}

.select2-container--default.select2-container--open .select2-selection--single .select2-selection__arrow b {
    transform: rotate(-135deg);
}

.select2-container--default .select2-selection--single .select2-selection__clear {
    height: 34px !important;
    padding-right: 6px !important;
    color: #f1556c !important;
    margin-right: 22px;
}