/**
 * coresys-ui default theme
 *
 * Mantra:
 *   - do not pollute the global namespace
 *   - provide sane defaults
 */
body {
	margin: 0;
/*	background: url(../img/header.png) repeat-x;*/
	color: black;
	font-size: 12px;
	font-family: Helvetica, sans-serif;
}
a, a:active {
	color: black;
}
#container {
	width: 980px;
	margin: auto;
	padding-left: 7px;
}
#header {
    background-color: #2D2D2D;
	padding-top: 12px;
	font: 12px 'PerspectiveSansRegular', Arial, sans-serif;
	border-bottom: 7px solid #CCCCCC;
}
#header-inner {
    width: 980px;
    margin: auto;
}
#header-title {
    height: 65px;
    padding-left: 7px;
}
#menu {
	height: 31px;
    background-color: #363636;
    padding-left: 48px;
    margin-left: 7px;
}
#logo {
	float: left;
	margin-right: 10px;
	border: 0;
}
.app-name {
	color: white;
	font-size: 24px;
	padding-top: 7px;
}
.app-name a {
	color: white;
	text-decoration: none;
}
.app-by {
	font-size: 12px;
	color: #999999;
	margin-top: 5px;
}

/* formalize overrides */
.button {
  -webkit-appearance: none;
  -moz-border-radius: 4px;
  -webkit-border-radius: 4px;
  -o-border-radius: 4px;
  -ms-border-radius: 4px;
  -khtml-border-radius: 4px;
  border-radius: 4px;
  -moz-background-clip: padding;
  -webkit-background-clip: padding;
  -o-background-clip: padding-box;
  -ms-background-clip: padding-box;
  -khtml-background-clip: padding-box;
  background-clip: padding-box;
  background: #dddddd url('../images/button.png') repeat-x;
  background-image: -webkit-gradient(linear, 50% 0%, 50% 100%, color-stop(0%, #ffffff), color-stop(100%, #dddddd));
  background-image: -webkit-linear-gradient(#ffffff, #dddddd);
  background-image: -moz-linear-gradient(#ffffff, #dddddd);
  background-image: -o-linear-gradient(#ffffff, #dddddd);
  background-image: -ms-linear-gradient(#ffffff, #dddddd);
  background-image: linear-gradient(#ffffff, #dddddd);
  border: 1px solid;
  border-color: #dddddd #bbbbbb #999999;
  cursor: pointer;
  color: #333333;
  font: bold 12px/1.3 "Helvetica Neue", Arial, "Liberation Sans", FreeSans, sans-serif;
  outline: 0;
  overflow: visible;
  padding: 3px 10px;
  text-shadow: white 0 1px 1px;
  width: auto;
  *padding-top: 2px;
  *padding-bottom: 0;
}
a.button, a.button:active, a.button:visited {
	text-decoration: none;
	display: inline-block;
	color: #333;
}
a.button:hover {
  background-image: -webkit-gradient(linear, 50% 0%, 50% 100%, color-stop(0%, #ffffff), color-stop(1px, #eeeeee), color-stop(100%, #cccccc));
  background-image: -webkit-linear-gradient(#ffffff, #eeeeee 1px, #cccccc);
  background-image: -moz-linear-gradient(#ffffff, #eeeeee 1px, #cccccc);
  background-image: -o-linear-gradient(#ffffff, #eeeeee 1px, #cccccc);
  background-image: -ms-linear-gradient(#ffffff, #eeeeee 1px, #cccccc);
  background-image: linear-gradient(#ffffff, #eeeeee 1px, #cccccc);
}
a.button:active {
  background-image: -webkit-gradient(linear, 50% 0%, 50% 100%, color-stop(0%, #ffffff), color-stop(1px, #dddddd), color-stop(100%, #eeeeee));
  background-image: -webkit-linear-gradient(#ffffff, #dddddd 1px, #eeeeee);
  background-image: -moz-linear-gradient(#ffffff, #dddddd 1px, #eeeeee);
  background-image: -o-linear-gradient(#ffffff, #dddddd 1px, #eeeeee);
  background-image: -ms-linear-gradient(#ffffff, #dddddd 1px, #eeeeee);
  background-image: linear-gradient(#ffffff, #dddddd 1px, #eeeeee);
  -moz-box-shadow: inset rgba(0, 0, 0, 0.25) 0 1px 2px 0;
  -webkit-box-shadow: inset rgba(0, 0, 0, 0.25) 0 1px 2px 0;
  -o-box-shadow: inset rgba(0, 0, 0, 0.25) 0 1px 2px 0;
  box-shadow: inset rgba(0, 0, 0, 0.25) 0 1px 2px 0;
  border-color: #999999 #bbbbbb #dddddd;
}

/* flash messages */
#flashMessage {
	padding: 10px;
	background-color: #FFF6BF;
	color: 024769;
	margin-bottom: 10px;
	border: 2px solid #EEE5AE;
}
.flashMessage {
	padding: 10px;
	background-color: #FFD324;
	color: 024769;
	margin-bottom: 10px;
}
#errorMessage {
	padding: 10px;
	background-color: #BD2031;
	color: white;
	color: 024769;
	margin-bottom: 10px;
	-webkit-border-radius: 2px;
	-moz-border-radius: 2px;
	border-radius: 2px;
}
#errorMessage a {
	color: white;
}
.errorMessage {
	padding: 10px;
	background-color: #BD2031;
	color: white;
	color: 024769;
	margin-bottom: 10px;
}
.errorMessage a {
	color: white;
}
.error-message {
	margin-top: 3px;
	color: #BD2031;
	-webkit-border-radius: 5px;
    -moz-border-radius: 5px;
    border-radius: 5px;
}

/* tables */
table.default {
	width: 100%;
}
table.default th {
	text-align: left;
}
table.default caption {
	text-align: left;
	background-color: #F2F2F2;
	border-top: 1px solid #E2E2E2;
	padding: 5px;
	font-weight: bold;
}
table.default .label {
	color: #999;
	font-weight: bold;
}

/* fieldsets */
fieldset.default {
    padding: 20px;
    border: 1px solid #CCCCCC;
    -webkit-border-radius: 10px;
    -moz-border-radius: 10px;
    border-radius: 10px;
    margin-bottom: 20px;
}
fieldset.default legend {
    font-weight: bold;
}

/* fieldsets generated by CakePHP */
div.input fieldset {
	padding: 20px;
    border: 1px solid #CCCCCC;
    -webkit-border-radius: 10px;
    -moz-border-radius: 10px;
    border-radius: 10px;
    margin-bottom: 20px;
}
div.input fieldset legend {
    font-weight: bold;
}

/* inputs */
div.input {
	margin-bottom: 10px;
}
div.input > label {
    display: block;
}
div.group_required {
	border: 1px solid #ccc;
	-webkit-border-radius: 3px;
	-moz-border-radius: 3px;
	border-radius: 3px;
	border-left: 5px solid #BD2031;
	margin-left: -5px;
    margin-bottom: 10px;
	padding-top: 7px;
    padding-left: 10px;
}
div.input input[type="radio"], input[type="checkbox"] {
    float: left;
}
div.input input[type="radio"] + label, input[type="checkbox"] + label {
    margin-left: 15px;
    display: block;
}
div.input input.form-error, select.form-error {
	border: 1px solid #BD2031;
}
div.required input, div.required select, div.required textarea {
	border-left: 5px solid #BD2031 !important;
	margin-left: -3px;
}

/** Tables **/
table {
	background: #fff;
	border-right:0;
	clear: both;
	color: #333;
	margin-bottom: 10px;
	width: 100%;
}
th {
	border:0;
	border-bottom:2px solid #555;
	text-align: left;
	padding:4px;
}
th a {
	display: block;
	padding: 2px 4px;
	text-decoration: none;
}
th a.asc:after {
	content: ' ⇣';
}
th a.desc:after {
	content: ' ⇡';
}
table tr td {
	background: #fff;
	padding: 6px;
	text-align: left;
	vertical-align: top;
	border-bottom:1px solid #ddd;
}
table tr:nth-child(2n) td {
	background: #f5f5f5;
}
table .altrow td {
	background: #f5f5f5;
}
td.actions {
	text-align: left;
	white-space: nowrap;
}
table td.actions a {
	margin: 0px 6px;
	padding:2px 5px;
}
.cake-sql-log table {
	background: #f4f4f4;
}
.cake-sql-log td {
	padding: 4px 8px;
	text-align: left;
	font-family: Monaco, Consolas, "Courier New", monospaced;
}
.cake-sql-log caption {
	color:#fff;
}

/** Paging **/
div.paging span.disabled {
	display: inline;
}
div.paging span {
	margin-right: 5px;
}
div.paging span a {
	background-color: #666666;
	color: white;
	text-decoration: none;
	-webkit-border-radius: 3px;
	-moz-border-radius: 3px;
	border-radius: 3px;
	padding: 5px;
}
div.paging span.current {
	color: black;
	border: 1px solid #666666;
	-webkit-border-radius: 3px;
	-moz-border-radius: 3px;
	border-radius: 3px;
	padding: 5px;
}
div#site-wide-alert {
	text-align: center;
}