.action-buttons {
  display: flex;
  align-items: center;
  gap: 5px;
}
  
.action-buttons > input[type="text"]  {
  width: 40px;
  border: none;
  border-bottom: 1px solid black;
}

.action-buttons input[type="checkbox"] + label {
  font-weight: 700;
  color: #1f2937;
}

.action-buttons input[type="checkbox"][value="sent"] + label {
  color: #198754;
}

#tableInvite .action-buttons input[type="checkbox"][value="sent"] + label {
  color: #b45309;
}

.action-buttons input[type="checkbox"][value="holdoff"] + label,
.action-buttons input[type="checkbox"][value="onhold"] + label {
  color: #b5651d;
}

.action-buttons input[type="checkbox"][value="postpone"] + label {
  color: #dc3545;
}

.action-buttons input[type="checkbox"][value="skip"] + label,
.action-buttons input[type="checkbox"][value="sequence"] + label,
.action-buttons input[type="checkbox"][value="skip/sequence"] + label,
.action-buttons input[type="checkbox"][value="skip_sequence"] + label {
  color: #0d6efd;
}

.action-buttons input[type="checkbox"][value="remove"] + label,
.action-buttons input[type="checkbox"][value="stop"] + label {
  color: #dc3545;
}

.action-buttons input[type="checkbox"][value="read"] + label {
  color: #6f42c1;
}

.action-buttons input[type="checkbox"][value="none"] + label {
  color: #475467;
}

.action-buttons input[type="checkbox"][value="sentWithMessage"] + label,
.action-buttons input[type="checkbox"][value="sentwithmessage"] + label,
.action-buttons input[type="checkbox"][value="sent_with_message"] + label {
  color: #1d4ed8;
}

.action-buttons input[type="checkbox"][value="connected"] + label {
  color: #7c3aed;
}

.action-buttons input[type="checkbox"][value="declined"] + label {
  color: #b42318;
}

.action-buttons input[type="checkbox"][value="little-interest"] + label,
.action-buttons input[type="checkbox"][value="little_interest"] + label {
  color: #8b5e34;
}

.action-buttons input[type="checkbox"][value="mild-interest"] + label,
.action-buttons input[type="checkbox"][value="mild_interest"] + label {
  color: #1d4ed8;
}

.action-buttons input[type="checkbox"][value="great-interest"] + label,
.action-buttons input[type="checkbox"][value="great_interest"] + label {
  color: #15803d;
}

.table-edit {
  width: 100%;
  border: none;
}

input.table-edit {
    width: 100%;
    min-width: 100px;
    white-space: normal;
    overflow-wrap: break-word;
    word-break: break-word;
}

.tableCustom .dataTable td, .tableCustom .dataTable th {
  padding: 1.50rem 0.75rem !important; /* Adjust the padding as needed */
}

.campaign-dropdown-item {
  display: flex !important;     
  gap: 25px !important;           
  align-items: center !important;
  flex-wrap: wrap !important;   
  margin-left:10px !important;     
  padding: 2px 1px !important;     
  min-width: 100%;
  box-sizing: border-box;
  margin-right:auto;
   }

.campaign-dropdown-item.dropdown-item:hover {
  background-color: transparent !important;
}

.campaign-dropdown-item.dropdown-item input {
  cursor: pointer;
}

.label-black {
  color: black;
  cursor: pointer;
}

.disabled-link {
  pointer-events: none;
  color: gray;
  text-decoration: none;
}

#filterIndicator{
  font-size: 15px;
}

.bg-blue-linkedin-text {
  color: #0A65C0 !important;
}

.dt-paging-button.active > a {
  background-color: #0A65C0 !important;
}

.btn-primary{
  background-color: #0A65C0 !important
}

.truncate-text {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.5em;
  max-height: 3em;
  white-space: normal;
}

.dropdown-toggle {
  background-color: #0A65C0 !important; /* Match the light gray background */
  color: #fff !important; /* Ensure text is black */
}

.dropdown-btn:hover {
  background-color: #1B84FF !important;
}

#refreshBtn, #refreshConnectionsBtn {
  background-color: forestgreen;
  color: white;
}

#refreshBtn:hover {
  background-color: darkgreen !important;
  color: white !important;
}

.menu-btn {
  border: 5px solid lightgray !important;
  border-radius: 5px !important;
  padding: 6px 0px !important;
  box-sizing: border-box !important;
}

.inbox-top-buttons > * {
  flex: 0 0 auto;
  min-width: 180px;
  width: auto !important;
}

.inbox-top-buttons > .dropdown,
.inbox-top-buttons > a.btn {
  width: auto !important;
}

.inbox-top-buttons > .dropdown > .btn,
.inbox-top-buttons > a.btn {
  width: auto !important;
  min-width: 180px;
  white-space: nowrap;
}

.home-count {
  color: yellow;
}

.tableCustom {
  width: 100% !important;
  table-layout: auto !important;
    height: auto; /* Only if required */
}

.tableCustom th {
  position: relative;
  padding-right: 10px !important;
  white-space: nowrap;
  min-width: 90px;
}

.th-content-wrapper {
  display: inline-block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 1em;
}

.light-pink {
  background-color: pink;
  color: black;
}

.light-pink:hover {
  background-color: #ffb6c1;
}

.light-yellow {
  background-color: rgb(255, 255, 158);
  color: black;
}

.light-yellow:hover {
  background-color: rgb(240, 240, 120);
}

.light-red {
  background-color: rgb(255, 148, 148);
  color: black;
}

.light-red:hover {
  background-color: rgb(240, 100, 100);
}

.light-green {
  background-color: rgb(181, 255, 181);
  color: black;
}

.light-green:hover {
  background-color: rgb(130, 230, 130);
}

.light-orange {
  background-color: rgb(255, 217, 146);
  color: black;
}

.light-orange:hover {
  background-color: rgb(240, 190, 100);
}

.light-blue {
  background-color: rgb(179, 179, 255);
  color: black;
}

.light-blue:hover {
  background-color: rgb(140, 140, 240);
}

.light-gray {
  background-color: lightgray;
  color: black;
}

.light-gray:hover {
  background-color: #a9a9a9; /* darkgray */
}

.pink-btn:hover {
  background-color: rgb(224, 87, 133);
  color: white;
}

.guide-text {
  font-size: 18px !important;
}

.dtfh-floatingparent {
  top: 100px !important;
}

#kt_app_header {
  height: 90px !important;
}

.linkedin-msg-link {
  cursor: pointer;
}

.header-help-text { 
  color: rgb(53, 53, 53);
}

.count-report {
  font-weight: bold;
}

.menu-item .menu-link { 
  padding: 0.40rem 0.5rem !important;
}

#kt_app_sidebar .menu .menu-item.hover:not(.here) > a.menu-link[href]:not(.disabled):not(.active):not(.here),
#kt_app_sidebar .menu .menu-item:not(.here) a.menu-link[href]:hover:not(.disabled):not(.active):not(.here) {
  background-color: #0966c2 !important;
}

.homeRefresh:hover {
  background-color: lightgreen !important;
}

.dtfh-floatingparent-head {
    top: 90px !important;
    z-index: 1050 !important;
}

.refresh-button {
    position: absolute;
    top: 2px;
    right: 2px;
    background-color: rgba(255, 255, 255, 0.8);
    border: none;
    border-radius: 50%;
    font-size: 10px;
    padding: 2px 5px;
    cursor: pointer;
    z-index: 10;
}

.refresh-button:hover {
    background-color: rgba(255, 255, 255, 1);
}


.move-arrow::after {
    order: -1;
    margin-right: 1rem;
    margin-left: 0;
}

.align-button {
    line-height: 1.5;
}

.filter-checkbox {
    vertical-align: middle;
    position: relative;
    top: -1px;
    
}

.campaign-checkbox {
  display: flex;  
  vertical-align: middle; 
  position: relative; 
   width: 20px;
  height: 20px;    
  }
.campaign-item {
  padding: 8px 12px;
  border-bottom: 1px solid #eee;
  
}
.campaign-item:last-child {
  border-bottom: none;
}
.campaign-item:hover {
  background-color: #f8f9fa;
}
#sourceCampaignsList {
  max-height: 300px;
  overflow-y: auto;
  border: 1px solid #ddd;
  border-radius: 4px;
  margin-top: 8px;
}
.merge-modal .modal-dialog {
  max-width: 800px;
}
#colorHex {
  display: none;
}
#colorPalette {
  max-width: 100%;
}
.color-swatch:hover {
  transform: scale(1.1);
}

/* TinyMCE color palette: circular swatches with centered checkmark */
.tox .tox-swatches__row {
  display: flex;
  gap: 4px;
  margin: 2px 0;
}

.tox .tox-swatches__row .tox-swatch {
  width: 24px;
  height: 24px;
  min-width: 24px;
  min-height: 24px;
  border-radius: 50% !important;
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.tox .tox-swatches__row .tox-swatch:hover,
.tox .tox-swatches__row .tox-swatch:focus {
  transform: scale(1.05);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.2);
}

.tox .tox-swatches__row .tox-swatch__color {
  border-radius: 50% !important;
}

.tox .tox-swatches__row .tox-swatch .tox-collection__item-checkmark {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.tox .tox-swatches__row .tox-swatch .tox-collection__item-checkmark svg {
  fill: #ffffff !important;
  filter: drop-shadow(0 0 1px rgba(0, 0, 0, 0.65));
}

.tox .tox-swatch--remove {
  display: none !important;
}

.disabled-btn {
  opacity: 0.5;
  cursor: not-allowed;
}
.multi-select-dropdown {
  position: relative;
  width: 100%;
}
.multi-select-dropdown .relationship-dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff;
  border: 1px solid #ccc;
  z-index: 2000;
  max-height: 200px;
  overflow-y: auto;
  width: 100%;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}
.multi-select-dropdown .dropdown-toggle {
  cursor: pointer;
}

.relationship-table-option {
  display: block;
  padding: 2px 5px;
}

.relationship-table-toggle {
  width: 200px;
  padding: 5px;
  border: 1px solid #ccc;
  background: #f9f9f9;
  cursor: pointer;
  white-space: normal;
  word-wrap: break-word;
}

.profile-image-container-sm {
  width: 50px;
  height: 50px;
}

.last-contact-date-hidden {
  display: none;
}

.last-contact-date-visible {
  display: inline-block;
}

.followup-days-input {
  width: 3.5ch;
}

.next-contact-date-overdue {
  color: #dc3545;
  font-weight: 700;
}

.next-contact-date-emphasis {
  color: #000000;
  font-weight: 700;
}

.sequence-status-badge-preview {
  display: inline-block;
  max-width: 180px;
  margin-top: 2px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sequence-copy-alert {
  top: 20px;
  right: 20px;
  z-index: 9999;
  max-width: 300px;
}

.prospect-action-sent {
  color: #3d78d8;
}

.prospect-action-sent-message,
.action-interest-high {
  color: #3d761e;
}

.prospect-action-connected {
  color: #752647;
}

.prospect-action-declined,
.action-interest-low {
  color: #ea4138;
}

.action-interest-medium {
  color: #f29935;
}

.multi-select-dropdown .relationship-table-menu {
  z-index: 999;
  max-height: 360px;
  width: max-content;
}

.dropdown-item {
  padding: 8px 12px;
  display: flex;
  align-items: flex-start;
}
.dropdown-item input[type="checkbox"] {
  margin-top: 4px;
  margin-right: 8px;
  cursor: pointer;
}

#relationshipFilterMenu {
  max-width: 100%;
  overflow-x: hidden;
}

