/* v95: en modo oscuro cualquier selección es un botón amarillo-naranja sólido. */
:root { --mat-dark-selected-v95:#f5c842; --mat-dark-selected-text-v95:#202a31; }

body.matilde-cover-dark-mode :is(#section-admin,#drawer-reserva-local,#matilde-v38-filter-drawer,#matilde-v63-appearance-modal,#matilde-v95-dark-editor) :is(
  button.is-active,
  button.active,
  button.selected,
  button[aria-selected="true"],
  button[aria-pressed="true"],
  .wizard-number.is-active,
  .wizard-pill.is-active,
  .wizard-hour.is-active,
  .wizard-waiter.is-active,
  .matilde-v39-hour-selected,
  .admin-calendar-day-selected,
  .mobile-cal-day.selected,
  .mobile-detail-tab.is-active,
  .tablet-extra-detail-tab.is-active,
  .matilde-v38-agenda-filter-btn.is-active,
  .matilde-v63-shape button.is-active
),
#section-tablet.covermanager-dark-mode :is(
  button.is-active,
  button.active,
  button.selected,
  button[aria-selected="true"],
  button[aria-pressed="true"],
  .admin-calendar-day-selected
),
#section-mobile.covermanager-dark-mode :is(
  button.is-active,
  button.active,
  button.selected,
  button[aria-selected="true"],
  button[aria-pressed="true"],
  .mobile-cal-day.selected
) {
  background:var(--mat-dark-selected-v95)!important;
  background-color:var(--mat-dark-selected-v95)!important;
  background-image:none!important;
  border-color:var(--mat-dark-selected-v95)!important;
  color:var(--mat-dark-selected-text-v95)!important;
  -webkit-text-fill-color:var(--mat-dark-selected-text-v95)!important;
  box-shadow:none!important;
  filter:none!important;
  text-shadow:none!important;
  outline:none!important;
  opacity:1!important;
}

body.matilde-cover-dark-mode :is(#section-admin,#drawer-reserva-local,#matilde-v38-filter-drawer,#matilde-v63-appearance-modal,#matilde-v95-dark-editor) :is(
  button.is-active,
  button.active,
  button.selected,
  button[aria-selected="true"],
  button[aria-pressed="true"],
  .wizard-number.is-active,
  .wizard-pill.is-active,
  .wizard-hour.is-active,
  .wizard-waiter.is-active,
  .matilde-v39-hour-selected,
  .admin-calendar-day-selected,
  .mobile-cal-day.selected
) :is(i,span,strong),
#section-tablet.covermanager-dark-mode :is(button.is-active,button.active,button.selected,[aria-selected="true"],[aria-pressed="true"]) :is(i,span,strong),
#section-mobile.covermanager-dark-mode :is(button.is-active,button.active,button.selected,[aria-selected="true"],[aria-pressed="true"]) :is(i,span,strong) {
  color:var(--mat-dark-selected-text-v95)!important;
  -webkit-text-fill-color:var(--mat-dark-selected-text-v95)!important;
  text-shadow:none!important;
  filter:none!important;
}

body.matilde-cover-dark-mode :is(#section-admin,#drawer-reserva-local,#matilde-v38-filter-drawer,#matilde-v63-appearance-modal,#matilde-v95-dark-editor) :is(
  button.is-active,
  button.active,
  button.selected,
  button[aria-selected="true"],
  button[aria-pressed="true"],
  .wizard-number.is-active,
  .wizard-pill.is-active,
  .wizard-hour.is-active,
  .wizard-waiter.is-active,
  .matilde-v39-hour-selected,
  .admin-calendar-day-selected,
  .mobile-cal-day.selected
)::before,
body.matilde-cover-dark-mode :is(#section-admin,#drawer-reserva-local,#matilde-v38-filter-drawer,#matilde-v63-appearance-modal,#matilde-v95-dark-editor) :is(
  button.is-active,
  button.active,
  button.selected,
  button[aria-selected="true"],
  button[aria-pressed="true"],
  .wizard-number.is-active,
  .wizard-pill.is-active,
  .wizard-hour.is-active,
  .wizard-waiter.is-active,
  .matilde-v39-hour-selected,
  .admin-calendar-day-selected,
  .mobile-cal-day.selected
)::after {
  box-shadow:none!important;
  filter:none!important;
  text-shadow:none!important;
}

