// Styles for Block, Suspend, Report Admin pages

// brand colors

$orange: #f6a500;
$red: #cc3333;

// Small tablets and large smartphones (landscape view)
$screen-sm-min: 600px;

// Small tablets (portrait view)
$screen-md-min: 782px;

// Tablets and small desktops
$screen-lg-min: 992px;

// Large tablets and desktops
$screen-xl-min: 1200px;

// Small devices only
@mixin so {
  @media (max-width: #{$screen-sm-min}) {
    @content;
  }
}

// Small devices
@mixin sm {
  @media (min-width: #{$screen-sm-min}) {
    @content;
  }
}

// Medium devices down
@mixin mo {
  @media (max-width: #{$screen-md-min}) {
    @content;
  }
}

// Medium devices
@mixin md {
  @media (min-width: #{$screen-md-min}) {
    @content;
  }
}

// Large devices
@mixin lg {
  @media (min-width: #{$screen-lg-min}) {
    @content;
  }
}

// Extra large devices
@mixin xl {
  @media (min-width: #{$screen-xl-min}) {
    @content;
  }
}

// Custom devices
@mixin rwd($screen) {
  @media (min-width: $screen+'px') {
    @content;
  }
}

// Metabox sizing
@mixin meta {
  @media (max-width: 550px), only screen and (min-width: 851px) and (max-width: 1025px) {
    @content;
  }
}

// Dashboard styling
@mixin dash {
  @media (max-width: 1400px) {
    @content;
  }
}

.report-moderation-metabox {
  .bptk-field-wrap {
    display: flex;
    flex-direction: column;
  }
}

.wp-core-ui .button-primary.bptk-report-settings-ajax-button {
  &:focus {
    box-shadow: none;
  }
}

.bptk-field-wrap {

  /* The switch - the box around the slider */
  .switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
    margin-right: 10px !important;

    @include md {
      width: 30px;
      height: 17px;
    }
  }

  /* Hide default HTML checkbox */
  .switch input {
    opacity: 0;
    width: 0;
    height: 0;
  }

  /* The slider */
  .slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    -webkit-transition: .4s;
    transition: .4s;
  }

  .slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    -webkit-transition: .4s;
    transition: .4s;

    @include md {
      height: 13px;
      width: 13px;
      left: 2px;
      bottom: 2px;
    }
  }

  input:checked + .slider {
    background-color: #2196F3;
  }

  input:focus + .slider {
    box-shadow: 0 0 1px #2196F3;
  }

  input:checked + .slider:before {
    -webkit-transform: translateX(26px);
    -ms-transform: translateX(26px);
    transform: translateX(26px);

    @include md {
      -webkit-transform: translateX(13px);
      -ms-transform: translateX(13px);
      transform: translateX(13px);
    }
  }

  /* Rounded sliders */
  .slider.round {
    border-radius: 34px;
  }

  .slider.round:before {
    border-radius: 50%;
  }

  /* The container */
  .bptk-radio-wrapper {
    display: inline;
    position: relative;
    padding-left: 35px;
    margin-bottom: 12px;
    cursor: pointer;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    margin-right: 10px;
  }

  /* Hide the browser's default radio button */
  .bptk-radio-wrapper input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
  }

  /* Create a custom radio button */
  .checkmark {
    position: absolute;
    top: 0;
    left: 0;
    height: 25px;
    width: 25px;
    background-color: #eee;
    border-radius: 50%;

    @include md {
      height: 18px;
      width: 18px;
    }
  }

  #bptk-toggle-uphold {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.3em 1.7em;
    width: 100%;
    border-radius: 0.2em;
    box-sizing: border-box;
    text-decoration: none;
    font-weight: 400;
    color: #fff;
    background-color: #00ab66;
    box-shadow: inset 0 -0.6em 1em -0.35em rgba(0, 0, 0, 0.17), inset 0 0.6em 2em -0.3em rgba(255, 255, 255, 0.15), inset 0 0 0em 0.05em rgba(255, 255, 255, 0.12);
    text-align: center;
    position: relative;
    margin: 10px 0px;

    &.bptk-report-upheld {
      background-color: $red;
    }
  }

  #bptk-toggle-suspension {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.3em 1.7em;
    width: 100%;
    border-radius: 0.2em;
    box-sizing: border-box;
    text-decoration: none;
    font-weight: 400;
    color: #fff;
    background-color: #00ab66;
    box-shadow: inset 0 -0.6em 1em -0.35em rgba(0, 0, 0, 0.17), inset 0 0.6em 2em -0.3em rgba(255, 255, 255, 0.15), inset 0 0 0em 0.05em rgba(255, 255, 255, 0.12);
    text-align: center;
    position: relative;
    margin: 10px 0px;

    &.bptk-member-suspended {
      background-color: $red;
    }
  }

  #bptk-toggle-moderation {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.3em 1.7em;
    width: 100%;
    border-radius: 0.2em;
    box-sizing: border-box;
    text-decoration: none;
    font-weight: 400;
    color: #fff;
    background-color: #00ab66;
    box-shadow: inset 0 -0.6em 1em -0.35em rgba(0, 0, 0, 0.17), inset 0 0.6em 2em -0.3em rgba(255, 255, 255, 0.15), inset 0 0 0em 0.05em rgba(255, 255, 255, 0.12);
    text-align: center;
    position: relative;
    margin: 10px 0px;

    &.bptk-item-moderated {
      background-color: $red;
    }
  }
}

