.container {
  width: 90%;
  max-width: 1000px;
  padding: 20px;
}

.title {
  text-align: center;
  font-size: 250%;
  color: #044c92;
}

.history-card {
  background-color: #ffffff;
  border: 1px solid #ddd;
  border-radius: 8px;
  margin-bottom: 30px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.card-header {
  background: #012447;
  padding: 15px 20px;
  border-radius: 8px 8px 0 0;
  text-align: center;
}

.card-header h2 {
  margin-top: 0;
  font-size: 20px;
  color: #ffffff;
}

.card-header p {
  margin: 5px 0 0;
  font-size: 14px;
  color: #eeeeee;
}

.card-body {
  padding: 20px;
}

.detail-group {
  padding-left: 1rem;
  border-bottom: 1px dashed #eee;
  margin-bottom: 1rem;
}

.detail-group p {
  margin: 5px 0;
}

/* --- Tabela de Itens (Itinerários) --- */
.cart-table {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.cart-row {
  /* Ajuste as colunas para Trecho/Passageiro, Assento, Valor */
  display: grid;
  grid-template-columns: 3fr 1fr 1fr;
  padding: 0.5rem 0.5rem;
  margin: 0;
  align-items: center;
}

.header-row {
  color: white;
  font-weight: bold;
  text-transform: uppercase;
  text-align: center;
  background-color: #7f8284;
  border-radius: 6px;
  margin-top: 0.2rem;
  padding: 1rem;
}

.item-row {
  border-bottom: 1px solid #eee;
}

.item-row:last-child {
  border-bottom: none;
}

.col-item {
  text-align: left;
  font-weight: 500;
  padding-left: 0.5rem;
}

.cart-row.header-row span,
.cart-row.item-row span:not(:first-child) {
  text-align: center;
}
.cart-row.header-row span {
  font-weight: bold;
}

.customization-details {
  display: block;
  font-size: 12px;
  color: #888;
  margin-top: 5px;
}

.col-seat,
.col-value-base {
  text-align: center;
}

/* --- Rodapé do Card do Histórico (aquela parte do Total) --- */
.card-footer {
  background: #044c92;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 3.1rem 0.5rem 1rem;
  border-top: 1px solid #ddd;
  border-radius: 8px;
}

.card-footer p {
  font-size: 18px;
  font-weight: bold;
  margin: 0;
  color: white;
}

.empty-state {
  text-align: center;
  color: #666666;
}
