:root {
  --primary-orange: #D84F00;
  --primary-green: #82BC41;
  --primary-dark: #201E1E;
  --primary-white: #FFFFFF;

  --primary: var(--primary-orange);
  --bg-primary: var(--primary-orange);
  --bg-secondary: color-mix(in srgb, var(--bg-primary) 15%, #fff);
  --bg-tertiary: color-mix(in srgb, var(--bg-primary) 5%, #fff);
  --green-tertiary: color-mix(in srgb, var(--primary-green) 5%, #fff);
  --background: #ffffff;
  --background-grey: #e6e7e8;

  --sec-pink: #F04E53;
  --sec-red: #E31F26;
  --sec-blue: #6BC6B3;
  --sec-dark-green: #35B55B;
  --sec-light-green: #9BC850;
  --sec-yellow: #F7B71F;
  --sec-gray: #DEDFE0;

  --text: var(--primary-dark);
  --accent: var(--primary-green);
  --success: var(--sec-dark-green);
  --error: var(--sec-red);

  --shadow: 0 0 1.5rem 0 rgba(0, 0, 0, 0.08), 0 0 0 1px rgba(0, 0, 0, 0.05);
  --max-width: 73.125rem;
}

@font-face {
  font-family: 'latobold';
  src: url('../fonts/lato-bold-webfont.woff2') format('woff2'),
       url('../fonts/lato-bold-webfont.woff') format('woff');
  font-weight: normal;
  font-style: normal;
}
@font-face {
  font-family: 'latobold_italic';
  src: url('../fonts/lato-bolditalic-webfont.woff2') format('woff2'),
       url('../fonts/lato-bolditalic-webfont.woff') format('woff');
  font-weight: normal;
  font-style: normal;
}
@font-face {
  font-family: 'latomedium';
  src: url('../fonts/lato-medium-webfont.woff2') format('woff2'),
       url('../fonts/lato-medium-webfont.woff') format('woff');
  font-weight: normal;
  font-style: normal;
}
@font-face {
  font-family: 'latomedium_italic';
  src: url('../fonts/lato-mediumitalic-webfont.woff2') format('woff2'),
       url('../fonts/lato-mediumitalic-webfont.woff') format('woff');
  font-weight: normal;
  font-style: normal;
}
@font-face {
  font-family: 'latoregular';
  src: url('../fonts/lato-regular-webfont.woff2') format('woff2'),
       url('../fonts/lato-regular-webfont.woff') format('woff');
  font-weight: normal;
  font-style: normal;
}

* {
	font-family: 'latoregular', sans-serif;
}
html {
  container: body-wrapper / inline-size;
}
body {
  display: grid;
  grid-template-columns: 17rem 1.3fr 1fr;
  grid-template-rows: 1.6fr auto;
  gap: 0;
  grid-auto-flow: row;
  grid-template-areas:
  "header main main"
  "footer footer footer";
  &.public {
    display: flex;
    flex-flow: column;
  }
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  color: var(--text);

  @container body-wrapper (width < 48.75em) {
    display: flex;
    flex-flow: column;
    &::before {
      opacity: 0;
      transition: opacity 0.25s;
      display: block;
      content: " ";
      position: absolute;
      top: 0;
      left: -100%;
      width: 100%;
      height: 100%;
      background: #0009;
      backdrop-filter: blur(0.5rem);
    }
    &:has(.menu_toggle:checked)::before {
      left: 0;
      opacity: 1;
      transition: opacity 0.25s;
    }
  }
}
h1,
h2,
h3,
h4,
h5 {
  font-family: 'latobold', sans-serif;
  color: #fff;
  font-weight: normal;
  width: 100%;
}

.header { grid-area: header; }
.footer { grid-area: footer; }
.main { grid-area: main; }
.quick_links { grid-area: quick_links; }

.header {
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: start;
  padding: 1rem 0 1rem 1rem;
  z-index: 10;

  @container body-wrapper (width < 48.75em) {
    background-color: #fff;
    box-shadow: var(--shadow);
    padding: 0;
    position: fixed;
    top: 0;
    left: 0;
  }

  & .wrapper {
    display: flex;
    height: 100%;
    @container body-wrapper (width > 48.75em) {
      box-shadow: var(--shadow);
    }
    border-radius: 1rem;
    flex-direction: column;
    flex-wrap: wrap;
    gap: 2rem;
    width: 90%;
    max-width: var(--max-width);
  }

  & .logo {
    text-align: center;
    padding-top: 1rem;
    padding-bottom: 1rem;

    & img {
      width: 4rem;

      @container body-wrapper (width > 48.75em) {
        width: 10rem;
      }
    }
  }

  & .nav {
    width: 100%;
    flex-grow: 2;
    display: flex;
    flex-direction: column;

    @container body-wrapper (width < 48.75em) {
      display: none;
      height: 0;
      margin: 0;
      padding: 0;
      list-style: none;
      transition-duration: .25s;
    }

    @container body-wrapper (width > 48.75em) {
      align-content: space-between;
    }

    & a,
    & .link {
      display: flex;
      align-items: center;
      padding: 0 0.5rem;
      margin: 0 0.5rem;
      color: var(--text);
      text-decoration: none;
      border-radius: 0.3rem;
      width: calc(100% - 1rem);
      line-height: 1.5rem;
      transition: all .3s;

      & i {
        color: var(--primary-green);
        font-size: 2rem;
        width: 2rem;
      }
      & span {
        padding: 0.5rem 0;
      }
      &:hover,
      &.active {
        & i {
          color: var(--primary-orange);
        }
        & span {
          text-decoration: underline;
        }
      }
      &.active {
        color: var(--primary-orange);
      }
      &:hover {
        background: var(--bg-secondary);
      }

      &.logout {
        & i {
          font-size: 1.2rem;
        }
      }
    }

    & .menu {
      list-style: none;
      position: relative;
      padding: 0;
      margin: 0;
      height: 100%;
      width: 100%;
      display: flex;
      flex-wrap: wrap;
      flex-direction: column;

      @container body-wrapper (width < 48.75em) {
        align-items: center;
        gap: 0.25rem;

        & li {
          border-bottom: 1px solid var(--veryLightGrey);
          width: calc(100% - 2rem);
        }
      }
      @container body-wrapper (width > 48.75em) {
        gap: 1em;
      }
    }
  }
}
.public .header {
  align-items: center;
  padding: 3rem 0;
  position: relative;

  & .wrapper {
    display: block;
    box-shadow: none;
    height: auto;
  }

  & .logo {
    & img {
      min-width: 13rem;
      width: 100%;
      max-width: 23rem;
    }
  }
}

.menu_btn {
  position: fixed;
  top: 1rem;
  left: 1rem;
  width: 2rem;
  height: 2rem;
  cursor: pointer;
  z-index: 100;
  background: #fff;
  border: 0.25rem solid #fff;
  border-radius: 50%;

  &:hover {
    background: var(--veryLightPrimary);
    border-color: var(--veryLightPrimary);
  }

  & > span,
  & > span::before,
  & > span::after {
    display: block;
    position: absolute;
    width: 1rem;
    height: 2px;
    background-color: #616161;
    transition-duration: 0.25s;
  }

  & > span {
    top: 50%;
    left: 0.25rem;
  }

  & > span::before {
    content: "";
    top: -0.4rem;
  }

  & > span::after {
    content: "";
    top: 0.4rem;
  }

  .menu_toggle {
    opacity: 0;
  }

  &:has(.menu_toggle:checked) > span {
    transform: rotate(45deg);
  }

  &:has(.menu_toggle:checked) > span::before {
    top: 0;
    transform: rotate(0deg);
  }

  &:has(.menu_toggle:checked) > span::after {
    top: 0;
    transform: rotate(90deg);
  }

  &:has(.menu_toggle:checked) ~ .header .wrapper .menu__box {
    display: flex;
    height: auto;
  }

  @container body-wrapper (width > 48.75em) {
    display: none;
    position: relative;
  }
}

.splash {
  width: 100%;
  height: 40vh;
  overflow: hidden;
  margin-bottom: 3rem;

  & img {
    width: 100%;
    height: auto;
  }
}

.main {
  display: flex;
  flex-flow: column;
  flex-grow: 2;
  gap: 2rem 0;
  align-items: center;
  margin: 1rem auto;
  width: 100%;
  padding: 0 3.5rem 0 1.5rem;

  @container body-wrapper (width < 1000px) {
    margin-top: 0;
  }

  & h1 {
    color: var(--primary);
  }
  & h2,
  & h3 {
    color: var(--primary-green);
  }

  & section {
    width: 100%;
  }

  & #networkType {
    color: var(--primary);
  }

  & #docTableContainer {
    width: 100%;
    display: flex;
    justify-content: center;
  }

  & .msg {
    font-weight: bold;
    padding: 0 0 1rem 0;
  }

  & input,
  & select  {
    width: 100%;
    padding: 0.3rem;
    border: 1px solid var(--sec-gray);
    background: var(--background);
    border-radius: 0.5rem;

    &[type="checkbox"] {
      width: auto;
      margin-right: 0.5rem;
    }
    &::placeholder {
      opacity: 0.5;
    }
    &:focus,
    &:hover {
      outline: 1px solid var(--primary-green);
      box-shadow: 0 2px 0 var(--primary-green);
    }
    &:disabled {
      cursor: not-allowed;
    }
    /* :not(:placehoder-shown):valid */
    &:user-invalid {
      outline: 1px solid var(--error);
    }
  }

  & .login_form {
    display: flex;
    flex-flow: column;
    gap: 1rem;
    width: 100%;
    margin-bottom: 3rem;
    padding: 1.5rem;
    max-width: 23rem;
    border-radius: 1rem;

    @container body-wrapper (width > 48.75em) {
      box-shadow: var(--shadow);
    }
  }
  & .form_message {
    width: 100%;
    max-width: 23rem;
  }

  & .password_reset {
    display: flex;
    flex-flow: column;
    gap: 1rem;
  }
  & .password_label {
    display: grid;
    grid-template-columns: 1.7fr 0.3fr;
    grid-template-rows: auto 1fr auto;
    gap: 0;
    grid-auto-flow: row;
    grid-template-areas:
      "copy copy"
      "password icon"
      "password_strength password_strength"
      "message message";

    & .copy { grid-area: copy; }
    & .password {
      grid-area: password;
    }
    & .icon {
      grid-area: icon;
      background: transparent;
      border: none;
      outline: none;

      &:hover {
        color: var(--primary);
      }

    }
    & .password_strength {
      grid-area: password_strength;
      display: flex;
      flex-flow: column;
      gap: 0;
      & ul {
        font-size: 0.9rem;
      }
    }
    & .message {
      grid-area: message;
      margin-top: 0.5rem;
      display: flex;
      justify-content: space-between;

      &.error {
        color: var(--error);
      }
      &.success {
        color: var(--success);
      }
      & i {
        width: 3rem;
        text-align: center;
      }
    }
    &:has(> input[type="password"]) {
      & .ri-eye-line {
        display: inline-block;
      }
      & .ri-eye-off-line {
        display: none;
      }
    }
    &:has(> input[type="text"]) {
      & .ri-eye-line {
        display: none;
      }
      & .ri-eye-off-line {
        display: inline-block;
      }
    }
  }

  & details {
    background: var(--primary-green);
    width: 100%;
    box-shadow: var(--shadow);
    padding: 0;
    border-radius: 1rem;
    overflow: hidden;

    summary > * {
      display: inline;
    }
    & summary {
      display: flex;
      justify-content: space-between;
      align-items: center;
      cursor: pointer;
      padding: 1rem;

      & h3 {
        color: white;
      }

      &::after {
        content: '';
        width: 2rem;
        height: 2rem;
        background: url('../img/icons/arrow-down-s-line-w.svg');
        background-size: cover;
        transition: 0.2s;
      }
    }
    &[open] > summary::after {
      transform: rotate(180deg);
    }
    & div {
      background: #fff;
    }
    & .download_lists {
      list-style: none;
      padding: 0;
      margin: 0;
      display: flex;
      flex-flow: column;
      gap: 0;

      & li {
        padding: 0.5rem 3rem;
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;

        @container body-wrapper (width < 1000px) {
          gap: 0.2rem;
        }
      }
      &:hover {
        background: var(--bg-tertiary);
      }
      & .button {
        text-decoration: none;
      }
    }
  }

  & .docs_table {
    width: 100%;
    border-collapse: collapse;
    margin: 10px 0;
    font-family: Arial, sans-serif;
    table-layout: fixed;

    @container body-wrapper (width < 768px) {
      & th,
      td {
        display: block;
        width: 100%;
        box-sizing: border-box;
      }

      & .empty_cell {
        display: none;
      }

      & th {
        display: none;
      }

      & td::before {
        content: attr(data-label);
        font-weight: bold;
        margin-right: 5px;
      }

      & tr {
        display: block;
        background-color: #f7f7f7;
        margin-bottom: 1rem;
        border-radius: 0.25rem;
      }

      & td a {
        display: block;
      }

      & td input[type="date"] {
        width: 100%;
      }
    }

    & th,
    td {
      padding: 10px;
      text-align: left;
      border: 1px solid #ddd;
    }

    & th {
      background-color: #f6f6f6;
      font-weight: bold;
    }

    & td input[type="date"] {
      border: none;
    }
  }

  & .doc_results {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem;
    background-color: var(--bg-tertiary);
    margin: 1.4rem 0 1rem 0;

    @container body-wrapper (width < 700px) {
      flex-direction: column;
    }

    & span {
      display: flex;
    }
  }

  & .member_search_section {
    width: 100%;

    & .wrapper {
      display: flex;
      gap: 1rem;
    }

    & .search_form {
      display: flex;
      flex-wrap: wrap;
      gap: 0.3rem 1rem;

      @container body-wrapper (width < 700px) {
        flex-direction: column;
      }
      & .form_error {
        width: 100%;
        flex-grow: 2;
      }
      & .button_wrapper {
        width: 100%;
        flex-grow: 2;
      }
    }
  }

  & .inline_search_section {
    background: var(--primary-green);
    width: 100%;
    box-shadow: var(--shadow);
    padding: 0;
    border-radius: 1rem;
    overflow: hidden;

    & .search_form,
    & form {
      display: flex;
      flex-wrap: wrap;
      gap: 0.3rem 1rem;

      @container body-wrapper (width < 700px) {
        flex-direction: column;
      }

      & .form_error {
        flex-grow: 3;
        width: 100%;
      }
      & label {
        flex-direction: row;
        flex-grow: 2;
        flex-wrap: nowrap;
        margin: 0;
        align-items: center;
        width: auto;
        max-width: 27rem;

        & .copy {
          white-space: nowrap;
        }
      }
    }
  }

  & .search_form {
    padding: 1rem;
    background: white;

    & label {
      display: flex;
      flex-wrap: wrap;
      gap: 0 1rem;
      flex-direction: column;
      flex-grow: 1;
      align-items: flex-start;
      margin-bottom: 1rem;
      width: 27rem;

      & .input {
        width: 100%;
      }
      & .msg {
        flex-grow: 2;
      }
    }
    & .button_wrapper {
      grid-area: button_wrapper;
      display: flex;
      flex-flow: nowrap;
      gap: 1rem;
      justify-content: space-between;

      @container body-wrapper (width < 440px) {
        display: flex;
        flex-direction: column;
      }
    }
  }

  & .member_details {
    width: 100%;
    max-width: var(--max-width);
    box-shadow: var(--shadow);
    border-radius: 1rem;
    padding: 1rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem 2rem;

    @container body-wrapper (width < 1000px) {
      margin-top: 0;
    }

    & .membership_details,
    & .personal_details {
      flex-grow: 1;
    }

    & h3 {
      margin-bottom: 0.5rem;
      border-bottom: 1px solid var(--primary);
      color: var(--primary) !important;
    }

    & dl {
      display: grid;
      grid-template-columns: 8.3rem 1fr;
      gap: 0.5rem 1rem;
    }

    & dt {
      font-weight: bold;
    }

    & dd {
      font-size: 0.9em;
    }
  }

  & .provider_details {
    width: 100%;
    max-width: var(--max-width);
    box-shadow: var(--shadow);
    padding: 1rem;
    display: grid;
    grid-template-columns: 2fr;
    gap: 0.3rem 2rem;

    @container body-wrapper (width < 1000px) {
      display: flex;
      flex-direction: column;
    }

    & .clientListResults {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(auto, 1fr));
      gap: 1rem;
      overflow-y: scroll;
      height: 60vh;

      & .search_result_card {
        width: 100%;
        display: flex;
        flex-direction: row;
        background-color: var(--bg-secondary);
        padding: 1rem;

        @container body-wrapper (width < 1000px) {
          flex-direction: column;
        }

        & p:first-child {
          font-weight: bold;
          color: var(--primary);
        }

        & p:nth-child(2) {
          color: #000;
        }
      }
    }

    & .prac_results {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(auto, 1fr));
      gap: 1rem;

      & .prac_item {
        border-radius: 0.2rem;
        box-shadow: var(--shadow);
        padding: 1rem;

        @container body-wrapper (width < 1000px) {
          display: flex;
          flex-direction: column;
        }
      }
    }

    & .providers_details {
      max-height: 70vh;
      overflow: auto;
    }

    & div {
      width: 100%;
    }

    & h3 {
      margin-bottom: 0.5rem;
      border-bottom: 1px solid var(--primary);
      color: var(--primary);
    }

    & dl {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 0.5rem 1rem;
    }

    & dt {
      font-weight: bold;
    }

    & dd {
    }
  }

  & .provider_map {
    width: auto;
    height: 350px;

    @container body-wrapper (width < 1000px) {
      margin-top: 2rem;
      z-index: 1;
    }
  }

  & .results {
    width: 100%;
    &:not(:has( > ul.hidden )) {
      height: 100%;
    }
    display: flex;
    flex-flow: column;
    justify-content: center;

    & .active_members_spinner {
      width: 16rem;
      height: 16rem;
      display: flex;
      align-self: center;
      align-items: center;
      justify-content: center;
      grid-area: 1 / 1 / 2 / 2;

      & span {
        width: 8em;
        height: 8em;
        border: 0.3em solid var(--primary-orange);
        border-bottom-color: transparent;
        border-radius: 50%;
        display: inline-block;
        box-sizing: border-box;
        animation: rotation 1s linear infinite;
      }
    }

    & .results_list {
      container: results_list / inline-size;
      margin: 0;
      padding: 0;
      list-style: none;
    }

    & .search_result_card {
      width: 100%;
      max-width: var(--max-width);
      margin: 0.5rem auto 0.8rem;
      display: grid;
      grid-template-rows: auto 1fr;
      grid-template-columns: repeat(2, 1fr);
      gap: 0.3rem;
      grid-template-areas:
      "title title"
      ". ."
      ". ."
      ". ."
      ". ."
      "buttons buttons";
      padding: 1rem;

      @container results_list (width > 41em) {
        grid-template-columns: repeat(5, 1fr) 9.5rem;
        grid-template-areas:
        "title title title title title title"
        ". . . . . buttons";
      }

      & h3 {
        grid-area: title;
        color: var(--primary);
      }
      & div {
        font-size: 0.9rem;
      }
      & strong {
        display: block;
        font-size: 1rem;
      }
      & button {
        grid-area: buttons;
        padding: initial;
        text-align: left;
        font-size: 1rem;
        line-height: 1.3rem;
      }

      &:nth-child(even) {
        background: var(--veryLightPrimary);
        border-radius: 0.25rem;
      }
    }
  }

  & .benefit_details_selector {
    & form {
      display: flex;
      gap: 1rem;

      & label {
        flex-grow: 2;
        display: flex;
        gap: 1rem;

        & input {
          flex-grow: 2;
        }
      }
    }
  }

  & .add_condition_form {
    display: flex;
    flex-flow: column;
    gap: 1rem;
    align-items: end;

    & .wrapper {
      width: 100%;
      display: grid;
      grid-template-areas: ". .";
      gap: 2rem;

      & label {
        width: 100%;
      }
    }
  }

  & .network_list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: end;
    width: 100%;
    max-width: var(--max-width);

    @container body-wrapper (width < 1000px) {
      flex-wrap: wrap;
    }

    & li {
      width: 47%;
    }

    & li .text span {
      height: 3rem;
    }

    & button {
      width: 100%;
      background: none;
      display: inline-grid;
      grid-template-columns: 1fr;
      grid-template-rows: 1fr;
      border: none;
      cursor: pointer;
      gap: 0;
      align-items: center;

      & .text {
        display: flex;
        flex-flow: column;
        align-items: center;
        text-decoration: none;
        background: #fff;
        color: var(--text);
        box-shadow: var(--shadow);
        border-radius: 1rem;
        overflow: hidden;
        transition: all .3s;
        width: 100%;
        grid-area: 1 / 1 / 2 / 2;
        padding: 0.42rem 1rem;

        & img {
          height: 2rem;
        }
        & i {
          color: var(--primary-green);
          font-size: 4rem;
        }

        &:hover,
        &.active {
          background: var(--primary);
          color: #fff;
          border-radius: 1rem;
          transition: all .3s;

          & i {
            color: #fff;
          }
        }
      }
      & .spinner {
        display: none;
      }
      &.loading .spinner {
        width: 100%;
        height: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
        background: var(--primary);
        border-radius: 1rem;

        grid-area: 1 / 1 / 2 / 2;

        & span {
          width: 1em;
          height: 1em;
          border: 0.3em solid #FFF;
          border-bottom-color: transparent;
          border-radius: 50%;
          display: inline-block;
          box-sizing: border-box;
          animation: rotation 1s linear infinite;
        }
      }
    }
  }

  & .referral_auth {
    width: 100%;
    max-width: var(--max-width);
    margin-top: 3rem;

    & form {
      display: grid;
      grid-template-columns: 1fr 1fr 2fr;
      grid-template-rows: auto 1fr auto;
      gap: 1rem;
      grid-auto-flow: row;
      grid-template-areas:
        "member member_id referring"
        "specialist specialist icd10"
        "reason reason reason"
        "auth_request auth_request auth_request";

      @container body-wrapper (width < 700px) {
        display: flex;
        flex-direction: column;
      }

      & h3 {
        margin-bottom: 1rem;
      }

      & .member {
        grid-area: member;
      }

      & .member_id {
        grid-area: member_id;
      }

      & .referring {
        grid-area: referring;
      }

      & .specialist {
        grid-area: specialist;
      }

      & .icd10 {
        grid-area: icd10;
      }

      & .specialist,
      & .icd10 {
        display: flex;
        flex-flow: column;
        gap: 1rem;
      }

      & .reason {
        grid-area: reason;

        & textarea {
          width: 100%;
          padding: 0.3rem;
          border: 1px solid var(--bg-secondary);
          border-radius: 0.3rem;
        }
      }

      & .auth_request {
        grid-area: auth_request;
        display: flex;
        justify-content: space-between;

        @container body-wrapper (width < 700px) {
          display: flex;
          flex-direction: column;
        }
      }
    }
  }

  & .button_wrapper {
    display: flex;
    flex-flow: nowrap;
    justify-content: space-between;
    gap: 1rem;
  }
  & .dataTable {
    & td {
      font-size: 0.9em;
    }
  }
  & .dt-container {
    & button {
      color: #fff;
      border-radius: 0.5rem;
      background: var(--primary-green);
      border: 1px solid var(--primary-green);
    }
    & .dt-input {
      border: 1px solid var(--sec-gray);
      background: var(--background);
      border-radius: 0.5rem;
    }
    & .dt-search,
    & .dt-length {
      display: grid;
      align-items: center;
      grid-template-columns: auto 1fr;
      grid-template-rows: 1fr;
      gap: 1rem;
      grid-template-areas:
        "select label input";

      & label { grid-area: label; }
      & input { grid-area: input; }
      & select { grid-area: select; }
    }
    & button,
    & button.dt-button,
    & button.dt-paging-button,
    & button.dt-paging-button {
      color: #fff;
      border-radius: 0.5rem;
      background: var(--primary-green);
      border: 1px solid var(--primary-green);

      &.next,
      &.last,
      &.previous,
      &.first {
        background: none;
        color: black;
      }
      &.current {
        background: var(--primary-orange);
        border: 1px solid var(--primary-orange);
        color: #fff;

        &:hover {
          background: var(--primary-green);
          border: 1px solid var(--primary-green);
        }
      }
      &:hover {
        background: var(--primary-orange);
        border: 1px solid var(--primary-orange);
      }
    }
  }
}
.public .main {
  padding: 0;
}

