/* Shared workspace palette. */
body.lucky-dashboard:is([data-order-view="boarding"], [data-order-view="grooming"], .calendar-page, .daily-report-page, .lucky-customers-page, .lucky-ledger-page, .lucky-counter-cash-page, .lucky-staff-page, .owner-zone-page) {
  --lucky-page-bg: #f1f3ea;
  --lucky-surface: #fcf9ef;
  --lucky-surface-muted: #faf6ee;
  --lucky-surface-white: #fffcf6;
  --lucky-text: #23332a;
  --lucky-text-muted: #495e50;
  --lucky-border: #cbd5c6;
  --lucky-yellow: #f5d17d;
  --lucky-yellow-hover: #edc367;
  --lucky-brown-deep: #000;
  --lucky-brown-soft: #2b583f;
  --staff-menu-bg: #203b30;
  --staff-menu-ink: #f4f2e8;
  --staff-brand-bg: #2d4c3e;
  --staff-control-bg: #e6d9c2;
  --staff-control-hover: #dfcfb3;
  --staff-divider: #dcd3c4;
  --staff-table-head: #efe8dc;
  --staff-selection-soft: #fbefd1;
}

body.lucky-dashboard:is([data-order-view="boarding"], [data-order-view="grooming"], .calendar-page, .daily-report-page, .lucky-customers-page, .lucky-ledger-page, .lucky-counter-cash-page, .lucky-staff-page, .owner-zone-page) .dashboard-shell > .sidebar {
  --lucky-sidebar-bg: var(--staff-menu-bg);
  --lucky-sidebar-ink: var(--staff-menu-ink);
  --lucky-sidebar-muted: #dedfd2;
  --lucky-sidebar-hover: var(--staff-brand-bg);
  --lucky-sidebar-border: #68806e;
}

body:is([data-order-view="boarding"], [data-order-view="grooming"], .calendar-page, .daily-report-page, .lucky-customers-page, .lucky-ledger-page, .lucky-counter-cash-page, .lucky-staff-page, .owner-zone-page) .sidebar .sidebar-brand {
  --lucky-ui-component-bg: var(--staff-brand-bg);
  --lucky-ui-component-border: 0;
  --lucky-ui-component-color: #fff5d9;
}

body.lucky-dashboard:is([data-order-view="boarding"], [data-order-view="grooming"], .calendar-page, .daily-report-page, .lucky-customers-page, .lucky-ledger-page, .lucky-counter-cash-page, .lucky-staff-page, .owner-zone-page) :is(.sidebar-brand-subtitle, .mobile-admin-title) {
  color: inherit;
}

body.lucky-dashboard:is([data-order-view="boarding"], [data-order-view="grooming"], .calendar-page, .daily-report-page, .lucky-customers-page, .lucky-ledger-page, .lucky-counter-cash-page, .lucky-staff-page, .owner-zone-page) .dashboard-shell > #luckyAdminDrawer a.sidebar-link:is(.is-active, .active, [aria-current="page"]) {
  border-color: transparent !important;
  color: #000 !important;
}

body.lucky-dashboard:is([data-order-view="boarding"], [data-order-view="grooming"], .calendar-page, .daily-report-page, .lucky-customers-page, .lucky-ledger-page, .lucky-counter-cash-page, .lucky-staff-page, .owner-zone-page) > .mobile-admin-topbar {
  --lucky-ui-component-bg: var(--staff-menu-bg);
  --lucky-ui-component-color: var(--staff-menu-ink);
}

body.lucky-dashboard:is([data-order-view="boarding"], [data-order-view="grooming"], .calendar-page, .daily-report-page, .lucky-customers-page, .lucky-ledger-page, .lucky-counter-cash-page, .lucky-staff-page, .owner-zone-page) > .mobile-admin-topbar .mobile-menu-button {
  --lucky-ui-component-border: 0;
  --lucky-ui-component-color: var(--staff-menu-ink);
}

