 

:where(#baseModal, #pushes-tab) .crm-dt-grid > .crm-dt-col {
  min-width: 0;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}
:where(#baseModal, #pushes-tab) .custom-select-wrapper {
  position: relative;
  width: 100%;
}

:where(#baseModal, #pushes-tab) .transparent-dropdown {
  overflow: hidden;
  box-sizing: border-box;
  padding: 2px;
  border-radius: 8px;
}
:where(#baseModal, #pushes-tab) .transparent-dropdown .dropdown-toggle {
  transition: var(--crm-hover-transition);
}
:where(#baseModal, #pushes-tab) .transparent-dropdown .dropdown-toggle:hover,
:where(#baseModal, #pushes-tab) .transparent-dropdown .dropdown-toggle:focus-visible {
  background: #f8fafc;
  border-color: #e5e7eb;
  transform: translateY(-1px) scale(1.01);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
}

:where(#baseModal, #pushes-tab) .custom-select-wrapper select {
  appearance: none;
  -webkit-appearance: none;
  width: 100%;
  padding: 8px 30px 8px 12px;
  border: 1px solid #cbd5e0;
  border-radius: 6px;
  background-color: white;
}

:where(#baseModal, #pushes-tab) .select-arrow {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  transition: var(--crm-hover-transition);
}

:where(#baseModal, #pushes-tab) .custom-select-wrapper select:focus + .select-arrow {
  transform: translateY(-50%) rotate(180deg);
}

#pushes-tab .filter-condition {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  background: #f8fafc;
  border-radius: 6px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 20px 14px;
  background: #f8fafc;
  position: relative;
  padding-top: 28px;
}

:where(#baseModal, #pushes-tab) .filter-condition {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 20px 14px;
  position: relative;
  padding-top: 28px;
}

:where(#baseModal, #pushes-tab) .filter-condition-head {
  display: flex;
  width: 100%;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px;
}

:where(#baseModal, #pushes-tab) .filter-condition:last-child {
  margin-bottom: 0;
}

:where(#baseModal, #pushes-tab) .condition-type-wrapper {
  flex: 1;
  position: relative;
  min-width: 200px;
  background: var(--bg-white);
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 8px 12px;
  transition: var(--crm-hover-transition);
}

:where(#baseModal, #pushes-tab) .condition-value-wrapper {
  margin-left: 10px;
}

