/* CSS VARIABLES - NOTE COLORS */

:root {/* THEME 0 (LIGHT) */
	--color-0: #ffffff;
	--color-1: #dddddd;
	--color-2: #fff4bb;
	--color-3: #c6ffbb;
	--color-4: #bbfff4;
	--color-5: #bbddff;
	--color-6: #ddbbff;
	--color-7: #ffbbc6;
	--color-8: #ffd5b2;
	--l-mid: -0.15;
	--l-dim: -0.26;
	--l-floor-mid: 0;
	--l-floor-dim: 0;
}

body[data-theme="1"] {/* THEME 1 (DARK) */
	--color-0: #000000;
	--color-1: #373737;
	--color-2: #594d16;
	--color-3: #1e5916;
	--color-4: #16594d;
	--color-5: #163559;
	--color-6: #351659;
	--color-7: #591622;
	--color-8: #5c3011;
	--l-mid: 0.22;
	--l-dim: 0.28;
	--l-floor-mid: 0.40;
	--l-floor-dim: 0.50;
}

body[data-theme="2"] {/* THEME 2 (DESERT SUNSET) */
	--color-0: #f0e4c8;
	--color-1: #e0cba8;
	--color-2: #f5d060;
	--color-3: #c8e090;
	--color-4: #80d0c0;
	--color-5: #90b8e0;
	--color-6: #d0a0e0;
	--color-7: #e0906a;
	--color-8: #f0b060;
	--l-mid: -0.12;
	--l-dim: -0.22;
	--l-floor-mid: 0;
	--l-floor-dim: 0;
}

/* USER LOCK */

#user-lock {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: 9500;
	opacity: 0;
	visibility: hidden;
	background-color: var(--bg-page);
	-webkit-transition: all 0.5s ease-in-out;
	-moz-transition: all 0.5s ease-in-out;
	-o-transition: all 0.5s ease-in-out;
	transition: all 0.5s ease-in-out;
}

#user-lock.display {
	opacity: 0.5;
	visibility: visible;
}

/* HEADER */

#app #header #logo-header {
	display: none;
}

#app #header #app-header-wrapper {
	display: inline-flex;
	justify-content: space-between;
	width: calc(100% - 140px);
	height: 60px;/* MATCH HEADER HEIGHT ON MAIN.CSS */
	padding-left: 20px;
	color: #fff;
}

#header #app-header-wrapper #offline-button {
	position: relative;
	margin-bottom: 0.2em;
	color: var(--text-header);
}

.no-touchevents #header #app-header-wrapper #offline-button:hover {
	color: color-mix(in srgb, var(--text-header) 50%, transparent);
}

#header #app-header-wrapper #offline-button #offline-button-label {
	position: absolute;
	right: 16px;
	top: 19px;
	font-size: 16px;
	letter-spacing: 0.1em;
	font-feature-settings: "liga" 0;
}

#header #app-header-wrapper #offline-button #offline-button-label #offline-text,
body[data-offline-mode="1"] #header #app-header-wrapper #offline-button #offline-button-label #online-text,
body[data-offline-mode="2"] #header #app-header-wrapper #offline-button #offline-button-label #online-text {
	display: none;
}

body[data-offline-mode="1"] #header #app-header-wrapper #offline-button #offline-button-label,
body[data-offline-mode="2"] #header #app-header-wrapper #offline-button #offline-button-label {
	right: initial;
	left: 16px;
	color: var(--primary);
}

body[data-offline-mode="1"] #header #app-header-wrapper #offline-button #offline-button-label #offline-text,
body[data-offline-mode="2"] #header #app-header-wrapper #offline-button #offline-button-label #offline-text {
	display: inline;
}

#header #app-header-wrapper #offline-button i {
	font-size: 2.3em;
}

#header #app-header-wrapper #offline-button .fa-toggle-long:before {
	content: "\2606";
}

body[data-offline-mode="1"] #header #app-header-wrapper #offline-button .fa-toggle-long:before,
body[data-offline-mode="2"] #header #app-header-wrapper #offline-button .fa-toggle-long:before {
	content: "\2605";
}

body[data-internet="0"] #header #app-header-wrapper #offline-button,
body[data-offline-mode="3"] #header #app-header-wrapper #offline-button {
	pointer-events: none;
	opacity: 0.35;
}

#header #app-header-wrapper #icon-status {
	display: flex;
	flex-direction: row;
	align-items: center;
	justify-content: center;
	font-size: 3em;
	width: 45px;
	height: 60px;
	-webkit-transform: scale(0);
	-moz-transform: scale(0);
	-o-transform: scale(0);
	transform: scale(0);
	-webkit-transition: -webkit-transform 0.2s linear;
	-moz-transition: -moz-transform 0.2s linear;
	-o-transition: -o-transform 0.2s linear;
	transition: transform 0.2s linear;
}

#header #app-header-wrapper #icon-status.display {
	-webkit-transform: scale(1);
	-moz-transform: scale(1);
	-o-transform: scale(1);
	transform: scale(1);
}

#header #app-header-wrapper #icon-status i {
	margin-bottom: 0.2em;
}

body[data-offline-mode="1"] #header #app-header-wrapper #icon-status,
body[data-offline-mode="2"] #header #app-header-wrapper #icon-status {
	display: none;
}

/* POP UP MESSAGE */

#popup-status {
	position: fixed;
	bottom: -80px;
	opacity: 0;
	visibility: hidden;
	overflow: auto;
	width: 100%;
	min-height: 60px;/* MATCHES FOOTER HEIGHT ON MAIN.CSS */
	background-color: var(--bg-page-inv);
	color: var(--text-inv);
	font-size: 18px;
	text-align: center;
	z-index: 8000;
	-webkit-transition: all 0.5s ease-in-out;
	-moz-transition: all 0.5s ease-in-out;
	-o-transition: all 0.5s ease-in-out;
	transition: all 0.5s ease-in-out;
}

#popup-status.show {
	bottom: 0;
	opacity: 1;
	visibility: visible;
}

#popup-status.red, #popup-status.green, #popup-status.blue, #popup-status.yellow {
	color: #fff;
}

#popup-status.red {
	background-color: #c43c35;
}

#popup-status.green {
	background-color: #57a957;
}

#popup-status.blue {
	background-color: #5780a9;
}

#popup-status.yellow {
	background-color: #a9a257;
}

#popup-status #popup-msg {
	display: inline-block;
	padding: 15px 10px;
	font-weight: 500;
	line-height: 1.6em;
}

#popup-status #popup-dismiss {
	position: absolute;
	right: 12px;
	top: 50%;
	-webkit-transform: translateY(-50%);
	-moz-transform: translateY(-50%);
	-o-transform: translateY(-50%);
	transform: translateY(-50%);
	font-size: 1.75em;
	color: var(--text-inv);
	cursor: pointer;
}

.no-touchevents #popup-status #popup-dismiss:hover {
	color: color-mix(in srgb, var(--text-inv) 60%, transparent);
}

#popup-status a {
	color: inherit;
	text-decoration: underline;
}

.no-touchevents #popup-status a:hover {
	color: inherit;
	text-decoration: none;
	opacity: 0.5;
}