.bptk-ajax-loader {
  border: 3px solid #fff;
  border-top: 3px solid #303030;
  border-radius: 50%;
  width: 15px;
  height: 15px;
  animation: spin 2s linear infinite;
  margin: 0 auto;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.bptk-hidden {
  display: none !important;
}

.bptk-shortcode-button {

  .dashicons {
    font-size: 16px;
    width: 16px;
    vertical-align: middle;
    color: #909090;
    margin-right: 2px;
  }

  .dashicons-yes {
    color: green;
  }

  &:hover {
    color: #555;

    .dashicons {
      color: #555;
    }
  }

  &:after {
    box-shadow: 0 1px 1px 0 rgba(0, 0, 0, .1);
    text-shadow: none;
  }
}

.bptk-admin-header {

  display: grid;
  grid-template-areas: "title meta";
  grid-template-columns: auto 275px;
  background-color: #fff;
  border-bottom: 1px solid #dbdbdb;
  padding: 20px 20px;
  position: relative;

  .bptk-notices-trigger {
    margin: 0px;
    padding: 0px;
  }


  @include mo {

    display: block;
  }

  @include so {

    top: 46px;
  }

  .bptk-title {

    grid-area: title;
    display: flex;
    line-height: normal;

    a {
      text-decoration: none;
      display: flex;

      img {
        width: 30px;
        height: 30px;
        margin-right: 10px;
      }

      h1 {
        font-size: 20px;
        font-weight: 400;
        margin: 0px;
      }
    }
  }

  .bptk-meta {

    grid-area: meta;
    align-self: center;
    display: flex;
    justify-content: space-between;

    .bptk-version {

      margin-left: 5px;
      align-self: center;

      @include mo {
        margin-left: 0px;
      }
    }

    @include mo {

      display: block;
      margin-top: 20px;
    }
  }
}

.bsr_page_bp-toolkit-account, .bsr_page_bp-toolkit-contact, .bsr_page_bp-toolkit-support-forum, .bsr_page_bp-toolkit-pricing {

  .bptk-admin-header {
    display: none;
  }
}

#wpcontent {
  padding: 0;
}

#wpbody {

  color: #000;
  position: relative;
  padding-left: 20px;

  @include so {
    #screen-meta-links {
      display: none;
    }
  }

  .notice {
    margin: 5px 20px 15px 2px;
  }
}

.wp-header-end {

  margin-top: 15px;
}

.wrap {

  // padding-left: 20px;

  @include mo {
    clear: none;
  }

}

.wp-list-table {

  #reporter {
    width: 250px;
  }

  #activity {
    text-align: center;
    width: 50px;
  }

  #total {
    text-align: center;
    width: 100px;
  }

  .type-report {

    .reporter {

      a div {
        display: flex;

        img {
          width: 40px;
          height: 40px;
          border-radius: 5px;
          margin-right: 10px;
        }

        div {
          display: flex;
          flex-direction: column;
          justify-content: space-evenly;
        }
      }
    }

    .column-activity {

      div {

        background-color: $red;
        width: 35px;
        height: 35px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        margin: 0 auto;

        span {
          color: #fff;
        }


        svg {
          fill: #fff;
          width: 2em;
        }
      }
    }

    .reported {

      div {
        display: flex;

        img {
          width: 40px;
          height: 40px;
          border-radius: 5px;
          margin-right: 10px;
        }

        div {
          display: flex;
          flex-direction: column;
          justify-content: space-evenly;

          .bptk-reports-count {
            color: $red;
            font-weight: bold;
          }
        }
      }
    }

    .total {

      div {
        display: flex;
        justify-content: center;
        align-items: center;
        width: 35px;
        height: 35px;
        border-radius: 50%;
        color: #fff;
        background-color: $red;
        font-weight: bold;
        margin: 0 auto;
        font-size: 16px;
      }
    }

    &.report-unread {
      .row-title, .content, .type, .reporter, .reported, .date {
        font-weight: bold;
      }

      .row-actions {
        font-weight: normal;
      }
    }
  }
}

