/* Stage 3/5 — compact filter/sort controls and consistent global operation feedback */
.stage51-tools{display:flex;align-items:flex-end;flex-wrap:wrap;gap:8px;padding:10px 12px;margin:12px 0 8px;border:1px solid #cfdfd9;background:#f5f9f7;border-radius:10px;color:#24423e;max-width:100%;box-sizing:border-box}
.stage51-tools>input[type=search]{flex:1 1 170px;min-width:140px}
.stage51-tools input,.stage51-tools select{height:34px;border:1px solid #c6d8d1;border-radius:7px;background:#fff;color:#1f3430;padding:5px 9px;font-size:12px;box-sizing:border-box;max-width:100%}
.stage51-facets,.stage51-ranges{display:flex;flex-wrap:wrap;align-items:flex-end;gap:7px}
.stage51-facet{display:flex;flex-direction:column;gap:3px;font-size:10px;font-weight:700;color:#536b64}.stage51-facet select{width:145px;max-width:100%}
.stage51-ranges input[type=number]{width:112px}.stage51-ranges input[type=date]{width:132px}
.stage51-count{color:#516861;font-size:11px;font-weight:700;white-space:nowrap;margin-left:auto}
.stage51-reset{border:1px solid #b6d3c8;border-radius:8px;background:#fff;color:#155e53;padding:7px 10px;font-weight:700;font-size:11px;cursor:pointer}
.stage51-tools :is(input,select,button):focus-visible,.stage51-sort:focus-visible{outline:2px solid #0d8a76;outline-offset:2px}
.stage51-sort{display:inline-flex;align-items:center;justify-content:center;margin-left:4px;vertical-align:middle;min-width:20px;min-height:24px;border:0;background:transparent;color:#527169;font:800 15px/1 sans-serif;cursor:pointer}
.stage51-sort:hover,.stage51-sort:focus-visible{color:#087f74;background:#e3f3ee;border-radius:4px}
.stage51-empty{padding:11px 13px;background:#f8faf9;border:1px dashed #c4d8d2;border-radius:9px;color:#5b6d66;font-size:12px}
.stage51-empty[hidden],.stage51-tools[hidden],.kv7-table-tools[hidden]{display:none!important}
#app table tbody tr[hidden],#modalCard table tbody tr[hidden]{display:none!important}
#stage51-operation-status{position:fixed;top:10px;left:50%;transform:translateX(-50%);z-index:99999;min-width:220px;max-width:min(90vw,540px);background:#173b34;color:white;border:1px solid #438778;border-radius:10px;box-shadow:0 10px 28px #183c3340;overflow:hidden;display:flex;align-items:center;gap:12px;padding:10px 14px;font:600 12px/1.45 system-ui,sans-serif}
#stage51-operation-status[hidden]{display:none!important}
#stage51-operation-status[data-kind=success]{background:#086c54}#stage51-operation-status[data-kind=error]{background:#873e32}
.stage51-operation-progress{height:3px;position:absolute;left:0;right:0;top:0;background:linear-gradient(90deg,#9adcc9 20%,#fff 50%,#9adcc9 80%);background-size:200% 100%;animation:stage51-progress 1.2s linear infinite}
#stage51-operation-status:not([data-kind=pending]) .stage51-operation-progress{display:none}
#stage51-operation-status>button{margin-left:auto;border:0;background:transparent;color:inherit;font-size:18px;cursor:pointer}
@keyframes stage51-progress{to{background-position:-200% 0}}
@media(max-width:700px){.stage51-tools{padding:9px;gap:6px}.stage51-facets{width:100%}.stage51-facet{flex:1 1 130px}.stage51-facet select{width:100%}.stage51-count{margin-left:0}.stage51-ranges{width:100%}}
@media(prefers-reduced-motion:reduce){.stage51-operation-progress{animation:none}}
