/* Orders: one coherent financial strip, with explicit date axes. */
#page-orders #orders-summary {
  display:block !important;
  grid-template-columns:none !important;
  min-width:0;
  width:100%;
  padding-top:10px;
  color:var(--text-primary);
}
#page-orders #orders-summary > .orders-metrics-heading,
#page-orders #orders-summary > .orders-metrics-grid {
  height:auto !important;
  min-height:0 !important;
  padding:0 !important;
  justify-content:initial !important;
  align-items:initial !important;
}
#page-orders .orders-metrics-heading {
  display:flex !important;
  align-items:baseline !important;
  flex-wrap:wrap;
  gap:3px 12px;
  margin-bottom:9px;
  color:var(--text-secondary);
  font-size:12px;
  font-weight:700;
}
#page-orders .orders-metrics-heading-note {
  color:var(--text-muted);
  font-size:11px;
  font-weight:500;
}
#page-orders .orders-metrics-grid {
  display:grid !important;
  grid-template-columns:repeat(6,minmax(0,1fr));
  overflow:hidden;
  border:1px solid var(--border);
  border-radius:10px;
  background:var(--bg-surface);
}
#page-orders .orders-metric {
  position:relative;
  display:flex;
  min-width:0;
  flex-direction:column;
  align-items:flex-start;
  justify-content:flex-start;
  gap:3px;
  padding:11px 28px 11px 14px;
}
#page-orders .orders-metric-handle { position:absolute;right:2px;top:4px;width:24px;height:32px;border:0;background:transparent;color:var(--text-muted);cursor:grab;touch-action:none; }
#page-orders .orders-metric-handle:focus-visible { outline:2px solid var(--accent); }
#page-orders .orders-metric.is-moving { background:var(--accent-light); }
#page-orders .orders-metrics-reset { margin-left:auto;background:transparent;border:0;color:var(--text-secondary);font-size:11px;cursor:pointer;padding:4px; }
#page-orders .orders-metrics-grid .orders-metric + .orders-metric {
  border-left:1px solid var(--border-light);
}
#page-orders .orders-metric-label {
  color:var(--text-secondary);
  font-size:11px;
  font-weight:700;
  line-height:1.2;
}
#page-orders .orders-metric-value {
  max-width:100%;
  overflow-wrap:anywhere;
  color:var(--text-primary);
  font-size:20px;
  font-weight:730;
  font-variant-numeric:tabular-nums;
  letter-spacing:-.03em;
  line-height:1.2;
}
#page-orders .orders-metric-primary .orders-metric-value { color:var(--accent,#16834b); }
#page-orders .orders-metric-alert .orders-metric-value { color:var(--danger,#c03939); }
#page-orders .orders-metric-hint {
  min-height:2.6em;
  color:var(--text-muted);
  font-size:11px;
  line-height:1.3;
}
#page-orders .orders-metrics-details { margin-top:8px; }
#page-orders .orders-metrics-details summary {
  display:inline-flex;
  min-height:36px;
  align-items:center;
  cursor:pointer;
  color:var(--text-secondary);
  font-size:12px;
  font-weight:650;
}
#page-orders .orders-metrics-details summary:hover,
#page-orders .orders-metrics-details summary:focus-visible { color:var(--text-primary); }
#page-orders .orders-metrics-details summary::after { content:'⌄'; margin-left:6px; font-size:15px; line-height:1; }
#page-orders .orders-metrics-details[open] summary::after { transform:rotate(180deg); }
#page-orders .orders-metrics-secondary {
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:0;
  border:1px solid var(--border-light);
  border-radius:9px;
  background:var(--bg-surface-2);
}
#page-orders .orders-metrics-secondary .orders-metric + .orders-metric { border-left:1px solid var(--border-light); }
#page-orders .orders-metrics-secondary .orders-metric-value { font-size:16px; }
#page-orders .orders-metrics-footnote {
  max-width:900px;
  margin:7px 0 2px;
  color:var(--text-muted);
  font-size:11px;
  line-height:1.4;
}
@media (max-width:1100px) {
  #page-orders .orders-metrics-grid { grid-template-columns:repeat(3,minmax(0,1fr)); }
  #page-orders .orders-metrics-grid .orders-metric:nth-child(4) { border-left:0; }
  #page-orders .orders-metrics-grid .orders-metric:nth-child(n+4) { border-top:1px solid var(--border-light); }
}
@media (max-width:740px) {
  #page-orders .orders-metrics-grid,
  #page-orders .orders-metrics-secondary { grid-template-columns:repeat(2,minmax(0,1fr)); }
  #page-orders .orders-metrics-grid .orders-metric:nth-child(odd),
  #page-orders .orders-metrics-secondary .orders-metric:nth-child(odd) { border-left:0; }
  #page-orders .orders-metrics-grid .orders-metric:nth-child(even),
  #page-orders .orders-metrics-secondary .orders-metric:nth-child(even) { border-left:1px solid var(--border-light); }
  #page-orders .orders-metrics-grid .orders-metric:nth-child(n+3),
  #page-orders .orders-metrics-secondary .orders-metric:nth-child(n+3) { border-top:1px solid var(--border-light); }
  #page-orders .orders-metrics-grid .orders-metric:last-child { grid-column:1/-1; }
  #page-orders .orders-metric { padding:9px 11px; }
  #page-orders .orders-metric-value { font-size:18px; }
}
