input:read-only {
  background-color: #f0f0f0;   /* Light gray background */
  color: #555;                 /* Softer text color */
  border: 1px solid #ccc;
  font-weight: 500;
  cursor: not-allowed;
}


/* ========= additives Section Styles ========= */




/* Header Row for Column Labels */
.additives-header-row {
  display: grid;
  grid-template-columns: 1.2fr  1fr;
    font-weight: bold;
  font-size: 1.1rem;
  padding: .1rem;
  border-bottom: 2px solid #ccc;
  background-color: #5b9dff;   /*    Blue*/
  color: #ffffff;              /*    White*/
  border-radius: 6px;
  margin-bottom: 0.75rem;
  gap: 0.5rem;
  text-align: center;
}

.additives-label {
  display: block;
}

/* Form Wrapper */
.additives-form-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

/* additives input row layout */
.additives-form-group {
  display: grid;
  grid-template-columns: 2fr .7fr;
  gap: 0.5rem;
  align-items: center;
 
}

/*.additives-form-group input { *.

/* Select and input styling */
.additives-form-group select{
  height: 34px;
  padding: 0.4rem 0.6rem;
  font-size: 0.95rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  box-sizing: border-box;
 width: 50px;   /* 🔹 or 100px, 120px — however wide you want it */
}

/*
.additives-form-group input[readonly],
.sap-value,
.lye-grams {
  background-color: #f0f0f0;
  color: #333;1
  cursor: not-allowed;
  font-weight: 500;
}
*/1
/* Totals row styling */
.additives-totals {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: 0.5rem;
  margin-top: 1rem;
  font-weight: bold;
}

/* Responsive layout for mobile */
@media (max-width: 600px) {
  .additives-header-row,
  .additives-form-group,
  .additives-totals {
    grid-template-columns: 1fr;
  }

  .additives-form-group input,
  .additives-form-group select, 
  .additives-totals input {
    width: 100%;
  }

  .additives-header-row,
  .additives-totals {
    text-align: left;
  }
}

.additives-form-group select {
  flex: 2 1 340px;       /* Wider base width */
  min-width: 240px;
  max-width: 100%;
  width: 100%;
  height: 34px;
  padding: 0.4rem 0.6rem;
  font-size: 0.95rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  box-sizing: border-box;
  text-align: left;
}




.additives-footer-row {
  display: grid;
  grid-template-columns: 2.5fr 1fr 1fr 1fr 1fr;
  gap: 0.5rem;
  margin-top: 1rem;
  align-items: center;
  background-color: #4a90e2;
  color: #fff;
  padding: 0.5rem;
  border-radius: 6px;
  font-weight: bold;
 width: 400px;   /* 🔹 or 100px, 120px — however wide you want it */
}

#total-percent {
  width: 100%;
}
.additives-footer-row input {
  height: 34px;
  padding: 0.4rem 0.6rem;
  font-size: 0.95rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  background-color: #f0f0f0;
  color: #333;
  font-weight: 500;
  box-sizing: border-box;
  width: 100%;
  text-align: left;
  cursor: not-allowed;
}

.footer-label {
  text-align: center;
font-size: 1.2rem; /* bump it up from default */
  font-weight: 700;
  letter-spacing: 0.5px;
}




.additives-footer-row input {
  outline: 1px dashed red;
}

#additives-subsection {
  margin-top: 1rem;
  padding: 0rem;
  background-color: transparent; /* Subtle contrast from #c8dcf2 */
  border-top: 2px solid #ccc;
  border-radius: 8px;
  box-sizing: border-box;
  width: 100%;
  display: block;
border: none;

}


input[id^="additive"][id$="-amount"] {
  width: 100px;               /* keeps it tight */
  padding: 6px 8px;
  font-size: 0.85rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  box-sizing: border-box;
}

