:root {
  --primary: #000000;
  --bg-primary: #000000;
  --bg-secondary: #ff1c0a;
  --bg-tertiary: #d8af7a;
  --background: #ffffff;

  --text: #000;
  --success: #205c40;
  --error: #a4031f;
  --colour-secondary-1: #003da6;
  --colour-secondary-2: #dc4600;
  --light-grey: #f8f8f8;

  --shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px;

  --max-width: 73.125rem;
  --transition: 0.1s;
  --border-radius: 0px 30px;
}

@font-face {
  font-family: "Satoshi-Bold";
  src: url("/assets/fonts/Satoshi-Bold.woff2") format("woff2"),
    url("../fonts/Satoshi-Bold.woff") format("woff");
  font-weight: normal;
  font-style: normal;
}
@font-face {
  font-family: "satoshi_italic";
  src: url("../fonts/Satoshi-Italic.woff2") format("woff2"),
    url("../fonts/Satoshi-Italic.woff") format("woff");
  font-weight: normal;
  font-style: normal;
}
@font-face {
  font-family: "satoshi_medium";
  src: url("../fonts/Satoshi-Medium.woff2") format("woff2"),
    url("../fonts/Satoshi-Medium.woff") format("woff");
  font-weight: normal;
  font-style: normal;
}
@font-face {
  font-family: "satoshi_medium_italic";
  src: url("../fonts/Satoshi-MediumItalic.woff2") format("woff2"),
    url("../fonts/Satoshi-MediumItalic.woff") format("woff");
  font-weight: normal;
  font-style: normal;
}
@font-face {
  font-family: "satoshi_regular";
  src: url("../fonts/Satoshi-Regular.woff2") format("woff2"),
    url("../fonts/Satoshi-Regular.woff") format("woff");
  font-weight: normal;
  font-style: normal;
}

* {
	font-family: 'satoshi_regular', sans-serif;
}
html {
  container: body-wrapper / inline-size;
}
body {
  display: grid;
  grid-template-columns: 15rem 1fr;
  grid-template-rows: 1.6fr 0fr;
  gap: 0;
  grid-auto-flow: row;
  grid-template-areas:
    "header main main"
    "header footer footer";
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  color: var(--text);

  @container body-wrapper (width < 48.75em) {
    display: flex;
    flex-direction: 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);
      z-index: 3333;
      overflow: hidden;
    }

    &:has(.menu_toggle:checked)::before {
      left: 0;
      opacity: 1;
      transition: opacity 0.25s;
    }
  }
}
h1,
h2,
h3,
h4,
h5 {
	font-family: 'Satoshi-Bold', sans-serif;
	color: #fff;
  font-weight: normal;
}

.header {
  grid-area: header;
}

.footer {
  grid-area: footer;
}

.main {
  grid-area: main;
}

.header {
  width: 100%;
  display: flex;
  justify-content: center;
  padding: 1rem 0;
  margin: 0 0 0 0;
  box-shadow: var(--shadow);
  z-index: 8888;
  background-color: var(--bg-primary);
  border-radius: 0px 30px 0px 0px;

  @container body-wrapper (width < 48.75em) {
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    border-radius: 0;
  }

  & .wrapper {
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    gap: 2rem;
    width: 90%;
    max-width: var(--max-width);

    @container body-wrapper (width < 48.75em) {
      width: 100%;
    }
  }

  & .logo {
    width: 100%;
    padding: 3rem 3rem 0rem 0rem;

    @container body-wrapper (width < 48.75em) {
      width: 50%;
      padding: 0.5rem 0 0 1.5rem;
    }

    & img {
      width: 100%;

      @container body-wrapper (width < 48.75em) {
        width: 100%;
      }
    }
  }

  & .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;
    }

    @container body-wrapper (width > 48.75em) {
      align-content: space-between;
    }

    & a {
      display: block;
      padding: 0 0.5rem;
      height: 2.5625rem;
      line-height: 2.5625rem;
      color: var(--background);
      text-decoration: none;
      width: 100%;
      border-left: 2px solid var(--bg-primary);

      &:hover,
      &.active {
        color: var(--bg-tertiary);
        background: linear-gradient(115deg, #202020, #202020 90%, transparent 0, transparent);
        border-left: 2px solid var(--bg-tertiary);
        border-radius: 0 0.3rem 0.3rem 0;
      }

      &:hover {
        border-left: 2px solid var(--bg-tertiary);
      }
    }

    & .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: 100%;
          justify-content: center;
          align-items: center;
          padding: 0 2rem 0 2rem;

          & button {
            width: 100%;
          }
        }
      }

      @container body-wrapper (width > 48.75em) {
        gap: 1em;
      }
    }

    .account {
      & ul {
        list-style: none;
        margin: 0;
        padding: 0;
        height: auto;
      }

      & span {
        display: none;
      }
    }
  }
}

