
/* ========= eofo Section Styles ========= */
#eofo-section {
  width: 300px;       /*550 Or tweak to whatever looks good */
  flex: 0 0 300px;     /*470 Prevents flexbox from stretching it */
  max-width: 100%;
  background-color: #c8dcf2;
 display: block;
  position: relative;
}
#eofo-section-card {
  font-size: 0.95rem;
  padding: 1rem 1.5rem;
  max-width: 100%; /* allow fluid layout */
  margin: 1rem auto;
  background-color: #f5f5f5;
  border: 1px solid #bbb;
  border-radius: 10px;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.08);
  box-sizing: border-box;
  margin-left: -0.25rem;
  overflow-x: auto;
  flex: 1 1 45%;
}

#eofo-section-card h2 {
  text-align: center;
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
  color: #2c3e50;
  margin-top: 0;
  padding-top: 0;
}

/* Header Row for Column Labels */
.eofo-header-row {
  display: grid;
  grid-template-columns: 7fr 1fr 1fr;
    font-weight: bold;
  font-size: 1.2rem;
  padding: 0.5rem;
  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;
}

.eofo-label {
  display: block;
}

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

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

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

/* Totals row styling */
.eofo-totals {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: 0.5rem;
  margin-top: 1rem;
  font-weight: bold;
}

.eofo-totals input {
  background-color: #e8f5e9;
  font-weight: 600;
  text-align: center;
  height: 34px;
  border: 1px solid #aaa;
  border-radius: 6px;
  width: 100%
  /*box-sizing: border-box; */
}



.eofo-form-group select {
  flex: 2 1 400px;       /* Wider base width */
    max-width: 400px;
  width: 200px;
  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;
}





#total-percent {
  width: 100%;
}
.eofo-footer-row input {
  width: 10px;
  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: 800;
  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;
}




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

.eofo-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: 20px;   /* 🔹 or 100px, 120px — however wide you want it */
}



