/* =========================================================
   REGION: LOGISTICA
   ========================================================= */
.roteirizacao-action-icon {
  flex: 0 0 auto;
  width: 1.5rem;
  height: 1.5rem;
  margin: 0;
  color: #8a949e;
  transform: none;
}

.logistica-grid {
  margin-top: .25rem;
}

.logistica-list {
  max-width: 1100px;
  margin: 0 auto;
}

.logistica-order-card .card-body {
  cursor: pointer;
}

.logistica-route-order-card .card-body {
  cursor: default;
  padding-bottom: 0;
}

.logistica-order-card .actions {
  align-self: center;
}

.logistica-total {
  color: #198754;
  font-size: .95rem;
  font-weight: 700;
}

.logistica-card-meta {
  display: inline-block;
  min-width: 0;
  max-width: 220px;
  overflow: hidden;
  color: #495057;
  font-size: .9rem;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.logistica-card-separator {
  font-size: .85rem;
  font-weight: 700;
}

.logistica-card-subline {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: .35rem;
  color: #6c757d;
  font-size: 1rem;
  font-weight: 700;
}

.logistica-card-subline span {
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.logistica-card-location {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.logistica-card-location-text {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.logistica-card-subline .logistica-card-dot,
.logistica-card-subline .logistica-card-location-dot {
  display: inline-block;
  flex: 0 0 5px;
  width: 5px;
  height: 5px;
  min-width: 5px;
  margin: 0 7px;
  border-radius: 50%;
  background: currentColor;
  opacity: .7;
  overflow: visible;
  vertical-align: middle;
}

.logistica-card-location .logistica-card-dot,
.logistica-card-location .logistica-card-location-dot {
  margin: 0;
}

.logistica-client {
  display: block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 1rem;
  font-weight: 400;
}

.logistica-inline {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  color: #6c757d;
  font-size: .875rem;
}

.logistica-inline span {
  white-space: nowrap;
}

.logistica-embarcacao-row {
  margin-top: 4px;
  margin-bottom: -8px;
}

.logistica-embarcacao-form,
.logistica-embarcacao-pill {
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  width: min(360px, 50%);
  padding: 3px 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.logistica-embarcacao-form label,
.logistica-embarcacao-pill span {
  margin: 0;
  color: #6c757d;
  font-size: .72rem;
  font-weight: 800;
  text-transform: uppercase;
  white-space: nowrap;
}

.logistica-embarcacao-form .form-select {
  min-width: 0;
  width: 100%;
  min-height: 30px;
  padding-top: 3px;
  padding-bottom: 3px;
  border-color: #d8e0e7;
  color: #7b858e;
  font-size: .82rem;
  font-weight: 400;
}

.logistica-embarcacao-form .form-select.has-port-match {
  color: #212529;
  font-weight: 900;
}

.logistica-embarcacao-form .form-select.has-last-day-match {
  color: #b42318;
}

.logistica-embarcacao-form .form-select option {
  color: #7b858e;
  font-weight: 400;
}

.logistica-embarcacao-form .form-select option.is-port-match {
  color: #212529;
  font-weight: 700;
}

.logistica-embarcacao-form .form-select option.is-last-day {
  color: #b42318;
  font-weight: 700;
}

.logistica-embarcacao-pill strong {
  min-width: 0;
  overflow: hidden;
  color: #495057;
  font-size: .82rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.logistica-order-note {
  margin-bottom: .85rem;
  padding: .75rem .85rem;
  border: 1px solid #eef1f3;
  border-radius: 8px;
  background: #f8f9fa;
}

.logistica-route-card-details {
  margin-top: -10px;
  padding-top: 0;
}

.logistica-route-card-details.sem-embarcacao {
  margin-top: 8px;
}

.logistica-route-card-details .logistica-order-note {
  margin-top: 0;
}

.logistica-order-note span {
  display: block;
  margin-bottom: .25rem;
  color: #6c757d;
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
}

.logistica-order-note p {
  min-height: 1.2em;
  margin: 0;
  color: #343a40;
  font-size: .9rem;
  white-space: pre-wrap;
}

.logistica-order-note p[contenteditable] {
  cursor: text;
  border-radius: 4px;
  outline: none;
}

.logistica-order-note p[contenteditable]:empty::before {
  content: attr(data-placeholder);
  color: #adb5bd;
}

.logistica-order-note p[contenteditable]:focus {
  background: rgba(86, 128, 167, .08);
}

.logistica-order-note p[contenteditable].is-saving {
  opacity: .65;
}

.logistica-order-note p[contenteditable].is-saved {
  background: #eaf7ef;
}

.logistica-order-note p[contenteditable].is-error {
  background: #fff1f1;
}

.logistica-summary {
  padding: 14px 16px;
  border: 1px solid #dee2e6;
  border-radius: 12px;
  background: #fff;
}

.logistica-summary-filter {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 12px 0 0;
  color: #6c757d;
  font-size: .82rem;
  font-weight: 500;
}

.logistica-summary-filter input {
  width: 14px;
  height: 14px;
  margin: 0;
  accent-color: #5680a7;
}

.logistica-routes {
  padding: 14px 16px;
  border: 1px solid #dee2e6;
  border-radius: 12px;
  background: #fff;
}

.logistica-summary-title {
  margin-bottom: 10px;
  color: #5680a7;
  font-size: .9rem;
  font-weight: 700;
  text-transform: uppercase;
}

.logistica-kanban-section {
  position: relative;
  margin: 0 0 18px;
  padding: 68px 0 16px;
}

.logistica-kanban-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 2px;
}

.logistica-kanban-header .logistica-summary-title {
  margin-bottom: 0;
}

.logistica-kanban-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 8px;
}

.logistica-kanban-meta,
.logistica-kanban-totals,
.logistica-kanban-card-meta,
.logistica-kanban-card-footer {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.logistica-kanban-meta {
  color: #6c757d;
  font-size: .86rem;
  font-weight: 600;
}

.logistica-kanban-meta span,
.logistica-kanban-totals span {
  white-space: nowrap;
}

.logistica-kanban-controls {
  display: flex;
  gap: 6px;
  flex: 0 0 auto;
}

.logistica-kanban-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 1px solid #dce3ea;
  border-radius: 8px;
  color: #3e668b;
  background: #fff;
  font-size: 1.4rem;
  font-weight: 700;
  line-height: 1;
}

.logistica-kanban-arrow:hover,
.logistica-kanban-arrow:focus {
  border-color: #b8c8d8;
  background: #f5f8fb;
}

.logistica-kanban-dots {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  max-width: 100%;
  width: fit-content;
  margin-right: auto;
  margin-left: auto;
  padding: 8px 10px;
  margin-bottom: 0;
  min-height: 30px;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
}

.logistica-kanban-dots::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

.logistica-kanban-dot {
  flex: 0 0 auto;
  width: 10px;
  height: 10px;
  aspect-ratio: 1 / 1;
  padding: 0;
  border: 1px solid #aebccb;
  border-radius: 50%;
  background: #c8d2dc;
  box-shadow: none;
  font-size: 0;
  line-height: 0;
  transition:
    background-color .15s ease,
    border-color .15s ease,
    box-shadow .15s ease,
    transform .15s ease;
}

.logistica-kanban-dot.is-active {
  border-color: #315a7a;
  background: #5680a7;
  box-shadow: 0 0 0 4px rgba(86, 128, 167, .18);
  transform: scale(1.25);
}

.logistica-kanban-dot:hover,
.logistica-kanban-dot:focus {
  border-color: #5680a7;
  background: #8aaac6;
  outline: 0;
}

.logistica-kanban-dot.is-active:hover,
.logistica-kanban-dot.is-active:focus {
  background: #426b91;
}

.logistica-kanban-board {
  display: block;
  overflow: visible;
  padding: 0 0 8px;
}

.logistica-kanban-board::-webkit-scrollbar {
  height: 0;
}

.logistica-kanban-board:focus,
.logistica-kanban-board:focus-visible {
  outline: 0;
}

.logistica-kanban-column {
  display: none;
  flex-direction: column;
  min-height: 0;
  width: 100%;
  min-width: 0;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.logistica-kanban-column.is-active {
  display: flex;
}

.logistica-kanban-column-head {
  padding: 6px 0 10px;
  border-bottom: 1px solid #e5ebf1;
  background: #fff;
}

.logistica-kanban-route-title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
  flex-wrap: wrap;
}

.logistica-kanban-route-badges {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: 1 1 100%;
  order: 1;
  justify-content: flex-end;
  flex-wrap: wrap;
  min-height: 29px;
}

.logistica-kanban-route-title strong {
  flex: 1 1 100%;
  order: 2;
  min-width: 0;
  overflow: hidden;
  color: #5680a7;
  font-size: 1.26rem;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.logistica-kanban-route-title span,
.logistica-kanban-route-meta,
.logistica-kanban-cities {
  color: #6c757d;
  font-size: .78rem;
  font-weight: 700;
}

.logistica-kanban-route-title span {
  flex: 0 0 auto;
  white-space: nowrap;
}

.logistica-orders-section-title {
  justify-content: flex-start;
  margin: 6px 0 10px;
}

.logistica-kanban-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 23px;
  padding: 2px 8px;
  border-radius: 999px;
  font-family: inherit;
  font-size: .72rem;
  font-weight: 800;
  line-height: 1;
  vertical-align: middle;
}

.logistica-kanban-status.is-planning {
  color: #315a7a;
  background: #fffbea;
}

.logistica-kanban-status.is-authorized {
  color: #146c43;
  background: #eaf7ef;
}

.logistica-status-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0;
  margin: 0;
  padding: 2px;
  border: 1px solid #d9e4ee;
  border-radius: 999px;
  background: #f7fafc;
}

.logistica-status-toggle button {
  min-height: 23px;
  padding: 2px 8px;
  border: 0;
  border-radius: 999px;
  color: #6c757d;
  background: transparent;
  font-size: .72rem;
  font-weight: 800;
  line-height: 1;
}

.logistica-status-toggle button.is-active {
  color: #315a7a;
  background: #fffbea;
}

.logistica-status-toggle button[value="autorizada"].is-active {
  color: #146c43;
  background: #eaf7ef;
}

.logistica-rota-delete-form {
  display: inline-flex;
  margin: 0;
}

.logistica-rota-add-pedido-button,
.logistica-rota-add-base-button,
.logistica-rota-merge-button,
.logistica-rota-print-button,
.logistica-route-summary-toggle,
.logistica-selected-orders-print-button,
.logistica-rota-delete-form button,
.logistica-execucao-delete-form button {
  min-height: 29px;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: .72rem;
  font-weight: 800;
  line-height: 1;
}

.logistica-rota-add-pedido-button,
.logistica-rota-add-base-button,
.logistica-rota-merge-button,
.logistica-rota-print-button,
.logistica-route-summary-toggle,
.logistica-selected-orders-print-button {
  border: 1px solid #c8d8e8;
  color: #315a7a;
  background: #eef5fb;
}

.logistica-rota-delete-form button,
.logistica-execucao-delete-form button {
  border: 1px solid #f0c7c7;
  color: #9f1d1d;
  background: #fdecec;
}

.logistica-rota-add-pedido-button:hover,
.logistica-rota-add-pedido-button:focus,
.logistica-rota-add-base-button:hover,
.logistica-rota-add-base-button:focus,
.logistica-rota-merge-button:hover,
.logistica-rota-merge-button:focus,
.logistica-rota-print-button:hover,
.logistica-rota-print-button:focus,
.logistica-route-summary-toggle:hover,
.logistica-route-summary-toggle:focus,
.logistica-selected-orders-print-button:hover,
.logistica-selected-orders-print-button:focus {
  background: #dfeaf4;
}

.logistica-rota-delete-form button:hover,
.logistica-rota-delete-form button:focus,
.logistica-execucao-delete-form button:hover,
.logistica-execucao-delete-form button:focus {
  background: #f9d7d7;
}

.logistica-pedido-actions {
  align-self: flex-start;
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 29px;
  margin: 0 0 0 auto;
}

.logistica-pedido-delete-form {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0;
}

.logistica-pedido-status-dot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  align-self: center;
  width: 29px;
  height: 29px;
  margin: 0;
}

.logistica-pedido-status-dot::before {
  content: "";
  display: block;
  width: 11px;
  height: 11px;
  border-radius: 50%;
}

.logistica-pedido-status-dot.is-open::before {
  background: #ffea91;
}

.logistica-pedido-status-dot.is-effective::before {
  background: #a8dfba;
}

.logistica-pedido-status-dot.is-canceled::before,
.logistica-pedido-status-dot.is-unknown::before {
  background: #d4d9df;
}

.logistica-pedido-info-button {
  position: relative;
  display: inline-grid;
  align-items: center;
  justify-content: center;
  place-items: center;
  width: 29px;
  height: 29px;
  min-width: 29px;
  min-height: 29px;
  padding: 0;
  border: 0;
  border-radius: 4px;
  background: transparent;
  font-family: inherit;
  font-size: inherit;
  line-height: normal;
  text-align: center;
  vertical-align: middle;
  transform: none;
}

.logistica-pedido-info-button.has-unseen-alert::after {
  content: "";
  position: absolute;
  top: 2px;
  right: 2px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ef4444;
}

.logistica-pedido-info-button[data-pedido-alert="1"],
.logistica-pedido-info-button[data-rota-alert="1"] {
  padding-bottom: 0;
}

.logistica-pedido-info-button:hover,
.logistica-pedido-info-button:focus,
.logistica-pedido-info-button:active,
.logistica-pedido-info-button:first-child:active {
  border: 0;
  background: transparent;
  box-shadow: none;
  transform: none;
}

.logistica-pedido-info-button:hover,
.logistica-pedido-info-button:hover .roteirizacao-action-icon {
  color: #000 !important;
}

.logistica-pedido-print-button.is-selected {
  color: #198754;
}

.logistica-pedido-print-button.is-selected .roteirizacao-action-icon {
  color: #198754;
}

.logistica-pedido-print-button.is-selected:hover .roteirizacao-action-icon {
  color: #000 !important;
}

.logistica-pedido-move-button,
.logistica-pedido-delete-form button {
  min-height: 29px;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: .72rem;
  font-weight: 800;
  line-height: 1;
}

.logistica-pedido-move-button {
  border: 1px solid #c8d8e8;
  border-radius: 999px;
  color: #315a7a;
  background: #eef5fb;
}

.logistica-pedido-delete-form button {
  border: 1px solid #f0c7c7;
  color: #9f1d1d;
  background: #fdecec;
}

.logistica-pedido-move-button:hover,
.logistica-pedido-move-button:focus {
  background: #dfeaf4;
}

.logistica-pedido-delete-form button:hover,
.logistica-pedido-delete-form button:focus {
  background: #f9d7d7;
}

.logistica-route-action-dialog {
  max-width: 480px;
}

.logistica-pedido-info-dialog {
  max-width: 680px;
}

.logistica-pedidos-fora-dialog {
  width: min(1360px, calc(100vw - 28px));
  max-width: 1360px;
}

.logistica-pedidos-fora-grid {
  width: 100%;
  margin: 0;
}

.logistica-pedidos-fora-list {
  display: grid;
  gap: 10px;
}

.logistica-pedidos-fora-filters {
  display: grid;
  gap: 8px;
  margin-bottom: 12px;
}

.logistica-pedido-fora-card {
  display: grid;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid #e2e8ef;
  border-radius: 8px;
  color: #343a40;
  background: #fff;
}

.logistica-pedido-fora-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 12px;
}

.logistica-pedido-fora-head > div:first-child,
.logistica-pedido-fora-head .title-line,
.logistica-pedido-fora-head .meta {
  min-width: 0;
}

.logistica-pedido-fora-metrics {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  max-width: 420px;
  color: #5680a7;
  font-size: .82rem;
  font-weight: 700;
}

.logistica-pedido-fora-metrics span {
  white-space: nowrap;
}

.logistica-pedido-info-list {
  display: grid;
  gap: 8px;
}

.logistica-pedido-info-alerts {
  display: grid;
  gap: 8px;
}

.logistica-pedido-info-item {
  padding: 10px 12px;
  border: 1px solid #f2d6a2;
  border-radius: 8px;
  color: #6f4f00;
  background: #fff8e6;
  font-size: .9rem;
  font-weight: 700;
  line-height: 1.35;
}

.logistica-pedido-info-summary {
  display: grid;
  gap: 8px;
}

.logistica-pedido-info-products {
  display: grid;
  gap: 8px;
}

.logistica-pedido-info-product {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 172px;
  align-items: end;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid #e3e9ef;
  border-radius: 8px;
  background: #fff;
}

.logistica-pedido-info-summary.is-readonly .logistica-pedido-info-product {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
}

.logistica-pedido-info-product > span {
  min-width: 0;
  overflow: hidden;
  padding-bottom: 5px;
  color: #343a40;
  font-size: .9rem;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.logistica-pedido-info-summary.is-readonly .logistica-pedido-info-product > span {
  padding-bottom: 0;
}

.logistica-pedido-info-readonly-qty {
  justify-self: end;
  min-width: 42px;
  color: #315a7a;
  font-size: .9rem;
  font-weight: 900;
  text-align: right;
  white-space: nowrap;
}

.logistica-pedido-info-product.is-cut > span,
.logistica-products-desktop tr.is-cut td,
.logistica-products-desktop tr.is-cut .lg-scroll-col,
.faturamento-product-card.is-cut .faturamento-product-title,
.faturamento-product-card.is-cut .faturamento-product-grid {
  color: #8a8f96;
  text-decoration: line-through;
  text-decoration-thickness: 2px;
}

.logistica-pedido-info-product.is-cut {
  background: #f8f9fa;
}

.logistica-pedido-info-product-controls {
  display: grid;
  grid-template-columns: 88px 76px;
  align-items: end;
  gap: 8px;
}

.logistica-pedido-info-product label {
  display: grid;
  gap: 3px;
  margin: 0;
}

.logistica-pedido-info-product label span {
  color: #6c757d;
  font-size: .68rem;
  font-weight: 800;
  text-align: right;
  text-transform: uppercase;
}

.logistica-pedido-info-summary .logistica-pedido-info-qty {
  width: 100%;
  margin-left: auto;
  text-align: right;
  font-weight: 800;
}

.logistica-pedido-info-cut {
  width: 31px;
  height: 31px;
  margin-left: auto;
}

.logistica-pedido-info-cut:hover,
.logistica-pedido-info-cut:focus {
  transform: scale(1.04);
}

.logistica-pedido-info-totals {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  padding-top: 2px;
}

.logistica-pedido-info-totals span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 10px;
  border: 1px solid #d9e4ee;
  border-radius: 999px;
  color: #315a7a;
  background: #f5f8fb;
  font-size: .82rem;
  font-weight: 700;
}

.logistica-pedido-info-totals strong {
  margin-right: 4px;
  font-weight: 900;
}

.logistica-embarcacoes-modal-dialog {
  width: min(860px, calc(100vw - 28px));
  max-width: 860px;
}

.logistica-embarcacoes-list {
  display: grid;
  gap: 0;
  max-height: 68vh;
  overflow-y: auto;
  overflow-x: hidden;
}

.logistica-embarcacao-search {
  position: sticky;
  top: 0;
  z-index: 1;
  display: flex;
  justify-content: center;
  padding-bottom: 4px;
  background: #fff;
}

.logistica-embarcacao-search .search-wrap {
  flex: 0 1 420px;
  width: min(420px, 100%);
}

.logistica-embarcacao-config {
  padding: 12px 0;
}

.logistica-embarcacao-config > form {
  display: block;
}

.logistica-embarcacao-fields {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 150px minmax(220px, 1.2fr);
  gap: 8px;
  margin-top: 8px;
}

.logistica-embarcacao-fields label:nth-child(4) {
  grid-column: 1 / -1;
}

.logistica-embarcacao-fields label,
.logistica-embarcacao-cidades,
.logistica-embarcacao-escalas label {
  min-width: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.logistica-embarcacao-fields span,
.logistica-embarcacao-cidades > span,
.logistica-embarcacao-escalas span {
  display: block;
  margin-bottom: 3px;
  color: #6c757d;
  font-size: .72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.logistica-embarcacao-fields input,
.logistica-embarcacao-fields textarea,
.logistica-embarcacao-escalas select {
  width: 100%;
}

.logistica-embarcacao-config .logistica-route-config-head {
  align-items: center;
  justify-content: center;
}

.logistica-embarcacao-config .logistica-route-config-head strong {
  flex: 0 1 auto;
}

.logistica-embarcacao-actions {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
}

.logistica-embarcacao-config .logistica-route-config-head .screen-action-btn {
  flex: 0 0 auto;
}

.logistica-embarcacao-cidades {
  margin-top: 0;
}

.logistica-embarcacao-city-chips {
  display: flex;
  flex-wrap: nowrap;
  justify-content: flex-start;
  gap: 5px;
  min-height: 0;
  max-width: 100%;
  width: 100%;
  clear: both;
  margin-top: 6px;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.logistica-embarcacao-city-chips::-webkit-scrollbar {
  display: none;
}

.logistica-embarcacao-city-chips > span {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  max-width: 100%;
  padding: 1px 6px;
  border-radius: 999px;
  color: #6c757d;
  background: #f1f5f9;
  font-size: .7rem;
  font-weight: 700;
  line-height: 1.35;
}

.logistica-embarcacao-city-chips button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 14px;
  height: 14px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  color: #842029;
  background: transparent;
  font-size: 12px;
  font-weight: 700;
  line-height: 0;
  font-family: Arial, sans-serif;
}

.logistica-embarcacao-city-chips button:hover,
.logistica-embarcacao-city-chips button:focus {
  background: #f8d7da;
}

.logistica-embarcacao-city-add {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 86px;
  gap: 7px;
  margin-top: 0;
}

.logistica-embarcacao-escalas {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 8px;
}

.logistica-route-action-form {
  display: grid;
  gap: 10px;
}

:is(#adicionarPedidoModal, #unirRotaModal, #adicionarRotaModal) .logistica-modal-header {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
}

:is(#adicionarPedidoModal, #unirRotaModal, #adicionarRotaModal) .logistica-modal-header h2 {
  grid-column: 2;
  text-align: center;
}

:is(#adicionarPedidoModal, #unirRotaModal, #adicionarRotaModal) .logistica-modal-close {
  grid-column: 3;
  justify-self: end;
}

:is(#adicionarPedidoModal, #unirRotaModal, #adicionarRotaModal) .logistica-modal-body {
  justify-items: center;
}

:is(#adicionarPedidoModal, #unirRotaModal, #adicionarRotaModal) :is(.logistica-route-action-form, .logistica-route-merge-tools) {
  max-inline-size: 100%;
}

:is(#adicionarPedidoModal, #unirRotaModal, #adicionarRotaModal) :is(.form-control, .form-select) {
  inline-size: 100%;
  max-inline-size: 100%;
}

.logistica-route-action-toggle {
  justify-self: center;
}

.logistica-route-action-city {
  display: grid;
  gap: 10px;
}

.logistica-route-merge-tools {
  display: grid;
  gap: 10px;
  padding-top: 8px;
  border-top: 1px solid #e5ebf1;
}

.logistica-route-merge-list {
  display: grid;
  gap: 6px;
}

.logistica-route-merge-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 34px;
  padding: 6px 8px;
  border: 1px solid #d9e4ee;
  border-radius: 8px;
  background: #f7fafc;
  color: #315a7a;
  font-size: .82rem;
  font-weight: 800;
}

.logistica-route-merge-row-actions {
  display: inline-flex;
  gap: 4px;
}

.logistica-route-merge-row-actions button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 24px;
  border: 1px solid #c8d8e8;
  border-radius: var(--icon-btn-radius);
  color: #315a7a;
  background: #fff;
  font-size: .8rem;
  font-weight: 900;
  line-height: 1;
}

.logistica-route-merge-row-actions button:disabled {
  opacity: .4;
}

.logistica-route-action-label {
  margin: 0;
  color: #495057;
  font-size: .9rem;
  font-weight: 800;
}

.logistica-route-action-footer {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 8px;
}

.logistica-route-action-footer .screen-action-btn {
  min-width: 96px;
}

.logistica-kanban-route-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin-top: 8px;
}

