


.gfield.new-row {
    grid-column-start: 1 !important; 
}




.select-case div.option {
	border-bottom: solid 1px #CCC;
}

.select-case div.option h4 {
	margin-bottom: 0.25rem;
}


body .gpnf-modal .tingle-modal-box {
  width: clamp(900px, 80%, 1400px);
}



/* Ensure consistent layout for both fields (.cocounsel and .oppcounsel) */
.gform_wrapper.gravity-theme .counsel .gform-grid-row, 
.gform_wrapper.gravity-theme .counsel .gfield_list_groups {
  display: flex;
  width: 100%;
}

/* Allow rows to wrap onto the next line when a new row is added */
.gform_wrapper.gravity-theme .counsel .gfield_list_groups {
  flex-direction: column; /* Stack rows vertically */
}

/* Ensure body rows stack vertically, but columns stay aligned horizontally */
.gform_wrapper.gravity-theme .counsel .gform-grid-row {
  flex-wrap: wrap; /* Allow wrapping for rows */
}

/* Set flex properties for all header and body cells */
.gform_wrapper.gravity-theme .counsel .gfield_list_header .gform-grid-col, 
.gform_wrapper.gravity-theme .counsel .gfield_list_group_item {
  flex-grow: 1;
  flex-shrink: 1;
  flex-basis: 0;
  min-width: 65px;
  margin-left: 0;
  padding: 0; /* Ensure no padding differences */
  box-sizing: border-box; /* Ensure consistent box-sizing */
}

/* Adjust the 2nd and 3rd columns for .cocounsel ("Name" and "Set") */
.gform_wrapper.gravity-theme .cocounsel .gfield_list_header .gform-grid-col:nth-child(2),
.gform_wrapper.gravity-theme .cocounsel .gfield_list_group_item:nth-child(2),
.gform_wrapper.gravity-theme .cocounsel .gfield_list_header .gform-grid-col:nth-child(3),
.gform_wrapper.gravity-theme .cocounsel .gfield_list_group_item:nth-child(3) {
  flex-grow: 2;
  min-width: 150px;
}

/* Adjust the 1st and 2nd columns for .oppcounsel ("Name" and "Set") */
.gform_wrapper.gravity-theme .oppcounsel .gfield_list_header .gform-grid-col:nth-child(1),
.gform_wrapper.gravity-theme .oppcounsel .gfield_list_group_item:nth-child(1),
.gform_wrapper.gravity-theme .oppcounsel .gfield_list_header .gform-grid-col:nth-child(2),
.gform_wrapper.gravity-theme .oppcounsel .gfield_list_group_item:nth-child(2) {
  flex-grow: 2;
  min-width: 150px;
}

/* Ensure consistent flex behavior for columns from "Sort order" onwards */
.gform_wrapper.gravity-theme .oppcounsel .gfield_list_header .gform-grid-col:nth-child(n+3),
.gform_wrapper.gravity-theme .oppcounsel .gfield_list_group_item:nth-child(n+3) {
  flex-grow: 1;
  flex-basis: 0;
  min-width: 65px;
}

/* Fixed width for the icon column (Add/Remove buttons) */
.gform_wrapper.gravity-theme .counsel .gfield_list_icons, 
.gform_wrapper.gravity-theme .counsel .gfield_header_item--icons {
  width: 48px;
  flex-shrink: 0;
}

/* Ensure input fields and select boxes fill the space and are aligned */
.gform_wrapper.gravity-theme .counsel input, 
.gform_wrapper.gravity-theme .counsel select {
  border: solid 1px #0d7685;
  width: 100%; /* Ensure inputs/selects fill the entire cell width */
  padding: 0;
  margin: 0;
  box-sizing: border-box; /* Include padding/border in width */
}

