/* ==========================================================
   🧱 PICKERS COMMUNS — Acompte / Paiement / Type
   ========================================================== */


   /* =========================
   🎯 Picker dans une modale
   ========================= */
.picker-backdrop {
  position: fixed;          /* ✅ au lieu de absolute */
  inset: 0;
  width: 100vw;
  height: 100vh;

  background: rgba(0, 0, 0, 0.35);
  display: none;            /* ✅ conseillé : caché par défaut */
  align-items: center;
  justify-content: center;

  z-index: 999999;          /* ✅ au-dessus de ta méga-modale */
  backdrop-filter: blur(3px);
  animation: fadeIn .25s ease;
}

/* --- Container modal --- */
.picker-modal {
  background: var(--panel);
  color: var(--text);
  border-radius: var(--radius-lg, 12px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
  width: min(480px, 95%);
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform-origin: center;
  animation: slideUp .25s ease;
}

/* --- Headers --- */
.picker-modal h4 {
  font-size: 1.2rem;
  font-weight: 600;
  padding: 16px 20px;
  background: var(--panelElevated, var(--panel));
  border-bottom: 1px solid var(--bg);
  margin: 0;
}

/* --- Body --- */
.picker-body {
  padding: 18px 22px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* --- Form rows --- */
.picker-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.picker-row label {
  min-width: 120px;
  font-weight: 500;
  color: var(--textSoft);
}

.picker-select,
.picker-body input[type="text"],
.picker-body input[type="number"],
.picker-body select {
  flex: 1;
  padding: 8px 10px;
  border: 1px solid var(--bg);
  border-radius: var(--radius);
  background: var(--bg);
  color: var(--text);
}

/* --- Actions --- */
.picker-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 22px;
  border-top: 1px solid var(--bg);
  background: var(--panelElevated, var(--panel));
}

/* --- Pay options --- */
.pay-option {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
}

.pay-option input {
  transform: scale(1.1);
}

/* --- Grid spécifique type picker --- */
.type-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 12px;
}

.type-grid .type-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
  color: var(--text);
}
.type-grid .type-btn .lucide {
    color: var(--accent);

}
.type-grid .type-btn:hover {
  background: color-mix(in srgb, var(--accent) 20%, transparent);
  transform: translateY(-2px);
}



/* --- Animations --- */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideUp {
  from { transform: translateY(10px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* --- Responsive --- */
@media (max-width: 500px) {
  .picker-modal {
    width: 95%;
  }
  .picker-row {
    flex-direction: column;
    align-items: stretch;
  }
  .picker-row label {
    min-width: auto;
  }
}
