/* general custom themes */
body {
    color: #212529;
}

.hide {
    display: none;
}

.color-primary {
    color: #0d6efd;
}

.color-secondary {
    color: #6c757d;
}

.color-body-text {
    color: #212529;
}

.color-gray {
    color: #6c757d;
}

.fs-icon {
    font-size: 32px !important;
}

.fs-7 {
    font-size: 0.75rem !important;
}

.fs-64px {
    font-size: 64px !important;
}

.w-90 {
    width: 90% !important;
}

.w-80 {
    width: 80% !important;
}

.w-70 {
    width: 70% !important;
}

.w-60 {
    width: 60% !important;
}

.w-50 {
    width: 50% !important;
}

.w-290px {
    width: 290px !important;
}

.mt-n1 {
    margin-top: -0.25rem;
}

.mt-n3 {
    margin-top: -1rem;
}

.mt-n5 {
    margin-top: -3rem;
}

.border-top-dashed {
    border-top: 1px dashed #dee2e6;
}

.lbl-check {
    margin-bottom: 0.5rem;
}

.div-check-label {
    margin-left: -1.5em;
}

.bg-overlay {
    background: #0d6efd;
}

.auth-full-bg {
    background-color: #fff;
}

.vertical-menu {
    z-index: 1040 !important;
}

.navbar-brand-box {
    text-align: left;
}

.navbar-brand-box .logo-sm img {
    height: 22px;
}

.navbar-brand-box .logo-lg img {
    height: 52px;
}

.dropdown-menu.show {
    width: 200px;
}

a i.bx {
    vertical-align: middle;
}

.btn-grid .btn {
    width: 100%;
}

.btn {
    border-radius: 0.5rem;
}

.btn-primary {
    background-color: #0d6efd;
    border-color: #0d6efd;
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active,
.btn-primary.active,
.btn-primary:active:focus,
.btn-primary:active:hover,
.btn-primary.active:focus,
.btn-primary.active:hover {
    background-color: #556ee6;
    border-color: #556ee6;
}

.btn-login {
    padding-top: 13.5px;
    padding-bottom: 13.5px;
}

.input-group> :not(:first-child):not(.dropdown-menu):not(.valid-tooltip):not(.valid-feedback):not(.invalid-tooltip):not(.invalid-feedback):not(.touchspin):not(.touchspin + span) {
    border: var(--bs-border-width) solid var(--bs-border-color-translucent);
}

.page-link.active,
.active>.page-link {
    background-color: #0d6efd;
    border-color: #0d6efd;
}

table.dataTable>thead .sorting_disabled {
    cursor: default;
}

table.dataTable>thead .sorting_disabled.sorting_asc:before,
table.dataTable>thead .sorting_disabled.sorting_asc:after {
    opacity: 0;
}

div.dataTables_paginate {
    margin-bottom: 20px !important;
}

#sidebar-menu {
    padding: 30px 0 30px;
}

#sidebar-menu ul li ul.sub-menu li a {
    padding: 0.4rem 1.5rem 0.4rem 2.5rem;
}

.page-content {
    /* padding: 60px 18px 60px; */
}

#toast-success {
    display: none;
}

.toast.position-fixed.toast-bottom-end {
    bottom: 20px;
    right: 20px;
    z-index: 1055;
}

.toast.position-fixed.toast-top-end {
    top: 20px;
    right: 20px;
    z-index: 1055;
}

.form-check-label {
    height: 30px;
    text-align: center;
    align-content: center;
    margin-left: 10px;
    margin-top: 0.25rem;
}

.form-check .form-check-input {
    width: 30px;
    height: 30px;
}

.mb-3.pt-4 .form-check {
    margin-top: 0.175rem;
}

.btn-save,
.btn-update,
.btn-cancel {
    width: 15%;
    padding: 12px;
    margin-top: 32px;
    margin-bottom: 32px;
}

.btn-save,
.btn-update {
    margin-right: 24px;
}

