﻿
/* Custom CSS for phone transcript style */
.conversation {
	color: #494949;
	color: #494949;
	display: flex;
	gap: 34px;
	margin-bottom: 48px;
	align-items: start;
	width: 100% !important;
}

	.conversation .icon {
		text-align: center;
	}

.user1 {
	float: right;
	text-align: right;
	flex-direction: row-reverse;
}

.text-block {
	padding: 16px;
	display: flex;
	flex-direction: column;
	gap: 7px;
	position: relative;
}

	.text-block label {
		font-weight: bold;
		font-size: 16px !important;
	}

.user1 .text-block {
	background: #FEF3E0;
	border-radius: 4px 0px 4px 4px;
}

	.user1 .text-block:after {
		content: "";
		display: block;
		width: 0;
		height: 0;
		border-left: 20px solid transparent;
		border-right: 20px solid transparent;
		border-bottom: 40px solid #FEF3E0;
		position: absolute;
		right: -8px;
		top: -11px;
		transform: rotate(-65deg);
	}

.user2 .text-block {
	background: #F1F3F9;
	border-radius: 0px, 4px, 4px, 4px;
}

	.user2 .text-block:after {
		content: "";
		display: block;
		width: 0;
		height: 0;
		border-left: 20px solid transparent;
		border-right: 20px solid transparent;
		border-bottom: 40px solid #F1F3F9;
		position: absolute;
		left: -19px;
		top: -11px;
		transform: rotate(-65deg);
	}

.reproducing .text-block {
	background-color: #4A90E2 !important; /* A pleasing blue shade */
	border: 2px solid #357ABD; /* A darker blue border for contrast */
	border-radius: 8px; /* Rounded corners */
	padding: 10px 15px; /* Add extra padding on the left to prevent clipping */
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1); /* Subtle shadow for depth */
	color: #fff; /* White text for readability */
	position: relative; /* Ensure proper positioning for the pseudo-element */
}

	.reproducing .text-block:after {
		content: ''; /* Ensure pseudo-element is visible */
		display: none;
	}




.call-end {
	width: 100%;
	display: flex;
	align-items: center;
	margin-bottom: 20px;
}

.lineCE {
	background-color: #494949;
	width: 100%;
	height: 1px;
}

.call-end span {
	display: block;
	text-align: center;
	flex-grow: 0;
	width: 190px;
	font-size: 14px;
}

.audio-media {
	width: 100%;
}

	.audio-media label {
		color: rgb(73, 73, 73);
		font-size: 12px;
		font-weight: 400;
		width: 60%;
	}

.re-transcribe-btn {
	border: solid 1px #04547B;
	color: #0E8BC7;
	text-transform: uppercase;
	background-color: transparent;
	border-radius: 0;
	display: inline-block;
	padding: 7px 12px;
	box-sizing: border-box;
	flex-grow: 0;
	font-size: 12px;
	flex-shrink: 0;
	margin-left: 16px;
}

	.re-transcribe-btn:hover {
		background-color: #04547B;
		color: #fff;
	}

.face {
	width: 56px;
	height: 56px;
	border-radius: 8px;
	background-color: #D9D9D9;
	margin-bottom: 10px;
	background-image: url(../images/face-neutral.png);
	background-repeat: no-repeat;
	background-position: center;
}

.Positive .face {
	background-color: #DDF3ED;
	background-image: url(../images/face-positive.png);
}

.Very.Positiv .face {
	background-color: #1ABC9C;
	background-image: url(../images/face-very-positive.png);
}

.Negative .face {
	background-color: #FEE1E5;
	background-image: url(../images/face-negative.png);
}

.Very.Negative .face {
	background-color: #F1556C;
	background-image: url(../images/face-very-negative.png);
}



.CollapsedDisplay {
	max-height: 200px; /* Show only summary */
	overflow: hidden;
	transition: max-height 0.3s ease-out;
	cursor: pointer;
	position: relative;
}

	.CollapsedDisplay.expanded {
		max-height: unset; /* Adjust as needed */
	}
	/* extra breathing room only while collapsed */
	.CollapsedDisplay:not(.expanded) {
		padding-bottom: 80px; /* ≥ indicator height */
	}

/* indicator stays glued to bottom edge */
.CollapsedIndicator {
	position: absolute;
	bottom: 0; /* align to new padding */
	left: 0;
	background: rgba(255,255,255,.8);
	width: 100%;
	text-align: center;
	padding: 10px 0;
	font-weight: bold;
	display: flex;
	justify-content: center;
	cursor: pointer; /* obvious it's clickable */
}

.summarized-content {
	max-height: 400px; /* Show only summary */
	overflow: hidden;
	transition: max-height 0.3s ease-out;
	cursor: pointer;
	position: relative;
}

	.summarized-content.expanded {
		max-height: unset; /* Adjust as needed */
	}

.summary-indicator {
	position: absolute;
	bottom: 0;
	right: 0;
	/*background: linear-gradient(to top, white, transparent);*/
	background: rgba(255,255,255,.8);
	width: 100%;
	text-align: right;
	padding: 10px;
	box-sizing: border-box;
	font-weight: bold;
}

.summary-container {
	margin: auto;
	background: #fff;
	border-radius: 8px;
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
	overflow: hidden;
	transition: max-height 0.3s ease-out;
	cursor: pointer;
	position: relative;
	padding: 20px;
}

	.summary-container .content {
		padding: 20px;
		max-height: 100px; /* Show only summary */
		overflow: hidden;
		transition: max-height 0.3s ease-out;
	}

