
<!-- :root {
  --cor-1: #aab361;
  --cor-2: #4158a3;
  --cor-3: #838d35;
  --cor-4: #1e306d;
  --cor-texto: #ffffff;
  --cor-sombra: #000000;
  --cor-sombra-texto: #000000;
} -->

:root {
    --cor-1: #000000;
    --cor-2: #333333;
    --cor-3: #333333;
    --cor-4: #000000;
    --cor-texto: #ffffff;
    --cor-sombra: #DAA520;
    --cor-sombra-texto: #000000;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background-image: linear-gradient(to right, var(--cor-1), var(--cor-2));
    padding: 0 20px 0 20px; /* evita colar nas bordas em telas pequenas */
    padding-top: 150px;
}

input[type="date"] {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 15px;
    color: var(--cor-texto);
    padding: 9px;
}

h2 {
    font-size: 15px;
    margin: 10px 0 10px 0;
    color: var(--cor-texto);
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.8);
}

nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-image: linear-gradient(to right, var(--cor-1), var(--cor-2));
    color: white;
    padding: 25px 20px;
    z-index: 10;
    box-shadow: 0px 10px 15px -3px rgba(218, 165, 32, 0.3);
}

.nav-direita {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 50px; /* espaçamento entre WhatsApp e hambúrguer */
}

.nav-front {
    padding: 10px 20px;
}

.logo-container {
    display: flex;
}

.logo-link {
    box-shadow: unset;
    margin: 0;
    padding: 0;
}

.logo-link::before {
    background: unset;
}

.logo {
    display: flex;
    font-size: 1.5rem;
    font-weight: bold;
    max-width: 150px;
}

.hamburger {
    font-size: 1.8rem;
    cursor: pointer;
    z-index: 11;
    color: var(--cor-texto);
}

.menu {
    position: absolute;
    top: 60px;
    right: 20px;
    background-color: rgba(0, 0, 0, 0.4);
    flex-direction: column;
    gap: 10px;
    padding: 10px;
    display: none;
    border-radius: 8px;
    width: 200px;
    list-style: none;
}

.menu a {
    padding: 8px;
}

.menu.active {
    display: flex;
}

.menu-item {
    position: relative;
}

.submenu-toggle {
    all: unset;
    cursor: pointer;
    display: block;
    text-align: left;
    color: var(--cor-texto);
    padding: 8px 16px;
    border-radius: 8px;
    margin-bottom: 10px;
    box-shadow: 0 0 10px rgba(218, 165, 32, 0.4);
    user-select: none;
    -webkit-user-select: none;
    -webkit-tap-highlight-color: transparent; /* remove flash azul no mobile */
}

.submenu-toggle:hover {
    background: linear-gradient(to right, var(--cor-3), var(--cor-4));  
}

.submenu {
    display: none;
    list-style: none;
    padding-left: 20px;
}