:where(#baseModal, #pushes-tab) .dropdown-center .dropdown-toggle,
:where(#baseModal, #pushes-tab) .condition-value-wrapper > * {
  width: 100% !important;
  box-sizing: border-box;
}

:where(#baseModal, #pushes-tab) .combined-select-container {
  width: 100%;
  min-width: 100%;
}

:where(#baseModal, #pushes-tab) .filter-condition > .remove-condition-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: none;
  background: none;
  color: #718096;
  cursor: pointer;
  border-radius: 4px;
  margin-left: 0;
  position: absolute;
  top: 6px;
  right: 6px;
  z-index: 3;
}

:where(#baseModal, #pushes-tab) .remove-condition-btn:hover {
  background: #f1f5f9;
  color: #e53e3e;
}

:where(#baseModal, #pushes-tab) #add-condition-btn,
:where(#baseModal, #pushes-tab) #add-message-btn,
:where(#baseModal, #pushes-tab) #add-push-button-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  color: #4a5568;
  font-size: 13px;
  border-radius: 6px;
  cursor: pointer;
  width: 100%;
  justify-content: center;
}

:where(#baseModal, #pushes-tab) .push-buttons {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 15px 0;
}

:where(#baseModal, #pushes-tab) .push-button-row {
  width: 100%;
  padding: 10px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #f8fafc;
}

:where(#baseModal, #pushes-tab) .push-button-row__grid {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 10px;
  align-items: end;
}

:where(#baseModal, #pushes-tab) #createPushForm .messages-container {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 10px;
}
:where(#baseModal, #pushes-tab) #createPushForm .message-block {
  border: 1px solid #e2e8f0;
  background: #ffffff;
  border-radius: 12px;
  padding: 12px;
  position: relative;
}
:where(#baseModal, #pushes-tab) #createPushForm .message-block__title,
:where(#baseModal, #pushes-tab) #createPushForm .form-label {
  font-size: 13px;
  font-weight: 700;
  color: #334155;
  margin: 0 0 10px 0;
  display: flex;
  align-items: center;
  gap: 8px;
}
:where(#baseModal, #pushes-tab) #createPushForm .message-actions {
  margin-top: 10px;
  display: flex;
  justify-content: flex-end;
}

:where(#baseModal, #pushes-tab) #createPushForm .message-remove-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: none;
  background: none;
  color: #718096;
  cursor: pointer;
  border-radius: 4px;
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 3;
}
:where(#baseModal, #pushes-tab) #createPushForm .message-remove-btn:hover {
  background: #f1f5f9;
  color: #e53e3e;
}
:where(#baseModal, #pushes-tab) #createPushForm .message-remove-btn.is-hidden {
  display: none;
}

:where(#baseModal, #pushes-tab) #createPushForm button[data-action="add-push-button"] {
  width: 100%;
  justify-content: center;
}

:where(#baseModal, #pushes-tab) #createPushForm .push-btn-remove {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: none;
  background: none;
  color: #718096;
  cursor: pointer;
  border-radius: 4px;
  padding: 0;
}
:where(#baseModal, #pushes-tab) #createPushForm .push-btn-remove:hover {
  background: #f1f5f9;
  color: #e53e3e;
}
:where(#baseModal, #pushes-tab) #createPushForm .push-btn-remove.is-hidden {
  display: none;
}

@media (max-width: 640px) {
  :where(#baseModal, #pushes-tab) .push-button-row__grid {
    grid-template-columns: 1fr;
  }
}

:where(#baseModal, #pushes-tab) #add-condition-btn:hover,
:where(#baseModal, #pushes-tab) #add-message-btn:hover,
:where(#baseModal, #pushes-tab) #add-push-button-btn:hover {
  transform: translateY(-1px) scale(1.02);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
  background: #edf2f7;
}

@media (max-width: 767px) {
  :where(#baseModal, #pushes-tab) .filter-condition-head {
    flex-direction: column;
    align-items: stretch;
  }
  :where(#baseModal, #pushes-tab) .condition-value-wrapper {
    margin-left: 0;
    width: 100%;
  }
  :where(#baseModal, #pushes-tab) .condition-type-wrapper {
    min-width: 0;
  }
}

@media (min-width: 768px) {
  :where(#baseModal, #pushes-tab) .filter-condition-head {
    flex-direction: row;
  }
  :where(#baseModal, #pushes-tab) .filter-condition-head > .w-100 {
    width: auto !important;
    flex: 1 1 0;
  }
  :where(#baseModal, #pushes-tab) .condition-value-wrapper {
    margin-left: 10px;
  }
}

:where(#baseModal, #pushes-tab) .condition-type-wrapper:hover,
:where(#baseModal, #pushes-tab) .condition-value-wrapper:hover {
  border-color: #cbd5e0;
}

:where(#baseModal, #pushes-tab) .condition-type-wrapper:focus-within,
:where(#baseModal, #pushes-tab) .condition-value-wrapper:focus-within {
  border-color: #4299e1;
  box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.1);
}

:where(#baseModal, #pushes-tab) .condition-type {
  width: 100%;
  border: none;
  background: transparent;
  font-size: 13px;
  color: #4a5568;
  appearance: none;
  outline: none;
}

:where(#baseModal, #pushes-tab) .condition-type-arrow {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
}

:where(#baseModal, #pushes-tab) .condition-type-arrow {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  transition: var(--crm-hover-transition);
}

:where(#baseModal, #pushes-tab) .condition-type-wrapper select {
  width: 100%;
  border: none;
  background: transparent;
  outline: none;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  color: inherit;
  font-size: inherit;
}

:where(#baseModal, #pushes-tab) .condition-type-wrapper.active {
  border-color: #4a5568;
  box-shadow: 0 0 0 2px rgba(74, 85, 104, 0.1);
}

:where(#baseModal, #pushes-tab) .condition-type-wrapper.active .condition-type-arrow {
  transform: translateY(-50%) rotate(180deg);
}

:where(#baseModal, #pushes-tab) .condition-type-wrapper:hover:not(.active) {
  border-color: #a0aec0;
  background-color: #f8fafc;
}

:where(#baseModal, #pushes-tab) #createPushForm .form-section {
  padding: 5px 0;
  box-shadow: none;
}
:where(#baseModal, #pushes-tab) #createPushForm .form-section:last-child {
  border-bottom: none;
}
:where(#baseModal, #pushes-tab) #createPushForm .form-section h3 {
  margin: 0 0 10px 0;
  font-size: 14px;
  font-weight: 700;
  color: #334155;
}

:where(#baseModal, #pushes-tab) #createPushForm .form-group label {
  display: flex;
  align-items: center;
  gap: 3px;
  font-weight: 600;
  color: #334155;
  margin-bottom: 6px;
}

:where(#baseModal, #pushes-tab) #createPushForm .form-group input[type="text"],
:where(#baseModal, #pushes-tab) #createPushForm .form-group .crm-input,
:where(#baseModal, #pushes-tab) #createPushForm .form-group textarea,
:where(#baseModal, #pushes-tab) #createPushForm .message-block textarea,
:where(#baseModal, #pushes-tab) #createPushForm input.form-control,
:where(#baseModal, #pushes-tab) #createPushForm textarea.form-control {
  display: block;
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: var(--bg-white);
  color: #0f172a;
  font-size: 14px;
  line-height: 1.2;
  box-sizing: border-box;
}

:where(#baseModal, #pushes-tab) #createPushForm input[data-bulk-selected-display] {
  pointer-events: none;
  user-select: none;
  caret-color: transparent;
}

:where(#baseModal, #pushes-tab) #createPushForm input[data-stage-display] {
  pointer-events: none;
  user-select: none;
  caret-color: transparent;
}

:where(#baseModal, #pushes-tab) #createPushForm textarea {
  min-height: 92px;
  height: auto;
  resize: vertical;
}

:where(#baseModal, #pushes-tab) #createPushForm .form-group input[type="text"]:focus,
:where(#baseModal, #pushes-tab) #createPushForm .form-group .crm-input:focus,
:where(#baseModal, #pushes-tab) #createPushForm .form-group textarea:focus,
:where(#baseModal, #pushes-tab) #createPushForm textarea.form-control:focus,
:where(#baseModal, #pushes-tab) #createPushForm input.form-control:focus {
  outline: none;
  border-color: #cbd5e1;
  box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.1);
}


:where(#baseModal, #pushes-tab) .lead-ids-picker__row {
  display: flex;
  gap: 8px;
  align-items: center;
}
:where(#baseModal, #pushes-tab) .lead-ids-picker__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}
:where(#baseModal, #pushes-tab) .lead-ids-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  color: #0f172a;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 12px;
  cursor: pointer;
  transition: var(--crm-hover-transition);
}
:where(#baseModal, #pushes-tab) .lead-ids-chip:hover {
  border-color: rgba(91, 33, 182, 0.32);
  background: rgba(91, 33, 182, 0.06);
  transform: translateY(-1px);
}
:where(#baseModal, #pushes-tab) .lead-ids-chip__x {
  font-weight: 700;
  opacity: 0.7;
}

:where(#baseModal, #pushes-tab) #createPushForm .info-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  color: #64748b;
}

:where(#baseModal, #pushes-tab) .tooltip-bubble {
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
}


:where(#baseModal, #pushes-tab) .crm-dt-picker {
  width: 100%;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  border-radius: 12px;
  padding: 10px;
}
:where(#baseModal, #pushes-tab) .crm-dt-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 10px;
  width: 100%;
}
@media (max-width: 520px) {
  :where(#baseModal, #pushes-tab) .crm-dt-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}
@supports (-webkit-touch-callout: none) {
  :where(#baseModal, #pushes-tab) .crm-dt-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  :where(#baseModal, #pushes-tab) .crm-dt-grid > .crm-dt-col {
    display: flex;
    flex-direction: column;
    min-width: 0;
  }
  :where(#baseModal, #pushes-tab) .crm-dt-input[type="date"],
  :where(#baseModal, #pushes-tab) .crm-dt-input[type="time"] {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    max-width: 100%;
    max-inline-size: 100%;
    min-inline-size: 0;
    min-width: 0;
  }
}
:where(#baseModal, #pushes-tab) .crm-dt-label {
  font-size: 12px;
  color: rgba(15, 23, 42, 0.65);
  margin-bottom: 6px;
}
:where(#baseModal, #pushes-tab) .crm-dt-actions {
  display: flex;
  gap: 8px;
  margin-top: 10px;
  flex-wrap: wrap;
}
:where(#baseModal, #pushes-tab) .crm-dt-actions .action-btn {
  flex: 1 1 auto;
  min-width: 160px;
  justify-content: center;
}
:where(#baseModal, #pushes-tab) .crm-dt-hint {
  margin-top: 8px;
}


:where(#baseModal, #pushes-tab) .crm-dt-input[type="date"],
:where(#baseModal, #pushes-tab) .crm-dt-input[type="time"] {
  display: block;
  width: 100%;
  max-width: 100%;
  max-inline-size: 100%;
  min-inline-size: 0;
  min-width: 0;
  min-height: 40px;
  padding: 8px 10px;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  background: #ffffff;
  color: #0f172a;
  font-size: 13px;
  box-sizing: border-box;
  transition: var(--crm-hover-transition);
}
:where(#baseModal, #pushes-tab) .crm-dt-input[type="date"]:hover,
:where(#baseModal, #pushes-tab) .crm-dt-input[type="time"]:hover {
  border-color: rgba(91, 33, 182, 0.25);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}
:where(#baseModal, #pushes-tab) .crm-dt-input[type="date"]:focus,
:where(#baseModal, #pushes-tab) .crm-dt-input[type="time"]:focus {
  outline: none;
  border-color: rgba(91, 33, 182, 0.45);
  box-shadow: 0 0 0 3px rgba(196, 181, 253, 0.25);
}


:where(#baseModal, #pushes-tab) .lead-ids-dd .lead-ids-dd-btn {
  min-height: 40px;
  border-radius: 10px;
  border: 1px solid #e5e7eb;
  background: #ffffff;
  font-size: 13px;
  padding: 8px 10px;
  transition: var(--crm-hover-transition);
}
:where(#baseModal, #pushes-tab) .lead-ids-dd .lead-ids-dd-btn:hover,
:where(#baseModal, #pushes-tab) .lead-ids-dd .lead-ids-dd-btn:focus-visible {
  background: #f8fafc;
  border-color: rgba(91, 33, 182, 0.25);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
}

#pushes-tab .dropdown-menu .pipeline-header {
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid #dee2e6;
  transition: var(--crm-hover-transition);
  padding: 8px;
}

#pushes-tab .stage-item-push-modal {
  display: flex;
  padding: 6px 12px;
  gap: 10px;
  margin-left: 20px;
  border-radius: 4px;
  transition: var(--crm-hover-transition);
  justify-content: flex-start;
  align-items: center;
}

#pushes-tab .stage-item:hover {
  background-color: #f8f9fa;
}

:where(#baseModal, #pushes-tab) #createPushForm .form-check-input {
  accent-color: var(--crm-accent, #5b21b6);
}
:where(#baseModal, #pushes-tab) #createPushForm .form-check-input:checked {
  background-color: var(--crm-accent, #5b21b6);
  border-color: var(--crm-accent, #5b21b6);
}

:where(#baseModal, #pushes-tab) #createPushForm .message-pin-check {
  margin-top: 10px;
}

:where(#baseModal, #pushes-tab) #createPushForm .no-reply-duration {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
}
:where(#baseModal, #pushes-tab) #createPushForm .no-reply-duration__part {
  position: relative;
}
:where(#baseModal, #pushes-tab) #createPushForm .no-reply-duration__part .form-control {
  padding-right: 30px;
}
:where(#baseModal, #pushes-tab) #createPushForm .no-reply-duration__suffix {
  position: absolute;
  top: 50%;
  right: 10px;
  transform: translateY(-50%);
  font-size: 12px;
  color: #94a3b8;
  pointer-events: none;
  user-select: none;
  line-height: 1;
}

#pushes-tab .toggle-stages {
  padding: 0;
  margin-left: auto;
  color: #6c757d;
}

#pushes-tab .search-input {
  border-radius: 20px;
  padding: 8px 15px;
}

#pushes-tab .selected-items-count::after {
  display: none;
}

#pushes-tab .pipeline-item {
  position: relative;
}

#pushes-tab .pipeline-header .dropdown-toggle-split {
  width: 34px;
  min-width: 34px;
  padding: 0;
  background-color: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
}

#pushes-tab .pipeline-checkbox {
  width: 1.1em;
  height: 1.1em;
}

#pushes-tab .pipeline-checkbox {
  accent-color: var(--crm-accent, #5b21b6);
}
#pushes-tab .pipeline-checkbox:checked {
  background-color: var(--crm-accent, #5b21b6);
  border-color: var(--crm-accent, #5b21b6);
}

#pushes-tab .pipeline-header .dropdown-toggle-split:focus {
  box-shadow: none;
}

#pushes-tab .pipeline-header .dropdown-toggle-split::after {
  display: inline-block;
  margin-left: 0;
}

#pushes-tab .crm-modal .btn.active,
#pushes-tab .crm-modal .btn:hover.active,
#pushes-tab .crm-modal .btn:hover {
  border-color: transparent !important;
}

#pushes-tab .stage-item {
  padding: 6px 12px;
  border-radius: 4px;
  transition: var(--crm-hover-transition);
  display: flex;
  align-items: center;
  gap: 8px;
}

#pushes-tab .stage-item:hover {
  background-color: #f8f9fa;
}

#pushes-tab .form-check-input {
  margin-top: 0;
  flex-shrink: 0;
}

#pushes-tab .toggle-stages {
  margin-left: auto;
  padding: 0;
  color: #6c757d;
}

#pushes-tab .multi-level-multiselect {
  position: relative;
  width: 100%;
}

#pushes-tab .multi-level-multiselect .dropdown-menu {
  width: 100% !important;
  left: 0 !important;
  right: 0 !important;
  transform: none !important;
  margin-top: 2.5rem !important;
  pointer-events: auto !important;
  will-change: transform;
  max-width: 100%;
  box-sizing: border-box;
}

#pushes-tab .stage-item {
  cursor: pointer;
}

#pushes-tab .pipeline-item,
#pushes-tab .pipeline-header,
#pushes-tab .stage-item {
  pointer-events: auto !important;
}

#pushes-tab .stages-container-push-modal {
  border-left: 2px solid #dee2e6;
}

#pushes-tab .pipeline-dropdown-menu {
  max-width: 100% !important;
  box-sizing: border-box;
  overflow-x: hidden;
}
#pushes-tab .pipeline-dropdown-menu .pipelines-container,
#pushes-tab .pipeline-dropdown-menu .pipeline-item,
#pushes-tab .pipeline-dropdown-menu .stages-container,
#pushes-tab .pipeline-dropdown-menu .stage-item {
  max-width: 100%;
  box-sizing: border-box;
}
#pushes-tab .pipeline-dropdown-menu .pipeline-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  max-width: 100%;
}
#pushes-tab .pipeline-dropdown-menu .pipeline-name,
#pushes-tab .pipeline-dropdown-menu .stage-content {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
#pushes-tab .pipeline-dropdown-menu .stages-container {
  width: 100%;
  overflow-x: hidden;
}
#pushes-tab .pipeline-dropdown-menu .dropdown-search input.form-control {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

:where(#baseModal, #pushes-tab) #createPushForm .transparent-dropdown-menu {
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 6px;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
  max-height: 320px;
  overflow: auto;
}

:where(#baseModal, #pushes-tab) #createPushForm .dropdown-menu .dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 8px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: var(--crm-hover-transition);
}
:where(#baseModal, #pushes-tab) #createPushForm .dropdown-menu .dropdown-item:hover {
  background: var(--primary-light);
  color: #4c1d95;
  border: 1px solid #5b21b680;
}
:where(#baseModal, #pushes-tab) #createPushForm .dropdown-menu .dropdown-item .form-check-input {
  width: 1.1em;
  height: 1.1em;
  margin-top: 0;
  flex-shrink: 0;
  accent-color: var(--crm-accent, #5b21b6);
}

@media (max-width: 767px) {
  #pushes-tab .filter-condition-head {
    flex-direction: column;
    align-items: stretch;
  }
  #pushes-tab .condition-value-wrapper {
    margin-left: 0;
    width: 100%;
  }
}

@media (min-width: 768px) {
  #pushes-tab .filter-condition-head {
    flex-direction: row;
  }
  #pushes-tab .filter-condition-head > .w-100 {
    width: auto !important;
    flex: 1 1 0;
  }
  #pushes-tab .condition-value-wrapper {
    margin-left: 10px;
  }
}

