﻿/* =============================================================================
   Documentation page global fallback styles
   Loaded after the theme so the public help centre remains fully styled even if
   component-scoped CSS is cached, omitted, or overridden in production.
   ========================================================================== */

/* ── Outer wrapper ─────────────────────────────────────────────────────────── */
.doc-outer {
    padding-left: 0 !important;
    padding-right: 0 !important;
    overflow-x: hidden;
}

.doc-content {
    padding-left: 1rem;
    padding-right: 1rem;
}

.doc-compact-hdr {
    padding: 1rem 1rem 0.85rem;
    border-bottom: 1px solid #e9ecef;
    background: #fff;
    margin-bottom: 0;
}

/* ═══════════════════════════════════════════════════════
   HERO
   ═══════════════════════════════════════════════════════ */
.doc-hero {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #0d9488 0%, #0a7a70 55%, #065f56 100%);
    padding: 2.5rem 1rem 2.25rem;
    text-align: center;
    margin-bottom: 0;
}

.doc-hero-deco {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    pointer-events: none;
}

.doc-hero-deco-1 {
    width: 260px;
    height: 260px;
    top: -80px;
    right: -60px;
}

.doc-hero-deco-2 {
    width: 180px;
    height: 180px;
    bottom: -60px;
    left: -40px;
}

.doc-hero-body {
    position: relative;
    z-index: 1;
}

.doc-hero-icon-wrap {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 1.4rem;
    color: #fff;
}

.doc-hero-title {
    color: #fff;
    font-size: 1.35rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 0.4rem;
    letter-spacing: -0.02em;
}

.doc-hero-sub {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.875rem;
    margin-bottom: 1.5rem;
}

.doc-hero-search-wrap {
    max-width: 480px;
    margin: 0 auto;
}

.doc-hero-search {
    border-radius: 2rem;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(4px);
    border: 1.5px solid rgba(255, 255, 255, 0.35);
}

.doc-hero-search .input-group-text {
    background: transparent !important;
    border: none !important;
    padding-left: 0.85rem;
}

.doc-hero-search-icon {
    color: rgba(255, 255, 255, 0.85);
}

.doc-hero-search-input {
    background: transparent !important;
    border: none !important;
    color: #fff !important;
    box-shadow: none !important;
    font-size: 0.875rem;
    padding: 0.55rem 1rem 0.55rem 0;
}

.doc-hero-search-input::placeholder {
    color: rgba(255, 255, 255, 0.65) !important;
}

/* ═══════════════════════════════════════════════════════
   SECTION LABEL PILLS
   ═══════════════════════════════════════════════════════ */
.doc-section-hdr {
    display: flex;
    flex-direction: column;
}

.doc-section-pill {
    display: inline-flex;
    align-items: center;
    background: rgba(13, 148, 136, 0.1);
    color: #0d9488;
    border-radius: 2rem;
    padding: 0.25rem 0.85rem;
    font-size: 0.8125rem;
    font-weight: 700;
    width: fit-content;
}

/* ═══════════════════════════════════════════════════════
   QUICK-START CARDS
   ═══════════════════════════════════════════════════════ */
.doc-qs-card {
    border-radius: 0.875rem;
    padding: 1.25rem 1rem 1rem;
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid #e9ecef;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
    cursor: pointer;
}

.doc-qs-card:hover {
    border-color: #0d9488;
    box-shadow: 0 4px 16px rgba(13, 148, 136, 0.13) !important;
    transform: translateY(-2px);
}

.doc-qs-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
    margin-bottom: 0.75rem;
    background-color: rgba(13, 148, 136, 0.12);
    color: #0d9488;
    flex-shrink: 0;
}

.doc-qs-title {
    font-size: 0.925rem;
    font-weight: 700;
    margin-bottom: 0.35rem;
    color: #212529;
}

.doc-qs-desc {
    font-size: 0.8125rem;
    color: #6c757d;
    line-height: 1.55;
    flex: 1;
    margin-bottom: 0.75rem;
}

.doc-qs-cta {
    font-size: 0.8125rem;
    font-weight: 700;
    color: #0d9488;
    margin-top: auto;
}

