/*
 * This is a manifest file that'll be compiled into application.css, which will include all the files
 * listed below.
 *
 * Any CSS (and SCSS, if configured) file within this directory, lib/assets/stylesheets, or any plugin's
 * vendor/assets/stylesheets directory can be referenced here using a relative path.
 *
 * You're free to add application-wide styles to this file and they'll appear at the bottom of the
 * compiled file so the styles you add here take precedence over styles defined in any other CSS
 * files in this directory. Styles in this file should be added after the last require_* statement.
 * It is generally better to create a new file per style scope.
 *
 */

/* Additional custom styles */

.legacy-field-select {
  appearance: none !important;
  -webkit-appearance: none !important;
  background-color: #ffffff !important;
  background-image: none !important;
}

html.dark .legacy-field-select {
  background-color: #1e293b !important;
  background-image: none !important;
  border-color: #475569 !important;
  color: #f8fafc !important;
}

.veiculo-dados-cadastrais-grid {
  grid-template-columns: minmax(0, 1fr);
}

.veiculo-rtb-grid {
  grid-template-columns: minmax(0, 1fr);
}

.veiculo-cartao-grid {
  grid-template-columns: minmax(0, 1fr);
}

.veiculo-documento-grid {
  grid-template-columns: minmax(0, 1fr) 4rem 3rem;
}

@media (min-width: 1024px) {
  .veiculo-dados-cadastrais-grid {
    grid-template-columns: 8rem minmax(18rem, 1fr) 15rem 8rem 10rem;
  }

  .veiculo-rtb-grid {
    grid-template-columns: 15rem 10rem 12rem minmax(13rem, 1fr) 9rem;
  }

  .veiculo-cartao-grid {
    grid-template-columns: 8.5rem 9.5rem 9.5rem 9.5rem 7.75rem 8.5rem minmax(9rem, 1fr);
  }
}

@media (min-width: 768px) {
  .cliente-endereco-grid {
    grid-template-columns: repeat(12, minmax(0, 1fr));
  }

  .cliente-endereco-cep,
  .cliente-endereco-numero {
    grid-column: span 1 / span 1;
  }

  .cliente-endereco-rua {
    grid-column: span 4 / span 4;
  }

  .cliente-endereco-terco {
    grid-column: span 4 / span 4;
  }

  .cliente-endereco-metade {
    grid-column: span 6 / span 6;
  }

  .cliente-endereco-dois-tercos {
    grid-column: span 8 / span 8;
  }
}

@media (min-width: 640px) {
  .fatura-filtros-quadrante {
    width: min(100%, 43rem);
  }

  .fatura-filtros-periodos {
    grid-template-columns: repeat(2, minmax(0, 15rem));
  }

  .fatura-filtros-cliente {
    grid-template-columns: 9rem minmax(0, 1fr);
  }

  .fatura-filtros-documento {
    grid-template-columns: minmax(0, 1fr) 5rem 13rem;
  }
}
