@import url('../../../gbhost/public/gbstyle/gbcommonstyle.scss');
.container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    /* Moves the button group to the right */
    width: 100%;
  }

  .Itemimg {
    position: relative;
    top: 35px;
    margin-left: 40px;
    right: 75px;
  }

  
  .img-container {
    width: 360px;
    height: 450px;
    border-radius: 6px;
    top: 176px;
    left: 6px;
    padding: 20px;
  }

  .visitDetail {
    display: flex;
    margin-top: 12px;
  }

  .visitoutbtn {
    height: 37px;
    width: 89px;
    border-radius: 6px;
    background-color: #6E3AB6;
    font-family: Helvetica Neue;
    font-weight: 700;
    font-size: 14px;
    text-align: center;
    cursor: pointer;
    display: inline-block;
    padding-top: 8px;
    color: white;
  }
  
  .visitinbtn {
    height: 37px;
    width: 89px;
    border-radius: 6px;
    background-color: #6E3AB6;
    color: white;
    font-family: Helvetica Neue;
    font-weight: 700;
    font-size: 14px;
    text-align: center;
    cursor: pointer;
    margin-right: 10px;
    display: inline-block;
    padding-top: 8px;
  }

  .email {
    position: relative;
    top: 7px;
    color: #6E3AB6;
  }
  
  .phone {
    position: relative;
    top: 30px;
    color: #6E3AB6;
  }
  
  .location {
    color: #6E3AB6;
    height: 28px;
    width: 24px;
    left: 5px;
    margin-left: 20px;
    position: relative;
    top: 5px;
    margin-right: 16px;
  }

  .empcontainer {
    width: 230px;
    height: 350px;
    margin-right: 14px;
    margin-left: 20px;
    padding: 5px;
  }

  .vehicle {
    width: 460px;
    height: 200px;
    padding: 5px;
  }

  .TabContainer {
    margin-left: 60px;
    margin-top: 160px;
  }

  .SendInvite-button {
    cursor: pointer;
    // margin-top: 10px;
    margin-right: 30px;
    margin-bottom: 10px;
    display: inline-flex;
    justify-content: center;
    align-content: center;
    box-shadow: 0px 2px 2px 0px #28b62f0f;
    border-radius: 6px;
    padding-top: 7px;
    color: #FFFFFF;
    width: 120px;
    height: 32px;
    background-color:var(--action-primary-default);
    font-family: Helvetica;
    font-size: 12px;
    font-weight: 500;
    line-height: 19px;
  
  }
  
  .PrintBUtton-button {
    cursor: pointer;
    // margin-top: 10px;
    margin-right: 30px;
    margin-bottom: 10px;
    display: inline-flex;
    justify-content: center;
    align-content: center;
    box-shadow: 0px 2px 2px 0px #28b62f0f;
    border-radius: 6px;
    padding-top: 7px;
    color: #FFFFFF;
    width: 120px;
    height: 32px;
    background-color:var(--action-primary-default) ;
    font-family: Helvetica;
    font-size: 12px;
    font-weight: 500;
    line-height: 19px;
  
  }
  
  .PunchButton-button {
    cursor: pointer;
  // margin-top: 10px;
  margin-right: 30px;
  margin-bottom: 10px;
  display: inline-flex;
  justify-content: center;
  align-content: center;
  box-shadow: 0px 2px 2px 0px #28b62f0f;
  border-radius: 6px;
  padding-top: 7px;
  color: #FFFFFF;
  width: 120px;
  height: 32px;
  background-color:var(--action-primary-default);
  border-inline-color: #6E3AB6;
  ;
  font-family: Helvetica;
  font-size: 12px;
  font-weight: 500;
  line-height: 19px;
  
  }

