.customer-context { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 20px 30px 0; padding: 14px 18px; background: #edf3f0; border: 1px solid var(--border); border-radius: 10px; }
.customer-context[hidden], body.auth-locked .customer-context { display: none; }
.customer-context > div { min-width: 0; overflow-wrap: anywhere; }
.customer-context strong, .customer-context span { display: block; }
.customer-context span { font-size: 12px; color: var(--muted); }
.customer-context button { flex: none; }
.customer-peek { position: fixed; inset: 0 0 0 auto; margin: 0; width: min(980px, 90vw); max-width: 100vw; height: 100dvh; max-height: 100dvh; padding: 0; border: 0; background: var(--bg); color: var(--text); box-shadow: -12px 0 50px #102a2826; }
.customer-peek[open] { display: flex; flex-direction: column; }
.customer-peek::backdrop { background: #102a2855; }
.customer-peek-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 24px; background: var(--surface); border-bottom: 1px solid var(--border); flex: none; }
.customer-peek-head h2 { margin: 0; font-size: 20px; }
.customer-peek-head p { margin: 4px 0 0; font-size: 12px; color: var(--muted); }
.customer-peek-body { overflow: auto; overscroll-behavior: contain; padding: 24px; min-height: 0; }
.customer-peek .customer-tabs { position: static; }
.customer-peek .customer-detail-header { margin-top: 0; }
.customer-peek .detail-list strong, .sales-customer-details .detail-list strong { white-space: pre-wrap; overflow-wrap: anywhere; }
.customer-peek .customer-overview-grid { grid-template-columns: 1fr; }
@media (max-width: 820px) {
  .customer-context { margin: 14px 18px 0; flex-wrap: wrap; }
  .customer-peek { width: 100vw; }
  .customer-peek-head, .customer-peek-body { padding: 16px; }
  .customer-peek-head button { flex: none; }
}
@media print { .customer-context, .customer-peek { display: none !important; } }