.dt-search {
  width: 100%;
}

.footer {
  width: 100%;
  border-top: 0.3rem solid var(--primary);
  margin-top: 2rem;

  & h5 {
    margin: 0;
    font-size: 1.5rem;
    color: var(--primary);
  }
  & a {
    text-decoration: none;
    color: var(--primary-green);
    border-bottom: 2px solid var(--primary-orange);

    &:hover {
      border-bottom: 2px solid var(--accent);
    }
  }
  & .info {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 2rem;
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;

    & ul {
      list-style: none;
      padding: 0;
      margin: 0;

      & i {
        color: var(--primary);
      }
    }
    & img {
      width: 10.625rem;

      @container body-wrapper (width < 1000px) {
        max-width: 5rem;
        height: auto;
      }
    }
  }
  & .copyright {
    width: 100%;
    display: flex;
    @container body-wrapper (width < 48.75em) {
      flex-flow: column;
    }
    gap: 2rem;
    font-size: 0.75rem;
    text-transform: uppercase;
    max-width: var(--max-width);
    margin: auto;
    padding: 1rem;
    background-color: var(--bg-primary);
    color: #fff;
    border-radius: 1rem 1rem 0 0;
    box-shadow: var(--shadow);

    & nav {
      display: flex;
      gap: 0.8rem;
      @container body-wrapper (width < 48.75em) {
        flex-flow: column;
        gap: 1.2rem;
      }

      & a {
        color: #fff;
        @container body-wrapper (width < 48.75em) {
          text-decoration: underline;
        }
      }
    }
  }
}

