﻿/*Patient Banner Style*/

.patient-banner {
  position: relative;
  background-color: #2971c5;
  z-index: 3;
}

.patient-image {
  width: 90px;
  height: 90px;
  padding-left: 10px;
  position: absolute;
  z-index: 100;
}

.genderIndicator {
  border-radius: 50%;
  width: 20px;
  height: 20px;
  border: solid 2px #fff;
  position: absolute;
  top: 66px;
  left: 75px;
  z-index: 100;
}

.patientImageContainer {
  width: 90px;
  height: 90px;
  border-radius: 50%;
}

.patient-banner-top {
  height: 45px;
  line-height: 45px;
  color: #ffffff;
  font-size: 22px;
  vertical-align: central;
  overflow: hidden;
}

.patient-banner-bottom {
  height: 50px;
  line-height: 50px;
  color: #fff;
  font-size: 15px;
  vertical-align: central;
  overflow: hidden;
  -webkit-transition: all 0.2s ease;
  -moz-transition: all 0.2s ease;
  -ms-transition: all 0.2s ease;
  -o-transition: all 0.2s ease;
  transition: all 0.2s ease;
}

.patient-banner-detailTable {
  line-height: 30px;
  height: 100%;
  margin: 10px 0 0 10px;
  word-break: break-all;
}

.patient-banner-detailTable th {
  white-space: nowrap;
  text-align: left;
}

.patient-banner-detailTable td {
  word-break: break-word; /* Ensure long words are broken to prevent overflow */
  overflow-wrap: break-word;
}

.patient-banner-detailTable h4 {
  margin-left: 20px;
  /*margin-right: 40px;*/
}

/* .patient-banner-detailTable td:nth-child(2) h4 {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  -o-text-overflow: ellipsis;
} */

.patient-banner-detailTable td h4:empty {
  width: 5px;
  height: 2px;
  background: #fff;
  margin-left: 5px;
  margin-top: 5px;
  padding-left: 0;
  padding-right: 0;
  margin-left: 20px;
}

.bannerName {
  float: left;
  margin-left: 110px;
  max-width: 50%;
}

.bannerAddress {
  margin-left: 110px;
  width: calc(100% - 110px);
}

.bannerDOB {
  float: right;
}

.bannerID {
  float: right;
}

.bannerGender {
  float: right;
}

.bannerDOB,
.bannerID,
.bannerGender,
.bannerEmail,
.bannerTel,
.bannerName,
.bannerAddress,
.mainProcedure {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.patient-banner-text-top-right {
  margin-right: 10px;
  font-size: 15px;
  vertical-align: middle;
}

.patient-banner-textspace {
  padding-left: 20px;
}

.patient-banner-buttons {
  float: right;
  margin-left: 10px;
  cursor: pointer;
  white-space: nowrap;
}

.patient-banner-fontImageButton {
  display: flex !important;
  justify-content: center;
  align-items: center;
  font-size: 20px;
  width: 40px;
  height: 40px;
  float: right;
  display: block;
  transition: 0.5s;
  margin: 0 0 0 4px;
  border-radius: 50%;
}

.patient-banner-imageButton:active {
  opacity: 0.5;
}

/*Patient Banner Style End*/

/*Patient Banner mini Style*/

.patient-image-mini {
  float: left;
  width: 65px;
  height: 65px;
  padding-left: 7px;
  position: absolute;
}

.patientImageContainer-mini {
  width: 65px;
  height: 65px;
}

.patient-banner-mini-top {
  height: 22px;
  line-height: 22px;
  font-size: 18px;
  vertical-align: central;
}

.patient-banner-mini-bottom {
  height: 20px;
  line-height: 20px;
  font-size: 15px;
  vertical-align: central;
}

.patient-banner-mini-bottom-extra {
  height: 20px;
  line-height: 20px;
  font-size: 15px;
  vertical-align: central;
}

.patient-banner-text-top {
  float: left;
  padding-left: 80px;
}

.patient-banner-text-bottom {
  float: left;
  padding-left: 80px;
}

.patient-banner-text-top,
patient-banner-text-bottom {
  max-width: 75%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.patent-bannerMini-bottom {
  width: 100%;
}

.patient-banner-inlineText {
  display: inline-block;
  padding-left: 5px;
}

/*Patient Banner mini Style End*/

.stripes {
  background: repeating-linear-gradient(
    45deg,
    #606dbc,
    #606dbc 10px,
    #465298 10px,
    #465298 20px
  );
}

/*Patient search banner deceased stripes*/
.bannerDeceasedStripes {
  display: block;
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 10px;
  top: 0px;
  width: 90px;
  height: 90px;
  background: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 9px,
    rgba(0, 0, 0, 0.6) 0px,
    rgba(0, 0, 0, 0.6) 12px
  );
  border-radius: 50%;
}

.sh-pivot-withBackground {
  position: absolute;
  top: 40px;
  bottom: 0;
  left: 20px;
  right: 20px;
  height: auto;
}

.patient-banner-buttons .desktop {
  display: block;
}
.patient-banner-buttons .mobile {
  display: none;
}

#banner-detail-scroll-View {
  height: auto;
  position: absolute;
  top: 100px;
  bottom: 0;
  right: 0;
  left: 0;
}