.audio-container {
	width: 100%;
	margin: auto;
	box-sizing: border-box;
	overflow: hidden;
	/*
	background: #fff;
	border-radius: 8px;
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
	padding: 20px;
	*/
}

	.audio-container video {
		width: 100%;
		height: 50px; /* Adjust height to fit audio controls */
		border-radius: 8px;
	}


.breadcrumb.recent > li + li:before {
	content: "/\00a0";
	padding: 0 0px 0px 5px;
}


/* New Styles */
#chatarea .chatuser {
	font-size: 18px;
	margin: 0 0px;
}

.sms-thread .chathistory, #chatarea .chathistory {
	bottom: 122px;
	top: 40px;
	height: auto;
	z-index: 999999999;
	overflow-y: auto;
	overflow-x: hidden;
	max-height: 600px;
	display: flex;
	flex-direction: column-reverse;
}

#chatarea .chatinput textarea {
	border: 1px solid #d2d3d6;
	text-decoration: none;
	background-color: #fff;
	width: 100%;
	height: 62px;
	padding: 10px;
	resize: none;
}

.btn-primary-alt {
	color: #333;
	background-color: rgba(255,255,255,0);
	border-color: #4f8edc;
	border-width: 1px;
	border-style: solid;
	-webkit-box-shadow: none;
	box-shadow: none;
}

	.btn-primary-alt:hover, .btn-primary-alt:focus {
		box-shadow: none !important;
		color: #000;
		border-color: #2973cf;
	}

.fa-refresh:before {
	content: "\f021";
}

/* Posible Duplicateds */

.panel-heading {
	font-size: 18px;
	border-bottom: 1px solid #d2d3d6;
	border-top-right-radius: 1px;
	border-top-left-radius: 1px;
	height: 40px;
	line-height: 2em;
}

.panel {
	margin: 0 0 20px;
	border-radius: 1px;
}

.panel-warning {
	border-color: #f1c40f;
}

[class*=panel-].panel .panel-heading {
	padding: 0 10px;
	border-bottom: 0;
}

.panel-warning .panel-heading {
	color: #fff;
	background-color: #f1c40f;
	border-color: #f1c40f;
}

.pull-right {
	float: right !important;
}

.panel-heading:before, .panel-heading:after {
	content: " ";
	display: table;
}

.panel-heading:before, .panel-heading:after {
	content: " ";
	display: table;
}

.panel-body:before, .panel-body:after {
	content: " ";
	display: table;
}

[class*=panel-].panel .panel-heading + .panel-body {
	border-top: 0;
}

[class*=panel-].panel .panel-body {
	padding: 20px;
	border-left: 1px solid #d2d3d6;
	border-right: 1px solid #d2d3d6;
	border-bottom: 1px solid #d2d3d6;
	background-color: #fff;
}

.table {
	width: 100%;
	margin-bottom: 20px;
}

.modalLeads {
	display: none;
	overflow: auto;
	overflow-y: scroll;
	position: fixed;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	z-index: 1040;
}

#divTextReply .tabs-padding {
	padding: var(--ct-modal-padding);
}

.chathistory {
	padding-top: 16px;
}

.chatmsg {
	margin-bottom: 26px;
	border-radius: 14px;
	padding: 12px 18px 10px;
	position: relative;
	max-width: 520px;
	border: 1px solid #dbe3f1;
	box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
	background: #fff;
	color: #1a2233;
}

.chatmsg:not(.sent) {
	background: #fff;
	margin-right: auto;
}

.chatmsg.sent {
	background: linear-gradient(145deg, #f0f7ff, #dfeaff);
	border-color: #c5d8f6;
	margin-left: auto;
}

.chatmsg::after {
	display: block;
		content: "";
		bottom: -12px;
		background: transparent;
		position: absolute;
		border-left: 10px solid transparent;
		border-right: 10px solid transparent;
	}

.chatmsg:not(.sent)::after {
	right: 31px;
	border-top: 20px solid #fff;
	transform: rotate(-23deg);
}

.chatmsg.sent::after {
	left: 31px;
	border-top: 20px solid #dfeaff;
	transform: rotate(23deg);
}

.chatmsg p {
	margin-bottom: 6px;
	font-weight: 600;
}

.chatmsg .timestamp {
display: flex;
flex-wrap: wrap;
align-items: center;
gap: 6px;
margin-top: 4px;
font-size: 12px;
font-weight: 600;
	color: #5b6579;
letter-spacing: .01em;
}

.chatmsg .timestamp .message-direction {
font-size: 11px;
font-weight: 700;
letter-spacing: .08em;
text-transform: uppercase;
	color: #6b7490;
}

.chatmsg .timestamp .Date {
font-weight: 600;
}

.chatmsg .timestamp .message-staff {
font-weight: 600;
	color: #4a5162;
}

#chatarea button i.fas, #chatarea #btnSendMessage {
	color: #333;
}

	#chatarea button:hover i.fas, #chatarea #btnSendMessage:hover {
		color: #fff;
	}

.custom-checkboxes .form-check {
	padding-left: 0;
}

.custom-checkboxes label.form-check-label {
	border: solid 1px #675edb;
	border-radius: 6px;
	padding: 7px 14px;
	color: #675edb;
}

.custom-checkboxes .form-check-input:checked ~ label.form-check-label {
	background-color: #675edb;
	color: #fff;
}

.btns-row button {
	margin: 0;
}

.btns-t .dropdown-toggle::after, .btns-row .dropdown-toggle::after {
	display: inline-block;
	margin-left: .255em;
	vertical-align: .255em;
	content: "";
	border-top: .3em solid;
	border-right: .3em solid transparent;
	border-bottom: 0;
	border-left: .3em solid transparent;
}

