/* SIME-style.css - Kujundus tulemuste ja vaheaegade lehtede jaoks */

/* Üldine lehe kujundus */
body {
    font-family: Arial, sans-serif;
    background-color: #fff;
    color: #333;
    margin: 20px;
}

/* Päise stiil - oranž taust, valged tekstid */
.header {
    background-color: orange;
    color: #fff;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 10px 10px 30px grey;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}
.header-left {
    display: flex;
    flex-direction: column;
}
.header-left h1 {
    margin: 0;
    font-size: 28px;
}
.event-date {
    margin: 5px 0;
    font-size: 16px;
}
.header-info {
    display: flex;
    gap: 20px;
    font-size: 14px;
}
.header-info span {
    white-space: nowrap;
}

/* Logo paigutus */
.header-right {
    flex-shrink: 0;
}
.header-right img.logo {
    max-height: 100px;
}

/* Lingid + menüü */
.course-list ul {
    list-style: none;
    padding-left: 0;
    margin: 0;
}
.course-list li {
    margin: 5px 0;
}
.course-list a {
    color: orange;
    text-decoration: underline;
}

/* Pealkirjad */
h1, h4 {
    color: white;
    background-color: orange; 
    margin: 10px 0;
}
h2, h3 {
    color: orange;
    margin: 10px 0;
}

/* Noole stiil (↑) */
a.upArrow {
    font-weight: bold;
    text-decoration: none;
    color: orange;
}

/* Konteinerid */
.results-container, .splits-container {
    max-width: 1200px;
    margin: 0;
}

/* Tulemuste faili tabelid - 50% */
.results-container table {
    width: 50%;
}

/* Tabeli kujundus */
table {
    width: auto;
    border-collapse: collapse;
    margin-bottom: 20px;
    table-layout: auto;
    white-space: nowrap;
    font-size: 12px;
}
table, th, td {
    border: 1px solid #ccc;
}
th, td {
    padding: 4px 6px;
    text-align: left;
}
th {
    background-color: orange;
    color: #fff;
}
.right {
    text-align: right;
}

/* Väike font */
small {
    font-size: 90%;
    color: #555;
}

/* Paks tekst tulemustele */
strong {
    font-weight: bold;
}
/* PRINDIMALL */
@media print {
  /* Üldine printimise stiilid (vähendatud fondi suurus, graafilised elemendid peidetud jne) */
  body, .header, .course-list, .results-container, .splits-container {
    background: none !important;
    box-shadow: none !important;
    margin: 0 !important;
    padding: 0 !important;
    color: #000 !important;
  }

  body {
    font-size: 10px !important;
    line-height: 1.2 !important;
  }

  h1, h4, h2, h3 {
    background: none !important;
    color: #000 !important;
    margin: 0 0 5px 0 !important;
    padding: 0 !important;
  }

  a.upArrow {
    font-weight: none;
    text-decoration: none;
    color: #000 !important;
  }

  a {
    color: #000 !important;
    text-decoration: none !important;
  }

  .header-right {
    display: none !important;
  }

  /* Vältida, et kõik tabelid venitataks 100% laiuseks, ja seetõttu eritleda vaid printimiseks mõeldud reegel */
  /* Eemalda üldine table { width: 100% !important; } reegel või asenda see konkreetsemaga */
  
  /* Kui soovid, et tulemuste failis asuvad tabelid oleksid 50% laiused (nagu ka ekraanivaates) */
  .results-container table {
    width: 50% !important;
  }

  /* Üldiste tabeli stiilide kohandamine */
  table {
    font-size: 10px !important;
    border-collapse: collapse !important;
    white-space: nowrap !important;
  }
  th, td {
    padding: 2px 4px !important;
    border: 1px solid #000 !important;
    text-align: left !important;
  }

  /* Peida liigne sisu, mida printimiseks ei vaja */
  .class-links {
    display: none !important;
  }

  * {
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }
}
.results-container {
    width: 100%;
    max-width: 99vw;
    overflow-x: auto;
}

.results-container table {
    width: auto !important;
    min-width: 860px;
    max-width: 100%;
    table-layout: auto !important;
    white-space: nowrap !important;
    font-size: 12px;
}

.results-container th,
.results-container td {
    white-space: nowrap !important;
    padding: 3px 6px;
}

.place-right {
    float: right;
    text-align: right;
    min-width: 2em;
    font-size: 95%;
    font-family: inherit;
    color: #888;
    margin-left: .2em;
}

@media print {
    body, .header, .results-container {
        background: none !important;
        box-shadow: none !important;
        margin: 0 !important;
        padding: 0 !important;
        color: #000 !important;
    }
    .results-container {
        overflow: visible !important;
        max-width: 100% !important;
    }
    .results-container table {
        min-width: 700px !important;
        font-size: 9px !important;
        width: auto !important;
    }
    th, td {
        font-size: 9px !important;
        padding: 1px 2px !important;
        white-space: nowrap !important;
    }
}