/* Scoped mobile presentation of the approved filter panel; desktop forms stay intact. */
.mf-toolbar,.mf-chips,.mf-summary,.mf-actions{display:none}
.mf-dialog{--mf-bg:var(--fg-color,#202a2e);--mf-text:var(--text-color,#edf2f0);color:var(--mf-text);background:var(--mf-bg);border:1px solid var(--border-color,#3a4a4f);border-radius:20px 20px 0 0;padding:0;width:100%;max-width:520px;max-height:90dvh;margin:auto auto 0;box-sizing:border-box;overflow:hidden;box-shadow:0 -18px 54px #0006}
.mf-dialog[open]{display:flex;flex-direction:column}
.mf-dialog::backdrop{background:#050a0cb8;backdrop-filter:blur(4px)}
.mf-dialog *{box-sizing:border-box}
.mf-head{flex:none;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:20px 18px 14px;border-bottom:1px solid var(--border-color,#3a4a4f)}
.mf-head h3{margin:0;font-size:18px}.mf-head p{margin:5px 0 0;font-size:12px;color:var(--text-color-light,#95a5a6)}
.mf-close{flex:none;width:44px;height:44px;font-size:26px;border-radius:11px;border:1px solid var(--border-color,#3a4a4f);background:var(--bg-color,#192226);color:inherit;cursor:pointer}
.mf-body{padding:15px 18px;overflow-y:auto;overscroll-behavior:contain;min-height:0}
.mf-field{margin:0 0 14px;min-width:0}.mf-field>label{display:block;margin-bottom:7px;font-size:12px;font-weight:700}
.mf-field input,.mf-field select{width:100%;min-width:0;min-height:46px;border:1px solid var(--border-color,#3a4a4f);border-radius:10px;padding:10px;background:var(--bg-color,#192226);color:inherit;font:inherit;font-size:16px}
.mf-status{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.mf-status button,.mf-presets button,.mf-options button{min-height:44px;padding:9px 10px;border:1px solid var(--border-color,#3a4a4f);border-radius:10px;background:var(--bg-color,#192226);color:inherit;font-size:13px;cursor:pointer;text-align:left;overflow-wrap:anywhere}
.mf-status button[aria-pressed=true],.mf-options button[aria-pressed=true]{border-color:#68c595;background:#68c59520}
.mf-picker{border:1px solid var(--border-color,#3a4a4f);border-radius:10px;background:var(--bg-color,#192226)}
.mf-picker>summary{padding:12px;min-height:46px;cursor:pointer;font-size:14px;overflow-wrap:anywhere}
.mf-picker>input{margin:5px 8px;width:calc(100% - 16px)}
.mf-options{max-height:210px;overflow:auto;display:flex;flex-direction:column;gap:5px;padding:8px}
.mf-advanced{border:1px solid var(--border-color,#3a4a4f);border-radius:10px;padding:12px;margin:12px 0}
.mf-advanced>summary{cursor:pointer;min-height:32px;font-size:13px;font-weight:700}
.mf-advanced>small{display:block;overflow-wrap:anywhere;color:var(--text-color-light,#95a5a6);margin-bottom:10px}
.mf-advanced[open]>.mf-field{margin-top:12px}
.mf-presets{display:flex;flex-wrap:wrap;gap:6px}
.mf-footer{flex:none;display:flex;gap:10px;padding:12px 18px calc(12px + env(safe-area-inset-bottom));border-top:1px solid var(--border-color,#3a4a4f)}
.mf-footer button{min-height:48px;border-radius:11px;font-size:14px;cursor:pointer;padding:10px 16px}
.mf-clear{background:var(--bg-color,#192226);border:1px solid var(--border-color,#3a4a4f);color:inherit}
.mf-apply{flex:1;background:#72bee2;color:#102028;border:1px solid #64b7df;font-weight:700}
.mf-apply:disabled{opacity:.5;cursor:not-allowed}
.mf-notice{padding:0 18px 10px;font-size:12px;color:var(--text-color-light,#95a5a6)}.mf-notice:empty{display:none}
.mf-dialog button:focus-visible,.mf-dialog input:focus-visible,.mf-dialog summary:focus-visible{outline:2px solid #74c2e8;outline-offset:2px}
@media(max-width:767px){
 .mf-source{display:none!important}
 .mf-toolbar:not([hidden]){display:flex;align-items:center;gap:8px;margin:10px 0}
 .mf-toolbar>input{min-width:0;flex:1;width:0;min-height:44px;margin:0;font-size:16px}
 .mf-open{min-height:44px;flex:none;border:1px solid #497386;border-radius:11px;background:#223c46;color:#bce2f1;padding:10px 13px;font-weight:700}
 .mf-chips:not([hidden]){display:flex;flex-wrap:wrap;gap:6px;margin-bottom:10px}
 .mf-chip{max-width:100%;overflow-wrap:anywhere;border:1px solid var(--border-color,#3a4a4f);border-radius:18px;background:var(--bg-color,#192226);color:var(--text-color,#edf2f0);font-size:12px;min-height:36px;padding:7px 10px;cursor:pointer}
 .mf-summary:not([hidden]){display:block;font-size:12px;color:var(--text-color-light,#95a5a6);margin-bottom:8px}
 .mf-actions:not([hidden]){display:flex;gap:6px;flex-wrap:wrap;margin-bottom:10px}
 .mf-actions:empty{display:none}
 #page-reports .reports-container{grid-template-columns:minmax(0,1fr)}
 #page-active-jobs>h2{font-size:22px;margin-bottom:12px}
}
@media(prefers-reduced-motion:no-preference){.mf-dialog[open]{animation:mf-rise .18s ease-out}@keyframes mf-rise{from{transform:translateY(20px);opacity:.7}to{transform:translateY(0);opacity:1}}}
