@charset "UTF-8";

.datepicker-input {
    width: 100%;
    cursor: pointer;
    background-image: url(/images/icon/ic-calendar-4ec89389c1c77c9677db896f330a7e6f.svg);
    background-repeat: no-repeat;
    background-position: right 16px center;
}

.datepicker {
    width: 278px;
    height: 382px;
    background: #fff;
    position: absolute;
    z-index: 999;
    display: none;
    flex-direction: column;
    border-radius: 12px;
    border: 1px solid #EAEBEC;
    box-shadow: 0px 1px 2px rgba(0, 0, 0, 0.04);
    box-sizing: border-box;
}

.datepicker-header {
    height: 54px;
    padding: 20px 12px 10px 12px;
    flex-shrink: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.yearmonth_wrap,
.controll_btn_wrap{
    display: flex;
    gap:10px;
    align-items: center;
}

.controll_btn_wrap img{
    width:18px;
}
.yearmonth_wrap span{
    cursor: pointer;
    font-size:16px;
    font-weight: 600;
}
.datepicker-body {
    height: 280px;
    padding: 0 12px;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.datepicker-content {
    width: 100%;
    height: auto;
    display: grid;
    grid-template-columns: repeat(7, 1fr); /* 기본 일 뷰 */
    gap: 0;
    justify-content: center;
}

.datepicker-footer {
    height: 48px;
    flex-shrink: 0;
    border-top: 1px solid #F4F4F5;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 10px 12px;
}

.datepicker-footer a {
    color: #7A3EE6;
    border: none;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    line-height: 143%;
    letter-spacing: 1.45%;
}

.day-of-week {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 36px;
    height: 36px;
    font-weight: 500;
    font-size: 11px;
    line-height: 127%;
    letter-spacing: 3.11%;
    text-align: center;
    color: rgba(55, 56, 60, 0.61);
}

.date-cell {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    font-weight: 500;
    font-size: 13px;
    line-height: 138%;
    letter-spacing: 1.94%;
    color: #171719;
}

.date-cell:hover {
    background: #eee;
}

.selected {
    background: #7A3EE6;
    color: #fff;
}

.today {
    background: #F5F0FD;
    color: #7A3EE6;
}

.off-day {
    color: #ccc;
}

/* 월 뷰 */
.view-months .datepicker-content {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    justify-content: center;
}

/* 연도 뷰 */
.view-years .datepicker-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    justify-content: center;
    gap:4px;
}
.year-cell{
    width:100%;
}
.month-cell{
    width:calc(33.333% - 4px);
}
.month-cell,
.year-cell {
    height: 36px;
    line-height: 36px;
    text-align: center;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight:500;
    display: flex;
    align-items: center;
    justify-content: center;
}
.month-cell:hover,
.year-cell:hover {
    background: #eee;
}

.highlight {
    background: #7a42f4;
    color: #fff;
}
