/* STYLES DO SETUP - GERALDO 13/12/2024 */

.container_carga {
  text-align: center;
  margin-top: 15px;
}
a.btn {
  color: #0056b3;
}

.setup button.btn.btn-success {
  width: 30%;
}
.setup div.btn.btn-success{
  width:30%;
}
button {
  color: #000;
}

div#output,
.logs {
  text-align: left;
  
}

div#output {
  text-align: left;
  background: #202a44;
  color: #fff;
  padding: 5px;
}

input[type='submit'] {
  max-width: 30%;
}

/* novos */
/* Geral */
form {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

label {
  font-weight: bold;
  margin-bottom: 5px;
  display: inline-block;
  color: #333;
}

#cargasga input[type='file'],
select,
input[type='submit'] {
  width: 100%;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 16px;
}

input[type='text'],
input[type='password'] {
  border: 1px solid #ccc;
  border-radius: 4px;
  transition: all 0.3s ease;
  padding: 20px;
}

.form_input{
  margin-bottom: 10px;
}

.setup-schema-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 42px;
  gap: 8px;
  align-items: center;
  width: 100%;
}

.setup-schema-row .setup-schema-select,
.setup-schema-create,
.setup-schema-refresh {
  height: 42px;
  border-radius: 8px;
  transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease, transform .2s ease;
}

.setup-schema-row .setup-schema-select {
  min-width: 0;
  width: 100%;
  height: 44px;
  padding: 9px 36px 9px 12px;
  border: 1px solid #cbd5e1;
  background-color: #fff;
  color: #24324a;
  font-size: 15px;
  line-height: 24px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, .05);
}

.setup-schema-row .setup-schema-select:focus {
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, .15);
  outline: none;
}

.setup-schema-create,
.setup-schema-refresh {
  border: 1px solid transparent;
  font-weight: 600;
  cursor: pointer;
}

.setup-schema-create {
  grid-column: 1 / -1;
  width: 100%;
  padding: 0 16px;
  white-space: nowrap;
}

.setup-schema-create .fa {
  margin-right: 6px;
}

.setup-schema-create:hover:not(:disabled) {
  transform: translateY(-1px);
}

.setup-schema-refresh {
  width: 42px;
  padding: 0;
  border-color: #cbd5e1;
  background: #fff;
  color: #475569;
}

.setup-schema-refresh:hover:not(:disabled) {
  border-color: #94a3b8;
  background: #f8fafc;
  color: #1e40af;
}

.setup-schema-create:disabled,
.setup-schema-refresh:disabled {
  cursor: not-allowed;
  opacity: .6;
}

.setup-schema-help {
  display: block;
  margin-top: 6px;
  color: #64748b;
  font-size: 12px;
  line-height: 1.35;
}

@media (max-width: 520px) {
  .setup-schema-row {
    grid-template-columns: 1fr 42px;
  }

}

input[type='file']:hover,
select:hover {
  border-color: #0078d7;
}

input[type='submit'] {
  background-color: #7089ac; /* Verde para confirmar */
  color: #fff;
}

input[type='submit']:hover {
  background-color: #5e779a;
}

/* Steps */
.stepa,
.stepb,
.stepc {
  height: 550px; /* height todos os steps */
  display: flex;
  margin: auto;
  /* max-width: 880px; */
  width: 100%;
  justify-content: space-between;
  flex-direction: column;
}
/* Indicadores de Progresso */
.step-indicator {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  margin-bottom: 20px;
}

.step-indicator div {
  width: 25px;
  height: 25px;
  border-radius: 50%;
  background-color: #ccc;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  transition: background-color 0.3s ease;
}

.step-indicator .btnActive {
  background-color: #0078d7; /* Active step color */
}

.step-indicator .completed {
  background-color: #28a745; /* Completed step color */
}

/* Connecting Line (Always visible gray) */
.step-line {
  height: 4px;
  background-color: #ccc; /* Default gray color */
  flex-grow: 1;
  transition: background-color 0.3s ease;
}

/* Change line color when step is active or completed */
.step-indicator .completed + .step-line {
  background-color: #28a745; /* Completed line color */
}

.just-end {
  justify-content: flex-end;
}

