/* Tournament bracket & schedule maker (P0199) */
.tb-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 0 20px; }
.tb-row { margin: 8px 0; }
.tb-lab { font-weight: bold; margin-right: 6px; }
.tb-ta { display: block; width: 100%; box-sizing: border-box; padding: 10px; border: 2px solid #8C96A6; border-radius: 10px; font: inherit; margin-top: 4px; }
.tb-in { min-height: 46px; width: 4.5em; padding: 0 10px; border: 2px solid #8C96A6; border-radius: 10px; font: inherit; font-size: 1.05em; background: #FFFFFF; margin: 0 12px 8px 0; box-sizing: border-box; }
.tb-dt { min-height: 46px; padding: 0 8px; border: 2px solid #8C96A6; border-radius: 10px; font: inherit; }
.tb-sel { min-height: 46px; padding: 0 8px; border: 2px solid #8C96A6; border-radius: 10px; font: inherit; background: #FFFFFF; max-width: 100%; }
.tb-btn { min-height: 46px; padding: 0 16px; border: 2px solid #2F6B3A; border-radius: 10px; background: #2F6B3A; color: #FFFFFF; font: inherit; font-weight: bold; cursor: pointer; margin: 0 6px 6px 0; }
.tb-btn2 { min-height: 46px; padding: 0 14px; border: 2px solid #2F6B3A; border-radius: 10px; background: #FFFFFF; color: #2F6B3A; font: inherit; font-weight: bold; cursor: pointer; margin: 0 6px 6px 0; }
.tb-end { font-weight: bold; color: #24334B; }
.tb-bracket { display: flex; gap: 14px; overflow-x: auto; padding-bottom: 8px; align-items: stretch; }
.tb-col { display: flex; flex-direction: column; justify-content: space-around; min-width: 170px; gap: 8px; }
.tb-rh { margin: 12px 0 6px; font-size: 1.05em; }
.tb-match { border: 2px solid #D5DAE1; border-radius: 10px; padding: 6px; background: #FFFFFF; }
.tb-bye { background: #F4F6F9; border-style: dashed; }
.tb-time { margin: 0 0 4px; font-size: 0.9em; color: #4A5568; }
.tb-win { margin: 0; font-weight: bold; }
.tb-team { display: block; width: 100%; min-height: 40px; margin: 2px 0; padding: 0 8px; text-align: left; border: 2px solid #8C96A6; border-radius: 8px; background: #FFFFFF; font: inherit; cursor: pointer; }
.tb-team:disabled { color: #6B7280; cursor: default; border-style: dashed; }
.tb-won { background: #2F6B3A; border-color: #2F6B3A; color: #FFFFFF; font-weight: bold; }
.tb-champ { font-size: 1.25em; font-weight: bold; color: #2F6B3A; }
.tb-table { border-collapse: collapse; margin: 4px 0 10px; font-variant-numeric: tabular-nums; }
.tb-table th, .tb-table td { padding: 6px 8px; border-bottom: 1px solid #D5DAE1; text-align: right; }
.tb-table th:nth-child(2), .tb-table td:nth-child(2) { text-align: left; }
.tb-table tbody tr:first-child td { font-weight: bold; }
.tb-games { list-style: none; padding: 0; margin: 0 0 8px; }
.tb-game { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 4px 0; border-bottom: 1px solid #E6E9EE; }
.tb-game .tb-time { min-width: 7.5em; margin: 0; }
.tb-home { min-width: 8em; text-align: right; font-weight: bold; }
.tb-away { min-width: 8em; font-weight: bold; }
.tb-score { width: 3em; min-height: 40px; text-align: center; border: 2px solid #8C96A6; border-radius: 8px; font: inherit; }
@media print { .tb-form, #tb-form, .tb-btn, .tb-btn2 { display: none; } .tb-bracket { overflow: visible; flex-wrap: wrap; } }
