/*
 * OWS Dashboard 3.10.541.0 — Homepage Statistics reference card.
 *
 * Scoped only to the live editorial statistics sidebar block generated by
 * EditorialStatsSidebarBlockPlugin.php. The values and statistics service are
 * untouched; this file changes presentation only.
 */

html body .pkp_structure_sidebar .pkp_block.ows_stats_block {
    position: relative !important;
    box-sizing: border-box !important;
    width: 100% !important;
    min-width: 0 !important;
    margin: 25px 0 16px !important;
    padding: 0 !important;
    border: 1px solid #d9e4e8 !important;
    border-bottom: 1px solid #d9e4e8 !important;
    border-radius: 4px !important;
    background: #ffffff !important;
    box-shadow: none !important;
    color: #15232c !important;
    direction: ltr !important;
    overflow: hidden !important;
}

/* Reference-style header: dark title, vertical teal accent and a very light
 * editorial-trend motif in the upper-right background. */
html body .pkp_structure_sidebar .ows_stats_block > .title {
    position: relative !important;
    z-index: 1 !important;
    box-sizing: border-box !important;
    display: flex !important;
    align-items: center !important;
    min-height: 88px !important;
    margin: 0 !important;
    padding: 20px 150px 20px 31px !important;
    border: 0 !important;
    border-bottom: 1px solid #edf2f4 !important;
    background-color: #ffffff !important;
    color: #07101a !important;
    font-family: inherit !important;
    font-size: 20px !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
    letter-spacing: -0.015em !important;
    text-align: left !important;
    text-transform: none !important;
    overflow: hidden !important;
}

