/* Velyx Management — styles du module moderation (modération, staff, serveur, administration).
   Variables et classes du socle uniquement : aucune couleur en dur. */

/* Filtres */
.vmm-filters { margin: 0; padding: 14px 18px; box-shadow: inset 0 -1px 0 var(--line); }
.vmm-filters input[type="number"], .vmm-filters input[type="text"] { padding-top: 8px; padding-bottom: 8px; font-size: 13px; }
.vmm-dates { display: inline-flex; align-items: center; gap: 6px; }
.vmm-dates input { width: auto; padding: 7px 12px; font-size: 12.5px; }

/* Cellules */
.vmm-clip { display: inline-block; max-width: 360px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; vertical-align: bottom; }
.vmm-pre { white-space: pre-wrap; overflow-wrap: anywhere; margin: 0; font-size: 13px; color: var(--ink-2); }
.vmm-pos { color: var(--accent-text); }
.vmm-neg { color: var(--danger); }
.vmm-swatch { width: 12px; height: 12px; display: inline-block; }

/* Avant / après */
.vmm-diff td { vertical-align: top; }
.vmm-diff .json-view { max-height: 220px; margin: 0; }
.vmm-diff tr.d-changed .d-before, .vmm-diff tr.d-removed .d-before { background: var(--danger-soft); }
.vmm-diff tr.d-changed .d-after, .vmm-diff tr.d-added .d-after { background: var(--accent-soft); }
.vmm-diff tr.d-same { opacity: .65; }

/* Permissions */
.vmm-locked { opacity: .6; }
.vmm-details > summary { list-style: none; cursor: pointer; }
.vmm-details > summary::-webkit-details-marker { display: none; }
.perm-group.vmm-details > summary > header { box-shadow: none; }
.perm-group.vmm-details[open] > summary > header { box-shadow: inset 0 -1px 0 var(--line); }
.vmm-details[open] > summary svg.ic:last-child { transform: rotate(180deg); }
.vmm-check { width: 22px; height: 22px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-text); }
.vmm-check svg.ic { width: 13px; height: 13px; }
.vmm-permid { font-size: 11px; }
.vmm-split { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 16px; align-items: start; }
.vmm-rolelist { display: grid; gap: 6px; }
.vmm-roleitem { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border: 0; background: var(--surface-2); color: var(--ink); cursor: pointer; font: inherit; text-align: left; }
.vmm-roleitem small { margin-left: auto; color: var(--muted); }
.vmm-roleitem svg.ic { width: 13px; height: 13px; color: var(--muted); }
.vmm-roleitem:hover { box-shadow: inset 0 0 0 1px rgba(var(--c-glass-rgb), .2); background: rgba(var(--c-glass-rgb), .07); }
.vmm-roleitem.on { background: var(--inv-brand); color: var(--inv-on-brand); }
.vmm-role-banner { height: 44px; }

/* Reports, anti-triche */
.vmm-chat .feed-item { padding: 10px 0; }
.vmm-shot { max-width: 100%; border: 0; display: block; }

/* Planning */
.vmm-planning { display: grid; }
.vmm-plan-row { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 16px; padding: 14px 18px; box-shadow: inset 0 -1px 0 var(--line); }
.vmm-plan-row:last-child { box-shadow: none; }
.vmm-plan-who { display: grid; gap: 4px; align-content: start; }
.vmm-plan-weeks { display: grid; gap: 10px; }
.vmm-week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; margin-top: 6px; }
.vmm-day { display: grid; gap: 4px; align-content: start; padding: 8px; background: var(--surface-2); border: 0; font-size: 12px; min-width: 0; }
.vmm-day small { color: var(--muted); font-family: var(--display); font-size: 10.5px; font-weight: 600; }
.vmm-slot { font-family: var(--mono); font-size: 11px; padding: 2px 6px; background: var(--accent-soft); color: var(--accent-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Statistiques */
.vmm-bar { display: grid; grid-template-columns: minmax(60px, 1fr) auto; gap: 8px; align-items: center; min-width: 120px; }
.vmm-bar i { display: block; height: 8px; background: var(--accent); min-width: 2px; }
.vmm-bar span { font-variant-numeric: tabular-nums; font-size: 12.5px; }

/* Base de données */
.vmm-sort { background: none; border: 0; padding: 0; font: inherit; color: inherit; cursor: pointer; display: inline-flex; align-items: center; gap: 4px; }
.vmm-sort.on { color: var(--accent-text); }
.vmm-sort:disabled { cursor: default; opacity: .6; }
.vmm-sort svg.ic { width: 12px; height: 12px; }
.vmm-rowkv { grid-template-columns: 180px minmax(0, 1fr); }
.vmm-rowkv dt { display: grid; gap: 2px; align-content: start; }
.vmm-rowkv dt small { font-size: 11px; }
details.card.vmm-details > summary.card-head { box-shadow: none; }
details.card.vmm-details[open] > summary.card-head { box-shadow: inset 0 -1px 0 var(--line); }

@media (max-width: 900px) {
  .vmm-split { grid-template-columns: 1fr; }
  .vmm-plan-row { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .vmm-week { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .vmm-clip { max-width: 200px; }
  .vmm-rowkv { grid-template-columns: 1fr; }
  .vmm-dates { flex-wrap: wrap; }
  .vmm-filters input[type="number"], .vmm-filters input[type="text"] { width: 100% !important; flex: 1 1 auto !important; }
}

/* Staff : fiche d'un membre (commentaires, actions fréquentes) et éditeur des permissions en jeu. */
.vmm-comments { display: grid; }
.vmm-comment { padding: 12px 16px; box-shadow: inset 0 -1px 0 var(--line); }
.vmm-comment:last-child { box-shadow: none; }
.vmm-bar-row { display: grid; grid-template-columns: minmax(0, 220px) minmax(0, 1fr); gap: 10px; align-items: center; padding: 4px 0; color: inherit; text-decoration: none; }
.vmm-bar-row .mono { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; }
@media (max-width: 560px) { .vmm-bar-row { grid-template-columns: 1fr; gap: 4px; } }