.logistica-kanban-route-meta span,
.logistica-kanban-cities {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.logistica-kanban-cities {
  margin-top: 3px;
  font-size: .94rem;
}

.logistica-kanban-totals {
  margin-top: 5px;
  color: #5680a7;
  font-size: .98rem;
  font-weight: 800;
}

.logistica-kanban-cards {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 10px;
}

.logistica-route-summary-toggle {
  align-items: center;
  justify-content: center;
  display: none;
}

.logistica-route-orders-summary {
  display: none;
  padding: 10px;
}

.logistica-route-orders-summary-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 6px 0;
  border-top: 1px solid #edf2f7;
  font-size: .86rem;
}

.logistica-route-orders-summary-row:first-child {
  border-top: 0;
}

.logistica-route-orders-summary-row strong {
  color: #315a7a;
  font-weight: 800;
  white-space: nowrap;
}

.logistica-route-orders-summary-row span {
  min-width: 0;
  overflow: hidden;
  color: #343a40;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.logistica-route-group-separator {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #315a7a;
  font-size: .78rem;
  font-weight: 900;
  line-height: 1.2;
  text-transform: uppercase;
}

.logistica-route-group-separator::after {
  content: "";
  flex: 1 1 auto;
  height: 1px;
  background: #d9e4ee;
}

