﻿/* ============================================
   PASTEL BLUE PREMIUM — ULTRA EDITION
   Price Lists Module — Single Source of Truth
   ============================================ */

/* ═══════════════════════════════════════════
   §1  TOKENS & FOUNDATIONS
   ═══════════════════════════════════════════ */

:root {
    --pl-bg: #f4f8fc;
    --pl-surface: #ffffff;
    --pl-surface-soft: #f0f5ff;
    --pl-border: #dce4f0;
    --pl-text: #1e293b;
    --pl-text-muted: #64748b;
    --pl-accent: #3b82f6;
    --pl-accent-light: #93c5fd;
    --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-radius-lg: 16px;
    --pl-radius-xl: 20px;
    --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);
    --pl-primary: #6ea8fe;
    --pl-primary-dark: #4d8bf0;
    --pl-transition: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    color-scheme: light;
}

/* ═══════════════════════════════════════════
   §2  ANIMATIONS
   ═══════════════════════════════════════════ */

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes qtFadeSlideIn {
    from {
        opacity: 0;
        transform: translateY(12px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes plPulse {
    0%, 100% {
        opacity: 1;
    }

    50% {
        opacity: 0.6;
    }
}

@keyframes plScaleIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes plSlideUp {
    from {
        opacity: 0;
        transform: translateY(16px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes plShimmer {
    0% {
        background-position: -200% 0;
    }

    100% {
        background-position: 200% 0;
    }
}

/* ═══════════════════════════════════════════
   §3  PAGE LAYOUT
   ═══════════════════════════════════════════ */

.pl-page {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    max-width: 1700px;
    margin: 0 auto;
    padding-top: 20px;
}

.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;
    }
}

/* ═══════════════════════════════════════════
   §4  LOADER
   ═══════════════════════════════════════════ */

.pl-loader {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 60vh;
    color: var(--pl-text-muted);
    animation: plPulse 1.5s ease-in-out infinite;
}

.pl-loader--inline {
    height: auto;
    padding: 24px 0;
}

.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;
}

/* ═══════════════════════════════════════════
   §5  HEADER (legacy /price admin)
   ═══════════════════════════════════════════ */

.pl-header {
    background: #153286;
    border: 1px solid #e2e8f0;
    border-radius: var(--pl-radius);
    padding: 2rem;
    box-shadow: var(--pl-shadow);
    animation: qtFadeSlideIn 0.3s ease both;
}

.pl-header__top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 2rem;
    flex-wrap: wrap;
}

.pl-title {
    font-size: 1.75rem;
    font-weight: bold;
    margin: 0;
    color: #fff;
    letter-spacing: -0.02em;
    text-shadow: 0 1px 12px rgba(13, 27, 52, 0.18);
}

.pl-title-block h1 {
    font-size: 1.75rem;
    font-weight: 700;
    margin: 0;
    background-clip: text;
}

.pl-subtitle {
    margin: 0.35rem 0 0 0;
    font-size: 0.92rem;
    color: rgba(255, 255, 255, 0.88);
}

/* ═══════════════════════════════════════════
   §6  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 var(--pl-transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    box-shadow: var(--pl-shadow-sm);
    line-height: 1.4;
}

    .pl-btn:hover:not(:disabled) {
        background: #f1f5f9;
        border-color: #93c5fd;
        box-shadow: var(--pl-shadow);
        transform: translateY(-1px);
    }

    .pl-btn:active:not(:disabled) {
        transform: translateY(0);
        box-shadow: var(--pl-shadow-sm);
    }

    .pl-btn:disabled {
        opacity: 0.5;
        cursor: not-allowed;
        transform: none;
        box-shadow: none;
    }

.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;
        box-shadow: 0 4px 12px rgba(239, 68, 68, 0.15);
    }

.pl-btn--warning {
    background: #fef3c7;
    border: 1px solid #fde68a;
    color: #92400e;
}

.pl-btn--ghost {
    background: transparent;
    border: 1px solid transparent;
    box-shadow: none;
    color: var(--pl-accent);
    font-weight: 600;
    padding: 0.4rem 0.8rem;
}

    .pl-btn--ghost:hover:not(:disabled) {
        background: var(--pl-surface-soft);
        border-color: var(--pl-accent-light);
        box-shadow: none;
        transform: none;
    }

.pl-btn--icon {
    padding: 0.4rem 1rem;
    font-size: 0.85rem;
}

/* Icon buttons (round) */
.pl-icon-btn {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    color: #334155;
    font-size: 1.05rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--pl-transition);
}

    .pl-icon-btn:hover {
        background: #eff6ff;
        border-color: #93c5fd;
        transform: translateY(-1px);
        box-shadow: 0 4px 10px rgba(59, 130, 246, 0.15);
    }

.pl-icon-btn--danger:hover {
    background: #fee2e2;
    border-color: #fecaca;
    color: #b91c1c;
    box-shadow: 0 4px 10px rgba(239, 68, 68, 0.15);
}

.pl-icon-btn--schedule {
    color: var(--pl-primary-dark);
}

    .pl-icon-btn--schedule:hover {
        background: rgba(110, 168, 254, 0.15);
    }

/* Action buttons (add/remove) */
.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 var(--pl-transition);
    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);
    }

/* ═══════════════════════════════════════════
   §7  INPUTS & SELECTS
   ═══════════════════════════════════════════ */

.pl-input-label {
    font-weight: 600;
    font-size: 0.85rem;
    color: #334155;
}

.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 var(--pl-transition), box-shadow var(--pl-transition);
    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);
    }

.pl-checkbox {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--pl-text-muted);
    cursor: pointer;
}

/* ═══════════════════════════════════════════
   §8  BADGES
   ═══════════════════════════════════════════ */

.pl-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    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;
}

.pl-badge--button {
    appearance: none;
    font: inherit;
    border: inherit;
    cursor: pointer;
    font-size: small;
}

/* ═══════════════════════════════════════════
   §9  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: 0;
    min-width: 200px;
}

.pl-search-box__icon {
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 0;
}

.pl-search-box__input {
    padding-left: 2.5rem !important;
    width: 100%;
}

.pl-tree {
    flex: 1;
    overflow-y: auto;
    padding-right: 0.5rem;
    scroll-behavior: smooth;
}

    .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;
        }

.pl-tree__node {
    margin-left: 0;
}

.pl-tree__children {
    margin-left: 1.8rem;
    border-left: 1px dashed #cbd5e1;
    padding-left: 1.2rem;
}

/* ═══════════════════════════════════════════
   §10  NODE CARD
   ═══════════════════════════════════════════ */

.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 var(--pl-transition);
    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 {
    appearance: none;
    border: 0;
    outline: 0;
    background: transparent;
    padding: 0;
    margin: 0;
    cursor: pointer;
    color: #64748b;
    font-size: 0.75rem;
    width: 1.2rem;
    text-align: center;
    user-select: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 0;
}

.pl-node-card__expand-spacer {
    width: 1.2rem;
    display: inline-block;
}

.pl-node-card__checkbox {
    accent-color: #3b82f6;
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.pl-node-card__icon {
    font-size: 1.1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 0;
}

.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;
}

