<commit_before>// -----------------------------------------------------------------------------
// common modal parts
// -----------------------------------------------------------------------------

.modal__backdrop {
  position: fixed;
  height: 100%;
  width: 100%;
  z-index: 1001;
  top: 0px;
  left: 0px;
  background-color: rgba(0, 0, 0, 0.4) !important;
}

.modal {
  &.modal--open {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    min-width: 40%;
    max-width: 90%;
    max-height: 95%;
    overflow-x: auto;
    box-shadow: 0 0 12px 0 rgba(0, 0, 0, 0.06), 0 12px 12px 0 rgba(0, 0, 0, 0.12);
  }

  &.modal--large {
    &.modal--open {
      height: 80%;
      width: 80%;
      max-width: 1240px;
      align-items: stretch;
      display: flex;
    }

    .modal__content {
      height: 100%;
      width: 100%;
      display: flex;
      flex-direction: column;
    }

    .modal__body {
      flex-grow: 1;
      display: flex;
      flex-direction: column;

      .enketo-holder {
        flex-grow: 1;
        display: flex;
        flex-direction: column;
      }

      iframe {
        flex-grow: 1;
        border: 1px solid white;
        width: 100%;
      }
    }
  }
}

.modal__body {
  padding: 30px;
}

.modal__content {
  overflow: auto;
  background-color: #FFF;
}

.modal__tabs {
  background: $cool-blue;
  color: #FFF;
  margin: 0px -20px;
}

.modal__header {
  min-height: 70px;
  background: $cool-blue;
  color: #FFF;
}

.modal__title {
  margin: 0px;
  padding: 24px 30px;
  font-size: 18px;
  line-height: 22px;
}

.modal__x {
  position: absolute;
  background-color: transparent;
  top: 0;
  right: 0;
  padding: 19px;
  font-size: 20px;
  color: #FFF;
  cursor: pointer;

  i {font-size: 32px;}

  &:hover {opacity: 0.7;}
}

.modal__subheader {
  background: #f8f8f8;
  padding: 20px 30px;
  margin: -30px -30px 20px;
  color: lighten($black, 40%);

  i {
    margin: 2px 10px 10px 0;
    font-size: 32px;
    float: left;
  }
}

.modal__footer {
  margin-top: 20px;
  overflow: hidden; // clearfix
  text-align: right;

  &:first-child {
    margin-top: 0;
    margin-bottom: 20px;
  }

  .modal__footer-button {
    @extend .mdl-button;
    text-transform: uppercase;

    &.modal__footer-button--primary {
      @extend .mdl-button--colored, .mdl-button--raised;
      padding-left: 40px;
      padding-right: 40px;
    }

    &.modal__footer-button--secondary {
      @extend .mdl-button--colored;
    }

    &.modal__footer-button--danger {
      @extend .mdl-button--colored, .mdl-button--danger;
    }

    &.modal__footer-button--back {
      border-radius: 2px;
      color: $cool-blue;
      border: 1px solid currentColor;
      opacity: 1;
      float: left;

      &:hover {
        opacity: 0.8;
        color: $cool-blue;
      }
    }
  }
}

// -----------------------------------------------------------------------------
// custom parts and overrides
// -----------------------------------------------------------------------------

