.orders-page {
  padding: 24px 0 36px;
}

.orders-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

.orders-panel h1 {
  margin-bottom: 24px;
  font-size: clamp(2.2rem, 4vw, 3.4rem);
}

.order-status-panel {
  padding: 30px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(223, 230, 235, 0.92);
  box-shadow: var(--shadow-sm);
}

.order-status-intro {
  max-width: 620px;
  margin: -12px 0 22px;
  color: var(--color-text-soft);
  line-height: 1.6;
}

.order-status-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
  gap: 14px;
  align-items: end;
}

.order-status-form .btn {
  min-width: 190px;
}

.orders-table-card,
.order-detail-card {
  border-radius: 28px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid rgba(223, 230, 235, 0.92);
  box-shadow: var(--shadow-sm);
}

.orders-table-card {
  overflow-x: auto;
}

.orders-table {
  min-width: 680px;
  width: 100%;
  border-collapse: collapse;
}

.orders-table th,
.orders-table td {
  padding: 18px 16px;
  text-align: left;
  border-bottom: 1px solid rgba(223, 230, 235, 0.9);
}

.orders-table th {
  color: var(--color-text-soft);
  font-size: 0.95rem;
}

.orders-table tbody tr:last-child td {
  border-bottom: 0;
}

.order-row {
  cursor: pointer;
  transition: background-color var(--transition);
}

.order-row:hover,
.order-row.is-selected {
  background: rgba(17, 132, 77, 0.08);
}

.order-detail-card {
  margin-top: 20px;
}

.detail-header {
  margin-bottom: 18px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.detail-header h2 {
  margin-bottom: 6px;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
}

.detail-header p,
.detail-box p {
  color: var(--color-text-soft);
  line-height: 1.5;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 18px;
  border-radius: 14px;
  color: #fff;
  background: var(--color-primary);
  font-weight: 900;
  white-space: nowrap;
}

.status-badge--success {
  background: var(--color-primary);
}

.status-badge--danger {
  background: #0f7d45;
}

.status-badge--pending {
  color: var(--color-primary);
  background: var(--color-primary-soft);
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 18px;
}

.detail-box,
.totals-row {
  padding: 18px;
  border-radius: 20px;
  background: rgba(248, 250, 252, 0.92);
  border: 1px solid rgba(223, 230, 235, 0.85);
}

.detail-box h3,
.product-list h3 {
  margin-bottom: 12px;
  font-size: 1.25rem;
}

.detail-box strong {
  display: block;
  margin-bottom: 10px;
  font-size: 1.7rem;
}

.product-list {
  display: grid;
  gap: 12px;
}

.product-line,
.totals-row {
  display: grid;
  grid-template-columns: 1.8fr repeat(3, 1fr);
  gap: 14px;
  align-items: center;
}

.product-line {
  padding: 16px 18px;
  border-radius: 18px;
  background: rgba(248, 250, 252, 0.9);
  border: 1px solid rgba(223, 230, 235, 0.85);
}

.product-line__item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
}

.product-thumb {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(17, 132, 77, 0.12), rgba(52, 95, 156, 0.08));
  font-size: 1.5rem;
}

.detail-actions {
  margin-top: 18px;
  display: flex;
  justify-content: flex-end;
  gap: 14px;
}

.orders-footer {
  padding-bottom: 28px;
  color: var(--color-text-soft);
}

.trust-strip--compact {
  grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 1100px) {
  .order-status-form,
  .detail-grid,
  .product-line,
  .totals-row,
  .trust-strip--compact {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .order-status-panel,
  .orders-table-card,
  .order-detail-card {
    padding: 14px;
    border-radius: 20px;
  }

  .detail-actions {
    flex-direction: column;
  }

  .detail-actions .btn {
    width: 100%;
  }
}
