.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 {
  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;
}
.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: #2665eb;
  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.is-visible {
  display: block;
}

#goTopBtn:hover {
  background-color: #2665eb;
  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: flex;
  justify-content: center;
  align-items: center;
}

#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: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #999;
  font-size: 18px;
  cursor: pointer;
  padding: 0;
  width: 20px;
  height: 20px;
  line-height: 20px;
  display: none;
  align-items: center;
  justify-content: center;
  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;
}

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

.custom-dropdown-options {
  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;
}

body[data-page-key="messages_template"] .card {
  width: auto;
  max-width: calc(100vw - 2rem);
  overflow: visible;
}

body[data-page-key="messages_template"] .card-header {
  overflow: visible;
  position: relative;
  z-index: 20;
}

body[data-page-key="messages_template"] .card-body {
  position: relative;
  z-index: 1;
}

body[data-page-key="messages_template"] .app-main,
body[data-page-key="messages_template"] #view-content {
  min-width: 0;
  max-width: 100vw;
  overflow-x: hidden;
}

body[data-page-key="messages_template"] .table-responsive {
  max-width: 100%;
  overflow-x: hidden;
}

body[data-page-key="messages_template"] .message-table {
  table-layout: fixed;
  width: 100%;
  min-width: 0;
}

body[data-page-key="messages_template"] .message-template-card-cell,
body[data-page-key="messages_template"] .template-popover-trigger {
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
}

body[data-page-key="messages_template"] .message-template-card-actions {
  min-width: 0;
  flex-wrap: wrap;
}

body[data-page-key="messages_template"] .message-template-title-row {
  min-width: 0;
}

body[data-page-key="messages_template"] .message-template-title-row .message-title {
  flex: 0 1 auto;
  min-width: 0;
}

body[data-page-key="messages_template"] .message-template-title-meta {
  flex: 0 1 auto;
  margin-left: auto;
  min-width: 0;
}

body[data-page-key="messages_template"] .message-template-title-row .badge {
  flex: 0 0 auto;
}

body[data-page-key="messages_template"] .message-title {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body[data-page-key="messages_template"] .message-preview {
  display: block;
  max-width: 100%;
  overflow: hidden;
  overflow-wrap: anywhere;
  text-overflow: ellipsis;
  white-space: nowrap;
  word-break: break-word;
}

.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;
}

.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;
}

.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-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  border-radius: 0.375rem;
  padding: 0.55rem 0.65rem;
  white-space: nowrap;
}

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

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

.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: 320px;
}

.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 .sequence-template-tags-dropdown .dropdown-menu {
  z-index: 1210 !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 .template-tags-dropdown .dropdown-menu {
  z-index: 1210 !important;
}

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

.messages-templates-page .message-templates-table tr.template-row-dropdown-open td {
  overflow: visible;
}

.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-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 {
  table-layout: fixed;
  width: 100%;
}

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

.messages-templates-page .template-card-main,
.messages-templates-page .template-card-text,
.messages-templates-page .template-card-copy {
  flex: 1 1 0;
  min-width: 0;
  overflow: hidden;
}

.messages-templates-page .template-card-actions {
  flex: 0 0 auto;
}

.messages-templates-page .template-card-title-row {
  min-width: 0;
}

.messages-templates-page .template-card-title-row .template-popover-target {
  max-width: 100%;
}

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

body[data-page-key="messages_template"] .template-row {
  position: relative;
  z-index: 1;
}

body[data-page-key="messages_template"] .table-responsive {
  overflow: visible;
}

body[data-page-key="messages_template"] .template-row.template-row-dropdown-open {
  z-index: 1200;
}

body[data-page-key="messages_template"] .template-row.template-row-dropdown-open .message-template-card-cell {
  overflow: visible;
}

body[data-page-key="messages_template"] .template-tags-dropdown .dropdown-menu,
body[data-page-key="messages_template"] .messages-template-tag-menu {
  z-index: 2000 !important;
}

body[data-page-key="messages_template"] .messages-template-tag-filter-menu,
body[data-page-key="messages_template"] .messages-template-tags-menu {
  z-index: 2300 !important;
}

body[data-page-key="messages_template"] .messages-template-tags-menu {
  max-height: min(70vh, 520px);
  min-width: min(360px, calc(100vw - 2rem));
  overflow-y: auto;
  width: min(360px, calc(100vw - 2rem));
}

.message-tag-edit-dialog .swal2-html-container {
  overflow-x: hidden;
}

.message-tag-edit-dialog .message-tag-edit-name {
  width: min(100%, 260px);
  margin: 0 auto 0.75rem;
}

.template-tag-chip,
.message-tag-preview-badge {
  background-color: #eef0f3 !important;
  border: 1px solid rgba(31, 41, 55, 0.14);
  color: #1f2937;
  font-weight: 700;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.35);
}

