[data-cellid="grid_footcell_field"][data-page="leaderboard_list"][data-cellid="grid_footcell_field"][data-page="leaderboard_list"][data-cellid="grid_footcell_field"][data-page="leaderboard_list"] {
  white-space: nowrap;
}
[data-cellid="grid_footcell_field1"][data-page="leaderboard_list"][data-cellid="grid_footcell_field1"][data-page="leaderboard_list"][data-cellid="grid_footcell_field1"][data-page="leaderboard_list"] {
  white-space: nowrap;
}
[data-cellid="grid_footcell_field2"][data-page="leaderboard_list"][data-cellid="grid_footcell_field2"][data-page="leaderboard_list"][data-cellid="grid_footcell_field2"][data-page="leaderboard_list"] {
  white-space: nowrap;
}
[data-cellid="grid_footcell_field3"][data-page="leaderboard_list"][data-cellid="grid_footcell_field3"][data-page="leaderboard_list"][data-cellid="grid_footcell_field3"][data-page="leaderboard_list"] {
  white-space: nowrap;
}
[data-cellid="grid_footcell_field4"][data-page="leaderboard_list"][data-cellid="grid_footcell_field4"][data-page="leaderboard_list"][data-cellid="grid_footcell_field4"][data-page="leaderboard_list"] {
  white-space: nowrap;
}
[data-cellid="grid_footcell_field5"][data-page="leaderboard_list"][data-cellid="grid_footcell_field5"][data-page="leaderboard_list"][data-cellid="grid_footcell_field5"][data-page="leaderboard_list"] {
  white-space: nowrap;
}
[data-page="leaderboard_list"][data-itemid="simple_grid_field5"] {
  font-weight: bold;
  font-size: 16px;
}
[data-page="leaderboard_list"][data-itemid="simple_grid_field7"] {
  color: #143e99;
  font-weight: bold;
  font-size: 18px;
}
[data-page="leaderboard_list"][data-itemid="page_image_ash8f23hr"] {
  width: 400px;
}


[data-cellid="grid_footcell_field"][data-page="leaderboard_list"][data-cellid="grid_footcell_field"][data-page="leaderboard_list"][data-cellid="grid_footcell_field"][data-page="leaderboard_list"] {
  white-space: nowrap;
}
[data-cellid="grid_footcell_field1"][data-page="leaderboard_list"][data-cellid="grid_footcell_field1"][data-page="leaderboard_list"][data-cellid="grid_footcell_field1"][data-page="leaderboard_list"] {
  white-space: nowrap;
}
[data-cellid="grid_footcell_field2"][data-page="leaderboard_list"][data-cellid="grid_footcell_field2"][data-page="leaderboard_list"][data-cellid="grid_footcell_field2"][data-page="leaderboard_list"] {
  white-space: nowrap;
}
[data-cellid="grid_footcell_field3"][data-page="leaderboard_list"][data-cellid="grid_footcell_field3"][data-page="leaderboard_list"][data-cellid="grid_footcell_field3"][data-page="leaderboard_list"] {
  white-space: nowrap;
}
[data-cellid="grid_footcell_field4"][data-page="leaderboard_list"][data-cellid="grid_footcell_field4"][data-page="leaderboard_list"][data-cellid="grid_footcell_field4"][data-page="leaderboard_list"] {
  white-space: nowrap;
}
[data-cellid="grid_footcell_field5"][data-page="leaderboard_list"][data-cellid="grid_footcell_field5"][data-page="leaderboard_list"][data-cellid="grid_footcell_field5"][data-page="leaderboard_list"] {
  white-space: nowrap;
}
[data-page="leaderboard_list"][data-itemid="simple_grid_field5"] {
  font-weight: bold;
  font-size: 16px;
}
[data-page="leaderboard_list"][data-itemid="simple_grid_field7"] {
  color: #143e99;
  font-weight: bold;
  font-size: 18px;
}
[data-page="leaderboard_list"][data-itemid="page_image_ash8f23hr"] {
  width: 400px;
}



/* Leaderboard manual design pass */
body.function-list {
    color: #071b3d;
    font-family: Inter, "Segoe UI", Roboto, Arial, Helvetica, sans-serif;
}

