@import "zmienne";

// Edycja interaktywnej mapy
.interactiveMaps{
  .switchLabel{
    display: inline-block;
    vertical-align: middle;
  }
  .switch{
    display: inline-block;
    vertical-align: middle;
    margin-left: 30px;
  }
  .googlemaps, .googlemapsembed{
    background: url("../img/Google_Maps_Icon.png") no-repeat 10px 10px;
    background-size: 80px 80px;
    background-color: #e3e3e3;
    width: 100%;
    max-width: 600px;
    min-height: 200px;
    border-radius: 3px;
    margin-top: 23px;
    h3{
      display: table-cell;
      padding: 20px;
      padding-top: 100px;
      height: 100%;
      font-size: 25px;
      color: #8A9191;
      vertical-align: middle;
    }
  }
  input:read-only{
    opacity: 0.2;
  }
}

// Dodanie nowego formularza
.margin-top{
  margin-top: 30px;
}

// Wybór formularza
.bodyChangeForm{
  padding-top: 0 !important;
  padding-bottom: 10px !important;
}
.activeMoreButton{
  cursor: pointer;
  border-radius: 3px;
  border: 1px solid rgba($szary, 0.5);
  padding: 5px 20px 5px 5px;
  max-width: 300px;
  position: relative;
  h6{
    margin: 0;
    font-weight: 500;
    font-size: 14px;
  }
  &[aria-expanded="false"]:before {
    content: '\e87b';
    font-family: 'fontello';
    position: absolute;
    right: 5px;
    top: 5px;
  }
  &[aria-expanded="true"]:before {
    content: '\e87e';
    font-family: 'fontello';
    position: absolute;
    right: 5px;
    top: 5px;
  }
}
.moreForm{
  box-shadow: 0 0 5px rgba($szary-ciemny, 0.2);
  a{
    color: $szary;
    &:hover{
      color: $szary-ciemny;
      text-decoration: underline;
    }
  }
  a.active{
    color: $szary-ciemny;
    text-decoration: underline;
  }
}
.newMessages{
  font-weight: 600;
}
.inboxMessages{
}

// Szczegóły formularza
.titleSmall{
  font-size: 12px;
  color: $szary;
  font-style: italic;
}
.titleArticleShow{
  max-width: 400px;
  h6{
    color: $szary;
  }
}
.previewFormBox{
  padding: 5px 0 0 0;
  .box-header{
    padding: 0 15px;
  }
  .box-body{
    padding: 20px 0 0 0;
  }
  .padding15{
    padding: 30px;
  }
  .marginBottomNull{
    margin-bottom: 0;
  }
  .previewReplayBox{
    border: none;
  }
}
.mapGoogleView{
  max-width: 600px;
  width: 100%;
  cursor: default;
}

// Edycja formularza
.editFormSwitch{
  margin-left: 0;
}
.moreRecaptchaUrl{
  font-size: 16px;
}
.previewFormReveal{
  padding: 0;
  background: #f0f0f0;
  .previewReplayBox{
    border: none;
    margin-top: 0;
  }
}
.previewReplayBox{
  background: #f0f0f0;
  border: 1px solid rgba(0,0,0,0.2);
  padding: 20px;
  margin-top: 22px;
  .previewReplay{
    margin-top: 30px;
    min-height: 100px;
    padding: 5px;
    font-size: initial;
    font-weight: initial;
    color: initial;
    line-height: initial;
  }
  .previewForm{
    margin-top: 30px;
    label{
      font-size: 12px;
    }
    input{
      height: 30px;
      display: inline-block;
    }
    input[type="checkbox"]{

    }
  }
}
.formFields{
  .buttonsArrows{
    max-width: 35px;
    .arrowDown{
      margin-top: 1px;
    }
  }
  .urlRemoveField{
    i{
      font-size: 15px;
    }
  }
  td{
    vertical-align: middle;
    input, select{
      margin-bottom: 0;
    }
  }
}
.select2-dropdown{
  z-index: 9999;
}
.optionsForm{
  label, .switch-admin{
    display: inline-block;
    vertical-align: middle;
  }

}
input, select, .select2-selection__rendered{
  font-size: 12px !important;
  height: 30px !important;
}
select{
  padding: 4px 24px 4px 4px;
}
.editPage{
  display: inline-block;
  margin-top: 25px;
}
.saveButtonPage{
  display: inline-block;
  margin-top: 23px;
}
// Lista odpowiedzi na formularz
.formSelectHeader{
  display: inline-block;
  vertical-align: middle;
  min-width: 300px;
  margin-left: 5px;
}
#messagesList, #leadsList{
  p{
    margin-bottom: 0;
  }
  .select2status{
    max-width: 150px;
    margin-bottom: 0;
  }
  select[data-labelActiv="New"], select[data-labelActiv="Nowy"] {
    background-color: #D5E8D4;
  }
  select[data-labelActiv="In Progress"], select[data-labelActiv="Obslugiwany"] {
    background-color: #FFF2CC;
  }
  select[data-labelActiv="Awaiting"], select[data-labelActiv="Oczekujacy"] {
    background-color: #FFE6CC;
  }
  select[data-labelActiv="Done - success"], select[data-labelActiv="Zakonczony sukcesem"] {
    background-color: #DAE8FC;
  }
  select[data-labelActiv="Finish - outdated"], select[data-labelActiv="Przedawniony"] {
    background-color: #F5F5F5;
  }
  optgroup[label="New"],  optgroup[label="Nowy"]{
    background-color: #D5E8D4;
    option {
      background-color: #D5E8D4;
    }
  }
  optgroup[label="In Progress"],  optgroup[label="Obslugiwany"]{
    background-color: #FFF2CC;
    option {
      background-color: #FFF2CC;
    }
  }
  optgroup[label="Awaiting"],  optgroup[label="Oczekujacy"] {
    background-color: #FFE6CC;
    option {
      background-color: #FFE6CC;
    }
  }
  optgroup[label="Done - success"], optgroup[label="Zakonczony sukcesem"]{
    background-color: #DAE8FC;
    option {
      background-color: #DAE8FC;
    }
  }
  optgroup[label="Finish - outdated"],  optgroup[label="Przedawniony"]{
    background-color: #F5F5F5;
    option {
      background-color: #F5F5F5;
    }
  }
}

