.dct-table-wrap {
  width: 100%;
  margin: 24px 0;
  overflow-x: auto;
  box-sizing: border-box;
}

.dct-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 12px;
  padding: 12px;
  border: 1px solid #e5e5e5;
  border-radius: 6px;
  background: #fcfcfc;
  transition: all 0.3s ease;
  box-sizing: border-box;
}

.dct-filter-action {
  display: flex;
  align-items: flex-end;
  margin-left: auto;
  min-width: fit-content;
}

.dct-table-wrap .dct-toggle-past-button {
  appearance: none;
  border: 1px solid #2f2f2f !important;
  border-radius: 999px;
  background-color: #1c1c1c !important;
  background-image: linear-gradient(180deg, #3f3f3f 0%, #171717 100%) !important;
  color: #f5f5f5 !important;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.01em;
  min-height: 44px;
  padding: 11px 18px !important;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 10px 24px rgba(17, 17, 17, 0.12);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
  text-decoration: none !important;
}

.dct-table-wrap .dct-toggle-past-button:hover,
.dct-table-wrap .dct-toggle-past-button:focus,
.dct-table-wrap .dct-toggle-past-button:focus-visible {
  background-color: #262626 !important;
  background-image: linear-gradient(180deg, #4c4c4c 0%, #1d1d1d 100%) !important;
  border-color: #111 !important;
  color: #fff !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 14px 28px rgba(17, 17, 17, 0.16);
  outline: none;
}

.dct-table-wrap .dct-toggle-past-button:active {
  background-color: #151515 !important;
  background-image: linear-gradient(180deg, #2f2f2f 0%, #101010 100%) !important;
  color: #fff !important;
  transform: translateY(1px);
}

.dct-filter-label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 180px;
  font-weight: 700;
  margin-bottom: 0;
  color: #000;
  font-size: 14px;
}

.dct-filter-label select {
  min-height: 40px;
  border: 1px solid #d7d7d7;
  border-radius: 6px;
  font-size: 15px;
  background: #fcfcfc;
  color: #111;
  transition: all 0.3s ease;
  box-sizing: border-box;
  padding: 6px 10px;
}

.dct-filter-label select:not([multiple]) {
  padding-right: 38px;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 14 14'%3E%3Cpath d='M3.25 5.25L7 9l3.75-3.75' fill='none' stroke='%23111' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 14px;
}

.dct-filter-label select[multiple] {
  min-height: 124px;
  padding: 8px;
  background: #fff;
}

.dct-filter-label select[multiple] option {
  padding: 7px 10px;
  border-radius: 6px;
  margin-bottom: 4px;
}

.dct-filter-label select[multiple] option:checked {
  background: #111 linear-gradient(0deg, #111, #111);
  color: #fff;
}

.dct-filter-label select:focus {
  border-color: #e5a8a0;
  box-shadow: 0 0 0 3px rgba(229, 168, 160, 0.2);
  outline: none;
  background: #fff;
}

.dct-filter-help {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  font-weight: 500;
  color: #555;
  line-height: 1.35;
}

.dct-filter-label .ts-wrapper {
  width: 100%;
}

.dct-filter-label .ts-wrapper.multi .ts-control {
  padding-right: 32px;
}

.dct-filter-label .ts-wrapper.multi .ts-control::after {
  content: '';
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 14px;
  height: 14px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 14 14'%3E%3Cpath d='M3.25 5.25L7 9l3.75-3.75' fill='none' stroke='%23111' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: 14px;
  pointer-events: none;
}

.dct-filter-label .ts-control {
  min-height: 44px;
  border: 1px solid #d7d7d7;
  border-radius: 6px;
  background: #fff;
  box-shadow: none;
  padding: 6px;
}

.dct-filter-label .ts-control:focus,
.dct-filter-label .ts-wrapper.focus .ts-control {
  border-color: #e5a8a0;
  box-shadow: 0 0 0 3px rgba(229, 168, 160, 0.2);
}

.dct-filter-label .ts-wrapper.multi .ts-control > div {
  background: #111;
  color: #fff;
  border: 0;
  border-radius: 4px;
  padding: 3px 8px;
}

.dct-filter-label .ts-wrapper .ts-dropdown {
  border: 1px solid #d7d7d7;
  border-radius: 6px;
  overflow: hidden;
}

.dct-filter-label .ts-wrapper .ts-dropdown .active {
  background: rgba(229, 168, 160, 0.2);
  color: #111;
}

.dct-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid #e7e7e7;
  border-radius: 6px;
  overflow: hidden;
  background: #fcfcfc;
  color: #111;
  font-size: 15px;
  line-height: 1.5;
  transition: all 0.3s ease;
  box-sizing: border-box;
}

.dct-table thead th {
  background: #111;
  color: #fff;
  font-size: 13px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.dct-table th,
.dct-table td {
  border-bottom: 1px solid #ededed;
  padding: 11px 12px;
  vertical-align: top;
  text-align: left;
}

.dct-table .dct-col-data.dct-type-text {
  white-space: nowrap;
}

.dct-table tbody tr {
  transition: background 0.3s ease;
}

.dct-table tbody tr:nth-child(even) {
  background: #fafafa;
}

.dct-table tbody tr:hover {
  background: rgba(229, 168, 160, 0.12);
}

.dct-table tbody tr:last-child td {
  border-bottom: none;
}

.dct-table .dct-no-results td,
.dct-table .dct-empty-row td {
  text-align: center;
  font-weight: 700;
}

.dct-table a {
  color: #111;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.dct-table a:hover,
.dct-table a:focus {
  color: #000;
  text-decoration-thickness: 2px;
}

.dct-widget .dct-table {
  font-size: 14px;
}

.dct-widget .dct-table th,
.dct-widget .dct-table td {
  padding: 8px 10px;
}

@media (max-width: 767px) {
  .dct-filter-action {
    margin-left: 0;
    width: 100%;
  }

  .dct-table-wrap .dct-toggle-past-button {
    width: 100%;
  }

  .dct-table {
    font-size: 14px;
  }

  .dct-table th,
  .dct-table td {
    padding: 8px 10px;
  }

  .dct-filter-label {
    min-width: 100%;
  }
}
