@charset "UTF-8";

button.link {
  background: transparent;
  border: none;
}

.hideIfEmpty:empty {
  display: none;
}

.fueluxSelectHolder {
  position: relative; // fuelux
}

del, ul.deleted, ol.deleted, blockquote.deleted, pre.deleted, div.deleted, p.deleted {
  color: #880000;
  text-decoration: line-through;
}

ins, ul.inserted, ol.inserted, blockquote.inserted, pre.inserted, div.inserted, p.inserted {
  color: #008800;
  text-decoration: underline;
}

del.space, ins.space, del.formatting, ins.formatting {
  font-style: italic;
  font-size: 0.8em;
  display: inline-block;
  margin-left: 5px;
  margin-right: 5px;
}

.label {
  @extend label;
}

.texteditorBox {
  min-height: 100px;
  border: 1px solid #ccc;
  border-radius: 4px;
  -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
  box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
  -webkit-transition: border-color ease-in-out 0.15s, box-shadow ease-in-out 0.15s;
  -o-transition: border-color ease-in-out 0.15s, box-shadow ease-in-out 0.15s;
  transition: border-color ease-in-out 0.15s, box-shadow ease-in-out 0.15s;
}

.texteditor {
  background-color: white;

  &.boxed {
    @extend .texteditorBox;
  }
  @include motionParagraphStd();
  &.fixedWidthFont {
    font-family: $motionFixedFont;
    //letter-spacing: -0.5px;
    color: $motionFixedFontColor;
  }

  > * {
    padding-bottom: 5px;
    padding-top: 5px;
    padding-left: $fixedWidthTextStdPadding - 40;
    margin-bottom: 5px;
  }
  > span:first-child {
    // Inserted by magic-line plugin of CKEditor
    padding: 0;
  }
  .appendHint:after {
    content: attr(data-append-hint);
    display: inline-block;
    font-size: 0.75em;
    bottom: -3px;
    position: relative;
  }

  .collidingParagraph.hovered {
    background-color: #eee;
  }

  > ul, ol {
    padding-left: $fixedWidthTextListPadding + $fixedWidthTextStdPadding - 40;
  }
  > blockquote {
    @include motionParagraphBlockquote;
    margin-left: $fixedWidthTextQuoteMargin + $fixedWidthTextStdPadding - 40;
  }
  span.underline {
    border-bottom: solid 1px black;
  }
  span.strike {
    text-decoration: line-through;
  }
  span.subscript {
    // @TODO
  }
  span.superscript {
    // @TODO
  }
}

#mainmenu {
  .nav > li {
    display: inline-block;
  }
  @media screen and (max-width: $screen-xs-max) {
    .container {
      padding-left: 0;
      padding-right: 0;
    }
    .navbar .nav li a {
      margin-left: 20px;
    }
  }
}

.deadlineCircle {
  float: right;
  width: 105px;
  height: 105px;
  padding-top: 20px;
  @include linear-gradient(90deg, $btn-primary-bg, lighten($btn-primary-bg, 3.5%));
  text-align: center;
  vertical-align: middle;
  overflow: hidden;
  font-family: $deadlineCircleFont;
  font-weight: bold;
  font-size: 15px;
  line-height: 17px;
  text-transform: uppercase;
  color: #fff;
  margin-left: 40px;
  @include border-radius(90px);
}

#agendaEditSavingHolder {
  text-align: center;
  margin-bottom: 15px;
}

.motionData {
  .motionDataTable {
    width: 100%;
    > tbody > tr > th {
      width: 30%;
    }
  }
  .tagAdderHolder:link, .tagAdderHolder:visited {
    color: green;
  }
  .delTagForm {
    display: inline;
    button {
      background: transparent;
      border: none;
      color: $colorDelLink;
      font-style: italic;
      padding: 0 6px 0 3px;
    }
  }
  > .content > .alert {
    margin-top: 20px;
  }
  .motionReplayedBy {
    a {
      font-weight: bold;
    }
  }
  .contactShow {
    font-size: 0.8em;
    margin-left: 15px;
  }
}

.wysiwyg-textarea {
  textarea {
    display: none;
  }
}

.search-form label {
  display: inline-block;
  width: 220px;
  vertical-align: top;
}

