/* Activity controls share one baseline and one field boundary. */
body.rhenau-ui[data-auth=ready] .activity-toolbar{
 display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:end;gap:20px;
 margin:0 0 20px;padding:20px;border-radius:16px;
}
body.rhenau-ui[data-auth=ready] .activity-toolbar .account-switcher{
 display:grid;grid-template-columns:minmax(0,1fr);gap:8px;min-width:0;max-width:none;width:100%;
}
body.rhenau-ui[data-auth=ready] .activity-toolbar .account-switcher label,
body.rhenau-ui[data-auth=ready] .activity-filter-selects label{
 display:grid;gap:8px;min-width:0;margin:0;color:var(--muted,#61717b);font:500 12px/1.4 var(--font);
}
body.rhenau-ui[data-auth=ready] :is(.activity-toolbar .account-switcher,.activity-filter-selects) select{
 display:block;box-sizing:border-box;appearance:none;-webkit-appearance:none;width:100%;min-width:0;max-width:100%;height:50px;min-height:50px;
 margin:0;padding:0 42px 0 14px;border:1px solid #c7d1d8;border-radius:12px;
 background-color:#fff;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='m1 1 5 5 5-5' fill='none' stroke='%2361717b' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
 background-repeat:no-repeat;background-size:12px 8px;background-position:right 16px center;
 box-shadow:none;color:var(--ink,#182a36);font:400 16px/1.25 var(--font);text-overflow:ellipsis;cursor:pointer;
}
body.rhenau-ui[data-auth=ready] .activity-toolbar-actions{
 display:flex;align-items:center;justify-content:flex-end;flex-wrap:wrap;gap:10px;min-width:0;
}
body.rhenau-ui[data-auth=ready] .activity-toolbar-actions>.btn{
 display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:50px;margin:0;white-space:nowrap;
}
body.rhenau-ui[data-auth=ready] .activity-toolbar-actions>.btn>.icon{width:18px;height:18px;flex:none}
body.rhenau-ui[data-auth=ready] .activity-filters{
 display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:start;gap:12px;margin:0 0 20px;min-width:0;
}
body.rhenau-ui[data-auth=ready] .activity-search{
 display:grid;grid-template-columns:18px minmax(0,1fr) auto;align-items:center;gap:10px;
 box-sizing:border-box;min-width:0;height:50px;min-height:50px;padding:0 4px 0 14px;
 border:1px solid #c7d1d8;border-radius:12px;background:#fff;box-shadow:none;
}
body.rhenau-ui[data-auth=ready] .activity-search>.icon{
 display:block;width:18px;height:18px;margin:0;color:var(--muted,#61717b);pointer-events:none;
}
/* The outer search surface owns the border; the native input stays transparent. */
body.rhenau-ui[data-auth=ready] .activity-search>input[type=search]{
 appearance:none;-webkit-appearance:none;display:block;box-sizing:border-box;width:100%;min-width:0;height:48px;min-height:48px;
 margin:0;padding:0;border:0;border-radius:0;background:transparent;box-shadow:none;
 color:var(--ink,#182a36);font:400 16px/1.25 var(--font);outline:none;
}
body.rhenau-ui[data-auth=ready] .activity-search>input[type=search]::-webkit-search-decoration,
body.rhenau-ui[data-auth=ready] .activity-search>input[type=search]::-webkit-search-cancel-button{appearance:none;-webkit-appearance:none}
body.rhenau-ui[data-auth=ready] .activity-search>.search-clear{
 display:grid;place-items:center;box-sizing:border-box;width:44px;min-width:44px;height:44px;min-height:44px;
 margin:0;padding:0;border:0;border-radius:9px;background:transparent;color:var(--muted,#61717b);
}
body.rhenau-ui[data-auth=ready] .activity-search>.search-clear[hidden]{display:none}
body.rhenau-ui[data-auth=ready] .activity-search>.search-clear>.icon{width:16px;height:16px;margin:0}
body.rhenau-ui[data-auth=ready] .activity-search>.search-clear:hover{background:var(--soft,#edf1f3);color:var(--ink,#182a36)}
body.rhenau-ui[data-auth=ready] .activity-search:focus-within{
 border-color:var(--focus,#3f829e);outline:3px solid var(--focus,#3f829e);outline-offset:3px;box-shadow:none;
}
body.rhenau-ui[data-auth=ready] .activity-filter-disclosure{position:relative;min-width:0}
body.rhenau-ui[data-auth=ready] .activity-filter-disclosure>summary{
 display:flex;align-items:center;justify-content:center;gap:8px;box-sizing:border-box;min-width:104px;height:50px;min-height:50px;
 margin:0;padding:0 16px;border:1px solid #c7d1d8;border-radius:12px;background:#fff;box-shadow:none;
 color:var(--ink,#182a36);font:500 14px/1.25 var(--font);list-style:none;cursor:pointer;
}
body.rhenau-ui[data-auth=ready] .activity-filter-disclosure>summary::marker{content:""}
body.rhenau-ui[data-auth=ready] .activity-filter-disclosure>summary::-webkit-details-marker{display:none}
body.rhenau-ui[data-auth=ready] .activity-filter-disclosure>summary::after{
 content:"";width:6px;height:6px;margin-top:-3px;margin-left:2px;border-right:1.5px solid currentColor;border-bottom:1.5px solid currentColor;transform:rotate(45deg);flex:none;
}
body.rhenau-ui[data-auth=ready] .activity-filter-disclosure[open]>summary{background:var(--selected-surface,#eaf0f4);border-color:#9fb7c3}
body.rhenau-ui[data-auth=ready] .activity-filter-disclosure[open]>summary::after{margin-top:3px;transform:rotate(225deg)}
body.rhenau-ui[data-auth=ready] .activity-filter-count{color:var(--navy,#173d51);font-size:16px;line-height:1}
body.rhenau-ui[data-auth=ready] .activity-filter-disclosure .activity-filter-selects{
 position:absolute;z-index:30;top:calc(100% + 10px);right:0;display:grid;grid-template-columns:minmax(0,1fr);gap:16px;
 box-sizing:border-box;width:min(280px,calc(100vw - 44px));max-width:calc(100vw - 44px);margin:0;padding:18px;
 border:1px solid #d5dfe5;border-radius:14px;background:#fff;box-shadow:0 12px 28px rgba(21,41,53,.12);
}
body.rhenau-ui[data-auth=ready] .activity-filter-disclosure:not([open])>.activity-filter-selects{display:none}
body.rhenau-ui[data-auth=ready] :is(.activity-toolbar,.activity-filters) :is(select,summary,button):focus-visible{
 outline:3px solid var(--focus,#3f829e);outline-offset:3px;
}
body.rhenau-ui[data-auth=ready] .active-filter-list{display:flex;flex-wrap:wrap;align-items:center;gap:8px;min-width:0}
body.rhenau-ui[data-auth=ready] .active-filter-list>.filter-chip{min-height:44px;max-width:100%;padding:8px 12px;font-size:12px}
body.rhenau-ui[data-auth=ready] .active-filter-list>.filter-chip>span{min-width:0;overflow-wrap:anywhere}

/* Keep the message bell in the same 44px box as its neighbouring actions. */
body.rhenau-ui[data-auth=ready][data-page=payments] .top-actions{align-items:center;gap:8px}
body.rhenau-ui[data-auth=ready][data-page=payments] .top-actions>[data-action=notifications]{
 place-items:center;box-sizing:border-box;align-self:center;flex:0 0 44px;width:44px;min-width:44px;height:44px;min-height:44px;margin:0;padding:0;line-height:1;
}
body.rhenau-ui[data-auth=ready][data-page=payments] .top-actions>[data-action=notifications]>.icon{display:block;width:20px;height:20px;margin:0;padding:0}

@media(max-width:900px){
 body.rhenau-ui[data-auth=ready] .activity-toolbar{gap:16px;padding:18px}
 body.rhenau-ui[data-auth=ready] .activity-toolbar-actions{gap:8px}
 body.rhenau-ui[data-auth=ready] .activity-toolbar-actions>.btn{padding-right:14px;padding-left:14px}
}
@media(max-width:760px){
 body.rhenau-ui[data-auth=ready] .activity-toolbar{grid-template-columns:minmax(0,1fr);gap:16px;padding:18px;margin-bottom:16px}
 body.rhenau-ui[data-auth=ready] .activity-toolbar-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;width:100%}
 body.rhenau-ui[data-auth=ready] .activity-toolbar-actions>.btn{width:100%;min-width:0;min-height:48px;font-size:13px}
 body.rhenau-ui[data-auth=ready] .activity-filters{gap:8px;margin-bottom:16px}
 body.rhenau-ui[data-auth=ready] .activity-filter-disclosure>summary{min-width:92px;padding:0 12px;font-size:13px}
}
@media(max-width:360px){
 body.rhenau-ui[data-auth=ready] .activity-filters{grid-template-columns:minmax(0,1fr);gap:10px}
 body.rhenau-ui[data-auth=ready] .activity-filter-disclosure{justify-self:end}
}
@media(forced-colors:active){
 body.rhenau-ui[data-auth=ready] :is(.activity-search,.activity-filter-disclosure>summary,.activity-filter-disclosure .activity-filter-selects){background:Canvas;color:CanvasText;border:1px solid ButtonText;box-shadow:none}
 body.rhenau-ui[data-auth=ready] :is(.activity-toolbar .account-switcher,.activity-filter-selects) select{appearance:auto;background:Canvas;color:CanvasText;border:1px solid ButtonText;padding-right:12px}
 body.rhenau-ui[data-auth=ready] .activity-search:focus-within{outline-color:Highlight}
}