#relationshipFilterMenu .dropdown-item {
  width: 100%;
  min-width: 0;
  white-space: normal;
  overflow-wrap: anywhere;
}

#relationshipFilterMenu .dropdown-item label {
  display: block;
  flex: 1 1 auto;
  min-width: 0;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.primary-star {
  display: inline-block;
  font-size: 14px;
}
.set-primary-btn {
  display: inline-block;
  padding: 0 3px;
  margin-top: 1px;
  visibility: hidden;
  cursor: pointer;
}
label:hover .set-primary-btn {
    visibility: visible;
}
.dropdown-divider {
  border-top: 1px solid rgb(110, 109, 109);
  width: 16.7vw !important;            /* Use full viewport width */
  margin-left: -32px !important;      /* Offset parent's horizontal padding */
  margin-right: -32px !important;  
}
.company-input {
  min-width: 100px !important;
}
.occupation-input {
  min-width: 150px !important;
}
.disabled-select {
    opacity: 0.3 !important;
    cursor: not-allowed !important;
}
.clickable-row {
  cursor: pointer;
}
.clickable-row:hover {
  background-color: #f1f1f1;
}
.btn-loader .spinner-border {
  display: inline-block !important;
  margin-left: 5px;
}
.exclude-checkbox {
  border: 2px solid #f64e60 !important;
  position: relative;
  width: 20px;
  height: 20px;
  appearance: none;
  -webkit-appearance: none;
  border-radius: 4px;
  cursor: pointer;
  display: inline-block;
  vertical-align: middle;
  padding: 0 !important;
}
.exclude-checkbox:checked {
  background-color: #f64e60;
}
.exclude-checkbox:checked::after {
  content: "✕";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-size: 14px;
  font-weight: bold;
  gap:5px
}
#campaignFilterMenu {
  min-width: 250px !important;
  width: max-content !important;
  max-width: none !important; /* allow it to grow fully */
  white-space: nowrap; /* prevent wrapping */
  box-sizing: border-box;
  padding: 10px 32px !important;
}
.form-check-label.label-black {
  display: inline-block;
  vertical-align: middle;
  margin:-20px;
  padding: 0;
  white-space: nowrap;  
  line-height: 1.2;
  cursor: pointer;
}
.campaigns-heading {
  margin-top: 09px; 
}
.fw-bold.text-dark {
 margin-top: -8px; 
}
.campaign-checkbox {
  border: 2px solid #acacac !important;
}
input[type="date"]::-webkit-calendar-picker-indicator {
  filter: invert(50%) sepia(100%) saturate(300%) hue-rotate(180deg);
  cursor: pointer;}

#tableSpecialDashboard thead tr th,
#tableResponses thead tr th,
#tableNewConnection thead tr th,
#tableInvite thead tr th,
#tableDashboard thead tr th,
#tableUserListsDashboard thead tr th,
#tableSequence thead tr th,
#tableInbox thead tr th {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

.unsaved-indicator {
    position: relative;
}
.unsaved-indicator::after {
    content: "●";
    position: absolute;
    top: 0;
    right: 0;
    color: #f1416c;
    font-size: 12px;
}
.dt-scroll-body {
  background: none !important;
}

@media (min-width: 992px) {
  main, span, ol, ul, pre, div {
    scrollbar-width: thin;
    scrollbar-color: #5c5a59 transparent;
  }

  main :hover, span :hover, ol :hover, ul :hover, pre :hover, div :hover {
    scrollbar-width: thin;
    scrollbar-color: #5c5a59 transparent;
  }
}

#goTopBtn {
  display: none;
  position: fixed;
  bottom: 40px;
  right: 40px;
  z-index: 99;
  font-size: 18px;
  border: none;
  outline: none;
  background-color: #0965c0;
  color: white;
  cursor: pointer;
  padding: 12px 16px;
  border-radius: 50%;
  box-shadow: 0 4px 6px rgba(0,0,0,0.2);
  transition: all 0.3s ease;
}

#goTopBtn:hover {
  background-color: #0a58ca;
  transform: scale(1.1);
}

.last-contact-combined, .next-contact-combined {
  display: flex;
  flex-direction: row;
  gap: 20px;
  justify-content: center;
  align-items:center;
}

.form-control, .form-control-solid {
  border-color: gray !important;
}

thead, tbody, tfoot {
  border-color: gray !important;
}

.dropdown-menu, .multi-select-dropdown{
  border: 1px solid gray !important;
}

.compact-input {
  font-size: 0.95rem;
  padding: 0.4rem 0.6rem;
  overflow-x: auto;
  white-space: nowrap;
}

.info-value {
  font-weight: 600;
  font-size: 1rem;
}

.has-unsaved-changes {
  border-left: 3px solid #f1416c !important;
  background-color: rgba(250, 4, 66, 0.05) !important;
}

#loadingOverlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  z-index: 99999;
  display: none;
  justify-content: center;
  align-items: center;
}

#loadingOverlay.is-visible {
  display: flex;
}

#loadingOverlay .spinner-border {
  width: 4rem;
  height: 4rem;
}

.scrapping-page td pre {
  max-width: 500px !important; 
  white-space: pre-wrap;
  word-break: break-word;
  overflow-x: auto;
}

#view-content table tbody tr:hover {
  background-color: #e9e9e9 !important;
  cursor: pointer;
}

#view-content table tbody tr {
  transition: background-color 0.1s ease;
}

.input-with-clear {
  position: relative;
  display: inline-block;
}

.input-clear-btn {
  position: absolute;
  right: 10px;
  top: 59%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #999;
  font-size: 18px;
  cursor: pointer;
  padding: 0;
  width: 20px;
  height: 20px;
  line-height: 1;
  display: none;
  z-index: 10;
}

.input-clear-btn:hover {
  color: #333;
}

.input-with-clear input {
  padding-right: 35px;
}

.redirect-link {
  color: #0A65C0 !important;
}

.colorSelectPriority,
.colorSelect {
  border: 1px solid #ddd;
  border-radius: 4px;
  padding: 5px 10px;
  font-size: 14px;
  cursor: pointer;
  width: 100%;
}

.sequence-status-dropdown-wrapper {
  position: relative;
  min-width: 150px;
  max-width: 400px;
}

.sequence-status-toggle {
  min-width: 150px;
  max-width: 400px;
  padding: 8px 12px;
  cursor: pointer; 
  padding: 5px; 
  background: #f9f9f9; 
  border: 1px solid #ccc; 
  width: 100%; 
  white-space: nowrap; 
  overflow: hidden; 
  text-overflow: ellipsis;
}

.sequence-status-toggle:hover {
  background-color: #f1f3f5 !important;
}

.sequence-status-dropdown-menu {
  min-width: 300px;
  max-width: 350px;
}

.sequence-status-dropdown-menu .accordion-button:focus {
  box-shadow: none;
}

.sequence-status-dropdown-menu .accordion-button:not(.collapsed) {
  background-color: #e8f4f8;
  color: #009ef7;
}

.sequence-status-option:active {
  transform: scale(0.98);
}

.sequence-status-dropdown-menu {
  z-index: 1050 !important;
}

.custom-dropdown {
  min-width: 100px;
  position: relative;
  width: 100%;
  cursor: pointer;
}

.custom-dropdown-selected {
  padding: 6px 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: white;
}

.custom-dropdown-selected-default,
.custom-option-empty {
  background-color: #f8f9fa;
  color: #000000;
}

.custom-option-none {
  background-color: #ffffff;
  color: #000000;
}

.custom-option-priority-high {
  background-color: rgb(181, 255, 181);
  color: #000000;
}

.custom-option-priority-medium {
  background-color: rgb(255, 255, 158);
  color: #000000;
}

.custom-option-priority-low {
  background-color: rgb(255, 217, 146);
  color: #000000;
}

.dropdown-arrow {
  font-size: 10px;
  margin-left: 5px;
}

.custom-dropdown-options {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: white;
  border: 1px solid #ddd;
  border-radius: 4px;
  max-height: 200px;
  overflow-y: auto;
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.custom-option {
  padding: 8px 10px;
  cursor: pointer;
  transition: background-color 0.2s;
}

.custom-option:hover {
  background-color: #f5f5f5;
}

.custom-dropdown.open .dropdown-arrow {
  transform: rotate(180deg);
}

td.status-column-wide {
  min-width: 150px;
  max-width: 400px;
}

.message-row td {
  padding: 10px 12px !important;
}

.message-title {
  font-size: 15px;
  font-weight: 600;
}

.message-preview {
  font-size: 13px;
  color: #6c757d;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  line-clamp: 2;
  overflow: hidden;
}

.message-row .btn-icon {
  width: 30px;
  height: 30px;
}

.message-row:hover {
  background-color: #f9fafb;
}

.tooltip-inner {
  max-width: 400px;
  text-align: left;
  white-space: normal;
  background: #e3e9f1;
}

.msg-count-display {
  padding: 6px 10px;
  border-radius: 6px;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  min-width: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid transparent;
  cursor: pointer;
  user-select: none;
  font-weight: 600;
}

.msg-count-display:hover,
.msg-count-display:focus {
  background-color: rgba(13, 110, 253, 0.08);
  color: #0d6efd;
  border-color: rgba(13, 110, 253, 0.2);
  transform: scale(1.05);
}

.msg-count-input {
  width: 70px !important;
  text-align: center;
  border: 2px solid #0d6efd !important;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.95em;
  transition: border-color 0.2s ease;
}

.msg-count-input:focus {
  border-color: #0866ff !important;
  box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.1);
}

.status-option-popover ~ .popover,
.status-option-popover + .popover {
  border: 3px solid var(--status-border-color, #e4e6ef) !important;
  margin-right: 25px !important;
}

.popover:not(.template-popover) {
  border: 4px solid var(--status-border-color, #e4e6ef) !important;
  margin-right: 25px !important;
}

.popover.template-popover {
  border-width: 4px !important;
  border-radius: 6px !important;
  margin-right: 25px !important;
}

.status-item.opacity-75 {
  opacity: 0.75 !important;
}

.badge-warning {
  background-color: #ffc107;
  color: #000;
}
.editable-name {
  border-bottom: 1px dashed transparent;
  cursor: pointer;
  padding: 2px;
}

.editable-name:hover {
  background-color: #f8f9fa;
  border-bottom: 1px solid #007bff !important;
  padding: 2px 4px;
  border-radius: 3px;
}

.editable-name input.form-control {
  height: 28px;
  padding: 4px 8px;
}

#tableInbox tbody tr.error-highlight td,
#tableSequence tbody tr.error-highlight td {
  background-color: #fff3cd !important;
}

.DTFC_LeftBodyLiner tbody tr.error-highlight td,
.DTFC_LeftBodyLiner tbody tr.error-highlight th {
  background-color: #fff3cd !important;
}

#tableSequence tbody tr.dropdown-active-highlight td{
  background-color: #e3f2fd !important;
}

