/* Box sizing rules */
*,
*::before,
*::after {
  box-sizing: border-box;
}
::selection {
  background: #ffa800; /* Cor de fundo */
  color: white; /* Cor do texto */
}

/* Para navegadores da WebKit (opcional, mas recomendado para compatibilidade) */
::-webkit-selection {
  background: #ffa800; /* Cor de fundo */
  color: white; /* Cor do texto */
}
.default-input option:hover {
  background-color: #ffa800; /* Cor de fundo ao passar o mouse */
  color: #646464; /* Cor do texto ao passar o mouse */
}
.wrapper-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #0d0d0d;
  padding: 30px;
  border-radius: 10px;
  /* box-shadow: 0px 0px 6px 4px #d8d8d841; */
  z-index: 99999;
}
#modalCod {
  position: fixed;
  top: 0;
  display: none;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #0d0d0d;
  padding: 30px;
  border-radius: 10px;
  /* box-shadow: 0px 0px 6px 4px #d8d8d841; */
  z-index: 99999;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
.user-detail p {
  margin: 5px 0;
}
.info-cod {
  flex-direction: column;
  display: flex;
  align-items: center;
  height: 100%;
  justify-content: center;
}
.input-max {
  max-width: 470px;
  width: 100%;
  margin: 0 auto;
}

.erro-cadastra {
  margin-top: 30px;
  text-align: center;
}
.user-modal-edit,
.user-detail {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #0d0d0d;
  padding: 30px;
  border-radius: 10px;
  display: none;
}
.user-modal-edit {
  overflow-y: auto;
}
.user-modal-edit::-webkit-scrollbar {
  display: none; /* Ocultar barra de rolagem no Chrome, Safari e outros */
}
.user-modal-edit h2 {
  color: #ffa800;
  width: fit-content;
  margin: 20px auto 20px;
}
.user-modal-edit form {
  max-width: 900px;
  margin: 0 auto;
  overflow-y: auto;
  padding-right: 15px;
}
.form-inner-container {
  max-height: calc(100vh - 150px); /* Ajusta a altura máxima para caber na tela com espaçamento */
  overflow-y: auto; /* Garante que o conteúdo do formulário tenha rolagem */
}

.img-top {
  width: 100%;
  max-width: 250px;
  margin: 20px auto 0px;
}
.wrapper-modal .title {
  font-size: 22px;
  margin: 0 auto 20px;
}
/* Remove default margin */
body,
h1,
h2,
h3,
h4,
p,
figure,
blockquote,
dl,
dd {
  margin: 0;
}

/* Remove list styles on ul, ol elements with a list role, which suggests default styling will be removed */
ul[role="list"],
ol[role="list"] {
  list-style: none;
}

/* Set core body defaults */
body {
  min-height: 100vh;
  text-rendering: optimizeSpeed;
  line-height: 1.5;
  /* overflow: hidden; */
}

/* A elements that don't have a class get default styles */
a:not([class]) {
  text-decoration-skip-ink: auto;
}

/* Make images easier to work with */
img,
picture {
  max-width: 100%;
  display: block;
}

/* Inherit fonts for inputs and buttons */
input,
button,
textarea,
select {
  font: inherit;
}