body.matilde-cover-dark-mode :is(#section-admin,#drawer-reserva-local,#matilde-v38-filter-drawer,#matilde-v63-appearance-modal,#matilde-v95-dark-editor) input[type="checkbox"],
body.matilde-cover-dark-mode :is(#section-admin,#drawer-reserva-local,#matilde-v38-filter-drawer,#matilde-v63-appearance-modal,#matilde-v95-dark-editor) input[type="radio"],
#section-tablet.covermanager-dark-mode input[type="checkbox"],
#section-tablet.covermanager-dark-mode input[type="radio"],
#section-mobile.covermanager-dark-mode input[type="checkbox"],
#section-mobile.covermanager-dark-mode input[type="radio"] {
  accent-color:var(--mat-dark-selected-v95)!important;
  box-shadow:none!important;
  filter:none!important;
}

body.matilde-cover-dark-mode :is(#section-admin,#drawer-reserva-local,#matilde-v38-filter-drawer,#matilde-v63-appearance-modal,#matilde-v95-dark-editor) .matilde-v38-check-row:has(input:checked),
body.matilde-cover-dark-mode :is(#section-admin,#drawer-reserva-local,#matilde-v38-filter-drawer,#matilde-v63-appearance-modal,#matilde-v95-dark-editor) label:has(> input[type="checkbox"]:checked),
body.matilde-cover-dark-mode :is(#section-admin,#drawer-reserva-local,#matilde-v38-filter-drawer,#matilde-v63-appearance-modal,#matilde-v95-dark-editor) label:has(> input[type="radio"]:checked) {
  background:var(--mat-dark-selected-v95)!important;
  border-color:var(--mat-dark-selected-v95)!important;
  color:var(--mat-dark-selected-text-v95)!important;
  -webkit-text-fill-color:var(--mat-dark-selected-text-v95)!important;
  box-shadow:none!important;
  filter:none!important;
}

body.matilde-cover-dark-mode :is(#section-admin,#drawer-reserva-local,#matilde-v38-filter-drawer,#matilde-v63-appearance-modal,#matilde-v95-dark-editor) .matilde-v38-check-row:has(input:checked) :is(span,strong),
body.matilde-cover-dark-mode :is(#section-admin,#drawer-reserva-local,#matilde-v38-filter-drawer,#matilde-v63-appearance-modal,#matilde-v95-dark-editor) label:has(> input[type="checkbox"]:checked) :is(span,strong),
body.matilde-cover-dark-mode :is(#section-admin,#drawer-reserva-local,#matilde-v38-filter-drawer,#matilde-v63-appearance-modal,#matilde-v95-dark-editor) label:has(> input[type="radio"]:checked) :is(span,strong) {
  color:var(--mat-dark-selected-text-v95)!important;
  -webkit-text-fill-color:var(--mat-dark-selected-text-v95)!important;
}

/* Nunca usar el antiguo haz azul bajo un control seleccionado. */
body.matilde-cover-dark-mode :is(#section-admin,#drawer-reserva-local,#matilde-v38-filter-drawer,#matilde-v63-appearance-modal,#matilde-v95-dark-editor) :is(button,[role="button"]),
#section-tablet.covermanager-dark-mode :is(button,[role="button"]),
#section-mobile.covermanager-dark-mode :is(button,[role="button"]) {
  text-shadow:none!important;
}

/* SALOVIX_COLORES_ESTABLES_R1_STATIC_DARK_CONTROLS
 * Estos controles cambian de estado con class/aria pero ya no se repintan por JS.
 * La paleta se resuelve una sola vez por CSS. */
html body #section-mobile.covermanager-dark-mode .mobile-shift-tab {
  background:transparent !important;
  background-color:transparent !important;
  color:rgba(248,250,252,.72) !important;
  -webkit-text-fill-color:rgba(248,250,252,.72) !important;
  border-color:transparent !important;
  box-shadow:none !important;
  filter:none !important;
  text-shadow:none !important;
  opacity:1 !important;
}
html body #section-mobile.covermanager-dark-mode .mobile-shift-tab:is(.is-active,[aria-pressed="true"]) {
  background:var(--mat-cover-yellow,#F5C842) !important;
  background-color:var(--mat-cover-yellow,#F5C842) !important;
  color:#202A31 !important;
  -webkit-text-fill-color:#202A31 !important;
  border-color:var(--mat-cover-yellow,#F5C842) !important;
}

html body.matilde-cover-dark-mode :is(#section-admin,#matilde-v38-filter-drawer) .matilde-v38-agenda-filter-btn {
  background:var(--mat-cover-panel-2,#27333B) !important;
  background-color:var(--mat-cover-panel-2,#27333B) !important;
  color:var(--mat-cover-text,#F8FAFC) !important;
  -webkit-text-fill-color:var(--mat-cover-text,#F8FAFC) !important;
  border-color:var(--mat-cover-border,#475569) !important;
  box-shadow:none !important;
  filter:none !important;
  text-shadow:none !important;
  opacity:1 !important;
}
html body.matilde-cover-dark-mode :is(#section-admin,#matilde-v38-filter-drawer) .matilde-v38-agenda-filter-btn.is-active {
  background:var(--mat-cover-yellow,#F5C842) !important;
  background-color:var(--mat-cover-yellow,#F5C842) !important;
  color:#202A31 !important;
  -webkit-text-fill-color:#202A31 !important;
  border-color:var(--mat-cover-yellow,#F5C842) !important;
}
