/* =========================================================
   REFERENCE-STYLE ARTICLE DETAIL & PDF-TO-HTML VIEWER
   ========================================================= */

.page_article {
    max-width: 1280px;
    margin: 0 auto;
    padding: 20px 24px 60px 24px;
}

.refstyle_article_wrapper {
    width: 100%;
    margin: 0 auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: #1e293b;
}

/* Header */
.refstyle_header {
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 1px solid #e2e8f0;
}

.refstyle_meta_bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
    font-size: 13px;
    font-weight: 500;
}

.refstyle_section_badge {
    background: #eff6ff;
    color: #1d4ed8;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 4px;
    font-size: 12.5px;
}

.refstyle_oa_badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #f0fdf4;
    color: #15803d;
    border: 1px solid #bbf7d0;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 4px;
    font-size: 12.5px;
}

.refstyle_date_badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #64748b;
    font-size: 13px;
}

.refstyle_title {
    font-size: 32px;
    font-weight: 800;
    line-height: 1.35;
    color: #0f172a;
    margin: 0 0 12px 0;
    letter-spacing: -0.015em;
}

.refstyle_subtitle {
    font-size: 19px;
    font-weight: 500;
    color: #475569;
    margin: 0 0 14px 0;
    line-height: 1.4;
}

.refstyle_authors_inline {
    font-size: 16px;
    font-weight: 500;
    color: #334155;
    margin-top: 10px;
}

.refstyle_author_name {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.refstyle_orcid_icon {
    display: inline-flex;
    vertical-align: middle;
    margin-left: 2px;
}

/* 2-Column Grid Layout */
.refstyle_body_grid {
    display: flex;
    align-items: flex-start;
    gap: 40px;
    position: relative;
}

/* Sticky Left Navigation Sidebar */
.refstyle_sidebar {
    width: 240px;
    min-width: 240px;
    position: sticky;
    top: 90px;
    background: #ffffff;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    z-index: 10;
    overflow: hidden;
}

.refstyle_nav {
    display: flex;
    flex-direction: column;
}

.refstyle_nav_item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px 18px;
    color: #1e40af;
    text-decoration: none;
    font-size: 14.5px;
    font-weight: 500;
    border-top: none;
    border-right: none;
    border-bottom: 1px solid #f1f5f9;
    border-left: 3px solid transparent;
    transition: all 0.15s ease-in-out;
    background: transparent;
    width: 100%;
    text-align: left;
    cursor: pointer;
    font-family: inherit;
    box-sizing: border-box;
}

.refstyle_nav_item:last-child {
    border-bottom: none;
}

.refstyle_nav_item svg {
    color: #2563eb;
    flex-shrink: 0;
}

.refstyle_nav_item:hover {
    background: #f8fafc;
    color: #1d4ed8;
    text-decoration: none;
}

.refstyle_nav_item.active {
    background: #eff6ff;
    color: #1d4ed8;
    font-weight: 700;
    border-left-color: #2563eb;
}

/* Right Content Area & Tab Panels */
.refstyle_content {
    flex: 1;
    min-width: 0;
}

.refstyle_tab_panel {
    display: none;
    animation: refstyleFadeIn 0.2s ease-in-out;
}

.refstyle_tab_panel.active {
    display: block;
}

@keyframes refstyleFadeIn {
    from { opacity: 0; transform: translateY(4px); }
    to { opacity: 1; transform: translateY(0); }
}

.refstyle_tab_header_row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
}

.refstyle_tab_title {
    font-size: 24px;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 18px 0;
}

.refstyle_tab_header_row .refstyle_tab_title {
    margin: 0;
}

.refstyle_expand_btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    color: #475569;
    text-decoration: none;
    transition: all 0.15s ease;
}

.refstyle_expand_btn:hover {
    background: #f1f5f9;
    color: #0f172a;
    border-color: #cbd5e1;
}

/* Preview Frame */
.refstyle_preview_frame_wrap {
    width: 100%;
    height: 800px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
    background: #f8fafc;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.refstyle_pdf_iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

/* Download Panel */
.refstyle_download_desc {
    font-size: 15.5px;
    color: #475569;
    margin-bottom: 24px;
}

.refstyle_download_action_wrap {
    margin-top: 10px;
}

.refstyle_primary_download_btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #0040ff;
    color: #ffffff !important;
    font-size: 15px;
    font-weight: 600;
    padding: 12px 28px;
    border-radius: 9999px;
    text-decoration: none;
    box-shadow: 0 2px 6px rgba(0, 64, 255, 0.25);
    transition: all 0.15s ease;
}

.refstyle_primary_download_btn:hover {
    background: #0033cc;
    box-shadow: 0 4px 12px rgba(0, 64, 255, 0.35);
    text-decoration: none;
}

