/* ============================================================
   MEMBERS PAGE (CRM) — BASE
   Follows PYOD table logic strictly
   ============================================================ */


/* ------------------------------------------------------------
   SUMMARY BAR
   ------------------------------------------------------------ */

.py-summary-text {
  font-family: var(--font-main);
  font-size: 14px;
  font-weight: 400;
  color: var(--color-black);
  margin: 0 0 16px 0;
  text-align: center;
}

.py-summary-text strong {
  font-weight: 600; /* VALUE logic */
}


/* ------------------------------------------------------------
   SEARCH INPUT (FORCE MEMBERS OVERRIDE)
   ------------------------------------------------------------ */

.py-search-input[type="search"],
.py-search-input[type="text"] {
  width: 100%;
  max-width: 360px;
  margin: 0 auto 20px auto;
  padding: 10px 12px;
  display: block;
  font-family: var(--font-main);
  font-size: 14px;
  font-weight: 600;
  color: var(--color-black);
  border: 1px solid #e9e9e9;
  border-radius: var(--radius-sm);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.py-search-input[type="search"]:focus,
.py-search-input[type="text"]:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 1px rgba(228, 201, 108, 0.35);
}


/* ============================================================
   DESKTOP TABLE (IDENTICAL TO PYOD TABLE)
   ============================================================ */

.py-members-desktop {
  width: 100%;
}

/* Table shell */
.py-members-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-main);
  font-size: 14px;
  border: 1px solid #e9e9e9;
}

/* Header = LABEL */
.py-members-table th {
  text-align: left;
  font-weight: 400;
  color: var(--color-black);
  padding: 10px 8px;
  border: 1px solid #e9e9e9;
  background: #f9f9f9;
  white-space: nowrap;
}

/* Cell = VALUE */
.py-members-table td {
  font-weight: 600;
  color: var(--color-black);
  padding: 10px 8px;
  border: 1px solid #e9e9e9;
  vertical-align: top; /* MATCH PYOD */
}

/* Remove default top header border (PYOD logic) */
.py-members-table thead tr:first-child th,
.py-members-table thead tr:first-child td {
  border-top: none !important;
  border-block-start: none !important;
}

/* Name column */
.py-members-table .col-name {
  font-weight: 600;
}


/* ------------------------------------------------------------
   CONNECT LINKS — DESKTOP (BLUE)
   ------------------------------------------------------------ */

.py-members-table td a,
.py-members-table .py-connect-link {
  font-weight: 600;
  color: var(--color-primary);
  text-decoration: none;
}

.py-members-table td a:hover {
  text-decoration: underline;
}


/* ============================================================
   MOBILE CARDS (SAME PATTERN AS PYOD)
   ============================================================ */

.py-members-mobile {
  display: none;
}

/* Card */
.py-member-card {
  border-bottom: 1px solid #e9e9e9;
  padding: 14px 0;
  font-family: var(--font-main);
}

/* Name = VALUE */
.py-card-name {
  font-size: 16px;
  font-weight: 600;
  color: var(--color-black);
  margin-bottom: 4px;
}

/* Package = VALUE */
.py-card-package {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-black);
  margin-bottom: 4px;
}

/* Last login */
.py-card-login {
  font-size: 13px;
  color: var(--color-black);
  margin-bottom: 0;
}

/* Label inside mobile meta */
.py-card-login strong {
  font-weight: 400; /* LABEL logic */
}

/* Buttons — MOBILE */
.py-card-buttons a {
  font-size: 13px;
  font-weight: 600;
  color: var(--color-primary);
  text-decoration: none;
}

.py-card-buttons a:hover {
  text-decoration: underline;
}


/* ============================================================
   MEMBERS – MOBILE CARD NAME DIVIDER
   ============================================================ */

@media (max-width: 768px) {

  .py-card-name {
    position: relative;
    padding-bottom: 0;
    margin-bottom: 5;
  }

  .py-card-name::after {
    content: "";
    display: block;
    height: 1px;
    width: 100%;
    margin-top: 6px;
    background: linear-gradient(
      to right,
      #e9e9e9,
      #f9f9f9
    );
  }

}


/* ============================================================
   RESPONSIVE SWITCH (AUTHORITATIVE)
   ============================================================ */

@media (max-width: 768px) {

  .py-members-desktop {
    display: none;
  }

  .py-members-mobile {
    display: block;
  }

}


/* ============================================================
   MEMBERS – MOBILE ROW STYLE (TABLE → CARD)
   ============================================================ */

@media (max-width: 768px) {

  .py-member-card {
    background: #f9f9f9;
    border: 1px solid #e9e9e9;
    border-radius: 0;
    padding: 14px 12px;
    margin-bottom: 12px;
    font-family: var(--font-main);
  }

  .py-member-card:not(:last-child) {
    border-bottom: 1px solid #e9e9e9;
  }

}

/* ============================================================
   MEMBERS – MAKE BLACK THE HEADING TABLE LINKS
   ============================================================ */


.py-members-table th a {
    color: #000;
    text-decoration: none;
}

.py-members-table th a:hover {
    text-decoration: underline;
}

.py-sort-arrow {
    margin-left: 4px;
    font-size: 11px;
}
