@import url("https://fonts.googleapis.com/css?family=Roboto:400,500");
.size-1 {
  font-size: 12px;
  line-height: 20px;
}

.size-2 {
  font-size: 14px;
  line-height: 22px;
}

.size-3 {
  font-size: 16px;
  line-height: 24px;
}

.size-4 {
  font-size: 20px;
  line-height: 28px;
}

.size-5 {
  font-size: 24px;
  line-height: 32px;
}

.size-6 {
  font-size: 30px;
  line-height: 38px;
}

.size-7 {
  font-size: 38px;
  line-height: 46px;
}

.size-8 {
  font-size: 46px;
  line-height: 54px;
}

.size-9 {
  font-size: 56px;
  line-height: 64px;
}

.weight-regular {
  font-weight: 400;
}

.weight-semibold {
  font-weight: 500;
}

/**
 * Generator
 */
.input-size-large {
  height: 40px;
}

.input-size-medium {
  height: 32px;
}

.input-size-small {
  height: 24px;
}

.resize-none textarea {
  resize: none;
}

.resize-vertical textarea {
  resize: vertical;
}

.resize-auto textarea {
  height: auto;
  resize: none;
}

.textarea-size-large {
  padding: 4px 0 0 4px;
  min-height: 40px;
}
.textarea-size-large .bcm-input-element {
  min-height: calc((40px - 8px) + 2px);
}
.textarea-size-large .input-clear-button {
  height: calc( 40px - 16px );
  top: 8px;
  padding: 0;
  margin-right: 8px;
}

.textarea-size-medium {
  padding: 4px 0 0 4px;
  min-height: 32px;
}
.textarea-size-medium .bcm-input-element {
  min-height: calc((32px - 8px) + 2px);
}
.textarea-size-medium .input-clear-button {
  height: calc( 32px - 16px );
  top: 8px;
  padding: 0;
  margin-right: 8px;
}

.textarea-size-small {
  padding: 0px 0 0 4px;
  min-height: 24px;
}
.textarea-size-small .bcm-input-element {
  min-height: calc((24px - 8px) + 2px);
}
.textarea-size-small .input-clear-button {
  height: calc( 24px - 16px );
  top: 8px;
  padding: 0;
  margin-right: 8px;
}

:host {
  display: block;
  width: fit-content;
  height: fit-content;
  background-color: #ffffff;
}

:host(.hidden) {
  display: none;
}

:host(.flex) {
  width: 100%;
  height: 100%;
}
:host(.flex) .bcm-listbox {
  max-height: 100%;
  max-width: 100%;
  height: 100%;
  min-width: 100%;
}

:host(.full-width) {
  width: 100%;
}
:host(.full-width) .bcm-listbox {
  max-width: 100%;
  min-width: 100%;
}

.bcm-listbox {
  flex: 1;
  background-color: var(--bcm-color-grey-1);
  width: fit-content;
  display: flex;
  flex-direction: column;
  height: 100%;
  width: 100%;
  min-width: 256px;
  max-width: 256px;
  min-height: auto;
  max-height: 300px;
  box-sizing: border-box;
  border: 1px solid var(--bcm-color-grey-5);
}
.bcm-listbox-list {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  overflow-y: auto;
  border-bottom: none;
}
.bcm-listbox-list.loading {
  min-height: 150px;
  position: relative;
  margin: 0 8px 8px 8px;
}
.bcm-listbox-list .loading {
  display: none;
  align-items: center;
  justify-content: center;
  height: 100%;
  width: 100%;
  position: absolute;
  background-color: rgba(255, 255, 255, 0.03);
}
.bcm-listbox-list .loading.show {
  display: flex;
}
.bcm-listbox-list .list-container.hidden {
  display: none;
}
.bcm-listbox .search {
  padding: 8px;
  padding-bottom: 0;
}
.bcm-listbox .search.hidden {
  display: none !important;
}
.bcm-listbox .empty {
  display: none;
  align-items: center;
  justify-content: center;
  flex: 1;
  height: 100%;
}
.bcm-listbox .empty.show {
  display: flex;
}
.bcm-listbox-footer {
  text-align: right;
  padding: 4px 8px;
  background-color: var(--bcm-color-grey-3);
}

.label {
  display: block;
  color: var(--bcm-color-grey-9);
  margin-bottom: 4px;
}

.listbox-item {
  display: flex;
  align-items: stretch;
  justify-content: flex-start;
  flex-direction: column;
  color: var(--bcm-color-grey-8);
  user-select: none;
  background-color: var(--bcm-color-grey-1);
}
.listbox-item.hidden {
  display: none;
}
.listbox-item .divider {
  padding: 0 8px;
}
.listbox-item-container {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-direction: row;
  padding-left: 8px;
  width: 100%;
}
.listbox-item-container .check-content {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: 16px;
  min-width: 16px;
  margin-right: 4px;
}
.listbox-item-container .check-content .indeterminate {
  width: 16px;
  height: 16px;
  position: relative;
  display: block;
  padding-right: 8px;
  cursor: pointer;
}
.listbox-item-container .check-content .indeterminate:after {
  content: "";
  position: absolute;
  top: 50%;
  left: 9px;
  width: 10px;
  height: 10px;
  background-color: var(--bcm-color-prime-blue-6);
  transform: translate(-50%, -50%);
  opacity: 1;
  z-index: 1;
}
.listbox-item-container .check-content .indeterminate:before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0px;
  width: 16px;
  height: 100%;
  border-radius: 2px;
  background-color: transparent;
  border: 1px solid var(--bcm-color-grey-5);
  opacity: 1;
  z-index: 2;
}
.listbox-item-container .check-content .indeterminate:hover:before {
  border-color: var(--bcm-color-prime-blue-6);
  box-shadow: 0px 2px 4px rgba(54, 121, 171, 0.5);
}
.listbox-item-container-text-content {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-direction: row;
  cursor: pointer;
  width: 100%;
  padding: 4px 8px 4px 4px;
}
.listbox-item-container.disabled {
  color: var(--bcm-color-grey-6);
}
.listbox-item-container.selected {
  color: var(--bcm-color-prime-blue-6);
}
.listbox-item-container.selected:hover:not(.disabled) {
  color: var(--bcm-color-prime-blue-6);
  background-color: var(--bcm-color-prime-blue-1);
}
.listbox-item-container:hover:not(.disabled), .listbox-item-container:active:not(.disabled) {
  color: var(--bcm-color-prime-blue-6);
  background-color: var(--bcm-color-prime-blue-1);
}

.caption-area {
  margin-bottom: 8px;
  min-height: 20px;
}

.input-caption {
  display: block;
}

.error.label {
  color: var(--bcm-color-red-6) !important;
}
.error.bcm-listbox {
  border: 1px solid var(--bcm-color-red-6) !important;
}

.caption-default {
  color: #8C8C8C;
}

.caption-primary {
  color: #4293CF;
}

.caption-success {
  color: #52C41A;
}

.caption-warning {
  color: #FA8C16;
}

.caption-error {
  color: #F5222D;
}

.input-large {
  height: 38px;
}

.input-medium {
  height: 30px;
}

.input-small {
  height: 20px;
}