/* =============================================
   AMAZOCA ADMIN — DETAIL PANEL (slide-in)
   ============================================= */
#panel-overlay {
  display: none;
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.22);
  z-index: 100;
  backdrop-filter: blur(2px);
}
#panel-overlay.open { display: block; }

#detail-panel {
  position: fixed;
  top: 0; right: -560px;
  width: 560px; height: 100vh;
  background: #fff;
  z-index: 101;
  display: flex; flex-direction: column;
  overflow: hidden;
  transition: right .28s cubic-bezier(.4,0,.2,1);
  box-shadow: var(--shadow-panel);
}
#detail-panel.open { right: 0; }

/* Header */
.dp-header {
  padding: 16px 20px;
  border-bottom: 0.5px solid var(--color-border-tertiary);
  display: flex; justify-content: space-between; align-items: flex-start;
  flex-shrink: 0; background: #fff;
}
.dp-title { font-size: 15px; font-weight: 600; color: var(--color-text-primary); }
.dp-sub   { font-size: 11px; color: var(--color-text-tertiary); margin-top: 3px; }
.dp-close {
  width: 30px; height: 30px; border-radius: 50%;
  border: none; background: var(--color-background-secondary);
  cursor: pointer; font-size: 18px; color: var(--color-text-secondary);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.dp-close:hover { background: var(--color-background-tertiary); }

/* Body */
.dp-body { flex: 1; overflow-y: auto; padding: 18px 20px; }

.dp-section { margin-bottom: 20px; }
.dp-section-title {
  font-size: 10px; font-weight: 600;
  text-transform: uppercase; letter-spacing: .8px;
  color: var(--color-text-tertiary); margin-bottom: 8px;
}
.dp-card  { background: var(--color-background-secondary); border-radius: 8px; padding: 14px; margin-bottom: 10px; }
.dp-field { display: flex; justify-content: space-between; align-items: center; padding: 5px 0; border-bottom: 0.5px solid rgba(0,0,0,0.05); font-size: 12px; }
.dp-field:last-child { border-bottom: none; }
.dp-label { color: var(--color-text-secondary); }
.dp-value { font-weight: 500; color: var(--color-text-primary); text-align: right; flex-shrink: 0; margin-left: 12px; }

/* Table inside panel */
.dp-table { width: 100%; border-collapse: collapse; font-size: 11px; }
.dp-table th { text-align: left; padding: 5px 0; color: var(--color-text-tertiary); font-weight: 500; font-size: 10px; text-transform: uppercase; letter-spacing: .5px; border-bottom: 0.5px solid var(--color-border-tertiary); }
.dp-table td { padding: 7px 0; color: var(--color-text-primary); border-bottom: 0.5px solid var(--color-border-tertiary); }
.dp-table tr:last-child td { border-bottom: none; }

/* Footer actions */
.dp-actions {
  padding: 14px 20px;
  border-top: 0.5px solid var(--color-border-tertiary);
  display: flex; gap: 8px; flex-shrink: 0;
  background: #fff; flex-wrap: wrap;
}
