/* ============================================================
   MONDO CÁRNICO — Estilos globales v1.0
   Paleta: #CC0000 rojo | #111111 negro | #6C757D gris | #FFFFFF blanco
   ============================================================ */

:root {
    --mc-red:       #CC0000;
    --mc-red-dark:  #990000;
    --mc-red-light: rgba(204,0,0,.10);
    --mc-dark:      #111111;
    --mc-dark2:     #1a1a1a;
    --mc-dark3:     #242424;
    --mc-grey:      #6C757D;
    --mc-light:     #F4F4F4;
    --mc-border:    #E5E5E5;
    --sidebar-w:    240px;
    --navbar-h:     58px;
    --radius:       7px;
    --shadow:       0 2px 8px rgba(0,0,0,.07);
}

/* ── Reset base ──────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    background: var(--mc-light);
    color: var(--mc-dark);
    margin: 0;
    font-size: 14px;
}
a { color: var(--mc-red); text-decoration: none; }
a:hover { color: var(--mc-red-dark); }

/* ── Navbar ──────────────────────────────────────────── */
.mc-navbar {
    background: #ffffff;
    height: var(--navbar-h);
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1040;
    display: flex;
    align-items: center;
    padding: 0 1.5rem;
    border-bottom: 3px solid var(--mc-red);
    box-shadow: 0 2px 12px rgba(0,0,0,.06);
    gap: 1rem;
}
.mc-navbar .mc-brand {
    display: flex;
    align-items: center;
    gap: .7rem;
    color: var(--mc-grey);
    font-weight: 800;
    font-size: 1rem;
    letter-spacing: 1.5px;
    text-decoration: none;
    white-space: nowrap;
}
.mc-navbar .mc-brand img  { height: 38px; width: auto; object-fit: contain; }
.mc-navbar .mc-brand span { color: var(--mc-red); }

