@charset "UTF-8";
@import url('https://fonts.googleapis.com/css2?family=Inter&family=Open+Sans:wght@600;700&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 0.75rem;
  font-family: 'Inter', sans-serif;
}

:root {
  --background-form: #ffffff;
  --shadow-form: #dddddd;
  --text-color: #2e3e4b;
  --border-inputs: #bbbbbb;
  --background-submit-button: #2e97b7;
  --text-submit-button: #ffffff;
  --background-header-form: #2e97b7;
  --text-header-form: #ffffff;
  --background-flag: #32b9be;
  --text-color-flag: #ffffff;
  --border-inputs-mobile: #555555;
  --background-cancel-button: #2e97b7;
  --icon-size: 4.1666rem;
  --background-popup: #ffffff;
}

div#TB_window {
	border: none;
	background-color: transparent;
}

.container {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  background-image: url('../images/fundo.jpg');
  background-position: center;
  background-size: cover;
}

.container.height-auto {
  height: auto;
}

.popup-container.hide-popup {
  display: none;
}

.popups-container {
  height: 100%;
}

.popup-container {
  position: fixed;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1;
  align-self: self-start;
}

.information-popup {
	background-color: transparent;
}

.popup-content {
  width: 35rem;
  padding: 1.25rem;
  display: flex;
  justify-content: space-between;
  flex-direction: column;
  align-items: center;
  row-gap: 2.9166rem;
  border-radius: 0.4166rem;
  background-color: #ffffff;
}

.popup-icon-container,
.popup-text-container,
.popup-buttos {
  margin-bottom: 1rem;
}

.popup-icon-container {
  display: flex;
  justify-content: center;
}

.icon-container {
  display: flex;
  justify-content: center;
  align-items: center;
  width: var(--icon-size);
  height: var(--icon-size);
  border-radius: 50%;
}

.icon-container.info {
  border: 0.25rem solid #2e97b7;
}

.icon-container.info i {
  font-size: 2.333rem;
  color: #2e97b7;
}

.icon-container.success i {
  font-size: 4.166rem;
  color: #14c871;
}

.icon-container.error i {
	font-size: 4.166rem;
  	color: #f54d4d;
}

.text-popup {
  display: block;
  text-align: center;
  font-size: 1.1666rem;
  font-family: 'Open Sans', sans-serif;
}

.popup-buttons {
  display: flex;
  justify-content: center;
  column-gap: 2.9166rem;
  margin-bottom: 0.4166rem;
}

.default-button-popup {
  border: none;
  background-color: transparent;
  height: 3.5rem;
  width: 8rem;
  border-radius: 0.3333rem;
  cursor: pointer;
  font-size: 1.1666rem;
  font-weight: bold;
  font-family: 'Open Sans', sans-serif;
}

.confirm-button {
  border: 0.125rem solid #cccccc;
}

.cancel-button,
.ok-button,
.error-button {
  background-color: #2e97b7;
  color: #ffffff;
}

.ok-button,
.error-button {
	display: block;
	text-decoration: none;
	line-height: 42px;
	text-align: center;
}


#form-container {
  min-width: 38rem;
  max-width: 70%;
  border-radius: 0.4166rem;
  box-shadow: 0 0.0833rem 0.3333rem var(--shadow-form);
  margin: 1.25rem 0;
}

#header-form {
  display: flex;
  align-items: center;
  position: relative;
  width: 100%;
  padding: 2.0833rem 0.8333rem;
  border-top-left-radius: 0.4166rem;
  border-top-right-radius: 0.4166rem;
  background-color: var(--background-header-form);
  word-break: break-all;
}

#title-header {
  width: 75%;
  position: relative;
  display: block;
  color: var(--text-header-form);
  font-family: 'Open Sans' sans-serif;
  font-size: 1.333rem;
}

#flag {
  width: 7rem;
  height: 8.333rem;
  display: flex;
  justify-content: center;
  align-items: center;
  position: absolute;
  right: 0.8333rem;
  top: 0;
  text-align: center;
  font-family: 'Open Sans', sans-serif;
  color: var(--text-color-flag);
  background-color: var(--background-flag);
  clip-path: polygon(0 0, 100% 0%, 100% 79%, 50% 100%, 0% 79%);
}

#form-body {
  border-top: none;
  padding: 1.25rem;
  border-bottom-left-radius: 0.4166rem;
  border-bottom-right-radius: 0.4166rem;
  background-color: var(--background-form);
}

.info-req-supplier-container,
.info-req-supplier {
  display: block;
}

.info-req-supplier-container {
  font-weight: bold;
  font-size: 1.166rem;
  font-family: 'Open Sans' sans-serif;
  color: var(--text-color);
}

#supplier-data {
  margin-bottom: 1.25rem;
}

#requester-data {
  margin-top: 1.666rem;
}

.element-field {
  padding: 0.4166rem;
}

.element-field label,
.element-field input {
  display: block;
  color: var(--text-color);
}

.element-field select {
  color: var(--text-color);
}

.element-field select option {
  color: #222222;
}

.element-field label {
  margin-bottom: 0.3333rem;
  font-size: 1.15rem;
}

.element-field input:not(input[type='radio']),
.element-field select,
.element-field textarea {
  padding: 0.6rem;
  width: 100%;
  outline: none;
  border: 0.0833rem solid var(--border-inputs);
  border-radius: 0.25rem;
  font-size: 1.166rem;
}

.element-field textarea {
  max-width: 100%;
  max-height: 180px;
}

.question-options label,
.question-options input {
  display: inline-block;
}

#yes-option + label {
  margin-right: 0.5rem;
}

.element-field input[type='radio'] {
  accent-color: var(--background-submit-button);
}

.element-field input:-webkit-autofill,
.element-field input:-webkit-autofill:hover,
.element-field input:-webkit-autofill:focus,
.element-field input:-webkit-autofill:active {
  -webkit-background-clip: text;
  -webkit-text-fill-color: var(--text-color);
  transition: background-color 5000s ease-in-out 0s;
}

.button-container button {
  display: block;
  margin: 2.5rem 0;
  margin-top: 3rem;
}

.default-button {
  width: 100%;
  height: 4rem;
  cursor: pointer;
  border: none;
  border-radius: 0.4166rem;
  font-size: 1.1666rem;
  font-weight: bold;
  font-family: 'Open Sans', sans-serif;
}

#submit-button {
  background-color: var(--background-submit-button);
  color: var(--text-submit-button);
}

@media screen and (max-width: 472px) {
  #form-container {
    min-width: 96vw;
    margin: 2.0833rem 0;
  }
}

@media screen and (max-width: 440px) {
  .popup-content {
    width: 95vw;
  }
}

@media screen and (max-width: 426px) {
  .element-field input {
    border: 0.0833rem solid var(--border-inputs-mobile);
  }

  .default-button {
    border-radius: 1.666rem;
  }

  .info-req-supplier span {
    display: block;
    margin: 3px 0;
  }

  span.hifen {
    display: none;
  }
}

@media screen and (max-width: 375px) {
  #form-container {
    min-width: 96vw;
  }

  #flag {
    display: none;
  }

  #title-header {
    width: 100%;
  }

  .popup-buttos {
    justify-content: space-around;
  }
}