/* SETTINGS MODAL */

#settings-button {
	position: fixed;
	top: 6px;
	right: 68px;
	display: flex;
	justify-content: center;
	align-items: center;
	background: none;
	border: none;
	padding: 0;
	font-size: 40px;
	width: 40px;
	height: 40px;
	color: var(--text-header);
	cursor: pointer;
	z-index: 9999;
}

.no-touchevents #settings-button:hover {
	color: color-mix(in srgb, var(--text-header) 50%, transparent);
}

.settings-section-label {
	display: block;
	font-weight: 700;
	font-size: 0.75em;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: color-mix(in srgb, var(--text-default) 40%, transparent);
	border-bottom: 2px solid color-mix(in srgb, var(--bg-page) 85%, var(--bg-page-inv));
	padding-bottom: 4px;
}

.settings-select {
	width: 100%;
	max-width: 300px;
	padding: 8px;
	font-size: 1em;
	font-weight: 500;
	text-align: center;
	border: 2px solid color-mix(in srgb, var(--bg-page) 85%, var(--bg-page-inv));
	border-radius: var(--radius);
	background-color: var(--bg-input);
	color: var(--text-default);
	cursor: pointer;
}

.no-touchevents .settings-select:hover {
	background-color: var(--bg-input-accent);
}

.settings-select:focus {
	outline: none;
}

/* MODAL WINDOW */

#modal {
	position: fixed;
	display: flex;
	visibility: hidden;
	flex-direction: row;
	justify-content: center;
	align-items: center;
	z-index: 20000;
	width: 100%;
	height: 100%;
	top: 0;
	left: 0;
	background: var(--bg-overlay);
}

#modal.display {
	visibility: visible;
}

#modal #modal-window {
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	background: var(--bg-page);
	border-radius: var(--radius);
	height: auto;
	max-height: 90vh;
	width: 90vw;
	max-width: 767px;
	z-index: 20001;
	opacity: 0;
	margin-top: 30vh;
	-webkit-transition: opacity 0.4s ease-out, margin-top 0.4s ease-out;
	-moz-transition: opacity 0.4s ease-out, margin-top 0.4s ease-out;
	-o-transition: opacity 0.4s ease-out, margin-top 0.4s ease-out;
	transition: opacity 0.4s ease-out, margin-top 0.4s ease-out;
}

#modal.display #modal-window {
	opacity: 1;
	margin-top: 0;
}

#modal #modal-window #modal-close {
	position: absolute;
	font-size: 1.75em;
	top: 5px;
	right: 9px;
	color: var(--text-default);
	cursor: pointer;
}

.no-touchevents #modal #modal-window #modal-close:hover {
	color: color-mix(in srgb, var(--text-default) 50%, transparent);
}

#modal #modal-window .row {
	text-align: center;
	width: 100%;
	padding: 10px 30px;
	-webkit-box-sizing: border-box;
	-moz-box-sizing: border-box;
	box-sizing: border-box;
}

#modal #modal-window .row button {
	border-radius: var(--radius);
}

#modal #modal-window .row button,
#modal #modal-window .row a {
	margin: 5px 10px;
}

#modal #modal-window .modal-window-wrapper-top {
	margin-top: 30px;
	overflow: auto;
	-webkit-overflow-scrolling: touch;
	will-change: scroll-position;
	word-break: break-word;
}

#modal #modal-window .modal-window-wrapper-top > *:first-child {
	margin-top: 0;
}

#modal #modal-window .modal-window-wrapper-top > *:last-child {
	margin-bottom: 0;
}

@media screen and (max-width: 767px) {
	#modal #modal-window .modal-window-wrapper-top {
		font-size: 1.2em;
	}
}

@media screen and (min-width: 768px) {
	#modal #modal-window .modal-window-wrapper-top {
		font-size: 1.5em;
	}
}

#modal #modal-window .modal-window-wrapper-bottom {
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	justify-content: center;
	align-content: center;
	align-items: center;
	margin-bottom: 10px;
}

/* MODAL CONTENT */

/* general */
#modal hr {
	width: 200px;
	height: 3px;
	color: var(--primary);
	background-color: var(--primary);
	border: 0;
	margin: 1em auto;
}

/* sync */

#modal #modal-window #icon-sync-process {
	font-size: 4em;
}

/* api */

#modal #modal-window #api-modal-link {
	color: var(--text-link);
	font-weight: 700;
	text-decoration: underline;
	word-break: break-all;
}

.no-touchevents #modal #modal-window #api-modal-link:hover {
	color: var(--text-link);
	text-decoration: none;
	opacity: 0.5;
}

/* lock & unlock */
#modal #modal-window #lock-password-input-1,
#modal #modal-window #lock-password-input-2,
#modal #modal-window #unlock-password-input {
	color: color-mix(in srgb, var(--text-default) 35%, transparent);
	background-color: var(--bg-input);
	padding: 5px 20px;
	font-size: 1.5em;
}

#modal #modal-window #lock-password-input-1:focus:not(.invalid),
#modal #modal-window #lock-password-input-2:focus:not(.invalid),
#modal #modal-window #unlock-password-input:focus:not(.invalid) {
	color: var(--text-success);
	background-color: var(--bg-success);
}

/* ACTIVE DIV */

#home,
#notepad,
#edit {
	display: none;
}

#home.active-loc {
	display: flex;
}

#notepad.active-loc,
#edit.active-loc {
	display: block;
}

/* HOME */

#home {
	flex-direction: column;
	justify-content: center;
	align-items: center;
	text-align: center;
	padding: 40px 0;
}

#home .label {
	margin: 10px 0;
}

#home .label .label-text {
	font-size: 1.2em;
	font-weight: 500;
}

#home .label .label-info {
	display: inline-block;
}

#home .label .label-info button {
	font-size: 20px;
	padding: 0;
	color: #cc0000;
}

.no-touchevents #home .label .label-info button:hover {
	color: #ff6666;
}

#logo-homepage {
	display: inline-block;
	width: 240px;
	height: 63px;
	background-size: 240px 63px;
	margin: 15px 0;
}

@media screen and (min-width: 481px) and (min-height: 481px) {
	#logo-homepage {
		width: 400px;
		height: 105px;
		background-size: 400px 105px;
	}
}

.logo-homepage-path {
	fill: var(--text-default);
}

#notepad-input-wrapper,
#recent-notepads-wrapper {
	width: 90vw;
	max-width: 90vw;
}

@media screen and (min-width: 481px) and (max-width: 767px) {
	#notepad-input-wrapper,
	#recent-notepads-wrapper {
		width: 75vw;
	}
}

@media screen and (min-width: 768px) {
	#notepad-input-wrapper,
	#recent-notepads-wrapper {
		width: 50vw;
	}
}

#notepad-input-wrapper {
	display: flex;
	flex-direction: row;
}

#notepad-input {
	width: calc(100% - 50px);
	height: 50px;
	font-size: 1.5em;
	font-weight: 500;
	padding: 5px 20px;
	border-radius: var(--radius) 0 0 var(--radius);
}

#find-notepad-button {
	width: 50px;
	height: 50px;
	font-size: 24px;
	border-radius: 0 var(--radius) var(--radius) 0;
}

