/* =========================================================
   SUPERSTATS / HOLD
   v1 – fælles designgrundlag for /hold/
   ========================================================= */

.ss-hold-page {
    --hold-blue: #104470;
    --hold-text: #10315B;
    --hold-head-top: #e7f3f9;
    --hold-head-bottom: #cfe5f2;
    --hold-border: #d9e1e6;
    --hold-line: #e4e9ec;
    --hold-soft: #f7f9fa;
    --hold-muted: #81909a;
    --hold-zero: #9aa5ad;
    width: 100%;
    color: var(--hold-text);
    font-family: Arial, Helvetica, sans-serif;
    font-size: 13px;
    line-height: 18px;
}

.ss-hold-page *,
.ss-hold-page *::before,
.ss-hold-page *::after {
    box-sizing: border-box;
}

/* ---------- generelle bokse ---------- */

.ss-hold-page .box {
    box-shadow: none !important;
}

.ss-hold-page .box.full,
.ss-hold-page .box.left,
.ss-hold-page .box.right,
.ss-hold-page .box.small,
.ss-hold-page .box.large {
    box-sizing: border-box;
}

.ss-hold-page .box.multipleheader {
    margin-bottom: 12px !important;
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--hold-border) !important;
    border-radius: 6px !important;
}

.ss-hold-page .box.multipleheader > h2 {
    display: block;
    width: 100%;
    margin: 0 !important;
    padding: 9px 12px !important;
    background: var(--hold-blue) !important;
    border: 0 !important;
    color: #fff !important;
    font-family: Arial, Helvetica, sans-serif !important;
    font-size: 17px !important;
    font-weight: 700 !important;
    line-height: 21px !important;
    text-align: left !important;
    text-transform: uppercase;
}

/* ---------- klubhoved ---------- */

.ss-hold-page #club.box.full.blue:not(.multipleheader) {
    margin: 0 0 12px 0 !important;
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--hold-border) !important;
    border-bottom: 3px solid var(--hold-blue) !important;
    border-radius: 6px !important;
}

.ss-hold-page #clubdetails {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}

.ss-hold-page #clubdetails td {
    border: 0 !important;
    background: #fff !important;
}

.ss-hold-page #clubdetails td.logo {
    width: 92px;
    padding: 14px 10px 14px 14px !important;
    text-align: center;
    vertical-align: middle;
}

.ss-hold-page #clubdetails td.logo img {
    display: block;
    width: auto;
    max-width: 72px;
    height: auto;
    max-height: 72px;
    margin: 0 auto;
}

.ss-hold-page #clubdetails td.clubname {
    padding: 14px 10px !important;
    color: var(--hold-text);
    font-size: 24px;
    font-weight: 700;
    line-height: 28px;
    text-align: left;
    vertical-align: middle;
}

.ss-hold-page #clubdetails td.meta {
    width: 190px;
    padding: 11px 14px 11px 8px !important;
    vertical-align: middle;
}

.ss-hold-page #clubdetails td.meta ul {
    margin: 0;
    padding: 0;
    list-style: none;
    text-align: right;
}

.ss-hold-page #clubdetails td.meta li {
    margin: 0;
    padding: 1px 0;
    font-size: 12px;
    line-height: 18px;
}

.ss-hold-page a {
    color: var(--hold-blue);
    text-decoration: none;
}

.ss-hold-page a:hover {
    text-decoration: underline;
}

/* ---------- navigation / sæsonvælger ---------- */

.ss-hold-page .box.multipleheader > .inner,
.ss-hold-page .box.full.blue.multipleheader > .inner {
    margin: 0 !important;
    padding: 6px 10px !important;
    background: var(--hold-soft) !important;
    border: 0 !important;
}

.ss-hold-page .inner form {
    display: flex;
    width: 100%;
    margin: 0 !important;
    padding: 0 !important;
    gap: 6px;
    align-items: center;
    justify-content: flex-end;
}

.ss-hold-page .inner .form-item {
    display: block;
    margin: 0 !important;
    padding: 0 !important;
}

.ss-hold-page .hold-nav-select {
    height: 29px;
    margin: 0;
    padding: 4px 24px 4px 6px;
    border: 1px solid #cbd5db;
    border-radius: 4px;
    background: #fff;
    color: var(--hold-text);
    font-family: Arial, Helvetica, sans-serif;
    font-size: 12px;
    line-height: 18px;
}

.ss-hold-page .hold-nav-vis {
    min-width: 132px;
}

.ss-hold-page .knap {
    height: 29px;
    margin: 0 !important;
    padding: 4px 10px !important;
    border: 1px solid var(--hold-blue) !important;
    border-radius: 4px !important;
    background: var(--hold-blue) !important;
    color: #fff !important;
    font-family: Arial, Helvetica, sans-serif !important;
    font-size: 12px !important;
    line-height: 18px !important;
    cursor: pointer;
}

/* ---------- tabeller ---------- */

.ss-hold-page table {
    width: 100%;
    border-collapse: collapse;
    border-spacing: 0;
}

.ss-hold-page .box.multipleheader table {
    table-layout: auto;
}

.ss-hold-page .box.multipleheader thead th {
    height: 30px;
    padding: 6px 7px !important;
    background: linear-gradient(to bottom, var(--hold-head-top) 0%, var(--hold-head-bottom) 100%) !important;
    border: 0 !important;
    border-bottom: 1px solid #bfd4df !important;
    color: var(--hold-text) !important;
    font-family: Arial, Helvetica, sans-serif !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    line-height: 17px !important;
    text-align: center;
    vertical-align: middle;
    white-space: nowrap;
}

.ss-hold-page .box.multipleheader thead th.leftalign,
.ss-hold-page .box.multipleheader td.leftalign,
.ss-hold-page .box.multipleheader td.first {
    text-align: left !important;
}

.ss-hold-page .box.multipleheader tbody td {
    height: 27px;
    padding: 4px 7px !important;
    background: #fff;
    border: 0 !important;
    border-bottom: 1px solid var(--hold-line) !important;
    color: var(--hold-text);
    font-family: Arial, Helvetica, sans-serif;
    font-size: 13px;
    font-weight: 400;
    line-height: 18px;
    text-align: center;
    vertical-align: middle;
}

.ss-hold-page .box.multipleheader tbody tr:last-child td {
    border-bottom: 0 !important;
}

.ss-hold-page .box.multipleheader tfoot td {
    height: 3px !important;
    min-height: 3px !important;
    padding: 0 !important;
    background: var(--hold-blue) !important;
    border: 0 !important;
    font-size: 0 !important;
    line-height: 0 !important;
}

.ss-hold-page .hold-col-spacer {
    width: 12px;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

.ss-hold-page .stats-center {
    text-align: center !important;
}

.ss-hold-page .stats-left {
    text-align: left !important;
}

.ss-hold-page .stats-right,
.ss-hold-page .hold-goal-pct-value {
    text-align: right !important;
}

.ss-hold-page .hold-zero {
    color: var(--hold-zero);
    font-weight: 400;
}

.ss-hold-page .hold-empty {
    padding: 12px 8px !important;
    color: var(--hold-muted) !important;
    text-align: center !important;
}

/* ---------- parvise statistikbokse ---------- */

.ss-hold-page .section.hold-overview-pair {
    display: flex;
    width: 100%;
    margin: 0 0 12px 0;
    gap: 12px;
    align-items: stretch;
}

.ss-hold-page .section.hold-overview-pair > .box {
    float: none !important;
    width: calc(50% - 6px) !important;
    margin: 0 !important;
}

/* ---------- formkurve ---------- */

.ss-hold-page .hold-result-dot {
    display: inline-block;
    width: 9px;
    height: 9px;
    margin: 0 1px;
    border-radius: 50%;
    vertical-align: middle;
}

.ss-hold-page .hold-result-dot.win {
    background: #4f8d55;
}

.ss-hold-page .hold-result-dot.draw {
    background: #9aa5ad;
}

.ss-hold-page .hold-result-dot.loss {
    background: #c95c5c;
}

/* ---------- målfordeling ---------- */

.ss-hold-page .hold-goal-bar {
    display: block;
    width: 100%;
    height: 7px;
    overflow: hidden;
    border-radius: 4px;
    background: #e8edf0;
}

.ss-hold-page .hold-goal-bar > span {
    display: block;
    height: 100%;
    border-radius: 4px;
    background: var(--hold-blue);
}

.ss-hold-page .hold-goal-bar-fill-0 { width: 0%; }
.ss-hold-page .hold-goal-bar-fill-1 { width: 1%; }
.ss-hold-page .hold-goal-bar-fill-2 { width: 2%; }
.ss-hold-page .hold-goal-bar-fill-3 { width: 3%; }
.ss-hold-page .hold-goal-bar-fill-4 { width: 4%; }
.ss-hold-page .hold-goal-bar-fill-5 { width: 5%; }
.ss-hold-page .hold-goal-bar-fill-6 { width: 6%; }
.ss-hold-page .hold-goal-bar-fill-7 { width: 7%; }
.ss-hold-page .hold-goal-bar-fill-8 { width: 8%; }
.ss-hold-page .hold-goal-bar-fill-9 { width: 9%; }
.ss-hold-page .hold-goal-bar-fill-10 { width: 10%; }
.ss-hold-page .hold-goal-bar-fill-11 { width: 11%; }
.ss-hold-page .hold-goal-bar-fill-12 { width: 12%; }
.ss-hold-page .hold-goal-bar-fill-13 { width: 13%; }
.ss-hold-page .hold-goal-bar-fill-14 { width: 14%; }
.ss-hold-page .hold-goal-bar-fill-15 { width: 15%; }
.ss-hold-page .hold-goal-bar-fill-16 { width: 16%; }
.ss-hold-page .hold-goal-bar-fill-17 { width: 17%; }
.ss-hold-page .hold-goal-bar-fill-18 { width: 18%; }
.ss-hold-page .hold-goal-bar-fill-19 { width: 19%; }
.ss-hold-page .hold-goal-bar-fill-20 { width: 20%; }
.ss-hold-page .hold-goal-bar-fill-21 { width: 21%; }
.ss-hold-page .hold-goal-bar-fill-22 { width: 22%; }
.ss-hold-page .hold-goal-bar-fill-23 { width: 23%; }
.ss-hold-page .hold-goal-bar-fill-24 { width: 24%; }
.ss-hold-page .hold-goal-bar-fill-25 { width: 25%; }
.ss-hold-page .hold-goal-bar-fill-26 { width: 26%; }
.ss-hold-page .hold-goal-bar-fill-27 { width: 27%; }
.ss-hold-page .hold-goal-bar-fill-28 { width: 28%; }
.ss-hold-page .hold-goal-bar-fill-29 { width: 29%; }
.ss-hold-page .hold-goal-bar-fill-30 { width: 30%; }
.ss-hold-page .hold-goal-bar-fill-31 { width: 31%; }
.ss-hold-page .hold-goal-bar-fill-32 { width: 32%; }
.ss-hold-page .hold-goal-bar-fill-33 { width: 33%; }
.ss-hold-page .hold-goal-bar-fill-34 { width: 34%; }
.ss-hold-page .hold-goal-bar-fill-35 { width: 35%; }
.ss-hold-page .hold-goal-bar-fill-36 { width: 36%; }
.ss-hold-page .hold-goal-bar-fill-37 { width: 37%; }
.ss-hold-page .hold-goal-bar-fill-38 { width: 38%; }
.ss-hold-page .hold-goal-bar-fill-39 { width: 39%; }
.ss-hold-page .hold-goal-bar-fill-40 { width: 40%; }
.ss-hold-page .hold-goal-bar-fill-41 { width: 41%; }
.ss-hold-page .hold-goal-bar-fill-42 { width: 42%; }
.ss-hold-page .hold-goal-bar-fill-43 { width: 43%; }
.ss-hold-page .hold-goal-bar-fill-44 { width: 44%; }
.ss-hold-page .hold-goal-bar-fill-45 { width: 45%; }
.ss-hold-page .hold-goal-bar-fill-46 { width: 46%; }
.ss-hold-page .hold-goal-bar-fill-47 { width: 47%; }
.ss-hold-page .hold-goal-bar-fill-48 { width: 48%; }
.ss-hold-page .hold-goal-bar-fill-49 { width: 49%; }
.ss-hold-page .hold-goal-bar-fill-50 { width: 50%; }
.ss-hold-page .hold-goal-bar-fill-51 { width: 51%; }
.ss-hold-page .hold-goal-bar-fill-52 { width: 52%; }
.ss-hold-page .hold-goal-bar-fill-53 { width: 53%; }
.ss-hold-page .hold-goal-bar-fill-54 { width: 54%; }
.ss-hold-page .hold-goal-bar-fill-55 { width: 55%; }
.ss-hold-page .hold-goal-bar-fill-56 { width: 56%; }
.ss-hold-page .hold-goal-bar-fill-57 { width: 57%; }
.ss-hold-page .hold-goal-bar-fill-58 { width: 58%; }
.ss-hold-page .hold-goal-bar-fill-59 { width: 59%; }
.ss-hold-page .hold-goal-bar-fill-60 { width: 60%; }
.ss-hold-page .hold-goal-bar-fill-61 { width: 61%; }
.ss-hold-page .hold-goal-bar-fill-62 { width: 62%; }
.ss-hold-page .hold-goal-bar-fill-63 { width: 63%; }
.ss-hold-page .hold-goal-bar-fill-64 { width: 64%; }
.ss-hold-page .hold-goal-bar-fill-65 { width: 65%; }
.ss-hold-page .hold-goal-bar-fill-66 { width: 66%; }
.ss-hold-page .hold-goal-bar-fill-67 { width: 67%; }
.ss-hold-page .hold-goal-bar-fill-68 { width: 68%; }
.ss-hold-page .hold-goal-bar-fill-69 { width: 69%; }
.ss-hold-page .hold-goal-bar-fill-70 { width: 70%; }
.ss-hold-page .hold-goal-bar-fill-71 { width: 71%; }
.ss-hold-page .hold-goal-bar-fill-72 { width: 72%; }
.ss-hold-page .hold-goal-bar-fill-73 { width: 73%; }
.ss-hold-page .hold-goal-bar-fill-74 { width: 74%; }
.ss-hold-page .hold-goal-bar-fill-75 { width: 75%; }
.ss-hold-page .hold-goal-bar-fill-76 { width: 76%; }
.ss-hold-page .hold-goal-bar-fill-77 { width: 77%; }
.ss-hold-page .hold-goal-bar-fill-78 { width: 78%; }
.ss-hold-page .hold-goal-bar-fill-79 { width: 79%; }
.ss-hold-page .hold-goal-bar-fill-80 { width: 80%; }
.ss-hold-page .hold-goal-bar-fill-81 { width: 81%; }
.ss-hold-page .hold-goal-bar-fill-82 { width: 82%; }
.ss-hold-page .hold-goal-bar-fill-83 { width: 83%; }
.ss-hold-page .hold-goal-bar-fill-84 { width: 84%; }
.ss-hold-page .hold-goal-bar-fill-85 { width: 85%; }
.ss-hold-page .hold-goal-bar-fill-86 { width: 86%; }
.ss-hold-page .hold-goal-bar-fill-87 { width: 87%; }
.ss-hold-page .hold-goal-bar-fill-88 { width: 88%; }
.ss-hold-page .hold-goal-bar-fill-89 { width: 89%; }
.ss-hold-page .hold-goal-bar-fill-90 { width: 90%; }
.ss-hold-page .hold-goal-bar-fill-91 { width: 91%; }
.ss-hold-page .hold-goal-bar-fill-92 { width: 92%; }
.ss-hold-page .hold-goal-bar-fill-93 { width: 93%; }
.ss-hold-page .hold-goal-bar-fill-94 { width: 94%; }
.ss-hold-page .hold-goal-bar-fill-95 { width: 95%; }
.ss-hold-page .hold-goal-bar-fill-96 { width: 96%; }
.ss-hold-page .hold-goal-bar-fill-97 { width: 97%; }
.ss-hold-page .hold-goal-bar-fill-98 { width: 98%; }
.ss-hold-page .hold-goal-bar-fill-99 { width: 99%; }
.ss-hold-page .hold-goal-bar-fill-100 { width: 100%; }

.ss-hold-page tr.hold-separator td {
    height: 7px !important;
    padding: 0 !important;
    background: #f7f9fa !important;
    border-top: 1px solid var(--hold-line) !important;
    border-bottom: 1px solid var(--hold-line) !important;
}

.ss-hold-page tr.hold-goal-total td {
    background: #f7f9fa !important;
}

/* ---------- spillere ---------- */

.ss-hold-page #sortTable tbody td:first-child {
    color: var(--hold-muted);
}

