/**
 * TPD Evaluator – Form Layout & Components
 * ----------------------------------------
 * 1) Grid layout (main + sidebar)
 * 2) Breadcrumb
 * 3) Card wrapper
 * 4) Headings & content
 * 5) Text inputs / selects
 * 6) Radio/checkbox tiles
 * 7) Wizard navigation
 * 8) Utilities
 */

:root {
  --color-blue: #5562EB;
  --color-blue-dark: #4F5AF7;
  --color-green: #2AD6AE;
  --color-gray-light: #F5F5F9;
  --color-gray-border: #E2E4EE;
  --color-text: #3C454C;
}

.tpd-evaluator {
  font-family: var(--font-main);
}
.btn-purple {
    background-color: #231834;
    color: #FFF !important;
    font-size: 1em;
    padding: 15px 25px !important;
}
.btn-blue {
    background-color: #0081ff;
    color: #FFF;
    font-size: 1em;
    padding: 15px 25px !important;
}
.btn-block {
    display: block;
    width: 100%;
}
.btn {
    display: inline-block;
    padding: 6px 12px;
    margin-bottom: 0;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.42857143;
    text-align: center;
    white-space: nowrap;
    vertical-align: middle;
    -ms-touch-action: manipulation;
    touch-action: manipulation;
    cursor: pointer;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    background-image: none;
    border: 1px solid transparent;
    border-radius: 4px;
}
/* 1) GRID */
.tpd-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 2rem;
}
@media (max-width: 768px) {
  .tpd-grid { grid-template-columns: 1fr; }
}
/* ───────────  Intro Content ─────────── */
#compensation-landing-page .content {
  margin: 0 auto;
  padding: 0 15px;
}

.welcome-title {
  font-size: 1.75rem;
  line-height: 1.3;
  margin-bottom: 1rem;
  color: #003c71;
}

.welcome-intro {
  margin-bottom: 2rem;
  font-size: 1rem;
  line-height: 1.6;
  color: #555;
}

/* ───────────  Disclaimer Scrollbox ─────────── */
#compensation-landing-page #compensation-disclaimer-table {
  border: 1px solid #e5e5e5;
  background: #fff;
  overflow-y: auto;
  max-height: 350px;
  padding: 15px 25px;
  margin-bottom: 2rem;
}

#compensation-landing-page #compensation-disclaimer-table .content p {
  margin-bottom: 1rem;
  color: #333;
}

/* ───────────  Agreement Note ─────────── */
#compensation-landing-page small {
  display: block;
  font-size: 0.875rem;
  color: #666;
  margin-bottom: 2rem;
}

