@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;700;900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Raleway:wght@300;400;500;700;900&display=swap');

:root {
  --fs-25: .25rem;
  --fs-50: .50rem;
  --fs-75: .75rem;
  --fs-100: 1rem;
  --fs-125: 1.25rem;
  --fs-150: 1.5rem;
  --fs-175: 1.75rem;
  --fs-200: 2rem;
  --bg-main: rgb(45, 45, 45);
  --bga-main: rgba(45, 45, 45, 0);
  --bg-hover: rgba(60, 60, 60, 0.97);
  --bg-row-hover: rgba(196, 193, 194, 0.8);
  --subbg-hover: rgba(225, 229, 231, 0.97);
  --bg-alt: rgb(245, 248, 250);
  --bga-alt: rgba(245, 248, 250, 0.97);
  --bg-card: whitesmoke;
  --card-shadow: rgba(16, 24, 40, .08);
  --section-title-color: #334155;
  --fc-main: black;
  --fc-main-hover: #7c3aed;
  --fc-alt: whitesmoke;
  --fc-inactive: rgb(147, 150, 151);
  --bg-wait: rgba(60, 60, 60, .8);
  --btn-bg: #6d28d9;
  --fc-nopat: red;
  --link-color: blue;
  --link-hover-color: darkcyan;
  --btn-hover-gradient-start: #f3e8ff;
  --btn-hover-gradient-end: #c084fc;
  --btn-gradient-start: #6d28d9;
  --btn-gradient-end: #4c1d95;
  --prescription-text: blue;
  --alert-viewed-fc: #7c3aed;
  --alerts-primary: #7c3aed;
  --alerts-primary-hover: #6d28d9;
  --alerts-secondary: #a855f7;
  --alerts-light: #f3e8ff;
  --alerts-border: #e9d5ff;
  /*Items that won't change color during a theme change*/
  --bg-sub-main: rgb(245, 248, 250);
  --bga-sub-main: rgba(245, 248, 250, 0.97);
  --fc-sub-main: black;
  --fc-sub-alt: whitesmoke;
  --btn-sub-bg: #0F233B;
  --icon-size: 40px;

  --alert-deleted-fc: red;

  /* Table defaults (used by summary / pagination areas) */
  --table-bg: var(--bg-alt);
  --table-border: #e5e7eb;
  --table-fc: var(--fc-main);
  --table-row-hover: var(--bg-hover);
  --table-font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica', 'Arial', sans-serif;

}

.darkmode {
  --bg-main: rgb(45, 45, 45);
  /* deep dark navy */
  --bga-main: rgba(11, 18, 32, 0.95);
  --bg-alt: #0f1724;
  /* slightly lighter */
  --bga-alt: rgba(15, 23, 36, 0.95);
  --bg-card: rgb(45, 45, 45);
  /* card background */
  --card-shadow: rgba(0, 0, 0, 0.6);
  --section-title-color: #c7c2d8;
  --bg-hover: rgba(124, 58, 237, 0.06);
  /* subtle purple hover */
  --bg-row-hover: rgba(124, 58, 237, 0.12);
  --fc-main: #e5e7eb;
  --fc-alt: #c7b8f5;
  --btn-bg: linear-gradient(135deg, #6d28d9 0%, #a855f7 100%);
  --fc-nopat: #fde68a;
  --link-color: #c084fc;
  --link-hover-color: #a855f7;
  --btn-hover-gradient-start: #7c3aed;
  --btn-hover-gradient-end: #a855f7;
  --btn-gradient-start: #6d28d9;
  --btn-gradient-end: #4c1d95;
  --alert-active-hover: rgba(192, 132, 252, 0.16);
  --prescription-text: #fef3c7;
  --alert-viewed-fc: #c084fc;
  --alerts-primary: #c084fc;
  --alerts-primary-hover: #a855f7;
  --alerts-secondary: #7c3aed;
  --alerts-light: #4c1d95;
  --alerts-border: #6d28d9;
  /* table-specific */
  --table-bg: #071023;
  --table-row: #0f1724;
  --table-row-alt: #0b1220;
  --table-row-hover: rgba(124, 58, 237, 0.12);
  --table-fc: #e5e7eb;
  --table-border: #2a2540;
  --table-scroll-track: rgba(255, 244, 179, 0.08);
  /* very light yellow track */
  --table-scroll-thumb: rgba(254, 243, 199, 0.92);
  /* pale yellow thumb */
  --table-scroll-thumb-hover: rgba(245, 158, 11, 0.95);
  /* darker yellow/amber on hover */
  --table-font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica', 'Arial', sans-serif;
}

html {
  height: 100%;
  overflow: hidden;
}

body {
  font-family: Raleway;
  margin: 0px;
  padding: 0px;
  overflow: hidden;
  height: 100%;
  width: 100%;
}

span {
  margin: 0px;
  padding: 0px;
}

.horizontal-line {
  background-color: var(--fc-main);
  width: 100%;
  height: 1px;
}

.horizontal-list {
  display: flex;
  list-style: none;
  align-items: center;
  justify-content: flex-start;
  gap: 3em;
}

.horizontal-list ul li:not(:first-child) {
  padding-bottom: 8px;
}

.item-title {
  font-size: var(--fs-200);
  font-weight: 700;
  color: var(--fc-main);
}

.navbar {
  background-color: var(--bg-alt);
  background-color: var(--bga-alt);
  box-shadow: 0px 1px 10px 0px rgba(0, 0, 0, 1);
  position: fixed;
  width: 100%;
  z-index: 1;
  height: 50px;
}

.navbar-nav>.patient-demographic {
  padding-left: 30px;
  padding-right: 30px;
}

.nav-side-menu {
  overflow: auto;
  font-size: var(--fs-150);
  font-weight: 100;
  font-variant: small-caps;
  line-height: 10px;
  background-color: var(--bg-alt);
  background-color: var(--bga-alt);
  box-shadow: 1px 0px 10px 0px rgba(0, 0, 0, 1);
  position: fixed;
  top: 60px;
  width: 18%;
  height: 93%;
  color: var(--fc-main);
}

.nav-side-menu ul,
.nav-side-menu li {
  list-style: none;
  padding: 10px;
  margin: 0px;
  line-height: 3%;
  cursor: pointer;
}

.nav-side-menu ul :not(collapsed) .arrow:before,
.nav-side-menu li :not(collapsed) .arrow:before {
  font-family: FontAwesome;
  content: "\f078";
  display: inline-block;
  padding-left: 10px;
  padding-right: 10px;
  vertical-align: middle;
}

.nav-side-menu ul .active,
.nav-side-menu li .active {
  border-left: 3px solid #d19b3d;
  background-color: #4f5b69;
}

.nav-side-menu li {
  padding-left: 0px;
  border-bottom: 1px solid #23282e;
  -webkit-transition: all 125ms ease;
  -moz-transition: all 125ms ease;
  -o-transition: all 125ms ease;
  -ms-transition: all 125ms ease;
  transition: all 125ms ease;
}

.nav-side-menu li a {
  text-decoration: none;
  color: var(--fc-main);
}

.nav-side-menu li a i {
  padding-left: 10px;
  padding-right: 20px;
}

.nav-side-menu li:hover {
  background-color: var(--bg-alt);
  background-color: var(--bga-alt);
  box-shadow: 0px 0px 10px 0px rgba(60, 60, 60, 1);
}

.sortdiv:hover {
  border-radius: 5px;
  padding: .2em .5em;
  background-color: var(--bg-main);
  color: var(--fc-alt);
  cursor: pointer;
}

@media (max-width: 767px) {
  .nav-side-menu {
    position: relative;
    width: 100%;
    margin-bottom: 10px;
  }
}

@media (min-width: 767px) {
  .nav-side-menu .menu-list .menu-content {
    display: block;
  }
}

.patient-image {
  margin-left: auto;
  margin-right: auto;
  max-width: 80%;
  height: auto;
  padding-top: 30px;
}

.background {
  position: fixed;
  background-size: cover;
  width: 100%;
  height: 100%;
  margin-left: auto;
  margin-right: auto;
  top: 3%;
  left: 0;
  background-image: url('../images/stethoscopebackground.png');
  /*overflow:auto;*/
}

.backgroundfull {
  position: fixed;
  background-size: cover;
  width: 100%;
  height: 100%;
  margin-left: auto;
  margin-right: auto;
  top: 0px;
  left: 0;
  background-image: url('../images/stethoscopebackground.png');
  /*overflow:auto;*/
}

input {
  padding: 10px;
  font-family: FontAwesome, "Open Sans", Verdana, sans-serif;
  font-style: normal;
  font-weight: normal;
  text-decoration: inherit;
}

.card-header {
  color: var(--fc-main);
  font-variant: small-caps;
  background: transparent;
  border: none;

}

.expandHeader {
  position: fixed;
  height: 15px;
  width: 70%;
  text-align: center;
  cursor: pointer;
}

.displayHeader {
  display: block;
  height: 50px;
  display: none;
  width: 100%;
  color: var(--fc-alt);
  font-size: 20px;
  padding-left: 10px
}

.DemoFormat {
  color: var(--fc-alt);
  margin: 0;
  padding-left: 0;
  float: left;
  font-size: 20px;
}

.headerColumn {
  text-align: right;
  padding: 0;
  font-size: 20px;
}

.valueColumn {
  text-align: left;
  padding-left: 10px;
  font-size: 18px;
}

.patientdroplist {
  font-family: Raleway;
  background-color: var(--bg-alt);
  background-color: var(--bga-alt);
  box-shadow: 0px 1px 10px 0px rgba(0, 0, 0, 1);
  color: var(--fc-main);
}

/*Login style*/
.loginbuttoncontainer {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1em;
  width: 100%;
  margin-top: 0.5em;
}

.cancellogin {
  text-decoration: none;
  color: var(--fc-main);
  font-size: 0.9rem;
  opacity: 0.8;
  transition: opacity 0.2s ease;
}

.cancellogin:hover {
  cursor: pointer;
  color: var(--fc-main);
  opacity: 1;
  text-decoration: underline;
}

.LoginContainter {
  width: 600px;
  max-width: 90vw;
  max-height: 90vh;
  height: auto;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: var(--bg-alt);
  background-color: var(--bga-alt);
  position: fixed;
  text-align: center;
  color: var(--fc-main);
  z-index: 2001;
  border-radius: 12px;
  border: none;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  padding: 2rem 2.5rem;
  animation: fadeInScale 0.3s ease-out;
}

@keyframes fadeInScale {
  from {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.95);
  }

  to {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
}

.LoginContainter h1:nth-child(1) {
  background-color: transparent;
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
  color: var(--fc-main);
}

.LoginContainter h1:nth-child(2) {
  padding-top: 0;
  background-color: transparent;
  font-size: 1.5rem;
  font-weight: 400;
  margin-bottom: 1rem;
  color: var(--fc-main);
  opacity: 0.9;
}

.LoginContainerInput {
  width: 100%;
  max-width: 350px;
  height: 45px;
  display: inline-block;
  border-radius: 8px;
  border: 1px solid rgba(128, 128, 128, 0.3);
  padding: 0.5rem 1rem;
  font-size: 1rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.LoginContainerInput:focus {
  outline: none;
  border-color: #007bff;
  box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.LoginContainerInput::placeholder {
  opacity: 0.6;
}

.LoginContainerSubmit {
  color: var(--fc-main);
  border: none;
  background: transparent;
  cursor: pointer;
  font-size: 0.9rem;
  opacity: 0.7;
  transition: opacity 0.2s ease;
}

.LoginContainerSubmit:hover {
  text-decoration: underline;
  opacity: 1;
}

.LoginErrorStyle {
  color: #fff;
  background-color: #dc3545;
  margin-top: 10px;
  padding: 0.5rem;
  border-radius: 6px;
}

.LoginInput {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.LoginInput div {
  width: 100%;
  max-width: 350px;
  margin-bottom: 0;
}

.LoginInput .btn {
  width: 100%;
  max-width: 350px;
  height: 45px;
  font-size: 1rem;
  font-weight: 500;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.LoginInput .btn-secondary {
  background-color: #007bff;
  border-color: #007bff;
}

.LoginInput .btn-secondary:hover {
  background-color: #0056b3;
  border-color: #0056b3;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}

#loginbutton {
  background-color: var(--fc-alt);
  opacity: 0.6;
  -moz-border-radius: 15px;
  -webkit-border-radius: 15px;
  border-radius: 15px;
  border: 5px solid var(--fc-alt);
  padding: 2px;
  margin-left: 35%;
  width: 75px;
  height: 40px;
  text-align: center;
  color: var(--fc-main);
  vertical-align: middle;
}

#loginbutton:hover {
  opacity: 0.9;
}

#regbutton {
  background-color: var(--fc-alt);
  opacity: 0.6;
  -moz-border-radius: 15px;
  -webkit-border-radius: 15px;
  border-radius: 15px;
  border: 5px solid var(--fc-alt);
  padding: 2px;
  width: 80px;
  height: 40px;
  text-align: center;
  color: var(--fc-main);

}

#regbutton:hover {
  opacity: 0.9;
}

.regFormat {
  color: var(--fc-alt);
  margin: 0;
  padding-left: 0;
}

.regformatbuttons {
  color: var(--fc-alt);
  margin: 0;
  padding-left: 50px;
}

.hiddenrow {
  display: none;
}

.detailtoggle {
  cursor: pointer;
}

.logintextbox {
  margin-left: 35%;
}

.loginButton {
  margin-left: 50%;
}

#loader {
  height: 300px;
  width: 300px;
  background-color: whitesmoke;
  background-image: url('../images/ajax-loader.gif');
  background-repeat: no-repeat;
  background-position: center;
  border-radius: 10px;
  z-index: 1002;
  margin-left: -10vw;
}

#patloader {
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(60, 60, 60, .8) url('../images/ajax-loader.gif') no-repeat 50%;
}

#mainloader {
  position: absolute;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 1001;
  display: none;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: rgba(60, 60, 60, .8);
}

#loginloader {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1001;
  overflow: hidden;
  background: rgba(60, 60, 60, .8);
}

#popupbackground {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(60, 60, 60, .8);
}

#obsdoc {
  position: fixed;
  top: 0;
  left: 5%;
  width: 100%;
  height: 100%;
  z-index: 1001;
  display: none;
  overflow: auto;
}


.btn {
  background: var(--bg-main);
  background-image: -webkit-linear-gradient(top, var(--btn-gradient-start), var(--btn-gradient-end));
  background-image: -moz-linear-gradient(top, var(--btn-gradient-start), var(--btn-gradient-end));
  background-image: -ms-linear-gradient(top, var(--btn-gradient-start), var(--btn-gradient-end));
  background-image: -o-linear-gradient(top, var(--btn-gradient-start), var(--btn-gradient-end));
  background-image: linear-gradient(to bottom, var(--btn-gradient-start), var(--btn-gradient-end));
  -webkit-border-radius: 10px;
  -moz-border-radius: 10px;
  border-radius: 10px;
  color: var(--fc-alt);
  font-family: Open Sans;
  font-size: .9vw;
  font-weight: 100;
  padding: 5px 10px 5px 10px;
  border: solid var(--fc-main) 1px;
  text-decoration: none;
  display: inline-block;
  cursor: pointer;
  width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.btn:hover {
  background: var(--fc-alt);
  background-image: -webkit-linear-gradient(top, var(--btn-hover-gradient-start), var(--btn-hover-gradient-end));
  background-image: -moz-linear-gradient(top, var(--btn-hover-gradient-start), var(--btn-hover-gradient-end));
  background-image: -ms-linear-gradient(top, var(--btn-hover-gradient-start), var(--btn-hover-gradient-end));
  background-image: -o-linear-gradient(top, var(--btn-hover-gradient-start), var(--btn-hover-gradient-end));
  background-image: linear-gradient(to bottom, var(--btn-hover-gradient-start), var(--btn-hover-gradient-end));
  text-decoration: none;
}

.dropdownbtnstyle {
  width: 100px;
  text-align: center;
  margin-bottom: 10px;
}

#paging {
  width: 100%;
}

#childleft {
  cursor: pointer;
}

.contain {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
}

.CategoryContent {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  /* background-color: var(--bg-alt);
  background-color: var(--bga-alt); */
}

.ItemContent {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.ItemContentFloatLeft {
  float: left;
}

.ItemContentPatHeader {
  font-family: Raleway;
  font-size: 2.5vw;
}

.ItemContentPatHeaderRow {
  float: left;
  margin-left: 2%;
  color: var(--fc-main);
  background-color: transparent;
  border: none;
}

.ItemContentPageNavOld {
  display: flex;
  justify-items: center;
  padding: 0;
  margin: 0;
  vertical-align: center;
  width: 100%;
}

.ItemContentPageNav {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  width: 100%;
  align-items: center;
}

.left-aligned {
  justify-self: start;
  text-align: left;
}

.center-aligned {
  justify-self: center;
  text-align: center;
}

.right-aligned {
  justify-self: right;
  text-align: right;
}

.ItemContentPagNavTable {
  /*margin-left: 30%;*/
  width: 100%;
}

.ItemContentPageNavColumn {
  margin-left: 50%;
  width: 100%;
  font-family: Lato;
}

.RecsPerPage {
  justify-self: flex-end;
  display: flex;
  align-items: center;
  margin-right: 10em;
  padding-right: 1em;
}

.RecsPerPage div:first-child {
  margin-right: .25em;
  color: var(--fc-main);
}

/* When the records-per-page control is used in a table nav or summary area,
   style it to match the table summary/nav in both light and dark modes */
.layout_container+[class$="-table-nav"] .RecsPerPage,
.layout_container>.RecsPerPage,
.table-nav-center .RecsPerPage {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: 0.25rem 0.5rem;
  border-radius: 6px;
  background: var(--table-bg);
  border: 1px solid var(--table-border);
  color: var(--fc-main);
}

.darkmode .layout_container+[class$="-table-nav"] .RecsPerPage,
.darkmode .layout_container>.RecsPerPage,
.darkmode .table-nav-center .RecsPerPage {
  background: var(--table-row);
  border-color: var(--table-border);
  color: var(--table-fc);
}

.darkmode .RecsPerPage div:first-child {
  color: var(--table-fc);
}

.card-body-scroll {
  overflow-y: auto;
  overflow-x: hidden;
  color: var(--fc-main);
  background-color: var(--bg-alt);
  flex: 1;
  height: 100%;
}

.card-body-scroll:has(.alerts-table-wrapper) {
  overflow: visible;
}

.card-body-scroll:has(.problems-table-wrapper) {
  overflow: visible;
}

.card-body-scroll:has(.meds-table-wrapper) {
  overflow: visible;
}

/* For dental view, allow the table wrapper to control scrolling and hide outer scrollbar */
.card-body-scroll:has(.dental-table-wrapper) {
  overflow: visible;
  scrollbar-width: none;
  /* Firefox */
}

.card-body-scroll:has(.dental-table-wrapper)::-webkit-scrollbar {
  display: none;
  /* Chrome/Safari */
}

/*Top nav bar search pat info, and User info*/
#patdetail {
  font-family: lato;
  margin-bottom: 0;
  overflow: hidden;
}


.patsearchlist {
  cursor: pointer;
}

.patsearchlist a {
  font-size: .9vw;
}

#patList {
  display: none;
  height: 60vh;
  overflow-y: auto;
  overflow-x: hidden;
  background-color: white;
  margin-left: 17px;
  padding-left: 1em;
}

#advancedsearch {
  width: 100%;
  height: 0;
  line-height: 35px;
  background-color: rgba(253, 132, 105, 1.0);
  margin-top: auto;
  padding: 5px 0 0 0;
  text-align: right
}

.searchlink {
  color: var(--fc-main);
}

#patinfo {
  padding-left: 100px;
  font-family: 'Raleway:800', Lato;
}

.submenuitemstyle {
  color: var(--fc-main);
}

.searchkeylink {
  font-size: var(--fs-150);
  font-weight: bold;
  color: var(--fc-main);
}

.patientdemodata {
  font-size: var(--fs-150);
  font-weight: bold;
  color: var(--fc-main);
  padding: 0;
}

.embedpatientdemodata {
  font-size: var(--fs-150);
  font-weight: bold;
  color: var(--fc-main);
  padding-top: 1%;
  display: flex;
  justify-content: space-between;
  width: 100%;
}

