/* rev. 42 — bloque <style> de SmartProfit/Components/ModalCosteoInventario.razor (Mono web), verbatim. */
    /* ── Contenedor ─────────────────────────────────────────────────────── */
    .mci-backdrop {
        position: fixed;
        inset: 0;
        background: rgba(15, 23, 42, .55);
        display: flex;
        align-items: center;
        justify-content: center;
        z-index: 1080;
        padding: 26px;
    }

    .mci-modal {
        background: #fff;
        border-radius: 14px;
        width: 100%;
        max-width: 1160px;
        max-height: 92vh;
        display: flex;
        flex-direction: column;
        box-shadow: 0 22px 60px rgba(15, 23, 42, .28);
        overflow: hidden;
    }

    /* ── Cabecera ───────────────────────────────────────────────────────── */
    .mci-head {
        display: flex;
        align-items: center;
        gap: 13px;
        padding: 15px 19px;
        background: linear-gradient(135deg, #1a4fba 0%, #0f3494 100%);
        color: #fff;
    }

    .mci-head-ico {
        width: 36px;
        height: 36px;
        border-radius: 9px;
        background: rgba(255,255,255,.16);
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 16px;
        flex-shrink: 0;
    }

    .mci-head-txt {
        flex: 1;
        min-width: 0;
    }

    .mci-head-tit {
        font-size: 15px;
        font-weight: 700;
        letter-spacing: .2px;
    }

    .mci-head-sub {
        font-size: 12px;
        opacity: .85;
        margin-top: 2px;
        display: flex;
        gap: 13px;
        flex-wrap: wrap;
    }

    .mci-head-alm i {
        margin-right: 4px;
        opacity: .8;
    }

    .mci-x {
        width: 31px;
        height: 31px;
        border-radius: 6px;
        border: none;
        background: rgba(255,255,255,.14);
        color: #fff;
        cursor: pointer;
        flex-shrink: 0;
    }

        .mci-x:hover {
            background: rgba(255,255,255,.26);
        }

    /* ── Cuerpo ─────────────────────────────────────────────────────────── */
    .mci-body {
        padding: 17px 19px;
        overflow-y: auto;
        flex: 1;
        background: #f8fafc;
        position: relative;
    }

    .mci-overlay {
        position: absolute;
        inset: 0;
        background: rgba(255,255,255,.92);
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 13px;
        z-index: 4;
    }

        .mci-overlay p {
            margin: 0;
            font-size: 13px;
            font-weight: 600;
            color: #0f3494;
        }

    .mci-spinner {
        width: 34px;
        height: 34px;
        border: 3px solid #e8eef9;
        border-top-color: #1a4fba;
        border-radius: 50%;
        animation: mciGirar .8s linear infinite;
    }

    @keyframes mciGirar {
        to {
            transform: rotate(360deg);
        }
    }

    .mci-vacio {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 9px;
        padding: 46px 20px;
        color: #94a3b8;
    }

        .mci-vacio i {
            font-size: 32px;
            opacity: .5;
        }

        .mci-vacio p {
            margin: 0;
            font-size: 14px;
            color: #64748b;
        }

    /* ── Resumen ────────────────────────────────────────────────────────── */
    .mci-resumen {
        display: flex;
        gap: 11px;
        background: #e8eef9;
        border-left: 4px solid #1a4fba;
        border-radius: 5px;
        padding: 12px 15px;
        margin-bottom: 14px;
    }

        .mci-resumen i {
            color: #2d6ae0;
            font-size: 13px;
            margin-top: 3px;
        }

        .mci-resumen p {
            margin: 0;
            font-size: 13.5px;
            line-height: 1.55;
            color: #0f3494;
            font-weight: 500;
        }

    /* ── Resultado ──────────────────────────────────────────────────────── */
    .mci-res {
        display: flex;
        align-items: stretch;
        gap: 9px;
        background: #fff;
        border: 1px solid #e2e8f0;
        border-radius: 10px;
        padding: 14px 17px;
        margin-bottom: 14px;
    }

    .mci-res-celda {
        display: flex;
        flex-direction: column;
        gap: 3px;
        flex: 1;
    }

    .mci-res-lbl {
        font-size: 11px;
        text-transform: uppercase;
        letter-spacing: .4px;
        color: #94a3b8;
        font-weight: 700;
    }

    .mci-res-val {
        font-size: 19px;
        font-weight: 700;
        color: #1e293b;
        font-variant-numeric: tabular-nums;
    }

    .mci-res-op {
        display: flex;
        align-items: center;
        font-size: 17px;
        color: #cbd5e1;
        font-weight: 700;
    }

    .mci-res-final .mci-res-val {
        color: #1a4fba;
    }

    /* ── Método ─────────────────────────────────────────────────────────── */
    .mci-metodo {
        background: #fff;
        border: 1px solid #e2e8f0;
        border-radius: 10px;
        padding: 13px 16px;
        margin-bottom: 14px;
    }

    .mci-metodo-head {
        display: flex;
        align-items: center;
        gap: 9px;
        flex-wrap: wrap;
        margin-bottom: 7px;
    }

    .mci-metodo-nom {
        font-size: 14.5px;
        font-weight: 700;
        color: #0f3494;
    }

    .mci-conf {
        font-size: 10.5px;
        font-weight: 700;
        letter-spacing: .3px;
        padding: 2px 8px;
        border-radius: 20px;
        text-transform: uppercase;
    }

    .mci-conf-alta {
        background: #dcfce7;
        color: #15803d;
    }

    .mci-conf-media {
        background: #fef3c7;
        color: #b45309;
    }

    .mci-conf-baja {
        background: #fee2e2;
        color: #b91c1c;
    }

    .mci-cod {
        font-size: 10.5px;
        font-family: ui-monospace, Consolas, monospace;
        background: #f0f4fb;
        color: #475569;
        padding: 2px 7px;
        border-radius: 5px;
    }

    .mci-metodo-txt {
        margin: 0;
        font-size: 13px;
        line-height: 1.6;
        color: #475569;
    }

    .mci-metodo-tc {
        margin: 9px 0 0;
        font-size: 12.5px;
        color: #64748b;
        background: #f0f4fb;
        border-radius: 5px;
        padding: 8px 11px;
    }

        .mci-metodo-tc i {
            color: #2d6ae0;
            margin-right: 6px;
        }

    /* ── Origen ─────────────────────────────────────────────────────────── */
    .mci-origen {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(165px, 1fr));
        gap: 1px;
        background: #e2e8f0;
        border: 1px solid #e2e8f0;
        border-radius: 10px;
        overflow: hidden;
        margin-bottom: 14px;
    }

    .mci-o {
        background: #fff;
        padding: 10px 13px;
        display: flex;
        flex-direction: column;
        gap: 2px;
    }

        .mci-o span {
            font-size: 11px;
            color: #94a3b8;
            font-weight: 600;
        }

        .mci-o strong {
            font-size: 13px;
            color: #1e293b;
            font-variant-numeric: tabular-nums;
        }

    /* ── Motivos ────────────────────────────────────────────────────────── */
    .mci-motivos {
        display: flex;
        flex-direction: column;
        gap: 7px;
        margin-bottom: 14px;
    }

    .mci-motivo {
        display: flex;
        gap: 10px;
        padding: 10px 13px;
        border-radius: 8px;
        border: 1px solid;
    }

        .mci-motivo i {
            font-size: 14px;
            margin-top: 1px;
        }

    .mci-mot-err {
        background: #fef2f2;
        border-color: #fecaca;
    }

        .mci-mot-err i {
            color: #dc2626;
        }

    .mci-mot-adv {
        background: #fffbeb;
        border-color: #fde68a;
    }

        .mci-mot-adv i {
            color: #d97706;
        }

    .mci-mot-tit {
        font-size: 13px;
        font-weight: 700;
        color: #1e293b;
    }

    .mci-mot-det {
        font-size: 12.5px;
        color: #475569;
        line-height: 1.5;
        margin-top: 1px;
    }

    /* ── Secciones ──────────────────────────────────────────────────────── */
    .mci-seccion {
        background: #fff;
        border: 1px solid #e2e8f0;
        border-radius: 10px;
        padding: 13px 15px;
        margin-bottom: 14px;
    }

    .mci-seccion-tit {
        display: flex;
        align-items: center;
        gap: 8px;
        font-size: 12px;
        font-weight: 700;
        letter-spacing: .3px;
        text-transform: uppercase;
        color: #0f3494;
        margin-bottom: 11px;
    }

        .mci-seccion-tit small {
            text-transform: none;
            letter-spacing: 0;
            font-weight: 500;
            color: #94a3b8;
            font-size: 11.5px;
        }

    /* ── Comprobaciones ─────────────────────────────────────────────────── */
    .mci-checks {
        display: flex;
        flex-direction: column;
        gap: 8px;
    }

    .mci-check {
        display: flex;
        gap: 11px;
        align-items: flex-start;
        padding: 10px 13px;
        border-radius: 8px;
        border: 1px solid;
    }

        .mci-check > i {
            font-size: 15px;
            margin-top: 2px;
        }

    .mci-ck-ok {
        background: #f0fdf4;
        border-color: #bbf7d0;
    }

        .mci-ck-ok > i {
            color: #16a34a;
        }

    .mci-ck-no {
        background: #fef2f2;
        border-color: #fecaca;
    }

        .mci-ck-no > i {
            color: #dc2626;
        }

    .mci-check-txt {
        flex: 1;
        min-width: 0;
    }

    .mci-check-tit {
        font-size: 13px;
        font-weight: 700;
        color: #1e293b;
    }

    .mci-check-for {
        font-size: 11.5px;
        font-family: ui-monospace, Consolas, monospace;
        color: #64748b;
        margin-top: 2px;
    }

    .mci-check-com {
        font-size: 12px;
        color: #64748b;
        line-height: 1.45;
        margin-top: 3px;
    }

    .mci-check-num {
        display: flex;
        flex-direction: column;
        gap: 2px;
        text-align: right;
        flex-shrink: 0;
    }

        .mci-check-num span {
            font-size: 11px;
            color: #94a3b8;
        }

        .mci-check-num strong {
            color: #1e293b;
            font-variant-numeric: tabular-nums;
            margin-left: 5px;
        }

    .mci-dif strong {
        color: #dc2626;
    }

    /* ── Tabla ──────────────────────────────────────────────────────────── */
    .mci-tabla-wrap {
        max-height: 330px;
        overflow: auto;
        border: 1px solid #e2e8f0;
        border-radius: 8px;
    }

    .mci-tabla {
        width: 100%;
        border-collapse: collapse;
        font-size: 12.5px;
    }

        .mci-tabla thead th {
            position: sticky;
            top: 0;
            background: #f0f4fb;
            color: #0f3494;
            font-size: 11px;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: .3px;
            padding: 8px 10px;
            text-align: left;
            border-bottom: 1px solid #dbe4f5;
            white-space: nowrap;
        }

        .mci-tabla th.n, .mci-tabla td.n {
            text-align: right;
            font-variant-numeric: tabular-nums;
        }

        .mci-tabla td {
            padding: 7px 10px;
            border-bottom: 1px solid #f1f5f9;
            color: #334155;
            white-space: nowrap;
        }

        .mci-tabla tbody tr:hover {
            background: #f8fafc;
        }

    .mci-in td {
        background: #fbfdff;
    }

    .mci-mal td {
        background: #fef2f2;
    }

    .mci-tipo {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 17px;
        height: 17px;
        border-radius: 4px;
        font-size: 10px;
        font-weight: 700;
        color: #fff;
        margin-right: 6px;
    }

    .mci-tipo-in {
        background: #16a34a;
    }

    .mci-tipo-out {
        background: #f97316;
    }

    .mci-mod {
        color: #94a3b8;
        font-size: 11px;
        margin-left: 6px;
    }

    .mci-gris {
        color: #94a3b8;
    }

    .mci-fuerte {
        font-weight: 700;
        color: #0f3494;
    }

    .mci-sube {
        color: #b45309;
        font-weight: 600;
    }

    .mci-baja {
        color: #0369a1;
        font-weight: 600;
    }

    .mci-cero {
        color: #cbd5e1;
        font-size: 11.5px;
    }

    .mci-met {
        font-size: 10.5px;
        font-family: ui-monospace, Consolas, monospace;
        background: #f0f4fb;
        color: #475569;
        padding: 2px 6px;
        border-radius: 4px;
    }

    .mci-met-resp {
        background: #fef3c7;
        color: #b45309;
    }

    /* ── Leyenda ────────────────────────────────────────────────────────── */
    .mci-leyenda {
        display: flex;
        gap: 17px;
        flex-wrap: wrap;
        margin-top: 9px;
        font-size: 11.5px;
        color: #64748b;
    }

    .mci-lg {
        display: inline-block;
        width: 10px;
        height: 10px;
        border-radius: 3px;
        margin-right: 5px;
    }

    .mci-lg-in {
        background: #16a34a;
    }

    .mci-lg-out {
        background: #f97316;
    }

    .mci-lg-mal {
        background: #dc2626;
    }

    /* ── Acumulados ─────────────────────────────────────────────────────── */
    .mci-acum {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
        gap: 1px;
        background: #e2e8f0;
        border: 1px solid #e2e8f0;
        border-radius: 10px;
        overflow: hidden;
    }

        .mci-acum > div {
            background: #fff;
            padding: 10px 13px;
            display: flex;
            flex-direction: column;
            gap: 2px;
        }

        .mci-acum span {
            font-size: 11px;
            color: #94a3b8;
            font-weight: 600;
        }

        .mci-acum strong {
            font-size: 13px;
            color: #1e293b;
            font-variant-numeric: tabular-nums;
        }

    /* ── Pie ────────────────────────────────────────────────────────────── */
    .mci-foot {
        display: flex;
        align-items: center;
        gap: 10px;
        padding: 12px 19px;
        border-top: 1px solid #e2e8f0;
        background: #fff;
    }

    .mci-foot-aviso, .mci-foot-ok {
        flex: 1;
        font-size: 12.5px;
        font-weight: 600;
    }

    .mci-foot-aviso {
        color: #b91c1c;
    }

    .mci-foot-ok {
        color: #15803d;
    }

    .mci-btn-repro, .mci-btn-cerrar {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        padding: 5px 12px;
        height: 31px;
        font-size: 13px;
        font-weight: 600;
        border: none;
        border-radius: 6px;
        color: #fff;
        cursor: pointer;
    }

    .mci-btn-repro {
        background: #1a56db;
    }

    .mci-btn-cerrar {
        background: #374151;
    }
