/*
 * Vzhled CRM Neonmedia. Barvy Neonmedie jsou v proměnných; pro text se používají
 * tmavší odstíny („-text“, „-tlacitko“), aby kontrast splnil WCAG AA (viz app/README.md).
 */

@font-face {
    font-family: 'Rubik';
    font-style: normal;
    font-weight: 300 700;
    font-display: swap;
    src: url('/assets/pisma/rubik-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
    font-family: 'Rubik';
    font-style: normal;
    font-weight: 300 700;
    font-display: swap;
    src: url('/assets/pisma/rubik-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
    /* Barvy Neonmedie */
    --modra: #7375ea;
    --fialova: #b969db;
    --ruzova: #e26080;
    --tyrkysova: #57fff0;
    --text: #303030;
    --pozadi-modre: #ebebf5;
    --pozadi-fialove: #f1eaf3;
    --pozadi-ruzove: #f4eaec;
    --pozadi-tyrkysove: #e0faf7;
    --pozadi: #f4f4f4;
    /* Odstíny pro text a plochy s bílým textem (kontrast ≥ 4,5 : 1) */
    --modra-text: #4547b8;      /* 7,4 na bílé, 6,2 na #ebebf5 */
    --modra-tlacitko: #5b5dd6;  /* bílý text 5,3 */
    --modra-tlacitko-hover: #4f51c9;
    --fialova-text: #7a3196;    /* 6,6 na #f1eaf3 */
    --fialova-plocha: #8a3fb0;  /* bílý text 6,1 */
    --ruzova-text: #a52a4c;     /* 5,9 na #f4eaec, 6,9 na bílé */
    --ruzova-plocha: #c13a60;   /* bílý text 5,2 */
    --tyrkysova-text: #0e6b63;  /* 5,8 na #e0faf7 */
    --seda-text: #6b6b76;       /* 5,3 na bílé, 4,8 na #f4f4f4 */
    --oddelovac: #ececf2;
    --stin: 0 1px 2px rgb(48 48 48 / 4%), 0 8px 24px rgb(48 48 48 / 6%);
    --zaobleni: 20px;
    --prechod: linear-gradient(90deg, var(--tyrkysova), var(--fialova), var(--ruzova));
    --prechod-plocha: linear-gradient(135deg, var(--modra-tlacitko) 0%, var(--fialova-plocha) 55%, #b8355a 100%);
    --sirka-menu: 240px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    font-family: 'Rubik', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;
    font-size: 15px;
    line-height: 1.5;
    color: var(--text);
    background: var(--pozadi);
}

a { color: var(--modra-text); text-underline-offset: 2px; }
a:hover { color: var(--fialova-text); }

:focus-visible { outline: 3px solid var(--modra); outline-offset: 2px; border-radius: 6px; }

h1, h2, h3 { line-height: 1.2; font-weight: 600; }
h1 { font-size: 1.9rem; margin: 0; letter-spacing: -.01em; }
h2 { font-size: 1.15rem; margin: 0 0 1rem; }

code { font-size: .9em; background: var(--pozadi-modre); padding: .05rem .35rem; border-radius: 6px; }

.sr-only {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.preskocit { position: absolute; left: -999px; top: .5rem; z-index: 100; background: #fff; padding: .5rem 1rem; border-radius: 999px; }
.preskocit:focus { left: .5rem; }

/* ——— Ikony (čárové SVG z /assets/ikony, barví se barvou textu) ——— */

.ikona, .menu li > a::before, .sekce-menu > summary::after, .odhlasit::before {
    display: inline-block;
    flex: none;
    width: 20px;
    height: 20px;
    background: currentColor;
    -webkit-mask: var(--ikona) center / contain no-repeat;
    mask: var(--ikona) center / contain no-repeat;
}

.i-muj-den, .m-muj-den { --ikona: url('/assets/ikony/muj-den.svg'); }
.i-ukoly, .m-ukoly { --ikona: url('/assets/ikony/ukoly.svg'); }
.i-klienti, .m-klienti { --ikona: url('/assets/ikony/klienti.svg'); }
.i-projekty, .m-projekty { --ikona: url('/assets/ikony/projekty.svg'); }
.i-hovory, .m-hovory { --ikona: url('/assets/ikony/hovory.svg'); }
.i-tym, .m-tym { --ikona: url('/assets/ikony/tym.svg'); }
.i-outreach, .m-outreach { --ikona: url('/assets/ikony/outreach.svg'); }
.i-lide, .m-lide { --ikona: url('/assets/ikony/lide.svg'); }
.i-uzivatele, .m-uzivatele { --ikona: url('/assets/ikony/uzivatele.svg'); }
.i-api-klice, .m-api-klice { --ikona: url('/assets/ikony/api-klice.svg'); }
.i-heslo, .m-ucet { --ikona: url('/assets/ikony/heslo.svg'); }
.i-kalendar { --ikona: url('/assets/ikony/kalendar.svg'); }
.i-po-terminu { --ikona: url('/assets/ikony/po-terminu.svg'); }
.i-schvaleni { --ikona: url('/assets/ikony/schvaleni.svg'); }
.i-rozpracovane { --ikona: url('/assets/ikony/rozpracovane.svg'); }
.i-menu { --ikona: url('/assets/ikony/menu.svg'); }

/* ——— Rozložení: boční menu + obsah ——— */

.bocni-menu {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 30;
    width: var(--sirka-menu);
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1.5rem 0 1rem;
    background: #fff;
    border-right: 1px solid var(--oddelovac);
    overflow-y: auto;
}

.bocni-menu .logo { display: block; padding: 0 1.5rem .75rem; }
.bocni-menu .logo img { display: block; height: auto; max-width: 100%; }

.navigace { flex: 1; display: flex; flex-direction: column; gap: .75rem; }

.sekce-menu > summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 0 1rem;
    padding: .35rem .5rem;
    border-radius: 8px;
    font-size: .75rem;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--seda-text);
    cursor: pointer;
    list-style: none;
}
.sekce-menu > summary::-webkit-details-marker { display: none; }
.sekce-menu > summary::after { --ikona: url('/assets/ikony/sipka.svg'); width: 16px; height: 16px; transition: transform .15s; }
.sekce-menu:not([open]) > summary::after { transform: rotate(-90deg); }
.sekce-menu > summary:hover { background: var(--pozadi); }

.menu { list-style: none; margin: .25rem 0 0; padding: 0; }
.menu li { position: relative; display: flex; align-items: center; }
.menu li > a {
    flex: 1;
    display: flex;
    align-items: center;
    gap: .75rem;
    margin: 1px 1rem;
    padding: .6rem .75rem;
    border-radius: 12px;
    color: var(--text);
    text-decoration: none;
    font-weight: 500;
}
.menu li > a::before { content: ''; color: var(--seda-text); }
.menu li > a:hover { background: var(--pozadi); color: var(--text); }
.menu li.aktivni > a { background: var(--pozadi-modre); color: var(--modra-text); font-weight: 600; }
.menu li.aktivni > a::before { color: var(--modra-text); }
.menu li.aktivni::before {
    content: '';
    position: absolute;
    left: 0;
    top: 6px;
    bottom: 6px;
    width: 4px;
    border-radius: 0 4px 4px 0;
    background: var(--modra);
}

.odznak {
    margin-left: auto;
    margin-right: -.25rem;
    min-width: 1.4rem;
    padding: 0 .4rem;
    border-radius: 999px;
    background: var(--ruzova-plocha);
    color: #fff;
    font-size: .75rem;
    font-weight: 600;
    line-height: 1.4rem;
    text-align: center;
}

.menu-dole { border-top: 1px solid var(--oddelovac); padding-top: .75rem; }
.menu-dole form { margin: 0; }
.odhlasit {
    display: flex;
    align-items: center;
    gap: .75rem;
    width: calc(100% - 2rem);
    margin: 1px 1rem;
    padding: .6rem .75rem;
    border: 0;
    border-radius: 12px;
    background: none;
    color: var(--text);
    font: inherit;
    font-weight: 500;
    text-align: left;
    cursor: pointer;
}
.odhlasit::before { content: ''; --ikona: url('/assets/ikony/odhlasit.svg'); color: var(--seda-text); }
.odhlasit:hover { background: var(--pozadi-ruzove); color: var(--ruzova-text); }

.obsah { margin-left: var(--sirka-menu); min-height: 100vh; }

.horni-lista {
    display: flex;
    align-items: center;
    gap: 1rem;
    justify-content: flex-end;
    padding: 1rem 2.5rem 0;
}
.uzivatel { display: flex; align-items: center; gap: .65rem; padding: .35rem .9rem .35rem .35rem; background: #fff; border-radius: 999px; box-shadow: var(--stin); }
.uzivatel-text { display: flex; flex-direction: column; line-height: 1.2; }
.uzivatel-text small { color: var(--seda-text); font-size: .78rem; }

main { max-width: 84rem; padding: 1.25rem 2.5rem 3rem; }

/* Mobilní přepínač menu (checkbox bez JS); na desktopu skrytý. */
.menu-prepinac, .hamburger, .logo-mobil, .menu-zavoj { display: none; }

@media (max-width: 900px) {
    .bocni-menu { gap: .5rem; padding-top: 1rem; }
    .menu li > a, .odhlasit { padding-top: .5rem; padding-bottom: .5rem; }
    .bocni-menu { transform: translateX(-100%); transition: transform .2s ease; box-shadow: none; visibility: hidden; }
    .menu-prepinac:checked ~ .bocni-menu { transform: none; visibility: visible; box-shadow: 0 0 40px rgb(48 48 48 / 20%); }
    .menu-prepinac:checked ~ .menu-zavoj { display: block; position: fixed; inset: 0; z-index: 20; background: rgb(48 48 48 / 35%); }
    .menu-prepinac {
        display: block;
        position: fixed;
        top: .75rem;
        left: .75rem;
        z-index: 40;
        width: 44px;
        height: 44px;
        margin: 0;
        opacity: 0;
        cursor: pointer;
    }
    .menu-prepinac:checked { left: calc(var(--sirka-menu) + .75rem); }
    .hamburger { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: #fff; box-shadow: var(--stin); }
    .hamburger .ikona { width: 22px; height: 22px; }
    .menu-prepinac:focus-visible ~ .obsah .hamburger { outline: 3px solid var(--modra); outline-offset: 2px; }
    .logo-mobil { display: block; margin-right: auto; }
    .logo-mobil img { display: block; }
    .obsah { margin-left: 0; }
    .horni-lista { justify-content: space-between; padding: .75rem 1rem 0; }
    .uzivatel-text { display: none; }
    .uzivatel { padding: .3rem; }
    main { padding: 1rem 1rem 2.5rem; }
    h1 { font-size: 1.55rem; }
}

/* ——— Hlavička stránky ——— */

.hlavicka-stranky {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem 1.5rem;
    margin: .5rem 0 1.75rem;
}
.podnadpis { margin: .35rem 0 0; color: var(--seda-text); }
.akce-stranky { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.akce-stranky form { margin: 0; }

.pozdrav { margin: .5rem 0 0; font-size: 2.1rem; font-weight: 600; line-height: 1.15; letter-spacing: -.01em; }
.datum-dne { margin: .25rem 0 1.75rem; color: var(--seda-text); font-size: 1.05rem; }
.datum-dne::first-letter { text-transform: uppercase; }
.hlavicka-dne .pozdrav { margin-top: 0; }
.hlavicka-dne .datum-dne { margin-bottom: 0; }

/* ——— Karty ——— */

.karta {
    background: #fff;
    border-radius: var(--zaobleni);
    padding: 1.5rem 1.75rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--stin);
    overflow-x: auto;
    position: relative; /* absolutně umístěný skrytý text (.sr-only) zůstane uvnitř posuvné karty */
}
.karta > h2:first-child, .karta > .radek:first-child { margin-top: 0; }
.karta > :last-child { margin-bottom: 0; }

.statistiky {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.25rem;
    margin-bottom: 1.5rem;
}
.statistika {
    display: flex;
    flex-direction: column;
    gap: .9rem;
    padding: 1.4rem 1.5rem;
    border-radius: var(--zaobleni);
    background: #fff;
    box-shadow: var(--stin);
    color: var(--text);
    text-decoration: none;
    transition: transform .15s, box-shadow .15s;
}
.statistika:hover { color: var(--text); transform: translateY(-2px); box-shadow: 0 2px 4px rgb(48 48 48 / 5%), 0 14px 32px rgb(48 48 48 / 10%); }
.statistika-hlava { display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
.ikona-kruh { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--pozadi-modre); color: var(--modra-text); }
.statistika-cislo { font-size: 2.6rem; font-weight: 600; line-height: 1; }
.statistika-popis { font-weight: 500; }
.statistika-odkaz { font-size: .82rem; color: var(--seda-text); }
.statistika.po-terminu .ikona-kruh { background: var(--pozadi-ruzove); color: var(--ruzova-text); }
.statistika.po-terminu.nenulova .statistika-cislo { color: var(--ruzova-text); }
.statistika.schvaleni .ikona-kruh { background: var(--pozadi-tyrkysove); color: var(--tyrkysova-text); }
.statistika.rozpracovane .ikona-kruh { background: var(--pozadi-fialove); color: var(--fialova-text); }
.statistika.hlavni { background: var(--prechod-plocha); color: #fff; box-shadow: 0 10px 30px rgb(115 117 234 / 35%); }
.statistika.hlavni:hover { color: #fff; }
.statistika.hlavni .ikona-kruh { background: rgb(255 255 255 / 20%); color: #fff; }
.statistika.hlavni .statistika-odkaz { color: #fff; }

@media (max-width: 1100px) { .statistiky { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .statistiky { gap: .75rem; } .statistika { padding: 1.1rem; } .statistika-cislo { font-size: 2rem; } }

.prehled-den { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0 1.5rem; }
.prehled-den > .karta { min-width: 0; }
@media (min-width: 1600px) { .prehled-den { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ——— Tlačítka a formuláře ——— */

button, .tlacitko, .akce > a, .akce-stranky > a:not(.tlacitko) {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    padding: .5rem 1rem;
    border: 0;
    border-radius: 999px;
    background: var(--pozadi-modre);
    color: var(--modra-text);
    font: inherit;
    font-weight: 500;
    line-height: 1.3;
    text-decoration: none;
    cursor: pointer;
    white-space: nowrap;
}
button:hover, .akce > a:hover, .akce-stranky > a:not(.tlacitko):hover { background: #dedef0; color: var(--modra-text); }
.tlacitko { background: var(--modra-tlacitko); color: #fff; font-weight: 600; padding: .65rem 1.3rem; box-shadow: 0 6px 16px rgb(91 93 214 / 25%); }
.tlacitko:hover { background: var(--modra-tlacitko-hover); color: #fff; }
form > .tlacitko, .formular .tlacitko { margin-top: 1.25rem; }

label { display: block; margin: 1rem 0 .35rem; font-weight: 500; }
label small { color: var(--seda-text); font-weight: 400; }
input, select, textarea {
    font: inherit;
    color: var(--text);
    padding: .55rem .75rem;
    border: 1px solid #d9d9e3;
    border-radius: 12px;
    background: #fff;
}
input:focus-visible, select:focus-visible, textarea:focus-visible { border-color: var(--modra); }
.formular { max-width: 46rem; }
.prihlaseni input, .formular input, .formular select, .formular textarea { width: 100%; }
.formular textarea { min-height: 7rem; }

.akce { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin: .75rem 0; }
.akce form { margin: 0; }
.akce label { margin: 0; }
.filtry { align-items: flex-end; gap: .75rem; }
.filtry label { margin: 0 0 .3rem; font-size: .85rem; color: var(--seda-text); }
.filtry select { max-width: 13rem; }

td form { display: inline-flex; flex-wrap: wrap; gap: .3rem; margin: 0 .3rem .3rem 0; }
td form select, td form input { padding: .3rem .6rem; font-size: .88rem; }
td button { padding: .3rem .8rem; font-size: .88rem; }

details > summary { cursor: pointer; }
.karta details:not(.zmena-stavu) { margin-top: 1rem; }
.karta details:not(.zmena-stavu) > summary { display: inline-block; font-weight: 500; color: var(--modra-text); padding: .45rem 1rem; border-radius: 999px; background: var(--pozadi-modre); }

.zmena-stavu { display: inline-block; margin-left: .35rem; }
.zmena-stavu > summary { display: inline; font-size: .8rem; color: var(--modra-text); text-decoration: underline; text-underline-offset: 2px; }
.zmena-stavu[open] > form { display: flex; margin-top: .4rem; }

/* ——— Zprávy ——— */

.chyba, .info { padding: .75rem 1rem; border-radius: 14px; margin: 0 0 1.25rem; }
.chyba { background: var(--pozadi-ruzove); color: var(--ruzova-text); }
.info { background: var(--pozadi-tyrkysove); color: var(--tyrkysova-text); }
.upozorneni { padding: .75rem 1rem; border-radius: 14px; margin: 0 0 1rem; background: var(--pozadi-fialove); color: var(--fialova-text); }

/* ——— Vlákno s klientem a viditelnost ——— */

.vlakno { list-style: none; margin: 0 0 1rem; padding: 0; display: grid; gap: .75rem; }
.zapis-vlakna, .reakce-klienta { padding: .75rem 1rem; border-radius: 14px; background: var(--pozadi); }
.zapis-vlakna p, .reakce-klienta p { margin: 0 0 .35rem; }
.zapis-vlakna p:last-child, .reakce-klienta p:last-child { margin-bottom: 0; }
.druh-vraceno { background: var(--pozadi-ruzove); }
.druh-schvaleno { background: var(--pozadi-tyrkysove); }
.druh-odpoved_tymu { background: var(--pozadi-modre); }
.reakce-klientu { margin-bottom: 1.5rem; }
.prepinac-viditelnosti { display: inline-flex; }
.vyber-ukolu, .nahled-ukoly { list-style: none; margin: 0 0 1rem; padding: 0; display: grid; gap: .5rem; }
.nahled-ukol p { margin: 0 0 .35rem; }

/* ——— Tabulky ——— */

table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: .75rem .75rem; border-bottom: 1px solid var(--oddelovac); vertical-align: middle; }
th { font-size: .78rem; font-weight: 500; color: var(--seda-text); text-transform: uppercase; letter-spacing: .05em; }
tbody tr:last-child > td { border-bottom: 0; }
tbody tr:hover > td { background: #fafafd; }
th:first-child, td:first-child { padding-left: 0; }
td a { font-weight: 500; text-decoration: none; }
td a:hover { text-decoration: underline; }
.neaktivni, .neaktivni a { color: var(--seda-text); }

.clovek { display: inline-flex; align-items: center; gap: .55rem; }

.avatar {
    display: inline-grid;
    place-items: center;
    flex: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: .78rem;
    font-weight: 600;
    letter-spacing: .02em;
}
.avatar-0 { background: var(--pozadi-modre); color: var(--modra-text); }
.avatar-1 { background: var(--pozadi-fialove); color: var(--fialova-text); }
.avatar-2 { background: var(--pozadi-ruzove); color: var(--ruzova-text); }
.avatar-3 { background: var(--pozadi-tyrkysove); color: var(--tyrkysova-text); }
.avatar-velky { width: 40px; height: 40px; font-size: .9rem; background: var(--prechod-plocha); color: #fff; }

/* ——— Štítky („pilulky“) ——— */

.stitek {
    display: inline-block;
    padding: .15rem .65rem;
    border-radius: 999px;
    font-size: .78rem;
    font-weight: 500;
    line-height: 1.5;
    white-space: nowrap;
    vertical-align: middle;
    background: var(--pozadi-modre);
    color: #5c5c66;
}
.stitek.klient { background: var(--pozadi-fialove); color: var(--fialova-text); }
.stitek.interni { background: #f0f0f4; color: #5c5c66; }
.stitek.archiv { background: #ececec; color: #4a4a52; }
.stitek.stav-novy { background: var(--pozadi-modre); color: var(--modra-text); }
.stitek.stav-rozpracovany { background: var(--pozadi-fialove); color: var(--fialova-text); }
.stitek.stav-ceka_na_schvaleni { background: #fdf0d9; color: #8a5a00; }
.stitek.stav-hotovo { background: var(--pozadi-tyrkysove); color: var(--tyrkysova-text); }
.stitek.priorita, .stitek.priorita-vysoka, .stitek.po-terminu { background: var(--pozadi-ruzove); color: var(--ruzova-text); }
.stitek.priorita-normalni { background: var(--pozadi-modre); color: var(--modra-text); }
.stitek.priorita-nizka { background: #ececec; color: #4a4a52; }
.termin-po { color: var(--ruzova-text); font-weight: 600; }
.termin { white-space: nowrap; }

/* ——— Ostatní ——— */

.radek { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; justify-content: space-between; margin-bottom: 1rem; }
.radek h1, .radek h2 { margin: 0; }
.poznamky { white-space: pre-wrap; }
.historie td { font-size: .88rem; vertical-align: top; }
.historie ul { margin: 0; padding-left: 1rem; }
.prehled-tymu td { vertical-align: top; }
.prehled-tymu ul { margin: .25rem 0 0; padding-left: 1rem; font-size: .88rem; }
.prehled-tymu td:first-child, .prehled-tymu li .prazdne { white-space: nowrap; }
.prazdne { color: var(--seda-text); }
.api-klic { display: block; padding: .75rem; background: var(--pozadi); word-break: break-all; user-select: all; border-radius: 12px; }

dl.udaje { display: grid; grid-template-columns: max-content 1fr; gap: .75rem 2rem; margin: 0; }
dl.udaje dt { color: var(--seda-text); }
dl.udaje dd { margin: 0; font-weight: 500; }
@media (max-width: 600px) { dl.udaje { grid-template-columns: 1fr; gap: .15rem; } dl.udaje dd { margin-bottom: .6rem; } }

/* ——— Klientská část (bez bočního menu) ——— */

.klientska main { max-width: 72rem; margin: 0 auto; }
.klientska-lista { max-width: 72rem; margin: 0 auto; justify-content: space-between; }
.klientska-lista .logo img { display: block; }
.klientska-lista .uzivatel { padding: .35rem .35rem .35rem 1rem; }
.klientska-lista .uzivatel form { margin: 0; }
.klientska-lista .odhlasit { width: auto; margin: 0; padding: .45rem .9rem; border-radius: 999px; }
.zpet { margin: .5rem 0 0; }
.zpet a { text-decoration: none; font-weight: 500; }
.klient-mrizka { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 1.5rem; align-items: start; }
.klient-mrizka > .karta { min-width: 0; }
.klient-schvaleni { border-top: 4px solid #f0b54a; }
.klient-ukoly, .klient-projekty { list-style: none; margin: 0; padding: 0; }
.klient-ukol, .klient-projekt { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .4rem 1rem; padding: .8rem 0; border-bottom: 1px solid var(--oddelovac); }
.klient-ukol:last-child, .klient-projekt:last-child { border-bottom: 0; }
.klient-ukol-nazev, .klient-projekt-nazev { font-weight: 500; text-decoration: none; }
.klient-ukol-nazev:hover, .klient-projekt-nazev:hover { text-decoration: underline; }
.klient-ukol-udaje { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem .6rem; font-size: .9rem; }
.klient-ukol-projekt { color: var(--seda-text); }
.klient-vystup a { font-weight: 600; }
.klient-tlacitka { margin-top: 1.25rem; }
.klient-tlacitka .tlacitko { margin-top: 0; }
.vratit { background: var(--pozadi-ruzove); color: var(--ruzova-text); font-weight: 600; }
.vratit:hover { background: #f0d6dc; color: var(--ruzova-text); }
.stitek.projekt-aktivni { background: var(--pozadi-tyrkysove); color: var(--tyrkysova-text); }
.stitek.projekt-pozastaveny { background: #fdf0d9; color: #8a5a00; }

/* Outreach: stavy kontaktů a odesílacích účtů */
.stitek.outreach-novy, .stitek.outreach-prozkoumany { background: var(--pozadi-modre); color: var(--modra-text); }
.stitek.outreach-zadost_odeslana, .stitek.outreach-spojeny, .stitek.outreach-prvni_zprava, .stitek.outreach-follow_up { background: var(--pozadi-fialove); color: var(--fialova-text); }
.stitek.outreach-odpovedel { background: #fdf0d9; color: #8a5a00; }
.stitek.outreach-call_domluven, .stitek.ucet-aktivni { background: var(--pozadi-tyrkysove); color: var(--tyrkysova-text); }
.stitek.outreach-nema_zajem, .stitek.ucet-pozastaveny { background: var(--pozadi-ruzove); color: var(--ruzova-text); }
.stitek.outreach-ukonceno { background: #ececec; color: #4a4a52; }
.outreach-cast + .outreach-cast { margin-top: 1.25rem; padding-top: 1rem; border-top: 1px solid var(--oddelovac); }
.outreach-cast h3 { margin: 0 0 .5rem; font-size: 1rem; }
.outreach-cast .prazdne { margin: 0; }
.prehled-outreach th, .prehled-outreach td { text-align: right; white-space: nowrap; }
.prehled-outreach th:first-child, .prehled-outreach td:first-child { text-align: left; }
.prehled-outreach th { white-space: normal; text-transform: none; letter-spacing: 0; font-size: .85rem; }
.prehled-outreach th small { display: block; }
.prehled-outreach .soucet { font-weight: 600; }
tfoot td { border-top: 2px solid var(--oddelovac); border-bottom: 0; }
.stitek.import-novy { background: var(--pozadi-tyrkysove); color: var(--tyrkysova-text); }
.stitek.import-duplicita { background: #ececec; color: #4a4a52; }
.stitek.import-neoslovovat, .stitek.import-chyba { background: var(--pozadi-ruzove); color: var(--ruzova-text); }
.souhrn-importu { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; list-style: none; padding: 0; }
.stitek.ucet-nabeh { background: #fdf0d9; color: #8a5a00; }
.od-tymu { margin-right: 2rem; }
.od-klienta { margin-left: 2rem; }

@media (max-width: 900px) {
    .klient-mrizka { grid-template-columns: minmax(0, 1fr); }
    .klientska-lista .uzivatel-text { display: none; }
    .od-tymu { margin-right: .75rem; }
    .od-klienta { margin-left: .75rem; }
    .karta { padding: 1.25rem; }
}
@media (max-width: 600px) {
    /* Na mobilu má každý úkol a projekt stav a termín vždy pod názvem, i když by se vešly vedle. */
    .klient-ukol, .klient-projekt { flex-direction: column; align-items: flex-start; }
}

/* ——— Stránka pro nepřihlášené ——— */

.verejna main { max-width: 26rem; margin: 0 auto; padding: 12vh 1rem 2rem; }
.verejna-logo { display: flex; justify-content: center; margin-bottom: 1.75rem; }
.verejna-logo img { max-width: 100%; height: auto; }
.prihlaseni { padding: 2rem; }
.prihlaseni h1 { font-size: 1.6rem; margin-bottom: .5rem; }
.prihlaseni .tlacitko { width: 100%; justify-content: center; }
.prihlaseni::before { content: ''; display: block; height: 4px; margin: -2rem -2rem 1.75rem; border-radius: var(--zaobleni) var(--zaobleni) 0 0; background: var(--prechod); }

@media (prefers-reduced-motion: reduce) {
    * { transition: none !important; }
}