body:is([data-order-view="grooming"], .calendar-page, .daily-report-page, .lucky-customers-page, .lucky-ledger-page, .lucky-counter-cash-page, .lucky-staff-page, .owner-zone-page) .mobile-menu-button > span { background: var(--staff-menu-ink); }
body.lucky-dashboard[data-order-view="boarding"] > .mobile-admin-topbar { grid-template-columns: 38px minmax(0, 1fr) auto; }
body.lucky-dashboard[data-order-view="boarding"] > .mobile-admin-topbar .mobile-menu-button {
  width: auto;
  min-height: 44px;
  padding-inline: 8px;
  white-space: nowrap;
}
body[data-order-view="boarding"] .mobile-menu-button > span { display: none; }
body[data-order-view="boarding"] .mobile-menu-button::after { content: '功能選單'; }

/* Boarding daily care and calendar use the same surfaces as the order lists. */
@media screen {
  body.lucky-dashboard:is(.daily-report-page, .calendar-page[data-calendar-scope="boarding"]) {
    --lucky-ui-bg: var(--lucky-page-bg);
    --lucky-brown: var(--lucky-brown-soft);
    --lucky-brown-hover: var(--staff-menu-bg);
    background: var(--lucky-ui-bg) !important;
  }

  body.lucky-dashboard:is(.daily-report-page, .calendar-page[data-calendar-scope="boarding"]) :is(.dashboard-shell, .main-panel) {
    background: var(--lucky-ui-bg);
  }

  body.lucky-dashboard:is(.daily-report-page, .calendar-page[data-calendar-scope="boarding"]) #luckyAdminDrawer a.sidebar-link:is(.active, .is-active, [aria-current="page"]) {
    --lucky-ui-component-bg: var(--lucky-yellow);
    background: var(--lucky-yellow) !important;
    box-shadow: none;
  }

  body.lucky-dashboard:is(.daily-report-page, .calendar-page[data-calendar-scope="boarding"]) .dashboard-shell .orders-workspace-tab.is-active {
    background: var(--lucky-yellow);
    color: var(--lucky-brown-deep);
  }

  body.lucky-dashboard.calendar-page[data-calendar-scope="boarding"] .calendar-page-header {
    --lucky-ui-component-bg: var(--lucky-surface);
    --lucky-ui-component-border: 1px solid var(--lucky-border);
    background: var(--lucky-surface);
    border-color: var(--lucky-border);
  }

  body.lucky-dashboard.calendar-page[data-calendar-scope="boarding"] .dashboard-shell .month-calendar-day.is-today .month-day-number {
    background: var(--staff-menu-bg);
    border-color: var(--staff-menu-bg);
    color: var(--staff-menu-ink);
  }

  body.lucky-dashboard.daily-report-page .dashboard-shell :is(.daily-report-workbench, .daily-report-table-card, .daily-report-table .daily-report-row) {
    --lucky-ui-component-bg: var(--lucky-surface);
    background: var(--lucky-surface);
    border-color: var(--lucky-border);
  }

  body.lucky-dashboard.daily-report-page .dashboard-shell .daily-report-filter.is-active {
    --lucky-ui-component-bg: var(--lucky-yellow);
  }
}

/* Grooming workspaces use the shared colours with their existing layouts. */
body[data-order-view="grooming"] #groomingPanel {
  --lucky-ui-component-bg: var(--lucky-surface);
  --lucky-ui-component-border: 1px solid var(--lucky-border);
  --lucky-ui-component-shadow: none;
}

body[data-order-view="grooming"] #groomingPanel :is(#groomingScheduleView, #groomingProcessingView, #groomingRecordView, #groomingDetail, .grooming-legacy-hooks) :is(
  .grooming-schedule-board-card, .grooming-schedule-manual-card, .grooming-schedule-grid, .grooming-schedule-slot,
  .grooming-processing-layout, .grooming-processing-list-card, .grooming-processing-detail-card,
  .grooming-record-list-card, .grooming-record-detail-card, .grooming-record-detail-box,
  .grooming-print-tools
),
body[data-order-view="grooming"] #groomingPanel #groomingDetail {
  --lucky-ui-component-bg: var(--lucky-surface);
  --lucky-ui-component-border: 1px solid var(--staff-divider);
  border-color: var(--staff-divider) !important;
  background: var(--lucky-surface) !important;
  color: var(--lucky-text);
}