// Popup odpowiedzi
.answerModal{
  padding-top: 35px;
  .infoGeneral{
    p{
      margin-bottom: 0;
    }
    select[data-labelActiv="New"], select[data-labelActiv="Nowy"] {
      background-color: #D5E8D4;
    }
    select[data-labelActiv="In Progress"], select[data-labelActiv="Obslugiwany"] {
      background-color: #FFF2CC;
    }
    select[data-labelActiv="Awaiting"], select[data-labelActiv="Oczekujacy"] {
      background-color: #FFE6CC;
    }
    select[data-labelActiv="Done - success"], select[data-labelActiv="Zakonczony sukcesem"] {
      background-color: #DAE8FC;
    }
    select[data-labelActiv="Finish - outdated"], select[data-labelActiv="Przedawniony"] {
      background-color: #F5F5F5;
    }
    optgroup[label="New"],  optgroup[label="Nowy"]{
      background-color: #D5E8D4;
      option {
        background-color: #D5E8D4;
      }
    }
    optgroup[label="In Progress"],  optgroup[label="Obslugiwany"]{
      background-color: #FFF2CC;
      option {
        background-color: #FFF2CC;
      }
    }
    optgroup[label="Awaiting"],  optgroup[label="Oczekujacy"] {
      background-color: #FFE6CC;
      option {
        background-color: #FFE6CC;
      }
    }
    optgroup[label="Done - success"], optgroup[label="Zakonczony sukcesem"]{
      background-color: #DAE8FC;
      option {
        background-color: #DAE8FC;
      }
    }
    optgroup[label="Finish - outdated"],  optgroup[label="Przedawniony"]{
      background-color: #F5F5F5;
      option {
        background-color: #F5F5F5;
      }
    }
  }
  .infoAnswer{
    margin-top: 20px;
    .input-group-label{

    }
  }
  input{
    max-width: 300px;
  }
  input[readonly]{
    border-color: rgba(#ccc, 0.2);
  }
  textarea[readonly]{
    border-color: rgba(#ccc, 0.2);
    background: none;
  }
  .editAnswerField{
    cursor: pointer;
  }
  .answerNote{
    span{
      font-size: 10px;
    }
  }
}
.saveChangeInfo{
  color: red;
}

.textDarked {
  color: #000;
}

.move-to-newsletter {
    h1 {
        border-bottom: 1px solid #c5c5c5;
        color: #333;
        font: {
            size: 16px;
            weight: bold;
        }
        line-height: 38px;
        margin: 0;
        padding: 0;
    }

    .option-row {
        padding: 5px 0;

        &:after {
            clear: both;
            content: '';
            display: block;
            height: 0;
            width: 0;
        }

        label {
            box-sizing: border-box;
            color: #0f0f0f;
            font-size: 14px;
            float: left;
            height: 30px;
            line-height: 30px;
            width: 40%;
        }

        .option-content {
            box-sizing: border-box;
            float: left;
            width: 60%;

            select {
                background: {
                    color: #f0f0f0;
                    image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' version='1.1' width='32' height='24' viewBox='0 0 32 24'><polygon points='0,0 32,0 16,24' style='fill: rgb%28138, 138, 138%29'></polygon></svg>");
                    origin: content-box;
                    position: right -10px center;
                    repeat: no-repeat;
                    size: 9px 6px;
                }
                border: 1px solid #ccc;
                border-radius: 0;
                box-sizing: border-box;
                display: block;
                font: {
                    family: -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol";
                    size: 12px;
                }
                height: 30px;
                padding: 3px 14px 3px 6px;
                width: 100%;
            }
        }

        button {
            &.save-as-message {
                margin-bottom: 0;
            }
        }
    }
}
