/* Filtros compartilhados: a listagem permanece livre no topo. */
.page-heading-actions { display:flex; align-items:center; gap:12px; flex-shrink:0; }
.page-heading-actions .button { white-space:nowrap; }
.filter-trigger { position:relative; width:42px; height:42px; border-radius:10px; background:var(--surface); border:1px solid var(--border); flex-shrink:0; }
.filter-trigger:hover,.filter-trigger.has-filters { color:var(--primary); background:var(--primary-soft); }
.filter-count { position:absolute; top:-5px; right:-5px; display:grid; place-items:center; min-width:17px; height:17px; padding:0 4px; border-radius:20px; color:#fff; background:#0061fe; font-size:11px; line-height:1; }
.collection-toolbar { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom:18px; }
.collection-toolbar .clients-result-count { margin:0; }
.collection-result-count { color:var(--muted); font-size:13px; margin:0 0 18px; }
dialog.filter-drawer { position:fixed; inset:0 0 0 auto; margin:0; width:400px; max-width:100vw; height:100dvh; max-height:100dvh; padding:0; border:0; border-radius:0; overflow:hidden; box-shadow:-12px 0 50px rgba(0,18,43,.12); }
dialog.filter-drawer[open] { display:flex; flex-direction:column; }
dialog.filter-drawer::backdrop { background:rgba(0,18,43,.3); backdrop-filter:none; }
.filter-drawer-heading { display:flex; justify-content:space-between; align-items:flex-start; gap:16px; padding:26px 24px 20px; border-bottom:1px solid var(--border); flex-shrink:0; }
.filter-drawer-heading h2 { margin:0 0 7px; font-size:21px; letter-spacing:-.4px; }
.filter-drawer-heading p { margin:0; color:var(--muted); font-size:13px; line-height:1.6; }
dialog.filter-drawer form.filter-form { display:flex; flex-direction:column; flex:1; min-height:0; width:100%; margin:0; padding:0; border:0; border-radius:0; gap:0; background:transparent; }
.filter-fields { display:grid; grid-template-columns:minmax(0,1fr); gap:20px; align-content:start; overflow-y:auto; overscroll-behavior:contain; padding:24px; flex:1; min-height:0; }
.filter-drawer .filter-fields label { display:flex; flex-direction:column; gap:9px; margin:0; min-width:0; font-size:13px; }
.filter-drawer .filter-fields input,.filter-drawer .filter-fields select { width:100%; min-width:0; max-width:100%; font-size:15px; }
.filter-drawer .input-icon { min-width:0; width:100%; }
.filter-drawer .personal-filter-note { margin:0; font-size:13px; color:var(--muted); line-height:1.6; }
.filter-drawer-actions { display:flex; align-items:center; justify-content:space-between; flex-shrink:0; gap:16px; padding:18px 24px max(18px,env(safe-area-inset-bottom)); border-top:1px solid var(--border); background:var(--surface); }
.filter-drawer-actions .clear-filter { font-size:13px; }
.filter-drawer-actions .button { font-size:13px; }
body.filters-visible { overflow:hidden; }
@media (max-width:760px) {
  .page-heading-actions { gap:8px; margin-top:12px; }
  .page-heading-actions>.button { width:39px; height:39px; min-height:39px; padding:10px; font-size:0; }
  .page-heading-actions>.button .icon { width:18px; height:18px; }
  .filter-trigger { width:39px; height:39px; }
  .filter-drawer-heading { padding:24px 20px 18px; }
  .filter-fields { padding:22px 20px; }
  .filter-drawer-actions { padding-left:20px; padding-right:20px; }
}
@media (prefers-reduced-motion:no-preference) {
  dialog.filter-drawer[open] { animation:filter-drawer-in .18s ease-out; }
  @keyframes filter-drawer-in { from { transform:translateX(100%); } to { transform:translateX(0); } }
}
