/* Vzhled aplikace. Barvy a velikosti vycházejí ze schváleného nákresu
   vzhledu: teplé neutrální plochy, zelenošedý text, oranžová jen pro to,
   co hoří. Bootstrap dává mřížku, dialogy a nabídky; zbytek je tady. */

:root
{
    --pozadi: #eeede8;
    --plocha: #fafbf7;
    --lista: #f7f8f3;
    --text: #30332f;
    --tlumeny: #636b5b;
    --cara: #d9ddd1;
    --cara-silna: #c9d0bf;
    --zvyrazneni: #e3e8db;
    --hori: #a44000;
    --ok: #32644c;
    --chyba: #a02e3a;
    --tmava: #343d30;
    --tmava-hover: #46533f;

    --bs-body-font-size: 14px;
    --bs-body-color: var(--text);
    --bs-body-bg: var(--pozadi);
}

*
{
    box-sizing: border-box;
}

body
{
    margin: 0;
    background: var(--pozadi);
    color: var(--text);
    font: 14px/1.45 -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
}

a
{
    color: inherit;
}

h1
{
    font-size: 28px;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -0.5px;
    margin: 0 0 8px;
}

h2
{
    font-size: 17px;
    font-weight: 600;
    margin: 0 0 14px;
}

/* Tlačítka a odkazy ukazují zaměření jen při ovládání klávesnicí. Pole
   formuláře mají místo obrysu jemně tmavší okraj se stínem. */
:focus-visible
{
    outline: 2px solid #536846;
    outline-offset: 2px;
}

input:not([type=checkbox]):not([type=radio]):focus,
select:focus,
textarea:focus
{
    outline: none;
    border-color: #7d8f6f !important;
    box-shadow: 0 0 0 3px rgba(83, 104, 70, 0.14);
}


/* --- horní lišta --- */

.lista
{
    position: sticky;
    top: 0;
    z-index: 1020;
    height: 64px;
    display: flex;
    align-items: center;
    gap: 22px;
    padding: 0 28px;
    background: var(--lista);
    border-bottom: 1px solid #d4d9cc;
}

.logo img
{
    display: block;
    width: 170px;
    height: auto;
}

.menu
{
    display: flex;
    align-items: stretch;
    gap: 6px;
    height: 100%;
    flex: 1;
}

.menu .polozka
{
    display: flex;
    align-items: center;
    gap: 6px;
    height: 100%;
    padding: 0 8px;
    border: 0;
    background: none;
    color: var(--text);
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
}

.menu .polozka:hover
{
    background: var(--zvyrazneni);
}

.menu .polozka.aktivni
{
    box-shadow: inset 0 -2px #536846;
    font-weight: 600;
}

.menu .polozka .fa-chevron-down
{
    font-size: 10px;
}

.menu .skupina
{
    height: 100%;
}

.dropdown-menu
{
    --bs-dropdown-bg: var(--plocha);
    --bs-dropdown-border-color: var(--cara);
    --bs-dropdown-link-active-bg: var(--zvyrazneni);
    --bs-dropdown-link-active-color: var(--text);
    --bs-dropdown-font-size: 14px;
    border-radius: 9px;
    box-shadow: 0 10px 28px #30332f20;
    padding: 6px;
}

.dropdown-item
{
    padding: 9px 10px;
    border-radius: 5px;
}

.menu-prepinac
{
    display: none;
    border: 1px solid var(--cara-silna);
    background: none;
    border-radius: 7px;
    width: 40px;
    height: 40px;
}


/* --- obsah --- */

.obsah
{
    max-width: 1920px;
    margin: 0 auto;
    padding: 20px 30px 40px;
}

.titulek
{
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 16px;
}

.drobecky
{
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 8px;
    color: var(--tlumeny);
}

.drobecky a
{
    text-decoration: none;
}

.drobecky a:hover
{
    text-decoration: underline;
}

.drobecky i
{
    font-size: 11px;
}

.panel
{
    background: var(--plocha);
    border: 1px solid var(--cara);
    border-radius: 12px;
    padding: 20px;
    min-width: 0;
}

.panel.uzky
{
    max-width: 560px;
    margin: 40px auto;
}

.prazdno
{
    text-align: center;
    color: var(--tlumeny);
    padding: 20px 0;
}

.prazdno > i
{
    display: block;
    font-size: 32px;
    margin-bottom: 12px;
}

