/* ============================================================================
   Wellness Detail Panel
   Prefix: wdp-
   Right slide-in panel showing the per-metric breakdown of what an athlete
   has shared for a given day. Athlete instance exposes per-metric share
   toggles; coach instance is read-only.
   Mirrors the structure of athlete-workout-detail-panel.css (apd-) so the
   two slide-ins feel consistent.
============================================================================ */

.wdp-overlay {
  position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.3);
  z-index: 990; opacity: 0; pointer-events: none;
  transition: opacity 0.2s ease;
}
.wdp-overlay.visible { opacity: 1; pointer-events: auto; }

.wdp-panel {
  position: fixed; top: 0; right: 0; bottom: 0;
  width: 520px; max-width: 100vw;
  background: #fff;
  border-left: 0.5px solid #e0e0dc;
  z-index: 1000;
  transform: translateX(100%);
  transition: transform 0.25s ease;
  display: flex; flex-direction: column;
}
.wdp-panel.open { transform: translateX(0); }

@media (max-width: 480px) {
  .wdp-panel { width: 100vw; }
}

.wdp-hdr {
  padding: 12px 18px;
  background: #1a2332;
  display: flex; justify-content: space-between; align-items: center;
  flex-shrink: 0;
}
.wdp-hdr-title { font-size: 14px; font-weight: 500; color: #fff; }
.wdp-close {
  background: none; border: none; cursor: pointer;
  font-size: 22px; color: #94a3b8; line-height: 1; padding: 0;
}
.wdp-close:hover { color: #fff; }

.wdp-body {
  flex: 1; overflow-y: auto; padding: 16px 18px; background: #f5f5f3;
}

.wdp-card {
  background: #fff; border: 0.5px solid #e0e0dc;
  padding: 14px 16px; margin-bottom: 10px;
}
.wdp-card-label {
  font-size: 10px; font-weight: 500; color: #999;
  text-transform: uppercase; letter-spacing: 0.07em;
  margin-bottom: 10px;
}

.wdp-row {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 0.5px solid #f0f0ee;
}
.wdp-row:last-child { border-bottom: none; }
.wdp-row-main { flex: 1; min-width: 0; }
.wdp-row-label { font-size: 12px; font-weight: 500; color: #1a1a18; }
.wdp-row-val { font-size: 13px; color: #1a1a18; margin-top: 2px; }
.wdp-row-note {
  font-size: 11px; color: #666; margin-top: 4px; font-style: italic;
  line-height: 1.4;
}

/* Share toggle pill (athlete) */
.wdp-share {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 8px;
  border: 0.5px solid #ccc;
  cursor: pointer;
  font-size: 10px;
  color: #666;
  background: #fff;
  flex-shrink: 0;
  user-select: none;
}
.wdp-share[data-disabled="1"] { cursor: default; opacity: 0.6; }
.wdp-share-dot {
  width: 8px; height: 8px;
  background: #ccc;
  display: inline-block;
}
.wdp-share.on { background: #E1F5EE; border-color: #14b8a6; color: #085041; }
.wdp-share.on .wdp-share-dot { background: #14b8a6; }
.wdp-share.busy { opacity: 0.5; pointer-events: none; }

/* Read-only sharing badge (coach) */
.wdp-share-badge {
  display: inline-flex; align-items: center;
  padding: 3px 7px;
  background: #E1F5EE; color: #085041;
  font-size: 10px; font-weight: 500;
  flex-shrink: 0;
}

.wdp-empty {
  padding: 24px; text-align: center; font-size: 12px; color: #999;
}
