/*
 *  Copyright 2025.  Baks.dev <admin@baks.dev>
 *
 *  Permission is hereby granted, free of charge, to any person obtaining a copy
 *  of this software and associated documentation files (the "Software"), to deal
 *  in the Software without restriction, including without limitation the rights
 *  to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
 *  copies of the Software, and to permit persons to whom the Software is furnished
 *  to do so, subject to the following conditions:
 *
 *  The above copyright notice and this permission notice shall be included in all
 *  copies or substantial portions of the Software.
 *
 *  THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 *  IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 *  FITNESS FOR A PARTICULAR PURPOSE AND NON INFRINGEMENT. IN NO EVENT SHALL THE
 *  AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
 *  LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
 *  OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
 *  THE SOFTWARE.
 */

:root {
    --bs-blue: #5895df;
    --bs-indigo: #6610f2;
    --bs-purple: #6f42c1;
    --bs-pink: #d63384;
    --bs-red: #dc3545;
    --bs-orange: #fd7e14;
    --bs-yellow: #ffc107;
    --bs-green: #198754;
    --bs-teal: #20c997;
    --bs-cyan: #0dcaf0;
    --bs-black: #000;
    --bs-white: #fff;
    --bs-gray: #6c757d;
    --bs-gray-dark: #343a40;
    --bs-gray-100: #f8f9fa;
    --bs-gray-200: #e9ecef;
    --bs-gray-300: #dee2e6;
    --bs-gray-400: #ced4da;
    --bs-gray-500: #adb5bd;
    --bs-gray-600: #6c757d;
    --bs-gray-700: #495057;
    --bs-gray-800: #343a40;
    --bs-gray-900: #212529;
    --bs-primary: #5895df;
    --bs-secondary: #6c757d;
    --bs-success: #198754;
    --bs-info: #0dcaf0;
    --bs-warning: #ffc107;
    --bs-danger: #dc3545;

    --bs-dark: #212529;
    --bs-primary-rgb: 88, 149, 223;
    --bs-secondary-rgb: 108, 117, 125;
    --bs-success-rgb: 25, 135, 84;
    --bs-border-opacity: 2;
    /*--bs-info-rgb: 13, 202, 240;*/
    --bs-warning-rgb: 255, 193, 7;
    /*--bs-danger-rgb: 220, 53, 69;*/
    /*--bs-light-rgb: 248, 249, 250;*/

    --bs-light: #f8f8f8;
    --bs-light-rgb: 248, 248, 248;

    --bs-dark-rgb: 33, 37, 41;
    --bs-white-rgb: 255, 255, 255;
    --bs-black-rgb: 0, 0, 0;
    --bs-body-color-rgb: 33, 37, 41;
    --bs-body-bg-rgb: 255, 255, 255;
    --bs-font-sans-serif: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", "Liberation Sans", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
    --bs-font-monospace: SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    --bs-gradient: linear-gradient(180deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0));
    --bs-body-font-family: var(--bs-font-sans-serif);
    /*--bs-body-font-size: 1rem;*/
    --bs-body-font-size: 0.875rem;;
    --bs-body-font-weight: 400;
    --bs-body-line-height: 1.5;
    --bs-body-color: #212529;
    --bs-body-bg: #fff;
    --bs-border-width: 1px;
    --bs-border-style: solid;
    --bs-border-color: #dee2e6;
    --bs-border-color-translucent: rgba(0, 0, 0, 0.175);
    --bs-border-radius: 0.375rem;
    --bs-border-radius-sm: 0.25rem;
    --bs-border-radius-lg: 0.5rem;
    --bs-border-radius-xl: 0.8rem;
    --bs-border-radius-2xl: 2rem;
    --bs-border-radius-pill: 50rem;
    --bs-link-color: #5895df;
    --bs-link-hover-color: #0a58ca;
    --bs-code-color: #d63384;
    --bs-highlight-bg: #fff3cd;

    --toast-shadow: rgba(0, 0, 0, .075);


    --bs-primary-rgb: 70, 132, 208;


    --bs-danger-rgb: 255, 57, 69;
    --bs-info-rgb: 88, 149, 223;
    --bs-hit-rgb: 253, 126, 20;

    --bs-btn-active-color: black;


    --bs-tooltip-zindex: 1080;
    --bs-tooltip-max-width: 200px;
    --bs-tooltip-padding-x: 0.5rem;
    --bs-tooltip-padding-y: 0.25rem;
    /*--bs-tooltip-margin: ;*/
    --bs-tooltip-font-size: 0.875rem;
    --bs-tooltip-color: #fff;
    --bs-tooltip-bg: #fff;
    --bs-tooltip-border-radius: 0.375rem;
    --bs-tooltip-opacity: 0.9;
    --bs-tooltip-arrow-width: 0.8rem;
    --bs-tooltip-arrow-height: 0.4rem;
}

