body {
/*reset browser padding*/
  margin: 0;
  padding: 0;
}

/**** ModalFrame Overrides ****/
#frameContainer iframe {
  border: 0 none;
}

.modalframe {
  padding: 0;
  border: 1px solid #444444;
}

.modalframe .ui-dialog-titlebar {
  border: 0 none;
	color: #ffffff;
  background: #444444;
  background-image: -webkit-gradient(linear, left top, left bottom, from(#898989), to(#444444));
  background-image: -webkit-linear-gradient(top, #898989, #444444);
  background-image: -moz-linear-gradient(top, #898989, #444444);
  background-image: -o-linear-gradient(top, #898989, #444444);
  background-image: linear-gradient(to bottom, #898989, #444444);
}

.modalframe .ui-dialog-title {
  color: #ffffff;
  position: relative;
}

.modalframe .ui-dialog-titlebar-close {
	position: absolute;
	top: 0.4em;
	right: 0.4em;
}

.modalframe-page-content {
  background: none repeat scroll 0 0 #FFFFFF;
}

.node-form .form-text {
  display: inline-block;
}

a.imagecache,
a.imagecache img {
  display: block;
}

.ui-tabs .ui-tabs-nav li {
  top: 0;
}

.ui-tabs .ui-tabs-nav li.ui-tabs-selected {
  padding-bottom: 0;
}

/*** Content Attachements **/
.content-attachments-panel-tabs {
  background: none;
}

.content-attachments-panel-tabs .ui-tabs-nav {
  background: none;
  border: 0 none;
  padding: 0;
}

.content-attachments-panel-tabs .ui-tabs-nav li {
  padding: 0;
  margin-bottom: 0;
  background: #f6f6f6;
  background-image: -webkit-gradient(linear, left top, left bottom, from(#f6f6f6), to(#dbdbdb));
  background-image: -webkit-linear-gradient(top, #f6f6f6, #dbdbdb);
  background-image: -moz-linear-gradient(top, #f6f6f6, #dbdbdb);
  background-image: -o-linear-gradient(top, #f6f6f6, #dbdbdb);
  background-image: linear-gradient(to bottom, #f6f6f6, #dbdbdb);
  border: 1px solid #bcbdbd;
  border-bottom: 0 none;
  overflow: hidden;
}

.content-attachments-panel-tabs .ui-tabs-nav li a {
  color: #555555;
  margin: 0;
}

.content-attachments-panel-tabs .ui-tabs-nav li a,
.content-attachments-panel-tabs .ui-tabs-nav li.active a {
  background: none;
  border: 0 none;
}

.content-attachments-panel-tabs .ui-tabs-nav li.active {
  background: #ffffff;
}

.content-attachments-panel-tabs .ui-tabs-nav li .content-attachment-create-links {
  display: block;
  float: left;
}

.content-attachments-panel-tabs .ui-tabs-nav li .content-attachment-create-links span {
  display: block;
}

.content-attachments-panel-tabs .ui-tabs-nav li a.content-attachment-create-related {
  padding: 0;
  width: 27px;
  height: 27px;
  line-height: 27px;
  background-image: url("../images/ui_icons.png");
  background-repeat: no-repeat;
  background-position: -4px -69px;
  text-indent: -2000px;
  overflow: hidden;
  border-left: 1px solid #bbb;
}

.content-attachments-panel-tabs .ui-tabs-nav li a:hover,
.content-attachments-panel-tabs .ui-tabs-nav li a:focus {
  color: #555555;
  background-color: #cccccc;
  -webkit-box-shadow: inset 0 6px 8px 0 #dedede;
  box-shadow: inset 0 6px 8px 0 #dedede;
}

.content-attachments-panel-tabs .ui-tabs-nav li.active a:hover {
  background-color: none;
}

/*** Address Display **/
.crm-addresses {
  border: 1px solid #c9c9c9;
  -webkit-border-radius: 4px;
  -moz-border-radius: 4px;
  border-radius: 4px;
}

.crm-addresses .address-item {
  position: relative;
  padding: 10px;
  border-bottom: 1px solid #c9c9c9;
}

.crm-addresses .address-item .address-links {
  position: absolute;
  top: 4px;
  right: 4px;
}

.crm-addresses .address-item .address-links span {
  display: inline-block;
  background: #f6f6f6;
  background-image: -webkit-gradient(linear, left top, left bottom, from(#f6f6f6), to(#dbdbdb)); /* Saf4+, Chrome */
  background-image: -webkit-linear-gradient(top, #f6f6f6, #dbdbdb); /* Chrome 10+, Saf5.1+, iOS 5+ */
  background-image:    -moz-linear-gradient(top, #f6f6f6, #dbdbdb); /* FF3.6+ */
  background-image:      -o-linear-gradient(top, #f6f6f6, #dbdbdb); /* Opera 11.10+ */
  background-image:         linear-gradient(to bottom, #f6f6f6, #dbdbdb);

  border: 1px solid #bcbdbd;
  -webkit-border-radius: 3px;
  border-radius: 3px;
}

.crm-addresses .address-item .address-links span:hover {
  background: #cccccc;
  background-image: -webkit-gradient(linear, left top, left bottom, from(#e6e6e6), to(#c6c6c6)); /* Saf4+, Chrome */
  background-image: -webkit-linear-gradient(top, #e6e6e6, #c6c6c6); /* Chrome 10+, Saf5.1+, iOS 5+ */
  background-image:    -moz-linear-gradient(top, #e6e6e6, #c6c6c6); /* FF3.6+ */
  background-image:      -o-linear-gradient(top, #e6e6e6, #c6c6c6); /* Opera 11.10+ */
  background-image:         linear-gradient(to bottom, #e6e6e6, #c6c6c6);
}

.crm-addresses .address-item .address-links span a {
  display: inline-block;
  padding: 2px 6px;
  color: #333333;
  text-decoration: none;
}

.crm-addresses .address-item .address-labels {
  color: #666666;
}

.crm-addresses .crm-addresses-more {
  border-top: 1px solid #e8e8e8;
}

.crm-addresses .crm-addresses-more .more-text {
  padding: 10px;
  text-align: right;
}

.remaining-addresses {
  border-top: 1px solid #c9c9c9;
}

/** Jcarousel ***/
/* fallback incase of js fail **/
.jcarousel {
  margin: 0;
  padding: 0;
  list-style: none;
}

/*** nav ***/
.jcarousel-skin-default .jcarousel-prev-horizontal,
.jcarousel-skin-default .jcarousel-next-horizontal {
  height: 48px;
  width: 32px;
  background-color: #b0b0b0;
  -webkit-border-radius: 3px;
  border-radius: 3px;
}

.jcarousel-skin-default .jcarousel-prev-horizontal {
  background-image: url('../images/gallery/prev.png');
  background-position: center center;
  background-repeat: no-repeat;
  top: 0;
  left: 0;
}

.jcarousel-skin-default .jcarousel-next-horizontal {
  background-image: url('../images/gallery/next.png');
  background-position: center center;
  background-repeat: no-repeat;
  top: 0;
  right: 0;
}

.jcarousel-skin-default .jcarousel-prev-horizontal:hover {
  background-image: url('../images/gallery/prev-hover.png');
  background-position: center center;
  background-repeat: no-repeat;
}

.jcarousel-skin-default .jcarousel-next-horizontal:hover {
  background-image: url('../images/gallery/next-hover.png');
  background-position: center center;
  background-repeat: no-repeat;
}

/********* Popups *****/
.popups-box {
  padding: 1px 0;
}

.popups-box-inner {
  margin: 2em;
}

/************** Webform - inline label ************/
.webform-container-inline label,
.webform-container-inline div,
.webform-container-inline div.form-item {
  display: inline-block;
}

.webform-container-inline label {
  width: 180px;
  text-align: right;
}

.webform-container-inline div.form-item .form-checkboxes,
.webform-container-inline div.form-item .form-radios {
  margin: 0;
}

/******* Node edit submit ******/
#aspediacrm-node-edit-form .node-form > .form-submit,
#node-form > .form-submit {
  margin-top: 1em;
}

#ui-datepicker-div {
  z-index: 999 !important;
}

/******* WYSIWYG Hacks *********/
.field-type-text img {
  margin: 1em 2em;
}

.field-type-text figcaption {
  margin: 1em 2em;
  margin-top: 0;
}

.field-type-text figure {
  margin: 0;
}

/**** Disabled Buttons override ********/
input[disabled=disabled],
input[disabled=disabled]:hover,
input[disabled=disabled]:focus {
  background-image: none;
  background-color: #ccc;
  border-color: #bbb;
}

/**** Relationship Field ********/
div.relationshipfield-chooser-buttons {
  margin-left: 0;
}

.relationshipfield-chooser-buttons div {
  margin: 0 10px 0 0;
  width: auto;
  max-width: 30px;
}

.relationshipfield-wrapper .description {
  clear: both;
}

/**** Do not add padding to left of node links ***/
.node ul.links li {
  padding: 0 1em 0 0;
}

/******** A-Z Glossary ******/
.view-summary-az-glossary .views-summary {
  width: 100.571%;
}

.view-summary-az-glossary .views-summary::after {
  clear: both;
  content: ".";
  display: block;
  height: 0;
  visibility: hidden;
}

.view-summary-az-glossary .views-summary li {
  display: block;
  float: left;
  list-style: none;
  text-align: center;
  width: 3%;
  margin: 0;
  margin-right: 0.5713%;
}

.view-summary-az-glossary .views-summary li a {
  display: block;
  text-align: center;
}

.view-summary-az-glossary .views-summary li.empty,
.views-summary li.emtpy:hover {
  color: #d5d5d5;
  cursor: default;
}

.view-roundcube-email-templates.view-display-id-manage .view-header {
  margin: 1em;
}

/***** Location Field ******/
.location .form-item .sans-label {
  float: left;
}

.location .form-item::after {
  clear: both;
  content: ".";
  display: block;
  height: 0;
  visibility: hidden;
}
