/**
 * @name		Template Creator CK 3
 * @package		com_templateck
 * @copyright	Copyright (C) 2013. All rights reserved.
 * @license		GNU General Public License version 2 or later; see LICENSE.txt
 * @author		Cedric Keiflin - https://www.template-creator.com - https://www.joomlack.fr
 */


* {
	box-sizing: border-box;
}

.clr {
	clear: both;
}

.clearfix:after {
	content: " ";
	display: block;
	height: 0;
	clear: both;
	visibility: hidden;
	font-size: 0;
}

.clearfix {
	zoom: 1;
}

.ckwait {
	background: #fff url(../images/ajax-loader.gif) center center no-repeat !important;
}

#ckbrowse {
	position: relative;
}

#ckfoldertreelist, #ckfoldertreepreview,
.ckfoldertreelist, .ckfoldertreepreview {
	float: left;
	padding: 10px;
	box-sizing: border-box;
	height: 100%;
}

#ckfoldertreelist,
.ckfoldertreelist {
	width: 48.5%;
	min-width: 350px;
	position: relative;
	background: #f0f0f0 none repeat scroll 0 0;
	border: 1px solid #dedede;
	margin-left: 10px;
	position: sticky;
	top: 10px;
}

#ckfoldertreelist h3,
.ckfoldertreelist h3 {
	font-weight: normal;
	padding: 0 8px;
}

#ckfoldertreepreview {
	width: 65%;
}

#ckfolderupload {
	border: 2px dashed #b4b9be;
	margin: 10px;
	position: relative;
	min-height: 120px;
	text-align: center;
}

#ckfoldertreelist .ckfoldertreename img,
.ckfoldertreelist .ckfoldertreename img {
	margin: 0 5px 0 0;
}

#ckfoldertreelist .ckfoldertreename,
.ckfoldertreelist .ckfoldertreename {
	display: inline-block;
	font-family: Helvetica, sans serif;
	font-size: 13px;
	padding: 0 3px;
	margin-bottom: 4px;
	cursor: pointer;
	line-height: 32px;
	color: #555;
	font-weight: bold;
	position: relative;
}

#ckfoldertreelist .ckfoldertreename:hover,
.ckfoldertreelist .ckfoldertreename:hover {
	color: #3071a9;
}

#ckfoldertreelist .ckfoldertree.ckcurrent > .ckfoldertreename,
.ckfoldertreelist .ckfoldertree.ckcurrent > .ckfoldertreename {
	color: #3071a9;
}

#ckfoldertreelist .ckfoldertree,
.ckfoldertreelist .ckfoldertree {
	padding: 0.1em 0.5em;
}

#ckfoldertreelist .ckfoldertreecount,
.ckfoldertreelist .ckfoldertreecount {
	display: inline-block;
	font-family: Verdana;
	font-size: 1em;
	padding: 3px 5px;
	background-color: #5F9EA0;
	background-image: none;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15) inset, 0 1px 2px rgba(0, 0, 0, 0.15);
	color: #fff;
	font-size: 1em;
	line-height: 18px;
	/*text-shadow: 0 1px 1px rgba(255, 255, 255, 0.75);*/
	vertical-align: middle;
	border-radius: 2px;
	position: absolute;
	top: 3px;
	vertical-align: middle;
	left: calc(100% + 5px);
}


#ckfoldertreelist .cksubfolder,
.ckfoldertreelist .cksubfolder {
	padding: 0 0.6em;
	border-left: 1px dotted #333;
}

#ckfoldertreelist .ckfoldertreefiles,
.ckfoldertreelist .ckfoldertreefiles {
	left: 102%;
	padding-bottom: 50px;
	position: absolute;
	top: 0;
	width: 180%;
}

#ckfoldertreelist .ckfoldertreefile,
.ckfoldertreelist .ckfoldertreefile {
	/*padding: 0;
	margin: 8px;
	border: 1px solid #C1C1C1;
	text-align: left;
	background: #eee none repeat scroll 0 0;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.1) inset, 0 0 0 1px rgba(0, 0, 0, 0.05) inset;
	width: 120px;
	height: 120px;
	float: left;
	text-align: center;*/
	
	border: 1px solid transparent;
	float: left;
	background-color: #f4f4f4;
	border-radius: 3px;
	box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05) inset;
	height: 100px;
	margin-bottom: 16px;
	margin-left: 0;
	margin-right: 16px;
	margin-top: 0;
	overflow: hidden;
	padding: 0;
	position: relative;
	text-align: center;
	width: 100px;
}

#ckfoldertreelist .ckfoldertreefile:hover,
.ckfoldertreelist .ckfoldertreefile:hover {
	border: 1px solid #46a546;
	cursor: pointer;
	/*background-color: #f5f5f5;
	background-image: none;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15) inset, 0 1px 2px rgba(0, 0, 0, 0.05);
	color: #333;
	cursor: pointer;
	font-size: 13px;
	line-height: 18px;
	text-shadow: 0 1px 1px rgba(255, 255, 255, 0.75);
	vertical-align: middle;*/
}

