.pull-right {
    float: right;
}
.clicable-column {
    cursor: pointer;
}
h1{
    font-size: 40px;
}
img.active {
    opacity: 0.4;
}
a:hover img {
    opacity: 0.7;
}

.mt20 {
    margin-top: 20px !important;
}

.container-xml {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
}

.box-xml {
    flex: 1;
    box-sizing: border-box;
    border: none;
    min-width: 50%;
}

@media (max-width: 960px) {
    .box-xml {
        flex-basis: 100%;
    }
}

/* =========================================================================
   API dokumentace – vizuální vrstva (jen /api/*)
   Barvy hlavičky a layout zůstávají beze změny; firemní modrá #044493.
   ========================================================================= */

:root {
    --api-blue: #044493;
    --api-blue-dark: #033a7d;
    --api-blue-soft: #eef3fb;
    --api-border: #d6e0e5;
    --api-ink: #1d2733;
    --api-muted: #5b6b78;
    --api-amber: #c2410c;
    --api-amber-bg: #fff7ed;
    --api-amber-border: #fed7aa;
    --api-green: #0f7a4d;
    --api-green-bg: #e8f6ee;
}

.api_index {
    color: var(--api-ink);
}
.api_index h1 {
    font-size: 32px;
    line-height: 1.2;
    color: var(--api-blue);
    margin-bottom: .75em;
}
.api_index h1::after {
    content: "";
    display: block;
    width: 64px;
    height: 4px;
    margin-top: 14px;
    border-radius: 2px;
    background: var(--api-blue);
}
.api_index > p {
    color: var(--api-muted);
    line-height: 1.65;
}

/* ---- Intro blok (úvodní odstavec na rozcestníku) ---- */
.api-intro {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 20px;
    background: var(--api-blue-soft);
    border-left: 4px solid var(--api-blue);
    border-radius: 8px;
    padding: 20px 24px;
    margin-bottom: 32px;
}
.api-intro p {
    margin: 0;
    line-height: 1.65;
    color: var(--api-ink);
    text-align: left;
}
.api-intro .api-intro__sign {
    flex: 0 0 auto;
    font-style: italic;
    font-weight: bold;
    color: var(--api-blue);
    white-space: nowrap;
    align-self: flex-end;
}
@media (max-width: 720px) {
    .api-intro { flex-direction: column; align-items: stretch; }
    .api-intro .api-intro__sign { align-self: flex-end; }
}

/* ---- Mřížka karet ---- */
.api-grid {
    display: grid;
    gap: 20px;
    margin: 8px 0 8px;
}
.api-grid--2 { grid-template-columns: repeat(2, 1fr); }
.api-grid--3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 720px) {
    .api-grid--2,
    .api-grid--3 { grid-template-columns: 1fr; }
}

/* ---- Karta ---- */
.api-card {
    position: relative;
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid var(--api-border);
    border-radius: 10px;
    padding: 24px 22px 22px;
    box-shadow: 0 1px 2px rgba(4, 68, 147, .04);
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
    overflow: hidden;
}
.api-card::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: var(--api-blue);
    opacity: 0;
    transition: opacity .18s ease;
}
.api-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 24px rgba(4, 68, 147, .12);
    border-color: #b9cbe0;
}
.api-card:hover::before { opacity: 1; }

.api-card__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: var(--api-blue-soft);
    color: var(--api-blue);
    margin-bottom: 16px;
}
.api-card__icon svg { width: 26px; height: 26px; display: block; }

.api_index .api-card__title,
.api-card__title {
    font-size: 19px;
    font-weight: 700;
    text-transform: none;
    letter-spacing: 0;
    color: var(--api-ink);
    margin: 0 0 8px;
    padding-bottom: 0;
    border-bottom: 0;
}
.api-card__desc {
    margin: 0;
    color: var(--api-muted);
    line-height: 1.6;
    text-align: left;
}
.api-card__foot {
    margin-top: auto;
    padding-top: 18px;
}
.api-card__price {
    display: block;
    font-size: 13px;
    color: var(--api-muted);
    margin-bottom: 10px;
}
.api-card__price strong { color: var(--api-ink); }

