﻿/* ═══════════════════════════════════════════════════════════════
   mix-conc.css  —  Concrete Mix Design Calculator
═══════════════════════════════════════════════════════════════ */



.mc-outer {
    font-family: "Source Sans 3", Arial, sans-serif;
    max-width: 1100px !important;
    margin: 20px auto 0 auto;
    padding: 0 16px 60px;
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    isolation: isolate;
}

.conc-outer {
/*    background-image: url('/images/bg-concrete-mix.jpg');
*/    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: local;
}

.conc-outer .mc-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    /*background-image: url('/images/bg-concrete-mix.jpg');*/
    background-size: cover;
    background-position: top center;
    background-repeat: no-repeat;
    z-index: 0;
    pointer-events: none;
}

.mc-outer::before {
    content: '';
    position: absolute;
    inset: 0;
    background: none;
    z-index: 1;
    pointer-events: none;
}

.mc-outer > *:not(.mc-bg) {
    position: relative;
    z-index: 2;
}

.mc-hero {
    text-align: center;
    padding: 36px 20px 28px;
}

    .mc-hero h1 {
        color: #fff;
        font-size: clamp(22px, 4vw, 36px);
        font-weight: 900;
        margin: 0 0 6px;
        letter-spacing: -0.5px;
        font-family: "Source Sans 3", Arial, sans-serif;
        text-shadow: 0 2px 12px rgba(0,0,0,0.4);
    }

    .mc-hero p {
        color: rgba(255,255,255,0.65);
        font-size: 13.5px;
        margin: 0;
        letter-spacing: 0.3px;
    }

.mc-panel {
    background: rgba(255,255,255,0.85);
    border-radius: 16px;
    padding: 20px 22px;
    margin-bottom: 16px;
    box-shadow: 0 12px 30px rgba(0,0,0,0.70);
    backdrop-filter: blur(4px);
    overflow: hidden;
}

.mc-panel-title {
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #222;
    margin: 0 0 16px;

}

.mc-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 12px;
}

.mc-info-field label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.mc-info-field input {
    width: 100%;
    height: 40px;
    border: 1.5px solid #dde2ea;
    border-radius: 10px;
    padding: 0 12px;
    font-size: 14px;
    font-family: "Source Sans 3", Arial, sans-serif;
    box-sizing: border-box;
    background: #fafbfc;
    transition: border-color 0.2s;
}

    .mc-info-field input:focus {
        outline: none;
        border-color: #11b7b7;
        box-shadow: 0 0 0 3px rgba(17,183,183,0.15);
    }

.mc-unitline {
    display: flex;
    align-items: center;
    gap: 24px;
}

    .mc-unitline span {
        font-weight: 700;
        color: #333;
        font-size: 14px;
    }

    .mc-unitline label {
        display: inline-flex;
        align-items: center;
        gap: 7px;
        font-weight: 700;
        font-size: 14px;
        cursor: pointer;
    }

    .mc-unitline input[type="radio"] {
        accent-color: #11b7b7;
        width: 15px;
        height: 15px;
    }

.mc-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

/* ── Numeric card — FIX: overflow hidden keeps lights inside ── */
.mc-card {
    background: rgba(0,0,0,0.04);
    border-radius: 12px;
    padding: 10px 12px;
    display: grid;
    grid-template-columns: 22px 1fr 90px 36px 40px;
    align-items: center;
    column-gap: 5px;
    min-height: 56px;
    overflow: hidden;
    transition: background 0.2s, box-shadow 0.2s;
}

    .mc-card:focus-within {
        background: rgba(17,183,183,0.07);
        box-shadow: 0 0 0 2px rgba(17,183,183,0.2);
    }

.mc-card-num {
    font-size: 15px;
    font-weight: 900;
    color: #ccc;
    flex-shrink: 0;
}

.mc-card-label {
    font-size: 13px;
    font-weight: 700;
    color: #333;
    line-height: 1.3;
    min-width: 0;
}

