/* Segment 3 · existing stock onboarding */
.onboard-main.segment3{width:min(1180px,calc(100% - 40px))}
.onboard-inventory-card{background:#fff;border:1px solid #dfe7f0;border-radius:17px;box-shadow:0 10px 28px rgba(30,65,105,.055);overflow:hidden}
.opening-summary{display:grid;grid-template-columns:repeat(4,1fr);border-bottom:1px solid #e5ebf2;background:#fbfdff}
.opening-summary>div{padding:18px 20px;border-right:1px solid #e5ebf2;display:flex;flex-direction:column;gap:5px}
.opening-summary>div:last-child{border-right:0}
.opening-summary span{font-size:10px;color:#7d8fa1;text-transform:uppercase;letter-spacing:.06em;font-weight:750}
.opening-summary b{font-size:18px;color:#1d3f5d}
.opening-message{margin:18px 20px 0;padding:11px 13px;border:1px solid #bfe1ca;background:#f3fbf6;border-radius:10px;color:#286b3f;font-size:11px;font-weight:650}
.opening-choice-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px;padding:22px}
.opening-choice{border:1px solid #d6e1ec;background:#fff;border-radius:14px;padding:18px;display:grid;grid-template-columns:42px 1fr auto;align-items:center;gap:13px;text-align:left;cursor:pointer}
.opening-choice:hover{border-color:#9fc1e5;background:#fafdff}
.opening-choice i{width:38px;height:38px;border-radius:10px;background:#edf5fd;color:#1f67aa;display:grid;place-items:center;font-style:normal;font-weight:900;font-size:18px}
.opening-choice div{display:flex;flex-direction:column;gap:5px}
.opening-choice b{color:#25435e;font-size:14px}
.opening-choice span{color:#71859a;font-size:11px;line-height:1.45}
.opening-choice em{font-style:normal;color:#2b6dab;font-size:10px;font-weight:800;text-transform:uppercase;letter-spacing:.06em}
.opening-rule{margin:0 22px 22px;border:1px solid #dbe6f1;background:#f8fbfe;border-radius:11px;padding:13px 15px;display:flex;flex-direction:column;gap:4px}
.opening-rule b{font-size:11px;color:#395674}
.opening-rule span{font-size:10.5px;color:#72859a;line-height:1.5}
.opening-footer{border-top:1px solid #e5ebf2}
.opening-footer-right{display:flex;gap:9px;margin-left:auto}
.opening-loading{padding:46px;text-align:center;color:#71859a;font-size:12px}

.opening-form-head{padding:20px 22px;border-bottom:1px solid #e5ebf2;background:#fcfdff}
.opening-form-head h2{margin:7px 0 4px;color:#24435e;font-size:18px}
.opening-form-head p{margin:0;color:#75889c;font-size:11px;line-height:1.55}
.onboard-back-link{border:0;background:transparent;padding:0;color:#2d6ba7;font:inherit;font-size:10px;font-weight:800;cursor:pointer}
.opening-fields{padding:22px;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.opening-fields label,.opening-import-controls label,.opening-map-grid label{display:flex;flex-direction:column;gap:6px}
.opening-fields label>span,.opening-import-controls label>span,.opening-map-grid label>span{font-size:10.5px;font-weight:750;color:#496177}
.opening-fields input,.opening-fields select,.opening-fields textarea,.opening-import-controls input,.opening-map-grid select{box-sizing:border-box;width:100%;border:1px solid #cad7e5;border-radius:9px;padding:10px 11px;background:#fff;color:#21394f;font:inherit;font-size:11.5px;outline:none}
.opening-fields input:focus,.opening-fields select:focus,.opening-fields textarea:focus,.opening-import-controls input:focus,.opening-map-grid select:focus{border-color:#72a8d9;box-shadow:0 0 0 3px rgba(38,113,181,.08)}
.opening-fields textarea{min-height:70px;resize:vertical}
.opening-size-row{grid-column:1/-1;display:grid;grid-template-columns:repeat(4,1fr);gap:10px}
.opening-full{grid-column:1/-1}

.opening-import-controls{padding:20px 22px;display:grid;grid-template-columns:1fr 1fr;gap:14px;border-bottom:1px solid #e5ebf2}
.opening-file{border:1px dashed #b9ccdf;border-radius:11px;padding:14px;background:#f9fcff;cursor:pointer}
.opening-file input{display:none}
.opening-file b{margin-top:4px;color:#28639c;font-size:12px}
.opening-file small{color:#8595a5;font-size:9.5px}
.opening-preview{padding:0 22px 22px}
.opening-preview-head{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:18px 0 12px}
.opening-preview-head>div{display:flex;flex-direction:column;gap:3px}
.opening-preview-head b{color:#28455e;font-size:12px}
.opening-preview-head span{color:#7e90a2;font-size:10px}
.opening-preview-head button{border:0;background:transparent;color:#2b6fad;font:inherit;font-size:10px;font-weight:800;cursor:pointer}
.opening-map-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;padding:14px;border:1px solid #dfe7f0;border-radius:12px;background:#fafcff}
.opening-preview-table{margin-top:14px;overflow:auto;border:1px solid #dfe7f0;border-radius:11px;max-height:260px}
.opening-preview-table table{width:100%;border-collapse:collapse;font-size:10px}
.opening-preview-table th{position:sticky;top:0;background:#f1f6fb;color:#50677d;text-align:left;padding:8px 10px;border-bottom:1px solid #dbe5ef;white-space:nowrap}
.opening-preview-table td{padding:8px 10px;border-bottom:1px solid #edf1f5;color:#51667b;white-space:nowrap;max-width:220px;overflow:hidden;text-overflow:ellipsis}
.opening-next{text-align:center;padding-top:34px}
.opening-next-check{width:58px;height:58px;margin:0 auto 14px;border-radius:50%;background:#eaf8ef;color:#19713b;display:grid;place-items:center;font-size:24px;font-weight:900}
.opening-next h2{margin:0;color:#294761;font-size:20px}
.opening-next>p{margin:8px auto 28px;max-width:620px;color:#71859a;font-size:12px;line-height:1.6}

@media(max-width:900px){
  .opening-summary{grid-template-columns:repeat(2,1fr)}
  .opening-summary>div:nth-child(2){border-right:0}
  .opening-choice-grid{grid-template-columns:1fr}
  .opening-map-grid{grid-template-columns:repeat(2,1fr)}
}
@media(max-width:620px){
  .opening-fields,.opening-import-controls,.opening-map-grid{grid-template-columns:1fr}
  .opening-size-row{grid-template-columns:repeat(2,1fr)}
  .opening-footer,.opening-footer-right{align-items:stretch;flex-direction:column;width:100%}
  .opening-footer-right{margin-left:0}
}