/* ───────────  “I agree & continue” button ─────────── */
#tpd_eval_start {
  font-size: 1rem;
  padding: 0.75rem 1.5rem;
}
/* 2) BREADCRUMB */
.tpd-breadcrumb {
  display: flex;
  justify-content: center;
  list-style: none;
  margin: 0 0 2rem;
  padding: 0;
}
.tpd-breadcrumb .step {
  padding: 0 1rem;
  color: #343434;
  white-space: nowrap;
}
.tpd-breadcrumb .step.active { color: #FF671F; cursor: default; }
.tpd-breadcrumb .step.disabled { opacity: .4; cursor: not-allowed; }

/* 3) CARD WRAPPER */
.online-item {
  background: #fff;
  box-shadow: 0 10px 35px rgba(0,0,0,0.05);
  border: 5px solid transparent;
  border-radius: 6px;
  margin-bottom: 2rem;
  padding: 2rem 1.875rem;
  transition: all .2s cubic-bezier(.02,.54,.58,1);
}
.online-item.left {
  padding-bottom: 1rem;
}

/* 4) HEADINGS & CONTENT */
.heading-title {
  border-bottom: 1px solid #CECECE;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
}
.heading-title h3 { margin: 0 0 .5rem; }
.content p,
.content-assessment p {
  font-size: 1rem;
  line-height: 2;
  color: #627792;
}

/* 5) TEXT INPUTS & SELECTS */
.form-group { margin-bottom: 1.5rem; }
.form-group label {
  display: block;
  margin-bottom: .5rem;
  font-weight: 600;
}
input[type="text"],
input[type="number"],
textarea,
.form-control {
  width: 100%;
  height: 50px;
  padding: 0 1rem;
  margin-bottom: 1rem;
  background: var(--color-gray-light);
  border: 1px solid var(--color-gray-border);
  border-radius: 4px;
  color: var(--color-text);
  font-size: 1rem;
  transition: border-color .2s;
}
input:focus,
textarea:focus {
  outline: none;
  border-color: var(--color-blue);
}
select.form-control {
  width: 100%;
  height: 50px;
  padding: 0 1rem;
  margin-bottom: 1rem;
  background: var(--color-gray-light) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='24' height='24'><path fill='%23444' d='M7.406 7.828l4.594 4.594 4.594-4.594 1.406 1.406-6 6-6-6z'/></svg>") no-repeat 95% center;
  background-size: 16px;
  border: 1px solid var(--color-gray-border);
  border-radius: 4px;
  cursor: pointer;
}

/* 6) RADIO / CHECKBOX TILES */
/*───────────────────────────────────────────────────────────────
  RADIO & CHECKBOX TILES (clean, single definition)
───────────────────────────────────────────────────────────────*/
.inputGroup {
  position: relative;
  margin: 0.5rem 0;
}
.inputGroup input {
  /* hide native control, but keep it clickable */
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0;
  width: 1.25rem;
  height: 1.25rem;
  cursor: pointer;
}
.inputGroup label {
  display: block;
  padding: 0.9rem 1rem;
  padding-left: 3rem;
  background: #f5f5f9;
  border: 1px solid var(--color-gray-border);
  border-radius: 4px;
  color: var(--color-text);
  cursor: pointer;
  transition: background 0.25s, border-color 0.25s;
  position: relative;
}
/* base circle outline for both radios & checkboxes */
.inputGroup label::before {
  content: '';
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  width: 1.25rem;
  height: 1.25rem;
  border: 2px solid var(--color-gray-border);
  border-radius: 50%;
  background: #fff;
  box-sizing: border-box;
  transition: border-color 0.25s, background 0.25s;
}
/* checkmark for checkboxes */
.inputGroup input[type="checkbox"] + label::after {
  content: '✓';
  position: absolute;
  left: 1.15rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1rem;
  color: #fff;
  opacity: 0;
  transition: opacity 0.2s;
}
/* inner dot for radios */
.inputGroup input[type="radio"] + label::after {
  content: '';
  position: absolute;
  left: 1.4rem;
  top: 50%;
  transform: translateY(-50%);
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 50%;
  background: var(--color-blue);
  opacity: 0;
  transition: opacity 0.2s;
}
/* checked states */
.inputGroup input:checked + label {
  background: var(--color-blue-dark);
  border-color: var(--color-blue-dark);
  color: #fff;
}
.inputGroup input:checked + label::before {
  border-color: var(--color-blue-dark);
  background: var(--color-blue-dark);
}
.inputGroup input[type="checkbox"]:checked + label::after,
.inputGroup input[type="radio"]:checked + label::after {
  opacity: 1;
}

/* Tidy up any old stray pseudo‑styles */
.inputGroup label.remove-this::after,
.inputGroup label.remove-this::before { display: none !important; }
/* 7) WIZARD NAVIGATION */
.tpd-wizard-nav {
  display: flex;
  justify-content: space-between;
  margin-top: 2rem;
}
.tpd-wizard-nav .btn {
  flex: 1;
  margin: 0 .5rem;
}
@media (max-width: 600px) {
  .tpd-wizard-nav { flex-direction: column; }
  .tpd-wizard-nav .btn { margin: .5rem 0; }
}

/* 8) UTILITIES */
.tpd-error {
  outline: 2px solid #FF6347;
  background: #FFF6F4;
}
.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}
/* ─── Table container ─── */
#tpd-super-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 2rem;
}
#tpd-super-table th,
#tpd-super-table td {
  border: 1px solid #E2E4EE;
  padding: 0.75rem 1rem;
  vertical-align: middle;
  text-align: left;
}

/* ─── Select & Text Inputs ─── */
#tpd-super-table select.form-control,
#tpd-super-table input.form-control {
  display: block;
  width: 100%;
  height: 44px;
  padding: 0 1rem;
  background: #F5F5F9;
  border: 1px solid #E2E4EE;
  border-radius: 4px;
  color: #3C454C;
  font-size: 1rem;
  box-sizing: border-box;
}

