/*
	Theme Name: Intelbrás Calculadora de Catracas
	Theme URI: https://www.intelbras.com/
	Description: Tema para atender especificações da calculadora de catracas da Intelbrás
	Author: Genoma Studio
	Author URI: https://genoma.studio/
	Version: 1.0.0
	Template: hello-elementor
	Text Domain: hello-elementor-child
*/

/* FORM CALCULADORA */

#calculadora {
    font-family: 'Nunito';
}

#calculadora select, #calculadora input[type=number] {
	margin-bottom: 20px;
}

#calculadora label {
	padding-bottom: 10px;
}

#calculadora input[type=submit] {
	background: #06cb3f;
    border: none;
    border-radius: 30px;
    padding: 10px 35px;
    color: #FFF;
    font-family: 'Nunito';
    font-weight: 700;
}

#formulario {
	width: 35vw;
	font-family: "Nunito";
	font-size: 16px;
}

#formulario select, #formulario input[type="number"] {
	height: 50px;
    border: 1px solid #8B979F;
    margin: 10px 0px;
}

#formulario input[type=submit], #formulario input[type=button] {
    background: #06cb3f;
    border: none;
    border-radius: 30px;
    padding: 10px 35px;
    color: #FFF;
    font-family: 'Nunito';
    font-weight: 700;
	margin-top: 20px;
}

#formulario input[type=submit] {
	float: right;
}

#formulario input[type=button] {
    color: #8B979F;
    background: #FFF;
    border: 1px solid #8B979F;
    float: left;
}

#formulario input[type=button]:disabled, #formulario input[type=submit]:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  background-color: #355055;	
}

#formulario .buttons-form {
    padding: 0px 17%;
}

#formulario input[type="text"]:disabled, #formulario input[type="number"]:disabled, #formulario select:disabled {
	background: #EBEBEE;
}

#formulario span {
	color: #06cb3f;
    font-family: "Nunito", Sans-serif;
    font-size: 17px;
	font-weight: 600;
}

/* Container que simula o select */
.campo {
	position: relative;
	display: inline-block;
}

/* Estiliza o select */

.campo select {

  /* styling */
  background-color: white;
  border: thin solid blue;
  border-radius: 4px;
  display: inline-block;
  font: inherit;
  line-height: 1.5em;
  padding: 0.5em 3.5em 0.5em 1em;

  /* reset */

  margin: 0;      
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
  -webkit-appearance: none;
  -moz-appearance: none;
}

.campo select {
    background-image: url(/wp-content/uploads/2023/12/arrow-select.svg);
    background-position: calc(100% - 15px);
    background-size: 11px;
    background-repeat: no-repeat;
}

.campo {
    display: flex;
    flex-direction: column;
    width: 100%;
    position: relative;
}

.escondido {
    display: none;
}

.erros p {
    color: red;
    font-size: 14px;
    font-style: bold;
    margin: 0;
    padding: 0;
}

/* .tooltip {
    font-size: 14px;
    margin: 0;
    padding: 10px;
    visibility: hidden;
    background-color: #555;
    color: white;
    text-align: center;
    position: absolute;
    z-index:  1;
    bottom: 75%;
    left: 50%;
    margin-left: -60px;
    white-space: pre;
    opacity: 0;
    transition: opacity 0.3s;
} */

/* .tooltip {
    font-size: 14px;
    padding: 10px;
    visibility: hidden;
    background-color: #8B979F;
    color: white;
    text-align: center;
    position: absolute;
    z-index: 1;
    left: 100%;
    margin-left: 30px;
    white-space: normal;
    opacity: 0;
    transition: opacity 0.3s;
    bottom: 0px;
} */

.tooltip {
    font-size: 14px;
    padding: 10px;
    visibility: hidden;
    background-color: #8B979F;
    color: white;
    text-align: center;
    position: absolute;
    z-index: 1;
    left: 100%;
    margin-left: 30px;
    white-space: break-spaces;
    opacity: 0;
    transition: opacity 0.3s;
    bottom: 0px;
    max-width: 300px;
    width: 300px;
}

.tooltip p {
    margin: 0;
    padding: 0;
}

#tipo .tooltip {
    top: 0%;
    left: 125%;
    bottom: auto;
}

.tooltip::after {
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: #555 transparent transparent transparent;
}

.campo.visivel input:hover ~ .tooltip,
.campo.visivel select:hover ~ .tooltip, 
.campo.visivel select:hover ~ .tooltip p {
    visibility: visible;
    opacity: 1;
}

p.tooltip.bloqueio::after {
/*   content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  margin-left: -15px;
  border-width: 8px;
  border-style: solid;
  border-color: #555 transparent transparent transparent; */
  	content: "";
	position: absolute;
	top: 40%;
	left: 0%;
	margin-left: -15px;
	border-width: 8px;
	border-style: solid;
	border-color: transparent #8B979F transparent transparent;	
}

#container-resultado {
    width: 60vw;
	margin-top: 60px;
    margin-bottom: 80px;
}

#container-resultado .e-con-inner {
	box-shadow: 0px 0px 12px #6666663b;
    border-radius: 14px;
}

#container-resultado h3 {
    font-size: 26px;
    font-family: 'Nunito';
    font-weight: 600;
    color: #06cb3f;
    margin-top: 40px;
}

#container-resultado th {
    border: 1px solid black;
    text-align: left;
    padding: 10px;
    font-weight: 700;
    font-size: 15px;
}

#container-resultado td {
	border: 1px solid gray;
}

#componentes {
    min-width: 767px;
}

#tamanho, #quantidade_uc, #quantidade_pne {
    font-weight: normal;
}

table#principal {
    margin-top: 30px;
}

table#principal th {
    text-transform: capitalize;
}

table#principal tr:nth-child(even) {
    background: #FFF;
}

table#principal tr:nth-child(odd) {
    background: #E8EBEB;
}

table#principal tr:first-child{
    background: #FFF;
}

table#principal tr td {
    border-top: none;
    border-bottom: none;
}

table#principal tr:last-child td {
    border-bottom: 1px solid;
}

/* RESPONSIVE */

@media only screen and (max-width: 767px) {
	
	#formulario {
		width: 90vw;
	}
	
	#container-resultado {
		width: 95vw;
	}
	
	#container-resultado .e-con-inner {
		padding: 0px 20px 40px;
	}
	
	#componentes {
    	max-width: 100%;
    	min-width: inherit;
	}
	
}