/* NOTIFICATIONS DE STOCK (notifications-stock.js) */

.nt-reglages {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.nt-bloc {
  padding: 14px;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  background: #fafbfc;
}

.nt-bloc h4 {
  margin: 0 0 6px;
  color: #1f3a68;
  font-size: 14.5px;
}

.nt-etat {
  margin: 8px 0;
  color: #6b7280;
  font-size: 13px;
  font-weight: 600;
}

.nt-etat.ok { color: #15803d; }
.nt-etat.ko { color: #b42318; }

.nt-case {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 6px 14px 6px 0;
  font-size: 13.5px;
  cursor: pointer;
}

.nt-case input {
  width: 17px;
  height: 17px;
}

.nt-grille {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 8px 0;
}

.nt-grille label,
.nt-champ {
  display: grid;
  gap: 4px;
  color: #374151;
  font-size: 12.5px;
  font-weight: 600;
}

.nt-champ {
  margin-top: 8px;
}

.nt-grille input,
.nt-grille select,
.nt-champ input {
  width: 100%;
  min-height: 38px;
  padding: 7px 10px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  background: #fff;
  font: inherit;
  font-size: 14px;
  font-weight: 400;
}

.nt-types {
  margin: 4px 0;
}

.nt-aide {
  margin-top: 12px;
  font-size: 13px;
}

.nt-aide summary {
  color: #2563eb;
  font-weight: 600;
  cursor: pointer;
}

.nt-aide ol {
  padding-left: 20px;
  line-height: 1.55;
}

.nt-aide li {
  margin-bottom: 6px;
}

.nt-code {
  width: 100%;
  margin: 6px 0;
  padding: 10px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  background: #0f172a;
  color: #e2e8f0;
  font-family: Consolas, "Courier New", monospace;
  font-size: 12px;
  line-height: 1.45;
  resize: vertical;
}

.nt-message {
  margin: 10px 0 0;
  color: #15803d;
  font-size: 13px;
  font-weight: 600;
}

.nt-message:empty { display: none; }
.nt-message.ko { color: #b42318; }

/* Messages dans l'application */
.nt-toasts {
  position: fixed;
  bottom: 16px;
  left: 16px;
  z-index: 9500;
  display: grid;
  gap: 8px;
  max-width: min(380px, calc(100vw - 32px));
}

.nt-toast {
  display: grid;
  gap: 4px;
  padding: 12px 14px;
  border-left: 4px solid #b42318;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(15, 23, 42, .2);
  font-size: 13.5px;
  animation: nt-entree .25s ease-out;
}

.nt-toast span {
  color: #4b5563;
}

.nt-toast-actions {
  display: flex;
  justify-content: space-between;
  margin-top: 4px;
}

.nt-toast-actions button {
  padding: 4px 8px;
  border: 0;
  border-radius: 6px;
  background: #eef2ff;
  color: #1f3a68;
  font: inherit;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
}

@keyframes nt-entree {
  from { opacity: 0; transform: translateY(10px); }
}

/* Ligne « Épuisé » dans la fenêtre des alertes */
.pa-table tr.pa-rupture td {
  background: #fee2e2;
}

@media (max-width: 560px) {
  .nt-grille {
    grid-template-columns: 1fr;
  }
}

/* Boutons et textes du panneau « Produits et stock » */
#pa-reglages .pa-option-hint {
  margin: 6px 0;
  color: #6b7280;
  font-size: 13px;
  line-height: 1.5;
}

#pa-reglages .pa-ligne {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
}

#pa-reglages button.invoice-settings-save,
#pa-reglages .pa-btn {
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid #1f3a68;
  border-radius: 8px;
  background: #1f3a68;
  color: #fff;
  font: inherit;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
}

#pa-reglages .pa-btn {
  border-color: #d1d5db;
  background: #fff;
  color: #1f2937;
}

#pa-reglages button:disabled {
  opacity: .6;
  cursor: wait;
}