/* Varianty karet */
.api-card--featured {
    border-color: var(--api-blue);
    background: linear-gradient(180deg, #f6f9fe 0%, #ffffff 60%);
    box-shadow: 0 6px 20px rgba(4, 68, 147, .10);
}
.api-card--featured::before { opacity: 1; height: 4px; }
.api-card--legacy .api-card__icon {
    background: #f1f3f5;
    color: #8a98a3;
}

/* Banner varianta (vodorovná, zvýrazněná) – např. doporučená OpenAPI */
.api-card--banner {
    flex-direction: row;
    align-items: center;
    gap: 24px;
}
.api-card--banner .api-card__icon {
    margin-bottom: 0;
    width: 60px;
    height: 60px;
    flex: 0 0 auto;
}
.api-card--banner .api-card__icon svg { width: 32px; height: 32px; }
.api-card--banner .api-card__body { flex: 1; }
.api-card--banner .api-card__foot { margin-top: 0; padding-top: 0; flex: 0 0 auto; }
@media (max-width: 720px) {
    .api-card--banner { flex-direction: column; align-items: flex-start; }
    .api-card--banner .api-card__foot { width: 100%; }
}

/* ---- Odznaky ---- */
.api-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    padding: 6px 10px;
    border-radius: 999px;
    white-space: nowrap;
}
.api-badge--reco {
    background: var(--api-green-bg);
    color: var(--api-green);
    border: 1px solid #bfe6cf;
}
.api-badge--eol {
    background: var(--api-amber-bg);
    color: var(--api-amber);
    border: 1px solid var(--api-amber-border);
}
.api-card__badges {
    position: absolute;
    top: 16px;
    right: 16px;
    display: flex;
    gap: 6px;
}
/* odznak v toku (pod popisem) */
.api-card__note {
    margin: 12px 0 0;
    font-size: 13px;
    color: var(--api-amber);
    line-height: 1.5;
}

/* ---- Tlačítka (firemní modrá) ---- */
.api-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.2;
    padding: 11px 18px;
    border-radius: 8px;
    border: 1px solid var(--api-blue);
    background: var(--api-blue);
    color: #fff !important;
    text-decoration: none;
    cursor: pointer;
    transition: background .15s ease, border-color .15s ease, transform .12s ease;
}
.api-btn:hover {
    background: var(--api-blue-dark);
    border-color: var(--api-blue-dark);
    transform: translateY(-1px);
    text-decoration: none;
    color: #fff !important;
}
.api-btn--ghost {
    background: #fff;
    color: var(--api-blue) !important;
}
.api-btn--ghost:hover {
    background: var(--api-blue-soft);
    color: var(--api-blue) !important;
}
.api-btn--block { display: flex; width: 100%; }
.api-btn--disabled {
    background: #eef1f4;
    border-color: #dde3e8;
    color: #8a98a3 !important;
    cursor: default;
    pointer-events: none;
}
.api-btn svg { width: 18px; height: 18px; }

/* ---- Info / poznámkový box ---- */
.api-note {
    background: #f7f9fc;
    border: 1px solid var(--api-border);
    border-radius: 8px;
    padding: 16px 18px;
    color: var(--api-muted);
    line-height: 1.6;
    margin: 18px 0;
}
.api-note--accent {
    background: var(--api-blue-soft);
    border-color: #cdddf1;
    border-left: 4px solid var(--api-blue);
    color: var(--api-ink);
}

/* ---- Seznam výhod / důvodů ---- */
.api_index ul.api-list {
    list-style: none;
    margin: 0 0 20px;
    padding: 0;
}
.api_index ul.api-list li {
    position: relative;
    margin-top: 0;
    padding: 8px 0 8px 30px;
    line-height: 1.55;
    border-bottom: 1px solid #eef1f4;
}
.api_index ul.api-list li:last-child { border-bottom: 0; }
.api_index ul.api-list li::before {
    content: "";
    position: absolute;
    left: 4px;
    top: 14px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--api-blue);
}