.mc-card-input {
    width: 100%;
    height: 34px;
    border: 1.5px solid #dde2ea;
    border-radius: 8px;
    padding: 0 7px;
    font-size: 12px;
    font-weight: 600;
    font-family: "Source Sans 3", Arial, sans-serif;
    background: #fff;
    box-sizing: border-box;
    transition: border-color 0.2s;
    min-width: 0;
}

    .mc-card-input:focus {
        outline: none;
        border-color: #11b7b7;
        box-shadow: 0 0 0 3px rgba(17,183,183,0.15);
    }

.mc-card-select {
    width: 100%;
    height: 36px;
    border: 1.5px solid #dde2ea;
    border-radius: 8px;
    padding: 0 8px;
    font-size: 13px;
    font-family: "Source Sans 3", Arial, sans-serif;
    background: #fff;
    box-sizing: border-box;
    cursor: pointer;
    transition: border-color 0.2s;
    min-width: 0;
}

    .mc-card-select:focus {
        outline: none;
        border-color: #11b7b7;
    }

.mc-card-unit {
    font-size: 11px;
    font-weight: 700;
    color: #666;
    white-space: nowrap;
}

/* FIX: align-items center keeps dots vertically centred */
.mc-card-lights {
    display: flex;
    gap: 4px;
    align-items: center;
    justify-content: flex-end;
    flex-shrink: 0;
}

/* ── Radio card (span2) ── */
.mc-card.span2 {
    grid-column: span 2;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    min-height: 40px;
    padding: 8px 14px;
    overflow: hidden;
}

    .mc-card.span2 .mc-card-num {
        flex-shrink: 0;
        width: 26px;
        font-size: 15px;
        font-weight: 900;
        color: #ccc;
    }

    .mc-card.span2 .mc-card-label {
        flex: 1;
        font-size: 13px;
        font-weight: 700;
        color: #333;
        min-width: 0;
    }

    .mc-card.span2 .mc-radios {
        display: flex;
        gap: 16px;
        align-items: center;
        flex-shrink: 0;
    }

    .mc-card.span2 .mc-card-lights {
        display: flex;
        gap: 4px;
        flex-shrink: 0;
        align-items: center;
    }

.mc-radios label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
}

.mc-radios input[type="radio"] {
    accent-color: #11b7b7;
    width: 14px;
    height: 14px;
}

/* ── Dual input (SG + %) — FIX: flex:1 + min-width:0 prevents overflow ── */
/* ── Dual input (SG + %) ── */
.mc-card.dual {
    grid-template-columns: 26px 1fr 210px 46px;
}

.mc-dual {
    display: flex;
    gap: 6px;
    min-width: 0;
}

    .mc-dual input {
        flex: 1;
        min-width: 70px; 
        height: 36px;
        border: 1.5px solid #dde2ea;
        border-radius: 8px;
        padding: 0 8px;
        font-size: 13px;
        font-weight: 600;
        font-family: "Source Sans 3", Arial, sans-serif;
        background: #fff;
        box-sizing: border-box;
        transition: border-color 0.2s;
    }

        .mc-dual input:focus {
            outline: none;
            border-color: #11b7b7;
            box-shadow: 0 0 0 3px rgba(17,183,183,0.15);
        }

/* ── Traffic lights ── */
.mc-light {
    width: 13px;
    height: 13px;
    border-radius: 50%;
    background: #e0e0e0;
    border: 1px solid rgba(0,0,0,0.08);
    transition: background 0.25s, box-shadow 0.25s;
    flex-shrink: 0;
}

    .mc-light.is-green {
        background: #18c964;
        box-shadow: 0 0 6px rgba(24,201,100,0.4);
    }

    .mc-light.is-yellow {
        background: #f5c542;
        box-shadow: 0 0 6px rgba(245,197,66,0.4);
    }

    .mc-light.is-red {
        background: #ff3b30;
        box-shadow: 0 0 6px rgba(255,59,48,0.4);
    }

/* ── Message row ── */
.mc-msg {
    font-size: 13px;
    font-weight: 600;
    color: #ef4444;
    padding: 2px 4px 4px;
    min-height: 18px;
    display: block;
    visibility: hidden;
    grid-column: 1 / -1;
}

    .mc-msg.is-visible {
        visibility: visible;
    }