/* ─── Currency input group ─── */
#tpd-super-table .input-group {
  display: flex;
  align-items: stretch;
  width: 100%;
  margin: 0; /* override bootstrap */
}
#tpd-super-table .input-group-addon {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #F5F5F9;
  border: 1px solid #E2E4EE;
  border-right: none;
  border-radius: 4px 0 0 4px;
  padding: 0 0.75rem;
  font-size: 1rem;
  color: #3C454C;
}
#tpd-super-table .input-group .form-control.DollarAmount {
  flex: 1 1 auto;
  border: 1px solid #E2E4EE;
  border-left: none;
  border-radius: 0 4px 4px 0;
  margin: 0; /* override bootstrap */
  padding: 0 1rem;
  height: 44px;
}

/* ─── “Remove” & “Add row” buttons ─── */
#tpd-super-table .tpd-remove-row {
  background: #FF671F;
  color: #FFF;
  border: none;
  border-radius: 4px;
  padding: 0.375rem 0.75rem;
  cursor: pointer;
  font-size: 0.9rem;
}
#tpd-super-table .tpd-add-row {
  display: block;
  width: 100%;
  background: #5562EB;
  color: #FFF;
  border: none;
  border-radius: 4px;
  padding: 0.75rem;
  font-size: 1rem;
  cursor: pointer;
  margin-top: 1rem;
}

/* ─── Optional: zebra‑striping for rows ─── */
#tpd-super-table tbody tr:nth-child(odd) {
  background: #fafafb;
}
#tpd-super-table {
  width: 100%;
  table-layout: fixed;
}
#tpd-super-table th,
#tpd-super-table td {
  vertical-align: middle;
  padding: 0.5rem;
}
#tpd-super-table th:nth-child(1),
#tpd-super-table td:nth-child(1) { width: 40%; }
#tpd-super-table th:nth-child(2),
#tpd-super-table td:nth-child(2) { width: 25%; }
#tpd-super-table th:nth-child(3),
#tpd-super-table td:nth-child(3) { width: 25%; }
#tpd-super-table th:nth-child(4),
#tpd-super-table td:nth-child(4) { width: 10%; }

/* 2) UNIFORM INPUT / SELECT HEIGHT */
#tpd-super-table select.form-control,
#tpd-super-table input.form-control {
  height: 45px;
  line-height: 1.2;
  box-sizing: border-box;
}

/* 3) FLEX‑BOX INPUT‑GROUP */
#tpd-super-table .input-group {
  display: flex;
}
#tpd-super-table .input-group-addon {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 45px;
  padding: 0 0.75rem;
  border-radius: 4px 0 0 4px;
  background: var(--color-gray-light);
  border: 1px solid var(--color-gray-border);
  box-sizing: border-box;
}
#tpd-super-table .input-group .form-control {
  border-left: none;
  border-radius: 0 4px 4px 0;
  height: 45px;
}

/* 4) DELETE BUTTON ALIGNMENT */
#tpd-super-table .tpd-remove-row {
  height: 45px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}
/*────────────────────────────────────────────────────────────────
   tpd_claim_table tweaks
────────────────────────────────────────────────────────────────*/

/* 1) Ensure table cells all vertically center their content */
#tpd_claim_table th,
#tpd_claim_table td {
  vertical-align: middle;
  padding: 0.75rem 1rem;
}

/* 2) Make the currency input a single, tight flex group */
#tpd_claim_table td .input-group {
  display: flex;
  margin: 0;
  width: 100%;
}

/* 3) Style the “$” addon */
#tpd_claim_table .input-group-addon {
  background: var(--color-gray-light);
  border: 1px solid var(--color-gray-border);
  border-right: none;
  border-radius: 4px 0 0 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 3.5rem;       /* ensure consistent width */
}

/* 4) Style the amount field itself */
#tpd_claim_table .input-group .form-control {
  border: 1px solid var(--color-gray-border);
  border-left: none;
  border-radius: 0 4px 4px 0;
  padding: 0.5rem 1rem;
  height: auto;
  line-height: 1.25;       /* vertically center text */
}

/* 5) Center the remove‑row button & match sizing */
#tpd_claim_table td.text-right {
  text-align: center;
}
#tpd_claim_table .tpd-remove-row {
  width: 2.5rem;
  height: 2.5rem;
  line-height: 1;
  padding: 0;
  margin: 0;
  font-size: 1.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* 6) Keep the “Add row” full‑width and flush with the table */
#tpd_claim_table tfoot button.tpd-add-row {
  width: 100%;
  margin-top: 0.5rem;
}