@media screen and (min-width: 481px) {
	#notepad-input {
		width: calc(100% - 75px);
		height: 75px;
		font-size: 2em;
	}
	#find-notepad-button {
		width: 75px;
		height: 75px;
		font-size: 36px;
	}
}

#recent-notepads-wrapper {
	display: none;
	margin-top: 20px;
}

#recent-notepads-button {
	position: relative;
	border-radius: var(--radius);
}

#recent-notepads-button:after {
	content: '\02795';
	position: absolute;
	right: 20px;
	font-size: 13px;
	color: transparent;
	text-shadow: 0 0 0 var(--text-inv);
}

#recent-notepads-button.active {
	border-bottom-left-radius: 0;
	border-bottom-right-radius: 0;
}

#recent-notepads-button.active:after {
	content: "\2796";
}

#recent-notepads {
	overflow: hidden;
	max-height: 0px;
	transition: max-height 0.2s ease-out;
}

#recent-notepads button {
	border-bottom: 1pt solid var(--text-default);
}

#recent-notepads button:last-child {
	border-bottom: none !important;
	border-bottom-left-radius: var(--radius);
	border-bottom-right-radius: var(--radius);
}

body[data-web-app="1"] #recent-notepads-wrapper {
	display: block;
}

body[data-web-app="1"] #notepad-input-label {
	order: 1;
}

body[data-web-app="1"] #notepad-input-wrapper {
	order: 2;
}

body[data-web-app="1"] #recent-notepads-wrapper {
	order: 3;
}

/* NOTEPAD TOP */

#notepad-top,
#np-top-row {
	margin-bottom: 15px;
}

#np-top-row {
	display: flex;
	flex-direction: row;
	align-items: center;
	justify-content: space-between;
	width: 100%;
	height: 40px;
}

body[data-internet="0"] #lock-button-wrapper,
body[data-offline-mode="1"] #lock-button-wrapper,
body[data-offline-mode="2"] #lock-button-wrapper {
	display: none;
}

#lock-button {
	width: 40px;
	height: 40px;
	flex: 0 0 40px;
	font-size: 24px;
	padding: 0;
	margin-right: 10px;
	background-color: color-mix(in srgb, var(--bg-page-inv) 30%, transparent);
	color: #ffaa4a;
}

.no-touchevents #lock-button:hover {
	background-color: color-mix(in srgb, var(--bg-page-inv) 50%, transparent);
}

#np-rename {
	display: flex;
	flex-direction: row;
	align-items: center;
	justify-content: flex-start;
	flex-grow: 1;
	font-weight: 800;
	width: calc(100% - 50px);/*lock-button 40px width + 10px margin*/
	white-space: nowrap;
	overflow: hidden;
}

#np-rename > * {
	line-height: 40px;
}

#np-rename-input {
	font-size: inherit;
	font-weight: inherit;
	width: 100%;
	padding: 0 10px;
	margin: 0;
	background-color: transparent;
}

#np-rename-input:focus {
	background-color: var(--bg-input-accent);
}

#np-rename-input.warning {
	background-color: rgba(204, 0, 0, 0.50);
}

#np-rename #np-name-wrapper {
	padding: 0 10px;
	overflow: hidden;
	cursor: pointer;
	background-color: transparent;
	border-radius: var(--radius);
	-webkit-transition: background-color 0.3s linear;
	-moz-transition: background-color 0.3s linear;
	-o-transition: background-color 0.3s linear;
	transition: background-color 0.3s linear;
}

.no-touchevents #np-rename #np-name-wrapper:hover {
	background-color: color-mix(in srgb, var(--text-link) 50%, transparent);
}

#np-rename #np-name-wrapper #np-name {
	-webkit-box-shadow: inset 0 -4px 0 color-mix(in srgb, var(--text-link) 50%, transparent);
	-moz-box-shadow: inset 0 -4px 0 color-mix(in srgb, var(--text-link) 50%, transparent);
	box-shadow: inset 0 -4px 0 color-mix(in srgb, var(--text-link) 50%, transparent);
	-webkit-transition: -webkit-box-shadow 0.3s linear;
	-moz-transition: -moz-box-shadow 0.3s linear;
	-o-transition: box-shadow 0.3s linear;
	transition: box-shadow 0.3s linear;
}

.no-touchevents #np-rename #np-name-wrapper #np-name:hover {
	-webkit-box-shadow: inset 0 0 0 color-mix(in srgb, var(--text-link) 50%, transparent);
	-moz-box-shadow: inset 0 0 0 color-mix(in srgb, var(--text-link) 50%, transparent);
	box-shadow: inset 0 0 0 color-mix(in srgb, var(--text-link) 50%, transparent);
}

#np-desc {
	margin-bottom: 15px;
}

#np-desc-textarea {
	display: block;
	width: 100%;
	font-size: 1.5em;
	font-weight: 500;
	padding: 5px;
	cursor: pointer;
	box-sizing: border-box;
	outline: none;
	background-color: transparent;
	resize: none;
	overflow: hidden;
	-webkit-transition: background-color 0.2s linear;
	-moz-transition: background-color 0.2s linear;
	-o-transition: background-color 0.2s linear;
	transition: background-color 0.2s linear;
}

#np-desc-textarea::placeholder {
	color: color-mix(in srgb, var(--text-default) 35%, transparent);
}

.no-touchevents #np-desc-textarea:hover {
	background-color: var(--bg-input-accent);
}

.no-touchevents #np-desc-textarea:placeholder-shown:hover {
	color: color-mix(in srgb, var(--text-default) 50%, transparent);
	background-color: color-mix(in srgb, var(--bg-input-accent) 80%, var(--bg-page-inv));
}

#np-desc-textarea:focus,
.no-touchevents #np-desc-textarea:focus:hover {
	cursor: text;
	background-color: color-mix(in srgb, var(--text-link) 50%, transparent);
}

#np-desc-textarea:placeholder-shown {
	background-color: var(--bg-input-accent);
}

#np-desc-label {
	display: none;
}

#np-desc-label.show {
	display: inline;
}

@media screen and (max-width: 480px) {
	#np-rename {
		font-size: 1.5em;
	}
	#np-rename > * {
		line-height: 34px;
	}
	#np-desc-textarea {
		font-size: 1.2em;
	}
}

#notepad-btns {
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 10px;
}

#notepad-btns button {
	flex: 1 1 0;
	border-radius: var(--radius);
}

#notepad-btns button span {
	font-weight: 500;
}

@media screen and (max-width: 767px) {
	#notepad-btns {
		flex-wrap: nowrap;
		gap: 0;
	}
	#notepad-btns button {
		border-radius: 0;
	}
	#notepad-btns button:first-child {
		border-top-left-radius: var(--radius);
		border-bottom-left-radius: var(--radius);
	}
	#notepad-btns button:last-child,
	#notepad[data-lock-status="locked"] #notepad-btns button#json-modal-button {
		border-top-right-radius: var(--radius);
		border-bottom-right-radius: var(--radius);
	}
}

@media screen and (min-width: 993px) {
	#notepad-btns {
		gap: 20px;
	}
}

#quick-add {
	display: flex;
	margin: 20px 0;
}

