.member-access-card {
  padding: 24px;
}

.member-access-card .sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.member-access-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 20px;
}

.member-access-heading h1 {
  margin: 0 0 6px;
}

.member-access-heading > div > p:last-child {
  margin: 0;
  color: #64748b;
  font-size: 16px;
}

.member-access-kicker {
  margin: 0 0 6px;
  color: #2563eb;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.member-access-inline-summary {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.member-access-inline-summary span {
  padding: 8px 12px;
  border: 1px solid #dbeafe;
  border-radius: 999px;
  background: #eff6ff;
  color: #334155;
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}

.member-access-inline-summary strong {
  color: #1d4ed8;
  font-size: 16px;
}

.member-access-editor {
  margin-bottom: 10px;
  padding: 16px;
  border: 1px solid #dbe4f0;
  border-radius: 14px;
  background: #f8fafc;
}

.member-access-card #member-admin-status {
  margin: 10px 0;
  padding: 9px 12px;
  font-size: 14px;
}

.member-access-actions {
  display: flex;
  gap: 10px;
  margin-bottom: 24px;
}

.member-access-actions .btn {
  width: auto;
  min-width: 150px;
  margin: 0;
  border: 0;
  cursor: pointer;
}

.member-quick-activity {
  margin-bottom: 26px;
  padding: 16px;
  border: 1px solid #dbeafe;
  border-radius: 14px;
  background: #f8fbff;
}

.member-pending-requests {
  margin-bottom: 26px;
  padding: 16px;
  border: 1px solid #f1c75b;
  border-radius: 14px;
  background: #fffaf0;
}

.member-pending-table th:nth-child(1),
.member-pending-table td:nth-child(1) {
  width: 24%;
}

.member-pending-table th:nth-child(2),
.member-pending-table td:nth-child(2) {
  width: 42%;
}

.member-pending-table th:nth-child(3),
.member-pending-table td:nth-child(3) {
  width: 20%;
}

.member-pending-table th:nth-child(4),
.member-pending-table td:nth-child(4) {
  width: 14%;
  text-align: center;
}

.member-access-approve-btn {
  display: inline-block;
  width: auto;
  min-width: 82px;
  margin: 0;
  padding: 7px 12px;
  border: 0;
  font-size: 13px;
  cursor: pointer;
}

.member-pending-actions {
  display: flex;
  justify-content: center;
  gap: 6px;
}

.member-pending-actions .btn {
  width: auto;
  min-width: 72px;
  margin: 0;
  padding: 7px 10px;
  border: 0;
  font-size: 12px;
  cursor: pointer;
}

.member-quick-activity .member-access-list-heading {
  margin-bottom: 10px;
}

.member-quick-table {
  min-width: 520px;
}

.member-quick-table th:nth-child(1),
.member-quick-table td:nth-child(1) {
  width: 55%;
  text-align: left;
}

.member-quick-table th:nth-child(2),
.member-quick-table td:nth-child(2) {
  width: 15%;
  text-align: center;
}

.member-quick-table th:nth-child(3),
.member-quick-table td:nth-child(3) {
  width: 30%;
  text-align: left;
}

.member-quick-table td:first-child strong,
.member-quick-table td:first-child small {
  display: block;
}

.member-quick-table td:first-child small {
  margin-top: 2px;
  color: #64748b;
  font-size: 12px;
}

.member-access-list-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 10px;
}

.member-access-list-heading h2 {
  margin: 0 0 2px;
}

.member-access-list-heading .member-admin-search {
  flex: 0 1 360px;
  margin: 0;
}

.member-access-list-heading .member-admin-search input {
  width: 100%;
}

.member-access-table-wrap {
  border: 1px solid #d7e1ee;
  border-radius: 12px;
  overflow-x: auto;
}

.member-access-table {
  min-width: 620px;
  margin: 0;
}

.member-access-table th,
.member-access-table td {
  padding: 10px 12px;
  vertical-align: middle;
}

.member-access-table th:nth-child(1),
.member-access-table td:nth-child(1) {
  width: 25%;
}

.member-access-table th:nth-child(2),
.member-access-table td:nth-child(2) {
  width: 47%;
}

.member-access-table th:nth-child(3),
.member-access-table td:nth-child(3) {
  width: 14%;
  text-align: center;
}

.member-access-table th:nth-child(4),
.member-access-table td:nth-child(4) {
  width: 14%;
  text-align: center;
}

.member-access-table tbody tr:nth-child(even) td {
  background: #f8fafc;
}

.member-access-table .status-badge {
  min-width: 54px;
  padding: 5px 8px;
  font-size: 11px;
}

.member-access-row-actions {
  display: inline-flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  white-space: nowrap;
}

.member-access-table .member-access-row-actions .btn {
  display: inline-block;
  width: auto;
  min-width: 66px;
  margin: 0;
  padding: 7px 12px;
  border: 0;
  font-size: 13px;
  cursor: pointer;
}

@media (max-width: 700px) {
  .member-access-card {
    padding: 18px;
  }

  .member-access-heading,
  .member-access-list-heading {
    align-items: stretch;
    flex-direction: column;
    gap: 12px;
  }

  .member-access-inline-summary {
    justify-content: flex-start;
  }

  .member-access-list-heading .member-admin-search {
    flex-basis: auto;
  }

  .member-access-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .member-access-actions .btn {
    width: 100%;
    min-width: 0;
  }

  .member-quick-activity {
    margin-right: -6px;
    margin-left: -6px;
    padding: 12px;
  }

  .member-access-table-wrap {
    border: 0;
    overflow: visible;
  }

  .member-access-table {
    min-width: 0;
    border: 0;
    background: transparent;
  }

  .member-access-table thead {
    display: none;
  }

  .member-access-table tbody,
  .member-access-table tr,
  .member-access-table td {
    display: block;
    width: auto;
  }

  .member-access-table tbody {
    display: grid;
    gap: 10px;
  }

  .member-access-table tbody tr {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 4px 12px;
    padding: 12px;
    border: 1px solid #d7e1ee;
    border-radius: 12px;
    background: #ffffff;
  }

  .member-access-table tbody td {
    padding: 0;
    border: 0;
    background: transparent !important;
    text-align: left;
  }

  .member-access-table tbody td:nth-child(1) {
    grid-column: 1;
    grid-row: 1;
    font-weight: 900;
  }

  .member-access-table tbody td:nth-child(2) {
    grid-column: 1;
    grid-row: 2;
    overflow-wrap: anywhere;
    color: #475569;
    font-size: 14px;
  }

  .member-access-table tbody td:nth-child(3) {
    grid-column: 2;
    grid-row: 1;
  }

  .member-access-table tbody td:nth-child(4) {
    grid-column: 2;
    grid-row: 2;
  }

  .member-quick-table tbody tr {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .member-quick-table tbody td:nth-child(1) {
    grid-column: 1;
    grid-row: 1 / span 2;
  }

  .member-quick-table tbody td:nth-child(2) {
    grid-column: 2;
    grid-row: 1;
    text-align: right;
  }

  .member-quick-table tbody td:nth-child(3) {
    grid-column: 2;
    grid-row: 2;
    min-width: 88px;
    color: #64748b;
    font-size: 12px;
    text-align: right;
    white-space: nowrap;
  }
}

@media (max-width: 480px) {
  .member-access-actions {
    grid-template-columns: 1fr;
  }

}
