.wf_design_button {
  align-items: center;
  appearance: none;
  background: transparent;
  border: 0;
  border-radius: var(--design-border-radius);
  color: var(--design-text-secondary);
  cursor: pointer;
  display: inline-flex;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  gap: 4px;
  height: 32px;
  line-height: 21px;
  margin: 0;
  padding: 5px 8px;
  position: relative;
  text-decoration: none;
  transition:
    background-color 0.15s ease,
    color 0.15s ease;
  white-space: nowrap;
}

.wf_design_button:hover,
.wf_design_button:focus-visible {
  background: var(--design-bg-subtle);
  color: var(--design-text-secondary);
  outline: none;
  text-decoration: none;
}

.wf_design_button--ghost {
  background: transparent;
  color: var(--design-text-secondary);
}

.wf_design_button--primary {
  background: var(--design-primary);
  color: var(--design-text-on-primary);
}

.wf_design_button--primary:hover,
.wf_design_button--primary:focus-visible {
  background: var(--design-primary-hover);
  color: var(--design-text-on-primary);
}

.wf_design_button--success {
  background: var(--design-success);
  color: var(--design-white);
}

.wf_design_button--success:hover,
.wf_design_button--success:focus-visible {
  background: #278b1c;
  color: var(--design-white);
}

.wf_design_button--ghost.wf_design_button--success {
  background: transparent;
  color: var(--design-success);
}

.wf_design_button--ghost.wf_design_button--success:hover,
.wf_design_button--ghost.wf_design_button--success:focus-visible {
  background: var(--design-success);
  background: color-mix(in srgb, var(--design-success) 82%, transparent);
  color: var(--design-white);
}

.wf_design_button[data-wf-indicator="on"] {
  opacity: 0.85;
  pointer-events: none;
}

.wf_design_button .indicator-label {
  align-items: center;
  display: inline-flex;
  gap: 4px;
}

.wf_design_button--icon-only .indicator-label {
  gap: 0;
  justify-content: center;
  width: 100%;
}

.wf_design_button__icon {
  background: currentColor;
  display: inline-block;
  flex: 0 0 auto;
  height: 24px;
  mask-position: center;
  mask-repeat: no-repeat;
  mask-size: 24px 24px;
  -webkit-mask-position: center;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-size: 24px 24px;
  width: 24px;
}

.wf_design_button__icon--download {
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M12 16q-.2 0-.375-.063T11.3 15.7l-4-4q-.275-.275-.275-.7t.275-.7q.275-.275.7-.275t.7.275l2.3 2.3V5q0-.425.288-.713T12 4q.425 0 .713.288T13 5v7.6l2.3-2.3q.275-.275.7-.275t.7.275q.275.275.275.7t-.275.7l-4 4q-.15.15-.325.225T12 16Zm-6 4q-.825 0-1.413-.588T4 18v-2q0-.425.288-.713T5 15q.425 0 .713.288T6 16v2h12v-2q0-.425.288-.713T19 15q.425 0 .713.288T20 16v2q0 .825-.588 1.413T18 20H6Z'/%3E%3C/svg%3E");
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M12 16q-.2 0-.375-.063T11.3 15.7l-4-4q-.275-.275-.275-.7t.275-.7q.275-.275.7-.275t.7.275l2.3 2.3V5q0-.425.288-.713T12 4q.425 0 .713.288T13 5v7.6l2.3-2.3q.275-.275.7-.275t.7.275q.275.275.275.7t-.275.7l-4 4q-.15.15-.325.225T12 16Zm-6 4q-.825 0-1.413-.588T4 18v-2q0-.425.288-.713T5 15q.425 0 .713.288T6 16v2h12v-2q0-.425.288-.713T19 15q.425 0 .713.288T20 16v2q0 .825-.588 1.413T18 20H6Z'/%3E%3C/svg%3E");
}

.wf_design_button__icon--filter {
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M3 6h18v2H3V6Zm4 5h10v2H7v-2Zm3 5h4v2h-4v-2Z'/%3E%3C/svg%3E");
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M3 6h18v2H3V6Zm4 5h10v2H7v-2Zm3 5h4v2h-4v-2Z'/%3E%3C/svg%3E");
}

