/* =========================================================
    CALENDAR - MERGED SELECTORS (TEMP DRY STEP)
    Goal: keep 1 rule-set even when selectors differ
========================================================= */

/* ---------------------------
    PROGRAMS CALENDAR
--------------------------- */
#v-pills-library-programs .add-workout-to-program-calendar-day-btn-wrapper {
    display: none;
}

#v-pills-library-programs
    .calendar-column:hover
    .add-workout-to-program-calendar-day-btn-wrapper {
    display: flex !important;
}

#v-pills-library-programs .calendar-day-body {
    flex-grow: 1;
    overflow: auto;
}

#v-pills-library-programs .calendar-row {
    display: flex;
    height: 100%;
}

#v-pills-library-programs .calendar-column {
    /* 0.5rem === gap-2 class */
    width: calc((100% - 0.5rem * 6) / 7);
    flex-shrink: 1;
    display: flex;
    flex-direction: column;
}

#v-pills-library-programs .view-programs {
    cursor: pointer;
}

.mangofit-week-switcher {
    align-items: center;
    display: inline-flex;
    gap: 0.35rem;
    min-width: 0;
    white-space: nowrap;
}

.mangofit-week-switcher-label {
    align-items: center;
    color: var(--bs-body-color);
    display: inline-flex;
    gap: 0.45rem;
    min-height: 2rem;
}

.mangofit-week-switcher-label i {
    color: inherit;
}

.mangofit-week-switcher-arrow {
    --bs-btn-active-bg: transparent;
    --bs-btn-active-border-color: transparent;
    --bs-btn-bg: transparent;
    --bs-btn-border-color: transparent;
    --bs-btn-border-width: 0;
    --bs-btn-focus-box-shadow: none;
    --bs-btn-hover-bg: transparent;
    --bs-btn-hover-border-color: transparent;
    --bs-btn-padding-x: 0;
    --bs-btn-padding-y: 0;

    align-items: center;
    background: transparent !important;
    border: 0 !important;
    border-radius: 0;
    box-shadow: none !important;
    color: var(--bs-body-color);
    display: inline-flex;
    flex: 0 0 auto;
    font-size: 1.08rem;
    font-weight: 700;
    justify-content: center;
    line-height: 1;
    min-height: 2rem;
    min-width: 1.55rem;
    padding: 0;
}

.mangofit-week-switcher-arrow:hover,
.mangofit-week-switcher-arrow:focus,
.mangofit-week-switcher-arrow:focus-visible,
.mangofit-week-switcher-arrow:active {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    color: var(--mangofit-color);
}

.mangofit-week-switcher-arrow:disabled {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    color: rgba(var(--contrast-theme-color-rgb), 0.18);
    opacity: 1;
}

#v-pills-library-programs .text-whitespace {
    white-space: break-spaces;
}

#v-pills-library-programs .exercise-block {
    padding: 10px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    background-color: #ffffff;
    margin-bottom: 10px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

#v-pills-library-programs .modal-edit-workout-body {
    max-height: 70vh; /* responsive height */
    overflow-y: auto;
    padding-right: 15px;
}

#v-pills-library-programs .hoverable-item:hover .hover-label {
    display: none !important;
}

#v-pills-library-programs .hoverable-item:hover .hover-buttons {
    display: block !important;
}

#v-pills-library-programs .hover-buttons {
    position: absolute;
    width: 100%;
    top: 0;
    left: 0;
}

#v-pills-library-programs .hoverable-container:hover .hover-label {
    visibility: hidden;
}

#v-pills-library-programs
    .hoverable-container:hover
    .hoverable-container-hover {
    display: block !important;
}

#v-pills-library-programs .program-calendar-controls {
    min-width: 0;
}

#v-pills-library-programs .program-calendar-week-nav {
    flex-shrink: 0;
    white-space: nowrap;
}

#v-pills-library-programs .program-calendar-actions {
    min-width: 0;
}

#v-pills-library-programs .paste-program-week-container {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    transform: translateY(-50%);
    pointer-events: none;
    gap: 0.625rem;
}

#v-pills-library-programs .btn-paste-program-week,
#v-pills-library-programs .cancel-program-week-copy-mode {
    pointer-events: auto;
    font-weight: 600;
}