/* messages */
.bptk_admin .bptk_message {
  background: #FFF;
  border-left: 4px solid #FFF;
  margin-right: 15px;
  padding: 15px;
}

.bptk_admin .bptk_success {
  background-color: rgba(70, 180, 80, 0.1);
  border-left-color: rgb(70, 180, 80);
}

.bptk_admin .bptk_error {
  background-color: rgba(220, 50, 50, 0.1);
  border-left-color: rgb(220, 50, 50);
}

.bptk_admin .bptk_alert {
  background-color: rgba(255, 185, 0, 0.1);
  border-left-color: rgb(255, 185, 0);
}

.bptk_admin .bptk_success a {
  color: #208A1B;
}

.bptk_admin .bptk_error a {
  color: #E36154;
}

.bptk_admin .bptk_alert a {
  color: #CF8516;
}

/* Style our non-CPT boxes */

.bptk-box-container {

  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  grid-gap: 10px;

  @include dash {

    grid-template-columns: 1fr 1fr;
  }

  @include mo {

    grid-template-columns: 1fr;
    grid-gap: 0px;
  }
}

.bptk-featured-news.bptk-box {
  background-color: #f7f9f9;
  color: #0071a1;
  margin-top: 20px;
  border: 2px solid #0071a1;

  .bptk-box-inner {

    @include md {
      flex-direction: row;
      justify-content: flex-start;
    }

  }

  .bptk-featured-news-title {
    margin-right: 20px;
    font-weight: bold;
  }

  .bptk-featured-news-content {

    p {
      display: inline;
    }

    a {
      color: #000;
      font-weight: bold;
    }
  }


}

