/* Declared first in each shell. Important layer priority beats theme rules
   without changing any dimensions, directionality, print layout or values. */
@layer vertexTextAlignment {
 @media screen {
  html[data-vx-text-align="right"] {--vx-screen-align:right}
  html[data-vx-text-align="center"] {--vx-screen-align:center}
  html[data-vx-text-align="left"] {--vx-screen-align:left}
  /* The preference belongs to document data, not application navigation or
     window captions. Explicit document roots also cover the mobile forms. */
  html[data-vx-text-align] :is(#tradeForm,#voucherForm,#journalForm,#receiptForm,#saleForm,#returnForm,#returnSourceForm,.vp-invoice-form)
   :where(p,label,legend,th,td,input:not([type=checkbox]):not([type=radio]):not([type=range]),textarea,select,output,[role=cell],[role=columnheader],.ve-totals,.trade-total):not(:where(.rwc-caption,.rwc-caption *,.ve-commandbar,.ve-commandbar *,header,header *,nav,nav *,.vx-text-alignment,.vx-text-alignment *)) {
   text-align:var(--vx-screen-align)!important;
  }
  .vx-text-alignment {
   display:inline-flex!important;align-items:center!important;justify-content:center!important;
   flex:0 0 auto!important;gap:3px!important;direction:rtl!important;
   padding:2px!important;margin:2px 6px!important;max-width:100%!important;
   background:#f2f4f7!important;border:1px solid #bbc3cd!important;border-radius:4px!important;
  }
  .vx-text-alignment > button {
   box-sizing:border-box!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;
   width:34px!important;height:30px!important;min-width:34px!important;min-height:30px!important;
   padding:5px!important;margin:0!important;border:1px solid transparent!important;border-radius:2px!important;
   background:transparent!important;color:#334155!important;cursor:pointer!important;box-shadow:none!important;
  }
  .vx-text-alignment > button[aria-pressed=true] {background:#cbd5e1!important;border-color:#64748b!important;color:#132d4a!important}
  .vx-text-alignment > button:hover {background:#dbe7f3!important}
  .vx-text-alignment > button:focus-visible {outline:2px solid #155eae!important;outline-offset:1px!important}
  .vx-text-alignment svg {display:block!important;width:20px!important;height:20px!important;fill:none!important;stroke:currentColor!important;stroke-width:1.2!important}
  dialog > .vx-text-alignment {position:sticky!important;bottom:0!important;z-index:2!important}
  @media(pointer:coarse) {.vx-text-alignment > button {width:44px!important;height:44px!important}}
 }
 @media print {.vx-text-alignment {display:none!important}}
}