/* Remove all animations, transitions and smooth scroll for people that prefer not to see them */
@media (prefers-reduced-motion: reduce) {
  html:focus-within {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* NORMAL CSS */

body {
  /* display: flex;
  align-items: flex-start;
  justify-content: flex-start; */
  background-color: #0d0d0d;
}
label,
span {
  color: #929292;
}
.vtex-iframe-0-x-container {
  align-items: flex-start;
  display: flex;
  justify-content: flex-start !important;
}

* {
  font-family: "Montserrat", arial, sans-serif;
}
iframe {
  display: flex;
  width: 100%;
  align-items: flex-start;
}

.container {
  width: min(90%, 800px) !important;
  display: flex;
  margin: 0 auto;
  flex-direction: column;
}

.form-title {
  font-size: 28px;
  font-weight: 400;
  text-align: center;
  font-family: "Montserrat", arial, sans-serif;
  margin-bottom: 1em;
}
.title {
  color: #ffa800;
  width: fit-content;
  margin: 20px auto 0;
}
.text {
  font-size: 14px;
  color: #929292;
  margin-bottom: 20px;
  font-weight: 500;
}

#form {
  display: flex;
  flex-direction: column;
  gap: 1em;
  margin-bottom: 20px;
}

.form-inner-container {
  display: grid;
  margin: 0;
  grid-template-columns: 1fr 1fr;
  gap: 1em;
}

.input-container-wrapper {
  display: flex;
  justify-content: space-between;
  padding-bottom: 15px;
}

.input-container {
  display: flex;
  min-height: 32px;
  flex-direction: column;
}

/* .default-label {
  display: flex;
  font-weight: 700;
  font-size: 14px;
  color: #403f3f;
  padding-inline: 0.3em;
} */
.default-label::placeholder {
  color: #929292;
}
.default-input {
  background-color: #0d0d0d;
  border: 1px solid #646464;
  color: #929292;
  border-radius: 8px;
  padding-left: 10px;
  font-size: 14px;
  height: 35px;
}

/* input:autofill {
  border: 3px solid blue;
} */

input:-webkit-autofill {
  -webkit-box-shadow: 0 0 0 30px #0d0d0d inset;
  -webkit-text-fill-color: #ffff !important;
}

.default-input:focus {
  outline: none;
}

.default-input::placeholder {
  color: #929292;
  font-weight: 500;
}
.default-input:focus {
  background-color: #0d0d0d;
  color: #929291;
  outline: none;
}

/* Caixa de seleção quando está preenchida */
.default-input:valid {
  background-color: #0d0d0d !important;
  color: #ffff !important;
}

.d-flex {
  display: flex;
  align-items: center;
  gap: 20px;
}

.input2 {
  display: flex;
  flex-direction: column;
}
/* Esconder o input original */
.radio-container input[type="radio"] {
  position: absolute;
  opacity: 0;
  cursor: pointer;
}
.update-btn {
  border: none;
  background-color: #ffa800;
  color: #1d1d1d;
  font-weight: 500;
  font-family: "Montserrat", arial, sans-serif;
  width: fit-content;
  font-size: 14px;
  cursor: pointer;
  border-radius: 8px;
  padding: 5px 40px;
}

/* Criar um checkmark personalizado */
.radio-container {
  display: inline-block;
  position: relative;
  padding-left: 20px;
  margin-bottom: 12px;
  cursor: pointer;
  font-size: 14px;
  user-select: none;
}

.cancel-btn {
  cursor: pointer; /* Garante que o botão seja clicável */
  z-index: 10; /* Ajuste o z-index se necessário */
}
.radio-container .checkmark {
  position: absolute;
  top: 4px;
  left: 0;
  height: 15px;
  width: 15px;
  background-color: #eee;
  border-radius: 50%;
}

/* Quando o radio button é marcado */
.radio-container input:checked ~ .checkmark {
  background-color: #ffa800;
}

/* Estilo do checkmark após ser marcado */
.radio-container .checkmark:after {
  content: "";
  position: absolute;
  display: none;
}

.radio-container input:checked ~ .checkmark:after {
  display: block;
}

/* Estilo do checkmark */
.radio-container .checkmark:after {
  top: 3px;
  left: 3px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: white;
}

textarea {
  padding: 0.5em;
  border: 1px solid rgba(209, 213, 219);
  outline: none;
  min-height: 100px;
  font-family: "Montserrat", arial, sans-serif;

  border-radius: 8px;
}

.label2 {
  border-bottom-left-radius: 0 !important;
  border-top-left-radius: 4px !important;
  border-top-right-radius: 4px !important;
  border-bottom-right-radius: 0px !important;
}

textarea:focus {
  outline: none;
}
.wrapper-btn {
  width: fit-content;
  margin: 0 0 0 auto;
  flex-direction: row-reverse;
}
.submit-btn {
  font-family: "Montserrat", arial, sans-serif;
  border: none;
  background-color: #ffa800;
  color: #1d1d1d;
  width: fit-content;
  cursor: pointer;
  font-weight: bold;
  margin: 1em auto 0 auto;
  border-radius: 8px;
  padding: 10px 80px;
}
.wrapper-btn {
  display: flex;
  gap: 10px;
}
#clear-filter {
  border: none;
  background-color: #9b9a9a;
  color: #0d0d0d;
  font-weight: 500;
  font-family: "Montserrat", arial, sans-serif;
  width: fit-content;
  font-size: 14px;
  cursor: pointer;
  border-radius: 8px;
  padding: 5px 40px;
  width: 100%;
}
.user-info .name {
  display: flex;
  flex-direction: row;
  gap: 10px;
  align-items: center;
  margin-bottom: 20px;
}
.user-info .name .star {
  max-width: 25px;
}
.user-info .name .form-check {
  max-width: 30px;
  /* padding: 2px; */
  background-color: #ffa800;
  border-radius: 100%;
}
#search-cod {
  border: none;
  background-color: #ffa800;
  height: 35px;
  color: #1d1d1d;
  font-weight: 500;
  font-family: "Montserrat", arial, sans-serif;
  width: fit-content;
  font-size: 14px;
  cursor: pointer;
  border-radius: 8px;
  padding: 5px 40px;
}
#add-user-form,
#edit-user-form {
  max-width: 700px;
  margin: 0 auto;
}
.flex-form {
  display: flex;
  flex-direction: column;
  margin-bottom: 20px;
}
.form-btn {
  width: fit-content;
  margin: 0 auto;
}
.add-btn {
  border: none;
  background-color: #ffa800;
  color: #1d1d1d;
  font-weight: 500;
  font-family: "Montserrat", arial, sans-serif;
  width: fit-content;
  font-size: 14px;
  cursor: pointer;
  border-radius: 8px;
  padding: 5px 40px;
}
.cancel-btn {
  border: none;
  background-color: #9b9a9a;
  color: #0d0d0d;
  font-weight: 500;
  font-family: "Montserrat", arial, sans-serif;
  width: fit-content;
  font-size: 14px;
  cursor: pointer;
  border-radius: 8px;
  padding: 5px 40px;
}
#apply-filter {
  border: none;
  background-color: #ffa800;
  color: #1d1d1d;
  font-weight: 500;
  font-family: "Montserrat", arial, sans-serif;
  width: fit-content;
  font-size: 14px;
  cursor: pointer;
  border-radius: 8px;
  padding: 5px 40px;
  width: 100%;
}
button:hover {
  opacity: 0.8;
  transition: 0.2s ease-in-out;
}
.wrapper-add-user {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  margin: 0;
  align-items: center;
}
.btn-download #download-all-csv {
  border: none;
  background-color: #ffff;
  color: #000;
  font-weight: 500;
  font-family: "Montserrat", arial, sans-serif;
  width: fit-content;
  font-size: 14px;
  cursor: pointer;
  border-radius: 8px;
  padding: 5px 40px;
}
.btn-download #download-without-checkin-csv {
  border: none;
  background-color: #ffff;
  color: #000;
  font-weight: 500;
  font-family: "Montserrat", arial, sans-serif;
  width: fit-content;
  font-size: 14px;
  cursor: pointer;
  border-radius: 8px;
  padding: 5px 40px;
}
.btn-download {
  display: flex;
  flex-direction: row;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 20px;
}
.btn-download .wrapper {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
}
@media (max-width: 768px) {
  .btn-download {
    gap: 10px;
    flex-direction: column;
    align-items: flex-start;
    margin-top: 10px;
  }

  .btn-download .wrapper {
    flex-direction: column;
    align-items: flex-start;
  }
}
#checkin-count {
  color: #d8d8d8;
}
#add-user {
  border: none;
  background-color: green;
  color: #fff;
  font-weight: 500;
  font-family: "Montserrat", arial, sans-serif;
  width: fit-content;
  font-size: 14px;
  cursor: pointer;
  border-radius: 8px;
  padding: 10px 40px;
}
.view-user {
  border: none;
  background-color: #ffa800;
  color: #1d1d1d;
  font-weight: 500;
  font-family: "Montserrat", arial, sans-serif;
  width: fit-content;
  font-size: 14px;
  cursor: pointer;
  border-radius: 8px;
  padding: 5px 40px;
}
.edit-button {
  border: none;
  background-color: #ffa800;
  border-radius: 100%;
  cursor: pointer;
  padding: 6px;
}
.btn-card {
  margin-top: 10px;
  display: flex;
  flex-direction: row;
  align-items: center;

  justify-content: space-between;
}
.edit-btn {
  border: none;
  background-color: #ffa800;
  color: #1d1d1d;
  font-weight: 500;
  font-family: "Montserrat", arial, sans-serif;
  width: fit-content;
  font-size: 14px;
  cursor: pointer;
  border-radius: 8px;
  padding: 5px 40px;
}
#print-btn,
.print-user {
  border: none;
  background-color: #d8d8d8;
  color: #1d1d1d;
  font-weight: 500;
  font-family: "Montserrat", arial, sans-serif;
  width: fit-content;
  font-size: 14px;
  cursor: pointer;
  border-radius: 8px;
  padding: 5px 40px;
}
.submit-btn:hover {
  opacity: 0.9;
  transition: 0.2s ease-in-out;
}