.button {
  grid-area: button;
  display: inline-grid;
  grid-template-columns: 1fr;
  grid-template-rows: 1fr;
  border: none;
  border-radius: 1rem;
  cursor: pointer;
  gap: 0;
  align-items: center;
  overflow: hidden;

  &:hover {
    opacity: 0.8;
  }
  &.primary {
    background: var(--primary-green);
    color: #fff;
    border: 1px solid var(--primary-green);
    @container body-wrapper (width < 700px) {
      margin-bottom: 0.4rem;
    }
    &:hover {
      background-color: var(--green-tertiary);
      color: var(--text);
    }
  }
  &.secondary {
    background: #fff;
    color: var(--text);
    border: 1px solid var(--primary-orange);
    @container body-wrapper (width < 700px) {
      margin-bottom: 0.4rem;
    }
    &:hover {
      background-color: var(--bg-tertiary);
    }
  }
  &.link {
    background: none;
    border: none;
  }
  & .text {
    grid-area: 1 / 1 / 2 / 2;
    padding: 0.42rem 1.8rem;
    display: flex;
    align-items: center;
    gap: 1em;

    & img {
      height: 2rem;
    }
  }
  & .spinner {
    display: none;
  }
  &.loading .spinner {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary);
    grid-area: 1 / 1 / 2 / 2;

    & span {
      width: 1em;
      height: 1em;
      border: 0.3em solid #FFF;
      border-bottom-color: transparent;
      border-radius: 50%;
      display: inline-block;
      box-sizing: border-box;
      animation: rotation 1s linear infinite;
    }
  }
  &:disabled {
    background-color: var(--bg-secondary);
    color: black;
    opacity: 1;
    cursor: not-allowed;
  }
}

