@import url('../../../../gbhost/public/gbstyle/gbcommonstyle.scss');

  .modal-header {
    position: sticky;
    top: 0;
    background-color: #fefefe;
    padding: 10px 0;
    z-index: 10;
    // display: flex;
    // justify-content: space-between;
    // align-items: center;
    border-bottom: 1px solid #ccc;
  }
  
.modal {
    display: none;
    position: fixed;
    z-index: 999;
    padding-top: 100px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
  }
  .modal-content {
    justify-content: center;
    background-color: #fefefe;
    margin: auto;
    padding: 0px 20px 20px 20px;
    border: 1px solid #888;
    width: 1000px;
    height: 500px;
    margin-top: -94px;
    border-radius: 10px;
  }

// .custom-btn {
//   background-color: #19d438; /* Bootstrap blue */
//  color: var(--action-primary-default);
//   border: 1px solid #0056b3;
//   padding: 8px 16px;
//   font-size: 14px;
//   border-radius: 6px;
//   cursor: pointer;
//   transition: background-color 0.3s, border-color 0.3s;
//   margin-right: 10px; /* space between buttons */
// }
.custom-btn {
  background-color: var(--action-primary-default);
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 500;
}



.custom-btn:active {
  background-color: #003d66;
  border-color: #002952;
}
  .closeicon {
    width: 935px;
    display: flex;
    justify-content: right;
    cursor: pointer;
    margin-bottom: 20px;
    margin-top: -27px;
  }

  .formbuttons {
	display: flex;
	justify-content: center;
	align-items: center;
	background-color: #FFFFFF;
	margin-right: 20px;
	width: 70px;
	height: 45px;
	border-radius: 8px;
	box-shadow: 0 3px 1px -2px rgba(0, 0, 0, .2), 0 2px 2px 0 rgba(0, 0, 0, .14), 0 1px 5px 0 rgba(0, 0, 0, .12);
	border-radius: 8px;
	font-size: 14px;
	cursor: pointer;
}
.savebutton {
	background-color: var(--action-primary-default);
	color: #FFFFFF;
}
  .modal-content1 {
    justify-content: center;
    background-color: #fefefe;
    margin: auto;
    padding: 0px 20px 20px 20px;
    border: 1px solid #888;
    width: 400px;
    height: 200px;
    margin-top: -94px;
    border-radius: 10px;
  }

  .encashment-container {
  margin-left: 36px;
  border: 1px solid #b3d4fc;
  background-color: #eaf4fe;
  padding: 16px;
  border-radius: 8px;
  height: 360px;
  width: 300px;
}


.defineType {
    color: var(--action-primary-default);
}

.button-container {
  border: 1px solid #b3d4fc;
  background-color: #eaf4fe;
    padding: 30px;
    border-radius: 10px;
    margin-top:4px;
    width: fit-content;
    margin: 30px auto;
    height: 200px;
  }

  .button-box {
    text-align: center;
    margin-bottom: 30px;
  }

  .description {
    font-size: 14px;
    color: #333;
    margin-bottom: 10px;
    max-width: 300px;
    margin-left: auto;
    margin-right: auto;
  }
  .custom-btn {
    background-color: var(--action-primary-default);
    color: white;
    border: none;
    padding: 10px 24px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    font-size: 14px;
  }