.mc-navbar .mc-nav-right {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 1.25rem;
}
.mc-navbar .mc-user-info {
    display: flex;
    align-items: center;
    gap: .5rem;
    color: var(--mc-grey);
    font-size: .82rem;
}
.mc-navbar .mc-user-info i { color: #aaa !important; }
.mc-navbar .mc-user-info .mc-badge-rol {
    background: var(--mc-red-light);
    border: 1px solid var(--mc-red);
    color: var(--mc-red);
    font-size: .68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .8px;
    padding: .15rem .5rem;
    border-radius: 3px;
}
.mc-navbar .mc-user-info strong { color: var(--mc-dark); }
.mc-navbar .mc-btn-logout {
    background: transparent;
    border: 1px solid #ddd;
    color: var(--mc-grey);
    font-size: .78rem;
    padding: .3rem .75rem;
    border-radius: 4px;
    cursor: pointer;
    transition: all .15s;
    display: flex;
    align-items: center;
    gap: .35rem;
    text-decoration: none;
}
.mc-navbar .mc-btn-logout:hover { border-color: var(--mc-red); color: var(--mc-red); background: var(--mc-red-light); }

/* ── Sidebar ─────────────────────────────────────────── */
.mc-sidebar {
    width: var(--sidebar-w);
    background: var(--mc-dark2);
    position: fixed;
    top: var(--navbar-h);
    left: 0;
    bottom: 0;
    z-index: 1030;
    overflow-y: auto;
    overflow-x: hidden;
    border-right: 1px solid #2b2b2b;
    padding: .75rem 0 2rem;
    scrollbar-width: thin;
    scrollbar-color: #333 transparent;
}
.mc-sidebar::-webkit-scrollbar { width: 4px; }
.mc-sidebar::-webkit-scrollbar-track { background: transparent; }
.mc-sidebar::-webkit-scrollbar-thumb { background: #333; border-radius: 2px; }

.mc-sidebar .mc-nav-section {
    padding: .6rem 1.25rem .2rem;
    font-size: .65rem;
    color: #444;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-top: .5rem;
}
.mc-sidebar .mc-nav-link {
    display: flex;
    align-items: center;
    gap: .65rem;
    padding: .55rem 1.25rem;
    color: #999;
    font-size: .83rem;
    font-weight: 500;
    border-left: 3px solid transparent;
    transition: background .12s, color .12s, border-color .12s;
    cursor: pointer;
    white-space: nowrap;
}
.mc-sidebar .mc-nav-link i { font-size: .95rem; width: 16px; text-align: center; }
.mc-sidebar .mc-nav-link:hover {
    background: rgba(204,0,0,.08);
    color: #e0e0e0;
    border-left-color: rgba(204,0,0,.4);
}
.mc-sidebar .mc-nav-link.active {
    background: rgba(204,0,0,.14);
    color: #fff;
    border-left-color: var(--mc-red);
    font-weight: 600;
}
.mc-sidebar .mc-nav-link.active i { color: var(--mc-red); }

.mc-sidebar .mc-sidebar-divider {
    height: 1px;
    background: #2a2a2a;
    margin: .75rem 1.25rem;
}

/* ── Layout principal ────────────────────────────────── */
.mc-main {
    margin-left: var(--sidebar-w);
    margin-top: var(--navbar-h);
    padding: 1.75rem 2rem 3rem;
    min-height: calc(100vh - var(--navbar-h));
}

/* ── Page header ─────────────────────────────────────── */
.mc-page-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: .75rem;
}
.mc-page-header-left h1 {
    font-size: 1.3rem;
    font-weight: 800;
    margin: 0 0 .15rem;
    color: var(--mc-dark);
}
.mc-page-header-left .mc-breadcrumb {
    font-size: .75rem;
    color: var(--mc-grey);
    display: flex;
    align-items: center;
    gap: .35rem;
}
.mc-page-header-left .mc-breadcrumb i { font-size: .7rem; }

/* ── Tarjetas stat ───────────────────────────────────── */
.mc-stat {
    background: #fff;
    border-radius: var(--radius);
    padding: 1.25rem 1.5rem;
    border-left: 4px solid var(--mc-red);
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}
.mc-stat .mc-stat-info .mc-stat-num {
    font-size: 2rem;
    font-weight: 800;
    line-height: 1;
    color: var(--mc-dark);
}
.mc-stat .mc-stat-info .mc-stat-label {
    font-size: .7rem;
    color: var(--mc-grey);
    text-transform: uppercase;
    letter-spacing: .8px;
    margin-top: .3rem;
}
.mc-stat .mc-stat-icon {
    font-size: 2.2rem;
    color: var(--mc-red);
    opacity: .18;
}

/* ── Cards ───────────────────────────────────────────── */
.mc-card {
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin-bottom: 1.5rem;
    overflow: hidden;
}
.mc-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--mc-border);
}
.mc-card-header h5 {
    font-size: .9rem;
    font-weight: 700;
    margin: 0;
    color: var(--mc-dark);
    display: flex;
    align-items: center;
    gap: .5rem;
}
.mc-card-header h5 i { color: var(--mc-red); }
.mc-card-body { padding: 1.5rem; }

