.zp-dropdown {
    position: relative;
}
.zp-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 1000;
    display: none;
    float: left;
    min-width: 290px;
    padding: 8px;
    margin: 2px 0 0;
    list-style: none;
    font-size: 12.5px;
    font-family: 'Open Sans', sans-serif;
    background-color: #fff;
    border: 1px solid #e2e5ec;
    border-radius: 12px;
    box-shadow: 0 16px 40px rgba(20, 12, 50, .18);
    background-clip: padding-box;
	max-height: 370px;
	overflow-y:auto;
}

.open > .zp-dropdown-menu {
    display: block;
}

.zp-dropdown-menu li
{
	padding: 0;
	border-radius: 9px;
}

.zp-dropdown-menu li a
{
	display: block;
	padding: 9px 10px;
	border-radius: 9px;
	color: #1a1f26;
}

.zp-dropdown-menu li:hover
{
	background-color: #f3f0fb;
}

.zp-dropdown-menu li.active a
{
	background-color: #f1eafd;
	color: #7c3aed;
	font-weight: 700;
}

.zp-flow-graph {
	height: 100%;
	overflow: auto;
}

.zp-flow-kicker {
	font-family: -apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,'Helvetica Neue',Arial,sans-serif;
	font-size: 10px;
	font-weight: 700;
	letter-spacing: .04em;
	text-transform: uppercase;
	color: #a184e4;
	margin-bottom: 2px;
	white-space: nowrap;
}

.zp-flow-title {
	font-family: 'Schibsted Grotesk', sans-serif;
	font-size: 13.5px;
	font-weight: 800;
	color: #1a1f26;
	/* Box height is sized in JS from an estimated line count (see loadNodeInformation
	   in designerFlow.js) - break long unbroken words instead of letting them overflow
	   the box width when that estimate runs a little tight. */
	overflow-wrap: anywhere;
}

/* Form chip(s) a human-task card shows under its title - click opens the form. The name wraps
   (anywhere, so one long unbroken word can't overflow); the card height is measured in JS with the
   same markup (measureFlowChipsHeight), so keep these metrics in step with it. */
.zp-flow-forms {
	display: flex;
	flex-wrap: wrap;
	gap: 4px;
	margin-top: 6px;
}

.zp-flow-forms-label {
	align-self: center;
	color: #8b93a1;
	font-family: -apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,'Helvetica Neue',Arial,sans-serif;
	font-size: 11.5px;
	font-weight: 600;
	line-height: 1.3;
}

.zp-flow-form-chip {
	display: inline-flex;
	align-items: flex-start;
	gap: 5px;
	box-sizing: border-box;
	max-width: 100%;
	min-width: 0;
	padding: 3px 9px;
	border-radius: 10px;
	background: #f1ecfd;
	color: #6d4fc2;
	font-family: -apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,'Helvetica Neue',Arial,sans-serif;
	font-size: 11.5px;
	font-weight: 600;
	line-height: 1.3;
	white-space: normal;
	overflow-wrap: anywhere;
	cursor: pointer;
}

.zp-flow-form-chip svg {
	flex: 0 0 auto;
	margin-top: 2px;
}

.zp-flow-form-chip:hover {
	background: #e4daf9;
	color: #5538a8;
}

/* Decision Matrix cards sit on a tinted purple fill (see 'matrix' style in
   designerFlow.js) - the default light-purple kicker color loses contrast there,
   so darken it just for this card. */
.zp-flow-kicker-matrix {
	color: #7c3aed;
}

/* Kicker word color-codes the step type at a glance - keyed by mxGraph style name
   (see flowKickerLabels/flowGatewayLabels in designerFlow.js). */
.zp-flow-kicker-bottom,
.zp-flow-kicker-default,
.zp-flow-kicker-defualt,
.zp-flow-kicker-start {
	color: #16a34a;
}

.zp-flow-kicker-executeRuleSet,
.zp-flow-kicker-invokeRuleSet,
.zp-flow-kicker-reusableRuleSet {
	color: #d97706;
}

.zp-flow-edge-label {
	display: inline-block;
	padding: 3px 10px;
	border-radius: 999px;
	background-color: #f1eafd;
	border: 1px solid #e4d9fb;
	color: #7c3aed;
	font-family: 'Schibsted Grotesk', sans-serif;
	font-size: 11.5px;
	font-weight: 700;
	white-space: nowrap;
}

.zp-flow-save-bar {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-left: auto;
}

.zp-flow-save-btn {
	height: 34px;
	padding: 0 16px;
	font-size: 12.5px;
}

.zp-flow-save-btn[disabled] {
	opacity: .6;
	cursor: default;
}

.zp-flow-save-error {
	font-size: 12px;
	color: #c1392b;
}
/* Velocity refs inside a step title render as the same chips the email-template preview
   uses (zpRenderVelocityText in designerShared.js), so a task subject reads
   "Fix Bug: [Bug Title]" instead of "Fix Bug: $!Bug_Report.Bug_Title". Three overrides,
   because a 200px card is not an email body:
     - the owner prefix is dropped ("Bug_Report.") - the field name is the informative
       half, and the full raw ref is still on the chip's title tooltip;
     - wrapping is allowed, since a chip that cannot break would overflow the card;
     - scaled down a little to sit inside a 13.5px bold line without pushing it taller. */
.zp-flow-title .zp-velocity-chip {
	font-size: 11.5px;
	font-weight: 700;
	padding: 0 5px;
	margin: 0 1px;
	line-height: 1.35;
	white-space: normal;
	overflow-wrap: anywhere;
}

.zp-flow-title .zp-velocity-chip-owner {
	display: none;
}

/* Hovered step on the flow canvas (designerFlow.js setHover): the card's own SVG shape turns purple
   with a soft glow, so it keeps its rounded corners. CSS stroke beats the shape's stroke attribute. */
.zp-flow-graph g.zp-flow-step-hover > rect,
.zp-flow-graph g.zp-flow-step-hover > path,
.zp-flow-graph g.zp-flow-step-hover > ellipse
{
	stroke: #7c3aed;
	stroke-width: 2px;
}

.zp-flow-graph g.zp-flow-step-hover
{
	filter: drop-shadow(0 4px 10px rgba(124, 58, 237, .22));
}

/* The same chip inside a step's detail popup (stepFormChipHtml): a link there, so no underline, and
   a touch larger to sit in the popup's body text. */
.zp-step-form-chip {
	vertical-align: middle;
	margin: 2px 0;
	font-size: 12.5px;
	text-decoration: none;
}

.zp-step-form-chip:hover {
	text-decoration: none;
}
