#selectionPoolRoot .sp-scroll table { min-width: 1840px !important; }
#selectionPoolRoot .sp-scroll table col:nth-child(2) { width: 340px !important; }
#selectionPoolRoot .sp-product-head, #selectionPoolRoot .sp-product-cell { min-width: 340px; width: 340px; }
#selectionPoolRoot .sp-assignment-head { white-space: nowrap; }
#selectionPoolRoot .sp-assignment-cell { position: relative; min-width: 150px; padding: 10px 28px 10px 12px; }
#selectionPoolRoot .sp-assignment-value { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
#selectionPoolRoot .sp-assignment-value span { color: #263448; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#selectionPoolRoot .sp-assignment-value small { color: #71809a; font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-height: 17px; }
#selectionPoolRoot .sp-assignment-edit { position: absolute; top: 11px; right: 4px; padding: 3px 5px; background: transparent; color: #6982b2; opacity: .8; }
#selectionPoolRoot .sp-assignment-edit:hover, #selectionPoolRoot .sp-assignment-edit:focus-visible { color: #3469eb; background: #e9f0ff; opacity: 1; }
#selectionPoolRoot .sp-assignment-filters { display: flex; align-items: center; gap: 6px; }
#selectionPoolRoot .sp-assignment-filters select { max-width: 118px; border: 1px solid #e2e7ef; border-radius: 7px; background: #fff; color: #546175; font: inherit; padding: 7px 5px; }
.sp-assignment-dialog { width: 360px; max-width: calc(100vw - 24px); border-radius: 12px; }
.sp-assignment-dialog > header { padding: 16px 20px; }
.sp-assignment-dialog > header h2 { font-size: 16px; }
.sp-assignment-dialog .sp-body { padding: 7px 20px 18px; }
.sp-assignment-dialog label { margin: 11px 0; }
.sp-assignment-dialog > footer { padding: 12px 20px; justify-content: flex-end; }
body.theme-dark #selectionPoolRoot .sp-assignment-value span { color: #e8ebf0; }
body.theme-dark #selectionPoolRoot .sp-assignment-value small { color: #a2aec1; }
body.theme-dark #selectionPoolRoot .sp-assignment-filters select { color: #e0e5ef; background: #30343d; border-color: #4a5260; }
body.theme-dark .sp-assignment-dialog { background: #30343d; color: #e8ebf0; border-color: #4a5260; }
body.theme-dark .sp-assignment-dialog > header, body.theme-dark .sp-assignment-dialog > footer { border-color: #4a5260; background: #30343d; }
@media (max-width: 850px) { #selectionPoolRoot .sp-assignment-filters { order: 9; } }

/* Keep opinion and discussion count on one line in the next-step cell. */
#selectionPoolRoot .sp-next-cell .sp-next-top{width:100%!important;white-space:nowrap}
#selectionPoolRoot .sp-next-cell .sp-opinion-trigger{display:inline-flex;align-items:center;justify-content:center;white-space:nowrap;flex:0 0 auto}
#selectionPoolRoot .sp-next-cell .sp-opinion-empty{white-space:nowrap;flex:0 0 auto}

/* Align the selection pool assignment cell with selection clues. */
#selectionPoolRoot .sp-scroll table col:has(+ col:last-child){width:148px!important}
#selectionPoolRoot .sp-assignment-cell{min-width:140px;padding:10px 12px}
#selectionPoolRoot .sp-assignment-value{display:flex;flex-direction:column;align-items:flex-start;gap:2px;min-width:0}
#selectionPoolRoot .sp-assignment-line{display:flex;align-items:center;gap:4px;max-width:100%;min-width:0}
#selectionPoolRoot .sp-assignment-line>span{display:block;min-width:0;max-width:calc(100% - 25px);font-size:14px;line-height:20px;color:#263448;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#selectionPoolRoot .sp-assignment-value>small{display:block;max-width:100%;min-height:0;color:#71809a;font-size:12px;line-height:18px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#selectionPoolRoot .sp-assignment-edit{position:static;flex:0 0 21px;width:21px;height:21px;display:inline-flex;align-items:center;justify-content:center;padding:0;border:1px solid transparent;border-radius:5px;background:transparent;color:#6f819a;font-size:12px;line-height:1;cursor:pointer;opacity:0;transition:opacity .12s,background .12s}
#selectionPoolRoot .sp-assignment-cell:hover .sp-assignment-edit,
#selectionPoolRoot .sp-assignment-cell:focus-within .sp-assignment-edit{opacity:1}
#selectionPoolRoot .sp-assignment-edit:hover,
#selectionPoolRoot .sp-assignment-edit:focus-visible{background:#edf3ff;border-color:#cbdcff;color:#3569dd;opacity:1;outline:2px solid transparent}
body.theme-dark #selectionPoolRoot .sp-assignment-line>span{color:#e8ebf0}
body.theme-dark #selectionPoolRoot .sp-assignment-value>small{color:#a2aec1}
body.theme-dark #selectionPoolRoot .sp-assignment-edit{color:#a8b6cc}
@media(hover:none){#selectionPoolRoot .sp-assignment-edit{opacity:1}}

/* Let flex reserve only space for controls that actually exist. Read-only names must keep their full width. */
#selectionPoolRoot .sp-assignment-line>span{flex:0 1 auto;max-width:100%}
