/* Nelia Réseau — interfaces publiques.
   La caisse doit être utilisable D'UNE SEULE MAIN, debout derrière un comptoir :
   gros boutons, gros chiffres, zéro fioriture. */

.nrz-box {
	/* THÈME CLAIR : on consomme les variables du thème (replis clairs). Le doré
	   #ffb81c ne sert qu'en FOND (boutons/badges) ; en TEXTE, illisible sur blanc,
	   on prend --nrz-gold-ink (ambre foncé). */
	--nrz-card: var(--card, #FFFFFF);
	--nrz-ink: var(--ink, #0F1A30);
	--nrz-muted: var(--muted, #3A4A6E);
	--nrz-gold: #ffb81c;
	--nrz-gold-ink: var(--gold-ink, #7A4E00);
	--nrz-blue: #1B3FA0;
	--nrz-green: #1f9d57;
	--nrz-red: #b32d2e;
	--nrz-brd: var(--brd, rgba(15, 26, 48, .12));

	max-width: 560px;
	margin: 0 auto;
	padding: 26px 24px;
	background: var(--nrz-card);
	border: 1px solid var(--nrz-brd);
	border-radius: 16px;
	color: var(--nrz-ink);
	box-shadow: 0 18px 44px -28px rgba(19, 38, 74, .28);
}
.nrz-box--network { max-width: 720px; }
/* Tableau de bord / tableur : PLEINE LARGEUR. Sans cette exception, la boîte héritait
   du plafond 560px de .nrz-box et le tableur restait écrasé au centre, même quand le
   thème passe la page en pleine largeur (le vrai brideur était ICI, pas dans le thème). */
.nrz-box--dashboard { max-width: none; }

.nrz-title { margin: 0 0 10px; font-size: 22px; font-weight: 800; }
.nrz-subtitle { margin: 26px 0 10px; font-size: 15px; font-weight: 800; color: var(--nrz-muted); text-transform: uppercase; letter-spacing: 1px; }
.nrz-lead { margin: 0 0 16px; color: var(--nrz-muted); font-size: 15px; }

/* Bandeau d'information (ex. candidature reliée au compte connecté). */
.nrz-note { margin: 0 0 16px; padding: 12px 14px; border-radius: 12px; font-size: 14px; line-height: 1.45; }
.nrz-note--info { background: rgba(27, 63, 160, .08); border: 1px solid rgba(27, 63, 160, .22); color: var(--nrz-ink); }
.nrz-ref { margin: 4px 0 14px; font-family: ui-monospace, Menlo, monospace; color: var(--nrz-muted); letter-spacing: 1px; }

/* ---------- Bandeau de solde ---------- */
.nrz-head {
	display: flex; gap: 14px; flex-wrap: wrap;
	padding: 14px 16px; margin-bottom: 20px;
	background: rgba(15, 26, 48, .05);
	border: 1px solid var(--nrz-brd);
	border-radius: 12px;
}
.nrz-head > div { flex: 1 1 120px; }
.nrz-head__label { display: block; font-size: 11.5px; text-transform: uppercase; letter-spacing: 1px; color: var(--nrz-muted); }
.nrz-head__value { display: block; font-size: 24px; font-weight: 800; line-height: 1.25; color: var(--nrz-gold-ink); }
.nrz-head__value--small { font-size: 17px; color: var(--nrz-ink); }
.nrz-head__value em { font-style: normal; font-size: 13px; color: var(--nrz-muted); }

/* ---------- Formulaires ---------- */
.nrz-label { display: block; margin: 16px 0 6px; font-weight: 700; font-size: 13.5px; }

.nrz-input {
	width: 100%;
	padding: 15px 16px;
	background: #FFFFFF;
	border: 1px solid var(--nrz-brd);
	border-radius: 12px;
	color: var(--nrz-ink);
	font-size: 16px;
}
.nrz-input:focus { outline: none; border-color: var(--nrz-gold-ink); box-shadow: 0 0 0 3px rgba(255, 184, 28, .18); }
.nrz-input--amount { font-size: 26px; font-weight: 800; text-align: center; letter-spacing: 1px; }
textarea.nrz-input { font-size: 15px; }

.nrz-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 480px) { .nrz-row { grid-template-columns: 1fr; } }

/* Boutons de montant : cible large, atteignable au pouce. */
.nrz-quick { display: grid; grid-template-columns: repeat(auto-fit, minmax(84px, 1fr)); gap: 8px; margin-bottom: 10px; }
.nrz-chip {
	padding: 15px 8px;
	background: rgba(61, 90, 241, .16);
	border: 1px solid rgba(61, 90, 241, .45);
	border-radius: 12px;
	color: var(--nrz-ink);
	font-size: 16px; font-weight: 800;
	cursor: pointer;
	transition: background .15s, transform .15s;
}
.nrz-chip:hover, .nrz-chip.is-on { background: var(--nrz-blue); color: #fff; transform: translateY(-1px); }

.nrz-btn {
	display: block; width: 100%;
	margin-top: 18px; padding: 16px 24px;
	background: var(--nrz-gold); color: #221500;
	border: 0; border-radius: 12px;
	font-size: 16px; font-weight: 800; text-align: center; text-decoration: none;
	cursor: pointer;
	transition: transform .2s, box-shadow .2s, opacity .2s;
}
.nrz-btn:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(255, 184, 28, .35); color: #221500; }
.nrz-btn--big { padding: 20px; font-size: 18px; }
.nrz-btn[disabled] { opacity: .5; cursor: wait; transform: none; }

.nrz-inline { margin-top: 12px; text-align: center; }
.nrz-link { color: var(--nrz-muted); text-decoration: underline; font-size: 13.5px; }

/* ---------- Messages ---------- */
.nrz-notice { margin: 0 0 18px; padding: 12px 15px; border-radius: 10px; font-size: 14px; border: 1px solid transparent; }
.nrz-notice--success { background: rgba(46, 204, 113, .12); border-color: rgba(46, 204, 113, .4); color: #116b32; }
.nrz-notice--error { background: rgba(255, 107, 107, .12); border-color: rgba(255, 107, 107, .4); color: #a12321; }
.nrz-notice--info { background: rgba(61, 90, 241, .14); border-color: rgba(61, 90, 241, .45); color: #123a8a; }

/* ---------- Récapitulatif ---------- */
.nrz-recap { margin: 0 0 8px; }
.nrz-recap dt { font-size: 12px; text-transform: uppercase; letter-spacing: 1px; color: var(--nrz-muted); margin-top: 14px; }
.nrz-recap dd { margin: 3px 0 0; font-size: 17px; }
.nrz-recap__amount { font-size: 30px !important; font-weight: 800; color: var(--nrz-gold-ink); }
.nrz-recap__cash { font-size: 22px !important; font-weight: 800; color: var(--nrz-green); }
.nrz-recap__cash em { display: block; font-style: normal; font-size: 12px; color: var(--nrz-muted); }

/* ---------- Succès ---------- */
.nrz-success { text-align: center; }
.nrz-success__icon {
	width: 64px; height: 64px; line-height: 64px; margin: 0 auto 14px;
	border-radius: 50%;
	background: rgba(46, 204, 113, .15);
	border: 2px solid var(--nrz-green);
	color: var(--nrz-green); font-size: 32px;
}
.nrz-amount { margin: 6px 0 8px; font-size: 34px; font-weight: 800; color: var(--nrz-gold-ink); }

/* ---------- Listes ---------- */
.nrz-list { list-style: none; margin: 0; padding: 0; }
.nrz-list li {
	display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
	padding: 11px 0; border-bottom: 1px solid var(--nrz-brd);
}
.nrz-list__who { flex: 1 1 140px; font-weight: 700; font-size: 14.5px; }
.nrz-list__who em { display: block; font-style: normal; font-weight: 400; font-size: 12px; color: var(--nrz-muted); }
.nrz-list__amount { font-weight: 800; font-size: 15px; }
.nrz-list__amount.is-in { color: var(--nrz-green); }
.nrz-list__amount.is-out { color: var(--nrz-gold-ink); }
.nrz-list__ref { font-size: 11.5px; color: var(--nrz-muted); font-family: ui-monospace, Menlo, monospace; }

/* ---------- Bannière d'installation PWA ---------- */
.nrz-install {
	position: fixed; right: 12px; left: 12px; bottom: 12px; z-index: 9999;
	display: flex; align-items: center; gap: 10px;
	padding: 12px 14px;
	background: #1a1d2e; color: #f2f3f7;
	border: 1px solid rgba(255, 255, 255, .12);
	border-radius: 14px;
	box-shadow: 0 18px 44px rgba(0, 0, 0, .55);
	font-size: 14px;
	animation: nrz-slide .35s cubic-bezier(.22, 1, .36, 1);
}
@keyframes nrz-slide { from { transform: translateY(120%); } to { transform: none; } }
.nrz-install span { flex: 1; }
.nrz-install__go {
	padding: 9px 15px; background: #ffb81c; color: #221500;
	border: 0; border-radius: 9px; font-weight: 800; cursor: pointer;
}
.nrz-install__close {
	background: none; border: 0; color: #9aa0b4;
	font-size: 22px; line-height: 1; cursor: pointer; padding: 0 4px;
}
/* Sur desktop : carte compacte en bas à droite (pas pleine largeur). */
@media (min-width: 700px) {
	.nrz-install { right: auto; left: 20px; bottom: 20px; max-width: 380px; }
}

/* ---------- Popup d'instructions iOS ---------- */
.nrz-ios-pop {
	position: fixed; inset: 0; z-index: 10000;
	display: flex; align-items: center; justify-content: center;
	background: rgba(0, 0, 0, .6); padding: 20px;
	animation: nrz-fade .2s ease;
}
@keyframes nrz-fade { from { opacity: 0; } to { opacity: 1; } }
.nrz-ios-pop__box {
	width: 100%; max-width: 360px;
	background: #1a1d2e; color: #f2f3f7;
	border: 1px solid rgba(255, 255, 255, .12); border-radius: 16px;
	padding: 22px; box-shadow: 0 24px 60px rgba(0, 0, 0, .6);
}
.nrz-ios-pop__box h3 { margin: 0 0 14px; font-size: 17px; }
.nrz-ios-pop__steps { margin: 0 0 18px; padding: 0; list-style: none; }
.nrz-ios-pop__steps li {
	display: flex; align-items: center; gap: 10px;
	padding: 10px 0; font-size: 14.5px;
	border-top: 1px solid rgba(255, 255, 255, .07);
}
.nrz-ios-pop__steps li:first-child { border-top: 0; }
.nrz-ios-ic { font-size: 20px; }
.nrz-ios-pop__ok {
	width: 100%; padding: 11px; background: #ffb81c; color: #221500;
	border: 0; border-radius: 10px; font-weight: 800; cursor: pointer;
}

.nrz-footer-link { text-align: center; padding: 14px 0; font-size: 12.5px; opacity: .55; }
.nrz-footer-link a { color: inherit; text-decoration: underline; }

/* ---------- Impression du reçu ---------- */
@media print {
	body * { visibility: hidden; }
	.nrz-receipt, .nrz-receipt * { visibility: visible; }
	.nrz-receipt {
		position: absolute; right: 0; top: 0; width: 100%;
		background: #fff !important; color: #000 !important;
		border: 0; box-shadow: none;
	}
	.nrz-receipt .nrz-btn, .nrz-install { display: none !important; }
	.nrz-receipt .nrz-recap dt { color: #555 !important; }
	.nrz-receipt .nrz-recap__amount { color: #000 !important; }
}

@media (max-width: 560px) {
	.nrz-box { padding: 20px 16px; border-radius: 14px; }
	.nrz-title { font-size: 20px; }
	.nrz-head__value { font-size: 21px; }
}

/* ============================================================
   BONUS CASHBACK RÉSEAU (Chantier C)
   ============================================================ */

/* Badge « +N DA bonus » à côté des prix. */
.nrz-bonus-badge {
	display: inline-block; margin-right: 6px; vertical-align: middle;
	background: rgba(255, 184, 28, .14); color: #7A4E00;
	border: 1px solid rgba(255, 184, 28, .45);
	font-size: 11.5px; font-weight: 800; line-height: 1;
	padding: 3px 8px; border-radius: 999px; white-space: nowrap;
}

/* Ligne « Bonus à recevoir » dans le panier / la commande. */
.nrz-cart-bonus .nrz-bonus-amount { color: #7A4E00; font-weight: 800; }

/* Puce « Revendeur » dans le header. */
.nrz-reseller-chip {
	display: inline-flex; align-items: center; gap: 8px;
	background: rgba(255, 184, 28, .1); border: 1px solid rgba(255, 184, 28, .3);
	color: #7A4E00; font-weight: 700; font-size: 13px;
	padding: 7px 12px; border-radius: 10px; text-decoration: none; white-space: nowrap;
}
.nrz-reseller-chip__role { opacity: .9; }
.nrz-reseller-chip__bonus { font-weight: 800; }
@media (max-width: 820px) {
	.nrz-reseller-chip__role { display: none; }
}

/* Panneau « Mon bonus ». */
.nrz-box--bonus .nrz-bonus-balance { color: #7A4E00; }
.nrz-bonus-transfer { margin: 12px 0 22px; }
.nrz-bonus-totals {
	display: flex; flex-wrap: wrap; gap: 8px 20px;
	margin: 14px 0; padding: 14px; border-radius: 12px;
	background: rgba(15, 26, 48, .04); border: 1px solid rgba(15, 26, 48, .10);
	font-size: 14px;
}
.nrz-bonus-totals b { color: #0F1A30; }
.nrz-bonus-custom { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 10px; }
.nrz-bonus-export { margin: 12px 0; }
.nrz-table-wrap { overflow-x: auto; }
.nrz-bonus-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.nrz-bonus-table th, .nrz-bonus-table td { padding: 9px 10px; text-align: right; border-bottom: 1px solid rgba(15, 26, 48, .10); }
.nrz-bonus-table .is-in { color: #1f9d57; font-weight: 700; }
.nrz-bonus-table .is-out { color: #ff6a2b; font-weight: 700; }
.nrz-chip.is-active { background: #ffb81c; color: #221500; }
.nrz-box--bonus .nrz-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
.nrz-box--bonus .nrz-chip { padding: 9px 14px; font-size: 14px; text-decoration: none; }

/* ==========================================================
   Gestion des points de vente par le grossiste (Chantier B2)
   ========================================================== */
.nrz-pdv-manage { display: grid; gap: 12px; margin: 6px 0 4px; }
.nrz-pdv {
	padding: 14px 16px; border-radius: 14px;
	background: rgba(15, 26, 48, .04);
	border: 1px solid rgba(15, 26, 48, .10);
}
.nrz-pdv.is-suspended { opacity: .72; border-color: rgba(255, 106, 43, .4); }
.nrz-pdv__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.nrz-pdv__name { font-weight: 700; font-size: 15px; color: #0F1A30; }
.nrz-pdv__badge {
	font-size: 11.5px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase;
	padding: 3px 9px; border-radius: 99px;
}
.nrz-pdv.is-active .nrz-pdv__badge { background: rgba(46, 204, 113, .15); color: #1f9d57; }
.nrz-pdv.is-suspended .nrz-pdv__badge { background: rgba(255, 106, 43, .15); color: #ff6a2b; }
.nrz-pdv__meta { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 13px; color: #5a6480; margin-bottom: 10px; }
.nrz-pdv__meta b { color: #0F1A30; font-weight: 700; }
.nrz-pdv__actions { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px; }
.nrz-form--inline { display: flex; align-items: flex-end; gap: 8px; margin: 0; }
.nrz-form--inline .nrz-label { margin: 0 0 2px; font-size: 12px; }
.nrz-input--small { width: 92px; padding: 8px 10px; }
.nrz-btn--small { padding: 9px 14px; font-size: 13px; }
.nrz-btn--ghost { background: transparent; border: 1px solid rgba(15, 26, 48, .22); color: #2b3350; }
.nrz-btn--ghost:hover { border-color: #7A4E00; color: #7A4E00; }
.nrz-hint { font-size: 12.5px; color: #5a6480; margin-top: 8px; }
@media (max-width: 560px) {
	.nrz-pdv__actions { flex-direction: column; align-items: stretch; }
	.nrz-form--inline { justify-content: space-between; }
}

/* ==========================================================
   Pilotage des % en front-end (Chantier E) — mobile d'abord
   ========================================================== */
.nrz-pilot__scope { display:flex; flex-wrap:wrap; gap:8px; margin:10px 0; }
.nrz-pilot__pick summary { cursor:pointer; font-weight:700; padding:10px 0; }
.nrz-pilot__search { display:flex; flex-wrap:wrap; gap:8px; margin:10px 0; }
.nrz-pilot__search .nrz-input, .nrz-pilot__search select { flex:1 1 140px; min-width:0; }
.nrz-pilot__block { margin:14px 0; padding:12px; border-radius:12px; background:rgba(15,26,48,.04); border:1px solid rgba(15,26,48,.10); }
.nrz-pilot__row { display:flex; flex-wrap:wrap; gap:8px; align-items:center; }
.nrz-pilot__row .nrz-input, .nrz-pilot__row select { flex:1 1 120px; min-width:0; }
.nrz-pilot__bulk { display:flex; flex-wrap:wrap; gap:8px; margin:10px 0; align-items:center; }
.nrz-pilot__actions { position:sticky; bottom:0; padding:10px 0; background:linear-gradient(to top,var(--surface,#FFFFFF) 70%,transparent); z-index:3; }
.nrz-pilot-cta { margin:12px 0; }

/* Cartes empilées : jamais de tableau à défilement horizontal */
.nrz-cards { display:grid; grid-template-columns:1fr; gap:8px; margin:10px 0; }
@media (min-width:768px){ .nrz-cards { grid-template-columns:1fr 1fr; } .nrz-cards--prod { grid-template-columns:1fr; } }
.nrz-card { display:flex; flex-wrap:wrap; align-items:center; gap:8px; padding:12px 14px; border-radius:12px;
	background:rgba(15,26,48,.04); border:1px solid rgba(15,26,48,.10); }
.nrz-card.is-active { border-color:#ffb81c; }
.nrz-card__title { font-weight:700; color:#0F1A30; flex:1 1 60%; min-width:0; }
.nrz-card__meta { font-size:12.5px; color:#5a6480; }
.nrz-card--check { cursor:pointer; }
.nrz-card--prod .nrz-input--pct { flex:0 0 90px; text-align:left; }
.nrz-input--pct { width:90px; }
.nrz-input--small { padding:8px 10px; }

.nrz-progress { height:14px; border-radius:99px; background:rgba(15,26,48,.1); overflow:hidden; margin:10px 0; }
.nrz-progress__bar { height:100%; background:#ffb81c; transition:width .3s; }
.nrz-pager { display:flex; align-items:center; gap:12px; justify-content:center; margin:12px 0; }
.nrz-pager__now { font-size:13px; color:#5a6480; }
.nrz-report { margin:10px 0; padding:12px; border-radius:12px; background:rgba(255,184,28,.08); border:1px solid rgba(255,184,28,.25); }
.nrz-report ul { margin:6px 1.2em 0 0; list-style:disc; }
.nrz-btn--big { display:block; width:100%; text-align:center; padding:14px; font-size:16px; }
@media (min-width:560px){ .nrz-btn--big { display:inline-block; width:auto; } }

/* ---- LOT B : Tableau de bord grossiste / point de vente ---- */
.nrz-head--dash{gap:24px}
.nrz-head__link{display:block;margin-top:4px;font-size:12px;color:#1B3FA0;text-decoration:none}
.nrz-dash-period{margin:14px 0 6px;display:flex;flex-wrap:wrap;align-items:center;gap:6px}
/* Pastilles du tableau de bord : SCOPÉES à leurs conteneurs pour ne pas écraser
   la grande .nrz-chip bleue des boutons de montant de la caisse (collision LOT B). */
.nrz-dash-period .nrz-chip,
.nrz-dash-pockets .nrz-chip{display:inline-block;padding:5px 12px;border-radius:999px;border:1px solid #cfd6e6;background:#fff;color:#2b3350;font-size:13px;font-weight:400;text-decoration:none;cursor:pointer}
.nrz-dash-period .nrz-chip.is-active,
.nrz-dash-pockets .nrz-chip.is-active{background:#1B3FA0;color:#fff;border-color:#1B3FA0}
.nrz-dash-periodlabel{width:100%;margin:4px 0 0;color:#7B8299;font-size:12px}
.nrz-dash-earned{margin:6px 0 14px;font-weight:600}
.nrz-dash-pdvs{display:flex;flex-direction:column;gap:8px}
.nrz-dash-pdv{border:1px solid #e3e6ef;border-radius:8px;background:#fff;overflow:hidden}
.nrz-dash-pdv.is-suspended{opacity:.7}
.nrz-dash-pdv>summary{list-style:none;cursor:pointer;display:flex;align-items:center;gap:10px;padding:10px 14px;font-weight:600}
.nrz-dash-pdv>summary::-webkit-details-marker{display:none}
.nrz-dash-pdv>summary::before{content:"▸";color:#7B8299}
.nrz-dash-pdv[open]>summary::before{content:"▾"}
.nrz-dash-pdv__name{flex:1}
.nrz-dash-pdv__solde{font-variant-numeric:tabular-nums}
.nrz-dash-pdv__badge{font-size:11px;padding:2px 8px;border-radius:999px;background:#eef1f8;color:#2b3350}
.nrz-dash-pdv.is-suspended .nrz-dash-pdv__badge{background:#fde8e8;color:#b32d2e}
.nrz-dash-pdv__body{padding:4px 14px 14px;border-top:1px solid #f0f2f8}
.nrz-dash-pdv__meta{list-style:none;margin:8px 0;padding:0;display:flex;flex-wrap:wrap;gap:6px 18px}
.nrz-dash-credit{display:flex;flex-wrap:wrap;align-items:flex-end;gap:10px;margin-top:8px}
.nrz-dash-credit label{font-size:13px}
.nrz-dash-credit input{padding:9px 10px;border:1px solid #cfd6e6;border-radius:8px;box-sizing:border-box}

/* Écrans étroits (téléphone) : rien ne déborde, cibles tactiles pleine largeur.
   Empêche qu'un doigt qui glisse crédite le mauvais PDV — le bouton est franc. */
@media (max-width:480px){
	.nrz-head--dash{flex-direction:column;gap:10px}
	.nrz-dash-pdv>summary{flex-wrap:wrap}
	.nrz-dash-pdv__name{flex:1 1 100%;order:1;line-height:1.25}
	.nrz-dash-pdv__solde{order:2}
	.nrz-dash-pdv__badge{order:3;margin-right:auto}
	.nrz-dash-credit{flex-direction:column;align-items:stretch;gap:8px}
	.nrz-dash-credit label,.nrz-dash-credit input,.nrz-dash-credit .nrz-btn{width:100%}
	.nrz-dash-credit .nrz-btn{padding:13px;font-size:16px}
}

/* ---- LOT C : relevé de mouvements (preuve de réception) ---- */
.nrz-dash-pockets{display:flex;flex-wrap:wrap;gap:6px;margin:8px 0}
.nrz-mvts{display:flex;flex-direction:column;gap:8px;margin:8px 0}
.nrz-mvt{border:1px solid #e3e6ef;border-radius:8px;background:#fff;padding:10px 12px;border-right:4px solid #cfd6e6}
.nrz-mvt--in{border-right-color:#1f9d57}
.nrz-mvt--out{border-right-color:#b32d2e}
.nrz-mvt__top{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.nrz-mvt__type{font-weight:700;font-size:13px;color:#1a2340}
.nrz-mvt__pocket{font-size:11px;padding:2px 8px;border-radius:999px;background:#eef1f8;color:#2b3350}
.nrz-mvt__pocket--bonus{background:#fff3d6;color:#8a5a00}
.nrz-mvt__amount{margin-right:auto;font-weight:700;font-variant-numeric:tabular-nums}
.nrz-mvt--in .nrz-mvt__amount{color:#1f9d57}
.nrz-mvt--out .nrz-mvt__amount{color:#b32d2e}
.nrz-mvt__mid{display:flex;flex-wrap:wrap;gap:4px 14px;margin-top:4px;color:#5a6480;font-size:13px}
.nrz-mvt__party{font-weight:600;color:#2b3350}
.nrz-mvt__bot{display:flex;flex-wrap:wrap;gap:6px 14px;align-items:center;margin-top:6px;font-size:13px}
.nrz-mvt__bal{font-variant-numeric:tabular-nums;color:#2b3350}
.nrz-mvt__receipt{margin-right:auto;color:#1B3FA0;text-decoration:none;font-size:12px;white-space:nowrap}
@media (max-width:480px){
	.nrz-mvt__amount{margin-right:0;flex-basis:100%;order:3;text-align:left}
	.nrz-mvt__receipt{margin-right:0}
}

/* ======================================================================
   LOT C phase 2 — cases de synthèse, tableur, choix de paiement, dette
   ====================================================================== */

/* ---- Étage 1 : cases de synthèse colorées ---- */
.nrz-tiles{display:grid;grid-template-columns:repeat(2,1fr);gap:8px;margin:12px 0}
@media(min-width:560px){.nrz-tiles{grid-template-columns:repeat(4,1fr)}}
.nrz-tile{border-radius:10px;padding:10px 12px;border:1px solid rgba(0,0,0,.05)}
.nrz-tile__label{display:block;font-size:11px;text-transform:uppercase;letter-spacing:.5px;opacity:.85}
.nrz-tile__value{display:block;font-size:18px;font-weight:800;margin-top:2px;line-height:1.2}
.nrz-tile__link{display:inline-block;margin-top:4px;font-size:11px;color:#1B3FA0;text-decoration:none}
.nrz-tile--blue{background:#e8f0ff;color:#123a8a}
.nrz-tile--amber{background:#fff3d6;color:#8a5a00}
.nrz-tile--green{background:#e4f7ea;color:#116b32}
.nrz-tile--red{background:#fde7e7;color:#a12321}
.nrz-tile--neutral{background:#eef1f6;color:#2b3350}

/* ---- Étage 2 : barre d'actions + ajout revendeur ---- */
.nrz-dash-actions{display:flex;flex-wrap:wrap;gap:8px;margin:12px 0 6px}
.nrz-btn--ghost{display:inline-block;width:auto;margin:0;padding:9px 14px;background:#fff;color:#1B3FA0;border:1px solid #cfd6e6;border-radius:8px;font-weight:600;font-size:14px;text-decoration:none;cursor:pointer}
.nrz-btn--ghost:hover{background:#f2f5fb;color:#1B3FA0;box-shadow:none;transform:none}
/* #7 — boutons d'action pleins (bleu = Ajouter, secondaire = Exporter). */
.nrz-btn--primary{display:inline-block;width:auto;margin:0;padding:10px 16px;background:#1B3FA0;color:#fff;border:1px solid #1B3FA0;border-radius:8px;font-weight:700;font-size:14px;text-decoration:none;cursor:pointer;box-shadow:none}
.nrz-btn--primary:hover{background:#16357f;color:#fff;box-shadow:none;transform:none}
.nrz-btn--secondary{display:inline-block;width:auto;margin:0;padding:10px 16px;background:#eef1f8;color:#1B3FA0;border:1px solid #cfd6e6;border-radius:8px;font-weight:700;font-size:14px;text-decoration:none;cursor:pointer;box-shadow:none}
.nrz-btn--secondary:hover{background:#e2e8f5;color:#16357f;box-shadow:none;transform:none}
/* #5 — deux boutons de règlement (Espèces vert / Dette rouge), 1 tap = confirmation. */
.nrz-paybtns{display:flex;gap:12px;margin:6px 0 4px}
.nrz-paybtns .nrz-btn{flex:1;display:flex;flex-direction:column;align-items:center;gap:4px;padding:16px 12px;min-height:64px;border-radius:14px;border:none;color:#fff;font-weight:800;cursor:pointer;text-align:center;box-shadow:none}
.nrz-btn--cash{background:#1f9d57}
.nrz-btn--cash:hover{background:#178048;color:#fff;box-shadow:none;transform:none}
.nrz-btn--debt{background:#b32d2e}
.nrz-btn--debt:hover{background:#8f2323;color:#fff;box-shadow:none;transform:none}
.nrz-paybtn__title{font-size:18px;line-height:1}
.nrz-paybtn__hint{font-style:normal;font-weight:500;font-size:12px;opacity:.92;line-height:1.25}
@media (max-width:420px){.nrz-paybtns{flex-direction:column}}
/* #4 — cartes cliquables + pages de détail */
.nrz-tile--clickable{cursor:pointer;text-decoration:none;transition:transform .08s,box-shadow .12s}
.nrz-tile--clickable:hover{transform:translateY(-2px);box-shadow:0 14px 30px -18px rgba(19,38,74,.4)}
.nrz-tile__link{display:block;margin-top:6px;font-size:12px;font-weight:700;opacity:.85}
.nrz-detail-back{position:sticky;top:0;z-index:20;display:inline-block;margin:-4px 0 10px;padding:10px 14px;background:#1B3FA0;color:#fff;border-radius:10px;font-weight:700;font-size:14px;text-decoration:none}
.nrz-detail-back:hover{background:#16357f;color:#fff}
.nrz-detail__body{margin-top:12px}
.nrz-detail-list{display:flex;flex-direction:column;gap:8px;margin:8px 0}
.nrz-detail-item{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:12px 14px;background:var(--nrz-card,#fff);border:1px solid var(--nrz-brd,rgba(15,26,48,.12));border-radius:12px}
.nrz-detail-item__main{display:flex;flex-direction:column;min-width:0}
.nrz-detail-item__sub{font-size:12px;color:var(--nrz-muted,#3A4A6E)}
.nrz-detail-item__side{display:flex;align-items:center;gap:10px;flex:0 0 auto;font-weight:700}
.nrz-detail-total{margin-top:12px;text-align:left;font-size:15px}
.nrz-rate-lib{display:flex;flex-direction:column;gap:6px;margin:6px 0 14px}
.nrz-rate-row{display:flex;justify-content:space-between;gap:12px;padding:9px 12px;background:var(--nrz-card,#fff);border:1px solid var(--nrz-brd,rgba(15,26,48,.1));border-radius:10px}
.nrz-rate-row__name{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.nrz-rate-row__val{flex:0 0 auto;font-weight:700;color:var(--nrz-blue,#1B3FA0)}
.nrz-rate-row__val em{font-weight:500;font-size:12px;color:var(--nrz-muted,#3A4A6E)}
/* #3 — menu-tiroir de navigation rapide (bouton flottant + superposition) */
.nrz-quicknav-btn{position:fixed;right:14px;bottom:16px;z-index:9998;width:52px;height:52px;border-radius:50%;border:none;background:#1B3FA0;color:#fff;font-size:22px;line-height:1;cursor:pointer;box-shadow:0 10px 26px -10px rgba(19,38,74,.55)}
.nrz-quicknav-btn:hover{background:#16357f}
.nrz-quicknav{position:fixed;inset:0;z-index:9999;display:flex;align-items:flex-end;justify-content:center;background:rgba(15,26,48,.35)}
.nrz-quicknav[hidden]{display:none}
.nrz-quicknav__panel{width:100%;max-width:460px;margin:0 10px 10px;background:var(--card,#fff);border-radius:16px 16px 12px 12px;padding:10px;box-shadow:0 -12px 44px -16px rgba(19,38,74,.5)}
.nrz-quicknav__title{font-size:12px;font-weight:800;color:#3A4A6E;text-transform:uppercase;letter-spacing:1px;padding:8px 10px 4px}
.nrz-quicknav__item{display:block;padding:14px 12px;min-height:44px;border-radius:10px;color:#0F1A30;font-weight:600;text-decoration:none}
.nrz-quicknav__item:hover{background:rgba(27,63,160,.08)}
@media(min-width:560px){.nrz-quicknav{align-items:center}.nrz-quicknav__panel{border-radius:14px}}
/* #4 — identifiant public NS-0050 */
.nrz-grid__code{display:block;margin-top:2px;font-size:12px;font-weight:600;color:#1B3FA0;font-family:ui-monospace,Menlo,monospace;letter-spacing:.5px}
.nrz-account-code{margin:6px 0 12px;font-size:14px;color:var(--nrz-muted,#3A4A6E)}
.nrz-account-code strong{font-family:ui-monospace,Menlo,monospace;color:#1B3FA0;letter-spacing:.5px}
.nrz-add-reseller{background:#fff;border:1px solid #e3e6ef;border-radius:10px;padding:12px;margin:6px 0 12px;color:#1a2340}
.nrz-add-reseller label{display:block;font-size:13px;margin:6px 0}
.nrz-add-reseller .nrz-input{background:#fff;color:#1a2340;border:1px solid #cfd6e6}

/* ---- Choix « à crédit / payé » dans la confirmation ---- */
.nrz-paychoice{border:0;margin:12px 0;padding:0;display:grid;gap:8px}
.nrz-paychoice legend{font-weight:700;margin-bottom:2px}
.nrz-paychoice__opt{display:block;border:2px solid #e3e6ef;border-radius:10px;padding:10px 12px;cursor:pointer}
.nrz-paychoice__opt--credit{border-color:#f0b4b4;background:#fdf3f3}
.nrz-paychoice__opt--paid{border-color:#bfe3c8;background:#f2fbf5}
.nrz-paychoice__opt input{margin-left:8px}
.nrz-paychoice__title{font-weight:700}
.nrz-paychoice__hint{display:block;margin-right:26px;font-style:normal;font-size:13px;opacity:.85}
.nrz-confirm-after{margin-top:10px;text-align:center;font-weight:600}

/* ---- Étage 3 : le tableur ---- */
.nrz-grid-wrap{overflow-x:auto;-webkit-overflow-scrolling:touch;border:1px solid #e3e6ef;border-radius:10px;margin:8px 0}
.nrz-grid{border-collapse:collapse;width:100%;min-width:760px;background:#fff;color:#1a2340;font-size:13px}
.nrz-grid th,.nrz-grid td{padding:8px 10px;border-bottom:1px solid #eef1f6;text-align:left;white-space:nowrap;vertical-align:middle}
.nrz-grid thead th{position:sticky;top:0;background:#f2f5fb;color:#2b3350;font-size:11px;text-transform:uppercase;letter-spacing:.4px;z-index:2}
.nrz-grid__name{position:sticky;right:0;background:#fff;text-align:right;z-index:1;box-shadow:-1px 0 0 #eef1f6}
.nrz-grid thead th.nrz-grid__name{z-index:3}
.nrz-grid tbody tr.is-suspended{opacity:.55}
.nrz-grid__totals th,.nrz-grid__totals td{font-weight:800;border-top:2px solid #cfd6e6;background:#f7f9fc}
.nrz-grid__totals .nrz-grid__name{background:#f7f9fc}
.nrz-grid__actions{white-space:normal;text-align:right;min-width:180px}

/* Badges de statut */
.nrz-badge{display:inline-block;padding:2px 8px;border-radius:999px;font-size:11px;font-weight:700}
.nrz-badge--ok{background:#e4f7ea;color:#116b32}
.nrz-badge--off{background:#fde7e7;color:#a12321}

/* Édition in-cell (<details> = fonctionne sans JS) */
.nrz-cell-edit{display:inline-block}
.nrz-cell-edit>summary{list-style:none;cursor:pointer;border-bottom:1px dashed #9aa6c2}
.nrz-cell-edit>summary::-webkit-details-marker{display:none}
.nrz-cell-edit[open]>summary{margin-bottom:6px}
.nrz-cell-rate__val em{font-style:normal;opacity:.6;font-size:11px}
.nrz-cell-debt__form,.nrz-cell-rate__form,.nrz-cell-credit__form{display:flex;flex-wrap:wrap;gap:4px;align-items:center;justify-content:flex-end}
.nrz-cell-debt__amt,.nrz-cell-rate__input,.nrz-cell-credit__form input[type=number]{width:82px;padding:5px 6px;border:1px solid #cfd6e6;border-radius:6px;font-size:13px;background:#fff;color:#1a2340}
.nrz-cell-mini{display:inline-block;width:auto;margin:0;padding:5px 9px;background:#1B3FA0;color:#fff;border:0;border-radius:6px;font-size:12px;font-weight:700;cursor:pointer;text-align:center}
.nrz-cell-mini--minus{background:#b32d2e}
.nrz-cell-mini--plus{background:#1f9d57}
.nrz-cell-rate__cap{font-size:11px;opacity:.7;width:100%;text-align:left}
.nrz-cell-link{display:inline-block;color:#1B3FA0;background:none;border:0;padding:2px 4px;font-size:12px;text-decoration:underline;cursor:pointer}
.nrz-cell-disabled{color:#5a6480;font-size:12px}
.nrz-cell-msg{display:block;width:100%;font-size:11.5px;color:#116b32;text-align:left}
.nrz-cell-msg.is-error{color:#a12321}

/* ======================================================================
   LOT 1 mobile — durcissement tactile des écrans réseau (téléphone d'abord)
   Trois règles appliquées partout :
   1) Champs de saisie ≥ 16 px : en dessous, iOS zoome au focus et casse la
      mise en page. On force 16 px sur TOUS les petits champs (in-cell, %, dette,
      crédit, textarea) — c'est la règle 🔑 la plus importante sur mobile.
   2) Cibles tactiles ≥ 44 px sur téléphone : un bouton qui déplace de l'argent
      ne doit pas se cliquer par erreur (crédit +/−, actions in-cell, liens).
   3) Aucun débordement horizontal : le tableur défile dans son cadre, le reste
      s'empile.
   ====================================================================== */

/* 1) Anti-zoom iOS — 16 px sur tous les champs, y compris les plus petits. */
.nrz-input--small,
.nrz-input--pct,
.nrz-cell-debt__amt,
.nrz-cell-rate__input,
.nrz-cell-credit__form input[type="number"],
.nrz-dash-credit input,
.nrz-bonus-custom input { font-size:16px; }
textarea.nrz-input { font-size:16px; }
/* Les champs in-cell gagnent un peu de largeur pour tenir un montant à 16 px. */
.nrz-cell-debt__amt,
.nrz-cell-rate__input,
.nrz-cell-credit__form input[type="number"] { width:92px; }

/* Anti-débordement : aucune ligne large ne pousse la page hors de l'écran. */
.nrz-box, .nrz-box--dashboard { max-width:100%; }
.nrz-box--dashboard { overflow-x:clip; }

@media (max-width:640px){
	/* 2) Cibles tactiles ≥ 44 px sur téléphone (là où un doigt glisse). */
	.nrz-cell-mini{
		min-height:44px; padding:0 16px;
		display:inline-flex; align-items:center; justify-content:center;
	}
	.nrz-cell-edit>summary,
	.nrz-cell-link,
	.nrz-mvt__receipt,
	.nrz-dash-period .nrz-chip,
	.nrz-dash-pockets .nrz-chip,
	.nrz-btn--ghost,
	.nrz-btn--small{
		min-height:44px;
		display:inline-flex; align-items:center; justify-content:center;
	}
	/* Les mini-formulaires in-cell s'étalent : les +/− ne se touchent pas. */
	.nrz-cell-debt__form,
	.nrz-cell-rate__form,
	.nrz-cell-credit__form{ gap:8px; }

	/* 3) Le tableur invite au défilement horizontal (indice visuel). */
	.nrz-grid-wrap{ scrollbar-width:thin; }

	/* Cases de synthèse : 2 colonnes lisibles, valeurs qui ne débordent pas. */
	.nrz-tile__value{ font-size:17px; overflow-wrap:anywhere; }
}

/* ---------- 2b : garde-fou visible du pilotage des bonus ----------
   « Ton taux → max ici » sous chaque champ ; rouge immédiat si dépassement. */
.nrz-guard {
	margin: 6px 0 0;
	font-size: 13px;
	line-height: 1.35;
	color: var(--nrz-muted);
}
.nrz-guard strong { color: var(--nrz-ink); font-weight: 800; }
.nrz-guard__warn { display: none; color: var(--nrz-red); font-weight: 700; }
/* En dépassement : on masque le rappel neutre, on montre l'alerte. */
.nrz-guard.is-over .nrz-guard__msg { display: none; }
.nrz-guard.is-over .nrz-guard__warn { display: block; }
.nrz-guard.is-over strong { color: var(--nrz-red); }
/* Champ fautif : bord + halo rouge, tout de suite. */
.nrz-input.nrz-over {
	border-color: var(--nrz-red);
	box-shadow: 0 0 0 3px rgba(179, 45, 46, .18);
}
.nrz-input.nrz-over:focus {
	border-color: var(--nrz-red);
	box-shadow: 0 0 0 3px rgba(179, 45, 46, .28);
}

/* ==== RTL (chantier arabe P3) — îlots LTR ====
   Codes, numéros de série et montants restent lus de GAUCHE À DROITE même en
   arabe ; seule la mise en page est en miroir. */
.nrz-account-code, .nrz-amount, .nrz-bonus-amount, .nrz-mvt__amount,
.nrz-input--amount, .nrz-money, .nrz-serial, .nrz-code, .nrz-grid td.num,
code, .mono { direction: ltr; unicode-bidi: isolate; }
