/* ===== Base Table Styles (Desktop & Tablet) ===== */
.ert-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border-radius: 10px;
  overflow: hidden;
}

.ert-table tr {
  background: #FFF;
}

.ert-borders {
  border: 1px solid #ddd;
  border-radius: 10px;
  overflow: hidden;
}

.ert-borders th,
.ert-borders td {
  border: 1px solid #ddd;
}

.ert-no-borders th,
.ert-no-borders td {
  border: none !important;
}

.ert-table th,
.ert-table td {
  padding: 12px;
  font-family: inherit;
}

.ert-table th[scope="row"] {
  font-weight: normal;
}

.ert-title-row {
  background: #004b45;
  color: #fff;
  font-weight: bold;
  text-transform: none !important;
} 

/* ===== Mobile stacked layout ===== */
@media (max-width: 767px) {
  /* Remove full table border on mobile */
  .ert-borders {
    border: none;
    border-radius: 0;
  }

  .ert-table {
    background: transparent;
  }

  .ert-table thead {
    display: none;
  }

  .ert-table td {
    background: transparent !important;
  }

  .ert-table tr {
    display: block;
    margin-bottom: 20px;
    border: 1px solid #ddd;
    border-radius: 10px; /* match desktop radius */
    padding: 12px;
    background: #fff;

    /* Subtle shadow */
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  }

  .ert-table td,
  .ert-table th[scope="row"] {
    display: block;
    width: 100%;
    padding: 10px;
    border: none;
    box-sizing: border-box;
    background: transparent;
  }

  .ert-table td::before,
  .ert-table th[scope="row"]::before {
    content: attr(data-label);
    font-weight: 700;
    display: block;
    margin-bottom: 6px;
    color: #000;
  }
}