﻿/* ============================================
   PASTEL BLUE PREMIUM – GOD MODE DESIGN
   ============================================ */
:root {
    --pl-bg: #f4f8fc; /* fondo general muy claro */
    --pl-surface: #ffffff; /* tarjetas */
    --pl-surface-soft: #f0f5ff; /* hover / selección */
    --pl-border: #dce4f0; /* bordes suaves */
    --pl-text: #1e293b; /* texto principal */
    --pl-text-muted: #64748b; /* texto secundario */
    --pl-accent: #3b82f6; /* azul principal */
    --pl-accent-light: #93c5fd; /* azul claro */
    --pl-accent-gradient: linear-gradient(135deg, #3b82f6, #8b5cf6);
    --pl-success: #10b981;
    --pl-warning: #f59e0b;
    --pl-danger: #ef4444;
    --pl-radius: 18px;
    --pl-radius-sm: 12px;
    --pl-shadow-sm: 0 2px 8px rgba(0,0,0,0.02);
    --pl-shadow: 0 12px 32px rgba(0,0,0,0.05);
    --pl-shadow-lg: 0 20px 50px rgba(0,0,0,0.06);
    color-scheme: light;
}

body {
    background: var(--pl-bg);
    color: var(--pl-text);
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

/* ============ LAYOUT ============ */
.pl-page {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    max-width: 1700px;
    margin: 0 auto;
}

/* ============ LOADER ============ */
.pl-loader {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 60vh;
    color: var(--pl-text-muted);
}

.pl-loader-spinner {
    width: 3rem;
    height: 3rem;
    border: 3px solid var(--pl-border);
    border-top-color: var(--pl-accent);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-bottom: 1rem;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ============ HEADER ============ */
.pl-header {
    background: var(--pl-surface);
    border: 1px solid #e2e8f0;
    border-radius: var(--pl-radius);
    padding: 2rem;
    box-shadow: var(--pl-shadow);
}

.pl-header__top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 2rem;
    flex-wrap: wrap;
}

.pl-title-block h1 {
    font-size: 1.75rem;
    font-weight: 700;
    margin: 0;
    /*background: linear-gradient(to right, #1e40af, #3b82f6);*/
    /*-webkit-background-clip: text;
    -webkit-text-fill-color: transparent;*/
    background-clip: text;
}

.pl-subtitle {
    color: var(--pl-text-muted);
    margin-top: 0.5rem;
    font-size: 0.9rem;
}

/* ============ SUMMARY ============ */
.pl-summary {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.pl-summary__item {
    background: var(--pl-surface-soft);
    border: 1px solid #dbeafe;
    border-radius: var(--pl-radius-sm);
    padding: 0.75rem 1.25rem;
    text-align: center;
    min-width: 100px;
    box-shadow: var(--pl-shadow-sm);
    transition: transform 0.2s, box-shadow 0.2s;
}

    .pl-summary__item:hover {
        transform: translateY(-2px);
        box-shadow: var(--pl-shadow);
    }

.pl-summary__label {
    display: block;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #475569;
    margin-bottom: 0.25rem;
}

.pl-summary__value {
    font-size: 1.8rem;
    font-weight: 800;
    color: #0f172a;
}

.pl-summary__item--highlight {
    background: linear-gradient(135deg, #eff6ff, #dbeafe);
    border-color: #93c5fd;
}

    .pl-summary__item--highlight .pl-summary__value {
        color: #1d4ed8;
    }

/* ============ TOOLBAR ============ */
.pl-header__toolbar {
    margin-top: 1.5rem;
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.pl-toolbar-left, .pl-toolbar-right {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.pl-export-config {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.pl-input-label {
    font-weight: 600;
    font-size: 0.85rem;
    color: #334155;
}

/* ============ INPUTS & SELECTS ============ */
.pl-input, .pl-select {
    background: var(--pl-surface);
    border: 1px solid #cbd5e1;
    border-radius: var(--pl-radius-sm);
    padding: 0.5rem 1rem;
    color: var(--pl-text);
    font-size: 0.9rem;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-shadow: var(--pl-shadow-sm);
}

    .pl-input:focus, .pl-select:focus {
        border-color: var(--pl-accent);
        box-shadow: 0 0 0 3px rgba(59,130,246,0.15);
    }

/* ============ BUTTONS ============ */
.pl-btn {
    background: white;
    border: 1px solid #cbd5e1;
    border-radius: var(--pl-radius-sm);
    padding: 0.5rem 1.25rem;
    color: #0f172a;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: var(--pl-shadow-sm);
}

    .pl-btn:hover:not(:disabled) {
        background: #f1f5f9;
        border-color: #93c5fd;
        box-shadow: var(--pl-shadow);
    }

.pl-btn--primary {
    background: var(--pl-accent-gradient);
    border: none;
    color: white;
}

    .pl-btn--primary:hover:not(:disabled) {
        background: linear-gradient(135deg, #2563eb, #7c3aed);
        box-shadow: 0 8px 18px rgba(59,130,246,0.35);
    }

.pl-btn--danger {
    background: #fee2e2;
    border: 1px solid #fecaca;
    color: #b91c1c;
}

    .pl-btn--danger:hover:not(:disabled) {
        background: #fecaca;
    }

.pl-btn--warning {
    background: #fef3c7;
    border: 1px solid #fde68a;
    color: #92400e;
}

.pl-btn--icon {
    padding: 0.4rem 1rem;
    font-size: 0.85rem;
}

/* ============ CHECKBOXES ============ */
.pl-checkbox {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--pl-text-muted);
    cursor: pointer;
}

/* ============ MAIN LAYOUT ============ */
.pl-main {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 1.5rem;
    flex: 1;
    min-height: 0;
}

@media (max-width: 1100px) {
    .pl-main {
        grid-template-columns: 1fr;
    }
}

/* ============ TREE PANEL ============ */
.pl-tree-panel {
    background: var(--pl-surface);
    border: 1px solid #e2e8f0;
    border-radius: var(--pl-radius);
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: var(--pl-shadow);
}

.pl-tree-toolbar {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.pl-search-box {
    position: relative;
    flex: 1;
    min-width: 200px;
}

.pl-search-box__icon {
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
}

.pl-search-box__input {
    padding-left: 2.5rem !important;
    width: 100%;
}

/* ============ TREE ============ */
.pl-tree {
    flex: 1;
    overflow-y: auto;
    padding-right: 0.5rem;
    scroll-behavior: smooth;
}

.pl-tree__node {
    margin-left: 0;
}

.pl-tree__children {
    margin-left: 1.8rem;
    border-left: 1px dashed #cbd5e1;
    padding-left: 1.2rem;
}

/* ============ NODE CARDS ============ */
.pl-node-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.65rem 1rem;
    margin-bottom: 0.6rem;
    border-radius: var(--pl-radius-sm);
    background: #ffffff;
    border: 1px solid #e2e8f0;
    transition: all 0.2s;
    color: var(--pl-text);
    box-shadow: 0 1px 2px rgba(0,0,0,0.02);
}

    .pl-node-card:hover {
        background: #f8fafc;
        border-color: #bfdbfe;
        box-shadow: 0 4px 12px rgba(0,0,0,0.03);
    }

    .pl-node-card.selected {
        background: #eff6ff;
        border-color: #60a5fa;
        box-shadow: 0 0 0 1px rgba(59,130,246,0.1);
    }

    .pl-node-card.active {
        border-color: #3b82f6;
        background: #f0f9ff;
        box-shadow: 0 0 0 2px rgba(59,130,246,0.15);
    }

.pl-node-card__main {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-width: 0;
}

.pl-node-card__expand {
    cursor: pointer;
    color: #64748b;
    font-size: 0.75rem;
    width: 1.2rem;
    text-align: center;
    user-select: none;
}

.pl-node-card__checkbox {
    accent-color: #3b82f6;
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.pl-node-card__icon {
    font-size: 1.1rem;
}

.pl-node-card__title {
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: smaller;
}

.pl-node-card__actions {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    flex-shrink: 0;
}

/* ============ BADGES ============ */
.pl-badge {
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 700;
    background: #f1f5f9;
    color: #475569;
}

.pl-badge--children {
    background: #dbeafe;
    color: #1e40af;
}

.pl-badge--products {
    background: #dcfce7;
    color: #166534;
}

.pl-badge--warning {
    background: #fef3c7;
    color: #92400e;
}

/* ============ NODE ORDER BUTTONS ============ */
.pl-node-order {
    display: flex;
    gap: 0.2rem;
}

.pl-node-order__btn {
    background: transparent;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    font-size: 0.8rem;
    padding: 0.2rem;
    border-radius: 4px;
    transition: background 0.2s;
}

    .pl-node-order__btn:hover {
        background: #e2e8f0;
        color: #0f172a;
    }

/* ============ NODE ACTION BUTTONS ============ */
.pl-node-card__action-btn {
    background: transparent;
    border: 1px solid transparent;
    border-radius: 6px;
    color: #64748b;
    cursor: pointer;
    padding: 0.2rem 0.4rem;
    font-size: 0.85rem;
    transition: all 0.2s;
}

    .pl-node-card__action-btn:hover {
        background: #f1f5f9;
        border-color: #cbd5e1;
        color: #0f172a;
    }

.pl-node-card__action-btn--danger:hover {
    background: #fee2e2;
    border-color: #fecaca;
    color: #b91c1c;
}

/* ============ WORKSPACE (PANEL DERECHO) ============ */
.pl-workspace {
    background: var(--pl-surface);
    border: 1px solid #e2e8f0;
    border-radius: var(--pl-radius);
    overflow: auto;
    box-shadow: var(--pl-shadow);
}

.pl-workspace__empty {
    text-align: center;
    padding: 2rem;
    color: #64748b;
}

.pl-workspace__header {
    margin-bottom: 1.5rem;
}

.pl-workspace__type {
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    color: #3b82f6;
    font-weight: 700;
}

.pl-workspace__header h4 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0.25rem 0 0 0;
}

.pl-workspace__stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.pl-stat-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: var(--pl-radius-sm);
    padding: 1rem;
    text-align: center;
    cursor: pointer;
    transition: background 0.2s, box-shadow 0.2s;
    box-shadow: var(--pl-shadow-sm);
}

    .pl-stat-card:hover {
        background: #eff6ff;
        border-color: #bfdbfe;
        box-shadow: var(--pl-shadow);
    }

    .pl-stat-card span {
        display: block;
        font-size: 1.5rem;
        font-weight: 800;
        color: #0f172a;
    }

    .pl-stat-card small {
        color: #64748b;
        font-size: 0.75rem;
    }

.pl-stat-card--success {
    border-color: #a7f3d0;
    background: #f0fdf4;
}

/* ============ MODALS ============ */
.modal-content {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: var(--pl-radius);
    color: var(--pl-text);
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.15);
}

.pl-modal-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.pl-modal-stats {
    font-size: 0.9rem;
    color: var(--pl-text-muted);
}

/* ============ TABLES ============ */
.pl-table {
    width: 100%;
    border-collapse: collapse;
}

    .pl-table th {
        text-align: left;
        padding: 0.75rem;
        background: #f8fafc;
        border-bottom: 2px solid #e2e8f0;
        color: #475569;
        font-weight: 600;
    }

    .pl-table td {
        padding: 0.75rem;
        border-bottom: 1px solid #f1f5f9;
    }

.pl-product-thumb {
    width: 48px;
    height: 48px;
    object-fit: contain;
    background: #f8fafc;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.pl-product-code {
    font-weight: 700;
    color: #2563eb;
}

/* ============ SCROLLBAR ============ */
.pl-tree::-webkit-scrollbar {
    width: 6px;
}

.pl-tree::-webkit-scrollbar-track {
    background: transparent;
}

.pl-tree::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 10px;
}

    .pl-tree::-webkit-scrollbar-thumb:hover {
        background: #94a3b8;
    }

/* ============================================
   MODAL PRODUCTOS – PASTEL PREMIUM
   ============================================ */

.pl-products-admin {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* ---------- HERO ---------- */
.pl-products-hero {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, #eff6ff, #dbeafe);
    border: 1px solid #bfdbfe;
    border-radius: 18px;
    padding: 1rem;
    color: #1e293b;
    box-shadow: 0 4px 12px rgba(0,0,0,0.02);
}

.pl-products-hero__info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.pl-products-hero__icon {
    width: 64px;
    height: 64px;
    background: white;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.pl-products-hero__type {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #3b82f6;
    background: rgba(59,130,246,0.1);
    padding: 0.2rem 0.8rem;
    border-radius: 999px;
    display: inline-block;
    margin-bottom: 0.5rem;
}

.pl-products-hero__title {
    font-size: 1.6rem;
    font-weight: 700;
    margin: 0;
    color: #0f172a;
}

.pl-products-hero__subtitle {
    margin: 0.25rem 0 0 0;
    font-size: 0.9rem;
    color: #475569;
}

.pl-products-hero__stats {
    display: flex;
    gap: 0.75rem;
}

/* ---------- STAT BADGES ---------- */
.pl-stat-badge {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 0.8rem 1.2rem;
    text-align: center;
    min-width: 80px;
}

    .pl-stat-badge span {
        display: block;
        font-size: 1.5rem;
        font-weight: 800;
        color: #0f172a;
    }

    .pl-stat-badge small {
        font-size: 0.7rem;
        color: #64748b;
    }

.pl-stat-badge--success {
    background: #f0fdf4;
    border-color: #bbf7d0;
}

    .pl-stat-badge--success span {
        color: #166534;
    }

/* ---------- SEARCH ---------- */
.pl-products-search {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: white;
    /*border: 1px solid #e2e8f0;*/
    border-radius: 14px;
    padding: 0.3rem;
    padding-left: 1rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.02);
    margin-left: 10px;
    margin-right: 20px;
}

.pl-products-search__icon {
    color: #94a3b8;
    font-size: 1rem;
}

.pl-products-search__input {
    flex: 1;
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
    padding: 0.6rem 0 !important;
    font-size: 0.9rem;
}

.pl-products-search .pl-btn--primary {
    margin: 0;
    border-radius: 12px;
    padding: 0.6rem 1.5rem;
    font-size: 0.9rem;
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    border: none;
    color: white;
}

/* ---------- LAYOUT ---------- */
.pl-products-layout {
    display: grid;
    grid-template-columns: 1fr 0.9fr;
    gap: 1.5rem;
    margin-top: 0.5rem;
}

/* ---------- COLUMNS ---------- */
.pl-products-column {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 12px rgba(0,0,0,0.02);
}

.pl-products-column--associated {
    border-color: #bbf7d0;
    background: #f9fefb;
}

.pl-products-column__header {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid #f1f5f9;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

    .pl-products-column__header h4 {
        margin: 0;
        font-size: 1rem;
        font-weight: 700;
        color: #0f172a;
    }

    .pl-products-column__header small {
        color: #64748b;
        font-size: 0.75rem;
    }

/* ---------- BADGE COUNT ---------- */
.pl-badge-count {
    background: #f1f5f9;
    color: #334155;
    border-radius: 999px;
    padding: 0.3rem 0.8rem;
    font-weight: 700;
    font-size: 0.8rem;
}

.pl-badge-count--success {
    background: #dcfce7;
    color: #166534;
}

/* ---------- GRID ---------- */
.pl-products-grid {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
    display: grid;
    gap: 0.75rem;
    max-height: 360px;
}

/* ---------- PRODUCT CARD ---------- */
.pl-product-card {
    display: flex;
    gap: 0.75rem;
    background: #ffffff;
    border: 1px solid #e7e7e7;
    border-radius: 14px;
    padding: 0.8rem;
    transition: all 0.2s;
}

    .pl-product-card:hover {
        border-color: #bfdbfe;
        box-shadow: 0 4px 12px rgba(0,0,0,0.03);
        transform: translateY(-1px);
    }

.pl-product-card--associated {
    background: #fafffe;
    border-color: #dcfce7;
}

.pl-product-card__image {
    width: 90px;
    height: 90px;
    background: #f8fafc;
    border-radius: 12px;
    flex-shrink: 0;
    display: inline-table;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 1px solid #f1f5f9;
}

    .pl-product-card__image img {
        max-width: 100%;
        max-height: 100%;
        object-fit: contain;
    }

.pl-product-card__code {
    font-size: 0.75rem;
    font-weight: 700;
    color: #3b82f6;
    background: #eff6ff;
    border-radius: 999px;
    width: fit-content;
    margin-bottom: 0.25rem;
}

.pl-product-card__name {
    font-size: xx-small;
    font-weight: 600;
    color: #1e293b;
    line-height: 1.3;
    margin-bottom: 0.5rem;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pl-product-card__footer {
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.pl-meta-item {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 6px 10px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

    .pl-meta-item strong {
        font-size: 13px;
        color: #0f172a;
        font-weight: 700;
    }

.pl-meta-item--transit {
    background: #eff6ff;
    border-color: #bfdbfe;
}

.pl-product-card__actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 12px;
}

.pl-meta-label {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: #64748b;
    font-weight: 700;
}

.pl-product-card__meta {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    margin-top: 10px;
}

/* ---------- STOCK / ASSOCIATED BADGES ---------- */
.pl-stock-badge {
    font-size: 0.7rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
    color: #475569;
}

.pl-associated-badge {
    font-size: 0.7rem;
    background: #dcfce7;
    color: #166534;
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
    font-weight: 600;
}

/* ---------- BUTTON ICONS ---------- */
.pl-btn-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    border: none;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    box-shadow: 0 2px 6px rgba(0,0,0,0.04);
}

.pl-btn-icon--add {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: white;
}

    .pl-btn-icon--add:hover {
        background: linear-gradient(135deg, #2563eb, #1d4ed8);
        transform: scale(1.05);
        box-shadow: 0 4px 10px rgba(37,99,235,0.3);
    }

.pl-btn-icon--remove {
    background: #fee2e2;
    color: #b91c1c;
    border: 1px solid #fecaca;
}

    .pl-btn-icon--remove:hover {
        background: #fecaca;
        transform: scale(1.05);
    }

/* ---------- EMPTY STATE ---------- */
.pl-modal-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    color: #94a3b8;
    text-align: center;
}

.pl-modal-empty__icon {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
}

.pl-modal-empty h4 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: #64748b;
}

.pl-modal-empty p {
    margin: 0.25rem 0 0 0;
    font-size: 0.85rem;
}

/* Scrollbar suave en el grid */
.pl-products-grid::-webkit-scrollbar {
    width: 5px;
}

.pl-products-grid::-webkit-scrollbar-track {
    background: transparent;
}

.pl-products-grid::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 10px;
}

.export-panel {
    background: white;
    border-radius: 22px;
    padding: 24px;
    border: 1px solid #edf2f7;
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.export-header {
    display: flex;
    align-items: center;
    gap: 16px;
    padding-bottom: 18px;
    border-bottom: 1px solid #f1f5f9;
}

.export-header-icon {
    width: 54px;
    height: 54px;
    border-radius: 16px;
    background: #eef2ff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.export-title {
    font-size: 18px;
    font-weight: 700;
    color: #111827;
}

.export-subtitle {
    font-size: 13px;
    color: #6b7280;
}

.export-step {
    display: flex;
    gap: 14px;
    padding: 18px;
    border-radius: 18px;
    background: #f8fafc;
    border: 1px solid #edf2f7;
}

    .export-step.completed {
        border-color: #c7d2fe;
        background: #eef2ff;
    }

    .export-step.inactive {
        opacity: .7;
    }

.step-number {
    min-width: 34px;
    height: 34px;
    border-radius: 999px;
    background: #111827;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
}

.step-content {
    flex: 1;
}

.step-title {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 4px;
    color: #111827;
}

.step-description {
    font-size: 13px;
    color: #6b7280;
    margin-bottom: 12px;
}

.export-checks {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.export-check {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: #374151;
}

.export-select {
    height: 44px;
    border-radius: 12px;
    border: 1px solid #dbe2ea;
    font-size: 14px;
}

.btn-export-excel {
    width: 100%;
    height: 52px;
    border: none;
    border-radius: 16px;
    background: #111827;
    color: white;
    font-size: 15px;
    font-weight: 700;
    transition: .2s;
}

    .btn-export-excel:hover {
        transform: translateY(-1px);
        background: #1f2937;
    }

    .btn-export-excel:disabled {
        opacity: .5;
        cursor: not-allowed;
        transform: none;
    }

/* ============================================
   MEJORA VISUAL DEL MODAL (Pastel Blue Premium)
   Se mantiene exactamente el mismo HTML.
   ============================================ */

/* Contenedor principal del modal */
.create-node-modal {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Información del padre y tipo */
.create-node-info {
    display: flex;
    gap: 1.5rem;
    padding: 1rem 1.25rem;
    background: #f8fafc;
    border-radius: 18px;
    border: 1px solid #e2edf7;
    font-size: 0.9rem;
}

.create-node-parent,
.create-node-type {
    display: flex;
    gap: 0.5rem;
    align-items: baseline;
    flex-wrap: wrap;
    font-weight: 500;
    color: #475569;
}

    .create-node-parent strong,
    .create-node-type strong {
        color: #0f172a;
        background: white;
        padding: 0.2rem 0.75rem;
        border-radius: 40px;
        font-size: 0.85rem;
        border: 1px solid #e2e8f0;
        font-weight: 600;
    }

/* Área del formulario */
.create-node-form {
    margin: 0;
}

    /* Campo de texto normal */
    .create-node-form .form-control {
        background: var(--pl-surface, #ffffff);
        border: 1px solid #cbd5e1;
        border-radius: 14px;
        padding: 0.7rem 1rem;
        font-size: 0.95rem;
        transition: all 0.2s;
        box-shadow: 0 1px 2px rgba(0,0,0,0.02);
    }

        .create-node-form .form-control:focus {
            border-color: #3b82f6;
            box-shadow: 0 0 0 3px rgba(59,130,246,0.15);
            outline: none;
        }

/* Selector de marca (sap-brand-selector) */
.sap-brand-selector {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

    .sap-brand-selector .form-control {
        background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke="%2394a3b8"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z" /></svg>');
        background-repeat: no-repeat;
        background-position: left 1rem center;
        background-size: 1rem;
        padding-left: 2.8rem;
    }

/* Lista de marcas */
.sap-brand-list {
    max-height: 240px;
    overflow-y: auto;
    border: 1px solid #e2edf7;
    border-radius: 16px;
    background: white;
    padding: 0.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

/* Cada botón de marca */
.sap-brand-item {
    background: #ffffff;
    border: 1px solid #eef2ff;
    border-radius: 14px;
    padding: 0.65rem 1rem;
    text-align: left;
    font-weight: 500;
    color: #1e293b;
    transition: all 0.2s;
    cursor: pointer;
    font-size: 0.9rem;
    width: 100%;
}

    .sap-brand-item:hover {
        background: #f1f5f9;
        border-color: #cbd5e1;
        transform: translateX(4px);
    }

/* Opcional: si quieres que la marca seleccionada tenga un estilo diferente,
   pero como el código original no añade clase "selected", puedes dejarlo así.
   Si tu lógica añade una clase, puedes agregar:
   .sap-brand-item.selected { ... }
*/

/* Botones de acción */
.create-node-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    padding-top: 0.5rem;
    border-top: 1px solid #edf2f7;
    margin-top: 0.5rem;
}

    .create-node-actions .btn-light {
        background: white;
        border: 1px solid #cbd5e1;
        color: #334155;
        padding: 0.5rem 1.25rem;
        border-radius: 12px;
        font-weight: 600;
        transition: all 0.2s;
    }

        .create-node-actions .btn-light:hover {
            background: #f8fafc;
            border-color: #94a3b8;
            transform: translateY(-1px);
        }

    .create-node-actions .btn-primary {
        background: linear-gradient(135deg, #3b82f6, #8b5cf6);
        border: none;
        color: white;
        padding: 0.5rem 1.5rem;
        border-radius: 12px;
        font-weight: 600;
        box-shadow: 0 2px 6px rgba(59,130,246,0.3);
        transition: all 0.2s;
    }

        .create-node-actions .btn-primary:hover {
            background: linear-gradient(135deg, #2563eb, #7c3aed);
            transform: translateY(-1px);
            box-shadow: 0 6px 14px rgba(59,130,246,0.4);
        }

/* Ajustes para el ModalDialog (si es necesario) */
.modal-content {
    border-radius: 24px !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 20px 35px -10px rgba(0,0,0,0.1) !important;
}

.sap-brand-list {
    max-height: 320px;
    overflow-y: auto;
    display: grid;
    gap: 10px;
    margin-top: 14px;
}

.sap-brand-item {
    border: none;
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 14px 16px;
    text-align: left;
    transition: .18s;
    font-size: 14px;
    font-weight: 600;
    color: #374151;
}

    .sap-brand-item:hover {
        background: #eef2ff;
        border-color: #c7d2fe;
        transform: translateY(-1px);
    }

    .sap-brand-item.selected {
        background: #4f46e5;
        color: white;
        border-color: #4f46e5;
        box-shadow: 0 8px 20px rgba(79,70,229,.25);
    }

.selected-brand-preview {
    margin-top: 18px;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px;
    border-radius: 16px;
    background: #ecfdf5;
    border: 1px solid #d1fae5;
}

.selected-brand-icon {
    width: 38px;
    height: 38px;
    border-radius: 999px;
    background: #10b981;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.selected-brand-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: #059669;
    font-weight: 700;
}

.selected-brand-name {
    font-size: 15px;
    font-weight: 700;
    color: #065f46;
}

/* ============================================
   MODAL ELIMINAR NODO – PASTEL BLUE PREMIUM
   ============================================ */

.delete-node-modal {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 0.5rem 0.5rem 0;
    text-align: center;
}

.delete-node-icon {
    width: 72px;
    height: 72px;
    border-radius: 999px;
    background: linear-gradient(135deg, #fee2e2, #fecaca);
    color: #b91c1c;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.25rem;
    box-shadow: 0 8px 20px rgba(239, 68, 68, 0.18);
    margin-bottom: 0.5rem;
}

.delete-node-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0;
}

.delete-node-message {
    font-size: 1rem;
    color: #334155;
    font-weight: 600;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 0.6rem 1.2rem;
    max-width: 100%;
    word-break: break-word;
}

.delete-node-warning {
    font-size: 0.85rem;
    color: #64748b;
    line-height: 1.5;
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: 12px;
    padding: 0.75rem 1rem;
    width: 100%;
}

/* Bloque de razones por las que NO se puede eliminar */
.delete-node-blockers {
    width: 100%;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 14px;
    padding: 1rem 1.2rem;
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.delete-node-blockers__title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    font-weight: 700;
    color: #b91c1c;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.delete-node-blockers__list {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

    .delete-node-blockers__list li {
        display: flex;
        align-items: center;
        gap: 0.6rem;
        font-size: 0.9rem;
        color: #374151;
        background: white;
        border: 1px solid #fecaca;
        border-radius: 10px;
        padding: 0.5rem 0.75rem;
    }

        .delete-node-blockers__list li strong {
            color: #b91c1c;
            font-weight: 700;
        }

.delete-error-box {
    width: 100%;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 12px;
    padding: 0.75rem 1rem;
}

.delete-error-icon {
    color: #b91c1c;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.delete-error-message {
    color: #7f1d1d;
    font-size: 0.85rem;
    line-height: 1.4;
}

.delete-node-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    width: 100%;
    padding-top: 0.75rem;
    border-top: 1px solid #f1f5f9;
    margin-top: 0.5rem;
}

    .delete-node-actions .btn-light {
        background: white;
        border: 1px solid #cbd5e1;
        color: #334155;
        padding: 0.55rem 1.4rem;
        border-radius: 12px;
        font-weight: 600;
        transition: all 0.2s;
    }

        .delete-node-actions .btn-light:hover {
            background: #f8fafc;
            border-color: #94a3b8;
            transform: translateY(-1px);
        }

    .delete-node-actions .btn-danger {
        background: linear-gradient(135deg, #ef4444, #dc2626);
        border: none;
        color: white;
        padding: 0.55rem 1.4rem;
        border-radius: 12px;
        font-weight: 600;
        box-shadow: 0 2px 6px rgba(239, 68, 68, 0.3);
        transition: all 0.2s;
    }

        .delete-node-actions .btn-danger:hover:not(:disabled) {
            background: linear-gradient(135deg, #dc2626, #b91c1c);
            transform: translateY(-1px);
            box-shadow: 0 6px 14px rgba(239, 68, 68, 0.4);
        }

        .delete-node-actions .btn-danger:disabled {
            opacity: 0.5;
            cursor: not-allowed;
            transform: none;
            box-shadow: none;
        }

/* ============================================
   MODAL BUSCADOR GLOBAL DE PRODUCTOS
   ============================================ */

.pl-product-search {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

/* ---------- HERO ---------- */
.pl-product-search__hero {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: linear-gradient(135deg, #eff6ff, #e0e7ff);
    border: 1px solid #c7d2fe;
    border-radius: 18px;
    padding: 1rem 1.25rem;
}

.pl-product-search__hero-icon {
    width: 56px;
    height: 56px;
    background: white;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.pl-product-search__hero-title {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 700;
    color: #0f172a;
}

.pl-product-search__hero-subtitle {
    margin: 0.25rem 0 0 0;
    font-size: 0.85rem;
    color: #475569;
}

/* ---------- SEARCH BAR ---------- */
.pl-product-search__bar {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 0.5rem 1rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.02);
    transition: border-color 0.2s, box-shadow 0.2s;
}

    .pl-product-search__bar:focus-within {
        border-color: #3b82f6;
        box-shadow: 0 0 0 3px rgba(59,130,246,0.15);
    }

.pl-product-search__bar-icon {
    color: #94a3b8;
    font-size: 1rem;
}

.pl-product-search__input {
    flex: 1;
    border: none;
    outline: none;
    background: transparent;
    padding: 0.6rem 0;
    font-size: 0.95rem;
    color: #0f172a;
}

.pl-product-search__spinner {
    width: 1.1rem;
    height: 1.1rem;
    border: 2px solid #e2e8f0;
    border-top-color: #3b82f6;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.pl-product-search__clear {
    border: none;
    background: #f1f5f9;
    color: #64748b;
    width: 26px;
    height: 26px;
    border-radius: 999px;
    cursor: pointer;
    font-size: 0.75rem;
    transition: all 0.2s;
}

    .pl-product-search__clear:hover {
        background: #e2e8f0;
        color: #0f172a;
    }

/* ---------- RESULTS ---------- */
.pl-product-search__results {
    max-height: 460px;
    overflow-y: auto;
    padding-right: 0.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

    .pl-product-search__results::-webkit-scrollbar {
        width: 6px;
    }

    .pl-product-search__results::-webkit-scrollbar-thumb {
        background: #cbd5e1;
        border-radius: 10px;
    }

/* ---------- RESULTS HEADER ---------- */
.pl-product-search__results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.25rem 0.5rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.pl-product-search__results-count {
    font-size: 0.8rem;
    font-weight: 700;
    color: #475569;
    background: #f1f5f9;
    padding: 0.3rem 0.8rem;
    border-radius: 999px;
}

.pl-product-search__results-limit {
    font-size: 0.75rem;
    color: #92400e;
    background: #fef3c7;
    border: 1px solid #fde68a;
    padding: 0.3rem 0.7rem;
    border-radius: 999px;
}

/* ---------- EMPTY ---------- */
.pl-product-search__empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem 1rem;
    text-align: center;
    color: #94a3b8;
}

.pl-product-search__empty-icon {
    font-size: 3rem;
    margin-bottom: 0.75rem;
    opacity: 0.7;
}

.pl-product-search__empty h4 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 700;
    color: #475569;
}

.pl-product-search__empty p {
    margin: 0.4rem 0 0 0;
    font-size: 0.9rem;
    color: #94a3b8;
    max-width: 380px;
}

/* ---------- PRODUCT RESULT CARD ---------- */
.pl-product-result {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 1rem 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    transition: all 0.2s;
}

    .pl-product-result:hover {
        border-color: #bfdbfe;
        box-shadow: 0 6px 18px rgba(59,130,246,0.06);
    }

.pl-product-result__header {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding-bottom: 0.85rem;
    border-bottom: 1px dashed #e2e8f0;
}

.pl-product-result__image {
    width: 56px;
    height: 56px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
}

    .pl-product-result__image img {
        max-width: 100%;
        max-height: 100%;
        object-fit: contain;
    }

.pl-product-result__info {
    flex: 1;
    min-width: 0;
}

.pl-product-result__code {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    color: #1e40af;
    background: #dbeafe;
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
    margin-bottom: 0.25rem;
}

.pl-product-result__name {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 600;
    color: #0f172a;
    line-height: 1.3;
}

.pl-product-result__count {
    text-align: center;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 12px;
    padding: 0.5rem 0.85rem;
    min-width: 75px;
}

    .pl-product-result__count span {
        display: block;
        font-size: 1.35rem;
        font-weight: 800;
        color: #166534;
        line-height: 1;
    }

    .pl-product-result__count small {
        font-size: 0.65rem;
        color: #166534;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.05em;
    }

/* ---------- LOCATIONS ---------- */
.pl-product-result__locations {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.pl-location-card {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 0.55rem 0.85rem;
    transition: all 0.2s;
}

    .pl-location-card:hover {
        background: #eff6ff;
        border-color: #bfdbfe;
        transform: translateX(2px);
    }

.pl-location-card__level {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #3b82f6;
    background: rgba(59,130,246,0.1);
    padding: 0.25rem 0.6rem;
    border-radius: 999px;
    flex-shrink: 0;
}

/* ---------- BREADCRUMB ---------- */
.pl-location-breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.4rem;
    font-size: 0.85rem;
}

.pl-crumb {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 0.2rem 0.6rem;
    font-weight: 600;
    color: #1e293b;
}

.pl-crumb__icon {
    font-size: 0.85rem;
}

.pl-crumb__text {
    font-size: 0.8rem;
}

.pl-crumb__sep {
    color: #cbd5e1;
    font-weight: 700;
    font-size: 0.9rem;
}

/* ============================================
   MODAL CLASIFICACIÓN POR MARCA – PASTEL PREMIUM
   ============================================ */

.pl-classification {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

/* ---------- HERO ---------- */
.pl-classification__hero {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    background: linear-gradient(135deg, #eff6ff, #e0e7ff);
    border: 1px solid #c7d2fe;
    border-radius: 18px;
    padding: 1rem 1.25rem;
    flex-wrap: wrap;
}

.pl-classification__hero-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.pl-classification__hero-icon {
    width: 56px;
    height: 56px;
    background: white;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.pl-classification__hero-title {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 700;
    color: #0f172a;
}

.pl-classification__hero-subtitle {
    margin: 0.25rem 0 0 0;
    font-size: 0.85rem;
    color: #475569;
}

.pl-classification__hero-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.pl-classification__last-update {
    font-size: 0.8rem;
    color: #475569;
    background: white;
    border: 1px solid #e2e8f0;
    padding: 0.4rem 0.75rem;
    border-radius: 999px;
}

/* ---------- LOADING ---------- */
.pl-classification__loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem 1rem;
    text-align: center;
    color: #64748b;
}

    .pl-classification__loading p {
        margin: 1rem 0 0.25rem 0;
        font-weight: 600;
        color: #475569;
    }

    .pl-classification__loading small {
        color: #94a3b8;
    }

/* ---------- EMPTY ---------- */
.pl-classification__empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2.5rem 1rem;
    text-align: center;
    color: #94a3b8;
}

.pl-classification__empty-icon {
    font-size: 3rem;
    margin-bottom: 0.75rem;
    opacity: 0.7;
}

.pl-classification__empty h4 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 700;
    color: #475569;
}

.pl-classification__empty p {
    margin: 0.4rem 0 0 0;
    font-size: 0.9rem;
}

/* ---------- SUMMARY CARDS ---------- */
.pl-classification__summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 0.85rem;
}

.pl-summary-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 1rem 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.02);
}

.pl-summary-card__value {
    font-size: 1.65rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1;
}

.pl-summary-card__label {
    font-size: 0.75rem;
    color: #64748b;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.pl-summary-card__bar {
    margin-top: 0.5rem;
    width: 100%;
    height: 6px;
    background: #f1f5f9;
    border-radius: 999px;
    overflow: hidden;
}

.pl-summary-card__bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #3b82f6, #6366f1);
    border-radius: 999px;
    transition: width 0.5s ease;
}

.pl-summary-card--total {
    background: linear-gradient(135deg, #eff6ff, #dbeafe);
    border-color: #93c5fd;
}

    .pl-summary-card--total .pl-summary-card__value {
        color: #1d4ed8;
    }

.pl-summary-card--success {
    background: linear-gradient(135deg, #f0fdf4, #dcfce7);
    border-color: #86efac;
}

    .pl-summary-card--success .pl-summary-card__value {
        color: #166534;
    }

.pl-summary-card--warning {
    background: linear-gradient(135deg, #fffbeb, #fef3c7);
    border-color: #fcd34d;
}

    .pl-summary-card--warning .pl-summary-card__value {
        color: #92400e;
    }

/* ---------- CONTROLS ---------- */
.pl-classification__controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    padding: 0.5rem 0;
}

.pl-classification__filters {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.pl-filter-btn {
    background: white;
    border: 1px solid #cbd5e1;
    border-radius: 999px;
    padding: 0.45rem 1rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: #334155;
    cursor: pointer;
    transition: all 0.2s;
}

    .pl-filter-btn:hover {
        background: #f1f5f9;
        border-color: #93c5fd;
    }

    .pl-filter-btn.active {
        background: linear-gradient(135deg, #3b82f6, #6366f1);
        color: white;
        border-color: transparent;
        box-shadow: 0 4px 12px rgba(59,130,246,0.3);
    }

.pl-classification__sort {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

    .pl-classification__sort label {
        font-size: 0.85rem;
        color: #64748b;
        font-weight: 600;
    }

    .pl-classification__sort select {
        background: white;
        border: 1px solid #cbd5e1;
        border-radius: 10px;
        padding: 0.4rem 0.75rem;
        font-size: 0.85rem;
        color: #0f172a;
        cursor: pointer;
    }

/* ---------- BRAND LIST ---------- */
.pl-classification__list {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    max-height: 360px;
    overflow-y: auto;
    padding-right: 0.5rem;
}

    .pl-classification__list::-webkit-scrollbar {
        width: 6px;
    }

    .pl-classification__list::-webkit-scrollbar-thumb {
        background: #cbd5e1;
        border-radius: 10px;
    }

/* ---------- BRAND ROW ---------- */
.pl-brand-row {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 0.85rem 1.1rem;
    transition: all 0.2s;
}

    .pl-brand-row:hover {
        box-shadow: 0 6px 18px rgba(0,0,0,0.04);
        border-color: #bfdbfe;
    }

.pl-brand-row--complete {
    background: linear-gradient(135deg, #f9fefb, #f0fdf4);
    border-color: #bbf7d0;
}

.pl-brand-row--ok {
    background: white;
}

.pl-brand-row--warn {
    background: linear-gradient(135deg, #fffdfa, #fffbeb);
    border-color: #fde68a;
}

.pl-brand-row--danger {
    background: linear-gradient(135deg, #fef9f9, #fef2f2);
    border-color: #fecaca;
}

.pl-brand-row__main {
    display: grid;
    grid-template-columns: 1.6fr 2fr 1fr auto;
    align-items: center;
    gap: 1rem;
}

@media (max-width: 900px) {
    .pl-brand-row__main {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
}

.pl-brand-row__name {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
    color: #0f172a;
}

.pl-brand-row__icon {
    font-size: 1.1rem;
}

/* Progress bar */
.pl-brand-row__progress {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.pl-brand-row__bar {
    flex: 1;
    height: 10px;
    background: #f1f5f9;
    border-radius: 999px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
}

.pl-brand-row__bar-fill {
    height: 100%;
    border-radius: 999px;
    transition: width 0.5s ease;
    background: linear-gradient(90deg, #3b82f6, #6366f1);
}

.pl-brand-row__bar-fill--success {
    background: linear-gradient(90deg, #10b981, #22c55e);
}

.pl-brand-row__bar-fill--ok {
    background: linear-gradient(90deg, #3b82f6, #06b6d4);
}

.pl-brand-row__bar-fill--warn {
    background: linear-gradient(90deg, #f59e0b, #facc15);
}

.pl-brand-row__bar-fill--danger {
    background: linear-gradient(90deg, #ef4444, #f97316);
}

.pl-brand-row__percent {
    font-size: 0.9rem;
    font-weight: 800;
    min-width: 56px;
    text-align: right;
}

.pl-brand-row__percent--success {
    color: #166534;
}

.pl-brand-row__percent--ok {
    color: #1e40af;
}

.pl-brand-row__percent--warn {
    color: #92400e;
}

.pl-brand-row__percent--danger {
    color: #b91c1c;
}

.pl-brand-row__counts {
    font-size: 0.85rem;
    color: #334155;
    text-align: right;
}

    .pl-brand-row__counts small {
        display: block;
        color: #94a3b8;
        font-size: 0.72rem;
    }

.pl-brand-row__toggle {
    background: white;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    padding: 0.4rem 0.85rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: #334155;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s;
}

    .pl-brand-row__toggle:hover:not(:disabled) {
        background: #eff6ff;
        border-color: #93c5fd;
        color: #1d4ed8;
    }

    .pl-brand-row__toggle:disabled {
        opacity: 0.4;
        cursor: not-allowed;
    }

/* ---------- MISSING ---------- */
.pl-brand-row__missing {
    margin-top: 0.85rem;
    padding-top: 0.85rem;
    border-top: 1px dashed #e2e8f0;
}

.pl-brand-row__missing-header {
    font-size: 0.8rem;
    font-weight: 700;
    color: #b91c1c;
    margin-bottom: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.pl-brand-row__missing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 0.4rem;
}

.pl-missing-item {
    background: white;
    border: 1px solid #fecaca;
    border-radius: 10px;
    padding: 0.45rem 0.7rem;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.pl-missing-item__code {
    font-size: 0.75rem;
    font-weight: 700;
    color: #b91c1c;
}

.pl-missing-item__name {
    font-size: 0.72rem;
    color: #475569;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pl-brand-row__missing-more {
    margin-top: 0.5rem;
    text-align: center;
    font-size: 0.8rem;
    color: #94a3b8;
    font-style: italic;
}

.order-options {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: auto;
}

.order-option {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: white;
    border: 1px solid #dbe3f0;
    border-radius: 14px;
    cursor: pointer;
    transition: all .2s ease;
    font-size: 13px;
    font-weight: 600;
    color: #475569;
    user-select: none;
}

    .order-option:hover {
        border-color: #3b82f6;
        transform: translateY(-1px);
        box-shadow: 0 8px 20px rgba(59,130,246,.12);
    }

    .order-option.active {
        background: linear-gradient( 135deg, #2563eb, #3b82f6 );
        color: white;
        border-color: #2563eb;
        box-shadow: 0 12px 30px rgba(37,99,235,.25);
    }

    .order-option input {
        display: none;
    }

    .order-option i {
        font-size: 14px;
    }