.logistica-route-products-summary {
  border-color: #d9e4ee;
}

.logistica-route-products-summary .card-body {
  padding-bottom: 8px;
}

.logistica-route-products-summary-list {
  display: grid;
  gap: 4px;
}

.logistica-route-products-summary-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 6px 0;
  border-top: 1px solid #edf2f7;
  font-size: .86rem;
}

.logistica-route-products-summary-row span {
  overflow: hidden;
  color: #343a40;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.logistica-route-products-summary-row strong {
  color: #315a7a;
  font-weight: 900;
  white-space: nowrap;
}

.logistica-kanban-card {
  padding: 12px;
  border: 1px solid #e3e9ef;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 4px 12px rgba(33, 37, 41, .035);
}

.logistica-kanban-card-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}

.logistica-kanban-card-top strong,
.logistica-kanban-card-top span {
  white-space: nowrap;
}

.logistica-kanban-card-top strong {
  color: #212529;
  font-size: .92rem;
}

.logistica-kanban-card-top span {
  color: #198754;
  font-size: .86rem;
  font-weight: 800;
}

.logistica-kanban-card-client {
  margin-top: 5px;
  overflow: hidden;
  color: #343a40;
  font-size: .88rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.logistica-kanban-card-meta,
.logistica-kanban-card-footer {
  margin-top: 7px;
  justify-content: space-between;
  color: #6c757d;
  font-size: .78rem;
  font-weight: 700;
}

.logistica-kanban-products {
  display: grid;
  gap: 5px;
  margin-top: 10px;
  padding-top: 9px;
  border-top: 1px solid #eef1f3;
}

.logistica-kanban-product {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) 48px;
  align-items: center;
  gap: 8px;
  min-height: 26px;
  color: #495057;
  font-size: .8rem;
}

