/* Scores index */
.scores-wrapper{max-width:100%;overflow:auto;border:1px solid #ccc;margin-top:10px;}
#scoresTable{border-collapse:collapse;width:max-content;min-width:100%;font-size:13px;}
#scoresTable th,#scoresTable td{border:1px solid #aaa;padding:4px 6px;text-align:center;background:transparent;white-space:nowrap;}
#scoresTable thead th{position:sticky;top:0;z-index:5;background:#f0f0f0;}
.sticky-col-1{position:sticky;left:0;z-index:6;min-width:90px;text-align:left;padding-left:6px;}
.sticky-col-2{position:sticky;left:140px;z-index:6;min-width:140px;text-align:left;padding-left:6px;}
.sticky-col-3{position:sticky;left:280px;z-index:6;min-width:50px;}
.sticky-col-4{position:sticky;left:330px;z-index:6;min-width:50px;}
.round-groups th{background:#e0e0e0;font-weight:bold;}
.th-10m{background:#dcecff;}
.th-15m{background:#d7f7d7;}
.td-10m{background:#f7faff;}
.td-15m{background:#f6fff6;}
.arrow-separator{border-right:3px solid #333;}
.total15-separator{border-right:3px solid #333;}

/* View event */
.score-table{border-collapse:collapse;width:100%;margin-top:20px;font-size:14px;}
.score-table th,.score-table td{border:1px solid #aaa;padding:6px;text-align:center;}
.score-table th{background:#f0f0f0;}
.archer-name{font-weight:bold;background:#fafafa;}

/* Round scoring */
#toastContainer{position:fixed;top:20px;right:20px;z-index:99999;}
.toast-box{min-width:260px;background:#333;color:#fff;padding:12px 16px;margin-bottom:10px;border-radius:6px;opacity:0;transform:translateY(-20px);transition:opacity .4s ease,transform .4s ease;box-shadow:0 3px 12px rgba(0,0,0,.2);font-size:15px;}
.toast-success{background:#28a745;}
.toast-error{background:#dc3545;}
.toast-show{opacity:1;transform:translateY(0);}
.round-score-input{border:1px solid #ced4da;border-radius:4px;box-shadow:none;outline:none;text-align:center;padding:2px;font-size:14px;height:28px;width:40px;margin:auto;}
.score-table tbody tr:nth-child(odd){background:#fff;}
.score-table tbody tr:nth-child(even){background:#e6e6e6;}
.sortable:hover{background:#e2e2e2;}
.sort-arrow{font-size:11px;margin-left:6px;}
#saveRoundScores{margin-top:18px;padding:10px 22px;font-size:16px;background:#0d6efd;color:#fff;border:none;border-radius:4px;cursor:pointer;}
#saveRoundScores:hover{background:#0b5ed7;}

/* Ensure round scoring band colors override defaults */
.score-table th.band-10m { background: #dcecff !important; }
.score-table th.band-15m { background: #d7f7d7 !important; }
