body {
  background: #bebebe;
  margin: 0;
}

#container {
  background: #fff;
}

/* Overall Variables
------------------------------------------------- */

h1 {
  color: #c1c0c0;
  font-size: 12px;
  background: url(/images/logo-whittaker.jpg) no-repeat 18px 6px;
  margin: 0;
  padding: 9px 9px 9px 54px;
}

a {
  color: #2d6fad;
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

/* Utility Navigation
------------------------------------------------- */

  ul#utilitynav {
    position: absolute;
    top: 0px;
    font-size: 12px;
    line-height: 2;
    list-style: none;
    right: 0;
    margin: 0;
    padding: 7px 18px;
    overflow: hidden;
    height: 25px;
  }

  ul#utilitynav li {
    display: inline;
  }

  ul#utilitynav li a {
    color: #465260;
    text-decoration: none;
    background: none;
    padding: 8px;
  }

  ul#utilitynav li a:hover {
    color: #465260;
    text-decoration: none;
    border-bottom: 5px solid #465260;
  }

  ul#utilitynav li#greeting {
    border-right: 1px solid #BEBEBE;
    margin-right: 8px;
  }

  ul#utilitynav li#greeting a {
    padding: 8px 16px 8px 0;
  }
  ul#utilitynav li#greeting a:hover {
    border-bottom: none;
  }

/* User Identification Bar
------------------------------------------------- */
#userbar {
  color: #fff;
  font-size: 28px;
  background: #e45918;
  padding: 4px 18px;
  margin: 0;
}

/* Main Navigation
------------------------------------------------- */
ul#navigation {
  color: #63543b;
  font-size: 14px;
  background: #f3eada;
  overflow: hidden;
  list-style: none;
  width: 557px;
  margin: 0 -36px;
  padding: 0 36px;
}

  ul#navigation li {
    float: left;
    margin-right: 5px;
    line-height: normal;
  }

  ul#navigation li a {
    color: #63543b;
    background-color: #E3DACA;
    display: block;
    padding: 9px 18px 7px 18px;
    text-decoration: none;
  }

  ul#navigation li a:hover {
    background-color: #FFFAEA;
  }

  ul#navigation li#current a, ul#navigation li a.active {
    color: #000;
    background: #FFF;
  }

/* Search
------------------------------------------------- */

form#search {
  margin: 20px 0;
}

  form#search fieldset {
    border: none;
  }

  form#search label {
    font-size: 20px;
  }

/* Main Content
------------------------------------------------- */

.section {
  overflow: hidden;
  width: 547px;
  margin-bottom: 18px;
}

/* was #client, but changed to h3 */
h3 {
  position: relative;
  font-family: Georgia, serif;
  font-size: 26px;
  font-weight: normal;
  margin-bottom: 10px;
  padding-bottom: 5px;
}
  h3 span {
    display: block;
    font-size: 18px;
    color: #666;
    font-weight: normal;
  }

h4 {

}

#notice p, .error {
  background: #CEC;
  color: #333;
  font-size: 13px;
  font-weight: bold;
  text-align: center;
  border-bottom: 1px solid #ccc;
  padding: 5px;
  margin: 0;
}

.error {
  border:solid 1px #CC0000;
  background:#F7CBCA;
  color:#CC0000;
  }

/* Tables
------------------------------------------------- */

td {
  border-bottom: none;
}

table.dashboard {
  width: 100%;
  padding: 0;
  margin: 0;
}

table.dashboard tr th {
  color: #666;
  font: 12px Helvetica;
  background: #e1e1e1;
  text-align: left;
  padding: 5px;
}

table.dashboard tr td {
  color: #333;
  font-size: 13px;
  font-weight: bold;
  padding: 10px 5px;
  border-bottom: 1px solid #ccc;
}

/* Table details */

table.dashboard tr td.company-list { width: 300px; }


table.dashboard tr td .org {
  color: #333;
  font-size: 15px;
}

  table.dashboard tr td .org a {
    color: #333;
    text-decoration: none;
  }

  table.dashboard tr td .org a:hover {
    color: #333;
    text-decoration: underline;
  }

  table.dashboard tr td a.activity {
    position: static;
  }

