/**
 * Estilos globais para o sistema
 *
 * @author Rodrigo Machado <rcmachado@instant.com.br>
 * @since 2009-10-07
 * @copyright Instant Solutions
 */

/**
 * Estilos genéricos
 */
body {
	background-color: #E6E9EA;
	color: #000;
	margin: 6px;
}

body, td, th {
	font: normal 12px Arial, Helvetica, sans-serif;
}

body {
	font-size: 12px;
}

img {
	border: 0 none;
}

.clear {
	clear: both;
	font-size: 12px;
	height: 1px;
	padding: 0;
	margin: 0;
}

/* Mensagens de help */
span.help,
a.help {
	border-bottom: 1px dashed;
	cursor: help;
}

div.helpbox {
	border: 1px solid #ccc;
	background-color: #F3F4FD;
	float: right;
	width: 15%;
	font-style: italic;
	padding: 5px;
}

.loading {
	display: block;
	margin: auto;
	width: 208px;
}

/* Feedback para o usuário */

ul.success,
.msg-success,
.msg-atention {
	background-color: #E6E9FA;
	margin: 10px;
	padding: 10px;
	text-align: center;
}

ul.error,
ul.warning,
.msg-error {
	border: 1px solid #f00;
	margin: 15px;
	padding: 10px;
	text-align: center;
}

.msg-nothing-found {
	background-color: #E6E9FA;
	font: normal 13px Arial, Helvetica, sans-serif;
	margin: 10px;
	padding: 10px;
	text-align: center;
}

.system-error {
	background-color: #f6cbca;
	border: 1px solid #d02127;
	font-weight: bold;
	color: #d02127;
	margin: 0 10px;
	padding: 5px 15px;
}

#error-dialog ul {
	padding: 0;
}

/**
 * Componentes genéricos
 * TODO: Mover para components.css
 */

.iv-fldset-collapse {
	border-bottom: 0;
	border-left: 0;
	border-right: 0;
	border-radius: 0;
	-moz-border-radius: 0;
	-webkit-border-radius: 0;
	margin-bottom: 0;
	padding-bottom: 0;
}

/* Tabelas */
.iv-tbl-col-check { width: 15px; }
.iv-tbl-col-label { padding: 2px; }
.iv-tbl-col-select { }
.iv-tbl-col-percent { width: 25px; }
.iv-tbl-col-color { width: 15px; }

/* Paginação */
.iv-pagination-prev,
.iv-pagination-next {
	padding: 0 6px;
}

div.spacer {
	height: 10px;
}

table.pagination {
	margin: 0;
	padding: 0;
	width: 100%;
}

table.pagination td {
	background-color: #F3F4FD;
}

table.pagination td:first-child {
	text-align: left;
}

table.pagination td:last-child {
	text-align: right;
}

/**
 * Relatórios padrão
 * TODO: Mover para reports.css
 */
table.default-report {
	border-collapse: collapse;
	border: 1px solid #CCF;
	margin: 0;
	padding: 0;
	width: 100%;
}

table.default-report th,
table.default-report td {
	background-color: #fff;
	border: 1px solid #CCF;
	margin: 0;
	padding: 2px 5px;
}

table.default-report th.action-col,
table.default-report td.action-col {
	width: 145px;
}

table.default-report td.actions {
	text-align: right;
}

table.default-report tr th,
table.default-report tr th a,
table.default-report tfoot td,
table.default-report tfoot td a {
    background-color: #eff4fa;
    color: #22436a;
    font-style: normal;
    text-decoration: none;
    text-align: left;
}

table.default-report tr th,
table.default-report tfoot td {
	border: 1px solid #E6E9FA;
	border-top-color: #ccf;
}

table.default-report th:first-child,
table.default-report td:first-child {
	border-left: 1px solid #CCF;
}

table.default-report th:last-child,
table.default-report td:last-child {
	border-right: 1px solid #CCF;
}

table.default-report thead th {
	text-align: center;
}

table.default-report thead th a.asc {
	background: transparent url(../images/sort-asc.png) right center no-repeat;
	padding-right: 12px;
}
table.default-report thead th a.desc {
	background: transparent url(../images/sort-desc.png) right center no-repeat;
	padding-right: 12px;
}

table.default-report tfoot td {
	border-bottom: 1px solid #CCF;
	color: #000;
	text-align: right;
}

