@font-face {
    font-family: "Panton";
    src: url("/static/fonts/Decta/Panton-Light.woff2") format("woff2");
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Panton";
    src: url("/static/fonts/Decta/Panton.woff2") format("woff2");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Panton";
    src: url("/static/fonts/Decta/Panton-Bold.woff2") format("woff2");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

html, body {
    font-family: "Panton", Arial, sans-serif;
    {# height: 100%; #}
    margin: 0;
    -webkit-font-smoothing: antialiased !important;
    -moz-osx-font-smoothing: grayscale !important;
    text-rendering: geometricPrecision !important;
}

body {
    padding: 0;
    background: #fff;
    overflow-y: hidden;
    font-weight: 400;
}

h1, h2, h3, h4, h5, h6 {
    color: #4CA5FB !important;
    font-weight: 700 !important;
}

{# Header #}
.top-app-bar {
    box-sizing: border-box;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 0px 24px;
    height: 64px;
    background: rgba(255, 255, 255, 0.8);
    border-bottom: 1px solid #E2E8F0;
    box-shadow: 0px 1px 2px rgba(0, 0, 0, 0.05);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 9999;
}

.header-logo-text {
    font-family: 'Panton', sans-serif;
    font-weight: 600;
    font-size: 14px;
    line-height: 14px;
    letter-spacing: 0.3px;
    color: #5B6775;
}

.btn-signin {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 8px 16px;
    height: 36px;
    background: linear-gradient(90.36deg, #4CA5FB 21.97%, #A685F3 76.97%);
    border-radius: 4px;
    border: none;
    font-family: 'Panton', sans-serif;
    font-weight: 700;
    font-size: 14px;
    line-height: 20px;
    color: #FFFFFF;
    text-decoration: none;
    transition: opacity 0.2s ease-in-out;
}

.btn-signin:hover {
    color: #FFFFFF;
    opacity: 0.9;
}

{# Sidebar Wrapper #}
.sidebar-wrapper {
    box-sizing: border-box;
    width: 256px !important;
    min-width: 256px !important;
    max-width: 256px !important;
    flex-shrink: 0 !important;
    display: flex;
    flex-direction: column;
    padding: 16px 0px 8px 0px !important;
    background: rgba(200, 224, 241, 0.1) !important;
    border-right: 1px solid #E2E8F0 !important;
    position: fixed;
    top: 64px;
    height: calc(100vh - 64px);
    overflow: visible;
    z-index: 9000;
}

.sidebar-scroll-area {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-gutter: stable;
    scrollbar-width: thin;
    scrollbar-color: #CBD5E1 transparent;
}


.sidebar-bottom-pinned {
    position: relative;
    z-index: 10;
    padding-top: 16px;
    border-top: 1px solid #E2E8F0;
    box-shadow: 0 -6px 12px -6px rgba(0, 0, 0, 0.05);
}

[data-theme="dark"] .sidebar-bottom-pinned {
    border-top-color: var(--border-color);
    box-shadow: 0 -6px 12px -6px rgba(0, 0, 0, 0.2);
}

.sidebar-scroll-area::-webkit-scrollbar { width: 4px; }
.sidebar-scroll-area::-webkit-scrollbar-track { background: transparent; }
.sidebar-scroll-area::-webkit-scrollbar-thumb { background: #E2E8F0; border-radius: 4px; }
.sidebar-scroll-area::-webkit-scrollbar-thumb:hover { background: #A0AEC0; }

[data-theme="dark"] .sidebar-scroll-area { scrollbar-color: #334155 transparent; }
[data-theme="dark"] .sidebar-scroll-area::-webkit-scrollbar-thumb { background: #334155; }
[data-theme="dark"] .sidebar-scroll-area::-webkit-scrollbar-thumb:hover { background: #475569; }

.main-content {
    margin-left: 256px;
    height: calc(100vh - 64px);
    overflow-y: auto;
    background-color: #FAFCFF;
    padding: 32px 48px;
    box-sizing: border-box;

    display: flex;
    flex-direction: column;

    scrollbar-width: thin;
    scrollbar-color: #CBD5E1 transparent;
}

.main-content::-webkit-scrollbar {
    width: 4px;
    height: 4px;
}

.main-content::-webkit-scrollbar-track {
    background: transparent;
}

.main-content::-webkit-scrollbar-thumb {
    background: #E2E8F0;
    border-radius: 4px;
}

.main-content::-webkit-scrollbar-thumb:hover {
    background: #A0AEC0;
}

{# Dark theme scrollbar for main content #}
[data-theme="dark"] .main-content {
    scrollbar-color: #334155 transparent;
}

[data-theme="dark"] .main-content::-webkit-scrollbar-thumb {
    background: #334155;
}

[data-theme="dark"] .main-content::-webkit-scrollbar-thumb:hover {
    background: #475569;
}

.main-content p {
    text-align: justify;
    hyphens: auto;
    -webkit-hyphens: auto;
}

.main-content img {
    max-width: 100% !important;
    max-height: 400px !important;
    width: auto !important;
    height: auto !important;
    display: block !important;
    margin: 24px auto !important;
    border-radius: 8px;
    object-fit: contain;
}

{# Sidebar Headings (Documentation, API Schemas) #}
.sidebar-heading {
    font-family: 'Panton', sans-serif;
    color: #5B6775 !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    margin-top: 16px;
    margin-bottom: 8px !important;
    padding: 0 16px !important;
}

{# Sidebar Links #}
.sidebar-wrapper .nav-link {
    color: #5B6775;
    font-family: 'Panton', sans-serif;
    font-weight: 500;
    font-size: 14px;
    display: flex;
    align-items: center;

    min-height: 40px;
    height: auto;
    line-height: 1.4;
    padding: 8px 16px !important;

    margin: 0 8px;
    border-radius: 8px;
    text-decoration: none;
}

.sidebar-wrapper .nav-link:hover {
    background-color: rgba(200, 224, 241, 0.3);
}

{# Icons #}
.sidebar-icon {
    width: 20px;
    height: 20px;
    margin-right: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sidebar-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.gradient-text-title {
    font-family: 'Panton', sans-serif;
    font-weight: 700;
    font-size: 40px !important;
    line-height: 48px !important;

    background-image: linear-gradient(90.36deg, #4CA5FB 21.97%, #A685F3 76.97%);

    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;

    display: inline-block;
    margin-bottom: 8px !important;
}

.sidebar-wrapper .nav-link.active {
    background-color: #E7F0FF !important;
    color: #8B8DF2 !important;
    font-weight: 600;
}

.sidebar-wrapper .nav-link.active .sidebar-icon {
    color: #8B8DF2 !important;
}

.sidebar-wrapper .collapse .nav-link,
.sidebar-wrapper .collapsing .nav-link {
    font-size: 13px;
    color: #718096;

    min-height: 32px;
    height: auto;
    line-height: 1.4 !important;
    padding: 6px 16px 6px 48px !important;

    margin: 0 8px;
    white-space: normal !important;
    word-break: break-word !important;
}

.sidebar-wrapper .collapse .nav-link.active,
.sidebar-wrapper .collapsing .nav-link.active {
    background-color: transparent !important;
    color: #8B8DF2 !important;
    font-weight: 600;
}


.sidebar-wrapper [data-bs-toggle="collapse"] .dropdown-arrow {
    display: inline-block;
    transition: transform 0.3s ease-in-out;
    font-size: 0.6rem;
    color: #8BA8D0;
}

.sidebar-wrapper [aria-expanded="true"] .dropdown-arrow {
    transform: rotate(180deg);
}

.dashboard-subtitle {
    font-family: 'Panton', sans-serif;
    font-weight: 400;
    font-style: normal;
    font-size: 18px;
    line-height: 24px;
    letter-spacing: 0.03em;
    color: #5B6775;
    margin-bottom: 32px;
}

.help-heading {
    font-family: 'Panton', sans-serif;
    font-weight: 500;
    font-size: 24px;
    color: #5B6775;
    margin-top: 48px;
    margin-bottom: 24px;
}

.login-card {
    width: 100%;
    max-width: 440px;
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 24px;
    padding: 48px;
    box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.02);
}

.login-title {
    font-family: 'Panton', sans-serif;
    font-weight: 700;
    font-size: 32px;
    text-align: center;
    margin-bottom: 32px;
    background-image: linear-gradient(90.36deg, #4CA5FB 21.97%, #A685F3 76.97%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.login-label {
    font-family: 'Panton', sans-serif;
    font-weight: 600;
    font-size: 14px;
    color: #5B6775;
    margin-bottom: 8px;
    display: block;
}

.login-input {
    width: 100%;
    height: 48px;
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 8px;
    padding: 0 16px;
    font-family: 'Panton', sans-serif;
    font-size: 14px;
    color: #3c4043;
    outline: none;
    transition: border-color 0.2s ease-in-out;
}

.login-input:focus {
    border-color: #8B8DF2;
}

.login-input::placeholder {
    color: #A0AEC0;
}

.btn-login-submit {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 48px;
    background: linear-gradient(90.36deg, #4CA5FB 21.97%, #A685F3 76.97%);
    border-radius: 8px;
    border: none;
    font-family: 'Panton', sans-serif;
    font-weight: 700;
    font-size: 14px;
    color: #FFFFFF;
    text-decoration: none;
    transition: opacity 0.2s ease-in-out;
    margin-top: 24px;
}

.btn-login-submit:hover {
    opacity: 0.9;
    color: white;
}

.login-back-link {
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: 'Panton', sans-serif;
    font-weight: 500;
    font-size: 14px;
    color: #4CA5FB;
    text-decoration: underline;
    margin-top: 24px;
    transition: color 0.2s ease-in-out;
}

.login-back-link:hover {
    color: #A685F3;
}

.login-back-icon {
    margin-right: 8px;
}

.api-header-panel {
    background-color: #FAFCFF !important;
}

.api-header-panel .btn-outline-primary {
    border-color: #8BA8D0;
    color: #5B6775;
    font-family: 'Panton', sans-serif;
    font-weight: 600;
    font-size: 13px;
}

.api-header-panel .btn-outline-primary:hover {
    background-color: #E7F0FF;
    color: #8B8DF2;
    border-color: #8BA8D0;
}

.api-header-panel .btn-outline-primary.active-toggle,
.api-header-panel .btn-outline-primary:active {
    background-color: #8B8DF2 !important;
    color: #FFFFFF !important;
    border-color: #8B8DF2 !important;
}

.doc-card {
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 16px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.doc-card:hover {
    transform: translateY(-4px);
    box-shadow: 0px 10px 20px rgba(0, 0, 0, 0.05);
}

.btn-link {
    color: #4CA5FB;
    font-weight: 600;
    text-decoration: none;
}

.sidebar-wrapper .dropdown-arrow {
    flex-shrink: 0;
    margin-left: 8px;
}

.mkdocs-content table {
    display: block !important;
    width: 100% !important;
    overflow-x: auto !important;
    border-collapse: collapse !important;
    background-color: transparent !important;
    margin-top: 16px;
    margin-bottom: 32px;
}

.mkdocs-content table th,
.mkdocs-content table td {
    padding: 12px 16px !important;
    border: 1px solid #E2E8F0 !important;
    border-bottom: 1px solid #E2E8F0 !important;
    color: #5B6775;
    font-size: 14px;
    background-color: transparent !important;
    vertical-align: top;
}

.mkdocs-content table th {
    font-family: 'Panton', sans-serif;
    font-weight: 600 !important;
    color: #2D3748 !important;
    border-bottom: 2px solid #8BA8D0 !important;
    white-space: nowrap;
}

.mkdocs-content table tbody tr:hover td {
    background-color: rgba(139, 141, 242, 0.05) !important;
}

.mkdocs-content .linenos,
.mkdocs-content .lineno {
    display: none !important;
}

.mkdocs-content .highlighttable,
.mkdocs-content .highlighttable tbody,
.mkdocs-content .highlighttable tr,
.mkdocs-content .highlighttable td.code {
    display: block !important;
    width: 100% !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
    background: transparent !important;
}

.mkdocs-content pre {
    background-color: #F4F5F7 !important;
    padding: 20px !important;
    border-radius: 6px !important;
    border: none !important;
    margin-top: 16px;
    margin-bottom: 24px;
    overflow-x: auto;
    color: #172B4D !important;
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    font-size: 13.5px;
    line-height: 1.6;
    box-shadow: none !important;
}

.mkdocs-content pre code {
    background-color: transparent !important;
    color: inherit !important;
    padding: 0 !important;
    border: none !important;
}

.mkdocs-content p code,
.mkdocs-content li code,
.mkdocs-content table code {
    background-color: #F4F5F7;
    color: #D53F8C;
    padding: 3px 6px;
    border-radius: 4px;
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 0.9em;
}

.mobile-overlay {
    display: none;
    position: fixed;
    top: 64px;
    left: 0;
    width: 100vw;
    height: calc(100vh - 64px);
    background: rgba(0, 0, 0, 0.4);
    z-index: 9000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-overlay.show {
    display: block;
    opacity: 1;
}

.pdf-download-wrapper {
    margin-bottom: 24px;
    margin-top: -8px;
}

.pdf-download-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #4CA5FB;
    font-family: 'Panton', sans-serif;
    font-weight: 500;
    font-size: 14px;
    text-decoration: none;
    border-bottom: 1px solid #4CA5FB;
    padding-bottom: 2px;
    transition: opacity 0.2s;
}

.pdf-download-btn:hover {
    opacity: 0.7;
    color: #4CA5FB;
}

{# Banner "Coming Soon" #}
.coming-soon-banner {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background-color: #3a9cf2;
    color: #ffffff;
    font-family: 'Panton', sans-serif;
    font-size: 14px;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 8px;
    vertical-align: middle;
    margin-left: 12px;
    text-transform: none;
    letter-spacing: normal;
    box-shadow: 0 2px 4px rgba(58, 156, 242, 0.2);
}

.coming-soon-banner i {
    font-size: 14px;
    display: flex;
    align-items: center;
}

.coming-soon-cta-box {
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    border-left: 4px solid #8b8df2;
    border-radius: 12px;
    padding: 18px 28px 28px 28px;
    margin: 30px 0;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.01);
}

.coming-soon-badge-new {
    display: inline-block;
    background-color: rgba(139, 141, 242, 0.1);
    color: #8b8df2;
    font-family: 'Panton', sans-serif;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 14px;
}

.coming-soon-title {
    font-family: 'Panton', sans-serif !important;
    font-size: 20px !important;
    font-weight: 700 !important;
    color: #1e293b !important;
    margin: 0 0 10px 0 !important;
}

.coming-soon-desc {
    font-size: 15px;
    color: #475569;
    line-height: 1.6;
    margin: 0 !important;
}

.coming-soon-desc strong {
    color: #0f172a;
}

.banner-default {
    background-color: rgba(139, 141, 242, 0.1);
    border: 1px solid rgba(139, 141, 242, 0.4);
    color: #8B8DF2;
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
    vertical-align: middle;
    margin-left: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-block;
}

{# infoBox -> (!) #}
.infoBox,
p:has(span.fe-alert-circle) {
    background-color: #F8FAFC;
    border: 1px solid #E2E8F0;
    border-left: 4px solid #4CA5FB;
    border-radius: 6px;
    padding: 16px 16px 16px 48px;
    margin: 20px 0;
    color: #5B6775;
    font-size: 14.5px;
    line-height: 1.6;
    position: relative;
}

.infoBox::before,
p:has(span.fe-alert-circle)::before {
    content: "";
    position: absolute;
    left: 16px;
    top: 16px;
    width: 20px;
    height: 20px;
    background-image: url('/static/img/info-icon.svg');
    background-size: 100% 100%;
    background-repeat: no-repeat;
}

.infoBox span.fe,
.infoBox i.fe,
p:has(span.fe-alert-circle) span.fe {
    display: none !important;
}

.dropdown-chevron {
    flex-shrink: 0 !important;
    min-width: 14px;
    margin-left: 8px;
    transition: transform 0.3s ease;
}

.modern-search {
    display: flex;
    align-items: center;
    background: #F8FAFC;
    border: 1px solid #E2E8F0;
    border-radius: 8px;
    padding: 8px 16px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.search-result-item.active-item {
    background-color: rgba(139, 141, 242, 0.08) !important;
    outline: none;
}

.modern-search:focus-within {
    border-color: #8B8DF2;
    box-shadow: 0 0 0 3px rgba(139, 141, 242, 0.1);
    background: #FFFFFF;
}

.modern-search .search-input {
    border: none;
    outline: none;
    background: transparent;
    width: 100%;
    font-family: 'Panton', sans-serif;
    font-size: 15px;
    color: #3c4043;
    margin-left: 12px;
}

.modern-search .search-input::placeholder {
    color: #A0AEC0;
}

.search-shortcut {
    font-family: inherit;
    font-size: 12px;
    font-weight: 600;
    color: #8BA8D0;
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 4px;
    padding: 2px 6px;
    margin-left: 12px;
    pointer-events: none;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    white-space: nowrap;
    flex-shrink: 0;
}

.search-results-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    width: 100%;
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 8px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04) !important;
    max-height: 320px;
    overflow-y: auto;
    z-index: 1000;
}

.search-result-item {
    padding: 8px 16px;
    border-bottom: 1px solid #F1F5F9;
    cursor: pointer;
    text-decoration: none;
    display: block;
    transition: background-color 0.15s ease;
}

.search-result-item:last-child {
    border-bottom: none;
}

.search-result-item:hover {
    background-color: #F8FAFC;
}

.search-result-title {
    font-family: 'Panton', sans-serif;
    font-weight: 600;
    color: #8B8DF2;
    font-size: 14px;
    margin-bottom: 2px;
}

.search-project-badge {
    font-size: 10px;
    background: #E2E8F0;
    color: #5B6775;
    padding: 2px 6px;
    border-radius: 4px;
    margin-right: 8px;
    vertical-align: middle;
    font-weight: 700;
}

.search-project-badge.badge-dapi {
    background-color: #E7F0FF !important;
    color: #4CA5FB !important;
}

.search-project-badge.badge-soap {
    background-color: #FCE7F3 !important;
    color: #D53F8C !important;
}

.search-result-snippet {
    font-size: 12px;
    color: #718096;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.search-empty {
    padding: 16px;
    color: #A0AEC0;
    text-align: center;
    font-size: 13px;
}

.search-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(15, 23, 42, 0.4);
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    pointer-events: none;
}

.search-backdrop.show {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}


.header-logo {
    width: 144.4px;
}

@media (min-width: 992px) {
    .header-side {
        flex: 0 0 256px;
    }

    .search-results-dropdown {
        top: calc(100% + 8px);
        width: 100%;
    }

    .top-app-bar > .flex-grow-1 {
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .modern-search {
        width: 100%;
        max-width: 480px;
        margin: 0 auto;
        align-items: center !important;
    }

    .top-app-bar > div:last-child {
        flex: 0 0 256px;
        display: flex;
        justify-content: flex-end;
    }
}

.header-logo-hub {
    margin-left: -10px !important;
}

@media (max-width: 991.98px) {
    .sidebar-wrapper {
        transform: translateX(-100%);
        transition: transform 0.3s ease-in-out;
        z-index: 9998;
        background: #FFFFFF !important;
        box-shadow: 4px 0 15px rgba(0, 0, 0, 0.05);
    }

    .sidebar-wrapper.mobile-open {
        transform: translateX(0);
    }

    .main-content {
        margin-left: 0 !important;
        padding: 24px 16px !important;
    }

    .d-none.d-lg-block {
        display: none !important;
    }

    .top-app-bar > div:first-child,
    .top-app-bar > div:last-child {
        flex: 0 0 auto !important;
    }

    .top-app-bar > div:last-child {
        display: none !important;
    }

    .top-app-bar .flex-grow-1 {
        justify-content: flex-end !important;
        margin-right: 0 !important;
    }

    .modern-search {
        max-width: 480px !important;
        width: 100%;
        background: #FFFFFF;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
        margin: 0 auto !important;
        align-items: center !important;
    }

    .search-results-dropdown {
        position: absolute !important;
        top: calc(100% + 8px) !important;
        left: 16px !important;
        right: 16px !important;
        width: calc(100% - 32px) !important;
        max-height: calc(100vh - 140px) !important;
        margin-top: 0;
        z-index: 10006;
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15) !important;
    }

    .search-bar-mobile-adaptive {
        position: absolute;
        top: 64px;
        left: 0;
        right: 0;
        margin: 0 auto;
        width: 100% !important;
        padding: 12px 16px;
        background: transparent;

        display: flex;
        align-items: center !important;
        justify-content: center;

        opacity: 0;
        visibility: hidden;
        transform: translateY(-10px);
        transition: all 0.3s ease;
        z-index: 10005;
        pointer-events: none;
    }

    .search-bar-mobile-adaptive.is-active {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
        pointer-events: auto;
    }
}

@media (max-width: 575.98px) {
    .top-app-bar {
        padding: 0 12px !important;
        gap: 30px;
    }

    .modern-search {
        max-width: none;
        width: 100%;
        padding: 8px 12px;
    }

    .header-logo {
        width: 95px !important;
    }

    .modern-search .search-input {
        font-size: 16px !important;
    }
}

.doc-schema-title {
    text-align: center;
    font-style: italic;
}

.faq-details {
    margin-bottom: 12px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #fff;
    overflow: hidden;
    transition: height 0.3s ease;
    display: flow-root;
}

.faq-summary {
    padding: 16px 20px;
    cursor: pointer;
    font-weight: 600;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-summary::-webkit-details-marker {
    display: none;
}

.faq-details[open] .faq-summary::after {
    transform: rotate(45deg);
}

.faq-content {
    padding: 0 20px 20px 20px;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

{# Эффект схлопывания при закрытии #}
.faq-details.is-closing .faq-content {
    animation: fadeOut 0.3s ease forwards;
}

@keyframes fadeOut {
    to {
        opacity: 0;
        transform: translateY(-10px);
    }
}

{# Markdown table #}
.modern-table-wrapper {
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 12px;
    margin-bottom: 32px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);

    display: inline-block;
    max-width: 100%;
    overflow-x: auto;
    margin-top: 4px;
}

.modern-table {
    width: auto;
    border-collapse: collapse;
    text-align: center;
    margin: 0 !important;
}

.modern-table th {
    background-color: #F8FAFC !important;
    color: #2D3748 !important;
    font-family: 'Panton', sans-serif;
    padding: 16px !important;
    border-bottom: 1px solid #E2E8F0 !important;
    vertical-align: middle;
    white-space: nowrap;
}

.modern-table td {
    padding: 16px !important;
    color: #5B6775;
    font-size: 14px;
    border-bottom: 1px solid #E2E8F0 !important;
    vertical-align: middle;
}

.modern-table tbody tr:last-child td {
    border-bottom: none !important;
}

.modern-table tbody tr:hover td {
    background-color: rgba(139, 141, 242, 0.05) !important;
}

.modern-table .col-events {
    text-align: left;
    font-weight: 500;
    color: #2D3748;
}

.modern-table .border-right {
    border-right: 1px solid #E2E8F0 !important;
}

.icon-check::before {
    content: "";
    display: inline-block;
    width: 18px;
    height: 18px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234CA5FB' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    vertical-align: middle;
}

.modern-table .text-left {
    text-align: left !important;
}

.modern-table .cell-desc {
    text-align: left !important;
    line-height: 1.6;
}

.modern-table .cell-code {
    font-family: monospace;
    font-size: 14px;
}

.modern-table th {
    font-size: 14px;
    font-weight: 700;
}

.modern-table th.col-events {
    font-size: 15px;
}

{# Утилиты для ширины колонок #}
.w-10 {
    width: 10%;
}

.w-15 {
    width: 15%;
}

.w-20 {
    width: 20%;
}

.w-25 {
    width: 25%;
}

.w-35 {
    width: 35%;
}

.w-50 {
    width: 50%;
}

.w-100 {
    width: 100%;
}

.modern-table th.th-sub {
    font-size: 13px;
    font-weight: 600;
    color: #718096;
}

{# SIDEBAR COLLAPSED STATE ДЛЯ ДЕСКТОПА #}

@media (min-width: 992px) {
    .sidebar-wrapper {
        transition: width 0.5s ease, min-width 0.5s ease, max-width 0.5s ease, transform 0.5s ease-in-out !important;
        overflow-x: visible;
    }

    .main-content {
        transition: margin-left 0.5s ease !important;
    }

    .sidebar-wrapper .nav-link,
    .sidebar-wrapper .sidebar-heading,
    .sidebar-wrapper .nav-link > div {
        white-space: nowrap !important;
        overflow: hidden !important;
    }

    html.is-collapsed .sidebar-wrapper {
        width: 72px !important;
        min-width: 72px !important;
        max-width: 72px !important;

        overflow-y: hidden !important;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    html.is-collapsed .main-content {
        margin-left: 72px !important;
    }

    html.is-collapsed .sidebar-heading,
    html.is-collapsed .sidebar-wrapper .dropdown-chevron,
    html.is-collapsed .sidebar-wrapper .collapse {
        display: none !important;
    }

    html.is-collapsed .sidebar-header {
        justify-content: center !important;
        padding: 0 !important;
        margin-top: 0 !important;
    }

    html.is-collapsed .sidebar-wrapper .nav {
        align-items: center !important;
        padding: 0 !important;
    }

    html.is-collapsed .sidebar-wrapper .nav-item {
        width: 100% !important;
        display: flex !important;
        justify-content: center !important;
    }

    html.is-collapsed .sidebar-wrapper .nav-link {
        font-size: 0 !important;
        width: 44px !important;
        height: 44px !important;
        min-height: 44px !important;
        padding: 0 !important;
        margin: 0 auto 8px auto !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        border-radius: 12px !important;
    }

    html.is-collapsed .sidebar-wrapper .nav-link > div {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: auto !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    html.is-collapsed .sidebar-icon {
        margin: 0 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    html.is-collapsed .sidebar-footer .nav-link {
        font-size: 0 !important;
        width: 40px !important;
        height: 40px !important;
        min-height: 40px !important;
        padding: 0 !important;
        margin: 0 auto 4px auto !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        border-radius: 10px !important;
    }

    html.is-collapsed .sidebar-header .sidebar-cta-button {
        display: none !important;
    }
}

{# Контейнер кнопки сайдбара #}
.sidebar-header {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    position: relative;

    width: 100%;
    min-height: 48px;
    padding: 0 20px;

    margin: 0 0 12px 0 !important;

    flex-shrink: 0;
    transition: all 0.5s ease-in-out;
}

{# Button #}
.sidebar-toggle-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;

    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 8px;
    color: #718096;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
    transition: all 0.5s ease, transform 0.5s ease;

    position: absolute;
    right: -18px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 9999;
}

.sidebar-toggle-btn:hover {
    background: #F8FAFC;
    color: #4CA5FB;
    border-color: #8BA8D0;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.sidebar-toggle-btn svg {
    transition: transform 0.5s ease;
    display: block;
}

html.is-collapsed .sidebar-toggle-btn svg {
    transform: rotate(180deg);
}

html.is-collapsed .sidebar-toggle-btn {
    right: 18px !important;
}

{# Темная тема #}
[data-theme="dark"] .sidebar-toggle-btn {
    background: #1e293b;
    border-color: #334155;
    color: #94a3b8;
}

[data-theme="dark"] .sidebar-toggle-btn:hover {
    background: #334155;
    color: #8B8DF2;
    border-color: #475569;
}

{# Pygments code highlight #}
.highlight .k {
    color: #008000;
    font-weight: bold;
}

{# Keyword #}
.highlight .kn {
    color: #008000;
    font-weight: bold;
}

{# Keyword.Namespace #}
.highlight .nn {
    color: #0000FF;
    font-weight: bold;
}

{# Name.Namespace #}
.highlight .s, .highlight .s1, .highlight .s2 {
    color: #2E8B57;
}

.highlight .c1 {
    color: #408080;
    font-style: italic;
}

{# Comment.Single #}
.highlight .o {
    color: #666666;
}

{# Operator #}
.highlight .nb {
    color: #953800;
}

{# Name.Builtin #}
.highlight .p {
    color: #333333;
}

{# Punctuation #}
.highlight .fm {
    color: #0000FF;
}

{# Function Name #}
.highlight .mi {
    color: #666666;
}

{# Number.Integer #}
.highlight .nt {
    color: #BA2121;
}

.highlight .na {
    color: #2F7AE5;
    font-weight: 400;
}

.highlight .cm {
    color: #94A3B8;
    font-style: italic;
}

.highlight .n, .highlight .nd {
    color: #24292F;
}

.highlight .si {
    color: #24292F;
}

{# Terms and Conditions / Privacy Policy #}

:root {
    --policy-primary-color: #2c3e50;
    --policy-accent-color: #3498db;
    --policy-bg-color: #f8fafc;
    --policy-text-color: #334155;
    --policy-border-color: #e2e8f0;
    --policy-header-bg: #1e293b;
    --policy-container-bg: #ffffff;
    --policy-stripe-bg: #f1f5f9;
}

[data-theme="dark"] {
    --policy-primary-color: #e2e8f0;
    --policy-accent-color: #3498db;
    --policy-bg-color: #0f172a;
    --policy-text-color: #cbd5e1;
    --policy-border-color: #334155;
    --policy-header-bg: #0f172a;
    --policy-container-bg: #1e293b;
    --policy-stripe-bg: rgba(0, 0, 0, 0.2);
}

.policy-container {
    max-width: 850px;
    margin: 40px auto;
    background: var(--policy-container-bg);
    color: var(--policy-text-color);
    padding: 40px 60px;
    border-radius: 8px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    transition: background-color 0.3s ease, color 0.3s ease;
}

.policy-container header {
    border-bottom: 2px solid var(--policy-border-color);
    margin-bottom: 30px;
    padding-bottom: 20px;
}

.policy-container h1 {
    color: var(--policy-primary-color);
    font-size: 28px;
    margin: 0 0 10px 0;
}

.policy-container .last-updated {
    font-size: 0.9em;
    color: #64748b;
    font-style: italic;
}

.policy-container h2 {
    color: var(--policy-primary-color);
    border-left: 4px solid var(--policy-accent-color);
    padding-left: 15px;
    margin-top: 40px;
    font-size: 20px;
}

.policy-container h3 {
    color: #475569;
    font-size: 17px;
    margin-top: 25px;
}

.policy-container p {
    margin-bottom: 15px;
}

.policy-container ul {
    padding-left: 20px;
    margin-bottom: 20px;
}

.policy-container li {
    margin-bottom: 8px;
}

.policy-container table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    font-size: 0.95em;
}

.policy-container th {
    background-color: var(--policy-header-bg);
    color: #ffffff;
    text-align: left;
    padding: 12px;
}

.policy-container td {
    border-bottom: 1px solid var(--policy-border-color);
    padding: 12px;
}

.policy-container tr:nth-child(even) {
    background-color: var(--policy-stripe-bg);
}

.policy-container .highlight-box {
    background-color: #f0f9ff;
    border: 1px solid #bae6fd;
    padding: 20px;
    border-radius: 6px;
    margin: 20px 0;
}

.policy-container .footer-note {
    margin-top: 50px;
    padding-top: 20px;
    border-top: 1px solid var(--policy-border-color);
    font-size: 0.85em;
    color: #94a3b8;
    text-align: center;
}

@media (max-width: 600px) {
    .policy-container {
        margin: 0;
        padding: 20px;
        border-radius: 0;
    }
}

html.is-animating .main-content {
    overflow-x: hidden !important;
}

html.is-collapsed .sidebar-scroll-area {
    overflow: hidden !important;
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
}

html.is-collapsed .sidebar-scroll-area::-webkit-scrollbar {
    display: none !important;
}

html.is-collapsed .sidebar-cta-item {
    margin: 0 auto 16px auto !important;
    padding: 0 !important;
    width: 100%;
    display: flex;
    justify-content: center;
}

html.is-collapsed .sidebar-cta-item p {
    display: none !important;
}

html.is-collapsed .sidebar-cta-button {
    font-size: 0 !important;
    width: 44px !important;
    height: 44px !important;
    min-height: 44px !important;
    padding: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 12px !important;
    gap: 0 !important;
}

html.is-collapsed .sidebar-cta-button svg {
    margin: 0 !important;
    width: 20px;
    height: 20px;
}

{# Unified Hub Footer Layout & Theme #}
.hub-footer {
    margin: auto -48px -32px -48px;
    padding: 32px 48px 24px 48px;

    background-color: rgba(15, 23, 42, 0.02);
    border-top: 1px solid var(--border-color);
}

[data-theme="dark"] .hub-footer {
    background-color: rgb(30 41 59);
}

.hub-footer-logos img {
    height: 50px !important;
    width: auto !important;
    max-height: 50px !important;
    display: inline-block !important;
    margin: 0 !important;

    border-radius: 0 !important;

    opacity: 0.4;
    filter: grayscale(100%);
    transition: opacity 0.2s ease, filter 0.2s ease;
}

.hub-footer-logos img:hover {
    opacity: 0.8;
    filter: grayscale(0%);
}


[data-theme="dark"] .hub-footer-logos img {
    opacity: 0.5;
    filter: grayscale(100%) invert(1);
    transition: opacity 0.2s ease !important;
}

[data-theme="dark"] .hub-footer-logos img:hover {
    opacity: 1;
}

[data-theme="dark"] .hub-footer-logos img.decta-main-logo {
    opacity: 0.4;
}

[data-theme="dark"] .hub-footer-logos img.decta-main-logo:hover {
    opacity: 0.9;
}

.hub-footer-logos img.decta-main-logo {
    height: 18px !important;
    opacity: 0.3;
}

@media (max-width: 991.98px) {
    .hub-footer {
        margin: auto -16px -24px -16px;
        padding: 24px 16px 16px 16px;
    }
}

[data-theme="dark"] .hub-footer-logos img {
    filter: grayscale(100%) invert(1) brightness(200%);
    opacity: 0.7;
}

@media (max-width: 991.98px) {
    .main-content,
    .sidebar-wrapper,
    .mobile-overlay {
        height: calc(100svh - 64px) !important;
    }
}