/* Source desktop parity for Pending, Processing and Completed order views.
   This sheet is loaded last so one small cascade owns the shared geometry. */

/* The source app uses a centered 1600px content container with a 16px gutter. */
@media (min-width: 821px) {
  html body .app-shell main.workspace:has(#panel-queued.active),
  html body .app-shell main.workspace:has(#panel-processing.active),
  html body .app-shell main.workspace:has(#panel-completed.active) {
    width: min(1600px, 100%) !important;
    max-width: 1600px !important;
    margin: 0 auto !important;
    padding: 16px 16px var(--builder-footer-clearance, 88px) !important;
    box-sizing: border-box !important;
  }

  #panel-queued .page-heading,
  #panel-processing .page-heading,
  #panel-completed .page-heading {
    display: flex !important;
    align-items: center !important;
    min-height: 36px !important;
    margin: 0 0 14px !important;
  }

  #panel-queued .page-heading .eyebrow,
  #panel-processing .page-heading .eyebrow,
  #panel-completed .page-heading .eyebrow,
  #panel-queued .page-heading h1 + p,
  #panel-processing .page-heading h1 + p,
  #panel-completed .page-heading h1 + p {
    display: none !important;
  }

  #panel-queued .page-heading h1,
  #panel-processing .page-heading h1,
  #panel-completed .page-heading h1 {
    margin: 0 !important;
    color: #e0e0e0 !important;
    font-size: 24px !important;
    font-weight: 700 !important;
    line-height: 36px !important;
    letter-spacing: 0 !important;
  }

  #panel-queued .orders-viewer,
  #panel-processing .orders-viewer,
  #panel-completed .orders-viewer {
    width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    overflow: visible !important;
  }

  #panel-queued .viewer-header,
  #panel-processing .viewer-header,
  #panel-completed .viewer-header {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 16px !important;
    min-height: 46px !important;
    margin: 0 0 8px !important;
    color: #dbe4ef !important;
  }
  #panel-queued .viewer-header-copy,
  #panel-processing .viewer-header-copy,
  #panel-completed .viewer-header-copy {
    display: flex !important;
    align-items: baseline !important;
    gap: 10px !important;
    min-width: 0 !important;
  }
  #panel-queued .viewer-header-kicker,
  #panel-processing .viewer-header-kicker,
  #panel-completed .viewer-header-kicker {
    font-size: 14px !important;
    font-weight: 650 !important;
  }
  #panel-queued .viewer-header-copy > strong,
  #panel-processing .viewer-header-copy > strong,
  #panel-completed .viewer-header-copy > strong,
  #panel-queued .pagination-controls,
  #panel-processing .pagination-controls,
  #panel-completed .pagination-controls {
    color: #94a3b8 !important;
    font-size: 12px !important;
    font-weight: 500 !important;
    font-variant-numeric: tabular-nums !important;
  }
  #panel-queued .viewer-header-tools,
  #panel-processing .viewer-header-tools,
  #panel-completed .viewer-header-tools {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 8px !important;
  }
  #panel-queued .page-size-selector,
  #panel-processing .page-size-selector,
  #panel-completed .page-size-selector {
    display: inline-flex !important;
    align-items: center !important;
    gap: 7px !important;
    color: #94a3b8 !important;
    font-size: 12px !important;
  }
  #panel-queued .page-size-selector select,
  #panel-processing .page-size-selector select,
  #panel-completed .page-size-selector select {
    height: 34px !important;
    padding: 0 8px !important;
    color: #dbe4ef !important;
    background: #ffffff08 !important;
    border: 1px solid #ffffff1a !important;
    border-radius: 7px !important;
  }
  #panel-queued .columns-menu-anchor,
  #panel-processing .columns-menu-anchor,
  #panel-completed .columns-menu-anchor { position: relative !important; }
  #panel-queued .columns-btn,
  #panel-processing .columns-btn,
  #panel-completed .columns-btn {
    display: inline-flex !important;
    align-items: center !important;
    gap: 7px !important;
    min-height: 34px !important;
    padding: 0 10px !important;
    color: #dbe4ef !important;
    background: #ffffff08 !important;
    border: 1px solid #ffffff1a !important;
    border-radius: 7px !important;
    font-size: 12px !important;
  }
  #panel-queued .columns-menu-surface,
  #panel-processing .columns-menu-surface,
  #panel-completed .columns-menu-surface {
    position: absolute !important;
    z-index: 1000 !important;
    top: calc(100% + 6px) !important;
    right: 0 !important;
    width: 240px !important;
    padding: 10px !important;
    color: #e5e7eb !important;
    background: rgba(var(--surface-darker-rgb, 11, 15, 28), .98) !important;
    border: 1px solid #94a3b842 !important;
    border-radius: 10px !important;
    box-shadow: 0 18px 42px #00000075 !important;
  }
  #panel-queued .columns-menu-header,
  #panel-processing .columns-menu-header,
  #panel-completed .columns-menu-header,
  #panel-queued .columns-menu-footer,
  #panel-processing .columns-menu-footer,
  #panel-completed .columns-menu-footer {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 8px !important;
    padding: 4px 2px 8px !important;
  }
  #panel-queued .columns-menu-options,
  #panel-processing .columns-menu-options,
  #panel-completed .columns-menu-options {
    display: grid !important;
    gap: 2px !important;
    padding: 6px 0 !important;
    border-block: 1px solid #ffffff12 !important;
  }
  #panel-queued .columns-menu-option,
  #panel-processing .columns-menu-option,
  #panel-completed .columns-menu-option {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    min-height: 30px !important;
    color: #cbd5e1 !important;
    font-size: 12px !important;
  }
  #panel-queued .columns-menu-option input,
  #panel-processing .columns-menu-option input,
  #panel-completed .columns-menu-option input { accent-color: var(--primary-color, #3e83ff) !important; }
  #panel-queued .columns-menu-footer button,
  #panel-processing .columns-menu-footer button,
  #panel-completed .columns-menu-footer button,
  #panel-queued .columns-menu-header button,
  #panel-processing .columns-menu-header button,
  #panel-completed .columns-menu-header button {
    padding: 5px 8px !important;
    color: #cbd5e1 !important;
    background: transparent !important;
    border: 1px solid #ffffff16 !important;
    border-radius: 6px !important;
    font-size: 11px !important;
  }
  #panel-queued .orders-loading-shell,
  #panel-processing .orders-loading-shell,
  #panel-completed .orders-loading-shell {
    padding: 10px 0 !important;
  }
  #panel-queued .orders-skeleton-toolbar,
  #panel-processing .orders-skeleton-toolbar,
  #panel-completed .orders-skeleton-toolbar {
    display: flex !important;
    justify-content: space-between !important;
    gap: 12px !important;
    margin-bottom: 12px !important;
  }
  #panel-queued .orders-skeleton-toolbar span,
  #panel-processing .orders-skeleton-toolbar span,
  #panel-completed .orders-skeleton-toolbar span,
  #panel-queued .orders-skeleton-row i,
  #panel-processing .orders-skeleton-row i,
  #panel-completed .orders-skeleton-row i {
    display: block !important;
    height: 14px !important;
    border-radius: 5px !important;
    background: linear-gradient(90deg, #ffffff08, #ffffff18, #ffffff08) !important;
    background-size: 200% 100% !important;
    animation: orderSkeleton 1.4s ease-in-out infinite !important;
  }
  #panel-queued .orders-skeleton-toolbar span:first-child,
  #panel-processing .orders-skeleton-toolbar span:first-child,
  #panel-completed .orders-skeleton-toolbar span:first-child { width: 34% !important; height: 36px !important; }
  #panel-queued .orders-skeleton-toolbar span:last-child,
  #panel-processing .orders-skeleton-toolbar span:last-child,
  #panel-completed .orders-skeleton-toolbar span:last-child { width: 20% !important; height: 36px !important; }
  #panel-queued .orders-skeleton-row,
  #panel-processing .orders-skeleton-row,
  #panel-completed .orders-skeleton-row {
    display: grid !important;
    grid-template-columns: repeat(6, minmax(48px, 1fr)) !important;
    align-items: center !important;
    gap: 16px !important;
    min-height: 54px !important;
    padding: 0 12px !important;
    border-bottom: 1px solid #ffffff10 !important;
  }
  #panel-queued .orders-skeleton-row i:nth-child(2n),
  #panel-processing .orders-skeleton-row i:nth-child(2n),
  #panel-completed .orders-skeleton-row i:nth-child(2n) { width: 72% !important; }
  #panel-queued .pagination-controls-footer,
  #panel-processing .pagination-controls-footer,
  #panel-completed .pagination-controls-footer {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) !important;
    align-items: center !important;
    gap: 12px !important;
    min-height: 52px !important;
    margin: 12px 0 0 !important;
    padding: 8px 12px !important;
    background: rgba(var(--surface-rgb, 18, 28, 48), .24) !important;
    border: 1px solid #ffffff12 !important;
    border-radius: 8px !important;
  }
  /* display:grid!important above otherwise overrides the UA [hidden] rule. */
  #panel-queued .pagination-controls-footer[hidden],
  #panel-processing .pagination-controls-footer[hidden],
  #panel-completed .pagination-controls-footer[hidden] { display: none !important; }
  #panel-queued .pagination-controls-toolbar,
  #panel-processing .pagination-controls-toolbar,
  #panel-completed .pagination-controls-toolbar {
    display: inline-flex !important;
    align-items: center !important;
    gap: 9px !important;
    white-space: nowrap !important;
  }
  #panel-queued .pagination-btn,
  #panel-processing .pagination-btn,
  #panel-completed .pagination-btn {
    display: grid !important;
    place-items: center !important;
    width: 30px !important;
    height: 30px !important;
    padding: 0 !important;
    color: #dbe4ef !important;
    background: #ffffff08 !important;
    border: 1px solid #ffffff16 !important;
    border-radius: 6px !important;
  }
  #panel-queued .pagination-btn:disabled,
  #panel-processing .pagination-btn:disabled,
  #panel-completed .pagination-btn:disabled { opacity: .38 !important; cursor: default !important; }
  #panel-queued [data-page-prev] .ui-icon,
  #panel-processing [data-page-prev] .ui-icon,
  #panel-completed [data-page-prev] .ui-icon { transform: rotate(180deg) !important; }
  #panel-queued .orders-bulk-action-layer,
  #panel-processing .orders-bulk-action-layer,
  #panel-completed .orders-bulk-action-layer {
    position: fixed !important;
    z-index: 1500 !important;
    right: 0 !important;
    bottom: max(16px, env(safe-area-inset-bottom)) !important;
    left: 0 !important;
    display: flex !important;
    justify-content: center !important;
    padding-right: max(16px, env(safe-area-inset-right)) !important;
    padding-left: max(16px, env(safe-area-inset-left)) !important;
    pointer-events: none !important;
    animation: orders-bulk-action-enter .36s cubic-bezier(.18, .9, .22, 1.12) both;
  }
  #panel-queued .orders-bulk-action-layer[hidden],
  #panel-processing .orders-bulk-action-layer[hidden],
  #panel-completed .orders-bulk-action-layer[hidden] { display: none !important; }
  #panel-queued .orders-bulk-action-bar,
  #panel-processing .orders-bulk-action-bar,
  #panel-completed .orders-bulk-action-bar {
    display: grid !important;
    grid-template-columns: auto 1px minmax(180px, .9fr) 1px minmax(240px, 1.15fr) 1px auto !important;
    align-items: center !important;
    gap: 8px !important;
    width: min(100%, 1040px) !important;
    padding: 10px 12px !important;
    color: #e5e7eb !important;
    background: rgba(var(--surface-darker-rgb, 11, 15, 28), .94) !important;
    border: 1px solid #94a3b847 !important;
    border-radius: 14px !important;
    box-shadow: 0 18px 44px #0000006b, inset 0 1px #ffffff0f !important;
    backdrop-filter: blur(18px) saturate(135%) !important;
    -webkit-backdrop-filter: blur(18px) saturate(135%) !important;
    pointer-events: auto !important;
  }
  #panel-queued .orders-bulk-action-bar.is-utility-only,
  #panel-processing .orders-bulk-action-bar.is-utility-only,
  #panel-completed .orders-bulk-action-bar.is-utility-only { grid-template-columns: auto 1px minmax(240px, 1fr) 1px auto !important; }
  #panel-queued .orders-bulk-action-header,
  #panel-processing .orders-bulk-action-header,
  #panel-completed .orders-bulk-action-header { display: contents !important; }
  #panel-queued .orders-bulk-action-count,
  #panel-processing .orders-bulk-action-count,
  #panel-completed .orders-bulk-action-count {
    grid-area: 1 / 1 !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    padding: 6px 10px !important;
    border: 1px solid rgba(var(--primary-light-rgb, 96, 165, 250), .26) !important;
    border-radius: 999px !important;
    background: rgba(var(--primary-rgb, 59, 130, 246), .14) !important;
    color: #f8fafc !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    font-variant-numeric: tabular-nums !important;
    white-space: nowrap !important;
  }
  #panel-queued .orders-bulk-action-count .ui-icon,
  #panel-processing .orders-bulk-action-count .ui-icon,
  #panel-completed .orders-bulk-action-count .ui-icon { width: 13px !important; height: 13px !important; }
  #panel-queued .orders-bulk-action-bar > div:not(.orders-bulk-action-header),
  #panel-processing .orders-bulk-action-bar > div:not(.orders-bulk-action-header),
  #panel-completed .orders-bulk-action-bar > div:not(.orders-bulk-action-header) { display: grid !important; align-items: center !important; gap: 6px !important; min-width: 0 !important; }
  #panel-queued .orders-bulk-action-primary,
  #panel-processing .orders-bulk-action-primary,
  #panel-completed .orders-bulk-action-primary { grid-area: 1 / 3 !important; grid-template-columns: repeat(auto-fit, minmax(86px, 1fr)) !important; }
  #panel-queued .orders-bulk-action-utilities,
  #panel-processing .orders-bulk-action-utilities,
  #panel-completed .orders-bulk-action-utilities { grid-area: 1 / 5 !important; grid-template-columns: repeat(auto-fit, minmax(116px, 1fr)) !important; align-items: stretch !important; }
  #panel-queued .orders-bulk-action-divider,
  #panel-processing .orders-bulk-action-divider,
  #panel-completed .orders-bulk-action-divider { align-self: stretch !important; width: 1px !important; background: #94a3b833 !important; }
  #panel-queued .orders-bulk-action-divider-count,
  #panel-processing .orders-bulk-action-divider-count,
  #panel-completed .orders-bulk-action-divider-count { grid-area: 1 / 2 !important; }
  #panel-queued .orders-bulk-action-divider-primary,
  #panel-processing .orders-bulk-action-divider-primary,
  #panel-completed .orders-bulk-action-divider-primary { grid-area: 1 / 4 !important; }
  #panel-queued .orders-bulk-action-divider-utility,
  #panel-processing .orders-bulk-action-divider-utility,
  #panel-completed .orders-bulk-action-divider-utility { grid-area: 1 / 6 !important; }
  #panel-queued .orders-bulk-action-bar.is-utility-only .orders-bulk-action-utilities,
  #panel-processing .orders-bulk-action-bar.is-utility-only .orders-bulk-action-utilities,
  #panel-completed .orders-bulk-action-bar.is-utility-only .orders-bulk-action-utilities { grid-column: 3 !important; }
  #panel-queued .orders-bulk-action-bar.is-utility-only .orders-bulk-action-divider-utility,
  #panel-processing .orders-bulk-action-bar.is-utility-only .orders-bulk-action-divider-utility,
  #panel-completed .orders-bulk-action-bar.is-utility-only .orders-bulk-action-divider-utility { grid-column: 4 !important; }
  #panel-queued .orders-bulk-action-button,
  #panel-processing .orders-bulk-action-button,
  #panel-completed .orders-bulk-action-button {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 5px !important;
    min-height: 34px !important;
    padding: 6px 10px !important;
    border: 1px solid #94a3b847 !important;
    border-radius: 8px !important;
    background: rgba(var(--surface-rgb, 15, 23, 42), .5) !important;
    color: #e5e7eb !important;
    font-size: 11px !important;
    white-space: nowrap !important;
    transition: background-color .16s, border-color .16s, transform .16s !important;
  }
  #panel-queued .orders-bulk-action-button:hover:not(:disabled),
  #panel-processing .orders-bulk-action-button:hover:not(:disabled),
  #panel-completed .orders-bulk-action-button:hover:not(:disabled) { background: rgba(var(--surface-rgb, 15, 23, 42), .82) !important; border-color: #94a3b87a !important; transform: translateY(-1px) !important; }
  #panel-queued .orders-bulk-action-button-clear,
  #panel-processing .orders-bulk-action-button-clear,
  #panel-completed .orders-bulk-action-button-clear { grid-area: 1 / 7 !important; border-color: transparent !important; background: transparent !important; color: #cbd5e1 !important; }
  #panel-queued .orders-bulk-action-bar.is-utility-only .orders-bulk-action-button-clear,
  #panel-processing .orders-bulk-action-bar.is-utility-only .orders-bulk-action-button-clear,
  #panel-completed .orders-bulk-action-bar.is-utility-only .orders-bulk-action-button-clear { grid-column: 5 !important; }
  #panel-completed .orders-bulk-action-button-danger { border-color: rgba(248, 113, 113, .34) !important; background: rgba(127, 29, 29, .2) !important; color: #fecaca !important; }
  #panel-queued.bulk-active,
  #panel-processing.bulk-active,
  #panel-completed.bulk-active { padding-bottom: 76px !important; }
  #panel-queued .order-cell-select,
  #panel-processing .order-cell-select,
  #panel-completed .order-cell-select { width: 36px !important; text-align: center !important; }
  #panel-queued .order-cell-select input,
  #panel-processing .order-cell-select input,
  #panel-completed .order-cell-select input { accent-color: var(--primary-color, #3e83ff) !important; }

  /* Exact source command-bar geometry. */
  #panel-queued .orders-command-bar,
  #panel-processing .orders-command-bar,
  #panel-completed .orders-command-bar {
    z-index: 40 !important;
    position: relative !important;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    align-items: center !important;
    gap: 12px !important;
    width: 100% !important;
    height: auto !important;
    min-height: 73px !important;
    max-height: none !important;
    margin: 0 0 16px !important;
    padding: 14px 16px !important;
    box-sizing: border-box !important;
    border: 1px solid #ffffff14 !important;
    border-radius: 12px !important;
    background: rgba(var(--surface-rgb, 18, 28, 48), .4) !important;
    box-shadow: 0 4px 16px #0000002e !important;
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
  }

  #panel-queued .orders-command-primary,
  #panel-processing .orders-command-primary,
  #panel-completed .orders-command-primary {
    display: grid !important;
    grid-template-columns: minmax(220px, 1fr) auto !important;
    align-items: start !important;
    gap: 10px !important;
    width: 100% !important;
    min-width: 0 !important;
  }

  #panel-queued .search-controls,
  #panel-processing .search-controls,
  #panel-completed .search-controls {
    z-index: 30 !important;
    min-width: 0 !important;
    position: relative !important;
  }

  #panel-queued .search-input-wrapper,
  #panel-processing .search-input-wrapper,
  #panel-completed .search-input-wrapper {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) minmax(150px, auto) !important;
    align-items: stretch !important;
    gap: 16px !important;
    width: 100% !important;
    min-width: 0 !important;
  }

  #panel-queued .search-input,
  #panel-processing .search-input,
  #panel-completed .search-input {
    width: 100% !important;
    height: 44px !important;
    min-height: 44px !important;
    box-sizing: border-box !important;
    padding: 10px 16px 10px 40px !important;
    border: 1px solid #ffffff1a !important;
    border-radius: 8px !important;
    background: rgba(var(--surface-rgb, 18, 28, 48), .33) !important;
    color: #fff !important;
    font-size: 1rem !important;
    line-height: 1.5 !important;
  }

  #panel-queued .field-filter-trigger,
  #panel-processing .field-filter-trigger,
  #panel-completed .field-filter-trigger {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    width: 100% !important;
    min-width: 150px !important;
    height: 44px !important;
    min-height: 44px !important;
    box-sizing: border-box !important;
    padding: 7px 11px 7px 12px !important;
    border: 1px solid #ffffff1a !important;
    border-radius: 8px !important;
    background: #ffffff08 !important;
    color: #e0e0e0 !important;
    font-size: 1rem !important;
  }

  #panel-queued .refresh-controls,
  #panel-processing .refresh-controls,
  #panel-completed .refresh-controls {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 8px !important;
    min-width: 0 !important;
    height: 44px !important;
    white-space: nowrap !important;
  }

  #panel-queued .orders-command-bar .refresh-btn,
  #panel-processing .orders-command-bar .refresh-btn,
  #panel-completed .orders-command-bar .refresh-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex: 0 0 44px !important;
    width: 44px !important;
    height: 44px !important;
    min-height: 44px !important;
    padding: 0 !important;
    border: 1px solid #ffffff1a !important;
    border-radius: 8px !important;
    background: #ffffff08 !important;
    color: #e0e0e0 !important;
    font-size: 1rem !important;
  }

  #panel-queued .orders-command-bar .auto-refresh-btn,
  #panel-processing .orders-command-bar .auto-refresh-btn,
  #panel-completed .orders-command-bar .auto-refresh-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex: 0 0 auto !important;
    min-width: 0 !important;
    height: 44px !important;
    min-height: 44px !important;
    padding: 6px 10px !important;
    border: 1px solid #ffffff1a !important;
    border-radius: 8px !important;
    background: transparent !important;
    color: #e0e0e0 !important;
    font-size: 1rem !important;
    font-weight: 600 !important;
  }

  #panel-queued .orders-table,
  #panel-processing .orders-table,
  #panel-completed .orders-table {
    width: 100% !important;
    min-width: 760px !important;
    margin: 1rem 0 !important;
    border-collapse: separate !important;
    border-spacing: 0 !important;
    table-layout: auto !important;
    overflow: hidden !important;
    border-radius: 10px !important;
    background: rgba(var(--surface-rgb, 18, 28, 48), .34) !important;
    color: #e8eef7 !important;
    font-family: var(--font-mono, Consolas, monospace) !important;
    font-size: 1rem !important;
    box-shadow: 0 10px 28px #0000002e, inset 0 0 0 1px #94a3b814 !important;
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
  }

  #panel-queued .orders-table thead th,
  #panel-processing .orders-table thead th,
  #panel-completed .orders-table thead th {
    padding: .5rem !important;
    border-bottom: 1px solid #ffffff14 !important;
    background: rgba(var(--surface-darker-rgb, 11, 15, 28), .72) !important;
    color: #e8eef7 !important;
    font-size: 1rem !important;
    font-weight: 600 !important;
    line-height: 1.5 !important;
    text-align: center !important;
    white-space: nowrap !important;
  }

  #panel-queued .orders-table tbody tr,
  #panel-processing .orders-table tbody tr,
  #panel-completed .orders-table tbody tr {
    transition: background-color .16s, box-shadow .16s !important;
  }
  #panel-queued .orders-table tbody tr:nth-child(odd),
  #panel-processing .orders-table tbody tr:nth-child(odd),
  #panel-completed .orders-table tbody tr:nth-child(odd) {
    background: #ffffff04 !important;
  }
  #panel-queued .orders-table tbody tr:hover,
  #panel-processing .orders-table tbody tr:hover,
  #panel-completed .orders-table tbody tr:hover {
    background-color: rgba(var(--primary-rgb, 59, 130, 246), .08) !important;
  }

  #panel-queued .orders-table tbody td,
  #panel-processing .orders-table tbody td,
  #panel-completed .orders-table tbody td {
    padding: .5rem !important;
    border-bottom: 1px solid #ffffff14 !important;
    color: #d9e3f2 !important;
    font-size: 1rem !important;
    line-height: 1.5 !important;
    text-align: center !important;
    vertical-align: middle !important;
  }

  #panel-queued .table-wrapper,
  #panel-processing .table-wrapper,
  #panel-completed .table-wrapper {
    width: auto !important;
    margin: 0 -20px !important;
    padding: 0 20px !important;
    box-sizing: border-box !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
  }
}

