:host {
  font-family: Roboto;
  --paper-checkbox-checked-color: var(--color-ti-primary-blue);
  --paper-checkbox-label-color: var(--color-ti-text-grey-dark);

  --paper-input-container-underline: {
    background: var(--color-ti-primary-blue);
  }

  --paper-input-container-underline-focus: {
    background-color: var(--color-ti-primary-blue);
  }
}

.add-space {
  margin: 0 5px;
}

.arrow-container {
  width: 85px;
  display: flex;
  justify-content: flex-end;
}

.back-btn {
  cursor: pointer;
  color: var(--color-ti-primary-blue);
}

.btn-help {
  height: 34px;
  width: 175px;
  justify-content: space-evenly;
  border: 1px solid var(--color-ti-secondary-red);
  border-radius: 7px;
  background-color: var(--color-ti-white);
  color: var(--color-ti-secondary-red);
  cursor: pointer;
}

.btn-indicator {
  height: 22px;
  color: var(--color-ti-white);
  background-color: var(--color-ti-primary-red);
  border: 1px var(--color-ti-primary-red) solid;
  border-radius: 4px;
  font-family: Roboto;
  font-size: 12px;
  line-height: 19px;
  cursor: pointer;
}

.btn-nxt-step {
  width: 136px;
  height: 40px;
  color: var(--color-ti-white);
  background-color: var(--color-ti-primary-red);
  border: 1px var(--color-ti-primary-red) solid;
  border-radius: 4px;
  font-family: Roboto;
  font-size: 16px;
  line-height: 19px;
  cursor: pointer;
}

.btn-nxt-step.large-width:disabled {
  background-color: var(--color-ti-secondary-grey);
  border: 1px var(--color-ti-secondary-grey) solid;
  pointer-events: none;
  color: var(--color-ti-secondary-grey-dark);
}

.btn-nxt-step.large-width {
  width: 200px;
}

.btn-primary {
  color: var(--color-ti-white);
  background-color: var(--color-ti-primary-red);
}

.btn-sec {
  color: var(--color-ti-primary-red);
  background-color: var(--color-ti-white);
}

.btn-without-border {
  color: var(--color-ti-primary-red);
  border: none;
  background-color: var(--color-ti-white);
  outline: none;
}

.collapse-container {
  width: 100%;
  height: 0px;
  margin: 0px auto 0px auto;
  padding: 5px;
  background-color: var(--color-ti-white);
  transition: height 1s;
  overflow: hidden;
}

.collapse-container.open {
  height: calc(100% - 46px);
  overflow-y: auto;
}

.collapse-title-container {
  width: 45%;
  justify-content: space-evenly;
}

.collapse-header {
  display: flex;
  align-items: center;
  width: 100%;
  height: 46px;
  justify-content: space-between;
  border-radius: 4px 4px 0 0;
  background-color: var(--color-ti-border-grey);
  color: var(--color-ti-text-grey-dark);
  padding: 20px;
  font-size: 13px;
  font-family: Roboto;
  cursor: pointer;
}

.collapse-header.open {
  background-color: var(--color-ti-bg-blue);
}

.design-container {
  height: 100%;
  width: 100%;
  border: 2px solid var(--color-ti-border-grey);
  border-bottom: none;
}

.dialog-btn.disable {
  background-color: var(--color-ti-bg-grey-02);
  border: 1px var(--color-ti-bg-grey-02) solid;
  color: var(--color-ti-text-grey-darkened);
  cursor: default;
  pointer-events: none;
}

.dialog-header {
  background-color: var(--color-ti-primary-red);
  color: var(--color-ti-white);
  padding: 12px 20px;
  justify-content: space-between;
  margin: 0;
}

.dialog-header .close-icon {
  cursor: pointer;
}

.each-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: grab;
  cursor: -webkit-grab;
  font-family: Roboto;
  margin: 8px 5px;
  font-size: 12px;
  color: #555555;
  transition: all 1s;
  box-shadow: 0 0px 7px 0 rgba(0, 0, 0, 0.2);
}

.each-trigger:active {
  cursor: grabbing;
  cursor: -webkit-grabbing;
  color: white;
}

.each-trigger:hover {
  box-shadow: 0 0px 3px 1px var(--color-ti-alt-blue);
  color: var(--color-ti-alt-blue-light);
  background-color: var(--color-ti-shadow-blue);
}

.fill {
  width: calc(100% - 35px);
  height: 100%;
}

.flex-center {
  display: flex;
  align-items: center;
}

.flex-col {
  display: flex;
  flex-direction: column;
}

.footer {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  height: 90px;
  flex-basis: 100%;
  width: 100%;
  min-width: 700px;
  transition: width 0.5s;
  padding: 0px 40px;
}

.footer.half-width.without-border {
  width: calc(100% - 650px);
  background-color: var(--color-ti-white);
  justify-content: space-between;
}

.footer.full-width.without-border {
  width: 100%;
  background-color: var(--color-ti-white);
  justify-content: space-between;
}

.fsm-fullwidth-container {
  width: 100%;
  height: 100%;
}

.fsm-temp-selection {
  display: flex;
  height: calc(100% - 90px);
}

.icon {
  height: 15px;
  width: 15px;
}

.icon.open {
  transform: rotate(180deg);
}

.icon-arrow {
  height: 25px;
  width: 25px;
  margin: 3px;
  cursor: pointer;
  color: var(--color-ti-primary-red);
}

.icon-arrow.disable {
  opacity: 0.5;
  pointer-events: none;
}

.info-text {
  color: var(--color-ti-primary-red);
  padding: 2px;
  font-size: 12px;
}

