.receipt-paper {
    background: #ffffff;
    position: relative;
    border-radius: 6px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 100%;
    max-width: 148mm;
    min-height: 202mm;
    padding: 6mm 8mm 4mm 8mm;
    box-sizing: border-box;
}

@media screen and (max-width: 580px) {
    .receipt-paper {
        max-width: 100%;
        min-height: auto;
        padding: 5mm 6mm 4mm 6mm;
    }
}

.watermark-layer {
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0.045;
    background-repeat: no-repeat;
    background-position: center;
    background-size: 40%;
    z-index: 0;
}
body.hide-watermark .watermark-layer { display: none !important; }

.receipt-header, .receipt-title-box, .meta-data-strip, .section-patient,
.section-services, .section-ledger, .section-signatures, .receipt-footer {
    position: relative;
    z-index: 1;
}

.receipt-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2.2px solid var(--primary);
    padding-bottom: 3px;
}
.header-doc h2 { font-size: 13px; font-weight: 900; color: var(--primary); line-height: 1.2; }
.header-doc p { font-size: 9px; color: var(--text-muted); font-weight: 600; margin-top: 1px; }

.header-logo-wrap {
    width: calc(80px * var(--logo-scale, 1));
    height: calc(80px * var(--logo-scale, 1));
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    filter: none !important;
    padding: 0 !important;
}
.clinic-logo { width: 100%; height: 100%; max-width: 100%; max-height: 100%; object-fit: contain; background: transparent !important; border: 0 !important; border-radius: 0 !important; box-shadow: none !important; padding: 0 !important; }

.header-clinic { font-family: inherit; text-align: left; }
.header-clinic h2 { font-size: 10px; font-weight: 800; color: var(--primary); line-height: 1.2; }
.header-clinic p { font-size: 8.5px; color: var(--text-muted); font-weight: 600; margin-top: 1px; }

.receipt-title-box { text-align: center; margin: 2px 0; }
.title-strip { display: inline-flex; align-items: center; justify-content: center; gap: 10px; }
.strip-wing { height: 1.5px; width: 30px; background: var(--primary); opacity: 0.6; }
.main-voucher-title {
    font-size: 15px;
    font-weight: 900;
    color: var(--primary);
    letter-spacing: 0 !important;
}

.meta-data-strip {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--bg-strip);
    border: 1px solid var(--border-soft);
    border-radius: 5px;
    padding: 3px 8px;
    margin-bottom: 3px;
}
.meta-cell { display: flex; align-items: center; gap: 4px; }
.meta-label, .row-label { font-weight: 700; color: var(--primary); font-size: 9.5px; white-space: nowrap; }

.ar-date-flow { display: inline-flex; align-items: center; gap: 2px; font-weight: 700; color: var(--line-border); font-size: 10px !important; }
.ar-date-flow .date-blank,.ar-date-flow .slash,.ar-date-flow .year-block { font-size: 10px !important; line-height: 1; }
.year-block bdo { font-size: 10px !important; }
.date-blank { display: inline-block; width: 24px; height: 15px; border-bottom: 1.5px dashed var(--line-border); }
.slash { font-size: 10px; font-weight: 700; color: var(--line-border); }
.year-block { font-weight: 700; }

.write-dots { border-bottom: 1.5px dashed var(--line-border); display: inline-block; height: 15px; }
.num-dots { min-width: 75px; }
.ref-dots { min-width: 90px; }
.flex-1 { flex: 1; margin: 0 4px; }

.section-patient { margin-bottom: 3px; }
.row-flex { display: flex; align-items: center; margin-bottom: 3px; }
.patient-contact-row .patient-phone-input { direction: ltr; unicode-bidi: isolate; text-align: left; font-variant-numeric: tabular-nums; max-width: 140px; width: 140px; flex: 0 1 140px; }
.manual-payment-options { margin: 0 10px; }


.paid-hero-bar {
    background: var(--bg-strip);
    border: 1.6px solid var(--primary);
    border-radius: 5px;
    padding: 3px 8px;
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 3px 0;
}
.paid-title { font-weight: 900; color: var(--primary); font-size: 11px; }
.paid-blank-line { border-bottom: 2px solid var(--primary); width: 130px; height: 16px; }
.paid-unit { font-weight: 700; color: var(--text-muted); font-size: 9.5px; }
.tafqeet-closing { font-size: 9px; color: var(--text-muted); font-weight: 600; white-space: nowrap; }
.tafqeet-text { color: var(--primary) !important; font-weight: 700; }