body[data-order-view="grooming"] #groomingScheduleView :is(.grooming-schedule-corner, .grooming-schedule-column-head) {
  background: var(--staff-brand-bg) !important;
  border-color: var(--staff-menu-bg) !important;
}
body[data-order-view="grooming"] #groomingScheduleView .grooming-schedule-column-head :is(strong, span) { color: var(--staff-menu-ink); }
body[data-order-view="grooming"] #groomingScheduleView .grooming-schedule-time {
  background: var(--staff-table-head) !important;
  border-color: var(--staff-divider) !important;
  color: var(--lucky-text);
}
body[data-order-view="grooming"] #groomingScheduleView :is(.grooming-schedule-card, .grooming-schedule-card.is-boss) {
  background: var(--lucky-surface-white) !important;
  border-color: var(--staff-divider);
  border-inline-start-color: var(--lucky-yellow);
  color: var(--lucky-text);
}
body[data-order-view="grooming"] #groomingScheduleView .grooming-schedule-card.is-boss { border-inline-start-color: var(--staff-brand-bg); }
body[data-order-view="grooming"] #groomingScheduleView .grooming-schedule-card strong { color: var(--lucky-text); }
body[data-order-view="grooming"] #groomingScheduleView .grooming-schedule-card span { color: var(--lucky-text-muted); }

body[data-order-view="grooming"] #groomingProcessingView button.grooming-pending-card {
  background: var(--lucky-surface-white) !important;
  border-color: var(--staff-divider) !important;
  color: var(--lucky-text) !important;
}
body[data-order-view="grooming"] #groomingProcessingView button.grooming-pending-card.is-active {
  background: var(--lucky-yellow) !important;
  border-color: transparent !important;
  color: #000 !important;
}

body[data-order-view="grooming"] #todayGroomingTable thead th { background: var(--staff-table-head) !important; }
body[data-order-view="grooming"] #groomingPanel #todayGroomingTable tbody tr { --grooming-row-bg: var(--lucky-surface-white); }
body[data-order-view="grooming"] #groomingPanel #todayGroomingTable tbody tr:nth-child(even) { --grooming-row-bg: var(--lucky-surface-muted); }
body[data-order-view="grooming"] #groomingPanel #todayGroomingTable tbody tr.is-current-grooming { --grooming-row-bg: var(--staff-selection-soft); }
body[data-order-view="grooming"] #groomingPanel #todayGroomingTable tbody td {
  background: var(--grooming-row-bg) !important;
  border-color: var(--staff-divider) !important;
  color: var(--lucky-text) !important;
}
body[data-order-view="grooming"] #groomingPanel #todayGroomingTable tbody td:first-child { border-inline-start-width: 0 !important; }

