/*-------------------------------------------------
Rich text area
-------------------------------------------------*/

div.rich_text_area div.text_area {
  margin: 6px 0;
  border: 1px solid #999;
  border-top: 1px solid #737373;
}

div.rich_text_area div.editor {
  background: #fff;
  padding: 4px 5px;
  margin: 1px;
  min-width: 400px;
  overflow: auto;
  font-size: 13px;
  line-height: 1.425em;
  font-family: 'Lucida Grande', verdana, arial, sans-serif;
  zoom: 100%;
}

div.rich_text_area div.editor * {
  margin: 0;
  padding: 0;
  font-size: 13px;
  line-height: 1.425em;
}

div.rich_text_area div.editor strong,
div.rich_text_area div.editor b {
  font-weight: bold;
}

div.rich_text_area div.editor a {
  color: #03C !important;
}

div.rich_text_area div.editor a:hover {
  color: #03C !important;
  background: inherit !important;
  text-decoration: underline !important;
}

div.rich_text_area div.editor p {
  font-weight: normal;
  margin: 0;
}

div.rich_text_area div.editor ul,
div.rich_text_area div.editor ul li {
  list-style-type: square;
}

div.rich_text_area div.editor ol,
div.rich_text_area div.editor ol li {
  list-style-type: decimal;
}

div.rich_text_area div.editor li {
  margin-left: 30px;
  padding: 0;
  font-size: 12px;
  line-height: 1.425em !important;
}

div.rich_text_area div.editor span.inactive_selection {
  background: #d4d4d4;
}

body.message_form div.rich_text_area {
  padding-bottom: 8px;
}

div.rich_text_toolbar {
  height: 25px;
  margin: 5px 0 0;
}

div.comment div.rich_text_toolbar {
  margin: 8px 0 0;
}

div.rich_text_toolbar a.button,
div.rich_text_toolbar div.link_container {
  float: left;
}

div.rich_text_toolbar a.button {
  padding: 0 6px;
  font-size: 11px;
  line-height: 22px;
  height: 22px;
  color: #000;
  text-decoration: none;
  text-align: center;
  float: left;
  margin: 2px 2px 2px 0;
  border: 1px solid #ddd;
  border-radius: 4px;
  -moz-border-radius: 4px;
  -webkit-border-radius: 4px;
  background: #ddd;
  font-family: georgia, serif;
  cursor: hand;
}

div.rich_text_toolbar a.button:focus {
  -moz-outline:0;
  outline-offset:0;
  outline:0;
}

div.comment div.rich_text_toolbar a.button {
  background: #eee;
  border-color: #eee;
  margin: 0 2px 2px 0;
}

div.rich_text_toolbar a.bold span {
  font-weight: bold;
}

div.rich_text_toolbar a.italic span {
  font-style: italic;
}

div.rich_text_toolbar a.list span {
  background: url(/images/rich_text/icon_list_bullet.png) no-repeat left 1px;
  display: block;
  height: 16px;
  line-height: 16px;
  width: auto;
  padding: 0 1px 0 19px;
  margin: 3px 0;
  font-size: 11px;
}

div.rich_text_toolbar a.list.number span {
  background-image: url(/images/rich_text/icon_list_number.png);
  padding-left: 20px;
}

div.rich_text_toolbar a.link {
  padding: 0 5px;
}

div.rich_text_toolbar a.link span {
  text-decoration: underline;
  color: #00c;
  line-height: 22px;
}

div.rich_text_area div.rich_text_toolbar a.bold.selected,
div.rich_text_area div.rich_text_toolbar a.italic.selected,
div.rich_text_area div.rich_text_toolbar a.button.selected:hover,
div.rich_text_area div.rich_text_toolbar a.link.selected,
div.rich_text_area div.rich_text_toolbar a.list.selected {
  background: #cbcbcb url(/images/rich_text/rich_text_button_pressed.png) repeat-x left top;
  border-color: #777;
}

div.rich_text_area div.rich_text_toolbar a.button:hover,
div.comment div.rich_text_area div.rich_text_toolbar a.button:hover {
  /*background: #fff url(/images/rich_text/rich_text_button_hover.gif) repeat-x left bottom;*/
  /*background: #fff;
    border-color: #bbb;*/
  border-color: #999;
}

