
/* Only the selection-pool assignment modal; table and permissions are unchanged. */
.sp-dialog.sp-assignment-dialog.xw-assignment-compact{width:560px;max-width:calc(100vw - 32px);max-height:calc(100dvh - 32px);padding:0;box-sizing:border-box;background:#fff;color:#263448;border:1px solid #e4e8ef;border-radius:14px;overflow:auto}
.xw-assignment-compact>header{display:flex;align-items:center;justify-content:space-between;padding:18px 22px;border-bottom:1px solid #e9edf3;background:#fff}
.xw-assignment-compact>header h2{margin:0;font-size:17px;font-weight:600;color:#202b3b}
.xw-assignment-compact .sp-close{display:flex;align-items:center;justify-content:center;width:30px;height:30px;padding:0;border:0;border-radius:7px;background:#f4f5f7;color:#8590a0;font-size:23px;line-height:1}
.xw-assignment-compact .sp-body{padding:18px 22px 16px}
.xw-assignment-compact .xac-fields{min-width:0;margin:0;padding:0;border:0}
.xw-assignment-compact .xac-identity{display:grid;grid-template-columns:1fr 1.25fr;gap:24px;align-items:center;padding-bottom:18px;border-bottom:1px solid #edf0f5}
.xw-assignment-compact .xac-creator,.xw-assignment-compact label.xac-person{display:flex;flex-direction:row;align-items:center;gap:12px;margin:0;font-size:13px;font-weight:400;white-space:nowrap}
.xw-assignment-compact .xac-creator-value{font-weight:500;overflow:hidden;text-overflow:ellipsis}
.xw-assignment-compact select,.xw-assignment-compact input:not([type=radio]){width:100%;min-width:0;height:36px;box-sizing:border-box;padding:7px 11px;border:1px solid #dce3ed;border-radius:7px;background:#fff;color:#27374e;font:inherit;font-size:13px;box-shadow:none}
.xw-assignment-compact select{flex:1}
.xw-assignment-compact input::placeholder{color:#95a0b2;opacity:1}
.xw-assignment-compact .xac-shop-heading{display:flex;gap:8px;align-items:baseline;margin:16px 0 12px;font-size:14px;font-weight:500}
.xw-assignment-compact .xac-shop-heading small{font-size:12px;font-weight:400;color:#93a0b1}
.xw-assignment-compact .xac-mode-row{display:grid;grid-template-columns:100px minmax(0,1fr);gap:12px;align-items:start;margin:10px 0}
.xw-assignment-compact label.xac-mode-label{display:flex;flex-direction:row;align-items:center;gap:8px;margin:0;min-height:36px;font-size:13px;font-weight:400;white-space:nowrap;cursor:pointer}
.xw-assignment-compact input[type=radio]{appearance:auto;flex:none;width:15px;height:15px;margin:0;padding:0;accent-color:#2860f7;border:0;box-shadow:none}
.xw-assignment-compact .xac-shop-toggle{display:flex;align-items:center;justify-content:space-between;gap:10px;width:100%;height:36px;margin:0;padding:7px 11px;border:1px solid #dce3ed;border-radius:7px;background:#fff;color:#27374e;font:inherit;font-size:13px;text-align:left;cursor:pointer}
.xw-assignment-compact .xac-shop-toggle>span:first-child{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.xw-assignment-compact .xac-shop-toggle.is-placeholder{color:#95a0b2}
.xw-assignment-compact .xac-chevron{color:#7c899c;font-size:17px;line-height:1}
.xw-assignment-compact .xac-shop-panel{margin-top:6px;padding:7px;border:1px solid #dbe4f1;border-radius:8px;background:#fff}
.xw-assignment-compact [hidden]{display:none!important}
.xw-assignment-compact input.xac-shop-search{height:33px;margin:0 0 6px;background:#f7f9fc}
.xw-assignment-compact .xac-shop-list{max-height:222px;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin}
.xw-assignment-compact .xac-shop-option{display:flex;align-items:center;justify-content:space-between;gap:8px;width:100%;min-height:43px;padding:7px 9px;margin:1px 0;border:0;border-radius:5px;background:#fff;color:#344358;font:inherit;font-size:13px;text-align:left;cursor:pointer}
.xw-assignment-compact .xac-shop-option:hover,.xw-assignment-compact .xac-shop-option.is-active,.xw-assignment-compact .xac-shop-option[aria-selected=true]{background:#edf4ff;color:#2860ef}
.xw-assignment-compact .xac-shop-option-copy{display:flex;flex-direction:column;gap:2px;min-width:0;overflow-wrap:anywhere}
.xw-assignment-compact .xac-shop-option-copy small{font-size:11px;line-height:1.4;color:#8b98aa}
.xw-assignment-compact .xac-check{color:#2860ef;flex:none}
.xw-assignment-compact .xac-shop-status{padding:9px 6px;color:#8190a5;font-size:12px;line-height:1.5}
.xw-assignment-compact .xac-retry{margin:2px 6px;padding:3px 0;border:0;background:none;color:#2860ef;font:inherit;font-size:12px;cursor:pointer}
.xw-assignment-compact .xac-shop-warning{margin:5px 0 0 112px;color:#b06d23;font-size:12px;line-height:1.5}
.xw-assignment-compact .sp-error{margin:8px 0 0;font-size:12px;line-height:1.5}
.xw-assignment-compact .sp-error:empty{display:none}
.xw-assignment-compact>footer{display:flex;gap:10px;justify-content:flex-end;margin:0;padding:12px 22px;border-top:1px solid #edf0f5;background:#fafbfd}
.xw-assignment-compact>footer button{min-width:64px;height:35px;padding:0 16px;border:0;border-radius:7px;background:#f0f2f6;color:#3e4b61;font:inherit;font-size:13px;cursor:pointer}
.xw-assignment-compact>footer button.sp-primary{background:#2860f7;color:#fff}
.xw-assignment-compact button:disabled{opacity:.55;cursor:wait}
.xw-assignment-compact input:focus-visible,.xw-assignment-compact select:focus-visible,.xw-assignment-compact button:focus-visible{outline:2px solid #8cb0ff;outline-offset:2px}
body.theme-dark .sp-dialog.xw-assignment-compact,body.theme-dark .xw-assignment-compact>header,body.theme-dark .xw-assignment-compact>footer{background:#30343d;color:#e8ebf0;border-color:#4a5260}
body.theme-dark .xw-assignment-compact>header h2{color:#e8ebf0}
body.theme-dark .xw-assignment-compact select,body.theme-dark .xw-assignment-compact input:not([type=radio]),body.theme-dark .xw-assignment-compact .xac-shop-toggle,body.theme-dark .xw-assignment-compact .xac-shop-panel,body.theme-dark .xw-assignment-compact .xac-shop-option{background:#30343d;color:#e8ebf0;border-color:#4a5260}
body.theme-dark .xw-assignment-compact .xac-shop-option:hover,body.theme-dark .xw-assignment-compact .xac-shop-option[aria-selected=true]{background:#38465f}
@media(max-width:480px){.xw-assignment-compact .sp-body{padding:16px}.xw-assignment-compact .xac-identity{gap:14px;grid-template-columns:1fr 1.3fr}.xw-assignment-compact .xac-creator,.xw-assignment-compact label.xac-person{gap:7px}.xw-assignment-compact .xac-mode-row{grid-template-columns:91px minmax(0,1fr);gap:8px}.xw-assignment-compact .xac-shop-warning{margin-left:0}}

/* Isolate the compact editor from legacy dialog input sizing and body scrolling. */
.sp-assignment-dialog.xw-assignment-compact .sp-body{max-height:none;overflow:visible;padding-top:16px;padding-bottom:14px}
.xw-assignment-compact .xac-identity{padding-bottom:14px}
.sp-assignment-dialog.xw-assignment-compact select,.sp-assignment-dialog.xw-assignment-compact input:not([type=radio]){min-height:0!important;margin-top:0;height:36px}
.sp-assignment-dialog.xw-assignment-compact input.xac-shop-search{height:33px}
.sp-assignment-dialog.xw-assignment-compact input[type=radio]{min-height:0!important;max-height:15px!important;height:15px!important;align-self:center}
.xw-assignment-compact .xac-shop-list{max-height:200px}
.xw-assignment-compact .xac-shop-option{line-height:18px;padding-top:6px;padding-bottom:6px}

/* Floating shop picker: independent top layer, never expands the assignment dialog. */
.xw-assignment-compact .xac-shop-panel{position:fixed;inset:auto;z-index:10000;margin:0;box-sizing:border-box;max-height:none;overflow:visible;box-shadow:0 8px 26px #23345325}
.xw-assignment-compact .xac-shop-list{max-height:180px}
.xw-assignment-compact .xac-shop-option{min-height:32px;padding:6px 9px;line-height:20px}
.xw-assignment-compact .xac-shop-option-copy{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
