/* Automatic Styles */

@import url("https://fonts.googleapis.com/css2?family=Open+Sans:wght@300;400;600;800&display=swap");
html {
  line-height: 1.15;
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  /* font-family: "Istok Web", sans-serif; */
  font-family: "Open Sans", sans-serif;
  font-size: 1.1rem;
}
a {
  text-decoration: none;
}
h1,
h2,
h3,
h4,
h5 {
  color: #425563;
  font-weight: 500;
}
.nhs-container {
  max-width: 1500px;
  margin: auto;
}

/* Box */

.nhs-box {
  border: solid 1px #fff;
  border-radius: 5pt 10pt 5pt 10pt;
  margin: 20px 0px;
  background: #ccdff1;
}

.nhs-box-header {
  font-size: 1.5rem;
  font-weight: 700;
  padding: 15px 20px;
  border-radius: 5pt 10pt 0pt 0pt;
  background: #005eb8;
  color: #fff;
}

.nhs-box-body {
  padding: 15px;
}

/* nhs-btn */

.nhs-btn-sm {
  padding: 6px 14px;
  color: white;
  background: #005eb8;
  text-decoration: none;
  border-radius: 5pt 10pt 5pt 10pt;
  display: inline-block;
  font-size: 0.9rem;
  margin: 10px 0px;
}

.nhs-btn {
  padding: 10px 20px;
  color: white;
  background: #005eb8;
  text-decoration: none;
  border-radius: 5pt 10pt 5pt 10pt;
  display: inline-block;
  font-size: 1.2rem;
  margin: 10px 0px;
  border-style: none;
}

.nhs-btn-md {
  padding: 14px 30px;
  color: white;
  background: #005eb8;
  text-decoration: none;
  border-radius: 5pt 10pt 5pt 10pt;
  font-size: 1.4rem;
  display: inline-block;
  margin: 10px 0px;
  border-style: none;
}

.nhs-btn-lg {
  padding: 18px 50px;
  color: white;
  background: #005eb8;
  text-decoration: none;
  border-radius: 5pt 10pt 5pt 10pt;
  font-size: 1.6rem;
  display: inline-block;
  margin: 10px 0px;
  border-style: none;
}

/* nhs-alert */

.nhs-alert-warning {
  border: solid 1px #fff;
  border-radius: 5pt 10pt 5pt 10pt;
  margin: 20px 0px;
  padding: 14px 20px;
  background: #fae100;
  cursor: default;
}

.nhs-alert-danger {
  border: solid 1px #fff;
  border-radius: 5pt 10pt 5pt 10pt;
  margin: 20px 0px;
  padding: 14px 20px;
  background: #da291c;
  color: #fff;
  cursor: default;
}

.nhs-alert-success {
  border: solid 1px #fff;
  border-radius: 5pt 10pt 5pt 10pt;
  margin: 20px 0px;
  padding: 14px 20px;
  background: #2e7d32;
  color: #fff;
  cursor: default;
}

/* nhs-hero */
.nhs-hero {
  text-align: center;
  color: #fff;
  height: 400px;
  border-radius: 10pt 20pt;
  background: #4776e6;
  display: flex;
  justify-content: center;
  align-items: center;
}

.nhs-hero > h1 {
  color: #fff;
  font-size: 3rem;
  margin-block-start: 0em;
  margin-block-end: 0em;
}

/* nhs-tag */

.nhs-tag {
  padding: 6px 12px 6px 12px;
  margin: 2px 4px 2px 2px;
  display: inline-block;
  border-radius: 5pt 10pt 5pt 10pt;
  background: #005eb8;
  color: #fff;
  cursor: default;
}

/* nhs-tabs */

.nhs-tabs {
  display: flex;
  flex-wrap: wrap;
}
.nhs-tab {
  order: 1;
  display: block;
  padding: 1rem 2rem;
  margin-right: 0.1rem;
  cursor: pointer;
  background: #e8edee;
  color: #000;
  font-weight: bold;
  transition: background ease 0.2s;
  border-radius: 5pt 10pt 0pt 0pt;
}
.nhs-tabs .tab {
  order: 99;
  flex-grow: 1;
  width: 100%;
  display: none;
  padding: 1rem;
  background: #003087 !important;
  color: #fff;
  border-radius: 0pt 10pt 5pt 10pt;
}
.nhs-tabs > input[type="radio"] {
  display: none;
}
.nhs-tabs input[type="radio"]:checked + label {
  background: #003087;
  color: #fff;
}
.nhs-tabs input[type="radio"]:checked + label + .tab {
  display: block;
}

