.stock-doc-entry{display:flex;align-items:center;gap:14px;flex-wrap:wrap;margin-bottom:16px;padding:14px 18px;background:#fff;border:1px solid #dfe6ee;border-radius:10px}.stock-doc-entry p{margin:0;color:#64748b;font-size:13px}
.stock-doc-dialog{box-sizing:border-box;width:min(1510px,96vw);max-width:96vw;max-height:94vh;margin:auto;padding:0;border:0;border-radius:14px;color:#243247;box-shadow:0 24px 80px #0f172a55;overflow:auto;background:#fff}.stock-doc-dialog::backdrop{background:#0f172a88}
.stock-doc-dialog>header{position:sticky;top:0;z-index:2;display:flex;justify-content:space-between;align-items:center;padding:18px 24px;background:#fff;border-bottom:1px solid #e2e8f0}.stock-doc-dialog h2{font-size:20px;margin:0 0 5px}.stock-doc-dialog header p{margin:0;color:#64748b;font-size:13px}.stock-doc-dialog fieldset{border:0;padding:20px 24px;margin:0;min-width:0}.stock-doc-dialog label{display:flex;flex-direction:column;gap:5px;font-size:13px;font-weight:500}.stock-doc-dialog input,.stock-doc-dialog select{box-sizing:border-box;max-width:100%;padding:8px 10px;border:1px solid #cbd5e1;border-radius:6px;background:#fff;color:#1e293b;font:inherit}.stock-doc-dialog input:focus,.stock-doc-dialog select:focus{outline:2px solid #93c5fd;outline-offset:1px}.stock-doc-dialog input[type=checkbox]{width:17px;height:17px;flex-shrink:0;padding:0;accent-color:#2563eb}
.stock-doc-upload{display:flex;gap:14px;align-items:end;flex-wrap:wrap}.stock-doc-upload small{display:block;color:#64748b;flex-basis:100%}.stock-doc-preview-title{display:flex;gap:16px;justify-content:space-between;margin:22px 0 12px}.stock-doc-preview-title strong{margin-right:auto;align-self:center}.stock-doc-preview-title span{font-size:13px;white-space:nowrap;color:#475569}.stock-doc-notice{padding:12px 14px;border:1px solid #bfdbfe;border-radius:8px;background:#eff6ff;font-size:13px;line-height:1.7}.stock-doc-warning{font-size:13px;color:#a16207;white-space:pre-wrap}.stock-doc-dialog details{margin:15px 0;padding:10px 12px;border:1px solid #e2e8f0;border-radius:8px;font-size:13px}.stock-doc-dialog summary{cursor:pointer;font-weight:600}.stock-doc-dialog details p{color:#64748b;font-size:12px}.stock-doc-tools{display:flex;align-items:end;gap:10px;flex-wrap:wrap;margin:14px 0}.stock-doc-tools label{max-width:190px;flex:1 1 120px}.stock-doc-tools .stock-doc-note{max-width:none;flex:3 1 300px}.stock-doc-mapping{display:grid;grid-template-columns:repeat(auto-fit,minmax(120px,1fr));gap:10px}
.stock-doc-table-wrap{max-height:43vh;overflow:auto;border:1px solid #dbe3ee;border-radius:8px}.stock-doc-table{width:100%;min-width:1510px;border-collapse:separate;border-spacing:0;font-size:13px}.stock-doc-table th{position:sticky;top:0;background:#f1f5f9;padding:10px;text-align:left;z-index:1;white-space:nowrap}.stock-doc-table td{padding:7px 5px;border-top:1px solid #e2e8f0;vertical-align:top}.stock-doc-table tr:nth-child(even){background:#f8fafc}.stock-doc-table td input{width:115px;padding:7px}.stock-doc-table td:nth-child(4) input{width:190px}.stock-doc-table td:nth-child(5) input{width:90px}.stock-doc-table td:nth-child(6) input{width:65px}.stock-doc-table td:first-child input{width:17px;margin:8px}.stock-doc-table .stock-doc-source{min-width:120px;color:#64748b;padding-top:12px}.stock-doc-table .stock-doc-hint{min-width:180px;max-width:250px;font-size:12px;line-height:1.6;color:#9a6700;padding-top:10px}.stock-doc-duplicate{opacity:.55}.stock-doc-confirm{flex-direction:row!important;align-items:start;line-height:1.7;margin:16px 0}.stock-doc-confirm input{margin-top:3px}.stock-doc-dialog>footer{position:sticky;bottom:0;background:#fff;padding:10px 24px;border-top:1px solid #e2e8f0;font-size:13px}.stock-doc-dialog>footer:has(span:empty):has(p:empty){display:none}.stock-doc-dialog #stockDoc-error{color:#b91c1c;margin:5px 0;white-space:pre-wrap}.stock-doc-history ul{list-style:none;margin:10px 0 0;padding:0}.stock-doc-history li{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 0;border-bottom:1px solid #e2e8f0}.stock-doc-result{padding:15px;background:#f0fdf4;border:1px solid #bbf7d0;color:#166534;margin:18px 0;border-radius:8px;font-size:14px}.stock-doc-dialog [hidden]{display:none!important}
@media(max-width:700px){.stock-doc-dialog{width:98vw;max-width:98vw;max-height:96vh;border-radius:8px}.stock-doc-dialog>header,.stock-doc-dialog fieldset,.stock-doc-dialog>footer{padding:14px}.stock-doc-preview-title{flex-direction:column;gap:6px}.stock-doc-history li{align-items:start;flex-direction:column}.stock-doc-tools label{max-width:none}.stock-doc-dialog h2{font-size:18px}}
