﻿
/* #region dados-resumo */
.dados-resumo {
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
	align-items: center;
	margin-top: 40px;
	--color: #808080;
}

	.dados-resumo .item {
		display: flex;
		flex-direction: column;
		margin: 0.5rem 1rem;
		min-width: 210px;
		background: var(--cor_fundo2);
		border-bottom: 4px solid var(--color);
		height: 150px;
		color: var(--color); 
		border-radius: 10px;
	}

		.dados-resumo .item .numero {
			display: block;
			width: 100%;
			height: 75%;
			text-align: center;
			line-height: 140px;
			font-size: 38px;
			font-weight: bold;
		}

		.dados-resumo .item .descricao {
			display: block;
			width: 100%;
			text-align: center;
			height: 20%;
			color: #808080;
		}

		.dados-resumo .item .subDescricao {
			margin-top: -47px;
			font-size: 13px;
			text-align: center;
			color: #808080;
		}

/* #endregion */

hr {
	height: 1px;
	width: 100%;
	margin: 2rem 0;
	background: #e4e4e4;
}

/* #region Sections */

.section-title {
	color: #fff;
	background: #808080;
	padding: 4px 1rem;
	display: inline-block;
	border-radius: 10px;
}

.table-container {
	background: var(--cor_fundo2);
	padding: 1rem;
	border-radius: 10px;
}


.btn-detalhamento {
	outline: none !important;
	border: none !important;
	background: none;
}
	.btn-detalhamento:hover{
		transform: scale(1.05);
	}
	.btn-detalhamento:active {
		transform: scale(1);
	}

/* #endregion */
/* #region HERANÇA DO CATP */
h1 {
	display: inline-block;
	border-bottom: 3px solid var(--cor1);
	padding-right: 0.5em;
	padding-bottom: 0.2em;
	margin-bottom: 1em;
	color: black;
	font-weight: bold;
	font-size: calc(10px + 0.65vw + 0.65vh);
	margin-left: 5.5%;
	font-family: "Assistant-Bold";
}

.btn:focus {
  box-shadow: none;
}

.btn.btn-primario {
	background-color: var(--cor1);
	color: white;
	box-shadow: none;
}

	.btn.btn-primario:hover {
		background-color: var(--cor2);
		text-shadow: 0 0 1px white;
	}

button.btn.btn-secundario {
	background-color: #bababa;
	color: white;
	box-shadow: none;
}

button.btn.btn-secundario:hover {
	background-color: #92a2a8;
	text-shadow: 0 0 1px white;
}

input.form-control.input-erro, select.form-control.input-erro, textarea.form-control.input-erro, .ui.fluid.dropdown.input-erro {
	border-bottom: 2px solid red !important;
}

input.form-control.input-sucesso, select.form-control.input-sucesso, textarea.form-control.input-sucesso, .ui.fluid.dropdown.input-sucesso {
	border-bottom: 2px solid green !important;
}

input.form-control[readonly]:focus, textarea.form-control[readonly]:focus {
	background-color: #e9ecef;
}

.container-inputbox .checkmark.input-erro  {
	border-color: red;
}

span.span-erro {
	color: red;
	font-weight: bold;
}

span.span-sucesso {
	color: green;
	font-weight: bold;
}

span.auxiliar-ordenacao {
	display: none!important;
}

.btn-voltar {
	color: var(--cor1);
	font-size: calc(10px + 0.5vh + 0.5vw);
	cursor: pointer;
}

.spacer {
	width: 100%;
	border-bottom: 1px solid #cfcfcf;
	content: " ";
	margin: 1vh 0;
}

.toggle-div.toggle-desativado {
	pointer-events: none;
	color: gray;
}

	.toggle-div.toggle-desativado i {
		background-color: gray;
	}

.card {
	width: 90%;
	border-radius: 15px;
	margin: 0 auto 15px auto;
	padding: 0;
}

.card h1 {
  color: var(--cor1);
  font-weight: bold;
  font-size: calc(10px + 0.65vw + 0.65vh);
  margin-left: 0;
}

.card hr {
  width: 20%;
  min-width: 200px;
  background-color: black;
  height: 1px;
  margin: 5px 0 20px 0;
}

.card p {
  color: gray;
  text-align: justify;
}

.modal .modal-dialog .modal-content {
	border-radius: .5rem;
}
 
input, select, input.form-control, select.form-control, textarea.form-control {
  background-color: var(--cor_fundo1);
  border: 2px solid #ececec;
  border-bottom: 2px solid var(--cor1);
  border-radius: 0;
  height: 6vh;
  min-height: 40px;
  font-size: calc(6px + 0.55vw + 0.55vh);
  font-weight: bold;
  padding: 0 calc(0.45vw + 0.45vh);
  margin: 1.25vh 0 1.25vh 0;
  box-shadow: none;
  outline: none;
}

input[type=checkbox] {
	margin: 0;
	height: initial;
	min-height: 0;
}

/*LOADER PADRAO*/

