/*
  Nápověda pro instruktory (F2-05, kap. 7.2): text kapitoly podle pravidel designu Zajdy (plans/homepage), štítky jako
  StatusChip (Maya.Web/Shared), schéma kroků jako řádky. Třídy skládá HelpMarkdown (help-steps, help-step__*) a
  PortalHelpContent (portal-help*).
*/
.portal-help__text {
    color: #2b3c48;
    font-size: 1rem;
    line-height: 1.6;
}

.portal-help__text > :first-child {
    margin-top: 0;
}

.portal-help__text p,
.portal-help__text ul,
.portal-help__text ol,
.portal-help__text table {
    margin: 0 0 0.875rem;
}

.portal-help__text ul,
.portal-help__text ol {
    padding-left: 1.25rem;
}

.portal-help__text li + li {
    margin-top: 0.25rem;
}

.portal-help__text h3 {
    margin: 1.5rem 0 0.5rem;
    font-size: 1.125rem;
    font-weight: 600;
    scroll-margin-top: 5rem;
}

.portal-help__text strong {
    font-weight: 600;
}

.portal-help__text a {
    color: #eb6608;
    font-weight: 600;
}

.portal-help__text table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9375rem;
}

.portal-help__text th,
.portal-help__text td {
    padding: 0.5rem 0.625rem;
    border-bottom: 1px solid #f0efea;
    text-align: left;
    vertical-align: top;
}

.portal-help__text th {
    color: #2b3c48;
    font-weight: 600;
}

/* Záhlaví tabulky s podkladem jako tabulky správy (kontrola proklikání, bod 11) */
.portal-help__text thead th {
    background-color: #f4f3ef;
}

/* Telefon: tabulka po řádcích pod sebou, aby se stránka neposouvala do strany */
@media (max-width: 599.98px) {
    .portal-help__text table,
    .portal-help__text tbody,
    .portal-help__text tr,
    .portal-help__text td {
        display: block;
        width: 100%;
    }

    .portal-help__text thead {
        display: none;
    }

    .portal-help__text tr {
        padding: 0.5rem 0;
        border-bottom: 1px solid #f0efea;
    }

    .portal-help__text td {
        padding: 0;
        border: 0;
    }

    .portal-help__text td:first-child {
        margin-bottom: 0.125rem;
    }
}

.portal-help__tag {
    display: inline-block;
    padding: 0 0.5rem;
    border-radius: 999px;
    background-color: #f4f3ef;
    color: #828496;
    font-size: 0.8125rem;
    font-weight: 600;
    line-height: 1.6;
}

.portal-help__tag--success { background-color: rgba(102, 213, 117, .16); color: #2c8a3c; }
.portal-help__tag--warning { background-color: rgba(235, 102, 8, .10); color: #eb6608; }
.portal-help__tag--info,
.portal-help__tag--locked { background-color: rgba(43, 60, 72, .10); color: #2b3c48; }
.portal-help__tag--danger { background-color: rgba(201, 48, 44, .10); color: #a12622; }
.portal-help__tag--apple { background-color: rgba(142, 114, 88, .14); color: #6b5440; }

/* Ikony Material (PortalHelpRender) ve výšce písma */
.portal-help__icon {
    width: 1.125em;
    height: 1.125em;
    flex: none;
    vertical-align: -0.2em;
}

.portal-help__tag .portal-help__icon {
    width: 1em;
    height: 1em;
    margin-right: 2px;
    vertical-align: -0.125em;
}

/*
  Tlačítko v textu nápovědy (F2-05 proklikání 2026-11-26, body 3–5): obrys jako tlačítko portálu, bez akce. Tlačítko
  jen s ikonou má ikonu jako na obrazovce a název v bublině a pro čtečky.
*/
.portal-help__button {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    box-sizing: border-box;
    height: 1.5rem;
    padding: 0 0.5rem;
    border: 1px solid #d9d7cf;
    border-radius: 8px;
    background-color: #ffffff;
    color: #2b3c48;
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1.4;
    /* stejná výška a střed na středu řádku: spodní hrany na jedné lince (kontrola proklikání, bod 10) */
    vertical-align: middle;
    white-space: nowrap;
}

.portal-help__button--icon {
    justify-content: center;
    min-width: 1.75rem;
    padding: 0 0.25rem;
}

/* Značky (bod 6): ano zelená fajfka, ne křížek, jen vidí oko, své fajfka s tlumeným „své“ */
.portal-help__mark {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
}

.portal-help__mark--yes { color: #2c8a3c; }
.portal-help__mark--no { color: #a0a0a8; }
.portal-help__mark--view { color: #828496; }

.portal-help__mark-note {
    color: #828496;
    font-size: 0.8125rem;
}

/* Odkaz na stránku portálu (body 2 a 7): od odkazů mezi kapitolami ho odliší podklad a ikona, otevře stránku v téže kartě */
.portal-help__text a.portal-help__page-link {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    padding: 0 0.25rem;
    border-radius: 4px;
    background-color: rgba(235, 102, 8, .08);
    text-decoration: none;
}

.portal-help__text a.portal-help__page-link:hover {
    background-color: rgba(235, 102, 8, .16);
}

.portal-help__page-link .portal-help__icon {
    width: 0.9375em;
    height: 0.9375em;
    opacity: 0.8;
}

.portal-help-chapter .help-steps {
    display: grid;
    gap: 0.5rem;
    margin: 0 0 1rem;
    padding: 0;
    list-style: none;
    counter-reset: help-step;
}

.portal-help-chapter .help-step {
    display: grid;
    gap: 0.125rem;
    padding: 0.625rem 0.875rem;
    border: 1px solid #e4e4e4;
    border-left: 3px solid #eb6608;
    border-radius: 12px;
    font-size: 0.9375rem;
    counter-increment: help-step;
}

.portal-help-chapter .help-step__name {
    font-weight: 600;
}

.portal-help-chapter .help-step__name::before {
    color: #eb6608;
    content: counter(help-step) ". ";
}

.portal-help-chapter .help-step__who,
.portal-help-chapter .help-step__sees,
.portal-help-chapter .help-step__label {
    color: #828496;
    font-size: 0.875rem;
}

.portal-help-pager {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
}

.portal-help-pager__link {
    display: flex;
    flex-direction: column;
    gap: 2px;
    color: #828496;
    font-size: 0.875rem;
    text-decoration: none;
}

.portal-help-pager__link > b {
    color: #2b3c48;
    font-size: 1rem;
    font-weight: 600;
}

.portal-help-pager__link--next {
    margin-left: auto;
    text-align: right;
}

/* Hledání v nápovědě (proklikání 2026-11-26, bod 8): výsledky jako řádky s nadpisem oddílu a úryvkem */
.portal-help-hits {
    display: grid;
    gap: 0.25rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.portal-help-hit {
    display: grid;
    gap: 0.125rem;
    padding: 0.625rem 0.75rem;
    border-radius: 12px;
    color: #2b3c48;
    text-decoration: none;
}

.portal-help-hit:hover,
.portal-help-hit:focus-visible {
    background-color: #f4f3ef;
}

.portal-help-hit__title {
    color: #eb6608;
    font-weight: 600;
}

.portal-help-hit__snippet {
    color: #5c6270;
    font-size: 0.9375rem;
    line-height: 1.5;
}

.portal-help-hit__snippet mark {
    padding: 0;
    border-radius: 3px;
    background-color: rgba(235, 102, 8, .14);
    color: #2b3c48;
    font-weight: 600;
}