#quick-add form {
	display: inherit;
	width: 100%;
}

#quick-add-input {
	font-weight: 500;
	width: calc(100% - 50px);
	height: 50px;
	padding: 5px 20px;
	border-radius: var(--radius) 0 0 var(--radius);
}

@media screen and (max-width: 767px) {
	#quick-add-input {
		font-size: 1.2em;
	}
}

@media screen and (min-width: 768px) {
	#quick-add-input {
		font-size: 1.5em;
	}
}

#quick-add-button {
	border-radius: 0 var(--radius) var(--radius) 0;
}

/* EMPTY NOTEPAD PLACEHOLDER CONTENT */

#notepad-empty {
	text-align: center;
}

#notepad-empty #empty-folder {
	display: inline-block;
	margin-top: 10px;
	width: 100px;
	height: 100px;
	background-size: 100px 100px;
	transform: translate3d(0,0,0);/*without this, the logo will flicker on iOS when transitioning from notepad to note edit*/
}

@media screen and (max-width: 767px) {
	#notepad-empty #empty-folder {
		width: 75px;
		height: 75px;
		background-size: 75px 75px;
	}
}

#notepad-empty #empty-folder-svg .folder-bkg {
	fill: color-mix(in srgb, var(--bg-page-inv) 20%, transparent);
}

#notepad-empty #empty-folder-svg .folder-otl {
	fill: var(--primary);
}

/* NOTEPAD TABLE */

#notepad-table {
	width: 100%;
	background-color: var(--bg-page-inv);
	border-top-left-radius: var(--radius);
	border-top-right-radius: var(--radius);
}

#notepad-table #notepad-header {
	position: relative;
	display: flex;
	flex-direction: row;
	align-items: center;
	color: var(--text-header);
	background-color: var(--primary);
	height: 46px;
	border: 2px solid var(--border-notepad);
	border-top-left-radius: var(--radius);
	border-top-right-radius: var(--radius);
	margin: -2px 0 0 0;
}

#notepad-table #notepad-header .col-2,
#notepad-table #notepad-header .col-4 {
	display: flex;
	flex-direction: row;
	justify-content: flex-end;
}

#notepad-table #notepad-header #color-change-all-button {
	margin-right: 20px;
}

@media screen and (max-width: 767px) {
	#notepad-table #notepad-header #color-change-all-button {
		margin-right: 10px;
	}
}

#notepad-table #notepad-header #color-change-all-button,
#notepad-table #notepad-header #check-all-button {
	color: var(--text-header);
}

.no-touchevents #notepad-table #notepad-header #color-change-all-button:hover,
.no-touchevents #notepad-table #notepad-header #check-all-button:hover {
	color: color-mix(in srgb, var(--text-header) 50%, transparent);
}

#notepad-table #notepad-header .checkbox .fa-checkbox:before {
	content: "\2610";
}

#notepad-table #notepad-header .checkbox[data-check-state="1"] .fa-checkbox:before {
	content: "\2611";
}

#notepad-table #notepad-header .checkbox[data-check-state="2"] .fa-checkbox:before {
	content: "\25a3";
}

#notepad-table .checkbox,
#notepad-table #notepad-header .palette {
	font-size: 2.2em;
}

#notepad-table #notepad-header #logo-nphead {
	display: inline-block;
	margin-top: 5px;
	width: 122px;
	height: 32px;
	background-size: 122px 32px;
}

#notepad-table #notepad-header #logo-nphead .logo-nphead-path {
	fill: var(--text-header);
}

#notepad-table .note-row {
	position: relative;
	display: flex;
	flex-direction: row;
	align-items: flex-start;
	min-height: 70px;
	border: 2px solid var(--border-notepad);
	margin: -2px 0 0 0;
	overflow: hidden;
	-webkit-transition: background-color 0.1s linear;
	-moz-transition: background-color 0.1s linear;
	-o-transition: background-color 0.1s linear;
	transition: background-color 0.1s linear;
}

#notepad-table .note-row button {
	-webkit-transition: all 0.1s linear;
	-moz-transition: all 0.1s linear;
	-o-transition: all 0.1s linear;
	transition: all 0.1s linear;
}

#notepad-table .note-row .fa-checkbox:before {
	content: "\2610";
}

#notepad-table .note-row[data-is-checked="1"] .fa-checkbox:before {
	content: "\2611";
}

#notepad-table .note-row[data-is-checked="1"] {
	background-image: repeating-linear-gradient(
		45deg,
		var(--bg-stripe),
		var(--bg-stripe) 10px,
		transparent 10px,
		transparent 20px
	)
}

#notepad-table .note-row > div {
	position: relative;
}

#notepad-table .col-1 {
	flex: 0 0 40px;
	width: 40px;
	min-width: 40px;
	z-index: 101;
}

#notepad-table .col-1 button {
	width: 30px;
	height: 30px;
	font-size: 1.2em;
	margin: 2px 0 2px 4px;
}

#notepad-table .col-2 {
	white-space: nowrap;
	z-index: 102;
}

#notepad-table .col-3 {
	flex: 0 0 40px;
	width: 40px;
	min-width: 40px;
	z-index: 103;
}

#notepad-table .col-4 {
	flex-grow: 1;
	padding: 10px;
	z-index: 104;
}

@media screen and (max-width: 767px) {
	#notepad-table .note-row {
		align-items: center;
	}
	#notepad-table #notepad-header .col-2 > div {
		margin-right: 10px;
	}
	#notepad-table .col-2 {
		flex: 0 0 50px;
		width: 50px;
		min-width: 50px;
	}
	#notepad-table .col-2 .expand-button {
		display: inline;
	}
	#notepad-table .col-2 .note-tool-btns {
		display: none;
	}
	#notepad-table .col-4 {
		width: calc(100% - 160px);
	}
}

@media screen and (min-width: 768px) {
	#notepad-table .col-2 {
		flex: 0 0 195px;
		width: 195px;
		min-width: 195px;
	}
	#notepad-table .col-2 .expand-button {
		display: none;
	}
	#notepad-table .col-2 .note-tool-btns {
		display: inline-block;
	}
	#notepad-table #notepad-body .col-2 .expand-button,
	#notepad-table #notepad-body .col-2 .note-tool-btns,
	#notepad-table #notepad-body .col-3 .checkbox {
		margin-top: 14px;
	}
	#notepad-table .col-4 .note {
		margin: 12px 0;
	}
	#notepad-table .col-4 {
		width: calc(100% - 305px);
	}
	.no-touchevents #notepad-table .col-1 {
		display: none;
	}
	.no-touchevents #notepad-table .col-2 {
		flex: 0 0 205px;
		width: 205px;
		min-width: 205px;
	}
	.no-touchevents #notepad-table .col-2 .note-tool-btns {
		margin-left: 10px;
	}
	.no-touchevents #notepad-table .col-4 {
		width: calc(100% - 275px);
	}
	.touchevents #notepad-table .col-2 {
		flex: 0 0 150px;
		width: 150px;
		min-width: 150px;
	}
	.touchevents #notepad-table .col-2 .sort-button {
		display: none;
	}
	.touchevents #notepad-table .col-4 {
		width: calc(100% - 260px);
	}
}