#pushes-tab .crm-modal .form-section .form-group label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: #334155;
  margin-bottom: 6px;
}
#pushes-tab .crm-modal .form-section .form-group input[type="text"],
#pushes-tab .crm-modal .form-section .form-group .crm-input,
#pushes-tab .crm-modal .form-section .form-group textarea {
  display: block;
  width: 100%;
  height: 44px;
  padding: 10px 12px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: var(--bg-white);
  color: #0f172a;
  font-size: 14px;
  line-height: 1.2;
  box-sizing: border-box;
}
#pushes-tab .crm-modal .form-section .form-group textarea {
  min-height: 92px;
  height: auto;
  resize: vertical;
}
#pushes-tab .crm-modal .form-section .form-group input[type="text"]:focus,
#pushes-tab .crm-modal .form-section .form-group .crm-input:focus,
#pushes-tab .crm-modal .form-section .form-group textarea:focus {
  outline: none;
  border-color: #cbd5e1;
  box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.1);
}

#pushes-tab .crm-modal .info-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  color: #64748b;
}
#pushes-tab .crm-modal .tooltip-bubble {
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
}

#pushes-tab .crm-modal__body {
  scrollbar-width: none;
  -ms-overflow-style: none;
}
#pushes-tab .crm-modal__body::-webkit-scrollbar {
  width: 0;
  height: 0;
}

