@import "vars.css";
@import "legend.css";
@import "calendar--bubbles.css";
@import "calendar-event.css";
@import "calendar--main.css";
@import "calendar--full-year.css";
@import "calendar--switch-theme.css";
@import "calendar--widget.css";
@import "calendar--month-settings.css";
@import "legend.css";
@import "calendar--full_events.css";
@import "calendar--task_add_edit.css";

/*----------------- defaults ---------------------*/
ul {
    padding: 0;
    margin: 0;
    list-style: none;
}
/** {
    outline: 1px solid rgba(255, 0, 0, 0.2);
}*/

body {
    scrollbar-gutter: stable;
}

html.be-home__calendar-open,
body.be-home__calendar-open {
    overflow: hidden;
}

/* Close btn */
.calendar__close-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background-position: center;
    background-repeat: no-repeat;
    background-size: 18px;

    padding: 0;
    transition: background ease .3s;
    z-index: 1;
}

/*Не используется (06.03.26 Tat Arb)*/
#submit_event {
    border: none;
    margin-top: 10px;
}

.vanilla-calendar-day__btn.vanilla-calendar-day__btn_disabled + .vanilla-calendar-day__popup {
    display: none !important;
}

@keyframes loader-rotation {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.be-home__daily-events-wrapper[data-is-processing] .be-home__daily-events-inner,
.be-home__outdated-events-wrapper[data-is-processing] .be-home__outdated-events-inner,
.be-home__holidays-events-wrapper[data-is-processing] .be-home__holidays-events-inner {
    opacity: .75;
    pointer-events: none;
    background-color: #f2f5f9;
    filter: blur(3px);
    padding-top: 10px;
}

.be-home__daily-events-title,
.be-home__outdated-events-title,
.be-home__holidays-events-title {
    font-size: 14px;
    line-height: 1;
    color: #6c757d;
    margin-left: 20px;
}

.be-home__outdated-events-title {
    display: flex;
    align-items: center;
    grid-gap: 10px;
}

.be-home__daily-events-list,
.be-home__outdated-events-list,
.be-home__holidays-events-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    grid-row-gap: 10px;
    font-size: 14px;
    line-height: 1.45;
    color: #6c757d;
    padding: 0;
    margin: 0;
}

.be-home__daily-events-item,
.be-home__outdated-events-item,
.be-home__holidays-events-item {
    position: relative;
    display: flex;
    align-items: center;
    grid-gap: 20px;
    border-radius: 10px;
    border: 2px solid #eaeef2;
    padding: 15px 20px;
}

.be-home__holidays-events-item-button a {
    white-space: nowrap;
}

.be-home__daily-events-item:before {
    content: '';
    position: absolute;
    left: -30px;
    top: 50%;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #4CAF50;
    transform: translateY(-50%);
}

.be-home__outdated-events-item {
    border: 2px solid rgb(232 0 22 / 16%);
    background-color: rgb(220 53 69 / 3%);
}

.be-home__daily-events-item-time {
    flex-shrink: 0;
    min-width: 50px;
}

.be-home__outdated-events-item-time {
    min-width: 120px;
}

.be-home__daily-events-item-title,
.be-home__outdated-events-item-title {
    flex-grow: 1;
    hyphens: auto;
    word-break: break-word;
    padding-left: 20px;
    border-left: 2px solid #eaeef2;
}

.be-home__holidays-events-item-title {
    flex-grow: 1;
}

.be-home__daily-events-item-buttons,
.be-home__outdated-events-item-buttons,
.be-home__holidays-events-item-button {
    display: flex;
    align-items: center;
    grid-gap: 10px;
}

.be-home__daily-events-item-btn,
.be-home__outdated-events-item-btn,
.be-home__holidays-events-item-button a {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    background-color: #f5f5f5;
    color: var(--c-black);
    border-radius: 8px;
    border: none;
    padding: 5px 10px;
    transition: all ease .3s;
    transition-property: background-color, color;
}

.be-home__daily-events-item-btn:hover,
.be-home__outdated-events-item-btn:hover,
.be-home__holidays-events-item-button a:hover {
    color: var(--c-black);
    background-color: #eae9e9;
}

.be-home__holidays-events-item-button a,
.be-home__holidays-events-item-button a:focus {
    text-decoration: none;
    outline: none;
    color: initial;
}

.vanilla-calendar-time__range input::-webkit-slider-thumb {
    margin-top: -12px;
    height: 24px;
    width: 20px;
}

