/* Le azioni restano visibili senza scorrimento laterale. */
@media screen and (max-width: 1024px) {
  .soci-table {
    display: block;
    width: 100%;
    min-width: 0;
    border: 0;
  }
  .soci-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
  }
  .soci-table tbody {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    padding: 14px;
  }
  .soci-table tbody tr {
    display: block;
    min-width: 0;
    border: 1px solid #e0e8ed;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 2px 6px #193e4905;
  }
  .soci-table tbody tr:nth-child(even) {
    background: #f7f9fa;
  }
  .soci-table td,
  .soci-table td:first-child {
    display: block;
    width: 100%;
    padding: 12px 15px;
    border: 0;
    border-bottom: 1px solid #e9eef1;
    font-size: 14px;
    white-space: normal;
    overflow-wrap: anywhere;
  }
  .soci-table td:last-child {
    border-bottom: 0;
  }
  .soci-table td[data-label]::before {
    content: attr(data-label);
    display: block;
    font-size: 10px;
    letter-spacing: 0.5px;
    color: #718591;
    margin-bottom: 6px;
    font-weight: 600;
    text-transform: uppercase;
  }
  .soci-table td:first-child::before {
    display: none;
  }
  .soci-table .person b {
    font-size: 16px;
    line-height: 1.35;
  }
  .soci-table .person small {
    font-size: 11px;
    margin-top: 5px;
  }
  .soci-table .member-quota {
    min-width: 0;
    width: 100%;
    gap: 10px;
    align-items: center;
  }
  .soci-table .quota-amount {
    flex-basis: 100%;
    font-size: 15px;
    font-weight: 600;
  }
  .soci-table .quota-actions {
    max-width: 100%;
    flex-wrap: wrap;
    gap: 8px;
  }
  .soci-table .quota-actions button,
  .soci-table .member-quota > .button,
  .soci-table .quota-delete {
    min-height: 44px;
    padding: 10px 12px;
    font-size: 13px;
  }
  .soci-table .member-status-form {
    width: 100%;
  }
  .soci-table .member-status-select {
    width: 100%;
    max-width: 100%;
    min-height: 44px;
    font-size: 15px;
  }
  .soci-table .empty {
    grid-column: 1/-1;
  }
  .soci-table td small {
    overflow-wrap: anywhere;
  }
}
@media screen and (max-width: 700px) {
  .soci-table tbody {
    grid-template-columns: minmax(0, 1fr);
    padding: 12px;
    gap: 12px;
  }
}