div.comment div.rich_text_area div.rich_text_toolbar a.bold.selected,
div.comment div.rich_text_area div.rich_text_toolbar a.italic.selected,
div.comment div.rich_text_area div.rich_text_toolbar a.button.selected:hover,
div.comment div.rich_text_area div.rich_text_toolbar a.link.selected,
div.comment div.rich_text_area div.rich_text_toolbar a.list.selected {
  background: #ddd url(/images/rich_text/rich_text_comments_button_pressed.png) repeat-x left top;
  border-color: #999;
}

/* Link Dialog */

div.rich_text_toolbar div.link_container {
  position: relative;
}

div.rich_text_toolbar div.link_container div.menu_content {
  display: none;
  position: absolute;
  color: #000;
  font-size: 11px;
  line-height: 14px;
  background: url(/images/rich_text/rich_text_link_dialog.png) no-repeat center top;
  width: 260px;
  padding: 20px 22px 22px;
  top: 20px;
  left: -134px;
  text-align: left;
  text-decoration: none;
  font-family: verdana, sans-serif;
}

div.comments div.rich_text_toolbar div.link_container div.menu_content {
  top: 18px;
}

div.rich_text_toolbar div.link_container.active_menu a.button {
  background: #cbcbcb url(/images/rich_text/rich_text_button_pressed.png) repeat-x left top;
  border-color: #777;
}

div.comment div.rich_text_toolbar div.link_container.active_menu a.button {
  background: #ddd url(/images/rich_text/rich_text_comments_button_pressed.png) repeat-x left top;
  border-color: #999;
}

div.rich_text_toolbar div.link_container.active_menu div.menu_content {
  display: block;
}

div.rich_text_toolbar div.link_container div.menu_content label {
  font-weight: bold;
}

div.rich_text_toolbar div.link_container div.menu_content input {
  padding: 3px;
  font-size: 14px;
  width: 250px;
  font-weight: normal;
}

div.rich_text_toolbar div.link_container div.menu_content span {
  text-decoration: none;
  font-family: verdana, sans-serif;
  color: #000;
  font-size: 11px;
  line-height: 14px;
}

div.rich_text_toolbar div.link_container div.menu_content span.hint {
  color: #999;
  font-size: 10px;
  font-weight: normal;
}

/*-------------------------------------------------
Switch formatting
-------------------------------------------------*/

a.formatting_switch {
  float: right;
  font-size: 10px;
  line-height: 10px;
  -moz-outline:0;
}

div.rich_text_area a.formatting_switch {
  color: #888 !important;
}

div.rich_text_area a.formatting_switch:hover {
  color: #fff !important;
  background: #777;
}

span.or_switch {
  white-space: nowrap;
  float: right;
  padding-bottom: 1px;
}

div.comment a.formatting_switch {
  margin: 2px 0 0 0;
}

a.formatting_switch:hover {
  color: #fff !important;
}

a.formatting_switch.busy {
  text-decoration: none;
  background: url(/images/dots-white.gif) no-repeat left center !important;
}

a.formatting_switch.busy span {
  visibility: hidden;
}

/*-------------------------------------------------
Textile text area
-------------------------------------------------*/

div.textile_text_area textarea {
  padding: 4px 5px;
  font-size: 13px;
	line-height: 1.425em;
  font-family: 'Lucida Grande', verdana, arial, sans-serif;
  margin-top: 0;
}

*:first-child+html div.textile_text_area {
  float: left;
}

*:first-child+html div.main_attributes div.textile_text_area {
  width: 99%;
}

div.textile_toolbar {
  font-size: 11px;
  width: 100%;
  min-width: 500px;
  border-left: 1px solid #999;
  border-top: 1px solid #999;
  border-right: 1px solid #999;
  background: #f0f0f0;
}

*:first-child+html div.textile_toolbar {
  margin-bottom: -1px;
}

div.comment div.textile_toolbar {
  padding: 0 10px 0 0;
  background: #f5f5f5;
}

div.textile_toolbar div.textile_note {
  font-size: 11px;
  padding: 8px 10px;
  line-height: 1.4em;
  color: #666;
  background: none;
}

div.textile_toolbar div.textile_note strong {
  color: #000;
}

div.textile_toolbar div.textile_note a {
  color: #666;
}

div.textile_toolbar div.textile_note a:hover {
  color: #fff !important;
}

div.textile_toolbar a.formatting_switch {
  float: none;
  line-height: 1em;
  font-size: 11px;
  margin: -1px 0 0;
}

div.textile_toolbar div.textile_note a.formatting_switch {
  color: #00c;
}

div.comment div.textile_toolbar a.formatting_switch {
  margin-right: -10px;
}

div.textile_toolbar a.formatting_switch:hover {
  color: #fff !important;
}
