/* 1.33: the one filter window (filterkit.js), the same in the main pages, Money and Rentals, in every look. */
.fk-bar{display:flex!important;flex-direction:row!important;align-items:center;gap:10px;flex-wrap:nowrap}
.fk-bar > :first-child{flex:1 1 auto;min-width:0;max-width:560px}
.fk-btn{flex:none;width:auto!important;display:inline-flex;align-items:center;gap:8px;height:40px;padding:0 16px;border-radius:999px;border:1px solid var(--line,#E1E8EA);
  background:var(--surface,#fff);color:var(--fg,#1C1C1E);font:inherit;font-weight:600;font-size:.92rem;cursor:pointer;white-space:nowrap}
.fk-btn:hover{border-color:color-mix(in srgb,var(--accent,#0E5E6F) 45%,var(--line,#E1E8EA))}
.fk-btn .fk-i{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round}
.fk-btn.on{border-color:var(--accent,#0E5E6F);color:var(--accent,#0E5E6F)}
.fk-btn .fk-n{min-width:20px;height:20px;padding:0 6px;border-radius:999px;display:grid;place-items:center;background:var(--accent,#0E5E6F);color:var(--accent-fg,#fff);font-size:.72rem}

.fk-dlg{padding:0;border:0;border-radius:26px;width:min(470px,calc(100vw - 32px));max-height:min(88vh,860px);background:var(--surface,#fff);color:var(--fg,#1C1C1E);
  box-shadow:0 30px 80px rgba(10,25,30,.28),0 4px 16px rgba(10,25,30,.1);overflow:hidden;font:inherit}
.fk-dlg::backdrop{background:rgba(12,24,28,.42)}
.fk-dlg[open]{animation:fkin .17s ease-out}
@keyframes fkin{from{opacity:0;translate:0 10px}to{opacity:1;translate:0 0}}
.fk-win{display:flex;flex-direction:column;max-height:inherit}
.fk-h{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:26px 28px 6px}
.fk-h h2{margin:0;font-size:1.6rem;font-weight:750;letter-spacing:-.02em}
.fk-reset{height:44px;padding:0 20px;border-radius:999px;border:1px solid var(--line,#E1E8EA);background:var(--surface,#fff);color:var(--fg,#1C1C1E);font:inherit;font-weight:600;cursor:pointer}
.fk-reset:hover:not(:disabled){border-color:var(--accent,#0E5E6F);color:var(--accent,#0E5E6F)}
.fk-reset:disabled{opacity:.45;cursor:default}
.fk-body{padding:12px 28px 24px;overflow:auto;display:flex;flex-direction:column;gap:22px}
.fk-grp{margin:6px 0 -10px;font-size:1rem;font-weight:700;color:var(--fg,#1C1C1E)}
.fk-f{display:flex;flex-direction:column;gap:12px}
.fk-lab{display:flex;justify-content:space-between;align-items:baseline;gap:10px;color:var(--muted,#5B6B70);font-size:.98rem}
.fk-lab small{font-size:.86rem;color:var(--faint,#8A979B)}

/* a row of choices on a grey track; the picked one is a raised white pill */
.fk-seg{display:flex;gap:4px;padding:6px;border-radius:999px;background:var(--fk-track,#F1F3F4)}
.fk-seg button{flex:1 1 0;min-width:0;display:inline-flex;align-items:center;justify-content:center;gap:8px;height:48px;padding:0 12px;border:0;border-radius:999px;background:none;
  color:var(--faint,#9AA3A6);font:inherit;font-size:1rem;font-weight:500;cursor:pointer;transition:background .15s,color .15s,box-shadow .15s}
.fk-seg button span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.fk-seg button svg{width:19px;height:19px;flex:none;fill:none;stroke:currentColor;stroke-width:1.7}
.fk-seg button:hover{color:var(--fg,#1C1C1E)}
.fk-seg button[aria-checked="true"],.fk-seg button[aria-pressed="true"]{background:var(--surface,#fff);color:var(--fg,#1C1C1E);font-weight:600;
  box-shadow:0 1px 2px rgba(10,25,30,.08),0 6px 16px rgba(10,25,30,.12)}
.fk-seg.many button{padding:0 6px;font-size:.92rem}
.fk-seg.wrap{flex-wrap:wrap;border-radius:26px}
.fk-seg.wrap button{flex:0 1 auto;height:42px;padding:0 16px;font-size:.95rem}

.fk-sel select{width:100%;height:52px;padding:0 18px;border:0;border-radius:999px;background:var(--fk-track,#F1F3F4);color:var(--fg,#1C1C1E);font:inherit;font-size:1rem;cursor:pointer}

/* a range: the spread of the values as bars, the chosen part dark; a white band between the two handles */
.fk-range{display:flex;flex-direction:column;gap:0}
.fk-bars{display:flex;align-items:flex-end;gap:5px;height:110px;padding:0 4px}
.fk-bars i{flex:1 1 0;min-width:2px;max-width:6px;margin:0 auto;border-radius:3px;background:var(--fk-bar,#E4E8EA)}
.fk-bars i.in{background:var(--accent,#0E5E6F)}
.fk-track{position:relative;height:30px;margin-top:12px;border-radius:999px;background:var(--fk-track,#F1F3F4)}
.fk-sel-band{position:absolute;top:3px;bottom:3px;border-radius:999px;background:var(--surface,#fff);box-shadow:0 1px 2px rgba(10,25,30,.1),0 4px 10px rgba(10,25,30,.1)}
.fk-track input{position:absolute;inset:0;width:100%;height:100%;margin:0;background:none;-webkit-appearance:none;appearance:none;pointer-events:none}
.fk-track input::-webkit-slider-thumb{-webkit-appearance:none;width:24px;height:24px;border-radius:50%;border:0;background:radial-gradient(circle,var(--fg,#1C1C1E) 0 3px,transparent 3.5px);cursor:grab;pointer-events:auto}
.fk-track input::-moz-range-thumb{width:24px;height:24px;border-radius:50%;border:0;background:radial-gradient(circle,var(--fg,#1C1C1E) 0 3px,transparent 3.5px);cursor:grab;pointer-events:auto}
.fk-track input:focus-visible::-webkit-slider-thumb{outline:2px solid var(--accent,#0E5E6F);outline-offset:2px}
.fk-ends span[hidden]{visibility:hidden;display:inline}
.fk-ends{position:relative;display:flex;justify-content:space-between;margin-top:8px;min-height:56px;color:var(--faint,#8A979B);font-size:.9rem}
.fk-bub{position:absolute;top:22px;padding:5px 11px;border-radius:999px;background:var(--accent,#0E5E6F);color:var(--accent-fg,#fff);font-size:.9rem;font-weight:600;white-space:nowrap;
  font-variant-numeric:tabular-nums;box-shadow:0 4px 10px rgba(10,25,30,.18)}

/* a switch */
.fk-tog{display:flex;align-items:center;justify-content:space-between;gap:14px;color:var(--muted,#5B6B70);font-size:1rem;cursor:pointer;position:relative}
.fk-tog input{position:absolute;opacity:0;width:1px;height:1px}
.fk-tog i{flex:none;width:56px;height:34px;border-radius:999px;background:var(--fk-track,#EDF0F1);position:relative;transition:background .15s}
.fk-tog i::after{content:"";position:absolute;left:4px;top:4px;width:26px;height:26px;border-radius:50%;background:#fff;box-shadow:0 2px 6px rgba(10,25,30,.2);transition:left .15s}
.fk-tog input:checked + i{background:var(--accent,#0E5E6F)}
.fk-tog input:checked + i::after{left:26px}
.fk-tog input:focus-visible + i{outline:2px solid var(--accent,#0E5E6F);outline-offset:2px}

.fk-foot{display:flex;gap:14px;padding:18px 28px 22px;background:var(--fk-foot,#FAFBFB);border-top:1px solid var(--line,#EEF1F2)}
.fk-foot button{flex:1 1 0;height:56px;border-radius:16px;font:inherit;font-size:1.02rem;font-weight:650;cursor:pointer}
.fk-cancel{border:1px solid var(--line,#E1E8EA);background:var(--surface,#fff);color:var(--fg,#1C1C1E)}
.fk-go{border:0;background:var(--accent,#0E5E6F);color:var(--accent-fg,#fff);box-shadow:0 6px 16px rgba(10,25,30,.18)}
.fk-go:hover{filter:brightness(.92)}

@media (prefers-color-scheme:dark){:root:not([data-theme="light"]) .fk-dlg,:root:not([data-theme="light"]) .fk-btn{--fk-track:rgba(255,255,255,.07);--fk-bar:rgba(255,255,255,.12);--fk-foot:rgba(255,255,255,.03)}}
:root[data-theme="dark"] .fk-dlg,:root[data-theme="dark"] .fk-btn{--fk-track:rgba(255,255,255,.07);--fk-bar:rgba(255,255,255,.12);--fk-foot:rgba(255,255,255,.03)}
@media (max-width:600px){
  .fk-dlg{width:100vw;max-width:100vw;margin:auto 0 0;border-radius:26px 26px 0 0;max-height:92vh}
  .fk-h{padding:22px 20px 4px}.fk-body{padding:10px 20px 20px}.fk-foot{padding:14px 20px calc(16px + env(safe-area-inset-bottom))}
  .fk-seg button{height:44px;padding:0 8px;font-size:.95rem}
}
