/* #### GENERAL #### */
html {
  font-size: 14px;
  position: relative;
  min-height: 100%;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

body {
  margin-bottom: 60px;
}

/* #### LOGO #### */
.logo .logo-lg img {
    height: 50px;
    margin-bottom: 10px;
}

.logo .logo-sm img {
    height: 30px;
}

.leftside-menu .logo-light {
    background-color: #c8d4eb !important;
}

/* #### SIDEBAR #### */
.simplebar-wrapper {
    background-color: rgb(0, 51, 110) !important;
}

/* Hovering Menu Links */
.simplebar-content .side-nav .side-nav-link:hover,
.sidebar-enable .simplebar-content .side-nav .side-nav-link:active,
.side-nav-second-level > li > a:hover {
    color: white !important;
    background-color: rgb(124, 193, 67) !important;
}

/* Widen the sidebar while Clinical Forms is expanded so long form names stay readable. */
@media (min-width: 768px) {
  html.forms-nav-open:not([data-sidenav-size='condensed']):not([data-sidenav-size='compact']) {
    --ct-leftbar-width: 400px;
  }
}

#sidebarForms .side-nav-second-level > li > a {
  white-space: normal;
  line-height: 1.35;
  padding-top: 0.55rem;
  padding-bottom: 0.55rem;
}

/* Active menu background on minimized bar */
html[data-sidenav-size=condensed]:not([data-layout=topnav]) .wrapper .leftside-menu .side-nav .side-nav-item:hover .side-nav-link {
    background-color: rgb(124, 193, 67) !important;
}

.primary-theme {
    background-color: #c8d4eb !important;
}

/* #### FORM COMPONENTS #### */
.btn-primary, .btn-primary:active, .btn-primary:focus {
    background-color: rgb(124, 193, 67) !important;
    border: 0 !important;
    color: #fff;
}

.btn-primary:hover {
    background-color: #57c100 !important;
}

.btn-secondary {
    background-color: rgb(0, 51, 110) !important;
    color: #fff;
    border: 0;
}

.btn-secondary:hover {
    background-color: rgb(124, 193, 67) !important;
}

[data-code-character] {
    text-align: center;
}

/* #### COLOR UTILS #### */
.cr-green {
    color: rgb(124, 193, 67);
}

.cr-green-bg {
    background-color: rgb(124, 193, 67);
}

.cr-blue {
    color: rgb(0, 51, 110);
}

.cr-blue-bg {
    background-color: rgb(0, 51, 110);
}

.page-title-box {
  margin-bottom: 1.5rem;
}

.page-title {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 600;
  color: rgb(0, 51, 110);
}

.footer {
  padding: 1rem 1.5rem;
  background: #fff;
  border-top: 1px solid #dee2e6;
  color: #6c757d;
  font-size: 0.875rem;
}

.toast-container {
  position: fixed;
  top: 80px;
  right: 10px;
  z-index: 1050;
  max-width: 350px;
}