table.dashboard tr td .description,
table.dashboard tr td .adr {
  display: block;
  font-size: 11px;
  font-weight: normal;
  color: #666;
}

/* Side Panel
------------------------------------------------- */

#sidepanel h4 {
  font-size: 16px;
  border-bottom: 1px solid #e5e1e1;
}

#sidepanel .section {
  position: relative;
  width: auto;
}

  #sidepanel .section .activity {
    top: 4px;
  }

#sidepanel ul {
  padding: 0;
  margin: 0;
  list-style-type: none;
}

#sidepanel ul li {
  float: none;
}

#sidepanel ul li {
  padding: 6px 8px;
}

#sidepanel ul.statuses li, #sidepanel ul.lists li {
  	width: 216px;
	padding: 0;
}
  #sidepanel ul.statuses li a, #sidepanel ul.lists li a, #sidepanel ul.reminders li {
    display: block;
    padding: 6px 8px;
    border-bottom: 1px solid #EEE;
	 width: 183px;
  }

  #sidepanel ul.statuses li a.selected,
  #sidepanel ul.lists li a.selected,
  #sidepanel li a:hover {
    background-color: #FEFFE2;
    text-decoration: none;
  }

  #sidepanel ul.statuses li a.status.active {
    font-weight: bold;
    border-bottom: 2px solid #EEE;
  }

  #sidepanel .count {
    width: 3em;
    text-align: center;
    background-color: #F3EADA;
    border-radius: 5px;
    -moz-border-radius: 5px;
    -webkit-border-radius: 5px;
    padding: 2px;
    margin: -2px 0;
    font-size: 10px;
    font-weight: bold;
  }
    #sidepanel li .count, #sidepanel .edit {
      display: block;
      float: right;
    }
  #sidepanel li .date {
    float: right;
    display: block;
    font-size: 0.8em;
    color: #999;
  }

  #sidepanel ul li a.status {
    padding: 6px 8px 6px 25px;
  }

  #sidepanel .import_files .source, #sidepanel .active_at {
    display: block;
    font-size: 0.8em;
    color: #999;
  }

  #sidepanel h5 {
    margin: 0.5em 0 0 0;
    border-bottom: 1px solid #EEE;
  }

.statuses .status {
  background: url(../images/sprite-bullets.png) no-repeat 4px center;
}

.statuses .status.rejected, .statuses .status.no_interest {
}
.statuses .status.researched,
.statuses .status.verified,
.statuses .status.not_available,
.statuses .status.in_progress,
.statuses .status.suspect {
  background-position: -208px center;
}
.statuses .status.new,
.partner .statuses .status.accepted {
  background-position: -428px center;
}
.statuses .status.accepted,
.statuses .status.prospect,
.statuses .status.project,
.statuses .status.met {
  background-position: -644px center;
}

/* Bubble
------------------------------------------------- */
#sidepanel .bubble {
  position: relative;
  border: 1px solid #CCC;
  border-radius: 5px;
  -moz-border-radius: 5px;
  -webkit-border-radius: 5px;
  padding: 12px 10px 8px 10px;
  margin: 10px -5px;
}

#sidepanel .bubble h4 {
  margin: 0;
  padding: 0;
  border: none;
  line-height: 1;
}

#sidepanel .bubble p { padding: 0 10px 0 10px;}


/* Actions & Activity
------------------------------------------------- */

a.activity, .activity {
  position: absolute;
  top: 13px;
  right: 10px;
  font: 12px Helvetica;
  overflow: hidden;
}
  .activity a {
    display: block;
    float: left;
    margin-left: 5px;
    padding-right: 5px;
  }
  .activity img {
    vertical-align: middle;
  }

 a.activity {
   text-decoration: none;
   background: url(/images/icon-arrow-orange.gif) no-repeat center left;
   padding-left: 15px;
 }
 .activity a.activity {
   position: static;
 }

a.activity:hover {
  text-decoration: none;
}