.submenu.active {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer {
    width: calc(100% + 40px); /* 20px de cada lado */
    margin-left: -20px;
    margin-right: -20px;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    background-image: linear-gradient(to right, var(--cor-1), var(--cor-2));
    color: white;
    margin-top: auto;
    padding: 10px 20px;
    box-shadow: 0px -10px 15px -3px rgba(218, 165, 32, 0.3);
}

.copyright-container {
    height: 100%;
    opacity: 0.8;
}

.box {
    background-color: rgba(0, 0, 0, 0.4);
    padding: 15px 20px;
    border-radius: 15px;
    color: var(--cor-texto);
    width: 100%;
    margin-bottom: 60px;
    box-shadow: 0 0 10px rgba(218, 165, 32, 0.8);
}

.box-login {
    position: relative;
    top: -60px;
    background-color: rgba(0, 0, 0, 0.4);
    padding: 15px 20px;
    border-radius: 15px;
    color: var(--cor-texto);
    box-shadow: 0 0 10px rgba(218, 165, 32, 0.8);
}

.box-configuracoes {
    display: flex;
    gap: 40px;
    margin-bottom: 60px;
}

.box-config {
    background-color: rgba(0, 0, 0, 0.4);
    padding: 15px 20px;
    border-radius: 15px;
    color: var(--cor-texto);
    width: 100%;
    height: 100%;
    box-shadow: 0 0 10px rgba(218, 165, 32, 0.8);
}

.box-config-meio {
    display: grid;
    gap: 40px;
    height: 100%;
}

fieldset {
    display: grid;
    height: 100%;
    gap: 10px;
    padding: 30px;
    border-radius: 8px;
    border-color: var(--cor-texto);
}

legend {
    font-size: 20px;
    padding: 10px;
    font-weight: 500;
    text-align: center;
    background-color: rgb(0, 0, 0, 0.4);
    border-radius: 10px;
}

.legend-interna {
    font-size: 15px;
    padding: 10px;
    font-weight: 500;
    text-align: center;
    background-color: rgba(0, 0, 0, 0.4);
    border-radius: 10px;
}

a {
    position: relative;
    display: inline-block;
    text-decoration: none;
    color: var(--cor-texto);
    box-shadow: 0 0 10px rgba(218, 165, 32, 0.4);
    border: none;
    padding: 8px 16px;
    border-radius: 8px;
    z-index: 1;
}

a::before {
    content: "";
    position: absolute;
    top: 0px;
    left: 0px;
    right: 0px;
    bottom: 0px;
    border-radius: 8px;
    background: linear-gradient(to right, var(--cor-3), var(--cor-4));
    z-index: -1;
    opacity: 0;
}

a:hover::before {
    opacity: 1;
}

.contato-whatsapp {
    display: flex;
    flex: 1;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    width: 100%;
    min-width: 0;
}

.contato-whatsapp .input-field {
    flex: 1;
    min-width: 0;
}

.whatsapp-header {
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    padding: 15px;
    font-size: 20px;
    font-weight: 500;
    color: var(--cor-texto);
    cursor: pointer;
    height: fit-content;
    box-shadow: none;
}

.whatsapp-header::before {
    background-image: none !important;
}

.whatsapp-emoji {
    font-size: 30px;
}

.whatsapp-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.whatsapp-number {
    font-size: 20px;
    font-weight: 700;
    color: var(--cor-texto);
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.8);
}

.whatsapp-label {
    font-size: 16px;
    font-weight: 700;
    color: var(--cor-texto);
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.8);
    opacity: 0.7;
}

.perfil-info {
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    padding: 15px;
    gap: 30px;
    font-size: 20px;
    font-weight: 500;
    color: var(--cor-texto);
    cursor: pointer;
    height: fit-content;
    box-shadow: none;
}

.perfil-info::before {
    background-image: none !important;
}

.perfil-info-direita {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.usuario-label {
    font-size: 22px;
    font-weight: 700;
    color: var(--cor-texto);
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.8);
}

.creci-label {
    font-size: 14px;
    font-weight: 700;
    color: var(--cor-texto);
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.8);
    opacity: 0.7;
}

.whatsapp-number-perfil {
    font-size: 14px;
    font-weight: 700;
    color: var(--cor-texto);
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.8);
    opacity: 0.7;
}

.grupo-cidade-bairro {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: nowrap;
    width: 100%;
    margin-bottom: 20px;
}

.grupo-cidade-bairro-esquerda {
    display: flex;
    flex: 1; /* Ocupa o máximo possível igualmente */
    gap: 10px;
    min-width: 0; /* Impede overflow */
}

.grupo-cidade-bairro .input-field {
    flex: 1;
    min-width: 0; /* Impede overflow */
}

.grupo-tipo {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: nowrap;
    width: 100%;
    margin-bottom: 20px;
}

.grupo-tipo .input-field {
    flex: 1; /* Ocupa o máximo possível igualmente */
    min-width: 0; /* Impede overflow */
}

.grupo-imovel {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: nowrap;
    width: 100%;
    margin-bottom: 20px;
}

.grupo-imovel-esquerda {
    display: flex;
    flex: 1; /* Ocupa o máximo possível igualmente */
    gap: 10px;
    min-width: 0; /* Impede overflow */
}

.grupo-imovel .input-field {
    flex: 1; /* Ocupa o máximo possível igualmente */
    min-width: 0; /* Impede overflow */
}