.refstyle_primary_download_btn svg {
    color: #ffffff;
}

/* References Tab Panel */
.refstyle_references_container {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.refstyle_reference_entry {
    padding-bottom: 18px;
    border-bottom: 1px solid #f1f5f9;
}

.refstyle_reference_entry:last-child {
    border-bottom: none;
}

.refstyle_ref_text {
    font-size: 14.5px;
    line-height: 1.7;
    color: #334155;
    margin: 0 0 12px 0;
    word-break: break-word;
}

.refstyle_ref_actions {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.refstyle_btn_scholar {
    display: inline-flex;
    align-items: center;
    background: #0040ff;
    color: #ffffff !important;
    font-size: 13px;
    font-weight: 600;
    padding: 7px 16px;
    border-radius: 9999px;
    text-decoration: none;
    transition: background 0.15s ease;
}

.refstyle_btn_scholar:hover {
    background: #0033cc;
    text-decoration: none;
}

.refstyle_btn_back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: transparent;
    border: none;
    color: #0040ff;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    transition: background 0.15s ease;
    font-family: inherit;
}

.refstyle_btn_back:hover {
    background: #eff6ff;
    text-decoration: underline;
}

/* Empty States */
.refstyle_empty_state, .refstyle_empty_card {
    padding: 30px;
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
    border-radius: 8px;
    color: #64748b;
    font-size: 15px;
    text-align: center;
}

.refstyle_link_btn {
    color: #0040ff;
    font-weight: 600;
    text-decoration: none;
}

.refstyle_link_btn:hover {
    text-decoration: underline;
}

.refstyle_section {
    margin-bottom: 42px;
    padding-bottom: 30px;
    border-bottom: 1px solid #e2e8f0;
}

.refstyle_section:last-child {
    border-bottom: none;
}

.refstyle_section_title {
    font-size: 24px;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 18px 0;
    padding-bottom: 8px;
    border-bottom: 2px solid #0b7892;
    display: inline-block;
}

.refstyle_sub_section {
    margin-bottom: 28px;
}

.refstyle_heading {
    font-size: 19px;
    font-weight: 600;
    color: #1e293b;
    margin: 22px 0 12px 0;
}

.refstyle_prose {
    font-size: 15.5px;
    line-height: 1.8;
    color: #334155;
    text-align: justify;
}

.refstyle_prose p {
    margin-bottom: 16px;
}

/* Keywords */
.refstyle_keywords {
    margin-top: 18px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.refstyle_keyword_badge {
    background: #f1f5f9;
    color: #334155;
    font-size: 12.5px;
    padding: 4px 10px;
    border-radius: 9999px;
    font-weight: 500;
}

/* Figures & Tables Cards */
.refstyle_figures_grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 24px;
}

.refstyle_fig_card {
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #ffffff;
    overflow: hidden;
    margin: 0;
    padding: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.refstyle_fig_img_wrap {
    position: relative;
    cursor: pointer;
    background: #f8fafc;
    border-radius: 6px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 180px;
}

.refstyle_fig_img_wrap img {
    max-width: 100%;
    height: auto;
    display: block;
    transition: transform 0.2s ease;
}

.refstyle_fig_img_wrap:hover img {
    transform: scale(1.02);
}

.refstyle_zoom_hint {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(15, 23, 42, 0.75);
    color: #ffffff;
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 4px;
}

.refstyle_fig_card figcaption {
    font-size: 13.5px;
    color: #475569;
    margin-top: 10px;
    line-height: 1.5;
}

.refstyle_table_card {
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 18px;
    background: #ffffff;
}

.refstyle_table_card h4 {
    margin: 0 0 6px 0;
    font-size: 16px;
    color: #0f172a;
}

.refstyle_table_caption {
    font-size: 14px;
    color: #64748b;
    margin-bottom: 12px;
}

.refstyle_table_responsive {
    overflow-x: auto;
}

.refstyle_rendered_table {
    width: 100%;
    border-collapse: collapse;
    margin: 10px 0;
}

.refstyle_rendered_table th {
    background: #087cba;
    color: #ffffff;
    font-weight: 600;
    text-align: left;
    padding: 10px 14px;
    border: 1px solid #066b9f;
    font-size: 13.5px;
    letter-spacing: 0.02em;
}

.refstyle_rendered_table td {
    padding: 10px 14px;
    border: 1px solid #e2e8f0;
    font-size: 14px;
    color: #334155;
}

.refstyle_rendered_table tbody tr:nth-child(even) {
    background: #f8fafc;
}

.refstyle_rendered_table tbody tr:hover {
    background: #f1f5f9;
}

/* Equation Blocks */
.refstyle_equation_block {
    margin: 20px 0;
    padding: 14px 20px;
    background: #f8fafc;
    border-left: 3px solid #087cba;
    border-radius: 4px;
    text-align: center;
    overflow-x: auto;
}

.refstyle_equation_math {
    font-family: "Cambria Math", "Times New Roman", serif;
    font-size: 17px;
    color: #0f172a;
    font-style: italic;
    letter-spacing: 0.03em;
}

/* Inline Table Container */
.refstyle_inline_table {
    margin: 30px 0;
    padding: 18px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.refstyle_table_img_wrap {
    margin: 12px 0 16px 0;
    position: relative;
    cursor: pointer;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px;
}

.refstyle_table_img_wrap img {
    max-width: 100%;
    height: auto;
    display: block;
    transition: transform 0.2s ease;
}

.refstyle_table_img_wrap:hover img {
    transform: scale(1.01);
}

.refstyle_inline_table h4 {
    margin: 0 0 12px 0;
    font-size: 16px;
    color: #087cba;
    font-weight: 700;
}

.refstyle_inline_table .refstyle_table_caption_text {
    font-weight: 400;
    color: #475569;
}

/* References */
.refstyle_references_list {
    margin: 0;
    padding-left: 20px;
}

.refstyle_references_list li {
    font-size: 14px;
    line-height: 1.7;
    color: #334155;
    margin-bottom: 12px;
    word-break: break-word;
}

/* Authors */
.refstyle_authors_list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.refstyle_author_card {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 8px;
    padding: 18px 20px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #ffffff;
}

.refstyle_author_card_name {
    margin: 0 0 3px 0 !important;
    line-height: 1.3 !important;
    font-size: 16px;
    color: #0f172a;
    display: flex;
    align-items: center;
    gap: 10px;
}

.refstyle_orcid_badge {
    font-size: 12px;
    color: #2563eb;
    text-decoration: none;
    font-weight: 500;
}

.refstyle_author_email {
    margin: 0 0 4px 0 !important;
    line-height: 1.2 !important;
    font-size: 13.5px;
}

.refstyle_author_email a {
    color: #087cba;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: color 0.15s ease;
}

.refstyle_author_email a:hover {
    color: #055580;
    text-decoration: underline;
}

.refstyle_author_email svg {
    flex-shrink: 0;
    stroke: currentColor;
}

.refstyle_author_affil {
    margin: 0;
    font-size: 13.5px;
    color: #64748b;
}

/* Lightbox Modal */
.refstyle_modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.85);
    z-index: 999999;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.refstyle_modal_dialog {
    background: #ffffff;
    padding: 20px;
    border-radius: 8px;
    max-width: 90vw;
    max-height: 90vh;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.refstyle_modal_dialog img {
    max-width: 100%;
    max-height: 75vh;
    object-fit: contain;
}

.refstyle_modal_close {
    position: absolute;
    top: 10px;
    right: 12px;
    background: #f1f5f9;
    border: none;
    font-size: 22px;
    cursor: pointer;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Responsive */
@media (max-width: 920px) {
    .refstyle_body_grid {
        flex-direction: column;
    }
    .refstyle_sidebar {
        width: 100%;
        position: static;
    }
    .refstyle_nav {
        flex-direction: row;
        overflow-x: auto;
        white-space: nowrap;
    }
    .refstyle_nav_item {
        border-left: none;
        border-bottom: 3px solid transparent;
        padding: 10px 14px;
    }
    .refstyle_nav_item.active {
        border-left-color: transparent;
        border-bottom-color: #2563eb;
    }
}

/* PDF-extracted figure/table page crops. The original PDF remains the fidelity fallback. */
.refstyle_table_visual {
    width: 100%;
    overflow-x: auto;
    margin: 12px 0 24px;
    padding: 12px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
}
.refstyle_table_visual img {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 0 auto;
}
.refstyle_fig_img_wrap img {
    max-width: 100%;
    height: auto;
}

/* Inline figures inside article sections */
.refstyle_inline_fig {
    margin: 28px 0;
    padding: 16px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}
.refstyle_inline_fig .refstyle_fig_img_wrap {
    min-height: 220px;
    max-height: 550px;
    background: #f8fafc;
}
.refstyle_inline_fig figcaption {
    margin-top: 12px;
    font-size: 14px;
    color: #475569;
    line-height: 1.55;
    text-align: left;
}

/* --- Additional Files Tab --- */
.refstyle_supplementary_wrap {
    padding: 16px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
}
.refstyle_supp_list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.refstyle_supp_link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #1e40af;
    font-size: 14.5px;
    font-weight: 500;
    text-decoration: none;
    padding: 10px 14px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    transition: all 0.15s ease;
}
.refstyle_supp_link:hover {
    background: #eff6ff;
    border-color: #bfdbfe;
    color: #1d4ed8;
}

/* --- Metrics Tab --- */
.refstyle_metrics_grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-top: 14px;
}
.refstyle_metric_card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.02);
}
.refstyle_metric_icon {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    background: #eff6ff;
    color: #2563eb;
    display: flex;
    align-items: center;`n    justify-content: center;
    flex-shrink: 0;
}
.refstyle_metric_content {
    display: flex;
    flex-direction: column;
}
.refstyle_metric_num {
    font-size: 16px;
    font-weight: 700;
    color: #0f172a;
}
.refstyle_metric_desc {
    font-size: 12.5px;
    color: #64748b;
}

/* --- Articles In This Issue Tab --- */
.refstyle_issue_card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 24px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #ffffff;
}
.refstyle_issue_info {
    flex: 1;
}
.refstyle_issue_title {
    font-size: 20px;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 8px 0;
}
.refstyle_issue_date {
    font-size: 13.5px;
    color: #64748b;
    margin: 0 0 16px 0;
}
.refstyle_issue_view_btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #eff6ff;
    color: #1d4ed8;
    padding: 10px 18px;
    border-radius: 6px;
    font-size: 13.5px;
    font-weight: 600;
    text-decoration: none;
    border: 1px solid #bfdbfe;
    transition: all 0.15s ease;
}
.refstyle_issue_view_btn:hover {
    background: #dbeafe;
}
.refstyle_issue_cover img {
    max-width: 120px;
    height: auto;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    border: 1px solid #e2e8f0;
}

/* =========================================================
   ARTICLE VISITOR FLAG COUNTER (JAMS STYLE)
   ========================================================= */
.refstyle_sidebar_flag_counter {
    margin-top: 16px;
    background: #ffffff;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    overflow: hidden;
    transition: box-shadow 0.2s ease;
}

.refstyle_sidebar_flag_counter {
    background: #ffffff;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
    overflow: hidden;
    margin-top: 18px;
    transition: all 0.2s ease;
}

.refstyle_sidebar_flag_counter:hover {
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.08);
    border-color: #cbd5e1;
}

.refstyle_sfc_card_head {
    padding: 16px;
    background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
    border-bottom: 1px solid #e2e8f0;
}

.refstyle_sfc_main_title_wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.refstyle_sfc_pulse {
    width: 8px;
    height: 8px;
    background-color: #10b981;
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    animation: sfcPulse 2s infinite;
}

@keyframes sfcPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    }
    70% {
        box-shadow: 0 0 0 8px rgba(16, 185, 129, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
    }
}

.refstyle_sfc_main_title {
    font-size: 13px;
    font-weight: 700;
    color: #1e293b;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin: 0;
}

.refstyle_sfc_big_metric {
    display: flex;
    flex-direction: column;
    background: #ffffff;
    padding: 12px 14px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
}

.refstyle_sfc_count_num {
    font-size: 26px;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.1;
    letter-spacing: -0.02em;
    font-variant-numeric: tabular-nums;
}

.refstyle_sfc_count_sub {
    font-size: 12px;
    font-weight: 500;
    color: #64748b;
    margin-top: 3px;
}

.refstyle_sfc_breakdown_section {
    padding: 14px 16px;
}

.refstyle_sfc_subhead {
    font-size: 11.5px;
    font-weight: 700;
    color: #475569;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 12px;
}

.refstyle_sfc_country_list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.refstyle_sfc_country_row {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.refstyle_sfc_row_top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 13px;
}

.refstyle_sfc_flag_name {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.refstyle_sfc_flag_img {
    width: 20px;
    height: 14px;
    object-fit: cover;
    border-radius: 2px;
    box-shadow: 0 0 1px rgba(0, 0, 0, 0.3);
    flex-shrink: 0;
}

.refstyle_sfc_cname {
    color: #334155;
    font-weight: 600;
    font-size: 12.5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.refstyle_sfc_stat_group {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.refstyle_sfc_count_text {
    font-size: 11.5px;
    color: #64748b;
    font-weight: 500;
}

.refstyle_sfc_pct_badge {
    font-size: 11.5px;
    font-weight: 700;
    color: #1e40af;
    background: #eff6ff;
    padding: 1px 6px;
    border-radius: 4px;
    border: 1px solid #dbeafe;
}

.refstyle_sfc_bar_bg {
    width: 100%;
    height: 5px;
    background: #f1f5f9;
    border-radius: 3px;
    overflow: hidden;
}

.refstyle_sfc_bar_fill {
    height: 100%;
    background: linear-gradient(90deg, #3b82f6, #2563eb);
    border-radius: 3px;
    transition: width 0.4s ease;
}

.refstyle_sfc_footer {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 9px 12px;
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
}

.refstyle_sfc_badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    font-weight: 600;
    color: #059669;
}

@media (max-width: 920px) {
    .refstyle_sidebar_flag_counter {
        margin-top: 14px;
        margin-bottom: 20px;
    }
}
