/* Customer Activity redesigned toolbar + table (match group activity sizing) */
#customer-activity .ga-toolbar { position:relative; display:flex; justify-content:space-between; align-items:center; gap:18px; padding:12px 14px; border:1px solid var(--border-color); background:var(--panel-bg,#182229); border-radius:14px; box-shadow:0 4px 18px -6px rgba(0,0,0,.35); }
#customer-activity .ga-toolbar-left { display:flex; flex-wrap:wrap; align-items:center; gap:14px; }
#customer-activity .ga-toolbar-right { display:flex; flex-wrap:wrap; align-items:center; gap:12px; }
#customer-activity .ga-toolbar .btn, #customer-activity .ga-toolbar input.form-control, #customer-activity .ga-toolbar select.form-control { height:38px; font-size:.85rem; }
#customer-activity .ga-toolbar .btn.btn-compact { padding:6px 12px; height:38px; display:inline-flex; align-items:center; gap:6px; }
#customer-activity .ga-toolbar .input-with-icon { position:relative; }
#customer-activity .ga-toolbar .input-with-icon input { padding-right:30px; }
#customer-activity .ga-toolbar .input-with-icon i { position:absolute; right:10px; top:50%; transform:translateY(-50%); opacity:.55; }
#customer-activity #customer-activity-search { min-width:200px; }
#customer-activity #ca-numbers { min-width:260px; }
#customer-activity .badge { background:var(--input-bg-color); color:var(--text-color); border:1px solid var(--border-color); padding:6px 12px; border-radius:22px; font-size:.75rem; }
#customer-activity .ga-toolbar-actions .btn { background:var(--input-bg-color); border:1px solid var(--border-color); }
#customer-activity .ga-toolbar-actions .btn:hover { background:var(--hover-bg-color,#223037); }

/* Table styling */
#customer-activity .ga-table-wrap table { width:100%; border-collapse:separate; border-spacing:0; font-size:.82rem; }
#customer-activity .ga-table-wrap thead th { background:var(--card-bg,#1f2d33); position:sticky; top:0; z-index:5; font-weight:600; padding:10px 8px; }
#customer-activity .ga-table-wrap tbody td { padding:8px 8px; border-top:1px solid rgba(255,255,255,.04); }
#customer-activity .ga-table-wrap tbody tr:nth-child(even){ background:rgba(255,255,255,.02); }
#customer-activity .col-actions .gm-actions-cell { display:flex; gap:4px; }
#customer-activity .col-actions .btn { padding:4px 6px; height:30px; font-size:.7rem; }

/* Watchlist tags */
#gm-watchlist { margin:0; padding:0; }
#gm-watchlist .tag { background:linear-gradient(135deg,#128c7e,#075e54); color:#fff; padding:4px 10px; border-radius:14px; display:inline-flex; align-items:center; gap:6px; font-size:.7rem; }
#gm-watchlist .tag button { background:#fff; color:#075e54; border:none; border-radius:50%; width:18px; height:18px; display:inline-flex; align-items:center; justify-content:center; cursor:pointer; font-size:.65rem; }

/* Modal adjustments - remove backdrop dim, center perfectly, allow internal scrolling */
dialog#caWatchModal {
  width:min(640px,94vw);
  max-height:88vh;
  border:0; /* no outer shell */
  background:transparent; /* remove any outer background */
  color:var(--text-color);
  padding:0;
  /* center the dialog on screen */
  position:fixed;
  top:50%;
  left:50%;
  transform:translate(-50%, -50%);
  margin:0;
  overflow:visible; /* content will manage its own scroll */
}
dialog#caWatchModal::backdrop { background: transparent; } /* no page dim */
dialog#caWatchModal .center-modal-content {
  padding:18px 20px;
  background:var(--panel-bg,#182229); /* inner card background only */
  box-shadow:0 8px 28px -10px rgba(0,0,0,.55);
  border:1px solid var(--border-color);
  border-radius:16px;
  max-height:88vh;
  overflow:auto;
}
dialog#caWatchModal h3 { font-size:1.05rem; font-weight:600; }

@media (max-width:780px){
  #customer-activity .ga-toolbar { flex-direction:column; align-items:stretch; gap:10px; padding:10px 10px 12px; }
  #customer-activity .ga-toolbar-left, #customer-activity .ga-toolbar-right { width:100%; justify-content:flex-start; }
  #customer-activity #customer-activity-search { flex:1; min-width:0; }
  #customer-activity #ca-numbers { flex:1; min-width:0; }
  #customer-activity .ga-toolbar .btn.btn-compact { height:34px; }
  #customer-activity .ga-table-wrap thead th { font-size:.65rem; }
  #customer-activity .ga-table-wrap tbody td { font-size:.65rem; }
  /* ensure modal fits small screens */
  dialog#caWatchModal { width:min(560px,96vw); max-height:90vh; }
  dialog#caWatchModal .center-modal-content { max-height:90vh; }
}