.ss-hold-page .hold-squad-divider td {
    height: 28px !important;
    padding: 5px 8px !important;
    background: linear-gradient(to bottom, #eef6fa 0%, #dcecf4 100%) !important;
    color: var(--hold-text) !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    text-align: left !important;
}

.ss-hold-page .hold-trainers {
    font-weight: 400;
}

.ss-hold-page .hold-trainer + .hold-trainer::before {
    content: " · ";
    color: var(--hold-muted);
}

/* ---------- kampprogram ---------- */

.ss-hold-page .hold-match-row {
    cursor: pointer;
}

.ss-hold-page .hold-match-row:hover td {
    background: #f6fafc !important;
}

.ss-hold-page .hold-tv-logo {
    display: block;
    width: 20px;
    height: 20px;
    margin: 0;
    object-fit: contain;
}

.ss-hold-page .hold-match-result {
    white-space: nowrap;
}

/* ---------- små fremhævelser ---------- */

.ss-hold-page .hold-main-value,
.ss-hold-page .ref-main {
    color: var(--hold-blue);
    font-weight: 700;
}

.ss-hold-page .ref-secondary {
    color: var(--hold-text);
    font-weight: 400;
}

/* ---------- mobil ---------- */

@media screen and (max-width: 700px) {
    .ss-hold-page {
        font-size: 12px;
        line-height: 17px;
    }

    .ss-hold-page .box.multipleheader > h2 {
        padding: 8px 10px !important;
        font-size: 16px !important;
        line-height: 20px !important;
    }

    .ss-hold-page #clubdetails {
        table-layout: auto;
    }

    .ss-hold-page #clubdetails td.logo {
        width: 66px;
        padding: 10px 6px 10px 10px !important;
    }

    .ss-hold-page #clubdetails td.logo img {
        max-width: 54px;
        max-height: 54px;
    }

    .ss-hold-page #clubdetails td.clubname {
        padding: 10px 6px !important;
        font-size: 19px;
        line-height: 23px;
    }

    .ss-hold-page #clubdetails td.meta {
        width: auto;
        padding: 8px 10px 8px 4px !important;
    }

    .ss-hold-page #clubdetails td.meta li {
        font-size: 11px;
        line-height: 16px;
    }

    .ss-hold-page .inner form {
        flex-wrap: wrap;
    }

    .ss-hold-page .hold-nav-select {
        font-size: 16px;
    }

    .ss-hold-page .hold-nav-vis {
        min-width: 0;
    }

    .ss-hold-page .box.multipleheader thead th {
        padding: 5px 4px !important;
        font-size: 11px !important;
    }

    .ss-hold-page .box.multipleheader tbody td {
        height: 25px;
        padding: 3px 4px !important;
        font-size: 12px;
        line-height: 17px;
    }

    .ss-hold-page .section.hold-overview-pair {
        display: block;
        margin-bottom: 0;
    }

    .ss-hold-page .section.hold-overview-pair > .box {
        width: 100% !important;
        margin-bottom: 12px !important;
    }
}


/* =========================================================
   HOLD v13 – præcise tabelrettelser + enkel spillerheader
   ========================================================= */

/* Klubtop */
.ss-hold-page #club.box.full.blue:not(.multipleheader) {
    margin: 0 0 14px 0 !important;
    overflow: hidden !important;
    background: #fff !important;
    border: 1px solid #d9e1e6 !important;
    border-radius: 6px !important;
    box-shadow: none !important;
}

.ss-hold-page #clubdetails,
.ss-hold-page #clubdetails tbody,
.ss-hold-page #clubdetails tr,
.ss-hold-page #clubdetails td {
    border: 0 !important;
    outline: 0 !important;
    box-shadow: none !important;
}

/* Linkknapper */
.ss-hold-page #clubdetails td.meta {
    width: 265px !important;
    padding: 12px 16px 12px 10px !important;
}

.ss-hold-page #clubdetails td.meta ul {
    display: flex !important;
    margin: 0 !important;
    padding: 0 !important;
    gap: 6px !important;
    flex-wrap: wrap !important;
    justify-content: flex-end !important;
    align-items: center !important;
    list-style: none !important;
}

.ss-hold-page #clubdetails td.meta li {
    margin: 0 !important;
    padding: 0 !important;
    white-space: nowrap;
}

.ss-hold-page #clubdetails td.meta a {
    display: block !important;
    padding: 5px 9px !important;
    background: #f6f8f9 !important;
    border: 1px solid #e2e7ea !important;
    border-radius: 4px !important;
    color: var(--hold-blue) !important;
    font-size: 12px !important;
    line-height: 18px !important;
    text-decoration: none !important;
}

/* Selectområdet */
.ss-hold-page .box.full.blue.multipleheader:has(> .inner) {
    margin-bottom: 0 !important;
    border-bottom: 0 !important;
    border-radius: 6px 6px 0 0 !important;
}

.ss-hold-page .box.multipleheader > .inner,
.ss-hold-page .box.full.blue.multipleheader > .inner {
    margin: 0 !important;
    padding: 7px 10px !important;
    background: #f7f9fa !important;
    border: 0 !important;
    border-radius: 6px 6px 0 0 !important;
}

/* Hjemmestatistik skal kunne stå fuldt ud */
.ss-hold-page .hold-nav-vis {
    width: 175px !important;
    min-width: 175px !important;
}

/* Boksramme */
.ss-hold-page .box.multipleheader {
    margin-bottom: 12px !important;
    overflow: hidden !important;
    background: #fff !important;
    border-top: 1px solid #d9e1e6 !important;
    border-right: 1px solid #d9e1e6 !important;
    border-bottom: 3px solid var(--hold-blue) !important;
    border-left: 1px solid #d9e1e6 !important;
    border-radius: 6px 6px 0 0 !important;
    box-shadow: none !important;
}

.ss-hold-page .box.multipleheader > h2 {
    min-height: 38px !important;
    height: auto !important;
    padding: 8px 12px !important;
    overflow: visible !important;
    border: 0 !important;
    border-radius: 5px 5px 0 0 !important;
    font-size: 17px !important;
    line-height: 21px !important;
}

.ss-hold-page .box.multipleheader table,
.ss-hold-page .box.multipleheader thead,
.ss-hold-page .box.multipleheader tbody,
.ss-hold-page .box.multipleheader tr,
.ss-hold-page .box.multipleheader th:first-child,
.ss-hold-page .box.multipleheader td:first-child,
.ss-hold-page .box.multipleheader th:last-child,
.ss-hold-page .box.multipleheader td:last-child {
    border-left: 0 !important;
    border-right: 0 !important;
    outline: 0 !important;
    box-shadow: none !important;
}

.ss-hold-page .ss-hold-bottom-line,
.ss-hold-page .box.multipleheader::after,
.ss-hold-page .box.multipleheader tfoot {
    display: none !important;
    content: none !important;
}