.no-click {
	pointer-events: none;
}

	.no-click a, .no-click .GridFooterRow {
		pointer-events: auto;
	}

.fa-external-link:before {
	content: "\f08e";
}

.dashboard_card {
	transition: background ease-in .2s;
}

	.dashboard_card:hover {
		background: rgba(255, 255, 255, .5);
	}

	.dashboard_card a.streched-link {
		position: absolute;
		width: 100%;
		height: 100%;
		left: 0;
		top: 0;
	}

[class*=panel-].panel .panel-heading {
	padding: 0 0 16px;
	height: auto;
}

@media (max-width: 480px) {
	.card-header {
		padding: 16px 0;
	}

	button#daterangepicker2 {
		max-width: 100%;
		margin: 0 0 16px !important;
	}
}

@media (max-width: 400px) {
	button#daterangepicker2 {
		font-size: 10px;
	}
}


.note-summary .summary-text {
	max-height: 90px; /* Adjust this value to control how much text shows initially */
	overflow: hidden;
	position: relative;
}

.note-summary.expanded .summary-text {
	max-height: none;
}

.note-chevron {
	transition: transform 0.2s ease-in-out;
}

[data-bs-toggle="collapse"][aria-expanded="true"] .note-chevron {
	transform: rotate(180deg);
}

/* Patient Care Plan Editor */
.care-plan-shell {
        /* Allow the shell to shrink to its content to avoid excessive whitespace between steps */
        min-height: auto;
}

.template-list {
	max-height: 520px;
	overflow-y: auto;
}