#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%;
  }
}

/* Login greeting messages */
#kt_app_header_container {
  gap: 12px;
  position: relative;
}

.mh-header-title-area {
  display: flex;
  align-items: center;
  align-self: stretch;
  padding: 8px 0;
  min-width: 0;
}

.mh-header-brand {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
  min-width: 0;
  color: inherit;
  text-decoration: none;
}

.mh-header-brand:hover,
.mh-header-brand:focus {
  color: inherit;
  text-decoration: none;
}

.mh-header-brand-logo {
  width: 180px;
  max-width: 42vw;
  height: auto;
  object-fit: contain;
}

.mh-header-brand-text {
  color: #0f172a;
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.25;
}

.mh-header-center-title {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  max-width: min(52vw, 560px);
  color: #0f172a;
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  overflow: hidden;
  pointer-events: none;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mh-header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.mh-user-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: #f4f6fa;
  color: #1f2937;
  font-size: 13px;
  font-weight: 600;
}

.mh-user-menu {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.mh-user-menu-trigger {
  border: 0;
  cursor: pointer;
  font-family: inherit;
}

.mh-user-menu-trigger i {
  color: #6b7280;
  font-size: 11px;
}

.mh-user-menu-name {
  max-width: 180px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mh-user-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 1050;
  min-width: 230px;
  padding: 8px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.14);
  opacity: 0;
  pointer-events: none;
  transform: translateY(4px);
  transition: opacity 0.16s ease, transform 0.16s ease;
}

.mh-user-dropdown::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -10px;
  height: 10px;
}