#notepad-table .col-1::selection,
#notepad-table .col-2 .note-tool-btns::selection {
	background-color: inherit;
}

#notepad-table .col-2 button,
#notepad-table .col-4 button {
	width: 40px;
	height: 40px;
	font-size: 1.7em;
}

#notepad-table .col-2 .expand-button .fa {
	font-size: 1.2em;
}

#notepad-table .col-4 a {
	-webkit-transition: all 0.1s linear;
	-moz-transition: all 0.1s linear;
	-o-transition: all 0.1s linear;
	transition: all 0.1s linear;
}

#notepad-table .col-4 a:link,
#notepad-table .col-4 a:visited,
#notepad-table .col-4 a:active,
.no-touchevents #notepad-table .col-4 a:hover {
	text-decoration: underline;
}

#notepad-table .col-4 .note-tool-btns {
	position: absolute;
	top: 50%;
	left: 50%;
	width: 140px;
	height: 44px;
	margin: -22px 0 0 -70px;
	z-index: 1000;
	visibility: hidden;
	opacity: 0;
}

#notepad-table .col-4 .note-tool-btns button {
	-webkit-transform: scale(0);
	-moz-transform: scale(0);
	-o-transform: scale(0);
	transform: scale(0);
	-webkit-transition: -webkit-transform 0.2s linear;
	-moz-transition: -moz-transform 0.2s linear;
	-o-transition: -o-transform 0.2s linear;
	transition: transform 0.2s linear;
}

#notepad-table .col-4.tools-disp .note-tool-btns button {
	-webkit-transform: scale(1);
	-moz-transform: scale(1);
	-o-transform: scale(1);
	transform: scale(1);
}

@media screen and (max-width: 767px) {
	#notepad-table .col-4 .note {
		font-size: 1em;
	}
	#notepad-table .col-4 .note .note-short {
		display: inline;
	}
	#notepad-table .col-4 .note .note-short {
		display: inline;
	}
	#notepad-table .col-4 .note .note-full {
		display: none;
	}
}

@media screen and (min-width: 768px) {
	#notepad-table .col-4 .note {
		font-size: 1.2em;
	}
	#notepad-table .col-4 .note .note-short {
		display: none;
	}
	#notepad-table .col-4 .note .note-full {
		display: inline;
	}
}

#notepad-table .col-4 .note .note-short.hidden {
	display: none;
}

#notepad-table .col-4 .note .note-full.display {
	display: inline;
}

#notepad-table .col-4 .note > span {
	font-weight: 500;
	white-space: pre-wrap;
	white-space: -moz-pre-wrap;
	white-space: -pre-wrap;
	white-space: -o-pre-wrap;
}

@media screen and (min-width: 350px) and (max-width: 480px) {
	#notepad-table .col-4 .note-tool-btns {
		width: 200px;
		margin-left: -100px;
	}
	#notepad-table .col-4 .note-tool-btns button {
		margin-left: 10px;
		margin-right: 10px;
	}
}

@media screen and (min-width: 481px) and (max-width: 767px) {
	#notepad-table .col-4 .note-tool-btns {
		width: 260px;
		margin-left: -130px;
	}
	#notepad-table .col-4 .note-tool-btns button {
		margin-left: 20px;
		margin-right: 20px;
	}
}

@media screen and (max-width: 767px) {
	#notepad-table .col-4.tools-disp .note-tool-btns {
		visibility: visible;
		opacity: 1;
	}
	#notepad-table .col-4.tools-disp .note {
		pointer-events: none;
		cursor: default;
		opacity: 0;
	}
}

@media screen and (min-width: 768px) {
	#notepad-table .col-4 .note-tool-btns {
		visibility: hidden;
	}
	.no-touchevents #notepad-table .note-row:hover .copy-button {
		display: inline;
	}
}

#notepad-table .note-row .copy-button {
	display: none;
	position: absolute;
	padding: 4px 6px;
	margin: 0;
	border: 0;
	top: 0;
	right: 0;
	cursor: pointer;
	z-index: 105;
}

#notepad-table .note-row .copy-button:focus {
	outline: 0;
}

#notepad-table .note-row .copy-button .fa {
	font-size: 18px;
}

#notepad-table .note-row .sort-button {
	touch-action: none;
}

#notepad-table .sortable-placeholder {
	opacity: 0.3;
}

#notepad-table .circle-1, #notepad-table .circle-2, #notepad-table .circle-3 {
	position: absolute !important;
	background-color: var(--bg-circle);
	border-radius: 50%;
	width: 150%;
	height: 150%;
	top: -25%;
	left: -25%;
	opacity: 0;
	animation: growAndFade 1500ms infinite ease-out;
}

#notepad-table .circle-1 {
	animation-delay: 500ms;
	z-index: 91;
}

#notepad-table .circle-2 {
	animation-delay: 1000ms;
	z-index: 92;
}

#notepad-table .circle-3 {
	animation-delay: 1500ms;
	z-index: 93;
}

@keyframes growAndFade {
	0% {
		opacity: 0.50;
		transform: scale(0);
	}
	100% {
		opacity: 0;
		transform: scale(1);
	}
}

.disable-select {
	user-select: none;
	-khtml-user-select: none;
	-moz-user-select: none;
	-webkit-user-select: none;
	-webkit-touch-callout: none;
}

/* NOTEPAD LOCK MODIFICATIONS */

#notepad[data-lock-status="locked"] #notepad-table #notepad-header,
#notepad[data-lock-status="locked"] #notepad-table .note-row .col-1,
#notepad[data-lock-status="locked"] #notepad-table .note-row .col-2,
#notepad[data-lock-status="locked"] #notepad-table .note-row .col-3,
#notepad[data-lock-status="locked"] #delete-all-modal-button,
#notepad[data-lock-status="locked"] #sort-modal-button,
#notepad[data-lock-status="locked"] #refresh-button,
#notepad[data-lock-status="locked"] #quick-add {
	display: none;
}

.no-touchevents #notepad[data-lock-status="locked"] #np-rename #np-name-wrapper {
	-webkit-transition: none 0s linear;
	-moz-transition: none 0s linear;
	-o-transition: none 0s linear;
	transition: none 0s linear;
}

.no-touchevents #notepad[data-lock-status="locked"] #np-rename #np-name-wrapper:hover {
	cursor: auto;
	background-color: transparent;
}

#notepad[data-lock-status="locked"] #np-rename #np-name-wrapper #np-name {
	-webkit-box-shadow: none;
	-moz-box-shadow: none;
	box-shadow: none;
	-webkit-transition: none 0s linear;
	-moz-transition: none 0s linear;
	-o-transition: none 0s linear;
	transition: none 0s linear;
}

.no-touchevents #notepad[data-lock-status="locked"] #np-rename #np-name-wrapper #np-name:hover {
	-webkit-box-shadow: none;
	-moz-box-shadow: none;
	box-shadow: none;
}

.no-touchevents #notepad[data-lock-status="locked"] #np-desc-textarea:hover,
#notepad[data-lock-status="locked"] #np-desc-textarea:focus,
.no-touchevents #notepad[data-lock-status="locked"] #np-desc-textarea:focus:hover {
	cursor: auto;
	background-color: transparent;
}