/* 7) Small responsive tweak: stack columns on narrow screens */
@media (max-width: 576px) {
  #tpd_claim_table thead { display: none; }
  #tpd_claim_table tr { display: block; margin-bottom: 1rem; }
  #tpd_claim_table td { display: block; width: 100%!important; }
  #tpd_claim_table td[data-label]::before {
    content: attr(data-label) ": ";
    font-weight: 600;
    display: inline-block;
    margin-bottom: 0.3rem;
  }
}
/* 5) ALWAYS HIGHLIGHT STEP 1 IN BREADCRUMB FOR ANY tab1 CONTENT */
.tab_content.active .tpd-breadcrumb .step:nth-child(1) {
  color: #FF671F !important;
  cursor: default;
  opacity: 1 !important;
}
/* ─── Responsive tweaks ─── */
@media (max-width: 767px) {
  #tpd-super-table thead { display: none; }
  #tpd-super-table tr { display: block; margin-bottom: 1rem; }
  #tpd-super-table td { display: block; width: 100% !important; }
  #tpd-super-table td[data-label]::before {
    content: attr(data-label) ": ";
    font-weight: 600;
    display: inline-block;
  }
}
/*───────────────────────────────────────────────────────────────
   Benefit‑claimed tables
────────────────────────────────────────────────────────────────*/

/* Base table setup */
#tpd_benefit_table_yes,
#tpd_benefit_table_no {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 2rem;
  font-family: var(--font-main);
}

/* Header row */
#tpd_benefit_table_yes thead th,
#tpd_benefit_table_no thead th {
  background: var(--color-gray-light);
  color: var(--color-text);
  font-weight: 600;
  padding: 0.75rem 1rem;
  border: 1px solid var(--color-gray-border);
  text-align: left;
}

/* Body cells */
#tpd_benefit_table_yes tbody td,
#tpd_benefit_table_no tbody td {
  padding: 0.75rem 1rem;
  border: 1px solid var(--color-gray-border);
  vertical-align: middle;
}

/* Zebra striping */
#tpd_benefit_table_yes tbody tr:nth-child(even),
#tpd_benefit_table_no tbody tr:nth-child(even) {
  background: #fafafa;
}

/* First column (#) */
#tpd_benefit_table_yes tbody td:nth-child(1),
#tpd_benefit_table_no tbody td:nth-child(1) {
  width: 50px;
  text-align: center;
  font-weight: 600;
}

/* Last column (claim question) */
#tpd_benefit_table_yes tbody td:last-child,
#tpd_benefit_table_no tbody td:last-child {
  width: 30%;
}

/* Inputs / selects inside table */
#tpd_benefit_table_yes .form-control,
#tpd_benefit_table_no .form-control {
  width: 100%;
  height: 50px;
  padding: 0 1rem;
  background: var(--color-gray-light);
  border: 1px solid var(--color-gray-border);
  border-radius: 4px;
  font-size: 1rem;
  color: var(--color-text);
  transition: border-color .2s;
}

/* Dollar‑addon inputs */
#tpd_benefit_table_yes .input-group,
#tpd_benefit_table_no .input-group {
  display: flex;
  align-items: center;
}
#tpd_benefit_table_yes .input-group-addon,
#tpd_benefit_table_no .input-group-addon {
  background: var(--color-gray-light);
  border: 1px solid var(--color-gray-border);
  border-right: none;
  border-radius: 4px 0 0 4px;
  padding: 0.5rem;
}
#tpd_benefit_table_yes .input-group .form-control,
#tpd_benefit_table_no .input-group .form-control {
  border-left: none;
  border-radius: 0 4px 4px 0;
}

/* Remove extra padding on the “×” button column */
#tpd_benefit_table_yes tbody td:last-child button,
#tpd_benefit_table_no tbody td:last-child button {
  padding: 0.25rem 0.5rem;
  font-size: 1.25rem;
  line-height: 1;
}
/*───────────────────────────────
  Benefit‑table checkboxes as tiles
────────────────────────────────*/

#tpd_benefit_table_yes  .inputGroup,
#tpd_benefit_table_no   .inputGroup {
  position: relative;
  margin: 0.5rem 0;
}

#tpd_benefit_table_yes  .inputGroup input[type="checkbox"],
#tpd_benefit_table_no   .inputGroup input[type="checkbox"] {
  position: absolute;
  top: 50%;
  left: 1rem;
  width: 1.25rem;
  height: 1.25rem;
  opacity: 0;
  cursor: pointer;
  transform: translateY(-50%);
}