#loaderPadrao {
	position: fixed;
	height: 100vh;
	width: 100vw;
	background-color: rgba(0,0,0,0.3);
	z-index: 99999!important;
	display: flex;
	justify-content: center;
	align-items: center;
}

/*LABELS*/
input.comLabel, select.comLabel, div.comLabel {
	margin: 0.5vh 0 1vh 0;
}

label.labelForm {
	color: var(--cor_fundo2);
	font-size: calc(6px + 0.5vh + 0.5vw);
	margin-left: 0.2%;
	white-space: nowrap;
	margin-bottom: -1rem !important;
}

.form-inline label.labelForm, .form-inline label {
	align-items: unset;
	justify-content: unset;
}

input:focus, select:focus, input.form-control:focus, select.form-control:focus, textarea.form-control:focus {
  border: 2px solid var(--cor1);
  box-shadow: none;
  background-color: var(--cor_fundo1);
  border-radius: 0;
}

textarea.form-control {
	padding-top: 0.5vh;
	padding-left: 0.5vw;
}

.card select, .modal select {
  -webkit-appearance: none;
  background: url("../images/select-arrow.png") no-repeat right #ddd;
  background-size: 15px;
  background-position-x: 99.5%;
  background-color: var(--cor_fundo1);
}

.card input::placeholder, select:invalid, select option[value=""] {
  font-weight: normal;
  opacity: 0.8;
  font-family: "Assistant-SemiBold";
  color: gray;
}

/*Added for browser compatibility*/
[hidden] {
  display: none;
}

hr.hr-footer {
  margin-top: 2vh;
  width: 100%;
  height: 1px;
  background-color: gray;
}

hr.divide-secoes {
  border: none;
  border-top: 1px dashed gray;
  color: #fff;
  background-color: #fff;
  height: 1px;
  width: 100%;
  margin-bottom: 0;
}

.card div.footer-botoes .spinner-border, .modal div.modal-footer .spinner-border { /* foi dificil deixar isso ali centralizado. com certeza tinha uma forma melhor, mas não descobri */
	color: var(--cor2);
	position: absolute;
	height: calc(10px + 0.5vh + 0.5vw);
	width: calc(10px + 0.5vh + 0.5vw);
	right: 0;
	top: 17.5%;
	margin-right: -20%;
	font-size: calc(10px + 0.5vh + 0.5vw);
}

	.modal div.modal-footer .spinner-border {
		margin-top: unset;
	}

	.card span.span-erro, .card span.span-sucesso, .modal span.span-erro, .modal span.span-sucesso {
		margin-top: 5px;
		font-size: calc(3px + 0.6vw + 0.6vh);
	}

span.toggle-div i {
  margin-right: 0.25vw;
  font-size: calc(3px + 0.5vw + 0.5vh);
  padding: 5px;
  background-color: var(--cor1);
  color: white;
  cursor: pointer;
}

span.toggle-div i:hover {
  background-color: var(--cor2);
  text-shadow: 0 0 1px white;
}

span.toggle-div {
  display: inline-block;
  margin: 7px 0 15px 0.75vw;
  font-size: calc(5px + 0.5vw + 0.5vh);
  font-weight: bold;
}

table thead {
  background-color: #e8e4e4;
  color: black;
  font-weight: bold;
}

table tbody tr {
  background-color: #fbfafb;
  color: rgb(61, 61, 61);
}

.container-inputbox {
  display: block;
  position: relative;
  padding-left: calc(10px + 1.75vw);
  margin-bottom: 12px;
  margin-right: 2vw;
  cursor: pointer;
  font-size: calc(4px + 1vh + 0.75vw);
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

/* Esconde o inputbox real */
.container-inputbox input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
}

/* Cria um checkbox customizado */
.container-inputbox .checkmark {
  position: absolute;
  top: 1vh;
  left: 0.75vw;
  height: calc(4px + 0.65vh + 0.65vw);
  width: calc(4px + 0.65vh + 0.65vw);
  border: 2px solid var(--cor1);
  background-color: white;
  border-radius: 50%;
}

.container-inputbox input:hover ~ .checkmark {
  background-color: #eee;
}

.container-inputbox input:checked ~ .checkmark {
  background-color: white;
}

/* Cria o ponto/círculo indicando quando tá selecionado */
.container-inputbox .checkmark:after {
  content: "";
  position: absolute;
  display: none;
}

/* Mostra o círculo quando selecionado */
.container-inputbox input:checked ~ .checkmark:after {
  display: block;
}

/* Customiza o círculo indicador */
	.container-inputbox .checkmark:after {
		top: 50%;
		left: 50%;
		transform: translateX(-50%) translateY(-50%);
		width: 70%;
		height: 70%;
		border-radius: 50%;
		background: var(--cor1);
	}

/* Alertify (Notificações) */
.alertify-notifier {
	color: white;
}

/* Toggle Switch */

