/* ════════════════════════════════════════════════════════════════════
   AutoBid Pro — Sistema de diseño
   Sidebar icon-only + acento naranja "automotriz" + claro/oscuro
   ════════════════════════════════════════════════════════════════════ */

:root {
    /* ── Marca — Azul Noche + Dorado ─────────────────────────────── */
    --brand-50: #F0F5FD;
    --brand-100: #E0EBFA;
    --brand-200: #BAD0EE;
    --brand-400: #5585CD;
    --brand-500: #2E63BC;
    --brand-600: #254D94;
    --brand-700: #1E3A6E;
    /* ── Dorado — botón primario y acentos ───────────────────────── */
    --gold-50: #FEF6E8;
    --gold-100: #FDE9C3;
    --gold-200: #FAD48F;
    --gold-300: #F7BC5A;
    --gold-400: #F5A623;
    --gold-500: #E08900;
    --gold-600: #C97A00;
    --gold-800: #7A4A00;
    --gold-900: #4A2D00;
    /* ── Semánticos ──────────────────────────────────────────────── */
    --success: #16A34A;
    --success-bg: #DCFCE7;
    --danger: #DC2626;
    --danger-bg: #FEE2E2;
    --warning: #D97706;
    --warning-bg: #FEF3C7;
    --info: #2563EB;
    --info-bg: #DBEAFE;
    --violet: #7C5CFF;
    --violet-bg: #F0ECFF;
    /* ── Superficies — modo claro ────────────────────────────────── */
    --bg-app: #F4F6FA;
    --bg-surface: #FFFFFF;
    --bg-surface-muted: #F0F4FA;
    --sidebar-bg: #0F1B3D;
    --sidebar-bg-active: #1E3A6E;
    --sidebar-text: #8AAEDD;
    /* ── Texto ───────────────────────────────────────────────────── */
    --text-primary: #0F1B3D;
    --text-secondary: #3A4F7A;
    --text-tertiary: #7A8FB5;
    --border: #D5E0F0;
    --radius-sm: 6px;
    --radius-md: 9px;
    --radius-lg: 12px;
    --font-sans: 'Inter', -apple-system, 'Segoe UI', sans-serif;
    --font-mono: 'IBM Plex Mono', 'Cascadia Code', monospace;
}

html[data-theme="dark"] {
    --brand-50: #0A1228;
    --brand-100: #0F1B3D;
    --brand-200: #1E3A6E;
    --brand-600: #8AAEDD;
    --brand-700: #BAD0EE;
    --gold-400: #F5A623;
    --gold-300: #F7BC5A;
    --success-bg: #052E16;
    --danger-bg: #1A0505;
    --warning-bg: #1C1100;
    --info-bg: #0A1628;
    --violet-bg: #1C1733;
    --bg-app: #080E1F;
    --bg-surface: #0F1B3D;
    --bg-surface-muted: #162448;
    --sidebar-bg: #070D1F;
    --sidebar-bg-active: #0F1B3D;
    --sidebar-text: #6B8BBF;
    --text-primary: #EEF2FF;
    --text-secondary: #A8BEDE;
    --text-tertiary: #6B85B5;
    --border: #1E3056;
}

* {
    box-sizing: border-box;
}

svg {
    display: inline-block;
    vertical-align: middle;
    flex-shrink: 0;
}

body {
    margin: 0;
    font-family: var(--font-sans);
    background: var(--bg-app);
    color: var(--text-primary);
    transition: background 0.15s ease, color 0.15s ease;
}

a {
    color: inherit;
    text-decoration: none;
}

/* ── Layout shell ───────────────────────────────────────────────────── */
.layout-shell {
    display: flex;
    min-height: 100vh;
}

.layout-main {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.layout-content {
    padding: 20px 26px;
    flex: 1;
}

/* ── Sidebar (icon-only ↔ expandido) ──────────────────────────────── */
.sidebar {
    width: 68px;
    background: var(--sidebar-bg);
    min-height: 100vh;
    padding: 16px 0;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: width 0.18s ease;
    overflow-x: hidden;
}

    .sidebar.expanded {
        width: 220px;
        align-items: stretch;
        padding: 16px 12px;
    }

.sidebar-logo {
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.sidebar.expanded .sidebar-logo {
    padding: 0 2px;
}

.logo-icon {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-md);
    background: var(--brand-500);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 16px;
    flex-shrink: 0;
}

.logo-row {
    display: flex;
    align-items: center;
    gap: 10px;
    overflow: hidden;
}

.logo-text {
    color: white;
    font-weight: 700;
    font-size: 14px;
    white-space: nowrap;
    opacity: 0;
    width: 0;
    transition: opacity 0.15s ease;
}

.sidebar.expanded .logo-text {
    opacity: 1;
    width: auto;
}

.sidebar-toggle {
    width: 26px;
    height: 26px;
    border-radius: var(--radius-sm);
    display: none;
    align-items: center;
    justify-content: center;
    color: var(--sidebar-text);
    cursor: pointer;
    flex-shrink: 0;
    background: transparent;
    border: none;
}

    .sidebar-toggle:hover {
        background: var(--sidebar-bg-active);
        color: white;
    }

.sidebar.expanded .sidebar-toggle {
    display: flex;
}

.sidebar-toggle-collapsed {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--sidebar-text);
    cursor: pointer;
    margin-bottom: 10px;
    background: transparent;
    border: none;
}

    .sidebar-toggle-collapsed:hover {
        background: var(--sidebar-bg-active);
        color: white;
    }

.sidebar.expanded .sidebar-toggle-collapsed {
    display: none;
}

.nav-section {
    display: none;
    color: rgba(255,255,255,0.3);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    padding: 14px 10px 6px;
    white-space: nowrap;
}

.sidebar.expanded .nav-section {
    display: block;
}

.nav-item {
    position: relative;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--sidebar-text);
    font-size: 18px;
    margin-bottom: 4px;
    cursor: pointer;
    position: relative;
    flex-shrink: 0;
}

    .nav-item:hover {
        background: var(--sidebar-bg-active);
        color: white;
    }

    .nav-item.active {
        background: rgba(245,166,35,0.15);
        color: #F5A623;
    }

        .nav-item.active::before {
            content: '';
            position: absolute;
            left: -16px;
            width: 3px;
            height: 18px;
            background: #F5A623;
            border-radius: 2px;
        }

.sidebar.expanded .nav-item {
    width: 100%;
    justify-content: flex-start;
    gap: 12px;
    padding: 0 10px;
}

    .sidebar.expanded .nav-item.active::before {
        left: -12px;
    }

.nav-item-label {
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    width: 0;
    overflow: hidden;
    transition: opacity 0.12s ease;
}

.sidebar.expanded .nav-item-label {
    opacity: 1;
    width: auto;
}

.nav-item-label-spacer {
    margin-left: auto;
}

.nav-badge {
    position: absolute;
    top: 2px;
    right: 2px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--brand-500);
    border: 1.5px solid var(--sidebar-bg);
}

.sidebar.expanded .nav-badge {
    position: static;
    margin-left: auto;
    width: 7px;
    height: 7px;
}

.nav-divider {
    width: 26px;
    height: 1px;
    background: rgba(255,255,255,0.08);
    margin: 10px 0;
    align-self: center;
}

.sidebar.expanded .nav-divider {
    width: 100%;
    margin: 10px 0;
}

.sidebar-footer {
    margin-top: auto;
}

.user-row {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.sidebar.expanded .user-row {
    flex-direction: row;
    align-items: center;
    padding: 8px 10px 0;
    gap: 10px;
}

.user-avatar {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-md);
    background: var(--brand-100);
    color: var(--brand-700);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    flex-shrink: 0;
}

.user-row-name {
    font-size: 12.5px;
    color: white;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    opacity: 0;
    width: 0;
}

.sidebar.expanded .user-row-name {
    opacity: 1;
    width: auto;
    flex: 1;
}

.logout-btn {
    color: var(--sidebar-text);
    font-size: 16px;
    transition: color 0.15s ease;
}

    .logout-btn:hover {
        color: #F5A623;
    }

/* ── Topbar ─────────────────────────────────────────────────────────── */
.layout-topbar {
    background: #0F1B3D;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    padding: 13px 26px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.topbar-title {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--text-secondary);
}

.topbar-actions {
    display: flex;
    align-items: center;
    gap: 14px;
}

.icon-btn {
    width: 34px;
    height: 34px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: var(--bg-surface-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 16px;
    color: var(--text-secondary);
    position: relative;
}

    .icon-btn:hover {
        background: var(--border);
    }

    /* Favorito activo */
    .icon-btn.ld-fav-active {
        color: var(--danger);
        border-color: var(--danger-bg);
        background: var(--danger-bg);
    }

/* Notification bell */
.notif-bell {
    position: relative;
}

.notif-dot {
    position: absolute;
    top: 6px;
    right: 8px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--danger);
    border: 1.5px solid var(--bg-surface);
}

.notif-dropdown {
    position: absolute;
    top: 44px;
    right: 0;
    width: 320px;
    z-index: 50;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: 0 8px 28px rgba(0,0,0,0.12);
}

.notif-dropdown-header {
    display: flex;
    justify-content: space-between;
    padding: 12px 14px;
    border-bottom: 1px solid var(--border);
    font-size: 12.5px;
    font-weight: 700;
}

.notif-dropdown-list {
    max-height: 320px;
    overflow-y: auto;
}

.notif-dropdown-item {
    display: flex;
    gap: 9px;
    padding: 10px 14px;
    border-bottom: 1px solid var(--border);
}

    .notif-dropdown-item.unread {
        background: var(--bg-surface-muted);
    }

.notif-item-icon {
    font-size: 15px;
}

.notif-item-title {
    font-size: 12px;
    font-weight: 500;
}

.notif-item-time {
    font-size: 10.5px;
    color: var(--text-tertiary);
    margin-top: 2px;
}

.notif-empty {
    padding: 24px;
    text-align: center;
    font-size: 12px;
    color: var(--text-tertiary);
}

.link-btn {
    background: none;
    border: none;
    color: var(--brand-600);
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
}

/* User menu */
.user-menu {
    display: flex;
    align-items: center;
    gap: 9px;
    cursor: pointer;
    padding-left: 12px;
    border-left: 1px solid rgba(255,255,255,0.15);
    position: relative;
}

.user-avatar-sm {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-sm);
    background: rgba(245,166,35,0.2);
    color: #F5A623;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 12px;
}

.user-name-sm {
    font-size: 13px;
    font-weight: 600;
    color: #FFFFFF;
}

.user-dropdown {
    position: absolute;
    top: 44px;
    right: 0;
    width: 200px;
    z-index: 50;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: 0 8px 28px rgba(0,0,0,0.12);
    padding: 6px;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 8px 10px;
    border-radius: var(--radius-sm);
    font-size: 12.5px;
    color: var(--text-primary);
}

    .dropdown-item:hover {
        background: var(--bg-surface-muted);
    }

    .dropdown-item.danger {
        color: var(--danger);
    }

.dropdown-divider {
    height: 1px;
    background: var(--border);
    margin: 4px 0;
}

/* ── Page header ────────────────────────────────────────────────────── */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 18px;
}

    .page-header h1 {
        font-size: 20px;
        margin: 0;
        font-weight: 700;
    }

.page-sub {
    font-size: 12.5px;
    color: var(--text-tertiary);
    margin-top: 3px;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 11.5px;
    color: var(--text-tertiary);
    margin-bottom: 14px;
}

    .breadcrumb a {
        color: var(--text-secondary);
        text-decoration: none;
    }

        .breadcrumb a:hover {
            color: var(--text-primary);
        }

    .breadcrumb b {
        color: var(--text-primary);
        font-weight: 700;
        letter-spacing: 0.04em;
    }

.live-pulse-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--success);
    box-shadow: 0 0 0 0 rgba(31, 166, 107, 0.5);
    animation: live-pulse 2s infinite;
}

@keyframes live-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(31, 166, 107, 0.5);
    }

    70% {
        box-shadow: 0 0 0 7px rgba(31, 166, 107, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(31, 166, 107, 0);
    }
}

