/* Table of contents */

:root {
    --tg-schema-toc-background: #f2f2f2;
    --tg-schema-toc-link-color: #157edc;
}

.tg-schema-toc {
    background-color: var(--tg-schema-toc-background);
    padding: 30px 15px;
}

/* When is used as a hackbox */
.ib-pitem-marketing .tg-schema-toc {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
}

.tg-schema-toc-wrap {
    margin: 0 auto;
    width: 100%;
}

.tg-schema-toc-title {
    color: #333;
    display: inline;
    font-size: 18px;
    font-weight: 600;
}

.tg-schema-toc-toggle-text::before {
    content: ' [';
}

.tg-schema-toc-toggle-text::after {
    content: ']';
}

.tg-schema-toc-heading label {
    cursor: pointer;
}

.tg-schema-toc-toggle-text label {
    color: var(--tg-schema-toc-link-color);
}

.tg-schema-toc-toggle-icon {
    align-items: center;
    border-radius: 3px;
    border: 1px solid #333;
    display: inline-flex;
    height: 24px;
    justify-content: center;
    margin-left: 8px;
    width: 24px;
}

.tg-schema-toc-toggle-icon label::after {
    content: "\e904";
    font-family: "idx-icons";
    font-size: 12px;
    font-style: normal;
    font-variant: normal;
    font-weight: normal;
    speak: none;
    text-transform: none;
}

.tg-schema-toc-checkbox {
    display: none;
}

.tg-schema-toc-checkbox:not(:checked) + .tg-schema-toc-heading .tg-schema-toc-toggle-text label::after {
    content: 'hide';
}

.tg-schema-toc-checkbox:checked + .tg-schema-toc-heading .tg-schema-toc-toggle-text label::after {
    content: 'show';
}

.tg-schema-toc-checkbox:checked ~ ol,
.tg-schema-toc-checkbox:checked ~ ul {
    display: none;
}

.tg-schema-toc ol,
.tg-schema-toc ul {
    margin-left: 20px;
    margin-top: 20px;
}

.tg-schema-toc ol li {
    list-style: decimal;
}

.tg-schema-toc ul li {
    list-style: disc;
}

.tg-schema-toc li {
    font-size: 14px;
    margin: 0 0 8px 0;
    padding-left: 4px;
}

.tg-schema-toc a {
    color: var(--tg-schema-toc-link-color);
}

.tg-schema-toc a:hover,
.tg-schema-toc a:active {
    text-decoration: underline;
}