.toast-notification {
  margin-bottom: 0.5rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.toast-body {
  font-size: 16px;
  line-height: 1.5;
}

.stepper {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    text-align: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.step {
    cursor: pointer;
    flex: 1;
    min-width: 80px;
    position: relative;
}

.circle {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: #ccc;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: auto;
    font-size: 14px;
    color: white;
}

.step.active .circle {
    background-color: rgb(0, 51, 110);
}

.step.completed .circle {
    background-color: rgb(124, 193, 67);
}

.step p {
    font-weight: bold;
    margin-top: 5px;
    font-size: 0.75rem;
    line-height: 1.2;
    padding: 0 4px;
}

.status {
    font-size: 12px;
    color: gray;
}

.step.active .status {
    color: #0d6efd;
}

.step.completed .status {
    color: green;
}

.signature-canvas {
    cursor: crosshair;
    width: 100%;
    height: 160px;
    max-height: 160px;
    border: 1px solid #dee2e6;
    border-radius: 0.25rem;
    background: #fff;
}

.form-step {
    display: none;
}

.form-step.active {
    display: block;
}

.sticky-footer {
    position: sticky;
    bottom: 0;
    background: white;
    padding: 10px 0;
    box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

.nan-heading {
    background-color: #c8d4eb !important;
    padding: 8px 12px;
    font-weight: 600;
    margin-bottom: 1rem;
    border-radius: 0.25rem;
}

.clinical-form-heading {
    background-color: #1a6b6e;
    color: #fff;
    padding: 8px 12px;
    font-weight: 600;
    margin-bottom: 1rem;
    border-radius: 0.25rem;
}

.btn-pill {
    border-radius: 50px !important;
    padding: 5px 16px !important;
    font-size: 14px !important;
    margin-right: 15px;
    margin-bottom: 8px;
}

.kpi-btn.active {
    background-color: rgb(0, 51, 110);
    color: white;
    border-color: rgb(0, 51, 110);
}

.required-text {
    color: red;
    margin-left: 10px;
}

.doc-thumbnail {
    cursor: pointer;
}

.card {
  border: none;
  box-shadow: 0 0 35px rgba(154, 161, 171, 0.1);
  margin-bottom: 1.5rem;
}

.nav-tabs .nav-link.active {
  color: rgb(0, 51, 110);
  border-bottom: 2px solid rgb(124, 193, 67);
}

.tristate-checkbox {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.tristate-checkbox .state-indicator {
  width: 20px;
  height: 20px;
  border: 2px solid #adb5bd;
  border-radius: 3px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  user-select: none;
}

.tristate-checkbox .state-indicator.checked {
  background-color: rgb(124, 193, 67);
  border-color: rgb(124, 193, 67);
  color: white;
}

.tristate-checkbox .state-indicator.indeterminate {
  background-color: #ffc107;
  border-color: #ffc107;
}

.profile-dropdown {
  min-width: 180px;
}

.dropdown-item {
  cursor: pointer;
}

.dx-datagrid {
  background: #fff;
}

.loading-overlay {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 200px;
}

.grid-filter-cell {
  position: relative;
}

.grid-filter-icon {
  position: absolute;
  left: 8px;
  top: 50%;
  transform: translateY(-50%);
  color: #adb5bd;
  font-size: 13px;
  pointer-events: none;
}

.grid-filter-cell .form-control {
  padding-left: 1.6rem;
}

.patient-select {
  position: relative;
}

.patient-select-box {
  position: relative;
}

.patient-select-box .form-control {
  padding-right: 4.25rem;
  cursor: pointer;
  background-color: #fff;
}

.patient-select-actions {
  position: absolute;
  top: 1px;
  right: 1px;
  bottom: 1px;
  display: flex;
  align-items: stretch;
}

.patient-select-btn {
  border: 0;
  background: transparent;
  color: #6c757d;
  width: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.patient-select-btn:hover:not(:disabled) {
  color: #343a40;
  background: #f1f3f5;
}

.patient-select-btn:disabled {
  opacity: 0.5;
}

.patient-select-dropdown {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 2px);
  z-index: 1050;
  background: #fff;
  border: 1px solid #ced4da;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.12);
}

.patient-select-dropdown .table-responsive {
  overflow-y: auto;
}

.patient-select-dropdown thead {
  position: sticky;
  top: 0;
  z-index: 2;
}

.patient-select-dropdown thead th {
  background: #f8f9fa;
  white-space: nowrap;
}

.patient-select-dropdown tbody tr {
  cursor: pointer;
}

.storage-usage-scroll {
  max-height: 520px;
  overflow: auto;
}

.storage-usage-table thead th {
  position: sticky;
  top: 0;
  background: #f8f9fa;
  z-index: 1;
  white-space: nowrap;
}

.storage-usage-table tbody tr {
  cursor: pointer;
}

.storage-usage-table tbody tr.selected {
  background-color: #e8f0ff;
}

.storage-size {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.storage-bar {
  height: 22px;
}

.pdf-splash {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f4f6f9;
  padding: 1.5rem;
}

.pdf-splash-card {
  width: min(440px, 100%);
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 12px 40px rgba(15, 34, 58, 0.08);
  padding: 2.25rem 2rem;
  text-align: center;
}

.pdf-splash-percent {
  font-size: 2.75rem;
  font-weight: 700;
  letter-spacing: -0.04em;
  color: var(--bs-primary, #727cf5);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.pdf-splash-bar {
  height: 10px;
  border-radius: 999px;
  overflow: hidden;
}

.pdf-viewer {
  display: flex;
  flex-direction: column;
  height: 100vh;
  background: #1f2937;
}

.pdf-viewer-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.65rem 1rem;
  color: #fff;
  background: #111827;
}

.pdf-viewer-frame {
  flex: 1;
  width: 100%;
  border: 0;
  background: #525659;
}

