/* ===== Date Wheel Picker (همه input های DateText) ===== */
:root {
    --dw-primary: #14a38b;
    --dw-primary-dark: #0f8a75;
    --dw-band: #e8f4f2;
    --dw-text: #1f2d3d;
    --dw-muted: #b3bcc6;
    --dw-border: #d9e1e7;
}

/* ظاهر خود input */
input.DateText,
input.DateTextlogin {
    background-color: #fff !important;
    border: 1.5px solid var(--dw-border) !important;
    border-radius: 10px !important;
    min-height: 44px;
    padding-left: 42px !important;
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%2314a38b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='18' rx='3'/%3E%3Cline x1='16' y1='2' x2='16' y2='6'/%3E%3Cline x1='8' y1='2' x2='8' y2='6'/%3E%3Cline x1='3' y1='10' x2='21' y2='10'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: left 12px center !important;
    background-size: 20px 20px !important;
    transition: border-color .2s, box-shadow .2s;
}

    input.DateText:focus,
    input.DateText.dw-active,
    input.DateTextlogin:focus,
    input.DateTextlogin.dw-active {
        border-color: var(--dw-primary) !important;
        box-shadow: 0 0 0 3px rgba(20, 163, 139, .15) !important;
        outline: none;
    }

/* تقویم قبلی (persian-datepicker) دیگر نمایش داده نشود */
.datepicker-container {
    display: none !important;
}

/* پنل انتخاب تاریخ */
.dw-panel {
    position: absolute;
    z-index: 2147483000;
    direction: rtl;
    background: #fff;
    border: 1px solid var(--dw-border);
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .12);
    padding: 12px 12px 14px;
    width: 300px;
    max-width: calc(100vw - 16px);
    box-sizing: border-box;
    font-family: inherit;
    color: var(--dw-text);
    user-select: none;
    -webkit-user-select: none;
    display: none;
}

    .dw-panel.dw-open {
        display: block;
        animation: dw-fade .15s ease-out;
    }

@keyframes dw-fade {
    from {
        opacity: 0;
        transform: translateY(-6px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dw-head,
.dw-cols {
    display: flex;
}

    .dw-head > div {
        flex: 1;
        text-align: center;
        font-weight: bold;
        font-size: 14px;
        color: var(--dw-text);
        padding-bottom: 6px;
    }

.dw-body {
    position: relative;
}

/* نوار رنگی وسط (مقدار انتخاب شده) */
.dw-band {
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    height: 42px;
    margin-top: -21px;
    background: var(--dw-band);
    border-radius: 8px;
    pointer-events: none;
}

.dw-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    touch-action: none;
}

.dw-arrow {
    border: 0;
    background: transparent;
    color: var(--dw-primary);
    width: 100%;
    height: 30px;
    padding: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
}

    .dw-arrow:hover {
        background: #f3f8f7;
    }

    .dw-arrow svg {
        width: 18px;
        height: 18px;
    }

.dw-item {
    height: 34px;
    line-height: 34px;
    font-size: 14px;
    color: var(--dw-muted);
    cursor: pointer;
    white-space: nowrap;
    width: 100%;
    text-align: center;
}

    .dw-item.dw-cur {
        height: 42px;
        line-height: 42px;
        font-size: 16px;
        font-weight: bold;
        color: var(--dw-text);
        cursor: ns-resize;
        position: relative;
    }

.dw-ok {
    display: block;
    margin: 12px auto 0 0;
    border: 0;
    background: var(--dw-primary);
    color: #fff;
    font-family: inherit;
    font-weight: bold;
    font-size: 15px;
    padding: 9px 26px;
    border-radius: 10px;
    cursor: pointer;
}

    .dw-ok:hover {
        background: var(--dw-primary-dark);
    }