/* ═══════════════════════════════════════════════════════
   MODULE GRID CARDS
   ═══════════════════════════════════════════════════════ */
.doc-mod-card {
    border-radius: 0.875rem;
    overflow: hidden;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
    cursor: pointer;
    background: #fff;
}

.doc-mod-card:hover {
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.09) !important;
    transform: translateY(-2px);
}

.doc-mod-card .card-body {
    padding: 1rem;
}

.doc-mod-card-footer {
    padding: 0.5rem 1rem;
    border-top: 1px solid #f0f1f3;
    display: flex;
    justify-content: flex-end;
    background: #fafbfc;
}

.doc-mod-read-more {
    font-size: 0.8rem;
    font-weight: 700;
    color: #0d9488;
}

.doc-mod-icon {
    width: 38px;
    height: 38px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    flex-shrink: 0;
    background-color: #0d9488 !important;
}

.doc-mod-icon-sm {
    width: 30px;
    height: 30px;
    border-radius: 7px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    flex-shrink: 0;
    background-color: #0d9488 !important;
}

/* ═══════════════════════════════════════════════════════
   INLINE SEARCH
   ═══════════════════════════════════════════════════════ */
.doc-search-row {
    max-width: 480px;
}

.doc-inline-search {
    border-radius: 2rem;
    overflow: hidden;
    box-shadow: 0 1px 5px rgba(0, 0, 0, 0.06);
}

.doc-inline-search .form-control,
.doc-inline-search .input-group-text {
    border-color: #dee2e6;
    font-size: 0.875rem;
}

.doc-inline-search .form-control:focus {
    box-shadow: none;
    border-color: #0d9488;
}

.doc-inline-search .input-group-text {
    border-radius: 2rem 0 0 2rem;
}

.doc-search-list .doc-search-item {
    border-left: 3px solid transparent;
    transition: all 0.15s ease;
    padding: 0.75rem 1rem;
    margin-bottom: 0.2rem;
    border-radius: 0.5rem;
    cursor: pointer;
    background: #fff;
    border-top: none;
    border-right: none;
    border-bottom: 1px solid rgba(0, 0, 0, 0.125);
    width: 100%;
    text-align: left;
}

.doc-search-list .doc-search-item:hover {
    border-left-color: #0d9488;
    background: rgba(13, 148, 136, 0.05);
    color: inherit;
}

/* ═══════════════════════════════════════════════════════
   SIDEBAR
   ═══════════════════════════════════════════════════════ */
.doc-sidebar {
    border-radius: 0.875rem;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.07);
    background: #fff;
    top: 16px;
    z-index: 10;
    border: 1px solid #e9ecef;
}

.doc-sidebar-banner {
    padding: 1.1rem 1rem 0.9rem;
    text-align: center;
    background-color: #0d9488 !important;
}

