/* Back-office only. The design system (tokens, shell, components) is /ui/ui.css. */
.bar .chips { margin-left: auto; }
.panel .totals { margin-bottom: 0; }
td .pill + .pill { margin-left: 4px; }

/* search sheet (search.js): Spotlight-style, glass is fine here: it is navigation, not content */
.sp-open { display: flex; align-items: center; gap: 8px; min-height: 32px; margin: 0 4px 6px; padding: 0 10px; border: 0; border-radius: var(--r-sm);
  background: var(--fill-4); color: var(--label-2); font: 500 13px/1 var(--font); cursor: pointer; }
.sp-open:hover { background: var(--fill-3); }
.sp-open kbd { margin-left: auto; font: 500 11px/1 var(--font); color: var(--label-3); }
.sp-ico { --i: var(--i-search); width: 15px; height: 15px; }
@media (max-width: 820px) { .sp-open { display: none; } }
dialog.spotlight { width: min(620px, 92vw); margin: 12vh auto auto; border-radius: var(--r-xl); padding: 0; }
dialog.spotlight[open] { animation: sheet-in .32s var(--ease); }
.sp-in { display: grid; }
.sp-field { display: flex; align-items: center; gap: 10px; padding: 14px 18px; border-bottom: .5px solid var(--separator); color: var(--label-2); }
.sp-field .sp-ico { width: 20px; height: 20px; }
.sp-field input { flex: 1; border: 0; background: none; font: 400 20px/1.2 var(--font); padding: 4px 0; min-height: 0; box-shadow: none; }
.sp-field input:focus { background: none; box-shadow: none; border: 0; }
.sp-list { max-height: 50vh; overflow-y: auto; padding: 6px; display: grid; }
.sp-row { display: flex; align-items: center; gap: 12px; min-height: 40px; padding: 0 12px; border: 0; border-radius: var(--r-sm); background: none; text-align: left; font: 500 15px/1.2 var(--font); color: var(--label); cursor: pointer; }
.sp-row.on { background: var(--tint); color: #fff; }
.sp-row.on .sp-kind { color: rgba(255, 255, 255, .8); }
.sp-kind { width: 64px; flex: none; font-size: 12px; color: var(--label-2); }
.sp-empty { padding: 16px 12px; color: var(--label-2); }
.sp-hint { margin: 0; padding: 8px 18px 12px; font-size: 12px; color: var(--label-3); border-top: .5px solid var(--separator); }

/* change against the previous period on the dashboard tiles */
.delta { display: inline-flex; align-items: center; min-height: 18px; padding: 0 6px; margin-right: 6px; border-radius: var(--r-pill); font: 600 11px/1 var(--font-rounded); background: var(--fill-3); color: var(--label-2); }
.delta.up { background: color-mix(in srgb, var(--green) 16%, transparent); color: var(--green-text); }
.delta.down { background: color-mix(in srgb, var(--red) 13%, transparent); color: var(--red-text); }