.be-home__w-calendar-event-cta {
    display: flex;
    justify-content: center;
}

.be-home__w-calendar-event .be-home__w-calendar-event-cta-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0 20px;
    border-radius: 6px;
    text-decoration: none;
    background-color: #263965;
    color: #FFFFFF;
    width: max-content;
}

/*----------------------------------------------------*/
@media (max-width: 1096px) {
    .be-home__w-calendar {
        position: static;
        display: flex;
        flex-direction: column;
        grid-gap: 5px 0;
        cursor: pointer;
        z-index: 100;
        width: 100%;
        max-width: 600px;
        margin-inline: auto;
    }

    .be-home__widgets {
        width: 100%;
        order: 1;
        margin-inline: auto;
    }

    /* events-list */
    .be-home__event-list .line-separated--gray {
        display: block;
    }
    .be-home__event-list {
        order: -1;
    }

    .line-separated--gray.be-home__event-list-separator {
        display: none;
    }

    .be-home__event-list:has(
        .be-home__daily-events-wrapper[data-state="show"],
        .be-home__outdated-events-wrapper[data-state="show"],
        .be-home__holidays-events-wrapper[data-state="show"]
    ) .line-separated--gray.be-home__event-list-separator {
        display: block;
    }

    .be-home__event-list {
        max-width: unset;
        margin-inline: unset;
        padding-inline: 20px;
    }
    .be-home__outdated-events-title {
        justify-content: space-between;
    }
    .be-home__outdated-events-title,
    .be-home__daily-events-title {
        font-size: 12px;
        font-weight: 700;
        line-height: 18px;
        color: #334155;
    }

    .be-home__outdated-events-list,
    .be-home__daily-events-list,
    .be-home__holidays-events-list {
        display: grid!important;
        grid-template-columns: repeat(2, 1fr);
        column-gap: 10px!important;
    }

    .be-home__daily-events-list .be-home__w-calendar-event,
    .be-home__outdated-events-list .be-home__w-calendar-event,
    .be-home__holidays-events-list .be-home__w-calendar-event {
        background-color: #FFFFFF;
        color: var(--event-card);
        border: none;
        box-shadow: 0 4px 4px 0 rgba(0, 0, 0, 0.25);
    }

    .be-home__front-events-date-marker {
        font-size: 14px;
        line-height: 18px;
        font-weight: 600;
        color: #6c757d;
    }

    .be-home__holidays-events-title {
        display: none;
    }

    .be-home__daily-events-item-title,
    .be-home__outdated-events-item-title,
    .be-home__holidays-events-item-title {
        font-size: 12px;
        border: none;
        padding: 0;
    }

    .be-home__daily-events-title,
    .be-home__outdated-events-title,
    .be-home__holidays-events-title {
        margin-left: 0;
        margin-top: 12px;
        font-size: 12px;
        font-weight: 600;
        line-height: 18px;
    }
    /*Кнопка в карточке*/
    .be-home__w-calendar-event-cta {
        display: flex;
        justify-content: center;
        margin-top: 12px;
    }
    .be-home__w-calendar-event-cta-link {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-height: 40px;
        padding: 0 20px;
        border-radius: 6px;
        text-decoration: none;
        background-color: #263965;
        color: #FFFFFF;
    }
}

@media (max-width: 768px) {
    .be-home__daily-events-item:before {
        left: 5px;
        top: 12px;
    }

    .be-home__full-calendar-ad-mobile {
        display: block;
    }
}

@media (max-width: 650px) {
    .be-home__outdated-events-list,
    .be-home__daily-events-list,
    .be-home__holidays-events-list {
        /*display: grid!important;*/
        grid-template-columns: 1fr;
        /*column-gap: 10px!important;*/
    }
}

@media (max-width: 576px) {
    .be-home__daily-events-item,
    .be-home__outdated-events-item {
        flex-direction: column;
        padding: 10px;
    }

    /*.be-home__daily-events-title,
    .be-home__outdated-events-title {
        font-size: 12px;
    }*/

    .be-home__daily-events-item-title,
    .be-home__outdated-events-item-title,
    .be-home__holidays-events-item-title {
        border: none;
        padding: 0;
    }

    .be-home__daily-events-item-buttons,
    .be-home__outdated-events-item-buttons,
    .be-home__holidays-events-item-button {
        align-self: flex-end;
    }
}

.be-home__w-calendar-event .be-home__w-calendar-event-cta-link {
    min-height: 24px;
    font-size: 11px;
}

/* end:Calendar widget */