/* ── Buttons ────────────────────────────────────────────────────────── */
.btn-primary {
    background: #F5A623;
    color: #0F1B3D;
    border: none;
    border-radius: var(--radius-sm);
    padding: 9px 16px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

    .btn-primary:hover {
        background: var(--brand-600);
    }

    .btn-primary:disabled {
        background: var(--bg-surface-muted);
        color: var(--text-tertiary);
        cursor: not-allowed;
    }

.btn-outline {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 8px 14px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    cursor: pointer;
}

    .btn-outline:hover {
        background: var(--bg-surface-muted);
    }

.btn-outline-sm {
    font-size: 12px;
    padding: 6px 11px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: var(--bg-surface);
    color: var(--text-secondary);
    cursor: pointer;
}

.btn-xs {
    font-size: 11px;
    padding: 4px 9px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: var(--bg-surface);
    color: var(--text-secondary);
    cursor: pointer;
}

/* ── Cards / Panels ─────────────────────────────────────────────────── */
.section-card, .panel {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 18px 20px;
    margin-bottom: 16px;
}

.card-header, .panel-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
}

    .card-header h3, .panel-title {
        font-size: 14px;
        font-weight: 700;
        margin: 0;
    }

.card-link {
    font-size: 12px;
    color: var(--brand-600);
    font-weight: 600;
}

.panel-tag {
    font-size: 10.5px;
    font-weight: 600;
    color: var(--text-tertiary);
    background: var(--bg-surface-muted);
    padding: 3px 9px;
    border-radius: var(--radius-sm);
}

/* ── KPI cards ──────────────────────────────────────────────────────── */
.kpi-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin-bottom: 18px;
}

.kpi-card {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 16px 18px;
}

.kpi-label {
    font-size: 11.5px;
    color: var(--text-secondary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    margin-bottom: 8px;
}

.kpi-val {
    font-size: 25px;
    font-weight: 700;
}

    .kpi-val.warning {
        color: var(--brand-600);
    }

.kpi-change {
    font-size: 11.5px;
    color: var(--text-tertiary);
    margin-top: 6px;
}

    .kpi-change.positive {
        color: var(--success);
        font-weight: 600;
    }

/* ── Tables ─────────────────────────────────────────────────────────── */
.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

    .data-table th {
        text-align: left;
        color: var(--text-tertiary);
        font-weight: 600;
        padding: 9px 8px;
        border-bottom: 1px solid var(--border);
        font-size: 11.5px;
        text-transform: uppercase;
        letter-spacing: 0.02em;
    }

    .data-table td {
        padding: 11px 8px;
        border-bottom: 1px solid var(--border);
    }

    .data-table .mono {
        font-family: var(--font-mono);
        font-size: 12px;
    }

    .data-table .success {
        color: var(--success);
        font-weight: 600;
    }

    .data-table .warn {
        color: var(--brand-600);
        font-weight: 600;
    }

/* ── Badges ─────────────────────────────────────────────────────────── */
.badge {
    font-size: 11px;
    font-weight: 600;
    padding: 3px 9px;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.badge-success {
    background: var(--success-bg);
    color: var(--success);
}

.badge-warn {
    background: var(--warning-bg);
    color: var(--warning);
}

.badge-danger {
    background: var(--danger-bg);
    color: var(--danger);
}

.badge-green {
    background: var(--success-bg);
    color: var(--success);
}

.badge-blue {
    background: var(--info-bg);
    color: var(--info);
}

/* ── Forms ──────────────────────────────────────────────────────────── */
.form-group {
    margin-bottom: 14px;
}

    .form-group label {
        display: block;
        font-size: 12.5px;
        font-weight: 600;
        color: var(--text-secondary);
        margin-bottom: 6px;
    }

.form-input, input[type="text"], input[type="email"], input[type="password"], input[type="number"], input[type="date"], input[type="time"], select, textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 13.5px;
    background: var(--bg-surface);
    color: var(--text-primary);
    font-family: var(--font-sans);
}

    .form-input:focus, input:focus, select:focus {
        outline: none;
        border-color: var(--brand-400);
        box-shadow: 0 0 0 3px var(--brand-50);
    }

.auth-error {
    background: var(--danger-bg);
    color: var(--danger);
    font-size: 12.5px;
    padding: 9px 12px;
    border-radius: var(--radius-sm);
    margin-bottom: 12px;
}

/* ── Auth pages ─────────────────────────────────────────────────────── */
.empty-layout {
    min-height: 100vh;
    background: var(--bg-app);
}

.auth-shell {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: #0F1B3D;
}

.auth-card {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-top: 3px solid #F5A623;
    border-radius: var(--radius-lg);
    padding: 32px;
    width: 100%;
    max-width: 380px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.auth-logo {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 22px;
    font-weight: 700;
    font-size: 15px;
}

.logo-icon {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-md);
    background: #F5A623;
    color: #0F1B3D;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 16px;
}

.auth-card h2 {
    font-size: 20px;
    margin: 0 0 4px;
}

.auth-sub {
    font-size: 13px;
    color: var(--text-tertiary);
    margin: 0 0 20px;
}

.btn-auth-submit {
    width: 100%;
    background: #F5A623;
    color: #0F1B3D;
    font-weight: 700;
    border: none;
    padding: 11px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 4px;
}

    .btn-auth-submit:hover {
        background: #E08900;
    }

.auth-footer {
    text-align: center;
    margin-top: 18px;
    font-size: 12.5px;
    color: var(--text-tertiary);
}

    .auth-footer a {
        color: var(--brand-600);
        font-weight: 600;
    }

.divider {
    margin: 0 6px;
}

/* ── Kanban (bitácora de pujas) ─────────────────────────────────────── */
.kanban {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.kcol {
    background: var(--bg-surface-muted);
    border-radius: var(--radius-md);
    padding: 12px;
    min-height: 320px;
}

.kcol-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    padding: 0 2px;
}

.kcol-title {
    font-size: 11.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.kcol-count {
    font-size: 10.5px;
    font-weight: 700;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    padding: 1px 7px;
    border-radius: 10px;
    color: var(--text-secondary);
}

.card {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 10px 11px;
    margin-bottom: 8px;
}

/* ── Catalog grid ───────────────────────────────────────────────────── */
.filter-bar {
    display: flex;
    gap: 10px;
    margin-bottom: 18px;
    flex-wrap: wrap;
    align-items: center;
}

.search-box {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 9px 12px;
    flex: 1;
    min-width: 220px;
    color: var(--text-tertiary);
}

    .search-box input {
        border: none;
        outline: none;
        flex: 1;
        font-size: 13px;
        background: transparent;
        color: var(--text-primary);
        padding: 0;
    }

.filter-pills {
    display: flex;
    gap: 6px;
}

.filter-pill {
    font-size: 12px;
    padding: 7px 13px;
    border-radius: 20px;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    cursor: pointer;
}

    .filter-pill.active {
        background: var(--brand-500);
        color: white;
        border-color: var(--brand-500);
    }

.vehicle-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 16px;
}

.vehicle-card {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    cursor: pointer;
}

    .vehicle-card:hover {
        border-color: var(--brand-200);
    }

.vehicle-image {
    position: relative;
    aspect-ratio: 16/10;
    background: var(--bg-surface-muted);
}

.image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-tertiary);
    font-size: 28px;
}

.provider-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    font-size: 10.5px;
    font-weight: 700;
    background: #0F1B3D;
    color: #F5A623;
    padding: 3px 8px;
    border-radius: var(--radius-sm);
}

.grade-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    font-size: 11px;
    font-weight: 700;
    background: var(--brand-500);
    color: white;
    padding: 3px 8px;
    border-radius: var(--radius-sm);
}

.vehicle-body {
    padding: 12px 14px;
}

.vehicle-title {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 4px;
}

.vehicle-meta {
    font-size: 11.5px;
    color: var(--text-tertiary);
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 8px;
}

.vehicle-damage {
    display: flex;
    gap: 6px;
    margin-bottom: 10px;
}

.damage-badge {
    font-size: 10.5px;
    background: var(--danger-bg);
    color: var(--danger);
    padding: 2px 8px;
    border-radius: var(--radius-sm);
}

.drive-badge {
    font-size: 10.5px;
    padding: 2px 8px;
    border-radius: var(--radius-sm);
}

    .drive-badge.ok {
        background: var(--success-bg);
        color: var(--success);
    }

    .drive-badge.warn {
        background: var(--warning-bg);
        color: var(--warning);
    }

.vehicle-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.vehicle-price {
    font-size: 15px;
    font-weight: 700;
}

.vehicle-date {
    font-size: 11px;
    color: var(--text-tertiary);
}

.vehicle-actions {
    display: flex;
    gap: 8px;
}

.btn-detail {
    flex: 1;
    font-size: 12px;
    padding: 8px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: var(--bg-surface);
    color: var(--text-secondary);
    cursor: pointer;
}

.btn-bid {
    flex: 1;
    font-size: 12px;
    padding: 8px;
    border-radius: var(--radius-sm);
    border: none;
    background: #F5A623;
    color: #0F1B3D;
    cursor: pointer;
    font-weight: 600;
}

.bid-indicator {
    font-size: 11px;
    color: var(--success);
    font-weight: 600;
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-tertiary);
}

    .empty-state i {
        font-size: 36px;
    }

.loading-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 16px;
}

.vehicle-card.skeleton {
    height: 280px;
    background: var(--bg-surface-muted);
    animation: pulse 1.4s infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }

    50% {
        opacity: 0.6;
    }
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 14px;
    margin-top: 20px;
    font-size: 13px;
    color: var(--text-secondary);
}

.btn-page {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: var(--bg-surface);
    cursor: pointer;
}

    .btn-page:disabled {
        opacity: 0.4;
        cursor: not-allowed;
    }

/* ══════════════════════════════════════════════════════════════════════
   Lot detail — rediseñado
   ══════════════════════════════════════════════════════════════════════ */

/* ── Header del lote ────────────────────────────────────────────────── */
.ld-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 18px;
}

.ld-header-info h1 {
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 8px;
    color: var(--text-primary);
}

.ld-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
}

/* Pill neutral para lot # y ubicación */
.ld-meta-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11.5px;
    color: var(--text-secondary);
    background: var(--bg-surface-muted);
    border: 1px solid var(--border);
    padding: 3px 9px;
    border-radius: 20px;
}

.ld-header-actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
    margin-top: 2px;
}

/* ── Layout principal ───────────────────────────────────────────────── */
.lot-layout {
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    gap: 20px;
}

.ld-gallery-col {
    min-width: 0;
}

/* ── Imagen principal ───────────────────────────────────────────────── */
.main-image {
    position: relative;
    aspect-ratio: 16/10;
    background: var(--bg-surface-muted);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    overflow: hidden;
    cursor: pointer;
    margin-bottom: 10px;
}

    .main-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }

.image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-tertiary);
    font-size: 40px;
}

.nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(0,0,0,0.45);
    color: white;
    border: none;
    cursor: pointer;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

    .nav-btn.prev {
        left: 10px;
    }

    .nav-btn.next {
        right: 10px;
    }

.image-count {
    position: absolute;
    bottom: 10px;
    right: 10px;
    font-size: 11px;
    background: rgba(0,0,0,0.5);
    color: white;
    padding: 2px 9px;
    border-radius: 20px;
}

/* ── Botón cámara — overlay inferior izquierdo ──────────────────────── */
.ld-cam-wrap {
    position: absolute;
    bottom: 10px;
    left: 10px;
    z-index: 2;
}

.ld-cam-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    background: rgba(0, 0, 0, 0.50);
    color: #fff;
    border: none;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    font-family: var(--font-sans);
    transition: background 0.15s ease;
}

    .ld-cam-btn:hover {
        background: rgba(0, 0, 0, 0.70);
    }

/* ── Thumbnails ─────────────────────────────────────────────────────── */
.thumbnail-row {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}

.thumbnail {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-sm);
    background: var(--bg-surface-muted);
    border: 2px solid transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-tertiary);
    font-size: 16px;
    transition: border-color 0.12s ease;
}

    .thumbnail.active {
        border-color: var(--brand-500);
        color: var(--brand-500);
    }

    .thumbnail:hover:not(.active) {
        border-color: var(--border);
    }

/* ── Highlights de condición ────────────────────────────────────────── */
.highlights-row {
    display: flex;
    gap: 8px;
    margin-bottom: 14px;
    flex-wrap: wrap;
}

.highlight {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11.5px;
    font-weight: 600;
    padding: 6px 10px;
    border-radius: var(--radius-sm);
}

    .highlight.ok {
        background: var(--success-bg);
        color: var(--success);
    }

    .highlight.warn {
        background: var(--warning-bg);
        color: var(--warning);
    }

