.modal-filtrar-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
}
.modal-filtrar-content {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
  padding: 32px 28px 24px 28px;
  min-width: 320px;
  max-width: 1000px;
  width: 95vw;
  max-height: 90vh;
  overflow: visible;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.modal-filtrar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}
.modal-filtrar-title {
  font-size: 1.25rem;
  font-weight: bold;
}
.modal-filtrar-close {
  background: none;
  border: none;
  font-size: 2rem;
  color: #222;
  cursor: pointer;
  line-height: 1;
  padding: 0 8px;
  border-radius: 4px;
  transition: background 0.2s;
}
.modal-filtrar-close:hover {
  background: #eee;
}
.modal-filtrar-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.modal-filtrar-row {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}
.modal-filtrar-group {
  display: flex;
  flex-direction: column;
  min-width: 140px;
  flex: 1 1 160px;
  gap: 4px;
}
.modal-filtrar-group label {
  font-size: 0.95rem;
  font-weight: 600;
  color: #222;
}
.modal-filtrar-group input,
.modal-filtrar-group select {
  border: 1px solid #ccc;
  border-radius: 6px;
  padding: 7px 10px;
  font-size: 1rem;
  background: #fafafa;
  transition: border 0.2s;
}
.modal-filtrar-group input:focus,
.modal-filtrar-group select:focus {
  border-color: #191919;
  outline: none;
}
.modal-filtrar-actions {
  display: flex;
  justify-content: flex-end;
  gap: 16px;
  margin-top: 10px;
}
.modal-filtrar-pesquisar {
  background: #000;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 10px 28px;
  font-weight: bold;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.2s;
}
.modal-filtrar-pesquisar:hover {
  background: #222;
}
.modal-filtrar-fechar {
  background: #eee;
  color: #222;
  border: none;
  border-radius: 6px;
  padding: 10px 28px;
  font-weight: 500;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.2s;
}
.modal-filtrar-fechar:hover {
  background: #ccc;
}
.modal-filtrar-row:first-of-type .modal-filtrar-group {
  flex: 1 1 100%;
  min-width: 0;
}
.modal-filtrar-row:first-of-type {
  margin-bottom: 8px;
}
@media (max-width: 600px) {
  .modal-filtrar-group {
    display: flex;
    flex-direction: column;
    min-width: 140px;
    flex: 1 1 100px;
    gap: 4px;
  }
  .modal-filtrar-content {
    padding: 10px 0 10px 0;
    min-width: 0;
    max-width: 100vw;
    width: 100vw;
    border-radius: 0;
    box-shadow: none;
    height: 100vh;
    max-height: 100vh;
    justify-content: flex-start;
    overflow-y: auto;
    -ms-overflow-style: none;
    scrollbar-width: none;
  }
  .modal-filtrar-content::-webkit-scrollbar {
    display: none;
  }
  .modal-filtrar-header {
    padding: 0 16px;
  }
  .modal-filtrar-form {
    padding: 0 16px;
  }
  .modal-filtrar-row {
    flex-direction: column;
    gap: 10px;
  }
  .modal-filtrar-actions {
    padding: 0 16px 8px 16px;
  }
  .modal-filtrar-group label {
    margin-bottom: 2px;
    margin-top: 0;
  }
  .modal-filtrar-group {
    gap: 2px;
  }
  .modal-filtrar-row {
    gap: 6px;
  }
}

@media (max-width: 600px) {
  .modal-filtrar-content {
    padding: 10px 0 10px 0;
    min-width: 0;
    max-width: 100vw;
    width: 100vw;
    border-radius: 0;
    box-shadow: none;
    height: 100vh;
    max-height: 100vh;
    justify-content: flex-start;
    overflow-y: auto;
    -ms-overflow-style: none;
    scrollbar-width: none;
  }
  .modal-filtrar-content::-webkit-scrollbar {
    display: none;
  }
  .modal-filtrar-header {
    padding: 0 16px;
  }
  .modal-filtrar-form {
    padding: 0 16px;
  }
  .modal-filtrar-row {
    flex-direction: column;
    gap: 10px;
  }
  .modal-filtrar-actions {
    padding: 0 16px 8px 16px;
  }
}