/* Standalone presentation layer for the static Confluence export. */
:root {
    color-scheme: light;
    --doc-text: #172b4d;
    --doc-text-subtle: #44546f;
    --doc-border: #dfe1e6;
    --doc-border-strong: #b7b9be;
    --doc-surface: #ffffff;
    --doc-surface-subtle: #f7f8f9;
    --doc-link: #0c66e4;
    --doc-link-hover: #0055cc;
    --doc-blue-subtle: #e9f2ff;
    --doc-blue-border: #85b8ff;
    --doc-yellow-subtle: #fff7d6;
    --doc-yellow-border: #e2b203;
    --doc-green-subtle: #dcfff1;
    --doc-red-subtle: #ffeceb;
    --doc-shadow: 0 1px 2px rgba(9, 30, 66, 0.12), 0 3px 8px rgba(9, 30, 66, 0.08);
}

* {
    box-sizing: border-box;
}

html {
    background: var(--doc-surface-subtle);
    font-size: 16px;
}

body.theme-default.aui-theme-default {
    min-width: 0;
    margin: 0;
    color: var(--doc-text);
    background: var(--doc-surface-subtle);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, "Helvetica Neue", Arial, sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.5;
    letter-spacing: normal;
}

#page {
    min-height: 100vh;
}

#main.aui-page-panel {
    display: block;
    width: min(1180px, calc(100% - 48px));
    min-height: calc(100vh - 112px);
    margin: 24px auto 0;
    padding: 0;
    overflow: hidden;
    background: var(--doc-surface);
    border: 1px solid var(--doc-border);
    border-radius: 8px;
    box-shadow: var(--doc-shadow);
}

#main-header {
    margin: 0;
    padding: 28px 40px 22px;
    background: var(--doc-surface);
    border-bottom: 1px solid var(--doc-border);
}

#breadcrumb-section {
    margin-bottom: 12px;
}

#breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin: 0;
    padding: 0;
    list-style: none;
}

#breadcrumbs li {
    display: flex;
    align-items: center;
    color: var(--doc-text-subtle);
    font-size: 13px;
}

#breadcrumbs li::before {
    content: "/";
    margin: 0 6px 0 2px;
    color: #8590a2;
}

#breadcrumbs li:first-child::before {
    display: none;
}

#title-heading,
#title-heading.pagetitle {
    margin: 0;
    color: var(--doc-text);
    font-size: clamp(25px, 3vw, 32px);
    font-weight: 600;
    line-height: 1.25;
    letter-spacing: -0.015em;
}

#title-text {
    color: inherit;
}

#content,
#content.view {
    display: block;
    padding: 28px 40px 44px;
}

#main-content.wiki-content {
    width: 100%;
    max-width: none;
    margin: 0;
    color: var(--doc-text);
    overflow-wrap: anywhere;
}

.page-metadata {
    margin: 0 0 26px;
    color: var(--doc-text-subtle);
    font-size: 12px;
}

a,
a:link,
a:visited {
    color: var(--doc-link);
    text-decoration: none;
}

a:hover,
a:focus-visible {
    color: var(--doc-link-hover);
    text-decoration: underline;
}

a:focus-visible {
    outline: 2px solid var(--doc-blue-border);
    outline-offset: 2px;
    border-radius: 2px;
}

p,
ul,
ol,
dl,
blockquote,
pre,
table,
.panel,
.confluence-information-macro {
    margin: 0 0 16px;
}

p:last-child,
li > p:last-child {
    margin-bottom: 0;
}

ul,
ol {
    padding-left: 28px;
}

li + li {
    margin-top: 6px;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--doc-text);
    font-weight: 600;
    line-height: 1.3;
}

#main-content h1 {
    margin: 34px 0 16px;
    font-size: 28px;
}

#main-content h2 {
    margin: 32px 0 14px;
    padding-bottom: 7px;
    font-size: 22px;
    border-bottom: 1px solid var(--doc-border);
}

