/* Shared folder selection for company staff grants and operator scope controls. */
.grouped-selection{display:block!important;min-width:0;max-height:400px;overflow:auto;padding:0!important;border:0!important;background:transparent!important}.selection-toolbar{display:flex;align-items:center;gap:12px;flex-wrap:wrap;padding:12px 2px;font-size:12px}.selection-all{display:flex!important;flex-direction:row!important;align-items:center;gap:7px!important;min-width:0!important;margin:0!important;color:#343a3e!important;font-size:12px!important;font-weight:550}.grouped-selection input[type=checkbox]{width:15px!important;height:15px!important;min-height:0!important;padding:0!important;flex:none;accent-color:#303638;box-shadow:none}.selection-count{color:#81898f;font-size:11px;font-variant-numeric:tabular-nums}.selection-expand{display:flex;gap:10px;margin-left:auto}.selection-expand button{border:0!important;background:transparent!important;color:#66736b;font-size:11px;padding:2px!important;min-height:24px!important}.selection-search{display:block!important;margin:0 0 2px!important}.selection-search input{width:100%;height:38px!important;min-height:38px!important;font-size:12px}.selection-groups{display:grid;gap:8px}.selection-group{border:1px solid #e3e7e5;border-radius:9px;background:white;min-width:0}.selection-group summary{display:flex;align-items:center;gap:9px;list-style:none;cursor:pointer;min-height:46px;padding:10px 12px;font-size:12px;color:#343c38}.selection-group summary::-webkit-details-marker{display:none}.selection-group summary:before{content:'›';font-size:18px;line-height:1;color:#87918b;width:9px;flex:none;transform-origin:center}.selection-group[open]>summary:before{transform:rotate(90deg)}.selection-group summary:focus-visible{outline:2px solid #7b8b80;outline-offset:-2px;border-radius:8px}.selection-group-name{font-weight:600;overflow-wrap:anywhere}.selection-kind{font-size:10px;color:#859088;white-space:nowrap}.selection-group-count{margin-left:auto;font-size:11px;color:#858e88;white-space:nowrap;font-variant-numeric:tabular-nums}.selection-items{border-top:1px solid #edf0ee;padding:4px 12px 6px}.selection-item{display:flex!important;align-items:flex-start!important;flex-direction:row!important;gap:9px!important;margin:0!important;padding:10px 0!important;border:0!important;min-width:0!important;font-size:12px!important;color:#4b5650!important;line-height:1.65}.selection-item+ .selection-item{border-top:1px solid #f2f4f2!important}.selection-item input{margin-top:3px!important}.selection-item span{min-width:0;overflow-wrap:anywhere}.selection-item b{font-weight:500}.selection-item small{display:block;color:#8a938d;font-size:11px;font-weight:400}.selection-empty{padding:20px 8px;color:#858e88;text-align:center;font-size:12px}.selection-item[hidden],.selection-group[hidden],.grouped-selection[hidden],.selection-empty[hidden]{display:none!important}.scope-mode{display:flex;gap:20px;padding:10px 0 14px}.scope-mode label{display:flex;flex-direction:row;align-items:center;gap:7px;font-size:12px}.scope-mode input{width:15px;min-height:0;accent-color:#303638}.selection-toolbar input:focus-visible,.selection-group input:focus-visible{outline:2px solid #7b8b80;outline-offset:3px}
@media(max-width:560px){.selection-toolbar{gap:8px}.selection-count{flex-basis:100%;order:3}.selection-expand{gap:8px}.selection-group summary{gap:7px;padding:10px}.selection-kind{display:none}.grouped-selection{max-height:360px}}

.resource-picker:has(.grouped-selection) .picker-actions{display:none}.resource-picker .picker-filters button[aria-pressed=true]{background:#edf1ee;color:#354239}
dialog[open]:has(.grouped-selection){display:flex;flex-direction:column;max-height:calc(100dvh - 32px);overflow:hidden}dialog:has(.grouped-selection)>.dialog-header{flex:none}dialog form.selection-form{display:flex;flex-direction:column;min-height:0;overflow:hidden;flex:1}.selection-form-body{display:flex;flex-direction:column;min-height:0;overflow:auto;gap:18px;flex:1;padding-right:2px}.selection-form>.form-actions,.selection-form>.dialog-actions{flex:none;margin-top:0}

.selection-form>.inline-error,.selection-form>.form-error,.selection-form>[role=alert]{flex:none;margin:0;color:#b33c37;font-size:13px;line-height:1.6;overflow-wrap:anywhere;max-height:96px;overflow:auto}.selection-form>.inline-error:empty,.selection-form>.form-error:empty,.selection-form>[role=alert]:empty{display:none}