/* ---------------------------
    TRAINING CALENDAR (PROFILE) + ASSISTED (COMMON BASE)
    Note: split into base + per-container overrides where needed
--------------------------- */

/* Show menu toggle on hover */
#v-pills-profile-section-training
    .training-calendar-day:hover
    .training-menu-toggle {
    visibility: visible;
}

/* Day base (shared props) */
#v-pills-profile-section-training .training-calendar-day,
#assisted-user-training-calendar .training-calendar-day {
    border: var(--bs-border-width) var(--bs-border-style) var(--bs-border-color);
    padding: 5px;
    --bs-bg-opacity: 1;
    background-color: rgba(
        var(--bs-secondary-bg-rgb),
        var(--bs-bg-opacity)
    ) !important;
    margin: 5px;
    border-radius: 8px;
    position: relative;
    text-align: left;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

/* Day container-specific */
#v-pills-profile-section-training .training-calendar-day {
    height: auto;
    overflow: hidden;
}

#assisted-user-training-calendar .training-calendar-day {
    min-height: 100px;
}

/* Date */
#v-pills-profile-section-training .training-calendar-date,
#assisted-user-training-calendar .training-calendar-date {
    font-weight: 600;
}

/* Day label base */
#v-pills-profile-section-training .training-calendar-day-label,
#assisted-user-training-calendar .training-calendar-day-label {
    text-align: left;
    font-weight: 600;
    text-transform: uppercase;
    margin: 5px;
}

/* Day label container-specific */
#v-pills-profile-section-training .training-calendar-day-label {
    width: calc((100% - 0.5rem * 6) / 7);
}

/* Today highlight */
#v-pills-profile-section-training
    .training-calendar-today
    .training-calendar-date,
#v-pills-profile-section-training
    .training-calendar-day-box:has(.training-calendar-today)
    .training-calendar-day-label,
#v-pills-profile-section-training
    .training-calendar-day-label-row
    .training-calendar-today,
#assisted-user-training-calendar
    .training-calendar-today
    .training-calendar-date,
#assisted-user-training-calendar
    .training-calendar-day-box:has(.training-calendar-today)
    .training-calendar-day-label {
    color: var(--mangofit-color) !important;
}

/* Day box wrapper */
#v-pills-profile-section-training .training-calendar-day-box-wrapper,
#assisted-user-training-calendar .training-calendar-day-box-wrapper {
    display: flex;
    flex-wrap: nowrap;
}

/* Day box base */
#v-pills-profile-section-training .training-calendar-day-box,
#assisted-user-training-calendar .training-calendar-day-box {
    display: flex;
    flex-direction: column;
    width: calc((100% - 0.5rem * 6) / 7);
}

/* Day box container-specific */
#v-pills-profile-section-training .training-calendar-day-box {
    flex-grow: 1;
}

#assisted-user-training-calendar .training-calendar-day-box {
    flex: 0 0 14.28%;
}

/* Date wrapper */
#v-pills-profile-section-training .training-calendar-date-wrapper,
#assisted-user-training-calendar .training-calendar-date-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Workout content */
#v-pills-profile-section-training .training-calendar-workout-content,
#assisted-user-training-calendar .training-calendar-workout-content {
    overflow-y: auto;
    overflow-x: hidden;
    flex-grow: 1;
    padding-right: 1px;
}

/* Weekdays hidden */
#v-pills-profile-section-training .weekdays,
#assisted-user-training-calendar .weekdays {
    display: none;
}

/* Weekday base */
#v-pills-profile-section-training .trainingcalendarweekday,
#assisted-user-training-calendar .trainingcalendarweekday {
    cursor: pointer;
    font-size: 14px;
    line-height: 1.2;
}

/* Weekday active */
#v-pills-profile-section-training .trainingcalendarweekday.active,
#assisted-user-training-calendar .trainingcalendarweekday.active {
    color: var(--mangofit-color);
    font-weight: bold;
}

/* Weekday hover */
#v-pills-profile-section-training .trainingcalendarweekday:hover,
#assisted-user-training-calendar .trainingcalendarweekday:hover {
    color: var(--mangofit-color);
}