#main-content h3 {
    margin: 26px 0 10px;
    font-size: 18px;
}

#main-content h4 {
    margin: 22px 0 8px;
    font-size: 16px;
}

#main-content > :first-child {
    margin-top: 0;
}

hr {
    height: 1px;
    margin: 28px 0;
    background: var(--doc-border);
    border: 0;
}

code,
pre,
.codeContent {
    font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", Menlo, monospace;
}

code {
    padding: 2px 4px;
    color: #403294;
    background: #f3f0ff;
    border-radius: 3px;
    font-size: 0.9em;
}

pre,
.codeContent {
    max-width: 100%;
    padding: 16px;
    overflow: auto;
    background: #f1f2f4;
    border: 1px solid var(--doc-border);
    border-radius: 6px;
    line-height: 1.45;
}

.table-wrap {
    width: 100%;
    margin: 18px 0 24px;
    overflow-x: auto;
    border: 1px solid var(--doc-border);
    border-radius: 6px;
}

table.confluenceTable {
    width: 100% !important;
    min-width: 620px;
    margin: 0;
    border: 0;
    border-collapse: collapse;
    table-layout: auto;
}

table.confluenceTable col {
    width: auto !important;
}

table.confluenceTable th.confluenceTh,
table.confluenceTable td.confluenceTd {
    min-width: 90px;
    padding: 10px 12px;
    color: var(--doc-text);
    vertical-align: top;
    background: var(--doc-surface);
    border: 0;
    border-right: 1px solid var(--doc-border);
    border-bottom: 1px solid var(--doc-border);
}

table.confluenceTable th.confluenceTh {
    background: var(--doc-surface-subtle);
    font-weight: 600;
    text-align: left;
}

table.confluenceTable tr:last-child > * {
    border-bottom: 0;
}

table.confluenceTable tr > *:last-child {
    border-right: 0;
}

table.confluenceTable p {
    margin: 0;
}

.confluence-information-macro,
.panel {
    position: relative;
    padding: 14px 16px 14px 46px;
    background: var(--doc-blue-subtle);
    border: 1px solid var(--doc-blue-border);
    border-radius: 6px;
}

.confluence-information-macro::before,
.panel::before {
    content: "i";
    position: absolute;
    top: 14px;
    left: 16px;
    display: grid;
    width: 20px;
    height: 20px;
    place-items: center;
    color: #ffffff;
    background: var(--doc-link);
    border-radius: 50%;
    font-size: 13px;
    font-weight: 700;
    font-style: normal;
}

.confluence-information-macro-note,
.confluence-information-macro-warning {
    background: var(--doc-yellow-subtle);
    border-color: var(--doc-yellow-border);
}

.confluence-information-macro-note::before,
.confluence-information-macro-warning::before {
    content: "!";
    background: #b38600;
}

.confluence-information-macro-tip {
    background: var(--doc-green-subtle);
    border-color: #7ee2b8;
}

.confluence-information-macro-tip::before {
    content: "✓";
    background: #1f845a;
}

.confluence-information-macro-icon {
    display: none !important;
}

.panelContent,
.confluence-information-macro-body {
    margin: 0;
    padding: 0;
}

.status-macro.aui-lozenge {
    display: inline-block;
    padding: 2px 7px;
    color: #44546f;
    background: #dcdfe4;
    border: 0;
    border-radius: 3px;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.45;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.status-macro.aui-lozenge-success {
    color: #216e4e;
    background: var(--doc-green-subtle);
}

.status-macro.aui-lozenge-error {
    color: #ae2e24;
    background: var(--doc-red-subtle);
}

.status-macro.aui-lozenge-progress,
.status-macro.aui-lozenge-complete {
    color: #0055cc;
    background: var(--doc-blue-subtle);
}

.confluence-embedded-file-wrapper {
    display: block;
    max-width: 100%;
    margin: 20px 0;
}

.confluence-embedded-file-wrapper.image-center-wrapper {
    text-align: center;
}

.confluence-embedded-image,
#main-content img:not(.emoticon) {
    width: auto;
    max-width: 100% !important;
    height: auto;
    border-radius: 4px;
}

