/* Polish of the Simple tab (kept apart so the pattern files stay untouched): touch sizes and small overflow fixes. Logical properties only (RTL-safe).
 * On a phone every button, tile and switch is at least 40px tall; on a larger screen nothing changes. */
@media (max-width:480px) {
  /* the invisible tap area of the "?" and expand buttons runs a few pixels past the edge of the form: it must not make the form scroll sideways */
  .sm-form { overflow-x: clip; }
  .sm-opt { min-height: 40px; display: inline-flex; flex-direction: column; align-items: center; justify-content: center; }
  .sm-switch { min-height: 40px; }
  .sm-linkbtn { min-height: 40px; display: inline-flex; align-items: center; }
  .sm-q, .sm-cpill { min-height: 40px; }
  .sm-cdot { min-inline-size: 40px; min-block-size: 40px; }
  .sm-form .ps-tile, .sm-form .th-tile { min-height: 40px; }
  .sm-form .sp-step, .sm-form .nm-btn, .sm-form .th-btn { min-height: 40px; min-inline-size: 40px; }
  /* the forms of lists and groups drawn inside Simple (add a row, remove, colour, tick box), the "type it / upload it" switch, summaries, the password eye, picture position cells */
  .sm-form .pfw-add, .sm-form .pfw-b { min-height: 40px; }
  .sm-form .pfw-x, .sm-form .pfw-b.ico { min-height: 40px; min-inline-size: 40px; }
  .sm-form .pfw-sw { inline-size: 40px; block-size: 40px; }
  .sm-form .pfw-check { min-height: 40px; display: flex; align-items: center; gap: 8px; }
  .sm-form .ic-seg button { min-height: 40px; }
  .sm-form summary { min-height: 40px; display: flex; align-items: center; }
  .sm-form .pw-eye-btn { min-height: 40px; min-inline-size: 40px; }
  .sm-form .vp-cell, .sm-form .vp-pos.picture .vp-cell, .sm-form .vp-pos.page .vp-cell { min-height: 40px; }
}
/* the tap area of the "?" beside a label that fills the whole row stays inside the row (it made documents.compare scroll sideways by 6px) */
.sm-label .hint-btn::after { inset-block: -12px; inset-inline: -12px -4px; }
/* the full-screen button of a big box: 26px to look at, a 40px square to tap, and it never reaches past the end of the label row */
.sm-label .pf-expand::after { inset-block: -7px; inset-inline: -14px 0; }
/* "More details" inside a Simple list form (invoice lines, the two parties) */
.pfw-more { margin-block-start: 8px; }
.pfw-more > summary { cursor: pointer; font-size: 12.5px; font-weight: 700; color: var(--pink-dark, var(--accent)); padding-block: 8px; min-height: 40px; display: flex; align-items: center; }
.pfw-more[open] > summary { margin-block-end: 4px; }