.wf_filters_toggle {
  align-items: center;
  background: transparent;
  border: 0;
  border-radius: var(--design-border-radius);
  color: var(--design-text-secondary);
  cursor: pointer;
  display: inline-flex;
  font-size: 14px;
  font-weight: 600;
  gap: 4px;
  height: 32px;
  line-height: 21px;
  margin: 0;
  padding: 5px 8px;
  position: relative;
  transition:
    background-color 0.15s ease,
    color 0.15s ease;
  z-index: 1;
}

.wf_filters_toggle:hover,
.wf_filters_toggle:focus-visible {
  background: var(--design-bg-subtle);
}

.wf_filters_toggle.is-open:not(.is-active) {
  background: var(--design-bg-subtle);
  color: var(--design-text-primary);
}

.wf_filters_toggle.is-active,
.wf_filters_toggle.is-active:hover,
.wf_filters_toggle.is-active:focus-visible {
  background: var(--design-accent-cream);
  color: var(--design-primary);
  z-index: 3;
}

.wf_filters_toggle.is-active:hover {
  background: var(--design-accent-cream);
  color: var(--design-primary);
}

.wf_filters_toggle__badge {
  align-items: center;
  background: var(--design-primary);
  border-radius: 100px;
  color: var(--design-white);
  display: inline-flex;
  font-size: 11px;
  font-weight: 700;
  height: 18px;
  justify-content: center;
  line-height: 18px;
  min-width: 18px;
  padding: 0 5px;
  position: absolute;
  right: -6px;
  top: -5px;
  z-index: 4;
}

.wf_filters_toggle.crm_leads_collapse_filters_active::before {
  content: none;
}

.dark_theme .wf_filters_toggle:hover,
.dark_theme .wf_filters_toggle:focus-visible {
  background: var(--design-bg-subtle);
  color: var(--design-text-primary);
}

.dark_theme .wf_filters_toggle.is-active,
.dark_theme .wf_filters_toggle.is-active:hover,
.dark_theme .wf_filters_toggle.is-active:focus-visible {
  background: var(--design-accent-cream);
  color: var(--design-button-hover);
}

.dark_theme .wf_filters_toggle.is-active:hover {
  background: var(--design-accent-cream);
  color: var(--design-button-hover);
}

.dark_theme .wf_design_button:hover,
.dark_theme .wf_design_button:focus-visible {
  background: var(--design-bg-subtle);
  color: var(--design-text-secondary);
}

.dark_theme .wf_design_button--ghost.wf_design_button--success:hover,
.dark_theme .wf_design_button--ghost.wf_design_button--success:focus-visible {
  background: var(--design-success);
  background: color-mix(in srgb, var(--design-success) 82%, transparent);
  color: var(--design-white);
}

.wf_filters_toggle.wf_btn_crm_leads_collapse_filters {
  display: inline-flex;
  margin: 0;
}

.page_general_table_by_blocks .page-header {
  align-items: center;
  display: flex;
  gap: 16px;
  justify-content: space-between;
  min-height: 64px;
  padding: 16px 16px 8px;
}

.page_general_table_by_blocks .main-container {
  padding: 0 16px 16px;
}

.page_general_table_by_blocks .breadcrumb {
  flex: 0 0 auto;
  margin: 0;
  min-width: 0;
  padding: 0;
}

.page_general_table_by_blocks .breadcrumb-item.active {
  align-items: center;
  color: var(--design-text-primary);
  display: flex;
  gap: 12px;
  min-width: 0;
}

.page_general_table_by_blocks .general_table_breadcrumb_text {
  color: var(--design-text-primary);
  flex: 0 0 auto;
  font-size: 20px;
  font-weight: 600;
  line-height: 34px;
}

.page_general_table_by_blocks .general_table_header_actions {
  align-items: center;
  display: flex;
  flex: 1 1 auto;
  gap: 4px;
  justify-content: flex-end;
  min-width: 0;
}

.page_general_table_by_blocks .general_table_dates {
  align-items: center;
  display: inline-flex;
  flex: 0 0 auto;
  gap: 4px;
}

.page_general_table_by_blocks .general_table_date {
  align-items: center;
  border-radius: var(--design-border-radius);
  color: var(--design-text-secondary);
  display: inline-flex;
  font-size: 14px;
  font-weight: 600;
  height: 32px;
  line-height: 21px;
  margin: 0;
  padding: 5px 8px;
  text-decoration: none;
  white-space: nowrap;
}

