.workflow-graph-editor{color:#172033;direction:rtl;background:#f5f8fb;flex-direction:column;flex:1;width:100%;min-width:0;min-height:0;font-family:Vazirmatn,Tahoma,sans-serif;display:flex;position:relative;overflow:hidden;container:workflow-editor/inline-size}.workflow-graph-toolbar{z-index:5;box-sizing:border-box;background:#fff;border-bottom:1px solid #dce4eb;flex:none;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:10px;min-height:64px;padding:7px 12px;display:grid;position:relative}.workflow-graph-toolbar-navigation{flex:none;align-items:center;display:flex}.workflow-graph-mobile-toolbar-summary,.workflow-graph-mobile-canvas-actions{display:none}.workflow-graph-toolbar-title{text-align:right;font-size:17px;font-weight:800}.workflow-graph-toolbar-heading{text-align:right;flex:1;grid-template-columns:minmax(175px,.72fr) minmax(230px,1fr) minmax(210px,.9fr);align-items:center;gap:10px;min-width:0;display:grid}.workflow-graph-toolbar-title-block{flex-direction:column;gap:3px;min-width:0;display:flex}.workflow-graph-toolbar-title-row{align-items:center;gap:7px;display:flex}.workflow-graph-dirty-badge{color:#8a5d00;white-space:nowrap;background:#fff7db;border-radius:999px;padding:3px 7px;font-size:9px;font-weight:900}.workflow-graph-toolbar-versions{color:#64748b;text-align:right;flex-wrap:wrap;gap:1px 9px;font-size:10px;display:flex}.workflow-graph-draft-picker,.workflow-graph-trigger-picker{text-align:right;direction:rtl;grid-template-columns:auto minmax(0,1fr);align-items:center;gap:7px;min-width:0;font-size:11px;font-weight:800;display:grid}.workflow-graph-draft-picker select,.workflow-graph-trigger-picker select{box-sizing:border-box;color:#172033;width:100%;min-width:0;min-height:40px;font:inherit;text-align:right;direction:rtl;background:#fff;border:1px solid #cbd5e1;border-radius:10px;padding:6px 9px}.workflow-designer-error-toast{z-index:20;box-sizing:border-box;color:#7c2d12;text-align:right;background:#fff7db;border:1px solid #f3d67b;border-radius:12px;width:min(420px,100% - 32px);max-height:min(40vh,360px);padding:12px 16px;font:13px/1.6 Vazirmatn,Tahoma,sans-serif;position:absolute;top:12px;right:16px;overflow:auto;box-shadow:0 8px 28px #163e4a18}.workflow-designer-error-toast-header{justify-content:space-between;align-items:center;gap:12px;display:flex}.workflow-designer-error-toast-header button{width:44px;height:44px;color:inherit;font:inherit;cursor:pointer;background:0 0;border:0;flex:none;font-size:24px;line-height:1}.workflow-designer-error-toast-messages{gap:4px;display:grid}.workflow-designer-error-toast-hint{margin-top:4px;font-weight:700}.workflow-graph-toolbar-actions{flex-wrap:wrap;gap:6px;min-width:0;display:flex}.workflow-graph-toolbar button,.workflow-graph-properties button,.workflow-palette-connect{color:#124e4a;min-height:44px;font:inherit;cursor:pointer;background:#fff;border:1px solid #cbd5e1;border-radius:12px;padding:8px 14px}.workflow-graph-toolbar button{white-space:nowrap;border-radius:10px;flex-shrink:0;min-height:40px;padding:6px 10px;font-size:11px}.workflow-graph-toolbar .workflow-graph-save{color:#fff;background:#0f766e;border-color:#0f766e}.workflow-graph-toolbar button:disabled{opacity:.5;cursor:wait}.workflow-graph-file-input{display:none}.workflow-graph-palette{top:calc(var(--workflow-toolbar-height,64px) + 12px);z-index:4;width:205px;max-height:calc(100% - var(--workflow-toolbar-height,64px) - 24px);text-align:right;background:#fffe;border:1px solid #dce4eb;border-radius:18px;flex-direction:column;gap:7px;padding:12px;display:flex;position:absolute;right:12px;overflow:auto;box-shadow:0 8px 28px #163e4a18}.workflow-graph-palette-toggle{color:inherit;font:inherit;text-align:right;cursor:pointer;background:0 0;border:0;padding:4px 3px 8px;font-size:14px;font-weight:800}.workflow-graph-palette-content{flex-direction:column;gap:7px;display:flex}.workflow-graph-palette-hint{color:#64748b;font-size:11px;line-height:1.6}.workflow-card--start,.workflow-palette-button--start{--node-accent:#15803d;--node-tint:#dcfce7}.workflow-card--assign-task,.workflow-palette-button--assign-task{--node-accent:#dc2626;--node-tint:#fee2e2}.workflow-card--fill-form,.workflow-palette-button--fill-form{--node-accent:#0891b2;--node-tint:#cffafe}.workflow-card--condition,.workflow-palette-button--condition{--node-accent:#d97706;--node-tint:#fef3c7}.workflow-card--change-status,.workflow-palette-button--change-status{--node-accent:#7c3aed;--node-tint:#ede9fe}.workflow-card--create-new-task,.workflow-palette-button--create-new-task{--node-accent:#2563eb;--node-tint:#dbeafe}.workflow-card--end,.workflow-palette-button--end{--node-accent:#475569;--node-tint:#e2e8f0}.workflow-palette-button{background:var(--node-accent);color:#fff;text-align:right;min-height:48px;font:inherit;cursor:pointer;border:0;border-radius:12px;justify-content:space-between;align-items:center;gap:8px;padding:8px 12px;font-weight:800;display:flex}.workflow-palette-button .workflow-node-icon{width:30px;height:30px;color:inherit;background:#ffffff36;border-radius:10px}.workflow-palette-connect[aria-pressed=true]{background:#e6f5f3;border-color:#0f766e}.workflow-graph-canvas{direction:ltr;flex:1;min-height:0;margin-right:230px}.workflow-graph-canvas .react-flow__renderer{direction:ltr}.workflow-card{border:2px solid var(--node-accent);text-align:right;direction:rtl;background:#fff;border-radius:16px;flex-direction:column;gap:5px;min-width:180px;max-width:265px;padding:13px;display:flex;position:relative;box-shadow:0 5px 14px #22334420}.workflow-card-heading{align-items:center;gap:9px;min-width:0;display:flex}.workflow-card-heading-text{text-align:right;flex-direction:column;flex:1;gap:2px;min-width:0;display:flex}.workflow-card-heading strong{font-size:13px;line-height:1.4}.workflow-card-kind{color:var(--node-accent);font-size:10px;font-weight:800}.workflow-node-icon{background:var(--node-tint);width:30px;height:30px;color:var(--node-accent);border-radius:10px;flex:none;place-items:center;display:grid}.workflow-node-icon svg{width:20px;height:20px;display:block}.workflow-card small{color:#64748b;font-size:11px}.workflow-card-condition-row{position:relative}.workflow-card-condition-row>.react-flow__handle-left{top:50%;left:-19px}.workflow-card-rule{text-overflow:ellipsis;white-space:nowrap;background:#fff4dd;border-radius:6px;max-width:245px;padding:4px 6px;font-size:10px;overflow:hidden}.workflow-card--selected{box-shadow:0 0 0 4px #0f766e33,0 8px 25px #22334424}.workflow-node-error .workflow-card{outline-offset:3px;background:#fff7f7;outline:3px solid #b91c1c;box-shadow:0 0 0 6px #b91c1c24,0 8px 25px #7f1d1d30}.workflow-node-error .workflow-card-heading strong,.workflow-node-error .workflow-card small,.workflow-node-error .workflow-card-rule{font-weight:900}.workflow-path-endpoint .workflow-card{outline-offset:2px;background:#f0fdfa;outline:3px solid #0f766e;box-shadow:0 0 0 6px #0f766e24,0 8px 25px #22334424}.workflow-path-endpoint .workflow-card strong{font-weight:900}.workflow-path-return-start .workflow-card,.workflow-path-return-target .workflow-card{outline-offset:2px;background:#fff6f8;outline:3px solid #be3456;box-shadow:0 0 0 6px #f0527424,0 8px 25px #22334424}.workflow-path-return-start .workflow-card strong,.workflow-path-return-target .workflow-card strong{font-weight:900}.workflow-path-return-start .workflow-card:before,.workflow-path-return-target .workflow-card:before{color:#fff;white-space:nowrap;background:#be3456;border-radius:8px;padding:3px 8px;font-size:11px;font-weight:800;position:absolute;top:-28px;right:0}.workflow-path-return-start .workflow-card:before{content:"شروع برگشت"}.workflow-path-return-target .workflow-card:before{content:"برگشت به این گره"}.react-flow__edge.workflow-path-selected .react-flow__edge-path{filter:drop-shadow(0 0 3px #17203380)}.workflow-card .react-flow__handle{background:#6377dc;border:2px solid #fff;width:11px;height:11px}.workflow-card .react-flow__handle.workflow-return-handle{background:#f05274;width:14px;height:14px;top:-8px}.workflow-graph-properties{z-index:6;top:calc(var(--workflow-toolbar-height,64px) + 12px);width:325px;max-width:calc(100% - 250px);max-height:calc(100% - var(--workflow-toolbar-height,64px) - 24px);text-align:right;background:#fff;border:1px solid #dce4eb;border-radius:18px;flex-direction:column;gap:11px;padding:16px;display:flex;position:absolute;left:12px;overflow:auto;box-shadow:0 8px 28px #163e4a22}.workflow-graph-properties-heading{justify-content:space-between;align-items:center;display:flex}.workflow-graph-properties-heading strong{font-size:16px}.workflow-graph-properties-heading button{min-width:44px;padding:0}.workflow-route-endpoints{direction:rtl;flex-direction:column;gap:8px;margin:0;display:flex}.workflow-route-endpoint{background:#f5f8fb;border:1px solid #dce4eb;border-radius:12px;grid-template-columns:86px minmax(0,1fr) 54px;align-items:center;gap:8px;min-height:48px;padding:7px 9px;display:grid}.workflow-route-endpoint dt{font-size:12px;font-weight:700}.workflow-route-endpoint dd{overflow-wrap:anywhere;text-align:right;min-width:0;margin:0;font-size:12px;font-weight:800}.workflow-graph-properties .workflow-route-endpoint button{min-height:44px;padding:5px;font-size:11px}.workflow-graph-properties .workflow-route-endpoint button:disabled{opacity:.5;cursor:not-allowed}.workflow-route-hint{color:#475569;text-align:right;margin:0;font-size:12px;line-height:1.7}.workflow-graph-properties label{text-align:right;direction:rtl;grid-template-columns:minmax(78px,36%) minmax(0,1fr);align-items:center;gap:8px;font-size:12px;font-weight:700;display:grid}.workflow-graph-properties input,.workflow-graph-properties textarea,.workflow-graph-properties select{color:#172033;width:100%;min-width:0;min-height:42px;font:inherit;text-align:right;direction:rtl;background:#fff;border:1px solid #cbd5e1;border-radius:10px;padding:8px 10px;font-weight:400}.workflow-graph-properties textarea{resize:vertical;min-height:80px}.workflow-graph-properties fieldset{border:1px solid #e2e8f0;border-radius:12px;flex-direction:column;gap:8px;display:flex}.workflow-graph-properties legend{padding:0 6px;font-size:12px}.workflow-graph-properties .workflow-graph-delete{color:#b91c1c;border-color:#fecaca}.workflow-graph-properties input[type=checkbox]{accent-color:#0f766e;justify-self:start;width:22px;min-height:22px}.workflow-graph-properties input,.workflow-graph-properties textarea,.workflow-graph-properties select{box-sizing:border-box}.workflow-graph-properties .workflow-graph-add-condition{z-index:1;background:#fff;flex-shrink:0;width:100%;position:sticky;bottom:0;box-shadow:0 -8px 12px #ffffffeb}.workflow-designer-notice{box-sizing:border-box;color:#714c00;text-align:right;background:#fff7db;min-height:44px;padding:10px 16px;font:13px/1.7 Vazirmatn,Tahoma,sans-serif}.workflow-designer-setup-toggle{display:none}.workflow-designer-setup{color:#172033;background:#fff;justify-content:flex-start;align-items:center;gap:10px;padding:10px 16px;font:13px Vazirmatn,Tahoma,sans-serif;display:none}.workflow-designer-setup label{font-weight:800}.workflow-designer-setup select{color:#172033;min-width:180px;max-width:330px;min-height:42px;font:inherit;text-align:right;direction:rtl;background:#fff;border:1px solid #cbd5e1;border-radius:10px;padding:6px 10px}.workflow-designer-dirty{color:#8a5d00;margin-left:auto;font-weight:700}@media (width<=800px){.workflow-designer-notice{min-height:0;padding:8px 12px;font-size:11px}.workflow-designer-setup-toggle{box-sizing:border-box;color:#124e4a;direction:rtl;background:#fff;border:1px solid #cbd5e1;border-radius:12px;justify-content:space-between;align-items:center;width:calc(100% - 16px);min-height:48px;margin:8px;padding:8px 12px;font:800 12px Vazirmatn,Tahoma,sans-serif;display:flex}.workflow-designer-setup{border:1px solid #dce4eb;border-radius:12px;flex-direction:column;align-items:stretch;gap:7px;margin:0 8px 8px;padding:10px;display:none;box-shadow:0 6px 18px #163e4a12}.workflow-designer-setup--open{display:flex}.workflow-designer-setup select{box-sizing:border-box;width:100%;min-width:0;max-width:none}.workflow-designer-dirty{text-align:right;border-bottom:1px solid #e5ecec;margin:0;padding-bottom:7px}.workflow-graph-editor{isolation:isolate;min-height:0}.workflow-graph-toolbar{flex-direction:column;align-items:stretch;gap:8px;min-height:58px;padding:7px 8px;display:flex}.workflow-graph-toolbar-navigation{z-index:1;position:absolute;top:7px;right:8px}.workflow-graph-mobile-toolbar-summary{direction:rtl;justify-content:space-between;align-items:center;gap:8px;display:flex}.workflow-graph-mobile-toolbar-summary>div{text-align:right;flex-direction:column;gap:2px;min-width:0;padding-right:54px;display:flex}.workflow-graph-mobile-toolbar-summary strong{font-size:14px}.workflow-graph-mobile-toolbar-summary span{color:#64748b;font-size:10px}.workflow-graph-mobile-toolbar-summary button{background:#ecfdf5;border-color:#9fd4c8;min-height:42px;padding:6px 11px;font-size:11px;font-weight:800}.workflow-graph-toolbar-heading,.workflow-graph-toolbar-actions{display:none}.workflow-graph-editor--toolbar-open .workflow-graph-toolbar-heading{flex-direction:column;align-items:stretch;width:100%;display:flex}.workflow-graph-editor--toolbar-open .workflow-graph-toolbar-actions{grid-template-columns:repeat(3,minmax(0,1fr));width:100%;display:grid}.workflow-graph-toolbar-title,.workflow-graph-toolbar-title-row,.workflow-graph-trigger-picker{display:none}.workflow-graph-toolbar-versions{column-gap:8px;font-size:10px}.workflow-graph-draft-picker{grid-template-columns:70px minmax(0,1fr);max-width:none}.workflow-graph-toolbar-actions button{min-width:0;padding:7px 5px;font-size:11px}.workflow-graph-palette{width:auto;max-width:calc(100% - 20px);max-height:calc(100% - var(--workflow-toolbar-height,58px) - 24px);background:#fff;border-radius:13px;padding:0;top:auto;bottom:12px;right:10px;box-shadow:0 8px 24px #163e4a2b}.workflow-graph-palette-toggle{text-align:center;min-height:44px;padding:8px 13px}.workflow-graph-palette-content{display:none}.workflow-graph-editor--palette-open .workflow-graph-palette{box-sizing:border-box;width:min(320px,100% - 20px);padding:9px}.workflow-graph-editor--palette-open .workflow-graph-palette-content{grid-template-columns:repeat(2,minmax(0,1fr));display:grid}.workflow-graph-editor--palette-open .workflow-graph-palette-hint{grid-column:1/-1}.workflow-palette-button{min-width:0;min-height:46px;padding:7px 9px;font-size:11px}.workflow-graph-properties{box-sizing:border-box;border-radius:18px;width:auto;max-width:none;max-height:min(62%,520px);padding:13px;inset:auto 8px 8px}.workflow-graph-properties label{grid-template-columns:1fr;gap:5px}.workflow-route-endpoint{grid-template-columns:76px minmax(0,1fr) 50px}.workflow-graph-canvas{min-height:0;margin-right:0;position:relative}.workflow-graph-editor--palette-open .workflow-graph-canvas{margin-right:0}.workflow-graph-mobile-canvas-actions{z-index:4;direction:rtl;gap:5px;display:flex;position:absolute;top:9px;left:9px}.workflow-graph-mobile-canvas-actions button{color:#124e4a;background:#ffffffed;border:1px solid #cbd5e1;border-radius:10px;min-height:40px;padding:6px 9px;font:800 10px Vazirmatn,Tahoma,sans-serif;box-shadow:0 4px 14px #163e4a18}.workflow-graph-canvas .react-flow__minimap{display:none}.workflow-graph-canvas .react-flow__controls{bottom:10px;left:8px;box-shadow:0 5px 16px #163e4a20}}@media (width>=801px){@container workflow-editor (width<1250px){.workflow-graph-toolbar{grid-template-columns:auto minmax(0,1fr)}.workflow-graph-toolbar-actions{border-top:1px solid #edf2f4;grid-column:1/-1;justify-content:flex-start;padding-top:8px}}@container workflow-editor (width<760px){.workflow-graph-toolbar{align-items:start}.workflow-graph-toolbar-heading{grid-template-columns:repeat(2,minmax(0,1fr));row-gap:12px}.workflow-graph-toolbar-title-block{grid-column:1/-1;justify-content:center;min-height:44px}.workflow-graph-draft-picker,.workflow-graph-trigger-picker{grid-template-columns:minmax(0,1fr);gap:5px}}}@media (width<=450px){.workflow-graph-editor--toolbar-open .workflow-graph-toolbar-actions{grid-template-columns:repeat(2,minmax(0,1fr))}.workflow-graph-editor--palette-open .workflow-graph-palette-content{grid-template-columns:1fr 1fr}}