/* nhs-list */

/* nhs-biglist */

.nhs-biglist-btn {
  padding: 10px 20px;
  background: #00a9ce;
  color: #fff;
  border-radius: 5pt 10pt;
  font-size: 1.2rem;
}

#nhs-biglist-content {
  display: none;
  width: 294px;
  background-color: #e6f6fa;
  border-radius: 5pt 10pt;
  margin-top: 2px;
  margin-left: 8px;
  padding: 8px 2px;
  position: absolute;
}

#nhs-biglist-content input {
  width: 280px;
  border-color: #00a9ce;
  border-style: solid;
  border-radius: 5pt 10pt;
  padding: 10px;
}

#nhs-biglist-filter {
  max-height: 400px;
  overflow: auto;
}

#nhs-biglist-filter a {
  padding: 8px 10px;
  display: block;
  font-weight: 400;
  font-size: 1rem;
  color: #000;
}

/* nhs-tooltip */

.nhs-tooltip {
  position: relative;
  display: inline-block;
}

.nhs-tooltip .nhs-tooltiptext {
  visibility: hidden;
  width: 120px;
  background-color: #555;
  color: #fff;
  text-align: center;
  border-radius: 5pt 10pt 5pt 10pt;
  padding: 5px 0;
  position: absolute;
  z-index: 1;
  top: 100%;
  left: 50%;
  margin-left: -60px;
  opacity: 0;
  transition: opacity 0.3s;
}

.nhs-tooltip:hover .nhs-tooltiptext {
  visibility: visible;
  opacity: 1;
}

/* nhs-table */
.nhs-table {
  border-collapse: collapse;
  width: 100%;
  border-width: 1px;
  border-color: #000;
  border-bottom-style: solid;
}

.nhs-table td,
.nhs-table th {
  padding: 12px;
}

.nhs-table tr:nth-child(even) {
  background-color: #f8f9fa;
}

.nhs-table tr:nth-child(odd) {
  background-color: #fff;
}

.nhs-table th {
  padding-top: 16px;
  padding-bottom: 12px;
  text-align: left;
}

.nhs-table th:first-child {
  border-radius: 5pt 0pt 0pt 0pt;
}

.nhs-table th:last-child {
  border-radius: 0pt 10pt 0pt 0pt;
}

/* PatientTable */
.nhs-patient-table {
  border-collapse: collapse;
  width: 100%;
  border-width: 1px;
  border-color: #005eb8;
  border-bottom-style: solid;
}

.nhs-patient-table th {
  background: #005eb8;
  color: #fff;
  padding: 20px 10px 15px 10px;
  text-align: left;
}

.nhs-patient-table td {
  padding: 15px 9px 10px 9px;
  vertical-align: top;
}

.nhs-patient-table tr:nth-child(even) {
  background-color: #e8edee;
}

.nhs-patient-table tr:nth-child(odd) {
  background-color: #fff;
}

.nhs-link-rows {
  cursor: pointer;
}

.nhs-patient-card {
  background: #eceeef;
  border-radius: 5pt 10pt;
  padding: 14px 10px;
  margin-bottom: 15px;
}

.nhs-patient-card label {
  color: #003087;
  margin-right: 10px;
}

.nhs-pt-name {
  font-size: 1.8rem;
}

/* nhs-menu */
.nhs-h-menu {
  /* background: chartreuse; */
  display: flex;
}

.nhs-h-menu a,
.nhs-h-menu div span {
  padding: 10px 12px;
  margin: 5px 3px 3px 0px;
  display: inline-flex;
  background: #2e3b45;
  color: #fff;
  font-weight: 500;
  border-radius: 5pt 10pt 0pt 0pt;
}

/* nhs-dropdown */
.nhs-dropdown {
  position: relative;
}
.nhs-dropdown-content {
  display: none;
  position: absolute;
  background-color: #e8edee;
  min-width: 160px;
  padding: 2px 4px;
  z-index: 1;
  border-radius: 0pt 10pt 5pt 10pt;
}

.nhs-dropdown-content-right {
  display: none;
  position: absolute;
  right: 0px;
  min-width: 160px;
  padding: 2px;
  z-index: 1;
  border-radius: 5pt 0pt 5pt 10pt;
}
.nhs-dropdown:hover .nhs-dropdown-content {
  display: block;
}
.nhs-dropdown:hover .nhs-dropdown-content-right {
  display: block;
}
.nhs-dropdown a {
  display: block;
  padding: 12px;
  background: #d9dde0;
  color: #000;
  text-decoration: none;
  border-radius: 5pt 10pt;
  font-size: 1rem;
  margin: 5px 4px;
}

