/* The native select keeps its value, form participation and change events. */
select.category-picker-native{position:absolute!important;width:1px!important;height:1px!important;min-width:0!important;padding:0!important;margin:0!important;border:0!important;opacity:0;pointer-events:none}
.category-picker{position:relative;min-width:0;width:100%;margin-top:8px;color:#263e32}
.category-picker .category-picker-input{width:100%;margin:0;padding-right:32px;text-overflow:ellipsis;color:#263e32;background:#fff}
.category-picker-input:focus{outline:2px solid #78aa90;outline-offset:1px;border-color:#5b9776}
.category-picker-input:disabled{color:#68766e;background:#f0f3f1;cursor:default;opacity:1}
.category-picker-input:invalid{border-color:#bb5c4f}
.category-picker-toggle{position:absolute;right:4px;top:50%;transform:translateY(-50%);height:26px;width:26px;padding:0;border:0;border-radius:5px;background:transparent;color:#466654;font-size:18px;line-height:1}
.category-picker-toggle:hover{background:#edf4ef}
.category-picker-toggle{display:flex;align-items:center;justify-content:center}
.category-picker-toggle::after{content:'';width:6px;height:6px;border-right:1.5px solid currentColor;border-bottom:1.5px solid currentColor;transform:translateY(-2px) rotate(45deg)}
.category-picker-list{position:absolute;top:calc(100% + 5px);left:0;min-width:100%;width:max-content;max-width:min(400px,calc(100vw - 16px));max-height:320px;overflow:auto;overscroll-behavior:contain;margin:0;padding:5px;border:1px solid #aebfb3;border-radius:9px;background:#fff;color:#263e32;box-shadow:0 8px 24px #19372826;z-index:50;text-align:left;white-space:normal;font-size:12px;font-weight:400}
.category-picker-list[popover]{position:fixed;inset:auto;min-width:0;margin:0}
.category-picker-list:not([popover]).category-picker-above{top:auto;bottom:calc(100% + 5px)}
.category-picker-option{position:relative;padding:7px 25px 7px calc(9px + var(--category-depth,0)*14px);border-radius:5px;cursor:pointer;line-height:1.4;overflow-wrap:anywhere}
.category-picker-option.active{background:#e4efe8;color:#173d2a;outline:1px solid #c0d7c8;outline-offset:-1px}
.category-picker-option.selected::after{position:absolute;right:8px;top:8px;content:'✓';color:#166b50;font-weight:700}
.category-picker-option[aria-disabled=true]{color:#87948b;cursor:default}
.category-picker-name{display:block;font-weight:500}
.category-picker-path{display:block;color:#62796b;font-size:10px;line-height:1.5;margin-top:1px}
.category-picker-ancestor .category-picker-name{color:#5f7568;font-weight:400}
.category-picker-group{padding:8px 9px 5px;color:#3c6350;border-top:1px solid #e3ebe5;margin-top:4px;font-size:10px;font-weight:700;letter-spacing:.2px}
.category-picker-group:first-child{border-top:0;margin-top:0}
.category-picker-list mark{color:#1e392b;background:#f7df93;border-radius:2px;padding:0}
.category-picker-empty{padding:15px 9px;color:#586e61;font-size:12px;line-height:1.5}
.category-picker-create .category-picker-name{color:#17634f;font-weight:650}
.category-picker-status{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.category-picker-host{position:relative}
.category-picker-quick{position:static;width:0;height:0;margin:0}
.category-picker-quick .category-picker-list{min-width:250px}
.table-filters .category-picker{margin-top:4px}
.table-filters .category-picker-input{height:29px;padding:6px 30px 6px 8px;font-size:11px;background:#f8faf8}
.filters .category-picker{margin:0;min-width:130px}
.filters .category-picker-input{height:28px;margin:0;padding:5px 28px 5px 7px;font-size:10px}
.plan-table .category-picker{margin:0;min-width:160px}
.plan-table .category-picker-input{width:100%;height:31px;margin:0;padding:7px 30px 7px 7px;font-size:11px}
#preview-body .category-picker,#bank-preview-body .category-picker{margin:0;min-width:135px;max-width:200px}
#preview-body .category-picker-input,#bank-preview-body .category-picker-input{margin:0;font-size:11px;padding:7px 29px 7px 7px}
@media(max-width:700px){.category-picker-list{font-size:12px}.category-picker-option{padding-top:9px;padding-bottom:9px}.category-picker-path{font-size:10px}.filters .category-picker{min-width:100px}.table-filters .category-picker-input{font-size:10px}}