/* 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 var(--pl-transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 0;
}

    .pl-node-order__btn:hover {
        background: #e2e8f0;
        color: #0f172a;
    }

.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 var(--pl-transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 0;
}

    .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;
}

/* Classification bar on node cards */
.pl-node-card__classification {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

.pl-node-card__classification-bar {
    width: 70px;
    height: 7px;
    background: #f1f5f9;
    border-radius: 999px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
}

.pl-node-card__classification-bar-fill {
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, #3b82f6, #6366f1);
}

.pl-node-card__classification-bar-fill--success {
    background: linear-gradient(90deg, #10b981, #22c55e);
}

.pl-node-card__classification-bar-fill--ok {
    background: linear-gradient(90deg, #3b82f6, #06b6d4);
}

.pl-node-card__classification-bar-fill--warn {
    background: linear-gradient(90deg, #f59e0b, #facc15);
}

.pl-node-card__classification-bar-fill--danger {
    background: linear-gradient(90deg, #ef4444, #f97316);
}

.pl-node-card__classification-percent {
    font-size: 0.78rem;
    font-weight: bold;
    min-width: 42px;
}

.pl-node-card__classification-percent--success {
    color: #166534;
}

.pl-node-card__classification-percent--ok {
    color: #1e40af;
}

.pl-node-card__classification-percent--warn {
    color: #92400e;
}

.pl-node-card__classification-percent--danger {
    color: #b91c1c;
}

.pl-node-card__classification-pending {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #b91c1c;
    border-radius: 999px;
    padding: 0.2rem 0.65rem;
    font-size: 0.72rem;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    transition: all var(--pl-transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
}

    .pl-node-card__classification-pending:hover {
        background: #fecaca;
        transform: translateY(-1px);
    }

.pl-node-card__classification-complete {
    font-size: 0.72rem;
    font-weight: 700;
    color: #166534;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
}

.pl-node-card--with-classification .pl-node-card__main {
    flex: 1 1 0;
    min-width: 0;
}

.pl-node-card--with-classification .pl-node-card__actions {
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

/* ═══════════════════════════════════════════
   §11  EXPORT PANEL
   ═══════════════════════════════════════════ */

.export-panel {
    background: white;
    border-radius: 22px;
    padding: 24px;
    border: 1px solid #edf2f7;
    display: flex;
    flex-direction: column;
    animation: plSlideUp 0.4s ease both;
    gap:10px;
}

.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;
    transition: all var(--pl-transition);
}

    .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: all var(--pl-transition);
    cursor: pointer;
}

    .btn-export-excel:hover {
        transform: translateY(-1px);
        background: #1f2937;
        box-shadow: 0 8px 20px rgba(0,0,0,0.12);
    }

    .btn-export-excel:disabled {
        opacity: .5;
        cursor: not-allowed;
        transform: none;
        box-shadow: none;
    }

/* ═══════════════════════════════════════════
   §12  ADVISOR HERO (main page)
   ═══════════════════════════════════════════ */

.advisor-hero {
    background: var(--pl-surface);
    border: 1px solid #e2e8f0;
    border-radius: var(--pl-radius);
    padding: 1.5rem 2rem;
    box-shadow: var(--pl-shadow);
    display: flex;
    align-items: center;
    gap: 1.25rem;
    flex-wrap: wrap;
    animation: plSlideUp 0.3s ease both;
}

.advisor-hero__icon {
    width: 60px;
    height: 60px;
    flex-shrink: 0;
    border-radius: 18px;
    background: linear-gradient(135deg, #eff6ff, #dbeafe);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.9rem;
    box-shadow: 0 6px 16px rgba(59, 130, 246, 0.15);
}

.advisor-hero__text {
    flex: 1;
    min-width: 220px;
}

.advisor-hero__title {
    font-size: 1.5rem;
    font-weight: bold;
    color: #0f172a;
    margin: 0;
    letter-spacing: -0.01em;
}

.advisor-hero__subtitle {
    margin: 0.3rem 0 0 0;
    font-size: 0.88rem;
    color: #64748b;
}

.advisor-hero__nav {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex-wrap: wrap;
}

.advisor-nav-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 999px;
    padding: 0.55rem 1.1rem;
    font-size: 0.85rem;
    font-weight: 700;
    color: #334155;
    text-decoration: none;
    transition: all var(--pl-transition);
}

    .advisor-nav-pill:hover {
        background: #eff6ff;
        border-color: #93c5fd;
        color: #1d4ed8;
        transform: translateY(-1px);
        text-decoration: none;
        box-shadow: 0 4px 12px rgba(59, 130, 246, 0.12);
    }

.advisor-nav-pill--primary {
    background: var(--pl-accent-gradient);
    border-color: transparent;
    color: white;
    box-shadow: 0 6px 16px rgba(59, 130, 246, 0.3);
}

    .advisor-nav-pill--primary:hover {
        background: linear-gradient(135deg, #2563eb, #7c3aed);
        color: white;
        box-shadow: 0 8px 20px rgba(59, 130, 246, 0.4);
    }

@media (max-width: 800px) {
    .advisor-hero {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }

    .advisor-hero__nav {
        justify-content: center;
    }
}

/* Editing banner */
.advisor-editing-banner {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: linear-gradient(135deg, #eff6ff, #e0e7ff);
    border: 1px solid #c7d2fe;
    border-radius: 14px;
    padding: 0.85rem 1.25rem;
    font-size: 0.88rem;
    color: #3730a3;
    animation: plSlideUp 0.35s ease both;
}

.advisor-editing-banner__icon {
    font-size: 1.2rem;
    flex-shrink: 0;
}

.advisor-editing-banner__text strong {
    color: #1e1b4b;
}

/* Export column */
.advisor-export-column {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

/* Advisor action buttons */
.advisor-save-preset-btn,
.advisor-update-preset-btn,
.advisor-send-mail-btn {
    width: 100%;
    justify-content: center;
    font-weight: 700;
    border: none;
    color: white;
    transition: all var(--pl-transition);
}

.advisor-send-mail-btn {
    margin-top: 4px;
    padding: 12px 18px;
    border-radius: var(--pl-radius-lg);
    font-size: 0.95rem;
    background: linear-gradient(135deg, var(--pl-primary) 0%, var(--pl-primary-dark) 100%);
    box-shadow: 0 6px 18px rgba(110, 168, 254, 0.35);
}

    .advisor-send-mail-btn:hover:not(:disabled) {
        transform: translateY(-1px);
        box-shadow: 0 10px 24px rgba(110, 168, 254, 0.45);
        filter: brightness(1.03);
    }

    .advisor-send-mail-btn:disabled {
        opacity: .55;
        cursor: not-allowed;
        box-shadow: none;
    }

.advisor-save-preset-btn {
    background: linear-gradient(135deg, #f59e0b, #d97706);
}

    .advisor-save-preset-btn:hover:not(:disabled) {
        background: linear-gradient(135deg, #d97706, #b45309);
        box-shadow: 0 8px 18px rgba(217, 119, 6, 0.3);
    }

    .advisor-save-preset-btn:disabled,
    .advisor-update-preset-btn:disabled {
        background: #e2e8f0;
        color: #94a3b8;
        box-shadow: none;
        cursor: not-allowed;
    }

.advisor-update-preset-btn {
    background: linear-gradient(135deg, #3b82f6, #6366f1);
}

    .advisor-update-preset-btn:hover:not(:disabled) {
        background: linear-gradient(135deg, #2563eb, #4f46e5);
        box-shadow: 0 8px 18px rgba(37, 99, 235, 0.3);
    }

/* ═══════════════════════════════════════════
   §13  PRESET HERO / LIST / CARDS
   ═══════════════════════════════════════════ */

.preset-hero {
    background: var(--pl-surface);
    border: 1px solid #e2e8f0;
    border-radius: var(--pl-radius);
    padding: 1.5rem 2rem;
    box-shadow: var(--pl-shadow);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    flex-wrap: wrap;
    position: relative;
    animation: plSlideUp 0.3s ease both;
}

.preset-hero__back {
    position: absolute;
    top: 1.1rem;
    left: 2rem;
    font-size: 0.78rem;
    padding: 0.35rem 0.8rem;
}

.preset-hero__main {
    display: flex;
    align-items: center;
    gap: 1.1rem;
    margin-top: 1.75rem;
}

.preset-hero__icon {
    width: 60px;
    height: 60px;
    flex-shrink: 0;
    border-radius: 18px;
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.9rem;
    box-shadow: 0 6px 16px rgba(217, 119, 6, 0.18);
}

.preset-hero__title {
    font-size: 1.5rem;
    font-weight: bold;
    color: #0f172a;
    margin: 0;
}

.preset-hero__subtitle {
    margin: 0.3rem 0 0 0;
    font-size: 0.88rem;
    color: #64748b;
}

.preset-hero__count {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #eff6ff, #dbeafe);
    border: 1px solid #93c5fd;
    border-radius: 16px;
    padding: 0.6rem 1.2rem;
    margin-left: 0.5rem;
    margin-top: 1.75rem;
}

.preset-hero__count-value {
    font-size: 1.6rem;
    font-weight: bold;
    color: #1d4ed8;
    line-height: 1;
}

.preset-hero__count-label {
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #3b82f6;
    font-weight: 700;
}

.preset-hero__cta {
    margin-top: 1.75rem;
    font-size: 0.95rem;
    padding: 0.7rem 1.4rem;
}

@media (max-width: 800px) {
    .preset-hero {
        flex-direction: column;
        align-items: stretch;
        padding-top: 2.75rem;
    }

    .preset-hero__main {
        margin-top: 0;
    }

    .preset-hero__count, .preset-hero__cta {
        margin-top: 0;
        align-self: flex-start;
    }
}

/* Empty state */
.preset-empty {
    background: var(--pl-surface);
    border: 1px dashed #cbd5e1;
    border-radius: var(--pl-radius);
    padding: 3.5rem 2rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
    animation: plScaleIn 0.4s ease both;
}

.preset-empty__icon {
    font-size: 3rem;
    margin-bottom: 0.5rem;
    opacity: 0.85;
}

.preset-empty h4 {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 700;
    color: #334155;
}

.preset-empty p {
    margin: 0 0 0.5rem 0;
    font-size: 0.9rem;
    color: #64748b;
    max-width: 420px;
}

/* Card list */
.preset-list {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.preset-card {
    background: var(--pl-surface);
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    padding: 1.1rem 1.4rem;
    display: flex;
    align-items: center;
    gap: 1.1rem;
    box-shadow: var(--pl-shadow-sm);
    transition: all var(--pl-transition);
    animation: plSlideUp 0.3s ease both;
}

    .preset-card:hover {
        border-color: #bfdbfe;
        box-shadow: var(--pl-shadow);
        transform: translateY(-2px);
    }

.preset-card__icon {
    width: 52px;
    height: 52px;
    flex-shrink: 0;
    border-radius: 14px;
    background: linear-gradient(135deg, #eff6ff, #dbeafe);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.1);
}

.preset-card__info {
    flex: 1;
    min-width: 0;
}

.preset-card__name {
    margin: 0 0 0.4rem 0;
    font-size: 1.05rem;
    font-weight: 700;
    color: #0f172a;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.preset-card__meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.preset-card__badge {
    background: linear-gradient(135deg, #eff6ff, #dbeafe);
    border: 1px solid #bfdbfe;
    color: #1d4ed8;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.25rem 0.7rem;
    border-radius: 999px;
}

.preset-card__badge--category {
    background: linear-gradient(135deg, #eff6ff, #dbeafe);
    border-color: #bfdbfe;
    color: #1d4ed8;
}

.preset-card__badge--schedule {
    background: rgba(110, 168, 254, 0.15);
    border-color: transparent;
    color: var(--pl-primary-dark);
}

.preset-card__date {
    font-size: 0.78rem;
    color: #94a3b8;
}

.preset-card__actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

/* Confirm bar */
.preset-confirm-bar {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 14px;
    padding: 0.5rem 0.85rem;
    animation: plScaleIn 0.2s ease both;
}

.preset-confirm-bar__text {
    font-size: 0.82rem;
    font-weight: 600;
    color: #b91c1c;
    white-space: nowrap;
}

/* ═══════════════════════════════════════════
   §14  NEW GROUP FORM
   ═══════════════════════════════════════════ */

.advisor-new-group {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 0;
    animation: plSlideUp 0.35s ease 0.1s both;
}

    .advisor-new-group .form-control {
        flex: 1;
    }

.advisor-new-group__category {
    min-width: 180px;
    flex-shrink: 0;
}

/* ═══════════════════════════════════════════
   §15  CREATE FIELDS & TOGGLES
   ═══════════════════════════════════════════ */

.advisor-create-fields {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1.4fr;
    gap: 1.25rem;
    align-items: end;
    background: linear-gradient(135deg, #f8fafc, #f1f5f9);
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    padding: 1.25rem 1.5rem;
}

@media (max-width: 900px) {
    .advisor-create-fields {
        grid-template-columns: 1fr;
    }
}

.advisor-create-field {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.advisor-create-field--checks {
    flex-direction: row;
    align-items: center;
    gap: 1.5rem;
    justify-content: flex-start;
}

/* Toggle switch */
.advisor-toggle {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    cursor: pointer;
    user-select: none;
}

    .advisor-toggle input {
        display: none;
    }

.advisor-toggle__track {
    width: 40px;
    height: 22px;
    border-radius: 999px;
    background: #cbd5e1;
    position: relative;
    transition: background var(--pl-transition);
    flex-shrink: 0;
}

.advisor-toggle__thumb {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: white;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
    transition: transform var(--pl-transition);
}

.advisor-toggle input:checked + .advisor-toggle__track {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
}

    .advisor-toggle input:checked + .advisor-toggle__track .advisor-toggle__thumb {
        transform: translateX(18px);
    }

.advisor-toggle__label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #334155;
    white-space: nowrap;
}

.advisor-toggle--compact {
    padding: 0;
    margin: 0;
    cursor: pointer;
}

    .advisor-toggle--compact .advisor-toggle__label {
        display: none;
    }

/* Count badge */
.advisor-edit-modal__count-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 22px;
    padding: 0 0.4rem;
    border-radius: 999px;
    background: linear-gradient(135deg, #3b82f6, #6366f1);
    color: white;
    font-weight: bold;
    font-size: 0.75rem;
    margin-right: 0.3rem;
}

/* ═══════════════════════════════════════════
   §16  EDIT MODAL LAYOUT
   ═══════════════════════════════════════════ */

.advisor-edit-modal {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

    .advisor-edit-modal .pl-tree-panel {
        height: 48vh !important;
    }

.advisor-edit-modal__actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 0.75rem;
    border-top: 1px solid #f1f5f9;
}

.advisor-edit-modal__count {
    font-size: 0.85rem;
    color: #64748b;
    font-weight: 600;
}

.advisor-edit-modal__buttons {
    display: flex;
    gap: 0.75rem;
}

/* Save preset modal */
.save-preset-modal {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.save-preset-modal__hint {
    font-size: 0.85rem;
    color: #64748b;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 0.75rem 1rem;
    margin: 0 0 0.25rem 0;
}

.save-preset-modal__actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid #f1f5f9;
}

/* ═══════════════════════════════════════════
   §17  PREVIEW MODAL
   ═══════════════════════════════════════════ */

.advisor-preview-tabs {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.advisor-preview-tab {
    background: white;
    border: 1px solid #cbd5e1;
    border-radius: 999px;
    padding: 0.5rem 1.1rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: #334155;
    cursor: pointer;
    transition: all var(--pl-transition);
}

    .advisor-preview-tab:hover {
        border-color: #93c5fd;
        background: #f1f5f9;
    }

    .advisor-preview-tab.active {
        background: linear-gradient(135deg, #0b1e2d, #1f3a50);
        border-color: transparent;
        color: white;
        box-shadow: 0 6px 16px rgba(11, 30, 45, 0.25);
    }

.advisor-preview-sheet {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    overflow: hidden;
}

.advisor-preview-sheet__header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.65rem 1rem;
    background: #f8fafc;
    border-bottom: 2px solid #e2e8f0;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #475569;
}

    .advisor-preview-sheet__header .ap-row__col {
        flex: 0 0 100px;
        text-align: center;
    }

.advisor-preview-scroll {
    height: calc(100vh - 380px);
    overflow-y: auto;
}

.advisor-preview-scroll--modal {
    height: 45vh;
}

.advisor-preview-group {
    background: #0b1e2d;
    color: white;
    font-size: 0.85rem;
    font-weight: 700;
    padding: 0.6rem 1rem;
    border-top: 1px solid #1f3a50;
    border-bottom: 2px solid #08121c;
}

.advisor-preview-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 1rem;
    border-bottom: 1px solid #f1f5f9;
    font-size: 0.82rem;
    color: #334155;
}

    .advisor-preview-row .ap-row__col {
        flex: 0 0 100px;
        text-align: center;
    }

    .advisor-preview-row:nth-child(even) {
        background: #f8fafc;
    }

.advisor-preview-row__product {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    min-width: 0;
    flex: 1;
}

.advisor-preview-row__price {
    font-weight: 700;
    color: #166534;
}

.advisor-preview-modal-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #f1f5f9;
}

.advisor-preview-summary {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    background: linear-gradient(135deg, #f8fafc, #f1f5f9);
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 0.9rem 1.5rem;
    margin-bottom: 1rem;
    animation: plSlideUp 0.3s ease both;
}

.advisor-preview-summary__stat {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.advisor-preview-summary__icon {
    font-size: 1.6rem;
}

.advisor-preview-summary__value {
    display: block;
    font-size: 1.3rem;
    font-weight: bold;
    color: #0f172a;
    line-height: 1.1;
}

.advisor-preview-summary__label {
    display: block;
    font-size: 0.72rem;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    font-weight: 600;
}

.advisor-preview-summary__divider {
    width: 1px;
    height: 32px;
    background: #cbd5e1;
}

/* ═══════════════════════════════════════════
   §18  GROUP DETAIL MODAL
   ═══════════════════════════════════════════ */

.group-modal-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: linear-gradient(135deg, #eff6ff, #e0e7ff);
    border: 1px solid #c7d2fe;
    border-radius: 16px;
    padding: 1rem 1.25rem;
    margin-bottom: 1.25rem;
    animation: plSlideUp 0.3s ease both;
    justify-content: space-between;
}

.group-modal-header__icon {
    width: 52px;
    height: 52px;
    flex-shrink: 0;
    border-radius: 14px;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.group-modal-header__info {
    flex: 1;
    min-width: 0;
}

.group-modal-header__name {
    margin: 0;
    font-size: 1.2rem;
    font-weight: bold;
    color: #0f172a;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.group-modal-header__rename-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 0.9rem;
    opacity: 0.6;
    transition: opacity var(--pl-transition);
}

    .group-modal-header__rename-btn:hover {
        opacity: 1;
    }

.group-modal-header__rename {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    max-width: 420px;
}

    .group-modal-header__rename .form-control {
        flex: 1;
    }

.group-modal-header__count {
    display: block;
    margin-top: 0.25rem;
    font-size: 0.82rem;
    color: #3730a3;
    font-weight: 600;
}

/* Two-column layout */
.group-modal-layout {
    display: grid;
    grid-template-columns: 50% 50%;
    gap: 1.25rem;
    min-height: 50vh;
}

@media (max-width: 900px) {
    .group-modal-layout {
        grid-template-columns: 1fr;
    }
}

.group-modal-column {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    padding: 1.1rem;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.group-modal-column--members {
    border-color: #bbf7d0;
    background: #f9fefb;
}

.group-modal-column__header {
    margin-bottom: 0.85rem;
}

    .group-modal-column__header h4 {
        margin: 0;
        font-size: 0.95rem;
        font-weight: 700;
        color: #0f172a;
    }

    .group-modal-column__header small {
        color: #64748b;
        font-size: 0.78rem;
    }

.group-modal-search {
    margin-bottom: 0.85rem;
}

.group-modal-list {
    flex: 1;
    overflow-y: auto;
    max-height: 48vh;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    padding-right: 0.3rem;
}

/* Customer card */
.group-customer-card {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 0.65rem 0.9rem;
    transition: all var(--pl-transition);
}

    .group-customer-card:hover {
        border-color: #bfdbfe;
        box-shadow: 0 4px 10px rgba(59, 130, 246, 0.06);
    }

.group-customer-card--added {
    background: #f0fdf4;
    border-color: #bbf7d0;
}

.group-customer-card--member {
    background: #fafffe;
    border-color: #dcfce7;
}

.group-customer-card__avatar {
    width: 38px;
    height: 38px;
    flex-shrink: 0;
    border-radius: 10px;
    background: #eff6ff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.group-customer-card__info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.group-customer-card__code {
    font-size: 0.7rem;
    font-weight: 700;
    color: #3b82f6;
}

.group-customer-card__name {
    font-size: 0.86rem;
    font-weight: 600;
    color: #0f172a;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.group-customer-card__email {
    font-size: 0.72rem;
    color: #94a3b8;
}

.group-customer-card__email--missing {
    color: #b91c1c;
    font-weight: 600;
}

.group-customer-card__added-badge {
    font-size: 0.72rem;
    font-weight: 700;
    color: #166534;
    background: #dcfce7;
    padding: 0.25rem 0.6rem;
    border-radius: 999px;
    white-space: nowrap;
}

/* ═══════════════════════════════════════════
   §19  SEND PRICE LIST MODAL
   ═══════════════════════════════════════════ */

.send-modal {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.send-modal__summary {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 18px;
    padding: 12px 16px;
    border-radius: var(--pl-radius-lg);
    background: linear-gradient(135deg, rgba(110, 168, 254, 0.10), rgba(110, 168, 254, 0.04));
    border: 1px solid rgba(110, 168, 254, 0.25);
    animation: plSlideUp 0.3s ease both;
}

.send-modal__summary-item {
    font-size: 0.88rem;
    color: var(--pl-text);
    white-space: nowrap;
}

.send-modal__empty-hint {
    margin: 6px 0 0;
    padding: 12px 14px;
    border-radius: var(--pl-radius-sm);
    background: rgba(255, 193, 7, 0.10);
    border: 1px solid rgba(255, 193, 7, 0.35);
    font-size: 0.9rem;
    color: var(--pl-text);
}

/* Segments toggle */
.send-modal__segments {
    display: flex;
    gap: 8px;
    padding: 4px;
    border-radius: var(--pl-radius-lg);
    background: rgba(110, 168, 254, 0.08);
    border: 1px solid rgba(110, 168, 254, 0.18);
}

.send-modal__segment {
    flex: 1;
    padding: 10px 14px;
    border: none;
    border-radius: var(--pl-radius-sm);
    background: transparent;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--pl-text-muted);
    cursor: pointer;
    transition: all var(--pl-transition);
}

    .send-modal__segment:hover:not(:disabled):not(.send-modal__segment--active) {
        color: var(--pl-text);
        background: rgba(255, 255, 255, 0.6);
    }

.send-modal__segment--active {
    background: #fff;
    color: var(--pl-primary-dark);
    box-shadow: 0 3px 10px rgba(110, 168, 254, 0.25);
}

.send-modal__segment:disabled {
    opacity: .45;
    cursor: not-allowed;
}

.send-modal__label-hint {
    font-weight: 400;
    font-size: 0.82rem;
    color: var(--pl-text-muted);
}

/* Members list */
.send-modal__members-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.send-modal__members-tools {
    display: flex;
    gap: 8px;
}

.send-modal__members {
    max-height: 280px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 4px 6px 4px 2px;
    border-radius: var(--pl-radius-sm);
}

.send-modal__member {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border-radius: var(--pl-radius-sm);
    background: var(--pl-surface);
    border: 1px solid var(--pl-border);
    box-shadow: 0 2px 8px rgba(51, 65, 92, 0.04);
    cursor: pointer;
    transition: all var(--pl-transition);
    margin: 0;
}

    .send-modal__member:hover {
        border-color: rgba(110, 168, 254, 0.55);
    }

.send-modal__member--checked {
    border-color: var(--pl-primary);
    background: linear-gradient(135deg, rgba(110, 168, 254, 0.08), rgba(110, 168, 254, 0.02));
}

.send-modal__member--no-email {
    opacity: .6;
    cursor: not-allowed;
}

.send-modal__member input[type="checkbox"] {
    width: 17px;
    height: 17px;
    accent-color: var(--pl-primary);
    flex-shrink: 0;
}

.send-modal__member-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.send-modal__member-name {
    font-weight: 600;
    font-size: 0.92rem;
    color: var(--pl-text);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.send-modal__member-meta {
    font-size: 0.8rem;
    color: var(--pl-text-muted);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.send-modal__member-badge {
    display: inline-block;
    padding: 1px 8px;
    border-radius: 999px;
    background: rgba(255, 193, 7, 0.18);
    color: #9a7b00;
    font-size: 0.75rem;
    font-weight: 600;
}

.send-modal__body {
    resize: vertical;
    min-height: 90px;
}

/* Result */
.send-modal__result {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    padding: 10px 6px 4px;
    text-align: center;
    animation: plScaleIn 0.4s ease both;
}

.send-modal__result-icon {
    font-size: 2.6rem;
}

.send-modal__result-title {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--pl-text);
}

.send-modal__result-stats {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    justify-content: center;
}

.send-modal__result-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    min-width: 100px;
    padding: 14px 18px;
    border-radius: var(--pl-radius-lg);
    background: var(--pl-surface);
    border: 1px solid var(--pl-border);
    box-shadow: 0 4px 14px rgba(51, 65, 92, 0.06);
}

.send-modal__result-stat-value {
    font-size: 1.5rem;
    font-weight: bold;
}

.send-modal__result-stat-label {
    font-size: 0.8rem;
    color: var(--pl-text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.send-modal__result-stat--ok .send-modal__result-stat-value {
    color: #2fa96e;
}

.send-modal__result-stat--warn .send-modal__result-stat-value {
    color: #d69e00;
}

.send-modal__result-stat--danger .send-modal__result-stat-value {
    color: #e05c5c;
}

.send-modal__result-failures {
    width: 100%;
    text-align: left;
    padding: 12px 16px;
    border-radius: var(--pl-radius-sm);
    background: rgba(224, 92, 92, 0.08);
    border: 1px solid rgba(224, 92, 92, 0.30);
    font-size: 0.86rem;
    color: var(--pl-text);
}

    .send-modal__result-failures ul {
        margin: 6px 0 0;
        padding-left: 18px;
    }

.send-modal__result-actions {
    justify-content: center;
    width: 100%;
    display: flex;
}

/* ═══════════════════════════════════════════
   §20  SCHEDULED SENDS
   ═══════════════════════════════════════════ */

.schedule-section {
    border-radius: var(--pl-radius-lg);
    background: linear-gradient(135deg, rgba(110, 168, 254, 0.06), rgba(110, 168, 254, 0.02));
    border: 1px solid rgba(110, 168, 254, 0.20);
    overflow: hidden;
    transition: box-shadow var(--pl-transition);
    animation: plSlideUp 0.35s ease 0.1s both;
}

.schedule-section--open {
    box-shadow: 0 6px 22px rgba(110, 168, 254, 0.12);
}

.schedule-section__header {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    border: none;
    background: transparent;
    cursor: pointer;
    font-weight: 600;
    color: var(--pl-text);
    transition: background var(--pl-transition);
}

    .schedule-section__header:hover {
        background: rgba(110, 168, 254, 0.06);
    }

.schedule-section__title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1rem;
}

.schedule-section__icon {
    font-size: 1.25rem;
}

.schedule-section__count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 26px;
    height: 22px;
    padding: 0 8px;
    border-radius: 999px;
    background: var(--pl-primary);
    color: #fff;
    font-size: 0.78rem;
    font-weight: 700;
}

.schedule-section__chevron {
    color: var(--pl-text-muted);
    font-size: 0.8rem;
    transition: transform var(--pl-transition);
}

.schedule-section__body {
    padding: 4px 20px 20px;
}

.schedule-empty {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 18px;
    border-radius: var(--pl-radius-sm);
    background: var(--pl-surface);
    border: 1px dashed var(--pl-border);
    color: var(--pl-text-muted);
    font-size: 0.92rem;
}

    .schedule-empty p {
        margin: 0;
    }

.schedule-empty__icon {
    font-size: 1.6rem;
}

.schedule-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.schedule-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 16px;
    border-radius: var(--pl-radius-lg);
    background: var(--pl-surface);
    border: 1px solid var(--pl-border);
    box-shadow: 0 3px 12px rgba(51, 65, 92, 0.05);
    transition: all var(--pl-transition);
}

    .schedule-card:hover {
        border-color: rgba(110, 168, 254, 0.45);
        box-shadow: 0 6px 18px rgba(110, 168, 254, 0.15);
    }

.schedule-card--disabled {
    opacity: .6;
    background: linear-gradient(135deg, rgba(125, 139, 171, 0.04), transparent);
}

.schedule-card__icon {
    font-size: 1.6rem;
    flex-shrink: 0;
}

.schedule-card__info {
    flex: 1;
    min-width: 0;
}

.schedule-card__title {
    margin: 0 0 4px;
    font-size: 0.98rem;
    font-weight: 700;
    color: var(--pl-text);
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
}

.schedule-card__arrow {
    color: var(--pl-text-muted);
    font-weight: 400;
}

.schedule-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 14px;
    font-size: 0.82rem;
    color: var(--pl-text-muted);
}

.schedule-card__freq {
    font-weight: 600;
    color: var(--pl-primary-dark);
}

.schedule-card__next, .schedule-card__last {
    white-space: nowrap;
}

.schedule-card__paused {
    color: #a37500;
    font-weight: 600;
}

.schedule-card__actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

/* Schedule modal */
.schedule-modal {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.schedule-modal__row {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

    .schedule-modal__row .advisor-create-field {
        flex: 1 1 200px;
    }

.schedule-modal__hint {
    display: block;
    margin-top: 4px;
    font-size: 0.78rem;
    color: var(--pl-text-muted);
}

.schedule-modal__preview {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: var(--pl-radius-lg);
    background: linear-gradient(135deg, rgba(47, 169, 110, 0.10), rgba(47, 169, 110, 0.02));
    border: 1px solid rgba(47, 169, 110, 0.30);
    color: var(--pl-text);
    font-size: 0.92rem;
}

.schedule-modal__preview-icon {
    font-size: 1.4rem;
}

/* Logs modal */
.schedule-logs {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.schedule-logs__list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 420px;
    overflow-y: auto;
    padding-right: 4px;
}

.schedule-log {
    display: flex;
    gap: 12px;
    padding: 12px 14px;
    border-radius: var(--pl-radius-sm);
    background: var(--pl-surface);
    border: 1px solid var(--pl-border);
}

.schedule-log--ok {
    border-left: 4px solid #2fa96e;
}

.schedule-log--fail {
    border-left: 4px solid #e05c5c;
    background: rgba(224, 92, 92, 0.04);
}

.schedule-log__icon {
    font-size: 1.3rem;
    flex-shrink: 0;
}

.schedule-log__body {
    flex: 1;
    min-width: 0;
}

.schedule-log__date {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--pl-text);
    margin-bottom: 4px;
}

.schedule-log__stats {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 0.82rem;
}

.schedule-log__stat--ok {
    color: #2fa96e;
    font-weight: 600;
}

.schedule-log__stat--warn {
    color: #a37500;
    font-weight: 600;
}

.schedule-log__stat--danger {
    color: #c04040;
    font-weight: 600;
}

.schedule-log__message {
    margin-top: 6px;
    padding: 8px 10px;
    border-radius: 8px;
    background: rgba(51, 65, 92, 0.05);
    font-size: 0.82rem;
    color: var(--pl-text-muted);
    word-break: break-word;
}

/* ═══════════════════════════════════════════
   §21  BULK ASSIGN (GroupDetailPage)
   ═══════════════════════════════════════════ */

.ba-layout {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 1.25rem;
    min-height: 420px;
}

@media (max-width: 1000px) {
    .ba-layout {
        grid-template-columns: 1fr;
    }
}

.ba-tree-column, .ba-products-column {
    display: flex;
    flex-direction: column;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    padding: 1rem;
    min-height: 0;
}

.ba-column-header {
    margin-bottom: 0.75rem;
}

    .ba-column-header h4 {
        margin: 0;
        font-size: 0.95rem;
        font-weight: 700;
        color: #0f172a;
    }

    .ba-column-header small {
        color: #64748b;
        font-size: 0.78rem;
    }

.ba-tree-search {
    margin-bottom: 0.75rem;
}

.ba-back-btn {
    font-size: 0.85rem;
    padding: 0.4rem 0.9rem;
}

.ba-tree-scroll {
    flex: 1;
    overflow-y: auto;
    max-height: 480px;
    padding-right: 0.4rem;
}

.ba-tree-scroll--page {
    max-height: calc(100vh - 320px);
}

/* AP row (associated products / members) */
.ap-list {
    display: flex;
    flex-direction: column;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    overflow: hidden;
}

.ap-row {
    display: grid;
    grid-template-columns: 1fr 48px;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0.85rem;
    border-bottom: 1px solid #f1f5f9;
    font-size: 0.85rem;
    color: #334155;
    transition: background var(--pl-transition);
}

    .ap-row:last-child {
        border-bottom: none;
    }

    .ap-row:hover {
        background: #f8fafc;
    }

.ap-row--header {
    background: #f8fafc;
    font-weight: 700;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #475569;
    border-bottom: 2px solid #e2e8f0;
}

    .ap-row--header:hover {
        background: #f8fafc;
    }

.ap-row__info {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    min-width: 0;
}

.ap-row__text {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.ap-row__code {
    font-weight: 700;
    color: #2563eb;
    font-size: 0.8rem;
}

.ap-row__name {
    font-size: 0.78rem;
    color: #64748b;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ap-row__action {
    display: flex;
    justify-content: center;
}

/* Customer styling */
.advisor-customer-row {
    grid-template-columns: 1fr 48px;
}

.advisor-customer-email {
    font-size: 0.72rem;
    color: #94a3b8;
}

.advisor-customer-email--missing {
    color: #b91c1c;
    font-weight: 600;
}

.advisor-customer-search-list, .advisor-member-list {
    max-height: 60vh;
    overflow-y: auto;
}

.advisor-group-detail {
    min-height: 55vh;
}

/* ═══════════════════════════════════════════
   §22  BULK IMPORT
   ═══════════════════════════════════════════ */

.bulk-import-page {
    padding-bottom: 40px;
}

.bulk-import-hero {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 22px 26px;
    margin-bottom: 24px;
    border-radius: var(--pl-radius-xl);
    background: linear-gradient(135deg, rgba(110, 168, 254, 0.14), rgba(110, 168, 254, 0.04));
    border: 1px solid rgba(110, 168, 254, 0.22);
    box-shadow: 0 6px 24px rgba(110, 168, 254, 0.10);
    animation: plSlideUp 0.3s ease both;
}

.bulk-import-hero__icon {
    font-size: 2.6rem;
    flex-shrink: 0;
}

.bulk-import-hero__text {
    flex: 1;
    min-width: 0;
}

.bulk-import-hero__title {
    margin: 0 0 6px;
    font-size: 1.4rem;
    color: var(--pl-text);
    font-weight: 700;
}

.bulk-import-hero__subtitle {
    margin: 0;
    color: var(--pl-text-muted);
    font-size: 0.95rem;
    line-height: 1.5;
}

.bulk-import-hero__history {
    flex-shrink: 0;
    padding: 10px 16px;
    border-radius: var(--pl-radius-sm);
    background: var(--pl-surface);
    border: 1px solid var(--pl-border);
    color: var(--pl-text);
    cursor: pointer;
    transition: all var(--pl-transition);
}

    .bulk-import-hero__history:hover {
        border-color: rgba(110, 168, 254, 0.55);
        box-shadow: 0 4px 14px rgba(110, 168, 254, 0.15);
    }

.bulk-import-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 20px;
}

.bulk-import-card {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 24px;
    border-radius: var(--pl-radius-xl);
    background: var(--pl-surface);
    border: 1px solid var(--pl-border);
    box-shadow: 0 4px 18px rgba(51, 65, 92, 0.06);
    transition: all var(--pl-transition);
}

    .bulk-import-card:hover {
        border-color: rgba(110, 168, 254, 0.5);
        box-shadow: 0 10px 28px rgba(110, 168, 254, 0.18);
        transform: translateY(-2px);
    }

.bulk-import-card__icon {
    width: 60px;
    height: 60px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    background: linear-gradient(135deg, rgba(110, 168, 254, 0.18), rgba(110, 168, 254, 0.06));
}

.bulk-import-card__icon--upload {
    background: linear-gradient(135deg, rgba(47, 169, 110, 0.18), rgba(47, 169, 110, 0.06));
}

.bulk-import-card__title {
    margin: 0;
    font-size: 1.15rem;
    color: var(--pl-text);
    font-weight: 700;
}

.bulk-import-card__text {
    margin: 0;
    color: var(--pl-text-muted);
    font-size: 0.92rem;
    line-height: 1.5;
    flex: 1;
}

.bulk-import-card__cta {
    align-self: flex-start;
}

.bulk-import-drop {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 30px 18px;
    border: 2px dashed rgba(110, 168, 254, 0.5);
    border-radius: var(--pl-radius-lg);
    background: rgba(110, 168, 254, 0.04);
    color: var(--pl-text-muted);
    cursor: pointer;
    transition: all var(--pl-transition);
    position: relative;
    text-align: center;
}

    .bulk-import-drop:hover {
        background: rgba(110, 168, 254, 0.10);
        border-color: rgba(110, 168, 254, 0.75);
    }

.bulk-import-drop--busy {
    cursor: wait;
    opacity: .7;
}

.bulk-import-drop__icon {
    font-size: 2rem;
}

.bulk-import-drop__text {
    font-size: 0.92rem;
    font-weight: 600;
}

.bulk-import-drop__input {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}

/* Preview */
.bulk-preview {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.bulk-preview__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 22px;
    border-radius: var(--pl-radius-lg);
    background: var(--pl-surface);
    border: 1px solid var(--pl-border);
}

.bulk-preview__title {
    margin: 0 0 4px;
    font-size: 1.2rem;
    color: var(--pl-text);
    font-weight: 700;
}

.bulk-preview__subtitle {
    margin: 0;
    color: var(--pl-text-muted);
    font-size: 0.88rem;
}

.bulk-preview__stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 12px;
}

.bulk-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 14px 12px;
    border-radius: var(--pl-radius-lg);
    background: var(--pl-surface);
    border: 1px solid var(--pl-border);
}

.bulk-stat__value {
    font-size: 1.6rem;
    font-weight: bold;
    color: var(--pl-text);
}

.bulk-stat__label {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--pl-text-muted);
    text-transform: uppercase;
    letter-spacing: .04em;
}

.bulk-stat--create .bulk-stat__value {
    color: #2fa96e;
}

.bulk-stat--rename .bulk-stat__value {
    color: var(--pl-primary-dark);
}

.bulk-stat--link .bulk-stat__value {
    color: #8b5cf6;
}

.bulk-stat--move .bulk-stat__value {
    color: #d69e00;
}

.bulk-stat--unlink .bulk-stat__value {
    color: #a37500;
}

.bulk-stat--errors .bulk-stat__value {
    color: var(--pl-text-muted);
}

.bulk-stat--errors.bulk-stat--active {
    border-color: rgba(224, 92, 92, 0.5);
    background: rgba(224, 92, 92, 0.06);
}

    .bulk-stat--errors.bulk-stat--active .bulk-stat__value {
        color: #e05c5c;
    }

.bulk-errors {
    padding: 18px 20px;
    border-radius: var(--pl-radius-lg);
    background: rgba(224, 92, 92, 0.06);
    border: 1px solid rgba(224, 92, 92, 0.30);
}

.bulk-errors__title {
    margin: 0 0 6px;
    color: #b23a3a;
    font-size: 1rem;
    font-weight: 700;
}

.bulk-errors__hint {
    margin: 0 0 12px;
    color: var(--pl-text-muted);
    font-size: 0.88rem;
}

.bulk-errors__list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    max-height: 260px;
    overflow-y: auto;
}

.bulk-error {
    display: flex;
    gap: 12px;
    padding: 8px 12px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.65);
    font-size: 0.86rem;
}

.bulk-error__location {
    flex-shrink: 0;
    min-width: 130px;
    color: #b23a3a;
    font-weight: 600;
    font-family: monospace;
}

.bulk-error__msg {
    color: var(--pl-text);
}

.bulk-error--truncated {
    background: transparent;
    color: var(--pl-text-muted);
    font-style: italic;
}

.bulk-changes {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.bulk-change-group {
    border-radius: var(--pl-radius-lg);
    background: var(--pl-surface);
    border: 1px solid var(--pl-border);
    overflow: hidden;
}

.bulk-change-group__header {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 18px;
    border: none;
    background: transparent;
    cursor: pointer;
    transition: background var(--pl-transition);
    color: var(--pl-text);
    font-weight: 600;
}

    .bulk-change-group__header:hover {
        background: rgba(110, 168, 254, 0.06);
    }

.bulk-change-group__icon {
    font-size: 1.2rem;
}

.bulk-change-group__label {
    flex: 1;
    text-align: left;
}

.bulk-change-group__count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 30px;
    height: 22px;
    padding: 0 10px;
    border-radius: 999px;
    background: var(--pl-primary);
    color: #fff;
    font-size: 0.78rem;
    font-weight: 700;
}

.bulk-change-group__chevron {
    color: var(--pl-text-muted);
    font-size: 0.8rem;
}

.bulk-change-group__body {
    padding: 4px 18px 14px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    max-height: 340px;
    overflow-y: auto;
}

.bulk-change {
    display: flex;
    gap: 12px;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 0.86rem;
}

    .bulk-change:hover {
        background: rgba(110, 168, 254, 0.05);
    }

.bulk-change__row {
    flex-shrink: 0;
    min-width: 110px;
    color: var(--pl-text-muted);
    font-family: monospace;
}

.bulk-change__desc {
    color: var(--pl-text);
}

.bulk-change--truncated {
    background: transparent;
    color: var(--pl-text-muted);
    font-style: italic;
}

.bulk-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 40px 20px;
    border-radius: var(--pl-radius-lg);
    background: var(--pl-surface);
    border: 1px dashed var(--pl-border);
    color: var(--pl-text-muted);
    text-align: center;
}

.bulk-empty__icon {
    font-size: 2.4rem;
}

.bulk-empty p {
    margin: 0;
}

.bulk-preview__actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding: 16px 0 8px;
    border-top: 1px solid var(--pl-border);
}

.bulk-apply-btn {
    min-width: 260px;
    background: linear-gradient(135deg, #2fa96e 0%, #22855a 100%);
    color: #fff;
    box-shadow: 0 6px 18px rgba(47, 169, 110, 0.30);
}

    .bulk-apply-btn:hover:not(:disabled) {
        filter: brightness(1.05);
        box-shadow: 0 10px 24px rgba(47, 169, 110, 0.40);
    }

    .bulk-apply-btn:disabled {
        background: linear-gradient(135deg, #b8bbc7 0%, #9ba0af 100%);
        box-shadow: none;
        cursor: not-allowed;
    }

/* History modal */
.bulk-history {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.bulk-history__list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 60vh;
    overflow-y: auto;
    padding-right: 4px;
}

.bulk-history-item {
    display: flex;
    gap: 14px;
    padding: 14px 16px;
    border-radius: var(--pl-radius-lg);
    background: var(--pl-surface);
    border: 1px solid var(--pl-border);
    border-left-width: 4px;
}

.bulk-history-item--applied {
    border-left-color: #2fa96e;
}

.bulk-history-item--failed {
    border-left-color: #e05c5c;
    background: rgba(224, 92, 92, 0.03);
}

.bulk-history-item--cancelled {
    border-left-color: #a37500;
}

.bulk-history-item--preview {
    border-left-color: var(--pl-primary);
}

.bulk-history-item__icon {
    font-size: 1.4rem;
    flex-shrink: 0;
}

.bulk-history-item__body {
    flex: 1;
    min-width: 0;
}

.bulk-history-item__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 4px;
}

.bulk-history-item__file {
    font-weight: 700;
    color: var(--pl-text);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.bulk-history-item__status {
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: var(--pl-text-muted);
    flex-shrink: 0;
}

.bulk-history-item__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 14px;
    font-size: 0.82rem;
    color: var(--pl-text-muted);
    margin-bottom: 6px;
}

.bulk-history-item__stats {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 12px;
    font-size: 0.82rem;
}

.bulk-history-item__stat {
    color: var(--pl-text);
}

.bulk-history-item__error {
    margin-top: 6px;
    padding: 8px 12px;
    border-radius: 8px;
    background: rgba(224, 92, 92, 0.08);
    color: #b23a3a;
    font-size: 0.82rem;
    word-break: break-word;
}

.bulk-history__footer {
    display: flex;
    justify-content: center;
    padding-top: 6px;
}

/* ═══════════════════════════════════════════
   §23  MODAL CHROME (global)
   ═══════════════════════════════════════════ */

.modal-content {
    background: #ffffff;
    border: 1px solid #e2e8f0 !important;
    border-radius: 24px !important;
    color: var(--pl-text);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15) !important;
}

.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;
}

/* ═══════════════════════════════════════════
   §24  STAGGER ANIMATIONS (nth-child delays)
   ═══════════════════════════════════════════ */

.preset-card:nth-child(1) {
    animation-delay: 0s;
}

.preset-card:nth-child(2) {
    animation-delay: 0.05s;
}

.preset-card:nth-child(3) {
    animation-delay: 0.1s;
}

.preset-card:nth-child(4) {
    animation-delay: 0.15s;
}

.preset-card:nth-child(5) {
    animation-delay: 0.2s;
}

.preset-card:nth-child(n+6) {
    animation-delay: 0.25s;
}

.schedule-card:nth-child(1) {
    animation: plSlideUp 0.3s ease both;
}

.schedule-card:nth-child(2) {
    animation: plSlideUp 0.3s ease 0.05s both;
}

.schedule-card:nth-child(3) {
    animation: plSlideUp 0.3s ease 0.1s both;
}

/* ═══════════════════════════════════════════
   §25  FOCUS STATES (accessibility)
   ═══════════════════════════════════════════ */

.pl-btn:focus-visible,
.pl-icon-btn:focus-visible,
.pl-btn-icon:focus-visible,
.advisor-nav-pill:focus-visible,
.advisor-preview-tab:focus-visible,
.send-modal__segment:focus-visible {
    outline: 2px solid var(--pl-accent);
    outline-offset: 2px;
}

/* ═══════════════════════════════════════════
   §26  SCROLLBAR GLOBALS
   ═══════════════════════════════════════════ */

.send-modal__members::-webkit-scrollbar,
.group-modal-list::-webkit-scrollbar,
.schedule-logs__list::-webkit-scrollbar,
.bulk-history__list::-webkit-scrollbar,
.pl-products-grid::-webkit-scrollbar,
.bulk-change-group__body::-webkit-scrollbar,
.bulk-errors__list::-webkit-scrollbar {
    width: 5px;
}

.send-modal__members::-webkit-scrollbar-track,
.group-modal-list::-webkit-scrollbar-track,
.schedule-logs__list::-webkit-scrollbar-track,
.bulk-history__list::-webkit-scrollbar-track {
    background: transparent;
}

.send-modal__members::-webkit-scrollbar-thumb,
.group-modal-list::-webkit-scrollbar-thumb,
.schedule-logs__list::-webkit-scrollbar-thumb,
.bulk-history__list::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 10px;
}

/* ═══════════════════════════════════════════
   §27  REDUCED MOTION
   ═══════════════════════════════════════════ */

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ═══════════════════════════════════════════
   §28  DP-HERO (PriceListHeader + BulkAssign header)
   ═══════════════════════════════════════════ */

.dp-hero {
    background: linear-gradient(135deg, #0b1e2d 0%, #1a3a5c 100%);
    border-radius: var(--pl-radius);
    padding: 2rem 2.5rem;
    color: white;
    box-shadow: var(--pl-shadow-lg);
    animation: qtFadeSlideIn 0.3s ease both;
}

.dp-hero-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.dp-hero-copy {
    flex: 1;
    min-width: 260px;
}

.dp-hero-eyebrow {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(255,255,255,0.6);
    margin-bottom: 0.5rem;
}

.dp-hero-copy h1 {
    font-size: 1.75rem;
    font-weight: 700;
    margin: 0 0 0.4rem 0;
    color: white;
}

.dp-hero-copy p {
    margin: 0;
    font-size: 0.92rem;
    color: rgba(255,255,255,0.75);
    max-width: 520px;
}

/* ═══════════════════════════════════════════
   §29  PL-SUMMARY (header stats)
   ═══════════════════════════════════════════ */

.pl-summary {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.pl-summary__item {
    background: rgba(255,255,255,0.08);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: var(--pl-radius-sm);
    padding: 0.75rem 1.25rem;
    text-align: center;
    min-width: 100px;
    transition: all var(--pl-transition);
}

    .pl-summary__item:hover {
        background: rgba(255,255,255,0.14);
        transform: translateY(-2px);
    }

.pl-summary__label {
    display: block;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: rgba(255,255,255,0.55);
    margin-bottom: 0.25rem;
}

.pl-summary__value {
    font-size: 1.8rem;
    font-weight: bold;
    color: white;
}

.pl-summary__item--highlight {
    background: linear-gradient(135deg, rgba(59,130,246,0.25), rgba(59,130,246,0.15));
    border-color: rgba(59,130,246,0.4);
}

    .pl-summary__item--highlight .pl-summary__value {
        color: #93c5fd;
    }

/* ═══════════════════════════════════════════
   §30  PL-SUMMARY-CARD (classification report)
   ═══════════════════════════════════════════ */

.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: bold;
    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;
    }

/* ═══════════════════════════════════════════
   §31  PL-WORKSPACE
   ═══════════════════════════════════════════ */

.pl-workspace {
    background: var(--pl-surface);
    border: 1px solid #e2e8f0;
    border-radius: var(--pl-radius);
    overflow: auto;
    box-shadow: var(--pl-shadow);
}

/* ═══════════════════════════════════════════
   §32  AP-VIEW / AP-SCROLL (ProductsModal)
   ═══════════════════════════════════════════ */

.ap-view {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.ap-search {
    margin: 0;
}

.ap-scroll {
    height: 55vh;
    overflow-y: auto;
}

.ap-row__thumb {
    width: 42px;
    height: 42px;
    object-fit: contain;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    flex-shrink: 0;
}

/* ═══════════════════════════════════════════
   §33  PRODUCT SEARCH MODAL
   ═══════════════════════════════════════════ */

.pl-product-search {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.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;
}

.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 var(--pl-transition), box-shadow var(--pl-transition);
}

    .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 var(--pl-transition);
}

    .pl-product-search__clear:hover {
        background: #e2e8f0;
        color: #0f172a;
    }

.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;
    }

.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;
}

.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 cards */
.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 var(--pl-transition);
}

    .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: bold;
        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;
    }

.pl-product-result__locations {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

/* Location cards (breadcrumbs) */
.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 var(--pl-transition);
}

    .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;
}

.pl-location-breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.4rem;
    font-size: 0.85rem;
}

/* ═══════════════════════════════════════════
   §34  PRODUCTS SEARCH BAR (inline)
   ═══════════════════════════════════════════ */

.pl-products-search {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: white;
    border-radius: 14px;
    padding: 0.3rem 0.3rem 0.3rem 1rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.02);
}

.pl-products-search__icon {
    color: #94a3b8;
    font-size: 1rem;
}

/* ═══════════════════════════════════════════
   §35  CLASSIFICATION REPORT
   ═══════════════════════════════════════════ */

.pl-classification {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.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;
}

.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;
    }

.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;
}

.pl-classification__summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 0.85rem;
}

