/**
 * Customer 360 — scoped styles (Phase 7).
 */

.co-root {
  display: flex;
  flex-direction: column;
  gap: var(--v2-space-5, 20px);
  max-width: 1600px;
}

.co-eyebrow {
  margin: 0;
  font-size: 12px;
  font-weight: 600;
  color: var(--v2-color-primary, #1f6b4a);
}

.co-hero {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  padding: 18px 20px;
}

.co-search {
  display: flex;
  gap: 8px;
  align-items: center;
  min-width: min(420px, 100%);
}

.co-search input {
  flex: 1;
  min-width: 0;
}

.co-user-chip {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 14px 16px;
}

.co-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--v2-surface-muted, #eef2f0);
}

.co-avatar-fallback {
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 20px;
  color: var(--v2-color-primary, #1f6b4a);
}

.co-user-chip-main {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  flex: 1;
}

.co-user-chip-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-end;
}

.co-metric-grid,
.co-module-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.co-metric,
.co-module {
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-decoration: none;
  color: inherit;
  min-width: 0;
}

.co-metric-label {
  font-size: 12px;
  color: var(--v2-text-secondary, #5c6b64);
}

.co-metric-value {
  font-size: 20px;
  font-weight: 650;
  word-break: break-word;
}

.co-metric-value.is-empty {
  font-size: 15px;
  font-weight: 500;
  color: var(--v2-text-secondary, #5c6b64);
}

.co-section-title {
  margin: 0 0 12px;
  font-size: 16px;
}

.co-two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.co-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.co-list li {
  padding: 10px 12px;
  border-bottom: 1px solid var(--v2-border, #e6ebe8);
}

.co-list li a,
.co-list li > div {
  display: flex;
  flex-direction: column;
  gap: 2px;
  text-decoration: none;
  color: inherit;
}

.co-list-card {
  padding: 0;
  overflow: hidden;
}

.co-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.co-table th,
.co-table td {
  padding: 10px 12px;
  text-align: left;
  border-bottom: 1px solid var(--v2-border, #e6ebe8);
  vertical-align: top;
}

.co-quick {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.co-tech pre {
  max-height: 360px;
  overflow: auto;
  font-size: 11px;
}

.co-gap {
  margin-top: 10px;
}

@media (max-width: 1440px) {
  .co-metric-grid,
  .co-module-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 1366px) {
  .co-hero,
  .co-user-chip,
  .co-two {
    flex-direction: column;
  }
  .co-two {
    grid-template-columns: 1fr;
  }
  .co-search {
    width: 100%;
  }
}