.grupo-pagamento {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: nowrap;
    width: 100%;
    margin-bottom: 20px;
}

.grupo-pagamento-esquerda {
    display: flex;
    flex: 1; /* Ocupa o máximo possível igualmente */
    gap: 10px;
    min-width: 0; /* Impede overflow */
}

.grupo-pagamento .input-field {
    flex: 1; /* Ocupa o máximo possível igualmente */
    min-width: 0; /* Impede overflow */
}

.grupo-contrato {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: nowrap;
    width: 100%;
    margin-bottom: 20px;
}

.grupo-contrato-esquerda {
    display: flex;
    flex: 1; /* Ocupa o máximo possível igualmente */
    gap: 10px;
    min-width: 0; /* Impede overflow */
}

.grupo-contrato .input-field {
    flex: 1; /* Ocupa o máximo possível igualmente */
    min-width: 0; /* Impede overflow */
}

.botao-remover-container {
    display: flex;
    align-items: flex-end;
}

.botao-remover {
    padding: 4px 8px;
    font-size: 18px;
    background: transparent;
    border: none;
    cursor: pointer;
    color: red;
}

.input-box.grid-5 {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
    padding: 0px;
    margin: 5px 0;
}

.input-box.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    padding: 0px;
    margin: 5px 0;
}

.input-box.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    padding: 0px;
    margin: 5px 0;
}

.input-box.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    padding: 0px;
    margin: 5px 0;
}

.input-box {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 0px;
}

.input-field {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    background-color: rgb(0, 0, 0, 0.4);
    border-radius: 8px;
    box-shadow: 0px 10px 15px -3px rgba(0, 0, 0, 0.1);
    justify-content: end;
    padding: 5px;
}

.input-field > div {
    display: flex;
    gap: 10px;
    width: 100%; /* garante que os dois inputs usem toda a largura */
}

.input-field.observacao {
    margin: 10px 0;
}

.checkbox.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    background-color: rgb(0, 0, 0, 0.4);
    border-radius: 8px;
    box-shadow: 0px 10px 15px -3px rgba(0, 0, 0, 0.1);
    gap: 10px;
    padding: 8px;
}

.checkbox.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    background-color: rgb(0, 0, 0, 0.4);
    border-radius: 8px;
    box-shadow: 0px 10px 15px -3px rgba(0, 0, 0, 0.1);
    gap: 10px;
    padding: 8px;
}

.checkbox.grid-5 {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    background-color: rgb(0, 0, 0, 0.4);
    border-radius: 8px;
    box-shadow: 0px 10px 15px -3px rgba(0, 0, 0, 0.1);
    gap: 10px;
    padding: 8px;
}

.checkbox.grid-6 {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    background-color: rgb(0, 0, 0, 0.4);
    border-radius: 8px;
    box-shadow: 0px 10px 15px -3px rgba(0, 0, 0, 0.1);
    gap: 10px;
    padding: 8px;
}

.input-checkbox{
    display: flex;
    flex-direction: column;
    align-items: center;
    /* background-color: rgb(0, 0, 0, 0.4); */
    border-radius: 8px;
    box-shadow: 0px 10px 15px -3px rgba(0, 0, 0, 0.1);
    justify-content: end;
    padding: 5px;
}

input:disabled {
    color: rgba(255, 255, 255, 0.5);
    cursor: not-allowed;
}

input[type="color"] {
    width: 100%;
    height: 40px;
    border: none;
    cursor: pointer;
}

.color-wrapper {
    position: relative;
    width: 100%;
    height: 40px;
}

.color-preview {
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 8px;
    cursor: pointer;
}

