/* Keep department and workflow columns compact and aligned. */
body.zip-ui .orders-table :is(th,td):nth-child(3){text-align:left;vertical-align:middle;width:96px;min-width:96px;padding-left:10px;padding-right:10px}
body.zip-ui .orders-table :is(th,td):nth-child(4){text-align:left;vertical-align:middle;width:210px;min-width:185px;padding-left:10px;padding-right:10px}
body.zip-ui .orders-table td:nth-child(4)>.order-meta{display:inline-flex;vertical-align:middle;margin:0 0 0 6px}
body.zip-ui .orders-table .result-view-link{display:inline-flex!important;align-items:center!important;justify-content:flex-start!important;background:transparent!important;border:0!important;box-shadow:none!important;border-radius:4px!important;min-height:24px!important;height:24px!important;padding:0 3px!important;font-size:11px!important;line-height:24px!important;white-space:nowrap;width:auto!important;margin:0!important}
body.zip-ui .orders-table .badge[class*="dept-"],body.zip-ui .orders-table .badge[class*="state-"]{display:inline-flex;align-items:center;vertical-align:middle;border:0!important;border-radius:5px!important;min-height:24px;padding:2px 8px!important;font-size:11px;line-height:20px;white-space:nowrap}
body.zip-ui .orders-table .dept-internal{background:#fff3dd!important;color:#8e631f!important}
body.zip-ui .orders-table .dept-sales{background:#edf2ff!important;color:#3967ad!important}
body.zip-ui .orders-table .dept-followup{background:#f2ecfb!important;color:#7652a6!important}
body.zip-ui .orders-table .dept-internal_review{background:#e8f5f3!important;color:#227769!important}
body.zip-ui .orders-table .dept-closed{background:#edf0f4!important;color:#617083!important}
body.zip-ui .orders-table .state-completed{background:#e8f5ee!important;color:#24734f!important}
body.zip-ui .orders-table .state-rejected{background:#fdeeed!important;color:#ac4943!important}
body.zip-ui .orders-table .state-invalid{background:#fff3e5!important;color:#94632b!important}
body.zip-ui .orders-table .state-closed{background:#edf0f4!important;color:#617083!important}
body.zip-ui .orders-table :is(th,td):nth-child(4){width:155px;min-width:140px}
body.zip-ui .orders-table td:nth-child(4)>.order-meta{display:block;margin:2px 0 0}
body.zip-ui .orders-table :is(th,td):first-child{min-width:310px}
body.zip-ui.dashboard-shell .orders-table .row-actions{flex-wrap:nowrap!important;flex-direction:row!important;gap:5px!important}
body.zip-ui.dashboard-shell .orders-table .row-actions>.more-order{flex:0 0 26px!important;width:26px!important;min-width:26px!important}
/* Leave breathing room below the status; result stays a plain text action. */
html body.zip-ui.dashboard-shell .orders-table td:nth-child(4)>.order-meta{margin:8px 0 0!important;line-height:20px}
html body.zip-ui.dashboard-shell .orders-table button.result-view-link,
html body.zip-ui.dashboard-shell .orders-table button.result-view-link:is(:hover,:focus,:focus-visible,:active){background:transparent!important;border:0!important;border-radius:0!important;box-shadow:none!important;padding:0!important;height:20px!important;min-height:20px!important;line-height:20px!important;transform:none!important}
html body.zip-ui.dashboard-shell .orders-table button.result-view-link:focus-visible{outline:2px solid currentColor!important;outline-offset:3px!important}
