/* Central Owner — human Enterprise school activation workflow */
.owner-enterprise-directory-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin: 0 0 0.625rem;
  padding: 0.625rem 0.75rem;
  border: 1px solid #bfdbfe;
  border-radius: 0.625rem;
  background: #eff6ff;
}

.owner-enterprise-directory-action strong,
.owner-enterprise-human h2,
.owner-enterprise-human h3 {
  color: #0f172a;
}

.owner-enterprise-directory-action p,
.owner-enterprise-human p {
  margin: 0.125rem 0 0;
  color: #64748b;
  font-size: 0.6875rem;
  line-height: 1.35;
}

.owner-enterprise-action,
.owner-enterprise-secondary-action,
.owner-enterprise-user-action {
  min-height: 32px;
  padding: 0 0.75rem;
  border-radius: 999px;
  font: inherit;
  font-size: 0.6875rem;
  font-weight: 750;
  cursor: pointer;
}

.owner-enterprise-action {
  border: 1px solid #007fff;
  background: #007fff;
  color: #fff;
}

.owner-enterprise-action:hover { background: #006fe6; }

.owner-enterprise-secondary-action,
.owner-enterprise-user-action {
  border: 1px solid #b8c7dc;
  background: #fff;
  color: #1d4ed8;
}

.owner-enterprise-action:disabled,
.owner-enterprise-secondary-action:disabled,
.owner-enterprise-user-action:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.owner-enterprise-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 1rem;
  background: rgba(15, 23, 42, 0.42);
}

.owner-enterprise-modal {
  width: min(840px, calc(100vw - 2rem));
  max-height: min(88dvh, 820px);
  overflow: auto;
  padding: 0.75rem;
  border: 1px solid #d7e1ef;
  border-radius: 0.75rem;
  background: #fff;
  box-shadow: 0 24px 64px rgba(15, 23, 42, 0.2);
}

.owner-enterprise-modal-head,
.owner-enterprise-section-head,
.owner-enterprise-school-row,
.owner-enterprise-check,
.owner-enterprise-feature,
.owner-enterprise-user-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.625rem;
}

.owner-enterprise-modal-head {
  position: sticky;
  top: -0.75rem;
  z-index: 2;
  margin: -0.75rem -0.75rem 0.625rem;
  padding: 0.625rem 0.75rem;
  border-bottom: 1px solid #e2e8f0;
  background: rgba(255, 255, 255, 0.98);
}

.owner-enterprise-modal-head h2,
.owner-enterprise-human h2,
.owner-enterprise-human h3 {
  margin: 0;
  font-weight: 800;
}

.owner-enterprise-modal-head h2 { font-size: 0.95rem; }
.owner-enterprise-human h2 { font-size: 1.0625rem; }
.owner-enterprise-human h3 { font-size: 0.8125rem; }

.owner-enterprise-close {
  width: 32px;
  height: 32px;
  border: 1px solid #d7e1ef;
  border-radius: 999px;
  background: #fff;
  color: #475569;
  cursor: pointer;
}

.owner-enterprise-search {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.5rem;
  margin-bottom: 0.625rem;
}

.owner-enterprise-search input,
.owner-enterprise-manage select {
  min-height: 32px;
  padding: 0 0.625rem;
  border: 1px solid #b8c7dc;
  border-radius: 0.5rem;
  background: #fff;
  color: #0f172a;
  font: inherit;
  font-size: 0.75rem;
}

.owner-enterprise-results,
.owner-enterprise-stack,
.owner-enterprise-checks,
.owner-enterprise-users,
.owner-enterprise-features,
.owner-enterprise-diagnostics {
  display: grid;
  gap: 0.5rem;
}

.owner-enterprise-school-card,
.owner-enterprise-section,
.owner-enterprise-summary-card,
.owner-enterprise-review-card,
.owner-enterprise-diagnostic-card {
  border: 1px solid #e2e8f0;
  border-radius: 0.625rem;
  background: #fff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.025);
}

.owner-enterprise-school-card,
.owner-enterprise-review-card,
.owner-enterprise-section,
.owner-enterprise-diagnostic-card { padding: 0.625rem; }
.owner-enterprise-summary-card { padding: 0.5rem 0.625rem; }