.logistica-kanban-product span,
.logistica-kanban-product em {
  color: #6c757d;
  font-style: normal;
  font-weight: 800;
  white-space: nowrap;
}

.logistica-kanban-product strong {
  min-width: 0;
  overflow: hidden;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.logistica-kanban-product em {
  text-align: right;
}

.logistica-kanban-note {
  margin-top: 10px;
  margin-bottom: 0;
}

.logistica-kanban-products-table {
  margin-top: 10px;
  padding-top: 9px;
  border-top: 1px solid #eef1f3;
}

.logistica-kanban-products-table table {
  table-layout: fixed;
}

.logistica-kanban-products-table th,
.logistica-kanban-products-table td {
  padding: 6px 6px;
  font-size: .78rem;
  white-space: nowrap;
}

.logistica-kanban-products-table th:nth-child(1),
.logistica-kanban-products-table td:nth-child(1) {
  width: 66px;
}

.logistica-kanban-products-table th:nth-child(3),
.logistica-kanban-products-table td:nth-child(3) {
  width: 76px;
}

.logistica-kanban-products-table th:nth-child(4),
.logistica-kanban-products-table td:nth-child(4),
.logistica-kanban-products-table th:nth-child(5),
.logistica-kanban-products-table td:nth-child(5),
.logistica-kanban-products-table th:nth-child(6),
.logistica-kanban-products-table td:nth-child(6) {
  width: 82px;
}

.logistica-kanban-card-meta span,
.logistica-kanban-card-footer span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.logistica-kanban-empty {
  padding: 14px 10px;
  color: #7a858f;
  font-size: .86rem;
  text-align: center;
}



.logistica-metric {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-top: 1px solid #eef1f3;
}

.logistica-metric:first-of-type {
  border-top: 0;
}

.logistica-metric span {
  color: #6c757d;
  font-size: .9rem;
  font-weight: 600;
}

.logistica-metric strong {
  color: #212529;
  font-size: 1.05rem;
  text-align: right;
}

.logistica-routes-table {
  table-layout: fixed;
  border-collapse: separate;
  border-spacing: 0 3px;
}

.logistica-routes-table th:nth-child(2) {
  width: 58px;
}

.logistica-routes-table th:nth-child(3) {
  width: 62px;
}

.logistica-routes-table th,
.logistica-routes-table td {
  white-space: nowrap;
}

.logistica-routes-table tbody > tr {
  cursor: default !important;
}

.logistica-routes-table td:first-child {
  overflow: hidden;
}

.logistica-route-name {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 700;
}

.logistica-route-name > span:last-child {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.logistica-route-status-dot {
  flex: 0 0 auto;
  width: 9px;
  height: 9px;
  border-radius: 50%;
}

.logistica-route-status-dot.is-authorized {
  background: #a8dfba;
}

.logistica-route-status-dot.is-planning {
  background: #ffea91;
}

.logistica-routes-table-link[data-summary-route-row] {
  cursor: pointer !important;
}

.logistica-routes-table-link:hover td,
.logistica-routes-table-link:focus td {
  background: #f8fafc;
}

.logistica-routes-table-link.is-active td {
  background: #f5f6f7;
}

.logistica-routes-table-link td:first-child {
  border-top-left-radius: 8px;
  border-bottom-left-radius: 8px;
}

.logistica-routes-table-link td:last-child {
  border-top-right-radius: 8px;
  border-bottom-right-radius: 8px;
}

.logistica-route-cities {
  display: flex;
  gap: 5px;
  flex-wrap: nowrap;
  margin-top: 5px;
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  color: #6c757d;
  font-size: .78rem;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.logistica-route-cities::-webkit-scrollbar {
  display: none;
}

.logistica-route-cities > span {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 7px;
  border-radius: 999px;
  background: #f1f5f9;
  line-height: 1.35;
}

.logistica-route-cities > span.is-inactive {
  color: #842029;
  background: #f8d7da;
}

.logistica-route-remove {
  display: inline-flex;
  margin: 0;
}

.logistica-route-status {
  display: inline-flex;
  margin: 0;
}

.logistica-route-remove button,
.logistica-route-status button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  color: #842029;
  background: transparent;
  font-size: 14px;
  font-weight: 700;
  line-height: 0;
  font-family: Arial, sans-serif;
  vertical-align: middle;
}

.logistica-route-button-symbol {
  display: inline-block;
}

.logistica-route-add-btn .logistica-route-button-symbol {
  transform: translateY(-1px);
}

.logistica-route-button-symbol-minus {
  transform: translateY(-1px);
}

.logistica-route-remove button:hover,
.logistica-route-remove button:focus,
.logistica-route-status button:hover,
.logistica-route-status button:focus {
  background: #f8d7da;
}

.logistica-route-status button {
  color: #495057;
}

.logistica-route-reactivate button {
  width: auto;
  height: auto;
  border-radius: 0;
  color: #198754;
  background: transparent;
  font-size: 16px;
}

.logistica-route-reactivate button:hover,
.logistica-route-reactivate button:focus {
  color: #146c43;
  background: transparent !important;
}

.logistica-route-cities > span.is-inactive .logistica-route-status:not(.logistica-route-reactivate) button:hover,
.logistica-route-cities > span.is-inactive .logistica-route-status:not(.logistica-route-reactivate) button:focus {
  background: #eaf6ee;
}

.logistica-route-add {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 28px;
  gap: 6px;
  min-width: 0;
  margin-top: 8px;
}

.logistica-route-add .form-select {
  min-width: 0;
}

.logistica-route-add-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 0;
  border-radius: var(--icon-btn-radius);
  color: #198754;
  background: transparent;
  font-size: 20px;
  font-weight: 700;
  line-height: 1;
}

.logistica-route-add-btn:hover,
.logistica-route-add-btn:focus {
  color: #146c43;
  background: #eaf6ee;
}

.logistica-route-unassigned {
  border-top: 0;
}

.logistica-route-separator-row td {
  padding: 4px 0 7px !important;
  color: rgba(108, 117, 125, .38);
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 2px;
  text-align: center;
}

.logistica-route-separator {
  margin: 4px 0 7px;
  color: rgba(108, 117, 125, .38);
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 2px;
  text-align: center;
}

#btnInformar.is-informing {
  cursor: pointer;
}