@keyframes rotation {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

/*-- ==============================================================
 Member Card
 ============================================================== */

.card_section {
  background-color: #fff;
  padding: 1rem;
}

.card_container {
  display: flex;
  flex-direction: row;
  justify-content: center;
  box-sizing: border-box;
  margin-top: 3rem;
  margin: 1rem;

  & .mem_card {
    perspective: 150rem;
    position: relative;
    height: 26rem;
    width: 44rem;
    background-color: transparent;

    & .card_side_front {
      height: 26rem;
      width: 44rem;
      display: grid;
      grid-template-columns: 1.3fr 0.7fr;
      grid-template-rows: 10.25rem calc(100% - 10.25rem - 3.4rem) 3.4rem;
      grid-auto-flow: row;
      gap: 0;
      transition: all 0.8s ease;
      backface-visibility: hidden;
      border-radius: 2rem;
      overflow: hidden;
      box-shadow: var(--shadow);
    }
    & .bg_logo {
      grid-area: 1 / 2 / 4 / 3;
      display: flex;
      align-items: end;
      justify-content: end;

      & img {
        width: 100%;
        max-width: 13.625rem;
      }
    }
    & .logo {
      grid-area: 1 / 1 / 2 / 2;

      & img {
        height: 100%;
      }
    }
    & .content {
      grid-area: 2 / 1 / 3 / 2;
      padding-left: 2.8rem;
      display: flex;
      flex-flow: column;
      justify-content: center;
    }
    & .footer {
      grid-area: 3 / 1 / 4 / 3;
      display: flex;
      flex-flow: column;
      align-items: center;
      justify-content: center;
      background: var(--primary-green);
      color: #fff;
      font-size: small;
      text-align: center;
      border: none;
      margin: 0;
    }

    & .card_side_back {
      transform: rotateY(180deg);
      color: #000;
      background-color: #fff;
      height: 100%;
      display: flex;
      flex-direction: column;
      justify-content: space-between;
      transition: all 0.8s ease;
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      backface-visibility: hidden;
      border-radius: 2rem;
      overflow: hidden;
      box-shadow: 0 1.5rem 4rem rgba(0, 0, 0, 0.15);

      & .details {
        margin-top: 3.625rem;

        & ul {
          margin: auto;
          column-count: 2;
          column-gap: 3rem;
        }
      }

      & .card_back_bottom_container {
        padding: 0 1.4rem 1.4rem 1.4rem;

        & .table {
          border-collapse: collapse;
          width: 100%;

          & .headings {
            background: none;
            color: var(--primary-green);

            & th {
              text-align: left;
            }
          }
          & .table_row {
            background: var(--background-grey);
            color: var(--text);

            &:nth-child(even) {
              background: var(--primary-green);
              color: #fff;
            }

            & td {
              padding: 0.3rem;
            }
        }

        }
      }
    }
  }
  &:hover .card_side_front {
    transform: rotateY(-180deg);
    cursor: pointer;
  }

  &:hover .card_side_back {
    transform: rotateY(0);
    cursor: pointer;
  }
}


/*-- ==============================================================
 PDF Printable Cards
 ============================================================== */

.pdf_btn_container {
  width: 100%;
  display: flex;
  justify-content: center;
}

.print_card_master_container {
  position: absolute;
  top: -9999px;
  left: -9999px;
  & .mem_card {
    height: auto;

    & .card_side_front,
    & .card_side_back,
    &:hover .card_side_front,
    &:hover .card_side_back {
      position: relative;
      height: 26rem;
      transform: rotateY(0);
      backface-visibility: visible;
    }
  }
}

/*-- ============================================================== 
 END --- PDF Printable Cards ---- END
 ============================================================== */

#pdf-frame {
  width: 100%;
  height: 90rem;
}