.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: 20px 20px 20px 20px;
    border: 1px solid #888;
    width: 1200px;
    height: 500px;
    border-radius: 10px;
  }

  .FormModal_contentLovType {
    justify-content: center;
    background-color: var(--mat-sys-background);
    margin: auto;
    
    padding: 10px;
    border: 1px solid #888;
    width: 1350px;
    height: 550px;
    border-radius: 10px;
    overflow: hidden;
  }
 .email {
    position: relative;
    top: 20px;
    color: var(--action-primary-default);
    margin-right: 16px;
    
  }
  .disabled {
    pointer-events: none;
    opacity: 0.5;
    cursor: not-allowed;
  }


  .attach-button {
    cursor: pointer;
    // margin-top: 10px;
    margin-right: 30px;
    margin-bottom: 10px;
    display: inline-flex;
    justify-content: center;
    align-content: center;
    box-shadow: 0px 2px 2px 0px #28b62f0f;
    border-radius: 6px;
    padding-top: 7px;
    color: #FFFFFF;
    width: 120px;
    height: 32px;
    background-color:var(--action-primary-default);
    font-family: Helvetica;
    font-size: 12px;
    font-weight: 500;
    line-height: 19px;
  
  }
.epass-raw {
  white-space: normal;
  font-family: monospace;
  padding: 16px;
  background: #f9f9f9;
  border: 1px solid #ccc;
  margin-top: 20px;
}

@media screen and (max-width: 1024px) {
  :host ::ng-deep {

    .container > div[style*="display: inline-flex"] {
      flex-wrap: wrap !important;
      gap: 8px !important;
    }

    .FormOverView > div[style*="display: flex"] {
      flex-direction: column !important;
    }

    .img-container {
      width: 100% !important;
      height: auto !important;
      box-sizing: border-box !important;
    }

    .empcontainer {
      width: 100% !important;
      height: auto !important;
      margin-left: 0 !important;
    }

    .vehicle {
      width: 100% !important;
      height: auto !important;
    }

    div[style*="flex-direction: column"] > div[style*="display: flex"] {
      flex-wrap: wrap !important;
    }

    .Itemimg {
      position: static !important;
      top: unset !important;
      right: unset !important;
      margin-left: 12px !important;
      margin-top: 8px !important;
      display: block !important;
    }

    .img-container > div[style*="display: flex"] {
      flex-direction: column !important;
      align-items: flex-start !important;
      gap: 8px !important;
    }

    .img-container > div[style*="display: flex"] > div[style*="margin-left: -11px"] {
      margin-left: 0 !important;
    }

    .modal-content {
      width: 90vw !important;
      height: auto !important;
      max-height: 80vh !important;
      overflow-y: auto !important;
    }

    .FormModal_contentLovType {
      width: 95vw !important;
      height: auto !important;
      max-height: 85vh !important;
      overflow-y: auto !important;
    }

    .SendInvite-button,
    .PrintBUtton-button,
    .PunchButton-button,
    .attach-button {
      margin-right: 8px !important;
      margin-bottom: 8px !important;
    }

    .TabContainer {
      margin-left: 0 !important;
      margin-top: 20px !important;
      width: 100% !important;
      box-sizing: border-box !important;
    }

    .TabContainer,
    .TabContainer *,
    .TabContainer .mat-mdc-tab-group,
    .TabContainer .mat-mdc-tab-body-wrapper,
    .TabContainer .mat-mdc-tab-body,
    .TabContainer .mat-mdc-tab-body-active,
    .TabContainer .mat-mdc-tab-body-content,
    .TabContainer mat-tab-body,
    .TabContainer mat-tab-group,
    .TabContainer .mat-tab-body-wrapper,
    .TabContainer .mat-tab-body,
    .TabContainer .mat-tab-body-active,
    .TabContainer .mat-tab-body-content,
    .TabContainer gb-formgrid {
      overflow: unset !important;
      overflow-x: auto !important;
      -webkit-overflow-scrolling: touch !important;
      max-width: 100% !important;
    }

    .TabContainer .mat-mdc-tab-body-content {
      overflow: auto !important;
      overflow-x: auto !important;
    }

    .TabContainer gb-formgrid table,
    .TabContainer gb-formgrid .mat-mdc-table,
    .TabContainer gb-formgrid .gb-grid-table,
    .TabContainer gb-formgrid .cdk-table,
    .TabContainer table {
      min-width: unset !important;
      width: max-content !important;
      table-layout: auto !important;
    }
  }
}

