/* SWITCH */

.fmSwitch
{
	width: 100%;
	height: 25px;
	line-height: 25px;
	background-color: #293037;
	border-radius: 5px;
	border: 1px solid gray;
	position: relative;
}

.fmSwitch:not(.readOnly) > .fmThumb
{
	cursor: pointer;
	background-color: #031621;
}

.fmSwitch.readOnly > .fmThumb
{
	background-color: #3e4a59;
}

.fmSwitch > .fmThumb
{
	position: absolute;
	left: 0;
	width: 20px;
	height: 100%;
	
	color: white;
	text-align: center;
	border-radius: 4px;
	border: 1px solid gray;
	font-size: 12px;
	padding-top: 3px;
	overflow: hidden;
	transition: all 0.4s;
	
	-webkit-user-select: none;
	-moz-user-select: none;
	-ms-user-select: none;
	user-select: none;
	
	touch-action: none;
}

.fmSwitch .fmOn
{
	background-color: #263548;
}

.fmSwitch .fmOff
{
	background-color: #41536A;
}

.fmSwitch:not(.readOnly) > .checkLabel
{
	cursor: pointer;
}

.fmSwitch > .checkLabel
{
	float: left;
	width: 100%;
	height: 100%;
	transition: all 0.4s;
	text-align: center;
	overflow: hidden;
	font-size: 0.7rem;
	border-radius: 4px;
	
	-webkit-user-select: none;
	-moz-user-select: none;
	-ms-user-select: none;
	user-select: none;
	
	touch-action: none;
}

/* PROGRESS BAR */

.fmProgressBar .bar
{
	height: 100%;
	transition: all 0.4s;
}

/* SLIDER */
.fmSlider
{
	width: 100%;
	height: 25px;
	background-color: #41536A;
	border-radius: 5px;
	border: 1px solid gray;
	position: relative;
	touch-action: none;
}

.fmSlider:not(.readOnly)
{
	cursor: pointer;
}

.fmSlider:not(.readOnly) > .fmThumb
{
	cursor: grab;
	background-color: #031621;
	color: white;
}

.fmSlider.readOnly > .fmThumb
{
	background-color: #3e4a59;
	color: #CCCCCC;
}

.fmSlider > .fmThumb
{
	position: absolute;
	left: 0px;
	min-width: 25px;
	height: 100%;
	text-align: center;
	border-radius: 5px;
	font-size: 0.7rem;
	padding-top: 3px;
	overflow: hidden;
	
	-webkit-user-select: none;
	-moz-user-select: none;
	-ms-user-select: none;
	user-select: none;
	
	touch-action: none;
}

.fmSlider > .fmThumb:before
{
	content: "";
	display: inline-block;
	height: 100%;
	vertical-align: middle;
}

.fmSlider > .fmSelectedArea
{
	height: 100%;
	border-radius: 4px;
	width: 0%;
}

.fmSlider.readOnly > .fmSelectedArea
{
	background-color: #384351;
}

.fmSlider:not(.readOnly) > .fmSelectedArea
{
	background-color: #263548;
}

/* Emoji List */

.emojiContainer
{
	position: absolute;
	top: 0px;
	left: 0px;
	width: 100%;
	height: 100%;
	z-index: 10002;
	display: none;
}

.emojiContainer .background
{
	position: relative;
	top: 0px;
	height: 0px;
	width: 100%;
	height: 100%;
	background-color: black;
	opacity: 0.6;
}

.emojilist
{
	position: absolute;
	top: 0px;
	left: 0px;
	width: 290px;
	height: 315px;
	background-color: #36404A;
	outline: 2px solid #404040;
	z-index: 100009;
	overflow: hidden;
}

.emojilist .categories
{
	height: 100%;
	background-color: #4A7491;
	width: 34px;
	float: left;
	font-size: 22px;
	text-align : center;
	padding-top: 5px;
}

.emojilist .categories > a
{
	height: 35px;
	margin-bottom: 4px;
	width: 100%;
	display: block;
}

.emojilist .categories > a > span
{
	filter: grayscale(100%);
	opacity: 0.8;
	color: gray;
}

.emojilist .categories > a:focus
{
	color: gray;
}

.emojilist .categories > a.selected
{
	background-color: #2D6186;
}

.emojilist .emojis
{
	height: 100%;
	width: 250px;
	overflow: auto;
	float: right;
	font-size: 24px;
	padding: 5px;
	text-align: center;
}

