/* css patch */
body.controller-autoflows h2.inline-flex {
    padding-right: 0;
}

body.controller-flownodes h2.inline-flex {
    padding-right: 0;
}

div.auto.tabs + span.badge.badge-private.private {
	display: none;
}

.arg-Graph {
    position: relative;
    height: 100vh;
}
.arg-Graph_item {
    cursor: grab;
    direction: ltr;
    color: #333333;
    text-align: center;
    position: absolute;
    min-width: 100px;
    max-width: 180px;
    left: 100px;
    background-color: #fff;
    border-radius: 2px;
    top: 10px;
    -webkit-user-select: none; /* Safari */
    -moz-user-select: none; /* Firefox */
    -ms-user-select: none; /* IE10+/Edge */
    user-select: none; /* Standard */
    border: 3px solid #c5c5c5;
}

.arg-Graph_item i{
    color:black;
    float:right;
    margin-top :10px;
}

.arg-Graph_connector-handler,
.arg-Graph_delete-item {
    display: inline-block;
    overflow: hidden;
    /* width: 15px; */
    /* height: 15px; */
    vertical-align: middle;
    /* border-radius: 3px; */
    position: absolute;
    display: none;    

    /* top: -12px; */
    /* right: -12px; */
    bottom: auto;
    left: auto;
    position: absolute !important;
    cursor: pointer;
    z-index: 999;
    border: none;
    background-color: #d41818;
    padding-top: 5px;
    padding-right: 5px;
    padding-bottom: 5px;
    padding-left: 5px;
    margin-top: 0px;
    margin-right: 0px;
    margin-bottom: 0px;
    margin-left: 0px;
    fill: #fff;
    border-radius: 100%;
    box-shadow: 0px 0px 0px 0px #33333;
}

div.error_node {
    border: 3px solid rgba(176, 2, 2, 0.53);
    background-color: #f3e1de;
}

.current-node {
    /* background-color: #c8f6bf !important; */
    background-color: #c61a1a !important;
    color: #fff;
    font-weight: bold;
}

.current-node * {color: #fff !important;}

.start-node {
    /* background-color: #f9d0d0 !important; */
}

.arrow-right {
    width: 0;
    height: 0;
    border-top: 4px solid transparent;
    border-left: 9px solid black;
    border-bottom: 5px solid transparent;
    position: absolute;
    left: 43px;
    top: 0px;
    /* display: none; */
}

.straight-line {
    width: 25px;
    position: absolute;
    border-top-style: solid;
    border-width: 2px;
    border-top-color: rgb(121, 134, 132);
    left: 18px;
    top: 4px;
}

.event-node {
    top: 50%;
    transform: translateY(-50%);
    position: absolute;
    width: 50px;
    height: 20px;
    /* left: -35px; */
}

.event-node.start {
    left: -35px;
}

.event-node.end {
    right: -50px;
}

.event-shape.end-event {
  right: 15px;
}

.event-shape.end-event .terminate {
	position: absolute;
	background: #000;
	width: 10px;
	height: 10px;
	border-radius: 10px;
	top: 50%;
	left: 50%;
	transform: translateY(-50%) translateX(-50%);
}

.event-shape {
    height: 15px;
    width: 15px;
    position: absolute;
    border: 2px solid;
    border-radius: 100%;
}

span.event-name {
	display: block;
	width: 100%;
	top: 50%;
	transform: translateY(-50%);
	position: absolute;
	font-size: 12px;
}

span.event-name.start {
	left: -25px;
}

span.event-name.end {
	right: -25px;
}

.event-node .event-shape.start-event .line {
    width: 15px;
    height: 1px;
    background-color: black;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    left: 15px;
}

.event-node .event-shape.end-event .line {
    width: 15px;
    height: 1px;
    background-color: black;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    left: -15px;
}

.arg-Graph_connector-handler {
    cursor: pointer;
    /* background: whitesmoke; */
    background: green;
    color: black;
    right: -10px;
    bottom: -10px;
}
.arg-Graph_delete-item {
    cursor: pointer;
    /* background: red; */
    right: -10px;
    top: -10px;
}
.arg-Graph_connector-handler:after {
    /* content: "ꜜ"; */
    /* font-family: sans-serif; */
    /* font-weight: 900; */
}
.arg-Graph_delete-item:after {
    /* /* content: "X"; */ */
    /* font-family: sans-serif; */
    /* font-size: 12px; */
    /* font-weight: bold; */
    color: white;
}

div#nodes-container path:hover { stroke: red; 
	stroke-width: 2.5;
	/* pointer-events: none; */
	/* cursor: pointer; */
	cursor: url(./images/cut_red.png), auto;
}