/* Base item */
.template-item {
	cursor: pointer;
	border: 1px solid var(--bs-border-color);
	transition: all 0.2s ease-in-out;
	border-radius: var(--bs-border-radius);
	padding: 0.75rem;
	background-color: transparent; /* explicit neutral base */
}

	/* If legacy JS injected inline backgrounds, neutralize them */
	.template-item[style*="background"] {
		background: none !important;
		background-color: transparent !important;
	}

	/* Hover: slightly stronger than subtle bg */
	.template-item:hover {
		border-color: var(--bs-primary);
		box-shadow: var(--bs-box-shadow-sm);
		background-color: var(--bs-primary-border-subtle, #d6e9ff);
	}

	/* Active: must always beat zebra + inline */
	.template-item.active {
		border-color: var(--bs-primary, #0d6efd) !important;
		background-color: var(--bs-primary-bg-subtle, #cce5ff) !important;
	}

		/* In case inline background exists AND item is active */
		.template-item.active[style*="background"] {
			background: none !important;
			background-color: var(--bs-primary-bg-subtle, #cce5ff) !important;
		}

/* Chips with safe fallbacks */
.chip {
	display: inline-flex;
	align-items: center;
	border-radius: var(--bs-border-radius-pill);
	padding: 0.2rem 0.75rem;
	font-size: 0.75rem;
	background: var(--bs-primary-bg-subtle, #eaf4ff);
	color: var(--bs-primary, #0d6efd);
	margin-right: 0.35rem;
	margin-bottom: 0.35rem;
}

/* Main container for a list of editable items */
.list-editor-group {
	border: 1px dashed var(--bs-border-color);
	border-radius: var(--bs-border-radius-lg);
	padding: 0.75rem;
	background-color: var(--bs-light);
}

/* A single item in the list */
.list-editor-item {
	background: var(--bs-white);
	border: 1px solid var(--bs-border-color);
	border-radius: var(--bs-border-radius);
	padding: 0.5rem 0.75rem;
	margin-bottom: 0.75rem;
	box-shadow: var(--bs-box-shadow-sm);
	display: flex;
	align-items: flex-start; /* Aligns delete button to the top */
	gap: 0.5rem;
}

	.list-editor-item:last-child {
		margin-bottom: 0;
	}

	/* Styling for the auto-growing textarea */
	.list-editor-item textarea {
		flex-grow: 1;
		resize: none; /* Disables manual resizing */
		overflow-y: hidden; /* Hides the scrollbar */
		line-height: 1.5;
	}
		/* Remove the blue focus outline for a cleaner look */
		.list-editor-item textarea:focus {
			outline: none;
			box-shadow: none;
		}

.editor-scroll {
	max-height: 620px;
	overflow-y: auto;
}

.preview-scroll {
	max-height: 620px;
	overflow-y: auto;
}

.card-header-icon {
	font-size: 1.5rem;
	line-height: 1;
}

/* Soft utility backgrounds with fallbacks */
/*.bg-soft-primary {
	background-color: var(--bs-primary-bg-subtle) !important;
}*/

.bg-soft-info {
	background-color: var(--bs-info-bg-subtle) !important;
}

.bg-soft-success {
	background-color: var(--bs-success-bg-subtle) !important;
}

@media (max-width: 1199.98px) {
	.template-list,
	.preview-scroll,
	.editor-scroll {
		max-height: none;
	}
}

.template-stripe-list {
	display: flex;
	flex-direction: column;
	gap: 0.35rem;
	margin-top: 0.75rem;
}

.template-stripe {
	position: relative;
	padding: 0.35rem 0.5rem 0.35rem 0.9rem;
	border-radius: 0.6rem;
	font-size: 0.7rem;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	overflow: hidden;
}

	.template-stripe::before {
		content: "";
		position: absolute;
		left: 0.4rem;
		top: 0.28rem;
		bottom: 0.28rem;
		width: 0.25rem;
		border-radius: 1rem;
	}

/* Stripe variants */
.template-stripe-summary {
	color: #0d6efd;
	background: linear-gradient(90deg, rgba(13,110,253,0.18), rgba(13,110,253,0.02));
}

	.template-stripe-summary::before {
		background: #0d6efd;
	}

.template-stripe-eligibility {
	color: #6f42c1;
	background: linear-gradient(90deg, rgba(111,66,193,0.18), rgba(111,66,193,0.02));
}

	.template-stripe-eligibility::before {
		background: #6f42c1;
	}

.template-stripe-goals {
	color: #198754;
	background: linear-gradient(90deg, rgba(25,135,84,0.18), rgba(25,135,84,0.02));
}

	.template-stripe-goals::before {
		background: #198754;
	}

.template-stripe-actions {
	color: #fd7e14;
	background: linear-gradient(90deg, rgba(253,126,20,0.2), rgba(253,126,20,0.03));
}

	.template-stripe-actions::before {
		background: #fd7e14;
	}

.template-stripe-triggers {
	color: #dc3545;
	background: linear-gradient(90deg, rgba(220,53,69,0.18), rgba(220,53,69,0.02));
}

	.template-stripe-triggers::before {
		background: #dc3545;
	}

.template-stripe-sources {
	color: #0dcaf0;
	background: linear-gradient(90deg, rgba(13,202,240,0.22), rgba(13,202,240,0.04));
}

	.template-stripe-sources::before {
		background: #0dcaf0;
	}

/* When a template item is active, outline the stripes subtly */
.template-item.active .template-stripe {
	box-shadow: inset 0 0 0 1px currentColor;
}

.collapsible-card-body {
	max-height: 360px;
	min-height: 360px;
	overflow-y: auto;
	position: relative;
}

.collapsible-card-body.collapsible-card-expanded {
	max-height: none;
	min-height: 0;
	overflow-y: visible;
}

.collapsible-card-toggle {
	white-space: nowrap;
}

.care-plan-content h5 {
	margin-bottom: 0.75rem;
}

.care-plan-content p {
	margin-bottom: 0.5rem;
}

.clinical-summary-empty {
	color: #6c757d;
}

.floating-modal .modal-header {
	cursor: move;
	user-select: none;
}

.floating-modal .modal-dialog {
        margin: 0 !important;
        position: fixed;
        max-height: calc(100vh - 2rem);
        display: flex;
        flex-direction: column;
}

.floating-modal .modal-content {
        background-color: #fff; /* ensure solid base */
        border: 1px solid rgba(0,0,0,0.2);
        border-radius: 0.5rem;
        box-shadow: 0 0 20px rgba(0, 0, 0, 0.5), 0 0 4px rgba(13, 110, 253, 0.25); /* subtle blue glow */
        z-index: 2101; /* just above the modal container itself */
        max-height: 100%;
        display: flex;
        flex-direction: column;
}

.floating-modal .modal-header,
.floating-modal .modal-footer {
        flex-shrink: 0;
}

.floating-modal .modal-body {
        overflow-y: auto;
}

.floating-modal.show .modal-dialog {
	transform: none !important; /* disable Bootstrap centering animation */
}

/* Let clicks pass through the full-screen modal layer */
.floating-modal {
	pointer-events: none; /* clicks/touch fall through to the page */
}

	/* Keep the dialog itself fully interactive */
	.floating-modal .modal-dialog,
	.floating-modal .modal-content,
	.floating-modal .modal-header,
	.floating-modal .modal-body,
	.floating-modal .modal-footer {
		pointer-events: auto; /* interactable surface */
	}

	.floating-modal .modal-dock-toggle {
		white-space: nowrap;
	}

.docked-modal-host {
	width: 100%;
}

.floating-modal.floating-modal-docked {
	pointer-events: auto;
	position: static;
	margin: 1.5rem 0;
}

        .floating-modal.floating-modal-docked .modal-dialog {
                position: static;
                margin: 0 !important;
                max-width: 100%;
                width: 100%;
                max-height: none;
                display: block;
        }

        .floating-modal.floating-modal-docked .modal-content {
                box-shadow: none;
                border: 1px solid rgba(0, 0, 0, 0.125);
                max-height: none;
                display: block;
        }

        .floating-modal.floating-modal-docked .modal-header {
                cursor: default;
        }

	.floating-modal.floating-modal-docked .modal-body {
		max-height: none;
	}

	.floating-modal.floating-modal-docked .modal-footer {
		border-top: 1px solid rgba(0, 0, 0, 0.125);
	}

	.floating-modal.floating-modal-docked .modal-dock-toggle {
		cursor: pointer;
	}

/* When docked, remove the usual centered styling */
.floating-modal-docked.modal {
	pointer-events: auto; /* allow interaction */
	z-index: 1000; /* above page content, below tooltips if needed */
}
/* optional: shrink header/footer paddings when docked */
.floating-modal-docked .modal-dialog .modal-content {
	border-radius: .5rem;
}
/* the host reserves space in normal flow */
#dockedAdditionalTimeHost {
	position: relative;
}


.floating-modal-docked .modal-dialog {
	margin: 0;
	max-width: 100%;
}



body > .tox-tinymce-aux {
	z-index: 2300 !important;
}

	body > .tox-tinymce-aux .tox-dialog-wrap {
		z-index: 2301 !important;
	}

	body > .tox-tinymce-aux .tox-dialog {
		z-index: 2302 !important;
		max-height: calc(100vh - 2rem) !important;
		display: flex !important;
		flex-direction: column;
	}

	body > .tox-tinymce-aux .tox-dialog__content-js,
	body > .tox-tinymce-aux .tox-dialog__body,
	body > .tox-tinymce-aux .tox-dialog__scrollable {
		max-height: calc(100vh - 6rem) !important;
		overflow-y: auto !important;
	}

	body > .tox-tinymce-aux .tox-dialog-wrap__backdrop {
		z-index: 2299 !important;
		background: transparent !important;
		pointer-events: none !important;
	}

.topbar-page-context {
	gap: 1rem;
	margin-left: 1rem;
}

.topbar-patient-summary {
	display: flex;
	align-items: center;
	gap: 1rem;
}

	.topbar-patient-summary .topbar-patient-icon {
		width: 32px;
		height: 32px;
		display: inline-flex;
		align-items: center;
		justify-content: center;
		border-radius: 999px;
		background: rgba(13, 110, 253, 0.12);
		color: #0d6efd;
	}

	.topbar-patient-summary .topbar-patient-meta {
		display: flex;
		flex-direction: column;
		gap: 0.25rem;
		line-height: 1.1;
	}

	.topbar-patient-summary .topbar-patient-name-id {
		display: inline-flex;
		align-items: center;
		gap: 0.25rem;
		flex-wrap: wrap;
	}

	.topbar-patient-summary .topbar-patient-name {
		font-weight: 300;
		color: #1f2933;
	}

	.topbar-patient-summary .topbar-patient-organization {
		font-size: 1rem;
		color: #1f2933;
		font-weight: 600;
		margin-top: 8px;
	}

	.topbar-patient-summary .topbar-patient-id {
		display: inline-flex;
		align-items: center;
		gap: 0.25rem;
		font-size: 0.75rem;
		font-weight: 600;
		padding: 0.25rem 0.6rem;
		border-radius: 999px;
		border: 1px solid rgba(13, 110, 253, 0.25);
		background-color: rgba(255, 255, 255, 0.85);
		color: #0d6efd;
	}

	.topbar-patient-summary .topbar-patient-metrics {
		display: inline-flex;
		align-items: center;
		gap: 0.5rem;
		padding: 0.35rem 0.85rem;
		border-radius: 0.75rem;
		background: #f8f9fa;
		border: 1px solid rgba(13, 110, 253, 0.15);
	}

		.topbar-patient-summary .topbar-patient-metrics.topbar-progress-container {
			flex-direction: column;
			align-items: flex-start;
			gap: 0.5rem;
			min-width: 240px;
		}

.topbar-progress-wrapper {
	display: flex;
	align-items: center;
	gap: 0.65rem;
}

.topbar-progress-caption {
	font-size: 0.75rem;
	font-weight: 600;
	color: #0d6efd;
	text-transform: uppercase;
	letter-spacing: 0.05em;
}

.topbar-progress-bar {
	width: 220px;
	height: 18px;
	background-color: rgba(13, 110, 253, 0.08);
	border-radius: 999px;
	overflow: hidden;
}

	.topbar-progress-bar .progress-bar {
		font-size: 0.7rem;
		font-weight: 600;
		display: flex;
		align-items: center;
		justify-content: center;
		letter-spacing: 0.02em;
	}

.topbar-progress-legend {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	font-size: 0.7rem;
	color: #6c757d;
}

.topbar-progress-legend-item {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
}

.topbar-progress-dot {
	width: 0.6rem;
	height: 0.6rem;
	border-radius: 50%;
	display: inline-block;
}

.topbar-progress-extra {
	font-size: 0.7rem;
	font-weight: 600;
	border-radius: 999px;
	padding: 0.15rem 0.6rem;
}

.topbar-progress-empty {
	font-size: 0.75rem;
}

.topbar-patient-summary .topbar-patient-actions {
	display: inline-flex;
	align-items: center;
	gap: 0.75rem;
}

.topbar-patient-summary .topbar-nurse-amy {
	border-radius: 999px;
	padding: 0.35rem 0.9rem;
	box-shadow: 0 4px 12px rgba(13, 110, 253, 0.25);
	transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.topbar-patient-summary .topbar-nurse-amy:hover {
	box-shadow: 0 6px 16px rgba(13, 110, 253, 0.3);
	transform: translateY(-1px);
}

.patient-header-progress {
	border: 1px solid #c7d8f8;
	box-shadow: 0 2px 4px rgba(15, 23, 42, 0.12);
	min-width: 240px;
}

.patient-header-progress .progress {
	background-color: #929292;
	border-radius: 999px;
	overflow: hidden;
}

	.patient-header-progress .progress-bar {
		font-size: 0.75rem;
		letter-spacing: 0.04em;
		text-transform: uppercase;
		display: flex;
		align-items: center;
		justify-content: center;
		border-right: 1px solid rgba(255, 255, 255, 0.35); /* Already good for the right edge */
		font-weight: 600;
		text-align: center;
		overflow: visible !important;
		position: relative; /* New: Allows absolute positioning of dividers */
	}

		/* New: Add vertical divider before each bar (except the first) */
		.patient-header-progress .progress-bar:not(:first-child)::before {
			content: ''; /* Empty content for the divider */
			position: absolute;
			left: 0; /* Place at the left edge of this bar */
			top: 0;
			bottom: 0;
			width: 1px; /* Thin line */
			background-color: rgba(255, 255, 255, 0.35); /* Matches your existing border color */
		}

.patient-header-progress .progress-bar:last-child {
	border-right: none;
}

.patient-header-progress .patient-progress-99457 {
	background: linear-gradient(90deg, #2563eb, #1d4ed8);
	color: #ffffff;
}

.patient-header-progress .patient-progress-99458-1 {
	background: linear-gradient(90deg, #0ea5e9, #0284c7);
	color: #ffffff;
}

.patient-header-progress .patient-progress-99458-2 {
	background: linear-gradient(90deg, #14b8a6, #0f766e);
	color: #ffffff;
}

.patient-header-progress .patient-progress-99490 {
	background: linear-gradient(90deg, #0ea5e9, #0284c7);
	color: #ffffff;
}

.patient-header-progress .patient-progress-99439-1 {
	background: linear-gradient(90deg, #14b8a6, #0f766e);
	color: #ffffff;
}

.patient-header-progress .patient-progress-99439-2 {
	background: linear-gradient(90deg, #22c55e, #15803d);
	color: #ffffff;
}

.patient-header-progress .patient-progress-99491 {
	background: linear-gradient(90deg, #6366f1, #4338ca);
	color: #ffffff;
}

.patient-header-progress .patient-progress-99437-1 {
	background: linear-gradient(90deg, #f97316, #ea580c);
	color: #ffffff;
}

.patient-header-progress .patient-progress-99437-2 {
	background: linear-gradient(90deg, #fb923c, #f97316);
	color: #ffffff;
}

.patient-header-progress .patient-progress-99487 {
	background: linear-gradient(90deg, #f59e0b, #b45309);
	color: #ffffff;
}

.patient-header-progress .patient-progress-99489-1 {
	background: linear-gradient(90deg, #8b5cf6, #6d28d9);
	color: #ffffff;
}

.patient-header-progress .patient-progress-99489-2 {
	background: linear-gradient(90deg, #a855f7, #7c3aed);
	color: #ffffff;
}

.patient-header-progress .patient-progress-g0556 {
	background: linear-gradient(90deg, #0ea5e9, #0284c7);
	color: #ffffff;
}

.patient-header-progress .patient-progress-g0557 {
	background: linear-gradient(90deg, #22c55e, #15803d);
	color: #ffffff;
}

.patient-header-progress .patient-progress-g0558 {
	background: linear-gradient(90deg, #6366f1, #4338ca);
	color: #ffffff;
}

.patient-header-progress .progress-caption {
	font-size: 0.75rem;
	color: #475569;
}

.patient-header-progress .progress-caption strong {
	color: #1f3c88;
}

.patient-header-progress .badge-extra-minutes {
        background: rgba(234, 179, 8, 0.16);
        color: #92400e;
        font-weight: 600;
}

.compliance-badge {
	letter-spacing: 0.08em;
	font-weight: 700;
	font-size: 0.75rem;
}

/* ------------------------------------------------------------------
   Patient Readings grid helpers (shared between RPM and CCM)
   ------------------------------------------------------------------ */
.note-drawer {
        padding: 1rem 1rem 0.75rem 1rem;
        background-color: transparent;
        position: relative;
        max-width: 100%;
}

.note-drawer .d-flex {
        min-width: 0;
}

.note-drawer .DisplayMarkdown {
        overflow-wrap: anywhere;
        word-break: break-word;
        white-space: normal;
}

tr.note-row td {
        border-top: none;
        border-bottom: 1px solid #aaa;
}

tr.group-start td {
        border-top: 2px solid #aaa;
        border-bottom: none;
}

tr.group-start:hover,
tr.group-start:hover + tr.note-row,
tr.note-row:hover {
        background-color: #f8f9fa;
}

.patient-header-progress .letter-spacing-wide {
	letter-spacing: 0.14em;
}


/* Cell containing the assessment button */
.assessment-action-cell {
	min-width: 274px;
	padding: 0.75rem 0;
}

/* Reading value above the button */
.assessment-reading-value {
	font-weight: 600;
	color: #0f172a;
	margin-bottom: 1rem;
	font-size: 1.1rem;
}

/* Main "Open Assessment" button */
.btn-assessment-open {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.75rem;
	width: 100%;
	min-width: 240px;
	height: 56px;
	padding: 0 2rem;
	font-size: 1rem;
	font-weight: 700;
	color: white;
	background: linear-gradient(135deg, #3b82f6, #2563eb);
	border: none;
	border-radius: 12px;
	box-shadow: 0 4px 12px rgba(59, 130, 246, 0.25);
	cursor: pointer;
	transition: all 0.25s ease;
}

	.btn-assessment-open:hover {
		transform: translateY(-3px);
		box-shadow: 0 10px 25px rgba(59, 130, 246, 0.4);
		color: white;
	}

	.btn-assessment-open:active {
		transform: translateY(-1px);
	}

	.btn-assessment-open i {
		font-size: 1.5rem;
	}


/* ==================================================================
   FAIRPATH MODERN THEME (2025)
   ================================================================== */

/* ------------------------------------------------------------------
   1. GLOBAL THEME VARIABLES & TYPOGRAPHY
   ------------------------------------------------------------------ */
:root {
	--fp-font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	--fp-bg-body: #f0f2f5; /* High Contrast Background */
	--fp-text-main: #101828; /* Darker Slate for readability */
	--fp-text-muted: #475467;
	--fp-border-color: #eaecf0;
	--fp-primary: #0d6efd;
	--fp-radius: 8px;
}

body {
        font-family: var(--fp-font-sans);
        background-color: var(--fp-bg-body) !important;
        color: var(--fp-text-main);
        line-height: 1.5;
        -webkit-font-smoothing: antialiased;
}

/* -------------------------------------------------------------------------- */
/* Authentication pages                                                      */
/* -------------------------------------------------------------------------- */
body.authentication-bg {
        background-color: var(--ct-auth-bg-alt) !important;
}

body.authentication-bg.authentication-bg-pattern {
        background-image: url("../images/bg-pattern.png");
        background-size: cover;
        background-position: center;
}

h1, h2, h3, h4, h5, h6 {
	font-weight: 600;
	letter-spacing: -0.01em;
	color: #101828;
}

/* ------------------------------------------------------------------
   2. PAGE LAYOUT & HEADER (UNIFIED)
   ------------------------------------------------------------------ */
.content-page {
	background-color: var(--fp-bg-body);
	padding-top: 1.5rem;
	margin-top: 2rem; /* Ensure clearance from top bar */
}

.container-fluid {
	max-width: 1600px;
	padding-left: 2rem;
	padding-right: 2rem;
}

/* Page Header Container */
.page-header-ghost {
	display: flex;
	justify-content: space-between;
	align-items: center; /* Center alignment looks cleaner */
	margin-bottom: 1.25rem;
	flex-wrap: wrap;
	gap: 1rem;
	min-height: 42px;
}

.page-header-left {
	display: flex;
	flex-direction: column;
	justify-content: center;
}

/* Page Title */
.page-title-ghost {
	font-family: var(--fp-font-sans);
	font-size: 1.75rem;
	font-weight: 700;
	color: #101828;
	line-height: 1.1;
	margin: 0.25rem 0 0 0;
}

	.page-title-ghost.hidden {
		display: none !important;
	}

/* Modern Breadcrumbs */
.page-breadcrumb {
	background: transparent;
	padding: 0;
	margin-bottom: 0 !important;
	font-size: 0.85rem;
}

	.page-breadcrumb .breadcrumb-item {
		display: flex;
		align-items: center;
	}

		.page-breadcrumb .breadcrumb-item a {
			color: var(--fp-text-muted);
			font-weight: 500;
			text-decoration: none;
			transition: color 0.2s;
		}

			.page-breadcrumb .breadcrumb-item a:hover {
				color: var(--fp-primary);
				text-decoration: underline;
			}

		.page-breadcrumb .breadcrumb-item.active {
			color: #101828;
			font-weight: 700;
		}

		.page-breadcrumb .breadcrumb-item + .breadcrumb-item::before {
			content: "/";
			color: #98a2b3;
			padding-top: 2px;
		}

/* ------------------------------------------------------------------
   3. TOOLBAR & ACTIONS (High Contrast Surface)
   ------------------------------------------------------------------ */
.page-actions-toolbar {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	height: 100%;
	margin-bottom: 0.5rem !important;
	margin-top: 0.5rem !important;
}

	/* Reset Legacy Bootstrap Toolbar */
	.page-actions-toolbar .btn-toolbar {
		margin: 0 !important;
		display: flex !important;
		flex-wrap: nowrap !important;
		gap: 0.5rem !important;
		float: none !important;
	}

	/* 3. Modernize the Standard Buttons (New, Edit, etc) */
	.page-actions-toolbar .btn {
		display: inline-flex !important; /* Force flex behavior */
		align-items: center;
		justify-content: center;
		gap: 0.5rem; /* CRITICAL FIX: Adds space between Icon and Text */
		height: 36px;
		padding: 0 1rem;
		border-radius: 6px;
		font-size: 0.85rem;
		font-weight: 600;
		box-shadow: 0 1px 2px rgba(0,0,0,0.05);
		margin: 0 !important;
		white-space: nowrap; /* Prevents text from wrapping/squishing */
	}

		/* Optional: Ensure icons inside these buttons behave nicely */
		.page-actions-toolbar .btn i,
		.page-actions-toolbar .btn svg {
			margin: 0 !important; /* Remove any legacy margins since we use gap now */
			font-size: 0.9rem; /* Ensure icons aren't too huge */
		}

	/* Action Buttons (Edit/Settings) - Crisp White */
	.page-actions-toolbar .btn-light,
	.page-actions-toolbar .btn-white,
	.page-actions-toolbar .btn-secondary {
		background-color: #ffffff !important;
		border: 1px solid #d0d5dd !important;
		color: #344054 !important;
		box-shadow: 0 1px 2px rgba(16, 24, 40, 0.05) !important;
	}

		.page-actions-toolbar .btn-light:hover,
		.page-actions-toolbar .btn-white:hover {
			background-color: #f9fafb !important;
			border-color: #98a2b3 !important;
			color: #101828 !important;
			transform: translateY(-1px);
		}

	/* Primary Action Buttons (New/Add) */
	.page-actions-toolbar .btn-success,
	.page-actions-toolbar .btn-primary {
		box-shadow: 0 1px 2px rgba(16, 24, 40, 0.05);
		border: 1px solid transparent;
	}
/* ------------------------------------------------------------------
   4. ITERATOR CONTROLS (Pill Style - Icons Only)
   ------------------------------------------------------------------ */
.spanIteratorControls {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background-color: #ffffff !important;
	border: 1px solid #d0d5dd !important;
	border-radius: 99px;
	padding: 2px;
	margin-left: 0.75rem !important;
	height: 36px;
	box-shadow: 0 1px 2px rgba(16, 24, 40, 0.05) !important;
	color: #344054 !important;
}

	/* Inner Buttons (Next/Prev) */
	.spanIteratorControls .btn {
		background-color: transparent !important;
		border: none !important;
		box-shadow: none !important;
		color: #6c757d !important;
		width: 32px;
		height: 30px;
		padding: 0 !important;
		border-radius: 50%;
		/* CRITICAL FIX: Hide the text "Previous"/"Next" */
		font-size: 0 !important;
		display: inline-flex !important;
		align-items: center;
		justify-content: center;
	}

		.spanIteratorControls .btn:hover {
			background-color: #f2f4f7 !important;
			color: var(--fp-primary) !important;
		}

		/* Ensure the ICON is visible and sized correctly */
		.spanIteratorControls .btn i,
		.spanIteratorControls .btn svg {
			font-size: 0.85rem !important; /* Reset font size for the icon */
			margin: 0 !important;
			display: block;
		}

/* Text "1 of 5" */
.spanIterator {
	font-size: 0.75rem;
	font-weight: 600;
	color: #344054;
	padding: 0 0.75rem;
	white-space: nowrap;
	vertical-align: middle !important;
	cursor: default;
}

/* ------------------------------------------------------------------
   5. CARDS & CONTAINERS
   ------------------------------------------------------------------ */
.card {
	background-color: #ffffff;
	border: 1px solid var(--fp-border-color);
	box-shadow: 0 1px 3px rgba(16, 24, 40, 0.1), 0 1px 2px rgba(16, 24, 40, 0.06);
	border-radius: var(--fp-radius);
	margin-bottom: 1.5rem;
}

.card-header {
	background-color: #ffffff;
	border-bottom: 1px solid var(--fp-border-color);
	padding: 1rem 1.25rem;
	font-weight: 600;
	border-radius: var(--fp-radius) var(--fp-radius) 0 0 !important;
}

/* ------------------------------------------------------------------
   6. FORMS & INPUTS
   ------------------------------------------------------------------ */
.form-control, .form-select {
	border-radius: 6px;
	border: 1px solid #d0d5dd;
	padding: 0.6rem 0.85rem;
	font-size: 0.95rem;
	color: var(--fp-text-main);
	box-shadow: 0 1px 2px rgba(16, 24, 40, 0.05);
}

	.form-control:focus, .form-select:focus {
		border-color: #84caff;
		box-shadow: 0 0 0 4px rgba(13, 110, 253, 0.15);
	}

.input-group-text {
	background-color: #f9fafb;
	border-color: #d0d5dd;
	color: var(--fp-text-muted);
}

/* ------------------------------------------------------------------
   7. TABLES & GRIDS
   ------------------------------------------------------------------ */
.table {
	margin-bottom: 0;
	vertical-align: middle;
}

	.table thead th {
		background-color: #f9fafb;
		color: var(--fp-text-muted);
		font-size: 0.75rem;
		text-transform: uppercase;
		font-weight: 600;
		letter-spacing: 0.03em;
		border-bottom: 1px solid var(--fp-border-color);
		padding: 0.75rem 1rem;
	}

	.table tbody td {
		padding: 0.85rem 1rem;
		border-bottom: 1px solid var(--fp-border-color);
		color: var(--fp-text-main);
		font-size: 0.9rem;
	}

.table-striped > tbody > tr:nth-of-type(odd) > * {
	background-color: #fcfcfd;
}

/* ------------------------------------------------------------------
   8. BADGES (Pill Style)
   ------------------------------------------------------------------ */
.badge {
	font-weight: 500;
	padding: 0.35em 0.65em;
	border-radius: 99px;
}

/* ------------------------------------------------------------------
   9. SIDEBAR (SaaS Style)
   ------------------------------------------------------------------ */
.left-side-menu {
	background-color: #ffffff !important;
	border-right: 1px solid var(--fp-border-color) !important;
	box-shadow: none !important;
	width: 260px;
	z-index: 1000;
	transition: all 0.2s ease-in-out;
}

#side-menu > li > a {
	color: var(--fp-text-main);
	font-weight: 500;
	font-size: 0.925rem;
	padding: 0.75rem 1.25rem;
	margin: 0.25rem 0.75rem;
	border-radius: 6px;
	display: flex;
	align-items: center;
	transition: all 0.15s ease;
	text-decoration: none;
}

	#side-menu > li > a i,
	#side-menu > li > a svg {
		font-size: 1.1rem;
		min-width: 1.5rem;
		color: var(--fp-text-muted);
		margin-right: 0.5rem;
		text-align: center;
	}

	#side-menu > li > a:hover {
		background-color: #f9fafb;
		color: #101828;
	}

		#side-menu > li > a:hover i {
			color: var(--fp-text-main);
		}

	#side-menu > li > a.active {
		background-color: #eff8ff !important;
		color: var(--fp-primary) !important;
	}

		#side-menu > li > a.active i {
			color: var(--fp-primary) !important;
		}

.menu-title {
	padding: 1.5rem 1.5rem 0.5rem 1.5rem !important;
	font-size: 0.75rem !important;
	font-weight: 700 !important;
	color: #98a2b3 !important;
	text-transform: uppercase;
	letter-spacing: 0.05em;
}

.nav-second-level li a {
	padding: 0.6rem 1.25rem 0.6rem 3.5rem !important;
	font-size: 0.9rem;
	color: var(--fp-text-muted);
}

	.nav-second-level li a:hover {
		color: var(--fp-primary);
	}

.sidebar-user-box {
	border-top: 1px solid var(--fp-border-color);
	margin-top: auto;
	padding: 1rem;
}



.reminder-followup-badge {
	font-size: 0.78rem;
}

.reminder-followup-future {
	background-color: #e8f5e9 !important;
	border-color: #c8e6c9 !important;
	color: #2e7d32 !important;
}

.reminder-followup-today {
	background-color: #fff8e1 !important;
	border-color: #ffe082 !important;
	color: #8d6e63 !important;
}

.reminder-followup-past {
	background-color: #ffebee !important;
	border-color: #ffcdd2 !important;
	color: #c62828 !important;
}


@media (max-width: 991.98px) {
	.pro-user-name {
		display: none;
	}

	.nav-user {
		padding: 0 8px !important;
	}
}