.navgan-date-wrap {
    position: relative;
    display: flex;
    align-items: stretch;
    gap: .45rem;
    width: 100%;
}

.navgan-date-wrap > .navgan-jalali-input {
    flex: 1 1 auto;
    min-width: 0;
}

.navgan-date-trigger {
    width: 44px;
    min-width: 44px;
    border: 1px solid #d7dee9;
    border-radius: 10px;
    background: #fff;
    color: #7e160d;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

.navgan-date-trigger:hover,
.navgan-date-trigger:focus-visible {
    background: #fff7f5;
    border-color: #b83a2e;
    box-shadow: 0 0 0 3px rgba(126, 22, 13, .10);
    outline: 0;
}

.navgan-date-overlay {
    position: fixed;
    inset: 0;
    z-index: 3000;
    display: none;
    background: rgba(15, 23, 42, .34);
    backdrop-filter: blur(2px);
}

.navgan-date-overlay.is-open {
    display: block;
}

.navgan-date-panel {
    position: fixed;
    z-index: 3001;
    width: min(360px, calc(100vw - 24px));
    background: #fff;
    border: 1px solid #e4e9f1;
    border-radius: 18px;
    box-shadow: 0 24px 70px rgba(15, 23, 42, .22);
    padding: 14px;
    direction: rtl;
    color: #172033;
    display: none;
}

.navgan-date-panel.is-open {
    display: block;
    animation: navganDateIn .16s ease-out;
}

@keyframes navganDateIn {
    from { opacity: 0; transform: translateY(7px) scale(.985); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.navgan-date-head {
    display: grid;
    grid-template-columns: 42px 1fr 1.3fr 42px;
    gap: 8px;
    align-items: center;
    margin-bottom: 12px;
}

.navgan-date-head select,
.navgan-date-nav {
    height: 40px;
    border: 1px solid #dce3ec;
    border-radius: 10px;
    background: #f9fbfd;
    color: #243044;
}

.navgan-date-head select {
    padding: 0 9px;
    font: inherit;
    cursor: pointer;
}

.navgan-date-nav {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 18px;
}

.navgan-date-nav:hover {
    background: #fff3f0;
    color: #7e160d;
    border-color: #d9aaa5;
}

.navgan-date-week,
.navgan-date-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 5px;
}

.navgan-date-week {
    margin-bottom: 5px;
    color: #7a8597;
    font-size: .76rem;
    text-align: center;
}

.navgan-date-week span {
    padding: 5px 0;
}

.navgan-date-day {
    aspect-ratio: 1;
    min-height: 38px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: #243044;
    font: inherit;
    cursor: pointer;
    transition: background .15s ease, color .15s ease, transform .15s ease;
}

.navgan-date-day:hover {
    background: #f5e9e7;
    color: #7e160d;
    transform: translateY(-1px);
}

.navgan-date-day.is-today {
    box-shadow: inset 0 0 0 1px #b83a2e;
    color: #7e160d;
    font-weight: 700;
}

.navgan-date-day.is-selected {
    background: linear-gradient(135deg, #7e160d, #a72e22);
    color: #fff;
    font-weight: 700;
    box-shadow: 0 5px 12px rgba(126, 22, 13, .22);
}

.navgan-date-empty {
    aspect-ratio: 1;
}

.navgan-date-actions {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    border-top: 1px solid #edf0f5;
    padding-top: 11px;
    margin-top: 11px;
}

.navgan-date-action {
    border: 0;
    border-radius: 9px;
    padding: 8px 12px;
    background: #f3f5f8;
    color: #455166;
    font: inherit;
    cursor: pointer;
}

.navgan-date-action:hover {
    background: #e8edf4;
}

.navgan-date-action.is-primary {
    background: #fff0ed;
    color: #7e160d;
}

@media (max-width: 575.98px) {
    .navgan-date-panel {
        position: fixed !important;
        right: 10px !important;
        left: 10px !important;
        top: auto !important;
        bottom: 10px !important;
        width: auto;
        border-radius: 20px;
        padding: 16px;
    }

    .navgan-date-head {
        grid-template-columns: 44px 1fr 1.25fr 44px;
    }

    .navgan-date-day {
        min-height: 42px;
    }
}
