.offer {
  margin-top: 20px;
}

.offer__info {
  position: relative;
  border-bottom-width: 1px;
}

.offer__select {
  float: left;
  width: 30px;
}

.offer__info .collapsible__control {
  position: absolute;
  bottom: 10px;
  right: 0;
}

.offer__summary {
  display: block;
  margin-left: 30px;
  margin-right: 170px;
  padding-top: 2px;
  cursor: pointer;
}

.offer__summary p {
  margin-bottom: 5px;
}

.offer__title {
  font-size: 14px;
  font-weight: bold;
  margin: 0 0 5px 0;
}

.offer__dates {
  position: absolute;
  bottom: 5px;
  right: 40px;
}

.offer__dates span {
  display: block;
  text-align: right;
}

.offer__overdue {
  color: #d60000;
}

.offer__contents {
  padding-top: 10px;
  border-bottom: 1px solid #C2CFD8;
}

.offer--closed .offer__summary {
  margin-left: 0;
}

.offer--closed .offer__title {
  color: #919db5;
}

.offer-definition-list tbody tr {
  cursor: pointer;
}

.parts th,
.parts td {
  padding: 10px 5px;
}

.parts td {
  vertical-align: top;
}

.parts th:first-child,
.parts td:first-child {
  padding-left: 20px;
}

.parts__col1 {
  width: 85px;
}

tbody tr.parts__with-conditional {
  border-bottom: 0;
}

.parts__conditional .label {
  vertical-align: inherit;
  padding: 4px 7px 2px 7px;
}

.parts__conditional-details {
  display: none;
  padding-top: 20px;
}

.parts__conditional-action {
  text-align: right;
  padding-left: 0;
}

.parts__conditional-action a {
  color: #919db5;
  padding-left: 5px;
}

/* Rules overview */

.rule {
  background: white;
  margin: 0 0 5px 0;
}

.rule__header {
  border-bottom: 1px solid #e9f2f9;
  padding: 15px 20px;
}

.rule__title {
  font-weight: bold;
  color: inherit;
}

.rule__title:hover {
  color: inherit;
}

.rule__toggle {
  color: #DDE6EB;
  display: inline-block;
  margin-right: 10px;
  font-weight: normal;
}

.rule__toggle .fa-chevron-down {
  display: none;
}

.rule--expanded .rule__toggle .fa-chevron-down {
  display: inline-block;
}

.rule--expanded .rule__toggle .fa-chevron-right {
  display: none;
}

.rule__actions {
  float: right;
  margin-top: -8px;
  margin-right: -5px;
  visibility: hidden;
}

.rule:hover .rule__actions {
  visibility: visible;
}

.rule__actions .button--light {
  background: #e9f2f9;
  box-shadow: 0 2px 0 #C2CFD8;
  padding: 0 10px;
}

.rule__actions .button--light .fa {
  color: #7f99aa;
}

.rule__details {
  display: none;
  padding: 10px 10px 10px 30px;
  font-size: 12px;
}

.rule--expanded .rule__details {
  display: block;
}

/* Rule editor */

.rule-name {
  margin: 20px 0 20px 0;
}

.rule-name__label {
  display: block;
  padding: 0 0 5px 18px;
}

.rule-name__input {
  font-size: 18px;
  padding: 7px 15px;
  border: 0;
  border-radius: 5px;
  width: 100%;
  box-shadow: 0 1px 0 0 rgba(0, 0, 0, 0.1);
  outline: none;
}

.condition {
  background: white;
  line-height: 2em;
  border-radius: 5px;
  padding: 5px 15px 0 15px;
  margin: 0 0 12px 0;
  box-shadow: 0 1px 0 0 rgba(0, 0, 0, 0.1);
}

.condition .row {
  padding-bottom: 5px;
}

.condition--select-type {
  padding-left: 5px;
}

.condition .form__group {
  margin: 0;
}

.condition .form__control {
  line-height: 1em;
}

.condition__actions {
  text-align: right;
}

.condition__operator {
  text-align: right;
}

.condition__operator .form__control-wrapper {
  display: inline-block;
  width: 60px;
}

.condition__parts-operator {
  margin-top: 5px;
  font-size: 12px;
}

.condition__parts-operator label {
  padding-left: 5px;
}

.consequence {
  background: white;
  border-radius: 5px;
  box-shadow: 0 1px 0 0 rgba(0, 0, 0, 0.1);
  margin: 0 0 12px 0;
  padding: 5px 15px 0 15px;
}

.consequence .row {
  padding-bottom: 10px;
}

.consequence__quantity .form__control-wrapper {
  display: block;
  float: left;
  width: 14%;
}

.consequence__times {
  display: block;
  float: left;
  width: 14%;
  text-align: center;
  line-height: 27px;
}

.consequence__quantity .form__control-wrapper.consequence__device {
  width: 72%;
}

.consequence__label {
  color: #919db5;
}

.consequence__action {
  color: #919db5;
}

.consequence__apply label {
  display: block;
  float: left;
  width: 28%;
  line-height: 27px;
  text-align: right;
  padding-right: 10px;
}

.consequence__apply .form__control-wrapper {
  display: block;
  float: left;
  width: 72%;
}