.ms-options-wrap>button:focus,
.ms-options-wrap>button {
  border: 1px solid var(--theme-light-gray);
  background: var(--theme-light-gray);
  padding: 0 14px;
  font-size: 14px;
  color: var(--theme-text);
  min-height: 52px;
  transition: color 0.15s cubic-bezier(0.4, 0, 0.2, 1), background-color 0.15s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  margin-bottom: 12px;
  border-radius: 10px;
}

#add-new-lead-pipeline .ms-options-wrap {
  width: 100% !important;
  max-width: 400px !important;
}

#add-new-lead-pipeline .popup-right {
  width: 390px;
}

.hidden_values {
  display: none;
}

#move-column-leads .popup-center {
  max-width: 650px;
}

#move-column-leads .popup-right-body {
  padding: 12px;
}

.pipeline-item {
  cursor: pointer;
}

.pipeline-active {
  border-color: var(--theme-primary);
}

.chosen-lead-item-card {
  margin-bottom: 2px;
}

.pipeline-column-header {
  cursor: pointer;
}

/* .leads-table-text {
  white-space: nowrap;
  overflow: hidden;
} */

.leads-table-row {
  grid-template-columns: 5px minmax(130px, 272px) 180px 109px 109px 236px minmax(200px, 1fr);
}

@media screen and (max-width: 660px) {
  .leads-table-row {
    grid-template-columns: 5px calc(30% - 27px) 20% 15% 15% 20% 20%;
  }
}

.column_color {
  margin-bottom: 12px;
}

.view-automations {
  text-align: right;
  padding: 5px 30px;
}

.pipeline-stages-vertical
{
  flex-wrap: wrap;
  overflow-y: hidden;
}

.leads-header-input {
  margin-right: 0px;
}

.pipeline-stages-list .pipeline-column-number {
  color: var(--theme-white);
  background: rgba(255,255,255,0.3);
}

#pipeline-leads-rows .pipeline-column-item-avatars
{
  display: flex;
  flex-wrap: wrap;
}

.pipeline-column-item-avatars
{
  flex-wrap: wrap;
}

.pipeline-column-item-avatars div
{
  margin-top: 2px;
}

.pipeline-column-action
{
  margin-bottom:20px
}
.pipeline-column-action:last-child {
  margin-bottom:5px !important
}

.automation-table {
  width: 100%;
  max-width: 100%;
  padding: 10px;
  margin: 20px 0px;
  margin-bottom: 1rem;
  background-color: transparent;
}
.automation-table thead th {
  vertical-align: bottom;
  border-bottom: 2px solid #dee2e6;
}

.automation-table td, .automation-table th {
  padding: 0.75rem;
  border: 1px solid #dee2e6;
}

#add-lead-segment {
  display: none;
}

#add-lead-segment.shown {
  display: flex;
}

#back-add-lead-segment {
  background-color: transparent;
  height: 16px;
  width: 16px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 6 9'%3E%3Cdefs/%3E%3Cpath fill='%23000' d='M2.8 4.5l2.9 2.8-1.5 1.4L0 4.5 4.2.3l1.5 1.4-2.9 2.8z'/%3E%3C/svg%3E");
  border: none;
  background-repeat: no-repeat;
  background-position: center;
  background-size: 6px 9px;
  margin-right: 6px;
}

.add-lead-segment-buttons {
  display : flex;
  margin-top: 30px;
}

.add-lead-segment-buttons button{
  width : 45%;
  margin : 0 auto;
}

.select2-selection
{
  height : 38px !important;
}

#profile-whole-view .select2-selection {
  min-height: 38px;
  height: auto !important;
}

#sync-leads {
  z-index: 9999;
}

.sync-leads-info {
  margin-top:5px;
  cursor: pointer;
}

.pipeline-columns-v2 .pipeline-column {
  width: calc(100% * (1/4) - 10px - 1px);
  min-width: 150px;
}
@media screen and (min-width: 601px) and (max-width: 850px) {
  .pipeline-columns-v2 .pipeline-column {
      width: calc(100% * (1/3) - 15px);
  }
}
@media screen and (max-width: 600px) {
.pipeline-columns-v2 .pipeline-column {
    width: calc(100% * (1/2) - 15px);
}
}

@media screen and (max-width: 400px) {
  .pipeline-columns-v2 .pipeline-column {
      flex-grow: 1;
  }
}

.color-value {
  margin-left: 2em;
  border: 1px solid lightgrey;
  padding: 7px 0px 0px 11px;
  border-radius: 5px;
}

.condition-error {
  display: none !important;
}

.popup-right-bottom {
  text-align: right;
}

.blue-button--light:hover {
  background-color: var(--theme-secondary);
}

.segment-input, .segment-input-radio {
  margin-bottom: 20px;
  /* display: none; */
}

.segment-input label, .segment-input-radio label {
  display: block;
  margin: 0 0 15px;
  font-size: 12px;
  font-weight: bold;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--theme-gray);
}

.segment-input .text-input {
  width: 100%;
  border-radius: 10px;
  height: 44px;
  border: 1px solid var(--theme-light-gray);
  padding: 0 14px;
  font-size: 14px;
  color: var(--theme-text);
  transition: color 0.15s cubic-bezier(0.4, 0, 0.2, 1), background-color 0.15s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: color, background-color, border-color;
}

.listoptions {
  padding-left: 5px;
  max-height: 450px;
  overflow: scroll;
}

.listoptions li {
  margin-left: 20px;
  list-style: none;
}

.listoptions li .fa-check {
  display: none;
}

.listoptions li.checked {
  margin-left: 0px;
}

.listoptions li.checked .fa-check {
  display: inline-block !important;
}

.new-group-create-list li.active a#saveCriteria {
  border: 1px solid var(--theme-primary);
  background: var(--theme-primary);
}

.new-group-create-list li.active a#saveCriteria:after {
  opacity: 0;
}

#saveCriteria {
  color: #ffffff !important;
  padding-right: 15px;
}

#criteria_rule_error {
  color: var(--theme-red);
  font-weight: 700;
  font-size: 14px;
  padding: 0px 10px;
  display: none;
  margin-bottom: 5px;
}

#add_stage_filter {
  display: none;
}

#segmentRowWait,#segmentation_filter,#create_scratch_filter {
  display: none;
}

.task-body {
  margin-top: 20px;
}

.select_copy_segment,.select_copy_stages,.calculate_stage {
  display: none;
}

label.select_copy_segment,label.select_copy_stages {
  margin-top: 12px;
}

.task-top-tabs {
  width: 70%;
}

.leads-title-drop .automation-list {
  max-height: 450px;
}

#calculate_stage_users {
  margin-right: 30px;
}

#add-action-popup .select2-selection__choice__remove {
  display: inline-block !important;
  float: right;
  margin-left:8px;
}

.leads-title-drop .leads-title {
  font-size: 24px;
}

.pipeline-disabled-option,.pipeline-disabled-option:hover {
  cursor:not-allowed;
  color: var(--theme-gray);
}

.set_default_pipeline :hover{
  /* background-color: #fff !important; */
  /* border: 1px solid #fff !important; */
  position: relative !important;
  z-index: 999999 !important;
}

span.pipeline-column-item-tag.noselect {
  margin: 1px;
}

.already_in_pipeline {
  pointer-events: none !important;
}

.already_in_pipeline_alert {
  font-size: 10px !important;
}