canvas#signature-pad {
    /* Prevents the browser from handling touch gestures like scrolling/zooming */
    touch-action: none;
    -ms-touch-action: none;
}

/* light custom themes */
html[data-bs-theme="light"] body[data-sidebar="light"] .navbar-brand-box,
html[data-bs-theme="light"] body[data-sidebar="light"] .vertical-menu {
    background: #fff;
}

html[data-bs-theme="light"] body[data-sidebar="light"] #sidebar-menu ul li a {
    color: #212529 !important;
}

html[data-bs-theme="light"] body[data-sidebar="light"] #sidebar-menu ul.sub-menu li a {
    color: #6c757d !important;
}

html[data-bs-theme="light"] body[data-sidebar="light"] #sidebar-menu ul li a:hover {
    color: #556ee6 !important;
}

html[data-bs-theme="light"] body[data-sidebar="light"] #sidebar-menu ul li a i {
    color: #212529 !important;
}

html[data-bs-theme="light"] body[data-sidebar="light"] #sidebar-menu ul.sub-menu li a i {
    color: #6c757d !important;
}

html[data-bs-theme="light"] body[data-sidebar="light"] #sidebar-menu ul li a:hover i {
    color: #212529 !important;
}

html[data-bs-theme="light"] body[data-sidebar="light"] #sidebar-menu ul li.menu-title {
    color: #212529 !important;
}

html[data-bs-theme="light"] body[data-sidebar="light"] #sidebar-menu ul li.menu-title:hover {
    color: #556ee6 !important;
}

html[data-bs-theme="light"] body[data-sidebar="light"] #sidebar-menu ul li a.active {
    color: #0d6efd !important;
}

.auth-full-page-content {
    min-height: 90vh;
}

.toggleSwitch {
    display: inline-block;
    position: relative;
    cursor: pointer;
    width: 200px;
    height: 34px;
    background-color: #fafafa;
    border: 1px solid #ccc;
    border-radius: 5px;
    user-select: none;
}

.toggleSwitch input {
    display: none;
}

.toggleSwitch>span {
    position: absolute;
    left: 0;
    width: calc(100% - 6px);
    margin: 0;
    text-align: left;
    white-space: nowrap;
    margin: 0 3px;
    line-height: 20px;
    height: 100%;
    vertical-align: middle;
}

.toggleSwitch>span:before {
    content: "";
    display: block;
    width: 50%;
    position: absolute;
    left: 0;
    top: 3px;
    bottom: 3px;
    border-radius: 4px;
    background-color: #0d6efd;
    -webkit-transition: all 0.2s ease-out;
    -moz-transition: all 0.2s ease-out;
    transition: all 0.2s ease-out;
}

.toggleSwitch>input:checked~span:before {
    left: 50%;
}

.toggleSwitch>span span {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 5;
    display: block;
    width: 50%;
    margin-left: 50px;
    text-align: left;
    font-size: 0.9em;
    width: auto;
    left: 0;
    top: -1px;
    opacity: 1;
    width: 40%;
    text-align: center;
    line-height: 34px;
}

.toggleSwitch>span span:first-of-type {
    color: #fff;
    opacity: 1;
    left: 0;
    margin: 0;
    width: 50%;
}

.toggleSwitch input:checked~span span:first-of-type {
    left: 0;
    color: #999;
}

.toggleSwitch>span span:last-of-type {
    left: auto;
    right: 0;
    color: #999;
    margin: 0;
    width: 50%;
}

.toggleSwitch input:checked~span span:last-of-type {
    color: #fff;
}

#purchase_references ul li .card span {
    color: #adb5bd;
}

#purchase_references ul li .card.border-warning span {
    color: #6c757d;
}

#purchase_references ul li .card.border-primary span {
    color: #0d6efd;
}