.bptk-box {

  position: relative;
  min-width: 255px;
  border: 1px solid #e5e5e5;
  box-shadow: 0 1px 1px rgba(0, 0, 0, .04);
  background: #fff;
  margin-top: 40px;

  .bptk-box-header {

    font-size: 14px;
    padding: 8px 12px;
    margin: 0;
    line-height: 1.4;
    border-bottom: 1px solid #eee;
  }

  .bptk-box-inner {

    font-size: 13px;
    padding: 12px;
    margin: 0;
    line-height: 1.4;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;

    a {
      text-decoration: none;
    }

    .bptk-dashboard-upgrade-columns {

      display: grid;
      grid-gap: 2rem;
      grid-template-columns: 1fr 1fr;

      @include mo {

        display: block;
      }

      .upgrade-column {

        img {
          float: left;
          max-width: 175px;
          margin-right: 10px;

          @include so {
            float: none;
            max-width: 90%;
            margin: 5px;
          }

          @include lg {
            max-width: 250px;
          }
        }

        ul {
          margin-left: 20px;
          li {
            &:before {
              font-family: 'dashicons';
              content: "\f227";
              margin-right: 5px;
            }
          }
        }

        &.enterprise {
          li {
            &:before {
              font-family: 'dashicons';
              content: "\f110";
              margin-right: 5px;
            }
          }
        }

      }


    }

    .bptk-dashboard-welcome-columns {

      display: grid;
      grid-gap: 2rem;
      grid-template-columns: 1fr 1fr 1fr;

      @include mo {

        display: block;
      }

      .bptk-dashboard-welcome-column {

        ul li {

          font-size: 14px;
          line-height: 16px;
          padding: 0 0 8px;
        }

        .isDisabled {
          color: #a2a2a2;
          cursor: not-allowed;
          text-decoration: none;

          span {
            opacity: 1;
            color: #dc3232;
          }
        }

        .button-action {

          background: #dd823b;
          border-color: #c36922 #ad5d1e #ad5d1e;
          color: #fff;
          box-shadow: 0 1px 0 #ad5d1e;
          text-shadow: 0 -1px 1px #ad5d1e, 1px 0 1px #ad5d1e, 0 1px 1px #ad5d1e, -1px 0 1px #ad5d1e;
        }

        @include mo {

          border-bottom: 1px solid #CCC;
          margin-bottom: 2em;
          padding-bottom: 2em;
        }

        &:last-child {
          border: none;
          margin: 0;
          padding: 0;
        }

        #bptk-quick-moderate {

          #bptk-quick-moderate-activity {
            width: 150px !important;
          }

          #bptk-quick-moderate-id {
            vertical-align: middle;
            margin: 10px 0px;
            width: 150px;
          }

          #bptk-quick-moderate-submit {
            display: block;
            margin-bottom: 10px;
          }
        }
      }
    }
  }

  &.bptk-box-minor {

    display: flex;
    flex-direction: column;
    justify-content: space-between;

    .bptk-box-inner {

      .bptk-table-reports {

        &.striped > :nth-child(2n+1) {
          background-color: #f9f9f9;
        }

        .bptk-table-row {
          display: flex;
          justify-content: space-between;
          padding: 5px;

          .bptk-avatar {
            display: flex;
            align-items: center;
            width: 10%;

            img {
              width: 30px;
              height: 30px;
            }
          }

          .bptk-title {
            width: 70%;
            display: flex;
            align-items: center;

            a {

              margin: 0em;
            }
          }

          .bptk-date {
            width: 20%;
            text-align: right;
            display: flex;
            align-items: center;
            justify-content: flex-end;

            p {

              margin: 0em;
            }
          }
        }


      }

      .bptk-table-blocked {

        &.striped > :nth-child(2n+1) {
          background-color: #f9f9f9;
        }

        .bptk-table-row {
          display: flex;
          justify-content: space-between;
          padding: 5px;

          .bptk-avatar {
            display: flex;
            align-items: center;
            width: 10%;

            img {
              width: 50px;
              height: 50px;
            }
          }

          .bptk-counts {

            span {
              color: red;
              font-size: 120%;
            }
          }
        }
      }
    }

    th {
      display: none;
    }

    td {
      padding: 0px;
    }

    textarea {
      width: 100%;
    }
  }
}

/* Style the notice dismiss button */

.bptk-notice {
  position: relative;
  padding-right: 30px;
}

.bptk-notice-dismiss {

  position: absolute;
  top: 0;
  right: 1px;
  border: none;
  margin: 0;
  padding: 9px;
  background: 0 0;
  color: #72777c;
  cursor: pointer;

  &:before {

    background: 0 0;
    color: #72777c;
    content: "\f153";
    display: block;
    font: normal 16px/20px dashicons;
    speak: none;
    height: 20px;
    text-align: center;
    width: 20px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
  }

}

// Style the blank slate screen

.bptk-blank-slate {

  background: #fff;
  border: 1px solid #e5e5e5;
  box-shadow: 0 1px 1px rgba(0, 0, 0, .04);
  margin: 0 auto;
  padding: 40px;
  text-align: center;

  .bptk-blank-slate-image {
    display: block;
    height: 80px !important;
    margin: 0 auto 10px;
    width: auto;
  }

  .bptk-blank-slate-heading {
    margin: 0 0 10px;
  }

  .bptk-blank-slate-cta {
    display: inline-block;
    font-size: 1.2em;
    height: auto;
    margin: 0 0 10px;
    padding: .75em 1.5em;
  }

  .bptk-blank-slate-help {
    color: #666;
    font-style: italic;
  }
}

// Style links to our documentation

.bptk-docs-link {
  text-align: right;
  margin-right: 15px;

  a {
    color: #606060;
    text-decoration: none;
    font-style: italic;

    span {
      font-style: normal;
    }
  }
}

// Style the report settings page

