/* LumenMind — only requested updates, no redesign. */
/* Sidebar group headings: dark, legible on light beige. */
body .pm-sidebar .pm-nav-label.pm-nav-toggle,
body .pm-sidebar .pm-nav-label.pm-nav-toggle span:first-child,
body .pm-sidebar .pm-nav-chevron,
body .pm-sidebar .pm-nav-group.is-open>.pm-nav-label.pm-nav-toggle,
body .pm-sidebar .pm-nav-group.is-open>.pm-nav-label.pm-nav-toggle span:first-child{
  color:#263f50!important;opacity:1!important;text-shadow:none!important;
}
body .pm-sidebar .pm-nav-label.pm-nav-toggle{font-weight:900!important;letter-spacing:.085em!important}
body .pm-sidebar .pm-nav-label.pm-nav-toggle:focus-visible{outline:3px solid #35556B!important;outline-offset:2px!important}
/* All existing enabled switches and checkboxes: green. Does NOT change database defaults. */
body .pm-content input[type=checkbox]:not(:disabled),
body .pm-content input[type=radio]:not(:disabled){accent-color:#169d51!important}
body .pm-content .switch input:checked+.slider,
body .pm-content .toggle input:checked+.slider,
body .pm-content .pm-switch input:checked+span,
body .pm-content .toggle-switch input:checked+span{
  background:#169d51!important;border-color:#169d51!important;
}
/* V24.8: el verde queda exclusivamente en controles (switch/checkbox), nunca detrás del texto. */
body .pm-content input.pm-green-enable:checked+span{
  background:transparent!important;
  border-color:transparent!important;
  color:inherit!important;
  box-shadow:none!important;
}
/* Estados textuales: fondo neutro; no usar relleno verde detrás de palabras. */
body .pm-content .notice.ok,
body .pm-content .us-invite.sent,
body .pm-content .us-permission-status,
body .pm-content .day-status:not(.is-closed .day-status),
body .pm-content .grx-pill.ok,
body .pm-content .sec-pill.on,
body .pm-content .sec-current,
body .pm-content .lm-progress .notice{
  background:#fff!important;
  color:#263544!important;
  border:1px solid #dfe3e7!important;
  box-shadow:none!important;
}
/* Preserve white labels on navy action buttons including nested glyphs, mobile. */
body .pm-content .btn:not(.ghost):not(.ghost-dark),
body .pm-content .btn:not(.ghost):not(.ghost-dark) span,
body .pm-content .lm20-action.primary,body .pm-content .lm20-action.primary *{color:#fff!important}
/* Show the new-clinical-record action and icon at every breakpoint. */
body .pm-content .lm20-actions .lm20-action{display:flex!important;align-items:center!important;gap:8px!important;visibility:visible!important;min-width:0!important}
body .pm-content .lm20-actions .lm20-action .ico{display:inline-flex!important;visibility:visible!important;align-items:center!important;justify-content:center!important;flex:none!important;font-size:22px!important;line-height:1!important}
body .pm-content .lm20-actions .lm20-action span:last-child{min-width:0;line-height:1.3;overflow-wrap:break-word}
@media(max-width:760px){
  body .pm-content .lm20-actions{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important}
  body .pm-content .lm20-actions .lm20-action{min-height:68px!important;padding:12px 8px!important;flex-direction:column!important;text-align:center!important;justify-content:center!important;font-size:13px!important}
  body .pm-content .lm20-actions .lm20-action .ico{font-size:22px!important}
}
@media(max-width:380px){body .pm-content .lm20-actions{grid-template-columns:1fr 1fr!important}}


/* V24.9 — regla global: nunca pintar de verde el fondo del texto asociado a un control. */
body .pm-content label > input.pm-green-enable[type="checkbox"] + span:not(.slider):not(.switch-ui):not(.toggle-ui):not(.mk-switch-track),
body .pm-content label > input.pm-green-enable[type="radio"] + span:not(.slider):not(.switch-ui):not(.toggle-ui):not(.mk-switch-track),
body .pm-content .branch-day-open > span,
body .pm-content .branch-day-open > input.pm-green-enable[type="checkbox"]:checked + span{
  background:transparent!important;background-color:transparent!important;background-image:none!important;
  color:inherit!important;border:0!important;box-shadow:none!important;padding:0!important;border-radius:0!important;text-decoration:none!important;
}
body .pm-content .branch-day-open > span::before,
body .pm-content .branch-day-open > span::after{content:none!important;background:transparent!important;border:0!important;box-shadow:none!important}
