@charset "UTF-8";

/* ============================================================
   HISTORIE A STATISTIKA - moderní tabulky
   Vzhled sjednocený s tabulkami ET / Sníh
   ============================================================ */

html,
body {
    margin: 0;
    padding: 0;
    background: transparent !important;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

#table_container {
    width: 910px;
    margin: 0 auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, Helvetica, sans-serif;
    font-size: 9pt;
    color: #111111;
}

/* ---------- horní přepínače veličin ---------- */

#table_menu {
    width: 100%;
    margin: 0 auto 10px auto;
    text-align: center;
}

#table_menu ul {
    display: block;
    max-width: 860px;
    margin: 0 auto 2px auto;
    padding: 0;
    list-style: none;
    line-height: normal;
}

#table_menu ul br {
    display: none !important;
}

#table_menu li {
    display: inline-block;
    margin: 3px 3px;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
    white-space: nowrap;
}

#table_menu li a {
    display: inline-block;
    box-sizing: border-box;
    padding: 5px 10px;
    color: #16345F;
    background: #f4f4ee;
    border: 1px solid #c7d0da;
    border-radius: 7px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.10);
    text-decoration: none;
    font-weight: bold;
    white-space: nowrap;
    transition:
        background-color .15s ease,
        border-color .15s ease,
        box-shadow .15s ease,
        transform .15s ease;
}

#table_menu li a:hover {
    color: #16345F;
    background: #ffffff;
    border-color: #617a98;
    box-shadow: 0 2px 7px rgba(32,70,115,0.22);
    transform: translateY(-1px);
}

#table_menu li.picked a {
    color: #16345F;
    background: #B0C4DE;
    border-color: #8fa8c4;
    box-shadow: 0 1px 4px rgba(32,70,115,0.18);
}

/* ---------- nadpis + volba Denní / Sezónní ---------- */

#table_name {
    margin: 10px 0 14px 0;
    color: #16345F;
    font-size: 16px;
    font-weight: bold;
    line-height: 1.3;
    text-align: center;
}

#table_name .table_title {
    padding: 0;
    border: 0;
    border-radius: 0;
    box-shadow: none;
}

#table_container select {
    box-sizing: border-box;
    margin: 0;
    padding: 4px 26px 4px 8px;
    color: #111111;
    background: #ffffff;
    border: 1px solid #aeb9c5;
    border-radius: 5px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.08);
    outline: none;
    cursor: pointer;
    font-family: inherit;
    font-size: 9pt;
    font-weight: bold;
}

#table_year {
    width: 70px;
}

/* ---------- společný vzhled všech tabulek ---------- */

#table_container table {
    width: 100%;
    table-layout: fixed;
    margin: 0 auto;
    border-collapse: separate;
    border-spacing: 0;
    background: #f4f4ee;
    border: 1px solid #d0d5dd;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 3px 9px rgba(0,0,0,0.08);
}

#table_container table th,
#table_container table td {
    box-sizing: border-box;
    width: auto;
    padding: 5px 2px;
    text-align: center;
    vertical-align: middle;
    border: 0;
    border-right: 1px solid #d0d5dd;
    border-bottom: 1px solid #d0d5dd;
}

/* datové buňky: naše slonová kost.
   Inline barvy teploty, srážek, větru atd. z PHP zůstávají zachované. */
#table_container table td {
    background-color: #f4f4ee;
    color: #111111;
}

/* záhlaví měsíců */
#table_container table th {
    background-color: #dbeafe;
    color: #16345F;
    font-weight: bold;
}

/* levý sloupec - den / rok / statistická položka */
#table_container table tr > th:first-child {
    width: 80px;
    background-color: #bfdbfe;
    color: #111111;
}

/* čisté vnitřní linky */
#table_container table tr > *:last-child {
    border-right: 0;
}

#table_container table tr:last-child > * {
    border-bottom: 0;
}

/* zaoblené rohy */
#table_container table tr:first-child > th:first-child {
    border-top-left-radius: 11px;
}

#table_container table tr:first-child > th:last-child {
    border-top-right-radius: 11px;
}

#table_container table tr:last-child > th:first-child,
#table_container table tr:last-child > td:first-child {
    border-bottom-left-radius: 11px;
}

#table_container table tr:last-child > td:last-child {
    border-bottom-right-radius: 11px;
}

/* ---------- speciální řádky / buňky ---------- */

#table_container .nondate {
    background-color: #eceff2 !important;
    color: #9aa3ad;
}

#table_container .zerovalue {
    color: #708090;
}

