@import "zmienne";
@import "tinyMCE/tiny-modal";

@media (max-width:39.9375em) {
    .button.tiny.mRecipientsButton {padding-left: 0 !important; margin-left: 0 !important;}
}

.img-container {
  max-width: 640px;
  margin: 20px auto;
  img {
    max-width: 100% !important;

  }
}

#imgAddModal{
  width: 700px;
  height: 600px;
}

//Usuwanie kategorii
.catDeleteQuestion{
  font-weight: bold;
  font-size: 1.5rem;
}

.childrenView{
  list-style: none;
}

.radioDeleteCat label{
  display: inline-block;
  margin-left: 20px;
}

.newCategorySelect{
  max-width: 300px;
}

.confirmDelete{
  opacity: 0.3;
  filter: alpha(opacity=30);
  pointer-events: none;
}

.confirmDeleteSubcategories{
  opacity: 1;
  filter: alpha(opacity=100);
  pointer-events: all;
}

.selectCategories{
  opacity: 0.3;
  filter: alpha(opacity=30);
  pointer-events: none;
}

//Szczegóły newsa
.showNews{
  .imgThumbnail{
    max-width: 200px;
    max-height: 200px;
    width: 100%;
    height: 100%;
    background: url('../img/noimage.jpg') no-repeat;
    background-size: contain;
    display: block;
    img{
      //max-width: 200px;
      margin: auto;
    }
  }
  h3{
    margin-bottom: 40px;
  }
}
.showNewsButton{
  border-radius: 5px;
  margin-left: 5px;
}
.button.warning:focus, .button.warning:hover {
  background-color: #ffae00;
  color: #fefefe;
}
.showCategoryNews{
  pointer-events: none;
}

// Lista newsów
.imgListNews{
  max-width: 50px;
}

.newsListNew{
  margin-top: 10px;
}
.newsListNewTop{
  float: right;
  margin-bottom: 30px;
  display: inline-block;

}

.selectCampaign{
    max-width: 300px;
    width: 100%;
    color: #2f323a;
    font-size: 13px;
    margin-top: 10px;
    border: 1px solid rgba(47, 50, 58, 0.1);
    cursor: pointer;
    padding: 3px 25px 3px 5px;
    height: 30px;
}
.selectLogDate{
    max-width: 300px;
    width: 100%;
    color: #2f323a;
    font-size: 13px;
    margin-top: 10px;
    border: 1px solid rgba(47, 50, 58, 0.1);
    cursor: pointer;
    padding: 3px 25px 3px 5px;
    height: 30px;
}

.sortable:after{
  margin-left: 10px;
  font-family: fontello;
  content: '\f0dc';
}
.asc:after{
  margin-left: 10px;
  font-family: fontello;
  content: '\f0de';
}
.desc:after{
  margin-left: 10px;
  font-family: fontello;
  content: '\f0dd';
}

.icon-minus::before {
  margin-left: 0;
  width: 0.4rem;
  font-size: 6px;
}

.imgThmbnail{
  background: url('../img/noimage.jpg') no-repeat;
  background-size: contain;
  min-width: 50px;
  min-height: 50px;
  max-width: 70px;
  max-height: 70px;
  display: block;
}
.ListNewsSearch{
  form{
    width: 80%;
  }
}

//Dodanie newsa
#contentValidation{
  display: none;
}
#contentValidationCat{
  display: none;
}

.chosenSelectCategory{
  width: 100%;
  height: 50px;
  display: inline-block;
}
.chosen-container {
  width: 100% !important;
}

// Cropper
.containerCropper{
  width: 100%;
  height: 100%;
  max-height: 90vh;
  img{
    width: 100%;
    height: 100%;
  }
}
#windowModalCropper{
  top: 5px !important;
}
.previewImage{
  max-width: 200px;
  max-height: 200px;
  margin-bottom: 20px;
}
.InputFileHidden{
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}
.buttonAddImage{
  margin-top: 10px;
}

//lista kategorii

.OrderNrForm{
  display: inline-block;
  form{
    display: block;
    margin-bottom: 2px;
  }
}
.ListQuestionSearch {
    display: inline-block;
    width: 400px;
    margin-left: 20px;
    margin-top: 7px;
}
.showNewsButton:hover {
    cursor: pointer;
}

textarea {
    width: 100%;
}
.editMode{
 border: 1px solid black;
 background-color: white;
}