@keyframes orderSkeleton {
  from { background-position: 100% 0; }
  to { background-position: -100% 0; }
}

/* Source dense-table behavior: fixed columns on true desktop and the source
   wide horizontal rail below 1101px. */
@media (min-width: 1101px) {
  #panel-queued .orders-table.orders-table-dense,
  #panel-processing .orders-table.orders-table-dense,
  #panel-completed .orders-table.orders-table-dense {
    table-layout: fixed !important;
    min-width: 0 !important;
  }

  #panel-queued .orders-table.orders-table-dense thead th,
  #panel-queued .orders-table.orders-table-dense tbody td,
  #panel-processing .orders-table.orders-table-dense thead th,
  #panel-processing .orders-table.orders-table-dense tbody td,
  #panel-completed .orders-table.orders-table-dense thead th,
  #panel-completed .orders-table.orders-table-dense tbody td {
    min-width: 0 !important;
    max-width: 100% !important;
    overflow: hidden !important;
    padding-inline: clamp(.18rem, .34vw, .42rem) !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
    font-size: clamp(.75rem, .52rem + .28vw, .9rem) !important;
  }

  #panel-queued .orders-table.orders-table-dense .order-cell-time,
  #panel-processing .orders-table.orders-table-dense .order-cell-time,
  #panel-completed .orders-table.orders-table-dense .order-cell-time,
  #panel-queued .orders-table.orders-table-dense .note-editor-cell,
  #panel-processing .orders-table.orders-table-dense .note-editor-cell,
  #panel-completed .orders-table.orders-table-dense .note-editor-cell,
  #panel-queued .orders-table.orders-table-dense .order-row-actions,
  #panel-processing .orders-table.orders-table-dense .order-row-actions,
  #panel-completed .orders-table.orders-table-dense .order-row-actions {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
  }
}

