/* =========================================================
	 1. Base / layout global
	 ========================================================= */

* {
	touch-action: manipulation; /* disable double-tap zoom */
}

html,
body {
	margin: 0;
	padding: 0;
}

.is-hidden {
	display: none !important;
}

[data-bs-theme="dark"] {
	--bs-body-bg: #000000;
}

[data-bs-theme="dark"] .modal-content {
	background: #212529;
	--bs-body-bg: #212529;
	--bs-secondary-bg: #f8f9fa;
	--bs-body-color: #ffffff;
}

.modal-backdrop {
	--bs-backdrop-opacity: 0.8;
}

/* =========================================================================== */
/* === Login screens ========================================================= */
/* =========================================================================== */

.login-page {
	min-height: 100vh;
	background:
		radial-gradient(circle at center, rgba(236, 102, 7, 0.18), transparent 30%),
		linear-gradient(135deg, #002d39 0%, #003b4b 40%, #01495d 100%);
	color: #f4f7fa;
}

.login-shell {
	min-height: 100vh;
}

.login-brand {
	display: flex;
	justify-content: center;
	margin-bottom: 1.5rem;
}

.login-brand-logo {
	display: block;
	height: 65px;
	width: auto;
}

.login-card {
	background: rgba(7, 18, 24, 0.72);
	border: 1px solid rgba(255, 255, 255, 0.10);
	border-radius: 1.5rem;
	backdrop-filter: blur(10px);
	box-shadow: 0 1.5rem 4rem rgba(0, 0, 0, 0.30);
	overflow: hidden;
}

.login-card-body {
	padding: 2rem;
}

@media (min-width: 992px) {
	.login-card-body {
		padding: 2.5rem;
	}
}

.login-title {
	font-size: 1.9rem;
	font-weight: 800;
	line-height: 1.15;
	letter-spacing: -0.02em;
	margin-bottom: 0.75rem;
	color: #ffffff;
	text-align: center;
}

.login-subtitle {
	margin-bottom: 1.75rem;
	font-size: 1rem;
	line-height: 1.6;
	color: rgba(244, 247, 250, 0.82);
	text-align: center;
}

.login-page .form-label {
	font-weight: 600;
	color: #ffffff;
	margin-bottom: 0.55rem;
}

.login-page .form-control,
.login-page .form-select {
	min-height: 3.25rem;
	border-radius: 0.9rem;
	border: 1px solid rgba(255, 255, 255, 0.14);
	background: rgba(255, 255, 255, 0.08);
	color: #ffffff;
	box-shadow: none;
}

.login-page .form-control::placeholder {
	color: rgba(255, 255, 255, 0.45);
}

.login-page .form-control:focus,
.login-page .form-select:focus {
	border-color: rgba(236, 102, 7, 0.8);
	box-shadow: 0 0 0 0.25rem rgba(236, 102, 7, 0.18);
	background: rgba(255, 255, 255, 0.10);
	color: #ffffff;
}

.login-page .form-select option {
	color: #111;
}

.login-page .form-text {
	color: rgba(244, 247, 250, 0.68) !important;
}

.login-page .btn-primary {
	background: linear-gradient(135deg, #ec6607 0%, #ff7d26 100%);
	border: none;
	border-radius: 0.95rem;
	font-weight: 700;
	padding: 0.95rem 1.25rem;
	box-shadow: 0 0.8rem 2rem rgba(236, 102, 7, 0.22);
}

.login-page .btn-primary:hover,
.login-page .btn-primary:focus {
	background: linear-gradient(135deg, #f06d11 0%, #ff8a3c 100%);
}

.login-page .btn-outline-light {
	border-radius: 0.95rem;
	border-color: rgba(255, 255, 255, 0.25);
	color: #f4f7fa;
}

.login-page .btn-outline-light:hover,
.login-page .btn-outline-light:focus {
	background: rgba(255, 255, 255, 0.08);
	border-color: rgba(255, 255, 255, 0.4);
	color: #ffffff;
}

.login-page .alert-danger {
	border: 1px solid rgba(255, 107, 107, 0.25);
	background: rgba(255, 107, 107, 0.12);
	color: #ffd6d6;
	border-radius: 1rem;
}

.login-page .event-code-group {
	margin-left: auto;
	margin-right: auto;
	text-align: center;
}

.login-page .event-code-input {
	min-height: 4rem;
	max-width: 15rem;
	margin-left: auto;
	margin-right: auto;
	text-align: center;
	font-size: 1.5rem;
	font-weight: 800;
	letter-spacing: 0.18em;
	text-transform: uppercase;
}

.login-page .event-code-input::placeholder {
	letter-spacing: 0.08em;
	text-transform: none;
}

.login-motivation {
	margin-top: 1rem;
	padding-top: 1rem;
	border-top: 1px solid rgba(255, 255, 255, 0.08);
	font-size: 0.95rem;
	color: rgba(244, 247, 250, 0.75);
	text-align: center;
}

.login-footer {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	flex-wrap: wrap;
	margin-top: 1.25rem;
	text-align: center;
	color: rgba(244, 247, 250, 0.72);
	font-size: 0.95rem;
}

.login-footer .by {
	color: rgba(244, 247, 250, 0.72);
}

.app-footer-brand {
	display: inline-flex;
	align-items: center;
}

.app-footer-brand-logo {
	display: block;
	opacity: 0.96;
}

/* =========================================================
	 2. Catalogue produits
	 ========================================================= */

.fd-items .product-card,
.product-card {
	display: block;
	width: 100%;
	padding: 0;
	border: 0;
	background: transparent;
	text-align: center;
	text-decoration: none;
}

.fd-items .product-card {
	border-radius: 20px;
}

.fd-items .card img,
.product-card img {
	align-self: center;
}

.fd-items .card,
.product-tile {
	overflow: hidden;
}

.card-img-top {
	width: 100%;
	height: 120px;
	object-fit: cover;
}

.card-text {
	font-weight: 700;
}

.card-footer {
	padding: 0.5rem;
}

.product-card:active,
.touch-btn:active {
	transform: scale(0.98);
}

.product-card {
	position: relative;
	overflow: visible;
}

.product-tile {
	position: relative;
	overflow: hidden;
	border-radius: 0.75rem;
}

.product-qty-badge {
	position: absolute;
	top: -10px;
	right: -10px;
	z-index: 5;
	min-width: 2rem;
	line-height: 1.2;
	box-shadow: 0 0.2rem 0.5rem rgba(0, 0, 0, 0.25);
}


/* =========================================================
	 3. Onglets catégories
	 ========================================================= */

.nav-tabs {
	border-bottom-color: var(--bs-border-color);
}

.nav-tabs .nav-link {
	color: var(--bs-body-color);
	border-color: transparent;
}

.nav-tabs .nav-link:hover,
.nav-tabs .nav-link:focus {
	border-color: var(--bs-border-color) var(--bs-border-color) transparent;
	background: var(--bs-secondary-bg);
	color: var(--bs-emphasis-color);
}

.nav-tabs .nav-link.active {
	background: var(--bs-secondary-bg);
	color: var(--bs-emphasis-color);
	border-color: var(--bs-border-color) var(--bs-border-color) var(--bs-secondary-bg);
}

.tab-content {
	background: var(--bs-secondary-bg) !important;
}


/* =========================================================
	 4. Cartes produit
	 ========================================================= */

.product-card {
	text-align: inherit;
}

.product-tile {
	position: relative;
	background: var(--bs-secondary-bg);
	border: 1px solid var(--bs-border-color);
	border-radius: 0.75rem;
	overflow: hidden;
	transition:
		transform 0.12s ease,
		border-color 0.12s ease,
		box-shadow 0.12s ease,
		opacity 0.12s ease;
}

.product-card:hover .product-tile,
.product-card:focus-visible .product-tile {
	border-color: var(--bs-primary-border-subtle);
	box-shadow: 0 0 0 0.2rem rgba(var(--bs-primary-rgb), 0.2);
}

.product-card:active .product-tile {
	transform: scale(0.985);
}

.product-card:focus {
	outline: none;
}

.product-card img {
	background: #ffffff;
}

.product-tile .card-footer {
	background: var(--bs-secondary-bg);
	border-top: 1px solid var(--bs-border-color);
	color: var(--bs-white);
}

.product-price {
	margin-top: 0.15rem;
	font-size: 0.9rem;
	font-weight: 600;
	color: var(--bs-emphasis-color);
	background: #292e32;
}

.product-card.is-unavailable .card-img-top {
	filter: grayscale(0.2);
}

.product-card.is-unavailable .product-tile::after {
	content: "";
	position: absolute;
	inset: 0;
	background: rgba(255, 255, 255, 0.45);
	backdrop-filter: saturate(0.8) blur(1px);
	z-index: 2;
	pointer-events: none;
}

/* Ruban rupture */
.product-ribbon-unavailable {
	--ribbon-width: clamp(180px, 75%, 340px);
	--ribbon-offset-x: clamp(-48px, -10%, -28px);
	--ribbon-offset-y: clamp(14px, 4.5%, 24px);
	--ribbon-padding-y: clamp(0.45rem, 1vw, 0.7rem);
	--ribbon-font-size: clamp(0.82rem, 1.25vw, 1.05rem);

	position: absolute;
	top: var(--ribbon-offset-y);
	right: var(--ribbon-offset-x);
	width: var(--ribbon-width);
	padding: var(--ribbon-padding-y) 0;
	text-align: center;
	font-size: var(--ribbon-font-size);
	font-weight: 900;
	line-height: 1;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	transform: rotate(35deg);
	transform-origin: center;
	background: linear-gradient(180deg, #ff5a5f 0%, #dc3545 100%);
	color: #fff;
	box-shadow: 0 0.35rem 0.9rem rgba(0, 0, 0, 0.35);
	z-index: 5;
	pointer-events: none;
	white-space: nowrap;
}

.product-card.is-unavailable {
	/* opacity: 0.55; */
	cursor: not-allowed;
}

.product-card.is-unavailable .card-img-top {
	filter: grayscale(70%) brightness(0.85);
}

/* =========================================================================== */
/* === Product ribbon: free (top-left flush) ================================= */
/* =========================================================================== */

.product-ribbon-free {
	position: absolute;
	top: 0;
	left: 0;
	z-index: 6;

	padding: 0.25rem 0.6rem;

	font-size: 0.7rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;

	background: rgba(25, 135, 84, 0.85);
	color: #fff;

	border-bottom-right-radius: 0.5rem;

	display: flex;
	align-items: center;
	justify-content: center;

	backdrop-filter: blur(4px);
	pointer-events: none;
}

/* =========================================================
	 5. Colonne commande
	 ========================================================= */

.mt-4 {
	margin-top: 0 !important;
}

.order-product-name {
	font-size: 0.95rem;
	font-weight: 600;
	color: #212529;
}

.order-qty {
	min-width: 34px;
	text-align: center;
}

.bh-card {
	margin-right: 1em;
}

.order-table {
	background: #fff;
	border-radius: 8px;
	overflow: hidden;
}

.order-table td,
.order-table th {
	vertical-align: middle;
}

.order-table .order-qty {
	display: inline-block;
	min-width: 36px;
	font-size: 1.5rem;
	font-weight: 800;
	text-align: center;
}

.order-table .order-total {
	font-weight: 600;
	white-space: nowrap;
}

.order-table .summary-row td {
	background: rgba(255, 193, 7, 0.08);
}

.order-table tfoot th {
	background: #e9ecef;
	font-size: 1.05rem;
}

.summary-meta {
	display: inline-flex;
	align-items: center;
	gap: 0.6rem;
	font-weight: 800;
}

.summary-meta-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2rem;
	height: 2rem;
	border-radius: 999px;
	background: rgba(13, 110, 253, 0.12);
	color: #0d6efd;
}


/* =========================================================
	 5bis. Mode caisse / mode commande
	 ========================================================= */

#cashdesk_notice {
	font-weight: 600;
}

.cashdesk-assistant {
	margin-top: 1rem;
	padding: 1rem;
	border-radius: 1rem;
	background: linear-gradient(135deg, #f8fbff 0%, #eef4ff 100%);
	border: 1px solid rgba(13, 110, 253, 0.16);
	box-shadow: 0 12px 26px rgba(15, 23, 42, 0.08);
	color: #122033;
}

.cashdesk-assistant-header {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 0.75rem;
	margin-bottom: 0.9rem;
}

.cashdesk-assistant-eyebrow {
	font-size: 0.78rem;
	font-weight: 800;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: #0d6efd;
}

.cashdesk-assistant-title {
	font-weight: 800;
	color: #122033;
}

.cashdesk-unit-badge {
	color: #122033 !important;
	background: rgba(255, 255, 255, 0.88) !important;
	border: 1px solid rgba(13, 110, 253, 0.16);
}

.cashdesk-total-box {
	display: flex;
	flex-direction: column;
	gap: 0.15rem;
	margin-bottom: 0.85rem;
	padding: 0.9rem 1rem;
	border-radius: 0.85rem;
	background: rgba(255, 255, 255, 0.88);
	border: 1px solid rgba(18, 32, 51, 0.08);
}

.cashdesk-total-label {
	font-size: 0.82rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: rgba(18, 32, 51, 0.66);
}

.cashdesk-total-value {
	font-size: clamp(1.5rem, 3vw, 2rem);
	font-weight: 900;
	line-height: 1.05;
	color: #0f172a;
}

.cashdesk-assistant-message {
	margin-bottom: 0.85rem;
	padding: 0.85rem 0.95rem;
	border-radius: 0.85rem;
	font-size: 0.95rem;
	font-weight: 600;
	line-height: 1.45;
	background: rgba(255, 255, 255, 0.72);
	border: 1px solid rgba(18, 32, 51, 0.08);
}

.cashdesk-assistant[data-state="ok"] .cashdesk-assistant-message {
	background: rgba(25, 135, 84, 0.1);
	border-color: rgba(25, 135, 84, 0.2);
	color: #0d5c38;
}

.cashdesk-assistant[data-state="missing_cards"] .cashdesk-assistant-message,
.cashdesk-assistant[data-state="no_match"] .cashdesk-assistant-message {
	background: rgba(255, 193, 7, 0.14);
	border-color: rgba(255, 193, 7, 0.24);
	color: #7a5200;
}

.cashdesk-cards-list {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
	gap: 0.75rem;
	margin-bottom: 0.9rem;
}

.cashdesk-card-pill {
	padding: 0.85rem 0.9rem;
	border-radius: 0.9rem;
	background: rgba(255, 255, 255, 0.95);
	border: 1px solid rgba(18, 32, 51, 0.08);
	box-shadow: 0 6px 18px rgba(15, 23, 42, 0.05);
}

.cashdesk-card-title {
	display: flex;
	align-items: baseline;
	gap: 0.45rem;
	margin-bottom: 0.25rem;
}

.cashdesk-card-count {
	font-size: 1.05rem;
	font-weight: 900;
	color: #0d6efd;
}

.cashdesk-card-label {
	font-size: 1rem;
	font-weight: 800;
	color: #122033;
}

.cashdesk-card-meta {
	font-size: 0.82rem;
	color: rgba(18, 32, 51, 0.72);
}

.cashdesk-metrics {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 0.75rem;
}

.cashdesk-metric {
	display: flex;
	flex-direction: column;
	gap: 0.25rem;
	padding: 0.85rem 0.9rem;
	border-radius: 0.9rem;
	background: rgba(255, 255, 255, 0.9);
	border: 1px solid rgba(18, 32, 51, 0.08);
}

.cashdesk-metric-highlight {
	background: #0d6efd;
	border-color: #0d6efd;
	color: #ffffff;
}

.cashdesk-metric-label {
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: rgba(18, 32, 51, 0.62);
}

.cashdesk-metric-highlight .cashdesk-metric-label {
	color: rgba(255, 255, 255, 0.8);
}

.cashdesk-metric-value {
	font-size: 1.05rem;
	font-weight: 900;
	line-height: 1.15;
}

.complimentary-action {
	position: relative;
}

.complimentary-order-btn {
	min-height: 58px;
	border-width: 2px;
	font-weight: 800;
	letter-spacing: 0.03em;
	color: #8a5700;
	background:
		linear-gradient(135deg, rgba(255, 243, 205, 0.92), rgba(255, 230, 156, 0.92));
	border-color: rgba(255, 193, 7, 0.85);
	box-shadow: 0 10px 24px rgba(255, 193, 7, 0.14);
}

.complimentary-order-btn:hover:not(:disabled),
.complimentary-order-btn:focus-visible:not(:disabled) {
	color: #6f4300;
	background:
		linear-gradient(135deg, rgba(255, 236, 179, 0.98), rgba(255, 214, 102, 0.98));
	border-color: rgba(255, 193, 7, 1);
	transform: translateY(-1px);
}

.complimentary-order-btn:disabled {
	color: rgba(138, 87, 0, 0.55);
	background: rgba(255, 243, 205, 0.68);
	border-color: rgba(255, 193, 7, 0.45);
	box-shadow: none;
}

#primary_actions {
	box-shadow: none;
}

#primary_actions .btn,
.complimentary-order-btn {
	box-shadow: none !important;
	background-clip: padding-box;
}

#primary_actions .btn {
	min-height: 58px;
	background-image: none !important;
}

#primary_actions .btn:focus,
#primary_actions .btn:focus-visible,
#primary_actions .btn:active,
.complimentary-order-btn:focus,
.complimentary-order-btn:focus-visible,
.complimentary-order-btn:active {
	box-shadow: none !important;
	outline: none;
}

#primary_actions .btn:focus,
#primary_actions .btn:focus-visible,
#primary_actions .btn:active {
	transform: none;
}