table.dataTable tbody tr.profile-open-highlight td {
  background-color: #aed4fc !important;
}

.DTFC_LeftBodyLiner tbody tr.profile-open-highlight td,
.DTFC_LeftBodyLiner tbody tr.profile-open-highlight th {
  background-color: #aed4fc !important;
}

.category-accordion .accordion-button {
  font-weight: 600;
  font-size: 1rem;
  padding: 1rem;
}

.template-row {
  margin-bottom: 10px;
}

.template-card {
  border-radius: 8px;
  padding: 8px;
  position: relative;
  border: 1px solid rgba(0, 0, 0, 0.1);
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  flex: 2;
  display: flex;
}

.template-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.template-card.dragging {
  opacity: 0.5;
}

.template-row .d-flex.flex-column {
  pointer-events: auto;
  z-index: 1;
}

.template-row .copy-btn,
.template-row .edit-sequence-status {
  pointer-events: auto;
}

.template-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: #1a1a1a;
  line-height: 1;
  cursor: pointer;
  display: inline-block;
}

.template-title.editing {
  border: 1px solid #007bff;
  padding: 4px 8px;
  border-radius: 4px;
  background: white;
  outline: none;
  min-width: 200px;
}

.template-preview {
  font-size: 1rem;
  color: #4a4a4a;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.4;
}

.empty-category {
  padding: 20px;
  text-align: center;
  color: #999;
  font-style: italic;
}

.accordion-body {
  padding: 15px;
}

.category-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.template-count {
  background: rgba(255, 255, 255, 0.3);
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
}

.loading-spinner {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 50px;
}

.popover {
  max-width: 500px;
}

.popover.bs-popover-auto[data-popper-placement^="right"] .popover-arrow::before,
.popover.bs-popover-end .popover-arrow::before {
  border-right-color: inherit !important;
}

.popover.bs-popover-auto[data-popper-placement^="right"] .popover-arrow::after,
.popover.bs-popover-end .popover-arrow::after {
  border-right-color: inherit !important;
}

.popover-header {
  padding: 8px 12px;
  margin-bottom: 0;
  font-size: 0.95rem;
  font-weight: 600;
  background-color: #f8f9fa;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.popover-body {
  padding: 10px 12px;
  font-size: 0.9rem;
  line-height: 1.5;
}

.sort-alpha-btn {
  border: 1px solid gray !important;
  height: 38px; 
  min-height: 38px; 
  padding: 0.5rem 1rem;
}

.message-templates-table tbody tr:hover td {
  background-color: #ffffff !important;
}

.lead-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #e4e6ef;
}

.lead-avatar-preview {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #e4e6ef;
}

.lead-select {
  display: flex;
  align-items: center;
  gap: 12px;
}

.lead-select-content {
  flex: 1;
}

.preview-card-with-image {
  display: flex;
  align-items: center;
  gap: 15px;
}

.search-magnifier {
  left: 1.25rem;
  z-index: 5;
}

.new-message-template {
  height: 38px;
  min-height: 38px;
  width: 38px;
  padding: 0;
}

.dropdown-toggle-templates {
  height: 38px; 
  min-height: 38px; 
  padding: 0.5rem 1rem;
}

.search-suggestion-modern {
  padding: 0;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  border-radius: 10px;
  margin-bottom: 4px;
  overflow: hidden;
}

.search-suggestion-modern:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.suggestion-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: white;
  border-radius: 10px;
  transition: all 0.2s ease;
}

.suggestion-content {
  flex: 1;
  min-width: 0;
}

.suggestion-title {
  font-weight: 600;
  font-size: 0.95em;
  color: #1e293b;
  line-height: 1.3;
}

.suggestion-type-badge {
  background: #e3f2fd;
  color: #1976d2;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 0.75em;
  font-weight: 500;
  white-space: nowrap;
}

.suggestion-preview {
  color: #64748b;
  font-size: 0.875em;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.suggestion-action {
  flex-shrink: 0;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.search-suggestion-modern:hover .suggestion-action {
  opacity: 1;
}

.search-red-highlight,
.search-red-highlight td {
  border: 5px solid black !important;
  color: rgb(0, 0, 0) !important;
}

.search-red-highlight h3 {
  color: rgb(0, 0, 0) !important;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

.is-invalid {
  border-color: #f1416c;
}

.template-option {
  transition: all 0.2s ease;
  cursor: pointer;
}
.template-option:hover {
  border-color: #0d6efd !important;
  box-shadow: 0 0 0 0.2rem rgba(13,110,253,.25);
  background-color: #f8f9ff !important;
}
.message-cell {
  white-space: pre-wrap;
  word-wrap: break-word;
  line-height: 1.6;
  max-width: 500px;
}

.guide-dashboard-rich-content,
.guide-report-content {
  white-space: normal;
  line-height: 1.5;
}

.guide-dashboard-rich-content img,
.guide-report-content img {
  display: block;
  max-width: 100% !important;
  height: auto !important;
  margin: 8px 0;
}

.guide-dashboard-rich-content p,
.guide-report-content p {
  margin-bottom: 0.6rem;
}

.guide-dashboard-rich-content ul,
.guide-dashboard-rich-content ol,
.guide-report-content ul,
.guide-report-content ol {
  margin: 0 0 0.6rem;
  padding-left: 1.25rem;
}

.guide-dashboard-rich-content table,
.guide-report-content table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 0.75rem;
}

.guide-dashboard-rich-content th,
.guide-dashboard-rich-content td,
.guide-report-content th,
.guide-report-content td {
  border: 1px solid #e1e3ea;
  padding: 0.4rem 0.5rem;
  vertical-align: top;
}
.template-option.form-check {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 1.25rem;
}

.template-option .form-check-input {
  position: static !important;
  margin: 0;
  flex-shrink: 0;
}

.template-option .form-check-label {
  margin: 0;
  padding: 0;
  cursor: pointer;
  width: 100%;
}

.type-separator {
  background-color: #0d6efd !important; /* Bootstrap primary blue */
  pointer-events: none;
}

.type-separator td {
  text-align: center !important;
  font-size: 18px !important;
  font-weight: 800 !important;
  color: #ffffff !important;
  letter-spacing: 1px;
  padding: 16px 10px !important;
  text-transform: uppercase;
}

.table-template-report thead th {
  position: sticky;
  top: 0;
  z-index: 5;
  background-color: #ffffff;
}

.template-table-container {
  overflow-y: auto;
  overflow-x: auto;
  position: relative;
}

.message-cell {
  white-space: pre-line;
  line-height: 1.3;
}

@page {
  margin: 0 !important;
  size: A4 landscape !important;
}

@media print {
  * {
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }
  body,
  html {
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
    height: 100% !important;
  }

  .kt-body,
  .kt-appwrapper,
  .app-container {
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
  }

  .full-width-container {
    max-width: 100% !important;
    width: 100vw !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  .template-report-card {
    box-shadow: none !important;
    border: none !important;
    margin: 0 !important;
    padding: 0 !important;
    border-radius: 0 !important;
  }

  .template-report-card-header {
    padding: 15px 20px !important;
    margin: 0 !important;
  }

  .template-report-card-body {
    padding: 20px !important;
    margin: 0 !important;
  }

  .no-print {
      display: none !important;
  }

  .table-template-report {
    width: 100% !important;
    margin: 0 !important;
    font-size: 10px !important;
    table-layout: fixed !important;
    position: static !important;
  }

  .message-cell {
    word-break: break-word !important;
    max-width: none !important;
  }

  @page :first {
    margin: 0 !important;
  }

  @page :left {
    margin: 0 !important;
  }

  @page :right {
    margin: 0 !important;
  }

  @page :blank {
    margin: 0 !important;
  }

  @page :top {
    margin: 0 !important;
  }
}

@media screen {
  .full-width-container {
    max-width: 100% !important;
    width: 100% !important;
  }
  .template-table-container {
    max-height: 70vh;
    overflow-y: auto;
    overflow-x: auto;
    position: relative;
  }
}

.message-templates-table {
  border-collapse: separate !important;
  border-spacing: 0 8px;
}

.template-card {
  transition: transform .15s ease, box-shadow .15s ease;
}

.template-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.12);
}

.message-templates-table tbody tr > td {
  background-color: transparent !important;
  padding: 0 !important;
}

.message-templates-table tbody tr {
  border-radius: 20px !important;
}

.table-template-report tbody tr.hoverable {
    background-color: transparent;
}

.table-template-report tbody tr.hoverable:nth-of-type(odd) {
    background-color: #f8f9fa;
}

.table-template-report tbody tr.hoverable:nth-of-type(even) {
    background-color: #d8dee6;
}

.search-suggestions-dropdown {
  z-index: 1050;
  max-height: 70vh;
  overflow-y: auto;
  display: none;
  top: 100%;
  left: 0;
}

.tag-dropdown {
  position: relative;
}

.tag-dropdown-trigger {
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
}

.tag-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 9999;
  background: #fff;
  border-radius: 6px;
  box-shadow: 0 4px 18px rgba(0,0,0,.15);
}

.tag-filter-row {
  cursor: pointer;
}

.tag-filter-row:hover {
  background-color: #f5f8fa;
}

.tag-exclude-red {
  border: 2px solid #dc3545;
}

.tag-exclude-red:checked {
  background-color: #dc3545;
  border-color: #dc3545;
}

.campaign-select {
  max-width: 180px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.lead-move-toggle {
  position: relative;
  width: 180px;
  min-height: 32px;
  padding: 4px 28px 4px 8px;
  border: 1px solid #e1e3ea;
  border-radius: 6px;
  background-color: #fff;
  color: #181c32;
  text-align: left;
}

.lead-move-toggle::after {
  position: absolute;
  top: 50%;
  right: 10px;
  transform: translateY(-50%);
}

.lead-move-label {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
}

.lead-move-menu .accordion-button {
  color: #181c32;
  background-color: #f9f9f9;
  box-shadow: none;
  font-size: 0.95rem;
  font-weight: 700;
}

.lead-move-menu .accordion-button:not(.collapsed) {
  color: #181c32;
  background-color: #f1faff;
}

.tag-pills-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  max-width: 160px;
}

.tag-pill {
  width: auto;
  max-width: 100%;
  padding: 2px 8px;
  white-space: nowrap;
  line-height: 1.4;
  overflow: hidden;
  text-overflow: ellipsis;
}

.filters-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
  align-items: end;
  margin-bottom: 10px;
}

.filter-item {
  display: flex;
  flex-direction: column;
}

.saved-search-item {
  gap: 0.35rem;
}

.saved-search-dropdown {
  width: 100%;
}

.saved-search-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  white-space: nowrap;
}

.saved-search-dropdown-menu {
  width: 100%;
  min-width: 100%;
  max-width: 100%;
}