body[data-order-view="grooming"] :is(#groomingPanel, #groomingManualEntryForm, .orders-filter-toolbar) :is(.mini-button, .order-filter-pill, select),
body[data-order-view="grooming"] #groomingPanel #groomingRecordView .grooming-record-filter,
body.lucky-dashboard.calendar-page[data-calendar-scope="grooming"] .dashboard-shell :is(.month-nav-group button, .month-load-status button, .month-filter) {
  --lucky-ui-component-bg: var(--staff-button-fill, var(--staff-control-bg));
  --lucky-ui-component-border: 0;
  --lucky-ui-component-color: #000;
  background: var(--lucky-ui-component-bg) !important;
  border: 0 !important;
  color: #000 !important;
}

body[data-order-view="grooming"] :is(#groomingPanel, #groomingManualEntryForm, .orders-filter-toolbar) :is(.mini-button, .order-filter-pill, select):hover,
body[data-order-view="grooming"] #groomingPanel #groomingRecordView .grooming-record-filter:hover,
body[data-calendar-scope="grooming"] .dashboard-shell :is(.month-nav-group button, .month-load-status button, .month-filter):hover {
  --staff-button-fill: var(--staff-control-hover);
}

body[data-order-view="grooming"] :is(#groomingScheduleDateLabel, #staffOrdersRefreshBtn, .order-filter-pill.is-active),
body[data-order-view="grooming"] #groomingPanel #groomingRecordView .grooming-record-filter.is-active,
body[data-calendar-scope="grooming"] .dashboard-shell .month-filter.is-active {
  --staff-button-fill: var(--lucky-yellow);
}

body[data-order-view="grooming"] #groomingFocusFilters .order-filter-pill strong {
  border: 0;
  background: transparent !important;
  color: #000 !important;
}

body[data-order-view="grooming"] #groomingPanel :is(.grooming-pending-card .tag, .grooming-balance-tag) {
  border: 0 !important;
  background: var(--staff-control-bg) !important;
  color: #000 !important;
}

body.lucky-dashboard.calendar-page[data-calendar-scope="grooming"] .dashboard-shell .month-calendar-day.is-selected {
  --lucky-ui-component-bg: var(--staff-selection-soft);
  background: var(--staff-selection-soft) !important;
  outline-color: var(--lucky-yellow);
}

body.lucky-dashboard.calendar-page[data-calendar-scope="grooming"] .dashboard-shell .month-calendar-day.is-today .month-day-number {
  border-color: var(--staff-menu-bg);
  background: var(--staff-menu-bg);
  color: var(--staff-menu-ink);
}

body.lucky-dashboard.calendar-page[data-calendar-scope="grooming"] .dashboard-shell :is(.month-calendar-event, .month-day-count, .month-detail-chip, .month-detail-tag) {
  border: 0;
  background: var(--staff-control-bg);
  color: #000;
}

/* Customer directory, payment and record views. */
body.lucky-customers-page {
  --lucky-brown: var(--lucky-brown-soft);
}

body.lucky-customers-page .main-panel :is(
  .customer-management-tools, .customer-selection-empty, .customer-overview-card,
  .customer-detail-panel, .customer-spending-toolbar, .customer-spending-records,
  .customer-followup-filters, .customer-followup-summary, .customer-followup-list, .customer-followup-side-form,
  .service-pass-toolbar, .service-pass-card, .service-pass-history, .service-pass-dialog
) {
  --lucky-ui-component-bg: var(--lucky-surface);
  border-color: var(--staff-divider);
  background: var(--lucky-surface);
  color: var(--lucky-text);
}

body.lucky-customers-page .main-panel :is(.pet-history-block, .pet-next-step-block) {
  border-inline-start-color: var(--lucky-yellow);
  background: var(--lucky-surface-muted);
}

body.lucky-customers-page .main-panel :is(.customer-directory-table, .customer-spending-table, .service-pass-history table) th {
  background: var(--staff-table-head) !important;
  color: #000 !important;
}

body.lucky-customers-page .main-panel :is(.customer-directory-table, .customer-spending-table, .service-pass-history table) tbody td {
  border-color: var(--staff-divider);
  background: var(--lucky-surface-white);
}

body.lucky-customers-page .main-panel :is(.customer-directory-table, .customer-spending-table, .service-pass-history table) tbody tr:nth-child(even) td {
  background: var(--lucky-surface-muted);
}

body.lucky-customers-page .main-panel :is(#customerManagementView, #customerCheckoutView, #customerServicePassView, #customerSpendingView, #customerFollowupView) :is(
  button:not(.customer-detail-overlay, .spending-delete-button, .danger, .history-item),
  select, .customer-more-menu > summary
),
body.lucky-customers-page #quickPaymentForm #gcCheckoutShortcut,
body.lucky-customers-page #customerCheckoutView :is(#quickPaymentSubmit, #quickPaymentUseWallet) {
  --lucky-ui-component-bg: var(--customer-control-bg, var(--staff-control-bg));
  --lucky-ui-component-border: 0;
  --lucky-ui-component-color: #000;
  background: var(--lucky-ui-component-bg) !important;
  border: 0 !important;
  color: #000 !important;
}

body.lucky-customers-page .main-panel :is(button, select, .customer-more-menu > summary):hover {
  --customer-control-bg: var(--staff-control-hover);
}