/* ── Tablas ──────────────────────────────────────────── */
.mc-table-wrap { overflow-x: auto; }
.mc-table {
    width: 100%;
    border-collapse: collapse;
    font-size: .83rem;
}
.mc-table thead th {
    background: var(--mc-dark);
    color: #ccc;
    font-size: .68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .9px;
    padding: .65rem 1rem;
    border: none;
    white-space: nowrap;
}
.mc-table thead th:first-child { border-radius: 0; }
.mc-table tbody tr { border-bottom: 1px solid #f0f0f0; transition: background .1s; }
.mc-table tbody tr:last-child { border-bottom: none; }
.mc-table tbody tr:hover { background: #fafafa; }
.mc-table tbody td {
    padding: .65rem 1rem;
    vertical-align: middle;
    color: var(--mc-dark);
}
.mc-table .td-muted { color: var(--mc-grey); font-size: .78rem; }

/* ── Botones ─────────────────────────────────────────── */
.btn-mc {
    background: var(--mc-red);
    color: #fff !important;
    border: none;
    border-radius: 5px;
    padding: .45rem 1.1rem;
    font-size: .83rem;
    font-weight: 600;
    transition: background .15s, transform .1s;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    line-height: 1.5;
}
.btn-mc:hover { background: var(--mc-red-dark); transform: translateY(-1px); }
.btn-mc:active { transform: translateY(0); }

.btn-mc-sm { padding: .3rem .75rem; font-size: .78rem; }

.btn-mc-outline {
    background: transparent;
    border: 1.5px solid var(--mc-red);
    color: var(--mc-red) !important;
    border-radius: 5px;
    padding: .4rem 1rem;
    font-size: .83rem;
    font-weight: 600;
    transition: all .15s;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    line-height: 1.5;
}
.btn-mc-outline:hover { background: var(--mc-red); color: #fff !important; }

.btn-mc-ghost {
    background: transparent;
    border: none;
    color: var(--mc-grey);
    padding: .35rem .7rem;
    border-radius: 4px;
    font-size: .83rem;
    cursor: pointer;
    transition: background .12s, color .12s;
    display: inline-flex;
    align-items: center;
    gap: .35rem;
}
.btn-mc-ghost:hover { background: #f0f0f0; color: var(--mc-dark); }

/* ── Badges de estado ────────────────────────────────── */
.mc-badge {
    display: inline-block;
    padding: .22rem .6rem;
    border-radius: 4px;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .3px;
    white-space: nowrap;
}
.mc-badge-canalera   { background: #e8f0fe; color: #1a56db; }
.mc-badge-deshuese   { background: #fff3cd; color: #856404; }
.mc-badge-deshuesado { background: #d1e7dd; color: #0a6640; }
.mc-badge-completado { background: #f0f0f0; color: #555; }
.mc-badge-abierto    { background: #fff3cd; color: #856404; }
.mc-badge-cerrado    { background: #d1e7dd; color: #0a6640; }
.mc-badge-empacando  { background: #e8f0fe; color: #1a56db; }
.mc-badge-stock      { background: #d1e7dd; color: #0a6640; }
.mc-badge-en_stock   { background: #d1e7dd; color: #0a6640; }
.mc-badge-vendido    { background: #e8f0fe; color: #1a56db; }
.mc-badge-devuelto   { background: #fff3cd; color: #856404; }
.mc-badge-merma      { background: #fde8e8; color: #b91c1c; }
.mc-badge-activa             { background: #d1e7dd; color: #0a6640; }
.mc-badge-cancelada          { background: #fde8e8; color: #b91c1c; }
.mc-badge-devolucion_parcial { background: #fff3cd; color: #856404; }

/* ── Formularios ─────────────────────────────────────── */
.mc-form-label {
    font-size: .75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .7px;
    color: var(--mc-grey);
    margin-bottom: .35rem;
    display: block;
}
.mc-form-control {
    width: 100%;
    padding: .5rem .85rem;
    border: 1.5px solid var(--mc-border);
    border-radius: 5px;
    font-size: .875rem;
    color: var(--mc-dark);
    background: #fff;
    transition: border-color .15s, box-shadow .15s;
    outline: none;
}
.mc-form-control:focus {
    border-color: var(--mc-red);
    box-shadow: 0 0 0 3px rgba(204,0,0,.12);
}
.mc-form-control::placeholder { color: #bbb; }

/* ── Folio / código ──────────────────────────────────── */
.mc-folio {
    font-family: 'Courier New', monospace;
    background: #f4f4f4;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    padding: .18rem .55rem;
    font-size: .8rem;
    font-weight: 700;
    color: var(--mc-dark);
    white-space: nowrap;
}

/* ── Alerts flash ────────────────────────────────────── */
.mc-alert {
    padding: .8rem 1rem;
    border-radius: var(--radius);
    margin-bottom: 1.25rem;
    font-size: .85rem;
    display: flex;
    align-items: center;
    gap: .65rem;
}
.mc-alert i { font-size: 1rem; flex-shrink: 0; }
.mc-alert-error   { background: #fde8e8; border: 1px solid #fca5a5; color: #b91c1c; }
.mc-alert-success { background: #d1e7dd; border: 1px solid #86efac; color: #166534; }
.mc-alert-warning { background: #fff3cd; border: 1px solid #fcd34d; color: #854d0e; }
.mc-alert-info    { background: #e8f0fe; border: 1px solid #93c5fd; color: #1e40af; }

/* ── Login page ──────────────────────────────────────── */
.mc-login-bg {
    min-height: 100vh;
    background: var(--mc-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}
.mc-login-bg::before {
    content: '';
    position: fixed;
    inset: 0;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(204,0,0,.07) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 20%, rgba(204,0,0,.05) 0%, transparent 50%);
    pointer-events: none;
}
.mc-login-card {
    background: var(--mc-dark2);
    border-radius: 12px;
    padding: 2.5rem 2rem;
    width: 100%;
    max-width: 400px;
    border-top: 4px solid var(--mc-red);
    box-shadow: 0 20px 60px rgba(0,0,0,.5);
    position: relative;
    z-index: 1;
}
.mc-login-logo {
    text-align: center;
    margin-bottom: 2rem;
}
.mc-login-logo img {
    height: 60px;
    width: auto;
    margin-bottom: .75rem;
    display: block;
    margin-inline: auto;
}
.mc-login-logo h2 {
    color: #fff;
    font-weight: 800;
    font-size: 1.25rem;
    margin: 0;
    letter-spacing: 1px;
}
.mc-login-logo h2 span { color: var(--mc-red); }
.mc-login-logo p {
    color: #555;
    font-size: .78rem;
    margin: .3rem 0 0;
    letter-spacing: .5px;
}
.mc-login-card .mc-form-label { color: #666; }
.mc-login-card .mc-form-control {
    background: #111;
    border-color: #2a2a2a;
    color: #e0e0e0;
}
.mc-login-card .mc-form-control:focus {
    border-color: var(--mc-red);
    background: #111;
}
.mc-login-card .mc-form-control::placeholder { color: #444; }

/* ── Utilities ───────────────────────────────────────── */
.text-mc-red  { color: var(--mc-red); }
.text-mc-grey { color: var(--mc-grey); }
.text-mc-muted { color: #aaa; font-size: .78rem; }
.fw-800 { font-weight: 800; }
.gap-2 { gap: .5rem; }
.d-flex { display: flex; }
.align-center { align-items: center; }

/* ── Selector de canales (deshuese/crear) ──────────── */
.mc-canal-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: .75rem;
    max-height: 520px;
    overflow-y: auto;
    padding: .25rem;
}
.mc-canal-pick {
    position: relative;
    display: block;
    cursor: pointer;
    margin: 0;
}
.mc-canal-pick input[type="checkbox"] {
    position: absolute;
    top: .5rem;
    right: .5rem;
    width: 18px;
    height: 18px;
    accent-color: var(--mc-red);
    cursor: pointer;
}
.mc-canal-pick-body {
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    padding: .75rem .85rem;
    background: #fff;
    transition: all .15s;
    height: 100%;
}
.mc-canal-pick:hover .mc-canal-pick-body {
    border-color: #cbd5e1;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,.06);
}
.mc-canal-pick input:checked + .mc-canal-pick-body {
    border-color: var(--mc-red);
    background: #fff5f5;
    box-shadow: 0 2px 8px rgba(204,0,0,.15);
}
.mc-canal-pick-folio {
    font-family: 'Courier New', monospace;
    font-weight: 700;
    font-size: .9rem;
    color: var(--mc-dark);
    margin-bottom: .5rem;
    padding-right: 1.5rem;
}
.mc-canal-pick-meta {
    font-size: .78rem;
    color: #555;
    display: flex;
    flex-direction: column;
    gap: .2rem;
}
.mc-canal-pick-meta i {
    color: #aaa;
    width: 14px;
    display: inline-block;
}

/* ── Resumen líneas (key/value) ─────────────────────── */
.mc-resumen-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: .5rem 0;
    border-bottom: 1px dashed #eee;
    font-size: .88rem;
}
.mc-resumen-line:last-child { border-bottom: none; }
.mc-resumen-line span { color: var(--mc-grey); }
.mc-resumen-line strong { color: var(--mc-dark); }

.text-end { text-align: right; }
.w-100 { width: 100%; }

/* ── Selector de cortes (empaque/crear) ─────────────── */
.mc-cortes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: .65rem;
    max-height: 480px;
    overflow-y: auto;
    padding: .25rem;
}
.mc-corte-pick {
    position: relative;
    display: block;
    cursor: pointer;
    margin: 0;
}
.mc-corte-pick input[type="radio"] {
    position: absolute;
    top: .55rem;
    right: .55rem;
    width: 18px;
    height: 18px;
    accent-color: var(--mc-red);
    cursor: pointer;
    z-index: 1;
}
.mc-corte-pick-body {
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    padding: .7rem .85rem;
    background: #fff;
    transition: all .15s;
}
.mc-corte-pick:hover .mc-corte-pick-body {
    border-color: #cbd5e1;
    box-shadow: 0 4px 12px rgba(0,0,0,.06);
}
.mc-corte-pick input:checked + .mc-corte-pick-body {
    border-color: var(--mc-red);
    background: #fff5f5;
    box-shadow: 0 2px 8px rgba(204,0,0,.15);
}
.mc-corte-pick-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: .5rem;
    padding-right: 1.5rem;
    margin-bottom: .35rem;
    font-size: .9rem;
}
.mc-corte-pick-meta {
    font-size: .76rem;
    color: #555;
    display: flex;
    flex-direction: column;
    gap: .15rem;
}
.mc-corte-pick-meta i { color: #aaa; width: 14px; display: inline-block; }
.mc-corte-pick-free .mc-corte-pick-body {
    background: #fafafa;
    border-style: dashed;
}
.mc-corte-pick-free input:checked + .mc-corte-pick-body {
    background: #fff5f5;
    border-style: solid;
}
.mc-disp-tag {
    display: inline-block;
    background: #d1e7dd;
    color: #0a6640;
    padding: .12rem .5rem;
    border-radius: 4px;
    font-size: .72rem;
    font-weight: 700;
    white-space: nowrap;
}

/* ── Trazabilidad flow (empaque/detalle) ────────────── */
.mc-traza-flow {
    display: flex;
    align-items: center;
    gap: .5rem;
    flex-wrap: wrap;
}
.mc-traza-step {
    flex: 1;
    min-width: 130px;
    display: flex;
    align-items: center;
    gap: .6rem;
    padding: .65rem .85rem;
    background: #f8f9fa;
    border-radius: 6px;
    border-left: 3px solid #cbd5e1;
}
.mc-traza-step i {
    font-size: 1.2rem;
    color: #6C757D;
}
.mc-traza-step div { font-size: .82rem; }
.mc-traza-step .text-mc-muted { font-size: .72rem; }
.mc-traza-step-final {
    background: #fff5f5;
    border-left-color: var(--mc-red);
}
.mc-traza-step-final i { color: var(--mc-red); }
.mc-traza-arrow {
    color: #cbd5e1;
    font-size: 1.2rem;
}

/* ── Ventas: grid de productos disponibles ──────────── */
.mc-productos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: .75rem;
    max-height: 560px;
    overflow-y: auto;
    padding-right: .25rem;
}
.mc-producto-card {
    border: 1px solid var(--mc-border);
    border-radius: 8px;
    padding: .75rem;
    background: #fff;
    display: flex;
    flex-direction: column;
    gap: .3rem;
    transition: all .15s;
    cursor: default;
}
.mc-producto-card:hover {
    border-color: var(--mc-red);
    box-shadow: 0 2px 8px rgba(204,0,0,.08);
    transform: translateY(-1px);
}
.mc-producto-card.mc-producto-selected {
    border-color: #0a6640;
    background: #f0fdf4;
}
.mc-producto-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: .4rem;
}
.mc-producto-head .mc-folio {
    font-size: .68rem;
    background: #f4f4f4;
    padding: .1rem .4rem;
    border-radius: 3px;
    color: #555;
    font-weight: 600;
}
.mc-producto-nombre {
    font-size: .88rem;
    line-height: 1.2;
    min-height: 2.4em;
}
.mc-producto-nombre strong { display: block; color: #111; }
.mc-producto-meta {
    display: flex;
    justify-content: space-between;
    font-size: .75rem;
    color: #6C757D;
    padding-top: .2rem;
    border-top: 1px dashed #eee;
}
.mc-producto-peso {
    font-weight: 700;
    color: var(--mc-red);
}

/* ── Ventas: líneas del carrito ─────────────────────── */
.mc-linea-venta {
    border: 1px solid var(--mc-border);
    border-radius: 7px;
    padding: .65rem .75rem;
    margin-bottom: .5rem;
    background: #fafafa;
}
.mc-linea-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: .5rem;
    margin-bottom: .4rem;
}
.mc-linea-head strong {
    font-size: .9rem;
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
}
.mc-linea-precio {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: .5rem;
    padding-top: .3rem;
    border-top: 1px dashed #e5e5e5;
}

/* ── Dashboard: mini bar chart ───────────────────────── */
.mc-barchart {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: .5rem;
    height: 200px;
    padding: .5rem .25rem 0;
}
.mc-bar-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .3rem;
    min-width: 0;
}
.mc-bar-val {
    font-size: .65rem;
    color: #6C757D;
    font-weight: 600;
    height: 14px;
}
.mc-bar-fill-wrap {
    width: 100%;
    flex: 1;
    display: flex;
    align-items: flex-end;
    min-height: 0;
}
.mc-bar-fill {
    width: 100%;
    background: linear-gradient(180deg, #0a6640 0%, #0d8050 100%);
    border-radius: 4px 4px 0 0;
    min-height: 3px;
    transition: height .3s ease;
}
.mc-bar-fill.mc-bar-today {
    background: linear-gradient(180deg, #CC0000 0%, #990000 100%);
}
.mc-bar-label {
    font-size: .7rem;
    text-align: center;
    color: #6C757D;
    line-height: 1.1;
}
.mc-bar-label small {
    font-size: .65rem;
    color: #111;
    font-weight: 700;
}

/* ── Dashboard: top cortes ───────────────────────────── */
.mc-top-row {
    padding: .5rem 0;
    border-bottom: 1px dashed #eee;
}
.mc-top-row:last-child { border-bottom: none; }
.mc-top-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: .85rem;
    margin-bottom: .25rem;
}
.mc-top-bar {
    height: 6px;
    background: #f0f0f0;
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: .2rem;
}
.mc-top-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #CC0000 0%, #ff4444 100%);
    border-radius: 3px;
    transition: width .3s ease;
}

/* ── Dashboard: por vencer ───────────────────────────── */
.mc-vence-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .5rem;
    padding: .55rem .75rem;
    margin-bottom: .4rem;
    background: #fafafa;
    border-left: 3px solid #856404;
    border-radius: 5px;
}
.mc-vence-row:last-child { margin-bottom: 0; }
.mc-vence-row strong { font-size: .85rem; display: block; }

/* ── Responsive ──────────────────────────────────────── */
@media (max-width: 768px) {
    .mc-sidebar { transform: translateX(-100%); transition: transform .25s; }
    .mc-sidebar.open { transform: translateX(0); }
    .mc-main { margin-left: 0; }
    .mc-canal-grid  { grid-template-columns: 1fr; }
    .mc-cortes-grid { grid-template-columns: 1fr; }
    .mc-productos-grid { grid-template-columns: repeat(2, 1fr); max-height: none; }
    .mc-traza-flow  { flex-direction: column; align-items: stretch; }
    .mc-traza-arrow { transform: rotate(90deg); align-self: center; }
}