/* Badges, banners and the labour-rule confirm panel (Q-8). Status always pairs colour with text or an icon. */

.badge {
  display: inline-flex; align-items: center; gap: 4px;
  height: 22px; padding: 0 var(--space-2);
  border-radius: 999px;
  font-size: var(--text-xs); font-weight: 500;
  background: var(--surface-muted); color: var(--text-secondary);
}
.badge--danger { background: var(--danger-tint); color: var(--danger); }
.badge--warning { background: var(--warning-tint); color: var(--warning); }
.badge--success { background: var(--success-tint); color: var(--success); }
.badge--info { background: var(--info-tint); color: var(--info); }

.banner {
  display: flex; align-items: flex-start; gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  border: 1px solid currentColor; border-radius: var(--radius);
  font-size: var(--text-sm);
}
.banner p, .banner ul { color: var(--text); }
.banner ul { padding-left: var(--space-5); }
.banner .icon { margin-top: 2px; }
.banner__action { margin-left: auto; align-self: center; } /* Undo, beside "Moved … to Trash." */
.banner--danger { background: var(--danger-tint); color: var(--danger); }
.banner--warning { background: var(--warning-tint); color: var(--warning); }
.banner--success { background: var(--success-tint); color: var(--success); }
.banner--info { background: var(--info-tint); color: var(--info); }

.confirm {
  display: flex; flex-direction: column; gap: var(--space-3);
  padding: var(--space-4);
  border: 1px solid var(--warning); border-radius: var(--radius-lg);
  background: var(--warning-tint);
}
.confirm__title { display: flex; align-items: center; gap: var(--space-2); color: var(--warning); font-weight: 600; }
.confirm ul { padding-left: var(--space-5); color: var(--text); font-size: var(--text-sm); }
.confirm--blocked { border-color: var(--danger); background: var(--danger-tint); }
.confirm--blocked .confirm__title { color: var(--danger); }

/* A test licence's install (LA-20): a strip at the top of every page, the wallboard and a printed schedule's header
   say "Test copy", so it's never taken for the live floor. */
.test-copy {
  display: flex; align-items: center; gap: var(--space-2); margin: 0;
  padding: var(--space-2) var(--space-4); border-radius: var(--radius);
  background: var(--warning-tint); color: var(--warning); font-size: var(--text-sm); font-weight: 600;
}
/* A demo install (planning/34_Demo_Instances.md §2): a calm strip at the top of every page, the sign-in pages and the
   wallboard's TV mode, so its made-up floor is never taken for a real one. */
.demo-banner {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-2) var(--space-4); margin: 0;
  padding: var(--space-2) var(--space-4); border-radius: var(--radius);
  background: var(--info-tint); color: var(--text); font-size: var(--text-sm);
}
.demo-banner__text { display: flex; align-items: baseline; gap: var(--space-2); margin: 0; }
.demo-banner__label { color: var(--info); font-weight: 600; }
/* The view menu: who a visitor sees the demo as. */
.demo-views .segmented__item { border: 0; background: none; font-family: inherit; cursor: pointer; }
.demo-views .segmented__item[aria-current="true"] { background: var(--accent); color: var(--accent-contrast); }
.main > .demo-banner { border-radius: 0; padding-inline: var(--space-6); }
.banner[hidden] { display: none; }
