
// @media (min-width: 768px) and (max-width: 991px) {
//   :host ::ng-deep {
//     .FormOverView {      display: flex;
//       flex-wrap: wrap;
//       gap: 16px;
//       max-width: 100%;
//       overflow-x: hidden;
//       box-sizing: border-box;
//       padding: 0 16px;
//     }

//     .adjacentField {
//       box-sizing: border-box;
//       flex: 1 1 45%;
//       min-width: 260px;
//       max-width: 100%;
//     }

//     gb-input,
//     gb-textarea {
//       box-sizing: border-box;
//       flex: 1 1 100%;
//       max-width: 100%;
//       width: 100%;
//     }
//     gb-formaction {
//       flex-wrap: wrap;
//       max-width: 100%;
//       overflow-x: hidden;
//     }
//   }
// }

@media (max-width: 767px) {
  :host ::ng-deep {
    .FormOverView {
      display: flex;
      flex-direction: column;
      width: 100%;
      max-width: 100vw;
      overflow-x: hidden;
      box-sizing: border-box;
      padding: 0 16px;
      gap: 8px;
    }

    .adjacentField {
      box-sizing: border-box;
      flex: 0 1 auto;
      width: 100% !important;
      max-width: 100% !important;
      min-width: 0 !important;   
      height: auto !important;
      min-height: auto !important;
      margin: 0 !important;
      padding: 0 !important;
    }

    gb-newpicklist {
      display: block;
      box-sizing: border-box;
      width: 100% !important;
      min-width: 0 !important;
      height: auto !important;
      min-height: auto !important;
      max-height: none !important;
      margin: 0 0 4px 0 !important;
      padding: 0 !important;
    }

    gb-newpicklist div {
      height: auto !important;
      min-height: auto !important;
      max-height: none !important;
    }

    gb-newpicklist [style*="height"] {
      height: auto !important;
      min-height: auto !important;
    }
    gb-newpicklist input,
    gb-newpicklist .mat-form-field,
    gb-newpicklist .mat-form-field-wrapper,
    gb-newpicklist .mat-form-field-flex,
    gb-newpicklist .mat-select,
    gb-newpicklist mat-select {
      box-sizing: border-box !important;
      width: 100% !important;
      max-width: 100% !important;
      min-width: 0 !important;
    }

    gb-newpicklist [style*="width"],
    gb-input [style*="width"],
    gb-textarea [style*="width"] {
      width: 100% !important;
      min-width: 0 !important;
      max-width: 100% !important;
    }

    gb-newpicklist mat-form-field,
    gb-newpicklist .mat-mdc-form-field,
    gb-newpicklist .mat-mdc-text-field-wrapper,
    gb-textarea mat-form-field,
    gb-textarea .mat-mdc-form-field,
    gb-textarea .mat-mdc-text-field-wrapper {
      width: 100% !important;
      min-width: 0 !important;
      max-width: 100% !important;
    }

    gb-input,
    gb-textarea {
      box-sizing: border-box;
      flex: 0 1 auto;
      width: 100%;
      max-width: 100%;
      min-width: 0 !important;
      display: block;
    }

    gb-input input,
    gb-input .mat-form-field,
    gb-textarea textarea,
    gb-textarea .mat-form-field {
      box-sizing: border-box !important;
      width: 100% !important;
      max-width: 100% !important;
      min-width: 0 !important;
    }

    label {
      white-space: normal;
      word-break: break-word;
    }

    textarea {
      box-sizing: border-box !important;
      width: 100% !important;
      max-width: 100% !important;
      min-width: 0 !important;
    }

    // gb-formaction {
    //   display: flex !important;
    //   flex-wrap: wrap !important;
    //   align-items: center;
    //   justify-content: flex-start;
    //   width: 100% !important;
    //   max-width: 100vw !important;
    //   overflow-x: hidden !important;
    //   box-sizing: border-box;
    //   padding: 0 16px;
    //   gap: 6px;
    //   row-gap: 8px;

    //   button {
    //     flex: 0 1 auto;
    //     min-width: 0;
    //     white-space: nowrap;
    //     padding-left: 10px !important;
    //     padding-right: 10px !important;
    //   }
    // }

    :host {
      overflow-x: hidden;
      max-width: 100vw;
    }
  }
}