.copy-link {
    color: grey;
    text-decoration: underline;
    cursor: pointer;
}
.copy-link:hover {
    color: grey !important;
}
.copy-link.disabled {
    pointer-events: none;
    color: grey !important;
    text-decoration: none !important;
    cursor: default;
}

/* css for inline editing of allocated time and time spent */
.editable-clock {
    display: inline-block;
    white-space: nowrap;
    overflow: hidden;
    font-size: 20px;
    font-weight: bold;
    font-family: monospace;
    border-bottom: 1px dashed transparent;
    cursor: text;
    transition: border-color 0.2s ease; 
    padding-bottom: 2px; 
    min-width: 40px; 
}

.editable-clock:focus {
    border-bottom: 1px dashed #666;
    outline: none;
}

.editable-clock.invalid {
    color: red; 
}

/* Hide unwanted elements */
.editable-clock br,
.editable-clock div {
    display: none !important;
}

/* pipeline stages long name reduced */
.board-heading .pull-left {
    display: flex;
    align-items: center;
    min-width: 0;             
    max-width: calc(100% - 60px);
    overflow: hidden;      
    padding-right: 25px; 
}

.board-heading .stage-name {
    display: inline-block;    
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;          
}

.board-heading .stage-count {
    flex: 0 0 auto;          
    margin-left: 6px;
    margin-right: 8px;
    white-space: nowrap;
}

/* documentation layout */
.docs-shell {
  display: flex;
  min-height: 100vh;
  background: #f8fafc;
  color: #1e293b;
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.docs-sidebar {
  width: 280px;
  background: #ffffff;
  border-right: 1px solid #e2e8f0;
  padding: 28px 22px;
  overflow-y: auto;
  position: fixed;
  top: 0;
  bottom: 0;
  box-shadow: 2px 0 12px rgba(0, 0, 0, 0.04);
  transition: all 0.3s ease;
}

.docs-sidebar h5 {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  color: #64748b;
  letter-spacing: 1px;
  margin-bottom: 12px;
}

.docs-sidebar ul {
  list-style-type:none;
  padding-inline-start: 15px;
}

.sidebar-link {
  display: block;
  padding: 10px 12px;
  border-radius: 8px;
  color: #334155;
  font-size: 14px;
  text-decoration: none;
  transition: all 0.2s ease-in-out;
}

.sidebar-link:hover {
  background: #f1f5f9;
  color: #0b5ff5;
  transform: translateX(3px);
}

.sidebar-link.active {
  background: #e8f0ff;
  color: #0b5ff5;
  font-weight: 600;
  box-shadow: inset 3px 0 0 #0b5ff5;
}

.sidebar-sublist {
  list-style: none;
  padding-left: 18px;
  margin-top: 6px;
  border-left: 1px dashed #e2e8f0;
}

.sidebar-sublist a {
  display: block;
  padding: 6px 10px;
  font-size: 13px;
  color: #475569;
  border-radius: 6px;
  text-decoration: none;
  transition: all 0.15s ease;
}

.sidebar-sublist a:hover {
  background: #f1f5f9;
  color: #0b5ff5;
}

.sidebar-sublist a.active,
.sidebar-sublist a.active-sub {
  background: #e8f0ff;
  color: #0b5ff5;
  font-weight: 600;
}

.docs-main {
  flex: 1;
  margin-left: 300px;
  padding: 60px 40px;
}

.docs-content {
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.05);
  padding: 56px;
  max-width: 960px;
  margin: 0 auto;
  transition: box-shadow 0.2s ease;
}

.docs-content:hover {
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
}

.docs-content h1 {
  font-size: 34px;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 20px;
  border-bottom: 2px solid #0b5ff5;
  padding-bottom: 12px;
}

.docs-content h2 {
  font-size: 22px;
  font-weight: 600;
  color: #0b5ff5;
  margin-top: 36px;
  margin-bottom: 12px;
  scroll-margin-top: 120px;
}

.docs-content h3 {
  font-size: 18px;
  font-weight: 600;
  color: #334155;
  margin-top: 28px;
  scroll-margin-top: 100px;
}

.docs-content p {
  line-height: 1.8;
  font-size: 15px;
  color: #374151;
  margin-bottom: 16px;
}

.docs-content ul {
  margin: 14px 0 14px 22px;
  padding-left: 8px;
}

.docs-content li {
  margin-bottom: 8px;
  color: #475569;
}

.docs-content img {
  max-width: 100%;
  border-radius: 8px;
  margin: 16px 0;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.06);
  transition: transform 0.2s ease;
}

.docs-content img:hover {
  transform: scale(1.02);
}

.active-sub {
  color: #0b5ff5;
  font-weight: 600;
}

/* Avatar container layout */
.x-assigned {
  display: flex;
  flex-wrap: wrap; 
  gap: 4px; 
  justify-content: flex-end; 
}

.lead-mention {
  background-color: #f4f3fb;
  color: #4b2ca0;
  padding: 0 4px;
  border-radius: 4px;
  font-weight: 600;
  display: inline-block;
}

.lead-mention-dropdown {
  position: absolute;
  z-index: 1060;
  background: #ffffff;
  border: 1px solid #dcd9f2;
  border-radius: 6px;
  box-shadow: 0 8px 24px rgba(43, 45, 66, 0.15);
  min-width: 220px;
  padding: 4px 0;
  display: none;
  max-height: 260px;
  overflow-y: auto;
}

.lead-mention-dropdown__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.lead-mention-dropdown__item {
  padding: 8px 12px;
  cursor: pointer;
}

.lead-mention-dropdown__item.is-active,
.lead-mention-dropdown__item:hover {
  background-color: #f4f3fb;
}

.lead-mention-dropdown__name {
  display: block;
  font-weight: 600;
  color: #2d2853;
}

.lead-mention-dropdown__email {
  display: block;
  font-size: 12px;
  color: #6b6f82;
  margin-top: 2px;
}

#securefile-downloads-wrapper ul li span, #securefile-downloads-wrapper ul li a {
    padding: 5px 10px;
}

#securefile-downloads-wrapper ul {
    gap: 10px;
}

.custom-search{
  padding: 0.9rem 0.5rem !important;
}

.lead-comments .x-content .card-comments-container {
  max-height: 300px;
  overflow-y: auto;
  overflow-x: hidden;
}

.lead-comments .x-content::-webkit-scrollbar {
  width: 8px;
}

.lead-comments .x-content::-webkit-scrollbar-track {
  border-radius: 4px;
}

.lead-comments .x-content::-webkit-scrollbar-thumb {
  border-radius: 4px;
}

.lead-comments-search-bar {
  width: 100%;
  border-radius: 5px;
}

.lead-comments-search-bar .lead-comments-search-input {
  height: 40px !important;
}
