/* Zakupki v1.9.29 — mobile navigation/chat hotfixes over v1.9.27. */

/* Invoice selector lives next to the file name instead of occupying its own row. */
.v1929-invoice-file-line{display:flex;align-items:center;gap:8px;min-width:0;max-width:100%}
.v1929-invoice-file-line .doc-link{min-width:0;max-width:100%;overflow-wrap:anywhere}
.v1929-inline-invoice-checkbox{flex:0 0 20px;width:20px!important;height:20px!important;margin:0!important}

/* Allow JavaScript to horizontally clamp the read-receipt popup into the visible viewport. */
.v1920-read-popover{transform:translateX(var(--v1929-read-shift,0px))}

@media (max-width:760px), (orientation:landscape) and (max-height:600px) and (max-width:1280px){
  /* Make the invoice filename + selector a compact phone row. */
  .v1916-invoice-row .v19-file-name{flex:1 1 100%!important;min-width:0!important}
  .v1929-invoice-file-line{width:100%;justify-content:flex-start;align-items:center;gap:7px}
  .v1929-invoice-file-line .doc-link{flex:0 1 auto}
  .v1929-inline-invoice-checkbox{width:22px!important;height:22px!important;flex-basis:22px!important}

  /* The viewers popup can never be wider than the phone viewport. */
  .v1920-read-popover{min-width:min(180px,calc(100vw - 24px))!important;max-width:calc(100vw - 24px)!important;box-sizing:border-box}

  /* VisualViewport JS updates this while the Android keyboard opens/closes. */
  .v1916-chat-feed{max-height:min(420px,var(--v1929-chat-feed-max,46dvh))!important}
}