/* Zebra */
.ss-hold-page .box.multipleheader tbody tr:nth-child(odd) td {
    background: #fff !important;
}
.ss-hold-page .box.multipleheader tbody tr:nth-child(even) td {
    background: #f7f9fa !important;
}
.ss-hold-page .box.multipleheader tbody tr.hold-squad-divider td {
    background: linear-gradient(to bottom, #eef6fa 0%, #dcecf4 100%) !important;
}

/* Flag */
.ss-hold-page .flag,
.ss-hold-page img.flag,
.ss-hold-page td img[src*="/flag/"],
.ss-hold-page td img[src*="/flags/"] {
    width: auto !important;
    max-width: 16px !important;
    height: auto !important;
    max-height: 12px !important;
    margin: 0 !important;
    vertical-align: middle !important;
}

/* Træner */
.ss-hold-page .hold-trainer-footer {
    display: flex !important;
    width: 100% !important;
    min-height: 28px !important;
    margin: 0 !important;
    padding: 5px 9px !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 4px !important;
    background: #f7f9fa !important;
    border: 0 !important;
    border-top: 1px solid var(--hold-line) !important;
    font-size: 12px !important;
    line-height: 18px !important;
}

.ss-hold-page .hold-trainer-label,
.ss-hold-page .hold-trainers,
.ss-hold-page .hold-trainer {
    display: inline-flex !important;
    align-items: center !important;
    line-height: 18px !important;
}

/* =========================================================
   SPILLERHEADER
   K M A I U er tekst. Gult/rødt kort bruger SuperStats-spriten.
   SP og Min er tekst.
   ========================================================= */

.ss-hold-page .hold-card-icon {
    display: inline-block !important;
    width: 16px;
    height: 16px;
    margin: -3px;
    background-image: url(/images/bg_ikoner.png);
    background-repeat: no-repeat;
    vertical-align: middle;
    transform: scale(.68);
    transform-origin: center;
}

/* Sprite-rækken efter penaltyfail: gul og rød */
.ss-hold-page .hold-card-yellow {
    background-position: 0 -96px;
}

.ss-hold-page .hold-card-red {
    background-position: 0 -112px;
}

/* =========================================================
   TILSKUERE – nu målrettet den faktiske tabel
   ========================================================= */

.ss-hold-page .hold-attendance-table th:not(:first-child),
.ss-hold-page .hold-attendance-table td:not(:first-child) {
    text-align: right !important;
}

.ss-hold-page .hold-attendance-table th:first-child,
.ss-hold-page .hold-attendance-table td:first-child {
    text-align: left !important;
}

/* =========================================================
   MÅL FORDELT PÅ MINUTTER – målrettet eksisterende klasse
   ========================================================= */

/*
   Boksen får mere af rækken end dommerboksen.
   Det er her pladsproblemet faktisk opstår.
*/
.ss-hold-page .hold-goal-referee-pair > .hold-goal-minute-box {
    width: calc(58% - 6px) !important;
}

.ss-hold-page .hold-goal-referee-pair > .hold-overview-box:not(.hold-goal-minute-box) {
    width: calc(42% - 6px) !important;
}

/* Faste kolonneandele, så både Fordeling og % bliver synlige */
.ss-hold-page .hold-goal-minute-table {
    width: 100% !important;
    table-layout: fixed !important;
}

.ss-hold-page .hold-goal-minute-table th,
.ss-hold-page .hold-goal-minute-table td {
    padding-left: 8px !important;
    padding-right: 8px !important;
}

.ss-hold-page .hold-goal-minute-table th:nth-child(1),
.ss-hold-page .hold-goal-minute-table td:nth-child(1) {
    width: 28% !important;
}

.ss-hold-page .hold-goal-minute-table th:nth-child(2),
.ss-hold-page .hold-goal-minute-table td:nth-child(2) {
    width: 12% !important;
    text-align: center !important;
}

.ss-hold-page .hold-goal-minute-table th:nth-child(3),
.ss-hold-page .hold-goal-minute-table td:nth-child(3) {
    width: 42% !important;
}

.ss-hold-page .hold-goal-minute-table th:nth-child(4),
.ss-hold-page .hold-goal-minute-table td:nth-child(4) {
    width: 18% !important;
    text-align: right !important;
    white-space: nowrap !important;
}

/* Fordelingsbjælken */
.ss-hold-page .hold-goal-minute-table .hold-goal-bar {
    display: block !important;
    width: 100% !important;
    height: 7px !important;
    overflow: hidden !important;
    border-radius: 4px !important;
    background: #e8edf0 !important;
}

.ss-hold-page .hold-goal-minute-table .hold-goal-bar > span {
    display: block !important;
    height: 100% !important;
    border-radius: 4px !important;
    background: #104470 !important;
}

/* =========================================================
   RESULTATPRIKKER – SuperStats-standard
   blå / gul / rød
   ========================================================= */

.ss-hold-page .hold-result-dot.win {
    background: #104470 !important;
}

.ss-hold-page .hold-result-dot.draw {
    background: #F2B705 !important;
}

.ss-hold-page .hold-result-dot.loss {
    background: #EB5757 !important;
}

@media screen and (max-width:700px) {
    .ss-hold-page .hold-nav-vis {
        width: 165px !important;
        min-width: 165px !important;
    }

    .ss-hold-page .section.hold-goal-referee-pair {
        display: block !important;
    }

    .ss-hold-page .section.hold-goal-referee-pair > .box {
        width: 100% !important;
        margin-bottom: 12px !important;
    }
}


/* =========================================================
   HOLD v14 – fuld række + oprindelige formfarver
   ========================================================= */

/*
   Mål/Dommere skal tilsammen bruge HELE rækken.
   Første boks får 58%, anden 42%, minus den fælles afstand.
*/
.ss-hold-page .section.hold-goal-referee-pair {
    display: flex !important;
    width: 100% !important;
    gap: 16px !important;
    align-items: stretch !important;
}

.ss-hold-page .section.hold-goal-referee-pair > .hold-goal-minute-box {
    flex: 0 0 calc(58% - 8px) !important;
    width: calc(58% - 8px) !important;
    max-width: none !important;
    margin: 0 !important;
}

.ss-hold-page .section.hold-goal-referee-pair > .hold-overview-box:not(.hold-goal-minute-box) {
    flex: 0 0 calc(42% - 8px) !important;
    width: calc(42% - 8px) !important;
    max-width: none !important;
    margin: 0 !important;
}

/* Mål-tabellen får lidt mere luft i den bredere venstreboks */
.ss-hold-page .hold-goal-minute-table th:nth-child(1),
.ss-hold-page .hold-goal-minute-table td:nth-child(1) {
    width: 27% !important;
}

.ss-hold-page .hold-goal-minute-table th:nth-child(2),
.ss-hold-page .hold-goal-minute-table td:nth-child(2) {
    width: 11% !important;
}

.ss-hold-page .hold-goal-minute-table th:nth-child(3),
.ss-hold-page .hold-goal-minute-table td:nth-child(3) {
    width: 46% !important;
}

.ss-hold-page .hold-goal-minute-table th:nth-child(4),
.ss-hold-page .hold-goal-minute-table td:nth-child(4) {
    width: 16% !important;
}

/*
   Formprikker – tilbage til den eksisterende SuperStats-skala:
   lys orange / rød / grøn / rød / grøn.
   Vi målretter de faktiske .form-dot klasser fra PHP.
*/
.ss-hold-page .form-dot {
    width: 12px !important;
    height: 12px !important;
    border-radius: 50% !important;
    display: inline-block !important;
}

/* uafgjort */
.ss-hold-page .form-dot.draw,
.ss-hold-page .form-dot.u,
.ss-hold-page .form-dot.tie {
    background: #F4B47B !important;
}

/* nederlag */
.ss-hold-page .form-dot.loss,
.ss-hold-page .form-dot.t,
.ss-hold-page .form-dot.l {
    background: #D94747 !important;
}

/* sejr */
.ss-hold-page .form-dot.win,
.ss-hold-page .form-dot.v,
.ss-hold-page .form-dot.w {
    background: #2E963D !important;
}

/* Samme farver hvis de eksisterende prikker bruger result-dot */
.ss-hold-page .hold-result-dot.draw,
.ss-hold-page .hold-result-dot.u {
    background: #F4B47B !important;
}

.ss-hold-page .hold-result-dot.loss,
.ss-hold-page .hold-result-dot.t {
    background: #D94747 !important;
}

.ss-hold-page .hold-result-dot.win,
.ss-hold-page .hold-result-dot.v {
    background: #2E963D !important;
}

@media screen and (max-width:700px) {
    .ss-hold-page .section.hold-goal-referee-pair {
        display: block !important;
    }

    .ss-hold-page .section.hold-goal-referee-pair > .hold-goal-minute-box,
    .ss-hold-page .section.hold-goal-referee-pair > .hold-overview-box:not(.hold-goal-minute-box) {
        width: 100% !important;
        max-width: none !important;
        margin: 0 0 12px 0 !important;
    }
}


/* =========================================================
   HOLD v15 – sidste finish på sæsonsiden
   ========================================================= */

/* 1. Spilleroversigt: lidt tydeligere navnehierarki */
.ss-hold-page #sortTable tbody td:nth-child(2) a {
    font-weight: 500 !important;
    color: #003f73 !important;
}

.ss-hold-page #sortTable tbody td:first-child,
.ss-hold-page #sortTable tbody td:nth-child(3) {
    color: #7b8992 !important;
}

/* Position og flag må gerne være sekundære */
.ss-hold-page #sortTable tbody td:nth-child(3),
.ss-hold-page #sortTable tbody td:nth-child(4) {
    font-size: 12px !important;
}

/* 2. Statistik-kolonner: ens rytme, Min lidt bredere */
.ss-hold-page #sortTable th:nth-child(n+5):nth-child(-n+12),
.ss-hold-page #sortTable td:nth-child(n+5):nth-child(-n+12) {
    width: 44px !important;
    min-width: 44px !important;
    text-align: center !important;
}

.ss-hold-page #sortTable th:nth-child(13),
.ss-hold-page #sortTable td:nth-child(13) {
    width: 58px !important;
    min-width: 58px !important;
    text-align: right !important;
    padding-right: 10px !important;
}

/* 3. "Ikke længere i truppen" som diskret underopdeling */
.ss-hold-page #sortTable tbody tr.hold-squad-divider td {
    padding-top: 5px !important;
    padding-bottom: 5px !important;
    background: #edf4f7 !important;
    border-top: 1px solid #d5e3ea !important;
    border-bottom: 1px solid #d5e3ea !important;
    color: #35566d !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    line-height: 17px !important;
}

/* 4. Målfordeling: samme blå og afrunding som øvrig datagrafik */
.ss-hold-page .hold-goal-minute-table .hold-goal-bar {
    height: 7px !important;
    border-radius: 4px !important;
    background: #e7edf1 !important;
}

.ss-hold-page .hold-goal-minute-table .hold-goal-bar > span {
    height: 7px !important;
    border-radius: 4px !important;
    background: #104470 !important;
}

/* 5. Dommere: navn til venstre, antal kampe til højre */
.ss-hold-page .hold-referee-table td,
.ss-hold-page .hold-referee-table th {
    vertical-align: middle !important;
}

.ss-hold-page .hold-referee-table td:first-child {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 12px !important;
}

.ss-hold-page .hold-ref-count {
    margin-left: auto !important;
    color: #7b8992 !important;
    font-size: 12px !important;
    font-weight: 400 !important;
    white-space: nowrap !important;
}

/* 6. Topnavigation: rolig hover/aktiv fornemmelse */
.ss-hold-page #clubdetails td.meta a {
    transition: background-color .12s ease, border-color .12s ease, color .12s ease !important;
}