.logistica-modal {
  position: fixed;
  inset: 0;
  z-index: 1050;
  overflow: hidden;
  overscroll-behavior: contain;
}

.logistica-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, .45);
}

.logistica-modal-dialog {
  position: relative;
  display: flex;
  flex-direction: column;
  width: min(860px, calc(100vw - 28px));
  max-height: min(760px, calc(100vh - 28px));
  margin: 14px auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 50px rgba(15, 23, 42, .22);
}

.logistica-products-modal-dialog {
  width: min(760px, calc(100vw - 28px));
}

.logistica-create-route-dialog {
  width: min(500px, calc(100vw - 28px));
  max-height: min(780px, calc(100vh - 28px));
}

.logistica-cautela-modal-dialog {
  width: min(360px, calc(100vw - 28px));
  font-family: inherit;
}

.logistica-cautela-modal-dialog .logistica-modal-body {
  display: grid;
  justify-items: center;
  gap: 12px;
}

.logistica-cautela-label {
  margin: 0;
  color: #495057;
  font-size: .875rem;
  font-weight: 600;
  line-height: 1.2;
}

.logistica-cautela-toggle {
  width: max-content;
}

.logistica-cautela-modal-dialog #cautelaQuantidade {
  width: 50%;
  font-family: inherit;
  text-align: center;
}

