/* --- OPDATERET Football Price Statistics Table Styling (Bruger fpstats-* klasser) --- */

/* Styling for selve tabellen (.fpstats-table svarer til .tf) */
.fpstats-table {
    width: 100%;
    margin-bottom: 2px; /* Lidt plads under tabellen */
    border-spacing: 0; /* Fjerner mellemrum mellem celler */
    border-collapse: separate; /* Vigtigt for border-radius */
    border-radius: 15px; /* Runde hjørner */
    overflow: hidden; /* Respekter runde hjørner */
    border: 1px solid #efefef; /* Tynd grå kant */
    font-family: 'Roboto Condensed', sans-serif; /* Skrifttype */
    font-size: 18px; /* Standard skriftstørrelse */
    line-height: 1.5em; /* Standard linjehøjde */
    background: #fff; /* Sørg for hvid baggrund som udgangspunkt */
}

/* Generel styling for tabel-celler (både header og data) */
.fpstats-table td,
.fpstats-table th {
    padding: 5px 0; /* Grundlæggende lodret padding (overskrives) */
    overflow: visible !important; /* Tillad indhold at gå udenfor */
    border-color: inherit;
    vertical-align: top; /* Standard lodret justering */
}

/* Specifik styling for header-celler (.fpstats-table th svarer til .tf-xwmb) */
.fpstats-table th {
    font-size: 20px;
    background-color: #62a445; /* Grøn baggrund */
    text-align: left; /* Standard justering */
    vertical-align: middle; /* Centrer lodret */
    padding: 10px 15px; /* Indre afstand */
    line-height: 1.5em;
    color: #fff; /* Hvid tekst */
    font-weight: 700; /* Fed tekst */
    border-bottom: none; /* Fjern standard bundlinje, da .tf ikke havde det */
    text-transform: none; /* Fjern evt. tema-styling */
    letter-spacing: normal; /* Fjern evt. tema-styling */
}

/* Justering for specifik header-celle (pris) */
.fpstats-table th.fpstats-price-col {
    /* Inline style i PHP håndterer text-align: right */
}

/* Specifik styling for data-celler i første kolonne (.fpstats-team-cell svarer til .tf-0pkxi) */
.fpstats-table td.fpstats-team-cell {
    background-color: #fff; /* Hvid baggrund */
    text-align: left; /* Venstrejusteret */
    padding: 10px 15px; /* Indre afstand */
    font-weight: 700; /* Gør teksten fed (for linket) */
}

/* Specifik styling for data-celler i anden kolonne (.fpstats-price-cell svarer til .tf-0pkyo) */
.fpstats-table td.fpstats-price-cell {
    background-color: #fff; /* Hvid baggrund */
    text-align: left; /* Standard (overskrives af inline style i PHP) */
    padding: 10px 15px; /* Indre afstand */
    font-weight: 400; /* Normal skrift */
    vertical-align: middle;
    font-size: 20px;
}

/* Link inde i første kolonne (.fpstats-team-link) */
.fpstats-table .fpstats-team-link {
    color: #65a844; /* Arv farve fra .fpstats-team-cell */
    text-decoration: none; /* Fjern understregning */
    font-size: 20px;
    font-weight: inherit; /* Arv fed skrift */
    transition: none; /* Fjern evt. overgang */
}

.fpstats-table .fpstats-team-link:hover {
    text-decoration: underline; /* Understreg ved hover */
}

/* Styling for den mindre tekst-span (.fpstats-lowest-info svarer til .texti) */
.fpstats-lowest-info {
    display: block; /* Sørg for at den tager sin egen linje */
    margin-top: 0; /* Juster afstand om nødvendigt */
    font-size: 14px;
    line-height: 1.2em;
    font-weight: 400; /* Normal vægt */
    color: #424242; /* Mørkegrå farve */
}

.fpstats-lowest-info strong {
    font-weight: 700; /* Sørg for at 'Billigste:' er fed */
    color: inherit; /* Arv farve */
}

/* Styling for ikonet i den lille tekst */
.fpstats-lowest-info i {
    color: #62a445; /* Grøn farve for ikonet */
    /* margin-left: 5px; */ /* Behold evt. denne hvis afstanden passer */
}

/* Partner link styling (hvis du stadig har det i din .fpstats-lowest-info span) */
 .fpstats-lowest-info .fpstats-partner-link {
    color: inherit; /* Arv farve */
    text-decoration: none; /* Ingen understregning */
 }
  .fpstats-lowest-info .fpstats-partner-link:hover {
    text-decoration: underline; /* Understregning ved hover */
 }


/* Grænse mellem rækker */
.fpstats-table td {
    border-top: 1px solid #efefef; /* Linje over hver data-celle */
}

/* Fjerner kant fra den allerførste række */
.fpstats-table tbody tr:first-child td {
    border-top: none;
}

/* Fjerner hover-effekt, da .tf ikke havde det */
.fpstats-table tbody tr:hover {
    background-color: transparent; /* Ingen baggrundsændring ved hover */
}

/* --- Mobil Styles --- */
@media (max-width: 767px) {

    /* --- Layout for "Billigste" info --- */
    .fpstats-lowest-info strong {
        display: block;
        margin-bottom: 2px;
    }
    .fpstats-lowest-info .fpstats-info-date,
    .fpstats-lowest-info .fpstats-info-match {
        display: inline;
    }
    .fpstats-lowest-info .fpstats-info-date + .fpstats-info-separator {
         display: inline;
     }
    .fpstats-lowest-info .fpstats-info-details {
        display: block;
        margin-top: 2px;
    }
    .fpstats-lowest-info .fpstats-info-match + .fpstats-info-separator {
        display: none;
    }
    .fpstats-lowest-info .fpstats-partner-link {
        line-height: 1.4;
    }
    .fpstats-lowest-info .fpstats-info-details i { /* Icon now inside .fpstats-info-details */
         vertical-align: middle;
         margin-left: 3px;
     }

    /* --- Table Layout and Column Widths --- */
    .fpstats-table {
        table-layout: fixed;
        width: 100%;
    }
    .fpstats-table td.fpstats-team-cell {
        width: 70%; /* Explicit width */
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    .fpstats-table td.fpstats-price-cell {
        width: 30%; /* Explicit width */
        font-size: 18px !important; /* Specific font size for price */
        font-weight: 400 !important; /* Specific font weight for price */
        vertical-align: middle; /* Keep vertical alignment */
    }

    /* --- FJERN AL HORIZONTAL PADDING --- */
    .fpstats-table th,
    .fpstats-table td {
        padding-top: 8px !important;    /* Behold vertikal padding */
        padding-bottom: 8px !important; /* Behold vertikal padding */
        padding-left: 15px !important;     /* Venstre padding */
        padding-right: 15px !important;    /* Højre padding */
    }
    
    /* Specifik sikring for celle-typer */
    .fpstats-table td.fpstats-team-cell,
    .fpstats-table td.fpstats-price-cell {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }

    /* --- General Font Size Adjustments --- */
     .fpstats-table th {
         font-size: 18px; /* Smaller header font */
     }
     /* General TD rule - overridden by price cell for font size/weight */
     .fpstats-table td {
        font-size: 14px; /* Default for non-price cells */
     }
     .fpstats-lowest-info,
     .texti { /* Apply to specific spans too */
         font-size: 14px;
     }

} /* End of @media block */