.ss-hold-page #clubdetails td.meta a:hover,
.ss-hold-page #clubdetails td.meta a:focus {
    background: #edf4f7 !important;
    border-color: #cbdce5 !important;
    color: #10315B !important;
    text-decoration: none !important;
}

/* 7. Selectområdet: lidt mindre luft, controls stadig 29px */
.ss-hold-page .box.multipleheader > .inner,
.ss-hold-page .box.full.blue.multipleheader > .inner {
    padding-top: 5px !important;
    padding-bottom: 5px !important;
}

.ss-hold-page .inner form {
    min-height: 29px !important;
}

.ss-hold-page .hold-nav-select {
    height: 29px !important;
}

/* 8. Fælles taljustering:
   almindelige tekstkolonner venstre, rene numeriske slutkolonner højre */
.ss-hold-page .hold-attendance-table th:not(:first-child),
.ss-hold-page .hold-attendance-table td:not(:first-child) {
    text-align: right !important;
}

.ss-hold-page .hold-goal-minute-table th:nth-child(2),
.ss-hold-page .hold-goal-minute-table td:nth-child(2) {
    text-align: center !important;
}

.ss-hold-page .hold-goal-minute-table th:nth-child(4),
.ss-hold-page .hold-goal-minute-table td:nth-child(4) {
    text-align: right !important;
}

/* Resultatform: behold den godkendte palette */
.ss-hold-page .hold-result-dot.draw {
    background: #F4B47B !important;
}

.ss-hold-page .hold-result-dot.loss {
    background: #D94747 !important;
}

.ss-hold-page .hold-result-dot.win {
    background: #2E963D !important;
}

@media screen and (max-width:700px) {
    .ss-hold-page #sortTable th:nth-child(n+5):nth-child(-n+12),
    .ss-hold-page #sortTable td:nth-child(n+5):nth-child(-n+12) {
        width: auto !important;
        min-width: 0 !important;
    }

    .ss-hold-page #sortTable th:nth-child(13),
    .ss-hold-page #sortTable td:nth-child(13) {
        width: auto !important;
        min-width: 0 !important;
        padding-right: 6px !important;
    }
}


/* =========================================================
   HOLD v16 – Dommere / Målscorere / Kort / Tilskuere
   ========================================================= */

/* ---------------------------------------------------------
   DOMMERE
   v15 gjorde første td til flex og skubbede de øvrige data ud.
   Tabellen er igen en rigtig tabel med alle statistik-kolonner.
   --------------------------------------------------------- */

.ss-hold-page .hold-referee-table {
    width: 100% !important;
    table-layout: fixed !important;
}

.ss-hold-page .hold-referee-table th,
.ss-hold-page .hold-referee-table td {
    display: table-cell !important;
    padding-left: 6px !important;
    padding-right: 6px !important;
    vertical-align: middle !important;
    text-align: center !important;
    white-space: nowrap !important;
}