/* ── Tabs ───────────────────────────────────────────────────────────── */
.tabs {
    display: flex;
    gap: 4px;
    border-bottom: 1px solid var(--border);
    margin: 0 0 14px;
}

.tab {
    padding: 9px 4px;
    margin-right: 16px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-tertiary);
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    cursor: pointer;
    background: none;
    border-left: none;
    border-right: none;
    border-top: none;
    font-family: var(--font-sans);
    transition: color 0.12s ease;
}

    .tab.active {
        color: var(--brand-600);
        border-bottom-color: var(--brand-500);
    }

/* ── Specs grid ─────────────────────────────────────────────────────── */
.specs-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 24px;
}

.spec-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid var(--border);
    font-size: 12.5px;
    gap: 8px;
}

    .spec-row span {
        color: var(--text-tertiary);
        white-space: nowrap;
    }

    .spec-row strong {
        color: var(--text-primary);
        font-weight: 600;
        text-align: right;
    }

.badge-sm {
    font-size: 10px;
    padding: 1px 6px;
    border-radius: var(--radius-sm);
    margin-left: 4px;
}

    .badge-sm.ok {
        background: var(--success-bg);
        color: var(--success);
    }

    .badge-sm.warn {
        background: var(--warning-bg);
        color: var(--warning);
    }

.announcements-box {
    font-size: 13px;
    color: var(--text-secondary);
    padding: 14px;
    background: var(--bg-surface-muted);
    border-radius: var(--radius-md);
    line-height: 1.6;
}

.muted {
    color: var(--text-tertiary);
}

/* ── Panel derecho ──────────────────────────────────────────────────── */
.bid-panel {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

/* Card puja */
.bid-box {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 18px;
}

.bid-box-label {
    font-size: 12px;
    color: var(--text-tertiary);
    margin-bottom: 4px;
}

.bid-current {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 6px;
}

.bid-sub {
    font-size: 11.5px;
    color: var(--text-tertiary);
    margin-bottom: 4px;
}

.countdown {
    font-family: var(--font-mono);
    font-size: 18px;
    font-weight: 700;
    color: var(--brand-600);
    margin-bottom: 14px;
}

.bid-form label {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    display: block;
    margin-bottom: 6px;
}

.bid-input-wrap {
    display: flex;
    align-items: center;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    overflow: hidden;
    margin-bottom: 5px;
}

    .bid-input-wrap .prefix {
        padding: 10px 0 10px 12px;
        color: var(--text-tertiary);
        font-size: 15px;
        background: var(--bg-surface-muted);
        border-right: 1px solid var(--border);
        line-height: 1;
    }

.bid-input {
    border: none;
    flex: 1;
    padding: 10px 12px;
    font-size: 16px;
    font-weight: 700;
    outline: none;
    background: var(--bg-surface);
    color: var(--text-primary);
    font-family: var(--font-sans);
    width: 100%;
}

.bid-hint {
    font-size: 11px;
    color: var(--text-tertiary);
    margin-bottom: 12px;
}

.btn-authorize {
    width: 100%;
    background: #F5A623;
    color: #0F1B3D;
    border: none;
    padding: 12px;
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 13.5px;
    cursor: pointer;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    font-family: var(--font-sans);
    transition: background 0.12s ease;
}

    .btn-authorize:hover {
        background: var(--brand-600);
    }

    .btn-authorize:disabled {
        background: var(--bg-surface-muted);
        color: var(--text-tertiary);
        cursor: not-allowed;
    }

.active-bid-box {
    display: flex;
    gap: 10px;
    align-items: center;
    background: var(--success-bg);
    color: var(--success);
    padding: 12px;
    border-radius: var(--radius-md);
    font-size: 12.5px;
    margin-bottom: 10px;
}

.btn-watchlist {
    width: 100%;
    background: none;
    border: 1px solid var(--border);
    padding: 9px;
    border-radius: var(--radius-sm);
    font-size: 12.5px;
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-family: var(--font-sans);
    transition: background 0.12s ease;
}

    .btn-watchlist:hover {
        background: var(--bg-surface-muted);
    }

/* Cards info subasta y costos */
.info-block {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 16px 18px;
}

.section-title {
    font-size: 11.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-tertiary);
    margin-bottom: 10px;
}

.info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
    font-size: 12.5px;
    border-bottom: 1px solid var(--border);
    gap: 8px;
}

    .info-row:last-child {
        border-bottom: none;
    }

    .info-row span {
        color: var(--text-tertiary);
        white-space: nowrap;
    }

    .info-row strong {
        color: var(--text-primary);
        font-weight: 600;
        text-align: right;
    }

        .info-row strong.blue {
            color: var(--info);
        }

/* Enlace discreto a Copart */
.ld-copart-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 12px;
    padding: 9px 12px;
    background: var(--info-bg);
    color: var(--info);
    border-radius: var(--radius-md);
    font-size: 12.5px;
    font-weight: 600;
    text-decoration: none;
    transition: opacity 0.12s ease;
}

    .ld-copart-link:hover {
        opacity: 0.82;
    }

.info-note {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11.5px;
    color: var(--text-tertiary);
    padding: 0 2px;
}

/* ── Modal ──────────────────────────────────────────────────────────── */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
    padding: 20px;
}

.modal-box {
    background: var(--bg-surface);
    border-radius: var(--radius-lg);
    max-width: 480px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 18px 20px;
    border-bottom: 1px solid var(--border);
}

.modal-icon {
    width: 34px;
    height: 34px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
}

    .modal-icon.warn {
        background: var(--warning-bg);
        color: var(--warning);
    }

.modal-header h3 {
    font-size: 15px;
    flex: 1;
    margin: 0;
}

.modal-close {
    background: none;
    border: none;
    font-size: 16px;
    color: var(--text-tertiary);
    cursor: pointer;
}

.modal-body {
    padding: 18px 20px;
}

.warning-box {
    background: var(--warning-bg);
    color: var(--warning);
    font-size: 12.5px;
    padding: 12px;
    border-radius: var(--radius-md);
    margin-bottom: 14px;
    line-height: 1.5;
}

.confirm-detail {
    margin-bottom: 14px;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12.5px;
    padding: 6px 0;
    border-bottom: 1px solid var(--border);
    gap: 8px;
}

    .detail-row span {
        color: var(--text-tertiary);
    }

    .detail-row strong.blue {
        color: var(--info);
    }

.total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--brand-50);
    padding: 12px 14px;
    border-radius: var(--radius-md);
    margin-bottom: 14px;
}

.total-amount {
    font-size: 20px;
    font-weight: 700;
    color: var(--brand-600);
}

.checkbox-row {
    display: flex;
    gap: 9px;
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 10px;
    align-items: flex-start;
    line-height: 1.5;
}

    .checkbox-row input {
        margin-top: 2px;
        flex-shrink: 0;
    }

.modal-footer {
    display: flex;
    gap: 10px;
    padding: 16px 20px;
    border-top: 1px solid var(--border);
}

.btn-cancel {
    flex: 1;
    background: none;
    border: 1px solid var(--border);
    padding: 10px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    color: var(--text-secondary);
    font-family: var(--font-sans);
}

.btn-confirm {
    flex: 1;
    background: var(--brand-500);
    color: white;
    border: none;
    padding: 10px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-family: var(--font-sans);
}

    .btn-confirm:disabled {
        background: var(--bg-surface-muted);
        color: var(--text-tertiary);
    }

/* Modal éxito */
.success-box {
    text-align: center;
    padding: 28px 24px;
}

.success-icon {
    font-size: 40px;
    color: var(--success);
    margin-bottom: 10px;
}

.notif-list {
    text-align: left;
    margin: 16px 0;
}

.notif-item {
    display: flex;
    gap: 9px;
    align-items: center;
    font-size: 12.5px;
    padding: 6px 0;
}

    .notif-item.ok {
        color: var(--success);
    }

    .notif-item.info {
        color: var(--info);
    }

/* ── Bitácora calendar ──────────────────────────────────────────────── */
.legend-row {
    display: flex;
    gap: 16px;
    margin-bottom: 14px;
    font-size: 11.5px;
    color: var(--text-secondary);
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.legend-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

    .legend-dot.published {
        background: var(--success);
    }

    .legend-dot.scheduled {
        background: var(--info);
    }

    .legend-dot.processing {
        background: var(--warning);
    }

    .legend-dot.failed {
        background: var(--danger);
    }

    .legend-dot.empty {
        background: var(--border);
    }

.week-calendar {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 10px;
    margin-bottom: 20px;
}

.day-column {
    min-height: 140px;
}

.day-header {
    text-align: center;
    padding: 8px;
    border-radius: var(--radius-sm);
    margin-bottom: 8px;
    background: var(--bg-surface-muted);
}

    .day-header.today {
        background: var(--brand-50);
        color: var(--brand-600);
    }

.day-name {
    font-size: 10.5px;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--text-tertiary);
}

.day-num {
    font-size: 16px;
    font-weight: 700;
}

.file-slot {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 10px;
    font-size: 11px;
    cursor: pointer;
    margin-bottom: 6px;
}

    .file-slot.empty {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 4px;
        color: var(--text-tertiary);
        min-height: 80px;
        border-style: dashed;
    }

.slot-name {
    font-weight: 600;
    margin-bottom: 3px;
}

.slot-meta {
    color: var(--text-tertiary);
    font-size: 10px;
}

.slot-badge {
    margin-top: 5px;
    font-size: 10px;
}

.upload-section {
    margin-bottom: 20px;
}

.upload-zone {
    border: 2px dashed var(--border);
    border-radius: var(--radius-lg);
    padding: 32px;
    text-align: center;
    color: var(--text-tertiary);
}

    .upload-zone i {
        font-size: 28px;
    }

.upload-text {
    font-size: 13px;
    margin: 8px 0;
}

.upload-hint {
    font-size: 11px;
    margin-top: 8px;
}

.schedule-form {
    margin-top: 16px;
    background: var(--bg-surface-muted);
    border-radius: var(--radius-lg);
    padding: 16px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 12px;
    margin-bottom: 14px;
}

.form-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.hint {
    font-size: 11.5px;
    color: var(--text-tertiary);
    display: flex;
    align-items: center;
    gap: 5px;
}

.header-actions {
    display: flex;
    gap: 8px;
}

.progress-mini {
    height: 3px;
    background: var(--brand-200);
    border-radius: 2px;
}

@keyframes progress-indeterminate {
    0% {
        transform: translateX(-100%);
        width: 40%;
    }

    50% {
        transform: translateX(150%);
        width: 60%;
    }

    100% {
        transform: translateX(300%);
        width: 40%;
    }
}

#blazor-error-ui {
    background: var(--danger-bg);
    color: var(--danger);
    bottom: 0;
    left: 0;
    width: 100%;
    box-shadow: 0 -1px 2px rgba(0,0,0,.2);
    display: none;
    padding: 12px 16px;
    position: fixed;
    z-index: 1000;
}

/* ── Responsive ─────────────────────────────────────────────────────── */
@media (max-width: 900px) {
    .kpi-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .lot-layout {
        grid-template-columns: 1fr;
    }

    .kanban {
        grid-template-columns: repeat(2, 1fr);
    }

    .ld-header {
        flex-wrap: wrap;
    }

    .specs-grid {
        grid-template-columns: 1fr;
    }

    .ld-cam-btn span {
        display: none;
    }

    .ld-cam-btn {
        padding: 6px 8px;
        border-radius: 50%;
    }
}
/* ── Kanban bid cards ───────────────────────────────────────────────── */
.bid-card {
    cursor: pointer;
    transition: border-color 0.12s ease, box-shadow 0.12s ease;
}

    .bid-card:hover {
        border-color: var(--brand-200);
        box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    }

.bid-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 5px;
}

.bid-card-lot {
    font-size: 10.5px;
    font-weight: 700;
    color: var(--text-tertiary);
    font-family: var(--font-mono);
}

.bid-card-date {
    font-size: 10.5px;
    color: var(--text-tertiary);
}

.bid-card-vehicle {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
    line-height: 1.3;
}

.bid-card-client {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 11.5px;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

.bid-card-amount {
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 3px;
}

.bid-card-sale {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    color: var(--text-tertiary);
    margin-bottom: 8px;
}

.bid-card-actions {
    display: flex;
    gap: 6px;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid var(--border);
}

/* ── Kanban rediseñado ──────────────────────────────────────────────── */
.kb-empty {
    text-align: center;
    padding: 28px 0;
    color: var(--text-tertiary);
    font-size: 12px;
}

/* Dots de color en headers */
.kb-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 5px;
}