#tpd_benefit_table_yes  .inputGroup label,
#tpd_benefit_table_no   .inputGroup label {
  display: block;
  padding: 0.9rem 1rem;
  padding-left: 3rem;
  background: var(--color-gray-light);
  border: 1px solid var(--color-gray-border);
  border-radius: 4px;
  color: var(--color-text);
  cursor: pointer;
  transition: background .25s, border-color .25s;
  position: relative;
}

#tpd_benefit_table_yes  .inputGroup label::before,
#tpd_benefit_table_no   .inputGroup label::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 1rem;
  width: 1.25rem;
  height: 1.25rem;
  border: 2px solid var(--color-gray-border);
  border-radius: 50%;
  background: #fff;
  transform: translateY(-50%);
  transition: background .25s, border-color .25s;
  box-sizing: border-box;
}

/* show the ✓ when checked */
#tpd_benefit_table_yes  .inputGroup label::after,
#tpd_benefit_table_no   .inputGroup label::after {
  content: '✓';
  position: absolute;
  top: 50%;
  left: 1.15rem;
  transform: translateY(-50%);
  font-size: 1rem;
  color: #fff;
  opacity: 0;
  transition: opacity .2s;
}

#tpd_benefit_table_yes  .inputGroup input:checked + label,
#tpd_benefit_table_no   .inputGroup input:checked + label {
  background: var(--color-blue-dark);
  border-color: var(--color-blue-dark);
  color: #fff;
}

#tpd_benefit_table_yes  .inputGroup input:checked + label::before,
#tpd_benefit_table_no   .inputGroup input:checked + label::before {
  background: var(--color-green);
  border-color: var(--color-green);
}

#tpd_benefit_table_yes  .inputGroup input:checked + label::after,
#tpd_benefit_table_no   .inputGroup input:checked + label::after {
  opacity: 1;
}
/* ─── Hide sidebar on small screens ─── */
@media (max-width: 768px) {
  .tpd-sidebar-col {
    display: none !important;
  }
  /* ensure main column spans full width */
  .tpd-main-col {
    grid-column: 1 / -1;
  }
}
/* hide caption by default */
#tpd_claim_table caption.table-mobile-caption {
  display: none;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

/* show caption on phones/tablets */
@media (max-width: 767px) {
  /* reveal caption */
  #tpd_claim_table caption.table-mobile-caption {
    display: block;
  }
  /* ensure your header row is still hidden in mobile stack */
  #tpd_claim_table thead {
    display: none;
  }
}
@media (max-width: 768px) {
  /* 1) hide sidebar on mobile */
  .tpd-sidebar-col {
    display: none;
  }

  /* 2) collapse to one column */
  .tpd-grid {
    grid-template-columns: 1fr !important;
  }
}
@media (max-width: 576px) {
  #tpd_claim_table thead { display: none; }
  #tpd_claim_table tr { display: block; margin-bottom: 1rem; }
  #tpd_claim_table td { display: block; width: 100%!important; }
  #tpd_claim_table td[data-label]::before {
    content: attr(data-label) ": ";
    font-weight: 600;
    display: inline-block;
    margin-bottom: 0.3rem;
  }
}
/*────────────────  WIZARD VISIBILITY HELPERS  ─────────────────────*/
/* hide every step by default — must beat theme CSS */
/* ─── last‑minute override: make sure only the active tab is visible ─── */
.compensation-landing-page-form .tab_content:not(.tpd-active){
	display:none !important;     /* beats any theme style, even later ones */
}


