.jalali-date {
    position: relative;
    width: 100%;
}

.jalali-date__text {
    width: 100%;
    padding-inline-start: 40px;
    text-align: start;
}

.jalali-date__open {
    position: absolute;
    top: 0;
    bottom: 0;
    inset-inline-start: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    margin-block: auto;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: var(--color-muted-foreground, #6f6863);
    cursor: pointer;
}

.jalali-panel {
    position: fixed;
    z-index: 4200;
    width: 292px;
    padding: 12px;
    border: 1px solid var(--color-border, #e7e4e2);
    border-radius: 12px;
    background: var(--color-card, #fff);
    box-shadow: 0 16px 40px rgb(23 19 26 / 16%);
    color: var(--color-foreground, #17131a);
    direction: rtl;
}

.jalali-panel__bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 8px;
}

.jalali-panel__title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    min-width: 0;
}

.jalali-panel__pick {
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: inherit;
    cursor: pointer;
    font: inherit;
    font-size: 14px;
    font-weight: 700;
    line-height: 24px;
    padding: 2px 8px;
}

.jalali-panel__pick:hover,
.jalali-panel__pick.is-on {
    background: var(--color-muted, #f6f4ef);
}

.jalali-panel__nav {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    border: 0;
    border-radius: 8px;
    background: var(--color-muted, #f6f4ef);
    color: var(--color-foreground, #17131a);
    cursor: pointer;
    font: inherit;
    font-size: 16px;
}

.jalali-panel__week,
.jalali-panel__days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
}

.jalali-panel__week span {
    color: var(--color-muted-foreground, #6f6863);
    font-size: 11px;
    line-height: 24px;
    text-align: center;
}

.jalali-panel__days button,
.jalali-panel__months button,
.jalali-panel__years button {
    height: 36px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: var(--color-foreground, #17131a);
    cursor: pointer;
    font: inherit;
    font-size: 13px;
}

.jalali-panel__months,
.jalali-panel__years {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
}

.jalali-panel__years {
    max-height: 162px;
    overflow-y: auto;
    overscroll-behavior: contain;
}

.jalali-panel__days button:hover,
.jalali-panel__days button.is-on,
.jalali-panel__months button:hover,
.jalali-panel__months button.is-on,
.jalali-panel__years button:hover,
.jalali-panel__years button.is-on {
    background: #c13281;
    color: #fff;
}

.jalali-panel__foot {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    margin-top: 8px;
}

.jalali-panel__foot button {
    border: 0;
    background: transparent;
    color: #c13281;
    cursor: pointer;
    font: inherit;
    font-size: 12px;
    font-weight: 700;
}