.ss-hold-page .hold-referee-table th:first-child,
.ss-hold-page .hold-referee-table td:first-child {
    width: 42% !important;
    text-align: left !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

.ss-hold-page .hold-referee-table th:nth-child(2),
.ss-hold-page .hold-referee-table td:nth-child(2),
.ss-hold-page .hold-referee-table th:nth-child(3),
.ss-hold-page .hold-referee-table td:nth-child(3),
.ss-hold-page .hold-referee-table th:nth-child(4),
.ss-hold-page .hold-referee-table td:nth-child(4),
.ss-hold-page .hold-referee-table th:nth-child(5),
.ss-hold-page .hold-referee-table td:nth-child(5) {
    width: 8% !important;
}

.ss-hold-page .hold-referee-table th:nth-child(6),
.ss-hold-page .hold-referee-table td:nth-child(6) {
    width: 4% !important;
}

.ss-hold-page .hold-referee-table th:nth-child(7),
.ss-hold-page .hold-referee-table td:nth-child(7),
.ss-hold-page .hold-referee-table th:nth-child(8),
.ss-hold-page .hold-referee-table td:nth-child(8) {
    width: 11% !important;
}

/* ---------------------------------------------------------
   MÅLSCORERE OG KORT
   Tal-kolonnerne må ikke forsvinde. Navn får plads, tal står
   kompakt og højrestillet.
   --------------------------------------------------------- */

.ss-hold-page .hold-scorer-table,
.ss-hold-page .hold-cards-table {
    width: 100% !important;
    table-layout: fixed !important;
}

.ss-hold-page .hold-scorer-table th:first-child,
.ss-hold-page .hold-scorer-table td:first-child,
.ss-hold-page .hold-cards-table th:first-child,
.ss-hold-page .hold-cards-table td:first-child {
    width: auto !important;
    text-align: left !important;
}

.ss-hold-page .hold-scorer-table th:not(:first-child),
.ss-hold-page .hold-scorer-table td:not(:first-child),
.ss-hold-page .hold-cards-table th:not(:first-child),
.ss-hold-page .hold-cards-table td:not(:first-child) {
    width: 48px !important;
    text-align: right !important;
    padding-right: 9px !important;
    white-space: nowrap !important;
}

/* Hvis de to tabeller bruger eksisterende overview-klasser i stedet
   for de nye klasser, fasthold samme princip via deres placering. */
.ss-hold-page .hold-scorer-card-pair > .box table th:not(:first-child),
.ss-hold-page .hold-scorer-card-pair > .box table td:not(:first-child) {
    text-align: right !important;
}

/* ---------------------------------------------------------
   TILSKUERE
   Tal tilbage til højre. Første tekstkolonne forbliver venstre.
   --------------------------------------------------------- */

.ss-hold-page .hold-attendance-table {
    width: 100% !important;
}

.ss-hold-page .hold-attendance-table th:first-child,
.ss-hold-page .hold-attendance-table td:first-child {
    text-align: left !important;
}

.ss-hold-page .hold-attendance-table th:not(:first-child),
.ss-hold-page .hold-attendance-table td:not(:first-child) {
    text-align: right !important;
    padding-right: 10px !important;
}

/* Mere specifik end generelle center-regler i hold.css */
.ss-hold-page .box.multipleheader .hold-attendance-table th:not(:first-child),
.ss-hold-page .box.multipleheader .hold-attendance-table td:not(:first-child) {
    text-align: right !important;
}

@media screen and (max-width:700px) {
    .ss-hold-page .hold-referee-table th,
    .ss-hold-page .hold-referee-table td {
        padding-left: 4px !important;
        padding-right: 4px !important;
    }

    .ss-hold-page .hold-referee-table th:first-child,
    .ss-hold-page .hold-referee-table td:first-child {
        width: 38% !important;
    }
}


/* =========================================================
   HOLD v17 – dommerboksen tilpasset den faktiske bredde
   ========================================================= */

/*
   Dommerboksen er kun ca. 40% af rækken. Otte kolonner var ganske
   enkelt for meget og fik navne/kolonner til at kollidere.
   Vis derfor Dommer + K + Gule + Røde.
*/
.ss-hold-page .hold-referee-table {
    width: 100% !important;
    table-layout: fixed !important;
}

.ss-hold-page .hold-referee-table th,
.ss-hold-page .hold-referee-table td {
    display: table-cell !important;
    box-sizing: border-box !important;
    padding: 6px 8px !important;
    overflow: visible !important;
    text-overflow: clip !important;
    white-space: nowrap !important;
    vertical-align: middle !important;
}

.ss-hold-page .hold-referee-table th:first-child,
.ss-hold-page .hold-referee-table td:first-child {
    width: 61% !important;
    text-align: left !important;
}

.ss-hold-page .hold-referee-table th:nth-child(2),
.ss-hold-page .hold-referee-table td:nth-child(2) {
    width: 11% !important;
    text-align: center !important;
}

.ss-hold-page .hold-referee-table th:nth-child(3),
.ss-hold-page .hold-referee-table td:nth-child(3),
.ss-hold-page .hold-referee-table th:nth-child(4),
.ss-hold-page .hold-referee-table td:nth-child(4) {
    width: 14% !important;
    text-align: center !important;
}

/* Målscorere: navn + mål */
.ss-hold-page .hold-scorer-table {
    width: 100% !important;
    table-layout: fixed !important;
}

.ss-hold-page .hold-scorer-table th:first-child,
.ss-hold-page .hold-scorer-table td:first-child {
    width: auto !important;
    text-align: left !important;
}

.ss-hold-page .hold-scorer-table th:last-child,
.ss-hold-page .hold-scorer-table td:last-child {
    width: 58px !important;
    text-align: right !important;
    padding-right: 10px !important;
}

/* Kort: navn + tre kompakte tal */
.ss-hold-page .hold-cards-table {
    width: 100% !important;
    table-layout: fixed !important;
}

.ss-hold-page .hold-cards-table th:first-child,
.ss-hold-page .hold-cards-table td:first-child {
    width: auto !important;
    text-align: left !important;
}

.ss-hold-page .hold-cards-table th:nth-child(2),
.ss-hold-page .hold-cards-table td:nth-child(2),
.ss-hold-page .hold-cards-table th:nth-child(3),
.ss-hold-page .hold-cards-table td:nth-child(3),
.ss-hold-page .hold-cards-table th:nth-child(4),
.ss-hold-page .hold-cards-table td:nth-child(4) {
    width: 54px !important;
    text-align: right !important;
    padding-right: 9px !important;
}

/* Tilskuertal: fasthold højrestilling efter alle generelle tabelregler */
.ss-hold-page table.hold-attendance-table thead th:not(:first-child),
.ss-hold-page table.hold-attendance-table tbody td:not(:first-child) {
    text-align: right !important;
    padding-right: 10px !important;
}


/* =========================================================
   HOLD v18 – robust rettelse af Dommere
   Virker både med gammel 8-kolonners PHP og ny 4-kolonners PHP.
   ========================================================= */

/* Hvis gammel markup stadig ligger live: skjul V, U, T og spacer */
.ss-hold-page .hold-referee-table th:nth-child(3):nth-last-child(6),
.ss-hold-page .hold-referee-table td:nth-child(3):nth-last-child(6),
.ss-hold-page .hold-referee-table th:nth-child(4):nth-last-child(5),
.ss-hold-page .hold-referee-table td:nth-child(4):nth-last-child(5),
.ss-hold-page .hold-referee-table th:nth-child(5):nth-last-child(4),
.ss-hold-page .hold-referee-table td:nth-child(5):nth-last-child(4),
.ss-hold-page .hold-referee-table th:nth-child(6):nth-last-child(3),
.ss-hold-page .hold-referee-table td:nth-child(6):nth-last-child(3) {
    display: none !important;
}

/* Den gamle 8-kolonners tabel: Dommer | K | Gule | Røde */
.ss-hold-page .hold-referee-table:has(tr > :nth-child(8)) th:first-child,
.ss-hold-page .hold-referee-table:has(tr > :nth-child(8)) td:first-child {
    width: 61% !important;
    text-align: left !important;
}

.ss-hold-page .hold-referee-table:has(tr > :nth-child(8)) th:nth-child(2),
.ss-hold-page .hold-referee-table:has(tr > :nth-child(8)) td:nth-child(2) {
    width: 11% !important;
    text-align: center !important;
}

.ss-hold-page .hold-referee-table:has(tr > :nth-child(8)) th:nth-child(7),
.ss-hold-page .hold-referee-table:has(tr > :nth-child(8)) td:nth-child(7),
.ss-hold-page .hold-referee-table:has(tr > :nth-child(8)) th:nth-child(8),
.ss-hold-page .hold-referee-table:has(tr > :nth-child(8)) td:nth-child(8) {
    width: 14% !important;
    text-align: center !important;
}

/* Ny 4-kolonners tabel */
.ss-hold-page .hold-referee-table:not(:has(tr > :nth-child(5))) th:first-child,
.ss-hold-page .hold-referee-table:not(:has(tr > :nth-child(5))) td:first-child {
    width: 61% !important;
    text-align: left !important;
}

.ss-hold-page .hold-referee-table:not(:has(tr > :nth-child(5))) th:nth-child(2),
.ss-hold-page .hold-referee-table:not(:has(tr > :nth-child(5))) td:nth-child(2) {
    width: 11% !important;
    text-align: center !important;
}

.ss-hold-page .hold-referee-table:not(:has(tr > :nth-child(5))) th:nth-child(3),
.ss-hold-page .hold-referee-table:not(:has(tr > :nth-child(5))) td:nth-child(3),
.ss-hold-page .hold-referee-table:not(:has(tr > :nth-child(5))) th:nth-child(4),
.ss-hold-page .hold-referee-table:not(:has(tr > :nth-child(5))) td:nth-child(4) {
    width: 14% !important;
    text-align: center !important;
}

/* Sørg for at navn aldrig får den blå cellebaggrund fra gamle nth-child-regler */
.ss-hold-page .hold-referee-table tbody td:first-child {
    background: inherit !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

/* Målscorere og Kort: tving talceller synlige */
.ss-hold-page .hold-scorer-box table th:last-child,
.ss-hold-page .hold-scorer-box table td:last-child {
    display: table-cell !important;
    width: 58px !important;
    text-align: right !important;
    padding-right: 10px !important;
}

.ss-hold-page .hold-cards-box table th:nth-child(n+2),
.ss-hold-page .hold-cards-box table td:nth-child(n+2) {
    display: table-cell !important;
    width: 54px !important;
    text-align: right !important;
    padding-right: 9px !important;
}

/* Tilskuertal – sidste ord i cascade */
.ss-hold-page .hold-attendance-table > thead > tr > th:not(:first-child),
.ss-hold-page .hold-attendance-table > tbody > tr > td:not(:first-child) {
    text-align: right !important;
}


/* =========================================================
   HOLD v19 – ren zebra i Dommere
   ========================================================= */

/*
   Ingen enkeltceller i Dommere må have egen baggrund.
   Zebraen tegnes konsekvent over hele rækken.
*/
.ss-hold-page .hold-referee-table tbody tr:nth-child(odd) td,
.ss-hold-page .hold-referee-table tbody tr:nth-child(odd) td:first-child,
.ss-hold-page .hold-referee-table tbody tr:nth-child(odd) td:nth-child(n) {
    background: #ffffff !important;
}

.ss-hold-page .hold-referee-table tbody tr:nth-child(even) td,
.ss-hold-page .hold-referee-table tbody tr:nth-child(even) td:first-child,
.ss-hold-page .hold-referee-table tbody tr:nth-child(even) td:nth-child(n) {
    background: #f7f9fa !important;
}

/* Fjern eventuelle gamle markeringer/pseudo-elementer i cellerne */
.ss-hold-page .hold-referee-table tbody td {
    background-image: none !important;
    box-shadow: none !important;
}

.ss-hold-page .hold-referee-table tbody td::before,
.ss-hold-page .hold-referee-table tbody td::after {
    content: none !important;
    display: none !important;
}


/* =========================================================
   HOLD v20 – Dommere: fjern gammel 8-kolonne-rest ved roden
   ========================================================= */

/*
   Tabellen har historisk haft 8 celler. Selv når V/U/T skjules,
   kan gamle nth-child-regler stadig reservere/tegne areal.
   Vi gør derfor hver synlig dommerrække til et fast 4-kolonne-grid:
   Dommer | K | Gule | Røde.
*/
.ss-hold-page .hold-referee-table {
    table-layout: auto !important;
}

.ss-hold-page .hold-referee-table thead,
.ss-hold-page .hold-referee-table tbody {
    display: table-row-group !important;
}

.ss-hold-page .hold-referee-table thead tr,
.ss-hold-page .hold-referee-table tbody tr {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 38px 48px 48px !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

/* Ny 4-kolonne markup: alle fire celler ind i grid'et */
.ss-hold-page .hold-referee-table:not(:has(tr > :nth-child(5))) tr > :nth-child(1) { grid-column: 1 !important; }
.ss-hold-page .hold-referee-table:not(:has(tr > :nth-child(5))) tr > :nth-child(2) { grid-column: 2 !important; }
.ss-hold-page .hold-referee-table:not(:has(tr > :nth-child(5))) tr > :nth-child(3) { grid-column: 3 !important; }
.ss-hold-page .hold-referee-table:not(:has(tr > :nth-child(5))) tr > :nth-child(4) { grid-column: 4 !important; }

/* Gammel 8-kolonne markup: brug kun Dommer, K, Gule, Røde */
.ss-hold-page .hold-referee-table:has(tr > :nth-child(8)) tr > :nth-child(1) { grid-column: 1 !important; }
.ss-hold-page .hold-referee-table:has(tr > :nth-child(8)) tr > :nth-child(2) { grid-column: 2 !important; }
.ss-hold-page .hold-referee-table:has(tr > :nth-child(8)) tr > :nth-child(7) { grid-column: 3 !important; }
.ss-hold-page .hold-referee-table:has(tr > :nth-child(8)) tr > :nth-child(8) { grid-column: 4 !important; }

.ss-hold-page .hold-referee-table:has(tr > :nth-child(8)) tr > :nth-child(3),
.ss-hold-page .hold-referee-table:has(tr > :nth-child(8)) tr > :nth-child(4),
.ss-hold-page .hold-referee-table:has(tr > :nth-child(8)) tr > :nth-child(5),
.ss-hold-page .hold-referee-table:has(tr > :nth-child(8)) tr > :nth-child(6) {
    display: none !important;
}

/* Nulstil ALLE gamle cellebredder/farver */
.ss-hold-page .hold-referee-table tr > th,
.ss-hold-page .hold-referee-table tr > td {
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
    margin: 0 !important;
    box-sizing: border-box !important;
    background-image: none !important;
    box-shadow: none !important;
    overflow: hidden !important;
}

/* Navnet får hele første gridkolonne og må ikke klippes af en farvet celle */
.ss-hold-page .hold-referee-table tr > :first-child {
    padding-left: 9px !important;
    text-align: left !important;
    white-space: nowrap !important;
    text-overflow: clip !important;
}

/* Statistik */
.ss-hold-page .hold-referee-table tr > :not(:first-child) {
    text-align: center !important;
    padding-left: 3px !important;
    padding-right: 3px !important;
}

/* Zebra skal ligge på HELE rækken – aldrig på enkeltceller */
.ss-hold-page .hold-referee-table tbody tr:nth-child(odd) {
    background: #ffffff !important;
}

.ss-hold-page .hold-referee-table tbody tr:nth-child(even) {
    background: #f7f9fa !important;
}

.ss-hold-page .hold-referee-table tbody tr:nth-child(odd) > td,
.ss-hold-page .hold-referee-table tbody tr:nth-child(even) > td {
    background: transparent !important;
}

/* THEAD som én ubrudt lyseblå flade */
.ss-hold-page .hold-referee-table thead tr {
    background: linear-gradient(to bottom, #e3f1f7 0%, #cfe5ef 100%) !important;
}

.ss-hold-page .hold-referee-table thead th {
    background: transparent !important;
}


/* =========================================================
   HOLD v21 – bedre pladsfordeling mellem Mål og Dommere
   ========================================================= */

/* Begge bokse bruger stadig hele rækken, men Dommere får mere plads */
.ss-hold-page .section.hold-goal-referee-pair > .hold-goal-minute-box {
    flex: 0 0 calc(56% - 8px) !important;
    width: calc(56% - 8px) !important;
}

.ss-hold-page .section.hold-goal-referee-pair > .hold-overview-box:not(.hold-goal-minute-box) {
    flex: 0 0 calc(44% - 8px) !important;
    width: calc(44% - 8px) !important;
}

/*
   Dommere: tal behøver meget lidt plads.
   Navnet får alt resten.
*/
.ss-hold-page .hold-referee-table thead tr,
.ss-hold-page .hold-referee-table tbody tr {
    grid-template-columns: minmax(0, 1fr) 32px 42px 42px !important;
}

/* Lidt mere kompakt vandret padding i dommertabellen */
.ss-hold-page .hold-referee-table th,
.ss-hold-page .hold-referee-table td {
    padding-left: 5px !important;
    padding-right: 5px !important;
}

/* Navnet prioriteres */
.ss-hold-page .hold-referee-table tr > :first-child {
    padding-left: 9px !important;
    overflow: hidden !important;
    white-space: nowrap !important;
    text-overflow: clip !important;
}

/* Overskrifterne skal stå fuldt ud: K / Gule / Røde */
.ss-hold-page .hold-referee-table thead th:nth-child(2),
.ss-hold-page .hold-referee-table thead th:nth-child(3),
.ss-hold-page .hold-referee-table thead th:nth-child(4) {
    padding-left: 2px !important;
    padding-right: 2px !important;
    font-size: 12px !important;
    text-align: center !important;
}

/* Målfordelingen kan stadig stå komfortabelt ved 56% */
.ss-hold-page .hold-goal-minute-table th,
.ss-hold-page .hold-goal-minute-table td {
    padding-left: 7px !important;
    padding-right: 7px !important;
}

@media screen and (max-width:700px) {
    .ss-hold-page .section.hold-goal-referee-pair > .hold-goal-minute-box,
    .ss-hold-page .section.hold-goal-referee-pair > .hold-overview-box:not(.hold-goal-minute-box) {
        width: 100% !important;
        max-width: none !important;
        margin: 0 0 12px 0 !important;
    }
}


/* =========================================================
   HOLD v24 – fysisk flyttede bokse
   ========================================================= */
.ss-hold-page .hold-goal-scorer-pair,
.ss-hold-page .hold-referee-card-pair {
    display:flex !important;
    width:100% !important;
    gap:16px !important;
    align-items:stretch !important;
    clear:both !important;
}
.ss-hold-page .hold-goal-scorer-pair > .hold-overview-box,
.ss-hold-page .hold-referee-card-pair > .hold-overview-box {
    float:none !important;
    max-width:none !important;
    min-width:0 !important;
    margin:0 !important;
    box-sizing:border-box !important;
}
.ss-hold-page .hold-goal-scorer-pair > .hold-goal-minute-box,
.ss-hold-page .hold-referee-card-pair > .hold-overview-box:first-child {
    flex:0 0 calc(58% - 8px) !important;
    width:calc(58% - 8px) !important;
}
.ss-hold-page .hold-goal-scorer-pair > .hold-scorers-box,
.ss-hold-page .hold-referee-card-pair > .hold-cards-box {
    flex:0 0 calc(42% - 8px) !important;
    width:calc(42% - 8px) !important;
}
.ss-hold-page .hold-referee-card-pair .hold-referee-table thead tr,
.ss-hold-page .hold-referee-card-pair .hold-referee-table tbody tr {
    grid-template-columns:minmax(0,1fr) 42px 58px 58px !important;
}
.ss-hold-page .hold-referee-card-pair .hold-referee-table th,
.ss-hold-page .hold-referee-card-pair .hold-referee-table td {
    padding-left:8px !important;
    padding-right:8px !important;
}
@media screen and (max-width:700px) {
    .ss-hold-page .hold-goal-scorer-pair,
    .ss-hold-page .hold-referee-card-pair {display:block !important;}
    .ss-hold-page .hold-goal-scorer-pair > .hold-overview-box,
    .ss-hold-page .hold-referee-card-pair > .hold-overview-box {
        width:100% !important;max-width:none !important;margin:0 0 12px 0 !important;
    }
}


/* =========================================================
   HOLD v25 – oprydning efter fysisk flytning
   ========================================================= */

.ss-hold-page .hold-goal-scorer-pair,
.ss-hold-page .hold-referee-card-pair {
    display: flex !important;
    width: 100% !important;
    gap: 16px !important;
    align-items: flex-start !important;
}

/* Øverst: Målminutter / Målscorere */
.ss-hold-page .hold-goal-scorer-pair > .hold-goal-minute-box {
    flex: 0 0 calc(58% - 8px) !important;
    width: calc(58% - 8px) !important;
}

.ss-hold-page .hold-goal-scorer-pair > .hold-scorers-box {
    flex: 0 0 calc(42% - 8px) !important;
    width: calc(42% - 8px) !important;
}

/* Nederst: Dommere / Kort – Dommere får 60% */
.ss-hold-page .hold-referee-card-pair > .hold-overview-box:first-child {
    flex: 0 0 calc(60% - 8px) !important;
    width: calc(60% - 8px) !important;
}

.ss-hold-page .hold-referee-card-pair > .hold-cards-box {
    flex: 0 0 calc(40% - 8px) !important;
    width: calc(40% - 8px) !important;
}

/* Dommere: almindelig 4-kolonnefordeling med god plads til overskrifter */
.ss-hold-page .hold-referee-card-pair .hold-referee-table thead tr,
.ss-hold-page .hold-referee-card-pair .hold-referee-table tbody tr {
    grid-template-columns: minmax(0, 1fr) 44px 62px 62px !important;
}

.ss-hold-page .hold-referee-card-pair .hold-referee-table th,
.ss-hold-page .hold-referee-card-pair .hold-referee-table td {
    padding-left: 7px !important;
    padding-right: 7px !important;
}

.ss-hold-page .hold-referee-card-pair .hold-referee-table th:nth-child(2),
.ss-hold-page .hold-referee-card-pair .hold-referee-table th:nth-child(3),
.ss-hold-page .hold-referee-card-pair .hold-referee-table th:nth-child(4) {
    font-size: 12px !important;
    overflow: visible !important;
    white-space: nowrap !important;
}

/* Ingen gamle floats/bredder må blande sig */
.ss-hold-page .hold-goal-scorer-pair > .hold-overview-box,
.ss-hold-page .hold-referee-card-pair > .hold-overview-box {
    float: none !important;
    max-width: none !important;
    min-width: 0 !important;
    margin: 0 !important;
}

@media screen and (max-width:700px) {
    .ss-hold-page .hold-goal-scorer-pair,
    .ss-hold-page .hold-referee-card-pair {
        display: block !important;
    }

    .ss-hold-page .hold-goal-scorer-pair > .hold-overview-box,
    .ss-hold-page .hold-referee-card-pair > .hold-overview-box {
        width: 100% !important;
        max-width: none !important;
        margin: 0 0 12px 0 !important;
    }
}


/* =========================================================
   HOLD v26 – Dommere / Kort 50-50
   ========================================================= */

.ss-hold-page .hold-referee-card-pair > .hold-overview-box:first-child,
.ss-hold-page .hold-referee-card-pair > .hold-cards-box {
    flex: 0 0 calc(50% - 8px) !important;
    width: calc(50% - 8px) !important;
}

/* =========================================================
   HOLD ALL-TIME v1 – bygger på godkendt holdmodel v27
   ========================================================= */

.ss-hold-page.ss-hold-alltime-page .hold-alltime-shell {
    margin-bottom: 0 !important;
    border-bottom: 0 !important;
    border-radius: 6px 6px 0 0 !important;
}

.ss-hold-page.ss-hold-alltime-page .hold-alltime-nav {
    padding: 7px 10px !important;
    background: #f7f9fa !important;
    border: 0 !important;
}

.ss-hold-page.ss-hold-alltime-page .hold-alltime-nav form,
.ss-hold-page.ss-hold-alltime-page .hold-alltime-tablebox .inner form,
.ss-hold-page.ss-hold-alltime-page .hold-club-switcher form {
    display: flex !important;
    gap: 7px !important;
    align-items: center !important;
    justify-content: flex-end !important;
    margin: 0 !important;
    padding: 0 !important;
}

.ss-hold-page.ss-hold-alltime-page select {
    height: 29px !important;
    padding: 4px 28px 4px 7px !important;
    border: 1px solid #cfd8de !important;
    border-radius: 5px !important;
    background-color: #fff !important;
    color: #10315B !important;
    font-family: Arial, Helvetica, sans-serif !important;
    font-size: 12px !important;
    line-height: 18px !important;
}

.ss-hold-page.ss-hold-alltime-page .hold-alltime-nav select[name="vis"] {
    width: 310px !important;
    max-width: 100% !important;
}

.ss-hold-page.ss-hold-alltime-page .hold-alltime-tablebox {
    margin-bottom: 12px !important;
}

.ss-hold-page.ss-hold-alltime-page .hold-alltime-tablebox > h2 {
    padding: 9px 12px !important;
    min-height: 40px !important;
    height: auto !important;
    font-size: 18px !important;
    line-height: 22px !important;
    overflow: visible !important;
}

.ss-hold-page.ss-hold-alltime-page .hold-alltime-tablebox > h2 small {
    font-size: 12px !important;
    font-weight: 400 !important;
    opacity: .85;
}

.ss-hold-page.ss-hold-alltime-page .hold-alltime-tablebox table {
    width: 100% !important;
    table-layout: auto !important;
}

.ss-hold-page.ss-hold-alltime-page .hold-alltime-tablebox th,
.ss-hold-page.ss-hold-alltime-page .hold-alltime-tablebox td {
    font-size: 13px !important;
    line-height: 18px !important;
}

.ss-hold-page.ss-hold-alltime-page .hold-alltime-tablebox tbody tr:nth-child(odd) td {
    background: #fff !important;
}

.ss-hold-page.ss-hold-alltime-page .hold-alltime-tablebox tbody tr:nth-child(even) td {
    background: #f7f9fa !important;
}

.ss-hold-page.ss-hold-alltime-page .hold-alltime-tablebox tfoot,
.ss-hold-page.ss-hold-alltime-page .hold-alltime-tablebox tfoot tr,
.ss-hold-page.ss-hold-alltime-page .hold-alltime-tablebox tfoot td {
    height: 0 !important;
    min-height: 0 !important;
    max-height: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    font-size: 0 !important;
    line-height: 0 !important;
}

.ss-hold-page.ss-hold-alltime-page .hold-alltime-tablebox::after {
    content: "";
    display: block;
    width: 100%;
    height: 3px;
    background: #104470;
    clear: both;
}

.ss-hold-page.ss-hold-alltime-page .hold-zero,
.ss-hold-page.ss-hold-alltime-page .grayzero {
    color: #9AA5AD !important;
    font-weight: 400 !important;
}

.ss-hold-page.ss-hold-alltime-page .hold-wide-number { width: 140px !important; }
.ss-hold-page.ss-hold-alltime-page .hold-season-col { width: 200px !important; }
.ss-hold-page.ss-hold-alltime-page .hold-name-col { width: 300px !important; }

.ss-hold-page.ss-hold-alltime-page .hold-club-switcher {
    margin-top: 0 !important;
    padding: 7px 10px !important;
    background: #f7f9fa !important;
    border-top: 1px solid #dce3e7 !important;
}

@media screen and (max-width:700px) {
    .ss-hold-page.ss-hold-alltime-page .hold-alltime-tablebox > h2 {
        padding: 8px 10px !important;
        min-height: 36px !important;
        font-size: 16px !important;
        line-height: 20px !important;
    }

    .ss-hold-page.ss-hold-alltime-page select {
        font-size: 16px !important;
    }

    .ss-hold-page.ss-hold-alltime-page .hold-alltime-nav select[name="vis"] {
        width: 100% !important;
    }

    .ss-hold-page.ss-hold-alltime-page .hold-alltime-nav form,
    .ss-hold-page.ss-hold-alltime-page .hold-alltime-tablebox .inner form {
        flex-wrap: wrap !important;
    }
}


/* =========================================================
   HOLD ALL-TIME v2
   Top som sæsonsiden / bedre sæsonkolonner / bred klubvælger
   ========================================================= */

/* Topboksen skal have samme kompakte højde og proportioner som sæsonsiden */
.ss-hold-page.ss-hold-alltime-page #club.box.full.blue:not(.multipleheader) {
    min-height: 0 !important;
    height: auto !important;
}

.ss-hold-page.ss-hold-alltime-page #clubdetails {
    height: 138px !important;
}

.ss-hold-page.ss-hold-alltime-page #clubdetails td.logo {
    width: 92px !important;
    padding: 12px 10px 12px 14px !important;
}

.ss-hold-page.ss-hold-alltime-page #clubdetails td.logo img {
    width: auto !important;
    max-width: 72px !important;
    height: auto !important;
    max-height: 72px !important;
}

