/* Kenlo Integração (UI) — mesmo visual do VistaSoft (UI), com prefixo próprio. */
.kenlo-ui-btn.is-loading {
  opacity: 0.7;
  pointer-events: none;
}

.kenlo-ui-toast.ok {
  color: #166534;
}

.kenlo-ui-toast.err {
  color: #991b1b;
}

.kenlo-ui-toast.warn {
  color: #92400e;
}

.kenlo-ui-toast.info {
  color: #1d4ed8;
}

.kenlo-ui-wrap{
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial;
  max-width: 1100px;
  color: rgba(255,255,255,0.92);
}

.kenlo-ui-header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-bottom:16px;
}

.kenlo-ui-header h2{
  margin:0;
  font-size:20px;
}

.kenlo-ui-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding:10px 14px;
  border-radius:10px;
  border:1px solid rgba(0,0,0,.12);
  text-decoration:none;
  cursor:pointer;
  background:transparent;
  color:inherit;
}

.kenlo-ui-btn[disabled]{
  opacity:.6;
  cursor:not-allowed;
}

.kenlo-ui-btn.primary{
  background:#D7A453;
  color:#111;
  border-color:#D7A453;
}

.kenlo-ui-btn.secondary{
  background: rgba(255,255,255,0.08);
  color: #fff;
  border-color: rgba(255,255,255,0.15);
}

.kenlo-ui-btn.secondary:hover{
  background: rgba(255,255,255,0.14);
}

.kenlo-ui-grid{
  display:grid;
  grid-template-columns:repeat(3, minmax(0, 1fr));
  gap:14px;
}

@media (max-width: 980px){
  .kenlo-ui-grid{grid-template-columns:repeat(2, minmax(0, 1fr));}
}

@media (max-width: 640px){
  .kenlo-ui-grid{grid-template-columns:1fr;}
}

.kenlo-ui-card{
  border:1px solid rgba(255,255,255,.12);
  border-radius:16px;
  padding:16px;
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(6px);
}

.kenlo-ui-card-title{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  margin-bottom:10px;
  font-size:15px;
  color:#ffffff;
  font-weight:600;
}

.kenlo-ui-card-title strong{
  font-size:15px;
}

.kenlo-ui-pill{
  font-size:12px;
  padding:4px 10px;
  border-radius:999px;
  border:1px solid rgba(0,0,0,.12);
}

.kenlo-ui-pill.ok{
  border-color:rgba(0,128,0,.35);
}

.kenlo-ui-pill.warn{
  border-color:rgba(255,165,0,.5);
}

.kenlo-ui-pill.err{
  border-color:rgba(255,0,0,.35);
}

.kenlo-ui-meta{
  font-size:13px;
  color: rgba(255,255,255,0.75);
  line-height:1.35;
  margin:8px 0 12px;
}

.kenlo-ui-actions{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
}

.kenlo-ui-actions .kenlo-ui-btn{
  padding:8px 10px;
  border-radius:12px;
  font-size:13px;
}

.kenlo-ui-empty{
  border:1px dashed rgba(0,0,0,.2);
  border-radius:16px;
  padding:18px;
  text-align:center;
}

.kenlo-ui-toast{
  margin-top:10px;
  font-size:13px;
}

.kenlo-ui-toast.ok{
  color:#0a7a0a;
}

.kenlo-ui-toast.err{
  color:#b30000;
}

/* Filtro de exportação */
.kenlo-filtro-btn.active{
  background:#D7A453 !important;
  color:#111 !important;
  border-color:#D7A453 !important;
  pointer-events:none;
}

.kenlo-imoveis-lista{
  display:grid;
  grid-template-columns:repeat(3, minmax(0, 1fr));
  gap:14px;
}

@media (max-width: 980px){
  .kenlo-imoveis-lista{grid-template-columns:repeat(2, minmax(0, 1fr));}
}

@media (max-width: 640px){
  .kenlo-imoveis-lista{grid-template-columns:1fr;}
}

.kenlo-imovel-card{
  border:1px solid rgba(255,255,255,.12);
  border-radius:16px;
  overflow:hidden;
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(6px);
}

.kenlo-imovel-thumb,
.kenlo-imovel-thumb-placeholder{
  display:block;
  width:100%;
  aspect-ratio:16/10;
}

.kenlo-imovel-thumb{
  object-fit:cover;
  background: rgba(255,255,255,.08);
}

.kenlo-imovel-thumb-placeholder{
  background: linear-gradient(135deg, rgba(255,255,255,.1), rgba(255,255,255,.03));
}