.menu_btn {
  position: fixed;
  top: 1rem;
  right: 1rem;
  width: 2rem;
  height: 2rem;
  cursor: pointer;
  z-index: 9999;
  background: #fff;
  border: 0.25rem solid #fff;
  border-radius: 50%;

  @container body-wrapper (width < 48.75em) {
    top: 1.79rem;
    right: 2rem;
    background: none;
    border: none;
  }

  &: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;
    background-color: var(--background);
  }

  &>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);
    background-color: var(--bg-tertiary);
  }

  &:has(.menu_toggle:checked)>span::after {
    top: 0;
    transform: rotate(90deg);
    background-color: var(--bg-tertiary);
  }

  &:has(.menu_toggle:checked)~.header .wrapper .menu__box {
    display: flex;
    flex-flow: column;
    height: auto;
  }

  @container body-wrapper (width > 48.75em) {
    display: none;
    position: relative;
  }
}

.main {
  display: flex;
  flex-flow: column;
  flex-grow: 2;
  align-items: center;
  width: 100%;
  padding: 0 1.5rem 3.2rem 1.5rem;

  @container body-wrapper (width < 1000px) {
    margin-top: 2rem;
  }

  & #networkType {
    color: var(--primary);
    padding: 2rem 0 2rem 0;
  }

  & .form_section {
    max-width: 40rem;
    width: 32rem;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;

    &.logged_in {
      max-width: none;
      width: 100%;
      justify-content: center;
      align-items: center;

      & .password_reset {
        max-width: 40rem;
        width: 32rem;

        @container body-wrapper (width < 48.75em) {
          max-width: none;
          width: 100%;
          margin-bottom: 2rem;
        }
      }
    }

    @container body-wrapper (width < 48.75em) {
      max-width: 90%;
      width: 90%;
    }
  }

  & h1 {
    color: var(--bg-primary);
    margin: 3.2rem 0 3.2rem 0;
    align-self: self-start;
    font-family: "satoshi_regular", sans-serif;
    padding: 0.6rem 0 0 0;
    position: relative;
    /* background: linear-gradient(115deg, var(--bg-primary), var(--bg-primary) 42%, transparent 0, transparent); */
  
    &::before {
      content: "";
      position: absolute;
      top: 0;
      left: 0;
      width: 137px;
      border-top: 0.4rem solid var(--bg-secondary);
    }

    @container body-wrapper (width < 1000px) {
      margin: 6.5rem 0 2rem 0;
      font-size: 1.5rem;
    }
  }
  & h2,
  & h3 {
    color: var(--primary);
  }

  & .msg {
    font-weight: bold;
    padding: 0 0 1rem 0;
  }
  & input,
  & select {
    width: 100%;
    padding: 0.3rem;
    border: 0.1rem solid var(--bg-primary);
    background: var(--background);
    border-radius: 0.3rem;

    &[type="checkbox"] {
      width: auto;
      margin-right: 0.5rem;
    }

    &::placeholder {
      opacity: 0.5;
    }
  }
  & .login_form {
    display: flex;
    flex-flow: column;
    gap: 1rem;
    width: 100%;

    & a {
      color: var(--bg-primary);
    }
  }
  & .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 {
    width: 100%;
    box-shadow: var(--shadow);
    padding: 1rem;
    margin: 1rem 0 1rem 0;
    border-radius: var(--border-radius);

    summary > * {
      display: inline;
    }
    & summary {
      display: flex;
      justify-content: space-between;
      align-items: center;
      cursor: pointer;

      &::after {
        content: '';
        width: 2rem;
        height: 2rem;
        background: url('../img/icons/arrow-down-s-line.svg');
        background-size: cover;
        transition: var(--transition);
      }
    }
    &[open] > summary::after {
      transform: rotate(180deg);
    }
    & .download_lists {
      @container body-wrapper (width < 1000px) {
        width: 100%;
        display: flex;
        flex-direction: column;
        justify-content: center;
        margin: 0;
        padding: 2rem 0 0 0 ;
      }

      & li {
        margin-bottom: 1rem;
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;

        @container body-wrapper (width < 1000px) {
          gap: 0.2rem;
          display: flex;
          flex-direction: column;
          align-items: center;
          justify-content: center;
        }
      }
    }
  }
  & .practice_search_section,
  & .member_search_section,
  & .specialist_search_section,
  & .remittances_search_section,
  & .healthcare_providers_section {
    width: 100%;
    max-width: var(--max-width);

    & .wrapper {
      display: flex;
      gap: 1rem;
    }
    & label {
      display: flex;
      flex-wrap: wrap;
      gap: 1rem;
      align-items: center;

      & input {
        width: auto;
      }

      & .msg {
        flex-grow: 2;
      }
    }
  }

  & .claims_search_section {

    &.inline_search_section {
      @container body-wrapper (width < 1000px) {
        margin-bottom: 2rem;  
      }
    }
  }

  & .inline_search_section {
    width: 100%;
    max-width: var(--max-width);
    box-shadow: var(--shadow);
    padding: 1rem;
    border-radius: var(--border-radius);
    margin-bottom: 2rem;

    & form {
      display: flex;
      flex-wrap: wrap;
      align-items: center;
      gap: 1rem;

      & label {
        display: flex;
        gap: 1rem;
        align-items: center;
        
        & .copy {
          white-space: nowrap;
        }
      }
      & .title {
        flex-grow: 2;
        width: 100%;
        color: var(--primary);
      }
      & .message {
        flex-grow: 2;
        width: 100%;
      }
    }
  }
  & .practice_search_section .search_form {
    display: grid;
    grid-template-columns: repeat(auto);
    grid-template-rows: repeat(auto);
    gap: 0.3rem 1rem;
    grid-auto-flow: row;
    grid-template-areas:
      "form_error form_error"
      "member_number date_of_birth"
      "initials surname"
      "id_number ."
      "button_wrapper button_wrapper";
    margin-top: 1rem;

    & .form_error { grid-area: form_error; }
    & .specialist_type_label { grid-area: specialist_type_label; }
    & .practice_label { grid-area: practice_label; }
    & .town_label { grid-area: town_label; }
    & .postal_code_label { grid-area: postal_code_label; }
    & .province_label { grid-area: province_label; }
    & .button_wrapper {
      grid-area: button_wrapper;
    }
  }
  & .member_search_section .search_form {
    display: grid;
    grid-template-columns: repeat(auto);
    grid-template-rows: repeat(auto);
    gap: 0.3rem 1rem;
    grid-auto-flow: row;
    grid-template-areas:
      "form_error form_error"
      "member_number date_of_birth"
      "initials surname"
      "id_number ."
      "button_wrapper button_wrapper";
    margin-top: 1rem;

    @container body-wrapper (width < 700px) {
      display: flex;
      flex-direction: column;
    }
  
    & .form_error { grid-area: form_error; }
    & .member_number_lable { grid-area: member_number; }
    & .scheme_name_lable { grid-area: scheme_name; }
    & .initials_lable { grid-area: initials; }
    & .surname_lable { grid-area: surname; }
    & .id_number_lable { grid-area: id_number; }
    & .date_of_birth_lable { grid-area: date_of_birth; }
  }
  & .search_form {
    & label {
      display: grid;
      grid-template-columns: 8rem 1fr;
      grid-template-rows: 1fr 1fr;
      gap: 0 1rem;
      grid-auto-flow: row;
      grid-template-areas:
        "copy input"
        ". message";

      & .copy {
        grid-area: copy;
        text-align: right;
      }
      & .input {
        grid-area: input;
        width: 100%;
      }
      & .message { grid-area: message; }

      @container body-wrapper (width < 1000px) {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        margin-bottom: 1rem;
      }
    }
    & .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);
    padding: 1rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem 2rem;
    border-radius: var(--border-radius);

    @container body-wrapper (width < 1000px) {
      margin-top: 0;
    }

    & .details {
      flex-grow: 1;
    }

    & h3 {
      margin-bottom: 0.5rem;
      border-bottom: 1px solid var(--primary);
    }

    & dl {
      display: grid;
      grid-template-columns: 8.3rem 1fr;
      gap: 0.5rem 1rem;
    }
    & dt {
      font-weight: bold;
    }
  }
  & .results {
    width: 100%;
    max-width: var(--max-width);

    &#dependantDetails {
      margin-top: 1rem;
    }
    
		& .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;
      padding: 1rem;
      box-shadow: var(--shadow);
      border-radius: var(--border-radius);
			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);
			}
			& strong {
				display: block;
			}
			& button {
				grid-area: buttons;
				padding: initial;
        color: var(--bg-primary);
        background-color: var(--background);
        border-color: var(--bg-tertiary);

        &:hover {
          background-color: var(--bg-tertiary);
          color: var(--background);
        }
			}

			&: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 {
      @container body-wrapper (width < 1000px) {
        font-size: 0.6rem;
      }
    }

    & button {
      width: 100%;
      display: inline-grid;
      grid-template-columns: 1fr;
      grid-template-rows: 1fr;
      border: none;
      cursor: pointer;
      gap: 0;
      align-items: center;
      background: none;
      border: 0.1rem solid var(--bg-tertiary);
      border-radius: var(--border-radius);

      & .text {
        display: flex;
        flex-flow: column;
        align-items: center;
        text-decoration: none;
        background: #fff;
        color: var(--primary);
        width: 100%;
        grid-area: 1 / 1 / 2 / 2;
        padding: 0.42rem 1rem;
        border-radius: var(--border-radius);
        transition: var(--transition);

        & img {
          height: 2rem;
        }

        & i {
          color: var(--primary);
          font-size: 4rem;
        }

        &:hover {
          background: var(--primary);
          color: #fff;
          transition: var(--transition);

          & i {
            color: var(--bg-tertiary);
          }
        }
      }

      & .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;
        border: 0.1rem solid var(--bg-tertiary);
        border-radius: var(--border-radius);

        & 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 dependant_no member_id"
        "referring 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; }
      & .dependant_no { grid-area: dependant_no; }
      & .member_id { grid-area: member_id; }
      & .specialist { grid-area: specialist; }
      & .icd10 { grid-area: icd10; }
      & .specialist,
      & .referring,
      & .icd10 {
        display: flex;
        flex-flow: column;
        gap: 1rem;
      }
      & .reason {
        grid-area: reason;

        & textarea {
          width: 100%;
          padding: 0.3rem;
          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;
        }
      }
    }

  }
  & .remittances_details {
    & h3 {
      color: var(--primary);
    }

    &.results {
      box-shadow: var(--shadow);
      border-radius: var(--border-radius);
      padding: 1rem;
    } 

    & .remittances_list {
      list-style-type: none;
      margin: 1rem 0 1rem 0;
      height: 40vh;
      overflow-y: scroll;

      @container body-wrapper (width < 700px) {
        margin: 0 1rem 0 1rem;
        height: 80vh;
        padding: 0 1rem 0 1rem;
      }
  
      & li:nth-child(even) {
        background: var(--light-grey);
      }
    
      & .remittances_card {
        display: flex;
        flex-wrap: wrap;
        gap: 1rem;
        width: 100%;
        padding: 0.5rem;
        align-items: center;
        justify-content: space-between;

        @container body-wrapper (width < 700px) {
          flex-direction: column;
        }

        & div {
          display: flex;
          align-items: center;

          @container body-wrapper (width < 700px) {
            flex-direction: column;
          }

          & .date {
            padding: 1rem;
            width: 10rem;
            text-align: center;
            border-radius: var(--border-radius);
            background-color: var(--bg-primary);
            color: var(--background);

            @container body-wrapper (width < 700px) {
              width: 100%;
            }
          }
          
          & .description {
            padding-right: 1rem;
            margin-right: 1rem;
            border-right: 1px solid var(--bg-primary);

            @container body-wrapper (width < 700px) {
              border-right: none;
              margin-right: 0;
            }
          }
        }
      }
    }
  }
  & .button_wrapper {
    display: flex;
    flex-flow: nowrap;
    justify-content: space-between;
    gap: 1rem;
  }
}