@media screen and (max-width: 767px) {
  :host ::ng-deep {

    .FormOverView {
      padding: 8px !important;
    }

    .container {
      flex-direction: column !important;
      align-items: flex-start !important;
    }

    .container > div[style*="display: inline-flex"] {
      flex-direction: column !important;
      width: 100% !important;
      gap: 10px !important;
    }

    .container gb-newpicklist,
    .container gb-checkbox {
      width: 100% !important;
    }

    .img-container {
      width: 100% !important;
      height: auto !important;
      padding: 12px !important;
    }

    .img-container > div[style*="display: flex"] {
      flex-direction: column !important;
      align-items: flex-start !important;
    }

    .Itemimg {
      position: static !important;
      top: unset !important;
      right: unset !important;
      margin: 0 0 12px 0 !important;
    }

    .img-container > div[style*="display: flex"] > div[style*="margin-left: -11px"] {
      margin-left: 0 !important;
    }

    div[style*="display: flex; margin-top: 20px"] {
      flex-direction: column !important;
      gap: 8px !important;
    }

    div[style*="flex-direction: column"] {
      margin-left: 0 !important;
    }

    .empcontainer {
      width: 100% !important;
      height: auto !important;
      margin-left: 0 !important;
      margin-right: 0 !important;
    }

    .vehicle {
      width: 100% !important;
      height: auto !important;
      margin-left: 0 !important;
    }

    .vehicle > div[style*="display: flex"] {
      flex-direction: column !important;
      gap: 8px !important;
    }

    .vehicle > div > div[style*="display: flex"] {
      flex-wrap: wrap !important;
      gap: 8px !important;
    }

    .vehicle div[style*="margin-left: 19px"] {
      margin-left: 0 !important;
      margin-top: 0 !important;
    }

    .vehicle gb-combobox,
    .vehicle gb-textarea {
      display: block !important;
      width: 100% !important;
    }

    div[style*="margin-top: -22px"] {
      margin-top: 8px !important;
    }

    div[style*="margin-top: -15px"] {
      margin-top: 0 !important;
    }

    .TabContainer {
      margin-left: 0 !important;
      margin-top: 16px !important;
      width: 100% !important;
      box-sizing: border-box !important;
    }

    .TabContainer,
    .TabContainer *,
    .TabContainer .mat-mdc-tab-group,
    .TabContainer .mat-mdc-tab-body-wrapper,
    .TabContainer .mat-mdc-tab-body,
    .TabContainer .mat-mdc-tab-body-active,
    .TabContainer .mat-mdc-tab-body-content,
    .TabContainer mat-tab-body,
    .TabContainer mat-tab-group,
    .TabContainer .mat-tab-body-wrapper,
    .TabContainer .mat-tab-body,
    .TabContainer .mat-tab-body-active,
    .TabContainer .mat-tab-body-content,
    .TabContainer gb-formgrid {
      overflow: unset !important;
      overflow-x: auto !important;
      -webkit-overflow-scrolling: touch !important;
      max-width: 100% !important;
    }

    .TabContainer .mat-mdc-tab-body-content {
      overflow: auto !important;
      overflow-x: auto !important;
    }

    .TabContainer gb-formgrid table,
    .TabContainer gb-formgrid .mat-mdc-table,
    .TabContainer gb-formgrid .gb-grid-table,
    .TabContainer gb-formgrid .cdk-table,
    .TabContainer table {
      min-width: unset !important;
      width: max-content !important;
      table-layout: auto !important;
    }

    .SendInvite-button,
    .PrintBUtton-button,
    .PunchButton-button,
    .attach-button {
      width: calc(50% - 8px) !important;
      margin-right: 8px !important;
      margin-bottom: 8px !important;
      font-size: 11px !important;
    }

    div[style*="width: 150px"] {
      width: auto !important;
      display: flex !important;
      flex-wrap: wrap !important;
      gap: 6px !important;
    }

    .modal-content {
      width: 98vw !important;
      height: auto !important;
      max-height: 90vh !important;
      overflow-y: auto !important;
      padding: 12px !important;
    }

    .FormModal_contentLovType {
      width: 98vw !important;
      height: auto !important;
      max-height: 90vh !important;
      overflow-y: auto !important;
      padding: 8px !important;
    }

    .modal {
      padding-top: 40px !important;
    }

    gb-combobox {
      display: block !important;
      width: 100% !important;
    }
  }
}