.orders-page {
  padding: var(--page-padding);
  background-color: var(--bg-main);
  min-height: 100vh;
}

.orders-container {
  max-width: 800px;
  margin: 0 auto;
}

.section-title {
  font-size: 2rem;
  margin-bottom: 30px;
  text-align: center;
}

.order-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 20px;
  margin-bottom: 15px;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
  cursor: pointer;
  overflow: hidden;
}

.order-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 12px;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 15px;
}

.toggle-icon {
  font-size: 0.9rem;
  color: var(--text-muted);
  transition: transform 0.3s ease;
}

.order-card.is-open .toggle-icon {
  transform: rotate(180deg);
}

.order-details-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
}

.items-list {
  padding: 15px 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.order-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px;
  border-radius: var(--radius-sm);
  transition: background-color 0.2s ease;
  border-bottom: 1px dashed var(--border-light);
}

.order-item:hover {
  background-color: var(--bg-main);
}

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

.item-main-info {
  display: flex;
  align-items: center;
  gap: 15px;
}

.item-img {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 4px;
  background-color: var(--border-light);
}

.item-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.item-name {
  font-family: var(--font-body);
  font-weight: 600;
  color: var(--text-main);
  font-size: 1rem;
}

.item-type {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.item-details {
  text-align: right;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.item-dates {
  font-size: 0.8rem;
  color: var(--accent-gold);
  font-family: var(--font-body);
}

.item-price {
  font-weight: 600;
  color: var(--text-main);
  font-size: 1.05rem;
}

.order-number {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--text-main);
}

.order-date {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-left: 10px;
  font-family: var(--font-body);
}

.order-status {
  padding: 4px 12px;
  border-radius: 20px;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  background: var(--border-light);
}

.status-pending {
  background: #fff3cd;
  color: #856404;
}

.status-completed {
  background: #d4edda;
  color: #155724;
}

.status-active-rent {
  background: #cce5ff;
  color: #004085;
}

.order-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 0;
  border-top: 1px solid var(--border-light);
  padding-top: 12px;
}

.order-actions {
  display: flex;
  gap: 10px;
}

.edit-btn {
  padding: 8px 16px;
  background-color: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border-color);
  border-radius: 4px;
  cursor: pointer;
  font-family: var(--font-body);
  font-weight: 500;
  transition: all 0.2s ease;
}

.edit-btn:hover {
  background-color: var(--border-light);
  color: var(--text-main);
}

.order-total {
  font-family: var(--font-body);
  font-size: 1.1rem;
  color: var(--text-main);
}

.order-total strong {
  font-family: var(--font-body);
  font-size: 1.3rem;
}

.pay-btn {
  padding: 8px 16px;
  background-color: var(--accent-gold);
  color: var(--text-main);
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-family: var(--font-body);
  font-weight: 600;
  transition: opacity 0.2s ease;
}

.pay-btn:hover {
  opacity: 0.9;
}

.loading-msg,
.no-orders {
  text-align: center;
  padding: 40px;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  color: var(--text-muted);
  font-family: var(--font-body);
  box-shadow: var(--shadow-sm);
}

@media (max-width: 600px) {
  .order-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .item-details {
    text-align: left;
    width: 100%;
    border-top: 1px solid var(--border-light);
    padding-top: 8px;
  }
}
