/* ===== Fiche d'appel — admin ===== */
.appel-layout {
  display: grid;
  grid-template-columns: minmax(240px, 300px) minmax(0, 1fr);
  gap: 16px;
  flex: 1;
  height: 100%;
  min-height: 0;
}

.appel-sidebar {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 16px;
  border-radius: 16px;
  border: 1px solid rgba(224, 177, 35, 0.22);
  background:
    radial-gradient(120% 80% at 0% 0%, rgba(224, 177, 35, 0.12), transparent 55%),
    rgba(0, 0, 0, 0.28);
}

.appel-sidebar .field span {
  display: block;
  margin-bottom: 6px;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.appel-sidebar select {
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(8, 12, 20, 0.9);
  color: #fff;
  font: inherit;
}

.appel-event-meta {
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(59, 130, 246, 0.35);
  background: linear-gradient(160deg, rgba(59, 130, 246, 0.18), rgba(20, 30, 50, 0.5));
}

.appel-event-meta strong {
  display: block;
  margin-bottom: 4px;
  font-family: var(--font-display);
  letter-spacing: 0.03em;
}

.appel-event-meta span {
  color: var(--muted);
  font-size: 0.9rem;
}

.appel-hint {
  margin: 0;
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.4;
}

.appel-main {
  display: flex;
  flex-direction: column;
  min-height: 0;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent 40%),
    rgba(0, 0, 0, 0.22);
  overflow: hidden;
}

.appel-main[hidden],
.appel-empty[hidden],
.appel-event-meta[hidden] {
  display: none !important;
}

.appel-empty {
  display: grid;
  place-items: center;
  padding: 40px 24px;
  border-radius: 16px;
  border: 1px dashed rgba(255, 255, 255, 0.14);
  color: var(--muted);
  text-align: center;
}

.appel-table-wrap {
  flex: 1;
  min-height: 0;
  overflow: auto;
  display: flex;
  flex-direction: column;
}

.appel-table-head,
.appel-row {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) 110px 150px;
  align-items: center;
  gap: 8px;
  padding: 0 16px;
}

.appel-table-head {
  position: sticky;
  top: 0;
  z-index: 2;
  min-height: 52px;
  border-bottom: 1px solid rgba(224, 177, 35, 0.28);
  background: linear-gradient(180deg, rgba(28, 24, 14, 0.98), rgba(18, 16, 12, 0.96));
  font-family: var(--font-display);
  letter-spacing: 0.05em;
  font-size: 0.78rem;
  text-transform: uppercase;
  color: #f0d78a;
}

.appel-col-ret {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
}

.appel-col-ret em {
  font-style: normal;
  font-family: var(--font-body, inherit);
  font-size: 0.68rem;
  letter-spacing: 0.02em;
  text-transform: none;
  color: var(--muted);
  font-weight: 600;
}

.appel-table-body {
  flex: 1;
}

.appel-row {
  min-height: 58px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: background 0.15s ease;
}

.appel-row:hover {
  background: rgba(224, 177, 35, 0.05);
}

.appel-row.is-absent {
  background: linear-gradient(90deg, rgba(229, 80, 70, 0.16), transparent 70%);
}

.appel-row.is-late {
  background: linear-gradient(90deg, rgba(224, 177, 35, 0.12), transparent 70%);
}

.appel-person {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.appel-avatar {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.12);
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.06);
}

.appel-avatar.is-fallback {
  display: grid;
  place-items: center;
  font-size: 0.72rem;
  font-weight: 800;
  color: #e0b123;
}

.appel-person strong {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.appel-person span {
  display: block;
  font-size: 0.82rem;
  color: var(--muted);
}

.appel-abs-toggle {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.04);
  color: transparent;
  cursor: pointer;
  font-size: 1.1rem;
  font-weight: 800;
  transition: 0.15s ease;
}

.appel-abs-toggle.is-on {
  color: #fff;
  background: linear-gradient(160deg, rgba(229, 80, 70, 0.95), rgba(150, 30, 40, 0.95));
  border-color: rgba(255, 180, 170, 0.45);
  box-shadow: 0 8px 18px rgba(229, 80, 70, 0.28);
}

.appel-abs-toggle:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.appel-retard-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
}

.appel-retard-wrap input {
  width: 64px;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(8, 12, 20, 0.85);
  color: #fff;
  font: inherit;
  font-weight: 700;
  text-align: center;
}

.appel-retard-wrap input:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.appel-retard-wrap input:focus {
  outline: none;
  border-color: rgba(224, 177, 35, 0.55);
  box-shadow: 0 0 0 3px rgba(224, 177, 35, 0.15);
}

.appel-retard-wrap em {
  font-style: normal;
  font-size: 0.78rem;
  color: var(--muted);
  font-weight: 600;
}

.appel-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.28);
}

.appel-done {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-weight: 700;
  user-select: none;
}

.appel-done input {
  width: 18px;
  height: 18px;
  accent-color: #e0b123;
}

.appel-summary {
  margin: 0;
  flex: 1;
  min-width: 160px;
  color: var(--muted);
  font-size: 0.92rem;
}

.appel-badge {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: rgba(229, 80, 70, 0.2);
  color: #ff9a92;
  border: 1px solid rgba(229, 80, 70, 0.35);
}

@media (max-width: 980px) {
  .appel-layout {
    grid-template-columns: 1fr;
  }

  .appel-table-head,
  .appel-row {
    grid-template-columns: minmax(0, 1fr) 90px 130px;
    padding: 0 12px;
  }
}