#pushes-tab .crm-modal__body .push-groups-toolbar .filter-menu {
  scrollbar-width: none;
}
#pushes-tab .crm-modal__body .push-groups-toolbar .filter-menu::-webkit-scrollbar {
  width: 0;
  height: 0;
}

#createPushForm .filter-condition {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 12px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 20px 14px;
  padding-top: 40px;
}

#createPushForm .filter-condition .filter-condition-head {
  padding-top: 0;
  display: flex;
  width: 100%;
  align-items: stretch;
  gap: 10px;
  flex-wrap: wrap;
}

#createPushForm .filter-condition-head > .w-100 {
  min-width: 220px;
}

#createPushForm .condition-value-wrapper {
  margin-left: 0;
}

#createPushForm .dropdown-center .dropdown-toggle,
#createPushForm .condition-value-wrapper > * {
  width: 100% !important;
  box-sizing: border-box;
}

@media (min-width: 768px) {
  #createPushForm .filter-condition-head {
    flex-direction: row;
    align-items: center;
  }
}

@media (max-width: 767px) {
  #createPushForm .filter-condition-head {
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
  }
  #createPushForm .condition-value-wrapper {
    margin-left: 0;
    width: 100%;
  }
  #createPushForm .dropdown-center .dropdown-toggle {
    padding: 8px 10px;
    min-height: 38px;
    line-height: 1.2;
  }
}

