.workflow-controls{display:inline-flex;align-items:center;gap:5px;flex-wrap:wrap}.workflow-controls small{font-size:10px;color:#687e95;white-space:nowrap}.workflow-action{border:1px solid #8fb8db;border-radius:6px;background:linear-gradient(#f6fbff,#dfedfa);color:#245884;padding:3px 8px;font:inherit;font-size:12px;line-height:18px;cursor:pointer;white-space:nowrap}.workflow-action:hover{background:#cce4f8}.workflow-action:disabled{opacity:.5;cursor:wait}#item-card-workflow-actions .workflow-controls{padding:6px 0}

/* Keep workflow actions on the same compact line. */
.workflow-controls{flex-wrap:nowrap;white-space:nowrap;gap:5px;max-width:100%;vertical-align:middle}.workflow-controls>.production-stage-select{width:auto;flex:1 1 auto;min-width:76px;max-width:125px}.workflow-controls>.workflow-action{flex:0 0 auto;min-height:24px!important;height:26px!important;padding:2px 7px!important;line-height:20px}.workflow-controls>small{display:none}

.production-flat-table .workflow-controls{display:inline-flex;width:max-content;max-width:none;box-sizing:border-box;align-items:center;gap:5px}
.production-flat-table .workflow-controls>.production-stage-select{box-sizing:border-box;width:125px!important;min-width:125px!important;max-width:125px!important;flex:0 0 125px}

.workflow-status-trigger{display:inline-flex!important;align-items:center;justify-content:space-between;gap:8px;width:100%;max-width:155px;min-height:24px!important;height:26px;padding:2px 8px!important;box-sizing:border-box;border:1px solid #bed2e7;border-radius:7px;background:linear-gradient(#fff,#eff6fd);color:#265580;font:inherit;white-space:nowrap;cursor:pointer}
.workflow-status-trigger:hover,.workflow-status-trigger[aria-expanded=true]{background:#dfedfa;border-color:#82add2}
.workflow-menu-panel{position:fixed;z-index:10050;display:flex;flex-direction:column;gap:10px;width:215px;padding:12px;box-sizing:border-box;border:1px solid #c7d9ea;border-radius:10px;background:white;box-shadow:0 8px 28px #173b602b;color:#265580;font:14px system-ui}
.workflow-menu-panel label{display:flex;flex-direction:column;gap:5px;font-size:12px;color:#687e95}
.workflow-menu-panel select{width:100%!important;max-width:none!important;box-sizing:border-box}
.workflow-menu-panel small{font-size:11px;color:#687e95}
.workflow-menu-panel .workflow-action{width:100%}

.workflow-kr-pending {
    --kr-bg: #fff3d6;
    --kr-active: #ffe8b0;
    --kr-border: #d7a34b;
    --kr-text: #714405;
}
.workflow-kr-accepted {
    --kr-bg: #e2f5e8;
    --kr-active: #cef0d9;
    --kr-border: #83bf96;
    --kr-text: #205b36;
}
:is(.workflow-status-trigger, .production-stage-select, .production-status, .workflow-state):is(.workflow-kr-pending, .workflow-kr-accepted) {
    background: var(--kr-bg);
    border-color: var(--kr-border);
    color: var(--kr-text);
}
.workflow-status-trigger:is(.workflow-kr-pending, .workflow-kr-accepted):is(:hover, [aria-expanded="true"]) {
    background: var(--kr-active);
    border-color: var(--kr-border);
}
.workflow-menu-panel .workflow-state:is(.workflow-kr-pending, .workflow-kr-accepted) {
    align-self: flex-start;
    border-radius: 6px;
    padding: 3px 6px;
}
