@-webkit-keyframes pulse {
	0% {
		box-shadow: 0 0 8px #ea4c89, inset 0 0 8px #ea4c89;
	}
	50% {
		box-shadow: 0 0 16px #ea4c89, inset 0 0 14px #ea4c89;
	}
	100% {
		box-shadow: 0 0 8px #ea4c89, inset 0 0 8px #ea4c89;
	}
}

@-webkit-keyframes pulse-switch-camera {
	0% {
		box-shadow: 0 0 8px #4cea89, inset 0 0 8px #4cea89;
	}
	50% {
		box-shadow: 0 0 16px #4cea89, inset 0 0 14px #4cea89;
	}
	100% {
		box-shadow: 0 0 8px #4cea89, inset 0 0 8px #4cea89;
	}
}

#camera-view .recording-options, .retake {
	display: flex;
	justify-content: center;
	margin: 0.5em;
	gap: 1.5em;
}

#camera-view .recording-options a {
	display: block;
	text-align: center;
	line-height: 50px;
	font-family: sans-serif;
	font-weight: 100;
	font-size: 24px;
	width: 50px;
	color: white !important;
	border-radius: 100px;
	margin: 0;
}

#camera-view .recording-options .note-record-snapshot {
	background-color: green;
	text-shadow: 0 0 4px green;
	-webkit-animation: pulse-switch-camera 2s linear 1s infinite;

}

#camera-view .recording-options .photo-switch-camera {
	background-color: red;
	text-shadow: 0 0 4px red;
	-webkit-animation: pulse 2s linear 1s infinite;
}

.retake a {
	display: block;
	text-align: center;
	line-height: 50px;
	font-family: sans-serif;
	font-weight: 100;
	font-size: 16px;
	color: white !important;
	border-radius: 100px;
	padding: 0 1em;
	margin: 0;
	margin-top: 0.2em;
	background-color: gray;
}

video {
	width: 100%;
}

#btn-start-video-recording {
	display: block;
	text-align: center;
	line-height: 50px;
	font-family: sans-serif;
	font-weight: 100;
	font-size: 24px;
	width: 50px;
	color: white !important;
	border-radius: 100px;
	margin: 0 auto;
	background-color: green;
	text-shadow: 0 0 4px green;
	-webkit-animation: pulse-switch-camera 2s linear 1s infinite;
}

#btn-stop-video-recording {
	display: block;
	text-align: center;
	line-height: 50px;
	font-family: sans-serif;
	font-weight: 100;
	font-size: 24px;
	width: 50px;
	color: white !important;
	border-radius: 100px;
	margin: 0 auto;
	background-color: red;
	text-shadow: 0 0 4px red;
	-webkit-animation: pulse 2s linear 1s infinite;
}

.note-record-audio {
	text-align: center;
	line-height: 50px;
	font-family: sans-serif;
	font-weight: 100;
	font-size: 24px;
	height: 50px;
	width: 50px;
	color: white !important;
	border-radius: 100px;
	text-shadow: 0 0 4px red;
	margin: 0;
	background-color: red;
	-webkit-animation: pulse 2s linear 1s infinite;
}

.note-record-audio * {
	height: inherit;
	margin: auto;
}

.video-runtime-timer { /* TODO: TO BE REMOVED */
	font-size: 1.25em;
	color: gray;
}

.video-runtime-timer.active { /* TODO: TO BE REMOVED */
	color: red;
}

#photo-preview-canvas {
	display: none;
}

.take-video:hover,
.upload-photo:hover {
	background-color: #ddd;
}

.take-video,
.upload-photo {
	width: 48%;
	margin: 0.1em;
	padding: 0;
	min-height: 150px;
	display: flex;
	align-items: center;
	flex-direction: column;
	margin-bottom: 1em;
	cursor: pointer;

	border: 1px solid #cccccc;
	border-radius: 3px;
	text-align: center !important;
}

.upload-photo-icon {
	font-size: 50px;
}

.upload-image-view {
	margin: auto;
	position: relative;
}

#camera-view .modal-header {
	padding: 0;
	display: flex;
	flex-direction: row-reverse;
}

#camera-view .modal-body {
	padding: 0;
}

#camera-view button.close {
	margin-right: 0.2em;
	right: 0;
	font-size: 3em;
	z-index: 100;
}

#audio-view .modal-body {
	padding: 0;
}

#audio-view .modal-body .row {
	margin: 0;
	display: flex;
	flex-direction: row-reverse;
}

#audio-view .modal-body .close-row {
	margin: 0;
	display: flex;
	flex-direction: row;
}

#audio-view button.close {
	margin-right: 0.2em;
	right: 0;
	font-size: 3em;
	z-index: 100;
}

#upload-photo-input-handle,
#upload-video-input-handle,
#upload-audio-input-handle {
	display: none;
}

.hidden-feature {
	display: none !important;
}

.disabled-feature {
	cursor: not-allowed;
	color: #dddddd !important;
}

.disabled-feature:hover {
	cursor: not-allowed;
	color: gray;
}

.take-audio-view {
	display: flex;
	flex-direction: column;
	align-items: center;
}

