.table-editor {
  --datatable-color: #212529;
  --datatable-border-color: #e0e0e0;
  --datatable-striped-color: #212529;
  --datatable-accent-bg: #f2f2f2;
  --datatable-hover-color: #131313;
  --datatable-hover-bg: #f2f2f2;
  --datatable-muted-color: grey;
  --datatable-active-color: rgba(19, 19, 19, 0.05);
  font-size: 0.9rem;
  color: var(--datatable-color);
  background-color: #fff;
}

.table-editor tr .delete-button,
.table-editor tr .discard-button,
.table-editor tr .edit-button,
.table-editor tr .popconfirm-toggle,
.table-editor tr .save-button {
  padding: 0;
  margin: 0;
  -webkit-box-shadow: none;
  box-shadow: none;
}

.table-editor tr .delete-button:active,
.table-editor tr .delete-button:focus,
.table-editor tr .discard-button:active,
.table-editor tr .discard-button:focus,
.table-editor tr .edit-button:active,
.table-editor tr .edit-button:focus,
.table-editor tr .popconfirm-toggle:active,
.table-editor tr .popconfirm-toggle:focus,
.table-editor tr .save-button:active,
.table-editor tr .save-button:focus {
  -webkit-box-shadow: none;
  box-shadow: none;
  color: #1266f1 !important;
}

.table-editor__inner {
  background-color: inherit;
}

.table-editor table {
  color: var(--datatable-color);
  background-color: inherit !important;
  margin-bottom: 0;
  border-color: var(--datatable-border-color);
}

.table-editor table td,
.table-editor table th {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 250px;
  padding: 1rem 1.4rem;
}

.table-editor thead,
.table-editor thead tr {
  background-color: inherit;
}

.table-editor thead tr {
  border-bottom: 1px solid var(--datatable-border-color);
}

.table-editor thead th {
  position: relative;
  border-bottom: none;
  font-weight: 500;
}

.table-editor thead th:hover .table-editor__sort-icon {
  opacity: 1;
}

.table-editor thead .fixed-cell {
  position: sticky;
  top: 0;
  z-index: 3;
  -webkit-box-shadow: var(--datatable-border-color) 0 1px;
  box-shadow: var(--datatable-border-color) 0 1px;
  background-color: inherit;
}

.table-editor tbody {
  font-weight: 300;
  background-color: inherit;
}

.table-editor tbody .fixed-cell {
  position: sticky;
  z-index: 1;
  background-color: inherit;
}

.table-editor tbody tr {
  background-color: inherit;
  -webkit-transition: all 0.3s ease-in;
  transition: all 0.3s ease-in;
}

.table-editor tbody tr:last-child {
  border-bottom: transparent;
  height: 71px;
}

.table-editor tbody tr:focus {
  outline: none;
}

.table-editor tbody tr.active {
  background-color: var(--datatable-active-color);
}

.table-editor tbody td:focus {
  outline: none;
}

.table-editor__loader {
  width: 100%;
  height: 2px;
  position: relative;
  overflow: hidden;
}

.table-editor__loader-inner,
.table-editor__progress {
  display: block;
  height: 100%;
}

.table-editor__progress {
  -webkit-animation: datatableProgress 3s ease-in-out;
  animation: datatableProgress 3s ease-in-out;
  -webkit-animation-fill-mode: both;
  animation-fill-mode: both;
  -webkit-animation-iteration-count: infinite;
  animation-iteration-count: infinite;
  width: 45%;
  position: relative;
  opacity: 0.5;
  border-radius: 1px;
}

@-webkit-keyframes datatableProgress {
  0% {
    left: -45%;
  }

  to {
    left: 100%;
  }
}

@keyframes datatableProgress {
  0% {
    left: -45%;
  }

  to {
    left: 100%;
  }
}

.table-editor__pagination {
  width: 100%;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: end;
  -ms-flex-pack: end;
  justify-content: flex-end;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  padding: 0.5rem 0;
  border-top: 1px solid var(--datatable-border-color);
}

.table-editor__pagination-nav {
  padding: 0;
  font-size: 0.9rem;
}

.table-editor__pagination-buttons {
  margin-left: 2rem;
}

.table-editor__pagination-button {
  padding-left: 1rem;
  padding-right: 1rem;
  color: var(--datatable-color);
}

.table-editor__pagination-button:active,
.table-editor__pagination-button:focus,
.table-editor__pagination-button:hover {
  background-color: var(--datatable-active-color);
  color: var(--datatable-color);
}

.table-editor__sort-icon {
  opacity: 0;
  color: var(--datatable-muted-color);
  cursor: pointer;
  -webkit-transition-property: opacity, -webkit-transform;
  transition-property: opacity, -webkit-transform;
  transition-property: opacity, transform;
  transition-property: opacity, transform, -webkit-transform;
  -webkit-transition-duration: 0.3s;
  transition-duration: 0.3s;
  -webkit-transition-timing-function: linear;
  transition-timing-function: linear;
  position: absolute;
  left: 0.4rem;
  top: calc(50% - 0.5rem);
}

.table-editor__sort-icon.active {
  opacity: 1;
  color: var(--datatable-color);
}

.table-editor__select-wrapper {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  font-size: 0.9rem;
  font-weight: 300;
  padding: 0 1rem;
}

.table-editor__select-wrapper .select-input {
  max-width: 70px;
}

.table-editor__select-text {
  margin: 0 1rem;
}

.table-editor.sm td,
.table-editor.sm th {
  padding: 0.5rem 1.4rem;
}