.logistica-cautela-hint {
  color: #6c757d;
  font-size: .82rem;
  font-weight: 600;
}

.logistica-cautela-actions {
  display: flex;
  justify-content: center;
}

.logistica-cautela-toggle button.is-active,
.logistica-cautela-toggle button[value].is-active {
  color: #146c43;
  background: #eaf7ef;
}

.logistica-mobile-modal-dialog,
.logistica-pedidos-fora-dialog {
  width: min(1360px, calc(100vw - 28px));
}

.logistica-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid #dee2e6;
}

.logistica-modal-header h2 {
  flex: 1 1 auto;
  min-width: 0;
  margin: 0;
  color: #212529;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0;
}

.logistica-modal-title-actions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.logistica-modal-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.logistica-modal-actions form {
  margin: 0;
}

.logistica-modal-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  padding: 0;
  border: 0;
  border-radius: var(--icon-btn-radius);
  color: #495057;
  background: transparent;
  font-family: Arial, sans-serif;
  font-size: 24px;
  line-height: 30px;
  text-align: center;
}

.logistica-modal-close:hover,
.logistica-modal-close:focus {
  background: #f1f3f5;
}

.logistica-modal-body {
  display: grid;
  gap: 10px;
  padding: 14px 16px 16px;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.logistica-mobile-grid {
  width: 100%;
  margin: 0;
}

@media (max-width: 991.98px) {
  .logistica-route-summary-toggle {
    display: inline-flex;
  }

  .logistica-route-summary-toggle.d-none {
    display: none;
  }

  .logistica-kanban-column.is-summary-mode .logistica-kanban-cards {
    display: none;
  }

  .logistica-kanban-column.is-summary-mode .logistica-route-orders-summary {
    display: block;
  }

  .logistica-mobile-modal-dialog {
    width: min(1000px, calc(100vw - 20px));
  }
}

.logistica-product-modal-search {
  position: sticky;
  top: 0;
  z-index: 1;
  width: 100%;
  max-width: none;
  padding-bottom: 4px;
  background: #fff;
}

.logistica-product-modal-search .form-control {
  min-height: 42px;
  border-radius: 10px;
}

.logistica-product-results {
  display: grid;
  gap: 8px;
}

.logistica-product-option {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #e4e7eb;
  border-radius: 8px;
  color: #212529;
  background: #fff;
  cursor: pointer;
  text-align: left;
}

.logistica-product-option:hover,
.logistica-product-option:focus {
  border-color: #8bb4d9;
  background: #f4f8fb;
}

.logistica-product-option.is-selected {
  border-color: #5680a7;
  background: #edf5fb;
}

.logistica-product-option-no-code {
  grid-template-columns: minmax(0, 1fr) auto auto;
}

.logistica-product-option.is-selected::after {
  justify-self: end;
  color: #198754;
  content: "Selecionado";
  font-size: .78rem;
  font-weight: 700;
}

.logistica-product-option-code {
  color: #5680a7;
  font-weight: 700;
}

.logistica-product-option-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.logistica-product-option-qty {
  color: #6c757d;
  font-size: .82rem;
  font-weight: 700;
  white-space: nowrap;
}

.logistica-execucao-list {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid #eef1f3;
}

.logistica-execucao-list.is-readonly {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.logistica-create-route-form {
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 14px;
  width: 100%;
}

#criarRotaModal .logistica-create-route-form .logistica-product-modal-search {
  position: static;
  width: min(100%, 200px) !important;
  max-width: 200px;
  padding-bottom: 0;
  border-radius: 10px;
  overflow: hidden;
}

#criarRotaModal .logistica-create-route-form .submenu-button {
  width: min(100%, 200px) !important;
  max-width: 200px;
  align-self: center;
}

.logistica-execucao-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  min-height: 54px;
  padding: 9px 10px;
  border: 1px solid #eef1f3;
  border-radius: 8px;
  background: #fff;
}

.logistica-execucao-info {
  display: grid;
  min-width: 0;
}

.logistica-execucao-info[data-execucao-url] {
  cursor: pointer;
}

.logistica-execucao-row + .logistica-execucao-row {
  margin-top: 7px;
}

.logistica-execucao-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: inherit;
  text-decoration: none;
}

.logistica-execucao-title-date,
.logistica-execucao-date-form {
  display: inline-flex;
  width: fit-content;
  max-width: 100%;
  margin: 0;
}

.logistica-execucao-date-input {
  width: 128px;
  min-height: 22px;
  padding: 0 4px 0 0;
  border: 0;
  color: #212529;
  background: transparent;
  font: inherit;
  font-weight: inherit;
  line-height: inherit;
}

