/*!
 Copyright (c) 2020, 2025, Oracle and/or its affiliates.
 */

:root {
  /* Reduce Redwood Padding */
  --ut-footer-padding-x: var(--ut-body-content-padding-x);
  --ut-body-content-padding-y: 2rem;
  /* Unset badge font family */
  --ut-treeview-badge-font-family: unset;
  /* Better grid borders when backgrounds set on rows */
  --a-gv-cell-border-color: rgba(0, 0, 0, .05);
  --a-md-blockquote-border-width: 5px;
  --a-md-code-padding-x: 2px;
  --a-md-code-padding-y: 2px;
  --a-md-code-border-color: 2px;
  --a-md-code-background-color: hsla(0,0%,78%,.5);
  --a-md-code-font-size: 12px;
  --a-md-code-border-width: 0px;
  --a-md-blockquote-font-size: 14px;
  --a-md-blockquote-padding-y: 0;
  --a-md-pre-background-color: hsla(0,0%,78%,.3);
  --a-md-pre-border-color: #c4c4c4;
  --a-md-pre-font-size: 12px;
  --a-md-pre-padding: 12px;
}

.header-actions {
  margin-inline-start: auto;
}

.header-actions .t-ContentRow-wrap {
  padding: 0;
  float: right;
}

.has-header-actions {
  display: inline-flex;
}

.header-actions .t-ContentRow-wrap button {
  --a-button-background-color: transparent;
}

.t-BreadcrumbRegion--showBreadcrumb .t-BreadcrumbRegion-breadcrumb {
  display: flex;
  align-items: center;
}


/* Clear the default fa-user icon for content row regions with the clear-avatar-icons class */
.clear-avatar-icons .t-Avatar.t-Avatar--icon.fa-user:before {
  display: none;
}

/* Adding initiative icon to the left of contextual info region */
.initiative-icon {
  margin: 0 -2rem .5rem 3rem;
  max-inline-size: 2.5rem;
}

.t-PageBody--showLeft .initiative-icon {
  margin: 0 0 .5rem 1rem;
  max-inline-size: 2.5rem;
}

/* Setting max height for facets, otherwise it gets too big */
.a-FS-bodyInner .apex-item-checkbox {
  max-height: 320px;
  overflow: auto;
}

/* Search Clear Button */
.sp-ClearButton {
  position: absolute;
  inline-size: 1.5rem;
  block-size: 1.5rem;
  cursor: pointer;
  inset-inline-end: .25rem;
  inset-block-start: 50%;
  transform: translateY(-50%);
  visibility: visible;
  opacity: 1;
  transition: opacity .25s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  order: 4;
}

.sp-ClearButton:before {
  content: "\e0a2";
  font-size: 1rem;
  speak: none;
  font-style: normal;
  font-weight: 400;
  font-variant: normal;
  text-transform: none;
  text-rendering: auto;
  line-height: 1;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-family: var(--a-icon-font-family, "apex-5-icon-font");
  opacity: .8;
}

.t-Form-itemWrapper {
  position: relative;
}

.t-Form-fieldContainer:not(.t-Form-fieldContainer--floatingLabel):not(.t-Form-fieldContainer--hiddenLabel) .t-Form-itemWrapper {
  display: inline-flex;
}

.t-Form-itemWrapper:has(:placeholder-shown) .sp-ClearButton {
  visibility: hidden;
  opacity: 0;
}

.t-Comments-comment img {
  max-width: 1000px; 
  height: auto;
}

.apex-side-nav.js-navCollapsed .t-TreeNav .a-TreeView-label .a-TreeView-badge {
  display: none;
}

.mention__item {
  display: flex !important;
  align-items: center !important;
  padding: 10px 14px !important;
  cursor: pointer !important;
  transition: background-color 0.15s ease !important;
  border-bottom: 1px solid #f0f0f0 !important;
}

.mention__item:last-child {
  border-bottom: none !important;
}

.mention__item:hover,
.mention__item:focus-visible {
  background-color: #f8f9fa !important;
}

/* PROFILE PICTURE – THIS IS THE KEY PART */
.mention__item__avatar {
  width: 40px !important;
  height: 40px !important;
  background-size: cover !important;
  background-position: center center !important;
  background-repeat: no-repeat !important;
  border-radius: 50% !important;
  flex-shrink: 0 !important;
  margin-right: 14px !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08) !important;
  border: 1px solid #e5e7eb !important;
  
  /* Automatic fallback when your ${item.avatarUrl} fails to load */
  background-color: #e5e7eb !important;
}

/* Details (unchanged from before – just included for completeness) */
.mention__item__details {
  flex: 1 !important;
  min-width: 0 !important;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif !important;
}

.mention__item__user-name,
.mention__item__full-name {
  display: inline !important;
  white-space: nowrap !important;
}

.mention__item__user-name {
  font-weight: 700 !important;
  font-size: 15px !important;
  color: #1f2937 !important;
}

.mention__item__full-name {
  font-weight: 400 !important;
  font-size: 15px !important;
  color: #6b7280 !important;
  margin-left: 2px !important;
}

body .ck.ck-editor__main>.ck-editor__editable,
body .ck.ck-input-text {
  font-size: 14px;
}

.is-markdownified pre {
  border-radius: 2px;
  margin-block: 10px;
}

.u-colors .t-Avatar--noShape.u-color {
    background-color: transparent !important;
    color: var(--u-color) !important;
}