.color-hidden {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.control-checkbox{
    cursor: pointer;
}

.form-label {
    padding-left: 5px;
    padding-top: 5px;
    font-size: 15px;
    font-weight: 500;
    min-height: 20px;
    margin-bottom: 4px;
    text-align: center;
    color: var(--cor-texto);
}

.form-control {
    padding: 10px;
    font-size: 15px;
    width: 100%;
    border: none;
    border-radius: 8px;
    outline: none;
    background-color: rgba(0, 0, 0, 0.2);
    color: var(--cor-texto);
    text-align: left;
}

.form-control::placeholder {
    color: rgb(255, 255, 255, 0.8);
    opacity: 0.6;
}

textarea.form-control {
    resize: vertical;
    line-height: 1.5;
    font-family: inherit;
    color: var(--cor-texto);
}

textarea.form-control::placeholder {
    color: rgba(255, 255, 255, 0.8);
    opacity: 0.6;
}

.form-control-center {
    padding: 10px;
    font-size: 15px;
    width: 100%;
    border: none;
    border-radius: 8px;
    outline: none;
    background-color: rgb(0, 0, 0, 0.2);
    color: var(--cor-texto);
    text-align: center;
}

.form-control-center::placeholder {
    color: rgb(255, 255, 255, 0.8);
    opacity: 0.6;
}

.form-control-number {
    flex: 1;
    padding: 10px;
    font-size: 15px;
    width: 100%;
    border: none;
    border-radius: 8px;
    outline: none;
    background-color: rgb(0, 0, 0, 0.2);
    color: var(--cor-texto);
    text-align: right;
}

.form-control-number::placeholder {
    color: rgb(255, 255, 255, 0.8);
    opacity: 0.6;
}

#numero {
    text-align: center;
}

#numero_vendedor {
    text-align: center;
}

#contato {
    text-align: center;
}

.btn-default {
    width: 100%;
    margin: 5px 0;
}

#preview-box-pagamento {
    display: flex;
    justify-content: center;
    align-items: center;
}

.preview-container-pagamento {
    position: relative;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    width: 100%;
}

.preview-pagamento {
    position: relative;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    width: 100%;
}

#preview-box-contrato {
    display: flex;
    justify-content: center;
    align-items: center;
}

.preview-container-contrato {
    position: relative;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    width: 100%;
}

.preview-contrato {
    position: relative;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    width: 100%;
}

#preview-box-termo {
    display: flex;
    justify-content: center;
    align-items: center;
}

.preview-container-termo {
    position: relative;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    width: 100%;
}

.preview-termo {
    position: relative;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    width: 100%;
}

.btn-pdf {
    background-image: linear-gradient(to right, var(--cor-1), var(--cor-2));
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    padding: 10px;
    border-radius: 10px;
    color: var(--cor-texto);
    cursor: pointer;
    gap: 8px;
    height: 50px;
    width: 100%;
    box-shadow: 0 0 10px rgba(218, 165, 32, 0.4);
    transition: background-color 0.3s ease;
}

.btn-pdf:hover {
    background-image: linear-gradient(to right, var(--cor-3), var(--cor-4));
}

.submit {
    background-image: linear-gradient(to right, var(--cor-1), var(--cor-2));
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    padding: 15px;
    border-radius: 10px;
    font-size: 20px;
    font-weight: 500;
    color: var(--cor-texto);
    cursor: pointer;
    gap: 8px;
    height: fit-content;
    width: 100%;
    box-shadow: 0 0 10px rgba(218, 165, 32, 0.4);
    transition: background-color 0.3s ease;
}

.submit:hover {
    background-image: linear-gradient(to right, var(--cor-3), var(--cor-4));
}

.input-link {
    font-size: 12px;
    padding: 3px;
}

.tabela-container {
    display: flex;
    justify-content: center;
    width: 100%;
    overflow-x: hidden;
    /* box-shadow: 0 0 10px rgba(218, 165, 32, 0.8); */
    border-radius: 20px;
    margin-bottom: 60px;
}

.table-wrapper {
    width: fit-content;
    padding: 0 10px;
}

.table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 20px;
    background-color: transparent;
    color: var(--cor-texto);
    font-size: 14px;
    /* box-shadow: 0 0 10px rgba(218, 165, 32, 0.8); */
    border-radius: 20px;
}

.table th, .table td {
    border-top: 1px solid #0000003a;
    border-bottom: 1px solid #0000003a;
    border-left: 1px solid #0000001a;
    border-right: 1px solid #0000001a;
    padding: 10px;
    text-align: center; /* centraliza horizontalmente */
    vertical-align: middle; /* centraliza verticalmente */
}