.push-button-link {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(91, 33, 182, 0.08);
  border: 1px solid rgba(91, 33, 182, 0.2);
  color: #5b21b6;
  font-size: 12px;
  text-decoration: none;
  white-space: nowrap;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
}

.push-button-link:hover {
  background: rgba(91, 33, 182, 0.14);
  border-color: rgba(91, 33, 182, 0.3);
  color: #4c1d95;
}

.push-button-more {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.06);
  border: 1px solid rgba(15, 23, 42, 0.12);
  color: rgba(15, 23, 42, 0.7);
  font-size: 12px;
}

.push-details-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 10px 12px 0;
  margin-bottom: 6px;
}

.crm-modal {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 1200;
}

.crm-modal.open {
  display: block;
  z-index: 1200;
}

.crm-modal#push-details-modal,
.crm-modal#push-details-modal.open {
  z-index: 1300;
}

.crm-modal#all-push-groups-modal,
.crm-modal#all-push-groups-modal.open {
  z-index: 1200;
}

.crm-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgb(0 0 0 / 67%);
}

.crm-modal__dialog {
  position: absolute;
  right: 20px;
  top: 20px;
  bottom: 20px;
  width: 520px;
  max-width: calc(100% - 40px);
  background: var(--bg-white);
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  display: flex;
  flex-direction: column;
}

.crm-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
}

.crm-modal__title {
  font-weight: 700;
  color: var(--text-strong);
}

.crm-modal__body {
  padding: 12px 14px;
  overflow-y: auto;
  overflow-x: visible;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: #5b21b6 transparent;
}

.crm-modal__body::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

.crm-modal__body::-webkit-scrollbar-thumb {
  background-color: #5b21b6;
  border-radius: 8px;
  background-clip: padding-box;
  border: 2px solid transparent;
}

.crm-modal__body::-webkit-scrollbar-track {
  background: transparent;
}