/* Shared calendar toolbar */
#v-pills-profile-section-training .calendar-toolbar,
#assisted-user-training-calendar .calendar-toolbar {
    display: grid;
    grid-template-columns: max-content minmax(0, 1fr) max-content;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    padding: 0.25rem 0 0.75rem;
}

#v-pills-profile-section-training .calendar-toolbar-primary,
#assisted-user-training-calendar .calendar-toolbar-primary {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    min-width: 0;
}

#v-pills-profile-section-training .calendar-nav-group,
#assisted-user-training-calendar .calendar-nav-group,
#v-pills-profile-section-training .calendar-view-toggle,
#assisted-user-training-calendar .calendar-view-toggle,
#v-pills-profile-section-training .calendar-date-jump,
#assisted-user-training-calendar .calendar-date-jump {
    border: 1px solid rgba(var(--contrast-theme-color-rgb), 0.13);
    background: rgba(var(--current-theme-color-rgb), 0.9);
    box-shadow: 0 8px 20px rgba(var(--contrast-theme-color-rgb), 0.06);
}

.week-view-toggle {
    border: 1px solid rgba(var(--contrast-theme-color-rgb), 0.13);
    background: rgba(var(--current-theme-color-rgb), 0.9);
    box-shadow: 0 8px 20px rgba(var(--contrast-theme-color-rgb), 0.06);
}

#v-pills-profile-section-training .calendar-nav-group,
#assisted-user-training-calendar .calendar-nav-group,
#v-pills-profile-section-training .calendar-view-toggle,
#assisted-user-training-calendar .calendar-view-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
    padding: 0.2rem;
    border-radius: 8px;
}

.week-view-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
    padding: 0.2rem;
    border-radius: 8px;
}

#v-pills-profile-section-training .calendar-nav-btn,
#assisted-user-training-calendar .calendar-nav-btn,
#v-pills-profile-section-training .calendar-view-option,
#assisted-user-training-calendar .calendar-view-option {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    min-height: 32px;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: rgba(var(--contrast-theme-color-rgb), 0.82);
    font-size: 0.82rem;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
    transition: color 0.18s ease, background-color 0.18s ease, box-shadow 0.18s ease;
}

.week-view-toggle-option {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    min-height: 32px;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: rgba(var(--contrast-theme-color-rgb), 0.82);
    font-size: 0.76rem;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
    padding: 0 0.75rem;
    transition: color 0.18s ease, background-color 0.18s ease, box-shadow 0.18s ease;
}

#v-pills-profile-section-training .calendar-nav-btn {
    padding: 0 0.7rem;
}

#assisted-user-training-calendar .calendar-nav-btn {
    padding: 0 0.7rem;
}

#v-pills-profile-section-training .calendar-view-option,
#assisted-user-training-calendar .calendar-view-option {
    padding: 0 0.75rem;
    font-size: 0.76rem;
}

#v-pills-profile-section-training .calendar-nav-btn:hover,
#assisted-user-training-calendar .calendar-nav-btn:hover,
#v-pills-profile-section-training .calendar-view-option:hover,
#assisted-user-training-calendar .calendar-view-option:hover {
    background: rgba(var(--mangofit-color-rgb), 0.08);
    color: var(--mangofit-color);
}

.week-view-toggle-option:hover:not(:disabled) {
    background: rgba(var(--mangofit-color-rgb), 0.08);
    color: var(--mangofit-color);
}

#v-pills-profile-section-training .calendar-today-btn,
#assisted-user-training-calendar .calendar-today-btn {
    color: var(--mangofit-color);
}

#v-pills-profile-section-training .calendar-view-option.active,
#assisted-user-training-calendar .calendar-view-option.active {
    background: var(--mangofit-color);
    color: #fff;
    box-shadow: 0 5px 12px rgba(var(--mangofit-color-rgb), 0.24);
}

.week-view-toggle-option.active {
    background: var(--mangofit-color);
    color: #fff;
    box-shadow: 0 5px 12px rgba(var(--mangofit-color-rgb), 0.24);
}

.week-view-toggle-option:disabled,
.week-view-toggle-option.disabled {
    opacity: 0.45;
    pointer-events: none;
    box-shadow: none;
}