.audio-preview-control-view {
	text-align: center;
	display: none;
}

#notes-add-video-modal .loader {
	display: flex;
	justify-content: center;
	align-items: center;
	min-height: 300px;
	flex-direction: column;
}

#notes-add-video-modal .loader img {
	height: 50px;
}

#notes-add-video-modal .loader .percentage {
	margin-top: 1em;
}

.notes-item-list-container {
	min-height: 300px;
	max-height: 75vh;
	width: inherit;
	overflow-y: auto;
	padding: 0 1.2em;
}

.notes-item-list-container .empty-notes {
	color: #aaaaaa;
}

.notes-item-list-container ul {
	list-style: none;
	padding: 0;
	color: black;
}

.notes-item-list-container ul li a,
.notes-item-list-container ul li span > p {
	word-break: break-word;
	overflow-wrap: break-word;
}

.notes-item-list-container ul li span > p {
	margin: 0;
}

#note-item-preview .modal-body {
	padding: 0;
}

#note-item-preview img, #photo_showphoto, video {
	width: 100%;
}

.note-static-section {
	font-size: 0.8125rem !important;
}

.note-static-section .note-placeholder {
	color: #2c2c2c;
	opacity: 0.5;
}

.note-static-section .note-editor.note-frame {
	border-color: #ced4da !important;
}

.notes-item-list-container-compressed p {
	margin: 0;
}

#case-management-notes-list,
.global-notes-list {
	/* UL*/
	list-style: none;
	list-style-position: inside;
	color: #333333;
}

#case-management-section {
	max-height: 45em;
	overflow-y: scroll;
	scrollbar-width: thin; /*applies to firefox only*/
}

#modal-list-case-management-notes,
#modal-list-patient-no-show-notes {
	list-style-position: inside;
	list-style: none;
}

#modal-list-session-notes {
	list-style-position: inside;
	list-style: none;
}

.cm-list-notes-ul {
	color: #333333;
}

.cm-list-notes-ul p {
	margin: 0;
}

/*applies to webkit only*/

#case-management-section::-webkit-scrollbar {
	width: 5px;
}

#case-management-section::-webkit-scrollbar-track {
	background: #dddddd;
}

#case-management-section::-webkit-scrollbar-thumb {
	background: #666;
}

.autosaving-text-icon {
	visibility: hidden;
}

.autosaving-text-icon.active {
	visibility: visible;
}

.share-media-note-icon-bulk-modal {
	font-size: 15px;
}

.modal-file-resource-upload-progress {
	position: fixed;
	top: 55%;
	transform: translate(0%, -50%);
}

/* REF: https://codepen.io/thetallweeks/pen/yybGra */
.modal-file-resource-upload-progress .loading-text:after {
	overflow: hidden;
	display: inline-block;
	vertical-align: bottom;
	-webkit-animation: animation-ellipsis steps(4, end) 1000ms infinite;      
	animation: animation-ellipsis steps(4, end) 1000ms infinite;
	content: "\2026";
	width: 0;
}

@keyframes animation-ellipsis {
	to {
		width: 1.25em;
	}
}

@-webkit-keyframes animation-ellipsis {
	to {
		width: 1.25em;
	}
}

/* REF: https://jsfiddle.net/7kge3L40/ */
.modal-file-resource-upload-progress .loading-bar {
	display: block;
	width: 100%;
	height: 30px;
	padding: 1em 0 0 0;
	margin: 0;
	background: none;
	border: 0;
	border-radius: 50px;
	text-align: left;
	position: relative;
	font-family: 'Helvetica Neue', Arial, sans-serif;
	font-size: 15px;
}

.modal-file-resource-upload-progress .loading-bar::-webkit-progress-bar {
	height: 20px;
	width: 95%;
	padding-left: 0;
	background-color: #dadada;
	border-radius: 100px;
}

.modal-file-resource-upload-progress .loading-bar::-webkit-progress-value {
	display: inline-block;
	float: left;
	height: 30px;
	margin: 0 -0.8em 0 0;
	padding-left: 3.5em; /* Rounded corners requires a padding */
	background: #4ecdc4;
	border-radius: 100px;
}

.modal-file-resource-upload-progress .loading-bar:after {
	display: inline-block; /* Here is the magic to move with the progress */
	float: left;
	margin: -1em 0 0 -2em;
	padding: 0;
	content: attr(value) '%';
	color: #555;
}

span.notes-message {
	display: block;
	overflow: hidden;
	text-overflow: ellipsis;
	width: 30ch;
	white-space: nowrap;
}

span.notes-message.type-text {
	overflow: unset;
	text-overflow: unset;
	width: 100%;
	white-space: normal;
}

span.notes-message p {
	margin: 0;
}

.ch-limit-20 span.notes-message {
	width: 20ch;
}

.ch-limit-50 span.notes-message {
	width: 50ch;
}

.share-media-note {
	text-align: center;
}

.delete-note {
	text-align: right;
}

.delete-note-from-live {
	text-align: right;
}

.delete-note-from-admin,
.delete-note-from-meeting,
.delete-note-from-management,
.delete-note-from-temp {
	text-align: right;
}