body.lucky-customers-page .main-panel :is(
  #newCustomerBtn, #quickPaymentUseWallet, #quickPaymentSubmit, #quickPaymentConfirmAccept, #memberTopupSubmitBtn, #servicePassDialogSubmit,
  .quick-payment-method.is-active, .customer-directory-pagination button.is-active
) {
  --customer-control-bg: var(--lucky-yellow);
}

body.lucky-customers-page #customerCheckoutView .quick-payment-method.is-active { box-shadow: none !important; }

/* Ledger tables, filters and forms. */
body.lucky-ledger-page .ledger-date-toolbar {
  border-color: var(--staff-divider);
  background: var(--lucky-surface);
  box-shadow: none;
}

body.lucky-ledger-page .main-panel .table th {
  background: var(--staff-table-head) !important;
  color: #000 !important;
}

body.lucky-ledger-page .main-panel .table tbody td {
  border-color: var(--staff-divider);
  background: var(--lucky-surface-white);
}

body.lucky-ledger-page .main-panel .table tbody tr:nth-child(even) td {
  background: var(--lucky-surface-muted);
}

body.lucky-ledger-page .main-panel .tag:not(.warn, .danger, .ok) {
  --lucky-ui-component-bg: var(--staff-control-bg);
  --lucky-ui-component-border: 0;
  --lucky-ui-component-color: #000;
}

body.lucky-ledger-page :is(#summaryTable, #receivableSummaryTable) tbody tr:is([data-ledger-date], [data-receivable-method]):hover td {
  background: var(--staff-table-head) !important;
}

body.lucky-ledger-page :is(#summaryTable, #receivableSummaryTable) tbody tr:is([data-ledger-date], [data-receivable-method]).is-selected td {
  background: var(--staff-selection-soft) !important;
  color: #000 !important;
}

body.lucky-ledger-page :is(#summaryTable, #receivableSummaryTable) tbody tr:is([data-ledger-date], [data-receivable-method]).is-selected td:first-child {
  box-shadow: inset 5px 0 0 var(--lucky-yellow);
}

body.lucky-ledger-page .main-panel :is(button:not(.danger), select, .ledger-date-toolbar input[type="date"]) {
  --lucky-ui-component-bg: var(--ledger-control-bg, var(--staff-control-bg));
  --lucky-ui-component-border: 0;
  --lucky-ui-component-color: #000;
  background: var(--lucky-ui-component-bg) !important;
  border: 0 !important;
  color: #000 !important;
}

