/* THE YBDC: lead-table readability / quick actions / existing lead lookup.
   This stylesheet is deliberately scoped to #leadTable and .ybdc-* only. */
#leadTable{min-width:0;max-width:100%;overflow:hidden}
#leadTable .table-wrap{width:100%;max-width:100%;overflow-x:auto!important;overflow-y:visible;-webkit-overflow-scrolling:touch;scrollbar-gutter:stable;overscroll-behavior-inline:contain}
#leadTable .table-wrap table{width:max-content;min-width:100%;border-collapse:separate;border-spacing:0}
#leadTable .table-wrap th,#leadTable .table-wrap td{white-space:normal;vertical-align:middle}
#leadTable .table-wrap th:first-child,#leadTable .table-wrap td:first-child{min-width:175px;max-width:240px}
#leadTable .table-wrap th:last-child,#leadTable .table-wrap td:last-child{position:sticky!important;right:0;z-index:2;min-width:100px;background:var(--surface,#0b2920)!important;box-shadow:-7px 0 12px rgba(0,0,0,.12)}
#leadTable .table-wrap thead th:last-child{z-index:3;background:var(--dark,#09281e)!important;color:inherit}
#leadTable .table-wrap tbody tr:hover td:last-child{filter:brightness(1.11)}
#leadTable .table-wrap th:not(:first-child):not(:last-child),#leadTable .table-wrap td:not(:first-child):not(:last-child){min-width:100px}
#leadTable .table-wrap td:nth-child(2){min-width:180px;max-width:320px}
.ybdc-quick-actions{display:flex;flex-wrap:wrap;gap:6px;margin-top:9px;align-items:center}
.ybdc-quick-actions button,.ybdc-find-launch{font:inherit;cursor:pointer;border-radius:8px;padding:6px 10px;font-size:11px;font-weight:750;line-height:1.2;white-space:nowrap}
.ybdc-quick-view{color:#e4eae4;background:transparent;border:1px solid #54705f}
.ybdc-quick-edit,.ybdc-find-launch{color:#082b20;background:#e0bd70;border:1px solid #e0bd70}
.ybdc-quick-actions button:hover,.ybdc-find-launch:hover{filter:brightness(1.1)}
.ybdc-find-launch{min-height:36px;padding:8px 13px}
.ybdc-scroll-tip{padding:8px 14px;margin:0;font-size:11px;color:#d4c7a0;background:rgba(12,41,32,.85)}
.ybdc-find-open{overflow:hidden}
.ybdc-find-shade{position:fixed;inset:0;z-index:999990;background:rgba(2,17,13,.83);display:grid;place-items:center;padding:14px;overflow:auto}
.ybdc-find-dialog{width:min(620px,100%);max-height:calc(100dvh - 28px);overflow-y:auto;border:1px solid #a68c52;border-radius:18px;background:#08271d;color:#f6f7f3;box-shadow:0 20px 75px #0009;font-family:inherit}
.ybdc-find-header{display:flex;align-items:start;justify-content:space-between;gap:15px;padding:22px 23px;border-bottom:1px solid #315345}
.ybdc-find-header h2{font-size:19px;color:#ecd39a;margin:0 0 7px}.ybdc-find-header p{font-size:12px;line-height:1.55;color:#cadbcf;margin:0}
.ybdc-find-close{border:1px solid #446354;background:#164838;color:#f3e4c7;width:34px;height:34px;border-radius:8px;font-size:23px;cursor:pointer}
.ybdc-find-form{padding:19px 23px 12px}.ybdc-find-form label{display:block;font-size:12px;font-weight:700;margin:0 0 9px}
.ybdc-find-controls{display:flex;gap:9px}.ybdc-find-controls input{min-width:0;flex:1 1 auto;background:#123a2d;color:#fff;border:1px solid #557c68;border-radius:8px;padding:11px;font:inherit;font-size:14px}
.ybdc-find-controls button,.ybdc-find-result-actions button,.ybdc-find-dismiss{cursor:pointer;border-radius:8px;border:1px solid #dbb96b;background:#dbb96b;color:#112b20;font-weight:700;padding:10px 13px;font:inherit}
.ybdc-find-controls button:disabled{opacity:.5;cursor:wait}
.ybdc-find-form small{display:block;font-size:11px;color:#b4c6bb;margin-top:10px}
.ybdc-find-results{padding:6px 23px 14px;font-size:12px;color:#dce6df;min-height:46px}
.ybdc-find-count{margin:0 0 10px;color:#e8d19a}
.ybdc-find-result{border:1px solid #426455;border-radius:10px;background:#153d30;padding:13px;margin:10px 0}
.ybdc-find-result strong{display:block;color:#fff;font-size:14px}
.ybdc-find-result p{font-size:12px;color:#c4d5c8;margin:6px 0 10px;line-height:1.5}
.ybdc-find-result-actions{display:flex;gap:8px;flex-wrap:wrap}
.ybdc-find-result-actions button{padding:8px 12px;font-size:11px}
.ybdc-find-result-actions button.secondary,.ybdc-find-dismiss{background:transparent;color:#ead29b;border-color:#779283}
.ybdc-find-private,.ybdc-find-error{color:#f0d089;font-size:12px;line-height:1.5}
.ybdc-find-bottom{display:flex;justify-content:flex-end;padding:13px 23px 20px}
@media(max-width:700px){
 #leadTable .table-wrap th:last-child,#leadTable .table-wrap td:last-child{min-width:92px}
 #leadTable .table-wrap th:first-child,#leadTable .table-wrap td:first-child{min-width:155px;max-width:190px}
 .ybdc-find-header,.ybdc-find-form,.ybdc-find-results,.ybdc-find-bottom{padding-left:15px;padding-right:15px}
 .ybdc-find-controls{flex-direction:column}.ybdc-find-controls button{width:100%}
}