@media only screen and (width<=768px) {
  .form-title {
    text-align: center;
    font-size: 25px;
  }

  .form-inner-container {
    width: 100%;
    grid-template-columns: 1fr;
  }

  .input-container {
    flex-direction: column;
  }

  .default-label {
    width: 100%;
    text-align: start;
  }

  .submit-btn {
    width: 100%;
  }
}

/* login */

#login-form h2 {
  color: #ffa800;
  width: fit-content;
  margin: 20px auto 20px;
}
.form-group {
  margin-bottom: 15px;
}
.form-group label {
  display: block;
  margin-bottom: 5px;
}
.form-group input {
  width: 100%;
  padding: 8px;
  box-sizing: border-box;
}
.form-group button {
  margin: 0 auto;
}
.form-group {
  display: flex;
}
.view-user.disabled {
  background-color: #646464;
  color: #fefefe;
  cursor: default;
}
.green {
  padding: 2px 8px;
  background-color: green;
  color: #fff;
  border-radius: 5px;
}
#vip-filter,
#document-type-filter {
  background: #0d0d0d;
  color: #fff;
  border-radius: 5px;
}

#user-container {
  margin-top: 15px;
  padding-top: 25px;
  border-top: 1px solid #403f3f;

  /**
   * User input values.
   */
  --grid-layout-gap: 10px;
  --grid-column-count: 2;
  --grid-item--min-width: 100px;

  /**
   * Calculated values.
   */
  --gap-count: calc(var(--grid-column-count) - 1);
  --total-gap-width: calc(var(--gap-count) * var(--grid-layout-gap));
  --grid-item--max-width: calc((100% - var(--total-gap-width)) / var(--grid-column-count));

  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(max(var(--grid-item--min-width), var(--grid-item--max-width)), 1fr));
  grid-gap: var(--grid-layout-gap);
}