/* reveal only the current step */
.tab_content.tpd-active{
    display:block !important;     /* keep this one visible */
}
@media only screen and (min-width: 1025px) {
    .site-content .content-header {
        padding: 80px 0;
        margin-bottom: 0px;
    }
}
/*────────────────────────────────────────────────────────────────
   1) Collapse benefit tables into true “stack” on phones (<576px)
────────────────────────────────────────────────────────────────*/
@media (max-width: 576px) {
  /* hide headers */
  #tpd_benefit_table_yes thead,
  #tpd_benefit_table_no  thead {
    display: none;
  }
 #tpd_benefit_table_yes .benefit-item-detail .inputGroup,  #tpd_benefit_table_no .benefit-item-detail .inputGroup {
    flex: 1 1 100%  !important;
    max-width: 100% !important;
    min-width: 150px;
    margin: 0 !important;
 }
  /* each row = its own block */
  #tpd_benefit_table_yes tbody tr,
  #tpd_benefit_table_no  tbody tr {
    display: block;
    margin-bottom: 1rem;
    border: 1px solid var(--color-gray-border);
    border-radius: 4px;
  }
  /* each cell = full-width block with label prefix */
  #tpd_benefit_table_yes tbody td,
  #tpd_benefit_table_no  tbody td {
    display: block;
    width: 100% !important;
    padding: 0.75rem 1rem;
    position: relative;
    box-sizing: border-box;
  }
  /* prepend pseudo-labels */
  #tpd_benefit_table_yes tbody td:nth-of-type(1)::before,
  #tpd_benefit_table_no  tbody td:nth-of-type(1)::before { content: "#: "; }
  #tpd_benefit_table_yes tbody td:nth-of-type(2)::before,
  #tpd_benefit_table_no  tbody td:nth-of-type(2)::before { content: "Super fund: "; }
  #tpd_benefit_table_yes tbody td:nth-of-type(3)::before,
  #tpd_benefit_table_no  tbody td:nth-of-type(3)::before { content: "Member #: "; }
  #tpd_benefit_table_yes tbody td:nth-of-type(4)::before,
  #tpd_benefit_table_no  tbody td:nth-of-type(4)::before { content: "Balance: "; }
  /* style pseudo-labels */
  #tpd_benefit_table_yes tbody td::before,
  #tpd_benefit_table_no  tbody td::before {
    font-weight: 600;
    display: inline-block;
    margin-bottom: 0.5rem;
  }
}

/*────────────────────────────────────────────────────────────────
   2) Checkbox‑tile flex grid on desktop, wrap on narrow
────────────────────────────────────────────────────────────────*/
#tpd_benefit_table_yes .benefit-item-detail .form-group,
#tpd_benefit_table_no  .benefit-item-detail .form-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 0;
}
#tpd_benefit_table_yes .benefit-item-detail .inputGroup, #tpd_benefit_table_no .benefit-item-detail .inputGroup {
    flex: 1 1 50%;
    max-width: 49%;
    min-width: 150px;
    margin: 0;
}
#tpd_benefit_table_yes .benefit-item-detail .inputGroup label,
#tpd_benefit_table_no  .benefit-item-detail .inputGroup label {
  white-space: normal;
}
/* always allow horizontal scroll on any table‐wrapper */
.table-responsive {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
/* ──────────────────────────────────────────────────────────
   Decision‑date tables: same striped + gray‑header style
───────────────────────────────────────────────────────────*/

/* Gray‑background header & bold text */
#tpd_decision_table_yes thead th,
#tpd_decision_table_no  thead th {
  background: var(--color-gray-light);
  color: var(--color-text);
  font-weight: 600;
  padding: 0.75rem 1rem;
  border: 1px solid var(--color-gray-border);
  text-align: left;
}

/* Zebra striping on even rows */
#tpd_decision_table_yes tbody tr:nth-child(even),
#tpd_decision_table_no  tbody tr:nth-child(even) {
  background: #fafafa;
}

/* Uniform cell padding, borders & alignment */
#tpd_decision_table_yes th,
#tpd_decision_table_yes td,
#tpd_decision_table_no  th,
#tpd_decision_table_no  td {
  padding: 0.75rem 1rem;
  vertical-align: middle;
  border: 1px solid var(--color-gray-border);
}
/* ──────────────────────────────────────────────────────
   1) Hide unwanted columns in the decision‑date tables
     – Benefits claimed  (5th)
     – Claim status      (6th)
     – Decision date     (7th)
───────────────────────────────────────────────────────── */
#tpd_decision_table_yes th:nth-child(5),
#tpd_decision_table_yes th:nth-child(6),
#tpd_decision_table_yes th:nth-child(7),
#tpd_decision_table_yes td:nth-child(5),
#tpd_decision_table_yes td:nth-child(6),
#tpd_decision_table_yes td:nth-child(7),
#tpd_decision_table_no th:nth-child(5),
#tpd_decision_table_no th:nth-child(6),
#tpd_decision_table_no td:nth-child(5),
#tpd_decision_table_no td:nth-child(6) {
  display: none !important;
}

