
.table td, .table th {
  text-align: center;
  vertical-align: middle;
}


/* Removido display: flex das células padrão */

/* Estilo flexível apenas para células com botões */
.table td .status-actions {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
  justify-content: center;
}

.table td button {
  margin: 3px;
}

/* Estilos para status */
.status-despachado { background-color: #d4edda; color: #155724; }
.status-producao { background-color: #cce5ff; color: #004085; }
.status-disponivel { background-color: #fff3cd; color: #856404; }


.timeline-horizontal {
  display: flex;
  justify-content: space-between;
  width: 100%;
  max-width: none;
  padding: 20px 0;
  margin: 10px 0;
  flex-grow: 1;
}

.timeline-item-horizontal {
  flex: 1;
  position: relative;
  text-align: center;
}

.timeline-content-horizontal {
  border: 1px solid #ddd;
  border-radius: 8px;
  background-color: #f9f9f9;
  padding: 15px;
  margin: 5px;
}

.timeline-content-horizontal h5 {
  font-size: 1rem;
  margin-bottom: 5px;
}

.timeline-content-horizontal p {
  font-size: 0.9rem;
  margin-bottom: 0;
}

.timeline-item-horizontal::before {
  content: '';
  position: absolute;
  top: 50%;
  right: -10px;
  transform: translateY(-50%);
  width: 10px;
  height: 10px;
  background-color: #ddd;
  border-radius: 50%;
}

.timeline-item-horizontal:last-child::before {
  display: none;
}

.order-form .container {
  color: #4c4c4c;
  padding: 5px;
  box-shadow: 0 0 10px 0 rgba(0, 0, 0, .1);
  max-width: 100%;
}

.order-form-label {
  margin: 5px 0 0 0;
  font-size: 14px;
  font-weight: bold;
}

.order-form-input,
.form-label,
.form-check-label {
  font-family: 'Open Sans', sans-serif;
  font-size: 14px;

}

.btn-submit:hover {
  background-color: #0D47A1 !important;
}

.order-box {
  background-color: white;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.1);
  margin: 20px auto;
  max-width: 950px;
  display: flex;
  flex-direction: column;
  gap: 10px; /* Espaço entre os elementos */
}

.order-box h5 {
  text-align: center;
  font-size: 1.2rem;
  margin-bottom: 15px;
}

.order-box .table {
  width: 100%;
  text-align: center;
  border-collapse: collapse;
}

.order-box .table th,
.order-box .table td {
  padding: 10px;
  border: 1px solid #ddd;
  text-align: center;
}

/* Ajusta os campos dentro do formulário */
.order-box .form-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
}

.order-box input,
.order-box select {
  flex: 1;
  min-width: 150px;
  padding: 8px;
  border: 1px solid #ddd;
  border-radius: 5px;
}

.order-container {
  background-color: white;
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  margin-bottom: 20px;
}

.order-title {
  font-size: 1.2rem;
  font-weight: bold;
  text-align: center;
  margin-bottom: 10px;
}

.order-actions {
  text-align: center;
  margin-bottom: 15px;
}

.order-docs {
  text-align: center;
  background: #f9f9f9;
  padding: 10px;
  border-radius: 8px;
  margin-bottom: 15px;
}

.order-info {
  display: flex;
  justify-content: space-around;
  padding: 10px 0;
}

.timeline-horizontal {
  display: flex;
  justify-content: space-between;

  padding: 10px;
  border-radius: 8px;
}

.timeline-item-horizontal {
  flex: 1;
  text-align: center;
  padding: 10px;
 
  border-radius: 8px;
  background-color: white;
  margin: 5px;
}



@media (max-width: 576px) {
  body {
      font-size: 15px;
  }

  .container {
      width: 100%;
      margin-top: 1.5rem;
  }

  h1, h2, h3 {
      font-size: 1.5rem;
      text-align: center;
  }

  p {
      font-size: 1rem;
      line-height: 1.6;
  }

  img {
      max-height: 300px;
      object-fit: contain;
      margin: 0 auto;
  }

  button, .btn {
    width: 50%;
    display: inline;
    margin-bottom: 1rem;
  }

  .product-details {
      padding: 1rem;
      box-shadow: none;

      
  }

  
}

/* 📲 Responsividade para tablets (768px a 991px) */
@media (max-width: 991px) and (min-width: 768px) {
  body {
      font-size: 15.5px;
  }

  .container {
      width: 100%;
  }

  img {
      max-height: 400px;
  }

  .product-details {
      padding: 1.5rem;
  }

  button, .btn {
      width: 100%;
      margin-bottom: 1rem;
  }
  th.d-none, td.d-none {
    display: none !important;
  }
}

@media (max-width: 768px) {
  .table {
      display: block;
      overflow-x: auto;
      white-space: nowrap;
  }

  .table td, .table th {
      font-size: 12px;
      padding: 6px;
  }

  .table td .status-actions {
      flex-direction: column;
      gap: 5px;
  }

  .timeline-horizontal {
      flex-direction: column;
      align-items: center;
  }

  .timeline-item-horizontal {
      width: 100%;
      margin-bottom: 10px;
  }

  .order-box {
      padding: 15px;
      max-width: 100%;
  }

  .order-box .form-group {
      flex-direction: column;
      align-items: stretch;
  }
  .order-box input,
      .order-box select {
          width: 100% !important;
          min-width: unset;
          flex: unset;
      }
  .order-box .table {
      display: table;
      table-layout: auto;
      width: 100%;
  }

  .order-box,
  .order-container {
      padding: 10px;
      max-width: 100%;
  }

  .order-box .table td input.order-form-input {
      width: 100%;
      min-width: 50px;
      max-width: 100%;
      box-sizing: border-box;
      text-align: center;
  }

  .order-box .table th {
      max-width: 100%;
      overflow: hidden;
      white-space: normal;
      word-wrap: break-word;
  }

  .order-box .table-wrapper {
      overflow-x: auto;
      max-width: 100%;
  }

  .order-info {
      flex-direction: column;
      gap: 10px;
      text-align: center;
  }

  .order-title {
      font-size: 1rem;
  }

  .order-actions {
      margin-bottom: 10px;
  }

  .timeline-content-horizontal {
      padding: 10px;
  }

  button, input, select {
      min-height: 40px;
  }

  .status-actions {
      flex-direction: column;
      gap: 5px;
  }

  .order-box .table td {
      white-space: normal;
      word-wrap: break-word;
  }

  
}