.kenlo-imovel-body{
  padding:14px;
}

.kenlo-imovel-tipo{
  font-size:12px;
  opacity:.82;
  margin-bottom:4px;
}

.kenlo-imovel-title{
  margin:0 0 10px;
  font-size:16px;
  line-height:1.35;
  color:#fff;
}

.kenlo-imovel-meta{
  display:grid;
  grid-template-columns:1fr;
  gap:6px;
  margin-bottom:12px;
  font-size:13px;
}

.kenlo-imovel-meta b{
  color:#fff;
}

.kenlo-ui-pagination{
  margin-top:16px;
  display:flex;
  flex-wrap:wrap;
  gap:8px;
}

.kenlo-ui-pagination .page-numbers{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:36px;
  height:36px;
  padding:0 10px;
  border-radius:10px;
  border:1px solid rgba(255,255,255,.2);
  text-decoration:none;
  color:#fff;
  background: rgba(255,255,255,0.04);
}

.kenlo-ui-pagination .page-numbers.current{
  background:#D7A453;
  color:#111;
  border-color:#D7A453;
  font-weight:600;
}

.kenlo-imoveis-table-wrap{
  width:100%;
  overflow-x:auto;
}

.kenlo-imoveis-table{
  width:100%;
  min-width:980px;
  border-collapse:separate;
  border-spacing:0;
  border:1px solid rgba(255,255,255,.12);
  border-radius:14px;
  overflow:hidden;
  background: rgba(255,255,255,0.06);
}

.kenlo-imoveis-table th,
.kenlo-imoveis-table td{
  padding:12px;
  border-bottom:1px solid rgba(255,255,255,.08);
  text-align:left;
  vertical-align:middle;
  font-size:13px;
  color:rgba(255,255,255,.92);
  white-space:nowrap;
}

.kenlo-imoveis-table thead th{
  font-size:12px;
  text-transform:uppercase;
  letter-spacing:.04em;
  background: rgba(255,255,255,.08);
  color:#fff;
}

.kenlo-imoveis-table tbody tr:hover{
  background: rgba(255,255,255,.05);
}

.kenlo-imoveis-table tbody tr:last-child td{
  border-bottom:none;
}

.kenlo-imoveis-thumb-cell{
  width:132px;
}

.kenlo-imoveis-thumb-img,
.kenlo-imoveis-thumb-placeholder{
  width:120px;
  height:74px;
  border-radius:10px;
  display:block;
}

.kenlo-imoveis-thumb-img{
  object-fit:cover;
  background: rgba(255,255,255,.08);
}

.kenlo-imoveis-thumb-placeholder{
  background: linear-gradient(135deg, rgba(255,255,255,.1), rgba(255,255,255,.03));
}

.kenlo-ui-modal-backdrop{
  position:fixed;
  inset:0;
  background:rgba(0,0,0,.45);
  display:none;
  align-items:center;
  justify-content:center;
  padding:16px;
  z-index:99999;
}

.kenlo-ui-modal-backdrop.is-open{
  display:flex;
}

.kenlo-ui-modal{
  width:min(560px, 100%);
  background:#fff;
  color:#111;
  border-radius:16px;
  border:1px solid rgba(0,0,0,.12);
  box-shadow:0 10px 40px rgba(0,0,0,.25);
  overflow:hidden;
}

.kenlo-ui-modal header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:14px 14px;
  border-bottom:1px solid rgba(0,0,0,.08);
}

.kenlo-ui-modal header strong{
  font-size:15px;
}

.kenlo-ui-modal .body{
  padding:14px;
}

.kenlo-ui-field{
  display:flex;
  flex-direction:column;
  gap:6px;
  margin-bottom:12px;
}

.kenlo-ui-field label{
  font-size:13px;
  opacity:.9;
}

.kenlo-ui-field input{
  padding:10px 12px;
  border-radius:12px;
  border:1px solid rgba(0,0,0,.15);
  font-size:14px;
}

.kenlo-ui-help{
  font-size:12px;
  opacity:.75;
}

.kenlo-ui-modal footer{
  display:flex;
  gap:10px;
  justify-content:flex-end;
  padding:14px;
  border-top:1px solid rgba(0,0,0,.08);
}

.kenlo-ui-modal .msg{
  margin-top:8px;
  font-size:13px;
}

.kenlo-ui-field textarea{
  padding:10px 12px;
  border-radius:12px;
  border:1px solid rgba(0,0,0,.15);
  font-size:13px;
  font-family:monospace;
  min-height:80px;
  resize:vertical;
}
