:root {
    --sidebar-width: 200px;
    --sidebar-collapsed-width: 70px;
    --primary-color: #226591;
    --primary-hover: #165a8f;
    --text-dark: #414651;
    --text-muted: #6b7280;
    --border-color: #CAE1F0;
    --bg-light: #E9F2F8;
    --bg-page: #F4F9FC;

    /* OVERRIDE */
    --pry-color: #226591;
    --pry-darker-color: #226591;
    --pry-dark-color: #165a8f;
    --text-pry-color: #165a8f;
    --pry-light-color: #def1ff;
    --pry-lighter-color: #edf6fc;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif !important;
    background-color: var(--bg-page);
    color: var(--text-dark);
    overflow-x: hidden;
    font-size: 15px;
}
.title, .subtitle, .mercury {
  font-family: 'Inter', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif !important;
}
.fw-bold, b, strong {
  font-weight: 600 !important;
}
.text-grey {
  color: var(--text-dark);
}
.pp-img {
  height:35px;
  width:35px;
  background-color: #ffffff;
  border-radius: 5px;
  overflow: hidden;
  position: relative;
}
.pp-img img{
  object-fit: cover;
  width: 100%;
  height: 100%;
}
.time-box {
  height:55px;
  width:55px;
  border-radius: 5px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(23, 106, 207, .2);
  background-color: #D5E2EB;
  color: #333;
}
.time-box.upcoming {
  background-color: #176ACF;
  color: #fff;
}
.border-pry {
  border-color: var(--border-color) !important;
}
.text-sm, .text-sm * {
  font-size: 12.5px !important;
}
.text-muted {
  color: var(--text-muted) !important;
}
nav.navbar {
  z-index: 101;
  background-color: var(--pry-darker-color);
  position: fixed;
  width: 100%;
}
main {
  margin-top: 60px;
}
.subheader {
  font-size: 17px;
}
.on-hover-opaque {
    opacity: 0.6;
  }
.on-hover-opaque:hover,.on-hover-opaque:focus {
    opacity: 1;
  }
  .on-hover-show {
    position: relative;
}
.on-hover-show:hover .on-hover-content {
    opacity: 1;
    pointer-events: all;
}
.on-hover-show .on-hover-content {
    position: absolute;
    max-width: 350px;
    right: 0;
    top: 100%;
    background: #fff;
    opacity: 0;
    padding: 0 0.75rem;
    padding-bottom: 0.5rem;
    box-shadow: 0 0 2px #999;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 9;
}
.on-hover-show.left .on-hover-content {
    right: auto;
    left: 0;
}
.dropdown-menu {
  min-width: 200px;
  max-height:500px;
  overflow-y: auto;
  overflow-x: hidden;
  border-radius: 8px !important;
  z-index: 101;
}
#admin-dropdown-menu.dropdown-menu {
  max-height: calc(100vh - 70px);
}
#admin-dropdown-menu.dropdown-menu .dropdown-item {
  padding: 6px 15px;
}
.dropdown-item {
  font-size: 13px;
  color: #000000;
}
.dropdown-item.active {
  /* background-color: var(--bg-light); */
}
/* Sidebar Styles */
.main-sidebar {
    position: fixed;
    left: 0;
    top: 60px;
    height: calc(100vh - 60px);
    width: var(--sidebar-width);
    background: white;
    border-right: 1px solid #D5E2EB;

    /* transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); */
    /* overflow: hidden; */
    z-index: 0;
    display: flex;
    flex-direction: column;
}

.main-sidebar.collapsed {
    width: var(--sidebar-collapsed-width);
}

.main-sidebar.collapsed .nav-section-header{
    display: none;
}

.main-sidebar-logo {
    padding: 15px 0;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--pry-color);
}
.lg-icon {
  display: none;
}
.logo {
  display: block;
}
.scrollable {
  position: relative;
  overflow-x: auto;
  scrollbar-width: 4px;
  -ms-overflow-style: none;
}
.scrollable::-webkit-scroll-bar {
  width: 4px;
  height: 4px;
}
.sticky-col {
  position: sticky;
  background: #fff !important;
  z-index: 1;
}
thead .sticky-col {
  position: sticky;
  background: #F8F9FA !important;
  z-index: 1;
}
.scrollable thead {
  position: sticky;
  top: -1px;
  z-index: 2;
    border-top:1px solid #ddd;
}
th, td {
   vertical-align: middle;
   padding: 8px;
 }
 th {
   color: #717680 !important;
   font-size: 13px;
   font-weight: 600;
 }
 td {
   font-size: 13px;
 }
