/* SIG-FDSU RDC — PWA OFFLINE TERRAIN (chantier P3.2). Préfixe `.pwa-*`
   dédié — réutilise sciemment les classes déjà définies par
   `field-forms.css` (`.ff-badge`/`.ff-error`/`.ff-empty`/`.ff-dialog-note`/
   `.ff-dialog-actions`/`secondary-button`) pour rester visuellement
   cohérent SANS dupliquer de règles. */

.pwa-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  margin-bottom: 12px;
  border: 1px solid rgba(148, 163, 184, 0.3);
  border-radius: var(--radius-md, 16px);
  background: var(--surface-soft, #17233b);
  font-size: 0.82rem;
}

.pwa-bar-net {
  font-weight: 600;
}

.pwa-bar-sync {
  color: var(--text-muted, #94a3b8);
  cursor: pointer;
  text-decoration: underline dotted;
}

.pwa-panel {
  margin-bottom: 14px;
  padding: 10px 14px;
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-radius: var(--radius-md, 16px);
  background: var(--surface, #111827);
}

.pwa-task-list {
  list-style: none;
  margin: 6px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.pwa-task-list li {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.pwa-pack-list {
  list-style: none;
  margin: 6px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pwa-pack-list li {
  border-top: 1px solid rgba(148, 163, 184, 0.15);
  padding-top: 8px;
}

.pwa-conflict {
  border: 1px solid rgba(248, 113, 113, 0.4);
  border-radius: var(--radius-sm, 12px);
  padding: 8px 10px;
  margin-bottom: 10px;
}

/* Mission / Affectation — correction finale P3.2 : toujours visible,
   jamais derrière un clic, structurellement distincte du panneau
   technique repliable (`.pwa-panel`). */
.pwa-assignments {
  margin-bottom: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pwa-assignments h4 {
  margin: 0;
}

.pwa-assignment-card {
  padding: 10px 14px;
  border: 1px solid rgba(148, 163, 184, 0.3);
  border-radius: var(--radius-md, 16px);
  background: var(--surface-soft, #17233b);
}

@media (max-width: 480px) {
  .pwa-bar {
    flex-direction: column;
    align-items: stretch;
  }
  .pwa-bar button {
    width: 100%;
  }
  .pwa-assignment-card .ff-dialog-actions {
    flex-direction: column;
  }
  .pwa-assignment-card .ff-dialog-actions button {
    width: 100%;
  }
}