.emojilist .emojis a
{
	float: left;
	display: block;
	width: 38px;
	opacity: 0.7;
	color: white;
}

/*List */

.fmList.readOnly > select
{
	pointer-events: none;
	touch-action: none;
	color: gray;
}

.fmList > select
{
	padding-left: 5px !important;
	cursor: pointer;
	height: 25px;
	border-radius: 5px;
	width: 100%;
	font-size: 0.7rem;
}

/* Wheel */

.fmWheel
{
	position: relative;
	width: 195px;
	height: 195px;
	margin-left: 36px;
	overflow: hidden;
	touch-action: none;
}

.fmWheel .colorWheel
{
	z-index: 10;
}

.fmWheel .colorWheel img
{
	width: auto;
}

.fmWheel .color
{
	z-index: 11;
}

.fmWheel .saturation
{
	z-index: 12;
	background: url(../../images/mask.png) no-repeat;
	pointer-events: none;
}

.fmWheel .colorSquares
{
	position: absolute;
	top: 50%;
	left: 50%;
	width: 100px;
	height: 100px;
	
	transform: rotate(0deg) translate(-50%, -50%);
	transform-origin: center center;
}

.fmWheel .colorSquare
{
	position: absolute;
	top: 0px;
	left: 0px;
	width: 100%;
	height: 100%;
	
	transition: all 0.2s;
}

.fmWheel .marker
{
	position: absolute;
	z-index: 14;
	top: 0px;
	left: 0px;
	
	box-shadow: 0 0 1pt 1pt black;
	border: 2px solid white;
	border-radius: 50%;
	transform: translate(-50%, -50%);
	pointer-events: none;
}

.fmWheel .bigMarker
{
	height: 15px;
	width: 15px;
}

.fmWheel .smallMarker
{
	height: 10px;
	width: 10px;
}

/* Checkbox */

.fmCheckbox
{
	width: 100%;
	overflow: auto;
	min-height: 25px;
	line-height: 22px;
	margin-bottom: 1px;
}

.fmCheckbox > .simpleBox
{
	border-radius: 5px;
	border: 1px solid transparent;
	position: relative;
	text-align: center;
}

.fmCheckbox:not(.readOnly) > .simpleBox
{
	background-color: #293037;
	cursor: pointer;
}

.fmCheckbox.readOnly > .simpleBox
{
	background-color: #3e4a59;
	cursor: default;
}

.fmCheckbox > .fmLabel
{
	font-weight: bold;
	font-size: 110%;
	width: 100%;
	
	-webkit-user-select: none;
	-moz-user-select: none;
	-ms-user-select: none;
	user-select: none;
	
	touch-action: none;
}

.fmCheckbox:not(.readOnly) > .fmOn
{
	color: green;
}

.fmCheckbox:not(.readOnly) > .fmOff
{
	color: red;
}

.fmCheckbox.readOnly > .fmOn
{
	color: #CCCCCC;
}

.fmCheckbox.readOnly > .fmOff
{
	color: #CCCCCC;
}

.fmCheckbox > .simpleBox
{
	float: left;
}

.fmCheckbox > .checkCaption
{
	cursor: default;
	
	float: left;
	margin-left: 7px;
	margin-top: 1px;
	
	text-align: left;
	
	-webkit-user-select: none;
	-moz-user-select: none;
	-ms-user-select: none;
	user-select: none;
	
	touch-action: none;
}

/* Button */

.fmButton.readOnly > a
{
	pointer-events: none;
	touch-action: none;
}

.fmButton:not(.readOnly) > a
{
	cursor: pointer;
}

.fmButton > a
{
	cursor: pointer;
	height: 25px;
	border-radius: 5px;
	width: 100%;
	display: block;
	text-align: center;
	font-size: 80%;
	border: 1px solid transparent;
}

/* Numeric Input */

.fmNumericInput
{
	width: 100%;
}

.fmNumericInput button
{
	border: 0px;
}

.fmNumericInput.readOnly button
{
	cursor: default !important;
}

/* Selector */

.fmSelector .btn
{
	border-radius: 0px;
	
	user-select: none;
}

.fmSelector .btn.selected
{
	cursor: default;
}

.fmSelector .btn:first-child 
{
	border-radius: 5px 0px 0px 5px !important;
}

.fmSelector .btn:last-child 
{
	border-radius: 0px 5px 5px 0px !important;
}

/* ColorSelector */

.fmColorSelector
{
	width: 100%;
	height: 25px;
}