.table td.valor {
    white-space: nowrap;       /* Impede quebra de linha */
    width: 1%;                 /* Permite encolher ao tamanho do conteúdo */
    text-align: right;         /* Opcional: alinha valores à direita */
}

.imagem-imovel {
    width: 250px;
    height: auto;
    border-radius: 10px;
}

.btn-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.btn-ver {
    text-decoration: none;
    display: inline-block;
    color: var(--cor-texto);
    border: none;
    border-radius: 8px;
    padding: 10px;
    box-shadow: 0 0 10px rgba(218, 165, 32, 0.4);
}

.table thead tr {
    position: sticky;
    z-index: 1;
    background-color: #0000006a; /* precisa de fundo fixo */
}

.table thead tr th { 
    position: sticky;
    z-index: 1;
    background-color: #0000006a; /* precisa de fundo fixo */
    border-radius: 10px;
    font-weight: bold;
    box-shadow: 0 0 10px rgba(218, 165, 32, 0.8);
}

.table tbody tr {
    background-color: #0000002a; /* cor de fundo de cada linha */
    border-radius: 10px;
    overflow: hidden; /* para o arredondamento funcionar */
    box-shadow: 0 0 10px rgba(218, 165, 32, 0.4);
}

.table tbody tr td:first-child {
    border-top-left-radius: 10px;
    border-bottom-left-radius: 10px;
}

.table tbody tr td:last-child {
    border-top-right-radius: 10px;
    border-bottom-right-radius: 10px;
}

.table tbody tr:nth-child(even) {
    background-color: #00000015; /* listrado suave */
}

.table tbody tr:hover {
    background-color: #e0e0e0; /* destaque ao passar o mouse */
    color: var(--cor-3);
}

.table tbody tr:hover .btn-ver {
    color: var(--cor-3);
}

.table tbody tr:hover .btn-ver:hover {
    background-color: var(--cor-3);
    color: var(--cor-texto);
    box-shadow: 0 0 10px rgba(218, 165, 32, 0.8);
    border: none;
}

#drop-area-perfil {
    border: 2px dashed #ccc;
    border-radius: 10px;
    padding: 30px;
    display: flex;
    text-align: center;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
    cursor: pointer;
    height: 150px;
    margin: 5px 0;
    width: 100%;
}

#drop-area-perfil.highlight {
    background-color: rgb(0, 0, 0, 0.2);;
}

#drop-area, #drop-area-logo {
    border: 2px dashed #ccc;
    border-radius: 10px;
    padding: 30px;
    display: flex;
    text-align: center;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
    cursor: pointer;
    height: 150px;
    margin: 5px 0;
    width: 100%;
}

#drop-area.highlight, #drop-area-logo.highlight {
    background-color: rgb(0, 0, 0, 0.2);;
}

#drop-area-favicon {
    border: 2px dashed #ccc;
    border-radius: 10px;
    padding: 30px;
    display: flex;
    text-align: center;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
    cursor: pointer;
    height: 150px;
    margin: 5px 0;
    width: 100%;
}

#drop-area-favicon.highlight {
    background-color: rgb(0, 0, 0, 0.2);;
}

#drop-area-notificacao {
    border: 2px dashed #ccc;
    border-radius: 10px;
    padding: 30px;
    display: flex;
    text-align: center;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
    cursor: pointer;
    height: 150px;
    margin: 5px 0;
    width: 100%;
}

#drop-area-notificacao.highlight {
    background-color: rgb(0, 0, 0, 0.2);;
}

.drop-area-pagamento {
    border: 2px dashed #ccc;
    border-radius: 10px;
    padding: auto;
    display: flex;
    font-size: 12px;
    text-align: center;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
    cursor: pointer;
    margin: 5px 0;
    width: 100%;
    height: 100%;
}

.drop-area-pagamento.highlight {
    background-color: rgb(0, 0, 0, 0.2);;
}

.drop-area-contrato {
    border: 2px dashed #ccc;
    border-radius: 10px;
    padding: auto;
    display: flex;
    font-size: 12px;
    text-align: center;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
    cursor: pointer;
    margin: 5px 0;
    width: 100%;
    height: 100%;
}

