/*
 * 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 */

.sidebar-header-toggle {
  display: none;
}

.cliente-excluir-button {
  background-color: rgb(220 38 38) !important;
  color: rgb(255 255 255) !important;
}

.cliente-excluir-button:hover {
  background-color: rgb(185 28 28) !important;
  color: rgb(255 255 255) !important;
}

@media (min-width: 1024px) {
  .sidebar-shell .sidebar-header-toggle {
    display: block;
  }

  .sidebar-shell .sidebar-main {
    transition: padding-left 300ms ease-in-out;
  }

  .sidebar-shell .sidebar-reopen-toggle {
    left: 0;
    display: none;
  }

  .sidebar-shell.sidebar-collapsed .sidebar-panel {
    transform: translateX(-100%) !important;
  }

  .sidebar-shell.sidebar-collapsed .sidebar-main {
    padding-left: 0 !important;
  }

  .sidebar-shell.sidebar-collapsed .sidebar-reopen-toggle {
    display: flex;
  }
}

.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;
}

.legacy-field-textarea {
  background-color: #ffffff !important;
}

html.dark .legacy-field-textarea {
  background-color: #1e293b !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;
}

.solicitacao-doc-row,
.solicitacao-two-row,
.solicitacao-address-row,
.solicitacao-complement-row,
.solicitacao-location-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.75rem;
}

.solicitacao-doc-grid {
  display: grid;
  grid-template-columns: 10rem 4rem 3rem;
  gap: 0.5rem;
}

.solicitacao-parties-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1rem;
}

.solicitacao-party-card {
  width: 100%;
}

.solicitacao-dados-gerais-layout {
  display: grid;
  grid-template-columns: 19rem 1fr;
  gap: 1rem;
  min-width: 88rem;
  align-items: start;
}

.solicitacao-dados-solicitacao-row {
  display: grid;
  grid-template-columns: 7.5rem minmax(0, 1fr);
  gap: 0.5rem;
}

.solicitacao-dados-solicitacao-totais {
  display: grid;
  grid-template-columns: 4.5rem 5.25rem minmax(0, 1fr);
  gap: 0.5rem;
}

.solicitacao-dados-operacao-faixas {
  display: grid;
  grid-template-columns: 4.5rem minmax(13rem, 1fr) 4.5rem minmax(13rem, 1fr) 9rem;
  gap: 0.5rem;
  align-items: start;
}

.solicitacao-dados-operacao-valores {
  display: grid;
  grid-template-columns: 6.25rem 6.25rem 10rem 8.25rem 9.25rem 10rem;
  gap: 0.75rem;
  align-items: start;
}

.solicitacao-dados-redespacho-row {
  display: grid;
  grid-template-columns: 6rem minmax(14rem, 1fr) 10rem;
  gap: 0.5rem;
  align-items: start;
}

.solicitacao-redespachar-checkbox {
  align-items: center;
  padding-top: 1.625rem;
}

.solicitacao-impressoes-scroll {
  direction: rtl;
  max-height: 9.75rem;
  overflow-x: auto;
  overflow-y: auto;
}

.solicitacao-impressoes-scroll > * {
  direction: ltr;
}

.solicitacao-cubagem-layout {
  display: grid;
  grid-template-columns: minmax(46rem, 1fr) 12rem;
  gap: 1rem;
  min-width: 62rem;
  align-items: stretch;
}

.solicitacao-cubagem-table-wrap {
  min-height: 20rem;
}

html.dark .solicitacao-dark-table thead {
  background-color: rgb(30 41 59);
  color: rgb(203 213 225);
}

html.dark .solicitacao-dark-table tbody {
  background-color: rgb(2 6 23);
  color: rgb(241 245 249);
}

html.dark .solicitacao-dark-table tbody tr:nth-child(odd),
html.dark .solicitacao-dark-table tbody tr:nth-child(even) {
  background-color: transparent;
}

html.dark .solicitacao-dark-table tbody tr:nth-child(even) {
  background-color: rgba(15, 23, 42, 0.7);
}

html.dark .solicitacao-dark-table th {
  border-color: rgb(51 65 85);
}

html.dark .solicitacao-dark-table td {
  border-color: rgb(30 41 59);
  color: rgb(241 245 249);
}

html.dark .cliente-condicoes-table thead {
  background-color: rgb(2 6 23);
  color: rgb(226 232 240);
}

html.dark .cliente-condicoes-table thead tr,
html.dark .cliente-condicoes-table thead th {
  background-color: rgb(2 6 23) !important;
  border-color: rgb(51 65 85) !important;
  color: rgb(203 213 225) !important;
}

html.dark .cliente-condicoes-table tbody {
  background-color: rgb(15 23 42) !important;
}

html.dark .cliente-condicoes-table tbody tr[data-condition-active-filter-target="row"]:nth-child(odd) {
  background-color: rgb(15 23 42) !important;
}