#v-pills-profile-section-training .calendar-week-range,
#assisted-user-training-calendar .calendar-week-range {
    justify-self: center;
    margin: 0;
    font-size: clamp(1rem, 1.25vw, 1.28rem);
    line-height: 1.1;
    letter-spacing: 0;
    white-space: nowrap;
}

#v-pills-profile-section-training .calendar-date-jump,
#assisted-user-training-calendar .calendar-date-jump {
    justify-self: end;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    width: min(100%, 210px);
    height: 36px;
    padding: 0 0.7rem;
    border-radius: 8px;
    color: rgba(var(--contrast-theme-color-rgb), 0.58);
}

#v-pills-profile-section-training .calendar-date-input,
#assisted-user-training-calendar .calendar-date-input {
    width: 100%;
    min-width: 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: rgba(var(--contrast-theme-color-rgb), 0.82);
    font-size: 0.84rem;
    font-weight: 650;
}

#v-pills-profile-section-training .calendar-date-input:focus,
#assisted-user-training-calendar .calendar-date-input:focus {
    outline: none;
}

#v-pills-profile-section-training .calendar-date-jump:focus-within,
#assisted-user-training-calendar .calendar-date-jump:focus-within {
    border-color: rgba(var(--mangofit-color-rgb), 0.38);
    box-shadow: 0 0 0 3px rgba(var(--mangofit-color-rgb), 0.1);
}

#v-pills-profile-section-training #trainingWeekdayHeaders,
#assisted-user-training-calendar #trainingWeekdayHeaders {
    border: 1px solid rgba(var(--contrast-theme-color-rgb), 0.08) !important;
    border-radius: 8px;
    background: rgba(var(--current-theme-color-rgb), 0.96);
    box-shadow: 0 8px 20px rgba(var(--contrast-theme-color-rgb), 0.06) !important;
}

/* Profile-only menu */
#v-pills-profile-section-training .training-calendar-menu {
    position: absolute;
    top: 30px;
    right: 10px;
    background: white;
    border: var(--bs-border-width) var(--bs-border-style) var(--bs-border-color);
    border-radius: 5px;
    z-index: 100;
    width: 150px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    display: none;
    flex-direction: column;
}

#v-pills-profile-section-training .training-calendar-menu a {
    padding: 8px 12px;
    text-decoration: none;
    color: #333;
    font-size: 14px;
    display: block;
}

#v-pills-profile-section-training .training-calendar-menu a:hover {
    background-color: #f0f0f0;
}

#v-pills-profile-section-training .training-menu-toggle {
    cursor: pointer;
    font-weight: bold;
    font-size: 18px;
}

/* Paste week container */
#v-pills-profile-section-training .paste-week-container {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    transform: translateY(-50%);
    pointer-events: none;
    gap: 0.625rem;
}

#v-pills-profile-section-training .btn-paste-training-assisted-user-week,
#v-pills-profile-section-training .cancel-training-user-week-copy-mode {
    pointer-events: auto;
    font-weight: 600;
}

.remove-training-calendar-menu-toggle-icon::after {
    display: none !important;
}

@media screen and (width > 768px) {
    /* bootstrap md+ */
    #v-pills-profile-section-training .training-menu-toggle {
        visibility: hidden;
    }
}

/* ---------------------------
   COMMON GENERIC CALENDAR STYLES
--------------------------- */
.calendar-workout-cell-container {
    margin-bottom: 1rem;
    box-shadow: var(--bs-box-shadow-sm);
}

.calendar-workout-cell-container:hover {
    border-color: var(--ms-accent-blue) !important;
    /* background-color: rgba(52, 152, 219, 0.05); */
}

.calendar-workout-cell-container,
.calendar-workout-cell-container .calendar-workout-items-list .calendar-cell-item,
.calendar-workout-cell-container .calendar-workout-items-list .calendar-section-item {
    border-width: 1px !important;
    border-style: solid !important;
    border-color: var(--bs-border-color) !important;
    transition: border-color 0.3s;
}

.calendar-workout-cell-container:hover .edit-program-workout-card-label,
.calendar-workout-cell-container:hover .edit-assigned-workout-card-label,
.calendar-workout-cell-container:hover .assigned-workout-card-name {
    text-decoration: underline !important;
    cursor: pointer !important;
    font-weight: 600 !important;
}

