.bulk-contact-modal{width:min(1400px,96vw)!important;max-width:96vw!important}.bulk-contacts .bulk-controls{display:flex;gap:12px;align-items:center;flex-wrap:wrap;margin:12px 0}.bulk-contacts label{display:flex;gap:6px;align-items:center}.bulk-contacts .bulk-columns,.bulk-contacts .bulk-mapping{display:flex;flex-wrap:wrap;gap:12px;padding:12px 0}.bulk-contacts textarea{width:100%}.bulk-grid{overflow:auto;max-height:50vh;border:1px solid var(--border,#b7cfc7);border-radius:8px}.bulk-grid table{min-width:100%;border-collapse:collapse}.bulk-grid th{position:sticky;top:0;background:var(--panel,#edf5f2);color:var(--text,#153c32);z-index:1;white-space:nowrap}.bulk-grid th,.bulk-grid td{padding:8px;text-align:left;vertical-align:top}.bulk-grid input{min-width:145px;width:100%}.bulk-grid input[aria-invalid=true]{border:2px solid #cc5555;background:rgba(220,80,80,.09)}.bulk-error{display:block;color:#d44f4f;max-width:200px}.bulk-grid details{min-width:150px}.bulk-summary{padding:12px 0;font-weight:600}.bulk-input{padding:10px 0}.bulk-contacts summary{cursor:pointer}.bulk-grid td p{margin:6px 0}.bulk-contacts input[type=checkbox]{width:auto;min-width:0}
.bulk-contact-modal .save[hidden]{display:none!important}

.bulk-contact-modal{font-family:Inter,system-ui,sans-serif}.bulk-contacts :is(input:not([type=checkbox]):not([type=file]),select,textarea){box-sizing:border-box;min-height:36px;border:1px solid var(--line,#bdd2c9);border-radius:7px;padding:7px 10px;background:var(--surface,#fff);color:var(--ink,#173b31);font:inherit;font-size:13px}.bulk-contacts :is(input,select,textarea):focus{outline:2px solid #35a880;outline-offset:1px}.bulk-contact-modal .bulk-grid input[aria-invalid=true]{border-color:#d85e5e!important}.bulk-grid th{background:var(--surface,#edf5f2);color:var(--ink,#153c32)}.bulk-contacts details{margin:8px 0}.bulk-contacts summary{font-size:13px;font-weight:600}.bulk-contact-modal .modal-body{overflow:auto}.bulk-contact-modal button:disabled{opacity:.5;cursor:default}@media(max-width:600px){.bulk-contact-modal .modal-body{padding:14px}.bulk-contacts .bulk-controls>label{flex-wrap:wrap}.bulk-contacts .bulk-confirm{flex-shrink:0}}

/* Ordered bulk-entry workspace; scoped to this modal only. */
.bulk-contact-modal{display:flex!important;flex-direction:column;max-height:calc(100dvh - 56px)!important;margin:28px auto!important;overflow:hidden!important}.bulk-contact-modal .modal-head,.bulk-contact-modal .modal-foot{flex-shrink:0}.bulk-contact-modal .modal-body{min-height:0;overflow:auto;padding:20px!important}.bulk-context{display:flex;justify-content:space-between;gap:12px;align-items:center;padding:10px 14px;background:var(--mint,#edf5f1);border-radius:8px;margin-bottom:18px}.bulk-context span{font-size:12px;color:var(--muted,#60756b)}.bulk-step-title{display:flex;gap:10px;align-items:center;margin:12px 0}.bulk-step-title>span,.bulk-step-number{display:inline-flex;width:26px;height:26px;flex-shrink:0;align-items:center;justify-content:center;border-radius:50%;background:var(--mint,#e5f3eb);color:var(--ink,#183f32);font-weight:700;font-size:12px}.bulk-step-title h3{margin:0;font-size:14px}.bulk-step-title p{margin:3px 0 0;font-size:12px;color:var(--muted,#60756b)}.bulk-input{border:1px solid var(--line,#bdd2c9);border-radius:10px;padding:12px!important;margin:16px 0!important}.bulk-input>summary{display:flex;gap:9px;align-items:center}.bulk-input>summary small{margin-left:auto;font-weight:400;color:var(--muted,#60756b)}.bulk-input>p{font-size:12px;color:var(--muted,#60756b)}.bulk-contacts .bulk-paste{min-height:90px;max-height:150px;resize:vertical;font-family:ui-monospace,monospace;font-size:12px}.bulk-controls{row-gap:10px}.bulk-contacts .bulk-controls>label{font-size:12px}.bulk-contacts .bulk-mapping{display:block;margin-top:14px;padding:0;border:1px solid var(--line,#bdd2c9);border-radius:8px;overflow:hidden}.bulk-mapping:empty{display:none}.bulk-map-head,.bulk-map-row{display:grid;grid-template-columns:minmax(100px,1fr) minmax(140px,2fr) minmax(150px,1fr);gap:16px;align-items:center;padding:9px 12px}.bulk-map-head{background:var(--mint,#edf5f1);font-size:11px;font-weight:700;text-transform:uppercase;letter-spacing:.04em}.bulk-map-list{max-height:280px;overflow:auto}.bulk-map-row{border-bottom:1px solid var(--line,#bdd2c9);font-size:12px}.bulk-map-row b,.bulk-map-sample{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.bulk-map-row select{width:100%;min-width:0}.bulk-map-sample{color:var(--muted,#60756b)}.bulk-map-footer{padding:10px 12px;display:flex;align-items:center;justify-content:space-between;gap:10px}.bulk-map-footer small{color:var(--muted,#60756b)}.bulk-review-head{display:flex;justify-content:space-between;align-items:center;gap:12px}.bulk-column-options,.bulk-update-help{display:inline-block;vertical-align:top;margin:0 20px 10px 0!important}.bulk-column-options[open],.bulk-update-help[open]{display:block}.bulk-contacts .bulk-columns{padding:10px;gap:8px}.bulk-columns label{font-size:12px;padding:5px 8px;border:1px solid var(--line,#bdd2c9);border-radius:6px}.bulk-summary{font-size:12px;padding:10px 0}.bulk-grid{max-height:42vh}.bulk-grid table{table-layout:fixed;width:max-content;min-width:100%}.bulk-grid th,.bulk-grid td{box-sizing:border-box;padding:8px;white-space:normal}.bulk-grid th:first-child,.bulk-grid td:first-child{width:50px}.bulk-grid [class^=bulk-col-]{width:170px;min-width:170px}.bulk-grid .bulk-col-name{width:260px;min-width:260px}.bulk-grid .bulk-col-address{width:300px;min-width:300px}.bulk-grid .bulk-col-credit_period_days,.bulk-grid .bulk-col-status{width:130px;min-width:130px}.bulk-grid input{min-width:0!important}.bulk-grid .bulk-result-col{width:220px}.bulk-grid .bulk-remove-col{width:62px}.bulk-grid td:last-child{width:62px;text-align:center}.bulk-contact-modal .bulk-row-remove{display:inline-flex!important;align-items:center;justify-content:center;width:30px!important;height:30px!important;padding:0!important;min-width:30px!important;border:1px solid #cc777744!important;background:#cc55550a!important;color:#d66b6b!important}.bulk-row-remove>.bulk-remove-icon{display:inline-flex!important}.bulk-row-remove>:not(.bulk-remove-icon),.bulk-row-remove::before,.bulk-row-remove::after{display:none!important}.bulk-remove-icon svg{display:block!important;width:16px!important;height:16px!important}.bulk-grid details{font-size:11px}.bulk-grid details p{overflow-wrap:anywhere}.bulk-contact-modal .bulk-controls button{white-space:nowrap}.bulk-contact-modal .modal-foot{border-top:1px solid var(--line,#bdd2c9)}
@media(max-width:650px){.bulk-contact-modal{margin:24px auto!important;max-height:calc(100dvh - 48px)!important}.bulk-contact-modal .modal-body{padding:12px!important}.bulk-context{align-items:flex-start;flex-direction:column;gap:4px}.bulk-review-head{align-items:flex-start;flex-direction:column;gap:0}.bulk-input>summary{flex-wrap:wrap}.bulk-input>summary small{width:100%;margin-left:35px}.bulk-map-head{display:none}.bulk-map-row{grid-template-columns:minmax(0,1fr) minmax(120px,1fr);gap:6px 10px}.bulk-map-row .bulk-map-sample{grid-row:2;grid-column:1}.bulk-map-row select{grid-column:2;grid-row:1 / span 2}.bulk-map-footer{align-items:flex-start;flex-direction:column}.bulk-grid{max-height:45vh}}

.bulk-opening-note{padding:10px 12px;margin:10px 0;border:1px solid var(--line,#bdd2c9);border-radius:8px;color:var(--muted,#60756b);font-size:12px;line-height:1.6}.bulk-opening-note label{margin-top:8px;color:var(--ink,#173b31)}.bulk-grid .bulk-col-product_name{width:260px;min-width:260px}.bulk-grid .bulk-col-image_url{width:300px;min-width:300px}.bulk-grid .bulk-col-opening_date{width:210px;min-width:210px}

.bulk-source-status,.bo-source-status{overflow-wrap:anywhere}.bulk-location-maps label,.bo-workspaces label,.bo-controls label{display:grid;grid-template-columns:minmax(140px,1fr) minmax(180px,2fr);gap:12px;align-items:center;margin:8px 0}.bulk-warning{display:block;color:#8b650c;font-size:11px}.bulk-stock-options{align-items:center;flex-wrap:wrap}.bulk-contact-option{display:flex;gap:8px;align-items:center}.bo-grid input{min-width:140px}.bo-grid td:nth-child(3) input{min-width:230px}.bo-summary{margin:12px 0;font-weight:600}.bulk-source-choice.hidden{display:none!important}@media(max-width:600px){.bulk-location-maps label,.bo-workspaces label,.bo-controls label{grid-template-columns:1fr;gap:4px}}