.table-hover>tbody>tr:hover>* {
    --bs-table-bg-state: #F7FCFF !important;
    --bs-table-accent-bg: #F7FCFF !important;
}
.main-sidebar.collapsed .logo {
    display: none;
}
.main-sidebar.collapsed .lg-icon {
    display: block;
}
.main-sidebar.collapsed .form-group {
  display: none;
}
.main-sidebar-nav {
    overflow-y: auto;
    overflow-x:hidden;
    flex: 1;
    background-color: #fff;
    display: flex;
    flex-direction: column;
}
.nav-section-header {
  cursor: pointer;
  user-select: none;
  display: block;
  opacity: 0.75;
}

.nav-section-header:hover {
  opacity: 0.55;
}
.truncate {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
}
.section-caret {
  transition: transform 0.2s ease;
  width: 10px;          /* keeps alignment consistent */
  display: inline-block;
  text-align: center;
}
*::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

*::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 8px;
}
.main-sidebar hr {
  height: 1px !important;
}
.side-item {
    padding:7px 9px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: #414651;
    text-decoration: none;
    transition: all 0.2s;
    cursor: pointer;
    white-space: nowrap;
    font-size: 14px;
    position: relative;
    border-radius: 8px;
}

/* .side-item:hover {
    background: var(--bg-light);
    color: var(--primary-color);
} */
[data-editable] {
  cursor: pointer;
}
[data-editable]:hover > b {
  color: var(--pry-color);
}
.side-item.active {
    background: var(--bg-light);
    color: var(--primary-color);
    font-weight: 500;
}
.side-item:hover {
    background: #7772;
}

.side-item i {
    min-width: 15px;
    text-align: center;
    font-size: 14px;
    opacity: .8;
}

.side-item .nav-text {
    flex: 1;
    opacity: 1;
    font-weight: 400;
    font-size: 12px;
    transition: opacity 0.2s;
}

.main-sidebar.collapsed .nav-text,
.main-sidebar.collapsed .submenu,
.main-sidebar.collapsed .fa-chevron-down {
    opacity: 0;
    width: 0;
    height: 0;
    position: absolute;
}
.main-sidebar.collapsed .side-item {
  padding: 8px;
  flex-direction: column;
}

.side-item .fa-chevron-down {
    font-size: 11px;
    transition: transform 0.3s;
}

.side-item.open .fa-chevron-down {
    transform: rotate(180deg);
}

.submenu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    /* background: var(--bg-light); */
}

.submenu.show {
    max-height: 200px;
}

.submenu .side-item {
    padding-left: 50px;
    padding-right: 10px;
    font-size: 14px;
    background: #fff;
    border-radius: 8px;
    margin-bottom: 5px;
}

.submenu .side-item:hover,.submenu .side-item.active {
  background: var(--bg-light);
  color: var(--primary-color);
}

.main-sidebar-promo {
    margin-top: auto;
    border:1px solid var(--pry-color);
    background-color: var(--pry-lighter-color);
    border-radius: 12px;
    padding: 15px;
    color:var(--pry-color);
    opacity: 1;
    transition: 0.2s;
    display: flex;
    flex-direction: column;
    min-height: 150px;
}

.main-sidebar.collapsed .main-sidebar-promo {
    display: none;
    transition: 0.2s;
}


.promo-text {
    font-size: 16px;
    font-weight: 600;
    line-height: 1.3;
}

.promo-btn {
    background: white;
    color: var(--primary-color);
    border: none;
    padding: 11px 10px;
    border-radius: 9px;
    font-weight: 600;
    width: 100%;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
}

.main-sidebar-promo:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.toggle-sidebar {
    position: absolute;
    top: 15px;
    right: -15px;
    width: 30px;
    height: 30px;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 11;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.2s;
}

.toggle-sidebar:hover {
    background: var(--bg-light);
}

.toggle-sidebar i {
    font-size: 12px;
    color: var(--text-muted);
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 24px;
    box-shadow: 0 4px 16px rgba(30, 107, 168, 0.4);
    z-index: 999;
    cursor: pointer;
    transition: all 0.3s;
}

.mobile-menu-btn:active {
    transform: scale(0.95);
}

/* Main Content */
.main-content {
    margin-left: var(--sidebar-width);
    transition: margin-left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    min-height: calc(100vh - 60px); /* minus nav height */
}

.main-content.expanded {
    margin-left: var(--sidebar-collapsed-width);
}

/* Top Bar */
.top-bar {
    background: var(--bg-page);
    padding: 13px 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 3;
}
.top-bar::after {
  content: '';
  position: absolute;
  bottom: 0;
  width: 96%;
  border-bottom: 1px solid var(--border-color);
}
.breadcrumb {
    background: none;
    padding: 0;
    margin: 0;
    font-size: 14px;
}

.breadcrumb-item a {
    color: var(--text-muted);
    text-decoration: none;
}

.breadcrumb-item.active {
    color: var(--text-dark);
    font-weight: 500;
}

.top-bar-right {
    display: flex;
    align-items: center;
    gap: 18px;
}