#ckfoldertreelist .ckfoldertreefile img,
.ckfoldertreelist .ckfoldertreefile img {
	margin: 0 5px 0 0;
	object-fit: scale-down;
	object-position: center;
	max-width: none;
	height: 100%;
	width: 100%;
}

#ckfoldertreelist .ckimagetitle,
.ckfoldertreelist .ckimagetitle {
	background-color: #fff;
	border: 1px solid rgba(0, 0, 0, 0.1);
	border-radius: 0 3px 0 0;
	bottom: 0;
	left: 0;
	line-height: 26px;
	position: absolute;
	text-align: left;
	z-index: 1;
	white-space: nowrap;
	font-size: 11px;
	padding: 0 2px;
}

#ckfoldertreelist .parent:not(.ckopened) > .cksubfolder,
.ckfoldertreelist .parent:not(.ckopened) > .cksubfolder,
#ckfoldertreelist .ckfoldertree:not(.ckcurrent) > .ckfoldertreefiles,
.ckfoldertreelist .ckfoldertree:not(.ckcurrent) > .ckfoldertreefiles {
	display: none;
}


/*#ckfoldertreelist .ckfoldertree.ckcurrent > .ckfoldertreefiles {
	visibility: visible;
	opacity: 1;
}*/

#ckfoldertreelist .ckfoldertree > .ckfoldertreetoggler,
.ckfoldertreelist .ckfoldertree > .ckfoldertreetoggler {
	display: inline-block;
	position: relative;
	width: 30px;
	height: 30px;
	margin: 0 5px 0 0;
	padding: 4px 6px;
}

#ckfoldertreelist .ckfoldertree > .ckfoldertreetoggler,
.ckfoldertreelist .ckfoldertree > .ckfoldertreetoggler {
	border: #bbb 1px solid;
	border-color: #bbb #bbb #a2a2a2;
	background-color: #e6e6e6;
	background-image: none;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15) inset, 0 1px 2px rgba(0, 0, 0, 0.05);
	color: #333;
	cursor: pointer;
	font-size: 13px;
	line-height: 18px;
	text-align: center;
	text-shadow: 0 1px 1px rgba(255, 255, 255, 0.75);
	vertical-align: middle;
	visibility: hidden;
	opacity: 0;
}

#ckfoldertreelist .ckfoldertree > .ckfoldertreetoggler:after,
.ckfoldertreelist .ckfoldertree > .ckfoldertreetoggler:after {
	position: absolute;
	left: 0;
	top: 0;
	right: 0;
	bottom: 0;
	content: "+";
	font-family: trebuchet ms;
	font-size: 2em;
	line-height: 100%;
}

#ckfoldertreelist .ckfoldertree.ckopened > .ckfoldertreetoggler:after,
.ckfoldertreelist .ckfoldertree.ckopened > .ckfoldertreetoggler:after {
	content: "-";
}

#ckfoldertreelist .ckfoldertree.parent > .ckfoldertreetoggler:not(.empty),
.ckfoldertreelist .ckfoldertree.parent > .ckfoldertreetoggler:not(.empty) {
/* #ckfoldertreelist .ckfoldertree.hasfiles > .ckfoldertreetoggler { */
	visibility: visible;
	opacity: 1;
}

.ckfoldertreetoggler.empty {
	visibility: hidden;
}

/*#ckfoldertreepreview {
	position: relative;
}*/

/*#ckfoldertreepreview > .inner {
	position: fixed;
}*/

#ckfoldertreepreview img {
	max-width: 650px;
	height: auto;
}

/*------------------------------------------------------
 * Styles for the image drag and drop upload
 *-----------------------------------------------------*/

#ckfolderupload.ckdndhover {
	border: 4px dashed #0c0;
	background: rgba(0, 204, 0, 0.12);
}

progress.progress {
	display: block;
	width: 100%;
	box-sizing: border-box;
	height: 10px;
}

.ckfoldertreepathway {
	padding: 5px;
	background: #f0f0f0;
	border: 1px solid #ddd;
	margin-bottom: 5px;
	display: flex;
}

.ckfoldertreepath:before,
.ckfoldertreepathwayfoldername:before {
	padding: 4px;
	color: black;
	content: "/\00a0";
}

#ckfoldertreelistfiles .ckfoldertreepathwayfoldername,
#ckfoldertreelistfiles .ckfoldertreepathwaycreatefolder {
	display: none;
}

#ckfoldertreelistfiles .ckfoldertreepathwayfoldername.ckshow,
#ckfoldertreelistfiles .ckfoldertreepathwaycreatefolder.ckshow {
	display: inline-block;
}

#ckfoldertreelistfiles .ckfoldertreepathwayfoldername input[type="text"],
#ckfoldertreelistfiles .ckfoldertreepathwaycreatefolder {
	margin: -3px -1px;
	min-height: 28px;
	height: 28px;
}

.ckfoldertreepathwayactions {
	float: right;
	margin-left: auto;
}

span.ckfoldertreepathwayaddfolder {
	margin: -3px;
}

#ckfoldertreelistfiles {
	background: #fff;
	border: none;
	padding: 0;
	overflow: auto;
	max-height: calc(100vh - 10px);
}

.ckfoldertreelistfiles-loaded {
	display: none;
}