.saved-search-list {
  max-height: 220px;
  overflow-y: auto;
  border: 1px solid #e4e6ef;
  border-radius: 0.475rem;
  background: #ffffff;
  padding: 4px;
}

.saved-search-row {
  display: flex;
  align-items: center;
  gap: 6px;
  border-radius: 0.375rem;
  padding: 0 4px 0 0;
  min-width: 0;
}

.saved-search-row + .saved-search-row {
  margin-top: 4px;
}

.saved-search-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  border-radius: 0.375rem;
  padding: 0.55rem 0.65rem;
  white-space: nowrap;
  min-width: 0;
  flex: 1 1 0;
  width: 0;
}

.saved-search-option-label {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.saved-search-row.active {
  background-color: #e8f0ff;
  color: #0a58ca;
}

.saved-search-row.active .saved-search-option {
  background-color: transparent;
  color: inherit;
}

.saved-search-check {
  flex: 0 0 auto;
}

.saved-search-delete {
  flex: 0 0 auto;
}

.saved-search-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 8px;
  width: 100%;
}

.saved-search-actions .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: normal;
  text-align: center;
  line-height: 1.25;
  min-width: 0;
}

#view-content {
  overflow-x: hidden;
}

.search-responders-filter {
  justify-content: flex-end;
}

.search-responders-filter-control {
  justify-content: flex-start;
  min-height: calc(1.5em + 1.65rem + 2px);
}

.search-responders-filter .form-check-input {
  margin-top: 0;
  flex-shrink: 0;
}

.search-responders-filter-label {
  color: #181c32;
  display: inline-flex;
  align-items: center;
  line-height: 1.2;
}

.filters-dropdown-menu {
  min-width: 260px;
  padding: 0.75rem;
}

.filters-dropdown-menu .status-filters-scroll {
  max-height: 260px;
  overflow-y: auto;
  padding-right: 4px;
}

.filters-dropdown-menu .status-filter-btn,
.filters-dropdown-menu .priority-filter-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  margin-bottom: 0.35rem;
}

.filters-dropdown-menu .status-filter-btn label,
.filters-dropdown-menu .priority-filter-btn label {
  margin-bottom: 0;
  cursor: pointer;
}

.prospect-filters-dropdown-menu {
  min-width: 360px;
}

.prospect-filters-section {
  padding-top: 0.5rem;
}

.prospect-filters-dropdown-menu.prospect-filters-tabbed .prospect-filters-section {
  display: none;
}

.prospect-filters-dropdown-menu.prospect-filters-tabbed .prospect-filters-section.active {
  display: block;
}

.prospect-filters-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.4rem;
  margin-bottom: 0.25rem;
}

.prospect-filter-tab-btn {
  border: 1px solid #e4e6ef;
  background: #f5f8fa;
  color: #3f4254;
  font-size: 1rem;
  font-weight: 700;
  padding: 0.5rem 0.6rem;
  line-height: 1.2;
  border-radius: 0.475rem;
  display: flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  cursor: pointer;
}

.prospect-filter-tab-btn:hover {
  background: #eef3f7;
}

.prospect-filter-tab-btn.active {
  background: #0966c2;
  border-color: #0966c2;
  color: #ffffff;
}

.prospect-filter-tab-btn.active .text-danger {
  color: #ffc700 !important;
}

.prospect-tag-filter-menu {
  max-height: 220px;
  overflow-y: auto;
  padding-right: 4px;
}

.find-prospect-filter-list {
  max-height: 180px;
  overflow-y: auto;
  border: 1px solid #e4e6ef;
  border-radius: 0.475rem;
  background: #ffffff;
}

.find-prospect-filter-list .dropdown-item {
  white-space: normal;
}

.color-swatch {
  width: 35px;
  height: 35px;
  border-radius: 8px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.2s ease;
}

.color-swatch.selected {
  border: 3px solid #000;
  box-shadow: 0 0 0 2px #fff inset;
}

.status-item {
  transition: all 0.3s ease;
}

.status-item:hover {
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

.color-swatch {
    width: 35px;
    height: 35px;
    border-radius: 8px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.2s ease;
}

.color-swatch.selected {
    border: 2px solid #000;
    box-shadow: 0 0 0 2px #fff inset;
}

#tagsModal .modal-title,
#tagsModal .form-label,
#tagsModal label {
    color: #000 !important;
}

.pdf-export-hide {
  display: none !important;
}

.pdf-export-show {
  display: block !important;
}

.pdf-page-spacer {
  height: 25mm;
  width: 100%;
}

@media print {
  .pdf-page-spacer {
    display: block;
    page-break-before: always;
  }
}

.status-filter-all {
  background-color: #e5e7eb !important;
  color: #111827 !important;
  border: 1px solid #d1d5db;
}

.dark-check {
  border: 2px solid #333;
}

#campaignSearchFilterMenu {
  min-width: 250px !important;
  width: max-content !important;
  max-width: none !important;
  white-space: nowrap;
  box-sizing: border-box;
  max-height: 60vh;
  overflow-y: auto;
}

.single-line-card {
  display: flex;
  align-items: center;
  gap: 12px;
}

.single-line-card .template-title {
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: 600;
}

.single-line-card .controls {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.apply-tag-to-all {
  opacity: 0.7;
}

.apply-tag-to-all:hover {
  opacity: 1;
  transform: scale(1.1);
}

.custom-card-bg {
  background-color: lightgray;
}

.truncate-text-2 {
  max-width: 230px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.red-star {
  color: red !important;
  margin: 0px 2px 0px 2px;
}

.fit-width {
  width: fit-content;
  max-width: 100%;
  outline: none;
}

.manual-edited {
  background-color: #fff8e1 !important;
}

.lock-icon {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: #f59e0b;
  cursor: pointer;
}

.description-preview {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  cursor: pointer;
}

.text-brown {
  color: #c58205 !important;
}

.tooltip-inner {
  border: 2px solid #0966c2 !important;
}

.tooltip-inner > :first-child {
  margin-top: 0;
}

.tooltip-inner > :last-child {
  margin-bottom: 0;
}

.find-prospect-bulk-panel {
  border: 1px solid #d8e2f1;
  border-radius: 1rem;
  background: linear-gradient(135deg, #f7fbff 0%, #eef6ff 100%);
}

.bulk-priority-select,
.bulk-status-select {
  min-width: 220px;
  border: 1px solid #d8e2f1;
  font-weight: 600;
}

#bulkTagDropdownButton {
  min-width: 220px;
}

#bulkSelectionPanel .dropdown-menu {
  max-height: 280px;
  overflow-y: auto;
}

.prospect-row-selector,
.prospect-select-all {
  width: 18px;
  height: 18px;
  cursor: pointer;
}
.sequence-templates-page .template-row {
  position: relative;
  z-index: 1;
}

.sequence-templates-page .template-row.template-row-dropdown-open {
  z-index: 1200;
}

.sequence-templates-page .template-row.template-row-dropdown-open .template-card,
.sequence-templates-page .template-row.template-row-dropdown-open .dropdown {
  position: relative;
  z-index: 1210;
}

.sequence-templates-page .sequence-template-tags-dropdown .dropdown-menu {
  z-index: 1220 !important;
}

.sequence-templates-page .template-row-dropdown-open .template-card {
  transform: none !important;
}

.sequence-templates-page .tooltip {
  z-index: 2000 !important;
}

.sequence-templates-page .popover {
  z-index: 2001 !important;
}

.sequence-templates-page .popover.template-popover {
  z-index: 2002 !important;
}

.sequence-templates-page .sequence-template-tag-filter-menu {
  min-width: 250px;
  z-index: 2000;
}

.sequence-templates-page .sequence-template-tag-menu {
  min-width: 240px;
  z-index: 2000;
}

.messages-templates-page .message-templates-table tbody tr {
  position: relative;
  z-index: 1;
}

.messages-templates-page .message-templates-table tbody tr.template-row-dropdown-open {
  z-index: 1200;
}

.messages-templates-page .message-templates-table tbody tr.template-row-dropdown-open > td {
  position: relative;
  z-index: 1200;
}

.messages-templates-page .message-templates-table tbody tr.template-row-dropdown-open .template-card {
  overflow: visible;
  position: relative;
  z-index: 1210;
}

.messages-templates-page .message-templates-table tbody tr.template-row-dropdown-open .template-actions,
.messages-templates-page .message-templates-table tbody tr.template-row-dropdown-open .template-tags-dropdown {
  position: relative;
  z-index: 1220;
}

.messages-templates-page .message-templates-table .template-tags-dropdown .dropdown-menu {
  z-index: 1230 !important;
}

.messages-templates-page .message-templates-table .template-row-dropdown-open .template-card {
  transform: none !important;
}

.messages-templates-page .tooltip {
  z-index: 2000 !important;
}

.messages-templates-page .popover {
  z-index: 2001 !important;
}

.messages-templates-page .popover.template-popover {
  z-index: 2002 !important;
}

.messages-templates-page .message-template-search-wrap {
  width: 350px;
}

.messages-templates-page .messages-template-tag-menu {
  min-width: 240px;
  z-index: 2000;
}

.messages-templates-page .messages-template-sequence-tag-filter-menu {
  z-index: 2300 !important;
}

.messages-templates-page .message-templates-table thead .dropdown {
  position: relative;
  z-index: 2200;
}

.messages-templates-page .message-templates-table {
  width: 100%;
  table-layout: fixed;
}

.messages-templates-page .message-templates-table td,
.messages-templates-page .message-templates-table th {
  width: 100%;
}

.messages-templates-page .message-templates-table .template-card {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}

.messages-templates-page .message-templates-table .template-main-content,
.messages-templates-page .message-templates-table .template-text-wrap {
  flex: 1 1 0%;
  min-width: 0;
}

.messages-templates-page .message-templates-table .template-actions {
  flex-shrink: 0;
}

.template-preview-max {
  display: block;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#pageTable tbody tr {
  transition: background-color 0.15s ease, box-shadow 0.15s ease;
}

#pageTable tbody tr.sortable-ghost {
  opacity: 0.5;
}

#pageTable tbody tr.sortable-chosen {
  background: #f8f5ff;
}

#pageTable tbody tr.sortable-drag {
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

.page-order-cell {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  white-space: nowrap;
}

.drag-page-handle {
  width: 30px;
  height: 30px;
  border: 1px solid #e4e6ef;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: grab;
  background: #fff;
  color: #7e8299;
  font-size: 14px;
  line-height: 1;
  user-select: none;
}

.drag-page-handle:active {
  cursor: grabbing;
}

