@layer kform {

.ux-tabs {
	border-bottom: 1px solid #4e4f54;
	margin-bottom: 20px;
}
.ux-tabs a {
	display: inline-block;
	padding: 0 20px;
	color:var(--black);
	background-color: rgba(0,0,0,.10);
	border-radius: 5px 5px 0 0;
	height: 36px;
	line-height: 36px;
	border-top: 2px solid rgba(255,255,255,.1);
	transition: all .2s ease-in-out;
	min-width: 100px;
	text-align: center;
	font-size: 14px;
}

.dark .ux-tabs a {
	color: rgba(255,255,255,.5);
	background-color: rgba(255,255,255,.05);
}

@media (hover: hover) { 
	.dark .ux-tabs a:hover {
		background-color: rgba(255,255,255,.10);
		color: rgba(255,255,255,.6);
	}
	.ux-tabs a:hover {
		background-color: rgba(0,0,0,.20);
	}
}
.ux-tabs a:not(:last-child) { margin-right: 5px; }
.ux-tabs a.active { border-top: 2px solid rgba(79, 126, 230, 1);; }

.dark .ux-tabs a.active  { text-shadow: 1px 1px 0px rgba(0,0,0,.5); color: rgba(255,255,255,.8); }
.light .ux-tabs a.active { color: white; background-color: var(--blue); }

.ux-panels { height:100%; }
.ux-panels .panel { 
	display: none; height: calc(100% - 57px); 

	scrollbar-color: rgba(255,255,255,.12) transparent;
	::-webkit-scrollbar-track { background: transparent; }
	::-webkit-scrollbar-thumb {
		background-color: rgba(255,255,255,.12);
		border-radius: 8px;
		border: 2px solid transparent;
	}

}
.ux-panels .panel.active { display: block; }


/*******************
	List Selector
/*******************/

.ux-box {
	display: grid;
	grid-template-columns: 1fr 80px 1fr;
	width: 100%;
	height: 100%;
	box-sizing: border-box;
	&.m40 { height: calc(100% - 40px); }
}

.ux-selector-wrap {
	position: relative;
	overflow: hidden;
	& button.x {
		position: absolute !important;
		bottom: 30px;
		right: 28px;
		z-index: 1;
	}
}

.ux-selector {
	border-radius: 5px;
	height: 100%;
	padding: 10px;
	position: relative;
	overflow-y: auto;
	box-sizing: border-box;
}
.light .ux-selector { 
	background: #fcfcfc; 
	color:var(--darkgray); 
	border: 5px solid rgba(0,0,0,.05) !important; 
	scrollbar-color: rgba(0,0,0,.15) rgba(255,255,255,0);
}
.dark .ux-selector { 
	background: #262626; 
	color:var(--white); 
	border: 5px solid rgba(0,0,0,.05) !important; 
	scrollbar-color: rgba(255,255,255,.15) transparent;
}

.ux-selector .item {
	display: flex;
	align-items: center;
	border: 0;
	border-radius: 5px;
	margin: 2px 0;
	padding-left: 35px !important;
	position: relative;
	height: 30px;
	cursor: pointer;
	user-select: none;
	font-size: 14px;
}
.dark .ux-selector .item.selected { background-color: #333333; color: lightgreen !important; }
.light .ux-selector .item.selected { background: rgba(0,0,0,.1); color: var(--black); }

.light .ux-selector .item { color:var(--black); background-color: rgba(0,0,0,.03); }
.dark .ux-selector .item  { color:var(--white); background-color: rgba(255,255,255,.02); }

@media (hover: hover) { 
	.light .ux-selector .item:hover { color:var(--white); background-color: var(--blue); }
	.dark .ux-selector .item:hover  { color:var(--white); background-color: #3e3e3e; }
}

.ux-selector .item.selected:before {
	font-family: "kui";
	position: absolute;
	top: 50%;
	left: 10px;
	transform: translateY(-50%);
	content: "\e90b";
	font-size: 14px;
}

.dark .ux-selector .item.selected:before { color: var(--green); }
.light .ux-selector .item.selected:before { color: var(--black); }

/* Visibility States (Used for Buttons/Actions within Modals) */
.state1 .state1, .state2 .state2, .state3 .state3 { display:block; }
.state1 .state2, .state1 .state3, .state2 .state1, .state2 .state3, .state3 .state1, .state3 .state2  { display:none; }

/* UX Icons */
.arw-left:before, .arw-right:before { font-weight: 900; }
.arw-left:before { content: "\f355"; }
.arw-right:before { content: "\f356"; }
.mobile .arw-left:before { content: "\f357"; } /* Up */
.mobile .arw-right:before { content: "\f354"; } /* Down */
.btn.kft.x:before { content: "\f00d"; }

/* --------~~~~~~~~ ux.Select ~~~~~~~~-------- */

.ux-select { 
	width:calc(100% - 30px); 
	margin-inline:auto; 
	user-select: none;
}

.ux-select label {
	text-align: center;
	display: block;
	font-size: .9em;
	font-weight: bold;
}

.ux-select a.menu { 
	border-radius: 13px;
	background-color: var(--light-border);
	display: block;
	position: relative;
	margin-block: 5px;
	padding-inline: 20px;
	height: 26px;
	line-height: 26px;
	color: #333;
	transition: all .2s ease-in-out;
	&:after { 
		font-family: kui;
	content:"\f0d7";
	position: absolute;
	right: 13px; 
	top: 50%;
	width: 16px;
	height: 16px;
	display: flex;
	align-items: center;
	justify-content: center;
	color:#959697;
	transform: translateY(-55%) rotate(0deg);
	transform-origin: 50% 50%;
	transition: transform .3s ease-in-out;
	}
}
.ux-select.open a.menu:after { 	transform: translateY(-40%) rotate(180deg);
 }

@media (hover: hover) { 
	.ux-select a.menu:hover, 
	.ux-select ul li a:hover { background-color: var(--prime); color:white; }

	.ux-select a.menu:hover { box-shadow: 0 0 2px 4px #c2d1f3; }

	.ux-select a.menu:hover:after { color:white; }
}

.ux-select.open ul { display:block; }
.ux-select ul {
	display: none;
	list-style: none;
	padding: 0;
	margin: 0;
	border-radius: 5px;
	border:1px solid var(--light-border);
	box-shadow: 0px 0px 5px 2px rgba(0,0,0,.12);
}
.ux-select ul li a { 
	height: 28px;
	line-height: 28px;
	display:block; 
	position: relative;
	color:#333;
	padding-left: 30px;
	transition: all .2s ease-in-out;
	border-radius: 5px;
	margin: 2px;
	font-size: .9em;
}
.ux-select ul li a.selected:before { 
	content:"\e90b";
	font-family: 'kui';
	position: absolute;
    top: 50%;
    transform: translateY(-50%);
    left: 10px;
	font-size: 0.7em;
}