#primary_actions > .btn:not(:first-child) {
	margin-left: 0;
}

#primary_actions > .btn:only-child {
	border-radius: 0.75rem !important;
}

#reset_order {
	border-top-right-radius: 0;
	border-bottom-right-radius: 0;
}

#confirm_order,
#cashdesk_reset {
	border-top-left-radius: 0;
	border-bottom-left-radius: 0;
	border-top-right-radius: 0.5rem;
	border-bottom-right-radius: 0.5rem;
}

#cashdesk_reset {
	font-weight: 800;
	letter-spacing: 0.02em;
}

/* =========================================================
	 6. Boutons d’action commande
	 ========================================================= */

.order-actions {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 0.5rem;
	flex-shrink: 0;
}

.action-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 42px;
	height: 42px;
	padding: 0;
	font-size: 1.15rem;
	font-weight: 700;
	line-height: 1;
}

.deposit-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 46px;
	height: 42px;
	padding: 0;
	font-size: 1.2rem;
	font-weight: 700;
	line-height: 1;
}

.action-btn,
.deposit-btn,
#complimentary_order,
#reset_order,
#confirm_order,
#cashdesk_reset {
	transition:
		transform 0.12s ease,
		box-shadow 0.12s ease,
		filter 0.12s ease;
}

#cashdesk_reset:active,
#complimentary_order:active,
#reset_order:active,
#confirm_order:active,
.action-btn:active,
.deposit-btn:active {
	transform: scale(0.985);
}

