/* Standalone Excel Matrix PDF Generator Styles (Classic White Microsoft Excel Theme) */
html,
body.excel-generator-body {
    margin: 0;
    padding: 0;
    width: 100vw;
    height: 100vh;
    background: #ffffff;
    font-family: 'Segoe UI', Arial, sans-serif;
    color: #1f2937;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* Unified Executive Header Bar (Dark Obsidian Black Theme) */
.excel-header-bar {
    height: 52px;
    background: #0b0f19 !important;
    border-bottom: 1px solid #1e293b !important;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1.2rem;
    z-index: 10;
    color: #ffffff;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

.excel-header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.excel-header-divider {
    display: inline-block;
    width: 1px;
    height: 20px;
    background: rgba(255, 255, 255, 0.15);
    margin: 0 4px;
}

.excel-back-btn,
.btn-reset-matrix {
    height: 32px;
    padding: 0 12px;
    font-size: 0.82rem;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: #f1f5f9;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    cursor: pointer;
    box-shadow: none !important;
    transition: all 0.15s ease;
    white-space: nowrap;
}

.excel-back-btn i,
.btn-reset-matrix i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    font-size: 0.85rem;
    margin: 0;
}

.btn-reset-matrix {
    background: rgba(239, 68, 68, 0.12) !important;
    border: 1px solid rgba(239, 68, 68, 0.35) !important;
    color: #fca5a5 !important;
}

.btn-reset-matrix:hover {
    background: rgba(239, 68, 68, 0.28) !important;
    border-color: #ef4444 !important;
    color: #ffffff !important;
}

.excel-back-btn:hover {
    background: rgba(255, 255, 255, 0.18);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.35);
}

.excel-brand-title {
    display: flex;
    align-items: center;
    gap: 10px;
    border-right: 1px solid rgba(255, 255, 255, 0.15);
    padding-right: 16px;
    white-space: nowrap;
}

.excel-logo-icon {
    font-size: 1.25rem;
    color: #10b981;
}

.excel-brand-title h2 {
    font-size: 1.05rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
    letter-spacing: -0.2px;
    white-space: nowrap;
}

/* Integrated Header Badges */
.excel-header-stats {
    display: flex;
    align-items: center;
    gap: 5px;
}

.excel-stat-badge {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #cbd5e1;
    padding: 2px 7px;
    border-radius: 5px;
    font-size: 0.74rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
}

.excel-stat-badge strong {
    font-size: 0.78rem;
    font-weight: 700;
}

.excel-missing-alert {
    background: rgba(239, 68, 68, 0.15);
    border-color: rgba(239, 68, 68, 0.4);
    color: #fca5a5;
    cursor: pointer;
}

/* Compact Header Stats Dropdown Menu & Unified Pill Sizes */
.excel-stats-dropdown-wrapper,
.excel-grouping-select-wrapper {
    height: 32px !important;
    padding: 0 10px !important;
    font-size: 0.82rem !important;
    font-weight: 600 !important;
    border-radius: 6px !important;
    display: inline-flex !important;
    align-items: center !important;
    box-sizing: border-box !important;
    background: rgba(255, 255, 255, 0.08) !important;
    border: 1px solid rgba(255, 255, 255, 0.18) !important;
    color: #b1b1b1 !important;
    gap: 6px !important;
}

.excel-stats-dropdown-wrapper {
    position: relative !important;
    cursor: pointer !important;
    user-select: none !important;
}

.excel-stats-dropdown-wrapper:hover {
    background: rgba(255, 255, 255, 0.15) !important;
    border-color: rgba(255, 255, 255, 0.35) !important;
}

.excel-stats-dropdown-menu {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    min-width: 190px;
    background: #0f172a;
    border: 1px solid #334155;
    border-radius: 8px;
    padding: 10px 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
    z-index: 99;
    flex-direction: column;
    gap: 8px;
}

.excel-stats-dropdown-wrapper.open .excel-stats-dropdown-menu {
    display: flex !important;
}

.stats-menu-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.82rem;
    color: #cbd5e1;
    white-space: nowrap;
}

