
/* Go UI Core deeper selective cleanup pass
   Goal: remove reliance on milestone-by-milestone overrides where the shared
   consolidated layer already covers converted screens. */

:root {
  --goappily-cleanup-card-padding: 16px;
}

/* Native shells now inherit from the shared consolidated layer. Keep only the minimum here. */
.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);
}

/* Neutralize scattered per-pass card overrides by standardising them here */
.goappily-native-dashboard-block .go-card,
.goappily-native-templates-block .go-card,
.goappily-native-reports-block .go-card,
.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-booking-native-card,
.goappily-settings-panel.go-card,
.goappily-settings-section.go-card,
.goappily-template-card.go-card,
.goappily-report-card.go-card,
.goappily-health-card,
.goappily-tabs-card,
.goappily-settings-tabs-card {
  padding: var(--goappily-cleanup-card-padding);
  margin-bottom: 0;
}

/* Neutralize wrapper-specific shadows where consolidated styling already applies */
.goappily-booking-native-card,
.goappily-template-card.go-card,
.goappily-report-card.go-card,
.goappily-health-card,
.goappily-tabs-card,
.goappily-settings-tabs-card {
  box-shadow: 0 2px 8px rgba(15,35,55,.06);
}

/* Unify native row/grid spacing across converted screens */
.goappily-native-dashboard-block .go-row,
.goappily-native-templates-block .go-row,
.goappily-native-reports-block .go-row,
.goappily-dashboard-native-shell .go-row,
.goappily-settings-native-shell .go-row,
.goappily-booking-view-native-shell .go-row {
  gap: 12px;
}

.goappily-native-dashboard-block .go-grid,
.goappily-native-templates-block .go-grid,
.goappily-native-reports-block .go-grid,
.goappily-dashboard-native-shell .go-grid,
.goappily-settings-native-shell .go-grid,
.goappily-booking-view-native-shell .go-grid {
  gap: 16px;
}

/* Remove older per-screen margin differences around filters/actions */
.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;
}

/* Tabs and native tab wrappers should follow one shared pattern */
.goappily-settings-tabs,
.goappily-tabs.goappily-tabs-native {
  gap: 8px;
}

.goappily-settings-tab.go-btn.go-btn--ghost,
.goappily-tab.go-btn.go-btn--ghost {
  min-height: 42px;
  padding: 10px 14px;
}

/* Tables now rely on consolidated rules: keep only consistency helpers */
.goappily-reports-table.go-table,
.goappily-booking-view-native-shell table,
.goappily-settings-native-shell table,
.goappily-dashboard-native-shell table,
.goappily-templates-native-shell table,
.goappily-reports-native-shell table {
  box-shadow: none;
}

/* Shared operational list blocks */
.go-crm-activity-item,
.go-crm-queue-item,
.go-crm-management-item,
.go-crm-template-item {
  margin: 0;
  box-shadow: none;
}

/* Responsive consistency */
@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%;
  }
}
