@import url('style.css');
.icon-library{position:absolute;width:0;height:0;overflow:hidden}.icon{width:23px;height:23px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;flex:none}.paste{display:flex;align-items:center;gap:5px}.paste .icon{width:15px;height:15px}
.batch-select{display:flex;justify-content:space-between;align-items:center;font-size:13px;margin:14px 2px 10px}.batch-select label{display:flex;align-items:center;gap:8px}.batch-select span{font-size:11px;color:#7a8980}input[type=checkbox]{width:21px;height:21px;accent-color:var(--green);cursor:pointer}
.batch-row{display:flex;align-items:center;gap:9px;border:1px solid var(--border);border-radius:10px;padding:0 11px;background:#fff}.batch-row>input{flex:none}.item-open{display:flex;align-items:flex-start;gap:9px;padding:13px 0;border:0;flex:1;min-width:0;text-align:left;background:none;min-height:72px}.item-open .item-text{flex:1;min-width:0}.item-open strong{display:block;font-size:15px;line-height:1.4;overflow-wrap:anywhere}.item-open small{display:block;margin-top:6px;color:#7b8880;font-size:12px}.item-open .order-qty{white-space:nowrap;flex:none}.row-issue{display:block;font-size:11px;color:#b67516;line-height:1.5;margin-top:7px}.needs-attention{border-color:#e7c997;background:#fffcf7}.chevron{color:#92a097}.batch-action{margin-top:12px}.batch-action small{font-size:10px}
.detail-view{padding-top:4px}.item-context{margin:0 0 7px;font-size:11px}.detail-view .field-row{margin-bottom:9px;padding:9px 11px;min-height:42px}.detail-view .label-preview{padding:11px 12px;margin-bottom:13px}.preview-heading{font-size:13px}.preview-heading span{font-size:10px;color:#849187}.preview-note{font-size:10px;color:#a7782c;margin:5px 0 8px}
.simple-label{height:185px;border:1px solid #becdc4;border-radius:6px;background:#fff;padding:16px 17px;display:flex;flex-direction:column;color:#0c1611;overflow:auto}.simple-label>strong{font-size:24px;line-height:1.15;font-weight:800;overflow-wrap:anywhere}.template-cn{font-size:18px;font-weight:700;margin-top:5px}.template-en{font-size:13px;font-weight:500;margin-top:3px}.template-grade{font-size:15px;margin-top:5px}.template-bottom{display:flex;justify-content:space-between;align-items:flex-end;gap:12px;margin-top:auto;padding-top:14px}.template-bottom>b{font-size:23px;font-weight:500;white-space:nowrap}.template-bottom>div{display:grid;gap:5px;min-width:0;font-size:13px;font-weight:700}.template-bottom .inherited{font-weight:400;color:#87998d;font-size:12px}.detail-view .product-info h2{font-size:22px}.detail-view .product-info p{font-size:13px;margin:3px 0 8px}.detail-view .quantity-fields{padding:5px 0 12px;gap:14px}.quantity-fields label{font-size:12px;margin-bottom:6px}.quantity-fields strong{height:40px}.stepper input{height:40px}.stepper button{height:40px;min-height:40px}.stepper .unit-input{margin-left:6px;width:32px;padding:0;border:0;background:transparent;font-size:14px;text-align:left}
#detail-issues{font-size:12px;line-height:1.5;background:#fff4df;color:#a56a1d;padding:8px 10px;border-radius:7px;margin:0 0 10px}.detail-view #save-item{min-height:49px;font-size:16px}.manual-edit{margin-top:10px;border:1px solid var(--border);border-radius:10px;background:#fff}.manual-edit>summary{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:13px 12px;font-size:13px;cursor:pointer;list-style:none;min-height:46px}.manual-edit>summary::-webkit-details-marker{display:none}.manual-edit>summary::after{content:'⌄';color:#829189}.manual-edit[open]>summary::after{content:'⌃'}.manual-edit>summary>span:first-child{font-weight:600}.manual-edit>summary>span:nth-child(2){margin-left:auto;font-size:11px;color:#819086}.manual-body{padding:0 12px 12px}.manual-body .help{font-size:11px;margin:3px 0 12px}.correction-row{display:block;font-size:12px;color:#61766a;margin:10px 0}.correction-row input{display:block;margin-top:6px;width:100%;padding:10px 9px;border:1px solid var(--border);border-radius:6px;min-height:40px;background:#fff;color:#193b2b}.source-editor{margin:12px 0}.source-editor-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:6px}.source-editor-head label{font-size:12px}.field-toggle{font-size:11px;color:var(--green);min-height:29px;padding:4px 9px}.source-editor>input{width:100%;padding:10px;border:1px solid var(--border);border-radius:6px;font-size:13px;min-height:42px;background:#fff}.source-editor>input:disabled{color:#849389;background:#f7f9f8;opacity:1}.more-fields{border-top:1px solid var(--border);margin-top:12px;padding-top:9px}.more-fields>summary{font-size:13px;color:var(--green);padding:5px 0;cursor:pointer}.field-search{width:100%;min-height:40px;border:1px solid var(--border);padding:9px;border-radius:6px;margin:10px 0 3px;font-size:13px}.reset-fields{font-size:12px;margin:4px 0 0;min-height:36px;padding:6px 11px;color:#697d70}.detail-view .source{margin-top:10px;font-size:12px}.device-status p{font-size:13px}#record-list small{display:block;line-height:1.8}
.template-cn:empty,.template-en:empty,.template-grade:empty{display:none}.preview-value{display:flex;align-items:baseline;gap:10px}.preview-value small{font-size:10px;font-weight:400;color:#8a9a90}.detail-view #save-item{position:sticky;top:0;z-index:2;box-shadow:0 3px 12px #173e2912}main{scroll-padding-top:58px}.item-status{display:flex;flex-direction:column;align-items:flex-end;gap:5px;flex:none}.template-badge{font-size:10px;color:#b77719;background:#fff1d8;border-radius:5px;padding:4px 6px;line-height:1.2;white-space:nowrap}.item-open .item-text{align-self:center}.secondary{border-color:#b9cec2;color:var(--green);min-height:44px;font-size:14px}.library-card{border-top:1px solid var(--border);padding:12px 0 0;margin-top:12px;overflow-wrap:anywhere}.library-card strong{font-size:13px}.template-option{width:100%;text-align:left;padding:12px;margin:7px 0;display:flex;flex-direction:column;gap:6px}.template-option strong{font-size:14px;overflow-wrap:anywhere}.template-option small{font-size:11px;color:#7f8f84}
.simple-label{position:relative}.simple-label.waiting>*:not(#template-preview-empty){visibility:hidden}#template-preview-empty{position:absolute;inset:0;margin:0;display:flex;align-items:center;justify-content:center;padding:20px;color:#87958d;text-align:center;font-size:13px;line-height:1.8;background:#fafcfb}
@media(max-width:600px){header{height:53px;padding:9px 16px}.view{padding:6px 15px 15px}.simple-label{height:180px;padding:14px 16px}.simple-label>strong{font-size:23px}.detail-view .product-info h2{font-size:21px}.detail-view .label-preview{margin-bottom:10px}.item-open strong{font-size:14px}}