.kb-dot-pending {
    background: var(--warning);
}

.kb-dot-executed {
    background: var(--info);
}

.kb-dot-won {
    background: var(--success);
}

.kb-dot-lost {
    background: var(--danger);
}

/* Labels de columna */
.kb-pending-label {
    color: var(--warning);
    display: flex;
    align-items: center;
}

.kb-executed-label {
    color: var(--info);
    display: flex;
    align-items: center;
}

.kb-won-label {
    color: var(--success);
    display: flex;
    align-items: center;
}

.kb-lost-label {
    color: var(--danger);
    display: flex;
    align-items: center;
}

/* Acento lateral en tarjetas */
.kb-accent-pending {
    border-left: 3px solid var(--warning) !important;
    border-radius: 0 var(--radius-lg) var(--radius-lg) 0 !important;
}

.kb-accent-executed {
    border-left: 3px solid var(--info) !important;
    border-radius: 0 var(--radius-lg) var(--radius-lg) 0 !important;
}

.kb-accent-won {
    border-left: 3px solid var(--success) !important;
    border-radius: 0 var(--radius-lg) var(--radius-lg) 0 !important;
}

.kb-accent-lost {
    border-left: 3px solid var(--danger) !important;
    border-radius: 0 var(--radius-lg) var(--radius-lg) 0 !important;
}

/* Hover con elevación */
.bid-card {
    transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

    .bid-card:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    }

/* Top de tarjeta */
.kb-card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 5px;
}

.kb-lot {
    font-size: 10.5px;
    color: var(--text-tertiary);
    font-family: var(--font-mono);
}

.kb-date-pill {
    font-size: 10px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 20px;
}

.kb-pill-pending {
    background: var(--warning-bg);
    color: var(--warning);
}

.kb-pill-executed {
    background: var(--info-bg);
    color: var(--info);
}

.kb-pill-won {
    background: var(--success-bg);
    color: var(--success);
}

.kb-pill-lost {
    background: var(--danger-bg);
    color: var(--danger);
}

/* Vehículo */
.kb-vehicle {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
    line-height: 1.3;
}

/* Fila del cliente — protagonista */
.kb-client-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    background: var(--bg-surface-muted);
    border-radius: var(--radius-md);
    margin-bottom: 8px;
}

.kb-avatar {
    width: 30px;
    height: 30px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    flex-shrink: 0;
}

.kb-avatar-pending {
    background: var(--warning-bg);
    color: var(--warning);
}

.kb-avatar-executed {
    background: var(--info-bg);
    color: var(--info);
}

.kb-avatar-won {
    background: var(--success-bg);
    color: var(--success);
}

.kb-avatar-lost {
    background: var(--danger-bg);
    color: var(--danger);
}

.kb-client-info {
    flex: 1;
    min-width: 0;
}

.kb-client-name {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.kb-client-phone {
    font-size: 10.5px;
    color: var(--text-tertiary);
}

/* Botones de notificación */
.kb-notify-btns {
    display: flex;
    gap: 4px;
    flex-shrink: 0;
}

.kb-notify-btn {
    width: 24px;
    height: 24px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: var(--bg-surface);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.12s ease;
}

.kb-notify-wa:hover {
    background: var(--success-bg);
    border-color: var(--success);
    color: var(--success);
}

.kb-notify-sms:hover {
    background: var(--info-bg);
    border-color: var(--info);
    color: var(--info);
}

.kb-notify-email:hover {
    background: var(--brand-50);
    border-color: var(--brand-400);
    color: var(--brand-600);
}

/* Otros elementos */
.kb-amount {
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 3px;
}

    .kb-amount strong {
        color: var(--text-primary);
    }

.kb-sale-date {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    color: var(--text-tertiary);
    margin-bottom: 8px;
}

/* Botones de acción en tarjeta */
.kb-btn-blue {
    background: var(--info-bg) !important;
    color: var(--info) !important;
    border-color: var(--info) !important;
}

.kb-btn-green {
    background: var(--success-bg) !important;
    color: var(--success) !important;
    border-color: var(--success) !important;
}

.kb-btn-red {
    background: var(--danger-bg) !important;
    color: var(--danger) !important;
    border-color: var(--danger) !important;
}

/* Selector de canal en modal de notificación */
.kb-channel-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    padding: 10px 8px;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--bg-surface);
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    transition: all 0.12s ease;
}

    .kb-channel-btn:hover {
        background: var(--bg-surface-muted);
    }

.kb-channel-active {
    border-color: var(--brand-400) !important;
    background: var(--brand-50) !important;
    color: var(--brand-600) !important;
}
/* ── Transición suave en tarjetas del Kanban ────────────────────────── */
.bid-card {
    animation: card-fade-in 0.25s ease;
}

@keyframes card-fade-in {
    from {
        opacity: 0;
        transform: translateY(6px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.kcol {
    transition: background 0.2s ease;
}

/* ── Puja competitiva ───────────────────────────────────────────────── */

/* Banner de competidores */
.ld-competitive-banner {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    background: var(--info-bg);
    border-radius: var(--radius-md);
    margin-bottom: 14px;
    border: 1px solid rgba(46, 127, 224, 0.2);
}

.ld-competitive-icon {
    width: 28px;
    height: 28px;
    border-radius: var(--radius-sm);
    background: var(--info);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.ld-competitive-title {
    font-size: 12.5px;
    font-weight: 700;
    color: var(--info);
}

.ld-competitive-sub {
    font-size: 11.5px;
    color: var(--text-secondary);
    margin-top: 1px;
}

.ld-leading-badge {
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 10.5px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 20px;
    background: var(--success-bg);
    color: var(--success);
    white-space: nowrap;
    flex-shrink: 0;
}

/* Requerimiento de incremento mínimo */
.ld-bid-requirement {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.ld-increment-tag {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 20px;
    background: var(--warning-bg);
    color: var(--warning);
    margin-left: 4px;
}

/* Box de superado */
.ld-outbid-box {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    background: var(--warning-bg);
    color: var(--warning);
    padding: 10px 12px;
    border-radius: var(--radius-md);
    font-size: 12.5px;
    margin-bottom: 10px;
}

/* Box de límite alcanzado */
.ld-no-bid-box {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-surface-muted);
    color: var(--text-secondary);
    padding: 12px;
    border-radius: var(--radius-md);
    font-size: 12.5px;
    margin-bottom: 10px;
    border: 1px solid var(--border);
}
/* ── Página de suscripción ──────────────────────────────────────────── */
.sub-plan-card {
    position: relative;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 20px 16px;
    cursor: pointer;
    background: var(--bg-surface);
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
    text-align: center;
}

    .sub-plan-card:hover {
        border-color: var(--brand-400);
    }

.sub-plan-active {
    border-color: var(--brand-500) !important;
    background: var(--brand-50) !important;
    box-shadow: 0 0 0 3px var(--brand-100);
}

.sub-plan-check {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid var(--border);
    background: var(--bg-surface);
    margin: 0 auto 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    color: white;
}

.sub-plan-active .sub-plan-check {
    background: var(--brand-500);
    border-color: var(--brand-500);
}

.sub-plan-badge {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--success);
    color: white;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 10px;
    border-radius: 20px;
    white-space: nowrap;
}

.sub-plan-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

.sub-plan-price {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
}

    .sub-plan-price span {
        font-size: 13px;
        font-weight: 400;
        color: var(--text-tertiary);
    }

.sub-plan-desc {
    font-size: 11.5px;
    color: var(--text-tertiary);
    margin-top: 4px;
}

/* Método de pago */
.sub-method-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 14px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--bg-surface);
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.12s ease;
    font-family: var(--font-sans);
}

    .sub-method-btn:hover {
        border-color: var(--brand-400);
    }

.sub-method-active {
    border-color: var(--brand-500) !important;
    background: var(--brand-50) !important;
    color: var(--brand-600) !important;
}

/* ── Rediseño tabla de clientes ─────────────────────────────────────── */
.client-avatar {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-md);
    background: var(--brand-100);
    color: var(--brand-700);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    flex-shrink: 0;
}

.client-row-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.client-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
}

.client-email {
    font-size: 11.5px;
    color: var(--text-tertiary);
}

.sub-status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    display: inline-block;
    margin-right: 5px;
}

    .sub-status-dot.active {
        background: var(--success);
    }

    .sub-status-dot.expired {
        background: var(--danger);
    }

    .sub-status-dot.none {
        background: var(--border);
    }
/* ── Kanban bid cards ───────────────────────────────────────────────── */
.bid-card {
    cursor: pointer;
    transition: border-color 0.12s ease, box-shadow 0.12s ease;
}

    .bid-card:hover {
        border-color: var(--brand-200);
        box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    }

.bid-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 5px;
}

.bid-card-lot {
    font-size: 10.5px;
    font-weight: 700;
    color: var(--text-tertiary);
    font-family: var(--font-mono);
}

.bid-card-date {
    font-size: 10.5px;
    color: var(--text-tertiary);
}

.bid-card-vehicle {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
    line-height: 1.3;
}

.bid-card-client {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 11.5px;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

.bid-card-amount {
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 3px;
}

.bid-card-sale {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    color: var(--text-tertiary);
    margin-bottom: 8px;
}

.bid-card-actions {
    display: flex;
    gap: 6px;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid var(--border);
}

/* ── Kanban rediseñado ──────────────────────────────────────────────── */
.kb-empty {
    text-align: center;
    padding: 28px 0;
    color: var(--text-tertiary);
    font-size: 12px;
}

/* Dots de color en headers */
.kb-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 5px;
}

.kb-dot-pending {
    background: var(--warning);
}

.kb-dot-executed {
    background: var(--info);
}

.kb-dot-won {
    background: var(--success);
}

.kb-dot-lost {
    background: var(--danger);
}

/* Labels de columna */
.kb-pending-label {
    color: var(--warning);
    display: flex;
    align-items: center;
}

.kb-executed-label {
    color: var(--info);
    display: flex;
    align-items: center;
}

.kb-won-label {
    color: var(--success);
    display: flex;
    align-items: center;
}

.kb-lost-label {
    color: var(--danger);
    display: flex;
    align-items: center;
}

/* Acento lateral en tarjetas */
.kb-accent-pending {
    border-left: 3px solid var(--warning) !important;
    border-radius: 0 var(--radius-lg) var(--radius-lg) 0 !important;
}

.kb-accent-executed {
    border-left: 3px solid var(--info) !important;
    border-radius: 0 var(--radius-lg) var(--radius-lg) 0 !important;
}

.kb-accent-won {
    border-left: 3px solid var(--success) !important;
    border-radius: 0 var(--radius-lg) var(--radius-lg) 0 !important;
}

.kb-accent-lost {
    border-left: 3px solid var(--danger) !important;
    border-radius: 0 var(--radius-lg) var(--radius-lg) 0 !important;
}

/* Hover con elevación */
.bid-card {
    transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

    .bid-card:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    }

/* Top de tarjeta */
.kb-card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 5px;
}

.kb-lot {
    font-size: 10.5px;
    color: var(--text-tertiary);
    font-family: var(--font-mono);
}

.kb-date-pill {
    font-size: 10px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 20px;
}

.kb-pill-pending {
    background: var(--warning-bg);
    color: var(--warning);
}

.kb-pill-executed {
    background: var(--info-bg);
    color: var(--info);
}

.kb-pill-won {
    background: var(--success-bg);
    color: var(--success);
}

.kb-pill-lost {
    background: var(--danger-bg);
    color: var(--danger);
}

/* Vehículo */
.kb-vehicle {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
    line-height: 1.3;
}

/* Fila del cliente — protagonista */
.kb-client-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    background: var(--bg-surface-muted);
    border-radius: var(--radius-md);
    margin-bottom: 8px;
}

.kb-avatar {
    width: 30px;
    height: 30px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    flex-shrink: 0;
}

.kb-avatar-pending {
    background: var(--warning-bg);
    color: var(--warning);
}

.kb-avatar-executed {
    background: var(--info-bg);
    color: var(--info);
}

.kb-avatar-won {
    background: var(--success-bg);
    color: var(--success);
}

.kb-avatar-lost {
    background: var(--danger-bg);
    color: var(--danger);
}

.kb-client-info {
    flex: 1;
    min-width: 0;
}

