/*
 * t23-fixDJ item 5 (page only, no switch): the board's client list never makes the page scroll sideways at phone
 * width (360 to 430 px). The board's client cards (#cc-board, js/v21_clientcards.js), the D3 client groups and the
 * D1 client list (js/v149_views.js) sized their grids from their content, so one long word on a card (an email
 * address, a file name, a claim number, a link) made the card wider than the phone and the whole page moved sideways.
 * Now: a long word wraps inside its own box (overflow-wrap: anywhere), grid and flex children may be narrower than
 * their content (min-width: 0), no box is wider than its column (max-width: 100%), and at phone width the chips, the
 * badges and the card's buttons wrap instead of running on. Every rule hangs off the client list's own classes
 * (.cc-*, #cc-board, .b149-*, #b149-view), so nothing else on the page changes; at desktop width the only change is
 * that a word too long for its box wraps. Loaded last (index.html), after styles/v21_clientcards.css and
 * styles/v149_views.css.
 */

/* ---------------------------------------------------------------- every width: long words wrap, children shrink */
#cc-board, #cc-board .cc-list, #cc-board .cc-li, #cc-board .cc-card { min-width: 0; max-width: 100%; }
#cc-board .cc-card { grid-template-columns: minmax(0, 1fr); overflow-wrap: anywhere; }
#cc-board .cc-card > *, #cc-board .cc-head > *, #cc-board .cc-why > *, #cc-board .cc-foot > *, #cc-board .cc-body > * { min-width: 0; }

#b149-view, .b149-groups, .b149-grp, .b149-rows, .b149-row, .b149-gh, .b149-gn, .b149-rt, .b149-rc { min-width: 0; max-width: 100%; }
.b149-groups, .b149-grp, .b149-rows { grid-template-columns: minmax(0, 1fr); }
.b149-grp, .b149-name, .b149-gm, .b149-rt1, .b149-gfile { overflow-wrap: anywhere; }

.b149-d1-nav, .b149-cl-list, .b149-cl, .b149-cl-n, .b149-cl-m, #b149-d1-mid, #b149-d1-file { min-width: 0; max-width: 100%; }
.b149-cl, .b149-d1-file { overflow-wrap: anywhere; }

/* ---------------------------------------------------------------- phone width: nothing runs on past the edge */
@media (max-width: 760px) {
  #cc-board .cc-badge, #cc-board .cc-chip, .b149-stk, .b149-chip, .b149-wait, .b149-courtw {
    max-width: 100%; white-space: normal; overflow-wrap: anywhere;
  }
  #cc-board .cc-chips, #cc-board .cc-btns { min-width: 0; max-width: 100%; flex-wrap: wrap; }
  #cc-board .cc-btns .btn { max-width: 100%; white-space: normal; overflow-wrap: anywhere; }
  #cc-board .cc-send { min-width: 0; }
  #cc-board .cc-times, #cc-board .cc-case-d, #cc-board .cc-arr-at { white-space: normal; }
  .b149-filebtn { max-width: 100%; white-space: normal; }
  /* a lead's number and its Copy button on a board card (styles/v21_leadux.css) wrap at 360 px */
  .lux-c, .lux-phone { min-width: 0; max-width: 100%; }
  .lux-phone { flex-wrap: wrap; }
  .lux-c-note { max-width: 100%; }
}
