/* Declare before the mobile and mode styles. Hidden state always wins. */
@layer finaria-visibility, finaria-mode, finaria-forms, finaria-mobile;
@layer finaria-visibility {
 [data-form-more-hidden] {display:none !important}
}
@layer finaria-forms {
 body .main [data-compact-grid] {
  display:grid !important;grid-template-columns:repeat(2,minmax(0,1fr)) !important;
  grid-template-areas:none !important;grid-auto-rows:auto !important;grid-auto-flow:row !important;
  gap:12px !important;align-items:start !important;align-content:start !important;
  min-width:0 !important;width:100% !important;max-width:100% !important;
 }
 body .main [data-compact-grid] > * {
  grid-column:auto !important;grid-row:auto !important;order:0 !important;min-width:0 !important;
  width:100% !important;max-width:100% !important;margin-inline:0 !important;justify-self:stretch !important;
 }
 body .main [data-compact-grid] > label {
  flex-basis:auto !important;align-items:stretch !important;text-align:start;
 }
 body .main [data-compact-grid] :is(input:not([type=checkbox]):not([type=radio]):not([type=hidden]):not([type=file]),select,textarea,.selectx,.selectx-btn) {
  box-sizing:border-box;min-width:0 !important;width:100% !important;max-width:100% !important;
 }
 body .main [data-compact-grid] :is(.inputAction,.partyPickerControl,.warehouseSelectControl,.buyerCodeControl,.treasuryAccountSelectControl) {
  min-width:0 !important;width:100% !important;
 }
 body .main [data-compact-grid] :is(.inputAction,.partyPickerControl,.warehouseSelectControl,.buyerCodeControl,.treasuryAccountSelectControl) > :is(input,.selectx) {
  flex:1 1 0 !important;width:0 !important;
 }
 body .main [data-compact-grid] > :is([data-compact-span=full],.formsep,.formmsg,.row,.treasuryActions,.accountingForm__actions,.accountingForm__two,.accountingForm__span2,.treasuryForm__span3,.formMoreToggle,[data-compact-fill-row]) {
  grid-column:1/-1 !important;
 }
 body .main [data-has-more] > .formsep {display:none !important}
 body .main [data-has-more] > [data-more-field] {order:80 !important}
 body .main [data-has-more] > .formMoreToggle {order:70 !important}
 body .main [data-has-more] > :is(.row,.formmsg,.treasuryActions,.accountingForm__actions) {order:100 !important}
 .formMoreToggle {
  font:inherit;font-size:14px;text-align:start;color:var(--accent,var(--pri,#2875e7));
  background:transparent;border:0;border-top:1px solid var(--border);padding:12px 0;min-height:44px;cursor:pointer;
 }
 .formMoreToggle::before {content:'＋';margin-inline-end:8px}
 .formMoreToggle[aria-expanded=true]::before {content:'−'}
 .formMoreToggle:focus-visible {outline:2px solid var(--accent,#2875e7);outline-offset:2px}
 body .page--send .buyerFacts {
  display:grid !important;grid-template-columns:repeat(2,minmax(0,1fr)) !important;
  grid-auto-flow:row dense !important;
  gap:8px !important;align-items:stretch !important;justify-content:stretch !important;
 }
 body .page--send .buyerFacts > .fact {
  width:100% !important;max-width:100% !important;min-width:0 !important;
  grid-column:auto !important;grid-row:auto !important;box-sizing:border-box;
 }
 body .page--send .buyerFacts > .fact--wide {grid-column:1/-1 !important}
 body .page--send :is(.invHeadGrid,.invHeadCol) {align-items:start !important;align-content:start !important;min-height:0 !important}
 @media(max-width:380px){body .main [data-compact-grid]{column-gap:8px !important}}
}
