/* Shared styles for month selector components */
.month-selector-container,
.small-month-selector-container {
    position: relative;
}

.month-selector-header,
.small-month-selector-header {
    width: 100%;
    background-color: var(--Zahlwerk-white);
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.month-selector-dropdown {
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--Zahlwerk-white);
    padding: 10px;
}

.small-month-selector-dropdown {
    top: 100%;
    left: 0;
}

.month-selector-header .selected-month,
.small-month-selector-header .selected-month {
    background: transparent;
    display: inline-block;
    line-height: 1;
}

.month-selector-dropdown .month-grid,
.small-month-selector-dropdown .small-month-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    justify-items: center;
}

.month-selector-dropdown .month-grid {
    column-gap: 10%;
    row-gap: 10%;
    margin-top: 10%;
    margin-bottom: 20%;
}

.month-selector-dropdown .month-button {
    width: 100%;
    height: 120%;
    font-size: 14px;
    text-align: center;
}

.month-selector-dropdown .month-button,
.small-month-selector-dropdown .small-month-button {
    background-color: var(--Zahlwerk-white);
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    box-sizing: border-box;
}

.month-selector-dropdown .month-button.active,
.small-month-selector-dropdown .small-month-button.active {
    background-color: var(--Zahlwerk-primary);
    color: #fff;
    border-color: var(--Zahlwerk-primary);
}

.month-selector-dropdown .month-button:hover,
.small-month-selector-dropdown .small-month-button:hover {
    background-color: #e9ecef;
}

.month-selector-dropdown .year-navigation,
.small-month-selector-dropdown .small-year-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: bold;
    border-bottom: 1px solid #ddd;
}

.month-selector-dropdown .year-navigation {
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.month-selector-dropdown .nav-button,
.small-month-selector-dropdown .small-nav-button {
    border: none;
    background: none;
    cursor: pointer;
    color: var(--Zahlwerk-primary);
    transition: transform 0.2s;
}

.month-selector-dropdown .nav-button {
    font-size: 18px;
    padding: 4px 8px;
}

.month-selector-dropdown .nav-button:hover {
    transform: scale(1.2);
}

.month-selector-header .dropdown-icon,
.small-month-selector-header .small-dropdown-icon {
    background: url('/images/arrow-down.svg') no-repeat center;
    background-size: contain;
    width: 16px;
    height: 16px;
    display: inline-block;
    transition: transform 0.1s ease;
}

.month-selector-header .dropdown-icon.active,
.small-month-selector-header .small-dropdown-icon.active {
    transform: rotate(180deg);
}