.error {
  color: red;
  margin-bottom: 15px;
}
.success {
  color: green;
  margin-bottom: 15px;
}
#user-list {
  display: none;
}
p {
  color: #fff;
  font-size: 14px;
}
#user-list h2 {
  color: #ffa800;
  width: fit-content;
  margin: 20px auto 20px;
}

.user {
  width: 100%;
  border: 1px solid #403f3f;
  border-radius: 10px;
}

.user-info {
  padding: 20px;
}

.user-info p {
  width: fit-content;
  display: flex;
  flex-direction: row;
  gap: 8px;
  align-items: center;
  margin-bottom: 5px;
}
#user-list h3 {
  color: #fff;
  width: fit-content;
}

/* Add your existing styles here */
.modal {
  display: none;
  position: fixed;
  z-index: 1;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgb(0, 0, 0);
  background-color: rgba(0, 0, 0, 0.4);
}

.modal-content {
  background-color: #fefefe;
  margin: 15% auto;
  padding: 20px;
  border: 1px solid #888;
  width: 80%;
}
.user-modal-edit {
  display: none;
}

.close-btn {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
}

.close-btn:hover,
.close-btn:focus {
  opacity: 0.8;
  text-decoration: none;
  cursor: pointer;
}
.wrapper-flex {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-bottom: 15px;
}
.wrapper-search {
  width: 100%;
}

