.h1-overlay{position:fixed;inset:0;z-index:15000;background:#12375f66;display:flex;align-items:center;justify-content:center;padding:max(12px,env(safe-area-inset-top)) max(12px,env(safe-area-inset-right)) max(12px,env(safe-area-inset-bottom)) max(12px,env(safe-area-inset-left));box-sizing:border-box}
.h1-overlay .h1-dialog{box-sizing:border-box;width:var(--h1-width,360px);max-width:100%;max-height:calc(100dvh - 24px);overflow:auto;overscroll-behavior:contain;border:1px solid #b8d9f7;border-radius:9px;background:linear-gradient(130deg,#fff,#eff8ff);box-shadow:0 12px 40px #1839643d;padding:14px;color:#12325a;font:500 11px/1.45 Arial,sans-serif}
.h1-dialog header,.h1-dialog footer{display:flex;align-items:center;justify-content:space-between;gap:8px}.h1-dialog h2{margin:0;font-size:14px;color:#082b5d}.h1-dialog header>button{margin-left:auto}.h1-dialog p{margin:7px 0}.h1-dialog footer{justify-content:flex-end;position:sticky;bottom:-14px;background:#f3faff;padding:10px 0 4px;border-top:1px solid #d2e6fa}.h1-dialog button,.h1-bill-inline button{font:700 11px/1.3 Arial,sans-serif;min-height:32px;border:1px solid #bad9fa;border-radius:7px;padding:6px 10px;background:white;color:#0060c7;cursor:pointer}.h1-dialog .h1-primary{background:linear-gradient(130deg,#00b6ff,#0066ff);color:white;border-color:#0699ff}.h1-dialog .h1-warning{min-height:95px}.h1-dialog label{display:grid;gap:4px;font-size:11px;margin:5px 0}.h1-dialog input,.h1-dialog select{box-sizing:border-box;width:100%;min-width:0;height:33px;border:1px solid #bfd5ec;border-radius:6px;background:#fff;padding:5px 7px;font:400 12px/1.2 Arial,sans-serif;color:#14335e}.h1-dialog .h1-check{display:flex;align-items:center;gap:7px}.h1-dialog input[type=checkbox]{appearance:auto;width:18px;height:18px;flex:none;accent-color:#007aff}.h1-group{margin:9px 0;padding:8px;border:1px solid #c7e0f7;border-radius:8px;min-width:0}.h1-group legend{font-weight:700}.h1-patient-fields{display:grid;grid-template-columns:1fr 1fr;gap:2px 8px}.h1-medicines{display:grid;gap:3px;background:#e3f4ff;border-radius:6px;padding:7px}.h1-category-note,.h1-master-help{font-size:10px;color:#4e6983}.h1-error{color:#b8212f}.h1-doctors{max-height:180px;overflow:auto}.h1-doctors:empty{display:none}.h1-doctors>button{display:block;width:100%;text-align:left;border-radius:0;border-bottom:1px solid #dae9f4}.h1-doctors small{display:block;font-weight:400;color:#526e88}.h1-doctor-pages{display:flex;align-items:center;gap:4px;justify-content:space-between}.h1-doctor-pages button:disabled{opacity:.5;cursor:default}.h1-doctor-details{overflow-wrap:anywhere}.h1-assignments label{grid-template-columns:1fr 1fr;align-items:center}.h1-bill-inline{display:flex;gap:8px;align-items:center;flex-wrap:wrap;padding:6px 9px;border:1px solid #b7dbf7;border-radius:8px;background:#eef9ff;margin:6px 0;font-size:11px}.h1-bill-inline[hidden]{display:none!important}.h1-bill-inline>span{color:#886312}.h1-bill-inline>button{margin-left:auto}.h1-invoice-record{font-size:10px;line-height:1.4;border:1px solid #d3dfed;padding:6px;margin:5px 0;overflow-wrap:anywhere;break-inside:auto}.h1-invoice-record p{margin:4px 0;break-inside:avoid}.thermal-sales-receipt .h1-invoice-record{font-size:inherit;border:0;border-top:1px dashed;padding:4px 0}.custom-invoice .h1-invoice-record{font:inherit;border:.2mm solid black;margin:0;padding:1.5mm}
html[data-medaliza-ui-mode="mobile"] .h1-overlay .h1-prescription{width:520px}html[data-medaliza-ui-mode="mobile"] .h1-dialog{font-size:12px}html[data-medaliza-ui-mode="mobile"] .h1-dialog label{font-size:12px}html[data-medaliza-ui-mode="mobile"] .h1-dialog input,html[data-medaliza-ui-mode="mobile"] .h1-dialog select{font-size:16px;height:40px}html[data-medaliza-ui-mode="mobile"] .h1-dialog button{min-height:38px;font-size:12px}html[data-medaliza-ui-mode="mobile"] .h1-dialog input[type=checkbox]{width:20px;height:20px}.h1-warning{min-height:95px}
@media(max-width:479px){.h1-dialog input,.h1-dialog select{font-size:16px;height:38px}.h1-overlay .h1-dialog{max-height:calc(100dvh - 24px)}.h1-patient-fields{gap:2px 6px}.h1-dialog footer button{min-height:40px}.h1-bill-inline{font-size:11px}}
@media print{.h1-overlay{display:none!important}.h1-invoice-record{color:#000;background:#fff}}
