/*********** NEVER USE filter: !!! GIVES RANDOM ARTIFACTS ALL OVER THE PLACE **************/

#pianoroll {
	background: #000;
	transition: transform 0.3s cubic-bezier(0.225, 0.795, 0.150, 0.985);
	transform: none;
}
#pianoroll.closing {
	transition: transform 0.3s, opacity 0.3s;
}

#pianoroll-keys, #pianoroll-slider {
	position: absolute;
	top: 0;
	left: 0;
	width: 5.25rem;
	height: calc(100% - 2rem);
	overflow: hidden;
	box-shadow: 0 0 7px 0 rgba(0, 0, 0, 0.5);
	z-index: 5;
	background: #000;
}

#pianoroll-controller-grid {
	position: absolute;
	top: 0;
	left: 0.5rem;
	width: calc(5.25rem - 1rem);
	height: calc(100% - 2rem);
	z-index: 5;
	line-height: 1.5;
	font-size: 0.65rem;
	font-family: monospace;
	color: #000;
	pointer-events: none;
}
#pianoroll-controller-grid:not(.mpe-pitch) {
	text-align: center;
}
#pianoroll-controller-grid.mpe-pitch {
	text-align: right;
}

#pianoroll.ruler #pianoroll-slider,
#pianoroll.ruler #pianoroll-controller-grid
{
	top: 2rem;
	height: calc(100% - 4rem);
}

#pianoroll-slider slider-title,
#pianoroll-slider slider-value
{
	transform: none;
	left: 0;
	width: 100%;
	text-align: center;
	font-size: 0.65rem;
}

#pianoroll-controller-grid > div {
	position: absolute;
	margin: -0.75em 0 0 0;
	left: 0;
	width: 100%;
}
#pianoroll-controller-grid.mpe-pitch > div.selection > button {
	margin-right: -1.75rem;
}
#pianoroll-controller-grid > div > span {
	float: left;
}
#pianoroll-controller-grid > div.selection > button {
	margin-top: -0.4rem;
	margin-right: -5.15rem;
	padding: 0.3rem 0;
	width: 2.5rem;
	font-size: 0.5rem;
	line-height: 1.5;
	height: auto;
	pointer-events: auto;
}
#pianoroll-controller-grid > div.selection.msb-lsb > button {
	margin-top: -0.75rem;
}
#pianoroll-controller-grid > div.selection > button > div {
	font-size: 70%;
}
menu.set-controller-value {
	left: 4.5rem;
	transform: translateX(-0.7rem);
	width: 6rem;
	pointer-events: auto;
}

#pianoroll-keys > div {
	position: absolute;
	width: 100%;
	border-bottom: solid #000 0.5px;
}

#pianoroll-key-range {
	background: transparent;
	border-top: solid 1px;
	border-bottom: solid 1px;
}

#pianoroll-keys > div > span {
	position: absolute;
	left: 0.5em;
	color: #000;
	font-size: 0.5rem;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	display: block;
	width: calc(100% - 1em);
}
#pianoroll-keys > div.black > span {
	color: #aaa;
}

#pianoroll-editor {
	position: absolute;
	top: 0;
	left: 5.25rem;
	width: calc(100% - 5.25rem);
	height: calc(100% - 2rem);
	overflow: hidden;
}

#pianoroll-notes, #pianoroll-notes-playing {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	pointer-events: none;
}

.pianoroll-outside {
	position: absolute;
	top: 0;
	height: 100%;
	background-color: #181818a0;
	pointer-events: none;
	transform: translate3d(0, 0, 0); /* necessary, otherwise drawing errors during editPart animation */
}
#pianoroll-outside-length { border-left: solid #555 2px; }
#pianoroll-outside-start { border-right: solid #555 2px; }

/* prevent long controller titles from pushing right-side buttons "off the wagon" */
#pianoroll-toolbar-mode {
	max-width: 7rem;
}

#pianoroll-channels-menu button.channel {
	width: 25%;
	position: relative;
}

#pianoroll-channels-menu button.channel:not(.zone) {
	color: #555;
}

#pianoroll-channels-menu button.channel abbr {
	position: absolute;
	top: 1.4rem;
	line-height: 1;
	right: 0.25rem;
	color: #707070;
	font-size: 0.5rem;
}

#pianoroll-channels-menu button.channel:not(.global) abbr.global,
#pianoroll-channels-menu button.channel:not(.occupied) abbr.minus-circled
{
	display: none;
}
#pianoroll-channels-menu button.channel abbr.global {
	font-weight: bold;
}
#pianoroll-channels-menu button.channel abbr.global::after {
	content: 'G';
}