/* =========================================================================
   views/dashboard-customize.css — Customize dashboard panel (right-side drawer)
   Split from the old monolithic styles/views.css. LOAD ORDER MATTERS:
   the <link> order in Magnet CRM.html / Client App.html reproduces the
   original file order, so the cascade is unchanged — add new rules to the
   matching feature file, not the end of the list.
   ========================================================================= */
/* ===== Customize dashboard panel (right-side drawer) ===== */
.dashcust-scrim { position: fixed; inset: 0; z-index: 1000; background: rgba(8, 8, 12, .32); opacity: 0; transition: opacity var(--dur) var(--ease); -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px); }
.dashcust-scrim.show { opacity: 1; }
.dashcust { position: fixed; top: 0; right: 0; z-index: 1001; height: 100%; width: 380px; max-width: 92vw; display: flex; flex-direction: column; background: var(--surface); border-left: 1px solid var(--border); box-shadow: var(--shadow-lg); transform: translateX(100%); transition: transform 260ms var(--ease); }
.dashcust.show { transform: none; }
.dashcust-head { display: flex; align-items: flex-start; gap: var(--space-3); padding: var(--space-5) var(--space-5) var(--space-4); border-bottom: 1px solid var(--border-faint); }
.dashcust-head-text { flex: 1; min-width: 0; }
.dashcust-title { font-size: var(--text-lg); font-weight: var(--fw-bold); color: var(--text-strong); }
.dashcust-sub { font-size: var(--text-sm); color: var(--text-soft); margin-top: 2px; }
.dashcust-close { flex-shrink: 0; color: var(--text-soft); }
.dashcust-body { flex: 1; overflow-y: auto; padding: var(--space-3) var(--space-5) var(--space-5); }
.dashcust-group-label { font-size: var(--text-xs); font-weight: var(--fw-bold); letter-spacing: .05em; text-transform: uppercase; color: var(--text-soft); padding: var(--space-4) 0 var(--space-2); }
.dashcust-list { display: flex; flex-direction: column; gap: 6px; }
.dashcust-row { display: flex; align-items: center; gap: var(--space-3); padding: 10px; border: 1px solid var(--border-faint); border-radius: var(--radius-md); background: var(--surface); cursor: grab; transition: border-color var(--dur-fast) var(--ease), background var(--dur-fast) var(--ease), opacity var(--dur-fast) var(--ease); }
.dashcust-row:hover { border-color: var(--border); background: var(--gray-25); }
.dashcust-row.dragging { opacity: .5; cursor: grabbing; border-color: var(--primary-400); box-shadow: var(--shadow-md); }
.dashcust-row.is-off { opacity: .5; }
.dashcust-grip { display: inline-flex; color: var(--text-soft); cursor: grab; }
.dashcust-grip svg { width: 16px; height: 16px; }
.dashcust-ico { display: inline-flex; color: var(--text-muted); flex-shrink: 0; }
.dashcust-ico svg { width: 18px; height: 18px; }
.dashcust-label { flex: 1; min-width: 0; font-size: var(--text-sm); font-weight: var(--fw-medium); color: var(--text-strong); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dashcust-row .stoggle { flex-shrink: 0; border: 0; padding: 0; margin: 0; }
.dashcust-foot { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); padding: var(--space-4) var(--space-5); border-top: 1px solid var(--border-faint); }
@media (max-width: 640px) { .dashcust { width: 100%; max-width: 100%; } }