.card-top {
    background: radial-gradient(58.06% 177.78% at 50% 100%,
            #b29e65 0%,
            #000000 100%) !important;
    box-shadow: 5px 5px 10px 0px #ffffff4d inset !important;
    box-shadow: 0px 5px 10px 0px #00000066 !important;
    color: #ffffff !important;
}

/* dark custom themes */
html[data-bs-theme="dark"] .right-bar .right-bar-toggle {
    color: #212529;
}

/* for pc only */
@media (min-width: 1200px) {
    .ms-md-6 {
        margin-left: 4rem;
    }

    .me-md-6 {
        margin-right: 4rem;
    }
}

@media (min-width: 768px) {
    /* ... */
}

/* for mobile devices only */
@media (max-width: 991.98px) {
    .fixed-md-bottom {
        position: fixed;
        right: 0;
        bottom: 0;
        left: 0;
        z-index: 1030;
    }

    .ms-md-min1 {
        margin-left: -1rem !important;
    }
}

@media (max-width: 767.98px) {
    .mt-sm-6 {
        margin-top: 4rem !important;
    }

    .auth-full-bg.h-100 {
        height: 0px !important;
    }

    .auth-full-page-content {
        min-height: auto;
    }

    .dropdown-menu.show {
        width: auto;
    }

    .btn-save,
    .btn-update,
    .btn-cancel {
        width: 40%;
    }
}

/* Session Expired / Re-auth Modal */
#reauthModal .modal-content {
    border: none;
    border-radius: 24px;
    padding: 1rem;
    box-shadow: 0 1rem 3rem rgba(0, 0, 0, .15);
}
#reauthModal .reauth-icon {
    width: 84px;
    height: 84px;
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #fff;
    color: #2f65f0;
    font-size: 84px;
    margin-bottom: 1.5rem;
}
#reauthModal .modal-title {
    text-align: center;
    color: #6C757D;
    font-weight: 400;
    margin-bottom: 0.5rem;
    margin-bottom: 1.5rem;
}
#reauthModal .reauth-title {
    text-align: center;
    color: #6c757d;
    font-weight: 400;
    margin-bottom: 1.5rem;
}
#reauthModal .form-label {
    font-size: 1rem;
    color: #212529;
}
#reauthPin {
    border-radius: 8px;
    padding-right: 2.75rem;
    height: 2.5rem;
    font-size: 0.875rem;
    margin-bottom: 26px;
}
#reauthModal .reauth-pin-wrap {
    position: relative;
}
#reauthModal .reauth-pin-toggle {
    position: absolute;
    top: 50%;
    right: .75rem;
    transform: translateY(-50%);
    border: none;
    background: none;
    color: #adb5bd;
    padding: 0;
}
#reauthSubmitBtn {
    border-radius: 8px;
    background: #2f65f0;
    border-color: #2f65f0;
    padding: .65rem;
    font-size: 1rem;
    margin-bottom: 1.625rem;
}
#reauthModal .reauth-login-link {
    margin-top: 1rem;
    margin-bottom: 0.5rem;
}
#reauthModal .reauth-login-link,
#reauthModal .reauth-reset-link {
    text-align: left;
    font-size: .85rem;
    color: #6c757d;
}

/* Select2-style "x" clear button for plain text search inputs */
.tree-search-clear {
    cursor: pointer;
    font-weight: bold;
    font-size: 16px;
    line-height: 1;
    color: var(--bs-gray-500);
}
.tree-search-clear:hover {
    color: var(--bs-body-color);
}

/* Datepicker custom styles */
.datepicker table {
    border-collapse: separate !important;
    border-spacing: 0 !important;
}
.datepicker table tr td.disabled, .datepicker table tr td.disabled:hover {
    color: #ccc;
}
.datepicker table tr td.today:not(.active) {
    background-color: #fff !important;
    border: 1px solid #6aa6ff !important;
    color: #000 !important;
    border-radius: 4px !important;
}

/* Progress bar custom styles */
.progress, .progress-stacked {
    background-color: #e9ecef !important;
}
