/* CrownCause phone fixes. Load after css/app.css.
   Screens 700px wide or narrower only. */
@media (max-width: 700px) {
  .page-title-with-hide {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 12px;
    max-width: 100%;
  }
  .page-title-with-hide > h2 { flex: 1 1 auto; min-width: 0; }
  .page-title-with-hide > .court-search { flex: 1 1 100%; order: 3; min-width: 0; }
  .page-title-with-hide > .court-search input { width: 100%; min-width: 0; }
  .page-title-with-hide > .page-title-tools {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    flex: 1 1 100%;
    order: 4;
    min-width: 0;
    max-width: 100%;
  }
  .page-title-tools .page-title-cta {
    flex: 1 1 auto;
    min-width: 0;
    max-width: none;
    white-space: normal;
    text-align: center;
  }
  .page-title-tools .hide-page-wrap { margin-left: auto; }

  /* The box around the table scrolls. The table keeps its rows.
     Open row menus get room below so the box does not cut them off. */
  .view .acc-b:has(> .table),
  .view .q-all-scroll {
    max-width: 100%;
    min-width: 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .view .acc-b:has(> .table) > .table,
  .view .q-all-scroll > .table {
    width: max-content;
    min-width: 100%;
  }
  .view .acc-b:has(> .table):has(.qc-more-menu:not([hidden])),
  .view .q-all-scroll:has(.qc-more-menu:not([hidden])) {
    padding-bottom: 320px;
  }

  #adminBar.on { flex-wrap: wrap; gap: 6px 10px; padding: 8px 12px; }
  #adminBar.on #viewAsNote { flex: 1 1 100%; font-size: 12px; line-height: 1.3; }
  #adminBar.on select { min-width: 0; max-width: 100%; }

  .view button.cta,
  .view button.ghost { font-size: 12px; min-height: 38px; }
  .view .pill,
  .view .pill.gold,
  .view .pill.crown-title-pill,
  .view .pill.q-title-pill,
  .view .req-mark,
  .side-count { font-size: 11px; }
}
