/* Allgemein ########################################################################################*/
* {
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  --inactive-bg-color:#f8f8f8;
  --inactive-color:#bcbdc0;
}

.leaf-margin-small-top{
  margin-top: 15px !important;
}

.leaf-margin-small-bottom{
  margin-bottom: 15px !important;
}

.uk-card{
  border-radius: 8px;
}

.disabled{
	pointer-events: none;
  opacity:0.6;
}

a.disabled{
	pointer-events: none;
}

input[type="number"] {
  -webkit-appearance: textfield;
  -moz-appearance: textfield;
  appearance: textfield;
}

input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button {
  -webkit-appearance: none;
}

.leaf-overflow-touch{
  -webkit-overflow-scrolling: touch;
}

.leaf-overflow-touch::-webkit-scrollbar{
  -webkit-appearance: none;
  width: 11px;
  height: 11px;
}

.leaf-overflow-touch::-webkit-scrollbar-thumb{
  border-radius: 8px;
  border: 4px solid white; /* Angleichen mit Hintergrundfarbe-nicht transparent! */
  background-color: rgba(0, 0, 0, .5);
}

/* Colors
 ========================================================================== */
 .leaf-green{
   --color: #75b022;
   --bg-color: #c6eec0;
   color: #75b022;
   background-color: #c6eec0;
 }
 .leaf-turquoise{
   --color: #22b0b0;
   --bg-color: #c0eeec;
   color: #22b0b0;
   background-color: #c0eeec;
 }
 .leaf-blue{
   --color: #45829b;
   --bg-color: #c7eafc;
   color: #45829b;
   background-color: #c7eafc;
 }
 .leaf-red{
   --color: #c92a2a;
   --bg-color: #f8c9c9;
   color: #c92a2a;
   background-color: #f8c9c9;
 }
 .leaf-orange{
   --color: #e68a00;
   --bg-color: #f8e0c9;
   color: #e68a00;
   background-color: #f8e0c9;
 }
 .leaf-yellow{
   --color: #c4c411;
   --bg-color: #f8f8c9;
   color: #c4c411;
   background-color: #f8f8c9;
 }
 .leaf-purple{
   --color: #8a2ae6;
   --bg-color: #e0c9f8;
   color: #8a2ae6;
   background-color: #e0c9f8;
 }
 .leaf-pink{
   --color: #e68ac9;
   --bg-color: #f8c9e0;
   color: #e68ac9;
   background-color: #f8c9e0;
 }
 .leaf-brown{
   --color: #8a4b2a;
   --bg-color: #e6d9c9;
   color: #8a4b2a;
   background-color: #e6d9c9;
 }
 .leaf-grey{
   --color: #6c6d70;
   --bg-color: #e6e6e6;
   color: #6c6d70;
   background-color: #e6e6e6;
 }

/* Single Widths
 ========================================================================== */
 [class*="leaf-width"] {
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
}
.leaf-width-1-2 {
  width: 50%;
}
.leaf-width-1-4 {
  width: 25%;
}
.leaf-width-3-4 {
  width: 75%;
}
.leaf-width-0 {
  width: 0%;
}

@media (min-width: 640px) {
  .leaf-width-1-1\@s {
    width: 100%;
  }
  .leaf-width-1-2\@s {
    width: 50%;
  }
  /* Quarters */
  .leaf-width-1-4\@s {
    width: 25%;
  }
  .leaf-width-3-4\@s {
    width: 75%;
  }
  .leaf-width-0\@s {
    width: 0%;
  }
}

@media (min-width: 960px) {
  .leaf-width-1-1\@m {
    width: 100%;
  }
  .leaf-width-1-2\@m {
    width: 50%;
  }
  /* Quarters */
  .leaf-width-1-4\@m {
    width: 25%;
  }
  .leaf-width-3-4\@m {
    width: 75%;
  }
  .leaf-width-0\@m {
    width: 0%;
  }
}

