:host {
  display: block;
  background-color: #fff;
  border-radius: 16px;
  padding: 1.5rem;
  width: 100%;
  max-width: 920px;
  margin: auto;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.detail-header,
.payments-header,
.detail-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
}

.detail-header {
  margin-bottom: 1rem;
}

.summary-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 1rem;
}

.summary-chip,
.detail-card,
.payments-card {
  border-radius: 16px;
  border: 1px solid rgba(8, 81, 118, 0.08);
  background: #f9fbfc;
}

.summary-chip {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;

  strong {
    font-size: 1.1rem;
  }
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 1rem;
}

.detail-card,
.payments-card {
  padding: 1.25rem;
}

.detail-card h5,
.payments-card h5 {
  margin-bottom: 1rem;
}

.detail-row {
  padding: 0.65rem 0;
  border-bottom: 1px solid rgba(8, 81, 118, 0.08);

  span {
    color: #48616d;
  }

  strong {
    text-align: right;
  }

  &.full {
    flex-direction: column;

    strong {
      text-align: left;
    }
  }
}

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

.status-box {
  background: #fff;
  border: 1px dashed rgba(8, 81, 118, 0.22);
  border-radius: 12px;
  padding: 1rem;
  color: #48616d;

  &.error {
    background: #fff1f1;
    border-style: solid;
    border-color: rgba(220, 53, 69, 0.2);
    color: #842029;
  }

  &.empty {
    background: #f6f8fa;
  }
}

.routes-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 0.6rem;

  th,
  td {
    padding: 0.85rem 1rem;
    background-color: #ffffff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    vertical-align: middle;
  }

  th {
    background-color: #e0e0e0;
    color: #085176;
    font-size: 0.85rem;
    text-transform: uppercase;
  }
}

@media (max-width: 768px) {
  .detail-header {
    flex-direction: column;
  }

  .summary-strip,
  .detail-grid {
    grid-template-columns: 1fr;
  }
}