.owner-enterprise-school-card:hover { border-color: #93c5fd; }
.owner-enterprise-school-copy { min-width: 0; }
.owner-enterprise-school-copy strong { display: block; color: #0f172a; font-size: 0.75rem; }
.owner-enterprise-school-copy span { display: block; color: #64748b; font-size: 0.625rem; line-height: 1.35; }

.owner-enterprise-state {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 0 0.5rem;
  border-radius: 999px;
  font-size: 0.625rem;
  font-weight: 800;
  white-space: nowrap;
}

.owner-enterprise-state.ready,
.owner-enterprise-state.active { background: #ecfdf3; color: #067647; }
.owner-enterprise-state.pending { background: #fff7ed; color: #b54708; }
.owner-enterprise-state.suspended { background: #fef3f2; color: #b42318; }
.owner-enterprise-state.neutral { background: #f1f5f9; color: #475569; }

.owner-enterprise-review-grid,
.owner-enterprise-summary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem;
}

.owner-enterprise-review-label,
.owner-enterprise-summary-card span {
  display: block;
  color: #64748b;
  font-size: 0.625rem;
  font-weight: 700;
}

.owner-enterprise-summary-card strong {
  display: block;
  margin-top: 0.125rem;
  color: #0f172a;
  font-size: 0.875rem;
  font-weight: 800;
}

.owner-enterprise-review-actions,
.owner-enterprise-page-actions,
.owner-enterprise-manage-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
  margin-top: 0.625rem;
}

.owner-enterprise-human {
  display: grid;
  gap: 0.625rem;
  margin-top: 0.5rem;
}

.owner-enterprise-hero {
  padding: 0.75rem;
  border: 1px solid #bfdbfe;
  border-radius: 0.625rem;
  background: linear-gradient(135deg, #eff6ff, #ffffff);
}

.owner-enterprise-hero-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.25rem;
}

.owner-enterprise-check,
.owner-enterprise-feature,
.owner-enterprise-user-row {
  min-height: 38px;
  padding: 0.4rem 0;
  border-bottom: 1px solid #f1f5f9;
}

.owner-enterprise-check:last-child,
.owner-enterprise-feature:last-child,
.owner-enterprise-user-row:last-child { border-bottom: 0; }

.owner-enterprise-check-copy,
.owner-enterprise-user-copy { min-width: 0; }
.owner-enterprise-check-copy strong,
.owner-enterprise-user-copy strong { display: block; color: #0f172a; font-size: 0.6875rem; }
.owner-enterprise-check-copy span,
.owner-enterprise-user-copy span { display: block; color: #64748b; font-size: 0.625rem; }

.owner-enterprise-user-meta {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.owner-enterprise-manage {
  display: grid;
  gap: 0.5rem;
  padding: 0.625rem;
  border: 1px solid #bfdbfe;
  border-radius: 0.625rem;
  background: #f8fbff;
}

.owner-enterprise-diagnostics[hidden],
.owner-enterprise-manage[hidden],
[data-enterprise-diagnostics-technical="true"] {
  display: none !important;
}

.owner-enterprise-diagnostic-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem;
}

.owner-enterprise-diagnostic-card code,
.owner-enterprise-diagnostic-card pre {
  display: block;
  max-width: 100%;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
  color: #334155;
  font-size: 0.625rem;
}

.owner-enterprise-empty,
.owner-enterprise-error,
.owner-enterprise-loading {
  padding: 0.75rem;
  border: 1px dashed #cbd5e1;
  border-radius: 0.625rem;
  color: #64748b;
  text-align: center;
  font-size: 0.6875rem;
}
.owner-enterprise-error { border-color: #fda29b; background: #fff5f5; color: #b42318; }

@media (max-width: 760px) {
  .owner-enterprise-directory-action,
  .owner-enterprise-school-row,
  .owner-enterprise-user-row,
  .owner-enterprise-section-head {
    align-items: stretch;
    flex-direction: column;
  }

  .owner-enterprise-search,
  .owner-enterprise-review-grid,
  .owner-enterprise-summary-grid,
  .owner-enterprise-diagnostic-grid {
    grid-template-columns: 1fr;
  }

  .owner-enterprise-modal-backdrop { padding: 0; align-items: end; }
  .owner-enterprise-modal {
    width: 100%;
    max-height: 92dvh;
    border-radius: 0.875rem 0.875rem 0 0;
  }

  .owner-enterprise-user-meta { justify-content: flex-start; }
}