.fmColorSelector div
{
	border-radius: 5px;
	border: 1px solid gray !important;
	height: 25px;
}

/* Table */

.fmTableFilter
{
	overflow: auto;
	text-overflow: ellipsis;
}

.fmTable td
{
	border: 0;
	padding: .25rem;
	vertical-align: middle;
}

.fmTable tr
{
	padding: 0px;
}

.fmTable tr.emptyRow
{
	text-align: center;
	font-style: italic;
	font-size: 80%;
}

.headerTable
{
	width: 100%;
	overflow: hidden;
	border-radius: 0px;
}

.headerRow
{
	max-height: 100px;
	overflow: hidden;
}

.headerCell
{
	float: left;
	padding: .25rem;
	overflow: hidden;
	word-wrap: break-word;
	position: relative;
	cursor: pointer;
	max-height: 50px;
}

.headerCaption
{
	float: left;
	width: 100%;
}

.headerCell.emptyColumn > .headerCaption
{
	display: none;
}

.tableBody
{
	overflow: auto;
}

.tablePaginationNumber
{
	min-width: 43px;
	text-align: center;
}

.tablePagination.selected
{
	transition: all 1s;
}

.tablePaginationItem.noPage > a
{
	color: #1c1b1b;
}

.tablePaginationItem.divisorPage > a
{
	pointer-events: none;
	touch-action: none;
}

.tablePagination
{
	padding: .425rem 0.75rem;
	display: block;
	position: relative;
	line-height: 1.25;
}

.tablePaginationItem:first-child .tablePagination
{
	border-top-left-radius: .25rem;
	border-bottom-left-radius: .25rem;
	margin-left: 0;
}

.tablePaginationItem:last-child .tablePagination
{
	border-top-right-radius: .25rem;
	border-bottom-right-radius: .25rem;
	margin-right: 0;
}

.tableContainer .dataBody
{
	height: 100%;
}

/* SIDEBAR CONTAINER */

.containerSidebar
{
	padding: 0px;
	margin: 0px;
	
	user-select: none;
	touch-action: none;
}

.containerSidebar .containerTitle
{
	text-align: left;
	text-transform: uppercase;
	font-size: 0.7rem;
	color: #ACB7BC;
	
	-webkit-user-select: none;
	-moz-user-select: none;
	-ms-user-select: none;
	user-select: none;
	
	touch-action: none;
}

.containerSidebar .containerTitle .titleCollapsed
{
	opacity: 0.5;
}

.containerSidebar .containerContent
{
	padding: 0px;
	margin: 0px;
	overflow: auto;
}

.containerSidebar .containerFooter
{
	margin: 0;
	padding: 0;
	line-height: 15px;
	height: 15px;
	text-align: center;
	cursor: n-resize;
	font-size: 100%;
	font-weight: bold;
	border-radius: 0px 0px 3px 3px;
	margin-bottom: 10px;
	
	-webkit-user-select: none;
	-moz-user-select: none;
	-ms-user-select: none;
	user-select: none;
	
	touch-action: none;
}

/* MISCELANEOUS */

.dialog .fmSwitch, .dialog .fmSlider
{
	height: 40px;
}

.dialog .fmSwitch > .checkLabel
{
	line-height: 40px;
	font-size: 110%;
}

.dialog .fmSlider > .fmThumb
{
	min-width: 40px;
}

.footerTitle
{
	font-size: 80%;
}

.fmSmallSwitch
{
	width: 150px;
	height: 25px !important;
}

.fmMediumSwitch
{
	width: 170px;
	height: 25px !important;
}

.fmSmallSwitch > .checkLabel,
.fmMediumSwitch > .checkLabel
{
	line-height: 25px !important;
	font-size: 80% !important;
}

/* RADIAL MENU */

ul.radialbackground li a
{
	color: #fcd1d5;
	background: #667c99;
	opacity: 0.6;
}

ul.radialbackground li.portion:nth-child(odd) a
{
	background: #6882a4;
	opacity: 1;
}

ul.radialbackground li a:hover
{
	color: #FFFFFF;
}

ul.radialmenu
{
	list-style-type: none;
	margin: 0;
	padding: 0;
	position: absolute;
	display: inline-block;
	width: 250px;
	height: 250px;
}

ul.radialmenu li
{
	position: absolute;
	width: 125px;
	height: 125px;
	-webkit-transform-origin: 100% 100%;
	transform-origin: 100% 100%;
	overflow: hidden;
	display: none;
}