.bptk-box {

  .bptk-field-wrap {

    select {
      min-width: 200px;
    }
  }

  .bptk-promo-message {
    color: red;
    text-decoration: none;
    font-size: 12px;
    font-weight: bold;

    &:hover {
      text-decoration: underline;
    }
  }

  .group .form-table {
    margin-top: 0px;

    tbody {

      tr {
        padding: 1em 20px 1em 162px;
        margin: 0;
        border-bottom: 1px solid #eee;

        @include meta {

          padding: 10px;
        }

        ul {
          margin: 0;
        }

        th {
          width: 120px;
          padding: 10px 40px 10px 20px;

          label {
            font-weight: 400;
          }
        }

        td {
          // padding-left: 40px;
        }

        .bptk-field-description {
          color: #aaa;
          font-size: 12px;
          line-height: 18px;
          display: block;
          padding-top: 10px;
          font-style: italic;
        }

        > span.bptk-field-label {


          @include meta {

            display: block;
            float: none;
            margin: 0 0 10px;
            font-size: 14px;
            width: 100%;
          }

          float: left;
          width: 135px;
          padding: 0;
          margin: 2px 0 0 -150px;
          line-height: 18px;
          font-size: 12px;
          font-weight: 400;
        }
      }
    }


    /* On mouse-over, add a grey background color */
    .bptk-radio-wrapper:hover input ~ .checkmark {
      background-color: #ccc;
    }

    /* When the radio button is checked, add a blue background */
    .bptk-radio-wrapper input:checked ~ .checkmark {
      background-color: #2196F3;
    }

    /* Create the indicator (the dot/circle - hidden when not checked) */
    .checkmark:after {
      content: "";
      position: absolute;
      display: none;
    }

    /* Show the indicator (dot/circle) when checked */
    .bptk-radio-wrapper input:checked ~ .checkmark:after {
      display: block;
    }

    /* Style the indicator (dot/circle) */
    .bptk-radio-wrapper .checkmark:after {
      top: 9px;
      left: 9px;
      width: 8px;
      height: 8px;
      border-radius: 50%;
      background: white;

      @include md {
        top: 6px;
        left: 6px;
        width: 6px;
        height: 6px;
      }
    }
  }
}

// Style the main metabox

#configure-bptk .inside {
  margin: 0;
  padding: 0;
}

.bptk-metabox-panel-wrap {
  background: #fff;
  overflow: hidden;
}

.bptk-metabox-tabs {

  margin: 0;
  max-width: 170px;
  float: left;
  line-height: 1em;
  padding: 0 0 10px;
  position: relative;
  background-color: #fafafa;
  border-right: 1px solid #eee;
  box-sizing: border-box;

  &:after {
    content: "";
    display: block;
    width: 100%;
    height: 9999em;
    position: absolute;
    bottom: -9999em;
    left: 0;
    background-color: #fafafa;
    border-right: 1px solid #eee;
  }

  li {
    margin: 0;
    padding: 0;
    display: block;
    position: relative;

    .bptk-icon {

      svg {
        vertical-align: middle;
        margin-right: 10px;

        path, rect, line {
          fill: $orange;
        }

        @include meta {

          margin-right: 0px;
        }
      }

      @include meta {

        &:before {

          margin: 0;
        }
      }
    }

    a {
      margin: 0;
      padding: 10px;
      display: block;
      box-shadow: none;
      text-decoration: none;
      line-height: 20px !important;
      border-bottom: 1px solid #eee;
      overflow: hidden;

      @include meta {

        text-align: center;

        &:before {

          margin-right: 0;
          font-size: 15px;
        }
      }

      span.bptk-label {
        width: 114px;
        display: inline-block;

        @include meta {

          display: none;
        }
      }
    }
  }

  @include meta {

    min-width: 40px;
  }

}

