/* Viscose v3.9 — Filters bar (one per list page) */
.f39-hide{ display:none !important; }
.f39-bar{ margin:12px 0 10px; border:1px solid var(--line,var(--line,#E1E6DD)); background:var(--surface,#fff); border-radius:12px; padding:8px 10px; box-shadow:var(--shadow); }
.f39-top{ display:flex; align-items:center; flex-wrap:wrap; gap:6px 8px; min-height:32px; }
.f39-toggle{ display:inline-flex; align-items:center; gap:4px; font-weight:600; }
.f39-toggle .f39-ic{ display:inline-block; transform:rotate(-45deg); font-size:15px; line-height:1; }
.f39-toggle.on{ border-color:var(--accent,var(--accent,#4E7A12)); color:var(--accent-deep,var(--accent-deep,#2F4D07)); background:var(--accent-soft,var(--accent-soft,#EEF6DD)); }
.f39-n{ display:inline-block; min-width:18px; height:18px; line-height:18px; padding:0 5px; border-radius:9px; background:var(--accent,var(--accent,#4E7A12)); color:#fff; font-size:11px; text-align:center; }
.f39-chips{ display:contents; }
.f39-chip{ display:inline-flex; align-items:center; gap:4px; max-width:100%; border:1px solid var(--accent-line,#C9E09A); background:var(--accent-soft,var(--accent-soft,#EEF6DD)); color:var(--accent-deep,var(--accent-deep,#2F4D07)); border-radius:999px; padding:4px 6px 4px 10px; font:inherit; font-size:12.5px; cursor:pointer; line-height:1.2; }
.f39-chip .f39-cl{ color:var(--sub,var(--sub,#5E6B66)); }
.f39-chip .f39-cl::after{ content:":"; }
.f39-chip .f39-cv{ font-weight:600; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; max-width:180px; }
.f39-chip b{ display:inline-flex; align-items:center; justify-content:center; width:18px; height:18px; border-radius:50%; background:rgba(var(--accent-rgb,78,122,18),.12); font-size:13px; line-height:1; }
.f39-chip:hover b, .f39-chip:focus-visible b{ background:var(--accent,var(--accent,#4E7A12)); color:#fff; }
.f39-clear{ border:0; background:none; color:var(--rust,#B42318); font:inherit; font-size:12.5px; font-weight:600; cursor:pointer; padding:4px 6px; border-radius:6px; text-decoration:underline; }
.f39-count{ margin-left:auto; color:var(--sub,var(--sub,#5E6B66)); font-size:12.5px; white-space:nowrap; }
.f39-count.on{ color:var(--ink,#1F1E1D); font-weight:600; }
.f39-panel{ display:grid; grid-template-columns:repeat(auto-fill, minmax(170px, 1fr)); gap:10px 12px; margin-top:10px; padding-top:10px; border-top:1px dashed var(--line-strong,var(--line-strong,#CDD5C8)); }
.f39-panel[hidden]{ display:none; }
.f39-f{ display:flex; flex-direction:column; gap:4px; min-width:0; }
.f39-f > label{ font-size:11.5px; font-weight:600; color:var(--sub,var(--sub,#5E6B66)); text-transform:uppercase; letter-spacing:.3px; }
.f39-f select, .f39-f input{ width:100%; min-width:0; height:34px; padding:4px 8px; font:inherit; font-size:13.5px; border:1px solid var(--line-strong,var(--line-strong,#CDD5C8)); border-radius:8px; background:#fff; color:var(--ink,#1F1E1D); margin:0; }
.f39-f select:focus-visible, .f39-f input:focus-visible, .f39-chip:focus-visible, .f39-clear:focus-visible{ outline:2px solid var(--accent,var(--accent,#4E7A12)); outline-offset:1px; }
.f39-dates, .f39-range{ display:flex; align-items:center; gap:4px; }
.f39-dates span, .f39-range span{ color:var(--sub,var(--sub,#5E6B66)); }
.f39-dates input{ padding:4px 4px; font-size:12.5px; }
/* narrow chat list column */
.v34-chat-list .f39-bar{ margin:6px 0; padding:6px 8px; box-shadow:none; }
.v34-chat-list .f39-panel{ grid-template-columns:1fr; }
.v34-chat-list .f39-count{ margin-left:0; }
/* the Routes screen */
#route-app-root .f39-bar{ margin:10px 0 12px; }
#route-app-root .f39-f select, #route-app-root .f39-f input{ background:#fff; color:#1F1E1D; }
/* v3.9.3 — quick search (Invoices, Payments) + invoice # / check # / exact amount boxes */
.f39-qs{ position:relative; margin:0 0 8px; }
.f39-qs .f39-qs-ic{ position:absolute; left:10px; top:50%; transform:translateY(-50%); font-size:14px; opacity:.6; pointer-events:none; }
.f39-qs input.f39-q{ width:100%; height:38px; margin:0; padding:6px 10px 6px 32px; font:inherit; font-size:14.5px; border:1px solid var(--line-strong,var(--line-strong,#CDD5C8)); border-radius:9px; background:#fff; color:var(--ink,#1F1E1D); box-sizing:border-box; }
.f39-qs input.f39-q:focus-visible{ outline:2px solid var(--accent,var(--accent,#4E7A12)); outline-offset:1px; }
.f39-f.f39-txt input{ font-variant-numeric:tabular-nums; }
.pay-ck{ font-weight:600; font-variant-numeric:tabular-nums; }
@media (max-width: 640px){
  .f39-bar{ margin:10px 0 8px; padding:8px; }
  .f39-panel{ grid-template-columns:1fr 1fr; gap:8px; }
  .f39-f select, .f39-f input{ height:38px; font-size:14px; }
  .f39-count{ width:auto; }
  .f39-chip .f39-cv{ max-width:120px; }
  .f39-qs input.f39-q{ height:40px; font-size:15px; }
}
@media print{ .f39-bar{ display:none !important; } }