#banner-detail-scroll-View .buttons {
  display: none;
}

.bannerAddressMobile {
  display: none;
}

.alerts-banner-bottom {
  flex-direction: column;
  position: absolute;
  z-index: 31;
  top: 49px;
  height: 46px;
  left: 75px;
  right: 0;
  color: #fff;
}

.alert-banner-text {
  width: auto;
  padding-left: 35px;
}

@media screen and (max-width: 768px) {
  #patientSearchTemplate h4 {
    font-size: 15px !important;
  }

  .dx-pivottabs {
    height: 40px;
  }

  .patient-image {
    display: none;
  }

  .genderIndicator {
    border-radius: 4px;
    width: 4px;
    height: 60px;
    position: absolute;
    border: none;
    top: 0;
    left: 10px;
    z-index: 100;
  }
  .bannerName {
    margin-left: 25px;
    max-width: 100%;
    flex-grow: 1; /* Allow the text to grow and take up available space */
    overflow: hidden; /* Hide overflow */
    white-space: nowrap; /* Prevent text from wrapping */
    text-overflow: ellipsis; /* Show ellipsis when text overflows */
    width: 100%;
  }
  .bannerAddress {
    margin-left: 25px;
  }
  .patient-banner h1 {
    font-size: 20px;
  }
  .patient-banner-top {
    height: 30px;
    line-height: 30px;
  }
  .patient-banner-bottom {
    height: 30px;
    line-height: 30px;
    padding-bottom: 10px;
  }
  .patient-banner-bottom h4 {
    font-size: 15px;
  }

  .patient-banner-buttons {
    flex-shrink: 0;
  }
  .patient-banner-buttons .desktop {
    display: none;
  }
  .patient-banner-buttons .mobile {
    display: block;
  }
  #patientBannerDetailButton {
    padding: 0px 15px 0px 20px;
  }
  #banner-detail-scroll-View {
    top: 80px;
  }
  #banner-detail-scroll-View .buttons {
    display: block;
    float: left;
    margin-left: 10px;
  }
  .banner-desktop-details {
    display: none;
  }
  .top-banner-container {
    display: flex; /* Use Flexbox for layout */
  }
  .patient-banner-buttons {
    margin-left: 0;
  }
  .patient-banner-text-top-right {
    margin-right: 0;
  }
  .bannerAddress {
    display: none;
  }
  .bannerAddressMobile {
    margin-left: 25px;
    width: calc(100% - 25px);
    display: block;
  }
  .alerts-banner-bottom {
    top: 38px;
    height: 32px;
    left: 0;
  }
  .alertbar-arrow-up {
    display: none;
  }
  .alert-banner-text {
    width: auto;
    padding-left: 25px;
  }
}