.drop-area-contrato.highlight {
    background-color: rgb(0, 0, 0, 0.2);;
}

.drop-area-termo {
    border: 2px dashed #ccc;
    border-radius: 10px;
    padding: auto;
    display: flex;
    font-size: 12px;
    text-align: center;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
    cursor: pointer;
    margin: 5px 0;
    width: 100%;
    height: 100%;
}

.drop-area-termo.highlight {
    background-color: rgb(0, 0, 0, 0.2);;
}

#preview-perfil .preview-container {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
}

#preview-logo .preview-container {
    margin: 0;
}

#preview-favicon .preview-container {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
}

.preview-wrapper {
    position: relative;
    width: 250px;
    height: auto;
    margin: 10px auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

#preview-box {
    display: flex;
    justify-content: center;
    margin: 5px 0;
}

#preview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, auto));
    gap: 10px;
    padding: 0px;
    width: fit-content;
    max-width: 100%;
    box-sizing: border-box;
}

.preview-container {
    position: relative;
    display: inline-flex;
    justify-content: center;
    margin: 10px;
}

.preview-container img {
    max-width: 300px;
    border-radius: 8px;
}

.remove-btn {
    position: absolute;
    top: -8px;
    right: -8px;
    background: white;
    color: red;
    border: none;
    border-radius: 50%;
    font-weight: bold;
    cursor: pointer;
    padding: 2px 6px;
}

#preview-box-front {
    display: flex;
}

#preview-perfil-front {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
}

.clientes-interesse {
    margin-top: 20px;
}

.preview-clientes {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, auto));
    gap: 40px;
    padding: 0px;
    width: fit-content;
    max-width: 100%;
    margin: 0 auto; /* centraliza o grid */
    box-sizing: border-box;
}

.imoveis-interesse {
    margin-top: 20px;
}

.preview-imoveis {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 350px));
    gap: 40px;
    padding: 0px;
    width: fit-content;
    max-width: 100%;
    margin: 0 auto; /* centraliza o grid */
    box-sizing: border-box;
}

.card {
    background-image: linear-gradient(to right, var(--cor-1), var(--cor-2));
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 0 10px rgba(218, 165, 32, 0.8);
    transition: transform 0.2s;
}

.card:hover {
    transform: scale(1.02);
}

.card-imovel {
    aspect-ratio: 4/3;
    position: relative;
    width: 100%;
    overflow: hidden;
}

.card-imovel img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.titulo-imovel {
    padding: 16px;
    justify-content: center;
    text-align: center;
    font-size: 20px;
    line-height: 2;
    color: var(--cor-texto);
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.8);
    word-break: break-word; /* garante que título longo não quebre layout */
}

.card-content-imovel {
    padding: 16px;
    justify-content: center;
    text-align: center;
    font-size: 16px;
    line-height: 2;
    color: var(--cor-texto);
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.8);
}

.card-content-imovel a {
    background-image: linear-gradient(to right, var(--cor-1), var(--cor-2));
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    padding: 15px;
    margin: 20px 0 0 0;
    border-radius: 10px;
    font-size: 20px;
    font-weight: 500;
    color: var(--cor-texto);
    cursor: pointer;
    gap: 8px;
    height: fit-content;
    width: 100%;
    box-shadow: 0 0 10px rgba(218, 165, 32, 0.8);
    transition: background-color 0.3s ease;
    text-decoration: none;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.8);
}

.card-content-imovel a:hover {
    background-image: linear-gradient(to right, var(--cor-3), var(--cor-4));
}

.btn-filtros {
    display: flex;
    align-items: center;
    justify-content: space-between; /* garante alinhamento horizontal mesmo com 1 botão */
    width: 100%;
    margin-bottom: 20px;
}

.btn-filtros .submit {
    background-image: unset;
    background-color: transparent !important;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(218, 165, 32, 0.4);
    width: 150px;
}

.btn-filtros .submit:hover {
    background-image: linear-gradient(to right, var(--cor-3), var(--cor-4));
}

.btn-limpar {
    display: flex;
    align-items: center;
    justify-content: space-between; /* garante alinhamento horizontal mesmo com 1 botão */
    width: 100%;
    margin: 10px 0 10px 0;
}

