/* Omicron Dispatch Label Studio Pro CSS v7.1.0 */
.odl-app{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif;max-width:1480px;margin:16px auto;color:#172033;line-height:1.35}
.odl-studio-layout{display:grid;grid-template-columns:minmax(390px,450px) minmax(0,1fr);gap:20px;align-items:start}
.odl-toolbar{background:#fff;border:1px solid #d7dee8;border-radius:14px;padding:16px;box-shadow:0 8px 28px rgba(15,23,42,.08);position:sticky;top:18px;max-height:92vh;overflow:auto}
.odl-mobile-top-bar{display:none;position:sticky;top:0;z-index:9999;background:#111827;padding:10px;gap:8px;border-radius:9px;margin-bottom:12px}
.odl-tabs-nav{display:flex;gap:4px;border-bottom:2px solid #e5e7eb;margin:12px 0 14px;overflow:auto}
.odl-tab-btn{padding:9px 10px;background:none;border:0;border-bottom:3px solid transparent;font-weight:800;font-size:12px;color:#64748b;cursor:pointer;white-space:nowrap}.odl-tab-btn.active{color:#e96822;border-bottom-color:#e96822}.odl-tab-content{display:none}.odl-tab-content.active{display:block}
.odl-field{margin-bottom:11px}.odl-field label{display:block;font-weight:700;margin-bottom:4px;font-size:12px;color:#334155}.odl-field input,.odl-field textarea,.odl-field select{width:100%;box-sizing:border-box;border:1px solid #cbd5e1;border-radius:7px;padding:8px 10px;font-size:13px;background:#fff}.odl-field input:focus,.odl-field textarea:focus,.odl-field select:focus{outline:2px solid rgba(233,104,34,.18);border-color:#e96822}
.odl-grid-2{display:grid;grid-template-columns:1fr 1fr;gap:9px}.odl-grid-3{display:grid;grid-template-columns:1fr 1fr 1fr;gap:8px}.odl-preset-row{display:grid;grid-template-columns:minmax(160px,1fr) auto auto;gap:6px;align-items:end;margin-bottom:10px;background:#f8fafc;padding:9px;border:1px solid #e2e8f0;border-radius:8px}.odl-preset-row .odl-field{margin:0}
.odl-actions{display:flex;gap:7px;flex-wrap:wrap}.odl-btn{border:0;border-radius:7px;padding:9px 13px;cursor:pointer;font-weight:800;font-size:12px;background:#1f2937;color:#fff;white-space:nowrap}.odl-btn:hover{filter:brightness(.94)}.odl-btn.odl-primary{background:#e96822}.odl-btn.odl-danger{background:#dc2626}.odl-btn.odl-muted{background:#64748b}.odl-status{margin-top:10px;min-height:18px;font-size:12px;font-weight:700;color:#2563eb;text-align:center}
.odl-pages{display:flex;justify-content:center;overflow:auto;padding:20px;background:#eef2f7;border:1px solid #d6dde8;border-radius:14px;min-height:70vh}.odl-label{position:relative;box-sizing:border-box;background:#fff;color:#0a0a0a;padding:5mm;box-shadow:0 6px 25px rgba(0,0,0,.18);overflow:hidden;transform-origin:top center;font-family:Arial,sans-serif}
.odl-label.a4.portrait{width:210mm;height:297mm}.odl-label.a4.landscape{width:297mm;height:210mm}.odl-label.a4_half.portrait{width:210mm;height:148mm}.odl-label.a4_half.landscape{width:148mm;height:210mm}.odl-label.a4_quad.portrait{width:105mm;height:148mm}.odl-label.a4_quad.landscape{width:148mm;height:105mm}.odl-label.a5.portrait{width:148mm;height:210mm}.odl-label.a5.landscape{width:210mm;height:148mm}.odl-label.thermal.portrait{width:100mm;height:150mm}.odl-label.thermal.landscape{width:150mm;height:100mm}
.odl-target-box{cursor:pointer;position:relative}.odl-target-box:hover{outline:2px dashed #2563eb!important;background:rgba(37,99,235,.035)}.odl-target-box.active-selected{outline:3px solid #2563eb!important;background:rgba(37,99,235,.06)!important}
.odl-page-border{border:2.2px solid #111;height:100%;width:100%;box-sizing:border-box;padding:5.5mm;display:flex;flex-direction:column;gap:0;overflow:hidden}.odl-header-box{display:flex;align-items:center;justify-content:center;min-height:12mm;margin-bottom:3mm;flex:0 0 auto}.odl-machine-title{font-weight:900;font-size:19pt;text-decoration:underline;text-align:center;line-height:1.1;overflow-wrap:anywhere}
/* TO first, FROM below: no artificial flexible blank area */
.odl-address-grid{display:flex;flex-direction:column;gap:3.5mm;flex:0 0 auto;min-height:0;margin-bottom:2.5mm}.odl-block{margin:0;min-width:0}.odl-from{padding-top:3mm;border-top:1px solid #b8b8b8}.odl-tag{font-size:16pt;font-weight:900;line-height:1;margin-bottom:1.5mm}
#odl_to_name_el{font-size:17pt;font-weight:900;text-transform:uppercase;line-height:1.12;overflow-wrap:anywhere}#odl_to_address_el{font-size:11.5pt;font-weight:650;white-space:pre-line;line-height:1.18;overflow-wrap:anywhere;margin-top:1.2mm}#odl_to_location_el{font-size:11.5pt;font-weight:850;line-height:1.15;margin-top:1.2mm;text-transform:uppercase}#odl_to_mobile_wrap{font-size:14pt;font-weight:900;line-height:1.1;margin-top:1.8mm}
#odl_from_company{font-size:13.5pt;font-weight:900;line-height:1.1}#odl_from_address{font-size:10.5pt;line-height:1.15;white-space:pre-line;margin-top:1mm;overflow-wrap:anywhere}#odl_from_mobile_box{font-size:11.5pt;font-weight:850;line-height:1.1;margin-top:1.4mm}
.odl-product-box{border:1.4px solid #111;padding:2.5mm 3mm;display:grid;grid-template-columns:max-content 1fr;align-items:center;gap:3mm;min-height:11mm;flex:0 0 auto}.odl-product-label{font-size:9.5pt;font-weight:900}.odl-product-box strong{font-size:11pt;line-height:1.15;overflow-wrap:anywhere}
.odl-safety-title{text-align:center;font-weight:900;font-size:10.5pt;border-top:1.3px solid #111;border-bottom:1.3px solid #111;padding:1.5mm 1mm;margin-top:auto;margin-bottom:2mm;flex:0 0 auto}.odl-symbols{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:2mm;flex:0 0 auto}.odl-symbol{border:1.2px solid #111;min-height:27mm;padding:1.5mm 1mm;text-align:center;display:flex;flex-direction:column;align-items:center;justify-content:center;box-sizing:border-box;overflow:hidden}.odl-symbol svg{width:11mm;height:11mm;fill:#111;stroke:#111;stroke-width:2}.odl-symbol b{font-size:8pt;line-height:1.05;margin-top:.7mm}.odl-symbol span{font-size:7pt;line-height:1.05}
.odl-warning{text-align:center;margin-top:2.5mm;border:1.4px solid #111;padding:1.7mm 2mm;font-size:9pt;line-height:1.15;flex:0 0 auto}.odl-warning strong{font-size:10pt}.odl-fe-card{background:#f8fafc;border:1px solid #cbd5e1;border-radius:8px;padding:11px;margin-bottom:9px}.odl-fe-card-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:8px;border-bottom:1px solid #e2e8f0;padding-bottom:5px}
/* Landscape gets a compact two-column address arrangement while preserving TO before FROM in reading order */
.odl-label.landscape .odl-address-grid{display:grid;grid-template-columns:1.2fr .8fr;gap:7mm;margin-bottom:2mm}.odl-label.landscape .odl-from{padding-top:0;padding-left:5mm;border-top:0;border-left:1px solid #b8b8b8}.odl-label.landscape .odl-header-box{margin-bottom:2mm}.odl-label.landscape .odl-symbol{min-height:22mm}.odl-label.landscape .odl-symbol svg{width:9mm;height:9mm}
/* Compact formats */
.odl-label.a5 .odl-page-border,.odl-label.a4_half .odl-page-border{padding:4mm}.odl-label.a5 .odl-machine-title,.odl-label.a4_half .odl-machine-title{font-size:15pt}.odl-label.a5 #odl_to_name_el,.odl-label.a4_half #odl_to_name_el{font-size:13pt}.odl-label.a5 #odl_to_address_el,.odl-label.a4_half #odl_to_address_el{font-size:9.5pt}.odl-label.a5 #odl_to_location_el,.odl-label.a4_half #odl_to_location_el{font-size:9.5pt}.odl-label.a5 #odl_to_mobile_wrap,.odl-label.a4_half #odl_to_mobile_wrap{font-size:11pt}.odl-label.a5 #odl_from_company,.odl-label.a4_half #odl_from_company{font-size:11pt}.odl-label.a5 #odl_from_address,.odl-label.a4_half #odl_from_address{font-size:8.5pt}.odl-label.a5 .odl-symbol,.odl-label.a4_half .odl-symbol{min-height:20mm}.odl-label.a5 .odl-symbol svg,.odl-label.a4_half .odl-symbol svg{width:8mm;height:8mm}.odl-label.a5 .odl-symbol b,.odl-label.a4_half .odl-symbol b{font-size:6.5pt}.odl-label.a5 .odl-symbol span,.odl-label.a4_half .odl-symbol span{font-size:5.7pt}
.odl-label.a4_quad .odl-page-border,.odl-label.thermal .odl-page-border{padding:3mm}.odl-label.a4_quad .odl-machine-title,.odl-label.thermal .odl-machine-title{font-size:11pt}.odl-label.a4_quad .odl-address-grid,.odl-label.thermal .odl-address-grid{gap:2mm}.odl-label.a4_quad .odl-tag,.odl-label.thermal .odl-tag{font-size:10pt}.odl-label.a4_quad #odl_to_name_el,.odl-label.thermal #odl_to_name_el{font-size:9pt}.odl-label.a4_quad #odl_to_address_el,.odl-label.thermal #odl_to_address_el,.odl-label.a4_quad #odl_to_location_el,.odl-label.thermal #odl_to_location_el{font-size:6.5pt}.odl-label.a4_quad #odl_to_mobile_wrap,.odl-label.thermal #odl_to_mobile_wrap{font-size:8pt}.odl-label.a4_quad #odl_from_company,.odl-label.thermal #odl_from_company{font-size:8pt}.odl-label.a4_quad #odl_from_address,.odl-label.thermal #odl_from_address{font-size:6pt}.odl-label.a4_quad #odl_from_mobile_box,.odl-label.thermal #odl_from_mobile_box{font-size:7pt}.odl-label.a4_quad .odl-product-box,.odl-label.thermal .odl-product-box{padding:1.2mm;gap:1mm}.odl-label.a4_quad .odl-product-label,.odl-label.thermal .odl-product-label{font-size:5.7pt}.odl-label.a4_quad .odl-product-box strong,.odl-label.thermal .odl-product-box strong{font-size:6.5pt}.odl-label.a4_quad .odl-safety-title,.odl-label.thermal .odl-safety-title{font-size:6.5pt;padding:.7mm}.odl-label.a4_quad .odl-symbols,.odl-label.thermal .odl-symbols{gap:.7mm}.odl-label.a4_quad .odl-symbol,.odl-label.thermal .odl-symbol{min-height:14mm;padding:.5mm}.odl-label.a4_quad .odl-symbol svg,.odl-label.thermal .odl-symbol svg{width:5mm;height:5mm}.odl-label.a4_quad .odl-symbol b,.odl-label.thermal .odl-symbol b{font-size:4.2pt}.odl-label.a4_quad .odl-symbol span,.odl-label.thermal .odl-symbol span{display:none}.odl-label.a4_quad .odl-warning,.odl-label.thermal .odl-warning{font-size:5.2pt;padding:.8mm}.odl-label.a4_quad .odl-warning strong,.odl-label.thermal .odl-warning strong{font-size:5.8pt}
@media(max-width:1100px){.odl-studio-layout{grid-template-columns:1fr}.odl-toolbar{position:static;max-height:none}.odl-mobile-top-bar{display:flex}.odl-mobile-top-bar .odl-btn{flex:1}.odl-pages{padding:10px}.odl-label{zoom:.76}}
@media(max-width:600px){.odl-grid-2,.odl-grid-3{grid-template-columns:1fr}.odl-preset-row{grid-template-columns:1fr auto auto}.odl-label{zoom:.48}.odl-pages{justify-content:flex-start}}
@media print{html,body{margin:0!important;padding:0!important;background:#fff!important}body *{visibility:hidden!important}.odl-pages,.odl-pages *{visibility:visible!important}.odl-pages{position:absolute!important;left:0!important;top:0!important;width:auto!important;height:auto!important;padding:0!important;margin:0!important;border:0!important;background:#fff!important;overflow:visible!important}.odl-label{zoom:1!important;transform:none!important;box-shadow:none!important;margin:0!important;page-break-after:always!important}.no-print{display:none!important}.odl-target-box:hover,.odl-target-box.active-selected{outline:0!important;background:transparent!important}}
