/* Operational orders: one queue, one reason, one next step. */
.order-operations {
  --text: #25392e; --muted: #5b6b61; --white: #fff; --surface: #fff; --surface-2: #f4f7f3;
  --line: #dce3dd; --paper: #f5f7f3; --paper-2: #eff3ee; --gold-strong: #355e49;
  color: var(--text); color-scheme: light; display: grid; gap: 16px;
}
.order-operations .panel, .order-operations .filter-bar { background: #fff; box-shadow: 0 2px 10px rgb(27 46 33 / .04); border: 1px solid var(--line); }
.order-operations h2 { color: #25392e; text-transform: none; letter-spacing: -.015em; }
.order-operations .panel-copy { color: #5b6b61; line-height: 1.6; }
.order-operations .button { background: #f4f7f3; color: #294b37; border: 1px solid #cbd9ce; box-shadow: none; min-height: 44px; }
.order-operations .button:hover { background: #e7efe8; }
.order-operations .search-field { display: flex; align-items: center; background: #f7f9f6; border-color: #d3ddd5; color: #304c3c; gap: 12px; }
.order-operations .search-field input { background: transparent; color: #263d30; flex: 1; min-width: 0; min-height: 44px; }
.order-operations .order-list-row { background: #fff; box-shadow: none; padding: 18px; }
.order-operations .order-list-row.is-selected { box-shadow: none; border-color: #dce2dd; border-left-color: var(--queue-border); }
.order-operations .order-next-step span { color: var(--queue-ink); }
.order-operations .order-quick-filter { background: #f3f6f2; color: #36533f; }
.order-operations .order-quick-filter.is-active { background: #e4efe6; border-color: #568564; }
.order-operations .order-row-id, .order-operations .order-row-customer, .order-operations .order-row-total, .order-operations .order-row-items, .order-operations .order-row-delivery { gap: 4px; }
.order-operations .order-row-items { padding-bottom: 0; }
.order-overview-panel { padding: 24px; border-radius: 18px; }
.order-eyebrow { color: #526457; font-size: 11px; font-weight: 750; letter-spacing: .12em; }
.order-overview-head h2 { font-size: clamp(22px, 2vw, 30px); margin: 8px 0; }
.order-workflow-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; margin-top: 24px; }
.order-workflow--warning { --queue-ink: #805012; --queue-bg: #fff8eb; --queue-border: #ddb875; }
.order-workflow--success { --queue-ink: #246247; --queue-bg: #edf7f0; --queue-border: #89b59b; }
.order-workflow--pending { --queue-ink: #465779; --queue-bg: #f0f4fb; --queue-border: #a1b2d0; }
.order-workflow--info { --queue-ink: #315c72; --queue-bg: #edf6fa; --queue-border: #94bccd; }
.order-workflow--muted { --queue-ink: #5a6267; --queue-bg: #f3f4f5; --queue-border: #bcc4c9; }
.order-workflow-card { display: grid; grid-template-columns: 1fr auto; align-content: start; gap: 10px; padding: 18px; border: 1px solid #dce2dd; border-radius: 14px; color: #26352d; background: #fff; text-align: left; font: inherit; cursor: pointer; min-width: 0; min-height: 155px; }
.order-workflow-card > svg { width: 22px; height: 22px; color: var(--queue-ink); }
.order-workflow-card > strong { font-size: 30px; line-height: 1; font-variant-numeric: tabular-nums; color: var(--queue-ink); }
.order-workflow-card > span { grid-column: 1 / -1; font-size: 14px; font-weight: 700; line-height: 1.45; }
.order-workflow-card > small { grid-column: 1 / -1; color: #606963; font-size: 12px; line-height: 1.5; }
.order-workflow-card:hover, .order-workflow-card.is-active { background: var(--queue-bg); border-color: var(--queue-border); }
.order-workflow-card.is-active { box-shadow: inset 0 0 0 1px var(--queue-ink); }
.order-workflow-card:focus-visible, .order-history-tools summary:focus-visible { outline: 3px solid #335f88; outline-offset: 3px; }
.order-history-tools { display: flex; align-items: flex-start; gap: 12px; flex-wrap: wrap; margin-top: 18px; }
.order-history-tools summary { cursor: pointer; padding: 12px; min-height: 44px; color: #43534a; }
.order-history-tools details[open] { flex: 1 1 100%; }
.order-search-label { color: #46564d; font-size: 13px; font-weight: 600; white-space: nowrap; }
.order-count-label { display: inline-block; margin-left: 8px; color: #526457; font-size: 16px; font-variant-numeric: tabular-nums; }
.order-workflow-row { margin-bottom: 12px; border: 1px solid #dce2dd; border-left: 4px solid var(--queue-border); border-radius: 12px; overflow: hidden; }
.order-workflow-row .order-row-id strong { font-size: 15px; }
.order-workflow-row .order-row-customer strong { font-size: 16px; }
.order-workflow-row .order-row-total strong { font-variant-numeric: tabular-nums; }
.order-workflow-row .order-row-badges { align-items: center; gap: 8px; }
.order-payment-caption { color: #5a675f; font-size: 12px; }
.order-next-step { grid-column: 1 / -1; display: grid; gap: 4px; padding: 12px 16px; background: var(--queue-bg); color: var(--queue-ink); border-radius: 8px; font-size: 13px; line-height: 1.55; overflow-wrap: anywhere; }
.order-next-step strong { font-weight: 650; }
.order-guidance { display: flex; align-items: flex-start; gap: 14px; margin: 18px 0; padding: 20px; background: var(--queue-bg); border: 1px solid var(--queue-border); border-radius: 12px; color: var(--queue-ink); }
.order-guidance > svg { flex-shrink: 0; width: 24px; height: 24px; }
.order-guidance h3 { color: inherit; font-size: 18px; margin: 0 0 8px; }
.order-guidance p { margin: 4px 0; font-size: 14px; line-height: 1.55; }
@media (max-width: 1150px) { .order-workflow-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 720px) {
  .order-overview-panel { padding: 16px; }
  .order-workflow-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .order-workflow-card { min-height: 140px; padding: 14px; }
  .order-workflow-card:last-child { grid-column: 1 / -1; min-height: auto; }
  .order-workflow-row .order-row-actions .button { min-height: 44px; width: 100%; }
  .order-search-label { display: none; }
  .order-guidance { padding: 16px; }
}