.icon-btn {
    background: none;
    border: none;
    font-size: 20px;
    color: var(--text-muted);
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: all 0.2s;
}
.user-profile {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    padding: 6px 0px;
    border-radius: 8px;
    transition: all 0.2s;
}

.user-avatar {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #d1d5db 0%, #9ca3af 100%);
    border-radius: 50%;
}

.user-info .name {
    font-weight: 600;
    font-size: 14px;
    color: var(--text-dark);
    line-height: 1.3;
}

.user-info .role {
    font-size: 12px;
    color: var(--text-muted);
}
.welcome-section h1, .header {
    font-size: 28px;
    font-weight: 600;
}

/* Content Area */
.content-area {
    padding: 15px 20px;
    /* max-width: 1600px; */
}

.welcome-section p {
    color: var(--text-muted);
    font-size: 15px;
}
.pill-teal {
    display: inline-block;
    background: #D8F8F2;
    border-radius: 5px;
    color: #131117;
    font-weight: 600;
    font-size: 12px;
    line-height: 12px;
    padding: 5px 8px;
}
.pill-orange {
    display: inline-block;
    background: #FFE7DA;
    border-radius: 5px;
    border:1px solid #F8AC83 !important;
    color: #AE3D18 !important;
    font-weight: 600;
    font-size: 12px;
    line-height: 12px;
    padding: 5px 8px;
}
.pill-warning {
    display: inline-block;
    background: #F6EFC5;
    border-radius: 5px;
    border:1px solid #B54708 !important;
    color: #B54708 !important;
    font-weight: 600;
    font-size: 12px;
    line-height: 12px;
    padding: 5px 8px;
}

.pill-success {
    display: inline-block;
    background: #E8FAED;
    border-radius: 5px;
    border:1px solid #1BB77D !important;
    color: #1BB77D !important;
    font-weight: 600;
    font-size: 12px;
    line-height: 12px;
    padding: 5px 8px;
}
.pill-success-fade {
    display: inline-block;
    background: rgba(23, 179, 106, .2);
    border-radius: 5px;
    color: #23925F !important;
    font-weight: 600;
    font-size: 12px;
    line-height: 12px;
    padding: 5px 8px;
}

.pill-danger {
    display: inline-block;
    background: #FEF3F2;
    border-radius: 5px;
    border:1px solid #E31D1C !important;
    color: #E31D1C !important;
    font-weight: 600;
    font-size: 12px;
    line-height: 12px;
    padding: 5px 8px;
}
.pill-danger-fade {
    display: inline-block;
    background: rgba(198, 53, 42, .14);
    border-radius: 5px;
    color: #C53429 !important;
    font-weight: 600;
    font-size: 12px;
    line-height: 12px;
    padding: 5px 8px;
}
.pill-fade {
    display: inline-block;
    background: #F6F6F6;
    border-radius: 5px;
    color: #9B9B9B !important;
    font-weight: 600;
    font-size: 12px;
    line-height: 12px;
    padding: 5px 8px;
}
.pill-info {
    display: inline-block;
    background: #EFF9FF;
    border-radius: 5px;
    color: #084F7E !important;
    border:1px solid #B1D8F2 !important;
    font-weight: 600;
    font-size: 12px;
    line-height: 12px;
    padding: 5px 8px;
}
.pill-purple {
    display: inline-block;
    background: #F5EDFF;
    border-radius: 5px;
    color: #353535 !important;
    border:1px solid #BA9AE2 !important;
    font-weight: 600;
    font-size: 12px;
    line-height: 12px;
    padding: 5px 8px;
}
.pill-secondary {
  display: inline-block;
  background: #EFF9FF;
  border-radius: 5px;
  color: #919394 !important;
  border:1px solid #909091 !important;
  font-weight: 600;
  font-size: 12px;
  line-height: 12px;
  padding: 5px 8px;
}
.pill-dark {
  display: inline-block;
  background: #EFF9FF;
  border-radius: 5px;
  color: #424344 !important;
  border:1px solid #6b6b6b !important;
  font-weight: 600;
  font-size: 12px;
  line-height: 12px;
  padding: 5px 8px;
}
.sidenav .hr-num {
  height: 35px;
  width: 35px;
  margin-left: 8px;
  border-radius: 100%;
  display: grid;
  place-items: center;
  background-color: #CAE1F0;
  color: #226591;
  position: relative;
  z-index: 1;
  border: 5px solid transparent;
  transition: .5s;
}
.sidenav a:hover .hr-num{
  transition: .5s;
  background-color: #08415C;
  color: #fff;
}
.hr-num.checked {
  background-color: #08415C;
  color: #fff;
}
.sidenav::before {
  content: '';
  position: absolute;
  border-left:2px solid #CAE1F0;
  height: 85%;
  margin-top:12%;
  z-index: 0;
  left: 12.5%;
}
.sidenav a:not(:last-child) {
    border:none;
}
.sidenav a {
  display: flex;
  align-items: center;
  font-weight: 400;
  padding: 10px;
  color: #7A7A7A;
}