@media (max-width: 768px) {
	.cashdesk-assistant-header {
		flex-direction: column;
		align-items: stretch;
	}

	.cashdesk-cards-list,
	.cashdesk-metrics {
		grid-template-columns: 1fr;
	}
}


/* =========================================================================== */
/* === Footer ================================================================ */
/* =========================================================================== */

.app-footer {
	border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.app-footer-status {
	row-gap: 0.5rem;
}

.app-footer-chip {
	display: inline-flex;
	align-items: center;
	gap: 0.6rem;
	padding: 0.35rem 0.75rem;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.05);
	border: 1px solid rgba(255, 255, 255, 0.08);
}

.app-footer-chip-label {
	color: rgba(255, 255, 255, 0.72);
	font-weight: 500;
	white-space: nowrap;
}

.app-footer-sync-btn {
	white-space: nowrap;
}

.app-footer-caisse {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	padding: 0.35rem 0.8rem;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.05);
	border: 1px solid rgba(255, 255, 255, 0.08);
	color: rgba(255, 255, 255, 0.82);
}

.app-footer-brand {
	display: inline-flex;
	align-items: center;
	gap: 0.65rem;
	color: rgba(255, 255, 255, 0.72);
	font-size: 0.92rem;
	transition: opacity 0.2s ease, transform 0.2s ease;
}

