/**
  * Stylesheet for the Commitment-Tracker
  * Open Evidence 2015
  * M.Marcello Verona <mverona@open-evidence.com>
  */

.view-ct-home .grid-item {
  border: 0;
  padding: 1em;
  margin: 1em 0;
  text-align: left;
  background-color: #00524d;
  color: #fff;
  border-radius: 6px;
  min-height: 200px;
}

.view-ct-home .ct-tax-title {
  font-size: 1.3em;
  text-align: left;
  min-height: 100px;
  margin: 0;
}

.view-ct-home .ct-tax-title {
  min-height: 2rem;
}

.view-ct-home .ct-tax-title a {
  color: #fff;
  padding: 3px 0 3px 22px;
  font-family: "PFSquareSansPro";
  font-size: 18px;
  background-position: 0 3px;
}

.view-filters {
  margin-bottom: 2em;
}

.ct-widget-table {
  font-size: 0.8em;
}

.ct-widget-results .views-field-title {
  white-space: nowrap;
}

#block-system-main .group-left .field {
  padding: 0.5em 0;
  border-bottom: 1px solid #eee;
}

#block-system-main .group-left .field-name-activity-details-title {
  border-bottom: 0;
}

.ds-2col-stacked > .group-left {
  padding: 0 2em 0 1em;
}

.ds-2col-stacked > .group-right {
  padding: 0 1em 0 2em;
}


#ct-export-button {
  float: right;
}

#ct-result-display {
  font-size: 26px;
  font-family: "PFSquareSansPro";
}

/*
* Dashboard for single group view.
*/

/* Header */

/* Filters */

.view-ag-dashboard .view-filters label {
  font-weight: normal;
}

.view-ag-dashboard .views-exposed-widgets .views-widget-filter-field_activity_type_tid {
  width: 30%;
}
.view-ag-dashboard .views-widget-filter-field_objective_tid {
  width: 70%;
}
.views-exposed-form .views-exposed-widget.views-widget-filter-field_objective_tid {
  padding-right: 0;
}
.view-ag-dashboard .views-submit-button {
  width: 10%;
  padding-right: 0!important;
}

/* Filters - Select */

.view-ag-dashboard .form-type-select {
  overflow: hidden;
  border-radius: 4px;
  position: relative;
}
.view-ag-dashboard .form-type-select:before {
  content: "";
  background: url("/sites/all/themes/eiponaha2/css/cssimg/icons-sprite.svg") no-repeat scroll 0 -1192px;
  position: absolute;
  width: 30px;
  height: 30px;
  top: 0;
  right: 0;
}
.view-ag-dashboard .form-type-select .form-control {
  border: 0;
  box-shadow: none;
  -webkit-appearance: none;
  width: 110%;
  background-color: #f4f4f4;
}


.view-ag-dashboard .button,
.view-ag-dashboard .btn.btn-default,
.form-actions .btn.btn-default {
  background-color: #b8daca;
  border: 0;
  font-family: "PFSquareSansPro";
  text-transform: uppercase;
  font-size: 18px;
  border-radius: 6px;
  width: 100%;
  padding: 6px 10px 3px 10px;
  text-align: center;
  text-decoration: none;
}

.form-actions .btn.btn-default {
  max-width: 160px;
}

/* Table */
.view-ag-dashboard .table-responsive {
  border-radius: 6px 6px 0 0;
}
.view-ag-dashboard .table-striped > tbody > tr:nth-of-type(2n),
.view-ag-dashboard .table-striped > tbody > tr:nth-child(2n) > td.active {
  background-color: #eef3f4;
}
.view-ag-dashboard .table-striped > tbody > tr:nth-of-type(2n+1),
.view-ag-dashboard .table-striped > tbody > tr:nth-child(2n+1):hover,
.view-ag-dashboard .table-striped > tbody > tr:nth-child(2n+1) > td.active,
.view-ag-dashboard .table-striped > tbody > tr:nth-child(2n+1) > td.active:hover,
.view-ag-dashboard .table-striped > tbody > tr:nth-child(2n+1):hover > td.active,
.view-ag-dashboard .table-striped > tbody > tr:nth-child(2n+1):hover > th.active {
  background-color: #fff;
}

.view-ag-dashboard table.views-table {
  font-size: 0.9em;
}

.view-ag-dashboard .views-exposed-form .views-exposed-widget .form-submit {
  margin-top: 26px;
}
.view-ag-dashboard table.views-table thead tr {
  background-color: #d5e2e4;
  border: 1px solid #d5e2e4;
}
.view-ag-dashboard table.views-table thead tr th {
  border-bottom: 1px solid #ddd;
}
.view-ag-dashboard table.views-table tbody {
  border: 1px solid #ccc;
}
.view-ag-dashboard th.views-field-title {
  border: 1px solid #d5e2e4;
}
.view-ag-dashboard th.views-field-timestamp {
  border-radius: 0 6px 0 0;
}
.view-ag-dashboard th.views-field-timestamp.active {
  background-color: #d5e2e4;
}

.view-ag-dashboard table.views-table tbody td {
  border-left: 1px solid #ddd;
  border-right: 1px solid #ddd;
}
.view-ag-dashboard td.views-field-title {
  max-width: 420px;
}
.view-ag-dashboard td.views-field-field-objective {
  max-width: 200px;
}
.view-ag-dashboard td.views-field-timestamp {
  min-width: 120px;
}

