/* Zammad Custom Template Picker Styling */

.sandhu-template-toolbar {
  position: relative;
  display: inline-block;
  margin: 6px 0 8px 0;
  z-index: 100;
}

.sandhu-template-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background-color: #f1f5f9;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  color: #1e293b;
  font-size: 13px;
  font-weight: 600;
  padding: 5px 12px;
  cursor: pointer;
  transition: all 0.15s ease-in-out;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.sandhu-template-btn:hover {
  background-color: #e2e8f0;
  border-color: #94a3b8;
  color: #0f172a;
}

.sandhu-template-btn.is-open {
  background-color: #0284c7;
  border-color: #0284c7;
  color: #ffffff;
}

.sandhu-template-dropdown {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  width: 360px;
  max-width: 90vw;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.15), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
  padding: 10px;
  z-index: 9999;
}

.sandhu-dropdown-search-box {
  margin-bottom: 8px;
}

.sandhu-dropdown-search-input {
  width: 100%;
  box-sizing: border-box;
  padding: 8px 12px;
  font-size: 13px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  outline: none;
  background: #f8fafc;
  color: #0f172a;
  transition: border-color 0.15s;
}

.sandhu-dropdown-search-input:focus {
  border-color: #0284c7;
  background: #ffffff;
  box-shadow: 0 0 0 2px rgba(2, 132, 199, 0.15);
}

.sandhu-dropdown-list {
  max-height: 280px;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.sandhu-dropdown-section-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #64748b;
  padding: 8px 8px 4px 8px;
  border-top: 1px solid #f1f5f9;
}

.sandhu-dropdown-section-title:first-child {
  border-top: none;
  padding-top: 2px;
}

.sandhu-dropdown-item {
  padding: 8px 10px;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.12s;
}

.sandhu-dropdown-item:hover {
  background-color: #f1f5f9;
}

.sandhu-item-title {
  font-size: 13px;
  font-weight: 600;
  color: #1e293b;
}

.sandhu-item-sub {
  font-size: 11px;
  color: #64748b;
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sandhu-snippet-name {
  font-size: 12px;
  font-weight: 500;
  color: #334155;
}

.sandhu-dropdown-empty {
  padding: 16px;
  text-align: center;
  font-size: 13px;
  color: #94a3b8;
}

/* Ensure distinct, beautiful paragraph separation and line breaks in editor */
.richtext-content p {
  margin: 0 0 8px 0 !important;
  line-height: 1.5 !important;
}

.richtext-content p:last-child {
  margin-bottom: 0 !important;
}

.richtext-content br {
  line-height: 1.5 !important;
}

