@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--light-switch.css";*/
@import "calendar--widget.css";
@import "calendar--month-settings.css";
@import "legend.css";
@import "calendar--full_events.css";
@import "calendar--common.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;
}

/* begin:Calendar widget --------------------------*/
.be-home__w-calendar {
    position: fixed;
    display: flex;
    flex-direction: column;
    grid-gap: 5px 0;
    cursor: pointer;
    z-index: 100;
    width: 200px;
}

body:not(.home) .be-home__w-calendar {
    top: 145px;
}

/* 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__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;
}


/*----------------------------------------------------*/
@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;
    }

    .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;
    }
}

@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: 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;
    }
}

/* end:Calendar widget */
