/* Composants partagés du module Catering. */
.cmm-btn {
	display: inline-flex;
	align-items: center;
	gap: var(--ui-space-sm);
	min-height: 44px;
	padding: 0 var(--ui-space-xl);
	border-radius: var(--ui-radius-md);
	border: 1px solid transparent;
	font-weight: 600;
	text-decoration: none;
	transition: transform 0.2s var(--ease-out), box-shadow 0.2s var(--ease-out), background-color 0.2s var(--ease-out);
}
.cmm-btn:hover,
.cmm-btn:focus { text-decoration: none; transform: translateY(-2px); box-shadow: var(--ui-shadow-md); }
.cmm-btn:active { transform: translateY(0) scale(0.98); }
.cmm-btn:focus-visible { outline: 2px solid var(--ui-border-focus); outline-offset: 2px; }
/* Sélecteurs renforcés : un thème admin (ex. html.nui-admin a) impose sinon sa couleur de lien. */
.cmm-btn--primary { background: var(--cmm-hero-via); }
.cmm-btn--light { background: var(--ui-bg-card); }
.cmm-btn--ghost { background: var(--cmm-glass); border-color: var(--cmm-glass-border); }
html body a.cmm-btn--primary, html body a.cmm-btn--primary:hover, html body a.cmm-btn--primary:focus,
html body a.cmm-btn--ghost, html body a.cmm-btn--ghost:hover, html body a.cmm-btn--ghost:focus { color: var(--ui-text-inverse); }
html body a.cmm-btn--light, html body a.cmm-btn--light:hover, html body a.cmm-btn--light:focus { color: var(--cmm-hero-from); }

.cmm-pill {
	display: inline-block;
	padding: 3px 10px;
	border-radius: 999px;
	font-size: 12px;
	font-weight: 600;
	white-space: nowrap;
}
.cmm-pill--enquiry { background: var(--cmm-soft-info); color: var(--cmm-ink-info); }
.cmm-pill--quoted { background: var(--cmm-soft-purple); color: var(--cmm-ink-purple); }
.cmm-pill--confirmed, .cmm-pill--completed { background: var(--cmm-soft-success); color: var(--cmm-ink-success); }
.cmm-pill--in_progress { background: var(--cmm-soft-warning); color: var(--cmm-ink-warning); }
.cmm-pill--cancelled, .cmm-pill--lost { background: var(--cmm-soft-danger); color: var(--cmm-ink-danger); }

@keyframes cmm-fade-up {
	from { opacity: 0; transform: translateY(14px); }
	to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
	.cmm-dash *, .cmm-dash *::before, .cmm-dash *::after,
	.cmm-btn {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
	}
}

.cmm-pill--pending { background: var(--cmm-soft-warning); color: var(--cmm-ink-warning); }
.cmm-pill--contacted { background: var(--cmm-soft-info); color: var(--cmm-ink-info); }
.cmm-pill--converted { background: var(--cmm-soft-success); color: var(--cmm-ink-success); }

.cmm-illus { display: block; max-width: 100%; height: auto; }
.cmm-tip { display: inline-block; margin-left: 2px; color: var(--ui-text-muted); font-size: 13px; font-weight: 400; letter-spacing: 0; text-transform: none; vertical-align: baseline; cursor: help; transition: color 0.15s var(--ease-out); }
.cmm-tip:hover, .cmm-tip:focus { color: var(--cmm-hero-via); outline: none; }
.cmm-tip:focus-visible { outline: 2px solid var(--ui-border-focus); outline-offset: 2px; border-radius: 50%; }

/* Menus bootstrap-select rendus sur <body> : toujours au-dessus des modales */
.bs-container { z-index: 100000 !important; }
.bs-container .dropdown-menu { z-index: 100000 !important; }
