/* SME workflow category boxes: Creator, admins, Service Manager, Writer and Work List. */
.service-status-departments{margin:14px 0;min-width:0;padding:14px;border-radius:14px;border:1px solid #364c5a;background:linear-gradient(110deg,#1b2e3a,#121f29 52%,#14232e);color:#eef5fa;box-shadow:0 7px 22px rgba(0,0,0,.14)}
.service-status-departments-head{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:8px;margin-bottom:12px}
.service-status-departments-head h2{font-weight:850;letter-spacing:.012em;font-size:15px;margin:0;color:#f1f7fc}
.service-status-departments-head>span{color:#b9cbd7;font-size:10px}
.service-status-departments-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.service-status-category{--status-accent:#77a9d1;--status-rgb:119,169,209;min-width:0;border:1px solid rgba(var(--status-rgb),.3);border-left:3px solid var(--status-accent);border-radius:11px;overflow:hidden;background:#162530}
.service-status-category[data-tone="blue"]{--status-accent:#77a9d1;--status-rgb:119,169,209}
.service-status-category[data-tone="gold"]{--status-accent:#dcb475;--status-rgb:220,180,117}
.service-status-category[data-tone="purple"]{--status-accent:#c0a0dc;--status-rgb:192,160,220}
.service-status-category[data-tone="orange"]{--status-accent:#e49b70;--status-rgb:228,155,112}
.service-status-category[data-tone="teal"]{--status-accent:#83c4b0;--status-rgb:131,196,176}
.service-status-category[data-tone="cyan"]{--status-accent:#78c2d6;--status-rgb:120,194,214}
.service-status-category[data-tone="green"]{--status-accent:#96c88e;--status-rgb:150,200,142}
.service-status-category[data-tone="slate"]{--status-accent:#a2b3c1;--status-rgb:162,179,193}
.service-status-category-head{min-height:40px;display:flex;align-items:center;justify-content:space-between;gap:8px;padding:9px 11px;background:linear-gradient(90deg,rgba(var(--status-rgb),.16),rgba(19,32,42,.55));border-bottom:1px solid rgba(var(--status-rgb),.24)}
.service-status-category-head h3{font-size:12px;color:#f1f7fb;line-height:1.35;letter-spacing:.01em;font-weight:800;margin:0}
.service-status-category-count{border:1px solid rgba(var(--status-rgb),.35);color:#f5fafc;background:#29404f;border-radius:7px;font-size:11px;min-width:26px;text-align:center;padding:2px 5px;font-weight:800;font-variant-numeric:tabular-nums}
.service-status-category-stages{display:grid;gap:4px;padding:7px}
.service-status-stage{width:100%;min-width:0;display:flex;align-items:center;justify-content:space-between;text-align:left;gap:7px;padding:6px 8px;background:#1b2c37;border:1px solid #344754;border-radius:7px;color:#dce9f2;font-size:11px;line-height:1.35}
button.service-status-stage{cursor:pointer;transition:background .12s,border-color .12s}
button.service-status-stage:hover,button.service-status-stage:focus-visible{background:#2b4352;border-color:var(--status-accent);outline-offset:2px}
.service-status-stage-name{min-width:0;overflow-wrap:anywhere}
.service-status-stage-count{flex:none;min-width:22px;text-align:center;color:#e9f3f9;font-weight:850;font-size:11px;font-variant-numeric:tabular-nums}
.service-status-departments-note{color:#bbcad5;font-size:10px;margin:10px 2px 1px}
table.service-status-grouped-table .service-status-category-row{--section-border:#77a9d1}
table.service-status-grouped-table .service-status-category-row[data-tone="gold"]{--section-border:#dcb475}
table.service-status-grouped-table .service-status-category-row[data-tone="purple"]{--section-border:#c0a0dc}
table.service-status-grouped-table .service-status-category-row[data-tone="orange"]{--section-border:#e49b70}
table.service-status-grouped-table .service-status-category-row[data-tone="teal"]{--section-border:#83c4b0}
table.service-status-grouped-table .service-status-category-row[data-tone="cyan"]{--section-border:#78c2d6}
table.service-status-grouped-table .service-status-category-row[data-tone="green"]{--section-border:#96c88e}
table.service-status-grouped-table .service-status-category-row[data-tone="slate"]{--section-border:#a2b3c1}
table.service-status-grouped-table .service-status-category-row>th{padding:11px 12px!important;background:linear-gradient(90deg,#263d4b,#1a2a35)!important;color:#f3f8fb!important;border-top:2px solid var(--section-border)!important;border-bottom:1px solid #466071!important;font-size:12px!important;font-weight:850!important;text-align:left!important;white-space:normal!important}
table.service-status-grouped-table .service-status-sub-row>th{padding:8px 12px!important;background:#1e303c!important;color:#dbeaf3!important;border-bottom:1px solid #3b5463!important;font-size:11px!important;font-weight:750!important;text-align:left!important;white-space:normal!important}
table.service-status-grouped-table .service-status-category-row>th,table.service-status-grouped-table .service-status-sub-row>th{display:table-cell!important}
.service-status-grouped-table .service-status-table-label{display:inline!important;white-space:normal!important;overflow:visible!important;text-overflow:clip!important;overflow-wrap:normal!important;word-break:normal!important;color:inherit!important}
.service-status-grouped-table .service-status-table-count{display:inline-block!important;vertical-align:middle;min-width:27px;margin-left:12px;background:#355061;border:1px solid #4f7184;padding:2px 7px;border-radius:7px;font-variant-numeric:tabular-nums;color:#f6f9fc!important;white-space:nowrap;box-sizing:border-box}
.service-status-category-head h3{min-width:0;overflow-wrap:normal;word-break:normal}
.service-status-category-count,.service-status-stage-count{flex:0 0 auto}
.service-status-stage-name{flex:1 1 auto;overflow-wrap:normal;word-break:normal}
@media(min-width:1350px){.service-status-departments-grid{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:850px){.service-status-departments-grid{grid-template-columns:1fr}.service-status-departments{padding:10px}.service-status-departments-head h2{font-size:13px}.service-status-category-stages{padding:6px}}

/* Mobile queue category headings share the dark palette and preserve job-card actions. */
.service-mobile-category-head{padding:11px 12px;background:linear-gradient(95deg,#294554,#162a37);color:#f1f8fb;font-size:12px;font-weight:850;border-left:3px solid #78aed2;border-radius:9px;margin:11px 0 4px}
.service-mobile-category-head[data-tone="gold"]{border-left-color:#dcb475}
.service-mobile-category-head[data-tone="purple"]{border-left-color:#c0a0dc}
.service-mobile-category-head[data-tone="orange"]{border-left-color:#e49b70}
.service-mobile-category-head[data-tone="teal"]{border-left-color:#83c4b0}
.service-mobile-category-head[data-tone="cyan"]{border-left-color:#78c2d6}
.service-mobile-category-head[data-tone="green"]{border-left-color:#96c88e}
.service-mobile-category-head[data-tone="slate"]{border-left-color:#a2b3c1}
.service-mobile-status-head{padding:7px 12px;color:#d4e4ee;background:#20323f;font-weight:750;font-size:11px;border-bottom:1px solid #385362;border-radius:5px;margin-top:5px}

/* Keep counts inside horizontally scrollable job tables and narrow lists. */
.service-status-grouped-table .service-status-category-row>th,.service-status-grouped-table .service-status-sub-row>th{box-sizing:border-box;overflow:visible}
