/*! 
 * Copyright 2020 Luigi Cavalieri.
 * @license GPL v3.0 (https://opensource.org/licenses/GPL-3.0).
 * *************************************************************** */



/* ----- Globals ----- */

select:disabled {
	color: #7f7f7f;
}

input.sitetree-medium-text {
	width: 150px;
}

.sitetree-self-clear:after {
	clear: both;
	content: "";
    display: block;
}


/* ----- Settings Form ----- */

h2 {
	border-top: #ddd 1px solid;
	margin: 1.2em 0 0;
	padding: 1.2em 0 0.2em;
}
h2:first-of-type {
	border-top: none;
	margin: 0;
	}


/* ----- Buttons ----- */

.sitetree-button,
.sitetree-primary-btn {
	border-radius: 3px;
	border-style: solid;
	border-width: 1px;
	-webkit-box-sizing: border-box;
	-moz-box-sizing: border-box;
 	box-sizing: border-box;
 	cursor: pointer;
	display: inline-block;
	padding-bottom: 1px;
	padding-top: 0;
	text-decoration: none;
	-webkit-appearance: none;
	}

.sitetree-primary-btn {
	background-color: #21759b;
	background-image: -webkit-gradient(linear, left top, left bottom, from(#2a95c5), to(#21759b));
	background-image: -webkit-linear-gradient(top, #2a95c5, #21759b);
	background-image:    -moz-linear-gradient(top, #2a95c5, #21759b);
	background-image:     -ms-linear-gradient(top, #2a95c5, #21759b);
	background-image:      -o-linear-gradient(top, #2a95c5, #21759b);
	background-image:   linear-gradient(to bottom, #2a95c5, #21759b);
	border-color: #21759b;
	border-bottom-color: #1e6a8d;
	-webkit-box-shadow: inset 0 1px 0 rgba(120,200,230,0.5);
	box-shadow: inset 0 1px 0 rgba(120,200,230,0.5);
 	color: #FFF;
	text-shadow: 0 1px 0 rgba(0,0,0,0.1);
}
.sitetree-primary-btn:hover,
.sitetree-primary-btn:focus {
	background-color: #278ab7;
	background-image: -webkit-gradient(linear, left top, left bottom, from(#2e9fd2), to(#21759b));
	background-image: -webkit-linear-gradient(top, #2e9fd2, #21759b);
	background-image:    -moz-linear-gradient(top, #2e9fd2, #21759b);
	background-image:     -ms-linear-gradient(top, #2e9fd2, #21759b);
	background-image:      -o-linear-gradient(top, #2e9fd2, #21759b);
	background-image:   linear-gradient(to bottom, #2e9fd2, #21759b);
	color: #FFF;
	text-shadow: 0 -1px 0 rgba(0,0,0,0.3);
}
.sitetree-primary-btn:hover {
	border-color: #1b607f;
	-webkit-box-shadow: inset 0 1px 0 rgba(120,200,230,0.6);
 	box-shadow: inset 0 1px 0 rgba(120,200,230,0.6);
}
.sitetree-primary-btn:focus {
	border-color: #0e3950;
	-webkit-box-shadow: inset 0 1px 0 rgba(120,200,230,0.6), 1px 1px 2px rgba(0,0,0,0.4);
	box-shadow: inset 0 1px 0 rgba(120,200,230,0.6), 1px 1px 2px rgba(0,0,0,0.4);
}
.sitetree-primary-btn:active {
	background: #1b607f;
	background-image: -webkit-gradient(linear, left top, left bottom, from(#21759b), to(#278ab7));
	background-image: -webkit-linear-gradient(top, #21759b, #278ab7);
	background-image:    -moz-linear-gradient(top, #21759b, #278ab7);
	background-image:     -ms-linear-gradient(top, #21759b, #278ab7);
	background-image:      -o-linear-gradient(top, #21759b, #278ab7);
	background-image:   linear-gradient(to bottom, #21759b, #278ab7);
	border-color: #124560 #2382ae #2382ae #2382ae;
	color: rgba(255,255,255,0.95);
	-webkit-box-shadow: inset 0 1px 0 rgba(0,0,0,0.1);
 	box-shadow: inset 0 1px 0 rgba(0,0,0,0.1);
	text-shadow: 0 1px 0 rgba(0,0,0,0.1);
}
.sitetree-primary-btn[disabled],
.sitetree-primary-btn:disabled {
	background: #298cba;
	border-color: #1b607f;
	-webkit-box-shadow: none;
	box-shadow: none;
	color: #94cde7;
	cursor: default;
	text-shadow: 0 -1px 0 rgba(0,0,0,0.1);
	}


/* ----- Dashboard Globals ----- */

#sitetree-dashboard-wrapper {
	margin-top: 30px;
	max-width: 1100px;
}	

#sitetree-dashboard {
	float: left;
	width: 75.9%; /* max width = 820px */
	}
	#sitetree-dashboard form {
		height: 200px;
	}
	#sitetree-dashboard p {
		margin: 0;
	}
	#sitetree-dashboard th,
	#sitetree-dashboard td {
		padding: 10px 15px;
	}
	#sitetree-dashboard th {
		font-weight: 500;
		line-height: 28px;
		min-width: 200px;
		width: 320px;
	}
	#sitetree-dashboard ul {
		margin: 0;
		padding: 0 15px;
		}
		#sitetree-dashboard ul.sitetree-five-stats li {
			width: 20%;
	}
	#sitetree-dashboard li {
		color: #999;
		float: left;
		margin: 0;
		width: 25%;
		}

#sitetree-enable-sitemap-msg {
	line-height: 20px;
	padding: 8px 15px;
	}
				

/* ----- Dashboard Toolbars ----- */

.sitetree-toolbar {
	background: #fff;
	border-radius: 7px;
	height: 22px;
	line-height: 22px;
	margin-bottom: 20px;
	padding: 6px 15px;
	text-align: right;
	}
	.sitetree-toolbar span {
		color: #333;
		float: left;
		font: 14px "HelveticaNeue-Light", "Helvetica Neue Light", sans-serif;
		line-height: inherit;
	}
	.sitetree-toolbar:hover .sitetree-hidden-tb-btn { display: inline; }
	.sitetree-toolbar input.sitetree-primary-btn,
	.sitetree-tb-btn {
		font-size: 12px;
		height: 22px;
		line-height: 21px;
		margin: 0 0 0 5px;
		padding-left: 10px;
		padding-right: 10px;
		}
	
.sitetree-aux-tb-btn {
	line-height: inherit;
	margin: 0 10px 0;
	padding: 0;
	text-shadow: #F9F9F9 0 1px 0;
	}

.sitetree-hidden-tb-btn { display: none; }

.sitetree-tb-btn {
	background: #eee;
	background-image: -webkit-gradient(linear, left bottom, left top, from(#e3e3e3), to(#fefefe));
	background-image: -webkit-linear-gradient(bottom, #e3e3e3, #fefefe);
	background-image:    -moz-linear-gradient(bottom, #e3e3e3, #fefefe);
	background-image:      -o-linear-gradient(bottom, #e3e3e3, #fefefe);
	background-image:		  linear-gradient(to top, #e3e3e3, #fefefe);
	border-color: #c3c3c3;
	color: #464646;
}
.sitetree-tb-btn:hover,
.sitetree-tb-btn:focus {
	background-image: -webkit-gradient(linear, left bottom, left top, from(#e2e2e2), to(#fff));
	background-image: -webkit-linear-gradient(bottom, #e2e2e2, #fff);
	background-image:    -moz-linear-gradient(bottom, #e2e2e2, #fff);
	background-image:      -o-linear-gradient(bottom, #e2e2e2, #fff);
	background-image:		  linear-gradient(to top, #e2e2e2, #fff);
	border-color: #9f9f9f;
	color: #222;
	outline: none;
}
.sitetree-tb-btn:active {
	background-image: -webkit-gradient(linear, left bottom, left top, from(#fbfbfb), to(#e3e3e3));
	background-image: -webkit-linear-gradient(bottom, #fbfbfb, #e3e3e3);
	background-image:    -moz-linear-gradient(bottom, #fbfbfb, #e3e3e3);
	background-image:      -o-linear-gradient(bottom, #fbfbfb, #e3e3e3);
	background-image:		  linear-gradient(to top, #fbfbfb, #e3e3e3);
	border-color: #9f9f9f;
 	box-shadow: inset 0 2px 5px -3px rgba( 0, 0, 0, 0.5 );
	color: #333;
	outline: none;
	text-shadow: 0 -1px 0 #f9f9f9;
	}
.sitetree-tb-btn[disabled],
.sitetree-tb-btn:disabled {
	background: #eee;
	border-color: #c9c9c9;
	color: #aaa;
	cursor: default;
}

#sitetree-disable-tb-btn {
	background: none;
	border: none;
	color: #b83e16;
	cursor: pointer;
	text-decoration: underline;
}
#sitetree-disable-tb-btn:hover,
#sitetree-disable-tb-btn:active {
	color: #ff0000;
}


/* ----- Dashboard Stats ----- */
		
.sitetree-stat-container {
	border-right: #fff 2px solid;
	margin-right: 20px;
	padding: 10px 0 20px;
	}
	
	
.sitetree-stat,
.sitetree-new-stat {
	font-size: 17px;
	line-height: 20px;
	margin-top: 4px;
}
.sitetree-stat {
	color: #333;
}
.sitetree-new-stat {
	color: #008200;
}

.sitetree-last-stat {
	border-right: none;
	margin-right: 0;
	}
	.sitetree-last-stat .sitetree-stat {
		color: #000;
	}
	.sitetree-last-stat .sitetree-stat,
	.sitetree-last-stat .sitetree-new-stat {
		font-size: 14px;
	}
	
.sitetree-stat-limit {
	border-bottom: #dd0000 1px solid;
	color: #dd0000;
	cursor: default;
	display: inline-block;
	padding-bottom: 1px;
	position: relative;
}
.sitetree-stat-limit:hover {
	border: none;
	}
	.sitetree-stat-limit:hover .sitetree-stat-limit-msg {
		display: block;
	}

.sitetree-stat-limit-msg {
	background: #fff;
	border: #ccc 1px solid;
	border-radius: 3px;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
	color: #333;
	display: none;
	font: 11px/18px sans-serif;
	left: 50%;
	margin-left: -31px; /* - ( :before/:after left value + 1 ) */
	padding: 8px 12px;
	position: absolute;
	text-align: left;
	top: 27px;
	width: 200px;
}
.sitetree-stat-limit-msg:before,
.sitetree-stat-limit-msg:after {
	content: '';
	display: block;
	left: 30px;
	position: absolute;
}
.sitetree-stat-limit-msg:before {
	border-bottom: #ccc 7px solid;
	border-left: transparent 14px solid;
	border-right: transparent 14px solid;
	margin-left: -14px;
	top: -7px;	
}
.sitetree-stat-limit-msg:after {
	border-bottom: #fff 6px solid;
	border-left: transparent 12px solid;
	border-right: transparent 12px solid;
	margin-left: -12px;
	top: -6px;
	}


/* ----- Ask4help Message ----- */

#sitetree-ask4help-panel {
	background: #fff;
	border: #ccd0d4 1px solid;
	box-shadow: 0 1px 1px rgba(0, 0, 0, 0.04);
	font-size: 13px;
	line-height: 1.9em;
	margin-bottom: 30px;
	padding: 25px 20px;
	}
	#sitetree-ask4help-panel h3 {
		font-size: 21px;
		font-weight: 400;
		margin: 0 0 0.8em;
		padding: 0;
	}
	#sitetree-ask4help-panel p {
		margin-bottom: 1em;
	}
	#sitetree-ask4help-panel a {
		text-decoration: none;
	}

#sitetree-ask4help-close {
	float: right;
	position: relative;
}
#sitetree-ask4help-close:hover::before {
	color: #c00;
}
#sitetree-ask4help-close::before {
	color: #72777c;
	content: "\f153";
	display: inline-block;
	font: normal 16px/20px dashicons;
	height: 20px;
	left: -18px;
	position: absolute;
	top: 3px;
	width: 20px;
}

#sitetree-ask4help-btns {
	text-align: center;
	margin-top: 20px;
}

#sitetree-ask4help-pro-btn,
#sitetree-ask4help-org-btn {
	border-radius: 3px;
	color: #fff;
	display: inline-block;
	font-size: 14px;
	line-height: 48px;
	margin: 10px 10px 0;
	padding: 0 20px;
}

#sitetree-ask4help-pro-btn {
	background: #333;
}
#sitetree-ask4help-pro-btn:hover {
	background: #292929;
}

#sitetree-ask4help-org-btn {
	background: #007cba;
}
#sitetree-ask4help-org-btn:hover {
	background: #0071a1;
}