.mh-user-menu:hover .mh-user-dropdown,
.mh-user-menu:focus-within .mh-user-dropdown {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.mh-user-email {
  padding: 8px 10px 10px;
  border-bottom: 1px solid #eef0f4;
  color: #6b7280;
  font-size: 12px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.mh-user-menu-link {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 9px 10px;
  border-radius: 6px;
  color: #1f2937;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}

.mh-user-menu-link:hover,
.mh-user-menu-link:focus {
  background: #f4f6fa;
  color: #0d6efd;
  text-decoration: none;
}

.mh-user-menu-link.text-danger:hover,
.mh-user-menu-link.text-danger:focus {
  background: #fff5f5;
  color: #dc3545 !important;
}

.mh-user-avatar {
  width: 24px;
  height: 24px;
  border-radius: 999px;
  object-fit: cover;
  background: #e5e7eb;
  flex-shrink: 0;
}

.mh-header-info-content {
  color: #1f2937;
  font-size: 14px;
  line-height: 1.6;
  max-height: 70vh;
  overflow-y: auto;
}

.mh-header-info-content img {
  max-width: 100%;
  height: auto;
}

.mh-header-info-content table {
  width: 100%;
}

.mh-preview-modal-frame {
  padding: 28px;
  background: #f5f8fb;
}

.mh-preview-modal-frame .modal-dialog {
  margin: 0 auto;
}

.mh-preview-home-page {
  padding: 28px;
  background:
    radial-gradient(circle at top left, rgba(37, 99, 235, 0.08), transparent 34rem),
    linear-gradient(180deg, #f8fafc 0%, #eef2f7 100%);
}

.mh-public-preview-page,
.mh-public-page {
  min-height: 70vh;
  margin: 0;
  font-family: "Plus Jakarta Sans", sans-serif;
  background: #f5f8fb;
  color: #182033;
}

.mh-public-header {
  border-bottom: 1px solid rgba(148, 163, 184, 0.24);
  background: #ffffff;
}

.mh-public-logo {
  height: 40px;
  width: auto;
}

.mh-public-shell {
  max-width: 920px;
  margin: 0 auto;
  padding: clamp(2rem, 5vw, 4.5rem) 1.25rem;
}

.mh-public-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  line-height: 1.08;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 1.75rem;
}

.mh-public-content {
  background: #ffffff;
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 8px;
  padding: clamp(1.25rem, 3vw, 2.5rem);
  box-shadow: 0 18px 44px rgba(15, 23, 42, 0.08);
  font-size: 1rem;
  line-height: 1.75;
}

.mh-public-content :first-child {
  margin-top: 0;
}

.mh-public-content :last-child {
  margin-bottom: 0;
}

.mh-greeting-message-title {
  max-width: 280px;
}

.mh-greeting-table {
  min-width: 840px;
}

.mh-login-greeting-modal .modal-content {
  border: 0;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 28px 80px rgba(15, 23, 42, 0.22);
}

.mh-login-greeting-hero {
  position: relative;
  padding: 34px 34px 28px;
  color: #fff;
  background:
    linear-gradient(135deg, rgba(10, 101, 192, 0.96), rgba(20, 184, 166, 0.92)),
    url('/assets/media/misc/pattern-2.png');
  background-size: cover;
}

.mh-first-login-welcome-hero {
  background:
    linear-gradient(135deg, rgba(15, 23, 42, 0.97), rgba(37, 99, 235, 0.92), rgba(5, 150, 105, 0.88)),
    url('/assets/media/misc/pattern-4.jpg');
  background-size: cover;
}

.mh-login-greeting-icon {
  width: 52px;
  height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  font-size: 24px;
  margin-bottom: 16px;
}

.mh-login-greeting-title {
  position: relative;
  z-index: 1;
  margin: 0;
  color: #fff;
  font-size: 1.55rem;
  font-weight: 800;
}

.mh-login-greeting-content {
  padding: 28px 34px 8px;
  color: #1f2937;
  font-size: 15px;
  line-height: 1.7;
}

.mh-login-greeting-content img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}

.mh-login-greeting-content table {
  width: 100%;
}

.mh-login-greeting-footer {
  padding: 10px 34px 30px;
  border-top: 0;
}

@media (max-width: 991.98px) {
  #kt_app_header_container {
    flex-wrap: wrap;
  }

  .mh-header-actions {
    width: 100%;
    justify-content: flex-end;
  }

  .mh-header-brand-text {
    font-size: 0.9rem;
  }

  .mh-header-center-title {
    position: static;
    transform: none;
    width: 100%;
    max-width: none;
    margin-top: -4px;
  }

  .mh-user-menu-name {
    max-width: 140px;
  }
}

body.mh-user-home-page.app-default {
  background:
    radial-gradient(circle at top left, rgba(37, 99, 235, 0.08), transparent 34rem),
    linear-gradient(180deg, #f8fafc 0%, #eef2f7 100%);
}

.mh-home-hero {
  min-height: 173px;
  background: linear-gradient(135deg, #0f172a 0%, #1d4ed8 54%, #059669 100%);
}

.mh-home-hero::after {
  content: "";
  position: absolute;
  right: -84px;
  top: -72px;
  width: 310px;
  height: 310px;
  border: 42px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  animation: mh-home-float 8s ease-in-out infinite;
}

.mh-home-hero::before {
  content: "";
  position: absolute;
  left: 42%;
  bottom: -110px;
  width: 260px;
  height: 260px;
  background: rgba(245, 158, 11, 0.2);
  border-radius: 999px;
  animation: mh-home-float 9s ease-in-out infinite reverse;
}

.mh-home-hero-content {
  z-index: 1;
  max-width: none;
}

.mh-home-title {
  font-size: clamp(1.75rem, 4vw, 2.7rem);
  line-height: 1.14;
  letter-spacing: 0;
}

.mh-home-subtitle {
  max-width: none;
  width: 100%;
  color: rgba(255, 255, 255, 0.82);
}

.mh-home-action {
  min-height: 150px;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

body.mh-admin-home-page .mh-home-action {
  min-height: 140px;
}

.mh-home-action:hover {
  transform: translateY(-3px);
  border-color: #93c5fd !important;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.1) !important;
}

.mh-animate-in {
  opacity: 0;
  transform: translateY(18px);
}

.mh-home-ready .mh-animate-in {
  animation: mh-home-rise 0.58s ease forwards;
}

.mh-delay-1 {
  animation-delay: 0.08s !important;
}

.mh-delay-2 {
  animation-delay: 0.16s !important;
}

.mh-delay-3 {
  animation-delay: 0.24s !important;
}

.mh-delay-4 {
  animation-delay: 0.32s !important;
}

@keyframes mh-home-rise {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes mh-home-float {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }

  50% {
    transform: translateY(18px) rotate(7deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .mh-home-hero::before,
  .mh-home-hero::after,
  .mh-home-ready .mh-animate-in {
    animation: none;
  }

  .mh-animate-in {
    opacity: 1;
    transform: none;
  }
}

/* Home Page UI Modernization Styles */
.mh-search-wrapper {
  position: relative;
  max-width: 600px;
  margin: 0 auto 30px auto;
  z-index: 10;
}
.mh-search-input {
  height: 54px;
  padding: 10px 20px 10px 50px;
  border-radius: 30px;
  font-size: 1.1rem;
  border: 1px solid rgba(15, 23, 42, 0.15);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
  transition: all 0.2s ease;
}
.mh-search-input:focus {
  border-color: #3b82f6;
  box-shadow: 0 8px 30px rgba(59, 130, 246, 0.15);
}
.mh-search-icon-inside {
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
  font-size: 1.25rem;
}
.mh-tags-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.mh-tag-chip {
  padding: 6px 14px;
  font-size: 0.85rem;
  font-weight: 500;
  border-radius: 20px;
  background-color: #f1f5f9;
  color: #475569;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.2s ease;
  user-select: none;
}
.mh-tag-chip:hover {
  background-color: #e2e8f0;
  color: #1e293b;
}
.mh-tag-chip.active {
  background-color: #3b82f6;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.25);
}
.mh-template-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}
.mh-template-card {
  display: flex;
  flex-column: column;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 16px;
  position: relative;
  transition: all 0.22s ease;
  overflow: hidden;
  box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}
.mh-template-card:hover {
  transform: translateY(-3px);
  border-color: #93c5fd;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
}
.mh-template-card-color-bar {
  height: 4px;
  width: 100%;
  position: absolute;
  top: 0;
  left: 0;
}
.mh-template-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 10px;
}
.mh-template-card-title {
  font-weight: 600;
  font-size: 1.05rem;
  color: #1e293b;
  margin-bottom: 0;
}
.mh-template-preview {
  font-size: 0.9rem;
  color: #64748b;
  flex-grow: 1;
  margin-bottom: 12px;
  line-height: 1.5;
  max-height: 80px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}
.mh-template-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
}
.mh-copy-btn {
  padding: 6px 12px;
  font-size: 0.85rem;
  border-radius: 8px;
  font-weight: 600;
  transition: all 0.15s ease;
}
.mh-star-toggle {
  color: #cbd5e1;
  cursor: pointer;
  font-size: 1.1rem;
  transition: color 0.15s ease;
}
.mh-star-toggle.active {
  color: #eab308;
}
.mh-progress-track {
  height: 8px;
  background-color: #f1f5f9;
  border-radius: 4px;
  overflow: hidden;
}
.mh-progress-fill {
  height: 100%;
  border-radius: 4px;
  transition: width 0.3s ease;
}
.mh-metric-card {
  transition: all 0.22s ease;
}
.mh-metric-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08) !important;
}
.mh-metric-card-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
}