.kb-client-name {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.kb-client-phone {
    font-size: 10.5px;
    color: var(--text-tertiary);
}

/* Botones de notificación */
.kb-notify-btns {
    display: flex;
    gap: 4px;
    flex-shrink: 0;
}

.kb-notify-btn {
    width: 24px;
    height: 24px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: var(--bg-surface);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.12s ease;
}

.kb-notify-wa:hover {
    background: var(--success-bg);
    border-color: var(--success);
    color: var(--success);
}

.kb-notify-sms:hover {
    background: var(--info-bg);
    border-color: var(--info);
    color: var(--info);
}

.kb-notify-email:hover {
    background: var(--brand-50);
    border-color: var(--brand-400);
    color: var(--brand-600);
}

/* Otros elementos */
.kb-amount {
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 3px;
}

    .kb-amount strong {
        color: var(--text-primary);
    }

.kb-sale-date {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    color: var(--text-tertiary);
    margin-bottom: 8px;
}

/* Botones de acción en tarjeta */
.kb-btn-blue {
    background: var(--info-bg) !important;
    color: var(--info) !important;
    border-color: var(--info) !important;
}

.kb-btn-green {
    background: var(--success-bg) !important;
    color: var(--success) !important;
    border-color: var(--success) !important;
}

.kb-btn-red {
    background: var(--danger-bg) !important;
    color: var(--danger) !important;
    border-color: var(--danger) !important;
}

/* Selector de canal en modal de notificación */
.kb-channel-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    padding: 10px 8px;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--bg-surface);
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    transition: all 0.12s ease;
}

    .kb-channel-btn:hover {
        background: var(--bg-surface-muted);
    }

.kb-channel-active {
    border-color: var(--brand-400) !important;
    background: var(--brand-50) !important;
    color: var(--brand-600) !important;
}

/* ── Toggle de vista ────────────────────────────────────────────────── */
.kb-toggle-btn {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 5px 12px;
    border-radius: var(--radius-sm);
    border: none;
    background: transparent;
    color: var(--text-tertiary);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    font-family: var(--font-sans);
    transition: all 0.12s ease;
}

    .kb-toggle-btn:hover {
        color: var(--text-primary);
    }

.kb-toggle-active {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 5px 12px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: var(--bg-surface);
    color: var(--text-primary);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    font-family: var(--font-sans);
}
/* ── Kanban bid cards ───────────────────────────────────────────────── */
.bid-card {
    cursor: pointer;
    transition: border-color 0.12s ease, box-shadow 0.12s ease;
}

    .bid-card:hover {
        border-color: var(--brand-200);
        box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    }

.bid-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 5px;
}

.bid-card-lot {
    font-size: 10.5px;
    font-weight: 700;
    color: var(--text-tertiary);
    font-family: var(--font-mono);
}

.bid-card-date {
    font-size: 10.5px;
    color: var(--text-tertiary);
}

.bid-card-vehicle {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
    line-height: 1.3;
}

.bid-card-client {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 11.5px;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

.bid-card-amount {
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 3px;
}

.bid-card-sale {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    color: var(--text-tertiary);
    margin-bottom: 8px;
}

.bid-card-actions {
    display: flex;
    gap: 6px;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid var(--border);
}

/* ── Kanban rediseñado ──────────────────────────────────────────────── */
.kb-empty {
    text-align: center;
    padding: 28px 0;
    color: var(--text-tertiary);
    font-size: 12px;
}

/* Dots de color en headers */
.kb-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 5px;
}

.kb-dot-pending {
    background: var(--warning);
}

.kb-dot-executed {
    background: var(--info);
}

.kb-dot-won {
    background: var(--success);
}

.kb-dot-lost {
    background: var(--danger);
}

/* Labels de columna */
.kb-pending-label {
    color: var(--warning);
    display: flex;
    align-items: center;
}

.kb-executed-label {
    color: var(--info);
    display: flex;
    align-items: center;
}

.kb-won-label {
    color: var(--success);
    display: flex;
    align-items: center;
}

.kb-lost-label {
    color: var(--danger);
    display: flex;
    align-items: center;
}

/* Acento lateral en tarjetas */
.kb-accent-pending {
    border-left: 3px solid var(--warning) !important;
    border-radius: 0 var(--radius-lg) var(--radius-lg) 0 !important;
}

.kb-accent-executed {
    border-left: 3px solid var(--info) !important;
    border-radius: 0 var(--radius-lg) var(--radius-lg) 0 !important;
}

.kb-accent-won {
    border-left: 3px solid var(--success) !important;
    border-radius: 0 var(--radius-lg) var(--radius-lg) 0 !important;
}

.kb-accent-lost {
    border-left: 3px solid var(--danger) !important;
    border-radius: 0 var(--radius-lg) var(--radius-lg) 0 !important;
}

/* Hover con elevación */
.bid-card {
    transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

    .bid-card:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    }

/* Top de tarjeta */
.kb-card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 5px;
}

.kb-lot {
    font-size: 10.5px;
    color: var(--text-tertiary);
    font-family: var(--font-mono);
}

.kb-date-pill {
    font-size: 10px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 20px;
}

.kb-pill-pending {
    background: var(--warning-bg);
    color: var(--warning);
}

.kb-pill-executed {
    background: var(--info-bg);
    color: var(--info);
}

.kb-pill-won {
    background: var(--success-bg);
    color: var(--success);
}

.kb-pill-lost {
    background: var(--danger-bg);
    color: var(--danger);
}

/* Vehículo */
.kb-vehicle {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
    line-height: 1.3;
}

/* Fila del cliente — protagonista */
.kb-client-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    background: var(--bg-surface-muted);
    border-radius: var(--radius-md);
    margin-bottom: 8px;
}

.kb-avatar {
    width: 30px;
    height: 30px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    flex-shrink: 0;
}

.kb-avatar-pending {
    background: var(--warning-bg);
    color: var(--warning);
}

.kb-avatar-executed {
    background: var(--info-bg);
    color: var(--info);
}

.kb-avatar-won {
    background: var(--success-bg);
    color: var(--success);
}

.kb-avatar-lost {
    background: var(--danger-bg);
    color: var(--danger);
}

.kb-client-info {
    flex: 1;
    min-width: 0;
}

.kb-client-name {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.kb-client-phone {
    font-size: 10.5px;
    color: var(--text-tertiary);
}

/* Botones de notificación */
.kb-notify-btns {
    display: flex;
    gap: 4px;
    flex-shrink: 0;
}

.kb-notify-btn {
    width: 24px;
    height: 24px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: var(--bg-surface);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.12s ease;
}

.kb-notify-wa:hover {
    background: var(--success-bg);
    border-color: var(--success);
    color: var(--success);
}

.kb-notify-sms:hover {
    background: var(--info-bg);
    border-color: var(--info);
    color: var(--info);
}

.kb-notify-email:hover {
    background: var(--brand-50);
    border-color: var(--brand-400);
    color: var(--brand-600);
}

/* Otros elementos */
.kb-amount {
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 3px;
}

    .kb-amount strong {
        color: var(--text-primary);
    }

.kb-sale-date {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    color: var(--text-tertiary);
    margin-bottom: 8px;
}

/* Botones de acción en tarjeta */
.kb-btn-blue {
    background: var(--info-bg) !important;
    color: var(--info) !important;
    border-color: var(--info) !important;
}

.kb-btn-green {
    background: var(--success-bg) !important;
    color: var(--success) !important;
    border-color: var(--success) !important;
}

.kb-btn-red {
    background: var(--danger-bg) !important;
    color: var(--danger) !important;
    border-color: var(--danger) !important;
}

/* Selector de canal en modal de notificación */
.kb-channel-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    padding: 10px 8px;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--bg-surface);
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    transition: all 0.12s ease;
}

    .kb-channel-btn:hover {
        background: var(--bg-surface-muted);
    }

.kb-channel-active {
    border-color: var(--brand-400) !important;
    background: var(--brand-50) !important;
    color: var(--brand-600) !important;
}

/* ── Toggle de vista ────────────────────────────────────────────────── */
.kb-toggle-btn {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 5px 12px;
    border-radius: var(--radius-sm);
    border: none;
    background: transparent;
    color: var(--text-tertiary);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    font-family: var(--font-sans);
    transition: all 0.12s ease;
}

    .kb-toggle-btn:hover {
        color: var(--text-primary);
    }

.kb-toggle-active {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 5px 12px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: var(--bg-surface);
    color: var(--text-primary);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    font-family: var(--font-sans);
}

/* ── Bandeja de notificaciones ──────────────────────────────────────── */
.notif-bell {
    position: relative;
}

.notif-dot {
    position: absolute;
    top: 4px;
    right: 4px;
    min-width: 16px;
    height: 16px;
    border-radius: 20px;
    background: var(--danger);
    color: white;
    font-size: 9px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 3px;
    border: 2px solid var(--bg-app);
}

.notif-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: -8px;
    width: 340px;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    z-index: 300;
    overflow: hidden;
}

.notif-dropdown-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
    font-size: 13px;
    font-weight: 700;
    color: var(--text-primary);
}

.notif-dropdown-list {
    max-height: 380px;
    overflow-y: auto;
}

.notif-empty {
    padding: 32px 16px;
    text-align: center;
    color: var(--text-tertiary);
    font-size: 12.5px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.notif-dropdown-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 16px;
    cursor: pointer;
    border-bottom: 1px solid var(--border);
    transition: background 0.12s ease;
    position: relative;
}

    .notif-dropdown-item:hover {
        background: var(--bg-surface-muted);
    }

    .notif-dropdown-item.unread {
        background: var(--brand-50);
    }

    .notif-dropdown-item:last-child {
        border-bottom: none;
    }

.notif-item-icon {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 2px;
}

.notif-item-body {
    flex: 1;
    min-width: 0;
}

.notif-item-title {
    font-size: 12.5px;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.4;
    margin-bottom: 2px;
}

.notif-item-msg {
    font-size: 11.5px;
    color: var(--text-secondary);
    line-height: 1.4;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 3px;
}

.notif-item-time {
    font-size: 11px;
    color: var(--text-tertiary);
}

.notif-unread-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--brand-500);
    flex-shrink: 0;
    margin-top: 6px;
}
/* ── Kanban bid cards ───────────────────────────────────────────────── */
.bid-card {
    cursor: pointer;
    transition: border-color 0.12s ease, box-shadow 0.12s ease;
}

    .bid-card:hover {
        border-color: var(--brand-200);
        box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    }

.bid-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 5px;
}

.bid-card-lot {
    font-size: 10.5px;
    font-weight: 700;
    color: var(--text-tertiary);
    font-family: var(--font-mono);
}

.bid-card-date {
    font-size: 10.5px;
    color: var(--text-tertiary);
}

.bid-card-vehicle {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
    line-height: 1.3;
}

.bid-card-client {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 11.5px;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

.bid-card-amount {
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 3px;
}

.bid-card-sale {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    color: var(--text-tertiary);
    margin-bottom: 8px;
}

.bid-card-actions {
    display: flex;
    gap: 6px;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid var(--border);
}

/* ── Kanban rediseñado ──────────────────────────────────────────────── */
.kb-empty {
    text-align: center;
    padding: 28px 0;
    color: var(--text-tertiary);
    font-size: 12px;
}

/* Dots de color en headers */
.kb-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 5px;
}

.kb-dot-pending {
    background: var(--warning);
}

.kb-dot-executed {
    background: var(--info);
}

.kb-dot-won {
    background: var(--success);
}

.kb-dot-lost {
    background: var(--danger);
}

/* Labels de columna */
.kb-pending-label {
    color: var(--warning);
    display: flex;
    align-items: center;
}

.kb-executed-label {
    color: var(--info);
    display: flex;
    align-items: center;
}

.kb-won-label {
    color: var(--success);
    display: flex;
    align-items: center;
}

.kb-lost-label {
    color: var(--danger);
    display: flex;
    align-items: center;
}

/* Acento lateral en tarjetas */
.kb-accent-pending {
    border-left: 3px solid var(--warning) !important;
    border-radius: 0 var(--radius-lg) var(--radius-lg) 0 !important;
}

.kb-accent-executed {
    border-left: 3px solid var(--info) !important;
    border-radius: 0 var(--radius-lg) var(--radius-lg) 0 !important;
}

.kb-accent-won {
    border-left: 3px solid var(--success) !important;
    border-radius: 0 var(--radius-lg) var(--radius-lg) 0 !important;
}