.ss-hold-page.ss-hold-alltime-page #clubdetails td.clubname {
    padding: 12px 10px !important;
    font-size: 24px !important;
    line-height: 28px !important;
}

.ss-hold-page.ss-hold-alltime-page #clubdetails td.meta {
    width: 265px !important;
    padding: 10px 16px 10px 10px !important;
}

/* Sæsonlisten: navn/placering må ikke optage næsten hele tabellen */
.ss-hold-page.ss-hold-alltime-page .hold-seasons-list table {
    width: 100% !important;
    table-layout: fixed !important;
}

.ss-hold-page.ss-hold-alltime-page .hold-seasons-list th:nth-child(1),
.ss-hold-page.ss-hold-alltime-page .hold-seasons-list td:nth-child(1) {
    width: 25% !important;
    text-align: left !important;
}

.ss-hold-page.ss-hold-alltime-page .hold-seasons-list th:nth-child(2),
.ss-hold-page.ss-hold-alltime-page .hold-seasons-list td:nth-child(2) {
    width: 14% !important;
    text-align: center !important;
}

.ss-hold-page.ss-hold-alltime-page .hold-seasons-list th:nth-child(3),
.ss-hold-page.ss-hold-alltime-page .hold-seasons-list td:nth-child(3),
.ss-hold-page.ss-hold-alltime-page .hold-seasons-list th:nth-child(4),
.ss-hold-page.ss-hold-alltime-page .hold-seasons-list td:nth-child(4),
.ss-hold-page.ss-hold-alltime-page .hold-seasons-list th:nth-child(5),
.ss-hold-page.ss-hold-alltime-page .hold-seasons-list td:nth-child(5),
.ss-hold-page.ss-hold-alltime-page .hold-seasons-list th:nth-child(6),
.ss-hold-page.ss-hold-alltime-page .hold-seasons-list td:nth-child(6) {
    width: 8% !important;
    text-align: center !important;
}

.ss-hold-page.ss-hold-alltime-page .hold-seasons-list th:nth-child(7),
.ss-hold-page.ss-hold-alltime-page .hold-seasons-list td:nth-child(7) {
    width: 16% !important;
    text-align: center !important;
    white-space: nowrap !important;
}

.ss-hold-page.ss-hold-alltime-page .hold-seasons-list th:nth-child(8),
.ss-hold-page.ss-hold-alltime-page .hold-seasons-list td:nth-child(8) {
    width: 13% !important;
    text-align: center !important;
}

/* Klubvælgeren i bunden skal kunne vise de lange klubnavne */
.ss-hold-page.ss-hold-alltime-page .hold-club-switcher select {
    width: 250px !important;
    min-width: 250px !important;
    max-width: 100% !important;
}

@media screen and (max-width:700px) {
    .ss-hold-page.ss-hold-alltime-page #clubdetails {
        height: auto !important;
    }

    .ss-hold-page.ss-hold-alltime-page .hold-club-switcher select {
        width: 100% !important;
        min-width: 0 !important;
    }
}