@media (min-width: 1200px) {
  .leaf-width-1-1\@l {
    width: 100%;
  }
  .leaf-width-1-2\@l {
    width: 50%;
  }
  /* Quarters */
  .leaf-width-1-4\@l {
    width: 25%;
  }
  .leaf-width-3-4\@l {
    width: 75%;
  }
  .leaf-width-0\@l {
    width: 0%;
  }
}

@media (min-width: 1600px) {
  .leaf-width-1-1\@xl {
    width: 100%;
  }
  .leaf-width-1-2\@xl {
    width: 50%;
  }
  /* Quarters */
  .leaf-width-1-4\@xl {
    width: 25%;
  }
  .leaf-width-3-4\@xl {
    width: 75%;
  }
  .leaf-width-0\@xl {
    width: 0%;
  }
}

/* Single Heigths
 ========================================================================== */
.leaf-height-1-1 {
  height: 625px;
}

.leaf-height-1-2 {
  height: 305px;
}

.leaf-height-1-4 {
  height: 145px;
}

.leaf-height-3-4 {
  height: 465px;
}

.leaf-height-1-8 {
  height: 65px;
}

.leaf-height-3-8 {
  height: 225px;
}

.leaf-height-5-8 {
  height: 385px;
} 

.leaf-height-7-8 {
  height: 545px;
}

.leaf-height-0{
  height: 0px;
}

/* Badge
 ========================================================================== */
.leaf-badge {
  padding: 0 4px;
  vertical-align: middle;
  font-size: 12px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  line-height: 0;
  vertical-align: middle !important;
}

/* Slider
 ========================================================================== */
.leaf-slider {
  display: flex;
  position: relative;
  height: 100%;
  align-items: center;
  justify-content: center;
}

.leaf-slider input[type="range"] {
  /* removing default appearance */
  -webkit-appearance: none;
  appearance: none; 
  /* creating a custom design */
  width: 100%;
  cursor: pointer;
  outline: none;
  /*  slider progress trick  */
  overflow: hidden;
  height: 50px;
  background: var(--bg-color);
  border-radius: 8px;
}

/* Track: webkit browsers */
.leaf-slider input[type="range"]::-webkit-slider-runnable-track {
  height: 50px;
  background: var(--bg-color);
  border-radius: 8px;
}

/* Track: Mozilla Firefox */
.leaf-slider input[type="range"]::-moz-range-track {
  height: 50px;
  background: var(--bg-color);
  border-radius: 8px;
}

/* Thumb: webkit */
.leaf-slider input[type="range"]::-webkit-slider-thumb {
  /* removing default appearance */
  -webkit-appearance: none;
  appearance: none; 
  /* creating a custom design */
  height: 50px;
  width: 15px;
  background-color: var(--bg-color);
  border-radius: 8px;
  border: 6px solid var(--color);
  /*  slider progress trick  */
  box-shadow: -807px 0 0 800px var(--color);
}

/* Thumb: Firefox */
.leaf-slider input[type="range"]::-moz-range-thumb {
  height: 40px;
  width: 3px;
  background-color: var(--bg-color);
  border-radius: 8px;
  border: 6px solid var(--color);
  /*  slider progress trick  */
  box-shadow: -807px 0 0 800px var(--color);
}

.leaf-slider .leaf-slider-value {
  position: absolute;
  top: -35px;
  display: none;
  background: var(--bg-color);
  color: var(--color);
  padding: 4px 12px;
  border-radius: 4px;
  border-width: 1px;
  border-color: var(--color);
  border-style: solid;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
}

.leaf-slider input[type="range"]:hover + .leaf-slider-value {
  display: block;
}
.leaf-slider input[type="range"]:active + .leaf-slider-value {
  display: block;
}
.leaf-slider input[type="range"]:focus + .leaf-slider-value {
  display: block;
}

