
/* Go UI Core screen-specific merge pass
   Merges repeated settings/templates/reports patterns into one shared layer. */

/* Shared admin content shells for settings, templates, reports */
.goappily-settings-native-shell,
.goappily-templates-native-shell,
.goappily-reports-native-shell,
.goappily-native-templates-block,
.goappily-native-reports-block {
  color: var(--go-text, #15324b);
}

.goappily-settings-native-shell .go-brand,
.goappily-templates-native-shell .go-brand,
.goappily-reports-native-shell .go-brand,
.goappily-native-templates-block .go-brand,
.goappily-native-reports-block .go-brand,
.goappily-settings-header.go-brand,
.goappily-templates-header.go-brand,
.goappily-reports-header.go-brand {
  margin-bottom: 16px;
  border-radius: 18px;
  box-shadow: 0 8px 24px rgba(15,35,55,.10);
}

.goappily-settings-tabs-card,
.goappily-templates-toolbar.go-card,
.goappily-reports-toolbar.go-card,
.goappily-settings-panel.go-card,
.goappily-settings-section.go-card,
.goappily-template-card.go-card,
.goappily-report-card.go-card,
.goappily-native-templates-block .go-card,
.goappily-native-reports-block .go-card {
  background: var(--go-surface, #fff);
  border: 1px solid var(--go-border, #d7e3f1);
  border-radius: 18px;
  box-shadow: 0 2px 8px rgba(15,35,55,.06);
  padding: 16px;
}

.goappily-settings-grid.go-grid.go-grid-2,
.goappily-templates-grid.go-grid.go-grid-2,
.goappily-reports-grid.go-grid.go-grid-2,
.goappily-native-templates-block .go-grid-2,
.goappily-native-reports-block .go-grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}

.goappily-settings-native-shell .go-row,
.goappily-templates-native-shell .go-row,
.goappily-reports-native-shell .go-row,
.goappily-template-actions.go-row,
.goappily-report-actions.go-row,
.goappily-native-templates-block .go-row,
.goappily-native-reports-block .go-row,
.goappily-settings-native-shell .goappily-settings-tabs {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.goappily-settings-tab.go-btn.go-btn--ghost {
  min-height: 42px;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--go-text-soft, #4e6b86);
  box-shadow: none;
  font-weight: 700;
}

.goappily-settings-tab.go-btn.go-btn--ghost.active,
.goappily-settings-tab.go-btn.go-btn--ghost[aria-selected="true"],
.goappily-settings-tab.go-btn.go-btn--ghost.nav-tab-active {
  background: var(--go-primary-soft, #e8f4fd);
  color: var(--go-primary, #0e73b8);
  border-color: rgba(14,115,184,.16);
}

.goappily-template-filters.go-filter-bar,
.goappily-reports-filters.go-filter-bar,
.goappily-native-templates-block .go-filter-bar,
.goappily-native-reports-block .go-filter-bar {
  margin-bottom: 16px;
}

.goappily-settings-native-shell label {
  color: var(--go-text, #15324b);
  font-weight: 600;
}

.goappily-settings-native-shell input[type="text"],
.goappily-settings-native-shell input[type="email"],
.goappily-settings-native-shell input[type="number"],
.goappily-settings-native-shell input[type="url"],
.goappily-settings-native-shell input[type="search"],
.goappily-settings-native-shell input[type="date"],
.goappily-settings-native-shell textarea,
.goappily-settings-native-shell select {
  width: 100%;
  border: 1px solid var(--go-border, #d7e3f1);
  background: var(--go-surface, #fff);
  color: var(--go-text, #15324b);
  border-radius: 14px;
  padding: 12px 14px;
  outline: none;
  min-height: 42px;
}

.goappily-settings-native-shell input:focus,
.goappily-settings-native-shell textarea:focus,
.goappily-settings-native-shell select:focus {
  border-color: var(--go-primary, #0e73b8);
  box-shadow: 0 0 0 3px var(--go-primary-soft, #e8f4fd);
}

.goappily-reports-table.go-table,
.goappily-native-reports-block .go-table {
  width: 100%;
}

.go-crm-template-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.go-crm-template-item {
  border: 1px solid var(--go-border, #d7e3f1);
  background: var(--go-surface-soft, #f8fbff);
  border-radius: 14px;
  padding: 14px;
  box-shadow: none;
}

@media (max-width: 782px) {
  .goappily-settings-native-shell .goappily-settings-tabs,
  .goappily-template-actions.go-row,
  .goappily-report-actions.go-row,
  .goappily-native-templates-block .go-row,
  .goappily-native-reports-block .go-row {
    align-items: stretch;
  }

  .goappily-settings-grid.go-grid.go-grid-2,
  .goappily-templates-grid.go-grid.go-grid-2,
  .goappily-reports-grid.go-grid.go-grid-2,
  .goappily-native-templates-block .go-grid-2,
  .goappily-native-reports-block .go-grid-2 {
    grid-template-columns: 1fr;
  }

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