/*****   LAYOUT   *****/
div.container{
	width:100%;
	height:auto;
	overflow:hidden;
	margin-top: 10px;
}

div.container div.row{
	width:100%;
	display:block;
	margin:10px 0 10px;
	height:auto;
	overflow:auto;
}

div.container div.row [class*="col-"]{
	display:inline-block;
  	box-sizing:border-box;
  	float:left;
  	vertical-align: top;
}

div.container div.row div.col-1 {width: 8.33%;}
div.container div.row div.col-2 {width: 16.66%;}
div.container div.row div.col-3 {width: 25%;}
div.container div.row div.col-4 {width: 33.33%;}
div.container div.row div.col-5 {width: 41.66%;}
div.container div.row div.col-6 {width: 50%;}
div.container div.row div.col-7 {width: 58.33%;}
div.container div.row div.col-8 {width: 66.66%;}
div.container div.row div.col-9 {width: 75%;}
div.container div.row div.col-10 {width: 83.33%;}
div.container div.row div.col-11 {width: 91.66%;}
div.container div.row div.col-12 {width: 100%;}

/*****   WIDGETS   *****/

	/*+++++ POP-UP +++++*/
div.pop-up-container{
	position: relative;
}
	
div.pop-up-container div.pop-up{
	display: none;
    position: absolute;
    left: 15px;
    bottom: calc(100% + 15px);
 	z-index: 100;
    visibility: hidden;
    border: 1px solid var(--main-color);
    border-radius: 5px;
    background-color: #FFFFFF;
    white-space: normal;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    box-shadow: 0 6px 12px 0 rgba(0, 0, 0, 0.2), 0 12px 30px 0 rgba(0, 0, 0, 0.19);
}

div.pop-up-container div.pop-up div.header{
	
	width: calc(100% - 10px);
    height: 30px;
    padding-left: 10px;
    line-height: 30px;
    background-color: var(--main-color);
    color: #fff;
    display: block;
    font-weight: bold;
    position: relative;
    border-top-left-radius: 2px;
    border-top-right-radius: 2px;
	
}

div.pop-up-container div.pop-up div.header i[action="close"]{
	position: relative;
    float: right;
    margin: 5px;
}

@media(max-width:850px){
	main.middle div.pop-up.open{
	    position: fixed;
	    top: 0px;
	    z-index: 100;
	    margin: 50% 0;
	    height: 0;
	    width: 100%;
	    background-color: #FFFFFF;
	    overflow: hidden;
	}
	
	main.middle div.pop-up.open div.header{
		width: 100%;
	    height: 42px;
	    background-color: #EF6C7D;
	    color: #fff;
	    display: block;
	    font-weight: bold;
	}
	
	main.middle div.pop-up.open div.header i[action="close"]{
	    margin:0;
	    padding: 7px 10px 10px 10px;
	    font-size: 25px;
	}
}

	/*+++++ Tooltip +++++*/
div.tooltip{
	position: absolute;
    font-size: 14px;
    background-color: #4A4A4A;
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 5px;
    z-index:100;
}

div.tooltip:after{
	content: "";
  	position: absolute;
  	top: 100%;
  	left: 50%;
  	margin-left: -5px;
  	border-width: 5px;
  	border-style: solid;
  	border-color: #555 transparent transparent transparent;
}


	/*+++++ DROPDOWN +++++*/
div.dropdown:not(.ui.dropdown) {
    border-bottom: 1px solid #000000;
    overflow: hidden;
    height: 25px;    
    width: 100%;
    position: relative;
}

div.dropdown:not(.ui.dropdown):after {
    content:"\f0dd";
    font-family: FontAwesome;
    color: #000;
    position: absolute; right: 0; top: 0;
    background: transparent;
    z-index: 1;
    text-align: center;
    width: 10px;
    height: 100%;      
    pointer-events: none;
    box-sizing: border-box;   
}

div.dropdown select{
	font-family: 'FontAwesome', 'Titillium Web';
	font-size:16px;
    height: 25px;
    width: 100%;
    border: none;
    background: transparent;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    outline:none;
}

	/*+++++ TOGGLE SWTICH +++++*/

