/* ========================================
   MINI SEEKER SOURCES VS PLAN
   ======================================== */

.bp-mini-card {
    width: 100%;
    background: #ffffff;
    border: 1px solid #dce5ed;
    border-radius: 14px 14px 0 0;
    overflow: hidden;
    box-shadow: 0 6px 18px rgba(20, 55, 90, 0.07);
    font-family: "Segoe UI", Arial, sans-serif;
}


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

.bp-mini-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    padding: 13px 15px 11px;
}

.bp-mini-title-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
}

.bp-mini-icon {
    width: 31px;
    height: 31px;
    min-width: 31px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: #145386;
    color: #ffffff;

    font-size: 13px;
}

.bp-mini-title {
    color: #173a60;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.2;
}

.bp-mini-subtitle {
    margin-top: 3px;
    color: #7f8f9f;
    font-size: 8px;
    font-weight: 600;
}

.bp-mini-dot {
    margin: 0 5px;
    color: #b1bcc6;
}

.bp-mini-menu {
    color: #718295;
    font-size: 13px;
}


/* ========================================
   COLUMN HEADER
   ======================================== */

.bp-mini-columns {
    display: grid;

    grid-template-columns:
        minmax(190px, 1.65fr)
        minmax(150px, 1fr)
        minmax(115px, .8fr);

    padding: 7px 12px;

    background: #f7fafc;
    border-top: 1px solid #edf1f4;
    border-bottom: 1px solid #dfe7ee;
}

.bp-mini-columns > div {
    color: #627487;
    font-size: 7px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .35px;
}

.bp-mini-columns > div:nth-child(2),
.bp-mini-columns > div:nth-child(3) {
    text-align: center;
}


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

.bp-mini-row {
    display: grid;

    grid-template-columns:
        minmax(190px, 1.65fr)
        minmax(150px, 1fr)
        minmax(115px, .8fr);

    align-items: center;

    min-height: 43px;

    background: #ffffff;
    border-bottom: 1px solid #edf1f4;

    font-family: "Segoe UI", Arial, sans-serif;

    transition: background .15s ease;
}

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


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

.bp-mini-source {
    display: flex;
    align-items: center;
    gap: 9px;

    padding: 7px 12px;
}

.bp-mini-source-icon {
    width: 21px;
    height: 21px;
    min-width: 21px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    font-size: 8px;
    font-weight: 800;
}

.bp-mini-source-name {
    color: #29435e;
    font-size: 9px;
    font-weight: 700;
    line-height: 1.25;
}


/* ========================================
   SOURCE STATUS ICON COLOURS
   ======================================== */

.bp-mini-source-icon.status-behind {
    background: #e5262e;
    color: #ffffff;
}

.bp-mini-source-icon.status-slightly-behind {
    background: #e6a315;
    color: #ffffff;
}

.bp-mini-source-icon.status-on-plan {
    background: #aeb9c4;
    color: #ffffff;
}

.bp-mini-source-icon.status-ahead {
    background: #75be91;
    color: #ffffff;
}

.bp-mini-source-icon.status-well-ahead {
    background: #159447;
    color: #ffffff;
}


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

.bp-mini-variance {
    padding: 7px 12px;
}

.bp-mini-percent {
    margin-bottom: 4px;

    text-align: center;

    font-size: 9px;
    font-weight: 700;
}

.bp-mini-track {
    position: relative;

    width: 100%;
    height: 6px;

    background: #edf2f5;

    border-radius: 6px;
}

.bp-mini-zero {
    position: absolute;

    left: 50%;
    top: -2px;

    width: 1px;
    height: 10px;

    background: #a9b4bf;

    z-index: 2;
}

.bp-mini-bar {
    position: absolute;

    top: 0;

    height: 6px;
}


/* NEGATIVE - LEFT */

.bp-mini-variance.variance-negative .bp-mini-bar {
    right: 50%;
    left: auto;

    background: #e5262e;

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

.bp-mini-variance.variance-negative .bp-mini-percent {
    color: #e5262e;
}


/* POSITIVE - RIGHT */

.bp-mini-variance.variance-positive .bp-mini-bar {
    left: 50%;
    right: auto;

    background: #159447;

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

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


/* NEUTRAL */

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

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


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

.bp-mini-status-cell {
    display: flex;
    justify-content: center;
    align-items: center;

    padding: 7px 9px;
}

.bp-mini-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;

    min-width: 82px;

    box-sizing: border-box;

    padding: 5px 7px;

    border-radius: 6px;

    text-align: center;

    font-size: 7px;
    line-height: 1.15;
    font-weight: 800;

    text-transform: uppercase;
}


/* Behind */

.bp-mini-status.status-behind {
    background: #fde8e8;
    color: #dc252d;
}

.bp-mini-status.status-behind::after {
    content: "↓";
    font-size: 10px;
}


/* Slightly Behind */

.bp-mini-status.status-slightly-behind {
    background: #fff2d9;
    color: #b97500;
}

.bp-mini-status.status-slightly-behind::after {
    content: "↓";
    font-size: 10px;
}


/* About on Pace */

.bp-mini-status.status-on-plan {
    background: #edf1f4;
    color: #667787;
}

.bp-mini-status.status-on-plan::after {
    content: "–";
    font-size: 10px;
}


/* Slightly Ahead */

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

.bp-mini-status.status-ahead::after {
    content: "↑";
    font-size: 10px;
}


/* Well Ahead */

.bp-mini-status.status-well-ahead {
    background: #d2efdc;
    color: #087b35;
}

.bp-mini-status.status-well-ahead::after {
    content: "↑";
    font-size: 10px;
}


/* ========================================
   LAST ROW
   ======================================== */

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


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

@media (max-width: 700px) {

    .bp-mini-card {
        overflow-x: auto;
    }

    .bp-mini-columns,
    .bp-mini-row {
        min-width: 520px;
    }
}


.bp-mini-details-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;

    padding: 8px 12px;

    background: #145386;
    color: #ffffff !important;

    border-radius: 8px;

    font-family: "Segoe UI", Arial, sans-serif;
    font-size: 9px;
    font-weight: 700;

    text-decoration: none !important;
    white-space: nowrap;

    box-shadow: 0 4px 10px rgba(20, 83, 134, 0.18);

    transition:
        background 0.15s ease,
        transform 0.15s ease,
        box-shadow 0.15s ease;
}

.bp-mini-details-btn:hover {
    background: #103f67;
    color: #ffffff !important;
    text-decoration: none !important;

    transform: translateY(-1px);

    box-shadow: 0 5px 13px rgba(20, 83, 134, 0.24);
}

.bp-mini-details-btn i {
    font-size: 10px;
}
