/* NoviDesk V112 — stabilny motyw domyślny: desktop + mobile
   Ładuje się jako ostatni i nadpisuje stare rose/nude hotfixy. */
html[data-bg-theme="novidesk-premium"]{
    --nd-plum:#5B2A5E;
    --nd-plum-2:#7B3F98;
    --nd-plum-3:#3D2148;
    --nd-navy:#1A1A24;
    --nd-navy-2:#12121A;
    --nd-lavender:#DCC6E8;
    --nd-lavender-2:#F4EFF8;
    --nd-surface:#FAF8FC;
    --nd-card:#FFFFFF;
    --nd-line:#E7DDED;
    --nd-text:#171522;
    --nd-muted:#665D72;
    --bg-theme-accent:#5B2A5E!important;
    --bg-theme-accent-strong:#7B3F98!important;
    --bg-theme-surface:#FAF8FC!important;
    --bg-theme-surface-soft:#FFFFFF!important;
    --bg-theme-line:#E7DDED!important;
    --bg-theme-text:#171522!important;
    --accent:#5B2A5E!important;
    --accent2:#7B3F98!important;
    --rose:#DCC6E8!important;
    --bg:#FAF8FC!important;
    --card:#FFFFFF!important;
    --text:#171522!important;
    --muted:#665D72!important;
    --line:#E7DDED!important;
}
html[data-bg-theme="novidesk-premium"] body{
    background:linear-gradient(135deg,#ffffff 0%,#faf8fc 55%,#f2edf7 100%)!important;
    color:#171522!important;
}

/* DESKTOP: zawsze czytelny, ciemny sidebar */
@media(min-width:851px){
    html[data-bg-theme="novidesk-premium"] .bg-desktop-sidebar{
        background:
            radial-gradient(circle at 18% 0%, rgba(123,63,152,.32), transparent 34%),
            linear-gradient(180deg,#252033 0%,#1A1A24 56%,#12121A 100%)!important;
        color:#F8F4FB!important;
        border-right:1px solid rgba(255,255,255,.08)!important;
        box-shadow:24px 0 60px rgba(18,18,26,.28)!important;
        opacity:1!important;
        filter:none!important;
        backdrop-filter:none!important;
    }
    html[data-bg-theme="novidesk-premium"] .bg-sidebar-brand-copy strong,
    html[data-bg-theme="novidesk-premium"] .bg-sidebar-company strong,
    html[data-bg-theme="novidesk-premium"] .bg-sidebar-user strong,
    html[data-bg-theme="novidesk-premium"] .bg-sidebar-link-text{
        color:#FFFFFF!important;
        opacity:1!important;
        text-shadow:none!important;
    }
    html[data-bg-theme="novidesk-premium"] .bg-sidebar-brand-copy span{
        color:rgba(255,255,255,.76)!important;
    }
    html[data-bg-theme="novidesk-premium"] .bg-sidebar-company{
        background:rgba(255,255,255,.07)!important;
        border-color:rgba(255,255,255,.12)!important;
        box-shadow:inset 0 1px 0 rgba(255,255,255,.06)!important;
    }
    html[data-bg-theme="novidesk-premium"] .bg-sidebar-company-label,
    html[data-bg-theme="novidesk-premium"] .bg-sidebar-menu-label{
        color:#DCC6E8!important;
        opacity:1!important;
    }
    html[data-bg-theme="novidesk-premium"] .bg-sidebar-mini-pill{
        background:rgba(220,198,232,.16)!important;
        border-color:rgba(220,198,232,.24)!important;
        color:#F5E9FB!important;
    }
    html[data-bg-theme="novidesk-premium"] .bg-sidebar-link,
    html[data-bg-theme="novidesk-premium"] .bg-v29u-sidebar-link{
        color:#F2EAF8!important;
        background:transparent!important;
        border-color:transparent!important;
        opacity:1!important;
    }
    html[data-bg-theme="novidesk-premium"] .bg-sidebar-link:hover,
    html[data-bg-theme="novidesk-premium"] .bg-v29u-sidebar-link:hover{
        background:rgba(255,255,255,.09)!important;
        border-color:rgba(255,255,255,.12)!important;
        color:#fff!important;
    }
    html[data-bg-theme="novidesk-premium"] .bg-sidebar-link.active,
    html[data-bg-theme="novidesk-premium"] .bg-v29u-sidebar-link.active{
        background:linear-gradient(135deg,#7B3F98 0%,#5B2A5E 100%)!important;
        border-color:rgba(255,255,255,.14)!important;
        color:#FFFFFF!important;
        box-shadow:0 16px 34px rgba(91,42,94,.34)!important;
    }
    html[data-bg-theme="novidesk-premium"] .bg-sidebar-ico{
        background:rgba(255,255,255,.10)!important;
        color:#EFE0F7!important;
    }
    html[data-bg-theme="novidesk-premium"] .bg-sidebar-link.active .bg-sidebar-ico{
        background:rgba(255,255,255,.18)!important;
        color:#fff!important;
    }
    html[data-bg-theme="novidesk-premium"] .bg-sidebar-counter{
        background:#B84EE0!important;
        color:#fff!important;
        box-shadow:0 10px 20px rgba(184,78,224,.28)!important;
    }
    html[data-bg-theme="novidesk-premium"] .bg-sidebar-mini-action,
    html[data-bg-theme="novidesk-premium"] .bg-sidebar-logout{
        background:rgba(255,255,255,.09)!important;
        color:#fff!important;
        border-color:rgba(255,255,255,.12)!important;
    }
}

/* ELEMENTY OGÓLNE */
html[data-bg-theme="novidesk-premium"] .btn-primary,
html[data-bg-theme="novidesk-premium"] .bg-primary,
html[data-bg-theme="novidesk-premium"] button.btn-primary,
html[data-bg-theme="novidesk-premium"] .bg-mobile-trial-btn,
html[data-bg-theme="novidesk-premium"] .bg-mobile-fab{
    background:linear-gradient(135deg,#5B2A5E,#7B3F98)!important;
    color:#fff!important;
    border-color:rgba(91,42,94,.28)!important;
    box-shadow:0 14px 30px rgba(91,42,94,.20)!important;
}
html[data-bg-theme="novidesk-premium"] .bg-setup-progress-fill{
    background:linear-gradient(90deg,#5B2A5E,#7B3F98)!important;
    box-shadow:0 6px 18px rgba(91,42,94,.20)!important;
}
html[data-bg-theme="novidesk-premium"] .bg-setup-wizard,
html[data-bg-theme="novidesk-premium"] .card,
html[data-bg-theme="novidesk-premium"] .settings-block{
    background:#fff!important;
    border-color:#E7DDED!important;
}
html[data-bg-theme="novidesk-premium"] .bg-setup-wizard-kicker,
html[data-bg-theme="novidesk-premium"] .bg-setup-action{
    color:#5B2A5E!important;
}
html[data-bg-theme="novidesk-premium"] .bg-setup-step.is-done .bg-setup-check{
    background:#5B2A5E!important;
    color:#fff!important;
}

/* MOBILE: wycięcie rose/pink z grafiku i dolnego menu */
@media(max-width:850px){
    html[data-bg-theme="novidesk-premium"] .nav,
    html[data-bg-theme="novidesk-premium"] .bg-topbar,
    html[data-bg-theme="novidesk-premium"] .bg-desktop-owner-topbar{
        background:rgba(255,255,255,.96)!important;
        border-color:#E7DDED!important;
        box-shadow:0 10px 26px rgba(26,26,36,.06)!important;
    }
    html[data-bg-theme="novidesk-premium"] .schedule-page,
    html[data-bg-theme="novidesk-premium"] #scheduleMobile,
    html[data-bg-theme="novidesk-premium"] .schedule-mobile{
        background:linear-gradient(180deg,#FFFFFF 0%,#FAF8FC 54%,#F3EEF8 100%)!important;
        color:#171522!important;
    }
    html[data-bg-theme="novidesk-premium"] body .schedule-page #scheduleMobile .sg-card,
    html[data-bg-theme="novidesk-premium"] body .schedule-page #scheduleMobile .sg-month-ux,
    html[data-bg-theme="novidesk-premium"] body .schedule-page #scheduleMobile .sg-month-shell,
    html[data-bg-theme="novidesk-premium"] body .schedule-page #scheduleMobile .sg-day-quickcard,
    html[data-bg-theme="novidesk-premium"] body .schedule-page #scheduleMobile .sg-panel{
        background:#FFFFFF!important;
        border-color:#E7DDED!important;
        box-shadow:0 16px 38px rgba(26,26,36,.08)!important;
    }
    html[data-bg-theme="novidesk-premium"] body .schedule-page #scheduleMobile .badge,
    html[data-bg-theme="novidesk-premium"] body .schedule-page #scheduleMobile .sg-kicker,
    html[data-bg-theme="novidesk-premium"] body .schedule-page #scheduleMobile .sg-month-legend-item{
        background:#F1E8F6!important;
        border-color:#E1D0EA!important;
        color:#5B2A5E!important;
    }
    html[data-bg-theme="novidesk-premium"] body .schedule-page #scheduleMobile .sg-title,
    html[data-bg-theme="novidesk-premium"] body .schedule-page #scheduleMobile h1,
    html[data-bg-theme="novidesk-premium"] body .schedule-page #scheduleMobile h2,
    html[data-bg-theme="novidesk-premium"] body .schedule-page #scheduleMobile strong{
        color:#171522!important;
    }
    html[data-bg-theme="novidesk-premium"] body .schedule-page #scheduleMobile .sg-subtitle,
    html[data-bg-theme="novidesk-premium"] body .schedule-page #scheduleMobile .sg-stat span,
    html[data-bg-theme="novidesk-premium"] body .schedule-page #scheduleMobile small{
        color:#665D72!important;
    }
    html[data-bg-theme="novidesk-premium"] body .schedule-page #scheduleMobile .sg-nav{
        background:#F1E8F6!important;
        border-color:#E1D0EA!important;
        color:#24182A!important;
        box-shadow:none!important;
    }
    html[data-bg-theme="novidesk-premium"] body .schedule-page #scheduleMobile .sg-summary,
    html[data-bg-theme="novidesk-premium"] body .schedule-page #scheduleMobile .sg-day-quickstats{
        gap:10px!important;
    }
    html[data-bg-theme="novidesk-premium"] body .schedule-page #scheduleMobile .sg-stat,
    html[data-bg-theme="novidesk-premium"] body .schedule-page #scheduleMobile .sg-day-quickstat,
    html[data-bg-theme="novidesk-premium"] body .schedule-page #scheduleMobile .sg-summary-card{
        background:#F8F6FB!important;
        border:1px solid #E7DDED!important;
        color:#171522!important;
        box-shadow:none!important;
    }
    html[data-bg-theme="novidesk-premium"] body .schedule-page #scheduleMobile .sg-action.primary,
    html[data-bg-theme="novidesk-premium"] body .schedule-page #scheduleMobile .sg-month-action-btn.primary,
    html[data-bg-theme="novidesk-premium"] body .schedule-page #scheduleMobile .sg-tab.active,
    html[data-bg-theme="novidesk-premium"] .bg-mobile-nav a.active{
        background:linear-gradient(135deg,#5B2A5E,#7B3F98)!important;
        border-color:rgba(91,42,94,.24)!important;
        color:#FFFFFF!important;
        box-shadow:0 14px 30px rgba(91,42,94,.22)!important;
    }
    html[data-bg-theme="novidesk-premium"] body .schedule-page #scheduleMobile .sg-action,
    html[data-bg-theme="novidesk-premium"] body .schedule-page #scheduleMobile .sg-month-action-btn,
    html[data-bg-theme="novidesk-premium"] body .schedule-page #scheduleMobile .sg-tab{
        background:#FFFFFF!important;
        border:1px solid #E1D0EA!important;
        color:#24182A!important;
        box-shadow:none!important;
    }
    html[data-bg-theme="novidesk-premium"] body .schedule-page #scheduleMobile .sg-action.danger,
    html[data-bg-theme="novidesk-premium"] body .schedule-page #scheduleMobile .sg-month-action-btn.danger{
        background:#FFFFFF!important;
        border-color:#E1D0EA!important;
        color:#5B2A5E!important;
    }
    html[data-bg-theme="novidesk-premium"] body .schedule-page #scheduleMobile .sg-availability-day,
    html[data-bg-theme="novidesk-premium"] body .schedule-page #scheduleMobile .sg-hour-chip{
        background:#FFFFFF!important;
        border-color:#E7DDED!important;
        color:#171522!important;
    }
    html[data-bg-theme="novidesk-premium"] body .schedule-page #scheduleMobile .sg-availability-day.selected{
        outline:3px solid #7B3F98!important;
        box-shadow:0 10px 22px rgba(91,42,94,.16)!important;
    }
    html[data-bg-theme="novidesk-premium"] body .schedule-page #scheduleMobile .sg-availability-day.selected::after{
        background:#5B2A5E!important;
    }
    html[data-bg-theme="novidesk-premium"] body .schedule-page #scheduleMobile .sg-hour-more{
        background:#F1E8F6!important;
        border-color:#E1D0EA!important;
        color:#5B2A5E!important;
    }
    html[data-bg-theme="novidesk-premium"] .bg-mobile-nav{
        background:rgba(255,255,255,.97)!important;
        border:1px solid #E7DDED!important;
        box-shadow:0 -18px 42px rgba(26,26,36,.10)!important;
    }
    html[data-bg-theme="novidesk-premium"] .bg-mobile-nav a{
        color:#665D72!important;
    }
    html[data-bg-theme="novidesk-premium"] .bg-mobile-nav a svg{
        color:inherit!important;
        stroke:currentColor!important;
    }
    html[data-bg-theme="novidesk-premium"] .bg-mobile-fab,
    html[data-bg-theme="novidesk-premium"] .sg-floating-add,
    html[data-bg-theme="novidesk-premium"] .floating-add{
        background:linear-gradient(135deg,#5B2A5E,#7B3F98)!important;
        color:#fff!important;
        box-shadow:0 16px 34px rgba(91,42,94,.26)!important;
    }
}