.indicator {
  height: 9px;
  width: 9px;
  border: 1px solid var(--color-ti-secondary-green);
  border-radius: 50%;
  background-color: var(--color-ti-secondary-green);
  box-shadow: 0 0 4px 0 var(--color-ti-secondary-green);
}

.info-cnt {
  justify-content: center;
  height: 100%;
  font-style: italic;
}

.large-text {
  font-size: 18px;
  font-weight: 500;
  color: var(--color-ti-text-grey-dark);
}

.right-page.allow-edit {
  flex-basis: 35px;
  height: calc(100% + 90px);
  overflow: hidden;
  transition: flex-basis 0.5s;
}

.right-page.block-edit {
  height: calc(100% + 90px);
  width: 50%;
}

.state-ctr {
  padding: 12px;
}

.tem-design-cnt {
  width: 50%;
  min-width: 700px;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-end;
  padding: 0.8%;
  padding-left: 1%;
}

.tem-design-cnt.allow-edit {
  flex-basis: 100%;
  transition: flex-basis 0.5s;
  padding: 0.8%;
  padding-left: 1%;
}

.temp-desc {
  font-size: 14px;
  color: var(--color-ti-text-grey-dark);
}

.temp-desc.design {
  overflow: auto;
  height: 60%;
}

.temp-details {
  margin: 20px;
  display: flex;
  height: 15%;
  flex-direction: column;
  justify-content: space-around;
}

.temp-design.block-edit {
  height: 78%;
  pointer-events: none;
}

.temp-design.allow-edit {
  height: 100%;
}

.temp-name {
  color: var(--color-ti-text-grey-03);
  font-size: 14px;
  font-weight: 500;
}

.temp-name.design {
  font-size: 16px;
  height: 40%;
}

.trans {
  padding: 4px;
  margin: 5px;
  background-color: #189;
  color: white;
  font-size: 9px;
  border-radius: 4px;
}

.trig-cnt {
  font-size: 12px;
  color: var(--color-ti-text-grey-dark);
  padding: 5px;
}

.trig-cnt.trig {
  color: var(--color-ti-text-grey-dark);
  font-weight: 500;
}

.trig-icon {
  color: var(--color-ti-text-grey-dark);
  height: 12px;
  width: 12px;
  margin: 5px;
}

.trig-trans {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
}

.trigger-list-container {
  width: 435px;
  height: 46px;
  z-index: 10;
  position: absolute;
  right: 8px;
  bottom: 0;
  background: var(--color-ti-white);
  transition: height 1s;
}

.trigger-list-container.open {
  height: 94%;
}

.top-margin {
  margin-top: 3px;
  height: calc(100% - 3px);
}

.tool ::shadow #tooltip {
  background-color: var(--color-ti-secondary-grey-dark);
  font-size: 12px;
}

/* Help dialog */

:host ::content .help-dialog > #dialog > * {
  margin: 0;
  padding: 0;
  height: 340px;
  width: 460px;
}

.icon-warning {
  color: var(--color-ti-indicator-yellow);
}

.icon-warning.large {
  height: 60px;
  width: 50px;
}

.popup-dialog {
  margin: 0;
  padding: 0;
}

.dialog-content {
  padding: 32px 44px;
  font-size: 16px;
  color: var(--color-ti-text-grey-03);
  flex-direction: column;
}

.help-info {
  margin-bottom: 24px;
}

.help-info-item {
  padding: 8px 0;
}

.btn-close {
  border: 1px solid var(--color-ti-primary-red);
  border-radius: 4px;
  background-color: var(--color-ti-white);
  color: var(--color-ti-primary-red);
  padding: 8px 20px;
  cursor: pointer;
}

/* End of help dialog */

/* Override dialog */

:host ::content .o-dialog > #dialog > * {
  margin: 0;
  padding: 0;
  font-size: 18px;
  font-family: Roboto;
  height: 264px;
  width: 460px;
}

.o-dialog-header {
  @apply --flex-center-aligned;
  height: 46px;
  justify-content: space-between;
  background-color: var(--color-ti-primary-blue);
  color: var(--color-ti-white);
  padding: 20px;
}

.o-dialog-content {
  padding: 12px 48px 0px;
  color: var(--color-ti-text-grey-dark);
}

.o-dialog-content > * {
  padding: 16px 0;
}

.o-dialog-footer {
  padding: 15px;
  display: flex;
  justify-content: center;
}

.o-dialog-btn {
  height: 40px;
  width: 140px;
  border: none;
  outline: 0;
  cursor: pointer;
  font-family: Roboto;
  font-size: 16px;
  border-radius: 4px;
}

/* End of override dialog */

.arrow-icon {
  color: var(--color-ti-text-grey-dark);
  height: 35px;
  margin-right: 13px;
  width: 35px;
}

.fsm-fullwidth-container-settings {
  width: 100%;
  height: 100%;
}

.open-close-settings {
  height: 100%;
  overflow: hidden;
  width: 35px;
}

.open-close-settings-button {
  background-color: var(--color-ti-border-grey-02);
  min-width: 60px;
  height: 60px;
  border-radius: 35px;
}

.right-page.allow-edit.open {
  flex-basis: 75%;
  transition: flex-basis 0.5s;
}

.tem-design-cnt.allow-edit.open {
  flex-basis: calc(100% + 25%);
  transition: flex-basis 0.5s;
  padding: 0.8%;
  padding-left: 2%;
}

.customFloatingInfo {
  display: none;
}

@media screen and (max-width: 1650px) {
  .right-page.allow-edit.open {
    min-width: 600px;
  }
}
