.a51editor {
  border: 1px solid #ccc;
  display: block;
  padding: 0px;
/*  width: 100% !important;*/
/*  height: auto !important;*/
  margin: 0px;
  position: relative;
  min-height: 150px;
}

.a51editor .a51editor_toolbar {
  border-bottom: 1px solid #eee;
  margin: 0px 5px;
}

.a51editor .a51editor_toolbar table {
  border-collapse: collapse;
  margin: 3px 0px 4px;
  padding: 0px;
  width: auto !important;
}

.a51editor .a51editor_toolbar table td {
  padding: 0px;
  vertical-align: middle;
}

.a51editor .a51editor_toolbar table td.mceToolbarStart.mceToolbarStartButton,
.a51editor .a51editor_toolbar table td.mceToolbarEnd.mceToolbarEndButton {
  display: none;
}

.a51editor .a51editor_toolbar a.mceButton {
  display: block;
  width: 20px;
  height: 20px;
  background-image: url(assets/images/visual_editor/default/layout/editor.png);
  background-repeat: no-repeat;
  border-radius: 2px;
}


.a51editor a.mceButtonActive {
  background-color: #ddd;
}

.a51editor a.mceButtonDisabled {
  opacity: 0.2;
}

.a51editor .a51editor_toolbar span.mceSeparator {
  width: 15px;
  display: block;
  height: 20px;
}

.a51editor .a51editor_field {
  position: absolute;
  top: 33px;
  left: 10px;
  right: 10px;
  bottom: 18px;
  z-index: 100;
}

.a51editor .a51editor_field iframe {
  height: 100% !important;
}

.a51editor a.mceButton.mce_bold { background-position: 0px 0px; }
.a51editor a.mceButton.mce_italic { background-position: -20px 0px; }
.a51editor a.mceButton.mce_underline { background-position: -40px 0px; }
.a51editor a.mceButton.mce_strikethrough { background-position: -60px 0px; }
.a51editor a.mceButton.mce_blockquote { background-position: -80px 0px; }
.a51editor a.mceButton.mce_a51editor_mark_note { background-position: -100px 0px; }
.a51editor a.mceButton.mce_a51editor_mark_updated { background-position: -120px 0px; }
.a51editor a.mceButton.mce_a51editor_mark_important { background-position: -140px 0px; }
.a51editor a.mceButton.mce_insertunorderedlist { background-position: -160px 0px; }
.a51editor a.mceButton.mce_insertorderedlist { background-position: -180px 0px; }
.a51editor a.mceButton.mce_a51editor_link { background-position: -200px 0px; }
.a51editor a.mceButton.mce_a51editor_image { background-position: -220px 0px; }
.a51editor a.mceButton.mce_a51editor_code { background-position: -240px 0px; }
.a51editor a.mceButton.mce_a51editor_update_code { background-position: -240px 0px; }
.a51editor a.mceButton.mce_a51editor_table { background-position: -260px 0px; }
.a51editor a.mceButton.mce_row_after { background-position: -280px 0px; }
.a51editor a.mceButton.mce_row_before { background-position: -300px 0px; }
.a51editor a.mceButton.mce_col_after { background-position: -320px 0px; }
.a51editor a.mceButton.mce_col_before { background-position: -340px 0px; }
.a51editor a.mceButton.mce_a51editor_merge_cells { background-position: -360px 0px; }
.a51editor a.mceButton.mce_split_cells { background-position: -380px 0px; }
.a51editor a.mceButton.mce_delete_row { background-position: -400px 0px; }
.a51editor a.mceButton.mce_delete_col { background-position: -420px 0px; }
.a51editor a.mceButton.mce_delete_table { background-position: -440px 0px; }
.a51editor a.mceButton.mce_a51editor_cell_highlight { background-position: -460px 0px; }
.a51editor a.mceButton.mce_a51editor_alignment_left { background-position: -480px 0px; }
.a51editor a.mceButton.mce_a51editor_alignment_center { background-position: -500px 0px; }
.a51editor a.mceButton.mce_a51editor_alignment_right { background-position: -520px 0px; }
.a51editor a.mceButton.mce_a51editor_delete_code { background-position: -540px 0px; }
.a51editor a.mceButton.mce_a51editor_preview_code { background-position: -560px 0px; }
.a51editor a.mceButton.mce_a51editor_outdent_list { background-position: -580px 0px; }
.a51editor a.mceButton.mce_a51editor_indent_list { background-position: -600px 0px; }
.a51editor a.mceButton.mce_a51editor_edit_link { background-position: -620px 0px; }
.a51editor a.mceButton.mce_a51editor_remove_link { background-position: -640px 0px; }
.a51editor a.mceButton.mce_a51editor_visit_link { background-position: -660px 0px; }

