/*
+---------------------------------------------
| HACKS e AJUSTES do bootstrap
+---------------------------------------------
*/

/**
 * Corrige o problema de dropdown ficar escondido dentro de tabelas responsivas
 */
 /*
@media (max-width: 767px) {
    .table-responsive .dropdown-menu {
        position: static !important;
    }
}
*/
@media (min-width: 768px) {
    .table-responsive {
        overflow-y: visible !important;
    }
}


/**
 * Elimina a impressão de links do bootstrap
 */
@media print {
 	a[href]:after {
    	content: none !important;
  	}
} 

/*
Fixa a caixa de avisos quando ela não estiver visível devido o scroll - Utilizado com o app_basic.js
*/

.wrap-alerts.fixed{
    position: fixed;
    top: 60px;
    right: 0;
    width: 100%;
    z-index: 1000;
	background: transparent url(/img/transparent-black-30.png) repeat;    
    padding: 30px;
}
.wrap-alerts.fixed .old-msg-box{
	display: none;
}
@media (min-width: 920px) {
	.wrap-alerts.fixed{
		width: 50%;
	}
}

/*
Melhoras visuais no formulário
*/
.form-group .help-block{
	font-size: 0.8em;
	line-height: 1.2em;
}
.form-bs .form-label-tooltip i{
	color: #004400;
}
.form-bs .form-req{
	color: #CC0000;
	font-size: 1.4em;
	line-height: 0.8em;
}
.form-bs .form-moeda,.form-bs .form-numero{
	text-align: right;
}
.form-bs .form-lbl{
	display: block;
}

/* 
Ajuste do modal geral
*/
.modal-theme .modal-header .close{
	margin-top: -10px;
}
.modal-theme .modal-header.with-title{
	margin-top: -14px;
}
.modal-theme .modal-header.with-title .close{
	opacity: 0.4;
	margin-right: 10px;
	margin-top: 8px;
}
.modal-theme .modal-header.with-title .close:hover{
	opacity: 1;
}

/* 
Alinhamento do botão para os heading panel
*/
.panel-heading .btn-sm{
	margin-top: -5px;
}

.no-label:before{
	content: '.';
	margin-bottom: 5px;
	display: block;
	visibility: hidden;
}

/*
Acrescenta outros tamanhos de barras de progresso
*/
.progress-sm{
	height: 12px;
}
.progress-xs{
	height: 6px;
}
.progress-lg{
	height: 40px;
}


/*
Extende a class list-group do bootstrap adicionando os seguintes recursos:
- Opção de listar itens com ícones à esquerda ou à direita (.with-icon-left | .with-icon-right);
- Opção de retirar bordas (.borderless)
- Opção de retirar o background (.bgless)
*/
ul.list-group.with-icon-left > li > span,
li.with-icon-left
{
	margin-left: 30px;
	display: block;
}
ul.list-group.with-icon-left > li > i,
li.with-icon-left > i
{
	float: left;
}
ul.list-group.with-icon-right > li > span,
li.with-icon-right,
{
	margin-right: 30px;
	display: block;
}
ul.list-group.with-icon-right > li > i,
li.with-icon-right > i
{
	float: right;
}

ul.list-group.borderless li.list-group-item{
	border:none;
}
ul.list-group.bgless li.list-group-item{
	background-color: transparent;
}
ul.list-group.bgless.borderless li.list-group-item{
	padding-left: 0;
	padding-right: 0;
}
.breadcrumb{
	margin-bottom: 0;
}
.alert{
	margin-bottom: 2px;
}
.alert-sm{
	padding: 8px 15px;
}
.alert-xs{
	padding: 2px 7px;
}
.wrap-alerts-modal .alert{
	padding: 5px 35px 5px 10px;
}
.dropdown-account li a i{
	color: #999;
	margin-right: 1em;
}
.dropdown-account li a:hover i{
	color: #004400;
}

/**
 * Estilizando thumbnails
 */