/*
 * Single page
 */
.group-ct-single-content {
  margin: 1em 0;
}

.group-ct-block {
  clear: left;
  margin: 0 0 1em 0;
  background-color: #f2f6f7;
  padding: 0;
  position: relative;
}
.group-ct-block h3 {
  background-color: #d5e2e4;
  border-radius: 6px 6px 0 0;
  font-size: 20px;
  margin-bottom: 0;
  min-height: 44px;
  padding: 10px 8px 12px 1rem;
  text-transform: uppercase;
}

.group-ct-block-details .field-group-format-wrapper,
.group-ct-block-current-status .field-group-format-wrapper {
  padding: 1em;
}

.group-ct-block-results .field-group-format-wrapper,
.group-ct-block-outcomes .field-group-format-wrapper {
  padding: 0.15em;
}

#group-ct-block-details .field {
  padding: 0.5em 0;
}

#group-ct-block-details .field-label-inline .field-label {
  width: auto;
  padding-right: 0.25em;
}

#group-ct-block-details .field-item p {
  margin: 0;
}

/*
 * Form rules
 */

.field-widget-inline-entity-form {
  background-color: #f7f7f7;
  padding: 2em;
  border: 1px solid #ccc;
  margin: 1em 0;
}


.ief-entity-table tr th,
.ief-entity-table tr td {
  padding: 0 2em;
}

.ief-entity-table .ief-tabledrag-handle,
.ief-tabledrag-header {
  padding: 0 1em;
  font-size: 2em;
}


.field-name-status-code {
  margin: 0 1em 1em 0;
}
.field-name-status-code .status-el {
  display: inline-block;
  vertical-align: middle;
  margin-right: 10px;
}
.field-name-status-code .glyphicon:before {
  font-size: xx-large;
}

.status-code {
  border: 3px solid #333;
  padding: 1em 2em;
  width: 150px;
  text-align: center;
}

.status-code .activity-status {
  font-size: 50px;
  display: block;
}

.field-name-country-and-organisation h3 img {
  height: 1em;
}

.field.field-name-country-and-organisation {
  margin-left: 14px;
}

.status-code .activity-status-delayed:parent {
  color: #f90;
}

.views-field-title a span {
  color: #666;
  font-size: 0.8em;
}

.fieldset-description {
  padding-bottom: 1em;
}

#edit-field-other-organisations-partne-und-0-format,
#edit-field-evidence-about-progress-und-0-format {
  display: none;
}

/*
Dates
*/
#field-activity-start-date-add-more-wrapper legend,
#field-activity-end-date-add-more-wrapper legend {
  font-size: inherit;
  font-weight: bold;
  border-bottom: 0;
  margin-bottom: 5px;
}

.container-inline-date .date-padding {
  padding: inherit;
  float: none;
}

#edit-field-ct-synergies-und .form-item,
#edit-field-ct-collaborative-works-und .form-item {
  padding: 0.25em 0;
}

#edit-field-ct-collaborative-works-und .ct-objective {
  font-size: 0.9em;
}

#edit-field-ct-synergies-und .ct-objective-desc {
  display: block;
  font-size: 0.8em;
  padding: 0.5em 0 1em 0;
}

.form-item.form-item-field-other-action-group-suggest-und-0-value label {
  display: none;
}

.view-ag-dashboard div#edit-nid-wrapper {
  width: 16%;
}

.view-ag-dashboard div#edit-title-wrapper {
  width: 65%;
}

.view-ag-dashboard .views-exposed-form .views-exposed-widget.views-reset-button {
  padding-right: 0;
  float: right;
}

.page-commitments-tracker .block-search,
.page-commitments-tracker .search-form {
  background-color: #f4f4f4;
  padding: 1em;
  border-radius: 6px;
  margin: 0 0 40px 0;
}

.page-commitments-tracker .block-search h2,
.page-commitments-tracker .search-form h2 {
  color: #000;
  font-size: 26px;
}

.page-commitments-tracker #block-bean-commitment-tracker-intro-text {
  margin-bottom: 20px;
}

.page-commitments-tracker .block-search .input-group .form-control {
  float: none;
  max-width: 90%;
}

.page-commitments-tracker-search .group-cont-dx {
  border-left: 1px solid #ccc;
}

.page-commitments-tracker-search .group-cont-sx {
  border-right: 1px solid #ccc;
  margin-right: -1px;
}

.page-commitments-tracker-search .group-result-container {
  font-size: 0.9em;
  margin-top: 10px;
}

.page-commitments-tracker-search .node .field-label-inline .field-label {
  display: inline;
  padding-right: 0.5em;
}

.page-commitments-tracker-latest-submitted .field-name-field-description,
.page-commitments-tracker-latest-submitted .field-name-field-action-group {
  font-size: 0.9em;
}

.page-commitments-tracker-latest-submitted #block-system-main .view-content .views-row {
  border: 0;
  padding-top: 0;
}

.page-commitments-tracker-latest-submitted .view-mode-teaser {
  padding-top: 0;
}
.page-commitments-tracker-latest-submitted .field-name-ct-type-led-by-org {
  color: #666;
  font-size: 0.8em;
  margin-bottom: 1em;
}

.ct-type-led-by-org--activity-type {
  font-weight: bold;
}

.page-commitments-tracker-latest-submitted .node-teaser h2 {
  padding: 0;
}