.sidenav a:hover {
    color: #226591 !important;
}
.sidenav a.active, .sidenav a.active:hover {
    background-color: transparent !important;
    color: #08415C !important;
    font-weight: 500;
}
.sidenav a:has(.hr-num.checked) {
  color: #08415C;
}
.sidenav a.active .hr-num {
  border-color: #fff;
  outline:1px solid #eee;
  color: #61BDDA;
  background-color: #61BDDA;
  border-width:7px;
}
.settings-container {
  display: flex;
  align-items: flex-start;
}
.settings-nav {
  overflow: hidden;
  border-top-left-radius: 12px;
  border-bottom-left-radius: 12px;
  border:1px solid #CDCCD3;
  flex-basis: 20%;
  background-color: #ffffff;
  border-right: 0;
}
.settings-content {
  overflow: hidden;
  border-top-right-radius: 12px;
  border-bottom-right-radius: 12px;
  border:1px solid #CDCCD3;
  border-left:1px solid #CDCCD3;
  background-color: #ffffff;
  padding: 40px 20px;
  width: 100%;
}
.settings-nav {
 overflow: hidden;
 border:0;
 width: 100%;
 flex-basis:30%;
 background: none;
}
.form-control {
 height: 34px;
 background-color: #FAFAFA;
}
textarea.form-control {
  height: 64px;
}
.mwp-tabs .nav-tabs{
  border-bottom:1px solid #eee;
}
.mwp-tabs .nav-tabs .nav-link {
  border:none;
  border-bottom:2px solid transparent;
}
.mwp-tabs .nav-tabs .nav-item.show  .mwp-tabs .nav-link,  .mwp-tabs .nav-tabs .nav-link.active, .mwp-tabs .nav-tabs .nav-link:hover {
  border:none;
  border-bottom:2px solid var(--pry-color);
  background-color: var(--pry-lighter-color);
  color: var(--pry-color);
}
.select2-container--default .select2-selection--single {
 background-color: #FAFAFA;
}
.settings-content {
 overflow: hidden;
 width: 100%;
 background-color: #ffffff;
 border: 1px solid #ededed;
 border-radius: 12px;
 padding: 20px;
}
.ph-icon {
  height:35px;
  width:35px;
  background-color: #D1E6F1;
  color: #08415C;
  display: grid;
  place-items: center;
  border-radius: 100%;
}
.long-height {
 min-height: 70vh;
}
.select2-selection, .select2-container--default .select2-selection--single .select2-selection__arrow {
 min-height: 34px !important;
}
.settings-container {
 overflow-x: hidden;
 gap:20px;
}
.wide-btn {
 width: 30%;
}
a.disabled {
  color: var(--bs-btn-disabled-color);
  pointer-events: none;
  background-color: var(--bs-btn-disabled-bg);
  border-color: var(--bs-btn-disabled-border-color);
  opacity: var(--bs-btn-disabled-opacity);
}
.fc-timegrid-event {
  margin-bottom: 0px;
}
.fc-event-title.fc-sticky {
  white-space: nowrap;
}
/*.fc-timegrid-event-harness {
  height: 20px;
}*/
.fc .fc-scrollgrid-liquid {
  height: 86%;
}
.soap .form-control {
  background-color: rgba(255, 193, 7, .1);
  height:38px;
}
.soap textarea.form-control {
  height:58px;
  border-radius: 10px;
  resize: none;
}
.soap .form-control::placeholder {
  color: #888;
  font-weight: 200 !important;
  font-size: 13px;
}
.soap .form-control:disabled {
  opacity: .8;
}
.soap .card {
  overflow: hidden;
}
.soap .card-header {
  align-items: center;
  background-color: #fafafa;
  cursor: pointer;
  border:0;
  transition: .5s;
}
.soap .card-header:hover {
  transition: .5s;
  background-color: #eaf4fa;
}
.soap .card-body {
  border-top: 1px solid #ddd;
}
.card-summary {
  font-size: 12px;
  color: #333;
}
.soap .medication-item {
  background: #f8f9fa;
  padding: 0.75rem;
  border-radius: 0.375rem;
  margin-bottom: 0.5rem;
  border: 1px solid #dee2e6;
}
.vital-input {
  position: relative;
}
.vital-unit {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: #6c757d;
  font-size: 12px;
  pointer-events: none;
}
.vital-input input:focus ~ .vital-unit {
  top:-35%;
}
.soap .remove-btn {
  color: red;
}
.soap .section-label {
  font-size: 13px;
  font-weight: 600;
  margin: 1rem 0 0.5rem;
  border-bottom: 1px solid #dee2e6;
  padding-bottom: 0.25rem;
}
.diagnosis-item {
  background: #f8f9fa;
  padding: 0.75rem;
  border-radius: 0.375rem;
  margin-bottom: 0.5rem;
  border: 1px solid #dee2e6;
  cursor: move;
  transition: all 0.2s ease;
}
.suggestion-table td {
  padding: 5px !important;
  cursor: auto !important;
}
.suggestion-table td a {
  cursor: pointer;
}
/* download */
#soapNotePDF {
  max-width: 900px;
  margin: 0 auto;
  background: white;
  padding: 40px;
  box-shadow: 0 0 20px rgba(0,0,0,0.1);
  color: var(--pry-dark-color);
  line-height: 1.6;
  position: absolute;
  left: -9999px;
  top: -9999px;
}