.logistica-execucao-date-input::-webkit-calendar-picker-indicator {
  margin-left: 2px;
  transform: translateY(1px);
}

.logistica-execucao-date-input:hover,
.logistica-execucao-date-input:focus {
  color: #212529;
  outline: 0;
  text-decoration: underline;
}

.logistica-execucao-row:hover,
.logistica-execucao-row:focus-within {
  border-color: #d8e2ec;
  background: #f8fafc;
}

.logistica-execucao-delete-form {
  display: flex;
  margin: 0;
}

.logistica-execucao-delete-form button {
  min-width: 62px;
  min-height: 24px;
  padding: 2px 8px;
  font-size: .68rem;
}

.logistica-execucao-link span {
  display: flex;
  min-width: 0;
  flex-direction: column;
  line-height: 1.2;
}

.logistica-execucao-link span:last-child {
  flex: 0 0 auto;
  text-align: right;
}

.logistica-execucao-link strong {
  min-width: 0;
  overflow: hidden;
  font-size: .9rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.logistica-execucao-link small,
.logistica-execucao-empty {
  color: #6c757d;
  font-size: .78rem;
  font-weight: 700;
}

.logistica-execucao-empty {
  padding: 10px 0 2px;
}

.logistica-active-filter {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 0;
  margin-bottom: 8px;
  padding: 7px 10px;
  border: 1px solid #d8e5ef;
  border-radius: 8px;
  color: #315a7a;
  background: #f4f8fb;
  font-size: .9rem;
  font-weight: 600;
}

.logistica-active-filter button {
  flex: 0 0 auto;
  border: 0;
  color: #315a7a;
  background: transparent;
  font-weight: 700;
}

.logistica-active-filter button:hover,
.logistica-active-filter button:focus {
  color: #0d6efd;
}

.logistica-active-filter span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.logistica-route-config {
  min-width: 0;
  padding: 10px 0;
  border-bottom: 1px solid #eef1f3;
}

.logistica-route-config:last-child {
  border-bottom: 0;
}

.logistica-route-config-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
}

.logistica-route-config-head strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #212529;
  font-size: .95rem;
}

.logistica-route-config-head span {
  flex: 0 0 auto;
  color: #6c757d;
  font-size: .82rem;
  font-weight: 600;
}

.logistica-portos-panel {
  padding: 10px;
  border: 1px solid #eef1f3;
  border-radius: 8px;
  background: #fbfcfd;
}

.logistica-porto-create-form,
.logistica-rota-create-form,
.logistica-porto-edit-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 74px;
  align-items: center;
  gap: 7px;
  min-width: 0;
}

.logistica-porto-create-form,
.logistica-rota-create-form {
  margin-top: 8px;
}

.logistica-portos-list {
  display: grid;
  gap: 7px;
  margin-top: 9px;
}

.logistica-porto-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 74px 74px;
  gap: 7px;
  align-items: center;
}

.logistica-porto-row .logistica-porto-edit-form {
  display: contents;
}

.logistica-porto-row .logistica-porto-edit-form input {
  grid-column: 1;
}

.logistica-porto-row .logistica-porto-edit-form .screen-action-btn {
  grid-column: 2;
}

.logistica-porto-row .logistica-porto-delete-form {
  grid-column: 3;
}

.logistica-porto-delete-form {
  display: flex;
  margin: 0;
}

.logistica-porto-create-form .form-control,
.logistica-rota-create-form .form-control,
.logistica-porto-edit-form .form-control {
  height: 30px;
}

.logistica-porto-create-form .screen-action-btn,
.logistica-rota-create-form .screen-action-btn,
.logistica-porto-edit-form .screen-action-btn,
.logistica-porto-delete-form button,
.logistica-route-delete-form button {
  width: 74px;
  height: 30px;
  min-height: 30px;
  padding: 4px 10px;
  font-size: .78rem;
}

.logistica-porto-delete-form button,
.logistica-route-delete-form button {
  border: 1px solid #f0c7c7;
  border-radius: var(--icon-btn-radius);
  color: #9f1d1d;
  background: #fdecec;
  font-weight: 800;
  line-height: 1;
}

.logistica-porto-delete-form button:hover,
.logistica-porto-delete-form button:focus,
.logistica-route-delete-form button:hover,
.logistica-route-delete-form button:focus {
  background: #f9d7d7;
}

.logistica-route-port-row {
  display: grid;
  grid-template-columns: 46px minmax(0, 220px) 74px 74px;
  align-items: center;
  gap: 7px;
  width: fit-content;
  max-width: 100%;
  margin-top: 7px;
}

.logistica-route-port-form,
.logistica-route-delete-form {
  display: contents;
}

