: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-dark-color: #165a8f;
    --text-pry-color: #226591;
    --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%;
}
.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: 3;
  background-color: var(--pry-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: 300px;
    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;
  border-radius: 8px !important;
}
.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;

    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-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;
}
.table {
  border-collapse: separate !important;
  border-spacing: 0;
}
th, td {
   vertical-align: middle;
   padding: 8px;
 }
 th {
   color: #717680 !important;
   font-size: 13px;
   font-weight: 600;
 }
 td {
   font-size: 14px;
   padding-block:10.5px !important;
 }
 .table tr:last-child td {
   border-bottom:none;
 }
.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;
}

*::-webkit-scrollbar {
    width: 4px;
}

*::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 8px;
}
.main-sidebar hr {
  height: 1px !important;
}
.side-item {
    padding:8px 10px;
    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 i {
    min-width: 15px;
    text-align: center;
    font-size: 14px;
    opacity: .8;
}

.side-item .nav-text {
    flex: 1;
    opacity: 1;
    font-weight: 500;
    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-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-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-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: 45px;
  width: 45px;
  margin-left: 3px;
  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, .sidenav a.active .hr-num {
  transition: .5s;
  background-color: #226591;
  color: #fff;
}
.hr-num.checked {
  background-color: #17B26A;
  color: #fff;
}
.sidenav::before {
  content: '';
  position: absolute;
  border-left:2px solid #CAE1F0;
  height: 88%;
  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: 600;
  padding: 10px;
  color: #28282B;
}
.sidenav a:hover {
    color: #226591 !important;
}
.sidenav a.active, .sidenav a.active:hover {
    background-color: transparent !important;
    color: #226591 !important;
}
.sidenav a.active .hr-num {
  border-color: rgba(201, 225, 240, .9);
}
.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;
}
.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;
}
.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);
}
.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;
}
/* 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 (max-width:545px) {
 .w-75 {
   width: 100% !important;
 }
 .settings-content {
   padding: 0;
 }
}