.function-list .r-topheader,
.function-list .navbar-default {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
}

.function-list .navbar-form .btn-primary {
    background: #0b67c8;
    border-color: #0b67c8;
    border-radius: 7px;
    font-weight: 700;
}

.function-list .r-body {
    padding: 24px 24px 36px;
}

.function-list .r-content,
.function-list .r-data-block {
    width: 100%;
}

.wc-leaderboard-card {
    max-width: 1160px;
    margin: 0 auto;
    padding: 30px 28px 28px;
    background: rgba(255,255,255,0.97);
    border-radius: 18px;
    box-shadow: 0 18px 44px rgba(0, 14, 50, 0.26);
}

.wc-leaderboard-hero {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 24px;
}

.wc-leaderboard-title {
    display: flex;
    align-items: flex-start;
    gap: 18px;
}

.wc-leaderboard-trophy {
    width: 58px;
    min-width: 58px;
    font-size: 48px;
    line-height: 1;
}

.wc-leaderboard-title h1 {
    margin: 0 0 8px;
    color: #061a3d;
    font-size: 32px;
    line-height: 1.12;
    font-weight: 800;
}

.wc-leaderboard-title p {
    margin: 0;
    color: #4b5b72;
    font-size: 16px;
}

.wc-leaderboard-updated {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 330px;
    padding: 16px 18px;
    border: 1px solid #e1e6ef;
    border-radius: 9px;
    background: #fff;
    color: #17233a;
}

.wc-leaderboard-updated .glyphicon {
    color: #68778d;
    font-size: 24px;
}

.wc-leaderboard-updated strong,
.wc-leaderboard-updated span,
.wc-current-standing strong,
.wc-current-standing span {
    display: block;
}

.wc-leaderboard-updated span,
.wc-current-standing span {
    color: #526176;
    font-size: 14px;
}

.wc-current-standing {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 20px;
    padding: 17px 20px;
    border: 1px solid #f0dc95;
    border-radius: 10px;
    background: #fff9e8;
}

.wc-standing-icon {
    width: 42px;
    height: 42px;
    min-width: 42px;
    border-radius: 50%;
    background: #f7bd16;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 23px;
}

.wc-current-standing strong {
    color: #071b3d;
    font-size: 18px;
}

.function-list .r-below { display: none; }

.function-list .r-grid {
    overflow: hidden;
    border: 1px solid #dfe5ee;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 4px 14px rgba(10, 32, 68, 0.08);
}

.function-list table.rnr-gridtable {
    width: 100%;
    margin: 0;
    border: 0 !important;
    border-collapse: separate;
    border-spacing: 0;
    background: #fff;
}

.function-list table.rnr-gridtable > thead > tr > th {
    background: #075dbc !important;
    color: #fff !important;
    border: 0 !important;
    padding: 15px 20px !important;
    font-size: 16px;
    font-weight: 800;
    text-decoration: none;
}

.function-list table.rnr-gridtable > thead a,
.function-list table.rnr-gridtable > thead .text-label,
.function-list table.rnr-gridtable > thead span {
    color: #fff !important;
    text-decoration: none !important;
}

.function-list table.rnr-gridtable > tbody > tr > td {
    border-width: 0 0 1px 0 !important;
    border-color: #e6ebf2 !important;
    padding: 14px 20px !important;
    vertical-align: middle !important;
    background: transparent;
    font-size: 15px;
}

.function-list table.rnr-gridtable.table-striped > tbody > tr:nth-of-type(odd) {
    background-color: #fff;
}

.function-list table.rnr-gridtable.table-striped > tbody > tr:nth-of-type(even) {
    background-color: #fbfcfe;
}

.function-list table.rnr-gridtable > tbody > tr:hover {
    background-color: #f2f7ff !important;
}

[data-page="leaderboard_list"][data-itemid="simple_grid_field7"] {
    color: #075dbc;
    font-size: 20px;
    font-weight: 800;
}

.wc-player-cell {
    display: flex;
    align-items: center;
    gap: 13px;
    font-weight: 700;
    color: #11213a;
}

.wc-player-icon {
    width: 34px;
    height: 34px;
    border-radius: 50%;
}

.wc-player-current .wc-player-name {
    color: #075dbc;
    font-weight: 800;
}

