/* The open menu is part of MWD, including inside dialogs and on small screens. */
.mwd-select { position:relative; display:inline-flex; width:100%; min-width:0; vertical-align:middle; }
select.mwd-select-native { position:absolute !important; width:1px !important; height:1px !important; min-height:0 !important; padding:0 !important; margin:0 !important; border:0 !important; overflow:hidden; clip-path:inset(50%); opacity:0; pointer-events:none; }
.mwd-select-trigger { display:flex; align-items:center; justify-content:space-between; gap:12px; width:100%; min-width:0; min-height:44px; padding:10px 12px; border:1px solid #d8e1d8; border-radius:8px; background:var(--surface,#fff); color:var(--ink,#263c34); font:inherit; text-align:left; cursor:pointer; }
.mwd-select-value { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.mwd-select-trigger > svg { flex:none; color:#637969; transition:transform .12s; }
.mwd-select-trigger[aria-expanded=true] > svg { transform:rotate(180deg); }
.mwd-select-trigger:hover { border-color:#94a797; background:#fafcf8; }
.mwd-select-trigger:focus-visible { outline:2px solid var(--focus,#d1ba82); outline-offset:3px; border-color:#708b78; }
.mwd-select-trigger[aria-invalid=true] { border-color:#9d654c; }
.mwd-select-trigger:disabled { cursor:not-allowed; opacity:.6; }
.mwd-select[hidden] { display:none; }
.scope-control .mwd-select { width:auto; max-width:340px; }
.scope-control .mwd-select-trigger { border-color:transparent; background:transparent; padding-left:8px; font-size:14px; }
.scope-control .mwd-select-trigger:hover,.scope-control .mwd-select-trigger[aria-expanded=true] { background:#edf2ec; }
.condition-toolbar .mwd-select { width:auto; margin-left:auto; max-width:230px; }
.condition-toolbar .mwd-select-trigger { min-height:36px; border-color:transparent; font-size:12px; padding:8px 10px; }
.filter-row label .mwd-select,.person-filter .mwd-select { width:auto; }
.requirement-line .mwd-select { min-width:150px; }
.demo-bar .mwd-select { width:170px; color:#263c34; }
.mwd-select-menu { position:fixed; inset:auto; margin:0; padding:6px; border:1px solid #dbe3d7; border-radius:12px; background:#fff; color:#263c34; box-shadow:0 10px 30px #193b321b,0 2px 6px #193b320b; overflow:auto; overscroll-behavior:contain; z-index:100; font:400 14px/1.4 -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif; }
.mwd-select-option { display:flex; align-items:center; gap:14px; justify-content:space-between; min-height:42px; padding:10px 12px; border-radius:7px; cursor:pointer; overflow-wrap:anywhere; }
.mwd-select-option > svg { flex:none; color:#436a51; }
.mwd-select-option.is-active { background:#f0f4eb; }
.mwd-select-option[aria-selected=true] { color:#244c42; font-weight:550; background:#edf3e8; }
.mwd-select-option[aria-disabled=true] { opacity:.45; cursor:not-allowed; }
.mwd-select-group { padding:12px 12px 5px; color:#71816e; font-size:11px; font-weight:600; letter-spacing:.06em; text-transform:uppercase; }
.mwd-confirm { width:min(440px,calc(100vw - 32px)); max-height:calc(100dvh - 32px); padding:28px; }
.mwd-confirm h2 { margin:0 0 12px; font-size:21px; }
.mwd-confirm p { margin:0 0 24px; color:#64746a; font-size:14px; line-height:1.65; }
.mwd-confirm::backdrop { background:#152d264d; backdrop-filter:blur(3px); }
.mwd-confirm-actions { display:flex; justify-content:flex-end; gap:10px; flex-wrap:wrap; }
.mwd-confirm .destructive { background:#8a4d38; border-color:#8a4d38; }
@media(max-width:620px) { .scope-control .mwd-select { max-width:180px; width:100%; }.scope-control .mwd-select-trigger { font-size:12px; padding-left:0; gap:6px; }.mwd-select-menu{font-size:14px}.mwd-select-option{min-height:46px}.condition-toolbar .mwd-select { max-width:100%; }.topbar .top-actions > .button.primary { display:inline-flex; } }
@media(prefers-reduced-motion:reduce) { .mwd-select-trigger > svg { transition:none; } }
@media(forced-colors:active) { .mwd-select-trigger,.mwd-select-menu { border:1px solid ButtonText; }.mwd-select-option.is-active,.mwd-select-option[aria-selected=true] { outline:1px solid Highlight; }.mwd-select-option[aria-selected=true] { color:Highlight; } }