#notepad[data-lock-status="locked"] #np-desc-label.show {
	display: none;
}

/* NOTE EDIT */

#color-selector-wrapper {
	display: flex;
	flex-direction: row;
	align-items: center;
	margin-bottom: 20px;
}

#color-selector-wrapper .h3 {
	float: left;
	line-height: 35px;
	margin-right: 10px;
}

#color-selector-wrapper #edit-color-selector {
	height: 40px;
	width: 40px;
	font-size: 1.7em;
	background-color: color-mix(in srgb, var(--bg-page-inv) 50%, transparent);
}

.no-touchevents #color-selector-wrapper #edit-color-selector:hover {
	background-color: color-mix(in srgb, var(--bg-page-inv) 30%, transparent);
}

#note-text {
	width: 100%;
	min-width: 100%;
	min-height: 45vh;
	font-size: 1.2em;
	font-weight: 500;
	padding: 20px;
	margin-bottom: 20px;
	resize: vertical;
	border: 4px solid color-mix(in srgb, var(--bg-page-inv) 25%, transparent);
}

@media screen and (min-width: 481px) {
	#note-text {
		font-size: 1.5em;
	}
}

#note-edit-btns {
	display: flex;
	flex-direction: row;
	justify-content: space-between;
}

#note-edit-btns button {
	margin: 0 10px 0 0;
	border-radius: var(--radius);
}

#note-edit-btns button:nth-last-child(1) {
	margin-right: 0;
}

/* STICKY BUTTONS */

#sticky-buttons {
	position: fixed;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	z-index: 5000;
	opacity: 0;
	visibility: hidden;
	-webkit-transition: opacity 0.4s linear, visibility 0.4s linear;
	-moz-transition: opacity 0.4s linear, visibility 0.4s linear;
	-o-transition: opacity 0.4s linear, visibility 0.4s linear;
	transition: opacity 0.4s linear, visibility 0.4s linear;
}

#sticky-buttons button {
	padding: 0;
}

#sticky-buttons .fa-stack-1x {
	margin-top: 0.07em;
}

#sticky-buttons #sticky-toggle .fa-stack-1x {
	margin-top: 0.03em;
}

#sticky-buttons.display {
	opacity: 1;
	visibility: visible;
}

body.noscroll #sticky-buttons {
	transform: translate3d(0,0,0);/*without this, the sticky buttons will flicker on iOS when the menu displays*/
}

@media screen and (max-width: 767px) {
	#sticky-buttons {
		bottom: 25px;
		right: 25px;
	}
	#sticky-buttons button {
		font-size: 30px;
	}
}

@media screen and (min-width: 768px) {
	#sticky-buttons {
		bottom: 60px;
		right: 60px;
	}
	#sticky-buttons button {
		font-size: 40px;
	}
}

#sticky-add {
	color: var(--bg-sticky-add);
}

.no-touchevents #sticky-add:hover {
	color: var(--text-default);
}

#sticky-add .fa-circle {
	text-shadow: 3px 3px 5px rgba(0,0,0,0.25);
}

#sticky-buttons-expand-group {
	opacity: 0;
	visibility: hidden;
	-webkit-transition: all 0.4s linear;
	-moz-transition: all 0.4s linear;
	-o-transition: all 0.4s linear;
	transition: all 0.4s linear;
}

#sticky-buttons-expand-group.display {
	opacity: 1;
	visibility: visible;
}

#sticky-buttons-expand-group button {
	color: var(--text-default);
	opacity: 0.50;
}

.no-touchevents #sticky-buttons-expand-group button:hover {
	color: var(--text-default);
	opacity: 1;
}

.no-touchevents #sticky-add:hover .fa-inverse,
#sticky-buttons-expand-group .fa-inverse {
	color: var(--text-inv);
}

#sticky-buttons-expand {
	display: none;
	flex-direction: column;
	justify-content: center;
	align-items: center;
}

#sticky-buttons-expand.display {
	display: flex;
}

#sticky-buttons-expand button {
	-webkit-transform: scale(0);
	-moz-transform: scale(0);
	-o-transform: scale(0);
	transform: scale(0);
}

#sticky-toggle {
	display: none;
}

#sticky-toggle .fa-stack-1x {
	font-size: 1.4em;
}

@media screen and (max-height: 480px) {
	#sticky-buttons {
		align-items: flex-end;
	}
	#sticky-buttons-expand-group {
		display: flex;
		flex-direction: row;
		justify-content: flex-end;
		align-items: center;
	}
	#sticky-buttons-expand {
		flex-direction: row;
		justify-content: flex-end;
		align-items: center;
	}
}

/* COLORS */

/* WHITE */

.note-row[data-color="0"] {
	background-color: var(--color-0);
}

.note-row[data-color="0"] button {
	background-color: oklch(from var(--color-0) max(calc(l + var(--l-mid)), var(--l-floor-mid)) c h);
}

.no-touchevents #notepad-table .note-row[data-color="0"] .col-3 button:hover,
.note-row[data-color="0"] .note a:link,
.note-row[data-color="0"] .note a:visited,
.note-row[data-color="0"] .note a:active {
	color: oklch(from var(--color-0) max(calc(l + var(--l-dim)), var(--l-floor-dim)) c h);
}

.note-row[data-color="0"] .note span::selection,
.note-row[data-color="0"] .note a::selection,
.no-touchevents #notepad-table .note-row[data-color="0"] button:hover {
	background-color: oklch(from var(--color-0) max(calc(l + var(--l-dim)), var(--l-floor-dim)) c h);
}

/* GRAY */

.note-row[data-color="1"] {
	background-color: var(--color-1);
}

.note-row[data-color="1"] button {
	background-color: oklch(from var(--color-1) max(calc(l + var(--l-mid)), var(--l-floor-mid)) c h);
}

.no-touchevents #notepad-table .note-row[data-color="1"] .col-3 button:hover,
.note-row[data-color="1"] .note a:link,
.note-row[data-color="1"] .note a:visited,
.note-row[data-color="1"] .note a:active {
	color: oklch(from var(--color-1) max(calc(l + var(--l-dim)), var(--l-floor-dim)) c h);
}

.note-row[data-color="1"] .note span::selection,
.note-row[data-color="1"] .note a::selection,
.no-touchevents #notepad-table .note-row[data-color="1"] button:hover {
	background-color: oklch(from var(--color-1) max(calc(l + var(--l-dim)), var(--l-floor-dim)) c h);
}

/* YELLOW */

.note-row[data-color="2"] {
	background-color: var(--color-2);
}

.note-row[data-color="2"] button {
	background-color: oklch(from var(--color-2) max(calc(l + var(--l-mid)), var(--l-floor-mid)) c h);
}

.no-touchevents #notepad-table .note-row[data-color="2"] .col-3 button:hover,
.note-row[data-color="2"] .note a:link,
.note-row[data-color="2"] .note a:visited,
.note-row[data-color="2"] .note a:active {
	color: oklch(from var(--color-2) max(calc(l + var(--l-dim)), var(--l-floor-dim)) c h);
}

