/* Styles for reports app front page */
.reports-speeddial {
  display: flex;
  margin-top: 42px;
  margin-bottom: 48px;

  .panel {
    border-radius: 4px;
    background: rgba(230, 233, 243, 0.6);
    padding: 24px;
    margin-right: 30px;
    display: flex;
    max-width: 130px;
    align-items: center;
    text-decoration: none;

    a {
      text-decoration: none;
    }

    h3, i {
      font-weight: 500;
      font-size: 14px;
      line-height: 140%;
      color: @textColor;
      margin: 0;
      padding: 0;
    }


    i {
      margin-right: 10px;
      display: inline-block;
      font-size: 22px;
    }

    &:hover {
      text-decoration: none;
      background: @Blue600;
      h3, i {
        color: @white;
      }
    }


  }
}


/* Schedule page */
/*****************/
.scheduler {
  width:465px;
  float:left;
  h3 {
      margin-bottom: 20px;
  }
}

.scheduler .datepick,
.scheduler .timepick {

  input[type="text"],select {
      width:106px;
      float:left;
      margin-right:6px !important;
  }
  input[type="text"] {
      width:100px;
  }
  .small {
      width:53px;
  }
  .controls label {
      padding-top:5px;
  }
}

.scheduler .datepick,
.scheduler .timepick {

  input[type="text"]:last-child,
  select:last-child {
      margin-right:0;
  }
}

/* Report table with delete host */
.deleteCheck {
    width: 12px;
}

.deleteCheck input[type='checkbox'] {
    margin-right:0;
}

table.diff-table {

  td {
    border: none;
    padding: 0px;
  }

  .number {
    -moz-user-select: none;
    -ms-user-select: none;
    -webkit-user-select: none;
    color: rgba(27, 31, 35, .3);
    font-family: SFMono-Regular, Consolas, Liberation Mono, Menlo, Courier, monospace;
    font-size: 12px;
    line-height: 20px;
    min-width: 20px;
    padding-left: 10px;
    padding-right: 10px;
    text-align: right;
    user-select: none;
    vertical-align: top;
    white-space: nowrap;
    width: 1%;
  }

  .number-deletion {
    background-color: #ffdce0;
    border-color: #fdaeb7;
  }

  .number-addition {
    background-color: #cdffd8;
    border-color: #bef5cb;
  }

  .code-addition {
    background-color: #e6ffed;
  }

  .code {
    line-height: 20px;
    padding-right: 10px;
    position: relative;
    vertical-align: top;
  }

  .code-deletion {
    background-color: #ffeef0;
  }

  .tab-size[data-tab-size="8"] {
    -moz-tab-size: 8;
    tab-size: 8;
  }

  .code-marker-cell {
    padding: 0 0 0 11px;
    width: 1em;
  }

  .code-inner {
    color: #24292e;
    font-family: SFMono-Regular, Consolas, Liberation Mono, Menlo, Courier, monospace;
    font-size: 12px;
    overflow: visible;
    white-space: pre;
    word-wrap: normal;
  }

  border: 1px solid #ddd;
}

.btn-diff i, .btn-diff:hover {
  color: black;
}

.btn-diff {
  visibility: hidden;
  position: absolute;
  right: 5px;
  z-index: 100;
  color: black;
}

td:hover .btn-diff {
  visibility: visible
}

td {
  position: relative
}

.fim_data #save_report {
  display: none;
}


.join-description {
  max-width: 200px;

  .main-table {
    color: #f5821f;
    font-weight: bold
  }
}

.dropdown-submenu .dropdown-menu {
  overflow-y: scroll;
  max-height: 550px;
}

.rule-row td {
  position: relative;
  &:hover .tooltiptext {
    visibility: visible;
  }

  .tooltiptext {
    visibility: hidden;
    background-color: rgba(29, 29, 29, 0.9);
    width: max-content;
    max-width: 700px;
    color: #ffffff;
    border-radius: 6px;
    padding: 10px;
    position: absolute;
    z-index: 10;
    left: 0px;
    top: 45px
  }

  .tooltiptext:before {
    position: absolute;
    top: -7px;
    left: 11px;
    display: inline-block;
    border-right: 7px solid transparent;
    border-bottom: 7px solid rgba(29, 29, 29, 0.9);
    border-left: 7px solid transparent;
    content: '';
  }
}

