/* v192: all selectors scoped. Full-width layout / existing permissions remain. */
:root{--ss-nav-height:54px}
.ss-fields-admin,.ss-pool,.ss-lead-table-card{min-width:0;max-width:100%}
.ss-eyebrow{font-size:11px;letter-spacing:.13em;font-weight:750;color:#55718d;margin:0 0 8px}
.ss-info{margin:18px 0;border-left:4px solid #2f6fed;line-height:1.6}
.ss-info p{margin:8px 0}
.ss-fields-toolbar{position:sticky;top:var(--ss-nav-height);z-index:12;display:flex;flex-wrap:wrap;gap:12px;align-items:center;background:#f4f7fa;padding:12px 0}
.ss-fields-toolbar input{max-width:420px;min-width:170px;flex:1}
.ss-fields-toolbar label{margin:0;font-weight:650}
.ss-fields-section{margin:16px 0}
.ss-fields-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(340px,100%),1fr));gap:10px}
.ss-field-card{border:1px solid #e3e8ef;border-radius:9px;padding:13px;display:flex;justify-content:space-between;align-items:flex-start;gap:12px;min-width:0}
.ss-field-card b{display:block;margin-bottom:6px;font-size:13px}
.ss-field-card .small{line-height:1.4}
.ss-required-control{display:inline-flex!important;gap:6px;align-items:center!important;flex-shrink:0;width:auto!important;color:#294c75;font-size:11px!important;font-weight:600;margin:0!important;padding:4px 6px;border:1px solid #d4e0ef;border-radius:6px;background:#f3f7fe;cursor:pointer}
.ss-required-control input{display:inline-block!important;appearance:auto;width:14px!important;height:14px!important;min-width:14px!important;max-width:14px;padding:0!important;margin:0!important;cursor:pointer}
.ss-required-control:has(input:disabled){opacity:.7;cursor:default}
.ss-label-line{display:flex;align-items:center;flex-wrap:wrap;justify-content:space-between;gap:4px 8px;margin:0 0 7px}
.ss-label-line>label:not(.ss-required-control){margin:0!important;display:block;flex:1;min-width:80px;line-height:1.3}
.ss-required-star{color:#b42318}
.ss-main-required{font-size:10px;color:#7a5014}
.ss-form-note{display:flex;align-items:center;flex-wrap:wrap;gap:8px 14px;padding:12px 14px;background:#eef4ff;border:1px solid #d4e3fc;border-radius:8px;margin:10px 0 16px;font-size:12px;line-height:1.5}
.ss-form-note a{color:#1952a1;text-decoration:underline;white-space:nowrap}
.ss-save-status{font-size:12px;color:#206343;line-height:1.4}
.ss-error,.ss-form-errors{color:#a82218}
.ss-form-errors{border-left:4px solid #b42318;background:#fff4f1;padding:12px;margin:12px 0}
.ss-audit{overflow:auto}
.ss-fields-admin [hidden],.ss-form-note [hidden],.ss-label-line [hidden],.ss-form-errors[hidden]{display:none!important}
/* Pool uses a stable-height body. Header/filter table is sticky relative to the document, not to the x-scroll wrapper. */
#pool.ss-pool{overflow:visible!important;overflow-anchor:none;padding-top:0;position:relative;scroll-margin-top:var(--ss-nav-height)}
.ss-pool-dock{position:sticky;top:var(--ss-nav-height);z-index:10;background:#fff;padding-top:16px;border-bottom:1px solid #d9e2ef;box-shadow:0 2px 4px rgba(18,41,72,.06)}
.ss-pool-dock .section-title{gap:12px;flex-wrap:wrap}
.ss-sort-hint{font-size:12px;color:#48627f;margin:9px 0 11px}
.ss-pool-headscroll{overflow-x:auto;overflow-y:hidden;max-width:100%;scrollbar-width:none}
.ss-pool-headscroll::-webkit-scrollbar{display:none}
.ss-pool-viewport{overflow:auto;height:clamp(280px,54vh,650px);max-width:100%;scrollbar-gutter:stable;overflow-anchor:none;overscroll-behavior:contain;border-bottom:1px solid #e3e8ef}
#salesPoolHeader,#salesPoolTable{width:1610px;table-layout:fixed;border-collapse:separate;border-spacing:0;margin:0;min-width:0}
#salesPoolHeader th,#salesPoolTable td{padding:12px 10px;vertical-align:top;min-width:0!important;overflow-wrap:anywhere}
#salesPoolHeader th{background:#f0f4f9;color:#213d5d;font-size:12px}
#salesPoolHeader .sales-pool-filter{width:100%!important;min-width:0!important;max-width:100%;font-size:12px}
#salesPoolHeader .sales-pool-sort{border:0;background:none;color:inherit;padding:0;display:flex;gap:8px;align-items:center;justify-content:space-between;text-align:left;width:100%;font:inherit;font-weight:750;cursor:pointer;border-radius:3px}
#salesPoolHeader .sales-pool-sort-arrow{display:inline-block;min-width:16px;font-size:17px;color:#355d8c}
#salesPoolHeader th[aria-sort=ascending],#salesPoolHeader th[aria-sort=descending]{background:#dfeafb;color:#174ea0}
#salesPoolHeader .sales-pool-sort:hover{color:#1d4ed8}
#salesPoolHeader .sales-pool-sort:focus-visible{outline:3px solid #6999ee;outline-offset:4px}
#salesPoolTable tr[hidden]{display:none!important}
#salesPoolTable .safesale-crm-dial{white-space:normal}
#salesPoolEmpty .empty{min-height:140px;text-align:left;display:flex;align-items:center}
/* All Leads: stable table, explicit column widths, personal chooser. */
.ss-lead-table-card{overflow:visible!important}
.ss-columns-toolbar{display:flex;gap:12px;align-items:center;flex-wrap:wrap;margin-bottom:14px;position:relative;z-index:11}
#ssColumnChooser{position:relative}
#ssColumnChooser summary{cursor:pointer;list-style:none;display:inline-flex}
#ssColumnChooser summary::after{content:'▾';margin-left:9px}
#ssColumnChooser summary::-webkit-details-marker{display:none}
.ss-column-menu{position:absolute;top:calc(100% + 6px);left:0;width:min(430px,calc(100vw - 70px));background:#fff;padding:16px;border:1px solid #d5e0ed;border-radius:10px;box-shadow:0 12px 28px #17365d29;max-height:65vh;overflow:auto;z-index:16}
#ssColumnOptions{display:grid;grid-template-columns:1fr 1fr;gap:6px 12px;margin-bottom:15px}
.ss-column-choice{display:flex!important;align-items:center;gap:8px;font-size:12px!important;font-weight:500;margin:0!important;padding:5px 0;min-width:0}
.ss-column-choice input{width:15px!important;height:15px!important;min-width:15px;margin:0!important;appearance:auto;padding:0!important}
.ss-column-choice small{font-size:10px;margin-left:auto}
.ss-leads-scroll{overflow:auto;width:100%;height:clamp(320px,65vh,760px);scrollbar-gutter:stable;overflow-anchor:none;border:1px solid #e3e8ef;border-radius:7px;overscroll-behavior:contain}
#leadListTable{table-layout:fixed;border-collapse:separate;border-spacing:0;width:max-content;min-width:0!important}
#leadListTable th,#leadListTable td{min-width:0!important;max-width:none!important;overflow-wrap:anywhere;white-space:normal!important;padding-left:10px;padding-right:10px}
#leadListTable thead{position:sticky;top:0;z-index:5}
#leadListTable thead th{background:#eef3fa;position:relative;font-size:12px;box-shadow:inset 0 -1px 0 #dce4ef}
#leadListTable thead tr:first-child th{padding-right:18px}
#leadListTable thead input,#leadListTable thead select{width:100%!important;min-width:0!important;font-size:12px}
#leadListTable .safesale-crm-dial{white-space:normal}
#leadListTable .btn{max-width:100%;white-space:normal}
#leadListTable .ss-resize-handle{position:absolute;top:0;right:0;bottom:0;width:10px;min-width:0!important;margin:0;padding:0;border:0;border-right:2px solid #c6d4e6;border-radius:0;background:transparent;cursor:col-resize;touch-action:none;z-index:6}
#leadListTable .ss-resize-handle:hover,#leadListTable .ss-resize-handle:focus-visible{background:#aec8f0;outline:2px solid #2356a2}
body.ss-resizing,body.ss-resizing *{cursor:col-resize!important;user-select:none!important}
#ssLeadsEmpty[hidden],#ssColumnToolbar [hidden]{display:none!important}
@media(max-width:650px){.ss-field-card{padding:10px}.ss-columns-toolbar{align-items:flex-start}.ss-fields-toolbar{gap:8px}.ss-fields-toolbar .ss-save-status{width:100%}.ss-pool-dock .section-title .small{font-size:11px}.ss-sort-hint{font-size:11px}#ssColumnOptions{grid-template-columns:1fr}.ss-column-menu{width:min(330px,calc(100vw - 60px))}.ss-pool-viewport{height:360px}.ss-leads-scroll{height:420px}}