.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 var(--pl-transition);
}

    .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;
    }

.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 rows */
.pl-brand-row {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 0.85rem 1.1rem;
    transition: all var(--pl-transition);
}

    .pl-brand-row:hover {
        box-shadow: 0 6px 18px rgba(0,0,0,0.04);
        border-color: #bfdbfe;
    }

.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;
}

.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__percent {
    font-size: 0.9rem;
    font-weight: bold;
    min-width: 56px;
    text-align: right;
}

.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 var(--pl-transition);
}

    .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;
    }

.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-brand-row__missing-more {
    margin-top: 0.5rem;
    text-align: center;
    font-size: 0.8rem;
    color: #94a3b8;
    font-style: italic;
}

.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;
}

/* ═══════════════════════════════════════════
   §36  CREATE / EDIT NODE MODAL
   ═══════════════════════════════════════════ */

.create-node-modal {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.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;
    }

.create-node-form {
    margin: 0;
}

    .create-node-form .form-control {
        background: var(--pl-surface);
        border: 1px solid #cbd5e1;
        border-radius: 14px;
        padding: 0.7rem 1rem;
        font-size: 0.95rem;
        transition: all var(--pl-transition);
        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;
        }

.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 var(--pl-transition);
    }

        .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 var(--pl-transition);
    }

        .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);
        }

