/* CHANGELISTS */

#changelist {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;

  .changelist-form-container {
    flex: 1 1 auto;
    min-width: 0;
  }

  table {
    width: 100%;
  }
}

.change-list {
  .hiddenfields {
    display: none;
  }
}

.change-list .filtered table tbody th {
  padding-right: 1em;
}

#changelist-form .results {
  overflow-x: auto;
  width: 100%;
}

#changelist {
  .toplinks {
    border-bottom: 1px solid var(--hairline-color);
  }

  .paginator {
    color: var(--body-quiet-color);
    overflow: hidden;
  }

  table {
    thead th {
      padding: 0;
      white-space: nowrap;
      vertical-align: middle;

      &.action-checkbox-column {
        width: 1.5em;
        text-align: center;
      }
    }

    tbody td.action-checkbox {
      text-align: center;
    }

    tfoot {
      color: var(--body-quiet-color);
    }
  }
}
#result_list td {
  padding: 8px 10px;
}
/* CHANGELIST TABLES */

/* TOOLBAR */

#toolbar {
  @extend .rounded;
  @extend .border;
  @extend .px-3;
  @extend .py-2;
  @extend .mb-3;
  form input[type="text"] {
    @extend .form-control;
    @extend .d-inline-block;
    @extend .w-auto;
    @extend .m-0;
  }
  form input[type="submit"] {
    @extend .btn;
    @extend .btn-secondary;
  }
}

#changelist-search img {
  vertical-align: middle;
  margin-right: 4px;
}

/* DATE DRILLDOWN */

.change-list ul.toplinks {
  display: block;
  float: left;
  padding: 0;
  margin: 0;
  width: 100%;

  li {
    padding: 3px 6px;
    font-weight: bold;
    list-style-type: none;
    display: inline-block;
  }

  .date-back a {
    color: var(--body-quiet-color);
  }
}

/* PAGINATOR */

.paginator {
  font-size: 13px;
  padding-top: 10px;
  padding-bottom: 10px;
  line-height: 22px;
  margin: 0;
  width: 100%;
  a {
    &:link,
    &:visited {
      padding: 6px 10px;
      background: $light;
      text-decoration: none;
      border-radius: $border-radius;
    }
    &.showall {
      border: none;
      background: none;
    }
  }
  .end {
    margin-right: 6px;
  }
  .this-page {
    padding: 10px 14px;
    font-weight: bold;
    font-size: 13px;
    vertical-align: top;
  }
}

/* ACTIONS */

.filtered .actions {
  border-right: none;
}

#changelist {
  table {
    input {
      margin: 0;
      vertical-align: baseline;
    }
    tbody tr.selected {
      background-color: var(--selected-row);
    }
  }
}