.btn-limpar .submit {
    background-image: unset;
    background-color: transparent !important;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(218, 165, 32, 0.4);
    width: 150px;
}

.btn-limpar .submit:hover {
    background-image: linear-gradient(to right, var(--cor-3), var(--cor-4));
}

#filtrar {
    display: none; /* padrão no desktop */
}

#limpar {
    margin-left: auto;
}

.filtros {
    gap: 10px;
    padding: 0px;
    margin: 5px 0;
    color: var(--cor-texto);
    width: 100%;
}

.filtros .input-box.grid-5 {
    margin: 0 0 20px 0;
}

.filtros .input-box.grid-4 {
    margin: 0 0 20px 0;
}

.filtros .input-box.grid-3 {
    margin: 0 0 20px 0;
}

.filtros .input-box.grid-2 {
    margin: 0 0 20px 0;
}

.filtros .input-field-box {
    background-color: #0000006a;
    border-radius: 10px;
}

.filtros .input-field{
    background-color: #0000006a; /* precisa de fundo fixo */
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(218, 165, 32, 0.8);
}

#loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5); /* sombra */
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.loading-box {
  background: rgba(0, 0, 0, 0.8);
  padding: 30px;
  border-radius: 8px;
  text-align: center;
  font-family: Arial, sans-serif;
  box-shadow: 0 0 10px rgba(218, 165, 32, 0.8);
}

.loading-box p {
  margin-top: 15px;
  font-size: 16px;
}

