/* App-wide sizing alignment for default controls.
 * Keep compact -sm controls unchanged for dense row editors/actions.
 */

:root {
  --cuebit-control-height: calc(1.5em + 0.9rem + 2px);
}

.form-control:not(.form-control-sm):not(.form-control-lg),
.form-select:not(.form-select-sm):not(.form-select-lg),
.btn:not(.btn-sm):not(.btn-lg):not(.btn-xs):not(.btn-link):not(.btn-close) {
  min-height: var(--cuebit-control-height);
}

.input-group > .form-control:not(.form-control-sm):not(.form-control-lg),
.input-group > .form-select:not(.form-select-sm):not(.form-select-lg),
.input-group > .btn:not(.btn-sm):not(.btn-lg):not(.btn-xs):not(.btn-link):not(.btn-close) {
  min-height: var(--cuebit-control-height);
}

.select2-container .select2-selection--single {
  min-height: var(--cuebit-control-height);
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
  line-height: calc(var(--cuebit-control-height) - 2px);
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
  height: calc(var(--cuebit-control-height) - 2px);
}

.app-search form .input-group .form-control,
.app-search form .input-group .topbar-search-submit {
  min-height: var(--cuebit-control-height);
}
