/* scope-picker.css — the Reporting scope selector (scope-picker.jsx). Sits in
   the page title, so it inherits the title's own trigger styling; only the
   hierarchy menu is styled here. */

.fb-scope{position:relative;display:inline-flex;align-items:center}
.fb-scope-count{margin-left:5px;font-size:9.5px;font-weight:800;letter-spacing:.03em;background:#EEE9FB;color:#4A3A82;border-radius:999px;padding:1px 5px}

.fb-scope-menu{position:absolute;top:calc(100% + 6px);left:0;z-index:12000;width:288px;background:#fff;border:1px solid #E4DFF2;border-radius:10px;box-shadow:0 16px 40px rgba(24,18,48,.2);padding:6px 0;display:flex;flex-direction:column;max-height:min(72vh,460px)}
.fb-scope-hd{flex:0 0 auto;display:flex;align-items:center;justify-content:space-between;gap:8px;padding:5px 12px 7px;font-size:10.5px;font-weight:800;letter-spacing:.07em;text-transform:uppercase;color:#8B8398;border-bottom:1px solid #F3F0FA}
.fb-scope-scroll{flex:1 1 auto;min-height:0;overflow-y:auto}
/* Find box — the picker carries every hotel, region, owner and user. */
.fb-scope-find{flex:0 0 auto;display:flex;align-items:center;gap:6px;margin:0 10px 6px;padding:5px 8px;border:1px solid #E4DFF2;border-radius:7px;background:#FBFAFF}
.fb-scope-find svg{flex:none;stroke:#8A87A3}
.fb-scope-find input{flex:1;min-width:0;border:0;outline:0;background:transparent;font:500 11.5px inherit;color:#241F3D}
.fb-scope-find input::placeholder{color:#A5A3B8}
.fb-scope-findx{border:0;background:transparent;cursor:pointer;color:#8A87A3;font-size:14px;line-height:1;padding:0 2px}
.fb-scope-findx:hover{color:#3D2975}
.fb-scope-clear{border:none;background:#F1EEFA;color:#4A3A82;font:inherit;font-size:10px;font-weight:800;letter-spacing:.03em;text-transform:uppercase;border-radius:5px;padding:3px 7px;cursor:pointer}
.fb-scope-clear:hover{background:#E5DEF8}

.fb-scope-dim+.fb-scope-dim{border-top:1px solid #F7F5FC}
.fb-scope-dimhd{display:flex;align-items:center;gap:7px;width:100%;font:inherit;font-size:12.5px;font-weight:600;color:#2A2540;background:none;border:0;text-align:left;padding:8px 12px;cursor:pointer}
.fb-scope-dimhd:hover:not(:disabled){background:#F8F6FD}
.fb-scope-dim.off>.fb-scope-dimhd{color:#B4AEC4;cursor:not-allowed}
.fb-scope-caret{flex:0 0 auto;width:9px;color:#A79FBA;font-size:9px;line-height:1}
.fb-scope-dim.off>.fb-scope-dimhd>.fb-scope-caret{color:#D2CDE0}
.fb-scope-dimnm{flex:1 1 auto}
.fb-scope-badge{flex:0 0 auto;font-size:9.5px;font-weight:800;background:#3D2975;color:#fff;border-radius:999px;padding:1px 6px}
.fb-scope-dimn{flex:0 0 auto;font-size:10px;font-weight:700;color:#B4AEC4;font-variant-numeric:tabular-nums}

.fb-scope-opts{padding:2px 0 6px}
.fb-scope-opt{display:flex;align-items:center;gap:8px;padding:5px 12px 5px 28px;font-size:12px;color:#3A3450;cursor:pointer}
.fb-scope-opt:hover{background:#F8F6FD}
.fb-scope-opt.on{color:#3D2975;font-weight:600;background:#F4F1FC}
.fb-scope-opt input{flex:0 0 auto;width:13px;height:13px;accent-color:#3D2975;cursor:pointer;margin:0}
.fb-scope-optnm{flex:1 1 auto;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.fb-scope-optsub{flex:0 0 auto;font-size:10px;font-weight:600;color:#A79FBA}
.fb-scope-empty{font-size:11px;font-style:italic;color:#B4AEC4;padding:3px 12px 5px 28px}
/* Third level — hotels inside a Region / Ownership / User group. */
.fb-scope-opt.has-kids{padding-left:12px;gap:4px}
.fb-scope-kidcaret{flex:0 0 16px;width:16px;height:16px;display:inline-flex;align-items:center;justify-content:center;border:0;background:transparent;color:#9C95B3;font-size:11px;line-height:1;cursor:pointer;border-radius:4px;padding:0}
.fb-scope-kidcaret:hover{background:#ECE7F8;color:#3D2975}
span.fb-scope-kidcaret{cursor:default}
.fb-scope-optlbl{display:flex;align-items:center;gap:8px;flex:1 1 auto;min-width:0;cursor:pointer}
.fb-scope-kids{padding:0 0 4px;background:#FBFAFE;border-top:1px dashed #ECE7F8;border-bottom:1px dashed #ECE7F8}
.fb-scope-kid{padding-left:44px;font-size:11.5px}
.fb-scope-kid.on{background:#F0EBFA}
.fb-scope-kid .fb-scope-optnm{font-weight:500}
.fb-scope-kid.on .fb-scope-optnm{font-weight:600}

.fb-scope-ft{flex:0 0 auto;display:flex;align-items:center;justify-content:space-between;gap:8px;border-top:1px solid #F3F0FA;padding:8px 12px 2px;font-size:10.5px;font-weight:700;color:#8B8398;background:#fff}
.fb-scope-setup{border:none;background:none;font:inherit;font-size:10.5px;font-weight:800;color:#4A3A82;cursor:pointer;padding:0}
.fb-scope-setup:hover{text-decoration:underline}