html.dark .cliente-condicoes-table tbody tr[data-condition-active-filter-target="row"]:nth-child(even) {
  background-color: rgb(30 41 59) !important;
}

html.dark .cliente-condicoes-table tbody tr[data-condition-active-filter-target="row"]:hover {
  background-color: rgb(12 74 110) !important;
}

html.dark .cliente-condicoes-table tbody tr[data-condition-active-filter-target="group"] {
  background-color: rgb(30 41 59) !important;
}

html.dark .cliente-condicoes-table tbody td {
  border-color: rgb(51 65 85) !important;
  color: rgb(226 232 240) !important;
}

html.dark .cliente-consulta-grid thead,
html.dark .cliente-consulta-grid thead tr,
html.dark .cliente-consulta-grid thead th {
  background-color: rgb(2 6 23) !important;
  border-color: rgb(51 65 85) !important;
  color: rgb(203 213 225) !important;
}

html.dark .cliente-consulta-grid tbody {
  background-color: rgb(15 23 42) !important;
}

html.dark .cliente-consulta-grid tbody tr:nth-child(odd) {
  background-color: rgb(15 23 42) !important;
}

html.dark .cliente-consulta-grid tbody tr:nth-child(even) {
  background-color: rgb(30 41 59) !important;
}

html.dark .cliente-consulta-grid tbody tr:hover {
  background-color: rgb(12 74 110) !important;
}

html.dark .cliente-consulta-grid tbody td {
  border-color: rgb(51 65 85) !important;
  color: rgb(226 232 240) !important;
}

@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);
  }

  .solicitacao-doc-row {
    grid-template-columns: 8rem 18.5rem 11rem;
    justify-content: start;
  }

  .solicitacao-two-row {
    grid-template-columns: 29.5rem 9rem;
    justify-content: start;
  }

  .solicitacao-address-row {
    grid-template-columns: 31.5rem 7rem;
    justify-content: start;
  }

  .solicitacao-complement-row {
    grid-template-columns: 28.5rem 10rem;
    justify-content: start;
  }

  .solicitacao-location-row {
    grid-template-columns: 8rem 8rem 9.5rem 4rem 6rem;
    justify-content: start;
  }

  .solicitacao-parties-grid {
    grid-template-columns: max-content max-content;
    align-items: stretch;
  }

  .solicitacao-party-card {
    width: max-content;
    max-width: 100%;
  }

  .solicitacao-show-parties .solicitacao-party-card > .bg-white {
    height: 100%;
  }
}

@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;
  }
}

/* O botão "Marcar todos" e os itens marcados compartilham exatamente as mesmas cores. */
.frete-combinado-marcar-todos,
input[type="checkbox"].frete-combinado-checkbox:checked + .frete-combinado-item-visual {
  background-color: #d1fae5 !important;
  border-color: #34d399 !important;
  color: #047857 !important;
}

.frete-combinado-marcar-todos:hover {
  background-color: #a7f3d0 !important;
}

.frete-combinado-item-visual {
  background-color: #ffffff;
  border-color: #94a3b8;
  color: transparent;
}

html.dark .frete-combinado-marcar-todos,
html.dark input[type="checkbox"].frete-combinado-checkbox:checked + .frete-combinado-item-visual {
  background-color: #022c22 !important;
  border-color: #059669 !important;
  color: #6ee7b7 !important;
}

html.dark .frete-combinado-marcar-todos:hover {
  background-color: #064e3b !important;
}

html.dark .frete-combinado-item-visual {
  background-color: #0f172a;
  border-color: #64748b;
}

input[type="checkbox"].frete-combinado-checkbox:focus-visible + .frete-combinado-item-visual {
  outline: 2px solid #10b981;
  outline-offset: 2px;
}

select.frete-combinado-nova-situacao {
  border: 1px solid #cbd5e1 !important;
  background-color: #ffffff !important;
  color: #0f172a !important;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08) !important;
}

select.frete-combinado-nova-situacao:hover {
  border-color: #94a3b8 !important;
  background-color: #f8fafc !important;
}

select.frete-combinado-nova-situacao:focus {
  border-color: #0ea5e9 !important;
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.2) !important;
  outline: none !important;
}

select.frete-combinado-nova-situacao option {
  background-color: #ffffff;
  color: #0f172a;
}

html.dark select.frete-combinado-nova-situacao {
  border-color: #475569 !important;
  background-color: #1e293b !important;
  color: #f1f5f9 !important;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.35) !important;
  color-scheme: dark;
}

html.dark select.frete-combinado-nova-situacao:hover {
  border-color: #64748b !important;
  background-color: #334155 !important;
}

html.dark select.frete-combinado-nova-situacao:focus {
  border-color: #38bdf8 !important;
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.22) !important;
}

html.dark select.frete-combinado-nova-situacao option {
  background-color: #1e293b;
  color: #f1f5f9;
}