.modal-submission {
  .modal--open {
    background-color: #FFF;
  }

  .modal__header {
    background-color: #F8F8F8;
    color: $layout-text-color;
  }

  .modal__x {
    color: $layout-text-color;
  }

  .form-modal {
    text-align: right;
    padding-bottom: 20px;
  }

  .mdl-button--raised + .mdl-button--icon {
    margin-left: 30px;
    overflow: visible;
  }

  .form-modal__group {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;

    .switch--label-language,
    .switch--validation-status {
      width: 50%;
      text-align: left;

      label, div.Select {
        display: inline-block;
        vertical-align: middle;
      }

      label {
        margin-right: 12px;
      }
    }

    .switch--validation-status {
      width: 100%;
      text-align: right;
    }

    .switch--label-language + .switch--validation-status {
      width: 50%;
    }

    input {
      min-width: 100px;
    }

    .Select {
      text-align: left;
      min-width: 120px;
    }
  }

  .submission-pager {
    a {
      display: inline-block;
      cursor: pointer;

      &:first-child {
        padding-left: 0px;
      }
    }
  }

  table {
    border: 1px solid #F6F6F6;
    border-collapse: collapse;
    width: 100%;
    margin: 20px 0px;
    text-align: left;

    thead tr {
      border-bottom: 1px solid $divider-color;
    }

    thead th {
      font-weight: 600;
      padding: 8px 12px;
      background-color: #F6F6F6;
      text-align: left;
    }

    tbody {
      tr {
        border-bottom: 1px solid $divider-color;
      }

      td {
        padding: 12px;

        ul {
          list-style: disc;
          margin-left: 30px;
        }
      }
    }

    .submission--question-type {
      width: 5%;
    }

    .submission--question {
      width: 45%;
    }

    .submission--response {
      width: 50%;

      img {
        max-width: 100%;
      }
    }

    .submission--repeat-group {
      background: #F8F8F8;
      padding: 0px 30px;

      table {
        background: #FFF;
      }
    }

    .submission--group {
      background: #F8F8F8;

      h4 {
        margin: 0px;
      }
    }

    .submission--end-group {
      background: $divider-color;
      padding-top: 1px;
      padding-bottom: 0px;
    }
  }

  .submission--warning {
    margin-bottom: 30px;
    padding: 10px;
    background: #F5F5F5;
    text-align: center;
    line-height: 1em;

    i {
      color: #FFB775;
      font-size: 40px;
      margin-right: 10px;
      vertical-align: middle;
      display: inline-block;
    }

    span {
      line-height: 1.4em;
      display: inline-block;
      vertical-align: middle;
      width: calc(100% - 60px);
    }

    + .submission--warning {
      margin-top: -30px;
      border-top: 1px solid $divider-color;
    }
  }
}

.enketo-holder {
  // resets modal window paddings
  margin: -30px -30px;

  .enketo-loading-message {
    p {
      text-align: center;
      font-weight: 600;
    }

    i:before {
      color: #3FA2EE;
      font-size: 20px;
    }
  }

  .touch & {
    width: 94%;
    left: 3%;
    margin-left: 0px;
    -webkit-overflow-scrolling: touch;
    overflow-y: scroll;
  }
}

.enketo-iframe-icon {
  color: #fff;
  background-image: url("~/jquery-ui/themes/humanity/images/ui-icons_ffffff_256x240.png");
  background-color: #C6CBD0;
  background-position: -81px -129px;
  position: absolute;
  right: 6px;
  top: 6px;
  border-radius: 3px;
  z-index: 1000;
  width: 15px;
  height: 15px;
  cursor: pointer;
}