/* ---- CTA kontakt box (realitní servery) ---- */
.api-cta {
    display: flex;
    align-items: center;
    gap: 22px;
    background: linear-gradient(135deg, var(--api-blue) 0%, #0a5bbd 100%);
    color: #fff;
    border-radius: 12px;
    padding: 28px 30px;
    margin: 24px 0;
    box-shadow: 0 8px 24px rgba(4, 68, 147, .18);
}
.api-cta__icon {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .15);
}
.api-cta__icon svg { width: 34px; height: 34px; color: #fff; }
.api-cta__body { flex: 1; }
.api_index .api-cta__body h3,
.api-cta__body h3 {
    margin: 0 0 6px;
    font-size: 20px;
    color: #fff;
}
.api-cta__body p {
    margin: 0;
    color: rgba(255, 255, 255, .88);
    text-align: left;
    line-height: 1.55;
}
.api-cta__body p a {
    color: #fff;
    text-decoration: underline;
}
.api-cta__contact {
    margin-top: 14px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px 22px;
    font-size: 15px;
}
.api-cta__contact a { color: #fff; text-decoration: underline; }
.api-cta__contact .api-btn { text-decoration: none; }
.api-cta__placeholder {
    display: inline-block;
    padding: 2px 10px;
    border: 1px dashed rgba(255, 255, 255, .6);
    border-radius: 6px;
    font-style: italic;
    color: rgba(255, 255, 255, .9);
}
@media (max-width: 720px) {
    .api-cta { flex-direction: column; text-align: center; }
    .api-cta__body p { text-align: center; }
    .api-cta__contact { justify-content: center; }
}

/* ---- Sekce nadpis ---- */
.api-section-title {
    font-size: 15px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: var(--api-muted);
    margin: 28px 0 14px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--api-border);
}

/* =========================================================================
   API dokumentace – záložky (taby) a obsahové stránky (XML metody)
   ========================================================================= */

/* ---- Záložky ---- */
.api-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    list-style: none;
    margin: 0 0 28px;
    padding: 6px;
    background: var(--api-blue-soft);
    border-radius: 12px;
}
.api-tabs li { margin: 0; padding: 0; }
.api-tabs li::before { content: none !important; }
.api-tab {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--api-blue) !important;
    text-decoration: none;
    transition: background .15s ease, color .15s ease, box-shadow .15s ease;
}
.api-tab:hover {
    background: #dbe7f7;
    text-decoration: none;
    color: var(--api-blue) !important;
}
.api-tab.is-active {
    background: var(--api-blue);
    color: #fff !important;
    box-shadow: 0 2px 6px rgba(4, 68, 147, .25);
}
/* ---- Nadpisy v dokumentaci (sjednoceno se sekcemi OpenAPI) ---- */
.api_index h2 {
    font-size: 15px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: var(--api-muted);
    margin: 30px 0 14px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--api-border);
}
.api_index h3 {
    font-size: 17px;
    font-weight: 700;
    color: var(--api-ink);
    margin: 24px 0 10px;
}
/* titulky uvnitř karet box-xml zůstávají výrazné (ne sekční styl) */
.api_index .box-xml h2 {
    font-size: 19px;
    font-weight: 700;
    text-transform: none;
    letter-spacing: 0;
    color: var(--api-ink);
    margin: 22px 0 12px;
    padding-bottom: 0;
    border-bottom: 0;
}

/* ---- Karty box-xml ---- */
.api_index .container-xml {
    gap: 20px;
    margin-bottom: 26px;
}
.api_index .box-xml {
    flex: 1 1 calc(50% - 10px);
    min-width: 280px;
    background: #fff;
    border: 1px solid var(--api-border);
    border-radius: 10px;
    padding: 22px 24px;
    box-shadow: 0 1px 2px rgba(4, 68, 147, .04);
}
.api_index .box-xml > h1,
.api_index .box-xml > h2:first-child { margin-top: 0; }

/* ---- Tabulky dokumentace ---- */
.api_index table.table,
.api_index .prop-table {
    width: 100%;
    border: 1px solid var(--api-border);
    border-radius: 8px;
    border-collapse: separate;
    border-spacing: 0;
    overflow: hidden;
    margin: 0 0 22px;
}
.api_index .table thead th,
.api_index .prop-table thead th,
.api_index .prop-table thead td {
    background: var(--api-blue);
    color: #fff;
    border-color: var(--api-blue);
    font-weight: 600;
    vertical-align: middle;
}
.api_index .table th,
.api_index .table td,
.api_index .prop-table th,
.api_index .prop-table td {
    padding: 9px 12px;
    border-top: 1px solid #eef1f4;
}
/* mezisoučtové řádky (uzly) uvnitř těla tabulky */
.api_index .table tbody th[colspan],
.api_index .prop-table tbody th[colspan] {
    background: var(--api-blue-soft);
    color: var(--api-blue);
}
.api_index .table.table-hover tbody tr:hover > * {
    background-color: #f1f6fc;
}