/* =========================================================
   HOLD ALL-TIME v3
   Toplinks i 3 linjer + korrekt højreside-struktur
   ========================================================= */

/*
   Topmenu:
   1: Sæsonstatistik | Placering
   2: Head2Head | Serier | Pokal
   3: Europa-kampe | Stadion
*/
.ss-hold-page.ss-hold-alltime-page #clubdetails td.meta {
    width: 330px !important;
    padding: 10px 16px 10px 8px !important;
}

.ss-hold-page.ss-hold-alltime-page #clubdetails td.meta ul {
    display: grid !important;
    grid-template-columns: auto auto auto !important;
    gap: 7px 8px !important;
    justify-content: end !important;
    align-items: center !important;
}

.ss-hold-page.ss-hold-alltime-page #clubdetails td.meta li {
    padding: 0 !important;
    margin: 0 !important;
}

.ss-hold-page.ss-hold-alltime-page #clubdetails td.meta li::before {
    content: none !important;
    display: none !important;
}

/* Linje 1 */
.ss-hold-page.ss-hold-alltime-page #clubdetails td.meta li:nth-child(1) {
    grid-column: 1 / 3 !important;
    grid-row: 1 !important;
    justify-self: end !important;
}

.ss-hold-page.ss-hold-alltime-page #clubdetails td.meta li:nth-child(2) {
    grid-column: 3 !important;
    grid-row: 1 !important;
}

/* Linje 2 */
.ss-hold-page.ss-hold-alltime-page #clubdetails td.meta li:nth-child(3) {
    grid-column: 1 !important;
    grid-row: 2 !important;
}

.ss-hold-page.ss-hold-alltime-page #clubdetails td.meta li:nth-child(4) {
    grid-column: 2 !important;
    grid-row: 2 !important;
}

/* Pokal er normalt nr. 6 når Europa findes */
.ss-hold-page.ss-hold-alltime-page #clubdetails td.meta li:nth-child(6) {
    grid-column: 3 !important;
    grid-row: 2 !important;
}

/* Linje 3: Europa + stadion */
.ss-hold-page.ss-hold-alltime-page #clubdetails td.meta li:nth-child(5) {
    grid-column: 1 / 3 !important;
    grid-row: 3 !important;
    justify-self: end !important;
}

.ss-hold-page.ss-hold-alltime-page #clubdetails td.meta li:nth-child(7) {
    grid-column: 3 !important;
    grid-row: 3 !important;
}

/* Links som de godkendte rolige knapper */
.ss-hold-page.ss-hold-alltime-page #clubdetails td.meta a {
    display: inline-block !important;
    padding: 6px 10px !important;
    background: #f7f9fa !important;
    border: 1px solid #dfe5e8 !important;
    border-radius: 5px !important;
    color: #104470 !important;
    font-size: 12px !important;
    line-height: 18px !important;
    text-decoration: none !important;
    white-space: nowrap !important;
}

@media screen and (max-width:700px) {
    .ss-hold-page.ss-hold-alltime-page #clubdetails td.meta {
        width: auto !important;
    }

    .ss-hold-page.ss-hold-alltime-page #clubdetails td.meta ul {
        grid-template-columns: auto auto !important;
    }

    .ss-hold-page.ss-hold-alltime-page #clubdetails td.meta li {
        grid-column: auto !important;
        grid-row: auto !important;
        justify-self: auto !important;
    }
}


/* =========================================================
   HOLD ALL-TIME v4
   Toplinks + højreside + ens talfarve i Sæsoner
   ========================================================= */

/* Toplinks: tre rolige, højrestillede linjer som sæsonsiden */
.ss-hold-page.ss-hold-alltime-page #clubdetails td.meta {
    width: 350px !important;
    padding: 10px 16px 10px 8px !important;
    vertical-align: middle !important;
}

.ss-hold-page.ss-hold-alltime-page .hold-toplinks {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-end !important;
    gap: 6px !important;
    width: 100% !important;
}

.ss-hold-page.ss-hold-alltime-page .hold-toplinks-row {
    display: flex !important;
    justify-content: flex-end !important;
    align-items: center !important;
    gap: 8px !important;
    width: 100% !important;
}

.ss-hold-page.ss-hold-alltime-page .hold-toplinks a {
    display: inline-block !important;
    padding: 6px 10px !important;
    background: #f7f9fa !important;
    border: 1px solid #dfe5e8 !important;
    border-radius: 5px !important;
    color: #104470 !important;
    font-size: 12px !important;
    line-height: 18px !important;
    text-decoration: none !important;
    white-space: nowrap !important;
}

/* Sæsoner: K skal have samme blå tekstfarve som de øvrige tal */
.ss-hold-page.ss-hold-alltime-page .hold-seasons-list tbody td:nth-child(3),
.ss-hold-page.ss-hold-alltime-page .hold-seasons-list tbody td:nth-child(3) a {
    color: #10315B !important;
}

/* Højresiden fra bund-hold-alltime.txt bruger disse klasser.
   Den havde ingen regler i hold.css, derfor stod indholdet råt. */
#hojre .hold-sidebox {
    display: block;
    width: 300px;
    max-width: 100%;
    box-sizing: border-box;
    margin: 0 0 12px 0;
    padding: 0;
    overflow: hidden;
    background: #fff;
    border: 1px solid #dddddd;
    border-radius: 6px;
    font-family: Arial, Helvetica, sans-serif;
    color: #10315B;
}

#hojre .hold-sidebox-title {
    padding: 7px 10px;
    background: #104470;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    line-height: 18px;
}

#hojre .hold-key-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
}

#hojre .hold-key-item {
    display: flex;
    justify-content: space-between;
    gap: 6px;
    padding: 6px 8px;
    border-bottom: 1px solid #e1e5e8;
    font-size: 12px;
    line-height: 18px;
}

#hojre .hold-key-item:nth-child(odd) {
    border-right: 1px solid #e1e5e8;
}

#hojre .hold-key-label {
    color: #5f6f7a;
}

#hojre .hold-key-value {
    color: #10315B;
    text-align: right;
}

#hojre .hold-alltime-records {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
    font-size: 12px;
    line-height: 18px;
}

#hojre .hold-alltime-records td {
    padding: 6px 8px;
    border-bottom: 1px solid #e1e5e8;
}

#hojre .hold-record-label {
    width: 42%;
    color: #5f6f7a;
}

#hojre .hold-record-value {
    text-align: right;
    color: #10315B;
}

#hojre .hold-record-value a {
    color: #104470;
    text-decoration: none;
}

#hojre .hold-sidebox::after {
    content: "";
    display: block;
    width: 100%;
    height: 3px;
    background: #104470;
}

@media screen and (max-width:700px) {
    .ss-hold-page.ss-hold-alltime-page #clubdetails td.meta {
        width: auto !important;
    }

    .ss-hold-page.ss-hold-alltime-page .hold-toplinks-row {
        flex-wrap: wrap !important;
    }
}


/* =========================================================
   HOLD ALL-TIME v5
   Ret topstruktur + Sæsoner K som øvrige tal
   ========================================================= */

/*
   Den fælles hold.css har spillerregler på #sortTable td:nth-child(3),
   som gjorde K-kolonnen grå, 12px og flex.
   På Sæsoner skal alle talkolonner være almindelige tabelceller.
*/
.ss-hold-page.ss-hold-alltime-page .hold-seasons-list #sortTable tbody td:nth-child(n+2) {
    display: table-cell !important;
    align-items: initial !important;
    justify-content: initial !important;
    gap: 0 !important;
    color: #10315B !important;
    font-size: 13px !important;
    font-weight: 400 !important;
    line-height: 18px !important;
}

.ss-hold-page.ss-hold-alltime-page .hold-seasons-list #sortTable tbody td:nth-child(3) {
    color: #10315B !important;
}


/* =========================================================
   HOLD ALL-TIME v6 – struktur + K-kolonne
   ========================================================= */

/* K i Sæsoner skal være identisk med V/U/T */
.ss-hold-page.ss-hold-alltime-page .hold-seasons-list #sortTable tbody td.hold-season-k {
    display: table-cell !important;
    color: #10315B !important;
    font-family: Arial, Helvetica, sans-serif !important;
    font-size: 13px !important;
    font-weight: 400 !important;
    line-height: 18px !important;
    text-align: center !important;
}


/* =========================================================
   HOLD ALL-TIME v7 – bund/select + ukendt placering
   ========================================================= */

/* Selectområdet skal begynde direkte efter tabellens blå bundlinje */
.ss-hold-page.ss-hold-alltime-page .hold-seasons-list + .hold-club-switcher,
.ss-hold-page.ss-hold-alltime-page .hold-club-switcher {
    margin-top: 0 !important;
    border-top: 0 !important;
}

.ss-hold-page.ss-hold-alltime-page .hold-club-switcher {
    padding-top: 8px !important;
}

/* Ukendt placering */
.ss-hold-page.ss-hold-alltime-page .hold-placement-unknown {
    color: #9AA5AD !important;
    font-weight: 400 !important;
}


/* =========================================================
   HOLD ALL-TIME v8 – ens afslutning på alle visninger
   ========================================================= */

/*
   Den blå afslutning hører til selve tabellen.
   Dermed kan hverken lokale selects eller klubselecten ende oven over stregen.
*/
.ss-hold-page.ss-hold-alltime-page .box.multipleheader table,
.ss-hold-page.ss-hold-alltime-page .hold-alltime-tablebox table {
    border-bottom: 3px solid #104470 !important;
}

/* Undgå en ekstra blå streg fra den generelle hold-box ::after */
.ss-hold-page.ss-hold-alltime-page .box.multipleheader::after,
.ss-hold-page.ss-hold-alltime-page .hold-alltime-tablebox::after {
    display: none !important;
    content: none !important;
}

/* Lokale filtre ligger direkte UNDER tabellens blå bundstreg */
.ss-hold-page.ss-hold-alltime-page .box.multipleheader > .inner,
.ss-hold-page.ss-hold-alltime-page .hold-alltime-tablebox > .inner {
    margin-top: 0 !important;
    border-top: 0 !important;
}

/* Samme princip for klubvælgeren nederst */
.ss-hold-page.ss-hold-alltime-page .hold-club-switcher {
    margin-top: 0 !important;
    border-top: 0 !important;
}

/* Filter-selects autosubmitter; gammel knap skal aldrig optage plads */
.ss-hold-page.ss-hold-alltime-page .hold-alltime-filter .knap,
.ss-hold-page.ss-hold-alltime-page .hold-alltime-filter input[type="submit"] {
    display: none !important;
}


/* =========================================================
   HOLD ALL-TIME v9 – kompakte datoer + ren filterbund
   ========================================================= */

/* Lokale filtre er nu egne sektioner under tabellens blå afslutning. */
.ss-hold-page.ss-hold-alltime-page .hold-alltime-local-filter {
    margin: 0 !important;
    padding: 7px 10px !important;
    background: #f7f9fa !important;
    border: 0 !important;
    border-radius: 0 !important;
}

.ss-hold-page.ss-hold-alltime-page .hold-alltime-local-filter form {
    display: flex !important;
    min-height: 29px !important;
    margin: 0 !important;
    padding: 0 !important;
    gap: 7px !important;
    align-items: center !important;
    justify-content: flex-end !important;
}

.ss-hold-page.ss-hold-alltime-page .hold-alltime-local-filter .form-item {
    margin: 0 !important;
    padding: 0 !important;
}

/* Ingen ekstra blå linje mellem lokalt filter og klubvælger. */
.ss-hold-page.ss-hold-alltime-page .hold-alltime-local-filter + .hold-club-switcher {
    border-top: 0 !important;
    margin-top: 0 !important;
}


/* =========================================================
   HOLD ALL-TIME v10 – bund på for-klubben / mod-klubben
   ========================================================= */