.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;
    }
  }
}

input:user-invalid {
  outline: 2px solid var(--primary) !important;
}
.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; }
          & .tarrif_code { grid-area: tarrif_code; }
          & .tarrif_description { grid-area: tarrif_description; }
          & .charged_amount { grid-area: charged_amount; }
          & .member_paid { grid-area: member_paid; }
          & .prac_paid { grid-area: prac_paid; }
          & .remit_date { grid-area: remit_date; }
          & .rejection { grid-area: rejection; }
          & .icd10 { grid-area: icd10; }
          & span {
            margin-left: 1rem;

            @container body-wrapper (width < 700px) {
              margin: 0 1rem 0 1rem;
            }
          }
      }
  
      & > li:nth-child(even) {
        background: #f1f1f1;
      }
    }
  }
  & footer {
    text-align: end;
    padding: 0.5rem 1rem 1rem;
  }
}
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;
}
.dt-search {
  width: 100%;
}

.footer {
  width: 100%;
  background-color: var(--bg-tertiary);
  display: flex;
  flex-direction: column;

  & .footer_top_container {
    display: flex;
    flex-direction: row;
    width: 100%;
    justify-content: space-between;
    padding: 2rem 4rem 2rem 2rem;
    background-color: var(--background);
    box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px;
    background-image: url(../img/footer-watermark.svg);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: right top;

    @container body-wrapper (width < 48.75em) {
      flex-direction: column;
    }

    & .footer_logo {
      width: 50%;

      & img {
        width: 10rem;
      }
    }

    & .footer_columns_container {
      width: 100%;
      display: flex;
      flex-direction: row;
      justify-content: space-around;

      @container body-wrapper (width < 48.75em) {
        flex-direction: column;
        margin-top: 2rem;
        gap: 2rem;
      }

      & .footer_column {
        & h4 {
          margin-bottom: 0.8rem;
          color: var(--bg-primary);
          font-size: 1.2rem;

          @container body-wrapper (width < 48.75em) {
            font-size: 1.4rem;
          }
        }

        & ul {
          list-style: none;
          padding: 0;
          margin: 0;

          & li {
            padding: 0.3rem 0 0.3rem 0;

            & a {
              color: var(--bg-primary);
              text-decoration: none;

              @container body-wrapper (width < 48.75em) {
                font-size: 1.2rem;
              }

              &.active {
                color: var(--bg-secondary);
                text-decoration: underline;
              }
            }

            & a:hover {
              color: var(--bg-secondary);
            }
          }
        }
      }
    }
  }

  & .footer_bottom {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    padding: 2rem 5rem 2rem 5rem;
    background-color: #000;
    color: var(--background);

    & p {

      @container body-wrapper (width < 48.75em) {
        font-size: 0.7rem;
        text-align: center;
        margin-left: 0;
      }
    }
  }
}

