:root {
  --primary-color: #faa74a;
  --secondary-color: #042a44;
  --contact-button-color: #44cc44;
  --text-color: #333;
  --background-color: #f9f9f9;
  --border-radius: 8px;
  --font-family: "Urbanist", Sans-serif;
  --table-border-radius: 15px;
}

body {
  font-family: "Urbanist", Sans-serif;
}

.filter-wrapper {
  display: flex;
  flex-direction: column;
  margin: 20px auto;
  padding: 20px;
  background-color: #f9f9f9;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.filter-options {
  display: flex;
  flex-direction: row;
  gap: 25px;
  justify-content: space-between;
}

.filter-labels {
  white-space: nowrap;
  font-size: 1.2rem;
  width: 100%;
}

.filter-values {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
}

.filter-ipp {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  width: 100%;
  gap: 10px;
}

.active-paginate-link {
  font-weight: bold;
  color: #042a44;
}

.paginate-link {
  color: var(--primary-color);
  text-decoration: none;
  margin: 0 5px;
  font-weight: bold;
}

.filter-submit {
  background-color: var(--primary-color);
  color: #fff;
  border: none;
  font-size: 1.2rem;
  padding: 10px 24px;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  align-self: flex-end;
}

.contact-button {
  background-color: var(--contact-button-color);
  color: #fff;
  border: none;
  padding: 8px 20px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 500;
  transition: all 0.5s ease-in-out;
  min-width: 120px;
}

.disabled-button {
  background-color: var(--secondary-color);
  color: #fff;
  border: none;
  padding: 8px 20px;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 500;
  transition: all 0.5s ease-in-out;
  min-width: 120px;
}

.contact-button-icon {
  vertical-align: middle;
  opacity: 0;
  display: inline-block;
  margin-left: -15px;
  transition: opacity 0.5s, margin-left 0.5s, transform 0.5s;
  transform: rotateX(0deg);
}

.contact-button:hover .contact-button-icon {
  opacity: 1;
  margin-left: 2px;
  transform: rotateX(360deg);
}

.filter-submit:hover {
  background-color: var(--secondary-color);
}

.tabela-cartas {
  width: 100%;
  border-collapse: collapse;
  border: none;
}

.tabela-cartas td {
  padding: 8px;
}

.tabela-cartas th {
  padding: 15px 10px;
}

.tabela-cartas thead {
  background-color: var(--primary-color);
  text-align: center;
  color: #fff;
}

.tabela-cartas th:first-child {
  border-top-left-radius: var(--table-border-radius);
}

.tabela-cartas th:last-child {
  border-top-right-radius: var(--table-border-radius);
}

.tabela-cartas tbody tr:last-child td:last-child {
  border-bottom-right-radius: var(--table-border-radius);
}

.tabela-cartas tbody tr:last-child td:first-child {
  border-bottom-left-radius: var(--table-border-radius);
}

.tabela-cartas tr:nth-child(even) {
  background-color: #f2f2f2;
}

.tabela-cartas img {
  max-height: 30px;
}

.table-id {
  text-align: center;
}

.table-category {
  width: 50px;
  text-align: center;
}

.table-credit-value,
.table-credit-entry,
.table-credit-installment,
.table-credit-administrator,
.table-contact,
.table-credit-status {
  text-align: center;
}

.table-contact {
  width: 180px;
}

#slider-range {
  height: 8px;
  margin-top: 20px;
}

#slider-range .noUi-connect {
  background: var(--primary-color);
  border-radius: 4px;
}

#slider-range .noUi-base {
  background: #eee;
  border-radius: 4px;
}

#slider-range .noUi-handle {
  height: 20px;
  width: 20px;
  top: -6px;
  right: -10px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--primary-color);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  cursor: pointer;
  transition: border 0.2s;
}

#slider-range .noUi-handle:focus,
#slider-range .noUi-handle:hover {
  border: 2px solid #922b21;
}

#slider-range .noUi-tooltip {
  border-radius: 4px;
  background: var(--primary-color);
  color: #fff;
  font-size: 13px;
  padding: 2px 8px;
  border: none;
}

#slider-range,
.noUi-target {
    touch-action: pan-x pan-y;
    -webkit-user-select: none;
    user-select: none;
}

.select-form {
  display: flex;
  justify-content: space-between;
  width: 100%;
  gap: 75px;
}

.custom-select {
  height: fit-content;
  min-width: 180px;
  box-sizing: border-box;
  border: 0 solid #e5e7eb;
  text-transform: none;
  appearance: none;
  display: block;
  width: 100%;
  border-radius: 0.5rem;
  border-width: 1px;
  border-color: rgb(209 213 219 / var(--tw-border-opacity));
  background-color: rgb(249 250 251 / var(--tw-bg-opacity));
  padding: 0.625rem;
  font-size: 0.875rem;
  line-height: 1.25rem;
  color: rgb(17 24 39 / var(--tw-text-opacity));
  background-image: url("data:image/svg+xml,%3csvg aria-hidden='true' xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 10 6'%3e %3cpath stroke='%236B7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m1 1 4 4 4-4'/%3e %3c/svg%3e");
  background-position: right 0.75rem center;
  background-repeat: no-repeat;
  background-size: 0.75em 0.75em;
  padding-right: 2.5rem;
}

.table-tip{
  font-size: 0.9rem;
  color: #999;
  margin-top: 10px;
}

.table-responsive {
  overflow-x: auto;
  margin: 0 auto;
  max-width: 100%;
}

@media screen and (max-width: 768px) {
  .tabela-cartas {
    font-size: 0.8rem;
  }

  .filter-wrapper {
    padding: 10px;
  }

  .filter-options {
    flex-direction: column;
    gap: 15px;
  }

  .select-form {
    flex-direction: column !important;
    gap: 20px;
  }

  .filter-values {
    flex-direction: column;
  }

  .filter-submit {
    width: 100%;
    margin-top: 10px;
  }

  .contact-button {
    font-size: 0.8rem;
    padding: 5px 15px;
    min-width: 100%;
  }

  .disabled-button {
    font-size: 0.8rem;
    padding: 5px 15px;
    min-width: 100%;
  }

  .tabela-cartas img {
    max-height: 20px;
  }
}
