:root {
    --orange: #f58220;
    --purple: #6100a5;
    --green: #8cc63f;
    --white: #ffffff;
    --black: #000000;
    --gray-dark: #2d2d2d;
    --gray-light: #bab9b9;
}

html,
body {
    color: var(--black);
    background-color: var(--white);
    font-family: "Baloo 2", sans-serif;
    font-optical-sizing: auto;
    font-weight: normal;
    font-style: normal;
}

.btn-warning {
    background-color: var(--orange);
    border-color: var(--orange);
    color: var(--white);
    font-weight: bold;

    &:hover {
        background-color: var(--green);
        border-color: var(--green);
        color: var(--white);
    }
}

.text-orange {
    color: var(--orange);
}

.text-purple {
    color: var(--purple);
}

.text-green {
    color: var(--green);
}

.text-gray {
    color: var(--gray);
}

.text-white {
    color: var(--white);
}

.text-black {
    color: var(--black);
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.footer {
    margin-top: auto;
}

h1,
.h1,
h2,
.h2,
h3,
.h3,
h4,
.h4,
h5,
.h5,
h6,
.h6 {
    color: var(--gray-color-1);
    font-weight: bold;
    font-style: normal;
}

h1,
.h1 {
    font-size: 24px;
}

h2,
.h2 {
    font-size: 20px;
}

h3,
.h3 {
    font-size: 18px;
}

h4,
.h4 {
    font-size: 16px;
}

h5,
.h5 {
    font-size: 14px;
}

h6,
.h6,
p,
li {
    font-size: 16px;
}

@media (min-width: 400px) {

    h1,
    .h1 {
        font-size: 30px;
    }

    h2,
    .h2 {
        font-size: 24px;
    }

    h3,
    .h3 {
        font-size: 20px;
    }

    h4,
    .h4 {
        font-size: 18px;
    }

    h5,
    .h5 {
        font-size: 16px;
    }

    h6,
    .h6,
    p,
    li {
        font-size: 18px;
    }
}

@media (min-width: 992px) {

    h1,
    .h1 {
        font-size: 50px;
    }

    h2,
    .h2 {
        font-size: 30px;
    }

    h3,
    .h3 {
        font-size: 24px;
    }

    h4,
    .h4 {
        font-size: 20px;
    }

    h5,
    .h5 {
        font-size: 18px;
    }

    h6,
    .h6,
    p,
    li {
        font-size: 16px;
    }
}

html body input::placeholder,
html body .form-control::placeholder {
    color: var(--gray-light);
}

.form-control,
.form-select {
    font-size: 14px;
}

label {
    font-weight: normal;
}

.input label,
.input .form-label {
    margin-bottom: 0;
    display: block;
}

input,
select {
    box-shadow: none !important;
}

.custom-checkbox {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
}

.form-check {
    position: relative;
}

.form-check:has(.custom-checkbox) input[type="checkbox"],
.form-check:has(.custom-checkbox) input[type="radio"] {
    position: absolute;
    left: -100%;
    top: -100%;
    opacity: 0;
}

.custom-checkbox .ico {
    display: block;
    width: 24px;
    height: 24px;
    border: 2px solid var(--gray-color-4);
    transition: all 0.3s ease;
    position: relative;
}

.custom-checkbox .ico-radio {
    border-radius: 100%;
}

.form-check input+.custom-checkbox .ico:after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    display: block;
    width: 0;
    height: 0;
    background-color: var(--green-color-1);
    transition: all 0.3s ease;
}

.form-check input+.custom-checkbox .ico-radio:after {
    border-radius: 100%;
}

.form-check input+.custom-checkbox:hover .ico {
    border-color: var(--gray-color-1);
}

.form-check input:checked+.custom-checkbox .ico {
    border-color: var(--green-color-1);
}

.form-check input:checked+.custom-checkbox .ico:after {
    width: 10px;
    height: 10px;
}

.form-check input:checked+.custom-checkbox:hover .ico {
    border-color: var(--green-color-2);
}

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

.form-switch .form-check-input:focus {
    border-color: var(--orange);
    box-shadow: 0 0 0 0.25rem rgba(245, 130, 32, 0.25);
}

.form-switch .form-check-input:focus:not(:checked) {
    --bs-form-switch-bg: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='%23f58220'/%3e%3c/svg%3e");
}

.form-switch .form-check-input,
.form-wrapper .form-control,
.form-wrapper .form-select,
.form-wrapper .select2-container .select2-selection--single {
    border: 1px solid var(--gray-light);
    box-shadow: 0 3px 5px rgba(0, 0, 0, 0.2) !important;
}

