:root {
    --lte-sidebar-purple-bg: #79377c;
    --lte-sidebar-purple-hover-bg: rgba(255, 255, 255, 0.1);
    --lte-sidebar-purple-color: #c2c7d0;
    --lte-sidebar-purple-hover-color: #fff;
    --lte-sidebar-purple-active-color: #fff;
    --lte-sidebar-menu-active-color: var(--lte-sidebar-purple-bg);
    --lte-sidebar-purple-submenu-bg: transparent;
    --lte-sidebar-purple-submenu-color: var(--lte-sidebar-purple-color);
    --lte-sidebar-purple-submenu-hover-color: #fff;
    --lte-sidebar-purple-submenu-hover-bg: var(--lte-sidebar-purple-hover-bg);
    --lte-sidebar-purple-submenu-active-color: var(--lte-sidebar-purple-bg);
    --lte-sidebar-purple-submenu-active-bg: rgba(255, 255, 255, 0.9);
    --lte-sidebar-purple-header-color: #c5cad2;
}

.sidebar-bg-purple {
    background-color: var(--lte-sidebar-purple-bg);
}

.sidebar-bg-purple .nav-sidebar>.nav-item>.nav-link.active {
    color: var(--lte-sidebar-menu-active-color);
    background-color: var(--lte-sidebar-purple-submenu-active-bg);
}

.sidebar-bg-purple .nav-sidebar>.nav-item>.nav-link:active {
    color: var(--lte-sidebar-purple-color);
}

.sidebar-bg-purple .nav-sidebar>.nav-item.menu-open>.nav-link,
.sidebar-bg-purple .nav-sidebar>.nav-item:hover>.nav-link,
.sidebar-bg-purple .nav-sidebar>.nav-item>.nav-link:focus {
    color: var(--lte-sidebar-purple-hover-color);
    background-color: var(--lte-sidebar-purple-hover-bg);
}

.sidebar-bg-purple .nav-sidebar>.nav-item>.nav-treeview {
    background-color: var(--lte-sidebar-purple-submenu-bg);
}

.sidebar-bg-purple .nav-header {
    color: var(--lte-sidebar-purple-header-color);
    background-color: inherit;
}

.sidebar-bg-purple .sidebar a {
    color: var(--lte-sidebar-purple-color);
}

.sidebar-bg-purple .sidebar a:hover,
.sidebar-bg-purple .sidebar a:focus {
    text-decoration: none;
}

.sidebar-bg-purple .nav-treeview>.nav-item>.nav-link {
    color: var(--lte-sidebar-purple-submenu-color);
}

.sidebar-bg-purple .nav-treeview>.nav-item>.nav-link:hover,
.sidebar-bg-purple .nav-treeview>.nav-item>.nav-link:focus {
    color: var(--lte-sidebar-purple-submenu-hover-color);
    background-color: var(--lte-sidebar-purple-submenu-hover-bg);
}

.sidebar-bg-purple .nav-treeview>.nav-item>.nav-link.active,
.sidebar-bg-purple .nav-treeview>.nav-item>.nav-link.active:hover,
.sidebar-bg-purple .nav-treeview>.nav-item>.nav-link.active:focus {
    color: var(--lte-sidebar-purple-submenu-active-color);
    background-color: var(--lte-sidebar-purple-submenu-active-bg);
}

.brand-text,
.pushmenu {
    color: #fff;
}

.pushmenu:hover {
    color: #fff;
}

.main-header {
    background-image: -webkit-linear-gradient(right bottom,
            #fff 0,
            #fff 25%,
            #f4f4f4 25%,
            #f4f4f4 50%,
            #fff 50%,
            #fff 75%,
            #f4f4f4 75%);
    background-size: 5px 5px;
    background-color: #fff;
    border-bottom: 5px solid #febb22;
}

.navbar {
    padding-bottom: 0;
}

.nav-item>p {
    font-size: 18px;
    font-weight: bold;
    color: var(--lte-sidebar-purple-bg);
    padding-top: 5px;
}

.nav-item {
    font-size: 14px;
}

.nav-sidebar .nav-treeview {
    margin-left: 10px;
}

.breadcrumb-item+.breadcrumb-item::before {
    float: left;
    padding-right: 0.5rem;
    color: #6c757d;
    content: var(--bs-breadcrumb-divider, "/")
        /* rtl: var(--bs-breadcrumb-divider, "/") */
    ;
}

.btn-flat {
    border-radius: 0;
}

.input-flat {
    border-radius: 0.15rem;
}

.dataTables_wrapper .dataTable {
    width: 100% !important;
}

.form-control:focus,
.form-select:focus {
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.015),
        0 0 0 0.15rem rgba(13, 110, 253, 0.25);
}

