/* === CSS FINAL COM DADOS FUNDIDOS === */
.confirm-buttons {
  display: flex;
  justify-content: space-between;
  margin-top: 10px;
}

.confirm-buttons .btn {
  width: 48%;
}

.btn.warning {
  background-color: #ffc107;
  /* amarelo Bootstrap */
  color: white;
  border: none;
}


.checkbox-centralizado {
  display: flex;
  justify-content: center;
}

.btn.warning:hover {
  filter: brightness(0.9);
}

.btn.warning:active {
  background-color: #ffc107;
  color: white;
}

#filtroBusca {
  width: 100%;
  max-width: 400px;
  margin-bottom: 1.2rem;
  padding: 10px 14px;
  border-radius: 6px;
  border: 1px solid #ccc;
  background: #f1f5fa;
  font-size: 0.95rem;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.04);
}

td.no-data {
  font-style: italic;
  text-align: center;
  padding: 20px 0;
  color: #666;
}

.form-box h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: #003c71;
  grid-column: 1 / -1;
  /* ocupa toda a linha da grid */
}

.action-buttons .btn.small-btn {
  padding: 5px 12px;
  font-size: 0.9rem;
  border-radius: 6px;
}

.action-buttons .btn.small-btn+.btn.small-btn {
  margin-left: 6px;
}

td.action-cell,
th.center {
  text-align: center;
  white-space: nowrap;
}

.listing-table tbody tr:hover {
  background-color: #f4faff;
}



.custom-alert {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.6);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.custom-alert-box {
  background-color: white;
  padding: 2rem 2.5rem;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  text-align: center;
  max-width: 90%;
  width: 400px;
  animation: fadeInScale 0.25s ease-out;
}

.custom-alert-box p {
  font-size: 1rem;
  font-weight: 500;
  margin-bottom: 1.5rem;
  color: #333;
}

.alert-ok-btn {
  background-color: #004c97;
  color: white;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.2s;
}

.alert-ok-btn:hover {
  background-color: #003360;
  color: white;
}

.alert-cancel-btn {
  background-color: #dc3545;
  color: white;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.2s;
}

.alert-cancel-btn:hover {
  background-color: #900d1a;
  color: white;
}

@keyframes fadeInScale {
  from {
    opacity: 0;
    transform: scale(0.95);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

.input.disabled-dark {
  background-color: #c2c2c2;
  /* tom claro */
  color: #697a8a;
  /* cinza mais suave */
  border: 1px solid #8d8d8d;
  /* mantém a borda */
  cursor: not-allowed;
}

.input-com-checkbox {
  display: flex;
  flex-direction: column;
  grid-column: span 1;
  /* ocupa apenas uma coluna */
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1rem;
}

.input-checkbox-wrap {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.input-checkbox-wrap input[type="text"],
.input-checkbox-wrap input.input {
  flex: 1 1 auto;
  min-width: 100px;
}

.checkbox-inline {
  display: flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
  font-size: 0.9rem;
}

body {
  margin: 0;
  padding: 0;
  font-family: 'Segoe UI', sans-serif;
  background: #f4f6f9;
}

.main-layout {
  display: flex;
  height: 100vh;
}

.content {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding-top: 75px;
  margin-left: 240px;
}

.registration-container {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 1rem;
}

.form-box {
  background: white;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
  padding: 2rem;
  width: 100%;
  max-width: 1500px;
}

.container {
  background: white;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
  padding: 2rem;
  width: 100%;
  max-width: 1500px;
}

.container h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: #003c71;
}

.form-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.step-info {
  color: #1c3d70;
  font-size: 0.875rem;
  font-weight: 500;
}

.progress {
  background-color: #e9ecef;
  border-radius: 10px;
  overflow: hidden;
}

#progressBar {
  background-color: #0d6efd !important;
  /* Azul Bootstrap */
  color: white;
  text-align: center;
  line-height: 20px;
  /* mesma altura da barra */
  font-weight: 500;
}

.form-step.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1rem;

}

.form-step {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 100%;
}

.input-group {
  display: flex;
  flex-direction: column;
}

.input-group label {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 0.3rem;
}

.input {
  padding: 0.85rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 1rem;
  background-color: #f2f5f9;
}

/* Container principal do Select2 */
.select2-container--default .select2-selection--single {
  background-color: #f2f5f9;
  border: 1px solid #ccc;
  border-radius: 6px;
  height: 44px;
  display: flex;
  align-items: center;
  font-size: 1rem;
  padding: 0.85rem;
  font-family: 'Segoe UI', sans-serif;
  box-sizing: border-box;
  height: 54px;
}