.form-wrapper .form-control,
.form-wrapper .form-select {
    border: 1px solid var(--gray-light);
    padding: 10px;
    font-size: 16px;
}

.form-wrapper .select2-container .select2-selection--single {
    padding-top: 10px;
    padding-bottom: 10px;
    height: 47px;
}

.form-wrapper .select2-container .select2-selection--single .select2-selection__arrow {
    height: 100%;
}


.form-control-border-bottom {
    border: none;
    border-radius: 0;
    border-bottom: 1px solid var(--gray-color-4);
    background-color: transparent;
    padding-left: 0;

    &:focus {
        background-color: var(--white);
        border-color: var(--green-color-1);
    }

    &.has-icon {
        padding-right: 40px;
    }

    &.has-icon .ico {
        position: absolute;
        right: 0;
        top: 50%;
        transform: translateY(-50%);
        width: 24px;
        height: 24px;
    }
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-wrapper .ico {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.input-wrapper .ico img {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 0 auto;
}

.input-wrapper .form-control,
.input-wrapper .form-select {
    padding-right: 50px;
    background-position: right 28px center;
}

/* size begin */
#windowSize * {
    font-family: "Arial", sans-serif !important;
}

#windowSize {
    position: fixed;
    left: 0px;
    bottom: 120px;
    z-index: 100;
    background: rgba(0, 0, 0, 1);
    padding: 3px;
    text-align: right;
    font-weight: normal;
}

@media (min-width: 768px) {
    #windowSize {
        bottom: 250px;
    }
}

#windowSize tr {
    border-top: 1px solid #aaa;
}

#windowSize tr:first-of-type {
    border-top: none;
}

#windowSize td {
    font-size: 11px;
    color: #eee;
    margin: 0;
    padding: 0;
    text-align: center;
}

#windowSize td span.hideMe {
    display: block;
    height: 0;
    line-height: 0;
    overflow: hidden;
    transition: all 300ms ease;
    padding: 0;
}

#windowSize:hover td span {
    height: auto;
    line-height: 1;
    padding: 2px 0;
}

#windowSize b {
    color: red;
    font-weight: bold;
}

#windowSize p span {
    display: inline-block;
    padding: 0 3px;
    font-weight: bold;
}

#windowSize .ipAddress {
    max-width: 60px;
    word-wrap: break-word;
}

/* size end */

.container {
    width: 100%;
    max-width: 1200px;
}

.container-xl {
    max-width: 1400px;
}

.btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border-radius: 5px;
    font-size: 16px;
    width: fit-content;
    padding: 10px 20px;
    transition: all 0.3s ease;
}

.btn-sm {
    font-size: 14px;
    padding: 5px 10px;
}

@media (min-width: 992px) {
    .btn {
        font-size: 20px;
    }

    .btn-sm {
        font-size: 16px;
    }
}

.btn img {
    display: block;
}

.btn-success {
    background-color: var(--green-color-1);
    border-color: var(--green-color-1);
    color: var(--white);
    font-weight: 500;

    &:hover {
        background-color: var(--green-color-2);
        border-color: var(--green-color-2);
    }
}

.btn-outline-secondary {
    border-color: var(--gray-color-1);
    color: var(--gray-color-1);

    &:hover {
        background-color: var(--gray-color-1);
        border-color: var(--gray-color-1);
        color: var(--white);
    }
}

.btn-link {
    color: var(--gray-color-3);
    text-decoration: none;
    transition: all 0.3s ease;
    opacity: 0.5;

    &:hover {
        opacity: 1;
        color: var(--gray-color-3);
    }
}

.list-style-arrows {
    list-style: none;
    padding-left: 0;
    margin-left: 0;

    & li {
        position: relative;
        padding-left: 30px;

        &::before {
            content: "";
            position: absolute;
            left: 0;
            top: 5px;
            background-image: url(../img/svg/icon-arrow-right-green-1.svg);
            background-size: contain;
            background-repeat: no-repeat;
            background-position: center;
            width: 20px;
            height: 15px;
        }
    }
}


html body .tooltip {
    filter: drop-shadow(0 0 5px rgba(0, 0, 0, 0.25));
}

html body .tooltip .tooltip-inner {
    max-width: 400px;
    color: inherit;
    background: #fff;
}

html body .tooltip .tooltip-inner img {
    display: block;
    width: 100%;
    max-width: 65vw;
    height: auto;
    margin: 0 auto;
}

.bs-tooltip-auto[data-popper-placement^="right"] .tooltip-arrow:before,
.tooltip.bs-tooltip-end .tooltip-arrow:before {
    right: -1px;
    border-width: 1rem 1rem 1rem 0;
    border-right-color: #fff !important;
}