.kb-accent-lost {
    border-left: 3px solid var(--danger) !important;
    border-radius: 0 var(--radius-lg) var(--radius-lg) 0 !important;
}

/* Hover con elevación */
.bid-card {
    transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

    .bid-card:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    }

/* Top de tarjeta */
.kb-card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 5px;
}

.kb-lot {
    font-size: 10.5px;
    color: var(--text-tertiary);
    font-family: var(--font-mono);
}

.kb-date-pill {
    font-size: 10px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 20px;
}

.kb-pill-pending {
    background: var(--warning-bg);
    color: var(--warning);
}

.kb-pill-executed {
    background: var(--info-bg);
    color: var(--info);
}

.kb-pill-won {
    background: var(--success-bg);
    color: var(--success);
}

.kb-pill-lost {
    background: var(--danger-bg);
    color: var(--danger);
}

/* Vehículo */
.kb-vehicle {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
    line-height: 1.3;
}

/* Fila del cliente — protagonista */
.kb-client-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    background: var(--bg-surface-muted);
    border-radius: var(--radius-md);
    margin-bottom: 8px;
}

.kb-avatar {
    width: 30px;
    height: 30px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    flex-shrink: 0;
}

.kb-avatar-pending {
    background: var(--warning-bg);
    color: var(--warning);
}

.kb-avatar-executed {
    background: var(--info-bg);
    color: var(--info);
}

.kb-avatar-won {
    background: var(--success-bg);
    color: var(--success);
}

.kb-avatar-lost {
    background: var(--danger-bg);
    color: var(--danger);
}

.kb-client-info {
    flex: 1;
    min-width: 0;
}

.kb-client-name {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.kb-client-phone {
    font-size: 10.5px;
    color: var(--text-tertiary);
}

/* Botones de notificación */
.kb-notify-btns {
    display: flex;
    gap: 4px;
    flex-shrink: 0;
}

.kb-notify-btn {
    width: 24px;
    height: 24px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: var(--bg-surface);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.12s ease;
}

.kb-notify-wa:hover {
    background: var(--success-bg);
    border-color: var(--success);
    color: var(--success);
}

.kb-notify-sms:hover {
    background: var(--info-bg);
    border-color: var(--info);
    color: var(--info);
}

.kb-notify-email:hover {
    background: var(--brand-50);
    border-color: var(--brand-400);
    color: var(--brand-600);
}

/* Otros elementos */
.kb-amount {
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 3px;
}

    .kb-amount strong {
        color: var(--text-primary);
    }

.kb-sale-date {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    color: var(--text-tertiary);
    margin-bottom: 8px;
}

/* Botones de acción en tarjeta */
.kb-btn-blue {
    background: var(--info-bg) !important;
    color: var(--info) !important;
    border-color: var(--info) !important;
}

.kb-btn-green {
    background: var(--success-bg) !important;
    color: var(--success) !important;
    border-color: var(--success) !important;
}

.kb-btn-red {
    background: var(--danger-bg) !important;
    color: var(--danger) !important;
    border-color: var(--danger) !important;
}

/* Selector de canal en modal de notificación */
.kb-channel-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    padding: 10px 8px;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--bg-surface);
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    transition: all 0.12s ease;
}

    .kb-channel-btn:hover {
        background: var(--bg-surface-muted);
    }

.kb-channel-active {
    border-color: var(--brand-400) !important;
    background: var(--brand-50) !important;
    color: var(--brand-600) !important;
}

/* ── Toggle de vista ────────────────────────────────────────────────── */
.kb-toggle-btn {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 5px 12px;
    border-radius: var(--radius-sm);
    border: none;
    background: transparent;
    color: var(--text-tertiary);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    font-family: var(--font-sans);
    transition: all 0.12s ease;
}

    .kb-toggle-btn:hover {
        color: var(--text-primary);
    }

.kb-toggle-active {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 5px 12px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: var(--bg-surface);
    color: var(--text-primary);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    font-family: var(--font-sans);
}

/* ── Bandeja de notificaciones ──────────────────────────────────────── */
.notif-bell {
    position: relative;
}

.notif-dot {
    position: absolute;
    top: 4px;
    right: 4px;
    min-width: 16px;
    height: 16px;
    border-radius: 20px;
    background: var(--danger);
    color: white;
    font-size: 9px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 3px;
    border: 2px solid var(--bg-app);
}

.notif-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: -8px;
    width: 340px;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    z-index: 300;
    overflow: hidden;
}

.notif-dropdown-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
    font-size: 13px;
    font-weight: 700;
    color: var(--text-primary);
}

.notif-dropdown-list {
    max-height: 380px;
    overflow-y: auto;
}

.notif-empty {
    padding: 32px 16px;
    text-align: center;
    color: var(--text-tertiary);
    font-size: 12.5px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.notif-dropdown-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 16px;
    cursor: pointer;
    border-bottom: 1px solid var(--border);
    transition: background 0.12s ease;
    position: relative;
}

    .notif-dropdown-item:hover {
        background: var(--bg-surface-muted);
    }

    .notif-dropdown-item.unread {
        background: var(--brand-50);
    }

    .notif-dropdown-item:last-child {
        border-bottom: none;
    }

.notif-item-icon {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 2px;
}

.notif-item-body {
    flex: 1;
    min-width: 0;
}

.notif-item-title {
    font-size: 12.5px;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.4;
    margin-bottom: 2px;
}

.notif-item-msg {
    font-size: 11.5px;
    color: var(--text-secondary);
    line-height: 1.4;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 3px;
}

.notif-item-time {
    font-size: 11px;
    color: var(--text-tertiary);
}

.notif-unread-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--brand-500);
    flex-shrink: 0;
    margin-top: 6px;
}

/* ── Toast notifications ────────────────────────────────────────────── */
.toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 9999;
    pointer-events: none;
}

.toast {
    display: flex;
    flex-direction: column;
    width: 360px;
    min-width: 360px;
    max-width: 360px;
    padding: 0;
    border-radius: 14px;
    border: 1.5px solid transparent;
    background: var(--bg-surface);
    box-shadow: 0 8px 32px rgba(0,0,0,0.18), 0 2px 8px rgba(0,0,0,0.08);
    pointer-events: all;
    overflow: hidden;
}

.toast-entering {
    animation: toast-bounce-in 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.toast-closing {
    animation: toast-slide-out 0.25s ease-in forwards;
}

@keyframes toast-bounce-in {
    0% {
        opacity: 0;
        transform: translateX(80px) scale(0.88);
    }

    65% {
        transform: translateX(-5px) scale(1.01);
    }

    100% {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

@keyframes toast-slide-out {
    from {
        opacity: 1;
        transform: translateX(0) scale(1);
    }

    to {
        opacity: 0;
        transform: translateX(80px) scale(0.92);
    }
}

/* Tipos */
.toast-success {
    border-color: var(--success);
}

.toast-warning {
    border-color: var(--warning);
}

.toast-danger {
    border-color: var(--danger);
}

.toast-info {
    border-color: var(--brand-500);
}

/* Ícono */
.toast-icon-wrap {
    width: 34px;
    height: 34px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.toast-icon-success {
    background: var(--success-bg);
    color: var(--success);
}

.toast-icon-warning {
    background: var(--warning-bg);
    color: var(--warning);
}

.toast-icon-danger {
    background: var(--danger-bg);
    color: var(--danger);
}

.toast-icon-info {
    background: var(--brand-50);
    color: var(--brand-600);
}

/* Cuerpo */
.toast-body {
    flex: 1;
    min-width: 0;
}

.toast-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.3;
    margin-bottom: 3px;
}

.toast-message {
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.4;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Botón de acción */
.toast-action-btn {
    display: inline-flex;
    align-items: center;
    margin-top: 8px;
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 11.5px;
    font-weight: 700;
    cursor: pointer;
    border: 1.5px solid;
    transition: all 0.15s ease;
    font-family: var(--font-sans);
    background: transparent;
}

.toast-action-warning {
    border-color: var(--warning);
    color: var(--warning);
}

    .toast-action-warning:hover {
        background: var(--warning);
        color: white;
    }

.toast-action-success {
    border-color: var(--success);
    color: var(--success);
}

    .toast-action-success:hover {
        background: var(--success);
        color: white;
    }

.toast-action-info {
    border-color: var(--brand-500);
    color: var(--brand-600);
}

    .toast-action-info:hover {
        background: var(--brand-500);
        color: white;
    }

.toast-action-danger {
    border-color: var(--danger);
    color: var(--danger);
}

    .toast-action-danger:hover {
        background: var(--danger);
        color: white;
    }

/* Cerrar */
.toast-close {
    background: none;
    border: none;
    color: var(--text-tertiary);
    cursor: pointer;
    font-size: 14px;
    padding: 0;
    line-height: 1;
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.12s ease;
}

    .toast-close:hover {
        background: var(--bg-surface-muted);
        color: var(--text-primary);
    }

/* Barra de progreso */
.toast-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    width: 100%;
    border-radius: 0 0 14px 14px;
    animation: toast-progress linear forwards;
    transform-origin: left;
}

.toast-progress-success {
    background: var(--success);
}

.toast-progress-warning {
    background: var(--warning);
}

.toast-progress-danger {
    background: var(--danger);
}

.toast-progress-info {
    background: var(--brand-500);
}

@keyframes toast-progress {
    from {
        transform: scaleX(1);
    }

    to {
        transform: scaleX(0);
    }
}

/* Pulso en alertas */
.toast-warning .toast-icon-wrap,
.toast-danger .toast-icon-wrap {
    animation: icon-pulse 1.5s ease-in-out infinite;
}

@keyframes icon-pulse {
    0%, 100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.12);
    }
}

/* Pre-subasta — confeti y animaciones */
@keyframes confetti-fall {
    0% {
        transform: translateY(-20px) rotate(0deg);
        opacity: 1;
    }

    100% {
        transform: translateY(100vh) rotate(720deg);
        opacity: 0;
    }
}

@keyframes winner-bounce {
    0% {
        transform: scale(0);
    }

    60% {
        transform: scale(1.3);
    }

    80% {
        transform: scale(0.9);
    }

    100% {
        transform: scale(1);
    }
}

/* Pulse general */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

/* ── Kanban bid cards ───────────────────────────────────────────────── */
.bid-card {
    cursor: pointer;
    transition: border-color 0.12s ease, box-shadow 0.12s ease;
}

    .bid-card:hover {
        border-color: var(--brand-200);
        box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    }

.bid-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 5px;
}

.bid-card-lot {
    font-size: 10.5px;
    font-weight: 700;
    color: var(--text-tertiary);
    font-family: var(--font-mono);
}

.bid-card-date {
    font-size: 10.5px;
    color: var(--text-tertiary);
}

.bid-card-vehicle {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
    line-height: 1.3;
}

.bid-card-client {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 11.5px;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

.bid-card-amount {
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 3px;
}

.bid-card-sale {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    color: var(--text-tertiary);
    margin-bottom: 8px;
}

.bid-card-actions {
    display: flex;
    gap: 6px;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid var(--border);
}

/* ── Kanban rediseñado ──────────────────────────────────────────────── */
.kb-empty {
    text-align: center;
    padding: 28px 0;
    color: var(--text-tertiary);
    font-size: 12px;
}

/* Dots de color en headers */
.kb-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 5px;
}

.kb-dot-pending {
    background: var(--warning);
}

.kb-dot-executed {
    background: var(--info);
}

.kb-dot-won {
    background: var(--success);
}

.kb-dot-lost {
    background: var(--danger);
}

/* Labels de columna */
.kb-pending-label {
    color: var(--warning);
    display: flex;
    align-items: center;
}

.kb-executed-label {
    color: var(--info);
    display: flex;
    align-items: center;
}

.kb-won-label {
    color: var(--success);
    display: flex;
    align-items: center;
}

.kb-lost-label {
    color: var(--danger);
    display: flex;
    align-items: center;
}

/* Acento lateral en tarjetas */
.kb-accent-pending {
    border-left: 3px solid var(--warning) !important;
    border-radius: 0 var(--radius-lg) var(--radius-lg) 0 !important;
}

.kb-accent-executed {
    border-left: 3px solid var(--info) !important;
    border-radius: 0 var(--radius-lg) var(--radius-lg) 0 !important;
}

.kb-accent-won {
    border-left: 3px solid var(--success) !important;
    border-radius: 0 var(--radius-lg) var(--radius-lg) 0 !important;
}

