.bp-report-wrap {
    width: 100%;
    font-family: "Segoe UI", Arial, sans-serif;
    color: #24364d;
}


/* =========================
   REPORT HEADER
   ========================= */

.bp-report-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    padding: 22px 26px;
    margin-bottom: 14px;
    background: linear-gradient(135deg, #10365f, #145386, #2372aa);
    border-radius: 14px;
    box-shadow: 0 10px 25px rgba(20, 83, 134, 0.16);
}

.bp-report-eyebrow {
    margin-bottom: 4px;
    color: #9ed3f7;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 1.6px;
}

.bp-report-title {
    color: #ffffff;
    font-size: 25px;
    line-height: 1.15;
    font-weight: 700;
}

.bp-report-subtitle {
    margin-top: 6px;
    color: rgba(255,255,255,0.75);
    font-size: 11px;
    line-height: 1.4;
}

.bp-report-meta {
    display: flex;
    align-items: stretch;
    gap: 8px;
}

.bp-meta-item {
    min-width: 90px;
    padding: 8px 12px;
    background: rgba(255,255,255,0.10);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 9px;
}

.bp-meta-item span {
    display: block;
    margin-bottom: 2px;
    color: rgba(255,255,255,0.58);
    font-size: 7px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.bp-meta-item strong {
    color: #ffffff;
    font-size: 10px;
    font-weight: 700;
}


/* =========================
   GRID WRAPPER
   ========================= */

.bp-grid {
    width: 100%;
    border: 1px solid #dfe7ee;
    border-radius: 11px;
    overflow: hidden;
    background: #ffffff;
    box-shadow: 0 6px 18px rgba(25, 56, 88, 0.05);
}


/* =========================
   GRID HEADER
   ========================= */

.bp-grid-header {
    display: grid;

    grid-template-columns:
        minmax(230px, 2.3fr)
        minmax(80px, .75fr)
        minmax(80px, .75fr)
        minmax(80px, .75fr)
        minmax(75px, .65fr)
        minmax(150px, 1.25fr)
        minmax(105px, .9fr)
        minmax(95px, .8fr)
        minmax(105px, .9fr);

    background: #f4f8fb;
    border-bottom: 1px solid #dfe7ee;
}

.bp-grid-header > div {
    min-height: 44px;
    box-sizing: border-box;
    padding: 10px 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-right: 1px solid #e1e8ef;
    color: #173a60;
    font-size: 9px;
    line-height: 1.3;
    font-weight: 700;
    text-align: center;
}

.bp-grid-header > div:first-child {
    justify-content: flex-start;
    text-align: left;
    padding-left: 14px;
}

.bp-grid-header > div:last-child {
    border-right: none;
}


/* =========================
   RESULT ROW
   ========================= */

.bp-row {
    display: grid;

    grid-template-columns:
        minmax(230px, 2.3fr)
        minmax(80px, .75fr)
        minmax(80px, .75fr)
        minmax(80px, .75fr)
        minmax(75px, .65fr)
        minmax(150px, 1.25fr)
        minmax(105px, .9fr)
        minmax(95px, .8fr)
        minmax(105px, .9fr);

    align-items: stretch;
    background: #ffffff;
    border-bottom: 1px solid #e7edf2;
    transition: background 0.15s ease;
}

.bp-row:last-child {
    border-bottom: none;
}

.bp-row:hover {
    background: #f9fbfd;
}

.bp-row > div {
    min-height: 58px;
    box-sizing: border-box;
    padding: 9px 9px;
    border-right: 1px solid #edf1f4;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.bp-row > div:last-child {
    border-right: none;
}


/* =========================
   SEEKER SOURCE
   ========================= */

.bp-source {
    flex-direction: row !important;
    align-items: center;
    justify-content: flex-start !important;
    gap: 10px;
    padding-left: 12px !important;
}

.bp-source-number {
    width: 28px;
    height: 28px;
    min-width: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: #eaf3f9;
    color: #145386;
    font-size: 10px;
    font-weight: 800;
}

.bp-source-name {
    color: #203d5c;
    font-size: 11px;
    line-height: 1.35;
    font-weight: 700;
}


/* =========================
   STANDARD NUMBER CELLS
   ========================= */

.bp-number-cell,
.bp-variance-count,
.bp-status-cell,
.bp-pace,
.bp-required-pace {
    text-align: center;
    align-items: center;
}

.bp-number-cell strong {
    color: #243a50;
    font-size: 13px;
    font-weight: 700;
}


/* =========================
   VARIANCE COUNT
   ========================= */

.bp-variance-count strong {
    font-size: 13px;
    font-weight: 700;
}

.variance-positive {
    color: #128144 !important;
}

.variance-negative {
    color: #e1262f !important;
}

.variance-neutral {
    color: #718090 !important;
}


/* =========================
   DIVERGING VARIANCE BAR
   ========================= */

.bp-variance {
    align-items: stretch !important;
    padding-left: 12px !important;
    padding-right: 12px !important;
}

.bp-variance-top {
    margin-bottom: 6px;
    text-align: center;
    font-size: 10px;
    line-height: 1;
    font-weight: 700;
}

.bp-diverging-track {
    position: relative;
    width: 100%;
    height: 8px;
    background: #edf2f5;
    border-radius: 8px;
}

.bp-zero-line {
    position: absolute;
    left: 50%;
    top: -3px;
    width: 1px;
    height: 14px;
    background: #a8b4bf;
    z-index: 2;
}

.bp-diverging-bar {
    position: absolute;
    top: 0;
    height: 8px;
    border-radius: 8px;
}


/* Negative grows LEFT */

.bp-variance.variance-negative .bp-diverging-bar {
    right: 50%;
    left: auto;
    background: #e5262e;

    border-radius: 8px 0 0 8px;
}
.bp-variance.variance-negative .bp-variance-top {
    color: #e5262e;
}


/* Positive grows RIGHT */

.bp-variance.variance-positive .bp-diverging-bar {
    left: 50%;
    right: auto;
    background: #159447;

    border-radius: 0 8px 8px 0;
}

.bp-variance.variance-positive .bp-variance-top {
    color: #159447;
}


/* Neutral */

.bp-variance.variance-neutral .bp-diverging-bar {
    width: 0 !important;
}

.bp-variance.variance-neutral .bp-variance-top {
    color: #718090;
}


/* =========================
   STATUS PILLS
   ========================= */

.bp-status-cell {
    justify-content: center;
}

.bp-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 78px;
    max-width: 90px;
    padding: 6px 8px;
    border-radius: 7px;
    font-size: 8px;
    font-weight: 800;
    line-height: 1.2;
    text-align: center;
    text-transform: uppercase;
}

