/***********Payment Table****************/
.table-payment {
    font-size: 14px;
}

.table-payment th {
    background: #f8f9fa;
    font-weight: 600;
    color: #333;
    width: 30%;
}

.table-payment td {
    color: #444;
}

.balance-row td {
    font-weight: 600;
    color: #000;
}

/* Desktop Table Styles */
.table-willimano {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background-color: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(var(--navy-rgb), 0.10);
  transition: var(--transition);
  font-size: 14px;
  border: 1px solid var(--navy);
}

.table-willimano thead {
  background: linear-gradient(90deg, var(--navy), var(--navy-light));
  color: var(--gold);
}

.table-willimano thead th {
  font-weight: 600;
  padding: 10px 16px;
  border-bottom: 2px solid var(--gold);
  font-size: 15px;
  letter-spacing: 0.5px;
}

.table-willimano tbody td {
  padding: 8px 14px;
  color: var(--navy);
  border-bottom: 1px solid var(--bg-body);
  vertical-align: middle;
  font-weight: 400;
  font-size: 14px;
  background-color: var(--white);
}

.table-willimano tbody tr {
  transition: background 0.2s;
}

.table-willimano tbody tr:hover {
  background-color: var(--gold);
  color: var(--navy-dark);
}

.table-willimano a.table-link {
  color: var(--navy-dark);
  text-decoration: none;
  font-weight: 500;
  position: relative;
  transition: all 0.2s;
  font-size: 14px;
}

.table-willimano a.table-link:hover {
  color: var(--gold-dark);
}

.table-willimano a.table-link::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  left: 0;
  bottom: -2px;
  background-color: var(--gold);
  transition: width 0.3s;
}

.table-willimano a.table-link:hover::after {
  width: 100%;
}

.table-willimano .btn {
  border-radius: var(--radius);
  transition: var(--transition);
  font-size: 13px;
  padding: 4px 10px;
}

.table-willimano .btn-navy {
  background-color: var(--navy);
  color: var(--gold);
  border: none;
  font-weight: 500;
}

.table-willimano .btn-navy:hover {
  background-color: var(--navy-dark);
  color: var(--gold-dark);
}

.table-willimano .btn-gold {
  background-color: var(--gold);
  color: var(--navy);
  border: none;
  font-weight: 500;
}

.table-willimano .btn-gold:hover {
  background-color: var(--gold-dark);
  color: var(--white);
}


/* Mobile Responsive Styles */
@media (max-width: 768px) {

  /* Adjust font size */
  .table-willimano {
    font-size: 12px;
    width: 100%;
  }

  .table-willimano thead,
  .table-willimano thead th {
    display: none; /* hide table header */
  }

  .table-willimano tbody tr {
    display: block;
    margin-bottom: 15px;
    border: 1px solid var(--navy-light-transparent);
    border-radius: var(--radius);
    padding: 10px;
    background-color: var(--white);
    box-shadow: 0 1px 4px rgba(var(--navy-rgb), 0.05);
    width: 100% !important; /* use full width for cards */
  }

  .table-willimano tbody td {
    display: flex;
    justify-content: flex-start;
    padding: 6px 10px;
    border-bottom: 1px solid var(--bg-body);
  }

  .table-willimano tbody td:last-child {
    border-bottom: 0;
  }

  .table-willimano tbody td[data-label]::before {
    content: attr(data-label) ": ";
    font-weight: 600;
    color: var(--navy-dark);
    display: inline-block;
    width: 40%;
    flex-shrink: 0;
  }

  .table-willimano tbody td span {
    width: 60%;
    text-align: left;
  }

  /* Buttons full-width for mobile */
  .table-willimano .btn {
    font-size: 12px;
    padding: 4px 8px;
    width: 100%;
    margin-top: 4px;
  }

  .table-willimano a.table-link {
    font-size: 12px;
  }

  .payment-table th,
  .payment-table td {
      font-size: 13px;
  }

}