/* Shared screen layouts. Paper documents retain their print layout. */
@media screen {
  html { -webkit-text-size-adjust:100%; text-size-adjust:100%; }
  body { max-width:100%; }
  :where(main,section,article,fieldset,form,nav,.wrap,.container,.content,.panel,.card,.pulse-card) { min-width:0; }
  :where(input,select,textarea,button) { box-sizing:border-box; max-width:100%; font:inherit; }
  :where(img,video,canvas,svg) { max-width:100%; }
  :where(img,video) { height:auto; }
  :where(h1,h2,h3,p,label,legend,a,dt,dd) { overflow-wrap:anywhere; }
  :where(button,.btn,.button,summary) { touch-action:manipulation; }
  :where(a,button,input,select,textarea,summary,[tabindex]):focus-visible { outline:3px solid #2463a7; outline-offset:3px; }
  .bos-table-scroll { width:100%; max-width:100%; overflow-x:auto; overscroll-behavior-inline:contain; -webkit-overflow-scrolling:touch; }
  .bos-table-scroll > table { display:table!important; width:100%; max-width:none!important; }
}
@media screen and (max-width:760px) {
  :where(input:not([type=checkbox]):not([type=radio]):not([type=hidden]),select,textarea) { font-size:16px!important; min-height:44px; }
  :where(button,.btn,.button,summary) { min-height:44px; }
  :where(.grid,.cards,.form-grid,.form-row,.check-grid,.checks,.two,.columns,.review-grid,.order-layout,.dashboard-grid,.oe-grid) { grid-template-columns:minmax(0,1fr)!important; }
  :where(.grid,.cards,.form-grid,.form-row,.check-grid,.checks,.two,.columns,.review-grid,.order-layout,.dashboard-grid,.oe-grid) > * { min-width:0; }
  :where(.grid,.cards,.form-grid,.form-row,.check-grid,.checks,.two,.columns) > [style*="grid-column"] { grid-column:1/-1!important; }
  :where(.page-actions,.page-head,.section-heading,.section-title,.inline-form,.filter-form,.top,.actions) { flex-wrap:wrap; min-width:0; gap:12px; }
  :where(.inline-form,.filter-form) > * { min-width:0; max-width:100%; }
  :where(.wrap,.container,.content) { box-sizing:border-box; max-width:100%; padding-inline:16px; }
  :where(fieldset) { margin-inline:0; }
  :where(dl) { grid-template-columns:minmax(0,1fr); }
  .bos-table-scroll > table { min-width:var(--bos-table-min,560px); }
  .bos-table-scroll :where(th,td) { overflow-wrap:anywhere; }
  body[data-bos-office] > aside { box-sizing:border-box; width:100%; position:relative; inset:auto; height:auto; max-height:none; }
  body[data-bos-office] > main { width:100%; margin-left:0; min-width:0; }
  body[data-bos-office] > main > header { height:auto; min-height:72px; flex-wrap:wrap; gap:12px; padding:14px 16px; }
  body[data-bos-office] .bos-top-actions { flex-wrap:wrap; }
  body[data-bos-office] #bos-primary-nav a { min-height:44px; box-sizing:border-box; }
  body[data-bos-office] .center-group summary { min-height:48px; }
  :where(.auth-card) { box-sizing:border-box; max-width:100%; padding:24px 18px; }
}
@media (prefers-reduced-motion:reduce) { html { scroll-behavior:auto!important; } }
@media print { .bos-table-scroll { overflow:visible!important; } .bos-table-scroll > table { display:table!important; min-width:0!important; } }

@media screen and (max-width:1024px) { :where(input:not([type=checkbox]):not([type=radio]):not([type=hidden]),select,textarea) { font-size:16px!important; min-height:44px; } :where(button,.btn,.button,summary) { min-height:44px; } }