.sn-container .header {
    border-bottom: 3px solid var(--pry-dark-color);
    padding-bottom: 20px;
    margin-bottom: 30px;
}

.sn-container .clinic-info {
    text-align: center;
    margin-bottom: 15px;
}

.sn-container .clinic-name {
    font-size: 24px;
    font-weight: 700;
    color: var(--pry-dark-color);
    margin-bottom: 5px;
}

.sn-container .clinic-details {
    font-size: 13px;
    color: #7f8c8d;
}

.sn-container .document-title {
    text-align: center;
    font-size: 20px;
    font-weight: 600;
    color: #34495e;
    margin-top: 15px;
    letter-spacing: 2px;
}

.sn-container .patient-info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px 30px;
    margin-bottom: 25px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 5px;
}

.sn-container .info-item {
    display: flex;
    font-size: 14px;
    color: #000000;
}

.sn-container .info-label {
    font-weight: 600;
    color: #34495e;
    min-width: 120px;
}

.sn-container .info-value {
    color: var(--pry-dark-color);
}

.sn-container .soap-section {
    margin-bottom: 25px;
    page-break-inside: avoid;
}
.page-break {
  page-break-before: always;
}
.sn-container .section-header {
  border-radius: 10px;
    background: #f8f9fa;
    color: var(--pry-color);
    padding: 10px 15px;
    font-weight: 600;
    font-size: 16px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.sn-container .section-content {
    padding: 0 15px;
    font-size: 14px;
}

.sn-container .section-content p {
    margin-bottom: 10px;
}

.sn-container .subsection {
    margin-bottom: 15px;
    display: flex;
    align-items: start;
    gap:10px;
}
.sn-container .subsection .card-summary {
  font-size: 13px;
}

.sn-container .subsection-title {
    font-weight: 600;
    margin-bottom: 0;
    font-size: 13px;
}

.sn-container .vital-signs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 5px;
    margin-bottom: 15px;
}

.sn-container .vital-item {
    text-align: center;
}

.sn-container .vital-label {
    font-size: 12px;
    color: #7f8c8d;
    font-weight: 600;
    text-transform: uppercase;
}

.sn-container .vital-value {
    font-size: 20px;
    font-weight: 700;
    color: var(--pry-dark-color);
    margin-top: 5px;
}

.sn-container .footer {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 2px solid #ecf0f1;
}