.container-xxl, .container-xl, .container-lg, .container-md, .container-sm, .container {
    max-width: 1280px;
}


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

.popover {
    --bs-popover-header-bg: white;
    --bs-popover-zindex: 1050;
}

#btn-back-to-top {
    position: fixed;
    top: 60px;
    right: 20px;
    display: none;
    cursor: pointer;
}


#btn-back-to-end {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: none;
    cursor: pointer;
}


.icon {
    content: "";
    width: 43px;
    height: 43px;
    /*border-radius: 50%;*/
    background-color: rgb(255, 255, 255);
    box-shadow: 0 4px 5px 0 rgba(139, 139, 139, 0.39);
    display: flex;
    justify-content: center;
    align-items: center;
    margin: auto;
    cursor: pointer;

}

.icon-sm {
    width: 35px;
    height: 35px;
}


.selection-box .accordion-button:after {
    width: 35px;
    height: 35px;
    background: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23212529'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e") center center/15px no-repeat, #fff;
    border-radius: 50%;
}

.start-25 {
    left: 25% !important;
}

.z-index-1 {
    z-index: 1;
}

.z-index-3 {
    z-index: 3;
}

.z-index-4 {
    z-index: 4;
}

.z-index-5 {
    z-index: 5;
}

input:checked + .icon {
    opacity: 0.5;
}

small, .small, .help-text {
    font-size: 0.875em;
}

.small-sm {
    font-size: 0.6em;
}

.bg-hit {
    --bs-bg-opacity: 1;
    background-color: rgba(var(--bs-hit-rgb), var(--bs-bg-opacity)) !important;
}


.cards-box .card:hover {
    background-color: rgb(255, 255, 255);
    box-shadow: 0 5px 21px 0 rgba(70, 70, 70, 0.23);
}

.cards-box .card:hover .card-favorites {
    opacity: 1 !important;
}

.nav-link {
    --bs-nav-link-color: black;
    padding: 0.3rem 0;
}

.nav-link.active, .nav-link:hover {
    background: var(--bs-blue);
}

.nav-link:hover, .nav-link:focus {
    color: var(--bs-white) !important;
}


.border-dotted {
    border: 0.1rem dotted #e4e6ef !important;
}

.border-dotted.active {
    border-color: var(--bs-blue) !important;
    color: #000 !important;
}

.form-check {
    display: block;
    min-height: 1.5rem;
    padding-left: 1.5em;
    margin-bottom: 0.125rem;
}

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

.form-check-reverse {
    padding-right: 1.5em;
    padding-left: 0;
    text-align: right;
}

.form-check-reverse .form-check-input {
    float: right;
    margin-right: -1.5em;
    margin-left: 0;
}

.form-check-input {
    width: 1em;
    height: 1em;
    margin-top: 0.25em;
    vertical-align: top;
    background-color: #fff;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    border: 1px solid rgba(0, 0, 0, 0.25);
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    -webkit-print-color-adjust: exact;
    color-adjust: exact;
    print-color-adjust: exact;
}

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

.form-check-input[type=radio] {
    border-radius: 50%;
}

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

.form-check-input:focus {
    /*border-color: #86b7fe;*/
    border: 1px solid rgba(0, 0, 0, 0.25);
    outline: 0;
    box-shadow: none;

}

.form-check-input:checked {
    background-color: #5895df;
    border-color: white;

}

.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 10 3 3 6-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: #5895df;
    border-color: white;
    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 {
    cursor: default;
    opacity: 0.5;
}