/* SAP brand selector */
.sap-brand-selector {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.sap-brand-list {
    max-height: 320px;
    overflow-y: auto;
    display: grid;
    gap: 10px;
    margin-top: 14px;
    border: 1px solid #e2edf7;
    border-radius: 16px;
    background: white;
    padding: 0.5rem;
}

    .sap-brand-list::-webkit-scrollbar {
        width: 5px;
    }

    .sap-brand-list::-webkit-scrollbar-thumb {
        background: #cbd5e1;
        border-radius: 10px;
    }

.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;
}

/* ═══════════════════════════════════════════
   §37  DELETE NODE MODAL
   ═══════════════════════════════════════════ */

.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%;
}

.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 var(--pl-transition);
    }

        .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 var(--pl-transition);
    }

        .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;
        }

/* ═══════════════════════════════════════════
   §38  BULK ASSIGN (full page /price/bulk-assign)
   ═══════════════════════════════════════════ */

.ba-page {
    padding-bottom: 5.5rem;
}

.ba-products-toolbar {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    flex-wrap: wrap;
}

.ba-products-search {
    flex: 1;
    min-width: 220px;
    margin: 0 !important;
}

.ba-order-select {
    min-width: 170px;
}

/* Toggle bar (pendientes / todos / clasificados) */
.ba-view-toggle {
    display: flex;
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    overflow: hidden;
}