.status-behind {
    background: #fde8e8;
    color: #dd2029;
}

.status-slightly-behind {
    background: #fff2d9;
    color: #bb7500;
}

.status-on-plan {
    background: #edf1f4;
    color: #687786;
}

.status-ahead {
    background: #e4f4e9;
    color: #258048;
}

.status-well-ahead {
    background: #cfeeda;
    color: #087b35;
}


/* =========================
   PACE
   ========================= */

.bp-pace strong,
.bp-required-pace strong {
    color: #243a50;
    font-size: 13px;
    font-weight: 700;
}

.bp-pace small,
.bp-required-pace small {
    margin-top: 2px;
    color: #9aa7b4;
    font-size: 7px;
    line-height: 1;
}


/* =========================
   REQUIRED PACE
   ========================= */

.bp-required-value {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
}

.bp-required-value i {
    font-size: 11px;
}

.pace-up strong,
.pace-up i {
    color: #e5262e;
}

.pace-down strong,
.pace-down i {
    color: #158845;
}

.pace-flat strong,
.pace-flat i {
    color: #778594;
}


/* =========================
   OPTIONAL LEGEND
   ========================= */

.bp-legend {
    margin-top: 12px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    padding: 10px 12px;
    background: #ffffff;
    border: 1px solid #e2e9ef;
    border-radius: 9px;
    font-family: "Segoe UI", Arial, sans-serif;
}

.bp-legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #5d7083;
    font-size: 9px;
}

.bp-legend-dot {
    width: 10px;
    height: 10px;
    border-radius: 3px;
}

.bp-legend-behind {
    background: #e5262e;
}

.bp-legend-slightly {
    background: #e6a315;
}

.bp-legend-on-plan {
    background: #adb9c4;
}

.bp-legend-ahead {
    background: #9fd7b3;
}

.bp-legend-well-ahead {
    background: #159447;
}


/* =========================
   RESPONSIVE
   ========================= */

@media (max-width: 1200px) {

    .bp-grid {
        overflow-x: auto;
    }

    .bp-grid-header,
    .bp-row {
        min-width: 1150px;
    }

    .bp-report-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .bp-report-meta {
        flex-wrap: wrap;
    }
}