.leaderboard-rank img {
    width: 34px;
    height: 34px;
}

.wc-correct-picks {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 170px;
    font-weight: 800;
}

.wc-progress-track {
    width: 92px;
    height: 5px;
    border-radius: 999px;
    background: #e2e6ec;
    overflow: hidden;
}

.wc-progress-fill {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: #20a65a;
}

@media (max-width: 800px) {
    .function-list .r-body {
        padding: 12px;
    }

    .wc-leaderboard-card {
        padding: 18px;
        border-radius: 13px;
    }

    .wc-leaderboard-hero {
        display: block;
    }

    .wc-leaderboard-updated {
        min-width: 0;
        margin-top: 16px;
    }

    .wc-leaderboard-title h1 {
        font-size: 25px;
    }

    .function-list .r-grid {
        overflow-x: auto;
    }
}
/* Leaderboard typography and image-icon refinement */
.wc-leaderboard-trophy img {
    width: 58px;
    height: 58px;
    display: block;
    object-fit: contain;
}

.wc-standing-icon {
    background: transparent;
    box-shadow: none;
}

.wc-standing-icon img {
    width: 44px;
    height: 44px;
    display: block;
    object-fit: contain;
}

.function-list table.rnr-gridtable > thead > tr > th {
    font-family: "Segoe UI", Roboto, Arial, Helvetica, sans-serif;
    letter-spacing: 0;
}

.function-list table.rnr-gridtable > tbody > tr > td {
    color: #0b1f3b;
    font-weight: 500;
}

.function-list table.rnr-gridtable > tbody > tr > td[style*="background:#fff7dc"] {
    background: #fff7dc !important;
    border-bottom-color: #f2e3a7 !important;
}

.function-list table.rnr-gridtable > tbody > tr > td[style*="background:#fff7dc"] + td {
    border-left-color: transparent !important;
}

.function-list table.rnr-gridtable > tbody > tr > td[style*="background:#fff7dc"]:first-child {
    box-shadow: inset 4px 0 0 #0b67c8;
}

.wc-leaderboard-updated strong,
.wc-current-standing strong {
    font-weight: 700;
}

.wc-player-current .wc-player-name {
    color: #075dbc;
    font-weight: 800;
}
/* Leaderboard final typography override */
body.function-list .wc-leaderboard-title h1 {
    font-family: "Segoe UI", Roboto, Arial, Helvetica, sans-serif !important;
    font-size: 30px !important;
    line-height: 1.08 !important;
    font-weight: 700 !important;
    letter-spacing: 0 !important;
    color: #061a3d !important;
}

body.function-list .wc-leaderboard-title p {
    font-family: "Segoe UI", Roboto, Arial, Helvetica, sans-serif !important;
    font-size: 16px !important;
    line-height: 1.35 !important;
    font-weight: 400 !important;
    color: #3d4c63 !important;
}

body.function-list table.rnr-gridtable > thead > tr > th,
body.function-list table.rnr-gridtable > thead > tr > th span,
body.function-list table.rnr-gridtable > thead > tr > th a {
    font-family: "Segoe UI", Roboto, Arial, Helvetica, sans-serif !important;
    font-size: 15px !important;
    line-height: 1.2 !important;
    font-weight: 700 !important;
    letter-spacing: 0 !important;
}

body.function-list table.rnr-gridtable > tbody > tr > td,
body.function-list table.rnr-gridtable > tbody > tr > td span,
body.function-list .wc-player-cell,
body.function-list .wc-correct-picks {
    font-family: "Segoe UI", Roboto, Arial, Helvetica, sans-serif !important;
    font-size: 15px !important;
    line-height: 1.25 !important;
    font-weight: 500 !important;
    letter-spacing: 0 !important;
}

body.function-list [data-page="leaderboard_list"][data-itemid="simple_grid_field7"] {
    font-size: 18px !important;
    font-weight: 700 !important;
    color: #075dbc !important;
}

body.function-list .wc-player-current .wc-player-name {
    font-weight: 700 !important;
}

body.function-list table.rnr-gridtable > tbody > tr > td[style*="background:#fff7dc"] {
    background-color: #fff8dd !important;
    box-shadow: none !important;
}