.excel-group-select {
    height: 24px !important;
    line-height: 24px !important;
    background: #0b0f19 !important;
    color: #868686 !important;
    border: 1px solid #475569 !important;
    border-radius: 4px !important;
    padding: 0 6px !important;
    font-size: 0.78rem !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    outline: none !important;
    transition: all 0.15s ease !important;
}

.excel-group-select option {
    background: #0f172a !important;
    color: #f59e0b !important;
    padding: 4px 8px !important;
}

.excel-group-select:hover {
    border-color: #f59e0b !important;
    box-shadow: 0 0 6px rgba(245, 158, 11, 0.4) !important;
}

/* Action Buttons Header (Glassmorphic Suite Palette) */
.excel-header-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-header-purple {
    background: rgba(147, 51, 234, 0.08) !important;
    border: 1px dashed rgba(192, 132, 252, 0.4) !important;
    color: #d8b4fe !important;
    height: 30px !important;
    padding: 0 10px !important;
    font-size: 0.76rem !important;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    box-shadow: none !important;
    transition: all 0.15s ease;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    opacity: 0.85;
}

.btn-header-purple:hover {
    background: rgba(147, 51, 234, 0.28) !important;
    border-style: solid !important;
    border-color: #c084fc !important;
    color: #ffffff !important;
    opacity: 1;
    box-shadow: 0 0 10px rgba(147, 51, 234, 0.3) !important;
}

.btn-header-amber {
    background: rgba(245, 158, 11, 0.08) !important;
    border: 1px dashed rgba(251, 191, 36, 0.4) !important;
    color: #fde68a !important;
    height: 30px !important;
    padding: 0 10px !important;
    font-size: 0.76rem !important;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    box-shadow: none !important;
    transition: all 0.15s ease;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    opacity: 0.85;
}

.btn-header-amber:hover {
    background: rgba(245, 158, 11, 0.28) !important;
    border-style: solid !important;
    border-color: #fbbf24 !important;
    color: #ffffff !important;
    opacity: 1;
    box-shadow: 0 0 10px rgba(245, 158, 11, 0.3) !important;
}

.btn-header-indigo {
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.3) 0%, rgba(99, 102, 241, 0.45) 100%) !important;
    border: 1px solid rgba(165, 180, 252, 0.6) !important;
    color: #ffffff !important;
    height: 34px;
    padding: 0 16px;
    font-size: 0.84rem;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 700;
    letter-spacing: 0.2px;
    box-shadow: 0 0 14px rgba(99, 102, 241, 0.35) !important;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.btn-header-indigo:hover {
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.55) 0%, rgba(99, 102, 241, 0.7) 100%) !important;
    border-color: #a5b4fc !important;
    color: #ffffff !important;
    transform: translateY(-1px);
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.6) !important;
}

.btn-header-slate {
    background: rgba(16, 185, 129, 0.14) !important;
    border: 1px solid rgba(16, 185, 129, 0.35) !important;
    color: #d1fae5 !important;
    height: 34px;
    padding: 0 14px;
    font-size: 0.82rem;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.1) !important;
    transition: all 0.15s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.btn-header-slate:hover {
    background: rgba(16, 185, 129, 0.28) !important;
    border-color: #10b981 !important;
    color: #ffffff !important;
    box-shadow: 0 0 14px rgba(16, 185, 129, 0.35) !important;
}