.btn-primary {
    --bs-btn-color: #fff;
    --bs-btn-bg: #4684D0;
    --bs-btn-border-color: #4684D0;
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: #5895df;
    --bs-btn-hover-border-color: #4684D0;
    --bs-btn-focus-shadow-rgb: 49, 132, 253;
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: #5895df;
    --bs-btn-active-border-color: #4684D0;
    --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
    --bs-btn-disabled-color: #fff;
    --bs-btn-disabled-bg: #4684D0;
    --bs-btn-disabled-border-color: #4684D0;
}

.btn-danger {
    --bs-btn-color: #fff;
    --bs-btn-bg: #FF3945;
    --bs-btn-border-color: #FF3945;
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: #bb2d3b;
    --bs-btn-hover-border-color: #b02a37;
    --bs-btn-focus-shadow-rgb: 225, 83, 97;
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: #b02a37;
    --bs-btn-active-border-color: #a52834;
    --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
    --bs-btn-disabled-color: #fff;
    --bs-btn-disabled-bg: #FF3945;
    --bs-btn-disabled-border-color: #FF3945;
}

.btn-check:checked + .btn, :not(.btn-check) + .btn:active, .btn:first-child:active, .btn.active, .btn.show {
    color: var(--bs-btn-active-color);

}


.nav-pills {
    --bs-nav-pills-link-active-color: #fff;
    --bs-nav-pills-link-active-bg: #4684D0;
}

.circle-25 {
    width: 25px;
    height: 25px;
    border-radius: 50% !important;
}

.bg-cover {
    background-repeat: no-repeat;
    background-size: cover !important;
    background-position: center;
    border: 0;
}

.bg-contain {
    background-repeat: no-repeat;
    /*background-color: #f8fbff;*/
    background-size: contain;
    background-position: center;
    background-origin: content-box;
}


.modal-content {
    border-radius: 26px;
    box-shadow: 0 4px 24px 0 rgba(139, 139, 139, 0.27);
    border-bottom: 10px solid var(--bs-blue);
    border-top: none;
    border-left: none;
    border-right: none;
}


