/* ============================================
   SubTracker - Slide Panel
   ============================================ */

.slide-panel-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.3);
  z-index: 500;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-normal);
}

.slide-panel-overlay.visible {
  opacity: 1;
  pointer-events: all;
}

.slide-panel {
  position: fixed;
  top: 0;
  right: 0;
  width: 480px;
  max-width: 90vw;
  height: 100vh;
  background: var(--bg-secondary);
  box-shadow: -4px 0 20px rgba(0, 0, 0, 0.1);
  z-index: 501;
  transform: translateX(100%);
  transition: transform var(--transition-normal);
  overflow-y: auto;
}

.slide-panel.open {
  transform: translateX(0);
}

.slide-panel-content {
  padding: 0;
}

.slide-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  background: var(--bg-secondary);
  z-index: 1;
}

.slide-panel-title {
  font-size: 1.1rem;
  font-weight: 700;
}

.slide-panel-close {
  font-size: 1.5rem;
  color: var(--text-muted);
  cursor: pointer;
  line-height: 1;
  background: none;
  border: none;
}

.slide-panel-body {
  padding: 1.5rem;
}

.slide-panel-section {
  margin-bottom: 1.5rem;
}

.slide-panel-section-title {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.slide-panel-footer {
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--border-color);
  display: flex;
  gap: 0.75rem;
  justify-content: flex-end;
  position: sticky;
  bottom: 0;
  background: var(--bg-secondary);
}

/* Detail fields */
.detail-field {
  margin-bottom: 0.75rem;
}

.detail-field-label {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-bottom: 0.2rem;
}

.detail-field-value {
  font-size: 0.9rem;
  color: var(--text-primary);
}

.detail-field-value.amount {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--accent-primary);
}

.detail-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

/* Status timeline */
.status-timeline {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.status-timeline .badge {
  cursor: pointer;
  opacity: 0.5;
  transition: opacity var(--transition-fast);
}

.status-timeline .badge.current {
  opacity: 1;
  box-shadow: 0 0 0 2px var(--bg-secondary), 0 0 0 4px currentColor;
}

.status-timeline .badge:hover {
  opacity: 1;
}