.note-row[data-color="2"] .note span::selection,
.note-row[data-color="2"] .note a::selection,
.no-touchevents #notepad-table .note-row[data-color="2"] button:hover {
	background-color: oklch(from var(--color-2) max(calc(l + var(--l-dim)), var(--l-floor-dim)) c h);
}

/* GREEN */

.note-row[data-color="3"] {
	background-color: var(--color-3);
}

.note-row[data-color="3"] button {
	background-color: oklch(from var(--color-3) max(calc(l + var(--l-mid)), var(--l-floor-mid)) c h);
}

.no-touchevents #notepad-table .note-row[data-color="3"] .col-3 button:hover,
.note-row[data-color="3"] .note a:link,
.note-row[data-color="3"] .note a:visited,
.note-row[data-color="3"] .note a:active {
	color: oklch(from var(--color-3) max(calc(l + var(--l-dim)), var(--l-floor-dim)) c h);
}

.note-row[data-color="3"] .note span::selection,
.note-row[data-color="3"] .note a::selection,
.no-touchevents #notepad-table .note-row[data-color="3"] button:hover {
	background-color: oklch(from var(--color-3) max(calc(l + var(--l-dim)), var(--l-floor-dim)) c h);
}

/* CYAN */

.note-row[data-color="4"] {
	background-color: var(--color-4);
}

.note-row[data-color="4"] button {
	background-color: oklch(from var(--color-4) max(calc(l + var(--l-mid)), var(--l-floor-mid)) c h);
}

.no-touchevents #notepad-table .note-row[data-color="4"] .col-3 button:hover,
.note-row[data-color="4"] .note a:link,
.note-row[data-color="4"] .note a:visited,
.note-row[data-color="4"] .note a:active {
	color: oklch(from var(--color-4) max(calc(l + var(--l-dim)), var(--l-floor-dim)) c h);
}

.note-row[data-color="4"] .note span::selection,
.note-row[data-color="4"] .note a::selection,
.no-touchevents #notepad-table .note-row[data-color="4"] button:hover {
	background-color: oklch(from var(--color-4) max(calc(l + var(--l-dim)), var(--l-floor-dim)) c h);
}

/* BLUE */

.note-row[data-color="5"] {
	background-color: var(--color-5);
}

.note-row[data-color="5"] button {
	background-color: oklch(from var(--color-5) max(calc(l + var(--l-mid)), var(--l-floor-mid)) c h);
}

.no-touchevents #notepad-table .note-row[data-color="5"] .col-3 button:hover,
.note-row[data-color="5"] .note a:link,
.note-row[data-color="5"] .note a:visited,
.note-row[data-color="5"] .note a:active {
	color: oklch(from var(--color-5) max(calc(l + var(--l-dim)), var(--l-floor-dim)) c h);
}

.note-row[data-color="5"] .note span::selection,
.note-row[data-color="5"] .note a::selection,
.no-touchevents #notepad-table .note-row[data-color="5"] button:hover {
	background-color: oklch(from var(--color-5) max(calc(l + var(--l-dim)), var(--l-floor-dim)) c h);
}

/* PURPLE */

.note-row[data-color="6"] {
	background-color: var(--color-6);
}

.note-row[data-color="6"] button {
	background-color: oklch(from var(--color-6) max(calc(l + var(--l-mid)), var(--l-floor-mid)) c h);
}

.no-touchevents #notepad-table .note-row[data-color="6"] .col-3 button:hover,
.note-row[data-color="6"] .note a:link,
.note-row[data-color="6"] .note a:visited,
.note-row[data-color="6"] .note a:active {
	color: oklch(from var(--color-6) max(calc(l + var(--l-dim)), var(--l-floor-dim)) c h);
}

.note-row[data-color="6"] .note span::selection,
.note-row[data-color="6"] .note a::selection,
.no-touchevents #notepad-table .note-row[data-color="6"] button:hover {
	background-color: oklch(from var(--color-6) max(calc(l + var(--l-dim)), var(--l-floor-dim)) c h);
}

/* RED */

.note-row[data-color="7"] {
	background-color: var(--color-7);
}

.note-row[data-color="7"] button {
	background-color: oklch(from var(--color-7) max(calc(l + var(--l-mid)), var(--l-floor-mid)) c h);
}

.no-touchevents #notepad-table .note-row[data-color="7"] .col-3 button:hover,
.note-row[data-color="7"] .note a:link,
.note-row[data-color="7"] .note a:visited,
.note-row[data-color="7"] .note a:active {
	color: oklch(from var(--color-7) max(calc(l + var(--l-dim)), var(--l-floor-dim)) c h);
}

.note-row[data-color="7"] .note span::selection,
.note-row[data-color="7"] .note a::selection,
.no-touchevents #notepad-table .note-row[data-color="7"] button:hover {
	background-color: oklch(from var(--color-7) max(calc(l + var(--l-dim)), var(--l-floor-dim)) c h);
}

/* ORANGE */

.note-row[data-color="8"] {
	background-color: var(--color-8);
}

.note-row[data-color="8"] button {
	background-color: oklch(from var(--color-8) max(calc(l + var(--l-mid)), var(--l-floor-mid)) c h);
}

.no-touchevents #notepad-table .note-row[data-color="8"] .col-3 button:hover,
.note-row[data-color="8"] .note a:link,
.note-row[data-color="8"] .note a:visited,
.note-row[data-color="8"] .note a:active {
	color: oklch(from var(--color-8) max(calc(l + var(--l-dim)), var(--l-floor-dim)) c h);
}

.note-row[data-color="8"] .note span::selection,
.note-row[data-color="8"] .note a::selection,
.no-touchevents #notepad-table .note-row[data-color="8"] button:hover {
	background-color: oklch(from var(--color-8) max(calc(l + var(--l-dim)), var(--l-floor-dim)) c h);
}

/* BLACK OR NULL */

.note-row[data-color="null"],
.note-row[data-color="null"] button,
.note-row[data-color="null"] .note span::selection,
.note-row[data-color="null"] .note a::selection,
.no-touchevents #notepad-table .note-row[data-color="null"] button:hover {
	background-color: #000;
}

.note-row[data-color="null"] .note a:link,
.note-row[data-color="null"] .note a:visited,
.note-row[data-color="null"] .note a:active,
.no-touchevents #notepad-table .note-row[data-color="null"] .note a:hover,
.note-row[data-color="null"] .note span::selection,
.note-row[data-color="null"] .note a::selection {
	color: #000;
}

/* SHARED */

.note-row[data-color="0"] .note span::selection, .note-row[data-color="0"] .note a::selection,
.note-row[data-color="1"] .note span::selection, .note-row[data-color="1"] .note a::selection,
.note-row[data-color="2"] .note span::selection, .note-row[data-color="2"] .note a::selection,
.note-row[data-color="3"] .note span::selection, .note-row[data-color="3"] .note a::selection,
.note-row[data-color="4"] .note span::selection, .note-row[data-color="4"] .note a::selection,
.note-row[data-color="5"] .note span::selection, .note-row[data-color="5"] .note a::selection,
.note-row[data-color="6"] .note span::selection, .note-row[data-color="6"] .note a::selection,
.note-row[data-color="7"] .note span::selection, .note-row[data-color="7"] .note a::selection,
.note-row[data-color="8"] .note span::selection, .note-row[data-color="8"] .note a::selection {
	color: #fff;
}