.button {
  grid-area: button;
  display: inline-grid;
  grid-template-columns: 1fr;
  grid-template-rows: 1fr;
  border: none;
  border-radius: 32px;
  cursor: pointer;
  gap: 0;
  align-items: center;
  position: relative;
  overflow: hidden;
  background-color: black;

  &.primary {
    background: var(--background);
    color: var(--bg-secondary);
    border: 0.1rem solid var(--bg-secondary);

    &:hover {
      opacity: 0.6;
    }

    @container body-wrapper (width < 700px) {
      margin-bottom: 0.4rem;
    }
  }

  &.secondary {
    background: var(--bg-primary);
    color: var(--background);
    border: 0.1rem solid var(--primary);
    transition: var(--transition);

    &::before {
      background: linear-gradient(90deg,
          transparent,
          rgba(0, 0, 0, 0.1),
          transparent);
    }

    &:hover {
      opacity: 0.8;
      transition: var(--transition);
    }
  }

  &.link {
    color: var(--background);
    width: 90%;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    padding: 0.4rem 0.4rem 0.4rem 0.4rem;
    border: 0.1rem solid var(--bg-primary);

    &:hover {
      border: 0.1rem solid var(--bg-secondary);
      color: var(--bg-secondary);
    }
  }

  & .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;
  }
}

/* Effects and Animations */
@keyframes rotation {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}
@keyframes slideUp {
  from {
    transform: translateY(20px);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}
.slide-up {
  animation: slideUp 0.5s ease-out forwards;
}
/*END Effects and Animations END*/

.hidden {
  display: none !important;
}

[inert], [inert] * {
  opacity: 0.8;
  pointer-events: none;
  cursor: default;
  user-select: none;
  filter: contrast(95%);
}