body.function-list table.rnr-gridtable > tbody > tr > td[style*="background:#fff7dc"]:first-child {
    box-shadow: inset 4px 0 0 #0b67c8 !important;
}
/* Leaderboard compact header and arrow fix */
body.function-list .wc-leaderboard-title h1 {
    font-family: "Arial Narrow", "Segoe UI Condensed", "Roboto Condensed", "Segoe UI", Arial, Helvetica, sans-serif !important;
    font-size: 29px !important;
    line-height: 1.05 !important;
    font-weight: 800 !important;
    max-width: 610px;
    white-space: nowrap;
}

body.function-list .wc-leaderboard-title {
    gap: 16px;
}

body.function-list .wc-leaderboard-trophy img {
    width: 54px;
    height: 54px;
}

body.function-list .wc-standing-icon img {
    width: 42px;
    height: 42px;
}

body.function-list table.rnr-gridtable > thead > tr > th .glyphicon,
body.function-list table.rnr-gridtable > thead > tr > th .fa,
body.function-list table.rnr-gridtable > thead > tr > th .fas,
body.function-list table.rnr-gridtable > thead > tr > th [class^="glyphicon-"] {
    font-family: "Glyphicons Halflings" !important;
    font-size: 13px !important;
    font-weight: normal !important;
    line-height: 1 !important;
}

body.function-list table.rnr-gridtable > thead > tr > th i.fa,
body.function-list table.rnr-gridtable > thead > tr > th i.fas {
    font-family: "Font Awesome 5 Free" !important;
    font-weight: 900 !important;
}

@media (max-width: 1100px) {
    body.function-list .wc-leaderboard-title h1 {
        white-space: normal;
        max-width: none;
    }
}
/* Leaderboard requested final sizing */
body.function-list .wc-leaderboard-trophy img {
    width: 65px !important;
    height: 65px !important;
}

body.function-list .wc-standing-icon img {
    width: 50px !important;
    height: 50px !important;
}

body.function-list .wc-standing-icon {
    width: 50px !important;
    height: 50px !important;
    min-width: 50px !important;
}

body.function-list .wc-leaderboard-title h1 {
    font-family: "Roboto Condensed", "Arial Narrow", "Segoe UI Condensed", "Segoe UI", Arial, Helvetica, sans-serif !important;
    font-weight: 700 !important;
}
/* PHPRunner export fallback: make generated data block the card when no manual template wrapper exists. */
.function-list .r-data-block[data-body-width="standard"] { max-width: 1160px; margin: 0 auto; padding: 30px 28px 28px; background: rgba(255,255,255,0.97); border-radius: 18px; box-shadow: 0 18px 44px rgba(0, 14, 50, 0.26); }
.function-list .r-above { display: block; margin-bottom: 20px; }
.function-list .r-above .row { margin-left: 0; margin-right: 0; }
.function-list .r-above [data-cellid="above-grid_c1"] { 
    width: 100%; 
        padding-left: 0px;
    padding-right: 0px;
}
.function-list .r-above [data-cellid="above-grid_c2"] { display: none; }
/* PHPRunner snippet items are page-designer wrappers; force these two to stack as full-width rows. */
body.function-list [data-itemid="leaderboard_header_snippet"],
body.function-list [data-itemid="leaderboard_standing_snippet"],
body.function-list [data-itemid="leaderboard_header_snippet"] > *,
body.function-list [data-itemid="leaderboard_standing_snippet"] > * {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    clear: both !important;
    float: none !important;
}

body.function-list [data-itemid="leaderboard_header_snippet"] {
    margin-bottom: 18px !important;
}
/* Final leaderboard snippet layout tune: match the mockup after PHPRunner wraps snippets. */
body.function-list .r-data-block[data-body-width="standard"] {
    max-width: 1060px !important;
    padding: 28px 30px 30px !important;
}

body.function-list [data-itemid="leaderboard_header_snippet"],
body.function-list [data-itemid="leaderboard_standing_snippet"] {
    display: block !important;
    width: 100% !important;
    clear: both !important;
    float: none !important;
}

body.function-list .wc-leaderboard-hero {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 28px !important;
    width: 100% !important;
    margin: 0 0 24px !important;
}

