  /* Fact Form styles */
  /* ------------------------------------------------------------- */

  .facts_top_navigation  {
    margin-bottom: 4px;
  }

  .facts_top_navigation a {
    display: inline;
  }
  
  .facts_top_navigation a.openall {
    padding-left: 0px;
  }
  
  .facts_top_navigation.repeatable_tab {
    padding-left: 200px;
  }
  
  div.ff_factform {
    /*width: 598px;*/
    padding-top: 8px; /* to prevent collision caused by the buttonlist */
  }
  
  div.ff_factform .ff_category .ff_cat_title {
    background-color: #a0a0a0;
    color: white;
    padding: 6px 2px;
    margin-top: 1px;
    position: relative;

    cursor: pointer;
    background-image: url(/static/content/fact/images/closed.png);
    background-repeat: no-repeat;
    background-position: 8px center;
    padding-left: 32px;
    
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;    
  }
  
  div.ff_factform .ff_category .ff_cat_title .ff_source_unique_id {
    position: absolute;
    top: 10px;
    left: 175px;
  }
  
  div.ff_factform .ff_category .ff_cat_title.open {
    background-image: url(/static/content/fact/images/open.png);
  }
    
  div.ff_factform .ff_clear {
    clear: both;
  }

  div.ff_factform .ff_new_cat_button {
    width: 130px;
    text-align: center;
    margin-bottom: 2px;
    margin-top: 10px;
  }

  div.ff_factform .ff_tab_button {
    display: inline;
    padding: 8px;
    margin-right: 2px;
    cursor: pointer;

    background-color: #eaeaea;
    border-top: 1px solid #f4f4f4;
    border-right: 1px solid #cdcdcd;
    border-bottom: 1px solid #cdcdcd;
    border-left: 1px solid #f4f4f4;
    
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    
    line-height: 34px;
  }

  div.ff_factform .ff_tab_pictures {
    margin-left: 12px;
    margin-right: 12px;
  }
  
  div.ff_factform .ff_tab_button.ff_error {
    border: 2px solid red;
  }
  
  div.ff_factform .ff_tab_button.ff_tab_source_change {
    border: 2px solid orange;
  }
  
  div.ff_factform .ff_tab_button.active {
    background-color: #c7ecc2;
    color: black;
    border: 1px solid #b3c8b0;
    
    border-top: 1px solid #b3c8b0;
    border-right: 1px solid #e2f6e0;
    border-bottom: 1px solid #e2f6e0;
    border-left: 1px solid #b3c8b0;
  }
  
  div.ff_factform .ff_tab_button.ff_error.active {
    border: 2px solid red;
  }

  div.ff_factform .ff_tab_button.ff_tab_source_change.active {
    border: 2px solid orange;
  }
  
  div.ff_factform .ff_tab_buttonlist {
    margin-bottom: 24px;
  }
  
  div.ff_factform .ff_tab_space {
    position: relative;
  }
  
  div.ff_factform .ff_category .ff_title,
  div.ff_factform .ff_category .ff_checkedbox_div,
  div.ff_factform .ff_category .ff_value_div,
  div.ff_factform .ff_category .ff_value_error_div,
  div.ff_factform .ff_category .ff_source_select,
  div.ff_factform .ff_source_compare_checked,
  div.ff_factform .ff_source_compare_value
  {
    float: left;
    width: 235px;
    line-height: 24px;
    height: 24px;
    border-right: 1px solid white;
    border-bottom: 1px solid white;
    padding-left: 2px;
    overflow: hidden;
  }
  
  div.ff_factform .ff_category .ff_checkedbox_div {
    width: 38px;
  }
  
  div.ff_factform .ff_category .ff_value_div {
    width: 222px;
  }

  div.ff_factform .ff_category .ff_value_error_div {
    width: 204px;
    background-color: red;
    color: white;
    padding-left: 20px;
    background-image: url(/static/content/fact/images/nextlevel.png);
    background-repeat: no-repeat;
    background-position: 3px 4px;    
  }
  
  div.ff_factform .ff_category .ff_source_select {
    width: 74px;
    border-right: 0;
    
    padding-left: 20px;
    background-image: url(/static/content/fact/images/edit.png);
    background-repeat: no-repeat;
    background-position: 3px 5px;
    cursor: pointer;    
  }
  
  div.ff_factform .ff_category .ff_source_diff .ff_source_select,
  div.ff_factform .ff_category .ff_error_message .ff_source_select {
    background-image: none;
    cursor: default;
  }

  div.ff_factcategory_inlineheader {
    background-color: #f0f6ef;
    font-size: 12px;
    font-weight: bold;
    padding-top: 10px;
    padding-bottom: 2px;
    padding-left: 2px;
  }

  div.ff_factform .ff_fact {
    background-color: #E4EBE3;
  }
  
  div.ff_factform .ff_fact .ff_source_diff {
    background-color: #9a3333;
    color: white;
    
    background-image: url(/static/content/fact/images/nextlevel.png);
    background-repeat: no-repeat;
    background-position: 3px 5px;    
  }
  
  div.ff_factform .ff_fact .ff_source_diff .ff_title {
    padding-left: 20px;
    width: 217px;
    position: relative;
  }
  
  div.ff_factform .ff_fact.ff_type_MULTILINETEXT textarea {
    margin: 2px;
    height: 62px;
    width: 200px;
  }
  
  div.ff_factform .ff_fact.ff_type_MULTILINETEXT .ff_title,
  div.ff_factform .ff_fact.ff_type_MULTILINETEXT .ff_checkedbox_div,
  div.ff_factform .ff_fact.ff_type_MULTILINETEXT .ff_value_div,
  div.ff_factform .ff_fact.ff_type_MULTILINETEXT .ff_source_select,
  div.ff_factform .ff_fact.ff_type_MULTILINETEXT .ff_source_compare_checked,
  div.ff_factform .ff_fact.ff_type_MULTILINETEXT .ff_source_compare_value
  {
    height: 72px;
  }
  
  
  
  div.ff_factform .ff_fact.ff_type_DAYS textarea {
    margin: 2px;
    height: 52px;
    width: 200px;
  }
  
  div.ff_factform .ff_fact.ff_type_DAYS .ff_title,
  div.ff_factform .ff_fact.ff_type_DAYS .ff_checkedbox_div,
  div.ff_factform .ff_fact.ff_type_DAYS .ff_value_div,
  div.ff_factform .ff_fact.ff_type_DAYS .ff_source_select,
  div.ff_factform .ff_fact.ff_type_DAYS .ff_source_compare_checked,
  div.ff_factform .ff_fact.ff_type_DAYS .ff_source_compare_value
  {
    height: 62px;
  }  
  
  
  div.ff_factform .ff_fact.ff_type_MONEY input {
    text-align: right;
  }
  
  div.ff_factform .ff_fact .ff_source_diff .ff_accept_diff,
  div.ff_factform .ff_fact .ff_source_diff .ff_decline_diff {
    position: absolute;
    background-image: url(/static/content/fact/images/accept.png);
    background-repeat: no-repeat;
    top: 4px;
    left: 100px;
    width: 14px;
    height: 14px;
    cursor: pointer;
  }

  div.ff_factform .ff_fact .ff_source_diff .ff_decline_diff {
    background-image: url(/static/content/fact/images/decline.png);
    left: 150px;
  }

  div.ff_factform .ff_open_checked_all {
    background-color: #E4EBE3;
    color: #C60;
    text-decoration: underline;
    cursor: pointer;
    padding: 8px;
  }

  div.ff_factform .ff_source_popup {
    display: none;
    position: absolute;
    border: 1px solid #a0a0a0;
    background-color: white;
    width: 150px;
    padding: 20px;
    z-index: 99;
  }

  div.ff_factform .ff_source_popup li {
    margin-bottom: 6px;
    color: #C60;
    cursor: pointer;
    text-decoration: underline;
  }

  div.ff_factform .ff_delete_category, 
  div.ff_factform .ff_apply_category {
    display: block;
    width: 70px;
    text-align: center;
    float: right;
    cursor: pointer;
    margin-right: 6px;
  }
  
  div.ff_factform .ff_apply_category {
    position: absolute;
    right: 2px;
    top: 5px;  
  }
  
  div.ff_factform .ff_category .ff_cat_title.ff_cat_repeatable_deleted {
    background-color: #9A3333;

  }

  div.ff_factform .ff_category .ff_repcat_deleted_warning {
    background-color: #9A3333;
    color: white;
    background-image: url(/static/content/fact/images/nextlevel.png);
    background-repeat: no-repeat;
    background-position: 3px 4px;
    padding: 5px 5px 5px 20px;
  }
  
  div.ff_factform .ff_cat_title_repeatable .ff_source_compare_text {
    float: right;
    width: 185px;
    height: 25px;
    line-height: 25px;
    text-align: center;
    color: black;
    margin-top: -6px;
  }
  
  

  /* some error messages are to long to be shown in full, so we need to increase
     the height of some boxes */
  div.ff_factform .ff_type_DATE_RANGE .ff_error_message .ff_title,
  div.ff_factform .ff_type_DATE_RANGE .ff_error_message .ff_checkedbox_div,
  div.ff_factform .ff_type_DATE_RANGE .ff_error_message .ff_value_error_div,
  div.ff_factform .ff_type_DATE_RANGE .ff_error_message .ff_source_select {
    height: 54px;
  }

  div.ff_factform .ff_type_TIME_RANGE .ff_error_message .ff_title,
  div.ff_factform .ff_type_TIME_RANGE .ff_error_message .ff_checkedbox_div,
  div.ff_factform .ff_type_TIME_RANGE .ff_error_message .ff_value_error_div,
  div.ff_factform .ff_type_TIME_RANGE .ff_error_message .ff_source_select {
    height: 36px;
  }
  
  
  div.ff_factform .ff_type_DATE_RANGE .ff_error_message .ff_value_error_div,
  div.ff_factform .ff_type_TIME_RANGE .ff_error_message .ff_value_error_div {
    line-height: 16px;
  }

  div.ff_factform .ff_source_compare_checked {
    position: relative;
    width: 30px;
    border-right: 0px;
    border-left: 1px solid white;
    text-align: center;
  }

  div.ff_factform .ff_source_compare_value {
    position: relative;
    width: 150px;
    border-right: 0px;
    border-left: 1px solid white;
    line-height: 18px;
  }

  div.ff_factform .ff_source_compare_sdiff {
    background-color: #9a3333;
  }

  div.ff_factform .ff_source_compare_sempty {
  }



  div.ff_factform .ff_source_compare_s0 {
   background-color: #f8f8f8;
  }
  
  div.ff_factform .ff_source_compare_s1 {
   background-color: #ebf3ff;
  }

  div.ff_factform .ff_source_compare_s2 {
   background-color: #ffecca;
  }

  div.ff_factform .ff_source_compare_s3 {
   background-color: #d7e7ff;
  }

  div.ff_factform .ff_source_compare_s4 {
   background-color: #9DC6B0;
  }

  div.ff_factform .ff_source_compare_s5 {
   background-color: #C6B09C;
  }

  div.ff_factform .ff_source_compare_s6 {
   background-color: #DDEBE3;
  }

  div.ff_factform .ff_source_compare_s7 {
   background-color: #9CC6A2;
  }

  div.ff_factform .ff_source_compare_s8 {
   background-color: #ebf3ff;
  }

  div.ff_factform .ff_source_compare_s9 {
   background-color: #B09CC6;
  }
  
  div.ff_factform .ff_source_compare_s10 {
   background-color: #9CC6BD;
  }
  
  div.ff_factform .ff_source_compare_row {
    position: relative;
  }
  
  div.ff_factform .ff_source_compare_usebutton {
    position: absolute;
    top: 4px;
    text-align: center;
  }
  
  div.ff_factform .ff_source_compare_useallbutton {
    position: absolute;
    top: 4px;
    height: 14px;
    line-height: 14px;
    text-align: center;
  }
  
  div.ff_factform .ff_source_compare_header {
    position: absolute;
    top: 0px;
    line-height: 22px;
    text-align: center;
    border-left: 1px solid white;
  }
  
  div.ff_factform .ff_source_compare_main_source .ff_source_compare_text {
    font-weight: bold;
    text-shadow: 2px 2px #FFFFFF;
    text-decoration: underline;
  }
  
  div.ff_factform .ff_fact.ff_fact_grayed_out {  
    background-color: #dbdbdb;
    color: gray;
  }

  div.ff_factform .ff_fact.ff_fact_hidden {  
    height: 0px;
    background-color: red;
  }  
  
  
  
  div.ff_factform ::-webkit-input-placeholder {
    font-size: 80%;
  }

  div.ff_factform :-moz-placeholder { /* Firefox 18- */
    font-size: 80%;
  }

  div.ff_factform ::-moz-placeholder {  /* Firefox 19+ */
    font-size: 80%;
  }

  div.ff_factform :-ms-input-placeholder {  
    font-size: 80%;
  }
  

  div.ff_factform .ff_picturetab_upload_header {
    width: 500px;

    background-color: #a0a0a0;
    color: white;
    padding: 6px 8px;
    margin-top: 1px;
   
  }
  
  div.ff_factform .ff_picturetab_upload_container,
  div.ff_factform .ff_picturetab_list_container {
    float: left;
    margin-right: 10px;
  }
  
  div.ff_factform .ff_picturetab_upload_body,
  div.ff_factform .ff_picturetab_list_body {
    background-color: #e3e4eb;
    padding: 8px ;
    width: 500px;
  }


  div.ff_factform .ff_picturetab_upload_header,
  div.ff_factform .ff_picturetab_list_header{
    width: 500px;

    background-color: #a0a0a0;
    color: white;
    padding: 6px 8px;
    margin-top: 1px;
   
  }
  
  
  div.ff_factform .ff_picturetab_list_container table td {
    vertical-align: top;
  }
  
  #ff_picuploadformframe {
    width: 500px;
    height: 220px;
    border: 0px;
  }


  div.ff_factform .ff_repeatable_categories {
    float: left;
    width: 784px;
  }
  
  div.ff_factform .ff_repeatable_sourceselect {
    float: left;
    width: 200px;
    margin-top: 10px;
  }
  
  div.ff_factform .ff_repeatable_sourceselect .ff_tab_button {
    width: 170px;
    display: block;
    margin-bottom: 2px;
  }
  
  div.ff_factform .ff_repeatable_sourceselecttab {
    float: left;
    display: none;
    padding-top: 10px;
  }
  
  
  div.ff_factform .ff_repeatable_sourcecategory {
    width: 450px;
  }
  
  div.ff_factform .ff_repeatable_sourcecategory .ff_source_compare_value {
    width: 176px;
  }
  
  
  
  div.ff_factform .ff_sourcecategory_usedcategories .ff_apply_category {
    display: none;
  }
  
  div.ff_factform .ff_sourcecategory_usedcategories .ff_cat_title {
    background-color: #bdbdbd;
  }
  
  div.ff_factform .ff_sourcecategory_usedcatsheader {
    font-weight: normal;
    font-size: 14px;
    margin-top: 20px;
    margin-bottom: 10px;
  }
  
  
  div.ff_factform .ff_sourcecat_new {
    color: blue;
    font-style: italic;
  }
  
  
  div.ff_factform .ff_cat_title_repeatable_editbox {
    width: 250px;
  }
  

  div.ff_factform .ff_cat_title_repeatable_code_editbox {
    width: 100px;
    margin-left: 8px;
  }
  
  
  div.ff_factform .ff_tab_button_new_count {
    color: blue;
    font-weight: bold;
    font-style: italic;
  }