/* ===== Mobil Tarih Seçici Alt Sheet ===== */

#drp-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 10999;
}
#drp-backdrop.drp-bd-show {
    display: block;
}

@media (max-width: 767px) {

    /* Alt sheet container — ekranın en altına yapışır, bottom menüyü örter */
    .daterangepicker.drp-mobile-sheet {
        position: fixed !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        top: auto !important;
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        border-radius: 20px 20px 0 0 !important;
        z-index: 11000 !important;
        box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.2) !important;
        padding: 0 0 68px 0 !important;
        overflow: visible;
    }

    /* Varsayılan ok işaretlerini gizle */
    .daterangepicker.drp-mobile-sheet::before,
    .daterangepicker.drp-mobile-sheet::after {
        display: none !important;
    }

    /* Başlık çubuğu */
    .drp-m-title {
        position: relative;
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 20px 20px 14px;
        border-bottom: 1px solid #f0f0f0;
    }

    /* Sürükleme çubuğu */
    .drp-m-handle {
        width: 40px;
        height: 4px;
        background: #d8d8d8;
        border-radius: 2px;
        position: absolute;
        top: 8px;
        left: 50%;
        transform: translateX(-50%);
    }

    .drp-m-title span {
        font-weight: 700;
        font-size: 17px;
        color: #1a1a1a;
    }

    /* Kapat butonu */
    .drp-m-close {
        background: #f2f2f2;
        border: none;
        border-radius: 50%;
        width: 34px;
        height: 34px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 16px;
        color: #555;
        cursor: pointer;
        padding: 0;
        flex-shrink: 0;
        line-height: 1;
    }

    .drp-m-close:hover {
        background: #e8e8e8;
    }

    /* Takvim tam genişlik */
    .daterangepicker.drp-mobile-sheet .drp-calendar {
        max-width: 100% !important;
        width: 100% !important;
        float: none !important;
        padding: 8px 16px 4px !important;
    }

    .daterangepicker.drp-mobile-sheet .drp-calendar.left {
        border-right: none !important;
        padding-right: 16px !important;
    }

    .daterangepicker.drp-mobile-sheet table.table-condensed {
        width: 100%;
    }

    .daterangepicker.drp-mobile-sheet .calendar-table {
        padding: 0 !important;
        border: none !important;
    }

    .daterangepicker.drp-mobile-sheet td,
    .daterangepicker.drp-mobile-sheet th {
        height: 42px;
        font-size: 14px;
    }

    .daterangepicker.drp-mobile-sheet .month {
        font-size: 15px;
        font-weight: 600;
    }

    /* Ranges panelini gizle */
    .daterangepicker.drp-mobile-sheet .ranges {
        display: none !important;
    }

    /* Butonlar satırını gizle (autoApply aktif, gerekmez) */
    .daterangepicker.drp-mobile-sheet .drp-buttons {
        display: none !important;
    }

    /* Alt özet çubuğu — sheet'in en altında */
    .drp-m-bar {
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        height: 68px;
        background: #fff;
        border-top: 1px solid #ebebeb;
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 0 20px;
        gap: 12px;
        border-radius: 0 0 0 0;
    }

    .drp-m-info {
        font-size: 14px;
        font-weight: 600;
        color: #222;
        flex: 1;
    }

    /* Tamam butonu */
    .drp-m-ok {
        background: #3554D1;
        color: #fff;
        border: none;
        border-radius: 8px;
        padding: 10px 22px;
        font-size: 15px;
        font-weight: 600;
        cursor: pointer;
        flex-shrink: 0;
        white-space: nowrap;
    }

    .drp-m-ok:active {
        background: #2a44b8;
    }
}