.spinner {
  width: 40px;
  height: 40px;
  border: 5px solid #ccc;
  border-top: 5px solid #4285f4;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: auto;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

input[type="date"]::-webkit-calendar-picker-indicator {
  filter: invert(1); /* deixa o ícone claro */
}

@media screen and (max-width: 768px) {
    .box {
        width: 100%;
        min-height: 100vh;
        justify-content: center;
        align-items: center;
    }
    
    h2 {
        margin: 10px 0 20px 0;
    }

    .nav-direita {
        gap: unset; /* espaçamento entre WhatsApp e hambúrguer */
    }

    .logo {
        font-size: 1rem;
        max-width: 120px;
    }

    .whatsapp-emoji {
        font-size: 20px;
    }

    .whatsapp-number {
        font-size: 15px;
    }

    .whatsapp-label {
        font-size: 12px;
    }

    .grupo-tipo {
        flex-direction: column;
        margin-bottom: 40px;
    }

    .grupo-cidade-bairro {
        flex-direction: column;
        margin-bottom: 40px;
    }

    .grupo-cidade-bairro-esquerda {
        display: flex;
        flex-direction: column;
        gap: 10px;
        min-width: 0; /* Impede overflow */
    }

    .grupo-cidade-bairro .input-field {
        flex: 1;
        min-width: 0; /* Impede overflow */
    }

    .grupo-imovel {
        flex-direction: column;
        margin-bottom: 40px;
    }

    .grupo-imovel-esquerda {
        display: flex;
        flex-direction: column;
        gap: 10px;
        min-width: 0; /* Impede overflow */
    }

    .grupo-imovel .input-field {
        flex: 1;
        min-width: 0; /* Impede overflow */
    }

    .grupo-pagamento {
        flex-direction: column;
        margin-bottom: 40px;
    }

    .grupo-pagamento-esquerda {
        display: flex;
        flex-direction: column;
        gap: 10px;
        min-width: 0; /* Impede overflow */
    }

    .grupo-pagamento .input-field {
        flex: 1;
        min-width: 0; /* Impede overflow */
    }

    .grupo-contrato {
        flex-direction: column;
        margin-bottom: 40px;
    }

    .grupo-contrato-esquerda {
        display: flex;
        flex-direction: column;
        min-width: 0; /* Impede overflow */
    }

    .grupo-contrato .input-field {
        flex: 1;
        min-width: 0; /* Impede overflow */
    }

    .drop-area-pagamento {
        height: 50px;
        font-size: 12px;
    }

    .drop-area-contrato {
        height: 50px;
        font-size: 12px;
    }

    .drop-area-termo {
        height: 50px;
        font-size: 12px;
    }

    .btn-pdf {
        height: 50px;
    }

    .footer {
        flex-direction: column-reverse;
        align-items: center;
        text-align: center;
        gap: 20px;
    }

    .footer-direita {
        justify-content: center;
    }

    .copyright-container {
        opacity: 0.8;
    }

    .box-configuracoes {
        display: grid;
    }
    
    fieldset {
        display: flex;
        flex-direction: column;
        justify-content: center;
        /* align-items: center; */
    }

    .input-box.grid-5 {
        grid-template-columns: repeat(1, 1fr); /* 1 coluna no tablet/celular */
    }
    
    .input-box.grid-4 {
        grid-template-columns: repeat(1, 1fr);
    }

    .input-box.grid-3 {
        grid-template-columns: repeat(1, 1fr);
    }

    .input-box.grid-2 {
        grid-template-columns: repeat(1, 1fr);
    }

    .checkbox.grid-2 {
        grid-template-columns: repeat(1, 1fr);
    }

    .checkbox.grid-4 {
        grid-template-columns: repeat(1, 1fr);
    }

    .checkbox.grid-5 {
        grid-template-columns: repeat(1, 1fr);
    }

    .checkbox.grid-6 {
        grid-template-columns: repeat(1, 1fr);
    }

    #preview {
        grid-template-columns: repeat(1, minmax(0, 1fr));
        width: 100%;
        padding: 0px;
        gap: 20px;
    }

    .preview-container {
        margin: 0px;
        padding: 0px;
    }

    .preview-container img {
        width: 100%;
        max-width: unset;
    }

    .tabela-container {
        max-height: unset;
    }

    .table-wrapper {
        width: 100%;
        padding: 5px;
    }

    .table, .table tbody, .table th, .table td, .table tr {
        display: block;
    }

    .table thead {
        display: none;
    }

    .table thead tr:nth-child(2) {
        display: none;
    }

    .table thead tr th:first-child {
        display: none;
    }

    .table thead tr th:last-child {
        display: none;
    }

    .table tr {
        margin-bottom: 30px;
        border-radius: 10px;
        padding: 10px;
        background-color: #0000002a;
        overflow: hidden;
    }

    .table td {
        display: flex;
        justify-content: space-between;
        border-radius: 10px;
        padding: 10px;
        border-top: 1px solid #0000003a;
        border-bottom: 1px solid #0000003a;
        border-left: 1px solid #0000001a;
        border-right: 1px solid #0000001a;
    }

    .table td::before {
        content: attr(data-label);
        font-weight: bold;
        color: #333;
    }

    .table td.valor {
        width: unset; /* Permite encolher ao tamanho do conteúdo */
    }

    .btn-filtros {
        display: flex;
        flex-direction: column;
        margin-bottom: 20px;
        gap: 20px;
        width: 100%;
    }

    .btn-filtros .submit {
        width: 100%;
    }

    .btn-limpar {
        display: flex;
        flex-direction: column;
        margin: 10px 0 10px 0;
        gap: 20px;
        width: 100%;
    }

    .btn-limpar .submit {
        width: 100%;
    }

    #filtrar {
        display: table-row;
    }

    #limpar {
        margin-left: unset;
    }

    .filtros {
        display: none !important;
    }

    .filtros.ativo {
        display: grid !important;
        grid-template-columns: repeat(1, 1fr);
        width: 100%;
        margin-bottom: 20px;
    }

    .btn-container {
        width: 100%;
    }

    .btn-container .btn-ver {
        width: 100%;
        height: 50px;
        display: flex;
        align-items: center;      /* centraliza verticalmente */
        justify-content: center;  /* centraliza horizontalmente */
        box-sizing: border-box;
        text-align: center;
    }

    .celula-imagem {
        justify-content: center !important;
    }

    .imagem-imovel {
        width: 100%;
        height: auto;
    }

    .preview-clientes {
        grid-template-columns: repeat(1, minmax(0, 1fr));
    }

    .preview-imoveis {
        grid-template-columns: repeat(1, minmax(0, 1fr));
    }

    .card-imovel {
        height: auto;
    }

    .form-control-number {
        text-align: center;
    }
}