/* ── Section sub-label ── */
.mc-sub-label {
    grid-column: span 2;
    font-size: 10px;
    font-weight: 700;
    color: #aaa;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 4px 4px 2px;
}

.mc-hidden {
    opacity: 0.35 !important;
    pointer-events: none !important;
    filter: grayscale(0.3) !important;
}
/* ── Calculate button ── */
.mc-actions {
    display: flex;
    justify-content: center;
    margin: -16px -16px 0 -16px;
    padding: 80px 20px;
    /*background-image: url('/images/bg-concrete-mix.jpg');*/
    background-size: cover;
    background-position: center 45%;
    border: none;
    box-shadow: none;
    border-radius: 0;
}

.mc-btn {
    padding: 13px 48px;
    border-radius: 50px;
    border: 3px solid #11b7b7;
    background: #000;
    color: #fff;
    font-size: 17px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    font-family: "Source Sans 3", Arial, sans-serif;
    transition: background 0.2s, transform 0.15s;
}

    .mc-btn:hover {
        background: #11b7b7;
        transform: translateY(-2px);
    }

    .mc-btn:disabled {
        opacity: 0.6;
        cursor: not-allowed;
        transform: none;
    }

/* ── Results ── */
.mc-results-empty {
    text-align: center;
    color: #bbb;
    font-size: 14px;
    padding: 28px 0;
}

.mc-vol-bars {
    display: flex;
    flex-direction: column;
    gap: 9px;
    margin-bottom: 18px;
}

.mc-vol-row {
    display: grid;
    grid-template-columns: 150px 1fr 52px;
    align-items: center;
    gap: 10px;
}

.mc-vol-label {
    font-size: 13px;
    font-weight: 600;
    color: #555;
}

.mc-vol-track {
    height: 13px;
    background: #eff1f5;
    border-radius: 7px;
    overflow: hidden;
}

.mc-vol-fill {
    height: 100%;
    border-radius: 7px;
    transition: width 0.6s ease;
}

    .mc-vol-fill.water {
        background: #4a9eca;
    }

    .mc-vol-fill.cement {
        background: #8b7355;
    }

    .mc-vol-fill.coarse {
        background: #9e9e7a;
    }

    .mc-vol-fill.fine {
        background: #c8a96e;
    }

    .mc-vol-fill.air {
        background: #c8c8c8;
    }

.mc-vol-pct {
    font-size: 12px;
    font-weight: 700;
    color: #555;
    text-align: right;
}

.mc-content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 9px;
    margin-top: 14px;
}

