/**
 * Desktop-only Orders “power” UX: density, bulk summary, chips, profit/payment/status polish.
 * body.use-new-ui.route-orders @media (min-width: 769px)
 */

@media (min-width: 769px) {
  body.use-new-ui.route-orders .orders-desk-chips-host {
    margin: 0 0 10px;
    padding: 0 2px;
  }

  body.use-new-ui.route-orders .orders-page .orders-desk-chips {
    gap: 8px;
    padding: 6px 8px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(226, 232, 240, 0.95);
  }

  body.dark.use-new-ui.route-orders .orders-page .orders-desk-chips {
    background: rgba(15, 23, 42, 0.45);
    border-color: rgba(51, 65, 85, 0.55);
  }

  body.use-new-ui.route-orders .orders-page .orders-desk-chip.is-active {
    border-color: #2563eb;
    background: rgba(37, 99, 235, 0.14);
    color: #1e3a8a;
    box-shadow: 0 1px 2px rgba(37, 99, 235, 0.12);
  }

  /* Sticky bulk: above table head while scrolling */
  body.use-new-ui.route-orders .orders-page .orders-bulk-bar-host {
    position: sticky;
    top: 0;
    z-index: 12;
    margin-bottom: 8px;
    padding: 0 2px 4px;
    background: linear-gradient(180deg, rgba(243, 246, 251, 0.98) 0%, rgba(243, 246, 251, 0.92) 70%, transparent 100%);
  }

  body.dark.use-new-ui.route-orders .orders-page .orders-bulk-bar-host {
    background: linear-gradient(180deg, rgba(11, 18, 32, 0.96) 0%, rgba(11, 18, 32, 0.88) 70%, transparent 100%);
  }

  body.use-new-ui.route-orders .route-page.orders-page .orders-bulk-bar.orders-bulk-bar--desk-power {
    min-height: 0 !important;
    padding: 6px 10px !important;
    gap: 10px !important;
    flex-wrap: wrap !important;
    align-items: center !important;
  }

  body.use-new-ui.route-orders .route-page.orders-page .orders-bulk-metrics {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 16px;
    flex: 1 1 220px;
    min-width: 0;
    padding: 2px 4px;
  }

  body.use-new-ui.route-orders .route-page.orders-page .orders-bulk-metric {
    display: inline-flex;
    flex-direction: column;
    gap: 1px;
    min-width: 0;
  }

  body.use-new-ui.route-orders .route-page.orders-page .orders-bulk-metric__lab {
    font-size: 10px;
    font-weight: 650;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #64748b;
  }

  body.use-new-ui.route-orders .route-page.orders-page .orders-bulk-metric__val {
    font-size: 13px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    font-feature-settings: "tnum";
    color: #0f172a;
    line-height: 1.2;
  }

  body.dark.use-new-ui.route-orders .route-page.orders-page .orders-bulk-metric__lab {
    color: #94a3b8;
  }

  body.dark.use-new-ui.route-orders .route-page.orders-page .orders-bulk-metric__val {
    color: #f1f5f9;
  }

  body.use-new-ui.route-orders .route-page.orders-page .orders-bulk-count-pill--inline {
    padding: 5px 12px !important;
    font-size: 12px !important;
  }

  body.use-new-ui.route-orders .route-page.orders-page .orders-bulk-bar__actions .btn {
    min-height: 30px !important;
    padding-inline: 12px !important;
    border-radius: 9px !important;
  }

  /* Row density + money tabular */
  body.use-new-ui.route-orders .orders-page .orders-table tbody td {
    min-height: 42px !important;
    padding-top: 6px !important;
    padding-bottom: 6px !important;
    font-size: 12.5px;
  }

  body.use-new-ui.route-orders .orders-page .orders-table .money-col,
  body.use-new-ui.route-orders .orders-page .orders-table .col-order-money {
    font-variant-numeric: tabular-nums;
    font-feature-settings: "tnum";
  }

  /* Profit column */
  body.use-new-ui.route-orders .orders-page .orders-table .order-profit-cell {
    font-weight: 700 !important;
    font-variant-numeric: tabular-nums;
    font-feature-settings: "tnum";
  }

  body.use-new-ui.route-orders .orders-page .orders-table .order-profit-cell.profit-positive {
    color: #15803d !important;
  }

  body.use-new-ui.route-orders .orders-page .orders-table .order-profit-cell.profit-low {
    color: #b45309 !important;
  }

  body.use-new-ui.route-orders .orders-page .orders-table .order-profit-cell.profit-negative {
    color: #b91c1c !important;
  }

  body.use-new-ui.route-orders .orders-page .orders-table .order-profit-cell.profit-zero {
    color: #64748b !important;
    font-weight: 650 !important;
  }

  body.dark.use-new-ui.route-orders .orders-page .orders-table .order-profit-cell.profit-positive {
    color: #86efac !important;
  }

  body.dark.use-new-ui.route-orders .orders-page .orders-table .order-profit-cell.profit-low {
    color: #fcd34d !important;
  }

  body.dark.use-new-ui.route-orders .orders-page .orders-table .order-profit-cell.profit-negative {
    color: #fca5a5 !important;
  }

  /* Status select — pastel tones */
  body.use-new-ui.route-orders .orders-page .order-status-select.status-done {
    background: rgba(220, 252, 231, 0.95) !important;
    border-color: rgba(74, 222, 128, 0.45) !important;
    color: #166534 !important;
  }

  body.use-new-ui.route-orders .orders-page .order-status-select.status-cod {
    background: rgba(254, 243, 199, 0.95) !important;
    border-color: rgba(251, 191, 36, 0.5) !important;
    color: #92400e !important;
  }

  body.use-new-ui.route-orders .orders-page .order-status-select.status-pending {
    background: rgba(241, 245, 249, 0.98) !important;
    border-color: #cbd5e1 !important;
    color: #475569 !important;
  }

  body.use-new-ui.route-orders .orders-page .order-status-select.status-cancelled {
    background: rgba(254, 242, 242, 0.92) !important;
    border-color: rgba(252, 165, 165, 0.5) !important;
    color: #991b1b !important;
  }

  /* Payment select */
  body.use-new-ui.route-orders .orders-page .order-payment-select.pay-sel-cash {
    background: rgba(209, 250, 229, 0.55) !important;
    border-color: rgba(52, 211, 153, 0.45) !important;
    color: #065f46 !important;
  }

  body.use-new-ui.route-orders .orders-page .order-payment-select.pay-sel-transfer {
    background: rgba(219, 234, 254, 0.75) !important;
    border-color: rgba(96, 165, 250, 0.55) !important;
    color: #1e40af !important;
  }

  body.use-new-ui.route-orders .orders-page .order-payment-select.pay-sel-cod {
    background: rgba(254, 243, 199, 0.85) !important;
    border-color: rgba(251, 191, 36, 0.5) !important;
    color: #92400e !important;
  }

  body.use-new-ui.route-orders .orders-page .order-status-select,
  body.use-new-ui.route-orders .orders-page .order-payment-select {
    min-height: 28px !important;
    height: 28px !important;
    width: 118px !important;
    max-width: 118px !important;
    font-size: 11px !important;
    padding: 0 18px 0 8px !important;
    border-radius: 999px !important;
  }

  body.use-new-ui.route-orders .orders-page .order-actions .btn.btn-xs {
    min-height: 26px !important;
    padding: 0 8px !important;
    border-radius: 8px !important;
    font-size: 11px !important;
    font-weight: 650 !important;
  }

  body.use-new-ui.route-orders .orders-page .order-actions .order-del-btn.danger {
    background: rgba(254, 242, 242, 0.95) !important;
    color: #b91c1c !important;
    border: 1px solid rgba(252, 165, 165, 0.55) !important;
  }

  body.use-new-ui.route-orders .orders-page .order-actions .order-edit-btn {
    border: 1px solid rgba(59, 130, 246, 0.28);
  }

  /* Filtered empty */
  body.use-new-ui.route-orders .orders-page .orders-filter-empty-card {
    margin: 12px auto;
    max-width: 420px;
    text-align: center;
    padding: 16px 18px;
    border-radius: 12px;
    border: 1px dashed rgba(148, 163, 184, 0.55);
    background: rgba(248, 250, 252, 0.9);
  }

  body.use-new-ui.route-orders .orders-page .orders-filter-empty-title {
    font-size: 14px;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 6px;
  }

  body.use-new-ui.route-orders .orders-page .orders-filter-empty-desc {
    margin: 0 0 12px;
    font-size: 12.5px;
  }

  body.dark.use-new-ui.route-orders .orders-page .orders-filter-empty-card {
    background: rgba(15, 23, 42, 0.55);
    border-color: rgba(71, 85, 105, 0.55);
  }

  body.dark.use-new-ui.route-orders .orders-page .orders-filter-empty-title {
    color: #e2e8f0;
  }

  body.use-new-ui.route-orders .route-page.orders-page .orders-bulk-bar--desk-power .orders-bulk-bar__select {
    column-gap: 12px !important;
    flex-basis: auto;
  }
}
