/* FCM v11.15.48 — Rugnummerindex v3.
 * Isolated table-based renderer: exactly five rows × twenty columns.
 * No grid/flex positioning is used for the matrix itself. */

.fcm-number-index-v3,
.fcm-number-index-v3 *,
.fcm-number-index-v3 *::before,
.fcm-number-index-v3 *::after { box-sizing:border-box; }

body.fcm-number-index-v3-page main,
body.fcm-number-index-v3-page .entry-content,
body.fcm-number-index-v3-page .wp-block-post-content {
    width:100%!important;
    max-width:none!important;
}
body.fcm-number-index-v3-page .entry-content,
body.fcm-number-index-v3-page .wp-block-post-content { padding-left:0!important; padding-right:0!important; }

.fcm-rbc-history-subpage.fcm-rbc-history-number-page-v3 {
    width:calc(100% - 48px)!important;
    max-width:none!important;
    margin:0 auto 48px!important;
}
.fcm-rbc-history-number-page-v3 .fcm-rbc-history-hero { margin-bottom:16px!important; }

.fcm-number-index-v3 {
    --fcm-num-present-bg:#dcefe0;
    --fcm-num-present-border:#3b8a52;
    --fcm-num-present-text:#174826;
    --fcm-num-missing-bg:#f5dddd;
    --fcm-num-missing-border:#b95555;
    --fcm-num-missing-text:#702424;
    --fcm-num-leading-bg:#f3d56b;
    --fcm-num-leading-border:#a87800;
    --fcm-num-leading-text:#4d3500;
    width:calc(100vw - 48px)!important;
    max-width:none!important;
    margin:16px calc(50% - 50vw + 24px) 32px!important;
    color:inherit;
}
.fcm-rbc-history-number-page-v3 .fcm-number-index-v3,
.fcm-admin-shirt-numbers .fcm-number-index-v3 { width:100%!important; margin:16px 0 28px!important; }

