/**
 * Homepage WIBON-sectie: miniatuur “Logboek”-preview (zelfde eventtypen als productie-logbook).
 * Tokens in lijn met static/css/tabs/compliance.css + variables.css (dashboard donker).
 */
#wibon-logbook-preview {
  --plp-border: #2a2a2a;
  --plp-bg: #121212;
  --plp-row: rgba(255, 255, 255, 0.03);
  --plp-dim: #9ca3af;
  --plp-muted: #6b7280;
  --plp-text: #e5e7eb;
  --plp-brand: #ccff00;
  --plp-rad: 10px; /* --compliance-radius */
  width: 100%;
  max-width: 480px;
  background: var(--plp-bg);
  border: 1px solid var(--plp-border);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.45);
}
#wibon-logbook-preview .plp-head {
  padding: 14px 16px 12px;
  border-bottom: 1px solid var(--plp-border);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  flex-shrink: 0;
}
#wibon-logbook-preview .plp-head h3 {
  margin: 0;
  font-size: 15px;
  font-weight: 800;
  color: #fff;
  font-family: "Work Sans", "Inter", sans-serif;
  letter-spacing: -0.02em;
  line-height: 1.2;
}
#wibon-logbook-preview .plp-head .plp-sub {
  font-size: 11px;
  color: var(--plp-dim);
  line-height: 1.4;
  margin-top: 4px;
  max-width: 280px;
  font-weight: 500;
}
#wibon-logbook-preview .plp-live {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 9px;
  font-weight: 800;
  color: var(--plp-brand);
  letter-spacing: 0.04em;
  text-transform: none;
  flex-shrink: 0;
  margin-top: 1px;
}
#wibon-logbook-preview .plp-live i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--plp-brand);
  box-shadow: 0 0 8px rgba(204, 255, 0, 0.55);
  animation: plp-pulse-dot 1.8s ease-in-out infinite;
}
@keyframes plp-pulse-dot {
  0%,
  100% {
    opacity: 0.4;
  }
  50% {
    opacity: 1;
  }
}
@media (prefers-reduced-motion: reduce) {
  #wibon-logbook-preview .plp-live i {
    animation: none;
    opacity: 1;
  }
  #wibon-logbook-preview .plp-row {
    animation: none;
  }
}
#wibon-logbook-preview .plp-log {
  padding: 10px 12px 12px;
  height: 380px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
#wibon-logbook-preview .plp-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 12px 11px;
  background: var(--plp-row);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--plp-rad);
  animation: plp-row-in 0.4s cubic-bezier(0.16, 1, 0.3, 1) both;
}
@keyframes plp-row-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
#wibon-logbook-preview .plp-row.plp-focus {
  box-shadow: inset 3px 0 0 0 rgba(250, 204, 21, 0.75);
}
#wibon-logbook-preview .plp-av {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(204, 255, 0, 0.1);
  border: 1px solid rgba(204, 255, 0, 0.2);
  color: var(--plp-brand);
  font-size: 10px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  line-height: 1;
}
#wibon-logbook-preview .plp-av.plp-av--sys {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.4);
  font-size: 8px;
  font-weight: 700;
}
#wibon-logbook-preview .plp-body {
  min-width: 0;
  flex: 1;
}
#wibon-logbook-preview .plp-name {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px;
  font-size: 12px;
  font-weight: 700;
  color: var(--plp-text);
  line-height: 1.25;
}
#wibon-logbook-preview .plp-gps {
  font-size: 7px;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: 4px;
  border: 1px solid var(--plp-border);
  color: var(--plp-dim);
  line-height: 1.2;
  text-transform: none;
  letter-spacing: 0.02em;
}
#wibon-logbook-preview .plp-gps i {
  font-size: 6px;
  margin-right: 2px;
  opacity: 0.8;
}
#wibon-logbook-preview .plp-line {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.5);
  margin-top: 4px;
  line-height: 1.45;
  font-weight: 500;
}
#wibon-logbook-preview .plp-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px 6px;
  margin-top: 6px;
  width: 100%;
  min-width: 0;
}
#wibon-logbook-preview .plp-typelabel {
  font-size: 9px;
  font-weight: 600;
  color: var(--plp-muted);
  letter-spacing: 0.01em;
  min-width: 0;
}
#wibon-logbook-preview .plp-mid {
  color: var(--plp-dim);
  font-size: 9px;
  opacity: 0.85;
  font-weight: 600;
}
#wibon-logbook-preview .plp-time {
  font-size: 10px;
  color: #5c5c5c;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  margin-left: auto;
}
#wibon-logbook-preview .plp-type-ic {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.38);
  width: 14px;
  text-align: center;
  flex-shrink: 0;
  line-height: 1.2;
  margin: 0;
  padding: 0;
}
#wibon-logbook-preview .plp-foot {
  padding: 8px 16px 11px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 10px;
  color: #5a5a5a;
  text-align: center;
  line-height: 1.35;
  font-weight: 500;
}