.jstree-container-ul {
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    flex-wrap: wrap;
}

/* select 2 bootstrap 5 design reset */
.select2-container--bootstrap-5.select2-container--focus .select2-selection,
.select2-container--bootstrap-5.select2-container--open .select2-selection {
    box-shadow: none !important;
}

.select2-container--bootstrap-5 .select2-dropdown .select2-search .select2-search__field:focus {
    box-shadow: none !important;
}

.select2-container--bootstrap-5 .select2-dropdown .select2-results__options .select2-results__option {
    font-weight: 600;
    font-size: 14px;
}

.input-calendar {
    padding: 0.675rem 0.75rem;
    border-radius: 0;
}

/* daterangepicker */
.daterangepicker td.disabled,
.daterangepicker option.disabled,
.required {
    color: #f70a0a;
}

/* daterangepicker */

.form-control-sm,
.form-select-sm {
    border-radius: 0;
}

/* .form-control-sm:focus,
.form-select-sm:focus {
    box-shadow: none;
} */

/* selectize custom style */
.selectize-input {
    background-color: #fff !important;
    background-image: none !important;
    border: 1px solid #ced4da !important;
}

.selectize-dropdown,
.selectize-input,
.selectize-input input {
    font-size: 15px;
    color: #000;
    font-weight: 500;
}

.selectize-control.single .selectize-input:after {
    display: none;
}

.selectize-input {
    padding: 5px 5px;
    border-radius: 0;
}

.selectize-dropdown .selected {
    background-color: #fff;
    color: #000;
}

.selectize-dropdown,
.selectize-input,
.selectize-input input {
    font-size: 13px;
}

.selectize-input .option,
.selectize-dropdown .select-dropdown-content .option {
    width: 92%;
}

.bank .selectize-input .option,
.bank .selectize-dropdown .select-dropdown-content .option {
    width: 120px;
}

.bank .selectize-input .option span,
.bank .selectize-dropdown .select-dropdown-content .option span {
    width: 100%;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.selectize-control.single .selectize-input:not(.no-arrow):after {
    content: " ";
    display: block;
    position: absolute;
    top: 50%;
    right: calc(0.75rem + 1px);
    margin-top: -2px;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 5px 5px 0 5px;
    border-color: #7f7f7f transparent transparent transparent;
}

.patient .selectize-control.single .selectize-input:not(.no-arrow):after {
    display: none;
}

.patient .selectize-control.plugin-clear_button.single .clear {
    right: calc(8px - 6px + 0.5rem);
}

.introducer .selectize-control.single .selectize-input:not(.no-arrow):after {
    display: none;
}

.service .selectize-control.single .selectize-input:not(.no-arrow):after {
    display: none;
}

.service .selectize-control.plugin-clear_button.single .clear {
    right: calc(8px - 6px + 0.5rem);
}

/* selectize custom style */

/* Card custom design */
.card-custom {
    border-radius: 0;
    box-shadow: none;
}

.card-custom .card-header {
    padding: 8px 0 0 8px;
    border-radius: 0;
}

.card-custom .card-header .card-tools {
    margin: -5px 4px 4px 5px;
}

.card-footer:last-child {
    border-radius: 0;
}

.custom-label {
    font-size: 13px;
    font-weight: bold;
}

/* Card custom design */

/* Background custom color */
.bg-gw {
    /*green white*/
    background-color: #e2efda;
}

.bg-lavender {
    background-color: #E8DAEF;
}

.bg-linen {
    background-color: #FDEDEC;
}

.bg-aqua {
    background-color: #E8F6F3;
}

.bg-light {
    background-color: #e3e3e3;
}

.bg-mercury {
    background-color: #e7e6e6;
}

.bg-cream {
    background-color: #ffe699 !important;
}

.bg-peach {
    background-color: #f8cbad;
}

.bg-lemon {
    background-color: yellow;
}

.bg-cyan-blue {
    background-color: #e3ecfd;
}

.bg-cool-red {
    background-color: #ff003f !important;
}

.bg-green {
    background-color: green;
}

.bg-oasis {
    background-color: #fff2cc;
}

.bg-dust {
    background-color: #c9c9c9;
}

.bg-martini {
    background-color: #a6a6a6;
}



.color-blue {
    color: blue;
}

.color-green {
    color: green;
}

.color-red {
    color: red;
}

.color-white {
    color: #fff !important;
}

.text-underline {
    text-decoration: underline;
}

/* Background custom color */

/* Table custom design */
.table-area {
    width: 100%;
    max-height: 260px;
    overflow: auto;

    &::-webkit-scrollbar {
        width: 8px;
    }

    &::-webkit-scrollbar-track {
        background: #a6a6a6;
    }

    &::-webkit-scrollbar-thumb {
        background-color: #fff;
        /* border-radius: 20px; */
        border: 2px solid #fff;
    }

    /* Handle on hover */
    &::-webkit-scrollbar-thumb:hover {
        background-color: #fff;
        cursor: pointer;
    }
}

.table-custom {
    border-color: #b9b9b9;
    font-size: 13px;
    width: 100%;
}

.table-custom> :not(caption)>*>* {
    padding: 0.1rem 0.25rem;
}

.table-custom thead {
    position: -webkit-sticky;
    position: sticky;
    top: -1px;
}

.table-custom thead th {
    vertical-align: middle;
    text-align: center;
}

.table-custom tfoot {
    position: -webkit-sticky;
    position: sticky;
    bottom: -1px;
}

.table-custom tbody td .fas {
    color: red;
}

.table-input {
    padding: 0;
    box-shadow: none;
    border-radius: 0;
    font-size: 13px;
    text-align: right;
}

.table-input:focus {
    box-shadow: none;
}

/* Table custom design */

.due,
.advance {
    color: #fff;
    font-weight: bold;
    text-align: right;
}

.due:focus,
.advance:focus-visible {
    color: #fff;
}

.due {
    font-weight: bold;
    color: rgb(248, 4, 24) !important;
}

.bold {
    font-weight: bold;
}

.w-140 {
    width: 140px;
}

.w-110 {
    width: 110px;
}

.w-85 {
    width: 85px;
}

.w-55 {
    width: 55px;
}

.w-40 {
    width: 40px;
}

.mw-100 {
    min-width: 120px;
    max-width: 150px;
}

.invoice .form-control,
.invoice .form-select,
.invoice .selectize-control {
    border: 1px solid #198754;
}

.invoice .is-invalid,
#payment-mode .is-invalid {
    border: 2px solid red !important;
}


