
/* Go UI Core legacy CSS reduction pass
   Purpose: let converted screens rely more on the shared Go UI Core layer and
   reduce visual dependence on older per-screen wrapper styling. */

:root {
  --goappily-legacy-shadow: 0 2px 8px rgba(15,35,55,.06);
}

/* Unified native shells */
.goappily-native-shell,
.goappily-dashboard-native-shell,
.goappily-settings-native-shell,
.goappily-booking-view-native-shell,
.goappily-templates-native-shell,
.goappily-reports-native-shell,
.goappily-native-dashboard-block,
.goappily-native-templates-block,
.goappily-native-reports-block {
  color: var(--go-text, #15324b);
}

/* Reduce reliance on old wrapper-specific card rules by normalising them */
.goappily-card,
.goappily-panel,
.goappily-booking-panel,
.goappily-booking-view-panel,
.goappily-agency-card,
.goappily-frontend-card,
.goappily-health-card,
.goappily-booking-native-card,
.goappily-settings-panel.go-card,
.goappily-settings-section.go-card,
.goappily-template-card.go-card,
.goappily-report-card.go-card,
.goappily-tabs-card,
.goappily-settings-tabs-card {
  box-shadow: var(--goappily-legacy-shadow);
}

/* Old tabs now inherit the native button language more strongly */
.goappily-tabs.goappily-tabs-native,
.goappily-settings-tabs {
  gap: 8px;
}

.goappily-tab.go-btn.go-btn--ghost,
.goappily-settings-tab.go-btn.go-btn--ghost {
  font-weight: 700;
}

/* Reduce legacy table visual differences across converted screens */
.goappily-reports-table.go-table,
.goappily-booking-view-native-shell table,
.goappily-settings-native-shell table,
.goappily-dashboard-native-shell table,
.goappily-native-shell table {
  box-shadow: none;
}

/* Native filter bars across templates/reports/dashboard */
.goappily-template-filters.go-filter-bar,
.goappily-reports-filters.go-filter-bar,
.goappily-native-dashboard-block .go-filter-bar,
.goappily-native-templates-block .go-filter-bar,
.goappily-native-reports-block .go-filter-bar {
  margin-bottom: 16px;
}

/* Shared list block style for migrated operational content */
.go-crm-activity-item,
.go-crm-queue-item,
.go-crm-management-item,
.go-crm-template-item {
  box-shadow: none;
}

/* Encourage consolidated spacing rules on converted screens */
.goappily-dashboard-native-shell .go-card,
.goappily-settings-native-shell .go-card,
.goappily-booking-view-native-shell .go-card,
.goappily-templates-native-shell .go-card,
.goappily-reports-native-shell .go-card,
.goappily-native-dashboard-block .go-card,
.goappily-native-templates-block .go-card,
.goappily-native-reports-block .go-card {
  margin-bottom: 0;
}

/* Keep responsive behavior unified */
@media (max-width: 782px) {
  .goappily-template-actions.go-row,
  .goappily-report-actions.go-row,
  .goappily-native-dashboard-block .go-row,
  .goappily-native-templates-block .go-row,
  .goappily-native-reports-block .go-row {
    align-items: stretch;
  }

  .goappily-template-actions.go-row > *,
  .goappily-report-actions.go-row > *,
  .goappily-native-dashboard-block .go-row > *,
  .goappily-native-templates-block .go-row > *,
  .goappily-native-reports-block .go-row > * {
    width: 100%;
  }
}
