/* Form and summary side-by-side layout */
#calculator .form-summary-container {
  display: flex;
  gap: 2rem;
  margin-bottom: 2rem;
}

#calculator .form-section {
  flex: 1;
}

#calculator .summary-section {
  flex: 1;
}

#calculator .summary-section p {
  margin: 0.5rem 0;
}

#calculator .summary-section .total-cost-amount {
  font-weight: bold;
}

/* Input field with label side by side */
#calculator .form-section > div {
  margin-bottom: 1rem;
}

#calculator .form-section > div > div {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

#calculator .form-section > div > div input {
  width: 200px;
}

#calculator .form-section > div > div > div:last-child {
  text-align: left;
  white-space: nowrap;
}

/* Table container - scrollable wrapper */
#calculator .table-container {
  /* max-height: 760px; */
  /* overflow-y: auto; */
  display: block;
  position: relative;
}

#calculator table {
  border-collapse: collapse;
  width: 100%;
  display: table;
}

#calculator thead {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--hache-background);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

#calculator thead th {
  background-color: var(--hache-background) !important;
}

#calculator th,
#calculator td {
  border: 1px solid #ddd;
  padding: 8px;
  text-align: left;
}

#calculator th {
  background-color: var(--hache-background);
  font-weight: bold;
}

#calculator .text-success {
  color: green;
}

#calculator .text-danger {
  color: red;
}