a.thumbnail .caption, .thumbnail a .caption, a.thumbnail > .caption{
	color: #555;
}
a.thumbnail:hover, .thumbnail a:hover, a.thumbnail:hover > .caption{
	text-decoration: none;
	color: #000;
}
a.thumbnail:hover{
	border-color: #fff;
	box-shadow: 0 0 5px #000;	
}

.form-bs input.form-control, .form-bs select.form-control, .form-bs .form-button, .form-bs .chzn-container > a{height: 34px;}
.form-bs .chzn-container-single .chzn-single{
	line-height: 34px !important;
}
.form-bs .chzn-container-single .chzn-single div b{
	background-position: 0 5px !important;
}
.form-bs .select2-selection{
	min-height: 34px;
}
.form-bs .select2-selection__rendered{
	line-height: 32px !important;
}
.form-bs .select2-selection__rendered li{
	line-height: 20px !important;
}
.select2-selection__arrow{
	height: 30px !important;
}

.form-bs .select2-selection__rendered .select2-search__field{
	height: 22px;
	line-height: 22px !important; 
}

.form-bs .form-msg-field{min-height: 30px; padding: 8px 5px}
.form-bs select, .form-bs .chzn-container > a{background-color: #FFFFFF !important}
.form-bs option[default] {color: #555; font-style: italic; font-weight: 100}

.dropdown-menu li.label{
	font-size: 1em;
	font-weight: normal;
	padding: 1em 1.5em;
	color: #999;
}
.dropdown-menu.dropdown-right{
	right: 0;
	left: auto;	
}

.form-bs .checkbox .label-checkbox{
	margin-right: 18px;
}

.fa{
	line-height: inherit !important;
}
/* Form legend and titles */
/*
.form legend {
	background: #fff;
	border-bottom: solid 2px #999;
	padding: 1.2em;
}
.form legend > i{
	color: #72c02c;
	margin-left: -1.2em;
	margin-right: 0.5em; 
}
*/

.form-bs h1, .form-bs h2, .form-bs h3{
	font-size:1.4em;
	padding: 10px 10px 10px 0;
	color:#333;
	background:none;
	font-weight: bold;
	font-family: sans-serif,"Arial";
	display: block;
	clear: both;
	margin-left:1.04%;
}
.form-bs h2{font-size:1.2em;}
.form-bs h3{font-size:1em;}

.form-bs .panel-heading h3{
	padding: 5px 0;
	font-size: 1.4em;
	margin: 0;
}

/**
 * Implementa o tamanho intermediário md para modais e correção do backdrop
 */
.modal-dialog {
  position: relative;
  width: auto;
  max-width: 600px;
  margin: 10px;
}
.modal-sm {
  max-width: 300px;
}
.modal-lg {
  max-width: 900px;
}
.modal-login {
  max-width: 380px;
}
@media (min-width: 768px) {
  .modal-dialog {
    margin: 30px auto;
  }
}
@media (min-width: 320px) {
  .modal-sm {
    margin-right: auto;
    margin-left: auto;
  }
}
@media (min-width: 620px) {
  .modal-dialog {
    margin-right: auto;
    margin-left: auto;
  }
  .modal-lg {
    margin-right: 10px;
    margin-left: 10px;
  }
}
@media (min-width: 920px) {
  .modal-lg {
    margin-right: auto;
    margin-left: auto;
  }
}
.modal-backdrop{
	position: fixed;
}

/**
 * Implementa o container para meia página
 */
@media(max-width:767px){
	.container-half{width: 100%}	
}
@media(min-width:768px){
	.container-half{width: 384px}
	.container-half.half-left{float: right;}
}
@media(min-width:992px){
	.container-half{width: 496px}
}
@media(min-width:1200px){
	.container-half{width: 600px}
}

@media only screen{
	.to-print{
		display: none;
	}
}

/**
 * Corrige o problema de esconder o dropdown do select2 dentro do modal fancybox
 */
.select2-container--open{
	z-index: 99999;
}

