/* ============================
   Table Styles
============================ */

/* General Table Styles */
.cost-table {
    width: auto;                  /* full width of parent */
    border-collapse: collapse;    /* remove gaps between cells */
    font-family: Arial, sans-serif;
    font-size: 14px;
    margin: 0 auto;               /* vertical spacing only */
    width: fit-content;
    max-width: 100%;
    table-layout: auto;
    white-space: nowrap;
}

.cost-table th,
.cost-table td {
    border: 1px solid #444;
    padding: 8px 12px;
    text-align: left;
}

.cost-table th {
    background-color: #eee;
    font-weight: bold;
}

/* Alternating Row Colors */
.cost-table tr:nth-child(even) {
    background-color: #f9f9f9;
}
.cost-table tr:nth-child(odd) {
    background-color: #fff;
}

/* Optional Table Wrapper for Border & Padding and Footnotes*/
.table-wrapper {
  text-align: center; /* centers everything inside */
  margin: 20px;
}

.table-wrapper-inner {
  display: inline-block;
  text-align: left;
  border: 1px solid #ccc;   /* your thin gray border */
  padding: 12px 16px;       /* optional spacing between table and border */
  border-radius: 6px;       /* optional, for softer corners */
  background-color: #fff;   /* ensures the border looks clean */
}

.table-wrapper-inner p {
  margin-top: 4px;
  margin-left: 2em; /* optional small indent */
  font-size: 0.9em;
}


/* Table Title / Subtitle */
.table-title {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 5px;
}

.table-subtitle {
    font-size: 14px;
    color: #666;
    margin-bottom: 10px;
}

/* Table Hover Effect */
.cost-table tbody tr:hover {
    background-color: #f1f1f1;
}

/* ============================
   Mobile Responsiveness
============================ */
@media (max-width: 600px) {
    .cost-table {
        font-size: 13px;
    }

    .cost-table th,
    .cost-table td {
        padding: 6px 8px;
    }

    .table-wrapper {
        padding: 10px;
    }
}