.confluence-content-image-border {
    border: 1px solid var(--doc-border);
    box-shadow: 0 1px 3px rgba(9, 30, 66, 0.12);
}

.doc-video {
    width: min(100%, 900px);
    margin: 24px auto;
}

.doc-video video {
    display: block;
    width: 100%;
    max-height: 70vh;
    background: #101214;
    border: 1px solid var(--doc-border-strong);
    border-radius: 6px;
    box-shadow: var(--doc-shadow);
}

.doc-video figcaption {
    margin-top: 8px;
    color: var(--doc-text-subtle);
    font-size: 12px;
    text-align: center;
}

img[src^="https://berecom.atlassian.net/wiki/images/icons/bullet_blue"],
img[src^="https://berecom.atlassian.net/wiki/images/icons/contenttypes/home_page"] {
    display: none;
}

.emoticon {
    display: inline-grid;
    width: 18px;
    height: 18px;
    place-items: center;
    vertical-align: text-bottom;
    border-radius: 50%;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
}

.emoticon-tick {
    color: #ffffff;
    background: #1f845a;
}

.emoticon-warning {
    color: #172b4d;
    background: #f5cd47;
}

.pageSection {
    margin-top: 34px;
    padding-top: 24px;
    border-top: 1px solid var(--doc-border);
}

.pageSectionTitle {
    margin: 0 0 12px;
    color: var(--doc-text);
    font-size: 18px;
}

.greybox {
    padding: 14px 16px;
    background: var(--doc-surface-subtle);
    border: 1px solid var(--doc-border);
    border-radius: 6px;
    line-height: 1.8;
}

/* The exported index has one nested list per entry. Present it as a clear page tree. */
#content > .pageSection > ul {
    margin: 0;
    padding-left: 0;
    list-style: none;
}

#content > .pageSection ul ul {
    margin: 7px 0 0 8px;
    padding-left: 22px;
    border-left: 2px solid var(--doc-border);
    list-style: none;
}

#content > .pageSection li {
    margin: 6px 0;
}

#content > .pageSection li > a {
    display: inline-block;
    padding: 3px 6px;
    border-radius: 3px;
}

#content > .pageSection li > a:hover {
    background: var(--doc-blue-subtle);
}

#footer {
    margin: 0;
    padding: 24px;
    color: var(--doc-text-subtle);
    background: transparent;
    font-size: 12px;
    text-align: center;
}

#footer .footer-body,
#footer p {
    width: auto;
    margin: 0;
    padding: 0;
}

/* Shared documentation tree navigation. */
#main.aui-page-panel.doc-with-navigation {
    display: grid;
    grid-template-columns: 270px minmax(0, 1fr);
    grid-template-rows: auto 1fr;
    align-items: stretch;
}

.doc-with-navigation > .doc-sidebar {
    grid-row: 1 / -1;
    grid-column: 1;
}

.doc-with-navigation > #main-header {
    grid-row: 1;
    grid-column: 2;
}

.doc-with-navigation > #content {
    grid-row: 2;
    grid-column: 2;
    min-width: 0;
}

.doc-sidebar {
    position: relative;
    min-width: 0;
    background: var(--doc-surface-subtle);
    border-right: 1px solid var(--doc-border);
}

.doc-sidebar-body {
    position: sticky;
    top: 0;
    max-height: 100vh;
    padding: 24px 16px 28px;
    overflow-y: auto;
}

.doc-sidebar-brand {
    display: block;
    margin: 0 6px 20px;
    color: var(--doc-text) !important;
    font-size: 18px;
    font-weight: 650;
    letter-spacing: -0.01em;
}