.amount {
    text-align: right !important;
}

.text-overflow {
    width: 250px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    margin: 0;
    padding: 0;
}

.add {
    display: block;
    width: 28px;
    height: 28px;
    cursor: pointer;
}

.add i {
    font-size: 26px;
    color: green;
}

.remove {
    display: block;
    width: 16px;
    height: 16px;
}

input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
    -webkit-appearance: none;
}

/* Firefox */
input[type=number] {
    -moz-appearance: textfield;
}

.f-16 {
    font-size: 16px;
}

.f-14 {
    font-size: 14px;
}

.f-13 {
    font-size: 13px;
}

.border-white {
    border: 1px solid #e3ecfd;
}

.invoice thead tr th {
    text-align: center !important;
}

.invoice tfoot tr th {
    text-align: right !important;
}

.invoice i {
    font-size: 12px;
}

.input-error {
    width: 100%;
    margin-top: 0.25rem;
    font-size: 0.875em;
    color: #dc3545;
}

.nav-tabs .nav-link {
    border-radius: 0;
}

.nav-tabs .nav-link.active,
.nav-tabs .nav-item.show .nav-link {
    color: #ffffff;
    background-color: #495057;
    border-color: #dee2e6 #dee2e6 #fff;
}

/* Select 2 on invoice */
.invoice-select2 .select2 {
    border: 1px solid #198754;
}

.invoice-select2 .select2 .selection .select2-selection {
    border-radius: 0;
}

.invoice-select2 .select2-selection__rendered {
    width: 90%;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.invoice-select2 .select2-selection__placeholder {
    font-size: 13px;
}

.form-control-xs {
    min-height: calc(1.5em + 0.5rem + 1px);
    padding: 0 0.1rem;
    font-size: 0.75rem;
    margin-bottom: 0.1rem;
    font-weight: bold;
    background-color: #e3ecfd;
    border: 1px solid;
    border-radius: 0;
}

.form-control-sm:focus,
.form-control-xs:focus {
    box-shadow: none;
    border: 1px solid;
    background-color: #e3ecfd;
}

.form-control-plain {
    border: none;
    height: 22px;
    box-shadow: none;
    font-size: 12px;
    width: 100%;
}

.form-control-plain:focus {
    box-shadow: none;
    border: none;
    background-color: white;
}

.btn .bi::before {
    vertical-align: -.225em;
}