/* Footer
------------------------------------------------- */
#footer {
  clear: both;
  padding: 20px 30px;
  border-top: 10px solid #bebebe;
}


/* Form Elements
----------------------------------------------------- */
form {
  margin: 0;
  padding: 0;
}

  form .buttons {
    padding: 18px 0;
    text-align: center;
  }

    form.loading .buttons, .audit form.loading {
      text-indent: -2000px;
      overflow: hidden;
      background: url(../images/tray-loading-bar.gif) no-repeat center center;
    }

    form.loading .buttons *, .audit form.loading * {
      visibility: hidden;
      text-indent: -2000px;
    }

  form button.remove {
    display: inline-block;
    width: 15px;
    height: 15px;
    text-indent: -2000px;
    overflow:hidden;
    background: url(../images/icon-remove.png) no-repeat;
    border: none;
    cursor: pointer;
    padding: 0;
  }

fieldset {
  border: none;
  margin: 9px 0;
  padding: 1em 0 0 0;
}

  form .field {
    width: 126px;
    float: left;
    margin-right: 36px;
  }

    form .field label {
      display: block;
    }

legend {
  color: #000;
  font-family: Verdana, Tahoma, sans-serif;
  font-size: 14px;
  margin: 0;
  padding: 0;
}

label, form dt, .label {
  font-weight: bold;
  color: #999;
  font-size: 10px;
  text-transform: uppercase;
}

input, textarea {
  color: #666;
  font: 11px verdana, arial, sans-serif;
}

input:focus, select:focus, textarea:focus {
  color: #000;
}

fieldset.options {
  border-top: none;
  background-color: #E4EDFD;
  margin: 0;
  padding: 18px;
}

form .field em {
  color: #999;
}

form .field input {
  width: 100%;
}

form .checkbox label {
  display: inline;
  text-transform: none;
  color: #666;
}

  form .checkbox ul {
    list-style: none;
    margin: 0;
    padding: 0;
  }
  form .checkbox li {
    margin: 0;
    padding: 0 0 15px 0;
    line-height: 18px;
    font-weight: normal;
    list-style: none;
  }

/* FIXME: Remove all dl/dt/dd styles related to forms */
form dl {
  overflow: hidden;
}

form dt {
  width: 120px;
  float: left;
  clear: left;
  text-align: right;
}

form#new_company dt {
  width: 180px;
  text-align: left;
}

form dt, form dd {
  line-height: 32px;
}

form dd {
  float: left;
}

form dd.description {
  color: #BBB;
  font-style: italic;
  font-size: 12px;
  margin-top: -8px;
}

/* Autocompleter
------------------------------------------------- */
input.active {
  background-image: url(../images/spinner.gif);
  background-repeat: no-repeat;
  background-position: right;
}

div.autocomplete {
  background: #FFF;
  border: 1px solid #CCC;
}

div.autocomplete ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

div.autocomplete ul li {
  border-bottom: 1px solid #EEE;
  padding: 4px 9px;
}

div.autocomplete li.selected {
  background-color: #FFC;
}

/* Events/Ariticles */
form dd#events div {
  overflow: hidden;
}

form dd#events ul {
  list-style: none;
  margin: 0;
  padding: 0;
  float: left;
  width: 49%;
}

/* Leads list
------------------------------------------------- */

p#list-status em {
  border-bottom: 1px solid #999;
  text-transform: lowercase;
}
h4#list-status-name {
  margin-bottom: 0;
}
p#status-description-callout, span.note {
  color: #666;
  font-style: italic;
}

p#status-description-callout {
  display: inline-block;
  margin-bottom: 0;
}

#export-list {
  float: right;
}

#leads {
  padding: 0;
  margin: 30px 0;
}

#leads li.order {
  list-style-type: none;
  text-align: center;
  padding: 0.5em;
  background-color: #E2E2E2;
  color: #999;
  font-size: 0.9em;
}

