/* === Merkado App Styles === */

:root {
    --brand-red: #d22325;
    --brand-red-dark: #a81b1d;
    --sidebar-bg: #1e1e1e;
}

body { background: #f5f6f8; }

.brand-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px; height: 34px;
    background: var(--brand-red);
    color: #fff;
    font-weight: 800;
    border-radius: 6px;
    letter-spacing: -1px;
}

.sidebar { min-height: calc(100vh - 56px); }
.nav-side .nav-link {
    color: #cfcfcf;
    padding: .55rem 1.1rem;
    border-left: 3px solid transparent;
}
.nav-side .nav-link:hover { color: #fff; background: rgba(255,255,255,.04); }
.nav-side .nav-link.active {
    color: #fff;
    background: rgba(210,35,37,.12);
    border-left-color: var(--brand-red);
}
.nav-side .nav-link i { width: 1.2rem; display: inline-block; }

.btn-brand { background: var(--brand-red); border-color: var(--brand-red); color: #fff; }
.btn-brand:hover { background: var(--brand-red-dark); border-color: var(--brand-red-dark); color: #fff; }

.card { border: 1px solid #e5e7eb; border-radius: .65rem; }
.card-header { background: #fff; border-bottom: 1px solid #eef0f3; font-weight: 600; }

.table thead th { background: #f8f9fb; font-size: .82rem; text-transform: uppercase; letter-spacing: .03em; color: #6b7280; }
.table td, .table th { vertical-align: middle; }

.badge-stage { padding: .4em .65em; font-weight: 600; letter-spacing: .02em; }

.quote-row { display: flex; gap: .75rem; align-items: end; flex-wrap: wrap; padding: 1rem; border: 1px dashed #d1d5db; border-radius: .55rem; margin-bottom: .75rem; background: #fff; }
.quote-row .col-desc { flex: 1 1 220px; }

.dropzone {
    border: 2px dashed #cbd5e1;
    border-radius: .55rem;
    padding: 2rem;
    text-align: center;
    color: #64748b;
    background: #fff;
}
.dropzone.dragover { border-color: var(--brand-red); background: #fff5f5; }

.kpi-card { padding: 1.1rem 1.2rem; }
.kpi-card .kpi-num { font-size: 1.7rem; font-weight: 700; line-height: 1; }
.kpi-card .kpi-label { color: #6b7280; font-size: .85rem; }

.stage-bar { display: flex; gap: 4px; margin: .5rem 0; }
.stage-bar .step { flex: 1; height: 6px; background: #e5e7eb; border-radius: 3px; }
.stage-bar .step.done { background: var(--brand-red); }

/* === Kanban del taller === */
.kanban {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    padding-bottom: 1rem;
}
.kanban-col {
    flex: 1 1 320px;
    min-width: 280px;
    max-width: 380px;
    background: #f1f3f6;
    border-radius: .55rem;
    display: flex;
    flex-direction: column;
}
.kanban-col-header {
    padding: .75rem 1rem;
    font-weight: 600;
    border-bottom: 1px solid #e2e4e8;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.kanban-col-body {
    padding: .5rem;
    min-height: 200px;
    flex: 1;
}
.kanban-card {
    background: #fff;
    border: 1px solid #e2e4e8;
    border-left: 4px solid #ccc;
    border-radius: .45rem;
    padding: .65rem .75rem;
    margin-bottom: .5rem;
    cursor: grab;
    transition: transform .12s, box-shadow .12s;
}
.kanban-card:hover { transform: translateY(-1px); box-shadow: 0 3px 8px rgba(0,0,0,.08); }
.kanban-card:active { cursor: grabbing; }
.kanban-card.border-danger  { border-left-color: var(--bs-danger); }
.kanban-card.border-warning { border-left-color: var(--bs-warning); }
.kanban-card.border-info    { border-left-color: var(--bs-info); }
.kanban-ghost { opacity: .4; }
.kanban-drag  { transform: rotate(2deg); }

@media (max-width: 768px) {
    .kanban { flex-direction: column; }
    .kanban-col { max-width: 100%; min-width: auto; }
}

/* === POS === */
.pos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: .75rem;
}
.pos-product {
    background: #fff;
    border: 1px solid #e2e4e8;
    border-radius: .55rem;
    padding: 1rem .75rem;
    text-align: center;
    cursor: pointer;
    transition: transform .1s, box-shadow .1s, border-color .1s;
    min-height: 90px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.pos-product:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,0,0,.08);
    border-color: var(--brand-red);
}
.pos-product:active { transform: scale(.97); }
.pos-product-name { font-weight: 600; font-size: .9rem; line-height: 1.2; }
.pos-product-price { color: var(--brand-red); font-weight: 700; margin-top: .35rem; font-size: 1rem; }