/**
 * This file includes (hopefully) temporary hacks
 * until shoreditch/adminimal theming issues are resolved.
 */

/* Ex: Contact Edit form: the config wrench otherwise overlaps on the form inputs */
.crm-container .crm-option-edit-link.crm-hover-button,
.crm-container .crm-hover-button:not(#addMorePermission):not(.open-inline-noreturn) {
  padding-left: 2em;
}

/* Avoid grey text */
body,
#page,
.crm-container #help /* dashboard resource dashlet */,
.crm-container .help,
.crm-container .crm-accordion-body /* dashboard news RSS */,
.page-civicrm-admin.page-civicrm-admin-job #ltype table:not(.form-layout-compressed) tr > td,
.page-civicrm-admin.page-civicrm-admin-job #ltype table:not(.form-layout-compressed) tr > th,
.page-civicrm-a.page-civicrm-admin-job #ltype table:not(.form-layout-compressed) tr > td,
.page-civicrm-a.page-civicrm-admin-job #ltype table:not(.form-layout-compressed) tr > th,
.crm-container.ui-dialog,
.crm-container.ui-dialog .ui-dialog-content {
  color: #000;
}

/* Remove header spacing if not logged in */
body.not-logged-in {
  padding-top: 0px !important;
}

/* make links more dark */
.crm-container a,
.crm-container a:link {
  color: #2786c2;
}

/* Remove adminimal blue lines on fieldsets */
fieldset {
  box-shadow: 0px -1px 0 #ccc;
}

/* Ex: New Contribution, labels and fieldsets are glued to left border */
.crm-container .CRM_Contribute_Form_Contribution .form-layout-compressed td.label,
.crm-container .CRM_Contribute_Form_Contribution legend {
  padding-left: 1em !important;
}

/* Ex: New Contribution, amount field is hidden by currency select2 */
.crm-container .CRM_Contribute_Form_Contribution #s2id_currency {
  padding-right: 2em;
}

/* Dashboard home Getting Started widget: hide 'explore extensions' */
#civicrm-getting-started table tbody tr:nth-of-type(2) {
  display: none;
}

/* Public contribution forms (#10) */
#crm-container.crm-public .crm-contribution-main-form-block {
  padding: 20px;
}
#crm-container.crm-public .crm-section, .crm-section {
  margin: 10px 0 0 0;
}
.billing_name_address-group,
.crm-group.amount_display-group {
  padding: 15px;
}
#crm-container.crm-public input.crm-form-submit.cancel:hover,
#crm-container.crm-public input.crm-form-submit.cancel:focus {
color: #fff !important;
}


/* Remove Arial from Legend titles and other places */
.crm-container fieldset legend {
  font-family: "Open Sans",sans-serif;
  font-size: 16px;
  padding: 4px 2px;
}
body.mac.not-logged-in input[type="submit"], 
body.mac.not-logged-in div.admin-panel h3 {
  font-family: inherit !important;
}

/* Button bottom border issue (#8) */
.crm-container span.crm-button {
  padding: 1px !important;
}

/* Consistent front-end form label size */
#crm-container.crm-public .form-item label {
  font-size: 15px;
}

/* Modal popups labels (#8) */
.ui-dialog .form-item label {
  font-size: 13px;
}

/* core-team/civicrm-spark/mycivi#19 fix public contribution pages */
.page-civicrm-contribute form[class*="CRM_Contribute_Form_"] .label-left {
  width: inherit;
}

/**
 * Fix CiviCRM Dashboard with Shoreditch bug
 * https://github.com/civicrm/org.civicrm.shoreditch/issues/484
 */
.crm-container .crm-dashlet-header h3 {
  border-bottom: 0 !important;
}
/* X available dashlets */
.crm-container crm-dashboard #civicrm-dashboard {
  background: white;
}
.crm-container crm-dashboard .crm-inactive-dashlet-fieldset {
  box-shadow: none;
}
.crm-container crm-dashboard .crm-inactive-dashlet-fieldset > legend {
  float: right;
  font-size: 14px; /* smaller */
  background: white;
}
.crm-container crm-dashboard .crm-dashboard-droppable {
  clear: both;
  background: white;
}

/**
 * Language switcher on public forms (only affects a very small number of sites
 * with multi-lingual, which is not officially supported on Spark)
 */
#main-content {
  max-width: 1024px !important;
  margin: 0 auto;
  display: block;
}
#block-locale-language {
  float: right;
}
#block-locale-language li {
  list-style-type: none;
}
#block-locale-language li.active {
  display: none;
}