.a51editor a.mceButton.mce_a51editor_heading_1 { background-position: -680px 0px; }
.a51editor a.mceButton.mce_a51editor_heading_2 { background-position: -700px 0px; }
.a51editor a.mceButton.mce_a51editor_heading_3 { background-position: -720px 0px; }
.a51editor a.mceButton.mce_a51editor_paragraph { background-position: -740px 0px; }

.a51editor .a51editor_context_toolbar_wrapper {
  position: absolute;
  left: 0px;
  right: 0px;
  bottom: 0px;
  background: #faf3e8;
  z-index: 1000;
/*  min-height: 28px;*/
}

.a51editor .a51editor_context_toolbar {
  border-top: 1px solid #eee;
  padding-left: 10px;
}

.a51editor .a51editor_context_toolbar span.toolbar_title {
  display: block;
  line-height: 25px;
  float: left;
  margin-right: 10px;
}

.a51editor .a51editor_context_toolbar table {
  border-collapse: collapse;
  margin: 3px 0px 4px;
  padding: 0px;
  width: auto !important;
}

.a51editor .a51editor_context_toolbar table td {
  padding: 0px;
  vertical-align: middle;
}

.a51editor .a51editor_context_toolbar table td.mceToolbarStart.mceToolbarStartButton,
.a51editor .a51editor_context_toolbar table td.mceToolbarEnd.mceToolbarEndButton {
  display: none;
}

.a51editor .a51editor_context_toolbar a.mceButton {
  display: block;
  width: 20px;
  height: 20px;
  background-image: url(assets/images/visual_editor/default/layout/editor.png);
  background-repeat: no-repeat;
}

.a51editor .a51editor_context_toolbar span.mceSeparator {
  width: 10px;
  display: block;
  height: 20px;
}

.flyout_dialog_tabbed_container {
  zoom: 1;
  overflow: hidden;
  background: #f2f2f2;
}

.flyout_dialog_tabbed_container .flyout_dialog_tabbed_content_wrapper {
  margin-right: 219px;
  background: #FFF;
  border-right: 1px solid #d9d9d9;
  position: relative;
  z-index: 1;
  padding-top: 1px;
}

.flyout_dialog_tabbed_container .flyout_dialog_tabs {
  width: 220px;
  float: right;
  margin: 0px;
  padding: 0px;
  list-style: none;
  color: #747474;
  position: relative;
  z-index: 2;
}

.flyout_dialog_tabbed_container .flyout_dialog_tabs li {
  display: block;
}

.flyout_dialog_tabbed_container .flyout_dialog_tabs li a {
  padding: 16px;
  color: #747474;
  display: block;
  border-bottom: 1px solid #d9d9d9;
  border-left: 1px solid #d9d9d9;
}

.flyout_dialog_tabbed_container .flyout_dialog_tabs li.selected a {
  background: #FFF;
  border-left: 1px solid #FFF;
  color: #950000;
}

.flyout_dialog_wrapper.width_narrow .flyout_dialog_tabbed_container .flyout_dialog_tabbed_content_wrapper {
  margin-right: 149px;
}

.flyout_dialog_wrapper.width_narrow .flyout_dialog_tabbed_container .flyout_dialog_tabs {
  width: 150px;
}

.a51editor .a51editor_drag_handle {

}

.a51editor .ui-resizable-handle.ui-resizable-s {
  position: absolute;
  right: 1px;
  bottom: 1px;
  width: 15px;
  height: 15px;
  background: url(assets/images/visual_editor/default/layout/drag-handle.png) no-repeat right bottom;
  cursor: s-resize;
  z-index: 1000;
}

#insert_internal_item input[type="text"] {
  background-repeat: no-repeat;
  background-position: right center;
}

#insert_internal_item .external_link_results {
  margin: 0px;
  padding: 0px;
  list-style: none;
}

#insert_internal_item .external_link_results li {
  display: block;
}

#insert_internal_item .external_link_results li a {
  display: block;
  background: #f1f1f1;
  padding: 5px 10px;
  border-bottom: 1px solid #FFF;
  text-decoration: none;
}

#insert_internal_item .external_link_results li a:hover {
  background: #f8f8f8;
  color: #000;
}

#insert_internal_item .external_link_results li a.selected {
  background: #D45151;
  color: #FFF;
}

#insert_internal_item .external_link_results li:first-child a {
/*  border-radius: 5px 5px 0px 0px;*/
}

#insert_internal_item .external_link_results li:last-child a {
/*  border-radius: 0px 0px 5px 5px;*/
  border-bottom: 0px;
}