.inventory_help {
  position: absolute;
  top: 41px;
  display: block;
  font-size: 11px;
  width: max-content;
  > span {
    padding: 3px;
  }
}

#SQLBuilder {
  #filterTree {
    top: auto;
    padding: 14px 0 0 0;
    margin-top: 9px;
  }
  .inventory-filter-top {
    margin: 0 16px 6px 16px;
  }
}

.changes-result {
  .column-dropdown {
    a.dropdown-toggle {
      margin-top: 4px;
      padding: 7px;
    }
  }
}

.open-report {
  color: @Blue600;
  margin-left: 8px;
}

.compliance {
  button.editReportTitle {
    margin-left: 16px;
  }
  #filterTree {
    left: 0;
  }
  .check-list-item {
    margin-top: 42px;
    &-category {
      font-size: 16px;
      font-weight: bold;
    }
    table {
      .sort-head{
        cursor: pointer;
      }
      border-top: 3px solid #EEEFF0;
      border-bottom: none;
      tr {
        border-color: #EEEFF0;
        &:last-child {
          border-bottom: none;
        }
      }
    }
  }
  .subtitle {
    font-size: 16px;
  }
}

.listReports_SE {
  .tooltip-inner {
    max-width: 160px;
}
  th, td {
    vertical-align: middle;
    &:first-child {
      text-align: center;
      span.label-icon {
        margin: 0 auto;
      }
    }
  }
  .circle-outline{
    background: @Gray200;
    position: absolute;
    margin-top: 2px;
    width: 16px;
    height: 16px;
    display: inline-block;
    margin-left: 9px;
    border-radius: 50%;
  }
  .group-shared-icon{
    background: url(/images/groups/groups_shared_icon.svg) no-repeat;
    filter: grayscale(100%);
    display: inline-block;
    height: 10px;
    background-size: 100% 100%;
    width: 10px;
    margin-left: -2px;
    margin-bottom: 2px;
  }
  .bi-person-fill{
    color: @Gray600;
    font-size: 12px;
    position: absolute;
    margin-left: -3px;
    margin-top: -3px;
  }
  .bi-braces{
    color: @Gray600;
    font-size: 12px;
    position: absolute;
    margin-left: -3px;
    margin-top: -2px;

    &::before{
      font-weight: 700 !important;
    }
  }
  .bi {
    margin-right: 8px;
    &-star {
      color: @Gray300;
      &::before{
        font-weight: 900 !important;
      }
      &-fill {
        color: #FCC335;
      }
    }
  }
  tr:first-child {
    border-top: none;
  }
  th,td {
    font-weight: 700;
    font-size: 14px;
    line-height: 20px;
    color: @textColor;
    padding: 9px;
    &:hover {
      background: none;
    }
  }
}

.reportTabSelector {
  box-shadow: inset 0px -1px 0px #DBDBDB;
  display: inline-block;

  a {
    display: inline-block;
    padding: 16px 12px;
    margin-right: 32px;
    font-weight: 500;
    font-size: 14px;
    line-height: 16px;
    color: @Gray700;
    text-decoration: none;
    &.active {
      font-weight: 700;
      color: @textColor;
      border-bottom: 2px solid @textColor;
    }
  }
}

.categorySelector {
  position: relative;
  margin-top: 16px;
  .dropdown-menu {
    top: 31px;
    padding: 14px 16px;
    border: 1px solid #BFBFBF;
    box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.08);
    border-radius: 4px;
  }
  button.dropdown-toggle {
    width: 160px;
    max-width: 160px;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: left;
    padding-right: 20px;
    position: relative;
    span {
      position: absolute;
      right: 10px;
      top: 50%;
      transform: translateY(-50%);
    }
  }
}

.sql-result-block {
  max-width: calc(100vw - 202px); // max width is 100 viewport width minus sidebar
}

span[rel="tooltip"]:hover {
  i {
    color: @Blue600;
  }
}

.export-columns-warning {
  color: #B4610D;
  font-size: 12px;
  font-style: normal;
  font-weight: 500;
  line-height: 16px;
  margin-top: 4px;
  max-width: 211px;
}