/* Mockup Home Page Layout Styles */
.mh-mockup-feature-card {
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  background-color: #ffffff;
  padding: 36px 28px;
  text-align: center;
  text-decoration: none;
  color: #1e293b;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 240px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease, background-color 0.25s ease;
  cursor: pointer;
}
.mh-mockup-feature-card:hover:not(.disabled) {
  transform: translateY(-5px);
  border-color: #3b82f6;
  box-shadow: 0 16px 32px rgba(15, 23, 42, 0.1);
  background-color: #f8fafc;
}
.mh-mockup-feature-card.disabled {
  border-color: #e2e8f0;
  background-color: #f8fafc;
  color: #94a3b8;
  cursor: not-allowed;
  opacity: 0.75;
}
/* Icon tile on the home cards - Bigger, colorful & eye-catching */
.mh-mockup-card-image-box {
  width: 96px;
  height: 96px;
  border: 1px solid transparent;
  border-radius: 24px;
  background-color: #eef2f7;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: #ffffff !important;
  font-size: 3rem;
  line-height: 1;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
  transition: all 0.25s ease;
}
.mh-mockup-card-image-box > i {
  font-size: inherit;
  line-height: 1;
  color: #ffffff !important;
}

/* Specific colorful vibrant tile styles for each home page icon */
.mh-icon-box-templates {
  background: linear-gradient(135deg, #4f46e5 0%, #3b82f6 100%);
  color: #ffffff !important;
  box-shadow: 0 10px 24px rgba(79, 70, 229, 0.35);
}

.mh-icon-box-popup {
  background: linear-gradient(135deg, #0ea5e9 0%, #06b6d4 100%);
  color: #ffffff !important;
  box-shadow: 0 10px 24px rgba(14, 165, 233, 0.35);
}

.mh-icon-box-reports {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #ffffff !important;
  box-shadow: 0 10px 24px rgba(16, 185, 129, 0.35);
}

.mh-mockup-feature-card:hover:not(.disabled) .mh-mockup-card-image-box,
.mh-mockup-reports-box:hover .mh-mockup-card-image-box {
  transform: scale(1.08);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.18);
  color: #ffffff !important;
}

.mh-mockup-card-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0;
  line-height: 1.3;
}
.mh-mockup-feature-card.disabled .mh-mockup-card-title {
  color: #94a3b8;
}
.mh-mockup-feature-card.disabled .mh-mockup-card-image-box {
  background: linear-gradient(135deg, #cbd5e1 0%, #94a3b8 100%);
  color: #ffffff !important;
  box-shadow: none;
  opacity: 0.7;
}

.mh-mockup-summary-container {
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  background-color: #ffffff;
  padding: 36px 32px;
  margin-top: 32px;
}

.mh-mockup-heading {
  font-size: 1.6rem;
  font-weight: 800;
  color: #0f172a;
  border-bottom: 3px solid #3b82f6;
  display: inline-block;
  padding-bottom: 6px;
  margin-bottom: 24px;
}

.mh-mockup-stats-table {
  width: 100%;
  border-collapse: collapse;
}
.mh-mockup-stats-table td {
  padding: 12px 0;
  font-size: 1.35rem;
  font-weight: 600;
  color: #334155;
}
.mh-mockup-stats-table td.count-col {
  font-size: 1.6rem;
  font-weight: 800;
  color: #2563eb;
  padding-left: 20px;
  white-space: nowrap;
}
.mh-mockup-dots {
  letter-spacing: 3px;
  color: #cbd5e1;
  font-weight: 400;
  margin-right: 12px;
  font-size: 1.2rem;
}

.mh-mockup-popular-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.mh-mockup-popular-list li {
  padding: 12px 0 12px 28px;
  font-size: 1.35rem;
  font-weight: 600;
  color: #1e293b;
  position: relative;
}
.mh-mockup-popular-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: linear-gradient(135deg, #4f46e5, #3b82f6);
}

.mh-mockup-reports-box {
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  background-color: #ffffff;
  padding: 28px 24px;
  text-align: center;
  text-decoration: none;
  color: #1e293b;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 200px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease, background-color 0.25s ease;
  cursor: pointer;
  height: 100%;
}
.mh-mockup-reports-box:hover {
  transform: translateY(-4px);
  border-color: #3b82f6;
  box-shadow: 0 14px 28px rgba(37, 99, 235, 0.12);
  background-color: #eff6ff;
}




/* -------------------------------------------------------------------------------------
   Message template type sections.

   Templates are grouped into one collapsible section per type - Connection Requests,
   Welcome, Follow-up and so on - the way sales-helper and connection-helper have always
   shown them. Not scoped to .messages-templates-page because the same accordion is used by
   both the administration page and the Open Templates window, and the window has no
   page-level class.
   ------------------------------------------------------------------------------------- */

.message-template-accordion-section .message-template-accordion-toggle {
  cursor: pointer;
}

.message-template-accordion-section .accordion-icon {
  flex: 0 0 auto;
  transition: transform 0.2s ease;
}

.message-template-accordion-section .message-template-accordion-toggle:not(.collapsed) .accordion-icon {
  transform: rotate(90deg);
}

.message-template-accordion-section .accordion-header {
  border-bottom: 1px solid #eff2f5;
}

.message-template-accordion-section .accordion-header h3 {
  min-width: 0;
}

/* An empty section stays clickable - it is where the "add a template of this type" button
   lives - but reads as secondary so full sections draw the eye first. */
.message-template-accordion-section.message-template-section-empty .accordion-header h3 {
  color: var(--bs-gray-600, #7e8299);
  font-weight: 500;
}

[data-bs-theme="dark"] .message-template-accordion-section .accordion-header {
  border-bottom-color: #2b2b40;
}