.bptk-metabox {

  .bptk-metabox-header {
    padding: 0px 20px;

    @include mo {
      padding: 0px 10px;
    }
  }

  .form-table {

    clear: none;
    margin-top: 0px;

    th {
      display: none;
    }
  }

  &.bptk-no-tabs {
    padding-left: 0px;
  }

  padding-left: 170px;

  p.submit {
    margin-left: 170px;

    @include meta {
      margin-left: 10px;
    }
  }

  @include meta {
    padding-left: 40px;
  }

  label span.bptk-pro-text {
    color: $orange;
    font-style: italic;
    font-weight: bold;
  }

  .bptk-inline-radio-fields {

    li {
      display: inline-block;
      margin-right: 15px;
    }
  }

  .bptk-textarea {
    width: 100%;
  }

  #_bptk_member_reported, #_bptk_reported_by {
    text-align: center;
  }

  .bptk-userid-input-label {
    margin-right: 10px;
    vertical-align: middle;

    img {
      vertical-align: middle;
      margin-right: 10px;
      width: 75px;
      height: auto;

    }

    .bptk-userid-input-label-username {
      font-weight: bold;
    }
  }

  .bptk-radios-bulk {

    display: block;


    @include lg {

      display: grid;
      grid-template-columns: auto;
      grid-auto-flow: column;
      justify-content: start;
      grid-column-gap: 15px;
    }
  }

  .bptk-field-wrap {
    padding: 1em 20px 1em 162px;
    margin: 0;
    border-bottom: 1px solid #eee;

    @include meta {

      padding: 10px;
    }

    ul {
      margin: 0;
    }


    .bptk-field-description {
      color: #aaa;
      font-size: 12px;
      line-height: 18px;
      display: block;
      padding-top: 10px;
      font-style: italic;
    }

    > span.bptk-field-label {


      @include meta {

        display: block;
        float: none;
        margin: 0 0 10px;
        font-size: 14px;
        width: 100%;
      }

      float: left;
      width: 135px;
      padding: 0;
      margin: 2px 0 0 -150px;
      line-height: 18px;
      font-size: 12px;
      font-weight: 400;
    }

    img.bptk-image-disabled {

      margin: 60px 20px 40px;
      max-width: 90%;
    }

    .bptk-money-symbol, .bptk-percent-symbol {
      border: 1px solid #ddd;
      border-right-color: rgb(221, 221, 221);
      border-right-style: solid;
      border-right-width: 1px;
      background: #fcfcfc;
      margin: 0;
      margin-right: 0px;
      font-size: 14px;
      padding: 5px 8px;
    }

    .bptk-woocommerce {
      width: 200px;
    }

    .bptk-money-symbol-before {
      border-right: 0;
    }

    .bptk-percent-field, .bptk-money-field, .bptk-custom-field {
      width: 75px;
      margin-right: 0;
      margin-left: 0;
    }

    .bptk-field-custom {
      width: 155px !important;
    }

    input.bptk-text_small {
      width: 100px !important;
    }

    input.bptk-text_medium {
      width: 300px !important;
    }

    input[type="email"], input[type="text"], input[type="number"], {
      padding: 5px;
      height: 31px;
    }

    input[type=number]::-webkit-inner-spin-button,
    input[type=number]::-webkit-outer-spin-button {
      -webkit-appearance: none;
      margin: 0;
    }

    input[type=number] {
      -moz-appearance: textfield;
    }

    .bptk-image-thumb {
      position: relative;
      margin-top: 20px;

      img {
        max-width: 250px;
        border: 4px solid #fff;
      }

      span.bptk-delete-image-thumb {
        position: absolute;
        background: red;
        color: #fff;
        border-radius: 30px;
        left: -10px;
        top: -10px;
        cursor: pointer;
      }
    }
  }

  .bptk-image-radio-fields {

    label > input { /* HIDE RADIO */
      visibility: hidden; /* Makes input not-clickable */
      position: absolute; /* Remove input from document flow */
    }

    label > input + img { /* IMAGE STYLES */
      cursor: pointer;
      border: 5px solid transparent;
    }

    label > input:checked + img { /* (RADIO CHECKED) IMAGE STYLES */
      border: 5px solid $orange;
    }

    /* PRO version only */
    label.readonly {
      cursor: not-allowed;
      border: 2px solid transparent;
    }
  }

  .bptk-repeatable-field-section {
    padding: 10px;
    background: #f5f5f5;

    .bptk-repeatable-fields-section-wrapper {
      width: 100%;
      background-color: #fff;
      border-collapse: collapse;
    }

    .bptk-template {
      display: none;
    }

    .bptk-row {
      border-bottom: 15px solid #f5f5f5;
      background-color: #fff;
    }

    .bptk-column {
      padding: 0;
    }

    .bptk-row-head {
      border-bottom: 1px solid #eee;

      h2 {
        text-align: left !important;

        .bptk-milestone-id {
          color: #aaa;
          font-size: 12px;
          line-height: 18px;
          padding-top: 10px;
          font-style: italic;
          display: none; // comment to show ID next to milestone for debugging
        }
      }
    }

    .bptk-remove {
      float: right;
      line-height: 34px;
      font-size: 21px;
      margin-right: 5px;
      color: #72777c;

      &:before {
        cursor: pointer;
        content: "\f182";
        display: inline-block;
        font: normal 20px/1 dashicons;
        text-decoration: none !important;
      }

      &:hover {
        color: red;
      }
    }


    .bptk-add-repeater-field-section-row-wrap {
      background-color: #f5f5f5;
    }

    .bptk-add-repeater-field-section-row {
      margin: 5px;
    }
  }

  .bptk-field-wrap {

    &:last-child {
      border-bottom: 1px solid #eee;
    }
  }

  .bptk-milestones-teaser {

    padding: 10px;

    h1 span {
      color: $orange;
    }

    h2 {
      padding-left: 0px;
      font-weight: bold;

      span {
        color: greenyellow;
      }
    }

    ul {
      list-style: none;

      li {

        text-indent: -20px;
        padding-left: 20px;

        &:before {
          content: '+';
          color: $orange;
          margin-right: 5px;
          font-weight: bold;
          font-size: 20px;
        }

        img {
          max-width: 90%;
          display: block;
        }
      }
    }
  }
}

