/* Portál chytra-jidelna.cz – samostatný styl, nezávislý na aplikaci školky.
   Paleta podle loga: tmavě zelená mísa, oranžový akcent. */
:root {
    --bg: #F4F7F4; --surface: #FFFFFF; --surface-2: #F7FAF7; --surface-3: #ECF2EC;
    --ink: #17301F; --ink-2: #33483A; --muted: #66756B; --line: #DCE5DD;
    --brand: #1F7A3F; --brand-dark: #165C2F; --brand-soft: #E3F2E7;
    --accent: #F5A623; --accent-soft: #FDF1DA;
    --ok: #2E7D4F; --ok-soft: #E2F1E7; --warn: #8F6210; --warn-soft: #FBF0D9; --bad: #B23A3A; --bad-soft: #F9E4E4;
    --r: 6px; --r-card: 12px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body.portal {
    margin: 0; font-family: "IBM Plex Sans", -apple-system, "Segoe UI", Roboto, sans-serif;
    font-size: 16px; line-height: 1.5; color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased;
}
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -.01em; }
h1 { font-size: 40px; line-height: 1.12; }
h2 { font-size: 26px; margin-bottom: 6px; }
h3 { font-size: 17px; margin-bottom: 4px; }
p { margin: 0 0 12px; }
.p-obal { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
.p-male { font-size: 13px; color: var(--muted); }
.p-muted { color: var(--muted); }

/* hlavička */
.p-hlava { position: sticky; top: 0; z-index: 10; background: rgba(255,255,255,.92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.p-hlava-in { display: flex; align-items: center; justify-content: space-between; height: 60px; gap: 16px; }
.p-brand { display: flex; align-items: center; }
.p-brand img { height: 44px; width: auto; display: block; }
.p-nav { display: flex; align-items: center; gap: 22px; font-size: 15px; font-weight: 500; }
.p-nav a { color: var(--ink-2); }
.p-nav a:hover { color: var(--ink); text-decoration: none; }
.p-inline { display: contents; }
.p-lnk { background: none; border: 0; padding: 0; color: var(--muted); cursor: pointer; }
@media (max-width: 720px) { .p-nav a:not(.p-btn) { display: none; } }

/* tlačítka a formuláře */
.p-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 46px; padding: 0 20px;
    border-radius: 8px; background: var(--brand); color: #fff !important; font-weight: 600; border: 0; cursor: pointer; white-space: nowrap;
}
.p-btn:hover { background: var(--brand-dark); text-decoration: none; }
.p-btn-mala { height: 36px; padding: 0 14px; font-size: 14px; }
.p-btn-sec { background: var(--surface); color: var(--ink) !important; border: 1px solid var(--line); }
.p-btn-sec:hover { background: var(--surface-3); }
.p-btn-bad { background: var(--bad); }
.p-btn-bad:hover { background: #8f2e2e; }
.p-btn[disabled] { opacity: .6; cursor: progress; }
.p-pole { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.p-pole label { font-size: 14px; font-weight: 500; color: var(--ink-2); }
.p-pole input, .p-pole select {
    height: 44px; padding: 0 12px; border: 1px solid var(--line); border-radius: 8px; background: #fff; font-size: 16px;
}
.p-pole input:focus { outline: 2px solid var(--brand); outline-offset: 1px; border-color: transparent; }
.p-pole .p-male { margin-top: -2px; }
.p-adresa { display: flex; align-items: center; border: 1px solid var(--line); border-radius: 8px; background: #fff; overflow: hidden; }
.p-adresa input { border: 0 !important; border-radius: 0 !important; flex: 1; min-width: 0; text-align: right; }
.p-adresa span { padding: 0 12px; color: var(--muted); background: var(--surface-2); height: 44px; display: flex; align-items: center; border-left: 1px solid var(--line); white-space: nowrap; }
.p-zaskrt { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--ink-2); }
.p-zaskrt input { margin-top: 3px; }
.p-chyba { color: var(--bad); background: var(--bad-soft); border-radius: 8px; padding: 10px 12px; font-size: 14px; margin-bottom: 12px; }
.p-note { border-radius: 8px; padding: 12px 14px; margin: 18px 0; font-size: 15px; }
.p-note.ok { background: var(--ok-soft); color: var(--ok); }
.p-note.bad { background: var(--bad-soft); color: var(--bad); }

/* hero */
.p-hero { display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: center; padding: 64px 0 40px; }
.p-hero p.p-lead { font-size: 19px; color: var(--ink-2); margin: 18px 0 26px; }
.p-hero .p-akce { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.p-hero .p-male { margin-top: 12px; }
.p-nahled { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); padding: 16px; box-shadow: 0 20px 50px rgba(23,48,31,.10); }
.p-nahled-logo { position: absolute; top: -64px; right: -30px; width: 140px; height: 140px; filter: drop-shadow(0 8px 16px rgba(23,48,31,.15)); }
.p-nahled .p-radek:first-child { margin-right: 84px; }
.p-nahled .p-radek { display: flex; justify-content: space-between; align-items: center; padding: 10px 12px; border-radius: 8px; background: var(--surface-2); margin-bottom: 8px; font-size: 14px; }
.p-nahled .p-radek b { font-weight: 600; }
.p-chip { display: inline-block; font-size: 12px; font-weight: 600; padding: 2px 8px; border-radius: 999px; background: var(--surface-3); color: var(--ink-2); }
.p-chip.ok { background: var(--ok-soft); color: var(--ok); }
.p-chip.warn { background: var(--warn-soft); color: var(--warn); }
.p-chip.bad { background: var(--bad-soft); color: var(--bad); }
.p-chip.brand { background: var(--accent-soft); color: #8A5A0B; }
@media (max-width: 860px) { .p-hero { grid-template-columns: 1fr; padding-top: 40px; } h1 { font-size: 32px; } .p-nahled { display: none; } }

/* sekce */
.p-sekce { padding: 40px 0; }
.p-sekce > p.p-lead { color: var(--ink-2); max-width: 720px; margin-bottom: 26px; }
.p-karty { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.p-karta { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); padding: 20px; }
.p-karta .p-ikona { width: 36px; height: 36px; border-radius: 9px; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; margin-bottom: 12px; font-size: 18px; }
.p-karta p { color: var(--ink-2); font-size: 15px; margin: 0; }
@media (max-width: 860px) { .p-karty { grid-template-columns: 1fr; } }
.p-kroky { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; counter-reset: krok; }
.p-krok { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); padding: 20px; position: relative; }
.p-krok::before { counter-increment: krok; content: counter(krok); position: absolute; top: 16px; right: 16px; width: 30px; height: 30px; border-radius: 50%; background: var(--accent); color: #17301F; display: grid; place-items: center; font-weight: 700; font-size: 14px; }
@media (max-width: 860px) { .p-kroky { grid-template-columns: 1fr; } }

.p-cena { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.p-cena .p-karta.zvyraz { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.p-cena .castka { font-size: 30px; font-weight: 700; margin: 6px 0; }
.p-cena ul { margin: 12px 0 0; padding-left: 18px; color: var(--ink-2); font-size: 15px; }
@media (max-width: 720px) { .p-cena { grid-template-columns: 1fr; } }

/* formulář zřízení */
.p-zridit { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); padding: 32px; }
.p-zridit ul { color: var(--ink-2); font-size: 15px; padding-left: 18px; }
.p-zridit .p-btn { width: 100%; }
.p-honey { position: absolute; left: -9999px; }
@media (max-width: 860px) { .p-zridit { grid-template-columns: 1fr; padding: 22px; } }

.p-obsah { padding-bottom: 60px; min-height: 60vh; }
.p-paticka { border-top: 1px solid var(--line); padding: 24px 0 40px; color: var(--ink-2); font-size: 14px; }
.p-paticka .p-obal > div + div { margin-top: 6px; }

/* správa školek */
.p-panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); padding: 22px; margin-top: 22px; }
.p-panel h2 { font-size: 20px; }
.p-tabulka { width: 100%; border-collapse: collapse; font-size: 14px; }
.p-tabulka th, .p-tabulka td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.p-tabulka th { font-weight: 600; color: var(--muted); font-size: 12.5px; text-transform: uppercase; letter-spacing: .03em; }
.p-tabulka tr:hover td { background: var(--surface-2); }
.p-tabulka form { display: inline; }
.p-akce-radek { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.p-akce-radek input[type=date], .p-akce-radek input[type=text], .p-akce-radek input[type=number] { height: 30px; padding: 0 8px; border: 1px solid var(--line); border-radius: 6px; font-size: 13px; }
.p-btn-xs { height: 30px; padding: 0 10px; font-size: 13px; border-radius: 6px; }
.p-udalosti { font-size: 13.5px; color: var(--ink-2); }
.p-udalosti li { padding: 4px 0; border-bottom: 1px dashed var(--line); }
.p-prihlaseni { max-width: 400px; margin: 60px auto; }