/* Number
 ========================================================================== */
 .leaf-number {
  display: flex;
  position: relative;
  height: 100%;
  align-items: center;
  justify-content: center;
}

.leaf-number input[type="number"]{
  font-size: 20px;
  text-align: center;
  padding-right: 40px;
  color: var(--color);
  background-color: var(--bg-color);
  border-radius: 8px;
  height: 50px;
  border-width: 0px;
}

.leaf-number .uk-form-icon{
  color: var(--color);
  border-radius: 8px;
  height: 100%;
  z-index:1000;
}

.leaf-number .leaf-number-unit{
  position: absolute;
  display: flex;
  font-size: 20px;
  height: 50px;
  align-items: center;
}
.leaf-number .leaf-number-hidden{
  display: none;
}

/* Time
 ========================================================================== */
 .leaf-time {
  display: flex;
  position: relative;
  height: 100%;
  align-items: center;
  justify-content: center;
}

.leaf-time input[type="text"]{
  font-size: 20px;
  text-align: center;
  padding-right: 40px;
  color: var(--color);
  background-color: var(--bg-color);
  border-radius: 8px;
  height: 50px;
  border-width: 0px;
}

.leaf-time .uk-form-icon{
  color: var(--color);
  border-radius: 8px;
  height: 100%;
  z-index:1000;
}

.picker-title {
  font-size: 20px;
  color: #666;
  text-align: center;
}

.picker-cancel {
  color: #666;
}


/* Button
 ========================================================================== */
.leaf-button {
  display: flex;
  color: var(--inactive-color);
  background-color: var(--inactive-bg-color);
  border-radius: 8px;
  height: 50px;
  width: 100%;
  justify-content: center;
  align-items: center;
  border: 0px solid var(--color);
  transition: background-color 1s;
}

.leaf-button:hover {
  color: var(--color);
}

.leaf-button:active {
  background-color: var(--bg-color);
  color: var(--color);
  transition-duration: 0.05s;
}

/* Radio Button
 ========================================================================== */
.leaf-radio-button input[type="radio"] {
  opacity: 0;
  position: fixed;
  width: 0;
}

.leaf-radio-button label {
  display: flex;
  color: var(--inactive-color);
  background-color: var(--inactive-bg-color);
  border-radius: 8px;
  height: 50px;
  justify-content: center;
  align-items: center;
}

.leaf-radio-button label:hover {
  color: var(--color);
}

.leaf-radio-button input[type="radio"]:checked + label {
    background-color: var(--bg-color);
    color: var(--color);
}

/* Checkbox
 ========================================================================== */
 .leaf-checkbox input[type="checkbox"] {
  opacity: 0;
  position: fixed;
  width: 0;
}

.leaf-checkbox label {
  display: flex;
  color: var(--inactive-color);
  background-color: var(--inactive-bg-color);
  border-radius: 8px;
  height: 50px;
  justify-content: center;
  align-items: center;
}

.leaf-checkbox label:hover {
  color: var(--color);
}

.leaf-checkbox input[type="checkbox"]:checked + label {
    background-color: var(--bg-color);
    color: var(--color);
}

.leaf-checkbox input[type="checkbox"]:checked + label:hover {
  color: var(--inactive-color);
}

/* Chart
 ========================================================================== */
.leaf-chart-function {
  height: 50px;
  width: calc(100% + 20px);
  position: relative;
  left: -10px;
}


/* Icon
 ========================================================================== */
 .leaf-icon-border {
  border-radius: 100%;
  padding: 5px;
  vertical-align: middle;
  font-size: 20px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  line-height: 0;
  vertical-align: middle !important;
 }

/* Chat Button
 ========================================================================== */
.chat_container{
  height: calc(99% - 100px);
  max-height: 600px;
}

.chat_window{
  width: 100%;
  max-width: 600px;
  height: 100%;
  max-height: 600px;
  border-radius: 4px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
  background-color: #f8f8f8;
  overflow: hidden;
  z-index:100;
}

