.uicolorpicker {
  display: inline-flex;
  flex-direction: row;
  justify-content: flex-start;
  align-items: center;
  position: relative;
  width: 100%;
  height: 35px;
  padding: 2px 6px;
  background-image: url('/image/icon-dropdown.png');
  background-size: auto 8px;
  background-position: calc(100% - 8px) center;
  background-repeat: no-repeat;
  border: 1px solid #CCC;
  cursor: pointer;
}
.uicolorpicker.focus {
  background-image: url('/image/icon-arrow-up.png');
}
.uicolorpicker .color-box {
  display: inline-block;
  width: 18%;
  max-width: 50px;
  height: 25px;
  margin-right: 2.5%;
  border-radius: 3px;
  box-shadow: 0 0 2px rgba(0, 0, 0, .25);
  cursor: pointer;
}
.uicolorpicker .color-box:nth-child(5n) {
  margin-right: 0;
}
.uicolorpicker .color-box.selected {
  background-image: url('/image/icon-tick-white.png');
  background-size: auto 12px;
  background-position: center;
  background-repeat: no-repeat;
}
.uicolorpicker .color-code {
  color: #000;
  font-size: 16px;
  font-weight: 600;
}
.uicolorpicker .dropdown {
  display: none;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  position: absolute;
  top: calc(100% + 1px);
  left: 0;
  width: 100%;
  max-width: 256px;
  height: auto;
  padding: 8px 12px;
  background-color: #FFF;
  border-radius: 3px;
  box-shadow: 0 0 3px rgba(0, 0, 0, .25);
  z-index: 1;
}
.uicolorpicker .color-picker-title {
  width: 100%;
  margin-bottom: 5px;
  color: #000;
  font-size: 14px;
  font-weight: 600;
  text-align: left;
}
.uicolorpicker .color-picker-row {
  display: inline-flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: flex-start;
  align-items: center;
  width: 100%;
  margin-bottom: 5px;
}
.uicolorpicker .dropdown .color-picker-row .color-box {
  margin-bottom: 5px;
}
.uicolorpicker .divider {
  display: inline-block;
  width: 100%;
  height: 1px;
  margin-top: 5px;
  margin-bottom: 10px;
  background-color: #CCC;
}
.uicolorpicker .input-row {
  display: inline-flex;
  flex-direction: row;
  justify-content: flex-start;
  align-items: center;
  width: 100%;
}
.uicolorpicker input {
  flex: 1;
  width: auto;
  height: 25px;
}