.select2-ddd {
  padding: 0.6rem 0.8rem;
  /* ajuste do padding */
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 1rem;
  background-color: #f2f5f9;
  font-family: 'Segoe UI', sans-serif;
  /* 🔧 fonte limpa */
  line-height: 1.3;
  /* 🔧 evita corte vertical */
  height: auto;
  /* permite altura natural */
  width: fit-content !important;
}

/* Texto selecionado */
.select2-container--default .select2-selection--single .select2-selection__rendered {
  color: #333;
  line-height: normal;
  padding-left: 0;
}

/* Ícone de seta (dropdown) */
.select2-container--default .select2-selection--single .select2-selection__arrow {
  height: 44px;
  top: 0;
  right: 8px;
}

#telefonesContainer .select2-container {
  width: auto !important;
}

/* Corrige largura */
.select2-container {
  width: 100% !important;
}

.success-message {
  color: green;
  font-weight: 600;
}

.navigation-buttons {
  display: flex;
  justify-content: space-between;
  margin-top: 2rem;
}

.navigation-buttons .btn.continue {
  margin-left: auto;
}

.save-close-buttons {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  grid-column: 1 / -1;
  /* ocupa toda a linha da grid */
  margin-top: 1.2rem;
}

.save-close-buttons .btn {
  flex: 1;
  /* cada botão ocupa 50% do espaço disponível */
}

.btn {
  padding: 1rem 2.5rem;
  border: none;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.btn.back {
  background-color: white;
  border: 2px solid #003c71;
  color: #003c71;
}

.btn.continue,
.btn.submit {
  background-color: #004c97;
  color: white;
}

.btn.back:hover {
  background-color: #f0f0f0;
}

.btn.continue:hover,
.btn.submit:hover {
  background-color: #003360;
}

.sub-label {
  font-size: 0.9rem;
  font-weight: 600;
  margin-top: 1rem;
}

.telefone-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.telefone-inputs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.8rem;
}

#telefonesContainer .telefone-inputs:not(:last-child) {
  margin-bottom: 0.75rem;
}

.select-codigo-pais {
  padding: 0.6rem 0.8rem;
  /* ajuste do padding */
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 1rem;
  background-color: #f2f5f9;
  font-family: 'Segoe UI', sans-serif;
  /* 🔧 fonte limpa */
  line-height: 1.3;
  /* 🔧 evita corte vertical */
  height: auto;
  /* permite altura natural */
  min-width: 100px;
}

.telefone-inputs input[type="text"] {
  flex: 0 1 100px;
  /* ✅ menor largura e ainda responsivo */
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
  border: 1px solid #ccc;
  background: #f2f5f9;
  font-size: 1rem;
  max-width: 1156px;
}

.telefone-inputs label {
  display: flex;
  align-items: center;
  gap: 6px;
}