.sn-container .signature-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.sn-container .signature-label {
    font-size: 12px;
    color: #7f8c8d;
    font-weight: 600;
}
.tilt {
   transform: rotate(-45deg);
   font-size: 10px
}
.spot-highlight {
    background: aliceblue !important;
}
.on-click-menu [menu] {
    position: absolute;
    display: none;
    top: 100%;
    right: 0;
    z-index: 1;
    box-shadow: 0 0 4px #ccc;
}
.on-click-menu [menu][right] {
    right: auto;
    left: 0;
}
.on-click-menu [menu][bottom] {
    bottom: 100%;
    top: auto;
    left: 0;
    right: auto;
}
.zero-height {
    height: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    overflow: hidden;
}
.c-pointer {
  cursor: pointer;
}
.slot-date {
  width: 100%;
  min-width: 100px;
  display: flex;
  flex-direction: column;
  text-align: center;
  border:1px solid rgba(8, 65, 92,.2);
  padding: 10px;
  border-radius: 15px;
}
.slot-date.active {
  border-color:#08415C;
  background-color: #EFF4FB;
}
.slot-date span {
  color: #5B6367;
  opacity: .8;
  font-weight: 300;
}
.prev-date i, .next-date i{
  font-size: 20px;
}
.prev-date, .next-date {
  height:30px;
  width:30px;
  display: grid;
  place-items: center;
}
.slot-dates {
  display: flex;
  justify-content: space-between;
  overflow-x: auto;
  scroll-behavior: smooth;
  width: 100%;
  gap: 10px;
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.slot-dates::-webkit-scrollbar {
  display: none;
}
.btn-slot {
  border:1px solid rgba(8, 65, 92,.2);
}
.btn-slot:hover {
  background-color: #EFF4FB;
  border:1px solid rgba(8, 65, 92,.2);
}
.btn-slot.selected {
  background-color: #08415c;
  color: #fff;
}
.btn-confirm, .btn-confirm:hover, .btn-confirm:focus {
  background-color: #08415c;
  color: #fff;
  font-size: 15px;
  transition: .5s;
}
.btn-confirm:hover, .btn-confirm:focus {
  opacity: .9;
  transition: .5s;
}
.wistia_click_to_play {
  display: grid;
  place-items: center;
}
.wistia_click_to_play > div > div:nth-child(2),
.wistia_click_to_play > div > div:nth-child(3) {
  opacity: 0;
}
.wistia-popup {
  position: relative;
}
.wistia-popup .play-blue {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  height: 180px;
  width: 180px;
  animation: pulse-animation 5s infinite;
  cursor: pointer;
}
.wistia-popup .play-white {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  height: 120px;
  width: 120px;
  cursor: pointer;
  animation: pulse-animation 5s infinite;
}
.wistia-popup .play-white > img {
  width: 100%;
  height: 100%;
}

@keyframes pulse-animation {
  0% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
  }
  50% {
    transform: translate(-50%, -50%) scale(1.1);
    opacity: 0.95;
  }
  100% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
  }
}
.next-wrapper {
position: relative;
}
.next-wrapper::before {
  content: '';
  position: absolute;
  height:4px;
  background-color: #DAE1EC;
  width: 70%;
  margin-left: 15%;
  margin-top:55px;
  z-index: 1;
}
.next-wrapper img {
  position: relative;
  z-index: 2;
  width: 70px;
}
/* Responsive Design */
@media (max-width: 1200px) {
    .content-area {
        padding: 24px 24px 0 24px;
    }
}

@media (max-width: 1199px) {
    .main-sidebar {
        top: 0;
        transform: translateX(-100%);
        width: 250px;
        height: 100vh;
        box-shadow: none;
        z-index: 10;
    }
    .top-bar {
        padding: 16px 24px;
    }
    .top-bar::after {
      width: 94%;
    }
    .main-sidebar-logo {
      padding: 16px;
      justify-content: flex-start;
    }

    .main-sidebar.mobile-open {
        transform: translateX(0);
        box-shadow: 4px 0 24px rgba(0, 0, 0, 0.15);
    }

    .main-sidebar.collapsed {
        width: 280px;
    }
    .toggle-sidebar {
      right: 10px;
    }

    .main-content {
        margin-left: 0;
    }

    .main-content.expanded {
        margin-left: 0;
    }

    .mobile-menu-btn {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .content-area {
        padding: 10px 12px;
    }

    .welcome-section h1, .header {
        font-size: 24px;
    }

    .top-bar-right {
        gap: 12px;
    }

    /* Overlay for mobile menu */
    .mobile-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 9;
    }

    .mobile-overlay.active {
        display: block;
    }
}

@media (max-width: 576px) {
    .top-bar {
        padding: 16px;
    }

    .icon-btn {
        padding: 4px;
        font-size: 18px;
    }

}
@media  screen and (max-width: 991px) {
 .settings-content {
   border: none;
   border-radius: 0;
 }
 .wide-btn {
   width: 100%;
 }
}
@media  screen and (max-width: 580px) {
  .page-main-title {
      font-size: 28px;
  }
}
@media  screen and (min-width:1300px) and (max-width:1500px) {
  body {
    zoom: .8;
  }
  #appointmentModal .modal-xl {
    min-width: 100vw !important;
  }
  .modal-backdrop {
    width: 125vw;
    height: 125vw;
  }
  .fc-daygrid-body, .fc-col-header, .fc-scrollgrid-sync-table, .fc-timegrid-body, .fc-timegrid-body table {
    width: 100% !important;
  }
}
@media  screen and (max-width:545px) {
 .w-75 {
   width: 100% !important;
 }
 .settings-content {
   padding: 10px;
 }
}


@media  screen and (min-width:992px) {
    body.memos-expanded .content-area.client-single {
        margin-right: 320px;
    }
    body:not(.memos-expanded) .content-area.client-single {
        margin-right: 30px;
    }

    .memos-panel {
        position: fixed;
        right: 0;
        top: 60px;
        height: calc(100vh - 60px);
        width: 320px;
        background: #fff;
        padding: 0.5rem;
        border-left: 1px solid #ddd;
        z-index: 97;
    }

    .memos-panel.in-place {
        position: static;
        height: auto;
        width: auto;
        border: none;
        padding: 0;
    }

    .memos-vertical {
        display: flex;
        flex-direction: column;
        height: 100%;
    }

    .memo-input-form {
        flex: 0 0 auto;
    }

    .memo-memos-list {
        flex: 1 1 auto;
        overflow-y: auto;
        min-height: 0;
    }

}