label.switch {
	position: relative;
    display: block;
    vertical-align: top;
    width: 100px;
    height: 30px;
    padding: 3px;
    margin: 0 10px 10px 0;
    border-radius: 18px;
    cursor: pointer;
    box-sizing: content-box;
}
label.switch input.switch-input {
	position: absolute;
	top: 0;
	left: 0;
	opacity: 0;
	box-sizing:content-box;
}
label.switch span.switch-label {
	position: relative;
	display: block;
	height: inherit;
	font-size: 10px;
	text-transform: uppercase;
	background: var(--main-color);
	border-radius: inherit;
	box-sizing:content-box;
	box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.12), inset 0 0 2px rgba(0, 0, 0, 0.15);
}
label.switch span.switch-label:before, label.switch span.switch-label:after {
	position: absolute;
	top: 50%;
	margin-top: -.5em;
	line-height: 1;
	-webkit-transition: inherit;
	-moz-transition: inherit;
	-o-transition: inherit;
	transition: inherit;
	box-sizing:content-box;
}
label.switch span.switch-label:before {
	content: attr(data-off);
	right: 11px;
	color: #FFFFFF;
	text-shadow: 0 1px rgba(0, 0, 0, 0.2);
}
label.switch span.switch-label:after {
	content: attr(data-on);
	left: 11px;
	color: #FFFFFF;
	text-shadow: 0 1px rgba(0, 0, 0, 0.2);
	opacity: 0;
}
/*label.switch input.switch-input:checked ~ span.switch-label {*/
/*	background: #17A335;*/
/*}*/
label.switch input.switch-input:checked ~ span.switch-label:before {
	opacity: 0;
}
label.switch input.switch-input:checked ~ span.switch-label:after {
	opacity: 1;
}
label.switch span.switch-handle {
	position: absolute;
	top: 4px;
	left: 4px;
	width: 28px;
	height: 28px;
	background: linear-gradient(to bottom, #FFFFFF 40%, #f0f0f0);
	border-radius: 100%;
	box-shadow: 1px 1px 5px rgba(0, 0, 0, 0.2);
}

label.switch input.switch-input:checked ~ span.switch-handle {
	left: 74px;
	box-shadow: -1px 1px 5px rgba(0, 0, 0, 0.2);
}

	/*+++++ NAVTAP +++++*/
div.nav-tab{
	display:block;
	width:100%;
	margin: 15px auto;
	max-width:800px;
	padding:0 40px;
	box-sizing:border-box;
	height:auto;
	text-align:center;
}

div.nav-tab div.tab{
	cursor: pointer;
	display: inline-block;
    vertical-align: top;
    height: 10px;
    text-align: center;
    overflow: hidden;
    font-size: 17px;
    box-sizing: border-box;
    font-weight: 300;
    border: none;
    background: none;
    width: 20%;
    padding-bottom: 30px;
    white-space: normal;
    border-bottom: 2px solid #000;
}

div.nav-tab div.tab:hover,
div.nav-tab div.tab.showing{
	font-weight: bold;
    color: var(--main-color);
    border-bottom: 3px solid var(--main-color);
	
}

div.nav-tab-content{
	display:block;
	width:100%;
	height:auto;
	
}

div.nav-tab-content div.content{
	display:block;
	width:100%;
	height:auto;
}

div.nav-tab-content div.content.hiding{
	display:none;
}


	/*+++++ MODAL +++++*/
div.modal-overlay{

	display: block;
	position: absolute;
	width: 100%;
	height: 100%;
	right: 0;
    bottom: 0;
	z-index:999;
	background-color:rgba( 255, 255, 255, 0.7 );
}

div.modal section.content div.modal-overlay {
	position: fixed;
    top: 30px;
    height: calc(100% - 70px);
}

div.modal-overlay div.modal {

	width:90%;
	height:90%;
	position: absolute;
    top: 50%;
    left: 50%;
	background-color:#fff;
	box-shadow:2px 3px 5px 1px #ccc;
	transform: translate(-50%,-50%);
  	-ms-transform: translate(-50%,-50%);
}

div.modal-overlay div.modal header {

	height: 30px;
}

div.modal-overlay div.modal header span.title {

	font-size: 16px;
    font-weight: 600;
    display: block;
    width: 100%;
    height: 30px;
    line-height: 30px;
    padding-left: 10px;
    box-sizing: border-box;
    background-color: var(--main-color);
    color: #fff;
}

div.modal-overlay div.modal section.content {

	width:100%;
	display:block;
	height:calc( 100% - 70px );
	overflow-x:hidden;
	overflow-y:auto;
	position:relative;
	padding:20px;
	box-sizing:border-box;
	
}

div.modal-overlay div.modal section.content div.modal-spinner {
	
	opacity:0;
	position:absolute;
	left:50%;
	top:50%;
	margin-left:-15px;
	margin-top:-15px;
	width:30px;
	height:30px;
	background-image:url( /templates/modal2/assets/images/spinner.gif );
	background-repeat:no-repeat;
	background-position:center center;
	background-size:30px 30px;
	
}

div.modal-overlay div.modal footer {
	position: relative;
    top: 2px;
	width:100%;
	height:40px;
	background-color:var(--main-color);
	color:#fff;
	display:block;
}

div.modal-overlay div.modal footer button {
    margin: 6px;
	background-color: #fff;
    border: 1px solid #fff;
    color: var(--main-color);
    padding: 5px 10px;
    text-align: center;
    display: inline-block;
    font-size: 12px;
    cursor: pointer;
    border-radius: 3px;   
}

div.modal-overlay div.modal footer button:disabled{
	opacity: 0.8;
}

div.modal-overlay div.modal footer button span.icon {
	font-family:FontAwesome;
	padding-left: 5px;
    margin-left: 5px;
    border-left: 1px solid var(--main-color);
    font-size: 12px;
}

div.modal-overlay div.modal footer button.cancel-modal span.icon:before {
	content:"\f00d";
}

 
/* Transition
========================== */
label.switch span.switch-label, label.switch span.switch-handle {
	transition: All 0.3s ease;
	-webkit-transition: All 0.3s ease;
	-moz-transition: All 0.3s ease;
	-o-transition: All 0.3s ease;
}


/*****   COLORS   *****/
main.middle i.primary{
	color: var(--main-color)
}

main.middle button.primary{
	background-color: var(--main-color)
}

main.middle i.dark_primary{
	color: #BD404F
}

main.middle i.red{
	color:red;
}

main.middle i.green{
	color:green;
}

/*****   ICONS   *****/
main.middle i.fas,
main.middle i.far{
	display: inline-block;
	font-size: 20px;
	margin: 0 5px;
	cursor: pointer;
}

main.middle i.fas.small,
main.middle i.far.small{
	font-size: 12px;
}

main.middle i.fas.medium,
main.middle i.far.medium{
	font-size: 16px;
}

main.middle i.button{
	cursor:pointer;
}

@media screen and (max-width:850px) {

	main.middle section.identity_editor div.modal-overlay {
		display: block;
		position: absolute;
		width: 100%;
		top: 0;
		z-index: 999;
		background-color: rgba( 255, 255, 255, 0.7 );
	}

	main.middle section.identity_editor div.modal-overlay div.modal {
		width:100%;
		height: 100%;
		position:fixed;
		top:0px;
		left:0px;
		transform: none;
	}
	
	main.middle section.identity_editor div.modal-overlay div.modal section.content {
		padding:10px;
		bottom: 50px;
	    top: 70px;
	    overflow-y: auto;
	    height: calc(100% - 103px);
	    position: absolute;
		min-height: 400px;
	}

	main.middle section.identity_editor div.modal-overlay div.modal header {
		height: 40px;
		z-index: 1000;
	}

	main.middle section.identity_editor div.modal-overlay div.modal header span.title {
		height:40px;
		line-height:40px;
	}

	main.middle section.identity_editor div.modal-overlay div.modal footer {
		position: fixed;
		left: 0;
		bottom: 0;
		height:40px;
		width: 100%;
		top: unset;
	}

}