.calendar-v2-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    background: var(--fw-white-050);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 0px 10px;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.calendar-v2-content-wrapper {
    flex: 1;
    overflow-y: auto;
    position: relative;
    height: calc(100% - 100px);
    padding: 0px 0px 60px 0px;
    margin: 15px 0px 0px 0px;
    -ms-overflow-style: none;
    scrollbar-width: none;
}


.calendar-v2-content {
    position: relative;
    min-height: 100%;
    width: 100%;
}

.calendar-v2-header {
    display: flex;
    flex-direction: column;
    background: var(--fw-white-050);
    z-index: 10;
    padding: 0px 0px;
    border-bottom: 1px solid var(--fw-white-200);
    flex-shrink: 0;
}

.calendar-v2-header-top-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 7px 0px;
    gap: 8px;
}

.calendar-v2-header-bottom-row {
    display: flex;
    width: 100%;
    border-top: 1px solid var(--fw-white-200);
}



.calendar-v2-category-tags {
    width: 100%;
    overflow: hidden;
}




.calendar-v2-cell {
    min-height: 60px;
    padding: 0px  5px 5px 5px;
    background: var(--fw-white-050);
    overflow: hidden;
    width: 100%;
    box-sizing: border-box;
}

.calendar-v2-cell.disabled {
    background: var(--fw-white-100);
    color: var(--fw-white-200);
}




.calendar-v2-loading {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 200px;
    font-size: 1.2em;
    color: #666;
}

.calendar-v2-loading::after {
    content: "Loading...";
}



.calendar-v2-nav-button {
    font-weight: bold;
    cursor: pointer;
    background: var(--fw-white-100);
    padding: 8px 12px;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.calendar-v2-nav-button:hover {
    background-color: var(--fw-white-200);
}

.calendar-v2-month-year {
    font-size: 0.8rem;
    line-height: 0.9rem;
    font-weight: 500;
    font-weight: bold;
    color: var(--fw-black-450);
}

.calendar-v2-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
    font-weight: 500;
    margin-bottom: 10px;
    position: sticky;
    top: 60px;
    background: #fff;
    z-index: 5;
    padding-top: 5px;
    padding-bottom: 5px;
    border-bottom: 1px solid #eee;
}


.calendar-v2-weekday {
    padding: 10px;
    color: #666;
}

.calendar-v2-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 1px;
    width: 100%;
    table-layout: fixed;
    background: var(--fw-white-200);
}

.calendar-v2-grid .calendar-v2-day-header {
    position: sticky;
    top: 0;
    background: var(--fw-white-050);
    z-index: 5;
}

.calendar-v2-day {
    display: grid;
    grid-template-columns: 60px 1fr;
    gap: 1px;
    background: var(--fw-white-050);
    position: relative;
    width: 100%;
    margin: 10px 0px;
}

.calendar-v2-day.empty {
    background-color: #f9f9f9;
}

.calendar-v2-date-number {
    text-align: center;
    font-weight: bold;
    color: var(--fw-black-350);
    padding: 4px 0px 5px 0px;
    font-size: 0.9rem;

}

.calendar-v2-date-number:hover {
    background-color: var(--fw-white-050);
    color: var(--fw-black-300);
}

.calendar-v2-item {
    border-radius: 2px;
    cursor: pointer;
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
    min-width: 0;
}

.calendar-v2-more-items {
    font-size: 0.65rem;
    background-color: var(--fw-white-100);
    border: 1px solid var(--fw-white-100);
    color: var(--primary-300);
    text-align: center;
    padding: 4px 2px;
    border-radius: 3px;
    cursor: pointer;
    font-weight: bold;
    margin: 5px 0px 0px 0px;
}

.calendar-v2-more-items:hover {
    background-color: var(--primary-100);
    border: 1px solid var(--primary-100);
    color: var(--primary-400);
}




