/* Card clicks use the existing name action; nothing covers the card content. */
.crm-trombi-tools #filters{display:grid;grid-template-columns:repeat(5,minmax(0,1fr)) auto;gap:16px;align-items:end}
.crm-trombi-tools #filters>label{min-width:0;max-width:none;margin:0}
.crm-trombi-tools #filters input,.crm-trombi-tools #filters select{min-width:0;width:100%}
.crm-trombi-tools .crm-trombi-submit{display:flex;justify-content:flex-end;align-items:center;gap:10px;align-self:end}
.crm-trombi-tools .crm-trombi-submit button{white-space:nowrap}
.crm-trombi-tools .crm-trombi-reset{background:transparent!important;border:0!important;color:#66758b!important;padding:8px 0!important;font-size:12px!important;box-shadow:none!important}
.crm-trombi-tools .crm-trombi-reset:hover{text-decoration:underline}
.page-header.crm-trombi-heading{display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap;background:#101a27;color:#fff;padding:16px 22px;border-radius:18px}
.page-header.crm-trombi-heading #title{margin:0;color:#fff;font-size:clamp(22px,2.2vw,32px)}
.page-header.crm-trombi-heading #page-actions{margin:0;min-width:0}
.crm-trombi-header-actions{display:flex;align-items:center;gap:8px;flex-wrap:nowrap;justify-content:flex-end}
/* All three controls share the same style, overriding legacy link/button rules. */
.page-header.crm-trombi-heading #page-actions .crm-trombi-action{display:inline-flex!important;align-items:center!important;justify-content:center!important;gap:0!important;box-sizing:border-box!important;flex:0 0 44px!important;width:44px!important;min-width:44px!important;max-width:44px!important;height:44px!important;min-height:44px!important;max-height:44px!important;margin:0!important;padding:0!important;border:1px solid var(--crm-accent,#eb008b)!important;border-radius:12px!important;background:var(--crm-accent,#eb008b)!important;color:#fff!important;font-family:inherit!important;font-size:13px!important;line-height:1!important;font-weight:700!important;white-space:nowrap!important;text-decoration:none!important;box-shadow:none!important;cursor:pointer!important;appearance:none!important}
.page-header.crm-trombi-heading #page-actions .crm-trombi-action span{display:inline!important;color:#fff!important;font-size:inherit!important;font-weight:inherit!important;opacity:1!important}
.page-header.crm-trombi-heading #page-actions .crm-trombi-action:hover{background:var(--crm-accent,#eb008b)!important;border-color:#f05ba8!important;color:#fff!important}
.page-header.crm-trombi-heading #page-actions .crm-trombi-action:focus-visible{outline:2px solid #ffb5dc!important;outline-offset:3px!important}
.page-header.crm-trombi-heading #page-actions .crm-trombi-action:disabled{opacity:.5!important;cursor:default!important}
.page-header.crm-trombi-heading #page-actions .crm-trombi-action svg{width:21px!important;height:21px!important;flex:none!important;color:#fff!important;stroke:currentColor!important}
@media(max-width:1200px){.crm-trombi-tools #filters{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:760px){.crm-trombi-tools #filters{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:480px){.crm-trombi-tools #filters{grid-template-columns:minmax(0,1fr)}}
@media(max-width:600px){.page-header.crm-trombi-heading{padding:14px}.crm-trombi-heading #page-actions{width:100%}}
.trombi .person-card{cursor:pointer;transition:border-color .15s,box-shadow .15s}
.trombi .person-card button.crm-trombi-name{all:unset!important;display:inline!important;font:inherit!important;color:inherit!important;cursor:pointer!important}
.trombi .person-card button.crm-trombi-name:focus-visible{outline:2px solid var(--pink,var(--crm-accent,#eb008b))!important;outline-offset:3px!important;border-radius:3px!important}
.trombi .person-card>.participant-photo-zoom{position:relative;width:fit-content;max-width:100%;margin-inline:auto;cursor:zoom-in}
.trombi .person-card>.participant-photo-zoom:focus-visible{outline:2px solid var(--pink,var(--crm-accent,#eb008b));outline-offset:3px}
.trombi .person-card:hover{border-color:var(--pink,var(--crm-accent,#eb008b));box-shadow:0 4px 16px #16213e0d}
@media print{.crm-trombi-heading #page-actions,.crm-trombi-tools{display:none!important}.trombi .person-card button.crm-trombi-name{display:inline!important}.trombi .person-card>.participant-photo-zoom{display:block!important;outline:0;box-shadow:none}.trombi .person-card{box-shadow:none}}

/* Compact Trombi search: one form, with the event kept in a hidden field. */
html body main #content .crm-trombi-tools{padding:14px 16px;margin-bottom:16px;border-radius:14px;background:#fff}
html body main #content .crm-trombi-tools #filters{display:grid;grid-template-columns:minmax(180px,1.4fr) repeat(4,minmax(110px,1fr)) auto;align-items:end;gap:12px;margin:0;padding:0;border:0;border-radius:0;background:transparent;box-shadow:none}
html body main #content .crm-trombi-event-tools #filters{grid-template-columns:minmax(200px,1.6fr) minmax(170px,1.3fr) minmax(145px,1fr) minmax(125px,.85fr) auto}
html body main #content .crm-trombi-tools #filters>label{display:grid;gap:5px;min-width:0!important;max-width:none;width:100%;margin:0;color:#607089;font-size:12px;line-height:1.3}
html body main #content .crm-trombi-tools #filters :is(input:not([type=hidden]),select){box-sizing:border-box;width:100%!important;min-width:0!important;max-width:100%;height:40px;min-height:40px;padding:8px 10px;border:1px solid #dce1ed;border-radius:9px;background:#fff;color:#26364f;font-size:13px;line-height:1.3}
html body main #content .crm-trombi-tools #filters .crm-company-picker-input{padding-right:36px}
html body main #content .crm-trombi-tools #filters .crm-company-picker-toggle{top:3px;right:3px;bottom:3px;width:30px;min-width:30px;min-height:0;padding:5px;border:0;background:transparent;box-shadow:none}
html body main #content .crm-trombi-tools .crm-trombi-submit{display:flex;gap:8px;align-items:center;justify-content:flex-end;min-width:0}
html body main #content .crm-trombi-tools .crm-trombi-submit>button{display:inline-flex!important;align-items:center;justify-content:center;gap:7px;box-sizing:border-box;height:40px;min-height:40px;margin:0;padding:8px 12px!important;border-radius:9px;border:1px solid #dce1ed!important;font-size:13px!important;line-height:1.3;font-weight:600;white-space:nowrap;box-shadow:none!important}
html body main #content .crm-trombi-tools .crm-trombi-submit>.crm-trombi-validate{background:var(--crm-accent,#eb008b)!important;color:#fff!important;border-color:var(--crm-accent,#eb008b)!important}
html body main #content .crm-trombi-tools .crm-trombi-submit>.crm-trombi-reset{background:#fff!important;color:#435571!important;text-decoration:none}
html body main #content .crm-trombi-tools .crm-trombi-submit>button>.icon{width:18px;height:18px;flex:0 0 18px;margin:0}
html body main #content .crm-trombi-tools .crm-trombi-summary{margin:10px 0 0;gap:10px;font-size:13px;line-height:1.3;color:#607089}
html body main #content .crm-trombi-tools .crm-trombi-summary strong{color:#26364f;font-size:13px;font-weight:700}
@media(max-width:1250px){
 html body main #content .crm-trombi-tools #filters{grid-template-columns:repeat(3,minmax(0,1fr))}
 html body main #content .crm-trombi-tools .crm-trombi-submit{grid-column:auto}
 html body main #content .crm-trombi-event-tools .crm-trombi-submit{grid-column:2/-1}
}
@media(max-width:760px){
 html body main #content .crm-trombi-tools{padding:12px}
 html body main #content .crm-trombi-tools #filters{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
 html body main #content .crm-trombi-tools #filters>label:has([name=q]),html body main #content .crm-trombi-tools #filters>label:has([name=company_id]),html body main #content .crm-trombi-tools #filters>label:has(select[name=event_id]){grid-column:1/-1}
 html body main #content .crm-trombi-tools #filters :is(input:not([type=hidden]),select){height:44px;min-height:44px;font-size:16px}
 html body main #content .crm-trombi-tools .crm-trombi-submit{grid-column:1/-1}
 html body main #content .crm-trombi-tools .crm-trombi-submit>button{flex:1;min-height:44px;height:44px}
}

/* Header actions stay identical even while the legacy heading class is refreshed. */
html body main .page-header #page-actions .crm-trombi-header-actions{display:flex!important;align-items:center!important;justify-content:flex-end!important;gap:8px!important;flex-wrap:nowrap!important;margin:0!important}
html body main .page-header #page-actions .crm-trombi-header-actions>.crm-trombi-action{display:inline-flex!important;align-items:center!important;justify-content:center!important;box-sizing:border-box!important;flex:0 0 40px!important;width:40px!important;min-width:40px!important;max-width:40px!important;height:40px!important;min-height:40px!important;max-height:40px!important;padding:0!important;margin:0!important;border:1px solid var(--crm-accent,#eb008b)!important;border-radius:10px!important;background:var(--crm-accent,#eb008b)!important;color:#fff!important;text-decoration:none!important;font-size:13px!important;font-weight:700!important;line-height:1!important;box-shadow:none!important}
html body main .page-header #page-actions .crm-trombi-header-actions>.crm-trombi-action>span{display:inline-flex!important;align-items:center!important;justify-content:center!important;line-height:1!important;color:inherit!important;font-size:13px!important;pointer-events:none}
html body main .page-header #page-actions .crm-trombi-header-actions>.crm-trombi-action svg{display:block!important;width:20px!important;height:20px!important;min-width:20px!important;flex:0 0 20px!important;margin:0!important;padding:0!important;color:inherit!important;stroke:currentColor!important;pointer-events:none}
html body main .page-header #page-actions .crm-trombi-header-actions>.crm-trombi-action:disabled{opacity:.5!important;cursor:default!important}
@media(max-width:760px){html body main .page-header #page-actions .crm-trombi-header-actions>.crm-trombi-action{flex-basis:44px!important;width:44px!important;min-width:44px!important;max-width:44px!important;height:44px!important;min-height:44px!important;max-height:44px!important}}
