@import "../common/constants";

.modify {
  margin-bottom: 30px;
}

.inset {
  margin: 0 auto;
  padding: 0 25px;
  p {
    margin: 0;
  }
}

.c2_description {
  img {
    margin-bottom: 7px;
  }
}

.dashboard {
  width: 100%;

  margin: 20px auto;
  td {
    padding: 15px;
  }
}

tr.header h5 {
  text-transform: uppercase;
  color: #e8e8e8;
  font-size: 14px;
  line-height: 20px;
  font-weight: 400;
  font-size: 80%;
}

tr.header td, tr.header td.first {
  padding-top: 8px;
  padding-bottom: 8px;
}

th.first {
  width: 50%;
  padding-left: 15px;
}

th.next {
  width:25%;
  padding-left: 15px;
}

th.sixth {
  width:17%;
  padding-left: 15px;
  padding-right: 15px;
}

th h5 {
  text-transform: uppercase;
  color: #e8e8e8;
  font-size: 14px;
  line-height: 20px;
  font-weight: 400;
  font-size: 80%;
}

tr.proposal-property td {
  border-bottom: 1px solid #ccc;
  padding-top: 30px;
  padding-bottom: 10px;
  background-color: #fff;
  padding-right: 10px;
}

span.result-tag {
  font-size: 80%;
  display: inline-block;
  float: left;
  padding-left: 0;
}

ul.result-tag li {
  margin-left: 0;
  margin-bottom: 5px;
  list-style: none;
}

ul.result-tag li.fssi-compliant {
  color: white;
}

ul.result-tag span {
  background-color: #45ac48;
}

table td span.tag-values {
  font-weight: normal;
}

td p.result-item-price {
  padding: 5px 10px 30px 10px;
  color: #000;
}

td p.result-item-price, td p.total-price p strong {
  font-size: 22px;
  font-weight: 400;
}

td p.result-item-units {
  padding: 10px;
  font-weight: 400;
}

td p.vendor-information strong {
  font-weight: normal;
  color: #000;
}

p.vendor-information .info-title {
  display: block;
  padding-bottom: 30px;
}

table tr.total-price, tr#approval-actions {
  padding-top: 10px;
  padding-bottom: 10px;
  background-color: #f5f5f5;
}

tr.proposal-property p {
  color: #666;
  font-size: 80%;
}

.header {
  padding-top: 0px;
  background-color: #333;
  color: white;
}

.approval-status-container {
  width: 100%;
  max-width: $web-content-width;
  margin: 0 auto 60px auto;
  padding-left: $webpadding;
  padding-right: $webpadding;

  #approval-status {
    margin: 0 auto;
    width: 100%;

    ul {
      margin-top: 45px;
      list-style: none;
      padding: 0;
    }

    li {
      margin-bottom: 20px;
      padding-left: 18px;
    }
  }
}

.icon-approved {
  background-image: image-url("icon-checkmark.gif");
  background-repeat: no-repeat;
  padding-left: 21px;
}

.timestamp {
  color: $lightgray;
}

.proposal-submodel-container {
  width: 100%;
  max-width: $web-content-width;
  background-color: $bgdetails;
  border-top: 1px solid $borderdetails;
  padding: 0 0 65px 0;
  padding-left: $webpadding;
  padding-right: $webpadding;
  margin: 0 auto;
  @media (max-width: $break-small) {
    padding: 10px;
  }

  input[type=submit] {
    color: $white;
    background-color: $c2blue;
    border: 0;
    padding: 15px;

    &[disabled] {
      color: $medgray;
      background-color: $lightgray;
    }

    @media(max-width: $break-small) {
      padding: 10px;
    }
  }

  #comments {
    margin: 0 auto;

    textarea {
      width: 100%;
    }
  }

  h3 {
    padding-top: 65px;
    @media (max-width: $break-small) {
      padding-top: 10px;
    }
  }

  .date {
    color: $medgray;
  }

  .line-item {
    border-bottom: 1px solid #ccc;
    padding: 20px 40px;
    background-color: #fff;
    @media(max-width: $break-small) {
      padding: 10px 15px;
    }
  }
  .comment-update {
    background-color: #fafafa;
  }
}

tr.add-more-row {
  input[type=submit] {
    color: $white;
    background-color: $c2blue;
    border: 0;
    padding: 10px;

    &[disabled] {
      color: $medgray;
      background-color: $lightgray;
    }
  }
}

body.webapp {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 16px;
  color: black;

  .c2_header, h4.c2_description, div.c2_description p {
    padding-right: 0;
    padding-left: 0;
    background-color: $white;
  }

  .results-list {
    margin-bottom: $webpadding;
    padding: $webpadding;
  }
}

.controller-proposals {
  h1 {
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-weight: 300;
    font-size: 38px;
    color: black;
  }

  h2 {
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-weight: 300;
    font-size: 34px;
    padding-left: 0;
  }

  h3 {
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-weight: 300;
    font-size: 24px;
    color: black;
  }

  .inset a,
  .button_to input {
    text-decoration: underline;
    color: #0C75E1;
  }
  #pages {
    a {
      text-decoration: none;
    }
    .active a {
      color: #fff;
    }
  }
  p,
  .button_to input {
    font-size: 14px;
  }
}

.sidebar {
  margin: 20px 10px 20px 0;
  padding: 10px 10px 5px 5px;
  border: 1px solid #ddd;

  p {
    margin-top: 10px;
  }

  h5 {
    margin: 5px;
    border-bottom: 1px solid #e8e8e8;
  }
}

.row {
  margin-right: 0;
}

.purchase-status {
  border: 1px solid #ff9e19;
  padding: 30px 0px;
  margin: 20px auto 0 auto;
  text-align: center;

  img {
    margin: 0;
  }

  h5 {
    color: #000;
    text-transform: uppercase;
    font-weight: bold;

    &.approved {
      min-width: 155px;
      background-image: image-url("icon-checkmark.gif");
      background-repeat: no-repeat;
      background-position: center -0.2em;
      padding-top: 15px;
    }

    &.pending {
      min-width: 155px;
      background-image: image-url("icon-pending.png");
      background-repeat: no-repeat;
      background-position: center -0.2em;
      padding-top: 20px;
    }
  }
}

.text-area-info-container {
  border: 1px solid #bdbdbd;
  border-top: 0;
  margin-left: 0px;
  vertical-align: middle;
}

.text-area-button {
  text-align: right;
  margin: 0px;
  padding-right: 0px;
}

.text-area-info-web {
  color: #666;
}

.attachments[data-add-minus] {
  padding-left: 0;
  list-style: none;

  input[type=file] {
    display: inline-block;
  }
  input[disabled] {
    color: $lightgray;
  }
}

#footer {
  margin-top: 4em;
  text-align: center;
  padding-bottom: 65px;
}
@media screen and ( min-height: 600px ){
  #footer {
    padding-bottom: 180px;
  }
}

label.required::after,
fieldset.required legend::after {
  content: "*";
}

@media (max-width: $break-small) {
  tr.proposal-property p {
    font-size: 67%;
  }

  td p.result-item-price, td p.total-price p strong {
    font-size: 1em;
  }

  .inset {
    padding: 0 0 0 15px;
  }

  h1.c2_header {
    margin-bottom: 10px;
  }

  .text-area-info-web {
    padding: 4px 4px;
    p {
      font-size: .9em;
      line-height: 1.1em;
    }
  }


  h1 {
    font-size: 2em;
    line-height: initial;
  }

  header {
    padding: 10px;
  }
}
