#pz-ov-root, #pz-ov-root * { box-sizing: border-box; }
#pz-ov-root { font-family: "Manrope", Arial, sans-serif; }

/* Barres de défilement : l'app ne les stylait pas, elles s'affichaient en blanc brut
   (gris/blanc par défaut du navigateur) sur fond sombre — on les aligne sur le thème. */
::-webkit-scrollbar { height: 10px; width: 10px; }
::-webkit-scrollbar-track { background: #0F0D08; }
::-webkit-scrollbar-thumb { background: #D8640F; border-radius: 6px; }
::-webkit-scrollbar-thumb:hover { background: #DCA411; }
* { scrollbar-color: #D8640F #0F0D08; }

#pz-alert-banner {
  position: fixed; top: 16px; left: 50%; transform: translateX(-50%);
  z-index: 999999; background: #DCA411; color: #0F0D08; font-weight: 700;
  padding: 14px 22px; border-radius: 10px; box-shadow: 0 8px 24px rgba(0,0,0,.35);
  opacity: 0; transition: opacity .25s; pointer-events: none; font-size: 14px;
}

.pz-fab {
  position: fixed; bottom: 20px; z-index: 999998; width: 56px; height: 56px;
  border-radius: 50%; border: 2px solid #D8640F; cursor: pointer; font-size: 22px;
  background: #0F0D08; color: #DCA411; box-shadow: 0 6px 18px rgba(216,100,15,.35);
  display: flex; align-items: center; justify-content: center;
}
.pz-fab:active { transform: scale(0.95); }
#pz-fab-cash { right: 20px; }
#pz-fab-maint { right: 90px; }

#pz-modal-backdrop {
  position: fixed; inset: 0; background: rgba(15,20,30,.55); z-index: 999999;
  display: none; align-items: flex-end; justify-content: center;
}
#pz-modal-backdrop.open { display: flex; }
@media (min-width: 640px) { #pz-modal-backdrop { align-items: center; } }

#pz-modal {
  background: #fff; width: 100%; max-width: 440px; max-height: 88vh; overflow-y: auto;
  border-radius: 16px 16px 0 0; padding: 20px; box-shadow: 0 -8px 30px rgba(0,0,0,.3);
}
@media (min-width: 640px) { #pz-modal { border-radius: 16px; } }
/* Repère orange des fenêtres : barre droite en retrait des coins arrondis (une bordure épaisse s'y tordait). */
#pz-modal::before, #pzg-modal::before {
  content: ""; position: absolute; top: 0; left: 24px; right: 24px; height: 3px; border-radius: 0 0 3px 3px; background: #D8640F;
}

#pz-modal h2 { margin: 0 0 4px; font-size: 17px; color: #0F0D08; }
#pz-modal .pz-sub { font-size: 12px; color: #64748b; margin-bottom: 14px; }
#pz-modal .pz-close { position: absolute; top: 14px; right: 16px; background: none; border: none; font-size: 20px; color: #94a3b8; cursor: pointer; }
#pz-modal { position: relative; }

.pz-tabs { display: flex; gap: 6px; margin-bottom: 14px; }
.pz-tab-btn { flex: 1; padding: 8px; border-radius: 8px; border: 1px solid #e2e8f0; background: #f8fafc; font-size: 13px; cursor: pointer; color: #475569; font-weight: 600; }
.pz-tab-btn.active { background: #0F0D08; color: #DCA411; border-color: #0F0D08; }

.pz-field { margin-bottom: 12px; }
.pz-field label { display: block; font-size: 12px; color: #475569; margin-bottom: 4px; font-weight: 600; }
.pz-field select, .pz-field input { width: 100%; padding: 10px; border-radius: 8px; border: 1px solid #e2e8f0; font-size: 14px; }

.pz-btn { width: 100%; padding: 11px; border-radius: 9px; border: none; background: #DCA411; color: #0F0D08; font-weight: 700; font-size: 14px; cursor: pointer; margin-top: 4px; }
.pz-btn.secondary { background: #0F0D08; color: #DCA411; border: 1px solid #D8640F; }
.pz-btn:disabled { opacity: .5; cursor: not-allowed; }

.pz-msg { font-size: 13px; margin-top: 10px; padding: 8px 10px; border-radius: 8px; display: none; }
.pz-msg.ok { display: block; background: #ecfdf5; color: #047857; }
.pz-msg.err { display: block; background: #fef2f2; color: #b91c1c; }

.pz-hint { font-size: 11px; color: #94a3b8; margin-top: 2px; }

/* ───────────── Compléments de gestion (overlay-gestion.js) ───────────── */
.pzg-panel {
  --pzg-gold: var(--primary, #DCA411);
  --pzg-line: var(--border, rgba(120,110,80,.4));
  margin-bottom: 20px; border: 1px solid var(--pzg-line); border-radius: 16px;
  background: linear-gradient(180deg, rgba(216,100,15,.07), transparent 120px), var(--card, #1b1913);
  color: var(--foreground, #f3f1ea); padding: 16px 18px 14px; font-family: "Manrope", sans-serif;
}
.pzg-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.pzg-head h2 { margin: 0; font-family: "Cinzel", serif; font-size: 16px; letter-spacing: .06em; color: var(--pzg-gold); }
.pzg-toggle {
  background: transparent; border: 1px solid var(--pzg-line); color: var(--muted-foreground, #b8b2a2);
  border-radius: 999px; padding: 5px 14px; font-size: 12px; font-weight: 600; cursor: pointer;
}
.pzg-toggle:hover, .pzg-toggle:focus-visible { color: var(--pzg-gold); border-color: #D8640F; outline: none; }
.pzg-collapsed .pzg-body { display: none; }
.pzg-body { margin-top: 12px; }

/* L'argent de la caisse en trois endroits : espèces du tiroir (or), Mobile Money sur le téléphone (vert d'eau),
   carte sur le compte (bleu). Les deux derniers ne sont jamais dans le tiroir. */
.pzg-money { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-bottom: 14px; }
.pzg-money-single { grid-template-columns: minmax(0, 1fr); }
.pzg-money-cell {
  display: flex; flex-direction: column; gap: 2px; min-width: 0; padding: 11px 14px; border-radius: 12px;
  border: 1px solid var(--pzg-line); background: rgba(0,0,0,.18);
}
.pzg-money-cell span { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted-foreground, #b8b2a2); }
.pzg-money-cell strong { font-size: 22px; font-weight: 800; line-height: 1.2; font-variant-numeric: tabular-nums; }
.pzg-money-cell em { font-style: normal; font-size: 11.5px; line-height: 1.4; color: var(--muted-foreground, #b8b2a2); }
.pzg-money-cash { background: rgba(216,100,15,.12); border-color: rgba(216,100,15,.35); }
.pzg-money-cash strong { color: var(--pzg-gold); }
.pzg-money-momo { background: rgba(94,200,184,.08); border-color: rgba(94,200,184,.45); }
.pzg-money-momo strong { color: #6FD6C5; }
.pzg-money-card strong { color: #A9B8F5; }
.pzg-money-total { grid-column: 1 / -1; margin: 0; font-size: 12.5px; color: var(--muted-foreground, #b8b2a2); }
.pzg-money-total strong { color: var(--foreground, #f3f1ea); font-variant-numeric: tabular-nums; }
@media (max-width: 760px) { .pzg-money { grid-template-columns: minmax(0, 1fr); } }

/* Abonnements terrain (overlay-abonnements.js) : même cadre que la caisse terrain, accent vert. */
.pza-panel { border-color: rgba(16,185,129,.35); background: linear-gradient(180deg, rgba(16,185,129,.07), transparent 120px), var(--card, #1b1913); }
.pza-panel .pzg-head h2 { color: #34D399; }
.pza-new { border-color: rgba(52,211,153,.6); color: #34D399; font-weight: 800; }
.pza-sum { margin: 0 0 8px; font-size: 13px; color: var(--muted-foreground, #b8b2a2); }
.pza-due { color: #F08A3C; }
.pza-list { list-style: none; margin: 0; padding: 0; }
.pza-row { display: flex; gap: 14px; align-items: flex-start; padding: 11px 2px; border-top: 1px solid var(--pzg-line); }
.pza-row:first-child { border-top: none; }
.pza-row-off { opacity: .55; }
.pza-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; overflow-wrap: anywhere; }
.pza-main strong { font-size: 14.5px; }
.pza-slot { font-size: 13px; font-weight: 700; color: #34D399; }
.pza-main small { font-size: 11.5px; color: var(--muted-foreground, #b8b2a2); }
.pza-notes { font-style: italic; }
.pza-side { display: flex; flex-direction: column; align-items: flex-end; gap: 5px; text-align: right; }
.pza-price { font-weight: 800; white-space: nowrap; font-variant-numeric: tabular-nums; }
.pza-st { font-size: 11px; font-weight: 800; padding: 2px 9px; border-radius: 999px; white-space: nowrap; }
.pza-st-paid { background: rgba(52,211,153,.16); color: #34D399; }
.pza-st-due { background: rgba(240,138,60,.16); color: #F08A3C; }
.pza-st-off { background: rgba(148,163,184,.16); color: #94a3b8; }
.pza-actions { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.pza-act {
  border: 1px solid var(--pzg-line); background: transparent; color: var(--foreground, #f3f1ea); border-radius: 999px;
  padding: 5px 12px; font: inherit; font-size: 12px; font-weight: 700; cursor: pointer;
}
.pza-pay { border-color: #34D399; color: #34D399; }
.pza-act:hover, .pza-act:focus-visible { background: rgba(255,255,255,.06); outline: none; }
.pza-cancel:hover, .pza-cancel:focus-visible { color: #e5484d; border-color: #e5484d; }
/* Formulaire (fenêtre claire) */
.pza-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
.pza-preview:empty { display: none; }
.pza-preview { margin: 4px 0 12px; padding: 10px 12px; border-radius: 10px; background: #f0fdf4; border: 1px solid #bbf7d0; font-size: 12.5px; line-height: 1.45; color: #14532d; }
.pza-preview p { margin: 0; }
.pza-pv-warn { margin-top: 8px; padding-top: 8px; border-top: 1px dashed #fdba74; color: #9a3412; }
.pza-pv-warn label { display: flex; gap: 6px; align-items: center; margin-top: 6px; font-weight: 700; cursor: pointer; }
.pza-pv-err { color: #b91c1c; }
.pza-check { display: flex; gap: 8px; align-items: center; margin: 2px 0 10px; font-size: 13px; cursor: pointer; }
@media (max-width: 560px) {
  .pza-grid { grid-template-columns: 1fr; }
  .pza-row { flex-direction: column; gap: 6px; }
  .pza-side { flex-direction: row; align-items: center; flex-wrap: wrap; text-align: left; }
}

/* Mobile Money hors tiroir (overlay-mobile.js) : même cadre que les autres blocs, accent vert d'eau ;
   orange = à vérifier sur le téléphone, vert = vérifié. */
.pzm-panel { border-color: rgba(94,200,184,.35); background: linear-gradient(180deg, rgba(94,200,184,.07), transparent 120px), var(--card, #1b1913); }
.pzm-panel .pzg-head h2 { color: #6FD6C5; }
.pzm-kpis { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.pzm-kpi { display: flex; flex-direction: column; gap: 2px; min-width: 0; padding: 11px 14px; border-radius: 12px; border: 1px solid var(--pzg-line); background: rgba(0,0,0,.18); }
.pzm-kpi span { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted-foreground, #b8b2a2); }
.pzm-kpi strong { font-size: 20px; font-weight: 800; line-height: 1.2; color: #6FD6C5; font-variant-numeric: tabular-nums; }
.pzm-kpi em { font-style: normal; font-size: 11.5px; color: var(--muted-foreground, #b8b2a2); }
.pzm-kpi-todo { border-color: rgba(240,138,60,.55); background: rgba(240,138,60,.1); }
.pzm-kpi-todo strong { color: #F08A3C; }
.pzm-kpi-ok strong { font-size: 16px; color: #34D399; }
.pzm-sub { margin: 14px 0 4px; font-size: 12.5px; color: var(--muted-foreground, #b8b2a2); }
.pzm-list { list-style: none; margin: 0; padding: 0; }
.pzm-list li { display: flex; align-items: center; gap: 12px; padding: 9px 2px; border-top: 1px solid var(--pzg-line); }
.pzm-list li:first-child { border-top: none; }
.pzm-row-main { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.pzm-row-main strong { font-size: 13.5px; }
.pzm-row-main small { font-size: 11.5px; color: var(--muted-foreground, #b8b2a2); }
.pzm-amount { font-weight: 800; white-space: nowrap; font-variant-numeric: tabular-nums; }
.pzm-verify {
  border: 1px solid #34D399; background: rgba(52,211,153,.12); color: #34D399; border-radius: 999px;
  padding: 6px 14px; font-size: 12.5px; font-weight: 800; white-space: nowrap; cursor: pointer; transition: background-color .15s;
}
.pzm-verify:hover, .pzm-verify:focus-visible { background: rgba(52,211,153,.26); outline: none; }
.pzm-verify:disabled { opacity: .5; cursor: wait; }
.pzm-undo { border: none; background: none; padding: 4px; font-size: 12px; text-decoration: underline; color: var(--muted-foreground, #b8b2a2); cursor: pointer; }
.pzm-undo:hover, .pzm-undo:focus-visible { color: #F08A3C; outline: none; }
.pzm-wait { font-size: 11.5px; white-space: nowrap; color: #F08A3C; }
.pzm-done { margin-top: 12px; }
.pzm-done summary { font-size: 12.5px; font-weight: 700; color: var(--muted-foreground, #b8b2a2); cursor: pointer; }
.pzm-close-note {
  margin-top: 8px; padding: 9px 11px; border-radius: 10px; font-size: 12px; line-height: 1.45;
  border: 1px solid rgba(94,200,184,.45); background: rgba(94,200,184,.1);
}
.pzm-close-note b { font-variant-numeric: tabular-nums; }
@media (max-width: 560px) {
  .pzm-kpis { grid-template-columns: minmax(0, 1fr); }
  .pzm-list li { flex-wrap: wrap; }
  .pzm-row-main { flex-basis: 100%; }
}

.pzg-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(196px, 1fr)); gap: 12px; }
.pzg-win {
  border: 1px solid var(--pzg-line); border-radius: 14px; padding: 14px; background: rgba(0,0,0,.18);
  display: flex; flex-direction: column; gap: 3px;
}
.pzg-win:first-child { border-color: rgba(220,164,17,.45); }
.pzg-kicker { margin: 0; font-size: 10.5px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: #D8640F; }
.pzg-title { margin: 0 0 6px; font-size: 13px; color: var(--muted-foreground, #b8b2a2); }
.pzg-big { margin: 0 0 8px; font-size: 24px; font-weight: 800; color: var(--pzg-gold); font-variant-numeric: tabular-nums; line-height: 1.15; }
.pzg-big-sub { display: block; font-size: 11px; font-weight: 600; color: var(--muted-foreground, #b8b2a2); }
.pzg-line { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; font-size: 12.5px; padding: 2px 0; font-variant-numeric: tabular-nums; }
.pzg-line span:first-child { color: var(--muted-foreground, #b8b2a2); }
.pzg-line span:last-child { white-space: nowrap; }
.pzg-net { margin-top: 4px; padding-top: 6px; border-top: 1px dashed var(--pzg-line); font-weight: 800; }
.pzg-pos { color: var(--success, #3fb37f); }
.pzg-neg { color: var(--destructive, #e5484d); }
.pzg-compare { margin: 8px 0 0; font-size: 11.5px; color: var(--muted-foreground, #b8b2a2); }

/* Caisse : un seul tiroir, deux caisses — onglets Resto / Bar / Les deux, solde depuis la séparation. */
.pzg-units {
  display: inline-flex; gap: 4px; padding: 4px; margin: 0 0 10px; border-radius: 999px;
  border: 1px solid var(--pzg-line); background: rgba(0,0,0,.22);
}
.pzg-unit {
  border: none; background: transparent; color: var(--muted-foreground, #b8b2a2); padding: 7px 18px; border-radius: 999px;
  font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; transition: background-color .15s, color .15s;
}
.pzg-unit[aria-selected="true"] { background: var(--pzg-gold); color: #0F0D08; }
.pzg-unit:not([aria-selected="true"]):hover { color: var(--foreground, #f3f1ea); }
.pzg-unit:focus-visible { outline: 2px solid #D8640F; outline-offset: 2px; }
.pzg-since { margin: 0 0 12px; font-size: 12.5px; line-height: 1.5; color: var(--muted-foreground, #b8b2a2); font-variant-numeric: tabular-nums; }
.pzg-since > span { margin-right: 6px; font-weight: 800; color: var(--foreground, #f3f1ea); }
.pzg-line span.pzg-cat { font-size: 12px; color: #e88b8e; }
.pzg-line span.pzg-shared { font-size: 11.5px; font-style: italic; color: var(--muted-foreground, #b8b2a2); }
@media (max-width: 560px) {
  .pzg-units { display: flex; }
  .pzg-unit { flex: 1; padding: 7px 6px; }
}
.pzg-sub-title { margin: 16px 0 8px; font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--muted-foreground, #b8b2a2); }
.pzg-days { display: grid; grid-template-columns: repeat(auto-fit, minmax(84px, 1fr)); gap: 8px; }
.pzg-day {
  display: flex; flex-direction: column; gap: 2px; padding: 9px 10px; border-radius: 10px;
  border: 1px solid var(--pzg-line); background: rgba(0,0,0,.14); font-variant-numeric: tabular-nums;
}
.pzg-day:first-child { border-color: rgba(220,164,17,.45); }
.pzg-day-label { font-size: 11.5px; font-weight: 700; color: var(--muted-foreground, #b8b2a2); }
.pzg-day-amount { font-size: 14px; font-weight: 800; white-space: nowrap; }
.pzg-sub-title span { font-weight: 600; letter-spacing: .02em; text-transform: none; }
.pzg-day-net { font-size: 11px; font-weight: 600; white-space: nowrap; }
.pzg-hint { margin: 10px 0 0; font-size: 11.5px; color: var(--muted-foreground, #b8b2a2); }

.pzg-dialog-hint { margin: 6px 0 0; font-size: 12px; line-height: 1.45; color: var(--muted-foreground, #b8b2a2); }
.pzg-dialog-hint strong { color: var(--primary, #DCA411); }
.pzg-link { background: none; border: none; padding: 0; color: #D8640F; font-weight: 700; font-size: 12px; text-decoration: underline; cursor: pointer; }

.pzg-cat-btn {
  height: 36px; padding: 0 14px; border-radius: 8px; border: 1px solid #D8640F; background: transparent;
  color: var(--primary, #DCA411); font-weight: 700; font-size: 14px; cursor: pointer;
}
.pzg-cat-btn:hover, .pzg-cat-btn:focus-visible { background: rgba(216,100,15,.15); outline: none; }

#pzg-modal-backdrop {
  position: fixed; inset: 0; background: rgba(15,20,30,.55); z-index: 999999;
  display: none; align-items: flex-end; justify-content: center;
}
#pzg-modal-backdrop.open { display: flex; }
@media (min-width: 640px) { #pzg-modal-backdrop { align-items: center; } }
#pzg-modal {
  position: relative; background: #fff; width: 100%; max-width: 460px; max-height: 88vh; overflow-y: auto;
  border-radius: 16px 16px 0 0; padding: 20px; color: #0F0D08;
}
@media (min-width: 640px) { #pzg-modal { border-radius: 16px; } }
#pzg-modal h2 { margin: 0 0 4px; font-size: 17px; }
#pzg-modal .pz-sub { font-size: 12px; color: #64748b; margin-bottom: 14px; }
#pzg-modal .pz-close { position: absolute; top: 14px; right: 16px; background: none; border: none; font-size: 20px; color: #94a3b8; cursor: pointer; }
.pzg-cat-form { display: flex; gap: 8px; }
.pzg-cat-form input { flex: 1; min-width: 0; padding: 10px; border-radius: 8px; border: 1px solid #e2e8f0; font-size: 14px; }
.pzg-cat-form .pz-btn { width: auto; margin-top: 0; padding: 10px 16px; }
.pzg-cat-list { list-style: none; margin: 14px 0 0; padding: 0; }
.pzg-cat-list li { display: flex; align-items: center; gap: 8px; padding: 9px 0; border-bottom: 1px solid #f1f5f9; font-size: 14px; }
.pzg-cat-name { flex: 1; font-weight: 600; }
.pzg-cat-count { font-size: 12px; color: #64748b; }
.pzg-mini { border: 1px solid #e2e8f0; background: #f8fafc; color: #334155; border-radius: 7px; padding: 5px 9px; font-size: 12px; font-weight: 600; cursor: pointer; }
.pzg-mini.pzg-danger { color: #b91c1c; border-color: #fecaca; background: #fef2f2; }

/* Stock lié aux ventes (overlay-catalogue.js) */
#pzg-modal.pzg-wide { max-width: 620px; }
.pzg-links-tools { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 6px; }
.pzg-links-tools input[type="search"] { flex: 1; min-width: 180px; padding: 9px 10px; border-radius: 8px; border: 1px solid #e2e8f0; font-size: 14px; }
.pzg-links-tools label { display: flex; align-items: center; gap: 6px; font-size: 13px; color: #334155; font-weight: 600; }
.pzg-links-list { list-style: none; margin: 10px 0 0; padding: 0; }
.pzg-links-list > li { padding: 10px 0; border-bottom: 1px solid #f1f5f9; }
.pzg-lp-head { display: flex; align-items: center; gap: 8px; }
.pzg-lp-head strong { flex: 1; font-size: 14px; color: #0F0D08; }
.pzg-lp-links { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.pzg-chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 6px 4px 10px; border-radius: 999px;
  background: #fff7ed; border: 1px solid #fed7aa; color: #9a3412; font-size: 12.5px; font-weight: 600;
}
.pzg-chip small { color: #78716c; font-weight: 500; }
.pzg-chip button { border: none; background: #ffedd5; color: #9a3412; border-radius: 50%; width: 20px; height: 20px; cursor: pointer; font-size: 11px; }
.pzg-unlinked { font-size: 12px; color: #94a3b8; }
.pzg-lp-add { display: flex; gap: 6px; margin-top: 8px; }
.pzg-lp-add select { flex: 1; min-width: 0; padding: 7px; border-radius: 8px; border: 1px solid #e2e8f0; font-size: 13px; }
.pzg-lp-add input { width: 84px; padding: 7px; border-radius: 8px; border: 1px solid #e2e8f0; font-size: 13px; }
.pzg-mini.pzg-ok { background: #0F0D08; color: #DCA411; border-color: #0F0D08; }
.pzg-mini:disabled { opacity: .45; cursor: not-allowed; }
#pzg-modal .pzg-line span:first-child { color: #64748b; }

/* ───────────── Droits d'accès (overlay-permissions.js) ───────────── */
.pzp-panel .pzg-head h2 { font-size: 15px; }
.pzp-users { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.pzp-user {
  display: flex; flex-direction: column; align-items: flex-start; gap: 1px; padding: 7px 11px; border-radius: 10px;
  border: 1px solid #e2e8f0; background: #f8fafc; cursor: pointer; text-align: left; color: #0F0D08;
  transition: border-color .15s, background-color .15s;
}
.pzp-user strong { font-size: 13px; }
.pzp-user span { font-size: 11px; color: #64748b; }
.pzp-user:hover, .pzp-user:focus-visible { border-color: #D8640F; outline: none; }
.pzp-user-on { background: #0F0D08; border-color: #0F0D08; }
.pzp-user-on strong { color: #DCA411; }
.pzp-user-on span { color: #cbd5e1; }
.pzp-user-off { opacity: .6; }
.pzp-editor { border-top: 1px solid #f1f5f9; padding-top: 12px; }
.pzp-who { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 10px; font-size: 15px; }
.pzp-badge { font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 999px; background: #f1f5f9; color: #475569; }
.pzp-badge-custom { background: #fff7ed; color: #9a3412; border: 1px solid #fed7aa; }
.pzp-group { border: 1px solid #e2e8f0; border-radius: 12px; padding: 6px 12px 8px; margin: 0 0 10px; }
.pzp-group legend { font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: #D8640F; padding: 0 6px; }
.pzp-perm { display: flex; align-items: center; gap: 10px; padding: 7px 4px; border-bottom: 1px solid #f8fafc; font-size: 14px; cursor: pointer; color: #334155; }
.pzp-perm:last-child { border-bottom: none; }
.pzp-perm input { width: 18px; height: 18px; accent-color: #D8640F; flex: none; }
.pzp-perm span { flex: 1; }
.pzp-perm-on span { color: #0F0D08; font-weight: 600; }
.pzp-perm em, .pzp-em { font-style: normal; font-size: 10.5px; font-weight: 700; color: #64748b; background: #f1f5f9; border-radius: 6px; padding: 2px 6px; }
.pzp-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.pzp-actions .pz-btn { width: auto; flex: 1; min-width: 180px; }
.pzp-note { font-size: 14px; color: #334155; }
.pzp-reload {
  position: fixed; left: 50%; bottom: 88px; transform: translateX(-50%); z-index: 999998; display: flex; align-items: center; gap: 12px;
  background: #0F0D08; color: #f3f1ea; border: 1px solid #D8640F; border-radius: 12px; padding: 10px 14px; font-size: 13.5px;
  box-shadow: 0 10px 30px rgba(0,0,0,.4); max-width: calc(100vw - 32px);
}
.pzp-reload button { background: #DCA411; color: #0F0D08; border: none; border-radius: 8px; padding: 7px 12px; font-weight: 800; cursor: pointer; white-space: nowrap; }

/* ───────────── Caisse : motifs et clôture détaillée (overlay-cloture.js) ───────────── */
.pzc-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.pzc-chip {
  border: 1px solid rgba(216,100,15,.45); background: rgba(216,100,15,.08); color: inherit; border-radius: 999px;
  padding: 5px 11px; font-size: 12.5px; font-weight: 600; cursor: pointer; transition: background-color .15s;
}
.pzc-chip:hover, .pzc-chip:focus-visible { background: rgba(216,100,15,.22); outline: none; }
.pzc-error { margin: 6px 0 0; font-size: 12.5px; font-weight: 700; color: var(--destructive, #e5484d); }
.pzc-error:empty { display: none; }
/* Dépense / Retrait : caisse qui paie et catégorie, choix obligatoires (rien n'est coché d'avance). */
.pzc-move-choice { display: grid; gap: 12px; }
.pzc-choice-label { margin: 0; font-size: 12.5px; font-weight: 700; }
.pzc-choice-label span { color: #D8640F; }
.pzc-choice .pzc-chips { margin-top: 6px; }
.pzc-choice[data-name="caisse"] .pzc-chip { padding: 8px 20px; font-size: 13.5px; font-weight: 800; }
.pzc-chip[aria-pressed="true"] { background: #D8640F; border-color: #D8640F; color: #fff; }
.pzc-chip[aria-pressed="true"]:hover, .pzc-chip[aria-pressed="true"]:focus-visible { background: #c2560b; }
#pzd-cat { margin: 4px 0 10px; }
.pzc-dialog { max-height: 92vh; overflow-y: auto; }
@media (min-width: 640px) { .pzc-dialog { max-width: 34rem !important; } }
.pzc-detail { margin-top: 4px; font-size: 13px; }
.pzc-title { margin: 6px 0 8px; font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: #D8640F; }
.pzc-block { margin: 0 0 12px; }
.pzc-kicker { margin: 0 0 6px; font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; opacity: .75; }
.pzc-moves { list-style: none; margin: 0 0 6px; padding: 0; }
.pzc-move { display: flex; gap: 10px; align-items: baseline; padding: 7px 0; border-bottom: 1px solid rgba(127,127,127,.2); }
.pzc-move-time { font-variant-numeric: tabular-nums; font-size: 12px; opacity: .7; min-width: 42px; }
.pzc-move-main { flex: 1; min-width: 0; line-height: 1.35; overflow-wrap: anywhere; }
.pzc-move-main small { display: block; font-size: 11.5px; opacity: .65; }
.pzc-move-amount { font-weight: 800; white-space: nowrap; font-variant-numeric: tabular-nums; color: var(--destructive, #e5484d); }
.pzc-tag { display: inline-block; margin-right: 6px; padding: 1px 7px; border-radius: 6px; font-size: 10.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; }
.pzc-tag-expense { background: rgba(229,72,77,.14); color: #e5484d; }
.pzc-tag-withdrawal { background: rgba(216,100,15,.16); color: #D8640F; }
/* Caisse d'où sort l'argent (gris = restau-bar d'avant la séparation) et catégorie (contour, sans fond). */
.pzc-tag-caisse { background: rgba(148,163,184,.18); color: #94a3b8; }
.pzc-tag-resto { background: rgba(234,88,12,.14); color: #ea580c; }
.pzc-tag-bar { background: rgba(139,92,246,.16); color: #8b5cf6; }
.pzc-tag-terrain { background: rgba(4,120,87,.14); color: #10b981; }
.pzc-tag-cat { background: transparent; color: inherit; border: 1px solid rgba(148,163,184,.55); text-transform: none; letter-spacing: 0; font-weight: 700; }
.pzc-missing { color: #D8640F; font-weight: 700; }
.pzc-missing-note, .pzc-empty { margin: 4px 0 8px; font-size: 12px; opacity: .8; }
.pzc-ecart { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding: 10px 12px; border-radius: 10px; background: rgba(216,100,15,.1); margin-bottom: 10px; }
.pzc-ecart strong { font-size: 15px; white-space: nowrap; }
.pzc-warn { color: #D8640F; }
.pzc-note-label { display: block; font-size: 12.5px; font-weight: 700; margin-bottom: 4px; }
.pzc-note {
  width: 100%; box-sizing: border-box; border-radius: 8px; padding: 8px 10px; font: inherit; font-size: 13.5px; resize: vertical;
  background: transparent; color: inherit; border: 1px solid rgba(127,127,127,.4);
}
.pzc-note:focus { outline: 2px solid #D8640F; outline-offset: 1px; }
.pzc-note-required { border-color: var(--destructive, #e5484d); }
.pzc-toolbar { display: flex; gap: 8px; justify-content: flex-end; margin: 4px 0 12px; }
.pzc-total { font-weight: 800; margin: 0 0 6px; }

/* ───────────── Stock : ajouter sans recréer (overlay-stock.js) ───────────── */
.pzs-add {
  width: 100%; margin-top: 4px; padding: 7px 10px; border-radius: 8px; border: 1px dashed rgba(216,100,15,.6);
  background: rgba(216,100,15,.08); color: var(--primary, #DCA411); font-weight: 700; font-size: 13px; cursor: pointer;
  transition: background-color .15s, border-color .15s;
}
.pzs-add:hover, .pzs-add:focus-visible { background: rgba(216,100,15,.2); border-style: solid; outline: none; }
.pzs-preview { margin: 8px 0 4px; font-weight: 700; color: #047857; min-height: 1em; }
.pzs-hint { margin: 6px 0 0; font-size: 12px; line-height: 1.4; opacity: .75; }
.pzs-dup { margin: 6px 0 0; font-size: 12.5px; line-height: 1.4; font-weight: 700; color: #D8640F; }
.pzs-dup:empty { display: none; }
.pzs-dups {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 16px;
  padding: 10px 14px; border-radius: 12px; border: 1px solid rgba(216,100,15,.5); background: rgba(216,100,15,.1);
  color: var(--foreground, #f3f1ea); font-size: 13.5px;
}
.pzs-group { border: 1px solid #e2e8f0; border-radius: 12px; padding: 6px 12px 10px; margin: 0 0 10px; }
.pzs-group legend { font-weight: 800; font-size: 14px; padding: 0 6px; }
.pzs-fiche { display: flex; gap: 10px; align-items: center; padding: 6px 2px; font-size: 13.5px; color: #334155; cursor: pointer; }
.pzs-fiche input { accent-color: #D8640F; width: 17px; height: 17px; }

/* Bouton principal « + Ajouter au stock » ; le « Nouvel article » natif passe en second plan. */
.pzs-add-top {
  height: 40px; padding: 0 16px; border-radius: 8px; border: none; background: #DCA411; color: #0F0D08;
  font-weight: 800; font-size: 14px; cursor: pointer; box-shadow: 0 4px 14px rgba(220,164,17,.25);
  transition: transform .12s, box-shadow .15s;
}
.pzs-add-top:hover, .pzs-add-top:focus-visible { box-shadow: 0 6px 20px rgba(220,164,17,.4); outline: none; }
.pzs-add-top:active { transform: scale(.97); }
button.pzs-native-secondary { background: transparent !important; color: var(--primary, #DCA411) !important; border: 1px solid rgba(220,164,17,.55) !important; box-shadow: none !important; }
.pzs-dup p { margin: 0 0 6px; }
.pzs-suggest {
  display: block; width: 100%; text-align: left; margin: 4px 0 0; padding: 8px 10px; border-radius: 8px; cursor: pointer;
  border: 1px solid rgba(220,164,17,.6); background: rgba(220,164,17,.12); color: var(--primary, #DCA411); font-weight: 800; font-size: 13px;
}
.pzs-suggest small { font-weight: 600; opacity: .8; }
.pzs-suggest:hover, .pzs-suggest:focus-visible { background: rgba(220,164,17,.25); outline: none; }
.pzs-search { width: 100%; box-sizing: border-box; padding: 10px; border-radius: 8px; border: 1px solid #e2e8f0; font-size: 15px; }
.pzs-pick { list-style: none; margin: 10px 0 0; padding: 0; max-height: 55vh; overflow-y: auto; }
.pzs-pick button {
  display: flex; justify-content: space-between; align-items: baseline; gap: 10px; width: 100%; padding: 11px 8px; border: none;
  border-bottom: 1px solid #f1f5f9; background: none; cursor: pointer; text-align: left; color: #0F0D08; font-size: 14px; border-radius: 8px;
}
.pzs-pick button span { color: #64748b; font-size: 12.5px; white-space: nowrap; }
.pzs-pick button:hover, .pzs-pick button:focus-visible { background: #fff7ed; outline: none; }

/* Les en-têtes de panneau portent plusieurs boutons : groupés à droite, retour à la ligne sur petit écran. */
.pzg-head { flex-wrap: wrap; gap: 8px; }
.pzg-head > h2 { margin-right: auto; }

/* ───────────── Suivi des dépenses + sorties terrain (overlay-depenses.js) ───────────── */
.pzd-btn { position: relative; }
.pzd-badge {
  display: inline-flex; align-items: center; justify-content: center; min-width: 18px; height: 18px; margin-left: 6px; padding: 0 5px;
  border-radius: 999px; background: #D8640F; color: #fff; font-size: 11px; font-weight: 800; font-variant-numeric: tabular-nums;
}
.pzd-move { color: var(--primary, #DCA411); border-color: rgba(216,100,15,.55); font-weight: 700; }
.pzd-tools { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 10px; font-size: 13px; color: #334155; }
.pzd-tools input, .pzd-tools select { padding: 7px; border-radius: 8px; border: 1px solid #e2e8f0; font-size: 13px; margin-left: 4px; background: #fff; color: #0F0D08; }
.pzd-tools select { margin-left: 0; }
.pzd-filters { margin-bottom: 10px; }
.pzd-break { margin: -2px 0 10px; font-size: 12px; color: #64748b; line-height: 1.5; }
.pzd-break b { color: #0F0D08; font-variant-numeric: tabular-nums; }
.pzd-list { list-style: none; margin: 0; padding: 0; }
.pzd-row {
  display: grid; grid-template-columns: 54px 1fr auto; gap: 10px; width: 100%; padding: 10px 6px; border: none; border-bottom: 1px solid #f1f5f9;
  background: none; text-align: left; color: #0F0D08; font-size: 13.5px; cursor: pointer; border-radius: 8px; align-items: start;
}
.pzd-row:hover, .pzd-row:focus-visible { background: #fff7ed; outline: none; }
.pzd-row-when { font-size: 12px; color: #64748b; font-variant-numeric: tabular-nums; padding-top: 2px; }
.pzd-row-main { min-width: 0; line-height: 1.4; overflow-wrap: anywhere; }
.pzd-row-main small { display: block; font-size: 11.5px; color: #64748b; }
.pzd-row-side { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.pzd-row-side strong { color: #b91c1c; font-variant-numeric: tabular-nums; white-space: nowrap; }
.pzd-used { display: block; margin-top: 3px; font-size: 12.5px; color: #047857; font-weight: 600; }
.pzd-used-none { color: #D8640F; }
.pzd-st { font-size: 10.5px; font-weight: 800; padding: 2px 8px; border-radius: 999px; white-space: nowrap; letter-spacing: .02em; }
.pzd-st-todo { background: #fff7ed; color: #c2410c; border: 1px solid #fed7aa; }
.pzd-st-done { background: #ecfdf5; color: #047857; border: 1px solid #a7f3d0; }
.pzd-st-ok { background: #0F0D08; color: #DCA411; border: 1px solid #0F0D08; }
.pzd-tag-terrain { background: rgba(4,120,87,.12); color: #047857; }
.pzd-toolbar { justify-content: space-between; align-items: center; }
.pzd-facts { padding: 10px 12px; border-radius: 10px; background: #f8fafc; border: 1px solid #e2e8f0; margin-bottom: 14px; font-size: 13px; color: #334155; }
.pzd-facts p { margin: 0 0 3px; }
.pzd-motif { font-size: 14.5px; font-weight: 700; color: #0F0D08; }
/* Journal en frise : fine ligne neutre, une pastille dorée par note. */
.pzd-journal { list-style: none; margin: 0 0 12px; padding: 0 0 0 14px; border-left: 1px solid #e2e8f0; }
.pzd-journal li { position: relative; padding: 4px 0 8px; }
.pzd-journal li::before {
  content: ""; position: absolute; left: -18px; top: 10px; width: 7px; height: 7px; border-radius: 50%; background: #DCA411;
}
.pzd-journal p { margin: 0; font-size: 14px; line-height: 1.45; color: #0F0D08; white-space: pre-wrap; }
.pzd-journal small { font-size: 11.5px; color: #64748b; }
.pzd-empty { font-size: 13px; color: #c2410c; margin: 0 0 12px; }
.pzd-note-form .pzc-note { color: #0F0D08; background: #fff; }
.pzd-verify { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 12px; padding-top: 10px; border-top: 1px solid #f1f5f9; }
.pzd-verify:empty { display: none; }
.pzd-verified { margin: 0; font-size: 13px; font-weight: 700; color: #047857; }

/* ───────────── Commandes : ajout à une commande en cours, accompagnements (overlay-commandes.js) ───────────── */
.pzo-add-btn {
  width: 100%; margin: 4px 0 2px; padding: 11px 12px; border-radius: 10px; border: 1px dashed rgba(220,164,17,.7);
  background: rgba(220,164,17,.12); color: var(--primary, #DCA411); font-weight: 800; font-size: 14px; cursor: pointer;
  transition: background-color .15s, border-color .15s;
}
.pzo-add-btn:hover, .pzo-add-btn:focus-visible { background: rgba(220,164,17,.24); border-style: solid; outline: none; }
/* Relancer une commande annulée : même bouton, en orange (action de rattrapage, pas d'ajout). */
.pzo-reopen-btn { border-color: rgba(216,100,15,.75); background: rgba(216,100,15,.12); color: #F08A3C; }
.pzo-reopen-btn:hover, .pzo-reopen-btn:focus-visible { background: rgba(216,100,15,.24); }
.pzo-reopen { display: grid; gap: 10px; margin-bottom: 4px; }
.pzo-reopen-choice {
  display: flex; flex-direction: column; align-items: flex-start; gap: 4px; width: 100%; padding: 14px 16px;
  border: 1px solid #e2e8f0; border-radius: 12px; background: #fff; color: #0F0D08;
  font: inherit; text-align: left; cursor: pointer; transition: border-color .15s, box-shadow .15s, transform .15s;
}
.pzo-reopen-choice strong { display: flex; align-items: center; gap: 8px; font-size: 15px; }
/* Pastille : doré = retour en cuisine, orange = à encaisser. */
.pzo-reopen-choice strong::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: #DCA411; flex: none; }
.pzo-reopen-choice[data-status="served"] strong::before { background: #D8640F; }
.pzo-reopen-choice span { font-size: 12.5px; line-height: 1.45; color: #64748b; }
.pzo-reopen-choice:hover, .pzo-reopen-choice:focus-visible {
  border-color: #D8640F; box-shadow: 0 0 0 3px rgba(216,100,15,.15); transform: translateY(-1px); outline: none;
}
.pzo-reopen-choice:disabled { opacity: .55; cursor: wait; transform: none; }
.pzo-append {
  margin: 8px 12px 0; padding: 9px 10px; border-radius: 10px; border: 1px solid rgba(220,164,17,.55);
  background: rgba(220,164,17,.1); font-size: 12px; line-height: 1.4;
}
.pzo-append p { margin: 0 0 6px; }
.pzo-append strong { color: var(--primary, #DCA411); }
.pzo-append label { display: flex; align-items: center; gap: 6px; padding: 3px 0; cursor: pointer; }
.pzo-append input { accent-color: #D8640F; }
.pzo-layout { display: grid; gap: 14px; }
.pzo-pick, .pzo-cart { min-width: 0; }
@media (min-width: 600px) { .pzo-layout { grid-template-columns: minmax(0, 1fr) 230px; } }
.pzo-cats { display: flex; flex-wrap: wrap; gap: 6px; padding: 8px 0 6px; }
.pzo-cat {
  flex: none; border: 1px solid #e2e8f0; background: #f8fafc; color: #334155; border-radius: 999px; padding: 5px 11px;
  font-size: 12.5px; font-weight: 700; cursor: pointer;
}
.pzo-cat[aria-pressed="true"] { background: #0F0D08; color: #DCA411; border-color: #0F0D08; }
.pzo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 8px; max-height: 46vh; overflow-y: auto; align-content: start; }
.pzo-prod {
  position: relative; display: flex; flex-direction: column; gap: 3px; text-align: left; padding: 9px 10px; border-radius: 10px;
  border: 1px solid #e2e8f0; background: #fff; color: #0F0D08; cursor: pointer; font-size: 13px; font-weight: 600; line-height: 1.25;
}
.pzo-prod small { color: #9a3412; font-weight: 700; }
.pzo-prod:hover, .pzo-prod:focus-visible { border-color: #D8640F; outline: none; }
.pzo-prod-on { border-color: #DCA411; background: #fffbeb; }
.pzo-prod-qty {
  position: absolute; top: 6px; right: 6px; min-width: 20px; height: 20px; border-radius: 999px; background: #0F0D08; color: #DCA411;
  font-size: 11px; display: flex; align-items: center; justify-content: center;
}
.pzo-cart { display: flex; flex-direction: column; gap: 8px; border-top: 1px solid #f1f5f9; padding-top: 10px; }
@media (min-width: 600px) { .pzo-cart { border-top: none; border-left: 1px solid #f1f5f9; padding: 0 0 0 14px; } }
.pzo-cart-title { margin: 0; font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: #D8640F; }
.pzo-lines { list-style: none; margin: 0; padding: 0; max-height: 40vh; overflow-y: auto; }
.pzo-lines li { padding: 8px 0; border-bottom: 1px solid #f1f5f9; }
.pzo-line-head { display: flex; justify-content: space-between; gap: 6px; font-size: 13px; }
.pzo-x { border: none; background: none; color: #94a3b8; cursor: pointer; font-size: 13px; }
.pzo-x:hover, .pzo-x:focus-visible { color: #b91c1c; }
.pzo-line-qty { display: flex; align-items: center; gap: 6px; margin-top: 4px; font-size: 13px; }
.pzo-line-qty button { width: 26px; height: 26px; border-radius: 7px; border: 1px solid #e2e8f0; background: #f8fafc; font-weight: 800; cursor: pointer; color: #0F0D08; }
.pzo-line-qty span { min-width: 18px; text-align: center; font-weight: 800; font-variant-numeric: tabular-nums; }
.pzo-line-qty em { margin-left: auto; font-style: normal; font-weight: 700; color: #9a3412; font-variant-numeric: tabular-nums; }
.pzo-note { width: 100%; box-sizing: border-box; margin-top: 6px; padding: 6px 8px; border-radius: 7px; border: 1px solid #e2e8f0; font-size: 12px; }
/* Modifier une commande en cours : bouton neutre (on retire, on n'ajoute pas), lignes avec quantité et retrait. */
.pzo-edit-btn { border-color: rgba(148,163,184,.6); background: rgba(148,163,184,.1); color: var(--foreground, #f3f1ea); }
.pzo-edit-btn:hover, .pzo-edit-btn:focus-visible { background: rgba(148,163,184,.22); }
.pzo-edit-line { display: grid; grid-template-columns: minmax(0, 1fr) auto auto auto; align-items: center; gap: 10px; }
.pzo-edit-name { display: flex; flex-direction: column; min-width: 0; }
.pzo-edit-name strong { font-size: 13.5px; color: #0F0D08; }
.pzo-edit-name small { font-size: 11.5px; color: #64748b; }
.pzo-edit-line .pzo-line-qty { margin-top: 0; }
.pzo-line-qty button:disabled { opacity: .35; cursor: not-allowed; }
.pzo-edit-sub { min-width: 84px; text-align: right; font-style: normal; font-size: 12.5px; font-weight: 700; color: #334155; font-variant-numeric: tabular-nums; }
.pzo-edit-line .pzo-x { font-size: 12px; font-weight: 700; }
.pzo-edit-changed .pzo-line-qty span { color: #c2410c; }
.pzo-edit-removed .pzo-edit-name strong { text-decoration: line-through; color: #94a3b8; }
.pzo-edit-gone { grid-column: span 2; text-align: right; font-size: 12px; font-weight: 700; color: #b91c1c; }
.pzo-edit-undo { border: 1px solid #e2e8f0; background: #fff; color: #0F0D08; border-radius: 7px; padding: 4px 10px; font-size: 12px; font-weight: 700; cursor: pointer; }
.pzo-edit-undo:hover, .pzo-edit-undo:focus-visible { border-color: #D8640F; outline: none; }
.pzo-reasons { margin: 12px 0 10px; }
.pzo-reason-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.pzo-reason-chip { border: 1px solid #e2e8f0; background: #f8fafc; color: #334155; border-radius: 999px; padding: 5px 11px; font-size: 12.5px; font-weight: 700; cursor: pointer; }
.pzo-reason-chip[aria-pressed="true"] { background: #0F0D08; color: #DCA411; border-color: #0F0D08; }
.pzo-reason-chip:focus-visible { outline: 2px solid #DCA411; outline-offset: 1px; }
.pzo-edit-warn { margin: 4px 0 0; min-height: 1em; font-size: 12px; color: #b91c1c; }
.pzo-edit-history { margin-top: 14px; padding-top: 10px; border-top: 1px solid #f1f5f9; }
.pzo-edit-history ul { margin: 6px 0 0; padding-left: 16px; font-size: 12px; line-height: 1.5; color: #475569; }
@media (max-width: 480px) {
  .pzo-edit-line { grid-template-columns: minmax(0, 1fr) auto; }
  .pzo-edit-sub { display: none; }
}
.pzo-total { display: flex; justify-content: space-between; align-items: baseline; font-size: 14px; }
.pzo-total strong { color: #047857; font-variant-numeric: tabular-nums; }
.pzo-newtotal { margin: 0; font-size: 12px; color: #64748b; }
.pzo-acc { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; margin-top: 6px; }
.pzo-acc-label { font-size: 11px; font-weight: 700; color: #64748b; margin-right: 2px; }
.pzo-acc-chip {
  border: 1px solid rgba(216,100,15,.45); background: transparent; color: inherit; border-radius: 999px; padding: 2px 8px;
  font-size: 11.5px; font-weight: 600; cursor: pointer;
}
.pzo-acc-chip[aria-pressed="true"] { background: #D8640F; border-color: #D8640F; color: #fff; }
.pzo-acc-chip:focus-visible { outline: 2px solid #DCA411; outline-offset: 1px; }
.pzo-acc-native .pzo-acc-label { color: var(--muted-foreground, #b8b2a2); }
.pzo-acc-native .pzo-acc-chip { font-size: 10.5px; padding: 1px 7px; }

/* ───────────── Rapports de caisse (overlay-rapports.js) — écran et impression A4 ───────────── */
.pzr-header-btn {
  display: inline-flex; align-items: center; gap: 7px; height: 36px; padding: 0 13px; border-radius: 999px; cursor: pointer;
  border: 1px solid rgba(220,164,17,.5); background: rgba(220,164,17,.1); color: var(--primary, #DCA411);
  font-family: "Manrope", sans-serif; font-weight: 700; font-size: 13px; transition: background-color .15s, border-color .15s;
}
.pzr-header-btn:hover, .pzr-header-btn:focus-visible { background: rgba(220,164,17,.22); border-color: #DCA411; outline: none; }
.pzr-header-btn:active { transform: scale(.97); }
@media (max-width: 640px) {
  .pzr-header-btn { width: 36px; padding: 0; justify-content: center; }
  .pzr-header-btn span { display: none; }
}
.pzr-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.pzr-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin: 0 30px 14px 0; }
.pzr-print {
  display: inline-flex; align-items: center; gap: 7px; height: 34px; padding: 0 14px; border: none; border-radius: 8px;
  background: #0F0D08; color: #DCA411; font-weight: 800; font-size: 13px; cursor: pointer;
}
.pzr-print:hover, .pzr-print:focus-visible { background: #2a2416; outline: none; }

/* Liste des rapports */
.pzr-group { margin: 14px 0 6px; font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: #D8640F; }
.pzr-summary { margin: 0 0 4px; font-size: 12.5px; color: #64748b; }
.pzr-list { list-style: none; margin: 0; padding: 0; }
.pzr-row {
  display: grid; grid-template-columns: 50px minmax(0, 1fr) auto; gap: 12px; align-items: center; width: 100%; padding: 9px 8px;
  border: none; border-bottom: 1px solid #f1f5f9; border-radius: 10px; background: none; text-align: left; color: #0F0D08; font-size: 13.5px; cursor: pointer;
}
.pzr-row:hover, .pzr-row:focus-visible { background: #fff7ed; outline: none; }
.pzr-day { display: flex; flex-direction: column; align-items: center; padding: 5px 0 4px; border-radius: 9px; background: #faf6ec; line-height: 1.1; }
.pzr-day b { font-family: "Cinzel", serif; font-size: 18px; }
.pzr-day small { font-size: 10px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: #8a6d1d; }
.pzr-row-main { min-width: 0; }
.pzr-row-main strong { display: block; font-weight: 700; overflow-wrap: anywhere; }
.pzr-row-main small { display: block; font-size: 11.5px; color: #64748b; font-variant-numeric: tabular-nums; }
.pzr-badge { padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 800; white-space: nowrap; font-variant-numeric: tabular-nums; }

/* Couleurs de verdict (badge, encadré, ligne d'écart) */
.pzr-ok { color: #047857; background: #ecfdf5; }
.pzr-bad { color: #b91c1c; background: #fef2f2; }
.pzr-warn { color: #b45309; background: #fffbeb; }
.pzr-open { color: #8a6d1d; background: #fbf5e3; }

/* Le rapport */
.pzr {
  --pzr-ink: #14110a; --pzr-muted: #6b6457; --pzr-line: #e8e1d1; --pzr-gold: #a87c0c; --pzr-paper: #fcfaf5;
  color: var(--pzr-ink); font-family: "Manrope", sans-serif; font-size: 13px; line-height: 1.45; font-variant-numeric: tabular-nums;
}
.pzr-head { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 14px; align-items: center; padding-bottom: 14px; border-bottom: 2px solid var(--pzr-ink); }
.pzr-logo { width: 54px; height: 54px; border-radius: 12px; object-fit: cover; background: #0F0D08; }
.pzr-kicker { margin: 0; font-size: 10.5px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--pzr-gold); }
.pzr-title { margin: 1px 0 3px; font-family: "Cinzel", serif; font-size: 23px; font-weight: 700; letter-spacing: .05em; line-height: 1.1; color: var(--pzr-ink); }
.pzr-meta { margin: 0; font-size: 12.5px; color: var(--pzr-muted); }
.pzr-meta strong { color: var(--pzr-ink); font-weight: 700; }
.pzr-meta.pzr-journee { margin-bottom: 2px; font-weight: 700; color: var(--pzr-ink); }
.pzr-verdict { display: flex; flex-direction: column; align-items: flex-end; gap: 1px; padding: 9px 13px; border-radius: 12px; text-align: right; }
.pzr-verdict span { font-size: 10.5px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.pzr-verdict strong { font-size: 19px; font-weight: 800; white-space: nowrap; }
.pzr-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin: 14px 0 4px; }
.pzr-kpi { display: flex; flex-direction: column; gap: 2px; min-width: 0; padding: 10px 12px; border-radius: 10px; background: var(--pzr-paper); border: 1px solid var(--pzr-line); }
.pzr-kpi span { font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--pzr-muted); }
.pzr-kpi strong { font-size: 16px; font-weight: 800; white-space: nowrap; }
.pzr-kpi small { font-size: 11px; color: var(--pzr-muted); }
.pzr-sec { margin-top: 18px; }
.pzr-sec h2, #pzg-modal .pzr-sec h2 {
  display: flex; align-items: center; gap: 10px; margin: 0 0 4px; font-family: "Manrope", sans-serif;
  font-size: 11px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--pzr-gold);
}
.pzr-sec h2::after { content: ""; flex: 1; height: 1px; background: var(--pzr-line); }
.pzr-table { width: 100%; border-collapse: collapse; }
.pzr-table th, .pzr-table td { padding: 6px 0; border-bottom: 1px solid var(--pzr-line); text-align: left; vertical-align: top; font-weight: 500; }
.pzr-table td { text-align: right; white-space: nowrap; padding-left: 12px; }
.pzr-table th[scope="row"] { color: #3d382e; }
.pzr-table .pzr-total th, .pzr-table .pzr-total td { font-weight: 800; color: var(--pzr-ink); border-top: 1.5px solid var(--pzr-ink); }
.pzr-table .pzr-sub th { padding-left: 14px; font-size: 12px; color: var(--pzr-muted); }
.pzr-table .pzr-sub td { font-size: 12px; color: var(--pzr-muted); }
.pzr-table .pzr-ecart th, .pzr-table .pzr-ecart td { color: inherit; font-weight: 800; padding-left: 8px; padding-right: 8px; border-bottom: none; }
.pzr-moves thead th { padding-top: 2px; font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--pzr-muted); }
.pzr-moves thead th:last-child { text-align: right; }
.pzr-moves td { text-align: left; white-space: normal; padding-left: 0; padding-right: 10px; }
.pzr-moves td.pzr-amount { text-align: right; padding-right: 0; font-weight: 800; color: #b91c1c; white-space: nowrap; }
.pzr-time { width: 44px; color: var(--pzr-muted); }
.pzr-nature { width: 1%; white-space: nowrap; }
.pzr-why strong { display: block; font-weight: 700; }
.pzr-why small { display: block; font-size: 11.5px; color: var(--pzr-muted); }
.pzr-used { display: block; margin-top: 2px; font-size: 12px; font-weight: 600; color: #047857; }
.pzr-todo { display: block; margin-top: 2px; font-size: 12px; font-weight: 700; color: #b45309; }
.pzr-tag { display: inline-block; margin: 0 4px 2px 0; padding: 1px 6px; border-radius: 5px; font-size: 10px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.pzr-tag-caisse { background: #f1f5f9; color: #475569; }
.pzr-tag-resto { background: #fff1e6; color: #c2410c; }
.pzr-tag-bar { background: #f3effe; color: #6d28d9; }
.pzr-tag-cat { background: #fff; color: #334155; border: 1px solid #cbd5e1; text-transform: none; letter-spacing: 0; }
.pzr-tag-expense { background: #fdecec; color: #b91c1c; }
.pzr-tag-withdrawal { background: #fdf0e3; color: #b45309; }
.pzr-tag-terrain { background: #e6f4ee; color: #047857; }
.pzr-moves tfoot th { text-align: right; font-weight: 700; color: var(--pzr-muted); }
.pzr-moves tfoot td { text-align: right; padding-right: 0; font-weight: 800; white-space: nowrap; }
.pzr-note { margin: 8px 0 0; padding: 8px 10px; border-radius: 8px; background: var(--pzr-paper); border: 1px solid var(--pzr-line); font-size: 12.5px; }
.pzr-empty { margin: 6px 0; color: var(--pzr-muted); }
.pzr-sign, .pzr-printed { display: none; }
@media (max-width: 560px) {
  .pzr-head { grid-template-columns: auto minmax(0, 1fr); }
  .pzr-verdict { grid-column: 1 / -1; flex-direction: row; justify-content: space-between; align-items: baseline; }
  .pzr-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media print {
  .pzr { font-size: 11.5px; }
  .pzr-head, .pzr-kpis, .pzr-moves tr, .pzr-note { break-inside: avoid; }
  .pzr-sign { display: grid; grid-template-columns: 1fr 1fr; gap: 24mm; margin-top: 18mm; break-inside: avoid; }
  .pzr-sign div { padding-top: 5px; border-top: 1px solid var(--pzr-ink); font-size: 11px; color: var(--pzr-muted); }
  .pzr-printed { display: block; margin-top: 8mm; text-align: center; font-size: 10px; color: var(--pzr-muted); }
}

/* Menu → Catégories : case « Accompagnements » */
.pzg-cat-acc { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; color: #334155; font-weight: 600; cursor: pointer; white-space: nowrap; }
.pzg-cat-acc input { accent-color: #D8640F; width: 15px; height: 15px; }
.pzg-cat-acc-new { margin-top: 8px; }
.pzg-cat-list li { flex-wrap: wrap; }