/* Estilização do Progress Bar */
.progress {
  -webkit-appearance: none;
  appearance: none;
  width: 50%;
  height: 20px;
  border-radius: 10px;
  overflow: hidden;
  background-color: #e6e6e6;
  box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* Parte preenchida do progress */
.progress::-webkit-progress-bar {
  background-color: #e6e6e6;
  border-radius: 10px;
}

.progress::-webkit-progress-value {
  background: linear-gradient(to right, #0078d7, #00aaff);
  border-radius: 10px 0 0 10px;
}

.progress::-moz-progress-bar {
  background: linear-gradient(to right, #0078d7, #00aaff);
  border-radius: 10px 0 0 10px;
}

/* Ajuste visual para navegadores que suportam ::progress-bar */
.progress::-ms-fill {
  background: linear-gradient(to right, #0078d7, #00aaff);
  border-radius: 10px 0 0 10px;
  border: none;
}

/* Progresso acima de 99% */
.progress[value='100']::-webkit-progress-value,
.progress[value='100']::-moz-progress-bar {
  border-radius: 10px;
}

progress {
  background-color: rgb(185, 65, 255);
  width: 250px;
  margin-bottom: 0 !important;
  height: 10px;
  -webkit-animation: animate-stripes 5s linear infinite;
  animation: animate-stripes 5s linear infinite;
}

progress[value]::-webkit-progress-value::before {
  content: '80%';
  position: absolute;
  right: 0;
  top: -125%;
  border-radius: 50%;
}

/* Texto da porcentagem */
p.progress_percentage {
  text-align: center;
  font-size: 16px;
  font-weight: bold;
  color: #333;
  margin-top: 10px;
}

.setup_container h1 {
  font-size: 2em;
}

.setup_container {
  display: flex;
  flex-direction: column;
}

.select_setp_options {
  flex: 1 0;
}

#cargasga .form-control {
  /*     max-width: 30%; */
  border-radius: 5px;
}

.container_page {
  max-width: 1300px;
  margin: auto;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1), 0 1px 3px rgba(0, 0, 0, 0.06);
  border-radius: 8px; /* Levemente arredondado para um visual moderno */
  padding: 20px; /* Espaço interno para evitar que o conteúdo encoste nas bordas */
  background-color: #fff; /* Fundo branco para destacar o conteúdo */
  background-size: 100%;
  padding: 5vh 5vw;
}

.btn_setup {
  border-top: 1px solid;
  .btn {
    margin-top: 5px;
  }
}

.totvs {
  max-width: 220px;
  border-radius: 5px;
  border: 2px solid #0a2a56;
  box-shadow: 0px 0px 15px #0a2a56;
}
.welcome__tit1e {
  text-align: center;
  font-weight: bold;
  color: #0a2a56;
}

/* Parent container styling */
.checkbox-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px)); /* Dynamic columns */
  gap: 1rem; /* Space between items */
  max-height: 300px; /* Set a maximum height */
  overflow-y: auto; /* Enable scrolling if necessary */
  overflow-x: hidden;
  padding: 0;
  margin: 0;
  list-style: none; /* Remove default bullet points */
}

/* Individual item styling */
.checkbox-grid .form-check {
  display: flex;
  align-items: center;
  gap: 1rem;
}

i.fas {
  font-size: 2rem;
}

.logs {
  height: 300px;
  overflow: scroll;
  position: relative;
}

.logs .text-center {
  position: sticky;
  top: 0;
  width: 100%;
}

/* Container para organizar o elemento */
.file-input-container {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  width: 100%;
  height: 50px;
  max-width: 400px;
  margin: 20px auto;
}

/* Esconde o input de arquivo original */
.file-input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
  width: 0;
  height: 0;
}

/* Estilização do label */
.file-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 15px;
  background-color: #f4f4f9;
  border: 2px solid #0a2a56;
  border-radius: 8px;
  cursor: pointer;
  font-family: 'Arial', sans-serif;
  font-size: 16px;
  transition: border-color 0.3s, background-color 0.3s;
}

/* Botão interno para escolher arquivo */
.file-button {
  background-color: #0a2a56;
  color: #fff;
  padding: 8px 12px;
  border-radius: 5px;
  font-size: 14px;
  transition: background-color 0.3s;
}

.file-button:hover {
  background-color: #0a2a56;
}

/* Texto de arquivo selecionado */
.file-name,
.file-name-rh {
  margin-left: 10px;
  font-size: 14px;
  color: #333;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.setup-rh-step {
  width: min(720px, 100%);
  margin: auto;
}

