﻿.rfq-registry-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 24px 16px;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    color: #1e293b;
}

/* ---- PAGE HEADER ---- */
.registry-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 28px;
    border-bottom: 1px solid #f1f5f9;
    padding-bottom: 20px;
}

.page-title {
    font-size: 28px;
    font-weight: 850;
    color: #0f172a;
    letter-spacing: -0.025em;
    margin-bottom: 6px;
}

.page-subtitle {
    font-size: 14px;
    color: #64748b;
    margin-bottom: 0;
    line-height: 1.5;
}

.btn-create-rfq {
    background: #4f46e5 !important;
    border-color: #4f46e5 !important;
    color: #ffffff !important;
    font-weight: 600 !important;
    border-radius: 10px !important;
    box-shadow: 0 4px 10px rgba(79, 70, 229, 0.15) !important;
    transition: all 0.2s ease !important;
}

    .btn-create-rfq:hover {
        background: #4338ca !important;
        border-color: #4338ca !important;
        transform: translateY(-1px);
        box-shadow: 0 6px 14px rgba(79, 70, 229, 0.2) !important;
    }

/* ---- FILTER / SEARCH BAR ---- */
.action-console-bar {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 16px;
    margin-bottom: 24px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}

.search-wrapper {
    position: relative;
    flex: 1;
    min-width: 280px;
    display: flex;
    align-items: center;
}

.search-inline-icon {
    position: absolute;
    left: 14px;
    color: #94a3b8;
    font-size: 15px;
    z-index: 10;
    pointer-events: none;
}

.custom-search-input {
    width: 100% !important;
    padding-left: 38px !important;
    height: 42px !important;
    border-radius: 10px !important;
    border: 1px solid #e2e8f0 !important;
    font-size: 14px !important;
    background: #f8fafc !important;
    transition: all 0.15s ease !important;
}

    .custom-search-input:focus, .custom-search-input:hover {
        background: #ffffff !important;
        border-color: #cbd5e1 !important;
    }

.filter-controls-group {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.date-picker-range {
    display: flex;
    align-items: center;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: 4px 10px;
    border-radius: 10px;
    gap: 8px;
}

.datepicker-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    color: #94a3b8;
    letter-spacing: 0.05em;
}

.custom-datepicker {
    width: 130px !important;
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
    height: 30px !important;
    font-size: 12px !important;
    font-weight: 500 !important;
}

.rfq-registry-page {
    color: #1e293b;
}

.page-title {
    font-size: 24px;
    font-weight: 700;
    color: #0f172a;
}

/* ---- Card ---- */
.rfq-card {
    background: #ffffff;
    border: 1px solid #eef0f3;
    border-radius: 16px;
    padding: 20px 24px;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
    transition: box-shadow .2s ease, border-color .2s ease;
}

    .rfq-card:hover {
        box-shadow: 0 4px 14px rgba(15, 23, 42, 0.08);
        border-color: #e2e8f0;
    }

/* ---- RFQ number badge ---- */
.rfq-number-badge {
    font-family: 'Courier New', ui-monospace, monospace;
    font-weight: 700;
    font-size: 13px;
    letter-spacing: .5px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    padding: 4px 12px;
    color: #1e293b;
    background: #f8fafc;
}

.cust-ref {
    font-size: 12px;
    color: #64748b;
}

/* ---- Status pills ---- */
.status-pill {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .4px;
    border-radius: 999px;
    padding: 3px 12px;
    text-transform: uppercase;
    border: 1px solid transparent;
    line-height: 1.6;
}

.status-approved {
    background: #ecfdf5;
    color: #059669;
    border-color: #a7f3d0;
}
/* QUOTED */
.status-pending {
    background: #fff7ed;
    color: #c2410c;
    border-color: #fed7aa;
}
/* OPEN */
.status-draft {
    background: #f1f5f9;
    color: #475569;
    border-color: #e2e8f0;
}
/* DRAFT */

/* ---- Customer name ---- */
.rfq-customer-name {
    font-size: 17px;
    font-weight: 700;
    color: #1e293b;
}

