/* NOTA (Sprint 8): a regra .tblAppsScroll foi REMOVIDA. Ela aplicava
   display:block + overflow no próprio sap.m.Table, o que quebrava a estrutura
   interna do componente e deixava as últimas linhas fora da área clicável.
   A rolagem da tabela "Apps por caixinha" agora é feita por um sap.m.ScrollContainer
   com altura explícita na Main.view.xml (hit-test correto, sem CSS no Table). */

/* FileUploader oculto mas MANTIDO no DOM (não usar visible=false, que remove o
   componente e some com o <input>, quebrando o click programático via oFileUpload). */
.mpUploaderHidden {
  position: absolute !important;
  width: 0 !important; height: 0 !important;
  overflow: hidden !important; opacity: 0 !important;
  pointer-events: none;
}

/* Sprint 7 — estilos do renderizador SVG de BPMN (Metropolis) */
.bpmnCanvas { width: 100%; height: 100%; max-width: 100%; max-height: 100%; background: var(--mt-superficie-2,#fafafa); cursor: grab; display: block; overflow: hidden; }
.bpmnCanvas:active { cursor: grabbing; }

.bpmnLane { fill: var(--mt-superficie,#ffffff); stroke: var(--mt-texto-suave,#6a6d70); stroke-width: 1; }
.bpmnLaneBand { fill: var(--mt-superficie-2,#f2f2f2); stroke: var(--mt-texto-suave,#6a6d70); stroke-width: 1; cursor: grab; }
.bpmnLaneLabel { font: 12px "72", Arial, sans-serif; fill: var(--mt-texto,#32363a); }

.bpmnTask { fill: var(--mt-selecao,#eaf3fb); stroke: var(--mt-marca,#256aa8); stroke-width: 1.5; }
.bpmnTaskAuto { fill: #eef7ee; stroke: var(--mt-positivo,#2a7d2a); }
.bpmnTaskIcon { font: 11px "72", Arial, sans-serif; fill: var(--mt-texto-suave,#556); pointer-events: none; }
.bpmnLabel { font: 11px "72", Arial, sans-serif; fill: var(--mt-texto,#1d2d3e); pointer-events: none; }
.bpmnLaneLabel, .bpmnGwSym, .bpmnFlowLabel, .bpmnAnnText { pointer-events: none; }

.bpmnGateway { fill: #fff6da; stroke: #b8860b; stroke-width: 1.5; }
.bpmnGwSym { font: 16px "72", Arial, sans-serif; font-weight: bold; }
.bpmnGwExc { fill: var(--mt-negativo,#b00020); }
.bpmnGwPar { fill: var(--mt-marca,#0a6ed1); }
.bpmnLaneResize { fill: transparent; cursor: ns-resize; }
.bpmnHandle { fill: var(--mt-superficie,#fff); stroke: var(--mt-marca,#0a6ed1); stroke-width: 1.5; cursor: nwse-resize; }
.bpmnWpHandle { fill: var(--mt-marca,#0a6ed1); stroke: var(--mt-superficie,#fff); stroke-width: 1.5; cursor: move; }
.bpmnDragPreview { stroke: var(--mt-marca,#0a6ed1); stroke-width: 2; stroke-dasharray: 6 4; fill: none; pointer-events: none; }
.bpmnFlowHit { cursor: pointer; }
[data-lane-id] { cursor: pointer; }
[data-flow-id] { cursor: pointer; }

.bpmnEvent { fill: var(--mt-superficie,#ffffff); stroke: var(--mt-texto,#4a4a4a); stroke-width: 1.5; }
.bpmnEventStart { stroke: var(--mt-positivo,#2a7d2a); }
.bpmnEventEnd { stroke: var(--mt-negativo,#b00020); stroke-width: 3; }

.bpmnFlow { fill: none; stroke: var(--mt-texto,#4a4a4a); stroke-width: 1.4; }
.bpmnFlowYes { stroke: var(--mt-positivo,#2a7d2a) !important; fill: none !important; }
.bpmnFlowNo { stroke: var(--mt-negativo,#b00020) !important; fill: none !important; }
.bpmnFlowLabel.bpmnFlowYes, .bpmnFlowLabel.bpmnFlowNo { stroke: none !important; }
.bpmnFlowLabel.bpmnFlowYes { fill: var(--mt-positivo,#2a7d2a) !important; }
.bpmnFlowLabel.bpmnFlowNo { fill: var(--mt-negativo,#b00020) !important; }
.bpmnAssoc { fill: none; stroke: var(--mt-texto-suave,#8a8d90); stroke-width: 1; stroke-dasharray: 4 3; }
.bpmnArrowHead { fill: var(--mt-texto,#4a4a4a); }
.bpmnArrowHeadYes { fill: var(--mt-positivo,#2a7d2a); }
.bpmnArrowHeadNo { fill: var(--mt-negativo,#b00020); }
.bpmnFlowLabel { font: 10px "72", Arial, sans-serif; fill: var(--mt-texto-suave,#556); }

.bpmnAnnBorder { fill: none; stroke: var(--mt-texto-suave,#8a8d90); stroke-width: 1; }
.bpmnAnnText { font: 10px "72", Arial, sans-serif; fill: #445; }

.bpmnAppSeal { fill: var(--mt-marca,#256aa8); }

.bpmnSelected { stroke: var(--mt-marca,#0a6ed1) !important; stroke-width: 3 !important; }
.bpmnConnSource { stroke: var(--mt-marca,#0854a0) !important; stroke-width: 3 !important; stroke-dasharray: 4 3; }
[data-element-id] { cursor: pointer; }

/* 0.3a: código do app/transação vinculado à caixinha */
.bpmnAppLabel { font-size: 9px; font-weight: 600; fill: var(--mt-marca,#256aa8); }

/* Sprint X2 — observação do negócio (textAnnotation) */
.bpmnAnnHit { fill: #fffbea; stroke: transparent; stroke-width: 1; cursor: pointer; }
.bpmnAnnText { font: 11px "72", Arial, sans-serif; fill: #3b3b2a; }
/* X2 — processo do cliente: caixinha nova (não veio de fluxo existente) e alterada em relação à origem */
.bpmnTaskNova { fill: #fdf0e3; stroke: #c35500; }
.bpmnTaskAlterada { fill: #f3ecfb; stroke: #7239b8; stroke-dasharray: 5 3; }
/* X3 — selos do que está ligado à caixinha */
.bpmnBadge { fill: var(--mt-texto,#1d2d3e); opacity: .88; }
.bpmnBadgeText { font: 10px "72", Arial, sans-serif; fill: var(--mt-superficie,#fff); }
.bpmnPicked { stroke: var(--mt-critico,#e9730c) !important; stroke-width: 4 !important; }
/* colocar elemento: fantasma que segue o mouse */
.bpmnFantasma { fill: rgba(10, 110, 209, 0.12); stroke: var(--mt-marca,#0a6ed1); stroke-width: 1.5; stroke-dasharray: 6 4; }
/* X2/X3.1: código da origem no canto da caixinha herdada/alterada */
.bpmnOrigemTag { font: 9px "72", Arial, sans-serif; fill: var(--mt-marca,#0a6ed1); opacity: .85; }