.page-order-badge {
  min-width: 26px;
  height: 26px;
  padding: 0 8px;
  border-radius: 999px;
  background: #eef3f7;
  color: #5e6278;
  font-size: 12px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.card-body {
  padding: 1rem !important;
}

.sequence-tab-toggle.active {
  color: var(--bs-primary) !important;
  border-bottom: 2px solid var(--bs-primary) !important;
  font-weight: 700;
}

.sequence-tab-toggle {
  font-size: 1.3rem !important;
}

/* Scrub pages toolbar */
.scrub-controls-shell {
  position: sticky;
  top: calc(var(--kt-app-header-height, 70px) + 6px);
  z-index: 120;
  width: 100%;
  background: var(--bs-card-bg, #fff);
}

.scrub-controls-grid {
  width: 100%;
}

.scrub-controls-grid .scrub-search-field,
.scrub-controls-grid .scrub-global-search-field {
  position: relative;
  min-width: 0;
}

.scrub-controls-grid .form-control {
  width: 100%;
}

.scrub-input-icon {
  position: absolute;
  left: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  color: #98a2b3;
  pointer-events: none;
  z-index: 2;
}

.scrub-icon-field .form-control {
  min-height: 36px;
  padding-left: 2rem !important;
}

.scrub-action-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
}

.scrub-action-item {
  flex: 0 0 auto;
  min-width: fit-content;
}

.scrub-action-item .btn {
  width: auto;
  white-space: nowrap;
}

.scrub-status-counts h2 {
  margin: 0 !important;
  font-size: 1.25rem !important;
  font-weight: 700;
}

.scrub-status-counts .badge {
  font-size: 1rem !important;
}

.scrub-search-field label {
  display: none;
}

.scrub-global-search-field #clearSearch {
  position: absolute;
  top: 50%;
  right: 0.65rem;
  transform: translateY(-50%);
  z-index: 3;
}

.scrub-table-wrap {
  overflow: hidden;
}

.scrub-table-wrap .dataTables_scrollBody {
  max-height: 58vh !important;
  overflow-y: auto !important;
}

.scrub-table-wrap .dataTables_scrollHeadInner,
.scrub-table-wrap table.dataTable {
  width: 100% !important;
}

@media (max-width: 992px) {
  .scrub-action-item .btn {
    max-width: 100%;
  }
}

:root {
  --sh-highlight: #0966c2;
  --sh-sidebar: #faf9f4;
  --sh-sidebar-active: #0966c2;
  --sh-text: #0f1720;
  --sh-muted: #69737d;
  --sh-border: rgba(15, 23, 32, 0.12);
  --sh-card-shadow: 0 18px 34px rgba(15, 23, 32, 0.18);
}

.home-dashboard-page .bg-blue-linkedin-text,
.admin-home-page .bg-blue-linkedin-text,
#kt_app_sidebar .text-primary {
  color: var(--sh-highlight) !important;
}

.home-dashboard-page .btn-primary,
.admin-home-page .btn-primary {
  background-color: var(--sh-highlight) !important;
}

#kt_app_sidebar {
  background: var(--sh-sidebar) !important;
  border-right: 1px solid rgba(15, 23, 32, 0.08) !important;
  box-shadow: 10px 0 30px rgba(15, 23, 32, 0.08);
}

#kt_app_sidebar_logo {
  min-height: 92px;
  padding: 0.8rem 0.9rem !important;
  border-bottom: 0;
}

#kt_app_sidebar_logo > a:first-child {
  margin: 0 !important;
}

#kt_app_sidebar_logo .app-sidebar-logo-default {
  height: 72px !important;
  max-width: 220px;
  object-fit: contain;
}

#kt_app_sidebar_logo > a[data-bs-target="#sidebarModal"] {
  display: inline-flex;
  width: 20px;
  height: 20px;
  align-items: center;
  justify-content: center;
  margin-left: 0.4rem;
  border-radius: 50%;
  background: #87919a;
  color: #ffffff;
}

#kt_app_sidebar_logo > a[data-bs-target="#sidebarModal"] i {
  color: #ffffff;
  font-size: 0.75rem !important;
}

#kt_app_sidebar_toggle {
  width: 30px !important;
  height: 30px !important;
  border: 1px solid rgba(15, 23, 32, 0.08) !important;
  border-radius: 6px !important;
  background: #ffffff !important;
  box-shadow: 0 7px 16px rgba(15, 23, 32, 0.16) !important;
}

#kt_app_sidebar_menu_scroll {
  margin: 0 !important;
  padding: 0 0.45rem 1rem;
}

#kt_app_sidebar .menu {
  gap: 0.18rem;
}

#kt_app_sidebar .menu-item .menu-link {
  min-height: 42px;
  margin: 0.12rem 0;
  padding: 0.58rem 0.65rem !important;
  border-radius: 6px !important;
  color: var(--sh-text) !important;
  transition: background-color 0.14s ease, color 0.14s ease, transform 0.14s ease;
}

#kt_app_sidebar .menu-item .menu-icon {
  width: 2.2rem;
  min-width: 2.2rem;
  color: #6d7882 !important;
}

#kt_app_sidebar .menu-item .menu-icon i {
  font-size: 1.22rem !important;
}

#kt_app_sidebar .menu-item .menu-icon i,
#kt_app_sidebar .menu-item .menu-title,
#kt_app_sidebar .menu-item .menu-link .text-white,
#kt_app_sidebar .menu-item .menu-link i.text-white {
  color: var(--sh-text) !important;
}

#kt_app_sidebar .menu-item .menu-title {
  font-size: 1.12rem !important;
  font-weight: 500;
  letter-spacing: 0;
}

#kt_app_sidebar .menu-item.mt-4 > .menu-link {
  margin-top: 0.75rem;
  background: transparent !important;
}

#kt_app_sidebar .menu-item.mt-4 > .menu-link .menu-title {
  color: #53606a !important;
  font-size: 0.96rem !important;
  font-weight: 800;
  text-transform: uppercase;
}

#kt_app_sidebar .menu .menu-item.hover:not(.here) > a.menu-link[href]:not(.disabled):not(.active):not(.here),
#kt_app_sidebar .menu .menu-item:not(.here) a.menu-link[href]:hover:not(.disabled):not(.active):not(.here),
#kt_app_sidebar .menu-item .menu-link:hover,
#kt_app_sidebar .menu-item .menu-link.active,
#kt_app_sidebar .menu-item .menu-link.here,
body.home-dashboard-page #kt_app_sidebar a.menu-link[href="/"],
body.admin-home-page #kt_app_sidebar a.menu-link[href="/home-page"] {
  background: var(--sh-sidebar-active) !important;
  color: #ffffff !important;
  transform: none;
}

#kt_app_sidebar .menu-item .menu-link:hover .menu-icon,
#kt_app_sidebar .menu-item .menu-link:hover .menu-icon i,
#kt_app_sidebar .menu-item .menu-link:hover .menu-title,
#kt_app_sidebar .menu-item .menu-link:hover .text-white,
#kt_app_sidebar .menu-item .menu-link.active .menu-icon,
#kt_app_sidebar .menu-item .menu-link.active .menu-icon i,
#kt_app_sidebar .menu-item .menu-link.active .menu-title,
#kt_app_sidebar .menu-item .menu-link.active .text-white,
#kt_app_sidebar .menu-item .menu-link.here .menu-icon,
#kt_app_sidebar .menu-item .menu-link.here .menu-icon i,
#kt_app_sidebar .menu-item .menu-link.here .menu-title,
#kt_app_sidebar .menu-item .menu-link.here .text-white {
  color: #ffffff !important;
}

#kt_app_sidebar .menu-sub {
  margin-left: 0.7rem;
  padding-left: 0.55rem;
  border-left: 1px solid rgba(15, 23, 32, 0.12);
}

#kt_app_sidebar hr {
  border-color: rgba(15, 23, 32, 0.12) !important;
}

.home-dashboard-page,
.admin-home-page,
.administration-reports-page {
  background: #eef3f8;
}

.home-dashboard-page #view-content,
.admin-home-page #view-content,
.administration-reports-page #view-content {
  position: relative;
  min-height: calc(100vh - 64px);
  overflow: hidden;
  padding: 3.75rem 1.25rem 2rem;
  background:
    linear-gradient(180deg, rgba(245, 248, 251, 0.72), rgba(235, 241, 247, 0.84)),
    #eef3f8;
}

.home-dashboard-page #view-content::before,
.administration-reports-page #view-content::before {
  content: "";
  position: absolute;
  inset: 4rem 4rem 2rem 4rem;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 26% 38%, rgba(28, 112, 123, 0.32) 0 4rem, transparent 8rem),
    radial-gradient(ellipse at 56% 64%, rgba(64, 94, 108, 0.22) 0 4.2rem, transparent 8rem),
    radial-gradient(ellipse at 77% 28%, rgba(9, 102, 194, 0.18) 0 4rem, transparent 8rem),
    radial-gradient(ellipse at 85% 58%, rgba(28, 112, 123, 0.28) 0 3.2rem, transparent 7rem),
    linear-gradient(90deg, transparent 0 16%, rgba(255, 255, 255, 0.55) 16% 18%, transparent 18% 34%, rgba(255, 255, 255, 0.5) 34% 36%, transparent 36% 100%);
  filter: blur(16px);
  opacity: 0.55;
}

.home-dashboard-page #view-content::after,
.administration-reports-page #view-content::after {
  content: "";
  position: absolute;
  right: 1.9rem;
  bottom: 1.7rem;
  width: 46px;
  height: 46px;
  pointer-events: none;
  background: #ffffff;
  clip-path: polygon(50% 0, 61% 34%, 100% 50%, 61% 66%, 50% 100%, 39% 66%, 0 50%, 39% 34%);
  opacity: 0.8;
}

.home-dashboard-page #view-content > *,
.admin-home-page #view-content > *,
.administration-reports-page #view-content > * {
  position: relative;
  z-index: 1;
}

.home-dashboard-shell {
  width: min(100%, 980px);
  margin: 0 auto;
}

.home-refresh-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2.3rem;
}

#refreshBtn.homeRefresh {
  min-height: 54px;
  padding: 0.8rem 1.8rem;
  border: 1px solid rgba(16, 126, 62, 0.28);
  border-radius: 6px;
  background: #3b9853;
  color: #ffffff;
  box-shadow: 0 4px 7px rgba(0, 0, 0, 0.22);
  font-size: 1.22rem;
  font-weight: 600;
}

#refreshBtn.homeRefresh:hover,
#refreshBtn.homeRefresh:focus {
  background: #2f8646 !important;
  color: #ffffff !important;
}

.home-last-refresh {
  color: #20252b;
  font-size: 1.22rem;
  font-weight: 400;
}

.home-last-refresh span {
  font-weight: 500;
}

.home-dashboard-heading {
  width: min(100%, 980px);
  margin: 0 auto 1.75rem;
  text-align: center;
}

.home-dashboard-heading h2 {
  margin: 0;
  color: #07111e;
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: 0;
}

.home-dashboard-heading p {
  margin: 0;
  color: #111827;
  font-size: 1.8rem;
  font-weight: 400;
}

.home-task-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 1.35rem;
  align-items: stretch;
}

.home-task-card {
  height: 100%;
  min-height: 225px;
  padding: 1.75rem 1.9rem 1.35rem;
  border: 1px solid rgba(15, 23, 32, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--sh-card-shadow);
  backdrop-filter: blur(10px);
}

.home-task-card h3 {
  margin: 0 0 0.5rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid rgba(15, 23, 32, 0.13);
  color: #111111;
  font-size: 1.85rem;
  font-weight: 700;
  letter-spacing: 0;
}