.setup-rh-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.setup-rh-option {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  min-height: 96px;
  padding: 18px;
  border: 2px solid #d5dce6;
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
  transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.setup-rh-option:hover,
.setup-rh-option.is-selected {
  border-color: #0a2a56;
  background: #f4f8fd;
  box-shadow: 0 4px 12px rgba(10, 42, 86, 0.12);
}

.setup-rh-option input {
  margin-top: 4px;
}

.setup-rh-option span {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.setup-rh-option strong {
  color: #0a2a56;
  font-size: 18px;
}

.setup-rh-option small {
  color: #526173;
  font-weight: normal;
}

.setup-rh-upload {
  margin-top: 22px;
  padding: 18px;
  border-radius: 10px;
  background: #f8fafc;
  text-align: center;
}

.setup-rh-upload p {
  margin: 0;
  color: #0a2a56;
  font-weight: 700;
}

.setup-rh-upload .file-label {
  width: 100%;
  min-width: 0;
}

.setup-rh-upload .file-name-rh {
  min-width: 0;
}

.setup-rh-upload > small {
  color: #a94442;
}

@media (max-width: 640px) {
  .setup-rh-options {
    grid-template-columns: 1fr;
  }
}

/* Efeito ao passar o mouse sobre o label */
.file-label:hover {
  background-color: #eaf2ff;
  border-color: #0056b3;
}

.welcome__title {
  text-align: left;
  h2 {
    font-weight: bold !important;
  }
}
h2 {
  line-height: 2.5rem;
}

.welcome__text:first-letter {
  font-weight: bold;
  font-size: 2em;
}
.welcome__text {
  font-size: 1.5em;
}
.btn-primary {
  width: 150px;
}
.checked_tables {
  margin-block: 10px;
  font-weight: bold;
}

.form_new_instancia {
  flex-basis: 300px;
  font-size: 1.6rem;
  padding: 1rem;
}

i#iconToggle,
i#iconToggle2 {
  margin-left: -30px;
  cursor: pointer;
}

span.toggleInput-eye-slash_setup {
  position: absolute !important;
  right: 5px !important;
  top: 8px;
  cursor: pointer !important;
}
.min_height {
   min-height: 320px;
}

.right_col {
  overflow: hidden; /* ajusta o scroll que estava parecendo desnecessariamente */
}

figure:has(img) img {
  width: 70%;
  border: 2px solid #0a2a56;
  border-radius: 8px;
  box-shadow: 0px 0px 15px #0a2a56;
}

input.validation_error{
  border: 1px solid red !important;
}
span.validation_error{
  color: red;
  font-size: small;
}
div.validation_error {
  height: 10px;
}

input.validation_success{
  border: 1px solid green !important;
}

.setupblock_error{
  pointer-events: none;
  background-color: red !important;
}

.setup_error {
  cursor: pointer;
  background: #9e2a2b !important;
  padding: 4px 10px;
  color: #fff;
  border-radius: 4px !important;
}

.setup-installations {
  max-width: 1180px;
  margin: 28px auto;
  overflow: hidden;
  background: #fff;
  border: 1px solid #e4e9f0;
  border-radius: 14px;
  box-shadow: 0 12px 32px rgba(36, 52, 71, 0.08);
}

.setup-installations-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 28px 30px;
  border-bottom: 1px solid #e9edf2;
  background: linear-gradient(135deg, #fff 0%, #f5f8fc 100%);
}

.setup-installations-eyebrow {
  display: block;
  margin-bottom: 4px;
  color: #6b7785;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.setup-installations-header h1 {
  margin: 0;
  color: #263442;
  font-size: 28px;
  font-weight: 700;
}

.setup-installations-header p {
  margin: 7px 0 0;
  color: #6b7785;
  font-size: 14px;
}

.setup-installations-new {
  display: inline-flex;
  width: auto;
  min-width: 210px;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  margin: 0;
  padding: 10px 18px;
  white-space: nowrap;
}

.setup-installations-existing {
  border-color: #94a3b8;
  background: #fff;
  color: #334155;
}

.setup-installations-login {
  min-width: 170px;
  border-color: #28466f;
  background: #fff;
  color: #28466f;
}

#addExistingInstallationModal .form-control {
  width: 100%;
  min-height: 44px;
  padding: 9px 12px;
  border: 1px solid #b8c5d6;
  border-radius: 8px;
  color: #24324a;
  font-size: 15px;
  line-height: 24px;
  box-shadow: inset 0 1px 2px rgba(15, 23, 42, .04);
}

#addExistingInstallationModal select.form-control {
  height: 44px;
  padding-right: 36px;
}

#addExistingInstallationModal .form-control:focus {
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, .15);
  outline: none;
}

#addExistingInstallationModal .form-group {
  margin-bottom: 18px;
}

.setup-optional {
  color: #64748b;
  font-size: 12px;
  font-weight: 400;
}

.setup-installations-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.setup-installations-back,
.setup-form-back {
  display: inline-flex;
  width: auto;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.setup-installations-table-wrap {
  overflow-x: auto;
}

.setup-installations-table {
  width: 100%;
  border-collapse: collapse;
  color: #344054;
  font-size: 14px;
}

.setup-installations-table th {
  padding: 13px 18px;
  color: #667085;
  background: #fafbfc;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-align: left;
  text-transform: uppercase;
  white-space: nowrap;
}

.setup-installations-table td {
  padding: 17px 18px;
  border-top: 1px solid #edf0f4;
  vertical-align: middle;
  white-space: nowrap;
}

.setup-installations-table tbody tr:hover {
  background: #f8fafc;
}

.setup-installations-name {
  color: #263442;
  font-weight: 600;
}

.setup-installations-id {
  color: #667085;
  font-weight: 600;
}

.setup-installations-table code {
  padding: 4px 7px;
  color: #344054;
  background: #f2f4f7;
  border: 1px solid #e4e7ec;
  border-radius: 5px;
}

.setup-installations-empty {
  color: #98a2b3;
}

.setup-installations-status {
  display: inline-flex;
  align-items: center;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.setup-installations-status.is-success {
  color: #067647;
  background: #ecfdf3;
  border: 1px solid #abefc6;
}

.setup-installations-status.is-danger {
  color: #b42318;
  background: #fef3f2;
  border: 1px solid #fecdca;
}

@media (max-width: 767px) {
  .setup-installations {
    margin: 16px 10px;
  }

  .setup-installations-header {
    align-items: stretch;
    flex-direction: column;
    padding: 22px 20px;
  }

  .setup-installations-new {
    width: 100%;
  }

  .setup-installations-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .setup-installations-back {
    width: 100%;
  }
}