.calendar-workout-cell-container .exercise-item {
    border-bottom: 0.1px solid rgba(var(--current-theme-secondary-color-rgb), 0.5);
}
.calendar-workout-cell-container .exercise-item:last-child {
    border-bottom: none;
}

#v-pills-profile-section-training .multi-set-dropdown-menu,
#v-pills-library-programs .multi-set-dropdown-menu,
.multi-set-dropdown-menu {
    max-height: 150px;
    overflow-y: auto;
}

.calendar-workout-items-list:not(.calendar-workout-items-list-no-hoverable) .calendar-cell-item:hover,
.calendar-workout-items-list:not(.calendar-workout-items-list-no-hoverable) .calendar-section-item:hover {
    border-color: rgba(var(--mangofit-color-rgb), 0.3) !important;
    background-color: rgba(52, 152, 219, 0.05);
}

/* Copy mode disabled (shared) */
#v-pills-library-programs .copy-mode-disabled,
#v-pills-profile-section-training .copy-mode-disabled,
#assisted-user-training-calendar .copy-mode-disabled {
    opacity: 0.7;
    pointer-events: none;
    user-select: none;
    filter: blur(0.0563rem);
}

/* ---------------------------
   RESPONSIVE (Bootstrap xs/sm)
--------------------------- */
@media (max-width: 767.98px) {
    /* Programs calendar */
    #v-pills-library-programs .calendar-row {
        flex-direction: column;
        gap: 1rem;
        height: auto !important;
    }

    #v-pills-library-programs .calendar-column {
        width: 100% !important;
        max-width: 100%;
    }

    #v-pills-library-programs #calendarContainer {
        overflow-x: auto !important;
        overflow-y: visible !important;
    }

    #v-pills-library-programs .program-calendar-flex {
        overflow-x: auto !important;
        overflow-y: visible !important;
    }

    #v-pills-library-programs .calendar-column > .calendar-column-d-flex {
        position: relative;
        padding: 0.5rem;
    }

    #v-pills-library-programs .calendar-column span {
        flex-shrink: 0;
    }

    #v-pills-library-programs .add-workout-to-program-calendar-day-btn-wrapper {
        display: flex !important;
        position: absolute;
        right: 0%;
        top: 50%;
        transform: translate(-50%, -50%);
        z-index: 1;
    }

    #v-pills-library-programs
        .border-top.border-bottom.program-calendar-borders {
        flex-direction: column !important;
        align-items: stretch !important;
        text-align: left;
    }

    #v-pills-library-programs
        .border-top.border-bottom.program-calendar-borders
        > h5 {
        width: 100%;
        margin-bottom: 0.5rem;
        padding-left: 0.5rem;
    }

    #v-pills-library-programs
        .border-top.border-bottom.program-calendar-borders
        > div {
        flex-wrap: wrap;
        justify-content: center !important;
        width: 100%;
    }

    #v-pills-library-programs .program-calendar-controls {
        flex-direction: column;
        align-items: center !important;
        gap: 0.5rem !important;
    }

    #v-pills-library-programs .program-calendar-actions {
        flex-wrap: wrap;
        justify-content: center;
    }

    /* Training profile + assisted */
    #v-pills-profile-section-training #calendarDays,
    #assisted-user-training-calendar #calendarDays {
        max-height: 100vh;
        overflow-y: auto;
        scroll-behavior: smooth;
    }

    #v-pills-profile-section-training .training-calendar-day-box-wrapper,
    #assisted-user-training-calendar .training-calendar-day-box-wrapper {
        flex-direction: column;
    }

    /* Profile-only overflow override */
    #v-pills-profile-section-training .training-calendar-day-box-wrapper {
        overflow: visible !important;
    }

    #v-pills-profile-section-training .week-row,
    #v-pills-profile-section-training .training-calendar-day-box-wrapper,
    #assisted-user-training-calendar .training-calendar-day-box-wrapper {
        height: auto !important;
        min-height: 0;
        overflow: visible !important;
    }

    #v-pills-profile-section-training .training-calendar-day-box,
    #assisted-user-training-calendar .training-calendar-day-box {
        width: 100% !important;
        flex: 0 0 auto;
        margin-bottom: 10px;
    }

    #v-pills-profile-section-training .training-calendar-day,
    #assisted-user-training-calendar .training-calendar-day {
        height: auto;
    }

    #v-pills-profile-section-training .training-calendar-date-wrapper,
    #assisted-user-training-calendar .training-calendar-date-wrapper {
        display: flex;
        flex-direction: row;
        justify-content: flex-start;
        align-items: center;
        gap: 10px;
    }

    #v-pills-profile-section-training .training-calendar-date,
    #assisted-user-training-calendar .training-calendar-date {
        flex-shrink: 0;
        font-weight: bold;
        font-size: 14px;
    }

    #v-pills-profile-section-training .week-controls-wrapper,
    #assisted-user-training-calendar .week-controls-wrapper {
        flex-direction: column !important;
        align-items: center !important;
        text-align: center;
    }

    #v-pills-profile-section-training .week-controls-wrapper > div,
    #v-pills-profile-section-training .week-controls-wrapper > h4,
    #v-pills-profile-section-training .week-controls-wrapper > input,
    #assisted-user-training-calendar .week-controls-wrapper > div,
    #assisted-user-training-calendar .week-controls-wrapper > h4,
    #assisted-user-training-calendar .week-controls-wrapper > input {
        width: 100%;
        justify-content: center !important;
        text-align: center !important;
        margin-bottom: 0.5rem;
    }

    #v-pills-profile-section-training #trainingWeekdayHeaders,
    #assisted-user-training-calendar #trainingWeekdayHeaders {
        display: none !important;
    }

    #v-pills-library-programs .week-toggle-group,
    #v-pills-profile-section-training .week-toggle-group,
    #assisted-user-training-calendar .week-toggle-group {
        display: none;
    }

    /* Profile-only */
    #v-pills-profile-section-training .training-menu-toggle {
        margin: 0 auto;
        display: flex !important;
        justify-content: right;
        width: 100%;
    }

    #v-pills-profile-section-training
        .training-calendar-day:hover
        .training-menu-toggle {
        display: flex !important;
    }

    #v-pills-profile-section-training #calendarWrapper,
    #assisted-user-training-calendar #assistedUserCalendarWrapper {
        flex: 1 1 auto !important;
        height: auto !important;
        min-height: 0;
        overflow-x: hidden !important;
        overflow-y: auto !important;
    }

    #v-pills-profile-section-training .training-calendar-copy-layout {
        display: none !important;
    }

    #v-pills-profile-section-training > .d-flex,
    #assisted-user-training-calendar > .d-flex {
        min-height: 0;
    }

    #v-pills-profile-section-training .calendar-toolbar,
    #assisted-user-training-calendar .calendar-toolbar {
        display: grid !important;
        grid-template-columns: auto minmax(0, 1fr) minmax(122px, 154px);
        grid-template-areas: "controls range date";
        justify-content: stretch;
        align-items: center !important;
        gap: 0.45rem;
        width: 100%;
        margin: 0 0 0.65rem;
        padding: 0 0.15rem 0.45rem;
        text-align: left;
    }

    #v-pills-profile-section-training .calendar-toolbar > div,
    #v-pills-profile-section-training .calendar-toolbar > h4,
    #assisted-user-training-calendar .calendar-toolbar > div,
    #assisted-user-training-calendar .calendar-toolbar > h4 {
        width: auto;
        margin-bottom: 0;
        text-align: left !important;
    }

    #v-pills-profile-section-training .calendar-toolbar-primary,
    #assisted-user-training-calendar .calendar-toolbar-primary {
        grid-area: controls;
        justify-content: flex-start !important;
        width: auto !important;
        min-width: 0;
    }

    #v-pills-profile-section-training .calendar-nav-group,
    #assisted-user-training-calendar .calendar-nav-group {
        display: grid;
        grid-template-columns: repeat(3, 32px);
        gap: 0.32rem;
        width: auto;
        max-width: none;
        min-width: 0;
        padding: 0;
        border: 0;
        background: transparent;
        box-shadow: none;
    }

    #v-pills-profile-section-training .calendar-nav-btn,
    #assisted-user-training-calendar .calendar-nav-btn {
        width: 32px;
        min-width: 0;
        height: 32px;
        min-height: 32px;
        padding: 0;
        border: 1px solid rgba(var(--contrast-theme-color-rgb), 0.13);
        border-radius: 999px;
        background: rgba(var(--current-theme-color-rgb), 0.96);
        box-shadow: 0 5px 14px rgba(var(--contrast-theme-color-rgb), 0.06);
        font-size: 0.78rem;
    }

    #v-pills-profile-section-training .calendar-nav-btn span,
    #assisted-user-training-calendar .calendar-nav-btn span {
        display: none;
    }

    #v-pills-profile-section-training .calendar-week-range,
    #assisted-user-training-calendar .calendar-week-range {
        display: block !important;
        grid-area: range;
        justify-self: center;
        max-width: 100%;
        overflow: hidden;
        color: rgba(var(--contrast-theme-color-rgb), 0.86);
        font-size: 0.82rem;
        font-weight: 800;
        text-align: center !important;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    #v-pills-profile-section-training #weekRange.calendar-week-range,
    #assisted-user-training-calendar #weekRange.calendar-week-range {
        text-align: center !important;
    }

    #v-pills-profile-section-training .calendar-today-btn,
    #assisted-user-training-calendar .calendar-today-btn {
        border-color: rgba(var(--mangofit-color-rgb), 0.18);
        background: rgba(var(--mangofit-color-rgb), 0.08);
    }

    #v-pills-profile-section-training .calendar-date-jump,
    #assisted-user-training-calendar .calendar-date-jump {
        grid-area: date;
        justify-self: end;
        width: 154px;
        height: 32px;
        padding: 0 0.6rem;
        border-radius: 999px;
        box-shadow: 0 5px 14px rgba(var(--contrast-theme-color-rgb), 0.06);
    }

    #v-pills-profile-section-training .calendar-date-input,
    #assisted-user-training-calendar .calendar-date-input {
        font-size: 0.75rem;
        font-weight: 700;
    }

    #v-pills-profile-section-training #trainingWeekdayHeaders,
    #assisted-user-training-calendar #trainingWeekdayHeaders {
        padding: 0 !important;
        margin-bottom: 0 !important;
    }

    #v-pills-profile-section-training .trainingcalendarweekday,
    #assisted-user-training-calendar .trainingcalendarweekday {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        min-width: 30px;
        min-height: 32px;
        border-radius: 8px;
        font-size: 0.78rem;
        font-weight: 700;
    }

    #v-pills-profile-section-training .trainingcalendarweekday.active,
    #assisted-user-training-calendar .trainingcalendarweekday.active {
        background: rgba(var(--mangofit-color-rgb), 0.1);
    }
}