#search-code {
  width: 83%;
}

.select-wrapper {
  display: flex;
  gap: 15px;
}

#search-user {
  width: 100%;
}
.wrapper-filter {
  display: flex;
  gap: 20px;
}

@media (max-width: 751px) {
  .user-info p {
    width: fit-content;
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: initial;
    margin-bottom: 5px;
  }

  /* .view-user {
    margin-bottom: 10px;
  } */
}
.wrapper-btn-checkin {
  width: 100%;
  margin: 0 auto;
  display: flex;
}
.edit {
  max-width: 20px;
}

/* Style the buttons that are used to open and close the accordion panel */
.accordion {
  color: #ffa800;
  cursor: pointer;
  padding: 18px;
  width: 100%;
  text-align: left;
  border: 1px solid #ffa800;
  border-radius: 8px;
  outline: none;
  transition: 0.4s;
  justify-content: space-between;
  display: flex;
  align-items: center;
}

/* Style the accordion panel. Note: hidden by default */
.panel {
  padding: 0 18px;
  display: none;
  overflow: hidden;
  position: relative;
  top: -22px;
  background-color: #0d0d0d;
  border: 1px solid #ffa800;
  border-top: none;
  border-radius: 0 0 8px 8px;
  max-height: 0;
  transition: max-height 0.2s ease-out;
}

.accordion:after {
  content: '\2193'; /* Unicode character for "arrow down" sign */
  font-size: 25px;
  color: #ffa800;
  float: right;
  margin-left: 5px;
}

.active:after {
  content: "\2191"; /* Unicode character for "arrow up" sign */
}

.image-use-authorization {
  padding: 18px 0;
  color: #fff;
  font-size: 15px;
}

.image-use-authorization-checkbox-wrapper {
  display: flex;
  gap: 5px;
  font-size: 17px;
}

.image-use-authorization-checkbox {
  width: 20px;
  height: 20px;
}

input[type="checkbox"] {
  accent-color: #ffa800;
  /* Green color */
}

@media (max-width: 584px) {
  #user-container {
    display: flex;
    flex-direction: column;
  }

  .user-info p {
    width: fit-content;
    display: flex;
    flex-direction: row;
    gap: 8px;
    align-items: center;
    margin-bottom: 5px;
    line-break: anywhere;
  }

  .wrapper-filter {
    flex-direction: column;
    gap: 10px;
  }

  .wrapper-btn {
    width: 100%;
    margin: 0 0 0 auto;
    flex-direction: row-reverse;
  }

  .wrapper-btn-checkin {
    width: 100%;
    margin: 0 auto;
    display: flex;
  }

  .select-wrapper {
    justify-content: space-between;
  }

  #search-code {
    width: 100%;
    margin-bottom: 10px;
  }

  #search-cod {
    width: 100%;
  }
}