/* Patient Banner */
.pt-banner {
  border-radius: 5pt 10pt 0pt 0pt;
  background: #4776e6;
  color: #fff;
  padding: 12px 15px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: 1fr;
  grid-column-gap: 5px;
  grid-row-gap: 5px;
  cursor: pointer;
  outline: none;
  transition: 0.4s;
}

#pt-ext1 {
  grid-area: 1 / 1 / 2 / 2;
}
#pt-ext2 {
  grid-area: 1 / 2 / 2 / 3;
}
#pt-ext3 {
  grid-area: 1 / 3 / 2 / 4;
}
#pt-ext4 {
  grid-area: 1 / 4 / 2 / 5;
}

.pt-banner-ext {
  border-radius: 0pt 0pt 5pt 10pt;
  padding: 12px 15px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(1, 1fr);
  grid-column-gap: 5px;
  grid-row-gap: 5px;
  display: none;
  overflow: hidden;
  background: #f2f7fb;
}

.pt-banner-ext > div > div > h4 {
  font-size: 1.3rem;
  font-weight: 600;
  margin-block-start: 0em;
  margin-block-end: 0.4em;
  color: #000;
}

.pt-banner-ext > div > div > h5 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-block-start: 1em;
  margin-block-end: 0.4em;
  color: #000;
}

.nhs-grid {
  display: grid;
}

#pt-name {
  grid-area: 1 / 1 / 2 / 4;
  font-size: 2rem;
}
#pt-crn {
  grid-area: 1 / 4 / 2 / 5;
}
#pt-nhs {
  grid-area: 1 / 5 / 2 / 6;
}
#pt-alerts {
  grid-area: 2 / 1 / 3 / 6;
}

/* NHS Card for Box */
.nhs-card {
  margin: 10px 0px;
  padding: 10px 20px;
  background: #e8edee;
  color: #000;
  border-radius: 5pt 10pt;
  cursor: default;
}

/* Layout */

header {
  height: 100px;
  background: #e8edee;
}

header a {
  color: #003087;
  margin: 0px 15px 0px 0px;
  padding-bottom: 3px;
  font-weight: 600;
}

header i {
  font-size: 1.5rem;
  margin-right: 4px;
}

.nhs-h-box {
  padding: 0px 15px;
  display: flex;
  align-items: center;
  height: 100px;
  width: 100%;
}

.nhs-search {
  display: flex;
  justify-content: center;
}

.nhs-search-b {
  justify-content: center;
}

.nhs-search > input {
  padding: 12px;
  border-radius: 5pt 0pt 0pt 10pt;
  border-color: green;
  border-style: solid;
  width: 180px;
  font-size: 1.2rem;
}

.nhs-search > .nhs-dropdown {
  margin-top: 16px;
}

.search-dropdown {
  margin: 10px 10px 0px -35px;
  color: #425563;
  cursor: pointer;
}

.nhs-search .nhs-search-button {
  padding: 0px 10px 0px 15px;
  border-radius: 0pt 10pt 5pt 0pt;
  margin: 0px 0px 0px -5px;
  background: green;
  color: #fff;
}

#advanced-search input {
  padding: 10px;
  border-radius: 5pt;
  border-color: #0072ce;
  border-style: solid;
  margin-top: 10px;
  font-size: 1.2rem;
  max-width: 200px;
}

#advanced-search {
  display: none;
  text-align: center;
}

.nhs-header-nav {
  display: flex;
  justify-content: flex-end;
}

footer {
  padding: 30px 10px;
  text-align: center;
  font-size: 1rem;
  background: #e8edee;
}

.nhs-main {
  margin: 40px 20px 30px 20px;
  min-height: calc(100vh - 316px);
}

.nhs-main-home {
  margin: 40px 20px 30px 20px;
  min-height: calc(100vh - 716px);
}

.nhs-logo {
  font-size: 3.5rem;
  font-weight: 400;
}

.nhs-flex {
  display: flex;
}

.nhs-flex > div {
  width: 100%;
}

.nhs-mob-bar {
  display: none;
}

.nhs-show-xs {
  display: none;
}

