html,
body {
  height: fit-content;
  margin: 0
}

body {
  font-family: var(--font-family)
}
#cont {
  width: 100%;
}

#thCont {
  width: 100%;
  height: 40px;
  border: 1px solid var(--white);
  display: flex;
  border-radius: 5px;
  overflow: hidden;
}

.thCell {
  border: 1px solid var(--white);
  width: 100%
}

#clo,
#cup {
  background-color: var(--alert-red);
}

#mlo,
#mup {
  background-color: var(--alert-yellow);
}

#sz {
  background-color: var(--alert-green);
}

#sz.noThs {
  background-color: var(--color-primary);
}

.valCell {
  width: 0%;
  height: 100%;
  position: relative;
}

.valFlex {
  position: absolute;
  bottom: 33px;
  transform: translate(-50%, 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 100;
}

.addTh {
  background-color: rgba(255, 255, 255, .3);
  color: var(--white);
  width: fit-content;
  height: 1.1em;
  position: relative;
  padding: .5em;
  border-radius: 25em;
  height: fit-content;
  border: none;
  cursor: pointer;
  border: 1px solid var(--white);
  font-size: calc(var(--font-base-size)*0.6);
}

.deleteTh {
  position: absolute;
  top: 6px;
  right: 5px;
  border-radius: 50%;
  cursor: pointer;
  transition: all .2s ease-in;
  box-shadow: none;
  font-size: 15px;
}

.deleteTh:hover {
  color: var(--color-primary);
}

.addTh:hover {
  background-color:  rgba(255, 255, 255, .8);
  border: 1px solid var(--color-secondary);
  color: var(--color-secondary);
  box-shadow: var(--box-shadow);
}


.butCup .addTh:hover, .butClo .addTh:hover {
  border: 1px solid var(--white);
  color: var(--white);
  background-color: var(--alert-red);
}

.butMlo .addTh:hover, .butMup .addTh:hover{
  border: 1px solid var(--white);
  color: var(--white);
  background-color: var(--alert-yellow);
}

.addTh::before,
.deleteTh {
  font-family: naui-icon !important;
  content: var(--icon-plus);
  font-style: normal;
  font-weight: normal !important;
  font-variant: normal;
  text-transform: none;
  line-height: 1;
  -webkit-font-smoothing: antialiased;
  display: block;
}

.addTh i {
  font-size: 1em;
}

.thVal {
  position: relative;
  background-color: var(--white);
  border: 1px solid var(--white);
  min-width: 10px;
  padding: 0em 0.5em 0 .5em;
  text-align: center;
  height: 25px;
  line-height: 25px;
  border-radius: 20px;
  box-shadow: var(--box-shadow);
  font-size: 14px;
}

#thForm {
  width: 100%;
}

.thTitle {
  height: 24px;
  width: 100%;
  border: none;
  display: flex;
  align-items: center;
}

.thTitle p,
.thTitle input {
  display: inline-block;
  margin: 0;
}

/*Change the color of the default input*/
.thTitle input[type="checkbox" i] {
  filter: sepia(100%) brightness(80%) hue-rotate(170deg) saturate(70%) contrast(300%);
}

.thTitle input {
  margin-left: 4px;
  margin-right: 4px;
}


.valTable {
  display: flex;
  border: 1px solid var(--light-gray);
  border-radius: .5em;
  padding: 1em;
}

.valTableCell,
.switchCont {
  width: 100%;
  display: flex;
  align-items: center;
  flex-direction: column;
}

.valTableCell p {
  margin: 0;
  margin-top: 5px;
}

.valCont {
  display: flex;
  margin-top: 10px;
}

.valCont input {
  max-width: 80px;
  font-size: 14px;
  text-align: right;
  display: block;
  padding-right: 4px;
  width: 100%;
  padding: .375rem .75rem;
  font-size: 1rem;
  line-height: 1.5;
  color: #495057;
  background-color: #fff;
  background-clip: padding-box;
  border: 1px solid #ced4da;
  border-radius: .25rem;
  transition: border-color .15s ease-in-out, box-shadow .15s ease-in-out;
}

.valCont div {
  padding-right: 4px;
  padding-left: 4px;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  padding: .375rem .75rem;
  margin-bottom: 0;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;
  color: #495057;
  text-align: center;
  white-space: nowrap;
  background-color: #e9ecef;
  border: 1px solid #ced4da;
  border-radius: .25rem;
}

.valCont input {
  border-top-right-radius: 0px;
  border-bottom-right-radius: 0px;
}

.valCont div {
  border-top-left-radius: 0px;
  border-bottom-left-radius: 0px;
}



.switch {
  position: relative;
  display: inline-block;
  width: 80px;
  height: 24px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--color-secondary);
  -webkit-transition: .4s;
  transition: .4s;
}

.slider:before {
  position: absolute;
  content: "";
  height: 20px;
  width: 20px;
  left: 2px;
  bottom: 2px;
  background-color: var(--white);
  -webkit-transition: .4s;
  transition: .4s;
}

input:checked+.slider {
  background-color: var(--color-primary);
}

input:checked+.slider:before {
  -webkit-transform: translateX(56px);
  -ms-transform: translateX(56px);
  transform: translateX(56px);
}

.slider.round {
  border-radius: 34px;
}


.slider.round:before {
  border-radius: 50%;
}

.switchCont {
  margin-top: 10px;
  display: flex;
  flex-direction: row;
  justify-content: center;
}

.redCirc {
  width: 20px;
  height: 20px;
  background-color: var(--alert-red);
  border-radius: 50%;
  margin-right: 4px;
}

.redOrCirc {
  width: 20px;
  height: 20px;
  background: linear-gradient(90deg, var(--alert-yellow) 0%, var(--alert-yellow) 50%, var(--alert-red) 50%, var(--alert-red) 100%);
  border-radius: 50%;
  margin-left: 4px;
}

#edit {
  margin-top: 1px;
  width: 40px;
  height: 100%;
  display: flex;
  margin-left: 20px;
  cursor: pointer;
}

.flexCont {
  display: flex;
  width: 100%;
}

.paramsRow {
  margin-bottom: 1em;
}

.paramsRow:last-child {
  margin-bottom: 0em;
}

#cont {
  display: flex;
  flex-direction: column;
  align-items: center;
}

#cont p {
  margin: 0;
}


#save img {
  width: 100%;
  cursor: pointer;
  content: url("save.svg");
}


#save {
  margin-top: 1px;
  width: 40px;
  display: flex;
  margin-left: 20px;
  align-items: end;
  cursor: pointer;
  margin-bottom: 10px;

}

#formCont {
  width: 100%;
}

#lth,
#uth {
  width: 100%;
  padding: 1em;
}

#lth {
  /*margin-top: 10px;*/
}


#buttons {
  display: flex;
  font-size: 32px;
  margin-left: 5px;
  margin-top: 2px;
}


#buttons i {
  cursor: pointer;
}

#buttons i:hover {
  color: var(--color-primary);
}

.disabled {
  pointer-events: none;
  color: lightgray;
}

.edit {
  margin-right: 5px;
}

#barButCont {
  display: flex;
  width: 100%;
}

.butCont {
  height: 100%;
  display: flex;
  width: fit-content;
  align-items: center;
  position: absolute;
}

.butClo {
  left: 10px
}

.butMlo {
  right: 52%
}

.butCup {
  right: 10px
}

.butMup {
  left: 52%
}

#butsCont {
  width: 100%;
  height: 100%;
  position: relative;
}

.deletable {
  padding-right: 24px;
}
