/* FH360 Admin V6.84 (6 Nov 2026, sample A): side menu in four groups, user menu, phone bottom bar, simpler Leads row.
   Loaded last. Colours follow the Private Bank look (navy, gold, ivory) used by the WhatsApp Inbox. */
body.fhx{--fhx-w:248px}
.fhx-i{width:18px;height:18px;flex:0 0 18px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}

/* the menu: one column; header .admin and nav.tabs keep their place in the page code but draw as plain rows */
.fhx #fhxNav{display:flex;flex-direction:column;gap:2px;min-height:0}
.fhx #fhxNav > .admin,.fhx #fhxNav > nav.tabs{display:contents!important}
.fhx #fhxNav .fhx-gt{margin:12px 12px 4px;font-size:11px;font-weight:600;letter-spacing:.14em;text-transform:uppercase;color:#8E9AB0}
.fhx #fhxNav .fhx-gt[data-g="work"]{margin-top:10px}
.fhx #fhxNav .fhx-gt[hidden]{display:none}
.fhx #fhxNav .tab,.fhx #fhxNav .fhx-item,.fhx #fhxNav #ppWrap > button{display:flex!important;align-items:center;gap:11px;width:100%;margin:0!important;padding:8px 12px!important;min-height:38px!important;
  border:0!important;border-radius:10px!important;background:transparent!important;color:#D7DEEA!important;font-size:14px!important;font-weight:500!important;text-align:left!important;cursor:pointer;box-shadow:none!important;line-height:1.25}
.fhx #fhxNav .tab:hover,.fhx #fhxNav .fhx-item:hover,.fhx #fhxNav #ppWrap > button:hover{background:#1B3358!important;color:#fff!important}
.fhx #fhxNav .tab.active{background:#1B3358!important;color:#fff!important;box-shadow:inset 3px 0 0 var(--gold,#C7A04C)!important}
.fhx #fhxNav .tab.active .fhx-i{color:var(--gold2,#EAD19A)}
.fhx #fhxNav .fhx-ext{width:14px;height:14px;flex-basis:14px;margin-left:auto;opacity:.6}
.fhx #fhxNav .tab-count,.fhx #fhxNav .fhx-badge,.fhx #fhxNav .pp-n{margin-left:auto;min-width:20px;height:20px;padding:0 6px;border-radius:999px;background:#C0352B!important;color:#fff!important;
  font:600 11px/20px var(--sans,system-ui);font-style:normal;text-align:center}
