div.data-grid-wrapper {
  position: relative;
  div.responsive-table {
    display: block;
    max-width: 86vw;
    overflow-x: auto;
    position: relative;
  }
  input[type='checkbox'] {
    cursor: pointer;
  }
  div.pagination-bottom {
    display: flex;
    justify-content: center;
  }
}
div.formio-new-button {
  position: absolute;
  right: 10px;
  width: 36px;
  height: 36px;
  text-align: center;
  padding: 2px 0;
  font-size: 28px;
  line-height: 1;
  border-radius: 18px;
}
div.data-grid {
  table.formio-grid {
    width: 100%;
    margin: 0 0 5px 0;
    max-width: none;
    border-collapse: collapse;
    border-spacing: 0;
    empty-cells: show;
    outline: 0;
    tr.header {
      th {
        padding-right: 24px;
      }
    }
    th {
      position: relative;
      white-space: nowrap;
      border-width: 0 0 2px 1px;
      span.menu {
        display: flex;
        position: absolute;
        top: 0;
        right: 0;
        bottom: 0;
        align-items: center;
        cursor: pointer;
        padding: 5px;
        color: #495057;
        .menu-btn {
          font-size: 20px;
          &.filters-applied {
            color: #f04124;
          }
        }
      }
      span.sort-btn {
        visibility: hidden;
        align-items: center;
        cursor: pointer;
        padding: 5px;
        color: #000000;
        margin-right: 12px;
        &.sorted {
          visibility: visible;
        }
      }
      &:hover {
        span.sort-btn:not(.sorted) {
          visibility: visible;
          color: rgb(180, 180, 180);
        }
      }
    }
    td {
      border-style: solid;
      border-width: 0 0 0 1px;
      padding: 0.4em 0.6em;
      overflow: auto;
      line-height: 1.6em;
      vertical-align: middle;
      &.clip {
        overflow-x: hidden;
        text-overflow: ellipsis;
      }
    }
    th.formio-grid-ops {
      right: 0px;
      text-align: center;
      top: auto;
      padding: 0.4rem 0;
      .row-menu-btn {
        font-size: 20px;
        .dropdown-menu {
          left: initial;
          right: 15px;
          top: -22px;
          .dropdown-item {
            cursor: pointer;
            padding: 2px;
          }
        }
        &:hover .dropdown-menu,
        &:focus .dropdown-menu {
          display: block;
        }
      }
      div.formio-grid-ops-button {
        display: block;
        padding: 2px 2px;
        font-size: 16px;
        line-height: 1.5em;
        border-radius: 0;
        width: 100%;
        height: 24px;
        z-index: 1001;
        z-index: 1001;
        -webkit-box-shadow: 0px 0px 5px 1px rgba(48, 113, 169, 0.3);
        -moz-box-shadow: 0px 0px 5px 1px rgba(48, 113, 169, 0.3);
        box-shadow: 0px 0px 5px 1px rgba(48, 113, 169, 0.3);
        &.delete-all-btn {
          font-size: 18px;
          width: 50px;
          height: 30px;
          line-height: normal;
          display: table-cell;
          vertical-align: middle;
        }
      }
      .formio-actions-header {
        border-left: 1px solid #ddd;
        border-right: 1px solid #ddd;
        height: 38px;
        padding: 8px 1px;
      }
    }
    tr {
      height: 36px;
    }
    tr.selected-row {
      background-color: #ececec;
      th.formio-actions-col {
        background-color: #ececec !important;
      }
      th.formio-actions-col-b3 {
        background-color: #f5f5f5 !important;
      }
    }
    tr td {
      width: auto !important;
      border-style: solid;
      border-color: #ccc;
    }
    tr:nth-of-type(odd) {
      th.formio-actions-col {
        background-color: #f2f2f2;
      }
      th.formio-actions-col-b3 {
        background-color: #f9f9f9;
      }
    }
    tr:nth-of-type(even) {
      th.formio-actions-col,
      th.formio-actions-col-b3 {
        background-color: white;
      }
    }
    tr:hover {
      th.formio-actions-col {
        background-color: #ececec;
      }
      th.formio-actions-col-b3 {
        background-color: #f5f5f5;
      }
    }
  }
}
tbody {
  position: relative;
}
.formio-grid-bottom {
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 86vw;
  min-height: 25px;
  position: relative;
  .pagination-bottom {
    .btn {
      padding: 0 12px;
      line-height: 1;
    }
  }
  .hidden {
    display: none;
  }
}
div.spinner-wrapper {
  width: 100vw;
  height: 100%;
  display: none;
  justify-content: center;
  align-items: center;
  position: absolute;
  background-color: white;
  opacity: 0.7;
  z-index: 1;
}

@keyframes spinner-grow {
  0% {
    transform: scale(0);
  }
  50% {
    opacity: 1;
  }
}

div.spinner-grow {
  width: 2rem;
  height: 2rem;
  vertical-align: text-bottom;
  background-color: currentColor;
  border-radius: 50%;
  opacity: 0;
  -webkit-animation: spinner-grow 0.75s linear infinite;
  animation: spinner-grow 0.75s linear infinite;
}

div.data-grid-wrapper.data-grid-uswds-wrapper {
  div.data-grid {
    table.formio-grid,
    table.formio-grid tr td,
    table.formio-grid th {
      border: 1px solid #1b1b1b;
    }
  }

  button.formio-new-button {
    position: absolute;
    right: 10px;
    width: 36px;
    height: 36px;
    padding: 2px 0;
    font-size: 30px;
    border-radius: 18px;
  }

  button.delete-all-btn {
    width: 40px;
    padding: 2px 2px;
  }
}

.formio-grid-select-wrapper {
  margin-bottom: 0.3rem;
  font-size: 0.95rem;
  background-color: rgba(0, 0, 0, 0.05);
  .formio-grid-select-spinner {
    display: none;
    .spinner-grow {
      width: 1rem;
      height: 1rem;
      margin-left: 1rem;
    }
  }
}

.formio-grid-select-loading {
  .formio-grid-select-btn {
    display: none;
  }
  .formio-grid-select-spinner {
    display: inline;
  }
}

.formio-grid-select-btn {
  cursor: pointer;
}