.cke_skin_kama {
  border: none !important;
}

#loginWurzelwerkHint, #loginSamlHint, .login_saml .privacyHint {
  border-left: solid 1px #808080;
  padding-left: 10px;
  margin-left: 20px;
  margin-top: 10px;
  font-size: 0.8em;
  overflow: auto;
}

.login_saml {
  .privacyHint {
    border-left: solid 1px #808080;
    padding-left: 10px;
    margin-left: 20px;
    margin-top: 0;
    font-size: 0.8em;
    overflow: auto;
  }
  .btn {
    float: left;
    margin-right: 30px;
  }
}

#loginWurzelwerkForgot {
  font-size: 0.8em;
  margin-top: -7px;
  display: inline-block;
  margin-bottom: 10px;
}

#loginUsername {
  .passwordRecovery {
    text-align: right;
    font-size: 0.8em;
  }
}

.motionEditForm {
  .maxLenHint {
    float: right;
    margin-top: 7px;
    font-size: 0.8em;
    margin-right: 3px;

    span.icon {
      color: gray;
    }
    span.counter {
      display: inline-block;
      width: 23px;
      text-align: right;
    }
  }
  .submitHolder {
    text-align: right;
  }
  .editorialChange {
    overflow: auto;
    .opener {
      float: right;
    }
  }
  .single-paragraph {
    .modifiedActions {
      text-align: right;
      display: none;
    }
    &.modified {
      background-color: #eee;
      .modifiedActions {
        display: block;
      }
    }
    &.modifyable {
      cursor: pointer;
      &:hover {
        background-color: #f4f4f4;
        > .texteditor {
          background-color: transparent;
        }
      }
    }
  }
}

.supporterFormStd {

  .supporterData {
    .fullTextAdder {
      float: right;
    }

    #fullTextHolder {
      margin-top: 30px;
    }
  }

  .initiatorData {
    .contact-head {
      margin-top: 20px;
      margin-bottom: 10px;
      h3 {
        font-size: 18px;
        margin: 0;
      }
      .hint {
        font-size: 12px;
      }
    }

    .only-person, .only-organization {
      display: none;
    }
    &.type-person .only-person {
      display: inherit;
    }
    &.type-organization .only-organization {
      display: inherit;
    }
  }

  .supporterRow, .initiatorRow {
    .rowDeleter, .rowDeleter:link, .rowDeleter:visited {
      color: $colorDelLink;
      display: inline-block;
      margin-top: 8px;
    }
    html.no-touchevents & .rowDeleter {
      visibility: hidden;
    }
    html.no-touchevents &:hover .rowDeleter {
      visibility: visible;
    }
  }
}

#motionConfirmedForm {
  .promoUrl {
    input[type=text] {
      font-weight: bold;
      font-family: $motionFixedFont;
    }
    .clipboard-done {
      text-align: center;
      font-size: 0.8em;
      color: green;
      font-weight: normal;
      margin-top: -13px;
    }
    button.btn {
      padding-bottom: 7px;
    }
  }
  .btnRow {
    padding: 15px;
    text-align: center;
  }
}

#motionConfirmForm, #amendmentConfirmForm {
  margin-bottom: 20px;
}

.motionMergeForm {
  .submitHolder {
    text-align: right;
  }
  .newAmendments {
    .amendSubtitle {
      font-weight: normal;
      font-size: 0.9em;
    }
    .control-label {
      margin-top: -3px;
      padding-top: 0;
    }
  }
  .ICE-Tracking .ice-del, .ICE-Tracking .ice-del p {
    text-decoration: line-through;
    color: #880000;
    background-color: rgba(255, 100, 100, 0.2);
  }
  .ICE-Tracking .ice-del.hover, .ICE-Tracking .ice-del.hover p {
    background-color: darken(rgba(255, 100, 100, 0.5), 10%);
  }
  .ICE-Tracking .ice-ins, .ICE-Tracking .ice-ins p {
    text-decoration: underline;
    color: #008800;
    background-color: rgba(100, 255, 100, 0.2);
  }
  .ICE-Tracking .ice-ins.hover, .ICE-Tracking .ice-ins.hover p {
    background-color: darken(rgba(100, 255, 100, 0.6), 10%);
  }
  .editorialAmendments {
    h3 {
      font-size: 1em;
      font-weight: bold;
    }
    .content {
      border-bottom: solid 1px $headingSecondaryBackground;
      &:first-child {
        border-bottom: none;
      }
    }
  }
  .paragraphHolder.hasCollissions {
    background-color: #fff5f5;
    margin-top: 15px;
    margin-bottom: 15px;
    border-top: 1px solid #ccc;
    border-bottom: 1px solid #ccc;
  }
}

