/* Shared pieces from kit.js: the Undo bar shown after every recorded change. */
.undo-bar {
  position: fixed; left: 50%; bottom: calc(18px + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 120;
  display: flex; align-items: center; gap: 12px; padding: 9px 12px 9px 14px; max-width: calc(100vw - 32px);
  background: var(--tip-bg); color: var(--tip-ink); border-radius: var(--radius); font-size: 14px;
  box-shadow: 0 6px 18px rgba(12, 18, 15, 0.22); animation: undo-in 0.2s ease-out both;
}
.undo-bar .ic { flex: none; }
.undo-bar span { white-space: nowrap; }
.undo-bar .link-btn { font: inherit; color: inherit; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; background: none; border: 0; padding: 4px 6px; cursor: pointer; }
.undo-bar .link-btn.muted { opacity: 0.78; font-weight: 400; text-decoration: none; }
.undo-bar .link-btn:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; border-radius: 4px; }
.num.neg { color: var(--neg-ink); }
@keyframes undo-in { from { opacity: 0; transform: translate(-50%, 8px); } to { opacity: 1; transform: translate(-50%, 0); } }
@media (prefers-reduced-motion: reduce) { .undo-bar { animation: none; } }
@media (max-width: 700px) { .undo-bar { bottom: calc(72px + env(safe-area-inset-bottom)); } }
/* Expense receipts: lines at several VAT rates, the per-rate summary and the receipt evidence panel. */
.rc-line { padding: 12px; display: flex; flex-direction: column; gap: 10px; box-shadow: none; }
.rc-figs { display: flex; gap: 14px; margin-left: auto; align-items: flex-end; }
.rc-figs .field { text-align: right; }
.rc-out { display: block; min-width: 84px; font-weight: 500; font-variant-numeric: tabular-nums; }
.rc-out.gross { font-weight: 600; }
.rc-err { margin: 0; color: var(--bad-ink); font-size: 13px; }
.rc-err:empty { display: none; }
.rc-rates { align-items: center; }
.rc-sum { font-size: 13.5px; }
.rc-sum tfoot th, .rc-sum tfoot td { font-weight: 600; border-top: 1px solid var(--line-strong, var(--line)); }
.rc-rates-sum { margin: 0; }
.chip.ok { color: var(--ok-ink); }
.ev-state { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 0; }
.ev-state.ev-missing, .ev-state.ev-mismatch { color: var(--warn-ink); }
.ev-state.ev-reviewed { color: var(--ok-ink); }
.ev-state .muted-text { color: var(--text-3); font-weight: 400; }
@media (max-width: 700px) { .rc-figs { margin-left: 0; width: 100%; justify-content: space-between; } }
/* expense stages (Odoo's summary above the expenses list) */
.xp-slot:empty { display: none; }
.xp-stages { display: flex; align-items: center; justify-content: space-around; gap: 8px; padding: 14px 12px; margin: 0 0 14px;
  background: var(--card, var(--bg-elev)); border: 1px solid var(--line); border-radius: 12px; flex-wrap: wrap; }
.xp-stage { display: flex; flex-direction: column; align-items: center; gap: 2px; min-width: 150px; padding: 8px 14px; border: 0;
  border-radius: 10px; background: transparent; color: inherit; cursor: pointer; font: inherit; }
.xp-stage strong { font-size: 18px; font-weight: 500; color: var(--accent, #6b3e66); }
.xp-stage span { font-size: 13px; }
.xp-stage .xp-count { font-size: 11.5px; color: var(--muted); }
.xp-stage:hover, .xp-stage[aria-pressed="true"] { background: var(--hover, rgba(127, 127, 127, 0.12)); }
.xp-stage:focus-visible { outline: 2px solid var(--focus, #3b82f6); outline-offset: 2px; }
.xp-arrow { font-size: 30px; line-height: 1; color: var(--muted); }
@media (max-width: 640px) { .xp-arrow { display: none; } .xp-stage { min-width: 0; flex: 1 1 30%; } }
[data-layout="odoo"] .xp-stages { border-radius: 0; border-width: 0 0 1px; background: transparent; margin: 0; }
[data-layout="odoo"] .xp-stage strong { color: #c583b2; }
