/* =========================================================
   SUPERSTATS – KORT
   Fælles styling for /kort/-sektionen.
   Ryddet og konsolideret version.
   Grunddesign: /css/superstats.css
   ========================================================= */


/* =========================================================
   FÆLLES
   ========================================================= */

.ss-kort-page {
    width: 100%;
}

.ss-kort-footer {
    margin-top: 0 !important;
}

.ss-kort-table .stats-clubs {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ss-kort-table .stats-penalty-value {
    font-weight: 400 !important;
}

.ss-kort-table td.ss-kort-empty {
    text-align: left !important;
    color: #6f777c !important;
}

/* Titelbjælken skal altid gå helt ud til højre kant. */
.ss-kort-page .ss-section-title {
    display: block !important;
    width: 100% !important;
    box-sizing: border-box !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    background: #104470 !important;
}

/* Fælles blå afslutning mellem tabel og footer/select. */
.ss-kort-bottom-line,
.ss-kort-bottom-line--final,
.ss-kort-page .ss-kort-bottom-line {
    display: block !important;
    width: 100% !important;
    height: 3px !important;
    min-height: 3px !important;
    max-height: 3px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    box-sizing: border-box !important;
    background: #104470 !important;
    clear: both !important;
}

.ss-kort-bottom-line + .ss-kort-footer,
.ss-kort-bottom-line--final + .ss-kort-footer {
    margin-top: 0 !important;
}


/* =========================================================
   SÆSON – /kort/
   Begge tabeller:
   logo | Klub/Navn | Strafpoint | Kort | Gule | Røde | Karantænedage
   ========================================================= */

.ss-kort-table--klubber col.col-logo,
.ss-kort-table--spillere-saeson col.col-logo {
    width: 6% !important;
}

.ss-kort-table--klubber col.col-klub,
.ss-kort-table--spillere-saeson col.col-navn {
    width: 30% !important;
}

.ss-kort-table--klubber col.col-straf,
.ss-kort-table--spillere-saeson col.col-straf {
    width: 14% !important;
}

.ss-kort-table--klubber col.col-kort,
.ss-kort-table--spillere-saeson col.col-kort,
.ss-kort-table--klubber col.col-gule,
.ss-kort-table--spillere-saeson col.col-gule,
.ss-kort-table--klubber col.col-rode,
.ss-kort-table--spillere-saeson col.col-rode {
    width: 12% !important;
}

.ss-kort-table--klubber col.col-karantaene,
.ss-kort-table--spillere-saeson col.col-karantaene {
    width: 14% !important;
}

/* Logo-kolonne. */
.ss-kort-table--klubber thead th:first-child,
.ss-kort-table--spillere-saeson thead th:first-child,
.ss-kort-table--klubber tbody td:first-child,
.ss-kort-table--spillere-saeson tbody td:first-child {
    padding-left: 4px !important;
    padding-right: 4px !important;
    text-align: center !important;
}

/* Klub/Navn starter samme sted. */
.ss-kort-table--klubber thead th:nth-child(2),
.ss-kort-table--spillere-saeson thead th:nth-child(2),
.ss-kort-table--klubber tbody td:nth-child(2),
.ss-kort-table--spillere-saeson tbody td:nth-child(2) {
    padding-left: 8px !important;
    text-align: left !important;
}

/* Statistik-kolonner. */
.ss-kort-table--klubber th:nth-child(n+3),
.ss-kort-table--klubber td:nth-child(n+3),
.ss-kort-table--spillere-saeson th:nth-child(n+3),
.ss-kort-table--spillere-saeson td:nth-child(n+3) {
    padding-left: 4px !important;
    padding-right: 4px !important;
    text-align: center !important;
}

.ss-kort-table--klubber .ss-kort-club-logo,
.ss-kort-table--spillere-saeson .ss-kort-player-logo {
    position: static !important;
    float: none !important;
    display: block !important;
    width: 18px !important;
    height: 18px !important;
    min-width: 18px !important;
    max-width: 18px !important;
    min-height: 18px !important;
    max-height: 18px !important;
    margin: 0 auto !important;
    padding: 0 !important;
    border: 0 !important;
    object-fit: contain !important;
}

/* Karantænedage: normal headerstørrelse og lidt luft mod højre. */
.ss-kort-table--klubber thead th:last-child,
.ss-kort-table--spillere-saeson thead th:last-child {
    padding-left: 0 !important;
    padding-right: 12px !important;
    box-sizing: border-box !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    line-height: 18px !important;
    white-space: nowrap !important;
    text-align: center !important;
}

.ss-kort-table--klubber tbody td:last-child,
.ss-kort-table--spillere-saeson tbody td:last-child {
    padding-left: 4px !important;
    padding-right: 4px !important;
    text-align: center !important;
}


/* =========================================================
   ALL-TIME
   Begge tabeller:
   logo | Klub/Navn | Strafpoint | Kort | Gule | Røde | Karantænedage
   ========================================================= */

.ss-kort-table--hold col.col-logo,
.ss-kort-table--spillere col.col-logo {
    width: 6% !important;
}

.ss-kort-table--hold col.col-klub,
.ss-kort-table--spillere col.col-navn {
    width: 32% !important;
}

.ss-kort-table--hold col.col-straf,
.ss-kort-table--spillere col.col-straf {
    width: 14% !important;
}

.ss-kort-table--hold col.col-kort,
.ss-kort-table--spillere col.col-kort,
.ss-kort-table--hold col.col-gule,
.ss-kort-table--spillere col.col-gule,
.ss-kort-table--hold col.col-rode,
.ss-kort-table--spillere col.col-rode {
    width: 11% !important;
}

.ss-kort-table--hold col.col-kdage,
.ss-kort-table--spillere col.col-kdage {
    width: 15% !important;
}

.ss-kort-table--hold thead th:first-child,
.ss-kort-table--spillere thead th:first-child,
.ss-kort-table--hold tbody td:first-child,
.ss-kort-table--spillere tbody td:first-child {
    position: static !important;
    overflow: hidden !important;
    vertical-align: middle !important;
    padding-left: 4px !important;
    padding-right: 4px !important;
    text-align: center !important;
}

.ss-kort-table--hold thead th:nth-child(2),
.ss-kort-table--spillere thead th:nth-child(2),
.ss-kort-table--hold tbody td:nth-child(2),
.ss-kort-table--spillere tbody td:nth-child(2) {
    padding-left: 8px !important;
    text-align: left !important;
}

.ss-kort-table--hold th:nth-child(n+3),
.ss-kort-table--hold td:nth-child(n+3),
.ss-kort-table--spillere th:nth-child(n+3),
.ss-kort-table--spillere td:nth-child(n+3) {
    text-align: center !important;
}

.ss-kort-table--hold .ss-kort-club-logo,
.ss-kort-table--spillere .ss-kort-player-logo {
    position: static !important;
    float: none !important;
    display: block !important;
    width: 18px !important;
    height: 18px !important;
    min-width: 18px !important;
    max-width: 18px !important;
    min-height: 18px !important;
    max-height: 18px !important;
    margin: 0 auto !important;
    padding: 0 !important;
    border: 0 !important;
    object-fit: contain !important;
}

.ss-kort-table--hold thead th:last-child,
.ss-kort-table--spillere thead th:last-child {
    padding-left: 2px !important;
    padding-right: 14px !important;
    box-sizing: border-box !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    line-height: 18px !important;
    white-space: nowrap !important;
    text-align: center !important;
}

.ss-kort-table--hold tbody td:last-child,
.ss-kort-table--spillere tbody td:last-child {
    padding-left: 4px !important;
    padding-right: 4px !important;
    text-align: center !important;
}


/* =========================================================
   HOLD.PHP – KLUB + SÆSON
   logo | Spiller | Strafpoint | Kort | Gule | Røde | Karantænedage
   ========================================================= */

.ss-kort-table--hold-saeson col.col-logo    { width: 6% !important; }
.ss-kort-table--hold-saeson col.col-spiller { width: 30% !important; }
.ss-kort-table--hold-saeson col.col-straf   { width: 14% !important; }
.ss-kort-table--hold-saeson col.col-kort    { width: 12% !important; }
.ss-kort-table--hold-saeson col.col-gule    { width: 12% !important; }
.ss-kort-table--hold-saeson col.col-rode    { width: 12% !important; }
.ss-kort-table--hold-saeson col.col-kdage   { width: 14% !important; }

.ss-kort-table--hold-saeson thead th:first-child,
.ss-kort-table--hold-saeson tbody td:first-child,
.ss-kort-table--hold-saeson tfoot td:first-child {
    padding-left: 4px !important;
    padding-right: 4px !important;
    text-align: center !important;
}

.ss-kort-table--hold-saeson thead th:nth-child(2),
.ss-kort-table--hold-saeson tbody td:nth-child(2),
.ss-kort-table--hold-saeson tfoot td:nth-child(2) {
    padding-left: 8px !important;
    text-align: left !important;
}

.ss-kort-table--hold-saeson th:nth-child(n+3),
.ss-kort-table--hold-saeson td:nth-child(n+3) {
    text-align: center !important;
}

.ss-kort-table--hold-saeson .ss-kort-player-logo {
    position: static !important;
    float: none !important;
    display: block !important;
    width: 18px !important;
    height: 18px !important;
    min-width: 18px !important;
    max-width: 18px !important;
    min-height: 18px !important;
    max-height: 18px !important;
    margin: 0 auto !important;
    padding: 0 !important;
    border: 0 !important;
    object-fit: contain !important;
}

/* Flyt kun teksten, ikke TH-cellen – så baggrunden går helt til højre. */
.ss-kort-table--hold-saeson thead th:last-child {
    position: static !important;
    left: auto !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    box-sizing: border-box !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    line-height: 18px !important;
    white-space: nowrap !important;
    text-align: center !important;
    overflow: visible !important;
}

.ss-kort-table--hold-saeson thead th:last-child span {
    display: inline-block !important;
    transform: translateX(-10px) !important;
}

.ss-kort-table--hold-saeson tbody td:last-child,
.ss-kort-table--hold-saeson tfoot td:last-child {
    padding-left: 4px !important;
    padding-right: 4px !important;
    text-align: center !important;
}

.ss-kort-table--hold-saeson tfoot .ss-kort-total-row td {
    font-weight: 400 !important;
}


/* =========================================================
   MOBIL
   ========================================================= */

@media screen and (max-width: 700px) {

    .ss-kort-table--klubber thead th:nth-child(2),
    .ss-kort-table--spillere-saeson thead th:nth-child(2),
    .ss-kort-table--klubber tbody td:nth-child(2),
    .ss-kort-table--spillere-saeson tbody td:nth-child(2),
    .ss-kort-table--hold thead th:nth-child(2),
    .ss-kort-table--spillere thead th:nth-child(2),
    .ss-kort-table--hold tbody td:nth-child(2),
    .ss-kort-table--spillere tbody td:nth-child(2),
    .ss-kort-table--hold-saeson thead th:nth-child(2),
    .ss-kort-table--hold-saeson tbody td:nth-child(2),
    .ss-kort-table--hold-saeson tfoot td:nth-child(2) {
        padding-left: 6px !important;
    }

    .ss-kort-table--klubber thead th:last-child,
    .ss-kort-table--spillere-saeson thead th:last-child,
    .ss-kort-table--hold thead th:last-child,
    .ss-kort-table--spillere thead th:last-child {
        padding-right: 9px !important;
    }
}


/* HOLD.PHP – I alt-række + blå afslutning */
.ss-kort-table--hold-saeson tbody tr.ss-kort-total-row td {
    background: #d5e4ee !important;
    font-weight: 400 !important;
    border-top: 1px solid #bfd2df !important;
}

.ss-kort-table--hold-saeson + .ss-kort-bottom-line {
    display: block !important;
    width: 100% !important;
    height: 3px !important;
    min-height: 3px !important;
    max-height: 3px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: #104470 !important;
}


/* =========================================================
   KARANTÆNER – /kort/karantaner
   Samme faste /kort/-skabelon
   ========================================================= */

.ss-kort-table--karantaener col.col-logo  { width: 6% !important; }
.ss-kort-table--karantaener col.col-navn  { width: 29% !important; }
.ss-kort-table--karantaener col.col-dato  { width: 17% !important; }
.ss-kort-table--karantaener col.col-kamp  { width: 36% !important; }
.ss-kort-table--karantaener col.col-runde { width: 12% !important; }

.ss-kort-table--karantaener thead th:first-child,
.ss-kort-table--karantaener tbody td:first-child {
    padding-left: 4px !important;
    padding-right: 4px !important;
    text-align: center !important;
}

.ss-kort-table--karantaener thead th:nth-child(2),
.ss-kort-table--karantaener tbody td:nth-child(2) {
    padding-left: 8px !important;
    text-align: left !important;
}

.ss-kort-table--karantaener .ss-kort-player-logo {
    position: static !important;
    float: none !important;
    display: block !important;
    width: 18px !important;
    height: 18px !important;
    min-width: 18px !important;
    max-width: 18px !important;
    min-height: 18px !important;
    max-height: 18px !important;
    margin: 0 auto !important;
    padding: 0 !important;
    border: 0 !important;
    object-fit: contain !important;
}

.ss-kort-table--karantaener th:last-child,
.ss-kort-table--karantaener td:last-child {
    text-align: center !important;
}

.ss-kort-status-note {
    padding-top: 7px !important;
    padding-bottom: 7px !important;
}

.ss-kort-status {
    display: inline-block;
    font-size: 12px;
    line-height: 18px;
}

.ss-kort-status--ok {
    color: #4f6656;
}

.ss-kort-status--warning {
    color: #8a5a24;
}

.ss-kort-info {
    margin-top: 12px;
    padding: 12px 14px;
    border: 1px solid #d9e1e6;
    background: #f7f9fa;
    box-sizing: border-box;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 13px;
    line-height: 19px;
    color: #10315B;
}

.ss-kort-info-title {
    margin: 0 0 8px 0;
    font-size: 14px;
    line-height: 18px;
    font-weight: 700;
    color: #10315B;
}

.ss-kort-info p {
    margin: 0 0 8px 0;
}

.ss-kort-info p:last-child {
    margin-bottom: 0;
}

.ss-kort-penalty-points {
    font-weight: 700;
    letter-spacing: .2px;
}

@media screen and (max-width: 700px) {
    .ss-kort-table--karantaener col.col-logo  { width: 7% !important; }
    .ss-kort-table--karantaener col.col-navn  { width: 28% !important; }
    .ss-kort-table--karantaener col.col-dato  { width: 17% !important; }
    .ss-kort-table--karantaener col.col-kamp  { width: 35% !important; }
    .ss-kort-table--karantaener col.col-runde { width: 13% !important; }

    .ss-kort-table--karantaener thead th:nth-child(2),
    .ss-kort-table--karantaener tbody td:nth-child(2) {
        padding-left: 6px !important;
    }
}


/* =========================================================
   KARANTÆNEDAGE – ALL-TIME / AKTIVE
   ========================================================= */

.ss-kort-table--karantanedage col.col-spiller { width: 34% !important; }
.ss-kort-table--karantanedage col.col-straf   { width: 15% !important; }
.ss-kort-table--karantanedage col.col-kort    { width: 12% !important; }
.ss-kort-table--karantanedage col.col-gule    { width: 12% !important; }
.ss-kort-table--karantanedage col.col-rode    { width: 12% !important; }
.ss-kort-table--karantanedage col.col-kdage   { width: 15% !important; }

.ss-kort-table--karantanedage thead th:first-child,
.ss-kort-table--karantanedage tbody td:first-child {
    padding-left: 10px !important;
    text-align: left !important;
}

.ss-kort-table--karantanedage thead th:last-child,
.ss-kort-table--karantanedage tbody td:last-child {
    padding-right: 10px !important;
    text-align: center !important;
}

.ss-kort-table--karantanedage thead th:last-child span {
    display: inline-block !important;
}

@media screen and (max-width: 700px) {
    .ss-kort-table--karantanedage col.col-spiller { width: 32% !important; }
    .ss-kort-table--karantanedage col.col-straf   { width: 16% !important; }
    .ss-kort-table--karantanedage col.col-kort    { width: 12% !important; }
    .ss-kort-table--karantanedage col.col-gule    { width: 12% !important; }
    .ss-kort-table--karantanedage col.col-rode    { width: 12% !important; }
    .ss-kort-table--karantanedage col.col-kdage   { width: 16% !important; }
}


/* =========================================================
   KARA­NTÆNEFARE – /kort/fare
   ========================================================= */

.ss-kort-table--karantaene-fare col.col-logo  { width: 6% !important; }
.ss-kort-table--karantaene-fare col.col-navn  { width: 46% !important; }
.ss-kort-table--karantaene-fare col.col-straf { width: 22% !important; }
.ss-kort-table--karantaene-fare col.col-til   { width: 26% !important; }

.ss-kort-table--karantaene-fare thead th:first-child,
.ss-kort-table--karantaene-fare tbody td:first-child {
    padding-left: 4px !important;
    padding-right: 4px !important;
    text-align: center !important;
}

.ss-kort-table--karantaene-fare thead th:nth-child(2),
.ss-kort-table--karantaene-fare tbody td:nth-child(2) {
    padding-left: 8px !important;
    text-align: left !important;
}

.ss-kort-table--karantaene-fare thead th:nth-child(3),
.ss-kort-table--karantaene-fare tbody td:nth-child(3),
.ss-kort-table--karantaene-fare thead th:nth-child(4),
.ss-kort-table--karantaene-fare tbody td:nth-child(4) {
    text-align: center !important;
}

.ss-kort-table--karantaene-fare .ss-kort-player-logo {
    position: static !important;
    float: none !important;
    display: block !important;
    width: 18px !important;
    height: 18px !important;
    min-width: 18px !important;
    max-width: 18px !important;
    min-height: 18px !important;
    max-height: 18px !important;
    margin: 0 auto !important;
    padding: 0 !important;
    border: 0 !important;
    object-fit: contain !important;
}

@media screen and (max-width: 700px) {
    .ss-kort-table--karantaene-fare col.col-logo  { width: 7% !important; }
    .ss-kort-table--karantaene-fare col.col-navn  { width: 43% !important; }
    .ss-kort-table--karantaene-fare col.col-straf { width: 23% !important; }
    .ss-kort-table--karantaene-fare col.col-til   { width: 27% !important; }

    .ss-kort-table--karantaene-fare thead th:nth-child(2),
    .ss-kort-table--karantaene-fare tbody td:nth-child(2) {
        padding-left: 6px !important;
    }
}