.searchkeylinksubstyle {
  margin: 0;
  color: var(--fc-main);
  font-size: 15px;
}

.recentListStyle {
  color: var(--fc-main);
}

.recentListStyle:hover {
  color: var(--fc-main);
}

.user-info-top {
  padding-right: 50px;
  color: var(--fc-main)
}

.user-info-top li div a {
  font-size: .9vw;
}

.imagestyle {
  padding-top: 3px;
  width: 25px;
  text-align: right;
  padding-right: 10px;
  float: left;
}

#pagenav {
  font-family: Lato;
  font-size: 25px;
  margin-left: 30%;
  width: 100%;
}

.Menu-Content-Icon-Style {
  padding-right: 25px;
  padding-left: 10px;
}

.card-body-scroll ol li {
  font-size: 25px;
  font-weight: normal;
}

.card-body-scroll ol li h5 {
  font-weight: bold;
}

.card-body-scroll ol li a {
  color: red;
}

/*Moniker screen formatting*/
.MonikerStamp {
  margin-top: 30px;
  width: 85%;
  height: 20%;
  margin-left: 7%;
  margin-top: 20%;
  margin-bottom: 0;
  background-image: url('../images/stethoscopebackground.png');
  background-size: cover;
}

.MonikerStamp div {
  padding-left: 50px;
  height: 95%;
  padding-top: 30%;
  margin-right: 15%
}

.MonikerStamp div p:nth-child(1) {
  font-weight: bold;
  font-size: var(--fs-150);
  color: var(--fc-main);
}

.MonikerStamp div p:nth-child(2) {
  color: var(--fc-main);
  font-size: .7vw;
}

.Copyrightstyle {
  font-size: 1vw;
  position: fixed;
  bottom: 2%;
  padding: 0;
  padding-left: 5%;
}

.MenuHeight {
  height: 65%;
  color: var(--fc-main);
}

.NoPatientStyle {
  font-size: 2.5vw;
  color: var(--fc-nopat);
  margin-left: 25%;
}

.PatAuditSideMenu {
  color: var(--fc-main);
}

.Whitefont {
  color: var(--fc-main);
}

.FilterDropDownRoundedCorners {
  background-color: white;
  -moz-border-radius: 5px;
  border-radius: 5px;
  -webkit-border-radius: 5px;
  border: .5px solid lightgray;
  max-height: 4vw;
  width: 100%;
  white-space: nowrap;
}

.FilterDropDownRoundedCorners li a {
  color: dimgray;
}

.FilterDropDownRoundedCorners li div {
  width: 15vw;
  height: 15vw;
  overflow-y: auto;
  font-size: var(--fs-100);
  padding-bottom: .5em;
}


.dropdownbutton {
  background: var(--btn-gradient-start);
  background-image: -webkit-linear-gradient(top, var(--btn-gradient-start), var(--btn-gradient-end));
  background-image: -moz-linear-gradient(top, var(--btn-gradient-start), var(--btn-gradient-end));
  background-image: -ms-linear-gradient(top, var(--btn-gradient-start), var(--btn-gradient-end));
  background-image: -o-linear-gradient(top, var(--btn-gradient-start), var(--btn-gradient-end));
  background-image: linear-gradient(to bottom, var(--btn-gradient-start), var(--btn-gradient-end));
  -webkit-border-radius: 28px;
  -moz-border-radius: 28px;
  border-radius: 28px;
  font-family: Arial;
  color: var(--fc-alt);
  font-size: 12px;
  padding: 5px 10px 5px 10px;
  text-decoration: none;
  width: 100px;
  height: 30px;
  margin-bottom: 10px;
  text-align: center;
}

.dropdownbutton:hover {
  color: var(--fc-alt);
  cursor: pointer;
}

.AdvancedSearchStyleTop {
  width: 80%;
  margin-right: 1%;
  margin-top: 1%;
  padding-top: 1.2%;
  background-color: var(--bg-alt);
  background-color: var(--bga-alt);
}

.AdvancedSearchStyleBottom {
  width: 80%;
  margin-right: 1%;
  margin-top: 0;
  padding-top: 0;
  background-color: var(--bg-alt);
  background-color: var(--bga-alt);
  height: 30%;
}

.AdvancedStyleOverflow {
  text-align: center;
  margin-left: 5%;
  overflow-y: auto;
  height: 30%
}

.AdvancedSearchCriteria {
  color: var(--fc-alt);
  font-size: .9vw;
  width: 100%;
  text-align: center;
}

.AdvancedSearchCriteriaInput {
  width: 25%;
  height: 2vw;
  display: block;
  margin: auto;
}

.AdvancedSearchCriteriaButtonLeft {
  width: 150px;
  float: left;
  margin-left: 38%;

}

.AdvancedSearchCriteriaButtonRight {
  width: 150px;
  float: left;
}

.AdvancedDiv {
  margin-top: 5px;
  text-align: center;
}

.AdvancedNavLink {
  color: var(--fc-main);
}

.AdvancedNavLink:hover {
  color: var(--fc-main);
}

#FlowValue {
  margin-top: 5%;
  margin-right: 3%;
}

/*//2factor auth*/
.TwoFactorHeader {
  font-weight: bold;
  color: var(--fc-main);
}

.TwoFactorAuthDescription {
  font-size: .8vw;
  text-align: left;
  color: var(--fc-main);
  font-weight: normal;
}

.OuterButtonPosition {
  width: 100%;
  text-align: center;
}

.InnerButtonPosition {
  width: 150px;
  display: inline-block;
  position: relative;
}

.center {
  margin-left: auto;
  margin-right: auto;
  margin-top: 10px;
}

.ResetButton {
  padding-top: 1vw;
  padding-bottom: 1vw;
}

#RENTERPASSWORD {
  padding-top: .5vw;

}

.ResetPasswordStyle {
  font-size: .8vw;
  color: var(--fc-main);
}

.NoRecordsStyle {
  color: var(--fc-main);
}

.table-hover tr:hover td {
  background-color: var(--bg-row-hover);
}

/*Category styles*/
/*Header for categories with status*/
.selectstatus {
  width: 150px;
  float: left;
  padding-left: 10px;
  margin-top: 0;
  height: 100%;
  vertical-align: center;
}

.selectstatus select {
  width: 100%;
  font-size: 20px;
}

.selectcontainer {
  width: 100%;
  float: left;
  margin-top: 2vw;
  height: 3%;
  font-size: var(--fs-150);
}

.selectheading {
  float: left;
  text-align: right;
  margin-top: 0;
  height: 100%;
  font-size: var(--fs-150);
  vertical-align: center;

}

/*end of headers for categories with status*/

.namecol {
  width: 250px
}

.commentcol {
  width: 100px
}

.appenddetail {
  display: none;
  position: absolute;
  top: 1vh;
  left: 90px;
  width: 82vw;
  height: 95vh;
  padding: 5px;
  border-radius: 6px;
  background-color: var(--bg-alt);
  z-index: 2001;
  color: var(--fc-main);
  transition: var(--tran-03);
}

.appenddetail.active {
  left: 260px;
}

.appenddetail div {
  padding-top: 2em;
  padding-left: 2em;
}

.closeappend {
  margin-left: auto;
  height: 30px;
  cursor: pointer;
}

.appendvalue {
  background-color: rgb(245, 248, 250);
  color: black;
  overflow: auto;
  height: 80vh;
  width: 100%;
}

.displaydoc {
  display: none;
  position: absolute;
  top: 10%;
  left: 10%;
  width: 70%;
  height: 90%;
  padding: 16px;
  border: 16px solid var(--bg-main);
  background-color: var(--fc-alt);
  z-index: 1002;
  overflow: auto;
  color: var(--fc-main);
}

.closedoc {
  position: fixed;
  text-align: right;
  height: 30px;
  width: 25cm;
  cursor: pointer;
}

.TableHeaderStyle {
  font-weight: bold;
  font-size: 1vw;
  color: var(--fc-main);
}

.TableHeaderStyle tr td {
  border-color: var(--bg-main);
  border-top: solid 1px;
  border-bottom: solid 1px;
}

.TableStyle {
  color: var(--fc-main);
  font-size: var(--fs-100);

}

.TableStyle tr td {
  border-color: var(--bg-main);
  border-top: solid 1px;
  border-bottom: solid 1px;
}

.tablescrolldiv {
  overflow-y: auto;
  overflow-x: hidden;
  padding-top: 0;
  margin-top: 0;
  height: calc(70vh - 50px);
}

.usertablescrolldiv {
  height: 95%;
  max-height: 70vh;
  overflow: auto;
  padding-top: 0;
  margin-top: 0;
}

.orderstablescrolldiv {
  height: 95%;
  overflow: auto;
  padding-top: 0;
  margin-top: 0;
}

.categorytableheader {
  width: 90%;
  margin: 0 auto;
  float: none;
}

.categorytable {
  width: 90%;
  margin: 0 auto;
  float: none;
}

.orderscategorytable {
  width: 100%;
  margin: 0 auto;
  float: none;
}

.orderscategorytableheader {
  width: 100%;
  margin: 0 auto;
  float: none;
}

.categorytableheaderfixed {
  margin: 0 2px;
  float: none;
  table-layout: fixed;
}

.categorytablefixed {
  margin: 0 auto;
  float: none;
  table-layout: fixed;
}

/*Demographics*/
.pattoolparentcontainer {
  border: .5px solid var(--bg-row-hover);
}

.pattoolcontainer {
  display: flex;
  gap: 1em;
  font-size: var(--fs-175);
}

.pattoolcontainer div:nth-child(1) {
  text-align: right;
  padding: 5px;
  width: 200px;
  font-weight: bold;
}

.pattoolcontainer div:nth-child(2) {
  text-align: left;
  padding: 5px;
  min-width: 400px;
  max-width: 800px;
}

/*End Demographics*/

/*problems table header*/

/* Problems Table Wrapper */
.problems-table-wrapper {
  display: flex;
  flex-direction: column;
  height: calc(100vh - 200px);
  min-height: 500px;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  background: var(--bg-card);
  border: 1px solid #e5e7eb;
}

.problems-row {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica', 'Arial', sans-serif;
  font-size: 0.875rem;
  display: grid;
  grid-template-columns: 400px 120px 120px 100px 100px 350px;
  align-items: center;
  gap: 1rem;
  min-height: 48px;
  padding: 0.75rem 1rem;
  color: var(--fc-main);
}

.problems-row div:nth-child(1),
.problems-row div:nth-child(6) {
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
}

.problems-table-summary {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica', 'Arial', sans-serif;
  color: #374151;
  font-size: 0.875rem;
  padding: 0.875rem 1rem;
  background: #ffffff;
  border-bottom: 1px solid #e5e7eb;
  font-weight: 500;
  letter-spacing: 0;
}

