body {
    background-color: skyblue;
}

.ts-dropdown {
    z-index: 1050 !important;
}

/* Fix TomSelect colors for Bootstrap 5 Dark Mode */
[data-bs-theme="dark"] .ts-control,
[data-bs-theme="dark"] .ts-dropdown,
[data-bs-theme="dark"] .ts-dropdown .option {
    color: var(--bs-body-color);
    background-color: var(--bs-body-bg);
    border-color: var(--bs-border-color);
}

[data-bs-theme="dark"] .ts-control input {
    color: var(--bs-body-color) !important;
}

[data-bs-theme="dark"] .ts-dropdown .active {
    background-color: var(--bs-tertiary-bg);
    color: var(--bs-body-color);
}

[data-bs-theme="dark"] .ts-dropdown .optgroup-header {
    background-color: var(--bs-secondary-bg);
    color: var(--bs-secondary-color);
}

[data-bs-theme="dark"] .ts-control .item {
    color: var(--bs-body-color);
}

.badge-affiliation-usa-swimming {
    background-color: #003C71;
    border-color: #003C71;
    color: #fff;
}

.badge-affiliation-ymca {
    background-color: #C8102E;
    border-color: #C8102E;
    color: #fff;
}

@keyframes ux-icon-spin {
    to {
        transform: rotate(360deg);
    }
}

.ux-icon-spin {
    animation: ux-icon-spin 1s linear infinite;
}

.calendar-preview-table {
    table-layout: fixed;
}

.calendar-preview-table td {
    height: 7rem;
    min-width: 8rem;
}

.calendar-preview-event {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.calendar-preview-tooltip .tooltip-inner {
    max-width: 22rem;
    text-align: left;
    white-space: pre-line;
}

.calendar-year-preview-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem 1rem;
}

.calendar-year-preview-table {
    table-layout: fixed;
    width: 100%;
    font-size: 0.7rem;
    text-align: center;
}

.calendar-year-preview-table th {
    color: var(--bs-secondary-color);
    font-size: 0.6rem;
    font-weight: 500;
}

.calendar-year-preview-table td,
.calendar-year-preview-table th {
    height: 1.15rem;
    padding: 0;
}

.calendar-year-preview-event {
    background-color: var(--bs-primary);
    border-radius: 50%;
    color: var(--bs-white);
    display: inline-block;
    font-weight: 700;
    line-height: 1.15rem;
    text-decoration: none;
    width: 1.15rem;
}

.calendar-year-preview-event:hover,
.calendar-year-preview-event:focus {
    color: var(--bs-white);
    filter: brightness(0.85);
}
