/* Shared fallback for application forms. Existing module rules retain priority.
   Excludes toggles, file/color/range controls and hidden values. */
:where(.sap-document,.json-modal,.confirm-modal,.panel) :where(
  input:not([type=checkbox]):not([type=radio]):not([type=hidden]):not([type=file]):not([type=color]):not([type=range]):not([type=submit]):not([type=button]),
  select,textarea){
  box-sizing:border-box;
  border:1px solid #d9dfe5;
  border-radius:6px;
  background:#fff;
  color:var(--ink);
  font-family:'DM Sans',sans-serif;
  font-size:11px;
  padding:9px 10px;
  max-width:100%;
}
:where(.sap-document,.json-modal,.confirm-modal,.panel) :where(input,select,textarea):focus-visible{
  outline:2px solid #52749b;
  outline-offset:2px;
}
:where(.sap-document,.json-modal,.confirm-modal,.panel) :where(input,select,textarea):disabled{
  cursor:not-allowed;
  background:#f6f8fa;
  color:#64748b;
}
:where(.sap-document,.json-modal,.confirm-modal,.panel) :where(input,textarea)[readonly]{background:#f6f8fa}
/* Footer selectors were missing from the existing header/line-entry selectors. */
.document-notes :is(select,input:not([type=checkbox]):not([type=radio]):not([type=hidden])){
  display:block;width:100%;height:36px;margin-top:5px;
  border:1px solid #d9dfe5;border-radius:6px;padding:9px 10px;
  font:inherit;
}
.document-notes textarea{font-family:'DM Sans',sans-serif;font-size:11px}