.calendar-v2-timeline {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.calendar-v2-timeline-day {
    border: 1px solid #eee;
    border-radius: 4px;
    padding: 10px;
}

.calendar-v2-timeline-date {
    font-weight: 500;
    margin-bottom: 10px;
}

.calendar-v2-timeline-items {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.calendar-v2-timeline-item {
    background-color: #e3f2fd;
    padding: 8px 12px;
    border-radius: 4px;
    cursor: pointer;
}

.calendar-v2-timeline-item:hover {
    background-color: var(--primary-100);
    border: 1px solid var(--primary-200);

}

.calendar-v2-view-toggle {
    display: flex;
    gap: 10px;
}

.calendar-v2-view-btn {
    padding: 8px 16px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: none;
    cursor: pointer;
    transition: all 0.2s;
}

.calendar-v2-view-btn.active {
    background: #e3f2fd;
    border-color: #bbdefb;
}

.calendar-v2-week {
    display: flex;
    flex-direction: column;
    background: var(--fw-white-050);
    border-left: 1px solid var(--fw-white-200);
    border-right: 1px solid var(--fw-white-200);
    border-bottom: 1px solid var(--fw-white-200);
    min-height: 1440px;
    position: relative;
}

.calendar-v2-week-headers {
    display: grid;
    grid-template-columns: 60px repeat(7, 1fr);
    position: sticky;
    top: 0;
    background: var(--fw-white-050);
    z-index: 10;
}



.calendar-v2-time-column {
    background: var(--fw-white-050);
    padding: 0px 0px;
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
    z-index: 4;
    margin-top: -10px;
}

.calendar-v2-time-marker {
    height: 60px;
    display: flex;
    align-items: flex-start;
    padding-top: 0px;
    font-size: 0.8em;
    color: var(--fw-black-400);
    justify-content: center;
    position: relative;
    box-sizing: border-box;
}





.calendar-v2-time-marker::after {
    content: '';
    position: absolute;
    left: 100%;
    height: 1px;
    background: var(--fw-white-200);
    bottom: 0;
}

.calendar-v2-day-column {
    background: var(--fw-white-050);
    position: relative;
    height: 100%;
    overflow: hidden;
    border-right: 1px solid var(--fw-white-200);
    overflow: visible !important;
}

.calendar-v2-day-column:last-child {
    border-right: none;
}

.calendar-v2-day-header {
    padding: 12px 10px;
    text-transform: uppercase;
    text-align: center;
    font-weight: 500;
    font-size: 0.8rem;
    font-weight: bold;
    /* background: #fff; */
    color: var(--fw-black-450);
    border-bottom: 1px solid var(--fw-white-200);
}

.calendar-v2-week-grid-container {
    display: grid;
    grid-template-columns: 60px repeat(7, 1fr);
    overflow: visible;
    margin: 15px 0px;
}

.calendar-v2-time-header {
    position: sticky;
    top: 0;
    background: #fff;
    z-index: 5;
    height: 43px;
    border-bottom: 1px solid var(--fw-white-200);
}

.calendar-v2-day-grid {
    position: relative;
    height: 100%;
    overflow: visible !important;
}

.calendar-v2-hour-cell {
    height: 60px;
    position: relative;
    box-sizing: border-box;
}



.calendar-v2-mobile-hour {
    margin-bottom: 10px;
    padding-bottom: 5px;
    width: 100%;
}


.calendar-v2-mobile-hour-header {
    background-color: var(--fw-white-200);
    padding: 4px 12px;
    border-radius: 6px;
    font-weight: 500;
    font-size: 0.9em;
    color: var(--fw-black-400);
    font-weight: bold;
    text-transform: uppercase;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    width: 100%;
}





.calendar-v2-hour-line {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    border-top: 1px dotted var(--fw-white-200);
}

.calendar-v2-half-hour-marker {
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    border-top: 1px dotted var(--fw-white-200);
}


.calendar-v2-mobile-day {
    margin-bottom: 5px;
}


.calendar-v2-mobile-day-header {
    background-color: var(--fw-white-100);
    color: var(--fw-black-300);
    padding: 4px 12px;
    border-radius: 4px;
    font-weight: bold;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3px;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.05), 0 1px 2px -1px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.calendar-v2-mobile-day-header:hover {
    background-color: var(--fw-white-150);
}

.calendar-v2-mobile-day-header:after {
    content: '\f054';
    font-family: 'Font Awesome 6 Pro';
    font-weight: 300;
    font-size: 0.8em;
    color: var(--fw-black-400);
}


.calendar-v2-mobile-items {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: start;
    gap: 2px;
    font-size: 0.85rem;
    padding: 10px 0px;
    width: 100%;
}

.calendar-v2-mobile-item {
    padding: 2px 10px;
    font-weight: 500;
    font-size: 1em;
    color: #333;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    box-sizing: border-box;
}




/* //////////////////////////////////////////////////////// */

.calendar-v2-record-pill {
    background-color: var(--fw-white-050);
    border: 1px solid var(--fw-white-200);
    color: var(--fw-black-450);
    padding: 2px 6px;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    min-width: 0;
    box-sizing: border-box;
    width: 100%;
    font-size: 0.9rem;
    /* font-weight: bold; */
    box-shadow: 0 1px 1px 0 rgba(0, 0, 0, 0.1), 0 1px 1px -1px rgba(0, 0, 0, 0.1);
    border-radius: 3px;
}

.calendar-v2-record-pill:hover {
    background-color: var(--fw-white-050);
    border: 1px solid var(--primary-300);
    color: var(--fw-black-300);
    cursor: pointer;
}



.calendar-v2-item {
    cursor: pointer;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
    min-width: 0;
}

.calendar-v2-record-pill:before {
    content: '\f111';
    font-family: 'Font Awesome 6 Pro';
    font-weight: 900;
    color: var(--primary-300);
    background-color: var(--primary-300);
    border-radius: 50%;
    margin-right: 4px;
    font-size: 0.35em;
    position: relative;
    width: 1em;
    height: 1em;
    display: inline-block;
    line-height: 1;
    flex-shrink: 0;
}

/* ///////////////////////// */

.calendar-v2-week-item,
.calendar-v2-day-item {
    position: absolute;
    height: 28px;
    border-radius: 3px;
    cursor: pointer;
    z-index: 5;
    box-sizing: border-box;
    min-width: 0;
    overflow: hidden;
}


.calendar-v2-item-title {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
    flex: 1;
}


/* //////////////////////////////////////////////////////// */



.calendar-v2-day-display {
    font-size: 0.8rem;
    line-height: 1.0rem;
    font-weight: 500;
    color: #666;
    display: none;
}



.calendar-v2-mobile-list {
    display: flex;
    flex-direction: column;
    width: 100%;
    margin: 10px 0px;
    padding: 0px 0px 45px 0px;
    gap: 5px;
}




.calendar-v2-current-time-line {
    position: absolute;
    left: 0;
    right: 0;
    height: 2px;
    background-color: rgba(255, 0, 0, 0.6);
    z-index: 6;
}





@media (min-width: 768px) {

    .calendar-v2-day {
        display: grid;
    }

    .calendar-v2-container {
        max-width: 100%;
    }

    .calendar-v2-month-year {
        display: flex;
        justify-content: start;
        align-items: center;
        line-height: 1.05rem;
        font-size: 1rem;
        text-wrap-mode: nowrap;
    }

    .calendar-v2-day {
        min-height: 80px;
    }

    .calendar-v2-week {
        grid-template-columns: 40px repeat(7, 1fr);
    }

    .calendar-v2-time-marker {
        font-size: 0.7em;
    }

    .calendar-v2-day-header {
        /* font-size: 0.9em; */
        padding: 10px 5px;
    }

    .calendar-v2-timeline {
        padding: 0 10px;
    }


    .calendar-v2-day-display {
        font-size: 0.9rem;
    }

    .calendar-v2-timeline-day {
        margin-bottom: 10px;
    }

    .calendar-v2-timeline-item {
        padding: 6px 10px;
        font-size: 0.9em;
    }

    .calendar-v2-view-toggle {
        flex-wrap: wrap;
    }

    .calendar-v2-view-btn {
        padding: 6px 12px;
        font-size: 0.9em;
        flex: 1;
        min-width: 80px;
        text-align: center;
    }

}

@media (max-width: 767px) {
    #funcelv2-button-mobile_toggle {
        display: none;
    }
}