/* RUTI Health Back-office 1.0 – on top of the marts back-office styles; a calm teal accent for care */
body.hf { --hf: #0E8A7E; --hf-dark: #0B6E65; --hf-soft: #E6F6F4; }
.hf .mbtn--primary { background: var(--hf); border-color: var(--hf); } .hf .mbtn--primary:hover { background: var(--hf-dark); }
.hf .mdrawer__nav a.is-on, .hf .mh__nav a.is-on { background: var(--hf); }
.hf .mkpi.is-hot { border-color: var(--hf); box-shadow: 0 0 0 3px rgba(14, 138, 126, .14); }
.hf .mbtn--wa { background: #25D366; border-color: #25D366; color: #fff; }
.hf textarea { border: 1px solid #CBD5E1; border-radius: 10px; padding: 10px 12px; font: inherit; background: #fff; color: #0B0F19; width: 100%; resize: vertical; line-height: 1.7; }
.hf .mtag { display: inline-block; font-size: 11.5px; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: #F1F5F9; color: #475569; }
.hf .mtag--warn { background: #FEF3C7; color: #92400E; }
.hpat__ruti { background: var(--hf-soft) !important; color: var(--hf-dark) !important; }
.hq { display: inline-grid; place-items: center; min-width: 40px; height: 32px; border-radius: 10px; background: var(--hf-soft); color: var(--hf-dark); }
.mtable tr.is-room td { background: #F0FDFA; }
/* register */
.htypes { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; }
.htype input { position: absolute; opacity: 0; pointer-events: none; }
.htype > span { display: grid; gap: 4px; padding: 14px; border: 1.5px solid #E2E8F0; border-radius: 14px; background: #fff; cursor: pointer; height: 100%; }
.htype .uic { width: 28px; height: 28px; color: var(--hf); } .htype small { color: #64748B; font-weight: 400; line-height: 1.5; }
.htype input:checked + span { border-color: var(--hf); box-shadow: 0 0 0 3px rgba(14, 138, 126, .15); }
.hsector { display: flex; gap: 8px; } .hsector label { display: flex !important; align-items: center; gap: 8px; padding: 10px 16px; border: 1.5px solid #E2E8F0; border-radius: 12px; background: #fff; cursor: pointer; font-weight: 700; }
.hsector label:has(input:checked) { border-color: var(--hf); background: var(--hf-soft); color: var(--hf-dark); } .hsector input { width: 18px; height: 18px; accent-color: var(--hf); }
.mreg [hidden] { display: none !important; }
/* reception */
.hfind { display: flex; gap: 8px; flex-wrap: wrap; } .hfind input { flex: 1; font-size: 18px; letter-spacing: .5px; }
.hpat { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }
.hpat__who { display: grid; gap: 2px; } .hpat__who b { font-size: 18px; } .hpat__who small { color: #64748B; }
.hallergy { background: #FEE2E2; color: #991B1B; border-radius: 12px; padding: 8px 12px; font-size: 14px; display: flex; gap: 6px; align-items: center; }
.hallergy--none { background: #F1F5F9; color: #475569; }
.hmember { color: var(--hf-dark); font-weight: 700; margin-bottom: 8px; display: flex; gap: 6px; align-items: center; }
.hother { border-top: 1px solid #F1F5F9; padding-top: 10px; margin-top: 10px; display: grid; gap: 8px; }
.hwritten { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.hnew { margin-top: 12px; } .hnew > summary { margin-bottom: 10px; }
.hinvite-line { background: var(--hf-soft); color: var(--hf-dark); border-radius: 12px; padding: 10px 12px; margin-bottom: 10px; font-size: 13.5px; line-height: 1.7; }
.hwait__msg { font-size: 17px; margin: 8px 0; }
.hinvite h2 .uic, .hinvite--me h2 .uic { color: var(--hf); } .hinvite p { line-height: 1.8; }
/* visit */
.hvisit { display: grid; grid-template-columns: minmax(0, 2fr) minmax(260px, 1fr); gap: 16px; align-items: start; }
.hvisit__side { position: sticky; top: 70px; }
.hvitals { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 8px; }
.hvitals label { font-size: 12px !important; } .hvitals span { position: relative; display: block; } .hvitals input { width: 100%; padding-inline-end: 44px !important; }
.hvitals i { position: absolute; inset-inline-end: 8px; top: 50%; transform: translateY(-50%); font-style: normal; font-size: 11px; color: #94A3B8; }
.hnote { display: grid; gap: 6px; } .hnote__head { display: flex; justify-content: space-between; align-items: center; } .hnote__head label { font-weight: 700; font-size: 13px; color: #334155; }
.hnote__text { background: #F8FAFC; border-radius: 10px; padding: 10px 12px; line-height: 1.7; }
.hnote__tr { background: var(--hf-soft); border-radius: 10px; padding: 8px 12px; line-height: 1.7; } .hnote__tr small { color: var(--hf-dark); font-weight: 700; display: flex; gap: 4px; align-items: center; }
.hmic { width: 38px; height: 38px; border-radius: 50%; border: 1px solid #CBD5E1; background: #fff; display: inline-grid; place-items: center; cursor: pointer; position: relative; }
.hmic .uic { width: 18px; height: 18px; } .hmic.is-on { background: #DC2626; border-color: #DC2626; color: #fff; animation: mpulse 1.2s infinite; }
.hmic[data-lang]::after { content: attr(data-lang); position: absolute; bottom: -4px; inset-inline-end: -4px; font-size: 9px; font-weight: 700; background: #0B0F19; color: #fff; border-radius: 6px; padding: 0 4px; text-transform: uppercase; }
.hdict { display: flex; gap: 8px; } .hdict input { flex: 1; height: 46px; border: 1.5px solid var(--hf); border-radius: 12px; padding: 0 12px; font: inherit; font-size: 15px; }
.hrx-rows { display: grid; gap: 10px; }
.hrxrow { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)) auto; gap: 8px; align-items: end; padding: 10px; border: 1px solid #E2E8F0; border-radius: 14px; background: #F8FAFC; }
.hrxrow label { font-size: 11.5px !important; } .hrxrow select, .hrxrow input { height: 38px !important; min-width: 0; width: 100%; }
.hrxrow__drug { position: relative; display: grid; gap: 2px; grid-column: 1 / -1; } .hrxrow__drug small { color: #64748B; font-size: 11px; }
.hrxrow__instr { grid-column: 2 / -2; } .hrxrow .mconsent { margin: 0; align-self: center; }
.hsugg { position: absolute; top: 40px; inset-inline: 0; z-index: 6; background: #fff; border: 1px solid #E2E8F0; border-radius: 12px; box-shadow: 0 18px 40px -18px rgba(0,0,0,.35); max-height: 260px; overflow: auto; }
.hsugg button { display: grid; gap: 2px; width: 100%; text-align: start; padding: 8px 12px; border: 0; background: none; font: inherit; cursor: pointer; border-bottom: 1px solid #F1F5F9; }
.hsugg button:hover { background: var(--hf-soft); } .hsugg small { color: #64748B; font-size: 11.5px; }
.hwarn { border-radius: 14px; padding: 12px; background: #FFFBEB; border: 1px solid #FCD34D; display: grid; gap: 8px; } .hwarn.is-high { background: #FEF2F2; border-color: #FCA5A5; }
.hwarn__t { font-weight: 700; } .hwarn__i { display: grid; gap: 6px; padding-inline-start: 12px; border-inline-start: 4px solid #F59E0B; } .hwarn__i.lv-high { border-color: #DC2626; }
.hwarn__i input { height: 38px; border: 1px solid #FCA5A5; border-radius: 10px; padding: 0 10px; font: inherit; }
.hrx { border: 1px solid #E2E8F0; border-radius: 14px; padding: 12px; margin-bottom: 12px; display: grid; gap: 8px; } .hrx.is-off { opacity: .5; }
.hrx__head { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; } .hrx__head .mact { margin-inline-start: auto; } .hrx ol { padding-inline-start: 20px; display: grid; gap: 4px; }
.hfinish { display: grid; gap: 6px; margin-bottom: 16px; }
.hdl { display: grid; grid-template-columns: auto 1fr; gap: 6px 12px; font-size: 14px; } .hdl dt { color: #64748B; font-weight: 700; } .hdl dd { margin: 0; }
.hlist { list-style: none; padding: 0; display: grid; gap: 8px; } .hlist li { display: grid; gap: 2px; font-size: 14px; } .hlist small { color: #64748B; } .hlist span { font-size: 13px; color: #334155; }
.hdays { display: flex; gap: 6px; flex-wrap: wrap; } .hdays label { display: flex !important; gap: 6px; align-items: center; background: #F1F5F9; padding: 6px 10px; border-radius: 10px; }
.hselect { height: 40px; border: 1px solid #CBD5E1; border-radius: 10px; padding: 0 12px; font: inherit; }
@media (max-width: 980px) { .hvisit { grid-template-columns: 1fr; } .hvisit__side { position: static; } .hrxrow { grid-template-columns: 1fr 1fr 1fr; } .hrxrow__drug, .hrxrow__instr { grid-column: 1 / -1; } }

/* the e-prescription sheet (print + public link) */
.hsheet-page { font-family: 'Cairo', system-ui, sans-serif; background: #EEF2F6; color: #0B0F19; margin: 0; padding: 24px 16px; }
@font-face { font-family: 'Cairo'; src: url('../fonts/Cairo-Regular.ttf') format('truetype'); font-weight: 400; }
@font-face { font-family: 'Cairo'; src: url('../fonts/Cairo-Bold.ttf') format('truetype'); font-weight: 700; }
.hsheet { max-width: 720px; margin: 0 auto; background: #fff; border-radius: 18px; padding: 28px; box-shadow: 0 24px 60px -30px rgba(11,15,25,.35); position: relative; }
.hsheet__head { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; border-bottom: 2px solid #0E8A7E; padding-bottom: 14px; }
.hsheet__head > div { display: grid; gap: 2px; } .hsheet__fac { font-size: 20px; } .hsheet__head small { color: #64748B; } .hsheet__doc { font-weight: 700; color: #0B6E65; }
.hsheet__logo { height: 34px; }
.hsheet__meta { display: flex; flex-wrap: wrap; gap: 6px 22px; font-size: 14px; padding: 12px 0; border-bottom: 1px dashed #CBD5E1; color: #334155; }
.hsheet__dx { margin: 12px 0 0; font-size: 14px; line-height: 1.7; }
.hsheet__rx { font-size: 34px; font-weight: 700; color: #0E8A7E; margin: 10px 0 0; font-family: Georgia, serif; }
.hsheet__items { padding-inline-start: 24px; display: grid; gap: 14px; margin: 6px 0 16px; } .hsheet__items li > * { display: block; }
.hsheet__items b { font-size: 16px; } .hsheet__items small { color: #64748B; font-size: 12px; } .hsheet__items span { font-size: 14.5px; }
.hsheet__ctl { color: #B45309; font-style: normal; font-size: 12.5px; font-weight: 700; }
.hsheet__notes { background: #F8FAFC; border-radius: 10px; padding: 10px 12px; line-height: 1.7; font-size: 14px; }
.hsheet__foot { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; border-top: 1px solid #E2E8F0; padding-top: 12px; margin-top: 12px; }
.hsheet__foot > div:first-child { display: grid; gap: 4px; color: #64748B; font-size: 12px; } .hsheet__qr img, .hsheet__qr canvas { width: 96px; height: 96px; }
.hsheet.is-void .hsheet__items { text-decoration: line-through; opacity: .5; }
.hsheet__void { background: #FEE2E2; color: #991B1B; font-weight: 700; border-radius: 10px; padding: 10px 12px; margin: 12px 0 0; text-align: center; }
.hsheet-tools { max-width: 720px; margin: 0 auto 12px; display: flex; justify-content: flex-end; gap: 8px; }
.hbtn { display: inline-flex; align-items: center; height: 40px; padding: 0 18px; border-radius: 12px; border: 1px solid #0E8A7E; background: #0E8A7E; color: #fff; font: inherit; font-weight: 700; cursor: pointer; text-decoration: none; }
.hbtn--ghost { background: #fff; color: #0E8A7E; }
.hjoin { max-width: 720px; margin: 16px auto 0; display: flex; gap: 14px; align-items: center; background: #0B0F19; color: #E2E8F0; border-radius: 18px; padding: 18px; }
.hjoin img { width: 64px; height: 64px; border-radius: 16px; } .hjoin p { margin: 4px 0 10px; line-height: 1.7; font-size: 14px; color: #CBD5E1; }
.hsheet-note { max-width: 720px; margin: 12px auto 0; color: #64748B; font-size: 12px; text-align: center; line-height: 1.7; }
.ruti-wm { display: inline-block; height: .74em; vertical-align: baseline; margin: 0 .08em; line-height: 0; white-space: nowrap; }
.ruti-wm svg { height: 100%; width: auto; display: block; overflow: visible; } .ruti-wm--mono path, .ruti-caption path { fill: currentColor; }
.ruti-wm__t { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
@media print { .hsheet-page { background: #fff; padding: 0; } .hsheet { box-shadow: none; border-radius: 0; max-width: none; } .hsheet-tools, .hjoin, .hsheet-note { display: none; } }
/* 1.45.0 – pharmacy */
.hseg { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; } .hseg a { padding: 8px 14px; border-radius: 12px; background: #fff; border: 1px solid #E2E8F0; color: #334155; text-decoration: none; font-weight: 700; }
.hseg a.is-on { background: var(--hf); border-color: var(--hf); color: #fff; } .hseg a b { display: inline-grid; place-items: center; min-width: 22px; height: 22px; border-radius: 11px; background: #DC2626; color: #fff; font-size: 12px; margin-inline-start: 4px; }
.hquote { display: grid; grid-template-columns: minmax(0, 2fr) auto minmax(120px, 1fr) minmax(160px, 1.4fr); gap: 10px; align-items: end; padding: 12px; border: 1px solid #E2E8F0; border-radius: 14px; background: #F8FAFC; }
.hquote > div { display: grid; gap: 2px; } .hquote small { color: #64748B; font-size: 12px; } .hquote .mconsent { margin: 0; align-self: center; }
.hdecline { display: flex; gap: 8px; margin-top: 12px; } .hdecline input { flex: 1; height: 42px; border: 1px solid #CBD5E1; border-radius: 10px; padding: 0 12px; font: inherit; }
.hsteps { display: grid; gap: 10px; margin-top: 14px; }
.hstock { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; } .hstock input[name=qty], .hstock input[name=price] { width: 96px; height: 38px; border: 1px solid #CBD5E1; border-radius: 10px; padding: 0 10px; font: inherit; } .hstock .mconsent { margin: 0; }
.mwarn { color: #B45309; }
@media (max-width: 980px) { .hquote { grid-template-columns: 1fr 1fr; } .hquote > div { grid-column: 1 / -1; } }
/* 1.46.0 – hospital */
.htri { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--c); color: #fff; font-weight: 700; font-size: 16px; }
.htris { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; } .htris input { position: absolute; opacity: 0; pointer-events: none; }
.htris span { display: grid; gap: 2px; text-align: center; padding: 8px 4px; border-radius: 12px; border: 2px solid var(--c); color: #0B0F19; font-size: 11.5px; cursor: pointer; line-height: 1.3; }
.htris span b { font-size: 18px; color: var(--c); } .htris input:checked + span { background: var(--c); color: #fff; } .htris input:checked + span b { color: #fff; }
.hvitals--er { grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); }
.mneg { color: #DC2626; font-weight: 700; }
.hbeds { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.hbed { border: 1.5px solid #E2E8F0; border-radius: 14px; padding: 10px; display: grid; gap: 4px; background: #fff; min-height: 84px; align-content: start; }
.hbed__no { font-weight: 700; font-size: 12px; color: #64748B; } .hbed a { color: inherit; text-decoration: none; display: grid; gap: 2px; } .hbed small { color: #64748B; font-size: 12px; }
.hbed.is-occupied { border-color: var(--hf); background: var(--hf-soft); } .hbed.is-cleaning { background: #FFFBEB; border-color: #FCD34D; } .hbed.is-blocked { background: #F1F5F9; opacity: .7; }
.hbed.is-alert { border-color: #DC2626; box-shadow: 0 0 0 3px rgba(220, 38, 38, .15); }
.htrend { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; margin-bottom: 10px; }
.htrend > div { display: grid; gap: 2px; padding: 8px 10px; border-radius: 12px; background: #F8FAFC; } .htrend small { color: #64748B; font-size: 11.5px; }
.hspark { width: 100%; height: 28px; } .hspark path { fill: none; stroke: var(--hf); stroke-width: 2; stroke-linejoin: round; }
.horder { margin-top: 10px; } .horder > summary { list-style: none; display: inline-flex; } .horder > summary::-webkit-details-marker { display: none; }
.horder__find { height: 40px; border: 1px solid #CBD5E1; border-radius: 10px; padding: 0 12px; font: inherit; width: 100%; }
.horder__list { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 4px 10px; max-height: 260px; overflow: auto; padding: 6px; border: 1px solid #F1F5F9; border-radius: 12px; }
.horder__list label { display: flex !important; gap: 6px; align-items: center; font-size: 13px !important; font-weight: 400 !important; } .horder__list label.is-panel { font-weight: 700 !important; }
.horder h3 { font-size: 14px; margin: 8px 0 4px; }
.htest { border: 1px solid #E2E8F0; border-radius: 14px; padding: 10px 12px; margin-bottom: 8px; display: grid; gap: 6px; }
.htest__head { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; } .htest__head small { color: #64748B; margin-inline-start: auto; }
.htest__vals tr.f-high td, .htest__vals tr.f-low td { background: #FEF2F2; } .hflag { color: #DC2626; font-weight: 700; font-size: 12px; } .htest__rep { line-height: 1.7; margin: 0; }
.hres__in { position: relative; display: block; } .hres__in input { width: 140px; height: 38px; padding-inline-end: 50px; border: 1px solid #CBD5E1; border-radius: 10px; font: inherit; }
.hres__in i { position: absolute; inset-inline-start: 100px; top: 50%; transform: translateY(-50%); font-style: normal; font-size: 11px; color: #94A3B8; }
.hres tr.is-flag td { background: #FEF2F2; } .hres__flag { color: #DC2626; font-weight: 700; }
/* 1.47.0 – ambulance */
.hcall { border: 1.5px solid #E2E8F0; border-radius: 14px; padding: 12px; margin-bottom: 10px; display: grid; gap: 6px; border-inline-start-width: 6px; }
.hcall.is-p1 { border-inline-start-color: #DC2626; } .hcall.is-p2 { border-inline-start-color: #F97316; } .hcall.is-p3 { border-inline-start-color: #16A34A; }
.hcall.is-new { background: #FEF2F2; } .hcall p { margin: 0; }
.hcall__head { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; } .hcall__head small { margin-inline-start: auto; color: #64748B; }
.hassign { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; margin-top: 6px; } .hassign select, .hassign input { height: 40px; border: 1px solid #CBD5E1; border-radius: 10px; padding: 0 10px; font: inherit; min-width: 0; }
.hassign input[name=eta] { width: 110px; }
.hcrew { display: grid; gap: 10px; } .hcrew__what { font-size: 18px; font-weight: 700; margin: 0; } .hcrew__btns { display: flex; gap: 8px; flex-wrap: wrap; }
.hincoming { border: 2px solid #DC2626; }

/* 1.48.0 – billing: price list, invoice */
.hprices td:last-child { width: 130px; } .hprices input { width: 100%; padding: 8px 10px; border: 1px solid #CBD5E1; border-radius: 10px; font: inherit; }
.hinv__head { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; border-bottom: 1px solid #E2E8F0; padding-bottom: 12px; margin-bottom: 12px; }
.hinv__no { display: grid; justify-items: end; gap: 4px; } .hinv__ins { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; background: #F0FDFA; border-radius: 12px; padding: 8px 12px; }
.hinv__ins .uic { width: 18px; height: 18px; color: var(--hf); }
.hinv__lines td small { display: block; color: #64748B; font-size: 12px; }
.hinv__edit { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; } .hinv__edit input[name=qty] { width: 64px; } .hinv__edit input[name=price] { width: 100px; }
.hinv__edit input { padding: 6px 8px; border: 1px solid #CBD5E1; border-radius: 8px; font: inherit; } .hinv__edit b { min-width: 90px; } .hinv__del { display: inline; }
.hinv__sum { display: grid; grid-template-columns: 1fr auto; gap: 6px 24px; max-width: 360px; margin: 16px 0 0 auto; } .hinv__sum dt { color: #475569; } .hinv__sum dd { margin: 0; text-align: end; }
[dir=rtl] .hinv__sum { margin: 16px auto 0 0; }
.hinv__foot { margin-top: 16px; padding-top: 10px; border-top: 1px dashed #E2E8F0; color: #94A3B8; font-size: 12px; text-align: center; }
.hinv__apr { padding: 8px 0; border-bottom: 1px solid #F1F5F9; } .hinv__verify { margin-top: 10px; padding-top: 10px; border-top: 1px solid #F1F5F9; }
.mpill--issued, .mpill--partly { background: #FEF3C7; color: #92400E; } .mpill--paid { background: #DCFCE7; color: #065F46; } .mpill--void { background: #FEE2E2; color: #991B1B; }
@media print { .hnoprint { display: none !important; } .hinv { border: 0; box-shadow: none; padding: 0; } }

/* 1.49.0 – medical report */
.hsheet__title { text-align: center; font-size: 22px; margin: 16px 0 2px; color: #0B6E65; letter-spacing: .02em; }
.hsheet__to { text-align: center; margin: 0 0 8px; color: #475569; font-weight: 700; }
.hsheet__code { color: #64748B; font-size: 12.5px; }
.hsheet__body { margin: 14px 0 0; line-height: 1.9; font-size: 15px; white-space: normal; }
.hsheet__trnote { color: #94A3B8; font-size: 11.5px; margin: 4px 0 0; }
.hsheet__rest { margin: 14px 0 0; padding: 10px 12px; border-radius: 10px; background: #F0FDFA; color: #0B6E65; font-weight: 700; }
.hsheet__fine { color: #94A3B8; font-size: 11.5px; margin: 16px 0 0; }
.hsheet__foot--sign > div:first-child { color: #0B0F19; font-size: 14px; } .hsheet__foot--sign small { color: #64748B; font-size: 12px; }
.hsheet__signline { display: block; margin-top: 26px; padding-top: 6px; border-top: 1px solid #94A3B8; width: 220px; color: #64748B; font-size: 12px; }
.hsheet.is-void .hsheet__body { text-decoration: line-through; opacity: .5; }
.hverify { max-width: 720px; margin: 0 auto 12px; padding: 12px 16px; border-radius: 12px; font-weight: 800; text-align: center; }
.hverify.is-ok { background: #DCFCE7; color: #065F46; } .hverify.is-bad { background: #FEE2E2; color: #991B1B; }
@media print { .hverify { display: none; } }
.hsheet__head > div { flex: 1; min-width: 0; }
@media (max-width: 520px) { .hsheet { padding: 18px; } .hsheet__logo { height: 26px; } .hsheet-tools { flex-wrap: wrap; } }

/* 1.50.0 – requests between facilities */
.hpending__row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid #F1F5F9; } .hpending__row > div { flex: 1; min-width: 220px; display: grid; gap: 2px; }
.hreferral { border-inline-start: 4px solid var(--hf); } .hsheet__urgent { color: #B91C1C; }
.hsheet-take { max-width: 720px; margin: 0 auto 12px; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: flex-end; background: #F0FDFA; border-radius: 12px; padding: 10px 14px; font-size: 14px; }

/* 1.52.0 – video consultations */
.hv { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 1000px) { .hv:has(.hv__side) { grid-template-columns: minmax(0, 1fr) 340px; } }
.hv__stage { position: relative; background: #05080F; border-radius: 22px; overflow: hidden; aspect-ratio: 16 / 10; min-height: 320px; box-shadow: 0 20px 50px rgba(0,0,0,.25); }
.page-call.is-call .hv__stage { aspect-ratio: auto; height: calc(100dvh - 250px); min-height: 380px; }
.hv__remote { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: radial-gradient(circle at 50% 40%, #12324A, #05080F 70%); }
.hv__local { position: absolute; inset-block-end: 92px; inset-inline-end: 14px; width: 28%; max-width: 220px; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 16px; border: 2px solid rgba(255,255,255,.75); background: #111827; transform: scaleX(-1); }
.hv.is-camoff .hv__local { opacity: .25; }
.hv__who { position: absolute; inset-block-start: 14px; inset-inline-start: 14px; display: grid; gap: 2px; color: #fff; text-shadow: 0 1px 3px rgba(0,0,0,.6); }
.hv__who b { font-size: 18px; } .hv__who span { font-size: 13px; opacity: .9; } .hv__timer { font-variant-numeric: tabular-nums; }
.hv[data-state="live"] .hv__who span:first-of-type::before { content: ''; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #22C55E; margin-inline-end: 6px; }
.hv__bar { position: absolute; inset-inline: 0; inset-block-end: 16px; display: flex; justify-content: center; gap: 14px; }
.hv__btn { width: 56px; height: 56px; border-radius: 50%; border: 0; display: grid; place-items: center; background: rgba(255,255,255,.16); color: #fff; backdrop-filter: blur(8px); cursor: pointer; }
.hv__btn .uic { width: 24px; height: 24px; } .hv__btn[aria-pressed="false"] { background: #fff; color: #0B0F19; }
.hv__btn[aria-pressed="false"]::after { content: ''; position: absolute; width: 30px; height: 2px; background: #DC2626; transform: rotate(-45deg); }
.hv__btn--end { background: #DC2626; } .hv__btn--end .uic { transform: rotate(135deg); }
.hv__side { display: grid; gap: 10px; align-content: start; } .hv__note { color: var(--text-soft, #64748B); font-size: 13px; text-align: center; margin: 0; }
.hv-wait { text-align: center; display: grid; gap: 8px; justify-items: center; } .hv-wait > .uic { width: 56px; height: 56px; color: var(--accent, #0FB5A6); }
.hv-tips { text-align: start; margin: 4px 0 8px; padding-inline-start: 20px; color: var(--text-soft, #64748B); font-size: 14px; display: grid; gap: 4px; }
.book-mode { margin-bottom: 8px; } .pill--video { background: var(--accent-soft); color: var(--accent); display: inline-flex; align-items: center; gap: 4px; width: auto; justify-self: start; } .pill--video .uic { width: 14px; height: 14px; }

/* 1.53.0 – home visits */
.hhv__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; } .hhv__head small { display: block; color: #64748B; }
.hhv__acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; } .hhv__addr .uic, .hhv p .uic { width: 18px; height: 18px; vertical-align: -4px; color: var(--hf); }
.hhv--on_way { border-inline-start: 4px solid #F59E0B; } .hhv--arrived { border-inline-start: 4px solid var(--hf); } .hhv__done { margin-top: 12px; border-top: 1px dashed #E2E8F0; padding-top: 12px; }
.halert { background: #FEF2F2; color: #991B1B; border-radius: 10px; padding: 8px 12px; }

/* 1.54.0 – ratings and reviews */
.rv-badge { display: inline-flex; align-items: center; gap: 3px; font-size: 13px; vertical-align: middle; white-space: nowrap; }
.rv-badge .uic { width: 15px; height: 15px; fill: #F5B301; stroke: #F5B301; } .rv-badge small { opacity: .7; font-size: 11.5px; }
.rv-badge--new { font-size: 11.5px; opacity: .7; } .rv-badge-link { text-decoration: none; color: inherit; }
.rv-stars { display: inline-flex; gap: 1px; vertical-align: middle; } .rv-stars .uic { width: 15px; height: 15px; stroke: #F5B301; fill: none; opacity: .55; }
.rv-stars .uic.is-on { fill: #F5B301; opacity: 1; } .rv-stars .uic.is-half { fill: rgba(245,179,1,.45); opacity: 1; }
.rvb { padding: 12px 0; border-bottom: 1px solid #EEF2F7; } .rvb header { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.rvb__reply { margin: 8px 0; padding: 8px 12px; border-inline-start: 3px solid currentColor; background: rgba(15,181,166,.06); border-radius: 8px; }

/* 1.54.0 – an emoji with no line icon yet shows as a quiet dot, never as a picture */
.uic--fallback { width: .5em !important; height: .5em !important; opacity: .55; vertical-align: middle; }

/* 1.48.0 – the RUTI wordmark keeps its size wherever it sits (no card or list style may stretch it) */
span.ruti-wm[data-ruti-wm] { display: inline-block !important; height: .74em !important; width: auto !important; padding: 0 !important; border: 0 !important; background: none !important;
    box-shadow: none !important; vertical-align: baseline !important; line-height: 0 !important; position: static !important; gap: 0 !important; min-width: 0 !important; }
span.ruti-wm[data-ruti-wm] > svg { height: 100% !important; width: auto !important; display: block !important; max-width: none !important; }
span.ruti-caption[data-ruti-wm] { display: inline-block !important; padding: 0 !important; border: 0 !important; background: none !important; }
span.ruti-wm__t { position: absolute !important; width: 1px !important; height: 1px !important; overflow: hidden !important; clip: rect(0 0 0 0) !important; clip-path: inset(50%) !important; white-space: nowrap !important; padding: 0 !important; border: 0 !important; display: block !important; }

/* ===== 1.55.0 – legal papers (register + settings) ===== */
.hdocs__lead { display: flex; gap: 8px; align-items: flex-start; background: #ECFDF5; border: 1px solid #A7F3D0; color: #065F46; border-radius: 12px; padding: 10px 12px; line-height: 1.7; }
.hdocs { display: grid; gap: 10px; margin: 10px 0 16px; }
.hdoc { border: 1.5px dashed #CBD5E1; border-radius: 14px; padding: 12px 14px; display: grid; gap: 6px; margin: 0; }
.hdoc.is-req { border-color: #0E8A7E; }
.hdoc legend { padding: 0 6px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.hdoc__req, .hdoc__opt { font-size: 11px; font-weight: 800; padding: 1px 8px; border-radius: 999px; }
.hdoc__req { background: #0E8A7E; color: #fff; display: none; } .hdoc.is-req .hdoc__req { display: inline; }
.hdoc__opt { background: #F1F5F9; color: #475569; } .hdoc.is-req .hdoc__opt { display: none; }
.hdoc__pick { position: relative; display: inline-flex; align-items: center; gap: 8px; width: fit-content; padding: 8px 14px; border-radius: 10px; background: #E6F6F4; color: #0B6E65; font-weight: 700; cursor: pointer; }
.hdoc__pick input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.hdoc__files { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.hdoc__files li { display: flex; gap: 8px; align-items: center; background: #F8FAFC; border: 1px solid #E2E8F0; border-radius: 8px; padding: 4px 8px; font-size: 13px; }
.hdoc__files li span { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hdoc__files li.is-bad { border-color: #FCA5A5; background: #FEF2F2; }
.hdoc__files button { border: 0; background: #E2E8F0; border-radius: 6px; width: 24px; height: 24px; cursor: pointer; font-weight: 800; }
.hdoc__exp { display: flex; gap: 8px; align-items: center; font-size: 13px; } .hdoc__exp input { width: auto; }
.hdocs-table tr.is-missing td { background: #FEF2F2; }
.hdoc-warn { color: #B45309; font-weight: 800; }
.hf .mchip { display: inline-block; font-size: 11.5px; font-weight: 800; padding: 2px 9px; border-radius: 999px; background: #F1F5F9; color: #475569; }
.hf .mchip--accepted { background: #DCFCE7; color: #166534; } .hf .mchip--pending { background: #FEF3C7; color: #92400E; }
.hf .mchip--rejected, .hf .mchip--missing { background: #FEE2E2; color: #991B1B; }
.hdoc-add { margin-top: 12px; } .hdoc-add > summary { list-style: none; width: fit-content; } .hdoc-add > summary::-webkit-details-marker { display: none; }
/* settings: public page */
.hpub-link { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; font-size: 13px; background: #F8FAFC; border: 1px solid #E2E8F0; border-radius: 10px; padding: 8px 10px; word-break: break-all; }
.hpub-pics { display: grid; grid-template-columns: 1fr 200px; gap: 12px; }
.hpub-pic { position: relative; display: grid; gap: 4px; justify-items: start; border: 1.5px dashed #CBD5E1; border-radius: 14px; padding: 10px; cursor: pointer; }
.hpub-pic img { width: 100%; border-radius: 10px; object-fit: cover; } .hpub-pic--banner img { aspect-ratio: 16 / 5; } .hpub-pic--logo img { aspect-ratio: 1; max-width: 120px; }
.hpub-pic > span { display: grid; place-items: center; width: 100%; aspect-ratio: 16 / 5; background: #F1F5F9; border-radius: 10px; color: #94A3B8; } .hpub-pic--logo > span { aspect-ratio: 1; max-width: 120px; }
.hpub-pic input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.hpub-socials { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
@media (max-width: 640px) { .hpub-pics { grid-template-columns: 1fr; } }

/* ===== 1.55.0 – the public page (health/p.php) ===== */
body.hpub { --pk: #0E8A7E; --pk-d: #0B6E65; --ink: #0B1220; --mut: #5B6577; --line: #E3E8EF; --card: #fff; --bg: #F3F6F9; --gold: #E9B949;
  margin: 0; font-family: 'Cairo', system-ui, -apple-system, 'Segoe UI', sans-serif; background: var(--bg); color: var(--ink); line-height: 1.6; -webkit-font-smoothing: antialiased; }
.hpub a { color: var(--pk-d); }
.hpub .uic { width: 18px; height: 18px; vertical-align: -3px; }
.hpub-top { display: flex; justify-content: space-between; align-items: center; padding: 10px 18px; background: var(--ink); }
.hpub-top img { display: block; height: 28px; width: auto; } .hpub-top nav a { color: #fff; font-weight: 700; text-decoration: none; font-size: 14px; }
.hpub-hero { max-width: 1120px; margin: 0 auto; background: var(--card); border-radius: 0 0 22px 22px; box-shadow: 0 10px 30px -18px rgba(11, 18, 32, .35); overflow: hidden; }
.hpub-banner img, .hpub-banner__blank { display: block; width: 100%; height: auto; aspect-ratio: 16 / 5; object-fit: cover; }
.hf .link { color: var(--hf-dark); }
.hpub-banner__blank { background: linear-gradient(120deg, #0B1220 0%, #0B6E65 55%, #0E8A7E 100%); }
.hpub-id { display: flex; gap: 18px; align-items: flex-end; padding: 0 24px; margin-top: -56px; }
.hpub-logo { width: 112px; height: 112px; border-radius: 26px; background: #fff; border: 4px solid #fff; box-shadow: 0 8px 22px -10px rgba(11, 18, 32, .45); object-fit: contain; flex: none; }
.hpub-id__text { padding-bottom: 4px; min-width: 0; }
.hpub-id h1 { margin: 60px 0 0; font-size: clamp(22px, 3.2vw, 32px); line-height: 1.25; }
.hpub-kind { margin: 2px 0 0; color: var(--mut); font-weight: 600; }
.hpub-verified { display: inline-block; margin-inline-start: 6px; background: #DCFCE7; color: #166534; border-radius: 999px; padding: 0 10px; font-size: 12.5px; font-weight: 800; }
.hpub-rate { margin: 4px 0 0; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; } .hpub-rate b { font-size: 18px; }
.hpub-new { background: #EEF2F7; color: var(--mut); border-radius: 999px; padding: 0 10px; font-size: 13px; font-weight: 700; }
.hpub-stars { color: #CBD5E1; letter-spacing: 1px; white-space: nowrap; } .hpub-stars .on { color: var(--gold); font-style: normal; }
.hpub-stars i { font-style: normal; } .hpub-stars .half { background: linear-gradient(90deg, var(--gold) 50%, #CBD5E1 50%); -webkit-background-clip: text; background-clip: text; color: transparent; }
[dir=rtl] .hpub-stars .half { background: linear-gradient(270deg, var(--gold) 50%, #CBD5E1 50%); -webkit-background-clip: text; background-clip: text; }
.hpub-actions { display: flex; gap: 8px; flex-wrap: wrap; padding: 18px 24px 22px; }
.hpub-btn { display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 16px; border-radius: 12px; border: 1px solid var(--line); background: #fff; color: var(--ink) !important; font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; }
.hpub-btn:hover { border-color: var(--pk); } .hpub-btn--main { background: var(--pk); border-color: var(--pk); color: #fff !important; } .hpub-btn--main:hover { background: var(--pk-d); }
.hpub-btn--sm { height: 36px; padding: 0 14px; font-size: 14px; } .hpub-btn--block { width: 100%; justify-content: center; margin-top: 10px; box-sizing: border-box; }
.hpub-main { max-width: 1120px; margin: 18px auto; padding: 0 16px; display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 18px; align-items: start; box-sizing: border-box; }
.hpub-col, .hpub-side { display: grid; gap: 18px; min-width: 0; }
.hpub-card { background: var(--card); border-radius: 18px; padding: 18px 20px; box-shadow: 0 1px 0 var(--line), 0 8px 24px -20px rgba(11, 18, 32, .4); }
.hpub-card h2 { margin: 0 0 10px; font-size: 18px; } .hpub-card h2 small { color: var(--mut); font-weight: 600; }
.hpub-about { margin: 0; color: #253043; }
.hpub-chips { display: flex; flex-wrap: wrap; gap: 8px; } .hpub-chips span { background: #E6F6F4; color: var(--pk-d); border-radius: 999px; padding: 4px 12px; font-weight: 700; font-size: 14px; }
.hpub-docs { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.hpub-docs li { display: flex; gap: 12px; align-items: center; justify-content: space-between; border: 1px solid var(--line); border-radius: 14px; padding: 10px 12px; }
.hpub-docs li > div { display: grid; min-width: 0; } .hpub-docs small { color: var(--mut); }
.hpub-docmeta { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; font-size: 13px; }
.hpub-pill { background: #EEF2FF; color: #3730A3; border-radius: 999px; padding: 0 8px; font-size: 12px; font-weight: 800; }
.hpub-note, .hpub-muted { color: var(--mut); font-size: 13.5px; margin: 10px 0 0; }
.hpub-list { list-style: none; margin: 0; padding: 0; } .hpub-list li { display: flex; justify-content: space-between; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); } .hpub-list li:last-child { border: 0; }
.hpub-score { display: grid; grid-template-columns: 140px 1fr; gap: 16px; align-items: center; margin-bottom: 8px; }
.hpub-score__big { display: grid; justify-items: center; text-align: center; } .hpub-score__big b { font-size: 40px; line-height: 1; } .hpub-score__big small { color: var(--mut); }
.hpub-bars p { display: grid; grid-template-columns: 34px 1fr 30px; gap: 8px; align-items: center; margin: 3px 0; font-size: 13px; }
.hpub-bars i { height: 8px; border-radius: 99px; background: #EEF2F7; overflow: hidden; } .hpub-bars i b { display: block; height: 100%; background: var(--gold); border-radius: 99px; }
.hpub-review { border-top: 1px solid var(--line); padding: 12px 0 4px; } .hpub-review header { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; } .hpub-review header small { color: var(--mut); margin-inline-start: auto; }
.hpub-review p { margin: 6px 0; } .hpub-review blockquote { margin: 6px 0; padding: 8px 12px; border-inline-start: 3px solid var(--pk); background: #F0FDFA; border-radius: 8px; font-size: 14px; } .hpub-review blockquote b { display: block; font-size: 12.5px; color: var(--pk-d); }
.hpub-contact { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; } .hpub-contact li { display: flex; gap: 10px; align-items: flex-start; } .hpub-contact .uic { color: var(--pk); flex: none; margin-top: 3px; }
.hpub-contact a { word-break: break-all; }
.hpub-social { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; } .hpub-social a { display: inline-flex; gap: 6px; align-items: center; border: 1px solid var(--line); border-radius: 999px; padding: 4px 12px; text-decoration: none; font-weight: 700; font-size: 13.5px; }
.hpub-map iframe { width: 100%; aspect-ratio: 4 / 3; border: 0; border-radius: 14px; background: #E2E8F0; }
.hpub-join { display: flex; gap: 12px; align-items: flex-start; background: linear-gradient(135deg, #0B1220, #0B6E65); color: #fff; } .hpub-join p { margin: 4px 0 10px; opacity: .85; font-size: 14px; } .hpub-join img { border-radius: 12px; }
.hpub-foot { max-width: 1120px; margin: 10px auto 30px; padding: 0 16px; text-align: center; font-size: 14px; }
@media (max-width: 860px) { .hpub-main { grid-template-columns: 1fr; } .hpub-id { padding: 0 16px; gap: 12px; } .hpub-logo { width: 88px; height: 88px; border-radius: 20px; } .hpub-id h1 { margin-top: 64px; font-size: 22px; }
  .hpub-actions { padding: 14px 16px 18px; } .hpub-actions .hpub-btn { flex: 1 1 auto; justify-content: center; } .hpub-hero { border-radius: 0; } .hpub-score { grid-template-columns: 1fr; } }
/* 1.55.0 – dashboard strip: the facility's public page */
.hpub-strip { display: flex; gap: 16px; align-items: center; justify-content: space-between; flex-wrap: wrap; border: 1.5px solid #A7F3D0; background: #F0FDFA; margin-bottom: 16px; }
.hpub-strip h2 { margin: 0 0 4px; } .hpub-strip__text { flex: 1 1 420px; min-width: 0; display: grid; gap: 6px; } .hpub-strip__text p { margin: 0; }
.hpub-strip__act { display: flex; gap: 8px; flex-wrap: wrap; }
/* 1.56.0 – the mart public page uses the same layout in the mart orange */
body.hpub--mart { --pk: #B45309; --pk-d: #92400E; }
.hpub--mart .hpub-banner__blank { background: linear-gradient(120deg, #0B1220 0%, #7C2D12 55%, #B45309 100%); }
.hpub--mart .hpub-chips span, .hpub--mart .hpub-pill { background: #FEF3C7; color: #92400E; }
.hpub--mart .hpub-review blockquote { background: #FFFBEB; }
.hpub--mart .hpub-join { background: linear-gradient(135deg, #0B1220, #7C2D12); }
