/* The legacy page's inline styles, taken over 1:1. */
form {
  margin-top: 10px;
}
.branche:not(:first-child) {
  margin-top: .5em;
  padding-top: .5em;
}
.branche {
  border: 1px solid #e7e7e7;
  background: #efefef;
  border-radius: 5px;
}
.add-btn {
  margin: 0;
  padding: 2px 1em;
  height: 22px;
  line-height: 1em;
  max-width: fit-content !important;
  margin-top: -4px;
}
.service-form label {
  font-size: 16px;
}
.bootstrap-select {
  width: 100% !important;
}
.bootstrap-select button {
  background: white !important;
  color: #495057e0 !important;
  border-color: rgb(206, 212, 218);
  height: 38px;
  padding: 7px 10px;
  margin: 0;
}
.bs-searchbox input {
  max-width: calc(100% - 26px);
  height: 24px;
}
.btn.dropdown-toggle {
  height: 30px;
  padding-top: 2px;
  padding-bottom: 2px;
}
.dropdown-item.active, .dropdown-item:active {
  color: #212529;
  text-decoration: none;
  background-color: #cccccc;
}
.form-check-label.happy {
  margin-top: 0;
}
.form-control {
  height: calc(1.5em + .25rem + 2px);
}
textarea.form-control {
  padding-top: 2px;
  padding-bottom: 2px;
}
.input-group-prepend {
  width: 70%;
}
.input-group-text {
  height: calc(1.5em + .25rem + 2px);
  width: 100%;
}
.dropdown.bootstrap-select.wastes .dropdown-menu.show {
  max-width: 100% !important;
  min-width: 100% !important;
}
.dropdown.bootstrap-select.wastes button {
  height: auto;
}
.bootstrap-select .dropdown-toggle .filter-option-inner-inner {
  white-space: pre-line;
}
.bootstrap-select.show-tick .dropdown-menu .selected span.check-mark {
  left: 14px;
}
.bootstrap-select.show-tick .dropdown-menu li a span.text {
  margin-left: 8px;
}
.dropdown-item.active:hover,
.dropdown-item.active:focus {
  background-color: rgba(0, 0, 0,0.2);
}

/* Inside the iframe: no site header to clear and no category column beside the form. */
#content {
  padding-top: 0;
}
#content h1 {
  font-size: 24px;
  margin: 0;
}
@media only screen and (max-width: 771px) {
  #content h1 {
    font-size: 26px;
  }
}
#main-content-block {
  -webkit-box-flex: 0;
  -ms-flex: 0 0 100%;
  flex: 0 0 100%;
  max-width: 100%;
}
.branche-remove,
.executive-remove {
  max-width: 100%;
  margin: 0;
  padding-top: 2px;
  height: calc(1.5em + .25rem + 2px);
}
/* The first rendered branch follows Alpine's <template>, so :not(:first-child) above would match it. */
.branches > template + .branche {
  margin-top: 0;
  padding-top: 0;
}
.branches > .branche + .branche {
  margin-top: .5em;
  padding-top: .5em;
}
/*
 * Breakpoints inside the iframe follow the width of the frame, while the legacy page's follow the window,
 * and from 768px the window also holds the 220px category column. So the legacy lg layout (window from
 * 992px) starts at a 772px frame and the md layout (window from 768px) at a 548px frame.
 */
@media only screen and (min-width: 548px) {
  .col-md-3 { -ms-flex: 0 0 25%; flex: 0 0 25%; max-width: 25%; }
  .col-md-6 { -ms-flex: 0 0 50%; flex: 0 0 50%; max-width: 50%; }
  .col-md-12 { -ms-flex: 0 0 100%; flex: 0 0 100%; max-width: 100%; }
}
@media only screen and (min-width: 772px) {
  .col-lg-2 { -ms-flex: 0 0 16.666667%; flex: 0 0 16.666667%; max-width: 16.666667%; }
  .col-lg-4 { -ms-flex: 0 0 33.333333%; flex: 0 0 33.333333%; max-width: 33.333333%; }
  .col-lg-6 { -ms-flex: 0 0 50%; flex: 0 0 50%; max-width: 50%; }
  .col-lg-12 { -ms-flex: 0 0 100%; flex: 0 0 100%; max-width: 100%; }
}
[x-cloak] {
  display: none !important;
}

/*
 * Loading indicator of the lookups (companies, addresses): a small spinner at the right edge of the field
 * being looked up, shown only for a lookup that takes a while. It replaces the invalid icon meanwhile.
 */
.form-group.is-loading {
  position: relative;
}
.form-group.is-loading .form-control {
  padding-right: 2rem;
  background-image: none;
}
.loading-spinner,
.form-group.is-loading::after {
  display: inline-block;
  width: 14px;
  height: 14px;
  border: 2px solid #adb5bd;
  border-right-color: transparent;
  border-radius: 50%;
  animation: registration-form-spin .75s linear infinite;
}
.form-group.is-loading::after {
  content: '';
  position: absolute;
  top: 50%;
  right: 14px;
  margin-top: -7px;
  z-index: 3;
  pointer-events: none;
}
/* The executives come from a slow register: a note beside the heading says they are still loading. */
.loading-note {
  margin-left: .5em;
  font-size: 14px;
  color: #6c757d;
  white-space: nowrap;
}
.loading-note .loading-spinner {
  width: 12px;
  height: 12px;
  margin-right: .4em;
  vertical-align: -1px;
}
@keyframes registration-form-spin {
  to {
    transform: rotate(360deg);
  }
}