@media (max-width: 575.98px) {
    #assigned_cards_page [data-id="heading_page"] h4 {
        max-width: 100%;
        overflow: hidden;
        text-overflow: ellipsis;
        font-size: 1.05rem;
        letter-spacing: 0.22rem !important;
        white-space: nowrap;
    }

    #assisted-user-training-calendar {
        padding-right: 0.85rem;
        padding-left: 0.85rem;
    }

    #v-pills-profile-section-training .calendar-toolbar,
    #assisted-user-training-calendar .calendar-toolbar {
        grid-template-columns: auto minmax(0, 1fr) minmax(112px, 136px);
        gap: 0.4rem;
    }

    #v-pills-profile-section-training .calendar-nav-group,
    #assisted-user-training-calendar .calendar-nav-group {
        grid-template-columns: repeat(3, 30px);
        gap: 0.28rem;
    }

    #v-pills-profile-section-training .calendar-nav-btn,
    #assisted-user-training-calendar .calendar-nav-btn {
        width: 30px;
        height: 30px;
        min-height: 30px;
    }

    #v-pills-profile-section-training .calendar-date-jump,
    #assisted-user-training-calendar .calendar-date-jump {
        width: 136px;
        height: 30px;
    }

    #v-pills-profile-section-training .calendar-week-range,
    #assisted-user-training-calendar .calendar-week-range {
        font-size: 0.76rem;
    }
}

/* ---------------------------
    MISC
--------------------------- */
@media (min-width: 768px) {
    .go_back_to_program {
        white-space: nowrap;
    }
}
