/* ========== Order Management ========== */
/* ========== Order Management Page ========== */

.om-content {
  padding: 24px 28px;
}

/* Breadcrumb */
.om-breadcrumb {
  font-size: 13px;
  color: var(--gray-400, #999);
  margin-bottom: 20px;
}
.om-breadcrumb a {
  color: var(--gray-500, #666);
  text-decoration: none;
  transition: color 0.2s;
}
.om-breadcrumb a:hover {
  color: var(--primary, #e23a3a);
}
.om-breadcrumb .sep {
  margin: 0 6px;
  color: var(--gray-300, #ccc);
}
.om-breadcrumb .current {
  color: var(--gray-700, #333);
}

/* Page Header */
.om-page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}
.om-page-header h2 {
  font-size: 20px;
  font-weight: 600;
  color: var(--gray-800, #222);
}
.om-header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}
.om-search-box {
  display: flex;
  align-items: center;
  border: 1px solid var(--gray-200, #e0e0e0);
  border-radius: 8px;
  overflow: hidden;
  background: white;
  transition: border-color 0.2s;
}
.om-search-box:focus-within {
  border-color: var(--primary, #e23a3a);
  box-shadow: 0 0 0 3px rgba(226,58,58,0.08);
}
.om-search-box input {
  border: none;
  outline: none;
  padding: 8px 14px;
  font-size: 13px;
  width: 220px;
  color: var(--gray-800, #222);
}
.om-search-box input::placeholder {
  color: var(--gray-300, #bbb);
}
.om-search-box button {
  background: var(--primary, #e23a3a);
  color: white;
  border: none;
  padding: 8px 16px;
  font-size: 13px;
  cursor: pointer;
  transition: background 0.2s;
}
.om-search-box button:hover {
  background: var(--primary-dark, #c62828);
}

/* Tabs */
.om-tabs {
  display: flex;
  align-items: center;
  background: white;
  border-radius: 12px;
  padding: 4px;
  margin-bottom: 20px;
  border: 1px solid var(--gray-200, #e8e8e8);
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}
.om-tab {
  flex: 1;
  text-align: center;
  padding: 12px 16px;
  font-size: 14px;
  color: var(--gray-500, #666);
  cursor: pointer;
  border-radius: 8px;
  transition: all 0.25s;
  position: relative;
  font-weight: 500;
  user-select: none;
}
.om-tab:hover {
  color: var(--gray-700, #333);
  background: var(--gray-100, #f8f8f8);
}
.om-tab.active {
  background: var(--primary, #e23a3a);
  color: white;
  box-shadow: 0 2px 8px rgba(226,58,58,0.25);
}
.om-tab .tab-badge {
  display: inline-block;
  background: #ff4d4f;
  color: white;
  font-size: 11px;
  min-width: 18px;
  height: 18px;
  line-height: 18px;
  padding: 0 5px;
  border-radius: 9px;
  margin-left: 4px;
  font-weight: 500;
  vertical-align: middle;
}
.om-tab.active .tab-badge {
  background: white;
  color: var(--primary, #e23a3a);
}

/* Filter bar */
.om-filter-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.om-filter-select {
  height: 36px;
  border: 1px solid var(--gray-200, #e0e0e0);
  border-radius: 8px;
  padding: 0 12px;
  font-size: 13px;
  color: var(--gray-700, #333);
  outline: none;
  background: white;
  cursor: pointer;
  transition: border-color 0.2s;
  min-width: 120px;
}
.om-filter-select:focus {
  border-color: var(--primary, #e23a3a);
}
.om-filter-date {
  height: 36px;
  border: 1px solid var(--gray-200, #e0e0e0);
  border-radius: 8px;
  padding: 0 12px;
  font-size: 13px;
  color: var(--gray-700, #333);
  outline: none;
  background: white;
  transition: border-color 0.2s;
}
.om-filter-date:focus {
  border-color: var(--primary, #e23a3a);
}
.om-filter-label {
  font-size: 13px;
  color: var(--gray-500, #666);
}

/* Order list */
.om-order-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Order card */
.om-order-card {
  background: white;
  border-radius: 12px;
  border: 1px solid var(--gray-200, #e8e8e8);
  overflow: hidden;
  transition: all 0.2s;
}
.om-order-card:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.06);
  border-color: var(--gray-300, #ddd);
}

/* Order card header */
.om-order-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  background: #fafafa;
  border-bottom: 1px solid var(--gray-100, #f0f0f0);
}
.om-order-header-left {
  display: flex;
  align-items: center;
  gap: 16px;
}
.om-order-time {
  font-size: 13px;
  color: var(--gray-500, #666);
}
.om-order-id {
  font-size: 13px;
  color: var(--gray-500, #666);
}
.om-order-id span {
  color: var(--gray-700, #333);
  font-weight: 500;
}
.om-order-store {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: var(--gray-800, #222);
  font-weight: 500;
}
.om-order-store svg {
  width: 16px;
  height: 16px;
  fill: var(--gray-500, #666);
}
.om-order-header-right {
  display: flex;
  align-items: center;
}
.om-order-status {
  font-size: 14px;
  font-weight: 600;
}
.om-order-status.status-pending {
  color: #ff9800;
}
.om-order-status.status-paid {
  color: #2196f3;
}
.om-order-status.status-shipped {
  color: var(--primary, #e23a3a);
}
.om-order-status.status-completed {
  color: #4caf50;
}
.om-order-status.status-cancelled {
  color: var(--gray-400, #999);
}
.om-order-status.status-refund {
  color: #9c27b0;
}

/* Order items area */
.om-order-items {
  padding: 16px 20px;
}

.om-order-product {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 0;
  border-bottom: 1px solid var(--gray-100, #f5f5f5);
}
.om-order-product:last-child {
  border-bottom: none;
}
.om-order-product-img {
  width: 72px;
  height: 72px;
  border-radius: 8px;
  background: var(--gray-100, #f5f5f5);
  flex-shrink: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.om-order-product-img svg {
  width: 32px;
  height: 32px;
  fill: var(--gray-300, #ccc);
}
.om-order-product-info {
  flex: 1;
  min-width: 0;
}
.om-order-product-name {
  font-size: 14px;
  color: var(--gray-800, #222);
  font-weight: 500;
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.om-order-product-spec {
  font-size: 12px;
  color: var(--gray-400, #999);
  margin-bottom: 4px;
}
.om-order-product-bottom {
  display: flex;
  align-items: center;
  gap: 8px;
}
.om-order-product-price {
  font-size: 15px;
  font-weight: 600;
  color: var(--primary, #e23a3a);
}
.om-order-product-price .symbol {
  font-size: 12px;
}
.om-order-product-qty {
  font-size: 13px;
  color: var(--gray-400, #999);
}

/* Order right summary (inline) */
.om-order-product-right {
  text-align: right;
  flex-shrink: 0;
  min-width: 100px;
}
.om-order-total-label {
  font-size: 12px;
  color: var(--gray-400, #999);
  margin-bottom: 2px;
}
.om-order-total {
  font-size: 18px;
  font-weight: 700;
  color: var(--primary, #e23a3a);
}
.om-order-total .symbol {
  font-size: 13px;
}
.om-order-product-count {
  font-size: 12px;
  color: var(--gray-400, #999);
  margin-top: 2px;
}

/* Order card footer */
.om-order-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  border-top: 1px solid var(--gray-100, #f0f0f0);
  background: #fafafa;
}
.om-order-footer-left {
  display: flex;
  align-items: center;
  gap: 8px;
}
.om-order-remark {
  font-size: 12px;
  color: var(--gray-400, #999);
}
.om-order-footer-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.om-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 32px;
  padding: 0 16px;
  border-radius: 6px;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
  font-weight: 500;
}
.om-btn-primary {
  background: var(--primary, #e23a3a);
  color: white;
}
.om-btn-primary:hover {
  background: var(--primary-dark, #c62828);
}
.om-btn-outline {
  background: white;
  color: var(--gray-600, #555);
  border: 1px solid var(--gray-200, #e0e0e0);
}
.om-btn-outline:hover {
  border-color: var(--primary, #e23a3a);
  color: var(--primary, #e23a3a);
}
.om-btn-danger {
  background: white;
  color: #f44336;
  border: 1px solid #ffcdd2;
}
.om-btn-danger:hover {
  background: #fff5f5;
  border-color: #f44336;
}
.om-btn-text {
  background: none;
  color: var(--gray-500, #666);
  border: none;
  padding: 0 8px;
}
.om-btn-text:hover {
  color: var(--primary, #e23a3a);
}

/* Pagination */
.om-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  margin-top: 28px;
  padding-bottom: 20px;
}
.om-page-btn {
  min-width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--gray-200, #e0e0e0);
  border-radius: 8px;
  background: white;
  color: var(--gray-600, #555);
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s;
}
.om-page-btn:hover {
  border-color: var(--primary, #e23a3a);
  color: var(--primary, #e23a3a);
}
.om-page-btn.active {
  background: var(--primary, #e23a3a);
  color: white;
  border-color: var(--primary, #e23a3a);
}
.om-page-btn.disabled {
  color: var(--gray-300, #ccc);
  cursor: not-allowed;
  border-color: var(--gray-100, #f0f0f0);
}
.om-page-btn.disabled:hover {
  color: var(--gray-300, #ccc);
  border-color: var(--gray-100, #f0f0f0);
}
.om-page-info {
  font-size: 13px;
  color: var(--gray-400, #999);
  margin: 0 12px;
}

/* Empty state */
.om-empty {
  text-align: center;
  padding: 60px 20px;
  background: white;
  border-radius: 12px;
  border: 1px solid var(--gray-200, #e8e8e8);
}
.om-empty-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 16px;
  background: var(--gray-100, #f5f5f5);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.om-empty-icon svg {
  width: 40px;
  height: 40px;
  fill: var(--gray-300, #ccc);
}
.om-empty-text {
  font-size: 15px;
  color: var(--gray-400, #999);
  margin-bottom: 20px;
}
.om-empty-link {
  color: var(--primary, #e23a3a);
  text-decoration: none;
  font-size: 14px;
}
.om-empty-link:hover {
  text-decoration: underline;
}

/* Order detail modal */
.om-modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.45);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  animation: omFadeIn 0.2s ease;
}
.om-modal-overlay.show {
  display: flex;
}
@keyframes omFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes omSlideUp {
  from { transform: translateY(30px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.om-modal {
  background: white;
  border-radius: 16px;
  width: 640px;
  max-width: 90vw;
  max-height: 85vh;
  overflow-y: auto;
  animation: omSlideUp 0.3s ease;
  box-shadow: 0 20px 60px rgba(0,0,0,0.15);
}
.om-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--gray-100, #f0f0f0);
  position: sticky;
  top: 0;
  background: white;
  z-index: 1;
  border-radius: 16px 16px 0 0;
}
.om-modal-header h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--gray-800, #222);
}
.om-modal-close {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--gray-400, #999);
  padding: 4px;
  border-radius: 6px;
  transition: all 0.2s;
  display: flex;
  align-items: center;
}
.om-modal-close:hover {
  background: var(--gray-100, #f5f5f5);
  color: var(--gray-700, #333);
}
.om-modal-close svg {
  width: 20px;
  height: 20px;
}
.om-modal-body {
  padding: 24px;
}
.om-detail-section {
  margin-bottom: 20px;
}
.om-detail-section:last-child {
  margin-bottom: 0;
}
.om-detail-section-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--gray-800, #222);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.om-detail-section-title::before {
  content: '';
  width: 3px;
  height: 16px;
  background: var(--primary, #e23a3a);
  border-radius: 2px;
}
.om-detail-row {
  display: flex;
  align-items: baseline;
  padding: 6px 0;
  font-size: 14px;
}
.om-detail-label {
  width: 90px;
  flex-shrink: 0;
  color: var(--gray-400, #999);
}
.om-detail-value {
  flex: 1;
  color: var(--gray-700, #333);
}
.om-detail-value.highlight {
  color: var(--primary, #e23a3a);
  font-weight: 600;
}

/* Timeline */
.om-timeline {
  padding-left: 4px;
}
.om-timeline-item {
  display: flex;
  gap: 12px;
  padding-bottom: 16px;
  position: relative;
}
.om-timeline-item:last-child {
  padding-bottom: 0;
}
.om-timeline-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--gray-300, #ddd);
  flex-shrink: 0;
  margin-top: 5px;
  position: relative;
  z-index: 1;
}
.om-timeline-item:first-child .om-timeline-dot {
  background: var(--primary, #e23a3a);
  box-shadow: 0 0 0 4px rgba(226,58,58,0.15);
}
.om-timeline-item:not(:last-child)::before {
  content: '';
  position: absolute;
  left: 4px;
  top: 18px;
  bottom: 0;
  width: 2px;
  background: var(--gray-200, #e8e8e8);
}
.om-timeline-content {
  flex: 1;
}
.om-timeline-text {
  font-size: 14px;
  color: var(--gray-700, #333);
}
.om-timeline-item:first-child .om-timeline-text {
  font-weight: 500;
}
.om-timeline-time {
  font-size: 12px;
  color: var(--gray-400, #999);
  margin-top: 2px;
}

/* Toast */
.om-toast {
  position: fixed;
  top: 80px;
  left: 50%;
  transform: translateX(-50%) translateY(-20px);
  background: var(--gray-800, #222);
  color: white;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 14px;
  z-index: 2000;
  opacity: 0;
  transition: all 0.3s;
  pointer-events: none;
}
.om-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Responsive */
@media (max-width: 900px) {
  .om-content {
    padding: 16px;
  }
  .om-order-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  .om-order-product {
    flex-wrap: wrap;
  }
  .om-order-product-right {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-align: left;
    margin-top: 4px;
    padding-top: 8px;
    border-top: 1px dashed var(--gray-200, #e8e8e8);
  }
  .om-order-footer {
    flex-direction: column;
    gap: 10px;
    align-items: flex-start;
  }
  .om-order-footer-actions {
    flex-wrap: wrap;
  }
  .om-filter-bar {
    flex-direction: column;
    align-items: flex-start;
  }
  .om-search-box input {
    width: 160px;
  }
}
@media (max-width: 640px) {
  .om-page-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .om-tabs {
    overflow-x: auto;
  }
  .om-tab {
    white-space: nowrap;
    padding: 10px 12px;
    font-size: 13px;
  }
  .om-order-product-img {
    width: 56px;
    height: 56px;
  }
}

/* ========== Order Detail Page ========== */

.od-content {
  padding: 24px 28px;
}

/* Breadcrumb */
.od-breadcrumb {
  font-size: 13px;
  color: var(--gray-400, #999);
  margin-bottom: 20px;
}
.od-breadcrumb a {
  color: var(--gray-500, #666);
  text-decoration: none;
  transition: color 0.2s;
}
.od-breadcrumb a:hover {
  color: var(--primary, #e23a3a);
}
.od-breadcrumb .sep {
  margin: 0 6px;
  color: var(--gray-300, #ccc);
}
.od-breadcrumb .current {
  color: var(--gray-700, #333);
}

/* ========== Status Banner ========== */
.od-status-banner {
  border-radius: 12px;
  padding: 28px 32px;
  margin-bottom: 20px;
  color: white;
  position: relative;
  overflow: hidden;
}
.od-status-banner.status-pending {
  background: linear-gradient(135deg, #ff9800, #ff6d00);
}
.od-status-banner.status-paid {
  background: linear-gradient(135deg, #2196f3, #1565c0);
}
.od-status-banner.status-shipped {
  background: linear-gradient(135deg, #e23a3a, #c62828);
}
.od-status-banner.status-completed {
  background: linear-gradient(135deg, #4caf50, #2e7d32);
}
.od-status-banner.status-cancelled {
  background: linear-gradient(135deg, #9e9e9e, #616161);
}
.od-status-banner.status-refund {
  background: linear-gradient(135deg, #9c27b0, #6a1b9a);
}
.od-status-banner::after {
  content: '';
  position: absolute;
  top: -30%;
  right: -5%;
  width: 200px;
  height: 200px;
  background: rgba(255,255,255,0.08);
  border-radius: 50%;
}
.od-status-banner::before {
  content: '';
  position: absolute;
  bottom: -40%;
  right: 10%;
  width: 300px;
  height: 300px;
  background: rgba(255,255,255,0.05);
  border-radius: 50%;
}

.od-status-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  z-index: 1;
}
.od-status-left {
  display: flex;
  align-items: center;
  gap: 14px;
}
.od-status-icon {
  width: 48px;
  height: 48px;
  background: rgba(255,255,255,0.2);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.od-status-icon svg {
  width: 26px;
  height: 26px;
  fill: white;
}
.od-status-info h2 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 4px;
}
.od-status-info p {
  font-size: 14px;
  opacity: 0.9;
}
.od-status-actions {
  display: flex;
  gap: 10px;
  position: relative;
  z-index: 1;
}
.od-banner-btn {
  height: 38px;
  padding: 0 22px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
}
.od-banner-btn-primary {
  background: white;
  color: var(--primary, #e23a3a);
}
.od-banner-btn-primary:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  transform: translateY(-1px);
}
.od-banner-btn-ghost {
  background: rgba(255,255,255,0.2);
  color: white;
  border: 1px solid rgba(255,255,255,0.4);
}
.od-banner-btn-ghost:hover {
  background: rgba(255,255,255,0.3);
}
.od-banner-btn-danger {
  background: rgba(244,67,54,0.15);
  color: #ffcdd2;
  border: 1px solid rgba(244,67,54,0.3);
}
.od-banner-btn-danger:hover {
  background: rgba(244,67,54,0.3);
  border-color: #f44336;
}

/* ========== Step Progress ========== */
.od-steps {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 24px;
  position: relative;
  z-index: 1;
}
.od-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  position: relative;
  z-index: 1;
  flex: 1;
}
.od-step-dot {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 600;
  transition: all 0.3s;
}
.od-step.done .od-step-dot {
  background: white;
  color: var(--primary, #e23a3a);
}
.od-step.current .od-step-dot {
  background: white;
  color: var(--primary, #e23a3a);
  box-shadow: 0 0 0 4px rgba(255,255,255,0.3);
}
.od-step-text {
  font-size: 12px;
  opacity: 0.8;
}
.od-step.done .od-step-text,
.od-step.current .od-step-text {
  opacity: 1;
  font-weight: 500;
}
/* Step line between dots */
.od-steps::before {
  content: '';
  position: absolute;
  top: 14px;
  left: 14%;
  right: 14%;
  height: 2px;
  background: rgba(255,255,255,0.2);
  z-index: 0;
}
.od-steps-progress {
  position: absolute;
  top: 14px;
  left: 14%;
  height: 2px;
  background: white;
  z-index: 0;
  transition: width 0.5s;
}

/* ========== Section Card ========== */
.od-section {
  background: white;
  border-radius: 12px;
  border: 1px solid var(--gray-200, #e8e8e8);
  margin-bottom: 16px;
  overflow: hidden;
}
.od-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  border-bottom: 1px solid var(--gray-100, #f0f0f0);
  background: #fafafa;
}
.od-section-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--gray-800, #222);
  display: flex;
  align-items: center;
  gap: 8px;
}
.od-section-title::before {
  content: '';
  width: 3px;
  height: 18px;
  background: var(--primary, #e23a3a);
  border-radius: 2px;
}
.od-section-action {
  font-size: 13px;
  color: var(--primary, #e23a3a);
  cursor: pointer;
  text-decoration: none;
}
.od-section-action:hover {
  text-decoration: underline;
}
.od-section-body {
  padding: 20px 24px;
}

/* ========== Info Grid ========== */
.od-info-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px 32px;
}
.od-info-item {
  display: flex;
  align-items: baseline;
  font-size: 14px;
}
.od-info-label {
  width: 80px;
  flex-shrink: 0;
  color: var(--gray-400, #999);
}
.od-info-value {
  color: var(--gray-700, #333);
  word-break: break-all;
}
.od-info-value.highlight {
  color: var(--primary, #e23a3a);
  font-weight: 600;
}

/* ========== Product Table ========== */
.od-product-table {
  width: 100%;
  border-collapse: collapse;
}
.od-product-table thead {
  background: #fafafa;
}
.od-product-table th {
  text-align: left;
  padding: 12px 16px;
  font-size: 13px;
  color: var(--gray-500, #666);
  font-weight: 500;
  border-bottom: 1px solid var(--gray-100, #f0f0f0);
}
.od-product-table th:last-child,
.od-product-table td:last-child {
  text-align: right;
}
.od-product-table td {
  padding: 16px;
  font-size: 14px;
  color: var(--gray-700, #333);
  border-bottom: 1px solid var(--gray-100, #f5f5f5);
  vertical-align: middle;
}
.od-product-table tr:last-child td {
  border-bottom: none;
}

.od-product-cell {
  display: flex;
  align-items: center;
  gap: 12px;
}
.od-product-thumb {
  width: 64px;
  height: 64px;
  border-radius: 8px;
  background: var(--gray-100, #f5f5f5);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.od-product-thumb svg {
  width: 28px;
  height: 28px;
  fill: var(--gray-300, #ccc);
}
.od-product-name {
  font-weight: 500;
  color: var(--gray-800, #222);
  margin-bottom: 2px;
}
.od-product-spec {
  font-size: 12px;
  color: var(--gray-400, #999);
}
.od-product-price {
  color: var(--primary, #e23a3a);
  font-weight: 600;
}
.od-product-qty {
  color: var(--gray-500, #666);
}
.od-product-subtotal {
  color: var(--gray-800, #222);
  font-weight: 600;
}

/* ========== Price Summary ========== */
.od-price-summary {
  padding: 16px 24px;
}
.od-price-row {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
  padding: 6px 0;
  font-size: 14px;
}
.od-price-row .label {
  color: var(--gray-500, #666);
}
.od-price-row .value {
  min-width: 100px;
  text-align: right;
}
.od-price-row.total {
  border-top: 1px solid var(--gray-200, #e8e8e8);
  margin-top: 8px;
  padding-top: 14px;
  font-size: 16px;
}
.od-price-row.total .value {
  color: var(--primary, #e23a3a);
  font-size: 22px;
  font-weight: 700;
}
.od-price-row.total .value .symbol {
  font-size: 14px;
}

/* ========== Timeline ========== */
.od-timeline {
  padding: 4px 0;
}
.od-timeline-item {
  display: flex;
  gap: 14px;
  padding-bottom: 18px;
  position: relative;
}
.od-timeline-item:last-child {
  padding-bottom: 0;
}
.od-timeline-dot-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
  width: 20px;
}
.od-timeline-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--gray-300, #ddd);
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}
.od-timeline-item:first-child .od-timeline-dot {
  background: var(--primary, #e23a3a);
  box-shadow: 0 0 0 4px rgba(226,58,58,0.12);
}
.od-timeline-line {
  width: 2px;
  flex: 1;
  background: var(--gray-200, #e8e8e8);
  margin-top: 4px;
}
.od-timeline-item:last-child .od-timeline-line {
  display: none;
}
.od-timeline-content {
  flex: 1;
  padding-bottom: 2px;
}
.od-timeline-text {
  font-size: 14px;
  color: var(--gray-700, #333);
  line-height: 1.5;
}
.od-timeline-item:first-child .od-timeline-text {
  font-weight: 500;
  color: var(--gray-800, #222);
}
.od-timeline-time {
  font-size: 12px;
  color: var(--gray-400, #999);
  margin-top: 4px;
}

/* ========== Two-column layout ========== */
.od-layout {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.od-layout-left {
  flex: 1;
  min-width: 0;
}
.od-layout-right {
  width: 320px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* ========== Invoice info ========== */
.od-invoice-row {
  display: flex;
  align-items: baseline;
  font-size: 14px;
  padding: 4px 0;
}
.od-invoice-label {
  width: 80px;
  color: var(--gray-400, #999);
  flex-shrink: 0;
}
.od-invoice-value {
  color: var(--gray-700, #333);
}

/* ========== Bottom actions ========== */
.od-bottom-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: white;
  border-radius: 12px;
  border: 1px solid var(--gray-200, #e8e8e8);
  padding: 16px 24px;
  margin-bottom: 16px;
}
.od-bottom-left {
  display: flex;
  align-items: center;
  gap: 8px;
}
.od-bottom-right {
  display: flex;
  align-items: center;
  gap: 10px;
}
.od-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 36px;
  padding: 0 20px;
  border-radius: 8px;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
  font-weight: 500;
}
.od-btn-primary {
  background: var(--primary, #e23a3a);
  color: white;
}
.od-btn-primary:hover {
  background: var(--primary-dark, #c62828);
}
.od-btn-outline {
  background: white;
  color: var(--gray-600, #555);
  border: 1px solid var(--gray-200, #e0e0e0);
}
.od-btn-outline:hover {
  border-color: var(--primary, #e23a3a);
  color: var(--primary, #e23a3a);
}
.od-btn-danger {
  background: white;
  color: #f44336;
  border: 1px solid #ffcdd2;
}
.od-btn-danger:hover {
  background: #fff5f5;
  border-color: #f44336;
}
.od-btn-text {
  background: none;
  color: var(--gray-500, #666);
  border: none;
  padding: 0 10px;
}
.od-btn-text:hover {
  color: var(--primary, #e23a3a);
}

/* Toast */
.od-toast {
  position: fixed;
  top: 80px;
  left: 50%;
  transform: translateX(-50%) translateY(-20px);
  background: var(--gray-800, #222);
  color: white;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 14px;
  z-index: 2000;
  opacity: 0;
  transition: all 0.3s;
  pointer-events: none;
}
.od-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ========== Responsive ========== */
@media (max-width: 1000px) {
  .od-layout {
    flex-direction: column;
  }
  .od-layout-right {
    width: 100%;
  }
}
@media (max-width: 768px) {
  .od-content {
    padding: 16px;
  }
  .od-status-banner {
    padding: 20px;
  }
  .od-status-top {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }
  .od-info-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .od-product-cell {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  .od-product-thumb {
    width: 50px;
    height: 50px;
  }
  .od-bottom-actions {
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
  }
  .od-bottom-right {
    flex-wrap: wrap;
  }
  .od-steps::before {
    left: 8%;
    right: 8%;
  }
}
@media (max-width: 640px) {
  .od-product-table thead {
    display: none;
  }
  .od-product-table,
  .od-product-table tbody,
  .od-product-table tr,
  .od-product-table td {
    display: block;
  }
  .od-product-table tr {
    padding: 12px 0;
    border-bottom: 1px solid var(--gray-100, #f0f0f0);
  }
  .od-product-table td {
    padding: 4px 0;
    border: none;
    text-align: left !important;
  }
}
