#footer {
  background-color: transparent;
}
#footer:before {
  background-color: #313640;
}
.tablepress {
  border-collapse: collapse;
  border-spacing: 0;
  width: 100%;
  margin-bottom: 1em;
  border: none
}

.tablepress>:where(tbody)>tr>* {
  background: none;
  border: none;
  padding: 8px;
  text-align: left;
  vertical-align: top
}

.tablepress> :not(caption)>*>* {
  border-bottom: 1px solid #ddd
}

.tablepress>:where(tbody)>tr:last-child>* {
  border-bottom: 0
}

.tablepress> :where(thead)>tr>* {
  border-bottom-width: 2px;
  font-weight: 700;
  vertical-align: bottom
}

.tablepress>:where(tfoot)>tr>* {
  border-top: 1px solid #ddd
}

.tablepress .row-hover>tr:hover>* {
  background-color: #f3f3f3
}

.tablepress .column-1 {
  text-align: left
}

 /* Add custom styles or overrides here if needed */
 .tablepress { /* Basic TablePress reset */
  border-collapse: collapse;
  border-spacing: 0;
  width: 100%;
  margin-bottom: 1em;
  border: none;
  font-size: 14px; /* Match f14 */
}

/* Style for header rows */
.tablepress thead th {
  background-color: #f9f5f0; /* Light beige header */
  border-bottom: 2px solid #e0d9cc; /* Header underline */
  font-weight: bold;
  text-align: center;
  padding: 10px 12px;
}
/* Header alignment adjustments */
.tablepress thead th.column-1 { text-align: left;}
.tablepress thead th:not(.column-1) { text-align: right;}


/* Style for body cells */
.tablepress tbody td {
  border: none; /* Remove internal borders */
  border-bottom: 1px solid #ddd; /* Horizontal lines between rows */
  padding: 10px 12px; /* Consistent padding */
  vertical-align: middle;
  line-height: 1.6;
}

/* Remove bottom border from last row */
.tablepress tbody tr:last-child td {
  border-bottom: none;
}

/* Alignment for body cells */
.tablepress tbody td.column-1 {
  text-align: left;
  font-weight: normal;
}
.tablepress tbody td:not(.column-1) {
  text-align: right;
}


/* Category Header row style */
.tablepress tbody td[colspan="4"],
.tablepress tbody td[colspan="3"],
.tablepress tbody td[colspan="2"] {
  background-color: #f0f0f0 !important; /* Grey background */
  font-weight: bold !important;
  text-align: left !important;
  padding-left: 10px !important;
  border-bottom: 1px solid #ccc !important; /* Slightly stronger border */
}

.tablepress .row-hover tbody tr:hover td { /* Row hover effect */
   background-color: #f5f5f5;
}


/* General Styling */
.f40 { /* Ensure titles are styled correctly */
   margin-top: 40px;
   margin-bottom: 25px;
   padding-bottom: 10px;
   border-bottom: 1px solid #e0d9cc; /* Match theme underline */
   text-align: center; /* Center align main titles */
}
.f20 { /* Ensure sub-titles are styled correctly */
   margin-top: 30px;
   margin-bottom: 15px;
   font-weight: bold;
   color: #5a4a41; /* Match theme subtitle color */
}
.caution p {
   line-height: 1.8;
}
#breadcrumb { /* Ensure breadcrumbs have sufficient top margin */
 /* margin-top: 20px; MOVED */
 margin-bottom: 20px;
}
#breadcrumb ul {
  display: flex;
  justify-content: flex-end; /* Align breadcrumbs right */
  align-items: center;
  padding: 0;
  margin: 0;
}
#breadcrumb li {
  list-style: none;
  margin-left: 5px;
}
#breadcrumb li.bc-arrow {
  margin-left: 5px;
}
.sp768on #breadcrumb {
   justify-content: flex-start; /* Align left on SP */
}

.mainWrap {
   margin-top: 0; /* Adjust if necessary based on fixed header */
}
.table_price { /* Container for tables */
  margin-bottom: 20px;
}
.sub_text { /* Notes below tables */
  margin-top: 10px;
  margin-bottom: 20px;
  font-size: 13px;
  color: #555;
  line-height: 1.7;
}
.payment {
  margin-top: 50px;
}

/* Adjust column widths if necessary */
.tablepress-id-interpreter_ha_botox .column-1 { width: 35%; }
.tablepress-id-interpreter_ha_botox .column-2,
.tablepress-id-interpreter_ha_botox .column-3,
.tablepress-id-interpreter_ha_botox .column-4 { width: 21.6%; }

.tablepress-id-interpreter_hotta_special .column-1 { width: 50%;}
.tablepress-id-interpreter_hotta_special .column-2 { width: 50%;}

/* Adjusted widths for Anesthesia table */
.tablepress-id-interpreter_anesthesia_test .column-1 { width: 50%; }
.tablepress-id-interpreter_anesthesia_test .column-2 { width: 25%; }
.tablepress-id-interpreter_anesthesia_test .column-3 { width: 25%; } /* Added width for new column */


/* Responsive adjustments */
@media screen and (max-width: 768px) {
  .tablepress {
      font-size: 13px;
  }
  .tablepress th, .tablepress td {
      padding: 6px 8px;
  }
  .f40 { font-size: 28px; }
  .f20 { font-size: 18px; }

  /* Responsive Column Widths (Example - adjust as needed) */
  .tablepress-id-interpreter_ha_botox .column-1 { width: 40%; }
  .tablepress-id-interpreter_ha_botox .column-2,
  .tablepress-id-interpreter_ha_botox .column-3,
  .tablepress-id-interpreter_ha_botox .column-4 { width: 20%; }

  .tablepress-id-interpreter_anesthesia_test .column-1 { width: 40%; }
  .tablepress-id-interpreter_anesthesia_test .column-2 { width: 30%; }
  .tablepress-id-interpreter_anesthesia_test .column-3 { width: 30%; }
  #footer .sp-footer .bg-parts:before {
    background-color: #313640;
  }
}