html body .pkp_structure_sidebar .ows_stats_block > .title::before {
    content: "" !important;
    position: absolute !important;
    z-index: 2 !important;
    left: 15px !important;
    top: 50% !important;
    width: 4px !important;
    height: 42px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 3px !important;
    background: var(--ows-primary, #0d918f) !important;
    transform: translateY(-50%) !important;
}

html body .pkp_structure_sidebar .ows_stats_block > .title::after {
    content: "" !important;
    position: absolute !important;
    z-index: 0 !important;
    top: 0 !important;
    right: -2px !important;
    width: 240px !important;
    height: 88px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    opacity: .95 !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 240 88' fill='none'%3E%3Cpath d='M0 64.5H120c12.5 0 15.5-18 31-18 17 0 17 13 31 13 16.5 0 18.5-21 44-21h14' stroke='%23d7efee' stroke-width='2.2' stroke-linecap='round'/%3E%3Crect x='132' y='32' width='16' height='32' rx='2' fill='%23eff9f8'/%3E%3Crect x='164' y='18' width='16' height='46' rx='2' fill='%23eff9f8'/%3E%3Crect x='196' y='42' width='16' height='22' rx='2' fill='%23eff9f8'/%3E%3Cpath d='M178 64c6-14 20-22 35-22 13 0 24 5 34 15v7H178z' fill='%23eef8f7'/%3E%3Cg fill='%23dcf1f0'%3E%3Ccircle cx='184' cy='18' r='2.1'/%3E%3Ccircle cx='198' cy='18' r='2.1'/%3E%3Ccircle cx='212' cy='18' r='2.1'/%3E%3Ccircle cx='184' cy='32' r='2.1'/%3E%3Ccircle cx='198' cy='32' r='2.1'/%3E%3Ccircle cx='212' cy='32' r='2.1'/%3E%3Ccircle cx='184' cy='46' r='2.1'/%3E%3Ccircle cx='198' cy='46' r='2.1'/%3E%3Ccircle cx='212' cy='46' r='2.1'/%3E%3C/g%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right top !important;
    background-size: contain !important;
    pointer-events: none !important;
}

html body .pkp_structure_sidebar .ows_stats_block > .content {
    box-sizing: border-box !important;
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: #ffffff !important;
}

html body .pkp_structure_sidebar .ows_stats_grid {
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: #ffffff !important;
}

html body .pkp_structure_sidebar .ows_stats_row {
    position: relative !important;
    box-sizing: border-box !important;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    align-items: center !important;
    column-gap: 12px !important;
    min-height: 45px !important;
    margin: 0 !important;
    padding: 13px 14px 13px 18px !important;
    border: 0 !important;
    border-bottom: 1px solid #e8edef !important;
    background-color: #ffffff !important;
    text-align: left !important;
}

html body .pkp_structure_sidebar .ows_stats_row:last-child {
    border-bottom: 0 !important;
}

/* Icons removed per latest feedback so rows render as clean text/value pairs. */
html body .pkp_structure_sidebar .ows_stats_row::before {
    content: none !important;
    display: none !important;
}

html body .pkp_structure_sidebar .ows_stats_label {
    display: block !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    color: #26343d !important;
    font-family: inherit !important;
    font-size: 13.5px !important;
    font-weight: 400 !important;
    line-height: 1.32 !important;
    letter-spacing: -0.005em !important;
    text-align: left !important;
    white-space: normal !important;
}

html body .pkp_structure_sidebar .ows_stats_value {
    display: block !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    color: #07545a !important;
    font-family: inherit !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    line-height: 1.1 !important;
    letter-spacing: -0.015em !important;
    text-align: right !important;
    white-space: nowrap !important;
}

/* Preserve the same composition on narrower sidebar layouts without forcing
 * any width on the surrounding OJS column. */
@media (max-width: 1100px) {
    html body .pkp_structure_sidebar .ows_stats_block > .title {
        min-height: 82px !important;
        padding-top: 18px !important;
        padding-right: 126px !important;
        padding-bottom: 18px !important;
        font-size: 19px !important;
    }

    html body .pkp_structure_sidebar .ows_stats_block > .title::after {
        width: 208px !important;
        height: 82px !important;
    }

    html body .pkp_structure_sidebar .ows_stats_row {
        grid-template-columns: minmax(0, 1fr) auto !important;
        column-gap: 10px !important;
        min-height: 70px !important;
        padding: 12px 12px 12px 16px !important;
    }

    html body .pkp_structure_sidebar .ows_stats_row::before {
        content: none !important;
        display: none !important;
    }

    html body .pkp_structure_sidebar .ows_stats_label {
        font-size: 13px !important;
    }

    html body .pkp_structure_sidebar .ows_stats_value {
        font-size: 15px !important;
    }
}

@media (max-width: 720px) {
    html body .pkp_structure_sidebar .ows_stats_block > .title {
        min-height: 74px !important;
        padding: 16px 100px 16px 29px !important;
        font-size: 18px !important;
    }

    html body .pkp_structure_sidebar .ows_stats_block > .title::before {
        left: 14px !important;
        height: 38px !important;
    }

    html body .pkp_structure_sidebar .ows_stats_block > .title::after {
        right: -4px !important;
        width: 170px !important;
        height: 74px !important;
    }

    html body .pkp_structure_sidebar .ows_stats_row {
        grid-template-columns: minmax(0, 1fr) auto !important;
        column-gap: 9px !important;
        min-height: 66px !important;
        padding: 11px 11px 11px 15px !important;
    }

    html body .pkp_structure_sidebar .ows_stats_row::before {
        content: none !important;
        display: none !important;
    }

    html body .pkp_structure_sidebar .ows_stats_label {
        font-size: 12.5px !important;
    }

    html body .pkp_structure_sidebar .ows_stats_value {
        font-size: 14px !important;
    }
}


/* 3.10.541.0 — Statistics typography refinement requested for homepage. */
html body .pkp_structure_sidebar .ows_stats_block > .title {
    font-size: 15px !important;
}

html body .pkp_structure_sidebar .ows_stats_label {
    font-size: 14px !important;
}

@media (max-width: 1100px) {
    html body .pkp_structure_sidebar .ows_stats_block > .title {
        font-size: 15px !important;
    }

    html body .pkp_structure_sidebar .ows_stats_label {
        font-size: 14px !important;
    }
}

@media (max-width: 720px) {
    html body .pkp_structure_sidebar .ows_stats_block > .title {
        font-size: 15px !important;
    }

    html body .pkp_structure_sidebar .ows_stats_label {
        font-size: 14px !important;
    }
}

/* ==========================================================
 * OWS Dashboard 3.10.779.0
 * Statistics header background motif removed.
 * ========================================================== */
html body .pkp_structure_sidebar .ows_stats_block > .title {
    padding-right: 31px !important;
    background-image: none !important;
}

html body .pkp_structure_sidebar .ows_stats_block > .title::after {
    content: none !important;
    display: none !important;
    background: none !important;
}

@media (max-width: 1100px) {
    html body .pkp_structure_sidebar .ows_stats_block > .title {
        padding-right: 31px !important;
    }
}

@media (max-width: 720px) {
    html body .pkp_structure_sidebar .ows_stats_block > .title {
        padding-right: 29px !important;
    }
}

/* ==========================================================
 * OWS Dashboard 3.10.781.0
 * Statistics values follow Site Color.
 * ========================================================== */
html body .pkp_structure_sidebar .ows_stats_value {
    color: var(--ows-primary, #0d918f) !important;
}


/* ==========================================================
 * OWS Dashboard 3.10.867.0
 * Homepage Statistics — values use dark gray instead of theme color
 * ========================================================== */
html body .pkp_structure_sidebar .ows_stats_value {
    color: #4b5563 !important;
}


/* ==========================================================
 * OWS Dashboard 3.10.870.0
 * Homepage Statistics — stronger card border for sidebar emphasis
 * ========================================================== */
html body .pkp_structure_sidebar .pkp_block.ows_stats_block {
    border-width: 2px !important;
    border-bottom-width: 2px !important;
}