body.lucky-ledger-page .main-panel :is(button, select):hover { --ledger-control-bg: var(--staff-control-hover); }
body.lucky-ledger-page .main-panel :is(#saveBankEntryBtn, #saveAccountingSubjectBtn) { --ledger-control-bg: var(--lucky-yellow); }
body.lucky-ledger-page .receivable-check input { accent-color: var(--staff-brand-bg); }

/* Counter cash summary, shift counts and cash entry forms. */
body.lucky-counter-cash-page :is(.cash-summary, .expense-form, .owner-movement-form, .count-confirm-dialog, .income-duplicate-dialog) {
  border-color: var(--staff-divider);
  background: var(--lucky-surface);
  color: var(--lucky-text);
}

body.lucky-counter-cash-page :is(.cash-summary__item, .cash-table tbody tr, .income-duplicate-matches li) { border-color: var(--staff-divider); }
body.lucky-counter-cash-page :is(.count-confirm-values div, .cash-empty) { background: var(--lucky-surface-muted); }
body.lucky-counter-cash-page .income-duplicate-summary { background: var(--staff-selection-soft); }

body.lucky-counter-cash-page .cash-table th {
  background: var(--staff-table-head) !important;
  color: #000 !important;
}

body.lucky-counter-cash-page button.checkpoint-card {
  --lucky-ui-component-bg: var(--staff-control-bg);
  --lucky-ui-component-border: 0;
  --lucky-ui-component-color: #000;
}

body.lucky-counter-cash-page button.checkpoint-card:hover { --lucky-ui-component-bg: var(--staff-control-hover); }
body.lucky-counter-cash-page button.checkpoint-card.is-active { --lucky-ui-component-bg: var(--lucky-yellow); }
body.lucky-counter-cash-page button.checkpoint-card.is-active:not(:focus-visible) { outline: none; }
body.lucky-counter-cash-page button.checkpoint-card:focus-visible { outline: 2px solid var(--staff-brand-bg); outline-offset: 2px; }
body.lucky-counter-cash-page button.checkpoint-card.is-warning { --lucky-ui-component-border: 1px solid var(--lucky-danger); }
body.lucky-counter-cash-page .checkpoint-card small { color: var(--lucky-text); }

body.lucky-counter-cash-page .main-panel :is(button:not(.checkpoint-card, .danger), select, #cashDate, a.cash-count-save),
body.lucky-counter-cash-page .count-confirm-actions button,
body.lucky-counter-cash-page #incomeDuplicateDialog :is(#cancelIncomeDuplicateBtn, #confirmIncomeDuplicateBtn) {
  --lucky-ui-component-bg: var(--cash-control-bg, var(--staff-control-bg));
  --lucky-ui-component-border: 0;
  --lucky-ui-component-color: #000;
  background: var(--lucky-ui-component-bg) !important;
  border: 0 !important;
  color: #000 !important;
}

body.lucky-counter-cash-page :is(button, select, a.cash-count-save):hover { --cash-control-bg: var(--staff-control-hover); }
body.lucky-counter-cash-page :is(#saveCountBtn, #addExpenseBtn, #addOwnerMovementBtn, #confirmCountSaveBtn, #cancelIncomeDuplicateBtn) {
  --cash-control-bg: var(--lucky-yellow);
}

/* Staff directory, employee forms and work tabs. */
body.lucky-staff-page {
  --lucky-ui-bg: var(--lucky-page-bg);
  --lucky-white: var(--lucky-surface-white);
  --lucky-brown: var(--staff-brand-bg);
}

body.employee-directory-page {
  --employee-hover-soft: var(--staff-table-head);
  --employee-line-soft: var(--staff-divider);
}

body.employee-directory-page .main-panel :is(.employee-page-header, .employee-filter-card, .employee-list-card) {
  --lucky-ui-component-bg: var(--lucky-surface);
  --lucky-ui-component-border: 1px solid var(--staff-divider);
}

body.lucky-staff-page .main-panel .ops-table th {
  background: var(--staff-table-head) !important;
  color: #000 !important;
}

body.lucky-staff-page .main-panel .ops-table tbody tr:nth-child(even) td {
  background: var(--lucky-surface-muted);
}

body.lucky-staff-page .main-panel :is(button:not(:disabled, .danger, .danger-button), select:not(:disabled), a.quick-link),
body.employee-directory-page .main-panel #searchBtn,
body.lucky-employee-form-page .main-panel #saveEmployeeBtn:not(:disabled),
body.lucky-inventory-page :is(#itemDialog, #stocktakeDialog) :is(select:not(:disabled), button:not(:disabled)),
body.lucky-inventory-page #itemDialog #saveNewItem:not(:disabled) {
  --lucky-ui-component-bg: var(--employee-control-bg, var(--staff-control-bg));
  --lucky-ui-component-border: 0;
  --lucky-ui-component-color: #000;
  background: var(--lucky-ui-component-bg) !important;
  border: 0 !important;
  color: #000 !important;
}

body.lucky-staff-page :is(button, a.quick-link, select):hover { --employee-control-bg: var(--staff-control-hover); }
body.lucky-staff-page :is(
  .employee-page-header a.quick-link, #saveEmployeeBtn, #clockInBtn, #clockOutBtn, #addInventoryItem, #saveInventory, #saveNewItem,
  .inventory-cycle-tabs [aria-selected="true"]
) { --employee-control-bg: var(--lucky-yellow); }

body.lucky-staff-page .main-panel input[type="checkbox"] { accent-color: var(--staff-brand-bg); }

/* Revenue reports and owner attendance. */
body.owner-zone-page {
  --lucky-ui-bg: var(--lucky-page-bg);
  --lucky-white: var(--lucky-surface-white);
  --lucky-brown: var(--staff-menu-bg);
  --lucky-brown-hover: var(--staff-brand-bg);
  --lucky-gold: var(--lucky-yellow);
  --lucky-focus-ring: var(--staff-brand-bg);
  --report-hover-soft: var(--staff-table-head);
  --report-line-soft: var(--staff-divider);
  --report-gold-soft: var(--staff-selection-soft);
}

body.owner-zone-page.revenue-report-page .dashboard-shell > #luckyAdminDrawer .sidebar-link[aria-current="page"] {
  --lucky-ui-component-bg: var(--lucky-yellow);
  --lucky-ui-component-color: #000;
  --lucky-ui-component-border: 0;
  background: var(--lucky-ui-component-bg) !important;
  box-shadow: none;
}

