.container {
    max-width: 1024px;
    margin: 20px auto;
    background-color: #fff;
    padding: 15px 20px;
    border-radius: 8px;
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.1);
  }
  h1 {
    text-align: center;
    color: #333;
    margin-bottom: 20px;
  }
  /* Group container for field sections */
  .group {
    margin-bottom: 25px;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background-color: #f9f9f9;
  }
  .group h2 {
    margin-top: 0;
    font-size: 18px;
    color: #444;
    border-bottom: 1px solid #ddd;
    padding-bottom: 5px;
    margin-bottom: 15px;
  }
  form {
    display: flex;
    flex-direction: column;
  }
/* Vitals Table Styling */
div.DTE_Body div.DTE_Body_Content div.DTE_Field > div.DTE_Field_Input {
  float: none !important;
  width: auto !important;
  margin-top: 4px !important;
  margin-bottom: 6px !important;
}

  /* DataTables Editor field styling */
  .DTE_Field {
    /* margin-bottom: 15px; */
  }
  .DTE_Label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    font-size: 16px;
    color: #555;
  }
  .DTE_Field_Input input,
  .DTE_Field_Input select,
  .DTE_Field_Input textarea {
    width: 100%;
    padding: 12px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
  }
  textarea {
    resize: vertical;
    min-height: 80px;
  }
  .form-actions {
    text-align: center;
    margin-top: 20px;
  }
  button {
    padding: 15px 25px;
    font-size: 18px;
    background-color: #28a745;
    border: none;
    border-radius: 6px;
    color: #fff;
    cursor: pointer;
  }
  button:hover {
    background-color: #218838;
  }
  /* Flexbox layout for responsive rows */
  .row {
    display: flex;
    flex-wrap: wrap;
    margin: -5px;
  }
  /* Four columns: each takes roughly 25% of space with some gap */
  .col-1-4 {
    flex: 1 1 calc(25% - 10px);
    margin: 5px;
  }

  /* Two columns in a four-column system: takes roughly 50% */
  .col-2-4 {
    flex: 1 1 calc(50% - 10px);
    margin: 5px;
  }

  /* Three columns in a four-column system: takes roughly 75% */
  .col-3-4 {
    flex: 1 1 calc(75% - 10px);
    margin: 5px;
  }

  /* Three columns: each takes roughly 33 */
  .col-1-3 {
    flex: 1 1 calc(33% - 10px);
    margin: 5px;
  }

  /* Two columns: each takes roughly 50% */
  .col-1-2 {
    flex: 1 1 calc(50% - 10px);
    margin: 5px;
  }

  /* One column: takes 100% */
  .col-1-1 {
    flex: 1 1 calc(100% - 10px);
    margin: 5px;
  }

  /* Full width column */
  .col-full {
    flex: 1 1 calc(100% - 10px);
    margin: 5px;
  }

  /* Row spanning modifiers */
  .row-span-2 {
    flex-basis: calc(200% + 10px);
    margin-bottom: 15px;
  }

  .row-span-3 {
    flex-basis: calc(300% + 20px);
    margin-bottom: 20px;
  }

  .row-span-4 {
    flex-basis: calc(400% + 30px);
    margin-bottom: 25px;
  }

  /* Alternative approach using align-self for vertical spanning */
  .align-self-stretch {
    align-self: stretch;
    min-height: 100%;
  }

  .align-self-start {
    align-self: flex-start;
  }

  .align-self-center {
    align-self: center;
  }

  .align-self-end {
    align-self: flex-end;
  }

/* Bandit rows - initially hidden */
.bandit-row {
  display: none;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .col-1-4, .col-2-4, .col-3-4, .col-1-2, .col-full {
    flex: 1 1 100%;
    margin: 5px 0;
  }
  
  /* Reset row spanning on mobile */
  .row-span-2, .row-span-3, .row-span-4 {
    flex-basis: 100%;
    margin-bottom: 10px;
  }
}
    .DTE_Field_Input input,
    .DTE_Field_Input select,
    .DTE_Field_Input textarea {
      padding: 10px;
      font-size: 14px;
    }
    button {
      padding: 12px 20px;
      font-size: 16px;
    }
  }


div.DTE_Body div.DTE_Body_Content div.DTE_Field.block > label {
    float: left;
    width: 100% !important;
}