/* InvoiceSafe — hardening: keyboard, touch, long text.
   Scoped to the UI; never alters invoice paper/print formatting. */
body:not(.is-home) #settings-drawer:focus{outline:none}
body:not(.is-home) .editor :is(.centre-name,.section-note,.field label,.helper){overflow-wrap:anywhere}
#is-dashboard .is-card-location,#is-dashboard .is-card-info{min-width:0;overflow-wrap:anywhere}
#is-dashboard .is-doc-actions button:focus-visible{outline:2px solid var(--ifs-focus);outline-offset:2px}
@media(max-width:700px){
  body:not(.is-home) .is-back{min-height:44px;display:inline-flex;align-items:center}
  body:not(.is-home) .editor-section-toggle{min-height:44px;padding-block:5px}
  body:not(.is-home) .topbar .toolbar .btn{min-height:44px}
  body:not(.is-home) #save-invoice{min-width:44px;min-height:44px}
  #is-dashboard :is(.is-side-link,.is-filter,#is-transfer-trigger,#is-add-client,.is-view-toggle button){min-height:44px}
  #is-dashboard .is-view-toggle button{min-width:44px}
  #is-dashboard .is-grid:not(.is-list) .is-doc-actions button{min-height:44px}
  #is-dashboard .is-sort-label select{min-height:44px}
  body:not(.is-home) .preview-zone :is(.preview-pencil,.zoom-fit){min-height:44px!important;height:44px!important}
  body:not(.is-home) .preview-zone .zoom-toolbar{min-height:44px!important;height:44px!important}
  body:not(.is-home) .preview-zone .zoom-toolbar button{min-height:44px!important;min-width:42px}
}
@media(max-width:390px){
  body:not(.is-home) .topbar .toolbar{gap:6px}
  #is-dashboard .is-grid:not(.is-list) .is-doc-actions{gap:5px}
}
@media(forced-colors:active){
  #is-dashboard :is(.is-doc-click,.is-new-card,.is-side-link,.is-filter):focus-visible,
  body:not(.is-home) :is(button,input,select,textarea):focus-visible{outline:2px solid Highlight!important}
}

/* Release refinement: invoice preview centered vertically and horizontally in list view.
   The white invoice paper and document typography are intentionally unchanged. */
#is-dashboard .is-grid.is-list .is-preview {
  align-items:center!important;
  justify-content:center!important;
  padding:0!important;
}
#is-dashboard .is-grid.is-list .is-real-thumb {
  transform-origin:center center!important;
}
