/* New private-note controls use the site's existing AnyFont faces and manual palette. */
#saCompanyLawManualBilingual .sa-clm-note-toolbar-button,
#saCompanyLawManualBilingual .sa-clm-note-context-button {
	font-family:inherit;
	font-size:inherit;
	line-height:inherit;
}
#saCompanyLawManualBilingual .sa-clm-note-toolbar-button {
	min-height:44px;
	padding:8px 12px;
	border:1px solid #c5d2ca;
	color:#004526;
	background:#fff;
}
#saCompanyLawManualBilingual .sa-clm-note-toolbar-button:hover,
#saCompanyLawManualBilingual .sa-clm-note-toolbar-button:focus-visible {
	background:#edf4ef;
}
#saCompanyLawManualBilingual .sa-clm-note-context-button {
	display:block;
	width:100%;
	min-height:40px;
	text-align:left;
	color:#004526;
}
.sa-clm-note-editor,
.sa-clm-notes-dashboard {
	font-family:montsa_body,sans-serif;
	color:#27362d;
}
.sa-clm-note-editor *,
.sa-clm-notes-dashboard * {box-sizing:border-box}
.sa-clm-note-confirm-shade {position:fixed;inset:0;z-index:2147483602;display:grid;place-items:center;padding:16px;background:rgba(0,35,25,.42)}
.sa-clm-note-confirm {width:min(420px,100%);padding:22px;border-top:4px solid #004526;background:#fff;color:#27362d;box-shadow:0 20px 55px #001e1640;font:14px/1.5 montsa_body,sans-serif}
.sa-clm-note-confirm-actions {display:flex;justify-content:flex-end;gap:10px;margin-top:20px}
.sa-clm-note-confirm-actions button {min-height:40px;padding:7px 15px;border:1px solid #b9cfc0;background:#fff;color:#004526;cursor:pointer;font:inherit}
.sa-clm-note-confirm-actions button:last-child {background:#004526;color:#fff}
.sa-clm-note-confirm :focus-visible {outline:2px solid #004526;outline-offset:2px}
.sa-clm-note-existing {display:flex;flex-wrap:wrap;align-items:center;gap:6px;margin:0 0 12px;padding:10px;border:1px solid #d4e3d8;background:#f6faf7}
.sa-clm-note-existing strong {width:100%;color:#004526}
.sa-clm-note-existing .sa-clm-note-existing-item {max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;border-radius:18px}
.sa-clm-note-editor {
	position:fixed;
	z-index:2147483601;
	width:min(440px,calc(100vw - 16px));
	height:440px;
	min-width:min(320px,calc(100vw - 16px));
	min-height:240px;
	max-width:calc(100vw - 16px);
	max-height:calc(100dvh - 16px);
	resize:both;
	display:flex;
	flex-direction:column;
	border:1px solid #b9cfc0;
	border-top:4px solid #004526;
	background:#fff;
	box-shadow:0 16px 44px rgba(0,45,25,.18);
	overflow:hidden;
	font-size:14px;
	line-height:1.5;
}
.sa-clm-note-editor.is-expanded {
	width:min(760px,calc(100vw - 16px))!important;
	height:calc(100dvh - 32px)!important;
}
.sa-clm-note-header {
	display:flex;
	align-items:center;
	justify-content:space-between;
	gap:8px;
	border-bottom:1px solid #d4e3d8;
	background:#edf4ef;
	color:#004526;
	min-height:48px;
	padding:4px 8px 4px 14px;
}
.sa-clm-note-drag-handle {
	flex:1;
	min-width:70px;
	padding:8px 0;
	font-weight:700;
	cursor:move;
	touch-action:none;
}
.sa-clm-note-header-actions {display:flex;gap:4px;flex-wrap:wrap;justify-content:flex-end}
.sa-clm-note-editor button,
.sa-clm-notes-dashboard button {
	font-family:inherit;
	font-size:13px;
	line-height:1.35;
	min-height:38px;
	padding:6px 10px;
	border:1px solid #bdcfc2;
	background:#fff;
	color:#004526;
	cursor:pointer;
}
.sa-clm-note-editor button:hover,
.sa-clm-notes-dashboard button:hover {background:#edf4ef}
.sa-clm-note-editor button:disabled,
.sa-clm-notes-dashboard button:disabled {opacity:.55;cursor:not-allowed}
.sa-clm-note-editor :focus-visible,
.sa-clm-notes-dashboard :focus-visible {outline:2px solid #004526;outline-offset:2px}
.sa-clm-note-content {
	flex:1;
	min-height:0;
	overflow-y:auto;
	padding:14px 16px 16px;
	display:flex;
	flex-direction:column;
	gap:7px;
}
.sa-clm-note-editor.is-minimized {height:auto!important;min-height:0;resize:none}
.sa-clm-note-editor.is-minimized .sa-clm-note-content {display:none}
.sa-clm-note-source {margin:0 0 4px;overflow-wrap:anywhere;font-size:12px;color:#526258}
.sa-clm-note-source a {color:#004526;text-decoration:underline}
.sa-clm-note-quote {margin:0 0 8px;padding:8px 10px;border-left:3px solid #004526;background:#f1f6f2;max-height:90px;overflow:auto;white-space:pre-wrap;font-size:12px}
.sa-clm-note-quote[hidden] {display:none}
.sa-clm-note-editor label {display:block;font-weight:700;color:#004526}
.sa-clm-note-title,
.sa-clm-note-body {
	font-family:inherit;
	font-size:14px;
	line-height:1.5;
	color:#27362d;
	border:1px solid #b9cfc0;
	background:#fff;
	width:100%;
	padding:8px 10px;
}
.sa-clm-note-title {min-height:40px}
.sa-clm-note-body {flex:1;min-height:110px;resize:vertical}
.sa-clm-note-footer {display:flex;align-items:center;gap:8px;flex-wrap:wrap;padding-top:5px}
.sa-clm-note-editor button.sa-clm-note-save {background:#004526;color:#fff;border-color:#004526;min-width:80px}
.sa-clm-note-editor button.sa-clm-note-save:hover {background:#00341d}
.sa-clm-note-status {font-size:12px;flex:1;min-width:110px}
.sa-clm-note-status[data-state="error"] {color:#a12b22}
.sa-clm-note-status[data-state="saved"] {color:#004526}
.sa-clm-note-status[data-state="warning"] {color:#8a5c00}
.sa-clm-notes-dashboard {max-width:900px;margin:24px auto;padding:0 16px;line-height:1.6}
.sa-clm-notes-dashboard h2,
.sa-clm-notes-dashboard h3 {font-family:aosa-regular,serif;color:#004526}
.sa-clm-notes-dashboard h2 {font-size:28px;line-height:1.25;margin:0 0 8px}
.sa-clm-notes-private {color:#526258;margin:0 0 18px}
.sa-clm-notes-controls {display:flex;align-items:end;gap:10px;flex-wrap:wrap;margin:16px 0}
.sa-clm-notes-controls label {display:block;flex:1 1 180px;min-width:160px;color:#004526;font-weight:700}
.sa-clm-notes-controls input {display:block;width:100%;min-height:42px;border:1px solid #b9cfc0;padding:8px 10px;font:inherit}
.sa-clm-notes-list-status {min-height:24px;color:#526258}
.sa-clm-note-card {padding:16px 0;border-top:1px solid #cbd7ce;overflow-wrap:anywhere}
.sa-clm-note-card h3 {font-size:20px;line-height:1.3;margin:0 0 6px}
.sa-clm-note-card-meta {color:#526258;font-size:13px;margin:0 0 8px}
.sa-clm-note-card-excerpt {white-space:pre-wrap;margin:0 0 8px}
.sa-clm-note-card-actions {display:flex;align-items:center;gap:8px 14px;flex-wrap:wrap}
.sa-clm-note-card-actions a {color:#004526;text-decoration:underline;min-height:38px;display:inline-flex;align-items:center}
.sa-clm-note-check-label {display:inline-flex;gap:5px;align-items:center;font-size:13px}
.sa-clm-note-check-label input {width:18px;height:18px;accent-color:#004526}
.sa-clm-notes-pagination {display:flex;align-items:center;justify-content:center;gap:12px;margin:22px 0}
@media(max-width:720px) {
	.sa-clm-note-editor,
	.sa-clm-note-editor.is-expanded {
		left:0!important;
		top:auto!important;
		bottom:var(--sa-clm-keyboard-bottom,0px);
		width:100vw!important;
		max-width:100vw;
		min-width:0;
		height:min(68vh,calc(var(--sa-clm-visual-height,100dvh) - 10px))!important;
		max-height:calc(var(--sa-clm-visual-height,100dvh) - 10px);
		resize:none;
		border-left:0;
		border-right:0;
		border-bottom:0;
		box-shadow:0 -10px 35px rgba(0,45,25,.18);
	}
	.sa-clm-note-editor.is-expanded {height:calc(var(--sa-clm-visual-height,100dvh) - 10px)!important}
	.sa-clm-note-editor.is-minimized {height:auto!important}
	.sa-clm-note-drag-handle {cursor:default;touch-action:auto}
	.sa-clm-note-header-actions button {min-height:44px}
	.sa-clm-note-content {padding-bottom:calc(12px + env(safe-area-inset-bottom,0px))}
	.sa-clm-notes-controls {align-items:stretch}
	.sa-clm-notes-controls label {flex-basis:100%}
	.sa-clm-notes-controls button {min-height:44px}
}
@media print {.sa-clm-note-editor,.sa-clm-notes-dashboard {display:none!important}}
@media(prefers-reduced-motion:reduce) {.sa-clm-note-editor *,.sa-clm-notes-dashboard * {animation:none!important;transition:none!important}}
