/* One global navigation level; each screen owns its original actions below it. */
[data-crm-global-header]{flex-wrap:wrap;row-gap:6px!important}
[data-crm-global-header]:after{display:none!important}
[data-crm-global-header]>h1{order:0}
[data-crm-global-header]>[data-head-search]{order:1}
[data-crm-global-header]>[data-head-spacer]{order:2}
[data-crm-global-header] .head-right{display:flex!important;order:3;flex-wrap:wrap;max-width:100%;margin-inline-start:auto}
[data-crm-global-header] .head-global{display:flex!important;align-items:center;flex-wrap:wrap;gap:6px;max-width:100%;order:0}
.crm-section-toolbar{position:relative;z-index:19;display:flex;align-items:center;flex-wrap:wrap;gap:8px;flex-shrink:0;min-width:0;margin:12px var(--frame) 0;padding:0 0 12px;border-bottom:1px solid var(--line);color:var(--ink)}
.crm-section-toolbar>.head-actions{display:flex;align-items:center;flex-wrap:wrap;gap:8px;min-width:0;max-width:100%;width:100%}
.crm-section-toolbar:has(>.head-actions:empty){display:none}
.crm-section-toolbar .crm-deals-toolbar{max-width:100%}
.crm-section-toolbar .crm-deals-toolbar-more{margin-inline-start:0}
.crm-section-toolbar[data-crm-deals-compact] .crm-deals-toolbar{flex-wrap:wrap}
.crm-section-toolbar[data-crm-deals-compact] .crm-deals-toolbar-primary{flex-wrap:wrap;max-width:100%}
.crm-section-toolbar .head-actions>.btn-pill{flex-shrink:0}
@media(max-width:767.98px){
  /* Native mobile controls already live with their list/FAB. Keep them mounted. */
  .crm-section-toolbar{display:none}
  [data-crm-global-header] .head-global{gap:0}
}

.crm-section-toolbar[data-crm-surface] :is(.crm-deals-view-trigger,.crm-deals-toolbar-more){border-radius:var(--crm-control-radius)}