.layout_header.problems-row {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica', 'Arial', sans-serif;
  background: linear-gradient(135deg, #7c3aed 0%, #a855f7 100%);
  border-radius: 8px 8px 0 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  padding: 0.875rem 1rem;
  font-weight: 600;
  color: white;
  transition: all 0.2s ease;
  position: sticky;
  top: 0;
  z-index: 100;
  letter-spacing: 0.025em;
  text-transform: none;
  font-size: 0.875rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.layout_header.problems-row div {
  display: flex;
  align-items: center;
  gap: 0.5em;
}

.problems-table-nav {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica', 'Arial', sans-serif;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.875rem 1rem;
  background: #ffffff;
  border-top: 1px solid #e5e7eb;
  gap: 1rem;
  flex-shrink: 0;
}

/* Patient search table styles (separate from problems) */
.patientsearch-table-wrapper {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: calc(50vh - 40px);
  min-height: 160px;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  background: var(--bg-card);
  border: 1px solid var(--table-border);
}

.patientsearch-row {
  font-family: var(--table-font-family);
  font-size: 0.9rem;
  display: grid;
  grid-template-columns: 90px 170px 90px 1fr;
  align-items: center;
  gap: 1rem;
  min-height: 44px;
  padding: 0.65rem 1rem;
  color: var(--table-fc);
}

.patientsearch-row:hover {
  background: var(--table-row-hover, var(--bg-row-hover));
  cursor: pointer;
}

.patientsearch-row div:nth-child(2),
.patientsearch-row div:nth-child(4) {
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
}

.patientsearch-address {
  color: var(--fc-inactive);
  font-size: 0.85rem;
}

.patientsearch-table-summary {
  font-family: var(--table-font-family);
  color: #374151;
  font-size: 0.85rem;
  padding: 0.6rem 1rem;
  background: #ffffff;
  border-bottom: 1px solid var(--table-border);
  font-weight: 500;
}

.layout_header.patientsearch-row {
  background: linear-gradient(135deg, #4c1d95 0%, #6d28d9 100%);
  border-radius: 8px 8px 0 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  padding: 0.75rem 1rem;
  font-weight: 600;
  color: white;
  position: sticky;
  top: 0;
  z-index: 50;
}

.patientsearch-table-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.6rem 1rem;
  background: #ffffff;
  border-top: 1px solid var(--table-border);
  gap: 1rem;
  flex-shrink: 0;
}

.patientsearch-nav-btn {
  background: #7c3aed;
  color: white;
  border: 1px solid #7c3aed;
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 0.875rem;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  font-weight: 500;
}

.patientsearch-nav-btn:hover {
  background: #6d28d9;
  color: white;
  border-color: #6d28d9;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.patientsearch-nav-btn:disabled {
  background: #e5e7eb;
  color: #9ca3af;
  border-color: #e5e7eb;
  cursor: not-allowed;
  opacity: 0.6;
  box-shadow: none;
}

.patientsearch-nav-btn i {
  color: white;
}

.patientsearch-nav-btn:disabled i {
  color: #9ca3af;
}

/* Arrange the pagination controls horizontally and align them to the right */
.patientsearch-table-nav>div:last-child {
  display: flex;
  align-items: center;
  gap: 0.5em;
  margin-left: auto;
}

.patientsearch-table-nav span {
  color: var(--fc-main);
  font-weight: 500;
  min-width: 2em;
  text-align: center;
  font-size: 0.875rem;
}


.problems-table-nav>div:first-child {
  color: #374151;
  font-weight: 500;
  font-size: 0.875rem;
  min-width: 150px;
}

.problems-table-nav>div:last-child {
  display: flex;
  align-items: center;
  gap: 0.5em;
  margin-left: auto;
}

.problems-nav-btn {
  background: #7c3aed;
  color: white;
  border: 1px solid #7c3aed;
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 0.875rem;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  font-weight: 500;
}

.problems-nav-btn:hover {
  background: #6d28d9;
  color: white;
  border-color: #6d28d9;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* Perio (dental perio) table styling - keep classes scoped to perio */
.perio-table-wrapper {
  display: flex;
  flex-direction: column;
  height: calc(100vh - 220px);
  min-height: 420px;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  background: var(--bg-card);
  border: 1px solid #e5e7eb;
}

.perio-table-summary {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica', 'Arial', sans-serif;
  color: #374151;
  font-size: 0.875rem;
  padding: 0.75rem 1rem;
  background: #ffffff;
  border-bottom: 1px solid #e5e7eb;
  font-weight: 600;
}

.layout_header.perio-row {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica', 'Arial', sans-serif;
  background: linear-gradient(135deg, #7c3aed 0%, #a855f7 100%);
  border-radius: 8px 8px 0 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  padding: 0.75rem 1rem;
  font-weight: 600;
  color: white;
  position: sticky;
  top: 0;
  z-index: 50;
  font-size: 0.875rem;
}

.perio-row {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica', 'Arial', sans-serif;
  font-size: 0.875rem;
  display: grid;
  grid-template-columns: 60px 40px repeat(10, 1fr);
  align-items: center;
  gap: 0.75rem;
  min-height: 44px;
  padding: 0.5rem 1rem;
  color: var(--fc-main);
}

.perio-table-wrapper .layout_rows_container {
  overflow: auto;
  flex: 1 1 auto;
  padding: 0;
}

/* Firefox scrollbar */
.perio-table-wrapper .layout_rows_container {
  scrollbar-width: auto;
  scrollbar-color: #8b5cf6 #f3e8ff;
}

/* Chrome, Edge, Safari scrollbar */
.perio-table-wrapper .layout_rows_container::-webkit-scrollbar {
  width: 10px;
}

.perio-table-wrapper .layout_rows_container::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #7c3aed 0%, #a855f7 100%);
  border-radius: 8px;
}

.problems-nav-btn:hover i {
  color: white;
}

.problems-nav-btn:active {
  transform: translateY(0) scale(1);
  box-shadow: 0 2px 4px var(--card-shadow);
}

.problems-nav-btn:disabled {
  background: #e5e7eb;
  color: #9ca3af;
  border-color: #e5e7eb;
  cursor: not-allowed;
  opacity: 0.6;
  box-shadow: none;
}

.problems-nav-btn:disabled:hover {
  background: #e5e7eb;
  color: #9ca3af;
  box-shadow: none;
  transform: none;
  scale: 1;
}

.problems-nav-btn:disabled i {
  color: #9ca3af;
}

.problems-nav-btn:disabled:hover i {
  color: #9ca3af;
}

.problems-nav-btn i {
  color: white;
}

.problems-table-nav span {
  color: var(--fc-main);
  font-weight: 500;
  min-width: 2em;
  text-align: center;
  font-size: 0.875rem;
}

.darkmode .problems-table-nav span {
  color: var(--table-fc);
}

/*end problem table*/

/* Appointments table styles - mirror Problems look but separate classes */
.appointments-table-wrapper {
  display: flex;
  flex-direction: column;
  height: calc(100vh - 200px);
  min-height: 500px;
  border-radius: 4px;
}

/* Users table styling - mimic Problems visuals but scoped to users */
.users-table-wrapper {
  display: flex;
  flex-direction: column;
  /* Increased height so the users table expands to fill more viewport space */
  height: calc(100vh - 150px);
  min-height: 560px;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  background: var(--bg-card);
  border: 1px solid #e5e7eb;
}

.users-table-summary {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica', 'Arial', sans-serif;
  color: #374151;
  font-size: 0.875rem;
  padding: 0.875rem 1rem;
  background: #ffffff;
  border-bottom: 1px solid #e5e7eb;
  font-weight: 500;
}

.layout_header.users-row {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica', 'Arial', sans-serif;
  background: linear-gradient(135deg, #7c3aed 0%, #a855f7 100%);
  border-radius: 8px 8px 0 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  padding: 0.875rem 1rem;
  font-weight: 600;
  color: white;
  position: sticky;
  top: 0;
  z-index: 100;
  letter-spacing: 0.025em;
  text-transform: none;
  font-size: 0.875rem;
  transition: all 0.2s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.layout_header.users-row div {
  display: flex;
  align-items: center;
  gap: 0.5em;
}

.users-row {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica', 'Arial', sans-serif;
  font-size: 0.875rem;
  display: grid;
  grid-template-columns: 48px 48px 200px 150px 1fr 120px;
  align-items: center;
  gap: 0.75rem;
  min-height: 48px;
  padding: 0.75rem 1rem;
  color: var(--fc-main);
}

.users-table-nav {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica', 'Arial', sans-serif;
}

.users-table-wrapper .layout_rows_container {
  overflow: auto;
  flex: 1 1 auto;
  padding: 0;
}

/* Firefox scrollbar */
.users-table-wrapper .layout_rows_container {
  scrollbar-width: auto;
  scrollbar-color: #8b5cf6 #f3e8ff;
}

/* Chrome, Edge, Safari scrollbar */
.users-table-wrapper .layout_rows_container::-webkit-scrollbar {
  width: 10px;
}

.users-table-wrapper .layout_rows_container::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #7c3aed 0%, #a855f7 100%);
  border-radius: 8px;
}

/*end users table*/

.users-table-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.875rem 1rem;
  background: #ffffff;
  border-top: 1px solid #e5e7eb;
  gap: 1rem;
  flex-shrink: 0;
}

.users-table-nav>div:first-child {
  color: var(--fc-main);
  font-weight: 500;
  font-size: 0.875rem;
  min-width: 150px;
}

.darkmode .users-table-nav>div:first-child {
  color: var(--table-fc);
}

.users-table-nav>div:last-child {
  display: flex;
  align-items: center;
  gap: 0.5em;
  margin-left: auto;
}

/* Audit Table Footer/Nav */
.audit-table-nav {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica', 'Arial', sans-serif;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.875rem 1rem;
  background: #ffffff;
  border-top: 1px solid #e5e7eb;
  gap: 1rem;
  flex-shrink: 0;
}

.audit-table-nav>div:first-child {
  color: #374151;
  font-weight: 500;
  font-size: 0.875rem;
  min-width: 150px;
}

.audit-table-nav>div:last-child {
  display: flex;
  align-items: center;
  gap: 0.5em;
  margin-left: auto;
}

.audit-table-nav>div {
  flex: 1 1 0;
}

.audit-table-left {
  text-align: left;
  display: flex;
  align-items: center;
}

.audit-table-center {
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
}

.audit-table-right {
  text-align: right;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 0.5em;
}

.audit-nav-btn {
  background: #7c3aed;
  color: white;
  border: 1px solid #7c3aed;
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 36px;
  margin: 0;
  min-width: 36px;
  font-weight: 500;
  font-size: 0.875rem;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.audit-nav-btn:disabled,
.audit-nav-btn[disabled] {
  background: #e5e7eb;
  border-color: #e5e7eb;
  color: #9ca3af;
  cursor: not-allowed;
  opacity: 0.6;
}

.audit-page-num {
  min-width: 2em;
  text-align: center;
  font-weight: 500;
  font-size: 0.875rem;
  color: #374151;
  margin: 0;
  display: inline-block;
}


.users-table-nav>div {
  flex: 1 1 0;
}

.users-table-left {
  text-align: left;
  display: flex;
  align-items: center;
}

.users-table-center {
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
}

.users-table-right {
  text-align: right;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 0.5em;
}

.users-table-pageinfo {
  font-weight: 500;
  color: var(--fc-main);
}

.darkmode .users-table-pageinfo {
  color: var(--table-fc);
}

/* The small center page number in users pager */
.users-page-num {
  color: var(--fc-main);
  font-weight: 500;
}

.darkmode .users-page-num {
  color: var(--table-fc);
}

.users-nav-btn {
  background: #7c3aed;
  color: white;
  border: 1px solid #7c3aed;
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 36px;
  margin: 0;
  /* spacing handled by parent gap */
  min-width: 36px;
  font-weight: 500;
  font-size: 0.875rem;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.users-nav-btn:hover {
  background: #6d28d9;
  border-color: #6d28d9;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.users-nav-btn:active {
  transform: translateY(0) scale(1);
  box-shadow: 0 2px 4px var(--card-shadow);
}

.users-nav-btn:disabled,
.users-nav-btn[disabled] {
  background: #e5e7eb;
  border-color: #e5e7eb;
  color: #9ca3af;
  cursor: not-allowed;
  opacity: 0.6;
}

.users-page-num {
  min-width: 2em;
  text-align: center;
  font-weight: 500;
  font-size: 0.875rem;
  color: #374151;
  margin: 0;
  /* spacing handled by parent gap */
  display: inline-block;
}



/* HCFA table styles - mirror Problems look but with unique classes */
.hcfa-table-wrapper {
  display: flex;
  flex-direction: column;
  height: calc(100vh - 200px);
  min-height: 500px;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  background: var(--bg-card);
  border: 1px solid #e5e7eb;
}

.hcfa-row {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica', 'Arial', sans-serif;
  font-size: 0.875rem;
  display: grid;
  grid-template-columns: 60px 120px 160px 120px;
  align-items: center;
  gap: 1rem;
  min-height: 48px;
  padding: 0.75rem 1rem;
  color: var(--fc-main);
}

.hcfa-row div:nth-child(2),
.hcfa-row div:nth-child(3),
.hcfa-row div:nth-child(4) {
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
}

.hcfa-table-summary {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica', 'Arial', sans-serif;
  color: #374151;
  font-size: 0.875rem;
  padding: 0.875rem 1rem;
  background: #ffffff;
  border-bottom: 1px solid #e5e7eb;
  font-weight: 500;
  letter-spacing: 0;
}

.layout_header.hcfa-row {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica', 'Arial', sans-serif;
  background: linear-gradient(135deg, #7c3aed 0%, #a855f7 100%);
  border-radius: 8px 8px 0 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  padding: 0.875rem 1rem;
  font-weight: 600;
  color: white;
  transition: all 0.2s ease;
  position: sticky;
  top: 0;
  z-index: 100;
  letter-spacing: 0.025em;
  text-transform: none;
  font-size: 0.875rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.layout_header.hcfa-row div {
  display: flex;
  align-items: center;
  gap: 0.5em;
  justify-content: flex-start;
  text-align: left;
}

.hcfa-table-nav {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica', 'Arial', sans-serif;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.875rem 1rem;
  background: #ffffff;
  border-top: 1px solid #e5e7eb;
  gap: 1rem;
  flex-shrink: 0;
}

.hcfa-table-nav>div:first-child {
  color: var(--fc-main);
  font-weight: 500;
  font-size: 0.875rem;
  min-width: 150px;
}

.darkmode .hcfa-table-nav>div:first-child {
  color: var(--table-fc);
}

.hcfa-table-nav>div:last-child {
  display: flex;
  align-items: center;
  gap: 0.5em;
  margin-left: auto;
}

.hcfa-nav-btn {
  background: #7c3aed;
  color: white;
  border: 1px solid #7c3aed;
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 0.875rem;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  font-weight: 500;
}

.hcfa-nav-btn:hover {
  background: #6d28d9;
  color: white;
  border-color: #6d28d9;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.hcfa-nav-btn:disabled {
  background: #e5e7eb;
  color: #9ca3af;
  border-color: #e5e7eb;
  cursor: not-allowed;
  opacity: 0.6;
  box-shadow: none;
}

.hcfa-table-nav span {
  color: #374151;
  font-weight: 500;
  min-width: 2em;
  text-align: center;
  font-size: 0.875rem;
}

/* EOB table styles - mirror Problems look with unique classes */
.eob-table-wrapper {
  display: flex;
  flex-direction: column;
  height: calc(100vh - 200px);
  min-height: 500px;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  background: var(--bg-card);
  border: 1px solid #e5e7eb;
}

.eob-row {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica', 'Arial', sans-serif;
  font-size: 0.875rem;
  display: grid;
  grid-template-columns: 200px 1fr 1fr 100px;
  align-items: center;
  gap: 1rem;
  min-height: 48px;
  padding: 0.75rem 1rem;
  color: var(--fc-main);
}

.eob-row div:nth-child(2),
.eob-row div:nth-child(3) {
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
}

.eob-table-summary {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica', 'Arial', sans-serif;
  color: #374151;
  font-size: 0.875rem;
  padding: 0.875rem 1rem;
  background: #ffffff;
  border-bottom: 1px solid #e5e7eb;
  font-weight: 500;
  letter-spacing: 0;
}

.layout_header.eob-row {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica', 'Arial', sans-serif;
  background: linear-gradient(135deg, #7c3aed 0%, #a855f7 100%);
  border-radius: 8px 8px 0 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  padding: 0.875rem 1rem;
  font-weight: 600;
  color: white;
  transition: all 0.2s ease;
  position: sticky;
  top: 0;
  z-index: 100;
  letter-spacing: 0.025em;
  text-transform: none;
  font-size: 0.875rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.layout_header.eob-row div {
  display: flex;
  align-items: center;
  gap: 0.5em;
  justify-content: flex-start;
  text-align: left;
}

.eob-table-nav {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica', 'Arial', sans-serif;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.875rem 1rem;
  background: #ffffff;
  border-top: 1px solid #e5e7eb;
  gap: 1rem;
  flex-shrink: 0;
}

.eob-table-nav>div:first-child {
  color: #374151;
  font-weight: 500;
  font-size: 0.875rem;
  min-width: 150px;
}

.eob-table-nav>div:last-child {
  display: flex;
  align-items: center;
  gap: 0.5em;
  margin-left: auto;
}

.eob-nav-btn {
  background: #7c3aed;
  color: white;
  border: 1px solid #7c3aed;
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 0.875rem;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  font-weight: 500;
}

.eob-nav-btn:hover {
  background: #6d28d9;
  color: white;
  border-color: #6d28d9;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.eob-nav-btn:disabled {
  background: #e5e7eb;
  color: #9ca3af;
  border-color: #e5e7eb;
  cursor: not-allowed;
  opacity: 0.6;
  box-shadow: none;
}

.eob-table-nav span {
  color: var(--fc-main);
  font-weight: 500;
  min-width: 2em;
  text-align: center;
  font-size: 0.875rem;
}

.darkmode .eob-table-nav span {
  color: var(--table-fc);
}

.appointments-row {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica', 'Arial', sans-serif;
  font-size: 0.875rem;
  display: grid;
  grid-template-columns: 100px 75px 75px 75px 175px 175px 175px 175px 175px;
  align-items: center;
  gap: 1rem;
  min-height: 48px;
  padding: 0.75rem 1rem;
  color: var(--fc-main);
}

.appointments-row div:nth-child(1),
.appointments-row div:nth-child(9) {
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
}

/* small left padding for first column so data isn't flush to edge */
.appointments-row div:nth-child(1) {
  padding-left: 0.5rem;
}

.layout_header.appointments-row div:first-child {
  padding-left: 0.5rem;
}

.appointments-table-summary {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica', 'Arial', sans-serif;
  color: #374151;
  font-size: 0.875rem;
  padding: 0.875rem 1rem;
  background: #ffffff;
  border-bottom: 1px solid #e5e7eb;
  font-weight: 500;
  letter-spacing: 0;
}

.layout_header.appointments-row {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica', 'Arial', sans-serif;
  background: linear-gradient(135deg, #7c3aed 0%, #a855f7 100%);
  border-radius: 8px 8px 0 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  padding: 0.875rem 1rem;
  font-weight: 600;
  color: white;
  transition: all 0.2s ease;
  position: sticky;
  top: 0;
  z-index: 100;
  letter-spacing: 0.025em;
  text-transform: none;
  font-size: 0.875rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.layout_header.appointments-row div {
  display: flex;
  align-items: center;
  gap: 0.5em;
  justify-content: flex-start;
  text-align: left;
}

.appointments-table-nav {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica', 'Arial', sans-serif;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.875rem 1rem;
  background: #ffffff;
  border-top: 1px solid #e5e7eb;
  gap: 1rem;
  flex-shrink: 0;
}

.appointments-table-nav>div:first-child {
  color: #374151;
  font-weight: 500;
  font-size: 0.875rem;
  min-width: 150px;
}

.appointments-table-nav>div:last-child {
  display: flex;
  align-items: center;
  gap: 0.5em;
  margin-left: auto;
}

.appointments-nav-btn {
  background: #7c3aed;
  color: white;
  border: 1px solid #7c3aed;
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 0.875rem;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  font-weight: 500;
}

.appointments-nav-btn:hover {
  background: #6d28d9;
  color: white;
  border-color: #6d28d9;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.appointments-nav-btn:disabled {
  background: #e5e7eb;
  color: #9ca3af;
  border-color: #e5e7eb;
  cursor: not-allowed;
  opacity: 0.6;
  box-shadow: none;
}

.appointments-table-nav span {
  color: var(--fc-main);
  font-weight: 500;
  min-width: 2em;
  text-align: center;
  font-size: 0.875rem;
}

.darkmode .appointments-table-nav span {
  color: var(--table-fc);
}

/*Allergies table header*/
.allergies-table-wrapper {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica', 'Arial', sans-serif;
  display: flex;
  flex-direction: column;
  height: calc(100vh - 200px);
  min-height: 500px;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  background: var(--bg-card);
  border: 1px solid #e5e7eb;
}

.allergies-table-summary {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica', 'Arial', sans-serif;
  color: #374151;
  font-size: 0.875rem;
  padding: 0.875rem 1rem;
  background: #ffffff;
  border-bottom: 1px solid #e5e7eb;
  font-weight: 500;
  letter-spacing: 0;
}

.allergies-row {
  font-size: 0.875rem;
  display: grid;
  grid-template-columns: 400px 400px 120px 120px;
  align-items: center;
  gap: 1em;
  min-height: 48px;
}

.allergies-row div:nth-child(1),
.allergies-row div:nth-child(2) {
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
}

.allergies-row div:nth-child(3),
.allergies-row div:nth-child(4) {
  text-align: left;
  padding: 0;
}

.allergies-table-wrapper .layout_container {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-width: 800px;
}

.allergies-table-wrapper .layout_header {
  background: linear-gradient(135deg, #7c3aed 0%, #a855f7 100%);
  color: white;
  font-weight: 600;
  padding: 0 16px;
  border-radius: 8px 8px 0 0;
  min-height: 48px;
}

.allergies-table-wrapper .layout_rows_container {
  flex: 1;
  overflow-y: auto;
  background: #ffffff;
}

.darkmode .allergies-table-wrapper .layout_rows_container {
  background: var(--table-bg);
}

.allergies-table-wrapper .rows {
  background: var(--bg-card);
  transition: background-color 0.15s ease;
}

.darkmode .allergies-table-wrapper .rows {
  background: var(--table-row);
}

.allergies-table-wrapper .rows:nth-child(even) {
  background: var(--bg-alt);
}

.darkmode .allergies-table-wrapper .rows:nth-child(even) {
  background: var(--table-row-alt);
}

.allergies-table-wrapper .rows:hover {
  background: var(--bg-hover);
}

.darkmode .allergies-table-wrapper .rows:hover {
  background: var(--table-row-hover);
}

.allergies-table-wrapper .layout_rows_container .allergies-row {
  color: #374151;
  padding: 0 16px;
}

.darkmode .allergies-table-wrapper .layout_rows_container .allergies-row {
  color: var(--table-fc);
}

/* Firefox scrollbar */
.allergies-table-wrapper .layout_rows_container {
  scrollbar-width: auto;
  scrollbar-color: #d1d5db #f9fafb;
}

/* Chrome, Edge, Safari scrollbar */
.allergies-table-wrapper .layout_rows_container::-webkit-scrollbar {
  width: 6px;
}

.allergies-table-wrapper .layout_rows_container::-webkit-scrollbar-track {
  background: #f9fafb;
  border-radius: 3px;
}

.allergies-table-wrapper .layout_rows_container::-webkit-scrollbar-thumb {
  background: #d1d5db;
  border-radius: 3px;
}

.allergies-table-wrapper .layout_rows_container::-webkit-scrollbar-thumb:hover {
  background: #9ca3af;
}

/* Darkmode scrollbar styling for all table row containers */
/* Firefox scrollbar */
.darkmode .layout_rows_container {
  scrollbar-color: var(--table-scroll-thumb) var(--table-scroll-track);
  scrollbar-gutter: stable;
}

/* Firefox hover approximation (Firefox can't style thumb hover directly) */
.darkmode .layout_rows_container:hover {
  scrollbar-color: var(--table-scroll-thumb-hover) var(--table-scroll-track);
}

/* Chrome, Edge, Safari scrollbar */
.darkmode .layout_rows_container::-webkit-scrollbar-track {
  background: var(--table-scroll-track);
  border-radius: 3px;
}

.darkmode .layout_rows_container::-webkit-scrollbar-thumb {
  background: var(--table-scroll-thumb);
  border-radius: 3px;
}

.darkmode .layout_rows_container::-webkit-scrollbar-thumb:hover {
  background: var(--table-scroll-thumb-hover);
}

.allergies-table-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  background: #f9fafb;
  border-top: 1px solid #e5e7eb;
  border-radius: 0 0 8px 8px;
  font-size: 0.875rem;
  color: #374151;
  font-weight: 500;
}

.darkmode .allergies-table-nav {
  background: var(--table-row);
  border-top-color: var(--table-border);
  color: var(--table-fc);
}

.allergies-table-nav>div:last-child {
  display: flex;
  align-items: center;
  gap: 8px;
}

.allergies-nav-btn {
  background: #7c3aed;
  color: white;
  border: none;
  padding: 6px 12px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.875rem;
  transition: background-color 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
}

.allergies-nav-btn:hover:not(:disabled) {
  background: #6d28d9;
}

.allergies-nav-btn:disabled {
  background: #d1d5db;
  cursor: not-allowed;
  opacity: 0.5;
}

.darkmode .allergies-nav-btn {
  background: #a855f7;
}

.darkmode .allergies-nav-btn:hover:not(:disabled) {
  background: #9333ea;
}

.darkmode .allergies-nav-btn:disabled {
  background: #4b5563;
}

.card-body-scroll:has(.allergies-table-wrapper) {
  overflow: visible;
}

/*end allergies table*/

/*immunizations table header*/
.immunizations-table-wrapper {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica', 'Arial', sans-serif;
  display: flex;
  flex-direction: column;
  height: calc(100vh - 200px);
  min-height: 500px;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  background: var(--bg-card);
  border: 1px solid #e5e7eb;
}

.immunizations-table-summary {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica', 'Arial', sans-serif;
  color: #374151;
  font-size: 0.875rem;
  padding: 0.875rem 1rem;
  background: #ffffff;
  border-bottom: 1px solid #e5e7eb;
  font-weight: 500;
  letter-spacing: 0;
}

.immunizations-row {
  font-size: 0.875rem;
  display: grid;
  grid-template-columns: 200px 150px 150px;
  align-items: center;
  gap: 1em;
  min-height: 48px;
}

.immunizations-row div:nth-child(1) {
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
}

.immunizations-table-wrapper .layout_container {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-width: 800px;
}

.immunizations-table-wrapper .layout_header {
  background: linear-gradient(135deg, #7c3aed 0%, #a855f7 100%);
  color: white;
  font-weight: 600;
  padding: 0 16px;
  border-radius: 8px 8px 0 0;
  min-height: 48px;
}

.immunizations-table-wrapper .layout_rows_container {
  flex: 1;
  overflow-y: auto;
  background: var(--bg-card);
}

.darkmode .immunizations-table-wrapper .layout_rows_container {
  background: var(--table-bg);
}

.immunizations-table-wrapper .rows {
  background: var(--bg-card);
  transition: background-color 0.15s ease;
}

.darkmode .immunizations-table-wrapper .rows {
  background: var(--table-row);
}

.immunizations-table-wrapper .rows:nth-child(even) {
  background: var(--bg-alt);
}

.darkmode .immunizations-table-wrapper .rows:nth-child(even) {
  background: var(--table-row-alt);
}

.immunizations-table-wrapper .rows:hover {
  background: var(--bg-hover);
}

.darkmode .immunizations-table-wrapper .rows:hover {
  background: var(--table-row-hover);
}

.immunizations-table-wrapper .layout_rows_container .immunizations-row {
  color: #374151;
  padding: 0 16px;
}

.darkmode .immunizations-table-wrapper .layout_rows_container .immunizations-row {
  color: var(--table-fc);
}

/* Firefox scrollbar */
.immunizations-table-wrapper .layout_rows_container {
  scrollbar-width: auto;
  scrollbar-color: #d1d5db #f9fafb;
}

/* Chrome, Edge, Safari scrollbar */
.immunizations-table-wrapper .layout_rows_container::-webkit-scrollbar {
  width: 6px;
}

.immunizations-table-wrapper .layout_rows_container::-webkit-scrollbar-track {
  background: #f9fafb;
  border-radius: 3px;
}

.immunizations-table-wrapper .layout_rows_container::-webkit-scrollbar-thumb {
  background: #d1d5db;
  border-radius: 3px;
}

.immunizations-table-wrapper .layout_rows_container::-webkit-scrollbar-thumb:hover {
  background: #9ca3af;
}

.immunizations-table-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  background: #f9fafb;
  border-top: 1px solid #e5e7eb;
  border-radius: 0 0 8px 8px;
  font-size: 0.875rem;
  color: #374151;
  font-weight: 500;
}

.darkmode .immunizations-table-nav {
  background: var(--table-row);
  border-top-color: var(--table-border);
  color: var(--table-fc);
}

.immunizations-table-nav>div:last-child {
  display: flex;
  align-items: center;
  gap: 8px;
}

.immunizations-nav-btn {
  background: #7c3aed;
  color: white;
  border: none;
  padding: 6px 12px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.875rem;
  transition: background-color 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
}

.immunizations-nav-btn:hover:not(:disabled) {
  background: #6d28d9;
}

.immunizations-nav-btn:disabled {
  background: #d1d5db;
  cursor: not-allowed;
  opacity: 0.5;
}

.darkmode .immunizations-nav-btn {
  background: #a855f7;
}

.darkmode .immunizations-nav-btn:hover:not(:disabled) {
  background: #9333ea;
}

.darkmode .immunizations-nav-btn:disabled {
  background: #4b5563;
}

.card-body-scroll:has(.immunizations-table-wrapper) {
  overflow: visible;
}

/*end immunizations table*/

/*directives table header*/
.directives-table-wrapper {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica', 'Arial', sans-serif;
  display: flex;
  flex-direction: column;
  height: calc(100vh - 200px);
  min-height: 500px;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  background: var(--bg-card);
  border: 1px solid #e5e7eb;
}

.directives-table-summary {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica', 'Arial', sans-serif;
  color: #374151;
  font-size: 0.875rem;
  padding: 0.875rem 1rem;
  background: #ffffff;
  border-bottom: 1px solid #e5e7eb;
  font-weight: 500;
  letter-spacing: 0;
}

.directives-row {
  font-size: 0.875rem;
  display: grid;
  grid-template-columns: 300px 150px 120px 120px;
  align-items: center;
  gap: 1em;
  min-height: 48px;
}

.directives-row div:nth-child(3),
.directives-row div:nth-child(4) {
  text-align: left;
  padding: 0;
}

.directives-table-wrapper .layout_container {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-width: 800px;
}

.directives-table-wrapper .layout_header {
  background: linear-gradient(135deg, #7c3aed 0%, #a855f7 100%);
  color: white;
  font-weight: 600;
  padding: 0 16px;
  border-radius: 8px 8px 0 0;
  min-height: 48px;
}

.directives-table-wrapper .layout_rows_container {
  flex: 1;
  overflow-y: auto;
  background: var(--bg-card);
}

.darkmode .directives-table-wrapper .layout_rows_container {
  background: var(--table-bg);
}

.directives-table-wrapper .rows {
  background: var(--bg-card);
  transition: background-color 0.15s ease;
}

.darkmode .directives-table-wrapper .rows {
  background: var(--table-row);
}

.directives-table-wrapper .rows:nth-child(even) {
  background: var(--bg-alt);
}

.darkmode .directives-table-wrapper .rows:nth-child(even) {
  background: var(--table-row-alt);
}

.directives-table-wrapper .rows:hover {
  background: var(--bg-hover);
}

.darkmode .directives-table-wrapper .rows:hover {
  background: var(--table-row-hover);
}

.directives-table-wrapper .layout_rows_container .directives-row {
  color: #374151;
  padding: 0 16px;
}

.darkmode .directives-table-wrapper .layout_rows_container .directives-row {
  color: var(--table-fc);
}

/* Firefox scrollbar */
.directives-table-wrapper .layout_rows_container {
  scrollbar-width: auto;
  scrollbar-color: #d1d5db #f9fafb;
}

/* Chrome, Edge, Safari scrollbar */
.directives-table-wrapper .layout_rows_container::-webkit-scrollbar {
  width: 6px;
}

.directives-table-wrapper .layout_rows_container::-webkit-scrollbar-track {
  background: #f9fafb;
  border-radius: 3px;
}

.directives-table-wrapper .layout_rows_container::-webkit-scrollbar-thumb {
  background: #d1d5db;
  border-radius: 3px;
}

.directives-table-wrapper .layout_rows_container::-webkit-scrollbar-thumb:hover {
  background: #9ca3af;
}

.directives-table-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  background: #f9fafb;
  border-top: 1px solid #e5e7eb;
  border-radius: 0 0 8px 8px;
  font-size: 0.875rem;
  color: #374151;
  font-weight: 500;
}

.darkmode .directives-table-nav {
  background: var(--table-row);
  border-top-color: var(--table-border);
  color: var(--table-fc);
}

.directives-table-nav>div:last-child {
  display: flex;
  align-items: center;
  gap: 8px;
}

.directives-nav-btn {
  background: #7c3aed;
  color: white;
  border: none;
  padding: 6px 12px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.875rem;
  transition: background-color 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
}

.directives-nav-btn:hover:not(:disabled) {
  background: #6d28d9;
}

.directives-nav-btn:disabled {
  background: #d1d5db;
  cursor: not-allowed;
  opacity: 0.5;
}

.darkmode .directives-nav-btn {
  background: #a855f7;
}

.darkmode .directives-nav-btn:hover:not(:disabled) {
  background: #9333ea;
}

.darkmode .directives-nav-btn:disabled {
  background: #4b5563;
}

.card-body-scroll:has(.directives-table-wrapper) {
  overflow: visible;
}

/*end directives table*/

/*Histories Table*/
.histories-table-wrapper {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica', 'Arial', sans-serif;
  display: flex;
  flex-direction: column;
  height: calc(100vh - 200px);
  min-height: 500px;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  background: var(--bg-card);
  border: 1px solid #e5e7eb;
}

.histories-table-summary {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica', 'Arial', sans-serif;
  color: #374151;
  font-size: 0.875rem;
  padding: 0.875rem 1rem;
  background: #ffffff;
  border-bottom: 1px solid #e5e7eb;
  font-weight: 500;
  letter-spacing: 0;
}

.histories-table-wrapper .layout_container {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-width: 800px;
}

.histories-table-wrapper .layout_header {
  background: linear-gradient(135deg, #7c3aed 0%, #a855f7 100%);
  color: white;
  font-weight: 600;
  padding: 0 16px;
  border-radius: 8px 8px 0 0;
  min-height: 48px;
}

.histories-table-wrapper .layout_rows_container {
  flex: 1;
  overflow-y: auto;
  background: var(--bg-card);
}

.darkmode .histories-table-wrapper .layout_rows_container {
  background: var(--table-bg);
}

.histories-table-wrapper .rows {
  background: var(--bg-card);
  transition: background-color 0.15s ease;
}

.darkmode .histories-table-wrapper .rows {
  background: var(--table-row);
}

.histories-table-wrapper .rows:nth-child(even) {
  background: var(--bg-alt);
}

.darkmode .histories-table-wrapper .rows:nth-child(even) {
  background: var(--table-row-alt);
}

.histories-table-wrapper .rows:hover {
  background: var(--bg-hover);
}

.darkmode .histories-table-wrapper .rows:hover {
  background: var(--table-row-hover);
}

.histories-table-wrapper .layout_rows_container .histories-row {
  color: #374151;
  padding: 0 16px;
}

.darkmode .histories-table-wrapper .layout_rows_container .histories-row {
  color: var(--table-fc);
}

/* Firefox scrollbar */
.histories-table-wrapper .layout_rows_container {
  scrollbar-width: auto;
  scrollbar-color: #d1d5db #f9fafb;
}

/* Chrome, Edge, Safari scrollbar */
.histories-table-wrapper .layout_rows_container::-webkit-scrollbar {
  width: 6px;
}

.histories-table-wrapper .layout_rows_container::-webkit-scrollbar-track {
  background: #f9fafb;
  border-radius: 3px;
}

.histories-table-wrapper .layout_rows_container::-webkit-scrollbar-thumb {
  background: #d1d5db;
  border-radius: 3px;
}

.histories-table-wrapper .layout_rows_container::-webkit-scrollbar-thumb:hover {
  background: #9ca3af;
}

.histories-table-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  background: #f9fafb;
  border-top: 1px solid #e5e7eb;
  border-radius: 0 0 8px 8px;
  font-size: 0.875rem;
  color: #374151;
  font-weight: 500;
}

.darkmode .histories-table-nav {
  background: var(--table-row);
  border-top-color: var(--table-border);
  color: var(--table-fc);
}

.histories-table-nav>div:last-child {
  display: flex;
  align-items: center;
  gap: 8px;
}

.histories-nav-btn {
  background: #7c3aed;
  color: white;
  border: none;
  padding: 6px 12px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.875rem;
  transition: background-color 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
}

.histories-nav-btn:hover:not(:disabled) {
  background: #6d28d9;
}

.histories-nav-btn:disabled {
  background: #d1d5db;
  cursor: not-allowed;
  opacity: 0.5;
}

.darkmode .histories-nav-btn {
  background: #a855f7;
}

.darkmode .histories-nav-btn:hover:not(:disabled) {
  background: #9333ea;
}

.darkmode .histories-nav-btn:disabled {
  background: #4b5563;
}

.card-body-scroll:has(.histories-table-wrapper) {
  overflow: visible;
}

/*end histories table*/

/*Observations page*/
/*obs table header*/
.flowsheet-table-wrapper {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica', 'Arial', sans-serif;
  display: flex;
  flex-direction: column;
  height: calc(100vh - 200px);
  min-height: 500px;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  background: var(--bg-card);
  border: 1px solid #e5e7eb;
}

.flowsheet-table-summary {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica', 'Arial', sans-serif;
  color: #374151;
  font-size: 0.875rem;
  padding: 0.875rem 1rem;
  background: #ffffff;
  border-bottom: 1px solid #e5e7eb;
  font-weight: 500;
  letter-spacing: 0;
}

.observations-row {
  font-size: 0.875rem;
  display: grid;
  grid-template-columns: minmax(150px, 200px) repeat(6, minmax(100px, 200px));
  align-items: center;
  gap: 1em;
  min-height: 48px;
  width: 100%;
}

.flowsheet-table-wrapper .layout_container {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-width: 800px;
}

.flowsheet-table-wrapper .layout_header {
  background: linear-gradient(135deg, #7c3aed 0%, #a855f7 100%);
  color: white;
  font-weight: 600;
  padding: 0 16px;
  border-radius: 8px 8px 0 0;
  min-height: 48px;
}

.flowsheet-table-wrapper .layout_rows_container {
  flex: 1;
  overflow-y: auto;
  background: #ffffff;
}

.darkmode .flowsheet-table-wrapper .layout_rows_container {
  background: var(--table-bg);
}

.flowsheet-table-wrapper .rows {
  background: #ffffff;
  transition: background-color 0.15s ease;
}

.darkmode .flowsheet-table-wrapper .rows {
  background: var(--table-row);
}

.flowsheet-table-wrapper .rows:nth-child(even) {
  background: #f9fafb;
}

.darkmode .flowsheet-table-wrapper .rows:nth-child(even) {
  background: var(--table-row-alt);
}

.flowsheet-table-wrapper .rows:hover {
  background: #f3f4f6;
}

.darkmode .flowsheet-table-wrapper .rows:hover {
  background: var(--table-row-hover);
}

.flowsheet-table-wrapper .layout_rows_container .observations-row {
  color: #374151;
  padding: 0 16px;
}

.darkmode .flowsheet-table-wrapper .layout_rows_container .observations-row {
  color: var(--table-fc);
}

/* Firefox scrollbar */
.flowsheet-table-wrapper .layout_rows_container {
  scrollbar-width: auto;
  scrollbar-color: #d1d5db #f9fafb;
}

/* Chrome, Edge, Safari scrollbar */
.flowsheet-table-wrapper .layout_rows_container::-webkit-scrollbar {
  width: 6px;
}

.flowsheet-table-wrapper .layout_rows_container::-webkit-scrollbar-track {
  background: #f9fafb;
  border-radius: 3px;
}

.flowsheet-table-wrapper .layout_rows_container::-webkit-scrollbar-thumb {
  background: #d1d5db;
  border-radius: 3px;
}

.flowsheet-table-wrapper .layout_rows_container::-webkit-scrollbar-thumb:hover {
  background: #9ca3af;
}

.flowsheet-table-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  background: #f9fafb;
  border-top: 1px solid #e5e7eb;
  border-radius: 0 0 8px 8px;
  font-size: 0.875rem;
  color: #374151;
  font-weight: 500;
}

.darkmode .flowsheet-table-nav {
  background: var(--table-row);
  border-top-color: var(--table-border);
  color: var(--table-fc);
}

.flowsheet-table-nav>div:last-child {
  display: flex;
  align-items: center;
  gap: 8px;
}

.flowsheet-nav-btn {
  background: #7c3aed;
  color: white;
  border: none;
  padding: 6px 12px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.875rem;
  transition: background-color 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
}

.flowsheet-nav-btn:hover:not(:disabled) {
  background: #6d28d9;
}

.flowsheet-nav-btn:disabled {
  background: #d1d5db;
  cursor: not-allowed;
  opacity: 0.5;
}

.darkmode .flowsheet-nav-btn {
  background: #a855f7;
}

.darkmode .flowsheet-nav-btn:hover:not(:disabled) {
  background: #9333ea;
}

.darkmode .flowsheet-nav-btn:disabled {
  background: #4b5563;
}

.card-body-scroll:has(.flowsheet-table-wrapper) {
  overflow: visible;
}

.obsvalcontainer {
  display: flex;
  padding: 5px 5px 5px .25em;
}

.obsvalcontainer:hover {
  background-color: var(--bg-main);
  color: var(--fc-alt);
  border-radius: 6px;
}

.obsvalcontainer div:first-child() {
  align-self: flex-start;
}

.obsvalcontainer div:last-child() {
  align-self: flex-end;
}

.obsval {
  width: 200px;
  height: 100%;
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
}

/*end observations*/

/*Histories filter table*/
.histories-row {
  font-size: var(--fs-100);
  display: grid;
  grid-template-columns: 300px 150px 200px;
  align-items: center;
  gap: 1em;
  min-height: 35px;
}

.histories-row div:nth-child(3) {
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
}

/*end histories table*/

/*Family History Table*/
.familyhistory-table-wrapper {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica', 'Arial', sans-serif;
  display: flex;
  flex-direction: column;
  height: calc(100vh - 200px);
  min-height: 500px;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  background: var(--bg-card);
  border: 1px solid #e5e7eb;
}

.familyhistory-table-summary {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica', 'Arial', sans-serif;
  color: #374151;
  font-size: 0.875rem;
  padding: 0.875rem 1rem;
  background: #ffffff;
  border-bottom: 1px solid #e5e7eb;
  font-weight: 500;
  letter-spacing: 0;
}

.familyhistory-table-wrapper .layout_container {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-width: 800px;
}

.familyhistory-table-wrapper .layout_header {
  background: linear-gradient(135deg, #7c3aed 0%, #a855f7 100%);
  color: white;
  font-weight: 600;
  padding: 0 16px;
  border-radius: 8px 8px 0 0;
  min-height: 48px;
}

.familyhistory-table-wrapper .layout_rows_container {
  flex: 1;
  overflow-y: auto;
  background: var(--bg-card);
}

.darkmode .familyhistory-table-wrapper .layout_rows_container {
  background: var(--table-bg);
}

.familyhistory-table-wrapper .rows {
  background: var(--bg-card);
  transition: background-color 0.15s ease;
}

.darkmode .familyhistory-table-wrapper .rows {
  background: var(--table-row);
}

.familyhistory-table-wrapper .rows:nth-child(even) {
  background: var(--bg-alt);
}

.darkmode .familyhistory-table-wrapper .rows:nth-child(even) {
  background: var(--table-row-alt);
}

.familyhistory-table-wrapper .rows:hover {
  background: var(--bg-hover);
}

.darkmode .familyhistory-table-wrapper .rows:hover {
  background: var(--table-row-hover);
}

.familyhistory-table-wrapper .layout_rows_container .familyhistory-row {
  color: #374151;
  padding: 0 16px;
}

.darkmode .familyhistory-table-wrapper .layout_rows_container .familyhistory-row {
  color: var(--table-fc);
}

/* Firefox scrollbar */
.familyhistory-table-wrapper .layout_rows_container {
  scrollbar-width: auto;
  scrollbar-color: #d1d5db #f9fafb;
}

/* Chrome, Edge, Safari scrollbar */
.familyhistory-table-wrapper .layout_rows_container::-webkit-scrollbar {
  width: 6px;
}

.familyhistory-table-wrapper .layout_rows_container::-webkit-scrollbar-track {
  background: #f9fafb;
  border-radius: 3px;
}

.familyhistory-table-wrapper .layout_rows_container::-webkit-scrollbar-thumb {
  background: #d1d5db;
  border-radius: 3px;
}

.familyhistory-table-wrapper .layout_rows_container::-webkit-scrollbar-thumb:hover {
  background: #9ca3af;
}

.familyhistory-table-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  background: #f9fafb;
  border-top: 1px solid #e5e7eb;
  border-radius: 0 0 8px 8px;
  font-size: 0.875rem;
  color: #374151;
  font-weight: 500;
}

.darkmode .familyhistory-table-nav {
  background: var(--table-row);
  border-top-color: var(--table-border);
  color: var(--table-fc);
}

.familyhistory-table-nav>div:last-child {
  display: flex;
  align-items: center;
  gap: 8px;
}

.familyhistory-nav-btn {
  background: #7c3aed;
  color: white;
  border: none;
  padding: 6px 12px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.875rem;
  transition: background-color 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
}

.familyhistory-nav-btn:hover:not(:disabled) {
  background: #6d28d9;
}

.familyhistory-nav-btn:disabled {
  background: #d1d5db;
  cursor: not-allowed;
  opacity: 0.5;
}

.darkmode .familyhistory-nav-btn {
  background: #a855f7;
}

.darkmode .familyhistory-nav-btn:hover:not(:disabled) {
  background: #9333ea;
}

.darkmode .familyhistory-nav-btn:disabled {
  background: #4b5563;
}

.card-body-scroll:has(.familyhistory-table-wrapper) {
  overflow: visible;
}

/*end family history table*/

/*family histories table - old grid definition*/
.familyhistory-row {
  font-size: var(--fs-100);
  display: grid;
  grid-template-columns: minmax(150px, 300px) minmax(100px, 150px) minmax(150px, 250px) minmax(150px, 250px) minmax(50px, 75px) minmax(120px, 200px) minmax(120px, 170px);
  align-items: center;
  gap: 1em;
  min-height: 35px;

}

.familyhistory-row div:nth-child(1),
.familyhistory-row div:nth-child(3),
.familyhistory-row div:nth-child(4),
.familyhistory-row div:nth-child(6) {
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
}

/*end family histories table*/

/*Documents Table*/
.documents-table-wrapper {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica', 'Arial', sans-serif;
  display: flex;
  flex-direction: column;
  height: calc(100vh - 200px);
  min-height: 500px;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  background: var(--bg-card);
  border: 1px solid #e5e7eb;
}

.documents-table-summary {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica', 'Arial', sans-serif;
  color: #374151;
  font-size: 0.875rem;
  padding: 0.875rem 1rem;
  background: #ffffff;
  border-bottom: 1px solid #e5e7eb;
  font-weight: 500;
  letter-spacing: 0;
}

.documents-table-wrapper .layout_container {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-width: 800px;
}

.documents-table-wrapper .layout_header {
  background: linear-gradient(135deg, #7c3aed 0%, #a855f7 100%);
  color: white;
  font-weight: 600;
  padding: 0 16px;
  border-radius: 8px 8px 0 0;
  min-height: 48px;
}

.documents-table-wrapper .layout_rows_container {
  flex: 1;
  overflow-y: auto;
  background: var(--bg-card);
}

.darkmode .documents-table-wrapper .layout_rows_container {
  background: var(--table-bg);
}

.documents-table-wrapper .rows {
  background: var(--bg-card);
  transition: background-color 0.15s ease;
}

.darkmode .documents-table-wrapper .rows {
  background: var(--table-row);
}

.documents-table-wrapper .rows:nth-child(even) {
  background: var(--bg-alt);
}

.darkmode .documents-table-wrapper .rows:nth-child(even) {
  background: var(--table-row-alt);
}

.documents-table-wrapper .rows:hover {
  background: var(--bg-hover);
}

.darkmode .documents-table-wrapper .rows:hover {
  background: var(--table-row-hover);
}

.documents-table-wrapper .layout_rows_container .documents-row {
  color: #374151;
  padding: 0 16px;
}

.darkmode .documents-table-wrapper .layout_rows_container .documents-row {
  color: var(--table-fc);
}

/* Firefox scrollbar */
.documents-table-wrapper .layout_rows_container {
  scrollbar-width: auto;
  scrollbar-color: #d1d5db #f9fafb;
}

/* Chrome, Edge, Safari scrollbar */
.documents-table-wrapper .layout_rows_container::-webkit-scrollbar {
  width: 6px;
}

.documents-table-wrapper .layout_rows_container::-webkit-scrollbar-track {
  background: #f9fafb;
  border-radius: 3px;
}

.documents-table-wrapper .layout_rows_container::-webkit-scrollbar-thumb {
  background: #d1d5db;
  border-radius: 3px;
}

.documents-table-wrapper .layout_rows_container::-webkit-scrollbar-thumb:hover {
  background: #9ca3af;
}

.documents-table-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  background: #f9fafb;
  border-top: 1px solid #e5e7eb;
  border-radius: 0 0 8px 8px;
  font-size: 0.875rem;
  color: #374151;
  font-weight: 500;
}

.darkmode .documents-table-nav {
  background: var(--table-row);
  border-top-color: var(--table-border);
  color: var(--table-fc);
}

.documents-table-nav>div:last-child {
  display: flex;
  align-items: center;
  gap: 8px;
}

.table-nav-center {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
}

.table-nav-center .RecsPerPage {
  margin: 0;
  padding: 0;
}

.documents-nav-btn {
  background: #7c3aed;
  color: white;
  border: none;
  padding: 6px 12px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.875rem;
  transition: background-color 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
}

.documents-nav-btn:hover:not(:disabled) {
  background: #6d28d9;
}

.documents-nav-btn:disabled {
  background: #d1d5db;
  cursor: not-allowed;
  opacity: 0.5;
}

.darkmode .documents-nav-btn {
  background: #a855f7;
}

.darkmode .documents-nav-btn:hover:not(:disabled) {
  background: #9333ea;
}

.darkmode .documents-nav-btn:disabled {
  background: #4b5563;
}

.card-body-scroll:has(.documents-table-wrapper) {
  overflow: visible;
}

/*end documents table*/

/*orders table wrapper*/
.orders-table-wrapper {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica', 'Arial', sans-serif;
  display: flex;
  flex-direction: column;
  height: calc(100vh - 200px);
  min-height: 500px;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  background: var(--bg-card);
  border: 1px solid #e5e7eb;
}

.orders-table-summary {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica', 'Arial', sans-serif;
  color: #374151;
  font-size: 0.875rem;
  padding: 0.875rem 1rem;
  background: #ffffff;
  border-bottom: 1px solid #e5e7eb;
  font-weight: 500;
  letter-spacing: 0;
}

.orders-table-wrapper .layout_container {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-width: 800px;
}

.orders-table-wrapper .layout_header {
  background: linear-gradient(135deg, #7c3aed 0%, #a855f7 100%);
  color: white;
  font-weight: 600;
  padding: 0 16px;
  border-radius: 8px 8px 0 0;
  min-height: 48px;
}

.orders-table-wrapper .layout_rows_container {
  flex: 1;
  overflow-y: auto;
  background: var(--bg-card);
}

.darkmode .orders-table-wrapper .layout_rows_container {
  background: var(--table-bg);
}

.orders-table-wrapper .rows {
  background: var(--bg-card);
  transition: background-color 0.15s ease;
}

.darkmode .orders-table-wrapper .rows {
  background: var(--table-row);
}

.orders-table-wrapper .rows:nth-child(even) {
  background: var(--bg-alt);
}

.darkmode .orders-table-wrapper .rows:nth-child(even) {
  background: var(--table-row-alt);
}

.orders-table-wrapper .rows:hover {
  background: var(--bg-hover);
}

.darkmode .orders-table-wrapper .rows:hover {
  background: var(--table-row-hover);
}

.orders-table-wrapper .layout_rows_container .orders-row {
  color: #374151;
  padding: 0 16px;
}

.darkmode .orders-table-wrapper .layout_rows_container .orders-row {
  color: var(--table-fc);
}

/* Firefox scrollbar */
.orders-table-wrapper .layout_rows_container {
  scrollbar-width: auto;
  scrollbar-color: #d1d5db #f9fafb;
}

/* Chrome, Edge, Safari scrollbar */
.orders-table-wrapper .layout_rows_container::-webkit-scrollbar {
  width: 6px;
}

.orders-table-wrapper .layout_rows_container::-webkit-scrollbar-track {
  background: #f9fafb;
  border-radius: 3px;
}

.orders-table-wrapper .layout_rows_container::-webkit-scrollbar-thumb {
  background: #d1d5db;
  border-radius: 3px;
}

.orders-table-wrapper .layout_rows_container::-webkit-scrollbar-thumb:hover {
  background: #9ca3af;
}

.orders-table-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  background: #f9fafb;
  border-top: 1px solid #e5e7eb;
  border-radius: 0 0 8px 8px;
  font-size: 0.875rem;
  color: #374151;
  font-weight: 500;
}

.darkmode .orders-table-nav {
  background: var(--table-row);
  border-top-color: var(--table-border);
  color: var(--table-fc);
}

.orders-table-nav>div:last-child {
  display: flex;
  align-items: center;
  gap: 8px;
}

.orders-nav-btn {
  background: #7c3aed;
  color: white;
  border: none;
  padding: 6px 12px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.875rem;
  transition: background-color 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
}

.orders-nav-btn:hover:not(:disabled) {
  background: #6d28d9;
}

.orders-nav-btn:disabled {
  background: #d1d5db;
  cursor: not-allowed;
  opacity: 0.5;
}

.darkmode .orders-nav-btn {
  background: #a855f7;
}

.darkmode .orders-nav-btn:hover:not(:disabled) {
  background: #9333ea;
}

.darkmode .orders-nav-btn:disabled {
  background: #4b5563;
}

.card-body-scroll:has(.orders-table-wrapper) {
  overflow: visible;
}

/*end orders table*/

/*billing table wrapper*/
.billing-table-wrapper {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica', 'Arial', sans-serif;
  display: flex;
  flex-direction: column;
  height: calc(100vh - 200px);
  min-height: 500px;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  background: var(--bg-card);
  border: 1px solid #e5e7eb;
}

.billing-table-summary {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica', 'Arial', sans-serif;
  color: #374151;
  font-size: 0.875rem;
  padding: 0.875rem 1rem;
  background: #ffffff;
  border-bottom: 1px solid #e5e7eb;
  font-weight: 500;
  letter-spacing: 0;
}

.billing-table-wrapper .layout_container {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-width: 800px;
}

.billing-table-wrapper .layout_header {
  background: linear-gradient(135deg, #7c3aed 0%, #a855f7 100%);
  color: white;
  font-weight: 600;
  padding: 0 16px;
  border-radius: 8px 8px 0 0;
  min-height: 48px;
}

.billing-table-wrapper .layout_rows_container {
  flex: 1;
  overflow-y: auto;
  background: #ffffff;
}

.darkmode .billing-table-wrapper .layout_rows_container {
  background: var(--table-bg);
}

.billing-table-wrapper .rows {
  background: #ffffff;
  transition: background-color 0.15s ease;
}

.darkmode .billing-table-wrapper .rows {
  background: var(--table-row);
}

.billing-table-wrapper .rows:nth-child(even) {
  background: #f9fafb;
}

.darkmode .billing-table-wrapper .rows:nth-child(even) {
  background: var(--table-row-alt);
}

.billing-table-wrapper .rows:hover {
  background: #f3f4f6;
}

.darkmode .billing-table-wrapper .rows:hover {
  background: var(--table-row-hover);
}

.billing-table-wrapper .layout_rows_container .billing-row {
  color: #374151;
  padding: 0 16px;
}

.darkmode .billing-table-wrapper .layout_rows_container .billing-row {
  color: var(--table-fc);
}

/* Firefox scrollbar */
.billing-table-wrapper .layout_rows_container {
  scrollbar-width: auto;
  scrollbar-color: #d1d5db #f9fafb;
}

/* Chrome, Edge, Safari scrollbar */
.billing-table-wrapper .layout_rows_container::-webkit-scrollbar {
  width: 6px;
}

.billing-table-wrapper .layout_rows_container::-webkit-scrollbar-track {
  background: #f9fafb;
  border-radius: 3px;
}

.billing-table-wrapper .layout_rows_container::-webkit-scrollbar-thumb {
  background: #d1d5db;
  border-radius: 3px;
}

.billing-table-wrapper .layout_rows_container::-webkit-scrollbar-thumb:hover {
  background: #9ca3af;
}

.billing-table-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  background: #f9fafb;
  border-top: 1px solid #e5e7eb;
  border-radius: 0 0 8px 8px;
  font-size: 0.875rem;
  color: #374151;
  font-weight: 500;
}

.darkmode .billing-table-nav {
  background: var(--table-row);
  border-top-color: var(--table-border);
  color: var(--table-fc);
}

/* Generic fallback for table navs that don't have an explicit darkmode block */
.darkmode .problems-table-nav,
.darkmode .users-table-nav,
.darkmode .audit-table-nav,
.darkmode .hcfa-table-nav,
.darkmode .eob-table-nav,
.darkmode .appointments-table-nav,
.darkmode .alerts-table-nav,
.darkmode .meds-table-nav,
.darkmode .dental-table-nav {
  background: var(--table-row);
  border-top-color: var(--table-border);
  color: var(--table-fc);
}

.billing-table-nav>div:last-child {
  display: flex;
  align-items: center;
  gap: 8px;
}

.billing-nav-btn {
  background: #7c3aed;
  color: white;
  border: none;
  padding: 6px 12px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.875rem;
  transition: background-color 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
}

.billing-nav-btn:hover:not(:disabled) {
  background: #6d28d9;
}

.billing-nav-btn:disabled {
  background: #d1d5db;
  cursor: not-allowed;
  opacity: 0.5;
}

.darkmode .billing-nav-btn {
  background: #a855f7;
}

.darkmode .billing-nav-btn:hover:not(:disabled) {
  background: #9333ea;
}

.darkmode .billing-nav-btn:disabled {
  background: #4b5563;
}

.card-body-scroll:has(.billing-table-wrapper) {
  overflow: visible;
}

/*end billing table*/

/*Documents page - old grid definition*/
/*documents table header*/
.documents-row {
  font-size: var(--fs-100);
  display: grid;
  grid-template-columns: 25px minmax(120px, 200px) minmax(120px, 200px) minmax(120px, 200px) minmax(100px, 150px) minmax(100px, 150px) minmax(120px, 200px);
  align-items: center;
  gap: 1em;
  min-height: 35px;

}

.documents-row div:nth-child(1) {
  display: flex;
  justify-content: center;
  align-items: center;
}

.documents-row div:nth-child(3),
.documents-row div:nth-child(4),
.documents-row div:nth-child(5) {
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
}

/*end Documents*/

/*Lab Order page*/
/*laborders table header*/
.orders-row {
  font-size: var(--fs-100);
  display: grid;
  grid-template-columns: 25px minmax(100px, 150px) minmax(60px, 75px) minmax(200px, 300px) minmax(150px, 200px) minmax(120px, 150px) minmax(60px, 75px);
  align-items: center;
  gap: 1em;
  min-height: 35px;
}

.orders-row div:nth-child(4),
.orders-row div:nth-child(5) {
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
}

/*end Lab Order*/

/*users table header*/
.users-row {
  font-size: var(--fs-100);
  display: grid;
  grid-template-columns: 25px 25px 200px 200px 400px 200px;
  align-items: center;
  gap: 1em;
  height: 35px;
}

.UserActiveSwitchStyle {
  position: relative;
  margin-bottom: 10px;
}

.usertableheader {
  padding-bottom: 0;
  margin-bottom: 0;
}

.usertableheader tr td:nth-child(1) {
  width: 25px;
}

.usertableheader tr td:nth-child(2) {
  width: 25px;
}

.usertableheader tr td:nth-child(3) {
  width: 200px;
}

.usertableheader tr td:nth-child(4) {
  width: 200px;
}

.usertableheader tr td:nth-child(5) {
  width: 150px;
}

.usertableheader tr td:nth-child(6) {
  width: 150px;
}

/*users table*/
.usertable {
  padding-top: 0;
  margin-top: 0;
}

.usertable tr td:nth-child(1) {
  width: 25px;
}

.usertable tr td:nth-child(2) {
  width: 25px;
}

.usertable tr td:nth-child(3) {
  width: 200px;
}

.usertable tr td:nth-child(4) {
  width: 200px;
}

.usertable tr td:nth-child(5) {
  width: 150px;
}

.usertable tr td:nth-child(6) {
  width: 150px;
}

/*End Users Table*/
/*userupdates table*/
.userupdatetable {
  margin-left: 5%;
  margin-top: 5%;
  color: var(--fc-main);
}

.userupdatetable tr td:nth-child(1) {
  text-align: right;
  width: 200px;
}

.userupdatetable tr td:nth-child(2) {
  width: 400px;
}

.passwordcaption {
  font-size: 20px;
  ;
  width: 400px;
  margin-left: 18%;
  color: var(--fc-main);
}

.useradmintable {
  margin-left: 5%;
  color: var(--fc-main);
}

.useradmintable tr td:nth-child(1) {
  text-align: right;
  width: 200px;
  padding-right: 5px;
}

.useradmintable tr td:nth-child(2) {
  width: 400px;
  vertical-align: center;
}

.usersavebuttons {
  margin-left: 350px;
  width: 300px;
  color: var(--fc-main);
}

.usersavebuttons tr td:nth-child(1) {
  width: 150px;
  padding-right: 5px;
}

.usersavebuttons tr td:nth-child(2) {
  width: 150px;
}

.savepanel {
  clear: both;
}

.savepanel div input {
  color: var(--fc-main);
}

.savepanelcolor {
  color: var(--fc-main);
}

.savepanel div:nth-child(1) {
  float: left;
  margin-left: 35%;
}

.savepanel div:nth-child(2) {
  float: left;
}

.savepanel div:nth-child(1) input {
  border: none;
  background-color: var(--bga-main);
  cursor: pointer
}

.savepanel div:nth-child(2) input {
  border: none;
  background-color: var(--bga-main);
  cursor: pointer
}

.usererrorpanel {
  padding-left: 0;
  clear: both;
  margin-left: 600px;
}

.usererrorpanel div {
  color: var(--fc-alt);
  background-color: rgba(223, 100, 100, 0.60);
  padding: 0;
  margin: 0;
  width: 300px;
}

/*End userupdates Table*/

/*Audit Style*/
.audit-table-wrapper {
  display: flex;
  flex-direction: column;
  height: calc(100vh - 200px);
  min-height: 420px;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  background: var(--bg-card);
  border: 1px solid #e5e7eb;
}

.audit-table-summary {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica', 'Arial', sans-serif;
  color: #374151;
  font-size: 0.875rem;
  padding: 0.875rem 1rem;
  background: #ffffff;
  border-bottom: 1px solid #e5e7eb;
  font-weight: 500;
}

.layout_header.audit-row {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica', 'Arial', sans-serif;
  background: linear-gradient(135deg, #7c3aed 0%, #a855f7 100%);
  border-radius: 8px 8px 0 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  padding: 0.875rem 1rem;
  font-weight: 600;
  color: white;
  position: sticky;
  top: 0;
  z-index: 100;
  letter-spacing: 0.025em;
  text-transform: none;
  font-size: 0.875rem;
  transition: all 0.2s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.layout_header.audit-row div {
  display: flex;
  align-items: center;
  gap: 0.5em;
}

.audit-row {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica', 'Arial', sans-serif;
  font-size: 0.875rem;
  display: grid;
  grid-template-columns: 200px 600px;
  align-items: center;
  gap: 1em;
  padding: 0.875rem 1rem;
  min-height: 48px;
  color: var(--fc-main);
}

.AuditFilterStyle {
  text-align: center;
  display: block;
  color: var(--fc-main);
}

.AuditFilterStyle div {
  text-align: center;
  display: block;
  margin: auto
}

.AuditFilterStyle div table {
  margin: auto;
}

.AuditFilterStyle div table tr td:nth-child(1) select {
  width: 250px;
  height: 35px;
}

.AuditFilterStyle div table tr td:nth-child(1) input {
  width: 250px;
  height: 35px;
  display: block;
  margin: auto;
}

.AuditFilterSubmitStyle {
  color: var(--fc-main);
  border: none;
  background-color: var(--bga-main);
  cursor: pointer
}

.AuditFilterPatSearch {
  margin: auto;
  display: block;
}

.AuditError {
  display: none;
  color: red
}

#auditpatlist {
  z-index: 1;
  width: 100%;
  height: 500px;
  background-color: transparent;
  margin: 10px 0 0 0;
  text-align: left;
  overflow: hidden;
}

#auditpatlist a {
  color: var(--fc-main);
}

.AuditDataStyle {
  height: 70vh;
  overflow: auto;
  padding-top: 0;
  margin-top: 0;
  margin-right: 0;

}

.auditformstyle {
  height: 600px;
  width: 90%;
  margin-left: 5%;
}

.auditpatientdivstyle {
  height: 800px;
  width: 90%;
  margin-left: 5%;
}

.auditpatientdivstyleheader {
  text-align: center;
}

/*Navigation Filter styling*/
.navlink {
  cursor: pointer;
  width: 100%;
  padding-left: 5px;
  text-align: center;
  color: var(--fc-main);
  font-size: var(--fs-150);
}

.navlinkdisabled {
  width: 1vw;
  padding-left: 5px;
  text-align: center;
  color: var(--fc-main);
  font-size: var(--fs-150);
}

.navlink:hover {
  background-color: var(--bg-main);
  color: var(--fc-alt);
}

.navTable {
  font-size: var(--fs-100);
}

.navTable tr {
  line-height: 1vw;
}

.navTable tr td:nth-child(1) {
  width: 2%
}

.navTable tr td:nth-child(1) div div {
  line-height: 100%;
}

.navTable tr td:nth-child(2) {
  width: 2%
}

.navTable tr td:nth-child(3) {
  width: 2%
}

.navTable tr td:nth-child(4) {
  width: 2%
}

.navTable tr td:nth-child(4) div div {
  line-height: 100%;
}

.navTable tr td:nth-child(5) {
  width: 2%
}

.navTable tr td:nth-child(6) {
  width: 2%
}

.navTable tr td:nth-child(8) {
  width: 2%;
  height: 1vw;
}

.pagenaveinput {
  font-size: 1.2vw;
  width: 25px;
  height: 20px;
  font-family: Lato;

}

.pagenaveinput input {
  width: 100px;
  height: 30px;
  padding-right: 10px;
}

.pagenavheading {
  padding-left: 50px;
  font-size: 1.2vw;
  color: var(--fc-main);
}

.pageofstyle {
  text-align: center;
  width: 30%;
  color: var(--fc-main);
  font-size: var(--fs-150);
}

.buttoncolumn {
  padding-left: 10px;
  width: 75px;
}

.buttoncolumn a {
  color: var(--fc-alt);
  font-size: 20px;
}

.buttoncolumn a.hover {
  background-color: #d0d6d9;
  cursor: pointer;
}

.navcontainer {
  padding: 0;
  margin: 0;
  width: 100%;

}

.dateselection {
  width: 100%;
  float: left;
  padding-left: 10px;
  font-size: .9vw;

}

.selectview {
  width: 100%;
  float: left;
  padding-left: 10px;
}

.viewstyle {
  font-size: .9vw;
  width: 100%;
  height: 100%;
}

.buttonstyle {
  width: 100%;
  height: 3%;
  float: left;
  padding-left: 5px;
}

.inputstyle {
  width: 100%;
  font-size: .9vw;
  display: block;
  margin: auto;
}

.dateinput:before {
  font-family: Raleway;
  content: "f133";
}

.timeview {
  width: 100%;
  float: left;
  padding-left: .2em;
  padding-right: .2em;
  font-size: var(--fs-100);
  display: flex;
  flex-direction: column;
}

.timeview li a {
  white-space: nowrap;
}

.viewdropdownstyle {
  width: 100%;
  float: left;
  padding-left: 10px;
  padding-right: 5px;
  font-size: .9vw;
  display: block;
  height: .5vw;
}

/*end Navigation*/

/*Flow sheet Filter Table */
.FlowsheetFilterTable tr {
  height: 2vw;
}

.FlowsheetFilterTable tr td {
  vertical-align: bottom;
  margin-top: 0;
}

.FlowsheetFilterTable tr td:nth-child(1) {
  width: .5vw;
}

.FlowsheetFilterTable tr td:nth-child(2) {
  width: 2vw;
}

.FlowsheetFilterTable tr td:nth-child(3) {
  width: 10vw;
  height: 2vw;
}

.FlowsheetFilterTable tr td:nth-child(3) input {
  font-size: .9vw;
  width: 100%;
  height: 2vw;
}

.FlowsheetFilterTable tr td:nth-child(4) {
  width: 10vw;
  height: 2vw;
}

.FlowsheetFilterTable tr td:nth-child(4) input {
  font-size: .9vw;
  width: 100%;
  height: 2vw;
}

.FlowsheetFilterTable tr td:nth-child(5) {
  width: 2vw;
  padding-top: 0;
}

.FlowsheetFilterTable tr td:nth-child(6) {
  width: 10%;
  padding-top: 0;
}

.FlowsheetFilterTable tr td:nth-child(7) {
  width: 10%;
  padding-top: 0;
}

.FlowsheetFilterTable tr td:nth-child(8) {
  width: 10%;
  padding-top: 0;
}

.FlowSheetDateErrorStyle {
  display: none;
  color: red;
  width: 80%;
  float: left;
  padding-left: 20%;
  padding-top: 10px;
}

/*End flowsheet Filter Table */

/*Document Filter Table */
.doctypedropdownstyle {
  width: 100%;
  height: 100%;
  float: left;
  padding-left: 10px;
  padding-right: 5px;
  font-size: .9vw;
}

.summmarydropdownstyle {
  width: 100%;
  height: 100%;
  float: left;
  padding-left: 10px;
  padding-right: 5px;
  font-size: 15px;
}

.DocumentFilterTable {
  font-size: .9vw;
}

/*.DocumentFilterTable tr{*/
/*height: 5%;*/
/*}*/
.DocumentFilterTable tr td {
  vertical-align: bottom;
  margin-top: 0;
  padding-top: 0;
}

.DocumentFilterTable tr td:nth-child(1) {
  width: .5vw;
}

.DocumentFilterTable tr td:nth-child(2) {
  width: 10vw;
}

.DocumentFilterTable tr td:nth-child(2) input {
  font-size: .9vw;
  height: 2vw;
  width: 100%;
}

.DocumentFilterTable tr td:nth-child(3) {
  width: 10vw;
}

.DocumentFilterTable tr td:nth-child(3) input {
  font-size: .9vw;
  height: 2vw;
  width: 100%;
}

.DocumentFilterTable tr td:nth-child(4) {
  width: 10vw;
}

.DocumentFilterTable tr td:nth-child(5) {
  width: 12vw;
}

.DocumentFilterTable tr td:nth-child(6) {
  width: 5vw;
}

.DocumentFilterTable tr td:nth-child(7) {
  width: 5vw;
}

.DocumentFilterTable tr td:nth-child(8) {
  width: 5vw;
}

.DocumentDateErrorStyle {
  display: flex;
  opacity: 0;
  color: red;
  width: 0;
  height: 0;
  float: left;
  padding-left: 20%;
  padding-top: 10px;
  transition: var(--tran-03);
}

.DocumentDateErrorStyle.active {
  opacity: 1;
  height: 35px;
  width: 80%;
}

/*End Document Filter Table */
/*Laborder Filter Table */
.LaborderDropDownStyle {
  width: 100%;
  height: 100%;
  float: left;
  padding-left: 10px;
  padding-right: 5px;
  font-size: 15px;
}

.LaborderFilterTable {
  font-size: .9vw;
}

.LaborderFilterTable tr td {
  vertical-align: bottom;
  margin-top: 0;
  padding-top: 0;
}

.LaborderFilterTable tr td:nth-child(1) {
  width: .5vw;
}

.LaborderFilterTable tr td:nth-child(2) {
  width: 10vw;
}

.LaborderFilterTable tr td:nth-child(2) input {
  font-size: .9vw;
  height: 2vw;
  width: 100%;
}

.LaborderFilterTable tr td:nth-child(3) {
  width: 10vw;
}

.LaborderFilterTable tr td:nth-child(3) input {
  font-size: .9vw;
  height: 2vw;
  width: 100%;
}

.LaborderFilterTable tr td:nth-child(4) {
  width: 10vw;
}

.LaborderFilterTable tr td:nth-child(5) {
  width: 10vw;
}

.LaborderFilterTable tr td:nth-child(6) {
  width: 10vw;
}

.LaborderFilterTable tr td:nth-child(7) {
  width: 5vw;
}

.LaborderFilterTable tr td:nth-child(8) {
  width: 5vw;
}

.LaborderDateErrorStyle {
  display: none;
  color: red;
  width: 80%;
  float: left;
  padding-left: 20%;
  padding-top: 10px;
}

/*End Laborder Filter Table */
.pdfdisplaycontainter {
  width: 80%;
  height: 93%;
  margin-right: 1%;
  margin-top: 1.6%;
  padding-top: 1.2%;
  background-color: rgba(245, 248, 250, 0.90);
}

.InTableIconStyle {
  color: var(--fc-main);
}

.InTableIconStyle:hover {
  cursor: pointer;
}

.PrintButtonLocation {
  float: left;
  position: relative;
  margin-right: 10px;
  top: 5px;
}

.FlowPrintButtonLocation {
  float: left;
  position: relative;
  margin-right: 10px;
  top: 5px;
}

.AdvancedSearchStyle {
  height: 32vw;
  overflow: auto;
  padding-top: 0;
  margin-top: 0;
  margin-right: 0;

}

.AdvancedSearchTableHeader {
  margin-top: 3%;
  padding-bottom: 0;
  margin-bottom: 0;
  width: 100%;
}

.AdvancedSearchTableHeader tr td:nth-child(1) {
  width: 40%;
}

.AdvancedSearchTableHeader tr td:nth-child(2) {
  width: 10%;
  text-align: center;
}

.AdvancedSearchTableHeader tr td:nth-child(3) {
  width: 20%;
}

/*Advanced patient search table*/
.AdvancedSearchTable {
  padding-top: 0;
  margin-top: 0;
  width: 100%;
  max-height: 85%;
}

.AdvancedSearchTable tr td:nth-child(1) {
  width: 40%;
}

.AdvancedSearchTable tr td:nth-child(2) {
  width: 10%;
  text-align: center;
}

.AdvancedSearchTable tr td:nth-child(3) {
  width: 20%;
}

/*patient GE billing*/
/*Billing GE page*/
/*Billing GE table header*/
.billing-row {
  font-size: var(--fs-100);
  display: grid;
  grid-template-columns: 20px minmax(100px, 150px) minmax(100px, 150px) minmax(150px, 200px) minmax(150px, 200px) minmax(150px, 200px) minmax(100px, 150px) minmax(100px, 150px) minmax(100px, 150px);
  align-items: center;
  gap: 1em;
  min-height: 35px;
}

.billing-row div:nth-child(1) {
  display: flex;
  justify-content: center;
  align-items: center;
}

.billing-row div:nth-child(7),
.billing-row div:nth-child(8),
.billing-row div:nth-child(9) {
  text-align: right;
}

.billing-row div:nth-child(4),
.billing-row div:nth-child(5),
.billing-row div:nth-child(6) {
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
}

.TransSummary {
  font-weight: 600;
  font-size: 0.875rem;
  color: #374151;
  padding: 0.25rem 1rem 0.125rem;
  text-align: center;
}

.darkmode .TransSummary {
  color: var(--table-fc);
}

.GEBillingSummary {
  width: 100%;
  max-width: 650px;
  height: 150px;
  box-sizing: border-box;
  font-size: 0.75rem;
  margin: 0.25rem auto 0.5rem;
  border: 1px solid #e5e7eb;
  background-color: #ffffff;
  color: #374151;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.darkmode .GEBillingSummary {
  background-color: var(--table-bg);
  color: var(--table-fc);
  border-color: var(--table-border);
}

.transsummary-row {
  font-size: 0.75rem;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  align-items: center;
  gap: 0.25rem;
  padding: 0.375rem 0.5rem;
  min-height: 28px;
  line-height: 1.2;
}

.transsummary-row div {
  text-align: center;
}

.GEBillingSummary .layout_header.transsummary-row {
  background: linear-gradient(135deg, #7c3aed 0%, #a855f7 100%);
  color: white;
  font-weight: 600;
  padding: 0 0.5rem;
  height: 40px;
  min-height: 40px;
  box-sizing: border-box;
}

.GEBillingSummary .layout_rows_container {
  background: #ffffff;
  height: calc(150px - 40px);
  max-height: calc(150px - 40px);
  overflow-y: auto;
  box-sizing: border-box;
}

.darkmode .GEBillingSummary .layout_rows_container {
  background: var(--table-bg);
  height: calc(150px - 40px);
  max-height: calc(150px - 40px);
  overflow-y: auto;
  box-sizing: border-box;
}

.GEBillingSummary .layout_rows_container .transsummary-row {
  color: #374151;
  font-weight: 500;
}

.darkmode .GEBillingSummary .layout_rows_container .transsummary-row {
  color: var(--table-fc);
}

/* Compact variant for GEBillingSummary: keeps AGG summary very short */
.GEBillingSummary.compact {
  height: 50px;
  min-height: 40px;
  max-height: 60px;
  overflow: hidden;
  box-sizing: border-box;
}

.GEBillingSummary.compact .compact-header {
  padding: 0;
  height: 28px;
  min-height: 28px;
  box-sizing: border-box;
}

.GEBillingSummary.compact .compact-heading {
  text-align: center;
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1;
}

.GEBillingSummary.compact .compact-rows {
  height: calc(50px - 28px);
  max-height: calc(50px - 28px);
  overflow: hidden;
  box-sizing: border-box;
}

.GEBillingSummary.compact .compact-cell {
  text-align: center;
  font-weight: 600;
  font-size: 0.875rem;
  padding: 0;
  min-height: 0;
  line-height: 1;
}

.darkmode .GEBillingSummary.compact .compact-rows {
  background: var(--table-bg);
}

/*end Billing*/

/*Scheduling*/
.ScheduleFilterDateStyle {
  margin-top: 2vw;
  float: left;
  width: 10vw;
}

.ScheduleResourceDropDownStyle {
  margin-top: 2vw;
  width: 10vw;
  float: left;
}

.SchedulePanelDisplay {
  font-size: .8vw;
  border: solid 1px;
  height: 70vh;
  overflow: auto;
  width: 15vw;
  float: left;
  margin-right: 5px
}

.SchedulePanelDisplay h1 {
  font-size: var(--fs-150);
  text-align: center
}

.ScheduleTableStyle {
  width: 97%;
  margin-left: 3px;
  font-size: .8vw;
  color: var(--fc-main);
}

.ScheduleTableStyle tr {
  cursor: pointer;
}

.ScheduleTableStyle tr th {
  font-size: 1vw;
  text-align: center;
}

.ScheduleTableStyle tr td:nth-child(1) {
  width: 4vw;
  padding-right: 3px;
  padding-left: 3px;
}

.ScheduleTableStyle tr td:nth-child(2) {
  width: 4vw;
  padding-right: 3px;
  padding-left: 3px;
}

.ScheduleTableStyle tr td:nth-child(3) {
  padding-right: 3px;
  padding-left: 3px;
}

.ScheduleApptTableStyle {
  font-size: 1vw;
  width: 90%;
  height: 90%;
}

.ScheduleApptTableStyle tr td:nth-child(1) {
  text-align: right;
  font-weight: bold;
  width: 10vw;
  padding-right: 3px;
  vertical-align: top;
}

.ScheduleApptTableStyle tr:nth-child(7) td:nth-child(1) {
  height: 15vw;
}

.ScheduleApptTableStyle tr:nth-child(7) td:nth-child(2) div {
  width: 100%;
  height: 100%;
  overflow: auto;
  border: solid 1px;
  padding: 3px 3px 3px 3px;
}

/*Popup styles*/
.cancel {
  text-align: right;
  height: 35px;
  margin-right: 2vw;
  cursor: pointer;
}

.cancel a div {
  color: var(--fc-main);
}


.FlowsheetValuePop {
  display: none;
  position: fixed;
  top: 10%;
  left: 30%;
  width: 50%;
  height: 70%;
  padding: 16px;
  border-radius: 6px;
  background-color: var(--bg-alt);
  border: .1px solid var(--bga-main);
  z-index: 2000;
  color: var(--fc-main);
  overflow: auto;
}

.flowvalbuttons {
  display: flex;
  align-items: center;
  margin: 0;
  padding: 0;
  width: 100%;
}

.flowval {
  margin-top: 2em;
  margin-left: 2em;
}

#ViewDocLink {
  float: left;
  margin-top: 10px;
  color: var(--fc-main);
  position: fixed;
}



.DisplayExternalFile {
  display: flex;
  flex-direction: column;
  display: none;
  position: absolute;
  top: 1vh;
  left: 90px;
  width: calc(100% - 90px);
  height: 97vh;
  padding: 5px;
  background-color: var(--bg-alt);
  border-radius: 6px;
  border: .1px solid var(--bga-main);
  z-index: 2001;
  color: var(--fc-main);
  transition: var(--tran-03);
}

.DisplayExternalFile.active {
  left: 260px;
  width: calc(100% - 260px);
}


.close {
  font-size: var(--fs-200);
  margin-left: auto;
  color: var(--fc-main);
  font-weight: 400;

}

.close:hover {
  cursor: pointer;
  color: var(--fc-main);
  font-weight: 700;
}

.HeaderContainer[column-context="2"] {
  display: grid;
  grid-template-columns: 200px 50px;
  justify-content: flex-start;
  align-items: center;
}

.HeaderContainer[column-context="3"] {
  display: grid;
  grid-template-columns: 200px 50px 150px;
  justify-content: flex-start;
  align-items: center;
}

.HeaderContainer[column-context="3"][familyhistory] {
  display: grid;
  grid-template-columns: 250px 50px 150px;
  justify-content: flex-start;
  align-items: center;
}

.HeaderContainer[column-context="4"][schedule] {
  display: grid;
  grid-template-columns: 200px 50px 200px 200px;
  justify-content: flex-start;
  align-items: center;
  gap: 1em;
}

.HeaderContainer[column-context="5"] {
  display: grid;
  grid-template-columns: 200px 200px 200px 130px 130px;
  justify-content: flex-start;
  align-items: center;
  gap: 1em;
}



.HeaderContainer[column-context="6"][hcfa] {
  display: grid;
  grid-template-columns: 200px 50px 200px 200px 130px 130px;
  justify-content: flex-start;
  align-items: center;
  gap: 1em;
}

.HeaderContainer[column-context="6"][billing] {
  display: grid;
  grid-template-columns: 200px 50px 200px 200px 130px 130px;
  justify-content: flex-start;
  align-items: center;
  gap: 1em;
}

.HeaderContainer[column-context="7"] {
  display: grid;
  grid-template-columns: 200px 50px 200px 200px 175px 125px 125px;
  justify-content: flex-start;
  align-items: center;
  gap: 1em;
}

.HeaderContainer[column-context="9"][dental] {
  display: grid;
  grid-template-columns: 200px 50px 200px 130px 130px 200px 200px 130px 130px;
  justify-content: flex-start;
  align-items: center;
}

.HeaderContainer[column-context="10"][dental]:not(:first-child) div:nth-child(2) {
  grid-column: 2/-1;
}

.HeaderContainer[column-context="9"][flowsheet] {
  display: grid;
  grid-template-columns: 200px 50px 200px 200px 200px 150px 130px 130px 130px;
  justify-content: flex-start;
  align-items: center;
}

.HeaderContainer[column-context="9"][documents] {
  display: grid;
  grid-template-columns: 200px 50px 200px 200px 175px 200px 130px 130px 130px;
  justify-content: flex-start;
  align-items: center;
}

.HeaderContainer[column-context="9"][orders] {
  display: grid;
  grid-template-columns: 200px 50px 200px 200px 200px 150px 200px 130px 130px;
  justify-content: flex-start;
  align-items: center;
}

.HeaderContainer[data-error="normal"] {
  max-height: 3em;
}

.HeaderContainer[data-error="error"] {
  max-height: 8em;
}

.HeaderContainer div {
  padding-left: .5em;
  padding-bottom: 0;
  box-sizing: border-box;
  align-self: center;
}

.HeaderContainerHeading {
  font-family: 'Raleway';
  font-variant: small-caps;
  font-weight: 500;
  font-size: 2em;
  color: var(--fc-main);
}

.HeaderContainerPrint {
  font-size: 2em;
  color: var(--fc-main);
}

.HeaderContainerPrint:hover {
  cursor: pointer;
}

.HeaderContainerBtnStyle {
  width: 7vw;
}

.dropdown-menu {
  border-radius: 6px;
  max-height: 400px;
  max-width: 300px;
  min-width: 200px;
  overflow: auto;
  text-overflow: ellipsis;
  white-space: nowrap;


}

.checkbox-item {
  display: flex;
  align-items: center;
  gap: .5em;
  padding: 5px;
}

/* .checkbox-item div {
  padding: 0;
}

.checkbox-item div:nth-child(1) {
  padding-right: .25em;
}

.checkbox-item div:nth-child(1) {
  padding-right: .25em;
  white-space: nowrap;
} */

.checkbox-item div:nth-child(2) {
  padding-right: .25em;
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
}

.tooltip-inner {
  background-color: var(--bg-main);
  color: var(--fc-alt);
}

.tooltip .arrow:before {
  border-bottom-color: var(--bg-main) !important;
  border-top-color: var(--bg-main) !important;
}

.altContent {
  display: none;
  margin-left: 0;
  margin-top: .5em;
}

/* Content Container. This is the right side of 
screen next to the navbar. It will contain the 
content of the item selected by the user
*/
.content-container {
  position: relative;
  top: 2vh;
  left: 5vh;
  height: 95%;
  width: 75vw;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  padding: 2em;
  box-shadow: 5px 10px 20px var(--fc-main);
}

.content-container-no-border {
  position: relative;
  top: 0;
  left: 0;
  height: calc(100vh - 200px);
  width: 72vw;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
}

.content-heading {
  font-size: var(--fs-200);
  font-weight: 700;
  font-style: italic;
}

.content-heading-container {
  display: flex;
  justify-content: flex-end;
}

.content-heading-container div {
  padding: 5px;
}

.content-btn-image {
  padding-right: 5px;
}

.content-items {
  overflow-y: auto;
  padding-top: .5px;
  height: 100%;
  width: 100%;
}

.content-item-row {
  display: flex;
}

/*search bar styling*/
.search-barcontent {
  background: white;
  width: 50vw;
  padding: 3em;
  box-shadow: 0 0 3em rgba(0, 0, 0, 0.15);
  position: relative;
}

.search-bar {
  --size: 60px;
  background: white;
  border: 2px solid var(--bg-main);
  display: flex;
  border-radius: 50px;
  height: var(--size);
  width: calc(40vw - 15vw);
  padding: 3px;
  position: relative;
  overflow: hidden;
}

.search-bar-input {
  font-size: var(--fs-150);
  padding: 0 0.5em;
  border: 0;
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  cursor: pointer;
  width: 21.5vw;
}

.search-bar-input:focus {
  outline: 0;
}

.search-bar-submit {
  font-size: var(--fs-150);
  cursor: pointer;
  border: 0;
  background: transparent;
  border-radius: 50%;
  width: calc(var(--size) - 10px);
  height: calc(var(--size) - 10px);
  margin-left: auto;
}

.search-bar:focus-within .search-bar-submit {
  background: var(--bg-main);
  color: white;
}

.search-bar:focus-within .search-bar-submit:focus,
.search-bar:focus-within .search-bar-submit:hover {
  outline: 0;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.35);
}

.input-bar {
  border: 2px solid var(--bg-main);
  display: flex;
  border-radius: 5px;
  background: white;
  height: var(--icon-size);
  width: 20vw;
  padding: 3px;
  position: relative;
  overflow: hidden;
}

.input-bar:focus-within {
  border: 4px solid rgb(109, 196, 217);
  box-shadow: 4px 2px 2px rgba(109, 196, 217, .50);
}

.input-bar-input {
  font-size: var(--fs-100);
  padding: 0 0.5em;
  border: 0;
  position: absolute;
  top: 0;
  bottom: 0;
  left: calc(var(--icon-size) - 10px);
  cursor: pointer;
  width: 15vw;
  background-color: white;
}

.input-bar-input:focus {
  outline: 0;
  background: transparent;
}

.input-bar-submit {
  font-size: var(--fs-100);
  border: 0;
  background: transparent;
  width: calc(var(--size) - 10px);
  height: calc(var(--size) - 10px);
  margin-right: auto;
}

.usergrid-title {
  width: 15vw;
}

.usergrid-item {
  font-weight: normal;
  display: grid;
  grid-template-columns: 25px 25px 200px 200px 400px 150px;
  gap: 1em;
  line-height: 35px;
}

.usergrid-item:hover {
  color: var(--fc-alt);
  background-color: var(--bg-hover);
}

.usergrid-item:hover div button i {
  color: var(--fc-alt);
}

.usergrid-item div {
  padding: .25em;
  text-align: left;
  height: 4vh;
  overflow: hidden;
}

.usergrid-row-heading {
  font-weight: 700;
  pointer-events: none;
}

.usergrid-edit-btn {
  font-size: var(--fs-100);
  cursor: pointer;
  border: 0;
  background: transparent;
  width: calc(var(60px) - 10px);
  height: calc(var(60px) - 10px);
  margin-left: auto;
  outline: 0;
  color: var(--fc-main);
}

.usergrid-edit-btn:focus,
.usergrid-edit-btn:hover {
  outline: 0;
  background: var(--bg-main);

}

.contact-add-btn {
  font-size: var(--fs-100);
  cursor: pointer;
  border: 0;
  background: transparent;
  width: calc(var(--size) - 10px);
  height: calc(var(--size) - 10px);
  margin-left: auto;
  outline: 0;
  color: var(--fc-main);
}

.contact-add-btn:focus,
.contact-add-btn:hover {
  outline: 0;
  background: var(--bg-main);
}

/*registration*/
.user-items-container {
  display: flex;
}

.user-content-items {
  overflow-y: auto;
  padding-top: .5px;
  width: 30vw;
  height: 100%;
}

.user-title {
  width: 15vw;
}

.user-item {
  font-weight: normal;
  display: flex;
  gap: 1em;
}

.user-item div {
  padding: .25em;
  text-align: left;
}

.user-row-heading {
  font-weight: 700;
}

.user-item div:nth-child(1) {
  width: 15vw;
  text-align: right;
  align-self: center;
}

.user-item div:nth-child(2) {
  width: 100%;
  align-self: center;
}

.user-item div:nth-child(2) div {
  padding: 0;
  margin: 0;
  padding-bottom: 2px;
}

/*administrator user check box*/
.user-item div input[type='checkbox'] {
  width: 15px;
  height: 15px;
}

.user-item[data-company="inactive"]:nth-child(4) div:nth-child(2) {
  display: flex;
  flex-direction: column;
  border: .25px solid var(--fc-main);
  transition: all 250ms ease-in-out;
  width: 100%;
  height: 3vw;
}

.user-item[data-company="active"]:nth-child(4) div:nth-child(2) {
  display: flex;
  flex-direction: column;
  border: .25px solid var(--fc-main);
  transition: all 250ms ease-in-out;
  width: 100%;
}

.user-item:nth-child(4) div:nth-child(2) section {
  display: block;
  margin: 0;
  padding: 0;
}

.user-item-company-button[data-company="inactive"] {
  visibility: hidden;
  opacity: 0;
}

.user-item-company-button[data-company="active"] {
  transition: visibility 0s, opacity 350ms ease-in-out;
  opacity: 1;
  display: flex;
  padding: 1em;
  width: 100%;
}

.user-item-company-button[data-company="active"] {
  transition: visibility 0s, opacity 350ms ease-in-out;
  opacity: 1;
  display: flex;
  padding: 1em;
  width: 100%;
}

.user-item:nth-child(5) div:nth-child(3) {
  display: flex;
  flex-direction: column;
  width: 100%;
  justify-content: flex-start;
  align-items: center;
  line-height: 4vw;
}

.user-item:nth-child(5) div:nth-child(2) div:nth-child(1) {
  display: flex;
  justify-content: flex-start;
  align-items: center;
}

.usersecurity {
  position: relative;
  border: 1px solid var(--bg-main);
  display: grid;
  grid-template-columns: 100px 25px;
  gap: .5em;
  justify-content: center;
  align-items: center;
  border-radius: 5px;
  padding-top: 25px !important;
  padding-bottom: 25px !important;
  margin-top: 10px !important;
  width: 150px;
  margin-left: 30%;
}

.securitytitle {
  position: absolute;
  top: -10px;
  left: 10px;
  border: 1px solid var(--bg-alt);
  background-color: var(--bg-main);
  color: var(--fc-alt);
  border-radius: 6px;
  width: 100px !important;
  text-align: center !important;
}

#userdata {
  height: 100%;
  width: 100%;
}

.userlabel {
  justify-self: flex-end;
  font-weight: bold;
}

.userbuttons {
  display: flex;
  flex-direction: column;
  gap: .5em;
  padding-top: 25px;
  margin-left: 30%;
  width: 150px;
}

.userformbuttons {
  position: absolute;
  bottom: 5px;
  right: 5px;
  display: flex;
  gap: .5em;
}

.userformbuttons button {
  width: 75px;
  border-radius: 6px;
}

.user-security-item {
  display: grid;
  grid-template-columns: 150px 25px;
  gap: .5em;
}

.seclabel {
  font-weight: bold;
  justify-self: flex-end;
}

.user-contact-company-name {
  width: 65%;
}

.user-contact-company-button {
  width: 35%;
  margin-left: 2px;
}

.user-reset[data-reset-password="active"] {
  display: flex;
}

.user-reset[data-reset-password="inactive"] {
  display: none;
}

.user-new-password[data-set-password="active"] {
  display: flex;
}

.user-new-password[data-set-password="inactive"] {
  display: none;
}

.usereditpopup {
  display: none;
  position: fixed;
  top: 10%;
  left: 30%;
  width: 40%;
  height: 80%;
  padding: 16px;
  border-radius: 6px;
  background-color: var(--bg-alt);
  border: .1px solid var(--bga-main);
  z-index: 2000;
  color: var(--fc-main);
}

.passwordresetpopup {
  display: none;
  position: fixed;
  top: 15%;
  left: 35%;
  width: 30%;
  height: 50%;
  padding: 16px;
  border-radius: 6px;
  background-color: var(--bg-alt);
  z-index: 3002;
  color: var(--fc-main);
  border-radius: 5px;
}

.user-edit-container {
  position: relative;
  height: 90%;
  width: 90%;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
}

.regtitle {
  position: absolute;
  top: -40px;
  left: 5px;
  border: 1px solid var(--bg-alt);
  background-color: var(--bg-main);
  color: var(--fc-alt);
  border-radius: 5px;
  font-size: 20px;
  padding: 5px;
}

.bottom {
  width: 100%;
  height: 20vh;
  padding-right: 2em;
  display: flex;
  justify-content: flex-end;
  align-items: flex-end;

}

.bottom div {
  margin-right: 1em;
}

#usereditpopuploader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2002;
  display: none;
  overflow: hidden;
  background: var(--bg-wait);
}

.admincheckbox {
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  align-items: center;
}

.audit-filter-container {
  display: flex;
  justify-items: flex-start;
  align-items: center;
  padding: 1em;
}

.audit-filter-container div:not(:last-child) {
  padding-right: 1em;
}


.auditfilter-input {
  width: 10em;
}

.auditfilter-patsearch {
  width: 20em;
}

.auditpatdrop {
  background-color: white;
  border: black solid .25em;
}

/*pagination styling*/
.pagination {
  --size: 30vw;
  color: black;
  padding-top: 1em;
  align-self: center;
  width: var(--size);
}

.pagination ul {
  width: calc(--size - 2vw);
  display: flex;
  flex-wrap: wrap;
  background: #fff;
  padding: 8px;
  border-radius: 50px;
  box-shadow: 0px 10px 15px rgba(0, 0, 0, 0.1);
}

.pagination ul li {
  color: black;
  list-style: none;
  line-height: 45px;
  text-align: center;
  font-size: 18px;
  font-weight: 500;
  cursor: pointer;
  user-select: none;
  transition: all 0.3s ease;
}

.pagination ul li.numb {
  list-style: none;
  height: 45px;
  width: 45px;
  margin: 0 3px;
  line-height: 45px;
  border-radius: 50%;
}

.pagination ul li.numb.first {
  margin: 0px 3px 0 -5px;
}

.pagination ul li.numb.last {
  margin: 0px -5px 0 3px;
}

.pagination ul li.dots {
  font-size: 22px;
  cursor: default;
}

.pagination ul li.btn-nav {
  padding: 0 20px;
  border-radius: 50px;
}

.pagination ul li.next {
  padding: 0 20px;
  border-radius: 50px;
  justify-self: flex-end;
}

.pagination li.active,
.pagination ul li.numb:hover,
.pagination li:first-child:hover,
.pagination ul li:last-child:hover {
  color: white;
  background: black;
}

/*End Nav Items*/



/*PDF classes*/

.displaypdf {

  height: 85vh;
  width: 95%;
  justify-self: center;
  border: 1px solid black;
  background-color: #4f5b69;

}

.pdfcanvas {
  border: 1px solid black;
  direction: ltr;
}

.pdfbuttons {
  padding-bottom: .5em;
  display: flex;
  justify-content: flex-start;
  align-items: center;
}


.pdfbuttons div:nth-child(1) {
  display: flex;
  justify-content: center;
  width: 20vw;

}

.pdfbuttons span:nth-child(2) {
  width: 10vw;
}

.pdfprint {
  width: 25vw;
  display: flex;
  font-size: var(--fs-100);
  justify-content: flex-end;
  margin-left: auto;
  margin-right: 3vw;
}

.pdfprint div {
  padding-right: 1em;
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
}

.pdfprint div a {
  text-decoration: none;
  color: var(--fc-main);
  padding-left: .5em;
  padding-top: .2em;
}

.pdfprint div:hover {
  cursor: pointer;
}

.pdfprint div:nth-child(1) {
  width: 45px;
  height: 45px;
}

.pdfprint div:nth-child(2) {
  width: 45px;
  height: 45px;
}

.pdfprint div:nth-child(3) {
  width: 45px;
  height: 45px;
}

/* .pdfprint>div:nth-child(1) i {
  padding-left: .2vw;
}

.pdfprint>div:nth-child(2) i {
  padding-left: .2vw;
} */
/* 
.pdfprint>div:nth-child(3) i {
  padding-left: .5vw;
} */


.OuterDisplayContainer {
  display: flex;
  justify-content: center;
  overflow: auto;
  height: 100%;
  width: 100%;
}

.nodisplayexternalfile {
  margin-top: 2em;
  margin-left: 2em;
  margin-right: 2em;
  color: var(--fc-main);
  font-size: var(--fs-200);
}

.table {
  border-collapse: collapse;

}

.table thead tr th {
  border-bottom: 1px solid black;
  border-top: 1px solid black;
}

.DisplayAlertPopup {
  display: none;
  position: absolute;
  top: 50px;
  left: 150px;
  width: 600px;
  height: 800px;
  padding: 5px;
  background-color: var(--bg-alt);
  border-radius: 6px;
  border: .1px solid var(--bg-main);
  z-index: 1002;
  color: var(--fc-main);
  overflow: auto;
}

.DisplayAlertPopup.active {
  left: 300px;
  width: calc(100% - 350px);
}

.AlertCheckboxContainer {
  display: flex;
  justify-content: flex-end;
  align-items: flex-start;
  padding-top: 1em;
  color: var(--fc-main);
  width: 150px;
}

.NonPDFContainer {
  display: flex;
  justify-content: baseline;

}

.downloadfile {
  width: 25vw;
  display: flex;
  font-size: var(--fs-150);
  justify-content: flex-start;

}

.downloadfile div {
  padding-right: .5em;
  transition: all 0.3s ease;
  border-radius: 50%;
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 45px;
  height: 45px;
}

.downloadfile div a {
  text-decoration: none;
  color: var(--fc-main);
  padding-left: .5em;
  padding-top: .2em;
}

.downloadfile div:hover {
  cursor: pointer;
  background-color: lightgray;
}

/*Advanced Patient Search*/
.searchcontainer {
  position: absolute;
  top: 1em;
  padding: 2em;
  width: 0;
  z-index: -1;
  left: 260px;
  background-color: var(--bg-alt);
  border-radius: 6px;
  height: 0;
  opacity: 0;

}

.searchcontainer.active {
  width: auto;
  opacity: 1;
  height: 90%;
  z-index: 2001;
}

.searchitems {
  display: flex;
  padding-bottom: 1em;
}

.searchitems label {
  width: 10vw;
  text-align: right;
  font-weight: bold;
  padding-right: .5em;
  padding-top: .25em;
  color: var(--fc-main);
}

.searchitems input {
  width: 20vw;
}

.searchbuttoncontainer {
  display: flex;
  align-items: center;
  justify-content: right;
  width: 30vw;
  padding-bottom: 1em;
}

.searchbuttoncontainer div {
  padding-right: .5em;
}

.searchbuttoncontainer div button {
  border-radius: .5em;
}

.searchresultcontainer[data-quick="false"] {

  display: flex;
  flex-flow: column wrap;
  flex-direction: row;
  width: 70vw;
  height: 50vh;
  padding: .5em;
  overflow-y: auto;
  border: none;
}

.searchresultcontainer[data-quick="true"] {
  display: flex;
  flex-flow: column wrap;
  flex-direction: row;
  width: 70vw;
  height: 65vh;
  padding: .5em;
  overflow-y: auto;
  border: none;
}

.searchresultcard {
  display: flex;
  align-items: center;
  justify-content: left;
  padding: .5em;
  background-color: var(--submenu-color);
  width: calc(100% - 10px);
  height: 5vh;
}

.searchresultcard:hover {
  cursor: pointer;
  background-color: var(--bg-row-hover);
}

.searchresultcard i {
  padding-right: 1em;
}

.searchcarditem {
  display: flex;
  width: 100%;
  color: var(--fc-main);
  white-space: nowrap;
}



.searchitemcontainer {
  width: 80%;
}

.searchitemcontainer li {
  list-style: none;
}

.searchitemcontainer li.search-box {
  display: flex;
  align-items: center;
  border-radius: 6px;
  background-color: var(--primary-color-light);
  cursor: pointer;
  transition: var(--tran-05);

}

.searchitemcontainer li.search-box input {
  height: 100%;
  width: 100%;
  outline: none;
  border: none;
  background-color: var(--primary-color-light);
  color: var(--text-color);
  border-radius: 6px;
  font-size: var(--fs-75);
  font-weight: 500;
  transition: var(--tran-05);

}

.searchitemcontainer[data-quick="true"] {
  display: none;
}

.searchitemcontainer[data-quick="false"] {
  display: block;
}

.searchcardbuttoncontainer {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.searchcardbutton {
  width: 5vw;
  padding-top: .5em;
  justify-self: center;
}

.searchadvancedbuttoncontainer {
  width: 70vw;
}

.searchadvancedbutton {
  width: 10vw;
  padding-top: .5em;
  margin-left: auto;
}

.passwordupdate {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-top: -3vh;
}

.passwordupdate div:not(:last-child) {
  padding-bottom: .5em;
}

.passwordinputcontainer {
  width: 20vw;
  height: 7vh;
}

.passwordinputcontainer input {
  width: 100%;
  height: 5vh;
}

.passwordinputcontainer button {
  width: 10vw;
}

#credentialsContainer {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  gap: 0.75rem;
}

#credentialsContainer .btn {
  width: 100%;
  max-width: 350px;
  margin-top: 0.5rem;
}

.login-footer {
  text-align: center;
  margin-top: 1rem;
}

.mfacontainer {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-top: 0;
}

.mfacontainer.active {
  display: flex;
}

.mfa-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.mfa-icon i {
  font-size: 1.75rem;
  color: white;
}

.mfa-title {
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--fc-main);
  margin-bottom: 0.5rem;
  text-align: center;
}

.mfa-subtitle {
  font-size: 0.95rem;
  color: var(--fc-main);
  opacity: 0.7;
  margin-bottom: 2rem;
  text-align: center;
}

.mfa-input-group {
  width: 100%;
  max-width: 250px;
  margin-bottom: 2rem;
}

.mfa-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--fc-main);
  margin-bottom: 0.5rem;
  text-align: left;
}

.mfa-code-input {
  width: 100%;
  height: 42px;
  border-radius: 8px;
  border: 2px solid rgba(128, 128, 128, 0.3);
  padding: 0.5rem 0.75rem;
  font-size: 1rem;
  font-weight: 500;
  text-align: center;
  letter-spacing: 0.3em;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  background-color: var(--bg-alt);
  color: var(--fc-main);
}

.mfa-code-input:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.mfa-code-input::placeholder {
  letter-spacing: 0.25em;
  opacity: 0.4;
  font-size: 0.9rem;
}

.mfa-trust-container {
  width: 100%;
  max-width: 350px;
  background-color: rgba(102, 126, 234, 0.05);
  border: 1px solid rgba(102, 126, 234, 0.2);
  border-radius: 8px;
  padding: 1rem;
  margin-top: 1rem;
  margin-bottom: 2rem;
}

.mfa-trust-label {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  margin-bottom: 0.75rem;
}

.mfa-checkbox {
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: #667eea;
}

.mfa-trust-text {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--fc-main);
}

.mfa-trust-info {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--fc-main);
  opacity: 0.7;
  line-height: 1.4;
}

.mfa-trust-info i {
  font-size: 1rem;
  color: #667eea;
  margin-top: 2px;
  flex-shrink: 0;
}

.mfa-trust-emoji {
  font-size: 1rem;
  margin-top: 2px;
  flex-shrink: 0;
}

.mfa-verify-btn {
  width: 100%;
  max-width: 350px;
  height: 50px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border: none;
  border-radius: 8px;
  color: white;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-top: 1rem;
  margin-bottom: 1rem;
}

.mfa-verify-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.mfa-footer {
  text-align: center;
  margin-top: 1rem;
}

.mfa-link {
  color: #667eea;
  font-size: 0.9rem;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.mfa-link:hover {
  opacity: 0.8;
  text-decoration: underline;
}

.mfa-reset-btn {
  margin-top: 1rem;
}

.password-requirements {
  text-align: left;
  margin-bottom: 1rem;
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--fc-main);
  opacity: 0.8;
}

/* Show invalid feedback when mfa-code-input has is-invalid class */
.mfa-code-input.is-invalid~.invalid-feedback {
  display: block;
  color: #dc3545;
  font-size: 0.85rem;
  margin-top: 0.5rem;
}

.mfa-code-input.is-invalid {
  border-color: #dc3545;
}

.mfacontainer2 {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-top: 1rem;
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
}

.mfacontainer2.active {
  display: flex;
  opacity: 1;
}

.mfacontainer2 div:not(:first-child) {
  padding-top: 1em;
}

.qrcontainer {
  display: none;
  flex-direction: column;
  align-items: center;

}

.qrcontainer img {
  padding-bottom: 1em;
}

.blur-all {
  -webkit-filter: blur(10px);
  -moz-filter: blur(10px);
  -o-filter: blur(10px);
  -ms-filter: blur(10px);
  filter: blur(10px);
}

#forgotpasswordsave {
  display: none;
}

.alertify {
  position: absolute;
  z-index: 999999 !important;
}

.ajs-primary {
  width: 2.5em;
}

.ajs-footer {
  display: flex;
  justify-content: center;
}

/*Prescription Style*/
.prescription_container {
  font-size: .75em;
}

.prescription_data {
  padding-bottom: 1em;
}

.prescription_header {
  font-weight: 700;
}

.prescription_row_style {
  display: flex;
  align-items: flex-start;
}

.prescription_item_header {
  color: var(--prescription-text);
  font-weight: 700;
  padding-right: .5em;
}

.prescription_row_style .prescription_item_header:not(:first-child) {
  padding-left: .5em;
}

.prescription_separator {
  padding-left: .2em;
}

/*Data Layout Style*/
.layout_container {
  min-width: 500px;
  overflow-y: hidden;
  overflow-x: auto;
}

.layout_header {
  font-weight: 700;

}

.layout_rows_container {
  overflow-y: auto;
  overflow-x: hidden;
  height: 600px;
  min-width: 800px;
}

.layout_header_row {
  display: flex;
  flex-direction: row;
}

/* GEBillingSummary-specific override to prevent the global 600px from applying */
.GEBillingSummary .layout_rows_container {
  height: calc(150px - 40px);
  max-height: calc(150px - 40px);
  overflow-y: auto;
  box-sizing: border-box;
}

.darkmode .GEBillingSummary .layout_rows_container {
  height: calc(150px - 40px);
  max-height: calc(150px - 40px);
  overflow-y: auto;
  box-sizing: border-box;
}

/*End Data Layout Style*/

/*Specific Medication Layout styling*/

/* Medications Table Wrapper */
.meds-table-wrapper {
  display: flex;
  flex-direction: column;
  height: calc(100vh - 200px);
  min-height: 500px;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  background: var(--bg-card);
  border: 1px solid #e5e7eb;
}

.meds_row {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica', 'Arial', sans-serif;
  font-size: 0.875rem;
  display: grid;
  grid-template-columns: 40px 300px 150px 300px 120px 120px;
  align-items: center;
  gap: 1rem;
  min-height: 48px;
  padding: 0.75rem 1rem;
  color: var(--fc-main);
}

.meds_row.inactive {
  color: var(--fc-inactive);
}

.rows .meds_row div:first-child {
  cursor: pointer;
}

.rows .meds_row div:not(:first-child) {
  cursor: default;
}

.meds_row div:nth-child(2),
.meds_row div:nth-child(3),
.meds_row div:nth-child(4) {
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
}

.meds-table-summary {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica', 'Arial', sans-serif;
  color: #374151;
  font-size: 0.875rem;
  padding: 0.875rem 1rem;
  background: #ffffff;
  border-bottom: 1px solid #e5e7eb;
  font-weight: 500;
  letter-spacing: 0;
}

.layout_header.meds_row {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica', 'Arial', sans-serif;
  background: linear-gradient(135deg, #7c3aed 0%, #a855f7 100%);
  border-radius: 8px 8px 0 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  padding: 0.875rem 1rem;
  font-weight: 600;
  color: white;
  transition: all 0.2s ease;
  position: sticky;
  top: 0;
  z-index: 100;
  letter-spacing: 0.025em;
  text-transform: none;
  font-size: 0.875rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.layout_header.meds_row div {
  display: flex;
  align-items: center;
  gap: 0.5em;
}

.meds_prescription {
  opacity: 0;
  height: 0;
  width: 100%;
  overflow: hidden;
  margin-left: 1em;
  transition: var(--tran-03);
}

.meds_prescription.active {
  opacity: 1;
  overflow: visible;
  padding-top: 2em;
  padding-bottom: 1em;
  height: auto;
}

.meds-table-nav {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica', 'Arial', sans-serif;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.875rem 1rem;
  background: #ffffff;
  border-top: 1px solid #e5e7eb;
  gap: 1rem;
  flex-shrink: 0;
}

.meds-table-nav>div:first-child {
  color: #374151;
  font-weight: 500;
  font-size: 0.875rem;
  min-width: 150px;
}

.meds-table-nav>div:last-child {
  display: flex;
  align-items: center;
  gap: 0.5em;
  margin-left: auto;
}

.meds-nav-btn {
  background: #7c3aed;
  color: white;
  border: 1px solid #7c3aed;
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 0.875rem;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  font-weight: 500;
}

.meds-nav-btn:hover {
  background: #6d28d9;
  color: white;
  border-color: #6d28d9;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.meds-nav-btn:hover i {
  color: white;
}

.meds-nav-btn:active {
  transform: translateY(0) scale(1);
  box-shadow: 0 2px 4px var(--card-shadow);
}

.meds-nav-btn:disabled {
  background: #e5e7eb;
  color: #9ca3af;
  border-color: #e5e7eb;
  cursor: not-allowed;
  opacity: 0.6;
  box-shadow: none;
}

.meds-nav-btn:disabled:hover {
  background: #e5e7eb;
  color: #9ca3af;
  box-shadow: none;
  transform: none;
  scale: 1;
}

.meds-nav-btn:disabled i {
  color: #9ca3af;
}

.meds-nav-btn:disabled:hover i {
  color: #9ca3af;
}

.meds-nav-btn i {
  color: white;
}

.meds-table-nav span {
  color: var(--fc-main);
  font-weight: 500;
  min-width: 2em;
  text-align: center;
  font-size: 0.875rem;
}

.darkmode .meds-table-nav span {
  color: var(--table-fc);
}

/*end specific meds styling*/

.icon_style {
  display: flex;
  align-items: center;
  justify-content: center;
}

.icon_style i {
  margin-left: .2em;
}

/*end specific meds styling*/

.FlowButtons {
  display: flex;
  align-items: flex-end;
  border-radius: 10px;
  opacity: 0;
  padding: 2px 2px 2px 2px;
  margin-left: 1em;
  margin-right: 1em;
  color: var(--fc-main);
  z-index: -1;
  background-color: var(--fc-alt);
}

.FlowButtons.active {
  opacity: 1;
  height: 1.5em;
  z-index: 1002;
}

.FlowButtons a {
  margin: -.1em .5em;
  text-decoration: none;
  color: var(--fc-main);
}

.FlowButtons:hover {
  cursor: pointer;
}

/*HCFA table header*/
.hcfa-row {
  font-size: var(--fs-100);
  display: grid;
  grid-template-columns: 40px 150px 150px 150px;
  align-items: center;
  gap: 1em;
  min-height: 35px;
}

/*end HCFA table*/

/* Alerts Table Wrapper */
.alerts-table-wrapper {
  display: flex;
  flex-direction: column;
  height: calc(100vh - 200px);
  min-height: 500px;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  background: var(--bg-card);
  border: 1px solid #e5e7eb;
}

.alerts-row {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica', 'Arial', sans-serif;
  font-size: 0.875rem;
  display: grid;
  grid-template-columns: 50px 180px 150px 150px 220px 220px 150px 100px;
  align-items: center;
  gap: 1rem;
  min-height: 48px;
  padding: 0.75rem 1rem;
  color: var(--fc-main);
}

.alerts-row div:nth-child(1) {
  display: flex;
  justify-content: center;
  align-items: center;
}

.alerts-row div:nth-child(3),
.alerts-row div:nth-child(4),
.alerts-row div:nth-child(5),
.alerts-row div:nth-child(6) {
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
}

.AlertDeletedRow div:not(:first-child) {
  color: var(--alert-deleted-fc);
}

.AlertViewedRow div:not(:first-child) {
  color: var(--alert-viewed-fc);
}

/* Modern Alerts Table Styling */
.alerts-table-summary {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica', 'Arial', sans-serif;
  color: #374151;
  font-size: 0.875rem;
  padding: 0.875rem 1rem;
  background: #ffffff;
  border-bottom: 1px solid #e5e7eb;
  font-weight: 500;
  letter-spacing: 0;
}

.layout_header.alerts-row {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica', 'Arial', sans-serif;
  background: linear-gradient(135deg, #7c3aed 0%, #a855f7 100%);
  border-radius: 8px 8px 0 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  padding: 0.875rem 1rem;
  font-weight: 600;
  color: white;
  transition: all 0.2s ease;
  position: sticky;
  top: 0;
  z-index: 100;
  letter-spacing: 0.025em;
  text-transform: none;
  font-size: 0.875rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.layout_header.alerts-row div {
  display: flex;
  align-items: center;
  gap: 0.5em;
}

.sortdiv {
  display: flex;
  align-items: center;
  gap: 0.4em;
  padding: 0.4em 0.7em;
  border-radius: 6px;
  transition: all 0.2s ease;
  user-select: none;
  position: relative;
}

.sortdiv:hover {
  background-color: rgba(255, 255, 255, 0.15) !important;
  color: white;
  cursor: pointer;
  border-radius: 4px;
  padding: 0.4em 0.7em;
}

.sort-arrow {
  font-size: 1em;
  color: white;
  opacity: 1;
  transition: all 0.2s ease;
  font-weight: bold;
}

.sort-arrow-placeholder {
  display: inline-block;
  width: 1em;
  opacity: 0.15;
}

.rows {
  transition: all 0.15s ease;
  background-color: var(--bg-card);
  border-bottom: 1px solid #f3f4f6;
}

.rows:nth-child(even) {
  background-color: var(--bg-alt);
}

.darkmode .rows {
  background-color: var(--table-row);
}

.darkmode .rows:nth-child(even) {
  background-color: var(--table-row-alt);
}

.rows:hover {
  background-color: #f5f3ff !important;
  box-shadow: 0 1px 3px rgba(124, 58, 237, 0.1);
}

.darkmode .rows:hover {
  background-color: var(--table-row-hover) !important;
  box-shadow: 0 1px 3px rgba(91, 58, 201, 0.12);
}

/* Ensure table row text color follows theme variables so contrast is correct in both modes */
.layout_rows_container [class$="-row"],
.layout_rows_container .rows {
  color: var(--fc-main);
}

.darkmode .layout_rows_container [class$="-row"],
.darkmode .layout_rows_container .rows {
  color: var(--table-fc);
}

/* Style the 'Showing page N of N' summaries consistently across all tables
   and make it match the table navigation area in both light and dark modes */
.layout_container>[class$="-table-summary"] {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica', 'Arial', sans-serif;
  color: var(--fc-main);
  font-size: 0.875rem;
  padding: 0.75rem 1rem;
  background: var(--table-bg);
  border-bottom: 1px solid var(--table-border);
  font-weight: 500;
}

.darkmode .layout_container>[class$="-table-summary"] {
  background: var(--table-row);
  color: var(--table-fc);
  border-bottom-color: var(--table-border);
}

/* Audit page small pageinfo (used by Audit::GetNav) should match table summary */
.audit-table-pageinfo {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica', 'Arial', sans-serif;
  color: var(--fc-main);
  font-size: 0.875rem;
  padding: 0.75rem 1rem;
  background: var(--table-bg);
  border-bottom: 1px solid var(--table-border);
  font-weight: 500;
}

.darkmode .audit-table-pageinfo {
  background: var(--table-row);
  color: var(--table-fc);
  border-bottom-color: var(--table-border);
}

/* Make table navigation footers match the summary area in light/dark modes */
.layout_container+[class$="-table-nav"] {
  background: var(--table-bg);
  border-top-color: var(--table-border);
  color: var(--table-fc);
}

/* Apply the table font family across table components so it can be controlled by variables */
[class$="-table-wrapper"] .layout_header,
[class$="-table-wrapper"] .layout_rows_container,
[class$="-table-wrapper"] .rows,
[class$="-table-wrapper"] [class$="-row"],
[class$="-table-nav"],
[class$="-table-summary"] {
  font-family: var(--table-font-family);
}

.darkmode .layout_container+[class$="-table-nav"] {
  background: var(--table-row);
  border-top-color: var(--table-border);
  color: var(--table-fc);
}

/* Ensure 'Page N of N' text and the center page number use the same color as the
   table summary/pagination area in both light and dark modes */
.layout_container+[class$="-table-nav"] span,
.layout_container+[class$="-table-nav"]>div:first-child,
[class$="-table-nav"] span,
[class$="-table-nav"]>div:first-child {
  color: var(--fc-main);
  font-weight: 500;
}

.darkmode .layout_container+[class$="-table-nav"] span,
.darkmode .layout_container+[class$="-table-nav"]>div:first-child,
.darkmode [class$="-table-nav"] span,
.darkmode [class$="-table-nav"]>div:first-child {
  color: var(--table-fc);
  font-weight: 500;
}

/* Also ensure the small page number between pagination buttons inherits the same color */
[class$="-table-nav"]>div:last-child span,
.darkmode [class$="-table-nav"]>div:last-child span {
  color: var(--fc-main);
  font-weight: 500;
}

.darkmode [class$="-table-nav"]>div:last-child span {
  color: var(--table-fc);
}

.layout_container {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-width: 800px;
}

.layout_rows_container {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  background-color: var(--bg-card);
  scroll-behavior: smooth;
}

/* Firefox scrollbar */
.layout_rows_container {
  scrollbar-width: auto;
  scrollbar-color: #d1d5db #f9fafb;
  scrollbar-gutter: stable;
}

/* Firefox hover approximation (Firefox can't style thumb hover directly) */
.layout_rows_container:hover {
  scrollbar-color: #9ca3af #f9fafb;
}

/* Chrome, Edge, Safari scrollbar */
.layout_rows_container::-webkit-scrollbar {
  width: 6px;
}

.layout_rows_container::-webkit-scrollbar-track {
  background: #f9fafb;
}

.layout_rows_container::-webkit-scrollbar-thumb {
  background: #d1d5db;
  border-radius: 3px;
}

.layout_rows_container::-webkit-scrollbar-thumb:hover {
  background: #9ca3af;
}

.alerts-table-nav {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica', 'Arial', sans-serif;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.875rem 1rem;
  background: #ffffff;
  border-top: 1px solid #e5e7eb;
  gap: 1rem;
  flex-shrink: 0;
}

.alerts-table-nav>div:first-child {
  color: #374151;
  font-weight: 500;
  font-size: 0.875rem;
  min-width: 150px;
}

.alerts-table-nav>div:last-child {
  display: flex;
  align-items: center;
  gap: 0.5em;
  margin-left: auto;
}

.alerts-nav-btn {
  background: #7c3aed;
  color: white;
  border: 1px solid #7c3aed;
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 0.875rem;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  font-weight: 500;
}

.alerts-nav-btn:hover {
  background: #6d28d9;
  color: white;
  border-color: #6d28d9;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.alerts-nav-btn:hover i {
  color: white;
}

.alerts-nav-btn:active {
  transform: translateY(0) scale(1);
  box-shadow: 0 2px 4px var(--card-shadow);
}

.alerts-nav-btn:disabled {
  background: #e5e7eb;
  color: #9ca3af;
  border-color: #e5e7eb;
  cursor: not-allowed;
  opacity: 0.6;
  box-shadow: none;
}

.alerts-nav-btn:disabled:hover {
  background: var(--bg-alt);
  color: var(--fc-inactive);
  box-shadow: none;
  transform: none;
  scale: 1;
}

.alerts-nav-btn:disabled i {
  color: var(--fc-inactive);
}

.alerts-nav-btn:disabled:hover i {
  color: var(--fc-inactive);
}

.alerts-nav-btn i {
  color: white;
}

.alerts-table-nav span {
  color: var(--fc-main);
  font-weight: 500;
  min-width: 2em;
  text-align: center;
  font-size: 0.875rem;
}

.darkmode .alerts-table-nav span {
  color: var(--table-fc);
}

.appointment-header {
  font-weight: bold;
}

.appointment-row {
  font-size: var(--fs-100);
  display: grid;
  grid-template-columns: 100px 75px 75px 75px 175px 175px 175px 175px 175px;
  align-items: center;
  gap: 1em;
  min-height: 35px;
  padding: 0.75rem 1rem;
}

.appointment-row div:nth-child(5),
.appointment-row div:nth-child(6),
.appointment-row div:nth-child(7),
.appointment-row div:nth-child(8),
.appointment-row div:nth-child(9) {
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
}

/* small left padding for first column so data isn't flush to edge */
.appointment-row div:first-child {
  padding-left: 0.5rem;
}

.tooltip-inner {
  max-width: 500px !important;
  text-align: left;
}

.navdisable {
  color: lightgrey !important;
  pointer-events: none;
}

.navdisable i {
  color: lightgrey
}

.filterdateinput {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.date-input-error {
  position: absolute;
  z-index: -1;
  background-color: red;
  color: white;
  top: 35px;
  opacity: 0;
  padding: 10px;
  border-radius: 5px;
}

.date-input-error.active {
  opacity: 1;
  z-index: 3000;
}

.scheduling-row {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica', 'Arial', sans-serif;
  font-size: 0.875rem;
  display: grid;
  grid-template-columns: 200px 300px 75px 200px 200px;
  align-items: center;
  gap: 1rem;
  min-height: 44px;
  padding: 0.75rem 1rem;
  color: var(--fc-main);
}

.layout_header.scheduling-row div {
  display: flex;
  align-items: center;
  gap: 0.5em;
  justify-content: flex-start;
  text-align: left;
}

.scheduling-row div {
  display: flex;
  align-items: center;
}

.scheduling-row div:nth-child(4),
.scheduling-row div:nth-child(5) {
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
}

/* Scheduling table wrapper & header styling (scoped to scheduling) */
.scheduling-table-wrapper {
  display: flex;
  flex-direction: column;
  height: calc(100vh - 200px);
  min-height: 420px;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  background: var(--bg-card);
  border: 1px solid #e5e7eb;
}

.scheduling-table-summary {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica', 'Arial', sans-serif;
  color: #374151;
  font-size: 0.875rem;
  padding: 0.75rem 1rem;
  background: #ffffff;
  border-bottom: 1px solid #e5e7eb;
  font-weight: 600;
}

.layout_header.scheduling-row {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica', 'Arial', sans-serif;
  background: linear-gradient(135deg, #7c3aed 0%, #a855f7 100%);
  border-radius: 8px 8px 0 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  padding: 0.75rem 1rem;
  font-weight: 600;
  color: white;
  position: sticky;
  top: 0;
  z-index: 100;
  font-size: 0.875rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* Schedule Weeks select - wider and styled similar to resource button */
.schedule-weeks-select {
  min-width: 260px;
  display: inline-block;
  padding: 0.45rem 0.75rem;
  border-radius: 6px;
  background: #6c757d;
  /* match .btn-secondary */
  color: #ffffff;
  border: 1px solid #6c757d;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica', 'Arial', sans-serif;
  font-size: 0.875rem;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  vertical-align: middle;
}

.schedule-weeks-select[disabled] {
  opacity: 0.8;
  cursor: not-allowed;
}

.scheduling-table-wrapper .layout_rows_container {
  overflow: auto;
  flex: 1 1 auto;
  padding: 0;
}

/* Firefox scrollbar */
.scheduling-table-wrapper .layout_rows_container {
  scrollbar-width: auto;
  scrollbar-color: #8b5cf6 #f3e8ff;
}

/* Chrome, Edge, Safari scrollbar */
.scheduling-table-wrapper .layout_rows_container::-webkit-scrollbar {
  width: 10px;
}

.scheduling-table-wrapper .layout_rows_container::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #7c3aed 0%, #a855f7 100%);
  border-radius: 8px;
}

.resourceheader {
  font-size: var(--fs-175);
  font-weight: bold;
}

#audituserlist div a {
  color: var(--fc-main);
}

.auditusersearchlist {
  border: .1px solid var(--bga-main);
  padding: 5px;
}

.auditpatientsearchlist {
  border: .1px solid var(--bga-main);
  padding: 5px;
}

.tooltip {
  z-index: 5000;
}

.patscan-row {
  font-family: lato, sans-serif;
  font-size: var(--fs-100);
  display: grid;
  grid-template-columns: 30px 150px 200px;
  align-items: center;
  gap: 1em;
  column-gap: 1em;
  height: 35px;
}

.layout_patscan_rows_container {
  overflow-y: auto;
  overflow-x: hidden;
  max-height: 200px;
  min-width: 10svw;
}

.patscan-row div:nth-child(1) {
  justify-self: center;
}

/**Demograpics Section**/
.demo_title {
  font-family: raleway, sans-serif;
  font-variant: small-caps;
  font-size: var(--fs-200);
  font-weight: 700;
  margin: 0;
}

.card {
  max-width: 1000px;
  max-height: 87svh;
  margin: 0 auto;
  background: var(--bg-card);
  border-radius: 8px;
  box-shadow: 0 2px 8px var(--card-shadow);
  padding: 18px;
  /**overflow-y: auto;*/
}

.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #eee;
  padding-bottom: 12px;
  margin-bottom: 12px
}

.patient-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 10px
}

.contact-container {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.field {
  font-family: Lato, sans-serif;
  display: flex;
  flex-direction: column;
  padding: 8px;
  border-radius: 6px;
  background: #fbfdff;
  border: 1px solid #f0f4f8
}

.flex-field {
  flex: 1;
  min-width: 220px;
}

.nonflex-field {
  width: 220px;
}

.label {
  font-size: var(--fs-75);
  color: #6b7280;
  margin-bottom: 6px
}

.value {
  font-size: var(--fs-100);
  color: #0f172a;
  font-weight: 600
}

.section-title {
  font-size: var(--fs-150);
  color: var(--section-title-color);
  margin-top: 12px;
  margin-bottom: 6px
}

.actions {
  font-size: var(--fs-175);
}

button {
  background: #0369a1;
  color: #fff;
  border: 0;
  padding: 8px 12px;
  border-radius: 6px;
  cursor: pointer
}

button.secondary {
  background: #e2e8f0;
  color: #0f172a
}

@media (max-width:640px) {
  .patient-grid {
    grid-template-columns: 1fr
  }
}

/**End Demograpics Section**/