.home-task-row {
  display: flex;
  min-height: 48px;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.65rem 0;
  border-bottom: 1px solid rgba(15, 23, 32, 0.12);
  color: #111111;
  font-size: 1.28rem;
  font-weight: 400;
  text-decoration: none;
}

.home-task-row:last-child {
  border-bottom: 0;
}

.home-task-row:hover {
  color: var(--sh-highlight);
  font-weight: 700;
}

.home-task-row.disabled-btn {
  opacity: 0.55;
  pointer-events: none;
}

.home-task-row-urgent {
  color: var(--sh-highlight);
  font-weight: 700;
}

.home-count {
  flex: 0 0 auto;
  min-width: 34px;
  padding: 0.24rem 0.58rem;
  border-radius: 6px;
  background: linear-gradient(180deg, var(--sh-highlight), #07539e);
  color: #ffffff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22), 0 2px 5px rgba(15, 23, 32, 0.2);
  font-size: 1.08rem;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
}

.home-action-card {
  width: min(100%, 760px) !important;
  margin: 0 auto !important;
  border: 1px solid rgba(15, 23, 32, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--sh-card-shadow);
}

.home-action-card .card-header {
  justify-content: flex-start !important;
  border-bottom: 1px solid rgba(15, 23, 32, 0.12);
}

.home-action-card .card-header h1 {
  color: #07111e;
  font-size: 1.55rem !important;
}

.home-action-card .btn.w-100 {
  min-height: 42px;
  border-radius: 6px;
  background: #ffffff !important;
  color: #111111 !important;
  border: 1px solid rgba(15, 23, 32, 0.12);
  text-align: left;
}

.home-action-card .btn.w-100:hover {
  color: var(--sh-highlight) !important;
  border-color: rgba(9, 102, 194, 0.35);
  font-weight: 700;
}

.admin-frequent-card .btn.w-100:hover {
  background: var(--sh-highlight) !important;
  color: #ffffff !important;
}

.admin-home-page #view-content {
  align-items: center;
}

.admin-home-page #view-content > .card {
  width: min(100%, 760px);
  margin: 0 auto !important;
  border: 1px solid rgba(15, 23, 32, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--sh-card-shadow);
}

.admin-home-page #view-content > .card .card-body {
  padding: 1.5rem !important;
}

.admin-home-page #view-content > .card h2,
.admin-home-page #view-content > .card h4 {
  color: #07111e !important;
}

.admin-home-page #view-content > .card a {
  color: var(--sh-highlight) !important;
}

@media (max-width: 991.98px) {
  .home-dashboard-page #view-content,
  .admin-home-page #view-content,
  .administration-reports-page #view-content {
    padding: 1.25rem 0.85rem;
  }

  .home-dashboard-page #view-content::before,
  .administration-reports-page #view-content::before {
    inset: 2rem 1rem;
  }

  .home-task-grid {
    grid-template-columns: 1fr;
  }
}

/* Listing page redesign */
.listing-redesign {
  --listing-primary: #0966c2;
  --listing-ink: #120b3d;
  --listing-muted: #625f7c;
  --listing-line: #c9d1df;
  --listing-line-strong: #9ba8ba;
  --listing-surface: #ffffff;
  color: var(--listing-ink);
}

.listing-stats-card,
.listing-toolbar-card,
.listing-table-card {
  border: 1px solid var(--listing-line) !important;
  border-radius: 8px !important;
  background: var(--listing-surface);
  box-shadow: 0 8px 24px rgba(33, 21, 81, 0.06);
}

.listing-stats-card {
  display: grid;
  grid-template-columns: repeat(var(--listing-stat-columns, 4), minmax(0, 1fr));
  align-items: center;
  margin-bottom: 1rem;
  padding: 1.35rem 1.5rem;
}

.listing-stats-card-cols-2 {
  --listing-stat-columns: 2;
}

.listing-stats-card-cols-3 {
  --listing-stat-columns: 3;
}

.listing-tabs-card {
  border-bottom: 1px solid var(--listing-line);
  margin-bottom: 1rem;
}

.listing-tabs-card .nav {
  border: 0 !important;
}

.listing-stat-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-width: 0;
  padding: 0 1.3rem;
  border-right: 1px solid var(--listing-line);
}

.listing-stat-item:first-child {
  padding-left: 0;
}

.listing-stat-item:last-child {
  border-right: 0;
  padding-right: 0;
}

.listing-stat-icon {
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  border: 1px solid var(--listing-line);
  border-radius: 50%;
  color: var(--listing-primary);
  background: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.listing-stat-icon-warning {
  color: #f28b18;
}

.listing-stat-icon-danger {
  color: #dc3545;
}

.listing-stat-button {
  background: var(--listing-primary);
  border-color: var(--listing-primary);
  color: #ffffff;
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.listing-stat-button:hover {
  border-color: rgba(9, 102, 194, 0.38);
  box-shadow: 0 6px 16px rgba(9, 102, 194, 0.14);
}

.listing-stat-button:disabled {
  opacity: 0.75;
  cursor: progress;
}

.listing-stat-button .spinner-border {
  color: #ffffff !important;
}

.listing-stat-copy {
  min-width: 0;
}

.listing-stat-copy span,
.listing-filter-section label {
  display: block;
  color: var(--listing-muted);
  font-size: 0.93rem;
  font-weight: 700;
  line-height: 1.2;
}

.listing-stat-copy strong {
  display: block;
  margin-top: 0.35rem;
  color: var(--listing-ink);
  font-size: 1.04rem;
  font-weight: 800;
  line-height: 1.25;
}

.listing-followup-control {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-top: 0.28rem;
}

.listing-followup-control input {
  width: 50px;
  height: 34px;
  border: 1px solid var(--listing-line);
  border-radius: 6px;
  color: var(--listing-ink);
  font-weight: 800;
  text-align: center;
}

.listing-toolbar-card {
  position: relative;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  margin-bottom: 1rem;
  padding: 1rem 1.25rem;
}

.listing-action-row,
.listing-search-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-width: 0;
}

.listing-action-row {
  flex-wrap: wrap;
  flex: 0 0 auto;
  order: 1;
}

.listing-action-row:empty {
  display: none;
}

.listing-search-row {
  margin-left: auto;
  flex: 0 0 auto;
  order: 3;
}

.listing-action-item {
  display: inline-flex;
}

.listing-action-btn,
.listing-filter-btn,
.listing-reset-btn,
.listing-filter-select-proxy {
  border: 1px solid var(--listing-line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--listing-ink);
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  min-height: 42px;
  line-height: 1;
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.listing-action-btn {
  min-width: 152px;
  padding: 0.75rem 1.2rem;
  cursor: pointer;
}

.listing-action-btn:hover,
.listing-filter-btn:hover,
.listing-reset-btn:hover,
.listing-filter-select-proxy:hover {
  color: var(--listing-primary);
  border-color: rgba(9, 102, 194, 0.34);
  box-shadow: 0 6px 16px rgba(24, 16, 62, 0.06);
}

.listing-action-btn.dropdown-toggle {
  background: #ffffff !important;
  color: var(--listing-ink) !important;
}

.listing-action-btn-primary,
.listing-action-btn-primary.dropdown-toggle {
  background: var(--listing-primary) !important;
  border-color: var(--listing-primary) !important;
  color: #ffffff !important;
  box-shadow: 0 7px 18px rgba(9, 102, 194, 0.22);
}

.listing-action-btn-primary:hover {
  background: #0756a3 !important;
  color: #ffffff !important;
}

.listing-count-btn {
  width: 42px;
  height: 42px;
  min-width: 42px;
  border: 1px solid var(--listing-line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--listing-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.listing-count-btn:hover {
  border-color: rgba(9, 102, 194, 0.34);
  background: #f8f7fb;
  box-shadow: 0 6px 16px rgba(24, 16, 62, 0.06);
}

.listing-action-btn-danger,
.listing-action-btn-success,
.listing-action-btn-info,
.listing-action-btn-warning {
  color: #ffffff !important;
}

.listing-action-btn-danger {
  background: #dc3545 !important;
  border-color: #dc3545 !important;
}

.listing-action-btn-success {
  background: #198754 !important;
  border-color: #198754 !important;
}

.listing-action-btn-info {
  background: #0dcaf0 !important;
  border-color: #0dcaf0 !important;
  color: #102a43 !important;
}

.listing-action-btn-warning {
  background: #ffc107 !important;
  border-color: #ffc107 !important;
  color: #102a43 !important;
}

.listing-action-btn-danger:hover {
  background: #bb2d3b !important;
  border-color: #bb2d3b !important;
  color: #ffffff !important;
}

.listing-action-btn-success:hover {
  background: #157347 !important;
  border-color: #157347 !important;
  color: #ffffff !important;
}

.listing-action-btn-info:hover {
  background: #31d2f2 !important;
  border-color: #25cff2 !important;
  color: #102a43 !important;
}

.listing-action-btn-warning:hover {
  background: #ffca2c !important;
  border-color: #ffc720 !important;
  color: #102a43 !important;
}

.listing-filter-indicator {
  position: absolute;
  top: 5px;
  right: 10px;
  color: #ffffff !important;
}

.listing-filter-indicator-dark {
  position: absolute;
  top: 4px;
  right: 26px;
  color: #dc3545 !important;
  font-weight: 900;
}

.listing-filter-indicator-hidden {
  display: none;
}

.listing-search-field {
  position: relative;
  width: min(34vw, 360px);
  min-width: 250px;
}

.listing-search-field > i {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: #7b7893;
  z-index: 2;
}

.listing-search-field .form-control {
  height: 42px;
  border: 1px solid var(--listing-line);
  border-radius: 8px;
  background: #f8f7fb !important;
  padding-left: 2.75rem !important;
  padding-right: 2.5rem !important;
}

.listing-search-field #clearSearch {
  position: absolute;
  right: 0.9rem;
  top: 50%;
  transform: translateY(-50%);
  color: #7b7893;
  z-index: 2;
}

.listing-filter-btn {
  position: relative;
  width: 42px;
  min-width: 42px;
  padding: 0;
  background: var(--listing-primary);
  border-color: var(--listing-primary);
  color: #ffffff;
}

.listing-filter-active-star {
  position: absolute;
  top: 1px;
  right: 5px;
  color: #dc3545 !important;
  font-size: 1.35rem;
  font-weight: 900;
  line-height: 1;
  text-shadow: 0 1px 0 #ffffff, 1px 0 0 #ffffff, 0 -1px 0 #ffffff, -1px 0 0 #ffffff;
  z-index: 2;
}

.listing-filter-btn:hover {
  background: #0756a3;
  border-color: #0756a3;
  color: #ffffff;
}

.listing-quick-filter-panel {
  position: absolute;
  top: calc(100% + 0.65rem);
  right: 0;
  width: 340px;
  max-width: calc(100vw - 2rem);
  max-height: calc(100vh - 180px);
  padding: 1.25rem;
  border: 1px solid var(--listing-line-strong);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 18px 42px rgba(31, 23, 64, 0.16);
  z-index: 1050;
  overflow-y: auto;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
}

.listing-quick-filter-panel.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.listing-filter-header,
.listing-filter-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
}

.listing-filter-header h3 {
  margin: 0;
  color: var(--listing-ink);
  font-size: 1.2rem;
  font-weight: 900;
}

.listing-filter-close {
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--listing-ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.listing-filter-section {
  margin-top: 1.35rem;
}

.listing-filter-section .form-control {
  min-height: 42px;
  border: 1px solid var(--listing-line-strong);
  border-radius: 8px;
  color: var(--listing-ink);
  font-weight: 700;
}

.listing-filter-section label {
  margin-bottom: 0.7rem;
  color: var(--listing-ink);
  font-size: 1rem;
  font-weight: 900;
}

.listing-filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.listing-filter-pills button {
  min-height: 36px;
  border: 1px solid var(--listing-line-strong);
  border-radius: 6px;
  background: #ffffff;
  color: var(--listing-ink);
  font-size: 0.96rem;
  font-weight: 800;
  padding: 0.55rem 0.78rem;
}

.listing-filter-pills button.active {
  background: var(--listing-primary);
  border-color: var(--listing-primary);
  color: #ffffff;
}

.listing-filter-pills button.danger {
  color: #ea4138;
}

.listing-filter-pills button.warning {
  color: #f29935;
}

.listing-filter-pills button.success {
  color: #039855;
}

.listing-filter-pills button.active.danger,
.listing-filter-pills button.active.warning,
.listing-filter-pills button.active.success {
  color: #ffffff;
}

.listing-filter-pills[data-filter-group="priority"] button[data-filter-value="1"] {
  background: rgb(181, 255, 181);
  border-color: rgb(132, 232, 151);
  color: #000000;
}

.listing-filter-pills[data-filter-group="find-prospect-priority"] button[data-filter-value="1"] {
  background: rgb(181, 255, 181);
  border-color: rgb(132, 232, 151);
  color: #000000;
}

.listing-filter-pills[data-filter-group="priority"] button[data-filter-value="2"] {
  background: rgb(255, 255, 158);
  border-color: rgb(238, 224, 112);
  color: #000000;
}

.listing-filter-pills[data-filter-group="find-prospect-priority"] button[data-filter-value="2"] {
  background: rgb(255, 255, 158);
  border-color: rgb(238, 224, 112);
  color: #000000;
}

.listing-filter-pills[data-filter-group="priority"] button[data-filter-value="3"] {
  background: rgb(255, 217, 146);
  border-color: rgb(238, 190, 101);
  color: #000000;
}

.listing-filter-pills[data-filter-group="find-prospect-priority"] button[data-filter-value="3"] {
  background: rgb(255, 217, 146);
  border-color: rgb(238, 190, 101);
  color: #000000;
}

.listing-filter-pills[data-filter-group="priority"] button[data-filter-value="0"] {
  background: #ffffff;
  border-color: var(--listing-line-strong);
  color: #000000;
}

.listing-filter-pills[data-filter-group="find-prospect-priority"] button[data-filter-value="0"] {
  background: #ffffff;
  border-color: var(--listing-line-strong);
  color: #000000;
}

.listing-filter-pills[data-filter-group="priority"] button.active:not([data-filter-value=""]) {
  box-shadow: inset 0 0 0 2px var(--listing-primary);
  color: #000000;
}

.listing-filter-pills[data-filter-group="find-prospect-priority"] button.active:not([data-filter-value=""]) {
  box-shadow: inset 0 0 0 2px var(--listing-primary);
  color: #000000;
}

.listing-filter-pills[data-filter-group="status"] button.is-star-filter,
.listing-filter-pills[data-filter-group="response-status"] button.is-star-filter {
  min-width: 40px;
}

.listing-filter-pills[data-filter-group="status"] button.is-star-filter i,
.listing-filter-pills[data-filter-group="response-status"] button.is-star-filter i {
  color: #f5a400;
}

.listing-filter-select-proxy,
.listing-filter-section .form-select {
  width: 100%;
  min-height: 42px;
  justify-content: space-between;
  color: var(--listing-ink);
  font-size: 0.98rem;
  padding: 0.65rem 0.85rem;
}

.listing-panel-dropdown {
  width: 100%;
}

.listing-panel-dropdown-toggle.dropdown-toggle {
  background: #ffffff !important;
  color: var(--listing-ink) !important;
  border-color: var(--listing-line-strong) !important;
}

.listing-panel-dropdown-toggle.dropdown-toggle::after {
  margin-left: auto;
}

.listing-quick-filter-panel .listing-panel-dropdown > .dropdown-menu,
.listing-quick-filter-panel .listing-panel-dropdown > .dropdown-menu.show {
  position: static !important;
  inset: auto !important;
  transform: none !important;
  margin-top: 0.55rem !important;
}

.listing-quick-filter-panel #campaignFilterMenu,
.listing-quick-filter-panel #tagFilterMenu,
.listing-quick-filter-panel #relationshipFilterMenu {
  min-width: 100% !important;
  width: 100% !important;
  max-width: 100% !important;
  white-space: normal !important;
  box-sizing: border-box;
  padding: 0.85rem !important;
  overflow: hidden auto !important;
}

.listing-quick-filter-panel #campaignFilterMenu,
.listing-quick-filter-panel #relationshipFilterMenu {
  max-height: 270px !important;
}

.listing-quick-filter-panel #tagFilterMenu {
  max-height: 235px !important;
}

