/*
 * This file is part of Contao.
 *
 * (c) Leo Feyer
 *
 * @license LGPL-3.0-or-later
 */

/* Body */
body {
	background:#f5f5f5 url("images/hbg.jpg") repeat-x;
}

/* Header */
#header {
	width:756px;
	margin:18px auto 0;
	padding:1px;
	background:#fff;
	border:1px solid #bbb;
	border-bottom:0;
	border-radius:3px 3px 0 0;
}
#header h1 {
	margin:0;
	padding:4px 8px 6px;
	color:#fff;
	border-radius:3px 3px 0 0;
}

/* Container */
#container {
	width:760px;
	margin:0 auto;
	padding:0 0 18px;
}

/* Main */
#main {
	width:756px;
	padding:1px;
	background:#fff;
	border:1px solid #bbb;
	border-top:0;
	border-radius:0 0 3px 3px;
	box-shadow:0 3px 6px #ccc;
}

/* Headlines */
#container h2 {
	margin:16px 18px 0;
	padding:8px 0 7px 36px;
	background:url("images/install.gif") no-repeat left center;
	font-size:14px;
	font-size:.875rem;
	color:#8ab858;
}
#container h2.important {
	margin:16px 18px 0;
	padding:7px 0 8px 36px;
	background:url("images/important.gif") no-repeat left center;
	font-size:14px;
	font-size:.875rem;
	font-weight:bold;
	color:#c33;
}
#container h3 {
	margin:0;
	padding:18px 0 3px;
	font-size:12px;
	font-size:.75rem;
	font-weight:bold;
}
#container h4 {
	margin:12px 0 1px;
	padding:0;
	font-size:11px;
	font-size:.6875rem;
	font-weight:normal;
}

/* Paragraphs and lists */
p {
	margin:0 0 12px;
	padding:0;
	line-height:16px;
}
ul {
	margin:12px 0;
	padding:0 0 0 48px;
}
li {
	line-height:16px;
}
.code_old {
	margin:9px 18px;
	padding:6px 6px 7px;
	border:1px solid #c00;
	background:#fdd;
}
.code_new {
	margin:9px 18px;
	padding:6px 6px 7px;
	border:1px solid #0a0;
	background:#dfd;
}

/* Form tables */
#sql_wrapper {
	max-height:300px;
	overflow:auto;
	border:1px solid #ddd;
	background:#fcfcfc;
	padding:9px;
}
#sql_table {
	margin:-3px 0;
}
#sql_table pre {
	white-space:pre-wrap;
}
#sql_table .tl_checkbox {
	margin-top:3px;
}
.webkit #sql_table .tl_checkbox {
	margin-top:4px;
}
.ie #sql_table .tl_checkbox {
	margin-top:-1px;
}
#sql_table pre label {
	font-family:"Andale Mono",monospace;
}
.mac #sql_table pre label {
	font-size:12px;
	font-size:.75rem;
}
.tl_col_0 {
	padding:6px 0 2px;
	font-weight:bold;
	color:#77ac45;
}
.tl_col_1 {
	vertical-align:top;
}
.tl_col_2 {
	padding:2px 0 3px 4px;
}

/* Error and confirmation messages */
.tl_error,.tl_confirm,.tl_info {
	margin:0;
	padding:2px 0 3px 20px;
}
.tl_error {
	color:#c33;
	background:url("images/error.gif") no-repeat left 1px;
}
.tl_confirm {
	color:#77ac45;
	background:url("images/ok.gif") no-repeat left 1px;
}
.tl_info {
	color:#4b85ba;
	background:url("images/show.gif") no-repeat 1px 1px;
}
.tl_formbody .tl_error {
	margin:0;
}

/* Go to back end */
#go_to_login {
	margin:0 18px 14px 0;
	padding:0;
	text-align:right;
}
#go_to_login a {
	padding:2px 0 3px 20px;
	background:url("images/login.gif") no-repeat left center;
	color:#aaa;
}

/* License */
#license pre {
	height:400px;
	overflow:auto;
	margin:0;
	background:#f9f9f9;
	border:1px solid #aaa;
	padding:10px;
}

/* Formbody */
.tl_formbody,.tl_formbody_submit {
	margin:0;
}
.tl_submit_container {
	margin-top:18px;
}

/* Fieldsets */
fieldset > div {
	margin-bottom:24px;
}
fieldset.last > div {
	margin-bottom:0;
}
fieldset.tl_tbox {
	margin-top:18px;
}
fieldset.tl_tbox,fieldset.tl_box {
	margin-left:18px;
	margin-right:18px;
	padding:6px;
	border:solid #ddd;
	border-width:1px 0 0;
}
fieldset.tl_tbox > legend,fieldset.tl_box > legend {
	margin-top:-1px;
	color:#77ac45;
	padding-left:18px;
	padding-right:3px;
	background:url("images/palOpen.gif") left center no-repeat;
	cursor:pointer;
}
fieldset.tl_tbox.nolegend {
	border:none;
	margin-top:0;
}
fieldset.collapsed {
	padding-top:0;
	padding-bottom:12px;
	margin-bottom:0;
}
fieldset.collapsed div {
	display:none !important;
}
fieldset.collapsed > legend {
	background:url("images/palCollapsed.gif") left center no-repeat;
}

/* Form fields */
.tl_text {
	width:232px !important;
}
.tl_select {
	width:238px !important;
}

/* Handheld */
@media (max-width:767px) {
	#header,#container {
		width:auto;
		margin-left:10px;
		margin-right:10px;
	}
	#main {
		width:auto;
	}
	#container h4 {
		margin-top:6px;
	}
	fieldset.tl_tbox,fieldset.tl_box {
		margin-left:12px;
		margin-right:12px;
	}
	.tl_text,.tl_select {
		width:100% !important;
		-moz-box-sizing:border-box;
		-webkit-box-sizing:border-box;
		box-sizing:border-box;
	}
	.tl_formbody,.tl_formbody_submit {
		position:relative;
	}
	.tl_error,.tl_confirm,.tl_info {
		background-position:1px center;
	}
}