.btn-header-emerald {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
    border: 1px solid #059669 !important;
    color: #ffffff !important;
    height: 34px;
    padding: 0 16px;
    font-size: 0.85rem;
    font-weight: 700;
    border-radius: 6px;
    cursor: pointer;
    box-shadow: 0 0 14px rgba(16, 185, 129, 0.35) !important;
    transition: all 0.15s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-header-emerald:hover {
    background: linear-gradient(135deg, #059669 0%, #047857 100%) !important;
    border-color: #047857 !important;
    box-shadow: 0 0 22px rgba(16, 185, 129, 0.6) !important;
}

/* Viewport Container */
.excel-matrix-viewport {
    flex: 1;
    overflow: hidden;
    background: #ffffff;
    position: relative;
    width: 100%;
    height: 100%;
}

/* Luckysheet Native Font Family Overrides */
#luckysheet-container,
#luckysheet-cell-main,
.luckysheet-cell-flow {
    font-family: 'Segoe UI', Arial, sans-serif !important;
}

/* Luckysheet Find and Replace Dialog Overlay Layout Fix */
#luckysheet-search-replace {
    background: #ffffff !important;
    color: #111827 !important;
    border: 1px solid #cbd5e1 !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2) !important;
    border-radius: 8px !important;
    font-family: 'Segoe UI', Arial, sans-serif !important;
}

#luckysheet-search-replace .luckysheet-modal-dialog-title {
    background: #f8fafc !important;
    color: #107c41 !important;
    font-weight: 700 !important;
    border-bottom: 1px solid #e2e8f0 !important;
}

#luckysheet-search-replace input[type="text"] {
    background: #ffffff !important;
    color: #111827 !important;
    border: 1px solid #94a3b8 !important;
    border-radius: 4px !important;
    padding: 4px 8px !important;
    font-size: 0.88rem !important;
    height: 28px !important;
    box-shadow: none !important;
}

#luckysheet-search-replace input[type="checkbox"] {
    accent-color: #107c41 !important;
    width: 15px !important;
    height: 15px !important;
    vertical-align: middle !important;
}

#luckysheet-search-replace label,
#luckysheet-search-replace span {
    color: #111827 !important;
    font-size: 0.85rem !important;
    background: transparent !important;
}

/* Dock horizontal scrollbar to bottom track - standard Excel layout */
#luckysheet-scrollbar-x,
.luckysheet-scrollbar-x {
    bottom: 0px !important;
    margin: 0 !important;
    z-index: 100 !important;
}

/* Luckysheet Bottom Sheet Tabs Styling - Executive Standard Excel Bar */
#luckysheet-sheet-area {
    height: 30px !important;
    background: #f8fafc !important;
    border-top: 1px solid #cbd5e1 !important;
    line-height: 28px !important;
}

#luckysheet-sheet-area .luckysheet-sheets-item {
    font-family: 'Segoe UI', Arial, sans-serif !important;
    font-weight: 700 !important;
    font-size: 0.85rem !important;
    border-radius: 5px 5px 0 0 !important;
    margin-right: 5px !important;
    margin-top: 2px !important;
    padding: 2px 16px !important;
    background: #e2e8f0 !important;
    color: #334155 !important;
    border: 1px solid #cbd5e1 !important;
    border-bottom: none !important;
    text-decoration: none !important;
    box-shadow: none !important;
    height: 27px !important;
    line-height: 22px !important;
    overflow: visible !important;
}

#luckysheet-sheet-area .luckysheet-sheets-item-name {
    height: 100% !important;
    line-height: 22px !important;
    border-bottom: none !important;
    text-decoration: none !important;
    overflow: visible !important;
    display: inline-block !important;
    font-weight: 700 !important;
}

#luckysheet-sheet-area .luckysheet-sheets-item * {
    text-decoration: none !important;
    border-bottom: none !important;
}

#luckysheet-sheet-area .luckysheet-sheets-item.luckysheet-sheets-item-active {
    background: #107c41 !important;
    color: #ffffff !important;
    font-weight: 700 !important;
    border: 1px solid #107c41 !important;
    border-bottom: none !important;
    box-shadow: 0 -2px 5px rgba(16, 124, 65, 0.2) !important;
    height: 28px !important;
    margin-top: 1px !important;
}

#luckysheet-sheet-area .luckysheet-sheets-item.luckysheet-sheets-item-active * {
    color: #ffffff !important;
    text-decoration: none !important;
    border-bottom: none !important;
}

/* Modal Popup Styles */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(4px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    width: 90%;
    max-width: 650px;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    padding: 1.5rem;
    overflow: hidden;
}

.modal-header h2 {
    margin: 0;
    font-size: 1.2rem;
    color: #0f172a;
    display: flex;
    align-items: center;
    gap: 8px;
}