/* Vertical line */

.hidden {
  display: none !important;
}

.results_error {
  display: flex;
  width: 100%;
  justify-content: center;
  align-items: center;
  background-color: #cc2c54;
  color: #fff;
  padding: 1rem;
  border-radius: 0.2rem;
}

.container_user_type div {
  display: flex;
  flex-wrap: wrap;
  margin-top: 0.5rem;

  & label span {
    display: block;
    cursor: pointer;
    background-color: #fff;
    padding: 0.375em 0.75em;
    position: relative;
    margin-left: 0.0625em;
    box-shadow: 0 0 0 0.0625em #b5bfd9;
    letter-spacing: 0.05em;
    text-align: center;
    transition: background-color 0.3s ease;
  }

  & label:first-child span {
    border-radius: 0.3em 0 0 0.3em;
  }

  & label:last-child span {
    border-radius: 0 0.3em 0.3em 0;
  }
}

.container_user_type input[type="radio"] {
  clip: rect(0 0 0 0);
  clip-path: inset(100%);
  height: 1px;
  overflow: hidden;
  position: absolute;
  white-space: nowrap;
  width: 1px;
}

.container_user_type input[type="radio"]:checked + span {
  box-shadow: 0 0 0 0.0625em var(--primary);
  background-color: #ffeaef;
  z-index: 1;
  color: var(--primary);
}