.fhx #fhxNav .tab-count:empty{display:none}
.fhx #fhxNav #ppWrap{display:block;width:100%}
.fhx #fhxNav #ppWrap > button.pp-alert{background:transparent!important}
.fhx #fhxNav .pp-menu{position:static!important;box-shadow:none!important;background:#0B1830!important;border:0!important;border-radius:10px;margin:2px 0 6px 28px!important;padding:4px!important;min-width:0!important}
.fhx #fhxNav .pp-menu button{color:#D7DEEA!important;background:transparent!important;border:0!important;text-align:left;padding:8px 10px!important;font-size:13px!important;border-radius:8px;width:100%}
.fhx #fhxNav .pp-menu button:hover{background:#1B3358!important}
.fhx #fhxNav #acBtn{display:flex!important;align-items:center;justify-content:center;gap:8px;width:100%;margin:0 0 6px!important;min-height:42px;padding:9px 12px!important;border-radius:10px!important;
  background:var(--gold,#C7A04C)!important;border:0!important;color:#10213A!important;font-weight:600!important;font-size:14px!important}
.fhx #fhxNav #acBtn:hover{background:var(--gold2,#EAD19A)!important}
.fhx #fhxNav #tcBtn{display:flex!important;align-items:center;justify-content:center;gap:8px;width:100%;margin:0 0 8px!important;min-height:34px;padding:6px 12px!important;border-radius:10px!important;
  background:transparent!important;border:1px solid rgba(199,160,76,.55)!important;color:var(--gold,#C7A04C)!important;font-weight:600!important;font-size:13px!important}
.fhx #fhxNav #acBtn.ac-hide{display:none!important}
.fhx #fhxNav #tcBtn{background:var(--gold,#C7A04C)!important;border:0!important;color:#10213A!important;min-height:42px;font-size:14px!important;margin:0 0 6px!important}
.fhx #fhxNav #tcBtn:hover{background:var(--gold2,#EAD19A)!important}

/* user box at the bottom */
.fhx-me{margin-top:auto;padding-top:14px;border-top:1px solid #23395E;position:relative}
.fhx-me-btn{display:flex;align-items:center;gap:10px;width:100%;padding:8px;border:0;border-radius:10px;background:transparent;color:#fff;cursor:pointer;text-align:left}
.fhx-me-btn:hover{background:#1B3358}
.fhx-av{flex:0 0 34px;height:34px;border-radius:50%;background:var(--gold,#C7A04C);color:#10213A;display:grid;place-items:center;font-weight:600;font-size:13px}
.fhx-who{display:flex;flex-direction:column;min-width:0;flex:1}
.fhx-who b{font-weight:600;font-size:14px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.fhx-who small{color:#9FB0CA;font-size:12px}
.fhx-dd{opacity:.7}
.fhx-me-menu{position:absolute;left:0;right:0;bottom:calc(100% + 6px);background:#FFFDF8;border:1px solid var(--line,#E6DCC6);border-radius:12px;padding:6px;box-shadow:0 18px 40px -18px rgba(16,33,58,.55);z-index:60;display:flex;flex-direction:column;gap:2px}
.fhx-me-menu[hidden]{display:none}
.fhx-me-menu button{display:flex!important;align-items:center;gap:10px;width:100%;margin:0!important;padding:10px 12px!important;min-height:42px;border:0!important;border-radius:9px!important;background:transparent!important;
  color:#10213A!important;font-size:14px!important;font-weight:500!important;text-align:left!important;cursor:pointer}
.fhx-me-menu button:hover{background:#F6F1E6!important}
.fhx-me-menu .calendar-connect.connected{color:#1F7A4D!important}

/* desktop: fixed-width left menu */
@media (min-width:1100px){
  .fhx #app:has(> header){grid-template-columns:var(--fhx-w) minmax(0,1fr)}
  .fhx #app > header{gap:14px;padding:22px 14px 16px}
  .fhx #fhxNav{flex:1}
  .fhx-bar{display:none!important}
}

/* phones and tablets: top bar + slide-in menu + bottom bar */
@media (max-width:1099px){
  .fhx #app > header{position:sticky;top:0;z-index:40;display:flex;align-items:center;justify-content:space-between;padding:10px max(16px,env(safe-area-inset-right,0px)) 10px max(16px,env(safe-area-inset-left,0px));background:var(--navy,#10213A);border:0}
  .fhx #app > header .menu-btn{display:grid!important;place-items:center;width:42px;height:42px;padding:0;border:1px solid #3A5276;border-radius:10px;background:transparent;color:#fff}
  .fhx #app > header .menu-btn .fhx-i{width:22px;height:22px;flex-basis:22px}
  .fhx #fhxNav{position:fixed;top:0;bottom:0;left:0;width:min(300px,86vw);z-index:80;overflow-y:auto;background:var(--navy,#10213A);
    padding:18px 12px calc(16px + env(safe-area-inset-bottom,0px)) max(12px,env(safe-area-inset-left,0px));transform:translateX(-102%);visibility:hidden;transition:transform .2s ease,visibility 0s .2s}
  .fhx.fhx-open #fhxNav{transform:none;visibility:visible;transition:transform .2s ease;box-shadow:12px 0 40px -12px rgba(0,0,0,.5)}
  .fhx.fhx-open::after{content:"";position:fixed;inset:0;z-index:70;background:rgba(10,20,36,.45)}
  .fhx #app > .shell{padding-bottom:calc(84px + env(safe-area-inset-bottom,0px))}
  .fhx-bar{position:fixed;left:0;right:0;bottom:0;z-index:60;display:flex;background:#FFFDF8;border-top:1px solid var(--line,#E6DCC6);
    padding:4px max(6px,env(safe-area-inset-right,0px)) calc(4px + env(safe-area-inset-bottom,0px)) max(6px,env(safe-area-inset-left,0px));box-shadow:0 -10px 30px -22px rgba(16,33,58,.5)}
  .fhx-bar button{flex:1 1 0;min-width:0;display:flex;flex-direction:column;align-items:center;gap:3px;padding:7px 2px;min-height:54px;border:0;background:transparent;color:#5D6676;font:500 11.5px/1.1 var(--sans,system-ui);cursor:pointer;border-radius:10px}
  .fhx-bar button .fhx-i{width:22px;height:22px;flex-basis:22px}
  .fhx-bar button.on{color:#10213A}
  .fhx-bar button.on .fhx-i{color:#8A6A22}
  .fhx-bar button[hidden]{display:none}
  body.fhx:has(#modal .modal-backdrop) .fhx-bar,body.fhx:has(#modal .drawer) .fhx-bar{display:none}
}
@media (min-width:1100px){.fhx-bar{display:none}}

/* four boxes in one row on desktop, two by two on phones */
.fhx .kpis{grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:12px}
.fhx .kpis:has(> .kpi:nth-child(5)){grid-template-columns:repeat(5,minmax(0,1fr))!important}
.fhx .kpi{padding:16px 18px}
@media (max-width:760px){.fhx .kpis,.fhx .kpis:has(> .kpi:nth-child(5)){grid-auto-flow:row!important;grid-template-rows:none!important;grid-template-columns:1fr 1fr!important;overflow:visible!important;gap:10px}}

/* Leads: one row (search, Filters, owner, Add client); the rest opens under Filters */
.fhx .lead-toolbar{display:flex!important;flex-wrap:wrap;align-items:center;gap:10px}
.fhx .lead-toolbar > #search{flex:1 1 280px;min-width:0}
.fhx .lead-toolbar > button,.fhx .lead-toolbar .lt-more > button{min-width:0!important}
.fhx .lt-fbtn,.fhx .lt-add{display:inline-flex;align-items:center;gap:8px;min-height:42px;padding:9px 14px;border-radius:12px;font-weight:600;cursor:pointer;white-space:nowrap}
.fhx .lt-fbtn{border:1px solid var(--line,#E6DCC6);background:#fff;color:#10213A}
.fhx .lead-panel.lt-open .lt-fbtn{border-color:#10213A;box-shadow:inset 0 0 0 1px #10213A}
.fhx .lt-fbtn em{font-style:normal;min-width:20px;height:20px;border-radius:999px;background:#10213A;color:#fff;font-size:11px;line-height:20px;text-align:center;padding:0 5px}
.fhx .lt-fbtn em[hidden]{display:none}
.fhx .lt-add{border:0;background:var(--navy,#10213A);color:#FFFDF8}
.fhx .lt-add:hover{background:#1B3358}
.fhx .lt-fbtn svg,.fhx .lt-add svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round}
.fhx .lt-owner:empty{display:none}
.fhx .lt-owner .owner-filter{margin:0;min-height:42px}
.fhx .lt-more{display:none;flex:1 1 100%;flex-wrap:wrap;gap:10px;padding:12px;border:1px solid var(--line2,#EFE7D6);border-radius:14px;background:#FBF7EE}
.fhx .lead-panel.lt-open .lt-more{display:flex}
.fhx .lt-more > select{flex:1 1 170px;min-width:0;width:auto}
.fhx .lt-more > .lt-export{flex:0 0 auto;margin-left:auto;border:1px solid var(--line,#E6DCC6);background:#fff;color:#10213A;border-radius:12px;min-height:42px;padding:9px 14px;font-weight:600}
.fhx .lead-panel:not(.lt-open) .pipe-strip,.fhx .lead-panel:not(.lt-open) .ic-key{display:none}
.fhx .lead-panel.lt-open .pipe-strip{margin-top:10px}
.fhx .stage-key{flex-wrap:nowrap;overflow-x:auto;scrollbar-width:thin;padding-bottom:4px;margin:10px 0 6px}
.fhx .stage-key .sk{flex:0 0 auto;white-space:nowrap}
@media (max-width:640px){
  .fhx .lead-toolbar > #search{flex-basis:100%}
  .fhx .lt-fbtn,.fhx .lt-owner{flex:1 1 0;min-width:0}
  .fhx .lt-add{flex:0 0 auto;padding:9px 12px}.fhx .lt-add span{display:none}
  .fhx .lt-owner .owner-filter{width:100%}
  .fhx .lt-more > select,.fhx .lt-more > .lt-export{flex:1 1 100%;margin-left:0}
}
/* empty state: line icon */
.fh-empty-ic svg{width:40px;height:40px;fill:none;stroke:#8A6A22;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}
@media (max-width:1099px){.fhx.fhx-open #app > header{z-index:90}}
@media (max-width:420px){.fhx .lt-owner{order:5;flex:1 1 100%}}
/* V6.86: PolicyScan desk as a page */
.fhx .pz-page-head h2{margin:0 0 4px}
.fhx .pz-page-head p{margin:0 0 6px}
.fhx .pz-page .pz-search{flex-wrap:wrap;align-items:center}
.fhx .pz-page .pz-search input{flex:1 1 280px;min-width:0;min-height:42px}
.fhx .pz-page .pz-search button{min-height:42px;border-radius:12px;padding:9px 14px;font-weight:600;white-space:nowrap}
.fhx .pz-page .pz-search .pz-quiet{background:#fff!important;border:1px solid var(--line,#E6DCC6)!important;color:#10213A!important}
.fhx .pz-page .pz-search .pz-quiet:hover{border-color:var(--gold,#C7A04C)!important}
@media (max-width:600px){.fhx .pz-page .pz-search{flex-direction:row}.fhx .pz-page .pz-search input,.fhx .pz-page .pz-search .primary{flex:1 1 100%}.fhx .pz-page .pz-search .pz-quiet{flex:1 1 0;white-space:normal}}
/* V6.91: Settings group in lighter text; Daily call list lives in the Today page */
.fhx #fhxNav .fhx-light{color:#9AA7BC!important;font-size:13.5px!important;min-height:34px!important}
.fhx #fhxNav .fhx-light .fhx-i{opacity:.75}
.fhx #fhxNav .fhx-hide{display:none!important}
.fhx #fhxNav .fhx-gt[data-g="people"]{margin-top:14px}
.td-tools{display:flex;flex-wrap:wrap;align-items:center;gap:10px}
.td-digest{display:inline-flex;align-items:center;min-height:36px;padding:6px 14px;border:1.5px solid var(--line,#E6DCC6);border-radius:10px;background:transparent;color:var(--navy,#10213A);font:600 14px var(--sans,system-ui);cursor:pointer}
.td-digest:hover{border-color:var(--gold,#C7A04C)}
.fhx #fhxNav #ppWrap > button.fhx-light{color:#9AA7BC!important;font-size:13.5px!important;min-height:34px!important}
.fhx-bar button span{white-space:nowrap}

.fhx .lead-toolbar .lt-add{white-space:nowrap;min-height:40px;padding:8px 14px;border-radius:10px;font-size:14px}

/* V7.24.0 (13 Nov 2026): tidier side menu: six groups, each title folds its group, softer rows, clear active marker */
.fhx #fhxNav{gap:1px}
.fhx #fhxNav .fhx-gt{display:flex;align-items:center;gap:8px;width:100%;margin:14px 0 4px;padding:10px 12px 6px;border:0;border-top:1px solid rgba(255,255,255,.07);border-radius:0;background:transparent;
  font:600 11px/1.2 var(--sans,system-ui);letter-spacing:.14em;text-transform:uppercase;color:#8E9AB0;cursor:pointer;text-align:left}
.fhx #fhxNav .fhx-gt:hover{color:#EAD19A}
.fhx #fhxNav .fhx-gt[data-g="clients"]{margin-top:10px}
.fhx #fhxNav .fhx-gt span{flex:1}
.fhx #fhxNav .fhx-gt .fhx-chev{width:14px;height:14px;flex-basis:14px;opacity:.7;transition:transform .15s}
.fhx #fhxNav .fhx-gt[aria-expanded="false"] .fhx-chev{transform:rotate(-90deg)}
.fhx #fhxNav .fhx-dot{display:none;width:7px;height:7px;border-radius:50%;background:#E0574B;box-shadow:0 0 0 3px rgba(224,87,75,.18)}
.fhx #fhxNav .fhx-gt.has-dot .fhx-dot{display:block}
.fhx #fhxNav .fhx-gt:focus-visible{outline:2px solid var(--gold,#C7A04C);outline-offset:-2px;border-radius:8px}
.fhx #fhxNav.fhx-c-clients .fhx-g-clients,.fhx #fhxNav.fhx-c-work .fhx-g-work,.fhx #fhxNav.fhx-c-msg .fhx-g-msg,
.fhx #fhxNav.fhx-c-rates .fhx-g-rates,.fhx #fhxNav.fhx-c-admin .fhx-g-admin{display:none!important}
.fhx #fhxNav .tab,.fhx #fhxNav .fhx-item,.fhx #fhxNav #ppWrap > button{min-height:38px!important;padding:8px 12px 8px 14px!important;color:#C9D3E3!important;font-size:14px!important;position:relative}
.fhx #fhxNav .tab .fhx-i,.fhx #fhxNav .fhx-item .fhx-i,.fhx #fhxNav #ppWrap > button .fhx-i{color:#8FA0BC}
.fhx #fhxNav .tab:hover,.fhx #fhxNav .fhx-item:hover,.fhx #fhxNav #ppWrap > button:hover{background:rgba(255,255,255,.06)!important;color:#fff!important}
.fhx #fhxNav .tab:hover .fhx-i,.fhx #fhxNav .fhx-item:hover .fhx-i{color:#fff}
.fhx #fhxNav .tab.active{background:linear-gradient(90deg,rgba(199,160,76,.22),rgba(199,160,76,.06))!important;color:#fff!important;font-weight:600!important;box-shadow:none!important}
.fhx #fhxNav .tab.active::before{content:"";position:absolute;left:0;top:7px;bottom:7px;width:3px;border-radius:3px;background:var(--gold,#C7A04C)}
.fhx #fhxNav .tab.active .fhx-i{color:var(--gold2,#EAD19A)}
.fhx #fhxNav #tabToday{margin-top:4px!important;font-weight:600!important}
.fhx #fhxNav .fhx-ext{opacity:.45}
.fhx #fhxNav .fhx-light{font-size:14px!important;min-height:38px!important}
.fhx #app > header .hdr-brand{padding-bottom:16px;border-bottom:1px solid rgba(255,255,255,.08)}
.fhx #app > header{scrollbar-width:thin;scrollbar-color:#2A4166 transparent}
