/* Phase 4A - Self Service Knowledge Base only.
   All rules are scoped so existing Self Service pages are unaffected. */

#home #knowledgeBaseHomeLink {
    max-width: 420px;
    margin: 24px auto 0 auto;
}

#knowledgeBase .selfServiceKnowledgeBase {
    max-width: 760px;
    margin: 0 auto;
}

#knowledgeBase .kbSearchBar {
    padding: 12px;
    background: #f5f7fa;
    border: 1px solid #d6dbe1;
    border-radius: 4px;
    margin-bottom: 16px;
}

#knowledgeBase .kbSearchBar .ui-input-search {
    margin-bottom: 8px;
}

#knowledgeBase .kbMessage {
    padding: 10px 12px;
    margin: 10px 0;
    border: 1px solid #d6dbe1;
    background: #f5f7fa;
    border-radius: 4px;
}

#knowledgeBase .kbCategory {
    margin: 6px 0;
    border: 1px solid #d6dbe1;
    border-radius: 4px;
    background: #fff;
}

#knowledgeBase .kbCategoryToggle {
    display: block;
    padding: 11px 14px;
    background: #f5f7fa;
    color: #2f5bd3 !important;
    text-decoration: none;
    font-weight: 600;
}

#knowledgeBase .kbCategoryChildren {
    padding: 8px 12px 12px 20px;
}

#knowledgeBase .kbArticleList {
    list-style: none;
    padding: 0;
    margin: 0;
}

#knowledgeBase .kbArticleList li {
    padding: 10px 8px;
    border-bottom: 1px solid #e6e9ed;
}

#knowledgeBase .kbArticleList li:last-child {
    border-bottom: 0;
}

#knowledgeBase .kbArticleLink {
    color: #2f5bd3 !important;
    text-decoration: none;
    font-weight: 600;
}

#knowledgeBase .kbArticleCategorySmall {
    display: block;
    font-size: 12px;
    color: #6b7280;
    margin-top: 3px;
}

#knowledgeBase .kbArticleCategory {
    color: #6b7280;
    margin-bottom: 14px;
}

#knowledgeBase .kbArticleContent {
    background: #fff;
    border: 1px solid #d6dbe1;
    border-radius: 4px;
    padding: 16px;
    line-height: 1.5;
}

#knowledgeBase .kbArticleContent img {
    max-width: 100%;
    height: auto;
}

/* Phase 4B - context-aware suggestions on Create New Ticket only. */
#newTicket #knowledgeSuggestions {
    margin: 14px 0 18px 0;
    border: 1px solid #d6dbe1;
    border-radius: 4px;
    background: #ffffff;
}

#newTicket #knowledgeSuggestions .kbSuggestionsHeader {
    padding: 12px 14px;
    background: #f5f7fa;
    border-bottom: 1px solid #d6dbe1;
}

#newTicket #knowledgeSuggestions .kbSuggestionsHeader h3 {
    margin: 0 0 4px 0;
    font-size: 18px;
}

#newTicket #knowledgeSuggestions .kbSuggestionsHeader p {
    margin: 0;
    color: #5f6770;
    font-size: 13px;
}

#newTicket #knowledgeSuggestions .kbSuggestionsMessage {
    padding: 11px 14px;
    color: #4b5563;
}

#newTicket #knowledgeSuggestions .kbSuggestionList {
    list-style: none;
    padding: 0;
    margin: 0;
}

#newTicket #knowledgeSuggestions .kbSuggestionList li {
    padding: 11px 14px;
    border-bottom: 1px solid #e6e9ed;
}

#newTicket #knowledgeSuggestions .kbSuggestionList li:last-child {
    border-bottom: 0;
}

#newTicket #knowledgeSuggestions .kbSuggestionLink {
    color: #2f5bd3 !important;
    text-decoration: none;
    font-weight: 600;
}

#newTicket #knowledgeSuggestionArticle {
    padding: 14px;
}

#newTicket #knowledgeSuggestionArticle .kbArticleContent {
    margin-top: 10px;
}