/* ──────────────────────────────────────────────────────
   2) Make the decision‑date picker stand out
     – white background
     – matching border color
───────────────────────────────────────────────────────── */
#tpd_decision_table_yes .tpd-date,
#tpd_decision_table_no  .tpd-date {
  background-color: #fff !important;
  border: 1px solid var(--color-gray-border) !important;
}
/* ─────────────────────────────────────────────────
   Decision‑date tables: stack on mobile
───────────────────────────────────────────────── */
@media (max-width: 576px) {
  /* 1) hide the headers */
  #tpd_decision_table_yes thead,
  #tpd_decision_table_no  thead {
    display: none;
  }

  /* 2) make each row a block with its own border */
  #tpd_decision_table_yes tbody tr,
  #tpd_decision_table_no  tbody tr {
    display: block;
    margin-bottom: 1rem;
    border: 1px solid var(--color-gray-border);
    border-radius: 4px;
    background: #fff;
  }

  /* 3) each cell becomes a full‑width block */
  #tpd_decision_table_yes tbody td,
  #tpd_decision_table_no  tbody td {
    display: block;
    width: 100% !important;
    padding: 0.75rem 1rem;
    box-sizing: border-box;
    border: none;
    position: relative;
  }

  /* 4) prepend a label to each cell for context */
  #tpd_decision_table_yes tbody td:nth-of-type(1)::before,
  #tpd_decision_table_no  tbody td:nth-of-type(1)::before {
    content: "#: ";
  }
  #tpd_decision_table_yes tbody td:nth-of-type(2)::before,
  #tpd_decision_table_no  tbody td:nth-of-type(2)::before {
    content: "Super fund: ";
  }
  #tpd_decision_table_yes tbody td:nth-of-type(3)::before,
  #tpd_decision_table_no  tbody td:nth-of-type(3)::before {
    content: "Member #: ";
  }
  #tpd_decision_table_yes tbody td:nth-of-type(4)::before,
  #tpd_decision_table_no  tbody td:nth-of-type(4)::before {
    content: "Balance: ";
  }

  /* 5) style those pseudo‑labels */
  #tpd_decision_table_yes tbody td::before,
  #tpd_decision_table_no  tbody td::before {
    font-weight: 600;
    display: inline-block;
    margin-bottom: 0.5rem;
  }
}
/*────────────────────────────────────────────────────────────────
   Claim Status Table – mobile stack + full‑width selects
────────────────────────────────────────────────────────────────*/
#tpd_status_table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 2rem;
}
#tpd_status_table th,
#tpd_status_table td {
  border: 1px solid var(--color-gray-border);
  padding: 0.75rem 1rem;
  vertical-align: middle;
  text-align: left;
}

/* make the status‐picker full width */
#tpd_status_table select {
  width: 100%;
  box-sizing: border-box;
  padding: 0.5rem;
}
/* ─── Claim Status Table Header ─── */
#tpd_status_table thead th {
  background: var(--color-gray-light);
  color: var(--color-text);
  font-weight: 600;
  padding: 0.75rem 1rem;
  border: 1px solid var(--color-gray-border);
  text-align: left;
}

/* ─── Uniform cell padding ─── */
#tpd_status_table th,
#tpd_status_table td {
  padding: 0.75rem 1rem;
  vertical-align: middle;
  border: 1px solid var(--color-gray-border);
}

/* stack into cards on small screens */
@media (max-width: 576px) {
  /* hide header row */
  #tpd_status_table thead {
    display: none;
  }

  /* make each row a “card” */
  #tpd_status_table tbody tr {
    display: block;
    margin-bottom: 1rem;
    border: 1px solid var(--color-gray-border);
    border-radius: 4px;
    padding: 0.5rem 0;
  }

  /* make each cell full‑width */
  #tpd_status_table tbody td {
    display: block;
    width: 100% !important;
    padding: 0.5rem 1rem;
    box-sizing: border-box;
    position: relative;
  }

  /* add labels before each cell */
  #tpd_status_table tbody td:nth-of-type(1)::before { content: "#: "; }
  #tpd_status_table tbody td:nth-of-type(2)::before { content: "Super fund: "; }
  #tpd_status_table tbody td:nth-of-type(3)::before { content: "Member #: "; }
  #tpd_status_table tbody td:nth-of-type(4)::before { content: "Balance: "; }
  #tpd_status_table tbody td:nth-of-type(5)::before { content: "Benefit(s): "; }
  #tpd_status_table tbody td:nth-of-type(6)::before { content: "Status: "; }

  /* style those pseudo‑labels */
  #tpd_status_table tbody td::before {
    font-weight: 600;
    display: inline-block;
    margin-bottom: 0.5rem;
  }
}
/* ── Scope “no sidebar” + full‑width main only on the Treatment tab ────────── */
.tab_content:has(#tpd_treatment_table) .tpd-sidebar-col {
  display: none !important;
}
.tab_content:has(#tpd_treatment_table) .tpd-main-col {
  grid-column: 1 / -1;
}