div.arg-Graph_item button {
    top: -12px;
    right: -12px;
    bottom: auto;
    left: auto;
    position: absolute !important;
    cursor: pointer;
    z-index: 999;
    border: none;
    background-color: #d41818;
    padding-top: 5px;
    padding-right: 5px;
    padding-bottom: 5px;
    padding-left: 5px;
    margin-top: 0px;
    margin-right: 0px;
    margin-bottom: 0px;
    margin-left: 0px;
    fill: #fff;
    border-radius: 100%;
    box-shadow: 0px 0px 0px 0px #33333;
}

svg.bubble {
    display: block;
    height: 6px;
    width: 6px;
}

img.flownode_avatar {vertical-align: middle;}
span.flownode_info {
    padding: 5px; 
    display: block;
    word-wrap: break-word;
    border-bottom: 1px rgb(213, 213, 213) solid;
    background-color: rgb(240, 238, 238);
    font-weight: bolder;
    font-size: 12px;
}

svg.bubble-handler {font-size: 10px;}
svg.bubble-delete {font-size: 10px;}

/* <button><svg class="bubble" viewBox="0 0 384 512" style="display:block;height: 6px;width: 6px;"><path d="M231.6 256l130.1-130.1c4.7-4.7 4.7-12.3 0-17l-22.6-22.6c-4.7-4.7-12.3-4.7-17 0L192 216.4 61.9 86.3c-4.7-4.7-12.3-4.7-17 0l-22.6 22.6c-4.7 4.7-4.7 12.3 0 17L152.4 256 22.3 386.1c-4.7 4.7-4.7 12.3 0 17l22.6 22.6c4.7 4.7 12.3 4.7 17 0L192 295.6l130.1 130.1c4.7 4.7 12.3 4.7 17 0l22.6-22.6c4.7-4.7 4.7-12.3 0-17L231.6 256z"></path></svg></button> */

button#full_screen:hover {background-color: blue; color: white;}
button#exit_screen:hover {background-color: blue; color: white;}
button#refresh_data:hover {background-color: red; color: white;}
button#submit_data:hover {background-color: green; color: white;}

div.arg-Graph.panel.grids {
}

div.grids {
    background-size: 20px 20px;
    background-image: linear-gradient(to right, #e0e2e3 1px, transparent 1px), linear-gradient(to bottom, #e0e2e3 1px, transparent 1px);
}

div.dot_grids {
    /* background-size: 40px 40px; */
    /* background-image: radial-gradient(circle, #000000 1px, rgba(0, 0, 0, 0) 1px); */
    background-color: #9e9e9e;
    background-image: linear-gradient(0deg, transparent 1px, #fff 1px), linear-gradient(-90deg, #6c6 1px, #fff 1px);
    background-image: -moz-linear-gradient(0deg, transparent 1px, #fff 1px), -moz-linear-gradient(-90deg, #6c6 1px, #fff 1px); 
    background-image: -webkit-linear-gradient(0deg, transparent 1px, #fff 1px), -webkit-linear-gradient(-90deg, #6c6 1px, #fff 1px);
    background-image: -o-linear-gradient(0deg, transparent 1px, #fff 1px), -o-linear-gradient(-90deg, #6c6 1px, #fff 1px);
;
    background-size: 10px 10px;
    background-position: 5px 5px;
    font: 10px sans-serif;
}

span.issue_assignee {
    display: block; 
    padding: 10px;
    font-size: 12px;
}
span.issue_assignee img {float: left; margin: 1px; }
span.node-assignee {line-height: 20px; margin: 2px; display: inline-block; float: left;}

sup.group_mode {color: red;}

/* for gateway nodes */
.DiamondContainer{
  /* width:23px; */
  /* margin:20px; */
  transform:rotateZ(45deg);
  background-color:#fff;
  position: absolute;
  top: 2px;
  left: 2px;
}
.diamond{
  width:10px;
  height:10px;
  float:left;
  border:1px solid rgb(174, 174, 174);
  margin:1px;
  /* background-color:#fff; */
}
.diamond a{
  display:block;
  transform:rotateZ(-45deg);
  line-height:10px;
  text-align:center;
  color:#000;
  text-decoration:none;
}

p.approvement-options label {
    margin-right: 10px;
}

p.approvement-options {
    text-align: center;
}


span#auto_assigned_to.icon.icon-lock {margin-left: 4px;}
/* 定义鼠标悬停到Yes/No决策标识上后指针的样式 */
text:hover {
    cursor:pointer;
}

span#loading_template img {
    vertical-align: middle;
}

/* https://codepen.io/Vinzcelavi/pen/oPVoRW */

.notch {
	 position: absolute;
	 top: 0;
	 left: 50%;
	 min-width: 250px;
	 line-height: 25px;
     display: inline-block;
     vertical-align: middle;
	 background-color: #e8e8e8;
	 border-radius: 0 0 28px 28px;
	 transform: translateX(-50%);
     text-align: center;
     font-weight: bold;
     padding-left: 12px;
     padding-right: 12px;
     z-index: 999;
     border-bottom: 1px solid;
}

.notch::before, .notch::after {
	 content: '';
	 position: absolute;
	 top: 0;
	 left: -7px;
	 width: 14px;
	 height: 7px;
	 background-size: 50% 100%;
	 background-repeat: no-repeat;
	 background-image: radial-gradient(circle at 0 100%, transparent 6px, #e8e8e8 7px);
}
 .notch::after {
	 left: 100%;
	 margin-right: corner-sizepx;
	 background-image: radial-gradient(circle at 100% 100%, transparent 6px, #e8e8e8 7px);
}

table.list span.pending {
    background-color: rgb(250, 235, 5);
    border: 1px solid rgb(238, 211, 7);
    color: rgb(168, 144, 8);
    border-radius: 10px;
    padding: 0 5px;
}
table.list span.approved{
    background-color: #cfdce9;
    border: 1px solid; 
    border-color: #a1bfdc;
    padding: 0 3px;
    border-radius: 2px;
    color: #4d7aa6;
  /* background-color: blue; */
}

label.previous-node-style { 
text-decoration: underline dotted;
text-decoration-color: #eb0f3a;
-webkit-text-decoration: underline dotted;
-webkit-text-decoration-color: #eb0f3a;
}

div#nodes-container {
	position: relative;
	border: 5px solid #e8e8e8;
	background-color: azure;
	overflow: hidden;
    font-family: inherit;
}

div.panel div.notch {
    width: auto;
    height: auto;
}

div.notch div#flowtitle {
    /* padding-bottom: 3px; */
    font-size: 13px;
}

div#graph_tools_bar button {
    font-size: 12px;
}

a#autoflow-edit {margin-left: 1em;}

#ajax-modal .tabs {height: 2.6em; margin-bottom:1.2em; position:relative; overflow:hidden;}
#ajax-modal .tabs ul {margin:0; position:absolute; bottom:0; padding-left:0.5em; min-width: 2000px; width: 100%;  border-bottom: 1px solid #bbbbbb;}
#ajax-modal .tabs ul li {
  float:left;
  list-style-type:none;
  white-space:nowrap;
  margin-right:4px;
  position:relative;
  margin-bottom:-1px;
}
#ajax-modal .tabs ul li a{
  display:block;
  font-size: 0.9em;
  text-decoration:none;
  line-height:1.3em;
  padding:4px 6px 4px 6px;
  border: 1px solid #ccc;
  border-bottom: 1px solid #bbbbbb;
  color:#999;
  font-weight:bold;
  border-top-left-radius:3px;
  border-top-right-radius:3px;
}

#ajax-modal .tabs ul li a:hover {
  color:#777;
  text-decoration:none;
}

