/* PANEL-90 Phase 1, Workstream E (item 27) — mobile pass.
   EVERYTHING in this file lives inside one max-width media
   query: desktop rendering is byte-for-byte untouched.
   Screens targeted (templates read 2026-10-31):
     * the desk submissions queue — templates/submissions.html
       (table[data-queue-keys], tr[data-queue-row], #bulk-form,
       .row-check, the per-row form.inline status select,
       .pager). The same [data-queue-keys] rules also cover the
       other keyboard queues that carry the attribute (respect
       queue, mirror worklist, failure inbox).
     * the desk submission review — templates/submission_detail.html
       (.grid2 two-card row, .card forms, the status form).
     * the partner queue / review — templates/pp_queue.html
       (.pp-card, the director decide form posting to
       /partner/queue/<id>/decide, .btn.small, the reason input).
   Rules: tap targets at least 44px, single-column stacking,
   and sticky action bars where the existing markup allows it
   with CSS only (the queue's bulk-action bar sticks to the top;
   the partner decide form sticks to the bottom of its card). */

@media (max-width: 760px) {

  /* ---- submissions queue + every [data-queue-keys] queue ---- */
  table[data-queue-keys] {
    display: block;
    width: 100%;
    overflow-x: auto;
  }
  table[data-queue-keys] tr[data-queue-row] {
    display: block;
    padding: 0.5rem 0;
  }
  table[data-queue-keys] tr[data-queue-row] td {
    display: block;
    width: 100%;
    box-sizing: border-box;
    padding: 0.3rem 0.5rem;
  }
  table[data-queue-keys] .row-check {
    width: 28px;
    height: 28px;
    min-width: 44px;
    min-height: 44px;
  }
  table[data-queue-keys] form.inline select,
  table[data-queue-keys] form.inline button {
    min-height: 44px;
    font-size: 1rem;
  }
  table[data-queue-keys] form.inline select {
    width: 100%;
    margin-bottom: 0.4rem;
  }
  table[data-queue-keys] form.inline button {
    width: 100%;
  }

  /* bulk-action bar sticks while the queue scrolls */
  #bulk-form > div:first-of-type {
    position: sticky;
    top: 0;
    z-index: 20;
    background: #161616;
    padding: 0.5rem;
    flex-wrap: wrap;
  }
  #bulk-form > div:first-of-type select,
  #bulk-form > div:first-of-type input,
  #bulk-form > div:first-of-type button {
    min-height: 44px;
    font-size: 1rem;
    flex: 1 1 100%;
  }
  .pager a,
  .pager .cur {
    display: inline-block;
    min-height: 44px;
    line-height: 44px;
    padding: 0 0.8rem;
  }

  /* ---- submission review (submission_detail.html) ---- */
  .grid2 {
    display: block;
  }
  .grid2 > .card {
    margin-bottom: 1rem;
  }
  .card form label {
    display: block;
    margin-bottom: 0.6rem;
  }
  .card form input[type="text"],
  .card form input[type="url"],
  .card form select {
    width: 100% !important;
    max-width: 100%;
    box-sizing: border-box;
    min-height: 44px;
    font-size: 1rem;
  }
  .card form button[type="submit"] {
    min-height: 44px;
    min-width: 44px;
    font-size: 1rem;
    padding: 0.6rem 1rem;
  }

  /* ---- partner queue / review (pp_queue.html) ---- */
  .pp-card form[action*="/partner/queue/"] {
    position: sticky;
    bottom: 0;
    background: #161616;
    padding: 0.5rem;
  }
  .pp-card form[action*="/partner/queue/"] input[type="text"] {
    min-height: 44px;
    font-size: 1rem;
    width: 100%;
    box-sizing: border-box;
  }
  .pp-card .btn,
  .pp-card button.btn {
    min-height: 44px;
    min-width: 44px;
    font-size: 1rem;
    padding: 0.6rem 1rem;
  }
}
