/*******************************
         Site Overrides
*******************************/

.ui.modal.search {
  width: 1230px;
  height: 700px;
  margin-bottom: 210px;
  margin-top: 90px;

  .search-loading {
    position: absolute;
    top: 20px;
    left: 20px;
  }

  .search-results {
    .search-header {
      padding: 20px 20px;
      margin-bottom: 0;
    }

    .ui.table {
      margin-top: 0;

      thead {
        display: table;
        width: calc(100%);
        table-layout: fixed;

        th {
          border-bottom: none;
          height: 40px;
          padding-top: 10px;
          padding-bottom: 10px;
        }
      }

      tbody {
        display: block;
        height: 600px;
        overflow: auto;

        tr{
          display: table;
          width: 100%;
          table-layout: fixed;

          &:hover {
            a {
              font-weight: bold;
            }
          }

          td {
            border-bottom: 1px solid #F2F2F7 !important;

            a {
              color: @black;
            }
          }

        }
      }
    }

  }

  .recent-searches {
    padding: 0 20px;

    .search-header {
      padding: 20px 0;
      margin-bottom: 0;
    }

    .items-container {
      overflow: auto;

      .item {
        cursor: pointer;
        padding-top: 20px;
        padding-bottom: 20px;

        &:hover {
          a {
            font-weight: bold;
          }
        }

        a {
          color: @black;
        }
      }
    }

    .ui.divider {
      margin-top: 0;
      margin-bottom: 0;
    }

  }

  .search-messageb {
    text-align: center;
    padding-top: 360px;

    img {
      margin-bottom: 15px;
    }
  }
}

.ui.modal.affected {
  width: 1230px;
  height: 700px;
  margin-bottom: 210px;
  margin-top: 90px;

  .header {
    border-bottom: none;
  }

  .ui.segment {
    min-height: unset;
  }

  .content {
    max-height: 700px;
    padding: 0;
    max-width: 100%;
    margin-top: 0;

    .table-bar .column.left {
      padding-top: 20px;
    }

    .search-loading {
      margin: 0 auto;
      padding-top: 250px;
      text-align: center;
    }

    .search-failed {
      padding-top: 250px;
      text-align: center;
    }

    .ui.grid.table-bar {
      padding-right: 20px;
      padding-left: 20px;
      height: unset;
    }

    .pagination-page-info {
      padding-left: 30px;
    }

    .items-on-page-container {
      margin-right: 20px;

      .items-on-page {
        background-color: #F2F2F7;
        border: none;
      }
    }

    .goto-page-container {
      padding-right: 20px;

      .goto-page {
        background-color: #F2F2F7;
      }
    }

    tbody {
      display: block;
      overflow: auto;
      height: 450px;
    }

    thead, tbody tr {
      display: table;
      width: 100%;
      table-layout: fixed;
    }

    thead {
      th {
        width: 200px;

        &.account-email {
          width: 300px;
        }
        &.account-status {
          width: 110px;
        }
        &.account-wip {
          width: 40px;
        }
      }

    }

    tbody {

      td {
        width: 200px;
        word-wrap: break-word;

        &.account-email {
          width: 300px;
        }
        &.account-status {
          width: 110px;
        }
        &.account-wip {
          width: 40px;
          text-align: center;
        }
      }

    }

  }
}

.ui.modal.children {
  width: 1230px;
  height: 700px;
  margin-bottom: 210px;
  margin-top: 90px;

  .header {
    border-bottom: none;
    background-color: #F2F2F7;
  }

  .ui.segment {
    min-height: unset;
  }

  .content {
    overflow: scroll;
    max-height: 700px;
    padding: 20px 10px 0 0;
    max-width: 100%;
    margin-top: 0;

    .search-loading {
      margin: 20px 0 0 20px;
    }

    .search-failed {
      padding-top: 250px;
      text-align: center;
    }

    .children-items {
      display: flex;
      flex-wrap: wrap;
      height: 605px;
      align-content: flex-start;

      .children-item {
        width: 282px;
        height: 60px;
        background-color: #F2F2F7;
        margin: 0 0 20px 20px;
        display: flex;
        align-items: center;
        border-radius: 5px;

        .children-item-image {
          width: 60px;
          height: 60px;
          background-color: #B8BCD9;
          border-top-left-radius: 5px;
          border-bottom-left-radius: 5px;
          overflow: hidden;

          img {
            height: 60px!important;
            width: 60px!important;
            border-top-left-radius: 5px;
            border-bottom-left-radius: 5px;
            object-fit: cover;
          }
        }
        .children-item-content {
          width: 210px;
          padding-left: 20px;
          overflow: hidden;
          text-overflow: ellipsis;
          white-space: nowrap;
        }

      }

    }

  }
}

.ui.modal.token {
  width: 700px;
  height: 220px;
  margin-top: -150px;

  .header {
    border-bottom: none;
    background-color: #F2F2F7;
  }

  .ui.segment {
    min-height: unset;
  }

  .content {
    overflow: scroll;
    height: 150px;
    max-height: 700px;
    max-width: 100%;
    margin-top: 0;

    .search-loading {
      img {
        width: 100%;
        object-fit: cover;
      }
    }

    .search-failed {
      text-align: center;

      img {
        margin-bottom: 5px;
        height: 60px;
      }
    }

  }
}

.ui.modal.confirmation {
  .content {
    text-align: center;
  }
}