.page_general_table_by_blocks .general_table_date:hover,
.page_general_table_by_blocks .general_table_date:focus-visible {
  background: var(--design-bg-subtle);
  color: var(--design-text-primary);
  outline: none;
  text-decoration: none;
}

.page_general_table_by_blocks .general_table_date_active,
.page_general_table_by_blocks .general_table_date_active:hover,
.page_general_table_by_blocks .general_table_date_active:focus-visible,
.page_general_table_by_blocks .wf_filters_toggle.is-active,
.page_general_table_by_blocks .wf_filters_toggle.is-active:hover,
.page_general_table_by_blocks .wf_filters_toggle.is-active:focus-visible {
  background: var(--design-accent-cream);
  color: var(--design-primary);
}

.page_general_table_by_blocks .wf_btn_general_table_collapse_filters,
.page_general_table_by_blocks .wf_btn_download_report {
  flex: 0 0 auto;
}

.page_general_table_by_blocks
  .wf_filters_toggle.general_table_collapse_filters_active::before {
  content: none;
}

.dark_theme.page_general_table_by_blocks .page-header {
  background: var(--design-bg-page);
}

.dark_theme.page_general_table_by_blocks .wf_filters_toggle.is-active,
.dark_theme.page_general_table_by_blocks .wf_filters_toggle.is-active:hover,
.dark_theme.page_general_table_by_blocks .wf_filters_toggle.is-active:focus-visible {
  background: var(--design-primary-dark);
  color: var(--design-text-on-primary);
}

.dark_theme.page_general_table_by_blocks .general_table_date_active,
.dark_theme.page_general_table_by_blocks .general_table_date_active:hover,
.dark_theme.page_general_table_by_blocks .general_table_date_active:focus-visible {
  background: var(--design-primary-dark);
  color: var(--design-text-on-primary);
}

.dark_theme.page_general_table_by_blocks .wf_filters_toggle__badge {
  background: var(--design-button-hover);
  color: var(--design-bg-input);
}

@media screen and (max-width: 1199.98px) {
  .page_general_table_by_blocks .page-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
    padding: 12px 16px 8px;
  }

  .page_general_table_by_blocks .main-container {
    padding-inline: 8px;
  }

  .page_general_table_by_blocks .page-header {
    background: var(--design-bg-page);
  }

  .page_general_table_by_blocks .general_table_header_actions {
    flex-wrap: nowrap;
    justify-content: flex-start;
    width: 100%;
  }

  .page_general_table_by_blocks .general_table_dates {
    display: none;
  }

  .page_general_table_by_blocks .wf_btn_general_table_collapse_filters {
    order: 1;
  }

  .page_general_table_by_blocks .general_table_period {
    order: 2;
  }

  .page_general_table_by_blocks .wf_btn_download_report {
    order: 3;
    padding-inline: 8px;
    width: 32px;
  }

  .page_general_table_by_blocks
    .wf_btn_download_report
    .indicator-label
    > span:not(.wf_design_button__icon) {
    display: none;
  }

  .page_general_table_by_blocks
    .wf_btn_download_report
    .indicator-label
    > .wf_design_button__icon {
    display: inline-block;
  }

  .page_general_table_by_blocks .breadcrumb-item.active {
    flex-wrap: wrap;
  }

  .wf_filters_toggle {
    flex: 0 0 auto;
    max-width: 100%;
    white-space: nowrap;
    width: auto;
  }

  .wf_filters_toggle__icon {
    flex: 0 0 auto;
  }

  .wf_filters_toggle__label {
    flex: 0 1 auto;
    min-width: 0;
  }

  .wf_filters_toggle__badge {
    flex: 0 0 auto;
  }
}

@media screen and (max-width: 575.98px) {
  .page_general_table_by_blocks .page-header {
    min-width: 320px;
  }

  .page_general_table_by_blocks .general_table_header_actions {
    gap: 4px;
    min-width: 288px;
  }

  .page_general_table_by_blocks .general_table_period {
    flex: 1 1 auto;
    min-width: 0;
  }

  .page_general_table_by_blocks .general_table_period .form-control,
  .page_general_table_by_blocks
    .general_table_period
    .flatpickr-input.form-control,
  .page_general_table_by_blocks
    .general_table_period.is-filled
    .form-control,
  .page_general_table_by_blocks
    .general_table_period.is-filled
    .flatpickr-input.form-control {
    width: 100%;
  }

}