.mc-content-card {
    background: rgba(17,183,183,0.07);
    border: 1px solid rgba(17,183,183,0.18);
    border-radius: 10px;
    padding: 10px 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mc-c-name {
    font-size: 12px;
    color: #666;
    font-weight: 600;
}

.mc-c-val {
    font-size: 20px;
    font-weight: 900;
    color: #11b7b7;
}

.mc-c-unit {
    font-size: 10px;
    color: #999;
    font-weight: 600;
    margin-left: 3px;
}

.mc-scm-section {
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid rgba(17,183,183,0.15);
}

.mc-scm-title {
    font-size: 10px;
    font-weight: 700;
    color: #aaa;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    margin-bottom: 9px;
}

.mc-results-warning {
    color: #a06b00;
    font-size: 12px;
    padding: 7px 11px;
    background: rgba(245,158,11,0.08);
    border-radius: 7px;
    margin-bottom: 12px;
}

@media (max-width: 640px) {
    .mc-grid {
        grid-template-columns: 1fr;
    }

    .mc-card.span2 {
        grid-column: span 1;
    }

    .mc-info-grid {
        grid-template-columns: 1fr;
    }

    .mc-content-grid {
        grid-template-columns: 1fr;
    }
}
/* ═══════════════════════════════════════════════════════════════
   RESULTS — Engineering-grade layout  (append to mix-conc.css)
═══════════════════════════════════════════════════════════════ */

/* Error state */
.mcr-error {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #ef4444;
    font-size: 13px;
    font-weight: 600;
    padding: 16px 0 8px;
}

/* Warning banner */
.mcr-warning {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    background: rgba(245,158,11,0.08);
    border: 1px solid rgba(245,158,11,0.28);
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 12px;
    color: #92400e;
    font-weight: 600;
    margin-bottom: 14px;
    line-height: 1.5;
}

/* ── HEADER ── */
.mcr-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    background: linear-gradient(135deg, #0b0f1a 0%, #111827 100%);
    border-radius: 12px;
    padding: 18px 22px;
    margin-bottom: 18px;
    flex-wrap: wrap;
}

.mcr-header-left {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.mcr-std-badge {
    display: inline-block;
    background: rgba(17,183,183,0.15);
    border: 1px solid rgba(17,183,183,0.35);
    color: #11b7b7;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 2px;
    padding: 3px 9px;
    border-radius: 4px;
    margin-bottom: 5px;
    font-family: monospace;
    width: fit-content;
}

.mcr-header-title {
    font-size: 15px;
    font-weight: 800;
    color: #fff;
    letter-spacing: 0.2px;
}

.mcr-header-sub {
    font-size: 11px;
    color: rgba(255,255,255,0.38);
    font-weight: 500;
}

/* KPI strip */
.mcr-kpis {
    display: flex;
    align-items: center;
    gap: 0;
    flex-shrink: 0;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 10px;
    overflow: hidden;
}

.mcr-kpi {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    padding: 12px 20px;
}

.mcr-kpi-val {
    font-size: 22px;
    font-weight: 900;
    color: #11b7b7;
    font-family: "Source Sans 3", Arial, sans-serif;
    line-height: 1;
    letter-spacing: -0.5px;
}

.mcr-kpi-lbl {
    font-size: 9.5px;
    font-weight: 700;
    color: rgba(255,255,255,0.35);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    white-space: nowrap;
}

.mcr-kpi-div {
    width: 1px;
    height: 36px;
    background: rgba(255,255,255,0.08);
    flex-shrink: 0;
}

/* ── SECTION LABELS ── */
.mcr-section-lbl {
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #888;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

    .mcr-section-lbl::after {
        content: '';
        flex: 1;
        height: 1px;
        background: #eaedf2;
    }

/* ── COMPOSITION BAR ── */
.mcr-comp-bar {
    display: flex;
    height: 52px;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 4px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}

.mcr-comp-seg {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 800;
    color: rgba(255,255,255,0.92);
    transition: width 0.8s cubic-bezier(0.4,0,0.2,1);
    overflow: hidden;
    white-space: nowrap;
    cursor: default;
}

    .mcr-comp-seg:hover {
        filter: brightness(1.12);
    }

/* Legend */
.mcr-comp-legend {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 4px;
}

.mcr-leg-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 600;
    color: #555;
}

.mcr-leg-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    flex-shrink: 0;
}

/* ── VOLUME FRACTIONS ── */
.mcr-vol-table {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.mcr-vol-row {
    display: grid;
    grid-template-columns: 120px 1fr 52px;
    align-items: center;
    gap: 12px;
}

.mcr-vol-mat {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 700;
    color: #333;
}

.mcr-vol-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}

.mcr-vol-track {
    height: 14px;
    background: #f0f2f5;
    border-radius: 7px;
    overflow: hidden;
}

.mcr-vol-bar {
    height: 100%;
    border-radius: 7px;
    transition: width 0.8s cubic-bezier(0.4,0,0.2,1);
}

.mcr-vol-pct {
    font-size: 13px;
    font-weight: 800;
    color: #222;
    text-align: right;
    font-family: monospace;
}

    .mcr-vol-pct em {
        font-style: normal;
        font-size: 10px;
        font-weight: 600;
        color: #999;
        margin-left: 1px;
    }

/* ── BATCH QUANTITIES ── */
.mcr-qty-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
}