.project-settings {
  .intro {
    margin-bottom: 20px;
    text-align: left;
  }

  $buttons-spacing: 10px;

  .form-modal__item--form-source-buttons {
    margin: 0 auto;
    max-width: 600px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;

    button {
      border: 1px solid $divider-color;
      padding: 2*$buttons-spacing $buttons-spacing;
      background: #F8F8F8;
      border-radius: 4px;
      color: $cool-gray;
      cursor: pointer;
      margin: $buttons-spacing;
      flex-basis: 0;
      flex-grow: 1;
      max-width: calc(50% - #{2*$buttons-spacing});

      @media screen and (min-width: 768px) {
        min-width: 200px;
      }

      @media screen and (min-width: 960px) {
        min-width: 220px;
        padding: 2*$buttons-spacing;
      }

      i {
        display: block;
        margin: 0 auto;
        font-size: 48px;
      }

      &:hover {
        color: $cool-blue;
        border-color: $cool-blue;
        i {color: $cool-blue;}
      }
    }
  }

  .dropzone {
    background: #F5F5F5;
    padding: 30px;
    border: 2px dashed $divider-color;
    cursor: pointer;
    border-radius: 6px;
    text-align: center;

    i {
      display: block;
      margin: 0 auto;
      font-size: 72px;
      opacity: 0.5;
    }

    .loading {
      font-size: inherit;
    }

    .loading i {
      font-size: 36px;
      margin-top: 20px;
      margin-bottom: 16px;
    }

    &:hover {border-color: $cool-blue;}
    &.dropzone-active {border-color: $cool-blue;}
    &.dropzone-reject {border-color: $cool-red;}
  }
}

@media screen and (max-width: 767px) {
  .modal--open {
    min-width: 90%;
    max-width: 90%;
  }
}
<commit_msg>give more space for footer (fix overflowing country and sector selects)<commit_after>// -----------------------------------------------------------------------------
// common modal parts
// -----------------------------------------------------------------------------

.modal__backdrop {
  position: fixed;
  height: 100%;
  width: 100%;
  z-index: 1001;
  top: 0px;
  left: 0px;
  background-color: rgba(0, 0, 0, 0.4) !important;
}

.modal {
  &.modal--open {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    min-width: 40%;
    max-width: 90%;
    max-height: 95%;
    overflow-x: auto;
    box-shadow: 0 0 12px 0 rgba(0, 0, 0, 0.06), 0 12px 12px 0 rgba(0, 0, 0, 0.12);
  }

  &.modal--large {
    &.modal--open {
      height: 80%;
      width: 80%;
      max-width: 1240px;
      align-items: stretch;
      display: flex;
    }

    .modal__content {
      height: 100%;
      width: 100%;
      display: flex;
      flex-direction: column;
    }

    .modal__body {
      flex-grow: 1;
      display: flex;
      flex-direction: column;

      .enketo-holder {
        flex-grow: 1;
        display: flex;
        flex-direction: column;
      }

      iframe {
        flex-grow: 1;
        border: 1px solid white;
        width: 100%;
      }
    }
  }
}

.modal__body {
  padding: 30px;
}

.modal__content {
  overflow: auto;
  background-color: #FFF;
}

.modal__tabs {
  background: $cool-blue;
  color: #FFF;
  margin: 0px -20px;
}

.modal__header {
  min-height: 70px;
  background: $cool-blue;
  color: #FFF;
}

.modal__title {
  margin: 0px;
  padding: 24px 30px;
  font-size: 18px;
  line-height: 22px;
}

.modal__x {
  position: absolute;
  background-color: transparent;
  top: 0;
  right: 0;
  padding: 19px;
  font-size: 20px;
  color: #FFF;
  cursor: pointer;

  i {font-size: 32px;}

  &:hover {opacity: 0.7;}
}

.modal__subheader {
  background: #f8f8f8;
  padding: 20px 30px;
  margin: -30px -30px 20px;
  color: lighten($black, 40%);

  i {
    margin: 2px 10px 10px 0;
    font-size: 32px;
    float: left;
  }
}

.modal__footer {
  margin-top: 40px;
  overflow: hidden; // clearfix
  text-align: right;

  &:first-child {
    margin-top: 0;
    margin-bottom: 20px;
  }

  .modal__footer-button {
    @extend .mdl-button;
    text-transform: uppercase;

    &.modal__footer-button--primary {
      @extend .mdl-button--colored, .mdl-button--raised;
      padding-left: 40px;
      padding-right: 40px;
    }

    &.modal__footer-button--secondary {
      @extend .mdl-button--colored;
    }

    &.modal__footer-button--danger {
      @extend .mdl-button--colored, .mdl-button--danger;
    }

    &.modal__footer-button--back {
      border-radius: 2px;
      color: $cool-blue;
      border: 1px solid currentColor;
      opacity: 1;
      float: left;

      &:hover {
        opacity: 0.8;
        color: $cool-blue;
      }
    }
  }
}

// -----------------------------------------------------------------------------
// custom parts and overrides
// -----------------------------------------------------------------------------

.modal-submission {
  .modal--open {
    background-color: #FFF;
  }

  .modal__header {
    background-color: #F8F8F8;
    color: $layout-text-color;
  }

  .modal__x {
    color: $layout-text-color;
  }

  .form-modal {
    text-align: right;
    padding-bottom: 20px;
  }

  .mdl-button--raised + .mdl-button--icon {
    margin-left: 30px;
    overflow: visible;
  }

  .form-modal__group {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;

    .switch--label-language,
    .switch--validation-status {
      width: 50%;
      text-align: left;

      label, div.Select {
        display: inline-block;
        vertical-align: middle;
      }

      label {
        margin-right: 12px;
      }
    }

    .switch--validation-status {
      width: 100%;
      text-align: right;
    }

    .switch--label-language + .switch--validation-status {
      width: 50%;
    }

    input {
      min-width: 100px;
    }

    .Select {
      text-align: left;
      min-width: 120px;
    }
  }

  .submission-pager {
    a {
      display: inline-block;
      cursor: pointer;

      &:first-child {
        padding-left: 0px;
      }
    }
  }

  table {
    border: 1px solid #F6F6F6;
    border-collapse: collapse;
    width: 100%;
    margin: 20px 0px;
    text-align: left;

    thead tr {
      border-bottom: 1px solid $divider-color;
    }

    thead th {
      font-weight: 600;
      padding: 8px 12px;
      background-color: #F6F6F6;
      text-align: left;
    }

    tbody {
      tr {
        border-bottom: 1px solid $divider-color;
      }

      td {
        padding: 12px;

        ul {
          list-style: disc;
          margin-left: 30px;
        }
      }
    }

    .submission--question-type {
      width: 5%;
    }

    .submission--question {
      width: 45%;
    }

    .submission--response {
      width: 50%;

      img {
        max-width: 100%;
      }
    }

    .submission--repeat-group {
      background: #F8F8F8;
      padding: 0px 30px;

      table {
        background: #FFF;
      }
    }

    .submission--group {
      background: #F8F8F8;

      h4 {
        margin: 0px;
      }
    }

    .submission--end-group {
      background: $divider-color;
      padding-top: 1px;
      padding-bottom: 0px;
    }
  }

  .submission--warning {
    margin-bottom: 30px;
    padding: 10px;
    background: #F5F5F5;
    text-align: center;
    line-height: 1em;

    i {
      color: #FFB775;
      font-size: 40px;
      margin-right: 10px;
      vertical-align: middle;
      display: inline-block;
    }

    span {
      line-height: 1.4em;
      display: inline-block;
      vertical-align: middle;
      width: calc(100% - 60px);
    }

    + .submission--warning {
      margin-top: -30px;
      border-top: 1px solid $divider-color;
    }
  }
}

.enketo-holder {
  // resets modal window paddings
  margin: -30px -30px;

  .enketo-loading-message {
    p {
      text-align: center;
      font-weight: 600;
    }

    i:before {
      color: #3FA2EE;
      font-size: 20px;
    }
  }

  .touch & {
    width: 94%;
    left: 3%;
    margin-left: 0px;
    -webkit-overflow-scrolling: touch;
    overflow-y: scroll;
  }
}

.enketo-iframe-icon {
  color: #fff;
  background-image: url("~/jquery-ui/themes/humanity/images/ui-icons_ffffff_256x240.png");
  background-color: #C6CBD0;
  background-position: -81px -129px;
  position: absolute;
  right: 6px;
  top: 6px;
  border-radius: 3px;
  z-index: 1000;
  width: 15px;
  height: 15px;
  cursor: pointer;
}

.project-settings {
  .intro {
    margin-bottom: 20px;
    text-align: left;
  }

  $buttons-spacing: 10px;

  .form-modal__item--form-source-buttons {
    margin: 0 auto;
    max-width: 600px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;

    button {
      border: 1px solid $divider-color;
      padding: 2*$buttons-spacing $buttons-spacing;
      background: #F8F8F8;
      border-radius: 4px;
      color: $cool-gray;
      cursor: pointer;
      margin: $buttons-spacing;
      flex-basis: 0;
      flex-grow: 1;
      max-width: calc(50% - #{2*$buttons-spacing});

      @media screen and (min-width: 768px) {
        min-width: 200px;
      }

      @media screen and (min-width: 960px) {
        min-width: 220px;
        padding: 2*$buttons-spacing;
      }

      i {
        display: block;
        margin: 0 auto;
        font-size: 48px;
      }

      &:hover {
        color: $cool-blue;
        border-color: $cool-blue;
        i {color: $cool-blue;}
      }
    }
  }

  .dropzone {
    background: #F5F5F5;
    padding: 30px;
    border: 2px dashed $divider-color;
    cursor: pointer;
    border-radius: 6px;
    text-align: center;

    i {
      display: block;
      margin: 0 auto;
      font-size: 72px;
      opacity: 0.5;
    }

    .loading {
      font-size: inherit;
    }

    .loading i {
      font-size: 36px;
      margin-top: 20px;
      margin-bottom: 16px;
    }

    &:hover {border-color: $cool-blue;}
    &.dropzone-active {border-color: $cool-blue;}
    &.dropzone-reject {border-color: $cool-red;}
  }
}

@media screen and (max-width: 767px) {
  .modal--open {
    min-width: 90%;
    max-width: 90%;
  }
}

{'fraction_non_alphanumeric': 0.17208066658616109, 'fraction_numerical': 0.04021253471802922, 'mean_word_length': 1.6641466945472092, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '395981', 'n_tokens_mistral': 6569, 'n_tokens_neox': 5804, 'n_words': 1238}