/*
 * NoviDesk V131 — MOBILE NO MODALS + CONTROL VISIBILITY
 * Tylko owner/staff layout. Client PWA korzysta z osobnego layoutu.
 */
@media (max-width:850px){
    .bg-desktop-owner-stage select,
    .bg-desktop-owner-stage input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):not([type="submit"]):not([type="button"]),
    .bg-desktop-owner-stage textarea{
        color:#2b2130!important;
        -webkit-text-fill-color:#2b2130!important;
        opacity:1!important;
        color-scheme:light!important;
    }

    .bg-desktop-owner-stage select{background-color:#fff!important}

    .bg-desktop-owner-stage select option{
        color:#251b2a!important;
        -webkit-text-fill-color:#251b2a!important;
        background:#fff!important;
        opacity:1!important;
    }

    .bg-desktop-owner-stage select option:disabled{
        color:#897b8f!important;
        -webkit-text-fill-color:#897b8f!important;
    }

    .bg-desktop-owner-stage select:disabled,
    .bg-desktop-owner-stage input:disabled,
    .bg-desktop-owner-stage textarea:disabled{
        opacity:.72!important;
        color:#716575!important;
        -webkit-text-fill-color:#716575!important;
    }

    /* Celowy wyjątek: selector w fioletowym pasku ma biały tekst. */
    .nd-v128-workbar-copy select{
        color:#fff!important;
        -webkit-text-fill-color:#fff!important;
        background:transparent!important;
    }

    .nd-v128-workbar-copy select option{
        color:#24182e!important;
        -webkit-text-fill-color:#24182e!important;
        background:#fff!important;
    }

    .bg-desktop-owner-stage button,
    .bg-desktop-owner-stage summary,
    .bg-desktop-owner-stage a{
        -webkit-text-fill-color:currentColor;
    }

    .schedule-mobile .sg-action:not(.primary):not(.danger),
    .schedule-mobile .sg-tab:not(.active),
    .schedule-mobile .sg-month-action-btn:not(.primary):not(.danger),
    .schedule-mobile .sg-slot-plus,
    .nd-v124-quick-page .nd-v124-outline-action,
    .nd-v124-quick-page .nd-v124-customer-result,
    .nd-v124-quick-page .nd-v124-selected-customer button,
    .ndw .ndw-btn.soft{
        color:#4c3657!important;
        -webkit-text-fill-color:#4c3657!important;
    }

    /*
     * Safety net: stare overlaye grafiku nie mogą już wyświetlić się w
     * normalnej wersji mobile. quickEmbed pozostaje dla desktopowego UX.
     */
    html:not(.bg-v111-quick-embed) body #appointmentModal,
    html:not(.bg-v111-quick-embed) body #blockModal,
    html:not(.bg-v111-quick-embed) body #sheetBackdrop,
    html:not(.bg-v111-quick-embed) body #eventSheet,
    html:not(.bg-v111-quick-embed) body #rescheduleModal{
        display:none!important;
    }

    .customers-crm-page .customer-sheet-backdrop,
    #bgV111QuickAppointmentBackdrop{
        display:none!important;
    }
}
