/* All dashboard filter controls share one appearance and responsive policy. */
.portal-app #content-area .shared-filter-grid {
  display:grid; grid-template-columns:repeat(auto-fit,minmax(min(180px,100%),1fr));
  align-items:end; gap:12px; min-width:0; max-width:100%; margin-bottom:16px;
}
.shared-filter-grid > .shared-filter-field { min-width:0; max-width:100%; }
.shared-filter-grid > .shared-filter-field > br { display:none; }
.shared-filter-grid .shared-filter-field > label { display:block; font-size:13px; line-height:1.4; color:#475569; }
.shared-filter-grid .shared-dashboard-control,
.shared-filter-grid .shared-filter-multiselect-control {
  width:100%; max-width:100%; min-width:0; min-height:40px; padding:8px 10px;
  margin-top:5px; border:1px solid #d1d5db; border-radius:8px;
  background:#fff; color:#111827; box-sizing:border-box; font-family:inherit;
}
.shared-filter-grid .shared-dashboard-control:focus {
  outline:none; border-color:#16a34a; box-shadow:0 0 0 3px rgba(22,163,74,.12);
}
.shared-filter-grid > .shared-filter-dates { grid-column:1 / -1; }
.shared-filter-footer { display:none; grid-column:1 / -1; }
.shared-filter-footer[hidden],.shared-filter-active[hidden] { display:none; }
.shared-filter-more { min-height:40px; padding:8px 12px; border:1px solid #d1d5db; border-radius:8px; background:#f8fafc; color:#334155; font:inherit; cursor:pointer; }
.shared-filter-more:focus-visible { outline:2px solid #15803d; outline-offset:2px; }
.shared-filter-active { font-size:12px; line-height:1.5; color:#475569; overflow-wrap:anywhere; }
@media(max-width:720px){
  .portal-app #content-area .shared-filter-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; }
  .shared-filter-grid .shared-dashboard-control,.shared-filter-grid .shared-filter-multiselect-control { min-height:44px; font-size:16px; }
  .shared-filter-grid:not(.shared-filters-expanded) > .shared-filter-extra { display:none !important; }
  .shared-filter-footer { display:flex; align-items:center; flex-wrap:wrap; gap:8px; }
  .shared-filter-active { flex:1 1 180px; }
  .shared-filter-grid [id$="_dropdown"] { width:100%; min-width:0 !important; max-width:100%; }
  .shared-filter-multiselect-control > span:first-child { min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
  #content-area .shared-filter-action-row { display:flex; flex-wrap:wrap; gap:10px; }
  #content-area .shared-filter-action-row > input:not([type=checkbox]),
  #content-area .shared-filter-action-row > label,
  #content-area .shared-filter-action-row > span { flex-basis:100%; }
  #content-area .shared-filter-action-row > button { flex:1 1 calc(50% - 10px); min-width:0; white-space:normal; }
  #content-area .shared-filter-action-row > input { width:100%; }
}

.shared-filter-grid .shared-filter-dates > div { min-width:0; }

/* One contiguous account-action row, with no permission placeholders. */
.portal-account-actions { display:flex;align-items:center;gap:10px;flex-wrap:nowrap;max-width:100%;overflow-x:auto;margin-top:5px;padding-bottom:4px; }
.portal-account-actions button { flex:0 0 auto;white-space:nowrap; }
[data-shared-empty-hidden] { display:none !important; }
.shared-date-control { position:relative;display:flex;align-items:center;min-height:40px;border:1px solid #d1d5db;border-radius:8px;background:#fff;padding:8px 12px;box-sizing:border-box; }
.shared-date-control > span { pointer-events:none;white-space:nowrap; }
.shared-date-control > input[type="date"] { position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer;margin:0; }
.shared-date-control:focus-within { outline:2px solid #16a34a;outline-offset:2px; }
.provider-session-warning { display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;padding:14px 16px;margin:12px 0;border:1px solid #f59e0b;border-radius:10px;background:#fffbeb;color:#92400e; }
.provider-session-warning[hidden] { display:none; }


/* Search fields use the same slot as other filters, never a full desktop row. */
.portal-app .shared-search-field { display:block;min-width:0;width:100%;max-width:320px;box-sizing:border-box; }
.portal-app .shared-search-label { display:block;font-size:13px;line-height:1.4;color:#475569; }
.portal-app input.shared-search-input { display:block;width:100%;max-width:320px;min-width:0;min-height:40px;padding:8px 10px;margin-top:5px;border:1px solid #d1d5db;border-radius:8px;background:#fff;color:#111827;box-sizing:border-box;font:inherit; }
.portal-app input.shared-search-input:focus { outline:none;border-color:#16a34a;box-shadow:0 0 0 3px rgba(22,163,74,.12); }
.portal-app .shared-filter-grid > .shared-filter-search { grid-column:auto; }
@media(max-width:720px){ .portal-app .shared-search-field,.portal-app input.shared-search-input { max-width:100%; } .portal-app input.shared-search-input { min-height:44px;font-size:16px; } }