#leads li.lead {
  position: relative;
  color: #333;
  background-image: none;
  border-top: 4px solid #E2E2E2;
  list-style-type: none;
  padding-bottom: 1em;
  line-height: 1.5em;
}

  li.lead h3 {
    font-family: "Lucida Grande", sans-serif;
    margin: 4px 0;
    }

  li.lead h3 a {
    font-size: 15px;
    font-weight: bold;
  }
  li.lead h3 a:hover { text-decoration: underline; }

  .company_details {
    position: relative;
    min-height: 4.5em;
  }

  .company.lead {
    padding-left: 1.5em;
    background: url(../images/bg-info.jpg) repeat-x bottom !important;
  	padding-bottom: 2em;
  }

  .company.lead h3 {
    border-bottom: none;
  }
  #leads .company input {
    position: absolute;
    left: 0;
    top: 1.5em;
  }

  li.lead .lead-status, li.lead .primary-contact, li.lead .industry {
    position: absolute;
    left: 300px;
  }

  li.lead .lead-status {
    top: .75em;
    display: block;
    padding: 2px;
    width: 124px;
    text-align: center;
  }

  li.lead .primary-contact {
    top: 0em;
  }

  li.lead .industry {
    top: 1.5em;
  }

  li.lead form.lead_status {
    position: absolute;
    right: 0;
    top: 3em;
    width: auto;
  }

/* Lead Status (list view and company view)
---------------------------------------------------*/
.lead-status, .partner .lead-status.accepted {
  color: #fff;
  background: #999; /* default for new status */
}
  .lead-status {
    padding: 6px 20px;
  }
  p.lead-status {
    margin: 1em 0;
  }

  .lead-status.prospect, .lead-status.accepted,
  .lead-status.project {
    background: #7cbd5b;
  }
  .lead-status.verified, .lead-status.not_available,
  .lead-status.in_progress, .lead-status.suspect {
    background: #f1a222;
  }
	.lead-status.researched {
		background: #f1c822;
	}
  .lead-status.rejected, .lead-status.no_interest {
    background: #d26b68;
  }

  .lead-status.protected {
    background: #400080;
    margin-bottom: 0 !important;
  }

  ul#leads li.rejected, ul#leads li.rejected h3 a {
    color: #999;
  }

/* Sortable
*/

.sortable-help, li.empty {
  background-color: #FFB;
  border: 1px solid #EEA;
  padding: 9px;
  font-size: 1.2em;
}

li a.sort {
  display: none;
  width: 24px;
  height: 24px;
  background: url(../images/sort.png) no-repeat center;
  float: left;
}
.sortable li a.sort {
  display: block;
}
.sortable li {
  cursor: move;
}

/* People Lists (sidepanel on overview, and people tab)
---------------------------------------------------*/

ul.jobs, ul.contacts, ul.notes, ul.articles, ul.audits {
  margin-left: 0;
  margin-right: 0;
  padding: 0;
  list-style: none;
  overflow: hidden;
  border-top: 2px solid #E2E2E2;
  border-bottom: 2px solid #E2E2E2;
}

  h4 a.sortable {
    font-size: 12px;
    font-weight: normal;
  }

  ul.jobs.sortable li.job {
    padding-left: 35px;
  }

  ul.jobs li.job, ul.contacts li.contact, ul.notes li.note, ul.articles li.article, ul.audits li.audit {
    border-top: 2px solid #E2E2E2;
    border-bottom: 2px solid #E2E2E2;
    padding: 9px 0;
  }

  ul.jobs li.job .fn {
    margin: 0;
    padding: 0;
    font-family: Georgia, Times, serif;
    font-size: 16px;
    font-weight: normal;
    line-height: 21px;
  }

  ul.jobs li.job.primary .fn {
    padding-left: 26px;
    background: url(../images/star.png) no-repeat;
  }

  ul.jobs li.job .title {
    color: #999;
    text-transform: uppercase;
    font-size: 10px;
    font-weight: bold;
  }

  ul.jobs li.job .sort {
    position: absolute;
    left: 0;
    top: 50%;
    margin-top: -12px;
  }

  ul.jobs li.job form.toggle-active {
    position: absolute;
    right: 0.5em;
    top: 50%;
    margin-top: -8px;
    height: 16px;
    width: 16px;
  }
  ul.jobs li.job form.toggle-active .buttons {
    padding: 0;
  }
  form.toggle-active.loading .buttons {
    background-image: url(../images/spinner.gif);
  }

  li.job .contact-info {
    position: absolute;
    top: 9px;
    right: 30px;
    width: 200px;
  }

  form ul.jobs {
    border: none;
  }

  form ul.jobs li.job {
    padding-left: 25px;
    position: relative;
    border: none;
    padding-top: 0;
  }
  form ul.jobs li.job input {
    position: absolute;
    left: 0;
    top: 5px;
  }
  form ul.jobs li.job .contact-info, #sidepanel ul.jobs .contact-info {
    position: static;
    right: 0;
    top: 0;
  }