#ajax-modal .tabs ul li a.selected {
  background-color: #fff;
  border: 1px solid #bbbbbb;
  border-bottom: 1px solid #fff;
  color:#444;
}

#ajax-modal .tabs ul li a.selected:hover {background-color: #fff;}
#ajax-modal .tabs ul li a{ background-color: #ececec; }
#content .tabs ul li a{ background-color: #ececec; }

/* icons */

.icon-multi-export { background-image: url(../images/multi-export.png); }

span.hand-point-right.ico {
    background-image: url(../images/hand-point-right.png);
    background-position: 0% 50%;
    background-repeat: no-repeat;
    padding-left: 20px;
}

span.hand-point-up.ico {
    background-image: url(../images/hand-point-up.png);
    background-position: 0% 50%;
    background-repeat: no-repeat;
    padding-left: 20px;
}

span.hourglass.ico {
    background-image: url(../images/hourglass.png);
    background-position: 0% 50%;
    background-repeat: no-repeat;
    padding-left: 20px;
}

span.flag.ico {
    background-image: url(../images/flag.png);
    background-position: 0% 50%;
    background-repeat: no-repeat;
    padding-left: 20px;
}

span.target.ico {
    background-image: url(../images/target.png);
    background-position: 0% 50%;
    background-repeat: no-repeat;
    padding-left: 20px;
}

.hideit {
	display: none!important;
}

div.approving-tracker .approving-timestamp {
	display: inline-block;
	line-height: 100%;
	position: absolute;
	top: -13px;
	z-index: 1000;
	text-align: center;
	width: 100%;
	margin: 0;
	padding: 0;
	/* background-color: #ea8d9e; */
	left: 0;
}

div.flownodes.box fieldset {
	margin-bottom: 20px;
}

span.decision.default {
	text-decoration: underline;
	text-decoration-style: double;
	text-decoration-color: blue;
	text-underline-offset: 0.3em
}

/* redmine 4.2.0 之前版本样式补丁 */
h2.inline-flex {
	display: inline-flex;
}

/* tab style */
div.tabs ul.auto li a {
	background-size: 13px 13px;
	background-position-x: 5px;
        padding: 4px 6px 4px 20px!important;
}