#report-notes {

  .inside {
    margin: 0;
    padding: 0;

    ul.report_notes {
      padding: 2px 0 0;

      li {
        padding: 0 10px;

        .note_content {

          padding: 10px;
          background: #efefef;
          position: relative;

          p {
            margin: 0;
            padding: 0;
            word-wrap: break-word;
          }

          &:after {
            content: "";
            display: block;
            position: absolute;
            bottom: -10px;
            left: 20px;
            width: 0;
            height: 0;
            border-width: 10px 10px 0 0;
            border-style: solid;
            border-color: #efefef transparent;
          }
        }

        .meta {
          padding: 10px;
          color: #999;
          margin: 0;
          font-size: 11px;

          .exact-date {
            border-bottom: 1px dotted #999;
          }

          a.delete_note {
            color: #a00;
          }
        }

        &.reporter-note {
          .note_content {
            background: #a7cedc;

            &:after {
              border-color: #a7cedc transparent;
            }
          }
        }

        &.reported-note {
          .note_content {
            background: #DCB5A7;

            &:after {
              border-color: #DCB5A7 transparent;
            }
          }
        }

        &.system-note {
          .note_content {
            background: #e1cae6;

            &:after {
              border-color: #e1cae6 transparent;
            }
          }
        }

      }
    }

    .add_note {

      &:not(button) {
        border-top: 1px solid #ddd;
        padding: 10px 10px 0;
      }


      #report_note {
        width: 100%;
        height: 50px;
      }

      & button {
        margin: 1px;
        vertical-align: top;
      }
    }
  }
}

.postbox .bptk-help-tip {
  margin: 0 0 0 9px;
}

.bptk-help-tip {

  color: #666;
  display: inline-block;
  font-size: 1.1em;
  font-style: normal;
  height: 16px;
  line-height: 16px;
  position: relative;
  vertical-align: middle;
  width: 16px;

  &:after {
    font-family: Dashicons;
    speak: none;
    font-weight: 400;
    font-variant: normal;
    text-transform: none;
    line-height: 1;
    -webkit-font-smoothing: antialiased;
    margin: 0;
    text-indent: 0;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    text-align: center;
    content: "\f223";
    cursor: help;
  }
}

.advert {
  margin: 0 auto;
  padding: 1rem;
  background-color: #fff;
  border: 1px solid lightgray;
  -webkit-box-shadow: 5px 5px 5px lightslategray;
  box-shadow: 5px 5px 5px lightslategray
}

.advert li:before {
  content: "+";
  padding-right: 8px;
  color: green
}

.misc-pub-assign-report {

  &:before {
    font: normal 20px/1 dashicons;
    speak: none;
    display: inline-block;
    margin-left: -1px;
    padding-right: 3px;
    vertical-align: top;
    content: "\f484";
    color: #82878c;
  }

  #bptk-report-assignment {

    display: block;
    margin: 10px 27px;
    width: 100%;
    width: -moz-available; /* For Mozzila */
    width: -webkit-fill-available; /* For Chrome */
    width: stretch; /* Unprefixed */
  }
}

table.bsr-1_page_bp-toolkit-moderation-queue {
  .column-action {
    .unmoderate a {
      color: darkgreen;
    }
  }
}

.bsr-1_page_bp-toolkit-report {
  .bptk_admin {
    display: flex;
    flex-direction: column;
    gap: 20px;

    .bptk-box {
      flex: 1;
    }

    @include md {
      flex-direction: row;
    }

    .preapproval-teaser {
      text-align: center;

      @include md {
        max-width: 350px;
      }

      .preapproval-teaser-heading {
        padding: 5px;
      }

      img {
        max-width: 100%;
      }
    }
  }
}