/* Pagination
 * (cref. /vendor/will_paginate/examples/pagination.css)
------------------------------------------------- */
.pagination {
  padding: 10px;
}

  .pagination a, .pagination span {
    padding: 3px 7px;
  }

  .pagination span.disabled {
    display: none;
  }

  .pagination span.current {
    color: #fff;
    background: #f1a222;
    font-weight:bold;
  }

  .pagination a {
    background: #F3EADA;
    color: #63543b;
    text-decoration: none;
  }
    .pagination a:hover, .pagination a:focus {
      color: #fff;
      background: #f1a222;
      border-bottom: none;
    }

ul#phones {
  list-style: none;
  margin: 0;
  padding: 0;
}

ul#phones a.remove {
  margin-right: 10px;
}

a.repetition.remove, a.repetition.add {
  display: block;
  float: left;
  width: 15px;
  height: 15px;
  margin-top: 4px;
  text-indent: -2000px;
  overflow:hidden;
  background: url(../images/icon-remove.png) no-repeat;
}

a.repetition.add {
  background: url(../images/icon-add.png) no-repeat;
}

a.clear img {
  vertical-align: middle;
}

#update {
  background-color: #EEC;
  border-bottom: 1px solid #999;
  padding: 9px;
  text-align: center;
  font-weight: bold;
  color: #666;
}

.tray {
  position: relative;
}

.tray form {
  background: #EDF3FE url(../images/bg-tray.jpg) repeat-x;
  border-bottom: 1px solid #CCC;
  margin: 0 -36px 18px -36px;
  padding: 9px 36px 0 36px;
  width: 100%; /* Force IE to "have layout" */
}
  #status-bar .tray form {
    margin: 0;
  }

.tray .actions {
	width: 547px;
  padding: 9px 0;
  text-align: right;
}

a.add {
  width: auto;
  height: 20px;
  padding-left: 24px;
  padding: 4px 0 4px 20px;
  background: no-repeat left center;
  text-indent: 0;
}
a.add.job, a.add.user {
  background-image: url(../images/icon-user-add.png);
}
a.add.contact {
  background-image: url(../images/icon-contact-add.png);
}
a.add.note {
  background-image: url(../images/icon-note-add.png);
}
a.add.article {
  background-image: url(../images/icon-article-add.png);
}
a.add.organization {
  background-image: url(../images/icon-organization-add.png);
}
a.add.reminder {
  background-image: url(../images/icon-reminder-add.png);
}

li.loading {
  text-indent: -2000px;
  overflow: hidden;
  background: url(../images/tray-loading-bar.gif) no-repeat center center;
}

li.loading * {
  overflow: hidden;
  text-indent: -2000px;
}


/* Contact Attempts
*/

.contact p, .article .body, .audit ul {
  list-style: none;
  margin: 0;
  color: #999;
  font-size: 0.9em;
}

li.job {
  width: 100%;
}

li form {
  width: 100%;
}

li .details form {
  width: auto;
}

.article .meta {
  margin-top: -18px;
  margin-bottom: 18px;
  font-weight: bold;
  font-size: 0.9em;
  color: #666;
}

