:root {
  --app-field-height: 34px;
}

input.form-control,
input[type="color"].form-control,
input[type="date"].form-control,
input[type="datetime-local"].form-control,
input[type="datetime"].form-control,
input[type="email"].form-control,
input[type="file"].form-control,
input[type="month"].form-control,
input[type="number"].form-control,
input[type="password"].form-control,
input[type="search"].form-control,
input[type="tel"].form-control,
input[type="text"].form-control,
input[type="time"].form-control,
input[type="url"].form-control,
input[type="week"].form-control,
select.form-control,
.bootstrap-select > .dropdown-toggle,
.select2-container .select2-selection--single,
.input-group-addon,
.input-group-btn > .btn,
.bootstrap-select .bs-searchbox input.form-control,
.iti--allow-dropdown .iti__selected-country,
.iti--show-selected-dial-code .iti__selected-country,
.iti__selected-country-primary {
  height: var(--app-field-height) !important;
  min-height: var(--app-field-height) !important;
}

textarea.form-control,
.select2-container .select2-selection--multiple {
  min-height: var(--app-field-height) !important;
}

.bootstrap-select > .dropdown-toggle {
  padding-top: 6px !important;
  padding-bottom: 6px !important;
}

.bootstrap-select .dropdown-toggle .filter-option,
.bootstrap-select .dropdown-toggle .filter-option-inner,
.bootstrap-select .dropdown-toggle .filter-option-inner-inner {
  line-height: 21px !important;
}

.select2-container .select2-selection--single .select2-selection__rendered {
  line-height: 32px !important;
}

.select2-container .select2-selection--single .select2-selection__arrow {
  height: 34px !important;
}

.iti {
  width: 100%;
}

.iti input.form-control,
.iti input[type="tel"] {
  height: var(--app-field-height) !important;
  min-height: var(--app-field-height) !important;
}

.input-group-btn > .btn,
.iti--allow-dropdown .iti__selected-country,
.iti--show-selected-dial-code .iti__selected-country,
.iti__selected-country-primary,
.iti__selected-flag,
.iti__selected-dial-code {
  display: flex;
  align-items: center;
}

.input-group-btn > .btn {
  justify-content: center;
  padding-top: 6px !important;
  padding-bottom: 6px !important;
}

.bootstrap-select .bs-searchbox input.form-control,
.input-group-addon,
.select2-container .select2-selection--single {
  padding-top: 6px !important;
  padding-bottom: 6px !important;
}

.iti__selected-country-primary,
.iti__selected-dial-code {
  height: var(--app-field-height) !important;
  min-height: var(--app-field-height) !important;
  line-height: 1 !important;
}

.iti__flag-container {
  padding: 0 !important;
}

.iti__selected-flag {
  height: 100% !important;
}

ul.nav.navbar-nav.navbar-right > li:not([class]) {
  display: none !important;
}

ul.nav.navbar-nav.navbar-right > li:not([class]) > a {
  display: none !important;
}

/* Hide "+ New Subscription" button — subscriptions are managed via Module Manager */
a[href*="subscriptions/create"],
a[href*="subscriptions/create"].btn,
a[href$="/subscriptions/create"] {
  display: none !important;
}
