.vollie-matrix-card {
  cursor: pointer;
  transition:
    border-color 0.16s ease,
    box-shadow 0.16s ease,
    transform 0.16s ease;
}

.vollie-matrix-card:hover {
  border-color: var(--brand-mid);
  box-shadow: 0 10px 24px rgba(16, 42, 67, 0.12);
  transform: translateY(-1px);
}

.vollie-matrix-card:focus-visible {
  border-color: var(--brand-mid);
  outline: 3px solid rgba(40, 104, 163, 0.18);
  outline-offset: 2px;
}

.vollie-detail-overlay {
  position: fixed;
  inset: 0;
  z-index: 1100;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(16, 42, 67, 0.58);
  backdrop-filter: blur(4px);
}

.vollie-detail-overlay[hidden] {
  display: none;
}

.vollie-detail-panel {
  width: min(720px, 100%);
  max-height: min(860px, calc(100vh - 36px));
  overflow-y: auto;
  border: 1px solid var(--line);
  border-radius: 26px;
  padding: 24px;
  background: var(--card);
  box-shadow: 0 28px 80px rgba(16, 42, 67, 0.32);
}

.vollie-detail-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.vollie-detail-header h2 {
  margin-bottom: 5px;
  font-size: clamp(1.8rem, 5vw, 2.5rem);
  letter-spacing: -0.04em;
}

.vollie-detail-full-name {
  margin-bottom: 0;
  color: var(--muted);
  font-weight: 700;
  line-height: 1.4;
}

.vollie-detail-status-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.vollie-detail-contact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}

.vollie-detail-contact-grid section {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px;
  background: var(--brand-soft);
}

.vollie-detail-contact-grid span {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 800;
}

.vollie-detail-contact-grid strong {
  display: block;
  min-width: 0;
  overflow-wrap: anywhere;
  color: var(--brand);
  font-size: 0.95rem;
  line-height: 1.4;
}

.vollie-detail-section {
  margin-top: 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 17px;
  background: #f7fbff;
}

.vollie-detail-section h3 {
  margin-bottom: 9px;
  font-size: 1rem;
}

.vollie-detail-section > p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.55;
  overflow-wrap: anywhere;
  white-space: pre-line;
}

.vollie-detail-section-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.vollie-detail-section-heading h3 {
  margin-bottom: 0;
}

.vollie-detail-section-heading > span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  white-space: nowrap;
}

.vollie-detail-jobs {
  display: grid;
  gap: 9px;
}

.vollie-detail-job {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 13px;
  background: #ffffff;
}

.vollie-detail-job > div:first-child {
  min-width: 0;
}

.vollie-detail-job h4 {
  margin-bottom: 4px;
  overflow-wrap: anywhere;
  font-size: 0.95rem;
}

.vollie-detail-job p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.4;
}

.vollie-detail-job-roles {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 6px;
}

.vollie-detail-job-roles span {
  border-radius: 999px;
  padding: 6px 9px;
  background: var(--brand-soft);
  color: var(--brand);
  font-size: 0.72rem;
  font-weight: 800;
  white-space: nowrap;
}

.vollie-detail-empty {
  margin-bottom: 0;
  border: 1px dashed var(--line);
  border-radius: 14px;
  padding: 18px;
  color: var(--muted);
  text-align: center;
}

@media (max-width: 680px) {
  .vollie-detail-overlay {
    align-items: end;
    padding: 0;
  }

  .vollie-detail-panel {
    width: 100%;
    max-height: 94vh;
    border-radius: 24px 24px 0 0;
    padding: 20px;
  }

  .vollie-detail-contact-grid {
    grid-template-columns: 1fr;
  }

  .vollie-detail-job {
    align-items: flex-start;
    flex-direction: column;
  }

  .vollie-detail-job-roles {
    justify-content: flex-start;
  }
}

@media (max-width: 440px) {
  .vollie-detail-header {
    gap: 10px;
  }

  .vollie-detail-section-heading {
    flex-direction: column;
    gap: 5px;
  }

  .vollie-detail-section-heading > span {
    white-space: normal;
  }
}

.vollie-edit-overlay {
  z-index: 1200;
}