ul.radialmenu li a
{
	display: block;
	width: 250px;
	height: 250px;
	border-radius: 50%;
	text-align: center;
	font-size: 15px;
	opacity: 0.8;
	padding-top: 10px;
	transition: none;
}

ul.radialmenu li a:hover
{
	opacity: 1;
}

ul.radialmenu li.portion > a
{
	line-height: 20px;
	transform: skew(-30deg) rotate(-60deg);
}

ul.radialmenu li.portion:nth-child(2)
{
	display: block;
	transform: rotate(60deg) skew(30deg);
}

ul.radialmenu li.portion:nth-child(3)
{
	display: block;
	transform: rotate(120deg) skew(30deg);
}

ul.radialmenu li.portion:nth-child(4)
{
	display: block;
	transform: rotate(180deg) skew(30deg);
}

ul.radialmenu li.portion:nth-child(5)
{
	display: block;
	transform: rotate(240deg) skew(30deg);
}

ul.radialmenu li.portion:nth-child(6)
{
	display: block;
	transform: rotate(300deg) skew(30deg);
}

ul.radialmenu li.portion:nth-child(7)
{
	display: block;
	transform: rotate(360deg) skew(30deg);
}

ul.radialmenu li.portion:nth-child(4) span,
ul.radialmenu li.portion:nth-child(5) span,
ul.radialmenu li.portion:nth-child(6) span
{
	display: block;
	transform: rotate(180deg);
}

ul.radialmenu li.center
{
	width: 50px;
	height: 50px;
	background: white;
	border-radius: 50%;
	position: absolute;
	left: calc(50% - 25px);
	top: calc(50% - 25px);
	display: none;
}

/* CIRCULAR PROGRESS */


.circularProgress
{
	width: 150px;
	height: 150px !important;
	float: left;
	line-height: 150px;
	background: none;
	box-shadow: none;
	position: relative;
}

.circularProgress:after
{
	content: "";
	width: 100%;
	height: 100%;
	border-radius: 50%;
	border: 12px solid #fff;
	position: absolute;
	top: 0;
	left: 0;
}

.circularProgress > span
{
	width: 50%;
	height: 100%;
	overflow: hidden;
	position: absolute;
	top: 0;
	z-index: 1;
}

.circularProgress .progress-left
{
	left: 0;
}

.circularProgress .progress-bar
{
	width: 100%;
	height: 100%;
	background: none;
	border-width: 12px;
	border-style: solid;
	position: absolute;
	top: 0;
}

.circularProgress .progress-left .progress-bar
{
	left: 100%;
	border-top-right-radius: 80px;
	border-bottom-right-radius: 80px;
	border-left: 0;
	-webkit-transform-origin: center left;
	transform-origin: center left;
}

.circularProgress .progress-right
{
	right: 0;
}

.circularProgress .progress-right .progress-bar
{
	left: -100%;
	border-top-left-radius: 80px;
	border-bottom-left-radius: 80px;
	border-right: 0;
	-webkit-transform-origin: center right;
	transform-origin: center right;
	animation: loading-1 1.8s linear forwards;
}

.circularProgress .progress-value
{
	width: 90%;
	height: 90%;
	border-radius: 50%;
	background: #44484b;
	font-size: 42px;
	color: #fff;
	line-height: 135px;
	text-align: center;
	position: absolute;
	top: 5%;
	left: 5%;
}

.circularProgress.sync .progress-bar
{
	border-color: #049dff;
}

.circularProgress.sync
{
	position: absolute !important;
	top: calc(50% - 75px) !important;
	left: calc(50% - 75px) !important;
}

.bottomProgressText
{
	clear: both;
	margin-top: 250px;
}

.progressText
{
	line-height: 1.5rem;
	text-align: center;
	width: 100%;
	font-size: 1rem;
	padding-top: 20px;
}

.progressText .icon
{
	font-size: 500%;
}

.progressText a:not(.btn)
{
	font-size: 0.75rem;
	text-decoration: underline;
}

.progressText a:not(.btn):hover
{
	text-decoration: none;
}

/* SORTABLE LIST */

.sortableElement
{
	width: 100%;
	height: 25px;
	line-height: 25px;
	padding-left: 5px;
	border: 1px solid gray;
	margin: 20px 0px;
	
	text-align: left;
	text-transform: uppercase;
	font-size: 0.7rem;
	
	cursor: grabbing;
	
	-webkit-user-select: none;
	-moz-user-select: none;
	-ms-user-select: none;
	user-select: none;
	
	touch-action: none;
}

