/* Shared selected state for navigation, filters, periods and pagination. Keep primary actions and risk states distinct. */
:root{--cueva-selected-bg:#f8f1e1;--cueva-selected-border:#b59039;--cueva-selected-text:#80601b}
:is(.history-find-chips,.qsh-filter-chips,.activity-filter-chips,.global-sale-type-tabs,.global-sale-payment-tabs,.booking-choice-row,.booking-choice-grid,.booking-date-row,.slot-period-tabs,.live-catalog-filters) button.active,
:is(.analytics-periods,.analytics-more-periods,.analytics-month-grid,.analytics-tabs,.history-sheet-range-tabs,.qsh-period-options,.activity-period-options) > button.active,
.booking-choice-chip.active,.booking-date-chip.active,.booking-step-tab.active,.period-btn.active,
.qsh-page .qsh-pagination button.active,.session-history-page .history-pagination button.active,.activity-page-numbers button.active,
#pageContent:has(.staff-operations) .staff-ops-period.active,
.manage-view-switch .date-btn.active,
#availableSlotsGrid .reschedule-slot.selected,
body > #extrasModal[data-cueva-live-portal="true"] .live-catalog-filters button.active{
  border-color:var(--cueva-selected-border)!important;
  background:var(--cueva-selected-bg)!important;
  color:var(--cueva-selected-text)!important;
  box-shadow:inset 0 0 0 1px rgba(181,144,57,.12)!important;
}
.history-period-options>button.active,.analytics-period-options>button.active{
  border-color:var(--cueva-selected-border)!important;background:var(--cueva-selected-bg)!important;color:var(--cueva-selected-text)!important;box-shadow:0 5px 14px rgba(117,82,16,.08)!important;
}
.history-period-options>button.active>i,.analytics-period-options>button.active>i{background:#f0e2bf!important;color:#90691a!important}
.history-period-options>button.active small,.analytics-period-options>button.active small,.qsh-period-options>button.active small{color:#8c7958!important}
.history-period-options>button.active>b,.analytics-period-options>button.active>b,.qsh-period-options>button.active>b{color:#87651d!important}
.qsh-period-options>button.active>i{background:#f0e2bf!important;color:#90691a!important}
:is(.history-find-chips,.qsh-filter-chips,.activity-filter-chips) button.active i{color:inherit!important}
:is(.qsh-page .qsh-pagination,.session-history-page .history-pagination,.activity-page-numbers) button.active{box-shadow:none!important}
/* Importance is a risk indicator; preserve its amber and red meaning. */
.activity-importance-chips button[data-importance="important"].active{border-color:#a87909!important;background:#a87909!important;color:#fff!important}
.activity-importance-chips button[data-importance="high"].active{border-color:#a94038!important;background:#a94038!important;color:#fff!important}
/* Payment method selection in existing checkout sheets. */
#checkoutModal .checkout-payment-method-btn.active,
body > #checkoutModal .checkout-payment-method-btn.active,
body > #checkoutModal .checkout-payment-mode button.active,
.payment-correction-methods button.active,
.global-sale-payment-tabs button.active{
  border-color:var(--cueva-selected-border)!important;background:var(--cueva-selected-bg)!important;color:var(--cueva-selected-text)!important;
}
body > #checkoutModal .checkout-payment-method-btn.active i{color:var(--cueva-selected-text)!important}