.edit {
    cursor: pointer;
}
.scroll_cell {
    display: table;
    height: 450px;
    overflow-y: auto;
    overflow-x: hidden;
}

table#campaignsInfo tbody tr td:nth-child(2) {word-wrap: break-word; word-break: break-word; max-width: 500px;}
table#campaignMessage thead tr t:first-child {max-width: 100px;}

/*table#sendersList tbody tr td {padding-top: 2px; padding-bottom: 2px;}*/
table#sendersList thead tr th:nth-child(3) {
    min-width: 70px;
    max-width: 100px;
}

.button.tiny.mRecipientsButton {
    display: initial;
    font-size: 0.7rem;
    padding-left: 6.5px;
    padding-top: 4.5px;
    padding-right: 6.5px;
    padding-bottom: 4.5px;
}
.message-paper {
    border: 1px solid rgba(10, 10, 10, 0.10);
    box-shadow: 0 0 15px rgba(0,0,0,0.1);
}

div#campaignInfo_length.dataTables_length {display: none;}
div#sendersList_length.dataTables_length {display: none;}
.table-config tbody tr td {padding: 1px !important;}
input.inputConfig {background-color: #f9f9f9;}

.label.button.alert {cursor: pointer; margin-top: 10px;}

.box.configS {background-color: #f8f8f8}
.langStyle {text-align: center;}
.statusIcon {float: right;}

.buttonItemsBox.config {float: right; margin-right: 0; margin-top: 0; max-width: 20px;}
.buttonsItems.config {float: right; cursor: pointer; font-size: 14px; display: none;}
.buttonsItems:hover {display: block; cursor: pointer;}
.buttonItemsBox.recipientsBox {display: inline; margin-top: 0; margin-right: 300px; float: right;}

.inputConfig {max-height: 25px; margin-top: 0px !important; margin-bottom: 0px !important;}
.aidValue {max-width: 135px;}
.switch.tiny {margin-bottom: 0px ;}

.icon-check.statusB {color: green !important; line-height: 1.9 !important;}
.icon-cancel.statusB {width: 40px !important; color: red !important; line-height: 1.9 !important;}

.date_start {max-width: 100px;}
.date_end {max-width: 100px;}
.quantity_to_sent {max-width: 70px;}

.labelDaysOfWeek {font-size: 12px; padding-right: 3px; display: inline-flex;}
.switch-inactive {color: maroon;}

input:checked ~ .labelSwitch {background-color: #788469;}


.box {
  .statistic-charts {
    padding: {
      left: 0;
      right: 0;
    }

    .statistic-tabs {
      border: none;
      .tabs-title {
        > a {
          padding: 0.6rem 1.5rem;

          &:focus {
            outline: none;
          }
        }
      }
    }
    .statistic-tabs-content {
      border: none;
    }

    .nav {
      display: flex;

      .nav-link {
        width: 25%;

        &:last-child {
          text-align: right;
        }

        a {
          border-radius: 2px;
          border: 1px solid rgba(0, 0, 0, 0.1);
          display: inline-block;
          padding: 5px 10px;
        }
      }

      span {
        padding: 5px 10px;
        text-align: center;
        width: 50%;
      }
    }
  }
}

.newsletter-tabs {
  .tabs {
    border: {
      bottom: 1px solid #ddd;
      left: 0;
      right: 0;
      top: 0;
    }

    .tabs-title {
      > a {
        border: {
          left: 1px solid #fff;
          right: 1px solid #fff;
          top: 2px solid #fff;
        }
        color: #bbb;
        font: {
          family: "Montserrat Light", sans-serif;
          size: 12px;
          weight: bold;
        }
        margin-bottom: -1px;

        &:hover {
          color: #888;
        }

        &:focus,
        &[aria-selected=true] {
          border: {
            left: 1px solid #ddd;
            right: 1px solid #ddd;
            top: 2px solid #1976d2;
            bottom: 1px solid #fff;
          }
          background: none;
          color: #555;
          outline: 0;
        }
      }
    }
  }

  .tabs-content {
    border: none;
    background-color: transparent;

    .tabs-panel {
      padding: {
        left: 0;
        right: 0;
      }
    }
  }
}

.add-sender {
  min-height: 130px;
  padding: 30px 30px 0px;
  box-sizing: border-box;

  .add-sender-button {
    text-align: center;
    padding-top: 15px;
  }
}

.consent {
  font: {
    size: 15px;
  }

  &.ok {
    color: #5a910d;
  }

  &.fail {
    color: #ec3030;
  }
}
