/*
		Copyright (c) 2017 Zey Vermögensverwaltung GmbH

    Licensed under the Apache License, Version 2.0 (the "License");
    you may not use this file except in compliance with the License.
    You may obtain a copy of the License at

        http://www.apache.org/licenses/LICENSE-2.0

    Unless required by applicable law or agreed to in writing, software
    distributed under the License is distributed on an "AS IS" BASIS,
    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    See the License for the specific language governing permissions and
    limitations under the License.
*/
@CHARSET "UTF-8";

div.has-error > checkable-list
{
	border:						1px solid #a94442;
}

div.has-success > checkable-list
{
	border:						1px solid #3c763d;
}

div.has-warning > checkable-list
{
	border:						1px solid #8a6d3b;
}

checkable-list
{
	position:					relative;
	display:					flex;

	flex-flow:				column wrap;
	flex-basis: 			1;

	margin:						3px;
	padding:					0;

	border:						1px solid hsla(0, 0%, 65%, 1);

	background-color:	transparent;
}

checkable-list.horizontal
{
	flex-flow:			row nowrap;
	align-content:	stretch;
}

checkable-list:empty:after
{
	border:						1px solid hsla(0, 0%, 65%, 0.5);
}

checkable-list > item
{
	position:					relative;
	
	margin:						0;
	padding:					2px 8px;

	width:						calc( 100% + 1px );

	border:						0px none;

	border-right:			3px solid transparent;
	border-bottom:		1px solid hsla(0, 0%, 65%, 1);

	background-color:	transparent;

	transition:				border-right-color 0.25s ease-out;
}

checkable-list > item:last-child
{
	border-bottom:		0px none;
}

checkable-list.horizontal > item
{
	width:					auto;
	border-bottom:	3px solid transparent;
	border-right:		1px solid hsla(0, 0%, 65%, 1);
}

checkable-list.horizontal > item:last-child
{
	border-right:		0px none;
}

checkable-list.horizontal > item.active
{
	border-right:		3px solid red;
}

checkable-list > item:after
{
	position:			absolute;

	top: 					0px;
	right:				0px;

	padding:			4px 6px;

	font-family:	'FontAwesome';
	direction:		rtl;
	content:			"\f00c";

	color:				transparent;

	transition:		color 0.25s ease-out;
}

checkable-list > item:hover
{
	/* background-color:	hsla(0, 0%, 0%, 0.1); */

	border-right:	3px solid rgb(255, 176, 176);

	cursor:						pointer;

	transition:				border 0.3s ease-in;
}

checkable-list > item:hover:after
{
	color:				#ddd;

	transition:		color 0.3s ease-in;
}

checkable-list > item.active
{
	/* font-weight:	800; */

	border-right:	3px solid red;

	transition:		border 0.5s ease-in;

	text-shadow:	1px 1px 0px #888;
}

checkable-list > item.active:after
{
	position:			absolute;

	top: 					0px;
	right:				0px;

	padding:			4px 6px;

	font-family:	'Font Awesome 5 Free';
	font-weight: 900;
	font-size: 2em;
	direction:		rtl;
	content:			"\f00c";

	color:				black;
}

checkable-list > item.active:hover
{
	background-color: hsla(0, 0% , 0%, 0.025);
}

checkable-list.horizontal > item.active
{
	border-right:		1px solid hsla(0, 0%, 65%, 1);
	border-bottom:	3px solid red;
}

checkable-list.horizontal > item:hover
{
	border-right:		1px solid hsla(0, 0%, 65%, 1);
	border-bottom:	3px solid rgb(255, 176, 176);
}

checkable-list.horizontal > item:last-child
{
	border-right:		0px none !important;
}
