/* Prohda Web shell. Login styles come from login.css (shared with the admin app). */
.prohdaWeb {
  background: var(--sapBackgroundColor, #f5f6f7);
}

/* Only the shell's own page must not scroll; each screen page inside it scrolls its content. */
.prohdaShellPage > section {
  overflow: hidden !important;
}

.prohdaSideNavigation {
  background: var(--sapList_Background, #fff);
}

.prohdaWorkArea {
  display: flex;
  height: 100%;
  min-height: 0;
}

.prohdaScreenHost {
  flex: 1 1 auto;
  min-width: 0;
}

.prohdaScreen {
  padding: 1.25rem 1.5rem;
}

.prohdaScreenLead {
  display: block;
  margin: .25rem 0 1rem;
  color: var(--sapContent_LabelColor, #556b82);
}

.prohdaScreenStrip {
  margin-bottom: 1rem;
}

.prohdaCardBody {
  padding: 0 1rem 1rem;
}

.prohdaEnvironmentRow {
  padding: .3rem 0;
  border-bottom: 1px solid var(--sapList_BorderColor, #e5e5e5);
}

/* AI panel beside every screen. */
.prohdaAiHost {
  position: relative;
  flex: 0 0 var(--prohda-ai-width, 26rem);
  width: var(--prohda-ai-width, 26rem);
  min-width: 0;
  height: 100%;
  border-left: 1px solid var(--sapGroup_TitleBorderColor, #d9d9d9);
  background: var(--sapGroup_ContentBackground, #fff);
}

.prohdaAiPanel {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
}

.prohdaAiHeader {
  padding: .5rem .5rem .25rem 1rem;
}

.prohdaAiContext {
  display: block;
  padding: 0 1rem .5rem;
  font-size: .8125rem;
  color: var(--sapContent_LabelColor, #556b82);
}

.prohdaAiNotice {
  margin: 0 1rem .5rem;
}

.prohdaAiScroll {
  flex: 1 1 auto;
  min-height: 0;
}

.prohdaAiMessages {
  display: flex;
  flex-direction: column;
  gap: .75rem;
  padding: .5rem 1rem 1rem;
}

.prohdaAiUser {
  align-self: flex-end;
  max-width: 85%;
  padding: .5rem .75rem;
  border-radius: .75rem .75rem .25rem .75rem;
  background: var(--sapButton_Emphasized_Background, #0070f2);
  color: var(--sapButton_Emphasized_TextColor, #fff);
}

.prohdaAiUser .sapMText {
  color: inherit;
}

.prohdaAiAnswer {
  max-width: 100%;
  padding: .5rem .75rem;
  border-radius: .75rem .75rem .75rem .25rem;
  background: var(--sapBackgroundColor, #f5f6f7);
  overflow-x: auto;
}

.prohdaAiAnswer table {
  border-collapse: collapse;
  margin: .5rem 0;
  font-size: .8125rem;
}

.prohdaAiAnswer th,
.prohdaAiAnswer td {
  padding: .25rem .5rem;
  border: 1px solid var(--sapList_BorderColor, #d9d9d9);
  text-align: left;
  vertical-align: top;
}

.prohdaAiAnswer pre {
  padding: .5rem;
  overflow-x: auto;
  background: var(--sapShell_Background, #eff1f2);
}

.prohdaAiWarning {
  border-left: 3px solid var(--sapCriticalColor, #e76500);
}

.prohdaAiError {
  border-left: 3px solid var(--sapNegativeColor, #aa0808);
}

.prohdaAiProgress {
  gap: .5rem;
  padding: .25rem 1rem;
}

.prohdaAiProgressText {
  font-size: .8125rem;
  color: var(--sapContent_LabelColor, #556b82);
}

.prohdaAiComposer {
  gap: .5rem;
  padding: .5rem 1rem 1rem;
  border-top: 1px solid var(--sapGroup_TitleBorderColor, #d9d9d9);
}

.prohdaAiComposerRow {
  gap: .5rem;
}

.prohdaAiComposer .prohdaAiInput {
  flex: 1 1 auto;
}

/* Discreet info line under the question field; items sit side by side. */
.prohdaAiComposerInfo {
  gap: .75rem;
  margin-top: -.375rem;
}

.prohdaAiComposerInfo .sapMText {
  font-size: .625rem;
  line-height: .875rem;
  color: var(--sapContent_LabelColor, #556b82);
  opacity: .8;
}

/* Narrow screens: the AI panel covers the screen instead of sharing the width. */
@media (max-width: 900px) {
  .prohdaAiHost {
    position: absolute;
    inset: 0;
    width: 100%;
    z-index: 10;
  }

  .prohdaWorkArea {
    position: relative;
  }
}

.prohdaAiComposer {
  display: flex;
}

.prohdaAiComposer > .prohdaAiInput {
  flex: 1 1 auto;
  min-width: 0;
}

.prohdaAiMarkdown {
  font-size: .875rem;
  line-height: 1.45;
  color: var(--sapTextColor, #1d2d3e);
}

.prohdaAiMarkdown p,
.prohdaAiMarkdown ul,
.prohdaAiMarkdown ol {
  margin: .25rem 0 .5rem;
}

.prohdaAiMarkdown blockquote {
  margin: .5rem 0;
  padding: .25rem .75rem;
  border-left: 3px solid var(--sapButton_Emphasized_Background, #0070f2);
  background: var(--sapGroup_ContentBackground, #fff);
}

.prohdaCardBody {
  width: 100%;
  box-sizing: border-box;
}

.prohdaEnvironmentRow {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

/* Client logos are often wide: show the whole logo on white instead of cropping it to the square. */
.prohdaClientGrid .sapFCardIcon.sapFAvatarSquare:not(.sapFAvatarInitials):not(.sapFAvatarIcon),
.prohdaClientGrid .sapFCardIcon.sapFAvatarSquare .sapFAvatarImageHolder {
  width: 4.5rem;
  background-color: #fff;
  background-size: contain !important;
  background-repeat: no-repeat;
  background-position: center;
  border: 1px solid var(--sapList_BorderColor, #e5e5e5);
}

/* F1 screens. */
.prohdaScreenHeader {
  margin-bottom: .75rem;
  gap: .5rem;
}

.prohdaHeaderActions {
  gap: .5rem;
}

.prohdaUpdated,
.prohdaSubtle {
  font-size: .8125rem;
  color: var(--sapContent_LabelColor, #556b82);
}

.prohdaTiles {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin: .5rem 0 1.5rem;
}

.prohdaTile.sapMGT {
  margin: 0;
}

.prohdaSectionHeader {
  margin: 1rem 0 .5rem;
  gap: .5rem;
}

.prohdaTable {
  margin-bottom: 1rem;
}

.prohdaClientCell {
  gap: .5rem;
}

.prohdaClientLogo.sapFAvatarImage,
.prohdaClientLogo .sapFAvatarImageHolder {
  width: 3rem;
  background-color: #fff;
  background-size: contain !important;
  background-repeat: no-repeat;
  background-position: center;
  border: 1px solid var(--sapList_BorderColor, #e5e5e5);
}

.prohdaCategoryBars {
  display: flex;
  flex-direction: column;
  gap: .25rem;
  max-width: 48rem;
}

.prohdaCategoryRow {
  gap: 1rem;
}

.prohdaCategoryBar {
  flex: 1 1 auto;
  margin: 0;
}

/* Client cards on the dashboard: the left edge carries the client's situation. */
.prohdaClientGrid {
  margin-bottom: 1rem;
}

.prohdaClientCard.prohdaHealthCRITICAL {
  box-shadow: inset 4px 0 0 var(--sapNegativeColor, #aa0808);
}

.prohdaClientCard.prohdaHealthWARNING {
  box-shadow: inset 4px 0 0 var(--sapCriticalColor, #e76500);
}

.prohdaClientCard.prohdaHealthPENDING {
  box-shadow: inset 4px 0 0 var(--sapInformativeColor, #0070f2);
}

.prohdaClientCard .sapFCardHeader .sapFAvatarImage {
  width: 4.5rem;
  background-color: #fff;
  background-size: contain !important;
  background-repeat: no-repeat;
  background-position: center;
  border: 1px solid var(--sapList_BorderColor, #e5e5e5);
}

.prohdaCardCollector {
  margin-left: .75rem;
}

/* F2 iFlow screen. */
.prohdaToolbar {
  gap: .75rem;
  margin: .5rem 0 .75rem;
}

.prohdaStatusRow {
  gap: 1rem;
  margin-top: .5rem;
}

.prohdaSummaryText {
  display: block;
  max-width: 60rem;
  margin: .75rem 0;
  font-size: .9375rem;
  line-height: 1.5;
}

.prohdaTabs .sapMITBContainerContent {
  padding: .5rem 0 0;
  background: transparent;
}

.prohdaAttachmentLayout {
  display: flex;
  height: 100%;
}

.prohdaAttachmentList {
  flex: 0 0 18rem;
  border-right: 1px solid var(--sapList_BorderColor, #e5e5e5);
  overflow-y: auto;
}

.prohdaAttachmentContent {
  flex: 1 1 auto;
  min-width: 0;
  overflow: auto;
}

.prohdaAttachmentView {
  padding: .75rem 1rem;
}

.prohdaAttachmentView pre {
  margin: 0;
  font-size: .8125rem;
  white-space: pre-wrap;
  word-break: break-word;
}

/* AI panel: readable user bubble, no horizontal page scroll from long words, tables or code. */
.prohdaAiUser {
  background: var(--sapButton_Emphasized_Background, #0a6ed1) !important;
  overflow-wrap: anywhere;
}

.prohdaAiUser .sapMText,
.prohdaAiUser .sapMText * {
  color: var(--sapButton_Emphasized_TextColor, #fff) !important;
}

/* "Perguntar de novo" below each question, after a thin line, readable on the blue bubble. */
.prohdaAiUser .prohdaAiRepeatBar {
  margin-top: .375rem;
  padding-top: .125rem;
  border-top: 1px solid rgba(255, 255, 255, .35);
}

.prohdaAiUser .prohdaAiRepeat {
  height: 1.5rem;
  margin: 0 -.5rem -.25rem 0;
}

.prohdaAiUser .prohdaAiRepeat .sapMBtnInner {
  height: 1.5rem;
  min-height: 1.5rem;
  padding: 0 .375rem;
  background: transparent !important;
  border-color: transparent !important;
}

.prohdaAiUser .prohdaAiRepeat .sapMBtnInner,
.prohdaAiUser .prohdaAiRepeat .sapMBtnIcon,
.prohdaAiUser .prohdaAiRepeat .sapMBtnContent {
  color: var(--sapButton_Emphasized_TextColor, #fff) !important;
  font-size: .75rem;
  line-height: 1.5rem;
}

.prohdaAiUser .prohdaAiTime {
  display: block;
  font-size: .6875rem;
  opacity: .8;
  margin-bottom: .125rem;
}

.prohdaAiAnswer {
  overflow-x: hidden;
  overflow-wrap: anywhere;
}

.prohdaAiMarkdown {
  max-width: 100%;
}

.prohdaAiMarkdown table {
  display: block;
  max-width: 100%;
  overflow-x: auto;
}

.prohdaAiMarkdown pre {
  max-width: 100%;
  white-space: pre-wrap;
  word-break: break-word;
  color: var(--sapTextColor, #1d2d3e);
  background: var(--sapShell_Background, #eff1f2);
}

.prohdaAiMarkdown code {
  color: var(--sapTextColor, #1d2d3e);
  overflow-wrap: anywhere;
}

.prohdaAiMarkdown blockquote,
.prohdaAiMarkdown blockquote p {
  color: var(--sapTextColor, #1d2d3e);
}

.prohdaAiOlder {
  opacity: .75;
}

.prohdaAiOlderLink,
.prohdaAiDivider {
  align-self: center;
  font-size: .8125rem;
}

.prohdaAiDivider {
  color: var(--sapContent_LabelColor, #556b82);
  border-top: 1px solid var(--sapList_BorderColor, #e5e5e5);
  padding-top: .5rem;
  width: 100%;
  text-align: center;
}

/* Environment choices offered when the AI could not tell which client and environment a question is about. */
.prohdaAiScopeChoices {
  margin: -.25rem 0 .5rem;
}

/* Charts and failure groups on the dashboard. */
.prohdaChart {
  display: block;
}

.prohdaTrendCard {
  padding: 1rem 1.25rem;
  background: var(--sapTile_Background, #fff);
  border-radius: 1rem;
  box-shadow: var(--sapContent_Shadow0, 0 0 .125rem rgba(34, 53, 72, .15));
  min-width: 14rem;
  flex: 1 1 14rem;
}

.prohdaEnvPanel {
  padding: 1rem 1.25rem;
  margin-bottom: 1rem;
  background: var(--sapTile_Background, #fff);
  border-radius: 1rem;
  box-shadow: var(--sapContent_Shadow0, 0 0 .125rem rgba(34, 53, 72, .15));
}

.prohdaEnvPanel.prohdaHealthCRITICAL { box-shadow: inset 4px 0 0 var(--sapNegativeColor, #aa0808); }
.prohdaEnvPanel.prohdaHealthWARNING { box-shadow: inset 4px 0 0 var(--sapCriticalColor, #e76500); }
.prohdaEnvPanel.prohdaHealthPENDING { box-shadow: inset 4px 0 0 var(--sapInformativeColor, #0070f2); }

.prohdaEnvHeader {
  gap: 1.5rem;
  margin-bottom: .75rem;
}

.prohdaReason {
  display: block;
  font-size: .8125rem;
  color: var(--sapContent_LabelColor, #556b82);
}

.prohdaErrorGroup {
  padding: .625rem 0;
  border-top: 1px solid var(--sapList_BorderColor, #e5e5e5);
  gap: 1rem;
}

.prohdaErrorCount {
  flex: 0 0 4rem;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--sapNegativeColor, #aa0808);
}

.prohdaErrorBody {
  flex: 1 1 auto;
  min-width: 0;
}

.prohdaErrorFlows {
  gap: .25rem 1rem;
  margin-top: .25rem;
}

.prohdaNewBadge {
  margin-left: .25rem;
}

/* Client page (opened from the client tree), laid out like the admin app. */
.prohdaFcl {
  height: 100%;
}

.prohdaColumnPage .sapMPageEnableScrolling {
  background: var(--sapBackgroundColor, #f5f6f7);
}

.prohdaClientTitle {
  gap: .75rem;
}

.prohdaClientAvatar.sapFAvatarImage,
.prohdaClientAvatar .sapFAvatarImageHolder {
  width: 4.5rem;
  background-color: #fff;
  background-size: contain !important;
  background-repeat: no-repeat;
  background-position: center;
  border: 1px solid var(--sapList_BorderColor, #e5e5e5);
}

.prohdaEnvIcon {
  color: var(--sapContent_IconColor, #1d2d3e);
}

.prohdaKpis {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2.5rem;
  margin: .25rem 0 1rem;
}

.prohdaKpi .sapMLabel {
  font-size: .8125rem;
  color: var(--sapContent_LabelColor, #556b82);
}

.prohdaKpiIcon {
  margin-right: .375rem;
  font-size: 1.125rem;
}

.prohdaKpiValue .sapMObjectNumberText {
  font-size: 1.5rem;
  line-height: 1.3;
  font-weight: 700;
}

.prohdaEnvGrid {
  padding-top: .5rem;
}

.prohdaEnvCard {
  cursor: pointer;
}

.prohdaEnvCard.prohdaHealthCRITICAL { box-shadow: inset 4px 0 0 var(--sapNegativeColor, #aa0808); }
.prohdaEnvCard.prohdaHealthWARNING { box-shadow: inset 4px 0 0 var(--sapCriticalColor, #e76500); }
.prohdaEnvCard.prohdaHealthPENDING { box-shadow: inset 4px 0 0 var(--sapInformativeColor, #0070f2); }

.prohdaEnvCard.prohdaEnvCardActive {
  outline: 2px solid var(--sapSelectedColor, #0064d9);
  outline-offset: -2px;
}

.prohdaEnvChips {
  gap: .375rem 1rem;
  margin: .5rem 0;
}

.prohdaCardChart {
  margin-top: .25rem;
}

.prohdaPendencies {
  margin-bottom: .5rem;
}

.prohdaEnvColumn .prohdaScreen {
  padding: 0;
}

/* F3: OData queries and EDMX browser in the environment column. */
.prohdaODataForm .sapUiFormCLContent {
  padding: 0;
}

.prohdaODataPreview {
  display: block;
  margin: .25rem 0 .75rem;
  padding: .5rem .75rem;
  font-family: var(--sapFontFamilyMonospace, Consolas, "Courier New", monospace);
  font-size: .8125rem;
  word-break: break-all;
  background: var(--sapNeutralBackgroundColor, #f5f6f7);
  border-radius: .25rem;
}

.prohdaODataPreview:empty {
  display: none;
}

.prohdaODataPager {
  gap: .5rem;
}

.prohdaODataTable .sapMListTblCell {
  white-space: nowrap;
  max-width: 24rem;
  overflow: hidden;
  text-overflow: ellipsis;
}

.prohdaODataTree {
  margin-bottom: 1rem;
}

.prohdaEdmxPanel {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.prohdaEdmxNav {
  flex: 0 0 18rem;
  max-height: calc(100vh - 16rem);
  overflow: auto;
  border-right: 1px solid var(--sapList_BorderColor, #e5e5e5);
  padding-right: .5rem;
}

.prohdaEdmxDetail {
  flex: 1 1 auto;
  min-width: 0;
}

.prohdaEdmxSection {
  margin: 1rem 0 .25rem;
  gap: 1rem;
}

@media (max-width: 900px) {
  .prohdaEdmxPanel {
    flex-direction: column;
  }

  .prohdaEdmxNav {
    flex-basis: auto;
    width: 100%;
    max-height: 18rem;
    border-right: 0;
    border-bottom: 1px solid var(--sapList_BorderColor, #e5e5e5);
    padding: 0 0 .5rem;
  }
}

.prohdaDateRange {
  display: flex;
  gap: .5rem;
}

.prohdaPicklistBar {
  gap: .5rem;
  margin-bottom: .5rem;
}

.prohdaPicklistBar .sapMSF {
  flex: 1 1 auto;
}

.prohdaDialogContent {
  padding: .75rem 1rem;
}

/* F6: file side by side of the environment comparison. */
.prohdaDiff {
  padding: .5rem 1rem;
  overflow: auto;
}

.prohdaDiff table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  font-family: var(--sapFontFamilyMonospace, "Consolas", monospace);
  font-size: .75rem;
}

.prohdaDiff th {
  text-align: left;
  padding: .25rem .5rem;
  border-bottom: 1px solid var(--sapList_BorderColor, #e5e5e5);
}

.prohdaDiff td {
  padding: 0 .5rem;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  vertical-align: top;
}

.prohdaDiff th:nth-child(odd),
.prohdaDiff .prohdaDiffNo {
  width: 3rem;
  text-align: right;
  color: var(--sapContent_LabelColor, #556b82);
}

.prohdaDiffCHANGED td {
  background: var(--sapWarningBackground, #fef7f1);
}

.prohdaDiffONLY_A td {
  background: var(--sapErrorBackground, #ffeaf4);
}

.prohdaDiffONLY_B td {
  background: var(--sapSuccessBackground, #f5fae5);
}

/* Environment synchronization on the client page (F6). */
.prohdaSync {
  margin: .25rem 0 1rem;
}

.prohdaSyncRow {
  gap: .25rem 1rem;
  margin-top: .375rem;
}

.prohdaSyncPair {
  min-width: 7rem;
  font-weight: 600;
}

.prohdaSyncBar.sapMPI {
  margin: 0;
}

/* iFlow health checks in the "Saúde" tab (F6). */
.prohdaHealthChecks {
  margin-top: 1.5rem;
}

.prohdaChips {
  gap: .25rem .75rem;
  margin: .25rem 0 .5rem;
}

/* iFlow diagram (F6): colors per step category, readable in light and dark themes. */
.prohdaDiagramLayout {
  gap: 1rem;
  align-items: flex-start;
}

.prohdaDiagramCanvas {
  flex: 1 1 auto;
  min-width: 0;
  height: 70vh;
  overflow: auto;
  border: 1px solid var(--sapList_BorderColor, #e5e5e5);
  border-radius: .5rem;
  background: var(--sapBackgroundColor, #f5f6f7);
  padding: .5rem;
  cursor: grab;
  user-select: none;
  touch-action: none;
}

.prohdaDiagramCanvas.prohdaDiagramDragging {
  cursor: grabbing;
}

.prohdaDiagramGrid {
  fill: var(--sapBackgroundColor, #f5f6f7);
}

.prohdaDiagramSvg {
  display: block;
  max-width: none;
  font-family: var(--sapFontFamily, Arial, sans-serif);
  font-size: 11px;
}

.prohdaDiagramShape rect,
.prohdaDiagramShape circle,
.prohdaDiagramShape path {
  fill: var(--sapTile_Background, #fff);
  stroke: var(--sapNeutralBorderColor, #758ca4);
  stroke-width: 1.2;
  cursor: pointer;
}

.prohdaDiagramShape text,
.prohdaDiagramEdge text {
  fill: var(--sapTextColor, #1d2d3e);
  pointer-events: none;
}

.prohdaDiagram-container rect {
  fill: transparent;
  stroke-dasharray: 0;
  stroke: var(--sapGroup_TitleBorderColor, #a8b2bd);
}

.prohdaDiagramContainerLabel {
  font-weight: 600;
}

.prohdaDiagram-start circle { fill: var(--sapSuccessBackground, #f5fae5); stroke: var(--sapPositiveColor, #256f3a); }
.prohdaDiagram-end circle { fill: var(--sapErrorBackground, #ffeaf4); stroke: var(--sapNegativeColor, #aa0808); stroke-width: 2.5; }
.prohdaDiagram-gateway path { fill: var(--sapWarningBackground, #fff8d6); stroke: var(--sapCriticalColor, #e76500); }
.prohdaDiagram-script rect, .prohdaDiagramLegend .prohdaDiagram-script { fill: #e8f1fd; background: #e8f1fd; stroke: #0a6ed1; border-color: #0a6ed1; }
.prohdaDiagram-mapping rect, .prohdaDiagramLegend .prohdaDiagram-mapping { fill: #f1e9fb; background: #f1e9fb; stroke: #7b4fc4; border-color: #7b4fc4; }
.prohdaDiagram-enricher rect, .prohdaDiagramLegend .prohdaDiagram-enricher { fill: #eaf6ee; background: #eaf6ee; stroke: #2b7d2b; border-color: #2b7d2b; }
.prohdaDiagram-call rect, .prohdaDiagramLegend .prohdaDiagram-call { fill: #fdeee3; background: #fdeee3; stroke: #c35500; border-color: #c35500; }
.prohdaDiagram-process rect, .prohdaDiagramLegend .prohdaDiagram-process { fill: #e6f5f7; background: #e6f5f7; stroke: #0b7c8a; border-color: #0b7c8a; }
.prohdaDiagram-routing rect, .prohdaDiagramLegend .prohdaDiagram-routing { fill: #fff6d9; background: #fff6d9; stroke: #b08300; border-color: #b08300; }
.prohdaDiagram-conversion rect, .prohdaDiagramLegend .prohdaDiagram-conversion { fill: #eef0f3; background: #eef0f3; stroke: #5b738b; border-color: #5b738b; }
.prohdaDiagram-persistence rect, .prohdaDiagramLegend .prohdaDiagram-persistence { fill: #fbe9ec; background: #fbe9ec; stroke: #b0304a; border-color: #b0304a; }

@media (prefers-color-scheme: dark) {
  .prohdaDiagramShape:not(.prohdaDiagram-container) rect { fill-opacity: .18; }
}

.prohdaDiagramEdge .prohdaDiagramLine {
  fill: none;
  stroke: var(--sapNeutralBorderColor, #758ca4);
  stroke-width: 1.3;
}

.prohdaDiagramChannel .prohdaDiagramLine {
  stroke-dasharray: 5 4;
}

.prohdaDiagramEdge .prohdaDiagramHit {
  fill: none;
  stroke: transparent;
  stroke-width: 10;
  cursor: pointer;
}

.prohdaDiagramArrowHead {
  fill: var(--sapNeutralBorderColor, #758ca4);
}

.prohdaDiagramEdgeLabel,
.prohdaDiagramSmall {
  font-size: 10px;
  fill: var(--sapTextColor, #1d2d3e);
  pointer-events: none;
}

.prohdaDiagramSelected rect,
.prohdaDiagramSelected circle,
.prohdaDiagramSelected path,
.prohdaDiagramSelected .prohdaDiagramLine {
  stroke: var(--sapSelectedColor, #0064d9) !important;
  stroke-width: 3 !important;
}

.prohdaDiagramSide {
  flex: 0 0 22rem;
  max-width: 22rem;
  max-height: 70vh;
  overflow: auto;
}

.prohdaDiagramLegend {
  display: flex;
  flex-wrap: wrap;
  gap: .25rem 1rem;
  margin: .25rem 0 .5rem;
  font-size: .8125rem;
  color: var(--sapContent_LabelColor, #556b82);
}

.prohdaDiagramLegend i {
  display: inline-block;
  width: .75rem;
  height: .75rem;
  margin-right: .3rem;
  vertical-align: -1px;
  border: 1px solid;
  border-radius: 2px;
}

.prohdaDiagramFile {
  margin: 0;
  padding: 1rem;
  font-size: .8125rem;
  white-space: pre;
  overflow: auto;
}

.prohdaStepTestCode .sapMTextAreaInner {
  font-family: monospace;
}

@media (max-width: 900px) {
  .prohdaDiagramLayout { flex-wrap: wrap; }
  .prohdaDiagramSide { flex-basis: 100%; max-width: none; }
}

/* iFlow planner (F6): steps on the left, live diagram on the right. */
.prohdaPlanToolbar {
  gap: .25rem .75rem;
  margin-bottom: .5rem;
}

.prohdaPlanLayout {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: flex-start;
  margin-top: .75rem;
}

.prohdaPlanLeft {
  flex: 1 1 34rem;
  min-width: 0;
}

.prohdaPlanRight {
  flex: 1 1 30rem;
  min-width: 0;
}

.prohdaPlanNext {
  gap: .5rem;
  margin-top: .75rem;
}

.prohdaPlanNext > :first-child {
  flex: 1 1 auto;
}

.prohdaPlanSuggestions {
  gap: .25rem;
  margin: .25rem 0;
  align-items: center;
}

.prohdaPlanCheck .sapMMsgStrip {
  margin-top: .375rem;
}

/* AI panel: drag the left edge to resize (double click restores); collapsed it becomes a slim rail on the right. */
.prohdaAiResize {
  position: absolute;
  top: 0;
  bottom: 0;
  left: -3px;
  width: 7px;
  cursor: col-resize;
  z-index: 5;
  touch-action: none;
}

.prohdaAiResize:hover {
  background: var(--sapHighlightColor, #0064d9);
  opacity: .35;
}

.prohdaWorkArea {
  position: relative;
}

/* Collapsed AI panel: a slim vertical tab stuck to the right edge, over the screen (own markup). */
.prohdaAiTab {
  position: absolute;
  right: 0;
  top: 35%;
  z-index: 20;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .4rem;
  width: 1.375rem;
  padding: .5rem 0 .6rem;
  border-radius: .375rem 0 0 .375rem;
  background: var(--sapButton_Emphasized_Background, #0064d9);
  color: #fff;
  box-shadow: 0 0 .5rem rgba(0, 0, 0, .18);
  cursor: pointer;
  user-select: none;
}

.prohdaAiTab:hover,
.prohdaAiTab:focus-visible {
  background: var(--sapButton_Emphasized_Hover_Background, #0054b6);
  outline: none;
}

.prohdaAiTabIcon {
  font-size: .8125rem;
  line-height: 1;
  color: #fff;
}

.prohdaAiTabText {
  writing-mode: vertical-rl;
  font-family: var(--sapFontFamily, Arial, sans-serif);
  font-size: .6875rem;
  font-weight: 600;
  letter-spacing: .03em;
  line-height: 1;
  white-space: nowrap;
  color: #fff;
}

@media (max-width: 900px) {
  .prohdaAiResize { display: none; }
}

/* ABAP behind a channel (F7): objects on the left, code on the right. */
.prohdaAbapLayout {
  gap: 1rem;
  align-items: flex-start;
  margin-top: .5rem;
}

.prohdaAbapObjects {
  flex: 0 0 18rem;
  max-height: 70vh;
  overflow: auto;
}

.prohdaAbapObject .sapMBtnInner {
  justify-content: flex-start;
}

.prohdaAbapLayout > .prohdaDiagramFile,
.prohdaAbapLayout > div:last-child {
  flex: 1 1 auto;
  min-width: 0;
  max-height: 70vh;
  overflow: auto;
}

/* Diagram side panel: the object as the CPI editor shows it (F7). */
.prohdaEditorView { display: flex; flex-direction: column; gap: .5rem; padding: .25rem 0 .5rem; font-size: .8125rem; }
.prohdaEditorItems { border-collapse: collapse; width: 100%; }
.prohdaEditorItems th { text-align: left; font-weight: 600; color: var(--sapContent_LabelColor); padding: .25rem .5rem .25rem 0; width: 40%; vertical-align: top; }
.prohdaEditorItems td { padding: .25rem 0; word-break: break-word; }
.prohdaEditorItems tr + tr th, .prohdaEditorItems tr + tr td { border-top: 1px solid var(--sapList_BorderColor); }
.prohdaEditorTableTitle { font-weight: 600; margin-top: .25rem; }
.prohdaEditorTableWrap { overflow-x: auto; }
.prohdaEditorTable { border-collapse: collapse; width: 100%; }
.prohdaEditorTable th, .prohdaEditorTable td { border: 1px solid var(--sapList_BorderColor); padding: .2rem .4rem; text-align: left; vertical-align: top; word-break: break-word; }
.prohdaEditorTable th { background: var(--sapList_HeaderBackground); font-weight: 600; }
.prohdaEditorRoute code, .prohdaEditorItems code { font-family: var(--sapFontFamilyMono, monospace); }