.isDragging .sortableElement:not(.selection)
{
	margin: 0;
}

.movingElement
{
	position: absolute;
	
	width: 200px;
	height: 25px;
	line-height: 25px;
	padding-left: 5px;
	border: 1px solid gray;
	margin: 10px 0px;
	
	text-overflow: ellipsis;
	overflow: hidden;
	white-space: nowrap;
	
	text-align: left;
	text-transform: uppercase;
	font-size: 0.7rem;
	color: #ACB7BC;
	
	-webkit-user-select: none;
	-moz-user-select: none;
	-ms-user-select: none;
	user-select: none;
	touch-action: none;
	pointer-events: none;
	
	z-index: 9999;
}

.selection
{
	border: 1px solid #444444;
	opacity: 0.3;
}

.targetBlock
{
	width: 100%; 
	height: 18px;
	margin: 1px 0px;
	background-color: transparent;
	border: 1px solid transparent;
	
	transition: 0.25s all;
}

.targetBlock.active
{
	border: 2px solid green;
	height: 40px;
	cursor: grab;
}

#pip
{
	position: absolute;
	top:  45px;
	left: 10px;
	z-index: 99998;
	outline: 1px solid #a8a8a8;
	overflow: hidden;
	transform-origin: left top;
	
	-webkit-user-select: none;
	-moz-user-select: none;
	-ms-user-select: none;
	user-select: none;
	touch-action: none;
	pointer-events: none;
}

#pip .thumb
{
	width: 100%;
	height: unset;
}

#pip .pipMarker 
{
	outline: 2px solid red;
	width: 10px;
	height: 10px;
	position: absolute;
	left: 0px;
	top: 0px;
	z-index: 10;
}

.leftSidebar #pip
{
	left: unset;
	right: 10px;
}

.brushGalleryArea
{
	width: 100%;
	overflow: auto;
	background-color: gray;
}

.brushGalleryArea .brush
{
	float: left;
	margin: 3px;
}

.usertagList
{
	position: absolute;
	top: 0px;
	left: 0px;
	width: 300px;
	background-color: #36404A;
	outline: 2px solid #404040;
	z-index: 100009;
	overflow-x: hidden;
	overflow-y: auto;
	max-height: 60%;
	border-radius: 3px;
}

.usertagList a
{
	font-size: 80%;
	display: block;
	width: 100%;
	margin: 4px;
	padding: 4px;
}

.resizerContainer
{
	position: absolute;
	outline: 2px dashed gray;
	width: 100%;
	height: 100%;
	opacity: 0.5;
}
            
@keyframes ants
{
	to
	{
		background-position: 100%;
	}
}

.marching-ants
{
	padding: 1em;
	border: 1px solid transparent;
	background: linear-gradient(white, white) padding-box, repeating-linear-gradient(-45deg, black 0, black 25%, white 0, white 50%) 0 / .6em .6em;
	animation: ants 12s linear infinite;
}

/* TAG MANAGER */

.fmTagManager
{
	width: 100%;
	min-height: 25px;
	border-radius: 5px;
	padding: 5px;
}

.fmTagManager .tags-container
{
	margin-bottom: 5px;
	min-height: 32px;
}

.fmTagManager .tag
{
	display: inline-block;
	color: white;
	border-radius: 3px;
	border: 1px solid transparent;
	padding: 5px;
	margin: 2px;
	font-size: 0.7rem;
	line-height: 1.25;
	cursor: default;
	
	-webkit-user-select: none;
	-moz-user-select: none;
	-ms-user-select: none;
	user-select: none;
	
	touch-action: none;
}

.fmTagManager .tag .remove-tag
{
	background: none;
	border: none;
	color: #CCCCCC;
	cursor: pointer;
	font-size: 0.8rem;
	margin-left: 5px;
	padding: 0;
	line-height: 1.25;
}

.fmTagManager .tag .remove-tag:hover
{
	color: white;
}

.fmTagManager .tag-input:focus
{
	outline: none;
}

.imageViewerLayer
{
	position: relative;
	top: 0;
	left: 0;
	overflow: hidden;
	transform-origin: center;
	width: 100%;
	height: 100%;
	border: 1px solid #7b7b7b;
}

.imageViewerLoadingSpinner
{
	display: none;
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: 1000;
	justify-content: center;
	align-items: center;
	background-color: black;
	opacity: 0.6;
}

.imageViewerLayer img
{
	position: absolute;
	top: 0px;
	left: 0px;
}