// Import any global variables from "../../variables/*.scss"
@import "../../variables/colors.scss";
@import "../../variables/spacing.scss";

.wrapper {
  display: flex;
}
.item { margin-right: 4px; }
.item:last-child { margin-right: 0px; }

.button {
  display: flex;
  align-items: center;
  justify-content: center;

  width: 18px;
  height: 18px;
  color: $gray700;
  font-size: 12px;
  font-weight: 500;
  background-color: #fff;
  border: 1px solid $gray400;
  border-radius: $borderRadiusBase;
  cursor: pointer;
  user-select: none;
  transition: all 100ms ease-in-out;
  outline: none;
}
.button.active {
  background-color: $midnight;
  border-color: $midnight;
  color: #fff;
}
.button.disabled {
  cursor: default;
  background-color: #fff;
  color: $gray500;
  border-color: $gray400;
}
.button.active.disabled {
  cursor: default;
  background-color: $gray400;
  color: #fff;
  border-color: $gray400;
}

// RULES FOR TIME_FILTER_PICKER CONTEXT
.contextTimeFilterPicker.item { margin-right: 8px; }
.contextTimeFilterPicker.item:last-child { margin-right: 0; }
.contextTimeFilterPicker.button {
  width: 24px;
  height: 24px;
  background-color: $gray200;
  border-color: $gray200;
  color: $gray500;
}
.contextTimeFilterPicker.button.active {
  background-color: $blue;
  border-color: $blue;
  color: $white;
}
.contextTimeFilterPicker.button.disabled {
  color: $gray400;
}
.contextTimeFilterPicker.button.active.disabled {
  background-color: $gray400;
  border-color: $gray400;
  color: $white;
}


// RULES FOR TIME_FILTER_PICKER_SMALL CONTEXT
.contextTimeFilterPickerSmall.item { margin-right: 4px; }
.contextTimeFilterPickerSmall.item:last-child { margin-right: 0; }
.contextTimeFilterPickerSmall.button {
  width: 20px;
  height: 20px;
  background-color: $gray200;
  border-color: $gray200;
  color: $gray500;
}
.contextTimeFilterPickerSmall.button.active {
  background-color: $blue;
  border-color: $blue;
  color: $white;
}
.contextTimeFilterPickerSmall.button.disabled {
  color: $gray400;
}
.contextTimeFilterPickerSmall.button.active.disabled {
  background-color: $gray400;
  border-color: $gray400;
  color: $white;
}