.lead .notices {
	padding: 3px 9px;
	height: 22px;
	background: url(../images/bg-info.jpg) repeat-x bottom;
	margin-bottom: -1em;
	margin-top: 1em;
}

.lead .notices .last-shared, .lead .notices .recent-lists, .lead .notices .last-contacted {
	border-bottom: none;
	display: block;
	position: absolute;
	color: #666;
	font-size: 0.8em;
	font-weight: bold;
}

.lead .notices .last-shared {
	left: 10px;
	padding-left: 20px;
	background: url(../images/icon-last-shared.png) no-repeat left center;
}

.recent-lists {
	left: 90px;
	width: 16px;
	height: 16px;
	background: url(../images/icon-warning.png) no-repeat;
	border-bottom: none;
	display: block;

}
	.recent-lists .warning {
		position: absolute;
		background-color: #EEE;
		border: 1px solid #CCC;
		width: 400px;
		z-index: 100;
		top: 1em;
		padding: 1em;
	}

.lead .notices .last-contacted {
	left: 50px;
	padding-left: 20px;
	background: url(../images/icon-last-contacted.png) no-repeat left center;
}

a[target=_blank] {
	padding-right: 10px;
	background: url(../images/link.png) no-repeat top right;
}

.reminders .reminder {
  padding-left: 24px !important;
  position: relative;
}
  .reminders .reminder .company, .reminders .reminder .notify_on {
    display: block;
    white-space: nowrap;
    overflow: hidden;
  }

  .reminders .reminder .notify_on {
    color: #999;
  }

  .reminders .reminder .remove {
    position: absolute;
    right: 9px;
    top: 50%;
    margin-top: -8px;
  }

  .reminders .reminder .note {
    display: block;
    margin-right: 24px;
  }

.reminders .reminder.email {
  background: url(../images/email.png) no-repeat left center;
}
.reminders .reminder.phone {
  background: url(../images/phone.png) no-repeat left center;
}
.reminders .reminder.letter {
  background: url(../images/letter.png) no-repeat left center;
}

form h5 {
  margin: 0;
  padding: 0;
  color: #333;
  line-height: 18px;
}

.organization ul.users {
  overflow: hidden;
}

.organization ul.users li {
  float: left;
  width: 33%;
}

.tray form.reminder {
  overflow: hidden;
}

.tray form.reminder dl {
  float: left;
  overflow: hidden;
}

.tray form.reminder .to {
  width: 40%;
}

.tray form.reminder ul.users li {
  width: 50%;
}

.tray form.reminder .to dt {
  float: none;
}
.tray form.reminder .to dd {
  margin-left: none;
}
.tray form.reminder .buttons {
  clear: both;
}

.tray form h4 {
  font-size: 18px;
  font-weight: normal;
  text-transform: uppercase;
  color: #444;
  margin: 0;
}

#organizations .organization {
  margin-bottom: 1.5em;
}

#organizations .organization h4 {
  margin-bottom: 0;
}

#sidepanel .autocomplete h4 {
  font-size: 12px !important;
  font-weight: normal;
  margin: 0;
  padding: 0;
}
.autocomplete ul ul {
  display: none;
}
.autocomplete .organization .users-count {
  color: #666;
}

.edit-state { display: none; }
.editing .edit-state { display: block; }
.editing .view-state { display: none; }


#search_actions {
  background-color: #EEE;
  padding: 1em;
  list-style: none;
}

#search_actions .search_action {
  margin-top: 1em;
  padding-top: 1em;
  border-top: 1px solid #CCC;
  position: relative;
}

#search_actions .search_action dl {
  margin-bottom: 0;
}

#select_actions {
  margin: 5px 0 2px 0;
}

#add_to_list .buttons {
  position: absolute;
  right: 0;
  bottom: 0;
  padding: 0;
}

#search_list_name {
  width: 200px;
}

.company-fields-select {
  margin-top: 10px;
  width: 100%;
  table-layout: fixed;
  border-top: 1px solid #bebebe;
}

.company-field-checkbox {
  float: right;
  margin-top: 5px;
  margin-right: 20px;
}

.select-all {
  margin-right: 20px;
}
