

    /* Container for the whole column list */
    .ms-tree-container {
        padding-left: 0;
    }

    .ms-node-row a {
        color: black;
    }
    /* Individual list item */
    .ms-tree-node {
        margin-bottom: 4px;
    }

    /* The horizontal bar containing link and plus/minus */
    .ms-node-row {
        display: flex;
        align-items: center;
        justify-content: space-between;
        
        transition: all 0.3s ease;
    }

    .ms-node-row:hover {
        background: #103274;
    }
    .ms-node-row:hover a {
        color: #ffffff;
    }

    

    /* Toggle button (+) */
    .ms-node-toggle {
        padding: 0 15px;
        cursor: pointer;
        font-weight: bold;
        font-size: 18px;
        color: #103274;
    }

    /* .ms-node-row:hover .ms-node-toggle {
        color: #fff;
    } */

    /* Nested sub-groups */
    .ms-tree-subgroup {
        list-style: none;
        padding-left: 20px; /* Indent child items */
        margin-top: 5px;
        display: none; /* Hidden by default */
        border-left: 1px dashed #ccc;
        margin-left: 10px;
    }

    /* Section Title Style */
    .ms-toc-section-title {
        background: #103274;
        color: white;
        padding: 12px;
        border-radius: 7px;
        font-size: 1rem;
        font-weight: 300;
        margin-bottom: 15px;
    }

    /* Tooltip text */
    .tooltip-inner {
        background-color: #007bff !important;
        /* background color */
        color: #fff !important;
        /* text color */
        font-size: 14px;
        margin-right: 9px;
    }

    /* Tooltip arrow */
    .tooltip.bs-tooltip-start .tooltip-arrow::before {
        border-left-color: #007bff !important;
        /* arrow color */
        color: #007bff !important;
    }

    .tooltip .tooltip-arrow {
        margin-right: 8px;
        color: #007bff !important;
    }

    .header {
        background: url("/images/next-msc-banner-image.webp");
        background-position: center;
        background-repeat: no-repeat;
        background-size: cover;
        padding: 20px 50px;
    }

    .header h1 {
        font-size: 40px;
        font-weight: 700;
        color: white !important;
    }

    .header ul {
        list-style: none;
        display: flex;
        gap: 15px;
        align-items: center;
        margin-bottom: 0;
        padding-left: 0;
        margin-top: 30px;
        row-gap: 5px;
    }

    .header ul,
    .header ul li a {
        color: white !important;
        text-decoration: none;
        text-transform: uppercase;
    }

    .chart-wrapper {
        background-color: white;
        margin: 20px 0px 20px 0px;
        padding: 20px;
        border-radius: 8px;
    }

    .chart-toggle {
        /* display: flex;
        flex-wrap: wrap;
        gap: 10px;
        margin-bottom: 15px; */
    }

    .chart-toggle button,
    .chart-toggle-right button {
        background-color: #2b467b;
        border: none;
        padding: 8px 12px;
        color: #fff !important;
        cursor: pointer;
        border-radius: 5px;
        font-size: 13px;
    }

    .chart-toggle-right button {
        background-color: #E5E7EC;
        color: #2b467b !important;
        transition: 0.3s;

    }

    .chart-toggle button:hover {
        background-color: #646e7aff;
    }

    .chart-toggle-right button:hover {
        transform: scale(1.3);
    }

    .card-grid {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
        gap: 20px;
        padding: 20px;
    }

    .card {
        background-color: #34495e;
        padding: 15px;
        border-radius: 8px;
    }

    .card h4 {
        margin-top: 0;
        font-size: 14px;
    }

    .shadow {
        border-radius: 10px !important;
        overflow: hidden !important;
    }

    .description.right {
        position: sticky;
        top: 85px;
    }

    #chart_div,
    #print_graph {
        width: 100% !important;
        height: 400px !important;
        /* box-shadow: 10px 10px 10px 10px rgb(247 236 236 / 35%) !important; */
        background: #fff !important
    }

    .report_details h3 {
        font-size: 1.2rem;
        padding: 10px;
        margin: 0;
        border-radius: 10px;
    }

    .shadow.report_details {
        background: var(--header-bg);
        border: 1px solid #e5e7ec;
        border-radius: 10px;
        overflow: hidden;
        position: sticky;
        top: 90px;
    }

    .cl-3-side {
        color: black !important;
        /* padding: 20px; */
        background: #fff;
        padding: 15px 20px;
        border-bottom: 1px solid #e5e7ec;
    }

    .background {
        background: white !important;
    }

    .chart-header {
        display: inline-block;
        width: 100%;
        font-size: 0;
        display: flex;
        padding: 20px 30px 0 30px;
        /* Remove inline-block spacing */
    }

    .chart-toggle {
        /* display: inline-block;
        vertical-align: top;
        width: 50%;
        font-size: 14px; */

    }

    .col-3 {
        /* box-shadow: 10px 10px 10px 10px rgb(247 236 236 / 35%) !important; */
        background: #fff !important
    }

    .float-inline-end {
        float: inline-end;
    }

    .chart-toggle.left {
        text-align: left;
    }

    .chart-toggle.right {
        text-align: right;
    }

    .tab {
        overflow: hidden;
        border: 1px solid #2c3e50;
        background-color: #2c3e50;
    }

    /* Style the buttons inside the tab */
    .tab button {
        background-color: inherit;
        float: left;
        border: none;
        outline: none;
        cursor: pointer;
        padding: 14px 16px;
        transition: 0.3s;
        font-size: 17px;
    }

    /* Change background color of buttons on hover */
    .tab button:hover {
        background-color: #2b467b;
    }

    .chart-toggle-right {
        display: flex;
        /* flex-direction: column; */
        align-items: center;
        gap: 8px;
        /* float: right; */
        /* right: 5px;
        margin-right: 10px; */
        right: 2%;
        /* margin-right: 10px; */
        position: absolute;
        z-index: 9;
    }

    .tablinks {
        color: white !important;
    }

    /* Create an active/current tablink class */
    .tab button.active {
        background-color: #0e1f41;
        color: white;
    }

    /* Style the tab content */
    .tabcontent {
        display: none;
        padding: 6px 12px;
        border: 1px solid #ccc;
    }

    .download-section {
        font-family: Arial, sans-serif;
        background: #fff;
        padding: 15px;


    }

    /* Compass chart popup text fix: avoid justified spacing in 2-word labels like "Remaining Countries" */
    .google-visualization-tooltip,
    .google-visualization-tooltip * {
        text-align: left !important;
        text-justify: auto !important;
        word-spacing: normal !important;
        letter-spacing: normal !important;
        white-space: normal !important;
    }

    .download-section h4 {
        margin: 0 0 10px;
        font-weight: 600;
        color: #344054;
        white-space: normal;
        word-break: break-word;
    }

    /* .download-buttons {
        display: flex;
        justify-content: space-evenly;
        flex-wrap: wrap;
    } */


    .download-buttons {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        margin: 0 -6px;
        border-radius: 5px;
        overflow: hidden;
        padding: 10px;
        position: relative;
    }

    .download-btn {
        display: flex;
        align-items: center;
        gap: 5px;
        background: #f9fafb;
        border: 1px solid #d0d5dd;
        border-radius: 6px;
        font-size: 14px;
        font-weight: 500;
        color: #344054;
        cursor: pointer;
        position: relative;
        padding: 0px 0px 0px 3px !important;
        margin: 5px 0;
    }

    .download-btn {
        width: 25%;
    }


    .download-btn img {
        width: 16px;
        height: 16px;
    }

    .download-btn span {
        background: #1d2939;
        color: white;
        border-radius: 0 6px 6px 0;
        padding: 6px 8px;
        margin-left: auto;
    }

    .h-74 {
        height: 74% !important;
    }

    .custom-alert {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.5);
        display: flex;
        justify-content: center;
        align-items: center;
        z-index: 9999;
    }

    .custom-alert-content {
        position: relative;
        background: white;
        padding: 30px 40px;
        border-radius: 10px;
        text-align: center;
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
        animation: fadeIn 0.3s ease-in-out;
        max-width: 400px;
        width: 100%;
    }

    .custom-alert-close {
        position: absolute;
        top: 12px;
        right: 15px;
        font-size: 22px;
        font-weight: bold;
        cursor: pointer;
        color: #aaa;
    }

    .custom-alert-close:hover {
        color: #000;
    }

    .custom-alert-content p {
        font-size: 16px;
        color: #333;
        margin-bottom: 20px;
    }

    .custom-alert-actions {
        margin-bottom: 20px;
    }

    .btn-register {
        background-color: #28a745;
        color: white;
        padding: 10px 18px;
        text-decoration: none;
        border-radius: 5px;
        margin-bottom: 10px;
        display: inline-block;
    }

    .btn-register:hover {
        background-color: #218838;
    }

    .login-text {
        margin-top: 10px;
        font-size: 14px;
    }

    .login-text a {
        color: #007bff;
        text-decoration: none;
    }

    .login-text a:hover {
        text-decoration: underline;
    }

    .btn-ok {
        background-color: #007bff;
        color: white;
        border: none;
        padding: 10px 25px;
        border-radius: 5px;
        cursor: pointer;
    }

    .btn-ok:hover {
        background-color: #0056b3;
    }

    .hidden {
        display: none;
    }

    @keyframes fadeIn {
        from {
            opacity: 0;
            transform: scale(0.95);
        }

        to {
            opacity: 1;
            transform: scale(1);
        }
    }

    .addfavouritebtn {
        background: white !important;
        border: solid 0.5px #2b467b !important;
    }

    .addfavouriteicon {
        color: #1fc91fa3 !important
    }

    .icon-btn {
        padding: 8px 8px 8px 8px !important;
    }

    #printgraph {
        width: 100%;

        background-color: white;
        /* display: flex; */
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }

    .tooltip-left {
        position: relative;
        display: inline-block;
        cursor: pointer;
    }

    .tooltip-left .tooltip-text {
        visibility: hidden;
        width: 220px;
        background-color: white;
        color: black;
        text-align: left;
        padding: 8px 10px;
        border-radius: 4px;
        position: absolute;
        z-index: 10;
        left: -240px;
        /* adjust as per your layout */
        top: 50%;
        transform: translateY(-50%);
        opacity: 0;
        transition: opacity 0.3s ease;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
        font-size: 13px;
    }

    .tooltip-left:hover .tooltip-text {
        visibility: visible;
        opacity: 1;
    }

    .google-visualization-table {
        width: 94% !important;
    }

    .tooltip-copy {
        visibility: hidden;
        position: absolute;
        background-color: #333;
        color: #fff;
        padding: 5px 10px;
        border-radius: 4px;
        top: 100%;
        left: 50%;
        transform: translateX(-50%);
        white-space: nowrap;
        z-index: 1;
    }

    .custom-modal {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);

        justify-content: center;
        align-items: center;
        z-index: 9999;
    }

    .custom-modal-content {
        background: #fff;
        padding: 20px;
        border-radius: 8px;
        max-width: 600px;
        width: 90%;
        position: relative;
    }

    .custom-modal .close-btn {
        position: absolute;
        top: 10px;
        right: 15px;
        font-size: 24px;
        cursor: pointer;
    }

    .sharingButtonContainer {
        display: flex;
        justify-content: space-around;
        gap: 15px;
    }

    .sharingButton {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 45px;
        height: 45px;
        /* border-radius: 50%; */
        /* background: #eee; */
        transition: all 0.2s;
        cursor: pointer;
    }

    a.sharingButton {
        text-decoration: none;
    }

    .sharingButton:hover {
        transform: scale(1.1);
        background: #ddd;
    }


    .shareicon {
        border: solid 1px #dee2e6;
        border-radius: 7px;
        padding: 1rem;
        transition: all 0.3s ease;
        background-color: #ffffff;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    }

    /* Container styling */
    .market_scope.shadow {
        background: #fff;
        border-radius: 8px;

    }

    .detail {
        max-height: 550px;
        overflow-x: auto !important;
    }

    .detail.reports {
        max-height: 165px;
        min-height: 165px;
    }

    .detail ul {
        list-style: none;
        padding-left: 0;
    }


    ul.green_arrow li {
        position: relative;
        padding-left: 24px;
        margin-bottom: 10px;
    }

    ul.green_arrow li::before {
        content: "";
        background: url("/images/arrrow-rifht-1.png");
        height: auto;
        width: 18px;
        aspect-ratio: 58 / 68;
        position: absolute;
        left: 0;
        top: 0;
        background-size: contain;
        background-repeat: no-repeat;
        background-position: center center;
    }

    ul.green_arrow li a {
        color: #000;
        text-decoration: none;

    }

    .market_scope h4,
    .method h4,
    .description h4 {
        border-bottom: 2px solid #f0f2f5;
        padding-bottom: 10px;
        margin-bottom: 20px;
        font-weight: 700;
    }

    /* Base list styling */
    .market_scope ul {
        list-style: none;
        padding-left: 0;
    }

    .market_scope a {
        text-decoration: none;
        color:#000;
    }

    .ms-child-level-3, .ms-child-level-4 {
        border-left: 1px solid #10327433; /* Light vertical guide line */
        margin-left: 15px; /* Indent the whole row */
        padding-left: 10px;
    }

    .ms-child-level-3 .ms-node-row, 
.ms-child-level-4 .ms-node-row {
    background: transparent !important;
    border-left: none !important;
    border-radius: 0;
}

    /* Style the text for deep children */
    .ms-child-level-3 .ms-node-link,
    .ms-child-level-4 .ms-node-link {
        padding: 5px 0;
        font-size: 0.8rem;
        color: #103274 !important; /* Keep it blue to show it's clickable */
        flex-grow: 0; /* Don't take full width */
    }

    /* Adjust the toggle (+/-) for nested items */
    .ms-child-level-3 .ms-node-toggle,
    .ms-child-level-4 .ms-node-toggle {
        padding: 0 8px;
        font-size: 14px;
    }

    /* Hover effect for text-only children */
    .ms-child-level-3 .ms-node-row:hover .ms-node-link,
    .ms-child-level-4 .ms-node-row:hover .ms-node-link {
        text-decoration: underline !important;
        background: transparent;
        color: #000 !important;
    }

    /* Small bullet point indicator for the deepest level */
    .ms-child-level-4 .ms-node-row::before {
        content: "•";
        color: #103274;
        margin-right: 8px;
        font-size: 18px;
    }

/* Maintain consistency with your existing dataset.css rules */

    /* Region Header Styling */
    .region-header {
        color: #6c757d;
        font-weight: bold;
        border-bottom: 2px solid #eee;
        padding-bottom: 10px;
        margin-bottom: 20px;
    }

    /* Blue TOC Title - forced to be bold and blue like the image */
    .toc-title {
        background: #103274;
        font-weight: 300;
        font-size: 1rem;
        text-transform: capitalize;
        margin-bottom: 12px;
        border: solid #0e1f41 1px;
        padding: 10px;
        color: white;
        border-radius: 7px;
    }
    .toc-title a{
        color:#fff!important;
    }

    ul.toc_list {
        margin-bottom: 0px;
    }

    ul.toc_list a {
        text-decoration: none;
    }

    /* Level 2 (toc2) Bullet styling */
    .toc2-item {
        font-size: 0.85rem;
        font-weight: 400;
        color: #000000ff;
        line-height: 1.4;
        margin-bottom: 5px;
        border: solid 1px;
        padding: 10px;
        border-radius: 7px;
        border: none;
        background: #e5e5e5;
        border-left: 2px solid #103274;
        transition: 0.4s;

    }

    .toc2-item:hover {
        background: #103274;
        color: white;
    }

    .details_text {
        padding: 0 30px 20px 30px;
    }

    .card.card-border {
        background: #e5e5e54d;
        backdrop-filter: blur(10px);
        color: #fff;
    }

    .table_hover thead {
        border: none;
    }

    .table-group-divider {
        border-top: none !important;
    }

    .table_hover thead {
        position: sticky;
        top: -1px;
    }

    .table_hover thead tr th {
        background: #103274;
        color: white;
        padding: 10px;
    }

    .table_hover tbody tr td {
        padding: 10px;
    }


    ul.tree {
        padding: 25px;
        padding-top: 10px;
        background: #fff;
        border-radius: 10px 10px 0 0;
    }

    .tree,
    .tree ul {
        list-style: none;
        padding-left: 20px;
        margin: 0;
    }

    ul.tree>li {
        border-bottom: 1px solid #47474721;
        padding: 5px 0;
    }

    .tree-header {
        cursor: pointer;
        display: flex;
        align-items: center;
        line-height: 26px;
        user-select: none;
        gap: 7px;
    }

    .tree-children {
        overflow: hidden;
        height: 0;
        transition: height 0.35s ease;
    }

    .animated-form {
        max-width: 420px;
        margin: 40px auto;
        font-family: Arial, sans-serif;
    }

    .form-group {
        position: relative;
        margin-bottom: 24px;
    }

    /* Inputs & Textarea */
    .form-group input,
    .form-group textarea,
    .phone-group select,
    .form-group select {
        width: 100%;
        padding: 14px 12px;
        border: 1px solid #ccc;
        border-radius: 6px;
        font-size: 15px;
        outline: none;
        background: transparent;
    }

    /* Phone layout */
    .phone-group {
        display: flex;
        gap: 10px;
    }

    .phone-group select {
        width: 70%;
        margin-bottom: 24px;
    }

    .phone-group .form-group {
        width: 65%;
    }

    /* Labels */
    .form-group label {
        position: absolute;
        left: 12px;
        top: 26px;
        transform: translateY(-50%);
        color: #888;
        font-size: 14px;
        background: #fff;
        padding: 0 6px;
        pointer-events: none;
        transition: 0.3s ease;
    }

    /* Phone label position */
    .phone-label {
        left: calc(35% + 22px);
    }

    /* Animation */
    .form-group input:focus+label,
    .form-group input:valid+label,
    .form-group textarea:focus+label,
    .form-group textarea:valid+label {
        top: -4px;
        font-size: 12px;
        color: #fff;
        background: #103274;
        padding: 3px 10px;
        border-radius: 40px;
    }

    /* Focus states */
    .form-group input:focus,
    .form-group textarea:focus,
    .form-group select:focus {
        border-color: #103274;
    }

    /* Button */
    form.animated-form button {
        width: 100%;
        padding: 12px;
        background: #103274;
        color: #fff;
        border: none;
        border-radius: 6px;
        font-size: 15px;
        cursor: pointer;
        border: 1px solid #103274;
        transition: 0.4s;
    }


    form.animated-form button:hover {
        background: transparent;
        color: #103274;
    }


    /* Custom column width for exactly 5 per row if needed */
    @media (min-width: 768px) {
        .col-md-custom-5 {
            flex: 0 0 20%;
            max-width: 20%;
        }
    }

    @media (max-width: 1800px) {
        .header h1 {
            font-size: 36px;
        }
    }

    @media (max-width: 1600px) {
        .header h1 {
            font-size: 36px;
        }
    }

    @media (min-width: 992px) and (max-width: 1563px) {
        .download-btn {
            width: 50%;
        }
    }

    @media (min-width: 963px) and (max-width: 992px) {

        .download-btn {
            width: 50%;
        }
    }

    @media (max-width: 991px) {

        .header h1 {
            font-size: 28px;
        }
    }

    @media (max-width: 963px) {

        .download-btn {
            width: 100%;
        }
    }

    @media (max-width: 767px) {

        .header ul {
            flex-wrap: wrap;
        }

        

        .header {
            padding: 70px 30px;
        }

    }

    @media (max-width: 605px) {
        .cl-3-side b {
            white-space: normal;
            word-break: break-word;
        }

        .header {
            padding: 45px 20px;
        }
    }

    @media (max-width: 585px) {
        .chart-header {
            display: block;
        }

        .chart-toggle-right {
            right: auto !important;
            position:unset;
        }



    }


    @media print {
        * {
            box-shadow: none !important;
            -webkit-box-shadow: none !important;
            -moz-box-shadow: none !important;
        }

        .chart-header {
            display: none !important;
        }

        .row {
            display: block !important;
        }

        .shadow {
            box-shadow: none !important;
        }

        #chart_div {
            height: 600px !important;
        }

        .shadow {
            -webkit-box-shadow: none !important;
            -moz-box-shadow: none !important;
            box-shadow: none !important;
        }

        .print-div,
        .print-div * {
            display: block !important;
            /* Show only print-div */
        }

        .print-div {
            margin: 0;
            padding: 20px;
            font-size: 14px;
            color: #000;
            background-color: white;
            page-break-inside: avoid;
        }

        .download-section {
            display: none !important;
        }
    }


    .download_main {
        position: relative;
    }

    .download-buttons {
        display: none;
        position: absolute;
        top: calc(100% + 15px);
        right: 0;
        background: #fff;
        padding: 10px;
        border-radius: 8px;
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
        z-index: 1000;
    }

    .download-buttons button {
        /* border: 1px solid #103274; */
        transform: none !important;
    }


    .download-buttons.active {
        display: flex;
        flex-direction: column;
        gap: 8px;
    }



    /* Desktop – always open */
    .accordion-content {
        display: block;
    }

    .accordion-icon {
        display: none;
    }

    /* Mobile only */
    @media (max-width: 768px) {

        .accordion-title {
            display: flex;
            align-items: center;
            gap: 10px;
            cursor: pointer;
            user-select: none;
        }

        .accordion-icon {
            display: inline-block;
            font-size: 22px;
            font-weight: bold;
            width: 20px;
            text-align: center;
            flex-shrink: 0;
        }

        .mobile-accordion .accordion-content {
            max-height: 0;
            overflow: hidden;
            transition: max-height 0.4s ease;
        }

        .mobile-accordion.active .accordion-content {
            max-height: 2000px;
            /* enough for long text */
        }

        .mobile-accordion.active .accordion-icon {
            content: "-";
        }
    }