.crm-modal.crm-modal--confirm .crm-modal__dialog {
  left: 50%;
  top: 50%;
  right: auto;
  bottom: auto;
  transform: translate(-50%, -50%);
  width: min(92vw, 420px);
  max-width: calc(100% - 32px);
  max-height: min(80vh, 420px);
}

.crm-modal.crm-modal--confirm .crm-modal__header {
  padding: 10px 14px;
}

.crm-modal.crm-modal--confirm .crm-modal__title {
  font-size: 15px;
}

.crm-modal.crm-modal--confirm .crm-modal__body {
  padding: 12px 14px;
  font-size: 13px;
  line-height: 1.5;
  overflow: auto;
}

.crm-modal.crm-modal--confirm .crm-modal__footer {
  padding: 10px 14px;
  border-top: 1px solid var(--border);
}

.crm-modal.crm-modal--confirm .confirm-message {
  color: var(--text-strong);
}

@media (max-height: 540px) {
  .crm-modal.crm-modal--confirm .crm-modal__dialog {
    top: 50%;
    transform: translate(-50%, -50%);
    max-height: min(88vh, 420px);
  }
}

#baseModal .modal-content {
  -ms-overflow-style: none;
  scrollbar-width: none;
  width: min(640px, 92vw);
  max-width: 92vw;
  box-sizing: border-box;
}

#baseModal .modal-content::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

#baseModal .modal-body {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

#baseModal .modal-body::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

#baseModal .modal-content.modal--narrow {
  width: min(520px, 92vw);
}

#baseModal .modal-content.modal--wide {
  width: min(880px, 95vw);
}

#createPushForm .form-section h3,
#createPushForm .form-section .section-label {
  font-size: 16px;
  font-weight: 600;
}
#createPushForm .form-section .section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.message-block {
  position: relative;
  transition: var(--crm-hover-transition);
}

.message-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 10px;
}

.action-btn.remove-message-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  color: var(--red-btn-color);
  background-color: transparent;
  border: 1px solid var(--red-btn-color);
  justify-content: center;
}

.action-btn.remove-message-btn:hover {
  background-color: var(--red-btn-soft-bg);
}

.action-btn.remove-message-btn svg {
  stroke: var(--red-btn-color);
}