.prazdno h1
{
    color: var(--text);
}

.prazdno p
{
    margin-bottom: 18px;
}


/* --- tlačítka --- */

.tlacitko
{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 40px;
    padding: 8px 14px;
    border: 1px solid var(--cara-silna);
    border-radius: 7px;
    background: transparent;
    color: var(--text);
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
}

.tlacitko:hover
{
    background: var(--zvyrazneni);
}

.tlacitko.hlavni
{
    background: var(--tmava);
    border-color: var(--tmava);
    color: #fff;
}

.tlacitko.hlavni:hover
{
    background: var(--tmava-hover);
}

.tlacitko:disabled,
.tlacitko.nedostupne
{
    opacity: 0.45;
    cursor: not-allowed;
    pointer-events: none;
}


/* --- hlášky po akci --- */

.hlasky
{
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 16px;
}

.hlaska
{
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border-radius: 9px;
    background: #e5ebdf;
    transition: opacity 0.4s;
}

.hlaska span
{
    flex: 1;
}

.hlaska.success { background: #dcecdf; color: #235e3c; }
.hlaska.info    { background: #e0e9f1; color: #385c7b; }
.hlaska.warning { background: #f6ebce; color: #765514; }
.hlaska.danger  { background: #f8e1e4; color: #9c2536; }

.hlaska .zavrit
{
    border: 0;
    background: none;
    color: inherit;
    padding: 4px 6px;
    cursor: pointer;
}

.hlaska.mizi
{
    opacity: 0;
}


/* --- dialog --- */

.modal-content
{
    background: var(--plocha);
    border: 1px solid #c1cdb4;
    border-radius: 12px;
}

.modal-header,
.modal-footer
{
    border-color: var(--cara);
}

.modal-footer
{
    flex-wrap: wrap;
    gap: 8px;
}

.modal-footer > *
{
    margin: 0;
}

.modal-footer .vlevo
{
    order: -1;
    margin-right: auto;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.modal-body fieldset
{
    border: 0;
    margin: 0;
    padding: 0;
    min-width: 0;
}

.modal-body .hlaska
{
    margin-bottom: 14px;
}

.zaskrtnuti.uzke
{
    margin: 0;
    min-height: 40px;
}

/* Zaškrtávátko uvnitř pole nepřebírá vzhled popisku pole. */
.pole label.zaskrtnuti
{
    display: flex;
    margin-bottom: 0;
    color: var(--text);
}


/* --- formulářová pole --- */

input,
select,
textarea
{
    font: inherit;
    color: inherit;
}

.pole
{
    margin-bottom: 14px;
}

.pole label
{
    display: block;
    margin-bottom: 5px;
    color: var(--tlumeny);
}

.pole input:not([type=checkbox]):not([type=radio]),
.pole select,
.pole textarea
{
    width: 100%;
    min-height: 40px;
    padding: 8px 10px;
    border: 1px solid var(--cara-silna);
    border-radius: 7px;
    background: #fff;
}

.pole input.kratke
{
    max-width: 220px;
}

.pole .hodnota
{
    font-size: 15px;
    font-weight: 600;
}

.napoveda
{
    margin-top: 4px;
    font-size: 13px;
    color: var(--tlumeny);
}

.radek-poli
{
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 12px;
}

.heslo
{
    position: relative;
}

.pole .heslo input
{
    padding-right: 44px;
}

.heslo .oko
{
    position: absolute;
    top: 0;
    right: 0;
    width: 42px;
    height: 100%;
    border: 0;
    background: none;
    color: var(--tlumeny);
    cursor: pointer;
}

.zaskrtnuti
{
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 4px 0 18px;
    min-height: 40px;
    cursor: pointer;
}

.zaskrtnuti input
{
    width: 18px;
    height: 18px;
}

.tlacitko.cele
{
    width: 100%;
}

.tlacitko.male
{
    min-height: 32px;
    padding: 4px 10px;
}


/* --- rozvržení obsahu --- */

.mrizka-dva
{
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.tlumene
{
    color: var(--tlumeny);
}

.pod-tabulkou
{
    margin-top: 14px;
}


/* --- filtry nad seznamem --- */

.filtry
{
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}

.prepinac
{
    display: inline-flex;
    gap: 2px;
    padding: 3px;
    background: #e0e5d8;
    border-radius: 8px;
}

.prepinac a
{
    padding: 7px 12px;
    border-radius: 6px;
    text-decoration: none;
}

.prepinac a.zvoleny
{
    background: var(--plocha);
    box-shadow: 0 1px 4px #30332f12;
    font-weight: 600;
}

.hledani
{
    min-height: 40px;
    width: 280px;
    max-width: 100%;
    padding: 8px 10px;
    border: 1px solid var(--cara-silna);
    border-radius: 7px;
    background: #fff;
}


/* --- tabulky --- */

.tabulka-obal
{
    overflow-x: auto;
}

.tabulka
{
    width: 100%;
    border-collapse: collapse;
}

.tabulka th
{
    text-align: left;
    font-weight: 500;
    color: var(--tlumeny);
    background: #eef1e8;
    padding: 9px 8px;
    border-bottom: 1px solid #cfd8c5;
}

.tabulka td
{
    padding: 9px 8px;
    border-bottom: 1px solid #e1e7d8;
    vertical-align: middle;
}

.vpravo
{
    text-align: right;
}

.tabulka .radek-klik
{
    cursor: pointer;
}

.tabulka .radek-klik:hover td
{
    background: var(--zvyrazneni);
}

.stav
{
    display: inline-block;
    padding: 2px 8px;
    border-radius: 5px;
    font-size: 13px;
    white-space: nowrap;
}

.stav.aktivni  { background: #e0e9df; color: #376048; }
.stav.ceka     { background: #fae7d4; color: #914500; }
.stav.vypnuty  { background: #e4e4e0; color: #595b55; }

.stitek
{
    display: inline-block;
    margin-left: 6px;
    padding: 1px 7px;
    border-radius: 5px;
    background: #e0e9df;
    color: #376048;
    font-size: 13px;
}


/* --- holá stránka: přihlášení, nastavení hesla --- */

.hola-obsah
{
    max-width: 420px;
    margin: 0 auto;
    padding: 56px 16px 40px;
}

.hola-logo img
{
    display: block;
    width: 220px;
    height: auto;
    margin: 0 auto 28px;
}

.pod-formularem
{
    margin: 16px 0 0;
    text-align: center;
}

.pod-formularem a
{
    color: var(--tlumeny);
}

.hola-panel h1
{
    font-size: 24px;
    margin-bottom: 18px;
}


/* --- nabídka účtu --- */

.ucet .ucet-tlacitko
{
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 40px;
    padding: 6px 12px;
    border: 1px solid var(--cara-silna);
    border-radius: 7px;
    background: none;
    color: var(--text);
    white-space: nowrap;
}

.ucet .ucet-tlacitko .fa-chevron-down
{
    font-size: 10px;
}

.ucet .ucet-role
{
    color: var(--tlumeny);
    font-size: 13px;
}

.ucet form
{
    margin: 0;
}


/* --- telefon a úzké okno --- */

@media (max-width: 1100px)
{
    .menu-prepinac
    {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .menu
    {
        display: none;
        position: fixed;
        inset: 64px 0 0;
        flex-direction: column;
        gap: 2px;
        height: auto;
        padding: 16px;
        background: var(--plocha);
        overflow: auto;
    }

    .menu.otevrene
    {
        display: flex;
    }

    .menu .polozka
    {
        height: auto;
        min-height: 44px;
        font-size: 16px;
    }

    .menu .polozka.aktivni
    {
        box-shadow: inset 3px 0 #536846;
    }

    .menu .skupina
    {
        height: auto;
    }

    .menu .dropdown-menu
    {
        position: static !important;
        transform: none !important;
        box-shadow: none;
        border: 0;
        padding-left: 16px;
    }
}

@media (max-width: 760px)
{
    .lista
    {
        height: 60px;
        padding: 0 12px;
        gap: 12px;
    }

    .menu
    {
        inset: 60px 0 0;
    }

    .logo img
    {
        width: 135px;
    }

    .obsah
    {
        padding: 16px 14px 32px;
    }

    h1
    {
        font-size: 26px;
    }

    .panel
    {
        padding: 16px;
    }

    .mrizka-dva,
    .radek-poli
    {
        grid-template-columns: 1fr;
    }

    .ucet .ucet-jmeno
    {
        display: none;
    }

    .hola-obsah
    {
        padding-top: 32px;
    }

    /* iOS jinak stránku při psaní zvětší. */
    input,
    select,
    textarea
    {
        font-size: 16px;
    }
}