@media (max-width: 1100px) {
  #panel-queued .orders-table.orders-table-dense,
  #panel-processing .orders-table.orders-table-dense,
  #panel-completed .orders-table.orders-table-dense {
    min-width: 1500px !important;
  }
}

/* The source field menu is dark/opaque; only the order surface is glass. */
#panel-queued .field-filter-menu,
#panel-processing .field-filter-menu,
#panel-completed .field-filter-menu {
  z-index: 1000 !important;
  background: rgba(var(--surface-darker-rgb, 11, 15, 28), .98) !important;
  backdrop-filter: blur(18px) saturate(135%) !important;
  -webkit-backdrop-filter: blur(18px) saturate(135%) !important;
  border: 1px solid #94a3b842 !important;
  border-radius: 14px !important;
  box-shadow: 0 22px 54px #00000075, inset 0 1px #ffffff0d !important;
}

/* Admin risk table: remove black tiles and the dark sticky action rail while
   retaining semantic risk/status pill colors and row separators. */
.admin-shell .security-table-wrap,
.admin-shell .security-table,
.admin-shell .security-table thead,
.admin-shell .security-table tbody,
.admin-shell .security-table tr,
.admin-shell .security-table th,
.admin-shell .security-table td,
.admin-shell .security-table th::before,
.admin-shell .security-table td::before,
.admin-shell .security-table .security-risk,
.admin-shell .security-table .security-state,
.admin-shell .security-table .security-ip,
.admin-shell .security-table .security-account,
.admin-shell .security-table .security-time,
.admin-shell .security-table .security-status,
.admin-shell .security-table .security-action,
.admin-shell .security-table .security-actions {
  background-image: none !important;
  box-shadow: none !important;
  filter: none !important;
}

