.label-app{min-width:0}.label-work-head,.label-preview-head,.label-table-head,.label-pagination,.label-actionbar,.label-pdf-head,.label-sample-head{display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap}.label-work-head{margin-bottom:16px}.label-work-head>p{margin:0}.label-controls{border:0;padding:0;margin:0;min-width:0}.label-controls:disabled{opacity:.8}.label-upload{position:relative;overflow:hidden;cursor:pointer}.label-upload input{position:absolute;inset:0;opacity:0;cursor:pointer;width:100%;height:100%}.label-source-bar{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}.label-source-bar>div:first-child{display:flex;align-items:baseline;gap:12px;flex-wrap:wrap;min-width:0}.label-source-bar strong{font-size:14px;color:#244267;overflow-wrap:anywhere}.label-source-bar .tools-actions,.label-upload-start .tools-actions,.label-actionbar .tools-actions,.label-table-head .tools-actions,.label-pdf-head .tools-actions{margin:0;gap:8px}.label-upload-start>div>p{margin:0 0 14px;font-size:16px;color:#244267}.label-upload-start>p{margin-bottom:0}.label-source-warning{flex-basis:100%;font-size:12px;color:#805b2b}.label-source-warning summary{cursor:pointer}.label-source-warning p{line-height:1.8}.label-basic-grid{display:flex;align-items:flex-end;flex-wrap:wrap;gap:14px}.label-basic-grid>.tools-field{flex:1 1 135px;min-width:0}.label-basic-grid>.tools-field:first-child{flex:2 1 200px}.label-basic-grid>.tools-field:nth-child(4){flex:0 1 86px}.label-basic-grid>#labelCommonCopies{flex:0 1 112px;min-width:0}.label-actionbar{margin:20px 0 8px;padding:18px 0;border-top:1px solid #e6ebf4;border-bottom:1px solid #e6ebf4}.label-actionbar>div:first-child{display:flex;flex-direction:column;gap:6px}.label-actionbar strong{font-size:14px;color:#244267}.label-usage-note{margin:8px 0 18px;font-size:12px}.label-table-head{margin-top:18px}.label-table-head h3,.label-sample-head h3{font-size:15px;color:#244267;margin:0}.label-table-head h3>span{font-size:12px;font-weight:400;color:#73839b;margin-left:5px}.label-table-scroll{overflow:auto;margin-top:12px;max-height:430px}.label-table{width:100%;border-collapse:collapse;font-size:13px}.label-table th,.label-table td{padding:11px 10px;border-bottom:1px solid #e3e9f1;text-align:left;vertical-align:middle;white-space:pre-wrap;overflow-wrap:anywhere;max-width:300px;min-width:75px}.label-table th{background:#f4f7fc;color:#516b90;position:sticky;top:0;z-index:1;white-space:nowrap;font-size:12px}.label-table td>input[type=number]{box-sizing:border-box;width:80px;padding:7px 8px;border:1px solid #d6dfec;border-radius:6px;font:inherit}.label-table td>input[type=checkbox]{accent-color:#3159e8;width:18px;height:18px}.label-table th:first-child,.label-table td:first-child{min-width:32px}.label-pagination{justify-content:center;margin-top:16px;font-size:12px;color:#71819a}.label-more{border-top:1px solid #e6ebf4;margin:18px 0 0;padding-top:14px}.label-more>summary{font-size:13px;color:#405c86;cursor:pointer;min-height:26px}.label-additional>summary{font-weight:600}.label-additional>summary>span{font-size:12px;font-weight:400;color:#73839b;margin-left:8px}.label-settings-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px 32px;margin:14px 0 0}.label-settings-grid>section{min-width:0}.label-settings-grid h3{font-size:14px;color:#244267;margin:0 0 14px}.label-settings-grid .tools-muted{font-size:12px;line-height:1.8}.label-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px;margin:14px 0;align-items:end}.label-column-choices{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;max-height:260px;overflow:auto;margin:12px 0}.label-column-choices label,.label-checks label{display:flex;align-items:center;gap:7px;line-height:1.7;font-size:12px;overflow-wrap:anywhere;color:#415b7e;min-width:0}.label-column-choices input,.label-checks input{flex-shrink:0;accent-color:#3159e8;min-width:16px;min-height:16px}.label-field-order{display:grid;gap:5px;margin:12px 0}.label-field-order>div{display:flex;align-items:center;gap:6px;padding:5px 0;border-bottom:1px solid #edf0f5}.label-field-order>div>span{flex:1;min-width:0;overflow-wrap:anywhere;font-size:12px}.label-checks{display:flex;gap:16px;flex-wrap:wrap;margin-top:16px}.label-sample-head{margin-bottom:16px}.label-samples{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(220px,100%),1fr));gap:14px}.label-sample{position:relative;container-type:inline-size;background:#fff;border:1px solid #d8e1ee;border-radius:6px;overflow:hidden;min-width:0}.label-preview-head{font-size:12px;color:#627793;margin:14px 0 12px}.label-preview-head .tools-actions{margin:0;gap:7px}.label-paper{position:relative;aspect-ratio:210/297;width:100%;max-width:480px;margin:0 auto;background:white;border:1px solid #cbd4e3;box-sizing:content-box;container-type:inline-size;overflow:hidden}.label-cell{position:absolute;box-sizing:border-box;border:.5px dashed #b9c9e2;display:flex;flex-direction:column;line-height:1.5;overflow:hidden;font-size:2cqw;color:#152c4b;overflow-wrap:anywhere;white-space:pre-wrap}.label-sample>.label-cell{border:0}.label-text{min-height:0}.label-barcode{flex-shrink:0;text-align:center;line-height:1;white-space:normal}.label-barcode svg{display:block;margin:0 auto;flex-shrink:0;background:#fff}.label-barcode-value{line-height:1.45;white-space:pre;color:#000;font-weight:400}.label-pdf-head{align-items:flex-start}.label-pdf-head h2{margin:0;font-size:17px}.label-pdf-head p{margin-bottom:0}.label-pdf-frame{width:100%;height:560px;border:1px solid #d5dfed;border-radius:8px;margin-top:16px}.label-print-note{font-size:12px;line-height:1.7;margin:12px 0}
@media(max-width:700px){.label-basic-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:end}.label-basic-grid>.tools-field:first-child{grid-column:1/-1}.label-settings-grid{grid-template-columns:1fr;gap:26px}.label-samples{grid-template-columns:repeat(2,minmax(0,1fr))}.label-pdf-frame{height:450px}.label-source-bar>div:first-child{gap:6px}.label-additional>summary>span{display:none}}
@media(max-width:480px){.label-basic-grid,.label-form-grid,.label-column-choices{grid-template-columns:1fr}.label-basic-grid>.tools-field:first-child{grid-column:auto}.label-samples{grid-template-columns:1fr}.label-actionbar>.tools-actions{width:100%}.label-actionbar>.tools-actions>.tools-btn{flex:1;justify-content:center}.label-table th,.label-table td{padding:10px 8px}.label-table td>input[type=number]{font-size:16px;min-height:42px}.label-field-order .tools-btn{min-height:38px;padding:6px 9px}.label-column-choices label,.label-checks label{font-size:13px;min-height:36px}.label-pdf-frame{height:390px}.label-source-bar .tools-actions{width:100%}}
/* Preview the actual A4 arrangement first, with one readable enlarged label. */
.label-layout-note{display:flex;justify-content:space-between;gap:8px 20px;flex-wrap:wrap;margin:12px 0 0;color:#64748b;font-size:12px;line-height:1.7}
.label-one-sheet-note{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-top:14px;padding:12px 14px;border:1px solid #e5d9b9;border-radius:8px;background:#fff9ec;color:#805b2b;font-size:12px}
.label-preview-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(210px,.7fr);gap:30px;align-items:start}
.label-preview-grid .label-paper{max-width:420px}
.label-preview-grid .label-preview-head{margin-top:0}
.label-enlargement{min-width:0;padding:18px;border:1px solid #e3e9f2;border-radius:10px;background:#f8faff}
.label-enlargement h4{margin:0;color:#244267;font-size:14px}
.label-enlargement>p{font-size:12px;line-height:1.7}
.label-enlargement .label-sample{width:100%;margin:20px auto;background:#fff}
.label-preview-caption{margin-bottom:0}
.label-slot{position:absolute;box-sizing:border-box;border:.5px dashed #d7e0ed;pointer-events:none}
.label-text{flex-shrink:0}
.label-cell-compact .label-text>div{white-space:nowrap}
.label-cell-bordered,.label-sample>.label-cell-bordered{border:.5px solid #333}
@media(max-width:700px){.label-preview-grid{grid-template-columns:1fr;gap:22px}.label-enlargement{max-width:440px;width:100%;margin:0 auto;box-sizing:border-box}.label-layout-note{display:grid;gap:4px}.label-one-sheet-note .tools-btn{width:100%;justify-content:center}}