.claims_list {
  & .dataTable > tbody > tr {
    cursor: pointer;
  }

  & .loading {
    position: relative;
    background-color: var(--primary) !important;

    & td {
      opacity: 0.3;
      color: #fff;
    }

    &::after {
      color: #fff;
      position: absolute;
      display: block;
      content: " ";
      width: 1em;
      height: 1em;
      border: 0.3em solid #fff;
      border-bottom-color: transparent;
      border-radius: 50%;
      box-sizing: border-box;
      animation: rotation 1s linear infinite;
      top: calc(50% - 0.5rem);
      left: 3rem;
    }
  }
}

.claim_details {
  flex-flow: column;

  &[open] {
    display: flex;
  }

  & .claim_details_wrapper {
    flex-grow: 2;
    display: flex;
    flex-flow: column;
    overflow: hidden;

    & h2,
    & h3 {
      padding: 0.3em 1rem;
    }

    & h2 {
      background: var(--primary);
      margin: 0;
    }

    & h3 {
      color: var(--primary);
    }

    & .beneficiary_meta {
      background: var(--bg-tertiary);
      display: flex;
      list-style: none;
      padding: 1rem;
      margin: 0;
      gap: 0.5rem 2rem;
      flex-wrap: wrap;
    }

    & .claim_lines {
      display: flex;
      gap: 0.3rem 0.5rem;
      flex-wrap: wrap;
      padding: 0.5rem 0;
      margin: 0;
      overflow: hidden;
      overflow-y: scroll;

      & .claim_line {
        width: 100%;
        padding: 0.5rem 1rem;
        display: grid;
        grid-template-columns: 1fr 1fr 1fr 1fr 1fr 1fr;
        grid-template-rows: repeat(auto);
        gap: 0.3em 1em;
        grid-auto-flow: row;
        grid-template-areas:
          "ref_num ref_num ref_num ref_num ref_num ref_num"
          "status tarrif_code tarrif_description tarrif_description tarrif_description tarrif_description"
          "charged_amount member_paid prac_paid prac_paid prac_paid prac_paid"
          "remit_date rejection rejection rejection rejection rejection"
          "icd10 icd10 icd10 icd10 icd10 icd10";

          @container body-wrapper (width < 700px) {
            display: flex;
            flex-direction: column;   
          }

        & .ref_num {
          grid-area: ref_num;
          display: flex;
          border-bottom: 1px solid var(--primary);
        }

        & .status {
          grid-area: status;

          @container body-wrapper (width < 700px) {
            display: flex;
            flex-direction: column;
          }
        }

        & .tarrif_code {
          grid-area: tarrif_code;

          @container body-wrapper (width < 700px) {
            display: flex;
            flex-direction: column;
          }
        }

        & .tarrif_description {
          grid-area: tarrif_description;

          @container body-wrapper (width < 700px) {
            display: flex;
            flex-direction: column;
          }
        }

        & .charged_amount {
          grid-area: charged_amount;

          @container body-wrapper (width < 700px) {
            display: flex;
            flex-direction: column;
          }
        }

        & .member_paid {
          grid-area: member_paid;

          @container body-wrapper (width < 700px) {
            display: flex;
            flex-direction: column;
          }
        }

        & .prac_paid {
          grid-area: prac_paid;

          @container body-wrapper (width < 700px) {
            display: flex;
            flex-direction: column;
          }
        }

        & .remit_date {
          grid-area: remit_date;

          @container body-wrapper (width < 700px) {
            display: flex;
            flex-direction: column;
          }
        }

        & .rejection {
          grid-area: rejection;

          @container body-wrapper (width < 700px) {
            display: flex;
            flex-direction: column;
          }
        }

        & .icd10 {
          grid-area: icd10;

          @container body-wrapper (width < 700px) {
            display: flex;
            flex-direction: column;
          }
        }

        & span {
          margin-left: 1rem;

          @container body-wrapper (width < 700px) {
            margin-left: 0;
          }
        }
      }

      & > li:nth-child(even) {
        background: var(--bg-tertiary);
      }
    }
  }

  & footer {
    text-align: end;
    padding: 0.5rem 1rem 1rem;
    background: var(--bg-secondary);
  }
}

dialog {
  width: 100%;
  height: 100%;
  border: none !important;
  border-radius: calc(5px * var(--ratio));
  box-shadow: var(--shadow);
  padding: 0;
  overflow: hidden;
  overflow-y: auto;
}

/* General styles */
[inert], [inert] * {
  opacity: 0.8;
  pointer-events: none;
  cursor: default;
  user-select: none;
  filter: contrast(95%);
}
.ui_message {
  padding: 0.2rem 0.5rem 0.2rem 0.5rem;
  border-radius: 0.5rem;
  font-weight: bold;
  text-align: center;
}

.error {
  color: #b8092e;
  background-color: #ffa2a2;
}

.success {
  color: #1a9e0f;
  background-color: #b4ffaf;
}

.placeholder {
  visibility: hidden;

  @container body-wrapper (width < 700px) {
    display: none;
  }
}

/* Datatables */

/* Claims */
.dt_head_left {
  text-align: left;
}