/* ---- Meta row (contact / email / due) ---- */
.rfq-meta {
    font-size: 13px;
    color: #64748b;
}

    .rfq-meta .anticon {
        margin-right: 4px;
        color: #94a3b8;
    }

/* ---- Requested items ---- */
.requested-label {
    font-size: 11px;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: .5px;
    color: #94a3b8;
}

.item-chip {
    background: #eef2ff;
    color: #4338ca;
    border: 1px solid #e0e7ff;
    border-radius: 8px;
    padding: 3px 12px;
    font-size: 12px;
    font-weight: 500;
}

    .item-chip strong {
        font-weight: 700;
    }

.more-count {
    font-size: 12px;
    color: #94a3b8;
}

.items-count {
    font-size: 12px;
    color: #94a3b8;
    font-weight: 500;
}

/* ---- Buttons ---- */
.btn-generate-quote {
    background: #ede9fe !important;
    color: #6d28d9 !important;
    border: none !important;
    font-weight: 600;
    border-radius: 8px;
}

    .btn-generate-quote:hover {
        background: #ddd6fe !important;
    }

.btn-vendor-rfq {
    background: #0f172a !important;
    border-color: #0f172a !important;
    color: #fff !important;
    font-weight: 600;
    border-radius: 8px;
}

    .btn-vendor-rfq:hover {
        background: #1e293b !important;
    }

hr {
    border-color: #eef0f3;
    opacity: 1;
}



/* ==========================================================================
   ALAM ENTERPRISES & MUNEEB ERP - MODERN CORPORATE STYLES
   ========================================================================== */

:root {
    --primary-color: #17395f;       /* Deep Slate Blue */
    --primary-light: #f0f4f8;       /* Subtle Slate tint */
    --accent-color: #4f46e5;        /* Vibrant Indigo */
    --accent-hover: #4338ca;
    --text-dark: #0f172a;           /* Dark Charcoal */
    --text-muted: #64748b;          /* Soft Slate Gray */
    --border-light: #e2e8f0;        /* Cool Gray Border */
    --bg-light: #f8fafc;            /* Clean light gray background */
    --success: #10b981;             /* Emerald Green */
    --warning: #f59e0b;             /* Warm Amber */
    --danger: #ef4444;              /* Coral Red */
}

/* Base resets & layout helper */
.erp-container {
    max-width: 1200px;
    margin: 0 auto;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    color: var(--text-dark);
}

/* ==========================================================================
   DASHBOARD SPECIFIC STYLES
   ========================================================================== */
.fin-dashboard {
    background: #ffffff;
    border-radius: 24px;
    padding: 32px;
    border: 1px solid var(--border-light);
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.03);
}

.profile-chip {
    transition: all 0.2s ease;
}
.profile-chip:hover {
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(23, 57, 95, 0.05);
}