.ps-card {
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    overflow: hidden;
    transition: box-shadow 0.2s ease;
    background: #fff;
}
.ps-card + .ps-card { margin-top: 1rem; }
.ps-card:hover { box-shadow: 0 2px 12px rgba(0,0,0,0.06); }

/* ── Group Header ── */
.ps-group-header {
    padding: 0.75rem 1rem;
    cursor: pointer;
    user-select: none;
    transition: background-color 0.15s ease;
    border-bottom: 1px solid transparent;
}
.ps-group-header:not(.collapsed) { border-bottom-color: #e2e8f0; }
.ps-group-header:hover { background-color: #f8fafc !important; }
.ps-group-header .ps-chevron {
    transition: transform 0.25s ease;
    color: #94a3b8;
    font-size: 0.75rem;
}
.ps-group-header.collapsed .ps-chevron { transform: rotate(-90deg); }

/* ── Progress Bar ── */
.ps-progress-track {
    height: 5px;
    border-radius: 999px;
    background: #cdd3da;
    overflow: hidden;
    flex: 1;
    max-width: 120px;
}
.ps-progress-fill {
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, #22c55e, #16a34a);
    transition: width 0.5s ease;
}

/* ── Table ── */
.ps-table { margin-bottom: 0 !important; }
.ps-table th {
    font-size: 0.68rem !important;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #64748b;
    padding: 0.55rem 0.75rem !important;
    border-bottom-width: 1px;
    white-space: nowrap;
    background: #f8fafc;
}
.ps-table td {
    font-size: 0.84rem !important;
    padding: 0.55rem 0.75rem !important;
    vertical-align: middle;
}
.ps-table tbody tr { transition: background-color 0.12s ease; }
.ps-table tbody tr:hover { background-color: #f8fafc; }
.ps-table tbody tr.ps-row-completed { background-color: #f0fdf4; }
.ps-table tbody tr.ps-row-completed:hover { background-color: #e8fbe9; }

/* ── Step Number Pill ── */
.ps-step-num {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.68rem;
    font-weight: 700;
    flex-shrink: 0;
}
.ps-step-num.completed { background: #dcfce7; color: #16a34a; }
.ps-step-num.pending   { background: #f1f5f9; color: #94a3b8; border: 1.5px solid #e2e8f0; }

/* ── Status / Disposition Badges ── */
.custom-tt {
  --bs-tooltip-bg: #fff;
  --bs-tooltip-color: #333;
  border: 1px solid #ddd;
  border-radius: .5rem;
}
.ps-badge {
    font-size: 0.72rem;
    font-weight: 600;
    padding: 0.18rem 0.55rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    white-space: nowrap;
    line-height: 1.4;
}
.ps-badge i { font-size: 0.55rem; }
.ps-badge-completed  { background: #dcfce7; color: #15803d; }
.ps-badge-inprogress { background: #dbeafe; color: #1d4ed8; }
.ps-badge-pending    { background: #fef3c7; color: #92400e; }
.ps-badge-notstarted { background: #f1f5f9; color: #64748b; }
.ps-badge-paused     { background: #f3e8ff; color: #7e22ce; }
.ps-badge-onhold     { background: #ffedd5; color: #c2410c; }
.ps-badge-cancelled  { background: #fee2e2; color: #991b1b; }
.ps-badge-default    { background: #f1f5f9; color: #475569; }

/* ── Memo Text ── */
.ps-memo {
    font-size: 0.76rem;
    color: #64748b;
    margin-top: 0.2rem;
    max-width: 260px;
    line-height: 1.35;
}

/* ── No-action muted label ── */
.ps-no-action {
    font-size: 0.76rem;
    color: #a1a1aa;
    font-style: italic;
}

/* ── Timestamp ── */
.ps-timestamp { font-size: 0.8rem; color: #334155; white-space: nowrap; }
.ps-timestamp-user { font-size: 0.72rem; color: #94a3b8; }

/* ── Group Done Check ── */
.ps-group-check {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem;
    flex-shrink: 0;
}
.ps-group-check.done     { background: #dcfce7; color: #16a34a; }
.ps-group-check.not-done { background: #f1f5f9; color: #cbd5e1; }

/* ── Counter Chip ── */
.ps-counter {
    font-size: 0.68rem;
    font-weight: 600;
    padding: 0.1rem 0.5rem;
    border-radius: 999px;
    background: #e2e5e8;
    color: #64748b;
}
.ps-counter.all-done { background: #dcfce7; color: #15803d; }

/* ── Empty State ── */
.ps-empty { padding: 2rem 1rem; }
.ps-empty i { font-size: 1.5rem; color: #cbd5e1; }

.psp-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    cursor: default;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.psp-dot i {
    font-size: 0.4rem;
    color: #fff;
}
.psp-dot:hover {
    transform: scale(1.35);
    box-shadow: 0 0 0 3px rgba(0,0,0,0.08);
}

/* ── Chat thread styles ────────────────────────────────── */
#memos-scroll-area {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 8px 4px;
}

.memo-chat-row {
    display: flex;
    align-items: flex-end;
    gap: 6px;
}

.memo-avatar {
    width: 28px;
    height: 28px;
    min-width: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 600;
    color: #fff;
    flex-shrink: 0;
}

.memo-avatar.staff {
    background: #4a90d9;
}

.memo-avatar.patient {
    background: #e8953a;
}


.memo-bubble {
  padding-top:8px;
}



.memo-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 2px;
    flex-wrap: wrap;
}

.memo-meta {
    justify-content: flex-start;
}

.memo-author {
    font-size: 11px;
    font-weight: 600;
    color: #555;
}

.memo-time {
    font-size: 10px;
    color: #999;
}

.memo-content {
    font-size: 12px;
    line-height: 1.4;
    word-break: break-word;
}
.truncate-5 {
    display: -webkit-box;
    -webkit-line-clamp: 5;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.truncate-3 {
  display: -webkit-box;
 -webkit-line-clamp: 3;
 -webkit-box-orient: vertical;
 overflow: hidden;
}
.truncate-2 {
  display: -webkit-box;
 -webkit-line-clamp: 2;
 -webkit-box-orient: vertical;
 overflow: hidden;
}

.memo-actions {
    display: flex;
    align-items: end;
    gap: 5px;
    margin-top: 3px;
}

.pinned-memos-container:not(.collapsed) .pinned-memos-expand {
    display: none;
}
.pinned-memos-container.collapsed .pinned-memos-collapse {
    display: none;
}

.is-staff .memo-actions {
    justify-content: flex-end;
}

.is-patient .memo-actions {
    justify-content: flex-start;
}

.memo-changes-box {
    background: rgba(255, 193, 7, 0.15);
    border-radius: 6px;
    padding: 4px 8px;
    margin-top: 6px;
    font-size: 11px;
}

.memo-attachments {
    margin-top: 4px;
}

.memo-attachments a {
    font-size: 11px;
    display: inline-flex;
    align-items: center;
    gap: 2px;
    background: rgba(0, 0, 0, 0.04);
    padding: 1px 6px;
    border-radius: 4px;
    margin-right: 4px;
    margin-top: 2px;
}

.memo-badges {
    display: flex;
    align-items: center;
    gap: 3px;
    flex-wrap: wrap;
    margin-top: 3px;
}

/* Date separator */
.memo-date-separator {
    text-align: center;
    margin: 4px 0;
    position: relative;
}
.memo-date-separator:first-of-type {
    margin-top: 0;
}

.memo-date-separator span {
    background: #fff;
    padding: 2px 12px;
    font-size: 10px;
    color: #aaa;
    position: relative;
    z-index: 1;
    border-radius: 10px;
    border: 1px solid #eee;
}

#sticky-entity-info {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.25s ease, transform 0.25s ease;
    will-change: opacity, transform;
}

#sticky-entity-info.is-hidden {
    opacity: 0;
    height: 0;
    transform: translateY(-4px);
    pointer-events: none;
}

::-webkit-calendar-picker-indicator {
    position: relative;
    z-index: 2000;
    display: block;
    -webkit-appearance: button;
    cursor: pointer;
}
input[type="date"],
input[type="time"], .ui-timepicker-container.ui-timepicker-standard {
    z-index: 1081 !important;
    pointer-events: auto !important;
}


#calendar.fc .fc-toolbar.fc-header-toolbar {
    align-items: flex-end;
}
#calendar.fc .fc-col-header-cell-cushion, .fc-daygrid-day-number {
    color: #333;
}
#calendar.fc .fc-event {
    cursor: pointer;
}
#calendar.fc td {
    padding-block: unset !important;
}
#calendar.fc .fc-timezoneSelector-button {
    padding: 0;
    background: transparent;
    border: none;
}
#calendar.fc #timezone-selector {
    padding: 6px 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    background-color: white;
    cursor: pointer;
}
#calendar.fc .fc-toolbar-chunk:first-child {
    display: flex;
    align-items: center;
    gap: 10px;
    background: transparent !important;
}
.fc-event-past, .fc-event-past .fc-daygrid-event-dot {
  color: #333;
  border-color: #333;
  opacity: .5;
}
.fc-event-past:hover{
  opacity: 1;
}
.fc-event-time, .fc-event-title {
  font-size: 11px
}
.calendar-sm.fc .fc-daygrid-body-unbalanced .fc-daygrid-day-events {
  max-height: 100px;
  overflow: auto;
}

#sticky-entity-info.client {
    top: 60px;
    position: sticky;
    z-index: 50;
    background: #fbf4e0
}