/* ---- Bloky kódu ---- */
.api_index pre {
    background: #f7f9fc;
    border: 1px solid var(--api-border);
    border-radius: 8px;
    padding: 16px 18px;
    overflow-x: auto;
    margin: 0 0 22px;
}
.api_index pre code {
    background: none;
    border: 0;
    padding: 0;
    color: #1d2733;
    font-size: 13px;
    white-space: pre;
}
.api_index code {
    background: #eef1f4;
    border: 1px solid #e1e6ea;
    border-radius: 4px;
    padding: 1px 6px;
    color: #b4316b;
    font-size: 13px;
}

/* ---- Bootstrap alert sladěný s designem ---- */
.api_index .alert-info {
    background: var(--api-blue-soft);
    border: 1px solid #cdddf1;
    border-left: 4px solid var(--api-blue);
    border-radius: 8px;
    color: var(--api-ink);
}

/* ---- Vlaječky jazykových mutací ---- */
.api_index img.active { opacity: 1; outline: 2px solid var(--api-blue); border-radius: 3px; }

/* =========================================================================
   API – doplňkové komponenty (kroky, check-list, cena, chipy)
   ========================================================================= */

/* ---- Číslované kroky ---- */
.api_index ol.api-steps {
    list-style: none;
    counter-reset: api-step;
    margin: 0 0 24px;
    padding: 0;
}
.api_index ol.api-steps li {
    position: relative;
    counter-increment: api-step;
    margin-top: 0;
    padding: 3px 0 20px 54px;
    line-height: 1.6;
}
.api_index ol.api-steps li:last-child { padding-bottom: 0; }
.api_index ol.api-steps li::before {
    content: counter(api-step);
    position: absolute;
    left: 0;
    top: 0;
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--api-blue);
    color: #fff;
    font-weight: 700;
    border-radius: 50%;
}
.api_index ol.api-steps li:not(:last-child)::after {
    content: "";
    position: absolute;
    left: 16px;
    top: 40px;
    bottom: 8px;
    width: 2px;
    background: #dbe7f7;
}
.api-steps strong { color: var(--api-ink); }

/* ---- Check-list (co nabízíme / požadavky) ---- */
.api_index ul.api-check-list {
    list-style: none;
    margin: 0 0 22px;
    padding: 0;
}
.api_index ul.api-check-list li {
    position: relative;
    margin-top: 0;
    padding: 10px 0 10px 36px;
    line-height: 1.55;
    border-bottom: 1px solid #eef1f4;
}
.api_index ul.api-check-list li:last-child { border-bottom: 0; }
.api_index ul.api-check-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 9px;
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    color: var(--api-green);
    background: var(--api-green-bg);
    border-radius: 50%;
}

/* ---- Cena ---- */
.api-price-box {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 6px 14px;
    background: var(--api-blue-soft);
    border: 1px solid #cdddf1;
    border-left: 4px solid var(--api-blue);
    border-radius: 10px;
    padding: 18px 22px;
    margin: 8px 0 22px;
}
.api-price-box .api-price-box__label { color: var(--api-muted); font-size: 15px; }
.api-price-box .api-price-box__value { font-size: 26px; font-weight: 800; color: var(--api-blue); line-height: 1; }
.api-price-box .api-price-box__vat { color: var(--api-muted); font-size: 13px; }

/* ---- Chipy (formáty log) ---- */
.api-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 12px 0 0;
    padding: 0;
    list-style: none;
}
.api_index ul.api-chips li {
    margin-top: 0;
    padding: 0px 0px 0px 10px;
}
.api_index ul.api-chips li::before { content: none; }
.api-chip {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 11px 16px 11px 26px;
    background: var(--api-blue-soft);
    border: 1px solid #d8e4f3;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 600;
    color: var(--api-ink);
}
.api-chip small {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--api-blue);
    background: #fff;
    border: 1px solid #d8e4f3;
    padding: 5px 11px;
    border-radius: 999px;
}