/* Championship result drawer shares the popup table structure. */
.fi-champ-results-preview{overflow-x:auto;max-width:100%;color:#243d55;font:13px/1.45 system-ui,-apple-system,"Segoe UI",Arial,sans-serif;}
.fi-champ-results-preview table{width:100%;border-collapse:collapse;font:inherit;}
.fi-champ-results-preview table th,.fi-champ-results-preview table td{padding:7px 9px;text-align:left;border-bottom:1px solid #e4ebf2;white-space:pre-line;vertical-align:middle;}
.fi-champ-results-preview table th{font-size:12px;font-weight:600;background:#edf3f9;}
.fi-champ-results-preview table thead tr:first-child th[colspan]{text-align:center;}
.fi-champ-results-preview .fi-tab-report-round{margin-top:22px;}
.fi-champ-results-preview .fi-tab-report-round table{min-width:540px;}
.fi-champ-results-preview .fi-champ-results-table tbody tr.gold td:first-child{background:#ffffff;}
.fi-champ-results-preview .fi-champ-results-table tbody tr.silver td:first-child{background:#f5f7fa;}
.fi-champ-results-preview .fi-champ-results-table tbody tr.bronze td:first-child{background:#fbf1e8;}

/* Result cards and opened drawers use the whole workspace with neutral surfaces. */
#general_organizer_page .resultCard,#general_organizer_page .resultsDrawerRow{width:100%!important;max-width:none!important;box-sizing:border-box;}
#general_organizer_page .resultCard.is-read,#general_organizer_page .resultCard.is-submitted{background:#fff!important;border-color:#e1e7ef!important;}
#general_organizer_page .resultsDrawer__tableWrap{padding:14px 16px;background:#fff!important;border-color:#e1e7ef!important;}
#general_organizer_page .fi-champ-results-preview{width:100%;max-width:100%;box-sizing:border-box;}
#general_organizer_page .fi-champ-results-preview table{width:100%!important;box-sizing:border-box;}
#general_organizer_page .fi-champ-results-preview .fi-tab-report-round{width:100%;box-sizing:border-box;}
#general_organizer_page .fi-champ-results-preview .fi-champ-results-table tbody tr.gold{background:transparent!important;}
#general_organizer_page .fi-champ-results-preview .fi-champ-results-table tbody tr.gold td{background-color:#fff!important;}
@media(max-width:640px){#general_organizer_page .resultsDrawer__tableWrap{padding:10px;}}

/* Medal color belongs to the place only; opened/read cards are neutral. */
#general_organizer_page .result_list_table tbody tr,
#general_organizer_page .result_list_table tbody tr td,
#general_organizer_page .result_list_table tbody tr.gold td,
#general_organizer_page .result_list_table tbody tr.silver td,
#general_organizer_page .result_list_table tbody tr.bronze td,
#general_organizer_page .fi-champ-results-preview tbody tr td{background-color:transparent!important;}
#general_organizer_page .result_list_table tbody tr.award-limit-row td{background-image:none!important;}
#general_organizer_page .result_list_table tbody tr.same-place-first td,
#general_organizer_page .result_list_table tbody tr.same-place-last td{box-shadow:none!important;}
#general_organizer_page .fi-result-medal{display:inline-flex;align-items:center;justify-content:center;min-width:23px;padding:2px 6px;box-sizing:border-box;border-radius:5px;font-size:11px;font-weight:600;line-height:1.35;}
#general_organizer_page .fi-result-medal.is-gold{color:#8b6311;background:#fff0bf;border:1px solid #ead28a;}
#general_organizer_page .fi-result-medal.is-silver{color:#596777;background:#edf0f4;border:1px solid #d3dae3;}
#general_organizer_page .fi-result-medal.is-bronze{color:#925b37;background:#f7e8dc;border:1px solid #e6c6ae;}
#general_organizer_page .resultCard.gold,
#general_organizer_page .resultCard.is-read,
#general_organizer_page .resultCard.is-submitted{background:#fff!important;border-color:#e1e7ef!important;}
#general_organizer_page .resultCard .resultsOpened{background:transparent!important;}
#general_organizer_page .resultCard.resultsOpened{background:#f4f7fb!important;border-color:#b9cadc!important;box-shadow:inset 3px 0 0 #91aac3;}
#general_organizer_page .fi-results-read-marker{display:inline-flex;align-items:center;gap:3px;margin-left:7px;color:#778797;font-size:10px;font-weight:400;white-space:nowrap;}

#general_organizer_page .results-export-toolbar button[data-read-event][data-read-user]{width:auto!important;min-width:0!important;max-width:100%;height:auto;min-height:34px;padding:8px 12px!important;line-height:1.35;white-space:normal;overflow-wrap:break-word;flex:0 1 auto;box-sizing:border-box;}

#general_organizer_page .result_list_table .fi-result-name-en,#general_organizer_page .fi-champ-results-preview .fi-result-name-en{font-size:10px;font-weight:400;color:#7b8794;line-height:1.3;}

@media(max-width:640px){
 .fi-tab-report{max-height:92vh;}
 .fi-tab-report .fi-tab-report-heading,.fi-tab-report .fi-tab-report-footer{padding:9px 10px;gap:8px;}
 .fi-tab-report h2{font-size:16px;}
 .fi-tab-report .fi-tab-report-content{padding:8px;max-height:70vh;}
 #general_organizer_page .fi-champ-results-preview .fi-champ-results-table,
 .fi-tab-report .fi-champ-report-table{min-width:var(--fi-report-mobile-width,430px)!important;width:100%!important;table-layout:fixed;}
 #general_organizer_page .fi-champ-results-preview .fi-champ-results-table th,
 #general_organizer_page .fi-champ-results-preview .fi-champ-results-table td,
 .fi-tab-report .fi-champ-report-table th,
 .fi-tab-report .fi-champ-report-table td{padding:4px 3px!important;font-size:10px!important;line-height:1.25;white-space:normal;overflow-wrap:anywhere;}
 #general_organizer_page .fi-champ-results-preview .fi-champ-results-table thead tr:first-child > th:nth-child(2),
 .fi-tab-report .fi-champ-report-table thead tr:first-child > th:nth-child(2){width:145px;}
 #general_organizer_page .fi-champ-results-preview .fi-champ-results-table tbody td:nth-child(2),
 .fi-tab-report .fi-champ-report-table tbody td:nth-child(2){font-size:11px!important;}
 #general_organizer_page .fi-champ-results-preview .fi-result-name-en{display:block;font-size:9px;line-height:1.25;}
 #general_organizer_page .fi-champ-results-preview .fi-result-medal{min-width:18px;font-size:10px;padding:1px 4px;}
}

@media(max-width:640px){
 #general_organizer_page .results-export-toolbar button[data-read-event][data-read-user]{width:100%!important;max-width:100%;flex:0 0 100%;justify-content:center;}
}

.results-live-toolbar{display:flex;align-items:center;gap:12px;margin:0 0 12px;}.results-live-toolbar button{font:500 13px/1.4 system-ui,sans-serif;padding:7px 14px;border:1px solid #ccdcec;border-radius:7px;background:#f4f8fc;color:#31668e;cursor:pointer;}.results-live-toolbar button:disabled{opacity:.6;cursor:wait;}.results-live-toolbar [role=status]{font-size:12px;color:#718297;}

/* Recall labels share the same compact badge treatment in lists and reports. */
.fi-result-recall{display:inline-flex!important;align-items:center;margin:2px 0 2px 7px;padding:2px 6px;border:1px solid transparent;border-radius:5px;font:500 10px/1.35 system-ui,-apple-system,"Segoe UI",sans-serif;white-space:nowrap;vertical-align:middle;}
.fi-result-recall.is-recalled{background:#f2edfb!important;border-color:#d8ceef!important;color:#70539b!important;}
.fi-result-recall.is-not-recalled{background:#edf1f5!important;border-color:#dbe2e9!important;color:#718093!important;}

.fi-result-recall-number{position:relative;}
.fi-result-recall-marker{position:absolute;right:-8px;top:50%;transform:translateY(-50%);display:flex;align-items:center;justify-content:center;width:16px;height:16px;box-sizing:border-box;border:1px solid #d8ceef;border-radius:4px;background:#f2edfb;color:#70539b;font:600 10px/1 system-ui,sans-serif;z-index:1;}

/* Compact number column, with the recall marker inside it and clear of the name. */
.fi-champ-report-table thead tr:first-child > th:first-child,
.fi-champ-report-table tbody > tr > td:first-child{width:56px!important;min-width:56px!important;max-width:56px!important;box-sizing:border-box;}
.fi-tab-report .fi-champ-report-table thead tr:first-child > th:first-child,
#general_organizer_page .fi-champ-results-preview .fi-champ-report-table thead tr:first-child > th:first-child{padding-left:6px!important;padding-right:4px!important;}
.fi-tab-report .fi-champ-report-table tbody > tr > td:first-child,
#general_organizer_page .fi-champ-results-preview .fi-champ-report-table tbody > tr > td:first-child{padding-left:6px!important;padding-right:24px!important;}
.fi-tab-report .fi-champ-report-table thead tr:first-child > th:nth-child(2),
.fi-tab-report .fi-champ-report-table tbody > tr > td:nth-child(2),
#general_organizer_page .fi-champ-results-preview .fi-champ-report-table thead tr:first-child > th:nth-child(2),
#general_organizer_page .fi-champ-results-preview .fi-champ-report-table tbody > tr > td:nth-child(2){padding-left:6px!important;}
.fi-champ-report-table .fi-result-recall-marker{right:4px;}
