.trend-toolbar,
.trend-lunch-key {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
}
.trend-toolbar {
  justify-content: space-between;
  gap: .45rem 1rem;
  margin-bottom: .95rem;
  color: #555e69;
  font-size: .875rem;
  line-height: 1.45;
}
.trend-toolbar [data-trend-readout] {
  color: #343b45;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.trend-lunch-key { gap: .45rem; }
.trend-lunch-key[hidden] { display: none; }
.trend-lunch-key i {
  width: .9rem;
  height: .72rem;
  border: 1px solid #d9aa70;
  border-radius: 3px;
  background: #fcebd3;
}
.trend-grid { display: grid; }
.trend-card {
  min-width: 0;
  display: flex;
  flex-direction: column;
  container: trend-card / inline-size;
}
.trend-card h3 { margin: 0 0 .9rem; line-height: 1.3; }
.trend-values {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem 1.15rem;
  margin: 0 0 1rem;
}
.trend-values dt {
  display: flex;
  align-items: center;
  gap: .38rem;
  color: #565f6a;
  line-height: 1.3;
}
.trend-values dd {
  color: #262b32;
  font-size: 1.04rem;
  font-weight: 620;
  font-variant-numeric: tabular-nums;
  margin-top: .22rem;
  line-height: 1.25;
}
.trend-values dt i { width: .86rem; flex: none; border-top: 3px solid var(--series); }
.trend-values dt .trend-limit { border-top-style: dashed; }
.trend-svg {
  width: 100%;
  height: clamp(205px,49cqw,275px);
  margin-top: auto;
  display: block;
  overflow: visible;
  cursor: crosshair;
}
.trend-svg text {
  font-family: inherit;
  font-size: .85rem;
  fill: #586371;
  font-variant-numeric: tabular-nums;
}
.trend-svg .trend-axis line { stroke: #e3e7eb; stroke-width: 1; }
.trend-svg .trend-lunch { fill: #fcebd3; }
.trend-svg .trend-line { fill: none; stroke-width: 2.2; stroke-linejoin: round; stroke-linecap: round; }
.trend-svg .trend-line.trend-limit { stroke-dasharray: 5 4; stroke-width: 1.7; }
.trend-svg .trend-cursor { stroke: #88929d; stroke-width: 1; }
.trend-svg .trend-dot { stroke: white; stroke-width: 1.3; }
.trend-svg :is(path, line, circle) { vector-effect: non-scaling-stroke; }
.trend-svg:focus-visible { outline: 2px solid #b84722; outline-offset: 3px; border-radius: 4px; }

.trend-balance { min-width: 0; padding: .9rem 1rem; border-radius: 10px; background: #f5f7f8; }
.trend-balance-head { display: flex; align-items: baseline; flex-wrap: wrap; justify-content: space-between; gap: .2rem .7rem; }
.trend-balance h4 { margin: 0; color: #35414b; font-size: .94rem; font-weight: 620; }
.trend-balance time { color: #56616b; font-size: .84rem; }
.trend-balance-total { display: block; margin: .25rem 0 .4rem; color: #27383f; font-size: 1.55rem; font-weight: 640; line-height: 1.24; }
.trend-balance dl { margin: 0; }
.trend-balance dl > div { display: flex; align-items: baseline; justify-content: space-between; gap: .75rem; padding: .29rem 0; border-top: 1px solid #dfe4e5; font-size: .86rem; }
.trend-balance dt { color: #505d67; }
.trend-balance dd, .trend-balance-total, .trend-balance time { font-variant-numeric: tabular-nums; }
.trend-balance dd { margin: 0; font-weight: 620; }
.trend-balance a { display: inline-block; margin-top: .45rem; color: #854125; font-size: .86rem; text-underline-offset: .17em; }
.trend-orders { grid-column: 1 / -1; }
.trend-orders .trend-balance { margin-top: .7rem; }
.trend-finances, .trend-cancellations { grid-column: 1 / -1; }
@container dashboard (min-width: 47rem) {
  .trend-orders { display: grid; grid-template-columns: minmax(0,1fr) minmax(220px,30%); column-gap: var(--report-gap,1.2rem); }
  .trend-orders h3, .trend-orders .trend-values, .trend-orders .trend-svg { grid-column: 1; }
  .trend-orders .trend-balance { grid-column: 2; grid-row: 1 / span 3; margin-top: 0; align-self: stretch; display: flex; flex-direction: column; }
  .trend-orders .trend-balance a { margin-top: auto; padding-top: .6rem; }
  .trend-orders .trend-svg { height: clamp(219px,28cqw,275px); }
}