.close-confirm-modal {
    font-size: 1.5rem;
    color: #64748b;
    cursor: pointer;
}

.close-confirm-modal:hover {
    color: #0f172a;
}

.pdf-files-list-container {
    max-height: 380px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 1rem;
}

.pdf-file-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
}

.pdf-file-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.pdf-file-icon {
    font-size: 1.5rem;
    color: #dc2626;
}

.pdf-file-name {
    font-weight: 700;
    font-size: 0.9rem;
    color: #0f172a;
}

.pdf-file-meta {
    font-size: 0.8rem;
    color: #64748b;
}

.btn-pdf-download {
    background: #107c41;
    color: #ffffff;
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 0.82rem;
    font-weight: 600;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 6px;
}

.btn-pdf-download:hover {
    background: #0e6b37;
}

/* Toast Notification */
.toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    padding: 12px 20px;
    border-radius: 8px;
    background: #0f172a;
    color: #ffffff;
    font-size: 0.88rem;
    font-weight: 600;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    z-index: 10000;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
    pointer-events: none;
}

.toast.show {
    opacity: 1;
    transform: translateY(0);
}

/* Clickable Missing Images Header Alert Badge & Jump Button */
.excel-missing-alert {
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    user-select: none !important;
}

.excel-missing-alert:hover {
    background: rgba(220, 38, 38, 0.25) !important;
    border-color: #ef4444 !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3) !important;
}

.btn-jump-cell {
    background: #fee2e2;
    color: #dc2626;
    border: 1px solid #fca5a5;
    border-radius: 6px;
    padding: 4px 10px;
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.15s ease;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.btn-jump-cell:hover {
    background: #dc2626;
    color: #ffffff;
    border-color: #dc2626;
    box-shadow: 0 2px 8px rgba(220, 38, 38, 0.3);
}

.toast.success {
    background: #107c41;
}

.toast.error {
    background: #dc2626;
}

.toast.info {
    background: #2563eb;
}

/* Executive Vendor Selection & Download Modal Styling */
.vendor-select-modal-content,
.pdf-download-modal-content {
    max-width: 820px !important;
    width: 92% !important;
    max-height: 85vh !important;
    background: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 18px !important;
    padding: 0 !important;
    color: #0f172a !important;
    box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.25) !important;
    overflow: hidden !important;
    display: flex !important;
    flex-direction: column !important;
}

.vendor-modal-header {
    background: #0f172a !important;
    color: #ffffff !important;
    padding: 1.2rem 1.6rem !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    border-bottom: 1px solid #1e293b !important;
}

.vendor-modal-header h2 {
    font-size: 1.25rem !important;
    font-weight: 700 !important;
    color: #ffffff !important;
    margin: 0 !important;
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
}

.vendor-modal-header h2 i {
    color: #10b981 !important;
}

.close-confirm-modal,
.vendor-modal-header .close-confirm-modal {
    width: 32px !important;
    height: 32px !important;
    min-width: 32px !important;
    min-height: 32px !important;
    border-radius: 50% !important;
    background: rgba(255, 255, 255, 0.1) !important;
    color: #94a3b8 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    outline: none !important;
    padding: 0 !important;
    margin: 0 !important;
    box-sizing: border-box !important;
}

.close-confirm-modal i,
.vendor-modal-header .close-confirm-modal i {
    font-size: 0.95rem !important;
    line-height: 1 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
    height: 100% !important;
}

.close-confirm-modal:hover,
.vendor-modal-header .close-confirm-modal:hover {
    background: #ef4444 !important;
    color: #ffffff !important;
    border-color: #ef4444 !important;
    transform: rotate(90deg) scale(1.05) !important;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4) !important;
}

/* Dual-Box Side-by-Side Drag and Drop Vendor Picker */
.vendor-picker-dual-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 6px;
}

.vendor-picker-box {
    background: #f8fafc;
    border: 1.5px dashed #cbd5e1;
    border-radius: 14px;
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    transition: all 0.2s ease;
}

