*{box-sizing:border-box}body{margin:0;background:#f1f5fa;color:#22354b;font:15px system-ui,sans-serif}main{max-width:1500px;margin:auto;padding:22px}header{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-bottom:16px}h1{font-size:26px;letter-spacing:-.5px;margin:0}header p{color:#60748a;margin:5px 0}button,input,textarea,select{font:inherit}button,.file-button{cursor:pointer;border:1px solid #c7d5e3;border-radius:8px;padding:9px 12px;background:white;color:#294763}button:hover,.file-button:hover{background:#edf4fc}button.primary{background:#1764b4;border-color:#1764b4;color:white;font-weight:650;padding:12px 18px}button:disabled{opacity:.5;cursor:default}button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,summary:focus-visible{outline:3px solid #5e9fdb;outline-offset:2px}.reference{font-size:13px;line-height:1.5;background:#e5effb;border:1px solid #cddff3;border-radius:9px;padding:11px 14px;margin-bottom:16px}.reference a{float:right;color:#1764b4}.workspace{display:grid;grid-template-columns:minmax(340px,480px) minmax(0,1fr);gap:20px;align-items:start}.panel{background:white;border:1px solid #d8e2ec;border-radius:12px;padding:17px;margin-bottom:14px}.panel h2,.preview-heading h2{font-size:16px;margin:0 0 15px}.panel h2>span{display:inline-grid;place-items:center;background:#e7f0fc;color:#1764b4;width:25px;height:25px;border-radius:7px;margin-right:8px;font-size:12px}label{display:flex;flex-direction:column;gap:5px;font-size:12px;margin-bottom:11px;color:#4b6178}input:not([type=checkbox]),select,textarea{width:100%;min-width:0;padding:8px 9px;border:1px solid #bfcfdf;border-radius:7px;background:white;color:#23374e}textarea{resize:vertical;line-height:1.45}.pair,.three{display:grid;gap:10px;grid-template-columns:1fr 1fr}.three{grid-template-columns:repeat(3,minmax(0,1fr))}summary{font-size:13px;font-weight:600;cursor:pointer;margin:4px 0 12px}.hint{font-size:12px;color:#6d8093;line-height:1.55;margin:7px 0}.check{flex-direction:row;align-items:center;gap:8px}.pictogram-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:7px;margin-bottom:12px}.pictogram-grid label{position:relative;border:1px solid #d8e2ec;border-radius:8px;text-align:center;align-items:center;gap:4px;padding:7px;margin:0;background:#f8fafc;cursor:pointer}.pictogram-grid label:has(input:checked){background:#e7f1fc;border-color:#1764b4}.pictogram-grid input{position:absolute;top:5px;left:5px;accent-color:#1764b4}.pictogram-grid img{width:45px;height:45px;object-fit:contain}.pictogram-grid span{font-size:11px;color:#3e546b}.buttons{display:flex;gap:7px;flex-wrap:wrap;margin-top:9px}.buttons button,.file-button{font-size:12px;margin:0;display:inline-flex;align-items:center}.preview-column{position:sticky;top:15px}.preview-panel{background:white;border:1px solid #d8e2ec;border-radius:12px;padding:17px;margin-bottom:14px}.preview-heading{display:flex;justify-content:space-between;gap:10px}.preview-heading span{font-size:12px;color:#6d8093}.preview-surface{overflow:auto;padding:24px 14px;background:#e8eef5;border:1px solid #d7e1ec;border-radius:8px;display:flex;justify-content:center;min-height:320px;align-items:center}#preview{flex-shrink:0;box-shadow:0 8px 24px #21384f1a;background:white}.chem-label{border:0.25mm solid #111;background:white;color:#000;padding:2.5mm;font-family:Arial,Helvetica,sans-serif;line-height:1.22;overflow:visible;display:flex;flex-direction:column;overflow-wrap:anywhere}.label-title{font-size:1.5em;line-height:1.1;font-weight:700;margin-bottom:1mm}.label-subtitle{font-size:1.05em;line-height:1.3;margin-bottom:1mm}.label-identifiers{font-size:.86em;line-height:1.3;margin-bottom:1mm}.label-body{display:flex;gap:2mm;align-items:flex-start;flex:1;min-height:0}.label-symbols{display:flex;flex-direction:column;gap:.5mm;flex-shrink:0;align-items:center}.label-symbols img{object-fit:contain;display:block}.label-text{flex:1;min-width:0}.signal-word{font-weight:700;font-size:1.3em;line-height:1.2;margin:0 0 1mm}.label-text p{margin:0 0 1mm;white-space:pre-wrap}.label-footer{border-top:.2mm solid #888;padding-top:1mm;margin-top:1mm;font-size:.85em;line-height:1.25;white-space:pre-wrap}.label-trace{font-size:.8em;margin-top:.7mm;line-height:1.2}.label-empty{color:#71849a;text-align:center;margin:auto;font:14px system-ui}.label-symbols.multi{display:grid;grid-template-columns:1fr 1fr;gap:.5mm}.statement-results{max-height:160px;overflow:auto;display:flex;flex-direction:column;gap:4px;margin-bottom:12px}.statement-results button{text-align:left;font-size:12px;line-height:1.4;padding:8px;background:#f4f7fb}.statement-results button b{color:#1764b4;margin-right:5px}.statement-results:empty{display:none}#checks{margin-top:12px;font-size:12px;line-height:1.5}#checks .error{color:#a42c24;background:#fff0ee;border:1px solid #f4cfc8;padding:9px 11px;border-radius:7px;margin-bottom:6px}#checks .warning{color:#87551a;background:#fff7e6;padding:8px 11px;border-radius:7px;margin-bottom:6px}#checks .ok{color:#34644b}#notice{font-size:13px;color:#1764b4;margin:10px 0}.print-help{margin-top:13px}#printRoot{display:none}@media(max-width:1000px){.workspace{grid-template-columns:minmax(300px,420px) minmax(0,1fr);gap:12px}.preview-column{position:static}.preview-surface{justify-content:flex-start;padding:15px 8px}.three{grid-template-columns:repeat(3,1fr)}}@media(max-width:800px){main{padding:12px}.workspace{grid-template-columns:1fr}.preview-column{order:-1}.preview-surface{justify-content:center}.settings details{margin-top:7px}.reference a{float:none;display:block}header h1{font-size:22px}header button{font-size:12px;padding:10px!important}.pictogram-grid{grid-template-columns:repeat(3,1fr)}}@media print{html,body{margin:0!important;padding:0!important;background:white!important}main{display:none!important}#printRoot{display:block!important}.print-page{page-break-after:always;break-after:page;display:grid;align-content:start;justify-content:start;overflow:visible}.print-page:last-child{page-break-after:auto;break-after:auto}.chem-label{box-shadow:none!important;print-color-adjust:exact;-webkit-print-color-adjust:exact}.blank{visibility:hidden}}
.preview-surface{justify-content:safe center}

.chem-label.compact{padding:1mm}.compact .label-title{font-size:1.15em;margin-bottom:.5mm}.compact .label-subtitle,.compact .label-identifiers{margin-bottom:.5mm}.compact .label-body{gap:1mm}#bankInfo a{color:#1764b4}#bankInfo{margin-bottom:12px}

.chem-label.fitted{padding:1mm;line-height:1.15}.fitted .label-title{font-size:1.1em;margin-bottom:.4mm}.fitted .label-subtitle{font-size:1em;margin-bottom:.4mm}.fitted .label-identifiers{font-size:.9em;margin-bottom:.4mm}.fitted .label-body{display:block}.fitted .label-symbols{float:left;margin:0 1mm .5mm 0;max-width:100%}.fitted .label-symbols.multi{grid-template-columns:repeat(2,1fr)}.fitted .label-text p{margin-bottom:.5mm}.fitted .signal-word{font-size:1.1em;margin-bottom:.5mm}.fitted .label-footer{clear:both}.fitted .label-body:after{content:"";display:block;clear:both}

.label-content{display:flex;flex-direction:column;flex:1;min-height:0}.chem-label.fitted{overflow:hidden}.fitted .label-content{display:block;flex:none;min-height:0;overflow-wrap:anywhere}.fitted .label-body{display:flow-root;min-height:0}.fitted .label-text{display:block}.fitted .label-symbols{margin:0 .8mm .4mm 0}.fitted .label-content p{line-height:1.12}.fitted .signal-word{overflow-wrap:normal}.fitted .label-footer,.fitted .label-trace{clear:both}

#personalization>summary{font-size:16px}.visible-fields{display:grid;grid-template-columns:1fr 1fr;gap:5px}.visible-fields label{flex-direction:row;align-items:center}.label-logo{display:block;object-fit:contain;margin:0 auto .7mm;flex-shrink:0}.chem-label .label-title{color:var(--title-color)}.chem-label.design-band .label-title{background:var(--title-color);color:var(--band-ink);padding:.7mm}.chem-label.design-compact{padding:1mm;line-height:1.1}.design-compact .label-title{font-size:1.1em}.chem-label.pics-right .label-body{flex-direction:row-reverse}.fitted.pics-right .label-symbols{float:right;margin:0 0 .4mm .8mm}.chem-label.pics-top .label-body{display:block}.chem-label.pics-top .label-symbols{float:none;display:flex;flex-direction:row;flex-wrap:wrap;justify-content:inherit;margin:0 0 .7mm}.chem-label.pics-top .label-text{clear:both}.label-symbols img{background:white}.label-logo{max-width:100%}

#sheetPreviewViewport{overflow:hidden;background:#e8eef5;padding:12px;border-radius:8px}#sheetPreviewHolder{position:relative;margin:auto}#sheetPreview{position:absolute;top:0;left:0;transform-origin:top left}.sheet-paper{width:210mm;height:297mm;background:white;box-shadow:0 2px 8px #22354b33}.sheet-paper .print-page{display:grid;align-content:start}.sheet-paper .blank{visibility:visible;border:1px dashed #becbd7;background:#f1f4f8}.sheet-item{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:8px 0;border-bottom:1px solid #e2e9f0;font-size:13px}.sheet-item button{font-size:12px;padding:4px 8px}#concentrationReview{background:#fff3d6;padding:12px;border-radius:8px;margin-bottom:14px}#concentrationReview[hidden]{display:none}

.sheet-cell{cursor:pointer;outline:0;position:relative}.sheet-cell:focus-visible,.sheet-cell:hover{outline:2px solid #1764b4;outline-offset:-2px}.sheet-cell.start-cell{outline:2px solid #1764b4;outline-offset:-2px}.sheet-item{align-items:flex-start;flex-wrap:wrap}.sheet-item-actions{display:flex;align-items:center;gap:6px;flex-wrap:wrap}.sheet-item-actions label{margin:0;width:65px}.sheet-item-actions input{padding:4px}#sheetEditControls{background:#e5effb;padding:10px;margin-top:10px;border-radius:8px}#sheetEditControls[hidden]{display:none}