:where(#baseModal, #pushes-tab) #createPushForm .transparent-dropdown-menu .list-group label.dropdown-item.is-selected,
:where(#baseModal, #pushes-tab) #createPushForm .dropdown-menu .dropdown-item.is-selected {
  background: var(--primary-light);
  color: var(--primary);
  border: 1px solid var(--primary-border);
}


html.dark-theme :where(#baseModal, #pushes-tab) .custom-select-wrapper select {
  background-color: var(--bg-elevated);
  border-color: var(--border);
  color: var(--text);
}

html.dark-theme :where(#baseModal, #pushes-tab) .transparent-dropdown .dropdown-toggle:hover,
html.dark-theme :where(#baseModal, #pushes-tab) .transparent-dropdown .dropdown-toggle:focus-visible {
  background: var(--bg-soft);
  border-color: var(--border);
}

html.dark-theme :where(#baseModal, #pushes-tab) .filter-condition,
html.dark-theme #pushes-tab .filter-condition {
  background: var(--bg-white);
  border-color: var(--border);
}

html.dark-theme :where(#baseModal, #pushes-tab) .filter-condition select,
html.dark-theme :where(#baseModal, #pushes-tab) .filter-condition input {
  background: var(--bg-elevated);
  border-color: var(--border);
  color: var(--text);
}

html.dark-theme :where(#baseModal, #pushes-tab) .transparent-dropdown-menu,
html.dark-theme :where(#baseModal, #pushes-tab) .dropdown-menu {
  background: var(--bg-elevated);
  border-color: var(--border);
  box-shadow: var(--shadow-lg);
}

html.dark-theme :where(#baseModal, #pushes-tab) .dropdown-item {
  color: var(--text);
}

html.dark-theme :where(#baseModal, #pushes-tab) .dropdown-item:hover {
  background: var(--bg-soft);
}

html.dark-theme :where(#baseModal, #pushes-tab) .form-section {
  background: var(--bg-elevated);
  border-color: var(--border);
}

html.dark-theme :where(#baseModal, #pushes-tab) .form-control,
html.dark-theme :where(#baseModal, #pushes-tab) textarea.form-control {
  background: var(--bg-elevated);
  border-color: var(--border);
  color: var(--text);
}

html.dark-theme :where(#baseModal, #pushes-tab) .form-control:focus,
html.dark-theme :where(#baseModal, #pushes-tab) textarea.form-control:focus {
  background: var(--bg-elevated);
  border-color: rgba(167, 139, 250, 0.5);
  box-shadow: 0 0 0 3px rgba(167, 139, 250, 0.15);
}

html.dark-theme :where(#baseModal, #pushes-tab) .form-label,
html.dark-theme :where(#baseModal, #pushes-tab) label {
  color: var(--text);
}

html.dark-theme :where(#baseModal, #pushes-tab) .form-hint,
html.dark-theme :where(#baseModal, #pushes-tab) .form-text {
  color: var(--text-light);
}


html.dark-theme :where(#baseModal, #pushes-tab) #createPushForm .form-group input[type="text"],
html.dark-theme :where(#baseModal, #pushes-tab) #createPushForm .form-group .crm-input,
html.dark-theme :where(#baseModal, #pushes-tab) #createPushForm .form-group textarea,
html.dark-theme :where(#baseModal, #pushes-tab) #createPushForm .message-block textarea,
html.dark-theme :where(#baseModal, #pushes-tab) #createPushForm input.form-control,
html.dark-theme :where(#baseModal, #pushes-tab) #createPushForm textarea.form-control {
  background: var(--bg-elevated);
  border-color: var(--border);
  color: var(--text);
}

html.dark-theme :where(#baseModal, #pushes-tab) #createPushForm .form-group label,
html.dark-theme :where(#baseModal, #pushes-tab) #createPushForm .form-section h3,
html.dark-theme :where(#baseModal, #pushes-tab) #createPushForm .message-block__title,
html.dark-theme :where(#baseModal, #pushes-tab) #createPushForm .form-label,
html.dark-theme :where(#baseModal, #pushes-tab) #createPushForm .form-check-label {
  color: var(--text);
}

html.dark-theme :where(#baseModal, #pushes-tab) #createPushForm .annotation-text,
html.dark-theme :where(#baseModal, #pushes-tab) #createPushForm .crm-dt-hint {
  color: var(--text-light);
}

html.dark-theme :where(#baseModal, #pushes-tab) #createPushForm .info-icon {
  color: var(--text-light);
}

html.dark-theme :where(#baseModal, #pushes-tab) .crm-dt-picker {
  background: var(--bg-soft);
  border-color: var(--border);
}

html.dark-theme :where(#baseModal, #pushes-tab) .crm-dt-label {
  color: var(--text-light);
}

html.dark-theme :where(#baseModal, #pushes-tab) .crm-dt-input[type="date"],
html.dark-theme :where(#baseModal, #pushes-tab) .crm-dt-input[type="time"] {
  background: var(--bg-elevated);
  border-color: var(--border);
  color: var(--text);
}

html.dark-theme :where(#baseModal, #pushes-tab) .crm-dt-input[type="date"]:hover,
html.dark-theme :where(#baseModal, #pushes-tab) .crm-dt-input[type="time"]:hover {
  border-color: rgba(167, 139, 250, 0.35);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
}

html.dark-theme :where(#baseModal, #pushes-tab) .crm-dt-input[type="date"]:focus,
html.dark-theme :where(#baseModal, #pushes-tab) .crm-dt-input[type="time"]:focus {
  border-color: rgba(167, 139, 250, 0.5);
  box-shadow: 0 0 0 3px rgba(167, 139, 250, 0.15);
}

html.dark-theme :where(#baseModal, #pushes-tab) #createPushForm .message-block {
  background: var(--bg-soft);
  border-color: var(--border);
}

html.dark-theme :where(#baseModal, #pushes-tab) .push-button-row {
  background: var(--bg-soft);
  border-color: var(--border);
}

html.dark-theme :where(#baseModal, #pushes-tab) #add-condition-btn,
html.dark-theme :where(#baseModal, #pushes-tab) #add-message-btn,
html.dark-theme :where(#baseModal, #pushes-tab) #add-push-button-btn {
  background: var(--bg-soft);
  border-color: var(--border);
  color: var(--text);
}

html.dark-theme :where(#baseModal, #pushes-tab) #add-condition-btn:hover,
html.dark-theme :where(#baseModal, #pushes-tab) #add-message-btn:hover,
html.dark-theme :where(#baseModal, #pushes-tab) #add-push-button-btn:hover {
  background: var(--bg-soft-2);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
}

html.dark-theme :where(#baseModal, #pushes-tab) .condition-type-wrapper {
  background: var(--bg-elevated);
  border-color: var(--border);
}

html.dark-theme :where(#baseModal, #pushes-tab) .condition-type-wrapper:hover,
html.dark-theme :where(#baseModal, #pushes-tab) .condition-value-wrapper:hover {
  border-color: var(--border);
}

html.dark-theme :where(#baseModal, #pushes-tab) .condition-type-wrapper:focus-within,
html.dark-theme :where(#baseModal, #pushes-tab) .condition-value-wrapper:focus-within {
  border-color: rgba(167, 139, 250, 0.45);
  box-shadow: 0 0 0 3px rgba(167, 139, 250, 0.12);
}

html.dark-theme :where(#baseModal, #pushes-tab) .condition-type-wrapper.active {
  border-color: rgba(167, 139, 250, 0.5);
  box-shadow: 0 0 0 2px rgba(167, 139, 250, 0.12);
}

html.dark-theme :where(#baseModal, #pushes-tab) .condition-type-wrapper:hover:not(.active) {
  background: var(--bg-soft);
  border-color: var(--border);
}

html.dark-theme :where(#baseModal, #pushes-tab) .condition-type {
  color: var(--text);
}


html.dark-theme #createPushForm .filter-condition {
  background: var(--bg-white);
  border-color: var(--border);
}

html.dark-theme :where(#baseModal, #pushes-tab) #createPushForm .dropdown-toggle.transparent-dropdown.btn-outline-secondary {
  background-color: var(--bg-soft-2);
  border-color: var(--border);
  color: var(--text);
}

html.dark-theme :where(#baseModal, #pushes-tab) #createPushForm .dropdown-toggle.transparent-dropdown.btn-outline-secondary:hover,
html.dark-theme :where(#baseModal, #pushes-tab) #createPushForm .dropdown-toggle.transparent-dropdown.btn-outline-secondary:focus-visible,
html.dark-theme :where(#baseModal, #pushes-tab) #createPushForm .dropdown-toggle.transparent-dropdown.btn-outline-secondary.show {
  background-color: var(--bg-soft-3);
  border-color: var(--border);
  color: var(--text);
}

html.dark-theme :where(#baseModal, #pushes-tab) #createPushForm .dropdown-menu .dropdown-item:hover,
html.dark-theme :where(#baseModal, #pushes-tab) #createPushForm .dropdown-menu .dropdown-item:focus {
  background: var(--bg-soft);
  color: var(--text);
  border-color: var(--border);
}

html.dark-theme :where(#baseModal, #pushes-tab) #createPushForm .form-group input[type="text"]:focus,
html.dark-theme :where(#baseModal, #pushes-tab) #createPushForm .form-group .crm-input:focus,
html.dark-theme :where(#baseModal, #pushes-tab) #createPushForm .form-group textarea:focus,
html.dark-theme :where(#baseModal, #pushes-tab) #createPushForm .message-block textarea:focus,
html.dark-theme :where(#baseModal, #pushes-tab) #createPushForm input.form-control:focus,
html.dark-theme :where(#baseModal, #pushes-tab) #createPushForm textarea.form-control:focus {
  border-color: rgba(167, 139, 250, 0.5);
  box-shadow: 0 0 0 3px rgba(167, 139, 250, 0.15);
}

html.dark-theme :where(#baseModal, #pushes-tab) .remove-condition-btn:hover {
  background: var(--bg-soft);
  color: #f87171;
}

html.dark-theme :where(#baseModal, #pushes-tab) #createPushForm .message-remove-btn:hover,
html.dark-theme :where(#baseModal, #pushes-tab) #createPushForm .push-btn-remove:hover {
  background: var(--bg-soft);
  color: #f87171;
}

html.dark-theme :where(#baseModal, #pushes-tab) .lead-ids-chip {
  background: var(--bg-elevated);
  border-color: var(--border);
  color: var(--text);
}

html.dark-theme :where(#baseModal, #pushes-tab) .lead-ids-chip:hover {
  background: var(--bg-soft);
  border-color: rgba(167, 139, 250, 0.35);
}

html.dark-theme :where(#baseModal, #pushes-tab) .lead-ids-dd .lead-ids-dd-btn {
  background: var(--bg-elevated);
  border-color: var(--border);
  color: var(--text);
}

html.dark-theme :where(#baseModal, #pushes-tab) .lead-ids-dd .lead-ids-dd-btn:hover,
html.dark-theme :where(#baseModal, #pushes-tab) .lead-ids-dd .lead-ids-dd-btn:focus-visible {
  background: var(--bg-soft);
  border-color: rgba(167, 139, 250, 0.35);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
}


html.dark-theme #pushes-tab .dropdown-toggle.transparent-dropdown.btn-outline-secondary,
html.dark-theme #pushes-tab .btn.btn-outline-secondary.transparent-dropdown {
  background-color: var(--bg-soft-2);
  border-color: var(--border);
  color: var(--text);
}

html.dark-theme #pushes-tab .dropdown-toggle.transparent-dropdown.btn-outline-secondary:hover,
html.dark-theme #pushes-tab .btn.btn-outline-secondary.transparent-dropdown:hover,
html.dark-theme #pushes-tab .dropdown-toggle.transparent-dropdown.btn-outline-secondary:focus-visible,
html.dark-theme #pushes-tab .btn.btn-outline-secondary.transparent-dropdown:focus-visible {
  background-color: var(--bg-soft-3);
  border-color: rgba(167, 139, 250, 0.45);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.22);
  color: var(--text);
}


html.dark-theme #pushes-tab .dropdown-toggle.transparent-dropdown.btn-outline-secondary[disabled],
html.dark-theme #pushes-tab .dropdown-toggle.transparent-dropdown.btn-outline-secondary.is-disabled,
html.dark-theme #pushes-tab .dropdown-toggle.transparent-dropdown.btn-outline-secondary[aria-disabled="true"] {
  background-color: var(--bg-soft-2);
  border-color: var(--border);
  color: var(--text-light);
  opacity: 0.85;
}


html.dark-theme #pushes-tab .dropdown-toggle.transparent-dropdown.btn-outline-secondary::after {
  border-top-color: var(--text-light);
  filter: none;
}


html.dark-theme #pushes-tab .add-push-card {
  background: var(--bg-white);
  border: 2px dashed var(--border);
  border-radius: 12px;
  transition: var(--crm-hover-transition);
  color: var(--primary);
}

html.dark-theme #pushes-tab .add-push-card:hover {
  border-color: var(--primary);
  background: rgba(91, 33, 182, 0.05);
  transform: translateY(-1px) scale(1.02);
}

html.dark-theme #pushes-tab .add-push-btn {
  color: var(--primary);
}


html.dark-theme #pushes-tab .push-groups-list {
  
  background: transparent;
}


html.dark-theme #pushes-tab .selected-items-count {
  color: var(--text);
}