/* CWSA Layout */
.nhs-hero2 {
  width: 100%;
  border-radius: 0px !important;
  z-index: 0;
}

#advanced-search {
  padding: 10px;
  z-index: 1;
}

#mob-menu {
  display: none;
}

.nhs-show {
  display: block !important;
}

.usr-button {
  margin: 1px;
  border-radius: 5pt 10pt 0pt 10pt;
}

/* Hamburger */

.mobnav {
  overflow: hidden;
  background-color: #333;
  position: relative;
}

.mobnav a {
  color: white;
  padding: 14px 16px;
  text-decoration: none;
  font-size: 17px;
  display: block;
}

.mobnav a.icon {
  background: black;
  display: block;
  position: absolute;
  right: 0;
  top: 0;
}

.mobnav a:hover {
  background-color: #ddd;
  color: black;
}

/* Resets */
.nhs-btn:hover,
.nhs-btn-sm:hover,
.nhs-btn-md:hover,
.nhs-btn-lg:hover {
  color: #fff;
}

*:focus {
  outline: none;
}

button {
  border: 0;
  border-radius: 0.25rem;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
}

.pdisabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.range {
  background-color: #c2ffec !important;
  width: 100px;
}

.nhs-hide {
  display: none;
}

*,
::after,
::before {
  box-sizing: none;
}

/* Responsive Small Screens */
@media screen and (max-width: 767px) {
  .pt-banner {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(3, 1fr);
    padding: 10px;
  }

  .pt-banner-ext {
    grid-template-rows: repeat(2, 1fr);
    padding: 10px;
  }

  #pt-name {
    grid-area: 1 / 1 / 2 / 3;
  }
  #pt-crn {
    grid-area: 2 / 1 / 3 / 2;
  }
  #pt-nhs {
    grid-area: 2 / 2 / 3 / 3;
  }
  #pt-alerts {
    grid-area: 3 / 1 / 4 / 3;
  }

  #pt-ext1 {
    grid-area: 1 / 1 / 2 / 3;
  }
  #pt-ext2 {
    grid-area: 1 / 3 / 2 / 5;
  }
  #pt-ext3 {
    grid-area: 2 / 1 / 3 / 3;
  }
  #pt-ext4 {
    grid-area: 2 / 3 / 3 / 5;
  }

  .nhs-hide-xs {
    display: none;
  }

  .nhs-show-xs {
    display: block;
  }

  .nhs-hide-print {
    display: block;
  }

  .nhs-btn {
    padding: 5px 10px;
  }

  .nhs-logo {
    font-size: 2.6rem;
  }

  .nhs-main {
    margin: 20px 10px 15px 10px;
    min-height: calc(100vh - 226px);
  }

  .nhs-main-home {
    margin: 20px 10px 15px 10px;
    min-height: calc(100vh - 476px);
  }

  header {
    height: 70px;
  }

  header i {
    margin-right: 0px;
  }

  header a {
    margin: 0px 10px 0px 0px;
  }

  .nhs-h-box {
    padding: 0px 10px;
    height: 70px;
    width: 100%;
  }

  .nhs-mob-bar {
    display: block;
  }

  .nhs-search > input {
    padding: 10px;
    border-radius: 5pt 0pt 0pt 10pt;
    border-color: green;
    border-style: solid;
    width: 130px;
    font-size: 0.9rem;
  }

  .nhs-search > .nhs-dropdown {
    margin-top: 10px;
  }

  .search-dropdown {
    height: 26px;
    margin: 0px 10px 0px -30px;
    color: #425563;
    cursor: pointer;
  }

  .nhs-search .nhs-search-button {
    padding: 7px 10px 2px 10px;
    border-radius: 0pt 10pt 5pt 0pt;
    margin: 0px 0px 0px -5px;
    background: green;
    color: #fff;
  }

  footer {
    padding: 10px 5px;
  }

  .nhs-hero {
    height: 250px;
  }

  .nhs-hero > h1 {
    font-size: 2.5rem;
  }

  #advanced-search .nhs-flex {
    display: block;
  }

  .nhs-biglist-btn {
    padding: 5px 10px;
  }

  .nhs-pt-name {
    font-size: 1.2rem;
  }
}

/* Printing Views */
@media print {
  .nhs-hide-print {
    display: none;
  }

  @page {
    margin: 0;
    size: A4 landscape;
    font-size: 11pt;
  }

  @page :left {
    margin-left: 0.5cm;
  }

  @page :right {
    margin-right: 0.5cm;
  }
}