.mcr-qty-card {
    background: #f7f8fb;
    border: 1px solid #eaecf2;
    border-radius: 10px;
    padding: 0;
    overflow: hidden;
    transition: transform 0.15s, box-shadow 0.15s;
    display: flex;
    flex-direction: column;
}

    .mcr-qty-card:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 18px rgba(0,0,0,0.09);
    }

.mcr-qty-accent {
    height: 4px;
    background: var(--accent);
    flex-shrink: 0;
}

.mcr-qty-name {
    font-size: 9.5px;
    font-weight: 700;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    padding: 10px 12px 2px;
}

.mcr-qty-num {
    font-size: 20px;
    font-weight: 900;
    color: #111;
    line-height: 1.1;
    font-family: monospace;
    padding: 0 12px;
    letter-spacing: -0.5px;
}

.mcr-qty-unit {
    font-size: 10px;
    font-weight: 600;
    color: #aaa;
    padding: 2px 12px 10px;
}

/* ── SCM BREAKDOWN ── */
.mcr-scm-table {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.mcr-scm-row {
    display: grid;
    grid-template-columns: 140px 1fr 110px;
    align-items: center;
    gap: 12px;
}

.mcr-scm-name {
    font-size: 12px;
    font-weight: 700;
    color: #444;
}

.mcr-scm-track {
    height: 12px;
    background: #f0f2f5;
    border-radius: 6px;
    overflow: hidden;
}

.mcr-scm-bar {
    height: 100%;
    background: linear-gradient(90deg, #11b7b7, #0d9a9a);
    border-radius: 6px;
    transition: width 0.8s cubic-bezier(0.4,0,0.2,1);
}

.mcr-scm-val {
    font-size: 13px;
    font-weight: 800;
    color: #222;
    text-align: right;
    font-family: monospace;
}

    .mcr-scm-val em {
        font-style: normal;
        font-size: 10px;
        font-weight: 500;
        color: #aaa;
        margin-left: 3px;
    }

/* Responsive */
@media (max-width: 680px) {
    .mcr-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .mcr-kpis {
        width: 100%;
        justify-content: space-around;
    }

    .mcr-qty-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .mcr-vol-row {
        grid-template-columns: 100px 1fr 44px;
    }

    .mcr-scm-row {
        grid-template-columns: 110px 1fr 90px;
    }
}
/* ═══════════════════════════════════════════════════════════════
   PART 1 — Append to wwwroot/css/mix-conc.css
   Donut circles + engineering results layout
═══════════════════════════════════════════════════════════════ */

.mcr-error {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #ef4444;
    font-size: 13px;
    font-weight: 600;
    padding: 16px 0 8px;
}

.mcr-warning {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    background: rgba(245,158,11,0.08);
    border: 1px solid rgba(245,158,11,0.28);
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 12px;
    color: #92400e;
    font-weight: 600;
    margin-bottom: 14px;
    line-height: 1.5;
}

/* ── Header ── */
.mcr-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    background: linear-gradient(135deg,#0b0f1a 0%,#111827 100%);
    border-radius: 12px;
    padding: 18px 22px;
    margin-bottom: 20px;
}

.mcr-header-left {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.mcr-std-badge {
    display: inline-block;
    background: rgba(17,183,183,0.15);
    border: 1px solid rgba(17,183,183,0.35);
    color: #11b7b7;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 2px;
    padding: 3px 9px;
    border-radius: 4px;
    margin-bottom: 5px;
    font-family: monospace;
    width: fit-content;
}

.mcr-header-title {
    font-size: 15px;
    font-weight: 800;
    color: #fff;
}

.mcr-header-sub {
    font-size: 11px;
    color: rgba(255,255,255,0.38);
}

.mcr-kpis {
    display: flex;
    align-items: center;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 10px;
    overflow: hidden;
}

.mcr-kpi {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    padding: 12px 20px;
}

.mcr-kpi-val {
    font-size: 22px;
    font-weight: 900;
    color: #11b7b7;
    line-height: 1;
    letter-spacing: -0.5px;
    font-family: "Source Sans 3", Arial, sans-serif;
}

.mcr-kpi-lbl {
    font-size: 9.5px;
    font-weight: 700;
    color: rgba(255,255,255,0.35);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    white-space: nowrap;
}

.mcr-kpi-div {
    width: 1px;
    height: 36px;
    background: rgba(255,255,255,0.08);
}

/* ── Section label ── */
.mcr-section-lbl {
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #888;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}

    .mcr-section-lbl::after {
        content: '';
        flex: 1;
        height: 1px;
        background: #eaedf2;
    }

/* ══════════════════════════════════════════
   DONUT CIRCLES
══════════════════════════════════════════ */
.mcr-donuts {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
    margin-bottom: 14px;
}

.mcr-donut-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    background: #f7f8fb;
    border: 1px solid #eaecf2;
    border-radius: 12px;
    padding: 14px 8px 10px;
    transition: transform 0.15s, box-shadow 0.15s;
}

    .mcr-donut-wrap:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 18px rgba(0,0,0,0.09);
    }

.mcr-donut-svg {
    width: 80px;
    height: 80px;
    overflow: visible;
}

.mcr-donut-arc {
    /* initial state — arc animates in via JS after render */
    transition: stroke-dasharray 0.9s cubic-bezier(0.4,0,0.2,1);
}

.mcr-donut-num {
    font-size: 16px;
    font-weight: 900;
    fill: #111;
    font-family: "Source Sans 3", Arial, sans-serif;
}

.mcr-donut-pct {
    font-size: 10px;
    font-weight: 700;
    fill: #999;
    font-family: "Source Sans 3", Arial, sans-serif;
}

.mcr-donut-label {
    font-size: 10.5px;
    font-weight: 700;
    color: #555;
    text-align: center;
    line-height: 1.3;
}

/* ── Composition bar ── */
.mcr-comp-bar {
    display: flex;
    height: 28px;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 4px;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.1);
}

.mcr-comp-seg {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 800;
    color: rgba(255,255,255,0.92);
    overflow: hidden;
    white-space: nowrap;
    cursor: default;
    transition: width 0.8s cubic-bezier(0.4,0,0.2,1);
}

    .mcr-comp-seg:hover {
        filter: brightness(1.1);
    }

/* ── Batch quantity cards ── */
.mcr-qty-grid {
    display: grid;
    grid-template-columns: repeat(5,1fr);
    gap: 8px;
}

.mcr-qty-card {
    background: #f7f8fb;
    border: 1px solid #eaecf2;
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.15s, box-shadow 0.15s;
}

    .mcr-qty-card:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 18px rgba(0,0,0,0.09);
    }

