/* settlement-rules.css: the per-book rule chip beside a prop price and the
 * amber Rules Differ chip on an arb or hedge result (prompt 357). Light-mode
 * overrides are at the end of static/theme-light.css. */
.sr-chip { display: inline-block; position: relative; vertical-align: middle; margin-left: 6px; font-size: 10px; line-height: 1.3; }
.sr-chip > summary { list-style: none; cursor: pointer; border-radius: 6px; padding: 1px 6px; white-space: nowrap;
  border: 1px solid var(--border, #333); color: var(--muted, #9aa); font-weight: 600; }
.sr-chip > summary::-webkit-details-marker { display: none; }
.sr-chip.sr-warn > summary { border-color: #d99a1e; color: #f2b544; background: rgba(217, 154, 30, .12); }
.sr-pop { position: absolute; z-index: 40; left: 0; top: calc(100% + 4px); width: min(300px, 82vw);
  background: var(--card, #15181d); border: 1px solid var(--border, #333); border-radius: 8px; padding: 8px 10px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .35); color: var(--text, #e8e8e8); font-size: 12px; font-weight: 400;
  white-space: normal; text-align: left; }
.sr-line { margin: 0 0 6px; }
.sr-q { color: var(--muted, #9aa); font-style: italic; margin: 0 0 6px; }
.sr-say { border-top: 1px solid var(--border, #333); padding-top: 6px; margin-top: 2px; }
.sr-meta { color: var(--muted, #9aa); font-size: 11px; }
.sr-date.sr-old { color: #f2b544; font-weight: 600; }
.sr-src { color: var(--gold, #d4af37); }
@media (max-width: 480px) {
  /* On a phone the box is one sheet on the page itself (#sr-sheet, drawn by
     settlement-rules.js): a box inside a card is trapped under the sticky
     filter bar and the Bet Slip bar by the card's own layer. */
  .sr-chip .sr-pop { display: none; }
  /* A bigger target for a thumb (reader check: 17px was too small). */
  .sr-chip > summary { font-size: 11px; padding: 4px 8px; }
  #sr-sheet .sr-close { font-size: 24px; padding: 2px 4px 8px 12px; }
}
#sr-sheet { position: fixed; left: 12px; right: 12px; top: calc(64px + env(safe-area-inset-top, 0px));
  z-index: 100001; max-height: 60vh; overflow-y: auto; background: var(--card, #15181d);
  border: 1px solid var(--border, #333); border-radius: 10px; padding: 10px 12px 8px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, .5); color: var(--text, #e8e8e8); font-size: 13px; }
#sr-sheet .sr-close { float: right; background: none; border: 0; color: var(--muted, #9aa); font-size: 18px;
  line-height: 1; padding: 0 0 4px 8px; cursor: pointer; }
/* Beside a book's prop price (static/prop-group.js): the chip takes its own
   line under the book's name, so a 130px book column never squeezes the name. */
.pb-book-name:has(.sr-chip) { flex-wrap: wrap; row-gap: 3px; }
.pb-book-name .sr-chip { flex-basis: 100%; margin-left: 0; }
.pb-book-name .sr-chip > summary { display: inline-block; }