#table_container .smallfont {
    font-size: 60%;
}

#table_container .center {
    text-align: center;
}

/* oddělení statistik a sezón - místo tvrdé černé */
#table_container .topborder {
    border-top: 2px solid #9CB2CC !important;
}

#table_container .bottomborder {
    border-bottom: 2px solid #9CB2CC !important;
}

#table_container .rightborder {
    border-right: 2px solid #9CB2CC !important;
}

/* PHP má některé dělicí čáry inline černé - sjednotíme je s webem */
#seasonTable th[style*="border-right: 2px solid black"],
#seasonTable td[style*="border-right: 2px solid black"],
#seasonTable th[style*="border-right: 2px solid"] {
    border-right-color: #9CB2CC !important;
}

/* sezónní hlavní hlavičky Jaro/Léto/Podzim/Zima */
#seasonTable tr:first-child th {
    background: #B0C4DE !important;
    color: #16345F !important;
    font-size: 13px !important;
    text-align: center !important;
    padding-top: 7px !important;
    padding-bottom: 7px !important;
}

/* opakované řádky měsíců v sezónní tabulce zůstávají jemně modré */
#seasonTable th {
    background-color: #dbeafe;
}

/* poznámka pod denní tabulkou */
#dataTable tr:last-child td[colspan="12"] {
    background-color: #eef3f8 !important;
    color: #4b5968 !important;
    text-align: left !important;
    padding: 7px 9px !important;
}

/* hover:
   zvýrazníme hlavičku řádku/sloupce jemně modře,
   datové pole dostane jen decentní rámeček, aby se neztratila jeho datová barva */
#table_container .highlight {
    background-color: #c7dcf4 !important;
    color: #16345F !important;
    cursor: pointer;
}

#table_container .box {
    outline: 2px solid #7fa8d4;
    outline-offset: -2px;
    cursor: pointer;
}

/* ---------- roční průměry ---------- */

#avgTable {
    margin-top: 4px !important;
}

#avgTable tr:first-child th {
    background-color: #dbeafe;
    color: #16345F;
}

#avgTable tr > th:first-child {
    background-color: #bfdbfe;
}

/* ---------- sluneční hodiny - původní měřicí proužek ---------- */

.meterCont {
    position: relative;
    height: 16px;
}

.meterBar {
    display: block;
    height: 16px;
    background-color: #B0C4DE;
    position: absolute;
    overflow: hidden;
    right: 0;
    border-radius: 3px;
}

.meterTxt {
    display: block;
    position: absolute;
    right: 0;
}

/* ---------- mobil ---------- */

@media screen and (max-width: 768px), screen and (hover: none) and (pointer: coarse) {

    #table_container {
        width: 910px;
        max-width: none;
        margin: 0 auto;
    }

    #table_container table {
        margin-left: auto;
        margin-right: auto;
    }

    #table_name,
    #table_menu {
        width: 100%;
        text-align: center;
    }

    #table_menu ul {
        max-width: 860px;
        padding-left: 0;
        margin-left: auto;
        margin-right: auto;
    }

    #table_menu li {
        margin: 2px 3px;
    }

    #table_menu li a {
        padding: 4px 8px;
        font-size: 9pt;
    }
}


/* OPRAVA_SELECT_ROKU_BETEL_START */
#table_year {
    width: 80px !important;
}

#table_year select {
    width: 72px !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
    padding: 4px 18px 4px 6px !important;
}
/* OPRAVA_SELECT_ROKU_BETEL_END */


/* OPRAVA_SLOUPCE_ROKU_BETEL_V2_START */
#table_year,
#table_container table tr > th:first-child {
    width: 90px !important;
}

#table_year select {
    width: 72px !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
    padding: 4px 18px 4px 6px !important;
}
/* OPRAVA_SLOUPCE_ROKU_BETEL_V2_END */


/* OPRAVA_SLOUPCE_ROKU_BETEL_V3_START */
/* Vetsi rezerva kolem vyberu roku - aby nic nepresahovalo ani pri skalovani. */
#table_year,
#dataTable tr > th:first-child,
#avgTable tr > th:first-child,
#seasonTable tr > th:first-child {
    width: 110px !important;
    min-width: 110px !important;
    max-width: 110px !important;
}

#table_year select {
    width: 74px !important;
    min-width: 74px !important;
    max-width: 74px !important;
    box-sizing: border-box !important;
    padding: 4px 18px 4px 6px !important;
    margin: 0 auto !important;
}
/* OPRAVA_SLOUPCE_ROKU_BETEL_V3_END */
