 /* ---------- Table Base Styles ---------- */
.neighdemo-container {
  width: 100%;
  margin: 0 auto;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  color: #111;
  box-sizing: border-box;
}

.neighdemo-container table {
  width: 100%;
  border-collapse: collapse;
  table-layout: auto;
}

.neighdemo-container thead th {
  background: #f6f7f9;
  font-weight: 700;
  text-align: center;
  padding: 12px 10px;
  border: 1px solid #e2e4e7;
  font-size: 0.975rem;
}

.neighdemo-container tbody td {
  padding: 10px;
  border: 1px solid #e6e8eb;
  vertical-align: top;
  font-size: 0.92rem;
  line-height: 1.35;
  word-break: break-word;
}

/* Row hover for desktop */
.neighdemo-container tbody tr:hover {
  background: #fbfcfd;
}

@media (min-width: 680px) {
  .neighdemo-container th, .neighdemo-container td {
    padding: 12px 14px;
  }
}

/* ---------- Accessibility helpers ---------- */
/* Visually hide but keep for screen readers */
/* .neighdemo-container .visually-hidden {
  border: 0 !important;
  clip: rect(1px, 1px, 1px, 1px) !important;
  clip-path: inset(50%) !important;
  height: 1px !important;
  margin: -1px !important;
  overflow: hidden !important;
  padding: 0 !important;
  position: absolute !important;
  white-space: nowrap !important;
  width: 1px !important;
} */

@media (max-width: 679px) {

  /* Turn table elements into blocks */
  .neighdemo-container table,
  .neighdemo-container thead,
  .neighdemo-container tbody,
  .neighdemo-container th,
  .neighdemo-container td,
  .neighdemo-container tr {
    display: block;  
    width: 100%;
  }

.neighdemo-container tbody td::before {
  content: attr(data-label) ": ";   
  display: inline-block;           
  font-weight: 600;
  color: #333;
  width: 48%;                       
  min-width: 120px;                 
  padding-right: 8px;
  text-align: left;
  white-space: normal;             
}

  /* Hide the table header visually but keep it for screen readers */
  .neighdemo-container thead {
  }
  .neighdemo-container thead tr {
    position: absolute;
    left: -9999px;
    top: -9999px;
  }

  /* Each row becomes a card */
  .neighdemo-container tbody tr {
    border: 1px solid #e6e8eb;
    margin: 0 0 1rem 0;
    padding: 0.6rem;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 1px 0 rgba(0,0,0,0.03);
  }

  /* Each cell becomes a row inside the card */
  /* .neighdemo-container tbody td {
    display: flex;
    width: 100%;
    padding: 8px 10px;
    border: none; 
    border-bottom: 1px solid #f1f3f5;
    background: transparent;
  } */

.neighdemo-container tbody td {
  display: flex;
  flex-wrap: wrap;          
  justify-content: flex-start;
  align-items: baseline;
  padding: 8px 0;
  border: none;
  border-bottom: 1px solid #f0f1f3;
}

  /* Remove last cell divider */
  .neighdemo-container tbody tr td:last-child {
    border-bottom: none;
  }

  /* Label (left) and value (right) inside each td */
  .neighdemo-container tbody td::before {
    content: attr(data-label);
    flex: 0 0 35%;
    max-width: 35%;
    font-weight: 700;
    padding-right: 0.6rem;
    white-space: normal;
    line-height: 1.2;
    color: #333;
  }
  .neighdemo-container tbody td > * {
    flex: 1 1 auto;
  }

  /* Improve tap targets and readability */
  .neighdemo-container tbody td {
    font-size: 0.95rem;
  }
}

/* ---------- Focus styles (keyboard) ---------- */
.neighdemo-container a:focus,
.neighdemo-container button:focus,
.neighdemo-container td:focus {
  outline: 3px solid #2563eb;
  outline-offset: 2px;
  border-radius: 4px;
}

/* ---------- Print adjustments ---------- */
@media print {
  .neighdemo-container table { border: none; }
  .neighdemo-container thead { display: table-header-group; position: static; left: auto; top: auto; }
  .neighdemo-container tbody tr { display: table-row; border: none; page-break-inside: avoid; }
  .neighdemo-container tbody td { display: table-cell; border: 1px solid #ccc; }
}