/* Shared premium filter / action bar — restyles every `.toolbar` (and the vault's
   `.sk-toolbar`) the same way as the vault Movements bar: one floating card, 42px
   fill-style controls, ghost secondary buttons, solid brand primary button.
   Loaded AFTER each page's own stylesheet; uses the shared design tokens (with
   fallbacks so it never depends on a page defining them).
   Excluded: the statement toolbar and centered pager rows. */
.toolbar:not(.stmt-toolbar):not([style*="justify-content:center"]),
.sk-toolbar{
  display:flex;align-items:center;gap:8px;flex-wrap:wrap;
  background:var(--card,#fff);border:1px solid var(--line,#e7e3da);border-radius:16px;
  padding:8px;margin-bottom:14px;
  box-shadow:0 1px 2px rgba(31,36,48,.04),0 6px 18px rgba(31,36,48,.05);
}
.toolbar:not(.stmt-toolbar) > .grow,.sk-toolbar > .grow{flex:1 1 200px;min-width:170px;}

/* fields */
.toolbar:not(.stmt-toolbar) input:not([type=checkbox]):not([type=radio]),
.toolbar:not(.stmt-toolbar) select,
.sk-toolbar input:not([type=checkbox]):not([type=radio]),
.sk-toolbar select{
  height:42px;padding:0 12px;border:1px solid transparent;border-radius:11px;
  background-color:var(--bg,#f6f5f1);color:var(--ink,#1f2430);font-size:13px;
  transition:border-color .15s,background-color .15s,box-shadow .15s;
}
.toolbar:not(.stmt-toolbar) input:hover,.toolbar:not(.stmt-toolbar) select:hover,
.sk-toolbar input:hover,.sk-toolbar select:hover{border-color:var(--line,#e7e3da);}
.toolbar:not(.stmt-toolbar) input:focus,.toolbar:not(.stmt-toolbar) select:focus,
.sk-toolbar input:focus,.sk-toolbar select:focus{
  outline:0;background-color:#fff;border-color:var(--brand,#ff6b35);box-shadow:0 0 0 3px var(--brand-soft,#fff1ec);
}
.toolbar:not(.stmt-toolbar) select,.sk-toolbar select{
  appearance:none;-webkit-appearance:none;padding:0 12px 0 30px;cursor:pointer;font-weight:600;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%236b7280' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat:no-repeat;background-position:left 11px center;
}
.toolbar:not(.stmt-toolbar) label.muted,.sk-toolbar label.muted{font-size:12px;font-weight:600;color:var(--muted,#6b7280);padding:0 2px;}

/* buttons — secondary = ghost, primary = solid brand */
.toolbar:not(.stmt-toolbar) .btn,.sk-toolbar .btn{
  height:42px;padding:0 14px;border-radius:11px;font-size:13px;font-weight:600;
  display:inline-flex;align-items:center;justify-content:center;gap:7px;white-space:nowrap;
  background:transparent;border:1px solid transparent;color:var(--muted,#6b7280);box-shadow:none;
  transition:background .15s,color .15s,border-color .15s;
}
.toolbar:not(.stmt-toolbar) .btn:hover,.sk-toolbar .btn:hover{background:var(--brand-soft,#fff1ec);color:var(--brand-dark,#b8431a);}
.toolbar:not(.stmt-toolbar) .btn-primary,.sk-toolbar .btn-primary{
  background:var(--brand,#ff6b35);color:#fff;box-shadow:0 1px 2px rgba(184,67,26,.25);
}
.toolbar:not(.stmt-toolbar) .btn-primary:hover,.sk-toolbar .btn-primary:hover{background:var(--brand-dark,#b8431a);color:#fff;}
.toolbar:not(.stmt-toolbar) .btn-danger,.sk-toolbar .btn-danger{color:var(--danger,#dc2626);}
.toolbar:not(.stmt-toolbar) .btn-danger:hover{background:var(--danger-soft,#fdecec);color:var(--danger,#dc2626);}

/* title blocks inside a bar */
.toolbar:not(.stmt-toolbar) .section-title,.toolbar:not(.stmt-toolbar) .rcv-month-title{padding:0 8px;}
.sk-toolbar-sp{flex:1;}

@media (max-width:640px){
  .toolbar:not(.stmt-toolbar),.sk-toolbar{padding:8px;}
  .toolbar:not(.stmt-toolbar) .btn{flex:1 1 calc(50% - 4px);}
}