.app-footer-brand:hover {
	color: rgba(255, 255, 255, 0.92);
	opacity: 1;
	transform: translateY(-1px);
}

.app-footer-brand-logo {
	height: 24px;
	width: auto;
	display: block;
	object-fit: contain;
}

.app-footer-brand-text {
	white-space: nowrap;
}

.by {
	margin: 0 10px;
	color: #ffffff;
}

@media (max-width: 768px) {
	.app-footer {
		padding-top: 0.75rem;
		padding-bottom: 0.75rem;
	}

	.app-footer-brand {
		font-size: 0.84rem;
	}

	.app-footer-brand-logo {
		height: 20px;
	}

	.app-footer-chip {
		padding: 0.3rem 0.65rem;
	}
}

/* =========================================================
	 7. Zone sticky
	 ========================================================= */

.sticky-actions {
	position: sticky;
	bottom: 0;
	padding-top: 0.75rem;
	padding-bottom: 0.25rem;
	background: var(--bs-body-color);
	box-shadow: 0 0px 15px 10px var(--bs-body-color);
}


/* =========================================================
	 8. Modales
	 ========================================================= */

.modal-content {
	border: 0;
	border-radius: 1rem;
}

.modal-header,
.modal-footer {
	border-color: #e9ecef;
}

/* Confirmation */
.confirmation-modal .modal-header {
	border-bottom: 1px solid #dee2e6;
}