.kb-accent-lost {
    border-left: 3px solid var(--danger) !important;
    border-radius: 0 var(--radius-lg) var(--radius-lg) 0 !important;
}

/* Hover con elevación */
.bid-card {
    transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

    .bid-card:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    }

/* Top de tarjeta */
.kb-card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 5px;
}

.kb-lot {
    font-size: 10.5px;
    color: var(--text-tertiary);
    font-family: var(--font-mono);
}

.kb-date-pill {
    font-size: 10px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 20px;
}

.kb-pill-pending {
    background: var(--warning-bg);
    color: var(--warning);
}

.kb-pill-executed {
    background: var(--info-bg);
    color: var(--info);
}

.kb-pill-won {
    background: var(--success-bg);
    color: var(--success);
}

.kb-pill-lost {
    background: var(--danger-bg);
    color: var(--danger);
}

/* Vehículo */
.kb-vehicle {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
    line-height: 1.3;
}

/* Fila del cliente — protagonista */
.kb-client-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    background: var(--bg-surface-muted);
    border-radius: var(--radius-md);
    margin-bottom: 8px;
}

.kb-avatar {
    width: 30px;
    height: 30px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    flex-shrink: 0;
}

.kb-avatar-pending {
    background: var(--warning-bg);
    color: var(--warning);
}

.kb-avatar-executed {
    background: var(--info-bg);
    color: var(--info);
}

.kb-avatar-won {
    background: var(--success-bg);
    color: var(--success);
}

.kb-avatar-lost {
    background: var(--danger-bg);
    color: var(--danger);
}

.kb-client-info {
    flex: 1;
    min-width: 0;
}

.kb-client-name {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.kb-client-phone {
    font-size: 10.5px;
    color: var(--text-tertiary);
}

/* Botones de notificación */
.kb-notify-btns {
    display: flex;
    gap: 4px;
    flex-shrink: 0;
}

.kb-notify-btn {
    width: 24px;
    height: 24px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: var(--bg-surface);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.12s ease;
}

.kb-notify-wa:hover {
    background: var(--success-bg);
    border-color: var(--success);
    color: var(--success);
}

.kb-notify-sms:hover {
    background: var(--info-bg);
    border-color: var(--info);
    color: var(--info);
}

.kb-notify-email:hover {
    background: var(--brand-50);
    border-color: var(--brand-400);
    color: var(--brand-600);
}

/* Otros elementos */
.kb-amount {
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 3px;
}

    .kb-amount strong {
        color: var(--text-primary);
    }

.kb-sale-date {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    color: var(--text-tertiary);
    margin-bottom: 8px;
}

/* Botones de acción en tarjeta */
.kb-btn-blue {
    background: var(--info-bg) !important;
    color: var(--info) !important;
    border-color: var(--info) !important;
}

.kb-btn-green {
    background: var(--success-bg) !important;
    color: var(--success) !important;
    border-color: var(--success) !important;
}

.kb-btn-red {
    background: var(--danger-bg) !important;
    color: var(--danger) !important;
    border-color: var(--danger) !important;
}

/* Selector de canal en modal de notificación */
.kb-channel-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    padding: 10px 8px;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--bg-surface);
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    transition: all 0.12s ease;
}

    .kb-channel-btn:hover {
        background: var(--bg-surface-muted);
    }

.kb-channel-active {
    border-color: var(--brand-400) !important;
    background: var(--brand-50) !important;
    color: var(--brand-600) !important;
}

/* ── Toggle de vista ────────────────────────────────────────────────── */
.kb-toggle-btn {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 5px 12px;
    border-radius: var(--radius-sm);
    border: none;
    background: transparent;
    color: var(--text-tertiary);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    font-family: var(--font-sans);
    transition: all 0.12s ease;
}

    .kb-toggle-btn:hover {
        color: var(--text-primary);
    }

.kb-toggle-active {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 5px 12px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: var(--bg-surface);
    color: var(--text-primary);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    font-family: var(--font-sans);
}

/* ── Bandeja de notificaciones ──────────────────────────────────────── */
.notif-bell {
    position: relative;
}

.notif-dot {
    position: absolute;
    top: 4px;
    right: 4px;
    min-width: 16px;
    height: 16px;
    border-radius: 20px;
    background: var(--danger);
    color: white;
    font-size: 9px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 3px;
    border: 2px solid var(--bg-app);
}

.notif-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: -8px;
    width: 340px;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    z-index: 300;
    overflow: hidden;
}

.notif-dropdown-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
    font-size: 13px;
    font-weight: 700;
    color: var(--text-primary);
}

.notif-dropdown-list {
    max-height: 380px;
    overflow-y: auto;
}

.notif-empty {
    padding: 32px 16px;
    text-align: center;
    color: var(--text-tertiary);
    font-size: 12.5px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.notif-dropdown-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 16px;
    cursor: pointer;
    border-bottom: 1px solid var(--border);
    transition: background 0.12s ease;
    position: relative;
}

    .notif-dropdown-item:hover {
        background: var(--bg-surface-muted);
    }

    .notif-dropdown-item.unread {
        background: var(--brand-50);
    }

    .notif-dropdown-item:last-child {
        border-bottom: none;
    }

.notif-item-icon {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 2px;
}

.notif-item-body {
    flex: 1;
    min-width: 0;
}

.notif-item-title {
    font-size: 12.5px;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.4;
    margin-bottom: 2px;
}

.notif-item-msg {
    font-size: 11.5px;
    color: var(--text-secondary);
    line-height: 1.4;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 3px;
}

.notif-item-time {
    font-size: 11px;
    color: var(--text-tertiary);
}

.notif-unread-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--brand-500);
    flex-shrink: 0;
    margin-top: 6px;
}

/* ── Toast notifications ────────────────────────────────────────────── */
.toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 9999;
    pointer-events: none;
}

