/* pools and lanes */
.u-hdr rect {
  fill: none;
  stroke: black;
  stroke-width: 1px;
}
.u-hdr text {
  fill: var(--color-text,'black');
}
/* blocks */
.u-bloc rect,
.u-bloc polygon {
  fill: none;
  stroke: black;
  stroke-width: 3px;
}

.u-bloc.u-thick rect,
.u-bloc.u-thick polygon {
  stroke-width: 4px;
}

.u-bloc.u-green rect,
.u-bloc.u-green polygon {
  stroke: #a6d785;
  stroke-width: 4px;
}

.u-bloc.u-red rect,
.u-bloc.u-red polygon {
  stroke: #a11418;
  stroke-width: 4px;
}

.u-bloc .u-content {
  font-size: 0.9rem;
  padding: 10px;
  overflow-y: clip;
  text-align: center;
  font-weight: bold;
}

.u-bloc.u-btn {
  cursor: pointer;
}

.u-bloc.u-btn.u-disabled {
  cursor: not-allowed;
}

.u-bloc.u-btn rect,
.u-bloc.u-btn polygon {
  fill: whitesmoke;
  filter: drop-shadow(2px 4px 5px #444);
}

.u-bloc.u-btn circle {
  filter: drop-shadow(2px 4px 5px #444);
}

.u-bloc.u-btn.u-btn-down rect,
.u-bloc.u-btn.u-btn-down polygon,
.u-bloc.u-btn.u-btn-down circle {
  filter: none;
}

.u-bloc.u-disabled.u-btn rect,
.u-bloc.u-disabled.u-btn polygon,
.u-bloc.u-disabled.u-btn circle {
  filter: none;
}

.u-bloc.u-hidden,
.u-flo.u-hidden {
  visibility: hidden;
}

/* task */
.u-task rect {
  rx: 15px;
}

/* text annotation */
.u-bloc.u-textanno rect {
  stroke-width: 1px;
}

.u-bloc.u-textanno.u-noborder rect {
  stroke-width: 0px;
}

/* flows */

.u-flo text {
  font-size: 0.9rem;
  font-style: italic;
  fill: var(--color-text,'black');
}

.u-arro path {
  fill: rgba(0, 0, 0, 1);
}

.u-arro.u-back path {
  fill: #e1e1e1;
}

.u-sequence polyline,
.u-sequence path {
  fill: none;
  stroke: rgba(0, 0, 0, 0.6);
  stroke-width: 2px;
  stroke-linejoin: round;
  stroke-linecap: round;
}

.u-sequence.u-back path {
  stroke: rgba(0, 0, 0, 0.1);
}

.u-sequence.u-back.u-green path,
.u-sequence.u-green path {
  stroke-width: 4px;
  stroke: #a6d785;
}

.u-sequence.u-back.u-green path:hover,
.u-sequence.u-green path:hover {
  stroke: #ee940e;
}

.u-sequence.u-back.u-red path,
.u-sequence.u-red path {
  stroke-width: 4px;
  stroke: #a11418;
}

.u-sequence.u-back.u-thick path,
.u-sequence.u-thick path {
  stroke: black;
  stroke-width: 4px;
}

.u-sequence.u-back text {
  font-size: 0rem;
  font-style: italic;
}

.u-association path {
  fill: none;
  stroke: rgba(0, 0, 0, 0.6);
  stroke-width: 1px;
  stroke-linejoin: round;
}

.u-startevent circle {
  fill: none;
  stroke: black;
  stroke-width: 4px;
}

.u-startevent.u-red circle {
  stroke: #a11418;
}

.u-endevent circle {
  fill: black;
  stroke: none;
}

.u-endevent.u-red circle {
  fill: #a11418;
}

/* markers */
.u-bloc .u-marker text,
.u-flo .u-marker text {
  font-size: 0.8rem;
  font-weight: bold;
  font-style: normal;
}

.u-bloc .u-marker rect,
.u-flo .u-marker rect {
  stroke: none;
  rx: 12px;
  filter: drop-shadow(1px 2px 3px black);
}

.u-process-with-border .u-bloc g.u-marker:hover,
.u-process-with-border .u-flo g.u-marker:hover {
  opacity: 1;
}

.u-process-with-border .u-bloc g.u-marker,
.u-process-with-border .u-flo g.u-marker{
  opacity: 0.3;
  transform: translateY(20px);
}

.u-bloc.u-task.u-green g.u-marker{
  transform: translateY(10px);
}

.u-bloc .u-marker.u-mgreen rect,
.u-flo .u-marker.u-mgreen rect {
  fill: rgba(176, 219, 147, 1);
}

.u-bloc .u-marker.u-mred rect,
.u-flo .u-marker.u-mred rect {
  fill: #a11418;
}

.u-mred text.u-info {
  fill: white;
}

.u-flo .u-marker circle {
  fill: #ffeb3b;
  stroke: none;
}

.u-flo .u-marker.u-mfirst circle {
  fill: #00bcd4;
}

.u-bloc .u-marker circle {
  fill: white;
  stroke: none;
}

/* process with border */
svg.u-process-with-border {
  margin: 2rem;
  margin-top: 0rem;
}

svg.u-process-key {
  margin-left: 5.5rem;
}

.u-key text {
  font-size: 0.8rem;
  font-weight: bold;
}

.u-process-title-flexitem {
  padding-left: 12rem;
}

.u-process-title {
  padding-top: 6px;
  font-size: 1rem;
  color: #a11418;
  text-shadow: 1px 1px 2px darkgrey;
}

/* handles */

.u-process .u-handles circle {
    fill: rgb(0 255 172 / 31%);
  /*fill: rgb(132 188 223 / 40%); */
  /* fill: rgb(0 188 212 / 25%); */
  stroke: none;
  stroke-width: 0px;
}

.u-process .u-handles rect.u-move {
  fill: rgb(132 188 223 / 15%);
  stroke: none;
  rx: 15px;
}

.u-process .u-connectline {
  stroke: rgb(132 188 223 / 40%);
  stroke-width: 2px;
}

.u-bloc.u-dragging-to rect,
.u-bloc.u-dragging-to polygon,
.u-bloc.u-dragging-to circle {
  filter: drop-shadow(0px 0px 5px rgb(0, 157, 255));
}

/* Process Diagram Panel */
.u-task {
  display: grid;
  /* grid-gap: 5px; */
  grid-template-rows: min-content 1fr;

  margin: 0.5rem auto;
  border: 2px solid black;
  border-radius: 25px;
  padding: 1rem;
  font-size: 1rem;
}

.u-task-description {
  /* margin: auto;  */
  color: black;
  justify-self: center;
  align-self: start;
  margin-bottom: 1.5rem;
}

.u-task-user-container {
  /* margin: auto; */
  display: flex;
  flex-flow: row wrap;
  /* align-self: end; */
  justify-self: center;
  overflow: hidden scroll;
}

.u-task-user {
  margin: 5px 3px 5px 3px;
  background-color: #a3a3a3;
  border-radius: 25px;
  color: white;
  text-align: center;
  padding: 10px;
  padding-top: 5px;
  padding-bottom: 5px;
  flex-shrink: 1;
  font-size: 0.75rem;
  place-self: center;

  display: flex;
  flex-direction: row;
}

.u-task-user-add {
  justify-self: center;
  margin: 0px 5px 0px 5px;
}

.u-task-user-del {
  margin: auto 0px auto 5px;
  padding: 0px 0.15rem 0px 0.15rem;
  background-color: #bbbbbb;
  border-radius: 50%;
  height: 0.85rem;
  display: flex;
  align-items: center;
}

.u-task-user-del:hover {
  cursor: pointer;
  background-color: #cfcfcf;
}

.u-task-user-del-cross {
  font-size: 1rem;
}

.u-task ::-webkit-scrollbar-thumb {
  border-radius: 15px;
}

.u-process-user-sel {
  width: 100%;
  display: grid;
  grid-auto-flow: row;
  border: 1px solid grey;
  padding: 12px;
}

.u-scale-50 .u-bloc .u-content {
  font-size: 0.7rem;
  padding: 5px;
}

.u-scale-25 .u-bloc .u-content {
  font-size: 0.5rem;
  padding: 3px;
}

g.u-hdr foreignObject {
  /* Urooj: 04112023 center pool/lane text */
  text-align: center;
  line-height: 30px;
}

.u-scale-50 .u-flo text,
.u-scale-50 .u-flo .u-flow-content {
  font-size: 0.6rem;
}

.u-scale-25 .u-flo text,
.u-scale-25 .u-flo .u-flow-content {
  font-size: 0.3rem;
}

.u-scale-25 .u-bloc rect,
.u-scale-50 .u-bloc rect {
  stroke: none;
}

.u-process .u-handles rect.u-hbox {
  fill: none;
  /* stroke: #006FFF; */
  stroke: rgb(0 255 172 / 31%);
  stroke-width: 3px;
}

.u-process .u-handles g.u-circle-with-plus{
  cursor: pointer;
}

.u-process .u-handles g.u-circle-with-plus line{
  stroke: rgb(100 100 100);
  stroke-width: 1px;
}

.u-process .u-handles circle:hover{
  fill: rgba(0, 255, 170, 0.745);
}

.u-process .u-handles g.u-circle-with-plus:hover line{
  stroke: rgb(0 0 0);
  stroke-width: 2px;
}

.u-process .u-handles g.u-circle-with-plus circle{
  fill: rgb(0 255 172 / 31%);
}

.u-process .u-handles g.u-circle-with-plus:hover circle{
  fill: rgba(0, 255, 170, 0.745);
}