@media (max-width: 1024px) and (min-width: 600px) {

  ::ng-deep .FormOverView {
    padding: 12px;
  }

  ::ng-deep .FormOverView>div[style*="display: flex"]:first-child {
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    align-items: start;
  }

  ::ng-deep .FormOverView>div[style*="display: flex"]:first-child>div {
    margin-right: 0 !important;
    margin-left: 0 !important;
    min-width: unset !important;
    width: 100% !important;
  }

  ::ng-deep .FormOverView>div[style*="display: flex"]>div>div[style*="display: flex"] {
    flex-wrap: wrap !important;
    gap: 8px;
    align-items: center;
  }
  
  .automanual {
    padding: 0 !important;
    margin: 0 !important;
    display: flex;
    align-items: center;
  }

  ::ng-deep gb-newpicklist,
  ::ng-deep gb-input,
  ::ng-deep gb-date,
  ::ng-deep gb-checkbox,
  ::ng-deep gb-radiobutton,
  ::ng-deep gb-textarea,
  ::ng-deep gb-combobox {
    width: 100%;
    display: block;
  }

  ::ng-deep gb-formgrid {
    width: 100%;
    display: block;
    overflow-x: auto;
  }



  ::ng-deep gb-radiobutton {
    display: block !important;
    width: 100% !important;
    min-height: unset !important;
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
    contain: none !important;
  }

  ::ng-deep gb-formaction {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
  }

  .modal-content {
    width: 90% !important;
    height: auto !important;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
  }
  .modal-content1 {
    width: 90% !important;
    height: auto !important;
    position: relative;
  }

  .modal-content > div[style*="display: flex"]:nth-child(2) {
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }
  .modal-content > div[style*="display: flex"]:nth-child(2) > div {
    width: 100% !important;
    margin-left: 0 !important;
    margin-top: 10px !important;
  }
  
  .encashment-container {
    width: 100% !important;
    height: auto !important;
    margin-left: 0 !important;
    margin-top: 10px !important;
  }

  .closeicon {
    width: auto !important;
    margin: 0 !important;
    position: absolute !important;
    top: 10px !important;
    right: 10px !important;
  }
  .closeicon1 {
    width: 100% !important;
  }
  
  .modal-content h1, .modal-content1 h1 {
    margin-left: 0 !important;
    width: 100% !important;
    text-align: center !important;
  }
}