/* The switch - the box around the slider */
.switch {
	position: relative;
	display: inline-block;
	width: 60px;
	height: 34px;
}

	/* Hide default HTML checkbox */
	.switch input {
		opacity: 0;
		width: 0;
		height: 0;
	}

/* The slider */
.slider {
	position: absolute;
	cursor: pointer;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background-color: #ccc;
	-webkit-transition: .4s;
	transition: .4s;
}

	.slider:before {
		position: absolute;
		content: "";
		height: 26px;
		width: 26px;
		left: 4px;
		bottom: 4px;
		background-color: white;
		-webkit-transition: .4s;
		transition: .4s;
	}

input:checked + .slider {
	background-color: #2196F3;
}

input:focus + .slider {
	box-shadow: 0 0 1px #2196F3;
}

input:checked + .slider:before {
	-webkit-transform: translateX(26px);
	-ms-transform: translateX(26px);
	transform: translateX(26px);
}

/* Rounded sliders */
.slider.round {
	border-radius: 34px;
}

	.slider.round:before {
		border-radius: 50%;
	}

/* Bloco Seções */
.bloco-secoes .secao.secao:not(.secao-atual):hover {
	text-shadow: 0 0 1px black;
	border-top: 1px solid var(--cor1);
}

.bloco-secoes .secao.secao-atual {
	background-color: white;
	border: 1px solid transparent;
	border-top: 2px solid var(--cor1);
	box-shadow: 0 4px 2px -2px white;
	pointer-events: none;
	cursor: default;
}

/* AutoComplete do Semantic UI Overrides */
.ui.fluid.dropdown {
	margin-right: 2%;
	border-radius: 0;
	padding-top: 1.6vh;
	padding-bottom: 1.6vh;
	background-color: var(--cor_fundo1);
	border: 2px solid #ececec;
	border-bottom: 2px solid var(--cor1);
	font-size: calc(6px + 0.55vw + 0.55vh);
	min-height: 40px;
	max-height: 6vh;
}

.ui.fluid.dropdown input.search {
	margin: 0;
}

	.ui.fluid.dropdown .menu .item {
		font-size: calc(5px + 0.5vw + 0.5vh);
	}

.ui.fluid.dropdown .text {
	font-weight: bold;
}

/* Orientacao (?) */
span.orientacao {
	text-decoration: none;
	position: absolute;
	right: 1em;
	font-size: calc(5px + 0.5vw + 0.5vh);
}

	span.orientacao i {
		font-size: calc(5px + 0.65vw + 0.65vh);
	}

	span.orientacao:hover {
		cursor: help;
	}

	span.orientacao span {
		display: none;
	}

		span.orientacao span:after {
			content: '';
			position: absolute;
			top: -10px;
			right: 10px;
			margin: 0 auto;
			width: 0;
			height: 0;
			border-bottom: solid 10px var(--cor1);
			border-left: solid 10px transparent;
			border-right: solid 10px transparent;
		}

	span.orientacao:hover span {
		border-bottom: var(--cor1) 1px solid;
		padding: 5px 20px 5px 5px;
		display: block;
		z-index: 100;
		right: -0.5em;
		background-color: #e6e6e6;
		margin-top: 1em;
		width: 400px;
		height: auto;
		position: absolute;
		top: 14px;
		text-decoration: none;
	}

/* CAMPOS DE DATA ICONE */
/*.inputDataIcone{
	-webkit-appearance: none;
	background: url("../../../images/calendario.png") no-repeat right #ddd;
	background-size: calc(15px + 0.65vw + 0.65vh);
	background-position-x: 99.5%;
	background-color: var(--cor_fundo1);
}*/


/*CORRECÃO PARA OS DROPDOWNS QUE ESTOURAVAM A DIV*/
.ui.dropdown > .text {
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	max-width: 100%;
}

table td.breakWord{
	word-break: break-word;
}

/* DATATABLE */
div.dataTables_length {
	margin-left: 12px;
	margin-top: 5px;
}

div.dataTables_filter {
	margin-right: 12px;
	margin-top: 5px;
}

div.dataTables_paginate {
	margin-right: 12px !important;
}

div.dataTables_info {
	margin-left: 12px;
}

.page-link, .page-link:focus {
	color: gray;
	outline: none;
	box-shadow: none;
}

	.page-link:hover {
		background-color: var(--cor1);
		border-color: var(--cor1);
		color: white;
	}

.page-item.active .page-link {
	background-color: var(--cor2);
	border-color: var(--cor2);
}

	.page-item.active .page-link:hover {
		background-color: var(--cor1);
		border-color: var(--cor1);
		text-shadow: 0 0 1px white;
	}

div.dataTables_wrapper div.dataTables_length select, div.dataTables_wrapper div.dataTables_filter input {
	background-size: 20px;
	height: unset;
	min-height: unset;
	padding: 0 20px 0 5px;
	font-size: 19px;
	border-radius: 4px;
}

div.dataTables_wrapper div.dataTables_length label, div.dataTables_wrapper div.dataTables_filter label {
	margin-bottom: 0 !important;
}

/* #endregion */