/*
 * luxriot-stats.css
 * Videcom Luxriot visitor statistics
 */

.stats_content_full {
	width: 100%;
	float: none;
}


/* Login */

.stats_login_wrap {
	max-width: 400px;
	margin: 60px auto;
}

.stats_login_box {
	padding: 25px;
	border: 1px solid #ccc;
	background: #fff;
	box-sizing: border-box;
}

.stats_login_box .lux_info_heading {
	font-size: 22px;
	margin-bottom: 12px;
}

.stats_login_box label {
	display: block;
	margin: 14px 0 5px 0;
}

.stats_login_box input[type="text"],
.stats_login_box input[type="password"] {
	width: 100%;
	height: 36px;
	padding: 6px 8px;
	border: 1px solid #999;
	box-sizing: border-box;
}

.stats_login_error {
	margin-top: 15px;
	color: #a00000;
}

.stats_button {
	display: inline-block;
	margin-top: 16px;
	padding: 10px 15px;
	border: 0;
	background: #1768a0;
	color: #fff;
	cursor: pointer;
	font-family: inherit;
}

.stats_button:hover {
	background: #125783;
}


/* Toolbar */

.stats_toolbar {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 5px;
}

.stats_period a,
.stats_period a:visited,
.stats_period a:active,
.stats_logout a,
.stats_logout a:visited,
.stats_logout a:active {
	color: #0055D5;
	text-decoration: underline;
}

.stats_period a {
	margin-left: 8px;
}

.stats_period a.active {
	font-weight: bold;
	color: #333;
	text-decoration: none;
}

.stats_period_dates {
	margin: 0 0 14px 0;
	font-size: 0.9em;
	color: #666;
}

.stats_error_box {
	padding: 12px 14px;
	margin-bottom: 15px;
	border: 1px solid #c99;
	background: #fff4f4;
	color: #800;
}


/* Summary */

.stats_summary {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 12px;
	margin-bottom: 18px;
}

.stats_summary_box {
	min-height: 84px;
	padding: 15px;
	border: 1px solid #ccc;
	background: #fff;
	box-sizing: border-box;
}

.stats_summary_label {
	margin-bottom: 3px;
}

.stats_summary_value {
	font-size: 30px;
	line-height: 1.1;
	font-weight: bold;
	color: #174d7d;
}

.stats_summary_time {
	font-size: 24px;
}


/* Dashboard */

.stats_dashboard {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 16px;
	align-items: stretch;
}

.stats_panel {
	min-height: 425px;
	padding: 18px;
	border: 1px solid #ccc;
	background: #fff;
	box-sizing: border-box;
}

.stats_panel .lux_info_heading {
	font-size: 20px;
	margin-bottom: 18px;
}


/* Tables */

.stats_table {
	width: 100%;
	border-collapse: collapse;
}

.stats_table th,
.stats_table td {
	padding: 7px;
	border-bottom: 1px solid #ddd;
	text-align: left;
	vertical-align: top;
}

.stats_table th {
	font-weight: bold;
}

.stats_table th:last-child,
.stats_table td:last-child {
	width: 65px;
}

.stats_note {
	margin-top: 14px;
	font-size: 0.9em;
}


/* Time / measurement */

.stats_time_box {
	width: 100%;
	margin-top: 16px;
	padding: 18px;
	border: 1px solid #ccc;
	background: #fff;
	box-sizing: border-box;
}

.stats_time_box .lux_info_heading {
	font-size: 20px;
	margin-bottom: 16px;
}

.stats_technical_note {
	font-size: 0.85em;
	color: #777;
}


/* Responsive */

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

	.stats_summary {
		grid-template-columns: repeat(2, 1fr);
	}

	.stats_dashboard {
		grid-template-columns: 1fr;
	}

	.stats_panel {
		min-height: 0;
	}

	.stats_time_box {
		width: 100%;
	}
}


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

	.stats_toolbar {
		display: block;
	}

	.stats_logout {
		margin-top: 12px;
	}

	.stats_summary {
		grid-template-columns: 1fr;
	}

	.stats_period a {
		display: inline-block;
		margin-top: 6px;
	}
}
