.year-picker-wrapper,
.month-picker-wrapper {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.month-picker-wrapper {
    gap: 0.65rem;
}

.year-picker-wrapper {
    height: 40px;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 9px;
    overflow: visible;
}

.year-arrow-btn,
.year-dropdown-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 38px;
    background: transparent;
    border: none;
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.15s, transform 0.12s;
}

.year-arrow-btn svg {
    display: block;
    transition: transform 0.12s ease;
}

.year-arrow-btn:first-child:hover svg {
    transform: translateX(-1.5px);
}

.year-arrow-btn:last-of-type:hover svg {
    transform: translateX(1.5px);
}

.year-arrow-btn:hover,
.year-dropdown-toggle:hover {
    background: rgba(255, 255, 255, 0.22);
    color: #ffffff;
}

.year-input-form {
    margin: 0;
    display: flex;
    align-items: center;
}

.year-input {
    width: 66px;
    height: 34px;
    border: none;
    border-left: 1px solid rgba(255, 255, 255, 0.25);
    border-right: 1px solid rgba(255, 255, 255, 0.25);
    background: rgba(255, 255, 255, 0.95);
    text-align: center;
    font-family: inherit;
    font-size: 0.94rem;
    font-weight: 700;
    color: #1e3a8a;
    -moz-appearance: textfield;
}

.year-input::-webkit-outer-spin-button,
.year-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.year-input:focus {
    outline: none;
    background: #ffffff;
}

.dropdown-caret {
    font-size: 0.78rem;
    opacity: 0.9;
}

.year-dropdown-menu,
.month-dropdown-menu {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    padding: 0.5rem;
    box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.18);
    z-index: 100;
}

.year-dropdown-menu.hidden,
.month-dropdown-menu.hidden {
    display: none !important;
}

.year-dropdown-menu {
    min-width: 245px;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.year-dropdown-header {
    font-size: 0.74rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #64748b;
    padding: 0.25rem 0.5rem 0.4rem 0.5rem;
    border-bottom: 1px solid #f1f5f9;
    margin-bottom: 0.2rem;
}

.year-dropdown-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    padding: 0.42rem 0.6rem;
    border-radius: 7px;
    text-decoration: none;
    color: #1e293b;
    font-size: 0.84rem;
}

.year-dropdown-item:hover {
    background: #eff6ff;
    color: var(--primary);
}

.year-dropdown-item.active {
    background: var(--primary);
    color: #ffffff;
}

.month-dropdown-menu {
    min-width: 270px;
}

.month-all-item {
    display: block;
    text-align: center;
    font-weight: 700;
    padding: 0.45rem 0.65rem;
    margin-bottom: 0.45rem;
    border-radius: 7px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #1e293b;
    text-decoration: none;
    font-size: 0.84rem;
}

.month-all-item:hover {
    background: #eff6ff;
    border-color: #93c5fd;
    color: var(--primary);
}

.month-all-item.active {
    background: var(--primary);
    border-color: var(--primary);
    color: #ffffff;
}

.month-dropdown-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.3rem;
}

.month-dropdown-grid .month-dropdown-item {
    display: block;
    text-align: center;
    padding: 0.4rem 0.35rem;
    border-radius: 6px;
    text-decoration: none;
    color: #334155;
    font-size: 0.82rem;
    font-weight: 600;
}

.month-dropdown-grid .month-dropdown-item:hover {
    background: #eff6ff;
    color: var(--primary);
}

.month-dropdown-grid .month-dropdown-item.active {
    background: var(--primary);
    color: #ffffff;
}
