/* Web FB-001–007, independent from Team access security laboratory. */
/* Long action labels are one line on 320px and above. Do not reduce scoring buttons. */
#main .match-detail-actions {display:flex;flex-wrap:wrap;align-items:center;gap:6px;max-width:100%;}
#main .match-detail-actions>.btn {
  box-sizing:border-box!important;flex:0 0 auto!important;width:auto!important;min-width:max-content!important;
  white-space:nowrap!important;word-break:keep-all!important;overflow-wrap:normal!important;
  padding:8px 11px!important;font-size:clamp(12px,3.3vw,14px)!important;line-height:1.2!important;
}
#main .fb-match-summary {line-height:1.5;overflow-wrap:anywhere;word-break:normal;}
.fb-autocomplete-anchor {position:relative;min-width:0}
.fb-autocomplete-anchor>input {width:100%;min-width:0}
.fb-history-results {position:absolute;z-index:400;top:calc(100% + 3px);left:0;right:0;
  overflow:auto;max-height:265px;box-sizing:border-box;background:#fff;color:#17233b;
  border:1px solid #a7b6cc;border-radius:12px;box-shadow:0 10px 24px rgba(12,28,58,.18);padding:5px;}
.fb-history-count,.fb-history-empty{padding:8px 9px;font-size:12px;color:#5d6f8a}
.fb-history-row{display:flex;align-items:stretch;gap:4px;border-bottom:1px solid #edf1f6}
.fb-history-row:last-child{border-bottom:0}
.fb-history-choice{min-height:42px;min-width:0;flex:1;text-align:left;display:block;
  color:#152c58;background:#fff;border:0;border-radius:7px;padding:8px 9px;font-size:14px;
  overflow-wrap:anywhere;cursor:pointer}
.fb-history-choice:hover,.fb-history-choice:focus-visible{background:#eaf1ff}
.fb-history-remove{min-height:42px;min-width:42px;flex:0 0 42px;background:#fff;border:0;
  border-radius:7px;color:#b32732;font-size:21px;font-weight:700;cursor:pointer}
.fb-history-remove:hover,.fb-history-remove:focus-visible{background:#fff1f1}
.fb-history-row button:focus-visible{outline:2px solid #2458a6;outline-offset:-3px}
@media(max-width:360px){#main .match-detail-actions>.btn{padding:7px 8px!important;font-size:12px!important;}}

/* FB-006: preserve full red/white player names without shifting scores or VS. */
.score-modal-sheet .score-card-modal .score-side{min-width:0}
.score-modal-sheet .score-card-modal .fighter-large{display:block;max-width:100%;white-space:nowrap!important;word-break:normal!important;overflow-x:auto;overflow-y:hidden;overscroll-behavior-x:contain;scrollbar-width:thin;-webkit-overflow-scrolling:touch}

/* Show suggestions directly under inputs, not two competing history controls. */
#venue-history-wrap .venue-history-picker,
#quick-opponent-team-history-wrap .opponent-history-picker,
#opponent-team-history-wrap .opponent-history-picker,
#edit-opponent-team-history-wrap .opponent-history-picker{display:none}