.listing-tag-menu {
  min-width: 260px;
}

.listing-filter-dropdown-menu {
  width: 100% !important;
  min-width: 100% !important;
  max-width: 100% !important;
  max-height: 250px !important;
  padding: 0.85rem !important;
  border: 1px solid var(--listing-line-strong) !important;
  border-radius: 8px !important;
  overflow: hidden auto !important;
  box-shadow: none !important;
}

.listing-filter-dropdown-menu .dropdown-item {
  border-radius: 6px;
  font-size: 0.96rem;
  font-weight: 800;
  white-space: normal;
}

.listing-quick-filter-panel .campaign-dropdown-item {
  width: 100%;
  min-width: 0;
  margin-left: 0 !important;
  margin-right: 0 !important;
  padding: 0.55rem 0.25rem !important;
  gap: 0.65rem !important;
  align-items: center !important;
  flex-wrap: nowrap !important;
  white-space: normal !important;
  box-sizing: border-box;
}

.listing-quick-filter-panel #relationshipFilterMenu .dropdown-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  width: 100%;
  min-width: 0;
  padding: 0.55rem 0.25rem !important;
  white-space: normal !important;
  box-sizing: border-box;
}

.listing-quick-filter-panel #relationshipFilterMenu .relationship-checkbox {
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  margin: 0 !important;
}

.listing-quick-filter-panel #relationshipFilterMenu label {
  flex: 1 1 auto;
  min-width: 0;
  margin: 0 !important;
  white-space: normal !important;
  overflow-wrap: anywhere;
}

.listing-quick-filter-panel .campaign-dropdown-item .campaign-checkbox,
.listing-quick-filter-panel .campaign-dropdown-item .exclude-checkbox,
.listing-quick-filter-panel .campaign-dropdown-item .section-select-all {
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  margin: 0 !important;
}

.listing-quick-filter-panel .form-check-label.label-black {
  flex: 1 1 auto;
  min-width: 0;
  margin: 0 !important;
  padding: 0 !important;
  white-space: normal !important;
  line-height: 1.25;
  overflow-wrap: anywhere;
  font-size: 0.96rem;
}

.listing-quick-filter-panel .campaign-heading,
.listing-quick-filter-panel .campaigns-heading {
  margin: 0.25rem 0 0.35rem !important;
  padding: 0 0.25rem !important;
}

.campaign-heading-label,
.listing-quick-filter-panel .campaign-heading .fw-bold.text-dark,
.listing-quick-filter-panel .campaigns-heading .fw-bold.text-dark {
  color: var(--listing-ink) !important;
  font-size: 0.96rem;
  font-weight: 900 !important;
}

.campaign-heading-label-list,
.listing-quick-filter-panel .campaigns-heading-list .campaign-heading-label,
.find-prospect-quick-filter-panel #campaignSearchFilterMenu .dropdown-header:nth-of-type(2) {
  color: var(--listing-primary) !important;
}

.listing-quick-filter-panel .campaign-heading .campaign-heading-label,
.listing-quick-filter-panel .campaigns-heading .campaign-heading-label {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  padding: 0 !important;
}

.listing-quick-filter-panel .filters-dropdown-menu,
.listing-quick-filter-panel .prospect-filters-dropdown-menu,
.listing-quick-filter-panel .filter-btn {
  position: static !important;
  display: block !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  padding: 0 !important;
  border: 0 !important;
  box-shadow: none !important;
  transform: none !important;
}

.listing-quick-filter-panel .prospect-filters-tabs {
  display: none !important;
}

.listing-quick-filter-panel .prospect-filters-section {
  display: block !important;
  margin-top: 0.9rem;
}

.listing-quick-filter-panel .prospect-filters-section:first-of-type {
  margin-top: 0;
}

.listing-quick-filter-panel .prospect-filters-section[data-tab-panel]::before {
  display: block;
  margin-bottom: 0.7rem;
  color: var(--listing-ink);
  font-size: 1rem;
  font-weight: 900;
}

.listing-quick-filter-panel .prospect-filters-section[data-tab-panel="priority"]::before {
  content: "Priority";
}

.listing-quick-filter-panel .prospect-filters-section[data-tab-panel="status"]::before {
  content: "Status";
}

.listing-quick-filter-panel .prospect-filters-section[data-tab-panel="tags"]::before {
  content: "Prospect Tags";
}

.listing-quick-filter-panel .priority-filter-btn,
.listing-quick-filter-panel .status-filter-btn {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 0.55rem;
  width: 100%;
  margin: 0 0 0.55rem !important;
  border: 1px solid var(--listing-line-strong) !important;
  border-radius: 6px !important;
  font-size: 0.96rem;
  font-weight: 800;
  text-align: left;
}

.listing-quick-filter-panel .status-filter-btn .filter-checkbox {
  flex: 0 0 auto;
  margin: 0 !important;
}

.listing-quick-filter-panel .status-filter-btn label {
  display: inline-flex;
  align-items: center;
  flex: 1 1 auto;
  min-width: 0;
  margin: 0 !important;
  line-height: 1.2;
}

.listing-quick-filter-panel .priority-filter-btn.active,
.listing-quick-filter-panel .status-filter-btn.active {
  box-shadow: inset 0 0 0 2px var(--listing-primary);
}

.listing-filter-footer {
  margin-top: 1.65rem;
}

.listing-filter-nav-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  padding-top: 1.35rem;
  border-top: 1px solid var(--listing-line-strong);
}

.listing-filter-nav-actions .listing-action-btn {
  width: 100%;
  min-width: 0;
  justify-content: center;
  padding-left: 0.65rem;
  padding-right: 0.65rem;
}

.listing-filter-nav-actions .listing-action-btn:only-child {
  grid-column: 1 / -1;
  justify-content: center;
}

.manage-prospects-actions {
  grid-template-columns: 1fr;
}

.manage-prospects-redesign .listing-toolbar-card {
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 0.85rem;
}

