/* Board members styling */

.eha-table-wrap{ overflow-x:auto; }

.eha-table{
  width: 100%;
  border-collapse: collapse;
  background: var(--eha-surface);
  border: 1px solid rgba(0,0,0,.10);
  border-radius: var(--eha-radius);
  overflow: hidden;
  min-width: 640px;
}

.eha-table th,
.eha-table td{
  padding: 12px 12px;
  border-bottom: 1px solid rgba(0,0,0,.10);
  text-align: left;
  color: var(--eha-text);
}

.eha-table th{
  background: rgba(0,0,0,.03);
  font-weight: 800;
}

.eha-table tbody tr:nth-child(even){
  background: rgba(0,0,0,.015);
}

/* Cards option */
.eha-cards{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
@media (max-width: 768px){
  .eha-cards{ grid-template-columns: 1fr; }
}
.eha-card{
  border: 1px solid rgba(0,0,0,.10);
  border-radius: var(--eha-radius);
  background: rgba(0,0,0,.02);
  padding: 12px;
}
.eha-card__title{
  font-weight: 900;
  margin-bottom: 6px;
}
.eha-card__meta{
  opacity: .9;
  font-size: 14px;
}

/* =========================================================
   Shared Responsive Tables (.eha-table)
   ========================================================= */

.eha-table-wrap{
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-gutter: stable both-edges;
  border-radius: var(--eha-radius);
}

@media (max-width: 640px){
  .eha-table{
    min-width: 0;
    border: 0;
    background: transparent;
  }

  .eha-table thead{
    display: none;
  }

  .eha-table tbody tr{
    display: block;
    border: 1px solid var(--eha-border);
    border-radius: var(--eha-radius);
    background: var(--eha-surface);
    margin: 0 0 12px 0;
    overflow: hidden;
  }

  .eha-table tbody td{
    display: flex;
    gap: 10px;
    align-items: flex-start;
    justify-content: space-between;
    padding: 10px 12px;
    border-bottom: 1px solid var(--eha-border);
    text-align: left;
  }

  .eha-table tbody td:last-child{
    border-bottom: 0;
  }

  .eha-table tbody td::before{
    content: attr(data-label);
    font-weight: 800;
    opacity: .85;
    flex: 0 0 42%;
    max-width: 42%;
  }

  .eha-table tbody td > *{
    flex: 1 1 auto;
    min-width: 0;
  }
}