/* خيارات الدفع الرسومية النقية لمنع الرمز 0 في الصورة */
.pay-opts-row { font-size: 9.5px; display: flex; align-items: center; }
.payment-options-group { display: flex; align-items: center; gap: 12px; margin: 0 10px; flex: 0 0 auto; }
.pay-opts-row .ref-label { margin-right: 16px; }
.pay-opts-row .ref-dots { margin-right: 4px; }
.custom-radio-item {
    display: flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    user-select: none;
    font-weight: 700;
}
.radio-circle {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 1.6px solid var(--primary);
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
}
.radio-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: transparent;
}
.custom-radio-item.active .radio-dot { background: var(--primary); }
.ref-label { margin-right: 10px; }

.section-services {
    border: 1.2px solid var(--border-soft);
    border-radius: 5px;
    overflow: hidden;
    margin-bottom: 3px;
}
.services-banner {
    background: var(--primary);
    color: #fff;
    font-size: 9.5px;
    font-weight: 800;
    padding: 2.5px 8px;
}
.services-grid-matrix {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3px 6px;
    padding: 4px 8px;
    background: #ffffff;
}
.custom-check-item {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 9px;
    font-weight: 600;
    cursor: pointer;
    user-select: none;
    white-space: nowrap;
}
.check-box-icon {
    width: 12px;
    height: 12px;
    border: 1.5px solid var(--primary);
    border-radius: 2px;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
}
.check-mark { display: none; color: #fff; font-size: 8px; font-weight: 900; }
.custom-check-item.active .check-box-icon { background: var(--primary); }
.custom-check-item.active .check-mark { display: block; }

.service-note-row {
    display: flex;
    align-items: center;
    padding: 4px 8px;
    border-top: 1px dashed var(--border-soft);
    background: #fafafa;
}
.service-note-row:last-child { padding-bottom: 6px; }

/* الشريط المالي المحاسبي بنظام CSS Grid لضمان عدم خروج خانة المتبقي */
.section-ledger { margin-bottom: 3px; width: 100%; }
.ledger-grid-wrap {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 6px;
    width: 100%;
}
.ledger-box {
    background: var(--bg-strip);
    border: 1.2px solid var(--border-soft);
    border-radius: 5px;
    padding: 5px 6px 6px;
    text-align: center;
    box-sizing: border-box;
}
.ledger-header { display: block; font-size: 9.5px; font-weight: 800; color: var(--primary); margin-bottom: 5px; line-height: 1.15; }
.ledger-content { display: flex; align-items: center; justify-content: center; gap: 4px; min-height: 18px; direction: rtl; }
.ledger-field { width: 100%; max-width: 65px; text-align: center; }
.currency-label { font-size: 9.5px; color: var(--text-muted); font-weight: 800; white-space: nowrap; }

.balance-highlight { border-color: rgba(185, 28, 28, 0.4); background: #fef2f2; }
.balance-header, .balance-val, .balance-curr { color: var(--accent-red) !important; }

.section-signatures {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 3px;
    padding: 0 4px;
}
.sig-column { text-align: center; width: 32%; }
.sig-title { font-size: 9.5px; font-weight: 700; color: var(--primary); }
.sig-draw-line { border-bottom: 1.5px dashed var(--line-border); margin-top: 18px; }

.sig-stamp-center { width: 30%; }
.stamp-frame {
    height: 42px;
    border: 1.5px dashed var(--primary);
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.stamp-frame span { display:block; width:100%; text-align:center; font-size: 8px; color: #94a3b8; font-weight: 700; }

.receipt-footer { border-top: 1.6px solid var(--primary); padding-top: 3px; text-align: center; }
.footer-blessing { font-size: 9px; font-weight: 800; color: var(--primary); margin-bottom: 1px; }
.footer-meta-line { display: flex; justify-content: space-between; font-size: 8px; color: var(--text-muted); font-weight: 600; }
.footer-phones {
    white-space: nowrap; direction: ltr; font-size: 10.5px; font-weight: 800;
    color: var(--primary); letter-spacing: .1px;
    padding: 2px 7px; border: 1px solid var(--border-soft); border-radius: 4px;
    background: #fff;
}
.footer-phones span { font-weight: 900; }

.live-input {
    border: none;
    border-bottom: 1.5px solid var(--primary);
    outline: none;
    font-family: inherit;
    font-size: 10px;
    padding: 1px 3px;
    background: transparent;
    font-weight: 700;
    color: var(--primary);
}
.num-input { width: 75px; }
.paid-numeric { width: 120px; font-size: 13px; font-weight: 900; }
.bold-field { font-weight: 800; }

[data-mode="manual"] .digital-only { display: none !important; }
[data-mode="digital"] .manual-only { display: none !important; }
body.is-editing .editable { outline: 2px dashed #f59e0b !important; background-color: #fffbeb !important; cursor: text; }
body.is-capturing input::placeholder { color: transparent !important; }

/* Production physical-size profiles */
html[data-size="a5"] .receipt-paper{width:148mm;max-width:148mm;min-height:210mm;height:210mm}
html[data-size="a4"] .receipt-paper{width:210mm;max-width:210mm;min-height:297mm;height:297mm}
html[data-size="thermal"] .receipt-paper{width:80mm;max-width:80mm;min-height:0;height:auto;padding:5mm 4mm}
html[data-size="a4"] .receipt-header h2{font-size:18px} html[data-size="a4"] .main-voucher-title{font-size:22px}
html[data-size="thermal"] .receipt-header{flex-wrap:wrap} html[data-size="thermal"] .receipt-header .header-clinic{width:100%;text-align:center}
html[data-size="thermal"] .services-grid-matrix{grid-template-columns:1fr 1fr} html[data-size="thermal"] .ledger-grid-wrap{grid-template-columns:1fr}
html[data-size="thermal"] .footer-meta-line{flex-direction:column;gap:2px} html[data-size="thermal"] .paid-hero-bar,html[data-size="thermal"] .pay-opts-row{flex-wrap:wrap}
@media screen and (max-width:700px){.receipt-paper{transform-origin:top center;flex-shrink:0}html[data-size="a4"] .receipt-paper{transform:scale(calc((100vw - 16px)/793.7))}html[data-size="a5"] .receipt-paper{transform:scale(calc((100vw - 16px)/559.4))}html[data-size="thermal"] .receipt-paper{transform:none;width:min(80mm,calc(100vw - 16px));max-width:calc(100vw - 16px)}}
.live-input:invalid{border-bottom-color:#b91c1c}
/* Protected component rules — do not alter without regression review. */

/* Canonical mobile safeguards formerly mixed into UI chrome. */
@media screen and (max-width:700px){
 .patient-contact-row .row-label{white-space:nowrap}
 .patient-contact-row .patient-phone-input{min-width:0;max-width:140px;width:140px;flex:0 1 140px}
 .manual-payment-options{margin:0 4px;gap:8px}
 .ledger-grid-wrap{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:8px!important}
 .ledger-box{min-width:0;padding:8px 5px}.ledger-header{overflow-wrap:anywhere}.ledger-content{gap:3px;min-width:0}.ledger-field{min-width:0;max-width:100%!important}.currency-label{font-size:10px}
 .pay-opts-row{flex-wrap:wrap;row-gap:7px}.pay-opts-row .ref-label{margin-right:0}.pay-opts-row .ref-dots{flex:1 1 90px;min-width:70px}
}
.ledger-grid-wrap{grid-template-columns:repeat(3,minmax(0,1fr))}
.ledger-box{min-width:0}.section-signatures{direction:rtl}.section-signatures .sig-column{direction:rtl}
.footer-meta-line{align-items:center}.footer-address{unicode-bidi:isolate}.footer-phones{direction:ltr;unicode-bidi:isolate;font-variant-numeric:tabular-nums}

/* =========================================================
   PRODUCTION LAYOUT CONTRACT — canonical single-source rules
   ========================================================= */

/* Header: fixed three-column structure keeps the official logo centered. */
.receipt-header{
  display:grid!important;
  grid-template-columns:minmax(0,1fr) calc(80px * var(--logo-scale,1)) minmax(0,1fr)!important;
  align-items:center!important;
  column-gap:8px!important;
  width:100%!important;
  padding:7px 6px 5px!important;
}
.receipt-header .header-doc{min-width:0!important;text-align:right!important;justify-self:stretch!important;}
.receipt-header .header-logo-wrap{
  width:calc(80px * var(--logo-scale,1))!important;
  height:calc(80px * var(--logo-scale,1))!important;
  justify-self:center!important;align-self:center!important;margin:0 auto!important;
}
.receipt-header .header-clinic{min-width:0!important;text-align:left!important;justify-self:stretch!important;}
.receipt-header .header-doc h2,.receipt-header .header-clinic h2{line-height:1.18!important;}
.receipt-header .header-doc p,.receipt-header .header-clinic p{line-height:1.2!important;margin-top:1px!important;}
.receipt-paper .clinic-logo{width:100%!important;height:100%!important;max-width:none!important;max-height:none!important;object-fit:contain!important;background:transparent!important;border:0!important;border-radius:0!important;box-shadow:none!important;padding:0!important;}

/* Typography scaling remains compatible with existing settings. */
.receipt-paper{font-size:calc(10px * var(--receipt-body-scale));}
.receipt-paper .main-voucher-title{font-size:calc(15px * var(--receipt-title-scale))!important;}
.receipt-paper .receipt-header h2{font-size:calc(13px * var(--receipt-heading-scale));}
.receipt-paper .receipt-header p{font-size:calc(9px * var(--receipt-body-scale));}
.receipt-paper .meta-label,.receipt-paper .row-label{font-size:calc(9.5px * var(--receipt-heading-scale));}
.receipt-paper .paid-title{font-size:calc(11px * var(--receipt-heading-scale));}
.receipt-paper .paid-unit,.receipt-paper .pay-opts-row,.receipt-paper .payment-options-group{font-size:calc(9.5px * var(--receipt-body-scale));}
.receipt-paper .services-banner{font-size:calc(9.5px * var(--receipt-heading-scale));}
.receipt-paper .custom-check-item{font-size:calc(9px * var(--receipt-body-scale));}
.receipt-paper .ledger-header{font-size:calc(9.5px * var(--receipt-heading-scale));}
.receipt-paper .currency-label{font-size:calc(9.5px * var(--receipt-body-scale));}
.receipt-paper .sig-title{font-size:calc(9.5px * var(--receipt-body-scale));}
.receipt-paper .stamp-frame span{font-size:calc(8px * var(--receipt-body-scale));}
.receipt-paper .footer-blessing{font-size:calc(9px * var(--receipt-heading-scale));}
.receipt-paper .footer-meta-line{font-size:calc(8px * var(--receipt-body-scale));}
.receipt-paper .live-input{font-size:calc(10px * var(--receipt-body-scale));}
.receipt-paper .paid-numeric{font-size:calc(13px * var(--receipt-heading-scale));}

/* Canonical paper date: the blank template is a configurable write-in line.
   The numeric/dotted text lives in one isolated RTL island (#blankDateSlots)
   and the era letter "م" is a separate isolated token that is always pinned
   last, so BiDi can never reorder it across the numerals. */
.date-field-wrapper{display:flex;align-items:center;gap:8px;column-gap:8px;direction:rtl!important;white-space:nowrap!important;}
.date-field-wrapper .meta-label{flex:0 0 auto!important;margin-inline-end:2px;}

/* Digital vs blank-paper date are two explicit sibling views. Only one is
   rendered per mode; the export class wins so the blank template can never
   inherit the digital input and the digital export can never show dots.
   The blank template view is enforced with !important because html2canvas can
   re-evaluate the cloned document independently of the live page. */
.digital-date-view{display:inline-flex!important;}
.blank-date-view{display:none!important;}
body.blank-template-export .digital-date-view,
[data-mode="manual"] .digital-date-view{display:none!important;visibility:hidden!important;}
body.blank-template-export .blank-date-view,
[data-mode="manual"] .blank-date-view{display:flex!important;visibility:visible!important;}

/* Blank template captures the clean printable paper (#receiptPrintArea /
   .receipt-paper) only. Interactive form chrome — the editable inputs, the
   hidden native date input and the calendar picker button — must never render
   in the exported sheet. */
body.blank-template-export #receiptPrintArea input,
body.blank-template-export #receiptPrintArea select,
body.blank-template-export #receiptPrintArea textarea,
body.blank-template-export #receiptPrintArea button,
body.blank-template-export #receiptPrintArea .date-picker-btn,
body.blank-template-export #receiptPrintArea .hidden-date-picker{display:none!important;visibility:hidden!important;}

/* Blank write-in date: label + slots + era as three isolated flex islands. */
.blank-date-view{
  align-items:center!important;
  gap:6px!important;
  direction:rtl!important;
  unicode-bidi:isolate!important;
  white-space:nowrap!important;
  font-size:10px!important;
  line-height:1!important;
  font-weight:800!important;
  color:var(--primary)!important;
}
.blank-date-label{flex:0 0 auto!important;font-weight:800!important;color:var(--primary)!important;}
.blank-date-slots{
  flex:0 0 auto!important;
  direction:rtl!important;
  unicode-bidi:isolate!important;
  white-space:nowrap!important;
  font-weight:800!important;
  letter-spacing:1px!important;
  font-variant-numeric:tabular-nums!important;
}
.blank-date-era{
  flex:0 0 auto!important;
  display:inline-block!important;
  direction:rtl!important;
  unicode-bidi:isolate!important;
  white-space:nowrap!important;
  font-weight:900!important;
  color:var(--primary)!important;
}
.digital-date-control{display:inline-flex!important;align-items:center!important;gap:8px!important;direction:ltr!important;flex:0 0 auto!important;}
.digital-date-control #digDate{width:120px!important;text-align:center!important;font-weight:700!important;direction:ltr!important;}
.date-picker-btn{background:none;border:0;cursor:pointer;font-size:12px;padding:2px 4px;}
.hidden-date-picker{position:absolute!important;width:1px!important;height:1px!important;opacity:0!important;pointer-events:none!important;}
[data-mode="manual"] .date-field-wrapper .digital-only{display:none!important;}
[data-mode="digital"] .date-field-wrapper .manual-only{display:none!important;}

/* Footer: address + phone numbers are independent BiDi islands. */
.footer-meta-line{flex-direction:column!important;justify-content:center!important;align-items:center!important;gap:3px!important;text-align:center!important;}
.footer-address{white-space:nowrap!important;width:100%!important;text-align:center!important;unicode-bidi:isolate!important;direction:rtl!important;}
.footer-phones{
  display:inline-flex!important;width:auto!important;max-width:100%!important;justify-content:center!important;align-items:center!important;
  gap:10px!important;white-space:nowrap!important;overflow:visible!important;direction:ltr!important;unicode-bidi:isolate!important;
  font-family:monospace,sans-serif!important;font-size:8.5px!important;font-weight:800!important;color:#073b63!important;
  padding:2px 0!important;border:0!important;background:transparent!important;flex:0 0 auto!important;
}
.footer-phones span{direction:ltr!important;unicode-bidi:isolate!important;white-space:nowrap!important;font-weight:900!important;}
.footer-phones .phone-separator{color:#94a3b8!important;font-weight:900!important;}

@media print{
  .receipt-header{grid-template-columns:minmax(0,1fr) calc(80px * var(--logo-scale,1)) minmax(0,1fr)!important;column-gap:6px!important;}
  .receipt-header .header-logo-wrap{width:calc(80px * var(--logo-scale,1))!important;height:calc(80px * var(--logo-scale,1))!important;}
  .date-sequence{font-size:10px!important;}
}

/* VISUAL QUALITY PASS v1.1 — preserves the existing clinic identity and layout contract. */
.receipt-paper{border-radius:10px!important;box-shadow:0 10px 30px rgba(15,23,42,.10)!important;border:1px solid rgba(7,59,99,.12)!important;background:#fff!important}
.receipt-header{padding:7px 6px 5px!important}
.header-logo-wrap{filter:none!important;background:transparent!important;border:0!important;border-radius:0!important;box-shadow:none!important;padding:0!important}
.clinic-logo{background:transparent!important;border:0!important;border-radius:0!important;box-shadow:none!important;padding:0!important;object-fit:contain}
.receipt-title-box{margin:5px 0 7px!important}
.title-strip{min-height:34px!important;border-radius:10px!important;box-shadow:0 3px 10px rgba(7,59,99,.08)}
.main-voucher-title{letter-spacing:.1px!important}
.meta-data-strip{border-radius:9px!important;box-shadow:0 2px 8px rgba(15,23,42,.05)!important}
.section-patient,.section-services,.section-ledger,.section-signatures{border-radius:9px!important}
.section-patient{background:linear-gradient(90deg,rgba(248,250,252,.82),rgba(255,255,255,.95))!important}
.row-flex{min-height:29px!important}
.live-input{border-radius:6px!important;background:#fff!important;border:1px solid rgba(100,116,139,.22)!important;box-shadow:inset 0 1px 2px rgba(15,23,42,.03)!important}
.live-input:focus{border-color:var(--primary,#073b63)!important;box-shadow:0 0 0 2px rgba(7,59,99,.10)!important;outline:none!important}
.paid-hero-bar{border-radius:9px!important;box-shadow:0 4px 12px rgba(7,59,99,.08)!important}
.services-banner{border-radius:7px 7px 0 0!important}
.custom-check-item{border-radius:7px!important;transition:transform .12s ease,box-shadow .12s ease!important}
.custom-check-item.active{box-shadow:0 2px 7px rgba(7,59,99,.10)!important}
.ledger-box{border-radius:8px!important;overflow:hidden!important}
.balance-highlight{box-shadow:0 4px 12px rgba(7,59,99,.10)!important}
.sig-draw-line{margin-top:14px!important}
.receipt-footer{border-radius:8px!important;margin-top:6px!important}
@media screen and (max-width:700px){.receipt-paper{box-shadow:none!important;border-radius:7px!important}.receipt-header{column-gap:5px!important}}


/* =========================================================
   EXPORT RENDER CONTRACT — Arabic/Canvas stability
   ========================================================= */
body.exporting-receipt .receipt-paper,
body.exporting-receipt .receipt-paper * {
    font-family: "Cairo","Noto Kufi Arabic","Tajawal",sans-serif !important;
    letter-spacing: normal !important;
    font-feature-settings: "liga" 1, "calt" 1 !important;
    -webkit-font-feature-settings: "liga" 1, "calt" 1 !important;
    text-rendering: geometricPrecision !important;
}
body.exporting-receipt .receipt-paper {
    direction: rtl !important;
    transform: none !important;
}
body.exporting-receipt .receipt-header,
body.exporting-receipt .title-strip,
body.exporting-receipt .meta-data-strip,
body.exporting-receipt .row-flex,
body.exporting-receipt .paid-hero-bar,
body.exporting-receipt .pay-opts-row,
body.exporting-receipt .section-signatures {
    transform: none !important;
}
body.exporting-receipt .main-voucher-title,
body.exporting-receipt .row-label,
body.exporting-receipt .meta-label,
body.exporting-receipt .paid-title,
body.exporting-receipt .paid-unit,
body.exporting-receipt .tafqeet-text,
body.exporting-receipt .tafqeet-closing,
body.exporting-receipt .services-banner,
body.exporting-receipt .custom-check-item,
body.exporting-receipt .ledger-header,
body.exporting-receipt .sig-title,
body.exporting-receipt .footer-blessing,
body.exporting-receipt .footer-address {
    direction: rtl !important;
    unicode-bidi: isolate !important;
    letter-spacing: normal !important;
}
body.exporting-receipt .main-voucher-title {
    display: inline-block !important;
    white-space: nowrap !important;
}
body.exporting-receipt .row-label {
    flex: 0 0 auto !important;
}
body.exporting-receipt .patient-contact-row .patient-phone-input {
    direction: ltr !important;
    unicode-bidi: isolate !important;
}


/* ===== v1.2.0 logo/date/export quality contract ===== */
.clinic-logo{
  width:100%!important;height:100%!important;
  aspect-ratio:1/1!important;
  object-fit:contain!important;
  object-position:center!important;
  display:block!important;
  image-rendering:auto!important;
  background:transparent!important;border:0!important;border-radius:0!important;box-shadow:none!important;padding:0!important;
}
.header-logo-wrap{aspect-ratio:1/1!important;overflow:visible!important;background:transparent!important;border:0!important;border-radius:0!important;box-shadow:none!important;padding:0!important}
/* Date print visibility is owned by css/print.css; template input is owned by css/templates.css. */