.complimentary-modal .modal-header {
	border-bottom: 1px solid #ffe08a;
}

.confirmation-modal .modal-title {
	font-size: 1.4rem;
	font-weight: 700;
}

.complimentary-modal .modal-title {
	font-size: 1.25rem;
	font-weight: 700;
}

.confirmation-main {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 1rem;
}

.confirmation-total-box,
.confirmation-cases-box {
	padding: 1rem;
	border-radius: 0.75rem;
	text-align: center;
}

.confirmation-total-box {
	background: #f8f9fa;
	border: 2px solid #dee2e6;
}

.confirmation-cases-box {
	background: #fff3cd;
	border: 2px solid #ffe69c;
}

.complimentary-total-box {
	background: #fff8e1;
	border-color: #ffd54f;
}

.complimentary-paid-box {
	background: #fff3cd;
	border-color: #ffca2c;
}

.confirmation-label {
	font-size: 0.9rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.03em;
	color: #6c757d;
}

.confirmation-total-value {
	font-size: 2rem;
	font-weight: 800;
	line-height: 1.1;
	margin-top: 0.4rem;
	color: #000000;
}

.confirmation-cases-value {
	font-size: 2.4rem;
	font-weight: 900;
	line-height: 1.1;
	margin-top: 0.4rem;
	color: #000000;
}