.userAccountForm {
  .requestEmailChange {
    display: inline-block;
    margin-left: 10px;
    font-style: italic;
    font-size: 0.8em;
  }
  .changeRequested {
    display: block;
    font-size: 0.8em;
    margin-top: 5px;
    margin-bottom: 5px;
  }
  .resendButton {
    color: $colorLinks;
    font-style: italic;
  }
}

span.twitter-typeahead {
  .tt-menu {
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 1000;
    display: none;
    float: left;
    min-width: 250px;
    padding: 5px 0;
    margin: 2px 0 0;
    list-style: none;
    font-size: 14px;
    text-align: left;
    background-color: #ffffff;
    border: 1px solid #cccccc;
    border: 1px solid rgba(0, 0, 0, 0.15);
    border-radius: 4px;
    -webkit-box-shadow: 0 6px 12px rgba(0, 0, 0, 0.175);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.175);
    background-clip: padding-box;
  }
  .tt-suggestion {
    display: block;
    padding: 3px 10px 3px 20px;
    margin: 5px 0;
    clear: both;
    font-weight: normal;
    line-height: 1.42857143;
    color: #333;
    white-space: nowrap;
    font-size: 14px;

    &:hover, &:focus {
      color: #ffffff;
      text-decoration: none;
      outline: 0;
      background-color: #88A4A0;
    }
    &.tt-cursor {
      color: #ffffff;
      background-color: #88A4A0;
    }
  }

  .input-group & {
    display: block !important;
  }
  .input-group & .tt-dropdown-menu {
    top: 32px !important;
  }
  .input-group.input-group-lg & .tt-dropdown-menu {
    top: 44px !important;
  }
  .input-group.input-group-sm & .tt-dropdown-menu {
    top: 28px !important;
  }

}

ul.searchResults {
  list-style-type: none;
  margin: 0;
  padding: 0;
  > li {
    margin: 0;
    padding: 10px;
    .type {
      display: block;
      float: left;
      width: 120px;
      overflow: hidden;
      -ms-text-overflow: ellipsis;
      text-overflow: ellipsis;
    }
    .title {

    }
  }
}

.activityLogPage {
  .date {
    float: right;
    color: gray;
  }
  .description {
    margin-top: 10px;
  }
  .deleted {
    color: gray;
    //font-weight: normal;
    font-style: italic;
  }
}

@font-face {
  font-family: FontAwesome;
  src: url(../fonts/fontawesome-webfont.eot);
  src: url(../fonts/fontawesome-webfont.eot?#iefix&v=4.3.0) format('embedded-opentype'), url(../fonts/fontawesome-webfont.woff2) format('woff2'), url(../fonts/fontawesome-webfont.woff) format('woff'), url(../fonts/fontawesome-webfont.ttf) format('truetype'), url(../fonts/fontawesome-webfont.svg#fontawesomeregular) format('svg');
  font-weight: 400;
  font-style: normal
}

.fuelux {
  .pillbox > .pill-group {
    list-style-type: none;
  }
  .selectlist {
    position: relative;
    .btn.dropdown-toggle {
      position: relative;
    }
  }
}

h2.green .amendmentAjaxTooltip, h3.green .amendmentAjaxTooltip {
  float: right;
  color: gray;
  margin-right: -10px;
}

.popover-amendment-ajax {
  width: 250px;
  max-width: none;
  color: black;

  @media screen and (min-width: 800px) {
    width: 400px;
  }
  @media screen and (min-width: 1200px) {
    width: 600px;
  }
  .popover-content {
    padding-right: 0;
  }
}

.ajaxAmendment {
  max-height: 250px;
  overflow: auto;
  > h3 {
    display: none;
  }
  h4 {
    font-size: 16px;
    margin: 5px 0;
  }
  ul {
    padding-left: 20px;
  }
}