/* Enterprise knowledge page: governed search, references and lifecycle. */
#knowledgePage {
  display: grid;
  gap: 14px;
  max-width: 1500px;
  margin: 0 auto;
  padding: 24px 30px 42px;
  background: #eef2f0;
}

#knowledgePage .knowledge-executive {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(440px, .8fr);
  margin: 0;
  border: 1px solid #ccd8d2;
  border-left: 4px solid #4e776a;
  border-radius: 4px;
  background: #f8faf9;
}

#knowledgePage .knowledge-executive > div { padding: 19px 22px; }
#knowledgePage .knowledge-executive h3 { margin: 5px 0 6px; font-size: 20px; }
#knowledgePage .knowledge-executive p { max-width: 760px; font-size: 11px; }
#knowledgePage .knowledge-heading-line {
  display: flex;
  align-items: flex-start;
  gap: 9px;
}
#knowledgePage .knowledge-heading-line h3 { max-width: 650px; }
#knowledgePage .knowledge-heading-line .inline-info { flex: 0 0 auto; margin-top: 7px; }
#knowledgePage .knowledge-kpis > div { padding: 7px 16px; }
#knowledgePage .knowledge-kpis strong { font-size: 24px; font-variant-numeric: tabular-nums; }

.knowledge-search-bar {
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: 62px;
  padding: 10px 16px;
  border: 1px solid #ccd8d2;
  border-radius: 4px;
  background: #fff;
}

.knowledge-search-bar label { display: grid; grid-template-columns: auto minmax(360px, 680px); align-items: center; gap: 14px; flex: 1; }
.knowledge-search-bar label span { color: #354a44; font-size: 11px; font-weight: 800; }
.knowledge-search-bar input {
  width: 100%;
  height: 38px;
  padding: 0 13px;
  border: 1px solid #bdcbc5;
  border-radius: 4px;
  background: #f9fbfa;
  color: #253b35;
  transition: border-color .16s ease, box-shadow .16s ease, background-color .16s ease;
}
.knowledge-search-bar input:focus {
  outline: 0;
  border-color: #648d81;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(78, 119, 106, .12);
}
.knowledge-search-bar p { margin: 0; color: #788680; font-size: 9px; white-space: nowrap; }

#knowledgePage .knowledge-rag-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  margin: 0;
  border: 1px solid #ccd8d2;
  border-radius: 4px;
  background: #fff;
}

#knowledgePage .knowledge-rag-workspace.has-event-context { grid-template-columns: minmax(0, 1fr) 290px; }
#knowledgePage .knowledge-assets-live { min-width: 0; border: 0; }
#knowledgePage .knowledge-rag-workspace.has-event-context .knowledge-assets-live { border-right: 1px solid #d4ddd8; }
#knowledgePage #knowledgeManagementPanel { margin: 0; border: 0; border-radius: 0; box-shadow: none; }
#knowledgePage #knowledgeManagementPanel > .panel-body { padding: 0; }

#knowledgePage .knowledge-workspace-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 58px;
  padding: 9px 14px;
  border-bottom: 1px solid #d8e1dd;
  background: #f5f8f6;
}

#knowledgePage .knowledge-tabs { display: flex; gap: 6px; }
#knowledgePage .knowledge-tab-button {
  min-height: 34px;
  padding: 0 14px;
  border: 1px solid transparent;
  border-radius: 4px;
  background: transparent;
  color: #60726d;
  font-size: 11px;
  font-weight: 750;
}
#knowledgePage .knowledge-tab-button:hover { border-color: #c6d3ce; background: #fff; }
#knowledgePage .knowledge-tab-button.active { border-color: #76988d; background: #e3ede9; color: #28574d; }
#knowledgePage .knowledge-tab-button:focus-visible,
#knowledgePage .knowledge-management-details > summary:focus-visible {
  outline: 2px solid rgba(78, 119, 106, .32);
  outline-offset: 2px;
}
#knowledgePage .knowledge-tab-panel { padding: 14px; }
#knowledgePage .fault-library-toolbar { grid-template-columns: 190px; margin-bottom: 12px; }
#knowledgePage .fault-library-layout { grid-template-columns: 245px minmax(0, 1fr); gap: 0; border: 1px solid #d8e1dd; }
#knowledgePage .fault-library-list { max-height: 590px; overflow-y: auto; border: 0; border-right: 1px solid #d8e1dd; background: #f6f8f7; }
#knowledgePage .fault-library-detail { min-height: 470px; padding: 22px 24px; border: 0; background: #fff; }

