/*
 * This is a manifest file that'll be compiled into application.css.
 *
 * With Propshaft, assets are served efficiently without preprocessing steps. You can still include
 * application-wide styles in this file, but keep in mind that CSS precedence will follow the standard
 * cascading order, meaning styles declared later in the document or manifest will override earlier ones,
 * depending on specificity.
 *
 * Consider organizing styles into separate files for maintainability.
 */

/* Trix Editor Styles */
trix-editor {
  border: 1px solid #dee2e6;
  border-radius: 0 0 0.375rem 0.375rem;
  margin: 0;
  padding: 0.75rem;
  min-height: 150px;
  outline: none;
}

trix-editor:focus {
  border-color: #86b7fe;
  box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

trix-toolbar {
  border: 1px solid #dee2e6;
  border-bottom: none;
  border-radius: 0.375rem 0.375rem 0 0;
  background-color: #f8f9fa;
  padding: 0.5rem;
}

trix-toolbar .trix-button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
}

trix-toolbar .trix-button-group {
  display: flex;
  margin-bottom: 0;
  border: 1px solid #dee2e6;
  border-radius: 0.25rem;
  overflow: hidden;
}

trix-toolbar .trix-button-group:not(:first-child) {
  margin-left: 0.5rem;
}

trix-toolbar .trix-button {
  border: none;
  background: white;
  padding: 0.375rem 0.5rem;
  cursor: pointer;
}

trix-toolbar .trix-button:hover {
  background-color: #e9ecef;
}

trix-toolbar .trix-button.trix-active {
  background-color: #0d6efd;
  color: white;
}

trix-toolbar .trix-button--icon {
  width: 2.5rem;
  height: 2rem;
  text-indent: -9999px;
  position: relative;
}

trix-toolbar .trix-button--icon::before {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-position: center;
  background-repeat: no-repeat;
  background-size: 1rem;
  content: "";
  opacity: 0.7;
}

trix-toolbar .trix-button--icon:hover::before,
trix-toolbar .trix-button--icon.trix-active::before {
  opacity: 1;
}

.trix-content {
  line-height: 1.6;
}

.trix-content h1 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.trix-content ul,
.trix-content ol {
  margin-left: 1.5rem;
  margin-bottom: 0.5rem;
}

.trix-content blockquote {
  border-left: 3px solid #dee2e6;
  padding-left: 1rem;
  margin-left: 0;
  color: #6c757d;
}

.trix-content pre {
  background-color: #f8f9fa;
  padding: 0.75rem;
  border-radius: 0.25rem;
  overflow-x: auto;
}

.trix-content a {
  color: #0d6efd;
}

/* Activity rich content display */
.activity-rich-content .trix-content {
  padding: 0;
}

/* Deal card dropdown fix */
.deal-card .dropdown-menu {
  position: absolute !important;
  z-index: 1050;
}

.deal-card {
  position: relative;
}

.deal-card .dropdown {
  position: static;
}

.pipeline-column {
  overflow: visible !important;
}

.stage-deals {
  overflow: visible !important;
}