.ba-view-toggle__btn {
    background: white;
    border: none;
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: #334155;
    cursor: pointer;
    white-space: nowrap;
    transition: all var(--pl-transition);
}

    .ba-view-toggle__btn + .ba-view-toggle__btn {
        border-left: 1px solid #cbd5e1;
    }

    .ba-view-toggle__btn:hover:not(:disabled):not(.active) {
        background: #f1f5f9;
    }

    .ba-view-toggle__btn.active {
        background: linear-gradient(135deg, #ef4444, #f97316);
        color: white;
    }

    .ba-view-toggle__btn:nth-child(2).active {
        background: linear-gradient(135deg, #3b82f6, #6366f1);
    }

    .ba-view-toggle__btn:nth-child(3).active {
        background: linear-gradient(135deg, #10b981, #059669);
    }

    .ba-view-toggle__btn:disabled {
        opacity: 0.4;
        cursor: not-allowed;
    }

.ba-pending-hint {
    margin: -0.4rem 0 0.75rem 0;
    font-size: 0.78rem;
    color: #92400e;
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: 10px;
    padding: 0.5rem 0.85rem;
}

/* Product rows */
.ba-products-list {
    display: flex;
    flex-direction: column;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    overflow: hidden;
    flex: 1;
    min-height: 0;
}

.ba-products-list--page {
    display: flex;
    flex-direction: column;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    overflow: hidden;
    flex: 1;
    min-height: 0;
}

.ba-row {
    display: grid;
    grid-template-columns: 24px 1fr 90px 90px 70px 70px;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0.85rem;
    border-bottom: 1px solid #f1f5f9;
    cursor: pointer;
    font-size: 0.82rem;
    color: #334155;
    transition: background var(--pl-transition);
}

    .ba-row:last-child {
        border-bottom: none;
    }

    .ba-row:hover {
        background: #f8fafc;
    }

    .ba-row.checked {
        background: #eff6ff;
    }

    .ba-row input[type="checkbox"] {
        accent-color: var(--pl-accent);
        width: 16px;
        height: 16px;
        cursor: pointer;
    }

.ba-row--header {
    background: #f8fafc;
    font-weight: 700;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #475569;
    cursor: default;
    border-bottom: 2px solid #e2e8f0;
}

    .ba-row--header:hover {
        background: #f8fafc;
    }

.ba-row--simple {
    grid-template-columns: 24px 1fr;
}

.ba-row__info {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    min-width: 0;
}

.ba-row__thumb {
    width: 40px;
    height: 40px;
    object-fit: contain;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    flex-shrink: 0;
}

.ba-row__text {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.ba-row__code {
    font-weight: 700;
    color: #2563eb;
    font-size: 0.78rem;
}

.ba-row__name {
    font-size: 0.75rem;
    color: #64748b;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ba-row__col {
    text-align: center;
    font-size: 0.78rem;
    color: #475569;
}

.ba-products-scroll {
    overflow-y: auto;
    max-height: 420px;
}

.ba-products-scroll--page {
    height: calc(100vh - 420px);
    overflow-y: auto;
}

.ba-actions__count {
    font-size: 0.85rem;
    color: #64748b;
    font-weight: 600;
}

/* Sticky bar */
.ba-sticky-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 50;
    background: #ffffff;
    border-top: 1px solid #e2e8f0;
    box-shadow: 0 -8px 24px rgba(0,0,0,0.06);
    padding: 0.9rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ba-sticky-bar--danger {
    border-top-color: #fecaca;
    background: #fef9f9;
}

/* Page-level overrides */
.ba-layout--page {
    min-height: 65vh;
}

.ba-products-column--page {
    max-height: none;
}

/* ═══════════════════════════════════════════
   §39  EXPORT ACTIONS
   ═══════════════════════════════════════════ */

.export-actions {
    gap: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid #f1f5f9;
}

/* ═══════════════════════════════════════════
   §40  TREE TOOLBAR PARTS
   ═══════════════════════════════════════════ */

.pl-tree-toolbar__left {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.pl-tree-toolbar__right {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

/* ═══════════════════════════════════════════
   §41  HEADER TOOLBAR (legacy /price)
   ═══════════════════════════════════════════ */

.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;
}

/* ═══════════════════════════════════════════
   §42  ORDER OPTIONS
   ═══════════════════════════════════════════ */

.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 var(--pl-transition);
    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;
    }

/* ═══════════════════════════════════════════
   §43  PATCH — remaining classes
   ═══════════════════════════════════════════ */

.preset-hero__text {
    flex: 1;
    min-width: 220px;
}

.bulk-import-card__icon--download {
    background: linear-gradient(135deg, rgba(59,130,246,0.18), rgba(59,130,246,0.06));
}

.schedule-log__stat {
    font-size: 0.82rem;
    color: var(--pl-text);
}

/* ═══════════════════════════════════════════
   §99  REDUCED MOTION (must be last)
   ═══════════════════════════════════════════ */

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ============================================================
   CUSTOMER GROUP - NOTIFICATION STATUS
   ============================================================ */

.group-customer-card--unavailable {
    background: linear-gradient( 135deg, #ffffff 0%, #fffaf5 100% );
    border-color: #fed7aa;
}


/* ============================================================
   NOTIFICATION WARNING
   ============================================================ */

.group-customer-card__notification-warning {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-top: 7px;
    padding: 8px 10px;
    border: 1px solid #fed7aa;
    border-radius: 10px;
    background: #fff7ed;
    color: #9a3412;
}

.group-customer-card__notification-warning-icon {
    flex: 0 0 auto;
    margin-top: 1px;
    font-size: 13px;
    line-height: 1.2;
}

.group-customer-card__notification-warning > div {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.group-customer-card__notification-warning strong {
    font-size: 11px;
    font-weight: 700;
    line-height: 1.3;
    color: #9a3412;
}

.group-customer-card__notification-warning small {
    font-size: 10px;
    line-height: 1.35;
    color: #b45309;
}


/* ============================================================
   NOTIFICATION OK
   ============================================================ */

.group-customer-card__notification-ok {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    width: fit-content;
    margin-top: 5px;
    padding: 3px 7px;
    border: 1px solid #bbf7d0;
    border-radius: 999px;
    background: #f0fdf4;
    font-size: 9px;
    font-weight: 700;
    color: #15803d;
}


/* ============================================================
   PHONE
   ============================================================ */

.group-customer-card__phone {
    display: block;
    margin-top: 2px;
    font-size: 11px;
    line-height: 1.3;
    color: #64748b;
}


/* ============================================================
   DISABLED ADD BUTTON
   ============================================================ */

.group-customer-card__add-btn:disabled,
.group-customer-card__add-btn[disabled] {
    opacity: .32;
    cursor: not-allowed;
    filter: grayscale(1);
    transform: none !important;
    box-shadow: none !important;
}

    .group-customer-card__add-btn:disabled:hover,
    .group-customer-card__add-btn[disabled]:hover {
        transform: none !important;
        box-shadow: none !important;
    }

/* ============================================================
   CUSTOMER CARD - CONTACT STATUS
   ============================================================ */

.group-customer-card--unavailable {
    border-color: #e2e8f0;
    background: #ffffff;
}

.group-customer-card__contact {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-top: 3px;
}

.group-customer-card__phone {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    color: #64748b;
}


/* ============================================================
   STATUS
   ============================================================ */

.group-customer-status {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    width: fit-content;
    max-width: 100%;
    margin-top: 7px;
    padding: 7px 9px;
    border-radius: 9px;
}

.group-customer-status__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 18px;
    width: 18px;
    height: 18px;
    margin-top: 1px;
    border-radius: 50%;
    font-size: 11px;
    font-weight: 800;
}

.group-customer-status__content {
    display: flex;
    flex-direction: column;
    gap: 1px;
    min-width: 0;
}

    .group-customer-status__content strong {
        font-size: 10.5px;
        line-height: 1.3;
        font-weight: 750;
    }

    .group-customer-status__content span {
        font-size: 9.5px;
        line-height: 1.35;
    }


/* ============================================================
   OK
   ============================================================ */

.group-customer-status--ok {
    align-items: center;
    padding: 4px 8px;
    border: 1px solid #bbf7d0;
    background: #f0fdf4;
    font-size: 9px;
    font-weight: 700;
    color: #15803d;
}

    .group-customer-status--ok .group-customer-status__icon {
        width: 16px;
        height: 16px;
        flex-basis: 16px;
        background: #dcfce7;
        color: #16a34a;
    }


/* ============================================================
   WARNING
   ============================================================ */

.group-customer-status--warning {
    border: 1px solid #fde68a;
    background: #fffbeb;
}

    .group-customer-status--warning .group-customer-status__icon {
        background: #fef3c7;
        color: #d97706;
    }

    .group-customer-status--warning strong {
        color: #92400e;
    }

    .group-customer-status--warning .group-customer-status__content span {
        color: #a16207;
    }


/* ============================================================
   BLOCKED
   ============================================================ */

.group-customer-status--blocked {
    border: 1px solid #fecaca;
    background: #fef2f2;
}

    .group-customer-status--blocked .group-customer-status__icon {
        background: #fee2e2;
        color: #dc2626;
    }

    .group-customer-status--blocked strong {
        color: #991b1b;
    }

    .group-customer-status--blocked .group-customer-status__content span {
        color: #b91c1c;
    }


/* ============================================================
   ACTION
   ============================================================ */

.group-customer-card__action {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
}

.group-customer-card__add-btn:disabled {
    opacity: .28;
    cursor: not-allowed;
    filter: grayscale(1);
    pointer-events: none;
    transform: none !important;
    box-shadow: none !important;
}

/* ============================================================
   ADD ALL CUSTOMERS
   ============================================================ */

.group-modal-column__header--actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

    .group-modal-column__header--actions > div {
        min-width: 0;
    }

.group-add-all-btn {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 34px;
    padding: 7px 12px;
    white-space: nowrap;
    font-size: 11px;
    font-weight: 700;
}

    .group-add-all-btn:disabled {
        opacity: .65;
        cursor: wait;
    }


/* ============================================================
   SPINNER
   ============================================================ */

.group-add-all-btn__spinner {
    width: 13px;
    height: 13px;
    border: 2px solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: group-add-all-spin .7s linear infinite;
}

@keyframes group-add-all-spin {
    to {
        transform: rotate(360deg);
    }
}


@media (max-width: 650px) {

    .group-modal-column__header--actions {
        align-items: stretch;
        flex-direction: column;
    }

    .group-add-all-btn {
        width: 100%;
    }
}

/* ============================================================
   HEADER ACTIONS
   ============================================================ */

.group-modal-column__header--actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.group-modal-header-actions {
    display: flex;
    align-items: center;
    gap: 7px;
    flex: 0 0 auto;
}


/* ============================================================
   VER TODOS
   ============================================================ */

.group-show-all-btn {
    min-height: 34px;
    padding: 7px 11px;
    border: 1px solid #cbd5e1;
    background: #ffffff;
    color: #475569;
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
}

    .group-show-all-btn:hover {
        border-color: #93c5fd;
        background: #eff6ff;
        color: #1d4ed8;
    }


/* ============================================================
   QUITAR TODOS
   ============================================================ */

.group-remove-all-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    min-height: 34px;
    padding: 7px 11px;
    border: 1px solid #fecaca;
    background: #fff;
    color: #dc2626;
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
}

    .group-remove-all-btn:hover {
        background: #fef2f2;
        border-color: #fca5a5;
    }


/* ============================================================
   CONFIRMACIÓN
   ============================================================ */

.group-remove-confirm {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px;
    border: 1px solid #fecaca;
    border-radius: 10px;
    background: #fff7f7;
}

.group-remove-confirm__text {
    padding: 0 5px;
    font-size: 10px;
    font-weight: 650;
    color: #991b1b;
}

.group-remove-confirm__cancel,
.group-remove-confirm__accept {
    min-height: 28px;
    padding: 5px 8px;
    font-size: 10px;
    font-weight: 700;
}

.group-remove-confirm__cancel {
    background: #fff;
    color: #475569;
}

.group-remove-confirm__accept {
    border-color: #dc2626;
    background: #dc2626;
    color: #fff;
}


/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 700px) {

    .group-modal-column__header--actions {
        align-items: stretch;
        flex-direction: column;
    }

    .group-modal-header-actions {
        width: 100%;
    }

    .group-show-all-btn,
    .group-add-all-btn {
        flex: 1;
    }

    .group-remove-confirm {
        flex-wrap: wrap;
    }
}

/* ============================================================
   HEADERS CON ACCIONES
   ============================================================ */

.group-modal-column__header--actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.group-modal-column__header-info {
    min-width: 0;
}

.group-modal-header-actions {
    display: flex;
    align-items: center;
    gap: 7px;
    flex: 0 0 auto;
}


/* ============================================================
   VER TODOS
   ============================================================ */

.group-show-all-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 7px 11px;
    border: 1px solid #cbd5e1;
    border-radius: 9px;
    background: #ffffff;
    color: #475569;
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
}

    .group-show-all-btn:hover:not(:disabled) {
        border-color: #93c5fd;
        background: #eff6ff;
        color: #1d4ed8;
    }


/* ============================================================
   AGREGAR TODOS
   ============================================================ */

.group-add-all-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 34px;
    padding: 7px 12px;
    white-space: nowrap;
    font-size: 11px;
    font-weight: 700;
}

.group-add-all-btn__spinner {
    width: 13px;
    height: 13px;
    border: 2px solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: group-add-all-spin .7s linear infinite;
}

@keyframes group-add-all-spin {
    to {
        transform: rotate(360deg);
    }
}


/* ============================================================
   QUITAR TODOS
   ============================================================ */

.group-remove-all-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 7px 11px;
    border: 1px solid #fecaca;
    border-radius: 9px;
    background: #ffffff;
    color: #dc2626;
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
}

    .group-remove-all-btn:hover:not(:disabled) {
        border-color: #fca5a5;
        background: #fef2f2;
    }


/* ============================================================
   CONFIRMACIÓN QUITAR TODOS
   ============================================================ */

.group-remove-confirm {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px;
    border: 1px solid #fecaca;
    border-radius: 10px;
    background: #fff7f7;
}

.group-remove-confirm__text {
    padding: 0 5px;
    font-size: 10px;
    font-weight: 700;
    color: #991b1b;
}

.group-remove-confirm__cancel,
.group-remove-confirm__accept {
    min-height: 28px;
    padding: 5px 8px;
    font-size: 10px;
    font-weight: 700;
}

.group-remove-confirm__cancel {
    background: #ffffff;
    color: #475569;
}

.group-remove-confirm__accept {
    border-color: #dc2626;
    background: #dc2626;
    color: #ffffff;
}


/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 760px) {

    .group-modal-column__header--actions {
        flex-direction: column;
        align-items: stretch;
    }

    .group-modal-header-actions {
        width: 100%;
    }

    .group-show-all-btn,
    .group-add-all-btn {
        flex: 1;
    }

    .group-remove-confirm {
        flex-wrap: wrap;
    }
}