.remove-btn {
  background-color: #e74c3c;
  border: none;
  color: white;
  font-size: 1rem;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.remove-btn:hover {
  background-color: #c0392b;
}

.address-grid {
  display: grid;
  gap: 1rem;
  width: 100%;
  max-width: none;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.add-btn {
  margin-top: 1rem;
  padding: 0.75rem;
  border: 1px solid #00aaff;
  background-color: white;
  color: #00aaff;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s;
}

.add-btn:hover {
  background-color: #e6f9ff;
}

.save-btn {
  padding: 0.75rem;
  border: 1px solid #15a315;
  background-color: white;
  color: #15a315;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s;
}

.save-btn:hover {
  background-color: #53af15;
  color: white;
}

.cancel-btn {
  padding: 0.75rem;
  border: 1px solid #c20f0f;
  background-color: white;
  color: #c20f0f;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s;
}

.cancel-btn:hover {
  background-color: #960606;
  color: white;
}

.confirmation-box {
  background-color: #f9f9f9;
  padding: 1.5rem;
  border: 1px solid #ccc;
  border-radius: 10px;
  font-family: monospace;
  font-size: 0.9rem;
  white-space: pre-wrap;
  overflow-x: auto;
  line-height: 1.4;
  max-height: 400px;
  overflow-y: auto;
}

.large-checkbox input[type="checkbox"] {
  width: 20px;
  height: 20px;
  accent-color: #004c97;
  margin-right: 10px;
}

.large-checkbox label {
  font-size: 1.1rem;
  font-weight: 500;
  color: #003360;
}

.colored {
  background-color: #eaf3fc;
  padding: 0.7rem;
  border-radius: 6px;
}

.autocomplete-container {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.autocomplete-results {
  position: absolute;
  background-color: white;
  border: 1px solid #ccc;
  border-radius: 6px;
  z-index: 10;
  max-height: 200px;
  overflow-y: auto;
  width: 100%;
  margin-top: -0.5rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.autocomplete-item {
  padding: 0.75rem;
  cursor: pointer;
  transition: background-color 0.2s;
}

.autocomplete-item:hover {
  background-color: #f0f0f0;
}

.search-input.distinct-input {
  border: 2px solid #007bff;
  background-color: #f0f8ff;
  font-weight: 500;
  transition: 0.2s;
}

.search-input.distinct-input:focus {
  background-color: #e6f0ff;
  border-color: #0056b3;
  outline: none;
  box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.2);
}

.checkbox-container {
  display: flex;
  align-items: center;
  justify-content: center !important;
  gap: 10px;
  border: 2px solid #0077cc;
  padding: 12px 18px;
  border-radius: 8px;
  background-color: #f9f9f9;
  font-weight: 600;
  font-size: 1rem;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  font-size: 1.1rem;
}

input[type="checkbox"] {
  width: 22px;
  height: 22px;
  accent-color: #0077cc;
}

.btn-ativo {
  padding: 1rem 2.5rem;
  border: 2px solid #28a745;
  border-radius: 10px;
  background-color: #dff0d8;
  color: #155724;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-ativo:hover {
  background-color: #c3e6cb;
  color: #0b2e13;
}

.hidden-section {
  display: none;
}

.visible-section {
  display: block;
}

.address-blocks {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  margin-top: 1rem;
}

.address-section {
  flex: 1;
  min-width: 300px;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.address-title {
  font-weight: bold;
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  color: #003360;
}

.inline-checkbox {
  display: flex;
  align-items: center;
  margin-top: 1rem;
  gap: 0.5rem;
}

.format-button {
  margin-top: 0.5rem;
  margin-bottom: 1rem;
  align-self: flex-start;
}

.checkbox-endereco-mesmo {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 1rem;
  padding: 8px 12px;
  border: 2px solid #007bff;
  background-color: #f0f8ff;
  border-radius: 6px;
  font-weight: 500;
  font-size: 0.95rem;
  color: #003c71;
  cursor: pointer;
  transition: all 0.2s ease;
}

.checkbox-endereco-mesmo:hover {
  background-color: #e6f0ff;
  border-color: #0056b3;
}

.checkbox-endereco-mesmo input[type="checkbox"] {
  transform: scale(1.2);
  accent-color: #007bff;
}

.endereco-correspondencia-container {
  background-color: #f0f8ff;
  border: 1px solid #007bff;
  border-radius: 8px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1rem;
}

.address-grid {
  display: grid;
  gap: 1rem;
  width: 100%;
  max-width: none;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.checkbox-endereco-wrapper {
  margin-top: 1rem;
  margin-bottom: 2rem;
}

.form-toggle-format {
  margin-bottom: 1rem;
}

.header-bar {
  height: 50px;
  background: #009fdf;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1100;
}

.header-actions {
  position: fixed;
  top: 50px;
  left: 0;
  right: 0;
  z-index: 1050;
  background: #009fdf;
  display: flex;
  justify-content: center;
  gap: 1.2rem;
  padding: 12px 0;
}

.header-actions .header-btn {
  background: #ffffff;
  color: #0078c9;
  border: 2px solid #ffffff;
}

.header-actions .header-btn:hover,
.header-actions .header-btn:focus {
  background: #e5f4ff;
  border-color: #e5f4ff;
}

.header-actions .header-btn:active {
  background: #cce9ff;
  border-color: #cce9ff;
}

/* tabela base para todos os listings */
.listing-table {
  width: 100%;
  border-collapse: collapse;
}

.listing-table th,
.listing-table td {
  padding: 8px 10px;
  font-size: 0.95rem;
  border-bottom: 1px solid #e0e0e0;
}

.listing-table thead th {
  font-weight: 600;
  background: #eaf3fc;
  border-bottom: 2px solid #c9e2ff;
}

.listing-table th.center,
.listing-table td.center {
  text-align: center;
}

.listing-table .no-data {
  text-align: center;
  padding: 22px 0;
  color: #606060;
  font-style: italic;
}

.btn.small-btn {
  padding: 5px 12px;
  font-size: .9rem;
  border-radius: 6px;
}

.btn.small-btn.danger {
  background: #dc3545;
  color: #fff;
}

.btn.small-btn.danger:hover {
  filter: brightness(0.9);
}

.btn.small-btn.info {
  background: #0d6efd;
  color: #fff;
}

.btn.small-btn.info:hover {
  filter: brightness(0.9);
}

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 2000;
}

.modal-box {
  background: #fff;
  border-radius: 8px;
  padding: 24px;
  width: 420px;
  max-width: 92%;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.25);
}

.modal-box h3 {
  margin: 0 0 12px;
  font-weight: 600;
  font-size: 1.2rem;
}

.modal-actions {
  text-align: right;
  margin-top: 18px;
}

td.actions-cell {
  display: flex;
  justify-content: center;
  gap: 10px;
}

.action-group {
  display: inline-flex;
  gap: 6px;
}

.action-group .btn.small-btn {
  padding: 4px 8px;
}

/* dá um espaçamento de 8 px entre QUALQUER botão pequeno que venha depois de outro */
.listing-table .btn.small-btn+.btn.small-btn {
  margin-left: 8px;
}

.action-cell {
  /* última coluna da tabela */
  text-align: center;
  padding: 8px 10px;
  border-bottom: 1px solid #e0e0e0;
}

.action-buttons {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  /* ← espaçamento entre os botões */
}

.welcome-wrapper {
  max-width: 800px;
  margin: 80px auto;
  text-align: center;
  padding: 40px 24px;
  border-radius: 16px;
  background: #f7fbff;
  box-shadow: 0 6px 20px rgba(0, 0, 0, .08);
}

.welcome-title {
  font-size: 2.2rem;
  margin-bottom: 18px;
  color: #004c97;
}

.welcome-text {
  font-size: 1.1rem;
  line-height: 1.5;
  color: #374151;
}

/* grade de 2 colunas auto-ajustável  —  usa onde quiser */
.grid-two {
  display: grid;
  gap: 1rem;
  /* cada coluna mínimo 250 px, expande igual */
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

/* pré-visualização da foto ou do vídeo da webcam */
.preview-img,
.video-preview {
  width: 180px;
  /* tamanho que preferir */
  height: 180px;
  object-fit: cover;
  /* corta/centraliza sem distorcer */
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, .25);
}

/* === ajustes 2024-06 – telefone + checkbox “Exibir no site” =============== */

/* ▶ telefones ------------------------------------------------------------- */
.telefone-inputs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.telefone-inputs select,
.telefone-inputs input[type="text"],
.telefone-inputs label {
  height: 55px;
  /* altura igual para todos os campos  */
}

.telefone-inputs input[type="text"] {
  flex: 0 1 72%;
  padding: 0.5rem 0.75rem;
  background: #f2f5f9;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 1rem;
}

.telefone-inputs label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.95rem;
}

.telefone-group+.add-btn {
  /* botão “Adicionar novo telefone”  */
  margin-top: 0.6rem;
}

/* ▶ checkbox “Exibir dados da empresa no site público” ------------------- */
.checkbox-line {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 0.8rem;
  font-weight: 500;
  font-size: 0.95rem;
}

.checkbox-line input[type="checkbox"] {
  width: 20px;
  height: 20px;
  accent-color: #004c97;
  /* mesma cor dos botões principais   */
}

/* -------------- PATCH 24-Jun – acabamento final ----------------- */

/* faz o checkbox “Exibir dados…” ocupar a linha inteira da grade */
.checkbox-line {
  grid-column: 1 / -1;
  /* começa na 1ª coluna, termina na última  */
}

/* idem para o bloco de telefones (fica alinhado à esquerda sem quebrar) */
.telefone-group {
  grid-column: 1 / -1;
}

/* corrige distorção no <select> e no campo de número dentro da grade   */
.telefone-inputs select {
  flex: 0 0 115px;
  /* largura fixa, não cresce               */
}

/* remove o sublinhado azul (Safari/Chrome) dos botões de ação           */
.btn:focus-visible {
  outline: 2px solid transparent;
}

/* Opcional – deixa o “Adicionar novo telefone” esteticamente igual aos
   botões principais, mas em 100 % da largura para não “pular” na grade  */
.add-btn {
  width: 100%;
  text-align: center;
}

.toggle-password-btn {
  display: inline-block;
  margin-top: 6px;
  padding: 6px 12px;
  font-size: 0.9rem;
  background-color: #e6f0ff;
  color: #004aad;
  border: 1px solid #b0cfff;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.2s ease;
  text-align: center;
}

.toggle-password-btn:hover {
  background-color: #d0e2ff;
}

.toggle-password-btn:active {
  background-color: #b8d3ff;
}

.login-box form {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.form-group,
.toggle-password-btn,
.login-btn {
  width: 100%;
  max-width: 320px;
}

.form-input {
  width: 100%;
  padding: 10px 14px;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  background-color: #f1f5fa;
  box-sizing: border-box;
}