/* Local design preview: shared green header, top icon dock. */
header.top,.hubhome-top{background:#163e36!important;color:#edf5ef;border-bottom:1px solid #31594c!important}header.top .link,header.top .breadcrumb,header.top small,header.top .header-field,header.top .session-identity small,header.top .session-identity b{color:#e1eee5!important}.hubhome-top .brand,.hubhome-top .session-identity b{color:#edf5ef}.hubhome-top .brand b{color:#bad884!important}.hubhome-top .hub-preview-label,.hubhome-top .session-identity small{color:#c4d8ca}.hubhome-top .hub-preview-label{border-color:#527062}.top .sidebar-toggle{background:#31594c;border-color:#527062;color:white}.top-dock-layout.shell,.top-dock-layout.shell.sidebar-hidden{grid-template-columns:minmax(0,1fr)}.top-dock-layout>#crm-sidebar{display:none}.crm-dock-bar{background:#163e36;padding:8px 24px 12px;position:sticky;top:0;z-index:4;display:flex;justify-content:center}.crm-dock{display:flex;gap:7px;align-items:center;padding:9px 14px 20px;border:1px solid #ffffff19;border-radius:15px;background:#214d42;box-shadow:0 7px 18px #102d2418;max-width:100%;margin:0;isolation:isolate;min-height:83px}.crm-dock .dock-item{width:76px;height:49px;border:0;border-radius:11px;padding:10px;position:relative;display:flex;align-items:center;justify-content:center;background:transparent;color:#d6e6dc;transform:translateY(var(--dock-lift,0)) scale(var(--dock-scale,1));transform-origin:center bottom;transition:transform 110ms ease-out,background 150ms ease,color 150ms ease;flex-shrink:0}.crm-dock .dock-item:hover,.crm-dock .dock-item:focus-visible{background:#fff;color:#1b6659;z-index:3}.crm-dock .dock-item:focus-visible{outline:2px solid #bad884;outline-offset:3px;--dock-scale:1.24;--dock-lift:-4px}.crm-dock .dock-item.active{background:#dcebcf;color:#174c40}.crm-dock .nav-icon{width:25px;height:25px;display:grid;place-items:center}.crm-dock .nav-icon svg{width:25px;height:25px}.crm-dock .nav-label{position:absolute;top:calc(100% + 6px);left:50%;transform:translateX(-50%);font-size:10px;white-space:nowrap;color:#f1f7ef;opacity:0;pointer-events:none;line-height:1.2;font-weight:500}.crm-dock .dock-item:hover .nav-label,.crm-dock .dock-item:focus-visible .nav-label,.crm-dock .dock-item.active .nav-label{opacity:1}.crm-dock .badgecount{position:absolute;right:5px;top:1px;background:#bad884;color:#163e36;font-size:9px;min-width:17px;height:17px;display:grid;place-items:center;border-radius:20px;padding:0 3px}.top-dock-layout.sidebar-hidden .crm-dock-bar{display:none}.crm-dock .dock-item:hover .badgecount{background:#1b6659;color:white}.top-dock-layout .content{max-width:1450px;width:100%}@media(max-width:750px){.crm-dock-bar{padding:7px 8px 10px;justify-content:flex-start;overflow-x:auto;overscroll-behavior-x:contain}.crm-dock{gap:2px;padding:7px 9px 22px;max-width:none}.crm-dock .dock-item{width:65px;height:43px}.crm-dock .nav-label{font-size:9px;opacity:1}.crm-dock .dock-item{transform:none!important}}@media(prefers-reduced-motion:reduce){.crm-dock .dock-item{transition:none;transform:none!important}}@media(hover:none){.crm-dock .nav-label{opacity:1}.crm-dock .dock-item{transform:none!important}}

/* Compact always-visible dock inside the title bar. */
header.top.compact-dock-header{display:grid;grid-template-columns:minmax(160px,1fr) auto minmax(0,1fr);align-items:center;gap:12px;min-height:64px;padding:10px 20px;overflow:visible;position:relative;z-index:6}.compact-dock-header .compact-header-left{margin:0;gap:6px;flex-wrap:nowrap;white-space:nowrap}.compact-dock-header .compact-header-left small{font-size:11px}.compact-dock-header .compact-header-left .breadcrumb{font-size:13px}.compact-header-right{display:flex;align-items:center;justify-content:flex-end;gap:12px;min-width:0}.compact-header-right>.actions{margin:0;gap:7px;flex-wrap:nowrap}.compact-header-right .header-field{font-size:0!important;line-height:1;margin:0!important;gap:0}.compact-header-right .header-field input{font-size:11px!important;width:105px;padding:7px!important;margin:0}.compact-header-right .header-field select{font-size:11px!important;width:145px;padding:7px;margin:0}.compact-dock-header .session-controls{margin:0;gap:7px}.compact-dock-header .session-identity b{font-size:11px}.compact-dock-header .session-identity small{font-size:10px}.compact-dock-header .session-controls button{font-size:11px;padding:6px 8px;white-space:nowrap}.compact-dock-header .crm-dock-bar{display:flex!important;position:static;background:none;padding:0;overflow:visible;z-index:7;justify-content:center}.compact-dock-header .crm-dock{padding:3px 5px;gap:3px;min-height:0;background:#ffffff0b;border:1px solid #ffffff13;border-radius:11px;box-shadow:none;overflow:visible}.compact-dock-header .crm-dock .dock-item{width:35px;height:35px;padding:7px;border-radius:8px}.compact-dock-header .crm-dock .nav-icon,.compact-dock-header .crm-dock .nav-icon svg{width:20px;height:20px}.compact-dock-header .crm-dock .nav-label{opacity:0;background:#fff;color:#174c40;border:1px solid #dce5df;border-radius:6px;box-shadow:0 4px 15px #1232;padding:6px 9px;top:calc(100% + 10px);font-size:11px}.compact-dock-header .crm-dock .dock-item:hover .nav-label,.compact-dock-header .crm-dock .dock-item:focus-visible .nav-label{opacity:1}.compact-dock-header .crm-dock .badgecount{right:-2px;top:-2px;min-width:14px;height:14px;font-size:8px}@media(max-width:1200px){header.top.compact-dock-header{grid-template-columns:auto 1fr auto;gap:10px;padding:10px 14px}.compact-dock-header .compact-header-left small{display:none}.compact-dock-header .session-identity{display:none}.compact-header-right{gap:7px}.compact-header-right .header-field select{width:135px}}@media(max-width:800px){header.top.compact-dock-header{grid-template-columns:1fr auto;gap:10px}.compact-dock-header .crm-dock-bar{grid-column:1/-1;grid-row:2;justify-content:center}.compact-header-right{grid-column:2;grid-row:1}.compact-header-right .header-field input{width:100px}.compact-header-right .header-field select{width:125px}.compact-dock-header .crm-dock .dock-item{width:36px;transform:none!important}}@media(max-width:450px){.compact-dock-header .compact-header-left .breadcrumb{font-size:11px}.compact-header-right .header-field select{width:110px}.compact-header-right .header-field input{width:95px}.compact-dock-header .session-controls button{font-size:10px;padding:5px}.compact-header-right{flex-wrap:wrap}.compact-dock-header .crm-dock{gap:3px}.compact-dock-header .crm-dock .dock-item{width:32px}}
@media(min-width:1201px){.compact-header-right .header-field input{width:96px}.compact-header-right .header-field select{width:120px}.compact-header-right{gap:9px}.compact-dock-header .session-controls{gap:7px}.compact-dock-header .session-identity{max-width:150px}.compact-dock-header .session-identity small{font-size:9px}.compact-dock-header .session-controls button{font-size:10px;padding:6px}.compact-dock-header .crm-dock{gap:2px}.compact-dock-header .crm-dock .dock-item{width:32px;height:34px}}

/* Spaced, page-centred icons and a persistent, contextual header. */
header.top,header.top.compact-dock-header,.hubhome-top{position:sticky;top:0;z-index:30}.compact-dock-header .compact-header-left{gap:12px}.compact-dock-header .compact-header-left small{display:inline-flex!important;align-items:center;gap:9px;min-width:0;white-space:nowrap}.compact-dock-header .compact-header-left .crumb-separator{opacity:.55}.compact-dock-header .crm-dock{gap:7px;padding:4px 9px}.compact-dock-header .crm-dock .dock-item{width:32px;height:34px}.compact-header-right .header-field select{width:83px}.compact-header-right .header-field input{width:96px}.compact-header-right{gap:12px}.compact-dock-header .crm-dock-bar{justify-self:center}.compact-dock-header .compact-header-left{min-width:0}.compact-dock-header .compact-header-left small span:last-child{overflow:hidden;text-overflow:ellipsis}.compact-dock-header .compact-header-left .breadcrumb{flex-shrink:0}@media(min-width:901px){header.top.compact-dock-header{grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);gap:16px;padding-left:24px;padding-right:24px}.compact-dock-header .compact-header-left small{font-size:11px}.compact-header-right .header-field select{width:83px}.compact-dock-header .crm-dock{gap:7px}}@media(max-width:900px){header.top.compact-dock-header{grid-template-columns:1fr auto}.compact-dock-header .crm-dock-bar{grid-column:1/-1;grid-row:2}.compact-header-right{grid-column:2;grid-row:1}.compact-dock-header .compact-header-left small{font-size:10px;gap:5px}.compact-dock-header .compact-header-left{gap:7px}.compact-dock-header .session-identity{display:none}.compact-dock-header .crm-dock{gap:7px}.compact-header-right .header-field select{width:67px}.compact-header-right .header-field input{width:92px}}@media(max-width:600px){.compact-dock-header .compact-header-left small span:last-child,.compact-dock-header .compact-header-left small .crumb-separator:last-of-type{display:none}.compact-dock-header .crm-dock{gap:5px}}
.quick-contract-search{position:fixed;inset:0;margin:auto;width:min(580px,calc(100vw - 32px));padding:20px 24px;max-height:80dvh;border:1px solid #ccdcd3;border-radius:14px;box-shadow:0 24px 90px #163e3640}.quick-contract-search label{display:flex;justify-content:space-between;align-items:center;font-size:14px;margin:0 0 12px}.quick-contract-search label small{font-size:11px;color:#72847d;font-weight:400}.quick-contract-line{display:flex;gap:10px;align-items:center}.quick-contract-line input{flex:1;width:0;font-size:17px;padding:12px 14px;margin:0}.quick-contract-line button{border:0;background:transparent;padding:8px;font-size:23px;line-height:1}.quick-contract-search p{font-size:12px;color:#9c493c;margin:8px 0 0}.go-home:before{content:none!important}

.compact-dock-header .crm-dock .dock-item.active .nav-label{display:none!important}

.compact-header-left small .crumb-link{border:0;background:none;color:inherit;font:inherit;line-height:30px;padding:0;margin:0;white-space:nowrap;cursor:pointer;min-width:0;max-width:160px;overflow:hidden;text-overflow:ellipsis}.compact-header-left small .crumb-link:hover{text-decoration:underline;text-underline-offset:3px}.compact-header-left small .crumb-link:focus-visible{outline:2px solid #bad884;outline-offset:3px}.compact-header-left small .crumb-link[aria-current=page]{font-weight:650}
.compact-header-left small .crumb-link,.compact-header-left small .crumb-link:hover,.compact-header-left small .crumb-link[aria-current=page]{text-decoration:underline;text-underline-offset:3px;text-decoration-thickness:1px;background:transparent!important;box-shadow:none!important;color:inherit!important;font-weight:400}
/* Links remain quiet until hovered; keyboard focus stays visible. */
.compact-header-left small .crumb-link,.compact-header-left small .crumb-link[aria-current=page]{text-decoration:none}
.compact-header-left small .crumb-link:hover,.compact-header-left small .crumb-link[aria-current=page]:hover,.compact-header-left small .crumb-link:focus-visible{text-decoration:underline}
