﻿.date-picker-container {
    width: 100%;
}

.date-picker {
    font-size: 16px;
    width: 100%;
    padding: 16px 12px;
    border-radius: 8px;
    border: 1px solid var(--line-line-primary, #DCDCDC);
    background-color: var(--background-white, #FFF);
    box-shadow: 0px 2px 5px 0px rgba(0, 0, 0, 0.10);
    z-index: 2;
    min-width: 320px;
    position: absolute;
    right: 0;
}

.date-picker.top {
    bottom: calc(100% + 4px);
}

.date-picker.bottom {
    top: calc(100% + 4px);
}

.Control_Section {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.dropdown-btn-div-year,
.dropdown-btn-div-month {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    width: 100%;
    padding: 8px 12px;
    border-radius: 8px;
    background-color: var(--background-bg-gray-light, #F3F3F3);
    cursor: pointer;
}

.active_button {
    box-shadow: inset 0 0 0 2px var(--border-active);
}

.active_button .fas.fa-chevron-down {
    transform: rotate(-180deg);
}

.dropdown-btn {
    font-weight: 700;
}

.year-grid,
.month-grid {
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(3, 40px);
    gap: 12px;
    height: 200px;
    overflow-y: auto;
    overflow-x: hidden;
    text-align: center;
}

.year-item,
.month-item {
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
}

.year-item {
    cursor: pointer;
}

.calendar {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 12px;
    text-align: center;
    margin: 12px 0 0;
}

.calendar:empty {
    display: none;
}

.calendar div {
    background-color: #fff;
    width: 32px;
    height: 24px;
    display: flex;
    border-radius: 4px;
    align-items: center;
    justify-content: center;
}

.day-header {
    font-weight: bold;
    text-align: center;
}

.day-cell:hover {
    background-color: #e0e0e0;
}

.day-cell,
.year-item,
.month-item,
.other-month-day {
    cursor: pointer;
}

.day-cell:hover,
.year-item:hover,
.month-item:hover,
.other-month-day:hover {
    background-color: #f3faf8
}

.other-month-day {
    color: #bbb;
}

.fas {
    display: inline-block;
    -webkit-mask-position: center;
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-size: 24px;
    mask-position: center;
    mask-repeat: no-repeat;
    mask-size: 24px;
    width: 24px;
    height: 24px;
    background-color: #000000;
    transition: transform 0.25s ease-in-out;
}

.fa-chevron-down {
    -webkit-mask-image: var(--hg-icn-chevron-down);
    mask-image: var(--hg-icn-chevron-down);
}