table.default-report tr {
	vertical-align: middle;
}

table.default-report tr.odd > th,
table.default-report tr.odd > td {
	background-color: #E6E9FA;
}
table.default-report tr.even > th,
table.default-report tr.even > td {
	background-color: #FFF;
}

table.default-report tr.disabled td {
	color: #666;
	font-style: italic;
}

table.default-report th.sorted-asc a {
	background: transparent url(../images/sort-asc.png) right center no-repeat;
	padding-right: 12px;
}
table.default-report th.sorted-desc a {
	background: transparent url(../images/sort-desc.png) right center no-repeat;
	padding-right: 12px;
}

table.default-report tr.even td.sorted {
	background-color: #eee;
}
table.default-report tr.odd td.sorted {
	background-color: #dde;
}

table.default-report tr.row-saved td {
	background-color: #99FF99 !important;
}

/* Highlight da label do form quando o campo não foi ou
   foi preenchido corretamente */
.error,
.error-label-highlight {
	color: #f00;
	font-weight: bold;
}

.valid {
	color: #000;
	font-weight: normal;
}

ul.errormsg-container {
	list-style-type: none;
	margin: 5px;
	padding: 0;
}

ul.errormsg-container li {
	color: #f00;
}

ul.errormsg-container li span.field {
	font-weight: bold;
}

.message-stack div {
	padding: 5px 10px;
	margin: 10px 30px;
	text-align: left;
}

.message-stack .msg-errors {
	background-color: #f6cbca;
	border: 1px solid #cb2026;
	color: #cb2026;
	font-weight: bold;
}

.message-stack .msg-warnings {
	background-color: #dfdfde;
	border: 1px solid #fcf9ce;
}

.message-stack .msg-success {
	background-color: #cee6c3;
	border: 1px solid #359545;
}

/**
 * Alinha o texto com o checkbox
 * Adaptado de:
 * http://stackoverflow.com/questions/306252/how-to-align-checkboxes-and-their-labels-consistently-cross-browsers/306593#306593
 */
label.iv-checkbox {
	display: inline-block;
	padding-left: 15px;
	text-indent: -15px;
}

label.iv-checkbox > input[type=checkbox] {
	width: 13px;
	height: 13px;
	padding: 0;
	margin: 0;
	vertical-align: bottom;
	position: relative;
	top: -2px;
	*overflow: hidden;
}

/**
 * Estilos para formulários de edição
 */
form {
	margin: 0;
	padding: 0;
}

fieldset {
	border-radius: 5px;
	-moz-border-radius: 5px;
	-webkit-border-radius: 5px;
	margin: 5px;
	padding: 5px;
}

legend {
	color: #000;
}

fieldset.separator-only {
	border-bottom: 0;
	border-left: 0;
	border-right: 0;
	border-radius: 0;
	-moz-border-radius: 0;
	-webkit-border-radius: 0;
}

select {
	background-color: #fff;
	font-size: 14px;
}

input.disabled {
	background-color: #DCDAD5;
}

input[type=text], input.text,
input[type=time], input.time,
input[type=number], input.number,
input[type=search], input.search,
button, input[type=reset], input[type=button], input[type=submit] {
	font-size: 14px;
}

input[type=time], input.time,
input[type=text], input.text,
input[type=search], input.search {
	padding: 1px 2px;
}

input[type=number], input.number
input.number-5digit {
	text-align: right;
}

input.txt-seconds,
input.txt-minutes,
input.number-2digit {
	width: 30px;
}

input.number-3digit {
	width: 30px;
}

input.money,
input.number-5digit {
	width: 50px;
}

textarea.file_contents {
	height: 100px;
	width: 450px;
}

table.form {
	width: auto;
}

table.form tbody th {
	font-style: italic;
	font-weight: normal;
	padding-right: 12px;
	text-align: right;
}

table.form tbody th,
table.form tbody td {
	padding-top: 2px;
	padding-bottom: 2px;
}

table.form tbody td + th {
	font-style: normal;
	padding-right: 2px;
	padding-left: 2px;
	text-align: left;
}

/**
 * Skins para toolbar
 * Retirado de http://stopdesign.com/archive/2009/02/04/recreating-the-button.html
 */
div.toolbar {
	background-color: #ccf;
	padding: 2px 5px;
	margin-bottom: 5px;
}