body.function-list .wc-leaderboard-title {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 10px !important;
    min-width: 0 !important;
    flex: 1 1 auto !important;
}

body.function-list .wc-leaderboard-trophy {
    flex: 0 0 65px !important;
    width: 65px !important;
    height: 65px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

body.function-list .wc-leaderboard-title h1 {
    margin: 0 0 7px !important;
    line-height: 1.05 !important;
    white-space: nowrap !important;
}

body.function-list .wc-leaderboard-title p {
    margin: 0 !important;
}

body.function-list .wc-leaderboard-updated {
    flex: 0 0 365px !important;
    width: 365px !important;
    max-width: 365px !important;
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 14px !important;
    padding: 18px 18px !important;
    margin: 0 !important;
}

body.function-list .wc-leaderboard-updated span:not(.glyphicon) {
    display: block !important;
}

body.function-list .wc-current-standing {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 24px !important;
    width: 100% !important;
    padding: 20px 26px !important;
    margin: 0 0 22px !important;
}

body.function-list .wc-current-standing > div:last-child {
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
}

body.function-list .wc-standing-icon {
    flex: 0 0 50px !important;
    width: 50px !important;
    height: 50px !important;
    min-width: 50px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

body.function-list .wc-current-standing strong,
body.function-list .wc-current-standing span {
    display: block !important;
}

@media (max-width: 900px) {
    body.function-list .wc-leaderboard-hero {
        align-items: flex-start !important;
        flex-direction: column !important;
    }

    body.function-list .wc-leaderboard-title h1 {
        white-space: normal !important;
    }

    body.function-list .wc-leaderboard-updated {
        width: 100% !important;
        max-width: 100% !important;
        flex-basis: auto !important;
    }
}
/* Final overflow tune: keep grid inside the leaderboard card and prevent header overlap. */
body.function-list .r-data-block[data-body-width="standard"] {
    max-width: 1060px !important;
    width: min(1060px, calc(100vw - 96px)) !important;
    overflow: visible !important;
}

body.function-list .r-grid,
body.function-list .r-grid > .r-fluid,
body.function-list .r-grid .r-gridrow,
body.function-list .r-grid .r-gridcell,
body.function-list .r-grid .table-responsive,
body.function-list .r-grid .rnr-gridtable,
body.function-list table.rnr-gridtable {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
}

body.function-list .r-grid .table-responsive {
    overflow-x: hidden !important;
}

body.function-list table.rnr-gridtable {
    table-layout: fixed !important;
}

body.function-list table.rnr-gridtable th,
body.function-list table.rnr-gridtable td {
    box-sizing: border-box !important;
}

body.function-list table.rnr-gridtable th:nth-child(1),
body.function-list table.rnr-gridtable td:nth-child(1) { width: 90px !important; }
body.function-list table.rnr-gridtable th:nth-child(2),
body.function-list table.rnr-gridtable td:nth-child(2) { width: 180px !important; }
body.function-list table.rnr-gridtable th:nth-child(3),
body.function-list table.rnr-gridtable td:nth-child(3) { width: 90px !important; }
body.function-list table.rnr-gridtable th:nth-child(4),
body.function-list table.rnr-gridtable td:nth-child(4) { width: 170px !important; }
body.function-list table.rnr-gridtable th:nth-child(5),
body.function-list table.rnr-gridtable td:nth-child(5) { width: 220px !important; }
body.function-list table.rnr-gridtable th:nth-child(6),
body.function-list table.rnr-gridtable td:nth-child(6) { width: 200px !important; }

body.function-list .wc-leaderboard-hero {
    gap: 18px !important;
}

body.function-list .wc-leaderboard-title {
    flex: 1 1 640px !important;
    max-width: calc(100% - 380px) !important;
}

body.function-list .wc-leaderboard-title h1 {
    font-size: 30px !important;
    max-width: 100% !important;
    overflow: hidden !important;
    text-overflow: clip !important;
}

body.function-list .wc-leaderboard-updated {
    flex: 0 0 365px !important;
    width: 365px !important;
    padding: 16px 12px !important;
}

body.function-list .wc-leaderboard-updated strong {
    display: block !important;
    white-space: normal !important;
    line-height: 1.25 !important;
}