.bs-tooltip-auto[data-popper-placement^="bottom"] .tooltip-arrow::before,
.bs-tooltip-bottom .tooltip-arrow::before {
    border-width: 0 1rem 1rem;
    border-bottom-color: #fff !important;
}

.bs-tooltip-auto[data-popper-placement^="top"] .tooltip-arrow::before,
.bs-tooltip-top .tooltip-arrow::before {
    border-width: 1rem 1rem 0;
    border-top-color: #fff !important;
}

.bs-tooltip-auto[data-popper-placement^="left"] .tooltip-arrow::before,
.bs-tooltip-left .tooltip-arrow::before {
    border-width: 1rem;
    border-left-color: #fff !important;
}

@media (min-width: 992px) {
    html body .tooltip {
        opacity: 1 !important;
    }

    html body .tooltip .tooltip-inner {
        width: 98vw;
        max-width: 320px;
        opacity: 1;
        box-shadow: 0px 0px 15.52px 0.48px rgba(0, 0, 0, 0.04);
    }

    html body .tooltip {
        margin-left: 60px !important;
    }

    .bs-tooltip-auto[data-popper-placement^="right"] .tooltip-arrow:before,
    .bs-tooltip-auto[data-popper-placement^="bottom"] .tooltip-arrow::before,
    .bs-tooltip-auto[data-popper-placement^="top"] .tooltip-arrow::before .tooltip.bs-tooltip-end .tooltip-arrow:before {
        filter: drop-shadow(0px 0 44px rgba(0, 0, 0, 0.25)) !important;
    }




}

html body .popover {
    min-width: 300px;
    width: 30vw;
    max-width: 400px;
    background: #fff;
}

html body .popover img {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    margin: 0 auto;
}

html body .popover-header {
    background: #fff;
    padding: 5px;
}

.datepicker td {
    min-width: 34px;
    min-height: 34px;
    height: 34px;
}

@media (min-width: 992px) {
    .datepicker td {
        min-width: 40px;
        min-height: 40px;
        height: 40px;
    }
}

.form-label-text {
    font-weight: bold;
    font-size: 16px;
    margin-left: 5px;
    vertical-align: middle;
    display: inline-block;
    height: 100%;
    line-height: 1;
}

.form-label-required {
    color: var(--orange);
    font-weight: bold;
    font-size: 16px;
    vertical-align: middle;
    display: inline-block;
    height: 100%;
    line-height: 1;
    position: relative;
    top: -1px;
}

label .form-label-required {
    margin-left: 5px;
}

.has-bg-overlay {
    position: relative;

    &::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
    }

    &.bg-green-light {
        &::before {
            background-color: var(--green);
            opacity: 0.1;
        }
    }

    &.bg-purple-light {
        &::before {
            background-color: var(--purple);
            opacity: 0.1;
        }
    }
}

.has-bg-overlay .container {
    position: relative;
    z-index: 1;
}

.icon-scroll {
    display: inline-block;
    margin: 0 auto;
    width: 40px;
    height: 40px;
}

@media (min-width: 992px) {
    .icon-scroll {
        width: 60px;
        height: 60px;
    }
}

.modal {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(5px);
    border-radius: 10px;
}

.modal .modal-header,
.modal .modal-footer {
    border: none;
}

.modal-content {
    border: 2px solid var(--orange);
    box-shadow: 0 0 20px 0 var(--orange);
}

.modal-backdrop {
    background: var(--white);
}

.modal .btn-close {
    --bs-btn-close-bg: none;
    --bs-btn-close-opacity: 1;
    background: var(--orange);
    filter: none;
    opacity: 1;
    -webkit-mask: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23000'%3e%3cpath d='M.293.293a1 1 0 0 1 1.414 0L8 6.586 14.293.293a1 1 0 1 1 1.414 1.414L9.414 8l6.293 6.293a1 1 0 0 1-1.414 1.414L8 9.414l-6.293 6.293a1 1 0 0 1-1.414-1.414L6.586 8 .293 1.707a1 1 0 0 1 0-1.414'/%3e%3c/svg%3e") center / 1em no-repeat;
    mask: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23000'%3e%3cpath d='M.293.293a1 1 0 0 1 1.414 0L8 6.586 14.293.293a1 1 0 1 1 1.414 1.414L9.414 8l6.293 6.293a1 1 0 0 1-1.414 1.414L8 9.414l-6.293 6.293a1 1 0 0 1-1.414-1.414L6.586 8 .293 1.707a1 1 0 0 1 0-1.414'/%3e%3c/svg%3e") center / 1em no-repeat;
}