/* Keep all styles inside the selected-record editor. */
.modal.bulk-edit{width:min(1800px,calc(100vw - 32px));max-width:1800px;height:min(850px,calc(100dvh - 32px));max-height:calc(100dvh - 32px);display:flex;flex-direction:column;overflow:hidden;padding:0;margin:0;background:#fff}
.bulk-edit .be-heading{flex:none;position:relative;padding:16px 62px 12px 18px;border-bottom:1px solid var(--line)}
.bulk-edit .be-heading h3{margin:0 0 4px;padding:0}
.bulk-edit .be-heading p{margin:0;font-size:12px}
.bulk-edit .be-heading .modal-close{right:16px;top:16px}
.bulk-edit .be-controls{flex:none;padding:10px 18px;display:flex;align-items:flex-end;gap:14px;border-bottom:1px solid var(--line);background:#f8fafc}
.bulk-edit .be-controls[hidden]{display:none}
.bulk-edit .be-apply{display:flex;align-items:flex-end;gap:10px;flex:1}
.bulk-edit .be-apply label{margin:0;width:190px;font-size:12px}
.bulk-edit .be-apply-value{flex:1;max-width:420px}
.bulk-edit #be-value{display:block}
.bulk-edit .be-apply input,.bulk-edit .be-apply select,.bulk-edit .be-apply textarea{margin-top:3px;min-height:38px}
.bulk-edit .be-apply>.btn{min-height:38px;white-space:nowrap}
.bulk-edit .be-extra{display:flex;align-items:center;gap:6px;margin:0;white-space:nowrap;font-size:13px;width:auto}
.bulk-edit .be-body{flex:1;min-height:0;overflow:auto;overscroll-behavior:contain;position:relative}
.bulk-edit .be-grid{display:grid;min-width:max-content}
.bulk-edit .be-grid-head,.bulk-edit .be-grid-row{display:grid;grid-template-columns:var(--be-cols);align-items:stretch}
.bulk-edit .be-grid-head{position:sticky;top:0;z-index:4;background:var(--table-head);color:var(--table-head-ink);font-weight:650;font-size:13px}
.bulk-edit .be-grid-head>div{padding:10px 8px;border-bottom:1px solid #cad4df}
.bulk-edit .be-grid-row>div{padding:8px;border-bottom:1px solid var(--line);background:#fff}
.bulk-edit .be-grid-row:nth-child(odd)>div{background:#fafbfd}
.bulk-edit .be-identity{position:sticky;left:0;z-index:2;border-right:1px solid var(--line)}
.bulk-edit .be-grid-head .be-identity{z-index:5;background:var(--table-head)}
.bulk-edit .be-product{display:flex;align-items:center;gap:8px}
.bulk-edit .be-product>span:last-child{min-width:0;overflow-wrap:anywhere}
.bulk-edit .be-product img,.bulk-edit .be-product .image-placeholder{width:42px;height:42px;min-width:42px;object-fit:contain;border:1px solid var(--line);border-radius:6px;background:#fff;margin:auto 0;cursor:zoom-in}
.bulk-edit .be-product b{font-size:12px;font-weight:650}
.bulk-edit .be-product small{display:block;font-size:11px;color:#64748b;line-height:1.4}
.bulk-edit [data-be-reset]{margin-top:5px;font-size:11px;padding:2px 7px}
.bulk-edit .be-cell{display:flex;align-items:center;min-width:0}
.bulk-edit .be-cell input,.bulk-edit .be-cell select,.bulk-edit .be-cell textarea{min-width:0;width:100%;padding:7px;font-size:13px;min-height:36px;margin:0}
.bulk-edit .be-cell textarea{resize:vertical;line-height:1.5}
.bulk-edit .be-changed{border-color:#7b96b3;background:#f0f6fc;box-shadow:inset 0 0 0 1px #7b96b322}
.modal.bulk-edit .be-footer{position:static;flex:none;margin:0;padding:10px 18px 14px;border-top:1px solid var(--line);background:#fff}
.bulk-edit .be-footer p{margin:0 0 7px;font-size:12px}
.bulk-edit .be-footer .row{justify-content:flex-end;gap:8px}
.bulk-edit .be-reviewing{padding:12px 18px;background:#f8fafc}
.bulk-edit .be-review-title{margin:0 0 10px;font-size:13px}
.bulk-edit .be-review-record{padding:10px 12px;background:#fff;border:1px solid var(--line);border-radius:8px;margin-bottom:8px}
.bulk-edit .be-review-record>strong{display:block;margin-bottom:5px;font-size:13px}
.bulk-edit .be-diff{display:grid;grid-template-columns:100px minmax(0,1fr) 18px minmax(0,1fr);gap:8px;font-size:13px;overflow-wrap:anywhere;padding:4px 0}
.bulk-edit .be-diff>b{font-weight:500;color:#637081}
.bulk-edit .be-diff>strong{font-weight:550}
@media(max-width:700px){
 .modal-bg:has(.bulk-edit){padding:8px;align-items:center}
 .modal.bulk-edit{width:100%;height:calc(100dvh - 16px);max-height:calc(100dvh - 16px);border-radius:12px}
 .bulk-edit .be-heading{padding:12px 56px 9px 12px}
 .bulk-edit .be-heading .modal-close{width:44px;height:44px;right:7px;top:7px}
 .bulk-edit .be-heading p{font-size:11px;line-height:1.45}
 .bulk-edit .be-controls{padding:9px 12px;flex-wrap:wrap;gap:7px}
 .bulk-edit .be-apply{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:6px;width:100%;flex-basis:100%}
 .bulk-edit .be-apply label{width:auto;max-width:none;min-width:0}
 .bulk-edit .be-apply>.btn{grid-column:1/-1;min-height:44px}
 .bulk-edit .be-apply input,.bulk-edit .be-apply select,.bulk-edit .be-apply textarea{min-height:44px;font-size:14px}
 .bulk-edit .be-extra{min-height:30px}
 .bulk-edit .be-body{padding:8px 10px;background:#f5f7fa}
 .bulk-edit .be-grid{display:block;min-width:0}
 .bulk-edit .be-grid-head{display:none}
 .bulk-edit .be-grid-row{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:8px;padding:10px;border:1px solid var(--line);border-radius:8px;background:#fff;margin-bottom:8px}
 .bulk-edit .be-grid-row>div{padding:0;border:0;background:#fff!important}
 .bulk-edit .be-identity{grid-column:1/-1;position:static;display:flex;justify-content:space-between;gap:5px;align-items:center}
 .bulk-edit .be-product{flex:1;min-width:0}
 .bulk-edit [data-be-reset]{flex:none;min-height:44px;margin:0}
 .bulk-edit .be-cell{display:block}
 .bulk-edit .be-cell::before{content:attr(data-be-label);display:block;font-size:11px;color:#657384;margin-bottom:3px}
 .bulk-edit .be-cell input,.bulk-edit .be-cell select,.bulk-edit .be-cell textarea{min-height:44px;font-size:14px}
 .modal.bulk-edit .be-footer{padding:9px 12px 12px}
 .bulk-edit .be-footer .btn{min-height:44px;flex:1;padding-inline:9px}
 .bulk-edit .be-footer .btn[hidden]{display:none}
 .bulk-edit .be-reviewing{padding:10px}
 .bulk-edit .be-diff{grid-template-columns:80px minmax(0,1fr);gap:4px 8px}
 .bulk-edit .be-diff>span:nth-child(3){display:none}
 .bulk-edit .be-diff>strong{grid-column:2}
}