.mcr-qty-accent {
    height: 4px;
    background: var(--accent);
    flex-shrink: 0;
}

.mcr-qty-name {
    font-size: 9.5px;
    font-weight: 700;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    padding: 10px 12px 2px;
}

.mcr-qty-num {
    font-size: 19px;
    font-weight: 900;
    color: #111;
    font-family: monospace;
    padding: 0 12px;
    letter-spacing: -0.5px;
    line-height: 1.1;
}

.mcr-qty-unit {
    font-size: 10px;
    font-weight: 600;
    color: #aaa;
    padding: 2px 12px 10px;
}

/* ── SCM breakdown ── */
.mcr-scm-table {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.mcr-scm-row {
    display: grid;
    grid-template-columns: 140px 1fr 110px;
    align-items: center;
    gap: 12px;
}

.mcr-scm-name {
    font-size: 12px;
    font-weight: 700;
    color: #444;
}

.mcr-scm-track {
    height: 12px;
    background: #f0f2f5;
    border-radius: 6px;
    overflow: hidden;
}

.mcr-scm-bar {
    height: 100%;
    background: linear-gradient(90deg,#11b7b7,#0d9a9a);
    border-radius: 6px;
    transition: width 0.8s cubic-bezier(0.4,0,0.2,1);
}

.mcr-scm-val {
    font-size: 13px;
    font-weight: 800;
    color: #222;
    text-align: right;
    font-family: monospace;
}

    .mcr-scm-val em {
        font-style: normal;
        font-size: 10px;
        font-weight: 500;
        color: #aaa;
        margin-left: 3px;
    }

@media (max-width: 680px) {
    .mcr-donuts {
        grid-template-columns: repeat(3,1fr);
    }

    .mcr-qty-grid {
        grid-template-columns: repeat(2,1fr);
    }

    .mcr-kpis {
        width: 100%;
        justify-content: space-around;
    }

    .mcr-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .mcr-scm-row {
        grid-template-columns: 100px 1fr 80px;
    }
}

.mc-card + .mc-msg {
    grid-column: span 1;
    padding: 0 4px 6px;
    font-size: 13px;
    font-weight: 600;
    color: #ef4444;
    min-height: 18px;
    visibility: hidden;
}

    .mc-card + .mc-msg.is-visible {
        visibility: visible;
    }

.mc-card.span2 + .mc-msg {
    grid-column: span 2;
}
@media (max-width: 900px) {
    .mc-grid {
        grid-template-columns: 1fr !important;
    }

    .mc-card {
        display: grid !important;
        grid-template-columns: 20px 1fr auto !important;
        grid-template-rows: auto auto auto !important;
        gap: 4px 8px !important;
        padding: 12px 10px !important;
        min-height: unset !important;
        height: auto !important;
        max-height: none !important;
        align-items: start !important;
    }

        .mc-card.span2 {
            grid-column: span 1 !important;
            display: grid !important;
            grid-template-columns: 20px 1fr auto !important;
            grid-template-rows: auto auto !important;
            flex-direction: unset !important;
        }

    .mc-card-num {
        grid-column: 1 !important;
        grid-row: 1 !important;
        font-size: 13px !important;
        align-self: start !important;
        padding-top: 2px !important;
    }

    .mc-card-label {
        grid-column: 2 / 3 !important;
        grid-row: 1 !important;
        font-size: 13px !important;
        font-weight: 700 !important;
        line-height: 1.3 !important;
        color: #222 !important;
    }

    .mc-card-lights {
        grid-column: 3 !important;
        grid-row: 1 !important;
        align-self: start !important;
        justify-content: flex-end !important;
        padding-top: 2px !important;
    }

    .mc-card-input,
    .mc-card-select,
    .mc-card .gfrp-custom-select {
        grid-column: 2 !important;
        grid-row: 2 !important;
        height: 36px !important;
        font-size: 13px !important;
        width: 100% !important;
        max-width: none !important;
        min-width: 0 !important;
    }

    .mc-card-unit {
        grid-column: 3 !important;
        grid-row: 2 !important;
        font-size: 11px !important;
        align-self: center !important;
        white-space: nowrap !important;
    }

    .mc-card .mc-radios {
        grid-column: 2 / -1 !important;
        grid-row: 2 !important;
    }

    .mc-card .mc-dual {
        grid-column: 2 !important;
        grid-row: 2 !important;
        width: 100% !important;
    }

    .mc-msg {
        grid-column: 1 / -1 !important;
        grid-row: 3 !important;
        font-size: 11px !important;
        min-height: 0 !important;
        height: auto !important;
    }

    .mc-sub-label {
        grid-column: span 1 !important;
    }

    /* ── MOBILE BACKGROUND LOCK ── */
    .mc-outer {
        background-attachment: scroll !important;
    }

    .conc-outer {
        background: none !important;
    }

        .conc-outer .mc-bg {
            position: fixed !important;
            top: 0 !important;
            left: 0 !important;
            width: 100vw !important;
            height: 100vh !important;
            background-size: cover !important;
            /* Anchoring to 'top' prevents the image from sliding up/down when mobile UI bars shift */
            background-position: center top !important;
            background-repeat: no-repeat !important;
            z-index: -1 !important;
            /* Hardware acceleration locks the background layer to the GPU, stopping repaint jumps */
            transform: translateZ(0) !important;
            -webkit-transform: translateZ(0) !important;
            will-change: transform;
        }
}