.top_menu {
  background-color: #fff;
  width: calc(100% - 20px);
  height: 69px;
  padding: 10px 10px;
  box-shadow: 0 1px 30px rgba(0, 0, 0, 0.1);
  display: flex;
  justify-content: space-between;
  align-items:center; 
}

.top_menu .title {
  text-align: center;
  color: #bcbdc0;
  font-size: 20px;
  margin: 10px;
}

.top_menu .chatbot_select {
  width: 35%;
  border-radius: 4px;
}

.messages {
  position: relative;
  list-style: none;
  padding: 10px 10px 0 10px;
  margin: 0;
  height: calc(100% - 183px);
  overflow-y: auto;
  overflow-x: hidden;
}

.messages .message {
  clear: both;
  overflow: hidden;
  margin-bottom: 20px;
  transition: all 0.5s linear;
  opacity: 0;
}

.messages .message.left .text_wrapper {
  background-color: #c8ee92;
  margin-left: 20px;
}

.messages .message.left .text_wrapper::after, .messages .message.left .text_wrapper::before {
  right: 100%;
  border-right-color: #c8ee92;
}

.messages .message.left .text {
  color: #2c7f2c;
}

.messages .message.left .text table{
  color: #2c7f2c;
}

.messages .message.left .text table td{
  padding: 5px;
  min-height: 5px;
}
.messages .message.left .text table th{
  padding: 5px;
  min-height: 5px;
  background-color: #2c7f2c;
  color: #c8ee92;
}


.messages .message.right .text_wrapper {
  background-color: #c7eafc;
  margin-right: 20px;
  float: right;
}

.messages .message.right .text_wrapper::after, .messages .message.right .text_wrapper::before {
  left: 100%;
  border-left-color: #c7eafc;
}

.messages .message.right .text {
  color: #45829b;
}

.messages .message.appeared {
  opacity: 1;
}

.messages .message .text_wrapper {
  display: inline-block;
  padding: 20px;
  border-radius: 6px;
  min-width: 100px;
  max-width : 80%;
  position: relative;
}

.messages .message .text_wrapper::after, .messages .message .text_wrapper:before {
  top: 18px;
  border: solid transparent;
  content: " ";
  height: 0;
  width: 0;
  position: absolute;
  pointer-events: none;
}

.messages .message .text_wrapper::after {
  border-width: 13px;
  margin-top: 0px;
}

.messages .message .text_wrapper::before {
  border-width: 15px;
  margin-top: -2px;
}

.messages .message .text_wrapper .text {
  font-size: 14px;
  font-weight: 300;
}

.bottom_wrapper {
  width: calc(100% - 20px);
  height: 64px;
  background-color: #fff;
  padding: 10px 10px;
  position: absolute;
  bottom: 0;
  display: flex;
  justify-content: space-between;
  align-items:center; 
}

.bottom_wrapper .message_input {
  border-radius: 4px;
  border: 1px solid #bcbdc0;
}

.message_template {
  display: none;
}

.chat_send_button {
  margin: 5px;
}

.message_loader {
  position: relative;
  left: 6px;
  bottom: 26px;
  z-index: 1;
  margin: 1px 0 0 1px;
  display: none;
  justify-content: start;
  align-items:center; 

}

.message_loader .message_loading_loader {
  width: 16px;
  height: 16px;
  border: 4px solid #bcbdc0;
  border-radius: 50%;
  border-top: 4px solid #75b022;
  -webkit-animation: spin 2s linear infinite;
  animation: spin 2s linear infinite;
}

@-webkit-keyframes spin {
  0% { -webkit-transform: rotate(0deg); }
  100% { -webkit-transform: rotate(360deg); }
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.message_loading_text {
  padding-left: 10px;
}

.message_loading_text span {
  margin-left:-3px;
  position: relative;
  display: inline-block;
  font-size: 14px;
  color:#bcbdc0;
  animation: flip 2s infinite;
  animation-delay: calc(.2s * var(--i))
}

@keyframes flip {
  0%,80% {
    transform: rotateY(360deg) 
  }
}

/* Thermostat Widget
 ========================================================================== */
.thermostat{
  height: 100%;
  width: 100%;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%,-50%);
}