.delete-note-from-services {
	text-align: right;
}

.share-media-note-icon.shared {
	color: green;
}

#problem-modal .notes-reconcile-ul span.notes-message {
	width: 14ch;
}

#note-summary-view ul.notes-sub-list {
	list-style: disc;
}

#note-summary-view .notes-message {
	width: 25ch;
}

#note-summary-view .notes-item-list-container::-webkit-scrollbar {
	width: 5px;
}

#note-summary-view .notes-item-list-container::-webkit-scrollbar-track {
	background: #dddddd;
}

#note-summary-view .notes-item-list-container::-webkit-scrollbar-thumb {
	background: #666;
}

.note-editable p {
  margin: 0;
}

.note-editable p:first-child br:first-child{
	display:none;
}

/* Added by Kevin (5/26/22) */
/* Notes textarea (as a div element, but in the guise of a textarea) */
.div-as-textarea {
	min-height: 120px;
	border: 1px solid #ccc;
	overflow: auto;
	font-size: 0.9rem;
	color: #000;
}

.div-as-textarea p {
	margin-block: 0.25em;
}

/* -- Transcribe Voice button */
@-webkit-keyframes animation-stop-recording-red {
	0% {
		color: #f398a1;
	}
	50% {
		color: red;
	}
	100% {
		color: #f398a1;
	}
}

.btn-text-trans img, .note-record-text img {
	width: 20px;
	height: auto;
}

.trans-container:has(.text-stop-trans-container) .text-stop-trans-container {
	display: none;
	pointer-events: none;
}

.note-action-toolbar .note-record-text, .trans-container:has(.text-stop-trans-container) .btn-text-stop-trans {
	color: #f398a1;
	cursor: pointer;
	-webkit-animation: animation-stop-recording-red 4s linear 1s infinite;
}
/* ----- */

.ba-videorecorder-chooser-button-container:hover {
	background-color: #ddd;
}

.record-video-wrapper {
	display: flex;
	flex-direction: column-reverse;
	margin: auto;
	color: #000 !important;
	border: 0 !important;
	border-radius: 0 !important;
	padding: 2.3em 2.9em !important;
	background-color: #FFF !important;
}

.record-video-wrapper:hover {
	background-color: #cccccc !important;
}

.action-type {
	display: none;
}

.record-video-start-recording {
	display: flex;
	margin-bottom: 1em;
	cursor: pointer;
}

.record-video-text {
	font-weight: bold;
	position: relative;
	top: -8px;
}

.ziggeo-webcam-icon {
	font-size: 50px;
	margin-bottom: 0.3em;
}

.record-video-processing-text {
	background-color: #ccc;
}

.rename-video-section {
	width: 95%;
}

.not-supported-video-type {
	color: red;
	font-weight: bold;
}

.notes-audio-preview {
	display: flex;
	margin: 0 auto;
}

/* REF: https://stackoverflow.com/a/17783233/2106309 */
.notes-message a {
	width: 95%; /* width: 240px; */
    display: inline-block;
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
	vertical-align: top;
}

.message-container textarea {
	height: 120px;
}

/* -- Add Photo modal */
.multiple-cameras-container {
	display: none;
	margin-bottom: 1em;
	gap: 0.5em;
	align-items: baseline;
}

.multiple-cameras-container > .camera-list {
	width: 100%;
}

/* -- Instructions modal */
#instruction-modal .modal-body {
	overflow: auto;
	max-height: 75vh;
}

#instruction-modal .employee-instructions .details {
	font-size: 0.6rem;
}

/* -- Contract Admin / Employer Meetings / Operations Management views */
.modals-contract-admin, .modals-operations-management {
	min-width: 375px;
}

.modals-contract-admin .modal-header,
.modals-operations-management .modal-header,
#modal-list-note .services-media-checkbox {
	align-items: center;
}

#modal-add-admin-innerpage #modal-list-note .notes-message,
#add-meetings-details-modal #modal-list-note .notes-message,
#modal-add-management #modal-list-note .notes-message {
	height: 24px;
}

/* -- Level 5 Notes modal */
.notes-item-list-container span.notes-message {
	width: 100% !important;
}

.notes-item-list-container .therapist-info {
	font-size: smaller;
}

.notes-item-list-container .notes-sub-online-sessions {
	list-style-type: disc;
}

.notes-item-list-container .notes-sub-online-sessions .sos-icon {
	width: 5%;
}

#video-live,
#video-recorded {
	max-height: 360px;
}

#recording-devices {
	width: 100%;
	margin-left: 5px;
}

#btn-cm-pdf {
	background-color: #F0F0F0;
}

/* addendum controls */

div.col-1:has(.edit-note-addendum) {
	display: flex;
	justify-content: space-between;
}

#addendum-notes-set {
	list-style: none;
	list-style-type: none;
	padding: 0;
}

#addendum-resources-list ul {
	line-height: 1.5rem;
}

#pt-session-main .addendum-title,
#pt-session-main .addendum-container,
.client-page-container .addendum-title,
.client-page-container .addendum-container,
.level-four-container .addendum-title,
.level-four-container .addendum-container {
	padding: 0;
}