.doc-navigation-search {
    display: block;
    margin: 0 4px 18px;
}

.doc-navigation-search > span {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.doc-navigation-search input {
    width: 100%;
    height: 34px;
    padding: 6px 10px;
    color: var(--doc-text);
    background: var(--doc-surface);
    border: 1px solid var(--doc-border-strong);
    border-radius: 4px;
    font: inherit;
}

.doc-navigation-search input:focus {
    border-color: var(--doc-link);
    outline: 2px solid var(--doc-blue-subtle);
}

.doc-navigation-tree ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.doc-navigation-tree ul ul {
    margin: 3px 0 8px 12px;
    padding-left: 10px;
    border-left: 1px solid var(--doc-border);
}

.doc-navigation-tree li,
.doc-navigation-tree li + li {
    margin: 1px 0;
}

.doc-navigation-tree li[hidden] {
    display: none;
}

.doc-navigation-tree a,
.doc-navigation-tree summary > span {
    display: block;
    padding: 6px 9px;
    color: var(--doc-text-subtle);
    border-radius: 4px;
    font-size: 13px;
    line-height: 1.35;
}

.doc-navigation-tree a:hover {
    color: var(--doc-link-hover);
    background: var(--doc-blue-subtle);
    text-decoration: none;
}

.doc-navigation-tree a.is-active {
    color: #0c66e4;
    background: #dbe9ff;
    font-weight: 600;
}

.doc-navigation-tree details {
    margin: 0;
}

.doc-navigation-tree summary {
    position: relative;
    padding-left: 16px;
    cursor: pointer;
    list-style: none;
}

.doc-navigation-tree summary::-webkit-details-marker {
    display: none;
}

.doc-navigation-tree summary::before {
    content: "›";
    position: absolute;
    top: 6px;
    left: 3px;
    color: #626f86;
    font-size: 16px;
    line-height: 18px;
    transform-origin: center;
    transition: transform 120ms ease;
}

.doc-navigation-tree details[open] > summary::before {
    transform: rotate(90deg);
}

.doc-navigation-tree summary > a,
.doc-navigation-tree summary > span {
    padding-left: 5px;
    font-weight: 600;
}

.doc-navigation-toggle {
    display: none;
}

/* Documentation homepage. */
.doc-homepage-header {
    padding-top: 44px;
    padding-bottom: 38px;
    background: linear-gradient(135deg, #ffffff 0%, #f4f8ff 62%, #e9f2ff 100%);
}

.doc-eyebrow {
    margin: 0 0 8px;
    color: #0c66e4;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.doc-homepage-lead {
    max-width: 760px;
    margin: 16px 0 0;
    color: var(--doc-text-subtle);
    font-size: 18px;
    line-height: 1.55;
}

.doc-homepage-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 26px;
}

.doc-primary-button,
.doc-secondary-button {
    display: inline-flex;
    min-height: 40px;
    align-items: center;
    justify-content: center;
    padding: 8px 16px;
    border: 1px solid transparent;
    border-radius: 4px;
    font-weight: 600;
}

.doc-primary-button,
.doc-primary-button:visited {
    color: #ffffff;
    background: #0c66e4;
}

.doc-primary-button:hover {
    color: #ffffff;
    background: #0055cc;
    text-decoration: none;
}

.doc-secondary-button,
.doc-secondary-button:visited {
    color: var(--doc-text);
    background: var(--doc-surface);
    border-color: var(--doc-border-strong);
}

.doc-secondary-button:hover {
    background: var(--doc-surface-subtle);
    text-decoration: none;
}

.doc-homepage-section {
    padding: 4px 0 36px;
}

.doc-homepage-section + .doc-homepage-section {
    padding-top: 34px;
    border-top: 1px solid var(--doc-border);
}

.doc-section-heading {
    max-width: 760px;
    margin-bottom: 22px;
}

.doc-section-heading h2 {
    margin: 0 0 8px;
    padding: 0;
    border: 0;
    font-size: 25px;
}

.doc-section-heading > p:last-child {
    color: var(--doc-text-subtle);
}

.doc-feature-grid,
.doc-guide-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.doc-feature-card {
    padding: 20px;
    background: var(--doc-surface-subtle);
    border: 1px solid var(--doc-border);
    border-radius: 6px;
}

.doc-feature-card h3 {
    margin: 0 0 8px;
    font-size: 16px;
}

.doc-feature-card p {
    color: var(--doc-text-subtle);
}

.doc-homepage-video {
    margin-right: 0;
    margin-left: 0;
}

.doc-guide-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.doc-guide-card,
.doc-guide-card:visited {
    display: flex;
    min-height: 112px;
    flex-direction: column;
    gap: 7px;
    padding: 18px 20px;
    color: var(--doc-text);
    background: var(--doc-surface);
    border: 1px solid var(--doc-border);
    border-radius: 6px;
    box-shadow: 0 1px 2px rgba(9, 30, 66, 0.08);
}

.doc-guide-card:hover {
    color: var(--doc-text);
    border-color: var(--doc-blue-border);
    box-shadow: var(--doc-shadow);
    text-decoration: none;
    transform: translateY(-1px);
}

.doc-guide-card strong {
    color: var(--doc-link);
    font-size: 16px;
}

.doc-guide-card span {
    color: var(--doc-text-subtle);
}

@media (max-width: 720px) {
    #main.aui-page-panel {
        width: 100%;
        min-height: calc(100vh - 64px);
        margin: 0;
        border-width: 0 0 1px;
        border-radius: 0;
        box-shadow: none;
    }

    #main-header,
    #content,
    #content.view {
        padding-right: 20px;
        padding-left: 20px;
    }

    #main-header {
        padding-top: 22px;
        padding-bottom: 18px;
    }

    #content,
    #content.view {
        padding-top: 22px;
        padding-bottom: 34px;
    }

    table.confluenceTable {
        min-width: 540px;
    }

    .confluence-information-macro,
    .panel {
        padding-right: 12px;
    }

    #main.aui-page-panel.doc-with-navigation {
        display: block;
    }

    .doc-sidebar {
        border-right: 0;
        border-bottom: 1px solid var(--doc-border);
    }

    .doc-navigation-toggle {
        display: flex;
        width: 100%;
        min-height: 46px;
        align-items: center;
        justify-content: space-between;
        padding: 10px 20px;
        color: var(--doc-text);
        background: var(--doc-surface-subtle);
        border: 0;
        font: inherit;
        font-weight: 600;
        cursor: pointer;
    }

    .doc-navigation-toggle::after {
        content: "⌄";
        font-size: 18px;
    }

    .doc-sidebar-body {
        display: none;
        position: static;
        max-height: min(70vh, 600px);
        padding-top: 12px;
        border-top: 1px solid var(--doc-border);
    }

    .doc-sidebar.is-open .doc-sidebar-body {
        display: block;
    }

    .doc-feature-grid,
    .doc-guide-grid {
        grid-template-columns: 1fr;
    }

    .doc-homepage-header {
        padding-top: 30px;
        padding-bottom: 28px;
    }

    .doc-homepage-lead {
        font-size: 16px;
    }
}

@media print {
    html,
    body.theme-default.aui-theme-default {
        background: #ffffff;
    }

    #main.aui-page-panel {
        width: 100%;
        min-height: auto;
        margin: 0;
        border: 0;
        box-shadow: none;
    }

    a,
    a:visited {
        color: inherit;
    }

    .table-wrap {
        overflow: visible;
    }

    .doc-with-navigation > .doc-sidebar {
        display: none;
    }

    #main.aui-page-panel.doc-with-navigation {
        display: block;
    }
}
