


/*to make the svg resizable*/ /*
.svg-container {
    display: inline-block;
    position: relative;
    width: 100%;
    /*padding-bottom: 100%; /* aspect ratio */ /*
    vertical-align: top;
    /*overflow: hidden;*/ /*
}

.svg-content-responsive {
    display: inline-block;
    position: absolute;
    top: 10px;
    left: 0;
} */ /*

svg {
  border: 1px solid #999;
  /*overflow: hidden;*/ /*
} */

.canvas {
  overflow: visible;
}
.canvas .wrapper.outer > .background {
  fill: #FFFFFF;
  stroke: #333333;
}
.canvas .wrapper.inner > .background {
  fill: #FFFFFF;
  cursor: move;
}
.canvas .background {
  fill: #FFFFFF;
  cursor: move;
}
.canvas .panCanvas {
  cursor: click;
}

.canvas .minimap {
  stroke-width: 1px;
}

.canvas .minimap .frame {
  pointer-events: all;
}

.canvas .minimap .container {
  stroke: #000000; /* #111111 */
  /*stroke-width: 1px;*/
  /*border: 1px solid #999;*/
}

.canvas .minimap .frame .background {
  stroke: #FF0000; /* #111111 */
  stroke-width: 10px;
  fill-opacity: 0.1;   /*grey shade of mini-map*/
  fill: #FFFFFF; /* #FF0000 */
  /*fill: url(#minimapGradient_qwpyza); */
  filter: url(#minimapDropShadow_qwpyza);
  cursor: move;
  border: 1px solid #999;
}

/*
.cluster rect {
  stroke: #333;
  fill: #000;
  fill-opacity: 0.1;
  stroke-width: 1.5px;
}*/

h1, h2 {
  color: #333;
}

/*textarea {
  width: 800px;
}*/

text {
  font-family: sans-serif;
  font-size: 14px;
  /* no effect:
  text-align: center;
  word-wrap: break-word;
  width: 50px;
  max-width: 60px;
  */
}

.activityNameText {
    color:black;
    text-align: center;
}
.locationText {
    color: grey;
    text-align: center;
    /*font-weight:bold;*/
}
.edgeText {
    color:darkblue;
    text-align: center;
}

.node {
    fill: black;  /* text color of nodes*/
    /* no effect:
    white-space: nowrap;
    */
}

.node rect {
  stroke: #333;
  fill: #fff;
  stroke-width: 3px;
}

.node.demand {
  /*stroke: #333;  */
  font-weight: bold
}

.node.demand rect {
  stroke: darkblue;
  fill: #fff;
  stroke-width: 4px;
}

.node.market rect {
  stroke: #ed9736;
  fill: #fff;
  stroke-width: 3px;
}

.node.marketgroup rect {
  stroke: #ffc34c;
  fill: #fff;
  stroke-width: 3px;
}

.node.treatment rect {
  stroke: #f4425c;
  fill: #fff;
  stroke-width: 3px;
}

/* Edges */
/*.edgePath path.path {
  stroke: red;
  /*fill: darkred; /* Arrow head */
  /*lineInterpolate: basis;*/
/*}*/

.edgePath.impact path.path {
  stroke: red;
  opacity: 0.7;
}

.edgePath.benefit path.path {
  stroke: green;
  opacity: 0.7;
}

/* Arrowhead */
.edgePath path {
  stroke: none;
  /*fill: black;*/
  opacity: 0.3;
}

/* Sankey: hover hit-testing on flow strokes + edge labels */
body.ab-sankey-tab g.edgePath path.path {
  pointer-events: stroke;
}

body.ab-sankey-tab g.edgeLabel {
  pointer-events: all;
}
/*.edgePath marker {
  fill: darkgrey; /* Arrow head */
  /*opacity: 1;
}*/

.edgeLabel {
    fill: darkblue;  /* text color of edges*/
}

/* Slightly smaller edge labels + tighter line height reduce overlap between neighboring links */
body.ab-sankey-tab g.edgeLabel text {
  font-size: 11px;
}
body.ab-sankey-tab g.edgeLabel tspan {
  font-size: 11px;
}




/*.label {
   /* text color*/
  /* no effect:
  margin-top: 30em;
fill: red;
  display: block;
  text-align: right;
  font: 20px sans-serif;
  background: #fffce2;
  padding: 200px; */
/*}

.edgeLabel {
   /* text color*/
  /* no effect:
  fill: red;
  margin-top: 30em;
  display: block;
  text-align: right;
  font: 20px sans-serif;
  background: #fffce2;
  padding: 200px; */
/*}*/

.error {
  color: red;
}

div.tooltip {
    position: absolute;
    text-align: left;
    width: auto;
    height: auto;
    padding: 2px;
    font: 12px sans-serif;
    background: #fffce2;
    border: 0px;
    border-radius: 8px;
    pointer-events: none;
    /*color: red;*/
}

/* Fill the webview: flex gives #canvasqPWKOg the height Qt leaves below the controls. */
html.ab-sankey-root,
body.ab-sankey-tab {
  height: 100%;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html.ab-sankey-root {
  overflow: hidden;
}

body.ab-sankey-tab {
  display: flex;
  flex-direction: column;
}

body.ab-sankey-tab #canvasqPWKOg.canvas {
  flex: 1;
  min-height: 0;
  width: 100%;
}

body.ab-sankey-tab .ab-sankey-controls {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.5em 0.75em;
  margin: 0.35em 0.35em 0.45em 0.35em;
  flex-shrink: 0;
  overflow-x: auto;
}

body.ab-sankey-tab .ab-sankey-controls select#nodeSelectPWK0g {
  min-width: 10em;
  flex: 1 1 8em;
  max-width: min(28em, 45vw);
}

body.ab-sankey-tab .ab-sankey-minimap-label,
body.ab-sankey-tab .ab-sankey-flows-label {
  margin-left: 0;
  font-size: 0.95em;
  white-space: nowrap;
}

body.ab-sankey-tab .ab-sankey-impact-toggles {
  display: inline-flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 0.25em 0.55em;
  font-size: 0.95em;
  white-space: nowrap;
}

body.ab-sankey-tab svg g.ab-sankey-pan-minimap {
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.22));
}

/* Plain-text Sankey node labels (SVG text + tspans) */
body.ab-sankey-tab g.node text {
  font-size: 12px;
}

/* Geography line (second last tspan) in Sankey node labels */
body.ab-sankey-tab g.node text tspan:nth-last-child(2) {
  fill: #666;
   font-size: 11px;
}