.thermostat_slider .rs-tooltip  {
	position: absolute;
	top: 45%;
	font-size: 2rem;
  transition: color .5s linear;
}

.thermostat_slider .rs-input  {
	font-size: 2.0rem;
}

.thermostat .rs-control {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%,-50%);
}

.thermostat .rs-control .rs-handle {
  background-color: #fff;
  box-shadow: 0 0 1rem rgba(0, 0, 0, 0.3);
  transition: box-shadow .5s linear;
}

.thermostat .rs-range{
  transition: stroke .5s linear;
}

.thermostat .rs-path{
  transition: stroke .5s linear;
}

.thermostat .control {
  position: absolute;
  z-index: 5;
  aspect-ratio : 1 / 1;
  transform: translate(-50%,-50%);
  top: 50%;
  left: 50%;
  background: white;
  border-radius: 50%;
  box-shadow: 0 0 1rem rgba(0, 0, 0, 0.3);
  transition: box-shadow .5s linear;
}

.thermostat .control .reading_actual_value {
  position: absolute;
  top: 10px;
  left: 6px;
  right: 0;
  text-align: center;
  font-weight: 300;
  font-size: 1rem;
}


.thermostat .control .tooltips {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%,-50%);
  display: flex;
}

.thermostat .control .tooltips .tooltip{
  display:grid;
  grid-template-columns: auto auto auto;
  justify-items: start;
  padding: 6px;
  transition: color .5s linear;
}


.tooltip .tooltip-text-pre{
  font-size: 1vw;
  grid-row-start: 1;
  grid-row-end: 3;
}

.tooltip .tooltip-text-vorkomma{
  font-size: 3vw;
  grid-row-start: 1;
  grid-row-end: 3;
}

.tooltip .tooltip-text-nachkomma{
  font-size: 1vw;
}

.tooltip .tooltip-text-post{
  font-size: 1vw;
  align-self: self-end;
}

.thermostat .control .operating_mode {
  position: absolute;
  bottom: 20px;
  left: 0;
  right: 0;
  text-align: center;
  font-weight: 300;
  font-size: 1rem;
}

.thermostat-numbers.rs-bar {
	display: block;
  width: calc(50% + 6px);
  margin-left: -10px;
}

.thermostat-numbers .rs-seperator {
  border: none;
  height: auto;
  position: absolute;
  top: -10px;
  right: 100%;
  width: auto !important;
}


.thermostat-numbers-reading.rs-bar {
	display: block;
  z-index: 0;
}

.thermostat-numbers-reading .rs-seperator {
  border: none;
  position: absolute;
  aspect-ratio : 1 / 1;
  background-color: #eee;
  border-radius: 50%;
  transition: background-color .2s linear;
}

/* Alarm Widget
 ========================================================================== */
.alarm-scroll-shadows {
  overflow: auto;
  max-height:calc(100% - 105px);
}

/* User Management Widget
 ========================================================================== */
.user_einstellung{
	position: absolute;
	top: 5px;
	right: 0px;
	z-index: 1000;
	color: #999;
}

/* grid-select
 ========================================================================== */
.leaf-grid-table{
  border-spacing: 15px;
  width: 100%;
}

.leaf-grid-cell {
  border-radius: 8px;
  border-color: var(--bg-color);
  border-style: solid;
  border-width: 2px;
}

.leaf-grid-cell:hover {
  border-color: var(--color);
}

/* chart
 ========================================================================== */
.chart {
  position: relative;
  width: 100%;
  height: 100%;
}

/* spectrum
 ========================================================================== */
.spectrum {
  position: relative;
  width: 100%;
  height: 100%;
}
