.notes-section-wrapper:not(.centered) {
	position: absolute;
	top: 0;
	right: 0;
	transform: translateY(15px) translateX(-7px);
}
.has-notes:not(:has(.menu-toggle.active)) {
	overflow-x: hidden;
	overflow-y: auto !important;
}
.menu-toggle-wrapper {
	position: absolute;
	top: 1rem;
	left: calc(100% - 2rem);
}
.custom-item {
  border-radius: 0.5rem;
  transition: background 0.2s;
  overflowx: hidden;
}
.menu-toggle {
  width: 24px;
  height: 24px;
  overflow: visible;
  cursor: pointer;
}
.menu-icons {
  right: 0;
  top: 50%;
  transform: translateY(-50%) translateX(100%);
  gap: .5rem;
  opacity: 0;
  pointer-events: none;
  transition: transform 0.2s ease, opacity 0.2s ease;
  position: absolute;
  display: flex;
}
.menu-icons.animating a.notes-icons {
  pointer-events: none;
}
.menu-toggle:not(.active):hover .bi-three-dots-vertical {
  display: none;
}
.menu-toggle:not(.active):hover .menu-icons {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
  pointer-events: auto;
}
.menu-icons div.notes-icons {
  width: 36px;
  height: 36px;
  border: 1px solid transparent;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  border-radius: 50%;
  position: relative;
  transition: border-color 0.2s ease 0.2s; 
  pointer-events: auto;
}
.menu-icons div.notes-icons i {
  transition: transform 0.2s ease;
}
.menu-icons div.notes-icons:hover {
  border-color: currentcolor;
  background: white;

}
.menu-toggle.active .menu-icons {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
  pointer-events: auto;
}
.menu-toggle.active .bi-three-dots-vertical {
  display: none;
}
.menu-toggle.active .menu-icons i {
	opacity: 1;
}
.menu-icons i:not(.bi-pen) {
  font-size: 14px;
  transform: translateX(40px);
  opacity: 0;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.menu-toggle:not(.active):hover .menu-icons i {
  transform: translateX(0);
  opacity: 1;
}
.custom-item:has(input[type="checkbox"]:checked) .menu-icons div.notes-icons:hover {
  background: white !important;
  transition: background 0.25s ease, box-shadow 0.25s ease;
  box-shadow: 1px 1px 1px rgba(0, 0, 0, .25);
}
.custom-item:has(input[type="checkbox"]:not(:checked)) .menu-icons div.notes-icons:hover {
  background: #f5f5f5 !important;
  transition: background 0.25s ease, box-shadow 0.25s ease;
  box-shadow: 1px 1px 1px rgba(0, 0, 0, .25);
}
.custom-item:has(input[type="checkbox"]:checked) {
	background: #f5f5f5 !important;
}
.notes-wrapper {
	width: 24px;
	height: 24px;
	background: #f2f2f2; 
	border-radius: 50%;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	transform: translateX(25%);
	position: relative;
}
.notes-wrapper:hover {
	background: #f4f4f4; 
	transition: background 0.25s ease;
}
.icon-note {
	width: 12px;
	height: 7px;
	background-color: #444; 
	position: relative;
	border-radius: 2px;
}
.icon-note::after {
    content: "";
    position: absolute;
    width: 0;
    height: 0;
    right: 1px;
    top: 1px;
    border-style: solid;
    border-width: 4px 4px 0 0;
    border-color: #ccc transparent transparent transparent;
    transform: rotate(90deg);
}
.custom-item input[type="checkbox"] {
	position: relative !important;
}
span.name {
	position: relative;
	display: inline-flex;
}
.notes {
	position: absolute;
	width: 320px;
	background: transparent;
	top: 100%;
	left: 0;
	transform: translateX(-50%);
	display: none;
	padding-top: 10px;
}
.note {
	border: 1px solid #ddd;
	display: block;
	position: relative;
	background: white;
}
.notes:hover, 
.notes-wrapper:hover .notes {
	display: block;
}
.notes-section {
	display: flex;
	width: 100%;
	padding: 11px;
	border-bottom: 1px solid #ddd;
	flex-direction: column;
	align-items: center;
}
.notes-meta {
	display: flex;
	width: 100%;
	gap: 10px;
}
.notes-text {
	display: flex;
	width: 100%;
	padding-bottom: 10px;
}
.notes-date {
	display: flex;
	font-size: 85%;
	color: #8b8b8b;
}
.notes-author {
	display: flex;
	font-size: 85%;
	color: #8b8b8b;
	font-style: italic;
	padding-left: 1rem;
	position: relative;
}
.notes-edit {
	display: flex;
	padding-left: 1rem;
	position: relative;
	margin-left: auto;
}
.notes-add {
	display: flex;
	position: relative;
	margin-left: 0;
	margin-right: auto;
}
.notes-add i {
	display: inline-block;
	margin-right: .5rem;
}
.notes-author::before {
	display: block;
	content: "";
	width: 8px;
	height: 8px;
	background: #ddd;
	border-radius: 50%;
	position: absolute;
	top: 0;
	left: 0;
	transform: translateY(calc(50% + 2px));
}
.notes-icons {
	position: relative !important;
}
.add-note {
	display: none;
	width: 320px;
	position: absolute;
	top: 100%;
	left: 0;
	transform: translateX(-50%);
	padding-top: 10px;
}
.notes-icons.active .add-note {
	display: block;
}
.add-note-wrapper {
	width: 100%;
	background: white;
	border: 1px solid #ddd;
	display: flex;
	flex-direction: column;
}
.add-notes-headline,
.add-notes-text {
	display: flex;
	width: 100%;
	padding: 11px;
	border-bottom: 1px solid #ddd;
	flex-direction: column;
	align-items: flex-start; 
	font-size: 16px;
	color: #0a58ca !important;
	text-align: left;
	background: white;
}
.notes-edit .bi.bi-pen {
	all: unset;
	display: inline-block;
	font-family: bootstrap-icons !important;
	font-style: normal;
	font-weight: normal;
	font-size: 1rem;
	line-height: 1;
	vertical-align: middle;
}
.notes-edit {
	background: none;
	backgroun-color: none;
	border: none;
	box-shadow: none;
	color: #0a58ca !important;
}
.update-record-control {
	all: unset;
	display: block;
	width: calc(100% + 10px);
	margin-left: -5px;
	white-space: pre-wrap;
	font-size: 85%;
	border: 1px solid transparent;
	padding: 5px;
}
.update-record-control.active {
	border: 1px solid #ddd;
}
.note-wrapper {
	position: absolute;
	top: 0;
	padding-top: 10px;
	width: 320px;
	display: none;
	z-index: 999;
}	
.notes-icons.active .note-wrapper {
	display: block;
}
.note-body {
	display: flex;
	width: 100%;
	border: 1px solid #ddd;
	background: white;
	flex-direction: column;
	align-items: flex-start; 
	text-align: left;
}
.note-body .note-section {
	width: 100%;
	padding: 7px 7px 7px 7px;
	font-size: 16px;
	position: relative;
}
.add-note-control {
	all: unset;
	display: block;
	width: calc(100% - 12px);
	border: 1px solid transparent;
	font-size: 85%;
	padding: 5px;
	color: #444;
	max-height: 15px;
	overflow: hidden;
}
.add-note-control.active {
	all: unset;
	display: block;
	width: calc(100% - 12px);
	border: 1px solid #ddd;
	font-size: 85%;
	padding: 5px;
	color: #444;
}
.close-button {
	border: none;
	background: none;
	background-color: transparent;
	position: absolute;
	top: 0;
	right: 0;
	transform: translateY(-10%) translateX(-20%);
	font-size: 22px;
}
.note-meta {
	width: 100%;
	padding: 7px 7px 7px 7px;
    gap: 15px;
	font-size: 16px;
	position: relative;
	color: #444;
	display: flex;
}
.note-date {
    display: flex;
    font-size: 85%;
    color: #8b8b8b;
}
.note-author {
    display: flex;
    font-size: 85%;
    color: #8b8b8b;
    font-style: italic;
    padding-left: 1.5rem;
    position: relative;
}
.note-author::before {
    display: block;
    content: "";
    width: 8px;
    height: 8px;
    background: #ddd;
    border-radius: 50%;
    position: absolute;
    top: 0;
    left: 0;
    transform: translateY(calc(50% + 2px));
}
.note-edits {
    background: none;
    backgroun-color: none;
    border: none;
    box-shadow: none;
    color: #0a58ca !important;
	display: flex;
    margin-left: auto;
}
.note-section:not(:last-child) {
	border-bottom: 1px solid #ddd;
}
.action-note {
	position: absolute;
	width: 100%;
	height: 100%;
	display: block;
}
.action-note .bi-journal {
	left: 50%;
	top: 50%;
    display: block;
    transform: translateX(-50%) translateY(-50%) !important;
    position: absolute;
	font-size: 18px;
}
.action-note .bi-plus {
    display: block;
	left: 50%;
	top: 50%;
    transform: translateX(-50%) translateY(-50%) !important;
    position: absolute;
	font-size: 14px;
}
.action-note .bi-eye {
    display: block;
	left: 50%;
	top: 55%;
    transform: translateX(-50%) translateY(-50%) !important;
    position: absolute;
	font-size: 12px;
}
.add-new-note-section + .close-note {
    transform: translateY(30%) translateX(-20%);
}
.note-edit-section:not(.show) {
    width: 100%;
    display: none;
    flex-wrap: wrap;
    border-bottom: 1px solid #ddd;
}
.note-edit-section.show {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    border-bottom: 1px solid #ddd;
}
.has-notes {
	position: relative;
	min-height: 3rem;
}
td .has-notes {
    position: relative;
    min-height: 3rem;
}
td:has(.has-notes) {
	position: relative;
	min-width: 5rem;
}
td:hover .notes-icons {
	background: #fff;
}
td .notes-section-wrapper:not(.centered) {
	transform: translateY(6px) translateX(0px);
}