/*
   Efter tabellens blå 3px-streg skal de to selectområder være én
   sammenhængende lysegrå footer. Ingen lyseblå mellembjælke og
   ingen ekstra blå streg mellem selects.
*/
.ss-hold-page.ss-hold-alltime-page .hold-alltime-local-filter {
    margin: 0 !important;
    padding: 7px 10px 0 10px !important;
    background: #f7f9fa !important;
    border: 0 !important;
    box-shadow: none !important;
}

.ss-hold-page.ss-hold-alltime-page .hold-alltime-local-filter::before,
.ss-hold-page.ss-hold-alltime-page .hold-alltime-local-filter::after {
    display: none !important;
    content: none !important;
}

.ss-hold-page.ss-hold-alltime-page .hold-alltime-local-filter + .hold-club-switcher {
    margin: 0 !important;
    padding-top: 7px !important;
    background: #f7f9fa !important;
    border: 0 !important;
    box-shadow: none !important;
}

/* Den generelle hold.css laver ellers en blå/lyseblå separator på inner-elementer */
.ss-hold-page.ss-hold-alltime-page .hold-alltime-local-filter.inner,
.ss-hold-page.ss-hold-alltime-page .hold-alltime-local-filter.inner + .hold-club-switcher {
    border-top: 0 !important;
    border-bottom: 0 !important;
}

/* Ingen pseudo-bundlinje mellem de to footerområder */
.ss-hold-page.ss-hold-alltime-page .hold-alltime-local-filter + .hold-club-switcher::before {
    display: none !important;
    content: none !important;
}


/* =========================================================
   HOLD ALL-TIME v11 – gammel emptytable-spacer fjernet
   ========================================================= */

/* De to selectområder skal være én ubrudt footerflade. */
.ss-hold-page.ss-hold-alltime-page .hold-alltime-local-filter {
    padding-bottom: 7px !important;
}

.ss-hold-page.ss-hold-alltime-page .hold-alltime-local-filter ~ .hold-club-switcher {
    margin-top: 0 !important;
    border-top: 0 !important;
}


/* =========================================================
   HOLD ALL-TIME v15 – ens tekst + bedre kolonnefordeling
   ========================================================= */

/* Disse visninger skal bruge standardfarven i alle dataceller. */
.ss-hold-page.ss-hold-alltime-page .hold-average-age-box tbody td,
.ss-hold-page.ss-hold-alltime-page .hold-youngest-box tbody td,
.ss-hold-page.ss-hold-alltime-page .hold-scorers-table tbody td,
.ss-hold-page.ss-hold-alltime-page .hold-coaches-box tbody td,
.ss-hold-page.ss-hold-alltime-page .hold-referees-table tbody td {
    color: #10315B !important;
}

/* TRÆNERE – mere plads til navn og mål, kompakte talkolonner */
.ss-hold-page.ss-hold-alltime-page .hold-coaches-box table {
    width: 100% !important;
    table-layout: fixed !important;
}

.ss-hold-page.ss-hold-alltime-page .hold-coaches-box th:nth-child(1),
.ss-hold-page.ss-hold-alltime-page .hold-coaches-box td:nth-child(1) {
    width: 42% !important;
    text-align: left !important;
}

.ss-hold-page.ss-hold-alltime-page .hold-coaches-box th:nth-child(2),
.ss-hold-page.ss-hold-alltime-page .hold-coaches-box td:nth-child(2),
.ss-hold-page.ss-hold-alltime-page .hold-coaches-box th:nth-child(3),
.ss-hold-page.ss-hold-alltime-page .hold-coaches-box td:nth-child(3),
.ss-hold-page.ss-hold-alltime-page .hold-coaches-box th:nth-child(4),
.ss-hold-page.ss-hold-alltime-page .hold-coaches-box td:nth-child(4),
.ss-hold-page.ss-hold-alltime-page .hold-coaches-box th:nth-child(5),
.ss-hold-page.ss-hold-alltime-page .hold-coaches-box td:nth-child(5) {
    width: 8% !important;
    text-align: center !important;
}

.ss-hold-page.ss-hold-alltime-page .hold-coaches-box th:nth-child(6),
.ss-hold-page.ss-hold-alltime-page .hold-coaches-box td:nth-child(6) {
    width: 17% !important;
    text-align: center !important;
    white-space: nowrap !important;
}

.ss-hold-page.ss-hold-alltime-page .hold-coaches-box th:nth-child(7),
.ss-hold-page.ss-hold-alltime-page .hold-coaches-box td:nth-child(7) {
    width: 9% !important;
    text-align: center !important;
}

/* MODSTANDERE – klubben får plads, K/V/U/T kompakte */
.ss-hold-page.ss-hold-alltime-page .hold-opponents-table table {
    width: 100% !important;
    table-layout: fixed !important;
}

.ss-hold-page.ss-hold-alltime-page .hold-opponents-table th:nth-child(1),
.ss-hold-page.ss-hold-alltime-page .hold-opponents-table td:nth-child(1) {
    width: 48% !important;
    text-align: left !important;
}

.ss-hold-page.ss-hold-alltime-page .hold-opponents-table th:nth-child(2),
.ss-hold-page.ss-hold-alltime-page .hold-opponents-table td:nth-child(2),
.ss-hold-page.ss-hold-alltime-page .hold-opponents-table th:nth-child(3),
.ss-hold-page.ss-hold-alltime-page .hold-opponents-table td:nth-child(3),
.ss-hold-page.ss-hold-alltime-page .hold-opponents-table th:nth-child(4),
.ss-hold-page.ss-hold-alltime-page .hold-opponents-table td:nth-child(4),
.ss-hold-page.ss-hold-alltime-page .hold-opponents-table th:nth-child(5),
.ss-hold-page.ss-hold-alltime-page .hold-opponents-table td:nth-child(5) {
    width: 8% !important;
    text-align: center !important;
}

.ss-hold-page.ss-hold-alltime-page .hold-opponents-table th:nth-child(6),
.ss-hold-page.ss-hold-alltime-page .hold-opponents-table td:nth-child(6) {
    width: 20% !important;
    text-align: center !important;
    white-space: nowrap !important;
}


/* =========================================================
   HOLD ALL-TIME v16 – ens tekstfarve i ALLE tabeller
   + bedre Modstandere-fordeling
   ========================================================= */

/* Én standardfarve på alle tabelceller i hele all-time-siden */
.ss-hold-page.ss-hold-alltime-page table tbody td,
.ss-hold-page.ss-hold-alltime-page table tbody td a,
.ss-hold-page.ss-hold-alltime-page table tbody td span {
    color: #10315B !important;
}

/* Behold kun vores bevidste dæmpede værdier grå */
.ss-hold-page.ss-hold-alltime-page table tbody td .grayzero,
.ss-hold-page.ss-hold-alltime-page table tbody td .hold-placement-unknown {
    color: #9AA5AD !important;
}

/* MODSTANDERE
   Klub får mest plads. K/V/U/T er smalle, Mål får fast god plads. */
.ss-hold-page.ss-hold-alltime-page .hold-opponents-table table {
    width: 100% !important;
    table-layout: fixed !important;
}

.ss-hold-page.ss-hold-alltime-page .hold-opponents-table th:nth-child(1),
.ss-hold-page.ss-hold-alltime-page .hold-opponents-table td:nth-child(1) {
    width: 50% !important;
    padding-left: 10px !important;
    text-align: left !important;
}

.ss-hold-page.ss-hold-alltime-page .hold-opponents-table th:nth-child(2),
.ss-hold-page.ss-hold-alltime-page .hold-opponents-table td:nth-child(2) {
    width: 9% !important;
    text-align: center !important;
}

.ss-hold-page.ss-hold-alltime-page .hold-opponents-table th:nth-child(3),
.ss-hold-page.ss-hold-alltime-page .hold-opponents-table td:nth-child(3),
.ss-hold-page.ss-hold-alltime-page .hold-opponents-table th:nth-child(4),
.ss-hold-page.ss-hold-alltime-page .hold-opponents-table td:nth-child(4),
.ss-hold-page.ss-hold-alltime-page .hold-opponents-table th:nth-child(5),
.ss-hold-page.ss-hold-alltime-page .hold-opponents-table td:nth-child(5) {
    width: 7% !important;
    text-align: center !important;
}

.ss-hold-page.ss-hold-alltime-page .hold-opponents-table th:nth-child(6),
.ss-hold-page.ss-hold-alltime-page .hold-opponents-table td:nth-child(6) {
    width: 20% !important;
    padding-right: 10px !important;
    text-align: center !important;
    white-space: nowrap !important;
}


/* =========================================================
   HOLD ALL-TIME v17 – supertable-klasser virker + definitiv tekstfarve
   ========================================================= */

/*
   Ældre #sortTable-regler er mere specifikke end de generelle all-time-regler.
   Derfor sættes standardfarven her med samme/højere specificitet.
*/
.ss-hold-page.ss-hold-alltime-page #sortTable tbody td,
.ss-hold-page.ss-hold-alltime-page #sortTable tbody td a,
.ss-hold-page.ss-hold-alltime-page #sortTable tbody td span,
.ss-hold-page.ss-hold-alltime-page .hold-alltime-tablebox table tbody td,
.ss-hold-page.ss-hold-alltime-page .hold-alltime-tablebox table tbody td a,
.ss-hold-page.ss-hold-alltime-page .hold-alltime-tablebox table tbody td span {
    color: #10315B !important;
}

/* Kun bevidst dæmpede markeringer må være grå */
.ss-hold-page.ss-hold-alltime-page #sortTable tbody td .grayzero,
.ss-hold-page.ss-hold-alltime-page #sortTable tbody td .hold-placement-unknown,
.ss-hold-page.ss-hold-alltime-page #sortTable tbody td .hold-zero,
.ss-hold-page.ss-hold-alltime-page .hold-alltime-tablebox tbody td .grayzero,
.ss-hold-page.ss-hold-alltime-page .hold-alltime-tablebox tbody td .hold-placement-unknown,
.ss-hold-page.ss-hold-alltime-page .hold-alltime-tablebox tbody td .hold-zero {
    color: #9AA5AD !important;
}

/* MODSTANDERE – nu rammer klassen faktisk boksen fra supertable() */
.ss-hold-page.ss-hold-alltime-page .hold-opponents-table table {
    width: 100% !important;
    table-layout: fixed !important;
}

.ss-hold-page.ss-hold-alltime-page .hold-opponents-table th:nth-child(1),
.ss-hold-page.ss-hold-alltime-page .hold-opponents-table td:nth-child(1) {
    width: 52% !important;
    text-align: left !important;
}

.ss-hold-page.ss-hold-alltime-page .hold-opponents-table th:nth-child(2),
.ss-hold-page.ss-hold-alltime-page .hold-opponents-table td:nth-child(2) {
    width: 9% !important;
    text-align: center !important;
}

.ss-hold-page.ss-hold-alltime-page .hold-opponents-table th:nth-child(3),
.ss-hold-page.ss-hold-alltime-page .hold-opponents-table td:nth-child(3),
.ss-hold-page.ss-hold-alltime-page .hold-opponents-table th:nth-child(4),
.ss-hold-page.ss-hold-alltime-page .hold-opponents-table td:nth-child(4),
.ss-hold-page.ss-hold-alltime-page .hold-opponents-table th:nth-child(5),
.ss-hold-page.ss-hold-alltime-page .hold-opponents-table td:nth-child(5) {
    width: 7% !important;
    text-align: center !important;
}

.ss-hold-page.ss-hold-alltime-page .hold-opponents-table th:nth-child(6),
.ss-hold-page.ss-hold-alltime-page .hold-opponents-table td:nth-child(6) {
    width: 18% !important;
    text-align: center !important;
    white-space: nowrap !important;
}