.admin-shell .security-table th:last-child,
.admin-shell .security-table td:last-child,
.admin-shell .security-table tr:hover td:last-child {
  position: static !important;
  background: transparent !important;
  background-color: transparent !important;
  border-left-color: transparent !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

/* On small screens the source stacks controls and lets the table scroll. */
@media (max-width: 820px) {
  #panel-queued .orders-command-primary,
  #panel-processing .orders-command-primary,
  #panel-completed .orders-command-primary {
    grid-template-columns: minmax(0, 1fr) !important;
  }
  #panel-queued .refresh-controls,
  #panel-processing .refresh-controls,
  #panel-completed .refresh-controls {
    justify-content: flex-start !important;
  }
}

@keyframes orders-bulk-action-enter {
  from { opacity: 0; transform: translateY(36px) scale(.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (max-width: 600px) {
  #panel-queued .orders-bulk-action-layer,
  #panel-processing .orders-bulk-action-layer,
  #panel-completed .orders-bulk-action-layer {
    right: 0 !important;
    bottom: max(10px, env(safe-area-inset-bottom)) !important;
    left: 0 !important;
    padding-right: max(10px, env(safe-area-inset-right)) !important;
    padding-left: max(10px, env(safe-area-inset-left)) !important;
  }
  #panel-queued .orders-bulk-action-bar,
  #panel-processing .orders-bulk-action-bar,
  #panel-completed .orders-bulk-action-bar,
  #panel-queued .orders-bulk-action-bar.is-utility-only,
  #panel-processing .orders-bulk-action-bar.is-utility-only,
  #panel-completed .orders-bulk-action-bar.is-utility-only {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 9px !important;
    width: 100% !important;
    padding: 9px !important;
    border-radius: 16px !important;
  }
  #panel-queued .orders-bulk-action-header,
  #panel-processing .orders-bulk-action-header,
  #panel-completed .orders-bulk-action-header {
    grid-area: 1 / 1 !important;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    align-items: center !important;
    gap: 8px !important;
  }
  #panel-queued .orders-bulk-action-count,
  #panel-processing .orders-bulk-action-count,
  #panel-completed .orders-bulk-action-count { grid-area: 1 / 1 !important; justify-self: start !important; }
  #panel-queued .orders-bulk-action-primary,
  #panel-processing .orders-bulk-action-primary,
  #panel-completed .orders-bulk-action-primary,
  #panel-queued .orders-bulk-action-utilities,
  #panel-processing .orders-bulk-action-utilities,
  #panel-completed .orders-bulk-action-utilities {
    grid-column: 1 !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    width: 100% !important;
  }
  #panel-queued .orders-bulk-action-primary,
  #panel-processing .orders-bulk-action-primary,
  #panel-completed .orders-bulk-action-primary { grid-row: 2 !important; }
  #panel-queued .orders-bulk-action-utilities,
  #panel-processing .orders-bulk-action-utilities,
  #panel-completed .orders-bulk-action-utilities { grid-row: 3 !important; }
  #panel-queued .orders-bulk-action-bar.is-utility-only .orders-bulk-action-utilities,
  #panel-processing .orders-bulk-action-bar.is-utility-only .orders-bulk-action-utilities,
  #panel-completed .orders-bulk-action-bar.is-utility-only .orders-bulk-action-utilities { grid-area: 2 / 1 !important; }
  #panel-queued .orders-bulk-action-divider,
  #panel-processing .orders-bulk-action-divider,
  #panel-completed .orders-bulk-action-divider { display: none !important; }
  #panel-queued .orders-bulk-action-button,
  #panel-processing .orders-bulk-action-button,
  #panel-completed .orders-bulk-action-button { width: 100% !important; min-height: 42px !important; }
  #panel-queued .orders-bulk-action-header .orders-bulk-action-button-clear,
  #panel-processing .orders-bulk-action-header .orders-bulk-action-button-clear,
  #panel-completed .orders-bulk-action-header .orders-bulk-action-button-clear { grid-area: 1 / 2 !important; width: auto !important; }
  #panel-queued.bulk-active,
  #panel-processing.bulk-active,
  #panel-completed.bulk-active { padding-bottom: 176px !important; }
}