/* KPI Cards */
.metric-card {
    border-radius: 16px;
    padding: 24px;
    min-height: 130px;
    color: white;
    position: relative;
    overflow: hidden;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255, 255, 255, 0.1);
}
.metric-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px -10px rgba(0, 0, 0, 0.2);
}
.metric-card::after {
    content: "";
    position: absolute;
    right: -24px;
    top: -24px;
    width: 96px;
    height: 96px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
}
.products-card { background: linear-gradient(135deg, #6366f1, #8b5cf6); }
.customers-card { background: linear-gradient(135deg, #047857, #10b981); }
.suppliers-card { background: linear-gradient(135deg, #059669, #10b981); }
.categories-card { background: linear-gradient(135deg, #ea580c, #fb923c); }

.metric-top { display: flex; justify-content: space-between; align-items: flex-start; }
.metric-label { font-size: 11px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; opacity: 0.9; }
.metric-number { margin-top: 6px; font-size: 32px; font-weight: 800; font-family: 'JetBrains Mono', ui-monospace, monospace; }
.metric-icon { width: 44px; height: 44px; border-radius: 12px; background: rgba(255,255,255,0.18); display: flex; justify-content: center; align-items: center; font-size: 20px; }
.metric-footer { margin-top: 14px; display: flex; justify-content: space-between; align-items: center; }
.metric-badge { background: rgba(255,255,255,0.22); padding: 2px 8px; border-radius: 999px; font-size: 10px; font-weight: 700; }
.metric-footer small { font-size: 11px; opacity: 0.85; font-weight: 500; }

/* Shared Summary Metric Cards (mirrors CustomerRfq local styles — used across list pages) */
.rfq-metrics-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.rfq-metric-card { display: flex; align-items: center; gap: 14px; background: #fff; border: 1px solid #eaedf2; border-radius: 12px; padding: 16px 18px; box-shadow: 0 1px 3px rgba(16, 24, 40, 0.06); }
.rfq-metric-card .metric-icon { width: 46px; height: 46px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 20px; flex-shrink: 0; }
.rfq-metric-card .metric-icon-blue { background: #ecfdf5; color: #10b981; }
.rfq-metric-card .metric-icon-amber { background: #fffbeb; color: #f59e0b; }
.rfq-metric-card .metric-icon-purple { background: #f5f3ff; color: #8b5cf6; }
.rfq-metric-card .metric-icon-emerald { background: #ecfdf5; color: #10b981; }
.rfq-metric-card .metric-icon-rose { background: #fff1f2; color: #e11d48; }
.rfq-metric-card .metric-value { font-size: 22px; font-weight: 700; line-height: 1.1; }
.rfq-metric-card .metric-label { font-size: 12px; color: #64748b; font-weight: 600; text-transform: uppercase; letter-spacing: 0.3px; }
@media (max-width: 768px) {
    .rfq-metrics-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Dashboard Cards (Glass Card) */
.glass-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 24px;
    border: 1px solid var(--border-light);
    box-shadow: 0 2px 12px rgba(15, 23, 42, 0.01);
    height: 100%;
}

.chart-header { border-bottom: 1px solid #f1f5f9; padding-bottom: 16px; margin-bottom: 16px; }
.chart-chip { background: #f1f5f9; color: #334155; padding: 4px 12px; border-radius: 999px; font-size: 11px; font-weight: 700; border: 1px solid #e2e8f0; }

/* Budget Circle (Stock Health) */
.budget-circle {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    margin: 16px auto;
    position: relative;
    background: conic-gradient(var(--success) 0deg, var(--success) 260deg, #e2e8f0 260deg, #e2e8f0 360deg);
    display: flex;
    align-items: center;
    justify-content: center;
}
.budget-circle::before {
    content: "";
    position: absolute;
    inset: 12px;
    background: white;
    border-radius: 50%;
}
.budget-center { position: absolute; z-index: 5; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.budget-center span { font-size: 28px; font-weight: 800; color: var(--text-dark); font-family: 'JetBrains Mono', monospace; }
.budget-center small { color: var(--text-muted); font-size: 9px; font-weight: 700; text-transform: uppercase; margin-top: 2px; }

/* Table Styles */
.fin-table { width: 100%; border-collapse: collapse; }
.fin-table thead th { background: #f8fafc; color: var(--text-muted); padding: 12px 16px; font-size: 11px; font-weight: 700; text-align: left; text-transform: uppercase; letter-spacing: 0.05em; border-bottom: 2px solid #e2e8f0; }
.fin-table tbody tr { background: white; transition: background-color 0.15s ease; border-bottom: 1px solid #e2e8f0; }
.fin-table tbody tr:hover { background-color: #f8fafc; }
.fin-table td { padding: 14px 16px; font-size: 13px; color: #334155; }

/* Progress elements for warehouse capacities */
.goal-item { margin-top: 16px; }
.goal-item span { display: block; margin-bottom: 6px; font-weight: 600; color: var(--text-dark); font-size: 12px; }

/* ==========================================================================
   REGISTRY / CARD LIST SPECIFIC STYLES
   ========================================================================== */
.rfq-registry-page {
    background: #ffffff;
    border-radius: 24px;
    padding: 32px;
    border: 1px solid var(--border-light);
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.03);
}

.page-title { font-size: 28px; font-weight: 800; color: var(--text-dark); letter-spacing: -0.02em; }

/* Search & Filter Bar */
.filter-bar {
    background: #f8fafc;
    border: 1px solid var(--border-light);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 24px;
}

/* Beautiful RFQ Listing Cards */
.rfq-card {
    background: #ffffff;
    border: 1px solid var(--border-light);
    border-radius: 16px;
    padding: 20px 24px;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.02);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}
.rfq-card:hover {
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
    border-color: #cbd5e1;
    transform: translateY(-2px);
}

/* Badges and tags */
.rfq-number-badge {
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-weight: 700;
    font-size: 12px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    padding: 3px 10px;
    color: var(--text-dark);
    background: #f1f5f9;
}
.cust-ref { font-size: 12px; color: var(--text-muted); }

/* Custom Status Pills */
.status-pill {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.05em;
    border-radius: 999px;
    padding: 2px 10px;
    text-transform: uppercase;
    border: 1px solid transparent;
}
.status-approved { background: #d1fae5; color: #065f46; border-color: #a7f3d0; } /* Quoted / Approved */
.status-pending  { background: #ffedd5; color: #9a3412; border-color: #fed7aa; } /* Open / Submitted */
.status-draft    { background: #f1f5f9; color: #334155; border-color: #cbd5e1; } /* Draft */

.rfq-customer-name { font-size: 18px; font-weight: 700; color: var(--text-dark); margin-top: 4px; }
.rfq-meta { font-size: 13px; color: var(--text-muted); margin-top: 8px; }
.rfq-meta span { display: inline-flex; align-items: center; gap: 6px; margin-right: 16px; }

/* Custom Buttons */
.btn-generate-quote {
    background: #e0e7ff !important;
    color: #4338ca !important;
    border: 1px solid #c7d2fe !important;
    font-weight: 600 !important;
    border-radius: 8px !important;
    transition: all 0.15s ease !important;
}
.btn-generate-quote:hover {
    background: #c7d2fe !important;
    color: #312e81 !important;
}

.btn-vendor-rfq {
    background: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
    color: #ffffff !important;
    font-weight: 600 !important;
    border-radius: 8px !important;
    transition: all 0.15s ease !important;
}
.btn-vendor-rfq:hover {
    background: #0f2744 !important;
    border-color: #0f2744 !important;
}

/* Item chips */
.requested-label { font-size: 11px; text-transform: uppercase; font-weight: 700; letter-spacing: 0.04em; color: var(--text-muted); }
.item-chip {
    background: #e0f2fe;
    color: #0369a1;
    border: 1px solid #bae6fd;
    border-radius: 6px;
    padding: 2px 8px;
    font-size: 11px;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
}
.item-chip strong { font-weight: 800; color: #014f7a; }
.more-count { font-size: 11px; color: var(--text-muted); font-weight: 600; }
.items-count { font-size: 12px; color: var(--text-muted); font-weight: 500; }

/* ==========================================================================
   CUSTOMER RFQ FORM SPECIFIC STYLES
   ========================================================================== */
.rfq-form-page {
    background: #ffffff;
    border-radius: 24px;
    padding: 32px;
    border: 1px solid var(--border-light);
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.03);
}

.form-header-title { font-size: 26px; font-weight: 800; color: var(--text-dark); letter-spacing: -0.02em; }
.section-sub-title { font-size: 16px; font-weight: 700; color: var(--text-dark); border-left: 4px solid var(--primary-color); padding-left: 10px; margin-bottom: 20px; }

/* Product Rows style */
.product-item-row {
    background: #f8fafc;
    border: 1px solid var(--border-light);
    border-radius: 12px;
    padding: 16px 20px;
    transition: all 0.2s ease;
    margin-bottom: 12px;
}
.product-item-row:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
}

/* Numeric indices */
.row-index-indicator {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--primary-color);
    color: #ffffff;
    font-size: 12px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(23, 57, 95, 0.2);
}

/* Badges for dropdown template options */
.badge-code { background: #e2e8f0; color: #1e293b; border: 1px solid #cbd5e1; padding: 2px 6px; border-radius: 4px; font-size: 11px; font-family: 'JetBrains Mono', monospace; font-weight: 700; }
.badge-secondary { background: #f1f5f9; color: #475569; border: 1px solid #e2e8f0; padding: 2px 6px; border-radius: 4px; font-size: 11px; font-weight: 500; }

.item-desc-text {
    font-size: 12px;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.7);
    padding: 4px 10px;
    border-radius: 6px;
    border: 1px dashed var(--border-light);
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

/* ==========================================================================
   CUSTOMER RFQ CREATION & EDIT STYLES
   ========================================================================== */

.rfq-container {
    max-width: 1000px;
    margin: 0 auto;
}

.rfq-header-title {
    font-size: 26px;
    font-weight: 850;
    color: #0f172a;
    letter-spacing: -0.025em;
}

.rfq-header-subtitle {
    font-size: 14px;
    color: #64748b;
    margin-top: 4px;
}

.rfq-card-master {
    background: #ffffff;
    border-radius: 20px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
    padding: 32px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

    .rfq-card-master:hover {
        border-color: #cbd5e1;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
    }

.rfq-section-title {
    font-size: 12px;
    font-weight: 800;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    border-bottom: 1px solid #f1f5f9;
    padding-bottom: 10px;
    margin-bottom: 24px;
}

.rfq-form-label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    color: #475569;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 8px;
}

.rfq-input-field {
    width: 100%;
    padding: 11px 16px;
    background-color: #f8fafc;
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    font-size: 13.5px;
    color: #0f172a;
    transition: all 0.2s ease-in-out;
}

    .rfq-input-field:focus {
        background-color: #ffffff;
        border-color: #4f46e5;
        outline: none;
        box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.1);
    }

.rfq-combobox-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 11px 16px;
    background-color: #f8fafc;
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    text-align: left;
    font-size: 13.5px;
    color: #0f172a;
    transition: all 0.2s ease-in-out;
}

    .rfq-combobox-btn:focus {
        background-color: #ffffff;
        border-color: #4f46e5;
        outline: none;
        box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.1);
    }

.rfq-dropdown-container {
    position: absolute;
    left: 0;
    right: 0;
    margin-top: 6px;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 14px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.05);
    z-index: 50;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.rfq-dropdown-search-wrapper {
    padding: 10px;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    gap: 8px;
    align-items: center;
}

.rfq-dropdown-list {
    max-height: 240px;
    overflow-y: auto;
    overflow-x: hidden;
    background: #ffffff;
}

.rfq-dropdown-item {
    width: 100%;
    text-align: left;
    padding: 12px 16px;
    border-bottom: 1px solid #f1f5f9;
    transition: all 0.15s ease;
}

    .rfq-dropdown-item:hover {
        background-color: #f5f3ff;
    }

.rfq-dropdown-item-active {
    background-color: #e0e7ff;
}

.rfq-item-row-card {
    background: #ffffff;
    border-radius: 18px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.01);
    padding: 24px;
    position: relative;
    transition: all 0.2s ease-in-out;
}

    .rfq-item-row-card:hover {
        border-color: #cbd5e1;
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.03);
    }

.rfq-row-badge-number {
    width: 26px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
    border-radius: 50%;
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    font-weight: 700;
    color: #64748b;
}

.rfq-delete-row-btn {
    padding: 8px;
    color: #94a3b8;
    border-radius: 8px;
    transition: all 0.15s ease;
}

    .rfq-delete-row-btn:hover {
        color: #ef4444;
        background-color: #fef2f2;
    }

.rfq-btn-dashed-add {
    width: 100%;
    padding: 16px;
    background-color: rgba(248, 250, 252, 0.6);
    border: 2px dashed #cbd5e1;
    border-radius: 16px;
    font-size: 14px;
    font-weight: 600;
    color: #475569;
    transition: all 0.2s ease-in-out;
}

    .rfq-btn-dashed-add:hover {
        background-color: #f8fafc;
        border-color: #6366f1;
        color: #4f46e5;
        box-shadow: 0 4px 12px rgba(99, 102, 241, 0.05);
    }

.rfq-badge-tag {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 600;
    color: #475569;
}

.rfq-badge-tag-highlight {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    background-color: #ecfdf5;
    border: 1px solid #a7f3d0;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 700;
    color: #059669;
}

.rfq-action-bar-footer {
    display: flex;
    flex-direction: column;
    background: #ffffff;
    border-radius: 20px;
    border: 1px solid #e2e8f0;
    padding: 24px;
    gap: 16px;
}

@media (min-width: 640px) {
    .rfq-action-bar-footer {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
}

.rfq-btn-save-draft {
    padding: 12px 24px;
    background-color: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 700;
    color: #334155;
    transition: all 0.2s ease;
}

    .rfq-btn-save-draft:hover {
        background-color: #e2e8f0;
        color: #0f172a;
    }

.rfq-btn-save-submit {
    padding: 12px 24px;
    background-color: #4f46e5;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 700;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.15);
    transition: all 0.2s ease;
}

    .rfq-btn-save-submit:hover {
        background-color: #4338ca;
        box-shadow: 0 6px 20px rgba(79, 70, 229, 0.25);
        transform: translateY(-1px);
    }

/* ── RFQ Tier: Quotation Won (normal) ──────────────────────────── */
.rfq-card-won {
    border: 1px solid #a7f3d0 !important;
    border-left: 4px solid #10b981 !important;
    background: linear-gradient(180deg, #ecfdf5 0%, #ffffff 70%) !important;
    box-shadow: 0 2px 6px rgba(16, 185, 129, 0.12) !important;
}

    .rfq-card-won:hover {
        border-color: #6ee7b7 !important;
        border-left-color: #059669 !important;
        box-shadow: 0 8px 22px rgba(16, 185, 129, 0.22) !important;
    }

.tier-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 10.5px;
    font-weight: 800;
    letter-spacing: .5px;
    padding: 3px 11px;
    border-radius: 999px;
    text-transform: uppercase;
    white-space: nowrap;
}

.tier-won {
    color: #022c22;
    background: linear-gradient(135deg, #a7f3d0, #6ee7b7);
    border: 1px solid #34d399;
    box-shadow: 0 2px 10px rgba(5, 150, 105, 0.35);
}

/* ── RFQ Tier: PREMIUM (invoice generated) — heavy gold theme ──── */
.rfq-card-premium {
    position: relative;
    overflow: hidden;
    background: linear-gradient(180deg, #fffbeb 0%, #fffdf7 45%, #ffffff 100%) !important;
    border: 1.5px solid #f0b90b !important;
    box-shadow: 0 0 0 1px rgba(234, 179, 8, 0.18) inset,
                0 12px 32px -10px rgba(234, 179, 8, 0.35),
                0 0 22px rgba(245, 197, 24, 0.14) !important;
    animation: premium-glow 3.2s ease-in-out infinite;
    transition: box-shadow .25s ease, border-color .25s ease, transform .25s ease;
}

    .rfq-card-premium::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 4px;
        background: linear-gradient(90deg, #f59e0b, #fde047, #f59e0b, #fbbf24, #f59e0b);
        background-size: 200% 100%;
        animation: premium-sheen 4s linear infinite;
    }

    .rfq-card-premium::after {
        content: "";
        position: absolute;
        top: -20%;
        left: -60%;
        width: 45%;
        height: 140%;
        background: linear-gradient(105deg, transparent 0%, rgba(255, 255, 255, 0.65) 50%, transparent 100%);
        transform: skewX(-18deg);
        animation: premium-sweep 3.6s ease-in-out infinite;
        pointer-events: none;
    }

    .rfq-card-premium:hover {
        border-color: #f59e0b !important;
        box-shadow: 0 0 0 1px rgba(245, 158, 11, 0.28) inset,
                    0 18px 46px -10px rgba(245, 158, 11, 0.50),
                    0 0 34px rgba(245, 197, 24, 0.22) !important;
        transform: translateY(-1px);
    }

@keyframes premium-glow {
    0%, 100% { box-shadow: 0 0 0 1px rgba(234, 179, 8, 0.18) inset, 0 12px 32px -10px rgba(234, 179, 8, 0.30), 0 0 14px rgba(245, 197, 24, 0.10); }
    50% { box-shadow: 0 0 0 1px rgba(234, 179, 8, 0.30) inset, 0 12px 36px -8px rgba(234, 179, 8, 0.50), 0 0 32px rgba(245, 197, 24, 0.26); }
}

@keyframes premium-sheen {
    from { background-position: 0% 0; }
    to { background-position: 200% 0; }
}

@keyframes premium-sweep {
    0% { left: -70%; }
    55%, 100% { left: 140%; }
}

/* 🌟 Premium sparkles (dazzle so it feels valuable) */
.premium-spark {
    position: absolute;
    color: #fbbf24;
    font-size: 16px;
    line-height: 1;
    pointer-events: none;
    opacity: 0;
    animation: sparkle-twinkle 2s ease-in-out infinite;
    text-shadow: 0 0 8px rgba(251, 191, 36, 0.9);
}

.spark-1 { top: 8px; right: 14px; }
.spark-2 { top: 22px; right: 34px; font-size: 11px; animation-delay: .55s; }
.spark-3 { bottom: 12px; left: 20px; font-size: 13px; animation-delay: 1.05s; }

@keyframes sparkle-twinkle {
    0%, 100% { opacity: 0; transform: scale(.6) rotate(0deg); }
    50% { opacity: 1; transform: scale(1.15) rotate(18deg); }
}

.tier-premium {
    color: #ffffff;
    background: linear-gradient(135deg, #fbbf24, #f59e0b 45%, #ea580c);
    border: 1px solid #d97706;
    box-shadow: 0 2px 12px rgba(245, 158, 11, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.35);
    text-shadow: 0 1px 2px rgba(120, 53, 15, 0.35);
}

/* ── Milestone pipeline strip (Inquiry → Quote → Invoice) ──────── */
.milestone-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 10px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
}

.milestone-premium {
    background: linear-gradient(90deg, #fffbeb, #fef3c7) !important;
    border-color: #fde68a !important;
}

.m-stage {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 11.5px;
    font-weight: 700;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: .4px;
    line-height: 1.25;
}

    .m-stage small {
        display: block;
        font-size: 10.5px;
        font-weight: 600;
        color: #64748b;
        text-transform: none;
        letter-spacing: .2px;
        margin-top: 1px;
    }

.m-arrow {
    color: #cbd5e1;
    font-size: 13px;
}

.m-done {
    color: #065f46;
}

.m-won {
    color: #047857;
}

.m-invoice {
    color: #b45309;
    font-weight: 800;
}

    .m-invoice small {
        color: #92400e;
    }

.m-idle {
    color: #94a3b8;
}


/* -- Mid-chain highlight (Quotation Won / DC Created / Invoice Issued) -- */
.dc-card-won {
    border-left: 4px solid #10b981 !important;
    background: linear-gradient(180deg, #ecfdf5 0%, #ffffff 75%) !important;
    box-shadow: 0 2px 6px rgba(16, 185, 129, 0.12) !important;
}

.dc-card-won:hover {
        border-left-color: #059669 !important;
        box-shadow: 0 8px 22px rgba(16, 185, 129, 0.22) !important;
    }


/* -- 🔒 Chain lock chip (document already created downstream — entry locked) -- */
.chain-lock-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border: 1px dashed #94a3b8;
    border-radius: 8px;
    background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
    color: #475569;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .2px;
    white-space: nowrap;
}

    .chain-lock-chip:hover {
        border-color: #64748b;
        background: #f1f5f9;
        color: #334155;
    }

    .chain-lock-chip .anticon {
        color: #b45309;
    }