.doc-sidebar-nav {
    max-height: 55vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.doc-sidebar-link {
    display: flex;
    align-items: center;
    padding: 0.65rem 1rem;
    font-size: 0.8125rem;
    color: #343a40;
    border-bottom: 1px solid #f0f2f4;
    min-height: 44px;
    transition: background 0.15s ease, color 0.15s ease;
    cursor: pointer;
    background: #fff;
    border-top: none;
    border-left: none;
    border-right: none;
    width: 100%;
    text-align: left;
    line-height: 1.4;
    font-family: inherit;
    font-weight: 400;
    outline: none;
}

.doc-sidebar-link:hover,
.doc-sidebar-link:focus {
    background: rgba(13, 148, 136, 0.07);
    color: #0d9488;
    outline: none;
    text-decoration: none;
}

.doc-sidebar-link:last-of-type {
    border-bottom: none;
}

.doc-sidebar-footer {
    padding: 0.65rem 0.75rem;
    border-top: 1px solid #e9ecef;
    background: #fafbfc;
}

/* ═══════════════════════════════════════════════════════
   MODULE DETAIL
   ═══════════════════════════════════════════════════════ */
.doc-intro-card {
    background: #fff;
    border-radius: 0.875rem;
    padding: 1.25rem;
    box-shadow: 0 1px 8px rgba(0, 0, 0, 0.06);
    border: 1px solid #e9ecef;
}

.doc-tips-box {
    background: rgba(13, 148, 136, 0.06);
    border-left: 3px solid #0d9488;
    border-radius: 0 0.5rem 0.5rem 0;
    padding: 0.75rem 1rem;
}

.doc-tips-hdr {
    color: #0d9488;
    font-size: 0.875rem;
    margin-bottom: 0.4rem;
}

.doc-tips-list {
    margin-bottom: 0;
    padding-left: 1.1rem;
    font-size: 0.8125rem;
    color: #495057;
}

.doc-tips-list li {
    padding: 0.15rem 0;
    line-height: 1.5;
}

.doc-feat-card {
    background: #fff;
    border-radius: 0.875rem;
    box-shadow: 0 1px 8px rgba(0, 0, 0, 0.06);
    border: 1px solid #e9ecef;
    overflow: hidden;
    scroll-margin-top: 16px;
    transition: box-shadow 0.2s ease;
}

.doc-feat-card:hover {
    box-shadow: 0 3px 14px rgba(0, 0, 0, 0.09);
}

.doc-feat-hdr {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
    border-left: 4px solid #0d9488 !important;
}

.doc-feat-title {
    font-weight: 700;
    font-size: 0.925rem;
    color: #212529;
    flex: 1;
    min-width: 0;
}

.doc-feat-body {
    padding: 1rem;
}

.doc-feat-section-label {
    font-size: 0.8rem;
    font-weight: 700;
    color: #0d9488;
    margin-bottom: 0.35rem;
    display: flex;
    align-items: center;
}

.doc-steps-list {
    padding-left: 1.25rem;
}

.doc-steps-list li {
    padding: 0.25rem 0;
    color: #495057;
    font-size: 0.875rem;
    line-height: 1.55;
}

.doc-steps-list li::marker {
    color: #0d9488;
    font-weight: 700;
}

.doc-notes-box {
    background: #fffbeb;
    border-left: 3px solid #f59e0b;
    border-radius: 0 0.5rem 0.5rem 0;
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
}

.doc-notes-hdr {
    color: #92400e;
    margin-bottom: 0.35rem;
}

.doc-notes-list {
    padding-left: 1.1rem;
    margin-bottom: 0;
    color: #495057;
}

.doc-notes-list li {
    padding: 0.15rem 0;
    line-height: 1.5;
}

/* ═══════════════════════════════════════════════════════
   EMPTY STATE
   ═══════════════════════════════════════════════════════ */
.doc-empty-icon {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    background: rgba(13, 148, 136, 0.09);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

/* ═══════════════════════════════════════════════════════
   SHARED HELPERS & BUTTONS
   ═══════════════════════════════════════════════════════ */
.doc-teal {
    color: #0d9488 !important;
}

.doc-btn-teal {
    color: #0d9488 !important;
    background-color: rgba(13, 148, 136, 0.08) !important;
    border: 1.5px solid #0d9488 !important;
    border-radius: 2rem !important;
    padding: 0.3rem 1rem;
    font-size: 0.8125rem;
    font-weight: 600;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.doc-btn-teal:hover,
.doc-btn-teal:focus {
    background-color: #0d9488 !important;
    color: #fff !important;
    border-color: #0d9488 !important;
    text-decoration: none;
    outline: none;
}

.doc-btn-teal:active {
    background-color: #0a7a70 !important;
    color: #fff !important;
}

.doc-btn-teal-sm {
    color: #0d9488 !important;
    background-color: rgba(13, 148, 136, 0.08) !important;
    border: 1px solid #0d9488 !important;
    border-radius: 2rem !important;
    padding: 0.2rem 0.75rem;
    font-size: 0.78rem;
    font-weight: 600;
    white-space: nowrap;
    transition: background-color 0.2s ease, color 0.2s ease;
    display: inline-flex;
    align-items: center;
}

.doc-btn-teal-sm:hover,
.doc-btn-teal-sm:focus {
    background-color: #0d9488 !important;
    color: #fff !important;
    border-color: #0d9488 !important;
    text-decoration: none;
    outline: none;
}

/* ═══════════════════════════════════════════════════════
   BACK TO TOP
   ═══════════════════════════════════════════════════════ */
.doc-back-to-top-btn {
    display: none;
    position: fixed !important;
    bottom: 20px;
    right: 16px;
    width: 48px;
    height: 48px;
    border-radius: 50% !important;
    background-color: #0d9488 !important;
    color: #fff !important;
    border: none !important;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(13, 148, 136, 0.45) !important;
    z-index: 1050;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    line-height: 1;
    transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
    -webkit-tap-highlight-color: transparent;
    padding: 0;
}

.doc-back-to-top-btn:hover,
.doc-back-to-top-btn:focus {
    background-color: #0a7a70 !important;
    color: #fff !important;
    transform: translateY(-3px);
    box-shadow: 0 7px 20px rgba(13, 148, 136, 0.5) !important;
    outline: none !important;
    text-decoration: none;
}

.doc-back-to-top-btn:active {
    background-color: #087a6e !important;
    color: #fff !important;
    transform: translateY(0);
}

/* ═══════════════════════════════════════════════════════
   SIDEBAR responsive
   ═══════════════════════════════════════════════════════ */
@media (max-width: 991.98px) {
    .doc-sidebar {
        position: static !important;
    }

    .doc-sidebar.doc-sidebar-hidden {
        display: none;
    }
}

@media (min-width: 992px) {
    .doc-sidebar.doc-sidebar-hidden {
        display: block !important;
    }
}

/* ═══════════════════════════════════════════════════════
   RESPONSIVE BREAKPOINTS
   ═══════════════════════════════════════════════════════ */
@media (max-width: 575.98px) {
    .doc-qs-card {
        padding: 0.95rem 0.85rem 0.85rem;
    }

    .doc-qs-icon {
        width: 38px;
        height: 38px;
        border-radius: 9px;
        font-size: 0.95rem;
        margin-bottom: 0.6rem;
    }

    .doc-qs-title,
    .doc-mod-card h6 {
        font-size: 0.875rem;
    }

    .doc-qs-desc,
    .doc-mod-card .text-muted.small,
    .doc-mod-read-more {
        font-size: 0.75rem;
    }

    .doc-mod-card .card-body {
        padding: 0.9rem;
    }

    .doc-mod-card-footer {
        padding: 0.45rem 0.9rem;
    }

    .doc-mod-icon {
        width: 34px;
        height: 34px;
        border-radius: 8px;
        font-size: 0.8rem;
    }
}

@media (min-width: 576px) {
    .doc-content {
        padding-left: 1.25rem;
        padding-right: 1.25rem;
    }

    .doc-compact-hdr {
        padding-left: 1.25rem;
        padding-right: 1.25rem;
    }

    .doc-hero-title {
        font-size: 1.55rem;
    }

    .doc-qs-card {
        padding: 1.4rem 1.25rem 1.1rem;
    }

    .doc-qs-icon {
        width: 46px;
        height: 46px;
        font-size: 1.1rem;
        border-radius: 11px;
    }
}

@media (min-width: 768px) {
    .doc-hero {
        padding: 3rem 2rem 2.5rem;
    }

    .doc-hero-icon-wrap {
        width: 68px;
        height: 68px;
        font-size: 1.6rem;
    }

    .doc-hero-title {
        font-size: 1.75rem;
    }

    .doc-hero-sub {
        font-size: 1rem;
    }

    .doc-back-to-top-btn {
        bottom: 24px;
        right: 24px;
    }

    .doc-feat-hdr {
        padding: 0.85rem 1.25rem;
        flex-wrap: nowrap;
    }

    .doc-feat-body {
        padding: 1.1rem 1.25rem;
    }

    .doc-intro-card {
        padding: 1.5rem;
    }

    .doc-feat-card {
        scroll-margin-top: 20px;
    }
}

@media (min-width: 992px) {
    .doc-content {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }

    .doc-compact-hdr {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }

    .doc-hero {
        padding: 3.5rem 3rem 3rem;
    }

    .doc-hero-title {
        font-size: 2rem;
    }

    .doc-back-to-top-btn {
        bottom: 32px;
        right: 32px;
    }

    .doc-feat-card {
        scroll-margin-top: 80px;
    }

    .doc-feat-hdr {
        padding: 1rem 1.5rem;
        flex-wrap: nowrap;
    }

    .doc-feat-body {
        padding: 1.25rem 1.5rem;
    }

    .doc-intro-card {
        padding: 1.75rem;
    }
}

html {
    scroll-behavior: smooth;
}

@media print {
    .doc-hero,
    .doc-compact-hdr .doc-search-row,
    .doc-sidebar-footer,
    .doc-back-to-top-btn {
        display: none !important;
    }

    .doc-feat-card {
        break-inside: avoid;
    }
}

/* ── CCTU brand override: remove legacy teal/green docs palette ───────────── */
.doc-hero {
    background: linear-gradient(135deg, #002147 0%, #0b2d5c 55%, #001633 100%) !important;
}

.doc-teal,
.doc-section-pill,
.doc-qs-cta,
.doc-mod-read-more,
.doc-tips-hdr,
.doc-feat-section-label,
.doc-btn-teal,
.doc-btn-teal-sm {
    color: #002147 !important;
}

.doc-section-pill,
.doc-qs-icon,
.doc-empty-icon,
.doc-btn-teal,
.doc-btn-teal-sm {
    background-color: rgba(0, 33, 71, 0.08) !important;
}

.doc-mod-icon,
.doc-mod-icon-sm,
.doc-sidebar-banner,
.doc-back-to-top-btn {
    background-color: #002147 !important;
}

.doc-qs-card:hover {
    border-color: #002147;
    box-shadow: 0 4px 16px rgba(0, 33, 71, 0.14) !important;
}

.doc-inline-search .form-control:focus {
    border-color: #002147;
}

.doc-search-list .doc-search-item:hover {
    border-left-color: #002147;
    background: rgba(0, 33, 71, 0.05);
}

.doc-sidebar-link:hover,
.doc-sidebar-link:focus {
    background: rgba(0, 33, 71, 0.06);
    color: #002147;
}

.doc-tips-box {
    background: rgba(0, 33, 71, 0.05);
    border-left-color: #002147;
}

.doc-feat-hdr {
    border-left-color: #002147 !important;
}

.doc-steps-list li::marker {
    color: #002147;
}

.doc-btn-teal,
.doc-btn-teal-sm {
    border-color: #002147 !important;
}

.doc-btn-teal:hover,
.doc-btn-teal:focus,
.doc-btn-teal-sm:hover,
.doc-btn-teal-sm:focus {
    background-color: #002147 !important;
    border-color: #002147 !important;
    color: #fff !important;
}

.doc-btn-teal:active,
.doc-btn-teal-sm:active,
.doc-back-to-top-btn:hover,
.doc-back-to-top-btn:focus,
.doc-back-to-top-btn:active {
    background-color: #001633 !important;
    color: #fff !important;
}

.doc-back-to-top-btn {
    box-shadow: 0 4px 14px rgba(0, 33, 71, 0.35) !important;
}

/* White hero/header override */
.doc-hero {
    background: #fff !important;
    border-bottom: 1px solid #e9ecef;
}

.doc-hero-deco {
    background: rgba(0, 33, 71, 0.035);
}

.doc-hero-title {
    color: #212529 !important;
}

.doc-hero-sub {
    color: #6c757d !important;
}

.doc-hero-icon-wrap {
    background: rgba(0, 33, 71, 0.08) !important;
    color: #002147 !important;
}

.doc-hero-search {
    background: #fff !important;
    border: 1px solid #dbe2ea !important;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.06);
    backdrop-filter: none;
}

.doc-hero-search .input-group-text {
    background: #fff !important;
}

.doc-hero-search-icon {
    color: #002147 !important;
}

.doc-hero-search-input {
    background: #fff !important;
    color: #212529 !important;
}

.doc-hero-search-input::placeholder {
    color: #8a94a6 !important;
}






