/* THE YBDC – optional bulk matching view */
.ybdc-bulk-mode-switch{display:flex;flex-wrap:wrap;gap:10px;margin:8px 0 20px}
.ybdc-bulk-mode-switch button,.ybdc-bulk-pagination button{border:1px solid #426c58;background:#112a20;color:#e9f5ee;border-radius:11px;padding:11px 17px;cursor:pointer;font:inherit;font-weight:700}
.ybdc-bulk-mode-switch button.active{background:#0c6a4e;border-color:#dbba65;color:white;box-shadow:inset 3px 0 #dfbb63}
.ybdc-bulk-board{margin-bottom:24px;overflow:hidden}.ybdc-bulk-toolbar{display:grid;grid-template-columns:minmax(190px,2fr) repeat(3,minmax(130px,1fr));gap:12px;padding:18px 20px}
.ybdc-bulk-toolbar label{display:flex;flex-direction:column;gap:7px;font-size:13px;font-weight:700;color:#b5cec4}
.ybdc-bulk-toolbar input,.ybdc-bulk-toolbar select{width:100%;max-width:100%;background:#0c2019;border:1px solid #36574a;border-radius:10px;padding:11px 12px;color:#f4fcf8;font:inherit}
#ybdc-bulk-progress{padding:3px 21px 16px;color:#b2c9bc;font-size:13px}
.ybdc-bulk-totals{display:flex;flex-wrap:wrap;gap:14px;padding:12px 20px;color:#bad1c7}.ybdc-bulk-totals span{border:1px solid #294c3b;border-radius:10px;padding:9px 13px}.ybdc-bulk-totals strong{color:#fff;margin-right:5px}
.ybdc-bulk-note{margin:0;padding:8px 20px 18px;color:#c5cbb5;font-size:13px;line-height:1.5}
.ybdc-bulk-table-wrap{overflow-x:auto}.ybdc-bulk-table{width:100%;border-collapse:collapse;min-width:1130px;font-size:13px}
.ybdc-bulk-table th{text-align:left;color:#c5e0d2;white-space:nowrap;background:#143426;padding:14px 12px;border-bottom:1px solid #2c5242}
.ybdc-bulk-table td{vertical-align:top;padding:14px 12px;border-bottom:1px solid #294b3b;color:#e4efe8;max-width:200px;overflow-wrap:anywhere}
.ybdc-bulk-table td small{display:block;color:#9bbcad;margin-top:4px}.ybdc-bulk-actions{white-space:nowrap}.ybdc-bulk-actions button{margin:0 4px 5px 0}.ybdc-bulk-status{display:inline-block;white-space:nowrap;padding:5px 7px;border-radius:999px;font-size:11px;font-weight:800;background:#573e20;color:#f4d998}.ybdc-bulk-status.confirmed{background:#105e45;color:#b5ffda}.ybdc-bulk-status.estimated{background:#264b55;color:#b8e8f0}
.ybdc-bulk-empty{padding:32px!important;text-align:center;color:#bacdc0!important}.ybdc-bulk-pagination{display:flex;flex-wrap:wrap;justify-content:space-between;gap:10px;align-items:center;padding:18px 20px}.ybdc-bulk-pagination>div{display:flex;gap:10px;align-items:center}.ybdc-bulk-pagination button:disabled{opacity:.4;cursor:not-allowed}
@media(max-width:1020px){.ybdc-bulk-toolbar{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:590px){.ybdc-bulk-toolbar{grid-template-columns:1fr}.ybdc-bulk-pagination>div{flex-wrap:wrap}}

/* V4: always-visible, draggable horizontal scrollbar instead of arrow buttons. */
.ybdc-bulk-hscroll-control{padding:12px 20px 15px;border-top:1px solid #294b3b;color:#c6d8cf;display:grid;gap:7px}
.ybdc-bulk-hscroll-control label{font-size:13px;font-weight:700;color:#dcece1}
.ybdc-bulk-hscroll-control small{color:#b3c8bb;line-height:1.4;font-size:12px}
.ybdc-bulk-hscroll-track{display:flex;align-items:center;gap:10px;color:#e2bf69;font-size:20px;line-height:1}
.ybdc-bulk-hscroll-track input[type=range]{flex:1;width:100%;min-width:0;height:24px;appearance:none;-webkit-appearance:none;background:transparent;cursor:ew-resize;margin:0}
.ybdc-bulk-hscroll-track input[type=range]::-webkit-slider-runnable-track{height:12px;border-radius:999px;background:#244c3c;border:1px solid #73977a}
.ybdc-bulk-hscroll-track input[type=range]::-webkit-slider-thumb{-webkit-appearance:none;appearance:none;height:23px;width:64px;border:2px solid #f0d386;border-radius:9px;background:#c79f54;margin-top:-7px;box-shadow:0 1px 3px #0008}
.ybdc-bulk-hscroll-track input[type=range]::-moz-range-track{height:12px;border-radius:999px;background:#244c3c;border:1px solid #73977a}
.ybdc-bulk-hscroll-track input[type=range]::-moz-range-thumb{height:20px;width:64px;border:2px solid #f0d386;border-radius:9px;background:#c79f54;box-shadow:0 1px 3px #0008}
.ybdc-bulk-hscroll-track input[type=range]:focus-visible{outline:3px solid #d2b46d;outline-offset:2px}
.ybdc-bulk-hscroll-track input[type=range]:disabled{opacity:.5;cursor:default}
.ybdc-bulk-loading{padding:30px 20px;text-align:center;color:#d7e7dc;font-size:13px}
.ybdc-bulk-table-wrap{width:100%;max-width:100%;overflow-x:auto!important;overscroll-behavior-x:contain;-webkit-overflow-scrolling:touch;scrollbar-color:#b4ca80 #163428;scrollbar-width:auto}
.ybdc-bulk-table-wrap:focus-visible{outline:2px solid #dfbc74;outline-offset:-2px}
.ybdc-bulk-table{border-collapse:separate;border-spacing:0;min-width:1250px}
.ybdc-bulk-table th.ybdc-bulk-actions,.ybdc-bulk-table td.ybdc-bulk-actions{position:sticky;right:0;z-index:2;background:#112920;box-shadow:-7px 0 12px #061810ad;border-left:1px solid #355746;min-width:205px;max-width:235px}
.ybdc-bulk-table th.ybdc-bulk-actions{z-index:3;background:#143426}
.ybdc-bulk-table td.ybdc-bulk-actions button{display:inline-flex;align-items:center;justify-content:center;margin:2px 4px 2px 0;padding:7px 9px;min-height:30px}
.ybdc-bulk-table td.ybdc-bulk-actions .mini{background:#123d2e;color:#edfff1;border:1px solid #376d52}
.ybdc-bulk-table td.ybdc-bulk-actions .mini:hover{background:#1b6a4d}

/* V3: clickable match-confidence summary filters. */
.ybdc-bulk-totals{align-items:stretch}
.ybdc-bulk-counter{appearance:none;border:1px solid #345e4a;border-radius:12px;background:#0a211b;color:#bed3c9;padding:10px 16px;display:inline-flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:10px;min-height:56px;cursor:pointer;font:inherit;text-align:center;transition:background .15s,border-color .15s}
.ybdc-bulk-counter strong{font:inherit;font-size:1.35em;font-weight:800;color:#fff;line-height:1.2}
.ybdc-bulk-counter span{font:inherit;font-weight:600;line-height:1.25}
.ybdc-bulk-counter:hover{background:#164536;border-color:#b3b76d}
.ybdc-bulk-counter.active,.ybdc-bulk-counter[aria-pressed="true"]{background:#155842;border-color:#dfbb63;box-shadow:inset 3px 0 #e2ba64;color:#fff}
.ybdc-bulk-counter:focus-visible{outline:3px solid #e2ba64;outline-offset:3px}
@media(max-width:590px){.ybdc-bulk-counter{flex:1 1 45%;padding:10px 12px}}
/* Undo the legacy summary-span border inside each new native button. */
.ybdc-bulk-counter span{border:0;padding:0;border-radius:0;background:transparent}

/* Also allow traditional mouse/trackpad horizontal scrolling beneath the table. */
.ybdc-bulk-table-wrap::-webkit-scrollbar{height:14px}
.ybdc-bulk-table-wrap::-webkit-scrollbar-track{background:#153629}
.ybdc-bulk-table-wrap::-webkit-scrollbar-thumb{background:#9eaf83;border:3px solid #153629;border-radius:999px}