.selected-box {
    background: #f0fdf4;
    border: 1.5px dashed #86efac;
}

.picker-box-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 700;
    font-size: 0.85rem;
    color: #334155;
    margin-bottom: 10px;
    padding-bottom: 6px;
    border-bottom: 1px solid #e2e8f0;
    user-select: none;
}

.selected-header {
    color: #15803d;
    border-bottom-color: #bbf7d0;
}

.box-badge {
    background: #e2e8f0;
    color: #475569;
    padding: 2px 10px;
    border-radius: 12px;
    font-size: 0.78rem;
    font-weight: 700;
}

.selected-badge {
    background: #dcfce7;
    color: #166534;
}

.vertical-list-dropzone {
    min-height: 240px;
    max-height: 380px;
    overflow-y: auto !important;
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 4px;
}

.vertical-list-dropzone.drag-over {
    background: #e0e7ff;
    border: 2px dashed #6366f1;
    border-radius: 8px;
}

.selected-dropzone.drag-over {
    background: #dcfce7;
    border: 2px dashed #22c55e;
}

/* Vertical Vendor Row Component */
.vendor-row-card {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    padding: 8px 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.85rem;
    font-weight: 700;
    color: #0f172a;
    cursor: grab;
    user-select: none;
    transition: all 0.15s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}

.vendor-row-card:hover {
    border-color: #6366f1;
    background: #f8fafc;
    transform: translateX(2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.06);
}

.vendor-row-card.selected-row {
    background: #ffffff;
    border-color: #a7f3d0;
}

.vendor-row-card.selected-row:hover {
    border-color: #10b981;
    background: #f0fdf4;
}

.vendor-row-left {
    display: flex;
    align-items: center;
    gap: 10px;
    user-select: none;
}

.badge-pdf-downloaded {
    background: #dcfce7 !important;
    color: #15803d !important;
    border: 1px solid #86efac !important;
    font-size: 0.72rem !important;
    font-weight: 700 !important;
    padding: 2px 8px !important;
    border-radius: 12px !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 4px !important;
    white-space: nowrap !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04) !important;
}

.sheet-vendor-downloaded-pill {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
    color: #ffffff !important;
    border: 1px solid #34d399 !important;
    font-size: 0.68rem !important;
    font-weight: 700 !important;
    padding: 2px 7px !important;
    border-radius: 10px !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 4px !important;
    white-space: nowrap !important;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3) !important;
    user-select: none !important;
    transition: transform 0.15s ease !important;
    line-height: 1.1 !important;
}

.sheet-vendor-downloaded-pill:hover {
    transform: scale(1.08) !important;
}

/* Liquid Shimmer Flow Progress Bar Animation */
#pdf-gen-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #10b981 0%, #34d399 25%, #059669 50%, #34d399 75%, #10b981 100%) !important;
    background-size: 200% 100% !important;
    animation: liquidFlow 1.5s linear infinite !important;
    border-radius: 8px !important;
    transition: width 0.25s ease-out !important;
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.4) !important;
}