.manage-prospects-redesign .listing-search-row {
  order: 2;
  margin-left: 0;
}

.manage-prospects-inline-filters {
  order: 1;
  flex: 1 1 560px;
  display: grid;
  grid-template-columns: repeat(3, minmax(145px, 1fr));
  gap: 0.75rem;
  min-width: 0;
}

.manage-prospects-inline-field {
  min-width: 0;
}

.manage-prospects-inline-field .form-control {
  height: 42px;
  border: 1px solid var(--listing-line);
  border-radius: 8px;
  background: #f8f7fb !important;
  color: var(--listing-ink);
  font-weight: 700;
}

.manage-prospects-toolbar-actions {
  order: 2;
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem;
  margin-left: auto;
  flex: 0 0 auto;
}

.manage-prospects-redesign .listing-toolbar-card .listing-active-filters {
  order: 3;
  flex: 1 0 100%;
}

.listing-count-modal-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}

.listing-count-modal-item {
  min-width: 0;
  border: 1px solid var(--listing-line);
  border-radius: 8px;
  padding: 1rem;
  background: #f8f7fb;
}

.listing-count-modal-item span {
  display: block;
  color: var(--listing-muted);
  font-size: 0.92rem;
  font-weight: 800;
  line-height: 1.2;
}

.listing-count-modal-item strong {
  display: block;
  margin-top: 0.35rem;
  color: var(--listing-ink);
  font-size: 1.35rem;
  font-weight: 900;
  line-height: 1.1;
}

.listing-reset-btn {
  flex: 1 1 auto;
  min-height: 42px;
  font-size: 0.98rem;
  padding: 0.72rem 0.9rem;
}

.listing-quick-filter-panel .listing-reset-btn {
  width: 100%;
}

.listing-active-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  min-height: 0;
  margin: 0 0 1rem;
}

.listing-toolbar-card .listing-active-filters {
  order: 2;
  flex: 1 1 auto;
  margin: 0;
}

.listing-active-filters.is-empty {
  display: none;
}

.listing-filter-chip {
  min-height: 30px;
  min-width: 0;
  max-width: 100%;
  border: 1px solid rgba(9, 102, 194, 0.24);
  border-radius: 999px;
  background: rgba(9, 102, 194, 0.08);
  color: var(--listing-ink);
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1.2;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem 0.6rem 0.35rem 0.75rem;
  cursor: pointer;
}

.listing-filter-chip span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.listing-filter-chip i {
  color: var(--listing-primary);
  flex: 0 0 auto;
}

.listing-filter-chip:hover {
  border-color: rgba(9, 102, 194, 0.42);
  background: rgba(9, 102, 194, 0.12);
}

.listing-table-card .card-body {
  padding: 1rem !important;
}

.listing-table-card .dataTables_length {
  margin-bottom: 1rem;
}

.listing-table-card .dataTables_length select {
  border: 1px solid var(--listing-line);
  border-radius: 8px;
  color: var(--listing-ink);
  font-weight: 800;
}

.listing-redesign #toggleSwitch {
  cursor: pointer;
}

.listing-redesign .form-check.form-switch {
  margin-top: 1rem;
}

.find-prospect-toolbar-card {
  align-items: flex-start;
}

.find-prospect-toolbar-form {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 1rem;
  width: 100%;
}

.find-prospect-primary-filters {
  order: 1;
  flex: 1 1 760px;
  grid-template-columns: repeat(auto-fit, minmax(175px, 1fr));
  gap: 0.85rem;
  margin-bottom: 0;
  align-items: center;
}

.find-prospect-primary-filters .form-label {
  color: var(--listing-ink);
  font-size: 0.95rem;
  font-weight: 800;
  margin-bottom: 0.45rem;
}

.find-prospect-primary-filters .filter-item:not(.search-responders-filter) > .form-label {
  display: none;
}

.find-prospect-primary-filters .search-responders-filter > .form-label {
  display: none;
}

.find-prospect-primary-filters .form-control {
  min-height: 42px;
  border: 1px solid var(--listing-line);
  border-radius: 8px;
  background: #f8f7fb !important;
  color: var(--listing-ink);
  font-weight: 700;
}

.find-prospect-primary-filters .input-clear-btn {
  color: #7b7893;
}

.find-prospect-toolbar-card .find-prospect-active-filters {
  order: 2;
  flex: 1 0 100%;
  align-self: center;
}

.find-prospect-quick-filter-toggle {
  order: 1;
  align-self: flex-end;
}

.find-prospect-quick-filter-toggle i {
  color: #ffffff;
}

.find-prospect-quick-filters-grid {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: 0;
}

.find-prospect-quick-filter-panel .find-prospect-filter-section {
  width: 100%;
  margin-top: 1.35rem;
}

.find-prospect-quick-filter-panel {
  width: 380px;
}

.find-prospect-quick-filters-grid .filter-item,
.find-prospect-quick-filter-panel .find-prospect-filter-section {
  min-width: 0;
}

.find-prospect-quick-filter-panel .listing-filter-select-proxy,
.find-prospect-quick-filter-panel .listing-reset-btn {
  border-color: var(--listing-line-strong) !important;
  font-size: 1rem;
}

.find-prospect-quick-filter-panel .listing-filter-select-proxy {
  min-height: 42px;
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--listing-line-strong) !important;
  border-radius: 8px !important;
  background: #ffffff !important;
  color: var(--listing-ink) !important;
  box-shadow: none !important;
}

.find-prospect-quick-filter-panel .listing-reset-btn {
  color: var(--listing-ink);
}

.find-prospect-quick-filter-panel .listing-reset-btn i {
  color: #7b7893;
}

.find-prospect-quick-filter-panel .listing-panel-dropdown-toggle {
  width: 100% !important;
  display: flex !important;
  align-items: center;
  justify-content: space-between !important;
  text-align: left;
  line-height: 1.2;
}

.find-prospect-quick-filter-panel .listing-panel-dropdown-toggle.dropdown-toggle::after {
  margin-left: auto;
}

.find-prospect-quick-filter-panel .find-prospect-reset-section {
  padding-top: 1.35rem;
  border-top: 1px solid var(--listing-line-strong);
}

.find-prospect-quick-filter-panel .dropdown-menu {
  border: 1px solid var(--listing-line-strong) !important;
  border-radius: 8px !important;
}

.find-prospect-quick-filter-panel #campaignSearchFilterMenu,
.find-prospect-quick-filter-panel #locationFilterContainer,
.find-prospect-quick-filter-panel #linkStatusFilterContainer,
.find-prospect-quick-filter-panel #savedFindProspectDropdownMenu {
  min-width: 100% !important;
  width: 100% !important;
  max-width: 100% !important;
  max-height: 260px !important;
  overflow: hidden auto !important;
  padding: 0.75rem !important;
  white-space: normal !important;
  box-shadow: none !important;
}

.find-prospect-quick-filter-panel .prospect-filters-dropdown-menu {
  max-height: none !important;
  overflow: visible !important;
}

.find-prospect-quick-filter-panel .find-prospect-filter-list {
  width: 100% !important;
  min-width: 100% !important;
  max-width: 100% !important;
  max-height: 215px;
  padding: 0.75rem !important;
  border-color: var(--listing-line-strong);
  overflow: hidden auto !important;
  box-shadow: none !important;
}

.find-prospect-quick-filter-panel .find-prospect-filter-list .dropdown-item,
.find-prospect-quick-filter-panel #locationFilterContainer .dropdown-item,
.find-prospect-quick-filter-panel #linkStatusFilterContainer .dropdown-item,
.find-prospect-quick-filter-panel #campaignSearchFilterMenu .dropdown-item {
  border-radius: 6px;
  font-size: 0.98rem;
  font-weight: 800;
  line-height: 1.25;
  white-space: normal;
}

.find-prospect-quick-filter-panel .find-prospect-filter-list label.dropdown-item,
.find-prospect-quick-filter-panel #locationFilterContainer label.dropdown-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.find-prospect-quick-filter-panel .status-option {
  min-height: 38px;
  padding: 0.55rem 0.65rem !important;
}

.find-prospect-quick-filter-panel .status-option .status-filter {
  flex: 0 0 18px;
}

.find-prospect-quick-filter-panel .status-option .form-check-label {
  display: inline;
  margin: 0;
  line-height: 1.2;
}

.find-prospect-quick-filter-panel #priorityFilterContainer li {
  border-radius: 6px;
  overflow: hidden;
}

.find-prospect-quick-filter-panel .saved-search-dropdown-menu {
  min-width: 100% !important;
}

.find-prospect-redesign .listing-table-card {
  overflow: visible;
}

.find-prospect-redesign #bulkSelectionPanel {
  margin-top: 0 !important;
}

.find-prospect-active-filters .badge {
  display: none;
}

@media (max-width: 1199.98px) {
  .listing-stats-card {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 1.25rem;
  }

  .listing-stat-item:nth-child(2) {
    border-right: 0;
  }

  .listing-stat-item:nth-child(3) {
    padding-left: 0;
  }

  .listing-toolbar-card {
    align-items: stretch;
    flex-direction: column;
  }

  .listing-search-row {
    width: 100%;
    margin-left: 0;
  }

  .listing-toolbar-card .listing-active-filters {
    width: 100%;
  }

  .listing-search-field {
    width: 100%;
  }

  .manage-prospects-inline-filters {
    width: 100%;
    flex-basis: 100%;
  }

  .manage-prospects-toolbar-actions {
    width: 100%;
    margin-left: 0;
  }
}

@media (max-width: 767.98px) {
  .listing-redesign {
    margin: 1rem !important;
  }

  .listing-stats-card {
    grid-template-columns: 1fr;
    padding: 1rem;
  }

  .listing-stat-item,
  .listing-stat-item:first-child,
  .listing-stat-item:nth-child(3),
  .listing-stat-item:last-child {
    padding: 0;
    border-right: 0;
  }

  .listing-action-row {
    display: grid;
    grid-template-columns: 1fr;
  }

  .listing-action-btn {
    width: 100%;
  }

  .listing-quick-filter-panel {
    left: 0;
    right: 0;
    width: auto;
  }

  .manage-prospects-inline-filters {
    grid-template-columns: 1fr;
  }

  .find-prospect-toolbar-card .find-prospect-active-filters,
  .find-prospect-primary-filters {
    flex-basis: 100%;
  }
}

html {
  background: #eef6ff;
}

body.app-blank {
  background:
    radial-gradient(circle at top left, rgba(210, 230, 255, 0.85), transparent 34%),
    linear-gradient(135deg, #eef6ff 0%, #f7f9ff 45%, #edf3ff 100%);
  background-attachment: fixed;
  min-width: 0 !important;
}

.sales-auth-language .me-10 {
  margin-right: 0 !important;
}

.sales-auth-card {
  max-width: 500px;
}

.sales-auth-logo {
  max-width: 280px;
  width: 76%;
}

.sales-password-toggle {
  min-height: 28px;
  min-width: 42px;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
}

@media (max-width: 575.98px) {
  .sales-auth-logo {
    max-width: 245px;
    width: 82%;
  }
}