.table-editor.sm tbody tr:last-child {
  border-bottom: transparent;
  height: 55px;
}

.table-editor.sm .table-editor__pagination {
  padding: 0.2rem 0;
}

.table-editor.bordered td,
.table-editor.bordered th {
  border-width: 1px;
}

.table-editor.bordered .table-editor__pagination {
  border: 1px solid var(--datatable-border-color);
}

.table-editor.striped tbody tr:nth-of-type(odd) {
  background-color: var(--datatable-accent-bg);
  color: var(--datatable-striped-color);
}

.table-editor.hover tbody tr {
  -webkit-transition: background-color 0.2s ease-in !important;
  transition: background-color 0.2s ease-in !important;
}

.table-editor.hover tbody tr:hover {
  background-color: var(--datatable-hover-bg) !important;
}

.table-editor.dark {
  --datatable-color: #fff;
  --datatable-border-color: #fff;
  --datatable-active-color: hsla(0, 0%, 100%, 0.2);
}

.table-editor.dark .form-check-input[type="checkbox"]:checked {
  background-color: transparent;
  border-color: #fff;
}

.table-editor.dark .table-editor__progress {
  opacity: 0.8;
}

.table-editor.dark tr .delete-button:active,
.table-editor.dark tr .delete-button:focus,
.table-editor.dark tr .discard-button:active,
.table-editor.dark tr .discard-button:focus,
.table-editor.dark tr .edit-button:active,
.table-editor.dark tr .edit-button:focus,
.table-editor.dark tr .popconfirm-toggle:active,
.table-editor.dark tr .popconfirm-toggle:focus,
.table-editor.dark tr .save-button:active,
.table-editor.dark tr .save-button:focus {
  color: #fff !important;
}

.table-editor.dark tr .delete-button:active i,
.table-editor.dark tr .delete-button:focus i,
.table-editor.dark tr .discard-button:active i,
.table-editor.dark tr .discard-button:focus i,
.table-editor.dark tr .edit-button:active i,
.table-editor.dark tr .edit-button:focus i,
.table-editor.dark tr .popconfirm-toggle:active i,
.table-editor.dark tr .popconfirm-toggle:focus i,
.table-editor.dark tr .save-button:active i,
.table-editor.dark tr .save-button:focus i {
  font-weight: 600 !important;
}

.table-editor.dark .select-wrapper .select-arrow,
.table-editor.dark .select-wrapper input {
  color: #fff;
}

.table-editor.dark .select-wrapper .form-notch-trailing,
.table-editor.dark .select-wrapper .form-outline .form-control:focus~.form-notch .form-notch-leading {
  border-color: #fbfbfb !important;
}

.table-editor.dark .select-wrapper .form-notch-leading,
.table-editor.dark .select-wrapper .form-notch-trailing,
.table-editor.dark .select-wrapper .form-noth-middle {
  border-color: #fbfbfb;
}

.table-editor.dark.striped {
  --datatable-striped-color: #fff;
  --datatable-accent-bg: hsla(0, 0%, 100%, 0.05);
}

.table-editor.dark.hover {
  --datatable-hover-bg: hsla(0, 0%, 100%, 0.2);
  --datatable-hover-color: #fff;
}

.table-editor.border-primary {
  --datatable-border-color: #1266f1;
}

.table-editor.border-secondary {
  --datatable-border-color: #b23cfd;
}

.table-editor.border-success {
  --datatable-border-color: #00b74a;
}

.table-editor.border-info {
  --datatable-border-color: #39c0ed;
}

.table-editor.border-warning {
  --datatable-border-color: #ffa900;
}

.table-editor.border-danger {
  --datatable-border-color: #f93154;
}

.table-editor.border-light {
  --datatable-border-color: #fbfbfb;
}

.table-editor.border-dark {
  --datatable-border-color: #262626;
}

.table-editor.border-white {
  --datatable-border-color: #fff;
}

.table-editor.border-black {
  --datatable-border-color: #000;
}

.table-editor.borderless {
  --datatable-border-color: transparent;
}

.table-editor.loading,
.table-editor.loading th {
  color: var(--datatable-muted-color);
}

.table-editor.loading .table-editor__sort-icon {
  display: none;
}

.table-editor.loading .select-wrapper .select-arrow,
.table-editor.loading .select-wrapper input {
  color: var(--datatable-muted-color);
}

.table-editor.loading .select-wrapper .form-notch-trailing,
.table-editor.loading .select-wrapper .form-outline .form-control:focus~.form-notch .form-notch-leading {
  border-color: var(--datatable-muted-color) !important;
}

.table-editor.loading .select-wrapper .form-notch-leading,
.table-editor.loading .select-wrapper .form-notch-trailing,
.table-editor.loading .select-wrapper .form-noth-middle {
  border-color: var(--datatable-muted-color);
}

.table-editor.edited-table {
  --datatable-color: #a1a1a1;
  pointer-events: none;
}

.table-editor.edited-table .edited-row {
  color: #262626;
  pointer-events: all;
}

.table-editor.edited-table .edited-row td {
  padding: 0.8rem 1.4rem;
}

.table-editor.edited-table .edited-row [data-mdb-field="action_buttons"] {
  padding: 1rem 1.4rem;
}

.table-editor.edited-table .edited-row input {
  font-size: 0.9rem;
  line-height: 1.5;
}

.table-editor.edited-table .ps__rail-x,
.table-editor.edited-table .ps__rail-y {
  pointer-events: all;
}