@keyframes liquidFlow {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.vendor-row-right {
    display: flex;
    align-items: center;
    gap: 8px;
    user-select: none;
}

.btn-chip-action {
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.15s ease;
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.btn-chip-add {
    background: #eff6ff;
    color: #2563eb;
    border: 1px solid #bfdbfe;
}

.btn-chip-add:hover {
    background: #2563eb;
    color: #ffffff;
}

.btn-chip-remove {
    background: #fef2f2;
    color: #ef4444;
    border: 1px solid #fca5a5;
}

.btn-chip-remove:hover {
    background: #ef4444;
    color: #ffffff;
}

.vendor-chip-card:active {
    cursor: grabbing;
}

.vendor-chip-card.selected-chip {
    background: #ffffff;
    border-color: #86efac;
    color: #14532d;
    box-shadow: 0 2px 6px rgba(16, 185, 129, 0.12);
}

.vendor-chip-card.selected-chip:hover {
    border-color: #22c55e;
    background: #f0fdf4;
}

.chip-action-btn {
    font-size: 0.78rem;
    color: #64748b;
    cursor: pointer;
    padding: 2px 6px;
    border-radius: 4px;
    transition: all 0.15s ease;
    background: #f1f5f9;
}

.chip-action-btn:hover {
    background: #fee2e2;
    color: #dc2626;
}

.vendor-modal-body {
    padding: 1.5rem !important;
    display: flex !important;
    flex-direction: column !important;
    overflow-y: auto !important;
}

.vendor-controls-bar {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    background: #f8fafc !important;
    padding: 10px 16px !important;
    border-radius: 10px !important;
    border: 1px solid #e2e8f0 !important;
    margin-bottom: 1.2rem !important;
}

.btn-vendor-ctrl {
    padding: 6px 14px !important;
    font-size: 0.85rem !important;
    font-weight: 700 !important;
    border-radius: 8px !important;
    cursor: pointer !important;
    transition: all 0.15s ease !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
}

.btn-ctrl-select {
    background: #e2e8f0 !important;
    color: #1e293b !important;
    border: 1px solid #cbd5e1 !important;
}

.btn-ctrl-select:hover {
    background: #cbd5e1 !important;
}

.btn-ctrl-clear {
    background: #fee2e2 !important;
    color: #dc2626 !important;
    border: 1px solid #fca5a5 !important;
}

.btn-ctrl-clear:hover {
    background: #dc2626 !important;
    color: #ffffff !important;
    border-color: #dc2626 !important;
}

.vendor-count-badge {
    font-weight: 700 !important;
    font-size: 0.88rem !important;
    color: #107c41 !important;
    background: #e6f4ea !important;
    padding: 5px 12px !important;
    border-radius: 6px !important;
    border: 1px solid #bbf7d0 !important;
}

.vendor-checklist-grid {
    max-height: 440px !important;
    overflow-y: auto !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
    padding-right: 6px !important;
}

/* Custom Scrollbar for Grid & Table */
.vendor-checklist-grid::-webkit-scrollbar,
.pdf-files-list-container::-webkit-scrollbar {
    width: 6px !important;
}

.vendor-checklist-grid::-webkit-scrollbar-thumb,
.pdf-files-list-container::-webkit-scrollbar-thumb {
    background: #cbd5e1 !important;
    border-radius: 4px !important;
}

.vendor-select-card {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 10px 18px !important;
    background: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 10px !important;
    cursor: pointer !important;
    transition: all 0.15s ease !important;
    user-select: none !important;
}

.vendor-select-card:hover {
    border-color: #107c41 !important;
    background: #f8fafc !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 3px 10px rgba(16, 124, 65, 0.12) !important;
}

.vendor-select-card input[type="checkbox"] {
    width: 18px !important;
    height: 18px !important;
    accent-color: #107c41 !important;
    cursor: pointer !important;
}

.vendor-card-left {
    display: flex !important;
    align-items: center !important;
    gap: 14px !important;
    flex: 1 !important;
    min-width: 0 !important;
}

.vendor-name-title {
    font-weight: 700 !important;
    font-size: 0.96rem !important;
    color: #0f172a !important;
    min-width: 130px !important;
    white-space: nowrap !important;
}

.vendor-meta-pill {
    font-size: 0.8rem !important;
    color: #475569 !important;
    font-weight: 600 !important;
    background: #f1f5f9 !important;
    border: 1px solid #e2e8f0 !important;
    padding: 3px 12px !important;
    border-radius: 20px !important;
    white-space: nowrap !important;
    display: inline-flex !important;
    align-items: center !important;
}

.vendor-card-right {
    display: flex !important;
    gap: 8px !important;
    align-items: center !important;
    flex-shrink: 0 !important;
}

.vendor-badge-lajree {
    background: #dcfce7 !important;
    color: #15803d !important;
    border: 1px solid #bbf7d0 !important;
    border-radius: 6px !important;
    padding: 3px 10px !important;
    font-weight: 700 !important;
    font-size: 0.78rem !important;
    white-space: nowrap !important;
    display: inline-flex !important;
    align-items: center !important;
    flex-shrink: 0 !important;
}

.vendor-badge-silkfolks {
    background: #f5d0fe !important;
    color: #a21caf !important;
    border: 1px solid #f0abfc !important;
    border-radius: 6px !important;
    padding: 3px 10px !important;
    font-weight: 700 !important;
    font-size: 0.78rem !important;
    white-space: nowrap !important;
    display: inline-flex !important;
    align-items: center !important;
    flex-shrink: 0 !important;
}

.vendor-modal-footer {
    margin-top: 1.5rem !important;
    display: flex !important;
    justify-content: flex-end !important;
    gap: 12px !important;
    border-top: 1px solid #e2e8f0 !important;
    padding-top: 1rem !important;
}

.btn-zip-download-hero {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
    border: 1px solid #059669 !important;
    color: #ffffff !important;
    height: 38px;
    padding: 0 20px;
    font-size: 0.88rem;
    font-weight: 700;
    border-radius: 8px;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.35) !important;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-zip-download-hero:hover {
    background: linear-gradient(135deg, #059669 0%, #047857 100%) !important;
    border-color: #047857 !important;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.5) !important;
}

.btn-vendor-cancel {
    padding: 9px 20px !important;
    border-radius: 8px !important;
    font-weight: 700 !important;
    font-size: 0.88rem !important;
    background: #f1f5f9 !important;
    color: #475569 !important;
    border: 1px solid #cbd5e1 !important;
    cursor: pointer !important;
    transition: all 0.15s ease !important;
}

.btn-vendor-cancel:hover {
    background: #e2e8f0 !important;
    color: #0f172a !important;
}

.btn-vendor-start-gen {
    padding: 9px 24px !important;
    border-radius: 8px !important;
    font-weight: 700 !important;
    font-size: 0.9rem !important;
    background: #107c41 !important;
    color: #ffffff !important;
    border: none !important;
    cursor: pointer !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    box-shadow: 0 4px 12px rgba(16, 124, 65, 0.25) !important;
    transition: all 0.15s ease !important;
}

.btn-vendor-start-gen:hover {
    background: #0b6333 !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 6px 16px rgba(16, 124, 65, 0.35) !important;
}

/* Brand Matrix Table View Styling */
.pdf-files-list-container {
    max-height: 400px !important;
    overflow-y: auto !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 12px !important;
    background: #ffffff !important;
}

.pdf-matrix-table {
    width: 100% !important;
    border-collapse: collapse !important;
    font-size: 0.88rem !important;
}

.pdf-matrix-table thead tr {
    background: #f8fafc !important;
    border-bottom: 2px solid #e2e8f0 !important;
    position: sticky !important;
    top: 0 !important;
    z-index: 10 !important;
}

.pdf-matrix-table th {
    padding: 12px 16px !important;
    font-weight: 700 !important;
    color: #0f172a !important;
}

.pdf-matrix-table td {
    padding: 12px 16px !important;
    border-bottom: 1px solid #f1f5f9 !important;
}

.pdf-matrix-table tbody tr:hover {
    background: #f8fafc !important;
}

.btn-matrix-download {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    padding: 7px 16px !important;
    color: #ffffff !important;
    text-decoration: none !important;
    border-radius: 8px !important;
    font-weight: 700 !important;
    font-size: 0.82rem !important;
    transition: all 0.15s ease !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12) !important;
}

.btn-matrix-download:hover {
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2) !important;
    filter: brightness(1.1) !important;
}

/* Completely Hide Luckysheet Frozen Split Line & Freeze Handle Bar */
.luckysheet-freeze-line-h,
.luckysheet-freeze-line-v,
.luckysheet-freeze-line,
.luckysheet-freeze-handle-h,
.luckysheet-freeze-handle-v,
.luckysheet-freezebar-horizontal,
.luckysheet-freezebar-vertical,
.luckysheet-freezebar-container,
.luckysheet-freezebar-container *,
div[class*="luckysheet-freeze"] {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    height: 0 !important;
    width: 0 !important;
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
}