/* Client-only palette; no layout or font replacement. */
.pfx-client-theme-switch{display:inline-flex;align-items:center;gap:2px;border:1px solid #b9b9b9;border-radius:7px;padding:2px;margin:8px 12px;background:#fff;vertical-align:middle;white-space:nowrap;flex-shrink:0}
.pfx-client-theme-switch button{border:0;border-radius:5px;background:transparent;color:#333;padding:5px 10px;font-size:19px;line-height:1.2;cursor:pointer}
.pfx-client-theme-switch button[aria-pressed=true]{background:#383838;color:#fff}
.pfx-client-theme-switch button:focus-visible{outline:2px solid #60cdff;outline-offset:2px}
.pfx-client-theme-fallback{position:fixed;right:12px;top:12px;z-index:1050}
html[data-client-theme=dark]{color-scheme:dark;background:#181818;color:#eee}
html[data-client-theme=dark] body{background:#181818!important;color:#eee!important}
html[data-client-theme=dark] :is(.navbar,.navbar-default,.navbar-header,header,footer,.footer,.panel,.panel-body,.panel-heading,.panel-footer,.card,.well,.modal-content,.modal-header,.modal-footer,.dropdown-menu,.list-group-item,.tw-bg-white,.bg-white,.tw-bg-neutral-50,.tw-bg-gray-50,.tw-bg-neutral-100,.tw-bg-gray-100){background-color:#252525!important;color:#eee!important;border-color:#3a3a3a!important}
html[data-client-theme=dark] :is(#wrapper,.wrapper,.content,.main-content,.tw-bg-neutral-200){background-color:#181818!important;color:#eee!important}
html[data-client-theme=dark] :is(h1,h2,h3,h4,h5,h6,label,legend,.text-dark,.text-muted,.help-block,.tw-text-neutral-700,.tw-text-neutral-800,.tw-text-neutral-900,.tw-text-gray-500,.tw-text-gray-600,.tw-text-gray-700,.tw-text-gray-800,.tw-text-gray-900){color:#e5e5e5!important}
html[data-client-theme=dark] :is(a,.navbar-nav>li>a,.dropdown-menu>li>a){color:#60cdff}
html[data-client-theme=dark] :is(input:not([type=checkbox]):not([type=radio]):not([type=submit]),textarea,select,.form-control,.select2-selection,.btn-default,.bootstrap-select>.dropdown-toggle){background:#2d2d2d!important;color:#fff!important;border-color:#555!important}
html[data-client-theme=dark] :is(table,thead,tbody,tr,td,th){background-color:#252525!important;color:#eee!important;border-color:#3a3a3a!important}
html[data-client-theme=dark] :is(.progress,.progress-bar-zero){background-color:#383838}
html[data-client-theme=dark] :is(hr,.table,.border,.tw-border){border-color:#3a3a3a!important}
html[data-client-theme=dark] .pfx-client-theme-switch{background:#252525;border-color:#555}
html[data-client-theme=dark] .pfx-client-theme-switch button{color:#eee}
html[data-client-theme=dark] .pfx-client-theme-switch button[aria-pressed=true]{background:#454545;color:#fff}

/* V4.1: align switch with authenticated navigation, without changing its design. */
@media(min-width:768px){.navbar .navbar-nav>li.pfx-client-theme-nav-item{position:relative;top:14px;}}
html[data-client-theme=dark] :is(.navbar-brand,.navbar-brand a,.navbar-nav>li>a,.navbar-nav>li>a span){color:#eaeaea!important}
html[data-client-theme=dark] :is(.navbar-nav>li>a:hover,.navbar-nav>li>a:focus,.navbar-nav>li.active>a){color:#a7d7f5!important;background-color:#303030!important}
html[data-client-theme=dark] :is(.dropdown-menu,.navbar .dropdown-menu,.dropdown-menu>li,.dropdown-menu>li>a){background-color:#252525!important;color:#eaeaea!important;border-color:#3a3a3a!important}
html[data-client-theme=dark] :is(.dropdown-menu>li>a:hover,.dropdown-menu>li>a:focus,.dropdown-menu>li.active>a){background-color:#383838!important;color:#fff!important}
html[data-client-theme=dark] :is(.dropdown-menu:before,.dropdown-menu:after){border-bottom-color:#252525!important}
html[data-client-theme=dark] :is(.text-muted,.text-secondary,.tw-text-neutral-400,.tw-text-neutral-500,.tw-text-neutral-600,.tw-text-gray-400,.tw-text-gray-500,.tw-text-gray-600,.tw-text-slate-500,.tw-text-slate-600){color:#b8b8b8!important}
html[data-client-theme=dark] :is(.text-dark,.text-black,.tw-text-black,.tw-text-slate-700,.tw-text-slate-800,.tw-text-slate-900){color:#eaeaea!important}
html[data-client-theme=dark] a{color:#a7d7f5}
html[data-client-theme=dark] :is(.text-primary,.tw-text-primary-600,.tw-text-primary-700){color:#a7d7f5!important}
html[data-client-theme=dark] :is(.text-success,.tw-text-success-600){color:#81c995!important}
html[data-client-theme=dark] :is(.text-warning,.tw-text-warning-600){color:#f6b976!important}
html[data-client-theme=dark] :is(.text-danger,.tw-text-danger-600){color:#f28b82!important}