.logistica-route-port-form label {
  grid-column: 1;
  grid-row: 1;
  margin: 0;
  color: #6c757d;
  font-size: .72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.logistica-route-port-form .form-select {
  grid-column: 2;
  grid-row: 1;
  min-width: 0;
  height: 30px;
  padding-top: 3px;
  padding-bottom: 3px;
  color: #495057;
  font-size: .82rem;
  font-weight: 700;
}

.logistica-route-port-form .screen-action-btn {
  grid-column: 3;
  grid-row: 1;
  min-height: 30px;
  padding: 4px 10px;
  font-size: .78rem;
}

.logistica-route-delete-form button {
  grid-column: 4;
  grid-row: 1;
}

.logistica-route-config-unassigned {
  padding-top: 0;
}

body.logistica-modal-open {
  overflow: hidden;
  overscroll-behavior: none;
}

.logistica-footer-summary {
  padding-bottom: .75rem;
  color: #212529;
  font-weight: 600;
  text-align: right;
}


@media (max-width: 576px) {
  .logistica-kanban-header {
    align-items: stretch;
  }

  .logistica-kanban-controls {
    align-self: flex-start;
  }

  .logistica-embarcacao-meta,
  .logistica-embarcacao-fields,
  .logistica-embarcacao-city-add,
  .logistica-embarcacao-escalas {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 576px) {
  .logistica-client {
    overflow: visible;
    text-overflow: clip;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .logistica-inline {
    gap: 8px;
  }

  .logistica-product-option {
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 8px;
    padding: 9px 10px;
  }

  .logistica-product-option-no-code {
    grid-template-columns: minmax(0, 1fr);
  }

  .logistica-product-option-qty {
    grid-column: 1 / -1;
  }

  .logistica-product-option.is-selected::after {
    grid-column: 1 / -1;
    justify-self: start;
  }

  .logistica-active-filter {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }

  .logistica-active-filter span {
    white-space: normal;
  }
}

@media (max-width: 768px) {
  .logistica-grid {
    --bs-gutter-y: .75rem;
  }

  .logistica-summary,
  .logistica-routes {
    padding: 12px;
    border-radius: 8px;
  }

  .logistica-kanban-section {
    padding-top: 0;
  }

  .logistica-kanban-nav {
    position: sticky;
    top: 0;
    z-index: 3;
    margin: 0 -4px 8px;
    padding: 4px 0;
    background: #fff;
  }

  .logistica-kanban-dots {
    justify-content: flex-start;
    width: fit-content;
    max-width: 100%;
    margin: 0 auto;
    padding: 8px 6px;
  }

  .logistica-kanban-column-head {
    padding-top: 6px;
  }

  .logistica-kanban-route-title {
    align-items: flex-start;
    gap: 6px;
  }

  .logistica-kanban-route-title strong {
    flex-basis: 100%;
    order: 0;
    font-size: 1.05rem;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .logistica-kanban-route-badges {
    position: static;
    justify-content: flex-start;
    order: 1;
    width: 100%;
    min-height: 0;
  }

  .logistica-kanban-totals,
  .logistica-kanban-cities {
    white-space: normal;
  }

  .logistica-kanban-cards {
    gap: 10px;
    padding: 8px 0;
  }

  .logistica-route-order-card .card-body {
    align-items: stretch;
    flex-direction: column;
    gap: 10px;
    padding-bottom: 12px;
  }

  .logistica-route-order-card .title-line,
  .logistica-route-order-card .logistica-card-subline,
  .logistica-route-order-card .logistica-inline {
    white-space: normal;
  }

  .logistica-route-order-card .title-line {
    align-items: flex-start;
    gap: 6px 8px;
  }

  .logistica-embarcacao-row {
    margin-bottom: 0;
  }

  .logistica-embarcacao-form,
  .logistica-embarcacao-pill {
    grid-template-columns: 96px minmax(0, 1fr);
    width: 100%;
    padding: 4px 0;
  }

  .logistica-embarcacao-form .form-select {
    min-height: 36px;
    padding-top: 5px;
    padding-bottom: 5px;
    font-size: .9rem;
  }

  .logistica-pedido-actions {
    align-self: flex-end;
    flex-wrap: wrap;
    justify-content: flex-end;
    width: 100%;
    margin-left: 0;
    padding-top: 8px;
  }

  .logistica-route-card-details,
  .logistica-route-card-details.sem-embarcacao {
    margin-top: 0;
    padding-top: 10px;
  }

  .logistica-route-card-details .logistica-order-note {
    margin-bottom: .75rem;
  }

  .logistica-pedido-fora-head {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
  }

  .logistica-pedido-fora-metrics {
    justify-content: flex-start;
    max-width: none;
  }

  .logistica-pedido-fora-card .logistica-card-meta,
  .logistica-pedido-fora-card .logistica-card-subline span,
  .logistica-pedido-fora-card .logistica-client {
    max-width: 100%;
  }

  .logistica-modal {
    padding: 0;
  }

  .logistica-modal-dialog,
  .logistica-products-modal-dialog,
  .logistica-create-route-dialog,
  .logistica-mobile-modal-dialog,
  .logistica-pedidos-fora-dialog {
    width: min(860px, calc(100vw - 20px));
    max-width: calc(100vw - 20px);
    max-height: calc(100dvh - 20px);
    margin: 10px auto;
    border-radius: 8px;
  }

  .logistica-route-action-dialog,
  .logistica-pedido-info-dialog {
    max-width: calc(100vw - 20px);
  }

  .logistica-modal-header {
    align-items: flex-start;
    gap: 8px;
    padding: 12px;
  }

  .logistica-modal-header h2 {
    min-width: 0;
    font-size: 1rem;
    overflow-wrap: anywhere;
  }

  .logistica-modal-actions,
  .logistica-modal-title-actions {
    flex-wrap: wrap;
    justify-content: flex-end;
    min-width: 0;
  }

  .logistica-modal-body {
    flex: 1 1 auto;
    min-height: 0;
    padding: 12px;
  }

  .logistica-product-option {
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 8px;
  }

  .logistica-product-option-no-code {
    grid-template-columns: minmax(0, 1fr);
  }

  .logistica-product-option-name {
    white-space: normal;
    overflow-wrap: break-word;
    word-break: normal;
  }

  .logistica-product-option-qty,
  .logistica-product-option.is-selected::after {
    grid-column: 1 / -1;
  }

  .logistica-route-action-footer {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  .logistica-route-action-footer .screen-action-btn {
    flex: 0 0 auto;
    width: auto;
    min-width: 0;
  }

  .logistica-execucao-row,
  .logistica-execucao-link {
    align-items: stretch;
    grid-template-columns: 1fr;
  }

  .logistica-execucao-link {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }

  .logistica-execucao-link span:last-child {
    text-align: left;
  }

  .logistica-execucao-delete-form {
    justify-self: end;
  }

  .logistica-execucao-delete-form button {
    width: auto;
  }

  .logistica-route-config-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .logistica-route-config-head span {
    text-align: left;
  }

  .logistica-porto-create-form,
  .logistica-porto-row,
  .logistica-route-port-row {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
  }

  .logistica-porto-row .logistica-porto-edit-form,
  .logistica-porto-row .logistica-porto-edit-form input,
  .logistica-porto-row .logistica-porto-edit-form .screen-action-btn,
  .logistica-porto-row .logistica-porto-delete-form,
  .logistica-route-port-form label,
  .logistica-route-port-form .form-select,
  .logistica-route-port-form .screen-action-btn,
  .logistica-route-delete-form button {
    grid-column: auto;
    grid-row: auto;
  }

  .logistica-route-port-form,
  .logistica-route-delete-form {
    display: grid;
    gap: 6px;
  }

  .logistica-porto-create-form .screen-action-btn,
  .logistica-porto-edit-form .screen-action-btn,
  .logistica-porto-delete-form button,
  .logistica-route-port-form .screen-action-btn,
  .logistica-route-delete-form button {
    width: 100%;
  }
}

@media (max-width: 420px) {
  .logistica-status-toggle {
    width: 100%;
  }

  .logistica-status-toggle button {
    flex: 1 1 0;
  }

  .logistica-rota-add-pedido-button,
  .logistica-rota-add-base-button,
  .logistica-rota-merge-button,
  .logistica-rota-print-button,
  .logistica-route-summary-toggle,
  .logistica-selected-orders-print-button,
  .logistica-rota-delete-form,
  .logistica-rota-delete-form button {
    flex: 0 0 auto;
  }
}
.logistica-produto-preco-divergente {
  opacity: .3;
}
