/* ====================================
   Lead Details Drawer CSS - MINIMAL CONFLICT FIX
   Author: Preserves existing layout, adds copy functionality
   Description: Original styles + targeted overrides for copy functionality
   ==================================== */

/* ====================================
   ORIGINAL DRAWER STYLES - PRESERVED
   ==================================== */

.lead_details {
  max-width: 75% !important;
}

.lead_details .rs-drawer-dialog .rs-drawer-content {
  background: #ebf0f4 !important;
}

.lead_details .rs-drawer-dialog .rs-drawer-header {
  padding: 15px 0 10px 14px !important;
  height: 52px;
  border-radius: 10px;
  background: #fff;
  margin-left: 11px;
}

.lead_details .rs-drawer-dialog .rs-drawer-header .rs-drawer-actions {
  display: flex !important;
  align-items: center;
  gap: 4px;
}

/* Hide the Cancel text button — the X close icon handles closing */
.lead_details .rs-drawer-dialog .rs-drawer-header .rs-drawer-actions .rs-btn-default {
  display: none !important;
}

.lead_details .rs-drawer-dialog .rs-drawer-header h4 {
  font-family: 'Gilroy', sans-serif;
  font-weight: 700;
  font-size: 20px;
  line-height: 24px;
  color: #000000;
}

.lead_details .rs-drawer-dialog .rs-drawer-header .rs-drawer-header-close {
  left: auto;
  right: 17px;
  color: rgba(0, 0, 0, 1);
}

/* ====================================
   ACTION BUTTONS - PRESERVED
   ==================================== */

.lead_details .rs-drawer-dialog .rs-drawer-body .row .popup-section-4-left-1 li {
  margin-right: 5px;
}

.lead_details .rs-drawer-dialog .rs-drawer-body .row .popup-section-4-left-1 li a span,
.lead_details .rs-drawer-dialog .rs-drawer-body .row .popup-section-4-left-1 li button span,
.lead_details .rs-drawer-dialog .rs-drawer-body .row .popup-section-4-left-1 li span {
  width: 30px;
  height: 30px;
}

.lead_details .rs-drawer-dialog .rs-drawer-body .row .popup-section-4-left-1 li a span svg,
.lead_details .rs-drawer-dialog .rs-drawer-body .row .popup-section-4-left-1 li button span svg,
.lead_details .rs-drawer-dialog .rs-drawer-body .row .popup-section-4-left-1 li span svg {
  width: 16px;
  height: 16px;
}










/* ====================================
   RIGHT SIDE STYLES - PRESERVED
   ==================================== */

.lead_details .rs-drawer-dialog .rs-drawer-body .row .popup-section-4-right ul li {
  flex: none !important;
}

.lead_details .rs-drawer-dialog .rs-drawer-body .row .popup-section-4-right .tab-content .popup-section-4-add-11 button {
  background: #3faefd;
  border-radius: 12px;
  position: absolute;
  bottom: 22px;
  right: 20px;
  color: #fff !important;
  padding: 8px 6px !important;
  height: 33px;
  font-size: 16px;
  display: flex;
  align-items: center;
  gap: 3px;
}

.lead_details .rs-drawer-dialog .rs-drawer-body {
  padding: 8px 10px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* ── Full-height flex chain ──────────────────────────────────────────────
   Prevents rs-drawer-body from outer-scrolling.
   Each level must be a flex column that passes height to its child.
   ──────────────────────────────────────────────────────────────────────── */

.lead_details .rs-drawer-dialog .rs-drawer-body > .row {
  flex: 1;
  min-height: 0;
  overflow: hidden;
  flex-wrap: nowrap;
}

.lead_details .rs-drawer-dialog .rs-drawer-body .col-md-8 {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.lead_details .rs-drawer-dialog .rs-drawer-body .popup-section-4-right {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

.lead_details .rs-drawer-dialog .rs-drawer-body .tab-content {
  flex: 1;
  min-height: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.lead_details .rs-drawer-dialog .rs-drawer-body .tab-pane.show.active {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

/* Fix Bootstrap .row negative margins that clip rounded card edges.
   Applies to every list container inside a tab pane (tasks, notes)
   regardless of whether the scroll class is also present. */
.lead_details .rs-drawer-dialog .rs-drawer-body .tab-pane > .row {
  margin-left: 0 !important;
  margin-right: 0 !important;
  padding: 2px 4px;
  align-content: flex-start;
  align-items: flex-start;
}