.toast {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    min-width: 300px;
    max-width: 400px;
    padding: 14px 16px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    background: var(--bg-surface);
    box-shadow: 0 8px 24px rgba(0,0,0,0.14);
    pointer-events: all;
    animation: toast-in 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.toast-entering {
    animation: toast-in 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.toast-closing {
    animation: toast-out 0.25s ease-in forwards;
}

@keyframes toast-in {
    from {
        opacity: 0;
        transform: translateX(60px) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

@keyframes toast-out {
    from {
        opacity: 1;
        transform: translateX(0) scale(1);
    }

    to {
        opacity: 0;
        transform: translateX(60px) scale(0.95);
    }
}

.toast-icon {
    width: 34px;
    height: 34px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.toast-success .toast-icon {
    background: var(--success-bg);
    color: var(--success);
}

.toast-warning .toast-icon {
    background: var(--warning-bg);
    color: var(--warning);
}

.toast-danger .toast-icon {
    background: var(--danger-bg);
    color: var(--danger);
}

.toast-info .toast-icon {
    background: var(--brand-50);
    color: var(--brand-600);
}

.toast-success {
    border-left: 3px solid var(--success);
}

.toast-warning {
    border-left: 3px solid var(--warning);
}

.toast-danger {
    border-left: 3px solid var(--danger);
}

.toast-info {
    border-left: 3px solid var(--brand-500);
}

.toast-body {
    flex: 1;
    min-width: 0;
}

.toast-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.3;
    margin-bottom: 3px;
}

.toast-message {
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.4;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.toast-close {
    background: none;
    border: none;
    color: var(--text-tertiary);
    cursor: pointer;
    font-size: 13px;
    padding: 0;
    line-height: 1;
    flex-shrink: 0;
    margin-top: 2px;
}

    .toast-close:hover {
        color: var(--text-primary);
    }

/* ── Botón de acción en toast ───────────────────────────────────────── */
.toast-action-btn {
    margin-top: 8px;
    padding: 5px 12px;
    border-radius: var(--radius-sm);
    border: 1.5px solid var(--warning);
    background: transparent;
    color: var(--warning);
    font-size: 11.5px;
    font-weight: 700;
    cursor: pointer;
    font-family: var(--font-sans);
    transition: all 0.12s ease;
    display: inline-block;
}

    .toast-action-btn:hover {
        background: var(--warning);
        color: white;
    }

/* ══ Toast Container ══════════════════════════════════════════════════ */
.toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 9999;
    pointer-events: none;
    max-width: 420px;
}

/* ══ Toast base ═══════════════════════════════════════════════════════ */
.toast {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 14px;
    min-width: 340px;
    max-width: 420px;
    padding: 16px 18px;
    border-radius: 14px;
    background: var(--bg-surface);
    box-shadow: 0 8px 32px rgba(0,0,0,0.18), 0 2px 8px rgba(0,0,0,0.1);
    pointer-events: all;
    overflow: hidden;
    border: 1.5px solid transparent;
}

.toast-entering {
    animation: toast-bounce-in 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.toast-closing {
    animation: toast-slide-out 0.3s ease-in forwards;
}

@keyframes toast-bounce-in {
    0% {
        opacity: 0;
        transform: translateX(80px) scale(0.85);
    }

    60% {
        transform: translateX(-6px) scale(1.02);
    }

    100% {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

@keyframes toast-slide-out {
    from {
        opacity: 1;
        transform: translateX(0) scale(1);
    }

    to {
        opacity: 0;
        transform: translateX(80px) scale(0.9);
    }
}

/* ══ Tipos de toast ═══════════════════════════════════════════════════ */
.toast-success {
    border-color: var(--success);
    background: linear-gradient(135deg, var(--bg-surface) 0%, rgba(var(--success-rgb, 34,197,94), 0.05) 100%);
}

.toast-warning {
    border-color: var(--warning);
    background: linear-gradient(135deg, var(--bg-surface) 0%, rgba(var(--warning-rgb, 245,158,11), 0.05) 100%);
}

.toast-danger {
    border-color: var(--danger);
    background: linear-gradient(135deg, var(--bg-surface) 0%, rgba(var(--danger-rgb, 239,68,68), 0.05) 100%);
}

.toast-info {
    border-color: var(--brand-500);
    background: linear-gradient(135deg, var(--bg-surface) 0%, rgba(var(--brand-rgb, 91,83,199), 0.05) 100%);
}

/* ══ Ícono ════════════════════════════════════════════════════════════ */
.toast-icon-wrap {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.toast-icon-success {
    background: var(--success-bg);
    color: var(--success);
}

.toast-icon-warning {
    background: var(--warning-bg);
    color: var(--warning);
}

.toast-icon-danger {
    background: var(--danger-bg);
    color: var(--danger);
}

.toast-icon-info {
    background: var(--brand-50);
    color: var(--brand-600);
}

/* ══ Cuerpo ══════════════════════════════════════════════════════════ */
.toast-body {
    flex: 1;
    min-width: 0;
}

.toast-title {
    font-size: 13.5px;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.3;
    margin-bottom: 3px;
}

.toast-message {
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* ══ Botón de acción ═════════════════════════════════════════════════ */
.toast-action-btn {
    display: inline-flex;
    align-items: center;
    margin-top: 8px;
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 11.5px;
    font-weight: 700;
    cursor: pointer;
    border: 1.5px solid;
    transition: all 0.15s ease;
    font-family: var(--font-sans);
}

.toast-action-warning {
    border-color: var(--warning);
    color: var(--warning);
    background: transparent;
}

    .toast-action-warning:hover {
        background: var(--warning);
        color: white;
    }

.toast-action-success {
    border-color: var(--success);
    color: var(--success);
    background: transparent;
}

    .toast-action-success:hover {
        background: var(--success);
        color: white;
    }

.toast-action-info {
    border-color: var(--brand-500);
    color: var(--brand-600);
    background: transparent;
}

    .toast-action-info:hover {
        background: var(--brand-500);
        color: white;
    }

/* ══ Botón cerrar ════════════════════════════════════════════════════ */
.toast-close {
    background: none;
    border: none;
    color: var(--text-tertiary);
    cursor: pointer;
    font-size: 14px;
    padding: 0;
    line-height: 1;
    flex-shrink: 0;
    margin-top: 2px;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.12s ease;
}

    .toast-close:hover {
        background: var(--bg-surface-muted);
        color: var(--text-primary);
    }

/* ══ Barra de progreso ════════════════════════════════════════════════ */
.toast-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    width: 100%;
    border-radius: 0 0 14px 14px;
    animation: toast-progress linear forwards;
    transform-origin: left;
}

.toast-progress-success {
    background: var(--success);
}

.toast-progress-warning {
    background: var(--warning);
}

.toast-progress-danger {
    background: var(--danger);
}

.toast-progress-info {
    background: var(--brand-500);
}

@keyframes toast-progress {
    from {
        transform: scaleX(1);
    }

    to {
        transform: scaleX(0);
    }
}

/* ══ Animación de pulso para toasts urgentes ══════════════════════════ */
.toast-danger .toast-icon-wrap,
.toast-warning .toast-icon-wrap {
    animation: icon-pulse 1.5s ease-in-out infinite;
}

@keyframes icon-pulse {
    0%, 100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }
}

/* ═══════════════════════════════════════════════════════════════════════
   AÑADIR AL FINAL DE site.css — AutoBid Pro / Automax RD
   Contiene: Kanban toggle, Notificaciones, Toasts, Pre-subasta
   ═══════════════════════════════════════════════════════════════════════ */

/* ── Toggle de vista Kanban ─────────────────────────────────────────── */
.kb-toggle-btn {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 5px 12px;
    border-radius: var(--radius-sm);
    border: none;
    background: transparent;
    color: var(--text-tertiary);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    font-family: var(--font-sans);
    transition: all 0.12s ease;
}

    .kb-toggle-btn:hover {
        color: var(--text-primary);
    }

.kb-toggle-active {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 5px 12px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: var(--bg-surface);
    color: var(--text-primary);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    font-family: var(--font-sans);
}

/* ── Bandeja de notificaciones ──────────────────────────────────────── */
.notif-bell {
    position: relative;
}

.notif-dot {
    position: absolute;
    top: 4px;
    right: 4px;
    min-width: 16px;
    height: 16px;
    border-radius: 20px;
    background: var(--danger);
    color: white;
    font-size: 9px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 3px;
    border: 2px solid var(--bg-app);
}

.notif-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: -8px;
    width: 340px;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    z-index: 300;
    overflow: hidden;
}

.notif-dropdown-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
    font-size: 13px;
    font-weight: 700;
    color: var(--text-primary);
}

.notif-dropdown-list {
    max-height: 380px;
    overflow-y: auto;
}

.notif-empty {
    padding: 32px 16px;
    text-align: center;
    color: var(--text-tertiary);
    font-size: 12.5px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.notif-dropdown-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 16px;
    cursor: pointer;
    border-bottom: 1px solid var(--border);
    transition: background 0.12s ease;
    position: relative;
}

    .notif-dropdown-item:hover {
        background: var(--bg-surface-muted);
    }

    .notif-dropdown-item.unread {
        background: var(--brand-50);
    }

    .notif-dropdown-item:last-child {
        border-bottom: none;
    }

.notif-item-icon {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 2px;
}

.notif-item-body {
    flex: 1;
    min-width: 0;
}

.notif-item-title {
    font-size: 12.5px;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.4;
    margin-bottom: 2px;
}

.notif-item-msg {
    font-size: 11.5px;
    color: var(--text-secondary);
    line-height: 1.4;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 3px;
}

.notif-item-time {
    font-size: 11px;
    color: var(--text-tertiary);
}

.notif-unread-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--brand-500);
    flex-shrink: 0;
    margin-top: 6px;
}

/* ── Toast notifications ────────────────────────────────────────────── */
.toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 9999;
    pointer-events: none;
    max-width: 420px;
}

.toast {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 340px;
    max-width: 420px;
    padding: 16px 18px;
    border-radius: 14px;
    background: var(--bg-surface);
    box-shadow: 0 8px 32px rgba(0,0,0,0.18), 0 2px 8px rgba(0,0,0,0.1);
    pointer-events: all;
    overflow: hidden;
    border: 1.5px solid transparent;
}

.toast-entering {
    animation: toast-bounce-in 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.toast-closing {
    animation: toast-slide-out 0.3s ease-in forwards;
}

@keyframes toast-bounce-in {
    0% {
        opacity: 0;
        transform: translateX(80px) scale(0.85);
    }

    60% {
        transform: translateX(-6px) scale(1.02);
    }

    100% {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

@keyframes toast-slide-out {
    from {
        opacity: 1;
        transform: translateX(0) scale(1);
    }

    to {
        opacity: 0;
        transform: translateX(80px) scale(0.9);
    }
}

.toast-success {
    border-color: var(--success);
}

.toast-warning {
    border-color: var(--warning);
}

.toast-danger {
    border-color: var(--danger);
}

.toast-info {
    border-color: var(--brand-500);
}

.toast-icon-wrap {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.toast-icon-success {
    background: var(--success-bg);
    color: var(--success);
}

.toast-icon-warning {
    background: var(--warning-bg);
    color: var(--warning);
}

.toast-icon-danger {
    background: var(--danger-bg);
    color: var(--danger);
}

.toast-icon-info {
    background: var(--brand-50);
    color: var(--brand-600);
}

.toast-body {
    flex: 1;
    min-width: 0;
}

.toast-title {
    font-size: 13.5px;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.3;
    margin-bottom: 3px;
}

.toast-message {
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.5;
}

.toast-action-btn {
    display: inline-flex;
    align-items: center;
    margin-top: 8px;
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 11.5px;
    font-weight: 700;
    cursor: pointer;
    border: 1.5px solid;
    transition: all 0.15s ease;
    font-family: var(--font-sans);
    background: transparent;
}

.toast-action-warning {
    border-color: var(--warning);
    color: var(--warning);
}

    .toast-action-warning:hover {
        background: var(--warning);
        color: white;
    }

.toast-action-success {
    border-color: var(--success);
    color: var(--success);
}

    .toast-action-success:hover {
        background: var(--success);
        color: white;
    }

.toast-action-info {
    border-color: var(--brand-500);
    color: var(--brand-600);
}

    .toast-action-info:hover {
        background: var(--brand-500);
        color: white;
    }

.toast-action-danger {
    border-color: var(--danger);
    color: var(--danger);
}

    .toast-action-danger:hover {
        background: var(--danger);
        color: white;
    }

.toast-close {
    background: none;
    border: none;
    color: var(--text-tertiary);
    cursor: pointer;
    font-size: 14px;
    padding: 0;
    line-height: 1;
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.12s ease;
}

    .toast-close:hover {
        background: var(--bg-surface-muted);
        color: var(--text-primary);
    }

.toast-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    width: 100%;
    border-radius: 0 0 14px 14px;
    animation: toast-progress linear forwards;
    transform-origin: left;
}

.toast-progress-success {
    background: var(--success);
}

.toast-progress-warning {
    background: var(--warning);
}

.toast-progress-danger {
    background: var(--danger);
}

.toast-progress-info {
    background: var(--brand-500);
}

@keyframes toast-progress {
    from {
        transform: scaleX(1);
    }

    to {
        transform: scaleX(0);
    }
}

.toast-warning .toast-icon-wrap,
.toast-danger .toast-icon-wrap {
    animation: icon-pulse 1.5s ease-in-out infinite;
}

@keyframes icon-pulse {
    0%, 100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }
}

/* ── Pre-subasta — confeti y animaciones ────────────────────────────── */
@keyframes confetti-fall {
    0% {
        transform: translateY(-20px) rotate(0deg);
        opacity: 1;
    }

    100% {
        transform: translateY(100vh) rotate(720deg);
        opacity: 0;
    }
}

@keyframes winner-bounce {
    0% {
        transform: scale(0);
    }

    60% {
        transform: scale(1.3);
    }

    80% {
        transform: scale(0.9);
    }

    100% {
        transform: scale(1);
    }
}

/* ── Pulse general (usado en badges y estados live) ─────────────────── */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

/* ── Nav badge con número ────────────────────────────────────────────── */
.nav-badge-count {
    position: absolute;
    top: 4px;
    right: 4px;
    min-width: 16px;
    height: 16px;
    border-radius: 20px;
    background: #F5A623;
    color: #0F1B3D;
    font-size: 9px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    flex-shrink: 0;
    border: 1.5px solid var(--sidebar-bg);
}

.sidebar.expanded .nav-badge-count {
    position: static;
    margin-left: auto;
    border: none;
    min-width: 20px;
    height: 18px;
    font-size: 10px;
    padding: 0 6px;
}


/* ══════════════════════════════════════════════════════════════════════
   Refinamiento profesional (formularios, botones, listas de revisión)
   Causa raíz que corrige: los <input> sin atributo type no recibían el
   estilo global y se veían como cajas nativas del navegador.
   ══════════════════════════════════════════════════════════════════════ */
:where(input:not([type]), input[type="tel"], input[type="url"], input[type="search"]) {
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 13.5px;
    background: var(--bg-surface);
    color: var(--text-primary);
    font-family: var(--font-sans);
    box-sizing: border-box;
}

.form-group > :where(input:not([type]), input[type="tel"], input[type="url"], input[type="search"]) {
    width: 100%;
}

.form-group input, .form-group select, .form-group textarea {
    min-height: 40px;
    box-sizing: border-box;
}

textarea { line-height: 1.5; font-family: var(--font-sans); box-sizing: border-box; }

input::placeholder, textarea::placeholder { color: var(--text-tertiary); }

input:disabled, select:disabled, textarea:disabled {
    background: var(--bg-surface-muted);
    color: var(--text-tertiary);
    cursor: not-allowed;
}

/* Botón base genérico (.btn) con variantes */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 9px 16px;
    font-size: 13px;
    font-weight: 600;
    font-family: var(--font-sans);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: var(--bg-surface);
    color: var(--text-secondary);
    cursor: pointer;
    transition: background .12s ease, border-color .12s ease;
}
.btn:not(.btn-primary):hover:not(:disabled) { background: var(--bg-surface-muted); }
.btn.btn-primary { border-color: transparent; }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn-danger-outline { color: var(--danger); border-color: #F2B8B2; }
.btn-danger-outline:hover:not(:disabled) { background: var(--danger-bg) !important; }

/* Pestañas con contador */
.tab-count {
    display: inline-block;
    min-width: 18px;
    margin-left: 6px;
    padding: 1px 6px;
    border-radius: 10px;
    background: var(--bg-surface-muted);
    color: var(--text-secondary);
    font-size: 11px;
    font-weight: 700;
    text-align: center;
}
.tab.active .tab-count { background: var(--brand-50); color: var(--brand-600); }

/* Tablas con filas seleccionables */
.row-click { cursor: pointer; }
.row-click:hover td { background: var(--bg-surface-muted); }
.row-selected td { background: var(--brand-50); }
.row-selected td:first-child { box-shadow: inset 3px 0 0 var(--brand-500); }

/* Ficha de detalle (clave / valor) */
.kv { display: grid; grid-template-columns: 140px 1fr; gap: 9px 14px; font-size: 13px; }
.kv > span:nth-child(odd) { color: var(--text-tertiary); }
.kv > span:nth-child(even) { color: var(--text-primary); word-break: break-word; }
.detail-sep { border: none; border-top: 1px solid var(--border); margin: 16px 0; }
.review-layout { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(320px, 1fr); gap: 18px; align-items: start; }
@media (max-width: 1100px) { .review-layout { grid-template-columns: 1fr; } }


/* ══════════════ Catálogo: encabezado por día de venta ══════════════ */
.catalog-day {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 10px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--border);
}
.vehicle-grid > .catalog-day:first-child { margin-top: 0; }
.catalog-day-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-primary);
}

/* ══════════════ Agregar al calendario ══════════════ */
.cal-wrap { position: relative; display: inline-block; }
.cal-btn { display: inline-flex; align-items: center; gap: 7px; }
.cal-backdrop { position: fixed; inset: 0; z-index: 40; }
.cal-menu {
    position: absolute;
    z-index: 41;
    top: calc(100% + 6px);
    left: 0;
    min-width: 250px;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    box-shadow: 0 8px 24px rgba(15, 27, 61, .16);
    padding: 6px;
    display: flex;
    flex-direction: column;
}
.cal-menu a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    color: var(--text-primary);
    text-decoration: none;
}
.cal-menu a:hover { background: var(--bg-surface-muted); }


/* Selector de cantidad por página (catálogo) */
.pagination {
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.page-size {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-left: 16px;
    font-size: 13px;
    color: #64748b;
}

    .page-size select {
        padding: 6px 28px 6px 10px;
        border: 1px solid #cbd5e1;
        border-radius: 8px;
        background-color: #fff;
        font-size: 13px;
        cursor: pointer;
    }


/* Dashboard: mensaje cuando no hay datos */
.empty-hint {
    font-size: 12px;
    color: var(--text-tertiary);
    padding: 10px 0;
}