.modal {
    --bs-modal-margin: 1.75rem;
    --bs-modal-box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.modal-dialog {
    max-width: var(--bs-modal-width);
    margin-right: auto;
    margin-left: auto;
}

.modal-xl {
    --bs-modal-width: 1140px;
}

.modal-fullscreen {
    --bs-modal-width: none;
    width: 100vw;
    height: 100%;
    margin: 0;
}

.modal-sm {
    --bs-modal-width: 300px;
}

.modal-lg {
    --bs-modal-width: 800px;
}

.modal-xl {
    --bs-modal-width: 1140px;
}


/* TOAST */

.toast {
    width: 350px;
    max-width: 100%;
    font-size: .9rem;
    pointer-events: auto;
    background-color: rgba(255, 255, 255, .85);
    background-clip: padding-box;
    border: 1px solid rgba(0, 0, 0, .1);
    box-shadow: 0 .5rem 1.5rem .5rem var(--toast-shadow);
    border-radius: .475rem /*box-shadow: red
    rgba(255, 0, 0, .075)
    */;
}

.toast.showing {
    opacity: 0
}

.toast:not(.show) {
    display: none
}

.toast-container {
    width: max-content;
    max-width: 100%;
    pointer-events: none
}

.toast-container > :not(:last-child) {
    margin-bottom: 1.5rem
}

.toast-header {
    display: flex;
    align-items: center;
    padding: .5rem .75rem;
    color: #7e8299;
    background-color: rgba(255, 255, 255, .85);
    background-clip: padding-box;
    border-bottom: 1px solid rgba(0, 0, 0, .05);
    border-top-left-radius: calc(.475rem - 1px);
    border-top-right-radius: calc(.475rem - 1px);
}

.toast-header .btn-close {
    margin-right: -.375rem;
    margin-left: .75rem
}

.toast-icon {
    border-radius: 50% !important;
    padding: .5rem;
    margin-right: 1rem;
}

.toast-body {
    padding: .75rem;
    word-wrap: break-word;
    background-color: rgba(var(--bs-body-bg-rgb), var(--bs-bg-opacity)) !important;
}


.vertical-middle {
    vertical-align: middle;
}

.dropleft:before {
    position: absolute;
    top: 8px;
    left: -15px;
    content: '';
    border: 7px solid transparent;
    /*border-right-color: transparent;
    border-right-style: solid;
    border-right-width: 7px;*/
    border-right: 10px solid #FFF;
}

.dropright:before {
    position: absolute;
    top: 8px;
    right: -15px;
    content: '';
    border: 7px solid transparent;
    /*border-right-color: transparent;
    border-right-style: solid;
    border-right-width: 7px;*/
    border-left: 10px solid #FFF;
}

.leader > .list-group-item:hover {
    background: #5895DF !important;
    color: #FFFFFF;
}

.leader > .list-group-item.active {
    background: #5895DF !important;
    color: #FFFFFF;
}

.leader > .list-group-item:hover a {
    color: #FFFFFF !important;
}

.leader > .list-group-item.active a {
    color: #FFFFFF !important;
}


.pointer {
    cursor: pointer;
}

.zoom-in {
    cursor: zoom-in;
}

.w-250px {
    width: 250px;
}

.word-br {
    word-spacing: 99999px;
}


img.lazy, div.lazy {
    visibility: hidden;
    opacity: 0;
    transition: visibility 0s, opacity 0.1s linear;
}

img.loaded, div.loaded {
    visibility: visible;
    opacity: 1;
}


.spinner-grow,
.spinner-border {
    display: inline-block;
    width: var(--bs-spinner-width);
    height: var(--bs-spinner-height);
    vertical-align: var(--bs-spinner-vertical-align);
    border-radius: 50%;
    animation: var(--bs-spinner-animation-speed) linear infinite var(--bs-spinner-animation-name);
}

.spinner-border {
    --bs-spinner-width: 2rem;
    --bs-spinner-height: 2rem;
    --bs-spinner-vertical-align: -0.125em;
    --bs-spinner-border-width: 0.185em;
    --bs-spinner-animation-speed: 0.75s;
    --bs-spinner-animation-name: spinner-border;
    border: var(--bs-spinner-border-width) solid currentcolor;
    border-right-color: transparent;
}

.spinner-border-sm {
    --bs-spinner-width: 15px;
    --bs-spinner-height: 15px;
    --bs-spinner-border-width: 0.1em;
    margin: .25rem !important;
    vertical-align: middle;
}

.form-control::placeholder, .form-control:disabled {
    color: #6c757d;
    opacity: 0.5;
}

.clearfix {
    display: block;
    clear: both;
    content: "";
}


.tooltip {
    --bs-tooltip-zindex: 1080;
    --bs-tooltip-max-width: 200px;
    --bs-tooltip-padding-x: 0.5rem;
    --bs-tooltip-padding-y: 0.25rem;
    /*--bs-tooltip-margin: ;*/
    --bs-tooltip-font-size: 0.875rem;
    --bs-tooltip-color: #000;
    --bs-tooltip-bg: #fff;
    --bs-tooltip-border-radius: 0.375rem;
    --bs-tooltip-opacity: 0.9;
    --bs-tooltip-arrow-width: 0.8rem;
    --bs-tooltip-arrow-height: 0.4rem;

    z-index: var(--bs-tooltip-zindex);
    display: block;
    padding: var(--bs-tooltip-arrow-height);
    /*margin: var(--bs-tooltip-margin);*/
    font-family: var(--bs-font-sans-serif);
    font-style: normal;
    font-weight: 400;
    line-height: 1.5;
    text-align: left;
    /*text-align: start;*/
    text-decoration: none;
    text-shadow: none;
    text-transform: none;
    letter-spacing: normal;
    word-break: normal;
    white-space: normal;
    word-spacing: normal;
    line-break: auto;
    font-size: var(--bs-tooltip-font-size);
    word-wrap: break-word;
    opacity: 0;
}

.tooltip.show {
    opacity: var(--bs-tooltip-opacity);
}

.tooltip .tooltip-arrow {
    display: block;
    width: var(--bs-tooltip-arrow-width);
    height: var(--bs-tooltip-arrow-height);
}

.tooltip .tooltip-arrow::before {
    position: absolute;
    content: "";
    border-color: transparent;
    border-style: solid;

}

.bs-tooltip-top .tooltip-arrow, .bs-tooltip-auto[data-popper-placement^=top] .tooltip-arrow {
    bottom: 0;
}

.bs-tooltip-top .tooltip-arrow::before, .bs-tooltip-auto[data-popper-placement^=top] .tooltip-arrow::before {
    top: -1px;
    border-width: var(--bs-tooltip-arrow-height) calc(var(--bs-tooltip-arrow-width) * 0.5) 0;
    border-top-color: var(--bs-tooltip-bg);
}

/* rtl:begin:ignore */
.bs-tooltip-end .tooltip-arrow, .bs-tooltip-auto[data-popper-placement^=right] .tooltip-arrow {
    left: 0;
    width: var(--bs-tooltip-arrow-height);
    height: var(--bs-tooltip-arrow-width);
}

.bs-tooltip-end .tooltip-arrow::before, .bs-tooltip-auto[data-popper-placement^=right] .tooltip-arrow::before {
    right: -1px;
    border-width: calc(var(--bs-tooltip-arrow-width) * 0.5) var(--bs-tooltip-arrow-height) calc(var(--bs-tooltip-arrow-width) * 0.5) 0;
    border-right-color: var(--bs-tooltip-bg);
}

/* rtl:end:ignore */
.bs-tooltip-bottom .tooltip-arrow, .bs-tooltip-auto[data-popper-placement^=bottom] .tooltip-arrow {
    top: 0;
}

.bs-tooltip-bottom .tooltip-arrow::before, .bs-tooltip-auto[data-popper-placement^=bottom] .tooltip-arrow::before {
    bottom: -1px;
    border-width: 0 calc(var(--bs-tooltip-arrow-width) * 0.5) var(--bs-tooltip-arrow-height);
    border-bottom-color: var(--bs-tooltip-bg);
}

/* rtl:begin:ignore */
.bs-tooltip-start .tooltip-arrow, .bs-tooltip-auto[data-popper-placement^=left] .tooltip-arrow {
    right: 0;
    width: var(--bs-tooltip-arrow-height);
    height: var(--bs-tooltip-arrow-width);
}

.bs-tooltip-start .tooltip-arrow::before, .bs-tooltip-auto[data-popper-placement^=left] .tooltip-arrow::before {
    left: -1px;
    border-width: calc(var(--bs-tooltip-arrow-width) * 0.5) 0 calc(var(--bs-tooltip-arrow-width) * 0.5) var(--bs-tooltip-arrow-height);
    border-left-color: var(--bs-tooltip-bg);
}

/* rtl:end:ignore */
.tooltip-inner {
    max-width: var(--bs-tooltip-max-width);
    padding: var(--bs-tooltip-padding-y) var(--bs-tooltip-padding-x);
    color: var(--bs-tooltip-color);
    text-align: center;
    background-color: var(--bs-tooltip-bg);
    border-radius: var(--bs-tooltip-border-radius);
    box-shadow: 0 -0.3rem 3rem rgba(0, 0, 0, .2) !important;
}

.fade-delete {
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 0.5s ease, transform 0.5s ease;
}


.rate .form-check {
    position: relative;
    padding-left: 0;
}

.rate .form-check input[type="radio"] {
    position: absolute;
    top: -9999px;
}

/** rate */

.rate .form-check label {
    width: 1em;
    overflow: hidden;
    white-space: nowrap;
    cursor: pointer;
    font-size: 30px;
    color: #ccc;
    display: block;
    transition: color 0.2s;
}

.rate .form-check label:before {
    content: '★ ';
}

.rate .form-check label.active {
    color: #ffc700;
}

.rate .form-check label.hovered {
    color: #deb217;
}

.d-blink {
    -webkit-animation: d-blink 1s linear infinite;
    animation: d-blink 1s linear infinite;
}

@-webkit-keyframes d-blink {
    0% {
        opacity: 1;
    }
    50% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

@keyframes d-blink {
    0% {
        opacity: 1;
    }
    50% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

