/* v0.90 — Revisión de perfiles como tabla editorial amplia, uniforme y con hover real. */

.admin-content:has(.admin-profiles-review-v90) {
  width: min(calc(100% - 40px), 1580px);
}

.admin-profiles-review-v90 {
  overflow: hidden;
}

.admin-profiles-review-v90 > header {
  margin-bottom: 1rem;
}


.admin-profiles-review-v90 .admin-table-toolbar {
  margin-bottom: .9rem;
}

.admin-profiles-review-v90 .admin-filter-field {
  min-width: 0;
}

.admin-profiles-review-v90 .admin-filter-field input,
.admin-profiles-review-v90 .admin-filter-field select {
  width: 100%;
}

.admin-profiles-toolbar {
  grid-template-columns: minmax(320px, 1.55fr) minmax(190px, .75fr) minmax(120px, .45fr) minmax(190px, .75fr);
  align-items: end;
}

.admin-profiles-review-v90 .admin-table-summary {
  margin: 0 0 .35rem;
}

.profile-review-grid-empty {
  grid-template-columns: 1fr;
  min-height: 0;
}

.profile-review-grid-empty .profile-review-grid-cell {
  padding: 1rem 1.1rem;
}

.profile-review-scroll {
  overflow-x: auto;
  overflow-y: visible;
  padding: .25rem .2rem 1rem;
  scrollbar-color: rgba(83, 65, 137, .45) transparent;
}

.profile-review-grid-table {
  display: grid;
  gap: .72rem;
  min-width: 1430px;
}

.profile-review-grid-head,
.profile-review-grid-row {
  display: grid;
  grid-template-columns: minmax(330px, 1.38fr) minmax(240px, .92fr) minmax(130px, .44fr) minmax(190px, .62fr) minmax(170px, .55fr) minmax(285px, .86fr);
  align-items: stretch;
}

.profile-review-grid-head {
  gap: 0;
  padding: 0 .15rem;
  border-bottom: 1px solid #e5ebf5;
  color: #4d5d7b;
  font-size: .74rem;
  font-weight: 900;
  letter-spacing: .045em;
  text-transform: uppercase;
}

.profile-review-grid-head span {
  padding: .75rem .95rem;
  white-space: nowrap;
}

.profile-review-grid-row {
  min-height: 116px;
  border: 1px solid #e4ebf5;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 12px 26px rgba(29, 42, 74, .04);
  transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease, background-color .16s ease;
}

.profile-review-grid-row:hover,
.profile-review-grid-row:focus-within {
  transform: translateY(-1px);
  border-color: rgba(83, 65, 137, .34);
  background: linear-gradient(180deg, #ffffff 0%, #fbf9ff 100%);
  box-shadow: 0 20px 42px rgba(29, 42, 74, .095);
}

.profile-review-grid-cell {
  display: grid;
  align-content: center;
  min-width: 0;
  padding: .95rem .95rem;
  border-right: 1px solid #edf1f7;
}

.profile-review-grid-cell:last-child {
  border-right: 0;
}

.profile-review-profile-cell {
  grid-template-columns: 82px minmax(0, 1fr);
  gap: .9rem;
  align-items: center;
}

.profile-review-thumb {
  display: grid;
  place-items: center;
  width: 82px;
  height: 74px;
  overflow: hidden;
  border: 1px solid #dfe6f2;
  border-radius: 18px;
  background: linear-gradient(135deg, #f5f7fb, #ece8ff);
}

.profile-review-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-review-thumb span {
  color: #534189;
  font-weight: 950;
  letter-spacing: .04em;
}

.profile-review-main-copy,
.profile-review-contact-cell,
.profile-review-followup-cell label {
  min-width: 0;
}

.profile-review-main-copy strong,
.profile-review-contact-cell strong {
  display: block;
  color: var(--navy-deep);
  line-height: 1.18;
  overflow-wrap: anywhere;
}

.profile-review-main-copy small,
.profile-review-contact-cell small {
  display: block;
  margin-top: .22rem;
  color: var(--muted);
  font-size: .78rem;
  line-height: 1.34;
  overflow-wrap: anywhere;
}

.profile-review-main-copy .admin-edit-profile-link {
  display: inline-flex;
  width: fit-content;
  margin-top: .58rem;
  padding: .35rem .68rem;
  border: 1px solid #dfe6f2;
  border-radius: 999px;
  background: #fff;
  font-size: .78rem;
  font-weight: 850;
}

.profile-review-status-cell {
  justify-items: start;
  gap: .46rem;
}

.profile-review-field-cell,
.profile-review-followup-cell label {
  gap: .32rem;
}

.profile-review-field-cell > span,
.profile-review-followup-cell label > span {
  color: #34476c;
  font-size: .72rem;
  font-weight: 900;
  white-space: nowrap;
}

.profile-review-field-cell select,
.profile-review-followup-cell input {
  width: 100%;
  min-height: 46px;
  border-radius: 13px;
  font-weight: 800;
}

.profile-review-followup-cell {
  grid-template-columns: minmax(0, 1fr) 112px;
  gap: .6rem;
  align-items: end;
}

.profile-review-followup-cell .button {
  width: 100%;
  min-height: 46px;
  padding-inline: .65rem;
}

@media (max-width: 1180px) {
  .admin-profiles-toolbar {
    grid-template-columns: repeat(2, minmax(220px, 1fr));
  }
}

@media (max-width: 980px) {
  .admin-content:has(.admin-profiles-review-v90) {
    width: min(calc(100% - 24px), 1580px);
  }

  .profile-review-grid-table {
    min-width: 0;
  }

  .profile-review-grid-head {
    display: none;
  }

  .profile-review-grid-row {
    grid-template-columns: 1fr;
    gap: 0;
    min-height: 0;
    padding: .2rem;
  }

  .profile-review-grid-cell {
    border-right: 0;
    border-bottom: 1px solid #edf1f7;
  }

  .profile-review-grid-cell:last-child {
    border-bottom: 0;
  }

  .profile-review-followup-cell {
    grid-template-columns: 1fr;
  }
}
