#wysihtml5-editor-toolbar {
  position: relative;
}

header {
  display: block;
  border-radius: 4px;
  width: 573px;
  background: #f6f6f6;
  position: relative;
  z-index: 1;
  text-align: center;
  border: 1px solid #ddd\9; /* IE 8 and below */
  background-image: linear-gradient(bottom, rgb(238,238,238) 0%, rgb(255,255,255) 100%);
  background-image: -o-linear-gradient(bottom, rgb(238,238,238) 0%, rgb(255,255,255) 100%);
  background-image: -moz-linear-gradient(bottom, rgb(238,238,238) 0%, rgb(255,255,255) 100%);
  background-image: -webkit-linear-gradient(bottom, rgb(238,238,238) 0%, rgb(255,255,255) 100%);
  background-image: -ms-linear-gradient(bottom, rgb(238,238,238) 0%, rgb(255,255,255) 100%);
  box-shadow: 0 0 0px 1px rgba(0, 0, 0, 0.3);
  font-size: 0;
  text-align: center;
}

.commands {
  border-left: 1px solid #ddd;
  display: inline-block;
}

[data-wysihtml5-command],
[data-wysihtml5-action],
.fore-color,
.data-tag {
  position: relative;
  border-right: 1px solid #ddd;
  border-left: 1px solid #fff;
  list-style: none;
  font-size: 12px;
  display: inline-block;
  cursor: pointer;
  height: 40px;
  width: 50px;
}

[data-wysihtml5-command]:after,
[data-wysihtml5-action]:after,
.fore-color:after,
.data-tag:after {
  content: "";
  background-image: url(/img/spr_toolbar_icons_r1.png?v=2);
  background-repeat: no-repeat;
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
}

[data-wysihtml5-command]:hover,
[data-wysihtml5-action]:hover,
.fore-color:hover,
.data-tag:hover {
  background-image: linear-gradient(bottom, rgb(229,240,226) 0%, rgb(255,255,255) 100%);
  background-image: -o-linear-gradient(bottom, rgb(229,240,226) 0%, rgb(255,255,255) 100%);
  background-image: -moz-linear-gradient(bottom, rgb(229,240,226) 0%, rgb(255,255,255) 100%);
  background-image: -webkit-linear-gradient(bottom, rgb(229,240,226) 0%, rgb(255,255,255) 100%);
  background-image: -ms-linear-gradient(bottom, rgb(229,240,226) 0%, rgb(255,255,255) 100%);
}

[data-wysihtml5-command="bold"]:after {
  background-position: 14px center;
}

[data-wysihtml5-command="italic"]:after {
  background-position: -58px center;
}

[data-wysihtml5-command="insertUnorderedList"]:after {
  background-position: -125px center;
}

[data-wysihtml5-command="insertOrderedList"]:after {
  background-position: -207px center;
}

[data-wysihtml5-command="formatBlock"][data-wysihtml5-command-value="h1"]:after {
  background-position: -354px center;
}

[data-wysihtml5-command="formatBlock"][data-wysihtml5-command-value="h2"]:after {
  background-position: -438px center;
}

.data-tag:after {
  background-position: -809px center;
}

[data-wysihtml5-command="createLink"]:after {
  background-position: -281px center;
}

[data-wysihtml5-command="insertImage"]:after {
  background-position: -523px center;
}

.fore-color:after {
  background-position: -751px center;
}

[data-wysihtml5-command="insertSpeech"]:after {
  background-position: -606px center;
}

[data-wysihtml5-action="change_view"]:after {
  background-position: -680px center;
}

.fore-color ul, .data-tag ul {
  display: none;
  position: absolute;
  z-index: 2;
  top: 40px;
  right: -1px;
  left: -2px;
  border: 1px solid #ccc;
  border-top: 0;
  background: #fff;
  overflow: hidden;
}

.data-tag ul {
	width: 200px;
}

.data-tag li {
  	display: block;
	text-align: left;
	margin: 0px;
	width: 200px;
	border: 0;
	color: #1c94c4;
	height: 15px;
	padding: 8px;
	border-bottom: 1px solid #ccc;
}

.data-tag li:hover {
	background-color: #eee!important;
	background-image: none;
}

.fore-color li {
  display: block;
  margin: 3px;
  width: auto;
  border: 0;
  height: 15px;
}

.fore-color li:after, .data-tag li:after {
  display: none;
}

.fore-color:hover ul {
  display: block;
}

.fore-color [data-wysihtml5-command-value="silver"] {
  background: silver !important;
}


.fore-color [data-wysihtml5-command-value="gray"] {
  background: gray !important;
}

.fore-color [data-wysihtml5-command-value="maroon"] {
  background: maroon !important;
}

.fore-color [data-wysihtml5-command-value="red"] {
  background: red !important;
}

.fore-color [data-wysihtml5-command-value="purple"] {
  background: purple !important;
}

.fore-color [data-wysihtml5-command-value="green"] {
  background: green !important;
}

.fore-color [data-wysihtml5-command-value="olive"] {
  background: olive !important;
}

.fore-color [data-wysihtml5-command-value="navy"] {
  background: navy !important;
}

.fore-color [data-wysihtml5-command-value="blue"] {
  background: blue !important;
}

.fore-color .wysihtml5-command-active, .data-tag .wysihtml5-command-active {
  outline: 1px solid #666;
  outline-offset: 1px;
}

.wysihtml5-commands-disabled .fore-color ul, .wysihtml5-commands-disabled .data-tag ul  {
  display: none;
}

.wysihtml5-action-active,
.wysihtml5-command-active {
  box-shadow: inset 0 1px 6px rgba(0, 0, 0, 0.2);
  background: #eee !important;
}

.wysihtml5-commands-disabled [data-wysihtml5-command],
.wysihtml5-commands-disabled .fore-color, .wysihtml5-commands-disabled .data-tag {
  opacity: 0.4;
  cursor: default;
  background-image: none !important;
}

[data-wysihtml5-dialog] {
  color: #333;
  font-size: 14px;
  -ms-box-sizing: border-box;
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
  border: 1px solid #ccc;
  padding: 14px;
  position: absolute;
  text-align: center;
  background-color: #eee;
	width: 100%;
	top: 41px;
	border-top-left-radius: 0px;
	border-top-right-radius: 0px;
	border-bottom-right-radius: 0px;
	border-bottom-left-radius: 0px;
	border-width: 0px 0px 1px 1px;
}

[data-wysihtml5-dialog] input {
  color: #333;
  border: 1px solid #ccc;
  padding: 3px;
  width: 300px;
}

[data-wysihtml5-dialog] input:focus {
  outline: 0;
  border: 1px solid #666;
}

[data-wysihtml5-dialog-action], #do_file_upload {
  padding: 4px;
  color: #fff!important;
  cursor: pointer;
  text-decoration: none!important;
}

[data-wysihtml5-dialog-action="save"], #do_file_upload {
  background: #37A0BF;
}

#file_input_button {
	text-align: left;
}

#file_input_button .fileinput-button, #file_input_button a {
	float: left;
	margin-right: 8px;
}

[data-wysihtml5-dialog-action="cancel"] {
  background: #999;
}