body.owner-zone-page .main-panel :is(.report-page-header, .report-filter-card, .report-table-card, .report-chart-card) {
  --lucky-ui-component-bg: var(--lucky-surface);
  --lucky-ui-component-border: 1px solid var(--staff-divider);
}

body.owner-zone-page .main-panel :is(.report-explainer, .status-banner) {
  --lucky-ui-component-bg: var(--lucky-surface-muted);
  --lucky-ui-component-border: 1px solid var(--staff-divider);
  border-inline-start-color: var(--staff-brand-bg) !important;
  background: var(--lucky-surface-muted) !important;
}

body.owner-zone-page .report-explainer::before { background: var(--staff-brand-bg); }
body.owner-zone-page .report-metrics .metric::before { content: none; }

body.owner-zone-page .main-panel :is(
  button, a.quick-link, .report-date-range input, .owner-record-filter :is(input, select)
) {
  --lucky-ui-component-bg: var(--owner-control-bg, var(--staff-control-bg));
  --lucky-ui-component-border: 0;
  --lucky-ui-component-color: #000;
  background: var(--owner-control-bg, var(--staff-control-bg)) !important;
  border: 0 !important;
  color: #000 !important;
}

body.owner-zone-page .main-panel :is(button:enabled, a.quick-link, .owner-record-filter select):hover {
  --owner-control-bg: var(--staff-control-hover);
}

body.owner-zone-page :is(#loadReportBtn, #loadRecordsBtn) { --owner-control-bg: var(--lucky-yellow); }
body.owner-zone-page :is(#loadReportBtn, #loadRecordsBtn):enabled:hover { --owner-control-bg: var(--lucky-yellow-hover); }

body.owner-zone-page .main-panel .tag:not(.warn, .danger) {
  --lucky-ui-component-bg: var(--staff-control-bg);
  --lucky-ui-component-border: 0;
  --lucky-ui-component-color: #000;
}

body.owner-zone-page .report-table-card .table thead th {
  background: var(--staff-table-head) !important;
  color: #000 !important;
}

body.owner-zone-page .report-table-card .table tbody tr:nth-child(even):not(:hover) td {
  --lucky-ui-component-bg: var(--lucky-surface-muted);
}

body.owner-zone-page .report-table-card .table tbody tr:is(.profit-loss-total-row, .balance-sheet-total-row) :is(th, td) {
  --lucky-ui-component-bg: var(--staff-selection-soft);
  background: var(--staff-selection-soft) !important;
}

body.owner-zone-page :is(.legend-dot.net, .bar-fill.net) { background: var(--lucky-yellow); }
body.owner-zone-page :is(#categoryRevenueChart, #memberWalletChart) .horizontal-bar-fill { background: var(--staff-brand-bg); }
body.owner-zone-page #memberWalletChart .horizontal-bar-fill.refund { background: var(--lucky-danger); }

@media (max-width: 900px) {
  body.owner-attendance-page .main-panel .ops-table tbody tr:nth-child(even) { background: var(--lucky-surface-muted); }
  body.owner-attendance-page .main-panel .ops-table tbody tr:is(:nth-child(even), :hover) td { background: transparent; }
}