.confirmation-summary-table th,
.confirmation-summary-table td {
	font-size: 1rem;
	padding-top: 0.6rem;
	padding-bottom: 0.6rem;
}

.confirmation-summary-table th {
	font-weight: 600;
}

.confirmation-notice,
.complimentary-modal-alert {
	font-size: 0.98rem;
}

#confirmation_items .list-group-item {
	font-size: 1.05rem;
}


/* =========================================================
	 9. Animations et effets
	 ========================================================= */

.product-card.flash {
	animation: productFlash 0.22s ease;
}

@keyframes productFlash {
	0% { transform: scale(1); }
	50% {
		transform: scale(1.03);
		box-shadow: 0 0 0 3px rgba(25, 135, 84, 0.45);
	}
	100% { transform: scale(1); }
}

.error-flash {
	animation: errorFlash 0.32s ease;
}

@keyframes errorFlash {
	0% { transform: translateX(0); }
	25% { background-color: rgba(220, 53, 69, 0.22); }
	50% { transform: translateX(-2px); }
	75% { transform: translateX(2px); }
	100% { transform: translateX(0); }
}

.validate-success {
	animation: validateSuccess 0.42s ease;
}

@keyframes validateSuccess {
	0% { transform: scale(1); }
	50% {
		transform: scale(1.04);
		box-shadow: 0 0 0 4px rgba(25, 135, 84, 0.35);
	}
	100% { transform: scale(1); }
}

.complimentary-success {
	animation: complimentarySuccess 0.42s ease;
}

@keyframes complimentarySuccess {
	0% { transform: scale(1); }
	50% {
		transform: scale(1.04);
		box-shadow: 0 0 0 4px rgba(255, 193, 7, 0.28);
	}
	100% { transform: scale(1); }
}

.sync-icon.is-spinning,
.is-syncing .sync-icon,
.is-syncing i.bi-arrow-repeat {
	display: inline-block;
	animation: syncSpin 1s linear infinite;
}

@keyframes syncSpin {
	from { transform: rotate(0deg); }
	to { transform: rotate(360deg); }
}

.pulse-warning {
	animation: pulse 1.2s infinite;
}

@keyframes pulse {
	0% { transform: scale(1); }
	50% { transform: scale(1.05); }
	100% { transform: scale(1); }
}


/* =========================================================
	 10. Responsive tablette / portrait
	 ========================================================= */

@media (max-width: 992px) and (orientation: portrait) {
	.card-text {
		font-size: 13px;
	}

	.card-img-top {
		height: 75px;
	}

	.category-tabs .nav-link {
		padding: 0.7rem 0.85rem;
		font-size: 0.95rem;
	}
}

@media (max-width: 768px) {
	.confirmation-main {
		grid-template-columns: 1fr;
	}

	.confirmation-total-value,
	.confirmation-cases-value {
		font-size: 2rem;
	}
}
