/* A toolbar owns its control geometry, including AI and export actions.
   Standalone chart actions keep the compact size from ai-actions.css. */
:root[data-style][data-theme] :is(.header-controls-right, .business-report-toolbar, .history-range-toolbar, .location-analysis-velocity-toolbar) {
  --toolbar-control-height: var(--ent-control-height, clamp(30px, 2.8vw, 34px));
  align-items: center;
}
:root[data-style][data-theme] :is(.header-controls-right, .business-report-toolbar, .history-range-toolbar, .location-analysis-velocity-toolbar) :is(
  button, select, input:is([type="date"], [type="text"], [type="search"])
) {
  box-sizing: border-box;
  height: var(--toolbar-control-height);
  min-height: var(--toolbar-control-height);
  padding-block: 0;
  font-size: 13px;
  line-height: normal;
}
:root[data-style][data-theme] :is(.business-report-toolbar, .history-range-toolbar) button[data-ai-action] {
  --ai-action-height: var(--toolbar-control-height);
}
:root[data-style][data-theme] :is(.business-report-toolbar, .history-range-toolbar) button.module-export,
:root[data-style][data-theme] .location-analysis-velocity-toolbar button.module-export,
:root[data-style][data-theme] .header-controls-right :is(.workday-shift-btn, .ctrl > button) {
  width: var(--toolbar-control-height);
  min-width: var(--toolbar-control-height);
  padding: 0;
  align-self: center;
}
/* The daily-report action shares a header with export. Keep both compact and
   equal in height; standalone chart interpretation buttons remain 26px. */
:root[data-style][data-theme] .stats-group-title-actions button[data-ai-action] {
  --ai-action-height: 32px;
}
/* Report header actions share a square frame, including the AI refresh action.
   Override compact AI sizing and theme control minimums in this toolbar only. */
:root[data-style][data-theme] .business-ai-report-modal .inventory-stats-sku-search-dialog-actions > button {
  --dialog-action-size: 28px;
  --ai-action-height: var(--dialog-action-size);
  box-sizing: border-box;
  width: var(--dialog-action-size);
  height: var(--dialog-action-size);
  min-width: var(--dialog-action-size);
  min-height: var(--dialog-action-size);
  flex: 0 0 var(--dialog-action-size);
  padding: 0;
}