/* ── Treatment Table: full‑width, zebra, shaded header ───────────────────── */
#tpd_treatment_table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 2rem;
  table-layout: auto;
}
#tpd_treatment_table th,
#tpd_treatment_table td {
  border: 1px solid var(--color-gray-border);
  padding: 0.75rem 1rem;
  vertical-align: middle;
}
#tpd_treatment_table thead th {
  background: var(--color-gray-light);
  color: var(--color-text);
  font-weight: 600;
  text-align: left;
}
#tpd_treatment_table thead th:first-child,
#tpd_treatment_table tbody td:first-child {
  text-align: center;
}
#tpd_treatment_table tbody tr:nth-child(even) {
  background: #fafafa;
}

/* ── “Add another treatment” button in <tfoot> ──────────────────────────── */
#tpd_treatment_table tfoot td {
  border: none;
  padding: 0;
}
#tpd_treatment_table .tpd-add-treatment {
  width: 100%;
  display: block;
  margin: 0;
  border-radius: 0 0 4px 4px;
}

/* ── Make tables scrollable on small screens ────────────────────────────── */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* ── Mobile: stack each cell with a label ───────────────────────────────── */
@media (max-width: 576px) {
  #tpd_treatment_table thead { display: none; }
  #tpd_treatment_table,
  #tpd_treatment_table tbody,
  #tpd_treatment_table tr,
  #tpd_treatment_table td {
    display: block;
    width: 100%;
  }
  #tpd_treatment_table tr {
    margin-bottom: 1rem;
    border: 1px solid var(--color-gray-border);
    border-radius: 4px;
  }
  #tpd_treatment_table td {
    position: relative;
    padding: 0.75rem 1rem;
  }
  #tpd_treatment_table td:nth-of-type(1)::before { content: "#"; }
  #tpd_treatment_table td:nth-of-type(2)::before { content: "Type of treatment"; }
  #tpd_treatment_table td:nth-of-type(3)::before { content: "Provider / Clinic"; }
  #tpd_treatment_table td:nth-of-type(4)::before { content: "Date (approx.)"; }
  #tpd_treatment_table td::before {
    font-weight: 600;
    display: block;
    margin-bottom: 0.5rem;
  }
}
#tab7.tpd-evaluator {
  /* ensure our grid rules apply */
}
#tab7.tpd-evaluator .tpd-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 2rem;
}
/* Hide the sidebar and span full width on small screens */
@media (max-width: 768px) {
  #tab7.tpd-evaluator .tpd-sidebar-col { display: none !important; }
  #tab7.tpd-evaluator .tpd-main-col   { grid-column: 1 / -1; }
}

/* Breadcrumb spacing */
#tab7.tpd-evaluator .tpd-breadcrumb {
  margin-bottom: 1.5rem;
}

/* Form‑group vertical spacing */
#tab7.tpd-evaluator .form-group {
  margin-bottom: 2rem;
}

/* Radio/checkbox tile tweaks */
#tab7.tpd-evaluator .inputGroup {
  margin-bottom: 1rem;
}

/* Checkbox‑inline blocks */
#tab7.tpd-evaluator .checkbox-inline {
  display: block;
  margin-top: 0.5rem;
}

/* Date‑picker input styling */
#tab7.tpd-evaluator .input-group-addon {
  background: var(--color-gray-light);
  border: 1px solid var(--color-gray-border);
  border-right: none;
}
#tab7.tpd-evaluator .input-group .form-control {
  border-left: none;
}

/* Wizard nav alignment */
#tab7.tpd-evaluator .tpd-wizard-nav {
  display: flex;
  justify-content: space-between;
  margin-top: 2rem;
}
@media (max-width: 600px) {
  #tab7.tpd-evaluator .tpd-wizard-nav { flex-direction: column; }
  #tab7.tpd-evaluator .tpd-wizard-nav .btn { margin: .5rem 0; }
}
/* Sidebar image: max‑width 64px, block‑level centering */
.tpd-sidebar-col .service-thumb img {
  max-width: 64px;
  width: 100%;
  height: auto;
  display: block;
  margin: 0 auto 1rem;
}

/* Center all text inside the sidebar */
.tpd-sidebar-col .service-content {
  text-align: center;
}

/* Optional: tighten up the heading and paragraph spacing */
.tpd-sidebar-col .service-content h4 {
  margin-bottom: 0.5rem;
}
.tpd-sidebar-col .service-content small,
.tpd-sidebar-col .service-content p {
  margin-bottom: 0.75rem;
}