.note-row button,
.no-touchevents #notepad-table .note-row button:hover,
.no-touchevents #notepad-table .note-row .note a:hover,
#note-text {
	color: var(--text-default);
}

.note-row button:disabled,
.note-row button[disabled] {
	color: #404040;
	background-image: repeating-linear-gradient(
		135deg,
		rgba(0, 0, 0, 0.1),
		rgba(0, 0, 0, 0.1) 5px,
		rgba(255, 255, 255, 0.1) 5px,
		rgba(255, 255, 255, 0.1) 10px
	)
}

/* PALETTE PICKER */

.pp-popup {
	visibility: hidden;
	opacity: 0;
	position: absolute;
	top: 0;
	left: 0;
	z-index: 1000;
	background-color: var(--bg-page-inv);
	padding: 20px;
	border-radius: var(--radius);
	box-shadow: 0 4px 16px rgba(0,0,0,0.4);
	-webkit-transition: opacity 0.3s linear;
	-moz-transition: opacity 0.3s linear;
	-o-transition: opacity 0.3s linear;
	transition: opacity 0.3s linear;
}

.pp-popup.pp-open {
	visibility: visible;
	opacity: 1;
}

.pp-label {
	grid-column: 1 / -1;
	color: var(--text-inv);
	line-height: 18px;
	font-size: 18px;
	font-weight: 700;
	text-align: center;
	text-transform: uppercase;
}

.pp-grid {
	display: grid;
	grid-template-columns: repeat(3, 40px);
	gap: 12px;
	-webkit-transform: scale(0);
	-moz-transform: scale(0);
	-o-transform: scale(0);
	transform: scale(0);
	transform-origin: top center;
}

.pp-popup.pp-open .pp-grid {
	-webkit-transform: scale(1);
	-moz-transform: scale(1);
	-o-transform: scale(1);
	transform: scale(1);
	-webkit-transition: -webkit-transform 0.4s cubic-bezier(.47,1.64,.41,.8);
	-moz-transition: -moz-transform 0.4s cubic-bezier(.47,1.64,.41,.8);
	-o-transition: -o-transform 0.4s cubic-bezier(.47,1.64,.41,.8);
	transition: transform 0.4s cubic-bezier(.47,1.64,.41,.8);
	transition-delay: 0.2s;
}

.pp-swatch {
	width: 40px;
	height: 40px;
	border: none;
	cursor: pointer;
	padding: 0;
	transition: transform 0.15s ease;
}

.no-touchevents .pp-swatch:hover {
	transform: scale(1.15);
}

.pp-swatch.active {
	position: relative;
	background-image: none;
	font-family: 'icomoon' !important;
	font-size: 25px;
}

.pp-swatch.active::after {
	content: "\2714";
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	font-family: 'icomoon' !important;
	font-size: 25px;
	display: block;
	pointer-events: none;
	color: var(--text-default);
}

/* PRIMER TOOLTIPS v2.7.0 */
/* https://github.com/orbitbot/primer-precompiled */

.tooltipped {
	position: relative;
}

.tooltipped::after {
	position: absolute;
	z-index: 1000000;
	display: none;
	padding: 5px 8px;
	font: normal normal 11px/1.5 Helvetica, arial, nimbussansl, liberationsans, freesans, clean, sans-serif;
	color: var(--text-inv);
	text-align: center;
	text-decoration: none;
	text-shadow: none;
	text-transform: none;
	letter-spacing: normal;
	word-wrap: break-word;
	white-space: pre;
	pointer-events: none;
	content: attr(aria-label);
	background: var(--text-default);
	border-radius: 3px;
	-webkit-font-smoothing: subpixel-antialiased;
}

.tooltipped::before {
	position: absolute;
	z-index: 1000001;
	display: none;
	width: 0;
	height: 0;
	color: var(--text-default);
	pointer-events: none;
	content: "";
	border: 5px solid transparent;
}

.tooltipped:hover::before, .tooltipped:hover::after,
.tooltipped:active::before,
.tooltipped:active::after,
.tooltipped:focus::before,
.tooltipped:focus::after {
	display: inline-block;
	text-decoration: none;
}

.tooltipped-multiline:hover::after,
.tooltipped-multiline:active::after,
.tooltipped-multiline:focus::after {
	display: table-cell;
}

.tooltipped-s::after,
.tooltipped-se::after,
.tooltipped-sw::after {
	top: 100%;
	right: 50%;
	margin-top: 5px;
}

.tooltipped-s::before,
.tooltipped-se::before,
.tooltipped-sw::before {
	top: auto;
	right: 50%;
	bottom: -5px;
	margin-right: -5px;
	border-bottom-color: var(--text-default);
}

.tooltipped-se::after {
	right: auto;
	left: 50%;
	margin-left: -15px;
}

.tooltipped-sw::after {
	margin-right: -15px;
}

.tooltipped-n::after,
.tooltipped-ne::after,
.tooltipped-nw::after {
	right: 50%;
	bottom: 100%;
	margin-bottom: 5px;
}

.tooltipped-n::before,
.tooltipped-ne::before,
.tooltipped-nw::before {
	top: -5px;
	right: 50%;
	bottom: auto;
	margin-right: -5px;
	border-top-color: var(--text-default);
}

.tooltipped-ne::after {
	right: auto;
	left: 50%;
	margin-left: -15px;
}

.tooltipped-nw::after {
	margin-right: -15px;
}

.tooltipped-s::after,
.tooltipped-n::after {
	transform: translateX(50%);
}

.tooltipped-w::after {
	right: 100%;
	bottom: 50%;
	margin-right: 5px;
	transform: translateY(50%);
}

.tooltipped-w::before {
	top: 50%;
	bottom: 50%;
	left: -5px;
	margin-top: -5px;
	border-left-color: var(--text-default);
}

.tooltipped-e::after {
	bottom: 50%;
	left: 100%;
	margin-left: 5px;
	transform: translateY(50%);
}

.tooltipped-e::before {
	top: 50%;
	right: -5px;
	bottom: 50%;
	margin-top: -5px;
	border-right-color: var(--text-default);
}

.tooltipped-multiline::after {
	width: max-content;
	max-width: 250px;
	word-break: break-word;
	word-wrap: normal;
	white-space: pre-line;
	border-collapse: separate;
}

.tooltipped-multiline.tooltipped-s::after, .tooltipped-multiline.tooltipped-n::after {
	right: auto;
	left: 50%;
	transform: translateX(-50%);
}

.tooltipped-multiline.tooltipped-w::after, .tooltipped-multiline.tooltipped-e::after {
	right: 100%;
}

@media screen and (min-width: 0\0) {
	.tooltipped-multiline::after {
		width: 250px;
	}
}

.tooltipped-sticky::before, .tooltipped-sticky::after {
	display: inline-block;
}

.tooltipped-sticky.tooltipped-multiline::after {
	display: table-cell;
}

/* THEME 1 (DARK) */

body[data-theme="1"] .note-row[data-color="0"] {
	--bg-stripe: rgba(255,255,255,0.12);
}