.fault-decision-summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 16px; border-block: 1px solid #dfe6e3; }
.fault-decision-summary .fault-detail-section { margin: 0; padding: 16px 18px; border-right: 1px solid #dfe6e3; }
.fault-decision-summary .fault-detail-section:last-child { border-right: 0; }
.fault-source-summary { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px; margin-top: 14px; padding: 11px 14px; border-left: 3px solid #5f897b; background: #edf4f1; }
.fault-source-summary span { color: #4d7569; font-size: 9px; font-weight: 800; }
.fault-source-summary strong { overflow: hidden; color: #304a43; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.fault-source-summary small { color: #74837e; font-size: 8px; white-space: nowrap; }
.fault-professional-detail { margin-top: 14px; border-top: 1px solid #dfe6e3; }
.fault-professional-detail > summary { padding: 13px 2px; color: #39695e; font-size: 10px; font-weight: 800; cursor: pointer; }
.fault-professional-detail[open] > summary { border-bottom: 1px solid #dfe6e3; }

#knowledgePage .knowledge-reference-loop { align-self: start; border: 0; border-bottom: 1px solid #d8e1dd; background: #f2f6f4; }
#knowledgePage .knowledge-reference-loop header { padding: 17px; border-bottom: 1px solid #d8e1dd; }
#knowledgePage .knowledge-reference-loop header small { color: #51776c; font-size: 8px; font-weight: 800; }
#knowledgePage .knowledge-reference-loop header h3 { margin: 5px 0 0; color: #2d4941; font-size: 13px; }
#knowledgePage .knowledge-reference-loop > div { display: grid; gap: 8px; padding: 18px; }
#knowledgePage .knowledge-reference-loop strong { color: #2d4c43; }
#knowledgePage .knowledge-reference-loop span,
#knowledgePage .knowledge-reference-loop p { margin: 0; color: #71807b; font-size: 9px; line-height: 1.5; }

.knowledge-management-details {
  border: 1px solid #ccd8d2;
  border-radius: 4px;
  background: #f7f9f8;
}

.knowledge-management-details > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 13px 17px;
  list-style: none;
  cursor: pointer;
  transition: background-color .16s ease;
}
.knowledge-management-details > summary:hover { background: #eef4f1; }
.knowledge-management-details > summary::-webkit-details-marker { display: none; }
.knowledge-management-details > summary span,
.knowledge-management-details > summary small,
.knowledge-management-details > summary strong { display: block; }
.knowledge-management-details > summary small { color: #70817b; font-size: 8px; }
.knowledge-management-details > summary strong { margin-top: 3px; color: #354a44; font-size: 11px; }
.knowledge-management-details > summary b { color: #60756e; font-size: 9px; }
.knowledge-management-details[open] > summary { border-bottom: 1px solid #d5ded9; }
#knowledgePage .knowledge-management-details .knowledge-lifecycle { margin: 0; border: 0; border-bottom: 1px solid #d5ded9; }
#knowledgePage .knowledge-management-details .knowledge-context-details { margin: 0; border: 0; }

@media (max-width: 1250px) {
  #knowledgePage .knowledge-rag-workspace.has-event-context { grid-template-columns: minmax(0, 1fr) 250px; }
}

@media (max-width: 980px) {
  #knowledgePage .knowledge-executive,
  #knowledgePage .knowledge-rag-workspace.has-event-context,
  #knowledgePage .fault-library-layout { grid-template-columns: 1fr; }
  .knowledge-search-bar { display: grid; }
  .knowledge-search-bar label { grid-template-columns: 1fr; }
  .knowledge-search-bar p { white-space: normal; }
  #knowledgePage .fault-library-list { max-height: 260px; border-right: 0; border-bottom: 1px solid #d8e1dd; }
  .fault-decision-summary { grid-template-columns: 1fr; }
  .fault-decision-summary .fault-detail-section { border-right: 0; border-bottom: 1px solid #dfe6e3; }
  .fault-source-summary { grid-template-columns: 1fr; }
}