.fcm-number-index-v3__header {
    display:grid;
    grid-template-columns:minmax(0,1fr) auto;
    gap:22px;
    align-items:center;
    padding:18px 22px;
    margin:0 0 12px;
    border:1px solid rgba(127,127,127,.24);
    border-radius:14px;
    background:rgba(127,127,127,.07);
}
.fcm-number-index-v3__intro { min-width:0; }
.fcm-number-index-v3__eyebrow { display:block;margin:0 0 7px;font:800 10px/1 system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;letter-spacing:.16em;text-transform:uppercase;opacity:.68; }
.fcm-number-index-v3__titleline { display:flex;align-items:center;flex-wrap:wrap;gap:8px 12px; }
.fcm-number-index-v3__titleline h2 { margin:0!important;font:800 clamp(1.75rem,2.4vw,2.8rem)/1 system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif!important;letter-spacing:-.025em!important; }
.fcm-number-index-v3__range { display:inline-flex;align-items:center;min-height:30px;padding:5px 10px;border:1px solid currentColor;border-radius:999px;font:800 12px/1 system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;opacity:.85; }
.fcm-number-index-v3__view { margin:8px 0 0!important;font:650 12px/1.35 system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;opacity:.66; }
.fcm-number-index-v3--rbc .fcm-number-index-v3__view,
.fcm-number-index-v3--rbc .fcm-number-index-v3__scopes { display:none; }
.fcm-number-index-v3__scopes { display:flex;flex-wrap:wrap;gap:6px;margin:10px 0 0; }
.fcm-number-index-v3__scope { display:inline-flex;align-items:center;min-height:32px;padding:6px 11px;border:1px solid rgba(127,127,127,.32);border-radius:999px;color:inherit!important;text-decoration:none!important;font:750 11px/1 system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif; }
.fcm-number-index-v3__scope.is-active { border-color:#ff7417;color:#ff7417!important; }
.fcm-number-index-v3__summary { display:flex;gap:8px;align-items:center;flex-wrap:wrap;margin:10px 0 0!important;font:750 12px/1.3 system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;opacity:.76; }
.fcm-number-index-v3__actions { display:flex;flex-wrap:wrap;gap:8px;margin-top:10px; }
.fcm-number-index-v3__button { display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:38px;padding:8px 14px;border:1px solid currentColor;border-radius:999px;color:inherit!important;background:transparent;text-decoration:none!important;font:800 11px/1 system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif; }
.fcm-number-index-v3__button:hover { border-color:#ff7417;color:#ff7417!important; }

.fcm-number-index-v3__legend { display:flex;justify-content:flex-end;align-items:center;flex-wrap:wrap;gap:7px;max-width:520px; }
.fcm-number-index-v3__legend-title { flex:0 0 100%;text-align:right;font:800 10px/1 system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;letter-spacing:.15em;text-transform:uppercase;opacity:.58; }
.fcm-number-index-v3__legend span { display:inline-flex;align-items:center;gap:6px;min-height:30px;padding:5px 9px;border:1px solid rgba(127,127,127,.22);border-radius:999px;background:rgba(127,127,127,.06);white-space:nowrap;font:650 11px/1 system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif; }
.fcm-number-index-v3__legend i { width:11px;height:11px;flex:0 0 11px;border:1px solid;border-radius:3px; }
.fcm-number-index-v3__legend .is-present { background:var(--fcm-num-present-bg);border-color:var(--fcm-num-present-border); }
.fcm-number-index-v3__legend .is-missing { background:var(--fcm-num-missing-bg);border-color:var(--fcm-num-missing-border); }
.fcm-number-index-v3__legend .is-leading { background:var(--fcm-num-leading-bg);border-color:var(--fcm-num-leading-border); }

/* Matrix: real table. The browser cannot move a cell to another row. */
.fcm-number-index-v3__matrix { width:100%!important;margin:0!important;padding:0!important;overflow:visible!important; }
.fcm-number-index-v3__table-scroll { width:100%!important;overflow-x:auto!important;overflow-y:visible!important;-webkit-overflow-scrolling:touch; }
table.fcm-number-index-v3__table {
    display:table!important;
    width:100%!important;
    min-width:1100px!important;
    max-width:none!important;
    table-layout:fixed!important;
    border-collapse:separate!important;
    border-spacing:6px!important;
    margin:0!important;
    padding:0!important;
    border:0!important;
    background:transparent!important;
}
table.fcm-number-index-v3__table > tbody { display:table-row-group!important; }
table.fcm-number-index-v3__table tr.fcm-number-index-v3__row { display:table-row!important;width:auto!important;height:62px!important;margin:0!important;padding:0!important;border:0!important;background:transparent!important; }
table.fcm-number-index-v3__table td.fcm-number-index-v3__slot {
    display:table-cell!important;
    width:5%!important;
    min-width:0!important;
    max-width:none!important;
    height:62px!important;
    padding:0!important;
    margin:0!important;
    border:0!important;
    vertical-align:middle!important;
    background:transparent!important;
    position:static!important;
    float:none!important;
}
.fcm-number-index-v3__cell {
    display:flex!important;
    flex-direction:column!important;
    align-items:center!important;
    justify-content:center!important;
    gap:3px!important;
    width:100%!important;
    height:62px!important;
    min-width:0!important;
    min-height:62px!important;
    max-height:62px!important;
    margin:0!important;
    padding:5px 2px!important;
    border:1px solid!important;
    border-radius:7px!important;
    position:static!important;
    float:none!important;
    transform:none!important;
    text-align:center!important;
    text-decoration:none!important;
    overflow:hidden!important;
    scroll-margin-top:7rem;
}
a.fcm-number-index-v3__cell { cursor:pointer;transition:filter .15s ease,border-color .15s ease; }
a.fcm-number-index-v3__cell:hover { filter:brightness(1.045); }
a.fcm-number-index-v3__cell:focus-visible { outline:3px solid currentColor;outline-offset:2px; }
.fcm-number-index-v3__cell:target { outline:3px solid currentColor;outline-offset:2px; }
.fcm-number-index-v3__cell strong { display:block;margin:0!important;font:800 clamp(.82rem,1vw,1.08rem)/1 system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif!important;white-space:nowrap; }
.fcm-number-index-v3__cell span { display:block;max-width:100%;margin:0!important;font:650 clamp(.40rem,.47vw,.54rem)/1.05 system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif!important;white-space:normal;overflow-wrap:anywhere; }
.fcm-number-index-v3__cell.is-present { background:var(--fcm-num-present-bg)!important;border-color:var(--fcm-num-present-border)!important;color:var(--fcm-num-present-text)!important; }
.fcm-number-index-v3__cell.is-missing { background:var(--fcm-num-missing-bg)!important;border-color:var(--fcm-num-missing-border)!important;color:var(--fcm-num-missing-text)!important; }
.fcm-number-index-v3__cell.is-leading { background:var(--fcm-num-leading-bg)!important;border-color:var(--fcm-num-leading-border)!important;color:var(--fcm-num-leading-text)!important;box-shadow:inset 0 0 0 1px rgba(255,255,255,.45); }
.fcm-number-index-v3__cell--none strong { max-width:7em;font-size:clamp(.46rem,.54vw,.62rem)!important;line-height:1.05!important;white-space:normal!important; }
.fcm-number-index-v3__notice { width:calc(100vw - 48px);margin:16px calc(50% - 50vw + 24px);padding:14px 16px;border-left:4px solid #b95555;background:#f5dddd;color:#702424; }

@media(max-width:900px){
    .fcm-rbc-history-subpage.fcm-rbc-history-number-page-v3 { width:calc(100% - 20px)!important; }
    .fcm-number-index-v3 { width:calc(100vw - 20px)!important;margin-left:calc(50% - 50vw + 10px)!important;margin-right:calc(50% - 50vw + 10px)!important; }
    .fcm-rbc-history-number-page-v3 .fcm-number-index-v3,.fcm-admin-shirt-numbers .fcm-number-index-v3 { width:100%!important;margin-left:0!important;margin-right:0!important; }
    .fcm-number-index-v3__header { grid-template-columns:1fr;padding:15px; }
    .fcm-number-index-v3__legend { justify-content:flex-start;max-width:none; }
    .fcm-number-index-v3__legend-title { text-align:left; }
    table.fcm-number-index-v3__table { min-width:1100px!important; }
}
@media(max-width:620px){
    .fcm-number-index-v3__summary { align-items:flex-start;flex-direction:column;gap:2px; }
    .fcm-number-index-v3__summary > span { display:none; }
}