@media (max-width: 599px) {

  ::ng-deep .FormOverView {
    padding: 8px;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch;
  }

  ::ng-deep .FormOverView>div[style*="display: flex"]:first-child {
    display: flex !important;
    flex-direction: column !important;
    gap: 0;
  }

  ::ng-deep .FormOverView>div[style*="display: flex"]:first-child>div {
    margin-right: 0 !important;
    margin-left: 0 !important;
    min-width: unset !important;
    width: 100% !important;
  }

  ::ng-deep .FormOverView>div[style*="display: flex"]>div>div[style*="display: flex"] {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
  }
  
  .automanual {
    padding: 0 !important;
    margin: 0 !important;
    display: flex;
    align-items: center;
  }

  ::ng-deep gb-newpicklist,
  ::ng-deep gb-input,
  ::ng-deep gb-date,
  ::ng-deep gb-checkbox,
  ::ng-deep gb-radiobutton,
  ::ng-deep gb-textarea,
  ::ng-deep gb-combobox {
    width: 100% !important;
    display: block !important;
  }

  ::ng-deep gb-formgrid {
    width: 100% !important;
    display: block !important;
    overflow-x: auto;
  }



  ::ng-deep gb-formaction {
    display: flex !important;
    flex-wrap: wrap;
    width: 100%;
  }

  ::ng-deep gb-radiobutton {
    display: block !important;
    width: 100% !important;
    min-height: unset !important;
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
    contain: none !important;
    box-sizing: border-box !important;
    position: relative !important;
  }

  ::ng-deep .FormOverView gb-radiobutton>div,
  ::ng-deep .FormOverView gb-radiobutton>span,
  ::ng-deep .FormOverView gb-radiobutton>section,
  ::ng-deep .FormOverView gb-radiobutton>fieldset,
  ::ng-deep .FormOverView gb-radiobutton>form {
    display: flex !important;
    flex-direction: column !important;
    flex-wrap: nowrap !important;
    gap: 8px !important;
    width: 100% !important;
    height: auto !important;
    min-height: unset !important;
    max-height: none !important;
    overflow: visible !important;
    box-sizing: border-box !important;
  }

  ::ng-deep .FormOverView gb-radiobutton .Radio_Form_Field,
  ::ng-deep .FormOverView gb-radiobutton mat-form-field,
  ::ng-deep .FormOverView gb-radiobutton .mat-mdc-form-field {
    height: auto !important;
    min-height: 56px !important;
    overflow: visible !important;
  }

  ::ng-deep .FormOverView gb-radiobutton .mat-radio-group,
  ::ng-deep .FormOverView gb-radiobutton [role="radiogroup"],
  ::ng-deep .FormOverView gb-radiobutton .radio-group,
  ::ng-deep .FormOverView gb-radiobutton .options-container,
  ::ng-deep .FormOverView gb-radiobutton .radio-container,
  ::ng-deep .FormOverView gb-radiobutton .radio-wrapper,
  ::ng-deep .FormOverView gb-radiobutton .gb-radio-group {
    display: flex !important;
    flex-direction: column !important;
    flex-wrap: nowrap !important;
    gap: 8px !important;
    width: 100% !important;
    height: auto !important;
    min-height: unset !important;
    max-height: none !important;
    overflow: visible !important;
    box-sizing: border-box !important;
  }

  ::ng-deep .FormOverView gb-radiobutton .mat-radio-button,
  ::ng-deep .FormOverView gb-radiobutton mat-radio-button,
  ::ng-deep .FormOverView gb-radiobutton .mat-mdc-radio-button,
  ::ng-deep .FormOverView gb-radiobutton label,
  ::ng-deep .FormOverView gb-radiobutton .radio-option,
  ::ng-deep .FormOverView gb-radiobutton .gb-radio-option,
  ::ng-deep .FormOverView gb-radiobutton .option-item {
    flex: 0 0 100% !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 100% !important;
    height: auto !important;
    min-height: 40px !important;
    max-height: none !important;
    overflow: visible !important;
    display: flex !important;
    align-items: center !important;
    box-sizing: border-box !important;
    white-space: normal !important;
  }

  ::ng-deep gb-date {
    width: 100% !important;
    display: block !important;
    box-sizing: border-box !important;
  }

  ::ng-deep gb-date .mat-mdc-form-field,
  ::ng-deep gb-date mat-form-field,
  ::ng-deep gb-date>*,
  ::ng-deep gb-date input {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  ::ng-deep gb-input .mat-mdc-form-field,
  ::ng-deep gb-input mat-form-field,
  ::ng-deep gb-input>*,
  ::ng-deep gb-input input {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  ::ng-deep gb-newpicklist .mat-mdc-form-field,
  ::ng-deep gb-newpicklist mat-form-field,
  ::ng-deep gb-newpicklist>* {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
  
  ::ng-deep gb-combobox .mat-mdc-form-field,
  ::ng-deep gb-combobox mat-form-field,
  ::ng-deep gb-combobox>* {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
  
  .modal-content {
    width: 95% !important;
    height: auto !important;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
  }
  .modal-content1 {
    width: 95% !important;
    height: auto !important;
    position: relative;
  }

  .modal-content > div[style*="display: flex"]:nth-child(2) {
    display: flex !important;
    flex-direction: column !important;
    gap: 8px;
  }
  .modal-content > div[style*="display: flex"]:nth-child(2) > div {
    width: 100% !important;
    margin-left: 0 !important;
    margin-top: 10px !important;
  }
  
  .encashment-container {
    width: 100% !important;
    height: auto !important;
    margin-left: 0 !important;
    margin-top: 10px !important;
  }
  
  .closeicon {
    width: auto !important;
    margin: 0 !important;
    position: absolute !important;
    top: 10px !important;
    right: 10px !important;
  }
  .closeicon1 {
    width: 100% !important;
  }
  
  .modal-content h1, .modal-content1 h1 {
    margin-left: 0 !important;
    width: 100% !important;
    text-align: center !important;
  }
}